@majeanson/lac 3.2.0 → 3.4.0

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/dist/lsp.mjs CHANGED
@@ -9,8 +9,7 @@ import { CodeLens, DiagnosticSeverity, Location, MarkupKind, Position, ProposedF
9
9
  import { TextDocument } from "vscode-languageserver-textdocument";
10
10
  import { createServer } from "node:http";
11
11
  import { gzip } from "node:zlib";
12
-
13
- //#region rolldown:runtime
12
+ //#region \0rolldown/runtime.js
14
13
  var __create = Object.create;
15
14
  var __defProp = Object.defineProperty;
16
15
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -19,16 +18,12 @@ var __getProtoOf = Object.getPrototypeOf;
19
18
  var __hasOwnProp = Object.prototype.hasOwnProperty;
20
19
  var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
21
20
  var __copyProps = (to, from, except, desc) => {
22
- if (from && typeof from === "object" || typeof from === "function") {
23
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
24
- key = keys[i];
25
- if (!__hasOwnProp.call(to, key) && key !== except) {
26
- __defProp(to, key, {
27
- get: ((k) => from[k]).bind(null, key),
28
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
29
- });
30
- }
31
- }
21
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
22
+ key = keys[i];
23
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
24
+ get: ((k) => from[k]).bind(null, key),
25
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
26
+ });
32
27
  }
33
28
  return to;
34
29
  };
@@ -37,7 +32,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
37
32
  enumerable: true
38
33
  }) : target, mod));
39
34
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
40
-
41
35
  //#endregion
42
36
  //#region ../../node_modules/.bun/picomatch@4.0.3/node_modules/picomatch/lib/constants.js
43
37
  var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -91,28 +85,24 @@ var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91
85
  END_ANCHOR: `(?:[${WIN_SLASH}]|$)`,
92
86
  SEP: "\\"
93
87
  };
94
- /**
95
- * POSIX Bracket Regex
96
- */
97
- const POSIX_REGEX_SOURCE = {
98
- alnum: "a-zA-Z0-9",
99
- alpha: "a-zA-Z",
100
- ascii: "\\x00-\\x7F",
101
- blank: " \\t",
102
- cntrl: "\\x00-\\x1F\\x7F",
103
- digit: "0-9",
104
- graph: "\\x21-\\x7E",
105
- lower: "a-z",
106
- print: "\\x20-\\x7E ",
107
- punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
108
- space: " \\t\\r\\n\\v\\f",
109
- upper: "A-Z",
110
- word: "A-Za-z0-9_",
111
- xdigit: "A-Fa-f0-9"
112
- };
113
88
  module.exports = {
114
89
  MAX_LENGTH: 1024 * 64,
115
- POSIX_REGEX_SOURCE,
90
+ POSIX_REGEX_SOURCE: {
91
+ alnum: "a-zA-Z0-9",
92
+ alpha: "a-zA-Z",
93
+ ascii: "\\x00-\\x7F",
94
+ blank: " \\t",
95
+ cntrl: "\\x00-\\x1F\\x7F",
96
+ digit: "0-9",
97
+ graph: "\\x21-\\x7E",
98
+ lower: "a-z",
99
+ print: "\\x20-\\x7E ",
100
+ punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
101
+ space: " \\t\\r\\n\\v\\f",
102
+ upper: "A-Z",
103
+ word: "A-Za-z0-9_",
104
+ xdigit: "A-Fa-f0-9"
105
+ },
116
106
  REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
117
107
  REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
118
108
  REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
@@ -202,7 +192,6 @@ var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
202
192
  }
203
193
  };
204
194
  }));
205
-
206
195
  //#endregion
207
196
  //#region ../../node_modules/.bun/picomatch@4.0.3/node_modules/picomatch/lib/utils.js
208
197
  var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -244,14 +233,13 @@ var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
244
233
  if (state.negated === true) output = `(?:^(?!${output}).*$)`;
245
234
  return output;
246
235
  };
247
- exports.basename = (path$1, { windows } = {}) => {
248
- const segs = path$1.split(windows ? /[\\/]/ : "/");
236
+ exports.basename = (path, { windows } = {}) => {
237
+ const segs = path.split(windows ? /[\\/]/ : "/");
249
238
  const last = segs[segs.length - 1];
250
239
  if (last === "") return segs[segs.length - 2];
251
240
  return last;
252
241
  };
253
242
  }));
254
-
255
243
  //#endregion
256
244
  //#region ../../node_modules/.bun/picomatch@4.0.3/node_modules/picomatch/lib/scan.js
257
245
  var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -539,7 +527,6 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
539
527
  };
540
528
  module.exports = scan;
541
529
  }));
542
-
543
530
  //#endregion
544
531
  //#region ../../node_modules/.bun/picomatch@4.0.3/node_modules/picomatch/lib/parse.js
545
532
  var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -592,8 +579,8 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
592
579
  const PLATFORM_CHARS = constants.globChars(opts.windows);
593
580
  const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
594
581
  const { DOT_LITERAL, PLUS_LITERAL, SLASH_LITERAL, ONE_CHAR, DOTS_SLASH, NO_DOT, NO_DOT_SLASH, NO_DOTS_SLASH, QMARK, QMARK_NO_DOT, STAR, START_ANCHOR } = PLATFORM_CHARS;
595
- const globstar = (opts$1) => {
596
- return `(${capture}(?:(?!${START_ANCHOR}${opts$1.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
582
+ const globstar = (opts) => {
583
+ return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
597
584
  };
598
585
  const nodot = opts.dot ? "" : NO_DOT;
599
586
  const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT;
@@ -631,8 +618,8 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
631
618
  const peek = state.peek = (n = 1) => input[state.index + n];
632
619
  const advance = state.advance = () => input[++state.index] || "";
633
620
  const remaining = () => input.slice(state.index + 1);
634
- const consume = (value$1 = "", num = 0) => {
635
- state.consumed += value$1;
621
+ const consume = (value = "", num = 0) => {
622
+ state.consumed += value;
636
623
  state.index += num;
637
624
  };
638
625
  const append = (token) => {
@@ -689,9 +676,9 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
689
676
  tokens.push(tok);
690
677
  prev = tok;
691
678
  };
692
- const extglobOpen = (type, value$1) => {
679
+ const extglobOpen = (type, value) => {
693
680
  const token = {
694
- ...EXTGLOB_CHARS[value$1],
681
+ ...EXTGLOB_CHARS[value],
695
682
  conditions: 1,
696
683
  inner: ""
697
684
  };
@@ -702,7 +689,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
702
689
  increment("parens");
703
690
  push({
704
691
  type,
705
- value: value$1,
692
+ value,
706
693
  output: state.output ? "" : ONE_CHAR
707
694
  });
708
695
  push({
@@ -739,22 +726,22 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
739
726
  */
740
727
  if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
741
728
  let backslashes = false;
742
- let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc$1, chars, first, rest, index) => {
729
+ let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => {
743
730
  if (first === "\\") {
744
731
  backslashes = true;
745
732
  return m;
746
733
  }
747
734
  if (first === "?") {
748
- if (esc$1) return esc$1 + first + (rest ? QMARK.repeat(rest.length) : "");
735
+ if (esc) return esc + first + (rest ? QMARK.repeat(rest.length) : "");
749
736
  if (index === 0) return qmarkNoDot + (rest ? QMARK.repeat(rest.length) : "");
750
737
  return QMARK.repeat(chars.length);
751
738
  }
752
739
  if (first === ".") return DOT_LITERAL.repeat(chars.length);
753
740
  if (first === "*") {
754
- if (esc$1) return esc$1 + first + (rest ? star : "");
741
+ if (esc) return esc + first + (rest ? star : "");
755
742
  return star;
756
743
  }
757
- return esc$1 ? m : `\\${m}`;
744
+ return esc ? m : `\\${m}`;
758
745
  });
759
746
  if (backslashes === true) if (opts.unescape === true) output = output.replace(/\\/g, "");
760
747
  else output = output.replace(/\\+/g, (m) => {
@@ -1369,9 +1356,9 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1369
1356
  };
1370
1357
  let star = opts.bash === true ? ".*?" : STAR;
1371
1358
  if (opts.capture) star = `(${star})`;
1372
- const globstar = (opts$1) => {
1373
- if (opts$1.noglobstar === true) return star;
1374
- return `(${capture}(?:(?!${START_ANCHOR}${opts$1.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
1359
+ const globstar = (opts) => {
1360
+ if (opts.noglobstar === true) return star;
1361
+ return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
1375
1362
  };
1376
1363
  const create = (str) => {
1377
1364
  switch (str) {
@@ -1386,9 +1373,9 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1386
1373
  default: {
1387
1374
  const match = /^(.*?)\.(\w+)$/.exec(str);
1388
1375
  if (!match) return;
1389
- const source$1 = create(match[1]);
1390
- if (!source$1) return;
1391
- return source$1 + DOT_LITERAL + match[2];
1376
+ const source = create(match[1]);
1377
+ if (!source) return;
1378
+ return source + DOT_LITERAL + match[2];
1392
1379
  }
1393
1380
  }
1394
1381
  };
@@ -1398,7 +1385,6 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1398
1385
  };
1399
1386
  module.exports = parse;
1400
1387
  }));
1401
-
1402
1388
  //#endregion
1403
1389
  //#region ../../node_modules/.bun/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.js
1404
1390
  var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -1433,8 +1419,8 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1433
1419
  const fns = glob.map((input) => picomatch(input, options, returnState));
1434
1420
  const arrayMatcher = (str) => {
1435
1421
  for (const isMatch of fns) {
1436
- const state$1 = isMatch(str);
1437
- if (state$1) return state$1;
1422
+ const state = isMatch(str);
1423
+ if (state) return state;
1438
1424
  }
1439
1425
  return false;
1440
1426
  };
@@ -1691,7 +1677,6 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1691
1677
  */
1692
1678
  module.exports = picomatch;
1693
1679
  }));
1694
-
1695
1680
  //#endregion
1696
1681
  //#region ../../node_modules/.bun/picomatch@4.0.3/node_modules/picomatch/index.js
1697
1682
  var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -1707,7 +1692,6 @@ var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1707
1692
  Object.assign(picomatch, pico);
1708
1693
  module.exports = picomatch;
1709
1694
  }));
1710
-
1711
1695
  //#endregion
1712
1696
  //#region ../../node_modules/.bun/readdirp@3.6.0/node_modules/readdirp/index.js
1713
1697
  var require_readdirp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -1776,8 +1760,8 @@ var require_readdirp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1776
1760
  static get defaultOptions() {
1777
1761
  return {
1778
1762
  root: ".",
1779
- fileFilter: (path$1) => true,
1780
- directoryFilter: (path$1) => true,
1763
+ fileFilter: (path) => true,
1764
+ directoryFilter: (path) => true,
1781
1765
  type: FILE_TYPE,
1782
1766
  lstat: false,
1783
1767
  depth: 2147483648,
@@ -1798,7 +1782,7 @@ var require_readdirp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1798
1782
  this._fileFilter = normalizeFilter(opts.fileFilter);
1799
1783
  this._directoryFilter = normalizeFilter(opts.directoryFilter);
1800
1784
  const statMethod = opts.lstat ? lstat : stat;
1801
- if (wantBigintFsStats) this._stat = (path$1) => statMethod(path$1, { bigint: true });
1785
+ if (wantBigintFsStats) this._stat = (path) => statMethod(path, { bigint: true });
1802
1786
  else this._stat = statMethod;
1803
1787
  this._maxDepth = opts.depth;
1804
1788
  this._wantsDir = [
@@ -1828,9 +1812,9 @@ var require_readdirp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1828
1812
  this.reading = true;
1829
1813
  try {
1830
1814
  while (!this.destroyed && batch > 0) {
1831
- const { path: path$1, depth, files = [] } = this.parent || {};
1815
+ const { path, depth, files = [] } = this.parent || {};
1832
1816
  if (files.length > 0) {
1833
- const slice = files.splice(0, batch).map((dirent) => this._formatEntry(dirent, path$1));
1817
+ const slice = files.splice(0, batch).map((dirent) => this._formatEntry(dirent, path));
1834
1818
  for (const entry of await Promise.all(slice)) {
1835
1819
  if (this.destroyed) return;
1836
1820
  const entryType = await this._getEntryType(entry);
@@ -1863,24 +1847,24 @@ var require_readdirp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1863
1847
  this.reading = false;
1864
1848
  }
1865
1849
  }
1866
- async _exploreDir(path$1, depth) {
1850
+ async _exploreDir(path, depth) {
1867
1851
  let files;
1868
1852
  try {
1869
- files = await readdir(path$1, this._rdOptions);
1853
+ files = await readdir(path, this._rdOptions);
1870
1854
  } catch (error) {
1871
1855
  this._onError(error);
1872
1856
  }
1873
1857
  return {
1874
1858
  files,
1875
1859
  depth,
1876
- path: path$1
1860
+ path
1877
1861
  };
1878
1862
  }
1879
- async _formatEntry(dirent, path$1) {
1863
+ async _formatEntry(dirent, path) {
1880
1864
  let entry;
1881
1865
  try {
1882
1866
  const basename = this._isDirent ? dirent.name : dirent;
1883
- const fullPath = sysPath$3.resolve(sysPath$3.join(path$1, basename));
1867
+ const fullPath = sysPath$3.resolve(sysPath$3.join(path, basename));
1884
1868
  entry = {
1885
1869
  path: sysPath$3.relative(this._root, fullPath),
1886
1870
  fullPath,
@@ -1952,9 +1936,9 @@ var require_readdirp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1952
1936
  return new ReaddirpStream(options);
1953
1937
  };
1954
1938
  const readdirpPromise = (root, options = {}) => {
1955
- return new Promise((resolve$1, reject) => {
1939
+ return new Promise((resolve, reject) => {
1956
1940
  const files = [];
1957
- readdirp(root, options).on("data", (entry) => files.push(entry)).on("end", () => resolve$1(files)).on("error", (error) => reject(error));
1941
+ readdirp(root, options).on("data", (entry) => files.push(entry)).on("end", () => resolve(files)).on("error", (error) => reject(error));
1958
1942
  });
1959
1943
  };
1960
1944
  readdirp.promise = readdirpPromise;
@@ -1962,7 +1946,6 @@ var require_readdirp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1962
1946
  readdirp.default = readdirp;
1963
1947
  module.exports = readdirp;
1964
1948
  }));
1965
-
1966
1949
  //#endregion
1967
1950
  //#region ../../node_modules/.bun/normalize-path@3.0.0/node_modules/normalize-path/index.js
1968
1951
  var require_normalize_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -1972,25 +1955,24 @@ var require_normalize_path = /* @__PURE__ */ __commonJSMin(((exports, module) =>
1972
1955
  * Copyright (c) 2014-2018, Jon Schlinkert.
1973
1956
  * Released under the MIT License.
1974
1957
  */
1975
- module.exports = function(path$1, stripTrailing) {
1976
- if (typeof path$1 !== "string") throw new TypeError("expected path to be a string");
1977
- if (path$1 === "\\" || path$1 === "/") return "/";
1978
- var len = path$1.length;
1979
- if (len <= 1) return path$1;
1958
+ module.exports = function(path, stripTrailing) {
1959
+ if (typeof path !== "string") throw new TypeError("expected path to be a string");
1960
+ if (path === "\\" || path === "/") return "/";
1961
+ var len = path.length;
1962
+ if (len <= 1) return path;
1980
1963
  var prefix = "";
1981
- if (len > 4 && path$1[3] === "\\") {
1982
- var ch = path$1[2];
1983
- if ((ch === "?" || ch === ".") && path$1.slice(0, 2) === "\\\\") {
1984
- path$1 = path$1.slice(2);
1964
+ if (len > 4 && path[3] === "\\") {
1965
+ var ch = path[2];
1966
+ if ((ch === "?" || ch === ".") && path.slice(0, 2) === "\\\\") {
1967
+ path = path.slice(2);
1985
1968
  prefix = "//";
1986
1969
  }
1987
1970
  }
1988
- var segs = path$1.split(/[/\\]+/);
1971
+ var segs = path.split(/[/\\]+/);
1989
1972
  if (stripTrailing !== false && segs[segs.length - 1] === "") segs.pop();
1990
1973
  return prefix + segs.join("/");
1991
1974
  };
1992
1975
  }));
1993
-
1994
1976
  //#endregion
1995
1977
  //#region ../../node_modules/.bun/anymatch@3.1.3/node_modules/anymatch/index.js
1996
1978
  var require_anymatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -2014,10 +1996,10 @@ var require_anymatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2014
1996
  if (typeof matcher === "function") return matcher;
2015
1997
  if (typeof matcher === "string") {
2016
1998
  const glob = picomatch(matcher, options);
2017
- return (string$2) => matcher === string$2 || glob(string$2);
1999
+ return (string) => matcher === string || glob(string);
2018
2000
  }
2019
- if (matcher instanceof RegExp) return (string$2) => matcher.test(string$2);
2020
- return (string$2) => false;
2001
+ if (matcher instanceof RegExp) return (string) => matcher.test(string);
2002
+ return (string) => false;
2021
2003
  };
2022
2004
  /**
2023
2005
  * @param {Array<Function>} patterns
@@ -2030,15 +2012,15 @@ var require_anymatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2030
2012
  const isList = Array.isArray(args);
2031
2013
  const _path = isList ? args[0] : args;
2032
2014
  if (!isList && typeof _path !== "string") throw new TypeError("anymatch: second argument must be a string: got " + Object.prototype.toString.call(_path));
2033
- const path$1 = normalizePath(_path, false);
2015
+ const path = normalizePath(_path, false);
2034
2016
  for (let index = 0; index < negPatterns.length; index++) {
2035
2017
  const nglob = negPatterns[index];
2036
- if (nglob(path$1)) return returnIndex ? -1 : false;
2018
+ if (nglob(path)) return returnIndex ? -1 : false;
2037
2019
  }
2038
- const applied = isList && [path$1].concat(args.slice(1));
2020
+ const applied = isList && [path].concat(args.slice(1));
2039
2021
  for (let index = 0; index < patterns.length; index++) {
2040
2022
  const pattern = patterns[index];
2041
- if (isList ? pattern(...applied) : pattern(path$1)) return returnIndex ? index : true;
2023
+ if (isList ? pattern(...applied) : pattern(path)) return returnIndex ? index : true;
2042
2024
  }
2043
2025
  return returnIndex ? -1 : false;
2044
2026
  };
@@ -2055,15 +2037,14 @@ var require_anymatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2055
2037
  const mtchers = arrify(matchers);
2056
2038
  const negatedGlobs = mtchers.filter((item) => typeof item === "string" && item.charAt(0) === BANG).map((item) => item.slice(1)).map((item) => picomatch(item, opts));
2057
2039
  const patterns = mtchers.filter((item) => typeof item !== "string" || typeof item === "string" && item.charAt(0) !== BANG).map((matcher) => createPattern(matcher, opts));
2058
- if (testString == null) return (testString$1, ri = false) => {
2059
- return matchPatterns(patterns, negatedGlobs, testString$1, typeof ri === "boolean" ? ri : false);
2040
+ if (testString == null) return (testString, ri = false) => {
2041
+ return matchPatterns(patterns, negatedGlobs, testString, typeof ri === "boolean" ? ri : false);
2060
2042
  };
2061
2043
  return matchPatterns(patterns, negatedGlobs, testString, returnIndex);
2062
2044
  };
2063
2045
  anymatch.default = anymatch;
2064
2046
  module.exports = anymatch;
2065
2047
  }));
2066
-
2067
2048
  //#endregion
2068
2049
  //#region ../../node_modules/.bun/is-extglob@2.1.1/node_modules/is-extglob/index.js
2069
2050
  var require_is_extglob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -2083,7 +2064,6 @@ var require_is_extglob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2083
2064
  return false;
2084
2065
  };
2085
2066
  }));
2086
-
2087
2067
  //#endregion
2088
2068
  //#region ../../node_modules/.bun/is-glob@4.0.3/node_modules/is-glob/index.js
2089
2069
  var require_is_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -2181,7 +2161,6 @@ var require_is_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2181
2161
  return check(str);
2182
2162
  };
2183
2163
  }));
2184
-
2185
2164
  //#endregion
2186
2165
  //#region ../../node_modules/.bun/glob-parent@5.1.2/node_modules/glob-parent/index.js
2187
2166
  var require_glob_parent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -2209,7 +2188,6 @@ var require_glob_parent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2209
2188
  return str.replace(escaped, "$1");
2210
2189
  };
2211
2190
  }));
2212
-
2213
2191
  //#endregion
2214
2192
  //#region ../../node_modules/.bun/braces@3.0.3/node_modules/braces/lib/utils.js
2215
2193
  var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -2221,7 +2199,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
2221
2199
  /**
2222
2200
  * Find a node of the given type
2223
2201
  */
2224
- exports.find = (node, type) => node.nodes.find((node$1) => node$1.type === type);
2202
+ exports.find = (node, type) => node.nodes.find((node) => node.type === type);
2225
2203
  /**
2226
2204
  * Find a node of the given type
2227
2205
  */
@@ -2305,7 +2283,6 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
2305
2283
  return result;
2306
2284
  };
2307
2285
  }));
2308
-
2309
2286
  //#endregion
2310
2287
  //#region ../../node_modules/.bun/braces@3.0.3/node_modules/braces/lib/stringify.js
2311
2288
  var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -2326,7 +2303,6 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2326
2303
  return stringify(ast);
2327
2304
  };
2328
2305
  }));
2329
-
2330
2306
  //#endregion
2331
2307
  //#region ../../node_modules/.bun/is-number@7.0.0/node_modules/is-number/index.js
2332
2308
  /*!
@@ -2342,7 +2318,6 @@ var require_is_number = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2342
2318
  return false;
2343
2319
  };
2344
2320
  }));
2345
-
2346
2321
  //#endregion
2347
2322
  //#region ../../node_modules/.bun/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
2348
2323
  /*!
@@ -2463,30 +2438,30 @@ var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) =>
2463
2438
  let start = min;
2464
2439
  let prev;
2465
2440
  for (let i = 0; i < ranges.length; i++) {
2466
- let max$1 = ranges[i];
2467
- let obj = rangeToPattern(String(start), String(max$1), options);
2441
+ let max = ranges[i];
2442
+ let obj = rangeToPattern(String(start), String(max), options);
2468
2443
  let zeros = "";
2469
2444
  if (!tok.isPadded && prev && prev.pattern === obj.pattern) {
2470
2445
  if (prev.count.length > 1) prev.count.pop();
2471
2446
  prev.count.push(obj.count[0]);
2472
2447
  prev.string = prev.pattern + toQuantifier(prev.count);
2473
- start = max$1 + 1;
2448
+ start = max + 1;
2474
2449
  continue;
2475
2450
  }
2476
- if (tok.isPadded) zeros = padZeros(max$1, tok, options);
2451
+ if (tok.isPadded) zeros = padZeros(max, tok, options);
2477
2452
  obj.string = zeros + obj.pattern + toQuantifier(obj.count);
2478
2453
  tokens.push(obj);
2479
- start = max$1 + 1;
2454
+ start = max + 1;
2480
2455
  prev = obj;
2481
2456
  }
2482
2457
  return tokens;
2483
2458
  }
2484
- function filterPatterns(arr, comparison, prefix, intersection$1, options) {
2459
+ function filterPatterns(arr, comparison, prefix, intersection, options) {
2485
2460
  let result = [];
2486
2461
  for (let ele of arr) {
2487
- let { string: string$2 } = ele;
2488
- if (!intersection$1 && !contains(comparison, "string", string$2)) result.push(prefix + string$2);
2489
- if (intersection$1 && contains(comparison, "string", string$2)) result.push(prefix + string$2);
2462
+ let { string } = ele;
2463
+ if (!intersection && !contains(comparison, "string", string)) result.push(prefix + string);
2464
+ if (intersection && contains(comparison, "string", string)) result.push(prefix + string);
2490
2465
  }
2491
2466
  return result;
2492
2467
  }
@@ -2507,8 +2482,8 @@ var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) =>
2507
2482
  function countNines(min, len) {
2508
2483
  return Number(String(min).slice(0, -len) + "9".repeat(len));
2509
2484
  }
2510
- function countZeros(integer$1, zeros) {
2511
- return integer$1 - integer$1 % Math.pow(10, zeros);
2485
+ function countZeros(integer, zeros) {
2486
+ return integer - integer % Math.pow(10, zeros);
2512
2487
  }
2513
2488
  function toQuantifier(digits) {
2514
2489
  let [start = 0, stop = ""] = digits;
@@ -2542,7 +2517,6 @@ var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) =>
2542
2517
  */
2543
2518
  module.exports = toRegexRange;
2544
2519
  }));
