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
@@ -0,0 +1,18 @@
1
+ import{a as oh,b as ve,c as $r,d as Rt,e as Ur,f as ct,g as Wr,h as zr,i as O}from"./chunk-B4OMIONW.js";import{b as sh}from"./chunk-UU6UQ2QY.js";import{a as ah}from"./chunk-5B76DT7X.js";import{j as _i,k as Gr}from"./chunk-3PYDIBTX.js";import{e as bi,g as se}from"./chunk-A5BSUUNQ.js";import{a as di}from"./chunk-JD5P5RAJ.js";import{a as mi,b as Nt,c as ut,d as Mr,e as kr,h as gi,m as wi,n as Si,p as vi,q as xi}from"./chunk-IWTNUJGY.js";import{a as uh}from"./chunk-3KGN6N7E.js";import{b as ih}from"./chunk-CQAD5WML.js";import{a as M,b as rh,c as p,d as nh,e as H,f as le,g as s}from"./chunk-VKWPEFWQ.js";var Ai=p((Hq,Pi)=>{"use strict";s();var hh=uh(),$e=ih();function Ti(e){if(/^\d{3,4}$/.test(e)){let r=/(\d{1,2})(\d{2})/.exec(e)||[];return{major:0,minor:parseInt(r[1],10),patch:parseInt(r[2],10)}}let t=(e||"").split(".").map(r=>parseInt(r,10));return{major:t[0],minor:t[1],patch:t[2]}}function Kr(e){let{CI:t,FORCE_HYPERLINK:r,NETLIFY:n,TEAMCITY_VERSION:i,TERM_PROGRAM:o,TERM_PROGRAM_VERSION:a,VTE_VERSION:u,TERM:l}=process.env;if(r)return!(r.length>0&&parseInt(r,10)===0);if($e("no-hyperlink")||$e("no-hyperlinks")||$e("hyperlink=false")||$e("hyperlink=never"))return!1;if($e("hyperlink=true")||$e("hyperlink=always")||n)return!0;if(!hh.supportsColor(e)||e&&!e.isTTY)return!1;if("WT_SESSION"in process.env)return!0;if(process.platform==="win32"||t||i)return!1;if(o){let f=Ti(a||"");switch(o){case"iTerm.app":return f.major===3?f.minor>=1:f.major>3;case"WezTerm":return f.major>=20200620;case"vscode":return f.major>1||f.major===1&&f.minor>=72;case"ghostty":return!0}}if(u){if(u==="0.50.0")return!1;let f=Ti(u);return f.major>0||f.minor>=50}return l==="alacritty"}Pi.exports={supportsHyperlink:Kr,stdout:Kr(process.stdout),stderr:Kr(process.stderr)}});var Ui=p((IE,$i)=>{s();function vh(){this.__data__=[],this.size=0}$i.exports=vh});var Xr=p((RE,Wi)=>{s();function xh(e,t){return e===t||e!==e&&t!==t}Wi.exports=xh});var mt=p((kE,Gi)=>{s();var _h=Xr();function bh(e,t){for(var r=e.length;r--;)if(_h(e[r][0],t))return r;return-1}Gi.exports=bh});var Ji=p((UE,zi)=>{s();var qh=mt(),Eh=Array.prototype,Ch=Eh.splice;function Oh(e){var t=this.__data__,r=qh(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ch.call(t,r,1),--this.size,!0}zi.exports=Oh});var Hi=p((GE,Bi)=>{s();var Th=mt();function Ph(e){var t=this.__data__,r=Th(t,e);return r<0?void 0:t[r][1]}Bi.exports=Ph});var Yi=p((JE,Ki)=>{s();var Ah=mt();function Fh(e){return Ah(this.__data__,e)>-1}Ki.exports=Fh});var Zi=p((HE,Vi)=>{s();var Lh=mt();function Dh(e,t){var r=this.__data__,n=Lh(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}Vi.exports=Dh});var gt=p((YE,Xi)=>{s();var jh=Ui(),Ih=Ji(),Nh=Hi(),Rh=Yi(),Mh=Zi();function Ge(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ge.prototype.clear=jh;Ge.prototype.delete=Ih;Ge.prototype.get=Nh;Ge.prototype.has=Rh;Ge.prototype.set=Mh;Xi.exports=Ge});var eo=p((ZE,Qi)=>{s();var kh=gt();function $h(){this.__data__=new kh,this.size=0}Qi.exports=$h});var ro=p((QE,to)=>{s();function Uh(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}to.exports=Uh});var io=p((tC,no)=>{s();function Wh(e){return this.__data__.get(e)}no.exports=Wh});var so=p((nC,oo)=>{s();function Gh(e){return this.__data__.has(e)}oo.exports=Gh});var Qr=p((oC,ao)=>{s();var zh=Rt(),Jh=Ur(),Bh="[object AsyncFunction]",Hh="[object Function]",Kh="[object GeneratorFunction]",Yh="[object Proxy]";function Vh(e){if(!Jh(e))return!1;var t=zh(e);return t==Hh||t==Kh||t==Bh||t==Yh}ao.exports=Vh});var co=p((aC,uo)=>{s();var Zh=ve(),Xh=Zh["__core-js_shared__"];uo.exports=Xh});var po=p((cC,lo)=>{s();var en=co(),fo=(function(){var e=/[^.]+$/.exec(en&&en.keys&&en.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Qh(e){return!!fo&&fo in e}lo.exports=Qh});var tn=p((lC,ho)=>{s();var ey=Function.prototype,ty=ey.toString;function ry(e){if(e!=null){try{return ty.call(e)}catch{}try{return e+""}catch{}}return""}ho.exports=ry});var mo=p((hC,yo)=>{s();var ny=Qr(),iy=po(),oy=Ur(),sy=tn(),ay=/[\\^$.*+?()[\]{}|]/g,uy=/^\[object .+?Constructor\]$/,cy=Function.prototype,fy=Object.prototype,ly=cy.toString,py=fy.hasOwnProperty,hy=RegExp("^"+ly.call(py).replace(ay,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yy(e){if(!oy(e)||iy(e))return!1;var t=ny(e)?hy:uy;return t.test(sy(e))}yo.exports=yy});var wo=p((dC,go)=>{s();function dy(e,t){return e?.[t]}go.exports=dy});var xe=p((gC,So)=>{s();var my=mo(),gy=wo();function wy(e,t){var r=gy(e,t);return my(r)?r:void 0}So.exports=wy});var Kt=p((SC,vo)=>{s();var Sy=xe(),vy=ve(),xy=Sy(vy,"Map");vo.exports=xy});var wt=p((xC,xo)=>{s();var _y=xe(),by=_y(Object,"create");xo.exports=by});var qo=p((bC,bo)=>{s();var _o=wt();function qy(){this.__data__=_o?_o(null):{},this.size=0}bo.exports=qy});var Co=p((EC,Eo)=>{s();function Ey(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}Eo.exports=Ey});var To=p((OC,Oo)=>{s();var Cy=wt(),Oy="__lodash_hash_undefined__",Ty=Object.prototype,Py=Ty.hasOwnProperty;function Ay(e){var t=this.__data__;if(Cy){var r=t[e];return r===Oy?void 0:r}return Py.call(t,e)?t[e]:void 0}Oo.exports=Ay});var Ao=p((PC,Po)=>{s();var Fy=wt(),Ly=Object.prototype,Dy=Ly.hasOwnProperty;function jy(e){var t=this.__data__;return Fy?t[e]!==void 0:Dy.call(t,e)}Po.exports=jy});var Lo=p((FC,Fo)=>{s();var Iy=wt(),Ny="__lodash_hash_undefined__";function Ry(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Iy&&t===void 0?Ny:t,this}Fo.exports=Ry});var jo=p((DC,Do)=>{s();var My=qo(),ky=Co(),$y=To(),Uy=Ao(),Wy=Lo();function ze(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ze.prototype.clear=My;ze.prototype.delete=ky;ze.prototype.get=$y;ze.prototype.has=Uy;ze.prototype.set=Wy;Do.exports=ze});var Ro=p((IC,No)=>{s();var Io=jo(),Gy=gt(),zy=Kt();function Jy(){this.size=0,this.__data__={hash:new Io,map:new(zy||Gy),string:new Io}}No.exports=Jy});var ko=p((RC,Mo)=>{s();function By(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}Mo.exports=By});var St=p((kC,$o)=>{s();var Hy=ko();function Ky(e,t){var r=e.__data__;return Hy(t)?r[typeof t=="string"?"string":"hash"]:r.map}$o.exports=Ky});var Wo=p((UC,Uo)=>{s();var Yy=St();function Vy(e){var t=Yy(this,e).delete(e);return this.size-=t?1:0,t}Uo.exports=Vy});var zo=p((GC,Go)=>{s();var Zy=St();function Xy(e){return Zy(this,e).get(e)}Go.exports=Xy});var Bo=p((JC,Jo)=>{s();var Qy=St();function ed(e){return Qy(this,e).has(e)}Jo.exports=ed});var Ko=p((HC,Ho)=>{s();var td=St();function rd(e,t){var r=td(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}Ho.exports=rd});var Yt=p((YC,Yo)=>{s();var nd=Ro(),id=Wo(),od=zo(),sd=Bo(),ad=Ko();function Je(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Je.prototype.clear=nd;Je.prototype.delete=id;Je.prototype.get=od;Je.prototype.has=sd;Je.prototype.set=ad;Yo.exports=Je});var Zo=p((ZC,Vo)=>{s();var ud=gt(),cd=Kt(),fd=Yt(),ld=200;function pd(e,t){var r=this.__data__;if(r instanceof ud){var n=r.__data__;if(!cd||n.length<ld-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new fd(n)}return r.set(e,t),this.size=r.size,this}Vo.exports=pd});var rn=p((QC,Xo)=>{s();var hd=gt(),yd=eo(),dd=ro(),md=io(),gd=so(),wd=Zo();function Be(e){var t=this.__data__=new hd(e);this.size=t.size}Be.prototype.clear=yd;Be.prototype.delete=dd;Be.prototype.get=md;Be.prototype.has=gd;Be.prototype.set=wd;Xo.exports=Be});var es=p((tO,Qo)=>{s();var Sd="__lodash_hash_undefined__";function vd(e){return this.__data__.set(e,Sd),this}Qo.exports=vd});var rs=p((nO,ts)=>{s();function xd(e){return this.__data__.has(e)}ts.exports=xd});var Zt=p((oO,ns)=>{s();var _d=Yt(),bd=es(),qd=rs();function Vt(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new _d;++t<r;)this.add(e[t])}Vt.prototype.add=Vt.prototype.push=bd;Vt.prototype.has=qd;ns.exports=Vt});var os=p((aO,is)=>{s();function Ed(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}is.exports=Ed});var Xt=p((cO,ss)=>{s();function Cd(e,t){return e.has(t)}ss.exports=Cd});var nn=p((lO,as)=>{s();var Od=Zt(),Td=os(),Pd=Xt(),Ad=1,Fd=2;function Ld(e,t,r,n,i,o){var a=r&Ad,u=e.length,l=t.length;if(u!=l&&!(a&&l>u))return!1;var f=o.get(e),c=o.get(t);if(f&&c)return f==t&&c==e;var h=-1,y=!0,d=r&Fd?new Od:void 0;for(o.set(e,t),o.set(t,e);++h<u;){var g=e[h],m=t[h];if(n)var w=a?n(m,g,h,t,e,o):n(g,m,h,e,t,o);if(w!==void 0){if(w)continue;y=!1;break}if(d){if(!Td(t,function(S,v){if(!Pd(d,v)&&(g===S||i(g,S,r,n,o)))return d.push(v)})){y=!1;break}}else if(!(g===m||i(g,m,r,n,o))){y=!1;break}}return o.delete(e),o.delete(t),y}as.exports=Ld});var cs=p((hO,us)=>{s();var Dd=ve(),jd=Dd.Uint8Array;us.exports=jd});var ls=p((dO,fs)=>{s();function Id(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}fs.exports=Id});var Qt=p((gO,ps)=>{s();function Nd(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}ps.exports=Nd});var gs=p((SO,ms)=>{s();var hs=$r(),ys=cs(),Rd=Xr(),Md=nn(),kd=ls(),$d=Qt(),Ud=1,Wd=2,Gd="[object Boolean]",zd="[object Date]",Jd="[object Error]",Bd="[object Map]",Hd="[object Number]",Kd="[object RegExp]",Yd="[object Set]",Vd="[object String]",Zd="[object Symbol]",Xd="[object ArrayBuffer]",Qd="[object DataView]",ds=hs?hs.prototype:void 0,on=ds?ds.valueOf:void 0;function em(e,t,r,n,i,o,a){switch(r){case Qd:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Xd:return!(e.byteLength!=t.byteLength||!o(new ys(e),new ys(t)));case Gd:case zd:case Hd:return Rd(+e,+t);case Jd:return e.name==t.name&&e.message==t.message;case Kd:case Vd:return e==t+"";case Bd:var u=kd;case Yd:var l=n&Ud;if(u||(u=$d),e.size!=t.size&&!l)return!1;var f=a.get(e);if(f)return f==t;n|=Wd,a.set(e,t);var c=Md(u(e),u(t),n,i,o,a);return a.delete(e),c;case Zd:if(on)return on.call(e)==on.call(t)}return!1}ms.exports=em});var sn=p((xO,ws)=>{s();function tm(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}ws.exports=tm});var de=p((bO,Ss)=>{s();var rm=Array.isArray;Ss.exports=rm});var xs=p((EO,vs)=>{s();var nm=sn(),im=de();function om(e,t,r){var n=t(e);return im(e)?n:nm(n,r(e))}vs.exports=om});var bs=p((OO,_s)=>{s();function sm(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}_s.exports=sm});var Es=p((PO,qs)=>{s();function am(){return[]}qs.exports=am});var Ts=p((FO,Os)=>{s();var um=bs(),cm=Es(),fm=Object.prototype,lm=fm.propertyIsEnumerable,Cs=Object.getOwnPropertySymbols,pm=Cs?function(e){return e==null?[]:(e=Object(e),um(Cs(e),function(t){return lm.call(e,t)}))}:cm;Os.exports=pm});var As=p((DO,Ps)=>{s();function hm(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}Ps.exports=hm});var Ls=p((IO,Fs)=>{s();var ym=Rt(),dm=ct(),mm="[object Arguments]";function gm(e){return dm(e)&&ym(e)==mm}Fs.exports=gm});var er=p((RO,Is)=>{s();var Ds=Ls(),wm=ct(),js=Object.prototype,Sm=js.hasOwnProperty,vm=js.propertyIsEnumerable,xm=Ds((function(){return arguments})())?Ds:function(e){return wm(e)&&Sm.call(e,"callee")&&!vm.call(e,"callee")};Is.exports=xm});var Rs=p((kO,Ns)=>{s();function _m(){return!1}Ns.exports=_m});var an=p((vt,He)=>{s();var bm=ve(),qm=Rs(),$s=typeof vt=="object"&&vt&&!vt.nodeType&&vt,Ms=$s&&typeof He=="object"&&He&&!He.nodeType&&He,Em=Ms&&Ms.exports===$s,ks=Em?bm.Buffer:void 0,Cm=ks?ks.isBuffer:void 0,Om=Cm||qm;He.exports=Om});var un=p((WO,Us)=>{s();var Tm=9007199254740991,Pm=/^(?:0|[1-9]\d*)$/;function Am(e,t){var r=typeof e;return t=t??Tm,!!t&&(r=="number"||r!="symbol"&&Pm.test(e))&&e>-1&&e%1==0&&e<t}Us.exports=Am});var tr=p((zO,Ws)=>{s();var Fm=9007199254740991;function Lm(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Fm}Ws.exports=Lm});var zs=p((BO,Gs)=>{s();var Dm=Rt(),jm=tr(),Im=ct(),Nm="[object Arguments]",Rm="[object Array]",Mm="[object Boolean]",km="[object Date]",$m="[object Error]",Um="[object Function]",Wm="[object Map]",Gm="[object Number]",zm="[object Object]",Jm="[object RegExp]",Bm="[object Set]",Hm="[object String]",Km="[object WeakMap]",Ym="[object ArrayBuffer]",Vm="[object DataView]",Zm="[object Float32Array]",Xm="[object Float64Array]",Qm="[object Int8Array]",eg="[object Int16Array]",tg="[object Int32Array]",rg="[object Uint8Array]",ng="[object Uint8ClampedArray]",ig="[object Uint16Array]",og="[object Uint32Array]",A={};A[Zm]=A[Xm]=A[Qm]=A[eg]=A[tg]=A[rg]=A[ng]=A[ig]=A[og]=!0;A[Nm]=A[Rm]=A[Ym]=A[Mm]=A[Vm]=A[km]=A[$m]=A[Um]=A[Wm]=A[Gm]=A[zm]=A[Jm]=A[Bm]=A[Hm]=A[Km]=!1;function sg(e){return Im(e)&&jm(e.length)&&!!A[Dm(e)]}Gs.exports=sg});var cn=p((KO,Js)=>{s();function ag(e){return function(t){return e(t)}}Js.exports=ag});var Hs=p((xt,Ke)=>{s();var ug=oh(),Bs=typeof xt=="object"&&xt&&!xt.nodeType&&xt,_t=Bs&&typeof Ke=="object"&&Ke&&!Ke.nodeType&&Ke,cg=_t&&_t.exports===Bs,fn=cg&&ug.process,fg=(function(){try{var e=_t&&_t.require&&_t.require("util").types;return e||fn&&fn.binding&&fn.binding("util")}catch{}})();Ke.exports=fg});var ln=p((ZO,Vs)=>{s();var lg=zs(),pg=cn(),Ks=Hs(),Ys=Ks&&Ks.isTypedArray,hg=Ys?pg(Ys):lg;Vs.exports=hg});var Xs=p((QO,Zs)=>{s();var yg=As(),dg=er(),mg=de(),gg=an(),wg=un(),Sg=ln(),vg=Object.prototype,xg=vg.hasOwnProperty;function _g(e,t){var r=mg(e),n=!r&&dg(e),i=!r&&!n&&gg(e),o=!r&&!n&&!i&&Sg(e),a=r||n||i||o,u=a?yg(e.length,String):[],l=u.length;for(var f in e)(t||xg.call(e,f))&&!(a&&(f=="length"||i&&(f=="offset"||f=="parent")||o&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||wg(f,l)))&&u.push(f);return u}Zs.exports=_g});var ea=p((tT,Qs)=>{s();var bg=Object.prototype;function qg(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||bg;return e===r}Qs.exports=qg});var ra=p((nT,ta)=>{s();function Eg(e,t){return function(r){return e(t(r))}}ta.exports=Eg});var ia=p((oT,na)=>{s();var Cg=ra(),Og=Cg(Object.keys,Object);na.exports=Og});var sa=p((aT,oa)=>{s();var Tg=ea(),Pg=ia(),Ag=Object.prototype,Fg=Ag.hasOwnProperty;function Lg(e){if(!Tg(e))return Pg(e);var t=[];for(var r in Object(e))Fg.call(e,r)&&r!="constructor"&&t.push(r);return t}oa.exports=Lg});var pn=p((cT,aa)=>{s();var Dg=Qr(),jg=tr();function Ig(e){return e!=null&&jg(e.length)&&!Dg(e)}aa.exports=Ig});var hn=p((lT,ua)=>{s();var Ng=Xs(),Rg=sa(),Mg=pn();function kg(e){return Mg(e)?Ng(e):Rg(e)}ua.exports=kg});var fa=p((hT,ca)=>{s();var $g=xs(),Ug=Ts(),Wg=hn();function Gg(e){return $g(e,Wg,Ug)}ca.exports=Gg});var ha=p((dT,pa)=>{s();var la=fa(),zg=1,Jg=Object.prototype,Bg=Jg.hasOwnProperty;function Hg(e,t,r,n,i,o){var a=r&zg,u=la(e),l=u.length,f=la(t),c=f.length;if(l!=c&&!a)return!1;for(var h=l;h--;){var y=u[h];if(!(a?y in t:Bg.call(t,y)))return!1}var d=o.get(e),g=o.get(t);if(d&&g)return d==t&&g==e;var m=!0;o.set(e,t),o.set(t,e);for(var w=a;++h<l;){y=u[h];var S=e[y],v=t[y];if(n)var C=a?n(v,S,y,t,e,o):n(S,v,y,e,t,o);if(!(C===void 0?S===v||i(S,v,r,n,o):C)){m=!1;break}w||(w=y=="constructor")}if(m&&!w){var Z=e.constructor,Fe=t.constructor;Z!=Fe&&"constructor"in e&&"constructor"in t&&!(typeof Z=="function"&&Z instanceof Z&&typeof Fe=="function"&&Fe instanceof Fe)&&(m=!1)}return o.delete(e),o.delete(t),m}pa.exports=Hg});var da=p((gT,ya)=>{s();var Kg=xe(),Yg=ve(),Vg=Kg(Yg,"DataView");ya.exports=Vg});var ga=p((ST,ma)=>{s();var Zg=xe(),Xg=ve(),Qg=Zg(Xg,"Promise");ma.exports=Qg});var yn=p((xT,wa)=>{s();var ew=xe(),tw=ve(),rw=ew(tw,"Set");wa.exports=rw});var va=p((bT,Sa)=>{s();var nw=xe(),iw=ve(),ow=nw(iw,"WeakMap");Sa.exports=ow});var Ta=p((ET,Oa)=>{s();var dn=da(),mn=Kt(),gn=ga(),wn=yn(),Sn=va(),Ca=Rt(),Ye=tn(),xa="[object Map]",sw="[object Object]",_a="[object Promise]",ba="[object Set]",qa="[object WeakMap]",Ea="[object DataView]",aw=Ye(dn),uw=Ye(mn),cw=Ye(gn),fw=Ye(wn),lw=Ye(Sn),je=Ca;(dn&&je(new dn(new ArrayBuffer(1)))!=Ea||mn&&je(new mn)!=xa||gn&&je(gn.resolve())!=_a||wn&&je(new wn)!=ba||Sn&&je(new Sn)!=qa)&&(je=function(e){var t=Ca(e),r=t==sw?e.constructor:void 0,n=r?Ye(r):"";if(n)switch(n){case aw:return Ea;case uw:return xa;case cw:return _a;case fw:return ba;case lw:return qa}return t});Oa.exports=je});var Na=p((OT,Ia)=>{s();var vn=rn(),pw=nn(),hw=gs(),yw=ha(),Pa=Ta(),Aa=de(),Fa=an(),dw=ln(),mw=1,La="[object Arguments]",Da="[object Array]",rr="[object Object]",gw=Object.prototype,ja=gw.hasOwnProperty;function ww(e,t,r,n,i,o){var a=Aa(e),u=Aa(t),l=a?Da:Pa(e),f=u?Da:Pa(t);l=l==La?rr:l,f=f==La?rr:f;var c=l==rr,h=f==rr,y=l==f;if(y&&Fa(e)){if(!Fa(t))return!1;a=!0,c=!1}if(y&&!c)return o||(o=new vn),a||dw(e)?pw(e,t,r,n,i,o):hw(e,t,l,r,n,i,o);if(!(r&mw)){var d=c&&ja.call(e,"__wrapped__"),g=h&&ja.call(t,"__wrapped__");if(d||g){var m=d?e.value():e,w=g?t.value():t;return o||(o=new vn),i(m,w,r,n,o)}}return y?(o||(o=new vn),yw(e,t,r,n,i,o)):!1}Ia.exports=ww});var xn=p((PT,ka)=>{s();var Sw=Na(),Ra=ct();function Ma(e,t,r,n,i){return e===t?!0:e==null||t==null||!Ra(e)&&!Ra(t)?e!==e&&t!==t:Sw(e,t,r,n,Ma,i)}ka.exports=Ma});var Ua=p((FT,$a)=>{s();var vw=rn(),xw=xn(),_w=1,bw=2;function qw(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<o;){u=r[i];var l=u[0],f=e[l],c=u[1];if(a&&u[2]){if(f===void 0&&!(l in e))return!1}else{var h=new vw;if(n)var y=n(f,c,l,e,t,h);if(!(y===void 0?xw(c,f,_w|bw,n,h):y))return!1}}return!0}$a.exports=qw});var _n=p((DT,Wa)=>{s();var Ew=Ur();function Cw(e){return e===e&&!Ew(e)}Wa.exports=Cw});var za=p((IT,Ga)=>{s();var Ow=_n(),Tw=hn();function Pw(e){for(var t=Tw(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Ow(i)]}return t}Ga.exports=Pw});var bn=p((RT,Ja)=>{s();function Aw(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}Ja.exports=Aw});var Ha=p((kT,Ba)=>{s();var Fw=Ua(),Lw=za(),Dw=bn();function jw(e){var t=Lw(e);return t.length==1&&t[0][2]?Dw(t[0][0],t[0][1]):function(r){return r===e||Fw(r,e,t)}}Ba.exports=jw});var nr=p((UT,Ka)=>{s();var Iw=de(),Nw=Wr(),Rw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mw=/^\w*$/;function kw(e,t){if(Iw(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Nw(e)?!0:Mw.test(e)||!Rw.test(e)||t!=null&&e in Object(t)}Ka.exports=kw});var Za=p((GT,Va)=>{s();var Ya=Yt(),$w="Expected a function";function qn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError($w);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(qn.Cache||Ya),r}qn.Cache=Ya;Va.exports=qn});var Qa=p((JT,Xa)=>{s();var Uw=Za(),Ww=500;function Gw(e){var t=Uw(e,function(n){return r.size===Ww&&r.clear(),n}),r=t.cache;return t}Xa.exports=Gw});var tu=p((HT,eu)=>{s();var zw=Qa(),Jw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bw=/\\(\\)?/g,Hw=zw(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Jw,function(r,n,i,o){t.push(i?o.replace(Bw,"$1"):n||r)}),t});eu.exports=Hw});var En=p((YT,ru)=>{s();function Kw(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}ru.exports=Kw});var uu=p((ZT,au)=>{s();var nu=$r(),Yw=En(),Vw=de(),Zw=Wr(),Xw=1/0,iu=nu?nu.prototype:void 0,ou=iu?iu.toString:void 0;function su(e){if(typeof e=="string")return e;if(Vw(e))return Yw(e,su)+"";if(Zw(e))return ou?ou.call(e):"";var t=e+"";return t=="0"&&1/e==-Xw?"-0":t}au.exports=su});var fu=p((QT,cu)=>{s();var Qw=uu();function eS(e){return e==null?"":Qw(e)}cu.exports=eS});var Cn=p((t1,lu)=>{s();var tS=de(),rS=nr(),nS=tu(),iS=fu();function oS(e,t){return tS(e)?e:rS(e,t)?[e]:nS(iS(e))}lu.exports=oS});var bt=p((n1,pu)=>{s();var sS=Wr(),aS=1/0;function uS(e){if(typeof e=="string"||sS(e))return e;var t=e+"";return t=="0"&&1/e==-aS?"-0":t}pu.exports=uS});var On=p((o1,hu)=>{s();var cS=Cn(),fS=bt();function lS(e,t){t=cS(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[fS(t[r++])];return r&&r==n?e:void 0}hu.exports=lS});var du=p((a1,yu)=>{s();var pS=On();function hS(e,t,r){var n=e==null?void 0:pS(e,t);return n===void 0?r:n}yu.exports=hS});var gu=p((c1,mu)=>{s();function yS(e,t){return e!=null&&t in Object(e)}mu.exports=yS});var Su=p((l1,wu)=>{s();var dS=Cn(),mS=er(),gS=de(),wS=un(),SS=tr(),vS=bt();function xS(e,t,r){t=dS(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=vS(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&SS(i)&&wS(a,i)&&(gS(e)||mS(e)))}wu.exports=xS});var xu=p((h1,vu)=>{s();var _S=gu(),bS=Su();function qS(e,t){return e!=null&&bS(e,t,_S)}vu.exports=qS});var bu=p((d1,_u)=>{s();var ES=xn(),CS=du(),OS=xu(),TS=nr(),PS=_n(),AS=bn(),FS=bt(),LS=1,DS=2;function jS(e,t){return TS(e)&&PS(t)?AS(FS(e),t):function(r){var n=CS(r,e);return n===void 0&&n===t?OS(r,e):ES(t,n,LS|DS)}}_u.exports=jS});var ir=p((g1,qu)=>{s();function IS(e){return e}qu.exports=IS});var Cu=p((S1,Eu)=>{s();function NS(e){return function(t){return t?.[e]}}Eu.exports=NS});var Tu=p((x1,Ou)=>{s();var RS=On();function MS(e){return function(t){return RS(t,e)}}Ou.exports=MS});var Au=p((b1,Pu)=>{s();var kS=Cu(),$S=Tu(),US=nr(),WS=bt();function GS(e){return US(e)?kS(WS(e)):$S(e)}Pu.exports=GS});var Lu=p((E1,Fu)=>{s();var zS=Ha(),JS=bu(),BS=ir(),HS=de(),KS=Au();function YS(e){return typeof e=="function"?e:e==null?BS:typeof e=="object"?HS(e)?JS(e[0],e[1]):zS(e):KS(e)}Fu.exports=YS});var ju=p((O1,Du)=>{s();function VS(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}Du.exports=VS});var Nu=p((P1,Iu)=>{s();function ZS(e){return e!==e}Iu.exports=ZS});var Mu=p((F1,Ru)=>{s();function XS(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}Ru.exports=XS});var $u=p((D1,ku)=>{s();var QS=ju(),ev=Nu(),tv=Mu();function rv(e,t,r){return t===t?tv(e,t,r):QS(e,ev,r)}ku.exports=rv});var Tn=p((I1,Uu)=>{s();var nv=$u();function iv(e,t){var r=e==null?0:e.length;return!!r&&nv(e,t,0)>-1}Uu.exports=iv});var Pn=p((R1,Wu)=>{s();function ov(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}Wu.exports=ov});var zu=p((k1,Gu)=>{s();function sv(){}Gu.exports=sv});var Bu=p((U1,Ju)=>{s();var An=yn(),av=zu(),uv=Qt(),cv=1/0,fv=An&&1/uv(new An([,-0]))[1]==cv?function(e){return new An(e)}:av;Ju.exports=fv});var Ku=p((G1,Hu)=>{s();var lv=Zt(),pv=Tn(),hv=Pn(),yv=Xt(),dv=Bu(),mv=Qt(),gv=200;function wv(e,t,r){var n=-1,i=pv,o=e.length,a=!0,u=[],l=u;if(r)a=!1,i=hv;else if(o>=gv){var f=t?null:dv(e);if(f)return mv(f);a=!1,i=yv,l=new lv}else l=t?[]:u;e:for(;++n<o;){var c=e[n],h=t?t(c):c;if(c=r||c!==0?c:0,a&&h===h){for(var y=l.length;y--;)if(l[y]===h)continue e;t&&l.push(h),u.push(c)}else i(l,h,r)||(l!==u&&l.push(h),u.push(c))}return u}Hu.exports=wv});var Vu=p((J1,Yu)=>{s();var Sv=Lu(),vv=Ku();function xv(e,t){return e&&e.length?vv(e,Sv(t,2)):[]}Yu.exports=xv});var Xu=p((H1,Zu)=>{s();var _v=Zt(),bv=Tn(),qv=Pn(),Ev=En(),Cv=cn(),Ov=Xt(),Tv=200;function Pv(e,t,r,n){var i=-1,o=bv,a=!0,u=e.length,l=[],f=t.length;if(!u)return l;r&&(t=Ev(t,Cv(r))),n?(o=qv,a=!1):t.length>=Tv&&(o=Ov,a=!1,t=new _v(t));e:for(;++i<u;){var c=e[i],h=r==null?c:r(c);if(c=n||c!==0?c:0,a&&h===h){for(var y=f;y--;)if(t[y]===h)continue e;l.push(c)}else o(t,h,n)||l.push(c)}return l}Zu.exports=Pv});var rc=p((Y1,tc)=>{s();var Qu=$r(),Av=er(),Fv=de(),ec=Qu?Qu.isConcatSpreadable:void 0;function Lv(e){return Fv(e)||Av(e)||!!(ec&&e&&e[ec])}tc.exports=Lv});var oc=p((Z1,ic)=>{s();var Dv=sn(),jv=rc();function nc(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=jv),i||(i=[]);++o<a;){var u=e[o];t>0&&r(u)?t>1?nc(u,t-1,r,n,i):Dv(i,u):n||(i[i.length]=u)}return i}ic.exports=nc});var ac=p((Q1,sc)=>{s();function Iv(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}sc.exports=Iv});var fc=p((tP,cc)=>{s();var Nv=ac(),uc=Math.max;function Rv(e,t,r){return t=uc(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=uc(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=n[i];return u[t]=r(a),Nv(e,this,u)}}cc.exports=Rv});var pc=p((nP,lc)=>{s();function Mv(e){return function(){return e}}lc.exports=Mv});var yc=p((oP,hc)=>{s();var kv=xe(),$v=(function(){try{var e=kv(Object,"defineProperty");return e({},"",{}),e}catch{}})();hc.exports=$v});var gc=p((aP,mc)=>{s();var Uv=pc(),dc=yc(),Wv=ir(),Gv=dc?function(e,t){return dc(e,"toString",{configurable:!0,enumerable:!1,value:Uv(t),writable:!0})}:Wv;mc.exports=Gv});var Sc=p((cP,wc)=>{s();var zv=800,Jv=16,Bv=Date.now;function Hv(e){var t=0,r=0;return function(){var n=Bv(),i=Jv-(n-r);if(r=n,i>0){if(++t>=zv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}wc.exports=Hv});var xc=p((lP,vc)=>{s();var Kv=gc(),Yv=Sc(),Vv=Yv(Kv);vc.exports=Vv});var bc=p((hP,_c)=>{s();var Zv=ir(),Xv=fc(),Qv=xc();function ex(e,t){return Qv(Xv(e,t,Zv),e+"")}_c.exports=ex});var Ec=p((dP,qc)=>{s();var tx=pn(),rx=ct();function nx(e){return rx(e)&&tx(e)}qc.exports=nx});var Tc=p((gP,Oc)=>{s();var ix=Xu(),ox=oc(),sx=bc(),Cc=Ec(),ax=sx(function(e,t){return Cc(e)?ix(e,ox(t,1,Cc,!0)):[]});Oc.exports=ax});var ae={};nh(ae,{__addDisposableResource:()=>tf,__assign:()=>or,__asyncDelegator:()=>Hc,__asyncGenerator:()=>Bc,__asyncValues:()=>Kc,__await:()=>Ve,__awaiter:()=>$c,__classPrivateFieldGet:()=>Xc,__classPrivateFieldIn:()=>ef,__classPrivateFieldSet:()=>Qc,__createBinding:()=>ar,__decorate:()=>Dc,__disposeResources:()=>rf,__esDecorate:()=>Ic,__exportStar:()=>Wc,__extends:()=>Fc,__generator:()=>Uc,__importDefault:()=>Zc,__importStar:()=>Vc,__makeTemplateObject:()=>Yc,__metadata:()=>kc,__param:()=>jc,__propKey:()=>Rc,__read:()=>jn,__rest:()=>Lc,__rewriteRelativeImportExtension:()=>nf,__runInitializers:()=>Nc,__setFunctionName:()=>Mc,__spread:()=>Gc,__spreadArray:()=>Jc,__spreadArrays:()=>zc,__values:()=>sr,default:()=>lx});function Fc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ln(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Lc(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Dc(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}function jc(e,t){return function(r,n){t(r,n,e)}}function Ic(e,t,r,n,i,o){function a(S){if(S!==void 0&&typeof S!="function")throw new TypeError("Function expected");return S}for(var u=n.kind,l=u==="getter"?"get":u==="setter"?"set":"value",f=!t&&e?n.static?e:e.prototype:null,c=t||(f?Object.getOwnPropertyDescriptor(f,n.name):{}),h,y=!1,d=r.length-1;d>=0;d--){var g={};for(var m in n)g[m]=m==="access"?{}:n[m];for(var m in n.access)g.access[m]=n.access[m];g.addInitializer=function(S){if(y)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(S||null))};var w=(0,r[d])(u==="accessor"?{get:c.get,set:c.set}:c[l],g);if(u==="accessor"){if(w===void 0)continue;if(w===null||typeof w!="object")throw new TypeError("Object expected");(h=a(w.get))&&(c.get=h),(h=a(w.set))&&(c.set=h),(h=a(w.init))&&i.unshift(h)}else(h=a(w))&&(u==="field"?i.unshift(h):c[l]=h)}f&&Object.defineProperty(f,n.name,c),y=!0}function Nc(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function Rc(e){return typeof e=="symbol"?e:"".concat(e)}function Mc(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function kc(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function $c(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function u(c){try{f(n.next(c))}catch(h){a(h)}}function l(c){try{f(n.throw(c))}catch(h){a(h)}}function f(c){c.done?o(c.value):i(c.value).then(u,l)}f((n=n.apply(e,t||[])).next())})}function Uc(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(f){return function(c){return l([f,c])}}function l(f){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,f[0]&&(r=0)),r;)try{if(n=1,i&&(o=f[0]&2?i.return:f[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,f[1])).done)return o;switch(i=0,o&&(f=[f[0]&2,o.value]),f[0]){case 0:case 1:o=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]<o[3])){r.label=f[1];break}if(f[0]===6&&r.label<o[1]){r.label=o[1],o=f;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(f);break}o[2]&&r.ops.pop(),r.trys.pop();continue}f=t.call(e,r)}catch(c){f=[6,c],i=0}finally{n=o=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function Wc(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ar(t,e,r)}function sr(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function jn(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(u){a={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function Gc(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(jn(arguments[t]));return e}function zc(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)n[i]=o[a];return n}function Jc(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Ve(e){return this instanceof Ve?(this.v=e,this):new Ve(e)}function Bc(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(d){return function(g){return Promise.resolve(g).then(d,h)}}function u(d,g){n[d]&&(i[d]=function(m){return new Promise(function(w,S){o.push([d,m,w,S])>1||l(d,m)})},g&&(i[d]=g(i[d])))}function l(d,g){try{f(n[d](g))}catch(m){y(o[0][3],m)}}function f(d){d.value instanceof Ve?Promise.resolve(d.value.v).then(c,h):y(o[0][2],d)}function c(d){l("next",d)}function h(d){l("throw",d)}function y(d,g){d(g),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Hc(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,o){t[i]=e[i]?function(a){return(r=!r)?{value:Ve(e[i](a)),done:!1}:o?o(a):a}:o}}function Kc(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof sr=="function"?sr(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(a){return new Promise(function(u,l){a=e[o](a),i(u,l,a.done,a.value)})}}function i(o,a,u,l){Promise.resolve(l).then(function(f){o({value:f,done:u})},a)}}function Yc(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Vc(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=Dn(e),n=0;n<r.length;n++)r[n]!=="default"&&ar(t,e,r[n]);return cx(t,e),t}function Zc(e){return e&&e.__esModule?e:{default:e}}function Xc(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function Qc(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function ef(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function tf(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}function rf(e){function t(o){e.error=e.hasError?new fx(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}var r,n=0;function i(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(a){return t(a),i()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function nf(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,o,a){return n?t?".jsx":".js":i&&(!o||!a)?r:i+o+"."+a.toLowerCase()+"js"}):e}var Ln,or,ar,cx,Dn,fx,lx,ue=rh(()=>{s();Ln=function(e,t){return Ln=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ln(e,t)};or=function(){return or=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},or.apply(this,arguments)};ar=Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});cx=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},Dn=function(e){return Dn=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},Dn(e)};fx=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};lx={__extends:Fc,__assign:or,__rest:Lc,__decorate:Dc,__param:jc,__esDecorate:Ic,__runInitializers:Nc,__propKey:Rc,__setFunctionName:Mc,__metadata:kc,__awaiter:$c,__generator:Uc,__createBinding:ar,__exportStar:Wc,__values:sr,__read:jn,__spread:Gc,__spreadArrays:zc,__spreadArray:Jc,__await:Ve,__asyncGenerator:Bc,__asyncDelegator:Hc,__asyncValues:Kc,__makeTemplateObject:Yc,__importStar:Vc,__importDefault:Zc,__classPrivateFieldGet:Xc,__classPrivateFieldSet:Qc,__classPrivateFieldIn:ef,__addDisposableResource:tf,__disposeResources:rf,__rewriteRelativeImportExtension:nf}});var of=p(Ze=>{"use strict";s();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.lowerCase=Ze.localeLowerCase=void 0;var px={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{\u0130:"i",I:"\u0131",I\u0307:"i"}},az:{regexp:/\u0130/g,map:{\u0130:"i",I:"\u0131",I\u0307:"i"}},lt:{regexp:/\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g,map:{I:"i\u0307",J:"j\u0307",\u012E:"\u012F\u0307",\u00CC:"i\u0307\u0300",\u00CD:"i\u0307\u0301",\u0128:"i\u0307\u0303"}}};function hx(e,t){var r=px[t.toLowerCase()];return In(r?e.replace(r.regexp,function(n){return r.map[n]}):e)}Ze.localeLowerCase=hx;function In(e){return e.toLowerCase()}Ze.lowerCase=In});var Ie=p(ur=>{"use strict";s();Object.defineProperty(ur,"__esModule",{value:!0});ur.noCase=void 0;var yx=of(),dx=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],mx=/[^A-Z0-9]+/gi;function gx(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,n=r===void 0?dx:r,i=t.stripRegexp,o=i===void 0?mx:i,a=t.transform,u=a===void 0?yx.lowerCase:a,l=t.delimiter,f=l===void 0?" ":l,c=sf(sf(e,n,"$1\0$2"),o,"\0"),h=0,y=c.length;c.charAt(h)==="\0";)h++;for(;c.charAt(y-1)==="\0";)y--;return c.slice(h,y).split("\0").map(u).join(f)}ur.noCase=gx;function sf(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(n,i){return n.replace(i,r)},e)}});var Nn=p(_e=>{"use strict";s();Object.defineProperty(_e,"__esModule",{value:!0});_e.pascalCase=_e.pascalCaseTransformMerge=_e.pascalCaseTransform=void 0;var wx=(ue(),le(ae)),Sx=Ie();function af(e,t){var r=e.charAt(0),n=e.substr(1).toLowerCase();return t>0&&r>="0"&&r<="9"?"_"+r+n:""+r.toUpperCase()+n}_e.pascalCaseTransform=af;function vx(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}_e.pascalCaseTransformMerge=vx;function xx(e,t){return t===void 0&&(t={}),Sx.noCase(e,wx.__assign({delimiter:"",transform:af},t))}_e.pascalCase=xx});var cf=p(be=>{"use strict";s();Object.defineProperty(be,"__esModule",{value:!0});be.camelCase=be.camelCaseTransformMerge=be.camelCaseTransform=void 0;var _x=(ue(),le(ae)),Rn=Nn();function uf(e,t){return t===0?e.toLowerCase():Rn.pascalCaseTransform(e,t)}be.camelCaseTransform=uf;function bx(e,t){return t===0?e.toLowerCase():Rn.pascalCaseTransformMerge(e)}be.camelCaseTransformMerge=bx;function qx(e,t){return t===void 0&&(t={}),Rn.pascalCase(e,_x.__assign({transform:uf},t))}be.camelCase=qx});var Mn=p(cr=>{"use strict";s();Object.defineProperty(cr,"__esModule",{value:!0});cr.upperCaseFirst=void 0;function Ex(e){return e.charAt(0).toUpperCase()+e.substr(1)}cr.upperCaseFirst=Ex});var kn=p(Xe=>{"use strict";s();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.capitalCase=Xe.capitalCaseTransform=void 0;var Cx=(ue(),le(ae)),Ox=Ie(),Tx=Mn();function ff(e){return Tx.upperCaseFirst(e.toLowerCase())}Xe.capitalCaseTransform=ff;function Px(e,t){return t===void 0&&(t={}),Ox.noCase(e,Cx.__assign({delimiter:" ",transform:ff},t))}Xe.capitalCase=Px});var lf=p(Qe=>{"use strict";s();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.upperCase=Qe.localeUpperCase=void 0;var Ax={tr:{regexp:/[\u0069]/g,map:{i:"\u0130"}},az:{regexp:/[\u0069]/g,map:{i:"\u0130"}},lt:{regexp:/[\u0069\u006A\u012F]\u0307|\u0069\u0307[\u0300\u0301\u0303]/g,map:{i\u0307:"I",j\u0307:"J",\u012F\u0307:"\u012E",i\u0307\u0300:"\xCC",i\u0307\u0301:"\xCD",i\u0307\u0303:"\u0128"}}};function Fx(e,t){var r=Ax[t.toLowerCase()];return $n(r?e.replace(r.regexp,function(n){return r.map[n]}):e)}Qe.localeUpperCase=Fx;function $n(e){return e.toUpperCase()}Qe.upperCase=$n});var pf=p(fr=>{"use strict";s();Object.defineProperty(fr,"__esModule",{value:!0});fr.constantCase=void 0;var Lx=(ue(),le(ae)),Dx=Ie(),jx=lf();function Ix(e,t){return t===void 0&&(t={}),Dx.noCase(e,Lx.__assign({delimiter:"_",transform:jx.upperCase},t))}fr.constantCase=Ix});var qt=p(lr=>{"use strict";s();Object.defineProperty(lr,"__esModule",{value:!0});lr.dotCase=void 0;var Nx=(ue(),le(ae)),Rx=Ie();function Mx(e,t){return t===void 0&&(t={}),Rx.noCase(e,Nx.__assign({delimiter:"."},t))}lr.dotCase=Mx});var hf=p(pr=>{"use strict";s();Object.defineProperty(pr,"__esModule",{value:!0});pr.headerCase=void 0;var kx=(ue(),le(ae)),$x=kn();function Ux(e,t){return t===void 0&&(t={}),$x.capitalCase(e,kx.__assign({delimiter:"-"},t))}pr.headerCase=Ux});var yf=p(hr=>{"use strict";s();Object.defineProperty(hr,"__esModule",{value:!0});hr.paramCase=void 0;var Wx=(ue(),le(ae)),Gx=qt();function zx(e,t){return t===void 0&&(t={}),Gx.dotCase(e,Wx.__assign({delimiter:"-"},t))}hr.paramCase=zx});var df=p(yr=>{"use strict";s();Object.defineProperty(yr,"__esModule",{value:!0});yr.pathCase=void 0;var Jx=(ue(),le(ae)),Bx=qt();function Hx(e,t){return t===void 0&&(t={}),Bx.dotCase(e,Jx.__assign({delimiter:"/"},t))}yr.pathCase=Hx});var gf=p(et=>{"use strict";s();Object.defineProperty(et,"__esModule",{value:!0});et.sentenceCase=et.sentenceCaseTransform=void 0;var Kx=(ue(),le(ae)),Yx=Ie(),Vx=Mn();function mf(e,t){var r=e.toLowerCase();return t===0?Vx.upperCaseFirst(r):r}et.sentenceCaseTransform=mf;function Zx(e,t){return t===void 0&&(t={}),Yx.noCase(e,Kx.__assign({delimiter:" ",transform:mf},t))}et.sentenceCase=Zx});var wf=p(dr=>{"use strict";s();Object.defineProperty(dr,"__esModule",{value:!0});dr.snakeCase=void 0;var Xx=(ue(),le(ae)),Qx=qt();function e0(e,t){return t===void 0&&(t={}),Qx.dotCase(e,Xx.__assign({delimiter:"_"},t))}dr.snakeCase=e0});var Sf=p(oe=>{"use strict";s();Object.defineProperty(oe,"__esModule",{value:!0});var pe=(ue(),le(ae));pe.__exportStar(cf(),oe);pe.__exportStar(kn(),oe);pe.__exportStar(pf(),oe);pe.__exportStar(qt(),oe);pe.__exportStar(hf(),oe);pe.__exportStar(Ie(),oe);pe.__exportStar(yf(),oe);pe.__exportStar(Nn(),oe);pe.__exportStar(df(),oe);pe.__exportStar(gf(),oe);pe.__exportStar(wf(),oe)});var X=p(Wn=>{"use strict";s();Wn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{t.push((i,o)=>i!=null?n(i):r(o)),e.apply(this,t)})},"name",{value:e.name})};Wn.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);t.pop(),e.apply(this,t).then(n=>r(null,n),r)},"name",{value:e.name})}});var bf=p((OA,_f)=>{s();var qe=M("constants"),u0=process.cwd,gr=null,c0=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return gr||(gr=u0.call(process)),gr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Gn=process.chdir,process.chdir=function(e){gr=null,Gn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Gn));var Gn;_f.exports=f0;function f0(e){qe.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=u(e.stat),e.fstat=u(e.fstat),e.lstat=u(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(c,h,y){y&&process.nextTick(y)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(c,h,y,d){d&&process.nextTick(d)},e.lchownSync=function(){}),c0==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:(function(c){function h(y,d,g){var m=Date.now(),w=0;c(y,d,function S(v){if(v&&(v.code==="EACCES"||v.code==="EPERM"||v.code==="EBUSY")&&Date.now()-m<6e4){setTimeout(function(){e.stat(d,function(C,Z){C&&C.code==="ENOENT"?c(y,d,S):g(v)})},w),w<100&&(w+=10);return}g&&g(v)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,c),h})(e.rename)),e.read=typeof e.read!="function"?e.read:(function(c){function h(y,d,g,m,w,S){var v;if(S&&typeof S=="function"){var C=0;v=function(Z,Fe,yi){if(Z&&Z.code==="EAGAIN"&&C<10)return C++,c.call(e,y,d,g,m,w,v);S.apply(this,arguments)}}return c.call(e,y,d,g,m,w,v)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,c),h})(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:(function(c){return function(h,y,d,g,m){for(var w=0;;)try{return c.call(e,h,y,d,g,m)}catch(S){if(S.code==="EAGAIN"&&w<10){w++;continue}throw S}}})(e.readSync);function t(c){c.lchmod=function(h,y,d){c.open(h,qe.O_WRONLY|qe.O_SYMLINK,y,function(g,m){if(g){d&&d(g);return}c.fchmod(m,y,function(w){c.close(m,function(S){d&&d(w||S)})})})},c.lchmodSync=function(h,y){var d=c.openSync(h,qe.O_WRONLY|qe.O_SYMLINK,y),g=!0,m;try{m=c.fchmodSync(d,y),g=!1}finally{if(g)try{c.closeSync(d)}catch{}else c.closeSync(d)}return m}}function r(c){qe.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(h,y,d,g){c.open(h,qe.O_SYMLINK,function(m,w){if(m){g&&g(m);return}c.futimes(w,y,d,function(S){c.close(w,function(v){g&&g(S||v)})})})},c.lutimesSync=function(h,y,d){var g=c.openSync(h,qe.O_SYMLINK),m,w=!0;try{m=c.futimesSync(g,y,d),w=!1}finally{if(w)try{c.closeSync(g)}catch{}else c.closeSync(g)}return m}):c.futimes&&(c.lutimes=function(h,y,d,g){g&&process.nextTick(g)},c.lutimesSync=function(){})}function n(c){return c&&function(h,y,d){return c.call(e,h,y,function(g){f(g)&&(g=null),d&&d.apply(this,arguments)})}}function i(c){return c&&function(h,y){try{return c.call(e,h,y)}catch(d){if(!f(d))throw d}}}function o(c){return c&&function(h,y,d,g){return c.call(e,h,y,d,function(m){f(m)&&(m=null),g&&g.apply(this,arguments)})}}function a(c){return c&&function(h,y,d){try{return c.call(e,h,y,d)}catch(g){if(!f(g))throw g}}}function u(c){return c&&function(h,y,d){typeof y=="function"&&(d=y,y=null);function g(m,w){w&&(w.uid<0&&(w.uid+=4294967296),w.gid<0&&(w.gid+=4294967296)),d&&d.apply(this,arguments)}return y?c.call(e,h,y,g):c.call(e,h,g)}}function l(c){return c&&function(h,y){var d=y?c.call(e,h,y):c.call(e,h);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function f(c){if(!c||c.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var Cf=p((PA,Ef)=>{s();var qf=M("stream").Stream;Ef.exports=l0;function l0(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);qf.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var a=Object.keys(i),u=0,l=a.length;u<l;u++){var f=a[u];this[f]=i[f]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(c,h){if(c){o.emit("error",c),o.readable=!1;return}o.fd=h,o.emit("open",h),o._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);qf.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),a=0,u=o.length;a<u;a++){var l=o[a];this[l]=i[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Tf=p((FA,Of)=>{"use strict";s();Of.exports=h0;var p0=Object.getPrototypeOf||function(e){return e.__proto__};function h0(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:p0(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var Q=p((DA,Bn)=>{s();var I=M("fs"),y0=bf(),d0=Cf(),m0=Tf(),wr=M("util"),z,vr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(z=Symbol.for("graceful-fs.queue"),vr=Symbol.for("graceful-fs.previous")):(z="___graceful-fs.queue",vr="___graceful-fs.previous");function g0(){}function Ff(e,t){Object.defineProperty(e,z,{get:function(){return t}})}var Ne=g0;wr.debuglog?Ne=wr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ne=function(){var e=wr.format.apply(wr,arguments);e="GFS4: "+e.split(/\n/).join(`
2
+ GFS4: `),console.error(e)});I[z]||(Pf=global[z]||[],Ff(I,Pf),I.close=(function(e){function t(r,n){return e.call(I,r,function(i){i||Af(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,vr,{value:e}),t})(I.close),I.closeSync=(function(e){function t(r){e.apply(I,arguments),Af()}return Object.defineProperty(t,vr,{value:e}),t})(I.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ne(I[z]),M("assert").equal(I[z].length,0)}));var Pf;global[z]||Ff(global,I[z]);Bn.exports=zn(m0(I));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!I.__patched&&(Bn.exports=zn(I),I.__patched=!0);function zn(e){y0(e),e.gracefulify=zn,e.createReadStream=Fe,e.createWriteStream=yi;var t=e.readFile;e.readFile=r;function r(x,E,b){return typeof E=="function"&&(b=E,E=null),U(x,E,b);function U(W,k,D,N){return t(W,k,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?tt([U,[W,k,D],T,N||Date.now(),Date.now()]):typeof D=="function"&&D.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(x,E,b,U){return typeof b=="function"&&(U=b,b=null),W(x,E,b,U);function W(k,D,N,T,G){return n(k,D,N,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?tt([W,[k,D,N,T],F,G||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=a);function a(x,E,b,U){return typeof b=="function"&&(U=b,b=null),W(x,E,b,U);function W(k,D,N,T,G){return o(k,D,N,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?tt([W,[k,D,N,T],F,G||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var u=e.copyFile;u&&(e.copyFile=l);function l(x,E,b,U){return typeof b=="function"&&(U=b,b=0),W(x,E,b,U);function W(k,D,N,T,G){return u(k,D,N,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?tt([W,[k,D,N,T],F,G||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var f=e.readdir;e.readdir=h;var c=/^v[0-5]\./;function h(x,E,b){typeof E=="function"&&(b=E,E=null);var U=c.test(process.version)?function(D,N,T,G){return f(D,W(D,N,T,G))}:function(D,N,T,G){return f(D,N,W(D,N,T,G))};return U(x,E,b);function W(k,D,N,T){return function(G,F){G&&(G.code==="EMFILE"||G.code==="ENFILE")?tt([U,[k,D,N],G,T||Date.now(),Date.now()]):(F&&F.sort&&F.sort(),typeof N=="function"&&N.call(this,G,F))}}}if(process.version.substr(0,4)==="v0.8"){var y=d0(e);S=y.ReadStream,C=y.WriteStream}var d=e.ReadStream;d&&(S.prototype=Object.create(d.prototype),S.prototype.open=v);var g=e.WriteStream;g&&(C.prototype=Object.create(g.prototype),C.prototype.open=Z),Object.defineProperty(e,"ReadStream",{get:function(){return S},set:function(x){S=x},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return C},set:function(x){C=x},enumerable:!0,configurable:!0});var m=S;Object.defineProperty(e,"FileReadStream",{get:function(){return m},set:function(x){m=x},enumerable:!0,configurable:!0});var w=C;Object.defineProperty(e,"FileWriteStream",{get:function(){return w},set:function(x){w=x},enumerable:!0,configurable:!0});function S(x,E){return this instanceof S?(d.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function v(){var x=this;Rr(x.path,x.flags,x.mode,function(E,b){E?(x.autoClose&&x.destroy(),x.emit("error",E)):(x.fd=b,x.emit("open",b),x.read())})}function C(x,E){return this instanceof C?(g.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function Z(){var x=this;Rr(x.path,x.flags,x.mode,function(E,b){E?(x.destroy(),x.emit("error",E)):(x.fd=b,x.emit("open",b))})}function Fe(x,E){return new e.ReadStream(x,E)}function yi(x,E){return new e.WriteStream(x,E)}var th=e.open;e.open=Rr;function Rr(x,E,b,U){return typeof b=="function"&&(U=b,b=null),W(x,E,b,U);function W(k,D,N,T,G){return th(k,D,N,function(F,Aq){F&&(F.code==="EMFILE"||F.code==="ENFILE")?tt([W,[k,D,N,T],F,G||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}return e}function tt(e){Ne("ENQUEUE",e[0].name,e[1]),I[z].push(e),Jn()}var Sr;function Af(){for(var e=Date.now(),t=0;t<I[z].length;++t)I[z][t].length>2&&(I[z][t][3]=e,I[z][t][4]=e);Jn()}function Jn(){if(clearTimeout(Sr),Sr=void 0,I[z].length!==0){var e=I[z].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(i===void 0)Ne("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Ne("TIMEOUT",t.name,r);var a=r.pop();typeof a=="function"&&a.call(null,n)}else{var u=Date.now()-o,l=Math.max(o-i,1),f=Math.min(l*1.2,100);u>=f?(Ne("RETRY",t.name,r),t.apply(null,r.concat([i]))):I[z].push(e)}Sr===void 0&&(Sr=setTimeout(Jn,0))}}});var rt=p(we=>{"use strict";s();var Lf=X().fromCallback,K=Q(),w0=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof K[e]=="function");Object.assign(we,K);w0.forEach(e=>{we[e]=Lf(K[e])});we.exists=function(e,t){return typeof t=="function"?K.exists(e,t):new Promise(r=>K.exists(e,r))};we.read=function(e,t,r,n,i,o){return typeof o=="function"?K.read(e,t,r,n,i,o):new Promise((a,u)=>{K.read(e,t,r,n,i,(l,f,c)=>{if(l)return u(l);a({bytesRead:f,buffer:c})})})};we.write=function(e,t,...r){return typeof r[r.length-1]=="function"?K.write(e,t,...r):new Promise((n,i)=>{K.write(e,t,...r,(o,a,u)=>{if(o)return i(o);n({bytesWritten:a,buffer:u})})})};we.readv=function(e,t,...r){return typeof r[r.length-1]=="function"?K.readv(e,t,...r):new Promise((n,i)=>{K.readv(e,t,...r,(o,a,u)=>{if(o)return i(o);n({bytesRead:a,buffers:u})})})};we.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?K.writev(e,t,...r):new Promise((n,i)=>{K.writev(e,t,...r,(o,a,u)=>{if(o)return i(o);n({bytesWritten:a,buffers:u})})})};typeof K.realpath.native=="function"?we.realpath.native=Lf(K.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var jf=p((RA,Df)=>{"use strict";s();var S0=M("path");Df.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(S0.parse(t).root,""))){let n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}}});var Mf=p((kA,Hn)=>{"use strict";s();var If=rt(),{checkPath:Nf}=jf(),Rf=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};Hn.exports.makeDir=async(e,t)=>(Nf(e),If.mkdir(e,{mode:Rf(t),recursive:!0}));Hn.exports.makeDirSync=(e,t)=>(Nf(e),If.mkdirSync(e,{mode:Rf(t),recursive:!0}))});var he=p((UA,kf)=>{"use strict";s();var v0=X().fromPromise,{makeDir:x0,makeDirSync:Kn}=Mf(),Yn=v0(x0);kf.exports={mkdirs:Yn,mkdirsSync:Kn,mkdirp:Yn,mkdirpSync:Kn,ensureDir:Yn,ensureDirSync:Kn}});var Ee=p((GA,Uf)=>{"use strict";s();var _0=X().fromPromise,$f=rt();function b0(e){return $f.access(e).then(()=>!0).catch(()=>!1)}Uf.exports={pathExists:_0(b0),pathExistsSync:$f.existsSync}});var Vn=p((JA,Wf)=>{"use strict";s();var nt=Q();function q0(e,t,r,n){nt.open(e,"r+",(i,o)=>{if(i)return n(i);nt.futimes(o,t,r,a=>{nt.close(o,u=>{n&&n(a||u)})})})}function E0(e,t,r){let n=nt.openSync(e,"r+");return nt.futimesSync(n,t,r),nt.closeSync(n)}Wf.exports={utimesMillis:q0,utimesMillisSync:E0}});var Re=p((HA,Jf)=>{"use strict";s();var it=rt(),$=M("path"),C0=M("util");function O0(e,t,r){let n=r.dereference?i=>it.stat(i,{bigint:!0}):i=>it.lstat(i,{bigint:!0});return Promise.all([n(e),n(t).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,o])=>({srcStat:i,destStat:o}))}function T0(e,t,r){let n,i=r.dereference?a=>it.statSync(a,{bigint:!0}):a=>it.lstatSync(a,{bigint:!0}),o=i(e);try{n=i(t)}catch(a){if(a.code==="ENOENT")return{srcStat:o,destStat:null};throw a}return{srcStat:o,destStat:n}}function P0(e,t,r,n,i){C0.callbackify(O0)(e,t,n,(o,a)=>{if(o)return i(o);let{srcStat:u,destStat:l}=a;if(l){if(Et(u,l)){let f=$.basename(e),c=$.basename(t);return r==="move"&&f!==c&&f.toLowerCase()===c.toLowerCase()?i(null,{srcStat:u,destStat:l,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(u.isDirectory()&&!l.isDirectory())return i(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!u.isDirectory()&&l.isDirectory())return i(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return u.isDirectory()&&Zn(e,t)?i(new Error(xr(e,t,r))):i(null,{srcStat:u,destStat:l})})}function A0(e,t,r,n){let{srcStat:i,destStat:o}=T0(e,t,n);if(o){if(Et(i,o)){let a=$.basename(e),u=$.basename(t);if(r==="move"&&a!==u&&a.toLowerCase()===u.toLowerCase())return{srcStat:i,destStat:o,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!o.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&o.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&Zn(e,t))throw new Error(xr(e,t,r));return{srcStat:i,destStat:o}}function Gf(e,t,r,n,i){let o=$.resolve($.dirname(e)),a=$.resolve($.dirname(r));if(a===o||a===$.parse(a).root)return i();it.stat(a,{bigint:!0},(u,l)=>u?u.code==="ENOENT"?i():i(u):Et(t,l)?i(new Error(xr(e,r,n))):Gf(e,t,a,n,i))}function zf(e,t,r,n){let i=$.resolve($.dirname(e)),o=$.resolve($.dirname(r));if(o===i||o===$.parse(o).root)return;let a;try{a=it.statSync(o,{bigint:!0})}catch(u){if(u.code==="ENOENT")return;throw u}if(Et(t,a))throw new Error(xr(e,r,n));return zf(e,t,o,n)}function Et(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function Zn(e,t){let r=$.resolve(e).split($.sep).filter(i=>i),n=$.resolve(t).split($.sep).filter(i=>i);return r.reduce((i,o,a)=>i&&n[a]===o,!0)}function xr(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}Jf.exports={checkPaths:P0,checkPathsSync:A0,checkParentPaths:Gf,checkParentPathsSync:zf,isSrcSubdir:Zn,areIdentical:Et}});var Zf=p((YA,Vf)=>{"use strict";s();var ee=Q(),Ct=M("path"),F0=he().mkdirs,L0=Ee().pathExists,D0=Vn().utimesMillis,Ot=Re();function j0(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
3
+
4
+ see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),Ot.checkPaths(e,t,"copy",r,(i,o)=>{if(i)return n(i);let{srcStat:a,destStat:u}=o;Ot.checkParentPaths(e,a,t,"copy",l=>{if(l)return n(l);Hf(e,t,r,(f,c)=>{if(f)return n(f);if(!c)return n();I0(u,e,t,r,n)})})})}function I0(e,t,r,n,i){let o=Ct.dirname(r);L0(o,(a,u)=>{if(a)return i(a);if(u)return Xn(e,t,r,n,i);F0(o,l=>l?i(l):Xn(e,t,r,n,i))})}function Hf(e,t,r,n){if(!r.filter)return n(null,!0);Promise.resolve(r.filter(e,t)).then(i=>n(null,i),i=>n(i))}function Xn(e,t,r,n,i){(n.dereference?ee.stat:ee.lstat)(t,(a,u)=>a?i(a):u.isDirectory()?W0(u,e,t,r,n,i):u.isFile()||u.isCharacterDevice()||u.isBlockDevice()?N0(u,e,t,r,n,i):u.isSymbolicLink()?J0(e,t,r,n,i):u.isSocket()?i(new Error(`Cannot copy a socket file: ${t}`)):u.isFIFO()?i(new Error(`Cannot copy a FIFO pipe: ${t}`)):i(new Error(`Unknown file: ${t}`)))}function N0(e,t,r,n,i,o){return t?R0(e,r,n,i,o):Kf(e,r,n,i,o)}function R0(e,t,r,n,i){if(n.overwrite)ee.unlink(r,o=>o?i(o):Kf(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Kf(e,t,r,n,i){ee.copyFile(t,r,o=>o?i(o):n.preserveTimestamps?M0(e.mode,t,r,i):_r(r,e.mode,i))}function M0(e,t,r,n){return k0(e)?$0(r,e,i=>i?n(i):Bf(e,t,r,n)):Bf(e,t,r,n)}function k0(e){return(e&128)===0}function $0(e,t,r){return _r(e,t|128,r)}function Bf(e,t,r,n){U0(t,r,i=>i?n(i):_r(r,e,n))}function _r(e,t,r){return ee.chmod(e,t,r)}function U0(e,t,r){ee.stat(e,(n,i)=>n?r(n):D0(t,i.atime,i.mtime,r))}function W0(e,t,r,n,i,o){return t?Yf(r,n,i,o):G0(e.mode,r,n,i,o)}function G0(e,t,r,n,i){ee.mkdir(r,o=>{if(o)return i(o);Yf(t,r,n,a=>a?i(a):_r(r,e,i))})}function Yf(e,t,r,n){ee.readdir(e,(i,o)=>i?n(i):Qn(o,e,t,r,n))}function Qn(e,t,r,n,i){let o=e.pop();return o?z0(e,o,t,r,n,i):i()}function z0(e,t,r,n,i,o){let a=Ct.join(r,t),u=Ct.join(n,t);Hf(a,u,i,(l,f)=>{if(l)return o(l);if(!f)return Qn(e,r,n,i,o);Ot.checkPaths(a,u,"copy",i,(c,h)=>{if(c)return o(c);let{destStat:y}=h;Xn(y,a,u,i,d=>d?o(d):Qn(e,r,n,i,o))})})}function J0(e,t,r,n,i){ee.readlink(t,(o,a)=>{if(o)return i(o);if(n.dereference&&(a=Ct.resolve(process.cwd(),a)),e)ee.readlink(r,(u,l)=>u?u.code==="EINVAL"||u.code==="UNKNOWN"?ee.symlink(a,r,i):i(u):(n.dereference&&(l=Ct.resolve(process.cwd(),l)),Ot.isSrcSubdir(a,l)?i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${l}'.`)):Ot.isSrcSubdir(l,a)?i(new Error(`Cannot overwrite '${l}' with '${a}'.`)):B0(a,r,i)));else return ee.symlink(a,r,i)})}function B0(e,t,r){ee.unlink(t,n=>n?r(n):ee.symlink(e,t,r))}Vf.exports=j0});var rl=p((ZA,tl)=>{"use strict";s();var Y=Q(),Tt=M("path"),H0=he().mkdirsSync,K0=Vn().utimesMillisSync,Pt=Re();function Y0(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
5
+
6
+ see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:n,destStat:i}=Pt.checkPathsSync(e,t,"copy",r);if(Pt.checkParentPathsSync(e,n,t,"copy"),r.filter&&!r.filter(e,t))return;let o=Tt.dirname(t);return Y.existsSync(o)||H0(o),Xf(i,e,t,r)}function Xf(e,t,r,n){let o=(n.dereference?Y.statSync:Y.lstatSync)(t);if(o.isDirectory())return r_(o,e,t,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return V0(o,e,t,r,n);if(o.isSymbolicLink())return o_(e,t,r,n);throw o.isSocket()?new Error(`Cannot copy a socket file: ${t}`):o.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function V0(e,t,r,n,i){return t?Z0(e,r,n,i):Qf(e,r,n,i)}function Z0(e,t,r,n){if(n.overwrite)return Y.unlinkSync(r),Qf(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Qf(e,t,r,n){return Y.copyFileSync(t,r),n.preserveTimestamps&&X0(e.mode,t,r),ei(r,e.mode)}function X0(e,t,r){return Q0(e)&&e_(r,e),t_(t,r)}function Q0(e){return(e&128)===0}function e_(e,t){return ei(e,t|128)}function ei(e,t){return Y.chmodSync(e,t)}function t_(e,t){let r=Y.statSync(e);return K0(t,r.atime,r.mtime)}function r_(e,t,r,n,i){return t?el(r,n,i):n_(e.mode,r,n,i)}function n_(e,t,r,n){return Y.mkdirSync(r),el(t,r,n),ei(r,e)}function el(e,t,r){Y.readdirSync(e).forEach(n=>i_(n,e,t,r))}function i_(e,t,r,n){let i=Tt.join(t,e),o=Tt.join(r,e);if(n.filter&&!n.filter(i,o))return;let{destStat:a}=Pt.checkPathsSync(i,o,"copy",n);return Xf(a,i,o,n)}function o_(e,t,r,n){let i=Y.readlinkSync(t);if(n.dereference&&(i=Tt.resolve(process.cwd(),i)),e){let o;try{o=Y.readlinkSync(r)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return Y.symlinkSync(i,r);throw a}if(n.dereference&&(o=Tt.resolve(process.cwd(),o)),Pt.isSrcSubdir(i,o))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);if(Pt.isSrcSubdir(o,i))throw new Error(`Cannot overwrite '${o}' with '${i}'.`);return s_(i,r)}else return Y.symlinkSync(i,r)}function s_(e,t){return Y.unlinkSync(t),Y.symlinkSync(e,t)}tl.exports=Y0});var br=p((QA,nl)=>{"use strict";s();var a_=X().fromCallback;nl.exports={copy:a_(Zf()),copySync:rl()}});var At=p((tF,ol)=>{"use strict";s();var il=Q(),u_=X().fromCallback;function c_(e,t){il.rm(e,{recursive:!0,force:!0},t)}function f_(e){il.rmSync(e,{recursive:!0,force:!0})}ol.exports={remove:u_(c_),removeSync:f_}});var hl=p((nF,pl)=>{"use strict";s();var l_=X().fromPromise,ul=rt(),cl=M("path"),fl=he(),ll=At(),sl=l_(async function(t){let r;try{r=await ul.readdir(t)}catch{return fl.mkdirs(t)}return Promise.all(r.map(n=>ll.remove(cl.join(t,n))))});function al(e){let t;try{t=ul.readdirSync(e)}catch{return fl.mkdirsSync(e)}t.forEach(r=>{r=cl.join(e,r),ll.removeSync(r)})}pl.exports={emptyDirSync:al,emptydirSync:al,emptyDir:sl,emptydir:sl}});var gl=p((oF,ml)=>{"use strict";s();var p_=X().fromCallback,yl=M("path"),Ce=Q(),dl=he();function h_(e,t){function r(){Ce.writeFile(e,"",n=>{if(n)return t(n);t()})}Ce.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let o=yl.dirname(e);Ce.stat(o,(a,u)=>{if(a)return a.code==="ENOENT"?dl.mkdirs(o,l=>{if(l)return t(l);r()}):t(a);u.isDirectory()?r():Ce.readdir(o,l=>{if(l)return t(l)})})})}function y_(e){let t;try{t=Ce.statSync(e)}catch{}if(t&&t.isFile())return;let r=yl.dirname(e);try{Ce.statSync(r).isDirectory()||Ce.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")dl.mkdirsSync(r);else throw n}Ce.writeFileSync(e,"")}ml.exports={createFile:p_(h_),createFileSync:y_}});var _l=p((aF,xl)=>{"use strict";s();var d_=X().fromCallback,wl=M("path"),Oe=Q(),Sl=he(),m_=Ee().pathExists,{areIdentical:vl}=Re();function g_(e,t,r){function n(i,o){Oe.link(i,o,a=>{if(a)return r(a);r(null)})}Oe.lstat(t,(i,o)=>{Oe.lstat(e,(a,u)=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),r(a);if(o&&vl(u,o))return r(null);let l=wl.dirname(t);m_(l,(f,c)=>{if(f)return r(f);if(c)return n(e,t);Sl.mkdirs(l,h=>{if(h)return r(h);n(e,t)})})})})}function w_(e,t){let r;try{r=Oe.lstatSync(t)}catch{}try{let o=Oe.lstatSync(e);if(r&&vl(o,r))return}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let n=wl.dirname(t);return Oe.existsSync(n)||Sl.mkdirsSync(n),Oe.linkSync(e,t)}xl.exports={createLink:d_(g_),createLinkSync:w_}});var ql=p((cF,bl)=>{"use strict";s();var Te=M("path"),Ft=Q(),S_=Ee().pathExists;function v_(e,t,r){if(Te.isAbsolute(e))return Ft.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=Te.dirname(t),i=Te.join(n,e);return S_(i,(o,a)=>o?r(o):a?r(null,{toCwd:i,toDst:e}):Ft.lstat(e,u=>u?(u.message=u.message.replace("lstat","ensureSymlink"),r(u)):r(null,{toCwd:e,toDst:Te.relative(n,e)})))}}function x_(e,t){let r;if(Te.isAbsolute(e)){if(r=Ft.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=Te.dirname(t),i=Te.join(n,e);if(r=Ft.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Ft.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Te.relative(n,e)}}}bl.exports={symlinkPaths:v_,symlinkPathsSync:x_}});var Ol=p((lF,Cl)=>{"use strict";s();var El=Q();function __(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);El.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function b_(e,t){let r;if(t)return t;try{r=El.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Cl.exports={symlinkType:__,symlinkTypeSync:b_}});var Il=p((hF,jl)=>{"use strict";s();var q_=X().fromCallback,Pl=M("path"),ye=rt(),Al=he(),E_=Al.mkdirs,C_=Al.mkdirsSync,Fl=ql(),O_=Fl.symlinkPaths,T_=Fl.symlinkPathsSync,Ll=Ol(),P_=Ll.symlinkType,A_=Ll.symlinkTypeSync,F_=Ee().pathExists,{areIdentical:Dl}=Re();function L_(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,ye.lstat(t,(i,o)=>{!i&&o.isSymbolicLink()?Promise.all([ye.stat(e),ye.stat(t)]).then(([a,u])=>{if(Dl(a,u))return n(null);Tl(e,t,r,n)}):Tl(e,t,r,n)})}function Tl(e,t,r,n){O_(e,t,(i,o)=>{if(i)return n(i);e=o.toDst,P_(o.toCwd,r,(a,u)=>{if(a)return n(a);let l=Pl.dirname(t);F_(l,(f,c)=>{if(f)return n(f);if(c)return ye.symlink(e,t,u,n);E_(l,h=>{if(h)return n(h);ye.symlink(e,t,u,n)})})})})}function D_(e,t,r){let n;try{n=ye.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){let u=ye.statSync(e),l=ye.statSync(t);if(Dl(u,l))return}let i=T_(e,t);e=i.toDst,r=A_(i.toCwd,r);let o=Pl.dirname(t);return ye.existsSync(o)||C_(o),ye.symlinkSync(e,t,r)}jl.exports={createSymlink:q_(L_),createSymlinkSync:D_}});var Gl=p((dF,Wl)=>{"use strict";s();var{createFile:Nl,createFileSync:Rl}=gl(),{createLink:Ml,createLinkSync:kl}=_l(),{createSymlink:$l,createSymlinkSync:Ul}=Il();Wl.exports={createFile:Nl,createFileSync:Rl,ensureFile:Nl,ensureFileSync:Rl,createLink:Ml,createLinkSync:kl,ensureLink:Ml,ensureLinkSync:kl,createSymlink:$l,createSymlinkSync:Ul,ensureSymlink:$l,ensureSymlinkSync:Ul}});var qr=p((gF,zl)=>{s();function j_(e,{EOL:t=`
7
+ `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let o=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+o}function I_(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}zl.exports={stringify:j_,stripBom:I_}});var Kl=p((SF,Hl)=>{s();var ot;try{ot=Q()}catch{ot=M("fs")}var Er=X(),{stringify:Jl,stripBom:Bl}=qr();async function N_(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||ot,n="throws"in t?t.throws:!0,i=await Er.fromCallback(r.readFile)(e,t);i=Bl(i);let o;try{o=JSON.parse(i,t?t.reviver:null)}catch(a){if(n)throw a.message=`${e}: ${a.message}`,a;return null}return o}var R_=Er.fromPromise(N_);function M_(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||ot,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=Bl(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function k_(e,t,r={}){let n=r.fs||ot,i=Jl(t,r);await Er.fromCallback(n.writeFile)(e,i,r)}var $_=Er.fromPromise(k_);function U_(e,t,r={}){let n=r.fs||ot,i=Jl(t,r);return n.writeFileSync(e,i,r)}Hl.exports={readFile:R_,readFileSync:M_,writeFile:$_,writeFileSync:U_}});var Vl=p((xF,Yl)=>{"use strict";s();var Cr=Kl();Yl.exports={readJson:Cr.readFile,readJsonSync:Cr.readFileSync,writeJson:Cr.writeFile,writeJsonSync:Cr.writeFileSync}});var Or=p((bF,Ql)=>{"use strict";s();var W_=X().fromCallback,Lt=Q(),Zl=M("path"),Xl=he(),G_=Ee().pathExists;function z_(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Zl.dirname(e);G_(i,(o,a)=>{if(o)return n(o);if(a)return Lt.writeFile(e,t,r,n);Xl.mkdirs(i,u=>{if(u)return n(u);Lt.writeFile(e,t,r,n)})})}function J_(e,...t){let r=Zl.dirname(e);if(Lt.existsSync(r))return Lt.writeFileSync(e,...t);Xl.mkdirsSync(r),Lt.writeFileSync(e,...t)}Ql.exports={outputFile:W_(z_),outputFileSync:J_}});var tp=p((EF,ep)=>{"use strict";s();var{stringify:B_}=qr(),{outputFile:H_}=Or();async function K_(e,t,r={}){let n=B_(t,r);await H_(e,n,r)}ep.exports=K_});var np=p((OF,rp)=>{"use strict";s();var{stringify:Y_}=qr(),{outputFileSync:V_}=Or();function Z_(e,t,r){let n=Y_(t,r);V_(e,n,r)}rp.exports=Z_});var op=p((PF,ip)=>{"use strict";s();var X_=X().fromPromise,V=Vl();V.outputJson=X_(tp());V.outputJsonSync=np();V.outputJSON=V.outputJson;V.outputJSONSync=V.outputJsonSync;V.writeJSON=V.writeJson;V.writeJSONSync=V.writeJsonSync;V.readJSON=V.readJson;V.readJSONSync=V.readJsonSync;ip.exports=V});var fp=p((FF,cp)=>{"use strict";s();var Q_=Q(),ri=M("path"),eb=br().copy,up=At().remove,tb=he().mkdirp,rb=Ee().pathExists,sp=Re();function nb(e,t,r,n){typeof r=="function"&&(n=r,r={}),r=r||{};let i=r.overwrite||r.clobber||!1;sp.checkPaths(e,t,"move",r,(o,a)=>{if(o)return n(o);let{srcStat:u,isChangingCase:l=!1}=a;sp.checkParentPaths(e,u,t,"move",f=>{if(f)return n(f);if(ib(t))return ap(e,t,i,l,n);tb(ri.dirname(t),c=>c?n(c):ap(e,t,i,l,n))})})}function ib(e){let t=ri.dirname(e);return ri.parse(t).root===t}function ap(e,t,r,n,i){if(n)return ti(e,t,r,i);if(r)return up(t,o=>o?i(o):ti(e,t,r,i));rb(t,(o,a)=>o?i(o):a?i(new Error("dest already exists.")):ti(e,t,r,i))}function ti(e,t,r,n){Q_.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):ob(e,t,r,n):n())}function ob(e,t,r,n){eb(e,t,{overwrite:r,errorOnExist:!0},o=>o?n(o):up(e,n))}cp.exports=nb});var dp=p((DF,yp)=>{"use strict";s();var pp=Q(),ii=M("path"),sb=br().copySync,hp=At().removeSync,ab=he().mkdirpSync,lp=Re();function ub(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:o=!1}=lp.checkPathsSync(e,t,"move",r);return lp.checkParentPathsSync(e,i,t,"move"),cb(t)||ab(ii.dirname(t)),fb(e,t,n,o)}function cb(e){let t=ii.dirname(e);return ii.parse(t).root===t}function fb(e,t,r,n){if(n)return ni(e,t,r);if(r)return hp(t),ni(e,t,r);if(pp.existsSync(t))throw new Error("dest already exists.");return ni(e,t,r)}function ni(e,t,r){try{pp.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return lb(e,t,r)}}function lb(e,t,r){return sb(e,t,{overwrite:r,errorOnExist:!0}),hp(e)}yp.exports=ub});var gp=p((IF,mp)=>{"use strict";s();var pb=X().fromCallback;mp.exports={move:pb(fp()),moveSync:dp()}});s();s();s();import{realpathSync as ch}from"fs";var Mt;function Jr(e=process.argv){try{if(Mt!==void 0&&!se())return Mt;let t=xi()??vi(),r=fh(t);if(!r)return!0;let n=e[1]??"";return n?(Mt=!Si(r.trim(),n),Mt):!0}catch{return!1}}async function Iq(e){let{outputInfo:t}=await import("./output-DUJTSURG.js"),{exec:r}=await import("./system-CGOZSROX.js"),{jsonOutputEnabled:n}=await import("./environment-5P7JJ3GI.js"),i=e==="yarn"?["global","add","@shopify/cli@latest"]:["install","-g","@shopify/cli@latest"];t(`Running ${e} ${i.join(" ")}...`),await r(e,i,n()?{}:{stdio:"inherit"})}function Nq(e=process.env){return e.SHOPIFY_HOMEBREW_FORMULA??"shopify-cli"}async function Rq(){let{terminalSupportsPrompting:e}=await import("./system-CGOZSROX.js");if(!e())return{install:!1,alreadyInstalled:!1};let{globalCLIVersion:t}=await import("./version-S4MGCKDO.js");if(await t())return{install:!1,alreadyInstalled:!0};let{renderSelectPrompt:r}=await import("./ui-YMBFS3NG.js");return{install:await r({message:"We recommend installing Shopify CLI globally in your system. Would you like to install it now?",choices:[{value:"yes",label:"Yes"},{value:"no",label:"No, just for this project"}]})==="yes",alreadyInstalled:!1}}function Mq(e=process.argv,t=process.env){if(!Jr(e))return"unknown";if(t.SHOPIFY_HOMEBREW_FORMULA)return"homebrew";let r=e[1]??"",n=r.toLowerCase(),i=n;try{i=ch(r).toLowerCase()}catch{}let o=a=>i.includes(a)||n.includes(a);return o("yarn")?"yarn":o("pnpm")?"pnpm":o("bun")?"bun":i.includes("/cellar/")?"homebrew":"npm"}function fh(e){let t=["shopify.app{,.*}.toml","hydrogen.config.js","hydrogen.config.ts"],r=n=>{let i=qi(t.map(o=>ut(n,o)));return i.length>0?i[0]:void 0};try{let n=Ei(r,{cwd:e,type:"file"});if(n)return gi(n)}catch{return}}s();s();s();import Br from"node:process";var q="\x1B[",lt="\x1B]",ke="\x07",ft=";",Hr=typeof window<"u"&&typeof window.document<"u",Ci=!Hr&&Br.env.TERM_PROGRAM==="Apple_Terminal",lh=!Hr&&Br.platform==="win32",ph=Hr?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:Br.cwd,_={};_.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?q+(e+1)+"G":q+(t+1)+ft+(e+1)+"H"};_.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=q+-e+"D":e>0&&(r+=q+e+"C"),t<0?r+=q+-t+"A":t>0&&(r+=q+t+"B"),r};_.cursorUp=(e=1)=>q+e+"A";_.cursorDown=(e=1)=>q+e+"B";_.cursorForward=(e=1)=>q+e+"C";_.cursorBackward=(e=1)=>q+e+"D";_.cursorLeft=q+"G";_.cursorSavePosition=Ci?"\x1B7":q+"s";_.cursorRestorePosition=Ci?"\x1B8":q+"u";_.cursorGetPosition=q+"6n";_.cursorNextLine=q+"E";_.cursorPrevLine=q+"F";_.cursorHide=q+"?25l";_.cursorShow=q+"?25h";_.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=_.eraseLine+(r<e-1?_.cursorUp():"");return e&&(t+=_.cursorLeft),t};_.eraseEndLine=q+"K";_.eraseStartLine=q+"1K";_.eraseLine=q+"2K";_.eraseDown=q+"J";_.eraseUp=q+"1J";_.eraseScreen=q+"2J";_.scrollUp=q+"S";_.scrollDown=q+"T";_.clearScreen="\x1Bc";_.clearTerminal=lh?`${_.eraseScreen}${q}0f`:`${_.eraseScreen}${q}3J${q}H`;_.enterAlternativeScreen=q+"?1049h";_.exitAlternativeScreen=q+"?1049l";_.beep=ke;_.link=(e,t)=>[lt,"8",ft,ft,t,ke,e,lt,"8",ft,ft,ke].join("");_.image=(e,t={})=>{let r=`${lt}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+ke};_.iTerm={setCwd:(e=ph())=>`${lt}50;CurrentDir=${e}${ke}`,annotation(e,t={}){let r=`${lt}1337;`,n=typeof t.x<"u",i=typeof t.y<"u";if((n||i)&&!(n&&i&&typeof t.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(n?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+ke}};var Oi=_;var Fi=H(Ai(),1),ie=class{value;constructor(t){this.value=t}},kt=class extends ie{output(){return this.value}},$t=class extends ie{link;fallback;constructor(t,r,n){super(t),this.link=r??R(t),this.fallback=n}output(){let t=O.green(R(this.value)),r=this.link??"",n=this.value===this.link?t:`${t} ( ${r} )`;return Fi.default.stdout?Oi.link(t,r):this.fallback??n}},pt=class extends ie{output(){return`\`${O.magentaBright(R(this.value))}\``}},yh=/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g;function dh(e){let t=typeof e=="string"?JSON.parse(e):e,n=JSON.stringify(t,void 0,2).replace(yh,i=>i.startsWith('"')?i.endsWith(":")?O.white(i):O.green(i):i==="true"||i==="false"?O.cyan(i):i==="null"?O.red(i):O.magenta(i));return O.yellow(n)}var Ut=class extends ie{output(){try{return dh(R(this.value)??{})}catch{return JSON.stringify(R(this.value)??{},null,2)}}},Wt=class extends ie{output(){return this.value.flatMap(t=>t.added?t.value.split(/\n/).filter(r=>r!=="").map(r=>O.green(`+ ${r}
8
+ `)):t.removed?t.value.split(/\n/).filter(r=>r!=="").map(r=>O.magenta(`- ${r}
9
+ `)):t.value)}},me=class extends ie{color;constructor(t,r){super(t),this.color=r}output(){return this.color(R(this.value))}},ht=class extends ie{output(){return O.bold.redBright(R(this.value))}},Gt=class extends ie{output(){return wi(R(this.value))}},zt=class extends ie{output(){return O.bold.underline(R(this.value))}},Jt=class extends ie{output(){return O.underline(R(this.value))}},Bt=class extends ie{output(){return O.italic(R(this.value))}};s();function Ue(e){return typeof e=="string"?e:"command"in e?e.command:"link"in e?e.link.label||e.link.url:"char"in e?e.char:"userInput"in e?e.userInput:"subdued"in e?e.subdued:"filePath"in e?e.filePath:"list"in e?e.list.items.map(Ue).join(" "):"bold"in e?e.bold:"info"in e?e.info:"warn"in e?e.warn:"error"in e?e.error:e.map((t,r)=>r!==0&&!(typeof t!="string"&&"char"in t)?` ${Ue(t)}`:Ue(t)).join("")}function tE(e,t){return Array.isArray(e)?[...e,{char:t}]:[e,{char:t}]}function Li(e){return Array.isArray(e)?e.map((t,r)=>{let n=Di(t);return r!==0&&!(typeof t!="string"&&"char"in t)?` ${n}`:n}).join(""):Di(e)}function Di(e){if(typeof e=="string")return e;if("link"in e){let{label:t,url:r}=e.link;return t&&t!==r?`${t} (${r})`:r}if("list"in e){let t=e.list.title?Li(e.list.title).trim():void 0,r=e.list.items.map(Li).join("; ");return t?`${t}${r?`: ${r}`:""}`:r}return Ue(e)}s();s();import{AsyncLocalStorage as mh}from"node:async_hooks";var ji=new mh;function oE(e,t){return ji.run(e,t)}function Ii(){return ji.getStore()}function Yr(e){return Mi()?e:We(e)}function Ni(e){process.stdout.write(`${Yr(e)}
10
+ `)}function ge(e){let t=Ii()?.consoleWarn;if(t){t(Yr(e));return}console.warn(Yr(e))}function Ri(e,t="info",r=ge){se()&&Le(t,e);let n=R(e);De(t,r,n)}import{Writable as gh}from"stream";var Ht=class{value;constructor(t){this.value=t}},P={raw(e){return new kt(e)},genericShellCommand(e){return new pt(e)},json(e){return new Ut(e)},path(e){return new Gt(e)},link(e,t,r){return new $t(e,t,r)},heading(e){return new zt(e)},subheading(e){return new Jt(e)},italic(e){return new Bt(e)},errorText(e){return new ht(e)},cyan(e){return new me(e,O.cyan)},yellow(e){return new me(e,O.yellow)},magenta(e){return new me(e,O.magenta)},green(e){return new me(e,O.green)},gray(e){return new me(e,O.gray)},packagejsonScript(e,t,...r){return new pt(wh(e,t,...r))},successIcon(){return new me("\u2714",O.green)},failIcon(){return new ht("\u2716")},linesDiff(e){return new Wt(e)}};function wh(e,t,...r){if(Jr())return[t,...r].join(" ");switch(e){case"pnpm":case"bun":case"yarn":return[e,t,...r].join(" ");case"npm":{let n=["npm","run",t];return r.length>0&&(n.push("--"),n.push(...r)),n.join(" ")}case"homebrew":case"unknown":return[t,...r].join(" ")}}function L(e,...t){let r=e.reduce((n,i,o)=>{let a=t[o],u="";if(typeof a=="string")u=a;else if(a){let l=a.output();u=Array.isArray(l)?l.join(""):l}return n+i+u},"");return new Ht(r)}function ki(e){switch(e){case"trace":return 10;case"debug":return 20;case"info":return 30;case"warn":return 40;case"error":return 50;case"fatal":return 60;case"silent":return 70}}function Sh(){return bi()?"debug":"info"}function Zr(e){if(se())return!1;let t=ki(Sh());return ki(e)>=t}var yt={},Vr;function Le(e,t){let r=zr(R(t));yt.output??=[],yt[e]??=[],yt.output.push(r),yt[e].push(r)}var bE=()=>{yt={}};function qE(e){Ri(e,"info",Ni)}async function EE(){await new Promise((e,t)=>{process.stdout.write("",r=>{r?t(r):e()})})}function CE(e,t=ge){if(dt(e,"info",t))return;let r=R(e);se()&&Le("info",e),De("info",t,r)}function OE(e,t=ge){if(dt(e,"info",t))return;let r=O.bold(`\u2705 Success! ${R(e)}.`);se()&&Le("success",e),De("info",t,r)}function TE(e,t=ge){if(dt(e,"info",t))return;let r=`${O.green("\u2714")} ${R(e)}`;se()&&Le("completed",e),De("info",t,r)}function j(e,t=ge){if(dt(e,"debug",t)||(se()&&Le("debug",e),!Zr("debug")))return;let r=O.gray(R(e));De("debug",t,`${new Date().toISOString()}: ${r}`)}function PE(e,t=ge){if(dt(e,"warning",t))return;se()&&Le("warn",e);let r=O.yellow(R(e));De("warn",t,r)}function AE(){Gr()!=="json"&&ge("")}function R(e){return e instanceof Ht?e.value:e}function FE(e){return Ue(e)}function De(e,t,r){Zr(e)&&(t instanceof gh?t.write(r):t(r,e))}function We(e){return e.includes("\x1B")?zr(e):e}function dt(e,t,r){if(r!==ge||Gr()!=="json")return!1;if(t==="debug"&&!se()&&!Zr("debug"))return!0;let n=We(R(e));return n.trim().length>0&&_i({type:"diagnostic",level:t,message:n}),!0}function Mi(e=process){if(e===process&&Vr!==void 0)return Vr;let{env:t,stdout:r}=e,n=Object.hasOwnProperty.call(t,"FORCE_COLOR")?di(t.FORCE_COLOR):!!r.isTTY;return e===process&&(Vr=n),n}function LE(e,t){let r=e.toUpperCase().padEnd(35);return L`${P.heading(r)}\n${t}`.value}s();s();var Pc=H(Vu()),ux=H(Tc());function Fn(e){return e[Math.floor(Math.random()*e.length)]}function SP(e){return e.filter(t=>t!==void 0)}function vP(e){return e.length!==new Set(e).size}function Ac(e){return Array.from(new Set(e))}function xP(e,t){return(0,Pc.default)(e,t)}function _P(e){return e.length<2?e:e.reduce((t,r,n)=>(n===e.length-1?t.push("and"):n!==0&&t.push(", "),t.push(r),t),[])}var ce=H(Sf(),1),t0=["commercial","profitable","amortizable","branded","integrated","synergistic","consolidated","diversified","lean","niche","premium","luxury","scalable","optimized","empowered","international","beneficial","fruitful","extensive","lucrative","modern","stable","strategic","adaptive","efficient","growing","sustainable","innovative","regional","specialized","focused","pragmatic","ethical","flexible","competitive"],r0=["bright","impactful","stylish","colorful","modern","minimal","trendy","creative","artistic","spectacular","glamorous","luxury","retro","nostalgic","comfy","polished","fabulous","balanced","monochrome","glitched","contrasted","elegant","textured","vibrant","harmonious","versatile","eclectic","futuristic","idealistic","intricate","bohemian","abstract","meticulous","refined","flamboyant"],n0=["account","consumer","customer","enterprise","business","venture","marketplace","revenue","vertical","portfolio","negotiation","shipping","demand","supply","growth","merchant","investment","shareholder","conversion","capital","projection","upside","trade","deal","merchandise","transaction","sale","franchise","subsidiary","logistics","sponsorship","partnership","tax","policy","outsource","equity","strategy","valuation","benchmark","metrics","duplication"],i0=["vibe","style","moment","mood","flavor","look","appearance","perspective","aspect","ambience","quality","backdrop","focus","tone","inspiration","imagery","aesthetics","palette","ornamentation","contrast","colorway","visuals","typography","composition","scale","symmetry","gradients","proportions","textures","harmony","shapes","patterns"],vf={business:{adjectives:t0,nouns:n0},creative:{adjectives:r0,nouns:i0}};function xf(e="business"){return`${Fn(vf[e].adjectives)}-${Fn(vf[e].nouns)}`}function iA(e){return e.substring(0,1).toUpperCase()+e.substring(1)}function oA(e,t,r,n){return e.length===1?r(e[0]):e.length>1?t(e):n?n():""}function sA(e){if(e===void 0)return;let t=Number.parseInt(e,10);return Number.isNaN(t)?void 0:t}function aA(e){let t=[];for(let n=0;e[0]&&n<e[0].length;n++){let i=e.map(o=>o[n]);t.push(Math.max(...i.map(o=>We(o).length)))}return e.map(n=>n.map((i,o)=>`${i}${" ".repeat(t[o]-We(i).length)}`).join(" ").trimEnd()).join(`
11
+ `)}function uA(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function cA(e){return(0,ce.camelCase)(e)}function fA(e){return(0,ce.capitalCase)(e)}function lA(e){return(0,ce.paramCase)(e)}function pA(e){return(0,ce.snakeCase)(e)}function hA(e){return(0,ce.constantCase)(e)}function o0(e){let t=e.toISOString().split("T"),r=t[0]??e.toDateString(),n=t[1]?.split(".")[0]??e.toTimeString();return`${r} ${n}`}function yA(e){let t=new Date(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()));return o0(r)}function dA(e){return e.length===0?"":e.length===1?`"${e[0]}"`:`${e.slice(0,-1).map(t=>`"${t}"`).join(", ")} and "${e[e.length-1]}"`}function mA(e){return(0,ce.pascalCase)(e)}function gA(e,t=","){if(e)return Ac(e.split(t).map(r=>r.trim()).filter(r=>r!=="")).sort().join(t)}function wA(e,t){let r=Math.floor((t.getTime()-e.getTime())/1e3);if(r<60)return`${mr(r,"second")} ago`;let n=Math.floor(r/60);if(n<60)return`${mr(n,"minute")} ago`;let i=Math.floor(n/60);if(i<24)return`${mr(i,"hour")} ago`;let o=Math.floor(i/24);return`${mr(o,"day")} ago`}function mr(e,t){return`${e} ${t}${e===1?"":"s"}`}s();import{realpath as s0}from"fs/promises";import{tmpdir as a0}from"os";var Un=await s0(a0());s();var Tr=H(br(),1),st=H(hl(),1),te=H(Gl(),1),re=H(op(),1),Pe=H(he(),1),Pr=H(gp(),1),Ar=H(Or(),1),Fr=H(Ee(),1),Lr=H(At(),1),oi=Tr.default.copy,RF=Tr.default.copySync,MF=st.default.emptyDirSync,kF=st.default.emptydirSync,$F=st.default.emptyDir,UF=st.default.emptydir,WF=te.default.createFile,GF=te.default.createFileSync,wp=te.default.ensureFile,Sp=te.default.ensureFileSync,zF=te.default.createLink,JF=te.default.createLinkSync,BF=te.default.ensureLink,HF=te.default.ensureLinkSync,KF=te.default.createSymlink,YF=te.default.createSymlinkSync,VF=te.default.ensureSymlink,ZF=te.default.ensureSymlinkSync,XF=re.default.readJson,QF=re.default.readJSON,eL=re.default.readJsonSync,tL=re.default.readJSONSync,rL=re.default.writeJson,nL=re.default.writeJSON,iL=re.default.writeJsonSync,oL=re.default.writeJSONSync,sL=re.default.outputJson,aL=re.default.outputJSON,uL=re.default.outputJsonSync,cL=re.default.outputJSONSync,fL=Pe.default.mkdirs,lL=Pe.default.mkdirsSync,pL=Pe.default.mkdirp,hL=Pe.default.mkdirpSync,yL=Pe.default.ensureDir,dL=Pe.default.ensureDirSync,vp=Pr.default.move,mL=Pr.default.moveSync,gL=Ar.default.outputFile,wL=Ar.default.outputFileSync,SL=Fr.default.pathExists,vL=Fr.default.pathExistsSync,xL=Lr.default.remove,xp=Lr.default.removeSync,_L={...Tr.default,...st.default,...te.default,...re.default,...Pe.default,...Pr.default,...Ar.default,...Fr.default,...Lr.default};s();import Se from"node:path";import{fileURLToPath as mb}from"node:url";s();import qp from"node:process";import Ep from"node:path";import _p,{promises as bp}from"node:fs";import{fileURLToPath as db}from"node:url";s();s();s();var si=class{value;next;constructor(t){this.value=t}},Dt=class{#t;#r;#i;constructor(){this.clear()}enqueue(t){let r=new si(t);this.#t?(this.#r.next=r,this.#r=r):(this.#t=r,this.#r=r),this.#i++}dequeue(){let t=this.#t;if(t)return this.#t=this.#t.next,this.#i--,this.#t||(this.#r=void 0),t.value}peek(){if(this.#t)return this.#t.value}clear(){this.#t=void 0,this.#r=void 0,this.#i=0}get size(){return this.#i}*[Symbol.iterator](){let t=this.#t;for(;t;)yield t.value,t=t.next}*drain(){for(;this.#t;)yield this.dequeue()}};function Dr(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new Dt,r=0,n=()=>{r--,t.size>0&&t.dequeue()()},i=async(u,l,f)=>{r++;let c=(async()=>u(...f))();l(c);try{await c}catch{}n()},o=(u,l,f)=>{t.enqueue(i.bind(void 0,u,l,f)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},a=(u,...l)=>new Promise(f=>{o(u,f,l)});return Object.defineProperties(a,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),a}var jr=class extends Error{constructor(t){super(),this.value=t}},hb=async(e,t)=>t(await e),yb=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new jr(t[0]);return!1};async function ai(e,t,{concurrency:r=Number.POSITIVE_INFINITY,preserveOrder:n=!0}={}){let i=Dr(r),o=[...e].map(u=>[u,i(hb,u,t)]),a=Dr(n?1:Number.POSITIVE_INFINITY);try{await Promise.all(o.map(u=>a(yb,u)))}catch(u){if(u instanceof jr)return u.value;throw u}}var Cp={directory:"isDirectory",file:"isFile"};function Op(e){if(!Object.hasOwnProperty.call(Cp,e))throw new Error(`Invalid type specified: ${e}`)}var Tp=(e,t)=>t[Cp[e]](),Pp=e=>e instanceof URL?db(e):e;async function ui(e,{cwd:t=qp.cwd(),type:r="file",allowSymlinks:n=!0,concurrency:i,preserveOrder:o}={}){Op(r),t=Pp(t);let a=n?bp.stat:bp.lstat;return ai(e,async u=>{try{let l=await a(Ep.resolve(t,u));return Tp(r,l)}catch{return!1}},{concurrency:i,preserveOrder:o})}function ci(e,{cwd:t=qp.cwd(),type:r="file",allowSymlinks:n=!0}={}){Op(r),t=Pp(t);let i=n?_p.statSync:_p.lstatSync;for(let o of e)try{let a=i(Ep.resolve(t,o),{throwIfNoEntry:!1});if(!a)continue;if(Tp(r,a))return o}catch{}}s();var Ap=e=>e instanceof URL?mb(e):e,Fp=Symbol("findUpStop");async function gb(e,t={}){let r=Se.resolve(Ap(t.cwd)||""),{root:n}=Se.parse(r),i=Se.resolve(r,t.stopAt||n),o=t.limit||Number.POSITIVE_INFINITY,a=[e].flat(),u=async f=>{if(typeof e!="function")return ui(a,f);let c=await e(f.cwd);return typeof c=="string"?ui([c],f):c},l=[];for(;;){let f=await u({...t,cwd:r});if(f===Fp||(f&&l.push(Se.resolve(r,f)),r===i||l.length>=o))break;r=Se.dirname(r)}return l}function wb(e,t={}){let r=Se.resolve(Ap(t.cwd)||""),{root:n}=Se.parse(r),i=t.stopAt||n,o=t.limit||Number.POSITIVE_INFINITY,a=[e].flat(),u=f=>{if(typeof e!="function")return ci(a,f);let c=e(f.cwd);return typeof c=="string"?ci([c],f):c},l=[];for(;;){let f=u({...t,cwd:r});if(f===Fp||(f&&l.push(Se.resolve(r,f)),r===i||l.length>=o))break;r=Se.dirname(r)}return l}async function Lp(e,t={}){return(await gb(e,{...t,limit:1}))[0]}function Dp(e,t={}){return wb(e,{...t,limit:1})[0]}s();var Wp=H(sh(),1);s();var jt=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};s();s();var Sb={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},It=e=>e.replace(/[[\]\\-]/g,"\\$&"),vb=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),jp=e=>e.join(""),Ip=(e,t)=>{let r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],o=r+1,a=!1,u=!1,l=!1,f=!1,c=r,h="";e:for(;o<e.length;){let m=e.charAt(o);if((m==="!"||m==="^")&&o===r+1){f=!0,o++;continue}if(m==="]"&&a&&!l){c=o+1;break}if(a=!0,m==="\\"&&!l){l=!0,o++;continue}if(m==="["&&!l){for(let[w,[S,v,C]]of Object.entries(Sb))if(e.startsWith(w,o)){if(h)return["$.",!1,e.length-r,!0];o+=w.length,C?i.push(S):n.push(S),u=u||v;continue e}}if(l=!1,h){m>h?n.push(It(h)+"-"+It(m)):m===h&&n.push(It(m)),h="",o++;continue}if(e.startsWith("-]",o+1)){n.push(It(m+"-")),o+=2;continue}if(e.startsWith("-",o+1)){h=m,o+=2;continue}n.push(It(m)),o++}if(c<o)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!f){let m=n[0].length===2?n[0].slice(-1):n[0];return[vb(m),!1,c-r,!1]}let y="["+(f?"^":"")+jp(n)+"]",d="["+(f?"":"^")+jp(i)+"]";return[n.length&&i.length?"("+y+"|"+d+")":n.length?y:d,u,c-r,!0]};s();var Ae=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var ne,xb=new Set(["!","?","+","*","@"]),fi=e=>xb.has(e),Np=e=>fi(e.type),_b=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),bb=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),qb=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Rp=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),Eb="(?!(?:^|/)\\.\\.?(?:$|/))",Ir="(?!\\.)",Cb=new Set(["[","."]),Ob=new Set(["..","."]),Tb=new Set("().*{}+?[]^$\\!"),Pb=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),li="[^/]",Mp=li+"*?",kp=li+"+?",Me=class{type;#t;#r;#i=!1;#e=[];#n;#a;#c;#u=!1;#o;#s;#f=!1;constructor(t,r,n={}){this.type=t,t&&(this.#r=!0),this.#n=r,this.#t=this.#n?this.#n.#t:this,this.#o=this.#t===this?n:this.#t.#o,this.#c=this.#t===this?[]:this.#t.#c,t==="!"&&!this.#t.#u&&this.#c.push(this),this.#a=this.#n?this.#n.#e.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let t of this.#e)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#s!==void 0?this.#s:this.type?this.#s=this.type+"("+this.#e.map(t=>String(t)).join("|")+")":this.#s=this.#e.map(t=>String(t)).join("")}#g(){if(this!==this.#t)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let t;for(;t=this.#c.pop();){if(t.type!=="!")continue;let r=t,n=r.#n;for(;n;){for(let i=r.#a+1;!n.type&&i<n.#e.length;i++)for(let o of t.#e){if(typeof o=="string")throw new Error("string part in extglob AST??");o.copyIn(n.#e[i])}r=n,n=r.#n}}return this}push(...t){for(let r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof ne&&r.#n===this))throw new Error("invalid part: "+r);this.#e.push(r)}}toJSON(){let t=this.type===null?this.#e.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#e.map(r=>r.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#u&&this.#n?.type==="!")&&t.push({}),t}isStart(){if(this.#t===this)return!0;if(!this.#n?.isStart())return!1;if(this.#a===0)return!0;let t=this.#n;for(let r=0;r<this.#a;r++){let n=t.#e[r];if(!(n instanceof ne&&n.type==="!"))return!1}return!0}isEnd(){if(this.#t===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();let t=this.#n?this.#n.#e.length:0;return this.#a===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let r=new ne(this.type,t);for(let n of this.#e)r.copyIn(n);return r}static#l(t,r,n,i,o){let a=i.maxExtglobRecursion??2,u=!1,l=!1,f=-1,c=!1;if(r.type===null){let m=n,w="";for(;m<t.length;){let S=t.charAt(m++);if(u||S==="\\"){u=!u,w+=S;continue}if(l){m===f+1?(S==="^"||S==="!")&&(c=!0):S==="]"&&!(m===f+2&&c)&&(l=!1),w+=S;continue}else if(S==="["){l=!0,f=m,c=!1,w+=S;continue}if(!i.noext&&fi(S)&&t.charAt(m)==="("&&o<=a){r.push(w),w="";let C=new ne(S,r);m=ne.#l(t,C,m,i,o+1),r.push(C);continue}w+=S}return r.push(w),m}let h=n+1,y=new ne(null,r),d=[],g="";for(;h<t.length;){let m=t.charAt(h++);if(u||m==="\\"){u=!u,g+=m;continue}if(l){h===f+1?(m==="^"||m==="!")&&(c=!0):m==="]"&&!(h===f+2&&c)&&(l=!1),g+=m;continue}else if(m==="["){l=!0,f=h,c=!1,g+=m;continue}if(fi(m)&&t.charAt(h)==="("&&(o<=a||r&&r.#p(m))){let S=r&&r.#p(m)?0:1;y.push(g),g="";let v=new ne(m,y);y.push(v),h=ne.#l(t,v,h,i,o+S);continue}if(m==="|"){y.push(g),g="",d.push(y),y=new ne(null,r);continue}if(m===")")return g===""&&r.#e.length===0&&(r.#f=!0),y.push(g),g="",r.push(...d,y),h;g+=m}return r.type=null,r.#r=void 0,r.#e=[t.substring(n-1)],h}#w(t){return this.#y(t,bb)}#y(t,r=_b){if(!t||typeof t!="object"||t.type!==null||t.#e.length!==1||this.type===null)return!1;let n=t.#e[0];return!n||typeof n!="object"||n.type===null?!1:this.#p(n.type,r)}#p(t,r=qb){return!!r.get(this.type)?.includes(t)}#S(t,r){let n=t.#e[0],i=new ne(null,n,this.options);i.#e.push(""),n.push(i),this.#d(t,r)}#d(t,r){let n=t.#e[0];this.#e.splice(r,1,...n.#e);for(let i of n.#e)typeof i=="object"&&(i.#n=this);this.#s=void 0}#v(t){return!!Rp.get(this.type)?.has(t)}#x(t){if(!t||typeof t!="object"||t.type!==null||t.#e.length!==1||this.type===null||this.#e.length!==1)return!1;let r=t.#e[0];return!r||typeof r!="object"||r.type===null?!1:this.#v(r.type)}#_(t){let r=Rp.get(this.type),n=t.#e[0],i=r?.get(n.type);if(!i)return!1;this.#e=n.#e;for(let o of this.#e)typeof o=="object"&&(o.#n=this);this.type=i,this.#s=void 0,this.#f=!1}#h(){if(Np(this)){let t=0,r=!1;do{r=!0;for(let n=0;n<this.#e.length;n++){let i=this.#e[n];typeof i=="object"&&(i.#h(),this.#y(i)?(r=!1,this.#d(i,n)):this.#w(i)?(r=!1,this.#S(i,n)):this.#x(i)&&(r=!1,this.#_(i)))}}while(!r&&++t<10)}else for(let t of this.#e)typeof t=="object"&&t.#h();this.#s=void 0}static fromGlob(t,r={}){let n=new ne(null,void 0,r);return ne.#l(t,n,0,r,0),n}toMMPattern(){if(this!==this.#t)return this.#t.toMMPattern();let t=this.toString(),[r,n,i,o]=this.toRegExpSource();if(!(i||this.#r||this.#o.nocase&&!this.#o.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;let u=(this.#o.nocase?"i":"")+(o?"u":"");return Object.assign(new RegExp(`^${r}$`,u),{_src:r,_glob:t})}get options(){return this.#o}toRegExpSource(t){let r=t??!!this.#o.dot;if(this.#t===this&&(this.#h(),this.#g()),!Np(this)){let l=this.isStart()&&this.isEnd(),f=this.#e.map(d=>{let[g,m,w,S]=typeof d=="string"?ne.#b(d,this.#r,l):d.toRegExpSource(t);return this.#r=this.#r||w,this.#i=this.#i||S,g}).join(""),c="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&Ob.has(this.#e[0]))){let g=Cb,m=r&&g.has(f.charAt(0))||f.startsWith("\\.")&&g.has(f.charAt(2))||f.startsWith("\\.\\.")&&g.has(f.charAt(4)),w=!r&&!t&&g.has(f.charAt(0));c=m?Eb:w?Ir:""}let h="";return this.isEnd()&&this.#t.#u&&this.#n?.type==="!"&&(h="(?:$|\\/)"),[c+f+h,Ae(f),this.#r=!!this.#r,this.#i]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",o=this.#m(r);if(this.isStart()&&this.isEnd()&&!o&&this.type!=="!"){let l=this.toString(),f=this;return f.#e=[l],f.type=null,f.#r=void 0,[l,Ae(this.toString()),!1,!1]}let a=!n||t||r||!Ir?"":this.#m(!0);a===o&&(a=""),a&&(o=`(?:${o})(?:${a})*?`);let u="";if(this.type==="!"&&this.#f)u=(this.isStart()&&!r?Ir:"")+kp;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!t?Ir:"")+Mp+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;u=i+o+l}return[u,Ae(o),this.#r=!!this.#r,this.#i]}#m(t){return this.#e.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,o,a]=r.toRegExpSource(t);return this.#i=this.#i||a,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#b(t,r,n=!1){let i=!1,o="",a=!1,u=!1;for(let l=0;l<t.length;l++){let f=t.charAt(l);if(i){i=!1,o+=(Tb.has(f)?"\\":"")+f,u=!1;continue}if(f==="\\"){l===t.length-1?o+="\\\\":i=!0;continue}if(f==="["){let[c,h,y,d]=Ip(t,l);if(y){o+=c,a=a||h,l+=y-1,r=r||d,u=!1;continue}}if(f==="*"){if(u)continue;u=!0,o+=n&&/^[*]+$/.test(t)?kp:Mp,r=!0;continue}else u=!1;if(f==="?"){o+=li,r=!0;continue}o+=Pb(f)}return[o,Ae(t),!!r,a]}};ne=Me;s();var pi=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var J=(e,t,r={})=>(jt(t),!r.nocomment&&t.charAt(0)==="#"?!1:new at(t,r).match(e)),Ab=/^\*+([^+@!?\*\[\(]*)$/,Fb=e=>t=>!t.startsWith(".")&&t.endsWith(e),Lb=e=>t=>t.endsWith(e),Db=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),jb=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Ib=/^\*+\.\*+$/,Nb=e=>!e.startsWith(".")&&e.includes("."),Rb=e=>e!=="."&&e!==".."&&e.includes("."),Mb=/^\.\*+$/,kb=e=>e!=="."&&e!==".."&&e.startsWith("."),$b=/^\*+$/,Ub=e=>e.length!==0&&!e.startsWith("."),Wb=e=>e.length!==0&&e!=="."&&e!=="..",Gb=/^\?+([^+@!?\*\[\(]*)?$/,zb=([e,t=""])=>{let r=Gp([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},Jb=([e,t=""])=>{let r=zp([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},Bb=([e,t=""])=>{let r=zp([e]);return t?n=>r(n)&&n.endsWith(t):r},Hb=([e,t=""])=>{let r=Gp([e]);return t?n=>r(n)&&n.endsWith(t):r},Gp=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},zp=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},Jp=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",$p={win32:{sep:"\\"},posix:{sep:"/"}},Kb=Jp==="win32"?$p.win32.sep:$p.posix.sep;J.sep=Kb;var B=Symbol("globstar **");J.GLOBSTAR=B;var Yb="[^/]",Vb=Yb+"*?",Zb="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Xb="(?:(?!(?:\\/|^)\\.).)*?",Qb=(e,t={})=>r=>J(r,e,t);J.filter=Qb;var fe=(e,t={})=>Object.assign({},e,t),eq=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return J;let t=J;return Object.assign((n,i,o={})=>t(n,i,fe(e,o)),{Minimatch:class extends t.Minimatch{constructor(i,o={}){super(i,fe(e,o))}static defaults(i){return t.defaults(fe(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,o,a={}){super(i,o,fe(e,a))}static fromGlob(i,o={}){return t.AST.fromGlob(i,fe(e,o))}},unescape:(n,i={})=>t.unescape(n,fe(e,i)),escape:(n,i={})=>t.escape(n,fe(e,i)),filter:(n,i={})=>t.filter(n,fe(e,i)),defaults:n=>t.defaults(fe(e,n)),makeRe:(n,i={})=>t.makeRe(n,fe(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,fe(e,i)),match:(n,i,o={})=>t.match(n,i,fe(e,o)),sep:t.sep,GLOBSTAR:B})};J.defaults=eq;var Bp=(e,t={})=>(jt(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,Wp.default)(e));J.braceExpand=Bp;var tq=(e,t={})=>new at(e,t).makeRe();J.makeRe=tq;var rq=(e,t,r={})=>{let n=new at(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};J.match=rq;var Up=/[?*]|[+@!]\(.*?\)|\[|\]/,nq=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),at=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(t,r={}){jt(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||Jp,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...o)=>console.error(...o)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(o=>this.slashSplit(o));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((o,a,u)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=o[0]===""&&o[1]===""&&(o[2]==="?"||!Up.test(o[2]))&&!Up.test(o[3]),f=/^[a-z]:/i.test(o[0]);if(l)return[...o.slice(0,4),...o.slice(4).map(c=>this.parse(c))];if(f)return[o[0],...o.slice(1).map(c=>this.parse(c))]}return o.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(o=>o.indexOf(!1)===-1),this.isWindows)for(let o=0;o<this.set.length;o++){let a=this.set[o];a[0]===""&&a[1]===""&&this.globParts[o][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let i=0;i<t[n].length;i++)t[n][i]==="**"&&(t[n][i]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,i)=>{let o=n[n.length-1];return i==="**"&&o==="**"?n:i===".."&&o&&o!==".."&&o!=="."&&o!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){let o=t[i];i===1&&o===""&&t[0]===""||(o==="."||o==="")&&(r=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){let i=t[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let a=i;for(;n[a+1]==="**";)a++;a>i&&n.splice(i+1,a-i);let u=n[i+1],l=n[i+2],f=n[i+3];if(u!==".."||!l||l==="."||l===".."||!f||f==="."||f==="..")continue;r=!0,n.splice(i,1);let c=n.slice(0);c[i]="**",t.push(c),i--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){let u=n[a];a===1&&u===""&&n[0]===""||(u==="."||u==="")&&(r=!0,n.splice(a,1),a--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let o=0;for(;(o=n.indexOf("..",o+1))!==-1;){let a=n[o-1];if(a&&a!=="."&&a!==".."&&a!=="**"){r=!0;let l=o===1&&n[o+1]==="**"?["."]:[];n.splice(o-1,2,...l),n.length===0&&n.push(""),o-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){let i=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(i){t[r]=[],t[n]=i;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let i=0,o=0,a=[],u="";for(;i<t.length&&o<r.length;)if(t[i]===r[o])a.push(u==="b"?r[o]:t[i]),i++,o++;else if(n&&t[i]==="**"&&r[o]===t[i+1])a.push(t[i]),i++;else if(n&&r[o]==="**"&&t[i]===r[o+1])a.push(r[o]),o++;else if(t[i]==="*"&&r[o]&&(this.options.dot||!r[o].startsWith("."))&&r[o]!=="**"){if(u==="b")return!1;u="a",a.push(t[i]),i++,o++}else if(r[o]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(u==="a")return!1;u="b",a.push(r[o]),i++,o++}else return!1;return t.length===r.length&&a}parseNegate(){if(this.nonegate)return;let t=this.pattern,r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){let i=0,o=0;if(this.isWindows){let u=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),l=!u&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),f=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),c=!f&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),h=l?3:u?0:void 0,y=c?3:f?0:void 0;if(typeof h=="number"&&typeof y=="number"){let[d,g]=[t[h],r[y]];d.toLowerCase()===g.toLowerCase()&&(r[y]=d,o=y,i=h)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(B)?this.#t(t,r,n,i,o):this.#i(t,r,n,i,o)}#t(t,r,n,i,o){let a=r.indexOf(B,o),u=r.lastIndexOf(B),[l,f,c]=n?[r.slice(o,a),r.slice(a+1),[]]:[r.slice(o,a),r.slice(a+1,u),r.slice(u+1)];if(l.length){let v=t.slice(i,i+l.length);if(!this.#i(v,l,n,0,0))return!1;i+=l.length}let h=0;if(c.length){if(c.length+i>t.length)return!1;let v=t.length-c.length;if(this.#i(t,c,n,v,0))h=c.length;else{if(t[t.length-1]!==""||i+c.length===t.length||(v--,!this.#i(t,c,n,v,0)))return!1;h=c.length+1}}if(!f.length){let v=!!h;for(let C=i;C<t.length-h;C++){let Z=String(t[C]);if(v=!0,Z==="."||Z===".."||!this.options.dot&&Z.startsWith("."))return!1}return n||v}let y=[[[],0]],d=y[0],g=0,m=[0];for(let v of f)v===B?(m.push(g),d=[[],0],y.push(d)):(d[0].push(v),g++);let w=y.length-1,S=t.length-h;for(let v of y)v[1]=S-(m[w--]+v[0].length);return!!this.#r(t,y,i,0,n,0,!!h)}#r(t,r,n,i,o,a,u){let l=r[i];if(!l){for(let h=n;h<t.length;h++){u=!0;let y=t[h];if(y==="."||y===".."||!this.options.dot&&y.startsWith("."))return!1}return u}let[f,c]=l;for(;n<=c;){if(this.#i(t.slice(0,n+f.length),f,o,n,0)&&a<this.maxGlobstarRecursion){let d=this.#r(t,r,n+f.length,i+1,o,a+1,u);if(d!==!1)return d}let y=t[n];if(y==="."||y===".."||!this.options.dot&&y.startsWith("."))return!1;n++}return o||null}#i(t,r,n,i,o){let a,u,l,f;for(a=i,u=o,f=t.length,l=r.length;a<f&&u<l;a++,u++){this.debug("matchOne loop");let c=r[u],h=t[a];if(this.debug(r,c,h),c===!1||c===B)return!1;let y;if(typeof c=="string"?(y=h===c,this.debug("string match",c,h,y)):(y=c.test(h),this.debug("pattern match",c,h,y)),!y)return!1}if(a===f&&u===l)return!0;if(a===f)return n;if(u===l)return a===f-1&&t[a]==="";throw new Error("wtf?")}braceExpand(){return Bp(this.pattern,this.options)}parse(t){jt(t);let r=this.options;if(t==="**")return B;if(t==="")return"";let n,i=null;(n=t.match($b))?i=r.dot?Wb:Ub:(n=t.match(Ab))?i=(r.nocase?r.dot?jb:Db:r.dot?Lb:Fb)(n[1]):(n=t.match(Gb))?i=(r.nocase?r.dot?Jb:zb:r.dot?Bb:Hb)(n):(n=t.match(Ib))?i=r.dot?Rb:Nb:(n=t.match(Mb))&&(i=kb);let o=Me.fromGlob(t,this.options).toMMPattern();return i&&typeof o=="object"&&Reflect.defineProperty(o,"test",{value:i}),o}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?Vb:r.dot?Zb:Xb,i=new Set(r.nocase?["i"]:[]),o=t.map(l=>{let f=l.map(c=>{if(c instanceof RegExp)for(let h of c.flags.split(""))i.add(h);return typeof c=="string"?nq(c):c===B?B:c._src});return f.forEach((c,h)=>{let y=f[h+1],d=f[h-1];c!==B||d===B||(d===void 0?y!==void 0&&y!==B?f[h+1]="(?:\\/|"+n+"\\/)?"+y:f[h]=n:y===void 0?f[h-1]=d+"(?:\\/|"+n+")?":y!==B&&(f[h-1]=d+"(?:\\/|\\/"+n+"\\/)"+y,f[h+1]=B))}),f.filter(c=>c!==B).join("/")}).join("|"),[a,u]=t.length>1?["(?:",")"]:["",""];o="^"+a+o+u+"$",this.negate&&(o="^(?!"+o+").+$");try{this.regexp=new RegExp(o,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;let n=this.options;this.isWindows&&(t=t.split("\\").join("/"));let i=this.slashSplit(t);this.debug(this.pattern,"split",i);let o=this.set;this.debug(this.pattern,"set",o);let a=i[i.length-1];if(!a)for(let u=i.length-2;!a&&u>=0;u--)a=i[u];for(let u=0;u<o.length;u++){let l=o[u],f=i;if(n.matchBase&&l.length===1&&(f=[a]),this.matchOne(f,l,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return J.defaults(t).Minimatch}};J.AST=Me;J.Minimatch=at;J.escape=pi;J.unescape=Ae;var Hp=H(ah());import{mkdirSync as iq,readFileSync as oq,writeFileSync as sq,appendFileSync as aq,statSync as Kp,createReadStream as uq,createWriteStream as cq,constants as Yp,existsSync as fq,unlinkSync as lq,mkdtempSync as pq,accessSync as hq,statSync as yq}from"fs";import{mkdir as dq,writeFile as mq,readFile as gq,realpath as wq,appendFile as Sq,mkdtemp as Vp,stat as Zp,lstat as Xp,chmod as vq,access as Qp,rename as xq,unlink as _q,rm as hi,readdir as bq,symlink as qq}from"fs/promises";import{pathToFileURL as Eq}from"url";import*as Nr from"os";function AD(e,t){let r=e.split(mi);return Nt(...r.slice(t))}async function FD(e){let t=await Vp(Nt(Un,"tmp-"));try{return await e(t)}finally{await hi(t,{recursive:!0,force:!0,maxRetries:2})}}function LD(){return pq(Nt(Un,"tmp-"))}async function DD(e,t={encoding:"utf8"}){return j(L`Reading the content of file at ${P.path(e)}...`),gq(e,t)}function jD(e){return j(L`Sync-reading the content of file at ${P.path(e)}...`),oq(e)}async function ID(e){return wq(e)}async function ND(e,t){if(kr(e)===kr(t)){j(L`Skipping copy file step because source and destination is the same: ${P.path(e)}`);return}j(L`Copying file from ${P.path(e)} to ${P.path(t)}...`),await oi(e,t)}async function RD(e){j(L`Creating an empty file at ${P.path(e)}...`),await wp(e)}function MD(e){j(L`Creating an empty file at ${P.path(e)}...`),Sp(e)}async function kD(e,t){j(L`Appending the following content to ${P.path(e)}:
12
+ ${t.split(`
13
+ `).map(r=>` ${r}`).join(`
14
+ `)}
15
+ `),await Sq(e,t)}function $D(e,t){aq(e,t)}async function UD(e,t,r={encoding:"utf8"}){j(L`Writing some content to file at ${P.path(e)}...`),await mq(e,t,r)}function WD(e,t){j(L`File-writing some content to file at ${P.path(e)}...`),sq(e,t)}async function GD(e){j(L`Creating directory at ${P.path(e)}...`),await dq(e,{recursive:!0})}function zD(e){j(L`Sync-creating directory at ${P.path(e)}...`),iq(e,{recursive:!0})}async function JD(e,t={}){j(L`Removing file at ${P.path(e)}...`),await hi(e,{recursive:!0,force:!0,...t})}async function BD(e,t){j(L`Renaming file from ${P.path(e)} to ${P.path(t)}...`),await xq(e,t)}async function HD(e,t){j(L`Creating symbolic link from ${P.path(t)} to ${P.path(e)}...`);let r="file";try{(await Xp(e)).isDirectory()&&(r="junction")}catch{}await qq(e,t,r)}function KD(e){j(L`Sync-removing file at ${P.path(e)}...`),xp(e)}async function YD(e,t={}){j(L`Removing directory at ${P.path(e)}...`),await hi(e,{recursive:!0,force:t.force??!0})}async function VD(){return j(L`Creating a temporary directory...`),await Vp(ut(Nr.tmpdir(),"tmp-"))}async function ZD(e){return j(L`Checking if ${P.path(e)} is a directory...`),(await Xp(e)).isDirectory()}function XD(e){return j(L`Checking if ${P.path(e)} is a directory...`),Kp(e).isDirectory()}async function QD(e){return j(L`Getting the size of file at ${P.path(e)}...`),(await Zp(e)).size}function ej(e){return j(L`Sync-getting the size of file at ${P.path(e)}...`),Kp(e).size}function tj(e){lq(e)}function rj(e){return _q(e)}function nj(e,t){return uq(e,t)}function ij(e){return cq(e)}async function Cq(e){return j(L`Getting last updated timestamp for file at ${P.path(e)}...`),(await Zp(e)).ctime}async function oj(e){try{return(await Cq(e)).getTime()}catch{return}}async function sj(e,t,r={}){await vp(e,t,r)}async function aj(e,t){await vq(e,t)}async function uj(e){try{return await Qp(e,Yp.X_OK),!0}catch{return!1}}function cj(e){try{return hq(e,Yp.W_OK),!0}catch{return!1}}function fj(e){if(!(process.platform==="win32"||typeof process.getuid!="function")){if(!Oq(e))return!1;try{let t=yq(e),r=process.getuid();return t.uid===r}catch{return!1}}}async function eh(e){try{return await Qp(e),!0}catch{return!1}}function Oq(e){return fq(e)}async function Tq(e){let t=`${xf(e.family??"business")}-${e.suffix}`,r=ut(e.directory,t);return await eh(r)?Tq(e):t}async function lj(e,t){let{default:r}=await import("./out-B2GISN65.js"),n=t;return t?.dot==null&&(n={...t,dot:!0}),r(e,n)}function qi(e,t){let r=t;return t?.dot==null&&(r={...t,dot:!0}),Hp.default.sync(e,r)}function pj(e){return Eq(e)}function hj(e){let t=e.match(/\r\n|\n/g);if(!t)return Pq();let r=0;for(let i of t)i===`\r
16
+ `&&r++;let n=t.length-r;return r>n?`\r
17
+ `:`
18
+ `}function Pq(){return Nr.EOL}async function yj(e,t){let r=await Lp(e,t);return r?Mr(r):void 0}function Ei(e,t){let r=Dp(e,t);return r?Mr(r):void 0}function dj(e,t,r){return J(e,t,r)}function mj(e){return bq(e)}async function gj(e,t){if(!await eh(e))throw new Error(`Source directory ${e} does not exist`);await oi(e,t)}export{Xr as a,rn as b,cs as c,ls as d,sn as e,de as f,xs as g,Es as h,Ts as i,er as j,an as k,un as l,cn as m,Hs as n,ln as o,Xs as p,ea as q,ra as r,sa as s,pn as t,hn as u,fa as v,Ta as w,xn as x,Za as y,En as z,Cn as A,bt as B,On as C,du as D,ir as E,Lu as F,Xu as G,oc as H,yc as I,bc as J,Ec as K,SP as L,vP as M,Ac as N,xP as O,_P as P,ae as Q,ue as R,xf as S,iA as T,oA as U,sA as V,aA as W,uA as X,cA as Y,fA as Z,lA as _,pA as $,hA as aa,o0 as ba,yA as ca,dA as da,mA as ea,gA as fa,wA as ga,Q as ha,AD as ia,FD as ja,LD as ka,DD as la,jD as ma,ID as na,ND as oa,RD as pa,MD as qa,kD as ra,$D as sa,UD as ta,WD as ua,GD as va,zD as wa,JD as xa,BD as ya,HD as za,KD as Aa,YD as Ba,VD as Ca,ZD as Da,XD as Ea,QD as Fa,ej as Ga,tj as Ha,rj as Ia,nj as Ja,ij as Ka,Cq as La,oj as Ma,sj as Na,aj as Oa,uj as Pa,cj as Qa,fj as Ra,eh as Sa,Oq as Ta,Tq as Ua,lj as Va,qi as Wa,pj as Xa,hj as Ya,Pq as Za,yj as _a,Ei as $a,dj as ab,mj as bb,gj as cb,Ue as db,tE as eb,Li as fb,oE as gb,Ii as hb,ge as ib,Ri as jb,Jr as kb,Iq as lb,Nq as mb,Rq as nb,Mq as ob,fh as pb,Oi as qb,Ai as rb,Ht as sb,P as tb,wh as ub,L as vb,yt as wb,Le as xb,bE as yb,qE as zb,EE as Ab,CE as Bb,OE as Cb,TE as Db,j as Eb,PE as Fb,AE as Gb,R as Hb,FE as Ib,De as Jb,We as Kb,Mi as Lb,LE as Mb};
@@ -0,0 +1,103 @@
1
+ import{a as Y,b as _t}from"./chunk-JLGA3B7P.js";import{a as ee,b as Ft,c as Pt,g as Oe,h as ue,i as W,k as pe,l as bt,n as It,q as kt}from"./chunk-36S6MFJQ.js";import{a as G,l as vt,m as $t}from"./chunk-RSNFNZ6F.js";import{s as de,t as J}from"./chunk-VVHJ2AUF.js";import{a as B,b as z,f as mt,h as ft,j as ht,k as gt,l as yt,o as Et,q as wt,r as xt,s as le,t as k,v as Tt,x as Rt}from"./chunk-FDSNRKGQ.js";import{da as St}from"./chunk-MQ55QUOJ.js";import{Fa as q,Ha as M}from"./chunk-UORSJB4A.js";import{A as ae,B as ut,S as pt,x as dt,z as j}from"./chunk-7A4ZE5IS.js";import{c as lt}from"./chunk-QBRRFFMZ.js";import{j as I}from"./chunk-FJOVMEPN.js";import{Bb as K,Eb as v,Fb as U,O as it,Sa as b,Va as D,Z as qe,ab as He,la as L,na as Ae,ta as Ce,tb as A,va as at,vb as ce,xa as ct}from"./chunk-OIQ5NQ5I.js";import{k as ie}from"./chunk-3PYDIBTX.js";import{c as R,e as nt,f as O,h as rt,i as ot,j as N,n as je}from"./chunk-IWTNUJGY.js";import{e as st,g as m}from"./chunk-VKWPEFWQ.js";m();m();m();var ys=".shopifyignore",jt=/templates\/\*(\.(json|liquid))?$/,Lt=new Set;function me(e,t={}){let s=t.ignoreFromFile??[],n=t.ignore??[],r=t.only??[],[o=[],a=[]]=Ne(s),[i=[],u=[]]=Ne(n),[p=[],c=[]]=Ne(r),l=e.filter(V(o,".shopifyignore"));return l=l.filter(V(i,"--ignore")),l=l.filter(V(p,"--only",!0)),a.length>0&&(l=l.concat(e.filter(V(a,".shopifyignore",!0)))),u.length>0&&(l=l.concat(e.filter(V(u,"--ignore",!0)))),c.length>0&&(l=l.filter(V(c,"--only"))),it(l,w=>w.key)}function V(e,t,s=!1){return({key:n})=>{if(e.length===0)return!0;let r=e.some(a=>Es(n,a)||Ts(a)&&xs(n,Rs(a)));return(s?!r:r)?(v(`Ignoring theme file ${n} via ${t}...`),!1):!0}}async function qt(e){let t=R(e,ys);return await b(t)?(await L(t,{encoding:"utf8"})).split(/(\r\n|\r|\n)/).map(r=>r.trim()).filter(r=>r&&!r.startsWith("#")):[]}function Ne(e){let t=e.filter(n=>n.startsWith("!")).map(n=>n.slice(1));return[e.filter(n=>!n.startsWith("!")),t]}function Es(e,t){let s={matchBase:!0,noglobstar:!0};return He(e,t,s)?!0:(!t.includes("*")&&t.endsWith("/")&&!Lt.has(t)&&(Lt.add(t),j({headline:"Directory pattern may be misleading.",body:`For more reliable matching, consider using "${t}*" or "${t}*.<file_extension>" instead.`})),ws(t)?He(e,t.replace(jt,"templates/**/*$1"),s):!1)}function ws(e){return jt.test(e)}function xs(e,t){return t.test(e)}function Ts(e){return e.startsWith("/")&&e.endsWith("/")}function Rs(e){return new RegExp(e.slice(1,-1))}m();import At from"fs/promises";var fe=class{notifyPath;isValidUrl;constructor(t){this.notifyPath=t,this.isValidUrl=this.validateUrl(t),this.notifyPath===""&&U("Notification skipped: notifyPath is an empty string")}async notify(t){if(this.notifyPath!=="")try{v(`Notifying filechange listener at ${this.notifyPath}...`),this.isValidUrl?await this.notifyUrl(t):await this.notifyFile(t)}catch(s){q(s);let n=`Failed to notify filechange listener at ${this.notifyPath}`;s instanceof Error&&(n=n.concat(`: ${s.message}`)),U(n)}}async notifyUrl(t){let s=await fetch(this.notifyPath,{method:"POST",body:JSON.stringify({files:[t]}),headers:{"Content-Type":"application/json"}});if(!s.ok)throw new Error(s.statusText)}async notifyFile(t){await At.writeFile(this.notifyPath,t),await At.utimes(this.notifyPath,new Date,new Date)}validateUrl(t){try{let s=new URL(t);return s.protocol==="http:"||s.protocol==="https:"}catch{return!1}}};m();m();m();import Ss from"node:events";var Ct=["assets/**/*.*","locales/**/*.json","blocks/**/*.liquid","snippets/**/*.liquid"];function Ht(e){let t=new Map,s=new Set,n=new Ss,r=(c,l)=>{n.emit(c,l)},o=async c=>{let l=await ge(e,c),f=he(c,l),w=typeof l=="string"?l:"",h=Buffer.isBuffer(l)?l.toString("base64"):"";return t.set(c,G({key:c,checksum:f,value:w,attachment:h})),l},a=D(Ct,{cwd:e,deep:3,ignore:J}).then(c=>Promise.all(c.map(o))),i=(c,l)=>{let f=O(e,l),w=o(f).then(()=>{let h=t.get(f);return s.add(h.key),h.value??h.attachment??""});pt(5).then(()=>{s.delete(f)}).catch(()=>{}),r(c,{fileKey:f,onContent:h=>{w.then(y=>{y&&h(y)}).catch(()=>{})},onSync:h=>{}})},u=c=>{let l=O(e,c);s.delete(l),t.delete(l),r("unlink",{fileKey:l,onSync:f=>f()})},p=new Set(Ct.map(c=>R(e,c.split("/").shift()??"")));return{root:e,files:t,unsyncedFileKeys:s,ready:async()=>a.then(()=>{}),delete:async c=>{t.delete(c)},write:async c=>{t.set(c.key,c)},read:o,addEventListener:(c,l)=>{n.on(c,l)},startWatcher:async()=>{let{default:c}=await import("./chokidar-5RWEYTNQ.js");c.watch([...p],{ignored:J,persistent:!process.env.SHOPIFY_UNIT_TEST,ignoreInitial:!0}).on("add",i.bind(null,"add")).on("change",i.bind(null,"change")).on("unlink",u.bind(null))}}}m();m();var Fs="https://unpkg.com/@shopify/polaris@13.9.2/build/esm/styles.css";function Ot(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function Nt(e){return(0,String.raw)`<!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>${e.title}</title>
5
+ <link rel="stylesheet" href="${Fs}" />
6
+ </head>
7
+ <body>
8
+ <div style="display: flex; justify-content: center; padding-top: 2rem;">
9
+ <div style="width: 80%;">
10
+ <div class="Polaris-Banner Polaris-Banner--withinPage" tabindex="0" role="alert" aria-live="polite">
11
+ <div class="Polaris-Box" style="--pc-box-width:100%">
12
+ <div
13
+ class="Polaris-BlockStack"
14
+ style="--pc-block-stack-align:space-between;--pc-block-stack-order:column"
15
+ >
16
+ <div
17
+ class="Polaris-Box"
18
+ style="--pc-box-color: var(--p-color-text-critical-on-bg-fill); --pc-box-background: var(--p-color-bg-fill-critical); --pc-box-padding-block-start-xs: var(--p-space-300); --pc-box-padding-block-end-xs: var(--p-space-300); --pc-box-padding-inline-start-xs: var(--p-space-300); --pc-box-padding-inline-end-xs: var(--p-space-300); --pc-box-border-start-start-radius: var(--p-border-radius-300); --pc-box-border-start-end-radius: var(--p-border-radius-300);"
19
+ >
20
+ <div
21
+ class="Polaris-InlineStack"
22
+ style="--pc-inline-stack-align:space-between;--pc-inline-stack-block-align:center;--pc-inline-stack-wrap:nowrap;--pc-inline-stack-gap-xs:var(--p-space-200);--pc-inline-stack-flex-direction-xs:row"
23
+ >
24
+ <div
25
+ class="Polaris-InlineStack"
26
+ style="--pc-inline-stack-wrap:nowrap;--pc-inline-stack-gap-xs:var(--p-space-100);--pc-inline-stack-flex-direction-xs:row"
27
+ >
28
+ <span class="Polaris-Banner--textCriticalOnBgFill">
29
+ <span class="Polaris-Icon">
30
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
31
+ <path d="M10 6a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5a.75.75 0 0 1 .75-.75Z" />
32
+ <path d="M11 13a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z" />
33
+ <path
34
+ fill-rule="evenodd"
35
+ d="M17 10a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm-1.5 0a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Z"
36
+ />
37
+ </svg>
38
+ </span>
39
+ </span>
40
+ <h2 class="Polaris-Text--root Polaris-Text--headingSm Polaris-Text--break">
41
+ ${e.header}
42
+ </h2>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ <div
47
+ class="Polaris-Box"
48
+ style="--pc-box-padding-block-start-xs:var(--p-space-300);--pc-box-padding-block-end-xs:var(--p-space-300);--pc-box-padding-block-end-md:var(--p-space-400);--pc-box-padding-inline-start-xs:var(--p-space-300);--pc-box-padding-inline-start-md:var(--p-space-400);--pc-box-padding-inline-end-xs:var(--p-space-300);--pc-box-padding-inline-end-md:var(--p-space-400)"
49
+ >
50
+ <div
51
+ class="Polaris-BlockStack"
52
+ style="--pc-block-stack-order:column;--pc-block-stack-gap-xs:var(--p-space-300)"
53
+ >
54
+ ${e.errors.map(s=>`
55
+ <div>
56
+ <span class="Polaris-Text--root Polaris-Text--headingSm">${Ot(s.message)}</span>
57
+ <ul class="Polaris-List">
58
+ <li class="Polaris-List__Item">${Ot(s.code)}</li>
59
+ </ul>
60
+ </div>`).join("")}
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ </body>
69
+ </html>`}m();m();var Ps=/<head(\s[^>]*)?>/i,Ue="https://cdn.shopify.com/storefront",vs=`${Ue}/standard-events.js`,$s=`${Ue}/standard-events.dev.js`,Dt=`${Ue}/standard-events-inspector.js`,Ut="shopify-cli-standard-events-inspector",bs=new RegExp(`<script\\b[^>]*(?:\\bid=["']${De(Ut)}["']|\\bsrc=["']${De(Dt)}["'])[^>]*>`,"i"),Is=new RegExp(De(vs),"g");function ye(e){return bs.test(e)?e:e.replace(Ps,t=>`${t}<script id="${Ut}" src="${Dt}" defer></script>`)}function Wt(e){return e.replace(Is,$s)}function De(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}m();var Mt=80;function te(e,t,s){if(!ks(e)||s.type==="theme-extension")return;let r=t.headers.get("server-timing")?.match(/cfRequestDuration;dur=([\d.]+)/)?.[1],o=r?`${Math.round(Number(r))}ms`:"";if(ie()==="json"){K(`Request ${e.method} ${t.status} ${e.path}${o?` ${o}`:""}`);return}let a=e.path.length>Mt?`${e.path.substring(0,Mt)}...`:e.path,i=_s(t.status),u=e.method.padStart(6);K(ce`• ${de.format(new Date)} Request ${A.raw("\xBB")} ${u} ${i(String(t.status))} ${a} ${A.gray(o)}`)}function ks(e){let t=[Z,X,"/checkouts","/payments"],s=[".js",".css",".json",".map"];if(t.some(o=>e.path.startsWith(o)))return!1;let[n]=e.path.split("?"),r=N(n);return!s.includes(r)}function _s(e){return e<300?A.green:e<400?A.yellow:A.errorText}var X="/cdn/",Z="/ext/cdn/",We="/api/collect",Ls=new RegExp(String.raw`^${ee}/cart/`),js=new RegExp(String.raw`^${ee}/cart(/|\.js|\.json|$)`),Ee=/^\/checkouts\/(?!internal\/)/,zt=new RegExp(String.raw`^${ee}/account(/login/multipass(/[^/]+)?|/logout)?/?$`),qs=new RegExp(String.raw`^${ee}/localization(\.json)?/?$`),As=new RegExp(`^${X}`),Cs=new RegExp(`^${Z}`),Hs=/^\/api\/(unstable|\d{4}-\d{2})\/graphql\.json/,Os=["/.well-known","/shopify/monorail","/mini-profiler-resources","/web-pixels-manager","/web-pixels@","/wpm","/services/",We,"/cdn-cgi/challenge-platform"],Jt="_shopify_essential",Ns=new RegExp(`${Jt}=([^;]*)(;|$)`);function Gt(e,t){return k(async s=>{if(Os.some(n=>s.path.startsWith(n)))return null;if(Ds(s)){let n=s.path.split("?")[0]??"";return Be(s,t).then(async r=>{if(te(s,r,t),r.ok){let o=n.split("/").at(-1)??"";if(t.localThemeFileSystem.files.has(`assets/${o}.liquid`)){let a=se(await r.text(),t);return new Response(a,r)}}return r}).catch(async r=>{let{status:o,statusText:a,...i}=W(r,`Failed to proxy request to ${n}`);return o>=500&&!n.endsWith(".js.map")&&j(i),new Response(r.message,{status:o,statusText:a})})}})}function Ds(e){if(e.method!=="GET"||e.path.match(Ls)||e.path.match(Ee)||e.path.match(zt)||e.path.match(As)||e.path.match(Cs))return!0;let[t]=e.path.split("?"),s=N(t),n=e.headers.get("accept")??"*/*";return s===".html"||n.includes("text/html")?!1:!!s||n!=="*/*"}function Us(e){let[t]=e.split("?");return!(js.test(t)||Ee.test(t)||zt.test(t)||qs.test(t))}function we(e){return e.session.storeFqdn.replace(/\\/g,"\\\\").replace(/\./g,"\\.")}function Ws(e){return Hs.test(e.path)}function se(e,t){let s=e,n=`(data-shs-beacon-endpoint=["'])https://${we(t)}${We}`,r=new RegExp(n,"g");s=s.replace(r,`$1${We}`);let o=new RegExp(`(https?:)?//${we(t)}${X}`,"g");s=s.replace(o,X);let a=/(?:https?:)?\/\/cdn\.shopify\.com\/(.*?\/(assets\/[^?#"'`>\s]+))/g,i=c=>c.startsWith("assets/"),u=new Set([...t.localThemeFileSystem.files.keys()].filter(i)),p=new Set([...t.localThemeExtensionFileSystem.files.keys()].filter(i));return s=s.replace(a,(c,l,f)=>{let w=f&&u.has(f),h=f&&p.has(f)&&l.startsWith("extensions/");return Y(f).startsWith("image/")?c:h?`${Z}${l}`:w?`${X}${l}`:c}),t.options.standardEventsDevBundle&&(s=Wt(s)),s}function Ms(e,t){let s=`http://${t.options.host}:${t.options.port}`,n=new RegExp(`data-base-url=["']((?:https?:)?//${we(t)})[^"']*?["']`,"g");return e.replace(n,(r,o)=>r.replace(o,s))}function Bs(e,t){let s=new RegExp(`Domain=${we(t)};\\s*`,"gi");return e.map(n=>n.replace(s,""))}async function ne(e,t,s,n){let r=Vt(e,t,n);if(r.status>=300&&r.status<400)return r;t.headers.get("content-type")?.includes("application/json")||r.headers.set("content-type","text/html; charset=utf-8");let i=await r.text();return i=se(i,e),i=Ms(i,e),e.options.standardEventsInspector&&(i=ye(i)),s&&(i=s(i)??i),new Response(i,r)}var Yt=["connection","keep-alive","proxy-authenticate","proxy-authorization","te","trailer","transfer-encoding","upgrade","expect","content-security-policy","host"];function Vt(e,t,s){let n=new Response(t.body,t);n.headers.delete("content-length"),n.headers.delete("content-encoding");for(let i of Yt)n.headers.delete(i);n.headers.delete("access-control-allow-origin"),n.headers.delete("access-control-allow-credentials"),n.headers.delete("access-control-allow-methods"),n.headers.delete("access-control-allow-headers"),n.headers.delete("access-control-expose-headers"),n.headers.delete("access-control-max-age");let r=n.headers.get("Link");r&&n.headers.set("Link",se(r,e));let o=n.headers.get("Location");o&&n.headers.set("Location",zs(e,o,s));let a=n.headers.getSetCookie();if(a?.length){n.headers.set("Set-Cookie",Bs(a,e).join(","));let i=a.join(",").match(Ns)?.[1];i&&(e.session.sessionCookies[Jt]=i)}return n}function zs(e,t,s){if(!s?.keepExternalRedirects){let a=new URL(t,"https://shopify.dev");return Ee.test(a.pathname)?t:Bt(a)}let n=`https://${e.session.storeFqdn}`,r=new URL(t,n),o=r.host===new URL(n).host;return o&&!Ee.test(r.pathname)?Bt(r):!o&&t.startsWith("//")?r.href:t}function Bt(e){return e.searchParams.delete("_fd"),e.searchParams.delete("pb"),e.href.replace(e.origin,"")}function Me(e){let t=mt(e);for(let n of Yt)delete t[n];delete t["upgrade-insecure-requests"];let s=ft(e);return s&&(t["X-Forwarded-For"]=s),t}function Be(e,t){let s=e.path.replace(new RegExp(Z,"g"),"/"),n=e.path.startsWith(Z)?"cdn.shopify.com":t.session.storeFqdn,r=new URL(s,`https://${n}`);if(r.hostname!==n)return Promise.reject(new Error(`Request failed: Hostname mismatch. Expected host: ${n}. Resulting URL hostname: ${r.hostname}`));let o=ht(e),a=Me(e);return Ws(e)||(/\/assets\/[^/]+\.(css|js)$/.test(r.pathname)&&/\?\d+$/.test(r.search)&&(r.search=`?v=${Date.now()}`),r.searchParams.set("_fd","0"),r.searchParams.set("pb","0"),a=Pt({...a,...Ft(),...n===t.session.storeFqdn?t.session.crawlerSignatureHeaders:{},referer:r.origin,Cookie:It(t.session,{headers:a}),...t.type==="theme"&&Us(e.path)?{Authorization:`Bearer ${t.session.storefrontToken}`}:{}})),fetch(r,{method:e.method,body:o,duplex:o?"half":void 0,redirect:"manual",headers:a}).then(i=>Vt(t,i)).catch(i=>{throw ue(q(i),r)})}var ze=0,Js=5;function Zt(e,t,s){return k(n=>{let[r="/",o=""]=n.path.split("?");return Ys(n)&&(t.lastRequestedPath=n.path),t.options.errorOverlay!=="silent"&&t.localThemeFileSystem.uploadErrors.size>0?Xt(t,{status:500,statusText:"Internal Server Error"},{title:"Failed to Upload Theme Files",header:"Upload Errors",errors:Array.from(t.localThemeFileSystem.uploadErrors.entries()).map(([i,u])=>({message:i,code:u.join(`
70
+ `)}))}):pe(t.session,{method:n.method,path:r,query:[...new URLSearchParams(o)],themeId:String(e.id),sectionId:"",headers:Me(n),replaceExtensionTemplates:Te(t),replaceTemplates:Je(t,r,gt(n,"localization")?.toLowerCase())}).then(async i=>{if(i.status>=400&&i.status<500&&!Gs(n)){let u=await Vs(n,t,i);if(u)return te(n,u,t),u}return te(n,i,t),ne(t,i,u=>(Xs(i,u,String(e.id)),ze=0,Ge(u,t)),{keepExternalRedirects:bt({method:n.method,path:r})})}).catch(async i=>{if(i instanceof xe&&(v(`Theme ID mismatch: expected ${i.getExpectedThemeId()} but got ${i.getActualThemeId()}; refreshing session...`),M("theme-service:error-page:theme-id-mismatch"),t.session.refresh)){if(ze++,ze>Js){let _=new I(i.getMessage());if(s)return s(_),new Response(_.message,{status:502});ut(_),process.exit(1)}await t.session.refresh();let h=new URLSearchParams(o),y=new URLSearchParams([...h].filter(([_])=>!_.startsWith("__sfr"))),_e=r+(y.toString()?`?${y}`:"");return new Response(null,{status:302,headers:{Location:_e}})}let{status:u,statusText:p,cause:c,...l}=W(i,"Failed to render storefront"),[f,...w]=l.headline.split(`
71
+ `);return ae(l),Xt(t,{status:u,statusText:p},{title:f,header:f,errors:[{message:[...w,c.message].join("<br>"),code:c.stack?.replace(`${c.message}
72
+ `,"")??""}]})})})}function Xt(e,t,s){let n=Ge(Nt(s),e);return e.options.standardEventsInspector&&(n=ye(n)),M("theme-service:error-page:rendered"),new Response(n,{...t,headers:t.headers??{"Content-Type":"text/html; charset=utf-8"}})}function Gs(e){let t=new URLSearchParams(e.path.split("?")[1]);return["section_id","sections","app_block_id"].some(s=>t.has(s))}function Ys(e){return e.headers.get("sec-fetch-mode")==="navigate"}async function Vs(e,t,s){v(`Render failed for ${e.path} with ${s.status} (x-request-id: ${s.headers.get("x-request-id")}), trying proxy...`);let n=await Be(e,t).catch(r=>new Response(null,W(r)));if(n.status<400)return v(`Proxy status: ${n.status}. Returning proxy response.`),t.options.standardEventsInspector&&(n.headers.get("content-type")??"").includes("text/html")?ne(t,n):n;v(`Proxy status: ${n.status}. Returning render error.`)}function Xs(e,t,s){let n=t.match(/Shopify\.theme\s*=\s*{[^}]+?"id":\s*"?(\d+)"?(}|,)/)?.[1];if(n&&n!==s)throw new xe(s,n,e)}var xe=class extends Error{response;expectedThemeId;actualThemeId;constructor(t,s,n){super([`Theme ID mismatch: expected ${t} but got ${s}.`,`Request ID: ${n.headers.get("x-request-id")}`,`URL: ${n.url}`,"This is likely related to an issue in upstream Shopify APIs.","Please try again in a few minutes and report this issue:","https://community.shopify.dev/c/shopify-cli-libraries/14"].join(`
73
+ `)),this.response=n,this.expectedThemeId=t,this.actualThemeId=s}getMessage(){return this.message}getResponse(){return this.response}getExpectedThemeId(){return this.expectedThemeId}getActualThemeId(){return this.actualThemeId}};m();m();function Re(e,t){let s=new RegExp(`{%-?\\s*${t}\\s*-?%}`),n=new RegExp(`{%-?\\s*end${t}\\s*-?%}`),r=s.exec(e);if(!r)return;let o=r.index+r[0].length;n.lastIndex=o;let a=n.exec(e);if(!a)return;let i=a.index;return e.slice(o,i)}m();function Se(e){let{pathname:t,search:s,searchParams:n}=new URL(e.path,"http://e.c");return{pathname:t,search:s,searchParams:n}}var Zs={stylesheet:new Map,javascript:new Map};function Qt(e,t){return k(async s=>{if(s.method!=="GET")return;if(tn(s,t))return sn(s,t);let{file:n,fileKey:r,isUnsynced:o}=en(s,t);if(!r)return;let a=Y(r);if(a.startsWith("image/")&&s.path.includes("&")&&!o)return;if(Et(s,"X-Local-Asset","true"),!n){o&&z(s,B({statusCode:404,statusMessage:"Not found"}));return}let i=n.value?Buffer.from(se(n.value,t)):Buffer.from(n.attachment??"","base64");return le(s,{getContents:()=>i,getMeta:()=>({type:a,size:i.length,mtime:n.stats?.mtime})})})}var Qs=/^(?:\/cdn\/(?!extensions\/).*?)?\/assets\/([^?]+)/,Ks=/^(?:\/(?:ext\/)?cdn\/extensions\/.*?)?\/assets\/([^?]+)/;function en(e,t){let s=(n,r)=>{let o=e.path.match(n)?.[1];if(o){let a=R("assets",o),i=r.files.get(a),u=r.unsyncedFileKeys.has(a);if(i||u)return{file:i,isUnsynced:u,fileKey:a}}};return s(Qs,t.localThemeFileSystem)??s(Ks,t.localThemeExtensionFileSystem)??{isUnsynced:!1,fileKey:void 0,file:void 0}}function tn(e,t){return t.type==="theme"&&e.path.includes("/compiled_assets")}function sn(e,t){switch(Se(e).pathname.split("/").at(-1)){case"styles.css":return nn(t,e);case"block-scripts.js":return Ye(t,e,"block");case"snippet-scripts.js":return Ye(t,e,"snippet");case"scripts.js":return Ye(t,e,"section");case void 0:break;default:break}}function nn(e,t){let s=Fe(e,"section"),n=Fe(e,"block"),r=Fe(e,"snippet"),o=[`/*** GENERATED LOCALLY ***/
74
+ `];for(let[,i]of[...s,...n,...r]){let u=Kt(i,"stylesheet");u&&o.push(u)}let a=o.join(`
75
+ `);return le(t,{getContents:()=>a,getMeta:()=>({type:"text/css",size:Buffer.byteLength(a),mtime:new Date})})}function Ye(e,t,s){let n=Fe(e,s),r=`${s}s`,o=[`
76
+ /*** GENERATED LOCALLY ***/
77
+
78
+ (function () {
79
+ var __${r}__ = {};
80
+
81
+ (function () {
82
+ var element = document.getElementById("${r}-script");
83
+ var attribute = element ? element.getAttribute("data-${r}") : "";
84
+ var ${r} = attribute.split(",").filter(Boolean);
85
+
86
+ for (var i = 0; i < ${r}.length; i++) {
87
+ __${r}__[${r}[i]] = true;
88
+ }
89
+ })();`];for(let[i,u]of n){let p=i.split("/").pop()?.replace(".liquid",""),c=Kt(u,"javascript")??"";p&&c&&o.push(`
90
+ (function () {
91
+ if (!__${r}__["${p}"] && !Shopify.designMode) return;
92
+ try {
93
+ ${c}
94
+ } catch (e) {
95
+ console.error(e);
96
+ }
97
+ })();`)}o.push("})();");let a=o.join(`
98
+ `);return le(t,{getContents:()=>a,getMeta:()=>({type:"text/javascript",size:Buffer.byteLength(a),mtime:new Date})})}function Fe(e,t){return[...e.localThemeFileSystem.files.entries()].filter(([s])=>s.endsWith(".liquid")&&s.startsWith(`${t}s/`)).sort(([s],[n])=>s.localeCompare(n))}function Kt(e,t){let s=Zs[t],n=s.get(e.key);if(n?.checksum===e.checksum)return n.content;if(s.delete(e.key),!e.value)return;let r=[`/* ${e.key} */`],o=Re(e.value??"",t)?.trimEnd();if(o&&r.push(o),r.length>1){let a=r.join(`
99
+ `);return s.set(e.key,{checksum:e.checksum,content:a}),a}}m();import*as es from"node:os";function rn(e,t){let s=new Set,n=`:${t}`,r=e.toLowerCase().trim();if(s.add(`${r}${n}`),["localhost","127.0.0.1","::1","0.0.0.0"].includes(r)&&(s.add(`localhost${n}`),s.add(`127.0.0.1${n}`),s.add(`[::1]${n}`)),r==="0.0.0.0"||r==="::")for(let a of Object.values(es.networkInterfaces()))for(let i of a??[]){let u=i.address.toLowerCase().split("%")[0],c=i.family==="IPv6"?`[${u}]`:u;s.add(`${c}${n}`)}return s}function on(e){if(e)return e.toLowerCase().replace(/\.(?=:\d|$)/,"")}function ts(e,t){let s=rn(e,t);return k(n=>{let r=n.node.req.headers.host,o=on(r);if(!o||!s.has(o))return z(n,B({statusCode:400,statusMessage:"Bad Request",message:"Invalid Host header"}))})}m();function ss(){return ns()}function Qr(){return ns()}function ns(){return{root:"",files:new Map,unsyncedFileKeys:new Set,uploadErrors:new Map,ready:()=>Promise.resolve(),delete:async e=>{},read:async e=>"",write:async e=>{},stat:async e=>({mtime:new Date,size:1}),addEventListener:()=>{},startWatcher:async()=>{}}}import{createServer as an}from"node:http";async function po(e,t){let s=await ln(e,t);return await dn(e,s),cn(e,s)}function cn(e,t){let s=Tt();s.use(ts(t.options.host,t.options.port)),s.use(rs(e,t)),s.use(Qt(e,t)),s.use(Gt(e,t)),s.use(Zt(e,t));let n=an(Rt(s));return{dispatch:s.handler.bind(s),start:async()=>new Promise(r=>n.listen({port:t.options.port,host:t.options.host},()=>r({close:async()=>{await Promise.all([new Promise(o=>{n.closeAllConnections(),n.close(o)})])}})))}}async function ln(e,t){let{adminSession:s,storefrontPassword:n,themeExtensionPort:r,themeExtensionDirectory:o,crawlerSignatureHeaders:a}=t,i="127.0.0.1",u=r??9293,p=ss(),c=Ht(o);return await c.ready(),{session:await kt(e.id.toString(),s,void 0,n,a),localThemeFileSystem:p,localThemeExtensionFileSystem:c,directory:o,type:"theme-extension",lastRequestedPath:"",options:{themeEditorSync:!1,noDelete:!1,ignore:[],only:[],host:i,port:u,liveReload:"hot-reload",standardEventsDevBundle:!1,standardEventsInspector:!1,open:!1,errorOverlay:"default"}}}async function dn(e,t){let s=t.localThemeExtensionFileSystem,n=({fileKey:r,onContent:o,onSync:a})=>{o(()=>{Pe(e,t,a,{type:"update",key:r,payload:{isThemeExtension:!0}})})};return s.addEventListener("add",n),s.addEventListener("change",n),s.ready().then(async()=>s.startWatcher())}function Te(e){let t={},s=e.localThemeExtensionFileSystem;for(let n of s.unsyncedFileKeys){let r=s.files.get(n),o=r?.value??r?.attachment;o&&(t[n]=o)}return t}var be=st(St(),1);import un from"node:events";var Ve=new Map,re=new Map;function os(e,t){let s=(0,be.parseJSON)(t,null,!0);if(!s)return;let n=s?.sections;n&&!e.startsWith("locales/")?re.set(e,Object.entries(n||{}).map(([r,{type:o}])=>[o,r])):re.delete(e)}function Xe(e){return!e.startsWith("assets/")&&[".liquid",".json"].includes(N(e))}function Je(e,t,s){let n={},r=/^templates\/.+\.json$/,o=t?`${R("templates",t.replace(/^\//,"").replace(/\.html$/,"")||"index")}.json`:"",a=!!t&&e.localThemeFileSystem.files.has(o),i=/^locales\/.+\.json$/,u=!!s&&(e.localThemeFileSystem.files.has(`locales/${s}.json`)||e.localThemeFileSystem.files.has(`locales/${s}.default.json`));for(let p of e.localThemeFileSystem.unsyncedFileKeys)if(Xe(p)){if(a&&r.test(p)){if(p!==o)continue}else if(i.test(p)){if(u){if(!p.startsWith(`locales/${s}.`))continue}else if(!p.includes(".default."))continue}n[p]=e.localThemeFileSystem.files.get(p)?.value??""}return n}function bo(e,t){let s=({fileKey:r,onContent:o,onSync:a})=>{let i=N(r);o(u=>{!gn(r)&&Xe(r)&&i===".json"&&os(r,u),Pe(e,t,a,{type:"update",key:r,payload:fn(r,t)})})},n=({fileKey:r,onSync:o})=>{re.delete(r),Pe(e,t,o,{type:"delete",key:r})};return t.localThemeFileSystem.addEventListener("add",s),t.localThemeFileSystem.addEventListener("change",s),t.localThemeFileSystem.addEventListener("unlink",n),t.localThemeFileSystem.ready().then(async()=>{let r=[...t.localThemeFileSystem.files];return Promise.allSettled(r.map(async([o,a])=>{if(o.endsWith(".json")){let i=a.value??await t.localThemeFileSystem.read(o);i&&typeof i=="string"&&os(o,i)}else o.endsWith(".liquid")&&ls(a)}))})}var pn="1",as=new un;function $e(e){as.emit("hot-reload",{...e,version:pn})}function rs(e,t){return k(s=>{let n=s.headers.get("accept")==="text/event-stream",r=Se(s).searchParams;if(n){let o=xt(s);return as.on("hot-reload",a=>{o.push(JSON.stringify(a)).catch(i=>{j({headline:"Failed to send HotReload event.",body:i.stack})})}),$e({type:"open",pid:String(process.pid),themeId:String(e.id)}),o.send().then(()=>o.flush())}if(r.has("hr-log")){let o=(0,be.parseJSON)(r.get("hr-log")??"",null);return o&&(o.headline=`[HotReload] ${o.headline}`,o.type==="error"?ae(o):o.type==="warn"?j(o):o.type==="info"?dt(o):j({headline:`Unknown HotReload log type: ${o.type}`})),null}if(s.path===cs)return L(Ie()).then(o=>yt(s,o,"application/javascript")).catch(o=>z(s,B({cause:o})));if(r.has("section_id")||r.has("app_block_id")){let o=r.get("section_key")??"",a=r.get("section_id")??"",i=r.get("app_block_id")??"",u=s.path.split("?")[0]??"",p=new URLSearchParams(r);if(p.delete("section_key"),p.delete("section_id"),p.delete("app_block_id"),p.delete("_fd"),p.delete("pb"),a===""&&i==="")return;let c={};if(a){let l=t.localThemeFileSystem.unsyncedFileKeys;if(l.has(o)){let f=t.localThemeFileSystem.files.get(o)?.value;if(!f)return"";c[o]=f}for(let f of l)if(f.endsWith(".json")){for(let[w,h]of re.get(f)??[])if(a.endsWith(`__${h}`)){let y=t.localThemeFileSystem.files.get(f)?.value;y&&(c[f]=y);continue}}}return pe(t.session,{method:s.method,path:u??"/",query:[...p.entries()],themeId:String(e.id),sectionId:a,appBlockId:i,replaceTemplates:c,headers:wt(s),replaceExtensionTemplates:Te(t)}).then(async l=>{if(!l.ok)throw M("theme-service:hot-reload:section:render-failed"),ue(l);return ne(t,l)}).catch(async l=>{let{status:f,statusText:w,...h}=W(q(l),"Failed to render section on Hot Reload");return M("theme-service:hot-reload:section:render-error"),i||j(h),new Response(null,{status:f,statusText:w})})}})}var oe=(e,t)=>$e({themeId:String(e),type:"full",key:t});function Pe(e,t,s,n){let r=()=>oe(e.id,n.key);if(t.options.liveReload==="off")return;if(t.options.liveReload==="full-page"){s(r);return}let o=String(e.id);$e({sync:"local",themeId:o,...n}),s(()=>$e({sync:"remote",themeId:o,...n}),r)}function mn(e,t){let s=new Set;if(e.endsWith(".json")){let n=t.localThemeFileSystem.files.get(e)?.value;if(n){let r=(0,be.parseJSON)(n,null,!0)?.sections;for(let o of Object.keys(r??{}))s.add(o)}}else{let n=e.match(/^sections\/(.+)\.liquid$/)?.[1];if(n)for(let[r,o]of re)for(let[a,i]of o)a===n&&s.add(i)}return[...s]}function fn(e,t){let[s]=e.split("/"),n=t.localThemeFileSystem.files.get(e);return{sectionNames:s==="sections"?mn(e,t):[],replaceTemplates:Xe(e)?Je(t):{},updatedFileParts:n&&ls(n)}}var ve="hot-reload-client",hn="/cdn/shopifycloud/theme-hot-reload/theme-hot-reload.js",is=new RegExp(`<script id="${ve}"[^>]*>[^<]*</script>`),cs="/@shopify/theme-hot-reload";function Ge(e,t){return t.options.liveReload==="off"?e.replace(is,""):process.env.SHOPIFY_CLI_LOCAL_HOT_RELOAD?e.replace(is,"").replace(/<\/head>/,`<script id="${ve}" src="${cs}" defer></script></head>`):e.includes(`<script id="${ve}"`)?e:e.replace(/<\/head>/,`<script id="${ve}" src="${hn}" defer></script></head>`)}function gn(e){return e.startsWith("assets/")}function ls(e){if(!(["sections/","snippets/","blocks/"].some(c=>e.key.startsWith(c))&&e.key.endsWith(".liquid")))return;let n={stylesheetTag:!1,javascriptTag:!1,schemaTag:!1,liquid:!1},r={checksum:e.checksum,liquid:"",stylesheetTag:"",javascriptTag:"",schemaTag:""},o=Ve.get(e.key);if(o?.checksum===e.checksum||(Ve.delete(e.key),!e.value))return n;let a=["stylesheet","javascript","schema"],i=c=>c?.replace(/\s+/g," ").trim(),u=e.value,p=(c,l)=>{u=u.replace(l,"");let f=i(l),w=`${c}Tag`;n[w]=!o||f!==o[w],r[w]=f};for(let c of a){let l=Re(e.value??"",c);l&&p(c,l)}return u=i(u.replace(/<!--[\s\S]*?-->/g,"").replace(/{%\s*comment\s*%}[\s\S]*?{%\s*endcomment\s*%}/g,"").replace(/{%\s*doc\s*%}[\s\S]*?{%\s*enddoc\s*%}/g,"")),r.liquid=u,n.liquid=!o||u!==o.liquid,Ve.set(e.key,r),n}m();m();import{lstat as yn}from"node:fs/promises";async function Ze(e){try{return await yn(e),!0}catch(t){if(t instanceof Error&&"code"in t&&(t.code==="ENOENT"||t.code==="ENOTDIR"))return!1;throw t}}async function ds(e,t){return e===t||await Ze(e)?e:ds(rt(e),t)}function Q(e){if(!e||e==="."||e===".."||/[\\/]/.test(e)||/^[a-z]:/i.test(e))throw new I(`Unsafe listing name: ${e}`)}async function P(e,t){let s=t.replace(/\\/g,"/");if(!t||/^[\\/]/.test(t)||/^[a-z]:/i.test(t)||s.split("/").includes(".."))throw new I(`Unsafe theme file key: ${t}`);let n=nt(e),r=R(n,s);if(O(n,r)===""||!je(n,r,{native:!0}))throw new I(`Unsafe theme file key: ${t}`);let o=await ds(r,n);try{let a=await Ae(n),i=await Ae(o);if(!je(a,i,{native:!0}))throw new I(`Unsafe theme file key: ${t}`)}catch{throw new I(`Unsafe theme file key: ${t}`)}return r}var us=st(St(),1);function En(e){return(e.startsWith("templates/")||e.startsWith("sections/"))&&e.endsWith(".json")}async function ps(e,t,s){if(Q(t),En(s)){await P(e,s);let n=await P(e,R("listings",t,s));if(await b(n))return n}}async function ms(e,t){Q(t);let s=await P(e,"config/settings_data.json"),n=await L(s,{encoding:"utf8"}),r=(0,us.parseJSON)(n,null,!0);return r?(r.current=qe(t),JSON.stringify(r,null,2)):n}async function Wo(e,t){Q(t);let s=R(e,"listings"),n=R(s,t);if(await Ze(e)&&(await P(e,"listings"),await P(e,R("listings",t))),await b(n))return;let o=[];await b(s)&&(o=await D("*",{cwd:s,onlyDirectories:!0,deep:1}));let a=o.length>0?`Available presets: ${o.map(i=>`"${qe(i)}"`).join(", ")}`:'No presets found under "listings/"';throw new I(`Listing preset "${t}" was not found. ${a}.`,`Add the preset to config/settings_data.json and its corresponding "listings/${t}" folder, or remove the --listing flag to use the default theme settings.`)}import wn from"node:events";import{fileURLToPath as xn}from"node:url";var Tn=250,fs=["AGENTS.md","DESIGN.md","assets/**/*.*","config/**/*.json","config/styles.css","layout/**/*.liquid","locales/**/*.json","sections/**/*.{liquid,json}","blocks/**/*.liquid","snippets/**/*.liquid","templates/**/*.{liquid,json}","templates/customers/**/*.{liquid,json}"],$={documentationFilesRegex:/^(AGENTS|DESIGN)\.md$/,layoutLiquidRegex:/^layout\/.+\.liquid$/,sectionLiquidRegex:/^sections\/.+\.liquid$/,blockLiquidRegex:/^blocks\/.+\.liquid$/,configSchemaRegex:/^config\/settings_schema\.json$/,configDataRegex:/^config\/settings_data\.json$/,configStylesheetRegex:/^config\/styles\.css$/,sectionJsonRegex:/^sections\/.+\.json$/,templateJsonRegex:/^templates\/.+\.json$/,jsonRegex:/^(?!config\/).*\.json$/,contextualizedJsonRegex:/\.context\.[^.]+\.json$/i,staticAssetRegex:/^assets\/(?!.*\.liquid$)/};function li(e,t){t?.listing!==void 0&&Q(t.listing);let s=new Map,n=new Map,r=new Set,o={ignoreFromFile:[],ignore:t?.filters?.ignore??[],only:t?.filters?.only??[]},a=new wn,i=(d,E)=>{a.emit(d,E)},u=t?.notify?new fe(t.notify):void 0,p=async d=>{let E=t?.listing?await Sn(e,d,t.listing):await ge(e,d),g=he(d,E);return s.set(d,G({key:d,checksum:g,value:typeof E=="string"?E:"",attachment:Buffer.isBuffer(E)?E.toString("base64"):""})),E},c=D(fs,{cwd:e,deep:3,ignore:J}).then(async d=>{o.ignoreFromFile.push(...await qt(e));let E=me(d.map(g=>({key:g})),o);await Promise.all(E.map(({key:g})=>p(g)))}),l=d=>O(e,d),f=d=>me([{key:d}],o).length===0;function w(d,E,g,x){if(process.env.SHOPIFY_CLI_LOCAL_HOT_RELOAD&&x===Ie()){oe(E,x);return}let S=l(x);if(t?.listing&&S.startsWith(`listings/${t.listing}/`)){let F=S.replace(`listings/${t.listing}/`,"");if(F.startsWith("templates/")||F.startsWith("sections/"))S=F;else return}h(S).then(()=>{switch(d){case"add":case"change":return y(d,E,g,S);case"unlink":return _e(E,g,S,n)}}).catch(F=>{U(`Error handling file event for ${S}: ${F}`)})}function h(d){return u?.notify(d)??Promise.resolve()}let y=(d,E,g,x)=>{if(f(x))return;let S=s.get(x)?.checksum,F=p(x).then(async()=>{let T=s.get(x);if(T)return T.checksum!==S&&r.add(x),{value:T.value||void 0,attachment:T.attachment}}),C=F.then(T=>{if(T)return Rn(r,n,x,E,g)(T)}).catch(Oe(x,"upload"));i(d,{fileKey:x,onContent:T=>{F.then(H=>{r.has(x)&&T(H?.value??H?.attachment??"")}).catch(()=>{})},onSync:(T,H)=>{C.then(et=>{et?T():H?.()}).catch(()=>{})}})},_e=(d,E,g,x)=>{if(f(g))return;x.delete(g),s.delete(g),r.add(g);let S=t?.noDelete?Promise.resolve():vt(Number(d),[g],E).then(async F=>{if(!F[0]?.success)throw new Error(`Failed to delete file "${g}" from remote theme.`);return r.delete(g),hs("delete",g),!0}).catch(F=>(Oe(g,"delete")(F),!1));i("unlink",{fileKey:g,onSync:F=>{S.then(C=>{C&&F()}).catch(()=>{})}})},_=new Set(fs.map(d=>R(e,d.split("/").shift()??"")));return t?.listing&&_.add(R(e,"listings",t.listing)),process.env.SHOPIFY_CLI_LOCAL_HOT_RELOAD&&_.add(Ie()),{root:e,files:s,unsyncedFileKeys:r,uploadErrors:n,ready:()=>c,delete:async d=>{await P(e,d),s.delete(d),await Fn(e,d)},write:async d=>{await P(e,d.key);let E=(d.key.startsWith("templates/")||d.key.startsWith("sections/"))&&d.key.endsWith(".json");if(t?.listing&&E){let g=R("listings",t.listing,d.key),x=await P(e,g),S=await b(x);s.set(d.key,G({key:d.key,checksum:d.checksum,value:d.value??"",attachment:d.attachment??""})),S?await Qe(e,{...d,key:g}):await Qe(e,d);return}s.set(d.key,G({key:d.key,checksum:d.checksum,value:d.value??"",attachment:d.attachment??""})),await Qe(e,d)},read:p,applyIgnoreFilters:d=>me(d,o),addEventListener:(d,E)=>{a.on(d,E)},startWatcher:async(d,E)=>{let{default:g}=await import("./chokidar-5RWEYTNQ.js");if(t?.signal?.aborted)return;let x=g.watch([..._],{ignored:J,persistent:!process.env.SHOPIFY_UNIT_TEST,ignoreInitial:!0}),S=new Map,F=()=>{for(let T of S.values())clearTimeout(T);S.clear(),x.close().catch(T=>U(`Error closing file watcher: ${T.message}`))};t?.signal?.addEventListener("abort",F,{once:!0}),x.once("close",()=>t?.signal?.removeEventListener("abort",F));let C=(T,H)=>{if(t?.signal?.aborted)return;let Le=`${l(H)}:${T}`,tt=S.get(Le);tt&&clearTimeout(tt);let gs=setTimeout(()=>{S.delete(Le),w(T,d,E,H)},Tn);S.set(Le,gs)};x.on("add",C.bind(null,"add")).on("change",C.bind(null,"change")).on("unlink",C.bind(null,"unlink")).on("error",T=>{U(`File watcher error: ${T}`),q("theme-service:file-watcher:error")})}}}function Rn(e,t,s,n,r){return async o=>{if(!e.has(s))return!1;let[a]=await $t(Number(n),[{key:s,...o}],r);if(!a?.success){let i=a?.errors?.asset??["Response was not successful."];throw t.set(s,i),oe(n,s),new Error(i.join(`
100
+ `))}return t.delete(s)&&oe(n,s),e.delete(s),hs("update",s),!0}}async function Qe(e,{key:t,attachment:s,value:n}){let r=await P(e,t);if(await Pn(r),s){let o=Buffer.from(s,"base64");await Ce(r,o,{encoding:"base64"})}else await Ce(r,n??"")}async function ge(e,t){let s=ke(t)?{encoding:"utf8"}:{},n=await P(e,t);if(!await b(n)){v(`File ${n} can't be read because it doesn't exist...`);return}return L(n,s)}async function Sn(e,t,s){if(t==="config/settings_data.json")return ms(e,s);let n=await ps(e,s,t);if(n){let r=ke(t)?{encoding:"utf8"}:{};return L(n,r)}return ge(e,t)}async function Fn(e,t){let s=await P(e,t);if(!await b(s)){v(`File ${s} can't be removed because it doesn't exist...`);return}await ct(s)}function di(e){let t=[],s=[],n=[],r=[],o=[],a=[],i=[],u=[],p=[],c=[],l=[],f=[],w=[];return e.forEach(h=>{let y=h.key;$.documentationFilesRegex.test(y)?w.push(h):y.endsWith(".liquid")?$.sectionLiquidRegex.test(y)?t.push(h):$.blockLiquidRegex.test(y)?l.push(h):$.layoutLiquidRegex.test(y)?f.push(h):s.push(h):$.configSchemaRegex.test(y)?i.push(h):$.configDataRegex.test(y)?u.push(h):$.configStylesheetRegex.test(y)?p.push(h):$.jsonRegex.test(y)?$.contextualizedJsonRegex.test(y)?a.push(h):$.sectionJsonRegex.test(y)?n.push(h):$.templateJsonRegex.test(y)?r.push(h):o.push(h):$.staticAssetRegex.test(y)&&c.push(h)}),{sectionLiquidFiles:t,otherLiquidFiles:s,sectionJsonFiles:n,templateJsonFiles:r,contextualizedJsonFiles:a,otherJsonFiles:o,configSchemaFile:i,configDataFile:u,configStylesheetFiles:p,staticAssetFiles:c,blockLiquidFiles:l,layoutFiles:f,documentationFiles:w}}function ke(e){return _t({liquid:"application/liquid",sass:"text/x-sass",scss:"text/x-scss"}),["application/javascript","application/json","application/liquid","text/css","text/x-sass","text/x-scss","image/svg+xml","text/markdown"].includes(Y(e))}async function ui(e){let t=new Set(await D("*",{cwd:e,deep:1,onlyDirectories:!0}));return["config","layout","templates"].every(n=>t.has(n))}async function Pn(e){let t=vn(e);await b(t)||await at(t)}function vn(e){let t=ot(e),s=e.lastIndexOf(t);return e.substring(0,s)}function hs(e,t){K(ie()==="json"?`Synced ${e} ${t}`:ce`• ${de.format(new Date)} Synced ${A.raw("\xBB")} ${e} ${t}`)}function Ie(){let e=process.env.SHOPIFY_CLI_LOCAL_HOT_RELOAD;return!e||e==="true"?R(xn(import.meta.url.split("/cli/")[0]??""),"theme-hot-reload/dist/theme-hot-reload.js"):e}function he(e,t){return t?Buffer.isBuffer(t)?Ke(t):kn(e)?$n(t):bn(e,t):""}function $n(e){let t=e;return t=t.replace(/\r\n/g,`
101
+ `),t=t.replace(/\/\*[\s\S]*?\*\//,""),t=In(t),Ke(t)}function bn(e,t){let s=t;return ke(e)&&(s=s.replace(/\r\n/g,`
102
+ `)),Ke(s)}function In(e){let t=!1,s=!1,n="";for(let r of e)r==='"'&&!s&&(t=!t),!(!t&&(r===" "||r===`
103
+ `))&&(n+=r,s=r==="\\"&&!s);return n}function Ke(e){let t=Buffer.isBuffer(e)?e:Buffer.from(e);return lt(t)}function gi(e){let t=new Set(e.filter(({key:s})=>s.startsWith("assets/")&&s.endsWith(".liquid")).map(({key:s})=>s));return e.filter(({key:s})=>s.startsWith("assets/")?!t.has(`${s}.liquid`):!0)}function kn(e){return e.endsWith("/settings_data.json")}export{gi as a,Gt as b,Zt as c,Qt as d,ts as e,Qr as f,po as g,bo as h,rs as i,oe as j,ps as k,Wo as l,li as m,di as n,ui as o};
@@ -0,0 +1,3 @@
1
+ import{a as D,b as _,d as W,g as z}from"./chunk-TLN4BKXJ.js";import{a as J}from"./chunk-X5V7AGVU.js";import{t as B}from"./chunk-NMXRDF4T.js";import{a as Y}from"./chunk-R5COVIJM.js";import{a as H}from"./chunk-K4KKSBUW.js";import{e as K}from"./chunk-4KBOLN7Q.js";import{B as C,K as O,w as Q}from"./chunk-UORSJB4A.js";import{b as V,c as N,e as M}from"./chunk-IKXUYCK7.js";import{M as R,a as P}from"./chunk-7A4ZE5IS.js";import{a as A}from"./chunk-LG3KEHGD.js";import{Ab as U,Bb as b,Fb as j,tb as k,vb as x,zb as E}from"./chunk-OIQ5NQ5I.js";import{b as a,c as I,d as w,e as F,j as q}from"./chunk-3PYDIBTX.js";import{b as T}from"./chunk-4AWVU2OV.js";import{b as ee}from"./chunk-VBPMVVLV.js";import{e as Z,g as s}from"./chunk-VKWPEFWQ.js";s();s();s();s();var L=I.nullable().describe("The canonical *.myshopify.com hostname, or null when unknown."),y=w,g=A({name:"GraphiQLRecord",definitions:{GraphiQLTimestamp:y,GraphiQLStoreDomain:L},schema:a.discriminatedUnion("type",[a.object({type:a.literal("starting"),timestamp:y,storeDomain:L}).strict(),a.object({type:a.literal("ready"),timestamp:y,url:a.string().url().describe("Local browser URL, including the session authentication key."),storeDomain:L,api:a.literal("admin"),apiVersion:a.string().nullable().describe("Requested API version; null uses the latest stable version."),mutationsAllowed:a.boolean(),app:a.object({name:a.string(),url:a.string().url()}).strict().nullable()}).strict(),a.object({type:a.literal("stopped"),timestamp:y,reason:a.enum(["cancelled","sigint","sigterm","sigquit"])}).strict()])});import{randomBytes as re}from"crypto";function Le(){return re(32).toString("hex")}function te(e){let r=new URL(`http://localhost:${e.port}/graphiql`);return r.searchParams.set("key",e.key),e.query&&r.searchParams.set("query",e.query),e.variables&&r.searchParams.set("variables",e.variables),e.apiVersion&&r.searchParams.set("api_version",e.apiVersion),r.toString()}async function $(e){let r=e.outputFormat==="json",t=O(e.storeFqdn)?e.storeFqdn:null,n=ae(e.abortSignal),o,p=!1,d=!1,c,m=i=>{if(!r)return;let l=F(new Date);E(JSON.stringify(g.validate({...i,timestamp:l})))},f=i=>{c=i,n.controller.abort()},u=()=>{d||f(new Error("The GraphiQL server closed unexpectedly."))},G=()=>{if(c)throw c};try{if(n.controller.signal.aborted)return;m({type:"starting",storeDomain:t});let i=await J(e.port);if(n.controller.signal.aborted||(o=_({stdout:e.stdout??process.stdout,port:i,storeFqdn:e.storeFqdn,tokenProvider:e.tokenProvider,key:e.key,appContext:e.appContext,protectMutations:e.protectMutations,json:r,onRequestError:r?h=>q({type:"diagnostic",level:"error",code:"graphiql-request-failed",message:h}):void 0}),o.on("error",f),o.on("close",u),await oe(o),G(),n.controller.signal.aborted))return;let l=te({port:i,key:e.key,query:e.query,variables:e.variables,apiVersion:e.apiVersion});m({type:"ready",url:l,storeDomain:t,api:"admin",apiVersion:e.apiVersion??null,mutationsAllowed:!e.protectMutations,app:e.appContext?{name:e.appContext.appName,url:e.appContext.appUrl}:null}),r||(b(x`GraphiQL is running at ${k.link(l)}`),e.additionalReadyMessages?.forEach(h=>b(h)),b("Press Ctrl+C to stop.")),T()||await Promise.race([R(l),n.stopped.then(()=>!0)])||j("Browser did not open automatically. Open the URL above manually."),await n.stopped,G()}catch(i){throw p=!0,i}finally{try{if(o){d=!0;let i=o;await new Promise(l=>{i.close(()=>l()),i.closeAllConnections()}),o.removeListener("error",f),o.removeListener("close",u)}p||m({type:"stopped",reason:n.reason()}),r&&await U()}finally{n.dispose()}}}function oe(e){return new Promise(r=>{let t=()=>{e.removeListener("listening",t),e.removeListener("error",t),r()};e.once("listening",t),e.once("error",t)})}function ae(e){let r=new P,t="cancelled",n=process,o=u=>{if(!r.signal.aborted){switch(u){case"SIGINT":t="sigint",process.exitCode=130;break;case"SIGTERM":t="sigterm",process.exitCode=143;break;case"SIGQUIT":t="sigquit",process.exitCode=131;break;default:return}r.abort()}},p=()=>o("SIGINT"),d=()=>o("SIGTERM"),c=()=>o("SIGQUIT"),m=()=>r.abort();process.on("SIGINT",p),process.on("SIGTERM",d),process.on("SIGQUIT",c),n.on("shopify:signal",o),e?.addEventListener("abort",m,{once:!0});let f=new Promise(u=>r.signal.addEventListener("abort",()=>u(),{once:!0}));return e?.aborted&&r.abort(),{controller:r,stopped:f,reason:()=>t,dispose:()=>{process.removeListener("SIGINT",p),process.removeListener("SIGTERM",d),process.removeListener("SIGQUIT",c),n.removeListener("shopify:signal",o),e?.removeEventListener("abort",m)}}}async function X(e){let r=await K(e.remoteApp),t=D(void 0,r,e.store),n=z({apiKey:e.remoteApp.apiKey,apiSecret:r,storeFqdn:e.store}),o=await Q(),p=W(e.store,e.remoteApp.apiKey,o);await $({port:e.port,storeFqdn:e.store,tokenProvider:n,key:t,appContext:{appName:e.remoteApp.title,appUrl:p,apiSecret:r},variables:e.variables,apiVersion:e.apiVersion,outputFormat:e.outputFormat,abortSignal:e.abortSignal})}var v=Z(ee(),1);var S=class e extends Y{static summary="Open a local GraphiQL UI for your app and store.";static descriptionWithMarkdown=`Opens an authenticated Admin API GraphiQL UI for your app and selected store.
2
+
3
+ The app must be installed on the store.`;static jsonOutputSchema=g;static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %> --store shop.myshopify.com","<%= config.bin %> <%= command.id %> --store shop.myshopify.com --port 9123"];static flags={...V,...N,...H,store:v.Flags.string({char:"s",description:"The myshopify.com domain of the store to open GraphiQL against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async r=>C(r)}),port:M({description:"Local port for the GraphiQL server.",env:"SHOPIFY_FLAG_PORT"}),variables:v.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES"}),version:v.Flags.string({description:"The API version to use in GraphiQL. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})};async run(){let{flags:r}=await this.parse(e);return this.runWithParsedOutput(r,async()=>{let{appContextResult:t,store:n}=await B(r);return await X({remoteApp:t.remoteApp,store:n.shopDomain,port:r.port,variables:r.variables,apiVersion:r.version,outputFormat:r.json?"json":"text"}),{app:t.app}})}};export{g as a,Le as b,$ as c,S as d};
@@ -0,0 +1,6 @@
1
+ import{a as W,c as B,d as T}from"./chunk-WB5GRBHW.js";import{l as S,n as O}from"./chunk-CE6XQDAG.js";import{R as v,a as L}from"./chunk-7A4ZE5IS.js";import{f as y}from"./chunk-HI5FTI3M.js";import{j as u,n as A}from"./chunk-FJOVMEPN.js";import{Eb as d,Sa as w,Ta as i,Va as D,_a as F,la as x,ob as V,ta as _,tb as c,vb as s}from"./chunk-OIQ5NQ5I.js";import{c as o,h as k}from"./chunk-IWTNUJGY.js";import{a as H}from"./chunk-O472FAYX.js";import{e as z,g as f}from"./chunk-VKWPEFWQ.js";f();f();function b(e,n){try{return JSON.parse(e)}catch(t){let a=t instanceof Error?t.message:String(t),r=n?` from ${n}`:"";throw new u(`Failed to parse JSON${r}.
2
+ ${a}`)}}var l=z(H()),C="yarn.lock",$="package-lock.json",N="pnpm-lock.yaml",j="bun.lockb",J="bun.lock",I="pnpm-workspace.yaml",be=[C,N,$,j,J],Me={yarn:[C],npm:[$],pnpm:[N],bun:[j,J],homebrew:[],unknown:[]},R=["yarn","npm","pnpm","bun","homebrew","unknown"],M=class extends u{constructor(){super("Unknown package manager")}},h=class extends u{constructor(n){super(s`The directory ${c.path(n)} doesn't have a package.json.`)}},P=class extends A{constructor(n){super(s`Couldn't find a a package.json traversing directories from ${c.path(n)}`)}};function U(e=process.env){let n=e.npm_config_user_agent;return["yarn","pnpm","bun","npm"].find(t=>n?.includes(t))??"unknown"}function Y(e){return i(o(e,j))||i(o(e,J))}function q(e){switch(e){case"yarn":case"npm":case"pnpm":case"bun":return e;case"homebrew":case"unknown":return"npm"}}function Q(e,n,...t){switch(e){case"npm":return{command:"npm",args:["exec","--",n,...t]};case"pnpm":return{command:"pnpm",args:["exec",n,...t]};case"yarn":return{command:"yarn",args:["run",n,...t]};case"bun":return{command:"bun",args:["x",n,...t]}}}async function E(e){let n=e;for(d(s`Looking for a lockfile in ${c.path(n)}...`);;){if(i(o(n,C)))return"yarn";if(i(o(n,N))||i(o(n,I)))return"pnpm";if(Y(n))return"bun";if(i(o(n,$)))return"npm";let a=k(n);if(a===n)break;n=a}let t=U();return t!=="unknown"?t:"npm"}async function Pe(e,n,...t){let a=q(await E(e));return Q(a,n,...t)}async function Ce(e){let n=await D(o(e.directory,"**/package.json"),{ignore:[o(e.directory,"node_modules/**/package.json")],cwd:e.directory,onlyFiles:!0,deep:e.deep}),t=new L;try{await Promise.all(n.map(async a=>{let r=k(a);await X({directory:r,packageManager:e.packageManager,stdout:void 0,stderr:void 0,signal:t.signal,args:[]})}))}catch(a){throw t.abort(),a}}async function X(e){let n={cwd:e.directory,stdin:void 0,stdout:e.stdout,stderr:e.stderr,signal:e.signal},t=["install"];e.args&&(t=t.concat(e.args)),await y("cmd_all_timing_network_ms")(async()=>{await v(e.packageManager,t,n)})}async function $e(e){return(await g(e)).name}async function Ne(e){return(await g(e)).version}async function Z(e){let n=await g(e),t=n.dependencies??{},a=n.devDependencies??{};return{...t,...a}}async function je(e){let n=o(e,"package.json"),t=await g(n),a=o(e,I);return!!t.workspaces||w(a)}async function Je(e,n,{cacheExpiryInHours:t=0,versionRange:a}={}){let r;try{let p=e==="@shopify/cli"?await W():void 0,K=async()=>(d(s`Checking if there's a version of ${e} newer than ${n}`),ce(e,a,p)),G=p?B(p,a):`npm-package-${e}${a?`@${a}`:""}`;r=await S(G,K,t*3600*1e3)}catch{return}if(r&&(!a||(0,l.satisfies)(r,a))&&new l.SemVer(n).compare(r)<0)return r}function _e(e,n){let t=`npm-package-${e}`,a=e==="@shopify/cli"?T():O(t)?.value;if(a&&new l.SemVer(n).compare(a)<0)return a}function De(e,n){return(0,l.satisfies)(e,n)}async function g(e){if(!await w(e))throw new h(k(e));return b(await x(e),e)}async function ee(e,n){d(s`Adding the following dependencies if needed:
3
+ ${c.json(e)}
4
+ With options:
5
+ ${c.json(n)}
6
+ `);let t=o(n.directory,"package.json");if(!await w(t))throw new h(n.directory);let a=Object.keys(await Z(t)),r=e.filter(p=>!a.includes(p.name));r.length!==0&&await ne(r,n)}async function ne(e,n){let t=e.map(a=>a.version?`${a.name}@${a.version}`:a.name);switch(n.stdout?.write(`Installing ${t.join(" ")} with ${n.packageManager}`),n.packageManager){case"npm":for(let a of t)await m(n,te(a,n.type));break;case"yarn":await m(n,ae(t,n.type,!!n.addToRootDirectory));break;case"pnpm":await m(n,re(t,n.type,!!n.addToRootDirectory));break;case"bun":await m(n,oe(t,n.type)),await m(n,["install"]);break;case"homebrew":throw new u("Homebrew can't be used to install project dependencies. Use npm, yarn, pnpm, or bun.");case"unknown":throw new M}}async function m(e,n){return y("cmd_all_timing_network_ms")(async()=>v(e.packageManager,n,{cwd:e.directory,stdout:e.stdout,stderr:e.stderr,signal:e.signal}))}async function Fe(e,n){await ee(e.map(t=>({name:t,version:void 0})),n)}function te(e,n){let a=["install",e,{dev:"--save-dev",peer:"--save-peer",prod:"--save-prod"}[n]];return e.match(/@\d/g)&&a.push("--save-exact"),a}function ae(e,n,t=!1){let a={dev:"--dev",peer:"--peer",prod:"--prod"};return["add",...t?["-W"]:[],...e,a[n]]}function re(e,n,t=!1){let a={dev:"--save-dev",peer:"--save-peer",prod:"--save-prod"};return["add",...t?["-w"]:[],...e,a[n]]}function oe(e,n){let a={dev:"--development",peer:"--optional"}[n];return["add",...e,...a?[a]:[]]}async function Le(e){let n=await F("package.json",{cwd:e,type:"file"});if(n){let t=b(await x(n),n);return{path:n,content:t}}else throw new P(e)}async function Se(e,n){let t=await E(e),a=await g(o(e,"package.json")),r=t==="yarn"?"resolutions":"overrides";a[r]={...a[r],...n},await se(e,a)}async function ce(e,n,t){return d(s`Getting the latest version of NPM package: ${c.raw(e)}`),y("cmd_all_timing_network_ms")(async()=>{let{default:a}=await import("./latest-version-75YEFEMK.js"),r={...n?{version:n}:{},...t?{registryUrl:t}:{}};return n||t?a(e,r):a(e)})}async function se(e,n){d(s`JSON-encoding and writing content to package.json at ${c.path(e)}...`);let t=o(e,"package.json");await _(t,JSON.stringify(n,null,2))}function Oe(e,n=process.env){if(e&&R.includes(e))return e;let t=U(n);if(t!=="unknown")return t;let a=V();return a!=="unknown"?a:"npm"}export{C as a,$ as b,N as c,j as d,I as e,be as f,Me as g,R as h,M as i,h as j,P as k,U as l,E as m,Pe as n,Ce as o,X as p,$e as q,Ne as r,Z as s,je as t,Je as u,_e as v,De as w,g as x,ee as y,ne as z,Fe as A,Le as B,Se as C,se as D,Oe as E};
@@ -0,0 +1,3 @@
1
+ import{b as O}from"./chunk-652NT7OW.js";import{K as m}from"./chunk-UORSJB4A.js";import{x as d}from"./chunk-7A4ZE5IS.js";import{a as i}from"./chunk-LG3KEHGD.js";import{n as h}from"./chunk-FJOVMEPN.js";import{Bb as f}from"./chunk-OIQ5NQ5I.js";import{b as t,c,d as l,e as s}from"./chunk-3PYDIBTX.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();var u=t.string().regex(/^gid:\/\/shopify\/BulkOperation\/[^/]+$/).describe("The Shopify global ID of a bulk operation."),n=t.object({gid:u,type:t.string(),status:t.string(),errorCode:t.string().nullable(),createdAt:l,completedAt:l.nullable(),objectCount:t.string().regex(/^\d+$/).describe("A nonnegative decimal count, without loss of integer precision."),url:t.string().url().nullable(),partialDataUrl:t.string().url().nullable()}).strict(),a=t.object({storeDomain:c.nullable(),apiVersion:t.string().nullable().describe("The API version selected for the request.")}).strict();var g=n.omit({type:!0}),b=a.extend({operationGid:u,operation:n.nullable()}),k=a.extend({operations:t.array(g),pageInfo:t.object({hasNextPage:t.boolean().nullable().describe("Unknown when the API result reaches the fetch limit.")}).strict()}),J=i({name:"BulkOperationStatusResult",schema:t.union([b,k]),definitions:{GetBulkOperationStatusResult:b,ListBulkOperationsResult:k,BulkOperation:n,ListedBulkOperation:g}}),R=i({name:"CancelBulkOperationResult",schema:a.extend({status:t.literal("success"),operation:n}),definitions:{BulkOperation:n}}),S=a.extend({status:t.enum(["success","partial","cancelled"]),reason:t.literal("watch-aborted").optional(),operation:n,resultsJsonl:t.string().optional().describe("Downloaded results in their native JSONL format.")}),B=t.object({path:t.string().describe("The absolute path of the downloaded results file."),format:t.literal("jsonl")}).strict(),$=i({name:"ExecuteBulkOperationResult",schema:t.union([S,B]),definitions:{BulkOperation:n,ExecuteBulkOperationResult:S,BulkOperationFile:B}});o();function v(e,r,x){let p=[...r.operationId?[`ID: ${r.operationId}`]:[],...O(r)];if(x==="json"){f(`${e}
2
+ ${p.join(`
3
+ `)}`);return}d({headline:e,body:[{list:{items:p}}]})}o();function q(e){let r=m(e.store);return{storeDomain:r?`${r}.myshopify.com`:null,apiVersion:e.apiVersion??null}}function H(e){if(typeof e.objectCount=="number"&&!Number.isSafeInteger(e.objectCount))throw new h("Shopify returned a bulk operation count that can't be represented exactly.");return{gid:e.id,..."type"in e?{type:e.type}:{},status:e.status,errorCode:e.errorCode??null,createdAt:s(new Date(String(e.createdAt))),completedAt:e.completedAt?s(new Date(String(e.completedAt))):null,objectCount:String(e.objectCount),url:e.url??null,partialDataUrl:e.partialDataUrl??null}}export{J as a,R as b,$ as c,q as d,H as e,v as f};