@shopify/cli 3.72.1 → 3.73.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.
Files changed (149) hide show
  1. package/dist/assets/hydrogen/starter/CHANGELOG.md +814 -0
  2. package/dist/assets/hydrogen/starter/app/components/Aside.tsx +1 -1
  3. package/dist/assets/hydrogen/starter/app/components/PaginatedResourceSection.tsx +3 -4
  4. package/dist/assets/hydrogen/starter/app/components/ProductForm.tsx +113 -44
  5. package/dist/assets/hydrogen/starter/app/components/SearchResults.tsx +8 -3
  6. package/dist/assets/hydrogen/starter/app/components/SearchResultsPredictive.tsx +6 -5
  7. package/dist/assets/hydrogen/starter/app/lib/variants.ts +3 -3
  8. package/dist/assets/hydrogen/starter/app/routes/account_.logout.tsx +1 -1
  9. package/dist/assets/hydrogen/starter/app/routes/cart.tsx +9 -16
  10. package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +1 -10
  11. package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +1 -10
  12. package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +50 -119
  13. package/dist/assets/hydrogen/starter/app/routes/search.tsx +42 -38
  14. package/dist/assets/hydrogen/starter/app/styles/app.css +25 -1
  15. package/dist/assets/hydrogen/starter/guides/predictiveSearch/predictiveSearch.md +23 -20
  16. package/dist/assets/hydrogen/starter/guides/search/search.md +27 -25
  17. package/dist/assets/hydrogen/starter/package.json +3 -3
  18. package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +177 -194
  19. package/dist/assets/hydrogen/tailwind/tailwind.css +1 -1
  20. package/dist/{chokidar-OESTCX4H.js → chokidar-5LLC6S6D.js} +47 -90
  21. package/dist/{chunk-VSLR7ET4.js → chunk-25IMI7TH.js} +8 -46
  22. package/dist/{chunk-NCKQIOV4.js → chunk-3HBRMIPY.js} +28 -50
  23. package/dist/{chunk-4DZKSJ2R.js → chunk-3OXCI3HX.js} +1402 -1989
  24. package/dist/{chunk-NX2KGZ2W.js → chunk-5OFJTURZ.js} +4 -4
  25. package/dist/{chunk-YITJ52BH.js → chunk-65GSOZHL.js} +7 -7
  26. package/dist/{chunk-5BCHJBAS.js → chunk-66HLUVKV.js} +4 -4
  27. package/dist/{chunk-J6WHIPSP.js → chunk-6PEBJVBW.js} +3 -3
  28. package/dist/{chunk-XVNW332R.js → chunk-75LV6AQS.js} +6 -10
  29. package/dist/{chunk-4ERNAW5E.js → chunk-7RKRCUFA.js} +16518 -24140
  30. package/dist/{chunk-FGSRYMBN.js → chunk-AFPOP3K5.js} +67 -104
  31. package/dist/{chunk-2HGYYNE5.js → chunk-B5EXYCV3.js} +5 -9
  32. package/dist/{chunk-NB4NLOEJ.js → chunk-BUFIEXZ5.js} +11 -20
  33. package/dist/{chunk-EQQFJ434.js → chunk-CEIZT2W3.js} +4 -4
  34. package/dist/{chunk-522OB3EU.js → chunk-CFIKVUNW.js} +2 -2
  35. package/dist/{chunk-KYB6A4PE.js → chunk-CRHXI6PS.js} +13 -23
  36. package/dist/{chunk-QBE6MS4X.js → chunk-ELTOJBOJ.js} +4 -5
  37. package/dist/{chunk-NUP5TATA.js → chunk-EZQWZ57B.js} +2 -2
  38. package/dist/{chunk-HAURZWLZ.js → chunk-F7D333WQ.js} +3 -3
  39. package/dist/{chunk-UBB7JKND.js → chunk-G2ZZKGSV.js} +2 -2
  40. package/dist/{chunk-CBBS4CV7.js → chunk-G5R6YD27.js} +8 -13
  41. package/dist/{chunk-REXJJC44.js → chunk-GDLROW57.js} +3 -3
  42. package/dist/{chunk-TQTXTCOI.js → chunk-I25PGLBO.js} +3 -3
  43. package/dist/{chunk-OXKHBIW7.js → chunk-IG5SOACB.js} +29 -34
  44. package/dist/{chunk-2FXFMB2U.js → chunk-IRHYYIN7.js} +4 -4
  45. package/dist/{chunk-OWLPHMUA.js → chunk-J673ZU5S.js} +4 -4
  46. package/dist/{chunk-U2VX4Q6V.js → chunk-JORKLY7M.js} +68 -49
  47. package/dist/{chunk-K6Y4FYT5.js → chunk-K7HGDAI4.js} +17 -20
  48. package/dist/{chunk-MTXNEHKM.js → chunk-KF2D6QHZ.js} +39 -68
  49. package/dist/{chunk-QBDNLBUG.js → chunk-KMWARALD.js} +5 -5
  50. package/dist/{chunk-E7MQ72JO.js → chunk-KTNFE44J.js} +111 -84
  51. package/dist/{chunk-BYPQXSAL.js → chunk-KUM3DVPF.js} +17 -13
  52. package/dist/{chunk-B2HZKGLW.js → chunk-KZBL6BQ7.js} +4 -4
  53. package/dist/{chunk-WNDN5FAY.js → chunk-MHUINF7I.js} +3 -3
  54. package/dist/{chunk-YDFZISQ3.js → chunk-NFQLKURK.js} +41 -68
  55. package/dist/{chunk-7JVASAC6.js → chunk-O77L7CCL.js} +4 -4
  56. package/dist/{chunk-SNOECVP4.js → chunk-OAZFIMJ3.js} +2 -2
  57. package/dist/{chunk-OYHBLPKV.js → chunk-OE3IXTC5.js} +38 -60
  58. package/dist/{chunk-HLKMRAT5.js → chunk-ONOLOXLM.js} +5 -5
  59. package/dist/{chunk-POZ5MGPT.js → chunk-PKR7KJ6P.js} +2 -3
  60. package/dist/{chunk-YG5QRMVT.js → chunk-PRWEHR2C.js} +3 -3
  61. package/dist/{chunk-72RTT46Y.js → chunk-QNK2EAZ3.js} +5 -5
  62. package/dist/{chunk-3G3CTE4U.js → chunk-RCA7PFH4.js} +4 -4
  63. package/dist/{chunk-OG2XEFVO.js → chunk-RK7JAMCI.js} +6 -6
  64. package/dist/{chunk-QRNLG3CD.js → chunk-SANP6FPA.js} +6 -6
  65. package/dist/{chunk-OJOHMVV7.js → chunk-SBPFWO4S.js} +294 -448
  66. package/dist/{chunk-O5K4AU7Q.js → chunk-SHWOPMLQ.js} +3 -4
  67. package/dist/{chunk-6Z7SI3ZW.js → chunk-SUUVDRTQ.js} +6 -7
  68. package/dist/{chunk-HHAGWNRI.js → chunk-TEHNKBLD.js} +6 -7
  69. package/dist/{chunk-XHR6UC4Y.js → chunk-VPNXQGG6.js} +4 -4
  70. package/dist/{chunk-MWLLV4UV.js → chunk-X5FJXK25.js} +9 -9
  71. package/dist/{chunk-PMUQTGZJ.js → chunk-X7YTIMNN.js} +4 -6
  72. package/dist/{chunk-PC7RDKJJ.js → chunk-XAGT2UNE.js} +3 -3
  73. package/dist/{chunk-7Q3MMWAC.js → chunk-XE5EOEBL.js} +2 -2
  74. package/dist/{chunk-VVD57NWZ.js → chunk-YP7WU5EU.js} +5 -5
  75. package/dist/{chunk-G2WBIWNF.js → chunk-YPTEMDFR.js} +5 -5
  76. package/dist/{chunk-4PXLANQP.js → chunk-ZENVITME.js} +4 -4
  77. package/dist/{chunk-HSTSRNLJ.js → chunk-ZX3L2JKV.js} +64 -86
  78. package/dist/cli/commands/auth/logout.js +28 -28
  79. package/dist/cli/commands/auth/logout.test.js +30 -30
  80. package/dist/cli/commands/cache/clear.js +27 -27
  81. package/dist/cli/commands/debug/command-flags.js +27 -27
  82. package/dist/cli/commands/docs/generate.js +27 -27
  83. package/dist/cli/commands/docs/generate.test.js +28 -28
  84. package/dist/cli/commands/help.js +27 -27
  85. package/dist/cli/commands/kitchen-sink/async.js +28 -28
  86. package/dist/cli/commands/kitchen-sink/async.test.js +29 -29
  87. package/dist/cli/commands/kitchen-sink/index.js +30 -30
  88. package/dist/cli/commands/kitchen-sink/index.test.js +31 -31
  89. package/dist/cli/commands/kitchen-sink/prompts.js +28 -28
  90. package/dist/cli/commands/kitchen-sink/prompts.test.js +29 -29
  91. package/dist/cli/commands/kitchen-sink/static.js +28 -28
  92. package/dist/cli/commands/kitchen-sink/static.test.js +29 -29
  93. package/dist/cli/commands/notifications/generate.js +28 -28
  94. package/dist/cli/commands/notifications/list.js +28 -28
  95. package/dist/cli/commands/search.js +28 -28
  96. package/dist/cli/commands/upgrade.js +28 -28
  97. package/dist/cli/commands/upgrade.test.js +3 -3
  98. package/dist/cli/commands/version.js +28 -28
  99. package/dist/cli/commands/version.test.js +29 -29
  100. package/dist/cli/services/commands/notifications.js +21 -21
  101. package/dist/cli/services/commands/search.js +15 -15
  102. package/dist/cli/services/commands/search.test.js +16 -16
  103. package/dist/cli/services/commands/version.js +16 -16
  104. package/dist/cli/services/commands/version.test.js +18 -18
  105. package/dist/cli/services/kitchen-sink/async.js +15 -15
  106. package/dist/cli/services/kitchen-sink/prompts.js +15 -15
  107. package/dist/cli/services/kitchen-sink/static.js +15 -15
  108. package/dist/cli/services/upgrade.js +17 -17
  109. package/dist/cli/services/upgrade.test.js +20 -20
  110. package/dist/configs/all.yml +12 -0
  111. package/dist/configs/recommended.yml +15 -0
  112. package/dist/configs/theme-app-extension.yml +3 -0
  113. package/dist/{custom-oclif-loader-MUOL3HPQ.js → custom-oclif-loader-V3IB4SYZ.js} +15 -15
  114. package/dist/data/latest.json +1 -1
  115. package/dist/data/manifest_theme.json +1 -0
  116. package/dist/data/preset.json +66 -0
  117. package/dist/data/preset_blocks.json +20 -13
  118. package/dist/data/section.json +1 -15
  119. package/dist/data/setting.json +1 -1
  120. package/dist/data/theme_block.json +1 -15
  121. package/dist/{del-K5ZJEWTD.js → del-P2RS6GN2.js} +9 -9
  122. package/dist/{devtools-KYKGATNX.js → devtools-K7FXBBFZ.js} +3 -3
  123. package/dist/error-handler-WK3AZ7A2.js +38 -0
  124. package/dist/hooks/postrun.js +22 -22
  125. package/dist/hooks/prerun.js +22 -22
  126. package/dist/{http-proxy-GGTVQ6CU.js → http-proxy-FXWKYHZ3.js} +14 -24
  127. package/dist/index.js +7229 -7321
  128. package/dist/lib-JVEIEXYB.js +6 -0
  129. package/dist/lib-QZGSY5YB.js +13 -0
  130. package/dist/{local-YCARFR7T.js → local-3ERK45M5.js} +15 -15
  131. package/dist/{magic-string.es-3RXPUXZF.js → magic-string.es-PJMYOE6F.js} +49 -96
  132. package/dist/{morph-SEECJQ2W.js → morph-OSHCID2F.js} +261 -347
  133. package/dist/{multipart-parser-QKUAJJP5.js → multipart-parser-WSNBP656.js} +8 -7
  134. package/dist/{node-NSRIJ2KL.js → node-2KLEBSMO.js} +31 -31
  135. package/dist/{node-package-manager-TLCUDNS2.js → node-package-manager-QIM24GB3.js} +19 -17
  136. package/dist/{npa-RLWNZ3BM.js → npa-TM76BGG3.js} +10 -16
  137. package/dist/{open-MZGVNFZO.js → open-BHIF7E3E.js} +3 -3
  138. package/dist/out-JR4DWQ2G.js +7 -0
  139. package/dist/{path-NDLRQPLA.js → path-2HZUSAGR.js} +3 -3
  140. package/dist/{source-map-7AAPWPHZ.js → source-map-QCVC46UY.js} +2 -2
  141. package/dist/tsconfig.tsbuildinfo +1 -1
  142. package/dist/{ui-5AEI3FU6.js → ui-5AHG256I.js} +15 -15
  143. package/dist/{workerd-SW7QDYB6.js → workerd-MSNALKI2.js} +30 -30
  144. package/oclif.manifest.json +81 -1
  145. package/package.json +8 -8
  146. package/dist/error-handler-MOT24ECB.js +0 -38
  147. package/dist/lib-PPXZBVZX.js +0 -6
  148. package/dist/lib-XYCLX35G.js +0 -13
  149. package/dist/out-MHEKZJWS.js +0 -7
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  require_normalize_path
3
- } from "./chunk-PMUQTGZJ.js";
3
+ } from "./chunk-X7YTIMNN.js";
4
4
  import {
5
5
  require_glob_parent,
6
6
  require_is_glob,
7
7
  require_picomatch,
8
8
  require_to_regex_range
9
- } from "./chunk-NB4NLOEJ.js";
9
+ } from "./chunk-BUFIEXZ5.js";
10
10
  import {
11
11
  __commonJS,
12
12
  __require,
13
13
  init_cjs_shims
14
- } from "./chunk-POZ5MGPT.js";
14
+ } from "./chunk-PKR7KJ6P.js";
15
15
 
