@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
@@ -5,19 +5,19 @@ import {
5
5
  ensureAuthenticatedAdmin,
6
6
  ensureAuthenticatedBusinessPlatform,
7
7
  logout
8
- } from "./chunk-FEMALH67.js";
8
+ } from "./chunk-YF7CDH6L.js";
9
9
  import {
10
10
  base_command_default
11
- } from "./chunk-DVGCJLCA.js";
11
+ } from "./chunk-3TBLURBG.js";
12
12
  import {
13
13
  fanoutHooks,
14
14
  requestIdsCollection
15
- } from "./chunk-TLYRIQK7.js";
15
+ } from "./chunk-QJQK26XP.js";
16
16
  import {
17
17
  businessPlatformFqdn,
18
18
  normalizeStoreFqdn,
19
19
  partnersFqdn
20
- } from "./chunk-TB443RFG.js";
20
+ } from "./chunk-FRQN52H3.js";
21
21
  import {
22
22
  ClientError,
23
23
  GraphQLClient,
@@ -31,10 +31,10 @@ import {
31
31
  retryAwareRequest,
32
32
  sanitizeURL,
33
33
  sanitizedHeadersOutput
34
- } from "./chunk-DFABOPSU.js";
34
+ } from "./chunk-Q76H7OUL.js";
35
35
  import {
36
36
  CLI_KIT_VERSION
37
- } from "./chunk-57SXE5DE.js";
37
+ } from "./chunk-Z2AIGIVT.js";
38
38
  import {
39
39
  cacheRetrieveOrRepopulate,
40
40
  findUpAndReadPackageJson,
@@ -44,7 +44,7 @@ import {
44
44
  readAndParsePackageJson,
45
45
  timeIntervalToMilliseconds,
46
46
  writePackageJSON
47
- } from "./chunk-BZFP2O66.js";
47
+ } from "./chunk-KDFL67TE.js";
48
48
  import {
49
49
  AbortError,
50
50
  BugError,
@@ -68,7 +68,6 @@ import {
68
68
  outputDebug,
69
69
  outputInfo,
70
70
  outputToken,
71
- outputWarn,
72
71
  readFile,
73
72
  removeFile,
74
73
  renderConfirmationPrompt,
@@ -84,7 +83,7 @@ import {
84
83
  source_default,
85
84
  stringifyMessage,
86
85
  writeFile
87
- } from "./chunk-KPFBSWRK.js";
86
+ } from "./chunk-4NC2NVYY.js";
88
87
  import {
89
88
  basename,
90
89
  cwd,
@@ -94,7 +93,7 @@ import {
94
93
  relativePath,
95
94
  relativizePath,
96
95
  resolvePath
97
- } from "./chunk-Y2JP6WFP.js";
96
+ } from "./chunk-EG6MBBEN.js";
98
97
  import {
99
98
  require_lib
100
99
  } from "./chunk-3FBDJEGD.js";
@@ -119236,7 +119235,7 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
119236
119235
  readdirWithFileTypes(directory, settings, callback);
119237
119236
  return;
119238
119237
  }
119239
- readdir5(directory, settings, callback);
119238
+ readdir4(directory, settings, callback);
119240
119239
  }
119241
119240
  exports22.read = read;
119242
119241
  function readdirWithFileTypes(directory, settings, callback) {
@@ -119286,7 +119285,7 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
119286
119285
  });
119287
119286
  };
119288
119287
  }
119289
- function readdir5(directory, settings, callback) {
119288
+ function readdir4(directory, settings, callback) {
119290
119289
  settings.fs.readdir(directory, (readdirError, names) => {
119291
119290
  if (readdirError !== null) {
119292
119291
  callFailureCallback(callback, readdirError);
@@ -119318,7 +119317,7 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
119318
119317
  });
119319
119318
  });
119320
119319
  }
119321
- exports22.readdir = readdir5;
119320
+ exports22.readdir = readdir4;
119322
119321
  function callFailureCallback(callback, error) {
119323
119322
  callback(error);
119324
119323
  }
@@ -119334,7 +119333,7 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
119334
119333
  }), exports22.readdir = exports22.readdirWithFileTypes = exports22.read = void 0;
119335
119334
  var fsStat = require_out(), constants_1 = require_constants4(), utils = require_utils5(), common = require_common3();
119336
119335
  function read(directory, settings) {
119337
- return !settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES ? readdirWithFileTypes(directory, settings) : readdir5(directory, settings);
119336
+ return !settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES ? readdirWithFileTypes(directory, settings) : readdir4(directory, settings);
119338
119337
  }
119339
119338
  exports22.read = read;
119340
119339
  function readdirWithFileTypes(directory, settings) {
@@ -119358,7 +119357,7 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
119358
119357
  });
119359
119358
  }
119360
119359
  exports22.readdirWithFileTypes = readdirWithFileTypes;
