@shopify/cli 4.5.2 → 4.6.1

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 (363) hide show
  1. package/dist/analytics-3ICKUTK2.js +1 -0
  2. package/dist/analytics-73NVZI4Z.js +1 -0
  3. package/dist/assets/hydrogen/starter/package.json +1 -1
  4. package/dist/bootstrap.js +1 -1
  5. package/dist/{chokidar-VDIVGBZH.js → chokidar-5RWEYTNQ.js} +1 -1
  6. package/dist/{chunk-SH6Q5CLM.js → chunk-25Z36VJG.js} +1 -1
  7. package/dist/{chunk-OC5PD4ID.js → chunk-2AVFG5KT.js} +1 -1
  8. package/dist/chunk-2DMTEIS3.js +2 -0
  9. package/dist/chunk-2GB3EAD3.js +153 -0
  10. package/dist/{chunk-UQWFDL3F.js → chunk-2KD4LHRT.js} +1 -1
  11. package/dist/{chunk-4VJ5VBSR.js → chunk-2NB4P6BB.js} +1 -1
  12. package/dist/{chunk-75DBVSVI.js → chunk-2OYQHHKC.js} +1 -1
  13. package/dist/{chunk-OMXKQY2L.js → chunk-2VJKXWLG.js} +1 -1
  14. package/dist/{chunk-V6QZF5YS.js → chunk-3Q5ESVIY.js} +1 -1
  15. package/dist/{chunk-TPGREOWO.js → chunk-3XCIUG5P.js} +1 -1
  16. package/dist/chunk-445NFHXL.js +3 -0
  17. package/dist/{chunk-WN5VTUWJ.js → chunk-4BPFJDH3.js} +1 -1
  18. package/dist/chunk-4E5RGEJO.js +1 -0
  19. package/dist/{chunk-LGFOE4XL.js → chunk-4IHSAT76.js} +1 -1
  20. package/dist/chunk-4TANJ4JK.js +1 -0
  21. package/dist/{chunk-VCWESQBC.js → chunk-534U3DKZ.js} +2 -2
  22. package/dist/{chunk-KIAMA3L2.js → chunk-56T6YCU2.js} +1 -1
  23. package/dist/chunk-5HJTCBBV.js +317 -0
  24. package/dist/{chunk-523SJVNT.js → chunk-5INBKZRD.js} +1 -1
  25. package/dist/{chunk-DIPTSBQM.js → chunk-5Q4WAGQL.js} +1 -1
  26. package/dist/{chunk-35FS2NTM.js → chunk-5QDM4XIK.js} +1 -1
  27. package/dist/chunk-65CEF3SM.js +8 -0
  28. package/dist/{chunk-NSADN5S2.js → chunk-6HQMZ324.js} +141 -141
  29. package/dist/{chunk-QEVGRNUE.js → chunk-6KAWCN3I.js} +3 -3
  30. package/dist/{chunk-GDHD3TGC.js → chunk-6QDOCBD4.js} +1 -1
  31. package/dist/{chunk-LVLDPYH5.js → chunk-6ZPHB5U2.js} +1 -1
  32. package/dist/{chunk-XS7WK4YK.js → chunk-7AWKXTNS.js} +1 -1
  33. package/dist/chunk-7EE7YOCR.js +16 -0
  34. package/dist/{chunk-L42FYXFW.js → chunk-7L5AIZOP.js} +4 -4
  35. package/dist/chunk-7MD5MIGN.js +103 -0
  36. package/dist/{chunk-N6IFIMC6.js → chunk-7TXWKLPY.js} +1 -1
  37. package/dist/{chunk-ZUWEGJA7.js → chunk-7US4TVO2.js} +1 -1
  38. package/dist/{chunk-7TQ6HVHN.js → chunk-A7IDVXF7.js} +1 -1
  39. package/dist/chunk-AFM3UZQO.js +684 -0
  40. package/dist/{chunk-5GVE4ILZ.js → chunk-AHLNB45E.js} +1 -1
  41. package/dist/{chunk-JOKLZMTP.js → chunk-ARCAYYRW.js} +1 -1
  42. package/dist/{chunk-JADXT2DY.js → chunk-B3U6GDHL.js} +1 -1
  43. package/dist/chunk-BCZMDFI2.js +370 -0
  44. package/dist/chunk-BDDROQGK.js +26 -0
  45. package/dist/{chunk-P6LVSNTT.js → chunk-BKJMVAI7.js} +1 -1
  46. package/dist/chunk-BOAGJ6P5.js +1 -0
  47. package/dist/{chunk-TSEPNC3O.js → chunk-BPDUBZMU.js} +1 -1
  48. package/dist/chunk-BQOKTPUU.js +1 -0
  49. package/dist/{chunk-6VR22Z5R.js → chunk-C7LFLIRT.js} +3 -3
  50. package/dist/chunk-CELVG4AL.js +6 -0
  51. package/dist/{chunk-BQARKSGG.js → chunk-CNI7ZUST.js} +1 -1
  52. package/dist/{chunk-YKNMNGV7.js → chunk-CONJQV7M.js} +1 -1
  53. package/dist/chunk-CTNBSUVU.js +83 -0
  54. package/dist/chunk-CV5ELBVU.js +1 -0
  55. package/dist/{chunk-DI5ZPWNA.js → chunk-DC7TXY4K.js} +1 -1
  56. package/dist/{chunk-ODSMT2ZC.js → chunk-DXUISRMZ.js} +1 -1
  57. package/dist/chunk-EHV7EKB3.js +2 -0
  58. package/dist/{chunk-SZM6ANMN.js → chunk-EQNJ2NQD.js} +2 -2
  59. package/dist/{chunk-NIVGP4LB.js → chunk-EVIO6OWW.js} +1 -1
  60. package/dist/chunk-EZBB2ULE.js +1 -0
  61. package/dist/{chunk-Z6VNPAY7.js → chunk-FBVNXRVB.js} +1 -1
  62. package/dist/chunk-FFSDGRAN.js +1 -0
  63. package/dist/{chunk-YXNKDX56.js → chunk-FG5QXIQH.js} +1 -1
  64. package/dist/{chunk-6ZWMXMNM.js → chunk-FGG6HXIZ.js} +1 -1
  65. package/dist/{chunk-3EJGRQTH.js → chunk-FJCZ4F6J.js} +1 -1
  66. package/dist/{chunk-2ACN7JIZ.js → chunk-FKH5ZF2C.js} +1 -1
  67. package/dist/{chunk-LSCDB36D.js → chunk-GD5IRJBE.js} +1 -1
  68. package/dist/{chunk-ZAN7AZTX.js → chunk-GJEG7VGX.js} +1 -1
  69. package/dist/{chunk-XUAAQI5N.js → chunk-GT6BJ2GK.js} +1 -1
  70. package/dist/chunk-GWNV44NZ.js +18 -0
  71. package/dist/{chunk-ZT4PUH7L.js → chunk-GXO2RRV2.js} +1 -1
  72. package/dist/{chunk-MC466GSO.js → chunk-H5I7BSNG.js} +1 -1
  73. package/dist/{chunk-6AWRW3GS.js → chunk-H5YC3EP6.js} +1 -1
  74. package/dist/chunk-HVMEBH24.js +6 -0
  75. package/dist/{chunk-5N7H4PJJ.js → chunk-HY3INWPI.js} +1 -1
  76. package/dist/{chunk-XXLGM6OZ.js → chunk-I6ST5X56.js} +1 -1
  77. package/dist/{chunk-RFOALCVH.js → chunk-ID6ASBGV.js} +1 -1
  78. package/dist/{chunk-R6A754UW.js → chunk-IDQT2UY7.js} +1 -1
  79. package/dist/chunk-IIOFR25P.js +3 -0
  80. package/dist/{chunk-FSVSM57K.js → chunk-IJEDTDSJ.js} +6 -6
  81. package/dist/{chunk-42RVM4EZ.js → chunk-ILICQWUF.js} +1 -1
  82. package/dist/chunk-IMWEC6NF.js +16 -0
  83. package/dist/{chunk-Q7DSLGTN.js → chunk-ITNFDLZ4.js} +1 -1
  84. package/dist/chunk-IU5U6KKO.js +4 -0
  85. package/dist/{chunk-YNX4DT2O.js → chunk-IXCDFXMB.js} +1 -1
  86. package/dist/chunk-J3D4KQOQ.js +1 -0
  87. package/dist/chunk-JJZNUFPD.js +44 -0
  88. package/dist/chunk-JRTJZAFJ.js +19 -0
  89. package/dist/chunk-JT7YTXJ7.js +1 -0
  90. package/dist/{chunk-EEEKSYWV.js → chunk-JX4HSDDG.js} +15 -15
  91. package/dist/chunk-K4M32VKU.js +5 -0
  92. package/dist/{chunk-XHTICMA7.js → chunk-K5GJNXDK.js} +1 -1
  93. package/dist/{chunk-5CV7GFWZ.js → chunk-KCNOFNS5.js} +1 -1
  94. package/dist/{chunk-3OCR7P3S.js → chunk-KM2R6O7V.js} +1 -1
  95. package/dist/{chunk-CX44CQFL.js → chunk-KNFDN3AP.js} +1 -1
  96. package/dist/{chunk-ZG7BVVT2.js → chunk-LD6ZCTZ3.js} +1 -1
  97. package/dist/{chunk-TM44Z7U7.js → chunk-LDWMX3KZ.js} +1 -1
  98. package/dist/{chunk-6K4DVV37.js → chunk-LEDVV6XK.js} +1 -1
  99. package/dist/chunk-LEEVJH4B.js +1 -0
  100. package/dist/{chunk-EOJNSPIH.js → chunk-LJZIIURR.js} +1 -1
  101. package/dist/{chunk-UHMRDG6J.js → chunk-LURVEPYP.js} +1 -1
  102. package/dist/{chunk-HQE5B2CF.js → chunk-LXOBW4AW.js} +1 -1
  103. package/dist/{chunk-AAK3WGD7.js → chunk-M5YGJYNI.js} +1 -1
  104. package/dist/{chunk-UMB4BWCK.js → chunk-MDQHEW7V.js} +1 -1
  105. package/dist/{chunk-ICRQZAXP.js → chunk-MMP3F6LO.js} +1 -1
  106. package/dist/{chunk-HOAVZLEG.js → chunk-MPYCIVRA.js} +1 -1
  107. package/dist/chunk-MY2H5XPY.js +7 -0
  108. package/dist/{chunk-SG5TRPJ7.js → chunk-N4RYVOXT.js} +1 -1
  109. package/dist/chunk-NB6HHZ36.js +1 -0
  110. package/dist/{chunk-UVIGXZMV.js → chunk-NEK2KNKR.js} +1 -1
  111. package/dist/{chunk-VJQJ5PTQ.js → chunk-NENUUNWB.js} +1 -1
  112. package/dist/{chunk-K4APB7O3.js → chunk-NJONAV7V.js} +1 -1
  113. package/dist/{chunk-7KWBVZPI.js → chunk-NKBSS7YL.js} +1 -1
  114. package/dist/{chunk-HSVZU7MP.js → chunk-NKT5U6IJ.js} +1 -1
  115. package/dist/{chunk-RLB5QHWG.js → chunk-NVQOAHID.js} +1 -1
  116. package/dist/{chunk-P7OSUECN.js → chunk-OHQTOHUX.js} +1 -1
  117. package/dist/chunk-P2P2MAZQ.js +1 -0
  118. package/dist/{chunk-KFUOVO3X.js → chunk-PCTVUTV3.js} +1 -1
  119. package/dist/{chunk-OJZT3NA2.js → chunk-PKR6HS4T.js} +1 -1
  120. package/dist/chunk-PKRDBS7O.js +5 -0
  121. package/dist/{chunk-BVWQZKNK.js → chunk-PMD6S7YG.js} +1 -1
  122. package/dist/{chunk-KPNNGJAW.js → chunk-PUOCHFFI.js} +1 -1
  123. package/dist/{chunk-ANH2V6DJ.js → chunk-Q2DPBMV4.js} +1 -1
  124. package/dist/{chunk-23LZNWB5.js → chunk-Q6XT3YKV.js} +1 -1
  125. package/dist/{chunk-TNUY66EE.js → chunk-QARALFHD.js} +1 -1
  126. package/dist/{chunk-XCGV3IJ5.js → chunk-QEL3F2NY.js} +1 -1
  127. package/dist/{chunk-P2SBE77Z.js → chunk-R2W5B7YI.js} +1 -1
  128. package/dist/chunk-REABQXMP.js +1 -0
  129. package/dist/{chunk-KQTVJMV6.js → chunk-RMF3YNWE.js} +1 -1
  130. package/dist/{chunk-TH6CLNGO.js → chunk-RTPVI7LE.js} +1 -1
  131. package/dist/{chunk-U3MSTPZP.js → chunk-SFZQFEZB.js} +1 -1
  132. package/dist/{chunk-7AY6HLQG.js → chunk-STCLJWHD.js} +1 -1
  133. package/dist/{chunk-7AYYQUJG.js → chunk-STJWHL36.js} +1 -1
  134. package/dist/{chunk-NYG2VQFQ.js → chunk-SZJHOXS6.js} +1 -1
  135. package/dist/{chunk-DZMXYETH.js → chunk-TEPMNVJN.js} +1 -1
  136. package/dist/{chunk-ML6SILEL.js → chunk-TNSMROUR.js} +1 -1
  137. package/dist/chunk-TR4OWSEX.js +77 -0
  138. package/dist/{chunk-AUAUAK6P.js → chunk-U3P5TIIR.js} +1 -1
  139. package/dist/{chunk-CEBDKIVH.js → chunk-UDDJQ34Y.js} +1 -1
  140. package/dist/chunk-UKQ7NE5V.js +1 -0
  141. package/dist/{chunk-KMQE7WFZ.js → chunk-UOQBCBKY.js} +1 -1
  142. package/dist/{chunk-RTINXD5Z.js → chunk-UQWT2PFO.js} +1 -1
  143. package/dist/{chunk-AATUQ2AY.js → chunk-UTK6V2NE.js} +80 -80
  144. package/dist/{chunk-XDV4PRFT.js → chunk-V26QBVCN.js} +1 -1
  145. package/dist/{chunk-T35C6NC7.js → chunk-VVEQ4IHW.js} +1 -1
  146. package/dist/chunk-VXBHTSMX.js +20 -0
  147. package/dist/chunk-W2357IN2.js +2 -0
  148. package/dist/chunk-W6ST525S.js +99 -0
  149. package/dist/chunk-WDCCITSG.js +1 -0
  150. package/dist/{chunk-5VRU3BT5.js → chunk-WE3VLC2S.js} +1 -1
  151. package/dist/chunk-WGMYSPR2.js +10 -0
  152. package/dist/chunk-WHT2RCAD.js +11 -0
  153. package/dist/{chunk-YWQPSMRZ.js → chunk-WOYI6SDK.js} +1 -1
  154. package/dist/{chunk-BUVP2UUA.js → chunk-WXJGZGQS.js} +1 -1
  155. package/dist/{chunk-DELISRUH.js → chunk-X4AZV5A2.js} +1 -1
  156. package/dist/{chunk-7PVNAILK.js → chunk-X5RH4ALT.js} +1 -1
  157. package/dist/{chunk-2TJ6LOCC.js → chunk-XBBP5BWC.js} +1 -1
  158. package/dist/{chunk-4UJNCOE6.js → chunk-XH32NPYG.js} +1 -1
  159. package/dist/{chunk-PEYYIWP6.js → chunk-XZ2KUBFJ.js} +1 -1
  160. package/dist/{chunk-TC3JOEMA.js → chunk-Y2PC2BBJ.js} +60 -60
  161. package/dist/{chunk-I5X3IP6T.js → chunk-Y7A7Z2V3.js} +1 -1
  162. package/dist/{chunk-UW6YEKST.js → chunk-YE7XCF44.js} +1 -1
  163. package/dist/{chunk-LXOBFJZO.js → chunk-YHH3JA36.js} +1 -1
  164. package/dist/chunk-YIFT67BD.js +4 -0
  165. package/dist/{chunk-34SINZ7L.js → chunk-YR7K4NQT.js} +1 -1
  166. package/dist/{chunk-VGSH33QU.js → chunk-Z36JS7OX.js} +1 -1
  167. package/dist/{chunk-WDSBR7KX.js → chunk-ZHPPBTNE.js} +1 -1
  168. package/dist/chunk-ZMSE5SQB.js +1 -0
  169. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  170. package/dist/cli/commands/app/build.js +1 -1
  171. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  172. package/dist/cli/commands/app/bulk/execute.js +1 -1
  173. package/dist/cli/commands/app/bulk/status.js +1 -1
  174. package/dist/cli/commands/app/config/link.js +1 -1
  175. package/dist/cli/commands/app/config/pull.js +1 -1
  176. package/dist/cli/commands/app/config/use.js +1 -1
  177. package/dist/cli/commands/app/config/validate.js +1 -1
  178. package/dist/cli/commands/app/demo/watcher.js +1 -1
  179. package/dist/cli/commands/app/deploy.js +1 -1
  180. package/dist/cli/commands/app/dev/clean.js +1 -1
  181. package/dist/cli/commands/app/dev.js +1 -1
  182. package/dist/cli/commands/app/env/pull.js +1 -1
  183. package/dist/cli/commands/app/env/show.js +1 -1
  184. package/dist/cli/commands/app/execute.js +1 -1
  185. package/dist/cli/commands/app/function/build.js +1 -1
  186. package/dist/cli/commands/app/function/info.js +1 -1
  187. package/dist/cli/commands/app/function/replay.js +1 -1
  188. package/dist/cli/commands/app/function/run.js +1 -1
  189. package/dist/cli/commands/app/function/schema.js +1 -1
  190. package/dist/cli/commands/app/function/typegen.js +1 -1
  191. package/dist/cli/commands/app/generate/extension.js +1 -1
  192. package/dist/cli/commands/app/graphiql.js +1 -1
  193. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  194. package/dist/cli/commands/app/import-extensions.js +1 -1
  195. package/dist/cli/commands/app/info.js +1 -1
  196. package/dist/cli/commands/app/init.js +1 -1
  197. package/dist/cli/commands/app/logs.js +1 -1
  198. package/dist/cli/commands/app/release.js +1 -1
  199. package/dist/cli/commands/app/versions/list.js +1 -1
  200. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  201. package/dist/cli/commands/auth/login.js +1 -1
  202. package/dist/cli/commands/auth/logout.js +1 -1
  203. package/dist/cli/commands/cache/clear.js +1 -1
  204. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  205. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  206. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  207. package/dist/cli/commands/debug/command-flags.js +1 -1
  208. package/dist/cli/commands/doc/fetch.js +1 -1
  209. package/dist/cli/commands/doc/search.js +1 -1
  210. package/dist/cli/commands/docs/generate.js +1 -1
  211. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  212. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  213. package/dist/cli/commands/help.js +1 -1
  214. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  215. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  216. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  217. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  218. package/dist/cli/commands/notifications/generate.js +1 -1
  219. package/dist/cli/commands/notifications/list.js +1 -1
  220. package/dist/cli/commands/organization/list.js +1 -1
  221. package/dist/cli/commands/search.js +1 -1
  222. package/dist/cli/commands/theme/check.js +1 -1
  223. package/dist/cli/commands/theme/console.js +1 -1
  224. package/dist/cli/commands/theme/delete.js +1 -1
  225. package/dist/cli/commands/theme/dev.js +1 -1
  226. package/dist/cli/commands/theme/duplicate.js +1 -1
  227. package/dist/cli/commands/theme/info.js +1 -1
  228. package/dist/cli/commands/theme/init.js +1 -1
  229. package/dist/cli/commands/theme/language-server.js +1 -1
  230. package/dist/cli/commands/theme/list.js +1 -1
  231. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  232. package/dist/cli/commands/theme/open.js +1 -1
  233. package/dist/cli/commands/theme/package.js +1 -1
  234. package/dist/cli/commands/theme/preview.js +1 -1
  235. package/dist/cli/commands/theme/profile.js +1 -1
  236. package/dist/cli/commands/theme/publish.js +1 -1
  237. package/dist/cli/commands/theme/pull.js +1 -1
  238. package/dist/cli/commands/theme/push.js +1 -1
  239. package/dist/cli/commands/theme/rename.js +1 -1
  240. package/dist/cli/commands/theme/share.js +1 -1
  241. package/dist/cli/commands/upgrade.js +1 -1
  242. package/dist/cli/commands/version.js +1 -1
  243. package/dist/cli/help.js +1 -1
  244. package/dist/command-registry.js +1 -1
  245. package/dist/conf-store-YW3NWYCN.js +1 -0
  246. package/dist/custom-oclif-loader-4ZAXX5MR.js +1 -0
  247. package/dist/deprecations-VW7UIMZX.js +1 -0
  248. package/dist/dist-I3VCRVOE.js +1 -0
  249. package/dist/dist-MP4AU5F4.js +1 -0
  250. package/dist/environments-5P57CTOG.js +1 -0
  251. package/dist/error-U7DOQOWG.js +1 -0
  252. package/dist/error-handler-AOEXPYI7.js +1 -0
  253. package/dist/{fs-B4UJTUCD.js → fs-K5NT4W2Q.js} +1 -1
  254. package/dist/hooks/app-init.js +1 -1
  255. package/dist/hooks/did-you-mean.js +1 -1
  256. package/dist/hooks/hydrogen-init.js +1 -1
  257. package/dist/hooks/plugin-plugins.js +1 -1
  258. package/dist/hooks/postrun.js +1 -1
  259. package/dist/hooks/prerun.js +1 -1
  260. package/dist/hooks/public-metadata.js +1 -1
  261. package/dist/hooks/sensitive-metadata.js +1 -1
  262. package/dist/hooks/tunnel-provider.js +1 -1
  263. package/dist/hooks/tunnel-start.js +1 -1
  264. package/dist/{http-proxy-node16-X2WAMUT5.js → http-proxy-node16-A6AKKRQH.js} +1 -1
  265. package/dist/index.js +15 -15
  266. package/dist/is-global-CFYYUAIJ.js +1 -0
  267. package/dist/{latest-version-32HXMWJ7.js → latest-version-LDWU5F7A.js} +7 -7
  268. package/dist/lib-2BR2WN7L.js +1 -0
  269. package/dist/lib-JKLF33A7.js +1 -0
  270. package/dist/{lib-NOROGV6N.js → lib-P3APEIHY.js} +1 -1
  271. package/dist/local-BRRQOCGY.js +1 -0
  272. package/dist/local-storage-FVSI2IBZ.js +1 -0
  273. package/dist/{metadata-FREAI3KR.js → metadata-HVSGVFUQ.js} +1 -1
  274. package/dist/{morph-QZGREMO2.js → morph-ABSWZEVT.js} +4 -4
  275. package/dist/node-package-manager-6JURLQKU.js +1 -0
  276. package/dist/notifications-system-BTEFKXCS.js +1 -0
  277. package/dist/out-53ABAVL7.js +1 -0
  278. package/dist/{output-VUR2QZPW.js → output-EXMTVS2V.js} +1 -1
  279. package/dist/system-DUJDILSL.js +1 -0
  280. package/dist/tsconfig.tsbuildinfo +1 -1
  281. package/dist/ui-AX6ZMY6P.js +1 -0
  282. package/dist/upgrade-5TEVQNLY.js +1 -0
  283. package/dist/version-7LKOAVDW.js +1 -0
  284. package/dist/version-PRFBZAWQ.js +1 -0
  285. package/dist/{workerd-KPQTFQD4.js → workerd-MFV7EBVM.js} +1 -1
  286. package/oclif.manifest.json +612 -2
  287. package/package.json +11 -11
  288. package/dist/analytics-M7ZU437S.js +0 -1
  289. package/dist/analytics-ZRM4FEOE.js +0 -1
  290. package/dist/assets/dev-console/extensions/dev-console/assets/apple-touch-icon-BXMqQaSW.png +0 -0
  291. package/dist/assets/dev-console/extensions/dev-console/assets/favicon-16x16-B6uL8SrV.png +0 -0
  292. package/dist/assets/dev-console/extensions/dev-console/assets/favicon-32x32-CGwlpz_y.png +0 -0
  293. package/dist/assets/dev-console/extensions/dev-console/assets/favicon-ByUl89Ab.ico +0 -0
  294. package/dist/assets/dev-console/extensions/dev-console/assets/index-Bm_GpKQW.js +0 -51
  295. package/dist/assets/dev-console/extensions/dev-console/assets/index-DISeE29z.css +0 -1
  296. package/dist/assets/dev-console/extensions/dev-console/assets/site-B9Ae890R.webmanifest +0 -19
  297. package/dist/assets/dev-console/index.html +0 -21
  298. package/dist/chunk-2O22LZKV.js +0 -44
  299. package/dist/chunk-3IFZECSI.js +0 -22
  300. package/dist/chunk-4MLEL3VK.js +0 -283
  301. package/dist/chunk-4P54DKG4.js +0 -3
  302. package/dist/chunk-4ROX2TCK.js +0 -1
  303. package/dist/chunk-5C7HDTHJ.js +0 -1
  304. package/dist/chunk-5VC4XXYH.js +0 -1
  305. package/dist/chunk-7RJPTSL6.js +0 -7
  306. package/dist/chunk-ADKFAPED.js +0 -21
  307. package/dist/chunk-B5MFFERE.js +0 -1
  308. package/dist/chunk-BLSWUNOK.js +0 -16
  309. package/dist/chunk-DN3BB4IO.js +0 -103
  310. package/dist/chunk-EAOT5CK5.js +0 -2
  311. package/dist/chunk-G6BFXMOV.js +0 -2
  312. package/dist/chunk-GMAZ2BQY.js +0 -26
  313. package/dist/chunk-HYF3VJYS.js +0 -3
  314. package/dist/chunk-IIFRDOYG.js +0 -1
  315. package/dist/chunk-KB6H5LQJ.js +0 -4
  316. package/dist/chunk-LKZ7ARYS.js +0 -18
  317. package/dist/chunk-MYQTAM77.js +0 -2
  318. package/dist/chunk-NGCPVRDM.js +0 -1
  319. package/dist/chunk-NJOO5XJV.js +0 -1
  320. package/dist/chunk-NNOSZ447.js +0 -1
  321. package/dist/chunk-NVA2354A.js +0 -5
  322. package/dist/chunk-NWH3TAHK.js +0 -1
  323. package/dist/chunk-OCBGHOH2.js +0 -19
  324. package/dist/chunk-P7U6BWKN.js +0 -1
  325. package/dist/chunk-QFXJNFMI.js +0 -1
  326. package/dist/chunk-R7QYSC6T.js +0 -567
  327. package/dist/chunk-RE652L3G.js +0 -1
  328. package/dist/chunk-SSDEWKDZ.js +0 -6
  329. package/dist/chunk-T6CC5WUU.js +0 -159
  330. package/dist/chunk-TB7HFPBB.js +0 -370
  331. package/dist/chunk-TIU7MMRT.js +0 -836
  332. package/dist/chunk-TTEY5PLR.js +0 -10
  333. package/dist/chunk-U4HLIXRH.js +0 -4
  334. package/dist/chunk-UAYIFFYJ.js +0 -11
  335. package/dist/chunk-UHIP5CFI.js +0 -1
  336. package/dist/chunk-UMFVRG33.js +0 -5
  337. package/dist/chunk-WTRKTFVE.js +0 -2
  338. package/dist/chunk-X3VG75LO.js +0 -1
  339. package/dist/chunk-XSUZPWYV.js +0 -5
  340. package/dist/chunk-Z33MWGCG.js +0 -1
  341. package/dist/chunk-ZIM2G3EP.js +0 -1
  342. package/dist/chunk-ZSYMRT3S.js +0 -4
  343. package/dist/conf-store-HOA62HKK.js +0 -1
  344. package/dist/custom-oclif-loader-3AICQCNU.js +0 -1
  345. package/dist/deprecations-2FTB7JEW.js +0 -1
  346. package/dist/dist-63JMGNUL.js +0 -1
  347. package/dist/dist-6TY6L7OW.js +0 -1
  348. package/dist/environments-XVYTKHRZ.js +0 -1
  349. package/dist/error-SDU6RPQQ.js +0 -1
  350. package/dist/error-handler-4YEBBCUH.js +0 -1
  351. package/dist/is-global-5LFZDDNH.js +0 -1
  352. package/dist/lib-QJDPPAWN.js +0 -1
  353. package/dist/lib-UCG2DNMS.js +0 -1
  354. package/dist/local-VTYGIJVD.js +0 -1
  355. package/dist/local-storage-A6NBLBB2.js +0 -1
  356. package/dist/node-package-manager-N5SUT2WN.js +0 -1
  357. package/dist/notifications-system-P3SUTD25.js +0 -1
  358. package/dist/out-CDCY25QC.js +0 -1
  359. package/dist/system-OXF2P5CT.js +0 -1
  360. package/dist/ui-N2C5FC3G.js +0 -1
  361. package/dist/upgrade-AJ36IT7H.js +0 -1
  362. package/dist/version-DSFP332V.js +0 -1
  363. package/dist/version-HUOO3XOE.js +0 -1