2545
-
2546
2520
  //#endregion
2547
2521
  //#region ../../node_modules/.bun/fill-range@7.1.1/node_modules/fill-range/index.js
2548
2522
  /*!
@@ -2711,7 +2685,6 @@ var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2711
2685
  };
2712
2686
  module.exports = fill;
2713
2687
  }));
2714
-
2715
2688
  //#endregion
2716
2689
  //#region ../../node_modules/.bun/braces@3.0.3/node_modules/braces/lib/compile.js
2717
2690
  var require_compile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -2750,7 +2723,6 @@ var require_compile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2750
2723
  };
2751
2724
  module.exports = compile;
2752
2725
  }));
2753
-
2754
2726
  //#endregion
2755
2727
  //#region ../../node_modules/.bun/braces@3.0.3/node_modules/braces/lib/expand.js
2756
2728
  var require_expand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -2827,7 +2799,6 @@ var require_expand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2827
2799
  };
2828
2800
  module.exports = expand;
2829
2801
  }));
2830
-
2831
2802
  //#endregion
2832
2803
  //#region ../../node_modules/.bun/braces@3.0.3/node_modules/braces/lib/constants.js
2833
2804
  var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -2879,7 +2850,6 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2879
2850
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: ""
2880
2851
  };
2881
2852
  }));
2882
-
2883
2853
  //#endregion
2884
2854
  //#region ../../node_modules/.bun/braces@3.0.3/node_modules/braces/lib/parse.js
2885
2855
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -3158,8 +3128,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3158
3128
  }
3159
3129
  });
3160
3130
  const parent = stack[stack.length - 1];
3161
- const index$1 = parent.nodes.indexOf(block);
3162
- parent.nodes.splice(index$1, 1, ...block.nodes);
3131
+ const index = parent.nodes.indexOf(block);
3132
+ parent.nodes.splice(index, 1, ...block.nodes);
3163
3133
  }
3164
3134
  } while (stack.length > 0);
3165
3135
  push({ type: "eos" });
@@ -3167,7 +3137,6 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3167
3137
  };
3168
3138
  module.exports = parse;
3169
3139
  }));
3170
-
3171
3140
  //#endregion
3172
3141
  //#region ../../node_modules/.bun/braces@3.0.3/node_modules/braces/index.js
3173
3142
  var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -3295,7 +3264,6 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3295
3264
  */
3296
3265
  module.exports = braces;
3297
3266
  }));
3298
-
3299
3267
  //#endregion
3300
3268
  //#region ../../node_modules/.bun/binary-extensions@2.3.0/node_modules/binary-extensions/binary-extensions.json
3301
3269
  var require_binary_extensions$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -3563,13 +3531,11 @@ var require_binary_extensions$1 = /* @__PURE__ */ __commonJSMin(((exports, modul
3563
3531
  "zipx"
3564
3532
  ];
3565
3533
  }));
3566
-
3567
3534
  //#endregion
3568
3535
  //#region ../../node_modules/.bun/binary-extensions@2.3.0/node_modules/binary-extensions/index.js
3569
3536
  var require_binary_extensions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3570
3537
  module.exports = require_binary_extensions$1();
3571
3538
  }));
3572
-
3573
3539
  //#endregion
3574
3540
  //#region ../../node_modules/.bun/is-binary-path@2.1.0/node_modules/is-binary-path/index.js
3575
3541
  var require_is_binary_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -3578,7 +3544,6 @@ var require_is_binary_path = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3578
3544
  const extensions = new Set(binaryExtensions);
3579
3545
  module.exports = (filePath) => extensions.has(path.extname(filePath).slice(1).toLowerCase());
3580
3546
  }));
3581
-
3582
3547
  //#endregion
3583
3548
  //#region ../../node_modules/.bun/chokidar@3.6.0/node_modules/chokidar/lib/constants.js
3584
3549
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -3643,7 +3608,6 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
3643
3608
  exports.isLinux = platform === "linux";
3644
3609
  exports.isIBMi = os.type() === "OS400";
3645
3610
  }));
3646
-
3647
3611
  //#endregion
3648
3612
  //#region ../../node_modules/.bun/chokidar@3.6.0/node_modules/chokidar/lib/nodefs-handler.js
3649
3613
  var require_nodefs_handler = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -3706,14 +3670,14 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3706
3670
  * @param {Function} emitRaw emits raw event data
3707
3671
  * @returns {fs.FSWatcher} new fsevents instance
3708
3672
  */