119361
- function readdir5(directory, settings) {
119360
+ function readdir4(directory, settings) {
119362
119361
  return settings.fs.readdirSync(directory).map((name) => {
119363
119362
  let entryPath = common.joinPathSegments(directory, name, settings.pathSegmentSeparator), stats = fsStat.statSync(entryPath, settings.fsStatSettings), entry = {
119364
119363
  name,
@@ -119368,7 +119367,7 @@ globstar while`, file, fr, pattern, pr, swallowee), this.matchOne(file.slice(fr)
119368
119367
  return settings.stats && (entry.stats = stats), entry;
119369
119368
  });
119370
119369
  }
119371
- exports22.readdir = readdir5;
119370
+ exports22.readdir = readdir4;
119372
119371
  }
119373
119372
  }), require_fs4 = __commonJS22({
119374
119373
  "node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports22) {
@@ -135351,21 +135350,212 @@ var require_main = __commonJS({
135351
135350
  }
135352
135351
  });
135353
135352
 
135354
- // ../../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/flags.js
135353
+ // ../../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/import-utils.js
135354
+ init_cjs_shims();
135355
+ import { createRequire } from "node:module";
135356
+ import { pathToFileURL } from "node:url";
135357
+ var require2 = createRequire(import.meta.url);
135358
+ async function importVite(root) {
135359
+ let vitePath = require2.resolve(
135360
+ "vite",
135361
+ process.env.SHOPIFY_UNIT_TEST ? void 0 : { paths: [root] }
135362
+ ), vitePackageJson = await findUpAndReadPackageJson(vitePath), viteNodeIndexFile = vitePackageJson.content.exports?.["."].import;
135363
+ typeof viteNodeIndexFile != "string" && (viteNodeIndexFile = viteNodeIndexFile.default);
135364
+ let viteNodePath = joinPath(
135365
+ dirname(vitePackageJson.path),
135366
+ viteNodeIndexFile
135367
+ );
135368
+ return import(pathToFileURL(viteNodePath).href);
135369
+ }
135370
+ function importLocal(packageName, path3) {
135371
+ let realPath = require2.resolve(
135372
+ packageName,
135373
+ process.env.SHOPIFY_UNIT_TEST ? void 0 : { paths: [path3] }
135374
+ );
135375
+ return import(pathToFileURL(realPath).href);
135376
+ }
135377
+
135378
+ // ../../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/request-events.js
135379
+ init_cjs_shims();
135380
+ import path from "node:path";
135381
+ import { EventEmitter } from "node:events";
135382
+ import { ReadableStream } from "node:stream/web";
135383
+
135384
+ // ../../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/graphiql-url.js
135385
+ init_cjs_shims();
135386
+ function getGraphiQLUrl({
135387
+ host = "",
135388
+ graphql
135389
+ }) {
135390
+ let url = `${host.endsWith("/") ? host.slice(0, -1) : host}/graphiql`;
135391
+ if (graphql) {
135392
+ let { query, variables } = graphql;
135393
+ typeof variables != "string" && (variables = JSON.stringify(variables)), url += `?query=${encodeURIComponent(query)}${variables ? `&variables=${encodeURIComponent(variables)}` : ""}`, graphql.schema && (url += `&schema=${graphql.schema}`);
135394
+ }
135395
+ return url;
135396
+ }
135397
+
135398
+ // ../../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/request-events.js
135399
+ var import_source_map_support = __toESM(require_source_map_support(), 1), H2O_BINDING_NAME = "H2O_LOG_EVENT", ResponseConstructor;
135400
+ function setConstructors(constructors) {
135401
+ ResponseConstructor = constructors.Response;
135402
+ }
135403
+ var DEV_ROUTES = /* @__PURE__ */ new Set([
135404
+ "/graphiql",
135405
+ "/graphiql/customer-account.schema.json",
135406
+ "/subrequest-profiler",
135407
+ "/debug-network-server"
135408
+ ]), EVENT_MAP = {
135409
+ request: "Request",
135410
+ subrequest: "Sub request"
135411
+ };
135412
+ async function getRequestInfo(request) {
135413
+ let data = await request.json();
135414
+ return {
135415
+ ...data,
135416
+ requestId: data.requestId ?? "",
135417
+ eventType: data.eventType || "unknown",
135418
+ endTime: data.endTime || Date.now(),
135419
+ purpose: data.purpose === "prefetch" ? "(prefetch)" : "",
135420
+ cacheStatus: data.cacheStatus ?? "",
135421
+ graphql: data.graphql ? JSON.parse(data.graphql) : null
135422
+ };
135423
+ }
135424
+ var eventEmitter = new EventEmitter(), eventHistory = [];
135425
+ function createResponse(main = "ok", init) {
135426
+ return new ResponseConstructor(main, init);
135427
+ }
135428
+ function clearHistory(request) {
135429
+ return eventHistory.length = 0, createResponse();
135430
+ }
135431
+ function createLogRequestEvent(options2) {
135432
+ return async function(request) {
135433
+ let url = new URL(request.url);
135434
+ if (DEV_ROUTES.has(url.pathname))
135435
+ return createResponse();
135436
+ let {
135437
+ url: displayUrl,
135438
+ displayName: displayNameData,
135439
+ eventType,
135440
+ purpose,
135441
+ graphql,
135442
+ stackInfo,
135443
+ ...data
135444
+ } = await getRequestInfo(request), graphiqlLink = "", descriptionUrl = request.url, displayName = displayNameData;
135445
+ eventType === "subrequest" && (displayName = displayName || graphql?.query.match(/(query|mutation)\s+(\w+)/)?.[0]?.replace(/\s+/, " "), descriptionUrl = displayUrl || request.url, graphql && (graphiqlLink = getGraphiQLUrl({ graphql })));
135446
+ let stackLine = null, stackLink = null;
135447
+ if (stackInfo?.file) {
135448
+ options2?.transformLocation && (stackInfo.file = options2.transformLocation(stackInfo.file));
135449
+ let { source, line, column } = (0, import_source_map_support.mapSourcePosition)({
135450
+ source: stackInfo.file,
135451
+ line: stackInfo.line ?? 0,
135452
+ column: stackInfo.column ?? 0
135453
+ });
135454
+ stackLine = `${source}:${line}:${column + 1}`, stackLink = `vscode://${path.join("file", stackLine)}`, stackLine = stackLine.split(path.sep + "app" + path.sep)[1] ?? stackLine, stackInfo.func && (stackLine = `${stackInfo.func.replace(/\d+$/, "")} (${stackLine})`);
135455
+ }
135456
+ let event = {
135457
+ event: EVENT_MAP[eventType] || eventType,
135458
+ data: JSON.stringify({
135459
+ ...data,
135460
+ displayName,
135461
+ url: `${purpose} ${descriptionUrl}`.trim(),
135462
+ graphiqlLink,
135463
+ stackLine,
135464
+ stackLink
135465
+ })
135466
+ };
135467
+ return eventHistory.push(event), eventHistory.length > 100 && eventHistory.shift(), eventEmitter.emit("request", event), createResponse();
135468
+ };
135469
+ }
135470
+ function streamRequestEvents(request) {
135471
+ let stream = new ReadableStream({
135472
+ start(controller) {
135473
+ let encoder = new TextEncoder(), enqueueEvent = ({ event = "message", data }) => {
135474
+ controller.enqueue(encoder.encode(`event: ${event}
135475
+ `)), controller.enqueue(encoder.encode(`data: ${data}
135476
+
135477
+ `));
135478
+ };
135479
+ eventHistory.forEach(enqueueEvent), eventEmitter.addListener("request", enqueueEvent);
135480
+ let closed = !1;
135481
+ function close() {
135482
+ closed || (closed = !0, request.signal.removeEventListener("abort", close), eventEmitter.removeListener("request", enqueueEvent), controller.close());
135483
+ }
135484
+ if (request.signal.addEventListener("abort", close), request.signal.aborted) return close();
135485
+ }
135486
+ });
135487
+ return createResponse(stream, {
135488
+ headers: {
135489
+ "Content-Type": "text/event-stream",
135490
+ "Cache-Control": "no-store",
135491
+ Connection: "keep-alive"
135492
+ }
135493
+ });
135494
+ }
135495
+ function handleDebugNetworkRequest(request) {
135496
+ return request.method === "DELETE" ? clearHistory() : streamRequestEvents(request);
135497
+ }
135498
+
135499
+ // ../../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/common.js
135500
+ init_cjs_shims();
135501
+ var SUBREQUEST_PROFILER_ENDPOINT = "/debug-network-server";
135502
+ function handleMiniOxygenImportFail() {
135503
+ throw new AbortError(
135504
+ "Could not load MiniOxygen.",
135505
+ "Please make sure you have `@shopify/mini-oxygen` installed."
135506
+ );
135507
+ }
135508
+ function logRequestLine({
135509
+ request,
135510
+ response,
135511
+ meta
135512
+ }) {
135513
+ try {
135514
+ let url = new URL(request.url);
135515
+ if (DEV_ROUTES.has(url.pathname) || url.pathname === "/favicon.ico") return;
135516
+ let isDataRequest = url.searchParams.has("_data"), route = request.url.replace(url.origin, ""), info = "", type = "render";
135517
+ if (isDataRequest) {
135518
+ type = request.method === "GET" ? "loader" : "action";
135519
+ let dataParam = url.searchParams.get("_data")?.replace("routes/", "");
135520
+ route = url.pathname, info = `[${dataParam}]`;
135521
+ }
135522
+ let colorizeStatus = response.status < 300 ? outputToken.green : response.status < 400 ? outputToken.cyan : outputToken.errorText;
135523
+ outputInfo(
135524
+ outputContent`${request.method.padStart(6)} ${colorizeStatus(
135525
+ String(response.status)
135526
+ )} ${outputToken.italic(type.padEnd(7, " "))} ${route} ${meta.durationMs > 0 ? source_default.dim(` ${meta.durationMs}ms`) : ""}${info ? " " + source_default.dim(info) : ""}${request.headers.purpose === "prefetch" ? outputToken.italic(source_default.dim(" prefetch")) : ""}`
135527
+ );
135528
+ } catch {
135529
+ request && response?.status && outputInfo(`${request.method} ${response.status} ${request.url}`);
135530
+ }
135531
+ }
135532
+
135533
+ // ../../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/dev-shared.js
135534
+ init_cjs_shims();
135535
+
135536
+ // ../../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/customer-account/push.js
135537
+ init_cjs_shims();
135538
+ var import_core3 = __toESM(require_lib(), 1);
135539
+
135540
+ // ../../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/link.js
135541
+ init_cjs_shims();
135542
+ var import_core2 = __toESM(require_lib(), 1);
135543
+
135544
+ // ../../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/flags.js
135355
135545
  init_cjs_shims();
135356
135546
  var import_core = __toESM(require_lib(), 1);
135357
135547
 
135358
- // ../../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/setups/css/index.js
135548
+ // ../../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/setups/css/index.js
135359
135549
  init_cjs_shims();
135360
135550
 
135361
- // ../../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/setups/css/assets.js
135551
+ // ../../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/setups/css/assets.js
135362
135552
  init_cjs_shims();
135363
135553
 
135364
- // ../../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/build.js
135554
+ // ../../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/build.js
135365
135555
  init_cjs_shims();
135366
135556
  import { fileURLToPath } from "node:url";
135367
135557
 
135368
- // ../../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/process.js
135558
+ // ../../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/process.js
135369
135559
  init_cjs_shims();
135370
135560
  import { exec } from "node:child_process";
135371
135561
  import { promisify } from "node:util";
@@ -135377,7 +135567,7 @@ function supressNodeExperimentalWarnings() {
135377
135567
  }));
135378
135568
  }
135379
135569
 
135380
- // ../../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/build.js
135570
+ // ../../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/build.js
135381
135571
  var monorepoPackagesPath = new URL("../../..", import.meta.url).pathname, isHydrogenMonorepo = monorepoPackagesPath.endsWith(
135382
135572
  "/hydrogen/packages/"
135383
135573
  ), hydrogenPackagesPath = isHydrogenMonorepo ? monorepoPackagesPath : void 0, ASSETS_DIR_PREFIX = "assets/hydrogen", ASSETS_STARTER_DIR = "starter", ASSETS_STARTER_DIR_ROUTES = "routes", pkgJsonPath;
