@shopify/cli 3.83.1 → 3.83.2

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 (137) hide show
  1. package/dist/assets/hydrogen/starter/.cursor/rules/hydrogen-react-router.mdc +52 -0
  2. package/dist/assets/hydrogen/starter/CHANGELOG.md +35 -0
  3. package/dist/assets/hydrogen/starter/app/components/AddToCartButton.tsx +1 -1
  4. package/dist/assets/hydrogen/starter/app/components/CartLineItem.tsx +1 -1
  5. package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +1 -1
  6. package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +1 -1
  7. package/dist/assets/hydrogen/starter/app/components/Footer.tsx +1 -1
  8. package/dist/assets/hydrogen/starter/app/components/Header.tsx +1 -1
  9. package/dist/assets/hydrogen/starter/app/components/PageLayout.tsx +1 -1
  10. package/dist/assets/hydrogen/starter/app/components/ProductForm.tsx +1 -1
  11. package/dist/assets/hydrogen/starter/app/components/ProductItem.tsx +1 -1
  12. package/dist/assets/hydrogen/starter/app/components/SearchForm.tsx +1 -1
  13. package/dist/assets/hydrogen/starter/app/components/SearchFormPredictive.tsx +1 -6
  14. package/dist/assets/hydrogen/starter/app/components/SearchResults.tsx +1 -1
  15. package/dist/assets/hydrogen/starter/app/components/SearchResultsPredictive.tsx +1 -1
  16. package/dist/assets/hydrogen/starter/app/entry.client.tsx +2 -2
  17. package/dist/assets/hydrogen/starter/app/entry.server.tsx +9 -4
  18. package/dist/assets/hydrogen/starter/app/lib/variants.ts +1 -1
  19. package/dist/assets/hydrogen/starter/app/root.tsx +1 -1
  20. package/dist/assets/hydrogen/starter/app/routes/_index.tsx +1 -1
  21. package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +1 -1
  22. package/dist/assets/hydrogen/starter/app/routes/account.orders.$id.tsx +4 -4
  23. package/dist/assets/hydrogen/starter/app/routes/account.orders._index.tsx +1 -1
  24. package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +1 -7
  25. package/dist/assets/hydrogen/starter/app/routes/account.tsx +1 -1
  26. package/dist/assets/hydrogen/starter/app/routes/api.$version.[graphql.json].tsx +14 -0
  27. package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +1 -1
  28. package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +1 -1
  29. package/dist/assets/hydrogen/starter/app/routes/blogs._index.tsx +1 -1
  30. package/dist/assets/hydrogen/starter/app/routes/cart.tsx +7 -2
  31. package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +1 -1
  32. package/dist/assets/hydrogen/starter/app/routes/collections._index.tsx +1 -1
  33. package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +2 -2
  34. package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +1 -1
  35. package/dist/assets/hydrogen/starter/app/routes/policies.$handle.tsx +1 -1
  36. package/dist/assets/hydrogen/starter/app/routes/policies._index.tsx +1 -1
  37. package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +1 -1
  38. package/dist/assets/hydrogen/starter/app/routes/search.tsx +1 -1
  39. package/dist/assets/hydrogen/starter/app/routes.ts +2 -2
  40. package/dist/assets/hydrogen/starter/env.d.ts +12 -2
  41. package/dist/assets/hydrogen/starter/eslint.config.js +2 -0
  42. package/dist/assets/hydrogen/starter/package.json +11 -12
  43. package/dist/assets/hydrogen/starter/react-router.config.ts +7 -0
  44. package/dist/assets/hydrogen/starter/server.ts +2 -5
  45. package/dist/assets/hydrogen/starter/tsconfig.json +18 -6
  46. package/dist/assets/hydrogen/starter/vite.config.ts +3 -24
  47. package/dist/assets/hydrogen/tailwind/package.json +4 -1
  48. package/dist/assets/hydrogen/virtual-routes/components/RequestDetails.jsx +1 -1
  49. package/dist/assets/hydrogen/virtual-routes/layout.jsx +1 -7
  50. package/dist/assets/hydrogen/virtual-routes/routes/index.jsx +1 -1
  51. package/dist/assets/hydrogen/virtual-routes/routes/subrequest-profiler.jsx +1 -1
  52. package/dist/assets/hydrogen/virtual-routes/virtual-root-with-layout.jsx +1 -1
  53. package/dist/assets/hydrogen/virtual-routes/virtual-root.jsx +1 -1
  54. package/dist/assets/hydrogen/vite/vite.config.js +1 -1
  55. package/dist/{chunk-XOIMWH77.js → chunk-3P2MV54Z.js} +2 -2
  56. package/dist/{chunk-DVGCJLCA.js → chunk-3TBLURBG.js} +6 -6
  57. package/dist/{chunk-SJYNVNUB.js → chunk-3ZHC3Q7V.js} +2 -2
  58. package/dist/{chunk-7KLV4YSY.js → chunk-4ALAOHE7.js} +2 -2
  59. package/dist/{chunk-KPFBSWRK.js → chunk-4NC2NVYY.js} +3 -3
  60. package/dist/{chunk-QNMWKLS4.js → chunk-5YPOHZXF.js} +3 -3
  61. package/dist/{chunk-ARXCCKJT.js → chunk-AGY4NR7U.js} +8 -8
  62. package/dist/{chunk-JEW6HZHJ.js → chunk-BELVFLJN.js} +3 -3
  63. package/dist/{chunk-UZIJLLPI.js → chunk-BRKBA6ON.js} +3 -3
  64. package/dist/{chunk-4BPSIIGV.js → chunk-CK7Y3RFI.js} +3 -3
  65. package/dist/{chunk-A6DFWCO7.js → chunk-CPTZ34K2.js} +4 -4
  66. package/dist/{chunk-Y2JP6WFP.js → chunk-EG6MBBEN.js} +2 -2
  67. package/dist/{chunk-TB443RFG.js → chunk-FRQN52H3.js} +5 -5
  68. package/dist/{chunk-ZQMRVJXG.js → chunk-HU2Q5MFA.js} +3 -3
  69. package/dist/{chunk-KSLA767C.js → chunk-IZFYF7OE.js} +2 -2
  70. package/dist/{chunk-5QFLNCVR.js → chunk-JLITATNF.js} +6 -6
  71. package/dist/{chunk-BZFP2O66.js → chunk-KDFL67TE.js} +4 -4
  72. package/dist/{chunk-7EV36FNO.js → chunk-M3TVLW4G.js} +307 -475
  73. package/dist/{chunk-FNYLJESL.js → chunk-NHZFKFIN.js} +4 -4
  74. package/dist/{chunk-XI6AXLZO.js → chunk-ORFUSS73.js} +4 -4
  75. package/dist/{chunk-K5GF4S7D.js → chunk-P464L3K6.js} +2 -2
  76. package/dist/{chunk-5BJYF6FG.js → chunk-PCHFJ5CE.js} +3 -3
  77. package/dist/{chunk-RDAZS4FZ.js → chunk-Q3BLA5JC.js} +7 -7
  78. package/dist/{chunk-DFABOPSU.js → chunk-Q76H7OUL.js} +4 -4
  79. package/dist/{chunk-TLYRIQK7.js → chunk-QJQK26XP.js} +6 -6
  80. package/dist/{chunk-DDU22ZPL.js → chunk-RAC2243I.js} +3 -3
  81. package/dist/{chunk-NJN55E4K.js → chunk-RFX7HBFN.js} +4 -4
  82. package/dist/{chunk-PPDGMVCL.js → chunk-RHR64CQH.js} +4 -4
  83. package/dist/{chunk-XVZQHSFP.js → chunk-U6MH2KVY.js} +5 -5
  84. package/dist/{chunk-ASWHWSRF.js → chunk-UFC6XUMW.js} +2 -2
  85. package/dist/{chunk-BZBO3V3A.js → chunk-UIFPKYNE.js} +3 -3
  86. package/dist/{chunk-2ZA3MHM5.js → chunk-V6ZYMBVB.js} +3 -3
  87. package/dist/{chunk-FEMALH67.js → chunk-YF7CDH6L.js} +4 -4
  88. package/dist/{chunk-SUA462JY.js → chunk-YKYM3NLB.js} +5 -5
  89. package/dist/{chunk-57SXE5DE.js → chunk-Z2AIGIVT.js} +2 -2
  90. package/dist/cli/commands/auth/logout.js +12 -12
  91. package/dist/cli/commands/auth/logout.test.js +13 -13
  92. package/dist/cli/commands/cache/clear.js +11 -11
  93. package/dist/cli/commands/debug/command-flags.js +11 -11
  94. package/dist/cli/commands/docs/generate.js +11 -11
  95. package/dist/cli/commands/docs/generate.test.js +11 -11
  96. package/dist/cli/commands/help.js +11 -11
  97. package/dist/cli/commands/kitchen-sink/async.js +12 -12
  98. package/dist/cli/commands/kitchen-sink/async.test.js +12 -12
  99. package/dist/cli/commands/kitchen-sink/index.js +14 -14
  100. package/dist/cli/commands/kitchen-sink/index.test.js +14 -14
  101. package/dist/cli/commands/kitchen-sink/prompts.js +12 -12
  102. package/dist/cli/commands/kitchen-sink/prompts.test.js +12 -12
  103. package/dist/cli/commands/kitchen-sink/static.js +12 -12
  104. package/dist/cli/commands/kitchen-sink/static.test.js +12 -12
  105. package/dist/cli/commands/notifications/generate.js +12 -12
  106. package/dist/cli/commands/notifications/list.js +12 -12
  107. package/dist/cli/commands/search.js +12 -12
  108. package/dist/cli/commands/upgrade.js +12 -12
  109. package/dist/cli/commands/version.js +12 -12
  110. package/dist/cli/commands/version.test.js +12 -12
  111. package/dist/cli/services/commands/notifications.js +7 -7
  112. package/dist/cli/services/commands/search.js +3 -3
  113. package/dist/cli/services/commands/search.test.js +3 -3
  114. package/dist/cli/services/commands/version.js +4 -4
  115. package/dist/cli/services/commands/version.test.js +5 -5
  116. package/dist/cli/services/kitchen-sink/async.js +3 -3
  117. package/dist/cli/services/kitchen-sink/prompts.js +3 -3
  118. package/dist/cli/services/kitchen-sink/static.js +3 -3
  119. package/dist/cli/services/upgrade.js +4 -4
  120. package/dist/cli/services/upgrade.test.js +5 -5
  121. package/dist/{custom-oclif-loader-XASCYJ7O.js → custom-oclif-loader-QWOQ6IU2.js} +3 -3
  122. package/dist/{error-handler-HQBVO3GI.js → error-handler-WBLMZ6OH.js} +9 -9
  123. package/dist/hooks/postrun.js +7 -7
  124. package/dist/hooks/prerun.js +8 -8
  125. package/dist/index.js +817 -1144
  126. package/dist/{local-PI2REOYY.js → local-EXWDAQEX.js} +3 -3
  127. package/dist/{morph-5LWJDWYB.js → morph-R37HEQ7R.js} +9 -9
  128. package/dist/{node-package-manager-RVDETLBX.js → node-package-manager-FY6IDVTF.js} +4 -4
  129. package/dist/{path-COZT77T2.js → path-GB4VIEM6.js} +2 -2
  130. package/dist/tsconfig.tsbuildinfo +1 -1
  131. package/dist/{ui-RDFVKEJS.js → ui-GHYCWXGS.js} +3 -3
  132. package/dist/{workerd-XLT4ZWI5.js → workerd-GLBI5GFX.js} +14 -14
  133. package/oclif.manifest.json +3 -23
  134. package/package.json +8 -8
  135. package/dist/assets/hydrogen/starter/.cursor/rules/cookbook-recipe-subscriptions.mdc +0 -921
  136. package/dist/chunk-V67D4V7T.js +0 -107
  137. package/dist/node-NAYZANSZ.js +0 -162
package/dist/index.js CHANGED
@@ -4,9 +4,6 @@ import {
4
4
  import {
5
5
  require_normalize_path
6
6
  } from "./chunk-X7YTIMNN.js";
7
- import {
8
- findPort
9
- } from "./chunk-V67D4V7T.js";
10
7
  import {
11
8
  ALIAS_NAME,
12
9
  ALL_ROUTE_CHOICES,
@@ -20,18 +17,17 @@ import {
20
17
  I18N_STRATEGY_NAME_MAP,
21
18
  LANGUAGES,
22
19
  Link as Link2,
20
+ REMIX_COMPILER_ERROR_MESSAGE,
23
21
  SETUP_CSS_STRATEGIES,
24
22
  SETUP_I18N_STRATEGIES,
25
23
  STYLING_CHOICES,
26
24
  TUNNEL_DOMAIN,
27
25
  addCursorAndFiltersToAppLogsUrl,
28
26
  adminRequest,
29
- assertOxygenChecks,
30
27
  businessPlatformOrganizationsRequest,
31
28
  businessPlatformOrganizationsRequestDoc,
32
29
  businessPlatformRequestDoc,
33
30
  checkIfIgnoredInGitRepository,
34
- checkRemixVersions,
35
31
  commitAll,
36
32
  commonFlags,
37
33
  createAbortHandler,
@@ -39,7 +35,6 @@ import {
39
35
  createEnvironmentCliChoiceLabel,
40
36
  createInitialCommit,
41
37
  createPlatformShortcut,
42
- createRemixLogger,
43
38
  createStorefront,
44
39
  downloadGitRepository,
45
40
  enhanceAuthLogs,
@@ -85,7 +80,6 @@ import {
85
80
  handleLanguage,
86
81
  handleMiniOxygenImportFail,
87
82
  handleProjectLocation,
88
- handleRemixImportFail,
89
83
  handleRouteGeneration,
90
84
  handleStorefrontLink,
91
85
  hasViteConfig,
@@ -109,7 +103,6 @@ import {
109
103
  mergePackageJson,
110
104
  mergeTsConfig,
111
105
  muteDevLogs,
112
- muteRemixLogs,
113
106
  notifyIssueWithTunnelAndMockShop,
114
107
  orderEnvironmentsBySafety,
115
108
  overrideFlag,
@@ -136,7 +129,7 @@ import {
136
129
  supressNodeExperimentalWarnings,
137
130
  unsetStorefront,
138
131
  waitForJob
139
- } from "./chunk-7EV36FNO.js";
132
+ } from "./chunk-M3TVLW4G.js";
140
133
  import {
141
134
  require_fs,
142
135
  require_glob,
@@ -151,37 +144,37 @@ import {
151
144
  } from "./chunk-3GXB4ZRP.js";
152
145
  import {
153
146
  List
154
- } from "./chunk-PPDGMVCL.js";
147
+ } from "./chunk-RHR64CQH.js";
155
148
  import {
156
149
  Search
157
- } from "./chunk-BZBO3V3A.js";
150
+ } from "./chunk-UIFPKYNE.js";
158
151
  import {
159
152
  Upgrade
160
- } from "./chunk-XI6AXLZO.js";
161
- import "./chunk-JEW6HZHJ.js";
153
+ } from "./chunk-ORFUSS73.js";
154
+ import "./chunk-BELVFLJN.js";
162
155
  import {
163
156
  Version
164
- } from "./chunk-4BPSIIGV.js";
165
- import "./chunk-ZQMRVJXG.js";
166
- import "./chunk-KSLA767C.js";
157
+ } from "./chunk-CK7Y3RFI.js";
158
+ import "./chunk-HU2Q5MFA.js";
159
+ import "./chunk-IZFYF7OE.js";
167
160
  import {
168
161
  KitchenSinkAll
169
- } from "./chunk-XVZQHSFP.js";
162
+ } from "./chunk-U6MH2KVY.js";
170
163
  import {
171
164
  KitchenSinkPrompts
172
- } from "./chunk-UZIJLLPI.js";
173
- import "./chunk-XOIMWH77.js";
165
+ } from "./chunk-BRKBA6ON.js";
166
+ import "./chunk-3P2MV54Z.js";
174
167
  import {
175
168
  KitchenSinkStatic
176
- } from "./chunk-QNMWKLS4.js";
177
- import "./chunk-7KLV4YSY.js";
169
+ } from "./chunk-5YPOHZXF.js";
170
+ import "./chunk-4ALAOHE7.js";
178
171
  import {
179
172
  Generate
180
- } from "./chunk-2ZA3MHM5.js";
181
- import "./chunk-SUA462JY.js";
173
+ } from "./chunk-V6ZYMBVB.js";
174
+ import "./chunk-YKYM3NLB.js";
182
175
  import {
183
176
  Logout
184
- } from "./chunk-FNYLJESL.js";
177
+ } from "./chunk-NHZFKFIN.js";
185
178
  import {
186
179
  ensureAuthenticatedAdmin,
187
180
  ensureAuthenticatedAppManagementAndBusinessPlatform,
@@ -189,32 +182,32 @@ import {
189
182
  ensureAuthenticatedPartners,
190
183
  ensureAuthenticatedStorefront,
191
184
  ensureAuthenticatedThemes
192
- } from "./chunk-FEMALH67.js";
185
+ } from "./chunk-YF7CDH6L.js";
193
186
  import {
194
187
  ClearCache,
195
188
  globalFlags,
196
189
  jsonFlag,
197
190
  runCLI
198
- } from "./chunk-RDAZS4FZ.js";
191
+ } from "./chunk-Q3BLA5JC.js";
199
192
  import {
200
193
  CommandFlags
201
- } from "./chunk-5BJYF6FG.js";
194
+ } from "./chunk-PCHFJ5CE.js";
202
195
  import {
203
196
  DocsGenerate
204
- } from "./chunk-A6DFWCO7.js";
197
+ } from "./chunk-CPTZ34K2.js";
205
198
  import {
206
199
  HelpCommand
207
- } from "./chunk-SJYNVNUB.js";
200
+ } from "./chunk-3ZHC3Q7V.js";
208
201
  import {
209
202
  KitchenSinkAsync
210
- } from "./chunk-DDU22ZPL.js";
211
- import "./chunk-ASWHWSRF.js";
203
+ } from "./chunk-RAC2243I.js";
204
+ import "./chunk-UFC6XUMW.js";
212
205
  import {
213
206
  base_command_default,
214
207
  decodeToml,
215
208
  encodeToml,
216
209
  loadEnvironment
217
- } from "./chunk-DVGCJLCA.js";
210
+ } from "./chunk-3TBLURBG.js";
218
211
  import {
219
212
  require_byline,
220
213
  require_end_of_stream,
@@ -222,7 +215,7 @@ import {
222
215
  require_iserror,
223
216
  require_pump,
224
217
  require_stack_generator
225
- } from "./chunk-ARXCCKJT.js";
218
+ } from "./chunk-AGY4NR7U.js";
226
219
  import {
227
220
  require_once
228
221
  } from "./chunk-SHWOPMLQ.js";
@@ -230,7 +223,7 @@ import {
230
223
  fanoutHooks,
231
224
  getListOfTunnelPlugins,
232
225
  reportAnalyticsEvent
233
- } from "./chunk-TLYRIQK7.js";
226
+ } from "./chunk-QJQK26XP.js";
234
227
  import {
235
228
  DevServerCore,
236
229
  adminFqdn,
@@ -243,10 +236,10 @@ import {
243
236
  normalizeStoreFqdn,
244
237
  ok,
245
238
  partnersFqdn
246
- } from "./chunk-TB443RFG.js";
239
+ } from "./chunk-FRQN52H3.js";
247
240
  import {
248
241
  showNotificationsIfNeeded
249
- } from "./chunk-5QFLNCVR.js";
242
+ } from "./chunk-JLITATNF.js";
250
243
  import {
251
244
  ClientError,
252
245
  FetchError,
@@ -268,11 +261,11 @@ import {
268
261
  require_mime_types,
269
262
  shopifyFetch,
270
263
  z
271
- } from "./chunk-DFABOPSU.js";
264
+ } from "./chunk-Q76H7OUL.js";
272
265
  import "./chunk-25IMI7TH.js";
273
266
  import {
274
267
  CLI_KIT_VERSION
275
- } from "./chunk-57SXE5DE.js";
268
+ } from "./chunk-Z2AIGIVT.js";
276
269
  import {
277
270
  LocalStorage,
278
271
  UnknownPackageManagerError,
@@ -296,7 +289,7 @@ import {
296
289
  usesWorkspaces,
297
290
  versionSatisfies,
298
291
  writePackageJSON
299
- } from "./chunk-BZFP2O66.js";
292
+ } from "./chunk-KDFL67TE.js";
300
293
  import {
301
294
  AbortController as AbortController2,
302
295
  AbortError,
@@ -511,7 +504,7 @@ import {
511
504
  username,
512
505
  writeFile,
513
506
  writeFileSync
514
- } from "./chunk-KPFBSWRK.js";
507
+ } from "./chunk-4NC2NVYY.js";
515
508
  import {
516
509
  require_graceful_fs
517
510
  } from "./chunk-75LV6AQS.js";