16
16
  // ../../node_modules/.pnpm/readdirp@3.6.0/node_modules/readdirp/index.js
17
17
  var require_readdirp = __commonJS({
@@ -20,8 +20,7 @@ var require_readdirp = __commonJS({
20
20
  init_cjs_shims();
21
21
  var fs = __require("fs"), { Readable } = __require("stream"), sysPath = __require("path"), { promisify } = __require("util"), picomatch = require_picomatch(), readdir = promisify(fs.readdir), stat = promisify(fs.stat), lstat = promisify(fs.lstat), realpath = promisify(fs.realpath), BANG = "!", RECURSIVE_ERROR_CODE = "READDIRP_RECURSIVE_ERROR", NORMAL_FLOW_ERRORS = /* @__PURE__ */ new Set(["ENOENT", "EPERM", "EACCES", "ELOOP", RECURSIVE_ERROR_CODE]), FILE_TYPE = "files", DIR_TYPE = "directories", FILE_DIR_TYPE = "files_directories", EVERYTHING_TYPE = "all", ALL_TYPES = [FILE_TYPE, DIR_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE], isNormalFlowError = (error) => NORMAL_FLOW_ERRORS.has(error.code), [maj, min] = process.versions.node.split(".").slice(0, 2).map((n) => Number.parseInt(n, 10)), wantBigintFsStats = process.platform === "win32" && (maj > 10 || maj === 10 && min >= 5), normalizeFilter = (filter) => {
22
22
  if (filter !== void 0) {
23
- if (typeof filter == "function")
24
- return filter;
23
+ if (typeof filter == "function") return filter;
25
24
  if (typeof filter == "string") {
26
25
  let glob = picomatch(filter.trim());
27
26
  return (entry) => glob(entry.basename);
@@ -69,8 +68,7 @@ var require_readdirp = __commonJS({
69
68
  if (files.length > 0) {
70
69
  let slice = files.splice(0, batch).map((dirent) => this._formatEntry(dirent, path));
71
70
  for (let entry of await Promise.all(slice)) {
72
- if (this.destroyed)
73
- return;
71
+ if (this.destroyed) return;
74
72
  let entryType = await this._getEntryType(entry);
75
73
  entryType === "directory" && this._directoryFilter(entry) ? (depth <= this._maxDepth && this.parents.push(this._exploreDir(entry.fullPath, depth + 1)), this._wantsDir && (this.push(entry), batch--)) : (entryType === "file" || this._includeAsFile(entry)) && this._fileFilter(entry) && this._wantsFile && (this.push(entry), batch--);
76
74
  }
@@ -80,8 +78,7 @@ var require_readdirp = __commonJS({
80
78
  this.push(null);
81
79
  break;
82
80
  }
83
- if (this.parent = await parent, this.destroyed)
84
- return;
81
+ if (this.parent = await parent, this.destroyed) return;
85
82
  }
86
83
  }
87
84
  } catch (error) {
@@ -153,8 +150,7 @@ var require_readdirp = __commonJS({
153
150
  throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");
154
151
  if (type && !ALL_TYPES.includes(type))
155
152
  throw new Error(`readdirp: Invalid type passed. Use one of ${ALL_TYPES.join(", ")}`);
156
- } else
157
- throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");
153
+ } else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");
158
154
  return options.root = root, new ReaddirpStream(options);
159
155
  }, readdirpPromise = (root, options = {}) => new Promise((resolve, reject) => {
160
156
  let files = [];
@@ -268,10 +264,8 @@ var require_fill_range = __commonJS({
268
264
  init_cjs_shims();
269
265
  var util = __require("util"), toRegexRange = require_to_regex_range(), isObject = (val) => val !== null && typeof val == "object" && !Array.isArray(val), transform = (toNumber) => (value) => toNumber === !0 ? Number(value) : String(value), isValidValue = (value) => typeof value == "number" || typeof value == "string" && value !== "", isNumber = (num) => Number.isInteger(+num), zeros = (input) => {
270
266
  let value = `${input}`, index = -1;
271
- if (value[0] === "-" && (value = value.slice(1)), value === "0")
272
- return !1;
273
- for (; value[++index] === "0"; )
274
- ;
267
+ if (value[0] === "-" && (value = value.slice(1)), value === "0") return !1;
268
+ for (; value[++index] === "0"; ) ;
275
269
  return index > 0;
276
270
  }, stringify = (start, end, options) => typeof start == "string" || typeof end == "string" ? !0 : options.stringify === !0, pad = (input, maxLength, toNumber) => {
277
271
  if (maxLength > 0) {
@@ -281,8 +275,7 @@ var require_fill_range = __commonJS({
281
275
  return toNumber === !1 ? String(input) : input;
282
276
  }, toMaxLen = (input, maxLength) => {
283
277
  let negative = input[0] === "-" ? "-" : "";
284
- for (negative && (input = input.slice(1), maxLength--); input.length < maxLength; )
285
- input = "0" + input;
278
+ for (negative && (input = input.slice(1), maxLength--); input.length < maxLength; ) input = "0" + input;
286
279
  return negative ? "-" + input : input;
287
280
  }, toSequence = (parts, options) => {
288
281
  parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0), parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
@@ -292,8 +285,7 @@ var require_fill_range = __commonJS({
292
285
  if (isNumbers)
293
286
  return toRegexRange(a, b, { wrap: !1, ...options });
294
287
  let start = String.fromCharCode(a);
295
- if (a === b)
296
- return start;
288
+ if (a === b) return start;
297
289
  let stop = String.fromCharCode(b);
298
290
  return `[${start}-${stop}]`;
299
291
  }, toRegex = (start, end, options) => {
@@ -303,8 +295,7 @@ var require_fill_range = __commonJS({
303
295
  }
304
296
  return toRegexRange(start, end, options);
305
297
  }, rangeError = (...args) => new RangeError("Invalid range arguments: " + util.inspect(...args)), invalidRange = (start, end, options) => {
306
- if (options.strictRanges === !0)
307
- throw rangeError([start, end]);
298
+ if (options.strictRanges === !0) throw rangeError([start, end]);
308
299
  return [];
309
300
  }, invalidStep = (step, options) => {
310
301
  if (options.strictRanges === !0)
@@ -313,8 +304,7 @@ var require_fill_range = __commonJS({
313
304
  }, fillNumbers = (start, end, step = 1, options = {}) => {
314
305
  let a = Number(start), b = Number(end);
315
306
  if (!Number.isInteger(a) || !Number.isInteger(b)) {
316
- if (options.strictRanges === !0)
317
- throw rangeError([start, end]);
307
+ if (options.strictRanges === !0) throw rangeError([start, end]);
318
308
  return [];
319
309
  }
320
310
  a === 0 && (a = 0), b === 0 && (b = 0);
@@ -394,8 +384,7 @@ var require_expand = __commonJS({
394
384
  init_cjs_shims();
395
385
  var fill = require_fill_range(), stringify = require_stringify(), utils = require_utils(), append = (queue = "", stash = "", enclose = !1) => {
396
386
  let result = [];
397
- if (queue = [].concat(queue), stash = [].concat(stash), !stash.length)
398
- return queue;
387
+ if (queue = [].concat(queue), stash = [].concat(stash), !stash.length) return queue;
399
388
  if (!queue.length)
400
389
  return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
401
390
  for (let item of queue)
@@ -1184,8 +1173,7 @@ var require_nodefs_handler = __commonJS({
1184
1173
  errHandler,
1185
1174
  // no need to use broadcast here
1186
1175
  fsWatchBroadcast.bind(null, fullPath, KEY_RAW)
1187
- ), !watcher)
1188
- return;
1176
+ ), !watcher) return;
1189
1177
  watcher.on(EV_ERROR, async (error) => {
1190
1178
  let broadcastErr = fsWatchBroadcast.bind(null, fullPath, KEY_ERR);
1191
1179
  if (cont.watcherUnusable = !0, isWindows && error.code === "EPERM")
@@ -1261,15 +1249,13 @@ var require_nodefs_handler = __commonJS({
1261
1249
  if (this.fsw.closed)
1262
1250
  return;
1263
1251
  let dirname = sysPath.dirname(file), basename = sysPath.basename(file), parent = this.fsw._getWatchedDir(dirname), prevStats = stats;
1264
- if (parent.has(basename))
1265
- return;
1252
+ if (parent.has(basename)) return;
1266
1253
  let listener = async (path, newStats) => {
1267
1254
  if (this.fsw._throttle(THROTTLE_MODE_WATCH, file, 5)) {
1268
1255
  if (!newStats || newStats.mtimeMs === 0)
1269
1256
  try {
1270
1257
  let newStats2 = await stat(file);
1271
- if (this.fsw.closed)
1272
- return;
1258
+ if (this.fsw.closed) return;
1273
1259
  let at = newStats2.atimeMs, mt = newStats2.mtimeMs;
1274
1260
  (!at || at <= mt || mt !== prevStats.mtimeMs) && this.fsw._emit(EV_CHANGE, file, newStats2), isLinux && prevStats.ino !== newStats2.ino ? (this.fsw._closeFile(path), prevStats = newStats2, this.fsw._addPathCloser(path, this._watchWithNodeFs(file, listener))) : prevStats = newStats2;
1275
1261
  } catch {
@@ -1282,8 +1268,7 @@ var require_nodefs_handler = __commonJS({
1282
1268
  }
1283
1269
  }, closer = this._watchWithNodeFs(file, listener);
1284
1270
  if (!(initialAdd && this.fsw.options.ignoreInitial) && this.fsw._isntIgnored(file)) {
1285
- if (!this.fsw._throttle(EV_ADD, file, 0))
1286
- return;
1271
+ if (!this.fsw._throttle(EV_ADD, file, 0)) return;
1287
1272
  this.fsw._emit(EV_ADD, file, stats);
1288
1273
  }
1289
1274
  return closer;
@@ -1395,23 +1380,19 @@ var require_nodefs_handler = __commonJS({
1395
1380
  !wh.hasGlob && priorWh && (wh.hasGlob = priorWh.hasGlob, wh.globFilter = priorWh.globFilter, wh.filterPath = (entry) => priorWh.filterPath(entry), wh.filterDir = (entry) => priorWh.filterDir(entry));
1396
1381
  try {
1397
1382
  let stats = await statMethods[wh.statMethod](wh.watchPath);
1398
- if (this.fsw.closed)
1399
- return;
1383
+ if (this.fsw.closed) return;
1400
1384
  if (this.fsw._isIgnored(wh.watchPath, stats))
1401
1385
  return ready(), !1;
1402
1386
  let follow = this.fsw.options.followSymlinks && !path.includes(STAR) && !path.includes(BRACE_START), closer;
1403
1387
  if (stats.isDirectory()) {
1404
1388
  let absPath = sysPath.resolve(path), targetPath = follow ? await fsrealpath(path) : path;
1405
- if (this.fsw.closed || (closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath), this.fsw.closed))
1406
- return;
1389
+ if (this.fsw.closed || (closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath), this.fsw.closed)) return;
1407
1390
  absPath !== targetPath && targetPath !== void 0 && this.fsw._symlinkPaths.set(absPath, targetPath);
1408
1391
  } else if (stats.isSymbolicLink()) {
1409
1392
  let targetPath = follow ? await fsrealpath(path) : path;
1410
- if (this.fsw.closed)
1411
- return;
1393
+ if (this.fsw.closed) return;
1412
1394
  let parent = sysPath.dirname(wh.watchPath);
1413
- if (this.fsw._getWatchedDir(parent).add(wh.watchPath), this.fsw._emit(EV_ADD, wh.watchPath, stats), closer = await this._handleDir(parent, stats, initialAdd, depth, path, wh, targetPath), this.fsw.closed)
1414
- return;
1395
+ if (this.fsw._getWatchedDir(parent).add(wh.watchPath), this.fsw._emit(EV_ADD, wh.watchPath, stats), closer = await this._handleDir(parent, stats, initialAdd, depth, path, wh, targetPath), this.fsw.closed) return;
1415
1396
  targetPath !== void 0 && this.fsw._symlinkPaths.set(sysPath.resolve(path), targetPath);
1416
1397
  } else
1417
1398
  closer = this._handleFile(wh.watchPath, stats, initialAdd);
@@ -1492,8 +1473,7 @@ var require_fsevents_handler = __commonJS({
1492
1473
  listeners: /* @__PURE__ */ new Set([filteredListener]),
1493
1474
  rawEmitter,
1494
1475
  watcher: createFSEventsInstance(watchPath, (fullPath, flags) => {
1495
- if (!cont.listeners.size)
1496
- return;
1476
+ if (!cont.listeners.size) return;
1497
1477
  let info = fsevents.getInfo(fullPath, flags);
1498
1478
  cont.listeners.forEach((list) => {
1499
1479
  list(fullPath, flags, info);
@@ -1515,8 +1495,7 @@ var require_fsevents_handler = __commonJS({
1515
1495
  return !1;
1516
1496
  }, canUse = () => fsevents && FSEventsWatchers.size < 128, calcDepth = (path, root) => {
1517
1497
  let i = 0;
1518
- for (; !path.indexOf(root) && (path = sysPath.dirname(path)) !== root; )
1519
- i++;
1498
+ for (; !path.indexOf(root) && (path = sysPath.dirname(path)) !== root; ) i++;
1520
1499
  return i;
1521
1500
  }, sameTypes = (info, stats) => info.type === FSEVENT_TYPE_DIRECTORY && stats.isDirectory() || info.type === FSEVENT_TYPE_SYMLINK && stats.isSymbolicLink() || info.type === FSEVENT_TYPE_FILE && stats.isFile(), FsEventsHandler = class {
1522
1501
  /**
@@ -1538,8 +1517,7 @@ var require_fsevents_handler = __commonJS({
1538
1517
  async checkExists(path, fullPath, realPath, parent, watchedDir, item, info, opts) {
1539
1518
  try {
1540
1519
  let stats = await stat(path);
1541
- if (this.fsw.closed)
1542
- return;
1520
+ if (this.fsw.closed) return;
1543
1521
  sameTypes(info, stats) ? this.addOrChange(path, fullPath, realPath, parent, watchedDir, item, info, opts) : this.handleEvent(EV_UNLINK, path, fullPath, realPath, parent, watchedDir, item, info, opts);
1544
1522
  } catch (error) {
1545
1523
  error.code === "EACCES" ? this.addOrChange(path, fullPath, realPath, parent, watchedDir, item, info, opts) : this.handleEvent(EV_UNLINK, path, fullPath, realPath, parent, watchedDir, item, info, opts);
@@ -1571,20 +1549,17 @@ var require_fsevents_handler = __commonJS({
1571
1549
  * @returns {Function} closer for the watcher instance
1572
1550
  */
1573
1551
  _watchWithFsEvents(watchPath, realPath, transform, globFilter) {
1574
- if (this.fsw.closed || this.fsw._isIgnored(watchPath))
1575
- return;
1552
+ if (this.fsw.closed || this.fsw._isIgnored(watchPath)) return;
1576
1553
  let opts = this.fsw.options, closer = setFSEventsListener(
1577
1554
  watchPath,
1578
1555
  realPath,
1579
1556
  async (fullPath, flags, info) => {
1580
- if (this.fsw.closed || opts.depth !== void 0 && calcDepth(fullPath, realPath) > opts.depth)
1581
- return;
1557
+ if (this.fsw.closed || opts.depth !== void 0 && calcDepth(fullPath, realPath) > opts.depth) return;
1582
1558
  let path = transform(sysPath.join(
1583
1559
  watchPath,
1584
1560
  sysPath.relative(watchPath, fullPath)
1585
1561
  ));
1586
- if (globFilter && !globFilter(path))
1587
- return;
1562
+ if (globFilter && !globFilter(path)) return;
1588
1563
  let parent = sysPath.dirname(path), item = sysPath.basename(path), watchedDir = this.fsw._getWatchedDir(
1589
1564
  info.type === FSEVENT_TYPE_DIRECTORY ? path : parent
1590
1565
  );
@@ -1595,8 +1570,7 @@ var require_fsevents_handler = __commonJS({
1595
1570
  stats = await stat(path);
1596
1571
  } catch {
1597
1572
  }
1598
- if (this.fsw.closed || this.checkIgnored(path, stats))
1599
- return;
1573
+ if (this.fsw.closed || this.checkIgnored(path, stats)) return;
1600
1574
  sameTypes(info, stats) ? this.addOrChange(path, fullPath, realPath, parent, watchedDir, item, info, opts) : this.handleEvent(EV_UNLINK, path, fullPath, realPath, parent, watchedDir, item, info, opts);
1601
1575
  } else
1602
1576
  this.checkExists(path, fullPath, realPath, parent, watchedDir, item, info, opts);
@@ -1627,8 +1601,7 @@ var require_fsevents_handler = __commonJS({
1627
1601
  this.fsw._symlinkPaths.set(fullPath, !0), this.fsw._incrReadyCount();
1628
1602
  try {
1629
1603
  let linkTarget = await realpath(linkPath);
1630
- if (this.fsw.closed)
1631
- return;
1604
+ if (this.fsw.closed) return;
1632
1605
  if (this.fsw._isIgnored(linkTarget))
1633
1606
  return this.fsw._emitReady();
1634
1607
  this.fsw._incrReadyCount(), this._addToFsEvents(linkTarget || linkPath, (path) => {
@@ -1651,8 +1624,7 @@ var require_fsevents_handler = __commonJS({
1651
1624
  isDir && this.fsw._getWatchedDir(pp), !dirObj.has(base) && (dirObj.add(base), (!opts.ignoreInitial || forceAdd === !0) && this.fsw._emit(isDir ? EV_ADD_DIR : EV_ADD, pp, stats));
1652
1625
  }
1653
1626
  initWatch(realPath, path, wh, processPath) {
1654
- if (this.fsw.closed)
1655
- return;
1627
+ if (this.fsw.closed) return;
1656
1628
  let closer = this._watchWithFsEvents(
1657
1629
  wh.watchPath,
1658
1630
  sysPath.resolve(realPath || wh.watchPath),
@@ -1675,20 +1647,17 @@ var require_fsevents_handler = __commonJS({
1675
1647
  let opts = this.fsw.options, processPath = typeof transform === FUNCTION_TYPE ? transform : IDENTITY_FN, wh = this.fsw._getWatchHelpers(path);
1676
1648
  try {
1677
1649
  let stats = await statMethods[wh.statMethod](wh.watchPath);
1678
- if (this.fsw.closed)
1679
- return;
1650
+ if (this.fsw.closed) return;
1680
1651
  if (this.fsw._isIgnored(wh.watchPath, stats))
1681
1652
  throw null;
1682
1653
  if (stats.isDirectory()) {
1683
- if (wh.globFilter || this.emitAdd(processPath(path), stats, processPath, opts, forceAdd), priorDepth && priorDepth > opts.depth)
1684
- return;
1654
+ if (wh.globFilter || this.emitAdd(processPath(path), stats, processPath, opts, forceAdd), priorDepth && priorDepth > opts.depth) return;
1685
1655
  this.fsw._readdirp(wh.watchPath, {
1686
1656
  fileFilter: (entry) => wh.filterPath(entry),
1687
1657
  directoryFilter: (entry) => wh.filterDir(entry),
1688
1658
  ...Depth(opts.depth - (priorDepth || 0))
1689
1659
  }).on(STR_DATA, (entry) => {
1690
- if (this.fsw.closed || entry.stats.isDirectory() && !wh.filterPath(entry))
1691
- return;
1660
+ if (this.fsw.closed || entry.stats.isDirectory() && !wh.filterPath(entry)) return;
1692
1661
  let joinedPath = sysPath.join(wh.watchPath, entry.path), { fullPath } = entry;
1693
1662
  if (wh.followSymlinks && entry.stats.isSymbolicLink()) {
1694
1663
  let curDepth = opts.depth === void 0 ? void 0 : calcDepth(joinedPath, sysPath.resolve(wh.watchPath)) + 1;
@@ -1784,8 +1753,7 @@ var require_chokidar = __commonJS({
1784
1753
  }
1785
1754
  async remove(item) {
1786
1755
  let { items } = this;
1787
- if (!items || (items.delete(item), items.size > 0))
1788
- return;
1756
+ if (!items || (items.delete(item), items.size > 0)) return;
1789
1757
  let dir = this.path;
1790
1758
  try {
1791
1759
  await readdir(dir);
@@ -1826,14 +1794,12 @@ var require_chokidar = __commonJS({
1826
1794
  }
1827
1795
  filterPath(entry) {
1828
1796
  let { stats } = entry;
1829
- if (stats && stats.isSymbolicLink())
1830
- return this.filterDir(entry);
1797
+ if (stats && stats.isSymbolicLink()) return this.filterDir(entry);
1831
1798
  let resolvedPath = this.entryPath(entry);
1832
1799
  return (this.hasGlob && typeof this.globFilter === FUNCTION_TYPE ? this.globFilter(resolvedPath) : !0) && this.fsw._isntIgnored(resolvedPath, stats) && this.fsw._hasReadPermissions(stats);
1833
1800
  }
1834
1801
  getDirParts(path) {
1835
- if (!this.hasGlob)
1836
- return [];
1802
+ if (!this.hasGlob) return [];
1837
1803
  let parts = [];
1838
1804
  return (path.includes(BRACE_START) ? braces.expand(path) : [path]).forEach((path2) => {
1839
1805
  parts.push(sysPath.relative(this.watchPath, path2).split(SLASH_OR_BACK_SLASH_RE));
@@ -1898,8 +1864,7 @@ var require_chokidar = __commonJS({
1898
1864
  * @returns {FSWatcher} for chaining
1899
1865
  */
1900
1866
  unwatch(paths_) {
1901
- if (this.closed)
1902
- return this;
1867
+ if (this.closed) return this;
1903
1868
  let paths = unifyPaths(paths_), { cwd } = this.options;
1904
1869
  return paths.forEach((path) => {
1905
1870
  !sysPath.isAbsolute(path) && !this._closers.has(path) && (cwd && (path = sysPath.join(cwd, path)), path = sysPath.resolve(path)), this._closePath(path), this._ignoredPaths.add(path), this._watched.has(path) && this._ignoredPaths.add(path + SLASH_GLOBSTAR), this._userIgnored = void 0;
@@ -1910,8 +1875,7 @@ var require_chokidar = __commonJS({
1910
1875
  * @returns {Promise<void>}.
1911
1876
  */
1912
1877
  close() {
1913
- if (this.closed)
1914
- return this._closePromise;
1878
+ if (this.closed) return this._closePromise;
1915
1879
  this.closed = !0, this.removeAllListeners();
1916
1880
  let closers = [];
1917
1881
  return this._closers.forEach((closerList) => closerList.forEach((closer) => {
@@ -1949,8 +1913,7 @@ var require_chokidar = __commonJS({
1949
1913
  * @returns the error if defined, otherwise the value of the FSWatcher instance's `closed` flag
1950
1914
  */
1951
1915
  async _emit(event, path, val1, val2, val3) {
1952
- if (this.closed)
1953
- return;
1916
+ if (this.closed) return;
1954
1917
  let opts = this.options;
1955
1918
  isWindows && (path = sysPath.normalize(path)), opts.cwd && (path = sysPath.relative(opts.cwd, path));
1956
1919
  let args = [event, path];
@@ -1981,8 +1944,7 @@ var require_chokidar = __commonJS({
1981
1944
  stats = await stat(fullPath);
1982
1945
  } catch {
1983
1946
  }
1984
- if (!stats || this.closed)
1985
- return;
1947
+ if (!stats || this.closed) return;
1986
1948
  args.push(stats);
1987
1949
  }
1988
1950
  return this.emitWithAll(event, args), this;
@@ -2064,8 +2026,7 @@ var require_chokidar = __commonJS({
2064
2026
  * @returns {Boolean}
2065
2027
  */
2066
2028
  _isIgnored(path, stats) {
2067
- if (this.options.atomic && DOT_RE.test(path))
2068
- return !0;
2029
+ if (this.options.atomic && DOT_RE.test(path)) return !0;
2069
2030
  if (!this._userIgnored) {
2070
2031
  let { cwd } = this.options, ign = this.options.ignored, ignored = ign && ign.map(normalizeIgnored(cwd)), paths = arrify(ignored).filter((path2) => typeof path2 === STRING_TYPE && !isGlob(path2)).map((path2) => path2 + SLASH_GLOBSTAR), list = this._getGlobIgnored().map(normalizeIgnored(cwd)).concat(ignored, paths);
2071
2032
  this._userIgnored = anymatch(list, void 0, ANYMATCH_OPTS);
@@ -2106,8 +2067,7 @@ var require_chokidar = __commonJS({
2106
2067
  * @returns {Boolean} indicates whether the file can be read
2107
2068
  */
2108
2069
  _hasReadPermissions(stats) {
2109
- if (this.options.ignorePermissionErrors)
2110
- return !0;
2070
+ if (this.options.ignorePermissionErrors) return !0;
2111
2071
  let st = (stats && Number.parseInt(stats.mode, 10)) & 511;
2112
2072
  return !!(4 & Number.parseInt(st.toString(8)[0], 10));
2113
2073
  }
@@ -2121,8 +2081,7 @@ var require_chokidar = __commonJS({
2121
2081
  */
2122
2082
  _remove(directory, item, isDirectory) {
2123
2083
  let path = sysPath.join(directory, item), fullPath = sysPath.resolve(path);
2124
- if (isDirectory = isDirectory ?? (this._watched.has(path) || this._watched.has(fullPath)), !this._throttle("remove", path, 100))
2125
- return;
2084
+ if (isDirectory = isDirectory ?? (this._watched.has(path) || this._watched.has(fullPath)), !this._throttle("remove", path, 100)) return;
2126
2085
  !isDirectory && !this.options.useFsEvents && this._watched.size === 1 && this.add(directory, item, !0), this._getWatchedDir(path).getChildren().forEach((nested) => this._remove(path, nested));
2127
2086
  let parent = this._getWatchedDir(directory), wasTracked = parent.has(item);
2128
2087
  parent.remove(item), this._symlinkPaths.has(fullPath) && this._symlinkPaths.delete(fullPath);
@@ -2156,14 +2115,12 @@ var require_chokidar = __commonJS({
2156
2115
  * @param {Function} closer
2157
2116
  */
2158
2117
  _addPathCloser(path, closer) {
2159
- if (!closer)
2160
- return;
2118
+ if (!closer) return;
2161
2119
  let list = this._closers.get(path);
2162
2120
  list || (list = [], this._closers.set(path, list)), list.push(closer);
2163
2121
  }
2164
2122
  _readdirp(root, opts) {
2165
- if (this.closed)
2166
- return;
2123
+ if (this.closed) return;
2167
2124
  let options = { type: EV_ALL, alwaysStat: !0, lstat: !0, ...opts }, stream = readdirp(root, options);
2168
2125
  return this._streams.add(stream), stream.once(STR_CLOSE, () => {
2169
2126
  stream = void 0;
@@ -2191,4 +2148,4 @@ fill-range/index.js:
2191
2148
  * Licensed under the MIT License.
2192
2149
  *)
2193
2150
  */
2194
- //# sourceMappingURL=chokidar-OESTCX4H.js.map
2151
+ //# sourceMappingURL=chokidar-5LLC6S6D.js.map
@@ -3,7 +3,7 @@ import {
3
3
  __require,
4
4
  __toESM,
5
5
  init_cjs_shims
6
- } from "./chunk-POZ5MGPT.js";
6
+ } from "./chunk-PKR7KJ6P.js";
7
7
 
8
8
  // ../../node_modules/.pnpm/web-streams-polyfill@3.3.3/node_modules/web-streams-polyfill/dist/ponyfill.es2018.js
9
9
  var require_ponyfill_es2018 = __commonJS({
@@ -830,8 +830,7 @@ var require_ponyfill_es2018 = __commonJS({
830
830
  let transferredView = new Uint8Array(transferredBuffer, byteOffset, byteLength);
831
831
  ReadableStreamFulfillReadRequest(stream, transferredView, !1);
832
832
  }
833
- else
834
- ReadableStreamHasBYOBReader(stream) ? (ReadableByteStreamControllerEnqueueChunkToQueue(controller, transferredBuffer, byteOffset, byteLength), ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller)) : ReadableByteStreamControllerEnqueueChunkToQueue(controller, transferredBuffer, byteOffset, byteLength);
833
+ else ReadableStreamHasBYOBReader(stream) ? (ReadableByteStreamControllerEnqueueChunkToQueue(controller, transferredBuffer, byteOffset, byteLength), ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller)) : ReadableByteStreamControllerEnqueueChunkToQueue(controller, transferredBuffer, byteOffset, byteLength);
835
834
  ReadableByteStreamControllerCallPullIfNeeded(controller);
836
835
  }
837
836
  function ReadableByteStreamControllerError(controller, e2) {
@@ -2899,8 +2898,7 @@ var { toStringTag: t, iterator: i, hasInstance: h } = Symbol, r = Math.random, m
2899
2898
  var FormData = class {
2900
2899
  #d = [];
2901
2900
  constructor(...a) {
2902
- if (a.length)
2903
- throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.");
2901
+ if (a.length) throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.");
2904
2902
  }
2905
2903
  get [t]() {
2906
2904
  return "FormData";
@@ -2919,9 +2917,7 @@ var FormData = class {
2919
2917
  }
2920
2918
  get(a) {
2921
2919
  x("get", arguments, 1), a += "";
2922
- for (var b = this.#d, l = b.length, c = 0; c < l; c++)
2923
- if (b[c][0] === a)
2924
- return b[c][1];
2920
+ for (var b = this.#d, l = b.length, c = 0; c < l; c++) if (b[c][0] === a) return b[c][1];
2925
2921
  return null;
2926
2922
  }
2927
2923
  getAll(a, b) {
@@ -2932,8 +2928,7 @@ var FormData = class {
2932
2928
  }
2933
2929
  forEach(a, b) {
2934
2930
  x("forEach", arguments, 1);
2935
- for (var [c, d] of this)
2936
- a.call(b, d, c, this);
2931
+ for (var [c, d] of this) a.call(b, d, c, this);
2937
2932
  }
2938
2933
  set(...a) {
2939
2934
  x("set", arguments, 2);
@@ -2946,12 +2941,10 @@ var FormData = class {
2946
2941
  yield* this.#d;
2947
2942
  }
2948
2943
  *keys() {
2949
- for (var [a] of this)
2950
- yield a;
2944
+ for (var [a] of this) yield a;
2951
2945
  }
2952
2946
  *values() {
2953
- for (var [, a] of this)
2954
- yield a;
2947
+ for (var [, a] of this) yield a;
2955
2948
  }
2956
2949
  };
2957
2950
  function formDataToBlob(F, B = fetch_blob_default) {
@@ -2973,37 +2966,6 @@ init_cjs_shims();
2973
2966
  import { statSync, createReadStream, promises as fs } from "node:fs";
2974
2967
  var import_node_domexception = __toESM(require_node_domexception(), 1);
2975
2968
  var { stat } = fs;
2976
- var BlobDataItem = class _BlobDataItem {
2977
- #path;
2978
- #start;
2979
- constructor(options) {
2980
- this.#path = options.path, this.#start = options.start, this.size = options.size, this.lastModified = options.lastModified;
2981
- }
2982
- /**
2983
- * Slicing arguments is first validated and formatted
2984
- * to not be out of range by Blob.prototype.slice
2985
- */
2986
- slice(start, end) {
2987
- return new _BlobDataItem({
2988
- path: this.#path,
2989
- lastModified: this.lastModified,
2990
- size: end - start,
2991
- start: this.#start + start
2992
- });
2993
- }
2994
- async *stream() {
2995
- let { mtimeMs } = await stat(this.#path);
2996
- if (mtimeMs > this.lastModified)
2997
- throw new import_node_domexception.default("The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.", "NotReadableError");
2998
- yield* createReadStream(this.#path, {
2999
- start: this.#start,
3000
- end: this.#start + this.size - 1
3001
- });
3002
- }
3003
- get [Symbol.toStringTag]() {
3004
- return "Blob";
3005
- }
3006
- };
3007
2969
 
3008
2970
  export {
3009
2971
  fetch_blob_default,
@@ -3031,4 +2993,4 @@ fetch-blob/index.js:
3031
2993
  formdata-polyfill/esm.min.js:
3032
2994
  (*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
3033
2995
  */
3034
- //# sourceMappingURL=chunk-VSLR7ET4.js.map
2996
+ //# sourceMappingURL=chunk-25IMI7TH.js.map