@@ -135424,7 +135614,7 @@ async function getRepoNodeModules() {
135424
135614
  return !nodeModulesPath && isHydrogenMonorepo && (nodeModulesPath = joinPath(dirname(monorepoPackagesPath), "node_modules")), nodeModulesPath;
135425
135615
  }
135426
135616
 
135427
- // ../../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/setups/css/assets.js
135617
+ // ../../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/setups/css/assets.js
135428
135618
  var SETUP_CSS_STRATEGIES = [
135429
135619
  "tailwind",
135430
135620
  "vanilla-extract",
@@ -135459,14 +135649,14 @@ async function canWriteFiles(assetMap, directory, force) {
135459
135649
  }));
135460
135650
  }
135461
135651
 
135462
- // ../../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/setups/css/tailwind.js
135652
+ // ../../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/setups/css/tailwind.js
135463
135653
  init_cjs_shims();
135464
135654
 
135465
- // ../../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/file.js
135655
+ // ../../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/file.js
135466
135656
  init_cjs_shims();
135467
135657
  import { readdir } from "node:fs/promises";
135468
135658
 
135469
- // ../../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/format-code.js
135659
+ // ../../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/format-code.js
135470
135660
  init_cjs_shims();
135471
135661
  var prettier = __toESM(require_prettier(), 1);
135472
135662
  import * as FS from "fs/promises";
@@ -135496,7 +135686,7 @@ async function formatCode(content, config = DEFAULT_PRETTIER_CONFIG, filePath =
135496
135686
  });
135497
135687
  }
135498
135688
 
135499
- // ../../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/file.js
135689
+ // ../../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/file.js
135500
135690
  async function replaceFileContent(filepath, formatConfig, replacer) {
135501
135691
  let content = await replacer(await readFile(filepath));
135502
135692
  if (typeof content == "string")
@@ -135579,10 +135769,10 @@ async function mergeTsConfig(sourceDir, targetDir) {
135579
135769
  );
135580
135770
  }
135581
135771
 
135582
- // ../../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/setups/css/replacers.js
135772
+ // ../../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/setups/css/replacers.js
135583
135773
  init_cjs_shims();
135584
135774
 
135585
- // ../../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/ast.js
135775
+ // ../../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/ast.js
135586
135776
  init_cjs_shims();