3709
- function createFsWatchInstance(path$1, options, listener, errHandler, emitRaw) {
3673
+ function createFsWatchInstance(path, options, listener, errHandler, emitRaw) {
3710
3674
  const handleEvent = (rawEvent, evPath) => {
3711
- listener(path$1);
3712
- emitRaw(rawEvent, evPath, { watchedPath: path$1 });
3713
- if (evPath && path$1 !== evPath) fsWatchBroadcast(sysPath$2.resolve(path$1, evPath), KEY_LISTENERS, sysPath$2.join(path$1, evPath));
3675
+ listener(path);
3676
+ emitRaw(rawEvent, evPath, { watchedPath: path });
3677
+ if (evPath && path !== evPath) fsWatchBroadcast(sysPath$2.resolve(path, evPath), KEY_LISTENERS, sysPath$2.join(path, evPath));
3714
3678
  };
3715
3679
  try {
3716
- return fs$2.watch(path$1, options, handleEvent);
3680
+ return fs$2.watch(path, options, handleEvent);
3717
3681
  } catch (error) {
3718
3682
  errHandler(error);
3719
3683
  }
@@ -3741,13 +3705,13 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3741
3705
  * @param {Object} options to be passed to fs_watch
3742
3706
  * @param {Object} handlers container for event listener functions
3743
3707
  */
3744
- const setFsWatchListener = (path$1, fullPath, options, handlers) => {
3708
+ const setFsWatchListener = (path, fullPath, options, handlers) => {
3745
3709
  const { listener, errHandler, rawEmitter } = handlers;
3746
3710
  let cont = FsWatchInstances.get(fullPath);
3747
3711
  /** @type {fs.FSWatcher=} */
3748
3712
  let watcher;
3749
3713
  if (!options.persistent) {
3750
- watcher = createFsWatchInstance(path$1, options, listener, errHandler, rawEmitter);
3714
+ watcher = createFsWatchInstance(path, options, listener, errHandler, rawEmitter);
3751
3715
  return watcher.close.bind(watcher);
3752
3716
  }
3753
3717
  if (cont) {
@@ -3755,13 +3719,13 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3755
3719
  addAndConvert(cont, KEY_ERR, errHandler);
3756
3720
  addAndConvert(cont, KEY_RAW, rawEmitter);
3757
3721
  } else {
3758
- watcher = createFsWatchInstance(path$1, options, fsWatchBroadcast.bind(null, fullPath, KEY_LISTENERS), errHandler, fsWatchBroadcast.bind(null, fullPath, KEY_RAW));
3722
+ watcher = createFsWatchInstance(path, options, fsWatchBroadcast.bind(null, fullPath, KEY_LISTENERS), errHandler, fsWatchBroadcast.bind(null, fullPath, KEY_RAW));
3759
3723
  if (!watcher) return;
3760
3724
  watcher.on(EV_ERROR, async (error) => {
3761
3725
  const broadcastErr = fsWatchBroadcast.bind(null, fullPath, KEY_ERR);
3762
3726
  cont.watcherUnusable = true;
3763
3727
  if (isWindows && error.code === "EPERM") try {
3764
- await close(await open(path$1, "r"));
3728
+ await close(await open(path, "r"));
3765
3729
  broadcastErr(error);
3766
3730
  } catch (err) {}
3767
3731
  else broadcastErr(error);
@@ -3797,7 +3761,7 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3797
3761
  * @param {Object} handlers container for event listener functions
3798
3762
  * @returns {Function} closer
3799
3763
  */
3800
- const setFsWatchFileListener = (path$1, fullPath, options, handlers) => {
3764
+ const setFsWatchFileListener = (path, fullPath, options, handlers) => {
3801
3765
  const { listener, rawEmitter } = handlers;
3802
3766
  let cont = FsWatchFileInstances.get(fullPath);
3803
3767
  const copts = cont && cont.options;
@@ -3816,14 +3780,14 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3816
3780
  rawEmitters: rawEmitter,
3817
3781
  options,
3818
3782
  watcher: fs$2.watchFile(fullPath, options, (curr, prev) => {
3819
- foreach(cont.rawEmitters, (rawEmitter$1) => {
3820
- rawEmitter$1(EV_CHANGE, fullPath, {
3783
+ foreach(cont.rawEmitters, (rawEmitter) => {
3784
+ rawEmitter(EV_CHANGE, fullPath, {
3821
3785
  curr,
3822
3786
  prev
3823
3787
  });
3824
3788
  });
3825
3789
  const currmtime = curr.mtimeMs;
3826
- if (curr.size !== prev.size || currmtime > prev.mtimeMs || currmtime === 0) foreach(cont.listeners, (listener$1) => listener$1(path$1, curr));
3790
+ if (curr.size !== prev.size || currmtime > prev.mtimeMs || currmtime === 0) foreach(cont.listeners, (listener) => listener(path, curr));
3827
3791
  })
3828
3792
  };
3829
3793
  FsWatchFileInstances.set(fullPath, cont);
@@ -3856,22 +3820,22 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3856
3820
  * @param {Function} listener on fs change
3857
3821
  * @returns {Function} closer for the watcher instance
3858
3822
  */
3859
- _watchWithNodeFs(path$1, listener) {
3823
+ _watchWithNodeFs(path, listener) {
3860
3824
  const opts = this.fsw.options;
3861
- const directory = sysPath$2.dirname(path$1);
3862
- const basename = sysPath$2.basename(path$1);
3825
+ const directory = sysPath$2.dirname(path);
3826
+ const basename = sysPath$2.basename(path);
3863
3827
  this.fsw._getWatchedDir(directory).add(basename);
3864
- const absolutePath = sysPath$2.resolve(path$1);
3828
+ const absolutePath = sysPath$2.resolve(path);
3865
3829
  const options = { persistent: opts.persistent };
3866
3830
  if (!listener) listener = EMPTY_FN;
3867
3831
  let closer;
3868
3832
  if (opts.usePolling) {
3869
3833
  options.interval = opts.enableBinaryInterval && isBinaryPath(basename) ? opts.binaryInterval : opts.interval;
3870
- closer = setFsWatchFileListener(path$1, absolutePath, options, {
3834
+ closer = setFsWatchFileListener(path, absolutePath, options, {
3871
3835
  listener,
3872
3836
  rawEmitter: this.fsw._emitRaw
3873
3837
  });
3874
- } else closer = setFsWatchListener(path$1, absolutePath, options, {
3838
+ } else closer = setFsWatchListener(path, absolutePath, options, {
3875
3839
  listener,
3876
3840
  errHandler: this._boundHandleError,
3877
3841
  rawEmitter: this.fsw._emitRaw
@@ -3887,26 +3851,26 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3887
3851
  */
3888
3852
  _handleFile(file, stats, initialAdd) {
3889
3853
  if (this.fsw.closed) return;
3890
- const dirname$1 = sysPath$2.dirname(file);
3854
+ const dirname = sysPath$2.dirname(file);
3891
3855
  const basename = sysPath$2.basename(file);
3892
- const parent = this.fsw._getWatchedDir(dirname$1);
3856
+ const parent = this.fsw._getWatchedDir(dirname);
3893
3857
  let prevStats = stats;
3894
3858
  if (parent.has(basename)) return;
3895
- const listener = async (path$1, newStats) => {
3859
+ const listener = async (path, newStats) => {
3896
3860
  if (!this.fsw._throttle(THROTTLE_MODE_WATCH, file, 5)) return;
3897
3861
  if (!newStats || newStats.mtimeMs === 0) try {
3898
- const newStats$1 = await stat(file);
3862
+ const newStats = await stat(file);
3899
3863
  if (this.fsw.closed) return;
3900
- const at = newStats$1.atimeMs;
3901
- const mt = newStats$1.mtimeMs;
3902
- if (!at || at <= mt || mt !== prevStats.mtimeMs) this.fsw._emit(EV_CHANGE, file, newStats$1);
3903
- if (isLinux && prevStats.ino !== newStats$1.ino) {
3904
- this.fsw._closeFile(path$1);
3905
- prevStats = newStats$1;
3906
- this.fsw._addPathCloser(path$1, this._watchWithNodeFs(file, listener));
3907
- } else prevStats = newStats$1;
3864
+ const at = newStats.atimeMs;
3865
+ const mt = newStats.mtimeMs;
3866
+ if (!at || at <= mt || mt !== prevStats.mtimeMs) this.fsw._emit(EV_CHANGE, file, newStats);
3867
+ if (isLinux && prevStats.ino !== newStats.ino) {
3868
+ this.fsw._closeFile(path);
3869
+ prevStats = newStats;
3870
+ this.fsw._addPathCloser(path, this._watchWithNodeFs(file, listener));
3871
+ } else prevStats = newStats;
3908
3872
  } catch (error) {
3909
- this.fsw._remove(dirname$1, basename);
3873
+ this.fsw._remove(dirname, basename);
3910
3874
  }
3911
3875
  else if (parent.has(basename)) {
3912
3876
  const at = newStats.atimeMs;
@@ -3930,7 +3894,7 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3930
3894
  * @param {String} item basename of this item
3931
3895
  * @returns {Promise<Boolean>} true if no more processing is needed for this entry.
3932
3896
  */
3933
- async _handleSymlink(entry, directory, path$1, item) {
3897
+ async _handleSymlink(entry, directory, path, item) {
3934
3898
  if (this.fsw.closed) return;
3935
3899
  const full = entry.fullPath;
3936
3900
  const dir = this.fsw._getWatchedDir(directory);
@@ -3938,7 +3902,7 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3938
3902
  this.fsw._incrReadyCount();
3939
3903
  let linkPath;
3940
3904
  try {
3941
- linkPath = await fsrealpath(path$1);
3905
+ linkPath = await fsrealpath(path);
3942
3906
  } catch (e) {
3943
3907
  this.fsw._emitReady();
3944
3908
  return true;
@@ -3947,12 +3911,12 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3947
3911
  if (dir.has(item)) {
3948
3912
  if (this.fsw._symlinkPaths.get(full) !== linkPath) {
3949
3913
  this.fsw._symlinkPaths.set(full, linkPath);
3950
- this.fsw._emit(EV_CHANGE, path$1, entry.stats);
3914
+ this.fsw._emit(EV_CHANGE, path, entry.stats);
3951
3915
  }
3952
3916
  } else {
3953
3917
  dir.add(item);
3954
3918
  this.fsw._symlinkPaths.set(full, linkPath);
3955
- this.fsw._emit(EV_ADD, path$1, entry.stats);
3919
+ this.fsw._emit(EV_ADD, path, entry.stats);
3956
3920
  }
3957
3921
  this.fsw._emitReady();
3958
3922
  return true;
@@ -3978,26 +3942,26 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3978
3942
  return;
3979
3943
  }
3980
3944
  const item = entry.path;
3981
- let path$1 = sysPath$2.join(directory, item);
3945
+ let path = sysPath$2.join(directory, item);
3982
3946
  current.add(item);
3983
- if (entry.stats.isSymbolicLink() && await this._handleSymlink(entry, directory, path$1, item)) return;
3947
+ if (entry.stats.isSymbolicLink() && await this._handleSymlink(entry, directory, path, item)) return;
3984
3948
  if (this.fsw.closed) {
3985
3949
  stream = void 0;
3986
3950
  return;
3987
3951
  }
3988
3952
  if (item === target || !target && !previous.has(item)) {
3989
3953
  this.fsw._incrReadyCount();
3990
- path$1 = sysPath$2.join(dir, sysPath$2.relative(dir, path$1));
3991
- this._addToNodeFs(path$1, initialAdd, wh, depth + 1);
3954
+ path = sysPath$2.join(dir, sysPath$2.relative(dir, path));
3955
+ this._addToNodeFs(path, initialAdd, wh, depth + 1);
3992
3956
  }
3993
3957
  }).on(EV_ERROR, this._boundHandleError);
3994
- return new Promise((resolve$1) => stream.once(STR_END, () => {
3958
+ return new Promise((resolve) => stream.once(STR_END, () => {
3995
3959
  if (this.fsw.closed) {
3996
3960
  stream = void 0;
3997
3961
  return;
3998
3962
  }
3999
3963
  const wasThrottled = throttler ? throttler.clear() : false;
4000
- resolve$1();
3964
+ resolve();
4001
3965
  previous.getChildren().filter((item) => {
4002
3966
  return item !== directory && !current.has(item) && (!wh.hasGlob || wh.filterPath({ fullPath: sysPath$2.resolve(directory, item) }));
4003
3967
  }).forEach((item) => {
@@ -4034,8 +3998,8 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJSMin(((exports, module) =>
4034
3998
  await this._handleRead(dir, initialAdd, wh, target, dir, depth, throttler);
4035
3999
  if (this.fsw.closed) return;
4036
4000
  }
4037
- closer = this._watchWithNodeFs(dir, (dirPath, stats$1) => {
4038
- if (stats$1 && stats$1.mtimeMs === 0) return;
4001
+ closer = this._watchWithNodeFs(dir, (dirPath, stats) => {
4002
+ if (stats && stats.mtimeMs === 0) return;
4039
4003
  this._handleRead(dirPath, false, wh, target, dir, depth, throttler);
4040
4004
  });
4041
4005
  }
@@ -4051,13 +4015,13 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJSMin(((exports, module) =>
4051
4015
  * @param {String=} target Child path actually targeted for watch
4052
4016
  * @returns {Promise}
4053
4017
  */
4054
- async _addToNodeFs(path$1, initialAdd, priorWh, depth, target) {
4018
+ async _addToNodeFs(path, initialAdd, priorWh, depth, target) {
4055
4019
  const ready = this.fsw._emitReady;
4056
- if (this.fsw._isIgnored(path$1) || this.fsw.closed) {
4020
+ if (this.fsw._isIgnored(path) || this.fsw.closed) {
4057
4021
  ready();
4058
4022
  return false;
4059
4023
  }
4060
- const wh = this.fsw._getWatchHelpers(path$1, depth);
4024
+ const wh = this.fsw._getWatchHelpers(path, depth);
4061
4025
  if (!wh.hasGlob && priorWh) {
4062
4026
  wh.hasGlob = priorWh.hasGlob;
4063
4027
  wh.globFilter = priorWh.globFilter;
@@ -4071,39 +4035,38 @@ var require_nodefs_handler = /* @__PURE__ */ __commonJSMin(((exports, module) =>
4071
4035
  ready();
4072
4036
  return false;
4073
4037
  }
4074
- const follow = this.fsw.options.followSymlinks && !path$1.includes(STAR) && !path$1.includes(BRACE_START);
4038
+ const follow = this.fsw.options.followSymlinks && !path.includes(STAR) && !path.includes(BRACE_START);
4075
4039
  let closer;
4076
4040
  if (stats.isDirectory()) {
4077
- const absPath = sysPath$2.resolve(path$1);
4078
- const targetPath = follow ? await fsrealpath(path$1) : path$1;
4041
+ const absPath = sysPath$2.resolve(path);
4042
+ const targetPath = follow ? await fsrealpath(path) : path;
4079
4043
  if (this.fsw.closed) return;
4080
4044
  closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath);
4081
4045
  if (this.fsw.closed) return;
4082
4046
  if (absPath !== targetPath && targetPath !== void 0) this.fsw._symlinkPaths.set(absPath, targetPath);
4083
4047
  } else if (stats.isSymbolicLink()) {
4084
- const targetPath = follow ? await fsrealpath(path$1) : path$1;
4048
+ const targetPath = follow ? await fsrealpath(path) : path;
4085
4049
  if (this.fsw.closed) return;
4086
4050
  const parent = sysPath$2.dirname(wh.watchPath);
4087
4051
  this.fsw._getWatchedDir(parent).add(wh.watchPath);
4088
4052
  this.fsw._emit(EV_ADD, wh.watchPath, stats);
4089
- closer = await this._handleDir(parent, stats, initialAdd, depth, path$1, wh, targetPath);
4053
+ closer = await this._handleDir(parent, stats, initialAdd, depth, path, wh, targetPath);
4090
4054
  if (this.fsw.closed) return;
4091
- if (targetPath !== void 0) this.fsw._symlinkPaths.set(sysPath$2.resolve(path$1), targetPath);
4055
+ if (targetPath !== void 0) this.fsw._symlinkPaths.set(sysPath$2.resolve(path), targetPath);
4092
4056
  } else closer = this._handleFile(wh.watchPath, stats, initialAdd);
4093
4057
  ready();
4094
- this.fsw._addPathCloser(path$1, closer);
4058
+ this.fsw._addPathCloser(path, closer);
4095
4059
  return false;
4096
4060
  } catch (error) {
4097
4061
  if (this.fsw._handleError(error)) {
4098
4062
  ready();
4099
- return path$1;
4063
+ return path;
4100
4064
  }
4101
4065
  }
4102
4066
  }
4103
4067
  };
4104
4068
  module.exports = NodeFsHandler;
4105
4069
  }));
4106
-
4107
4070
  //#endregion
4108
4071
  //#region ../../node_modules/.bun/chokidar@3.6.0/node_modules/chokidar/lib/fsevents-handler.js
4109
4072
  var require_fsevents_handler = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -4164,8 +4127,8 @@ var require_fsevents_handler = /* @__PURE__ */ __commonJSMin(((exports, module)
4164
4127
  * @param {Function} callback called when fsevents is bound and ready
4165
4128
  * @returns {{stop: Function}} new fsevents instance
4166
4129
  */
4167
- const createFSEventsInstance = (path$1, callback) => {
4168
- return { stop: fsevents.watch(path$1, callback) };
4130
+ const createFSEventsInstance = (path, callback) => {
4131
+ return { stop: fsevents.watch(path, callback) };
4169
4132
  };
4170
4133
  /**
4171
4134
  * Instantiates the fsevents interface or binds listeners to an existing one covering
@@ -4176,12 +4139,12 @@ var require_fsevents_handler = /* @__PURE__ */ __commonJSMin(((exports, module)
4176
4139
  * @param {Function} rawEmitter - passes data to listeners of the 'raw' event
4177
4140
  * @returns {Function} closer
4178
4141
  */
4179
- function setFSEventsListener(path$1, realPath, listener, rawEmitter) {
4142
+ function setFSEventsListener(path, realPath, listener, rawEmitter) {
4180
4143
  let watchPath = sysPath$1.extname(realPath) ? sysPath$1.dirname(realPath) : realPath;
4181
4144
  const parentPath = sysPath$1.dirname(watchPath);
4182
4145
  let cont = FSEventsWatchers.get(watchPath);
4183
4146
  if (couldConsolidate(parentPath)) watchPath = parentPath;
4184
- const resolvedPath = sysPath$1.resolve(path$1);
4147
+ const resolvedPath = sysPath$1.resolve(path);
4185
4148
  const hasSymlink = resolvedPath !== realPath;
4186
4149
  const filteredListener = (fullPath, flags, info) => {
4187
4150
  if (hasSymlink) fullPath = fullPath.replace(realPath, resolvedPath);
@@ -4223,18 +4186,18 @@ var require_fsevents_handler = /* @__PURE__ */ __commonJSMin(((exports, module)
4223
4186
  }
4224
4187
  };
4225
4188
  }
4226
- const couldConsolidate = (path$1) => {
4189
+ const couldConsolidate = (path) => {
4227
4190
  let count = 0;
4228
- for (const watchPath of FSEventsWatchers.keys()) if (watchPath.indexOf(path$1) === 0) {
4191
+ for (const watchPath of FSEventsWatchers.keys()) if (watchPath.indexOf(path) === 0) {
4229
4192
  count++;
4230
4193
  if (count >= consolidateThreshhold) return true;
4231
4194
  }
4232
4195
  return false;
4233
4196
  };
4234
4197
  const canUse = () => fsevents && FSEventsWatchers.size < 128;
4235
- const calcDepth = (path$1, root) => {
4198
+ const calcDepth = (path, root) => {
4236
4199
  let i = 0;
4237
- while (!path$1.indexOf(root) && (path$1 = sysPath$1.dirname(path$1)) !== root) i++;
4200
+ while (!path.indexOf(root) && (path = sysPath$1.dirname(path)) !== root) i++;
4238
4201
  return i;
4239
4202
  };
4240
4203
  const sameTypes = (info, stats) => info.type === FSEVENT_TYPE_DIRECTORY && stats.isDirectory() || info.type === FSEVENT_TYPE_SYMLINK && stats.isSymbolicLink() || info.type === FSEVENT_TYPE_FILE && stats.isFile();
@@ -4248,42 +4211,42 @@ var require_fsevents_handler = /* @__PURE__ */ __commonJSMin(((exports, module)
4248
4211
  constructor(fsw) {
4249
4212
  this.fsw = fsw;
4250
4213
  }
4251
- checkIgnored(path$1, stats) {
4214
+ checkIgnored(path, stats) {
4252
4215
  const ipaths = this.fsw._ignoredPaths;
4253
- if (this.fsw._isIgnored(path$1, stats)) {
4254
- ipaths.add(path$1);
4255
- if (stats && stats.isDirectory()) ipaths.add(path$1 + ROOT_GLOBSTAR);
4216
+ if (this.fsw._isIgnored(path, stats)) {
4217
+ ipaths.add(path);
4218
+ if (stats && stats.isDirectory()) ipaths.add(path + ROOT_GLOBSTAR);
4256
4219
  return true;
4257
4220
  }
4258
- ipaths.delete(path$1);
4259
- ipaths.delete(path$1 + ROOT_GLOBSTAR);
4221
+ ipaths.delete(path);
4222
+ ipaths.delete(path + ROOT_GLOBSTAR);
4260
4223
  }
4261
- addOrChange(path$1, fullPath, realPath, parent, watchedDir, item, info, opts) {
4224
+ addOrChange(path, fullPath, realPath, parent, watchedDir, item, info, opts) {
4262
4225
  const event = watchedDir.has(item) ? EV_CHANGE : EV_ADD;
4263
- this.handleEvent(event, path$1, fullPath, realPath, parent, watchedDir, item, info, opts);
4226
+ this.handleEvent(event, path, fullPath, realPath, parent, watchedDir, item, info, opts);
4264
4227
  }
4265
- async checkExists(path$1, fullPath, realPath, parent, watchedDir, item, info, opts) {
4228
+ async checkExists(path, fullPath, realPath, parent, watchedDir, item, info, opts) {
4266
4229
  try {
4267
- const stats = await stat(path$1);
4230
+ const stats = await stat(path);
4268
4231
  if (this.fsw.closed) return;
4269
- if (sameTypes(info, stats)) this.addOrChange(path$1, fullPath, realPath, parent, watchedDir, item, info, opts);
4270
- else this.handleEvent(EV_UNLINK, path$1, fullPath, realPath, parent, watchedDir, item, info, opts);
4232
+ if (sameTypes(info, stats)) this.addOrChange(path, fullPath, realPath, parent, watchedDir, item, info, opts);
4233
+ else this.handleEvent(EV_UNLINK, path, fullPath, realPath, parent, watchedDir, item, info, opts);
4271
4234
  } catch (error) {
4272
- if (error.code === "EACCES") this.addOrChange(path$1, fullPath, realPath, parent, watchedDir, item, info, opts);
4273
- else this.handleEvent(EV_UNLINK, path$1, fullPath, realPath, parent, watchedDir, item, info, opts);
4235
+ if (error.code === "EACCES") this.addOrChange(path, fullPath, realPath, parent, watchedDir, item, info, opts);
4236
+ else this.handleEvent(EV_UNLINK, path, fullPath, realPath, parent, watchedDir, item, info, opts);
4274
4237
  }
4275
4238
  }
4276
- handleEvent(event, path$1, fullPath, realPath, parent, watchedDir, item, info, opts) {
4277
- if (this.fsw.closed || this.checkIgnored(path$1)) return;
4239
+ handleEvent(event, path, fullPath, realPath, parent, watchedDir, item, info, opts) {
4240
+ if (this.fsw.closed || this.checkIgnored(path)) return;
4278
4241
  if (event === EV_UNLINK) {
4279
4242
  const isDirectory = info.type === FSEVENT_TYPE_DIRECTORY;
4280
4243
  if (isDirectory || watchedDir.has(item)) this.fsw._remove(parent, item, isDirectory);
4281
4244
  } else {
4282
4245
  if (event === EV_ADD) {
4283
- if (info.type === FSEVENT_TYPE_DIRECTORY) this.fsw._getWatchedDir(path$1);
4246
+ if (info.type === FSEVENT_TYPE_DIRECTORY) this.fsw._getWatchedDir(path);
4284
4247
  if (info.type === FSEVENT_TYPE_SYMLINK && opts.followSymlinks) {
4285
4248
  const curDepth = opts.depth === void 0 ? void 0 : calcDepth(fullPath, realPath) + 1;
4286
- return this._addToFsEvents(path$1, false, true, curDepth);
4249
+ return this._addToFsEvents(path, false, true, curDepth);
4287
4250
  }
4288
4251
  this.fsw._getWatchedDir(parent).add(item);
4289
4252
  }
@@ -4291,8 +4254,8 @@ var require_fsevents_handler = /* @__PURE__ */ __commonJSMin(((exports, module)
4291
4254
  * @type {'add'|'addDir'|'unlink'|'unlinkDir'}
4292
4255
  */
4293
4256
  const eventName = info.type === FSEVENT_TYPE_DIRECTORY ? event + DIR_SUFFIX : event;
4294
- this.fsw._emit(eventName, path$1);
4295
- if (eventName === EV_ADD_DIR) this._addToFsEvents(path$1, false, true);
4257
+ this.fsw._emit(eventName, path);
4258
+ if (eventName === EV_ADD_DIR) this._addToFsEvents(path, false, true);
4296
4259
  }
4297
4260
  }
4298
4261
  /**
@@ -4303,32 +4266,32 @@ var require_fsevents_handler = /* @__PURE__ */ __commonJSMin(((exports, module)
4303
4266
  * @param {Function} globFilter - path filter in case a glob pattern was provided
4304
4267
  * @returns {Function} closer for the watcher instance
4305
4268
  */
4306
- _watchWithFsEvents(watchPath, realPath, transform$1, globFilter) {
4269
+ _watchWithFsEvents(watchPath, realPath, transform, globFilter) {
4307
4270
  if (this.fsw.closed || this.fsw._isIgnored(watchPath)) return;
4308
4271
  const opts = this.fsw.options;
4309
4272
  const watchCallback = async (fullPath, flags, info) => {
4310
4273
  if (this.fsw.closed) return;
4311
4274
  if (opts.depth !== void 0 && calcDepth(fullPath, realPath) > opts.depth) return;
4312
- const path$1 = transform$1(sysPath$1.join(watchPath, sysPath$1.relative(watchPath, fullPath)));
4313
- if (globFilter && !globFilter(path$1)) return;
4314
- const parent = sysPath$1.dirname(path$1);
4315
- const item = sysPath$1.basename(path$1);
4316
- const watchedDir = this.fsw._getWatchedDir(info.type === FSEVENT_TYPE_DIRECTORY ? path$1 : parent);
4275
+ const path = transform(sysPath$1.join(watchPath, sysPath$1.relative(watchPath, fullPath)));
4276
+ if (globFilter && !globFilter(path)) return;
4277
+ const parent = sysPath$1.dirname(path);
4278
+ const item = sysPath$1.basename(path);
4279
+ const watchedDir = this.fsw._getWatchedDir(info.type === FSEVENT_TYPE_DIRECTORY ? path : parent);
4317
4280
  if (wrongEventFlags.has(flags) || info.event === FSEVENT_UNKNOWN) if (typeof opts.ignored === FUNCTION_TYPE) {
4318
4281
  let stats;
4319
4282
  try {
4320
- stats = await stat(path$1);
4283
+ stats = await stat(path);
4321
4284
  } catch (error) {}
4322
4285
  if (this.fsw.closed) return;
4323
- if (this.checkIgnored(path$1, stats)) return;
4324
- if (sameTypes(info, stats)) this.addOrChange(path$1, fullPath, realPath, parent, watchedDir, item, info, opts);
4325
- else this.handleEvent(EV_UNLINK, path$1, fullPath, realPath, parent, watchedDir, item, info, opts);
4326
- } else this.checkExists(path$1, fullPath, realPath, parent, watchedDir, item, info, opts);
4286
+ if (this.checkIgnored(path, stats)) return;
4287
+ if (sameTypes(info, stats)) this.addOrChange(path, fullPath, realPath, parent, watchedDir, item, info, opts);
4288
+ else this.handleEvent(EV_UNLINK, path, fullPath, realPath, parent, watchedDir, item, info, opts);
4289
+ } else this.checkExists(path, fullPath, realPath, parent, watchedDir, item, info, opts);
4327
4290
  else switch (info.event) {
4328
4291
  case FSEVENT_CREATED:
4329
- case FSEVENT_MODIFIED: return this.addOrChange(path$1, fullPath, realPath, parent, watchedDir, item, info, opts);
4292
+ case FSEVENT_MODIFIED: return this.addOrChange(path, fullPath, realPath, parent, watchedDir, item, info, opts);
4330
4293
  case FSEVENT_DELETED:
4331
- case FSEVENT_MOVED: return this.checkExists(path$1, fullPath, realPath, parent, watchedDir, item, info, opts);
4294
+ case FSEVENT_MOVED: return this.checkExists(path, fullPath, realPath, parent, watchedDir, item, info, opts);
4332
4295
  }
4333
4296
  };
4334
4297
  const closer = setFSEventsListener(watchPath, realPath, watchCallback, this.fsw._emitRaw);
@@ -4343,7 +4306,7 @@ var require_fsevents_handler = /* @__PURE__ */ __commonJSMin(((exports, module)
4343
4306
  * @param {Number} curDepth level of subdirectories traversed to where symlink is
4344
4307
  * @returns {Promise<void>}
4345
4308
  */
4346
- async _handleFsEventsSymlink(linkPath, fullPath, transform$1, curDepth) {
4309
+ async _handleFsEventsSymlink(linkPath, fullPath, transform, curDepth) {
4347
4310
  if (this.fsw.closed || this.fsw._symlinkPaths.has(fullPath)) return;
4348
4311
  this.fsw._symlinkPaths.set(fullPath, true);
4349
4312
  this.fsw._incrReadyCount();
@@ -4352,11 +4315,11 @@ var require_fsevents_handler = /* @__PURE__ */ __commonJSMin(((exports, module)
4352
4315
  if (this.fsw.closed) return;
4353
4316
  if (this.fsw._isIgnored(linkTarget)) return this.fsw._emitReady();
4354
4317
  this.fsw._incrReadyCount();
4355
- this._addToFsEvents(linkTarget || linkPath, (path$1) => {
4318
+ this._addToFsEvents(linkTarget || linkPath, (path) => {
4356
4319
  let aliasedPath = linkPath;
4357
- if (linkTarget && linkTarget !== DOT_SLASH) aliasedPath = path$1.replace(linkTarget, linkPath);
4358
- else if (path$1 !== DOT_SLASH) aliasedPath = sysPath$1.join(linkPath, path$1);
4359
- return transform$1(aliasedPath);
4320
+ if (linkTarget && linkTarget !== DOT_SLASH) aliasedPath = path.replace(linkTarget, linkPath);
4321
+ else if (path !== DOT_SLASH) aliasedPath = sysPath$1.join(linkPath, path);
4322
+ return transform(aliasedPath);
4360
4323
  }, false, curDepth);
4361
4324
  } catch (error) {
4362
4325
  if (this.fsw._handleError(error)) return this.fsw._emitReady();
@@ -4377,10 +4340,10 @@ var require_fsevents_handler = /* @__PURE__ */ __commonJSMin(((exports, module)
4377
4340
  dirObj.add(base);
4378
4341
  if (!opts.ignoreInitial || forceAdd === true) this.fsw._emit(isDir ? EV_ADD_DIR : EV_ADD, pp, stats);
4379
4342
  }
4380
- initWatch(realPath, path$1, wh, processPath) {
4343
+ initWatch(realPath, path, wh, processPath) {
4381
4344
  if (this.fsw.closed) return;
4382
4345
  const closer = this._watchWithFsEvents(wh.watchPath, sysPath$1.resolve(realPath || wh.watchPath), processPath, wh.globFilter);
4383
- this.fsw._addPathCloser(path$1, closer);
4346
+ this.fsw._addPathCloser(path, closer);
4384
4347
  }
4385
4348
  /**
4386
4349
  * Handle added path with fsevents
@@ -4390,17 +4353,17 @@ var require_fsevents_handler = /* @__PURE__ */ __commonJSMin(((exports, module)
4390
4353
  * @param {Number=} priorDepth Level of subdirectories already traversed.
4391
4354
  * @returns {Promise<void>}
4392
4355
  */
4393
- async _addToFsEvents(path$1, transform$1, forceAdd, priorDepth) {
4356
+ async _addToFsEvents(path, transform, forceAdd, priorDepth) {
4394
4357
  if (this.fsw.closed) return;
4395
4358
  const opts = this.fsw.options;
4396
- const processPath = typeof transform$1 === FUNCTION_TYPE ? transform$1 : IDENTITY_FN;
4397
- const wh = this.fsw._getWatchHelpers(path$1);
4359
+ const processPath = typeof transform === FUNCTION_TYPE ? transform : IDENTITY_FN;
4360
+ const wh = this.fsw._getWatchHelpers(path);
4398
4361
  try {
4399
4362
  const stats = await statMethods[wh.statMethod](wh.watchPath);
4400
4363
  if (this.fsw.closed) return;
4401
4364
  if (this.fsw._isIgnored(wh.watchPath, stats)) throw null;
4402
4365
  if (stats.isDirectory()) {
4403
- if (!wh.globFilter) this.emitAdd(processPath(path$1), stats, processPath, opts, forceAdd);
4366
+ if (!wh.globFilter) this.emitAdd(processPath(path), stats, processPath, opts, forceAdd);
4404
4367
  if (priorDepth && priorDepth > opts.depth) return;
4405
4368
  this.fsw._readdirp(wh.watchPath, {
4406
4369
  fileFilter: (entry) => wh.filterPath(entry),
@@ -4428,20 +4391,19 @@ var require_fsevents_handler = /* @__PURE__ */ __commonJSMin(((exports, module)
4428
4391
  this.fsw._emitReady();
4429
4392
  }
4430
4393
  }
4431
- if (opts.persistent && forceAdd !== true) if (typeof transform$1 === FUNCTION_TYPE) this.initWatch(void 0, path$1, wh, processPath);
4394
+ if (opts.persistent && forceAdd !== true) if (typeof transform === FUNCTION_TYPE) this.initWatch(void 0, path, wh, processPath);
4432
4395
  else {
4433
4396
  let realPath;
4434
4397
  try {
4435
4398
  realPath = await realpath(wh.watchPath);
4436
4399
  } catch (e) {}
4437
- this.initWatch(realPath, path$1, wh, processPath);
4400
+ this.initWatch(realPath, path, wh, processPath);
4438
4401
  }
4439
4402
  }
4440
4403
  };
4441
4404
  module.exports = FsEventsHandler;
4442
4405
  module.exports.canUse = canUse;
4443
4406
  }));
4444
-
4445
4407
  //#endregion
4446
4408
  //#region ../../node_modules/.bun/chokidar@3.6.0/node_modules/chokidar/index.js
4447
4409
  var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -4494,23 +4456,23 @@ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
4494
4456
  if (!paths.every((p) => typeof p === STRING_TYPE)) throw new TypeError(`Non-string provided as watch path: ${paths}`);
4495
4457
  return paths.map(normalizePathToUnix);
4496
4458
  };
4497
- const toUnix = (string$2) => {
4498
- let str = string$2.replace(BACK_SLASH_RE, SLASH);
4459
+ const toUnix = (string) => {
4460
+ let str = string.replace(BACK_SLASH_RE, SLASH);
4499
4461
  let prepend = false;
4500
4462
  if (str.startsWith(SLASH_SLASH)) prepend = true;
4501
4463
  while (str.match(DOUBLE_SLASH_RE)) str = str.replace(DOUBLE_SLASH_RE, SLASH);
4502
4464
  if (prepend) str = SLASH + str;
4503
4465
  return str;
4504
4466
  };
4505
- const normalizePathToUnix = (path$1) => toUnix(sysPath.normalize(toUnix(path$1)));
4506
- const normalizeIgnored = (cwd = EMPTY_STR) => (path$1) => {
4507
- if (typeof path$1 !== STRING_TYPE) return path$1;
4508
- return normalizePathToUnix(sysPath.isAbsolute(path$1) ? path$1 : sysPath.join(cwd, path$1));
4467
+ const normalizePathToUnix = (path) => toUnix(sysPath.normalize(toUnix(path)));
4468
+ const normalizeIgnored = (cwd = EMPTY_STR) => (path) => {
4469
+ if (typeof path !== STRING_TYPE) return path;
4470
+ return normalizePathToUnix(sysPath.isAbsolute(path) ? path : sysPath.join(cwd, path));
4509
4471
  };
4510
- const getAbsolutePath = (path$1, cwd) => {
4511
- if (sysPath.isAbsolute(path$1)) return path$1;
4512
- if (path$1.startsWith(BANG)) return BANG + sysPath.join(cwd, path$1.slice(1));
4513
- return sysPath.join(cwd, path$1);
4472
+ const getAbsolutePath = (path, cwd) => {
4473
+ if (sysPath.isAbsolute(path)) return path;
4474
+ if (path.startsWith(BANG)) return BANG + sysPath.join(cwd, path.slice(1));
4475
+ return sysPath.join(cwd, path);
4514
4476
  };
4515
4477
  const undef = (opts, key) => opts[key] === void 0;
4516
4478
  /**
@@ -4570,17 +4532,17 @@ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
4570
4532
  const STAT_METHOD_F = "stat";
4571
4533
  const STAT_METHOD_L = "lstat";
4572
4534
  var WatchHelper = class {
4573
- constructor(path$1, watchPath, follow, fsw) {
4535
+ constructor(path, watchPath, follow, fsw) {
4574
4536
  this.fsw = fsw;
4575
- this.path = path$1 = path$1.replace(REPLACER_RE, EMPTY_STR);
4537
+ this.path = path = path.replace(REPLACER_RE, EMPTY_STR);
4576
4538
  this.watchPath = watchPath;
4577
4539
  this.fullWatchPath = sysPath.resolve(watchPath);
4578
- this.hasGlob = watchPath !== path$1;
4540
+ this.hasGlob = watchPath !== path;
4579
4541
  /** @type {object|boolean} */
4580
- if (path$1 === EMPTY_STR) this.hasGlob = false;
4542
+ if (path === EMPTY_STR) this.hasGlob = false;
4581
4543
  this.globSymlink = this.hasGlob && follow ? void 0 : false;
4582
- this.globFilter = this.hasGlob ? anymatch(path$1, void 0, ANYMATCH_OPTS) : false;
4583
- this.dirParts = this.getDirParts(path$1);
4544
+ this.globFilter = this.hasGlob ? anymatch(path, void 0, ANYMATCH_OPTS) : false;
4545
+ this.dirParts = this.getDirParts(path);
4584
4546
  this.dirParts.forEach((parts) => {
4585
4547
  if (parts.length > 1) parts.pop();
4586
4548
  });
@@ -4604,11 +4566,11 @@ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
4604
4566
  const resolvedPath = this.entryPath(entry);
4605
4567
  return (this.hasGlob && typeof this.globFilter === FUNCTION_TYPE ? this.globFilter(resolvedPath) : true) && this.fsw._isntIgnored(resolvedPath, stats) && this.fsw._hasReadPermissions(stats);
4606
4568
  }
4607
- getDirParts(path$1) {
4569
+ getDirParts(path) {
4608
4570
  if (!this.hasGlob) return [];
4609
4571
  const parts = [];
4610
- (path$1.includes(BRACE_START) ? braces.expand(path$1) : [path$1]).forEach((path$2) => {
4611
- parts.push(sysPath.relative(this.watchPath, path$2).split(SLASH_OR_BACK_SLASH_RE));
4572
+ (path.includes(BRACE_START) ? braces.expand(path) : [path]).forEach((path) => {
4573
+ parts.push(sysPath.relative(this.watchPath, path).split(SLASH_OR_BACK_SLASH_RE));
4612
4574
  });
4613
4575
  return parts;
4614
4576
  }
@@ -4710,30 +4672,30 @@ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
4710
4672
  const { cwd, disableGlobbing } = this.options;
4711
4673
  this.closed = false;
4712
4674
  let paths = unifyPaths(paths_);
4713
- if (cwd) paths = paths.map((path$1) => {
4714
- const absPath = getAbsolutePath(path$1, cwd);
4715
- if (disableGlobbing || !isGlob(path$1)) return absPath;
4675
+ if (cwd) paths = paths.map((path) => {
4676
+ const absPath = getAbsolutePath(path, cwd);
4677
+ if (disableGlobbing || !isGlob(path)) return absPath;
4716
4678
  return normalizePath(absPath);
4717
4679
  });
4718
- paths = paths.filter((path$1) => {
4719
- if (path$1.startsWith(BANG)) {
4720
- this._ignoredPaths.add(path$1.slice(1));
4680
+ paths = paths.filter((path) => {
4681
+ if (path.startsWith(BANG)) {
4682
+ this._ignoredPaths.add(path.slice(1));
4721
4683
  return false;
4722
4684
  }
4723
- this._ignoredPaths.delete(path$1);
4724
- this._ignoredPaths.delete(path$1 + SLASH_GLOBSTAR);
4685
+ this._ignoredPaths.delete(path);
4686
+ this._ignoredPaths.delete(path + SLASH_GLOBSTAR);
4725
4687
  this._userIgnored = void 0;
4726
4688
  return true;
4727
4689
  });
4728
4690
  if (this.options.useFsEvents && this._fsEventsHandler) {
4729
4691
  if (!this._readyCount) this._readyCount = paths.length;
4730
4692
  if (this.options.persistent) this._readyCount += paths.length;
4731
- paths.forEach((path$1) => this._fsEventsHandler._addToFsEvents(path$1));
4693
+ paths.forEach((path) => this._fsEventsHandler._addToFsEvents(path));
4732
4694
  } else {
4733
4695
  if (!this._readyCount) this._readyCount = 0;
4734
4696
  this._readyCount += paths.length;
4735
- Promise.all(paths.map(async (path$1) => {
4736
- const res = await this._nodeFsHandler._addToNodeFs(path$1, !_internal, 0, 0, _origAdd);
4697
+ Promise.all(paths.map(async (path) => {
4698
+ const res = await this._nodeFsHandler._addToNodeFs(path, !_internal, 0, 0, _origAdd);
4737
4699
  if (res) this._emitReady();
4738
4700
  return res;
4739
4701
  })).then((results) => {
@@ -4754,14 +4716,14 @@ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
4754
4716
  if (this.closed) return this;
4755
4717
  const paths = unifyPaths(paths_);
4756
4718
  const { cwd } = this.options;
4757
- paths.forEach((path$1) => {
4758
- if (!sysPath.isAbsolute(path$1) && !this._closers.has(path$1)) {
4759
- if (cwd) path$1 = sysPath.join(cwd, path$1);
4760
- path$1 = sysPath.resolve(path$1);
4719
+ paths.forEach((path) => {
4720
+ if (!sysPath.isAbsolute(path) && !this._closers.has(path)) {
4721
+ if (cwd) path = sysPath.join(cwd, path);
4722
+ path = sysPath.resolve(path);
4761
4723
  }
4762
- this._closePath(path$1);
4763
- this._ignoredPaths.add(path$1);
4764
- if (this._watched.has(path$1)) this._ignoredPaths.add(path$1 + SLASH_GLOBSTAR);
4724
+ this._closePath(path);
4725
+ this._ignoredPaths.add(path);
4726
+ if (this._watched.has(path)) this._ignoredPaths.add(path + SLASH_GLOBSTAR);
4765
4727
  this._userIgnored = void 0;
4766
4728
  });
4767
4729
  return this;
@@ -4822,37 +4784,37 @@ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
4822
4784
  * @param {*=} val3
4823
4785
  * @returns the error if defined, otherwise the value of the FSWatcher instance's `closed` flag
4824
4786
  */
4825
- async _emit(event, path$1, val1, val2, val3) {
4787
+ async _emit(event, path, val1, val2, val3) {
4826
4788
  if (this.closed) return;
4827
4789
  const opts = this.options;
4828
- if (isWindows) path$1 = sysPath.normalize(path$1);
4829
- if (opts.cwd) path$1 = sysPath.relative(opts.cwd, path$1);
4790
+ if (isWindows) path = sysPath.normalize(path);
4791
+ if (opts.cwd) path = sysPath.relative(opts.cwd, path);
4830
4792
  /** @type Array<any> */
4831
- const args = [event, path$1];
4793
+ const args = [event, path];
4832
4794
  if (val3 !== void 0) args.push(val1, val2, val3);
4833
4795
  else if (val2 !== void 0) args.push(val1, val2);
4834
4796
  else if (val1 !== void 0) args.push(val1);
4835
4797
  const awf = opts.awaitWriteFinish;
4836
4798
  let pw;
4837
- if (awf && (pw = this._pendingWrites.get(path$1))) {
4799
+ if (awf && (pw = this._pendingWrites.get(path))) {
4838
4800
  pw.lastChange = /* @__PURE__ */ new Date();
4839
4801
  return this;
4840
4802
  }
4841
4803
  if (opts.atomic) {
4842
4804
  if (event === EV_UNLINK) {
4843
- this._pendingUnlinks.set(path$1, args);
4805
+ this._pendingUnlinks.set(path, args);
4844
4806
  setTimeout(() => {
4845
- this._pendingUnlinks.forEach((entry, path$2) => {
4807
+ this._pendingUnlinks.forEach((entry, path) => {
4846
4808
  this.emit(...entry);
4847
4809
  this.emit(EV_ALL, ...entry);
4848
- this._pendingUnlinks.delete(path$2);
4810
+ this._pendingUnlinks.delete(path);
4849
4811
  });
4850
4812
  }, typeof opts.atomic === "number" ? opts.atomic : 100);
4851
4813
  return this;
4852
4814
  }
4853
- if (event === EV_ADD && this._pendingUnlinks.has(path$1)) {
4815
+ if (event === EV_ADD && this._pendingUnlinks.has(path)) {
4854
4816
  event = args[0] = EV_CHANGE;
4855
- this._pendingUnlinks.delete(path$1);
4817
+ this._pendingUnlinks.delete(path);
4856
4818
  }
4857
4819
  }
4858
4820
  if (awf && (event === EV_ADD || event === EV_CHANGE) && this._readyEmitted) {
@@ -4867,14 +4829,14 @@ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
4867
4829
  this.emitWithAll(event, args);
4868
4830
  }
4869
4831
  };
4870
- this._awaitWriteFinish(path$1, awf.stabilityThreshold, event, awfEmit);
4832
+ this._awaitWriteFinish(path, awf.stabilityThreshold, event, awfEmit);
4871
4833
  return this;
4872
4834
  }
4873
4835
  if (event === EV_CHANGE) {
4874
- if (!this._throttle(EV_CHANGE, path$1, 50)) return this;
4836
+ if (!this._throttle(EV_CHANGE, path, 50)) return this;
4875
4837
  }
4876
4838
  if (opts.alwaysStat && val1 === void 0 && (event === EV_ADD || event === EV_ADD_DIR || event === EV_CHANGE)) {
4877
- const fullPath = opts.cwd ? sysPath.join(opts.cwd, path$1) : path$1;
4839
+ const fullPath = opts.cwd ? sysPath.join(opts.cwd, path) : path;
4878
4840
  let stats;
4879
4841
  try {
4880
4842
  stats = await stat(fullPath);
@@ -4902,21 +4864,21 @@ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
4902
4864
  * @param {Number} timeout duration of time to suppress duplicate actions
4903
4865
  * @returns {Object|false} tracking object or false if action should be suppressed
4904
4866
  */
4905
- _throttle(actionType, path$1, timeout) {
4867
+ _throttle(actionType, path, timeout) {
4906
4868
  if (!this._throttled.has(actionType)) this._throttled.set(actionType, /* @__PURE__ */ new Map());
4907
4869
  /** @type {Map<Path, Object>} */
4908
4870
  const action = this._throttled.get(actionType);
4909
4871
  /** @type {Object} */
4910
- const actionPath = action.get(path$1);
4872
+ const actionPath = action.get(path);
4911
4873
  if (actionPath) {
4912
4874
  actionPath.count++;
4913
4875
  return false;
4914
4876
  }
4915
4877
  let timeoutObject;
4916
4878
  const clear = () => {
4917
- const item = action.get(path$1);
4879
+ const item = action.get(path);
4918
4880
  const count = item ? item.count : 0;
4919
- action.delete(path$1);
4881
+ action.delete(path);
4920
4882
  clearTimeout(timeoutObject);
4921
4883
  if (item) clearTimeout(item.timeoutObject);
4922
4884
  return count;
@@ -4927,7 +4889,7 @@ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
4927
4889
  clear,
4928
4890
  count: 0
4929
4891
  };
4930
- action.set(path$1, thr);
4892
+ action.set(path, thr);
4931
4893
  return thr;
4932
4894
  }
4933
4895
  _incrReadyCount() {
@@ -4941,30 +4903,30 @@ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
4941
4903
  * @param {EventName} event
4942
4904
  * @param {Function} awfEmit Callback to be called when ready for event to be emitted.
4943
4905
  */
4944
- _awaitWriteFinish(path$1, threshold, event, awfEmit) {
4906
+ _awaitWriteFinish(path, threshold, event, awfEmit) {
4945
4907
  let timeoutHandler;
4946
- let fullPath = path$1;
4947
- if (this.options.cwd && !sysPath.isAbsolute(path$1)) fullPath = sysPath.join(this.options.cwd, path$1);
4908
+ let fullPath = path;
4909
+ if (this.options.cwd && !sysPath.isAbsolute(path)) fullPath = sysPath.join(this.options.cwd, path);
4948
4910
  const now = /* @__PURE__ */ new Date();
4949
4911
  const awaitWriteFinish = (prevStat) => {
4950
4912
  fs.stat(fullPath, (err, curStat) => {
4951
- if (err || !this._pendingWrites.has(path$1)) {
4913
+ if (err || !this._pendingWrites.has(path)) {
4952
4914
  if (err && err.code !== "ENOENT") awfEmit(err);
4953
4915
  return;
4954
4916
  }
4955
- const now$1 = Number(/* @__PURE__ */ new Date());
4956
- if (prevStat && curStat.size !== prevStat.size) this._pendingWrites.get(path$1).lastChange = now$1;
4957
- if (now$1 - this._pendingWrites.get(path$1).lastChange >= threshold) {
4958
- this._pendingWrites.delete(path$1);
4917
+ const now = Number(/* @__PURE__ */ new Date());
4918
+ if (prevStat && curStat.size !== prevStat.size) this._pendingWrites.get(path).lastChange = now;
4919
+ if (now - this._pendingWrites.get(path).lastChange >= threshold) {
4920
+ this._pendingWrites.delete(path);
4959
4921
  awfEmit(void 0, curStat);
4960
4922
  } else timeoutHandler = setTimeout(awaitWriteFinish, this.options.awaitWriteFinish.pollInterval, curStat);
4961
4923
  });
4962
4924
  };
4963
- if (!this._pendingWrites.has(path$1)) {
4964
- this._pendingWrites.set(path$1, {
4925
+ if (!this._pendingWrites.has(path)) {
4926
+ this._pendingWrites.set(path, {
4965
4927
  lastChange: now,
4966
4928
  cancelWait: () => {
4967
- this._pendingWrites.delete(path$1);
4929
+ this._pendingWrites.delete(path);
4968
4930
  clearTimeout(timeoutHandler);
4969
4931
  return event;
4970
4932
  }
@@ -4981,19 +4943,19 @@ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
4981
4943
  * @param {fs.Stats=} stats result of fs.stat
4982
4944
  * @returns {Boolean}
4983
4945
  */
4984
- _isIgnored(path$1, stats) {
4985
- if (this.options.atomic && DOT_RE.test(path$1)) return true;
4946
+ _isIgnored(path, stats) {
4947
+ if (this.options.atomic && DOT_RE.test(path)) return true;
4986
4948
  if (!this._userIgnored) {
4987
4949
  const { cwd } = this.options;
4988
4950
  const ign = this.options.ignored;
4989
4951
  const ignored = ign && ign.map(normalizeIgnored(cwd));
4990
- const paths = arrify(ignored).filter((path$2) => typeof path$2 === STRING_TYPE && !isGlob(path$2)).map((path$2) => path$2 + SLASH_GLOBSTAR);
4952
+ const paths = arrify(ignored).filter((path) => typeof path === STRING_TYPE && !isGlob(path)).map((path) => path + SLASH_GLOBSTAR);
4991
4953
  this._userIgnored = anymatch(this._getGlobIgnored().map(normalizeIgnored(cwd)).concat(ignored, paths), void 0, ANYMATCH_OPTS);
4992
4954
  }
4993
- return this._userIgnored([path$1, stats]);
4955
+ return this._userIgnored([path, stats]);
4994
4956
  }
4995
- _isntIgnored(path$1, stat) {
4996
- return !this._isIgnored(path$1, stat);
4957
+ _isntIgnored(path, stat) {
4958
+ return !this._isIgnored(path, stat);
4997
4959
  }
4998
4960
  /**
4999
4961
  * Provides a set of common helpers and properties relating to symlink and glob handling.
@@ -5001,10 +4963,10 @@ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
5001
4963
  * @param {Number=} depth at any depth > 0, this isn't a glob
5002
4964
  * @returns {WatchHelper} object containing helpers for this path
5003
4965
  */
5004
- _getWatchHelpers(path$1, depth) {
5005
- const watchPath = depth || this.options.disableGlobbing || !isGlob(path$1) ? path$1 : globParent(path$1);
4966
+ _getWatchHelpers(path, depth) {
4967
+ const watchPath = depth || this.options.disableGlobbing || !isGlob(path) ? path : globParent(path);
5006
4968
  const follow = this.options.followSymlinks;
5007
- return new WatchHelper(path$1, watchPath, follow, this);
4969
+ return new WatchHelper(path, watchPath, follow, this);
5008
4970
  }
5009
4971
  /**
5010
4972
  * Provides directory tracking objects
@@ -5038,57 +5000,57 @@ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
5038
5000
  * @returns {void}
5039
5001
  */
5040
5002
  _remove(directory, item, isDirectory) {
5041
- const path$1 = sysPath.join(directory, item);
5042
- const fullPath = sysPath.resolve(path$1);
5043
- isDirectory = isDirectory != null ? isDirectory : this._watched.has(path$1) || this._watched.has(fullPath);
5044
- if (!this._throttle("remove", path$1, 100)) return;
5003
+ const path = sysPath.join(directory, item);
5004
+ const fullPath = sysPath.resolve(path);
5005
+ isDirectory = isDirectory != null ? isDirectory : this._watched.has(path) || this._watched.has(fullPath);
5006
+ if (!this._throttle("remove", path, 100)) return;
5045
5007
  if (!isDirectory && !this.options.useFsEvents && this._watched.size === 1) this.add(directory, item, true);
5046
- this._getWatchedDir(path$1).getChildren().forEach((nested) => this._remove(path$1, nested));
5008
+ this._getWatchedDir(path).getChildren().forEach((nested) => this._remove(path, nested));
5047
5009
  const parent = this._getWatchedDir(directory);
5048
5010
  const wasTracked = parent.has(item);
5049
5011
  parent.remove(item);
5050
5012
  if (this._symlinkPaths.has(fullPath)) this._symlinkPaths.delete(fullPath);
5051
- let relPath = path$1;
5052
- if (this.options.cwd) relPath = sysPath.relative(this.options.cwd, path$1);
5013
+ let relPath = path;
5014
+ if (this.options.cwd) relPath = sysPath.relative(this.options.cwd, path);
5053
5015
  if (this.options.awaitWriteFinish && this._pendingWrites.has(relPath)) {
5054
5016
  if (this._pendingWrites.get(relPath).cancelWait() === EV_ADD) return;
5055
5017
  }
5056
- this._watched.delete(path$1);
5018
+ this._watched.delete(path);
5057
5019
  this._watched.delete(fullPath);
5058
5020
  const eventName = isDirectory ? EV_UNLINK_DIR : EV_UNLINK;
5059
- if (wasTracked && !this._isIgnored(path$1)) this._emit(eventName, path$1);
5060
- if (!this.options.useFsEvents) this._closePath(path$1);
5021
+ if (wasTracked && !this._isIgnored(path)) this._emit(eventName, path);
5022
+ if (!this.options.useFsEvents) this._closePath(path);
5061
5023
  }
5062
5024
  /**
5063
5025
  * Closes all watchers for a path
5064
5026
  * @param {Path} path
5065
5027
  */
5066
- _closePath(path$1) {
5067
- this._closeFile(path$1);
5068
- const dir = sysPath.dirname(path$1);
5069
- this._getWatchedDir(dir).remove(sysPath.basename(path$1));
5028
+ _closePath(path) {
5029
+ this._closeFile(path);
5030
+ const dir = sysPath.dirname(path);
5031
+ this._getWatchedDir(dir).remove(sysPath.basename(path));
5070
5032
  }
5071
5033
  /**
5072
5034
  * Closes only file-specific watchers
5073
5035
  * @param {Path} path
5074
5036
  */
5075
- _closeFile(path$1) {
5076
- const closers = this._closers.get(path$1);
5037
+ _closeFile(path) {
5038
+ const closers = this._closers.get(path);
5077
5039
  if (!closers) return;
5078
5040
  closers.forEach((closer) => closer());
5079
- this._closers.delete(path$1);
5041
+ this._closers.delete(path);
5080
5042
  }
5081
5043
  /**
5082
5044
  *
5083
5045
  * @param {Path} path
5084
5046
  * @param {Function} closer
5085
5047
  */
5086
- _addPathCloser(path$1, closer) {
5048
+ _addPathCloser(path, closer) {
5087
5049
  if (!closer) return;
5088
- let list = this._closers.get(path$1);
5050
+ let list = this._closers.get(path);
5089
5051
  if (!list) {
5090
5052
  list = [];
5091
- this._closers.set(path$1, list);
5053
+ this._closers.set(path, list);
5092
5054
  }
5093
5055
  list.push(closer);
5094
5056
  }
@@ -5126,12 +5088,8 @@ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
5126
5088
  };
5127
5089
  exports.watch = watch;
5128
5090
  }));
5129
-
5130
- //#endregion
5131
- //#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/core.js
5132
- /** A special constant with type `never` */
5133
- const NEVER = Object.freeze({ status: "aborted" });
5134
- function $constructor(name, initializer$2, params) {
5091
+ Object.freeze({ status: "aborted" });
5092
+ function $constructor(name, initializer, params) {
5135
5093
  function init(inst, def) {
5136
5094
  if (!inst._zod) Object.defineProperty(inst, "_zod", {
5137
5095
  value: {
@@ -5143,7 +5101,7 @@ function $constructor(name, initializer$2, params) {
5143
5101
  });
5144
5102
  if (inst._zod.traits.has(name)) return;
5145
5103
  inst._zod.traits.add(name);
5146
- initializer$2(inst, def);
5104
+ initializer(inst, def);
5147
5105
  const proto = _.prototype;
5148
5106
  const keys = Object.keys(proto);
5149
5107
  for (let i = 0; i < keys.length; i++) {
@@ -5155,10 +5113,10 @@ function $constructor(name, initializer$2, params) {
5155
5113
  class Definition extends Parent {}
5156
5114
  Object.defineProperty(Definition, "name", { value: name });
5157
5115
  function _(def) {
5158
- var _a$1;
5116
+ var _a;
5159
5117
  const inst = params?.Parent ? new Definition() : this;
5160
5118
  init(inst, def);
5161
- (_a$1 = inst._zod).deferred ?? (_a$1.deferred = []);
5119
+ (_a = inst._zod).deferred ?? (_a.deferred = []);
5162
5120
  for (const fn of inst._zod.deferred) fn();
5163
5121
  return inst;
5164
5122
  }
@@ -5186,7 +5144,6 @@ function config(newConfig) {
5186
5144
  if (newConfig) Object.assign(globalConfig, newConfig);
5187
5145
  return globalConfig;
5188
5146
  }
5189
-
5190
5147
  //#endregion
5191
5148
  //#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/util.js
5192
5149
  function getEnumValues(entries) {
@@ -5227,9 +5184,9 @@ function floatSafeRemainder(val, step) {
5227
5184
  return Number.parseInt(val.toFixed(decCount).replace(".", "")) % Number.parseInt(step.toFixed(decCount).replace(".", "")) / 10 ** decCount;
5228
5185
  }
5229
5186
  const EVALUATING = Symbol("evaluating");
5230
- function defineLazy(object$1, key, getter) {
5187
+ function defineLazy(object, key, getter) {
5231
5188
  let value = void 0;
5232
- Object.defineProperty(object$1, key, {
5189
+ Object.defineProperty(object, key, {
5233
5190
  get() {
5234
5191
  if (value === EVALUATING) return;
5235
5192
  if (value === void 0) {
@@ -5239,7 +5196,7 @@ function defineLazy(object$1, key, getter) {
5239
5196
  return value;
5240
5197
  },
5241
5198
  set(v) {
5242
- Object.defineProperty(object$1, key, { value: v });
5199
+ Object.defineProperty(object, key, { value: v });
5243
5200
  },
5244
5201
  configurable: true
5245
5202
  });
@@ -5254,10 +5211,7 @@ function assignProp(target, prop, value) {
5254
5211
  }
5255
5212
  function mergeDefs(...defs) {
5256
5213
  const mergedDescriptors = {};
5257
- for (const def of defs) {
5258
- const descriptors = Object.getOwnPropertyDescriptors(def);
5259
- Object.assign(mergedDescriptors, descriptors);
5260
- }
5214
+ for (const def of defs) Object.assign(mergedDescriptors, Object.getOwnPropertyDescriptors(def));
5261
5215
  return Object.defineProperties({}, mergedDescriptors);
5262
5216
  }
5263
5217
  function esc(str) {
@@ -5463,23 +5417,23 @@ function aborted(x, startIndex = 0) {
5463
5417
  for (let i = startIndex; i < x.issues.length; i++) if (x.issues[i]?.continue !== true) return true;
5464
5418
  return false;
5465
5419
  }
5466
- function prefixIssues(path$1, issues) {
5420
+ function prefixIssues(path, issues) {
5467
5421
  return issues.map((iss) => {
5468
- var _a$1;
5469
- (_a$1 = iss).path ?? (_a$1.path = []);
5470
- iss.path.unshift(path$1);
5422
+ var _a;
5423
+ (_a = iss).path ?? (_a.path = []);
5424
+ iss.path.unshift(path);
5471
5425
  return iss;
5472
5426
  });
5473
5427
  }
5474
5428
  function unwrapMessage(message) {
5475
5429
  return typeof message === "string" ? message : message?.message;
5476
5430
  }
5477
- function finalizeIssue(iss, ctx, config$1) {
5431
+ function finalizeIssue(iss, ctx, config) {
5478
5432
  const full = {
5479
5433
  ...iss,
5480
5434
  path: iss.path ?? []
5481
5435
  };
5482
- if (!iss.message) full.message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config$1.customError?.(iss)) ?? unwrapMessage(config$1.localeError?.(iss)) ?? "Invalid input";
5436
+ if (!iss.message) full.message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
5483
5437
  delete full.inst;
5484
5438
  delete full.continue;
5485
5439
  if (!ctx?.reportInput) delete full.input;
@@ -5500,7 +5454,6 @@ function issue(...args) {
5500
5454
  };
5501
5455
  return { ...iss };
5502
5456
  }
5503
-
5504
5457
  //#endregion
5505
5458
  //#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/errors.js
5506
5459
  const initializer$1 = (inst, def) => {
@@ -5521,7 +5474,7 @@ const initializer$1 = (inst, def) => {
5521
5474
  };
5522
5475
  const $ZodError = $constructor("$ZodError", initializer$1);
5523
5476
  const $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
5524
- function flattenError(error, mapper = (issue$1) => issue$1.message) {
5477
+ function flattenError(error, mapper = (issue) => issue.message) {
5525
5478
  const fieldErrors = {};
5526
5479
  const formErrors = [];
5527
5480
  for (const sub of error.issues) if (sub.path.length > 0) {
@@ -5533,22 +5486,22 @@ function flattenError(error, mapper = (issue$1) => issue$1.message) {
5533
5486
  fieldErrors
5534
5487
  };
5535
5488
  }
5536
- function formatError(error, mapper = (issue$1) => issue$1.message) {
5489
+ function formatError(error, mapper = (issue) => issue.message) {
5537
5490
  const fieldErrors = { _errors: [] };
5538
- const processError = (error$1) => {
5539
- for (const issue$1 of error$1.issues) if (issue$1.code === "invalid_union" && issue$1.errors.length) issue$1.errors.map((issues) => processError({ issues }));
5540
- else if (issue$1.code === "invalid_key") processError({ issues: issue$1.issues });
5541
- else if (issue$1.code === "invalid_element") processError({ issues: issue$1.issues });
5542
- else if (issue$1.path.length === 0) fieldErrors._errors.push(mapper(issue$1));
5491
+ const processError = (error) => {
5492
+ for (const issue of error.issues) if (issue.code === "invalid_union" && issue.errors.length) issue.errors.map((issues) => processError({ issues }));
5493
+ else if (issue.code === "invalid_key") processError({ issues: issue.issues });
5494
+ else if (issue.code === "invalid_element") processError({ issues: issue.issues });
5495
+ else if (issue.path.length === 0) fieldErrors._errors.push(mapper(issue));
5543
5496
  else {
5544
5497
  let curr = fieldErrors;
5545
5498
  let i = 0;
5546
- while (i < issue$1.path.length) {
5547
- const el = issue$1.path[i];
5548
- if (!(i === issue$1.path.length - 1)) curr[el] = curr[el] || { _errors: [] };
5499
+ while (i < issue.path.length) {
5500
+ const el = issue.path[i];
5501
+ if (!(i === issue.path.length - 1)) curr[el] = curr[el] || { _errors: [] };
5549
5502
  else {
5550
5503
  curr[el] = curr[el] || { _errors: [] };
5551
- curr[el]._errors.push(mapper(issue$1));
5504
+ curr[el]._errors.push(mapper(issue));
5552
5505
  }
5553
5506
  curr = curr[el];
5554
5507
  i++;
@@ -5558,7 +5511,6 @@ function formatError(error, mapper = (issue$1) => issue$1.message) {
5558
5511
  processError(error);
5559
5512
  return fieldErrors;
5560
5513
  }
5561
-
5562
5514
  //#endregion
5563
5515
  //#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/parse.js
5564
5516
  const _parse = (_Err) => (schema, value, _ctx, _params) => {
@@ -5575,7 +5527,6 @@ const _parse = (_Err) => (schema, value, _ctx, _params) => {
5575
5527
  }
5576
5528
  return result.value;
5577
5529
  };
5578
- const parse$1 = /* @__PURE__ */ _parse($ZodRealError);
5579
5530
  const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
5580
5531
  const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
5581
5532
  let result = schema._zod.run({
@@ -5590,7 +5541,6 @@ const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
5590
5541
  }
5591
5542
  return result.value;
5592
5543
  };
5593
- const parseAsync$1 = /* @__PURE__ */ _parseAsync($ZodRealError);
5594
5544
  const _safeParse = (_Err) => (schema, value, _ctx) => {
5595
5545
  const ctx = _ctx ? {
5596
5546
  ..._ctx,
@@ -5630,39 +5580,30 @@ const _encode = (_Err) => (schema, value, _ctx) => {
5630
5580
  const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
5631
5581
  return _parse(_Err)(schema, value, ctx);
5632
5582
  };
5633
- const encode$1 = /* @__PURE__ */ _encode($ZodRealError);
5634
5583
  const _decode = (_Err) => (schema, value, _ctx) => {
5635
5584
  return _parse(_Err)(schema, value, _ctx);
5636
5585
  };
5637
- const decode$1 = /* @__PURE__ */ _decode($ZodRealError);
5638
5586
  const _encodeAsync = (_Err) => async (schema, value, _ctx) => {
5639
5587
  const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
5640
5588
  return _parseAsync(_Err)(schema, value, ctx);
5641
5589
  };
5642
- const encodeAsync$1 = /* @__PURE__ */ _encodeAsync($ZodRealError);
5643
5590
  const _decodeAsync = (_Err) => async (schema, value, _ctx) => {
5644
5591
  return _parseAsync(_Err)(schema, value, _ctx);
5645
5592
  };
5646
- const decodeAsync$1 = /* @__PURE__ */ _decodeAsync($ZodRealError);
5647
5593
  const _safeEncode = (_Err) => (schema, value, _ctx) => {
5648
5594
  const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
5649
5595
  return _safeParse(_Err)(schema, value, ctx);
5650
5596
  };
5651
- const safeEncode$1 = /* @__PURE__ */ _safeEncode($ZodRealError);
5652
5597
  const _safeDecode = (_Err) => (schema, value, _ctx) => {
5653
5598
  return _safeParse(_Err)(schema, value, _ctx);
5654
5599
  };
5655
- const safeDecode$1 = /* @__PURE__ */ _safeDecode($ZodRealError);
5656
5600
  const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
5657
5601
  const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
5658
5602
  return _safeParseAsync(_Err)(schema, value, ctx);
5659
5603
  };
5660
- const safeEncodeAsync$1 = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
5661
5604
  const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
5662
5605
  return _safeParseAsync(_Err)(schema, value, _ctx);
5663
5606
  };
5664
- const safeDecodeAsync$1 = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
5665
-
5666
5607
  //#endregion
5667
5608
  //#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/regexes.js
5668
5609
  const cuid = /^[cC][^\s-]{8,}$/;
@@ -5678,9 +5619,9 @@ const guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9
5678
5619
  /** Returns a regex for validating an RFC 9562/4122 UUID.
5679
5620
  *
5680
5621
  * @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */
5681
- const uuid = (version$1) => {
5682
- if (!version$1) return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;
5683
- return /* @__PURE__ */ new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version$1}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
5622
+ const uuid = (version) => {
5623
+ if (!version) return /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;
5624
+ return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
5684
5625
  };
5685
5626
  /** Practical email validation */
5686
5627
  const email = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
@@ -5702,32 +5643,32 @@ function timeSource(args) {
5702
5643
  return typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
5703
5644
  }
5704
5645
  function time$1(args) {
5705
- return /* @__PURE__ */ new RegExp(`^${timeSource(args)}$`);
5646
+ return new RegExp(`^${timeSource(args)}$`);
5706
5647
  }
5707
5648
  function datetime$1(args) {
5708
- const time$2 = timeSource({ precision: args.precision });
5649
+ const time = timeSource({ precision: args.precision });
5709
5650
  const opts = ["Z"];
5710
5651
  if (args.local) opts.push("");
5711
5652
  if (args.offset) opts.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);
5712
- const timeRegex = `${time$2}(?:${opts.join("|")})`;
5713
- return /* @__PURE__ */ new RegExp(`^${dateSource}T(?:${timeRegex})$`);
5653
+ const timeRegex = `${time}(?:${opts.join("|")})`;
5654
+ return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
5714
5655
  }
5715
5656
  const string$1 = (params) => {
5716
5657
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
5717
- return /* @__PURE__ */ new RegExp(`^${regex}$`);
5658
+ return new RegExp(`^${regex}$`);
5718
5659
  };
5719
5660
  const integer = /^-?\d+$/;
5720
5661
  const number$1 = /^-?\d+(?:\.\d+)?$/;
5662
+ const boolean$1 = /^(?:true|false)$/i;
5721
5663
  const lowercase = /^[^A-Z]*$/;
5722
5664
  const uppercase = /^[^a-z]*$/;
5723
-
5724
5665
  //#endregion
5725
5666
  //#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/checks.js
5726
5667
  const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
5727
- var _a$1;
5668
+ var _a;
5728
5669
  inst._zod ?? (inst._zod = {});
5729
5670
  inst._zod.def = def;
5730
- (_a$1 = inst._zod).onattach ?? (_a$1.onattach = []);
5671
+ (_a = inst._zod).onattach ?? (_a.onattach = []);
5731
5672
  });
5732
5673
  const numericOriginMap = {
5733
5674
  number: "number",
@@ -5737,8 +5678,8 @@ const numericOriginMap = {
5737
5678
  const $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (inst, def) => {
5738
5679
  $ZodCheck.init(inst, def);
5739
5680
  const origin = numericOriginMap[typeof def.value];
5740
- inst._zod.onattach.push((inst$1) => {
5741
- const bag = inst$1._zod.bag;
5681
+ inst._zod.onattach.push((inst) => {
5682
+ const bag = inst._zod.bag;
5742
5683
  const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
5743
5684
  if (def.value < curr) if (def.inclusive) bag.maximum = def.value;
5744
5685
  else bag.exclusiveMaximum = def.value;
@@ -5759,8 +5700,8 @@ const $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (ins
5759
5700
  const $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan", (inst, def) => {
5760
5701
  $ZodCheck.init(inst, def);
5761
5702
  const origin = numericOriginMap[typeof def.value];
5762
- inst._zod.onattach.push((inst$1) => {
5763
- const bag = inst$1._zod.bag;
5703
+ inst._zod.onattach.push((inst) => {
5704
+ const bag = inst._zod.bag;
5764
5705
  const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
5765
5706
  if (def.value > curr) if (def.inclusive) bag.minimum = def.value;
5766
5707
  else bag.exclusiveMinimum = def.value;
@@ -5780,9 +5721,9 @@ const $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan"
5780
5721
  });
5781
5722
  const $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
5782
5723
  $ZodCheck.init(inst, def);
5783
- inst._zod.onattach.push((inst$1) => {
5784
- var _a$1;
5785
- (_a$1 = inst$1._zod.bag).multipleOf ?? (_a$1.multipleOf = def.value);
5724
+ inst._zod.onattach.push((inst) => {
5725
+ var _a;
5726
+ (_a = inst._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
5786
5727
  });
5787
5728
  inst._zod.check = (payload) => {
5788
5729
  if (typeof payload.value !== typeof def.value) throw new Error("Cannot mix number and bigint in multiple_of check.");
@@ -5803,8 +5744,8 @@ const $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberForma
5803
5744
  const isInt = def.format?.includes("int");
5804
5745
  const origin = isInt ? "int" : "number";
5805
5746
  const [minimum, maximum] = NUMBER_FORMAT_RANGES[def.format];
5806
- inst._zod.onattach.push((inst$1) => {
5807
- const bag = inst$1._zod.bag;
5747
+ inst._zod.onattach.push((inst) => {
5748
+ const bag = inst._zod.bag;
5808
5749
  bag.format = def.format;
5809
5750
  bag.minimum = minimum;
5810
5751
  bag.maximum = maximum;
@@ -5869,15 +5810,15 @@ const $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberForma
5869
5810
  };
5870
5811
  });
5871
5812
  const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
5872
- var _a$1;
5813
+ var _a;
5873
5814
  $ZodCheck.init(inst, def);
5874
- (_a$1 = inst._zod.def).when ?? (_a$1.when = (payload) => {
5815
+ (_a = inst._zod.def).when ?? (_a.when = (payload) => {
5875
5816
  const val = payload.value;
5876
5817
  return !nullish(val) && val.length !== void 0;
5877
5818
  });
5878
- inst._zod.onattach.push((inst$1) => {
5879
- const curr = inst$1._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
5880
- if (def.maximum < curr) inst$1._zod.bag.maximum = def.maximum;
5819
+ inst._zod.onattach.push((inst) => {
5820
+ const curr = inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
5821
+ if (def.maximum < curr) inst._zod.bag.maximum = def.maximum;
5881
5822
  });
5882
5823
  inst._zod.check = (payload) => {
5883
5824
  const input = payload.value;
@@ -5895,15 +5836,15 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
5895
5836
  };
5896
5837
  });
5897
5838
  const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
5898
- var _a$1;
5839
+ var _a;
5899
5840
  $ZodCheck.init(inst, def);
5900
- (_a$1 = inst._zod.def).when ?? (_a$1.when = (payload) => {
5841
+ (_a = inst._zod.def).when ?? (_a.when = (payload) => {
5901
5842
  const val = payload.value;
5902
5843
  return !nullish(val) && val.length !== void 0;
5903
5844
  });
5904
- inst._zod.onattach.push((inst$1) => {
5905
- const curr = inst$1._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
5906
- if (def.minimum > curr) inst$1._zod.bag.minimum = def.minimum;
5845
+ inst._zod.onattach.push((inst) => {
5846
+ const curr = inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
5847
+ if (def.minimum > curr) inst._zod.bag.minimum = def.minimum;
5907
5848
  });
5908
5849
  inst._zod.check = (payload) => {
5909
5850
  const input = payload.value;
@@ -5921,14 +5862,14 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
5921
5862
  };
5922
5863
  });
5923
5864
  const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
5924
- var _a$1;
5865
+ var _a;
5925
5866
  $ZodCheck.init(inst, def);
5926
- (_a$1 = inst._zod.def).when ?? (_a$1.when = (payload) => {
5867
+ (_a = inst._zod.def).when ?? (_a.when = (payload) => {
5927
5868
  const val = payload.value;
5928
5869
  return !nullish(val) && val.length !== void 0;
5929
5870
  });
5930
- inst._zod.onattach.push((inst$1) => {
5931
- const bag = inst$1._zod.bag;
5871
+ inst._zod.onattach.push((inst) => {
5872
+ const bag = inst._zod.bag;
5932
5873
  bag.minimum = def.length;
5933
5874
  bag.maximum = def.length;
5934
5875
  bag.length = def.length;
@@ -5957,17 +5898,17 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
5957
5898
  };
5958
5899
  });
5959
5900
  const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
5960
- var _a$1, _b;
5901
+ var _a, _b;
5961
5902
  $ZodCheck.init(inst, def);
5962
- inst._zod.onattach.push((inst$1) => {
5963
- const bag = inst$1._zod.bag;
5903
+ inst._zod.onattach.push((inst) => {
5904
+ const bag = inst._zod.bag;
5964
5905
  bag.format = def.format;
5965
5906
  if (def.pattern) {
5966
5907
  bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
5967
5908
  bag.patterns.add(def.pattern);
5968
5909
  }
5969
5910
  });
5970
- if (def.pattern) (_a$1 = inst._zod).check ?? (_a$1.check = (payload) => {
5911
+ if (def.pattern) (_a = inst._zod).check ?? (_a.check = (payload) => {
5971
5912
  def.pattern.lastIndex = 0;
5972
5913
  if (def.pattern.test(payload.value)) return;
5973
5914
  payload.issues.push({
@@ -6011,8 +5952,8 @@ const $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (ins
6011
5952
  const escapedRegex = escapeRegex(def.includes);
6012
5953
  const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
6013
5954
  def.pattern = pattern;
6014
- inst._zod.onattach.push((inst$1) => {
6015
- const bag = inst$1._zod.bag;
5955
+ inst._zod.onattach.push((inst) => {
5956
+ const bag = inst._zod.bag;
6016
5957
  bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
6017
5958
  bag.patterns.add(pattern);
6018
5959
  });
@@ -6031,10 +5972,10 @@ const $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (ins
6031
5972
  });
6032
5973
  const $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (inst, def) => {
6033
5974
  $ZodCheck.init(inst, def);
6034
- const pattern = /* @__PURE__ */ new RegExp(`^${escapeRegex(def.prefix)}.*`);
5975
+ const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
6035
5976
  def.pattern ?? (def.pattern = pattern);
6036
- inst._zod.onattach.push((inst$1) => {
6037
- const bag = inst$1._zod.bag;
5977
+ inst._zod.onattach.push((inst) => {
5978
+ const bag = inst._zod.bag;
6038
5979
  bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
6039
5980
  bag.patterns.add(pattern);
6040
5981
  });
@@ -6053,10 +5994,10 @@ const $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith",
6053
5994
  });
6054
5995
  const $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst, def) => {
6055
5996
  $ZodCheck.init(inst, def);
6056
- const pattern = /* @__PURE__ */ new RegExp(`.*${escapeRegex(def.suffix)}$`);
5997
+ const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
6057
5998
  def.pattern ?? (def.pattern = pattern);
6058
- inst._zod.onattach.push((inst$1) => {
6059
- const bag = inst$1._zod.bag;
5999
+ inst._zod.onattach.push((inst) => {
6000
+ const bag = inst._zod.bag;
6060
6001
  bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
6061
6002
  bag.patterns.add(pattern);
6062
6003
  });
@@ -6079,7 +6020,6 @@ const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (i
6079
6020
  payload.value = def.tx(payload.value);
6080
6021
  };
6081
6022
  });
6082
-
6083
6023
  //#endregion
6084
6024
  //#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/doc.js
6085
6025
  var Doc = class {
@@ -6111,7 +6051,6 @@ var Doc = class {
6111
6051
  return new F(...args, lines.join("\n"));
6112
6052
  }
6113
6053
  };
6114
-
6115
6054
  //#endregion
6116
6055
  //#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/versions.js
6117
6056
  const version = {
@@ -6119,11 +6058,10 @@ const version = {
6119
6058
  minor: 3,
6120
6059
  patch: 6
6121
6060
  };
6122
-
6123
6061
  //#endregion
6124
6062
  //#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/schemas.js
6125
6063
  const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
6126
- var _a$1;
6064
+ var _a;
6127
6065
  inst ?? (inst = {});
6128
6066
  inst._zod.def = def;
6129
6067
  inst._zod.bag = inst._zod.bag || {};
@@ -6132,15 +6070,15 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
6132
6070
  if (inst._zod.traits.has("$ZodCheck")) checks.unshift(inst);
6133
6071
  for (const ch of checks) for (const fn of ch._zod.onattach) fn(inst);
6134
6072
  if (checks.length === 0) {
6135
- (_a$1 = inst._zod).deferred ?? (_a$1.deferred = []);
6073
+ (_a = inst._zod).deferred ?? (_a.deferred = []);
6136
6074
  inst._zod.deferred?.push(() => {
6137
6075
  inst._zod.run = inst._zod.parse;
6138
6076
  });
6139
6077
  } else {
6140
- const runChecks = (payload, checks$1, ctx) => {
6078
+ const runChecks = (payload, checks, ctx) => {
6141
6079
  let isAborted = aborted(payload);
6142
6080
  let asyncResult;
6143
- for (const ch of checks$1) {
6081
+ for (const ch of checks) {
6144
6082
  if (ch._zod.def.when) {
6145
6083
  if (!ch._zod.def.when(payload)) continue;
6146
6084
  } else if (isAborted) continue;
@@ -6170,7 +6108,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
6170
6108
  const checkResult = runChecks(payload, checks, ctx);
6171
6109
  if (checkResult instanceof Promise) {
6172
6110
  if (ctx.async === false) throw new $ZodAsyncError();
6173
- return checkResult.then((checkResult$1) => inst._zod.parse(checkResult$1, ctx));
6111
+ return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));
6174
6112
  }
6175
6113
  return inst._zod.parse(checkResult, ctx);
6176
6114
  };
@@ -6184,15 +6122,15 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
6184
6122
  ...ctx,
6185
6123
  skipChecks: true
6186
6124
  });
6187
- if (canary instanceof Promise) return canary.then((canary$1) => {
6188
- return handleCanaryResult(canary$1, payload, ctx);
6125
+ if (canary instanceof Promise) return canary.then((canary) => {
6126
+ return handleCanaryResult(canary, payload, ctx);
6189
6127
  });
6190
6128
  return handleCanaryResult(canary, payload, ctx);
6191
6129
  }
6192
6130
  const result = inst._zod.parse(payload, ctx);
6193
6131
  if (result instanceof Promise) {
6194
6132
  if (ctx.async === false) throw new $ZodAsyncError();
6195
- return result.then((result$1) => runChecks(result$1, checks, ctx));
6133
+ return result.then((result) => runChecks(result, checks, ctx));
6196
6134
  }
6197
6135
  return runChecks(result, checks, ctx);
6198
6136
  };
@@ -6216,7 +6154,7 @@ const $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
6216
6154
  inst._zod.parse = (payload, _) => {
6217
6155
  if (def.coerce) try {
6218
6156
  payload.value = String(payload.value);
6219
- } catch (_$1) {}
6157
+ } catch (_) {}
6220
6158
  if (typeof payload.value === "string") return payload;
6221
6159
  payload.issues.push({
6222
6160
  expected: "string",
@@ -6422,8 +6360,8 @@ const $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
6422
6360
  });
6423
6361
  function isValidBase64URL(data) {
6424
6362
  if (!base64url.test(data)) return false;
6425
- const base64$1 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
6426
- return isValidBase64(base64$1.padEnd(Math.ceil(base64$1.length / 4) * 4, "="));
6363
+ const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
6364
+ return isValidBase64(base64.padEnd(Math.ceil(base64.length / 4) * 4, "="));
6427
6365
  }
6428
6366
  const $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
6429
6367
  def.pattern ?? (def.pattern = base64url);
@@ -6496,6 +6434,24 @@ const $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumberFormat", (inst,
6496
6434
  $ZodCheckNumberFormat.init(inst, def);
6497
6435
  $ZodNumber.init(inst, def);
6498
6436
  });
6437
+ const $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
6438
+ $ZodType.init(inst, def);
6439
+ inst._zod.pattern = boolean$1;
6440
+ inst._zod.parse = (payload, _ctx) => {
6441
+ if (def.coerce) try {
6442
+ payload.value = Boolean(payload.value);
6443
+ } catch (_) {}
6444
+ const input = payload.value;
6445
+ if (typeof input === "boolean") return payload;
6446
+ payload.issues.push({
6447
+ expected: "boolean",
6448
+ code: "invalid_type",
6449
+ input,
6450
+ inst
6451
+ });
6452
+ return payload;
6453
+ };
6454
+ });
6499
6455
  const $ZodUnknown = /* @__PURE__ */ $constructor("$ZodUnknown", (inst, def) => {
6500
6456
  $ZodType.init(inst, def);
6501
6457
  inst._zod.parse = (payload) => payload;
@@ -6537,7 +6493,7 @@ const $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
6537
6493
  value: item,
6538
6494
  issues: []
6539
6495
  }, ctx);
6540
- if (result instanceof Promise) proms.push(result.then((result$1) => handleArrayResult(result$1, payload, i)));
6496
+ if (result instanceof Promise) proms.push(result.then((result) => handleArrayResult(result, payload, i)));
6541
6497
  else handleArrayResult(result, payload, i);
6542
6498
  }
6543
6499
  if (proms.length) return Promise.all(proms).then(() => payload);
@@ -6581,7 +6537,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
6581
6537
  value: input[key],
6582
6538
  issues: []
6583
6539
  }, ctx);
6584
- if (r instanceof Promise) proms.push(r.then((r$1) => handlePropertyResult(r$1, payload, key, input, isOptionalOut)));
6540
+ if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalOut)));
6585
6541
  else handlePropertyResult(r, payload, key, input, isOptionalOut);
6586
6542
  }
6587
6543
  if (unrecognized.length) payload.issues.push({
@@ -6618,13 +6574,13 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
6618
6574
  }
6619
6575
  return propValues;
6620
6576
  });
6621
- const isObject$1 = isObject;
6577
+ const isObject$2 = isObject;
6622
6578
  const catchall = def.catchall;
6623
6579
  let value;
6624
6580
  inst._zod.parse = (payload, ctx) => {
6625
6581
  value ?? (value = _normalized.value);
6626
6582
  const input = payload.value;
6627
- if (!isObject$1(input)) {
6583
+ if (!isObject$2(input)) {
6628
6584
  payload.issues.push({
6629
6585
  expected: "object",
6630
6586
  code: "invalid_type",
@@ -6643,7 +6599,7 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
6643
6599
  value: input[key],
6644
6600
  issues: []
6645
6601
  }, ctx);
6646
- if (r instanceof Promise) proms.push(r.then((r$1) => handlePropertyResult(r$1, payload, key, input, isOptionalOut)));
6602
+ if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalOut)));
6647
6603
  else handlePropertyResult(r, payload, key, input, isOptionalOut);
6648
6604
  }
6649
6605
  if (!catchall) return proms.length ? Promise.all(proms).then(() => payload) : payload;
@@ -6720,8 +6676,7 @@ const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def)
6720
6676
  let fastpass;
6721
6677
  const isObject$1 = isObject;
6722
6678
  const jit = !globalConfig.jitless;
6723
- const allowsEval$1 = allowsEval;
6724
- const fastEnabled = jit && allowsEval$1.value;
6679
+ const fastEnabled = jit && allowsEval.value;
6725
6680
  const catchall = def.catchall;
6726
6681
  let value;
6727
6682
  inst._zod.parse = (payload, ctx) => {
@@ -6773,7 +6728,7 @@ const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
6773
6728
  defineLazy(inst._zod, "pattern", () => {
6774
6729
  if (def.options.every((o) => o._zod.pattern)) {
6775
6730
  const patterns = def.options.map((o) => o._zod.pattern);
6776
- return /* @__PURE__ */ new RegExp(`^(${patterns.map((p) => cleanRegex(p.source)).join("|")})$`);
6731
+ return new RegExp(`^(${patterns.map((p) => cleanRegex(p.source)).join("|")})$`);
6777
6732
  }
6778
6733
  });
6779
6734
  const single = def.options.length === 1;
@@ -6796,8 +6751,8 @@ const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
6796
6751
  }
6797
6752
  }
6798
6753
  if (!async) return handleUnionResults(results, payload, inst, ctx);
6799
- return Promise.all(results).then((results$1) => {
6800
- return handleUnionResults(results$1, payload, inst, ctx);
6754
+ return Promise.all(results).then((results) => {
6755
+ return handleUnionResults(results, payload, inst, ctx);
6801
6756
  });
6802
6757
  };
6803
6758
  });
@@ -6813,8 +6768,8 @@ const $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst,
6813
6768
  value: input,
6814
6769
  issues: []
6815
6770
  }, ctx);
6816
- if (left instanceof Promise || right instanceof Promise) return Promise.all([left, right]).then(([left$1, right$1]) => {
6817
- return handleIntersectionResults(payload, left$1, right$1);
6771
+ if (left instanceof Promise || right instanceof Promise) return Promise.all([left, right]).then(([left, right]) => {
6772
+ return handleIntersectionResults(payload, left, right);
6818
6773
  });
6819
6774
  return handleIntersectionResults(payload, left, right);
6820
6775
  };
@@ -6905,7 +6860,7 @@ const $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
6905
6860
  const values = getEnumValues(def.entries);
6906
6861
  const valuesSet = new Set(values);
6907
6862
  inst._zod.values = valuesSet;
6908
- inst._zod.pattern = /* @__PURE__ */ new RegExp(`^(${values.filter((k) => propertyKeyTypes.has(typeof k)).map((o) => typeof o === "string" ? escapeRegex(o) : o.toString()).join("|")})$`);
6863
+ inst._zod.pattern = new RegExp(`^(${values.filter((k) => propertyKeyTypes.has(typeof k)).map((o) => typeof o === "string" ? escapeRegex(o) : o.toString()).join("|")})$`);
6909
6864
  inst._zod.parse = (payload, _ctx) => {
6910
6865
  const input = payload.value;
6911
6866
  if (valuesSet.has(input)) return payload;
@@ -6948,7 +6903,7 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
6948
6903
  });
6949
6904
  defineLazy(inst._zod, "pattern", () => {
6950
6905
  const pattern = def.innerType._zod.pattern;
6951
- return pattern ? /* @__PURE__ */ new RegExp(`^(${cleanRegex(pattern.source)})?$`) : void 0;
6906
+ return pattern ? new RegExp(`^(${cleanRegex(pattern.source)})?$`) : void 0;
6952
6907
  });
6953
6908
  inst._zod.parse = (payload, ctx) => {
6954
6909
  if (def.innerType._zod.optin === "optional") {
@@ -6974,7 +6929,7 @@ const $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) =>
6974
6929
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
6975
6930
  defineLazy(inst._zod, "pattern", () => {
6976
6931
  const pattern = def.innerType._zod.pattern;
6977
- return pattern ? /* @__PURE__ */ new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : void 0;
6932
+ return pattern ? new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : void 0;
6978
6933
  });
6979
6934
  defineLazy(inst._zod, "values", () => {
6980
6935
  return def.innerType._zod.values ? new Set([...def.innerType._zod.values, null]) : void 0;
@@ -6998,7 +6953,7 @@ const $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => {
6998
6953
  return payload;
6999
6954
  }
7000
6955
  const result = def.innerType._zod.run(payload, ctx);
7001
- if (result instanceof Promise) return result.then((result$1) => handleDefaultResult(result$1, def));
6956
+ if (result instanceof Promise) return result.then((result) => handleDefaultResult(result, def));
7002
6957
  return handleDefaultResult(result, def);
7003
6958
  };
7004
6959
  });
@@ -7024,7 +6979,7 @@ const $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, d
7024
6979
  });
7025
6980
  inst._zod.parse = (payload, ctx) => {
7026
6981
  const result = def.innerType._zod.run(payload, ctx);
7027
- if (result instanceof Promise) return result.then((result$1) => handleNonOptionalResult(result$1, inst));
6982
+ if (result instanceof Promise) return result.then((result) => handleNonOptionalResult(result, inst));
7028
6983
  return handleNonOptionalResult(result, inst);
7029
6984
  };
7030
6985
  });
@@ -7045,12 +7000,12 @@ const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
7045
7000
  inst._zod.parse = (payload, ctx) => {
7046
7001
  if (ctx.direction === "backward") return def.innerType._zod.run(payload, ctx);
7047
7002
  const result = def.innerType._zod.run(payload, ctx);
7048
- if (result instanceof Promise) return result.then((result$1) => {
7049
- payload.value = result$1.value;
7050
- if (result$1.issues.length) {
7003
+ if (result instanceof Promise) return result.then((result) => {
7004
+ payload.value = result.value;
7005
+ if (result.issues.length) {
7051
7006
  payload.value = def.catchValue({
7052
7007
  ...payload,
7053
- error: { issues: result$1.issues.map((iss) => finalizeIssue(iss, ctx, config())) },
7008
+ error: { issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config())) },
7054
7009
  input: payload.value
7055
7010
  });
7056
7011
  payload.issues = [];
@@ -7078,11 +7033,11 @@ const $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
7078
7033
  inst._zod.parse = (payload, ctx) => {
7079
7034
  if (ctx.direction === "backward") {
7080
7035
  const right = def.out._zod.run(payload, ctx);
7081
- if (right instanceof Promise) return right.then((right$1) => handlePipeResult(right$1, def.in, ctx));
7036
+ if (right instanceof Promise) return right.then((right) => handlePipeResult(right, def.in, ctx));
7082
7037
  return handlePipeResult(right, def.in, ctx);
7083
7038
  }
7084
7039
  const left = def.in._zod.run(payload, ctx);
7085
- if (left instanceof Promise) return left.then((left$1) => handlePipeResult(left$1, def.out, ctx));
7040
+ if (left instanceof Promise) return left.then((left) => handlePipeResult(left, def.out, ctx));
7086
7041
  return handlePipeResult(left, def.out, ctx);
7087
7042
  };
7088
7043
  });
@@ -7122,7 +7077,7 @@ const $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
7122
7077
  inst._zod.check = (payload) => {
7123
7078
  const input = payload.value;
7124
7079
  const r = def.fn(input);
7125
- if (r instanceof Promise) return r.then((r$1) => handleRefineResult(r$1, payload, input, inst));
7080
+ if (r instanceof Promise) return r.then((r) => handleRefineResult(r, payload, input, inst));
7126
7081
  handleRefineResult(r, payload, input, inst);
7127
7082
  };
7128
7083
  });
@@ -7139,7 +7094,6 @@ function handleRefineResult(result, payload, input, inst) {
7139
7094
  payload.issues.push(issue(_iss));
7140
7095
  }
7141
7096
  }
7142
-
7143
7097
  //#endregion
7144
7098
  //#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/registries.js
7145
7099
  var _a;
@@ -7149,9 +7103,9 @@ var $ZodRegistry = class {
7149
7103
  this._idmap = /* @__PURE__ */ new Map();
7150
7104
  }
7151
7105
  add(schema, ..._meta) {
7152
- const meta$2 = _meta[0];
7153
- this._map.set(schema, meta$2);
7154
- if (meta$2 && typeof meta$2 === "object" && "id" in meta$2) this._idmap.set(meta$2.id, schema);
7106
+ const meta = _meta[0];
7107
+ this._map.set(schema, meta);
7108
+ if (meta && typeof meta === "object" && "id" in meta) this._idmap.set(meta.id, schema);
7155
7109
  return this;
7156
7110
  }
7157
7111
  clear() {
@@ -7160,8 +7114,8 @@ var $ZodRegistry = class {
7160
7114
  return this;
7161
7115
  }
7162
7116
  remove(schema) {
7163
- const meta$2 = this._map.get(schema);
7164
- if (meta$2 && typeof meta$2 === "object" && "id" in meta$2) this._idmap.delete(meta$2.id);
7117
+ const meta = this._map.get(schema);
7118
+ if (meta && typeof meta === "object" && "id" in meta) this._idmap.delete(meta.id);
7165
7119
  this._map.delete(schema);
7166
7120
  return this;
7167
7121
  }
@@ -7187,7 +7141,6 @@ function registry() {
7187
7141
  }
7188
7142
  (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
7189
7143
  const globalRegistry = globalThis.__zod_globalRegistry;
7190
-
7191
7144
  //#endregion
7192
7145
  //#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/api.js
7193
7146
  /* @__NO_SIDE_EFFECTS__ */
@@ -7479,6 +7432,13 @@ function _int(Class, params) {
7479
7432
  });
7480
7433
  }
7481
7434
  /* @__NO_SIDE_EFFECTS__ */
7435
+ function _boolean(Class, params) {
7436
+ return new Class({
7437
+ type: "boolean",
7438
+ ...normalizeParams(params)
7439
+ });
7440
+ }
7441
+ /* @__NO_SIDE_EFFECTS__ */
7482
7442
  function _unknown(Class) {
7483
7443
  return new Class({ type: "unknown" });
7484
7444
  }
@@ -7656,10 +7616,10 @@ function _refine(Class, fn, _params) {
7656
7616
  /* @__NO_SIDE_EFFECTS__ */
7657
7617
  function _superRefine(fn) {
7658
7618
  const ch = /* @__PURE__ */ _check((payload) => {
7659
- payload.addIssue = (issue$1) => {
7660
- if (typeof issue$1 === "string") payload.issues.push(issue(issue$1, payload.value, ch._zod.def));
7619
+ payload.addIssue = (issue$2) => {
7620
+ if (typeof issue$2 === "string") payload.issues.push(issue(issue$2, payload.value, ch._zod.def));
7661
7621
  else {
7662
- const _issue = issue$1;
7622
+ const _issue = issue$2;
7663
7623
  if (_issue.fatal) _issue.continue = false;
7664
7624
  _issue.code ?? (_issue.code = "custom");
7665
7625
  _issue.input ?? (_issue.input = payload.value);
@@ -7681,33 +7641,6 @@ function _check(fn, params) {
7681
7641
  ch._zod.check = fn;
7682
7642
  return ch;
7683
7643
  }
7684
- /* @__NO_SIDE_EFFECTS__ */
7685
- function describe$1(description) {
7686
- const ch = new $ZodCheck({ check: "describe" });
7687
- ch._zod.onattach = [(inst) => {
7688
- const existing = globalRegistry.get(inst) ?? {};
7689
- globalRegistry.add(inst, {
7690
- ...existing,
7691
- description
7692
- });
7693
- }];
7694
- ch._zod.check = () => {};
7695
- return ch;
7696
- }
7697
- /* @__NO_SIDE_EFFECTS__ */
7698
- function meta$1(metadata) {
7699
- const ch = new $ZodCheck({ check: "meta" });
7700
- ch._zod.onattach = [(inst) => {
7701
- const existing = globalRegistry.get(inst) ?? {};
7702
- globalRegistry.add(inst, {
7703
- ...existing,
7704
- ...metadata
7705
- });
7706
- }];
7707
- ch._zod.check = () => {};
7708
- return ch;
7709
- }
7710
-
7711
7644
  //#endregion
7712
7645
  //#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
7713
7646
  function initializeContext(params) {
@@ -7732,7 +7665,7 @@ function process$2(schema, ctx, _params = {
7732
7665
  path: [],
7733
7666
  schemaPath: []
7734
7667
  }) {
7735
- var _a$1;
7668
+ var _a;
7736
7669
  const def = schema._zod.def;
7737
7670
  const seen = ctx.seen.get(schema);
7738
7671
  if (seen) {
@@ -7769,13 +7702,13 @@ function process$2(schema, ctx, _params = {
7769
7702
  ctx.seen.get(parent).isParent = true;
7770
7703
  }
7771
7704
  }
7772
- const meta$2 = ctx.metadataRegistry.get(schema);
7773
- if (meta$2) Object.assign(result.schema, meta$2);
7705
+ const meta = ctx.metadataRegistry.get(schema);
7706
+ if (meta) Object.assign(result.schema, meta);
7774
7707
  if (ctx.io === "input" && isTransforming(schema)) {
7775
7708
  delete result.schema.examples;
7776
7709
  delete result.schema.default;
7777
7710
  }
7778
- if (ctx.io === "input" && result.schema._prefault) (_a$1 = result.schema).default ?? (_a$1.default = result.schema._prefault);
7711
+ if (ctx.io === "input" && result.schema._prefault) (_a = result.schema).default ?? (_a.default = result.schema._prefault);
7779
7712
  delete result.schema._prefault;
7780
7713
  return ctx.seen.get(schema).schema;
7781
7714
  }
@@ -7795,7 +7728,7 @@ function extractDefs(ctx, schema) {
7795
7728
  const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
7796
7729
  if (ctx.external) {
7797
7730
  const externalId = ctx.external.registry.get(entry[0])?.id;
7798
- const uriGenerator = ctx.external.uri ?? ((id$1) => id$1);
7731
+ const uriGenerator = ctx.external.uri ?? ((id) => id);
7799
7732
  if (externalId) return { ref: uriGenerator(externalId) };
7800
7733
  const id = entry[1].defId ?? entry[1].schema.id ?? `schema${ctx.counter++}`;
7801
7734
  entry[1].defId = id;
@@ -7818,9 +7751,9 @@ function extractDefs(ctx, schema) {
7818
7751
  const { ref, defId } = makeURI(entry);
7819
7752
  seen.def = { ...seen.schema };
7820
7753
  if (defId) seen.defId = defId;
7821
- const schema$1 = seen.schema;
7822
- for (const key in schema$1) delete schema$1[key];
7823
- schema$1.$ref = ref;
7754
+ const schema = seen.schema;
7755
+ for (const key in schema) delete schema[key];
7756
+ schema.$ref = ref;
7824
7757
  };
7825
7758
  if (ctx.cycles === "throw") for (const entry of ctx.seen.entries()) {
7826
7759
  const seen = entry[1];
@@ -7863,8 +7796,8 @@ function finalize(ctx, schema) {
7863
7796
  const flattenRef = (zodSchema) => {
7864
7797
  const seen = ctx.seen.get(zodSchema);
7865
7798
  if (seen.ref === null) return;
7866
- const schema$1 = seen.def ?? seen.schema;
7867
- const _cached = { ...schema$1 };
7799
+ const schema = seen.def ?? seen.schema;
7800
+ const _cached = { ...schema };
7868
7801
  const ref = seen.ref;
7869
7802
  seen.ref = null;
7870
7803
  if (ref) {
@@ -7872,17 +7805,17 @@ function finalize(ctx, schema) {
7872
7805
  const refSeen = ctx.seen.get(ref);
7873
7806
  const refSchema = refSeen.schema;
7874
7807
  if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
7875
- schema$1.allOf = schema$1.allOf ?? [];
7876
- schema$1.allOf.push(refSchema);
7877
- } else Object.assign(schema$1, refSchema);
7878
- Object.assign(schema$1, _cached);
7879
- if (zodSchema._zod.parent === ref) for (const key in schema$1) {
7808
+ schema.allOf = schema.allOf ?? [];
7809
+ schema.allOf.push(refSchema);
7810
+ } else Object.assign(schema, refSchema);
7811
+ Object.assign(schema, _cached);
7812
+ if (zodSchema._zod.parent === ref) for (const key in schema) {
7880
7813
  if (key === "$ref" || key === "allOf") continue;
7881
- if (!(key in _cached)) delete schema$1[key];
7814
+ if (!(key in _cached)) delete schema[key];
7882
7815
  }
7883
- if (refSchema.$ref && refSeen.def) for (const key in schema$1) {
7816
+ if (refSchema.$ref && refSeen.def) for (const key in schema) {
7884
7817
  if (key === "$ref" || key === "allOf") continue;
7885
- if (key in refSeen.def && JSON.stringify(schema$1[key]) === JSON.stringify(refSeen.def[key])) delete schema$1[key];
7818
+ if (key in refSeen.def && JSON.stringify(schema[key]) === JSON.stringify(refSeen.def[key])) delete schema[key];
7886
7819
  }
7887
7820
  }
7888
7821
  const parent = zodSchema._zod.parent;
@@ -7890,16 +7823,16 @@ function finalize(ctx, schema) {
7890
7823
  flattenRef(parent);
7891
7824
  const parentSeen = ctx.seen.get(parent);
7892
7825
  if (parentSeen?.schema.$ref) {
7893
- schema$1.$ref = parentSeen.schema.$ref;
7894
- if (parentSeen.def) for (const key in schema$1) {
7826
+ schema.$ref = parentSeen.schema.$ref;
7827
+ if (parentSeen.def) for (const key in schema) {
7895
7828
  if (key === "$ref" || key === "allOf") continue;
7896
- if (key in parentSeen.def && JSON.stringify(schema$1[key]) === JSON.stringify(parentSeen.def[key])) delete schema$1[key];
7829
+ if (key in parentSeen.def && JSON.stringify(schema[key]) === JSON.stringify(parentSeen.def[key])) delete schema[key];
7897
7830
  }
7898
7831
  }
7899
7832
  }
7900
7833
  ctx.override({
7901
7834
  zodSchema,
7902
- jsonSchema: schema$1,
7835
+ jsonSchema: schema,
7903
7836
  path: seen.path ?? []
7904
7837
  });
7905
7838
  };
@@ -7993,7 +7926,6 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
7993
7926
  extractDefs(ctx, schema);
7994
7927
  return finalize(ctx, schema);
7995
7928
  };
7996
-
7997
7929
  //#endregion
7998
7930
  //#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
7999
7931
  const formatMap = {
@@ -8049,6 +7981,9 @@ const numberProcessor = (schema, ctx, _json, _params) => {
8049
7981
  }
8050
7982
  if (typeof multipleOf === "number") json.multipleOf = multipleOf;
8051
7983
  };
7984
+ const booleanProcessor = (_schema, _ctx, json, _params) => {
7985
+ json.type = "boolean";
7986
+ };
8052
7987
  const neverProcessor = (_schema, _ctx, json, _params) => {
8053
7988
  json.not = {};
8054
7989
  };
@@ -8204,7 +8139,6 @@ const optionalProcessor = (schema, ctx, _json, params) => {
8204
8139
  const seen = ctx.seen.get(schema);
8205
8140
  seen.ref = def.innerType;
8206
8141
  };
8207
-
8208
8142
  //#endregion
8209
8143
  //#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/iso.js
8210
8144
  const ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
@@ -8212,30 +8146,29 @@ const ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def
8212
8146
  ZodStringFormat.init(inst, def);
8213
8147
  });
8214
8148
  function datetime(params) {
8215
- return _isoDateTime(ZodISODateTime, params);
8149
+ return /* @__PURE__ */ _isoDateTime(ZodISODateTime, params);
8216
8150
  }
8217
8151
  const ZodISODate = /* @__PURE__ */ $constructor("ZodISODate", (inst, def) => {
8218
8152
  $ZodISODate.init(inst, def);
8219
8153
  ZodStringFormat.init(inst, def);
8220
8154
  });
8221
8155
  function date(params) {
8222
- return _isoDate(ZodISODate, params);
8156
+ return /* @__PURE__ */ _isoDate(ZodISODate, params);
8223
8157
  }
8224
8158
  const ZodISOTime = /* @__PURE__ */ $constructor("ZodISOTime", (inst, def) => {
8225
8159
  $ZodISOTime.init(inst, def);
8226
8160
  ZodStringFormat.init(inst, def);
8227
8161
  });
8228
8162
  function time(params) {
8229
- return _isoTime(ZodISOTime, params);
8163
+ return /* @__PURE__ */ _isoTime(ZodISOTime, params);
8230
8164
  }
8231
8165
  const ZodISODuration = /* @__PURE__ */ $constructor("ZodISODuration", (inst, def) => {
8232
8166
  $ZodISODuration.init(inst, def);
8233
8167
  ZodStringFormat.init(inst, def);
8234
8168
  });
8235
8169
  function duration(params) {
8236
- return _isoDuration(ZodISODuration, params);
8170
+ return /* @__PURE__ */ _isoDuration(ZodISODuration, params);
8237
8171
  }
8238
-
8239
8172
  //#endregion
8240
8173
  //#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/errors.js
8241
8174
  const initializer = (inst, issues) => {
@@ -8244,12 +8177,12 @@ const initializer = (inst, issues) => {
8244
8177
  Object.defineProperties(inst, {
8245
8178
  format: { value: (mapper) => formatError(inst, mapper) },
8246
8179
  flatten: { value: (mapper) => flattenError(inst, mapper) },
8247
- addIssue: { value: (issue$1) => {
8248
- inst.issues.push(issue$1);
8180
+ addIssue: { value: (issue) => {
8181
+ inst.issues.push(issue);
8249
8182
  inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
8250
8183
  } },
8251
- addIssues: { value: (issues$1) => {
8252
- inst.issues.push(...issues$1);
8184
+ addIssues: { value: (issues) => {
8185
+ inst.issues.push(...issues);
8253
8186
  inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
8254
8187
  } },
8255
8188
  isEmpty: { get() {
@@ -8257,9 +8190,8 @@ const initializer = (inst, issues) => {
8257
8190
  } }
8258
8191
  });
8259
8192
  };
8260
- const ZodError = $constructor("ZodError", initializer);
8193
+ $constructor("ZodError", initializer);
8261
8194
  const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
8262
-
8263
8195
  //#endregion
8264
8196
  //#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/parse.js
8265
8197
  const parse = /* @__PURE__ */ _parse(ZodRealError);
@@ -8274,7 +8206,6 @@ const safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
8274
8206
  const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
8275
8207
  const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
8276
8208
  const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
8277
-
8278
8209
  //#endregion
8279
8210
  //#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
8280
8211
  const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
@@ -8295,10 +8226,10 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
8295
8226
  } } : ch)] }), { parent: true });
8296
8227
  };
8297
8228
  inst.with = inst.check;
8298
- inst.clone = (def$1, params) => clone(inst, def$1, params);
8229
+ inst.clone = (def, params) => clone(inst, def, params);
8299
8230
  inst.brand = () => inst;
8300
- inst.register = ((reg, meta$2) => {
8301
- reg.add(inst, meta$2);
8231
+ inst.register = ((reg, meta) => {
8232
+ reg.add(inst, meta);
8302
8233
  return inst;
8303
8234
  });
8304
8235
  inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
@@ -8316,7 +8247,7 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
8316
8247
  inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
8317
8248
  inst.refine = (check, params) => inst.check(refine(check, params));
8318
8249
  inst.superRefine = (refinement) => inst.check(superRefine(refinement));
8319
- inst.overwrite = (fn) => inst.check(_overwrite(fn));
8250
+ inst.overwrite = (fn) => inst.check(/* @__PURE__ */ _overwrite(fn));
8320
8251
  inst.optional = () => optional(inst);
8321
8252
  inst.exactOptional = () => exactOptional(inst);
8322
8253
  inst.nullable = () => nullable(inst);
@@ -8326,8 +8257,8 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
8326
8257
  inst.or = (arg) => union([inst, arg]);
8327
8258
  inst.and = (arg) => intersection(inst, arg);
8328
8259
  inst.transform = (tx) => pipe(inst, transform(tx));
8329
- inst.default = (def$1) => _default(inst, def$1);
8330
- inst.prefault = (def$1) => prefault(inst, def$1);
8260
+ inst.default = (def) => _default(inst, def);
8261
+ inst.prefault = (def) => prefault(inst, def);
8331
8262
  inst.catch = (params) => _catch(inst, params);
8332
8263
  inst.pipe = (target) => pipe(inst, target);
8333
8264
  inst.readonly = () => readonly(inst);
@@ -8362,55 +8293,55 @@ const _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
8362
8293
  inst.format = bag.format ?? null;
8363
8294
  inst.minLength = bag.minimum ?? null;
8364
8295
  inst.maxLength = bag.maximum ?? null;
8365
- inst.regex = (...args) => inst.check(_regex(...args));
8366
- inst.includes = (...args) => inst.check(_includes(...args));
8367
- inst.startsWith = (...args) => inst.check(_startsWith(...args));
8368
- inst.endsWith = (...args) => inst.check(_endsWith(...args));
8369
- inst.min = (...args) => inst.check(_minLength(...args));
8370
- inst.max = (...args) => inst.check(_maxLength(...args));
8371
- inst.length = (...args) => inst.check(_length(...args));
8372
- inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
8373
- inst.lowercase = (params) => inst.check(_lowercase(params));
8374
- inst.uppercase = (params) => inst.check(_uppercase(params));
8375
- inst.trim = () => inst.check(_trim());
8376
- inst.normalize = (...args) => inst.check(_normalize(...args));
8377
- inst.toLowerCase = () => inst.check(_toLowerCase());
8378
- inst.toUpperCase = () => inst.check(_toUpperCase());
8379
- inst.slugify = () => inst.check(_slugify());
8296
+ inst.regex = (...args) => inst.check(/* @__PURE__ */ _regex(...args));
8297
+ inst.includes = (...args) => inst.check(/* @__PURE__ */ _includes(...args));
8298
+ inst.startsWith = (...args) => inst.check(/* @__PURE__ */ _startsWith(...args));
8299
+ inst.endsWith = (...args) => inst.check(/* @__PURE__ */ _endsWith(...args));
8300
+ inst.min = (...args) => inst.check(/* @__PURE__ */ _minLength(...args));
8301
+ inst.max = (...args) => inst.check(/* @__PURE__ */ _maxLength(...args));
8302
+ inst.length = (...args) => inst.check(/* @__PURE__ */ _length(...args));
8303
+ inst.nonempty = (...args) => inst.check(/* @__PURE__ */ _minLength(1, ...args));
8304
+ inst.lowercase = (params) => inst.check(/* @__PURE__ */ _lowercase(params));
8305
+ inst.uppercase = (params) => inst.check(/* @__PURE__ */ _uppercase(params));
8306
+ inst.trim = () => inst.check(/* @__PURE__ */ _trim());
8307
+ inst.normalize = (...args) => inst.check(/* @__PURE__ */ _normalize(...args));
8308
+ inst.toLowerCase = () => inst.check(/* @__PURE__ */ _toLowerCase());
8309
+ inst.toUpperCase = () => inst.check(/* @__PURE__ */ _toUpperCase());
8310
+ inst.slugify = () => inst.check(/* @__PURE__ */ _slugify());
8380
8311
  });
8381
8312
  const ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
8382
8313
  $ZodString.init(inst, def);
8383
8314
  _ZodString.init(inst, def);
8384
- inst.email = (params) => inst.check(_email(ZodEmail, params));
8385
- inst.url = (params) => inst.check(_url(ZodURL, params));
8386
- inst.jwt = (params) => inst.check(_jwt(ZodJWT, params));
8387
- inst.emoji = (params) => inst.check(_emoji(ZodEmoji, params));
8388
- inst.guid = (params) => inst.check(_guid(ZodGUID, params));
8389
- inst.uuid = (params) => inst.check(_uuid(ZodUUID, params));
8390
- inst.uuidv4 = (params) => inst.check(_uuidv4(ZodUUID, params));
8391
- inst.uuidv6 = (params) => inst.check(_uuidv6(ZodUUID, params));
8392
- inst.uuidv7 = (params) => inst.check(_uuidv7(ZodUUID, params));
8393
- inst.nanoid = (params) => inst.check(_nanoid(ZodNanoID, params));
8394
- inst.guid = (params) => inst.check(_guid(ZodGUID, params));
8395
- inst.cuid = (params) => inst.check(_cuid(ZodCUID, params));
8396
- inst.cuid2 = (params) => inst.check(_cuid2(ZodCUID2, params));
8397
- inst.ulid = (params) => inst.check(_ulid(ZodULID, params));
8398
- inst.base64 = (params) => inst.check(_base64(ZodBase64, params));
8399
- inst.base64url = (params) => inst.check(_base64url(ZodBase64URL, params));
8400
- inst.xid = (params) => inst.check(_xid(ZodXID, params));
8401
- inst.ksuid = (params) => inst.check(_ksuid(ZodKSUID, params));
8402
- inst.ipv4 = (params) => inst.check(_ipv4(ZodIPv4, params));
8403
- inst.ipv6 = (params) => inst.check(_ipv6(ZodIPv6, params));
8404
- inst.cidrv4 = (params) => inst.check(_cidrv4(ZodCIDRv4, params));
8405
- inst.cidrv6 = (params) => inst.check(_cidrv6(ZodCIDRv6, params));
8406
- inst.e164 = (params) => inst.check(_e164(ZodE164, params));
8315
+ inst.email = (params) => inst.check(/* @__PURE__ */ _email(ZodEmail, params));
8316
+ inst.url = (params) => inst.check(/* @__PURE__ */ _url(ZodURL, params));
8317
+ inst.jwt = (params) => inst.check(/* @__PURE__ */ _jwt(ZodJWT, params));
8318
+ inst.emoji = (params) => inst.check(/* @__PURE__ */ _emoji(ZodEmoji, params));
8319
+ inst.guid = (params) => inst.check(/* @__PURE__ */ _guid(ZodGUID, params));
8320
+ inst.uuid = (params) => inst.check(/* @__PURE__ */ _uuid(ZodUUID, params));
8321
+ inst.uuidv4 = (params) => inst.check(/* @__PURE__ */ _uuidv4(ZodUUID, params));
8322
+ inst.uuidv6 = (params) => inst.check(/* @__PURE__ */ _uuidv6(ZodUUID, params));
8323
+ inst.uuidv7 = (params) => inst.check(/* @__PURE__ */ _uuidv7(ZodUUID, params));
8324
+ inst.nanoid = (params) => inst.check(/* @__PURE__ */ _nanoid(ZodNanoID, params));
8325
+ inst.guid = (params) => inst.check(/* @__PURE__ */ _guid(ZodGUID, params));
8326
+ inst.cuid = (params) => inst.check(/* @__PURE__ */ _cuid(ZodCUID, params));
8327
+ inst.cuid2 = (params) => inst.check(/* @__PURE__ */ _cuid2(ZodCUID2, params));
8328
+ inst.ulid = (params) => inst.check(/* @__PURE__ */ _ulid(ZodULID, params));
8329
+ inst.base64 = (params) => inst.check(/* @__PURE__ */ _base64(ZodBase64, params));
8330
+ inst.base64url = (params) => inst.check(/* @__PURE__ */ _base64url(ZodBase64URL, params));
8331
+ inst.xid = (params) => inst.check(/* @__PURE__ */ _xid(ZodXID, params));
8332
+ inst.ksuid = (params) => inst.check(/* @__PURE__ */ _ksuid(ZodKSUID, params));
8333
+ inst.ipv4 = (params) => inst.check(/* @__PURE__ */ _ipv4(ZodIPv4, params));
8334
+ inst.ipv6 = (params) => inst.check(/* @__PURE__ */ _ipv6(ZodIPv6, params));
8335
+ inst.cidrv4 = (params) => inst.check(/* @__PURE__ */ _cidrv4(ZodCIDRv4, params));
8336
+ inst.cidrv6 = (params) => inst.check(/* @__PURE__ */ _cidrv6(ZodCIDRv6, params));
8337
+ inst.e164 = (params) => inst.check(/* @__PURE__ */ _e164(ZodE164, params));
8407
8338
  inst.datetime = (params) => inst.check(datetime(params));
8408
8339
  inst.date = (params) => inst.check(date(params));
8409
8340
  inst.time = (params) => inst.check(time(params));
8410
8341
  inst.duration = (params) => inst.check(duration(params));
8411
8342
  });
8412
8343
  function string(params) {
8413
- return _string(ZodString, params);
8344
+ return /* @__PURE__ */ _string(ZodString, params);
8414
8345
  }
8415
8346
  const ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
8416
8347
  $ZodStringFormat.init(inst, def);
@@ -8496,20 +8427,20 @@ const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
8496
8427
  $ZodNumber.init(inst, def);
8497
8428
  ZodType.init(inst, def);
8498
8429
  inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
8499
- inst.gt = (value, params) => inst.check(_gt(value, params));
8500
- inst.gte = (value, params) => inst.check(_gte(value, params));
8501
- inst.min = (value, params) => inst.check(_gte(value, params));
8502
- inst.lt = (value, params) => inst.check(_lt(value, params));
8503
- inst.lte = (value, params) => inst.check(_lte(value, params));
8504
- inst.max = (value, params) => inst.check(_lte(value, params));
8430
+ inst.gt = (value, params) => inst.check(/* @__PURE__ */ _gt(value, params));
8431
+ inst.gte = (value, params) => inst.check(/* @__PURE__ */ _gte(value, params));
8432
+ inst.min = (value, params) => inst.check(/* @__PURE__ */ _gte(value, params));
8433
+ inst.lt = (value, params) => inst.check(/* @__PURE__ */ _lt(value, params));
8434
+ inst.lte = (value, params) => inst.check(/* @__PURE__ */ _lte(value, params));
8435
+ inst.max = (value, params) => inst.check(/* @__PURE__ */ _lte(value, params));
8505
8436
  inst.int = (params) => inst.check(int(params));
8506
8437
  inst.safe = (params) => inst.check(int(params));
8507
- inst.positive = (params) => inst.check(_gt(0, params));
8508
- inst.nonnegative = (params) => inst.check(_gte(0, params));
8509
- inst.negative = (params) => inst.check(_lt(0, params));
8510
- inst.nonpositive = (params) => inst.check(_lte(0, params));
8511
- inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
8512
- inst.step = (value, params) => inst.check(_multipleOf(value, params));
8438
+ inst.positive = (params) => inst.check(/* @__PURE__ */ _gt(0, params));
8439
+ inst.nonnegative = (params) => inst.check(/* @__PURE__ */ _gte(0, params));
8440
+ inst.negative = (params) => inst.check(/* @__PURE__ */ _lt(0, params));
8441
+ inst.nonpositive = (params) => inst.check(/* @__PURE__ */ _lte(0, params));
8442
+ inst.multipleOf = (value, params) => inst.check(/* @__PURE__ */ _multipleOf(value, params));
8443
+ inst.step = (value, params) => inst.check(/* @__PURE__ */ _multipleOf(value, params));
8513
8444
  inst.finite = () => inst;
8514
8445
  const bag = inst._zod.bag;
8515
8446
  inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
@@ -8519,14 +8450,22 @@ const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
8519
8450
  inst.format = bag.format ?? null;
8520
8451
  });
8521
8452
  function number(params) {
8522
- return _number(ZodNumber, params);
8453
+ return /* @__PURE__ */ _number(ZodNumber, params);
8523
8454
  }
8524
8455
  const ZodNumberFormat = /* @__PURE__ */ $constructor("ZodNumberFormat", (inst, def) => {
8525
8456
  $ZodNumberFormat.init(inst, def);
8526
8457
  ZodNumber.init(inst, def);
8527
8458
  });
8528
8459
  function int(params) {
8529
- return _int(ZodNumberFormat, params);
8460
+ return /* @__PURE__ */ _int(ZodNumberFormat, params);
8461
+ }
8462
+ const ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
8463
+ $ZodBoolean.init(inst, def);
8464
+ ZodType.init(inst, def);
8465
+ inst._zod.processJSONSchema = (ctx, json, params) => booleanProcessor(inst, ctx, json, params);
8466
+ });
8467
+ function boolean(params) {
8468
+ return /* @__PURE__ */ _boolean(ZodBoolean, params);
8530
8469
  }
8531
8470
  const ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
8532
8471
  $ZodUnknown.init(inst, def);
@@ -8534,7 +8473,7 @@ const ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
8534
8473
  inst._zod.processJSONSchema = (ctx, json, params) => unknownProcessor(inst, ctx, json, params);
8535
8474
  });
8536
8475
  function unknown() {
8537
- return _unknown(ZodUnknown);
8476
+ return /* @__PURE__ */ _unknown(ZodUnknown);
8538
8477
  }
8539
8478
  const ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
8540
8479
  $ZodNever.init(inst, def);
@@ -8542,21 +8481,21 @@ const ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
8542
8481
  inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json, params);
8543
8482
  });
8544
8483
  function never(params) {
8545
- return _never(ZodNever, params);
8484
+ return /* @__PURE__ */ _never(ZodNever, params);
8546
8485
  }
8547
8486
  const ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
8548
8487
  $ZodArray.init(inst, def);
8549
8488
  ZodType.init(inst, def);
8550
8489
  inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
8551
8490
  inst.element = def.element;
8552
- inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
8553
- inst.nonempty = (params) => inst.check(_minLength(1, params));
8554
- inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
8555
- inst.length = (len, params) => inst.check(_length(len, params));
8491
+ inst.min = (minLength, params) => inst.check(/* @__PURE__ */ _minLength(minLength, params));
8492
+ inst.nonempty = (params) => inst.check(/* @__PURE__ */ _minLength(1, params));
8493
+ inst.max = (maxLength, params) => inst.check(/* @__PURE__ */ _maxLength(maxLength, params));
8494
+ inst.length = (len, params) => inst.check(/* @__PURE__ */ _length(len, params));
8556
8495
  inst.unwrap = () => inst.element;
8557
8496
  });
8558
8497
  function array(element, params) {
8559
- return _array(ZodArray, element, params);
8498
+ return /* @__PURE__ */ _array(ZodArray, element, params);
8560
8499
  }
8561
8500
  const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
8562
8501
  $ZodObjectJIT.init(inst, def);
@@ -8685,8 +8624,8 @@ const ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) =>
8685
8624
  }
8686
8625
  };
8687
8626
  const output = def.transform(payload.value, payload);
8688
- if (output instanceof Promise) return output.then((output$1) => {
8689
- payload.value = output$1;
8627
+ if (output instanceof Promise) return output.then((output) => {
8628
+ payload.value = output;
8690
8629
  return payload;
8691
8630
  });
8692
8631
  payload.value = output;
@@ -8825,14 +8764,11 @@ const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
8825
8764
  inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx, json, params);
8826
8765
  });
8827
8766
  function refine(fn, _params = {}) {
8828
- return _refine(ZodCustom, fn, _params);
8767
+ return /* @__PURE__ */ _refine(ZodCustom, fn, _params);
8829
8768
  }
8830
8769
  function superRefine(fn) {
8831
- return _superRefine(fn);
8770
+ return /* @__PURE__ */ _superRefine(fn);
8832
8771
  }
8833
- const describe = describe$1;
8834
- const meta = meta$1;
8835
-
8836
8772
  //#endregion
8837
8773
  //#region ../feature-schema/dist/schema.mjs
8838
8774
  var import_chokidar = /* @__PURE__ */ __toESM(require_chokidar(), 1);
@@ -8883,6 +8819,17 @@ const CodeSnippetSchema = object({
8883
8819
  label: string().min(1),
8884
8820
  snippet: string().min(1)
8885
8821
  });
8822
+ /**
8823
+ * Per-field lock entry — written into a feature.json to explicitly protect a specific field
8824
+ * from AI overwrite in this feature, even if not in the workspace-level restrictedFields config.
8825
+ * Use this when a field was hard-won and should never be touched without a human review.
8826
+ */
8827
+ const FieldLockSchema = object({
8828
+ field: string().min(1),
8829
+ lockedAt: string().min(1),
8830
+ lockedBy: string().min(1),
8831
+ reason: string().optional()
8832
+ });
8886
8833
  const FeatureSchema = object({
8887
8834
  featureKey: string().regex(FEATURE_KEY_PATTERN, "featureKey must match pattern <domain>-YYYY-NNN (e.g. feat-2026-001, proc-2026-001)"),
8888
8835
  title: string().min(1),
@@ -8906,14 +8853,17 @@ const FeatureSchema = object({
8906
8853
  superseded_from: array(string().regex(FEATURE_KEY_PATTERN, "each superseded_from entry must be a valid featureKey")).optional(),
8907
8854
  merged_into: string().regex(FEATURE_KEY_PATTERN, "merged_into must be a valid featureKey").optional(),
8908
8855
  merged_from: array(string().regex(FEATURE_KEY_PATTERN, "each merged_from entry must be a valid featureKey")).optional(),
8856
+ userGuide: string().optional(),
8909
8857
  componentFile: string().optional(),
8910
8858
  npmPackages: array(string()).optional(),
8911
8859
  publicInterface: array(PublicInterfaceEntrySchema).optional(),
8912
8860
  externalDependencies: array(string()).optional(),
8913
8861
  lastVerifiedDate: string().regex(/^\d{4}-\d{2}-\d{2}$/, "lastVerifiedDate must be YYYY-MM-DD").optional(),
8914
- codeSnippets: array(CodeSnippetSchema).optional()
8862
+ codeSnippets: array(CodeSnippetSchema).optional(),
8863
+ implementationNotes: array(string()).optional(),
8864
+ fieldLocks: array(FieldLockSchema).optional(),
8865
+ featureLocked: boolean().optional()
8915
8866
  });
8916
-
8917
8867
  //#endregion
8918
8868
  //#region ../feature-schema/dist/validate.mjs
8919
8869
  function validateFeature(data) {
@@ -8924,12 +8874,13 @@ function validateFeature(data) {
8924
8874
  };
8925
8875
  return {
8926
8876
  success: false,
8927
- errors: result.error.issues.map((issue$1) => {
8928
- return `${issue$1.path.length > 0 ? `${issue$1.path.join(".")}: ` : ""}${issue$1.message}`;
8877
+ errors: result.error.issues.map((issue) => {
8878
+ const path = issue.path.length > 0 ? `${issue.path.join(".")}: ` : "";
8879
+ if (issue.code === "invalid_type") return `${path}expected ${issue.expected}, got ${issue.received}`;
8880
+ return `${path}${issue.message}`;
8929
8881
  })
8930
8882
  };
8931
8883
  }
8932
-
8933
8884
  //#endregion
8934
8885
  //#region ../lac-lsp/src/lib/completeness.ts
8935
8886
  const OPTIONAL_FIELDS = [
@@ -8953,7 +8904,6 @@ function computeCompleteness(feature) {
8953
8904
  }).length;
8954
8905
  return Math.round(filled / OPTIONAL_FIELDS.length * 100);
8955
8906
  }
8956
-
8957
8907
  //#endregion
8958
8908
  //#region ../lac-lsp/src/lib/scanner.ts
8959
8909
  /**
@@ -9013,7 +8963,6 @@ async function scanFeatures(dir, onWarning) {
9013
8963
  await walk(dir);
9014
8964
  return results;
9015
8965
  }
9016
-
9017
8966
  //#endregion
9018
8967
  //#region ../lac-lsp/src/indexer/FeatureIndex.ts
9019
8968
  /**
@@ -9201,7 +9150,6 @@ var FeatureIndex = class extends EventEmitter {
9201
9150
  });
9202
9151
  }
9203
9152
  };
9204
-
9205
9153
  //#endregion
9206
9154
  //#region ../lac-lsp/src/lib/blame.ts
9207
9155
  /**
@@ -9229,7 +9177,6 @@ function blame(absPath, index) {
9229
9177
  current = parent;
9230
9178
  }
9231
9179
  }
9232
-
9233
9180
  //#endregion
9234
9181
  //#region ../lac-lsp/src/lsp/handlers/codeLens.ts
9235
9182
  const STATUS_ICON$1 = {
@@ -9262,7 +9209,6 @@ function handleCodeLens(params, index) {
9262
9209
  arguments: [indexed.filePath]
9263
9210
  })];
9264
9211
  }
9265
-
9266
9212
  //#endregion
9267
9213
  //#region ../lac-lsp/src/lsp/handlers/definition.ts
9268
9214
  /**
@@ -9287,7 +9233,6 @@ function handleDefinition(params, index) {
9287
9233
  const pos = Position.create(0, 0);
9288
9234
  return Location.create(uri, Range.create(pos, pos));
9289
9235
  }
9290
-
9291
9236
  //#endregion
9292
9237
  //#region ../lac-lsp/src/lsp/handlers/diagnostics.ts
9293
9238
  /** Required fields that trigger a Warning diagnostic when empty. */
@@ -9376,7 +9321,6 @@ function makeDiagnostic(line, char, message, severity) {
9376
9321
  source: "lac"
9377
9322
  };
9378
9323
  }
9379
-
9380
9324
  //#endregion
9381
9325
  //#region ../lac-lsp/src/lsp/handlers/hover.ts
9382
9326
  const OPTIONAL_FIELDS_LABELS = {
@@ -9446,7 +9390,6 @@ function handleHover(params, index) {
9446
9390
  value: lines.join("\n")
9447
9391
  } };
9448
9392
  }
9449
-
9450
9393
  //#endregion
9451
9394
  //#region ../lac-lsp/src/lsp/handlers/symbols.ts
9452
9395
  /**
@@ -9473,7 +9416,6 @@ function handleWorkspaceSymbols(params, index) {
9473
9416
  if (total > 200) process.stderr.write(`lac-lsp: workspace symbols capped at 200 (${total} total) — narrow your query\n`);
9474
9417
  return matched.slice(0, 200).map(({ feature, filePath }) => SymbolInformation.create(feature.featureKey, SymbolKind.Module, Range.create(Position.create(0, 0), Position.create(0, 0)), pathToFileURL(filePath).toString(), feature.title));
9475
9418
  }
9476
-
9477
9419
  //#endregion
9478
9420
  //#region ../lac-lsp/src/lsp/connection.ts
9479
9421
  /**
@@ -9487,7 +9429,7 @@ function handleWorkspaceSymbols(params, index) {
9487
9429
  *
9488
9430
  * Call `connection.listen()` after this returns to start the message loop.
9489
9431
  */
9490
- function createLspConnection(index, version$1 = "0.0.0") {
9432
+ function createLspConnection(index, version = "0.0.0") {
9491
9433
  const connection = createConnection(ProposedFeatures.all);
9492
9434
  const documents = new TextDocuments(TextDocument);
9493
9435
  connection.onInitialize((params) => {
@@ -9521,13 +9463,13 @@ function createLspConnection(index, version$1 = "0.0.0") {
9521
9463
  },
9522
9464
  serverInfo: {
9523
9465
  name: "lac-lsp",
9524
- version: version$1
9466
+ version
9525
9467
  }
9526
9468
  };
9527
9469
  });
9528
9470
  connection.onInitialized(() => {
9529
9471
  setupDiagnostics(connection, index);
9530
- connection.console.log(`lac-lsp v${version$1}: ready`);
9472
+ connection.console.log(`lac-lsp v${version}: ready`);
9531
9473
  try {
9532
9474
  connection.workspace?.onDidChangeWorkspaceFolders((event) => {
9533
9475
  for (const folder of event.added) {
@@ -9551,7 +9493,6 @@ function createLspConnection(index, version$1 = "0.0.0") {
9551
9493
  documents.listen(connection);
9552
9494
  return connection;
9553
9495
  }
9554
-
9555
9496
  //#endregion
9556
9497
  //#region ../lac-lsp/src/lib/lint.ts
9557
9498
  const DEFAULTS = {
@@ -9597,7 +9538,6 @@ function lintFeatures(features, options = {}) {
9597
9538
  skippedCount
9598
9539
  };
9599
9540
  }
9600
-
9601
9541
  //#endregion
9602
9542
  //#region ../lac-lsp/src/http/HttpServer.ts
9603
9543
  const VERSION = "0.1.0";
@@ -9700,9 +9640,9 @@ var HttpServer = class {
9700
9640
  });
9701
9641
  }
9702
9642
  /** Starts listening on the given port. Returns once the port is bound. */
9703
- start(port$1) {
9643
+ start(port) {
9704
9644
  return new Promise((res, rej) => {
9705
- this.server.listen(port$1, "127.0.0.1", () => res());
9645
+ this.server.listen(port, "127.0.0.1", () => res());
9706
9646
  this.server.once("error", rej);
9707
9647
  });
9708
9648
  }
@@ -9961,8 +9901,8 @@ var HttpServer = class {
9961
9901
  }
9962
9902
  routeLint(req, url, res) {
9963
9903
  const opts = {};
9964
- const required$1 = url.searchParams.get("required");
9965
- if (required$1) opts.requiredFields = required$1.split(",").map((f) => f.trim()).filter(Boolean);
9904
+ const required = url.searchParams.get("required");
9905
+ if (required) opts.requiredFields = required.split(",").map((f) => f.trim()).filter(Boolean);
9966
9906
  const threshold = url.searchParams.get("threshold");
9967
9907
  if (threshold) {
9968
9908
  const n = parseInt(threshold, 10);
@@ -10053,7 +9993,6 @@ var HttpServer = class {
10053
9993
  res.end(payload);
10054
9994
  }
10055
9995
  };
10056
-
10057
9996
  //#endregion
10058
9997
  //#region ../lac-lsp/src/LacLspServer.ts
10059
9998
  const _require = createRequire(import.meta.url);
@@ -10112,7 +10051,6 @@ var LacLspServer = class {
10112
10051
  this.index.dispose();
10113
10052
  }
10114
10053
  };
10115
-
10116
10054
  //#endregion
10117
10055
  //#region ../lac-lsp/src/index.ts
10118
10056
  function parseArgs(argv) {
@@ -10209,6 +10147,5 @@ server.start().catch((err) => {
10209
10147
  for (const sig of ["SIGINT", "SIGTERM"]) process$1.once(sig, () => {
10210
10148
  server.stop().then(() => process$1.exit(0)).catch(() => process$1.exit(1));
10211
10149
  });
10212
-
10213
10150
  //#endregion
10214
- export { };
10151
+ export {};