@@ -528,7 +521,7 @@ import {
528
521
  relativizePath,
529
522
  resolvePath,
530
523
  sniffForJson
531
- } from "./chunk-Y2JP6WFP.js";
524
+ } from "./chunk-EG6MBBEN.js";
532
525
  import {
533
526
  require_ansis,
534
527
  require_commonjs,
@@ -5118,10 +5111,10 @@ var require_main = __commonJS({
5118
5111
  t: () => t18
5119
5112
  });
5120
5113
  module.exports = __toCommonJS2(main_exports4);
5121
- var import_fs106 = __require("fs"), import_promises15 = __require("fs/promises");
5114
+ var import_fs103 = __require("fs"), import_promises14 = __require("fs/promises");
5122
5115
  async function readFileFromUri(uri) {
5123
5116
  if (uri.protocol === "file:")
5124
- return await (0, import_promises15.readFile)(uri, "utf8");
5117
+ return await (0, import_promises14.readFile)(uri, "utf8");
5125
5118
  if (uri.protocol === "http:" || uri.protocol === "https:") {
5126
5119
  let res = await fetch(uri.toString(), {
5127
5120
  headers: {
@@ -5143,7 +5136,7 @@ var require_main = __commonJS({
5143
5136
  throw new Error("Unsupported protocol");
5144
5137
  }
5145
5138
  function readFileFromFsPath(fsPath) {
5146
- return (0, import_fs106.readFileSync)(fsPath, "utf8");
5139
+ return (0, import_fs103.readFileSync)(fsPath, "utf8");
5147
5140
  }
5148
5141
  var bundle;
5149
5142
  function config2(config22) {
@@ -12709,8 +12702,8 @@ var require_semanticsDeferredInit = __commonJS({
12709
12702
  formals: optFormals.children.map((c) => c.parse())[0] || []
12710
12703
  };
12711
12704
  },
12712
- Formals(oparen, fs9, cparen) {
12713
- return fs9.asIteration().children.map((c) => c.parse());
12705
+ Formals(oparen, fs8, cparen) {
12706
+ return fs8.asIteration().children.map((c) => c.parse());
12714
12707
  },
12715
12708
  name(first, rest) {
12716
12709
  return this.sourceString;
@@ -12898,20 +12891,20 @@ var require_main2 = __commonJS({
12898
12891
  decl.withSuperGrammar(namespace[superGrammarName]);
12899
12892
  }
12900
12893
  },
12901
- Rule_define(n, fs9, d, _3, b) {
12902
- currentRuleName = n.visit(), currentRuleFormals = fs9.children.map((c) => c.visit())[0] || [], !decl.defaultStartRule && decl.ensureSuperGrammar() !== Grammar.ProtoBuiltInRules && decl.withDefaultStartRule(currentRuleName);
12894
+ Rule_define(n, fs8, d, _3, b) {
12895
+ currentRuleName = n.visit(), currentRuleFormals = fs8.children.map((c) => c.visit())[0] || [], !decl.defaultStartRule && decl.ensureSuperGrammar() !== Grammar.ProtoBuiltInRules && decl.withDefaultStartRule(currentRuleName);
12903
12896
  let body = b.visit(), description = d.children.map((c) => c.visit())[0], source = this.source.trimmed();
12904
12897
  return decl.define(currentRuleName, currentRuleFormals, body, description, source);
12905
12898
  },
12906
- Rule_override(n, fs9, _3, b) {
12907
- currentRuleName = n.visit(), currentRuleFormals = fs9.children.map((c) => c.visit())[0] || [];
12899
+ Rule_override(n, fs8, _3, b) {
12900
+ currentRuleName = n.visit(), currentRuleFormals = fs8.children.map((c) => c.visit())[0] || [];
12908
12901
  let source = this.source.trimmed();
12909
12902
  decl.ensureSuperGrammarRuleForOverriding(currentRuleName, source), overriding = !0;
12910
12903
  let body = b.visit();
12911
12904
  return overriding = !1, decl.override(currentRuleName, currentRuleFormals, body, null, source);
12912
12905
  },
12913
- Rule_extend(n, fs9, _3, b) {
12914
- currentRuleName = n.visit(), currentRuleFormals = fs9.children.map((c) => c.visit())[0] || [];
12906
+ Rule_extend(n, fs8, _3, b) {
12907
+ currentRuleName = n.visit(), currentRuleFormals = fs8.children.map((c) => c.visit())[0] || [];
12915
12908
  let body = b.visit(), source = this.source.trimmed();
12916
12909
  return decl.extend(currentRuleName, currentRuleFormals, body, null, source);
12917
12910
  },
@@ -12933,8 +12926,8 @@ var require_main2 = __commonJS({
12933
12926
  } else
12934
12927
  return builder.alt(...args).withSource(this.source);
12935
12928
  },
12936
- Formals(opointy, fs9, cpointy) {
12937
- return fs9.visit();
12929
+ Formals(opointy, fs8, cpointy) {
12930
+ return fs8.visit();
12938
12931
  },
12939
12932
  Params(opointy, ps, cpointy) {
12940
12933
  return ps.visit();
@@ -15845,17 +15838,17 @@ var require_context_utils = __commonJS({
15845
15838
  init_cjs_shims();
15846
15839
  Object.defineProperty(exports, "__esModule", { value: !0 });
15847
15840
  exports.makeGetMetafieldDefinitions = exports.FETCHED_METAFIELD_CATEGORIES = exports.isDirectory = exports.recursiveReadDirectory = exports.makeGetDefaultSchemaTranslations = exports.makeGetDefaultTranslations = exports.makeGetDefaultSchemaLocale = exports.makeGetDefaultLocale = exports.makeFileSize = exports.makeFileExists = void 0;
15848
- var vscode_uri_1 = require_umd(), AbstractFileSystem_1 = require_AbstractFileSystem(), json_1 = require_json(), path_1 = require_path(), types_1 = require_types4(), utils_1 = require_utils(), makeFileExists = (fs9) => async function(uri) {
15841
+ var vscode_uri_1 = require_umd(), AbstractFileSystem_1 = require_AbstractFileSystem(), json_1 = require_json(), path_1 = require_path(), types_1 = require_types4(), utils_1 = require_utils(), makeFileExists = (fs8) => async function(uri) {
15849
15842
  try {
15850
- return await fs9.stat(uri), !0;
15843
+ return await fs8.stat(uri), !0;
15851
15844
  } catch {
15852
15845
  return !1;
15853
15846
  }
15854
15847
  };
15855
15848
  exports.makeFileExists = makeFileExists;
15856
- var makeFileSize = (fs9) => async function(uri) {
15849
+ var makeFileSize = (fs8) => async function(uri) {
15857
15850
  try {
15858
- return (await fs9.stat(uri)).size;
15851
+ return (await fs8.stat(uri)).size;
15859
15852
  } catch {
15860
15853
  return 0;
15861
15854
  }
@@ -15864,38 +15857,38 @@ var require_context_utils = __commonJS({
15864
15857
  exports.makeGetDefaultLocale = getDefaultLocaleFactoryFactory(".default.json");
15865
15858
  exports.makeGetDefaultSchemaLocale = getDefaultLocaleFactoryFactory(".default.schema.json");
15866
15859
  function getDefaultLocaleFactoryFactory(postfix = ".default.json") {
15867
- return function(fs9, rootUri) {
15868
- return cached(() => getDefaultLocale(fs9, rootUri, postfix));
15860
+ return function(fs8, rootUri) {
15861
+ return cached(() => getDefaultLocale(fs8, rootUri, postfix));
15869
15862
  };
15870
15863
  }
15871
15864
  exports.makeGetDefaultTranslations = getDefaultTranslationsFactoryFactory(".default.json");
15872
15865
  exports.makeGetDefaultSchemaTranslations = getDefaultTranslationsFactoryFactory(".default.schema.json");
15873
15866
  function getDefaultTranslationsFactoryFactory(postfix = ".default.json") {
15874
- return function(fs9, theme, rootUri) {
15875
- return cached(() => getDefaultTranslations(fs9, theme, rootUri, postfix));
15867
+ return function(fs8, theme, rootUri) {
15868
+ return cached(() => getDefaultTranslations(fs8, theme, rootUri, postfix));
15876
15869
  };
15877
15870
  }
15878
- async function getDefaultLocaleFile(fs9, rootUri, postfix = ".default.json") {
15871
+ async function getDefaultLocaleFile(fs8, rootUri, postfix = ".default.json") {
15879
15872
  var _a43;
15880
- return (_a43 = (await fs9.readDirectory((0, path_1.join)(rootUri, "locales"))).find(([uri]) => uri.endsWith(postfix))) === null || _a43 === void 0 ? void 0 : _a43[0];
15873
+ return (_a43 = (await fs8.readDirectory((0, path_1.join)(rootUri, "locales"))).find(([uri]) => uri.endsWith(postfix))) === null || _a43 === void 0 ? void 0 : _a43[0];
15881
15874
  }
15882
- async function getDefaultLocale(fs9, rootUri, postfix) {
15875
+ async function getDefaultLocale(fs8, rootUri, postfix) {
15883
15876
  try {
15884
- let defaultLocaleFile = await getDefaultLocaleFile(fs9, rootUri, postfix);
15877
+ let defaultLocaleFile = await getDefaultLocaleFile(fs8, rootUri, postfix);
15885
15878
  return defaultLocaleFile ? vscode_uri_1.Utils.basename(vscode_uri_1.URI.parse(defaultLocaleFile)).split(".")[0] : "en";
15886
15879
  } catch (error) {
15887
15880
  return console.error(error), "en";
15888
15881
  }
15889
15882
  }
15890
- async function getDefaultTranslations(fs9, theme, rootUri, postfix) {
15883
+ async function getDefaultTranslations(fs8, theme, rootUri, postfix) {
15891
15884
  try {
15892
15885
  let bufferTranslations = getDefaultTranslationsFromBuffer(theme, postfix);
15893
15886
  if (bufferTranslations)
15894
15887
  return bufferTranslations;
15895
- let defaultLocaleFile = await getDefaultLocaleFile(fs9, rootUri, postfix);
15888
+ let defaultLocaleFile = await getDefaultLocaleFile(fs8, rootUri, postfix);
15896
15889
  if (!defaultLocaleFile)
15897
15890
  return {};
15898
- let defaultTranslationsFile = await fs9.readFile(defaultLocaleFile);
15891
+ let defaultTranslationsFile = await fs8.readFile(defaultLocaleFile);
15899
15892
  return (0, json_1.parseJSON)(defaultTranslationsFile, {});
15900
15893
  } catch (error) {
15901
15894
  return console.error(error), {};
@@ -15913,9 +15906,9 @@ var require_context_utils = __commonJS({
15913
15906
  let cachedPromise;
15914
15907
  return async (...args) => (cachedPromise || (cachedPromise = fn(...args)), cachedPromise);
15915
15908
  }
15916
- async function recursiveReadDirectory(fs9, uri, filter) {
15917
- let files = (await fs9.readDirectory(uri)).filter((ft) => !isIgnored(ft) && (isDirectory2(ft) || filter(ft)));
15918
- return (await Promise.all(files.map((ft) => isDirectory2(ft) ? recursiveReadDirectory(fs9, ft[0], filter) : Promise.resolve([ft[0]])))).flat();
15909
+ async function recursiveReadDirectory(fs8, uri, filter) {
15910
+ let files = (await fs8.readDirectory(uri)).filter((ft) => !isIgnored(ft) && (isDirectory2(ft) || filter(ft)));
15911
+ return (await Promise.all(files.map((ft) => isDirectory2(ft) ? recursiveReadDirectory(fs8, ft[0], filter) : Promise.resolve([ft[0]])))).flat();
15919
15912
  }
15920
15913
  exports.recursiveReadDirectory = recursiveReadDirectory;
15921
15914
  function isDirectory2([_3, type]) {
@@ -15940,7 +15933,7 @@ var require_context_utils = __commonJS({
15940
15933
  "variant",
15941
15934
  "shop"
15942
15935
  ];
15943
- var makeGetMetafieldDefinitions = (fs9) => async function(rootUri) {
15936
+ var makeGetMetafieldDefinitions = (fs8) => async function(rootUri) {
15944
15937
  let definitions = {
15945
15938
  article: [],
15946
15939
  blog: [],
@@ -15956,7 +15949,7 @@ var require_context_utils = __commonJS({
15956
15949
  shop: []
15957
15950
  };
15958
15951
  try {
15959
- let content = await fs9.readFile((0, path_1.join)(rootUri, ".shopify", "metafields.json")), json = (0, json_1.parseJSON)(content);
15952
+ let content = await fs8.readFile((0, path_1.join)(rootUri, ".shopify", "metafields.json")), json = (0, json_1.parseJSON)(content);
15960
15953
  return (0, utils_1.isError)(json) ? definitions : exports.FETCHED_METAFIELD_CATEGORIES.reduce((definitions2, group) => {
15961
15954
  try {
15962
15955
  definitions2[group] = json[group].map((definition) => ({
@@ -23675,16 +23668,16 @@ var require_dist3 = __commonJS({
23675
23668
  };
23676
23669
  async function check2(theme, config2, injectedDependencies) {
23677
23670
  var _a43;
23678
- let pipelines = [], offenses = [], { fs: fs9 } = injectedDependencies, { rootUri } = config2, dependencies = {
23671
+ let pipelines = [], offenses = [], { fs: fs8 } = injectedDependencies, { rootUri } = config2, dependencies = {
23679
23672
  ...injectedDependencies,
23680
23673
  mode: config2.context,
23681
- fileExists: (0, context_utils_1.makeFileExists)(fs9),
23682
- fileSize: (0, context_utils_1.makeFileSize)(fs9),
23683
- getDefaultLocale: (0, context_utils_1.makeGetDefaultLocale)(fs9, rootUri),
23684
- getDefaultTranslations: (0, context_utils_1.makeGetDefaultTranslations)(fs9, theme, rootUri),
23685
- getDefaultSchemaLocale: (0, context_utils_1.makeGetDefaultSchemaLocale)(fs9, rootUri),
23686
- getDefaultSchemaTranslations: (0, context_utils_1.makeGetDefaultSchemaTranslations)(fs9, theme, rootUri),
23687
- getMetafieldDefinitions: (_a43 = injectedDependencies.getMetafieldDefinitions) !== null && _a43 !== void 0 ? _a43 : (0, context_utils_1.makeGetMetafieldDefinitions)(fs9)
23674
+ fileExists: (0, context_utils_1.makeFileExists)(fs8),
23675
+ fileSize: (0, context_utils_1.makeFileSize)(fs8),
23676
+ getDefaultLocale: (0, context_utils_1.makeGetDefaultLocale)(fs8, rootUri),
23677
+ getDefaultTranslations: (0, context_utils_1.makeGetDefaultTranslations)(fs8, theme, rootUri),
23678
+ getDefaultSchemaLocale: (0, context_utils_1.makeGetDefaultSchemaLocale)(fs8, rootUri),
23679
+ getDefaultSchemaTranslations: (0, context_utils_1.makeGetDefaultSchemaTranslations)(fs8, theme, rootUri),
23680
+ getMetafieldDefinitions: (_a43 = injectedDependencies.getMetafieldDefinitions) !== null && _a43 !== void 0 ? _a43 : (0, context_utils_1.makeGetMetafieldDefinitions)(fs8)
23688
23681
  }, { DisabledChecksVisitor, isDisabled } = (0, disabled_checks_1.createDisabledChecksModule)(), jsonValidator = await JSONValidator_1.JSONValidator.create(dependencies.jsonValidationSet, config2), validateJSON = jsonValidator?.validate;
23689
23682
  dependencies.themeDocset && !dependencies.themeDocset.isAugmented && (dependencies.themeDocset = new AugmentedThemeDocset_1.AugmentedThemeDocset(dependencies.themeDocset));
23690
23683
  for (let type of Object.values(types_1.SourceCodeType))
@@ -23772,7 +23765,7 @@ var require_env_paths = __commonJS({
23772
23765
  "../../node_modules/.pnpm/env-paths@2.2.1/node_modules/env-paths/index.js"(exports, module) {
23773
23766
  "use strict";
23774
23767
  init_cjs_shims();
23775
- var path4 = __require("path"), os = __require("os"), homedir = os.homedir(), tmpdir2 = os.tmpdir(), { env: env4 } = process, macos = (name) => {
23768
+ var path4 = __require("path"), os2 = __require("os"), homedir = os2.homedir(), tmpdir2 = os2.tmpdir(), { env: env4 } = process, macos = (name) => {
23776
23769
  let library = path4.join(homedir, "Library");
23777
23770
  return {
23778
23771
  data: path4.join(library, "Application Support", name),
@@ -24390,7 +24383,7 @@ var require_common2 = __commonJS({
24390
24383
  function ownProp(obj, field) {
24391
24384
  return Object.prototype.hasOwnProperty.call(obj, field);
24392
24385
  }
24393
- var fs9 = __require("fs"), path4 = __require("path"), minimatch = require_minimatch(), isAbsolute = __require("path").isAbsolute, Minimatch = minimatch.Minimatch;
24386
+ var fs8 = __require("fs"), path4 = __require("path"), minimatch = require_minimatch(), isAbsolute = __require("path").isAbsolute, Minimatch = minimatch.Minimatch;
24394
24387
  function alphasort(a3, b) {
24395
24388
  return a3.localeCompare(b, "en");
24396
24389
  }
@@ -24414,7 +24407,7 @@ var require_common2 = __commonJS({
24414
24407
  throw new Error("base matching requires globstar");
24415
24408
  pattern = "**/" + pattern;
24416
24409
  }
24417
- self2.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === !1, self2.windowsPathsNoEscape && (pattern = pattern.replace(/\\/g, "/")), self2.silent = !!options.silent, self2.pattern = pattern, self2.strict = options.strict !== !1, self2.realpath = !!options.realpath, self2.realpathCache = options.realpathCache || /* @__PURE__ */ Object.create(null), self2.follow = !!options.follow, self2.dot = !!options.dot, self2.mark = !!options.mark, self2.nodir = !!options.nodir, self2.nodir && (self2.mark = !0), self2.sync = !!options.sync, self2.nounique = !!options.nounique, self2.nonull = !!options.nonull, self2.nosort = !!options.nosort, self2.nocase = !!options.nocase, self2.stat = !!options.stat, self2.noprocess = !!options.noprocess, self2.absolute = !!options.absolute, self2.fs = options.fs || fs9, self2.maxLength = options.maxLength || 1 / 0, self2.cache = options.cache || /* @__PURE__ */ Object.create(null), self2.statCache = options.statCache || /* @__PURE__ */ Object.create(null), self2.symlinks = options.symlinks || /* @__PURE__ */ Object.create(null), setupIgnores(self2, options), self2.changedCwd = !1;
24410
+ self2.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === !1, self2.windowsPathsNoEscape && (pattern = pattern.replace(/\\/g, "/")), self2.silent = !!options.silent, self2.pattern = pattern, self2.strict = options.strict !== !1, self2.realpath = !!options.realpath, self2.realpathCache = options.realpathCache || /* @__PURE__ */ Object.create(null), self2.follow = !!options.follow, self2.dot = !!options.dot, self2.mark = !!options.mark, self2.nodir = !!options.nodir, self2.nodir && (self2.mark = !0), self2.sync = !!options.sync, self2.nounique = !!options.nounique, self2.nonull = !!options.nonull, self2.nosort = !!options.nosort, self2.nocase = !!options.nocase, self2.stat = !!options.stat, self2.noprocess = !!options.noprocess, self2.absolute = !!options.absolute, self2.fs = options.fs || fs8, self2.maxLength = options.maxLength || 1 / 0, self2.cache = options.cache || /* @__PURE__ */ Object.create(null), self2.statCache = options.statCache || /* @__PURE__ */ Object.create(null), self2.symlinks = options.symlinks || /* @__PURE__ */ Object.create(null), setupIgnores(self2, options), self2.changedCwd = !1;
24418
24411
  var cwd3 = process.cwd();
24419
24412
  ownProp(options, "cwd") ? (self2.cwd = path4.resolve(options.cwd), self2.changedCwd = self2.cwd !== cwd3) : self2.cwd = path4.resolve(cwd3), self2.root = options.root || path4.resolve(self2.cwd, "/"), self2.root = path4.resolve(self2.root), self2.cwdAbs = isAbsolute(self2.cwd) ? self2.cwd : makeAbs(self2, self2.cwd), self2.nomount = !!options.nomount, process.platform === "win32" && (self2.root = self2.root.replace(/\\/g, "/"), self2.cwd = self2.cwd.replace(/\\/g, "/"), self2.cwdAbs = self2.cwdAbs.replace(/\\/g, "/")), options.nonegate = !0, options.nocomment = !0, self2.minimatch = new Minimatch(pattern, options), self2.options = self2.minimatch.options;
24420
24413
  }
@@ -30424,8 +30417,8 @@ var require_parser = __commonJS({
30424
30417
  case "scalar":
30425
30418
  case "single-quoted-scalar":
30426
30419
  case "double-quoted-scalar": {
30427
- let fs9 = this.flowScalar(this.type);
30428
- atNextItem || it.value ? (map.items.push({ start, key: fs9, sep: [] }), this.onKeyLine = !0) : it.sep ? this.stack.push(fs9) : (Object.assign(it, { key: fs9, sep: [] }), this.onKeyLine = !0);
30420
+ let fs8 = this.flowScalar(this.type);
30421
+ atNextItem || it.value ? (map.items.push({ start, key: fs8, sep: [] }), this.onKeyLine = !0) : it.sep ? this.stack.push(fs8) : (Object.assign(it, { key: fs8, sep: [] }), this.onKeyLine = !0);
30429
30422
  return;
30430
30423
  }
30431
30424
  default: {
@@ -30512,8 +30505,8 @@ var require_parser = __commonJS({
30512
30505
  case "scalar":
30513
30506
  case "single-quoted-scalar":
30514
30507
  case "double-quoted-scalar": {
30515
- let fs9 = this.flowScalar(this.type);
30516
- !it || it.value ? fc.items.push({ start: [], key: fs9, sep: [] }) : it.sep ? this.stack.push(fs9) : Object.assign(it, { key: fs9, sep: [] });
30508
+ let fs8 = this.flowScalar(this.type);
30509
+ !it || it.value ? fc.items.push({ start: [], key: fs8, sep: [] }) : it.sep ? this.stack.push(fs8) : Object.assign(it, { key: fs8, sep: [] });
30517
30510
  return;
30518
30511
  }
30519
30512
  case "flow-map-end":
@@ -32099,8 +32092,8 @@ var require_messageReader = __commonJS({
32099
32092
  constructor(readable, options) {
32100
32093
  super(), this.readable = readable, this.options = ResolvedMessageReaderOptions.fromOptions(options), this.buffer = (0, ral_1.default)().messageBuffer.create(this.options.charset), this._partialMessageTimeout = 1e4, this.nextMessageLength = -1, this.messageToken = 0, this.readSemaphore = new semaphore_1.Semaphore(1);
32101
32094
  }
32102
- set partialMessageTimeout(timeout) {
32103
- this._partialMessageTimeout = timeout;
32095
+ set partialMessageTimeout(timeout2) {
32096
+ this._partialMessageTimeout = timeout2;
32104
32097
  }
32105
32098
  get partialMessageTimeout() {
32106
32099
  return this._partialMessageTimeout;
@@ -32147,8 +32140,8 @@ var require_messageReader = __commonJS({
32147
32140
  this.partialMessageTimer && (this.partialMessageTimer.dispose(), this.partialMessageTimer = void 0);
32148
32141
  }
32149
32142
  setPartialMessageTimer() {
32150
- this.clearPartialMessageTimer(), !(this._partialMessageTimeout <= 0) && (this.partialMessageTimer = (0, ral_1.default)().timer.setTimeout((token, timeout) => {
32151
- this.partialMessageTimer = void 0, token === this.messageToken && (this.firePartialMessage({ messageToken: token, waitingTime: timeout }), this.setPartialMessageTimer());
32143
+ this.clearPartialMessageTimer(), !(this._partialMessageTimeout <= 0) && (this.partialMessageTimer = (0, ral_1.default)().timer.setTimeout((token, timeout2) => {
32144
+ this.partialMessageTimer = void 0, token === this.messageToken && (this.firePartialMessage({ messageToken: token, waitingTime: timeout2 }), this.setPartialMessageTimer());
32152
32145
  }, this._partialMessageTimeout, this.messageToken, this._partialMessageTimeout));
32153
32146
  }
32154
32147
  };
@@ -33417,7 +33410,7 @@ var require_main3 = __commonJS({
33417
33410
  exports.createMessageConnection = exports.createServerSocketTransport = exports.createClientSocketTransport = exports.createServerPipeTransport = exports.createClientPipeTransport = exports.generateRandomPipeName = exports.StreamMessageWriter = exports.StreamMessageReader = exports.SocketMessageWriter = exports.SocketMessageReader = exports.PortMessageWriter = exports.PortMessageReader = exports.IPCMessageWriter = exports.IPCMessageReader = void 0;
33418
33411
  var ril_1 = require_ril();
33419
33412
  ril_1.default.install();
33420
- var path4 = __require("path"), os = __require("os"), crypto_1 = __require("crypto"), net_1 = __require("net"), api_1 = require_api();
33413
+ var path4 = __require("path"), os2 = __require("os"), crypto_1 = __require("crypto"), net_1 = __require("net"), api_1 = require_api();
33421
33414
  __exportStar(require_api(), exports);
33422
33415
  var IPCMessageReader = class extends api_1.AbstractMessageReader {
33423
33416
  constructor(process10) {
@@ -33517,7 +33510,7 @@ var require_main3 = __commonJS({
33517
33510
  if (process.platform === "win32")
33518
33511
  return `\\\\.\\pipe\\vscode-jsonrpc-${randomSuffix}-sock`;
33519
33512
  let result;
33520
- XDG_RUNTIME_DIR ? result = path4.join(XDG_RUNTIME_DIR, `vscode-ipc-${randomSuffix}.sock`) : result = path4.join(os.tmpdir(), `vscode-${randomSuffix}.sock`);
33513
+ XDG_RUNTIME_DIR ? result = path4.join(XDG_RUNTIME_DIR, `vscode-ipc-${randomSuffix}.sock`) : result = path4.join(os2.tmpdir(), `vscode-${randomSuffix}.sock`);
33521
33514
  let limit = safeIpcPathLengths.get(process.platform);
33522
33515
  return limit !== void 0 && result.length > limit && (0, ril_1.default)().console.warn(`WARNING: IPC handle "${result}" is longer than ${limit} characters.`), result;
33523
33516
  }
@@ -37488,7 +37481,7 @@ var require_files = __commonJS({
37488
37481
  init_cjs_shims();
37489
37482
  Object.defineProperty(exports, "__esModule", { value: !0 });
37490
37483
  exports.resolveModulePath = exports.FileSystem = exports.resolveGlobalYarnPath = exports.resolveGlobalNodePath = exports.resolve = exports.uriToFilePath = void 0;
37491
- var url = __require("url"), path4 = __require("path"), fs9 = __require("fs"), child_process_1 = __require("child_process");
37484
+ var url = __require("url"), path4 = __require("path"), fs8 = __require("fs"), child_process_1 = __require("child_process");
37492
37485
  function uriToFilePath(uri) {
37493
37486
  let parsed = url.parse(uri);
37494
37487
  if (parsed.protocol !== "file:" || !parsed.path)
@@ -37526,7 +37519,7 @@ var require_files = __commonJS({
37526
37519
  ].join("");
37527
37520
  return new Promise((resolve3, reject) => {
37528
37521
  let env4 = process.env, newEnv = /* @__PURE__ */ Object.create(null);
37529
- Object.keys(env4).forEach((key) => newEnv[key] = env4[key]), nodePath2 && fs9.existsSync(nodePath2) && (newEnv[nodePathKey] ? newEnv[nodePathKey] = nodePath2 + path4.delimiter + newEnv[nodePathKey] : newEnv[nodePathKey] = nodePath2, tracer && tracer(`NODE_PATH value is: ${newEnv[nodePathKey]}`)), newEnv.ELECTRON_RUN_AS_NODE = "1";
37522
+ Object.keys(env4).forEach((key) => newEnv[key] = env4[key]), nodePath2 && fs8.existsSync(nodePath2) && (newEnv[nodePathKey] ? newEnv[nodePathKey] = nodePath2 + path4.delimiter + newEnv[nodePathKey] : newEnv[nodePathKey] = nodePath2, tracer && tracer(`NODE_PATH value is: ${newEnv[nodePathKey]}`)), newEnv.ELECTRON_RUN_AS_NODE = "1";
37530
37523
  try {
37531
37524
  let cp3 = (0, child_process_1.fork)("", [], {
37532
37525
  cwd: cwd3,
@@ -37613,7 +37606,7 @@ var require_files = __commonJS({
37613
37606
  (function(FileSystem2) {
37614
37607
  let _isCaseSensitive;
37615
37608
  function isCaseSensitive() {
37616
- return _isCaseSensitive !== void 0 || (process.platform === "win32" ? _isCaseSensitive = !1 : _isCaseSensitive = !fs9.existsSync(__filename.toUpperCase()) || !fs9.existsSync(__filename.toLowerCase())), _isCaseSensitive;
37609
+ return _isCaseSensitive !== void 0 || (process.platform === "win32" ? _isCaseSensitive = !1 : _isCaseSensitive = !fs8.existsSync(__filename.toUpperCase()) || !fs8.existsSync(__filename.toLowerCase())), _isCaseSensitive;
37617
37610
  }
37618
37611
  FileSystem2.isCaseSensitive = isCaseSensitive;
37619
37612
  function isParent(parent, child) {
@@ -82685,14 +82678,14 @@ var require_runChecks = __commonJS({
82685
82678
  Object.defineProperty(exports, "__esModule", { value: !0 });
82686
82679
  exports.makeRunChecks = void 0;
82687
82680
  var theme_check_common_1 = require_dist3(), offenseToDiagnostic_1 = require_offenseToDiagnostic();
82688
- function makeRunChecks(documentManager, diagnosticsManager, { fs: fs9, loadConfig: loadConfig2, themeDocset, jsonValidationSet, getMetafieldDefinitions, cssLanguageService }) {
82681
+ function makeRunChecks(documentManager, diagnosticsManager, { fs: fs8, loadConfig: loadConfig2, themeDocset, jsonValidationSet, getMetafieldDefinitions, cssLanguageService }) {
82689
82682
  return async function(triggerURIs) {
82690
- let fileExists3 = (0, theme_check_common_1.makeFileExists)(fs9), rootURIs = await Promise.all(triggerURIs.map((uri) => (0, theme_check_common_1.findRoot)(uri, fileExists3))), deduplicatedRootURIs = new Set(rootURIs.filter((x) => !!x));
82683
+ let fileExists3 = (0, theme_check_common_1.makeFileExists)(fs8), rootURIs = await Promise.all(triggerURIs.map((uri) => (0, theme_check_common_1.findRoot)(uri, fileExists3))), deduplicatedRootURIs = new Set(rootURIs.filter((x) => !!x));
82691
82684
  await Promise.all([...deduplicatedRootURIs].map(runChecksForRoot));
82692
82685
  return;
82693
82686
  async function runChecksForRoot(configFileRootUri) {
82694
- let config2 = await loadConfig2(configFileRootUri, fs9), theme = documentManager.theme(config2.rootUri), cssOffenses = cssLanguageService ? await Promise.all(theme.map((sourceCode) => getCSSDiagnostics(cssLanguageService, sourceCode))).then((offenses2) => offenses2.flat()) : [], offenses = [...await (0, theme_check_common_1.check)(theme, config2, {
82695
- fs: fs9,
82687
+ let config2 = await loadConfig2(configFileRootUri, fs8), theme = documentManager.theme(config2.rootUri), cssOffenses = cssLanguageService ? await Promise.all(theme.map((sourceCode) => getCSSDiagnostics(cssLanguageService, sourceCode))).then((offenses2) => offenses2.flat()) : [], offenses = [...await (0, theme_check_common_1.check)(theme, config2, {
82688
+ fs: fs8,
82696
82689
  themeDocset,
82697
82690
  jsonValidationSet,
82698
82691
  getMetafieldDefinitions,
@@ -83039,18 +83032,18 @@ var require_DocumentManager = __commonJS({
83039
83032
  Object.defineProperty(exports, "__esModule", { value: !0 });
83040
83033
  exports.DocumentManager = void 0;
83041
83034
  var theme_check_common_1 = require_dist3(), vscode_languageserver_textdocument_1 = (init_main3(), __toCommonJS(main_exports2)), progress_1 = require_progress2(), theme_check_common_2 = require_dist3(), sleep2 = (ms) => new Promise((resolve2) => setTimeout(resolve2, ms)), DocumentManager = class {
83042
- constructor(fs9, connection, clientCapabilities, getModeForUri, isValidSchema) {
83043
- this.fs = fs9, this.connection = connection, this.clientCapabilities = clientCapabilities, this.getModeForUri = getModeForUri, this.isValidSchema = isValidSchema, this.preload = (0, theme_check_common_1.memoize)(async (rootUri) => {
83035
+ constructor(fs8, connection, clientCapabilities, getModeForUri, isValidSchema) {
83036
+ this.fs = fs8, this.connection = connection, this.clientCapabilities = clientCapabilities, this.getModeForUri = getModeForUri, this.isValidSchema = isValidSchema, this.preload = (0, theme_check_common_1.memoize)(async (rootUri) => {
83044
83037
  if (!this.fs)
83045
83038
  throw new Error("Cannot call preload without a FileSystem");
83046
- let { fs: fs10, connection: connection2, clientCapabilities: clientCapabilities2 } = this, progress = progress_1.Progress.create(connection2, clientCapabilities2, `preload#${rootUri}`);
83039
+ let { fs: fs9, connection: connection2, clientCapabilities: clientCapabilities2 } = this, progress = progress_1.Progress.create(connection2, clientCapabilities2, `preload#${rootUri}`);
83047
83040
  progress.start("Initializing Liquid LSP");
83048
83041
  let filesToLoad = await (0, theme_check_common_1.recursiveReadDirectory)(this.fs, rootUri, ([uri]) => /\.(liquid|json)$/.test(uri) && !this.sourceCodes.has(uri));
83049
83042
  progress.report(10, "Preloading files");
83050
83043
  let [i, n] = [0, filesToLoad.length];
83051
83044
  await Promise.all(filesToLoad.map(async (file) => {
83052
83045
  try {
83053
- this.set(file, await fs10.readFile(file), void 0);
83046
+ this.set(file, await fs9.readFile(file), void 0);
83054
83047
  } catch (error) {
83055
83048
  console.error("Failed to preload", file, error);
83056
83049
  }
@@ -85571,8 +85564,8 @@ var require_CachedFileSystem = __commonJS({
85571
85564
  Object.defineProperty(exports, "__esModule", { value: !0 });
85572
85565
  exports.CachedFileSystem = void 0;
85573
85566
  var CachedFileSystem = class {
85574
- constructor(fs9) {
85575
- this.readFile = cachedByUri(fs9.readFile.bind(fs9)), this.readDirectory = cachedByUri(fs9.readDirectory.bind(fs9)), this.stat = cachedByUri(fs9.stat.bind(fs9));
85567
+ constructor(fs8) {
85568
+ this.readFile = cachedByUri(fs8.readFile.bind(fs8)), this.readDirectory = cachedByUri(fs8.readDirectory.bind(fs8)), this.stat = cachedByUri(fs8.stat.bind(fs8));
85576
85569
  }
85577
85570
  };
85578
85571
  exports.CachedFileSystem = CachedFileSystem;
@@ -88561,8 +88554,8 @@ var require_utils11 = __commonJS({
88561
88554
  return uri.split(".").pop() || "";
88562
88555
  }
88563
88556
  exports.extname = extname2;
88564
- async function exists(fs9, uri) {
88565
- return fs9.stat(uri).then(() => !0).catch(() => !1);
88557
+ async function exists(fs8, uri) {
88558
+ return fs8.stat(uri).then(() => !0).catch(() => !1);
88566
88559
  }
88567
88560
  exports.exists = exists;
88568
88561
  async function acceptsLocalBlocks(sectionType, deps) {
@@ -89447,8 +89440,8 @@ var require_getWebComponentMap = __commonJS({
89447
89440
  Object.defineProperty(exports, "__esModule", { value: !0 });
89448
89441
  exports.findWebComponentReferences = exports.getWebComponentMap = void 0;
89449
89442
  var theme_check_common_1 = require_dist3(), acorn_walk_1 = require_walk(), wcre = /^[a-z][-.\d_a-z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*([-][-.\d_a-z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*)$/u;
89450
- async function getWebComponentMap(rootUri, { fs: fs9, getSourceCode }) {
89451
- let webComponentDefs = /* @__PURE__ */ new Map(), assetRoot = theme_check_common_1.path.join(rootUri, "assets"), jsFiles = await (0, theme_check_common_1.recursiveReadDirectory)(fs9, assetRoot, ([fileName]) => fileName.endsWith(".js"));
89443
+ async function getWebComponentMap(rootUri, { fs: fs8, getSourceCode }) {
89444
+ let webComponentDefs = /* @__PURE__ */ new Map(), assetRoot = theme_check_common_1.path.join(rootUri, "assets"), jsFiles = await (0, theme_check_common_1.recursiveReadDirectory)(fs8, assetRoot, ([fileName]) => fileName.endsWith(".js"));
89452
89445
  return await Promise.all(jsFiles.map((uri) => findWebComponentReferences(uri, assetRoot, getSourceCode, webComponentDefs))), webComponentDefs;
89453
89446
  }
89454
89447
  exports.getWebComponentMap = getWebComponentMap;
@@ -89542,8 +89535,8 @@ var require_ThemeGraphManager = __commonJS({
89542
89535
  Object.defineProperty(exports, "__esModule", { value: !0 });
89543
89536
  exports.ThemeGraphManager = void 0;
89544
89537
  var theme_check_common_1 = require_dist3(), theme_graph_1 = require_dist7(), vscode_json_languageservice_1 = (init_jsonLanguageService(), __toCommonJS(jsonLanguageService_exports)), vscode_languageserver_textdocument_1 = (init_main3(), __toCommonJS(main_exports2)), types_1 = require_types6(), utils_1 = require_utils7(), ThemeGraphManager = class {
89545
- constructor(connection, documentManager, fs9, findThemeRootURI) {
89546
- this.connection = connection, this.documentManager = documentManager, this.fs = fs9, this.findThemeRootURI = findThemeRootURI, this.graphs = /* @__PURE__ */ new Map(), this.operationQueue = [], this.processQueue = (0, utils_1.debounce)(async () => {
89538
+ constructor(connection, documentManager, fs8, findThemeRootURI) {
89539
+ this.connection = connection, this.documentManager = documentManager, this.fs = fs8, this.findThemeRootURI = findThemeRootURI, this.graphs = /* @__PURE__ */ new Map(), this.operationQueue = [], this.processQueue = (0, utils_1.debounce)(async () => {
89547
89540
  let operations = [...new Set(this.operationQueue.splice(0, this.operationQueue.length))];
89548
89541
  if (operations.length === 0)
89549
89542
  return;
@@ -89654,13 +89647,13 @@ var require_ThemeGraphManager = __commonJS({
89654
89647
  this.operationQueue.push(uri), this.processQueue();
89655
89648
  }
89656
89649
  getWebComponentMap(rootUri) {
89657
- let { fs: fs9, getSourceCode } = this;
89658
- return (0, theme_graph_1.getWebComponentMap)(rootUri, { fs: fs9, getSourceCode });
89650
+ let { fs: fs8, getSourceCode } = this;
89651
+ return (0, theme_graph_1.getWebComponentMap)(rootUri, { fs: fs8, getSourceCode });
89659
89652
  }
89660
89653
  async graphDependencies(rootUri) {
89661
- let { documentManager, fs: fs9, getSourceCode } = this, webComponentDefs = await this.getWebComponentMap(rootUri);
89654
+ let { documentManager, fs: fs8, getSourceCode } = this, webComponentDefs = await this.getWebComponentMap(rootUri);
89662
89655
  return {
89663
- fs: fs9,
89656
+ fs: fs8,
89664
89657
  getSourceCode,
89665
89658
  async getBlockSchema(name) {
89666
89659
  let blockUri = theme_check_common_1.path.join(rootUri, "blocks", `${name}.liquid`), doc = documentManager.get(blockUri);
@@ -89692,7 +89685,7 @@ var require_startServer = __commonJS({
89692
89685
  var theme_check_common_1 = require_dist3(), vscode_languageserver_1 = require_main5(), ClientCapabilities_1 = require_ClientCapabilities(), codeActions_1 = require_codeActions(), commands_1 = require_commands(), completions_1 = require_completions(), CSSLanguageService_1 = require_CSSLanguageService(), diagnostics_1 = require_diagnostics(), DocumentHighlightsProvider_1 = require_DocumentHighlightsProvider(), documentLinks_1 = require_documentLinks(), documents_1 = require_documents(), formatting_1 = require_formatting(), hover_1 = require_hover(), JSONLanguageService_1 = require_JSONLanguageService(), LinkedEditingRangesProvider_1 = require_LinkedEditingRangesProvider(), RenameProvider_1 = require_RenameProvider(), RenameHandler_1 = require_RenameHandler(), types_1 = require_types6(), utils_1 = require_utils7(), uri_1 = require_uri(), version_1 = require_version2(), CachedFileSystem_1 = require_CachedFileSystem(), Configuration_1 = require_Configuration(), safe_1 = require_safe(), ThemeGraphManager_1 = require_ThemeGraphManager(), defaultLogger = () => {
89693
89686
  }, hasUnsupportedDocument = (params) => "textDocument" in params && "uri" in params.textDocument && typeof params.textDocument.uri == "string" && (params.textDocument.uri.startsWith("git:") || params.textDocument.uri.startsWith("output:"));
89694
89687
  function startServer2(connection, { fs: injectedFs, loadConfig: injectedLoadConfig, log = defaultLogger, jsonValidationSet, themeDocset: remoteThemeDocset, fetchMetafieldDefinitionsForURI }) {
89695
- let fs9 = new CachedFileSystem_1.CachedFileSystem(injectedFs), fileExists3 = (0, theme_check_common_1.makeFileExists)(fs9), loadConfig2 = (0, theme_check_common_1.memoize)(injectedLoadConfig, (uri) => uri), clientCapabilities = new ClientCapabilities_1.ClientCapabilities(), configuration = new Configuration_1.Configuration(connection, clientCapabilities), documentManager = new documents_1.DocumentManager(fs9, connection, clientCapabilities, getModeForURI, isValidSchema), themeGraphManager = new ThemeGraphManager_1.ThemeGraphManager(connection, documentManager, fs9, findThemeRootURI), diagnosticsManager = new diagnostics_1.DiagnosticsManager(connection), documentLinksProvider = new documentLinks_1.DocumentLinksProvider(documentManager, findThemeRootURI), codeActionsProvider = new codeActions_1.CodeActionsProvider(documentManager, diagnosticsManager), onTypeFormattingProvider = new formatting_1.OnTypeFormattingProvider(documentManager, async function(textDocument, position) {
89688
+ let fs8 = new CachedFileSystem_1.CachedFileSystem(injectedFs), fileExists3 = (0, theme_check_common_1.makeFileExists)(fs8), loadConfig2 = (0, theme_check_common_1.memoize)(injectedLoadConfig, (uri) => uri), clientCapabilities = new ClientCapabilities_1.ClientCapabilities(), configuration = new Configuration_1.Configuration(connection, clientCapabilities), documentManager = new documents_1.DocumentManager(fs8, connection, clientCapabilities, getModeForURI, isValidSchema), themeGraphManager = new ThemeGraphManager_1.ThemeGraphManager(connection, documentManager, fs8, findThemeRootURI), diagnosticsManager = new diagnostics_1.DiagnosticsManager(connection), documentLinksProvider = new documentLinks_1.DocumentLinksProvider(documentManager, findThemeRootURI), codeActionsProvider = new codeActions_1.CodeActionsProvider(documentManager, diagnosticsManager), onTypeFormattingProvider = new formatting_1.OnTypeFormattingProvider(documentManager, async function(textDocument, position) {
89696
89689
  clientCapabilities.hasShowDocumentSupport && connection.sendRequest(vscode_languageserver_1.ShowDocumentRequest.type, {
89697
89690
  uri: textDocument.uri,
89698
89691
  takeFocus: !0,
@@ -89704,13 +89697,13 @@ var require_startServer = __commonJS({
89704
89697
  }), linkedEditingRangesProvider = new LinkedEditingRangesProvider_1.LinkedEditingRangesProvider(documentManager), documentHighlightProvider = new DocumentHighlightsProvider_1.DocumentHighlightsProvider(documentManager), renameProvider = new RenameProvider_1.RenameProvider(connection, clientCapabilities, documentManager, findThemeRootURI), renameHandler = new RenameHandler_1.RenameHandler(connection, clientCapabilities, documentManager, findThemeRootURI);
89705
89698
  async function findThemeRootURI(uri) {
89706
89699
  let rootUri = await (0, theme_check_common_1.findRoot)(uri, fileExists3);
89707
- return rootUri ? (await loadConfig2(rootUri, fs9)).rootUri : null;
89700
+ return rootUri ? (await loadConfig2(rootUri, fs8)).rootUri : null;
89708
89701
  }
89709
- let getMetafieldDefinitionsForRootUri = (0, theme_check_common_1.memoize)((0, theme_check_common_1.makeGetMetafieldDefinitions)(fs9), (rootUri) => rootUri), getMetafieldDefinitions = async (uri) => {
89702
+ let getMetafieldDefinitionsForRootUri = (0, theme_check_common_1.memoize)((0, theme_check_common_1.makeGetMetafieldDefinitions)(fs8), (rootUri) => rootUri), getMetafieldDefinitions = async (uri) => {
89710
89703
  let rootUri = await findThemeRootURI(uri);
89711
89704
  return rootUri ? getMetafieldDefinitionsForRootUri(rootUri) : {};
89712
89705
  }, themeDocset = new theme_check_common_1.AugmentedThemeDocset(remoteThemeDocset), cssLanguageService = new CSSLanguageService_1.CSSLanguageService(documentManager), runChecks = (0, utils_1.debounce)((0, diagnostics_1.makeRunChecks)(documentManager, diagnosticsManager, {
89713
- fs: fs9,
89706
+ fs: fs8,
89714
89707
  loadConfig: loadConfig2,
89715
89708
  themeDocset,
89716
89709
  jsonValidationSet,
@@ -89720,7 +89713,7 @@ var require_startServer = __commonJS({
89720
89713
  let rootURI = await findThemeRootURI(uri);
89721
89714
  if (!rootURI)
89722
89715
  return {};
89723
- let theme = documentManager.theme(rootURI), getDefaultTranslations = (0, theme_check_common_1.makeGetDefaultTranslations)(fs9, theme, rootURI), [defaultTranslations, shopifyTranslations] = await Promise.all([
89716
+ let theme = documentManager.theme(rootURI), getDefaultTranslations = (0, theme_check_common_1.makeGetDefaultTranslations)(fs8, theme, rootURI), [defaultTranslations, shopifyTranslations] = await Promise.all([
89724
89717
  getDefaultTranslations(),
89725
89718
  themeDocset.systemTranslations()
89726
89719
  ]);
@@ -89730,7 +89723,7 @@ var require_startServer = __commonJS({
89730
89723
  if (!rootURI)
89731
89724
  return {};
89732
89725
  let theme = documentManager.theme(rootURI);
89733
- return (0, theme_check_common_1.makeGetDefaultSchemaTranslations)(fs9, theme, rootURI)();
89726
+ return (0, theme_check_common_1.makeGetDefaultSchemaTranslations)(fs8, theme, rootURI)();
89734
89727
  }, getDocDefinitionForURI = async (uri, category, name) => {
89735
89728
  let rootUri = await findThemeRootURI(uri);
89736
89729
  if (!rootUri)
@@ -89740,25 +89733,25 @@ var require_startServer = __commonJS({
89740
89733
  return file.getLiquidDoc();
89741
89734
  }, snippetFilter = ([uri]) => /\.liquid$/.test(uri) && /snippets/.test(uri), getSnippetNamesForURI = (0, safe_1.safe)(async (uri) => {
89742
89735
  let rootUri = await findThemeRootURI(uri);
89743
- return rootUri ? (await (0, theme_check_common_1.recursiveReadDirectory)(fs9, rootUri, snippetFilter)).map(uri_1.snippetName) : [];
89736
+ return rootUri ? (await (0, theme_check_common_1.recursiveReadDirectory)(fs8, rootUri, snippetFilter)).map(uri_1.snippetName) : [];
89744
89737
  }, []), getThemeSettingsSchemaForURI = (0, safe_1.safe)(async (uri) => {
89745
89738
  let rootUri = await findThemeRootURI(uri);
89746
89739
  if (!rootUri)
89747
89740
  return [];
89748
- let settingsSchemaUri = theme_check_common_1.path.join(rootUri, "config", "settings_schema.json"), contents = await fs9.readFile(settingsSchemaUri), json = (0, theme_check_common_1.parseJSON)(contents);
89741
+ let settingsSchemaUri = theme_check_common_1.path.join(rootUri, "config", "settings_schema.json"), contents = await fs8.readFile(settingsSchemaUri), json = (0, theme_check_common_1.parseJSON)(contents);
89749
89742
  if ((0, theme_check_common_1.isError)(json) || !Array.isArray(json))
89750
89743
  throw new Error("Settings JSON file not in correct format");
89751
89744
  return json;
89752
89745
  }, []);
89753
89746
  async function getModeForURI(uri) {
89754
89747
  let rootUri = await (0, theme_check_common_1.findRoot)(uri, fileExists3);
89755
- return rootUri ? (await loadConfig2(rootUri, fs9)).context : "theme";
89748
+ return rootUri ? (await loadConfig2(rootUri, fs8)).context : "theme";
89756
89749
  }
89757
89750
  let getThemeBlockNames = (0, safe_1.safe)(async (uri, includePrivate) => {
89758
89751
  let rootUri = await findThemeRootURI(uri);
89759
89752
  if (!rootUri)
89760
89753
  return [];
89761
- let blockNames = (await fs9.readDirectory(theme_check_common_1.path.join(rootUri, "blocks"))).map(([uri2]) => theme_check_common_1.path.basename(uri2, ".liquid"));
89754
+ let blockNames = (await fs8.readDirectory(theme_check_common_1.path.join(rootUri, "blocks"))).map(([uri2]) => theme_check_common_1.path.basename(uri2, ".liquid"));
89762
89755
  return includePrivate ? blockNames : blockNames.filter((blockName) => !blockName.startsWith("_"));
89763
89756
  }, []);
89764
89757
  async function getThemeBlockSchema(uri, name) {
@@ -89910,7 +89903,7 @@ var require_startServer = __commonJS({
89910
89903
  }), connection.onDocumentOnTypeFormatting(async (params) => hasUnsupportedDocument(params) ? null : onTypeFormattingProvider.onTypeFormatting(params)), connection.onDocumentHighlight(async (params) => hasUnsupportedDocument(params) ? [] : documentHighlightProvider.documentHighlights(params)), connection.onPrepareRename(async (params) => hasUnsupportedDocument(params) ? null : renameProvider.prepare(params)), connection.onRenameRequest(async (params) => hasUnsupportedDocument(params) ? null : renameProvider.rename(params)), connection.languages.onLinkedEditingRange(async (params) => hasUnsupportedDocument(params) ? null : linkedEditingRangesProvider.linkedEditingRanges(params)), connection.workspace.onDidRenameFiles(async (params) => {
89911
89904
  let triggerUris = params.files.map((fileRename) => fileRename.newUri);
89912
89905
  for (let { oldUri, newUri } of params.files)
89913
- documentManager.rename(oldUri, newUri), fs9.readDirectory.invalidate(theme_check_common_1.path.dirname(oldUri)), fs9.readDirectory.invalidate(theme_check_common_1.path.dirname(newUri)), fs9.readFile.invalidate(oldUri), fs9.readFile.invalidate(newUri), fs9.stat.invalidate(oldUri), fs9.stat.invalidate(newUri), themeGraphManager.rename(oldUri, newUri);
89906
+ documentManager.rename(oldUri, newUri), fs8.readDirectory.invalidate(theme_check_common_1.path.dirname(oldUri)), fs8.readDirectory.invalidate(theme_check_common_1.path.dirname(newUri)), fs8.readFile.invalidate(oldUri), fs8.readFile.invalidate(newUri), fs8.stat.invalidate(oldUri), fs8.stat.invalidate(newUri), themeGraphManager.rename(oldUri, newUri);
89914
89907
  await renameHandler.onDidRenameFiles(params), runChecks.force(triggerUris);
89915
89908
  }), connection.onDidChangeWatchedFiles(async (params) => {
89916
89909
  var _a43;
@@ -89928,13 +89921,13 @@ var require_startServer = __commonJS({
89928
89921
  }
89929
89922
  switch (change.type) {
89930
89923
  case vscode_languageserver_1.FileChangeType.Created:
89931
- fs9.readDirectory.invalidate(theme_check_common_1.path.dirname(change.uri)), fs9.readFile.invalidate(change.uri), fs9.stat.invalidate(change.uri), themeGraphManager.create(change.uri), updates.push(documentManager.changeFromDisk(change.uri));
89924
+ fs8.readDirectory.invalidate(theme_check_common_1.path.dirname(change.uri)), fs8.readFile.invalidate(change.uri), fs8.stat.invalidate(change.uri), themeGraphManager.create(change.uri), updates.push(documentManager.changeFromDisk(change.uri));
89932
89925
  break;
89933
89926
  case vscode_languageserver_1.FileChangeType.Changed:
89934
- fs9.readFile.invalidate(change.uri), fs9.stat.invalidate(change.uri), themeGraphManager.change(change.uri), ((_a43 = documentManager.get(change.uri)) === null || _a43 === void 0 ? void 0 : _a43.version) === void 0 && updates.push(documentManager.changeFromDisk(change.uri));
89927
+ fs8.readFile.invalidate(change.uri), fs8.stat.invalidate(change.uri), themeGraphManager.change(change.uri), ((_a43 = documentManager.get(change.uri)) === null || _a43 === void 0 ? void 0 : _a43.version) === void 0 && updates.push(documentManager.changeFromDisk(change.uri));
89935
89928
  break;
89936
89929
  case vscode_languageserver_1.FileChangeType.Deleted:
89937
- fs9.readDirectory.invalidate(theme_check_common_1.path.dirname(change.uri)), fs9.readFile.invalidate(change.uri), fs9.stat.invalidate(change.uri), themeGraphManager.delete(change.uri), documentManager.delete(change.uri);
89930
+ fs8.readDirectory.invalidate(theme_check_common_1.path.dirname(change.uri)), fs8.readFile.invalidate(change.uri), fs8.stat.invalidate(change.uri), themeGraphManager.delete(change.uri), documentManager.delete(change.uri);
89938
89931
  break;
89939
89932
  }
89940
89933
  change.uri.endsWith("metafields.json") && updates.push(findThemeRootURI(change.uri).then((rootUri) => {
@@ -90056,13 +90049,13 @@ var require_dependencies = __commonJS({
90056
90049
  function asFsPath(uriOrPath) {
90057
90050
  return vscode_uri_1.URI.isUri(uriOrPath) ? uriOrPath.fsPath : /^file:/i.test(uriOrPath) ? vscode_uri_1.URI.parse(uriOrPath).fsPath : vscode_uri_1.URI.file(uriOrPath).fsPath;
90058
90051
  }
90059
- var hasThemeAppExtensionConfig = async (rootUri, fs9) => (await (0, theme_check_node_1.recursiveReadDirectory)(fs9, rootUri, ([uri]) => uri.endsWith(".extension.toml"))).length > 0, loadConfig2 = async function(uriString, fs9) {
90060
- let fileUri = theme_check_node_1.path.normalize(uriString), fileExists3 = (0, theme_check_node_1.makeFileExists)(fs9), rootUriString = await (0, theme_check_node_1.findRoot)(fileUri, fileExists3);
90052
+ var hasThemeAppExtensionConfig = async (rootUri, fs8) => (await (0, theme_check_node_1.recursiveReadDirectory)(fs8, rootUri, ([uri]) => uri.endsWith(".extension.toml"))).length > 0, loadConfig2 = async function(uriString, fs8) {
90053
+ let fileUri = theme_check_node_1.path.normalize(uriString), fileExists3 = (0, theme_check_node_1.makeFileExists)(fs8), rootUriString = await (0, theme_check_node_1.findRoot)(fileUri, fileExists3);
90061
90054
  if (!rootUriString)
90062
90055
  throw new Error(`Could not find theme root for ${fileUri}`);
90063
90056
  let rootUri = vscode_uri_1.URI.parse(rootUriString), scheme = rootUri.scheme, configUri = vscode_uri_1.Utils.joinPath(rootUri, ".theme-check.yml"), [configExists, isDefinitelyThemeAppExtension] = await Promise.all([
90064
90057
  fileExists3(theme_check_node_1.path.normalize(configUri)),
90065
- hasThemeAppExtensionConfig(theme_check_node_1.path.normalize(rootUri), fs9)
90058
+ hasThemeAppExtensionConfig(theme_check_node_1.path.normalize(rootUri), fs8)
90066
90059
  ]);
90067
90060
  if (scheme === "file") {
90068
90061
  let configPath = asFsPath(configUri), rootPath = asFsPath(rootUri);
@@ -90169,10 +90162,10 @@ var require_dist9 = __commonJS({
90169
90162
  __exportStar(require_dist8(), exports);
90170
90163
  var getConnection = () => (0, node_1.createConnection)(node_process_1.stdin, node_process_1.stdout);
90171
90164
  exports.getConnection = getConnection;
90172
- function startServer2(connection = (0, exports.getConnection)(), fs9 = theme_check_node_1.NodeFileSystem) {
90165
+ function startServer2(connection = (0, exports.getConnection)(), fs8 = theme_check_node_1.NodeFileSystem) {
90173
90166
  let log = (message) => console.error(message), themeLiquidDocsManager = new theme_check_docs_updater_1.ThemeLiquidDocsManager(log);
90174
90167
  (0, theme_language_server_common_1.startServer)(connection, {
90175
- fs: fs9,
90168
+ fs: fs8,
90176
90169
  log,
90177
90170
  loadConfig: dependencies_1.loadConfig,
90178
90171
  themeDocset: themeLiquidDocsManager,
@@ -90189,10 +90182,10 @@ var require_readdir_glob = __commonJS({
90189
90182
  "../../node_modules/.pnpm/readdir-glob@1.1.3/node_modules/readdir-glob/index.js"(exports, module) {
90190
90183
  init_cjs_shims();
90191
90184
  module.exports = readdirGlob;
90192
- var fs9 = __require("fs"), { EventEmitter: EventEmitter10 } = __require("events"), { Minimatch } = require_minimatch(), { resolve: resolve2 } = __require("path");
90185
+ var fs8 = __require("fs"), { EventEmitter: EventEmitter10 } = __require("events"), { Minimatch } = require_minimatch(), { resolve: resolve2 } = __require("path");
90193
90186
  function readdir3(dir, strict) {
90194
90187
  return new Promise((resolve3, reject) => {
90195
- fs9.readdir(dir, { withFileTypes: !0 }, (err2, files) => {
90188
+ fs8.readdir(dir, { withFileTypes: !0 }, (err2, files) => {
90196
90189
  if (err2)
90197
90190
  switch (err2.code) {
90198
90191
  case "ENOTDIR":
@@ -90220,7 +90213,7 @@ var require_readdir_glob = __commonJS({
90220
90213
  }
90221
90214
  function stat(file, followSymlinks) {
90222
90215
  return new Promise((resolve3, reject) => {
90223
- (followSymlinks ? fs9.stat : fs9.lstat)(file, (err2, stats) => {
90216
+ (followSymlinks ? fs8.stat : fs8.lstat)(file, (err2, stats) => {
90224
90217
  if (err2)
90225
90218
  switch (err2.code) {
90226
90219
  case "ENOENT":
@@ -91423,7 +91416,7 @@ Source:
91423
91416
  }
91424
91417
  }
91425
91418
  var sortBy$1 = awaitify(sortBy2, 3);
91426
- function timeout(asyncFn, milliseconds, info2) {
91419
+ function timeout2(asyncFn, milliseconds, info2) {
91427
91420
  var fn = wrapAsync(asyncFn);
91428
91421
  return initialParams((args, callback) => {
91429
91422
  var timedOut = !1, timer;
@@ -91576,7 +91569,7 @@ Source:
91576
91569
  someLimit: someLimit$1,
91577
91570
  someSeries: someSeries$1,
91578
91571
  sortBy: sortBy$1,
91579
- timeout,
91572
+ timeout: timeout2,
91580
91573
  times,
91581
91574
  timesLimit,
91582
91575
  timesSeries,
@@ -91615,7 +91608,7 @@ Source:
91615
91608
  during: whilst$1,
91616
91609
  doDuring: doWhilst$1
91617
91610
  };
91618
- exports2.all = every$1, exports2.allLimit = everyLimit$1, exports2.allSeries = everySeries$1, exports2.any = some$1, exports2.anyLimit = someLimit$1, exports2.anySeries = someSeries$1, exports2.apply = apply, exports2.applyEach = applyEach, exports2.applyEachSeries = applyEachSeries, exports2.asyncify = asyncify, exports2.auto = auto, exports2.autoInject = autoInject, exports2.cargo = cargo$1, exports2.cargoQueue = cargo, exports2.compose = compose, exports2.concat = concat$1, exports2.concatLimit = concatLimit$1, exports2.concatSeries = concatSeries$1, exports2.constant = constant$1, exports2.default = index, exports2.detect = detect$1, exports2.detectLimit = detectLimit$1, exports2.detectSeries = detectSeries$1, exports2.dir = dir, exports2.doDuring = doWhilst$1, exports2.doUntil = doUntil, exports2.doWhilst = doWhilst$1, exports2.during = whilst$1, exports2.each = each, exports2.eachLimit = eachLimit$1, exports2.eachOf = eachOf$1, exports2.eachOfLimit = eachOfLimit$1, exports2.eachOfSeries = eachOfSeries$1, exports2.eachSeries = eachSeries$1, exports2.ensureAsync = ensureAsync, exports2.every = every$1, exports2.everyLimit = everyLimit$1, exports2.everySeries = everySeries$1, exports2.filter = filter$1, exports2.filterLimit = filterLimit$1, exports2.filterSeries = filterSeries$1, exports2.find = detect$1, exports2.findLimit = detectLimit$1, exports2.findSeries = detectSeries$1, exports2.flatMap = concat$1, exports2.flatMapLimit = concatLimit$1, exports2.flatMapSeries = concatSeries$1, exports2.foldl = reduce$1, exports2.foldr = reduceRight, exports2.forEach = each, exports2.forEachLimit = eachLimit$1, exports2.forEachOf = eachOf$1, exports2.forEachOfLimit = eachOfLimit$1, exports2.forEachOfSeries = eachOfSeries$1, exports2.forEachSeries = eachSeries$1, exports2.forever = forever$1, exports2.groupBy = groupBy2, exports2.groupByLimit = groupByLimit$1, exports2.groupBySeries = groupBySeries, exports2.inject = reduce$1, exports2.log = log, exports2.map = map$1, exports2.mapLimit = mapLimit$1, exports2.mapSeries = mapSeries$1, exports2.mapValues = mapValues, exports2.mapValuesLimit = mapValuesLimit$1, exports2.mapValuesSeries = mapValuesSeries, exports2.memoize = memoize, exports2.nextTick = nextTick, exports2.parallel = parallel, exports2.parallelLimit = parallelLimit, exports2.priorityQueue = priorityQueue, exports2.queue = queue, exports2.race = race$1, exports2.reduce = reduce$1, exports2.reduceRight = reduceRight, exports2.reflect = reflect, exports2.reflectAll = reflectAll, exports2.reject = reject$1, exports2.rejectLimit = rejectLimit$1, exports2.rejectSeries = rejectSeries$1, exports2.retry = retry, exports2.retryable = retryable, exports2.select = filter$1, exports2.selectLimit = filterLimit$1, exports2.selectSeries = filterSeries$1, exports2.seq = seq, exports2.series = series, exports2.setImmediate = setImmediate$1, exports2.some = some$1, exports2.someLimit = someLimit$1, exports2.someSeries = someSeries$1, exports2.sortBy = sortBy$1, exports2.timeout = timeout, exports2.times = times, exports2.timesLimit = timesLimit, exports2.timesSeries = timesSeries, exports2.transform = transform2, exports2.tryEach = tryEach$1, exports2.unmemoize = unmemoize, exports2.until = until, exports2.waterfall = waterfall$1, exports2.whilst = whilst$1, exports2.wrapSync = asyncify, Object.defineProperty(exports2, "__esModule", { value: !0 });
91611
+ exports2.all = every$1, exports2.allLimit = everyLimit$1, exports2.allSeries = everySeries$1, exports2.any = some$1, exports2.anyLimit = someLimit$1, exports2.anySeries = someSeries$1, exports2.apply = apply, exports2.applyEach = applyEach, exports2.applyEachSeries = applyEachSeries, exports2.asyncify = asyncify, exports2.auto = auto, exports2.autoInject = autoInject, exports2.cargo = cargo$1, exports2.cargoQueue = cargo, exports2.compose = compose, exports2.concat = concat$1, exports2.concatLimit = concatLimit$1, exports2.concatSeries = concatSeries$1, exports2.constant = constant$1, exports2.default = index, exports2.detect = detect$1, exports2.detectLimit = detectLimit$1, exports2.detectSeries = detectSeries$1, exports2.dir = dir, exports2.doDuring = doWhilst$1, exports2.doUntil = doUntil, exports2.doWhilst = doWhilst$1, exports2.during = whilst$1, exports2.each = each, exports2.eachLimit = eachLimit$1, exports2.eachOf = eachOf$1, exports2.eachOfLimit = eachOfLimit$1, exports2.eachOfSeries = eachOfSeries$1, exports2.eachSeries = eachSeries$1, exports2.ensureAsync = ensureAsync, exports2.every = every$1, exports2.everyLimit = everyLimit$1, exports2.everySeries = everySeries$1, exports2.filter = filter$1, exports2.filterLimit = filterLimit$1, exports2.filterSeries = filterSeries$1, exports2.find = detect$1, exports2.findLimit = detectLimit$1, exports2.findSeries = detectSeries$1, exports2.flatMap = concat$1, exports2.flatMapLimit = concatLimit$1, exports2.flatMapSeries = concatSeries$1, exports2.foldl = reduce$1, exports2.foldr = reduceRight, exports2.forEach = each, exports2.forEachLimit = eachLimit$1, exports2.forEachOf = eachOf$1, exports2.forEachOfLimit = eachOfLimit$1, exports2.forEachOfSeries = eachOfSeries$1, exports2.forEachSeries = eachSeries$1, exports2.forever = forever$1, exports2.groupBy = groupBy2, exports2.groupByLimit = groupByLimit$1, exports2.groupBySeries = groupBySeries, exports2.inject = reduce$1, exports2.log = log, exports2.map = map$1, exports2.mapLimit = mapLimit$1, exports2.mapSeries = mapSeries$1, exports2.mapValues = mapValues, exports2.mapValuesLimit = mapValuesLimit$1, exports2.mapValuesSeries = mapValuesSeries, exports2.memoize = memoize, exports2.nextTick = nextTick, exports2.parallel = parallel, exports2.parallelLimit = parallelLimit, exports2.priorityQueue = priorityQueue, exports2.queue = queue, exports2.race = race$1, exports2.reduce = reduce$1, exports2.reduceRight = reduceRight, exports2.reflect = reflect, exports2.reflectAll = reflectAll, exports2.reject = reject$1, exports2.rejectLimit = rejectLimit$1, exports2.rejectSeries = rejectSeries$1, exports2.retry = retry, exports2.retryable = retryable, exports2.select = filter$1, exports2.selectLimit = filterLimit$1, exports2.selectSeries = filterSeries$1, exports2.seq = seq, exports2.series = series, exports2.setImmediate = setImmediate$1, exports2.some = some$1, exports2.someLimit = someLimit$1, exports2.someSeries = someSeries$1, exports2.sortBy = sortBy$1, exports2.timeout = timeout2, exports2.times = times, exports2.timesLimit = timesLimit, exports2.timesSeries = timesSeries, exports2.transform = transform2, exports2.tryEach = tryEach$1, exports2.unmemoize = unmemoize, exports2.until = until, exports2.waterfall = waterfall$1, exports2.whilst = whilst$1, exports2.wrapSync = asyncify, Object.defineProperty(exports2, "__esModule", { value: !0 });
91619
91612
  });
91620
91613
  }
91621
91614
  });
@@ -93594,7 +93587,7 @@ var require_lodash5 = __commonJS({
93594
93587
  var require_file = __commonJS({
93595
93588
  "../../node_modules/.pnpm/archiver-utils@2.1.0/node_modules/archiver-utils/file.js"(exports, module) {
93596
93589
  init_cjs_shims();
93597
- var fs9 = require_graceful_fs(), path4 = __require("path"), flatten = require_lodash2(), difference3 = require_lodash3(), union2 = require_lodash4(), isPlainObject2 = require_lodash5(), glob2 = require_glob(), file = module.exports = {}, pathSeparatorRe = /[\/\\]/g, processPatterns = function(patterns, fn) {
93590
+ var fs8 = require_graceful_fs(), path4 = __require("path"), flatten = require_lodash2(), difference3 = require_lodash3(), union2 = require_lodash4(), isPlainObject2 = require_lodash5(), glob2 = require_glob(), file = module.exports = {}, pathSeparatorRe = /[\/\\]/g, processPatterns = function(patterns, fn) {
93598
93591
  var result = [];
93599
93592
  return flatten(patterns).forEach(function(pattern) {
93600
93593
  var exclusion = pattern.indexOf("!") === 0;
@@ -93605,7 +93598,7 @@ var require_file = __commonJS({
93605
93598
  };
93606
93599
  file.exists = function() {
93607
93600
  var filepath = path4.join.apply(path4, arguments);
93608
- return fs9.existsSync(filepath);
93601
+ return fs8.existsSync(filepath);
93609
93602
  };
93610
93603
  file.expand = function(...args) {
93611
93604
  var options = isPlainObject2(args[0]) ? args.shift() : {}, patterns = Array.isArray(args[0]) ? args[0] : args;
@@ -93617,7 +93610,7 @@ var require_file = __commonJS({
93617
93610
  return options.filter && (matches2 = matches2.filter(function(filepath) {
93618
93611
  filepath = path4.join(options.cwd || "", filepath);
93619
93612
  try {
93620
- return typeof options.filter == "function" ? options.filter(filepath) : fs9.statSync(filepath)[options.filter]();
93613
+ return typeof options.filter == "function" ? options.filter(filepath) : fs8.statSync(filepath)[options.filter]();
93621
93614
  } catch {
93622
93615
  return !1;
93623
93616
  }
@@ -93673,7 +93666,7 @@ var require_file = __commonJS({
93673
93666
  var require_archiver_utils = __commonJS({
93674
93667
  "../../node_modules/.pnpm/archiver-utils@2.1.0/node_modules/archiver-utils/index.js"(exports, module) {
93675
93668
  init_cjs_shims();
93676
- var fs9 = require_graceful_fs(), path4 = __require("path"), nutil = __require("util"), lazystream = require_lazystream(), normalizePath2 = require_normalize_path(), defaults = require_lodash(), Stream2 = __require("stream").Stream, PassThrough2 = require_readable().PassThrough, utils = module.exports = {};
93669
+ var fs8 = require_graceful_fs(), path4 = __require("path"), nutil = __require("util"), lazystream = require_lazystream(), normalizePath2 = require_normalize_path(), defaults = require_lodash(), Stream2 = __require("stream").Stream, PassThrough2 = require_readable().PassThrough, utils = module.exports = {};
93677
93670
  utils.file = require_file();
93678
93671
  utils.collectStream = function(source, callback) {
93679
93672
  var collection = [], size = 0;
@@ -93698,7 +93691,7 @@ var require_archiver_utils = __commonJS({
93698
93691
  };
93699
93692
  utils.lazyReadStream = function(filepath) {
93700
93693
  return new lazystream.Readable(function() {
93701
- return fs9.createReadStream(filepath);
93694
+ return fs8.createReadStream(filepath);
93702
93695
  });
93703
93696
  };
93704
93697
  utils.normalizeInputSource = function(source) {
@@ -93723,14 +93716,14 @@ var require_archiver_utils = __commonJS({
93723
93716
  };
93724
93717
  utils.walkdir = function(dirpath, base, callback) {
93725
93718
  var results = [];
93726
- typeof base == "function" && (callback = base, base = dirpath), fs9.readdir(dirpath, function(err2, list2) {
93719
+ typeof base == "function" && (callback = base, base = dirpath), fs8.readdir(dirpath, function(err2, list2) {
93727
93720
  var i = 0, file, filepath;
93728
93721
  if (err2)
93729
93722
  return callback(err2);
93730
93723
  (function next() {
93731
93724
  if (file = list2[i++], !file)
93732
93725
  return callback(null, results);
93733
- filepath = path4.join(dirpath, file), fs9.stat(filepath, function(err3, stats) {
93726
+ filepath = path4.join(dirpath, file), fs8.stat(filepath, function(err3, stats) {
93734
93727
  results.push({
93735
93728
  path: filepath,
93736
93729
  relative: path4.relative(base, filepath).replace(/\\/g, "/"),
@@ -95396,7 +95389,7 @@ var require_readable2 = __commonJS({
95396
95389
  var require_core = __commonJS({
95397
95390
  "../../node_modules/.pnpm/archiver@5.3.2/node_modules/archiver/lib/core.js"(exports, module) {
95398
95391
  init_cjs_shims();
95399
- var fs9 = __require("fs"), glob2 = require_readdir_glob(), async = require_async(), path4 = __require("path"), util2 = require_archiver_utils(), inherits = __require("util").inherits, ArchiverError = require_error2(), Transform2 = require_readable2().Transform, win32 = process.platform === "win32", Archiver = function(format5, options) {
95392
+ var fs8 = __require("fs"), glob2 = require_readdir_glob(), async = require_async(), path4 = __require("path"), util2 = require_archiver_utils(), inherits = __require("util").inherits, ArchiverError = require_error2(), Transform2 = require_readable2().Transform, win32 = process.platform === "win32", Archiver = function(format5, options) {
95400
95393
  if (!(this instanceof Archiver))
95401
95394
  return new Archiver(format5, options);
95402
95395
  typeof format5 != "string" && (options = format5, format5 = "zip"), options = this.options = util2.defaults(options, {
@@ -95420,7 +95413,7 @@ var require_core = __commonJS({
95420
95413
  source: null,
95421
95414
  filepath
95422
95415
  };
95423
- data.name || (data.name = filepath), data.sourcePath = filepath, task.data = data, this._entriesCount++, data.stats && data.stats instanceof fs9.Stats ? (task = this._updateQueueTaskWithStats(task, data.stats), task && (data.stats.size && (this._fsEntriesTotalBytes += data.stats.size), this._queue.push(task))) : this._statQueue.push(task);
95416
+ data.name || (data.name = filepath), data.sourcePath = filepath, task.data = data, this._entriesCount++, data.stats && data.stats instanceof fs8.Stats ? (task = this._updateQueueTaskWithStats(task, data.stats), task && (data.stats.size && (this._fsEntriesTotalBytes += data.stats.size), this._queue.push(task))) : this._statQueue.push(task);
95424
95417
  };
95425
95418
  Archiver.prototype._finalize = function() {
95426
95419
  this._state.finalizing || this._state.finalized || this._state.aborted || (this._state.finalizing = !0, this._moduleFinalize(), this._state.finalizing = !1, this._state.finalized = !0);
@@ -95500,7 +95493,7 @@ var require_core = __commonJS({
95500
95493
  callback();
95501
95494
  return;
95502
95495
  }
95503
- fs9.lstat(task.filepath, function(err2, stats) {
95496
+ fs8.lstat(task.filepath, function(err2, stats) {
95504
95497
  if (this._state.aborted) {
95505
95498
  setImmediate(callback);
95506
95499
  return;
@@ -95524,7 +95517,7 @@ var require_core = __commonJS({
95524
95517
  else if (stats.isDirectory() && this._moduleSupports("directory"))
95525
95518
  task.data.name = util2.trailingSlashIt(task.data.name), task.data.type = "directory", task.data.sourcePath = util2.trailingSlashIt(task.filepath), task.data.sourceType = "buffer", task.source = Buffer.concat([]);
95526
95519
  else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
95527
- var linkPath = fs9.readlinkSync(task.filepath), dirName = path4.dirname(task.filepath);
95520
+ var linkPath = fs8.readlinkSync(task.filepath), dirName = path4.dirname(task.filepath);
95528
95521
  task.data.type = "symlink", task.data.linkname = path4.relative(dirName, path4.resolve(dirName, linkPath)), task.data.sourceType = "buffer", task.source = Buffer.concat([]);
95529
95522
  } else
95530
95523
  return stats.isDirectory() ? this.emit("warning", new ArchiverError("DIRECTORYNOTSUPPORTED", task.data)) : stats.isSymbolicLink() ? this.emit("warning", new ArchiverError("SYMLINKNOTSUPPORTED", task.data)) : this.emit("warning", new ArchiverError("ENTRYNOTSUPPORTED", task.data)), null;
@@ -96684,7 +96677,7 @@ var require_compress_commons = __commonJS({
96684
96677
  var require_file2 = __commonJS({
96685
96678
  "../../node_modules/.pnpm/archiver-utils@3.0.4/node_modules/archiver-utils/file.js"(exports, module) {
96686
96679
  init_cjs_shims();
96687
- var fs9 = require_graceful_fs(), path4 = __require("path"), flatten = require_lodash2(), difference3 = require_lodash3(), union2 = require_lodash4(), isPlainObject2 = require_lodash5(), glob2 = require_glob(), file = module.exports = {}, pathSeparatorRe = /[\/\\]/g, processPatterns = function(patterns, fn) {
96680
+ var fs8 = require_graceful_fs(), path4 = __require("path"), flatten = require_lodash2(), difference3 = require_lodash3(), union2 = require_lodash4(), isPlainObject2 = require_lodash5(), glob2 = require_glob(), file = module.exports = {}, pathSeparatorRe = /[\/\\]/g, processPatterns = function(patterns, fn) {
96688
96681
  var result = [];
96689
96682
  return flatten(patterns).forEach(function(pattern) {
96690
96683
  var exclusion = pattern.indexOf("!") === 0;
@@ -96695,7 +96688,7 @@ var require_file2 = __commonJS({
96695
96688
  };
96696
96689
  file.exists = function() {
96697
96690
  var filepath = path4.join.apply(path4, arguments);
96698
- return fs9.existsSync(filepath);
96691
+ return fs8.existsSync(filepath);
96699
96692
  };
96700
96693
  file.expand = function(...args) {
96701
96694
  var options = isPlainObject2(args[0]) ? args.shift() : {}, patterns = Array.isArray(args[0]) ? args[0] : args;
@@ -96707,7 +96700,7 @@ var require_file2 = __commonJS({
96707
96700
  return options.filter && (matches2 = matches2.filter(function(filepath) {
96708
96701
  filepath = path4.join(options.cwd || "", filepath);
96709
96702
  try {
96710
- return typeof options.filter == "function" ? options.filter(filepath) : fs9.statSync(filepath)[options.filter]();
96703
+ return typeof options.filter == "function" ? options.filter(filepath) : fs8.statSync(filepath)[options.filter]();
96711
96704
  } catch {
96712
96705
  return !1;
96713
96706
  }
@@ -96763,7 +96756,7 @@ var require_file2 = __commonJS({
96763
96756
  var require_archiver_utils2 = __commonJS({
96764
96757
  "../../node_modules/.pnpm/archiver-utils@3.0.4/node_modules/archiver-utils/index.js"(exports, module) {
96765
96758
  init_cjs_shims();
96766
- var fs9 = require_graceful_fs(), path4 = __require("path"), lazystream = require_lazystream(), normalizePath2 = require_normalize_path(), defaults = require_lodash(), Stream2 = __require("stream").Stream, PassThrough2 = require_readable2().PassThrough, utils = module.exports = {};
96759
+ var fs8 = require_graceful_fs(), path4 = __require("path"), lazystream = require_lazystream(), normalizePath2 = require_normalize_path(), defaults = require_lodash(), Stream2 = __require("stream").Stream, PassThrough2 = require_readable2().PassThrough, utils = module.exports = {};
96767
96760
  utils.file = require_file2();
96768
96761
  utils.collectStream = function(source, callback) {
96769
96762
  var collection = [], size = 0;
@@ -96788,7 +96781,7 @@ var require_archiver_utils2 = __commonJS({
96788
96781
  };
96789
96782
  utils.lazyReadStream = function(filepath) {
96790
96783
  return new lazystream.Readable(function() {
96791
- return fs9.createReadStream(filepath);
96784
+ return fs8.createReadStream(filepath);
96792
96785
  });
96793
96786
  };
96794
96787
  utils.normalizeInputSource = function(source) {
@@ -96805,14 +96798,14 @@ var require_archiver_utils2 = __commonJS({
96805
96798
  };
96806
96799
  utils.walkdir = function(dirpath, base, callback) {
96807
96800
  var results = [];
96808
- typeof base == "function" && (callback = base, base = dirpath), fs9.readdir(dirpath, function(err2, list2) {
96801
+ typeof base == "function" && (callback = base, base = dirpath), fs8.readdir(dirpath, function(err2, list2) {
96809
96802
  var i = 0, file, filepath;
96810
96803
  if (err2)
96811
96804
  return callback(err2);
96812
96805
  (function next() {
96813
96806
  if (file = list2[i++], !file)
96814
96807
  return callback(null, results);
96815
- filepath = path4.join(dirpath, file), fs9.stat(filepath, function(err3, stats) {
96808
+ filepath = path4.join(dirpath, file), fs8.stat(filepath, function(err3, stats) {
96816
96809
  results.push({
96817
96810
  path: filepath,
96818
96811
  relative: path4.relative(base, filepath).replace(/\\/g, "/"),
@@ -97703,9 +97696,9 @@ var require_temp_dir = __commonJS({
97703
97696
  "../../node_modules/.pnpm/temp-dir@2.0.0/node_modules/temp-dir/index.js"(exports, module) {
97704
97697
  "use strict";
97705
97698
  init_cjs_shims();
97706
- var fs9 = __require("fs"), os = __require("os"), tempDirectorySymbol = Symbol.for("__RESOLVED_TEMP_DIRECTORY__");
97699
+ var fs8 = __require("fs"), os2 = __require("os"), tempDirectorySymbol = Symbol.for("__RESOLVED_TEMP_DIRECTORY__");
97707
97700
  global[tempDirectorySymbol] || Object.defineProperty(global, tempDirectorySymbol, {
97708
- value: fs9.realpathSync(os.tmpdir())
97701
+ value: fs8.realpathSync(os2.tmpdir())
97709
97702
  });
97710
97703
  module.exports = global[tempDirectorySymbol];
97711
97704
  }
@@ -98419,10 +98412,10 @@ var require_bugsnag = __commonJS({
98419
98412
  }, _$pad_4 = function(num, size) {
98420
98413
  var s = "000000000" + num;
98421
98414
  return s.substr(s.length - size);
98422
- }, os = __require("os");
98415
+ }, os2 = __require("os");
98423
98416
  function getHostname() {
98424
98417
  try {
98425
- return os.hostname();
98418
+ return os2.hostname();
98426
98419
  } catch {
98427
98420
  return process.env._CLUSTER_NETWORK_NAME_ || process.env.COMPUTERNAME || "hostname";
98428
98421
  }
@@ -98660,10 +98653,10 @@ metadata was removed`
98660
98653
  var payload = _$safeJsonStringify_5(session, null, null);
98661
98654
  return payload;
98662
98655
  };
98663
- var http3 = __require("http"), https2 = __require("https"), ___require_36 = __require("url"), parse6 = ___require_36.parse, _$request_36 = function(_ref, cb) {
98656
+ var http2 = __require("http"), https2 = __require("https"), ___require_36 = __require("url"), parse6 = ___require_36.parse, _$request_36 = function(_ref, cb) {
98664
98657
  var url2 = _ref.url, headers = _ref.headers, body = _ref.body, agent = _ref.agent, didError = !1, onError = function(err2) {
98665
98658
  didError || (didError = !0, cb(err2));
98666
- }, parsedUrl = parse6(url2), secure = parsedUrl.protocol === "https:", transport = secure ? https2 : http3, req = transport.request({
98659
+ }, parsedUrl = parse6(url2), secure = parsedUrl.protocol === "https:", transport = secure ? https2 : http2, req = transport.request({
98667
98660
  method: "POST",
98668
98661
  hostname: parsedUrl.hostname,
98669
98662
  port: parsedUrl.port,
@@ -100774,11 +100767,11 @@ var require_peek_stream = __commonJS({
100774
100767
  var require_pump2 = __commonJS({
100775
100768
  "../../node_modules/.pnpm/pump@2.0.1/node_modules/pump/index.js"(exports, module) {
100776
100769
  init_cjs_shims();
100777
- var once = require_once(), eos = require_end_of_stream(), fs9 = __require("fs"), noop2 = function() {
100770
+ var once = require_once(), eos = require_end_of_stream(), fs8 = __require("fs"), noop2 = function() {
100778
100771
  }, ancient = /^v?\.0/.test(process.version), isFn = function(fn) {
100779
100772
  return typeof fn == "function";
100780
100773
  }, isFS = function(stream3) {
100781
- return !ancient || !fs9 ? !1 : (stream3 instanceof (fs9.ReadStream || noop2) || stream3 instanceof (fs9.WriteStream || noop2)) && isFn(stream3.close);
100774
+ return !ancient || !fs8 ? !1 : (stream3 instanceof (fs8.ReadStream || noop2) || stream3 instanceof (fs8.WriteStream || noop2)) && isFn(stream3.close);
100782
100775
  }, isRequest = function(stream3) {
100783
100776
  return stream3.setHeader && isFn(stream3.abort);
100784
100777
  }, destroyer = function(stream3, reading, writing, callback) {
@@ -100903,22 +100896,22 @@ var require_chownr = __commonJS({
100903
100896
  "../../node_modules/.pnpm/chownr@1.1.4/node_modules/chownr/chownr.js"(exports, module) {
100904
100897
  "use strict";
100905
100898
  init_cjs_shims();
100906
- var fs9 = __require("fs"), path4 = __require("path"), LCHOWN = fs9.lchown ? "lchown" : "chown", LCHOWNSYNC = fs9.lchownSync ? "lchownSync" : "chownSync", needEISDIRHandled = fs9.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/), lchownSync = (path5, uid, gid) => {
100899
+ var fs8 = __require("fs"), path4 = __require("path"), LCHOWN = fs8.lchown ? "lchown" : "chown", LCHOWNSYNC = fs8.lchownSync ? "lchownSync" : "chownSync", needEISDIRHandled = fs8.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/), lchownSync = (path5, uid, gid) => {
100907
100900
  try {
100908
- return fs9[LCHOWNSYNC](path5, uid, gid);
100901
+ return fs8[LCHOWNSYNC](path5, uid, gid);
100909
100902
  } catch (er) {
100910
100903
  if (er.code !== "ENOENT")
100911
100904
  throw er;
100912
100905
  }
100913
100906
  }, chownSync = (path5, uid, gid) => {
100914
100907
  try {
100915
- return fs9.chownSync(path5, uid, gid);
100908
+ return fs8.chownSync(path5, uid, gid);
100916
100909
  } catch (er) {
100917
100910
  if (er.code !== "ENOENT")
100918
100911
  throw er;
100919
100912
  }
100920
100913
  }, handleEISDIR = needEISDIRHandled ? (path5, uid, gid, cb) => (er) => {
100921
- !er || er.code !== "EISDIR" ? cb(er) : fs9.chown(path5, uid, gid, cb);
100914
+ !er || er.code !== "EISDIR" ? cb(er) : fs8.chown(path5, uid, gid, cb);
100922
100915
  } : (_3, __, ___, cb) => cb, handleEISDirSync = needEISDIRHandled ? (path5, uid, gid) => {
100923
100916
  try {
100924
100917
  return lchownSync(path5, uid, gid);
@@ -100927,15 +100920,15 @@ var require_chownr = __commonJS({
100927
100920
  throw er;
100928
100921
  chownSync(path5, uid, gid);
100929
100922
  }
100930
- } : (path5, uid, gid) => lchownSync(path5, uid, gid), nodeVersion = process.version, readdir3 = (path5, options, cb) => fs9.readdir(path5, options, cb), readdirSync3 = (path5, options) => fs9.readdirSync(path5, options);
100931
- /^v4\./.test(nodeVersion) && (readdir3 = (path5, options, cb) => fs9.readdir(path5, cb));
100923
+ } : (path5, uid, gid) => lchownSync(path5, uid, gid), nodeVersion = process.version, readdir3 = (path5, options, cb) => fs8.readdir(path5, options, cb), readdirSync3 = (path5, options) => fs8.readdirSync(path5, options);
100924
+ /^v4\./.test(nodeVersion) && (readdir3 = (path5, options, cb) => fs8.readdir(path5, cb));
100932
100925
  var chown = (cpath, uid, gid, cb) => {
100933
- fs9[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
100926
+ fs8[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, (er) => {
100934
100927
  cb(er && er.code !== "ENOENT" ? er : null);
100935
100928
  }));
100936
100929
  }, chownrKid = (p, child, uid, gid, cb) => {
100937
100930
  if (typeof child == "string")
100938
- return fs9.lstat(path4.resolve(p, child), (er, stats) => {
100931
+ return fs8.lstat(path4.resolve(p, child), (er, stats) => {
100939
100932
  if (er)
100940
100933
  return cb(er.code !== "ENOENT" ? er : null);
100941
100934
  stats.name = child, chownrKid(p, stats, uid, gid, cb);
@@ -100974,7 +100967,7 @@ var require_chownr = __commonJS({
100974
100967
  }, chownrKidSync = (p, child, uid, gid) => {
100975
100968
  if (typeof child == "string")
100976
100969
  try {
100977
- let stats = fs9.lstatSync(path4.resolve(p, child));
100970
+ let stats = fs8.lstatSync(path4.resolve(p, child));
100978
100971
  stats.name = child, child = stats;
100979
100972
  } catch (er) {
100980
100973
  if (er.code === "ENOENT")
@@ -101004,11 +100997,11 @@ var require_chownr = __commonJS({
101004
100997
  var require_mkdirp_classic = __commonJS({
101005
100998
  "../../node_modules/.pnpm/mkdirp-classic@0.5.3/node_modules/mkdirp-classic/index.js"(exports, module) {
101006
100999
  init_cjs_shims();
101007
- var path4 = __require("path"), fs9 = __require("fs"), _0777 = parseInt("0777", 8);
101000
+ var path4 = __require("path"), fs8 = __require("fs"), _0777 = parseInt("0777", 8);
101008
101001
  module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;
101009
101002
  function mkdirP(p, opts, f2, made) {
101010
101003
  typeof opts == "function" ? (f2 = opts, opts = {}) : (!opts || typeof opts != "object") && (opts = { mode: opts });
101011
- var mode = opts.mode, xfs = opts.fs || fs9;
101004
+ var mode = opts.mode, xfs = opts.fs || fs8;
101012
101005
  mode === void 0 && (mode = _0777 & ~process.umask()), made || (made = null);
101013
101006
  var cb = f2 || function() {
101014
101007
  };
@@ -101034,7 +101027,7 @@ var require_mkdirp_classic = __commonJS({
101034
101027
  }
101035
101028
  mkdirP.sync = function sync(p, opts, made) {
101036
101029
  (!opts || typeof opts != "object") && (opts = { mode: opts });
101037
- var mode = opts.mode, xfs = opts.fs || fs9;
101030
+ var mode = opts.mode, xfs = opts.fs || fs8;
101038
101031
  mode === void 0 && (mode = _0777 & ~process.umask()), made || (made = null), p = path4.resolve(p);
101039
101032
  try {
101040
101033
  xfs.mkdirSync(p, mode), made = made || p;
@@ -101066,20 +101059,20 @@ var require_mkdirp_classic = __commonJS({
101066
101059
  var require_tar_fs = __commonJS({
101067
101060
  "../../node_modules/.pnpm/tar-fs@2.1.3/node_modules/tar-fs/index.js"(exports) {
101068
101061
  init_cjs_shims();
101069
- var chownr = require_chownr(), tar = require_tar_stream(), pump = require_pump(), mkdirp = require_mkdirp_classic(), fs9 = __require("fs"), path4 = __require("path"), os = __require("os"), win32 = os.platform() === "win32", noop2 = function() {
101062
+ var chownr = require_chownr(), tar = require_tar_stream(), pump = require_pump(), mkdirp = require_mkdirp_classic(), fs8 = __require("fs"), path4 = __require("path"), os2 = __require("os"), win32 = os2.platform() === "win32", noop2 = function() {
101070
101063
  }, echo = function(name) {
101071
101064
  return name;
101072
101065
  }, normalize = win32 ? function(name) {
101073
101066
  return name.replace(/\\/g, "/").replace(/[:?<>|]/g, "_");
101074
- } : echo, statAll = function(fs10, stat, cwd3, ignore3, entries, sort2) {
101067
+ } : echo, statAll = function(fs9, stat, cwd3, ignore3, entries, sort2) {
101075
101068
  var queue = entries || ["."];
101076
101069
  return function(callback) {
101077
101070
  if (!queue.length) return callback();
101078
101071
  var next = queue.shift(), nextAbs = path4.join(cwd3, next);
101079
- stat.call(fs10, nextAbs, function(err2, stat2) {
101072
+ stat.call(fs9, nextAbs, function(err2, stat2) {
101080
101073
  if (err2) return callback(err2);
101081
101074
  if (!stat2.isDirectory()) return callback(null, next, stat2);
101082
- fs10.readdir(nextAbs, function(err3, files) {
101075
+ fs9.readdir(nextAbs, function(err3, files) {
101083
101076
  if (err3) return callback(err3);
101084
101077
  sort2 && files.sort();
101085
101078
  for (var i = 0; i < files.length; i++)
@@ -101097,7 +101090,7 @@ var require_tar_fs = __commonJS({
101097
101090
  };
101098
101091
  exports.pack = function(cwd3, opts) {
101099
101092
  cwd3 || (cwd3 = "."), opts || (opts = {});
101100
- var xfs = opts.fs || fs9, ignore3 = opts.ignore || opts.filter || noop2, map = opts.map || noop2, mapStream = opts.mapStream || echo, statNext = statAll(xfs, opts.dereference ? xfs.stat : xfs.lstat, cwd3, ignore3, opts.entries, opts.sort), strict = opts.strict !== !1, umask = typeof opts.umask == "number" ? ~opts.umask : ~processUmask(), dmode = typeof opts.dmode == "number" ? opts.dmode : 0, fmode = typeof opts.fmode == "number" ? opts.fmode : 0, pack = opts.pack || tar.pack(), finish = opts.finish || noop2;
101093
+ var xfs = opts.fs || fs8, ignore3 = opts.ignore || opts.filter || noop2, map = opts.map || noop2, mapStream = opts.mapStream || echo, statNext = statAll(xfs, opts.dereference ? xfs.stat : xfs.lstat, cwd3, ignore3, opts.entries, opts.sort), strict = opts.strict !== !1, umask = typeof opts.umask == "number" ? ~opts.umask : ~processUmask(), dmode = typeof opts.dmode == "number" ? opts.dmode : 0, fmode = typeof opts.fmode == "number" ? opts.fmode : 0, pack = opts.pack || tar.pack(), finish = opts.finish || noop2;
101101
101094
  opts.strip && (map = strip(map, opts.strip)), opts.readable && (dmode |= parseInt(555, 8), fmode |= parseInt(444, 8)), opts.writable && (dmode |= parseInt(333, 8), fmode |= parseInt(222, 8));
101102
101095
  var onsymlink = function(filename, header) {
101103
101096
  xfs.readlink(path4.join(cwd3, filename), function(err2, linkname) {
@@ -101146,7 +101139,7 @@ var require_tar_fs = __commonJS({
101146
101139
  };
101147
101140
  exports.extract = function(cwd3, opts) {
101148
101141
  cwd3 || (cwd3 = "."), opts || (opts = {});
101149
- var xfs = opts.fs || fs9, ignore3 = opts.ignore || opts.filter || noop2, map = opts.map || noop2, mapStream = opts.mapStream || echo, own = opts.chown !== !1 && !win32 && processGetuid() === 0, extract2 = opts.extract || tar.extract(), stack = [], now = /* @__PURE__ */ new Date(), umask = typeof opts.umask == "number" ? ~opts.umask : ~processUmask(), dmode = typeof opts.dmode == "number" ? opts.dmode : 0, fmode = typeof opts.fmode == "number" ? opts.fmode : 0, strict = opts.strict !== !1;
101142
+ var xfs = opts.fs || fs8, ignore3 = opts.ignore || opts.filter || noop2, map = opts.map || noop2, mapStream = opts.mapStream || echo, own = opts.chown !== !1 && !win32 && processGetuid() === 0, extract2 = opts.extract || tar.extract(), stack = [], now = /* @__PURE__ */ new Date(), umask = typeof opts.umask == "number" ? ~opts.umask : ~processUmask(), dmode = typeof opts.dmode == "number" ? opts.dmode : 0, fmode = typeof opts.fmode == "number" ? opts.fmode : 0, strict = opts.strict !== !1;
101150
101143
  opts.strip && (map = strip(map, opts.strip)), opts.readable && (dmode |= parseInt(555, 8), fmode |= parseInt(444, 8)), opts.writable && (dmode |= parseInt(333, 8), fmode |= parseInt(222, 8));
101151
101144
  var utimesParent = function(name, cb) {
101152
101145
  for (var top; (top = head(stack)) && name.slice(0, top[0].length) !== top[0]; ) stack.pop();
@@ -101244,11 +101237,11 @@ var require_tar_fs = __commonJS({
101244
101237
  });
101245
101238
  }), opts.finish && extract2.on("finish", opts.finish), extract2;
101246
101239
  };
101247
- function validate5(fs10, name, root, cb) {
101240
+ function validate5(fs9, name, root, cb) {
101248
101241
  if (name === root) return cb(null, !0);
101249
- fs10.lstat(name, function(err2, st) {
101242
+ fs9.lstat(name, function(err2, st) {
101250
101243
  if (err2 && err2.code !== "ENOENT") return cb(err2);
101251
- if (err2 || st.isDirectory()) return validate5(fs10, path4.join(name, ".."), root, cb);
101244
+ if (err2 || st.isDirectory()) return validate5(fs9, path4.join(name, ".."), root, cb);
101252
101245
  cb(null, !1);
101253
101246
  });
101254
101247
  }
@@ -101820,7 +101813,7 @@ var require_lib9 = __commonJS({
101820
101813
  generateContentsFromGraphqlString: () => generateContentsFromGraphqlString,
101821
101814
  generateGraphQLString: () => generateGraphQLString
101822
101815
  });
101823
- var fs9 = __toModule(__require("fs")), graphql_tag = __toModule(require_main6()), readline2 = __toModule(__require("readline")), path4 = __toModule(__require("path")), generateDocumentNodeString = (graphqlDocument, mapDocumentNode) => {
101816
+ var fs8 = __toModule(__require("fs")), graphql_tag = __toModule(require_main6()), readline2 = __toModule(__require("readline")), path4 = __toModule(__require("path")), generateDocumentNodeString = (graphqlDocument, mapDocumentNode) => {
101824
101817
  let documentNodeToUse = mapDocumentNode ? mapDocumentNode(graphqlDocument) : graphqlDocument;
101825
101818
  return JSON.stringify(documentNodeToUse, (key, value) => value === void 0 ? "__undefined" : value).replace(/"__undefined"/g, "undefined");
101826
101819
  }, topologicallySortParsedFiles = (parsedFiles, cache4) => {
@@ -101833,7 +101826,7 @@ var require_lib9 = __commonJS({
101833
101826
  return parsedFiles.forEach(visitFile), sorted;
101834
101827
  }, parseGraphQLFile = (filePath) => new Promise((resolve2) => {
101835
101828
  let readInterface = readline2.default.createInterface({
101836
- input: fs9.default.createReadStream(filePath)
101829
+ input: fs8.default.createReadStream(filePath)
101837
101830
  }), body = "", imports = [], hasExhaustedImports = !1, parseImportAndCapture = (importCommentPrefix, line) => {
101838
101831
  let relativePath2 = line.replace(importCommentPrefix, ""), relativePathWithoutQuotations = relativePath2.replace(/"|'/g, ""), absolutePath = path4.default.join(path4.default.dirname(filePath), relativePathWithoutQuotations);
101839
101832
  imports.push({
@@ -101927,17 +101920,17 @@ var require_retry_operation = __commonJS({
101927
101920
  if (err2 && currentTime - this._operationStart >= this._maxRetryTime)
101928
101921
  return this._errors.unshift(new Error("RetryOperation timeout occurred")), !1;
101929
101922
  this._errors.push(err2);
101930
- var timeout = this._timeouts.shift();
101931
- if (timeout === void 0)
101923
+ var timeout2 = this._timeouts.shift();
101924
+ if (timeout2 === void 0)
101932
101925
  if (this._cachedTimeouts)
101933
- this._errors.splice(this._errors.length - 1, this._errors.length), this._timeouts = this._cachedTimeouts.slice(0), timeout = this._timeouts.shift();
101926
+ this._errors.splice(this._errors.length - 1, this._errors.length), this._timeouts = this._cachedTimeouts.slice(0), timeout2 = this._timeouts.shift();
101934
101927
  else
101935
101928
  return !1;
101936
101929
  var self2 = this, timer = setTimeout(function() {
101937
101930
  self2._attempts++, self2._operationTimeoutCb && (self2._timeout = setTimeout(function() {
101938
101931
  self2._operationTimeoutCb(self2._attempts);
101939
101932
  }, self2._operationTimeout), self2._options.unref && self2._timeout.unref()), self2._fn(self2._attempts);
101940
- }, timeout);
101933
+ }, timeout2);
101941
101934
  return this._options.unref && timer.unref(), !0;
101942
101935
  };
101943
101936
  RetryOperation.prototype.attempt = function(fn, timeoutOps) {
@@ -102006,8 +101999,8 @@ var require_retry = __commonJS({
102006
101999
  }), timeouts;
102007
102000
  };
102008
102001
  exports.createTimeout = function(attempt, opts) {
102009
- var random = opts.randomize ? Math.random() + 1 : 1, timeout = Math.round(random * opts.minTimeout * Math.pow(opts.factor, attempt));
102010
- return timeout = Math.min(timeout, opts.maxTimeout), timeout;
102002
+ var random = opts.randomize ? Math.random() + 1 : 1, timeout2 = Math.round(random * opts.minTimeout * Math.pow(opts.factor, attempt));
102003
+ return timeout2 = Math.min(timeout2, opts.maxTimeout), timeout2;
102011
102004
  };
102012
102005
  exports.wrap = function(obj, options, methods) {
102013
102006
  if (options instanceof Array && (methods = options, options = null), !methods) {
@@ -102044,23 +102037,23 @@ var require_mtime_precision = __commonJS({
102044
102037
  "use strict";
102045
102038
  init_cjs_shims();
102046
102039
  var cacheSymbol = Symbol();
102047
- function probe(file, fs9, callback) {
102048
- let cachedPrecision = fs9[cacheSymbol];
102040
+ function probe(file, fs8, callback) {
102041
+ let cachedPrecision = fs8[cacheSymbol];
102049
102042
  if (cachedPrecision)
102050
- return fs9.stat(file, (err2, stat) => {
102043
+ return fs8.stat(file, (err2, stat) => {
102051
102044
  if (err2)
102052
102045
  return callback(err2);
102053
102046
  callback(null, stat.mtime, cachedPrecision);
102054
102047
  });
102055
102048
  let mtime = new Date(Math.ceil(Date.now() / 1e3) * 1e3 + 5);
102056
- fs9.utimes(file, mtime, mtime, (err2) => {
102049
+ fs8.utimes(file, mtime, mtime, (err2) => {
102057
102050
  if (err2)
102058
102051
  return callback(err2);
102059
- fs9.stat(file, (err3, stat) => {
102052
+ fs8.stat(file, (err3, stat) => {
102060
102053
  if (err3)
102061
102054
  return callback(err3);
102062
102055
  let precision = stat.mtime.getTime() % 1e3 === 0 ? "s" : "ms";
102063
- Object.defineProperty(fs9, cacheSymbol, { value: precision }), callback(null, stat.mtime, precision);
102056
+ Object.defineProperty(fs8, cacheSymbol, { value: precision }), callback(null, stat.mtime, precision);
102064
102057
  });
102065
102058
  });
102066
102059
  }
@@ -102078,7 +102071,7 @@ var require_lockfile = __commonJS({
102078
102071
  "../../node_modules/.pnpm/proper-lockfile@4.1.2/node_modules/proper-lockfile/lib/lockfile.js"(exports, module) {
102079
102072
  "use strict";
102080
102073
  init_cjs_shims();
102081
- var path4 = __require("path"), fs9 = require_graceful_fs(), retry = require_retry2(), onExit = require_signal_exit(), mtimePrecision = require_mtime_precision(), locks = {};
102074
+ var path4 = __require("path"), fs8 = require_graceful_fs(), retry = require_retry2(), onExit = require_signal_exit(), mtimePrecision = require_mtime_precision(), locks = {};
102082
102075
  function getLockFile(file, options) {
102083
102076
  return options.lockfilePath || `${file}.lock`;
102084
102077
  }
@@ -102161,7 +102154,7 @@ var require_lockfile = __commonJS({
102161
102154
  update: null,
102162
102155
  realpath: !0,
102163
102156
  retries: 0,
102164
- fs: fs9,
102157
+ fs: fs8,
102165
102158
  onCompromised: (err2) => {
102166
102159
  throw err2;
102167
102160
  },
@@ -102194,7 +102187,7 @@ var require_lockfile = __commonJS({
102194
102187
  }
102195
102188
  function unlock(file, options, callback) {
102196
102189
  options = {
102197
- fs: fs9,
102190
+ fs: fs8,
102198
102191
  realpath: !0,
102199
102192
  ...options
102200
102193
  }, resolveCanonicalPath(file, options, (err2, file2) => {
@@ -102210,7 +102203,7 @@ var require_lockfile = __commonJS({
102210
102203
  options = {
102211
102204
  stale: 1e4,
102212
102205
  realpath: !0,
102213
- fs: fs9,
102206
+ fs: fs8,
102214
102207
  ...options
102215
102208
  }, options.stale = Math.max(options.stale || 0, 2e3), resolveCanonicalPath(file, options, (err2, file2) => {
102216
102209
  if (err2)
@@ -102242,14 +102235,14 @@ var require_adapter = __commonJS({
102242
102235
  "../../node_modules/.pnpm/proper-lockfile@4.1.2/node_modules/proper-lockfile/lib/adapter.js"(exports, module) {
102243
102236
  "use strict";
102244
102237
  init_cjs_shims();
102245
- var fs9 = require_graceful_fs();
102246
- function createSyncFs(fs10) {
102247
- let methods = ["mkdir", "realpath", "stat", "rmdir", "utimes"], newFs = { ...fs10 };
102238
+ var fs8 = require_graceful_fs();
102239
+ function createSyncFs(fs9) {
102240
+ let methods = ["mkdir", "realpath", "stat", "rmdir", "utimes"], newFs = { ...fs9 };
102248
102241
  return methods.forEach((method) => {
102249
102242
  newFs[method] = (...args) => {
102250
102243
  let callback = args.pop(), ret;
102251
102244
  try {
102252
- ret = fs10[`${method}Sync`](...args);
102245
+ ret = fs9[`${method}Sync`](...args);
102253
102246
  } catch (err2) {
102254
102247
  return callback(err2);
102255
102248
  }
@@ -102275,7 +102268,7 @@ var require_adapter = __commonJS({
102275
102268
  };
102276
102269
  }
102277
102270
  function toSyncOptions(options) {
102278
- if (options = { ...options }, options.fs = createSyncFs(options.fs || fs9), typeof options.retries == "number" && options.retries > 0 || options.retries && typeof options.retries.retries == "number" && options.retries.retries > 0)
102271
+ if (options = { ...options }, options.fs = createSyncFs(options.fs || fs8), typeof options.retries == "number" && options.retries > 0 || options.retries && typeof options.retries.retries == "number" && options.retries.retries > 0)
102279
102272
  throw Object.assign(new Error("Cannot use retries with the sync api"), { code: "ESYNC" });
102280
102273
  return options;
102281
102274
  }
@@ -102885,8 +102878,8 @@ var require_errors6 = __commonJS({
102885
102878
  };
102886
102879
  exports.MissingPointerError = MissingPointerError;
102887
102880
  var TimeoutError = class extends JSONParserError {
102888
- constructor(timeout) {
102889
- super(`Dereferencing timeout reached: ${timeout}ms`), this.code = "ETIMEOUT", this.name = "TimeoutError";
102881
+ constructor(timeout2) {
102882
+ super(`Dereferencing timeout reached: ${timeout2}ms`), this.code = "ETIMEOUT", this.name = "TimeoutError";
102890
102883
  }
102891
102884
  };
102892
102885
  exports.TimeoutError = TimeoutError;
@@ -107482,7 +107475,7 @@ From ` + this.originalError.stack);
107482
107475
  function contains3(root, file) {
107483
107476
  return root = path4.resolve(root), root = root.endsWith(path4.sep) ? root : root + path4.sep, file.startsWith(root);
107484
107477
  }
107485
- var fs9 = /* @__PURE__ */ Object.freeze({
107478
+ var fs8 = /* @__PURE__ */ Object.freeze({
107486
107479
  __proto__: null,
107487
107480
  exists,
107488
107481
  readFile: readFile5,
@@ -107604,7 +107597,7 @@ From ` + this.originalError.stack);
107604
107597
  keyValueSeparator: ":",
107605
107598
  cache: void 0,
107606
107599
  extname: "",
107607
- fs: fs9,
107600
+ fs: fs8,
107608
107601
  dynamicPartials: !0,
107609
107602
  jsTruthy: !1,
107610
107603
  dateFormat: "%A, %B %-e, %Y at %-l:%M %P %z",
@@ -108323,16 +108316,16 @@ From ` + this.originalError.stack);
108323
108316
  this.contains = this.options.fs.contains || (() => !0);
108324
108317
  }
108325
108318
  *lookup(file, type, sync, currentFile) {
108326
- let { fs: fs10 } = this.options, dirs = this.options[type];
108319
+ let { fs: fs9 } = this.options, dirs = this.options[type];
108327
108320
  for (let filepath of this.candidates(file, dirs, currentFile, type !== LookupType.Root))
108328
- if (sync ? fs10.existsSync(filepath) : yield fs10.exists(filepath))
108321
+ if (sync ? fs9.existsSync(filepath) : yield fs9.exists(filepath))
108329
108322
  return filepath;
108330
108323
  throw this.lookupError(file, dirs);
108331
108324
  }
108332
108325
  *candidates(file, dirs, currentFile, enforceRoot) {
108333
- let { fs: fs10, extname: extname2 } = this.options;
108326
+ let { fs: fs9, extname: extname2 } = this.options;
108334
108327
  if (this.shouldLoadRelative(file) && currentFile) {
108335
- let referenced = fs10.resolve(this.dirname(currentFile), file, extname2);
108328
+ let referenced = fs9.resolve(this.dirname(currentFile), file, extname2);
108336
108329
  for (let dir of dirs)
108337
108330
  if (!enforceRoot || this.contains(dir, referenced)) {
108338
108331
  yield referenced;
@@ -108340,17 +108333,17 @@ From ` + this.originalError.stack);
108340
108333
  }
108341
108334
  }
108342
108335
  for (let dir of dirs) {
108343
- let referenced = fs10.resolve(dir, file, extname2);
108336
+ let referenced = fs9.resolve(dir, file, extname2);
108344
108337
  (!enforceRoot || this.contains(dir, referenced)) && (yield referenced);
108345
108338
  }
108346
- if (fs10.fallback !== void 0) {
108347
- let filepath = fs10.fallback(file);
108339
+ if (fs9.fallback !== void 0) {
108340
+ let filepath = fs9.fallback(file);
108348
108341
  filepath !== void 0 && (yield filepath);
108349
108342
  }
108350
108343
  }
108351
108344
  dirname(path5) {
108352
- let fs10 = this.options.fs;
108353
- return assert(fs10.dirname, "`fs.dirname` is required for relative reference"), fs10.dirname(path5);
108345
+ let fs9 = this.options.fs;
108346
+ return assert(fs9.dirname, "`fs.dirname` is required for relative reference"), fs9.dirname(path5);
108354
108347
  }
108355
108348
  lookupError(file, roots) {
108356
108349
  let err2 = new Error("ENOENT");
@@ -124539,7 +124532,7 @@ var require_use_copy_to_clipboard = __commonJS({
124539
124532
  function useCopyToClipboard(options = {}) {
124540
124533
  let {
124541
124534
  defaultValue = "",
124542
- timeout = 1500
124535
+ timeout: timeout2 = 1500
124543
124536
  } = options, [status, setStatus] = React24.useState("inactive"), copy = React24.useCallback((value) => {
124544
124537
  navigator.clipboard.writeText(typeof value == "string" ? value : defaultValue).then(() => setStatus("copied"), () => setStatus("failed")).catch((error) => {
124545
124538
  throw error;
@@ -124547,9 +124540,9 @@ var require_use_copy_to_clipboard = __commonJS({
124547
124540
  }, [defaultValue]);
124548
124541
  return React24.useEffect(() => {
124549
124542
  if (status === "inactive") return;
124550
- let timeoutId = setTimeout(() => setStatus("inactive"), timeout);
124543
+ let timeoutId = setTimeout(() => setStatus("inactive"), timeout2);
124551
124544
  return () => clearTimeout(timeoutId);
124552
- }, [status, timeout]), [copy, status];
124545
+ }, [status, timeout2]), [copy, status];
124553
124546
  }
124554
124547
  exports.useCopyToClipboard = useCopyToClipboard;
124555
124548
  }
@@ -167244,8 +167237,8 @@ var require_Transition = __commonJS({
167244
167237
  }, _proto.componentWillUnmount = function() {
167245
167238
  this.cancelNextCallback();
167246
167239
  }, _proto.getTimeouts = function() {
167247
- var timeout = this.props.timeout, exit, enter, appear;
167248
- return exit = enter = appear = timeout, timeout != null && typeof timeout != "number" && (exit = timeout.exit, enter = timeout.enter, appear = timeout.appear !== void 0 ? timeout.appear : enter), {
167240
+ var timeout2 = this.props.timeout, exit, enter, appear;
167241
+ return exit = enter = appear = timeout2, timeout2 != null && typeof timeout2 != "number" && (exit = timeout2.exit, enter = timeout2.enter, appear = timeout2.appear !== void 0 ? timeout2.appear : enter), {
167249
167242
  exit,
167250
167243
  enter,
167251
167244
  appear
@@ -167316,9 +167309,9 @@ var require_Transition = __commonJS({
167316
167309
  }, this.nextCallback.cancel = function() {
167317
167310
  active = !1;
167318
167311
  }, this.nextCallback;
167319
- }, _proto.onTransitionEnd = function(timeout, handler) {
167312
+ }, _proto.onTransitionEnd = function(timeout2, handler) {
167320
167313
  this.setNextCallback(handler);
167321
- var node = this.props.nodeRef ? this.props.nodeRef.current : _reactDom.default.findDOMNode(this), doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
167314
+ var node = this.props.nodeRef ? this.props.nodeRef.current : _reactDom.default.findDOMNode(this), doesNotHaveTimeoutOrListener = timeout2 == null && !this.props.addEndListener;
167322
167315
  if (!node || doesNotHaveTimeoutOrListener) {
167323
167316
  setTimeout(this.nextCallback, 0);
167324
167317
  return;
@@ -167327,7 +167320,7 @@ var require_Transition = __commonJS({
167327
167320
  var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback], maybeNode = _ref3[0], maybeNextCallback = _ref3[1];
167328
167321
  this.props.addEndListener(maybeNode, maybeNextCallback);
167329
167322
  }
167330
- timeout != null && setTimeout(this.nextCallback, timeout);
167323
+ timeout2 != null && setTimeout(this.nextCallback, timeout2);
167331
167324
  }, _proto.render = function() {
167332
167325
  var status = this.state.status;
167333
167326
  if (status === UNMOUNTED)
@@ -170697,10 +170690,10 @@ var require_CreateViewModal = __commonJS({
170697
170690
  React24.useEffect(() => {
170698
170691
  if (!(!container.current || isTouchDevice) && open2) {
170699
170692
  focus.focusFirstFocusableNode(container.current);
170700
- let timeout = setTimeout(() => {
170693
+ let timeout2 = setTimeout(() => {
170701
170694
  container.current && focus.focusFirstFocusableNode(container.current);
170702
170695
  }, 50);
170703
- return () => clearTimeout(timeout);
170696
+ return () => clearTimeout(timeout2);
170704
170697
  }
170705
170698
  }, [open2, isTouchDevice]);
170706
170699
  let handleChange = React24.useCallback((newValue) => {
@@ -179241,13 +179234,13 @@ var require_node6 = __commonJS({
179241
179234
  stream4 = new tty.WriteStream(fd2), stream4._type = "tty", stream4._handle && stream4._handle.unref && stream4._handle.unref();
179242
179235
  break;
179243
179236
  case "FILE":
179244
- var fs9 = __require("fs");
179245
- stream4 = new fs9.SyncWriteStream(fd2, { autoClose: !1 }), stream4._type = "fs";
179237
+ var fs8 = __require("fs");
179238
+ stream4 = new fs8.SyncWriteStream(fd2, { autoClose: !1 }), stream4._type = "fs";
179246
179239
  break;
179247
179240
  case "PIPE":
179248
179241
  case "TCP":
179249
- var net = __require("net");
179250
- stream4 = new net.Socket({
179242
+ var net2 = __require("net");
179243
+ stream4 = new net2.Socket({
179251
179244
  fd: fd2,
179252
179245
  readable: !1,
179253
179246
  writable: !0
@@ -185183,10 +185176,10 @@ var require_methods = __commonJS({
185183
185176
  "../../node_modules/.pnpm/methods@1.1.2/node_modules/methods/index.js"(exports, module) {
185184
185177
  "use strict";
185185
185178
  init_cjs_shims();
185186
- var http3 = __require("http");
185179
+ var http2 = __require("http");
185187
185180
  module.exports = getCurrentNodeMethods() || getBasicNodeMethods();
185188
185181
  function getCurrentNodeMethods() {
185189
- return http3.METHODS && http3.METHODS.map(function(method) {
185182
+ return http2.METHODS && http2.METHODS.map(function(method) {
185190
185183
  return method.toLowerCase();
185191
185184
  });
185192
185185
  }
@@ -185570,7 +185563,7 @@ var require_view = __commonJS({
185570
185563
  "../../node_modules/.pnpm/express@4.21.2/node_modules/express/lib/view.js"(exports, module) {
185571
185564
  "use strict";
185572
185565
  init_cjs_shims();
185573
- var debug4 = require_src2()("express:view"), path4 = __require("path"), fs9 = __require("fs"), dirname6 = path4.dirname, basename3 = path4.basename, extname2 = path4.extname, join6 = path4.join, resolve2 = path4.resolve;
185566
+ var debug4 = require_src2()("express:view"), path4 = __require("path"), fs8 = __require("fs"), dirname6 = path4.dirname, basename3 = path4.basename, extname2 = path4.extname, join6 = path4.join, resolve2 = path4.resolve;
185574
185567
  module.exports = View;
185575
185568
  function View(name, options) {
185576
185569
  var opts = options || {};
@@ -185607,7 +185600,7 @@ var require_view = __commonJS({
185607
185600
  function tryStat(path5) {
185608
185601
  debug4('stat "%s"', path5);
185609
185602
  try {
185610
- return fs9.statSync(path5);
185603
+ return fs8.statSync(path5);
185611
185604
  } catch {
185612
185605
  return;
185613
185606
  }
@@ -185828,7 +185821,7 @@ var require_types16 = __commonJS({
185828
185821
  var require_mime = __commonJS({
185829
185822
  "../../node_modules/.pnpm/mime@1.6.0/node_modules/mime/mime.js"(exports, module) {
185830
185823
  init_cjs_shims();
185831
- var path4 = __require("path"), fs9 = __require("fs");
185824
+ var path4 = __require("path"), fs8 = __require("fs");
185832
185825
  function Mime() {
185833
185826
  this.types = /* @__PURE__ */ Object.create(null), this.extensions = /* @__PURE__ */ Object.create(null);
185834
185827
  }
@@ -185841,7 +185834,7 @@ var require_mime = __commonJS({
185841
185834
  };
185842
185835
  Mime.prototype.load = function(file) {
185843
185836
  this._loading = file;
185844
- var map = {}, content = fs9.readFileSync(file, "ascii"), lines = content.split(/[\r\n]+/);
185837
+ var map = {}, content = fs8.readFileSync(file, "ascii"), lines = content.split(/[\r\n]+/);
185845
185838
  lines.forEach(function(line) {
185846
185839
  var fields = line.replace(/\s*#.*|^\s*|\s*$/g, "").split(/\s+/);
185847
185840
  map[fields.shift()] = fields;
@@ -185927,7 +185920,7 @@ var require_send = __commonJS({
185927
185920
  "../../node_modules/.pnpm/send@0.19.0/node_modules/send/index.js"(exports, module) {
185928
185921
  "use strict";
185929
185922
  init_cjs_shims();
185930
- var createError3 = require_http_errors(), debug4 = require_src2()("send"), deprecate = require_depd()("send"), destroy = require_destroy3(), encodeUrl = require_encodeurl2(), escapeHtml2 = require_escape_html(), etag = require_etag(), fresh = require_fresh(), fs9 = __require("fs"), mime = require_mime(), ms = require_ms(), onFinished = require_on_finished(), parseRange = require_range_parser(), path4 = __require("path"), statuses = require_statuses(), Stream2 = __require("stream"), util2 = __require("util"), extname2 = path4.extname, join6 = path4.join, normalize = path4.normalize, resolve2 = path4.resolve, sep3 = path4.sep, BYTES_RANGE_REGEXP = /^ *bytes=/, MAX_MAXAGE = 60 * 60 * 24 * 365 * 1e3, UP_PATH_REGEXP = /(?:^|[\\/])\.\.(?:[\\/]|$)/;
185923
+ var createError3 = require_http_errors(), debug4 = require_src2()("send"), deprecate = require_depd()("send"), destroy = require_destroy3(), encodeUrl = require_encodeurl2(), escapeHtml2 = require_escape_html(), etag = require_etag(), fresh = require_fresh(), fs8 = __require("fs"), mime = require_mime(), ms = require_ms(), onFinished = require_on_finished(), parseRange = require_range_parser(), path4 = __require("path"), statuses = require_statuses(), Stream2 = __require("stream"), util2 = __require("util"), extname2 = path4.extname, join6 = path4.join, normalize = path4.normalize, resolve2 = path4.resolve, sep3 = path4.sep, BYTES_RANGE_REGEXP = /^ *bytes=/, MAX_MAXAGE = 60 * 60 * 24 * 365 * 1e3, UP_PATH_REGEXP = /(?:^|[\\/])\.\.(?:[\\/]|$)/;
185931
185924
  module.exports = send3;
185932
185925
  module.exports.mime = mime;
185933
185926
  function send3(req, path5, options) {
@@ -186121,7 +186114,7 @@ var require_send = __commonJS({
186121
186114
  };
186122
186115
  SendStream.prototype.sendFile = function(path5) {
186123
186116
  var i = 0, self2 = this;
186124
- debug4('stat "%s"', path5), fs9.stat(path5, function(err2, stat) {
186117
+ debug4('stat "%s"', path5), fs8.stat(path5, function(err2, stat) {
186125
186118
  if (err2 && err2.code === "ENOENT" && !extname2(path5) && path5[path5.length - 1] !== sep3)
186126
186119
  return next(err2);
186127
186120
  if (err2) return self2.onStatError(err2);
@@ -186132,7 +186125,7 @@ var require_send = __commonJS({
186132
186125
  if (self2._extensions.length <= i)
186133
186126
  return err2 ? self2.onStatError(err2) : self2.error(404);
186134
186127
  var p = path5 + "." + self2._extensions[i++];
186135
- debug4('stat "%s"', p), fs9.stat(p, function(err3, stat) {
186128
+ debug4('stat "%s"', p), fs8.stat(p, function(err3, stat) {
186136
186129
  if (err3) return next(err3);
186137
186130
  if (stat.isDirectory()) return next();
186138
186131
  self2.emit("file", p, stat), self2.send(p, stat);
@@ -186145,7 +186138,7 @@ var require_send = __commonJS({
186145
186138
  if (++i >= self2._index.length)
186146
186139
  return err2 ? self2.onStatError(err2) : self2.error(404);
186147
186140
  var p = join6(path5, self2._index[i]);
186148
- debug4('stat "%s"', p), fs9.stat(p, function(err3, stat) {
186141
+ debug4('stat "%s"', p), fs8.stat(p, function(err3, stat) {
186149
186142
  if (err3) return next(err3);
186150
186143
  if (stat.isDirectory()) return next();
186151
186144
  self2.emit("file", p, stat), self2.send(p, stat);
@@ -186154,7 +186147,7 @@ var require_send = __commonJS({
186154
186147
  next();
186155
186148
  };
186156
186149
  SendStream.prototype.stream = function(path5, options) {
186157
- var self2 = this, res = this.res, stream4 = fs9.createReadStream(path5, options);
186150
+ var self2 = this, res = this.res, stream4 = fs8.createReadStream(path5, options);
186158
186151
  this.emit("stream", stream4), stream4.pipe(res);
186159
186152
  function cleanup2() {
186160
186153
  destroy(stream4, !0);
@@ -186876,7 +186869,7 @@ var require_application = __commonJS({
186876
186869
  "../../node_modules/.pnpm/express@4.21.2/node_modules/express/lib/application.js"(exports, module) {
186877
186870
  "use strict";
186878
186871
  init_cjs_shims();
186879
- var finalhandler = require_finalhandler(), Router = require_router(), methods = require_methods(), middleware = require_init(), query = require_query(), debug4 = require_src2()("express:application"), View = require_view(), http3 = __require("http"), compileETag = require_utils19().compileETag, compileQueryParser = require_utils19().compileQueryParser, compileTrust = require_utils19().compileTrust, deprecate = require_depd()("express"), flatten = require_array_flatten(), merge = require_utils_merge(), resolve2 = __require("path").resolve, setPrototypeOf = require_setprototypeof(), hasOwnProperty = Object.prototype.hasOwnProperty, slice = Array.prototype.slice, app = exports = module.exports = {}, trustProxyDefaultSymbol = "@@symbol:trust_proxy_default";
186872
+ var finalhandler = require_finalhandler(), Router = require_router(), methods = require_methods(), middleware = require_init(), query = require_query(), debug4 = require_src2()("express:application"), View = require_view(), http2 = __require("http"), compileETag = require_utils19().compileETag, compileQueryParser = require_utils19().compileQueryParser, compileTrust = require_utils19().compileTrust, deprecate = require_depd()("express"), flatten = require_array_flatten(), merge = require_utils_merge(), resolve2 = __require("path").resolve, setPrototypeOf = require_setprototypeof(), hasOwnProperty = Object.prototype.hasOwnProperty, slice = Array.prototype.slice, app = exports = module.exports = {}, trustProxyDefaultSymbol = "@@symbol:trust_proxy_default";
186880
186873
  app.init = function() {
186881
186874
  this.cache = {}, this.engines = {}, this.settings = {}, this.defaultConfiguration();
186882
186875
  };
@@ -187024,7 +187017,7 @@ Please see the 3.x to 4.x migration guide for details on how to update your app.
187024
187017
  tryRender(view, renderOptions, done);
187025
187018
  };
187026
187019
  app.listen = function() {
187027
- var server = http3.createServer(this);
187020
+ var server = http2.createServer(this);
187028
187021
  return server.listen.apply(server, arguments);
187029
187022
  };
187030
187023
  function logerror(err2) {
@@ -187513,7 +187506,7 @@ var require_request = __commonJS({
187513
187506
  "../../node_modules/.pnpm/express@4.21.2/node_modules/express/lib/request.js"(exports, module) {
187514
187507
  "use strict";
187515
187508
  init_cjs_shims();
187516
- var accepts = require_accepts(), deprecate = require_depd()("express"), isIP = __require("net").isIP, typeis = require_type_is(), http3 = __require("http"), fresh = require_fresh(), parseRange = require_range_parser(), parse6 = require_parseurl(), proxyaddr = require_proxy_addr(), req = Object.create(http3.IncomingMessage.prototype);
187509
+ var accepts = require_accepts(), deprecate = require_depd()("express"), isIP = __require("net").isIP, typeis = require_type_is(), http2 = __require("http"), fresh = require_fresh(), parseRange = require_range_parser(), parse6 = require_parseurl(), proxyaddr = require_proxy_addr(), req = Object.create(http2.IncomingMessage.prototype);
187517
187510
  module.exports = req;
187518
187511
  req.get = req.header = function(name) {
187519
187512
  if (!name)
@@ -187847,7 +187840,7 @@ var require_response = __commonJS({
187847
187840
  "../../node_modules/.pnpm/express@4.21.2/node_modules/express/lib/response.js"(exports, module) {
187848
187841
  "use strict";
187849
187842
  init_cjs_shims();
187850
- var Buffer2 = require_safe_buffer2().Buffer, contentDisposition = require_content_disposition(), createError3 = require_http_errors(), deprecate = require_depd()("express"), encodeUrl = require_encodeurl(), escapeHtml2 = require_escape_html(), http3 = __require("http"), isAbsolute = require_utils19().isAbsolute, onFinished = require_on_finished(), path4 = __require("path"), statuses = require_statuses(), merge = require_utils_merge(), sign = require_cookie_signature().sign, normalizeType = require_utils19().normalizeType, normalizeTypes = require_utils19().normalizeTypes, setCharset = require_utils19().setCharset, cookie = require_cookie(), send3 = require_send(), extname2 = path4.extname, mime = send3.mime, resolve2 = path4.resolve, vary = require_vary(), res = Object.create(http3.ServerResponse.prototype);
187843
+ var Buffer2 = require_safe_buffer2().Buffer, contentDisposition = require_content_disposition(), createError3 = require_http_errors(), deprecate = require_depd()("express"), encodeUrl = require_encodeurl(), escapeHtml2 = require_escape_html(), http2 = __require("http"), isAbsolute = require_utils19().isAbsolute, onFinished = require_on_finished(), path4 = __require("path"), statuses = require_statuses(), merge = require_utils_merge(), sign = require_cookie_signature().sign, normalizeType = require_utils19().normalizeType, normalizeTypes = require_utils19().normalizeTypes, setCharset = require_utils19().setCharset, cookie = require_cookie(), send3 = require_send(), extname2 = path4.extname, mime = send3.mime, resolve2 = path4.resolve, vary = require_vary(), res = Object.create(http2.ServerResponse.prototype);
187851
187844
  module.exports = res;
187852
187845
  var charsetRegExp = /;\s*charset\s*=/;
187853
187846
  res.status = function(code) {
@@ -198343,14 +198336,14 @@ function uploadTheme(theme, session, checksums, themeFileSystem, options = {}) {
198343
198336
  }
198344
198337
  };
198345
198338
  }
198346
- function createIntervalTask({ promise, titleGetter, timeout }) {
198339
+ function createIntervalTask({ promise, titleGetter, timeout: timeout2 }) {
198347
198340
  let tasks = [], addNextCheck = () => {
198348
198341
  tasks.push({
198349
198342
  title: titleGetter(),
198350
198343
  task: async () => {
198351
198344
  await Promise.race([
198352
198345
  promise,
198353
- new Promise((resolve2) => setTimeout(() => resolve2("timeout"), timeout))
198346
+ new Promise((resolve2) => setTimeout(() => resolve2("timeout"), timeout2))
198354
198347
  ]) === "timeout" && addNextCheck();
198355
198348
  }
198356
198349
  });
@@ -202027,14 +202020,14 @@ var COMMANDS2 = {
202027
202020
  "store:copy": copy_default
202028
202021
  }, dist_default4 = COMMANDS2;
202029
202022
 
202030
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/index.js
202023
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/index.js
202031
202024
  init_cjs_shims();
202032
202025
 
202033
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/build.js
202026
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/build.js
202034
202027
  init_cjs_shims();
202035
202028
  var import_core20 = __toESM(require_lib(), 1);
202036
202029
 
202037
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/template-diff.js
202030
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/template-diff.js
202038
202031
  init_cjs_shims();
202039
202032
  import { symlink, cp } from "node:fs/promises";
202040
202033
 
@@ -202051,7 +202044,7 @@ function temporaryDirectory({ prefix = "" } = {}) {
202051
202044
  return fs2.mkdirSync(directory), directory;
202052
202045
  }
202053
202046
 
202054
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/template-diff.js
202047
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/template-diff.js
202055
202048
  async function prepareDiffDirectory(diffDirectory, watch) {
202056
202049
  let targetDirectory = temporaryDirectory({ prefix: "tmp-hydrogen-diff-" });
202057
202050
  outputInfo(
@@ -202223,10 +202216,10 @@ async function applyTemplateDiff(targetDirectory, diffDirectory, templateDir) {
202223
202216
  }), await mergeTsConfig(diffDirectory, targetDirectory);
202224
202217
  }
202225
202218
 
202226
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/check-lockfile.js
202219
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/check-lockfile.js
202227
202220
  init_cjs_shims();
202228
202221
 
202229
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/package-managers.js
202222
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/package-managers.js
202230
202223
  init_cjs_shims();
202231
202224
  var packageManagers = [
202232
202225
  {
@@ -202251,7 +202244,7 @@ var packageManagers = [
202251
202244
  }
202252
202245
  ];
202253
202246
 
202254
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/check-lockfile.js
202247
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/check-lockfile.js
202255
202248
  function missingLockfileWarning(shouldExit) {
202256
202249
  let headline = "No lockfile found", body = "If you don\u2019t commit a lockfile, then your app might install the wrong package versions when deploying. To avoid versioning issues, generate a new lockfile and commit it to your repository.", nextSteps = [
202257
202250
  [
@@ -202301,9 +202294,9 @@ async function checkLockfileStatus(directory, shouldExit = !1) {
202301
202294
  ]).catch(() => [])).length > 0 && lockfileIgnoredWarning(lockfile2);
202302
202295
  }
202303
202296
 
202304
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/route-validator.js
202297
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/route-validator.js
202305
202298
  init_cjs_shims();
202306
- var RESERVED_ROUTES = ["^api/[^/]+/graphql.json", "^cdn/", "^_t/"];
202299
+ var RESERVED_ROUTES = ["^cdn/", "^_t/"];
202307
202300
  function findReservedRoutes(config2) {
202308
202301
  let routes = /* @__PURE__ */ new Set();
202309
202302
  return Object.values(config2.routes).filter(
@@ -202400,274 +202393,12 @@ These routes are reserved by Shopify and may cause issues with your storefront:
202400
202393
  });
202401
202394
  }
202402
202395
 
202403
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/classic-compiler/build.js
202396
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/bundle/vite-plugin.js
202404
202397
  init_cjs_shims();
202405
202398
 
202406
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/codegen.js
202407
- init_cjs_shims();
202408
- import { spawn } from "node:child_process";
202409
- import { fileURLToPath as fileURLToPath3 } from "node:url";
202410
- var nodePath = process.argv[1], modulePath = fileURLToPath3(import.meta.url), isStandaloneProcess = nodePath === modulePath;
202411
- isStandaloneProcess && codegen({
202412
- rootDirectory: process.argv[2],
202413
- appDirectory: process.argv[3],
202414
- configFilePath: process.argv[4],
202415
- watch: !0
202416
- });
202417
- function normalizeCodegenError(errorMessage, rootDirectory) {
202418
- if (errorMessage.includes("AbortError: ")) {
202419
- let parsedError = errorMessage.split("AbortError: ")[1] ?? "", message2 = parsedError.split(`
202420
- `)[0], details2 = parsedError.match(/tryMessage: '(.*)',$/m)?.[1];
202421
- if (message2) return { message: message2, details: details2 };
202422
- }
202423
- let [first = "", ...rest] = errorMessage.replaceAll("[FAILED]", "").replace(/\s{2,}/g, `
202424
- `).replace(/\n,\n/, `
202425
- `).trim().split(`
202426
- `), message = "[Codegen] " + first, details = rest.join(`
202427
- `);
202428
- if (rootDirectory) {
202429
- let forwardSlashRootDir = rootDirectory.replaceAll("\\", "/") + "/";
202430
- details = details.replaceAll(forwardSlashRootDir, "");
202431
- }
202432
- return { message, details };
202433
- }
202434
- function spawnCodegenProcess({
202435
- rootDirectory,
202436
- appDirectory,
202437
- configFilePath
202438
- }) {
202439
- let command, args, hydrogenArgvIndex = process.argv.findIndex((a3) => a3 === "hydrogen");
202440
- hydrogenArgvIndex >= 1 ? (command = process.argv[0], args = [
202441
- ...process.argv.slice(1, hydrogenArgvIndex + 1),
202442
- "codegen",
202443
- "--watch",
202444
- "--path",
202445
- rootDirectory
202446
- ], configFilePath && args.push("--codegen-config-path", configFilePath)) : (command = "node", args = [
202447
- fileURLToPath3(import.meta.url),
202448
- rootDirectory,
202449
- appDirectory ?? resolvePath("app"),
202450
- configFilePath ?? ""
202451
- ]);
202452
- let child = spawn(command, args, { stdio: ["inherit", "ignore", "pipe"] });
202453
- return child.stderr.on("data", (data) => {
202454
- let dataString = typeof data == "string" ? data : data?.toString?.("utf8") ?? "";
202455
- if (!dataString) return;
202456
- let { message, details } = normalizeCodegenError(dataString, rootDirectory);
202457
- /`punycode`/.test(message) || /\.body\[\d\]/.test(message) || /console\.time(End)?\(\)/.test(message) || /─ (warning|info|success) ───/.test(message) || (console.log(""), renderWarning({ headline: message, body: details }));
202458
- }), child.on("close", (code) => {
202459
- code && code > 0 && renderWarning({
202460
- headline: "Codegen process exited with code " + code,
202461
- body: "There should be more logs above."
202462
- });
202463
- }), child;
202464
- }
202465
- function codegen(options) {
202466
- return generateTypes(options).catch((error) => {
202467
- if (error instanceof AbortError) throw error;
202468
- let { message, details } = normalizeCodegenError(
202469
- error.message,
202470
- options.rootDirectory
202471
- );
202472
- throw new AbortError(message, details);
202473
- });
202474
- }
202475
- async function generateTypes({
202476
- watch,
202477
- configFilePath,
202478
- forceSfapiVersion,
202479
- ...dirs
202480
- }) {
202481
- let { generate: generate2, loadCodegenConfig, CodegenContext } = await importLocal(
202482
- "@graphql-codegen/cli",
202483
- dirs.rootDirectory
202484
- ).catch(() => {
202485
- throw new AbortError(
202486
- "Could not load GraphQL Codegen CLI.",
202487
- "Please make sure you have `@graphql-codegen/cli` installed as a dev dependency."
202488
- );
202489
- }), { config: codegenConfig } = (
202490
- // Load <root>/codegen.ts if available
202491
- await loadCodegenConfig({
202492
- configFilePath: configFilePath ?? dirs.rootDirectory
202493
- }) || // Fall back to default config
202494
- await generateDefaultConfig(dirs, forceSfapiVersion)
202495
- );
202496
- await addHooksToHydrogenOptions(codegenConfig, dirs);
202497
- let codegenContext = new CodegenContext({
202498
- config: {
202499
- ...codegenConfig,
202500
- watch,
202501
- // Note: do not use `silent` without `watch`, it will swallow errors and
202502
- // won't hide all logs. `errorsOnly` flag doesn't work either.
202503
- silent: !watch,
202504
- // @ts-expect-error this is to avoid process.cwd() in tests
202505
- cwd: dirs.rootDirectory
202506
- },
202507
- // https://github.com/dotansimha/graphql-code-generator/issues/9490
202508
- filepath: "not-used-but-must-be-set"
202509
- });
202510
- return codegenContext.cwd = dirs.rootDirectory, await generate2(codegenContext, !0), Object.entries(codegenConfig.generates).reduce(
202511
- (acc, [key, value]) => ("documents" in value && (acc[key] = (Array.isArray(value.documents) ? value.documents : [value.documents]).filter((document2) => typeof document2 == "string")), acc),
202512
- {}
202513
- );
202514
- }
202515
- async function generateDefaultConfig({
202516
- rootDirectory,
202517
- appDirectory = resolvePath(rootDirectory, "app")
202518
- }, forceSfapiVersion) {
202519
- let { getSchema, preset, pluckConfig } = await importLocal(
202520
- "@shopify/hydrogen-codegen",
202521
- rootDirectory
202522
- ).catch(() => {
202523
- throw new AbortError(
202524
- "Could not load Hydrogen Codegen.",
202525
- "Please make sure you have `@shopify/hydrogen-codegen` installed as a dev dependency."
202526
- );
202527
- }), { loadConfig: loadConfig2 } = await importLocal(
202528
- "graphql-config",
202529
- rootDirectory
202530
- ).catch(() => {
202531
- throw new AbortError(
202532
- "Could not load GraphQL Config.",
202533
- "Please make sure you have `graphql-config` installed as a dev dependency."
202534
- );
202535
- }), gqlConfig = await loadConfig2({
202536
- rootDir: rootDirectory,
202537
- throwOnEmpty: !1,
202538
- throwOnMissing: !1,
202539
- legacy: !1
202540
- }).catch(() => {
202541
- }), sfapiSchema = getSchema("storefront"), sfapiProject = findGqlProject(sfapiSchema, gqlConfig), caapiSchema = getSchema("customer-account", { throwIfMissing: !1 }), caapiProject = caapiSchema ? findGqlProject(caapiSchema, gqlConfig) : void 0, defaultGlob = "*!(*.d).{ts,tsx,js,jsx}", appDirRelative = relativePath(rootDirectory, appDirectory), isKnownSchema = (schema) => {
202542
- let baseSfapiSchema = basename(sfapiSchema), baseCaapiSchema = caapiSchema && basename(caapiSchema);
202543
- return !!(schema.endsWith(baseSfapiSchema) || baseCaapiSchema && schema.endsWith(baseCaapiSchema));
202544
- }, otherCodegenProjects = Object.values(gqlConfig?.projects ?? {}).filter(
202545
- (project) => project.hasExtension("codegen") && (typeof project.schema != "string" || !isKnownSchema(project.schema))
202546
- );
202547
- return {
202548
- filepath: "virtual:codegen",
202549
- config: {
202550
- overwrite: !0,
202551
- pluckConfig,
202552
- generates: {
202553
- // If the SFAPI project in GraphQL config has a codegen extension, use it.
202554
- // Otherwise, always fallback to our default config for SFAPI.
202555
- ...getCodegenFromGraphQLConfig(sfapiProject) ?? {
202556
- "storefrontapi.generated.d.ts": {
202557
- preset,
202558
- schema: sfapiSchema,
202559
- documents: sfapiProject?.documents ?? [
202560
- defaultGlob,
202561
- // E.g. ./server.(t|j)s
202562
- joinPath(appDirRelative, "**", defaultGlob)
202563
- // E.g. app/routes/_index.(t|j)sx
202564
- ],
202565
- ...!!forceSfapiVersion && {
202566
- presetConfig: { importTypes: !1 },
202567
- schema: {
202568
- [`https://hydrogen-preview.myshopify.com/api/${forceSfapiVersion.split(":")[0]}/graphql.json`]: {
202569
- headers: {
202570
- "content-type": "application/json",
202571
- "X-Shopify-Storefront-Access-Token": forceSfapiVersion.split(":")[1] ?? "3b580e70970c4528da70c98e097c2fa0"
202572
- }
202573
- }
202574
- },
202575
- config: {
202576
- defaultScalarType: "string",
202577
- scalars: { JSON: "unknown" }
202578
- }
202579
- }
202580
- }
202581
- },
202582
- // If the CAAPI project in GraphQL config has a codegen extension, use it.
202583
- // Otherwise, check if the user provided a list of documents to scan for queries
202584
- // before falling back to our default config for CAAPI.
202585
- ...getCodegenFromGraphQLConfig(caapiProject) ?? (caapiProject?.documents ? {
202586
- "customer-accountapi.generated.d.ts": {
202587
- preset,
202588
- schema: caapiSchema,
202589
- documents: caapiProject.documents
202590
- }
202591
- } : {}),
202592
- // Use other unknown codegen projects from the GraphQL config as they are.
202593
- ...otherCodegenProjects.reduce(
202594
- (acc, project) => ({ ...acc, ...getCodegenFromGraphQLConfig(project) }),
202595
- {}
202596
- )
202597
- }
202598
- }
202599
- };
202600
- }
202601
- function getCodegenFromGraphQLConfig(project) {
202602
- if (project?.extensions?.codegen?.generates)
202603
- return Object.entries(
202604
- project.extensions.codegen.generates
202605
- ).reduce(
202606
- (acc, [key, value]) => (acc[key] = { ...project, ...Array.isArray(value) ? value[0] : value }, acc),
202607
- {}
202608
- );
202609
- }
202610
- function findGqlProject(schemaFilepath, gqlConfig) {
202611
- if (!gqlConfig) return;
202612
- let schemaFilename = basename(schemaFilepath);
202613
- return Object.values(gqlConfig.projects || {}).find(
202614
- (project) => typeof project.schema == "string" && project.schema.endsWith(schemaFilename)
202615
- );
202616
- }
202617
- async function addHooksToHydrogenOptions(codegenConfig, { rootDirectory }) {
202618
- let name = Symbol.for("name"), hydrogenProjectsOptions = Object.values(codegenConfig.generates).filter(
202619
- (value) => {
202620
- let foundPreset = (Array.isArray(value) ? value[0] : value)?.preset;
202621
- if (typeof foundPreset == "object" && name in foundPreset)
202622
- return (
202623
- // Preset from @shopify/hydrogen-codegen (e.g. SFAPI, CAAPI)
202624
- foundPreset[name] === "hydrogen" || // Preset from @shopify/graphql-codegen (e.g. Admin API)
202625
- foundPreset[name] === "@shopify/graphql-codegen"
202626
- );
202627
- }
202628
- );
202629
- for (let options of hydrogenProjectsOptions) {
202630
- let hydrogenOptions = Array.isArray(options) ? options[0] : options;
202631
- if (hydrogenOptions) {
202632
- let formatConfig = await getCodeFormatOptions(rootDirectory);
202633
- hydrogenOptions.hooks = {
202634
- beforeOneFileWrite: (file, content) => formatCode(content, formatConfig, file),
202635
- ...hydrogenOptions.hooks
202636
- };
202637
- }
202638
- }
202639
- }
202640
-
202641
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/bundle/analyzer.js
202399
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/bundle/analyzer.js
202642
202400
  init_cjs_shims();
202643
202401
  var BUNDLE_ANALYZER_JSON_FILE = "metafile.server.json", BUNDLE_ANALYZER_HTML_FILE = "server-bundle-analyzer.html";
202644
- async function classicBuildBundleAnalysis(buildPath) {
202645
- let workerBuildPath = joinPath(buildPath, "worker"), serverMetafile = BUNDLE_ANALYZER_JSON_FILE, clientMetafile = "metafile.js.json";
202646
- if (!(await Promise.all([
202647
- fileExists(joinPath(workerBuildPath, serverMetafile)),
202648
- fileExists(joinPath(workerBuildPath, clientMetafile))
202649
- ])).every(Boolean)) return null;
202650
- try {
202651
- return await Promise.all([
202652
- classicWriteBundleAnalyzerFile(
202653
- workerBuildPath,
202654
- serverMetafile,
202655
- "worker-bundle-analyzer.html"
202656
- ),
202657
- classicWriteBundleAnalyzerFile(
202658
- workerBuildPath,
202659
- clientMetafile,
202660
- "client-bundle-analyzer.html"
202661
- )
202662
- ]), "file://" + joinPath(workerBuildPath, "worker-bundle-analyzer.html");
202663
- } catch (thrown) {
202664
- let error = thrown;
202665
- return renderWarning({
202666
- headline: "Could not generate bundle analysis",
202667
- body: error?.stack ?? error?.message ?? error
202668
- }), null;
202669
- }
202670
- }
202671
202402
  async function getAnalyzerTemplate() {
202672
202403
  return readFile(await getAssetsDir("bundle", "analyzer.html"));
202673
202404
  }
@@ -202679,15 +202410,6 @@ function injectAnalyzerTemplateData(analysisTemplate, metafile) {
202679
202410
  )}';`
202680
202411
  );
202681
202412
  }
202682
- async function classicWriteBundleAnalyzerFile(workerBuildPath, metafileName, outputFile) {
202683
- let metafile = await readFile(joinPath(workerBuildPath, metafileName), {
202684
- encoding: "utf8"
202685
- });
202686
- await writeFile(
202687
- joinPath(workerBuildPath, outputFile),
202688
- injectAnalyzerTemplateData(await getAnalyzerTemplate(), metafile)
202689
- );
202690
- }
202691
202413
  async function getBundleAnalysisSummary(distPath) {
202692
202414
  try {
202693
202415
  return ` \u2502
@@ -202708,116 +202430,8 @@ async function getBundleAnalysisSummary(distPath) {
202708
202430
  );
202709
202431
  }
202710
202432
  }
202711
- function classicGetBundleAnalysisSummary(bundlePath) {
202712
- return getBundleAnalysisSummary(dirname(bundlePath));
202713
- }
202714
-
202715
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/is-ci.js
202716
- init_cjs_shims();
202717
- function isCI2() {
202718
- let { env: env4 } = process;
202719
- return env4.CI === "false" ? !1 : !!(env4.CI || env4.CI_NAME || env4.BUILD_NUMBER || env4.TF_BUILD);
202720
- }
202721
202433
 
202722
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/classic-compiler/build.js
202723
- var LOG_WORKER_BUILT = "\u{1F4E6} Worker built", WORKER_BUILD_SIZE_LIMIT = 5;
202724
- async function runClassicCompilerBuild({
202725
- directory,
202726
- useCodegen = !1,
202727
- codegenConfigPath,
202728
- sourcemap = !1,
202729
- disableRouteWarning = !1,
202730
- bundleStats = !0,
202731
- lockfileCheck = !0,
202732
- assetPath
202733
- }) {
202734
- process.env.NODE_ENV || (process.env.NODE_ENV = "production"), assetPath && (process.env.HYDROGEN_ASSET_BASE_URL = assetPath);
202735
- let { root, buildPath, buildPathClient, buildPathWorkerFile, publicPath } = getProjectPaths(directory);
202736
- lockfileCheck && await checkLockfileStatus(root, isCI2()), await muteRemixLogs(root), console.time(LOG_WORKER_BUILT), outputInfo(`
202737
- \u{1F3D7}\uFE0F Building in ${process.env.NODE_ENV} mode...`);
202738
- let [remixConfig, [{ build: build2 }, { logThrown }, { createFileWatchCache }]] = await Promise.all([
202739
- getRemixConfig(root),
202740
- Promise.all([
202741
- importLocal("@remix-run/dev/dist/compiler/build.js", root),
202742
- importLocal(
202743
- "@remix-run/dev/dist/compiler/utils/log.js",
202744
- root
202745
- ),
202746
- importLocal(
202747
- "@remix-run/dev/dist/compiler/fileWatchCache.js",
202748
- root
202749
- )
202750
- ]).catch(handleRemixImportFail),
202751
- rmdir(buildPath, { force: !0 })
202752
- ]);
202753
- if (assertOxygenChecks(remixConfig), await Promise.all([
202754
- copyPublicFiles(publicPath, buildPathClient),
202755
- build2({
202756
- config: remixConfig,
202757
- options: {
202758
- mode: process.env.NODE_ENV,
202759
- sourcemap
202760
- },
202761
- logger: createRemixLogger(),
202762
- fileWatchCache: createFileWatchCache()
202763
- }).catch((thrown) => {
202764
- if (logThrown(thrown), process.env.SHOPIFY_UNIT_TEST)
202765
- throw thrown;
202766
- process.exit(1);
202767
- }),
202768
- useCodegen && codegen({ ...remixConfig, configFilePath: codegenConfigPath })
202769
- ]), process.env.NODE_ENV !== "development") {
202770
- console.timeEnd(LOG_WORKER_BUILT);
202771
- let bundleAnalysisPath = await classicBuildBundleAnalysis(buildPath), sizeMB = await fileSize(buildPathWorkerFile) / (1024 * 1024), formattedSize = source_default.yellow(sizeMB.toFixed(2) + " MB");
202772
- outputInfo(
202773
- outputContent` ${source_default.dim(
202774
- relativePath(root, buildPathWorkerFile)
202775
- )} ${bundleAnalysisPath ? outputToken.link(formattedSize, bundleAnalysisPath) : formattedSize}\n`
202776
- ), bundleStats && bundleAnalysisPath && outputInfo(
202777
- outputContent`${await classicGetBundleAnalysisSummary(buildPathWorkerFile) || `
202778
- `}\n │\n └─── ${outputToken.link(
202779
- "Complete analysis: " + bundleAnalysisPath,
202780
- bundleAnalysisPath
202781
- )}\n\n`
202782
- ), sizeMB >= WORKER_BUILD_SIZE_LIMIT && outputWarn(
202783
- `\u{1F6A8} Smaller worker bundles are faster to deploy and run.${remixConfig.serverMinify ? "" : "\n Minify your bundle by adding `serverMinify: true` to remix.config.js."}
202784
- Learn more about optimizing your worker bundle file: https://h2o.fyi/debugging/bundle-size
202785
- `
202786
- );
202787
- }
202788
- if (!disableRouteWarning) {
202789
- let missingRoutes = findMissingRoutes(remixConfig);
202790
- if (missingRoutes.length) {
202791
- let packageManager = await getPackageManager(root), exec3 = packageManager === "npm" ? "npx" : packageManager;
202792
- outputWarn(
202793
- `Heads up: Shopify stores have a number of standard routes that aren\u2019t set up yet.
202794
- Some functionality and backlinks might not work as expected until these are created or redirects are set up.
202795
- This build is missing ${missingRoutes.length} route${missingRoutes.length > 1 ? "s" : ""}. For more details, run \`${exec3} shopify hydrogen check routes\`.
202796
- `
202797
- );
202798
- }
202799
- }
202800
- process.env.NODE_ENV !== "development" && await cleanClientSourcemaps(buildPathClient);
202801
- }
202802
- async function cleanClientSourcemaps(buildPathClient) {
202803
- let bundleFiles = await glob(joinPath(buildPathClient, "**/*.js"));
202804
- await Promise.all(
202805
- bundleFiles.map(async (filePath) => {
202806
- let file = await readFile(filePath);
202807
- return await writeFile(
202808
- filePath,
202809
- file.replace(/\/\/# sourceMappingURL=.+\.js\.map$/gm, "")
202810
- );
202811
- })
202812
- );
202813
- }
202814
- async function copyPublicFiles(publicPath, buildPathClient) {
202815
- if (await fileExists(publicPath))
202816
- return copyFile(publicPath, buildPathClient);
202817
- }
202818
-
202819
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/bundle/vite-plugin.js
202820
- init_cjs_shims();
202434
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/bundle/vite-plugin.js
202821
202435
  function hydrogenBundleAnalyzer(pluginOptions) {
202822
202436
  let config2;
202823
202437
  return {
@@ -202958,7 +202572,258 @@ function createImportsMeta(ids, kind, root, resolveImportString, code) {
202958
202572
  }));
202959
202573
  }
202960
202574
 
202961
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/defer.js
202575
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/codegen.js
202576
+ init_cjs_shims();
202577
+ import { spawn } from "node:child_process";
202578
+ import { fileURLToPath as fileURLToPath3 } from "node:url";
202579
+ var nodePath = process.argv[1], modulePath = fileURLToPath3(import.meta.url), isStandaloneProcess = nodePath === modulePath;
202580
+ isStandaloneProcess && codegen({
202581
+ rootDirectory: process.argv[2],
202582
+ appDirectory: process.argv[3],
202583
+ configFilePath: process.argv[4],
202584
+ watch: !0
202585
+ });
202586
+ function normalizeCodegenError(errorMessage, rootDirectory) {
202587
+ if (errorMessage.includes("AbortError: ")) {
202588
+ let parsedError = errorMessage.split("AbortError: ")[1] ?? "", message2 = parsedError.split(`
202589
+ `)[0], details2 = parsedError.match(/tryMessage: '(.*)',$/m)?.[1];
202590
+ if (message2) return { message: message2, details: details2 };
202591
+ }
202592
+ let [first = "", ...rest] = errorMessage.replaceAll("[FAILED]", "").replace(/\s{2,}/g, `
202593
+ `).replace(/\n,\n/, `
202594
+ `).trim().split(`
202595
+ `), message = "[Codegen] " + first, details = rest.join(`
202596
+ `);
202597
+ if (rootDirectory) {
202598
+ let forwardSlashRootDir = rootDirectory.replaceAll("\\", "/") + "/";
202599
+ details = details.replaceAll(forwardSlashRootDir, "");
202600
+ }
202601
+ return { message, details };
202602
+ }
202603
+ function spawnCodegenProcess({
202604
+ rootDirectory,
202605
+ appDirectory,
202606
+ configFilePath
202607
+ }) {
202608
+ let command, args, hydrogenArgvIndex = process.argv.findIndex((a3) => a3 === "hydrogen");
202609
+ hydrogenArgvIndex >= 1 ? (command = process.argv[0], args = [
202610
+ ...process.argv.slice(1, hydrogenArgvIndex + 1),
202611
+ "codegen",
202612
+ "--watch",
202613
+ "--path",
202614
+ rootDirectory
202615
+ ], configFilePath && args.push("--codegen-config-path", configFilePath)) : (command = "node", args = [
202616
+ fileURLToPath3(import.meta.url),
202617
+ rootDirectory,
202618
+ appDirectory ?? resolvePath("app"),
202619
+ configFilePath ?? ""
202620
+ ]);
202621
+ let child = spawn(command, args, { stdio: ["inherit", "ignore", "pipe"] });
202622
+ return child.stderr.on("data", (data) => {
202623
+ let dataString = typeof data == "string" ? data : data?.toString?.("utf8") ?? "";
202624
+ if (!dataString) return;
202625
+ let { message, details } = normalizeCodegenError(dataString, rootDirectory);
202626
+ /`punycode`/.test(message) || /\.body\[\d\]/.test(message) || /console\.time(End)?\(\)/.test(message) || /─ (warning|info|success) ───/.test(message) || (console.log(""), renderWarning({ headline: message, body: details }));
202627
+ }), child.on("close", (code) => {
202628
+ code && code > 0 && renderWarning({
202629
+ headline: "Codegen process exited with code " + code,
202630
+ body: "There should be more logs above."
202631
+ });
202632
+ }), child;
202633
+ }
202634
+ async function codegen(options) {
202635
+ return await executeReactRouterCodegen(options), runGraphQLCodegen(options).catch((error) => {
202636
+ if (error instanceof AbortError) throw error;
202637
+ let { message, details } = normalizeCodegenError(
202638
+ error.message,
202639
+ options.rootDirectory
202640
+ );
202641
+ throw new AbortError(message, details);
202642
+ });
202643
+ }
202644
+ async function executeReactRouterCodegen(options) {
202645
+ let { execSync: execSync2, exec: exec3 } = await import("child_process");
202646
+ options.watch ? exec3("npx react-router typegen --watch", {
202647
+ cwd: options.rootDirectory
202648
+ }) : execSync2("npx react-router typegen", {
202649
+ cwd: options.rootDirectory,
202650
+ stdio: "inherit"
202651
+ });
202652
+ }
202653
+ async function runGraphQLCodegen({
202654
+ watch,
202655
+ configFilePath,
202656
+ forceSfapiVersion,
202657
+ ...dirs
202658
+ }) {
202659
+ let { generate: generate2, loadCodegenConfig, CodegenContext } = await importLocal(
202660
+ "@graphql-codegen/cli",
202661
+ dirs.rootDirectory
202662
+ ).catch(() => {
202663
+ throw new AbortError(
202664
+ "Could not load GraphQL Codegen CLI.",
202665
+ "Please make sure you have `@graphql-codegen/cli` installed as a dev dependency."
202666
+ );
202667
+ }), { config: codegenConfig } = (
202668
+ // Load <root>/codegen.ts if available
202669
+ await loadCodegenConfig({
202670
+ configFilePath: configFilePath ?? dirs.rootDirectory
202671
+ }) || // Fall back to default config
202672
+ await generateDefaultConfig(dirs, forceSfapiVersion)
202673
+ );
202674
+ await addHooksToHydrogenOptions(codegenConfig, dirs);
202675
+ let codegenContext = new CodegenContext({
202676
+ config: {
202677
+ ...codegenConfig,
202678
+ watch,
202679
+ // Note: do not use `silent` without `watch`, it will swallow errors and
202680
+ // won't hide all logs. `errorsOnly` flag doesn't work either.
202681
+ silent: !watch,
202682
+ // @ts-expect-error this is to avoid process.cwd() in tests
202683
+ cwd: dirs.rootDirectory
202684
+ },
202685
+ // https://github.com/dotansimha/graphql-code-generator/issues/9490
202686
+ filepath: "not-used-but-must-be-set"
202687
+ });
202688
+ return codegenContext.cwd = dirs.rootDirectory, await generate2(codegenContext, !0), Object.entries(codegenConfig.generates).reduce(
202689
+ (acc, [key, value]) => ("documents" in value && (acc[key] = (Array.isArray(value.documents) ? value.documents : [value.documents]).filter((document2) => typeof document2 == "string")), acc),
202690
+ {}
202691
+ );
202692
+ }
202693
+ async function generateDefaultConfig({
202694
+ rootDirectory,
202695
+ appDirectory = resolvePath(rootDirectory, "app")
202696
+ }, forceSfapiVersion) {
202697
+ let { getSchema, preset, pluckConfig } = await importLocal(
202698
+ "@shopify/hydrogen-codegen",
202699
+ rootDirectory
202700
+ ).catch(() => {
202701
+ throw new AbortError(
202702
+ "Could not load Hydrogen Codegen.",
202703
+ "Please make sure you have `@shopify/hydrogen-codegen` installed as a dev dependency."
202704
+ );
202705
+ }), { loadConfig: loadConfig2 } = await importLocal(
202706
+ "graphql-config",
202707
+ rootDirectory
202708
+ ).catch(() => {
202709
+ throw new AbortError(
202710
+ "Could not load GraphQL Config.",
202711
+ "Please make sure you have `graphql-config` installed as a dev dependency."
202712
+ );
202713
+ }), gqlConfig = await loadConfig2({
202714
+ rootDir: rootDirectory,
202715
+ throwOnEmpty: !1,
202716
+ throwOnMissing: !1,
202717
+ legacy: !1
202718
+ }).catch(() => {
202719
+ }), sfapiSchema = getSchema("storefront"), sfapiProject = findGqlProject(sfapiSchema, gqlConfig), caapiSchema = getSchema("customer-account", { throwIfMissing: !1 }), caapiProject = caapiSchema ? findGqlProject(caapiSchema, gqlConfig) : void 0, defaultGlob = "*!(*.d).{ts,tsx,js,jsx}", appDirRelative = relativePath(rootDirectory, appDirectory), isKnownSchema = (schema) => {
202720
+ let baseSfapiSchema = basename(sfapiSchema), baseCaapiSchema = caapiSchema && basename(caapiSchema);
202721
+ return !!(schema.endsWith(baseSfapiSchema) || baseCaapiSchema && schema.endsWith(baseCaapiSchema));
202722
+ }, otherCodegenProjects = Object.values(gqlConfig?.projects ?? {}).filter(
202723
+ (project) => project.hasExtension("codegen") && (typeof project.schema != "string" || !isKnownSchema(project.schema))
202724
+ );
202725
+ return {
202726
+ filepath: "virtual:codegen",
202727
+ config: {
202728
+ overwrite: !0,
202729
+ pluckConfig,
202730
+ generates: {
202731
+ // If the SFAPI project in GraphQL config has a codegen extension, use it.
202732
+ // Otherwise, always fallback to our default config for SFAPI.
202733
+ ...getCodegenFromGraphQLConfig(sfapiProject) ?? {
202734
+ "storefrontapi.generated.d.ts": {
202735
+ preset,
202736
+ schema: sfapiSchema,
202737
+ documents: sfapiProject?.documents ?? [
202738
+ defaultGlob,
202739
+ // E.g. ./server.(t|j)s
202740
+ joinPath(appDirRelative, "**", defaultGlob)
202741
+ // E.g. app/routes/_index.(t|j)sx
202742
+ ],
202743
+ ...!!forceSfapiVersion && {
202744
+ presetConfig: { importTypes: !1 },
202745
+ schema: {
202746
+ [`https://hydrogen-preview.myshopify.com/api/${forceSfapiVersion.split(":")[0]}/graphql.json`]: {
202747
+ headers: {
202748
+ "content-type": "application/json",
202749
+ "X-Shopify-Storefront-Access-Token": forceSfapiVersion.split(":")[1] ?? "3b580e70970c4528da70c98e097c2fa0"
202750
+ }
202751
+ }
202752
+ },
202753
+ config: {
202754
+ defaultScalarType: "string",
202755
+ scalars: { JSON: "unknown" }
202756
+ }
202757
+ }
202758
+ }
202759
+ },
202760
+ // If the CAAPI project in GraphQL config has a codegen extension, use it.
202761
+ // Otherwise, check if the user provided a list of documents to scan for queries
202762
+ // before falling back to our default config for CAAPI.
202763
+ ...getCodegenFromGraphQLConfig(caapiProject) ?? (caapiProject?.documents ? {
202764
+ "customer-accountapi.generated.d.ts": {
202765
+ preset,
202766
+ schema: caapiSchema,
202767
+ documents: caapiProject.documents
202768
+ }
202769
+ } : {}),
202770
+ // Use other unknown codegen projects from the GraphQL config as they are.
202771
+ ...otherCodegenProjects.reduce(
202772
+ (acc, project) => ({ ...acc, ...getCodegenFromGraphQLConfig(project) }),
202773
+ {}
202774
+ )
202775
+ }
202776
+ }
202777
+ };
202778
+ }
202779
+ function getCodegenFromGraphQLConfig(project) {
202780
+ if (project?.extensions?.codegen?.generates)
202781
+ return Object.entries(
202782
+ project.extensions.codegen.generates
202783
+ ).reduce(
202784
+ (acc, [key, value]) => (acc[key] = { ...project, ...Array.isArray(value) ? value[0] : value }, acc),
202785
+ {}
202786
+ );
202787
+ }
202788
+ function findGqlProject(schemaFilepath, gqlConfig) {
202789
+ if (!gqlConfig) return;
202790
+ let schemaFilename = basename(schemaFilepath);
202791
+ return Object.values(gqlConfig.projects || {}).find(
202792
+ (project) => typeof project.schema == "string" && project.schema.endsWith(schemaFilename)
202793
+ );
202794
+ }
202795
+ async function addHooksToHydrogenOptions(codegenConfig, { rootDirectory }) {
202796
+ let name = Symbol.for("name"), hydrogenProjectsOptions = Object.values(codegenConfig.generates).filter(
202797
+ (value) => {
202798
+ let foundPreset = (Array.isArray(value) ? value[0] : value)?.preset;
202799
+ if (typeof foundPreset == "object" && name in foundPreset)
202800
+ return (
202801
+ // Preset from @shopify/hydrogen-codegen (e.g. SFAPI, CAAPI)
202802
+ foundPreset[name] === "hydrogen" || // Preset from @shopify/graphql-codegen (e.g. Admin API)
202803
+ foundPreset[name] === "@shopify/graphql-codegen"
202804
+ );
202805
+ }
202806
+ );
202807
+ for (let options of hydrogenProjectsOptions) {
202808
+ let hydrogenOptions = Array.isArray(options) ? options[0] : options;
202809
+ if (hydrogenOptions) {
202810
+ let formatConfig = await getCodeFormatOptions(rootDirectory);
202811
+ hydrogenOptions.hooks = {
202812
+ beforeOneFileWrite: (file, content) => formatCode(content, formatConfig, file),
202813
+ ...hydrogenOptions.hooks
202814
+ };
202815
+ }
202816
+ }
202817
+ }
202818
+
202819
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/is-ci.js
202820
+ init_cjs_shims();
202821
+ function isCI2() {
202822
+ let { env: env4 } = process;
202823
+ return env4.CI === "false" ? !1 : !!(env4.CI || env4.CI_NAME || env4.BUILD_NUMBER || env4.TF_BUILD);
202824
+ }
202825
+
202826
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/defer.js
202962
202827
  init_cjs_shims();
202963
202828
  function deferPromise() {
202964
202829
  let deferred = { state: "pending" };
@@ -202967,18 +202832,18 @@ function deferPromise() {
202967
202832
  }), deferred;
202968
202833
  }
202969
202834
 
202970
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/resource-cleanup.js
202835
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/resource-cleanup.js
202971
202836
  init_cjs_shims();
202972
202837
  function setupResourceCleanup(cleanup2) {
202973
202838
  let closingPromise, processExit = process.exit;
202974
202839
  process.exit = async (code) => {
202975
202840
  closingPromise ??= cleanup2();
202976
- let timeout = setTimeout(() => processExit(code), 5e3);
202977
- return await closingPromise, clearTimeout(timeout), processExit(code);
202841
+ let timeout2 = setTimeout(() => processExit(code), 5e3);
202842
+ return await closingPromise, clearTimeout(timeout2), processExit(code);
202978
202843
  };
202979
202844
  }
202980
202845
 
202981
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/build.js
202846
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/build.js
202982
202847
  var Build = class _Build extends base_command_default {
202983
202848
  static descriptionWithMarkdown = "Builds a Hydrogen storefront for production. The client and app worker files are compiled to a `/dist` folder in your Hydrogen project directory.";
202984
202849
  static description = "Builds a Hydrogen storefront for production.";
@@ -203008,12 +202873,15 @@ var Build = class _Build extends base_command_default {
203008
202873
  ...flagsToCamelObject(flags),
203009
202874
  useCodegen: flags.codegen,
203010
202875
  directory
203011
- }, result = await isViteProject(directory) ? await runBuild(buildParams) : await runClassicCompilerBuild(buildParams);
202876
+ };
202877
+ if (!await isViteProject(directory))
202878
+ throw new AbortError(REMIX_COMPILER_ERROR_MESSAGE);
202879
+ let result = await runBuild(buildParams);
203012
202880
  buildParams.watch ? (diff3 || result?.close) && setupResourceCleanup(async () => {
203013
202881
  await result?.close(), diff3 && (await diff3.copyDiffBuild(), flags.codegen && await diff3.copyDiffCodegen(), await diff3.cleanup());
203014
202882
  }) : (diff3 && (await diff3.copyDiffBuild(), flags.codegen && await diff3.copyDiffCodegen(), await diff3.cleanup()), process.exit(0));
203015
202883
  }
203016
- }, WORKER_BUILD_SIZE_LIMIT2 = 5;
202884
+ }, WORKER_BUILD_SIZE_LIMIT = 5;
203017
202885
  async function runBuild({
203018
202886
  entry: ssrEntry,
203019
202887
  directory,
@@ -203144,7 +203012,7 @@ async function runBuild({
203144
203012
  )}\n\n`
203145
203013
  );
203146
203014
  }
203147
- await fileSize(serverOutFile) / (1024 * 1024) >= WORKER_BUILD_SIZE_LIMIT2 && outputWarn(
203015
+ await fileSize(serverOutFile) / (1024 * 1024) >= WORKER_BUILD_SIZE_LIMIT && outputWarn(
203148
203016
  `\u{1F6A8} Smaller worker bundles are faster to deploy and run.${serverMinify ? "" : "\n Minify your bundle by adding `build.minify: true` to vite.config.js."}
203149
203017
  Learn more about optimizing your worker bundle file: https://h2o.fyi/debugging/bundle-size
203150
203018
  `
@@ -203173,7 +203041,7 @@ This build is missing ${missingRoutes.length} route${missingRoutes.length > 1 ?
203173
203041
  };
203174
203042
  }
203175
203043
 
203176
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/check.js
203044
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/check.js
203177
203045
  init_cjs_shims();
203178
203046
  var import_core21 = __toESM(require_lib(), 1), GenerateRoute = class _GenerateRoute extends base_command_default {
203179
203047
  static descriptionWithMarkdown = "Checks whether your Hydrogen app includes a set of standard Shopify routes.";
@@ -203202,7 +203070,7 @@ async function runCheckRoutes({ directory }) {
203202
203070
  logMissingRoutes(findMissingRoutes(remixConfig)), warnReservedRoutes(findReservedRoutes(remixConfig));
203203
203071
  }
203204
203072
 
203205
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/codegen.js
203073
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/codegen.js
203206
203074
  init_cjs_shims();
203207
203075
  var import_core22 = __toESM(require_lib(), 1);
203208
203076
  var Codegen = class _Codegen extends base_command_default {
@@ -203261,54 +203129,11 @@ async function runCodegen({
203261
203129
  });
203262
203130
  }
203263
203131
 
203264
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/debug/cpu.js
203132
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/debug/cpu.js
203265
203133
  init_cjs_shims();
203266
203134
  var import_core23 = __toESM(require_lib(), 1);
203267
203135
 
203268
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/classic-compiler/debug-cpu.js
203269
- init_cjs_shims();
203270
- async function runClassicCompilerDebugCpu({
203271
- directory,
203272
- hooks: hooks2
203273
- }) {
203274
- let [{ watch }, { createFileWatchCache }] = await Promise.all([
203275
- importLocal("@remix-run/dev/dist/compiler/watch.js", directory),
203276
- importLocal(
203277
- "@remix-run/dev/dist/compiler/fileWatchCache.js",
203278
- directory
203279
- )
203280
- ]).catch(handleRemixImportFail), fileWatchCache = createFileWatchCache(), closeWatcher = await watch(
203281
- {
203282
- config: await getRemixConfig(directory),
203283
- options: {
203284
- mode: process.env.NODE_ENV,
203285
- sourcemap: !0
203286
- },
203287
- fileWatchCache,
203288
- logger: createRemixLogger()
203289
- },
203290
- {
203291
- onBuildStart: hooks2.onServerBuildStart,
203292
- async onBuildFinish(context, duration, succeeded) {
203293
- succeeded ? await hooks2.onServerBuildFinish() : outputWarn(`
203294
- Build failed, waiting for changes to restart...`);
203295
- },
203296
- async onFileChanged(file) {
203297
- fileWatchCache.invalidateFile(file);
203298
- },
203299
- async onFileDeleted(file) {
203300
- fileWatchCache.invalidateFile(file);
203301
- }
203302
- }
203303
- );
203304
- return {
203305
- async close() {
203306
- await closeWatcher();
203307
- }
203308
- };
203309
- }
203310
-
203311
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/cpu-profiler.js
203136
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/cpu-profiler.js
203312
203137
  init_cjs_shims();
203313
203138
  import { Session } from "node:inspector";
203314
203139
  async function createCpuStartupProfiler(root) {
@@ -203386,7 +203211,7 @@ function silenceNode(node) {
203386
203211
  });
203387
203212
  }
203388
203213
 
203389
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/debug/cpu.js
203214
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/debug/cpu.js
203390
203215
  var DEFAULT_OUTPUT_PATH = "startup.cpuprofile", DebugCpu = class _DebugCpu extends base_command_default {
203391
203216
  static descriptionWithMarkdown = "Builds the app and runs the resulting code to profile the server startup time, watching for changes. This command can be used to [debug slow app startup times](https://shopify.dev/docs/custom-storefronts/hydrogen/debugging/cpu-startup) that cause failed deployments in Oxygen.\n\n The profiling results are written to a `.cpuprofile` file that can be viewed with certain tools such as [Flame Chart Visualizer for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-js-profile-flame).";
203392
203217
  static description = "Builds and profiles the server startup time the app.";
@@ -203436,12 +203261,7 @@ Waiting for changes...`);
203436
203261
  }
203437
203262
  };
203438
203263
  if (await isClassicProject(directory))
203439
- return runClassicCompilerDebugCpu({
203440
- directory,
203441
- output,
203442
- buildPathWorkerFile,
203443
- hooks: hooks2
203444
- });
203264
+ throw new AbortError(REMIX_COMPILER_ERROR_MESSAGE);
203445
203265
  let maybeViteConfig = await getViteConfig(directory).catch(() => null);
203446
203266
  buildPathWorkerFile = maybeViteConfig?.serverOutFile ?? joinPath(buildPath, "server", "index.js"), sourceEntrypoint = maybeViteConfig?.remixConfig.serverEntryPoint ?? "";
203447
203267
  let buildProcess = await runBuild({
@@ -203464,7 +203284,7 @@ Waiting for changes...`);
203464
203284
  };
203465
203285
  }
203466
203286
 
203467
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/deploy.js
203287
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/deploy.js
203468
203288
  init_cjs_shims();
203469
203289
  var import_core24 = __toESM(require_lib(), 1);
203470
203290
 
@@ -204058,7 +203878,7 @@ async function uploadFile(config2, target, agent) {
204058
203878
  }
204059
203879
  async function formUpload(form, target, agent, attemptNumber = 0) {
204060
203880
  try {
204061
- let controller = new AbortController(), timeout = setTimeout(() => {
203881
+ let controller = new AbortController(), timeout2 = setTimeout(() => {
204062
203882
  controller.abort();
204063
203883
  }, 12e4), response = await fetch2(target.uploadUrl, {
204064
203884
  method: "POST",
@@ -204069,7 +203889,7 @@ async function formUpload(form, target, agent, attemptNumber = 0) {
204069
203889
  },
204070
203890
  agent
204071
203891
  });
204072
- if (clearTimeout(timeout), !response.ok)
203892
+ if (clearTimeout(timeout2), !response.ok)
204073
203893
  throw new Error(`${response.status}`);
204074
203894
  } catch (err2) {
204075
203895
  if (isErrorCode(err2, "ENOENT"))
@@ -204469,16 +204289,16 @@ The deployment can be reached at the ${completedDeployment.url} preview URL`;
204469
204289
  }
204470
204290
  }
204471
204291
 
204472
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/deploy.js
204292
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/deploy.js
204473
204293
  import { createRequire } from "node:module";
204474
204294
 
204475
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/get-oxygen-deployment-data.js
204295
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/get-oxygen-deployment-data.js
204476
204296
  init_cjs_shims();
204477
204297
 
204478
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/render-errors.js
204298
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/render-errors.js
204479
204299
  init_cjs_shims();
204480
204300
 
204481
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/admin-urls.js
204301
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/admin-urls.js
204482
204302
  init_cjs_shims();
204483
204303
  function newHydrogenStorefrontUrl(session) {
204484
204304
  let { storeFqdn } = session;
@@ -204489,7 +204309,7 @@ function hydrogenStorefrontsUrl(session) {
204489
204309
  return `https://${storeFqdn}/admin/custom_storefronts`;
204490
204310
  }
204491
204311
 
204492
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/render-errors.js
204312
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/render-errors.js
204493
204313
  function renderMissingStorefront({
204494
204314
  session,
204495
204315
  storefront,
@@ -204531,7 +204351,7 @@ function renderMissingLink({ noStorefronts = !1 }) {
204531
204351
  });
204532
204352
  }
204533
204353
 
204534
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/get-oxygen-data.js
204354
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/get-oxygen-data.js
204535
204355
  init_cjs_shims();
204536
204356
  var GetDeploymentDataQuery = `#graphql
204537
204357
  query GetDeploymentToken($id: ID!) {
@@ -204557,7 +204377,7 @@ async function getOxygenData(adminSession, storefrontId) {
204557
204377
  return { storefront: hydrogenStorefront };
204558
204378
  }
204559
204379
 
204560
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/verify-linked-storefront.js
204380
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/verify-linked-storefront.js
204561
204381
  init_cjs_shims();
204562
204382
  async function verifyLinkedStorefront({
204563
204383
  root,
@@ -204573,7 +204393,7 @@ async function verifyLinkedStorefront({
204573
204393
  }));
204574
204394
  }
204575
204395
 
204576
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/get-oxygen-deployment-data.js
204396
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/get-oxygen-deployment-data.js
204577
204397
  async function getOxygenDeploymentData({
204578
204398
  root
204579
204399
  }) {
@@ -204604,7 +204424,7 @@ async function getOxygenDeploymentData({
204604
204424
  return storefront;
204605
204425
  }
204606
204426
 
204607
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/deploy.js
204427
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/deploy.js
204608
204428
  var DEPLOY_OUTPUT_FILE_HANDLE = "h2_deploy_log.json", deploymentLogger = (message, level = "info") => {
204609
204429
  (level === "error" || level === "warn") && outputWarn(message);
204610
204430
  }, Deploy = class _Deploy extends base_command_default {
@@ -204938,9 +204758,11 @@ Continue?`.value
204938
204758
  }
204939
204759
  };
204940
204760
  buildCommand ? config2.buildCommand = buildCommand : hooks2.buildFunction = async (assetPath) => {
204941
- outputInfo(
204761
+ if (outputInfo(
204942
204762
  outputContent`${source_default.whiteBright("Building project...")}`.value
204943
- ), await (isClassicCompiler ? runClassicCompilerBuild : runBuild)({
204763
+ ), isClassicCompiler)
204764
+ throw new AbortError(REMIX_COMPILER_ERROR_MESSAGE);
204765
+ await runBuild({
204944
204766
  directory: root,
204945
204767
  assetPath,
204946
204768
  lockfileCheck,
@@ -205006,11 +204828,11 @@ async function getHydrogenVersion({ appPath }) {
205006
204828
  return version;
205007
204829
  }
205008
204830
 
205009
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/dev.js
204831
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/dev.js
205010
204832
  init_cjs_shims();
205011
204833
  var import_core26 = __toESM(require_lib(), 1);
205012
204834
 
205013
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/upgrade.js
204835
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/upgrade.js
205014
204836
  init_cjs_shims();
205015
204837
  var import_semver = __toESM(require_semver3(), 1);
205016
204838
  import { createRequire as createRequire2 } from "node:module";
@@ -205125,7 +204947,7 @@ function cliTruncate(text, columns2, options = {}) {
205125
204947
  throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${position}`);
205126
204948
  }
205127
204949
 
205128
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/upgrade.js
204950
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/upgrade.js
205129
204951
  var import_core25 = __toESM(require_lib(), 1);
205130
204952
  var INSTRUCTIONS_FOLDER = ".hydrogen", Upgrade2 = class _Upgrade extends base_command_default {
205131
204953
  static descriptionWithMarkdown = "Upgrade Hydrogen project dependencies, preview features, fixes and breaking changes. The command also generates an instruction file for each upgrade.";
@@ -205249,10 +205071,22 @@ async function getHydrogenVersion2({ appPath }) {
205249
205071
  }
205250
205072
  async function getChangelog() {
205251
205073
  if (CACHED_CHANGELOG) return CACHED_CHANGELOG;
205252
- if (isHydrogenMonorepo && hydrogenPackagesPath && process.env.FORCE_CHANGELOG_SOURCE !== "remote")
205253
- return createRequire2(import.meta.url)(
205254
- joinPath(dirname(hydrogenPackagesPath), "docs", "changelog.json")
205255
- );
205074
+ if (process.env.FORCE_CHANGELOG_SOURCE === "local" || isHydrogenMonorepo && hydrogenPackagesPath && process.env.FORCE_CHANGELOG_SOURCE !== "remote") {
205075
+ let require22 = createRequire2(import.meta.url), localChangelogPath = isHydrogenMonorepo && hydrogenPackagesPath ? joinPath(dirname(hydrogenPackagesPath), "docs", "changelog.json") : joinPath(process.cwd(), "docs", "changelog.json");
205076
+ try {
205077
+ let changelog = require22(localChangelogPath);
205078
+ return CACHED_CHANGELOG = changelog, changelog;
205079
+ } catch (error) {
205080
+ if (console.warn(
205081
+ `Failed to load local changelog from ${localChangelogPath}:`,
205082
+ error.message
205083
+ ), process.env.FORCE_CHANGELOG_SOURCE === "local")
205084
+ throw new AbortError(
205085
+ "Failed to load local changelog",
205086
+ `Could not read changelog from ${localChangelogPath}`
205087
+ );
205088
+ }
205089
+ }
205256
205090
  try {
205257
205091
  let response = await fetch2("https://hydrogen.shopify.dev/changelog.json");
205258
205092
  if (!response.ok)
@@ -205365,13 +205199,16 @@ function displayConfirmation({
205365
205199
  function isRemixDependency([name]) {
205366
205200
  return !!name.includes("@remix-run");
205367
205201
  }
205202
+ function isReactRouterDependency([name]) {
205203
+ return !!name.includes("react-router");
205204
+ }
205368
205205
  function maybeIncludeDependency({
205369
205206
  currentDependencies,
205370
205207
  dependency: [name, version],
205371
205208
  selectedRelease
205372
205209
  }) {
205373
205210
  let existingDependencyVersion = currentDependencies[name];
205374
- return isRemixDependency([name, version]) || existingDependencyVersion === "next" ? !1 : selectedRelease.dependenciesMeta?.[name] ? !selectedRelease.dependenciesMeta?.[name]?.required ? !1 : !!(!existingDependencyVersion || import_semver.default.lt(
205211
+ return isRemixDependency([name, version]) || isReactRouterDependency([name, version]) || existingDependencyVersion === "next" ? !1 : selectedRelease.dependenciesMeta?.[name] ? !selectedRelease.dependenciesMeta?.[name]?.required ? !1 : !!(!existingDependencyVersion || import_semver.default.lt(
205375
205212
  getAbsoluteVersion(existingDependencyVersion),
205376
205213
  getAbsoluteVersion(version)
205377
205214
  )) : !0;
@@ -205396,11 +205233,25 @@ function buildUpgradeCommandArgs({
205396
205233
  let currentRemix = Object.entries(currentDependencies).find(isRemixDependency), selectedRemix = Object.entries(selectedRelease.dependencies).find(
205397
205234
  isRemixDependency
205398
205235
  );
205399
- return currentRemix && selectedRemix && import_semver.default.lt(
205236
+ currentRemix && selectedRemix && import_semver.default.lt(
205400
205237
  getAbsoluteVersion(currentRemix[1]),
205401
205238
  getAbsoluteVersion(selectedRemix[1])
205402
205239
  ) && args.push(
205403
205240
  ...appendRemixDependencies({ currentDependencies, selectedRemix })
205241
+ );
205242
+ let currentReactRouter = Object.entries(currentDependencies).find(
205243
+ isReactRouterDependency
205244
+ ), selectedReactRouter = Object.entries(selectedRelease.dependencies).find(
205245
+ isReactRouterDependency
205246
+ );
205247
+ return selectedReactRouter && (!currentReactRouter || import_semver.default.lt(
205248
+ getAbsoluteVersion(currentReactRouter[1]),
205249
+ getAbsoluteVersion(selectedReactRouter[1])
205250
+ )) && args.push(
205251
+ ...appendReactRouterDependencies({
205252
+ currentDependencies,
205253
+ selectedReactRouter
205254
+ })
205404
205255
  ), args;
205405
205256
  }
205406
205257
  async function upgradeNodeModules({
@@ -205408,24 +205259,42 @@ async function upgradeNodeModules({
205408
205259
  selectedRelease,
205409
205260
  currentDependencies
205410
205261
  }) {
205411
- await renderTasks(
205412
- [
205413
- {
205414
- title: "Upgrading dependencies",
205415
- task: async () => {
205416
- await installNodeModules({
205417
- directory: appPath,
205418
- packageManager: await getPackageManager(appPath),
205419
- args: buildUpgradeCommandArgs({
205420
- selectedRelease,
205421
- currentDependencies
205422
- })
205423
- });
205424
- }
205425
- }
205426
- ],
205427
- {}
205428
- );
205262
+ let tasks = [], depsToRemove = [
205263
+ ...selectedRelease.removeDependencies || [],
205264
+ ...selectedRelease.removeDevDependencies || []
205265
+ ].filter((dep) => dep in currentDependencies);
205266
+ depsToRemove.length > 0 && tasks.push({
205267
+ title: "Removing deprecated dependencies",
205268
+ task: async () => {
205269
+ await uninstallNodeModules({
205270
+ directory: appPath,
205271
+ packageManager: await getPackageManager(appPath),
205272
+ args: depsToRemove
205273
+ });
205274
+ }
205275
+ });
205276
+ let upgradeArgs = buildUpgradeCommandArgs({
205277
+ selectedRelease,
205278
+ currentDependencies
205279
+ });
205280
+ upgradeArgs.length > 0 && tasks.push({
205281
+ title: "Upgrading dependencies",
205282
+ task: async () => {
205283
+ await installNodeModules({
205284
+ directory: appPath,
205285
+ packageManager: await getPackageManager(appPath),
205286
+ args: upgradeArgs
205287
+ });
205288
+ }
205289
+ }), tasks.length > 0 && await renderTasks(tasks, {});
205290
+ }
205291
+ async function uninstallNodeModules({
205292
+ directory,
205293
+ packageManager,
205294
+ args
205295
+ }) {
205296
+ if (args.length === 0) return;
205297
+ await exec(packageManager === "unknown" ? "npm" : packageManager, [packageManager === "npm" ? "uninstall" : packageManager === "yarn" || packageManager === "pnpm" || packageManager === "bun" ? "remove" : "uninstall", ...args], { cwd: directory });
205429
205298
  }
205430
205299
  function appendRemixDependencies({
205431
205300
  currentDependencies,
@@ -205436,6 +205305,20 @@ function appendRemixDependencies({
205436
205305
  isRemixDependency([name, version]) && command.push(`${name}@${getAbsoluteVersion(selectedRemix[1])}`);
205437
205306
  return command;
205438
205307
  }
205308
+ function appendReactRouterDependencies({
205309
+ currentDependencies,
205310
+ selectedReactRouter
205311
+ }) {
205312
+ let command = [], targetVersion = getAbsoluteVersion(selectedReactRouter[1]), reactRouterPackages = [
205313
+ "react-router",
205314
+ "react-router-dom",
205315
+ "@react-router/dev",
205316
+ "@react-router/fs-routes"
205317
+ ];
205318
+ for (let packageName of reactRouterPackages)
205319
+ command.push(`${packageName}@${targetVersion}`);
205320
+ return command;
205321
+ }
205439
205322
  function getAbsoluteVersion(version) {
205440
205323
  let result = import_semver.default.minVersion(version);
205441
205324
  if (!result)
@@ -205690,308 +205573,106 @@ async function displayDevUpgradeNotice({
205690
205573
  }
205691
205574
  }
205692
205575
 
205693
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/classic-compiler/dev.js
205576
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
205694
205577
  init_cjs_shims();
205695
- import fs4 from "node:fs/promises";
205696
-
205697
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/mini-oxygen/index.js
205698
- init_cjs_shims();
205699
- async function buildAssetsUrl(port, root) {
205700
- let { buildAssetsUrl: _buildAssetsUrl } = await importLocal(
205701
- "@shopify/mini-oxygen",
205702
- root
205703
- ).catch(handleMiniOxygenImportFail);
205704
- return _buildAssetsUrl(port);
205705
- }
205706
- async function startMiniOxygen(options, useNodeRuntime = !1) {
205707
- if (useNodeRuntime) {
205708
- process.env.MINIFLARE_SUBREQUEST_LIMIT = 100;
205709
- let { startNodeServer } = await import("./node-NAYZANSZ.js");
205710
- return startNodeServer(options);
205711
- }
205712
- let { startWorkerdServer } = await import("./workerd-XLT4ZWI5.js");
205713
- return startWorkerdServer(options);
205714
- }
205715
205578
 
205716
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/virtual-routes.js
205579
+ // ../../node_modules/.pnpm/get-port@7.1.0/node_modules/get-port/index.js
205717
205580
  init_cjs_shims();
205718
- var VIRTUAL_ROUTES_DIR = "virtual-routes/routes", VIRTUAL_ROOT = "virtual-routes/virtual-root";
205719
- async function addVirtualRoutes(config2) {
205720
- let distPath = process.env.SHOPIFY_UNIT_TEST && hydrogenPackagesPath ? joinPath(hydrogenPackagesPath, "hydrogen", "src", "vite") : await getAssetsDir(), userRouteList = Object.values(config2.routes), virtualRoutesPath = joinPath(distPath, VIRTUAL_ROUTES_DIR);
205721
- for (let absoluteFilePath of await glob(
205722
- joinPath(virtualRoutesPath, "**", "*")
205723
- )) {
205724
- let routePath = relativePath(virtualRoutesPath, absoluteFilePath).replace(/\.[jt]sx?$/, "").replaceAll("\\", "/"), isIndex = /(^|\/)index$/.test(routePath), normalizedVirtualRoutePath = isIndex ? routePath.slice(0, -5).replace(/\/$/, "") || void 0 : (
205725
- // TODO: support v2 flat routes?
205726
- routePath.replace(/\$/g, ":").replace(/[\[\]]/g, "")
205727
- );
205728
- if (!userRouteList.some(
205729
- (r3) => r3.parentId === "root" && r3.path === normalizedVirtualRoutePath
205730
- )) {
205731
- let id = VIRTUAL_ROUTES_DIR + "/" + routePath;
205732
- config2.routes[id] = {
205733
- id,
205734
- parentId: VIRTUAL_ROOT,
205735
- path: normalizedVirtualRoutePath,
205736
- index: isIndex || void 0,
205737
- caseSensitive: void 0,
205738
- file: relativePath(config2.appDirectory, absoluteFilePath)
205739
- }, config2.routes[VIRTUAL_ROOT] || (config2.routes[VIRTUAL_ROOT] = {
205740
- id: VIRTUAL_ROOT,
205741
- path: "",
205742
- file: relativePath(
205743
- config2.appDirectory,
205744
- joinPath(distPath, VIRTUAL_ROOT + ".jsx")
205745
- )
205746
- });
205581
+ import net from "node:net";
205582
+ import os from "node:os";
205583
+ var Locked = class extends Error {
205584
+ constructor(port) {
205585
+ super(`${port} is locked`);
205586
+ }
205587
+ }, lockedPorts = {
205588
+ old: /* @__PURE__ */ new Set(),
205589
+ young: /* @__PURE__ */ new Set()
205590
+ }, releaseOldLockedPortsIntervalMs = 1e3 * 15, minPort = 1024, maxPort = 65535, timeout, getLocalHosts = () => {
205591
+ let interfaces = os.networkInterfaces(), results = /* @__PURE__ */ new Set([void 0, "0.0.0.0"]);
205592
+ for (let _interface of Object.values(interfaces))
205593
+ for (let config2 of _interface)
205594
+ results.add(config2.address);
205595
+ return results;
205596
+ }, checkAvailablePort = (options) => new Promise((resolve2, reject) => {
205597
+ let server = net.createServer();
205598
+ server.unref(), server.on("error", reject), server.listen(options, () => {
205599
+ let { port } = server.address();
205600
+ server.close(() => {
205601
+ resolve2(port);
205602
+ });
205603
+ });
205604
+ }), getAvailablePort = async (options, hosts) => {
205605
+ if (options.host || options.port === 0)
205606
+ return checkAvailablePort(options);
205607
+ for (let host2 of hosts)
205608
+ try {
205609
+ await checkAvailablePort({ port: options.port, host: host2 });
205610
+ } catch (error) {
205611
+ if (!["EADDRNOTAVAIL", "EINVAL"].includes(error.code))
205612
+ throw error;
205747
205613
  }
205748
- }
205749
- return config2;
205750
- }
205751
-
205752
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/live-reload.js
205753
- init_cjs_shims();
205754
- import http from "node:http";
205755
- async function setupLiveReload(devServerPort, root) {
205756
- try {
205757
- let [{ updates: hmrUpdates }, { serve }, { detectLoaderChanges }, { ok: ok2, err: err2 }] = await Promise.all([
205758
- importLocal(
205759
- "@remix-run/dev/dist/devServer_unstable/hmr.js",
205760
- root
205761
- ),
205762
- importLocal(
205763
- "@remix-run/dev/dist/devServer_unstable/socket.js",
205764
- root
205765
- ),
205766
- importLocal(
205767
- "@remix-run/dev/dist/devServer_unstable/hdr.js",
205768
- root
205769
- ),
205770
- importLocal("@remix-run/dev/dist/result.js", root)
205771
- ]).catch(handleRemixImportFail), state = {}, server = http.createServer(function(req, res) {
205772
- res.writeHead(200), res.end();
205773
- }).listen(devServerPort), socket = serve(server);
205774
- return {
205775
- onBuildStart: (ctx) => {
205776
- state.loaderChanges = detectLoaderChanges(ctx).then(ok2, err2);
205777
- },
205778
- onBuildManifest: (manifest) => {
205779
- state.manifest = manifest;
205780
- },
205781
- onAppReady: async (ctx) => {
205782
- let nextState = { prevManifest: state.manifest };
205783
- try {
205784
- let loaderChanges = await state.loaderChanges;
205785
- loaderChanges.ok && (nextState.prevLoaderHashes = loaderChanges.value), loaderChanges.ok && state.manifest && state.prevManifest ? socket.hmr(
205786
- state.manifest,
205787
- hmrUpdates(
205788
- ctx.config,
205789
- state.manifest,
205790
- state.prevManifest,
205791
- loaderChanges.value,
205792
- state.prevLoaderHashes
205793
- )
205794
- ) : state.prevManifest && socket.reload();
205795
- } finally {
205796
- Object.assign(state, nextState);
205797
- }
205798
- },
205799
- close: () => {
205800
- socket.close(), server.close();
205801
- }
205802
- };
205803
- } catch (error) {
205804
- console.warn(
205805
- "Could not start HMR server. Please make sure your Remix packages are in sync with Hydrogen. Defaulting to regular live reload.",
205806
- error.stack
205807
- );
205808
- }
205809
- }
205810
-
205811
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/classic-compiler/dev.js
205812
- var LOG_REBUILDING = "\u{1F9F1} Rebuilding...", LOG_REBUILT = "\u{1F680} Rebuilt";
205813
- function filterOutVirtualRoutes(config2) {
205814
- let routes = {};
205815
- return Object.entries(config2.routes).forEach(([key, value]) => {
205816
- key.includes("virtual-routes") || (routes[key] = value);
205817
- }), {
205818
- ...config2,
205819
- routes
205820
- };
205821
- }
205822
- async function runClassicCompilerDev({
205823
- port: appPort2,
205824
- path: appPath,
205825
- codegen: useCodegen = !1,
205826
- legacyRuntime = !1,
205827
- codegenConfigPath,
205828
- disableVirtualRoutes,
205829
- env: envHandle,
205830
- envBranch,
205831
- debug: debug4 = !1,
205832
- sourcemap = !0,
205833
- disableVersionCheck = !1,
205834
- inspectorPort,
205835
- customerAccountPush: customerAccountPushFlag = !1,
205836
- shouldLiveReload = !0,
205837
- envFile,
205838
- cliConfig,
205839
- verbose
205840
- }) {
205841
- process.env.NODE_ENV || (process.env.NODE_ENV = "development"), verbose && setH2OVerbose(), isH2Verbose() || muteDevLogs();
205842
- let { root, publicPath, buildPathClient, buildPathWorkerFile } = getProjectPaths(appPath), copyFilesPromise = copyPublicFiles(publicPath, buildPathClient), cliCommandPromise = getCliCommand(root), reloadConfig = async () => {
205843
- let config2 = await getRemixConfig(root);
205844
- return disableVirtualRoutes ? filterOutVirtualRoutes(config2) : addVirtualRoutes(config2).catch((error) => (outputDebug(
205845
- "Could not add virtual routes: " + (error?.stack ?? error?.message ?? error)
205846
- ), config2));
205847
- }, getFilePaths = (file) => {
205848
- let fileRelative = relativePath(root, file);
205849
- return [fileRelative, resolvePath(root, fileRelative)];
205850
- }, serverBundleExists = () => fileExists(buildPathWorkerFile);
205851
- appPort2 || (appPort2 = await findPort(DEFAULT_APP_PORT));
205852
- let assetsPort = legacyRuntime ? 0 : await findPort(appPort2 + 100);
205853
- assetsPort && (process.env.HYDROGEN_ASSET_BASE_URL = await buildAssetsUrl(
205854
- assetsPort,
205855
- root
205856
- ));
205857
- let backgroundPromise = getDevConfigInBackground(
205858
- root,
205859
- customerAccountPushFlag,
205860
- envFile
205861
- ), tunnelPromise = cliConfig && backgroundPromise.then(({ customerAccountPush, storefrontId }) => {
205862
- if (customerAccountPush)
205863
- return startTunnelAndPushConfig(
205864
- root,
205865
- cliConfig,
205866
- appPort2,
205867
- storefrontId
205868
- );
205869
- }), remixConfig = await reloadConfig();
205870
- assertOxygenChecks(remixConfig);
205871
- let envPromise = backgroundPromise.then(
205872
- ({ fetchRemote, localVariables }) => getAllEnvironmentVariables({
205873
- root,
205874
- fetchRemote,
205875
- envBranch,
205876
- envHandle,
205877
- localVariables,
205878
- envFile
205879
- })
205880
- ), [{ watch }, { createFileWatchCache }] = await Promise.all([
205881
- importLocal("@remix-run/dev/dist/compiler/watch.js", root),
205882
- importLocal(
205883
- "@remix-run/dev/dist/compiler/fileWatchCache.js",
205884
- root
205885
- )
205886
- ]).catch(handleRemixImportFail), isInitialBuild = !0, initialBuildDurationMs = 0, initialBuildStartTimeMs = Date.now(), liveReload = shouldLiveReload ? await setupLiveReload(remixConfig.dev?.port ?? 8002, root) : void 0, miniOxygen, codegenProcess;
205887
- async function safeStartMiniOxygen() {
205888
- if (miniOxygen) return;
205889
- let { allVariables, logInjectedVariables } = await envPromise;
205890
- miniOxygen = await startMiniOxygen(
205891
- {
205892
- root,
205893
- debug: debug4,
205894
- appPort: appPort2,
205895
- assetsPort,
205896
- inspectorPort,
205897
- watch: !liveReload,
205898
- buildPathWorkerFile,
205899
- buildPathClient,
205900
- env: allVariables
205901
- },
205902
- legacyRuntime
205903
- ), logInjectedVariables();
205904
- let host2 = (await tunnelPromise)?.host ?? miniOxygen.listeningAt, cliCommand = await cliCommandPromise;
205905
- enhanceH2Logs({ host: host2, cliCommand, ...remixConfig });
205906
- let { storefrontTitle } = await backgroundPromise;
205907
- miniOxygen.showBanner({
205908
- appName: storefrontTitle,
205909
- headlinePrefix: initialBuildDurationMs > 0 ? `Initial build: ${initialBuildDurationMs}ms
205910
- ` : "",
205911
- host: host2
205912
- }), useCodegen && (codegenProcess = spawnCodegenProcess({
205913
- ...remixConfig,
205914
- configFilePath: codegenConfigPath
205915
- })), checkRemixVersions(root), disableVersionCheck || displayDevUpgradeNotice({ targetPath: appPath }), customerAccountPushFlag && isMockShop(allVariables) && notifyIssueWithTunnelAndMockShop(cliCommand);
205916
- }
205917
- let fileWatchCache = createFileWatchCache(), skipRebuildLogs = !1, closeWatcher = await watch(
205918
- {
205919
- config: remixConfig,
205920
- options: {
205921
- mode: process.env.NODE_ENV,
205922
- sourcemap
205923
- },
205924
- fileWatchCache,
205925
- logger: createRemixLogger()
205926
- },
205927
- {
205928
- reloadConfig,
205929
- onBuildStart(ctx) {
205930
- !isInitialBuild && !skipRebuildLogs && (outputInfo(LOG_REBUILDING), console.time(LOG_REBUILT)), liveReload?.onBuildStart(ctx);
205931
- },
205932
- onBuildManifest: liveReload?.onBuildManifest,
205933
- async onBuildFinish(context, duration, succeeded) {
205934
- if (isInitialBuild ? (await copyFilesPromise, initialBuildDurationMs = Date.now() - initialBuildStartTimeMs, isInitialBuild = !1) : skipRebuildLogs || (skipRebuildLogs = !1, console.timeEnd(LOG_REBUILT), miniOxygen || console.log("")), !miniOxygen && !await serverBundleExists())
205935
- return renderFatalError({
205936
- name: "BuildError",
205937
- type: 0,
205938
- message: "MiniOxygen cannot start because the server bundle has not been generated.",
205939
- skipOclifErrorHandling: !0,
205940
- tryMessage: "This is likely due to an error in your app and Remix is unable to compile. Try fixing the app and MiniOxygen will start."
205941
- });
205942
- succeeded && (miniOxygen ? liveReload && await miniOxygen.reload() : await safeStartMiniOxygen(), liveReload?.onAppReady(context));
205943
- },
205944
- async onFileCreated(file) {
205945
- let [relative, absolute] = getFilePaths(file);
205946
- outputInfo(`
205947
- \u{1F4C4} File created: ${relative}`), absolute.startsWith(publicPath) && await copyPublicFiles(
205948
- absolute,
205949
- absolute.replace(publicPath, buildPathClient)
205950
- );
205951
- },
205952
- async onFileChanged(file) {
205953
- fileWatchCache.invalidateFile(file);
205954
- let [relative, absolute] = getFilePaths(file);
205955
- if (outputInfo(`
205956
- \u{1F4C4} File changed: ${relative}`), relative.endsWith(envFile)) {
205957
- skipRebuildLogs = !0;
205958
- let { fetchRemote } = await backgroundPromise, { allVariables, logInjectedVariables } = await getAllEnvironmentVariables({
205959
- root,
205960
- fetchRemote,
205961
- envBranch,
205962
- envHandle,
205963
- envFile
205964
- });
205965
- logInjectedVariables(), await miniOxygen.reload({
205966
- env: allVariables
205967
- });
205968
- }
205969
- absolute.startsWith(publicPath) && await copyPublicFiles(
205970
- absolute,
205971
- absolute.replace(publicPath, buildPathClient)
205972
- );
205973
- },
205974
- async onFileDeleted(file) {
205975
- fileWatchCache.invalidateFile(file);
205976
- let [relative, absolute] = getFilePaths(file);
205977
- outputInfo(`
205978
- \u{1F4C4} File deleted: ${relative}`), absolute.startsWith(publicPath) && await fs4.unlink(absolute.replace(publicPath, buildPathClient));
205614
+ return options.port;
205615
+ }, portCheckSequence = function* (ports2) {
205616
+ ports2 && (yield* ports2), yield 0;
205617
+ };
205618
+ async function getPorts(options) {
205619
+ let ports2, exclude = /* @__PURE__ */ new Set();
205620
+ if (options && (options.port && (ports2 = typeof options.port == "number" ? [options.port] : options.port), options.exclude)) {
205621
+ let excludeIterable = options.exclude;
205622
+ if (typeof excludeIterable[Symbol.iterator] != "function")
205623
+ throw new TypeError("The `exclude` option must be an iterable.");
205624
+ for (let element of excludeIterable) {
205625
+ if (typeof element != "number")
205626
+ throw new TypeError("Each item in the `exclude` option must be a number corresponding to the port you want excluded.");
205627
+ if (!Number.isSafeInteger(element))
205628
+ throw new TypeError(`Number ${element} in the exclude option is not a safe integer and can't be used`);
205629
+ }
205630
+ exclude = new Set(excludeIterable);
205631
+ }
205632
+ timeout === void 0 && (timeout = setTimeout(() => {
205633
+ timeout = void 0, lockedPorts.old = lockedPorts.young, lockedPorts.young = /* @__PURE__ */ new Set();
205634
+ }, releaseOldLockedPortsIntervalMs), timeout.unref && timeout.unref());
205635
+ let hosts = getLocalHosts();
205636
+ for (let port of portCheckSequence(ports2))
205637
+ try {
205638
+ if (exclude.has(port))
205639
+ continue;
205640
+ let availablePort = await getAvailablePort({ ...options, port }, hosts);
205641
+ for (; lockedPorts.old.has(availablePort) || lockedPorts.young.has(availablePort); ) {
205642
+ if (port !== 0)
205643
+ throw new Locked(port);
205644
+ availablePort = await getAvailablePort({ ...options, port }, hosts);
205979
205645
  }
205646
+ return lockedPorts.young.add(availablePort), availablePort;
205647
+ } catch (error) {
205648
+ if (!["EADDRINUSE", "EACCES"].includes(error.code) && !(error instanceof Locked))
205649
+ throw error;
205980
205650
  }
205981
- );
205982
- return {
205983
- getUrl: () => miniOxygen.listeningAt,
205984
- async close() {
205985
- codegenProcess?.removeAllListeners("close"), codegenProcess?.kill("SIGINT"), await Promise.allSettled([
205986
- closeWatcher(),
205987
- miniOxygen?.close(),
205988
- Promise.resolve(tunnelPromise).then((tunnel) => tunnel?.cleanup?.())
205989
- ]);
205990
- }
205991
- };
205651
+ throw new Error("No available ports found");
205652
+ }
205653
+ function portNumbers(from, to) {
205654
+ if (!Number.isInteger(from) || !Number.isInteger(to))
205655
+ throw new TypeError("`from` and `to` must be integer numbers");
205656
+ if (from < minPort || from > maxPort)
205657
+ throw new RangeError(`'from' must be between ${minPort} and ${maxPort}`);
205658
+ if (to < minPort || to > maxPort)
205659
+ throw new RangeError(`'to' must be between ${minPort} and ${maxPort}`);
205660
+ if (from > to)
205661
+ throw new RangeError("`to` must be greater than or equal to `from`");
205662
+ return function* (from2, to2) {
205663
+ for (let port = from2; port <= to2; port++)
205664
+ yield port;
205665
+ }(from, to);
205666
+ }
205667
+
205668
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/find-port.js
205669
+ function findPort(portPreference, range = 100) {
205670
+ return getPorts({
205671
+ port: portNumbers(portPreference, portPreference + range)
205672
+ });
205992
205673
  }
205993
205674
 
205994
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/deps-optimizer.js
205675
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/deps-optimizer.js
205995
205676
  init_cjs_shims();
205996
205677
  var throttledOptimizableDeps = /* @__PURE__ */ new Set(), debouncedBannerTimeout;
205997
205678
  function createEntryPointErrorHandler({
@@ -206119,7 +205800,7 @@ ${source_default.dim(
206119
205800
  });
206120
205801
  }
206121
205802
 
206122
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/dev.js
205803
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/dev.js
206123
205804
  var Dev2 = class _Dev extends base_command_default {
206124
205805
  static descriptionWithMarkdown = `Runs a Hydrogen storefront in a local runtime that emulates an Oxygen worker for development.
206125
205806
 
@@ -206159,17 +205840,6 @@ var Dev2 = class _Dev extends base_command_default {
206159
205840
  description: "Disable adding dependencies to Vite's `ssr.optimizeDeps.include` automatically",
206160
205841
  env: "SHOPIFY_HYDROGEN_FLAG_DISABLE_DEPS_OPTIMIZER",
206161
205842
  default: !1
206162
- }),
206163
- // For the classic compiler:
206164
- ...overrideFlag(commonFlags.legacyRuntime, {
206165
- "legacy-runtime": {
206166
- description: "[Classic Remix Compiler] " + commonFlags.legacyRuntime["legacy-runtime"].description
206167
- }
206168
- }),
206169
- ...overrideFlag(commonFlags.sourcemap, {
206170
- sourcemap: {
206171
- description: "[Classic Remix Compiler] " + commonFlags.sourcemap.sourcemap.description
206172
- }
206173
205843
  })
206174
205844
  };
206175
205845
  async run() {
@@ -206178,7 +205848,10 @@ var Dev2 = class _Dev extends base_command_default {
206178
205848
  customerAccountPush: flags["customer-account-push__unstable"],
206179
205849
  path: directory,
206180
205850
  cliConfig: this.config
206181
- }, { close } = await isViteProject(directory) ? await runDev(devParams) : await runClassicCompilerDev(devParams);
205851
+ };
205852
+ if (!await isViteProject(directory))
205853
+ throw new AbortError(REMIX_COMPILER_ERROR_MESSAGE);
205854
+ let { close } = await runDev(devParams);
206182
205855
  setupResourceCleanup(async () => {
206183
205856
  await close(), diff3 && (await diff3.copyShopifyConfig(), await diff3.cleanup());
206184
205857
  });
@@ -206280,11 +205953,12 @@ async function runDev({
206280
205953
  "Hydrogen plugin not found.",
206281
205954
  "Add `hydrogen()` plugin to your Vite config."
206282
205955
  );
206283
- let h2PluginOptions = h2Plugin.api?.getPluginOptions?.(), codegenProcess, setupCodegen = useCodegen ? () => {
205956
+ h2Plugin.api?.getPluginOptions?.();
205957
+ let remixConfig = (await getViteConfig(root)).remixConfig, codegenProcess, setupCodegen = useCodegen ? () => {
206284
205958
  codegenProcess?.kill(0), codegenProcess = spawnCodegenProcess({
206285
205959
  rootDirectory: root,
206286
205960
  configFilePath: codegenConfigPath,
206287
- appDirectory: h2PluginOptions?.remixConfig?.appDirectory
205961
+ appDirectory: remixConfig?.appDirectory
206288
205962
  });
206289
205963
  } : void 0;
206290
205964
  setupCodegen?.(), hydrogenPackagesPath && setupMonorepoReload(viteServer, hydrogenPackagesPath, setupCodegen);
@@ -206363,7 +206037,7 @@ function setupMonorepoReload(viteServer, monorepoPackagesPath, setupCodegen) {
206363
206037
  });
206364
206038
  }
206365
206039
 
206366
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/list.js
206040
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/list.js
206367
206041
  init_cjs_shims();
206368
206042
  var EnvList = class _EnvList extends base_command_default {
206369
206043
  static descriptionWithMarkdown = "Lists all environments available on the linked Hydrogen storefront.";
@@ -206429,7 +206103,7 @@ var pluralizedEnvironments = ({
206429
206103
  () => `There are no environments for the Hydrogen storefront ${storefrontTitle}`
206430
206104
  );
206431
206105
 
206432
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/pull.js
206106
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/pull.js
206433
206107
  init_cjs_shims();
206434
206108
 
206435
206109
  // ../../node_modules/.pnpm/diff@5.2.0/node_modules/diff/lib/index.mjs
@@ -206651,7 +206325,7 @@ arrayDiff.join = arrayDiff.removeEmpty = function(value) {
206651
206325
  return value;
206652
206326
  };
206653
206327
 
206654
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/pull.js
206328
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/pull.js
206655
206329
  var EnvPull = class _EnvPull extends base_command_default {
206656
206330
  static descriptionWithMarkdown = "Pulls environment variables from the linked Hydrogen storefront and writes them to an `.env` file.";
206657
206331
  static description = "Populate your .env with variables from your Hydrogen storefront.";
@@ -206743,10 +206417,10 @@ Continue?`.value
206743
206417
  });
206744
206418
  }
206745
206419
 
206746
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/push.js
206420
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/push.js
206747
206421
  init_cjs_shims();
206748
206422
 
206749
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/push-variables.js
206423
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/push-variables.js
206750
206424
  init_cjs_shims();
206751
206425
  var PushVariablesMutation = `#graphql
206752
206426
  mutation PushVariables(
@@ -206779,7 +206453,7 @@ async function pushStorefrontEnvVariables(adminSession, storefrontId, environmen
206779
206453
  return { userErrors };
206780
206454
  }
206781
206455
 
206782
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/push.js
206456
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/env/push.js
206783
206457
  var EnvPush = class _EnvPush extends base_command_default {
206784
206458
  static description = "Push environment variables from the local .env file to your linked Hydrogen storefront.";
206785
206459
  static flags = {
@@ -206894,10 +206568,10 @@ Continue?`.value
206894
206568
  });
206895
206569
  }
206896
206570
 
206897
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/g.js
206571
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/g.js
206898
206572
  init_cjs_shims();
206899
206573
 
206900
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/generate/route.js
206574
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/generate/route.js
206901
206575
  init_cjs_shims();
206902
206576
  var import_core27 = __toESM(require_lib(), 1);
206903
206577
  var GenerateRoute2 = class _GenerateRoute extends base_command_default {
@@ -206964,7 +206638,7 @@ async function runGenerate(options) {
206964
206638
  });
206965
206639
  }
206966
206640
 
206967
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/g.js
206641
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/g.js
206968
206642
  var GenerateRouteShortcut = class extends base_command_default {
206969
206643
  static description = "Shortcut for `hydrogen generate`. See `hydrogen generate --help` for more information.";
206970
206644
  static strict = !1;
@@ -206977,7 +206651,7 @@ var GenerateRouteShortcut = class extends base_command_default {
206977
206651
  }
206978
206652
  };
206979
206653
 
206980
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/generate/routes.js
206654
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/generate/routes.js
206981
206655
  init_cjs_shims();
206982
206656
  var GenerateRoutes = class _GenerateRoutes extends base_command_default {
206983
206657
  static description = "Generates all supported standard shopify routes.";
@@ -206992,11 +206666,11 @@ var GenerateRoutes = class _GenerateRoutes extends base_command_default {
206992
206666
  }
206993
206667
  };
206994
206668
 
206995
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/init.js
206669
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/init.js
206996
206670
  init_cjs_shims();
206997
206671
  var import_core28 = __toESM(require_lib(), 1);
206998
206672
 
206999
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/check-cli-version.js
206673
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/check-cli-version.js
207000
206674
  init_cjs_shims();
207001
206675
  import { fileURLToPath as fileURLToPath5 } from "node:url";
207002
206676
  var UPGRADABLE_CLI_NAMES = {
@@ -207040,10 +206714,10 @@ You are currently running v${currentVersion}.
207040
206714
  };
207041
206715
  }
207042
206716
 
207043
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/index.js
206717
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/index.js
207044
206718
  init_cjs_shims();
207045
206719
 
207046
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/local.js
206720
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/local.js
207047
206721
  init_cjs_shims();
207048
206722
  import { cp as cp2 } from "node:fs/promises";
207049
206723
  async function setupLocalStarterTemplate(options, controller) {
@@ -207260,11 +206934,11 @@ function maybeInjectCliHydrogen(pkgJsonContent) {
207260
206934
  return pkgJsonContent;
207261
206935
  }
207262
206936
 
207263
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/remote.js
206937
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/remote.js
207264
206938
  init_cjs_shims();
207265
206939
  import { readdir as readdir2 } from "node:fs/promises";
207266
206940
 
207267
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/template-downloader.js
206941
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/template-downloader.js
207268
206942
  init_cjs_shims();
207269
206943
  var import_gunzip_maybe = __toESM(require_gunzip_maybe(), 1), import_tar_fs = __toESM(require_tar_fs(), 1);
207270
206944
  import path3 from "node:path";
@@ -207284,8 +206958,8 @@ function parseGitHubRepositoryURL(url) {
207284
206958
  ];
207285
206959
  return err(new Error(`Parsing the url ${url} failed. Supported formats are ${exampleFormats.join(", ")}.`));
207286
206960
  }
207287
- let site = match2[1] ?? match2[2] ?? match2[3] ?? "github.com", normalizedSite = site === "github" ? "github.com" : site, user = match2[4], name = match2[5].replace(/\.git$/, ""), subDirectory = match2[6]?.slice(1), ref = match2[7], branch = ref ? `#${ref}` : "", ssh = `git@${normalizedSite}:${user}/${name}`, http3 = `https://${normalizedSite}/${user}/${name}`, full = ["https:/", normalizedSite, user, name, subDirectory].join("/").concat(branch);
207288
- return ok({ full, site: normalizedSite, user, name, ref, subDirectory, ssh, http: http3 });
206961
+ let site = match2[1] ?? match2[2] ?? match2[3] ?? "github.com", normalizedSite = site === "github" ? "github.com" : site, user = match2[4], name = match2[5].replace(/\.git$/, ""), subDirectory = match2[6]?.slice(1), ref = match2[7], branch = ref ? `#${ref}` : "", ssh = `git@${normalizedSite}:${user}/${name}`, http2 = `https://${normalizedSite}/${user}/${name}`, full = ["https:/", normalizedSite, user, name, subDirectory].join("/").concat(branch);
206962
+ return ok({ full, site: normalizedSite, user, name, ref, subDirectory, ssh, http: http2 });
207289
206963
  }
207290
206964
  function parseGitHubRepositoryReference(reference) {
207291
206965
  let url = new URL(reference), branch = url.hash ? url.hash.slice(1) : void 0, [_3, user, repo, ...repoPath] = url.pathname.split("/"), filePath = repoPath.length > 0 ? repoPath.join("/") : void 0;
@@ -207312,7 +206986,7 @@ async function downloadGitHubRelease(repo, version, assetName, targetPath) {
207312
206986
  });
207313
206987
  }
207314
206988
 
207315
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/template-downloader.js
206989
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/template-downloader.js
207316
206990
  var REPO_RELEASES_URL = "https://api.github.com/repos/shopify/hydrogen/releases/latest", getTryMessage = (status) => status === 403 ? "If you are using a VPN, WARP, or similar service, consider disabling it momentarily." : void 0;
207317
206991
  async function getLatestReleaseDownloadUrl(signal) {
207318
206992
  let response = await fetch2(REPO_RELEASES_URL, { signal });
@@ -207395,7 +207069,7 @@ async function downloadExternalRepo(appTemplate, signal) {
207395
207069
  }), await rmdir(joinPath(templateDir, ".git"), { force: !0 }), { templateDir };
207396
207070
  }
207397
207071
 
207398
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/remote.js
207072
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/remote.js
207399
207073
  var DEMO_STORE_REPO = "shopify/hydrogen-demo-store";
207400
207074
  async function setupRemoteTemplate(options, controller) {
207401
207075
  let appTemplate = options.template === "demo-store" ? DEMO_STORE_REPO : options.template, abort2 = createAbortHandler(controller), backgroundDownloadPromise = appTemplate.includes("/") ? getExternalTemplate(appTemplate, controller.signal).catch(abort2) : getMonorepoTemplate(appTemplate, controller.signal).catch(abort2), project = await handleProjectLocation({ ...options, controller });
@@ -207481,7 +207155,7 @@ Skip the flag or provide the name of a template or example in the Hydrogen repos
207481
207155
  );
207482
207156
  }
207483
207157
 
207484
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/index.js
207158
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/onboarding/index.js
207485
207159
  async function setupTemplate(options) {
207486
207160
  let controller = new AbortController2();
207487
207161
  try {
@@ -207492,7 +207166,7 @@ async function setupTemplate(options) {
207492
207166
  }
207493
207167
  }
207494
207168
 
207495
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/init.js
207169
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/init.js
207496
207170
  var FLAG_MAP = { f: "force" }, Init2 = class _Init extends base_command_default {
207497
207171
  static descriptionWithMarkdown = "Creates a new Hydrogen storefront.";
207498
207172
  static description = "Creates a new Hydrogen storefront.";
@@ -207566,10 +207240,10 @@ async function runInit({
207566
207240
  return showUpgrade && showUpgrade(options.packageManager), setupTemplate(options);
207567
207241
  }
207568
207242
 
207569
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/list.js
207243
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/list.js
207570
207244
  init_cjs_shims();
207571
207245
 
207572
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/list-storefronts.js
207246
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/graphql/admin/list-storefronts.js
207573
207247
  init_cjs_shims();
207574
207248
  var ListStorefrontsQuery = `#graphql
207575
207249
  query ListStorefronts {
@@ -207596,7 +207270,7 @@ async function getStorefrontsWithDeployment(adminSession) {
207596
207270
  }));
207597
207271
  }
207598
207272
 
207599
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/list.js
207273
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/list.js
207600
207274
  var List3 = class _List extends base_command_default {
207601
207275
  static descriptionWithMarkdown = "Lists all remote Hydrogen storefronts available to link to your local development environment.";
207602
207276
  static description = "Returns a list of Hydrogen storefronts available on a given shop.";
@@ -207664,7 +207338,7 @@ var pluralizedStorefronts = ({
207664
207338
  (_storefront) => `Showing 1 Hydrogen storefront for the store ${shop}`
207665
207339
  );
207666
207340
 
207667
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/login.js
207341
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/login.js
207668
207342
  init_cjs_shims();
207669
207343
  var Login = class _Login extends base_command_default {
207670
207344
  static descriptionWithMarkdown = "Logs in to the specified shop and saves the shop domain to the project.";
@@ -207687,7 +207361,7 @@ async function runLogin({
207687
207361
  renderLoginSuccess(config2);
207688
207362
  }
207689
207363
 
207690
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/logout.js
207364
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/logout.js
207691
207365
  init_cjs_shims();
207692
207366
  var Logout2 = class _Logout extends base_command_default {
207693
207367
  static descriptionWithMarkdown = "Log out from the current shop.";
@@ -207704,16 +207378,24 @@ async function runLogout({ path: root = process.cwd() }) {
207704
207378
  outputNewline(), await logout(root), renderSuccess({ body: "You are logged out from Shopify." });
207705
207379
  }
207706
207380
 
207707
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/preview.js
207381
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/preview.js
207708
207382
  init_cjs_shims();
207709
207383
  var import_core29 = __toESM(require_lib(), 1);
207384
+
207385
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/lib/mini-oxygen/index.js
207386
+ init_cjs_shims();
207387
+ async function startMiniOxygen(options) {
207388
+ let { startWorkerdServer } = await import("./workerd-GLBI5GFX.js");
207389
+ return startWorkerdServer(options);
207390
+ }
207391
+
207392
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/preview.js
207710
207393
  var Preview = class _Preview extends base_command_default {
207711
207394
  static descriptionWithMarkdown = "Runs a server in your local development environment that serves your Hydrogen app's production build. Requires running the [build](https://shopify.dev/docs/api/shopify-cli/hydrogen/hydrogen-build) command first.";
207712
207395
  static description = "Runs a Hydrogen storefront in an Oxygen worker for production.";
207713
207396
  static flags = {
207714
207397
  ...commonFlags.path,
207715
207398
  ...commonFlags.port,
207716
- ...commonFlags.legacyRuntime,
207717
207399
  ...commonFlags.env,
207718
207400
  ...commonFlags.envBranch,
207719
207401
  ...commonFlags.envFile,
@@ -207755,7 +207437,6 @@ var Preview = class _Preview extends base_command_default {
207755
207437
  async function runPreview({
207756
207438
  port: appPort2,
207757
207439
  directory,
207758
- legacyRuntime = !1,
207759
207440
  env: envHandle,
207760
207441
  envBranch,
207761
207442
  inspectorPort,
@@ -207770,24 +207451,19 @@ async function runPreview({
207770
207451
  }) {
207771
207452
  process.env.NODE_ENV || (process.env.NODE_ENV = watch ? "development" : "production"), verbose && setH2OVerbose(), isH2Verbose() || muteDevLogs();
207772
207453
  let { root, buildPath, buildPathWorkerFile, buildPathClient } = getProjectPaths(directory), useClassicCompiler = await isClassicProject(root);
207773
- if (watch && useClassicCompiler)
207774
- throw new AbortError(
207775
- "Preview in watch mode is not supported for classic Remix projects.",
207776
- "Please use the dev command instead, which is the equivalent for classic projects."
207777
- );
207778
- let miniOxygen, projectBuild = deferPromise(), buildOptions = {
207779
- directory: root,
207780
- entry,
207781
- disableRouteWarning: !1,
207782
- lockfileCheck: !1,
207783
- sourcemap: !0,
207784
- bundleStats: !1,
207785
- useCodegen,
207786
- codegenConfigPath
207787
- }, buildProcess = shouldBuild ? useClassicCompiler ? await runClassicCompilerBuild({
207788
- ...buildOptions
207789
- }).then(projectBuild.resolve) : await runBuild({
207790
- ...buildOptions,
207454
+ if (useClassicCompiler)
207455
+ throw new AbortError(REMIX_COMPILER_ERROR_MESSAGE);
207456
+ let miniOxygen, projectBuild = deferPromise(), buildProcess = shouldBuild ? await runBuild({
207457
+ ...{
207458
+ directory: root,
207459
+ entry,
207460
+ disableRouteWarning: !1,
207461
+ lockfileCheck: !1,
207462
+ sourcemap: !0,
207463
+ bundleStats: !1,
207464
+ useCodegen,
207465
+ codegenConfigPath
207466
+ },
207791
207467
  watch,
207792
207468
  async onServerBuildFinish() {
207793
207469
  projectBuild.state === "pending" ? projectBuild.resolve() : outputInfo("\u{1F3D7}\uFE0F Project rebuilt. Reloading server..."), await miniOxygen?.reload();
@@ -207804,21 +207480,18 @@ async function runPreview({
207804
207480
  }
207805
207481
  );
207806
207482
  appPort2 || (appPort2 = await findPort(DEFAULT_APP_PORT));
207807
- let assetsPort = legacyRuntime ? 0 : await findPort(appPort2 + 100);
207808
- return await projectBuild.promise, logInjectedVariables(), miniOxygen = await startMiniOxygen(
207809
- {
207810
- root,
207811
- appPort: appPort2,
207812
- assetsPort,
207813
- env: allVariables,
207814
- buildPathClient,
207815
- buildPathWorkerFile,
207816
- inspectorPort,
207817
- debug: debug4,
207818
- watch
207819
- },
207820
- legacyRuntime
207821
- ), miniOxygen.showBanner({
207483
+ let assetsPort = await findPort(appPort2 + 100);
207484
+ return await projectBuild.promise, logInjectedVariables(), miniOxygen = await startMiniOxygen({
207485
+ root,
207486
+ appPort: appPort2,
207487
+ assetsPort,
207488
+ env: allVariables,
207489
+ buildPathClient,
207490
+ buildPathWorkerFile,
207491
+ inspectorPort,
207492
+ debug: debug4,
207493
+ watch
207494
+ }), miniOxygen.showBanner({
207822
207495
  mode: "preview",
207823
207496
  headlinePrefix: watch ? "Watching for changes. " : ""
207824
207497
  }), {
@@ -207828,7 +207501,7 @@ async function runPreview({
207828
207501
  };
207829
207502
  }
207830
207503
 
207831
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/setup.js
207504
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/setup.js
207832
207505
  init_cjs_shims();
207833
207506
  var Setup = class _Setup extends base_command_default {
207834
207507
  static description = "Scaffold routes and core functionality.";
@@ -207917,7 +207590,7 @@ async function runSetup(options) {
207917
207590
  ));
207918
207591
  }
207919
207592
 
207920
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/setup/css.js
207593
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/setup/css.js
207921
207594
  init_cjs_shims();
207922
207595
  var import_core30 = __toESM(require_lib(), 1);
207923
207596
  var SetupCSS = class _SetupCSS extends base_command_default {
@@ -208006,7 +207679,7 @@ Run`,
208006
207679
  });
208007
207680
  }
208008
207681
 
208009
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/setup/markets.js
207682
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/setup/markets.js
208010
207683
  init_cjs_shims();
208011
207684
  var import_core31 = __toESM(require_lib(), 1);
208012
207685
  var SetupMarkets = class _SetupMarkets extends base_command_default {
@@ -208050,7 +207723,7 @@ async function runSetupMarkets({
208050
207723
  });
208051
207724
  }
208052
207725
 
208053
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/setup/vite.js
207726
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/setup/vite.js
208054
207727
  init_cjs_shims();
208055
207728
  var SetupVite = class _SetupVite extends base_command_default {
208056
207729
  static description = "EXPERIMENTAL: Upgrades the project to use Vite.";
@@ -208292,7 +207965,7 @@ Please use Git to review the changes.`,
208292
207965
  });
208293
207966
  }
208294
207967
 
208295
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/shortcut.js
207968
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/shortcut.js
208296
207969
  init_cjs_shims();
208297
207970
  var Shortcut = class extends base_command_default {
208298
207971
  static descriptionWithMarkdown = "Creates a global h2 shortcut for Shopify CLI using shell aliases.\n\n The following shells are supported:\n\n - Bash (using `~/.bashrc`)\n - ZSH (using `~/.zshrc`)\n - Fish (using `~/.config/fish/functions`)\n - PowerShell (added to `$PROFILE`)\n\n After the alias is created, you can call Shopify CLI from anywhere in your project using `h2 <command>`.";
@@ -208317,7 +207990,7 @@ Restart your terminal session and run \`${ALIAS_NAME}\` from your local project.
208317
207990
  });
208318
207991
  }
208319
207992
 
208320
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/unlink.js
207993
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/commands/hydrogen/unlink.js
208321
207994
  init_cjs_shims();
208322
207995
  var Unlink = class _Unlink extends base_command_default {
208323
207996
  static descriptionWithMarkdown = "Unlinks your local development environment from a remote Hydrogen storefront.";
@@ -208342,7 +208015,7 @@ async function unlinkStorefront({ path: path4 }) {
208342
208015
  });
208343
208016
  }
208344
208017
 
208345
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/hooks/init.js
208018
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/hooks/init.js
208346
208019
  init_cjs_shims();
208347
208020
  import { createRequire as createRequire3 } from "node:module";
208348
208021
  import { spawnSync } from "node:child_process";
@@ -208381,7 +208054,7 @@ var hook = async function(options) {
208381
208054
  }
208382
208055
  }, EXPERIMENTAL_VM_MODULES_FLAG = "--experimental-vm-modules";
208383
208056
  function commandNeedsVM(id = "", argv = []) {
208384
- return id === "hydrogen:debug:cpu" || ["hydrogen:dev", "hydrogen:preview"].includes(id) && argv.includes("--legacy-runtime");
208057
+ return id === "hydrogen:debug:cpu";
208385
208058
  }
208386
208059
  function isHydrogenProject(projectPath) {
208387
208060
  try {
@@ -208396,7 +208069,7 @@ function isHydrogenProject(projectPath) {
208396
208069
  }
208397
208070
  var init_default2 = hook;
208398
208071
 
208399
- // ../../node_modules/.pnpm/@shopify+cli-hydrogen@10.0.1_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_700217a4222a08650099cd57a51aa579/node_modules/@shopify/cli-hydrogen/dist/index.js
208072
+ // ../../node_modules/.pnpm/@shopify+cli-hydrogen@11.1.2_@graphql-codegen+cli@5.0.4_@parcel+watcher@2.5.1_@types+no_e67bd8d5620b222f0d88ec0729535c5f/node_modules/@shopify/cli-hydrogen/dist/index.js
208400
208073
  var COMMANDS3 = {
208401
208074
  "hydrogen:dev": Dev2,
208402
208075
  "hydrogen:build": Build,
@@ -209131,7 +208804,7 @@ var MAX_EXTENSION_HANDLE_LENGTH = 50, MetafieldSchema = z.object({
209131
208804
 
209132
208805
  // ../app/dist/cli/utilities/extensions/locales-configuration.js
209133
208806
  init_cjs_shims();
209134
- import fs5 from "fs";
208807
+ import fs4 from "fs";
209135
208808
  async function loadLocalesConfig(extensionPath, extensionIdentifier) {
209136
208809
  let localesPaths = await glob(joinPath(extensionPath, "locales/*.json"));
209137
208810
  if (!localesPaths || localesPaths.length === 0)
@@ -209142,7 +208815,7 @@ async function loadLocalesConfig(extensionPath, extensionIdentifier) {
209142
208815
  if (defaultLanguageCode.length > 1)
209143
208816
  throw new AbortError(`Error loading ${extensionIdentifier}`, 'There must be one (and only one) locale identified as the default locale: e.g. "en.default.json"');
209144
208817
  for (let locale of localesPaths)
209145
- if (fs5.statSync(locale).size === 0)
208818
+ if (fs4.statSync(locale).size === 0)
209146
208819
  throw new AbortError(`Error loading ${extensionIdentifier}`, `Locale file ${locale} can't be empty`);
209147
208820
  return {
209148
208821
  default_locale: defaultLanguageCode[0],
@@ -209155,7 +208828,7 @@ function findDefaultLocale(filePaths) {
209155
208828
  function getAllLocales(localesPath) {
209156
208829
  let all = {};
209157
208830
  for (let localePath of localesPath) {
209158
- let localeCode = failIfUnset(basename(localePath).split(".")[0], "Locale code is unset"), locale = fs5.readFileSync(localePath, "base64");
208831
+ let localeCode = failIfUnset(basename(localePath).split(".")[0], "Locale code is unset"), locale = fs4.readFileSync(localePath, "base64");
209159
208832
  all[localeCode] = locale;
209160
208833
  }
209161
208834
  return all;
@@ -210917,7 +210590,7 @@ var FlowActionExtensionSchema = BaseSchemaWithHandle.extend({
210917
210590
 
210918
210591
  // ../app/dist/cli/models/extensions/specifications/flow_template.js
210919
210592
  init_cjs_shims();
210920
- import fs6 from "fs";
210593
+ import fs5 from "fs";
210921
210594
  var VALID_CATEGORIES = [
210922
210595
  "buyer_experience",
210923
210596
  "customers",
@@ -210966,7 +210639,7 @@ async function loadWorkflow(path4, workflowPath) {
210966
210639
  let flowFilePath = (await glob(joinPath(path4, workflowPath)))[0];
210967
210640
  if (!flowFilePath)
210968
210641
  throw new AbortError(`Missing flow file with the path ${joinPath(path4, workflowPath)}`);
210969
- return fs6.readFileSync(flowFilePath, "base64");
210642
+ return fs5.readFileSync(flowFilePath, "base64");
210970
210643
  }
210971
210644
  var flow_template_default = flowTemplateSpec;
210972
210645
 
@@ -223008,10 +222681,10 @@ var DevSessionStaticMessages = {
223008
222681
 
223009
222682
  // ../app/dist/cli/utilities/app/http-reverse-proxy.js
223010
222683
  init_cjs_shims();
223011
- import * as http2 from "http";
222684
+ import * as http from "http";
223012
222685
  import * as https from "https";
223013
222686
  async function getProxyingWebServer(rules, abortSignal, localhostCert, stdout) {
223014
- let proxy = (await import("./http-proxy-node16-T623PGD4.js")).default.createProxyServer(), requestListener = getProxyServerRequestListener(rules, proxy, stdout), server = localhostCert ? https.createServer(localhostCert, requestListener) : http2.createServer(requestListener);
222687
+ let proxy = (await import("./http-proxy-node16-T623PGD4.js")).default.createProxyServer(), requestListener = getProxyServerRequestListener(rules, proxy, stdout), server = localhostCert ? https.createServer(localhostCert, requestListener) : http.createServer(requestListener);
223015
222688
  return server.on("upgrade", getProxyServerWebsocketUpgradeListener(rules, proxy, stdout)), abortSignal.addEventListener("abort", () => {
223016
222689
  outputDebug("Closing reverse HTTP proxy"), server.close();
223017
222690
  }), { server };
@@ -228501,7 +228174,7 @@ var FocusContext_default = FocusContext;
228501
228174
  // ../../node_modules/.pnpm/ink@5.0.1_@types+react@17.0.2_react@18.3.1/node_modules/ink/build/components/ErrorOverview.js
228502
228175
  init_cjs_shims();
228503
228176
  var import_react25 = __toESM(require_react(), 1), import_stack_utils = __toESM(require_stack_utils(), 1);
228504
- import * as fs7 from "node:fs";
228177
+ import * as fs6 from "node:fs";
228505
228178
  import { cwd as cwd2 } from "node:process";
228506
228179
 
228507
228180
  // ../../node_modules/.pnpm/ink@5.0.1_@types+react@17.0.2_react@18.3.1/node_modules/ink/build/components/Box.js
@@ -228538,8 +228211,8 @@ var cleanupPath = (path4) => path4?.replace(`file://${cwd2()}/`, ""), stackUtils
228538
228211
  function ErrorOverview({ error }) {
228539
228212
  let stack = error.stack ? error.stack.split(`
228540
228213
  `).slice(1) : void 0, origin = stack ? stackUtils.parseLine(stack[0]) : void 0, filePath = cleanupPath(origin?.file), excerpt, lineWidth = 0;
228541
- if (filePath && origin?.line && fs7.existsSync(filePath)) {
228542
- let sourceCode = fs7.readFileSync(filePath, "utf8");
228214
+ if (filePath && origin?.line && fs6.existsSync(filePath)) {
228215
+ let sourceCode = fs6.readFileSync(filePath, "utf8");
228543
228216
  if (excerpt = dist_default2(sourceCode, origin.line), excerpt)
228544
228217
  for (let { line } of excerpt)
228545
228218
  lineWidth = Math.max(lineWidth, String(line).length);
@@ -231178,7 +230851,7 @@ var DidYouMeanCommands = {
231178
230851
  };
231179
230852
 
231180
230853
  // src/index.ts
231181
- import fs8 from "fs";
230854
+ import fs7 from "fs";
231182
230855
 
231183
230856
  // ../plugin-cloudflare/dist/tunnel.js
231184
230857
  init_cjs_shims();
@@ -231414,7 +231087,7 @@ var HydrogenInitHook = HOOKS.init;
231414
231087
  socketConnectionTimeout: 6e4
231415
231088
  });
231416
231089
  process.on("uncaughtException", (err2) => {
231417
- err2 instanceof FatalError ? renderFatalError(err2) : fs8.writeSync(process.stderr.fd, `${err2.stack ?? err2.message ?? err2}
231090
+ err2 instanceof FatalError ? renderFatalError(err2) : fs7.writeSync(process.stderr.fd, `${err2.stack ?? err2.message ?? err2}
231418
231091
  `), process.exit(1);
231419
231092
  });
231420
231093
  var signals = ["SIGINT", "SIGTERM", "SIGQUIT"];