shopify 5.0.2 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (529) hide show
  1. package/dist/analytics-23GM6KJU.js +1 -0
  2. package/dist/analytics-743FYOAE.js +1 -0
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/{chunk-RPCIFYCY.js → chunk-2EQRXSF6.js} +2 -2
  5. package/dist/{chunk-NXAEBGMO.js → chunk-2IXP3IPE.js} +1 -1
  6. package/dist/{chunk-T4XJKM6B.js → chunk-2KACAQJS.js} +1 -1
  7. package/dist/chunk-2KFYIYLI.js +1 -0
  8. package/dist/chunk-2OCSYLKZ.js +1 -0
  9. package/dist/{chunk-AQKWPRZE.js → chunk-2PILNMHJ.js} +2 -2
  10. package/dist/chunk-36S6MFJQ.js +47 -0
  11. package/dist/{chunk-TFPW2VGN.js → chunk-3DB4EC62.js} +1 -1
  12. package/dist/chunk-3GL3IT4K.js +16 -0
  13. package/dist/{chunk-C3RFAKWR.js → chunk-3JRB7Q3T.js} +1 -1
  14. package/dist/chunk-3KGN6N7E.js +1 -0
  15. package/dist/chunk-3OYMK5X6.js +11 -0
  16. package/dist/chunk-3PYDIBTX.js +1 -0
  17. package/dist/chunk-422BGHXN.js +1 -0
  18. package/dist/chunk-43C32FUQ.js +1 -0
  19. package/dist/chunk-4AN7ECPE.js +9 -0
  20. package/dist/chunk-4AWVU2OV.js +1 -0
  21. package/dist/chunk-4IP37MBX.js +1 -0
  22. package/dist/chunk-4KBOLN7Q.js +8 -0
  23. package/dist/chunk-4LJERO23.js +89 -0
  24. package/dist/chunk-4M5WHOZW.js +1 -0
  25. package/dist/chunk-4RO35FFQ.js +1 -0
  26. package/dist/chunk-4ZS5354G.js +3 -0
  27. package/dist/chunk-55AWBPKU.js +7 -0
  28. package/dist/chunk-5BUYR23E.js +1 -0
  29. package/dist/chunk-5EDA7PVE.js +11 -0
  30. package/dist/{chunk-UKWIWCOH.js → chunk-5P6OELKZ.js} +1 -1
  31. package/dist/chunk-5PVXLQNX.js +1 -0
  32. package/dist/{chunk-J5ERDFIC.js → chunk-5S2P4MHJ.js} +1 -1
  33. package/dist/{chunk-26PWHH3B.js → chunk-5TJJVSCI.js} +1 -1
  34. package/dist/chunk-5TOK5OJS.js +1 -0
  35. package/dist/chunk-5ZG2SWU2.js +1 -0
  36. package/dist/{chunk-SLY27GDC.js → chunk-62F4ZMSC.js} +2 -2
  37. package/dist/chunk-652NT7OW.js +1 -0
  38. package/dist/chunk-6B5KM3A4.js +97 -0
  39. package/dist/chunk-6LCESSY3.js +1 -0
  40. package/dist/chunk-6QHDMCAA.js +1 -0
  41. package/dist/{chunk-D2KIGKBI.js → chunk-7A4ZE5IS.js} +60 -60
  42. package/dist/{chunk-CGVROSPS.js → chunk-7AQZKPJU.js} +1 -1
  43. package/dist/chunk-7FBOMPO5.js +203 -0
  44. package/dist/chunk-7HECBXSP.js +1 -0
  45. package/dist/chunk-7UK565VJ.js +1 -0
  46. package/dist/{chunk-LHXFTFFM.js → chunk-A5BSUUNQ.js} +1 -1
  47. package/dist/chunk-ADGE7MKB.js +1 -0
  48. package/dist/chunk-AEWRZ7AE.js +1 -0
  49. package/dist/chunk-ALDJTWCO.js +1 -0
  50. package/dist/chunk-ARL5WBDK.js +1 -0
  51. package/dist/chunk-AXFEIJC7.js +1 -0
  52. package/dist/{chunk-KZRLZWOU.js → chunk-AYGL6F3P.js} +1 -1
  53. package/dist/{chunk-URXM5A2K.js → chunk-AYTTE7X5.js} +1 -1
  54. package/dist/{chunk-3ODQKAEA.js → chunk-BDIZUTKC.js} +1 -1
  55. package/dist/chunk-BQKF4SRH.js +6 -0
  56. package/dist/chunk-C2AOCLEZ.js +1 -0
  57. package/dist/{chunk-WRZWHT6M.js → chunk-C2SGJ5IG.js} +1 -1
  58. package/dist/chunk-C3S3UMV3.js +1 -0
  59. package/dist/{chunk-WBJ6ZHYH.js → chunk-C5DKLOW4.js} +37 -37
  60. package/dist/chunk-C72QNK6O.js +4 -0
  61. package/dist/{chunk-6ES4KRFW.js → chunk-CA3GVT4D.js} +1 -1
  62. package/dist/chunk-CCLU5ZRK.js +9 -0
  63. package/dist/chunk-CE6XQDAG.js +10 -0
  64. package/dist/chunk-CEJ5WS4I.js +5 -0
  65. package/dist/{chunk-VEUKT5EI.js → chunk-CIBBQO2L.js} +2 -2
  66. package/dist/{chunk-IILLQOUC.js → chunk-CKJXJ6HD.js} +1 -1
  67. package/dist/{chunk-MEYVUHQH.js → chunk-COGKVNQB.js} +1 -1
  68. package/dist/chunk-CQAD5WML.js +1 -0
  69. package/dist/chunk-CQPZOXWO.js +6 -0
  70. package/dist/{chunk-62EOM3Y2.js → chunk-CZYQIWNL.js} +1 -1
  71. package/dist/chunk-DA5RQFXA.js +10 -0
  72. package/dist/{chunk-7GHSE7SG.js → chunk-DDRP6QTC.js} +1 -1
  73. package/dist/{chunk-Q5IC3IYY.js → chunk-DESZFFOK.js} +1 -1
  74. package/dist/{chunk-PLSS456F.js → chunk-DKR7562G.js} +1 -1
  75. package/dist/{chunk-LGXI7EGM.js → chunk-DNNTAMC5.js} +2 -2
  76. package/dist/chunk-DUPQUQ2Z.js +1 -0
  77. package/dist/{chunk-Q4JYAUVL.js → chunk-DUTIWCJ2.js} +1 -1
  78. package/dist/chunk-E6JEBSHZ.js +20 -0
  79. package/dist/chunk-E6KNAPIY.js +4 -0
  80. package/dist/chunk-E7XCCLQH.js +1 -0
  81. package/dist/chunk-EE72PCKT.js +1 -0
  82. package/dist/chunk-EEYXBKR7.js +4 -0
  83. package/dist/{chunk-ZRI3SSLG.js → chunk-EGLA3WLZ.js} +2 -2
  84. package/dist/chunk-EVQPYZ7F.js +5 -0
  85. package/dist/chunk-FDFE3SSG.js +35 -0
  86. package/dist/{chunk-Q7BOSHWX.js → chunk-FDSNRKGQ.js} +1 -1
  87. package/dist/chunk-FI5TQHUA.js +1 -0
  88. package/dist/chunk-FIKZQ4RA.js +1 -0
  89. package/dist/chunk-FJOVMEPN.js +3 -0
  90. package/dist/{chunk-ER6C5WS3.js → chunk-FLARCZ5F.js} +1 -1
  91. package/dist/chunk-FOMMPAWZ.js +1 -0
  92. package/dist/{chunk-6PUU6ZNQ.js → chunk-FRWQJAW2.js} +1 -1
  93. package/dist/{chunk-HXZAY5OA.js → chunk-G3DXNSA2.js} +1 -1
  94. package/dist/{chunk-XWSWXQCC.js → chunk-G7JO3W2R.js} +1 -1
  95. package/dist/{chunk-WESTVWWD.js → chunk-GABIWYY3.js} +1 -1
  96. package/dist/chunk-GFSEU7PF.js +6 -0
  97. package/dist/chunk-GFVUWVEM.js +1 -0
  98. package/dist/{chunk-ISKQQXLZ.js → chunk-GHNSXX7R.js} +1 -1
  99. package/dist/{chunk-2L6AN3QA.js → chunk-GQ3LY7BY.js} +1 -1
  100. package/dist/{chunk-2A2JSAAA.js → chunk-H45S4MGC.js} +1 -1
  101. package/dist/chunk-HEB4YYM6.js +9 -0
  102. package/dist/{chunk-CXI3RHPW.js → chunk-HI5FTI3M.js} +1 -1
  103. package/dist/chunk-HJ24NEP5.js +1 -0
  104. package/dist/chunk-HQFXVVTB.js +1 -0
  105. package/dist/{chunk-TODZ3TJR.js → chunk-HR6R7JXN.js} +1 -1
  106. package/dist/chunk-HRHJA5ZP.js +3 -0
  107. package/dist/{chunk-QEKGGTMN.js → chunk-HT5JQJMB.js} +1 -1
  108. package/dist/chunk-HT7273V7.js +1 -0
  109. package/dist/{chunk-UXVXVI6O.js → chunk-HUB4HDWN.js} +78 -76
  110. package/dist/chunk-IATNIWOC.js +13 -0
  111. package/dist/chunk-IHVWDKDV.js +2 -0
  112. package/dist/{chunk-3KM5ZOW2.js → chunk-IKXUYCK7.js} +1 -1
  113. package/dist/chunk-IVQN2RUP.js +1 -0
  114. package/dist/chunk-IWNFPBH2.js +33 -0
  115. package/dist/{chunk-ESFCYB46.js → chunk-J324ZPO6.js} +1 -1
  116. package/dist/{chunk-KNWT7JLL.js → chunk-JJQ3DJG5.js} +2 -2
  117. package/dist/{chunk-7CCTPBCT.js → chunk-JLAN6JXJ.js} +1 -1
  118. package/dist/chunk-K2GCCCCV.js +1 -0
  119. package/dist/{chunk-NVKJ7ZLP.js → chunk-K4KKSBUW.js} +1 -1
  120. package/dist/{chunk-BAHIL37I.js → chunk-K4QJEQI4.js} +1 -1
  121. package/dist/{chunk-QDCLL5OI.js → chunk-K5UVCBIP.js} +1 -1
  122. package/dist/{chunk-64G5TGFF.js → chunk-KN2JIDNO.js} +1 -1
  123. package/dist/chunk-KORVOCNN.js +1 -0
  124. package/dist/chunk-KRQCQ57O.js +1 -0
  125. package/dist/{chunk-3MYDSQHF.js → chunk-KT2AMFVW.js} +1 -1
  126. package/dist/chunk-L23Q53FM.js +70 -0
  127. package/dist/{chunk-UBP3LQFY.js → chunk-L3DTONOI.js} +2 -2
  128. package/dist/{chunk-BN7ZXAZJ.js → chunk-LG3KEHGD.js} +2 -2
  129. package/dist/chunk-LRETOC6P.js +1 -0
  130. package/dist/chunk-LXFWK3O2.js +1 -0
  131. package/dist/chunk-LZ2TN7EZ.js +1 -0
  132. package/dist/chunk-MBAPM5HA.js +15 -0
  133. package/dist/{chunk-UUAKOX7E.js → chunk-MGZK5EQW.js} +2 -2
  134. package/dist/chunk-MKUXSM33.js +1 -0
  135. package/dist/chunk-MQ55QUOJ.js +276 -0
  136. package/dist/chunk-NAQJMRPT.js +2296 -0
  137. package/dist/{chunk-DZKFP6H2.js → chunk-NMXRDF4T.js} +1 -1
  138. package/dist/chunk-NOWM3CCG.js +1 -0
  139. package/dist/chunk-NVDFXEQ5.js +5 -0
  140. package/dist/{chunk-CX5CC6P5.js → chunk-O472FAYX.js} +1 -1
  141. package/dist/{chunk-B2O3ANRZ.js → chunk-OCILF2DD.js} +1 -1
  142. package/dist/{chunk-67L7FIB6.js → chunk-OGBMFGYC.js} +1 -1
  143. package/dist/chunk-OIQ5NQ5I.js +18 -0
  144. package/dist/chunk-OKRKVVTK.js +103 -0
  145. package/dist/chunk-ONNUEQGR.js +3 -0
  146. package/dist/chunk-OSASE35V.js +6 -0
  147. package/dist/chunk-OTMTS5L4.js +3 -0
  148. package/dist/chunk-OWPAHXDF.js +3 -0
  149. package/dist/chunk-P7HZGJRU.js +6 -0
  150. package/dist/chunk-PIU3GVJ4.js +1 -0
  151. package/dist/{chunk-2WJOTJOD.js → chunk-PSNCWS3Q.js} +2 -2
  152. package/dist/chunk-PSREELSQ.js +22 -0
  153. package/dist/{chunk-AQ6EVL73.js → chunk-Q2CKRCPM.js} +1 -1
  154. package/dist/chunk-QA2D7DT2.js +1 -0
  155. package/dist/chunk-QBRRFFMZ.js +1 -0
  156. package/dist/chunk-QDMTJKQ3.js +1 -0
  157. package/dist/{chunk-3Z3MADXZ.js → chunk-QIJ7D2JS.js} +1 -1
  158. package/dist/chunk-QLN6IOOY.js +1 -0
  159. package/dist/chunk-QU3USVKT.js +1 -0
  160. package/dist/chunk-R2E6TMBE.js +22 -0
  161. package/dist/chunk-R4E2E4NN.js +1 -0
  162. package/dist/chunk-R5COVIJM.js +1 -0
  163. package/dist/chunk-RFJ2LI64.js +81 -0
  164. package/dist/chunk-RNF6T6IO.js +5 -0
  165. package/dist/chunk-RSNFNZ6F.js +2 -0
  166. package/dist/{chunk-I4CEH7AK.js → chunk-RZ3UGOV4.js} +2 -2
  167. package/dist/{chunk-35XFNKNB.js → chunk-S23ZG2RG.js} +1 -1
  168. package/dist/{chunk-PF53E2DC.js → chunk-SAK42CAY.js} +1 -1
  169. package/dist/chunk-SBX7CMHM.js +1 -0
  170. package/dist/{chunk-S5P7KWY4.js → chunk-SGQTRKYZ.js} +1 -1
  171. package/dist/chunk-SNPJVVVE.js +5 -0
  172. package/dist/chunk-SNRGS3YU.js +1 -0
  173. package/dist/chunk-SUTSCIXU.js +7 -0
  174. package/dist/chunk-SWFCT5B7.js +2 -0
  175. package/dist/{chunk-4KECSZTL.js → chunk-SZ64GAVG.js} +2 -2
  176. package/dist/{chunk-WBVS5NBV.js → chunk-TDHIOONG.js} +2 -2
  177. package/dist/{chunk-W37IFK3P.js → chunk-TLN4BKXJ.js} +102 -102
  178. package/dist/{chunk-QW52RPAU.js → chunk-TXMZPF2U.js} +1 -1
  179. package/dist/chunk-TZHVCMZN.js +6 -0
  180. package/dist/{chunk-IHXGZW42.js → chunk-TZOB52QK.js} +1 -1
  181. package/dist/{chunk-N57Y7THE.js → chunk-U5BKU3OL.js} +1 -1
  182. package/dist/{chunk-Y55T4IIQ.js → chunk-UK3BDOHR.js} +1 -1
  183. package/dist/chunk-UORSJB4A.js +857 -0
  184. package/dist/chunk-UU6UQ2QY.js +1 -0
  185. package/dist/{chunk-PWAT52M4.js → chunk-UY44O4IZ.js} +1 -1
  186. package/dist/{chunk-QF5WKTPD.js → chunk-V3H6SYK3.js} +1 -1
  187. package/dist/{chunk-YTUUU33R.js → chunk-VBPMVVLV.js} +1 -1
  188. package/dist/{chunk-SNH4XZ6E.js → chunk-VGBCG3I5.js} +1 -1
  189. package/dist/{chunk-QEVTBD33.js → chunk-VHRUPKWH.js} +1 -1
  190. package/dist/chunk-VVHJ2AUF.js +3 -0
  191. package/dist/chunk-WB5GRBHW.js +1 -0
  192. package/dist/{chunk-YSWVYPWR.js → chunk-WBKQSSWW.js} +1 -1
  193. package/dist/{chunk-SIL6HPMK.js → chunk-WDXDT7XY.js} +2 -2
  194. package/dist/{chunk-SACNUF4I.js → chunk-WHOD5I7N.js} +1 -1
  195. package/dist/{chunk-Z2WAW6MM.js → chunk-WL3M63DG.js} +1 -1
  196. package/dist/{chunk-LEHBZKK3.js → chunk-WLJDMI7E.js} +1 -1
  197. package/dist/{chunk-PTSCGSQV.js → chunk-WZ3QWPK5.js} +2 -2
  198. package/dist/{chunk-H6GNKWYM.js → chunk-X5V7AGVU.js} +1 -1
  199. package/dist/{chunk-RPVZ2JON.js → chunk-X76AYO36.js} +1 -1
  200. package/dist/chunk-XB7H2RYV.js +31 -0
  201. package/dist/chunk-XHHAVKKV.js +1 -0
  202. package/dist/chunk-XKNDU62O.js +1 -0
  203. package/dist/chunk-XVJRGOJA.js +4 -0
  204. package/dist/chunk-Y3ZAQZPH.js +16 -0
  205. package/dist/chunk-YF4AXKM4.js +1 -0
  206. package/dist/chunk-YGN65N6W.js +16 -0
  207. package/dist/{chunk-HF4NDEX3.js → chunk-YR4J46US.js} +1 -1
  208. package/dist/chunk-YTC367JI.js +3 -0
  209. package/dist/{chunk-ZBL7XMJ6.js → chunk-Z2FGYMJ6.js} +2 -2
  210. package/dist/chunk-Z3QZNLT5.js +1 -0
  211. package/dist/chunk-ZC3EDADH.js +26 -0
  212. package/dist/chunk-ZLITAXPT.js +1 -0
  213. package/dist/{chunk-ACA2BGAD.js → chunk-ZNEPRGFY.js} +1 -1
  214. package/dist/chunk-ZNEQZV5K.js +3 -0
  215. package/dist/chunk-ZOU6SOXW.js +20 -0
  216. package/dist/{chunk-YV2TP44L.js → chunk-ZQNGYJKJ.js} +1 -1
  217. package/dist/chunk-ZRM7ESSS.js +4 -0
  218. package/dist/chunk-ZX33FUW3.js +5 -0
  219. package/dist/cli/commands/app/build.js +1 -1
  220. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  221. package/dist/cli/commands/app/bulk/execute.js +1 -1
  222. package/dist/cli/commands/app/bulk/status.js +1 -1
  223. package/dist/cli/commands/app/config/link.js +1 -1
  224. package/dist/cli/commands/app/config/pull.js +1 -1
  225. package/dist/cli/commands/app/config/use.js +1 -1
  226. package/dist/cli/commands/app/config/validate.js +1 -1
  227. package/dist/cli/commands/app/demo/watcher.js +1 -1
  228. package/dist/cli/commands/app/deploy.js +1 -1
  229. package/dist/cli/commands/app/dev/clean.js +1 -1
  230. package/dist/cli/commands/app/dev.js +1 -1
  231. package/dist/cli/commands/app/env/pull.js +1 -1
  232. package/dist/cli/commands/app/env/show.js +1 -1
  233. package/dist/cli/commands/app/execute.js +1 -1
  234. package/dist/cli/commands/app/function/build.js +1 -1
  235. package/dist/cli/commands/app/function/info.js +1 -1
  236. package/dist/cli/commands/app/function/replay.js +1 -1
  237. package/dist/cli/commands/app/function/run.js +1 -1
  238. package/dist/cli/commands/app/function/schema.js +1 -1
  239. package/dist/cli/commands/app/function/typegen.js +1 -1
  240. package/dist/cli/commands/app/generate/extension.js +1 -1
  241. package/dist/cli/commands/app/graphiql.js +1 -1
  242. package/dist/cli/commands/app/import/channel-config.js +1 -1
  243. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
  244. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
  245. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  246. package/dist/cli/commands/app/import-extensions.js +1 -1
  247. package/dist/cli/commands/app/info.js +1 -1
  248. package/dist/cli/commands/app/init.js +1 -1
  249. package/dist/cli/commands/app/logs.js +1 -1
  250. package/dist/cli/commands/app/release.js +1 -1
  251. package/dist/cli/commands/app/security/check.js +1 -1
  252. package/dist/cli/commands/app/security/clean.js +1 -1
  253. package/dist/cli/commands/app/security/instructions.js +1 -1
  254. package/dist/cli/commands/app/security/record.js +1 -1
  255. package/dist/cli/commands/app/security/review.js +1 -1
  256. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  257. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  258. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  259. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  260. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  261. package/dist/cli/commands/app/versions/list.js +1 -1
  262. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  263. package/dist/cli/commands/auth/login.d.ts +10 -10
  264. package/dist/cli/commands/auth/login.js +1 -1
  265. package/dist/cli/commands/auth/logout.d.ts +7 -7
  266. package/dist/cli/commands/auth/logout.js +1 -1
  267. package/dist/cli/commands/cache/clear.js +1 -1
  268. package/dist/cli/commands/config/autoupgrade/off.d.ts +7 -7
  269. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  270. package/dist/cli/commands/config/autoupgrade/on.d.ts +7 -7
  271. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  272. package/dist/cli/commands/config/autoupgrade/status.d.ts +7 -7
  273. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  274. package/dist/cli/commands/debug/command-flags.js +1 -1
  275. package/dist/cli/commands/doc/fetch.d.ts +21 -21
  276. package/dist/cli/commands/doc/fetch.js +1 -1
  277. package/dist/cli/commands/doc/search.d.ts +23 -23
  278. package/dist/cli/commands/doc/search.js +1 -1
  279. package/dist/cli/commands/docs/generate.js +1 -1
  280. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  281. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  282. package/dist/cli/commands/help.d.ts +90 -90
  283. package/dist/cli/commands/help.js +1 -1
  284. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  285. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  286. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  287. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  288. package/dist/cli/commands/notifications/generate.js +1 -1
  289. package/dist/cli/commands/notifications/list.js +1 -1
  290. package/dist/cli/commands/organization/list.js +1 -1
  291. package/dist/cli/commands/search.d.ts +7 -7
  292. package/dist/cli/commands/search.js +1 -1
  293. package/dist/cli/commands/send-analytics.js +1 -1
  294. package/dist/cli/commands/theme/check.js +1 -1
  295. package/dist/cli/commands/theme/console.js +1 -1
  296. package/dist/cli/commands/theme/delete.js +1 -1
  297. package/dist/cli/commands/theme/dev.js +1 -1
  298. package/dist/cli/commands/theme/duplicate.js +1 -1
  299. package/dist/cli/commands/theme/info.js +1 -1
  300. package/dist/cli/commands/theme/init.js +1 -1
  301. package/dist/cli/commands/theme/language-server.js +1 -1
  302. package/dist/cli/commands/theme/list.js +1 -1
  303. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  304. package/dist/cli/commands/theme/open.js +1 -1
  305. package/dist/cli/commands/theme/package.js +1 -1
  306. package/dist/cli/commands/theme/preview.js +1 -1
  307. package/dist/cli/commands/theme/profile.js +1 -1
  308. package/dist/cli/commands/theme/publish.js +1 -1
  309. package/dist/cli/commands/theme/pull.js +1 -1
  310. package/dist/cli/commands/theme/push.js +1 -1
  311. package/dist/cli/commands/theme/rename.js +1 -1
  312. package/dist/cli/commands/theme/share.js +1 -1
  313. package/dist/cli/commands/upgrade.d.ts +24 -24
  314. package/dist/cli/commands/upgrade.js +1 -1
  315. package/dist/cli/commands/version.d.ts +7 -7
  316. package/dist/cli/commands/version.js +1 -1
  317. package/dist/cli/help.js +1 -1
  318. package/dist/cli-version-check-BW2CUMX4.js +1 -0
  319. package/dist/{command-event-context-LFUZ7UCA.js → command-event-context-ILIANB5Q.js} +1 -1
  320. package/dist/command-json-schema-LGR44Q2G.js +1 -0
  321. package/dist/command-registry.js +1 -1
  322. package/dist/conf-store-TODPQ2LC.js +1 -0
  323. package/dist/configs/all.yml +9 -0
  324. package/dist/configs/recommended.yml +9 -0
  325. package/dist/custom-oclif-loader-BPE2TH4B.js +1 -0
  326. package/dist/data/filters.json +41 -2
  327. package/dist/data/local_block_entry.json +1 -1
  328. package/dist/data/manifest_theme.json +1 -0
  329. package/dist/data/objects.json +279 -44
  330. package/dist/data/section.json +15 -1
  331. package/dist/data/setting.json +9 -5
  332. package/dist/data/shopify_system_translations.json +312 -32
  333. package/dist/data/strict_settings.json +24 -0
  334. package/dist/data/tags.json +57 -24
  335. package/dist/data/theme_block.json +1 -1
  336. package/dist/deprecations-5CSI24TV.js +1 -0
  337. package/dist/dist-LPKYTX3M.js +1 -0
  338. package/dist/dist-WT6MPTKJ.js +1 -0
  339. package/dist/environment-5P7JJ3GI.js +1 -0
  340. package/dist/environments-3HTT5CVC.js +1 -0
  341. package/dist/error-PFOKPWFX.js +1 -0
  342. package/dist/error-handler-23FASAEU.js +1 -0
  343. package/dist/fs-RA25PWSJ.js +1 -0
  344. package/dist/hooks/did-you-mean.js +1 -1
  345. package/dist/hooks/hydrogen-init.js +1 -1
  346. package/dist/hooks/plugin-plugins.js +1 -1
  347. package/dist/hooks/postrun.js +1 -1
  348. package/dist/hooks/prerun.js +2 -2
  349. package/dist/hooks/public-metadata.js +1 -1
  350. package/dist/hooks/sensitive-metadata.js +1 -1
  351. package/dist/hooks/tunnel-provider.js +1 -1
  352. package/dist/hooks/tunnel-start.js +1 -1
  353. package/dist/http-EVDTYINS.js +1 -0
  354. package/dist/http-proxy-node16-NZZ674YW.js +38 -0
  355. package/dist/index.js +12 -12
  356. package/dist/is-global-3DNAMKUU.js +1 -0
  357. package/dist/json-error-HGCRNJRF.js +1 -0
  358. package/dist/latest-version-75YEFEMK.js +9 -0
  359. package/dist/lib-4ZA53LTZ.js +1 -0
  360. package/dist/lib-F3MES3XF.js +1 -0
  361. package/dist/lib-XPJABU24.js +1 -0
  362. package/dist/{local-OKPVB4NH.js → local-LNGPIGLG.js} +1 -1
  363. package/dist/metadata-VHLSUKCW.js +1 -0
  364. package/dist/{morph-CRY35DIK.js → morph-H7XQP55V.js} +3 -3
  365. package/dist/node-package-manager-SSFNUVWB.js +1 -0
  366. package/dist/notifications-system-3NQRYYKW.js +1 -0
  367. package/dist/{npa-A4YSCQ5Q.js → npa-LVYMN7GE.js} +1 -1
  368. package/dist/os-KIKVJONE.js +1 -0
  369. package/dist/output-DUJTSURG.js +1 -0
  370. package/dist/{prettier-EGVCP5CY.js → prettier-NOE3TJJ5.js} +1 -1
  371. package/dist/registry-auth-token-EDH77OOW.js +1 -0
  372. package/dist/registry-url-JMNV3LLX.js +1 -0
  373. package/dist/semver-HHZRKD6Y.js +1 -0
  374. package/dist/system-CGOZSROX.js +1 -0
  375. package/dist/tsconfig.tsbuildinfo +1 -1
  376. package/dist/ui-YMBFS3NG.js +1 -0
  377. package/dist/upgrade-73RRPDSC.js +1 -0
  378. package/dist/version-AMUEEBIG.js +1 -0
  379. package/dist/version-S4MGCKDO.js +1 -0
  380. package/dist/workerd-DRWNY3S4.js +18 -0
  381. package/oclif.manifest.json +25618 -1167
  382. package/package.json +7 -7
  383. package/dist/analytics-NMMVOF4B.js +0 -1
  384. package/dist/analytics-UK77WNLG.js +0 -1
  385. package/dist/chunk-224UPIYS.js +0 -4
  386. package/dist/chunk-27NXPOAS.js +0 -1
  387. package/dist/chunk-2MT3LSMZ.js +0 -1
  388. package/dist/chunk-2T4HDR6R.js +0 -70
  389. package/dist/chunk-2ZBXHCQZ.js +0 -1
  390. package/dist/chunk-335BUVBP.js +0 -1
  391. package/dist/chunk-33ZE3DRQ.js +0 -16
  392. package/dist/chunk-34MOWGRL.js +0 -1
  393. package/dist/chunk-3JSKNXL7.js +0 -1
  394. package/dist/chunk-3MG4MTWQ.js +0 -1
  395. package/dist/chunk-3XRI3D44.js +0 -1
  396. package/dist/chunk-43R5VGKT.js +0 -1
  397. package/dist/chunk-4WYKPIN3.js +0 -1
  398. package/dist/chunk-5AEZJZNQ.js +0 -1
  399. package/dist/chunk-5ED7SOQZ.js +0 -20
  400. package/dist/chunk-5IDJALJH.js +0 -1
  401. package/dist/chunk-66TMIQMB.js +0 -1
  402. package/dist/chunk-74NRFUGQ.js +0 -1
  403. package/dist/chunk-7GUMJ5E4.js +0 -1
  404. package/dist/chunk-7NFTSBHQ.js +0 -10
  405. package/dist/chunk-ACZNWIRY.js +0 -1
  406. package/dist/chunk-AUE7LM32.js +0 -1
  407. package/dist/chunk-AXL2VIWA.js +0 -16
  408. package/dist/chunk-B3ZJGYZY.js +0 -3
  409. package/dist/chunk-BOAGJ6P5.js +0 -1
  410. package/dist/chunk-BWN2QG6D.js +0 -5
  411. package/dist/chunk-CCUQM4FX.js +0 -6
  412. package/dist/chunk-CLUUA3HX.js +0 -3
  413. package/dist/chunk-CYEEGTVZ.js +0 -11
  414. package/dist/chunk-DBDTE3EE.js +0 -5
  415. package/dist/chunk-DLVB3237.js +0 -31
  416. package/dist/chunk-DN6X7SHW.js +0 -2
  417. package/dist/chunk-E5COIKGY.js +0 -5
  418. package/dist/chunk-E6RONHMT.js +0 -1
  419. package/dist/chunk-EAZIQI2D.js +0 -1
  420. package/dist/chunk-EEY4FKAW.js +0 -1
  421. package/dist/chunk-EKFPTBXC.js +0 -1
  422. package/dist/chunk-F3CK3EJJ.js +0 -1
  423. package/dist/chunk-FEBOZ2XX.js +0 -31
  424. package/dist/chunk-FFSDGRAN.js +0 -1
  425. package/dist/chunk-FZCGRIOM.js +0 -1
  426. package/dist/chunk-GNCVDN7U.js +0 -1
  427. package/dist/chunk-GQLNG537.js +0 -836
  428. package/dist/chunk-GVI3DWSB.js +0 -4
  429. package/dist/chunk-GW7YIJPJ.js +0 -5
  430. package/dist/chunk-H6GYBLVQ.js +0 -2
  431. package/dist/chunk-HB3MJYBK.js +0 -1
  432. package/dist/chunk-HSKDFEXW.js +0 -1
  433. package/dist/chunk-HTRJU4R4.js +0 -1
  434. package/dist/chunk-I7PEEJVH.js +0 -1
  435. package/dist/chunk-IHMATNOR.js +0 -1
  436. package/dist/chunk-IJY3RJPJ.js +0 -47
  437. package/dist/chunk-J3JPJCWP.js +0 -1
  438. package/dist/chunk-J55GQLP4.js +0 -1
  439. package/dist/chunk-JLQRDFR5.js +0 -18
  440. package/dist/chunk-JPWRZ5SL.js +0 -16
  441. package/dist/chunk-K7ZSPQKL.js +0 -4
  442. package/dist/chunk-L5TSPCSY.js +0 -26
  443. package/dist/chunk-LUGMXSRI.js +0 -9
  444. package/dist/chunk-M2CWCOFU.js +0 -11
  445. package/dist/chunk-M5VIFG2V.js +0 -1
  446. package/dist/chunk-MADINS4Z.js +0 -1
  447. package/dist/chunk-MGHPF7HU.js +0 -6
  448. package/dist/chunk-MHR5OHT5.js +0 -10
  449. package/dist/chunk-MXEXP3HT.js +0 -15
  450. package/dist/chunk-OJULL7HT.js +0 -1
  451. package/dist/chunk-OMPQ7REW.js +0 -3
  452. package/dist/chunk-OR4IJ4BQ.js +0 -1
  453. package/dist/chunk-P2RMFHQP.js +0 -1
  454. package/dist/chunk-P4VZYOKO.js +0 -15
  455. package/dist/chunk-PDZBKVWL.js +0 -97
  456. package/dist/chunk-Q2KWXZQB.js +0 -12
  457. package/dist/chunk-QFSENE5T.js +0 -3
  458. package/dist/chunk-QFWWCZOI.js +0 -1
  459. package/dist/chunk-QFYLJVJW.js +0 -77
  460. package/dist/chunk-QQJNQNKP.js +0 -6
  461. package/dist/chunk-R4UVIYZP.js +0 -4
  462. package/dist/chunk-RLNIOJH3.js +0 -272
  463. package/dist/chunk-RW6G4ZPU.js +0 -1
  464. package/dist/chunk-S4LOWCGS.js +0 -1
  465. package/dist/chunk-SB27UOXX.js +0 -1
  466. package/dist/chunk-SHD4VV5V.js +0 -3
  467. package/dist/chunk-SK7EPN6C.js +0 -1
  468. package/dist/chunk-TAWCKJKP.js +0 -1
  469. package/dist/chunk-U2T5HPRD.js +0 -319
  470. package/dist/chunk-U6YOP562.js +0 -1
  471. package/dist/chunk-UPPO3BMT.js +0 -7
  472. package/dist/chunk-USXIXANP.js +0 -103
  473. package/dist/chunk-UV5GAGAD.js +0 -1
  474. package/dist/chunk-UY6W2EVZ.js +0 -1
  475. package/dist/chunk-UYELAINQ.js +0 -16
  476. package/dist/chunk-V75WUEFU.js +0 -1
  477. package/dist/chunk-VAVXDIUX.js +0 -6
  478. package/dist/chunk-VGSH52JM.js +0 -1
  479. package/dist/chunk-VHZ6RL67.js +0 -1
  480. package/dist/chunk-VQA3X7O3.js +0 -1
  481. package/dist/chunk-VZCMJRYV.js +0 -1
  482. package/dist/chunk-W56ZGEQQ.js +0 -2265
  483. package/dist/chunk-WCC52MR2.js +0 -1
  484. package/dist/chunk-WSDKCQH6.js +0 -6
  485. package/dist/chunk-X2PFXSU4.js +0 -1
  486. package/dist/chunk-X5NIAZA4.js +0 -1
  487. package/dist/chunk-XBMD3FEZ.js +0 -3
  488. package/dist/chunk-XDVPIGXE.js +0 -2
  489. package/dist/chunk-XLIJYJ6Q.js +0 -1
  490. package/dist/chunk-XUHGWIWW.js +0 -4
  491. package/dist/chunk-Y5CVX5LJ.js +0 -1
  492. package/dist/chunk-Y6J46XYF.js +0 -3
  493. package/dist/chunk-YKMINHYY.js +0 -3
  494. package/dist/chunk-ZDQO6CNY.js +0 -1
  495. package/dist/chunk-ZGASBRSQ.js +0 -5
  496. package/dist/chunk-ZGBTO46A.js +0 -1
  497. package/dist/chunk-ZJOX5HW4.js +0 -22
  498. package/dist/chunk-ZOOT3GBY.js +0 -5
  499. package/dist/command-json-schema-F5XF7XHL.js +0 -1
  500. package/dist/conf-store-5CBLWTOC.js +0 -1
  501. package/dist/custom-oclif-loader-UDVUFKMD.js +0 -1
  502. package/dist/deprecations-EOHPSTCS.js +0 -1
  503. package/dist/dist-RNV3GFZ7.js +0 -1
  504. package/dist/dist-ZFKWJVNB.js +0 -1
  505. package/dist/environment-O7ECODHU.js +0 -1
  506. package/dist/environments-4FLRZW4P.js +0 -1
  507. package/dist/error-JY2ADS6S.js +0 -1
  508. package/dist/error-handler-4GCXKC6I.js +0 -1
  509. package/dist/fs-XS5YF34R.js +0 -1
  510. package/dist/http-proxy-node16-D3JUYA5D.js +0 -38
  511. package/dist/is-global-27MUENOK.js +0 -1
  512. package/dist/json-error-S5XFS3UX.js +0 -1
  513. package/dist/latest-version-LDWU5F7A.js +0 -49
  514. package/dist/lib-PJHT4MKY.js +0 -1
  515. package/dist/lib-VKSQ65BQ.js +0 -1
  516. package/dist/lib-YEZOHXF3.js +0 -1
  517. package/dist/metadata-2YJBAKR7.js +0 -1
  518. package/dist/node-package-manager-B3OW3PFQ.js +0 -1
  519. package/dist/notifications-system-BWTDYBG2.js +0 -1
  520. package/dist/os-F6QKJCFW.js +0 -1
  521. package/dist/output-BRIPK7UC.js +0 -1
  522. package/dist/system-466QKFDI.js +0 -1
  523. package/dist/ui-VJTNGCS6.js +0 -1
  524. package/dist/upgrade-VHVJLXKX.js +0 -1
  525. package/dist/version-FETZRLZO.js +0 -1
  526. package/dist/version-T4XXTJMB.js +0 -1
  527. package/dist/workerd-32DMKLMN.js +0 -18
  528. /package/dist/{chunk-YLQ3LNNY.js → chunk-HVECVOIO.js} +0 -0
  529. /package/dist/{chunk-YRHFPXC3.js → chunk-Z2AV4BWZ.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{a as x}from"./chunk-J55GQLP4.js";import{Ma as D}from"./chunk-U2T5HPRD.js";import{b as u,d as B}from"./chunk-SK7EPN6C.js";import{b as W,j as y}from"./chunk-GQLNG537.js";import{C as _,J as N,U as F}from"./chunk-D2KIGKBI.js";import{h as s,k as C}from"./chunk-M5VIFG2V.js";import{Sa as A,la as T,qb as m,sb as o}from"./chunk-JLQRDFR5.js";import{e as z,g as t}from"./chunk-VKWPEFWQ.js";t();var b=z(W(),1);function H(e){return e.startsWith("gid://")?e:/^\d+$/.test(e)?`gid://shopify/BulkOperation/${e}`:e}function J(e){return e.match(/^gid:\/\/shopify\/BulkOperation\/(\d+)$/)?.[1]??e}function g(e){let n;try{n=(0,b.parse)(e)}catch(i){throw i instanceof Error?new s(`Invalid GraphQL syntax: ${i.message}`):i}if(n.definitions.filter(i=>i.kind==="OperationDefinition").length!==1)throw new s("GraphQL document must contain exactly one operation definition. Multiple operations are not supported.")}function X(e){let n;try{n=(0,b.parse)(e)}catch(i){throw i instanceof Error?new s(`Invalid GraphQL syntax: ${i.message}`):i}return n.definitions.find(i=>i.kind==="OperationDefinition")?.operation==="mutation"}async function Y(e){let{adminSession:n,userSpecifiedVersion:a,minimumDefaultVersion:i}=e;if(a==="unstable")return a;let r=await B(n);if(!a){let c=r.filter(v=>v.supported).map(v=>v.handle);i&&c.push(i);let f=c.sort().reverse()[0];if(!f)throw new s("No supported API versions available for this store.");return f}let l=r.map(c=>c.handle);if(l.includes(a))return a;let d=o`Invalid API version: ${a}`.value,k=o`Allowed versions: ${l.join(", ")}`.value;throw new s(d,k)}t();t();var p="2026-01";t();async function E(e){let n;if(e.query!==void 0){if(!e.query.trim())throw new s("The --query flag value is empty. Please provide a valid GraphQL query or mutation.");n=e.query}else if(e.queryFile){if(!await A(e.queryFile))throw new s(o`Query file not found at ${m.path(e.queryFile)}. Please check the path and try again.`);let a=await T(e.queryFile,{encoding:"utf8"});if(!a.trim())throw new s(o`Query file at ${m.path(e.queryFile)} is empty. Please provide a valid GraphQL query or mutation.`);n=a}else throw new C("Query should have been provided via --query or --query-file flags due to exactlyOne constraint. This indicates the oclif flag validation failed.");return g(n),n}t();t();var R={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationRunQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationRunQuery"},arguments:[{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function Z(e){let{adminSession:n,query:a,version:i}=e;return(await u({query:R,session:n,variables:{query:a},...i&&{version:i}})).bulkOperationRunQuery}t();t();t();var L={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"StagedUploadsCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StagedUploadInput"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stagedUploadsCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stagedTargets"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"resourceUrl"}},{kind:"Field",name:{kind:"Name",value:"parameters"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function h(e){let{adminSession:n,variablesJsonl:a}=e,i=Buffer.from(a??"","utf-8"),r="bulk-variables.jsonl",l=i.length,d=await ee(n,r,l),k=ne(d);return await ie(i,k.url,k.parameters,r),k.stagedUploadKey}async function ee(e,n,a){return u({query:L,session:e,variables:{input:[{filename:n,fileSize:a.toString(),httpMethod:"POST",mimeType:"text/jsonl",resource:"BULK_MUTATION_VARIABLES"}]}})}function ne(e){if(!e.stagedUploadsCreate)throw new s("No response received from stagedUploadsCreate mutation");if(e.stagedUploadsCreate.userErrors.length>0){let i=e.stagedUploadsCreate.userErrors.map(r=>r.message).join(", ");throw new s(`Failed to create staged upload: ${i}`)}let n=e.stagedUploadsCreate.stagedTargets?.[0];if(!n)throw new s("No staged upload target returned from Shopify");if(!n.url||!n.resourceUrl)throw new s("Invalid staged upload target: missing required URLs");let a=n.parameters.find(i=>i.name==="key")?.value;if(!a)throw new s("No key parameter found in staged upload target");return{url:n.url,resourceUrl:n.resourceUrl,parameters:n.parameters,stagedUploadKey:a}}async function ie(e,n,a,i){let r=new FormData;for(let d of a)r.append(d.name,d.value);r.append("file",new Blob([new Uint8Array(e)],{type:"text/jsonl"}),i);let l=await N({title:o`Uploading bulk operation variables`,task:async()=>y(n,{method:"POST",body:r},"slow-request"),renderOptions:{stdout:process.stderr}});if(!l.ok){let d=await l.text();throw new s(`Failed to upload file to staged URL: ${l.statusText}
1
+ import{a as x}from"./chunk-Z3QZNLT5.js";import{P as D}from"./chunk-7FBOMPO5.js";import{b as u,e as B}from"./chunk-XHHAVKKV.js";import{b as W,p as y}from"./chunk-UORSJB4A.js";import{A as _,H as N,S as F}from"./chunk-7A4ZE5IS.js";import{j as s,n as C}from"./chunk-FJOVMEPN.js";import{Sa as A,la as T,tb as m,vb as o}from"./chunk-OIQ5NQ5I.js";import{e as z,g as t}from"./chunk-VKWPEFWQ.js";t();var b=z(W(),1);function H(e){return e.startsWith("gid://")?e:/^\d+$/.test(e)?`gid://shopify/BulkOperation/${e}`:e}function J(e){return e.match(/^gid:\/\/shopify\/BulkOperation\/(\d+)$/)?.[1]??e}function g(e){let n;try{n=(0,b.parse)(e)}catch(i){throw i instanceof Error?new s(`Invalid GraphQL syntax: ${i.message}`):i}if(n.definitions.filter(i=>i.kind==="OperationDefinition").length!==1)throw new s("GraphQL document must contain exactly one operation definition. Multiple operations are not supported.")}function X(e){let n;try{n=(0,b.parse)(e)}catch(i){throw i instanceof Error?new s(`Invalid GraphQL syntax: ${i.message}`):i}return n.definitions.find(i=>i.kind==="OperationDefinition")?.operation==="mutation"}async function Y(e){let{adminSession:n,userSpecifiedVersion:a,minimumDefaultVersion:i}=e;if(a==="unstable")return a;let r=await B(n);if(!a){let c=r.filter(v=>v.supported).map(v=>v.handle);i&&c.push(i);let f=c.sort().reverse()[0];if(!f)throw new s("No supported API versions available for this store.");return f}let l=r.map(c=>c.handle);if(l.includes(a))return a;let d=o`Invalid API version: ${a}`.value,k=o`Allowed versions: ${l.join(", ")}`.value;throw new s(d,k)}t();t();var p="2026-01";t();async function E(e){let n;if(e.query!==void 0){if(!e.query.trim())throw new s("The --query flag value is empty. Please provide a valid GraphQL query or mutation.");n=e.query}else if(e.queryFile){if(!await A(e.queryFile))throw new s(o`Query file not found at ${m.path(e.queryFile)}. Please check the path and try again.`);let a=await T(e.queryFile,{encoding:"utf8"});if(!a.trim())throw new s(o`Query file at ${m.path(e.queryFile)} is empty. Please provide a valid GraphQL query or mutation.`);n=a}else throw new C("Query should have been provided via --query or --query-file flags due to exactlyOne constraint. This indicates the oclif flag validation failed.");return g(n),n}t();t();var R={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationRunQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationRunQuery"},arguments:[{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function Z(e){let{adminSession:n,query:a,version:i}=e;return(await u({query:R,session:n,variables:{query:a},...i&&{version:i}})).bulkOperationRunQuery}t();t();t();var L={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"StagedUploadsCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StagedUploadInput"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stagedUploadsCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stagedTargets"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"resourceUrl"}},{kind:"Field",name:{kind:"Name",value:"parameters"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function h(e){let{adminSession:n,variablesJsonl:a}=e,i=Buffer.from(a??"","utf-8"),r="bulk-variables.jsonl",l=i.length,d=await ee(n,r,l),k=ne(d);return await ie(i,k.url,k.parameters,r),k.stagedUploadKey}async function ee(e,n,a){return u({query:L,session:e,variables:{input:[{filename:n,fileSize:a.toString(),httpMethod:"POST",mimeType:"text/jsonl",resource:"BULK_MUTATION_VARIABLES"}]}})}function ne(e){if(!e.stagedUploadsCreate)throw new s("No response received from stagedUploadsCreate mutation");if(e.stagedUploadsCreate.userErrors.length>0){let i=e.stagedUploadsCreate.userErrors.map(r=>r.message).join(", ");throw new s(`Failed to create staged upload: ${i}`)}let n=e.stagedUploadsCreate.stagedTargets?.[0];if(!n)throw new s("No staged upload target returned from Shopify");if(!n.url||!n.resourceUrl)throw new s("Invalid staged upload target: missing required URLs");let a=n.parameters.find(i=>i.name==="key")?.value;if(!a)throw new s("No key parameter found in staged upload target");return{url:n.url,resourceUrl:n.resourceUrl,parameters:n.parameters,stagedUploadKey:a}}async function ie(e,n,a,i){let r=new FormData;for(let d of a)r.append(d.name,d.value);r.append("file",new Blob([new Uint8Array(e)],{type:"text/jsonl"}),i);let l=await N({title:o`Uploading bulk operation variables`,task:async()=>y(n,{method:"POST",body:r},"slow-request"),renderOptions:{stdout:process.stderr}});if(!l.ok){let d=await l.text();throw new s(`Failed to upload file to staged URL: ${l.statusText}
2
2
  ${d}`)}}t();var U={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationRunMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"mutation"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"stagedUploadPath"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"clientIdentifier"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationRunMutation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mutation"},value:{kind:"Variable",name:{kind:"Name",value:"mutation"}}},{kind:"Argument",name:{kind:"Name",value:"stagedUploadPath"},value:{kind:"Variable",name:{kind:"Name",value:"stagedUploadPath"}}},{kind:"Argument",name:{kind:"Name",value:"clientIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"clientIdentifier"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function ae(e){let{adminSession:n,query:a,variablesJsonl:i,version:r}=e,l=await h({adminSession:n,variablesJsonl:i});return(await u({query:U,session:n,variables:{mutation:a,stagedUploadPath:l},...r&&{version:r}})).bulkOperationRunMutation}t();t();var S={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetBulkOperationById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};t();var q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListBulkOperations"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortKey"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BulkOperationsSortKeys"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperations"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}},{kind:"Argument",name:{kind:"Name",value:"sortKey"},value:{kind:"Variable",name:{kind:"Name",value:"sortKey"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function te(e){let{adminSession:n,operationId:a,version:i}=e;return(await u({query:S,session:n,variables:{id:a},version:i??p})).bulkOperation}async function re(e){let{adminSession:n,version:a,sinceDays:i=7,first:r=100}=e,l=new Date(Date.now()-i*24*60*60*1e3).toISOString().split("T")[0];return(await u({query:q,session:n,variables:{query:`created_at:>=${l}`,first:r,sortKey:"CREATED_AT"},version:a??p})).bulkOperations.nodes}t();t();var P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationCancel"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationCancel"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"fileSize"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"query"}},{kind:"Field",name:{kind:"Name",value:"rootObjectCount"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function oe(e){let{adminSession:n,operationId:a,version:i}=e;return(await u({query:P,session:n,variables:{id:a},version:i??p})).bulkOperationCancel}t();t();function O(e){switch(e.status){case"RUNNING":return o`Bulk operation in progress${e.objectCount>0?m.gray(` (${String(e.objectCount)} objects ${e.type==="MUTATION"?"written":"read"})`):""}`;case"CREATED":return o`Starting`;case"COMPLETED":return o`Bulk operation succeeded: ${m.gray(`${String(e.objectCount)} objects`)}`;case"FAILED":return o`Bulk operation failed. ${m.errorText(`Error: ${e.errorCode??"unknown"}`)}`;case"CANCELING":return o`Bulk operation canceling...`;case"CANCELED":return o`Bulk operation canceled.`;case"EXPIRED":return o`Bulk operation expired.`;default:return o`Bulk operation status: ${e.status}`}}function le(e,n){let a=e.map(i=>o`${i.field?.join(".")??"unknown"}: ${i.message}`.value).join(`
3
3
  `);_({headline:n,body:a})}function de(e){let n=O(e).value;switch(e.status){case"CANCELING":return{headline:"Bulk operation is being cancelled.",renderType:"success"};case"CANCELED":case"COMPLETED":case"FAILED":{let a=[o`ID: ${m.cyan(e.id)}`.value,o`Status: ${m.yellow(e.status)}`.value,o`Created at: ${m.gray(String(e.createdAt))}`.value,...e.completedAt?[o`Completed at: ${m.gray(String(e.completedAt))}`.value]:[]];return{headline:o`Bulk operation is already ${e.status.toLowerCase()}.`.value,body:o`This operation has already finished and can't be canceled.`.value,customSections:[{body:[{list:{items:a}}]}],renderType:"warning"}}case"CREATED":case"EXPIRED":case"RUNNING":return{headline:n,renderType:"info"}}}var se=["COMPLETED","FAILED","CANCELED","EXPIRED"],V=1,ue=5,M=10,$=3e3,Q=300;async function me(e,n){return N({title:o`Starting bulk operation`,task:async()=>{let a=Date.now(),i=j({adminSession:e,operationId:n,pollIntervalSeconds:Q/1e3,useAdaptivePolling:!1}),r;do{let{value:l,done:d}=await i.next();if(r=l,d)return r}while(Date.now()-a<$);return r},renderOptions:{stdout:process.stderr}})}async function ke(e,n,a,i){return N({title:o`Polling bulk operation`,task:async r=>{let l=j({adminSession:e,operationId:n,pollIntervalSeconds:ue,initialPollIntervalSeconds:V,initialPollCount:M,useAdaptivePolling:!0,abortSignal:a});for(;;){let{value:d,done:k}=await l.next();if(k)return d;r(O(d))}},onAbort:i,renderOptions:{stdout:process.stderr}})}async function*j({adminSession:e,operationId:n,pollIntervalSeconds:a,useAdaptivePolling:i=!1,initialPollIntervalSeconds:r=V,initialPollCount:l=M,abortSignal:d}){let k=0;for(;;){let c=await pe(e,n);if(!c.bulkOperation)throw new Error("bulk operation not found");let f=c.bulkOperation;if(se.includes(f.status)||d?.aborted)return f;yield f,k++;let v=a;if(i&&k<=l&&(v=r),d){let w,K=new Promise(G=>{let I=()=>G();d.addEventListener("abort",I,{once:!0}),w=()=>d.removeEventListener("abort",I)});await Promise.race([F(v),K]),w?.()}else await F(v)}}async function pe(e,n){return u({query:S,session:e,variables:{id:n},version:p})}t();async function ce(e){let n=await y(e);if(!n.ok)throw new s(`Failed to download bulk operation results: ${n.statusText}`);return n.text()}function ve(e){return e.trim().split(`
4
4
  `).filter(a=>a.trim().length>0).some(a=>{let i;try{i=JSON.parse(a)}catch(l){if(l instanceof SyntaxError)return!1;throw l}if(Array.isArray(i.errors)&&i.errors.length>0)return!0;if(!i.data)return!1;let r=Object.values(i.data)[0];return r?.userErrors!==void 0&&r.userErrors.length>0})}t();async function fe(e){let n=await D({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),a=await x({appContextResult:n,storeFqdn:e.store,forceReselectStore:e.reset,storeTypes:["APP_DEVELOPMENT","DEVELOPMENT","DEVELOPMENT_SUPERSET","PRODUCTION"]});return{appContextResult:n,store:a}}async function Jn(e){let n=await E({query:e.query,queryFile:e["query-file"]}),{appContextResult:a,store:i}=await fe(e);return{query:n,appContextResult:a,store:i}}export{p as a,H as b,J as c,g as d,X as e,Y as f,E as g,Z as h,ae as i,te as j,re as k,oe as l,O as m,le as n,de as o,me as p,ke as q,ce as r,ve as s,fe as t,Jn as u};
@@ -0,0 +1 @@
1
+ import{c as b}from"./chunk-CZYQIWNL.js";import{e as f,g as h,h as g,s as y}from"./chunk-6B5KM3A4.js";import{a as m}from"./chunk-R5COVIJM.js";import{P as u}from"./chunk-7FBOMPO5.js";import{c as l}from"./chunk-IKXUYCK7.js";import{j as d}from"./chunk-FJOVMEPN.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();var s=class extends Error{operationId;constructor(t){super(`Migration cancellation for ${t} returned neither an operation nor user errors`),this.name="MigrationCancellationProtocolError",this.operationId=t}};async function w({clientId:e,operationIds:t,cancelOperation:a=y}){let r=t.filter(i=>!h.safeParse(i).success);if(r.length>0)throw new d(`Invalid subscription migration operation IDs: ${r.join(", ")}.`,"Use Shopify AppSubscriptionMigrationOperation GIDs returned by a migration submission.");return{outcomes:await Promise.all(t.map(async i=>{try{let o=await a({clientId:e,operationId:i});if(o.userErrors.length>0)return{status:"failed",operationId:i,operation:o.operation,userErrors:o.userErrors};if(!o.operation)throw new s(i);return{status:"success",operationId:i,operation:o.operation}}catch(o){if(t.length===1)throw o;return{status:"failed",operationId:i,operation:null,error:o}}}))}}var p=class e extends m{static summary="Cancels app subscription migration operations.";static descriptionWithMarkdown="Cancels app subscription migration operations.\n\nCanceling stops additional unprocessed shops, but does not undo shops that have already been scheduled or migrated. Use `unschedule` for reversible schedules.\n\nRepeat `--id` to cancel every operation GID returned by a multi-batch submission. Use `--json` to output the resulting operation states and per-shop results as structured JSON.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.";static jsonOutputSchema=g;static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %> --id <operation-id>","<%= config.bin %> <%= command.id %> --path ../my-app --config staging --id <operation-id-1> --id <operation-id-2>","<%= config.bin %> <%= command.id %> --client-id <client-id> --id <operation-id> --json"];static flags={...f,...l};async run(){let{flags:t}=await this.parse(e),{app:a,remoteApp:r}=await u({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),c=await w({clientId:r.apiKey,operationIds:t.id}),i=b(c,{json:t.json});return i!==0&&(process.exitCode=i),{app:a}}};export{p as a};
@@ -0,0 +1,5 @@
1
+ import{j as _}from"./chunk-FJOVMEPN.js";import{Eb as u,Fb as E,Y as y,ca as O,gb as d}from"./chunk-OIQ5NQ5I.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();a();var f=class{export;input;inputBytes;output;outputBytes;logs;functionId;fuelConsumed;target;errorMessage;errorType;inputQueryVariablesMetafieldValue;inputQueryVariablesMetafieldNamespace;inputQueryVariablesMetafieldKey;constructor({export:t,input:r,inputBytes:s,output:n,outputBytes:o,logs:i,functionId:l,fuelConsumed:c,target:m,errorMessage:T,errorType:h,inputQueryVariablesMetafieldValue:S,inputQueryVariablesMetafieldNamespace:A,inputQueryVariablesMetafieldKey:g}){this.export=t,this.input=r,this.inputBytes=s,this.output=n,this.outputBytes=o,this.logs=i,this.functionId=l,this.fuelConsumed=c,this.target=m,this.errorMessage=T,this.errorType=h,this.inputQueryVariablesMetafieldValue=S,this.inputQueryVariablesMetafieldNamespace=A,this.inputQueryVariablesMetafieldKey=g}};a();function b(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&Object.getPrototypeOf(e)===Object.prototype}function I(e,t){return t?.deep&&b(e)||t?.deep&&Array.isArray(e)?p(e,t):e}function p(e,t){if(Array.isArray(e))return e.map(r=>t?.deep?p(r,t):r);if(b(e)){let r={};for(let[s,n]of Object.entries(e))r[y(s)]=I(n,t);return r}return e}var R=450,x=5*1e3,N=60*1e3,K=5,F=1e6,D="function_run",$="function_network_access",j="function_network_access.response_from_cache",Y="function_network_access.request_execution_in_background",X="function_network_access.request_execution",H="no_cached_response",W="cached_response_about_to_expire",q=async e=>{let{errors:t}=e.response,r=R,s=null,n="not_attempted";if(t.length>0)if(u(`Errors: ${t.map(o=>o.message).join(", ")}`),t.some(o=>o.status===401))try{s=await e.onResubscribe(),n="succeeded"}catch(o){u(`Failed to resubscribe to app logs: ${o}`),r=N,n="failed",e.onThrottle(r)}else t.some(o=>o.status===429)?(r=N,e.onThrottle(r)):(r=x,e.onUnknownError(r));return{retryIntervalMs:r,nextJwtToken:s,resubscribeResult:n}},z=({appLog:e,appLogPayload:t,storeName:r,prettyPrint:s=!0})=>{let{cursor:n,...o}=e,i=p({...o,payload:t,localTime:O(e.log_timestamp),storeName:r});return t instanceof f&&(i.payload.logs=t.logs.split(`
2
+ `).filter(Boolean),i.payload.inputQueryVariablesMetafieldValue&&(i.payload.inputQueryVariablesMetafieldValue=C(i.payload.inputQueryVariablesMetafieldValue))),s?JSON.stringify(i,null,2):JSON.stringify(i)},Z=async(e,t,r,s)=>{let n=await e.subscribeToAppLogs(t,r);if(!n.appLogsSubscribe)throw new _("Failed to subscribe to app logs: No response received");let{jwtToken:o,success:i,errors:l}=n.appLogsSubscribe;if(u(`Token: ${o}
3
+ `),u(`API Key: ${t.apiKey}
4
+ `),l&&l.length>0){let c=l.join(", ");throw await d({stripAnsi:!1},()=>{E(`Errors subscribing to app logs: ${c}`,s),E("App log streaming is not available in this session.",s)}),new _(c)}else{if(!o)throw new _("Failed to subscribe to app logs: No response received");let c=Array.isArray(t.shopIds)?t.shopIds:[t.shopIds];u(`Subscribed to App Events for shop ID(s) ${c.join(", ")}`),i!==void 0&&u(`Success: ${i}
5
+ `)}return o};function v(e){try{if(typeof e=="string"){let t=JSON.parse(e);return JSON.stringify(t,null,2)}else return typeof e=="object"&&e!==null?JSON.stringify(e,null,2):void 0}catch(t){throw new Error(`Error parsing JSON: ${t}`)}}var C=e=>{try{return JSON.parse(e)}catch{return e}};a();a();export{f as a,p as b,R as c,x as d,K as e,F as f,D as g,$ as h,j as i,Y as j,X as k,H as l,W as m,q as n,z as o,Z as p,v as q};
@@ -1 +1 @@
1
- import{c as p,g as o}from"./chunk-VKWPEFWQ.js";var g=p((hi,he)=>{"use strict";o();var nt="2.0.0",it=Number.MAX_SAFE_INTEGER||9007199254740991,ot=16,ct=250,lt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];he.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:ot,MAX_SAFE_BUILD_LENGTH:ct,MAX_SAFE_INTEGER:it,RELEASE_TYPES:lt,SEMVER_SPEC_VERSION:nt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var v=p((Ri,pe)=>{"use strict";o();var at=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};pe.exports=at});var P=p((q,Re)=>{"use strict";o();var{MAX_SAFE_COMPONENT_LENGTH:M,MAX_SAFE_BUILD_LENGTH:ut,MAX_LENGTH:ft}=g(),Et=v();q=Re.exports={};var ht=q.re=[],pt=q.safeRe=[],l=q.src=[],Rt=q.safeSrc=[],a=q.t={},$t=0,W="[a-zA-Z0-9-]",mt=[["\\s",1],["\\d",ft],[W,ut]],It=t=>{for(let[e,r]of mt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},R=(t,e,r)=>{let s=It(e),n=$t++;Et(t,n,e),a[t]=n,l[n]=e,Rt[n]=s,ht[n]=new RegExp(e,r?"g":void 0),pt[n]=new RegExp(s,r?"g":void 0)};R("NUMERICIDENTIFIER","0|[1-9]\\d*");R("NUMERICIDENTIFIERLOOSE","\\d+");R("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${W}*`);R("MAINVERSION",`(${l[a.NUMERICIDENTIFIER]})\\.(${l[a.NUMERICIDENTIFIER]})\\.(${l[a.NUMERICIDENTIFIER]})`);R("MAINVERSIONLOOSE",`(${l[a.NUMERICIDENTIFIERLOOSE]})\\.(${l[a.NUMERICIDENTIFIERLOOSE]})\\.(${l[a.NUMERICIDENTIFIERLOOSE]})`);R("PRERELEASEIDENTIFIER",`(?:${l[a.NONNUMERICIDENTIFIER]}|${l[a.NUMERICIDENTIFIER]})`);R("PRERELEASEIDENTIFIERLOOSE",`(?:${l[a.NONNUMERICIDENTIFIER]}|${l[a.NUMERICIDENTIFIERLOOSE]})`);R("PRERELEASE",`(?:-(${l[a.PRERELEASEIDENTIFIER]}(?:\\.${l[a.PRERELEASEIDENTIFIER]})*))`);R("PRERELEASELOOSE",`(?:-?(${l[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[a.PRERELEASEIDENTIFIERLOOSE]})*))`);R("BUILDIDENTIFIER",`${W}+`);R("BUILD",`(?:\\+(${l[a.BUILDIDENTIFIER]}(?:\\.${l[a.BUILDIDENTIFIER]})*))`);R("FULLPLAIN",`v?${l[a.MAINVERSION]}${l[a.PRERELEASE]}?${l[a.BUILD]}?`);R("FULL",`^${l[a.FULLPLAIN]}$`);R("LOOSEPLAIN",`[v=\\s]*${l[a.MAINVERSIONLOOSE]}${l[a.PRERELEASELOOSE]}?${l[a.BUILD]}?`);R("LOOSE",`^${l[a.LOOSEPLAIN]}$`);R("GTLT","((?:<|>)?=?)");R("XRANGEIDENTIFIERLOOSE",`${l[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);R("XRANGEIDENTIFIER",`${l[a.NUMERICIDENTIFIER]}|x|X|\\*`);R("XRANGEPLAIN",`[v=\\s]*(${l[a.XRANGEIDENTIFIER]})(?:\\.(${l[a.XRANGEIDENTIFIER]})(?:\\.(${l[a.XRANGEIDENTIFIER]})(?:${l[a.PRERELEASE]})?${l[a.BUILD]}?)?)?`);R("XRANGEPLAINLOOSE",`[v=\\s]*(${l[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[a.XRANGEIDENTIFIERLOOSE]})(?:${l[a.PRERELEASELOOSE]})?${l[a.BUILD]}?)?)?`);R("XRANGE",`^${l[a.GTLT]}\\s*${l[a.XRANGEPLAIN]}$`);R("XRANGELOOSE",`^${l[a.GTLT]}\\s*${l[a.XRANGEPLAINLOOSE]}$`);R("COERCEPLAIN",`(^|[^\\d])(\\d{1,${M}})(?:\\.(\\d{1,${M}}))?(?:\\.(\\d{1,${M}}))?`);R("COERCE",`${l[a.COERCEPLAIN]}(?:$|[^\\d])`);R("COERCEFULL",l[a.COERCEPLAIN]+`(?:${l[a.PRERELEASE]})?(?:${l[a.BUILD]})?(?:$|[^\\d])`);R("COERCERTL",l[a.COERCE],!0);R("COERCERTLFULL",l[a.COERCEFULL],!0);R("LONETILDE","(?:~>?)");R("TILDETRIM",`(\\s*)${l[a.LONETILDE]}\\s+`,!0);q.tildeTrimReplace="$1~";R("TILDE",`^${l[a.LONETILDE]}${l[a.XRANGEPLAIN]}$`);R("TILDELOOSE",`^${l[a.LONETILDE]}${l[a.XRANGEPLAINLOOSE]}$`);R("LONECARET","(?:\\^)");R("CARETTRIM",`(\\s*)${l[a.LONECARET]}\\s+`,!0);q.caretTrimReplace="$1^";R("CARET",`^${l[a.LONECARET]}${l[a.XRANGEPLAIN]}$`);R("CARETLOOSE",`^${l[a.LONECARET]}${l[a.XRANGEPLAINLOOSE]}$`);R("COMPARATORLOOSE",`^${l[a.GTLT]}\\s*(${l[a.LOOSEPLAIN]})$|^$`);R("COMPARATOR",`^${l[a.GTLT]}\\s*(${l[a.FULLPLAIN]})$|^$`);R("COMPARATORTRIM",`(\\s*)${l[a.GTLT]}\\s*(${l[a.LOOSEPLAIN]}|${l[a.XRANGEPLAIN]})`,!0);q.comparatorTrimReplace="$1$2$3";R("HYPHENRANGE",`^\\s*(${l[a.XRANGEPLAIN]})\\s+-\\s+(${l[a.XRANGEPLAIN]})\\s*$`);R("HYPHENRANGELOOSE",`^\\s*(${l[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[a.XRANGEPLAINLOOSE]})\\s*$`);R("STAR","(<|>)?=?\\s*\\*");R("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");R("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var y=p((Ii,$e)=>{"use strict";o();var Lt=Object.freeze({loose:!0}),Nt=Object.freeze({}),Ot=t=>t?typeof t!="object"?Lt:t:Nt;$e.exports=Ot});var z=p((Ni,Le)=>{"use strict";o();var me=/^[0-9]+$/,Ie=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=me.test(t),s=me.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},dt=(t,e)=>Ie(e,t);Le.exports={compareIdentifiers:Ie,rcompareIdentifiers:dt}});var O=p((di,Oe)=>{"use strict";o();var F=v(),{MAX_LENGTH:Ne,MAX_SAFE_INTEGER:j}=g(),{safeRe:U,t:X}=P(),St=y(),{compareIdentifiers:K}=z(),Tt=(t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let s=0;s<r.length;s++)if(K(t[s],r[s])!==0)return!1;return!0},Z=class t{constructor(e,r){if(r=St(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Ne)throw new TypeError(`version is longer than ${Ne} characters`);F("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let s=e.trim().match(r.loose?U[X.LOOSE]:U[X.FULL]);if(!s)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>j||this.major<0)throw new TypeError("Invalid major version");if(this.minor>j||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>j||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let i=+n;if(i>=0&&i<j)return i}return n}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(F("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let s=this.prerelease[r],n=e.prerelease[r];if(F("prerelease compare",r,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return K(s,n)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let s=this.build[r],n=e.build[r];if(F("build compare",r,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return K(s,n)}while(++r)}inc(e,r,s){if(e.startsWith("pre")){if(!r&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let n=`-${r}`.match(this.options.loose?U[X.PRERELEASELOOSE]:U[X.PRERELEASE]);if(!n||n[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,s),this.inc("pre",r,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,s),this.inc("pre",r,s);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let n=Number(s)?1:0;if(this.prerelease.length===0)this.prerelease=[n];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(r){let i=[r,n];if(s===!1&&(i=[r]),Tt(this.prerelease,r)){let c=this.prerelease[r.split(".").length];isNaN(c)&&(this.prerelease=i)}else this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Oe.exports=Z});var w=p((Ti,Se)=>{"use strict";o();var de=O(),At=(t,e,r=!1)=>{if(t instanceof de)return t;try{return new de(t,e)}catch(s){if(!r)return null;throw s}};Se.exports=At});var Ae=p((qi,Te)=>{"use strict";o();var qt=w(),wt=(t,e)=>{let r=qt(t,e);return r?r.version:null};Te.exports=wt});var we=p((gi,qe)=>{"use strict";o();var gt=w(),Pt=(t,e)=>{let r=gt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};qe.exports=Pt});var ve=p((vi,Pe)=>{"use strict";o();var ge=O(),vt=(t,e,r,s,n)=>{typeof r=="string"&&(n=s,s=r,r=void 0);try{return new ge(t instanceof ge?t.version:t,r).inc(e,s,n).version}catch{return null}};Pe.exports=vt});var De=p((Ci,Ce)=>{"use strict";o();var xe=w(),xt=(t,e)=>{let r=xe(t,null,!0),s=xe(e,null,!0),n=r.compare(s);if(n===0)return null;let i=n>0,c=i?r:s,u=i?s:r,f=!!c.prerelease.length;if(!!u.prerelease.length&&!f){if(!u.patch&&!u.minor)return"major";if(u.compareMain(c)===0)return u.minor&&!u.patch?"minor":"patch"}let m=f?"pre":"";return r.major!==s.major?m+"major":r.minor!==s.minor?m+"minor":r.patch!==s.patch?m+"patch":"prerelease"};Ce.exports=xt});var ye=p((Gi,Ge)=>{"use strict";o();var Ct=O(),Dt=(t,e)=>new Ct(t,e).major;Ge.exports=Dt});var je=p((Fi,Fe)=>{"use strict";o();var Gt=O(),yt=(t,e)=>new Gt(t,e).minor;Fe.exports=yt});var Xe=p((Ui,Ue)=>{"use strict";o();var Ft=O(),jt=(t,e)=>new Ft(t,e).patch;Ue.exports=jt});var _e=p((Vi,Ve)=>{"use strict";o();var Ut=w(),Xt=(t,e)=>{let r=Ut(t,e);return r&&r.prerelease.length?r.prerelease:null};Ve.exports=Xt});var T=p((bi,He)=>{"use strict";o();var be=O(),Vt=(t,e,r)=>new be(t,r).compare(new be(e,r));He.exports=Vt});var Be=p((ki,ke)=>{"use strict";o();var _t=T(),bt=(t,e,r)=>_t(e,t,r);ke.exports=bt});var Me=p((Yi,Ye)=>{"use strict";o();var Ht=T(),kt=(t,e)=>Ht(t,e,!0);Ye.exports=kt});var V=p((Wi,ze)=>{"use strict";o();var We=O(),Bt=(t,e,r)=>{let s=new We(t,r),n=new We(e,r);return s.compare(n)||s.compareBuild(n)};ze.exports=Bt});var Ze=p((Ki,Ke)=>{"use strict";o();var Yt=V(),Mt=(t,e)=>t.sort((r,s)=>Yt(r,s,e));Ke.exports=Mt});var Qe=p((Ji,Je)=>{"use strict";o();var Wt=V(),zt=(t,e)=>t.sort((r,s)=>Wt(s,r,e));Je.exports=zt});var x=p((eo,er)=>{"use strict";o();var Kt=T(),Zt=(t,e,r)=>Kt(t,e,r)>0;er.exports=Zt});var _=p((to,rr)=>{"use strict";o();var Jt=T(),Qt=(t,e,r)=>Jt(t,e,r)<0;rr.exports=Qt});var J=p((no,tr)=>{"use strict";o();var es=T(),rs=(t,e,r)=>es(t,e,r)===0;tr.exports=rs});var Q=p((oo,sr)=>{"use strict";o();var ts=T(),ss=(t,e,r)=>ts(t,e,r)!==0;sr.exports=ss});var b=p((lo,nr)=>{"use strict";o();var ns=T(),is=(t,e,r)=>ns(t,e,r)>=0;nr.exports=is});var H=p((uo,ir)=>{"use strict";o();var os=T(),cs=(t,e,r)=>os(t,e,r)<=0;ir.exports=cs});var ee=p((Eo,or)=>{"use strict";o();var ls=J(),as=Q(),us=x(),fs=b(),Es=_(),hs=H(),ps=(t,e,r,s)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return ls(t,r,s);case"!=":return as(t,r,s);case">":return us(t,r,s);case">=":return fs(t,r,s);case"<":return Es(t,r,s);case"<=":return hs(t,r,s);default:throw new TypeError(`Invalid operator: ${e}`)}};or.exports=ps});var lr=p((po,cr)=>{"use strict";o();var Rs=O(),$s=w(),{safeRe:k,t:B}=P(),ms=(t,e)=>{if(t instanceof Rs)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?k[B.COERCEFULL]:k[B.COERCE]);else{let f=e.includePrerelease?k[B.COERCERTLFULL]:k[B.COERCERTL],$;for(;($=f.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||$.index+$[0].length!==r.index+r[0].length)&&(r=$),f.lastIndex=$.index+$[1].length+$[2].length;f.lastIndex=-1}if(r===null)return null;let s=r[2],n=r[3]||"0",i=r[4]||"0",c=e.includePrerelease&&r[5]?`-${r[5]}`:"",u=e.includePrerelease&&r[6]?`+${r[6]}`:"";return $s(`${s}.${n}.${i}${c}${u}`,e)};cr.exports=ms});var ur=p(($o,ar)=>{"use strict";o();var Is=w(),Ls=g(),Ns=O(),Os=(t,e,r)=>{if(!Ls.RELEASE_TYPES.includes(e))return null;let s=ds(t,r);return s&&Ss(s,e)},ds=(t,e)=>{let r=t instanceof Ns?t.version:t;return Is(r,e)},Ss=(t,e)=>{if(Ts(e))return t.version;switch(t.prerelease=[],e){case"major":t.minor=0,t.patch=0;break;case"minor":t.patch=0;break}return t.format()},Ts=t=>t.startsWith("pre");ar.exports=Os});var Er=p((Io,fr)=>{"use strict";o();var re=class{constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let n=this.map.keys().next().value;this.delete(n)}this.map.set(e,r)}return this}};fr.exports=re});var A=p((No,$r)=>{"use strict";o();var As=/\s+/g,te=class t{constructor(e,r){if(r=ws(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof se)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(As," "),this.set=this.raw.split("||").map(s=>this.parseRange(s.trim())).filter(s=>s.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let s=this.set[0];if(this.set=this.set.filter(n=>!pr(n[0])),this.set.length===0)this.set=[s];else if(this.set.length>1){for(let n of this.set)if(n.length===1&&Fs(n[0])){this.set=[n];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let s=0;s<r.length;s++)s>0&&(this.formatted+=" "),this.formatted+=r[s].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(ys,"");let s=((this.options.includePrerelease&&Ds)|(this.options.loose&&Gs))+":"+e,n=hr.get(s);if(n)return n;let i=this.options.loose,c=i?S[d.HYPHENRANGELOOSE]:S[d.HYPHENRANGE];e=e.replace(c,Ms(this.options.includePrerelease)),I("hyphen replace",e),e=e.replace(S[d.COMPARATORTRIM],vs),I("comparator trim",e),e=e.replace(S[d.TILDETRIM],xs),I("tilde trim",e),e=e.replace(S[d.CARETTRIM],Cs),I("caret trim",e);let u=e.split(" ").map(E=>js(E,this.options)).join(" ").split(/\s+/).map(E=>Ys(E,this.options));i&&(u=u.filter(E=>(I("loose invalid filter",E,this.options),!!E.match(S[d.COMPARATORLOOSE])))),I("range list",u);let f=new Map,$=u.map(E=>new se(E,this.options));for(let E of $){if(pr(E))return[E];f.set(E.value,E)}f.size>1&&f.has("")&&f.delete("");let m=[...f.values()];return hr.set(s,m),m}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(s=>Rr(s,r)&&e.set.some(n=>Rr(n,r)&&s.every(i=>n.every(c=>i.intersects(c,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new gs(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Ws(this.set[r],e,this.options))return!0;return!1}};$r.exports=te;var qs=Er(),hr=new qs,ws=y(),se=C(),I=v(),gs=O(),{safeRe:S,src:Ps,t:d,comparatorTrimReplace:vs,tildeTrimReplace:xs,caretTrimReplace:Cs}=P(),{FLAG_INCLUDE_PRERELEASE:Ds,FLAG_LOOSE:Gs}=g(),ys=new RegExp(Ps[d.BUILD],"g"),pr=t=>t.value==="<0.0.0-0",Fs=t=>t.value==="",Rr=(t,e)=>{let r=!0,s=t.slice(),n=s.pop();for(;r&&s.length;)r=s.every(i=>n.intersects(i,e)),n=s.pop();return r},js=(t,e)=>(t=t.replace(S[d.BUILD],""),I("comp",t,e),t=_s(t,e),I("caret",t),t=Xs(t,e),I("tildes",t),t=Hs(t,e),I("xrange",t),t=Bs(t,e),I("stars",t),t),N=t=>!t||t.toLowerCase()==="x"||t==="*",Us=(t,e,r)=>N(t)&&!N(e)||N(e)&&r&&!N(r),Xs=(t,e)=>t.trim().split(/\s+/).map(r=>Vs(r,e)).join(" "),Vs=(t,e)=>{let r=e.loose?S[d.TILDELOOSE]:S[d.TILDE];return t.replace(r,(s,n,i,c,u)=>{I("tilde",t,s,n,i,c,u);let f;return N(n)?f="":N(i)?f=`>=${n}.0.0 <${+n+1}.0.0-0`:N(c)?f=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`:u?(I("replaceTilde pr",u),f=`>=${n}.${i}.${c}-${u} <${n}.${+i+1}.0-0`):f=`>=${n}.${i}.${c} <${n}.${+i+1}.0-0`,I("tilde return",f),f})},_s=(t,e)=>t.trim().split(/\s+/).map(r=>bs(r,e)).join(" "),bs=(t,e)=>{I("caret",t,e);let r=e.loose?S[d.CARETLOOSE]:S[d.CARET],s=e.includePrerelease?"-0":"";return t.replace(r,(n,i,c,u,f)=>{I("caret",t,n,i,c,u,f);let $;return N(i)?$="":N(c)?$=`>=${i}.0.0${s} <${+i+1}.0.0-0`:N(u)?i==="0"?$=`>=${i}.${c}.0${s} <${i}.${+c+1}.0-0`:$=`>=${i}.${c}.0${s} <${+i+1}.0.0-0`:f?(I("replaceCaret pr",f),i==="0"?c==="0"?$=`>=${i}.${c}.${u}-${f} <${i}.${c}.${+u+1}-0`:$=`>=${i}.${c}.${u}-${f} <${i}.${+c+1}.0-0`:$=`>=${i}.${c}.${u}-${f} <${+i+1}.0.0-0`):(I("no pr"),i==="0"?c==="0"?$=`>=${i}.${c}.${u} <${i}.${c}.${+u+1}-0`:$=`>=${i}.${c}.${u} <${i}.${+c+1}.0-0`:$=`>=${i}.${c}.${u} <${+i+1}.0.0-0`),I("caret return",$),$})},Hs=(t,e)=>(I("replaceXRanges",t,e),t.split(/\s+/).map(r=>ks(r,e)).join(" ")),ks=(t,e)=>{t=t.trim();let r=e.loose?S[d.XRANGELOOSE]:S[d.XRANGE];return t.replace(r,(s,n,i,c,u,f)=>{if(I("xRange",t,s,n,i,c,u,f),Us(i,c,u))return t;let $=N(i),m=$||N(c),E=m||N(u),L=E;return n==="="&&L&&(n=""),f=e.includePrerelease?"-0":"",$?n===">"||n==="<"?s="<0.0.0-0":s="*":n&&L?(m&&(c=0),u=0,n===">"?(n=">=",m?(i=+i+1,c=0,u=0):(c=+c+1,u=0)):n==="<="&&(n="<",m?i=+i+1:c=+c+1),n==="<"&&(f="-0"),s=`${n+i}.${c}.${u}${f}`):m?s=`>=${i}.0.0${f} <${+i+1}.0.0-0`:E&&(s=`>=${i}.${c}.0${f} <${i}.${+c+1}.0-0`),I("xRange return",s),s})},Bs=(t,e)=>(I("replaceStars",t,e),t.trim().replace(S[d.STAR],"")),Ys=(t,e)=>(I("replaceGTE0",t,e),t.trim().replace(S[e.includePrerelease?d.GTE0PRE:d.GTE0],"")),Ms=t=>(e,r,s,n,i,c,u,f,$,m,E,L)=>(N(s)?r="":N(n)?r=`>=${s}.0.0${t?"-0":""}`:N(i)?r=`>=${s}.${n}.0${t?"-0":""}`:c?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,N($)?f="":N(m)?f=`<${+$+1}.0.0-0`:N(E)?f=`<${$}.${+m+1}.0-0`:L?f=`<=${$}.${m}.${E}-${L}`:t?f=`<${$}.${m}.${+E+1}-0`:f=`<=${f}`,`${r} ${f}`.trim()),Ws=(t,e,r)=>{for(let s=0;s<t.length;s++)if(!t[s].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let s=0;s<t.length;s++)if(I(t[s].semver),t[s].semver!==se.ANY&&t[s].semver.prerelease.length>0){let n=t[s].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}});var C=p((So,dr)=>{"use strict";o();var D=Symbol("SemVer ANY"),oe=class t{static get ANY(){return D}constructor(e,r){if(r=mr(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),ie("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===D?this.value="":this.value=this.operator+this.semver.version,ie("comp",this)}parse(e){let r=this.options.loose?Ir[Lr.COMPARATORLOOSE]:Ir[Lr.COMPARATOR],s=e.match(r);if(!s)throw new TypeError(`Invalid comparator: ${e}`);this.operator=s[1]!==void 0?s[1]:"",this.operator==="="&&(this.operator=""),s[2]?this.semver=new Nr(s[2],this.options.loose):this.semver=D}toString(){return this.value}test(e){if(ie("Comparator.test",e,this.options.loose),this.semver===D||e===D)return!0;if(typeof e=="string")try{e=new Nr(e,this.options)}catch{return!1}return ne(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Or(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Or(this.value,r).test(e.semver):(r=mr(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||ne(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||ne(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};dr.exports=oe;var mr=y(),{safeRe:Ir,t:Lr}=P(),ne=ee(),ie=v(),Nr=O(),Or=A()});var G=p((Ao,Sr)=>{"use strict";o();var zs=A(),Ks=(t,e,r)=>{try{e=new zs(e,r)}catch{return!1}return e.test(t)};Sr.exports=Ks});var Ar=p((wo,Tr)=>{"use strict";o();var Zs=A(),Js=(t,e)=>new Zs(t,e).set.map(r=>r.map(s=>s.value).join(" ").trim().split(" "));Tr.exports=Js});var wr=p((Po,qr)=>{"use strict";o();var Qs=O(),en=A(),rn=(t,e,r)=>{let s=null,n=null,i=null;try{i=new en(e,r)}catch{return null}return t.forEach(c=>{i.test(c)&&(!s||n.compare(c)===-1)&&(s=c,n=new Qs(s,r))}),s};qr.exports=rn});var Pr=p((xo,gr)=>{"use strict";o();var tn=O(),sn=A(),nn=(t,e,r)=>{let s=null,n=null,i=null;try{i=new sn(e,r)}catch{return null}return t.forEach(c=>{i.test(c)&&(!s||n.compare(c)===1)&&(s=c,n=new tn(s,r))}),s};gr.exports=nn});var Cr=p((Do,xr)=>{"use strict";o();var ce=O(),on=A(),vr=x(),cn=(t,e)=>{t=new on(t,e);let r=new ce("0.0.0");if(t.test(r)||(r=new ce("0.0.0-0"),t.test(r)))return r;r=null;for(let s=0;s<t.set.length;++s){let n=t.set[s],i=null;n.forEach(c=>{let u=new ce(c.semver.version);switch(c.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!i||vr(u,i))&&(i=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),i&&(!r||vr(r,i))&&(r=i)}return r&&t.test(r)?r:null};xr.exports=cn});var Gr=p((yo,Dr)=>{"use strict";o();var ln=A(),an=(t,e)=>{try{return new ln(t,e).range||"*"}catch{return null}};Dr.exports=an});var Y=p((jo,Ur)=>{"use strict";o();var un=O(),jr=C(),{ANY:fn}=jr,En=A(),hn=G(),yr=x(),Fr=_(),pn=H(),Rn=b(),$n=(t,e,r,s)=>{t=new un(t,s),e=new En(e,s);let n,i,c,u,f;switch(r){case">":n=yr,i=pn,c=Fr,u=">",f=">=";break;case"<":n=Fr,i=Rn,c=yr,u="<",f="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(hn(t,e,s))return!1;for(let $=0;$<e.set.length;++$){let m=e.set[$],E=null,L=null;if(m.forEach(h=>{h.semver===fn&&(h=new jr(">=0.0.0")),E=E||h,L=L||h,n(h.semver,E.semver,s)?E=h:c(h.semver,L.semver,s)&&(L=h)}),E.operator===u||E.operator===f||(!L.operator||L.operator===u)&&i(t,L.semver))return!1;if(L.operator===f&&c(t,L.semver))return!1}return!0};Ur.exports=$n});var Vr=p((Xo,Xr)=>{"use strict";o();var mn=Y(),In=(t,e,r)=>mn(t,e,">",r);Xr.exports=In});var br=p((_o,_r)=>{"use strict";o();var Ln=Y(),Nn=(t,e,r)=>Ln(t,e,"<",r);_r.exports=Nn});var Br=p((Ho,kr)=>{"use strict";o();var Hr=A(),On=(t,e,r)=>(t=new Hr(t,r),e=new Hr(e,r),t.intersects(e,r));kr.exports=On});var Mr=p((Bo,Yr)=>{"use strict";o();var dn=G(),Sn=T();Yr.exports=(t,e,r)=>{let s=[],n=null,i=null,c=t.sort((m,E)=>Sn(m,E,r));for(let m of c)dn(m,e,r)?(i=m,n||(n=m)):(i&&s.push([n,i]),i=null,n=null);n&&s.push([n,null]);let u=[];for(let[m,E]of s)m===E?u.push(m):!E&&m===c[0]?u.push("*"):E?m===c[0]?u.push(`<=${E}`):u.push(`${m} - ${E}`):u.push(`>=${m}`);let f=u.join(" || "),$=typeof e.raw=="string"?e.raw:String(e);return f.length<$.length?f:e}});var Qr=p((Mo,Jr)=>{"use strict";o();var Wr=A(),ue=C(),{ANY:le}=ue,ae=G(),fe=T(),Tn=(t,e,r={})=>{if(t===e)return!0;t=new Wr(t,r),e=new Wr(e,r);let s=!1;e:for(let n of t.set){for(let i of e.set){let c=qn(n,i,r);if(s=s||c!==null,c)continue e}if(s)return!1}return!0},An=[new ue(">=0.0.0-0")],zr=[new ue(">=0.0.0")],qn=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===le){if(e.length===1&&e[0].semver===le)return!0;r.includePrerelease?t=An:t=zr}if(e.length===1&&e[0].semver===le){if(r.includePrerelease)return!0;e=zr}let s=new Set,n,i;for(let h of t)h.operator===">"||h.operator===">="?n=Kr(n,h,r):h.operator==="<"||h.operator==="<="?i=Zr(i,h,r):s.add(h.semver);if(s.size>1)return null;let c;if(n&&i){if(c=fe(n.semver,i.semver,r),c>0)return null;if(c===0&&(n.operator!==">="||i.operator!=="<="))return null}for(let h of s){if(n&&!ae(h,String(n),r)||i&&!ae(h,String(i),r))return null;for(let st of e)if(!ae(h,String(st),r))return!1;return!0}let u,f,$,m,E=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1,L=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:!1;E&&E.prerelease.length===1&&i.operator==="<"&&E.prerelease[0]===0&&(E=!1);for(let h of e){if(m=m||h.operator===">"||h.operator===">=",$=$||h.operator==="<"||h.operator==="<=",n){if(L&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===L.major&&h.semver.minor===L.minor&&h.semver.patch===L.patch&&(L=!1),h.operator===">"||h.operator===">="){if(u=Kr(n,h,r),u===h&&u!==n)return!1}else if(n.operator===">="&&!h.test(n.semver))return!1}if(i){if(E&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===E.major&&h.semver.minor===E.minor&&h.semver.patch===E.patch&&(E=!1),h.operator==="<"||h.operator==="<="){if(f=Zr(i,h,r),f===h&&f!==i)return!1}else if(i.operator==="<="&&!h.test(i.semver))return!1}if(!h.operator&&(i||n)&&c!==0)return!1}return!(n&&$&&!i&&c!==0||i&&m&&!n&&c!==0||L||E)},Kr=(t,e,r)=>{if(!t)return e;let s=fe(t.semver,e.semver,r);return s>0?t:s<0||e.operator===">"&&t.operator===">="?e:t},Zr=(t,e,r)=>{if(!t)return e;let s=fe(t.semver,e.semver,r);return s<0?t:s>0||e.operator==="<"&&t.operator==="<="?e:t};Jr.exports=Tn});var Ei=p((zo,tt)=>{"use strict";o();var Ee=P(),et=g(),wn=O(),rt=z(),gn=w(),Pn=Ae(),vn=we(),xn=ve(),Cn=De(),Dn=ye(),Gn=je(),yn=Xe(),Fn=_e(),jn=T(),Un=Be(),Xn=Me(),Vn=V(),_n=Ze(),bn=Qe(),Hn=x(),kn=_(),Bn=J(),Yn=Q(),Mn=b(),Wn=H(),zn=ee(),Kn=lr(),Zn=ur(),Jn=C(),Qn=A(),ei=G(),ri=Ar(),ti=wr(),si=Pr(),ni=Cr(),ii=Gr(),oi=Y(),ci=Vr(),li=br(),ai=Br(),ui=Mr(),fi=Qr();tt.exports={parse:gn,valid:Pn,clean:vn,inc:xn,diff:Cn,major:Dn,minor:Gn,patch:yn,prerelease:Fn,compare:jn,rcompare:Un,compareLoose:Xn,compareBuild:Vn,sort:_n,rsort:bn,gt:Hn,lt:kn,eq:Bn,neq:Yn,gte:Mn,lte:Wn,cmp:zn,coerce:Kn,truncate:Zn,Comparator:Jn,Range:Qn,satisfies:ei,toComparators:ri,maxSatisfying:ti,minSatisfying:si,minVersion:ni,validRange:ii,outside:oi,gtr:ci,ltr:li,intersects:ai,simplifyRange:ui,subset:fi,SemVer:wn,re:Ee.re,src:Ee.src,tokens:Ee.t,SEMVER_SPEC_VERSION:et.SEMVER_SPEC_VERSION,RELEASE_TYPES:et.RELEASE_TYPES,compareIdentifiers:rt.compareIdentifiers,rcompareIdentifiers:rt.rcompareIdentifiers}});export{Ei as a};
1
+ import{c as p,g as o}from"./chunk-VKWPEFWQ.js";var g=p((hi,he)=>{"use strict";o();var nt="2.0.0",it=Number.MAX_SAFE_INTEGER||9007199254740991,ot=16,ct=250,lt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];he.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:ot,MAX_SAFE_BUILD_LENGTH:ct,MAX_SAFE_INTEGER:it,RELEASE_TYPES:lt,SEMVER_SPEC_VERSION:nt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var v=p((Ri,pe)=>{"use strict";o();var at=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};pe.exports=at});var P=p((q,Re)=>{"use strict";o();var{MAX_SAFE_COMPONENT_LENGTH:M,MAX_SAFE_BUILD_LENGTH:ut,MAX_LENGTH:ft}=g(),Et=v();q=Re.exports={};var ht=q.re=[],pt=q.safeRe=[],l=q.src=[],Rt=q.safeSrc=[],a=q.t={},$t=0,W="[a-zA-Z0-9-]",mt=[["\\s",1],["\\d",ft],[W,ut]],It=t=>{for(let[e,r]of mt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},R=(t,e,r)=>{let s=It(e),n=$t++;Et(t,n,e),a[t]=n,l[n]=e,Rt[n]=s,ht[n]=new RegExp(e,r?"g":void 0),pt[n]=new RegExp(s,r?"g":void 0)};R("NUMERICIDENTIFIER","0|[1-9]\\d*");R("NUMERICIDENTIFIERLOOSE","\\d+");R("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${W}*`);R("MAINVERSION",`(${l[a.NUMERICIDENTIFIER]})\\.(${l[a.NUMERICIDENTIFIER]})\\.(${l[a.NUMERICIDENTIFIER]})`);R("MAINVERSIONLOOSE",`(${l[a.NUMERICIDENTIFIERLOOSE]})\\.(${l[a.NUMERICIDENTIFIERLOOSE]})\\.(${l[a.NUMERICIDENTIFIERLOOSE]})`);R("PRERELEASEIDENTIFIER",`(?:${l[a.NONNUMERICIDENTIFIER]}|${l[a.NUMERICIDENTIFIER]})`);R("PRERELEASEIDENTIFIERLOOSE",`(?:${l[a.NONNUMERICIDENTIFIER]}|${l[a.NUMERICIDENTIFIERLOOSE]})`);R("PRERELEASE",`(?:-(${l[a.PRERELEASEIDENTIFIER]}(?:\\.${l[a.PRERELEASEIDENTIFIER]})*))`);R("PRERELEASELOOSE",`(?:-?(${l[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[a.PRERELEASEIDENTIFIERLOOSE]})*))`);R("BUILDIDENTIFIER",`${W}+`);R("BUILD",`(?:\\+(${l[a.BUILDIDENTIFIER]}(?:\\.${l[a.BUILDIDENTIFIER]})*))`);R("FULLPLAIN",`v?${l[a.MAINVERSION]}${l[a.PRERELEASE]}?${l[a.BUILD]}?`);R("FULL",`^${l[a.FULLPLAIN]}$`);R("LOOSEPLAIN",`[v=\\s]*${l[a.MAINVERSIONLOOSE]}${l[a.PRERELEASELOOSE]}?${l[a.BUILD]}?`);R("LOOSE",`^${l[a.LOOSEPLAIN]}$`);R("GTLT","((?:<|>)?=?)");R("XRANGEIDENTIFIERLOOSE",`${l[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);R("XRANGEIDENTIFIER",`${l[a.NUMERICIDENTIFIER]}|x|X|\\*`);R("XRANGEPLAIN",`[v=\\s]*(${l[a.XRANGEIDENTIFIER]})(?:\\.(${l[a.XRANGEIDENTIFIER]})(?:\\.(${l[a.XRANGEIDENTIFIER]})(?:${l[a.PRERELEASE]})?${l[a.BUILD]}?)?)?`);R("XRANGEPLAINLOOSE",`[v=\\s]*(${l[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[a.XRANGEIDENTIFIERLOOSE]})(?:${l[a.PRERELEASELOOSE]})?${l[a.BUILD]}?)?)?`);R("XRANGE",`^${l[a.GTLT]}\\s*${l[a.XRANGEPLAIN]}$`);R("XRANGELOOSE",`^${l[a.GTLT]}\\s*${l[a.XRANGEPLAINLOOSE]}$`);R("COERCEPLAIN",`(^|[^\\d])(\\d{1,${M}})(?:\\.(\\d{1,${M}}))?(?:\\.(\\d{1,${M}}))?`);R("COERCE",`${l[a.COERCEPLAIN]}(?:$|[^\\d])`);R("COERCEFULL",l[a.COERCEPLAIN]+`(?:${l[a.PRERELEASE]})?(?:${l[a.BUILD]})?(?:$|[^\\d])`);R("COERCERTL",l[a.COERCE],!0);R("COERCERTLFULL",l[a.COERCEFULL],!0);R("LONETILDE","(?:~>?)");R("TILDETRIM",`(\\s*)${l[a.LONETILDE]}\\s+`,!0);q.tildeTrimReplace="$1~";R("TILDE",`^${l[a.LONETILDE]}${l[a.XRANGEPLAIN]}$`);R("TILDELOOSE",`^${l[a.LONETILDE]}${l[a.XRANGEPLAINLOOSE]}$`);R("LONECARET","(?:\\^)");R("CARETTRIM",`(\\s*)${l[a.LONECARET]}\\s+`,!0);q.caretTrimReplace="$1^";R("CARET",`^${l[a.LONECARET]}${l[a.XRANGEPLAIN]}$`);R("CARETLOOSE",`^${l[a.LONECARET]}${l[a.XRANGEPLAINLOOSE]}$`);R("COMPARATORLOOSE",`^${l[a.GTLT]}\\s*(${l[a.LOOSEPLAIN]})$|^$`);R("COMPARATOR",`^${l[a.GTLT]}\\s*(${l[a.FULLPLAIN]})$|^$`);R("COMPARATORTRIM",`(\\s*)${l[a.GTLT]}\\s*(${l[a.LOOSEPLAIN]}|${l[a.XRANGEPLAIN]})`,!0);q.comparatorTrimReplace="$1$2$3";R("HYPHENRANGE",`^\\s*(${l[a.XRANGEPLAIN]})\\s+-\\s+(${l[a.XRANGEPLAIN]})\\s*$`);R("HYPHENRANGELOOSE",`^\\s*(${l[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[a.XRANGEPLAINLOOSE]})\\s*$`);R("STAR","(<|>)?=?\\s*\\*");R("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");R("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var y=p((Ii,$e)=>{"use strict";o();var Lt=Object.freeze({loose:!0}),Nt=Object.freeze({}),Ot=t=>t?typeof t!="object"?Lt:t:Nt;$e.exports=Ot});var z=p((Ni,Le)=>{"use strict";o();var me=/^[0-9]+$/,Ie=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=me.test(t),s=me.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},dt=(t,e)=>Ie(e,t);Le.exports={compareIdentifiers:Ie,rcompareIdentifiers:dt}});var O=p((di,Oe)=>{"use strict";o();var F=v(),{MAX_LENGTH:Ne,MAX_SAFE_INTEGER:j}=g(),{safeRe:U,t:X}=P(),St=y(),{compareIdentifiers:K}=z(),Tt=(t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let s=0;s<r.length;s++)if(K(t[s],r[s])!==0)return!1;return!0},Z=class t{constructor(e,r){if(r=St(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Ne)throw new TypeError(`version is longer than ${Ne} characters`);F("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let s=e.trim().match(r.loose?U[X.LOOSE]:U[X.FULL]);if(!s)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>j||this.major<0)throw new TypeError("Invalid major version");if(this.minor>j||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>j||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let i=+n;if(i>=0&&i<j)return i}return n}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(F("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let s=this.prerelease[r],n=e.prerelease[r];if(F("prerelease compare",r,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return K(s,n)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let s=this.build[r],n=e.build[r];if(F("build compare",r,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return K(s,n)}while(++r)}inc(e,r,s){if(e.startsWith("pre")){if(!r&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let n=`-${r}`.match(this.options.loose?U[X.PRERELEASELOOSE]:U[X.PRERELEASE]);if(!n||n[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,s),this.inc("pre",r,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,s),this.inc("pre",r,s);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let n=Number(s)?1:0;if(this.prerelease.length===0)this.prerelease=[n];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(r){let i=[r,n];if(s===!1&&(i=[r]),Tt(this.prerelease,r)){let c=this.prerelease[r.split(".").length];isNaN(c)&&(this.prerelease=i)}else this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Oe.exports=Z});var w=p((Ti,Se)=>{"use strict";o();var de=O(),At=(t,e,r=!1)=>{if(t instanceof de)return t;try{return new de(t,e)}catch(s){if(!r)return null;throw s}};Se.exports=At});var Ae=p((qi,Te)=>{"use strict";o();var qt=w(),wt=(t,e)=>{let r=qt(t,e);return r?r.version:null};Te.exports=wt});var we=p((gi,qe)=>{"use strict";o();var gt=w(),Pt=(t,e)=>{let r=gt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};qe.exports=Pt});var ve=p((vi,Pe)=>{"use strict";o();var ge=O(),vt=(t,e,r,s,n)=>{typeof r=="string"&&(n=s,s=r,r=void 0);try{return new ge(t instanceof ge?t.version:t,r).inc(e,s,n).version}catch{return null}};Pe.exports=vt});var De=p((Ci,Ce)=>{"use strict";o();var xe=w(),xt=(t,e)=>{let r=xe(t,null,!0),s=xe(e,null,!0),n=r.compare(s);if(n===0)return null;let i=n>0,c=i?r:s,u=i?s:r,f=!!c.prerelease.length;if(!!u.prerelease.length&&!f){if(!u.patch&&!u.minor)return"major";if(u.compareMain(c)===0)return u.minor&&!u.patch?"minor":"patch"}let m=f?"pre":"";return r.major!==s.major?m+"major":r.minor!==s.minor?m+"minor":r.patch!==s.patch?m+"patch":"prerelease"};Ce.exports=xt});var ye=p((Gi,Ge)=>{"use strict";o();var Ct=O(),Dt=(t,e)=>new Ct(t,e).major;Ge.exports=Dt});var je=p((Fi,Fe)=>{"use strict";o();var Gt=O(),yt=(t,e)=>new Gt(t,e).minor;Fe.exports=yt});var Xe=p((Ui,Ue)=>{"use strict";o();var Ft=O(),jt=(t,e)=>new Ft(t,e).patch;Ue.exports=jt});var _e=p((Vi,Ve)=>{"use strict";o();var Ut=w(),Xt=(t,e)=>{let r=Ut(t,e);return r&&r.prerelease.length?r.prerelease:null};Ve.exports=Xt});var T=p((bi,He)=>{"use strict";o();var be=O(),Vt=(t,e,r)=>new be(t,r).compare(new be(e,r));He.exports=Vt});var Be=p((ki,ke)=>{"use strict";o();var _t=T(),bt=(t,e,r)=>_t(e,t,r);ke.exports=bt});var Me=p((Yi,Ye)=>{"use strict";o();var Ht=T(),kt=(t,e)=>Ht(t,e,!0);Ye.exports=kt});var V=p((Wi,ze)=>{"use strict";o();var We=O(),Bt=(t,e,r)=>{let s=new We(t,r),n=new We(e,r);return s.compare(n)||s.compareBuild(n)};ze.exports=Bt});var Ze=p((Ki,Ke)=>{"use strict";o();var Yt=V(),Mt=(t,e)=>t.sort((r,s)=>Yt(r,s,e));Ke.exports=Mt});var Qe=p((Ji,Je)=>{"use strict";o();var Wt=V(),zt=(t,e)=>t.sort((r,s)=>Wt(s,r,e));Je.exports=zt});var x=p((eo,er)=>{"use strict";o();var Kt=T(),Zt=(t,e,r)=>Kt(t,e,r)>0;er.exports=Zt});var _=p((to,rr)=>{"use strict";o();var Jt=T(),Qt=(t,e,r)=>Jt(t,e,r)<0;rr.exports=Qt});var J=p((no,tr)=>{"use strict";o();var es=T(),rs=(t,e,r)=>es(t,e,r)===0;tr.exports=rs});var Q=p((oo,sr)=>{"use strict";o();var ts=T(),ss=(t,e,r)=>ts(t,e,r)!==0;sr.exports=ss});var b=p((lo,nr)=>{"use strict";o();var ns=T(),is=(t,e,r)=>ns(t,e,r)>=0;nr.exports=is});var H=p((uo,ir)=>{"use strict";o();var os=T(),cs=(t,e,r)=>os(t,e,r)<=0;ir.exports=cs});var ee=p((Eo,or)=>{"use strict";o();var ls=J(),as=Q(),us=x(),fs=b(),Es=_(),hs=H(),ps=(t,e,r,s)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return ls(t,r,s);case"!=":return as(t,r,s);case">":return us(t,r,s);case">=":return fs(t,r,s);case"<":return Es(t,r,s);case"<=":return hs(t,r,s);default:throw new TypeError(`Invalid operator: ${e}`)}};or.exports=ps});var lr=p((po,cr)=>{"use strict";o();var Rs=O(),$s=w(),{safeRe:k,t:B}=P(),ms=(t,e)=>{if(t instanceof Rs)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?k[B.COERCEFULL]:k[B.COERCE]);else{let f=e.includePrerelease?k[B.COERCERTLFULL]:k[B.COERCERTL],$;for(;($=f.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||$.index+$[0].length!==r.index+r[0].length)&&(r=$),f.lastIndex=$.index+$[1].length+$[2].length;f.lastIndex=-1}if(r===null)return null;let s=r[2],n=r[3]||"0",i=r[4]||"0",c=e.includePrerelease&&r[5]?`-${r[5]}`:"",u=e.includePrerelease&&r[6]?`+${r[6]}`:"";return $s(`${s}.${n}.${i}${c}${u}`,e)};cr.exports=ms});var ur=p(($o,ar)=>{"use strict";o();var Is=w(),Ls=g(),Ns=O(),Os=(t,e,r)=>{if(!Ls.RELEASE_TYPES.includes(e))return null;let s=ds(t,r);return s&&Ss(s,e)},ds=(t,e)=>{let r=t instanceof Ns?t.version:t;return Is(r,e)},Ss=(t,e)=>{if(Ts(e))return t.version;switch(t.prerelease=[],e){case"major":t.minor=0,t.patch=0;break;case"minor":t.patch=0;break}return t.format()},Ts=t=>t.startsWith("pre");ar.exports=Os});var Er=p((Io,fr)=>{"use strict";o();var re=class{constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let n=this.map.keys().next().value;this.delete(n)}this.map.set(e,r)}return this}};fr.exports=re});var A=p((No,$r)=>{"use strict";o();var As=/\s+/g,te=class t{constructor(e,r){if(r=ws(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof se)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(As," "),this.set=this.raw.split("||").map(s=>this.parseRange(s.trim())).filter(s=>s.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let s=this.set[0];if(this.set=this.set.filter(n=>!pr(n[0])),this.set.length===0)this.set=[s];else if(this.set.length>1){for(let n of this.set)if(n.length===1&&Fs(n[0])){this.set=[n];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let s=0;s<r.length;s++)s>0&&(this.formatted+=" "),this.formatted+=r[s].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(ys,"");let s=((this.options.includePrerelease&&Ds)|(this.options.loose&&Gs))+":"+e,n=hr.get(s);if(n)return n;let i=this.options.loose,c=i?S[d.HYPHENRANGELOOSE]:S[d.HYPHENRANGE];e=e.replace(c,Ms(this.options.includePrerelease)),I("hyphen replace",e),e=e.replace(S[d.COMPARATORTRIM],vs),I("comparator trim",e),e=e.replace(S[d.TILDETRIM],xs),I("tilde trim",e),e=e.replace(S[d.CARETTRIM],Cs),I("caret trim",e);let u=e.split(" ").map(E=>js(E,this.options)).join(" ").split(/\s+/).map(E=>Ys(E,this.options));i&&(u=u.filter(E=>(I("loose invalid filter",E,this.options),!!E.match(S[d.COMPARATORLOOSE])))),I("range list",u);let f=new Map,$=u.map(E=>new se(E,this.options));for(let E of $){if(pr(E))return[E];f.set(E.value,E)}f.size>1&&f.has("")&&f.delete("");let m=[...f.values()];return hr.set(s,m),m}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(s=>Rr(s,r)&&e.set.some(n=>Rr(n,r)&&s.every(i=>n.every(c=>i.intersects(c,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new gs(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Ws(this.set[r],e,this.options))return!0;return!1}};$r.exports=te;var qs=Er(),hr=new qs,ws=y(),se=C(),I=v(),gs=O(),{safeRe:S,src:Ps,t:d,comparatorTrimReplace:vs,tildeTrimReplace:xs,caretTrimReplace:Cs}=P(),{FLAG_INCLUDE_PRERELEASE:Ds,FLAG_LOOSE:Gs}=g(),ys=new RegExp(Ps[d.BUILD],"g"),pr=t=>t.value==="<0.0.0-0",Fs=t=>t.value==="",Rr=(t,e)=>{let r=!0,s=t.slice(),n=s.pop();for(;r&&s.length;)r=s.every(i=>n.intersects(i,e)),n=s.pop();return r},js=(t,e)=>(t=t.replace(S[d.BUILD],""),I("comp",t,e),t=_s(t,e),I("caret",t),t=Xs(t,e),I("tildes",t),t=Hs(t,e),I("xrange",t),t=Bs(t,e),I("stars",t),t),N=t=>!t||t.toLowerCase()==="x"||t==="*",Us=(t,e,r)=>N(t)&&!N(e)||N(e)&&r&&!N(r),Xs=(t,e)=>t.trim().split(/\s+/).map(r=>Vs(r,e)).join(" "),Vs=(t,e)=>{let r=e.loose?S[d.TILDELOOSE]:S[d.TILDE];return t.replace(r,(s,n,i,c,u)=>{I("tilde",t,s,n,i,c,u);let f;return N(n)?f="":N(i)?f=`>=${n}.0.0 <${+n+1}.0.0-0`:N(c)?f=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`:u?(I("replaceTilde pr",u),f=`>=${n}.${i}.${c}-${u} <${n}.${+i+1}.0-0`):f=`>=${n}.${i}.${c} <${n}.${+i+1}.0-0`,I("tilde return",f),f})},_s=(t,e)=>t.trim().split(/\s+/).map(r=>bs(r,e)).join(" "),bs=(t,e)=>{I("caret",t,e);let r=e.loose?S[d.CARETLOOSE]:S[d.CARET],s=e.includePrerelease?"-0":"";return t.replace(r,(n,i,c,u,f)=>{I("caret",t,n,i,c,u,f);let $;return N(i)?$="":N(c)?$=`>=${i}.0.0${s} <${+i+1}.0.0-0`:N(u)?i==="0"?$=`>=${i}.${c}.0${s} <${i}.${+c+1}.0-0`:$=`>=${i}.${c}.0${s} <${+i+1}.0.0-0`:f?(I("replaceCaret pr",f),i==="0"?c==="0"?$=`>=${i}.${c}.${u}-${f} <${i}.${c}.${+u+1}-0`:$=`>=${i}.${c}.${u}-${f} <${i}.${+c+1}.0-0`:$=`>=${i}.${c}.${u}-${f} <${+i+1}.0.0-0`):(I("no pr"),i==="0"?c==="0"?$=`>=${i}.${c}.${u} <${i}.${c}.${+u+1}-0`:$=`>=${i}.${c}.${u} <${i}.${+c+1}.0-0`:$=`>=${i}.${c}.${u} <${+i+1}.0.0-0`),I("caret return",$),$})},Hs=(t,e)=>(I("replaceXRanges",t,e),t.split(/\s+/).map(r=>ks(r,e)).join(" ")),ks=(t,e)=>{t=t.trim();let r=e.loose?S[d.XRANGELOOSE]:S[d.XRANGE];return t.replace(r,(s,n,i,c,u,f)=>{if(I("xRange",t,s,n,i,c,u,f),Us(i,c,u))return t;let $=N(i),m=$||N(c),E=m||N(u),L=E;return n==="="&&L&&(n=""),f=e.includePrerelease?"-0":"",$?n===">"||n==="<"?s="<0.0.0-0":s="*":n&&L?(m&&(c=0),u=0,n===">"?(n=">=",m?(i=+i+1,c=0,u=0):(c=+c+1,u=0)):n==="<="&&(n="<",m?i=+i+1:c=+c+1),n==="<"&&(f="-0"),s=`${n+i}.${c}.${u}${f}`):m?s=`>=${i}.0.0${f} <${+i+1}.0.0-0`:E&&(s=`>=${i}.${c}.0${f} <${i}.${+c+1}.0-0`),I("xRange return",s),s})},Bs=(t,e)=>(I("replaceStars",t,e),t.trim().replace(S[d.STAR],"")),Ys=(t,e)=>(I("replaceGTE0",t,e),t.trim().replace(S[e.includePrerelease?d.GTE0PRE:d.GTE0],"")),Ms=t=>(e,r,s,n,i,c,u,f,$,m,E,L)=>(N(s)?r="":N(n)?r=`>=${s}.0.0${t?"-0":""}`:N(i)?r=`>=${s}.${n}.0${t?"-0":""}`:c?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,N($)?f="":N(m)?f=`<${+$+1}.0.0-0`:N(E)?f=`<${$}.${+m+1}.0-0`:L?f=`<=${$}.${m}.${E}-${L}`:t?f=`<${$}.${m}.${+E+1}-0`:f=`<=${f}`,`${r} ${f}`.trim()),Ws=(t,e,r)=>{for(let s=0;s<t.length;s++)if(!t[s].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let s=0;s<t.length;s++)if(I(t[s].semver),t[s].semver!==se.ANY&&t[s].semver.prerelease.length>0){let n=t[s].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}});var C=p((So,dr)=>{"use strict";o();var D=Symbol("SemVer ANY"),oe=class t{static get ANY(){return D}constructor(e,r){if(r=mr(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),ie("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===D?this.value="":this.value=this.operator+this.semver.version,ie("comp",this)}parse(e){let r=this.options.loose?Ir[Lr.COMPARATORLOOSE]:Ir[Lr.COMPARATOR],s=e.match(r);if(!s)throw new TypeError(`Invalid comparator: ${e}`);this.operator=s[1]!==void 0?s[1]:"",this.operator==="="&&(this.operator=""),s[2]?this.semver=new Nr(s[2],this.options.loose):this.semver=D}toString(){return this.value}test(e){if(ie("Comparator.test",e,this.options.loose),this.semver===D||e===D)return!0;if(typeof e=="string")try{e=new Nr(e,this.options)}catch{return!1}return ne(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Or(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Or(this.value,r).test(e.semver):(r=mr(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||ne(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||ne(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};dr.exports=oe;var mr=y(),{safeRe:Ir,t:Lr}=P(),ne=ee(),ie=v(),Nr=O(),Or=A()});var G=p((Ao,Sr)=>{"use strict";o();var zs=A(),Ks=(t,e,r)=>{try{e=new zs(e,r)}catch{return!1}return e.test(t)};Sr.exports=Ks});var Ar=p((wo,Tr)=>{"use strict";o();var Zs=A(),Js=(t,e)=>new Zs(t,e).set.map(r=>r.map(s=>s.value).join(" ").trim().split(" "));Tr.exports=Js});var wr=p((Po,qr)=>{"use strict";o();var Qs=O(),en=A(),rn=(t,e,r)=>{let s=null,n=null,i=null;try{i=new en(e,r)}catch{return null}return t.forEach(c=>{i.test(c)&&(!s||n.compare(c)===-1)&&(s=c,n=new Qs(s,r))}),s};qr.exports=rn});var Pr=p((xo,gr)=>{"use strict";o();var tn=O(),sn=A(),nn=(t,e,r)=>{let s=null,n=null,i=null;try{i=new sn(e,r)}catch{return null}return t.forEach(c=>{i.test(c)&&(!s||n.compare(c)===1)&&(s=c,n=new tn(s,r))}),s};gr.exports=nn});var Cr=p((Do,xr)=>{"use strict";o();var ce=O(),on=A(),vr=x(),cn=(t,e)=>{t=new on(t,e);let r=new ce("0.0.0");if(t.test(r)||(r=new ce("0.0.0-0"),t.test(r)))return r;r=null;for(let s=0;s<t.set.length;++s){let n=t.set[s],i=null;n.forEach(c=>{let u=new ce(c.semver.version);switch(c.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!i||vr(u,i))&&(i=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),i&&(!r||vr(r,i))&&(r=i)}return r&&t.test(r)?r:null};xr.exports=cn});var Gr=p((yo,Dr)=>{"use strict";o();var ln=A(),an=(t,e)=>{try{return new ln(t,e).range||"*"}catch{return null}};Dr.exports=an});var Y=p((jo,Ur)=>{"use strict";o();var un=O(),jr=C(),{ANY:fn}=jr,En=A(),hn=G(),yr=x(),Fr=_(),pn=H(),Rn=b(),$n=(t,e,r,s)=>{t=new un(t,s),e=new En(e,s);let n,i,c,u,f;switch(r){case">":n=yr,i=pn,c=Fr,u=">",f=">=";break;case"<":n=Fr,i=Rn,c=yr,u="<",f="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(hn(t,e,s))return!1;for(let $=0;$<e.set.length;++$){let m=e.set[$],E=null,L=null;if(m.forEach(h=>{h.semver===fn&&(h=new jr(">=0.0.0")),E=E||h,L=L||h,n(h.semver,E.semver,s)?E=h:c(h.semver,L.semver,s)&&(L=h)}),E.operator===u||E.operator===f||(!L.operator||L.operator===u)&&i(t,L.semver))return!1;if(L.operator===f&&c(t,L.semver))return!1}return!0};Ur.exports=$n});var Vr=p((Xo,Xr)=>{"use strict";o();var mn=Y(),In=(t,e,r)=>mn(t,e,">",r);Xr.exports=In});var br=p((_o,_r)=>{"use strict";o();var Ln=Y(),Nn=(t,e,r)=>Ln(t,e,"<",r);_r.exports=Nn});var Br=p((Ho,kr)=>{"use strict";o();var Hr=A(),On=(t,e,r)=>(t=new Hr(t,r),e=new Hr(e,r),t.intersects(e,r));kr.exports=On});var Mr=p((Bo,Yr)=>{"use strict";o();var dn=G(),Sn=T();Yr.exports=(t,e,r)=>{let s=[],n=null,i=null,c=t.sort((m,E)=>Sn(m,E,r));for(let m of c)dn(m,e,r)?(i=m,n||(n=m)):(i&&s.push([n,i]),i=null,n=null);n&&s.push([n,null]);let u=[];for(let[m,E]of s)m===E?u.push(m):!E&&m===c[0]?u.push("*"):E?m===c[0]?u.push(`<=${E}`):u.push(`${m} - ${E}`):u.push(`>=${m}`);let f=u.join(" || "),$=typeof e.raw=="string"?e.raw:String(e);return f.length<$.length?f:e}});var Qr=p((Mo,Jr)=>{"use strict";o();var Wr=A(),ue=C(),{ANY:le}=ue,ae=G(),fe=T(),Tn=(t,e,r={})=>{if(t===e)return!0;t=new Wr(t,r),e=new Wr(e,r);let s=!1;e:for(let n of t.set){for(let i of e.set){let c=qn(n,i,r);if(s=s||c!==null,c)continue e}if(s)return!1}return!0},An=[new ue(">=0.0.0-0")],zr=[new ue(">=0.0.0")],qn=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===le){if(e.length===1&&e[0].semver===le)return!0;r.includePrerelease?t=An:t=zr}if(e.length===1&&e[0].semver===le){if(r.includePrerelease)return!0;e=zr}let s=new Set,n,i;for(let h of t)h.operator===">"||h.operator===">="?n=Kr(n,h,r):h.operator==="<"||h.operator==="<="?i=Zr(i,h,r):s.add(h.semver);if(s.size>1)return null;let c;if(n&&i){if(c=fe(n.semver,i.semver,r),c>0)return null;if(c===0&&(n.operator!==">="||i.operator!=="<="))return null}for(let h of s){if(n&&!ae(h,String(n),r)||i&&!ae(h,String(i),r))return null;for(let st of e)if(!ae(h,String(st),r))return!1;return!0}let u,f,$,m,E=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1,L=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:!1;E&&E.prerelease.length===1&&i.operator==="<"&&E.prerelease[0]===0&&(E=!1);for(let h of e){if(m=m||h.operator===">"||h.operator===">=",$=$||h.operator==="<"||h.operator==="<=",n){if(L&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===L.major&&h.semver.minor===L.minor&&h.semver.patch===L.patch&&(L=!1),h.operator===">"||h.operator===">="){if(u=Kr(n,h,r),u===h&&u!==n)return!1}else if(n.operator===">="&&!h.test(n.semver))return!1}if(i){if(E&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===E.major&&h.semver.minor===E.minor&&h.semver.patch===E.patch&&(E=!1),h.operator==="<"||h.operator==="<="){if(f=Zr(i,h,r),f===h&&f!==i)return!1}else if(i.operator==="<="&&!h.test(i.semver))return!1}if(!h.operator&&(i||n)&&c!==0)return!1}return!(n&&$&&!i&&c!==0||i&&m&&!n&&c!==0||L||E)},Kr=(t,e,r)=>{if(!t)return e;let s=fe(t.semver,e.semver,r);return s>0?t:s<0||e.operator===">"&&t.operator===">="?e:t},Zr=(t,e,r)=>{if(!t)return e;let s=fe(t.semver,e.semver,r);return s<0?t:s>0||e.operator==="<"&&t.operator==="<="?e:t};Jr.exports=Tn});var Ei=p((zo,tt)=>{o();var Ee=P(),et=g(),wn=O(),rt=z(),gn=w(),Pn=Ae(),vn=we(),xn=ve(),Cn=De(),Dn=ye(),Gn=je(),yn=Xe(),Fn=_e(),jn=T(),Un=Be(),Xn=Me(),Vn=V(),_n=Ze(),bn=Qe(),Hn=x(),kn=_(),Bn=J(),Yn=Q(),Mn=b(),Wn=H(),zn=ee(),Kn=lr(),Zn=ur(),Jn=C(),Qn=A(),ei=G(),ri=Ar(),ti=wr(),si=Pr(),ni=Cr(),ii=Gr(),oi=Y(),ci=Vr(),li=br(),ai=Br(),ui=Mr(),fi=Qr();tt.exports={parse:gn,valid:Pn,clean:vn,inc:xn,diff:Cn,major:Dn,minor:Gn,patch:yn,prerelease:Fn,compare:jn,rcompare:Un,compareLoose:Xn,compareBuild:Vn,sort:_n,rsort:bn,gt:Hn,lt:kn,eq:Bn,neq:Yn,gte:Mn,lte:Wn,cmp:zn,coerce:Kn,truncate:Zn,Comparator:Jn,Range:Qn,satisfies:ei,toComparators:ri,maxSatisfying:ti,minSatisfying:si,minVersion:ni,validRange:ii,outside:oi,gtr:ci,ltr:li,intersects:ai,simplifyRange:ui,subset:fi,SemVer:wn,re:Ee.re,src:Ee.src,tokens:Ee.t,SEMVER_SPEC_VERSION:et.SEMVER_SPEC_VERSION,RELEASE_TYPES:et.RELEASE_TYPES,compareIdentifiers:rt.compareIdentifiers,rcompareIdentifiers:rt.rcompareIdentifiers}});export{Ei as a};
@@ -1,4 +1,4 @@
1
- import{b as h}from"./chunk-ZJOX5HW4.js";import{Ba as g,ta as u,va as c}from"./chunk-JLQRDFR5.js";import{c as f,p}from"./chunk-IWTNUJGY.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();var d=f(p(),"/docs-shopify.dev/commands"),m=class extends h{static description="Generate CLI commands documentation";static hidden=!0;async run(){let a=this.config.commands;await g(d),await c(d);let o=a.sort((e,i)=>e.id.length-i.id.length).filter(e=>!b(e)).map(e=>{let i=k(e);return N(e,i)});await Promise.all(o)}},C=["commands","help","plugins"];function b(t){return t.hidden?(C.push(t.id),!0):t.pluginType==="user"?!0:C.some(a=>t.id.startsWith(`${a}:`))}function k(t){let a=t.id.replace(/[:]/g," "),s=t.id.replace(/[:]/g,"-"),o=t.id.replace(/[:-]/g,"");return{commandName:a,fileName:s,interfaceName:o}}async function N(t,{commandName:a,fileName:s,interfaceName:o}){let e=Object.keys(t.flags).map(r=>{let n=t.flags[r];if(!n||n.hidden)return;let $=n.description??"",w=n.char?`-${n.char}, `:"",y=n.type==="option"?"string":"''",v=n.type==="option"?" <value>":"",x=n.required?"":"?",D=n.env!==void 0?` @environment ${n.env}`:"";return` /**
1
+ import{b as h}from"./chunk-PSREELSQ.js";import{Ba as g,ta as u,va as c}from"./chunk-OIQ5NQ5I.js";import{c as f,p}from"./chunk-IWTNUJGY.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();var d=f(p(),"/docs-shopify.dev/commands"),m=class extends h{static description="Generate CLI commands documentation";static hidden=!0;async run(){let a=this.config.commands;await g(d),await c(d);let o=a.sort((e,i)=>e.id.length-i.id.length).filter(e=>!b(e)).map(e=>{let i=k(e);return N(e,i)});await Promise.all(o)}},C=["commands","help","plugins"];function b(t){return t.hidden?(C.push(t.id),!0):t.pluginType==="user"?!0:C.some(a=>t.id.startsWith(`${a}:`))}function k(t){let a=t.id.replace(/[:]/g," "),s=t.id.replace(/[:]/g,"-"),o=t.id.replace(/[:-]/g,"");return{commandName:a,fileName:s,interfaceName:o}}async function N(t,{commandName:a,fileName:s,interfaceName:o}){let e=Object.keys(t.flags).map(r=>{let n=t.flags[r];if(!n||n.hidden)return;let $=n.description??"",w=n.char?`-${n.char}, `:"",y=n.type==="option"?"string":"''",v=n.type==="option"?" <value>":"",x=n.required?"":"?",D=n.env!==void 0?` @environment ${n.env}`:"";return` /**
2
2
  * ${$}
3
3
  *${D}
4
4
  */
@@ -1,4 +1,4 @@
1
- import{b as S}from"./chunk-7GHSE7SG.js";import{qb as o,sb as r,wb as p}from"./chunk-JLQRDFR5.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();function P(e){let t=Object.fromEntries(e.variables.map(({name:u,value:E})=>[u,E]));return r`
1
+ import{b as S}from"./chunk-DDRP6QTC.js";import{tb as o,vb as r,zb as p}from"./chunk-OIQ5NQ5I.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();function P(e){let t=Object.fromEntries(e.variables.map(({name:u,value:E})=>[u,E]));return r`
2
2
  ${o.green("SHOPIFY_API_KEY")}=${t.SHOPIFY_API_KEY??""}
3
3
  ${o.green("SHOPIFY_API_SECRET")}=${t.SHOPIFY_API_SECRET??""}
4
4
  ${o.green("SCOPES")}=${t.SCOPES??""}