shopify 4.9.5 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (501) hide show
  1. package/dist/analytics-RSUIYNLC.js +1 -0
  2. package/dist/analytics-V2SDYXQJ.js +1 -0
  3. package/dist/assets/hydrogen/starter/CHANGELOG.md +7 -0
  4. package/dist/assets/hydrogen/starter/package.json +2 -2
  5. package/dist/assets/hydrogen/vite/package.json +3 -4
  6. package/dist/assets/hydrogen/vite/vite.config.js +3 -3
  7. package/dist/bootstrap.js +1 -1
  8. package/dist/chunk-2AW3KBTP.js +1 -0
  9. package/dist/{chunk-S6A7TMR4.js → chunk-2CJQQQW4.js} +1 -1
  10. package/dist/{chunk-7LB6DPB6.js → chunk-2M4BKFYF.js} +1 -1
  11. package/dist/chunk-2M535QQJ.js +6 -0
  12. package/dist/chunk-2NZ7GDDR.js +2 -0
  13. package/dist/{chunk-QUO4RD3W.js → chunk-2QQ7EBJD.js} +1 -1
  14. package/dist/chunk-2RFCYZMG.js +47 -0
  15. package/dist/chunk-2S5NPJEJ.js +5 -0
  16. package/dist/chunk-2TPLPZA2.js +3 -0
  17. package/dist/{chunk-ANG44FIF.js → chunk-2YGPWG3I.js} +1 -1
  18. package/dist/chunk-32O27NE3.js +1 -0
  19. package/dist/chunk-335BUVBP.js +1 -0
  20. package/dist/{chunk-MZL6VM3W.js → chunk-364BVGRY.js} +1 -1
  21. package/dist/{chunk-4VS7YD53.js → chunk-36TZ447N.js} +1 -1
  22. package/dist/chunk-37P5YOP2.js +7 -0
  23. package/dist/chunk-3G2PEYPI.js +2 -0
  24. package/dist/{chunk-2II4W4ZF.js → chunk-3JACWBUC.js} +1 -1
  25. package/dist/chunk-43HKFLOU.js +3 -0
  26. package/dist/chunk-46JYM3GH.js +1 -0
  27. package/dist/chunk-4EDE3UH7.js +18 -0
  28. package/dist/{chunk-ND6O6KT6.js → chunk-4GQEXVDT.js} +1 -1
  29. package/dist/{chunk-5XTJ4OL4.js → chunk-4IUXLUFD.js} +1 -1
  30. package/dist/chunk-4QZ6OBXL.js +4 -0
  31. package/dist/{chunk-XVFQ6CNO.js → chunk-4SDCXKYR.js} +9 -6
  32. package/dist/chunk-56GKTWFF.js +5 -0
  33. package/dist/chunk-5AQ5JT2V.js +7 -0
  34. package/dist/{chunk-SUTVPAJF.js → chunk-5AWELO3D.js} +1 -1
  35. package/dist/{chunk-LD6ZCTZ3.js → chunk-5B76DT7X.js} +1 -1
  36. package/dist/chunk-5D4FNAAD.js +3 -0
  37. package/dist/chunk-5TWYJQQO.js +1 -0
  38. package/dist/{chunk-3XAD2E55.js → chunk-5XOEMYEQ.js} +1 -1
  39. package/dist/chunk-5YUDEPEY.js +1 -0
  40. package/dist/chunk-5YXYYQBX.js +1 -0
  41. package/dist/chunk-63UKZLPC.js +1 -0
  42. package/dist/chunk-6JZC6UKY.js +20 -0
  43. package/dist/chunk-6PUU6ZNQ.js +1 -0
  44. package/dist/chunk-6Y6A2QGK.js +3 -0
  45. package/dist/chunk-75LAVRRL.js +274 -0
  46. package/dist/chunk-7AWAOPLA.js +1 -0
  47. package/dist/chunk-7GHSE7SG.js +1 -0
  48. package/dist/{chunk-CEQ5S3HH.js → chunk-7NYCJG2U.js} +1 -1
  49. package/dist/chunk-7U2MTK6I.js +1 -0
  50. package/dist/{chunk-NHE46R6C.js → chunk-7XAEI4XT.js} +1 -1
  51. package/dist/chunk-7Y7AZRL3.js +10 -0
  52. package/dist/chunk-A7LBGXWG.js +1 -0
  53. package/dist/{chunk-SEXH4EP5.js → chunk-ACA2BGAD.js} +1 -1
  54. package/dist/chunk-ADVLRSSO.js +1 -0
  55. package/dist/chunk-AIEVQSI3.js +1 -0
  56. package/dist/chunk-AOBE6HN6.js +31 -0
  57. package/dist/chunk-AQ34X5B3.js +2 -0
  58. package/dist/chunk-B2VE7WOX.js +1 -0
  59. package/dist/chunk-B4ISKIXN.js +5 -0
  60. package/dist/chunk-BAHIL37I.js +1 -0
  61. package/dist/chunk-BB7GAZP6.js +1 -0
  62. package/dist/{chunk-AJMJQA4J.js → chunk-BN7ZXAZJ.js} +1 -1
  63. package/dist/chunk-BNTOGZLY.js +1 -0
  64. package/dist/chunk-BU3JQM3W.js +1 -0
  65. package/dist/chunk-C3LL5CZA.js +1 -0
  66. package/dist/{chunk-PIGERIRY.js → chunk-C4EKNOLY.js} +1 -1
  67. package/dist/{chunk-YN4FSUFF.js → chunk-CFUZ6574.js} +1 -1
  68. package/dist/{chunk-7DSH4CRU.js → chunk-CKVVJ4XO.js} +1 -1
  69. package/dist/chunk-CNPBDSDL.js +1 -0
  70. package/dist/{chunk-BAHM64B4.js → chunk-CWR3IFXD.js} +1 -1
  71. package/dist/{chunk-T3UCIWRH.js → chunk-CX3ANDPI.js} +1 -1
  72. package/dist/chunk-CXPYOLGM.js +4 -0
  73. package/dist/{chunk-MTBABHUB.js → chunk-D4LFWIFE.js} +1 -1
  74. package/dist/chunk-DM7BTMFP.js +2 -0
  75. package/dist/{chunk-WGO2GC6I.js → chunk-DSKAIC7O.js} +1 -1
  76. package/dist/{chunk-WKVFVT3H.js → chunk-DTRENW4Q.js} +1 -1
  77. package/dist/{chunk-G362JEAV.js → chunk-DVW7NDVD.js} +1 -1
  78. package/dist/chunk-E3CTHNQS.js +1 -0
  79. package/dist/chunk-EA5XVQJT.js +1 -0
  80. package/dist/{chunk-K6FH5JSY.js → chunk-EH22T4FI.js} +2 -2
  81. package/dist/{chunk-5NCWBBRW.js → chunk-ETXBF6Q7.js} +1 -1
  82. package/dist/{chunk-5GFVMGAZ.js → chunk-EXTVC33U.js} +1 -1
  83. package/dist/chunk-F3OM2YO6.js +1 -0
  84. package/dist/{chunk-MWWULCLD.js → chunk-FHNJLON5.js} +1 -1
  85. package/dist/chunk-FK5OFLSJ.js +1 -0
  86. package/dist/chunk-FNWXMCSD.js +97 -0
  87. package/dist/chunk-FPOZMNT2.js +2 -0
  88. package/dist/chunk-FS5PZCZ3.js +1 -0
  89. package/dist/chunk-FTHVOIK7.js +4 -0
  90. package/dist/chunk-FVRI7ZKE.js +103 -0
  91. package/dist/chunk-FZCGRIOM.js +1 -0
  92. package/dist/chunk-GCKGQFV7.js +1 -0
  93. package/dist/chunk-GGJUPL4W.js +6 -0
  94. package/dist/{chunk-RW3P3UMU.js → chunk-GHU6YEXH.js} +2 -2
  95. package/dist/chunk-GNPIKPHB.js +1 -0
  96. package/dist/{chunk-PT3OZEBI.js → chunk-GSGCSBRN.js} +1 -1
  97. package/dist/chunk-H57KYDEI.js +16 -0
  98. package/dist/chunk-HF4NDEX3.js +1 -0
  99. package/dist/chunk-HNU6R7RT.js +7 -0
  100. package/dist/{chunk-65GNYRYR.js → chunk-HP2ZAAY7.js} +2 -2
  101. package/dist/chunk-HPT3UXZ5.js +4 -0
  102. package/dist/chunk-HT66BOEC.js +8 -0
  103. package/dist/chunk-HXNGLDMU.js +1 -0
  104. package/dist/chunk-IAL6IQYW.js +16 -0
  105. package/dist/{chunk-PIZDYS7T.js → chunk-IILLQOUC.js} +60 -60
  106. package/dist/chunk-IULZYDCI.js +9 -0
  107. package/dist/chunk-IWTNUJGY.js +2 -0
  108. package/dist/chunk-IWTOC6DG.js +1 -0
  109. package/dist/chunk-IY5EI5V2.js +1 -0
  110. package/dist/{chunk-AODTY2BL.js → chunk-J3UXIC23.js} +4 -4
  111. package/dist/{chunk-EZG5EB7D.js → chunk-J5DUFSR4.js} +1 -1
  112. package/dist/chunk-J7BTC45S.js +1 -0
  113. package/dist/chunk-JMVK2BIB.js +3 -0
  114. package/dist/chunk-JUTULEWW.js +5 -0
  115. package/dist/{chunk-DO5YFMTJ.js → chunk-K3YALQBQ.js} +1 -1
  116. package/dist/{chunk-XPDHT3Z4.js → chunk-KGASGUDQ.js} +1 -1
  117. package/dist/{chunk-JPFHPVIO.js → chunk-KLYGMYXV.js} +1 -1
  118. package/dist/chunk-KNQXCU3Y.js +6 -0
  119. package/dist/{chunk-4BXQTW5G.js → chunk-KOTZSPZA.js} +1 -1
  120. package/dist/chunk-KT5QQOES.js +3 -0
  121. package/dist/chunk-KVF55INC.js +5 -0
  122. package/dist/chunk-L6VONMA2.js +5 -0
  123. package/dist/chunk-LENSEW2F.js +2 -0
  124. package/dist/{chunk-35NTERVR.js → chunk-LGXNXAQA.js} +2 -2
  125. package/dist/{chunk-TQ7URMGS.js → chunk-LQ7ENG4V.js} +1 -1
  126. package/dist/chunk-LR4J4KYJ.js +5 -0
  127. package/dist/chunk-LWMKZJ4M.js +1 -0
  128. package/dist/chunk-M2KX3PXA.js +1 -0
  129. package/dist/{chunk-VSFZEGIK.js → chunk-M73IECPW.js} +1 -1
  130. package/dist/{chunk-Z4DESIR5.js → chunk-M7NLCGCP.js} +1 -1
  131. package/dist/chunk-MHWETFNT.js +1 -0
  132. package/dist/chunk-MMUGP3WP.js +7 -0
  133. package/dist/{chunk-VG5ZDVDQ.js → chunk-MNWT2SQO.js} +86 -200
  134. package/dist/chunk-MS7DTL4U.js +213 -0
  135. package/dist/chunk-MU2X7NGF.js +11 -0
  136. package/dist/chunk-MXXMIPUN.js +8 -0
  137. package/dist/{chunk-XTOOTN4P.js → chunk-MZCIRMZJ.js} +1 -1
  138. package/dist/{chunk-LLNUIGHP.js → chunk-MZWPIFAM.js} +4 -4
  139. package/dist/{chunk-HB4YI2PF.js → chunk-NCPZVARH.js} +118 -118
  140. package/dist/{chunk-LCMDVUVO.js → chunk-NJVNGEOU.js} +30 -30
  141. package/dist/chunk-NMECLRGK.js +11 -0
  142. package/dist/{chunk-VNG2I7NM.js → chunk-NMLLRFZF.js} +1 -1
  143. package/dist/chunk-NPB753M3.js +1 -0
  144. package/dist/chunk-NUCDRKDW.js +5 -0
  145. package/dist/chunk-OH7BQZQ7.js +2 -0
  146. package/dist/chunk-OLKLHVHA.js +22 -0
  147. package/dist/chunk-OPVXPDOQ.js +1 -0
  148. package/dist/chunk-OQUXGAF2.js +1 -0
  149. package/dist/chunk-OUMERKRE.js +10 -0
  150. package/dist/{chunk-PFXDXD5O.js → chunk-OYGIQDME.js} +1 -1
  151. package/dist/{chunk-4IAGBAQD.js → chunk-P5W5RVE6.js} +1 -1
  152. package/dist/chunk-PNZURX3S.js +1 -0
  153. package/dist/chunk-PRKJVU4Y.js +1 -0
  154. package/dist/{chunk-2VGPNRHH.js → chunk-PVASYKSJ.js} +2 -2
  155. package/dist/chunk-PXFPVGWV.js +1 -0
  156. package/dist/chunk-Q2ORJEB2.js +25 -0
  157. package/dist/chunk-QBE6XVU3.js +1 -0
  158. package/dist/chunk-QFWWCZOI.js +1 -0
  159. package/dist/{chunk-TR4OWSEX.js → chunk-QFYLJVJW.js} +1 -1
  160. package/dist/{chunk-Y5VFOLNQ.js → chunk-QGWC23HQ.js} +1 -1
  161. package/dist/chunk-QVVQUJQL.js +2 -0
  162. package/dist/{chunk-762IKULK.js → chunk-QX3T6G5X.js} +1 -1
  163. package/dist/chunk-QYFU363G.js +17 -0
  164. package/dist/chunk-RDXLDCMI.js +3 -0
  165. package/dist/chunk-REDUS6EW.js +1 -0
  166. package/dist/{chunk-KOS53Z7E.js → chunk-RFZNFTVM.js} +1 -1
  167. package/dist/chunk-RIG66DIQ.js +18 -0
  168. package/dist/chunk-RNUEPPVN.js +1 -0
  169. package/dist/chunk-RWTAPWLJ.js +3 -0
  170. package/dist/chunk-T5YVYVSW.js +1 -0
  171. package/dist/{chunk-VTOPYXHO.js → chunk-TTBNFGCW.js} +2 -2
  172. package/dist/chunk-UDPYSL3M.js +4 -0
  173. package/dist/{chunk-EAVD3OH2.js → chunk-ULMNNGGX.js} +1 -1
  174. package/dist/chunk-URCH4ITT.js +1 -0
  175. package/dist/chunk-UU2R56LN.js +12 -0
  176. package/dist/{chunk-YIZAQABE.js → chunk-V2FCZC7U.js} +1 -1
  177. package/dist/chunk-V654BMS7.js +376 -0
  178. package/dist/{chunk-5BGUKF7L.js → chunk-V75WUEFU.js} +1 -1
  179. package/dist/{chunk-5O7JTVO2.js → chunk-V7H7ITCF.js} +1 -1
  180. package/dist/{chunk-EO422KZZ.js → chunk-VG2AESTZ.js} +1 -1
  181. package/dist/chunk-VXD26GIG.js +1 -0
  182. package/dist/chunk-VXL5FBE7.js +3 -0
  183. package/dist/{chunk-RUDHGUIM.js → chunk-W7S6SYBM.js} +1 -1
  184. package/dist/chunk-WAY723TL.js +16 -0
  185. package/dist/{chunk-4TF7ER72.js → chunk-WBJ6ZHYH.js} +1 -1
  186. package/dist/chunk-WFOU5M4H.js +16 -0
  187. package/dist/chunk-WGOSE3RL.js +4 -0
  188. package/dist/chunk-WQ6W725N.js +1 -0
  189. package/dist/{chunk-7BWSN3SG.js → chunk-WQOPLNDH.js} +1 -1
  190. package/dist/chunk-X4A5D3PZ.js +8 -0
  191. package/dist/chunk-X7DCL5LT.js +1 -0
  192. package/dist/{chunk-HY6EXJBZ.js → chunk-XDXHSGDL.js} +1 -1
  193. package/dist/chunk-XKKKMV46.js +6 -0
  194. package/dist/chunk-XRVJJG6W.js +26 -0
  195. package/dist/chunk-XV6XCOTG.js +319 -0
  196. package/dist/chunk-XYFYQWKW.js +1 -0
  197. package/dist/{chunk-BD2L6YE5.js → chunk-XZLM4HLO.js} +1 -1
  198. package/dist/{chunk-YLCYRG2T.js → chunk-YCUEDZDA.js} +1 -1
  199. package/dist/{chunk-MF7IHOM5.js → chunk-YFRI75U4.js} +1 -1
  200. package/dist/chunk-YQ63ZFYT.js +1 -0
  201. package/dist/{chunk-I3J63RFV.js → chunk-YTUUU33R.js} +1 -1
  202. package/dist/chunk-YXIFSIRX.js +1 -0
  203. package/dist/{chunk-QBIYAMSH.js → chunk-ZBVHPC6W.js} +1 -1
  204. package/dist/chunk-ZDQO6CNY.js +1 -0
  205. package/dist/{chunk-LG6DGIFX.js → chunk-ZHHTQRWU.js} +1 -1
  206. package/dist/chunk-ZTZGDZCE.js +7 -0
  207. package/dist/{chunk-MQ4WV4B6.js → chunk-ZVEBXHEY.js} +1 -1
  208. package/dist/cli/commands/app/build.js +1 -1
  209. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  210. package/dist/cli/commands/app/bulk/execute.js +1 -1
  211. package/dist/cli/commands/app/bulk/status.js +1 -1
  212. package/dist/cli/commands/app/config/link.js +1 -1
  213. package/dist/cli/commands/app/config/pull.js +1 -1
  214. package/dist/cli/commands/app/config/use.js +1 -1
  215. package/dist/cli/commands/app/config/validate.js +1 -1
  216. package/dist/cli/commands/app/demo/watcher.js +1 -1
  217. package/dist/cli/commands/app/deploy.js +1 -1
  218. package/dist/cli/commands/app/dev/clean.js +1 -1
  219. package/dist/cli/commands/app/dev.js +1 -1
  220. package/dist/cli/commands/app/env/pull.js +1 -1
  221. package/dist/cli/commands/app/env/show.js +1 -1
  222. package/dist/cli/commands/app/execute.js +1 -1
  223. package/dist/cli/commands/app/function/build.js +1 -1
  224. package/dist/cli/commands/app/function/info.js +1 -1
  225. package/dist/cli/commands/app/function/replay.js +1 -1
  226. package/dist/cli/commands/app/function/run.js +1 -1
  227. package/dist/cli/commands/app/function/schema.js +1 -1
  228. package/dist/cli/commands/app/function/typegen.js +1 -1
  229. package/dist/cli/commands/app/generate/extension.js +1 -1
  230. package/dist/cli/commands/app/graphiql.js +1 -1
  231. package/dist/cli/commands/app/import/channel-config.js +1 -1
  232. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
  233. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
  234. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  235. package/dist/cli/commands/app/import-extensions.js +1 -1
  236. package/dist/cli/commands/app/info.js +1 -1
  237. package/dist/cli/commands/app/init.js +1 -1
  238. package/dist/cli/commands/app/logs.js +1 -1
  239. package/dist/cli/commands/app/release.js +1 -1
  240. package/dist/cli/commands/app/security/check.js +1 -1
  241. package/dist/cli/commands/app/security/clean.js +1 -1
  242. package/dist/cli/commands/app/security/instructions.js +1 -1
  243. package/dist/cli/commands/app/security/record.js +1 -1
  244. package/dist/cli/commands/app/security/review.js +1 -1
  245. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  246. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  247. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  248. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  249. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  250. package/dist/cli/commands/app/versions/list.js +1 -1
  251. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  252. package/dist/cli/commands/auth/login.js +1 -1
  253. package/dist/cli/commands/auth/logout.js +1 -1
  254. package/dist/cli/commands/cache/clear.js +1 -1
  255. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  256. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  257. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  258. package/dist/cli/commands/debug/command-flags.js +1 -1
  259. package/dist/cli/commands/doc/fetch.d.ts +34 -1
  260. package/dist/cli/commands/doc/fetch.js +1 -1
  261. package/dist/cli/commands/doc/search.d.ts +53 -1
  262. package/dist/cli/commands/doc/search.js +1 -1
  263. package/dist/cli/commands/docs/generate.js +1 -1
  264. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  265. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  266. package/dist/cli/commands/help.d.ts +6 -6
  267. package/dist/cli/commands/help.js +1 -1
  268. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  269. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  270. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  271. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  272. package/dist/cli/commands/notifications/generate.js +1 -1
  273. package/dist/cli/commands/notifications/list.js +1 -1
  274. package/dist/cli/commands/organization/list.js +1 -1
  275. package/dist/cli/commands/search.js +1 -1
  276. package/dist/cli/commands/send-analytics.js +1 -1
  277. package/dist/cli/commands/theme/check.js +1 -1
  278. package/dist/cli/commands/theme/console.js +1 -1
  279. package/dist/cli/commands/theme/delete.js +1 -1
  280. package/dist/cli/commands/theme/dev.js +1 -1
  281. package/dist/cli/commands/theme/duplicate.js +1 -1
  282. package/dist/cli/commands/theme/info.js +1 -1
  283. package/dist/cli/commands/theme/init.js +1 -1
  284. package/dist/cli/commands/theme/language-server.js +1 -1
  285. package/dist/cli/commands/theme/list.js +1 -1
  286. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  287. package/dist/cli/commands/theme/open.js +1 -1
  288. package/dist/cli/commands/theme/package.js +1 -1
  289. package/dist/cli/commands/theme/preview.js +1 -1
  290. package/dist/cli/commands/theme/profile.js +1 -1
  291. package/dist/cli/commands/theme/publish.js +1 -1
  292. package/dist/cli/commands/theme/pull.js +1 -1
  293. package/dist/cli/commands/theme/push.js +1 -1
  294. package/dist/cli/commands/theme/rename.js +1 -1
  295. package/dist/cli/commands/theme/share.js +1 -1
  296. package/dist/cli/commands/upgrade.d.ts +64 -0
  297. package/dist/cli/commands/upgrade.js +1 -1
  298. package/dist/cli/commands/version.js +1 -1
  299. package/dist/cli/help.js +1 -1
  300. package/dist/cli/services/commands/doc/fetch-result.d.ts +2 -0
  301. package/dist/cli/services/commands/doc/fetch-result.js +22 -0
  302. package/dist/cli/services/commands/doc/fetch.d.ts +2 -1
  303. package/dist/cli/services/commands/doc/fetch.js +2 -15
  304. package/dist/cli/services/commands/doc/search-result.d.ts +2 -0
  305. package/dist/cli/services/commands/doc/search-result.js +14 -0
  306. package/dist/cli/services/commands/doc/search.d.ts +9 -1
  307. package/dist/cli/services/commands/doc/search.js +27 -2
  308. package/dist/cli/services/commands/doc/types.d.ts +107 -0
  309. package/dist/cli/services/commands/doc/types.js +47 -0
  310. package/dist/cli/services/commands/help/types.d.ts +6 -6
  311. package/dist/command-event-context-LFUZ7UCA.js +1 -0
  312. package/dist/command-json-schema-6EGXCM4B.js +1 -0
  313. package/dist/command-registry.js +1 -1
  314. package/dist/conf-store-E7ELDWBA.js +1 -0
  315. package/dist/custom-oclif-loader-FKFZJPHF.js +1 -0
  316. package/dist/deprecations-RNGBHZYB.js +1 -0
  317. package/dist/dist-VHIZZDYK.js +1 -0
  318. package/dist/dist-WXI5YQYP.js +1 -0
  319. package/dist/{environment-RSUK27TA.js → environment-O7ECODHU.js} +1 -1
  320. package/dist/environments-WZJ6MRTH.js +1 -0
  321. package/dist/error-IFB626JA.js +1 -0
  322. package/dist/error-handler-OVJYVIOZ.js +1 -0
  323. package/dist/fs-7UOUHJDO.js +1 -0
  324. package/dist/hooks/did-you-mean.js +1 -1
  325. package/dist/hooks/hydrogen-init.js +1 -1
  326. package/dist/hooks/plugin-plugins.js +1 -1
  327. package/dist/hooks/postrun.js +1 -1
  328. package/dist/hooks/prerun.js +1 -1
  329. package/dist/hooks/public-metadata.js +1 -1
  330. package/dist/hooks/sensitive-metadata.js +1 -1
  331. package/dist/hooks/tunnel-provider.js +1 -1
  332. package/dist/hooks/tunnel-start.js +1 -1
  333. package/dist/index.js +13 -13
  334. package/dist/is-global-XW3CVHLK.js +1 -0
  335. package/dist/json-error-C2U7ZLCG.js +1 -0
  336. package/dist/{lib-TYM5B75S.js → lib-PJHT4MKY.js} +1 -1
  337. package/dist/{lib-55QUD4AJ.js → lib-VKSQ65BQ.js} +1 -1
  338. package/dist/{lib-PH52G55H.js → lib-YEZOHXF3.js} +1 -1
  339. package/dist/{local-ZZGRGYUP.js → local-KA3IWOZ6.js} +1 -1
  340. package/dist/{metadata-YQNVKC2R.js → metadata-6JI7HF5B.js} +1 -1
  341. package/dist/{morph-BABFBRSW.js → morph-CRY35DIK.js} +1 -1
  342. package/dist/node-package-manager-X3QIEMMX.js +1 -0
  343. package/dist/notifications-system-OXGLT2R4.js +1 -0
  344. package/dist/os-NORIEVMI.js +1 -0
  345. package/dist/out-B2GISN65.js +1 -0
  346. package/dist/output-K3JTLRJD.js +1 -0
  347. package/dist/{path-CPAYTWQW.js → path-3L2QRACZ.js} +1 -1
  348. package/dist/system-LTHR2T7L.js +1 -0
  349. package/dist/tsconfig.tsbuildinfo +1 -1
  350. package/dist/ui-MYUBVKCK.js +1 -0
  351. package/dist/upgrade-MFTWBXL3.js +1 -0
  352. package/dist/version-BNGPPAUU.js +1 -0
  353. package/dist/version-RCGFWSB4.js +1 -0
  354. package/dist/workerd-ISSXMKIH.js +18 -0
  355. package/oclif.manifest.json +1669 -429
  356. package/package.json +8 -8
  357. package/dist/analytics-PBZEKUGU.js +0 -1
  358. package/dist/analytics-WVGBNFGK.js +0 -1
  359. package/dist/chunk-2EC5SUGK.js +0 -19
  360. package/dist/chunk-2QENUJVG.js +0 -1
  361. package/dist/chunk-2RONPKOD.js +0 -1
  362. package/dist/chunk-2WDJXERZ.js +0 -25
  363. package/dist/chunk-32NWVYUC.js +0 -1
  364. package/dist/chunk-32RRWGNS.js +0 -1
  365. package/dist/chunk-32VQQ6EU.js +0 -1
  366. package/dist/chunk-34RFTE5T.js +0 -4
  367. package/dist/chunk-35VQQKVX.js +0 -1
  368. package/dist/chunk-3N6NKC2U.js +0 -1
  369. package/dist/chunk-3Q5BAPQK.js +0 -7
  370. package/dist/chunk-42DMJGOW.js +0 -2
  371. package/dist/chunk-4CTTWXUX.js +0 -32
  372. package/dist/chunk-4HBKQUKY.js +0 -1
  373. package/dist/chunk-4MQXMIWQ.js +0 -7
  374. package/dist/chunk-5APLAJCB.js +0 -3
  375. package/dist/chunk-5AQNISGC.js +0 -1
  376. package/dist/chunk-5OM72O4N.js +0 -1
  377. package/dist/chunk-5SLKHURV.js +0 -1
  378. package/dist/chunk-5VRB3FBD.js +0 -6
  379. package/dist/chunk-62GA7XR3.js +0 -18
  380. package/dist/chunk-62LMVFR7.js +0 -1
  381. package/dist/chunk-6IDEDOXW.js +0 -2
  382. package/dist/chunk-72CBJYAG.js +0 -16
  383. package/dist/chunk-7E4MJCVE.js +0 -10
  384. package/dist/chunk-7HZU7CYS.js +0 -1
  385. package/dist/chunk-7Q4EKY3E.js +0 -3
  386. package/dist/chunk-7YXHILW4.js +0 -383
  387. package/dist/chunk-7Z6IX7MU.js +0 -1
  388. package/dist/chunk-A4XREDFZ.js +0 -1
  389. package/dist/chunk-AHNLGCHF.js +0 -5
  390. package/dist/chunk-ARRRFY6S.js +0 -4
  391. package/dist/chunk-BAP2CHI2.js +0 -1
  392. package/dist/chunk-BQWK222Q.js +0 -1
  393. package/dist/chunk-C3PXIZY3.js +0 -8
  394. package/dist/chunk-C6HGU77I.js +0 -1
  395. package/dist/chunk-CBFAU5AF.js +0 -5
  396. package/dist/chunk-COP2Q2YT.js +0 -1
  397. package/dist/chunk-CSWDRG3E.js +0 -1
  398. package/dist/chunk-CVBWEUWX.js +0 -1
  399. package/dist/chunk-D3NVUE65.js +0 -1
  400. package/dist/chunk-DCKRQZLE.js +0 -20
  401. package/dist/chunk-DYH3ZXJS.js +0 -15
  402. package/dist/chunk-EBX6DYDX.js +0 -2
  403. package/dist/chunk-EDRCFY3K.js +0 -16
  404. package/dist/chunk-EEAY7HFW.js +0 -317
  405. package/dist/chunk-EJMLNBZA.js +0 -275
  406. package/dist/chunk-EO3S2TFI.js +0 -2
  407. package/dist/chunk-EOIGDOUD.js +0 -7
  408. package/dist/chunk-EYKXHMEJ.js +0 -6
  409. package/dist/chunk-FHV2H3Z2.js +0 -12
  410. package/dist/chunk-FOAV642V.js +0 -1
  411. package/dist/chunk-FVTP7EO4.js +0 -46
  412. package/dist/chunk-FYIC4JHB.js +0 -26
  413. package/dist/chunk-GF36WNMH.js +0 -5
  414. package/dist/chunk-GJ3QUZO6.js +0 -1
  415. package/dist/chunk-GJZVUEMP.js +0 -11
  416. package/dist/chunk-GP6O7YRO.js +0 -20
  417. package/dist/chunk-GW424AJO.js +0 -7
  418. package/dist/chunk-GXSF6NCR.js +0 -1
  419. package/dist/chunk-GYVQIRBD.js +0 -1
  420. package/dist/chunk-H3ZPYOQV.js +0 -1
  421. package/dist/chunk-H7YSZKZ2.js +0 -1
  422. package/dist/chunk-HILYTMVA.js +0 -1
  423. package/dist/chunk-HMWQOQAQ.js +0 -2
  424. package/dist/chunk-HNSRF4SQ.js +0 -1
  425. package/dist/chunk-HTODXNY6.js +0 -3
  426. package/dist/chunk-IUYVJJKE.js +0 -9
  427. package/dist/chunk-JM2CQP64.js +0 -97
  428. package/dist/chunk-K4AF7A25.js +0 -1
  429. package/dist/chunk-KDV4WR5A.js +0 -4
  430. package/dist/chunk-KF7NL5YM.js +0 -8
  431. package/dist/chunk-KMJTO7CU.js +0 -103
  432. package/dist/chunk-KN3MUEWA.js +0 -4
  433. package/dist/chunk-KYB4JX76.js +0 -5
  434. package/dist/chunk-LJAU6YHF.js +0 -10
  435. package/dist/chunk-LMQOFVRC.js +0 -17
  436. package/dist/chunk-LQSD25YS.js +0 -3
  437. package/dist/chunk-M2HQFHNO.js +0 -1
  438. package/dist/chunk-M5WBYWSQ.js +0 -7
  439. package/dist/chunk-N47RQHEI.js +0 -2
  440. package/dist/chunk-NRG2WPSM.js +0 -1
  441. package/dist/chunk-O2CP7DQE.js +0 -1
  442. package/dist/chunk-O6FXUKI2.js +0 -2
  443. package/dist/chunk-OHJUEUSA.js +0 -1
  444. package/dist/chunk-OOKTWSGP.js +0 -4
  445. package/dist/chunk-OONMCK7X.js +0 -1
  446. package/dist/chunk-OWK2RI4O.js +0 -6
  447. package/dist/chunk-P2UEQJJ4.js +0 -5
  448. package/dist/chunk-QBJ74XPX.js +0 -18
  449. package/dist/chunk-QGFJOTOH.js +0 -4
  450. package/dist/chunk-QLHPTMIH.js +0 -1
  451. package/dist/chunk-RIO5HKD5.js +0 -1
  452. package/dist/chunk-S7EKUSO6.js +0 -3
  453. package/dist/chunk-SJ2ROSXG.js +0 -1
  454. package/dist/chunk-SNTRSP5K.js +0 -359
  455. package/dist/chunk-SYCN2GT2.js +0 -3
  456. package/dist/chunk-TBNEN73P.js +0 -1
  457. package/dist/chunk-TVI7TQ4C.js +0 -16
  458. package/dist/chunk-TYMYIUIQ.js +0 -1
  459. package/dist/chunk-UEQT7TA4.js +0 -1
  460. package/dist/chunk-UUM367NR.js +0 -5
  461. package/dist/chunk-V5FZRNXI.js +0 -1
  462. package/dist/chunk-VE35YELD.js +0 -1
  463. package/dist/chunk-WEICJ4GW.js +0 -1
  464. package/dist/chunk-WJJXJNNP.js +0 -3
  465. package/dist/chunk-XAQUXFN5.js +0 -1
  466. package/dist/chunk-XE6EUHSS.js +0 -2
  467. package/dist/chunk-XFEJS652.js +0 -16
  468. package/dist/chunk-XI4QEULN.js +0 -1
  469. package/dist/chunk-XP63T4KZ.js +0 -5
  470. package/dist/chunk-XRCAUZAZ.js +0 -8
  471. package/dist/chunk-XSRZWJIJ.js +0 -1
  472. package/dist/chunk-YFJELEVH.js +0 -1
  473. package/dist/chunk-YNJIDLI3.js +0 -7
  474. package/dist/chunk-YRX4E67D.js +0 -6
  475. package/dist/chunk-Z2NL6XQK.js +0 -6
  476. package/dist/chunk-Z6Z5DPKS.js +0 -1
  477. package/dist/chunk-ZOE6WXW6.js +0 -1
  478. package/dist/cli/commands/app/app-logs/sources.js +0 -1
  479. package/dist/command-json-schema-3RP5P43D.js +0 -1
  480. package/dist/conf-store-XORTWCKZ.js +0 -1
  481. package/dist/custom-oclif-loader-ZRYPPYIP.js +0 -1
  482. package/dist/deprecations-AZDMCRNN.js +0 -1
  483. package/dist/dist-DTBXLVHF.js +0 -1
  484. package/dist/dist-SOYIDACZ.js +0 -1
  485. package/dist/environments-L42SEHB4.js +0 -1
  486. package/dist/error-H6B5BHYC.js +0 -1
  487. package/dist/error-handler-JB752NKM.js +0 -1
  488. package/dist/fs-XHZY6MNM.js +0 -1
  489. package/dist/is-global-2NBDZWLC.js +0 -1
  490. package/dist/json-error-OHV2KQFY.js +0 -1
  491. package/dist/node-package-manager-LN2Y7FQ2.js +0 -1
  492. package/dist/notifications-system-HWJ3F44U.js +0 -1
  493. package/dist/os-MHOCCDIB.js +0 -1
  494. package/dist/out-53ABAVL7.js +0 -1
  495. package/dist/output-GILH4S6M.js +0 -1
  496. package/dist/system-6WYK24ET.js +0 -1
  497. package/dist/ui-RP6SVJUK.js +0 -1
  498. package/dist/upgrade-5G7FBJJV.js +0 -1
  499. package/dist/version-TOBC7X2C.js +0 -1
  500. package/dist/version-UIRCT6RC.js +0 -1
  501. package/dist/workerd-ARH2OCYL.js +0 -18