135587
135777
  async function importLangAstGrep(lang) {
135588
135778
  let astGrep = await import("@ast-grep/napi");
@@ -135591,7 +135781,7 @@ async function importLangAstGrep(lang) {
135591
135781
  return astGrep[lang];
135592
135782
  }
135593
135783
 
135594
- // ../../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/setups/css/replacers.js
135784
+ // ../../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/setups/css/replacers.js
135595
135785
  async function replaceRootLinks(appDirectory, formatConfig, importer) {
135596
135786
  let { filepath, astType } = await findFileWithExtension(appDirectory, "root");
135597
135787
  if (!filepath || !astType)
@@ -135693,7 +135883,7 @@ var vitePluginListRule = {
135693
135883
  }
135694
135884
  };
135695
135885
 
135696
- // ../../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/setups/css/tailwind.js
135886
+ // ../../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/setups/css/tailwind.js
135697
135887
  var tailwindCssPath = "styles/tailwind.css";
135698
135888
  async function setupTailwind({ rootDirectory, appDirectory }, force = !1) {
135699
135889
  let relativeAppDirectory = relativePath(rootDirectory, appDirectory), assetMap = {
@@ -135729,7 +135919,7 @@ async function setupTailwind({ rootDirectory, appDirectory }, force = !1) {
135729
135919
  };
135730
135920
  }
135731
135921
 
135732
- // ../../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/setups/css/vanilla-extract.js
135922
+ // ../../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/setups/css/vanilla-extract.js
135733
135923
  init_cjs_shims();
135734
135924
  async function setupVanillaExtract({
135735
135925
  rootDirectory
@@ -135750,7 +135940,7 @@ async function setupVanillaExtract({
135750
135940
  };
135751
135941
  }
135752
135942
 
135753
- // ../../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/setups/css/index.js
135943
+ // ../../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/setups/css/index.js
135754
135944
  var STYLING_CHOICES = [...SETUP_CSS_STRATEGIES, "none"], CSS_STRATEGY_NAME_MAP = {
135755
135945
  tailwind: "Tailwind v4",
135756
135946
  "vanilla-extract": "Vanilla Extract",
@@ -135795,23 +135985,23 @@ async function renderCssPrompt(options2) {
135795
135985
  });
135796
135986
  }
135797
135987
 
135798
- // ../../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/setups/i18n/index.js
135988
+ // ../../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/setups/i18n/index.js
135799
135989
  init_cjs_shims();
135800
135990
 
135801
- // ../../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/setups/i18n/replacers.js
135991
+ // ../../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/setups/i18n/replacers.js
135802
135992
  init_cjs_shims();
135803
135993
 
135804
- // ../../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/transpile/index.js
135994
+ // ../../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/transpile/index.js
135805
135995
  init_cjs_shims();
135806
135996
 
135807
- // ../../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/transpile/file.js
135997
+ // ../../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/transpile/file.js
135808
135998
  init_cjs_shims();
135809
135999
  async function transpileFile(code, filepath, keepTypes = !0) {
135810
- let { transpileTs } = await import("./morph-5LWJDWYB.js");
136000
+ let { transpileTs } = await import("./morph-R37HEQ7R.js");
135811
136001
  return transpileTs(code, filepath, keepTypes);
135812
136002
  }
135813
136003
 
135814
- // ../../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/transpile/project.js
136004
+ // ../../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/transpile/project.js
135815
136005
  init_cjs_shims();
135816
136006
  var DEFAULT_JS_CONFIG = {
135817
136007
  checkJs: !1,
@@ -135922,7 +136112,7 @@ async function transpileProject(projectDir, keepTypes = !0) {
135922
136112
  }
135923
136113
  }
135924
136114
 
135925
- // ../../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/setups/i18n/replacers.js
136115
+ // ../../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/setups/i18n/replacers.js
135926
136116
  async function replaceContextI18n({
135927
136117
  rootDirectory,
135928
136118
  contextCreate = joinPath("app", "lib", "context.ts")
@@ -136061,7 +136251,7 @@ async function findContextCreateFile({
136061
136251
  return { filepath, astType };
136062
136252
  }
136063
136253
 
136064
- // ../../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/setups/i18n/index.js
136254
+ // ../../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/setups/i18n/index.js
136065
136255
  var SETUP_I18N_STRATEGIES = [
136066
136256
  "subfolders",
136067
136257
  "domains",
@@ -136093,7 +136283,7 @@ async function renderI18nPrompt(options2) {
136093
136283
  });
136094
136284
  }
136095
136285
 
136096
- // ../../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/flags.js
136286
+ // ../../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/flags.js
136097
136287
  var DEFAULT_APP_PORT = 3e3, DEFAULT_INSPECTOR_PORT = 9229, commonFlags = {
136098
136288
  path: {
136099
136289
  path: import_core.Flags.string({
@@ -136107,12 +136297,6 @@ var DEFAULT_APP_PORT = 3e3, DEFAULT_INSPECTOR_PORT = 9229, commonFlags = {
136107
136297
  env: "SHOPIFY_HYDROGEN_FLAG_PORT"
136108
136298
  })
136109
136299
  },
136110
- legacyRuntime: {
136111
- "legacy-runtime": import_core.Flags.boolean({
136112
- description: "Runs the app in a Node.js sandbox instead of an Oxygen worker.",
136113
- env: "SHOPIFY_HYDROGEN_FLAG_LEGACY_RUNTIME"
136114
- })
136115
- },
136116
136300
  force: {
136117
136301
  force: import_core.Flags.boolean({
136118
136302
  description: "Overwrites the destination directory and files if they already exist.",
@@ -136281,201 +136465,10 @@ function overrideFlag(flags, extra) {
136281
136465
  );
136282
136466
  }
136283
136467
 
136284
- // ../../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/import-utils.js
136285
- init_cjs_shims();
136286
- import { createRequire } from "node:module";
136287
- import { pathToFileURL } from "node:url";
136288
- var require2 = createRequire(import.meta.url);
136289
- async function importVite(root) {
136290
- let vitePath = require2.resolve(
136291
- "vite",
136292
- process.env.SHOPIFY_UNIT_TEST ? void 0 : { paths: [root] }
136293
- ), vitePackageJson = await findUpAndReadPackageJson(vitePath), viteNodeIndexFile = vitePackageJson.content.exports?.["."].import;
136294
- typeof viteNodeIndexFile != "string" && (viteNodeIndexFile = viteNodeIndexFile.default);
136295
- let viteNodePath = joinPath(
136296
- dirname(vitePackageJson.path),
136297
- viteNodeIndexFile
136298
- );
136299
- return import(pathToFileURL(viteNodePath).href);
136300
- }
136301
- function importLocal(packageName, path3) {
136302
- let realPath = require2.resolve(
136303
- packageName,
136304
- process.env.SHOPIFY_UNIT_TEST ? void 0 : { paths: [path3] }
136305
- );
136306
- return import(pathToFileURL(realPath).href);
136307
- }
136308
-
136309
- // ../../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/request-events.js
136310
- init_cjs_shims();
136311
- import path from "node:path";
136312
- import { EventEmitter } from "node:events";
136313
- import { ReadableStream } from "node:stream/web";
136314
-
136315
- // ../../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/graphiql-url.js
136316
- init_cjs_shims();
136317
- function getGraphiQLUrl({
136318
- host = "",
136319
- graphql
136320
- }) {
136321
- let url = `${host.endsWith("/") ? host.slice(0, -1) : host}/graphiql`;
136322
- if (graphql) {
136323
- let { query, variables } = graphql;
136324
- typeof variables != "string" && (variables = JSON.stringify(variables)), url += `?query=${encodeURIComponent(query)}${variables ? `&variables=${encodeURIComponent(variables)}` : ""}`, graphql.schema && (url += `&schema=${graphql.schema}`);
136325
- }
136326
- return url;
136327
- }
136328
-
136329
- // ../../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/request-events.js
136330
- var import_source_map_support = __toESM(require_source_map_support(), 1), H2O_BINDING_NAME = "H2O_LOG_EVENT", ResponseConstructor;
136331
- function setConstructors(constructors) {
136332
- ResponseConstructor = constructors.Response;
136333
- }
136334
- var DEV_ROUTES = /* @__PURE__ */ new Set([
136335
- "/graphiql",
136336
- "/graphiql/customer-account.schema.json",
136337
- "/subrequest-profiler",
136338
- "/debug-network-server"
136339
- ]), EVENT_MAP = {
136340
- request: "Request",
136341
- subrequest: "Sub request"
136342
- };
136343
- async function getRequestInfo(request) {
136344
- let data = await request.json();
136345
- return {
136346
- ...data,
136347
- requestId: data.requestId ?? "",
136348
- eventType: data.eventType || "unknown",
136349
- endTime: data.endTime || Date.now(),
136350
- purpose: data.purpose === "prefetch" ? "(prefetch)" : "",
136351
- cacheStatus: data.cacheStatus ?? "",
136352
- graphql: data.graphql ? JSON.parse(data.graphql) : null
136353
- };
136354
- }
136355
- var eventEmitter = new EventEmitter(), eventHistory = [];
136356
- function createResponse(main = "ok", init) {
136357
- return new ResponseConstructor(main, init);
136358
- }
136359
- function clearHistory(request) {
136360
- return eventHistory.length = 0, createResponse();
136361
- }
136362
- function createLogRequestEvent(options2) {
136363
- return async function(request) {
136364
- let url = new URL(request.url);
136365
- if (DEV_ROUTES.has(url.pathname))
136366
- return createResponse();
136367
- let {
136368
- url: displayUrl,
136369
- displayName: displayNameData,
136370
- eventType,
136371
- purpose,
136372
- graphql,
136373
- stackInfo,
136374
- ...data
136375
- } = await getRequestInfo(request), graphiqlLink = "", descriptionUrl = request.url, displayName = displayNameData;
136376
- eventType === "subrequest" && (displayName = displayName || graphql?.query.match(/(query|mutation)\s+(\w+)/)?.[0]?.replace(/\s+/, " "), descriptionUrl = displayUrl || request.url, graphql && (graphiqlLink = getGraphiQLUrl({ graphql })));
136377
- let stackLine = null, stackLink = null;
136378
- if (stackInfo?.file) {
136379
- options2?.transformLocation && (stackInfo.file = options2.transformLocation(stackInfo.file));
136380
- let { source, line, column } = (0, import_source_map_support.mapSourcePosition)({
136381
- source: stackInfo.file,
136382
- line: stackInfo.line ?? 0,
136383
- column: stackInfo.column ?? 0
136384
- });
136385
- stackLine = `${source}:${line}:${column + 1}`, stackLink = `vscode://${path.join("file", stackLine)}`, stackLine = stackLine.split(path.sep + "app" + path.sep)[1] ?? stackLine, stackInfo.func && (stackLine = `${stackInfo.func.replace(/\d+$/, "")} (${stackLine})`);
136386
- }
136387
- let event = {
136388
- event: EVENT_MAP[eventType] || eventType,
136389
- data: JSON.stringify({
136390
- ...data,
136391
- displayName,
136392
- url: `${purpose} ${descriptionUrl}`.trim(),
136393
- graphiqlLink,
136394
- stackLine,
136395
- stackLink
136396
- })
136397
- };
136398
- return eventHistory.push(event), eventHistory.length > 100 && eventHistory.shift(), eventEmitter.emit("request", event), createResponse();
136399
- };
136400
- }
136401
- function streamRequestEvents(request) {
136402
- let stream = new ReadableStream({
136403
- start(controller) {
136404
- let encoder = new TextEncoder(), enqueueEvent = ({ event = "message", data }) => {
136405
- controller.enqueue(encoder.encode(`event: ${event}
136406
- `)), controller.enqueue(encoder.encode(`data: ${data}
136407
-
136408
- `));
136409
- };
136410
- eventHistory.forEach(enqueueEvent), eventEmitter.addListener("request", enqueueEvent);
136411
- let closed = !1;
136412
- function close() {
136413
- closed || (closed = !0, request.signal.removeEventListener("abort", close), eventEmitter.removeListener("request", enqueueEvent), controller.close());
136414
- }
136415
- if (request.signal.addEventListener("abort", close), request.signal.aborted) return close();
136416
- }
136417
- });
136418
- return createResponse(stream, {
136419
- headers: {
136420
- "Content-Type": "text/event-stream",
136421
- "Cache-Control": "no-store",
136422
- Connection: "keep-alive"
136423
- }
136424
- });
136425
- }
136426
- function handleDebugNetworkRequest(request) {
136427
- return request.method === "DELETE" ? clearHistory() : streamRequestEvents(request);
136428
- }
136429
-
136430
- // ../../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/common.js
136431
- init_cjs_shims();
136432
- var SUBREQUEST_PROFILER_ENDPOINT = "/debug-network-server";
136433
- function handleMiniOxygenImportFail() {
136434
- throw new AbortError(
136435
- "Could not load MiniOxygen.",
136436
- "Please make sure you have `@shopify/mini-oxygen` installed."
136437
- );
136438
- }
136439
- function logRequestLine({
136440
- request,
136441
- response,
136442
- meta
136443
- }) {
136444
- try {
136445
- let url = new URL(request.url);
136446
- if (DEV_ROUTES.has(url.pathname) || url.pathname === "/favicon.ico") return;
136447
- let isDataRequest = url.searchParams.has("_data"), route = request.url.replace(url.origin, ""), info = "", type = "render";
136448
- if (isDataRequest) {
136449
- type = request.method === "GET" ? "loader" : "action";
136450
- let dataParam = url.searchParams.get("_data")?.replace("routes/", "");
136451
- route = url.pathname, info = `[${dataParam}]`;
136452
- }
136453
- let colorizeStatus = response.status < 300 ? outputToken.green : response.status < 400 ? outputToken.cyan : outputToken.errorText;
136454
- outputInfo(
136455
- outputContent`${request.method.padStart(6)} ${colorizeStatus(
136456
- String(response.status)
136457
- )} ${outputToken.italic(type.padEnd(7, " "))} ${route} ${meta.durationMs > 0 ? source_default.dim(` ${meta.durationMs}ms`) : ""}${info ? " " + source_default.dim(info) : ""}${request.headers.purpose === "prefetch" ? outputToken.italic(source_default.dim(" prefetch")) : ""}`
136458
- );
136459
- } catch {
136460
- request && response?.status && outputInfo(`${request.method} ${response.status} ${request.url}`);
136461
- }
136462
- }
136463
-
136464
- // ../../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/dev-shared.js
136465
- init_cjs_shims();
136466
-
136467
- // ../../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/customer-account/push.js
136468
- init_cjs_shims();
136469
- var import_core3 = __toESM(require_lib(), 1);
136470
-
136471
- // ../../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/link.js
136468
+ // ../../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/link-storefront.js
136472
136469
  init_cjs_shims();
136473
- var import_core2 = __toESM(require_lib(), 1);
136474
136470
 
136475
- // ../../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/link-storefront.js
136476
- init_cjs_shims();
136477
-
136478
- // ../../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/client.js
136471
+ // ../../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/client.js
136479
136472
  init_cjs_shims();
136480
136473
 
136481
136474
  // ../cli-kit/dist/public/node/api/graphql.js
@@ -136618,7 +136611,7 @@ async function graphqlRequestDoc(options2) {
136618
136611
  });
136619
136612
  }
136620
136613
 
136621
- // ../../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/client.js
136614
+ // ../../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/client.js
136622
136615
  async function adminRequest(query, session, variables) {
136623
136616
  let api = "Admin", url = `https://${session.storeFqdn}/admin/api/unstable/graphql.json`;
136624
136617
  try {
@@ -136653,7 +136646,7 @@ async function adminRequest(query, session, variables) {
136653
136646
  }
136654
136647
  }
136655
136648
 
136656
- // ../../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/gid.js
136649
+ // ../../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/gid.js
136657
136650
  init_cjs_shims();
136658
136651
  var GID_REGEXP = /gid:\/\/shopify\/\w*\/(\d+)/;
136659
136652
  function parseGid(gid) {
@@ -136663,7 +136656,7 @@ function parseGid(gid) {
136663
136656
  throw new AbortError(`Invalid Global ID: ${gid}`);
136664
136657
  }
136665
136658
 
136666
- // ../../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/link-storefront.js
136659
+ // ../../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/link-storefront.js
136667
136660
  var LinkStorefrontQuery = `#graphql
136668
136661
  query LinkStorefront {
136669
136662
  hydrogenStorefronts {
@@ -136684,7 +136677,7 @@ async function getStorefronts(adminSession) {
136684
136677
  }));
136685
136678
  }
136686
136679
 
136687
- // ../../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/shopify-config.js
136680
+ // ../../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/shopify-config.js
136688
136681
  init_cjs_shims();
136689
136682
  var SHOPIFY_DIR = ".shopify", SHOPIFY_DIR_PROJECT = "project.json";
136690
136683
  async function resetConfig(root) {
@@ -136755,7 +136748,7 @@ async function setCustomerAccountConfig(root, customerAccountConfig) {
136755
136748
  }
136756
136749
  }
136757
136750
 
136758
- // ../../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/create-storefront.js
136751
+ // ../../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/create-storefront.js
136759
136752
  init_cjs_shims();
136760
136753
  var CreateStorefrontMutation = `#graphql
136761
136754
  mutation CreateStorefront($title: String!) {
@@ -136789,7 +136782,7 @@ async function createStorefront(adminSession, title) {
136789
136782
  return { jobId, storefront: hydrogenStorefront };
136790
136783
  }
136791
136784
 
136792
- // ../../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/fetch-job.js
136785
+ // ../../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/fetch-job.js
136793
136786
  init_cjs_shims();
136794
136787
  var FetchJobQuery = `#graphql
136795
136788
  query FetchJob($id: ID!) {
@@ -136823,7 +136816,7 @@ function waitForJob(adminSession, jobId) {
136823
136816
  });
136824
136817
  }
136825
136818
 
136826
- // ../../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/string.js
136819
+ // ../../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/string.js
136827
136820
  init_cjs_shims();
136828
136821
  function titleize(name = "") {
136829
136822
  return name.replace(/[\W_]+/g, " ").split(" ").filter((word) => word.length > 0).map(
@@ -136831,7 +136824,7 @@ function titleize(name = "") {
136831
136824
  ).join(" ");
136832
136825
  }
136833
136826
 
136834
- // ../../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/shell.js
136827
+ // ../../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/shell.js
136835
136828
  init_cjs_shims();
136836
136829
  import os from "node:os";
136837
136830
  var ALIAS_NAME = "h2", isWindows = () => os.platform() === "win32", isGitBash = () => !!process.env.MINGW_PREFIX;
@@ -136946,10 +136939,10 @@ async function getCliCommand(directory = process.cwd(), forcePkgManager) {
136946
136939
  return (pkgManager === "bun" || pkgManager === "pnpm" || pkgManager === "yarn") && (cli = pkgManager), `${cli} shopify hydrogen`;
136947
136940
  }
136948
136941
 
136949
- // ../../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/auth.js
136942
+ // ../../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/auth.js
136950
136943
  init_cjs_shims();
136951
136944
 
136952
- // ../../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/business-platform/user-account.js
136945
+ // ../../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/business-platform/user-account.js
136953
136946
  init_cjs_shims();
136954
136947
 
136955
136948
  // ../cli-kit/dist/public/node/api/business-platform.js
@@ -136966,7 +136959,7 @@ var addCursorAndFiltersToAppLogsUrl = (baseUrl, cursor, filters) => {
136966
136959
  };
136967
136960
 
136968
136961
  // ../cli-kit/dist/public/node/api/partners.js
136969
- var import_bottleneck = __toESM(require_lib2(), 1), limiter = new import_bottleneck.default({
136962
+ var import_bottleneck = __toESM(require_lib2()), limiter = new import_bottleneck.default({
136970
136963
  minTime: 150,
136971
136964
  maxConcurrent: 10
136972
136965
  });
@@ -137076,7 +137069,7 @@ async function businessPlatformOrganizationsRequestDoc(options2) {
137076
137069
  });
137077
137070
  }
137078
137071
 
137079
- // ../../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/business-platform/user-account.js
137072
+ // ../../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/business-platform/user-account.js
137080
137073
  var CurrentUserAccountQuery = `#graphql
137081
137074
  query currentUserAccount {
137082
137075
  currentUserAccount {
@@ -137155,7 +137148,7 @@ async function getUserAccount(token) {
137155
137148
  };
137156
137149
  }
137157
137150
 
137158
- // ../../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/log.js
137151
+ // ../../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/log.js
137159
137152
  init_cjs_shims();
137160
137153
  var originalConsole = { ...console }, methodsReplaced = /* @__PURE__ */ new Set(), addedReplacers = /* @__PURE__ */ new Set(), messageReplacers = [];
137161
137154
  function addMessageReplacers(key, ...items) {
@@ -137384,43 +137377,6 @@ Request`)),
137384
137377
  }
137385
137378
  ]);
137386
137379
  }
137387
- function createRemixLogger() {
137388
- let noop = () => {
137389
- }, buildMessageBody = (message, details) => `In Remix:
137390
-
137391
- ` + source_default.bold(message) + (details ? `
137392
-
137393
- ` + details.join(`
137394
- `) : "");
137395
- return {
137396
- dev: noop,
137397
- info: noop,
137398
- debug: noop,
137399
- warn: (message, options2) => {
137400
- renderWarning({ body: buildMessageBody(message, options2?.details) });
137401
- },
137402
- error: (message, options2) => {
137403
- renderFatalError({
137404
- name: "error",
137405
- type: 0,
137406
- message: buildMessageBody(message, options2?.details),
137407
- skipOclifErrorHandling: !0,
137408
- tryMessage: ""
137409
- });
137410
- }
137411
- };
137412
- }
137413
- async function muteRemixLogs(root) {
137414
- try {
137415
- let { logger } = await importLocal(
137416
- "@remix-run/dev/dist/tux/logger.js",
137417
- root
137418
- );
137419
- logger.warn = logger.debug = logger.info = () => {
137420
- };
137421
- } catch {
137422
- }
137423
- }
137424
137380
  function setH2OVerbose() {
137425
137381
  !process.env.DEBUG || process.env.DEBUG === "*" ? process.env.DEBUG = "h2:*,o2:*" : process.env.DEBUG += ",h2:*,o2:*";
137426
137382
  }
@@ -137428,7 +137384,7 @@ function isH2Verbose() {
137428
137384
  return !!(process.env.DEBUG === "*" || process.env.DEBUG?.includes("h2:*"));
137429
137385
  }
137430
137386
 
137431
- // ../../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/auth.js
137387
+ // ../../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/auth.js
137432
137388
  async function logout2(root) {
137433
137389
  await logout(), await resetConfig(root);
137434
137390
  }
@@ -137467,9 +137423,9 @@ function renderLoginSuccess(config) {
137467
137423
  });
137468
137424
  }
137469
137425
 
137470
- // ../../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/common.js
137426
+ // ../../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/common.js
137471
137427
  init_cjs_shims();
137472
- import { symlink, readdir as readdir4 } from "node:fs/promises";
137428
+ import { symlink, readdir as readdir3 } from "node:fs/promises";
137473
137429
 
137474
137430
  // ../cli-kit/dist/public/node/git.js
137475
137431
  init_cjs_shims();
@@ -140917,11 +140873,11 @@ async function removeGitRemote(directory, remoteName = "origin") {
140917
140873
  await repo.removeRemote(remoteName);
140918
140874
  }
140919
140875
 
140920
- // ../../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/setups/routes/generate.js
140876
+ // ../../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/setups/routes/generate.js
140921
140877
  init_cjs_shims();
140922
- import { readdir as readdir3 } from "node:fs/promises";
140878
+ import { readdir as readdir2 } from "node:fs/promises";
140923
140879
 
140924
- // ../../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/remix-version-interop.js
140880
+ // ../../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/remix-version-interop.js
140925
140881
  init_cjs_shims();
140926
140882
  import { createRequire as createRequire2 } from "module";
140927
140883
  function convertRouteToV1(route) {
@@ -140935,53 +140891,17 @@ function isV1RouteConventionInstalled() {
140935
140891
  }
140936
140892
  }
140937
140893
 
140938
- // ../../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/remix-config.js
140894
+ // ../../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/remix-config.js
140939
140895
  init_cjs_shims();
140940
- import { createRequire as createRequire4 } from "node:module";
140896
+ import { createRequire as createRequire3 } from "node:module";
140941
140897
  import path2 from "node:path";
140942
- import { readdir as readdir2 } from "node:fs/promises";
140943
140898
 
140944
- // ../../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/remix-version-check.js
140899
+ // ../../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/remix-version-check.js
140945
140900
  init_cjs_shims();
140946
- import { createRequire as createRequire3 } from "node:module";
140947
- var REQUIRED_REMIX_VERSION = "^2.16.1";
140948
- function checkRemixVersions(projectPath, requiredVersionInHydrogen = REQUIRED_REMIX_VERSION) {
140949
- let require22 = createRequire3(import.meta.url), satisfiesSemver = require22("semver/functions/satisfies.js"), outOfSyncPkgs = [
140950
- "dev",
140951
- "react",
140952
- "server-runtime",
140953
- "css-bundle",
140954
- "node",
140955
- "express",
140956
- "eslint-config"
140957
- ].map((name) => getRemixPackageVersion(require22, name, projectPath)).filter(
140958
- (pkg) => pkg.version && !satisfiesSemver(pkg.version, requiredVersionInHydrogen)
140959
- );
140960
- if (outOfSyncPkgs.length === 0) return;
140961
- let items = outOfSyncPkgs.reduce((acc, item) => (item.version && acc.push(`${item.name}@${item.version}`), acc), []);
140962
- renderWarning({
140963
- headline: `The current version of Hydrogen requires Remix @${requiredVersionInHydrogen}. The following packages are out of sync:`,
140964
- body: [
140965
- { list: { items } },
140966
- `
140967
- Please ensure your Remix packages have the same version and are in sync with Hydrogen.`
140968
- ]
140969
- });
140970
- }
140971
- function getRemixPackageVersion(require22, name, root) {
140972
- let pkgName = "@remix-run/" + name, result = { name: pkgName, version: "" };
140973
- try {
140974
- let pkgJsonPath2 = require22.resolve(`${pkgName}/package.json`, {
140975
- paths: [root]
140976
- }), pkgJson = require22(pkgJsonPath2);
140977
- result.version = pkgJson.version;
140978
- } catch {
140979
- }
140980
- return result;
140981
- }
140982
140901
 
140983
- // ../../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/vite-config.js
140902
+ // ../../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/vite-config.js
140984
140903
  init_cjs_shims();
140904
+ var REMIX_COMPILER_ERROR_MESSAGE = "Classic Remix Compiler projects are no longer supported, please upgrade to Vite by running 'npx shopify hydrogen setup vite'";
140985
140905
  async function hasViteConfig(root) {
140986
140906
  return !!(await findFileWithExtension(root, "vite.config")).filepath;
140987
140907
  }
@@ -141005,7 +140925,7 @@ async function getViteConfig(root, ssrEntryFlag) {
141005
140925
  command,
141006
140926
  mode,
141007
140927
  mode
141008
- ), { appDirectory, serverBuildFile, routes } = getRemixConfigFromVite(resolvedViteConfig), serverOutDir = resolvedViteConfig.build.outDir, clientOutDir = serverOutDir.replace(/server$/, "client"), rollupOutput = resolvedViteConfig.build.rollupOptions.output, { entryFileNames } = (Array.isArray(rollupOutput) ? rollupOutput[0] : rollupOutput) ?? {}, serverOutFile = joinPath(
140928
+ ), { appDirectory, serverBuildFile, routes } = getReactRouterOrRemixConfigFromVite(resolvedViteConfig), serverOutDir = resolvedViteConfig.build.outDir, clientOutDir = serverOutDir.replace(/server$/, "client"), rollupOutput = resolvedViteConfig.build.rollupOptions.output, { entryFileNames } = (Array.isArray(rollupOutput) ? rollupOutput[0] : rollupOutput) ?? {}, serverOutFile = joinPath(
141009
140929
  serverOutDir,
141010
140930
  typeof entryFileNames == "string" ? entryFileNames : serverBuildFile ?? "index.js"
141011
140931
  ), ssrEntry = ssrEntryFlag ?? resolvedViteConfig.build.ssr, resolvedSsrEntry = resolvePath(
@@ -141029,6 +140949,23 @@ async function getViteConfig(root, ssrEntryFlag) {
141029
140949
  }
141030
140950
  };
141031
140951
  }
140952
+ function getReactRouterOrRemixConfigFromVite(viteConfig) {
140953
+ try {
140954
+ return getReactRouterConfigFromVite(viteConfig);
140955
+ } catch {
140956
+ return getRemixConfigFromVite(viteConfig);
140957
+ }
140958
+ }
140959
+ function getReactRouterConfigFromVite(viteConfig) {
140960
+ if (!viteConfig.__reactRouterPluginContext)
140961
+ throw new Error("Could not resolve React Router config");
140962
+ let { appDirectory, serverBuildFile, routes } = viteConfig.__reactRouterPluginContext.reactRouterConfig;
140963
+ return {
140964
+ appDirectory,
140965
+ serverBuildFile,
140966
+ routes
140967
+ };
140968
+ }
141032
140969
  function getRemixConfigFromVite(viteConfig) {
141033
140970
  let { remixConfig } = findHydrogenPlugin(viteConfig)?.api?.getPluginOptions() ?? {};
141034
140971
  return remixConfig ? {
@@ -141047,14 +140984,14 @@ function findOxygenPlugin(config) {
141047
140984
  return findPlugin(config, "oxygen:main");
141048
140985
  }
141049
140986
 
141050
- // ../../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/remix-config.js
140987
+ // ../../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/remix-config.js
141051
140988
  async function hasRemixConfigFile(root) {
141052
140989
  return !!(await findFileWithExtension(root, "remix.config")).filepath;
141053
140990
  }
141054
140991
  async function isClassicProject(root) {
141055
140992
  return await isViteProject(root) ? !1 : hasRemixConfigFile(root);
141056
140993
  }
141057
- var BUILD_DIR = "dist", CLIENT_SUBDIR = "client", WORKER_SUBDIR = "worker", oxygenServerMainFields = ["browser", "module", "main"];
140994
+ var BUILD_DIR = "dist", CLIENT_SUBDIR = "client", WORKER_SUBDIR = "worker";
141058
140995
  function getProjectPaths(appPath) {
141059
140996
  let root = appPath ?? process.cwd(), publicPath = path2.join(root, "public"), buildPath = path2.join(root, BUILD_DIR), buildPathClient = path2.join(buildPath, CLIENT_SUBDIR), buildPathWorkerFile = path2.join(buildPath, WORKER_SUBDIR, "index.js");
141060
140997
  return {
@@ -141065,122 +141002,19 @@ function getProjectPaths(appPath) {
141065
141002
  publicPath
141066
141003
  };
141067
141004
  }
141068
- function handleRemixImportFail() {
141069
- let remixVersion = REQUIRED_REMIX_VERSION;
141070
- throw new AbortError(
141071
- "Could not load Remix packages.",
141072
- `Please make sure you have \`@remix-run/dev@${remixVersion}\` installed and all the other Remix packages have the same version.`
141073
- );
141074
- }
141075
141005
  function getRawRemixConfig(root) {
141076
141006
  return findFileWithExtension(root, "remix.config").then(({ filepath }) => {
141077
141007
  if (!filepath) throw new AbortError("No remix.config.js file found.");
141078
- return createRequire4(import.meta.url)(filepath);
141008
+ return createRequire3(import.meta.url)(filepath);
141079
141009
  });
141080
141010
  }
141081
141011
  async function getRemixConfig(root, mode = process.env.NODE_ENV) {
141082
- if (await isViteProject(root))
141083
- return (await getViteConfig(root)).remixConfig;
141084
- await muteRemixLogs(root);
141085
- let { resolveConfig: resolveConfig2 } = await importLocal(
141086
- "@remix-run/dev/dist/config.js",
141087
- root
141088
- ).catch(handleRemixImportFail), { createContext } = await importLocal(
141089
- "@remix-run/dev/dist/vite/vite-node.js",
141090
- root
141091
- ).catch(handleRemixImportFail), appConfig = await getRawRemixConfig(root), routesViteNodeContext = await createContext({ root, mode }), vite = await importVite(root), config = await resolveConfig2(appConfig, {
141092
- rootDirectory: root,
141093
- serverMode: mode,
141094
- vite,
141095
- routesViteNodeContext
141096
- });
141097
- if (isHydrogenMonorepo && hydrogenPackagesPath) {
141098
- let packagesPath = hydrogenPackagesPath;
141099
- config.watchPaths ??= [], config.watchPaths.push(
141100
- ...(await readdir2(packagesPath)).map(
141101
- (pkg) => pkg === "hydrogen-react" ? path2.resolve(packagesPath, pkg, "dist", "browser-dev", "index.mjs") : path2.resolve(packagesPath, pkg, "dist", "development", "index.js")
141102
- )
141103
- ), config.watchPaths.push(
141104
- path2.join(packagesPath, "cli", "dist", "virtual-routes", "**", "*")
141105
- );
141106
- }
141107
- return routesViteNodeContext.server.server.close(), config;
141108
- }
141109
- function assertOxygenChecks(config) {
141110
- try {
141111
- createRequire4(import.meta.url).resolve("@shopify/remix-oxygen");
141112
- } catch {
141113
- return;
141114
- }
141115
- if (config.serverEntryPoint)
141116
- assertEntryFileExists(config.rootDirectory, config.serverEntryPoint);
141117
- else
141118
- throw new AbortError(
141119
- "Could not find a server entry point.",
141120
- "Please add a server option to your remix.config.js pointing to an Oxygen worker entry file."
141121
- );
141122
- if (config.serverPlatform !== "neutral")
141123
- throw new AbortError(
141124
- 'The serverPlatform in remix.config.js must be "neutral".'
141125
- );
141126
- if (config.serverModuleFormat !== "esm")
141127
- throw new AbortError(
141128
- 'The serverModuleFormat in remix.config.js must be "esm".'
141129
- );
141130
- if (config.serverDependenciesToBundle !== "all")
141131
- throw new AbortError(
141132
- 'The serverDependenciesToBundle in remix.config.js must be "all".'
141133
- );
141134
- if (!config.serverConditions?.includes("worker"))
141135
- throw new AbortError(
141136
- 'The serverConditions in remix.config.js must include "worker".'
141137
- );
141138
- if (process.env.NODE_ENV === "development" && !config.serverConditions?.includes("development") && outputWarn(
141139
- "Add `process.env.NODE_ENV` value to serverConditions in remix.config.js to enable debugging features in development."
141140
- ), !config.serverMainFields || !oxygenServerMainFields.every((v, i) => config.serverMainFields?.[i] === v))
141141
- throw new AbortError(
141142
- `The serverMainFields in remix.config.js must be ${JSON.stringify(
141143
- oxygenServerMainFields
141144
- )}.`
141145
- );
141146
- let cdnUrl = process.env.HYDROGEN_ASSET_BASE_URL;
141147
- if (cdnUrl && !config.publicPath.startsWith(cdnUrl))
141148
- throw new AbortError(
141149
- "The publicPath in remix.config.js must be prepended with the value of `process.env.HYDROGEN_ASSET_BASE_URL`."
141150
- );
141151
- let expectedServerBuildPath = path2.join(
141152
- BUILD_DIR,
141153
- WORKER_SUBDIR,
141154
- "index.js"
141155
- );
141156
- if (config.serverBuildPath !== path2.resolve(config.rootDirectory, expectedServerBuildPath))
141157
- throw new AbortError(
141158
- `The serverBuildPath in remix.config.js must be "${expectedServerBuildPath}".`
141159
- );
141160
- let expectedAssetsBuildDirectory = path2.join(BUILD_DIR, CLIENT_SUBDIR);
141161
- if (!config.assetsBuildDirectory.startsWith(
141162
- path2.resolve(config.rootDirectory, expectedAssetsBuildDirectory)
141163
- ))
141164
- throw new AbortError(
141165
- `The assetsBuildDirectory in remix.config.js must be in "${expectedAssetsBuildDirectory}".`
141166
- );
141167
- }
141168
- async function assertEntryFileExists(root, fileRelative) {
141169
- let fileAbsolute = path2.resolve(root, fileRelative);
141170
- if (!await fileExists(fileAbsolute)) {
141171
- if (!path2.extname(fileAbsolute) && (await readdir2(path2.dirname(fileAbsolute))).some((file) => {
141172
- let { name, ext } = path2.parse(file);
141173
- return name === path2.basename(fileAbsolute) && /^\.[jt]s$/.test(ext);
141174
- }))
141175
- return;
141176
- throw new AbortError(
141177
- `Entry file "${fileRelative}" not found.`,
141178
- "Please ensure the file exists and that the path is correctly added to the `server` property in remix.config.js."
141179
- );
141180
- }
141012
+ if (!await isViteProject(root))
141013
+ throw new AbortError(REMIX_COMPILER_ERROR_MESSAGE);
141014
+ return (await getViteConfig(root)).remixConfig;
141181
141015
  }
141182
141016
 
141183
- // ../../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/setups/routes/generate.js
141017
+ // ../../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/setups/routes/generate.js
141184
141018
  var NO_LOCALE_PATTERNS = [/robots\.txt/], ROUTE_MAP = {
141185
141019
  home: ["_index", "$"],
141186
141020
  page: "pages*",
@@ -141192,10 +141026,11 @@ var NO_LOCALE_PATTERNS = [/robots\.txt/], ROUTE_MAP = {
141192
141026
  account: "account*",
141193
141027
  search: ["search", "api.predictive-search"],
141194
141028
  robots: "[robots.txt]",
141195
- sitemap: ["[sitemap.xml]", "sitemap.$type.$page[.xml]"]
141029
+ sitemap: ["[sitemap.xml]", "sitemap.$type.$page[.xml]"],
141030
+ tokenlessApi: "api.$version.[graphql.json]"
141196
141031
  }, allRouteTemplateFiles = [];
141197
141032
  async function getResolvedRoutes(routeKeys = Object.keys(ROUTE_MAP)) {
141198
- allRouteTemplateFiles.length === 0 && (allRouteTemplateFiles = (await readdir3(await getTemplateAppFile(ASSETS_STARTER_DIR_ROUTES))).map((item) => item.replace(/\.tsx?$/, "")));
141033
+ allRouteTemplateFiles.length === 0 && (allRouteTemplateFiles = (await readdir2(await getTemplateAppFile(ASSETS_STARTER_DIR_ROUTES))).map((item) => item.replace(/\.tsx?$/, "")));
141199
141034
  let routeGroups = {}, resolvedRouteFiles = [];
141200
141035
  for (let key of routeKeys) {
141201
141036
  routeGroups[key] = [];
@@ -141247,7 +141082,7 @@ async function generateRoutes(options2, remixConfig) {
141247
141082
  async function getLocalePrefix(routesDirectory, { localePrefix, routeName, v1RouteConvention }) {
141248
141083
  if (localePrefix) return localePrefix;
141249
141084
  if (localePrefix !== void 0 || routeName === "all") return;
141250
- let existingFiles = await readdir3(routesDirectory).catch(() => []), coreRouteWithLocaleRE = v1RouteConvention ? /^\(\$(\w+)\)$/ : /^\(\$(\w+)\)\.(_index|\$|cart).[jt]sx?$/, coreRouteWithLocale = existingFiles.find(
141085
+ let existingFiles = await readdir2(routesDirectory).catch(() => []), coreRouteWithLocaleRE = v1RouteConvention ? /^\(\$(\w+)\)$/ : /^\(\$(\w+)\)\.(_index|\$|cart).[jt]sx?$/, coreRouteWithLocale = existingFiles.find(
141251
141086
  (file) => coreRouteWithLocaleRE.test(file)
141252
141087
  );
141253
141088
  if (coreRouteWithLocale)
@@ -141388,7 +141223,7 @@ async function copyRouteTemplate({
141388
141223
  adapter && (templateContent = replaceAdapters(templateContent, adapter)), typescript || (templateContent = await transpileFile(templateContent, templatePath)), templateContent = await formatCode(templateContent, formatOptions, routePath), await writeFile(routePath, templateContent);
141389
141224
  }
141390
141225
 
141391
- // ../../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/common.js
141226
+ // ../../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/common.js
141392
141227
  var LANGUAGES = {
141393
141228
  js: "JavaScript",
141394
141229
  ts: "TypeScript"
@@ -141638,6 +141473,7 @@ node_modules
141638
141473
  /.mf
141639
141474
  .env
141640
141475
  .shopify
141476
+ .react-router
141641
141477
  `.slice(1);
141642
141478
  async function createInitialCommit(directory) {
141643
141479
  try {
@@ -141760,7 +141596,7 @@ function createAbortHandler(controller, project) {
141760
141596
  };
141761
141597
  }
141762
141598
  async function projectExists(projectDir) {
141763
- return await fileExists(projectDir) && await isDirectory(projectDir) && (await readdir4(projectDir)).length > 0;
141599
+ return await fileExists(projectDir) && await isDirectory(projectDir) && (await readdir3(projectDir)).length > 0;
141764
141600
  }
141765
141601
  function normalizeRoutePath(routePath) {
141766
141602
  return routePath.replace(/(^|\.)_index$/, "").replace(/((^|\.)[^\.]+)_\./g, "$1.").replace(/\.(?!\w+\])/g, "/").replace(/\$$/g, ":catchAll").replace(/\$/g, ":").replace(/[\[\]]/g, "").replace(/:\w*Handle/i, ":handle");
@@ -141835,7 +141671,7 @@ function generateRandomName() {
141835
141671
  ])} ${geographicalFeature}`;
141836
141672
  }
141837
141673
 
141838
- // ../../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/link.js
141674
+ // ../../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/link.js
141839
141675
  var Link = class _Link extends base_command_default {
141840
141676
  static descriptionWithMarkdown = `Links your local development environment to a remote Hydrogen storefront. You can link an unlimited number of development environments to a single Hydrogen storefront.
141841
141677
 
@@ -141956,7 +141792,7 @@ async function createNewStorefront(root, session, storefronts) {
141956
141792
  return storefront;
141957
141793
  }
141958
141794
 
141959
- // ../../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/customer-application-update.js
141795
+ // ../../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/customer-application-update.js
141960
141796
  init_cjs_shims();
141961
141797
  var CUSTOMER_APPLICATION_URLS_REPLACE = `#graphql
141962
141798
  mutation CustomerApplicationUrlsReplace($storefrontId: ID!, $urlsReplaceInput: HydrogenStorefrontCustomerApplicationUrlsReplaceInput!) {
@@ -141984,7 +141820,7 @@ async function replaceCustomerApplicationUrls(adminSession, storefrontId, urlsRe
141984
141820
  return { success, userErrors };
141985
141821
  }
141986
141822
 
141987
- // ../../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/customer-account/push.js
141823
+ // ../../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/customer-account/push.js
141988
141824
  var CustomerAccountPush = class _CustomerAccountPush extends base_command_default {
141989
141825
  static description = "Push project configuration to admin";
141990
141826
  static flags = {
@@ -142117,7 +141953,7 @@ async function getStorefrontId(root, storefrontIdFromFlag) {
142117
141953
  }) ? (await getConfig(root)).storefront?.id : void 0;
142118
141954
  }
142119
141955
 
142120
- // ../../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/environment-variables.js
141956
+ // ../../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/environment-variables.js
142121
141957
  init_cjs_shims();
142122
141958
 
142123
141959
  // ../cli-kit/dist/public/node/dot-env.js
@@ -142182,7 +142018,7 @@ function createDotEnvFileLine(key, value, quote2) {
142182
142018
  return `${key}=${value}`;
142183
142019
  }
142184
142020
 
142185
- // ../../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/pull-variables.js
142021
+ // ../../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/pull-variables.js
142186
142022
  init_cjs_shims();
142187
142023
  var PullVariablesQuery = `#graphql
142188
142024
  query PullVariables($id: ID!, $handle: String) {
@@ -142210,7 +142046,7 @@ async function getStorefrontEnvVariables(adminSession, storefrontId, envHandle)
142210
142046
  return hydrogenStorefront;
142211
142047
  }
142212
142048
 
142213
- // ../../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-environments.js
142049
+ // ../../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-environments.js
142214
142050
  init_cjs_shims();
142215
142051
  var ListEnvironmentsQuery = `#graphql
142216
142052
  query ListStorefronts($id: ID!) {
@@ -142238,7 +142074,7 @@ async function getStorefrontEnvironments(adminSession, storefrontId) {
142238
142074
  return hydrogenStorefront;
142239
142075
  }
142240
142076
 
142241
- // ../../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/common.js
142077
+ // ../../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/common.js
142242
142078
  init_cjs_shims();
142243
142079
  function orderEnvironmentsBySafety(environments) {
142244
142080
  return [
@@ -142279,7 +142115,7 @@ function environmentNotFound(criterion, value) {
142279
142115
  );
142280
142116
  }
142281
142117
 
142282
- // ../../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/environment-variables.js
142118
+ // ../../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/environment-variables.js
142283
142119
  var createEmptyRemoteVars = () => ({
142284
142120
  remoteVariables: {},
142285
142121
  remoteSecrets: {}
@@ -142350,7 +142186,7 @@ async function getLocalVariables(root, envFile) {
142350
142186
  );
142351
142187
  }
142352
142188
 
142353
- // ../../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/tunneling.js
142189
+ // ../../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/tunneling.js
142354
142190
  init_cjs_shims();
142355
142191
  async function startTunnelPlugin(config, port, provider) {
142356
142192
  let hooks = await fanoutHooks(config, "tunnel_start", { port, provider }), first2 = Object.values(hooks).filter(
@@ -142381,7 +142217,7 @@ async function pollTunnelURL(tunnelClient) {
142381
142217
  });
142382
142218
  }
142383
142219
 
142384
- // ../../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/dev-shared.js
142220
+ // ../../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/dev-shared.js
142385
142221
  function isMockShop(envVariables) {
142386
142222
  return envVariables.PUBLIC_STORE_DOMAIN === "mock.shop" || // We fallback to mock.shop if the env var is falsy.
142387
142223
  // When it's undefined, it might be overwritten by remote variables.
@@ -142515,20 +142351,11 @@ export {
142515
142351
  overrideFlag,
142516
142352
  importVite,
142517
142353
  importLocal,
142518
- muteDevLogs,
142519
- enhanceAuthLogs,
142520
- enhanceH2Logs,
142521
- createRemixLogger,
142522
- muteRemixLogs,
142523
- setH2OVerbose,
142524
- isH2Verbose,
142525
- checkRemixVersions,
142526
142354
  isClassicProject,
142527
142355
  getProjectPaths,
142528
- handleRemixImportFail,
142529
142356
  getRawRemixConfig,
142530
142357
  getRemixConfig,
142531
- assertOxygenChecks,
142358
+ REMIX_COMPILER_ERROR_MESSAGE,
142532
142359
  hasViteConfig,
142533
142360
  isViteProject,
142534
142361
  getViteConfig,
@@ -142554,6 +142381,11 @@ export {
142554
142381
  businessPlatformRequestDoc,
142555
142382
  businessPlatformOrganizationsRequest,
142556
142383
  businessPlatformOrganizationsRequestDoc,
142384
+ muteDevLogs,
142385
+ enhanceAuthLogs,
142386
+ enhanceH2Logs,
142387
+ setH2OVerbose,
142388
+ isH2Verbose,
142557
142389
  logout2 as logout,
142558
142390
  login,
142559
142391
  renderLoginSuccess,
@@ -142602,4 +142434,4 @@ export {
142602
142434
  getDebugBannerLine,
142603
142435
  getUtilityBannerlines
142604
142436
  };
142605
- //# sourceMappingURL=chunk-7EV36FNO.js.map
142437
+ //# sourceMappingURL=chunk-M3TVLW4G.js.map