@@ -0,0 +1,5 @@
1
+ import{_ as a,i}from"./chunk-5HJTCBBV.js";import{Fb as e,Hb as r}from"./chunk-BCZMDFI2.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();async function f(n,t,o){return c(n,t,o,"text")}async function c(n,t,o,S){return await a(t,o.source),S==="json"?r`${e.json({SHOPIFY_API_KEY:t.apiKey,SHOPIFY_API_SECRET:t.apiSecretKeys[0]?.secret,SCOPES:i(n.configuration)})}`:r`
2
+ ${e.green("SHOPIFY_API_KEY")}=${t.apiKey}
3
+ ${e.green("SHOPIFY_API_SECRET")}=${t.apiSecretKeys[0]?.secret??""}
4
+ ${e.green("SCOPES")}=${i(n.configuration)}
5
+ `}export{f as a,c as b};
@@ -1 +1 @@
1
- import{a as c,b as d,c as f}from"./chunk-TSEPNC3O.js";import{a as p}from"./chunk-UHIP5CFI.js";import{a as r}from"./chunk-VJQJ5PTQ.js";import{Fa as s}from"./chunk-4MLEL3VK.js";import{b as n}from"./chunk-NGCPVRDM.js";import{r as y}from"./chunk-T6CC5WUU.js";import{e as g,g as i}from"./chunk-VKWPEFWQ.js";i();var m=g(y(),1);var a,t=class extends p{async run(){let{flags:e}=await this.parse(a),{app:o,developerPlatformClient:u,organization:h}=await s({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),l=await f(o,e.path);return await c({app:o,extension:l,stdout:e.stdout,developerPlatformClient:u,orgId:h.id}),{app:o}}};a=t;t.summary="Fetch the latest GraphQL schema for a function.";t.descriptionWithMarkdown="Generates the latest [GraphQL schema](https://shopify.dev/docs/apps/functions/input-output#graphql-schema) for a function in your app. Run this command from the function directory.\n\n This command uses the API type and version of your function, as defined in your extension TOML file, to generate the latest GraphQL schema. The schema is written to the `schema.graphql` file.";t.description=a.descriptionWithoutMarkdown();t.flags={...n,...r,...d,stdout:m.Flags.boolean({description:"Output the schema to stdout instead of writing to a file.",required:!1,default:!1,env:"SHOPIFY_FLAG_STDOUT"})};var T=t;export{T as a};
1
+ import{a as c,b as d,c as f}from"./chunk-BPDUBZMU.js";import{a as p}from"./chunk-WDCCITSG.js";import{a as r}from"./chunk-NENUUNWB.js";import{ta as s}from"./chunk-5HJTCBBV.js";import{b as n}from"./chunk-4TANJ4JK.js";import{a as y}from"./chunk-CTNBSUVU.js";import{e as g,g as i}from"./chunk-VKWPEFWQ.js";i();var m=g(y(),1);var a,t=class extends p{async run(){let{flags:e}=await this.parse(a),{app:o,developerPlatformClient:u,organization:h}=await s({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),l=await f(o,e.path);return await c({app:o,extension:l,stdout:e.stdout,developerPlatformClient:u,orgId:h.id}),{app:o}}};a=t;t.summary="Fetch the latest GraphQL schema for a function.";t.descriptionWithMarkdown="Generates the latest [GraphQL schema](https://shopify.dev/docs/apps/functions/input-output#graphql-schema) for a function in your app. Run this command from the function directory.\n\n This command uses the API type and version of your function, as defined in your extension TOML file, to generate the latest GraphQL schema. The schema is written to the `schema.graphql` file.";t.description=a.descriptionWithoutMarkdown();t.flags={...n,...r,...d,stdout:m.Flags.boolean({description:"Output the schema to stdout instead of writing to a file.",required:!1,default:!1,env:"SHOPIFY_FLAG_STDOUT"})};var T=t;export{T as a};
@@ -1,4 +1,4 @@
1
- import{b as $}from"./chunk-NVA2354A.js";import{a as O}from"./chunk-UHIP5CFI.js";import{a as T}from"./chunk-VJQJ5PTQ.js";import{Fa as N,i as k}from"./chunk-4MLEL3VK.js";import{f as l}from"./chunk-R7QYSC6T.js";import{H as S,I as b}from"./chunk-TIU7MMRT.js";import{a as h}from"./chunk-B5MFFERE.js";import{b as P,c as I}from"./chunk-NGCPVRDM.js";import{g as v,u as E}from"./chunk-EEEKSYWV.js";import{Gb as C,Hb as _,Lb as w,N as y,Wb as A}from"./chunk-TB7HFPBB.js";import{g as p,j as g}from"./chunk-773TIA5M.js";import{r as W}from"./chunk-T6CC5WUU.js";import{e as U,g as f}from"./chunk-VKWPEFWQ.js";f();f();async function x(n,e,t,o,i){return i.webEnv?F(n,e,t,i):R(n,e,o,i)}async function F(n,e,t,{format:o}){return $(n,e,t,o)}async function R(n,e,t,o){if(o.format==="json"){let i=j(n.allExtensions.filter(s=>s.isReturnedAsInfo())),r={...n,packageManager:t.packageManager,nodeDependencies:t.nodeDependencies,usesWorkspaces:t.usesWorkspaces,allExtensions:i};return"realExtensions"in r&&(r.realExtensions=j(r.realExtensions)),"specifications"in r&&(r={...r,specifications:r.specifications?.map(s=>D(s))}),_`${JSON.stringify(Object.fromEntries(Object.entries(r).filter(([s])=>s!=="configSchema")),null,2)}`}else return new d(n,e,t,o).output()}function D(n){if("schema"in n){let{schema:e,...t}=n;return t}return n}function j(n){return n.map(e=>{if("specification"in e&&e.specification){let t=e.specification,o=D(t);return{...e,specification:o}}else return e})}var M="unknown",u={subdued:"Not yet configured"},K="NOT LOADED",d=class{constructor(e,t,o,i){this.app=e,this.remoteApp=t,this.project=o,this.options=i}async output(){return[...await this.devConfigsSection(),this.projectSettingsSection(),...await this.appComponentsSection(),await this.systemInfoSection()]}async devConfigsSection(){let e=u;this.app.configuration.build?.automatically_update_urls_on_dev!==void 0&&(e=this.app.configuration.build.automatically_update_urls_on_dev?"Yes":"No");let t=["User","unknown"],o=await this.options.developerPlatformClient.accountInfo();return b(o)?t=["Service account",o.orgName]:S(o)&&(t[1]=o.email),[this.tableSection("Current app configuration",[["Configuration file",{filePath:g(this.app.configPath)||l.app}],["App name",this.remoteApp.title?{userInput:this.remoteApp.title}:u],["Client ID",this.remoteApp.apiKey||u],["Access scopes",k(this.app.configuration)],["Dev store",this.app.configuration.build?.dev_store_url??this.app.hiddenConfig.dev_store_url??u],["Update URLs",e],t],{isFirstItem:!0}),{body:["\u{1F4A1} To change these, run",{command:C(this.project.packageManager,"shopify app config link")}]}]}projectSettingsSection(){return this.tableSection("Your Project",[["Root location",{filePath:this.app.directory}]])}async appComponentsSection(){let e=this.webComponentsSection();return[{title:`
1
+ import{b as $}from"./chunk-K4M32VKU.js";import{a as O}from"./chunk-WDCCITSG.js";import{a as T}from"./chunk-NENUUNWB.js";import{i as k,ta as N}from"./chunk-5HJTCBBV.js";import{f as l}from"./chunk-7EE7YOCR.js";import{b as P,c as I}from"./chunk-4TANJ4JK.js";import{H as S,I as b}from"./chunk-AFM3UZQO.js";import{g as v,u as E}from"./chunk-JX4HSDDG.js";import{a as h}from"./chunk-REABQXMP.js";import{Gb as C,Hb as _,Lb as w,N as y,Wb as A}from"./chunk-BCZMDFI2.js";import{g as p,j as g}from"./chunk-773TIA5M.js";import{a as W}from"./chunk-CTNBSUVU.js";import{e as U,g as f}from"./chunk-VKWPEFWQ.js";f();f();async function x(n,e,t,o,i){return i.webEnv?F(n,e,t,i):R(n,e,o,i)}async function F(n,e,t,{format:o}){return $(n,e,t,o)}async function R(n,e,t,o){if(o.format==="json"){let i=j(n.allExtensions.filter(s=>s.isReturnedAsInfo())),r={...n,packageManager:t.packageManager,nodeDependencies:t.nodeDependencies,usesWorkspaces:t.usesWorkspaces,allExtensions:i};return"realExtensions"in r&&(r.realExtensions=j(r.realExtensions)),"specifications"in r&&(r={...r,specifications:r.specifications?.map(s=>D(s))}),_`${JSON.stringify(Object.fromEntries(Object.entries(r).filter(([s])=>s!=="configSchema")),null,2)}`}else return new d(n,e,t,o).output()}function D(n){if("schema"in n){let{schema:e,...t}=n;return t}return n}function j(n){return n.map(e=>{if("specification"in e&&e.specification){let t=e.specification,o=D(t);return{...e,specification:o}}else return e})}var M="unknown",u={subdued:"Not yet configured"},K="NOT LOADED",d=class{constructor(e,t,o,i){this.app=e,this.remoteApp=t,this.project=o,this.options=i}async output(){return[...await this.devConfigsSection(),this.projectSettingsSection(),...await this.appComponentsSection(),await this.systemInfoSection()]}async devConfigsSection(){let e=u;this.app.configuration.build?.automatically_update_urls_on_dev!==void 0&&(e=this.app.configuration.build.automatically_update_urls_on_dev?"Yes":"No");let t=["User","unknown"],o=await this.options.developerPlatformClient.accountInfo();return b(o)?t=["Service account",o.orgName]:S(o)&&(t[1]=o.email),[this.tableSection("Current app configuration",[["Configuration file",{filePath:g(this.app.configPath)||l.app}],["App name",this.remoteApp.title?{userInput:this.remoteApp.title}:u],["Client ID",this.remoteApp.apiKey||u],["Access scopes",k(this.app.configuration)],["Dev store",this.app.configuration.build?.dev_store_url??this.app.hiddenConfig.dev_store_url??u],["Update URLs",e],t],{isFirstItem:!0}),{body:["\u{1F4A1} To change these, run",{command:C(this.project.packageManager,"shopify app config link")}]}]}projectSettingsSection(){return this.tableSection("Your Project",[["Root location",{filePath:this.app.directory}]])}async appComponentsSection(){let e=this.webComponentsSection();return[{title:`
2
2
  Directory components`.toUpperCase(),body:""},...e?[e]:[],...this.extensionsSections()]}webComponentsSection(){let e=[],t=[];if(this.app.webs[0])return this.app.webs.forEach(o=>{if(o.configuration)if(o.configuration.name){let{name:i,roles:r}=o.configuration,s=p(this.app.directory,o.directory);t.push([` \u{1F4C2} ${i}`,{filePath:s||"/"}]),r.length>0&&t.push([" roles",r.join(", ")])}else o.configuration.roles.forEach(i=>{t.push([` \u{1F4C2} ${i}`,{filePath:p(this.app.directory,o.directory)}])});else t.push([{subdued:` \u{1F4C2} ${M}`},{filePath:p(this.app.directory,o.directory)}]);if(!this.app.errors.isEmpty()){let i=this.app.errors.getErrors(`${o.directory}/${l.web}`);e.push(...i.map(r=>r.message))}}),this.subtableSection("web",[["\u{1F4C2} web",""],...t,...e.map(o=>[{error:"error"},{error:this.formattedError(o)}])])}extensionsSections(){let e=this.app.allExtensions.filter(o=>o.isReturnedAsInfo());return y(e.map(o=>o.type)).map(o=>{let i=e.filter(r=>r.type===o);if(i[0])return this.subtableSection(i[0].externalType,i.map(r=>this.extensionSubSection(r)).flat())}).filter(o=>o!==void 0)}extensionSubSection(e){let t=e.configuration,o=[[`\u{1F4C2} ${e.handle||K}`,{filePath:p(this.app.directory,e.directory)}],[" config file",{filePath:p(e.directory,e.configurationPath)}]];t&&"metafields"in t&&Array.isArray(t.metafields)&&t.metafields.length>0&&o.push([" metafields",`${t.metafields.length}`]);let i=this.app.errors.getErrors(e.configurationPath);for(let r of i)o.push([{error:" error"},{error:this.formattedError(r.message)}]);return o}formattedError(e){let t=e.trim();if(A())return t;let[o,...i]=t.split(`
3
3
  `);return[`! ${o}`,...i.map(r=>` ${r}`)].join(`
4
4
  `)}async systemInfoSection(){let{platform:e,arch:t}=v();return this.tableSection("Tooling and System",[["Shopify CLI",h],["Package manager",this.project.packageManager],["OS",`${e}-${t}`],["Shell",process.env.SHELL??"unknown"],["Node version",process.version]])}tableSection(e,t,{isFirstItem:o=!1}={}){return{title:`${o?"":`
@@ -1,4 +1,4 @@
1
- import{a as e}from"./chunk-GCN4O7HM.js";import{r as t}from"./chunk-ZT4PUH7L.js";import{b as r}from"./chunk-UAYIFFYJ.js";import{u as i}from"./chunk-EEEKSYWV.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var o=class extends r{static{this.summary="Disable automatic upgrades for Shopify CLI."}static{this.descriptionWithMarkdown=`Disable automatic upgrades for Shopify CLI.
1
+ import{a as e}from"./chunk-GCN4O7HM.js";import{b as r}from"./chunk-WHT2RCAD.js";import{r as t}from"./chunk-GXO2RRV2.js";import{u as i}from"./chunk-JX4HSDDG.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var o=class extends r{static{this.summary="Disable automatic upgrades for Shopify CLI."}static{this.descriptionWithMarkdown=`Disable automatic upgrades for Shopify CLI.
2
2
 
3
3
  When auto-upgrade is disabled, Shopify CLI won't automatically update. Run \`shopify upgrade\` to update manually.
4
4
 
@@ -1 +1 @@
1
- import{Q as r}from"./chunk-TIU7MMRT.js";import{b as c}from"./chunk-UAYIFFYJ.js";import{Nb as a}from"./chunk-TB7HFPBB.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var o=class extends c{static{this.description="Logs you out of the Shopify account or Partner account and store."}async run(){await r(),a("Logged out from all the accounts")}};export{o as a};
1
+ import{b as c}from"./chunk-WHT2RCAD.js";import{Q as r}from"./chunk-AFM3UZQO.js";import{Nb as a}from"./chunk-BCZMDFI2.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var o=class extends c{static{this.description="Logs you out of the Shopify account or Partner account and store."}async run(){await r(),a("Logged out from all the accounts")}};export{o as a};
@@ -1,4 +1,4 @@
1
- import{b as Dn,c as Mn,d as qn,e as An}from"./chunk-2O22LZKV.js";import{a as E,c,g as o}from"./chunk-VKWPEFWQ.js";var Vt=c(H=>{"use strict";o();Object.defineProperty(H,"__esModule",{value:!0});H.splitWhen=H.flatten=void 0;function Fn(t){return t.reduce((e,r)=>[].concat(e,r),[])}H.flatten=Fn;function Rn(t,e){let r=[[]],n=0;for(let s of t)e(s)?(n++,r[n]=[]):r[n].push(s);return r}H.splitWhen=Rn});var Ct=c(K=>{"use strict";o();Object.defineProperty(K,"__esModule",{value:!0});K.isEnoentCodeError=void 0;function Ln(t){return t.code==="ENOENT"}K.isEnoentCodeError=Ln});var Yt=c(z=>{"use strict";o();Object.defineProperty(z,"__esModule",{value:!0});z.createDirentFromStats=void 0;var Se=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function xn(t,e){return new Se(t,e)}z.createDirentFromStats=xn});var Qt=c(P=>{"use strict";o();Object.defineProperty(P,"__esModule",{value:!0});P.convertPosixPathToPattern=P.convertWindowsPathToPattern=P.convertPathToPattern=P.escapePosixPath=P.escapeWindowsPath=P.escape=P.removeLeadingDotSegment=P.makeAbsolute=P.unixify=void 0;var jn=E("os"),In=E("path"),Ht=jn.platform()==="win32",Bn=2,Nn=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,Wn=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Vn=/^\\\\([.?])/,Cn=/\\(?![!()+@[\]{}])/g;function Yn(t){return t.replace(/\\/g,"/")}P.unixify=Yn;function Hn(t,e){return In.resolve(t,e)}P.makeAbsolute=Hn;function Un(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(Bn)}return t}P.removeLeadingDotSegment=Un;P.escape=Ht?Pe:ve;function Pe(t){return t.replace(Wn,"\\$2")}P.escapeWindowsPath=Pe;function ve(t){return t.replace(Nn,"\\$2")}P.escapePosixPath=ve;P.convertPathToPattern=Ht?Ut:Gt;function Ut(t){return Pe(t).replace(Vn,"//$1").replace(Cn,"/")}P.convertWindowsPathToPattern=Ut;function Gt(t){return ve(t)}P.convertPosixPathToPattern=Gt});var Zt=c((bo,zt)=>{"use strict";o();var Xt=E("util"),Jt=Mn(),q=An(),Ee=qn(),$t=t=>t===""||t==="./",Kt=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},S=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,s=new Set,i=new Set,a=0,d=u=>{i.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let _=q(String(e[u]),{...r,onResult:d},!0),p=_.state.negated||_.state.negatedExtglob;p&&a++;for(let R of t){let m=_(R,!0);(p?!m.isMatch:m.isMatch)&&(p?n.add(m.output):(n.delete(m.output),s.add(m.output)))}}let h=(a===e.length?[...i]:[...s]).filter(u=>!n.has(u));if(r&&h.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return h};S.match=S;S.matcher=(t,e)=>q(t,e);S.isMatch=(t,e,r)=>q(e,r)(t);S.any=S.isMatch;S.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,s=[],i=d=>{r.onResult&&r.onResult(d),s.push(d.output)},a=new Set(S(t,e,{...r,onResult:i}));for(let d of s)a.has(d)||n.add(d);return[...n]};S.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Xt.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>S.contains(t,n,r));if(typeof e=="string"){if($t(t)||$t(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return S.isMatch(t,e,{...r,contains:!0})};S.matchKeys=(t,e,r)=>{if(!Ee.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=S(Object.keys(t),e,r),s={};for(let i of n)s[i]=t[i];return s};S.some=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let i=q(String(s),r);if(n.some(a=>i(a)))return!0}return!1};S.every=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let i=q(String(s),r);if(!n.every(a=>i(a)))return!1}return!0};S.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Xt.inspect(t)}"`);return[].concat(e).every(n=>q(n,r)(t))};S.capture=(t,e,r)=>{let n=Ee.isWindows(r),i=q.makeRe(String(t),{...r,capture:!0}).exec(n?Ee.toPosixSlashes(e):e);if(i)return i.slice(1).map(a=>a===void 0?"":a)};S.makeRe=(...t)=>q.makeRe(...t);S.scan=(...t)=>q.scan(...t);S.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let s of Jt(String(n),e))r.push(q.parse(s,e));return r};S.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!Kt(t)?[t]:Jt(t,e)};S.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return S.braces(t,{...e,expand:!0})};S.hasBraces=Kt;zt.exports=S});var cr=c(l=>{"use strict";o();Object.defineProperty(l,"__esModule",{value:!0});l.isAbsolute=l.partitionAbsoluteAndRelative=l.removeDuplicateSlashes=l.matchAny=l.convertPatternsToRe=l.makeRe=l.getPatternParts=l.expandBraceExpansion=l.expandPatternsWithBraceExpansion=l.isAffectDepthOfReadingPattern=l.endsWithSlashGlobStar=l.hasGlobStar=l.getBaseDirectory=l.isPatternRelatedToParentDirectory=l.getPatternsOutsideCurrentDirectory=l.getPatternsInsideCurrentDirectory=l.getPositivePatterns=l.getNegativePatterns=l.isPositivePattern=l.isNegativePattern=l.convertToNegativePattern=l.convertToPositivePattern=l.isDynamicPattern=l.isStaticPattern=void 0;var er=E("path"),Gn=Dn(),be=Zt(),tr="**",Qn="\\",$n=/[*?]|^!/,Xn=/\[[^[]*]/,Jn=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Kn=/[!*+?@]\([^(]*\)/,zn=/,|\.\./,Zn=/(?!^)\/{2,}/g;function rr(t,e={}){return!nr(t,e)}l.isStaticPattern=rr;function nr(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(Qn)||$n.test(t)||Xn.test(t)||Jn.test(t)||e.extglob!==!1&&Kn.test(t)||e.braceExpansion!==!1&&es(t))}l.isDynamicPattern=nr;function es(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return zn.test(n)}function ts(t){return Z(t)?t.slice(1):t}l.convertToPositivePattern=ts;function rs(t){return"!"+t}l.convertToNegativePattern=rs;function Z(t){return t.startsWith("!")&&t[1]!=="("}l.isNegativePattern=Z;function sr(t){return!Z(t)}l.isPositivePattern=sr;function ns(t){return t.filter(Z)}l.getNegativePatterns=ns;function ss(t){return t.filter(sr)}l.getPositivePatterns=ss;function is(t){return t.filter(e=>!we(e))}l.getPatternsInsideCurrentDirectory=is;function os(t){return t.filter(we)}l.getPatternsOutsideCurrentDirectory=os;function we(t){return t.startsWith("..")||t.startsWith("./..")}l.isPatternRelatedToParentDirectory=we;function as(t){return Gn(t,{flipBackslashes:!1})}l.getBaseDirectory=as;function us(t){return t.includes(tr)}l.hasGlobStar=us;function ir(t){return t.endsWith("/"+tr)}l.endsWithSlashGlobStar=ir;function cs(t){let e=er.basename(t);return ir(t)||rr(e)}l.isAffectDepthOfReadingPattern=cs;function ls(t){return t.reduce((e,r)=>e.concat(or(r)),[])}l.expandPatternsWithBraceExpansion=ls;function or(t){let e=be.braces(t,{expand:!0,nodupes:!0,keepEscaping:!0});return e.sort((r,n)=>r.length-n.length),e.filter(r=>r!=="")}l.expandBraceExpansion=or;function hs(t,e){let{parts:r}=be.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}l.getPatternParts=hs;function ar(t,e){return be.makeRe(t,e)}l.makeRe=ar;function fs(t,e){return t.map(r=>ar(r,e))}l.convertPatternsToRe=fs;function ds(t,e){return e.some(r=>r.test(t))}l.matchAny=ds;function _s(t){return t.replace(Zn,"/")}l.removeDuplicateSlashes=_s;function ps(t){let e=[],r=[];for(let n of t)ur(n)?e.push(n):r.push(n);return[e,r]}l.partitionAbsoluteAndRelative=ps;function ur(t){return er.isAbsolute(t)}l.isAbsolute=ur});var dr=c((Oo,fr)=>{"use strict";o();var gs=E("stream"),lr=gs.PassThrough,ms=Array.prototype.slice;fr.exports=ys;function ys(){let t=[],e=ms.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let s=n.end!==!1,i=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let a=lr(n);function d(){for(let u=0,_=arguments.length;u<_;u++)t.push(hr(arguments[u],n));return f(),this}function f(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(h);return}Array.isArray(u)||(u=[u]);let _=u.length+1;function p(){--_>0||(r=!1,f())}function R(m){function O(){m.removeListener("merge2UnpipeEnd",O),m.removeListener("end",O),i&&m.removeListener("error",J),p()}function J(C){a.emit("error",C)}if(m._readableState.endEmitted)return p();m.on("merge2UnpipeEnd",O),m.on("end",O),i&&m.on("error",J),m.pipe(a,{end:!1}),m.resume()}for(let m=0;m<u.length;m++)R(u[m]);p()}function h(){r=!1,a.emit("queueDrain"),s&&a.end()}return a.setMaxListeners(0),a.add=d,a.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&d.apply(null,e),a}function hr(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=hr(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(lr(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var pr=c(ee=>{"use strict";o();Object.defineProperty(ee,"__esModule",{value:!0});ee.merge=void 0;var Ss=dr();function Ps(t){let e=Ss(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>_r(t)),e.once("end",()=>_r(t)),e}ee.merge=Ps;function _r(t){t.forEach(e=>e.emit("close"))}});var gr=c(U=>{"use strict";o();Object.defineProperty(U,"__esModule",{value:!0});U.isEmpty=U.isString=void 0;function vs(t){return typeof t=="string"}U.isString=vs;function Es(t){return t===""}U.isEmpty=Es});var L=c(b=>{"use strict";o();Object.defineProperty(b,"__esModule",{value:!0});b.string=b.stream=b.pattern=b.path=b.fs=b.errno=b.array=void 0;var bs=Vt();b.array=bs;var ws=Ct();b.errno=ws;var Ts=Yt();b.fs=Ts;var ks=Qt();b.path=ks;var Os=cr();b.pattern=Os;var Ds=pr();b.stream=Ds;var Ms=gr();b.string=Ms});var Pr=c(w=>{"use strict";o();Object.defineProperty(w,"__esModule",{value:!0});w.convertPatternGroupToTask=w.convertPatternGroupsToTasks=w.groupPatternsByBaseDirectory=w.getNegativePatternsAsPositive=w.getPositivePatterns=w.convertPatternsToTasks=w.generate=void 0;var D=L();function qs(t,e){let r=mr(t,e),n=mr(e.ignore,e),s=yr(r),i=Sr(r,n),a=s.filter(u=>D.pattern.isStaticPattern(u,e)),d=s.filter(u=>D.pattern.isDynamicPattern(u,e)),f=Te(a,i,!1),h=Te(d,i,!0);return f.concat(h)}w.generate=qs;function mr(t,e){let r=t;return e.braceExpansion&&(r=D.pattern.expandPatternsWithBraceExpansion(r)),e.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>D.pattern.removeDuplicateSlashes(n))}function Te(t,e,r){let n=[],s=D.pattern.getPatternsOutsideCurrentDirectory(t),i=D.pattern.getPatternsInsideCurrentDirectory(t),a=ke(s),d=ke(i);return n.push(...Oe(a,e,r)),"."in d?n.push(De(".",i,e,r)):n.push(...Oe(d,e,r)),n}w.convertPatternsToTasks=Te;function yr(t){return D.pattern.getPositivePatterns(t)}w.getPositivePatterns=yr;function Sr(t,e){return D.pattern.getNegativePatterns(t).concat(e).map(D.pattern.convertToPositivePattern)}w.getNegativePatternsAsPositive=Sr;function ke(t){let e={};return t.reduce((r,n)=>{let s=D.pattern.getBaseDirectory(n);return s in r?r[s].push(n):r[s]=[n],r},e)}w.groupPatternsByBaseDirectory=ke;function Oe(t,e,r){return Object.keys(t).map(n=>De(n,t[n],e,r))}w.convertPatternGroupsToTasks=Oe;function De(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(D.pattern.convertToNegativePattern))}}w.convertPatternGroupToTask=De});var Er=c(te=>{"use strict";o();Object.defineProperty(te,"__esModule",{value:!0});te.read=void 0;function As(t,e,r){e.fs.lstat(t,(n,s)=>{if(n!==null){vr(r,n);return}if(!s.isSymbolicLink()||!e.followSymbolicLink){Me(r,s);return}e.fs.stat(t,(i,a)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){vr(r,i);return}Me(r,s);return}e.markSymbolicLink&&(a.isSymbolicLink=()=>!0),Me(r,a)})})}te.read=As;function vr(t,e){t(e)}function Me(t,e){t(null,e)}});var br=c(re=>{"use strict";o();Object.defineProperty(re,"__esModule",{value:!0});re.read=void 0;function Fs(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}re.read=Fs});var wr=c(x=>{"use strict";o();Object.defineProperty(x,"__esModule",{value:!0});x.createFileSystemAdapter=x.FILE_SYSTEM_ADAPTER=void 0;var ne=E("fs");x.FILE_SYSTEM_ADAPTER={lstat:ne.lstat,stat:ne.stat,lstatSync:ne.lstatSync,statSync:ne.statSync};function Rs(t){return t===void 0?x.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},x.FILE_SYSTEM_ADAPTER),t)}x.createFileSystemAdapter=Rs});var Tr=c(Ae=>{"use strict";o();Object.defineProperty(Ae,"__esModule",{value:!0});var Ls=wr(),qe=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Ls.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};Ae.default=qe});var Y=c(j=>{"use strict";o();Object.defineProperty(j,"__esModule",{value:!0});j.statSync=j.stat=j.Settings=void 0;var kr=Er(),xs=br(),Fe=Tr();j.Settings=Fe.default;function js(t,e,r){if(typeof e=="function"){kr.read(t,Re(),e);return}kr.read(t,Re(e),r)}j.stat=js;function Is(t,e){let r=Re(e);return xs.read(t,r)}j.statSync=Is;function Re(t={}){return t instanceof Fe.default?t:new Fe.default(t)}});var Mr=c((Qo,Dr)=>{o();var Or;Dr.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Or||(Or=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Ar=c((Xo,qr)=>{o();qr.exports=Ns;var Bs=Mr();function Ns(t,e){let r,n,s,i=!0;Array.isArray(t)?(r=[],n=t.length):(s=Object.keys(t),r={},n=s.length);function a(f){function h(){e&&e(f,r),e=null}i?Bs(h):h()}function d(f,h,u){r[f]=u,(--n===0||h)&&a(h)}n?s?s.forEach(function(f){t[f](function(h,u){d(f,h,u)})}):t.forEach(function(f,h){f(function(u,_){d(h,u,_)})}):a(null),i=!1}});var Le=c(ie=>{"use strict";o();Object.defineProperty(ie,"__esModule",{value:!0});ie.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var se=process.versions.node.split(".");if(se[0]===void 0||se[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Fr=Number.parseInt(se[0],10),Ws=Number.parseInt(se[1],10),Rr=10,Vs=10,Cs=Fr>Rr,Ys=Fr===Rr&&Ws>=Vs;ie.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Cs||Ys});var Lr=c(oe=>{"use strict";o();Object.defineProperty(oe,"__esModule",{value:!0});oe.createDirentFromStats=void 0;var xe=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Hs(t,e){return new xe(t,e)}oe.createDirentFromStats=Hs});var je=c(ae=>{"use strict";o();Object.defineProperty(ae,"__esModule",{value:!0});ae.fs=void 0;var Us=Lr();ae.fs=Us});var Ie=c(ue=>{"use strict";o();Object.defineProperty(ue,"__esModule",{value:!0});ue.joinPathSegments=void 0;function Gs(t,e,r){return t.endsWith(r)?t+e:t+r+e}ue.joinPathSegments=Gs});var Wr=c(I=>{"use strict";o();Object.defineProperty(I,"__esModule",{value:!0});I.readdir=I.readdirWithFileTypes=I.read=void 0;var Qs=Y(),xr=Ar(),$s=Le(),jr=je(),Ir=Ie();function Xs(t,e,r){if(!e.stats&&$s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Br(t,e,r);return}Nr(t,e,r)}I.read=Xs;function Br(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,s)=>{if(n!==null){ce(r,n);return}let i=s.map(d=>({dirent:d,name:d.name,path:Ir.joinPathSegments(t,d.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Be(r,i);return}let a=i.map(d=>Js(d,e));xr(a,(d,f)=>{if(d!==null){ce(r,d);return}Be(r,f)})})}I.readdirWithFileTypes=Br;function Js(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,s)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=jr.fs.createDirentFromStats(t.name,s),r(null,t)})}}function Nr(t,e,r){e.fs.readdir(t,(n,s)=>{if(n!==null){ce(r,n);return}let i=s.map(a=>{let d=Ir.joinPathSegments(t,a,e.pathSegmentSeparator);return f=>{Qs.stat(d,e.fsStatSettings,(h,u)=>{if(h!==null){f(h);return}let _={name:a,path:d,dirent:jr.fs.createDirentFromStats(a,u)};e.stats&&(_.stats=u),f(null,_)})}});xr(i,(a,d)=>{if(a!==null){ce(r,a);return}Be(r,d)})})}I.readdir=Nr;function ce(t,e){t(e)}function Be(t,e){t(null,e)}});var Ur=c(B=>{"use strict";o();Object.defineProperty(B,"__esModule",{value:!0});B.readdir=B.readdirWithFileTypes=B.read=void 0;var Ks=Y(),zs=Le(),Vr=je(),Cr=Ie();function Zs(t,e){return!e.stats&&zs.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Yr(t,e):Hr(t,e)}B.read=Zs;function Yr(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let s={dirent:n,name:n.name,path:Cr.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(s.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let i=e.fs.statSync(s.path);s.dirent=Vr.fs.createDirentFromStats(s.name,i)}catch(i){if(e.throwErrorOnBrokenSymbolicLink)throw i}return s})}B.readdirWithFileTypes=Yr;function Hr(t,e){return e.fs.readdirSync(t).map(n=>{let s=Cr.joinPathSegments(t,n,e.pathSegmentSeparator),i=Ks.statSync(s,e.fsStatSettings),a={name:n,path:s,dirent:Vr.fs.createDirentFromStats(n,i)};return e.stats&&(a.stats=i),a})}B.readdir=Hr});var Gr=c(N=>{"use strict";o();Object.defineProperty(N,"__esModule",{value:!0});N.createFileSystemAdapter=N.FILE_SYSTEM_ADAPTER=void 0;var G=E("fs");N.FILE_SYSTEM_ADAPTER={lstat:G.lstat,stat:G.stat,lstatSync:G.lstatSync,statSync:G.statSync,readdir:G.readdir,readdirSync:G.readdirSync};function ei(t){return t===void 0?N.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},N.FILE_SYSTEM_ADAPTER),t)}N.createFileSystemAdapter=ei});var Qr=c(We=>{"use strict";o();Object.defineProperty(We,"__esModule",{value:!0});var ti=E("path"),ri=Y(),ni=Gr(),Ne=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=ni.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,ti.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new ri.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};We.default=Ne});var le=c(W=>{"use strict";o();Object.defineProperty(W,"__esModule",{value:!0});W.Settings=W.scandirSync=W.scandir=void 0;var $r=Wr(),si=Ur(),Ve=Qr();W.Settings=Ve.default;function ii(t,e,r){if(typeof e=="function"){$r.read(t,Ce(),e);return}$r.read(t,Ce(e),r)}W.scandir=ii;function oi(t,e){let r=Ce(e);return si.read(t,r)}W.scandirSync=oi;function Ce(t={}){return t instanceof Ve.default?t:new Ve.default(t)}});var Jr=c((pa,Xr)=>{"use strict";o();function ai(t){var e=new t,r=e;function n(){var i=e;return i.next?e=i.next:(e=new t,r=e),i.next=null,i}function s(i){r.next=i,r=i}return{get:n,release:s}}Xr.exports=ai});var zr=c((ma,Ye)=>{"use strict";o();var ui=Jr();function Kr(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=ui(ci),s=null,i=null,a=0,d=null,f={push:O,drain:T,saturated:T,pause:u,paused:!1,get concurrency(){return r},set concurrency(g){if(!(g>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=g,!f.paused)for(;s&&a<r;)a++,C()},running:h,resume:R,idle:m,length:_,getQueue:p,unshift:J,empty:T,kill:En,killAndDrain:bn,error:Tn,abort:wn};return f;function h(){return a}function u(){f.paused=!0}function _(){for(var g=s,v=0;g;)g=g.next,v++;return v}function p(){for(var g=s,v=[];g;)v.push(g.value),g=g.next;return v}function R(){if(f.paused){if(f.paused=!1,s===null){a++,C();return}for(;s&&a<r;)a++,C()}}function m(){return a===0&&f.length()===0}function O(g,v){var y=n.get();y.context=t,y.release=C,y.value=g,y.callback=v||T,y.errorHandler=d,a>=r||f.paused?i?(i.next=y,i=y):(s=y,i=y,f.saturated()):(a++,e.call(t,y.value,y.worked))}function J(g,v){var y=n.get();y.context=t,y.release=C,y.value=g,y.callback=v||T,y.errorHandler=d,a>=r||f.paused?s?(y.next=s,s=y):(s=y,i=y,f.saturated()):(a++,e.call(t,y.value,y.worked))}function C(g){g&&n.release(g);var v=s;v&&a<=r?f.paused?a--:(i===s&&(i=null),s=v.next,v.next=null,e.call(t,v.value,v.worked),i===null&&f.empty()):--a===0&&f.drain()}function En(){s=null,i=null,f.drain=T}function bn(){s=null,i=null,f.drain(),f.drain=T}function wn(){var g=s;for(s=null,i=null;g;){var v=g.next,y=g.callback,Wt=g.errorHandler,kn=g.value,On=g.context;g.value=null,g.callback=T,g.errorHandler=null,Wt&&Wt(new Error("abort"),kn),y.call(On,new Error("abort")),g.release(g),g=v}f.drain=T}function Tn(g){d=g}}function T(){}function ci(){this.value=null,this.callback=T,this.next=null,this.release=T,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var s=t.callback,i=t.errorHandler,a=t.value;t.value=null,t.callback=T,t.errorHandler&&i(r,a),s.call(t.context,r,n),t.release(t)}}function li(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(u,_){e.call(this,u).then(function(p){_(null,p)},_)}var s=Kr(t,n,r),i=s.push,a=s.unshift;return s.push=d,s.unshift=f,s.drained=h,s;function d(u){var _=new Promise(function(p,R){i(u,function(m,O){if(m){R(m);return}p(O)})});return _.catch(T),_}function f(u){var _=new Promise(function(p,R){a(u,function(m,O){if(m){R(m);return}p(O)})});return _.catch(T),_}function h(){var u=new Promise(function(_){process.nextTick(function(){if(s.idle())_();else{var p=s.drain;s.drain=function(){typeof p=="function"&&p(),_(),s.drain=p}}})});return u}}Ye.exports=Kr;Ye.exports.promise=li});var he=c(A=>{"use strict";o();Object.defineProperty(A,"__esModule",{value:!0});A.joinPathSegments=A.replacePathSegmentSeparator=A.isAppliedFilter=A.isFatalError=void 0;function hi(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}A.isFatalError=hi;function fi(t,e){return t===null||t(e)}A.isAppliedFilter=fi;function di(t,e){return t.split(/[/\\]/).join(e)}A.replacePathSegmentSeparator=di;function _i(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}A.joinPathSegments=_i});var Ge=c(Ue=>{"use strict";o();Object.defineProperty(Ue,"__esModule",{value:!0});var pi=he(),He=class{constructor(e,r){this._root=e,this._settings=r,this._root=pi.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Ue.default=He});var Xe=c($e=>{"use strict";o();Object.defineProperty($e,"__esModule",{value:!0});var gi=E("events"),mi=le(),yi=zr(),fe=he(),Si=Ge(),Qe=class extends Si.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=mi.scandir,this._emitter=new gi.EventEmitter,this._queue=yi(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,s=>{s!==null&&this._handleError(s)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,s)=>{if(n!==null){r(n,void 0);return}for(let i of s)this._handleEntry(i,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!fe.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=fe.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),fe.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&fe.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};$e.default=Qe});var Zr=c(Ke=>{"use strict";o();Object.defineProperty(Ke,"__esModule",{value:!0});var Pi=Xe(),Je=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Pi.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{vi(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Ei(e,this._storage)}),this._reader.read()}};Ke.default=Je;function vi(t,e){t(e)}function Ei(t,e){t(null,e)}});var en=c(Ze=>{"use strict";o();Object.defineProperty(Ze,"__esModule",{value:!0});var bi=E("stream"),wi=Xe(),ze=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new wi.default(this._root,this._settings),this._stream=new bi.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Ze.default=ze});var tn=c(tt=>{"use strict";o();Object.defineProperty(tt,"__esModule",{value:!0});var Ti=le(),de=he(),ki=Ge(),et=class extends ki.default{constructor(){super(...arguments),this._scandir=Ti.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let s of n)this._handleEntry(s,r)}catch(n){this._handleError(n)}}_handleError(e){if(de.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=de.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),de.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&de.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};tt.default=et});var rn=c(nt=>{"use strict";o();Object.defineProperty(nt,"__esModule",{value:!0});var Oi=tn(),rt=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Oi.default(this._root,this._settings)}read(){return this._reader.read()}};nt.default=rt});var nn=c(it=>{"use strict";o();Object.defineProperty(it,"__esModule",{value:!0});var Di=E("path"),Mi=le(),st=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Di.sep),this.fsScandirSettings=new Mi.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};it.default=st});var pe=c(F=>{"use strict";o();Object.defineProperty(F,"__esModule",{value:!0});F.Settings=F.walkStream=F.walkSync=F.walk=void 0;var sn=Zr(),qi=en(),Ai=rn(),ot=nn();F.Settings=ot.default;function Fi(t,e,r){if(typeof e=="function"){new sn.default(t,_e()).read(e);return}new sn.default(t,_e(e)).read(r)}F.walk=Fi;function Ri(t,e){let r=_e(e);return new Ai.default(t,r).read()}F.walkSync=Ri;function Li(t,e){let r=_e(e);return new qi.default(t,r).read()}F.walkStream=Li;function _e(t={}){return t instanceof ot.default?t:new ot.default(t)}});var ge=c(ut=>{"use strict";o();Object.defineProperty(ut,"__esModule",{value:!0});var xi=E("path"),ji=Y(),on=L(),at=class{constructor(e){this._settings=e,this._fsStatSettings=new ji.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return xi.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:on.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!on.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};ut.default=at});var ht=c(lt=>{"use strict";o();Object.defineProperty(lt,"__esModule",{value:!0});var Ii=E("stream"),Bi=Y(),Ni=pe(),Wi=ge(),ct=class extends Wi.default{constructor(){super(...arguments),this._walkStream=Ni.walkStream,this._stat=Bi.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),s=new Ii.PassThrough({objectMode:!0});s._write=(i,a,d)=>this._getEntry(n[i],e[i],r).then(f=>{f!==null&&r.entryFilter(f)&&s.push(f),i===n.length-1&&s.end(),d()}).catch(d);for(let i=0;i<n.length;i++)s.write(i);return s}_getEntry(e,r,n){return this._getStat(e).then(s=>this._makeEntry(s,r)).catch(s=>{if(n.errorFilter(s))return null;throw s})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(s,i)=>s===null?r(i):n(s))})}};lt.default=ct});var an=c(dt=>{"use strict";o();Object.defineProperty(dt,"__esModule",{value:!0});var Vi=pe(),Ci=ge(),Yi=ht(),ft=class extends Ci.default{constructor(){super(...arguments),this._walkAsync=Vi.walk,this._readerStream=new Yi.default(this._settings)}dynamic(e,r){return new Promise((n,s)=>{this._walkAsync(e,r,(i,a)=>{i===null?n(a):s(i)})})}async static(e,r){let n=[],s=this._readerStream.static(e,r);return new Promise((i,a)=>{s.once("error",a),s.on("data",d=>n.push(d)),s.once("end",()=>i(n))})}};dt.default=ft});var un=c(pt=>{"use strict";o();Object.defineProperty(pt,"__esModule",{value:!0});var X=L(),_t=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let r=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:e,segments:r,sections:n})}}_getPatternSegments(e){return X.pattern.getPatternParts(e,this._micromatchOptions).map(n=>X.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:X.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return X.array.splitWhen(e,r=>r.dynamic&&X.pattern.hasGlobStar(r.pattern))}};pt.default=_t});var cn=c(mt=>{"use strict";o();Object.defineProperty(mt,"__esModule",{value:!0});var Hi=un(),gt=class extends Hi.default{match(e){let r=e.split("/"),n=r.length,s=this._storage.filter(i=>!i.complete||i.segments.length>n);for(let i of s){let a=i.sections[0];if(!i.complete&&n>a.length||r.every((f,h)=>{let u=i.segments[h];return!!(u.dynamic&&u.patternRe.test(f)||!u.dynamic&&u.pattern===f)}))return!0}return!1}};mt.default=gt});var ln=c(St=>{"use strict";o();Object.defineProperty(St,"__esModule",{value:!0});var me=L(),Ui=cn(),yt=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let s=this._getMatcher(r),i=this._getNegativePatternsRe(n);return a=>this._filter(e,a,s,i)}_getMatcher(e){return new Ui.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(me.pattern.isAffectDepthOfReadingPattern);return me.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,s){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let i=me.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(i,n)?!1:this._isSkippedByNegativePatterns(i,s)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let s=e.split("/").length;return n-s}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!me.pattern.matchAny(e,r)}};St.default=yt});var hn=c(vt=>{"use strict";o();Object.defineProperty(vt,"__esModule",{value:!0});var V=L(),Pt=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let[n,s]=V.pattern.partitionAbsoluteAndRelative(r),i={positive:{all:V.pattern.convertPatternsToRe(e,this._micromatchOptions)},negative:{absolute:V.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:V.pattern.convertPatternsToRe(s,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return a=>this._filter(a,i)}_filter(e,r){let n=V.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;let s=this._isMatchToPatternsSet(n,r,e.dirent.isDirectory());return this._settings.unique&&s&&this._createIndexRecord(n),s}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,r,n){return!(!this._isMatchToPatterns(e,r.positive.all,n)||this._isMatchToPatterns(e,r.negative.relative,n)||this._isMatchToAbsoluteNegative(e,r.negative.absolute,n))}_isMatchToAbsoluteNegative(e,r,n){if(r.length===0)return!1;let s=V.path.makeAbsolute(this._settings.cwd,e);return this._isMatchToPatterns(s,r,n)}_isMatchToPatterns(e,r,n){if(r.length===0)return!1;let s=V.pattern.matchAny(e,r);return!s&&n?V.pattern.matchAny(e+"/",r):s}};vt.default=Pt});var fn=c(bt=>{"use strict";o();Object.defineProperty(bt,"__esModule",{value:!0});var Gi=L(),Et=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return Gi.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};bt.default=Et});var _n=c(Tt=>{"use strict";o();Object.defineProperty(Tt,"__esModule",{value:!0});var dn=L(),wt=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=dn.path.makeAbsolute(this._settings.cwd,r),r=dn.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Tt.default=wt});var ye=c(Ot=>{"use strict";o();Object.defineProperty(Ot,"__esModule",{value:!0});var Qi=E("path"),$i=ln(),Xi=hn(),Ji=fn(),Ki=_n(),kt=class{constructor(e){this._settings=e,this.errorFilter=new Ji.default(this._settings),this.entryFilter=new Xi.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new $i.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Ki.default(this._settings)}_getRootDirectory(e){return Qi.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Ot.default=kt});var pn=c(Mt=>{"use strict";o();Object.defineProperty(Mt,"__esModule",{value:!0});var zi=an(),Zi=ye(),Dt=class extends Zi.default{constructor(){super(...arguments),this._reader=new zi.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(i=>n.transform(i))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Mt.default=Dt});var gn=c(At=>{"use strict";o();Object.defineProperty(At,"__esModule",{value:!0});var eo=E("stream"),to=ht(),ro=ye(),qt=class extends ro.default{constructor(){super(...arguments),this._reader=new to.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),s=this.api(r,e,n),i=new eo.Readable({objectMode:!0,read:()=>{}});return s.once("error",a=>i.emit("error",a)).on("data",a=>i.emit("data",n.transform(a))).once("end",()=>i.emit("end")),i.once("close",()=>s.destroy()),i}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};At.default=qt});var mn=c(Rt=>{"use strict";o();Object.defineProperty(Rt,"__esModule",{value:!0});var no=Y(),so=pe(),io=ge(),Ft=class extends io.default{constructor(){super(...arguments),this._walkSync=so.walkSync,this._statSync=no.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let s of e){let i=this._getFullEntryPath(s),a=this._getEntry(i,s,r);a===null||!r.entryFilter(a)||n.push(a)}return n}_getEntry(e,r,n){try{let s=this._getStat(e);return this._makeEntry(s,r)}catch(s){if(n.errorFilter(s))return null;throw s}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Rt.default=Ft});var yn=c(xt=>{"use strict";o();Object.defineProperty(xt,"__esModule",{value:!0});var oo=mn(),ao=ye(),Lt=class extends ao.default{constructor(){super(...arguments),this._reader=new oo.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};xt.default=Lt});var Sn=c($=>{"use strict";o();Object.defineProperty($,"__esModule",{value:!0});$.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Q=E("fs"),uo=E("os"),co=Math.max(uo.cpus().length,1);$.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Q.lstat,lstatSync:Q.lstatSync,stat:Q.stat,statSync:Q.statSync,readdir:Q.readdir,readdirSync:Q.readdirSync};var jt=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,co),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},$.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};$.default=jt});var _o=c((du,vn)=>{o();var Pn=Pr(),lo=pn(),ho=gn(),fo=yn(),It=Sn(),k=L();async function Bt(t,e){M(t);let r=Nt(t,lo.default,e),n=await Promise.all(r);return k.array.flatten(n)}(function(t){t.glob=t,t.globSync=e,t.globStream=r,t.async=t;function e(h,u){M(h);let _=Nt(h,fo.default,u);return k.array.flatten(_)}t.sync=e;function r(h,u){M(h);let _=Nt(h,ho.default,u);return k.stream.merge(_)}t.stream=r;function n(h,u){M(h);let _=[].concat(h),p=new It.default(u);return Pn.generate(_,p)}t.generateTasks=n;function s(h,u){M(h);let _=new It.default(u);return k.pattern.isDynamicPattern(h,_)}t.isDynamicPattern=s;function i(h){return M(h),k.path.escape(h)}t.escapePath=i;function a(h){return M(h),k.path.convertPathToPattern(h)}t.convertPathToPattern=a;let d;(function(h){function u(p){return M(p),k.path.escapePosixPath(p)}h.escapePath=u;function _(p){return M(p),k.path.convertPosixPathToPattern(p)}h.convertPathToPattern=_})(d=t.posix||(t.posix={}));let f;(function(h){function u(p){return M(p),k.path.escapeWindowsPath(p)}h.escapePath=u;function _(p){return M(p),k.path.convertWindowsPathToPattern(p)}h.convertPathToPattern=_})(f=t.win32||(t.win32={}))})(Bt||(Bt={}));function Nt(t,e,r){let n=[].concat(t),s=new It.default(r),i=Pn.generate(n,s),a=new e(s);return i.map(a.read,a)}function M(t){if(![].concat(t).every(n=>k.string.isString(n)&&!k.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}vn.exports=Bt});export{dr as a,_o as b};
1
+ import{b as Dn,c as Mn,d as qn,e as An}from"./chunk-JJZNUFPD.js";import{a as E,c,g as o}from"./chunk-VKWPEFWQ.js";var Vt=c(H=>{"use strict";o();Object.defineProperty(H,"__esModule",{value:!0});H.splitWhen=H.flatten=void 0;function Fn(t){return t.reduce((e,r)=>[].concat(e,r),[])}H.flatten=Fn;function Rn(t,e){let r=[[]],n=0;for(let s of t)e(s)?(n++,r[n]=[]):r[n].push(s);return r}H.splitWhen=Rn});var Ct=c(K=>{"use strict";o();Object.defineProperty(K,"__esModule",{value:!0});K.isEnoentCodeError=void 0;function Ln(t){return t.code==="ENOENT"}K.isEnoentCodeError=Ln});var Yt=c(z=>{"use strict";o();Object.defineProperty(z,"__esModule",{value:!0});z.createDirentFromStats=void 0;var Se=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function xn(t,e){return new Se(t,e)}z.createDirentFromStats=xn});var Qt=c(P=>{"use strict";o();Object.defineProperty(P,"__esModule",{value:!0});P.convertPosixPathToPattern=P.convertWindowsPathToPattern=P.convertPathToPattern=P.escapePosixPath=P.escapeWindowsPath=P.escape=P.removeLeadingDotSegment=P.makeAbsolute=P.unixify=void 0;var jn=E("os"),In=E("path"),Ht=jn.platform()==="win32",Bn=2,Nn=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,Wn=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Vn=/^\\\\([.?])/,Cn=/\\(?![!()+@[\]{}])/g;function Yn(t){return t.replace(/\\/g,"/")}P.unixify=Yn;function Hn(t,e){return In.resolve(t,e)}P.makeAbsolute=Hn;function Un(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(Bn)}return t}P.removeLeadingDotSegment=Un;P.escape=Ht?Pe:ve;function Pe(t){return t.replace(Wn,"\\$2")}P.escapeWindowsPath=Pe;function ve(t){return t.replace(Nn,"\\$2")}P.escapePosixPath=ve;P.convertPathToPattern=Ht?Ut:Gt;function Ut(t){return Pe(t).replace(Vn,"//$1").replace(Cn,"/")}P.convertWindowsPathToPattern=Ut;function Gt(t){return ve(t)}P.convertPosixPathToPattern=Gt});var Zt=c((bo,zt)=>{"use strict";o();var Xt=E("util"),Jt=Mn(),q=An(),Ee=qn(),$t=t=>t===""||t==="./",Kt=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},S=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,s=new Set,i=new Set,a=0,d=u=>{i.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let _=q(String(e[u]),{...r,onResult:d},!0),p=_.state.negated||_.state.negatedExtglob;p&&a++;for(let R of t){let m=_(R,!0);(p?!m.isMatch:m.isMatch)&&(p?n.add(m.output):(n.delete(m.output),s.add(m.output)))}}let h=(a===e.length?[...i]:[...s]).filter(u=>!n.has(u));if(r&&h.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return h};S.match=S;S.matcher=(t,e)=>q(t,e);S.isMatch=(t,e,r)=>q(e,r)(t);S.any=S.isMatch;S.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,s=[],i=d=>{r.onResult&&r.onResult(d),s.push(d.output)},a=new Set(S(t,e,{...r,onResult:i}));for(let d of s)a.has(d)||n.add(d);return[...n]};S.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Xt.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>S.contains(t,n,r));if(typeof e=="string"){if($t(t)||$t(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return S.isMatch(t,e,{...r,contains:!0})};S.matchKeys=(t,e,r)=>{if(!Ee.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=S(Object.keys(t),e,r),s={};for(let i of n)s[i]=t[i];return s};S.some=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let i=q(String(s),r);if(n.some(a=>i(a)))return!0}return!1};S.every=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let i=q(String(s),r);if(!n.every(a=>i(a)))return!1}return!0};S.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Xt.inspect(t)}"`);return[].concat(e).every(n=>q(n,r)(t))};S.capture=(t,e,r)=>{let n=Ee.isWindows(r),i=q.makeRe(String(t),{...r,capture:!0}).exec(n?Ee.toPosixSlashes(e):e);if(i)return i.slice(1).map(a=>a===void 0?"":a)};S.makeRe=(...t)=>q.makeRe(...t);S.scan=(...t)=>q.scan(...t);S.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let s of Jt(String(n),e))r.push(q.parse(s,e));return r};S.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!Kt(t)?[t]:Jt(t,e)};S.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return S.braces(t,{...e,expand:!0})};S.hasBraces=Kt;zt.exports=S});var cr=c(l=>{"use strict";o();Object.defineProperty(l,"__esModule",{value:!0});l.isAbsolute=l.partitionAbsoluteAndRelative=l.removeDuplicateSlashes=l.matchAny=l.convertPatternsToRe=l.makeRe=l.getPatternParts=l.expandBraceExpansion=l.expandPatternsWithBraceExpansion=l.isAffectDepthOfReadingPattern=l.endsWithSlashGlobStar=l.hasGlobStar=l.getBaseDirectory=l.isPatternRelatedToParentDirectory=l.getPatternsOutsideCurrentDirectory=l.getPatternsInsideCurrentDirectory=l.getPositivePatterns=l.getNegativePatterns=l.isPositivePattern=l.isNegativePattern=l.convertToNegativePattern=l.convertToPositivePattern=l.isDynamicPattern=l.isStaticPattern=void 0;var er=E("path"),Gn=Dn(),be=Zt(),tr="**",Qn="\\",$n=/[*?]|^!/,Xn=/\[[^[]*]/,Jn=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Kn=/[!*+?@]\([^(]*\)/,zn=/,|\.\./,Zn=/(?!^)\/{2,}/g;function rr(t,e={}){return!nr(t,e)}l.isStaticPattern=rr;function nr(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(Qn)||$n.test(t)||Xn.test(t)||Jn.test(t)||e.extglob!==!1&&Kn.test(t)||e.braceExpansion!==!1&&es(t))}l.isDynamicPattern=nr;function es(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return zn.test(n)}function ts(t){return Z(t)?t.slice(1):t}l.convertToPositivePattern=ts;function rs(t){return"!"+t}l.convertToNegativePattern=rs;function Z(t){return t.startsWith("!")&&t[1]!=="("}l.isNegativePattern=Z;function sr(t){return!Z(t)}l.isPositivePattern=sr;function ns(t){return t.filter(Z)}l.getNegativePatterns=ns;function ss(t){return t.filter(sr)}l.getPositivePatterns=ss;function is(t){return t.filter(e=>!we(e))}l.getPatternsInsideCurrentDirectory=is;function os(t){return t.filter(we)}l.getPatternsOutsideCurrentDirectory=os;function we(t){return t.startsWith("..")||t.startsWith("./..")}l.isPatternRelatedToParentDirectory=we;function as(t){return Gn(t,{flipBackslashes:!1})}l.getBaseDirectory=as;function us(t){return t.includes(tr)}l.hasGlobStar=us;function ir(t){return t.endsWith("/"+tr)}l.endsWithSlashGlobStar=ir;function cs(t){let e=er.basename(t);return ir(t)||rr(e)}l.isAffectDepthOfReadingPattern=cs;function ls(t){return t.reduce((e,r)=>e.concat(or(r)),[])}l.expandPatternsWithBraceExpansion=ls;function or(t){let e=be.braces(t,{expand:!0,nodupes:!0,keepEscaping:!0});return e.sort((r,n)=>r.length-n.length),e.filter(r=>r!=="")}l.expandBraceExpansion=or;function hs(t,e){let{parts:r}=be.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}l.getPatternParts=hs;function ar(t,e){return be.makeRe(t,e)}l.makeRe=ar;function fs(t,e){return t.map(r=>ar(r,e))}l.convertPatternsToRe=fs;function ds(t,e){return e.some(r=>r.test(t))}l.matchAny=ds;function _s(t){return t.replace(Zn,"/")}l.removeDuplicateSlashes=_s;function ps(t){let e=[],r=[];for(let n of t)ur(n)?e.push(n):r.push(n);return[e,r]}l.partitionAbsoluteAndRelative=ps;function ur(t){return er.isAbsolute(t)}l.isAbsolute=ur});var dr=c((Oo,fr)=>{"use strict";o();var gs=E("stream"),lr=gs.PassThrough,ms=Array.prototype.slice;fr.exports=ys;function ys(){let t=[],e=ms.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let s=n.end!==!1,i=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let a=lr(n);function d(){for(let u=0,_=arguments.length;u<_;u++)t.push(hr(arguments[u],n));return f(),this}function f(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(h);return}Array.isArray(u)||(u=[u]);let _=u.length+1;function p(){--_>0||(r=!1,f())}function R(m){function O(){m.removeListener("merge2UnpipeEnd",O),m.removeListener("end",O),i&&m.removeListener("error",J),p()}function J(C){a.emit("error",C)}if(m._readableState.endEmitted)return p();m.on("merge2UnpipeEnd",O),m.on("end",O),i&&m.on("error",J),m.pipe(a,{end:!1}),m.resume()}for(let m=0;m<u.length;m++)R(u[m]);p()}function h(){r=!1,a.emit("queueDrain"),s&&a.end()}return a.setMaxListeners(0),a.add=d,a.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&d.apply(null,e),a}function hr(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=hr(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(lr(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var pr=c(ee=>{"use strict";o();Object.defineProperty(ee,"__esModule",{value:!0});ee.merge=void 0;var Ss=dr();function Ps(t){let e=Ss(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>_r(t)),e.once("end",()=>_r(t)),e}ee.merge=Ps;function _r(t){t.forEach(e=>e.emit("close"))}});var gr=c(U=>{"use strict";o();Object.defineProperty(U,"__esModule",{value:!0});U.isEmpty=U.isString=void 0;function vs(t){return typeof t=="string"}U.isString=vs;function Es(t){return t===""}U.isEmpty=Es});var L=c(b=>{"use strict";o();Object.defineProperty(b,"__esModule",{value:!0});b.string=b.stream=b.pattern=b.path=b.fs=b.errno=b.array=void 0;var bs=Vt();b.array=bs;var ws=Ct();b.errno=ws;var Ts=Yt();b.fs=Ts;var ks=Qt();b.path=ks;var Os=cr();b.pattern=Os;var Ds=pr();b.stream=Ds;var Ms=gr();b.string=Ms});var Pr=c(w=>{"use strict";o();Object.defineProperty(w,"__esModule",{value:!0});w.convertPatternGroupToTask=w.convertPatternGroupsToTasks=w.groupPatternsByBaseDirectory=w.getNegativePatternsAsPositive=w.getPositivePatterns=w.convertPatternsToTasks=w.generate=void 0;var D=L();function qs(t,e){let r=mr(t,e),n=mr(e.ignore,e),s=yr(r),i=Sr(r,n),a=s.filter(u=>D.pattern.isStaticPattern(u,e)),d=s.filter(u=>D.pattern.isDynamicPattern(u,e)),f=Te(a,i,!1),h=Te(d,i,!0);return f.concat(h)}w.generate=qs;function mr(t,e){let r=t;return e.braceExpansion&&(r=D.pattern.expandPatternsWithBraceExpansion(r)),e.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>D.pattern.removeDuplicateSlashes(n))}function Te(t,e,r){let n=[],s=D.pattern.getPatternsOutsideCurrentDirectory(t),i=D.pattern.getPatternsInsideCurrentDirectory(t),a=ke(s),d=ke(i);return n.push(...Oe(a,e,r)),"."in d?n.push(De(".",i,e,r)):n.push(...Oe(d,e,r)),n}w.convertPatternsToTasks=Te;function yr(t){return D.pattern.getPositivePatterns(t)}w.getPositivePatterns=yr;function Sr(t,e){return D.pattern.getNegativePatterns(t).concat(e).map(D.pattern.convertToPositivePattern)}w.getNegativePatternsAsPositive=Sr;function ke(t){let e={};return t.reduce((r,n)=>{let s=D.pattern.getBaseDirectory(n);return s in r?r[s].push(n):r[s]=[n],r},e)}w.groupPatternsByBaseDirectory=ke;function Oe(t,e,r){return Object.keys(t).map(n=>De(n,t[n],e,r))}w.convertPatternGroupsToTasks=Oe;function De(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(D.pattern.convertToNegativePattern))}}w.convertPatternGroupToTask=De});var Er=c(te=>{"use strict";o();Object.defineProperty(te,"__esModule",{value:!0});te.read=void 0;function As(t,e,r){e.fs.lstat(t,(n,s)=>{if(n!==null){vr(r,n);return}if(!s.isSymbolicLink()||!e.followSymbolicLink){Me(r,s);return}e.fs.stat(t,(i,a)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){vr(r,i);return}Me(r,s);return}e.markSymbolicLink&&(a.isSymbolicLink=()=>!0),Me(r,a)})})}te.read=As;function vr(t,e){t(e)}function Me(t,e){t(null,e)}});var br=c(re=>{"use strict";o();Object.defineProperty(re,"__esModule",{value:!0});re.read=void 0;function Fs(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}re.read=Fs});var wr=c(x=>{"use strict";o();Object.defineProperty(x,"__esModule",{value:!0});x.createFileSystemAdapter=x.FILE_SYSTEM_ADAPTER=void 0;var ne=E("fs");x.FILE_SYSTEM_ADAPTER={lstat:ne.lstat,stat:ne.stat,lstatSync:ne.lstatSync,statSync:ne.statSync};function Rs(t){return t===void 0?x.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},x.FILE_SYSTEM_ADAPTER),t)}x.createFileSystemAdapter=Rs});var Tr=c(Ae=>{"use strict";o();Object.defineProperty(Ae,"__esModule",{value:!0});var Ls=wr(),qe=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Ls.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};Ae.default=qe});var Y=c(j=>{"use strict";o();Object.defineProperty(j,"__esModule",{value:!0});j.statSync=j.stat=j.Settings=void 0;var kr=Er(),xs=br(),Fe=Tr();j.Settings=Fe.default;function js(t,e,r){if(typeof e=="function"){kr.read(t,Re(),e);return}kr.read(t,Re(e),r)}j.stat=js;function Is(t,e){let r=Re(e);return xs.read(t,r)}j.statSync=Is;function Re(t={}){return t instanceof Fe.default?t:new Fe.default(t)}});var Mr=c((Qo,Dr)=>{o();var Or;Dr.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Or||(Or=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Ar=c((Xo,qr)=>{o();qr.exports=Ns;var Bs=Mr();function Ns(t,e){let r,n,s,i=!0;Array.isArray(t)?(r=[],n=t.length):(s=Object.keys(t),r={},n=s.length);function a(f){function h(){e&&e(f,r),e=null}i?Bs(h):h()}function d(f,h,u){r[f]=u,(--n===0||h)&&a(h)}n?s?s.forEach(function(f){t[f](function(h,u){d(f,h,u)})}):t.forEach(function(f,h){f(function(u,_){d(h,u,_)})}):a(null),i=!1}});var Le=c(ie=>{"use strict";o();Object.defineProperty(ie,"__esModule",{value:!0});ie.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var se=process.versions.node.split(".");if(se[0]===void 0||se[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Fr=Number.parseInt(se[0],10),Ws=Number.parseInt(se[1],10),Rr=10,Vs=10,Cs=Fr>Rr,Ys=Fr===Rr&&Ws>=Vs;ie.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Cs||Ys});var Lr=c(oe=>{"use strict";o();Object.defineProperty(oe,"__esModule",{value:!0});oe.createDirentFromStats=void 0;var xe=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Hs(t,e){return new xe(t,e)}oe.createDirentFromStats=Hs});var je=c(ae=>{"use strict";o();Object.defineProperty(ae,"__esModule",{value:!0});ae.fs=void 0;var Us=Lr();ae.fs=Us});var Ie=c(ue=>{"use strict";o();Object.defineProperty(ue,"__esModule",{value:!0});ue.joinPathSegments=void 0;function Gs(t,e,r){return t.endsWith(r)?t+e:t+r+e}ue.joinPathSegments=Gs});var Wr=c(I=>{"use strict";o();Object.defineProperty(I,"__esModule",{value:!0});I.readdir=I.readdirWithFileTypes=I.read=void 0;var Qs=Y(),xr=Ar(),$s=Le(),jr=je(),Ir=Ie();function Xs(t,e,r){if(!e.stats&&$s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Br(t,e,r);return}Nr(t,e,r)}I.read=Xs;function Br(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,s)=>{if(n!==null){ce(r,n);return}let i=s.map(d=>({dirent:d,name:d.name,path:Ir.joinPathSegments(t,d.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Be(r,i);return}let a=i.map(d=>Js(d,e));xr(a,(d,f)=>{if(d!==null){ce(r,d);return}Be(r,f)})})}I.readdirWithFileTypes=Br;function Js(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,s)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=jr.fs.createDirentFromStats(t.name,s),r(null,t)})}}function Nr(t,e,r){e.fs.readdir(t,(n,s)=>{if(n!==null){ce(r,n);return}let i=s.map(a=>{let d=Ir.joinPathSegments(t,a,e.pathSegmentSeparator);return f=>{Qs.stat(d,e.fsStatSettings,(h,u)=>{if(h!==null){f(h);return}let _={name:a,path:d,dirent:jr.fs.createDirentFromStats(a,u)};e.stats&&(_.stats=u),f(null,_)})}});xr(i,(a,d)=>{if(a!==null){ce(r,a);return}Be(r,d)})})}I.readdir=Nr;function ce(t,e){t(e)}function Be(t,e){t(null,e)}});var Ur=c(B=>{"use strict";o();Object.defineProperty(B,"__esModule",{value:!0});B.readdir=B.readdirWithFileTypes=B.read=void 0;var Ks=Y(),zs=Le(),Vr=je(),Cr=Ie();function Zs(t,e){return!e.stats&&zs.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Yr(t,e):Hr(t,e)}B.read=Zs;function Yr(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let s={dirent:n,name:n.name,path:Cr.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(s.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let i=e.fs.statSync(s.path);s.dirent=Vr.fs.createDirentFromStats(s.name,i)}catch(i){if(e.throwErrorOnBrokenSymbolicLink)throw i}return s})}B.readdirWithFileTypes=Yr;function Hr(t,e){return e.fs.readdirSync(t).map(n=>{let s=Cr.joinPathSegments(t,n,e.pathSegmentSeparator),i=Ks.statSync(s,e.fsStatSettings),a={name:n,path:s,dirent:Vr.fs.createDirentFromStats(n,i)};return e.stats&&(a.stats=i),a})}B.readdir=Hr});var Gr=c(N=>{"use strict";o();Object.defineProperty(N,"__esModule",{value:!0});N.createFileSystemAdapter=N.FILE_SYSTEM_ADAPTER=void 0;var G=E("fs");N.FILE_SYSTEM_ADAPTER={lstat:G.lstat,stat:G.stat,lstatSync:G.lstatSync,statSync:G.statSync,readdir:G.readdir,readdirSync:G.readdirSync};function ei(t){return t===void 0?N.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},N.FILE_SYSTEM_ADAPTER),t)}N.createFileSystemAdapter=ei});var Qr=c(We=>{"use strict";o();Object.defineProperty(We,"__esModule",{value:!0});var ti=E("path"),ri=Y(),ni=Gr(),Ne=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=ni.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,ti.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new ri.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};We.default=Ne});var le=c(W=>{"use strict";o();Object.defineProperty(W,"__esModule",{value:!0});W.Settings=W.scandirSync=W.scandir=void 0;var $r=Wr(),si=Ur(),Ve=Qr();W.Settings=Ve.default;function ii(t,e,r){if(typeof e=="function"){$r.read(t,Ce(),e);return}$r.read(t,Ce(e),r)}W.scandir=ii;function oi(t,e){let r=Ce(e);return si.read(t,r)}W.scandirSync=oi;function Ce(t={}){return t instanceof Ve.default?t:new Ve.default(t)}});var Jr=c((pa,Xr)=>{"use strict";o();function ai(t){var e=new t,r=e;function n(){var i=e;return i.next?e=i.next:(e=new t,r=e),i.next=null,i}function s(i){r.next=i,r=i}return{get:n,release:s}}Xr.exports=ai});var zr=c((ma,Ye)=>{"use strict";o();var ui=Jr();function Kr(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=ui(ci),s=null,i=null,a=0,d=null,f={push:O,drain:T,saturated:T,pause:u,paused:!1,get concurrency(){return r},set concurrency(g){if(!(g>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=g,!f.paused)for(;s&&a<r;)a++,C()},running:h,resume:R,idle:m,length:_,getQueue:p,unshift:J,empty:T,kill:En,killAndDrain:bn,error:Tn,abort:wn};return f;function h(){return a}function u(){f.paused=!0}function _(){for(var g=s,v=0;g;)g=g.next,v++;return v}function p(){for(var g=s,v=[];g;)v.push(g.value),g=g.next;return v}function R(){if(f.paused){if(f.paused=!1,s===null){a++,C();return}for(;s&&a<r;)a++,C()}}function m(){return a===0&&f.length()===0}function O(g,v){var y=n.get();y.context=t,y.release=C,y.value=g,y.callback=v||T,y.errorHandler=d,a>=r||f.paused?i?(i.next=y,i=y):(s=y,i=y,f.saturated()):(a++,e.call(t,y.value,y.worked))}function J(g,v){var y=n.get();y.context=t,y.release=C,y.value=g,y.callback=v||T,y.errorHandler=d,a>=r||f.paused?s?(y.next=s,s=y):(s=y,i=y,f.saturated()):(a++,e.call(t,y.value,y.worked))}function C(g){g&&n.release(g);var v=s;v&&a<=r?f.paused?a--:(i===s&&(i=null),s=v.next,v.next=null,e.call(t,v.value,v.worked),i===null&&f.empty()):--a===0&&f.drain()}function En(){s=null,i=null,f.drain=T}function bn(){s=null,i=null,f.drain(),f.drain=T}function wn(){var g=s;for(s=null,i=null;g;){var v=g.next,y=g.callback,Wt=g.errorHandler,kn=g.value,On=g.context;g.value=null,g.callback=T,g.errorHandler=null,Wt&&Wt(new Error("abort"),kn),y.call(On,new Error("abort")),g.release(g),g=v}f.drain=T}function Tn(g){d=g}}function T(){}function ci(){this.value=null,this.callback=T,this.next=null,this.release=T,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var s=t.callback,i=t.errorHandler,a=t.value;t.value=null,t.callback=T,t.errorHandler&&i(r,a),s.call(t.context,r,n),t.release(t)}}function li(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(u,_){e.call(this,u).then(function(p){_(null,p)},_)}var s=Kr(t,n,r),i=s.push,a=s.unshift;return s.push=d,s.unshift=f,s.drained=h,s;function d(u){var _=new Promise(function(p,R){i(u,function(m,O){if(m){R(m);return}p(O)})});return _.catch(T),_}function f(u){var _=new Promise(function(p,R){a(u,function(m,O){if(m){R(m);return}p(O)})});return _.catch(T),_}function h(){var u=new Promise(function(_){process.nextTick(function(){if(s.idle())_();else{var p=s.drain;s.drain=function(){typeof p=="function"&&p(),_(),s.drain=p}}})});return u}}Ye.exports=Kr;Ye.exports.promise=li});var he=c(A=>{"use strict";o();Object.defineProperty(A,"__esModule",{value:!0});A.joinPathSegments=A.replacePathSegmentSeparator=A.isAppliedFilter=A.isFatalError=void 0;function hi(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}A.isFatalError=hi;function fi(t,e){return t===null||t(e)}A.isAppliedFilter=fi;function di(t,e){return t.split(/[/\\]/).join(e)}A.replacePathSegmentSeparator=di;function _i(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}A.joinPathSegments=_i});var Ge=c(Ue=>{"use strict";o();Object.defineProperty(Ue,"__esModule",{value:!0});var pi=he(),He=class{constructor(e,r){this._root=e,this._settings=r,this._root=pi.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Ue.default=He});var Xe=c($e=>{"use strict";o();Object.defineProperty($e,"__esModule",{value:!0});var gi=E("events"),mi=le(),yi=zr(),fe=he(),Si=Ge(),Qe=class extends Si.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=mi.scandir,this._emitter=new gi.EventEmitter,this._queue=yi(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,s=>{s!==null&&this._handleError(s)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,s)=>{if(n!==null){r(n,void 0);return}for(let i of s)this._handleEntry(i,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!fe.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=fe.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),fe.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&fe.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};$e.default=Qe});var Zr=c(Ke=>{"use strict";o();Object.defineProperty(Ke,"__esModule",{value:!0});var Pi=Xe(),Je=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Pi.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{vi(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Ei(e,this._storage)}),this._reader.read()}};Ke.default=Je;function vi(t,e){t(e)}function Ei(t,e){t(null,e)}});var en=c(Ze=>{"use strict";o();Object.defineProperty(Ze,"__esModule",{value:!0});var bi=E("stream"),wi=Xe(),ze=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new wi.default(this._root,this._settings),this._stream=new bi.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Ze.default=ze});var tn=c(tt=>{"use strict";o();Object.defineProperty(tt,"__esModule",{value:!0});var Ti=le(),de=he(),ki=Ge(),et=class extends ki.default{constructor(){super(...arguments),this._scandir=Ti.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let s of n)this._handleEntry(s,r)}catch(n){this._handleError(n)}}_handleError(e){if(de.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=de.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),de.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&de.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};tt.default=et});var rn=c(nt=>{"use strict";o();Object.defineProperty(nt,"__esModule",{value:!0});var Oi=tn(),rt=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Oi.default(this._root,this._settings)}read(){return this._reader.read()}};nt.default=rt});var nn=c(it=>{"use strict";o();Object.defineProperty(it,"__esModule",{value:!0});var Di=E("path"),Mi=le(),st=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Di.sep),this.fsScandirSettings=new Mi.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};it.default=st});var pe=c(F=>{"use strict";o();Object.defineProperty(F,"__esModule",{value:!0});F.Settings=F.walkStream=F.walkSync=F.walk=void 0;var sn=Zr(),qi=en(),Ai=rn(),ot=nn();F.Settings=ot.default;function Fi(t,e,r){if(typeof e=="function"){new sn.default(t,_e()).read(e);return}new sn.default(t,_e(e)).read(r)}F.walk=Fi;function Ri(t,e){let r=_e(e);return new Ai.default(t,r).read()}F.walkSync=Ri;function Li(t,e){let r=_e(e);return new qi.default(t,r).read()}F.walkStream=Li;function _e(t={}){return t instanceof ot.default?t:new ot.default(t)}});var ge=c(ut=>{"use strict";o();Object.defineProperty(ut,"__esModule",{value:!0});var xi=E("path"),ji=Y(),on=L(),at=class{constructor(e){this._settings=e,this._fsStatSettings=new ji.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return xi.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:on.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!on.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};ut.default=at});var ht=c(lt=>{"use strict";o();Object.defineProperty(lt,"__esModule",{value:!0});var Ii=E("stream"),Bi=Y(),Ni=pe(),Wi=ge(),ct=class extends Wi.default{constructor(){super(...arguments),this._walkStream=Ni.walkStream,this._stat=Bi.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),s=new Ii.PassThrough({objectMode:!0});s._write=(i,a,d)=>this._getEntry(n[i],e[i],r).then(f=>{f!==null&&r.entryFilter(f)&&s.push(f),i===n.length-1&&s.end(),d()}).catch(d);for(let i=0;i<n.length;i++)s.write(i);return s}_getEntry(e,r,n){return this._getStat(e).then(s=>this._makeEntry(s,r)).catch(s=>{if(n.errorFilter(s))return null;throw s})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(s,i)=>s===null?r(i):n(s))})}};lt.default=ct});var an=c(dt=>{"use strict";o();Object.defineProperty(dt,"__esModule",{value:!0});var Vi=pe(),Ci=ge(),Yi=ht(),ft=class extends Ci.default{constructor(){super(...arguments),this._walkAsync=Vi.walk,this._readerStream=new Yi.default(this._settings)}dynamic(e,r){return new Promise((n,s)=>{this._walkAsync(e,r,(i,a)=>{i===null?n(a):s(i)})})}async static(e,r){let n=[],s=this._readerStream.static(e,r);return new Promise((i,a)=>{s.once("error",a),s.on("data",d=>n.push(d)),s.once("end",()=>i(n))})}};dt.default=ft});var un=c(pt=>{"use strict";o();Object.defineProperty(pt,"__esModule",{value:!0});var X=L(),_t=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let r=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:e,segments:r,sections:n})}}_getPatternSegments(e){return X.pattern.getPatternParts(e,this._micromatchOptions).map(n=>X.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:X.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return X.array.splitWhen(e,r=>r.dynamic&&X.pattern.hasGlobStar(r.pattern))}};pt.default=_t});var cn=c(mt=>{"use strict";o();Object.defineProperty(mt,"__esModule",{value:!0});var Hi=un(),gt=class extends Hi.default{match(e){let r=e.split("/"),n=r.length,s=this._storage.filter(i=>!i.complete||i.segments.length>n);for(let i of s){let a=i.sections[0];if(!i.complete&&n>a.length||r.every((f,h)=>{let u=i.segments[h];return!!(u.dynamic&&u.patternRe.test(f)||!u.dynamic&&u.pattern===f)}))return!0}return!1}};mt.default=gt});var ln=c(St=>{"use strict";o();Object.defineProperty(St,"__esModule",{value:!0});var me=L(),Ui=cn(),yt=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let s=this._getMatcher(r),i=this._getNegativePatternsRe(n);return a=>this._filter(e,a,s,i)}_getMatcher(e){return new Ui.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(me.pattern.isAffectDepthOfReadingPattern);return me.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,s){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let i=me.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(i,n)?!1:this._isSkippedByNegativePatterns(i,s)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let s=e.split("/").length;return n-s}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!me.pattern.matchAny(e,r)}};St.default=yt});var hn=c(vt=>{"use strict";o();Object.defineProperty(vt,"__esModule",{value:!0});var V=L(),Pt=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let[n,s]=V.pattern.partitionAbsoluteAndRelative(r),i={positive:{all:V.pattern.convertPatternsToRe(e,this._micromatchOptions)},negative:{absolute:V.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:V.pattern.convertPatternsToRe(s,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return a=>this._filter(a,i)}_filter(e,r){let n=V.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;let s=this._isMatchToPatternsSet(n,r,e.dirent.isDirectory());return this._settings.unique&&s&&this._createIndexRecord(n),s}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,r,n){return!(!this._isMatchToPatterns(e,r.positive.all,n)||this._isMatchToPatterns(e,r.negative.relative,n)||this._isMatchToAbsoluteNegative(e,r.negative.absolute,n))}_isMatchToAbsoluteNegative(e,r,n){if(r.length===0)return!1;let s=V.path.makeAbsolute(this._settings.cwd,e);return this._isMatchToPatterns(s,r,n)}_isMatchToPatterns(e,r,n){if(r.length===0)return!1;let s=V.pattern.matchAny(e,r);return!s&&n?V.pattern.matchAny(e+"/",r):s}};vt.default=Pt});var fn=c(bt=>{"use strict";o();Object.defineProperty(bt,"__esModule",{value:!0});var Gi=L(),Et=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return Gi.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};bt.default=Et});var _n=c(Tt=>{"use strict";o();Object.defineProperty(Tt,"__esModule",{value:!0});var dn=L(),wt=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=dn.path.makeAbsolute(this._settings.cwd,r),r=dn.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Tt.default=wt});var ye=c(Ot=>{"use strict";o();Object.defineProperty(Ot,"__esModule",{value:!0});var Qi=E("path"),$i=ln(),Xi=hn(),Ji=fn(),Ki=_n(),kt=class{constructor(e){this._settings=e,this.errorFilter=new Ji.default(this._settings),this.entryFilter=new Xi.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new $i.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Ki.default(this._settings)}_getRootDirectory(e){return Qi.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Ot.default=kt});var pn=c(Mt=>{"use strict";o();Object.defineProperty(Mt,"__esModule",{value:!0});var zi=an(),Zi=ye(),Dt=class extends Zi.default{constructor(){super(...arguments),this._reader=new zi.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(i=>n.transform(i))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Mt.default=Dt});var gn=c(At=>{"use strict";o();Object.defineProperty(At,"__esModule",{value:!0});var eo=E("stream"),to=ht(),ro=ye(),qt=class extends ro.default{constructor(){super(...arguments),this._reader=new to.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),s=this.api(r,e,n),i=new eo.Readable({objectMode:!0,read:()=>{}});return s.once("error",a=>i.emit("error",a)).on("data",a=>i.emit("data",n.transform(a))).once("end",()=>i.emit("end")),i.once("close",()=>s.destroy()),i}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};At.default=qt});var mn=c(Rt=>{"use strict";o();Object.defineProperty(Rt,"__esModule",{value:!0});var no=Y(),so=pe(),io=ge(),Ft=class extends io.default{constructor(){super(...arguments),this._walkSync=so.walkSync,this._statSync=no.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let s of e){let i=this._getFullEntryPath(s),a=this._getEntry(i,s,r);a===null||!r.entryFilter(a)||n.push(a)}return n}_getEntry(e,r,n){try{let s=this._getStat(e);return this._makeEntry(s,r)}catch(s){if(n.errorFilter(s))return null;throw s}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Rt.default=Ft});var yn=c(xt=>{"use strict";o();Object.defineProperty(xt,"__esModule",{value:!0});var oo=mn(),ao=ye(),Lt=class extends ao.default{constructor(){super(...arguments),this._reader=new oo.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};xt.default=Lt});var Sn=c($=>{"use strict";o();Object.defineProperty($,"__esModule",{value:!0});$.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Q=E("fs"),uo=E("os"),co=Math.max(uo.cpus().length,1);$.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Q.lstat,lstatSync:Q.lstatSync,stat:Q.stat,statSync:Q.statSync,readdir:Q.readdir,readdirSync:Q.readdirSync};var jt=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,co),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},$.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};$.default=jt});var _o=c((du,vn)=>{o();var Pn=Pr(),lo=pn(),ho=gn(),fo=yn(),It=Sn(),k=L();async function Bt(t,e){M(t);let r=Nt(t,lo.default,e),n=await Promise.all(r);return k.array.flatten(n)}(function(t){t.glob=t,t.globSync=e,t.globStream=r,t.async=t;function e(h,u){M(h);let _=Nt(h,fo.default,u);return k.array.flatten(_)}t.sync=e;function r(h,u){M(h);let _=Nt(h,ho.default,u);return k.stream.merge(_)}t.stream=r;function n(h,u){M(h);let _=[].concat(h),p=new It.default(u);return Pn.generate(_,p)}t.generateTasks=n;function s(h,u){M(h);let _=new It.default(u);return k.pattern.isDynamicPattern(h,_)}t.isDynamicPattern=s;function i(h){return M(h),k.path.escape(h)}t.escapePath=i;function a(h){return M(h),k.path.convertPathToPattern(h)}t.convertPathToPattern=a;let d;(function(h){function u(p){return M(p),k.path.escapePosixPath(p)}h.escapePath=u;function _(p){return M(p),k.path.convertPosixPathToPattern(p)}h.convertPathToPattern=_})(d=t.posix||(t.posix={}));let f;(function(h){function u(p){return M(p),k.path.escapeWindowsPath(p)}h.escapePath=u;function _(p){return M(p),k.path.convertWindowsPathToPattern(p)}h.convertPathToPattern=_})(f=t.win32||(t.win32={}))})(Bt||(Bt={}));function Nt(t,e,r){let n=[].concat(t),s=new It.default(r),i=Pn.generate(n,s),a=new e(s);return i.map(a.read,a)}function M(t){if(![].concat(t).every(n=>k.string.isString(n)&&!k.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}vn.exports=Bt});export{dr as a,_o as b};
2
2
  /*! Bundled license information:
3
3
 
4
4
  queue-microtask/index.js:
@@ -1 +1 @@
1
- import{c as m,d as f,e as p}from"./chunk-Q7DSLGTN.js";import{d as c,f as w,j as T}from"./chunk-I5X3IP6T.js";import{g as d}from"./chunk-4P54DKG4.js";import{B as u}from"./chunk-EEEKSYWV.js";import{d as l}from"./chunk-IIFRDOYG.js";import{U as i}from"./chunk-TB7HFPBB.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();async function A(e,r){let n=await m(e),t=new p(r.filter),a=e.storeFqdn;if(t.any())return f(a,n,t)[0];let y=r.header??"",h=n.map(o=>{let S=o.id.toString()===d()?" [current]":"";return{value:async()=>o,label:`${o.name}${S}`,group:i(o.role)}});return r.create&&h.unshift(g(e)),(await u({message:y,choices:h}))()}async function B(e,r){return(await m(e)).find(t=>t.id.toString()===r)}async function C(e,r){let n=await m(e),t=new p(r),a=e.storeFqdn;return t.any()?f(a,n,t):[]}function g(e){return{value:async()=>{let r=c,n=await w("Name of the new theme"),t=await T({name:n,role:r},e);if(!t)throw new l("The theme could not be created.");return t},label:"[Create a new theme]",group:i(c)}}export{A as a,B as b,C as c};
1
+ import{c as m,d as f,e as p}from"./chunk-ITNFDLZ4.js";import{d as c,f as w,j as T}from"./chunk-Y7A7Z2V3.js";import{g as d}from"./chunk-445NFHXL.js";import{B as u}from"./chunk-JX4HSDDG.js";import{m as l}from"./chunk-2GB3EAD3.js";import{T as i}from"./chunk-BCZMDFI2.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();async function A(e,r){let n=await m(e),t=new p(r.filter),a=e.storeFqdn;if(t.any())return f(a,n,t)[0];let y=r.header??"",h=n.map(o=>{let S=o.id.toString()===d()?" [current]":"";return{value:async()=>o,label:`${o.name}${S}`,group:i(o.role)}});return r.create&&h.unshift(g(e)),(await u({message:y,choices:h}))()}async function B(e,r){return(await m(e)).find(t=>t.id.toString()===r)}async function C(e,r){let n=await m(e),t=new p(r),a=e.storeFqdn;return t.any()?f(a,n,t):[]}function g(e){return{value:async()=>{let r=c,n=await w("Name of the new theme"),t=await T({name:n,role:r},e);if(!t)throw new l("The theme could not be created.");return t},label:"[Create a new theme]",group:i(c)}}export{A as a,B as b,C as c};
@@ -1 +1 @@
1
- import{a as o}from"./chunk-7RJPTSL6.js";import{b as e}from"./chunk-UAYIFFYJ.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var t=class extends e{static{this.description="View the UI kit components that display static output"}static{this.hidden=!0}async run(){await o()}};export{t as a};
1
+ import{a as o}from"./chunk-MY2H5XPY.js";import{b as e}from"./chunk-WHT2RCAD.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var t=class extends e{static{this.description="View the UI kit components that display static output"}static{this.hidden=!0}async run(){await o()}};export{t as a};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-CV5ELBVU.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends o{};export{t as a};
@@ -1,4 +1,4 @@
1
- import{a as B,j as C,m as P}from"./chunk-DN3BB4IO.js";import{e as g}from"./chunk-N6IFIMC6.js";import{e as U,f as _}from"./chunk-HSVZU7MP.js";import{l as v,m as w}from"./chunk-I5X3IP6T.js";import{xa as E}from"./chunk-TIU7MMRT.js";import{Pb as m}from"./chunk-TB7HFPBB.js";import{g as T}from"./chunk-VKWPEFWQ.js";T();var $=20,J=1024*1024,A=2;function oe(t,e,r,s,o={},l){let n=B(r),i=new Map,c=a=>a.total===0?"[100%]":`[${Math.round(a.current/a.total*100)}%]`,u=R(t,e,n),h=Promise.all([s.ready(),u]).then(()=>q(n,s,t,e,i)),p=h.then(a=>a.promise).then(()=>j(n,s,t,e,o,i)),k=o?.deferPartialWork?u:p.then(a=>a.promise);return o?.backgroundWorkCatch&&Promise.all([u,h.then(a=>a.promise),p.then(a=>a.promise)]).catch(o.backgroundWorkCatch),{uploadResults:i,workPromise:k,renderThemeSyncProgress:async()=>{if(o?.deferPartialWork)return;let{progress:a,promise:d}=await h,f=o.multiEnvironment?4e3:1e3;await g(b({promise:d,titleGetter:()=>`Uploading files to remote theme ${c(a)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment);let{progress:y,promise:F}=await p;await g(b({promise:F,titleGetter:()=>`Cleaning your remote theme ${c(y)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment),await g([{title:"Theme upload complete",task:async()=>{}}],l?.stderr,o?.multiEnvironment),H(i,o?.environment)}}}function b({promise:t,titleGetter:e,updateInterval:r}){let s=[],o=()=>{s.push({title:e(),task:async()=>{await Promise.race([t,new Promise(n=>setTimeout(()=>n("timeout"),r))])==="timeout"&&o()}})};return o(),s}function j(t,e,r,s,o,l){if(o.nodelete)return{progress:{current:0,total:0},promise:Promise.resolve()};let n=L(t,e),i=x(n),c={current:0,total:i.length};if(i.length===0)return{progress:c,promise:Promise.resolve()};let u=[];for(let p=0;p<i.length;p+=$){let k=i.slice(p,p+$),a=v(r.id,k.map(d=>d.key),s).then(d=>{d.forEach(f=>{if(l.set(f.key,f),!f.success){let y=f.errors?.asset?.map(F=>`-${F}`).join(`
1
+ import{a as B,j as C,m as P}from"./chunk-7MD5MIGN.js";import{e as g}from"./chunk-7TXWKLPY.js";import{e as U,f as _}from"./chunk-NKT5U6IJ.js";import{l as v,m as w}from"./chunk-Y7A7Z2V3.js";import{ua as E}from"./chunk-AFM3UZQO.js";import{Pb as m}from"./chunk-BCZMDFI2.js";import{g as T}from"./chunk-VKWPEFWQ.js";T();var $=20,J=1024*1024,A=2;function oe(t,e,r,s,o={},l){let n=B(r),i=new Map,c=a=>a.total===0?"[100%]":`[${Math.round(a.current/a.total*100)}%]`,u=R(t,e,n),h=Promise.all([s.ready(),u]).then(()=>q(n,s,t,e,i)),p=h.then(a=>a.promise).then(()=>j(n,s,t,e,o,i)),k=o?.deferPartialWork?u:p.then(a=>a.promise);return o?.backgroundWorkCatch&&Promise.all([u,h.then(a=>a.promise),p.then(a=>a.promise)]).catch(o.backgroundWorkCatch),{uploadResults:i,workPromise:k,renderThemeSyncProgress:async()=>{if(o?.deferPartialWork)return;let{progress:a,promise:d}=await h,f=o.multiEnvironment?4e3:1e3;await g(b({promise:d,titleGetter:()=>`Uploading files to remote theme ${c(a)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment);let{progress:y,promise:F}=await p;await g(b({promise:F,titleGetter:()=>`Cleaning your remote theme ${c(y)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment),await g([{title:"Theme upload complete",task:async()=>{}}],l?.stderr,o?.multiEnvironment),H(i,o?.environment)}}}function b({promise:t,titleGetter:e,updateInterval:r}){let s=[],o=()=>{s.push({title:e(),task:async()=>{await Promise.race([t,new Promise(n=>setTimeout(()=>n("timeout"),r))])==="timeout"&&o()}})};return o(),s}function j(t,e,r,s,o,l){if(o.nodelete)return{progress:{current:0,total:0},promise:Promise.resolve()};let n=L(t,e),i=x(n),c={current:0,total:i.length};if(i.length===0)return{progress:c,promise:Promise.resolve()};let u=[];for(let p=0;p<i.length;p+=$){let k=i.slice(p,p+$),a=v(r.id,k.map(d=>d.key),s).then(d=>{d.forEach(f=>{if(l.set(f.key,f),!f.success){let y=f.errors?.asset?.map(F=>`-${F}`).join(`
2
2
  `);_(f.key,"delete")(new Error(`Failed to delete ${f.key}: ${y}`))}}),c.current+=k.length});u.push(a)}let h=Promise.all(u).then(()=>{c.current=c.total});return{progress:c,promise:h}}function L(t,e){let s=e.applyIgnoreFilters(t).filter(o=>!e.files.has(o.key));return m(`Files to be deleted:
3
3
  ${s.map(o=>`-${o.key}`).join(`
4
4
  `)}`),s}function x(t){let e=P(t);return[...e.contextualizedJsonFiles,...e.templateJsonFiles,...e.sectionJsonFiles,...e.otherJsonFiles,...e.sectionLiquidFiles,...e.blockLiquidFiles,...e.layoutFiles,...e.otherLiquidFiles,...e.configDataFile,...e.configSchemaFile,...e.staticAssetFiles]}var D=[{key:"config/settings_schema.json",value:"[]"},{key:"layout/password.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"layout/theme.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"}];async function R(t,e,r){let s=new Set(r.map(l=>l.key)),o=D.filter(({key:l})=>!s.has(l));o.length>0&&await w(t.id,o,e)}function q(t,e,r,s,o){let l=I(e,t);e.unsyncedFileKeys.clear(),l.forEach(a=>e.unsyncedFileKeys.add(a.key));let{independentFiles:n,dependentFiles:i}=z(l),c={current:0,total:l.length},u=a=>a.length===0?Promise.resolve():Promise.all(S(a).map(d=>N(d,e,s,r.id,o).then(()=>{c.current+=d.length,d.forEach(f=>e.unsyncedFileKeys.delete(f.key))}))).then(()=>{}),h=i.reduce((a,d)=>a.then(()=>u(d)),Promise.resolve()),p=Promise.resolve().then(()=>u(n.flat())),k=Promise.all([h,p]).then(()=>{c.current=c.total});return{progress:c,promise:k}}function I(t,e){let r=K(t),s=t.applyIgnoreFilters(r),o=new Map(e.map(n=>[n.key,n])),l=s.filter(n=>{let i=o.get(n.key);return!i||i.checksum!==n.checksum});return m(`Files to be uploaded:
@@ -1,4 +1,4 @@
1
- import{a as V}from"./chunk-EOJNSPIH.js";import{a as N}from"./chunk-5VC4XXYH.js";import{a as F}from"./chunk-TM44Z7U7.js";import{k as q,l as H,n as I}from"./chunk-DN3BB4IO.js";import{a as Y}from"./chunk-2ACN7JIZ.js";import{a as y,c as U}from"./chunk-N6IFIMC6.js";import{b as L}from"./chunk-OCBGHOH2.js";import{a as p,b as w}from"./chunk-STJ3LWFL.js";import{b as g,c as x,d as M,f as _,j as R,n as j,p as D}from"./chunk-I5X3IP6T.js";import{r as k}from"./chunk-4P54DKG4.js";import{aa as B}from"./chunk-L42FYXFW.js";import{O as b,ua as a,va as O}from"./chunk-TIU7MMRT.js";import{A as P,v as f,w as d,x as C}from"./chunk-EEEKSYWV.js";import{d as S}from"./chunk-IIFRDOYG.js";import{Lb as $}from"./chunk-TB7HFPBB.js";import{f as T,q as l}from"./chunk-773TIA5M.js";import{e as z,g as v}from"./chunk-VKWPEFWQ.js";v();var A=z(B(),1);async function Te(e,t,r,o){let n=e.environment?.[0],s=t??await b(k({store:e.store}),e.password);if(e.strict){let m=e.json?"json":"text",{offenses:c}=await L(e.path??l(),m);if(c.length>0&&c.filter(J=>J.severity===A.Severity.ERROR).length>0)throw O(new S(n?`[${n}] Theme check failed. Please fix the errors before pushing.`:"Theme check failed. Please fix the errors before pushing."))}a("theme-service:push:setup"),Y({verbose:e.verbose,noColor:e.noColor});let i=e.force??!1,h=e.path?T(e.path):l();if(!await I(h)&&!await U(i,void 0,n,r))return;e.listing&&await q(h,e.listing);let u=await Z(s,e,r);u&&(a("theme-service:push:setup"),await W(u,s,{allowLive:e.allowLive??!1,environment:n,force:i,ignore:e.ignore??[],json:e.json??!1,multiEnvironment:r,nodelete:e.nodelete??!1,only:e.only??[],path:h,publish:e.publish??!1,listing:e.listing},o))}async function W(e,t,r,o){a("theme-service:push:file-system");let n=await j(e.id,t),s=H(r.path,{filters:r,listing:r.listing});a("theme-service:push:file-system");let{uploadResults:i,renderThemeSyncProgress:h}=V(e,t,n,s,r,o);await h(),r.publish&&await D(e.id,t),await G(i,e,t,r)}function E(e){for(let[t,r]of e.entries())if(!r.success)return!0;return!1}async function G(e,t,r,o){o.json?K(t,r,e,o.environment):o.publish?Q(r,e,o.environment):X(t,r,e,o.environment)}function K(e,t,r,o){let n={environment:o,theme:{id:e.id,name:e.name,role:e.role,shop:t.storeFqdn,editor_url:w(e,t),preview_url:p(e,t)}};if(E(r)){let i=`${o?`[${o}] `:""}The theme '${e.name}' was pushed with errors`;n.theme.warning=i;let h={};for(let[u,m]of r.entries())!m.success&&m.errors?.asset&&(h[u]=m.errors.asset);Object.keys(h).length>0&&(n.theme.errors=h)}$(JSON.stringify(n))}function Q(e,t,r){let o=r?[{subdued:`Environment: ${r}
1
+ import{a as V}from"./chunk-LJZIIURR.js";import{a as N}from"./chunk-ZMSE5SQB.js";import{a as F}from"./chunk-LDWMX3KZ.js";import{k as q,l as H,n as I}from"./chunk-7MD5MIGN.js";import{a as Y}from"./chunk-FKH5ZF2C.js";import{a as y,c as U}from"./chunk-7TXWKLPY.js";import{b as L}from"./chunk-JRTJZAFJ.js";import{a as p,b as w}from"./chunk-STJ3LWFL.js";import{b as g,c as x,d as M,f as _,j as R,n as j,p as D}from"./chunk-Y7A7Z2V3.js";import{r as k}from"./chunk-445NFHXL.js";import{aa as B}from"./chunk-7L5AIZOP.js";import{O as b,ra as a,sa as O}from"./chunk-AFM3UZQO.js";import{A as P,v as f,w as d,x as C}from"./chunk-JX4HSDDG.js";import{m as S}from"./chunk-2GB3EAD3.js";import{Lb as $}from"./chunk-BCZMDFI2.js";import{f as T,q as l}from"./chunk-773TIA5M.js";import{e as z,g as v}from"./chunk-VKWPEFWQ.js";v();var A=z(B(),1);async function Te(e,t,r,o){let n=e.environment?.[0],s=t??await b(k({store:e.store}),e.password);if(e.strict){let m=e.json?"json":"text",{offenses:c}=await L(e.path??l(),m);if(c.length>0&&c.filter(J=>J.severity===A.Severity.ERROR).length>0)throw O(new S(n?`[${n}] Theme check failed. Please fix the errors before pushing.`:"Theme check failed. Please fix the errors before pushing."))}a("theme-service:push:setup"),Y({verbose:e.verbose,noColor:e.noColor});let i=e.force??!1,h=e.path?T(e.path):l();if(!await I(h)&&!await U(i,void 0,n,r))return;e.listing&&await q(h,e.listing);let u=await Z(s,e,r);u&&(a("theme-service:push:setup"),await W(u,s,{allowLive:e.allowLive??!1,environment:n,force:i,ignore:e.ignore??[],json:e.json??!1,multiEnvironment:r,nodelete:e.nodelete??!1,only:e.only??[],path:h,publish:e.publish??!1,listing:e.listing},o))}async function W(e,t,r,o){a("theme-service:push:file-system");let n=await j(e.id,t),s=H(r.path,{filters:r,listing:r.listing});a("theme-service:push:file-system");let{uploadResults:i,renderThemeSyncProgress:h}=V(e,t,n,s,r,o);await h(),r.publish&&await D(e.id,t),await G(i,e,t,r)}function E(e){for(let[t,r]of e.entries())if(!r.success)return!0;return!1}async function G(e,t,r,o){o.json?K(t,r,e,o.environment):o.publish?Q(r,e,o.environment):X(t,r,e,o.environment)}function K(e,t,r,o){let n={environment:o,theme:{id:e.id,name:e.name,role:e.role,shop:t.storeFqdn,editor_url:w(e,t),preview_url:p(e,t)}};if(E(r)){let i=`${o?`[${o}] `:""}The theme '${e.name}' was pushed with errors`;n.theme.warning=i;let h={};for(let[u,m]of r.entries())!m.success&&m.errors?.asset&&(h[u]=m.errors.asset);Object.keys(h).length>0&&(n.theme.errors=h)}$(JSON.stringify(n))}function Q(e,t,r){let o=r?[{subdued:`Environment: ${r}
2
2
 
3
3
  `}]:[];E(t)?d({body:[...o,`Your theme was published with errors and is now live at https://${e.storeFqdn}`]}):f({body:[...o,`Your theme is now live at https://${e.storeFqdn}`]})}function X(e,t,r,o){let n=o?[{subdued:`Environment: ${o}
4
4
 
@@ -1 +1 @@
1
- import{a}from"./chunk-7PVNAILK.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var e=async()=>a.getAllSensitiveMetadata(),i=e;export{i as a};
1
+ import{a}from"./chunk-X5RH4ALT.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var e=async()=>a.getAllSensitiveMetadata(),i=e;export{i as a};
@@ -1 +1 @@
1
- import{o as n}from"./chunk-SSDEWKDZ.js";import{D as s}from"./chunk-EEEKSYWV.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function c(e){await s([{title:"Installing dependencies",task:async()=>{await n({packageManager:e.packageManager,directory:e.directory,deep:3})}}])}export{c as a};
1
+ import{o as n}from"./chunk-CELVG4AL.js";import{D as s}from"./chunk-JX4HSDDG.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function c(e){await s([{title:"Installing dependencies",task:async()=>{await n({packageManager:e.packageManager,directory:e.directory,deep:3})}}])}export{c as a};
@@ -1,4 +1,4 @@
1
- import{p as _,v as R}from"./chunk-4P54DKG4.js";import{c as g,l as P}from"./chunk-75DBVSVI.js";import{b as N}from"./chunk-NGCPVRDM.js";import{D as w,F as v,R as L,w as T,z as C}from"./chunk-EEEKSYWV.js";import{d as F}from"./chunk-IIFRDOYG.js";import{Aa as I,Ca as k,Ta as A,Va as E,ka as b,ma as f,ua as y}from"./chunk-TB7HFPBB.js";import{d as r}from"./chunk-773TIA5M.js";import{r as H}from"./chunk-T6CC5WUU.js";import{e as D,g as d}from"./chunk-VKWPEFWQ.js";d();d();var h="https://github.com/Shopify/skeleton-theme.git",q="https://github.com/Shopify/theme-liquid-docs.git",S={all:"All",github:"VS Code (GitHub Copilot)",cursor:"Cursor",claude:"Claude"};async function G(t,e){await U(t,e)}async function O(t,e){await U(t,e,!0)}async function U(t,e,o){await w([{title:`Cloning ${t} into ${e}`,task:async()=>{await g({repoUrl:t,destination:e,latestTag:o,shallow:!0}),await P(e),t===h&&(await Promise.all(Object.keys(S).map(async c=>x(r(e,`.${c}`)))),await x(r(e,".git")))}}])}async function x(t){await A(t)&&await k(t)}async function M(){return await C({message:"Which LLM instruction file would you like to include in your theme?",choices:[...Object.entries(S).map(([e,o])=>({label:o,value:e})),{label:"Skip",value:null}]})}async function $(t,e){let o=[];await w([{title:`Adding AI instructions into ${t}`,task:async()=>{await b(async c=>{await g({repoUrl:q,destination:c,shallow:!0});let l=e==="all"?Object.keys(S).filter(a=>a!=="all"):[e];try{let a=r(c,"ai","github","copilot-instructions.md"),s=await f(a),n=r(t,"AGENTS.md"),u=`# AGENTS.md
1
+ import{p as _,v as R}from"./chunk-445NFHXL.js";import{c as g,l as P}from"./chunk-2OYQHHKC.js";import{b as N}from"./chunk-4TANJ4JK.js";import{D as w,F as v,R as L,w as T,z as C}from"./chunk-JX4HSDDG.js";import{m as F}from"./chunk-2GB3EAD3.js";import{Aa as I,Ca as k,Ta as A,Va as E,ka as b,ma as f,ua as y}from"./chunk-BCZMDFI2.js";import{d as r}from"./chunk-773TIA5M.js";import{a as H}from"./chunk-CTNBSUVU.js";import{e as D,g as d}from"./chunk-VKWPEFWQ.js";d();d();var h="https://github.com/Shopify/skeleton-theme.git",q="https://github.com/Shopify/theme-liquid-docs.git",S={all:"All",github:"VS Code (GitHub Copilot)",cursor:"Cursor",claude:"Claude"};async function G(t,e){await U(t,e)}async function O(t,e){await U(t,e,!0)}async function U(t,e,o){await w([{title:`Cloning ${t} into ${e}`,task:async()=>{await g({repoUrl:t,destination:e,latestTag:o,shallow:!0}),await P(e),t===h&&(await Promise.all(Object.keys(S).map(async c=>x(r(e,`.${c}`)))),await x(r(e,".git")))}}])}async function x(t){await A(t)&&await k(t)}async function M(){return await C({message:"Which LLM instruction file would you like to include in your theme?",choices:[...Object.entries(S).map(([e,o])=>({label:o,value:e})),{label:"Skip",value:null}]})}async function $(t,e){let o=[];await w([{title:`Adding AI instructions into ${t}`,task:async()=>{await b(async c=>{await g({repoUrl:q,destination:c,shallow:!0});let l=e==="all"?Object.keys(S).filter(a=>a!=="all"):[e];try{let a=r(c,"ai","github","copilot-instructions.md"),s=await f(a),n=r(t,"AGENTS.md"),u=`# AGENTS.md
2
2
 
3
3
  ${s}`;await y(n,u),(await Promise.all(l.map(p=>W(t,n,p)))).forEach(p=>{p.copiedFile&&o.push(p.copiedFile)})}catch{throw new F("Failed to create AI instructions")}})}}]),o.length>0&&T({headline:"Files created instead of symlinks.",body:`Shopify CLI attempted to create symbolic links between AGENTS.md and ${o.join(", ")}, but your system doesn't have Developer Mode enabled or symlinks are disabled. Separate files were created instead.`})}async function W(t,e,o){if(o==="cursor")return{};let l={github:"copilot-instructions.md",claude:"CLAUDE.md"}[o],a=r(t,l);try{return await I(e,a),{}}catch(s){if(s instanceof Error){let n=await f(e);return await y(a,n),{copiedFile:l}}else throw s}}var m=D(H(),1);var j,i=class extends R{async command(e,o,c,l){let a=l.name??await this.promptName(e.path),s=e["clone-url"],n=r(e.path,a);if(e.latest?await O(s,n):await G(s,n),!L())return;let u=await M();u&&await $(n,u)}async promptName(e){let o=await E({suffix:"theme",directory:e,family:"creative"});return v({message:"Name of the new theme",defaultValue:o})}};j=i;i.summary="Clones a Git repository to use as a starting point for building a new theme.";i.descriptionWithMarkdown=`Clones a Git repository to your local machine to use as the starting point for building a theme.
4
4
 
@@ -1 +1 @@
1
- import{a as h,b as w}from"./chunk-6VR22Z5R.js";import{n as f}from"./chunk-TIU7MMRT.js";import{P as d}from"./chunk-EEEKSYWV.js";import{d as i}from"./chunk-IIFRDOYG.js";import{Ga as m,na as p}from"./chunk-TB7HFPBB.js";import{d as u}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();import{writeFile as g}from"fs/promises";var S=1024*1024,y=100,U=y*S,E=3,_=new Set([408,429,500,502,503,504]);async function j(o,e){let t=u(e,"manifest.json");await g(t,JSON.stringify(o,null,2))}var A=["!**/*.js.map","!**/*.metafile.json"];async function k(o,e,t){let n=t??["**/*",...A];e.endsWith(".br")?await w({inputDirectory:o,outputPath:e,matchFilePattern:n}):await h({inputDirectory:o,outputZipPath:e,matchFilePattern:n})}async function C(o,e){let t=await m(e);if(t>U){let s=`${(Math.ceil(t/S*100)/100).toFixed(2)} MB`;throw new i(`Your app bundle exceeds the ${y} MB upload limit (it is ${s}).`,"Check the asset paths in your extension configuration \u2014 a misconfigured source can pull in much more than intended. Exclude large files or directories from your bundle, then try again.")}let n=p(e),r;for(let s=1;s<=E;s++){if(r=await f(o,{method:"put",body:n},"slow-request"),r.ok)return;let T=s===E;if(_.has(r.status)&&!T){await r.text().catch(()=>{}),await d(2**s*.1);continue}break}let a=r?.status,c=(await r?.text().catch(()=>""))?.trim();throw new i(`Failed to upload your app bundle to storage${a?` (HTTP ${a})`:""}.`,"This is usually transient. Please try again, and check your network connection if it persists.",c?[`Storage responded with: ${c.slice(0,300)}`]:void 0)}async function D(o,e){let t=await o.generateSignedUploadUrl(e);if(!t.assetUrl||t.userErrors?.length>0){let n=t.userErrors.map(r=>r.message).join(", ");throw new i(n)}return t.assetUrl}export{j as a,A as b,k as c,C as d,D as e};
1
+ import{a as h,b as w}from"./chunk-C7LFLIRT.js";import{m as f}from"./chunk-AFM3UZQO.js";import{P as d}from"./chunk-JX4HSDDG.js";import{m as i}from"./chunk-2GB3EAD3.js";import{Ga as m,na as p}from"./chunk-BCZMDFI2.js";import{d as u}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();import{writeFile as g}from"fs/promises";var S=1024*1024,y=100,U=y*S,E=3,_=new Set([408,429,500,502,503,504]);async function j(o,e){let t=u(e,"manifest.json");await g(t,JSON.stringify(o,null,2))}var A=["!**/*.js.map","!**/*.metafile.json"];async function k(o,e,t){let n=t??["**/*",...A];e.endsWith(".br")?await w({inputDirectory:o,outputPath:e,matchFilePattern:n}):await h({inputDirectory:o,outputZipPath:e,matchFilePattern:n})}async function C(o,e){let t=await m(e);if(t>U){let s=`${(Math.ceil(t/S*100)/100).toFixed(2)} MB`;throw new i(`Your app bundle exceeds the ${y} MB upload limit (it is ${s}).`,"Check the asset paths in your extension configuration \u2014 a misconfigured source can pull in much more than intended. Exclude large files or directories from your bundle, then try again.")}let n=p(e),r;for(let s=1;s<=E;s++){if(r=await f(o,{method:"put",body:n},"slow-request"),r.ok)return;let T=s===E;if(_.has(r.status)&&!T){await r.text().catch(()=>{}),await d(2**s*.1);continue}break}let a=r?.status,c=(await r?.text().catch(()=>""))?.trim();throw new i(`Failed to upload your app bundle to storage${a?` (HTTP ${a})`:""}.`,"This is usually transient. Please try again, and check your network connection if it persists.",c?[`Storage responded with: ${c.slice(0,300)}`]:void 0)}async function D(o,e){let t=await o.generateSignedUploadUrl(e);if(!t.assetUrl||t.userErrors?.length>0){let n=t.userErrors.map(r=>r.message).join(", ");throw new i(n)}return t.assetUrl}export{j as a,A as b,k as c,C as d,D as e};
@@ -1,4 +1,4 @@
1
- import{a as D}from"./chunk-5VC4XXYH.js";import{a as _,c as b}from"./chunk-TM44Z7U7.js";import{a as c,b as F}from"./chunk-N6IFIMC6.js";import{e as y,q as T}from"./chunk-I5X3IP6T.js";import{i as v,p as g,v as w}from"./chunk-4P54DKG4.js";import{b as u}from"./chunk-NGCPVRDM.js";import{A as p,v as d}from"./chunk-EEEKSYWV.js";import{V as f}from"./chunk-TB7HFPBB.js";import{r as C}from"./chunk-T6CC5WUU.js";import{e as Y,g as h}from"./chunk-VKWPEFWQ.js";h();h();async function I(t,e,i){let r=e.themes;e.development&&(r=[(await new D(t).find()).id.toString()]);let n=t.storeFqdn,s=await L(t,{...e,themes:r,development:!1});if(!e.force&&!i&&!await M(s,n))return;await Promise.all(s.map(o=>(y(o)&&v(),T(o.id,t))));let l=e.environment?[{subdued:`Environment: ${e.environment}
1
+ import{a as D}from"./chunk-ZMSE5SQB.js";import{a as _,c as b}from"./chunk-LDWMX3KZ.js";import{a as c,b as F}from"./chunk-7TXWKLPY.js";import{e as y,q as T}from"./chunk-Y7A7Z2V3.js";import{i as v,p as g,v as w}from"./chunk-445NFHXL.js";import{b as u}from"./chunk-4TANJ4JK.js";import{A as p,v as d}from"./chunk-JX4HSDDG.js";import{U as f}from"./chunk-BCZMDFI2.js";import{a as C}from"./chunk-CTNBSUVU.js";import{e as Y,g as h}from"./chunk-VKWPEFWQ.js";h();h();async function I(t,e,i){let r=e.themes;e.development&&(r=[(await new D(t).find()).id.toString()]);let n=t.storeFqdn,s=await L(t,{...e,themes:r,development:!1});if(!e.force&&!i&&!await M(s,n))return;await Promise.all(s.map(o=>(y(o)&&v(),T(o.id,t))));let l=e.environment?[{subdued:`Environment: ${e.environment}
2
2
 
3
3
  `}]:[];d({body:f(s,o=>[...l,`The following themes were deleted from ${n}:`,F(o)],o=>[...l,"The theme",...c(o),`was deleted from ${n}.`])})}async function L(t,e){if(e.selectTheme||e.themes.length>0)return b(t,e);let i=t.storeFqdn;return[await _(t,{header:`Select a theme to delete from ${i}`,filter:{development:e.development}})]}async function M(t,e){let r={message:f(t,n=>[`Delete the following themes from ${e}?`],n=>["Delete",...c(n),`from ${e}?`]),confirmationMessage:"Yes, confirm changes",cancellationMessage:"Cancel"};return t.length>1&&(r.infoTable={"":t.map(c)}),p(r)}var a=Y(C(),1);var O,m=class extends w{async command(e,i,r){let{environment:n,development:s,force:l,theme:o}=e,E=o??[];await I(i,{selectTheme:e["show-all"],environment:n,development:s,themes:E,force:l},r)}};O=m;m.summary="Delete remote themes from the connected store. This command can't be undone.";m.descriptionWithMarkdown=`Deletes a theme from your store.
4
4
 
@@ -0,0 +1,7 @@
1
+ import{C as s,u as e,v as o,w as n,x as i,y as t}from"./chunk-JX4HSDDG.js";import{m as d,p as l}from"./chunk-2GB3EAD3.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();async function u(){e({headline:"CLI update available.",body:["Run",{command:"npm run shopify upgrade"},{char:"."}]}),e({headline:["To connect this project to your shopify store cd into:",{filePath:"/my-store/hydrogen.config.js"},{char:"."}],body:["You can also try the following steps:",{list:{items:[["Run",{command:"shopify project connect"}],["Run",{command:"hydrogen start"}]]}}]}),e({headline:"About your app.",customSections:[{body:{tabularData:[["Configuration file",{filePath:"shopify.app.scalable-transaction-app.toml"}],["App name",{userInput:"scalable-transaction-app"}],["Access scopes","read_products,write_products"]],firstColumnSubdued:!0}}]}),e({headline:[{userInput:"my-app"},"initialized and ready to build."],nextSteps:[["Run",{command:"cd verification-app"}],["To preview your project, run",{command:"npm app dev"}],["To add extensions, run",{command:"npm generate extension"}]],reference:[["Run",{command:"npm shopify help"}],{link:{label:"Dev docs",url:"https://shopify.dev"}}],customSections:[{title:"Custom section",body:{list:{items:[{link:{label:"Item 1",url:"https://shopify.com"}},"Item 2",{link:{url:"https://community.shopify.com/"}}]}}},{title:"Custom section 2",body:{list:{items:["Item 1","Item 2","Item 3"]}}}]}),o({headline:"CLI updated.",body:"You are now running version 3.47."}),o({headline:"Deployment successful.",body:"Your extensions have been uploaded to your Shopify Partners Dashboard.",nextSteps:[{link:{label:"See your deployment and set it live",url:"https://partners.shopify.com/1797046/apps/4523695/deployments"}}]}),n({headline:"You have reached your limit of checkout extensions for this app.",body:"You can free up space for a new one by deleting an existing one."}),n({headline:"Required access scope update.",body:"The deadline for re-selecting your app scopes is May 1, 2022.",reference:[{link:{label:"Dev docs",url:"https://shopify.dev/app/scopes"}}]});let a=new l("Something went wrong.");a.stack=`
2
+ Error: Unexpected error
3
+ at Module._compile (internal/modules/cjs/loader.js:1137:30)
4
+ at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
5
+ at Module.load (internal/modules/cjs/loader.js:985:32)
6
+ at Function.Module._load (internal/modules/cjs/loader.js:878:14)
7
+ `,t(a);let c=[["Have you",{link:{label:"created a Shopify Partners organization",url:"https://partners.shopify.com/signup"}},{char:"?"}],"Have you confirmed your accounts from the emails you received?",["Need to connect to a different App or organization? Run the command again with",{command:"--reset"}]];t(new d("No Organization found",void 0,c)),i({headline:"Version couldn't be released.",body:"This version needs to be submitted for review and approved by Shopify before it can be released."}),s({rows:[{id:"1",name:"John Doe",email:"jon@doe.com"},{id:"2",name:"Jane Doe",email:"jane@doe.com"},{id:"3",name:"John Smith",email:"jon@smith.com"}],columns:{id:{header:"ID",color:"red"},name:{header:"Name",color:"dim"},email:{}}})}export{u as a};
@@ -1,2 +1,2 @@
1
- import{w as h}from"./chunk-XCGV3IJ5.js";import{a as d}from"./chunk-UHIP5CFI.js";import{a as f}from"./chunk-VJQJ5PTQ.js";import{Fa as l}from"./chunk-4MLEL3VK.js";import{b as m}from"./chunk-NGCPVRDM.js";import{Lb as c,Xb as u}from"./chunk-TB7HFPBB.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();function g(p){let e=h(p),o=new Map;e.forEach(s=>{let r=s.split(".");if(r.length>=2){let i=r[0];o.has(i)||o.set(i,[]),o.set(i,[...o.get(i),s])}});for(let[s,r]of o)c(u(s,r.join(`
1
+ import{w as h}from"./chunk-QEL3F2NY.js";import{a as d}from"./chunk-WDCCITSG.js";import{a as f}from"./chunk-NENUUNWB.js";import{ta as l}from"./chunk-5HJTCBBV.js";import{b as m}from"./chunk-4TANJ4JK.js";import{Lb as c,Xb as u}from"./chunk-BCZMDFI2.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();function g(p){let e=h(p),o=new Map;e.forEach(s=>{let r=s.split(".");if(r.length>=2){let i=r[0];o.has(i)||o.set(i,[]),o.set(i,[...o.get(i),s])}});for(let[s,r]of o)c(u(s,r.join(`
2
2
  `)))}var a,t=class extends d{async run(){let{flags:e}=await this.parse(a),{app:o}=await l({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config});return o.errors.isEmpty()?g(o):process.exit(2),{app:o}}};a=t;t.summary="Print out a list of sources that may be used with the logs command.";t.descriptionWithMarkdown="The output source names can be used with the `--source` argument of `shopify app logs` to filter log output. Currently only function extensions are supported as sources.";t.description=a.descriptionWithoutMarkdown();t.flags={...m,...f};var N=t;export{N as a};
@@ -0,0 +1 @@
1
+ import{a as C,c as F}from"./chunk-5QDM4XIK.js";import{d as k,f as A,u as q}from"./chunk-5INBKZRD.js";import{a as N}from"./chunk-WDCCITSG.js";import{a as E,c as J}from"./chunk-NENUUNWB.js";import{b as x}from"./chunk-4BPFJDH3.js";import{b}from"./chunk-4TANJ4JK.js";import{E as m,v as f,x as S}from"./chunk-JX4HSDDG.js";import{d as z,f as y,m as u}from"./chunk-2GB3EAD3.js";import{Fb as c,Hb as n,Lb as O,Ta as v,ma as w,ua as g}from"./chunk-BCZMDFI2.js";import{e as I,g as l}from"./chunk-VKWPEFWQ.js";l();l();var M=I(z(),1);async function D(s,e){if(s)try{return JSON.parse(s)}catch(t){let r=t instanceof Error?t.message:"Unknown error";throw new u(n`Invalid JSON in ${c.yellow("--variables")} flag: ${r}`,"Please provide valid JSON format.")}else if(e){if(!await v(e))throw new u(n`Variable file not found at ${c.path(e)}. Please check the path and try again.`);let t=await w(e,{encoding:"utf8"});try{return JSON.parse(t)}catch(r){let p=r instanceof Error?r.message:"Unknown error";throw new u(n`Invalid JSON in variable file ${c.path(e)}: ${p}`,"Please provide valid JSON format.")}}}async function $(s){let{remoteApp:e,store:t,query:r,variables:p,variableFile:L,version:R,outputFile:d}=s,{adminSession:V,version:G}=await m({title:n`Authenticating`,task:async()=>{let o=await C(e,t.shopDomain),i=await A({adminSession:o,userSpecifiedVersion:R});return{adminSession:o,version:i}},renderOptions:{stdout:process.stderr}}),P=await D(p,L);k(r),F(r,t);try{let o=await m({title:n`Executing GraphQL operation`,task:async()=>x({query:(0,M.parse)(r),session:V,variables:P,version:G,responseOptions:{handleErrors:!1}}),renderOptions:{stdout:process.stderr}}),i=JSON.stringify(o,null,2);d?(await g(d,i),f({headline:"Operation succeeded.",body:`Results written to ${d}`})):(f({headline:"Operation succeeded."}),O(i))}catch(o){if(o instanceof y){let i={errors:o.response.errors},Q=JSON.stringify(i,null,2);S({headline:"GraphQL operation failed.",body:Q});return}throw o}}var h,a=class extends N{async run(){let{flags:e}=await this.parse(h),{query:t,appContextResult:r,store:p}=await q(e);return await $({organization:r.organization,remoteApp:r.remoteApp,store:p,query:t,variables:e.variables,variableFile:e["variable-file"],outputFile:e["output-file"],...e.version&&{version:e.version}}),{app:r.app}}};h=a;a.summary="Execute GraphQL queries and mutations.";a.descriptionWithMarkdown="Executes an Admin API GraphQL query or mutation on the specified store. Mutations are only allowed on dev stores.\n\n For operations that process large amounts of data, use [`bulk execute`](https://shopify.dev/docs/api/shopify-cli/app/app-bulk-execute) instead.";a.description=h.descriptionWithoutMarkdown();a.flags={...b,...E,...J};var oe=a;export{oe as a};
@@ -1,4 +1,4 @@
1
- import{a as u}from"./chunk-5VC4XXYH.js";import{a as y}from"./chunk-TM44Z7U7.js";import{a as w}from"./chunk-N6IFIMC6.js";import{a as c,b as v}from"./chunk-STJ3LWFL.js";import{p as d,v as f}from"./chunk-4P54DKG4.js";import{b as s}from"./chunk-NGCPVRDM.js";import{J as h,u as p}from"./chunk-EEEKSYWV.js";import{r as O}from"./chunk-T6CC5WUU.js";import{e as I,g as m}from"./chunk-VKWPEFWQ.js";m();m();async function F(o,t){let i=new u(o),E=(await(t.development?i.find():i.fetch()))?.id,n=await y(o,{header:"Select a theme to open",filter:{live:t.live,theme:t.development?`${E}`:t.theme}}),l=c(n,o),a=v(n,o);p({body:["Preview information for theme",...w(n),`
1
+ import{a as u}from"./chunk-ZMSE5SQB.js";import{a as y}from"./chunk-LDWMX3KZ.js";import{a as w}from"./chunk-7TXWKLPY.js";import{a as c,b as v}from"./chunk-STJ3LWFL.js";import{p as d,v as f}from"./chunk-445NFHXL.js";import{b as s}from"./chunk-4TANJ4JK.js";import{J as h,u as p}from"./chunk-JX4HSDDG.js";import{a as O}from"./chunk-CTNBSUVU.js";import{e as I,g as m}from"./chunk-VKWPEFWQ.js";m();m();async function F(o,t){let i=new u(o),E=(await(t.development?i.find():i.fetch()))?.id,n=await y(o,{header:"Select a theme to open",filter:{live:t.live,theme:t.development?`${E}`:t.theme}}),l=c(n,o),a=v(n,o);p({body:["Preview information for theme",...w(n),`
2
2
 
3
3
  `,{list:{items:[{link:{label:"Preview your theme",url:l}},{link:{label:"Customize your theme at the theme editor",url:a}}]}}]}),t.editor?await h(a):await h(l)}var r=I(O(),1);var g,e=class extends f{async command(t,i){await F(i,t)}};g=e;e.summary="Opens the preview of your remote theme.";e.descriptionWithMarkdown=`Returns links that let you preview the specified theme. The following links are returned:
4
4
 
@@ -1 +1 @@
1
- import{z as r}from"./chunk-TIU7MMRT.js";import{f as t,q as n}from"./chunk-773TIA5M.js";import{r as o}from"./chunk-T6CC5WUU.js";import{e as s,g as a}from"./chunk-VKWPEFWQ.js";a();var e=s(o(),1);var c={path:e.Flags.string({description:"The path to your app directory.",parse:async i=>t(i),default:async()=>n(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"}),config:e.Flags.string({hidden:!1,char:"c",description:"The name of the app configuration.",env:"SHOPIFY_FLAG_APP_CONFIG"}),"client-id":e.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),reset:e.Flags.boolean({hidden:!1,description:"Reset all your settings.",env:"SHOPIFY_FLAG_RESET",default:!1,exclusive:["config"]})},p={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation to run as a bulk operation.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your mutation, in JSON format. Can be specified multiple times.",env:"SHOPIFY_FLAG_VARIABLES",multiple:!0,exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSONL format (one JSON object per line). Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),watch:e.Flags.boolean({description:"Wait for bulk operation results before exiting. Defaults to false.",env:"SHOPIFY_FLAG_WATCH"}),"output-file":e.Flags.string({description:"The file path where results should be written if --watch is specified. If not specified, results will be written to STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE",dependsOn:["watch"]}),version:e.Flags.string({description:"The API version to use for the bulk operation. If not specified, uses the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})},h={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation, as a string.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES",exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSON format. Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The myshopify.com domain of the store to execute against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),version:e.Flags.string({description:"The API version to use for the query or mutation. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"}),"output-file":e.Flags.string({description:"The file name where results should be written, instead of STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE"})};export{c as a,p as b,h as c};
1
+ import{y as r}from"./chunk-AFM3UZQO.js";import{f as t,q as n}from"./chunk-773TIA5M.js";import{a as o}from"./chunk-CTNBSUVU.js";import{e as s,g as a}from"./chunk-VKWPEFWQ.js";a();var e=s(o(),1);var c={path:e.Flags.string({description:"The path to your app directory.",parse:async i=>t(i),default:async()=>n(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"}),config:e.Flags.string({hidden:!1,char:"c",description:"The name of the app configuration.",env:"SHOPIFY_FLAG_APP_CONFIG"}),"client-id":e.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),reset:e.Flags.boolean({hidden:!1,description:"Reset all your settings.",env:"SHOPIFY_FLAG_RESET",default:!1,exclusive:["config"]})},p={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation to run as a bulk operation.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your mutation, in JSON format. Can be specified multiple times.",env:"SHOPIFY_FLAG_VARIABLES",multiple:!0,exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSONL format (one JSON object per line). Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),watch:e.Flags.boolean({description:"Wait for bulk operation results before exiting. Defaults to false.",env:"SHOPIFY_FLAG_WATCH"}),"output-file":e.Flags.string({description:"The file path where results should be written if --watch is specified. If not specified, results will be written to STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE",dependsOn:["watch"]}),version:e.Flags.string({description:"The API version to use for the bulk operation. If not specified, uses the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})},h={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation, as a string.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES",exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSON format. Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The myshopify.com domain of the store to execute against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),version:e.Flags.string({description:"The API version to use for the query or mutation. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"}),"output-file":e.Flags.string({description:"The file name where results should be written, instead of STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE"})};export{c as a,p as b,h as c};
@@ -1 +1 @@
1
- import{e as o}from"./chunk-NGCPVRDM.js";import{b as s}from"./chunk-UAYIFFYJ.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends s{static{this.description="Clear the CLI cache, used to store some API responses and handle notifications status"}static{this.hidden=!0}async run(){await o()}};export{t as a};
1
+ import{f as o}from"./chunk-4TANJ4JK.js";import{b as s}from"./chunk-WHT2RCAD.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends s{static{this.description="Clear the CLI cache, used to store some API responses and handle notifications status"}static{this.hidden=!0}async run(){await o()}};export{t as a};
@@ -1,4 +1,4 @@
1
- import{c as w}from"./chunk-TNUY66EE.js";import{c as F,e as x}from"./chunk-LVLDPYH5.js";import{B as h,m as S,t as L,u as P,v as f,z as N}from"./chunk-SSDEWKDZ.js";import{o as $,q as m}from"./chunk-ZT4PUH7L.js";import{a as c}from"./chunk-B5MFFERE.js";import{O as V,S as y,v as R}from"./chunk-EEEKSYWV.js";import{Bb as U,Cb as D,Fb as u,Hb as p,Mb as d,Pb as l,Qb as E,yb as A}from"./chunk-TB7HFPBB.js";import{c as _}from"./chunk-SZM6ANMN.js";import{p as C,q as b,r as I}from"./chunk-773TIA5M.js";import{g as v}from"./chunk-VKWPEFWQ.js";v();function M(){let e=U();if(!(!e||e==="unknown"))return e==="homebrew"?"brew upgrade shopify-cli":e==="yarn"?`${e} global add @shopify/cli@latest`:`${e} ${e==="pnpm"?"add":"install"} -g @shopify/cli@latest`}async function re(e={}){let n=I()??b(),o=D(n),t=A();if(_()){d("Skipping upgrade in development mode.");return}if(!(e.autoupgrade&&!t))if(t){let a=M();if(!a)throw new Error("Could not determine the package manager");let[r,...i]=a.split(" ");if(!r)throw new Error("Could not determine the command to run");let s=f("@shopify/cli",c),T=s?`\u2728 New version of Shopify CLI available! (${c} \u2192 ${s})`:"\u2728 New version of Shopify CLI available!";d(p`${T}
1
+ import{c as w}from"./chunk-QARALFHD.js";import{c as F,e as x}from"./chunk-6ZPHB5U2.js";import{B as h,m as S,t as L,u as P,v as f,z as N}from"./chunk-CELVG4AL.js";import{o as $,q as m}from"./chunk-GXO2RRV2.js";import{O as V,S as y,v as R}from"./chunk-JX4HSDDG.js";import{a as c}from"./chunk-REABQXMP.js";import{Bb as U,Cb as D,Fb as u,Hb as p,Mb as d,Pb as l,Qb as E,yb as A}from"./chunk-BCZMDFI2.js";import{c as _}from"./chunk-EQNJ2NQD.js";import{p as C,q as b,r as I}from"./chunk-773TIA5M.js";import{g as v}from"./chunk-VKWPEFWQ.js";v();function M(){let e=U();if(!(!e||e==="unknown"))return e==="homebrew"?"brew upgrade shopify-cli":e==="yarn"?`${e} global add @shopify/cli@latest`:`${e} ${e==="pnpm"?"add":"install"} -g @shopify/cli@latest`}async function re(e={}){let n=I()??b(),o=D(n),t=A();if(_()){d("Skipping upgrade in development mode.");return}if(!(e.autoupgrade&&!t))if(t){let a=M();if(!a)throw new Error("Could not determine the package manager");let[r,...i]=a.split(" ");if(!r)throw new Error("Could not determine the command to run");let s=f("@shopify/cli",c),T=s?`\u2728 New version of Shopify CLI available! (${c} \u2192 ${s})`:"\u2728 New version of Shopify CLI available!";d(p`${T}
2
2
  Now upgrading by running: ${u.genericShellCommand(a)}...`),await V(r,i,{stdio:"inherit"}),R({headline:"Shopify CLI upgraded.",body:s?`You're now on version ${s}.`:"You're now on the latest version."})}else if(o)await Y(o,c);else throw new Error("Could not determine the local project directory")}function ie(){let e=c,n=f("@shopify/cli",e);if(!n){l("Auto-upgrade: No newer version available.");return}if(process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE==="1")return l("Auto-upgrade: Forcing auto-upgrade because of SHOPIFY_CLI_FORCE_AUTO_UPGRADE."),n;if(!m()){l("Auto-upgrade: Skipping because auto-upgrade is not enabled.");return}if(y()){l("Auto-upgrade: Skipping auto-upgrade in CI.");return}if(w(e)){l("Auto-upgrade: Skipping auto-upgrade for pre-release version.");return}return n}async function se(){try{let{notifications:e}=await F();return x(e,"",["autoupgrade"]).some(o=>o.type==="error")}catch{return!1}}async function ce(){if(y()||w(c)||m())return;let e=f("@shopify/cli",c);e&&await $("warn-on-available-upgrade",{days:1},async()=>{E(G(e))})}function G(e,n=!1){let o=M(),t=o?p`💡 Version ${e} available! Run ${u.genericShellCommand(o)}`.value:p`💡 Version ${e} available!`.value;if(n){let a=`https://github.com/Shopify/cli/releases/tag/${e}`,r=p`⚠️ This is a major version — review breaking changes before upgrading:\n ${u.link(a,a)}`.value;return`${t}
3
3
 
4
4
  ${r}`}return t}async function Y(e,n){let o=(await h(e)).content,t=o.dependencies??{},a=o.devDependencies??{},i={...t,...a}[await k()];if(!i){l("Auto-upgrade: CLI dependency not found in project dependencies, skipping local upgrade.");return}i.slice(0,1).match(/[\^~]/)&&(i=n);let s=await P(await k(),i);s?q(i,s):W(i),await J("prod",t,e),await J("dev",a,e)}async function J(e,n,o){let t=[await k(),...await j()].filter(r=>!!n[r]).map(r=>({name:r,version:"latest"})),a=await L(o);t.length>0&&await N(t,{packageManager:await S(o),type:e,directory:o,stdout:process.stdout,stderr:process.stderr,addToRootDirectory:a})}async function k(){return(await O()).name}async function j(){return(await O())?.oclif?.plugins??[]}var g;async function O(){if(!g){let e=await h(C(import.meta.url));g=g??e.content}return g}function W(e){d(p`You're on the latest version, ${u.yellow(e)}, no need to upgrade!`)}function q(e,n){d(p`Upgrading CLI from ${u.yellow(e)} to ${u.yellow(n)}...`)}export{M as a,re as b,ie as c,se as d,ce as e,G as f};
@@ -1,4 +1,4 @@
1
- import{k as P,t as F}from"./chunk-I5X3IP6T.js";import{a as N}from"./chunk-Q7BOSHWX.js";import{a as T}from"./chunk-WN5VTUWJ.js";import{M as H,O as q,o as $,va as d,xa as h}from"./chunk-TIU7MMRT.js";import{a as x}from"./chunk-B5MFFERE.js";import{P as v,x as I,y as L}from"./chunk-EEEKSYWV.js";import{d as l}from"./chunk-IIFRDOYG.js";import{Fb as C,Hb as U,Pb as c}from"./chunk-TB7HFPBB.js";import{u as O}from"./chunk-SZM6ANMN.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();function D(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e.replaceTemplates??[]))t.append(`replace_templates[${r}]`,o);for(let[r,o]of Object.entries(e.replaceExtensionTemplates??[])){let n=r.split("/")[0];t.append(`replace_extension_templates[${n}][${r}]`,o)}return t.append("_method",e.method),t}function w(){return{"User-Agent":`Shopify CLI; v=${x}`}}function k(e){return delete e.cookie,delete e.authorization,e}p();function S(e){let t={};return e.split(";").forEach(r=>{let o=r.match(/(.*?)=(.*)$/)??[],n=o[1]?.trim(),s=o[2]?.trim()??"";n&&(t[n]=s)}),t}function E(e){return Object.entries(e).map(([t,r])=>`${t}=${r}`).join("; ")}var y=class extends l{};async function Re(e){return F(e)}async function be(e,t,r){let o=M(t),n=new URLSearchParams;n.append("form_type","storefront_password"),n.append("utf8","\u2713"),n.append("password",e??""),h("theme-service:storefront-session:check-storefront-password");let s={"cache-control":"no-cache","content-type":"application/x-www-form-urlencoded",...r},a=await $(`${o}/password`,{headers:s,body:n.toString(),method:"POST",redirect:"manual"});if(a.status===429)throw d(new l(`Too many incorrect password attempts. Please try again after ${a.headers.get("retry-after")} seconds.`));return B(a,o)}async function j(e,t,r,o,n={}){let s={},a=await G(e,r,n),i=M(t);if(s._shopify_essential=a,h(`theme-service:storefront-session:is-password-protected:${!!o}`),!o)return s;let u=await ee(a,e,i,o,n);return{...s,...u}}async function G(e,t,r,o=1){let n=new URLSearchParams({preview_theme_id:t,_fd:"0",pb:"0"}),s=`${e}?${n}`;h("theme-service:storefront-session:get-session-essential-cookie");let a={...r,...w()},i=await $(s,{method:"HEAD",redirect:"manual",headers:a}),u=i.headers.raw()["set-cookie"]??[],f=_(u,"_shopify_essential");if(!f){if(c(`Failed to obtain _shopify_essential cookie.
1
+ import{k as P,t as F}from"./chunk-Y7A7Z2V3.js";import{a as N}from"./chunk-Q7BOSHWX.js";import{a as T}from"./chunk-4BPFJDH3.js";import{M as H,O as q,n as $,sa as d,ua as h}from"./chunk-AFM3UZQO.js";import{P as v,x as I,y as L}from"./chunk-JX4HSDDG.js";import{a as x}from"./chunk-REABQXMP.js";import{m as l}from"./chunk-2GB3EAD3.js";import{Fb as C,Hb as U,Pb as c}from"./chunk-BCZMDFI2.js";import{t as O}from"./chunk-EQNJ2NQD.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();function D(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e.replaceTemplates??[]))t.append(`replace_templates[${r}]`,o);for(let[r,o]of Object.entries(e.replaceExtensionTemplates??[])){let n=r.split("/")[0];t.append(`replace_extension_templates[${n}][${r}]`,o)}return t.append("_method",e.method),t}function w(){return{"User-Agent":`Shopify CLI; v=${x}`}}function k(e){return delete e.cookie,delete e.authorization,e}p();function S(e){let t={};return e.split(";").forEach(r=>{let o=r.match(/(.*?)=(.*)$/)??[],n=o[1]?.trim(),s=o[2]?.trim()??"";n&&(t[n]=s)}),t}function E(e){return Object.entries(e).map(([t,r])=>`${t}=${r}`).join("; ")}var y=class extends l{};async function Re(e){return F(e)}async function be(e,t,r){let o=M(t),n=new URLSearchParams;n.append("form_type","storefront_password"),n.append("utf8","\u2713"),n.append("password",e??""),h("theme-service:storefront-session:check-storefront-password");let s={"cache-control":"no-cache","content-type":"application/x-www-form-urlencoded",...r},a=await $(`${o}/password`,{headers:s,body:n.toString(),method:"POST",redirect:"manual"});if(a.status===429)throw d(new l(`Too many incorrect password attempts. Please try again after ${a.headers.get("retry-after")} seconds.`));return B(a,o)}async function j(e,t,r,o,n={}){let s={},a=await G(e,r,n),i=M(t);if(s._shopify_essential=a,h(`theme-service:storefront-session:is-password-protected:${!!o}`),!o)return s;let u=await ee(a,e,i,o,n);return{...s,...u}}async function G(e,t,r,o=1){let n=new URLSearchParams({preview_theme_id:t,_fd:"0",pb:"0"}),s=`${e}?${n}`;h("theme-service:storefront-session:get-session-essential-cookie");let a={...r,...w()},i=await $(s,{method:"HEAD",redirect:"manual",headers:a}),u=i.headers.raw()["set-cookie"]??[],f=_(u,"_shopify_essential");if(!f){if(c(`Failed to obtain _shopify_essential cookie.
2
2
 
3
3
  -Request ID: ${i.headers.get("x-request-id")??"unknown"}
4
4
 
@@ -1 +1 @@
1
- import{Ga as r}from"./chunk-4MLEL3VK.js";import{a}from"./chunk-7PVNAILK.js";import{q as i}from"./chunk-773TIA5M.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var c=3e3;async function n(o){let t;try{if(a.getAllPublicMetadata().api_key!==void 0)return;await Promise.race([r({directory:o,skipPrompts:!0}),new Promise(l=>{t=setTimeout(l,c)})])}catch{}finally{t&&clearTimeout(t)}}var m=async()=>(await n(i()),a.getAllPublicMetadata()),f=m;export{f as a};
1
+ import{ua as r}from"./chunk-5HJTCBBV.js";import{a}from"./chunk-X5RH4ALT.js";import{q as i}from"./chunk-773TIA5M.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var c=3e3;async function n(o){let t;try{if(a.getAllPublicMetadata().api_key!==void 0)return;await Promise.race([r({directory:o,skipPrompts:!0}),new Promise(l=>{t=setTimeout(l,c)})])}catch{}finally{t&&clearTimeout(t)}}var m=async()=>(await n(i()),a.getAllPublicMetadata()),f=m;export{f as a};
@@ -1,4 +1,4 @@
1
- import{a as O}from"./chunk-KQTVJMV6.js";import{a as I}from"./chunk-DZMXYETH.js";import{c as _,i as P,n as k}from"./chunk-HSVZU7MP.js";import{b as S,m as b}from"./chunk-I5X3IP6T.js";import{j as g,k as T,l as L,p as R,v as q}from"./chunk-4P54DKG4.js";import{xa as x}from"./chunk-TIU7MMRT.js";import{a as v}from"./chunk-B5MFFERE.js";import{b as E}from"./chunk-NGCPVRDM.js";import{d as u}from"./chunk-IIFRDOYG.js";import{Fb as d,Hb as m,Mb as o,Pb as c}from"./chunk-TB7HFPBB.js";import{r as G}from"./chunk-T6CC5WUU.js";import{e as V,g as r}from"./chunk-VKWPEFWQ.js";r();r();r();var f=class extends I{constructor(t){super(t),this.context="REPL",this.themeId=g()}async create(t,n){let s=await super.create(t,n);return await this.uploadThemeAssets(s),s}async findOrCreate(){let t=await this.fetch();if(!t){let n=`Liquid Console (${v})`;t=await this.create(S,n)}return t}setTheme(t){T(t)}removeTheme(){L()}async uploadThemeAssets(t){let n=[{key:"config/settings_data.json",value:"{}"},{key:"config/settings_schema.json",value:"[]"},{key:"snippets/eval.liquid",value:""},{key:"layout/password.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"layout/theme.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"sections/announcement-bar.liquid",value:""},{key:"templates/index.json",value:JSON.stringify({sections:{announcement:{type:"announcement-bar",settings:{}}},order:["announcement"]})}];await b(t.id,n,this.adminSession)}};r();r();async function A(e){return await H(e)??await $(e)??await Y(e)??await z(e)??void 0}async function H(e){c(`Evaluating snippet - ${e.snippet}`);let t=`{ "type": "display", "value": {{ ${e.snippet} | json }} }`,n=await h({...e,snippet:t}),s=await n.text();return C(n.status,s)?Q(s):void 0}async function $(e){c(`Evaluating context - ${e.snippet}`);let t=`{ "type": "context", "value": "{% ${e.snippet.replace(/"/g,'\\"')} %}" }`,n=await h({...e,snippet:t}),s=await n.text();C(n.status,s)&&e.replSession.push(JSON.parse(t))}async function Y(e){if(c(`Evaluating assignment context - ${e.snippet}`),oe(e.snippet))return e.snippet=`assign ${e.snippet}`,o(m`${d.gray(`> ${e.snippet}`)}`),$(e)}async function z(e){c(`Evaluating syntax error - ${e.snippet}`);let t="";if(X(e.snippet)||(t=await(await h({...e,snippet:`{{ ${e.snippet} }}`})).text()),y(t)||(t=await(await h({...e,snippet:`{% ${e.snippet} %}`})).text()),y(t)){let n=t.replace(/ \(snippets\/eval line \d+\)/,"");B(e.snippet,n)}}function B(e,t){if(t.includes("Unknown tag")){o(m`${d.errorText(`Unknown object, property, tag, or filter: '${e}'`)}`);return}let n=j(t);n&&o(m`${d.errorText(n)}`)}async function h(e){let t=K(e);e.url.startsWith("/")||(e.url=`/${e.url}`);let n=await P(e.themeSession,{method:"GET",path:e.url,query:[],themeId:e.themeId,sectionId:"announcement-bar",headers:{},replaceTemplates:{"sections/announcement-bar.liquid":"{% render 'eval' %}","snippets/eval.liquid":`
1
+ import{a as O}from"./chunk-RMF3YNWE.js";import{a as I}from"./chunk-TEPMNVJN.js";import{c as _,i as P,n as k}from"./chunk-NKT5U6IJ.js";import{b as S,m as b}from"./chunk-Y7A7Z2V3.js";import{j as g,k as T,l as L,p as R,v as q}from"./chunk-445NFHXL.js";import{b as E}from"./chunk-4TANJ4JK.js";import{ua as x}from"./chunk-AFM3UZQO.js";import{a as v}from"./chunk-REABQXMP.js";import{m as u}from"./chunk-2GB3EAD3.js";import{Fb as d,Hb as m,Mb as o,Pb as c}from"./chunk-BCZMDFI2.js";import{a as G}from"./chunk-CTNBSUVU.js";import{e as V,g as r}from"./chunk-VKWPEFWQ.js";r();r();r();var f=class extends I{constructor(t){super(t),this.context="REPL",this.themeId=g()}async create(t,n){let s=await super.create(t,n);return await this.uploadThemeAssets(s),s}async findOrCreate(){let t=await this.fetch();if(!t){let n=`Liquid Console (${v})`;t=await this.create(S,n)}return t}setTheme(t){T(t)}removeTheme(){L()}async uploadThemeAssets(t){let n=[{key:"config/settings_data.json",value:"{}"},{key:"config/settings_schema.json",value:"[]"},{key:"snippets/eval.liquid",value:""},{key:"layout/password.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"layout/theme.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"sections/announcement-bar.liquid",value:""},{key:"templates/index.json",value:JSON.stringify({sections:{announcement:{type:"announcement-bar",settings:{}}},order:["announcement"]})}];await b(t.id,n,this.adminSession)}};r();r();async function A(e){return await H(e)??await $(e)??await Y(e)??await z(e)??void 0}async function H(e){c(`Evaluating snippet - ${e.snippet}`);let t=`{ "type": "display", "value": {{ ${e.snippet} | json }} }`,n=await h({...e,snippet:t}),s=await n.text();return C(n.status,s)?Q(s):void 0}async function $(e){c(`Evaluating context - ${e.snippet}`);let t=`{ "type": "context", "value": "{% ${e.snippet.replace(/"/g,'\\"')} %}" }`,n=await h({...e,snippet:t}),s=await n.text();C(n.status,s)&&e.replSession.push(JSON.parse(t))}async function Y(e){if(c(`Evaluating assignment context - ${e.snippet}`),oe(e.snippet))return e.snippet=`assign ${e.snippet}`,o(m`${d.gray(`> ${e.snippet}`)}`),$(e)}async function z(e){c(`Evaluating syntax error - ${e.snippet}`);let t="";if(X(e.snippet)||(t=await(await h({...e,snippet:`{{ ${e.snippet} }}`})).text()),y(t)||(t=await(await h({...e,snippet:`{% ${e.snippet} %}`})).text()),y(t)){let n=t.replace(/ \(snippets\/eval line \d+\)/,"");B(e.snippet,n)}}function B(e,t){if(t.includes("Unknown tag")){o(m`${d.errorText(`Unknown object, property, tag, or filter: '${e}'`)}`);return}let n=j(t);n&&o(m`${d.errorText(n)}`)}async function h(e){let t=K(e);e.url.startsWith("/")||(e.url=`/${e.url}`);let n=await P(e.themeSession,{method:"GET",path:e.url,query:[],themeId:e.themeId,sectionId:"announcement-bar",headers:{},replaceTemplates:{"sections/announcement-bar.liquid":"{% render 'eval' %}","snippets/eval.liquid":`
2
2
  ${t}
3
3
  `}});return Z(n)&&ne(),ee(n)&&se(),te(n)&&re(),n}function K(e){return`[${[...e.replSession.map(n=>JSON.stringify(n)),e.snippet].join(",").replace(/\\"/g,'"')}]`}function Q(e){let t=j(e);if(t)return JSON.parse(t)?.find(s=>s.type==="display")?.value}function j(e){let t=e.split(`
4
4
  `).slice(1,-1);if(t.length!==0)return t.join("")}function y(e){return e.includes("Liquid syntax error")}function X(e){return/^\s*assign\s*((?:\(?[\w\-.[\]]\)?)+)\s*=\s*(.*)\s*/m.test(e)}function Z(e){return e.status===401||e.status===403}function ee(e){return e.status===430||e.status===429}function te(e){return e.headers.get("server-timing")?.includes('pageType;desc="404"')??!1}function ne(){throw new u("Session expired. Please initiate a new one.")}function se(){throw new u("Evaluations limit reached. Try again later.")}function re(){throw new u("Page not found. Please provide a valid --url value!")}function oe(e){return/^\s*((?:\(?[\w\-.[\]]\)?)+)\s*=\s*(.*)\s*/m.test(e)}function C(e,t){return e===200&&!y(t)}r();function F(e){if(N(e)){o("Object can't be printed, but you can access its fields. Read more at https://shopify.dev/docs/api/liquid.");return}if(e==null){M("null");return}let t=JSON.stringify(e,null,2);M(t)}function N(e){if(Array.isArray(e))return e.length>0?N(e[0]):!1;if(e&&typeof e=="object"){let n=e.error;return typeof n=="string"&&n.includes("json not allowed for this object")}return!1}function M(e){return o(m`${d.cyan(e)}`)}import{createInterface as ie}from"readline";var ae=`Liquid Console doesn't support Liquid delimiters such as '{{ ... }}' or '{% ... %}'.
@@ -0,0 +1 @@
1
+ import{T as B}from"./chunk-AFM3UZQO.js";import{q as O}from"./chunk-JX4HSDDG.js";import{F as w,f as m}from"./chunk-BCZMDFI2.js";import{c as g,e as s,g as o}from"./chunk-VKWPEFWQ.js";var f=g((Q,c)=>{o();function j(r,e,t,n){for(var a=-1,i=r==null?0:r.length;++a<i;){var u=r[a];e(n,u,t(u),r)}return n}c.exports=j});var A=g((S,h)=>{o();var l=O();function E(r,e,t,n){return l(r,function(a,i,u){e(n,a,t(a),u)}),n}h.exports=E});var p=g((U,q)=>{o();var G=f(),I=A(),V=w(),C=m();function D(r,e){return function(t,n){var a=C(t)?G:I,i=e?e():{};return a(t,r,V(n,2),i)}}q.exports=D});var x=g((X,v)=>{o();var F=B(),H=p(),J=Object.prototype,K=J.hasOwnProperty,L=H(function(r,e,t){K.call(r,t)?r[t].push(e):F(r,t,[e])});v.exports=L});var y=g((Z,b)=>{o();var M=p(),N=M(function(r,e,t){r[t?0:1].push(e)},function(){return[[],[]]});b.exports=N});o();var P=s(x()),d=s(y());function $(r,e){return(0,P.default)(r,e)}function k(r,e){return(0,d.default)(r,e)}export{$ as a,k as b};
@@ -1 +1 @@
1
- import{P as m}from"./chunk-EEEKSYWV.js";import{d as c}from"./chunk-IIFRDOYG.js";import{Fb as l,Hb as n,Pb as a}from"./chunk-TB7HFPBB.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();import{createServer as d}from"net";var u=new Set;async function P(o,t){if(o&&await g(o))return a(n`Port ${o.toString()} is free`),o;a(n`Getting a random port...`);let r=await w(()=>f(),t?.maxTries,t?.waitTimeInSeconds);for(let e=0;e<(t?.maxTries??5)&&u.has(r);e++)r=await w(()=>f(),t?.maxTries,t?.waitTimeInSeconds);return a(n`Random port obtained: ${l.raw(`${r}`)}`),u.add(r),r}async function g(o){return new Promise(t=>{let r=d();r.unref(),r.once("error",()=>t(!1));try{r.listen(o,"localhost",()=>{r.close(()=>t(!0))})}catch(e){if(!(e instanceof RangeError))throw e;t(!1)}})}function f(){return new Promise((o,t)=>{let r=d();r.unref(),r.once("error",t),r.listen(0,"localhost",()=>{let e=r.address();if(e&&typeof e=="object"){let i=e.port;r.close(()=>o(i))}else r.close(()=>t(new Error("Unable to determine assigned port")))})})}async function w(o,t=5,r=1){let e=1;for(;;)try{return await o()}catch(i){if(e++<t)a(n`Unknown problem getting a random port: ${i.message}`),await m(r);else throw new c(i.message)}}export{P as a,g as b};
1
+ import{P as m}from"./chunk-JX4HSDDG.js";import{m as c}from"./chunk-2GB3EAD3.js";import{Fb as l,Hb as n,Pb as a}from"./chunk-BCZMDFI2.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();import{createServer as d}from"net";var u=new Set;async function P(o,t){if(o&&await g(o))return a(n`Port ${o.toString()} is free`),o;a(n`Getting a random port...`);let r=await w(()=>f(),t?.maxTries,t?.waitTimeInSeconds);for(let e=0;e<(t?.maxTries??5)&&u.has(r);e++)r=await w(()=>f(),t?.maxTries,t?.waitTimeInSeconds);return a(n`Random port obtained: ${l.raw(`${r}`)}`),u.add(r),r}async function g(o){return new Promise(t=>{let r=d();r.unref(),r.once("error",()=>t(!1));try{r.listen(o,"localhost",()=>{r.close(()=>t(!0))})}catch(e){if(!(e instanceof RangeError))throw e;t(!1)}})}function f(){return new Promise((o,t)=>{let r=d();r.unref(),r.once("error",t),r.listen(0,"localhost",()=>{let e=r.address();if(e&&typeof e=="object"){let i=e.port;r.close(()=>o(i))}else r.close(()=>t(new Error("Unable to determine assigned port")))})})}async function w(o,t=5,r=1){let e=1;for(;;)try{return await o()}catch(i){if(e++<t)a(n`Unknown problem getting a random port: ${i.message}`),await m(r);else throw new c(i.message)}}export{P as a,g as b};
@@ -1,4 +1,4 @@
1
- import{a as f}from"./chunk-TM44Z7U7.js";import{a as c}from"./chunk-N6IFIMC6.js";import{f as l,o as p}from"./chunk-I5X3IP6T.js";import{p as s,v as d}from"./chunk-4P54DKG4.js";import{b as h}from"./chunk-NGCPVRDM.js";import{v as i}from"./chunk-EEEKSYWV.js";import{r as F}from"./chunk-T6CC5WUU.js";import{e as w,g as n}from"./chunk-VKWPEFWQ.js";n();n();async function v(t,r){let o=t.name??await l("New name for the theme"),a=await f(r,{header:"Select a theme to rename",filter:{theme:t.theme,development:t.development,live:t.live}});await p(a.id,{name:o},r),i({body:[...t.environment?[{subdued:`Environment: ${t.environment}
1
+ import{a as f}from"./chunk-LDWMX3KZ.js";import{a as c}from"./chunk-7TXWKLPY.js";import{f as l,o as p}from"./chunk-Y7A7Z2V3.js";import{p as s,v as d}from"./chunk-445NFHXL.js";import{b as h}from"./chunk-4TANJ4JK.js";import{v as i}from"./chunk-JX4HSDDG.js";import{a as F}from"./chunk-CTNBSUVU.js";import{e as w,g as n}from"./chunk-VKWPEFWQ.js";n();n();async function v(t,r){let o=t.name??await l("New name for the theme"),a=await f(r,{header:"Select a theme to rename",filter:{theme:t.theme,development:t.development,live:t.live}});await p(a.id,{name:o},r),i({body:[...t.environment?[{subdued:`Environment: ${t.environment}
2
2
 
3
3
  `}]:[],"The theme",...c(a),"was renamed to",`'${o}'`]})}var m=w(F(),1);var u,e=class extends d{async command(r,o){await v(r,o)}};u=e;e.summary="Renames an existing theme.";e.descriptionWithMarkdown=`Renames a theme in your store.
4
4
 
@@ -0,0 +1,5 @@
1
+ import{a as v}from"./chunk-EZBB2ULE.js";import{a as h}from"./chunk-WDCCITSG.js";import{a as l}from"./chunk-NENUUNWB.js";import{ta as c}from"./chunk-5HJTCBBV.js";import{b as m}from"./chunk-4TANJ4JK.js";import{y as i}from"./chunk-AFM3UZQO.js";import{v as n}from"./chunk-JX4HSDDG.js";import{m as d}from"./chunk-2GB3EAD3.js";import{a as S}from"./chunk-CTNBSUVU.js";import{e as C,g as a}from"./chunk-VKWPEFWQ.js";a();a();async function f(o){let e=o.appContextResult.developerPlatformClient,r=o.appContextResult.remoteApp,s=await e.devSessionDelete({shopFqdn:o.store.shopDomain,appId:r.id});if(s.devSessionDelete?.userErrors.length){let w=s.devSessionDelete.userErrors.map(g=>g.message).join(`
2
+ `);throw new d(`Failed to stop the dev preview: ${w}`)}n({headline:"Dev preview stopped.",body:[`The dev preview has been stopped on ${o.store.shopDomain} and the app's active version has been restored.`,"You can start it again with",{command:"shopify app dev"}]})}var u=C(S(),1);var p,t=class extends h{async run(){let{flags:e}=await this.parse(p),r=await c({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),s=await v({appContextResult:r,storeFqdn:e.store,forceReselectStore:e.reset});return await f({appContextResult:r,store:s}),{app:r.app}}};p=t;t.summary="Cleans up the dev preview from the selected store.";t.descriptionWithMarkdown=`Stop the dev preview that was started with \`shopify app dev\`.
3
+
4
+ It restores the app's active version to the selected development store.
5
+ `;t.description=p.descriptionWithoutMarkdown();t.flags={...m,...l,store:u.Flags.string({hidden:!1,char:"s",description:"Store URL. Must be an existing development store.",env:"SHOPIFY_FLAG_STORE",parse:async o=>i(o)})};var L=t;export{L as a};