@@ -1,7 +1,7 @@
1
- import{a as Oo,b as vo,c as Br,d as Yr}from"./chunk-T7KHS6RF.js";import{b as yo}from"./chunk-TR4OWSEX.js";import{a as N,c as f,g as i}from"./chunk-VKWPEFWQ.js";var Wr=f(ie=>{"use strict";i();Object.defineProperty(ie,"__esModule",{value:!0});ie.boolean=void 0;var Ro=function(r){switch(Object.prototype.toString.call(r)){case"[object String]":return["true","t","yes","y","on","1"].includes(r.trim().toLowerCase());case"[object Number]":return r.valueOf()===1;case"[object Boolean]":return r.valueOf();default:return!1}};ie.boolean=Ro});var Kr=f(ae=>{"use strict";i();Object.defineProperty(ae,"__esModule",{value:!0});ae.isBooleanable=void 0;var _o=function(r){switch(Object.prototype.toString.call(r)){case"[object String]":return["true","t","yes","y","on","1","false","f","no","n","off","0"].includes(r.trim().toLowerCase());case"[object Number]":return[0,1].includes(r.valueOf());case"[object Boolean]":return!0;default:return!1}};ae.isBooleanable=_o});var ue=f(D=>{"use strict";i();Object.defineProperty(D,"__esModule",{value:!0});D.isBooleanable=D.boolean=void 0;var wo=Wr();Object.defineProperty(D,"boolean",{enumerable:!0,get:function(){return wo.boolean}});var Po=Kr();Object.defineProperty(D,"isBooleanable",{enumerable:!0,get:function(){return Po.isBooleanable}})});var le=f((Uc,Jr)=>{i();Jr.exports=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"});var Ye=f((Xc,Qr)=>{"use strict";i();var Zr=Object.prototype.toString;Qr.exports=function(e){var t=Zr.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Zr.call(e.callee)==="[object Function]"),n}});var ut=f((Hc,at)=>{"use strict";i();var it;Object.keys||(H=Object.prototype.hasOwnProperty,ze=Object.prototype.toString,et=Ye(),We=Object.prototype.propertyIsEnumerable,rt=!We.call({toString:null},"toString"),tt=We.call(function(){},"prototype"),V=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ce=function(r){var e=r.constructor;return e&&e.prototype===r},nt={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},st=(function(){if(typeof window>"u")return!1;for(var r in window)try{if(!nt["$"+r]&&H.call(window,r)&&window[r]!==null&&typeof window[r]=="object")try{ce(window[r])}catch{return!0}}catch{return!0}return!1})(),ot=function(r){if(typeof window>"u"||!st)return ce(r);try{return ce(r)}catch{return!1}},it=function(e){var t=e!==null&&typeof e=="object",n=ze.call(e)==="[object Function]",s=et(e),o=t&&ze.call(e)==="[object String]",a=[];if(!t&&!n&&!s)throw new TypeError("Object.keys called on a non-object");var c=tt&&n;if(o&&e.length>0&&!H.call(e,0))for(var l=0;l<e.length;++l)a.push(String(l));if(s&&e.length>0)for(var E=0;E<e.length;++E)a.push(String(E));else for(var u in e)!(c&&u==="prototype")&&H.call(e,u)&&a.push(String(u));if(rt)for(var p=ot(e),m=0;m<V.length;++m)!(p&&V[m]==="constructor")&&H.call(e,V[m])&&a.push(V[m]);return a});var H,ze,et,We,rt,tt,V,ce,nt,st,ot;at.exports=it});var pt=f((Bc,ft)=>{"use strict";i();var $o=Array.prototype.slice,Ao=Ye(),lt=Object.keys,fe=lt?function(e){return lt(e)}:ut(),ct=Object.keys;fe.shim=function(){if(Object.keys){var e=(function(){var t=Object.keys(arguments);return t&&t.length===arguments.length})(1,2);e||(Object.keys=function(n){return Ao(n)?ct($o.call(n)):ct(n)})}else Object.keys=fe;return Object.keys||fe};ft.exports=fe});var Et=f((zc,gt)=>{"use strict";i();var dt=Yr(),No=Oo(),j=vo(),ht=Br();gt.exports=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new j("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new j("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new j("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new j("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new j("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new j("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,l=!!ht&&ht(e,t);if(dt)dt(e,t,{configurable:a===null&&l?l.configurable:!a,enumerable:s===null&&l?l.enumerable:!s,value:n,writable:o===null&&l?l.writable:!o});else if(c||!s&&!o&&!a)e[t]=n;else throw new No("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Ot=f((Kc,yt)=>{"use strict";i();var Ke=Yr(),mt=function(){return!!Ke};mt.hasArrayLengthDefineBug=function(){if(!Ke)return null;try{return Ke([],"length",{value:1}).length!==1}catch{return!0}};yt.exports=mt});var Je=f((Zc,_t)=>{"use strict";i();var To=pt(),Lo=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",So=Object.prototype.toString,Io=Array.prototype.concat,vt=Et(),qo=function(r){return typeof r=="function"&&So.call(r)==="[object Function]"},bt=Ot()(),xo=function(r,e,t,n){if(e in r){if(n===!0){if(r[e]===t)return}else if(!qo(n)||!n())return}bt?vt(r,e,t,!0):vt(r,e,t)},Rt=function(r,e){var t=arguments.length>2?arguments[2]:{},n=To(e);Lo&&(n=Io.call(n,Object.getOwnPropertySymbols(e)));for(var s=0;s<n.length;s+=1)xo(r,n[s],e[n[s]],t[n[s]])};Rt.supportsDescriptors=!!bt;_t.exports=Rt});var Ze=f((ef,wt)=>{"use strict";i();wt.exports=global});var Qe=f((tf,Pt)=>{"use strict";i();var Co=Ze();Pt.exports=function(){return typeof global!="object"||!global||global.Math!==Math||global.Array!==Array?Co:global}});var At=f((sf,$t)=>{"use strict";i();var Do=Je(),jo=Br(),Go=Qe();$t.exports=function(){var e=Go();if(Do.supportsDescriptors){var t=jo(e,"globalThis");(!t||t.configurable&&(t.enumerable||!t.writable||globalThis!==e))&&Object.defineProperty(e,"globalThis",{configurable:!0,enumerable:!1,value:e,writable:!0})}else(typeof globalThis!="object"||globalThis!==e)&&(e.globalThis=e);return e}});var er=f((af,Lt)=>{"use strict";i();var Mo=Je(),Uo=Ze(),Nt=Qe(),ko=At(),Xo=Nt(),Tt=function(){return Xo};Mo(Tt,{getPolyfill:Nt,implementation:Uo,shim:ko});Lt.exports=Tt});var qt=f((rr,It)=>{i();rr=It.exports=Fo;rr.getSerialize=St;function Fo(r,e,t,n){return JSON.stringify(r,St(e,n),t)}function St(r,e){var t=[],n=[];return e==null&&(e=function(s,o){return t[0]===o?"[Circular ~]":"[Circular ~."+n.slice(0,t.indexOf(o)).join(".")+"]"}),function(s,o){if(t.length>0){var a=t.indexOf(this);~a?t.splice(a+1):t.push(this),~a?n.splice(a,1/0,s):n.push(s),~t.indexOf(o)&&(o=e.call(this,s,o))}else t.push(o);return r==null?o:r.call(this,s,o)}}});var xt=f(pe=>{i();(function(){"use strict";var r={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(a){return n(o(a),arguments)}function t(a,c){return e.apply(null,[a].concat(c||[]))}function n(a,c){var l=1,E=a.length,u,p="",m,g,O,S,I,C,oe,q;for(m=0;m<E;m++)if(typeof a[m]=="string")p+=a[m];else if(typeof a[m]=="object"){if(O=a[m],O.keys)for(u=c[l],g=0;g<O.keys.length;g++){if(u==null)throw new Error(e('[sprintf] Cannot access property "%s" of undefined value "%s"',O.keys[g],O.keys[g-1]));u=u[O.keys[g]]}else O.param_no?u=c[O.param_no]:u=c[l++];if(r.not_type.test(O.type)&&r.not_primitive.test(O.type)&&u instanceof Function&&(u=u()),r.numeric_arg.test(O.type)&&typeof u!="number"&&isNaN(u))throw new TypeError(e("[sprintf] expecting number but found %T",u));switch(r.number.test(O.type)&&(oe=u>=0),O.type){case"b":u=parseInt(u,10).toString(2);break;case"c":u=String.fromCharCode(parseInt(u,10));break;case"d":case"i":u=parseInt(u,10);break;case"j":u=JSON.stringify(u,null,O.width?parseInt(O.width):0);break;case"e":u=O.precision?parseFloat(u).toExponential(O.precision):parseFloat(u).toExponential();break;case"f":u=O.precision?parseFloat(u).toFixed(O.precision):parseFloat(u);break;case"g":u=O.precision?String(Number(u.toPrecision(O.precision))):parseFloat(u);break;case"o":u=(parseInt(u,10)>>>0).toString(8);break;case"s":u=String(u),u=O.precision?u.substring(0,O.precision):u;break;case"t":u=String(!!u),u=O.precision?u.substring(0,O.precision):u;break;case"T":u=Object.prototype.toString.call(u).slice(8,-1).toLowerCase(),u=O.precision?u.substring(0,O.precision):u;break;case"u":u=parseInt(u,10)>>>0;break;case"v":u=u.valueOf(),u=O.precision?u.substring(0,O.precision):u;break;case"x":u=(parseInt(u,10)>>>0).toString(16);break;case"X":u=(parseInt(u,10)>>>0).toString(16).toUpperCase();break}r.json.test(O.type)?p+=u:(r.number.test(O.type)&&(!oe||O.sign)?(q=oe?"+":"-",u=u.toString().replace(r.sign,"")):q="",I=O.pad_char?O.pad_char==="0"?"0":O.pad_char.charAt(1):" ",C=O.width-(q+u).length,S=O.width&&C>0?I.repeat(C):"",p+=O.align?q+u+S:I==="0"?q+S+u:S+q+u)}return p}var s=Object.create(null);function o(a){if(s[a])return s[a];for(var c=a,l,E=[],u=0;c;){if((l=r.text.exec(c))!==null)E.push(l[0]);else if((l=r.modulo.exec(c))!==null)E.push("%");else if((l=r.placeholder.exec(c))!==null){if(l[2]){u|=1;var p=[],m=l[2],g=[];if((g=r.key.exec(m))!==null)for(p.push(g[1]);(m=m.substring(g[0].length))!=="";)if((g=r.key_access.exec(m))!==null)p.push(g[1]);else if((g=r.index_access.exec(m))!==null)p.push(g[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");l[2]=p}else u|=2;if(u===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");E.push({placeholder:l[0],param_no:l[1],keys:l[2],sign:l[3],pad_char:l[4],align:l[5],width:l[6],precision:l[7],type:l[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");c=c.substring(l[0].length)}return s[a]=E}typeof pe<"u"&&(pe.sprintf=e,pe.vsprintf=t),typeof window<"u"&&(window.sprintf=e,window.vsprintf=t,typeof define=="function"&&define.amd&&define(function(){return{sprintf:e,vsprintf:t}}))})()});var tr=f(de=>{"use strict";i();Object.defineProperty(de,"__esModule",{value:!0});de.logLevels=void 0;var Ho={debug:20,error:50,fatal:60,info:30,trace:10,warn:40};de.logLevels=Ho});var jt=f(ge=>{"use strict";i();Object.defineProperty(ge,"__esModule",{value:!0});ge.default=void 0;var Vo=ir(le()),Bo=ir(er()),Yo=ir(qt()),nr=xt(),Ct=tr();function ir(r){return r&&r.__esModule?r:{default:r}}function sr(){return sr=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},sr.apply(this,arguments)}function Dt(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),t.push.apply(t,n)}return t}function w(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Dt(Object(t),!0).forEach(function(n){zo(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Dt(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function zo(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var Wo=(0,Bo.default)(),B;Vo.default&&(B=N("domain"));var Ko=()=>{if(!B)return{};let r=[],e=process.domain;if(!e||!e.parentDomain)return{};for(;e&&e.parentDomain;)e=e.parentDomain,e.roarr&&e.roarr.context&&r.push(e.roarr.context);let t={};for(let n of r)t=w(w({},t),n);return t},he=()=>{if(!B)return{};let r=process.domain;if(r&&r.roarr&&r.roarr.context)return r.roarr.context;if(!r||!r.parentDomain)return{};for(;r&&r.parentDomain;)if(r=r.parentDomain,r.roarr&&r.roarr.context)return r.roarr.context;return{}},or=(r,e)=>{let t=(n,s,o,a,c,l,E,u,p,m)=>{let g=Date.now(),O=Wo.ROARR.sequence++,S,I;if(typeof n=="string"){S=w(w({},he()),e||{});let C=sr({},{a:n,b:s,c:o,d:a,e:c,f:l,g:E,h:u,i:p,k:m});I=Object.keys(C).map(Be=>C[Be]).reduce((Be,mo)=>Be+=typeof mo>"u"?0:1,0)===1?(0,nr.sprintf)("%s",n):(0,nr.sprintf)(n,s,o,a,c,l,E,u,p,m)}else{if(typeof s!="string")throw new TypeError("Message must be a string.");S=JSON.parse((0,Yo.default)(w(w(w({},he()),e||{}),n))),I=(0,nr.sprintf)(s,o,a,c,l,E,u,p,m)}r({context:S,message:I,sequence:O,time:g,version:"1.0.0"})};t.child=n=>typeof n=="function"?or(s=>{if(typeof n!="function")throw new TypeError("Unexpected state.");r(n(s))},e):or(r,w(w(w({},he()),e),n)),t.getContext=()=>w(w({},he()),e||{}),t.adopt=async(n,s)=>{if(!B)return n();let o=B.create();return o.run(()=>(o.roarr={context:w(w({},Ko()),s)},n()))};for(let n of Object.keys(Ct.logLevels))t[n]=(s,o,a,c,l,E,u,p,m,g)=>t.child({logLevel:Ct.logLevels[n]})(s,o,a,c,l,E,u,p,m,g);return t},Jo=or;ge.default=Jo});var Ut=f(Ee=>{"use strict";i();Object.defineProperty(Ee,"__esModule",{value:!0});Ee.default=void 0;var Gt=tr(),Mt=(r,e)=>{let t=(n,s,o,a,c,l,E,u,p,m)=>{};t.adopt=async n=>n(),t.child=n=>Mt(r,e),t.getContext=()=>({});for(let n of Object.keys(Gt.logLevels))t[n]=(s,o,a,c,l,E,u,p,m,g)=>t.child({logLevel:Gt.logLevels[n]})(s,o,a,c,l,E,u,p,m,g);return t},Zo=Mt;Ee.default=Zo});var Xt=f((yf,kt)=>{i();kt.exports=function(e,t){for(var n=e.split("."),s=t.split("."),o=0;o<3;o++){var a=Number(n[o]),c=Number(s[o]);if(a>c)return 1;if(c>a)return-1;if(!isNaN(a)&&isNaN(c))return 1;if(isNaN(a)&&!isNaN(c))return-1}return 0}});var Ft=f((vf,Qo)=>{Qo.exports={author:{email:"gajus@gajus.com",name:"Gajus Kuizinas",url:"http://gajus.com"},ava:{babel:{compileAsTests:["test/helpers/**/*"]},files:["test/roarr/**/*"],require:["@babel/register"]},dependencies:{boolean:"^3.0.1","detect-node":"^2.0.4",globalthis:"^1.0.1","json-stringify-safe":"^5.0.1","semver-compare":"^1.0.0","sprintf-js":"^1.1.2"},description:"JSON logger for Node.js and browser.",devDependencies:{"@ava/babel":"^1.0.1","@babel/cli":"^7.11.6","@babel/core":"^7.11.6","@babel/node":"^7.10.5","@babel/plugin-transform-flow-strip-types":"^7.10.4","@babel/preset-env":"^7.11.5","@babel/register":"^7.11.5",ava:"^3.12.1","babel-plugin-istanbul":"^6.0.0","babel-plugin-transform-export-default-name":"^2.0.4",coveralls:"^3.1.0","domain-parent":"^1.0.0",eslint:"^7.9.0","eslint-config-canonical":"^24.1.1","flow-bin":"^0.133.0","flow-copy-source":"^2.0.9",gitdown:"^3.1.3",husky:"^4.3.0",nyc:"^15.1.0","semantic-release":"^17.1.1"},engines:{node:">=8.0"},husky:{hooks:{"pre-commit":"npm run lint && npm run test && npm run build","pre-push":"gitdown ./.README/README.md --output-file ./README.md --check"}},keywords:["log","logger","json"],main:"./dist/log.js",name:"roarr",nyc:{include:["src/**/*.js"],instrument:!1,reporter:["text-lcov"],require:["@babel/register"],sourceMap:!1},license:"BSD-3-Clause",repository:{type:"git",url:"git@github.com:gajus/roarr.git"},scripts:{build:"rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps && flow-copy-source src dist","create-readme":"gitdown ./.README/README.md --output-file ./README.md",dev:"NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps --watch",lint:"eslint ./src ./test && flow",test:"NODE_ENV=test ava --serial --verbose"},version:"2.15.4"}});var Ht=f(me=>{"use strict";i();Object.defineProperty(me,"__esModule",{value:!0});me.default=void 0;var ei=r=>({write:e=>{r.write(e+`
1
+ import{a as Oo,b as vo,c as Br,d as Yr}from"./chunk-T7KHS6RF.js";import{b as yo}from"./chunk-QFYLJVJW.js";import{a as N,c as f,g as i}from"./chunk-VKWPEFWQ.js";var Wr=f(ie=>{"use strict";i();Object.defineProperty(ie,"__esModule",{value:!0});ie.boolean=void 0;var Ro=function(r){switch(Object.prototype.toString.call(r)){case"[object String]":return["true","t","yes","y","on","1"].includes(r.trim().toLowerCase());case"[object Number]":return r.valueOf()===1;case"[object Boolean]":return r.valueOf();default:return!1}};ie.boolean=Ro});var Kr=f(ae=>{"use strict";i();Object.defineProperty(ae,"__esModule",{value:!0});ae.isBooleanable=void 0;var _o=function(r){switch(Object.prototype.toString.call(r)){case"[object String]":return["true","t","yes","y","on","1","false","f","no","n","off","0"].includes(r.trim().toLowerCase());case"[object Number]":return[0,1].includes(r.valueOf());case"[object Boolean]":return!0;default:return!1}};ae.isBooleanable=_o});var ue=f(D=>{"use strict";i();Object.defineProperty(D,"__esModule",{value:!0});D.isBooleanable=D.boolean=void 0;var wo=Wr();Object.defineProperty(D,"boolean",{enumerable:!0,get:function(){return wo.boolean}});var Po=Kr();Object.defineProperty(D,"isBooleanable",{enumerable:!0,get:function(){return Po.isBooleanable}})});var le=f((Uc,Jr)=>{i();Jr.exports=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"});var Ye=f((Xc,Qr)=>{"use strict";i();var Zr=Object.prototype.toString;Qr.exports=function(e){var t=Zr.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Zr.call(e.callee)==="[object Function]"),n}});var ut=f((Hc,at)=>{"use strict";i();var it;Object.keys||(H=Object.prototype.hasOwnProperty,ze=Object.prototype.toString,et=Ye(),We=Object.prototype.propertyIsEnumerable,rt=!We.call({toString:null},"toString"),tt=We.call(function(){},"prototype"),V=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ce=function(r){var e=r.constructor;return e&&e.prototype===r},nt={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},st=(function(){if(typeof window>"u")return!1;for(var r in window)try{if(!nt["$"+r]&&H.call(window,r)&&window[r]!==null&&typeof window[r]=="object")try{ce(window[r])}catch{return!0}}catch{return!0}return!1})(),ot=function(r){if(typeof window>"u"||!st)return ce(r);try{return ce(r)}catch{return!1}},it=function(e){var t=e!==null&&typeof e=="object",n=ze.call(e)==="[object Function]",s=et(e),o=t&&ze.call(e)==="[object String]",a=[];if(!t&&!n&&!s)throw new TypeError("Object.keys called on a non-object");var c=tt&&n;if(o&&e.length>0&&!H.call(e,0))for(var l=0;l<e.length;++l)a.push(String(l));if(s&&e.length>0)for(var E=0;E<e.length;++E)a.push(String(E));else for(var u in e)!(c&&u==="prototype")&&H.call(e,u)&&a.push(String(u));if(rt)for(var p=ot(e),m=0;m<V.length;++m)!(p&&V[m]==="constructor")&&H.call(e,V[m])&&a.push(V[m]);return a});var H,ze,et,We,rt,tt,V,ce,nt,st,ot;at.exports=it});var pt=f((Bc,ft)=>{"use strict";i();var $o=Array.prototype.slice,Ao=Ye(),lt=Object.keys,fe=lt?function(e){return lt(e)}:ut(),ct=Object.keys;fe.shim=function(){if(Object.keys){var e=(function(){var t=Object.keys(arguments);return t&&t.length===arguments.length})(1,2);e||(Object.keys=function(n){return Ao(n)?ct($o.call(n)):ct(n)})}else Object.keys=fe;return Object.keys||fe};ft.exports=fe});var Et=f((zc,gt)=>{"use strict";i();var dt=Yr(),No=Oo(),j=vo(),ht=Br();gt.exports=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new j("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new j("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new j("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new j("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new j("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new j("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,l=!!ht&&ht(e,t);if(dt)dt(e,t,{configurable:a===null&&l?l.configurable:!a,enumerable:s===null&&l?l.enumerable:!s,value:n,writable:o===null&&l?l.writable:!o});else if(c||!s&&!o&&!a)e[t]=n;else throw new No("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Ot=f((Kc,yt)=>{"use strict";i();var Ke=Yr(),mt=function(){return!!Ke};mt.hasArrayLengthDefineBug=function(){if(!Ke)return null;try{return Ke([],"length",{value:1}).length!==1}catch{return!0}};yt.exports=mt});var Je=f((Zc,_t)=>{"use strict";i();var To=pt(),Lo=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",So=Object.prototype.toString,Io=Array.prototype.concat,vt=Et(),qo=function(r){return typeof r=="function"&&So.call(r)==="[object Function]"},bt=Ot()(),xo=function(r,e,t,n){if(e in r){if(n===!0){if(r[e]===t)return}else if(!qo(n)||!n())return}bt?vt(r,e,t,!0):vt(r,e,t)},Rt=function(r,e){var t=arguments.length>2?arguments[2]:{},n=To(e);Lo&&(n=Io.call(n,Object.getOwnPropertySymbols(e)));for(var s=0;s<n.length;s+=1)xo(r,n[s],e[n[s]],t[n[s]])};Rt.supportsDescriptors=!!bt;_t.exports=Rt});var Ze=f((ef,wt)=>{"use strict";i();wt.exports=global});var Qe=f((tf,Pt)=>{"use strict";i();var Co=Ze();Pt.exports=function(){return typeof global!="object"||!global||global.Math!==Math||global.Array!==Array?Co:global}});var At=f((sf,$t)=>{"use strict";i();var Do=Je(),jo=Br(),Go=Qe();$t.exports=function(){var e=Go();if(Do.supportsDescriptors){var t=jo(e,"globalThis");(!t||t.configurable&&(t.enumerable||!t.writable||globalThis!==e))&&Object.defineProperty(e,"globalThis",{configurable:!0,enumerable:!1,value:e,writable:!0})}else(typeof globalThis!="object"||globalThis!==e)&&(e.globalThis=e);return e}});var er=f((af,Lt)=>{"use strict";i();var Mo=Je(),Uo=Ze(),Nt=Qe(),ko=At(),Xo=Nt(),Tt=function(){return Xo};Mo(Tt,{getPolyfill:Nt,implementation:Uo,shim:ko});Lt.exports=Tt});var qt=f((rr,It)=>{i();rr=It.exports=Fo;rr.getSerialize=St;function Fo(r,e,t,n){return JSON.stringify(r,St(e,n),t)}function St(r,e){var t=[],n=[];return e==null&&(e=function(s,o){return t[0]===o?"[Circular ~]":"[Circular ~."+n.slice(0,t.indexOf(o)).join(".")+"]"}),function(s,o){if(t.length>0){var a=t.indexOf(this);~a?t.splice(a+1):t.push(this),~a?n.splice(a,1/0,s):n.push(s),~t.indexOf(o)&&(o=e.call(this,s,o))}else t.push(o);return r==null?o:r.call(this,s,o)}}});var xt=f(pe=>{i();(function(){"use strict";var r={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(a){return n(o(a),arguments)}function t(a,c){return e.apply(null,[a].concat(c||[]))}function n(a,c){var l=1,E=a.length,u,p="",m,g,O,S,I,C,oe,q;for(m=0;m<E;m++)if(typeof a[m]=="string")p+=a[m];else if(typeof a[m]=="object"){if(O=a[m],O.keys)for(u=c[l],g=0;g<O.keys.length;g++){if(u==null)throw new Error(e('[sprintf] Cannot access property "%s" of undefined value "%s"',O.keys[g],O.keys[g-1]));u=u[O.keys[g]]}else O.param_no?u=c[O.param_no]:u=c[l++];if(r.not_type.test(O.type)&&r.not_primitive.test(O.type)&&u instanceof Function&&(u=u()),r.numeric_arg.test(O.type)&&typeof u!="number"&&isNaN(u))throw new TypeError(e("[sprintf] expecting number but found %T",u));switch(r.number.test(O.type)&&(oe=u>=0),O.type){case"b":u=parseInt(u,10).toString(2);break;case"c":u=String.fromCharCode(parseInt(u,10));break;case"d":case"i":u=parseInt(u,10);break;case"j":u=JSON.stringify(u,null,O.width?parseInt(O.width):0);break;case"e":u=O.precision?parseFloat(u).toExponential(O.precision):parseFloat(u).toExponential();break;case"f":u=O.precision?parseFloat(u).toFixed(O.precision):parseFloat(u);break;case"g":u=O.precision?String(Number(u.toPrecision(O.precision))):parseFloat(u);break;case"o":u=(parseInt(u,10)>>>0).toString(8);break;case"s":u=String(u),u=O.precision?u.substring(0,O.precision):u;break;case"t":u=String(!!u),u=O.precision?u.substring(0,O.precision):u;break;case"T":u=Object.prototype.toString.call(u).slice(8,-1).toLowerCase(),u=O.precision?u.substring(0,O.precision):u;break;case"u":u=parseInt(u,10)>>>0;break;case"v":u=u.valueOf(),u=O.precision?u.substring(0,O.precision):u;break;case"x":u=(parseInt(u,10)>>>0).toString(16);break;case"X":u=(parseInt(u,10)>>>0).toString(16).toUpperCase();break}r.json.test(O.type)?p+=u:(r.number.test(O.type)&&(!oe||O.sign)?(q=oe?"+":"-",u=u.toString().replace(r.sign,"")):q="",I=O.pad_char?O.pad_char==="0"?"0":O.pad_char.charAt(1):" ",C=O.width-(q+u).length,S=O.width&&C>0?I.repeat(C):"",p+=O.align?q+u+S:I==="0"?q+S+u:S+q+u)}return p}var s=Object.create(null);function o(a){if(s[a])return s[a];for(var c=a,l,E=[],u=0;c;){if((l=r.text.exec(c))!==null)E.push(l[0]);else if((l=r.modulo.exec(c))!==null)E.push("%");else if((l=r.placeholder.exec(c))!==null){if(l[2]){u|=1;var p=[],m=l[2],g=[];if((g=r.key.exec(m))!==null)for(p.push(g[1]);(m=m.substring(g[0].length))!=="";)if((g=r.key_access.exec(m))!==null)p.push(g[1]);else if((g=r.index_access.exec(m))!==null)p.push(g[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");l[2]=p}else u|=2;if(u===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");E.push({placeholder:l[0],param_no:l[1],keys:l[2],sign:l[3],pad_char:l[4],align:l[5],width:l[6],precision:l[7],type:l[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");c=c.substring(l[0].length)}return s[a]=E}typeof pe<"u"&&(pe.sprintf=e,pe.vsprintf=t),typeof window<"u"&&(window.sprintf=e,window.vsprintf=t,typeof define=="function"&&define.amd&&define(function(){return{sprintf:e,vsprintf:t}}))})()});var tr=f(de=>{"use strict";i();Object.defineProperty(de,"__esModule",{value:!0});de.logLevels=void 0;var Ho={debug:20,error:50,fatal:60,info:30,trace:10,warn:40};de.logLevels=Ho});var jt=f(ge=>{"use strict";i();Object.defineProperty(ge,"__esModule",{value:!0});ge.default=void 0;var Vo=ir(le()),Bo=ir(er()),Yo=ir(qt()),nr=xt(),Ct=tr();function ir(r){return r&&r.__esModule?r:{default:r}}function sr(){return sr=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},sr.apply(this,arguments)}function Dt(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),t.push.apply(t,n)}return t}function w(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Dt(Object(t),!0).forEach(function(n){zo(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Dt(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function zo(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var Wo=(0,Bo.default)(),B;Vo.default&&(B=N("domain"));var Ko=()=>{if(!B)return{};let r=[],e=process.domain;if(!e||!e.parentDomain)return{};for(;e&&e.parentDomain;)e=e.parentDomain,e.roarr&&e.roarr.context&&r.push(e.roarr.context);let t={};for(let n of r)t=w(w({},t),n);return t},he=()=>{if(!B)return{};let r=process.domain;if(r&&r.roarr&&r.roarr.context)return r.roarr.context;if(!r||!r.parentDomain)return{};for(;r&&r.parentDomain;)if(r=r.parentDomain,r.roarr&&r.roarr.context)return r.roarr.context;return{}},or=(r,e)=>{let t=(n,s,o,a,c,l,E,u,p,m)=>{let g=Date.now(),O=Wo.ROARR.sequence++,S,I;if(typeof n=="string"){S=w(w({},he()),e||{});let C=sr({},{a:n,b:s,c:o,d:a,e:c,f:l,g:E,h:u,i:p,k:m});I=Object.keys(C).map(Be=>C[Be]).reduce((Be,mo)=>Be+=typeof mo>"u"?0:1,0)===1?(0,nr.sprintf)("%s",n):(0,nr.sprintf)(n,s,o,a,c,l,E,u,p,m)}else{if(typeof s!="string")throw new TypeError("Message must be a string.");S=JSON.parse((0,Yo.default)(w(w(w({},he()),e||{}),n))),I=(0,nr.sprintf)(s,o,a,c,l,E,u,p,m)}r({context:S,message:I,sequence:O,time:g,version:"1.0.0"})};t.child=n=>typeof n=="function"?or(s=>{if(typeof n!="function")throw new TypeError("Unexpected state.");r(n(s))},e):or(r,w(w(w({},he()),e),n)),t.getContext=()=>w(w({},he()),e||{}),t.adopt=async(n,s)=>{if(!B)return n();let o=B.create();return o.run(()=>(o.roarr={context:w(w({},Ko()),s)},n()))};for(let n of Object.keys(Ct.logLevels))t[n]=(s,o,a,c,l,E,u,p,m,g)=>t.child({logLevel:Ct.logLevels[n]})(s,o,a,c,l,E,u,p,m,g);return t},Jo=or;ge.default=Jo});var Ut=f(Ee=>{"use strict";i();Object.defineProperty(Ee,"__esModule",{value:!0});Ee.default=void 0;var Gt=tr(),Mt=(r,e)=>{let t=(n,s,o,a,c,l,E,u,p,m)=>{};t.adopt=async n=>n(),t.child=n=>Mt(r,e),t.getContext=()=>({});for(let n of Object.keys(Gt.logLevels))t[n]=(s,o,a,c,l,E,u,p,m,g)=>t.child({logLevel:Gt.logLevels[n]})(s,o,a,c,l,E,u,p,m,g);return t},Zo=Mt;Ee.default=Zo});var Xt=f((yf,kt)=>{i();kt.exports=function(e,t){for(var n=e.split("."),s=t.split("."),o=0;o<3;o++){var a=Number(n[o]),c=Number(s[o]);if(a>c)return 1;if(c>a)return-1;if(!isNaN(a)&&isNaN(c))return 1;if(isNaN(a)&&!isNaN(c))return-1}return 0}});var Ft=f((vf,Qo)=>{Qo.exports={author:{email:"gajus@gajus.com",name:"Gajus Kuizinas",url:"http://gajus.com"},ava:{babel:{compileAsTests:["test/helpers/**/*"]},files:["test/roarr/**/*"],require:["@babel/register"]},dependencies:{boolean:"^3.0.1","detect-node":"^2.0.4",globalthis:"^1.0.1","json-stringify-safe":"^5.0.1","semver-compare":"^1.0.0","sprintf-js":"^1.1.2"},description:"JSON logger for Node.js and browser.",devDependencies:{"@ava/babel":"^1.0.1","@babel/cli":"^7.11.6","@babel/core":"^7.11.6","@babel/node":"^7.10.5","@babel/plugin-transform-flow-strip-types":"^7.10.4","@babel/preset-env":"^7.11.5","@babel/register":"^7.11.5",ava:"^3.12.1","babel-plugin-istanbul":"^6.0.0","babel-plugin-transform-export-default-name":"^2.0.4",coveralls:"^3.1.0","domain-parent":"^1.0.0",eslint:"^7.9.0","eslint-config-canonical":"^24.1.1","flow-bin":"^0.133.0","flow-copy-source":"^2.0.9",gitdown:"^3.1.3",husky:"^4.3.0",nyc:"^15.1.0","semantic-release":"^17.1.1"},engines:{node:">=8.0"},husky:{hooks:{"pre-commit":"npm run lint && npm run test && npm run build","pre-push":"gitdown ./.README/README.md --output-file ./README.md --check"}},keywords:["log","logger","json"],main:"./dist/log.js",name:"roarr",nyc:{include:["src/**/*.js"],instrument:!1,reporter:["text-lcov"],require:["@babel/register"],sourceMap:!1},license:"BSD-3-Clause",repository:{type:"git",url:"git@github.com:gajus/roarr.git"},scripts:{build:"rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps && flow-copy-source src dist","create-readme":"gitdown ./.README/README.md --output-file ./README.md",dev:"NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps --watch",lint:"eslint ./src ./test && flow",test:"NODE_ENV=test ava --serial --verbose"},version:"2.15.4"}});var Ht=f(me=>{"use strict";i();Object.defineProperty(me,"__esModule",{value:!0});me.default=void 0;var ei=r=>({write:e=>{r.write(e+`
2
2
  `)}}),ri=()=>{let e=(process.env.ROARR_STREAM||"STDOUT").toUpperCase().toUpperCase()==="STDOUT"?process.stdout:process.stderr;return ei(e)},ti=ri;me.default=ti});var Bt=f(Oe=>{"use strict";i();Object.defineProperty(Oe,"__esModule",{value:!0});Oe.default=void 0;var ni=lr(le()),ar=lr(Xt()),ur=Ft(),si=lr(Ht());function lr(r){return r&&r.__esModule?r:{default:r}}function Vt(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),t.push.apply(t,n)}return t}function ye(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Vt(Object(t),!0).forEach(function(n){oi(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Vt(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function oi(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var ii=r=>{let e=(r.versions||[]).concat();e.sort(ar.default);let t=!e.length||(0,ar.default)(ur.version,e[e.length-1])===1;e.includes(ur.version)||e.push(ur.version),e.sort(ar.default);let n=ye(ye({sequence:0},r),{},{versions:e});return ni.default&&(t||!n.write)&&(n=ye(ye({},n),(0,si.default)())),n},ai=ii;Oe.default=ai});var Yt=f(Y=>{"use strict";i();Object.defineProperty(Y,"__esModule",{value:!0});Object.defineProperty(Y,"createLogger",{enumerable:!0,get:function(){return ui.default}});Object.defineProperty(Y,"createMockLogger",{enumerable:!0,get:function(){return li.default}});Object.defineProperty(Y,"createRoarrInititialGlobalState",{enumerable:!0,get:function(){return ci.default}});var ui=cr(jt()),li=cr(Ut()),ci=cr(Bt());function cr(r){return r&&r.__esModule?r:{default:r}}});var Jt=f(G=>{"use strict";i();Object.defineProperty(G,"__esModule",{value:!0});G.default=G.ROARR=void 0;var fi=ue(),pi=Wt(le()),di=Wt(er()),pr=Yt();function Wt(r){return r&&r.__esModule?r:{default:r}}var zt=(0,di.default)(),fr=zt.ROARR=(0,pr.createRoarrInititialGlobalState)(zt.ROARR||{});G.ROARR=fr;var Kt=pr.createLogger;pi.default&&((0,fi.boolean)(process.env.ROARR_LOG||"")||(Kt=pr.createMockLogger));var hi=Kt(r=>{if(fr.write){let e=JSON.stringify(r);fr.write(e)}});G.default=hi});var z=f(ve=>{"use strict";i();Object.defineProperty(ve,"__esModule",{value:!0});ve.default=void 0;var gi=Ei(Jt());function Ei(r){return r&&r.__esModule?r:{default:r}}var mi=gi.default.child({package:"global-agent"}),yi=mi;ve.default=yi});var W=f((Sf,Zt)=>{i();var Oi="2.0.0",vi=Number.MAX_SAFE_INTEGER||9007199254740991,bi=16,Ri=250,_i=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Zt.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:bi,MAX_SAFE_BUILD_LENGTH:Ri,MAX_SAFE_INTEGER:vi,RELEASE_TYPES:_i,SEMVER_SPEC_VERSION:Oi,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var K=f((qf,Qt)=>{i();var wi=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};Qt.exports=wi});var M=f((L,en)=>{i();var{MAX_SAFE_COMPONENT_LENGTH:dr,MAX_SAFE_BUILD_LENGTH:Pi,MAX_LENGTH:$i}=W(),Ai=K();L=en.exports={};var Ni=L.re=[],Ti=L.safeRe=[],d=L.src=[],h=L.t={},Li=0,hr="[a-zA-Z0-9-]",Si=[["\\s",1],["\\d",$i],[hr,Pi]],Ii=r=>{for(let[e,t]of Si)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},y=(r,e,t)=>{let n=Ii(e),s=Li++;Ai(r,s,e),h[r]=s,d[s]=e,Ni[s]=new RegExp(e,t?"g":void 0),Ti[s]=new RegExp(n,t?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*");y("NUMERICIDENTIFIERLOOSE","\\d+");y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${hr}*`);y("MAINVERSION",`(${d[h.NUMERICIDENTIFIER]})\\.(${d[h.NUMERICIDENTIFIER]})\\.(${d[h.NUMERICIDENTIFIER]})`);y("MAINVERSIONLOOSE",`(${d[h.NUMERICIDENTIFIERLOOSE]})\\.(${d[h.NUMERICIDENTIFIERLOOSE]})\\.(${d[h.NUMERICIDENTIFIERLOOSE]})`);y("PRERELEASEIDENTIFIER",`(?:${d[h.NUMERICIDENTIFIER]}|${d[h.NONNUMERICIDENTIFIER]})`);y("PRERELEASEIDENTIFIERLOOSE",`(?:${d[h.NUMERICIDENTIFIERLOOSE]}|${d[h.NONNUMERICIDENTIFIER]})`);y("PRERELEASE",`(?:-(${d[h.PRERELEASEIDENTIFIER]}(?:\\.${d[h.PRERELEASEIDENTIFIER]})*))`);y("PRERELEASELOOSE",`(?:-?(${d[h.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[h.PRERELEASEIDENTIFIERLOOSE]})*))`);y("BUILDIDENTIFIER",`${hr}+`);y("BUILD",`(?:\\+(${d[h.BUILDIDENTIFIER]}(?:\\.${d[h.BUILDIDENTIFIER]})*))`);y("FULLPLAIN",`v?${d[h.MAINVERSION]}${d[h.PRERELEASE]}?${d[h.BUILD]}?`);y("FULL",`^${d[h.FULLPLAIN]}$`);y("LOOSEPLAIN",`[v=\\s]*${d[h.MAINVERSIONLOOSE]}${d[h.PRERELEASELOOSE]}?${d[h.BUILD]}?`);y("LOOSE",`^${d[h.LOOSEPLAIN]}$`);y("GTLT","((?:<|>)?=?)");y("XRANGEIDENTIFIERLOOSE",`${d[h.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);y("XRANGEIDENTIFIER",`${d[h.NUMERICIDENTIFIER]}|x|X|\\*`);y("XRANGEPLAIN",`[v=\\s]*(${d[h.XRANGEIDENTIFIER]})(?:\\.(${d[h.XRANGEIDENTIFIER]})(?:\\.(${d[h.XRANGEIDENTIFIER]})(?:${d[h.PRERELEASE]})?${d[h.BUILD]}?)?)?`);y("XRANGEPLAINLOOSE",`[v=\\s]*(${d[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[h.XRANGEIDENTIFIERLOOSE]})(?:${d[h.PRERELEASELOOSE]})?${d[h.BUILD]}?)?)?`);y("XRANGE",`^${d[h.GTLT]}\\s*${d[h.XRANGEPLAIN]}$`);y("XRANGELOOSE",`^${d[h.GTLT]}\\s*${d[h.XRANGEPLAINLOOSE]}$`);y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${dr}})(?:\\.(\\d{1,${dr}}))?(?:\\.(\\d{1,${dr}}))?`);y("COERCE",`${d[h.COERCEPLAIN]}(?:$|[^\\d])`);y("COERCEFULL",d[h.COERCEPLAIN]+`(?:${d[h.PRERELEASE]})?(?:${d[h.BUILD]})?(?:$|[^\\d])`);y("COERCERTL",d[h.COERCE],!0);y("COERCERTLFULL",d[h.COERCEFULL],!0);y("LONETILDE","(?:~>?)");y("TILDETRIM",`(\\s*)${d[h.LONETILDE]}\\s+`,!0);L.tildeTrimReplace="$1~";y("TILDE",`^${d[h.LONETILDE]}${d[h.XRANGEPLAIN]}$`);y("TILDELOOSE",`^${d[h.LONETILDE]}${d[h.XRANGEPLAINLOOSE]}$`);y("LONECARET","(?:\\^)");y("CARETTRIM",`(\\s*)${d[h.LONECARET]}\\s+`,!0);L.caretTrimReplace="$1^";y("CARET",`^${d[h.LONECARET]}${d[h.XRANGEPLAIN]}$`);y("CARETLOOSE",`^${d[h.LONECARET]}${d[h.XRANGEPLAINLOOSE]}$`);y("COMPARATORLOOSE",`^${d[h.GTLT]}\\s*(${d[h.LOOSEPLAIN]})$|^$`);y("COMPARATOR",`^${d[h.GTLT]}\\s*(${d[h.FULLPLAIN]})$|^$`);y("COMPARATORTRIM",`(\\s*)${d[h.GTLT]}\\s*(${d[h.LOOSEPLAIN]}|${d[h.XRANGEPLAIN]})`,!0);L.comparatorTrimReplace="$1$2$3";y("HYPHENRANGE",`^\\s*(${d[h.XRANGEPLAIN]})\\s+-\\s+(${d[h.XRANGEPLAIN]})\\s*$`);y("HYPHENRANGELOOSE",`^\\s*(${d[h.XRANGEPLAINLOOSE]})\\s+-\\s+(${d[h.XRANGEPLAINLOOSE]})\\s*$`);y("STAR","(<|>)?=?\\s*\\*");y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var be=f((Df,rn)=>{i();var qi=Object.freeze({loose:!0}),xi=Object.freeze({}),Ci=r=>r?typeof r!="object"?qi:r:xi;rn.exports=Ci});var gr=f((Gf,sn)=>{i();var tn=/^[0-9]+$/,nn=(r,e)=>{let t=tn.test(r),n=tn.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},Di=(r,e)=>nn(e,r);sn.exports={compareIdentifiers:nn,rcompareIdentifiers:Di}});var b=f((Uf,ln)=>{i();var Re=K(),{MAX_LENGTH:on,MAX_SAFE_INTEGER:_e}=W(),{safeRe:an,t:un}=M(),ji=be(),{compareIdentifiers:U}=gr(),Er=class r{constructor(e,t){if(t=ji(t),e instanceof r){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>on)throw new TypeError(`version is longer than ${on} characters`);Re("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?an[un.LOOSE]:an[un.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>_e||this.major<0)throw new TypeError("Invalid major version");if(this.minor>_e||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>_e||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&o<_e)return o}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Re("SemVer.compare",this.version,this.options,e),!(e instanceof r)){if(typeof e=="string"&&e===this.version)return 0;e=new r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof r||(e=new r(e,this.options)),U(this.major,e.major)||U(this.minor,e.minor)||U(this.patch,e.patch)}comparePre(e){if(e instanceof r||(e=new r(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(Re("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return U(n,s)}while(++t)}compareBuild(e){e instanceof r||(e=new r(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(Re("build compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return U(n,s)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(t){let o=[t,s];n===!1&&(o=[t]),U(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};ln.exports=Er});var x=f((Xf,fn)=>{i();var cn=b(),Gi=(r,e,t=!1)=>{if(r instanceof cn)return r;try{return new cn(r,e)}catch(n){if(!t)return null;throw n}};fn.exports=Gi});var dn=f((Hf,pn)=>{i();var Mi=x(),Ui=(r,e)=>{let t=Mi(r,e);return t?t.version:null};pn.exports=Ui});var gn=f((Bf,hn)=>{i();var ki=x(),Xi=(r,e)=>{let t=ki(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};hn.exports=Xi});var yn=f((zf,mn)=>{i();var En=b(),Fi=(r,e,t,n,s)=>{typeof t=="string"&&(s=n,n=t,t=void 0);try{return new En(r instanceof En?r.version:r,t).inc(e,n,s).version}catch{return null}};mn.exports=Fi});var bn=f((Kf,vn)=>{i();var On=x(),Hi=(r,e)=>{let t=On(r,null,!0),n=On(e,null,!0),s=t.compare(n);if(s===0)return null;let o=s>0,a=o?t:n,c=o?n:t,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l)return!c.patch&&!c.minor?"major":a.patch?"patch":a.minor?"minor":"major";let u=l?"pre":"";return t.major!==n.major?u+"major":t.minor!==n.minor?u+"minor":t.patch!==n.patch?u+"patch":"prerelease"};vn.exports=Hi});var _n=f((Zf,Rn)=>{i();var Vi=b(),Bi=(r,e)=>new Vi(r,e).major;Rn.exports=Bi});var Pn=f((ep,wn)=>{i();var Yi=b(),zi=(r,e)=>new Yi(r,e).minor;wn.exports=zi});var An=f((tp,$n)=>{i();var Wi=b(),Ki=(r,e)=>new Wi(r,e).patch;$n.exports=Ki});var Tn=f((sp,Nn)=>{i();var Ji=x(),Zi=(r,e)=>{let t=Ji(r,e);return t&&t.prerelease.length?t.prerelease:null};Nn.exports=Zi});var $=f((ip,Sn)=>{i();var Ln=b(),Qi=(r,e,t)=>new Ln(r,t).compare(new Ln(e,t));Sn.exports=Qi});var qn=f((up,In)=>{i();var ea=$(),ra=(r,e,t)=>ea(e,r,t);In.exports=ra});var Cn=f((cp,xn)=>{i();var ta=$(),na=(r,e)=>ta(r,e,!0);xn.exports=na});var we=f((pp,jn)=>{i();var Dn=b(),sa=(r,e,t)=>{let n=new Dn(r,t),s=new Dn(e,t);return n.compare(s)||n.compareBuild(s)};jn.exports=sa});var Mn=f((hp,Gn)=>{i();var oa=we(),ia=(r,e)=>r.sort((t,n)=>oa(t,n,e));Gn.exports=ia});var kn=f((Ep,Un)=>{i();var aa=we(),ua=(r,e)=>r.sort((t,n)=>aa(n,t,e));Un.exports=ua});var J=f((yp,Xn)=>{i();var la=$(),ca=(r,e,t)=>la(r,e,t)>0;Xn.exports=ca});var Pe=f((vp,Fn)=>{i();var fa=$(),pa=(r,e,t)=>fa(r,e,t)<0;Fn.exports=pa});var mr=f((Rp,Hn)=>{i();var da=$(),ha=(r,e,t)=>da(r,e,t)===0;Hn.exports=ha});var yr=f((wp,Vn)=>{i();var ga=$(),Ea=(r,e,t)=>ga(r,e,t)!==0;Vn.exports=Ea});var $e=f(($p,Bn)=>{i();var ma=$(),ya=(r,e,t)=>ma(r,e,t)>=0;Bn.exports=ya});var Ae=f((Np,Yn)=>{i();var Oa=$(),va=(r,e,t)=>Oa(r,e,t)<=0;Yn.exports=va});var Or=f((Lp,zn)=>{i();var ba=mr(),Ra=yr(),_a=J(),wa=$e(),Pa=Pe(),$a=Ae(),Aa=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return ba(r,t,n);case"!=":return Ra(r,t,n);case">":return _a(r,t,n);case">=":return wa(r,t,n);case"<":return Pa(r,t,n);case"<=":return $a(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};zn.exports=Aa});var Kn=f((Ip,Wn)=>{i();var Na=b(),Ta=x(),{safeRe:Ne,t:Te}=M(),La=(r,e)=>{if(r instanceof Na)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(e.includePrerelease?Ne[Te.COERCEFULL]:Ne[Te.COERCE]);else{let l=e.includePrerelease?Ne[Te.COERCERTLFULL]:Ne[Te.COERCERTL],E;for(;(E=l.exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||E.index+E[0].length!==t.index+t[0].length)&&(t=E),l.lastIndex=E.index+E[1].length+E[2].length;l.lastIndex=-1}if(t===null)return null;let n=t[2],s=t[3]||"0",o=t[4]||"0",a=e.includePrerelease&&t[5]?`-${t[5]}`:"",c=e.includePrerelease&&t[6]?`+${t[6]}`:"";return Ta(`${n}.${s}.${o}${a}${c}`,e)};Wn.exports=La});var Zn=f((xp,Jn)=>{i();var vr=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,t)}return this}};Jn.exports=vr});var A=f((Dp,ts)=>{i();var Sa=/\s+/g,br=class r{constructor(e,t){if(t=qa(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof Rr)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(Sa," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!es(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&Ua(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&Ga)|(this.options.loose&&Ma))+":"+e,s=Qn.get(n);if(s)return s;let o=this.options.loose,a=o?P[R.HYPHENRANGELOOSE]:P[R.HYPHENRANGE];e=e.replace(a,Ka(this.options.includePrerelease)),v("hyphen replace",e),e=e.replace(P[R.COMPARATORTRIM],Ca),v("comparator trim",e),e=e.replace(P[R.TILDETRIM],Da),v("tilde trim",e),e=e.replace(P[R.CARETTRIM],ja),v("caret trim",e);let c=e.split(" ").map(p=>ka(p,this.options)).join(" ").split(/\s+/).map(p=>Wa(p,this.options));o&&(c=c.filter(p=>(v("loose invalid filter",p,this.options),!!p.match(P[R.COMPARATORLOOSE])))),v("range list",c);let l=new Map,E=c.map(p=>new Rr(p,this.options));for(let p of E){if(es(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let u=[...l.values()];return Qn.set(n,u),u}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>rs(n,t)&&e.set.some(s=>rs(s,t)&&n.every(o=>s.every(a=>o.intersects(a,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new xa(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Ja(this.set[t],e,this.options))return!0;return!1}};ts.exports=br;var Ia=Zn(),Qn=new Ia,qa=be(),Rr=Z(),v=K(),xa=b(),{safeRe:P,t:R,comparatorTrimReplace:Ca,tildeTrimReplace:Da,caretTrimReplace:ja}=M(),{FLAG_INCLUDE_PRERELEASE:Ga,FLAG_LOOSE:Ma}=W(),es=r=>r.value==="<0.0.0-0",Ua=r=>r.value==="",rs=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(o=>s.intersects(o,e)),s=n.pop();return t},ka=(r,e)=>(v("comp",r,e),r=Ha(r,e),v("caret",r),r=Xa(r,e),v("tildes",r),r=Ba(r,e),v("xrange",r),r=za(r,e),v("stars",r),r),_=r=>!r||r.toLowerCase()==="x"||r==="*",Xa=(r,e)=>r.trim().split(/\s+/).map(t=>Fa(t,e)).join(" "),Fa=(r,e)=>{let t=e.loose?P[R.TILDELOOSE]:P[R.TILDE];return r.replace(t,(n,s,o,a,c)=>{v("tilde",r,n,s,o,a,c);let l;return _(s)?l="":_(o)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:_(a)?l=`>=${s}.${o}.0 <${s}.${+o+1}.0-0`:c?(v("replaceTilde pr",c),l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):l=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,v("tilde return",l),l})},Ha=(r,e)=>r.trim().split(/\s+/).map(t=>Va(t,e)).join(" "),Va=(r,e)=>{v("caret",r,e);let t=e.loose?P[R.CARETLOOSE]:P[R.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,o,a,c,l)=>{v("caret",r,s,o,a,c,l);let E;return _(o)?E="":_(a)?E=`>=${o}.0.0${n} <${+o+1}.0.0-0`:_(c)?o==="0"?E=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:E=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(v("replaceCaret pr",l),o==="0"?a==="0"?E=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:E=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:E=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(v("no pr"),o==="0"?a==="0"?E=`>=${o}.${a}.${c}${n} <${o}.${a}.${+c+1}-0`:E=`>=${o}.${a}.${c}${n} <${o}.${+a+1}.0-0`:E=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),v("caret return",E),E})},Ba=(r,e)=>(v("replaceXRanges",r,e),r.split(/\s+/).map(t=>Ya(t,e)).join(" ")),Ya=(r,e)=>{r=r.trim();let t=e.loose?P[R.XRANGELOOSE]:P[R.XRANGE];return r.replace(t,(n,s,o,a,c,l)=>{v("xRange",r,n,s,o,a,c,l);let E=_(o),u=E||_(a),p=u||_(c),m=p;return s==="="&&m&&(s=""),l=e.includePrerelease?"-0":"",E?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&m?(u&&(a=0),c=0,s===">"?(s=">=",u?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",u?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):u?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),v("xRange return",n),n})},za=(r,e)=>(v("replaceStars",r,e),r.trim().replace(P[R.STAR],"")),Wa=(r,e)=>(v("replaceGTE0",r,e),r.trim().replace(P[e.includePrerelease?R.GTE0PRE:R.GTE0],"")),Ka=r=>(e,t,n,s,o,a,c,l,E,u,p,m)=>(_(n)?t="":_(s)?t=`>=${n}.0.0${r?"-0":""}`:_(o)?t=`>=${n}.${s}.0${r?"-0":""}`:a?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,_(E)?l="":_(u)?l=`<${+E+1}.0.0-0`:_(p)?l=`<${E}.${+u+1}.0-0`:m?l=`<=${E}.${u}.${p}-${m}`:r?l=`<${E}.${u}.${+p+1}-0`:l=`<=${l}`,`${t} ${l}`.trim()),Ja=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(v(r[n].semver),r[n].semver!==Rr.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var Z=f((Gp,us)=>{i();var Q=Symbol("SemVer ANY"),Pr=class r{static get ANY(){return Q}constructor(e,t){if(t=ns(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),wr("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Q?this.value="":this.value=this.operator+this.semver.version,wr("comp",this)}parse(e){let t=this.options.loose?ss[os.COMPARATORLOOSE]:ss[os.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new is(n[2],this.options.loose):this.semver=Q}toString(){return this.value}test(e){if(wr("Comparator.test",e,this.options.loose),this.semver===Q||e===Q)return!0;if(typeof e=="string")try{e=new is(e,this.options)}catch{return!1}return _r(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new as(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new as(this.value,t).test(e.semver):(t=ns(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||_r(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||_r(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};us.exports=Pr;var ns=be(),{safeRe:ss,t:os}=M(),_r=Or(),wr=K(),is=b(),as=A()});var ee=f((Up,ls)=>{i();var Za=A(),Qa=(r,e,t)=>{try{e=new Za(e,t)}catch{return!1}return e.test(r)};ls.exports=Qa});var fs=f((Xp,cs)=>{i();var eu=A(),ru=(r,e)=>new eu(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));cs.exports=ru});var ds=f((Hp,ps)=>{i();var tu=b(),nu=A(),su=(r,e,t)=>{let n=null,s=null,o=null;try{o=new nu(e,t)}catch{return null}return r.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new tu(n,t))}),n};ps.exports=su});var gs=f((Bp,hs)=>{i();var ou=b(),iu=A(),au=(r,e,t)=>{let n=null,s=null,o=null;try{o=new iu(e,t)}catch{return null}return r.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new ou(n,t))}),n};hs.exports=au});var ys=f((zp,ms)=>{i();var $r=b(),uu=A(),Es=J(),lu=(r,e)=>{r=new uu(r,e);let t=new $r("0.0.0");if(r.test(t)||(t=new $r("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){let s=r.set[n],o=null;s.forEach(a=>{let c=new $r(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||Es(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!t||Es(t,o))&&(t=o)}return t&&r.test(t)?t:null};ms.exports=lu});var vs=f((Kp,Os)=>{i();var cu=A(),fu=(r,e)=>{try{return new cu(r,e).range||"*"}catch{return null}};Os.exports=fu});var Le=f((Zp,ws)=>{i();var pu=b(),_s=Z(),{ANY:du}=_s,hu=A(),gu=ee(),bs=J(),Rs=Pe(),Eu=Ae(),mu=$e(),yu=(r,e,t,n)=>{r=new pu(r,n),e=new hu(e,n);let s,o,a,c,l;switch(t){case">":s=bs,o=Eu,a=Rs,c=">",l=">=";break;case"<":s=Rs,o=mu,a=bs,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(gu(r,e,n))return!1;for(let E=0;E<e.set.length;++E){let u=e.set[E],p=null,m=null;if(u.forEach(g=>{g.semver===du&&(g=new _s(">=0.0.0")),p=p||g,m=m||g,s(g.semver,p.semver,n)?p=g:a(g.semver,m.semver,n)&&(m=g)}),p.operator===c||p.operator===l||(!m.operator||m.operator===c)&&o(r,m.semver))return!1;if(m.operator===l&&a(r,m.semver))return!1}return!0};ws.exports=yu});var $s=f((ed,Ps)=>{i();var Ou=Le(),vu=(r,e,t)=>Ou(r,e,">",t);Ps.exports=vu});var Ns=f((td,As)=>{i();var bu=Le(),Ru=(r,e,t)=>bu(r,e,"<",t);As.exports=Ru});var Ss=f((sd,Ls)=>{i();var Ts=A(),_u=(r,e,t)=>(r=new Ts(r,t),e=new Ts(e,t),r.intersects(e,t));Ls.exports=_u});var qs=f((id,Is)=>{i();var wu=ee(),Pu=$();Is.exports=(r,e,t)=>{let n=[],s=null,o=null,a=r.sort((u,p)=>Pu(u,p,t));for(let u of a)wu(u,e,t)?(o=u,s||(s=u)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[u,p]of n)u===p?c.push(u):!p&&u===a[0]?c.push("*"):p?u===a[0]?c.push(`<=${p}`):c.push(`${u} - ${p}`):c.push(`>=${u}`);let l=c.join(" || "),E=typeof e.raw=="string"?e.raw:String(e);return l.length<E.length?l:e}});var Ms=f((ud,Gs)=>{i();var xs=A(),Nr=Z(),{ANY:Ar}=Nr,re=ee(),Tr=$(),$u=(r,e,t={})=>{if(r===e)return!0;r=new xs(r,t),e=new xs(e,t);let n=!1;e:for(let s of r.set){for(let o of e.set){let a=Nu(s,o,t);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},Au=[new Nr(">=0.0.0-0")],Cs=[new Nr(">=0.0.0")],Nu=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===Ar){if(e.length===1&&e[0].semver===Ar)return!0;t.includePrerelease?r=Au:r=Cs}if(e.length===1&&e[0].semver===Ar){if(t.includePrerelease)return!0;e=Cs}let n=new Set,s,o;for(let g of r)g.operator===">"||g.operator===">="?s=Ds(s,g,t):g.operator==="<"||g.operator==="<="?o=js(o,g,t):n.add(g.semver);if(n.size>1)return null;let a;if(s&&o){if(a=Tr(s.semver,o.semver,t),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let g of n){if(s&&!re(g,String(s),t)||o&&!re(g,String(o),t))return null;for(let O of e)if(!re(g,String(O),t))return!1;return!0}let c,l,E,u,p=o&&!t.includePrerelease&&o.semver.prerelease.length?o.semver:!1,m=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let g of e){if(u=u||g.operator===">"||g.operator===">=",E=E||g.operator==="<"||g.operator==="<=",s){if(m&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===m.major&&g.semver.minor===m.minor&&g.semver.patch===m.patch&&(m=!1),g.operator===">"||g.operator===">="){if(c=Ds(s,g,t),c===g&&c!==s)return!1}else if(s.operator===">="&&!re(s.semver,String(g),t))return!1}if(o){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator==="<"||g.operator==="<="){if(l=js(o,g,t),l===g&&l!==o)return!1}else if(o.operator==="<="&&!re(o.semver,String(g),t))return!1}if(!g.operator&&(o||s)&&a!==0)return!1}return!(s&&E&&!o&&a!==0||o&&u&&!s&&a!==0||m||p)},Ds=(r,e,t)=>{if(!r)return e;let n=Tr(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},js=(r,e,t)=>{if(!r)return e;let n=Tr(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};Gs.exports=$u});var Fs=f((cd,Xs)=>{i();var Lr=M(),Us=W(),Tu=b(),ks=gr(),Lu=x(),Su=dn(),Iu=gn(),qu=yn(),xu=bn(),Cu=_n(),Du=Pn(),ju=An(),Gu=Tn(),Mu=$(),Uu=qn(),ku=Cn(),Xu=we(),Fu=Mn(),Hu=kn(),Vu=J(),Bu=Pe(),Yu=mr(),zu=yr(),Wu=$e(),Ku=Ae(),Ju=Or(),Zu=Kn(),Qu=Z(),el=A(),rl=ee(),tl=fs(),nl=ds(),sl=gs(),ol=ys(),il=vs(),al=Le(),ul=$s(),ll=Ns(),cl=Ss(),fl=qs(),pl=Ms();Xs.exports={parse:Lu,valid:Su,clean:Iu,inc:qu,diff:xu,major:Cu,minor:Du,patch:ju,prerelease:Gu,compare:Mu,rcompare:Uu,compareLoose:ku,compareBuild:Xu,sort:Fu,rsort:Hu,gt:Vu,lt:Bu,eq:Yu,neq:zu,gte:Wu,lte:Ku,cmp:Ju,coerce:Zu,Comparator:Qu,Range:el,satisfies:rl,toComparators:tl,maxSatisfying:nl,minSatisfying:sl,minVersion:ol,validRange:il,outside:al,gtr:ul,ltr:ll,intersects:cl,simplifyRange:fl,subset:pl,SemVer:Tu,re:Lr.re,src:Lr.src,tokens:Lr.t,SEMVER_SPEC_VERSION:Us.SEMVER_SPEC_VERSION,RELEASE_TYPES:Us.RELEASE_TYPES,compareIdentifiers:ks.compareIdentifiers,rcompareIdentifiers:ks.rcompareIdentifiers}});var Vs=f((pd,Hs)=>{"use strict";i();var Sr=class r extends Error{constructor(e){super(r._prepareSuperMessage(e)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,r)}static _prepareSuperMessage(e){try{return JSON.stringify(e)}catch{return String(e)}}},dl=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],Ir=({from:r,seen:e,to_:t,forceEnumerable:n})=>{let s=t||(Array.isArray(r)?[]:{});e.push(r);for(let[o,a]of Object.entries(r))if(typeof a!="function"){if(!a||typeof a!="object"){s[o]=a;continue}if(!e.includes(r[o])){s[o]=Ir({from:r[o],seen:e.slice(),forceEnumerable:n});continue}s[o]="[Circular]"}for(let{property:o,enumerable:a}of dl)typeof r[o]=="string"&&Object.defineProperty(s,o,{value:r[o],enumerable:n?!0:a,configurable:!0,writable:!0});return s},hl=r=>typeof r=="object"&&r!==null?Ir({from:r,seen:[],forceEnumerable:!0}):typeof r=="function"?`[Function: ${r.name||"anonymous"}]`:r,gl=r=>{if(r instanceof Error)return r;if(typeof r=="object"&&r!==null&&!Array.isArray(r)){let e=new Error;return Ir({from:r,seen:[],to_:e}),e}return new Sr(r)};Hs.exports={serializeError:hl,deserializeError:gl}});var Ie=f(Se=>{"use strict";i();Object.defineProperty(Se,"__esModule",{value:!0});Se.default=void 0;var Bs=Vs(),El=ue(),ml=yl(z());function yl(r){return r&&r.__esModule?r:{default:r}}var T=ml.default.child({namespace:"Agent"}),Ol=0,qr=class{constructor(e,t,n,s,o){this.fallbackAgent=s,this.isProxyConfigured=e,this.mustUrlUseProxy=t,this.getUrlProxy=n,this.socketConnectionTimeout=o}addRequest(e,t){let n;if(e.path.startsWith("http://")||e.path.startsWith("https://")?n=e.path:n=this.protocol+"//"+(t.hostname||t.host)+(t.port===80||t.port===443?"":":"+t.port)+e.path,!this.isProxyConfigured()){T.trace({destination:n},"not proxying request; GLOBAL_AGENT.HTTP_PROXY is not configured"),this.fallbackAgent.addRequest(e,t);return}if(!this.mustUrlUseProxy(n)){T.trace({destination:n},"not proxying request; url matches GLOBAL_AGENT.NO_PROXY"),this.fallbackAgent.addRequest(e,t);return}let s=Ol++,o=this.getUrlProxy(n);this.protocol==="http:"&&(e.path=n,o.authorization&&e.setHeader("proxy-authorization","Basic "+Buffer.from(o.authorization).toString("base64"))),T.trace({destination:n,proxy:"http://"+o.hostname+":"+o.port,requestId:s},"proxying request"),e.on("error",c=>{T.error({error:(0,Bs.serializeError)(c)},"request error")}),e.once("response",c=>{T.trace({headers:c.headers,requestId:s,statusCode:c.statusCode},"proxying response")}),e.shouldKeepAlive=!1;let a={host:t.hostname||t.host,port:t.port||80,proxy:o,tls:{}};this.protocol==="https:"&&(a.tls={ca:t.ca,cert:t.cert,ciphers:t.ciphers,clientCertEngine:t.clientCertEngine,crl:t.crl,dhparam:t.dhparam,ecdhCurve:t.ecdhCurve,honorCipherOrder:t.honorCipherOrder,key:t.key,passphrase:t.passphrase,pfx:t.pfx,rejectUnauthorized:t.rejectUnauthorized,secureOptions:t.secureOptions,secureProtocol:t.secureProtocol,servername:t.servername||a.host,sessionIdContext:t.sessionIdContext},typeof process.env.NODE_TLS_REJECT_UNAUTHORIZED=="string"&&(0,El.boolean)(process.env.NODE_TLS_REJECT_UNAUTHORIZED)===!1&&(a.tls.rejectUnauthorized=!1)),this.createConnection(a,(c,l)=>{T.trace({target:a},"connecting"),l&&(l.setTimeout(this.socketConnectionTimeout,()=>{l.destroy()}),l.once("connect",()=>{T.trace({target:a},"connected"),l.setTimeout(0)}),l.once("secureConnect",()=>{T.trace({target:a},"connected (secure)"),l.setTimeout(0)})),c?e.emit("error",c):(T.debug("created socket"),l.on("error",E=>{T.error({error:(0,Bs.serializeError)(E)},"socket error")}),e.onSocket(l))})}},vl=qr;Se.default=vl});var zs=f(qe=>{"use strict";i();Object.defineProperty(qe,"__esModule",{value:!0});qe.default=void 0;var bl=Ys(N("net")),Rl=Ys(Ie());function Ys(r){return r&&r.__esModule?r:{default:r}}var xr=class extends Rl.default{constructor(...e){super(...e),this.protocol="http:",this.defaultPort=80}createConnection(e,t){let n=bl.default.connect(e.proxy.port,e.proxy.hostname);t(null,n)}},_l=xr;qe.default=_l});var Ws=f(xe=>{"use strict";i();Object.defineProperty(xe,"__esModule",{value:!0});xe.default=void 0;var wl=Dr(N("net")),Pl=Dr(N("tls")),$l=Dr(Ie());function Dr(r){return r&&r.__esModule?r:{default:r}}var Cr=class extends $l.default{constructor(...e){super(...e),this.protocol="https:",this.defaultPort=443}createConnection(e,t){let n=wl.default.connect(e.proxy.port,e.proxy.hostname);n.on("error",o=>{t(o)}),n.once("data",()=>{let o=Pl.default.connect({...e.tls,socket:n});t(null,o)});let s="";s+="CONNECT "+e.host+":"+e.port+` HTTP/1.1\r
3
3
  `,s+="Host: "+e.host+":"+e.port+`\r
4
4
  `,e.proxy.authorization&&(s+="Proxy-Authorization: Basic "+Buffer.from(e.proxy.authorization).toString("base64")+`\r
5
5
  `),s+=`\r
6
6
  `,n.write(s)}},Al=Cr;xe.default=Al});var Ks=f(te=>{"use strict";i();Object.defineProperty(te,"__esModule",{value:!0});Object.defineProperty(te,"Agent",{enumerable:!0,get:function(){return Nl.default}});Object.defineProperty(te,"HttpProxyAgent",{enumerable:!0,get:function(){return Tl.default}});Object.defineProperty(te,"HttpsProxyAgent",{enumerable:!0,get:function(){return Ll.default}});var Nl=jr(Ie()),Tl=jr(zs()),Ll=jr(Ws());function jr(r){return r&&r.__esModule?r:{default:r}}});var Qs=f((Ce,Zs)=>{"use strict";i();Object.defineProperty(Ce,"__esModule",{value:!0});function Sl(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Js(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function Il(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}function ql(r){function e(){r.apply(this,arguments)}return e.prototype=Object.create(r.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r,e}var xl=(function(r){Il(e,r);function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";Sl(this,e);var n=Js(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return Object.defineProperty(n,"message",{configurable:!0,enumerable:!1,value:t,writable:!0}),Object.defineProperty(n,"name",{configurable:!0,enumerable:!1,value:n.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(n,n.constructor),Js(n)):(Object.defineProperty(n,"stack",{configurable:!0,enumerable:!1,value:new Error(t).stack,writable:!0}),n)}return e})(ql(Error));Ce.default=xl;Zs.exports=Ce.default});var je=f(De=>{"use strict";i();Object.defineProperty(De,"__esModule",{value:!0});De.UnexpectedStateError=void 0;var Cl=Dl(Qs());function Dl(r){return r&&r.__esModule?r:{default:r}}var Gr=class extends Cl.default{constructor(e,t="UNEXPECTED_STATE_ERROR"){super(e),this.code=t}};De.UnexpectedStateError=Gr});var ro=f(Ge=>{"use strict";i();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.default=void 0;var jl=eo(N("http")),Gl=eo(N("https"));function eo(r){return r&&r.__esModule?r:{default:r}}var Ml=(r,e,t)=>(...n)=>{let s,o,a;return typeof n[0]=="string"||n[0]instanceof URL?(s=n[0],typeof n[1]=="function"?(o={},a=n[1]):(o={...n[1]},a=n[2])):(o={...n[0]},a=n[1]),t?o.agent=e:(o.agent||(o.agent=e),(o.agent===jl.default.globalAgent||o.agent===Gl.default.globalAgent)&&(o.agent=e)),s?r(s,o,a):r(o,a)},Ul=Ml;Ge.default=Ul});var no=f((Ad,Ur)=>{"use strict";i();var kl=yo(),Mr=new Map;function to(r,e){e={caseSensitive:!1,...e};let t=r+JSON.stringify(e);if(Mr.has(t))return Mr.get(t);let n=r[0]==="!";n&&(r=r.slice(1)),r=kl(r).replace(/\\\*/g,"[\\s\\S]*");let s=new RegExp(`^${r}$`,e.caseSensitive?"":"i");return s.negated=n,Mr.set(t,s),s}Ur.exports=(r,e,t)=>{if(!(Array.isArray(r)&&Array.isArray(e)))throw new TypeError(`Expected two arrays, got ${typeof r} ${typeof e}`);if(e.length===0)return r;let n=e[0][0]==="!";e=e.map(o=>to(o,t));let s=[];for(let o of r){let a=n;for(let c of e)c.test(o)&&(a=!c.negated);a&&s.push(o)}return s};Ur.exports.isMatch=(r,e,t)=>{let n=Array.isArray(r)?r:[r],s=Array.isArray(e)?e:[e];return n.some(o=>s.every(a=>{let c=to(a,t),l=c.test(o);return c.negated?!l:l}))}});var oo=f(Me=>{"use strict";i();Object.defineProperty(Me,"__esModule",{value:!0});Me.default=void 0;var Xl=N("url"),Fl=Hl(no()),so=je();function Hl(r){return r&&r.__esModule?r:{default:r}}var Vl=(r,e)=>{let t=(0,Xl.parse)(r),n=e.split(/[\s,]+/);for(let s of n){let o=s.replace(/^(?<leadingDot>\.)/,"*").match(/^(?<hostname>.+?)(?::(?<port>\d+))?$/);if(!o||!o.groups)throw new so.UnexpectedStateError("Invalid NO_PROXY pattern.");if(!o.groups.hostname)throw new so.UnexpectedStateError("NO_PROXY entry pattern must include hostname. Use * to match any hostname.");if(Fl.default.isMatch(t.hostname,o.groups.hostname)&&(!o.groups||!o.groups.port||t.port&&t.port===o.groups.port))return!0}return!1},Bl=Vl;Me.default=Bl});var io=f(Ue=>{"use strict";i();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.default=void 0;var Yl=N("url"),kr=je(),zl=r=>{let e=(0,Yl.parse)(r);if(e.query!==null)throw new kr.UnexpectedStateError("Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL must not have query.");if(e.hash!==null)throw new kr.UnexpectedStateError("Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL must not have hash.");if(e.protocol!=="http:")throw new kr.UnexpectedStateError('Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL protocol must be "http:".');let t=80;return e.port&&(t=Number.parseInt(e.port,10)),{authorization:e.auth||null,hostname:e.hostname,port:t}},Wl=zl;Ue.default=Wl});var ao=f(ne=>{"use strict";i();Object.defineProperty(ne,"__esModule",{value:!0});Object.defineProperty(ne,"bindHttpMethod",{enumerable:!0,get:function(){return Kl.default}});Object.defineProperty(ne,"isUrlMatchingNoProxy",{enumerable:!0,get:function(){return Jl.default}});Object.defineProperty(ne,"parseProxyUrl",{enumerable:!0,get:function(){return Zl.default}});var Kl=Xr(ro()),Jl=Xr(oo()),Zl=Xr(io());function Xr(r){return r&&r.__esModule?r:{default:r}}});var Fr=f(ke=>{"use strict";i();Object.defineProperty(ke,"__esModule",{value:!0});ke.default=void 0;var Ql=ec(z());function ec(r){return r&&r.__esModule?r:{default:r}}var rc=Ql.default.child({namespace:"createProxyController"}),tc=["HTTP_PROXY","HTTPS_PROXY","NO_PROXY"],nc=()=>new Proxy({HTTP_PROXY:null,HTTPS_PROXY:null,NO_PROXY:null},{set:(r,e,t)=>{if(!tc.includes(e))throw new Error('Cannot set an unmapped property "'+e+'".');return r[e]=t,rc.info({change:{name:e,value:t},newConfiguration:r},"configuration changed"),!0}}),sc=nc;ke.default=sc});var po=f(Xe=>{"use strict";i();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.default=void 0;var X=se(N("http")),F=se(N("https")),oc=ue(),uo=se(Fs()),ic=se(z()),lo=Ks(),ac=je(),k=ao(),uc=se(Fr());function se(r){return r&&r.__esModule?r:{default:r}}var lc=X.default.get,cc=X.default.request,fc=F.default.get,pc=F.default.request,co=ic.default.child({namespace:"createGlobalProxyAgent"}),fo={environmentVariableNamespace:void 0,forceGlobalAgent:void 0,socketConnectionTimeout:6e4},dc=r=>{let e=Object.keys(r),t={};for(let n of e){let s=r[n];s!==void 0&&(t[n]=s)}return t},hc=r=>{let e=process.env;return{...{environmentVariableNamespace:typeof e.GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE=="string"?e.GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE:"GLOBAL_AGENT_",forceGlobalAgent:typeof e.GLOBAL_AGENT_FORCE_GLOBAL_AGENT=="string"?(0,oc.boolean)(e.GLOBAL_AGENT_FORCE_GLOBAL_AGENT):!0,socketConnectionTimeout:typeof e.GLOBAL_AGENT_SOCKET_CONNECTION_TIMEOUT=="string"?Number.parseInt(e.GLOBAL_AGENT_SOCKET_CONNECTION_TIMEOUT,10):fo.socketConnectionTimeout},...dc(r)}},gc=(r=fo)=>{let e=hc(r),t=(0,uc.default)();t.HTTP_PROXY=process.env[e.environmentVariableNamespace+"HTTP_PROXY"]||null,t.HTTPS_PROXY=process.env[e.environmentVariableNamespace+"HTTPS_PROXY"]||null,t.NO_PROXY=process.env[e.environmentVariableNamespace+"NO_PROXY"]||null,co.info({configuration:e,state:t},"global agent has been initialized");let n=p=>m=>p()?t.NO_PROXY?!(0,k.isUrlMatchingNoProxy)(m,t.NO_PROXY):!0:!1,s=p=>()=>{let m=p();if(!m)throw new ac.UnexpectedStateError("HTTP(S) proxy must be configured.");return(0,k.parseProxyUrl)(m)},o=()=>t.HTTP_PROXY,a=class extends lo.HttpProxyAgent{constructor(){super(()=>o(),n(o),s(o),X.default.globalAgent,e.socketConnectionTimeout)}},c=new a,l=()=>t.HTTPS_PROXY||t.HTTP_PROXY,E=class extends lo.HttpsProxyAgent{constructor(){super(()=>l(),n(l),s(l),F.default.globalAgent,e.socketConnectionTimeout)}},u=new E;return uo.default.gte(process.version,"v11.7.0")&&(X.default.globalAgent=c,F.default.globalAgent=u),uo.default.gte(process.version,"v10.0.0")?(X.default.get=(0,k.bindHttpMethod)(lc,c,e.forceGlobalAgent),X.default.request=(0,k.bindHttpMethod)(cc,c,e.forceGlobalAgent),F.default.get=(0,k.bindHttpMethod)(fc,u,e.forceGlobalAgent),F.default.request=(0,k.bindHttpMethod)(pc,u,e.forceGlobalAgent)):co.warn("attempt to initialize global-agent in unsupported Node.js version was ignored"),t},Ec=gc;Xe.default=Ec});var Hr=f(Fe=>{"use strict";i();Object.defineProperty(Fe,"__esModule",{value:!0});Object.defineProperty(Fe,"createGlobalProxyAgent",{enumerable:!0,get:function(){return mc.default}});Object.defineProperty(Fe,"createProxyController",{enumerable:!0,get:function(){return yc.default}});var mc=ho(po()),yc=ho(Fr());function ho(r){return r&&r.__esModule?r:{default:r}}});var go=f(He=>{"use strict";i();Object.defineProperty(He,"__esModule",{value:!0});He.default=void 0;var Oc=bc(z()),vc=Hr();function bc(r){return r&&r.__esModule?r:{default:r}}var Rc=Oc.default.child({namespace:"bootstrap"}),_c=r=>global.GLOBAL_AGENT?(Rc.warn("found global.GLOBAL_AGENT; second attempt to bootstrap global-agent was ignored"),!1):(global.GLOBAL_AGENT=(0,vc.createGlobalProxyAgent)(r),!0),wc=_c;He.default=wc});var Eo=f(Vr=>{"use strict";i();Object.defineProperty(Vr,"__esModule",{value:!0});Object.defineProperty(Vr,"bootstrap",{enumerable:!0,get:function(){return Pc.default}});var Pc=$c(go());function $c(r){return r&&r.__esModule?r:{default:r}}});var Tc=f(Ve=>{"use strict";i();Object.defineProperty(Ve,"__esModule",{value:!0});Object.defineProperty(Ve,"bootstrap",{enumerable:!0,get:function(){return Ac.bootstrap}});Object.defineProperty(Ve,"createGlobalProxyAgent",{enumerable:!0,get:function(){return Nc.createGlobalProxyAgent}});var Ac=Eo(),Nc=Hr()});i();import bo from"fs";function zr(r){let e=r instanceof Error?r.stack??r.message:String(r);bo.writeSync(process.stderr.fd,`${e}
7
- `)}async function Sc(r){try{let{jsonOutputEnabled:e}=await import("./environment-RSUK27TA.js");if(e()){let{handler:n}=await import("./error-H6B5BHYC.js");await n(r);return}let{FatalError:t}=await import("./error-H6B5BHYC.js");if(r instanceof t){let{renderFatalError:n}=await import("./ui-RP6SVJUK.js");n(r)}else zr(r)}catch{zr(r)}}export{Sc as a,Tc as b};
7
+ `)}async function Sc(r){try{let{jsonOutputEnabled:e}=await import("./environment-O7ECODHU.js");if(e()){let{handler:n}=await import("./error-IFB626JA.js");await n(r);return}let{FatalError:t}=await import("./error-IFB626JA.js");if(r instanceof t){let{renderFatalError:n}=await import("./ui-MYUBVKCK.js");n(r)}else zr(r)}catch{zr(r)}}export{Sc as a,Tc as b};
@@ -0,0 +1,4 @@
1
+ import{a as $}from"./chunk-NMLLRFZF.js";import{a as V}from"./chunk-NPB753M3.js";import{a as w}from"./chunk-D4LFWIFE.js";import{L as P,Ma as x}from"./chunk-XV6XCOTG.js";import{e as L}from"./chunk-7AWAOPLA.js";import{b as ae}from"./chunk-HP2ZAAY7.js";import{D,S as T,ea as A,ia as j,u as g}from"./chunk-NCPZVARH.js";import{b as E,c as M}from"./chunk-5AWELO3D.js";import{I as R,J as k,z as O}from"./chunk-V654BMS7.js";import{a as h}from"./chunk-BN7ZXAZJ.js";import{k as I}from"./chunk-J7BTC45S.js";import{qb as p,sb as c,wb as C,yb as v}from"./chunk-RIG66DIQ.js";import{b as m}from"./chunk-FZCGRIOM.js";import{b as te}from"./chunk-YTUUU33R.js";import{e as _,g as r}from"./chunk-VKWPEFWQ.js";r();r();r();var q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metafieldDefinitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownerType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MetafieldOwnerType"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metafieldDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ownerType"},value:{kind:"Variable",name:{kind:"Name",value:"ownerType"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"30"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetafieldForImport"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MetafieldForImport"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MetafieldDefinition"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"access"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"admin"}},{kind:"Field",name:{kind:"Name",value:"storefront"}},{kind:"Field",name:{kind:"Name",value:"customerAccount"}}]}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminFilterable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"validations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]};r();async function de(i){let n="Admin",e=L(i.storeFqdn,"unstable");return{token:i.token,api:n,url:e}}async function U(i){return j({query:i.query,...await de(i.session),variables:i.variables,autoRateLimitRestore:i.autoRateLimitRestore})}r();var K={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metaobjectDefinitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaobjectDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetaobjectForImport"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MetaobjectForImport"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MetaobjectDefinition"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"access"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"admin"}},{kind:"Field",name:{kind:"Name",value:"storefront"}}]}},{kind:"Field",name:{kind:"Name",value:"displayNameKey"}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publishable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"translatable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"renderable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}},{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaTitleKey"}},{kind:"Field",name:{kind:"Name",value:"metaDescriptionKey"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"fieldDefinitions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"required"}},{kind:"Field",name:{kind:"Name",value:"validations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]};var H=_(ae(),1);var oe={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",customer:"CUSTOMER",delivery_customization:"DELIVERY_CUSTOMIZATION",delivery_method:"DELIVERY_METHOD",delivery_option_generator:"DELIVERY_OPTION_GENERATOR",discount:"DISCOUNT",draft_order:"DRAFTORDER",fulfillment_constraint_rule:"FULFILLMENT_CONSTRAINT_RULE",gift_card_transaction:"GIFT_CARD_TRANSACTION",order_routing_location_rule:"ORDER_ROUTING_LOCATION_RULE",payment_customization:"PAYMENT_CUSTOMIZATION",selling_plan:"SELLING_PLAN",shop:"SHOP",validation:"VALIDATION",variant:"PRODUCTVARIANT",cart_transform:"CARTTRANSFORM"};async function B({query:i,session:n,toNodes:e,toVariables:t,performQuery:d=a=>U({query:i,session:n,variables:a,autoRateLimitRestore:!0})}){let a;try{let o=e(await d(t(a))),s=[];for(s.push(...o.nodes);o.pageInfo.hasNextPage;)a=o.pageInfo.endCursor,o=e(await d(t(a))),s.push(...o.nodes);return{status:"ok",items:s}}catch(o){if(o instanceof Error&&o.message.includes("ACCESS_DENIED"))return{status:"scope_error"};throw o}}function G(i,n){let e="";for(let t of i)e=(0,H.updateTomlValues)(e,t);return`# ${n}
2
+ ${e}`}function se(i,n){let e=n.map(fe).map(a=>{switch(a.status){case"ok":{let{typeName:o,patches:s}=a;return G(s,`type: $app:${o}`)}case"not_app_reserved":return null}}).filter(a=>a!==null),t=i.flatMap(({items:a,ownerType:o,graphQLOwner:s})=>a.map(l=>({result:pe(l,o),graphQLOwner:s}))).map(({result:a,graphQLOwner:o})=>{switch(a.status){case"ok":{let{namespace:s,key:l,patches:S}=a;return G(S,`namespace: ${s==="app"?"$app":`$app:${s}`} key: ${l} owner_type: ${o}`)}case"not_app_reserved":return null}}).filter(a=>a!==null);return{tomlContent:[...e,...t].join(`
3
+ `),metafieldCount:t.length,metaobjectCount:e.length}}async function Y(i){let n=await ue(i),e=await le(n),t=await re(n),d=e.nodes,a=t.nodes;i.includeExistingDeclaredDefinitions||(d=me(d,i.appConfiguration),a=ce(a,i.appConfiguration));let{tomlContent:o,metafieldCount:s,metaobjectCount:l}=se(d,a);return{status:"success",storeDomain:n.storeFqdn,metafieldCount:s,metaobjectCount:l,tomlContent:o,skippedSections:[...e.skippedSections,...t.skippedSections]}}async function le(i){let n=[];return await R(Object.entries(oe).map(([e,t])=>({title:c`Loading ${p.green(e)} metafields`,task:async()=>{let d=await B({query:q,session:i,toNodes:a=>a.metafieldDefinitions,toVariables:a=>({ownerType:t,after:a})});n.push({metafields:d,ownerType:e,graphQLOwner:t})}}))),{nodes:n.map(({metafields:e,ownerType:t,graphQLOwner:d})=>e.status==="ok"?{ownerType:t,items:e.items,graphQLOwner:d}:null).filter(e=>e!==null),skippedSections:n.filter(({metafields:e})=>e.status==="scope_error").map(({graphQLOwner:e})=>({type:"metafields",ownerType:e}))}}async function re(i){let n=await k({title:c`Loading ${p.green("metaobjects")}`,task:async()=>B({query:K,session:i,toNodes:e=>e.metaobjectDefinitions,toVariables:e=>({after:e})})});return n.status==="ok"?{nodes:n.items,skippedSections:[]}:{nodes:[],skippedSections:[{type:"metaobjects"}]}}function me(i,n){return i.map(e=>{let t=e.items.filter(d=>!J(n,[e.ownerType,"metafields",f(d.namespace)??"",d.key]));return t.length>0?{...e,items:t}:null}).filter(e=>e!==null)}function ce(i,n){return i.filter(e=>!J(n,["metaobjects","app",f(e.type)??""]))}function J(i,n){let e=i;for(let t of n){if(!e[t])return!1;e=e[t]}return!0}async function ue(i){let{remoteApp:n,store:e}=i,t=n.apiSecretKeys[0]?.secret;if(!t)throw new I("No API secret keys found for app");return await T(e.shopDomain,n.apiKey,t)}function f(i){if(!i.match(/^app--\d+/))return null;let n="app";return i.match(/^app--\d+--/)&&(n=i.replace(/^app--\d+--/,"")),n}function pe(i,n){let e=f(i.namespace);if(!e)return{status:"not_app_reserved"};let t=i.key,d=ke(i),a=be(d,n,e,t);return{status:"ok",key:t,namespace:e,patches:a}}function fe(i){let n=f(i.type);if(!n)return{status:"not_app_reserved"};let e=ve(i,n),t=Ne(e,n);return{status:"ok",typeName:n,patches:t}}function ke(i){let n={name:i.name===i.key?void 0:i.name,type:i.type.name,description:i.description??void 0,capabilities:u({admin_filterable:i.capabilities.adminFilterable.enabled||void 0}),access:u({admin:Z(i.access.admin),storefront:X(i.access.storefront),customer_account:Se(i.access.customerAccount)}),validations:z(i.validations)},{type:e,validations:t}=W(n.type,n.validations);return n.type=e,n.validations=t,n}function ve(i,n){return{name:i.name===n?void 0:i.name,description:i.description??void 0,display_name_field:i.displayNameKey??void 0,access:u({admin:Z(i.access.admin),storefront:X(i.access.storefront)}),capabilities:u({translatable:i.capabilities.translatable.enabled||void 0,publishable:i.capabilities.publishable.enabled||void 0,renderable:i.capabilities.renderable?.enabled||void 0,renderable_meta_title_field:i.capabilities.renderable?.data?.metaTitleKey??void 0,renderable_meta_description_field:i.capabilities.renderable?.data?.metaDescriptionKey??void 0}),fields:Object.fromEntries(i.fieldDefinitions.map(e=>{let t={type:e.type.name,description:e.description??void 0,name:e.name===e.key?void 0:e.name,required:e.required||void 0,validations:z(e.validations)},{type:d,validations:a}=W(t.type,t.validations);return t.type=d,t.validations=a,[e.key,t]}))}}function W(i,n){if(!n)return{type:i,validations:void 0};if(n.metaobject_definition_type&&typeof n.metaobject_definition_type=="string"){let e=f(n.metaobject_definition_type);return{type:`${i}<$app:${e}>`,validations:u({...n,metaobject_definition_type:void 0})}}if(n.metaobject_definition_types&&Array.isArray(n.metaobject_definition_types)&&n.metaobject_definition_types.every(e=>typeof e=="string")){let e=n.metaobject_definition_types.map(t=>f(t));return{type:`${i}<${e.map(t=>`$app:${t}`).join(",")}>`,validations:u({...n,metaobject_definition_types:void 0})}}return{type:i,validations:n}}function z(i){let n=e=>{try{return JSON.parse(e)}catch{return e}};return u(Object.fromEntries(i.filter(e=>e.value!==void 0&&e.name!=="metaobject_definition_id"&&e.name!=="metaobject_definition_ids").map(e=>[e.name,e.value?n(e.value):void 0])))}function be(i,n,e,t){let d=[[[n,"metafields",e,t,"name"],i.name],[[n,"metafields",e,t,"type"],i.type],[[n,"metafields",e,t,"description"],i.description]],a=[[[n,"metafields",e,t,"access","admin"],i.access?.admin],[[n,"metafields",e,t,"access","storefront"],i.access?.storefront],[[n,"metafields",e,t,"access","customer_account"],i.access?.customer_account],[[n,"metafields",e,t,"capabilities","admin_filterable"],i.capabilities?.admin_filterable||void 0]];return i.validations&&Q(i.validations).forEach(({validationKey:s,actualValue:l})=>{d.push([[n,"metafields",e,t,"validations",s],l])}),[b(d),b(a)]}function Ne(i,n){let e=[[["metaobjects","app",n,"name"],i.name===n?void 0:i.name],[["metaobjects","app",n,"description"],i.description],[["metaobjects","app",n,"display_name_field"],i.display_name_field]],t=[[["metaobjects","app",n,"access","admin"],i.access?.admin],[["metaobjects","app",n,"access","storefront"],i.access?.storefront]];return i.capabilities?.translatable&&t.push([["metaobjects","app",n,"capabilities","translatable"],!0]),i.capabilities?.publishable&&t.push([["metaobjects","app",n,"capabilities","publishable"],!0]),i.capabilities?.renderable&&(t.push([["metaobjects","app",n,"capabilities","renderable"],!0]),i.capabilities?.renderable_meta_title_field&&t.push([["metaobjects","app",n,"capabilities","renderable_meta_title_field"],i.capabilities.renderable_meta_title_field]),i.capabilities?.renderable_meta_description_field&&t.push([["metaobjects","app",n,"capabilities","renderable_meta_description_field"],i.capabilities.renderable_meta_description_field])),Object.entries(i.fields).forEach(([d,a])=>{if(typeof a=="string")e.push([["metaobjects","app",n,"fields",d],a]);else{let o=Object.fromEntries(Object.entries(a).filter(([s,l])=>l!==void 0));Object.keys(o).length===1?e.push([["metaobjects","app",n,"fields",d],a.type]):(e.push([["metaobjects","app",n,"fields",d,"type"],a.type]),e.push([["metaobjects","app",n,"fields",d,"description"],a.description]),e.push([["metaobjects","app",n,"fields",d,"name"],a.name]),e.push([["metaobjects","app",n,"fields",d,"required"],a.required||void 0]),a.validations&&Q(a.validations).forEach(({validationKey:l,actualValue:S})=>{e.push([["metaobjects","app",n,"fields",d,"validations",l],S])}))}}),[b(e),b(t)]}function Q(i){return Object.entries(i).map(([n,e])=>{let t;return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||Array.isArray(e)&&e.every(d=>typeof d=="string")?t=e:t=JSON.stringify(e),{validationKey:n,actualValue:t}})}function Z(i){switch(i){case"MERCHANT_READ_WRITE":return"merchant_read_write";case"MERCHANT_READ":case"PRIVATE":case"PUBLIC_READ":case"PUBLIC_READ_WRITE":case null:case void 0:return}}function X(i){switch(i){case"PUBLIC_READ":return"public_read";case"NONE":case null:case void 0:return}}function Se(i){switch(i){case"READ":return"read";case"READ_WRITE":return"read_write";case"NONE":case null:case void 0:return}}function u(i){if(i&&!A(i)&&!(typeof i=="object"&&Object.values(i).every(n=>n===void 0)))return i}function b(i){return i.filter(([n,e])=>e!==void 0)}r();var ee=m.object({type:m.literal("metafields"),ownerType:m.string().min(1).describe("The Admin API metafield owner type, such as PRODUCT.")}).strict(),ie=m.object({type:m.literal("metaobjects")}).strict(),N=h({name:"ImportCustomDataDefinitionsResult",schema:m.object({status:m.literal("success"),storeDomain:m.string().nullable().describe("The full myshopify.com domain of the development store, or null when unavailable."),metafieldCount:m.number().int().nonnegative().describe("The number of available metafields converted to TOML."),metaobjectCount:m.number().int().nonnegative().describe("The number of available metaobjects converted to TOML."),toml:m.string().describe("Suggested native TOML for app-reserved definitions. No file is written."),skippedSections:m.array(m.discriminatedUnion("type",[ee,ie])).describe("Sections skipped because required access scopes are unavailable. An empty array means all requests were authorized.")}).strict(),definitions:{SkippedMetafields:ee,SkippedMetaobjects:ie}});r();function ne({status:i,metafieldCount:n,metaobjectCount:e,storeDomain:t,tomlContent:d,skippedSections:a},o=!1){if(o){let s=D(t);C(N.encode({status:i,storeDomain:s?`${s}.myshopify.com`:null,metafieldCount:n,metaobjectCount:e,toml:d,skippedSections:a.map(l=>l.type==="metafields"?{type:l.type,ownerType:l.ownerType}:{type:l.type})}));return}O({headline:"Conversion to TOML complete.",body:["Converted",{warn:`${n} metafields`},"and",{warn:`${e} metaobjects`},"from",{warn:t},"into TOML, ready for you to copy."],orderedNextSteps:!0,nextSteps:["Review the suggested TOML carefully before applying.",["Missing sections? Make sure your app has the required access scopes to load metafields and metaobjects (e.g.",{command:"read_customers"},"to load customer metafields,",{command:"read_metaobject_definitions"},"to load metaobjects.)"],["Missing definitions? Only metafields and metaobjects that are app-reserved (using",{command:"$app"},") will be converted."],["When you're ready, add the generated TOML to your app's configuration file and test out changes with the",{command:"shopify app dev"},"command."]]}),ye(d)}function ye(i){let n=i.split(`
4
+ `);for(let e of n)e.match(/^\s*\[/)?v(c`${p.green(e)}`):e.match(/^\s*#/)?v(c`${p.gray(e)}`):v(c`${e}`)}var y=_(te(),1);var F=class i extends V{static summary="Import metafield and metaobject definitions.";static descriptionWithMarkdown="Import metafield and metaobject definitions from your development store. [Read more about declarative custom data definitions](https://shopify.dev/docs/apps/build/custom-data/declarative-custom-data-definitions).";static get jsonOutputSchema(){return N}static description=this.descriptionForHelp();static flags={...E,...w,...M,store:y.Flags.string({char:"s",description:"Store URL. Must be an existing development or Shopify Plus sandbox store.",env:"SHOPIFY_FLAG_STORE",parse:async n=>g(n)}),"include-existing":y.Flags.boolean({description:"Include existing declared definitions in the output.",default:!1,env:"SHOPIFY_FLAG_INCLUDE_EXISTING"})};async run(){let{appContextResult:n,json:e,...t}=await k({title:c`Loading application`,task:async()=>{let{flags:a}=await this.parse(i);await P(a.path);let o=await x({directory:a.path,clientId:a["client-id"],forceRelink:a.reset,userProvidedConfigName:a.config}),s=await $({appContextResult:o,storeFqdn:a.store,forceReselectStore:a.reset});return{appContextResult:o,json:a.json,appConfiguration:o.app.configuration,remoteApp:o.remoteApp,store:s,includeExistingDeclaredDefinitions:a["include-existing"]}}}),d=await Y(t);return ne(d,e),{app:n.app}}};export{F as a};
@@ -1,4 +1,4 @@
1
- import{a as s,c as i,d as n}from"./chunk-3N6NKC2U.js";import{b as a,c as r}from"./chunk-SUTVPAJF.js";import{b as e}from"./chunk-DCKRQZLE.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class u extends e{static summary="Check whether auto-upgrade is enabled, disabled, or not yet configured.";static descriptionWithMarkdown=`Check whether auto-upgrade is enabled, disabled, or not yet configured.
1
+ import{a as s,c as i,d as n}from"./chunk-IY5EI5V2.js";import{b as e}from"./chunk-OLKLHVHA.js";import{b as a,c as r}from"./chunk-5AWELO3D.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class u extends e{static summary="Check whether auto-upgrade is enabled, disabled, or not yet configured.";static descriptionWithMarkdown=`Check whether auto-upgrade is enabled, disabled, or not yet configured.
2
2
 
3
3
  When auto-upgrade is enabled, Shopify CLI automatically updates to the latest version after each command.
4
4
 
@@ -0,0 +1 @@
1
+ import{i as t,ka as r}from"./chunk-XV6XCOTG.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function o(i,e,s){return await r(e,s.source),{variables:[{name:"SHOPIFY_API_KEY",value:e.apiKey,isSecret:!1},...e.apiSecretKeys[0]?[{name:"SHOPIFY_API_SECRET",value:e.apiSecretKeys[0].secret,isSecret:!0}]:[],{name:"SCOPES",value:t(i.configuration),isSecret:!1}]}}export{o as a};
@@ -0,0 +1,12 @@
1
+ import{a as Y}from"./chunk-V75WUEFU.js";import{a as u,b as le,c as de}from"./chunk-HB3MJYBK.js";import{a as re}from"./chunk-CKVVJ4XO.js";import{b as ue}from"./chunk-LWMKZJ4M.js";import{D as te,F as ne,J as se,M as ie,O as p,P as j,R as y,S as $,T as R,U as S,V as b,W as oe,Y as C,Z as ce,_ as ae,a as V,d as A,k as l,l as X,m,n as Q,o as _,q as Z,t as ee}from"./chunk-MNWT2SQO.js";import{b as G}from"./chunk-OLKLHVHA.js";import{b as q,c as J}from"./chunk-5AWELO3D.js";import{A as B,B as M,C as H,z as U}from"./chunk-V654BMS7.js";import{a as W}from"./chunk-BN7ZXAZJ.js";import{h as K}from"./chunk-J7BTC45S.js";import{ga as P,wb as z}from"./chunk-RIG66DIQ.js";import{b as s,c as g,d as O}from"./chunk-FZCGRIOM.js";import{b as Be}from"./chunk-YTUUU33R.js";import{e as Ue,g as d}from"./chunk-VKWPEFWQ.js";d();d();var Me={resolveSelection:ne,loadResults:ue,recordMetadata:re};function He(e,t){let n=t.checkIds.length>0?{checkIds:t.checkIds}:null,i=e.sources.deterministic!==null||e.sources.agent!==null;n&&i&&Ge(n.checkIds,e.checks);let o=n?e.checks.filter(r=>n.checkIds.includes(r.id)):e.checks;return{resultsDirectory:t.resultsDirectory,sources:e.sources,allChecks:e.checks,checks:o,filter:n,scopeDiffers:Ke(e.sources),blocking:{level:t.blocking,blockedChecks:ze(o,t.blocking)}}}function Ke({deterministic:e,agent:t}){return!e||!t?!1:JSON.stringify(e.document.coverage.scope)!==JSON.stringify(t.document.scope)}function ze(e,t){return t==="none"?0:e.filter(n=>l(n).length>0&&A[n.severity]>=A[t]).length}function Ge(e,t){let n=new Set(t.map(c=>c.id)),i=e.filter(c=>!n.has(c));if(i.length===0)return;let o=i.length===1?"check ID":"check IDs",r=new K(`Unknown ${o}: ${i.join(", ")}.`,"Pass --check-id with one of the checks in the results files.",[],[{title:"Available check IDs",body:{list:{items:t.map(c=>c.id)}}}]);throw r.code="unknown-check-id",r.details={checkIds:i},r}async function x(e,t=Me){let n=await t.resolveSelection({path:e.directory,config:e.configName,clientId:e.clientId,withoutAppConfig:e.withoutAppConfig,allowPrompts:!1,validateClientIdFlag:!0}),i=await t.loadResults(n,e.directory),o=He(i,{resultsDirectory:ee(n.appDirectory,te(n)).resultsDirectory,checkIds:e.checkIds,blocking:e.blocking});if(o.sources.deterministic!==null||o.sources.agent!==null){let r=o.allChecks.reduce((c,a)=>c+l(a).length,0);await t.recordMetadata({num_security_findings:r})}return{selection:n,result:o,commands:se(n,e.directory,i.sources.deterministic?.document.coverage.scope)}}d();d();var F=()=>g.describe(`${g.description}`),ye=()=>s.enum(["executed","not-applicable","unresolved"]),pe=()=>s.enum(["union","prefer-agent"]),T=s.object({filePath:p().describe("The absolute path of the file."),line:s.number().int().positive().nullable().describe("The one-based line, or null for the whole file."),column:s.number().int().positive().nullable().describe("The one-based column, or null when none is recorded.")}).strict().describe("A place in a file."),Se=s.object({location:T,quote:s.string().min(1).nullable().describe("The quoted source, redacted, or null when none is recorded.")}).strict().describe("Source that supports a finding."),ve=()=>({disposition:s.enum(["active","suppressed","superseded"]).describe("Whether the finding counts: active; suppressed by the agent; or superseded, a deterministic finding that a check's prefer-agent agent result replaces."),location:T,message:s.string().describe("What the finding is, redacted."),snippet:s.string().min(1).nullable().describe("The flagged code, redacted, or null when none is recorded."),evidence:s.array(Se)}),ke=s.object({source:s.literal("deterministic"),...ve(),fix:s.object({description:s.string(),guide:s.string().min(1).nullable().describe("A guide to the fix, or null when none is recorded."),automated:s.boolean().describe("Whether the fix can be applied automatically.")}).strict().nullable().describe("How to fix the finding, or null when none is recorded.")}).strict().describe("A finding from deterministic-findings.json."),we=s.object({source:s.literal("agent"),...ve(),confidence:s.enum(["high","medium","low"]).nullable().describe("The agent's confidence, or null when it didn't report one."),reasoning:s.string().min(1).nullable().describe("The agent's reasoning, redacted, or null when none is recorded."),suppression:s.object({justification:s.string()}).strict().nullable().describe("Why the agent suppressed the finding, or null when it is not suppressed.")}).strict().describe("A finding from agent-findings.json."),Ae=s.discriminatedUnion("source",[ke,we]),D=s.object({version:s.number().int().positive().describe("The check version: the catalog version for deterministic results, the one the agent claimed for agent results."),status:ye().describe("The source's own status for the check."),reason:s.object({code:s.string().describe("A short code. Agent codes are free-form. Deterministic codes: capability_absent, no_relevant_files, unsupported_framework, unsupported_language, parser_unavailable, agent_investigation_required, input_rejected."),message:s.string()}).strict().nullable().describe("Why the check is unresolved or not applicable, or null when none is recorded."),analysisMode:s.enum(["regex","structured-config","ast"]).nullable().describe("How the deterministic check analyzed the files. Null for agent results."),generatedAt:F().nullable().describe("When the source recorded the check, or null when the recorded time is not a valid instant.")}).strict().describe("One source's own result for a check."),he=s.object({id:s.string().describe("The check ID, such as CREDENTIAL_LOG_LEAKAGE."),title:s.string(),severity:s.enum(["high","medium","low"]),description:s.string(),guide:s.string().min(1).nullable().describe("A guide to the check, or null when none is recorded."),docsUrl:s.string().url().nullable().describe("The check's page on shopify.dev, or null when the results files predate it."),precedence:pe().describe("How the sources combine: union keeps both sources' findings; prefer-agent lets the agent result replace the deterministic one."),appliedPrecedence:pe().describe("The precedence that applied: union when a prefer-agent agent result is older than the deterministic one."),status:ye().describe("The combined status. Under union, executed when either source executed the check."),bySource:s.object({deterministic:D.nullable(),agent:D.nullable()}).strict().describe("Each source's own result, or null when that source didn't record the check."),findings:s.array(Ae).describe("Every finding of both sources, including suppressed and superseded ones, whatever --verbose. Sorted by file, line, then source.")}).strict().describe("One check, combined from both results files."),fe=s.object({framework:s.enum(["react-router","none","unknown","mixed"]),surface:s.enum(["react-router","theme-app-extension","config-only","unknown","mixed"]),languages:s.array(s.object({name:s.string().describe("The language, such as typescript."),support:s.enum(["supported","unsupported"]).describe("Whether the deterministic checks analyze it."),files:s.array(s.object({path:p()}).strict())}).strict())}).strict().describe("What the latest check detected in the app."),ge=s.object({filesScanned:s.number().int().nonnegative().describe("The number of files scanned."),filesSkipped:s.array(s.object({path:p(),reason:s.enum(["too-large","unreadable"]),sizeBytes:s.number().int().nonnegative().nullable().describe("The file size, or null when unknown."),detail:s.string().min(1).nullable().describe("Why the file was unreadable, or null when none is recorded.")}).strict()),gaps:s.array(s.object({code:s.enum(["skipped-file","unsupported-framework","unsupported-language","unresolved-check"]),message:s.string(),checkId:s.string().nullable().describe("The check that the gap concerns, or null."),filePath:p().nullable().describe("The file that the gap concerns, or null.")}).strict()),scanDirectories:s.array($)}).strict().describe("What the latest check covered."),me=s.object({path:p().describe("The absolute path of deterministic-findings.json."),generatedAt:F().nullable().describe("When check wrote the file, or null when the recorded time is not a valid instant."),engine:s.object({name:s.string(),version:s.string(),ruleset:s.string()}).strict(),scope:y}).strict().describe("deterministic-findings.json, which check writes, with the scope of the scan."),be=s.object({path:p().describe("The absolute path of agent-findings.json."),generatedAt:F().nullable().describe("When record wrote the file, or null when the recorded time is not a valid instant."),engine:s.object({name:s.string(),version:s.string()}).strict(),scope:y}).strict().describe("agent-findings.json, which record writes, with the scope that the agent reported."),v=W({name:"AppSecurityReviewResult",schema:s.object({status:s.literal("success"),valid:s.boolean().describe("Whether --blocking passed: no check in checks has an active finding and a severity at or above the level. Unresolved checks never fail it, and --blocking none always passes."),app:j,resultsDirectory:p().describe("The absolute path of the results directory."),resultsFiles:s.object({deterministic:me.nullable(),agent:be.nullable()}).strict().describe("The results files that the review combines. Null when a file does not exist."),detection:fe.nullable().describe("What the latest check detected in the app, or null without deterministic-findings.json."),coverage:ge.nullable().describe("What the latest check covered, or null without deterministic-findings.json."),scopeDiffers:s.boolean().describe("Whether the agent reported another scope than the latest scan used. False unless both results files exist."),checks:s.array(he).describe("The checks after --check-id, most severe first, then by ID. Empty when no results file exists."),blocking:R}).strict().describe("The combined results of the app security check."),definitions:{AppSecurityApp:j,AppSecurityScope:y,AppSecurityScanDirectory:$,AppSecurityBlocking:R,AppSecurityDeterministicResultsFile:me,AppSecurityAgentResultsFile:be,AppSecurityDetection:fe,AppSecurityCoverage:ge,AppSecurityCheck:he,AppSecuritySourceResult:D,AppSecurityFinding:Ae,AppSecurityDeterministicFinding:ke,AppSecurityAgentFinding:we,AppSecurityLocation:T,AppSecurityEvidence:Se}});d();var Re={high:"High",medium:"Medium",low:"Low"},qe={executed:"passed",not_applicable:"not applicable",unresolved:"unresolved"},Je={executed:"executed",not_applicable:"not applicable",unresolved:"unresolved"},k=["deterministic","agent"],Ye={deterministic:"deterministic-findings.json",agent:"agent-findings.json"},_e=3,Ve="Agent findings were recorded for a different scope than the latest scan.",Ce="agent result stale",Xe="The agent result is older than the deterministic result, so both are shown.",Qe={info:U,success:B,warning:M,error:H};function xe(e){for(let t of Ze(e))Qe[t.type](t.options)}function Ze(e){let{checks:t}=e.result,n=t.filter(r=>r.status==="unresolved"&&l(r).length===0),i=t.filter(r=>r.status!=="unresolved"&&l(r).length===0),o=t.filter(r=>l(r).length>0);return[...n.length>0?[ht(n,e.verbose)]:[],...i.length>0?[ft(i,e.verbose)]:[],...o.map(r=>mt(r,e.verbose,e.now)),dt(et(e))]}function et(e){let{result:t}=e,n=t.sources.deterministic!==null||t.sources.agent!==null,i=_(t.checks),o=t.sources.deterministic?.document,r=t.blocking.blockedChecks>0,c=t.checks.filter(m).length;return{type:nt(t.checks,i,n),headline:st(t.checks,i,n),...t.filter&&n?{filterLine:`Showing ${t.checks.length} of ${t.allChecks.length} checks (--check-id).`}:{},checksWithFindings:t.checks.filter(a=>l(a).length>0).map(it),otherChecks:ot(i),...c>0?{staleAgentResults:tt(c)}:{},...o?{coverage:ct(o)}:{},scopeLines:at(t.sources),...t.scopeDiffers?{scopeNote:Ve}:{},resultsFiles:{directory:t.resultsDirectory,rows:k.map(a=>ut(a,t.sources[a]?.document,e.now))},...r?{blocking:`${u(t.blocking.blockedChecks,"check")} at or above ${t.blocking.level} (--blocking ${t.blocking.level}).`}:{nextSteps:lt(t,i,n,c,e.commands)}}}function tt(e){let t=e===1?"shows":"show";return`${u(e,"check")} ${t} both sources because the agent results are older than the deterministic results.`}function nt(e,t,n){return n?e.some(i=>i.severity==="high"&&l(i).length>0)?"error":t.withFindings>0||t.unresolved>0?"warning":"success":"info"}function st(e,t,n){if(!n)return"No app security check results to review.";if(t.withFindings===0)return`No findings in ${u(e.length,"check")}.`;let i=t.unresolved>0?` ${u(t.unresolved,"check")} unresolved.`:"";return`${le(t)}.${i}`}function it(e){return{severity:Re[e.severity],id:e.id,counts:rt(e)}}function rt(e){let t=l(e);return k.map(n=>[n,t.filter(i=>i.source===n).length]).filter(([,n])=>n>0).map(([n,i])=>`${i} ${n}`).join(", ")}function ot(e){return[w(de(e)),De(e)].filter(t=>t!=="")}function De(e){return w([e.suppressed>0?`${u(e.suppressed,"finding")} suppressed`:void 0,e.superseded>0?`${u(e.superseded,"finding")} superseded`:void 0])}function E(e){return De(_([e]))}function w(e){return e.filter(t=>t!==void 0).join(" \xB7 ")}function ct(e){let t=e.coverage.files_skipped,{too_large:n,unreadable:i}=Z(t),o=[n>0?`${n} too large`:void 0,i>0?`${i} unreadable`:void 0].filter(h=>h!==void 0),r=t.length===0?"none skipped":`${t.length} skipped (${o.join(", ")})`,c=e.detection.languages.filter(h=>h.support==="unsupported"),a=c.length===0?"":` Unsupported ${c.length===1?"language":"languages"}: ${c.map(h=>`${h.name} (${u(h.files.length,"file")})`).join(", ")}.`;return`Deterministic coverage: ${u(e.coverage.files_scanned,"file")} scanned, ${r}.${a}`}function je(e){let t=[...e.include_dirs.map(n=>`--include-dir ${n}`),...e.excludes.map(n=>`--exclude ${n}`),...e.no_git_ignore?["--no-git-ignore"]:[]];return t.length===0?"none":t.join(" ")}function at({deterministic:e,agent:t}){return[...e?[`Scan directories: ${e.document.coverage.scan_directories.map(({directory:n})=>n).join(", ")}`,`Scan scope: ${je(e.document.coverage.scope)}`]:[],...t?[`Scope reported by the agent: ${je(t.document.scope)}`]:[]]}function ut(e,t,n){let i=Ye[e];return t?{name:i,updated:Fe(t.generated_at,n),engine:t.engine.version}:{name:i,updated:"not found"}}function Fe(e,t){let n=Date.parse(e);return Number.isNaN(n)?"unknown":P(new Date(n),t)}function lt(e,t,n,i,o){let r={command:ie(o.scan)};if(!n)return[["Run",r,"or have your coding agent run it."]];let c=[];if(t.withFindings>0){let a=["Fix the issues, then run",r,"again."];e.sources.agent===null?c.push(a,"For a deeper review, have your agent run the same command and record its findings."):i>0?c.push(a):c.push([...a,"To refresh agent findings, have your agent run the command and record its findings."])}return i>0?c.push(["Agent results are older than the deterministic results. Have your coding agent run",r,"and record its findings again to refresh them."]):t.withFindings===0&&e.sources.agent===null&&c.push(["For a deeper review, have your coding agent run",r,{char:"."}]),c}function dt(e){let t=[];return e.filterLine&&t.push({body:{subdued:e.filterLine}}),e.checksWithFindings.length>0&&t.push({title:"Checks with findings",body:{tabularData:e.checksWithFindings.map(n=>[n.severity,n.id,n.counts]),firstColumnSubdued:!0}}),e.otherChecks.length>0&&t.push({title:"Other checks",body:e.otherChecks.join(`
2
+ `)}),e.staleAgentResults&&t.push({body:e.staleAgentResults}),e.coverage&&t.push({body:{subdued:e.coverage}}),e.scopeLines.length>0&&t.push({body:{subdued:e.scopeLines.join(`
3
+ `)}}),e.scopeNote&&t.push({body:e.scopeNote}),t.push({title:`Results files in ${e.resultsFiles.directory}`,body:{tabularData:[["",{subdued:"Updated"},{subdued:"Engine"}],...e.resultsFiles.rows.map(pt)]}}),e.blocking===void 0?e.nextSteps.length>0&&t.push({title:"Next steps",body:{list:{items:e.nextSteps}}}):t.push({title:"Blocking",body:e.blocking}),{type:e.type,options:{headline:e.headline,customSections:t}}}function pt(e){return e.engine===void 0?[e.name,{subdued:e.updated}]:[e.name,e.updated,e.engine]}function ht(e,t){return{type:"warning",options:{headline:`${u(e.length,"check")} unresolved.`,customSections:e.flatMap(n=>[{title:`${n.id} \xB7 ${n.title}`,body:{tabularData:Te(n,{withDispositions:!0}),firstColumnSubdued:!0}},...t?n.findings.map(i=>I(i,t,`${n.id} \xB7 `)):[]])}}}function ft(e,t){let n=e.filter(X).length,i=e.length-n;return{type:"info",options:{headline:[n>0?`${u(n,"check")} passed.`:void 0,i>0?`${u(i,"check")} not applicable.`:void 0].filter(r=>r!==void 0).join(" "),customSections:[{body:{tabularData:e.map(gt)}},...t?e.flatMap(r=>r.findings.map(c=>I(c,t,`${r.id} \xB7 `))):[]]}}}function gt(e){let t=E(e);return[e.id,w([qe[e.status],t===""?void 0:t,m(e)?Ce:void 0])]}function mt(e,t,n){let i=E(e),o=t?e.findings:l(e);return{type:e.severity==="high"?"error":"warning",options:{headline:`${Re[e.severity]} \xB7 ${e.id} \xB7 ${e.title}`,...i===""?{}:{body:{subdued:i}},...e.docs_url?{link:{label:`${e.id} on shopify.dev`,url:e.docs_url}}:{},customSections:[...bt(e,n),...o.map(r=>I(r,t))]}}}function bt(e,t){if(m(e))return[{body:{tabularData:k.flatMap(c=>{let a=e.by_source[c];return a?[[c,Ee(a),Fe(a.generated_at,t)]]:[]}),firstColumnSubdued:!0}},{body:{subdued:Xe}}];let{deterministic:n,agent:i}=e.by_source;return n!==null&&i!==null&&n.status!==i.status?[{body:{tabularData:Te(e,{withDispositions:!1}),firstColumnSubdued:!0}}]:[]}function Te(e,t){let n=m(e),i=k.flatMap(r=>{let c=e.by_source[r];if(!c)return[];let a=n&&r==="agent"?Ce:void 0;return[[r,w([Ee(c),a])]]}),o=t.withDispositions?E(e):"";return o===""?i:[...i,["findings",o]]}function Ee(e){let t=Je[e.status];return e.reason?`${t} \u2014 ${e.reason.message}`:t}function I(e,t,n=""){let i=e.disposition==="active"?"":` (${e.disposition})`,o=[e.message];if(e.snippet&&o.push({subdued:`
4
+ Code: ${e.snippet}`}),e.source==="deterministic"){e.fix&&o.push({subdued:`
5
+ Fix: ${e.fix.description}`});let r=e.fix?.guide;r&&o.push({subdued:`
6
+ Guide: ${r}`})}else e.confidence&&o.push({subdued:`
7
+ Confidence: ${e.confidence}`}),e.reasoning&&o.push({subdued:`
8
+ Reasoning: ${t?e.reasoning:yt(e.reasoning)}`});return t&&(o.push(...e.evidence.map(r=>({subdued:`
9
+ Evidence: ${$e(r.location)}${r.quote?` \u2014 ${r.quote}`:""}`}))),Q(e,e.source)&&e.suppression&&o.push({subdued:`
10
+ Suppressed: ${e.suppression.justification}`})),{title:`${n}${e.source} \xB7 ${$e(e.location)}${i}`,body:o}}function yt(e){let t=e.split(`
11
+ `);return t.length<=_e?e:`${t.slice(0,_e).join(`
12
+ `)}\u2026`}function $e(e){return e.line===void 0?e.file:`${e.file}:${e.line}`}var Ne={executed:"executed",not_applicable:"not-applicable",unresolved:"unresolved"},St={regex:"regex",structured_config:"structured-config",ast:"ast"},vt={react_router:"react-router",none:"none",unknown:"unknown",mixed:"mixed"},kt={react_router:"react-router",theme_app_extension:"theme-app-extension",config_only:"config-only",unknown:"unknown",mixed:"mixed"},wt={too_large:"too-large",unreadable:"unreadable"},At={skipped_file:"skipped-file",unsupported_framework:"unsupported-framework",unsupported_language:"unsupported-language",unresolved_check:"unresolved-check"};function Oe(e,t,n){n==="json"?z(v.encode(_t(e))):xe({result:e.result,verbose:t.verbose,now:new Date,commands:e.commands}),e.result.blocking.blockedChecks>0&&(process.exitCode=1)}function _t({selection:e,result:t}){let{appDirectory:n}=e,i=t.sources.deterministic?.document;return{status:"success",valid:t.blocking.blockedChecks===0,app:oe(e),resultsDirectory:S(t.resultsDirectory),resultsFiles:jt(t.sources),detection:i?$t(i.detection,n):null,coverage:i?Rt(i.coverage,n):null,scopeDiffers:t.scopeDiffers,checks:t.checks.map(o=>Ct(o,n)),blocking:ae(t.blocking)}}function jt({deterministic:e,agent:t}){return{deterministic:e?{path:S(e.path),generatedAt:L(e.document.generated_at),engine:{name:e.document.engine.name,version:e.document.engine.version,ruleset:e.document.engine.ruleset},scope:C(e.document.coverage.scope)}:null,agent:t?{path:S(t.path),generatedAt:L(t.document.generated_at),engine:{name:t.document.engine.name,version:t.document.engine.version},scope:C(t.document.scope)}:null}}function L(e){let t=Date.parse(e);if(Number.isNaN(t))return null;let n=O(new Date(t));return g.safeParse(n).success?n:null}function f(e){return e===void 0||e===""?null:e}function Ie(e){return e??null}function We(e,t){return{filePath:b(t,e.file),line:Ie(e.line),column:Ie(e.column)}}function $t(e,t){return{framework:vt[e.framework],surface:kt[e.surface],languages:e.languages.map(n=>({name:n.name,support:n.support,files:n.files.map(i=>({path:b(t,i)}))}))}}function Rt(e,t){return{filesScanned:e.files_scanned,filesSkipped:e.files_skipped.map(n=>({path:b(t,n.path),reason:wt[n.reason],sizeBytes:n.size_bytes??null,detail:f(n.detail)})),gaps:e.gaps.map(n=>({code:At[n.code],message:n.message,checkId:n.check_id??null,filePath:n.file===void 0?null:b(t,n.file)})),scanDirectories:e.scan_directories.map(n=>ce(t,n))}}function Ct(e,t){return{id:e.id,title:e.title,severity:e.severity,description:e.description,guide:f(e.guide),docsUrl:e.docs_url??null,precedence:e.precedence,appliedPrecedence:e.applied_precedence,status:Ne[e.status],bySource:{deterministic:e.by_source.deterministic?Le(e.by_source.deterministic):null,agent:e.by_source.agent?Le(e.by_source.agent):null},findings:e.findings.map(n=>xt(n,t))}}function Le(e){return{version:e.version,status:Ne[e.status],reason:e.reason?{code:e.reason.code,message:e.reason.message}:null,analysisMode:e.analysis_mode?St[e.analysis_mode]:null,generatedAt:L(e.generated_at)}}function xt(e,t){let n={disposition:e.disposition,location:We(e.location,t),message:e.message,snippet:f(e.snippet),evidence:e.evidence.map(i=>Dt(i,t))};return e.source==="deterministic"?{source:"deterministic",...n,fix:e.fix?{description:e.fix.description,guide:f(e.fix.guide),automated:e.fix.automated}:null}:{source:"agent",...n,confidence:e.confidence??null,reasoning:f(e.reasoning),suppression:e.suppression?{justification:e.suppression.justification}:null}}function Dt(e,t){return{location:We(e.location,t),quote:f(e.quote)}}var Pe=Ue(Be(),1);var N=class e extends G{static summary="Show the combined app security check results.";static descriptionWithMarkdown="Combines the deterministic results (`deterministic-findings.json`, written by `shopify app security check`) with the recorded agent results (`agent-findings.json`, written by `shopify app security record`) and shows one view of every check: its findings, status and source. Both files are in the results directory, `.shopify/app-security/<results key>/`. `--client-id` is checked against your Shopify account before any results are read, so it needs you to be logged in.\n\nThe summary shows the scan directories and the scope of the latest scan, and the scope the agent reported. It notes when the agent findings were recorded for a different scope than the latest scan; that doesn't change the exit code.\n\nThe agent results are optional. Use `--check-id` to narrow the review to specific checks, `--verbose` for full reasoning, evidence and suppressed findings, and `--blocking` to exit with code 1 when a check with findings is at or above a severity. With `--json`, the result always includes every finding in full.\n\nReports the number of findings to Shopify as usage telemetry, but not finding details. See [usage reporting](https://shopify.dev/docs/api/shopify-cli#usage-reporting) for details.";static get jsonOutputSchema(){return v}static description=this.descriptionForHelp();static flags={...q,...V,"check-id":Pe.Flags.string({description:"Show only this check. Repeat the flag to show several checks.",env:"SHOPIFY_FLAG_CHECK_ID",multiple:!0}),...Y,...J};async run(){let{flags:t}=await this.parse(e),n=await x({directory:t.path,configName:t.config,clientId:t["client-id"],withoutAppConfig:!!t["without-app-config"],checkIds:t["check-id"]??[],blocking:t.blocking});Oe(n,{verbose:!!t.verbose},t.json?"json":"text")}};export{N as a};
@@ -1,4 +1,4 @@
1
- import{b as h}from"./chunk-DCKRQZLE.js";import{Aa as c,Ga as g,ya as u}from"./chunk-62GA7XR3.js";import{c as f,p}from"./chunk-6IDEDOXW.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();var d=f(p(),"/docs-shopify.dev/commands"),m=class extends h{static description="Generate CLI commands documentation";static hidden=!0;async run(){let a=this.config.commands;await g(d),await c(d);let o=a.sort((e,i)=>e.id.length-i.id.length).filter(e=>!b(e)).map(e=>{let i=k(e);return N(e,i)});await Promise.all(o)}},C=["commands","help","plugins"];function b(t){return t.hidden?(C.push(t.id),!0):t.pluginType==="user"?!0:C.some(a=>t.id.startsWith(`${a}:`))}function k(t){let a=t.id.replace(/[:]/g," "),s=t.id.replace(/[:]/g,"-"),o=t.id.replace(/[:-]/g,"");return{commandName:a,fileName:s,interfaceName:o}}async function N(t,{commandName:a,fileName:s,interfaceName:o}){let e=Object.keys(t.flags).map(r=>{let n=t.flags[r];if(!n||n.hidden)return;let $=n.description??"",w=n.char?`-${n.char}, `:"",y=n.type==="option"?"string":"''",v=n.type==="option"?" <value>":"",x=n.required?"":"?",D=n.env!==void 0?` @environment ${n.env}`:"";return` /**
1
+ import{b as h}from"./chunk-OLKLHVHA.js";import{Ba as g,ta as u,va as c}from"./chunk-RIG66DIQ.js";import{c as f,p}from"./chunk-IWTNUJGY.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();var d=f(p(),"/docs-shopify.dev/commands"),m=class extends h{static description="Generate CLI commands documentation";static hidden=!0;async run(){let a=this.config.commands;await g(d),await c(d);let o=a.sort((e,i)=>e.id.length-i.id.length).filter(e=>!b(e)).map(e=>{let i=k(e);return N(e,i)});await Promise.all(o)}},C=["commands","help","plugins"];function b(t){return t.hidden?(C.push(t.id),!0):t.pluginType==="user"?!0:C.some(a=>t.id.startsWith(`${a}:`))}function k(t){let a=t.id.replace(/[:]/g," "),s=t.id.replace(/[:]/g,"-"),o=t.id.replace(/[:-]/g,"");return{commandName:a,fileName:s,interfaceName:o}}async function N(t,{commandName:a,fileName:s,interfaceName:o}){let e=Object.keys(t.flags).map(r=>{let n=t.flags[r];if(!n||n.hidden)return;let $=n.description??"",w=n.char?`-${n.char}, `:"",y=n.type==="option"?"string":"''",v=n.type==="option"?" <value>":"",x=n.required?"":"?",D=n.env!==void 0?` @environment ${n.env}`:"";return` /**
2
2
  * ${$}
3
3
  *${D}
4
4
  */