shopify 4.9.5 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-Q6QDIDYT.js +1 -0
- package/dist/analytics-VKKJNJ62.js +1 -0
- package/dist/assets/hydrogen/starter/CHANGELOG.md +7 -0
- package/dist/assets/hydrogen/starter/package.json +2 -2
- package/dist/assets/hydrogen/vite/package.json +3 -4
- package/dist/assets/hydrogen/vite/vite.config.js +3 -3
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-MZL6VM3W.js → chunk-24NUJTIH.js} +1 -1
- package/dist/chunk-2CMEKSI7.js +1 -0
- package/dist/chunk-2DID73ML.js +1 -0
- package/dist/chunk-2ORRV7GH.js +1 -0
- package/dist/chunk-2VSNFOKD.js +1 -0
- package/dist/chunk-335BUVBP.js +1 -0
- package/dist/{chunk-PT3OZEBI.js → chunk-3A3DZVEJ.js} +1 -1
- package/dist/chunk-3C6VLJ5D.js +319 -0
- package/dist/{chunk-LCMDVUVO.js → chunk-3G4HJO72.js} +30 -30
- package/dist/chunk-3LVCG4JB.js +1 -0
- package/dist/chunk-43KLFFP7.js +1 -0
- package/dist/{chunk-QLHPTMIH.js → chunk-43R5VGKT.js} +1 -1
- package/dist/chunk-46MSIQ6Z.js +1 -0
- package/dist/chunk-4ARCB6DT.js +1 -0
- package/dist/chunk-4C2DAX5T.js +1 -0
- package/dist/chunk-4CRBTSVP.js +2 -0
- package/dist/chunk-4GCI2YCZ.js +8 -0
- package/dist/chunk-4GOJQKY5.js +1 -0
- package/dist/chunk-4RDFMBRG.js +9 -0
- package/dist/chunk-4SS6DXC7.js +5 -0
- package/dist/{chunk-Z4DESIR5.js → chunk-4TI7U2PN.js} +1 -1
- package/dist/{chunk-7BWSN3SG.js → chunk-52FDK2LC.js} +1 -1
- package/dist/chunk-53BG3NLH.js +3 -0
- package/dist/{chunk-LD6ZCTZ3.js → chunk-5B76DT7X.js} +1 -1
- package/dist/{chunk-YN4FSUFF.js → chunk-5NEGOQT6.js} +1 -1
- package/dist/{chunk-PFXDXD5O.js → chunk-5OMJFPQW.js} +1 -1
- package/dist/chunk-5TB52UUV.js +2 -0
- package/dist/chunk-5UWMXOHM.js +7 -0
- package/dist/chunk-6BNKBCCU.js +1 -0
- package/dist/chunk-6DXP7PQ7.js +1 -0
- package/dist/chunk-6PUU6ZNQ.js +1 -0
- package/dist/chunk-7GHSE7SG.js +1 -0
- package/dist/{chunk-5O7JTVO2.js → chunk-7IFE4UQY.js} +1 -1
- package/dist/chunk-7LAKWAKX.js +25 -0
- package/dist/chunk-7MVWDCI3.js +1 -0
- package/dist/chunk-7NSK77WG.js +3 -0
- package/dist/chunk-7QUZWCJZ.js +3 -0
- package/dist/chunk-7RPFJZLP.js +1 -0
- package/dist/{chunk-35NTERVR.js → chunk-7UOA4DI7.js} +2 -2
- package/dist/chunk-7WPUV7GY.js +6 -0
- package/dist/chunk-7Y7AZRL3.js +10 -0
- package/dist/{chunk-SEXH4EP5.js → chunk-ACA2BGAD.js} +1 -1
- package/dist/chunk-AJMDF3QC.js +1 -0
- package/dist/{chunk-CEQ5S3HH.js → chunk-AXC2MHHO.js} +1 -1
- package/dist/{chunk-5GFVMGAZ.js → chunk-AYL6KBPE.js} +1 -1
- package/dist/chunk-BAHIL37I.js +1 -0
- package/dist/{chunk-S6A7TMR4.js → chunk-BCYTZ7LM.js} +1 -1
- package/dist/{chunk-4VS7YD53.js → chunk-BJPDJIS4.js} +1 -1
- package/dist/{chunk-AJMJQA4J.js → chunk-BN7ZXAZJ.js} +1 -1
- package/dist/chunk-BVSKBX7T.js +16 -0
- package/dist/chunk-BWRNXCVN.js +4 -0
- package/dist/{chunk-ANG44FIF.js → chunk-C3KEDG33.js} +1 -1
- package/dist/{chunk-4BXQTW5G.js → chunk-C7V755IT.js} +1 -1
- package/dist/chunk-CCMDZX35.js +7 -0
- package/dist/chunk-CCQNP5YR.js +1 -0
- package/dist/chunk-CEIJKJOF.js +11 -0
- package/dist/chunk-CIK5BF7V.js +1 -0
- package/dist/{chunk-YIZAQABE.js → chunk-CVVQQLCF.js} +1 -1
- package/dist/chunk-CW2T7EOQ.js +1 -0
- package/dist/chunk-CZ22VZDA.js +376 -0
- package/dist/{chunk-VSFZEGIK.js → chunk-D7NB7YR6.js} +1 -1
- package/dist/{chunk-2VGPNRHH.js → chunk-DFQ4WTET.js} +2 -2
- package/dist/chunk-DJAZBPYA.js +3 -0
- package/dist/chunk-DNMXVMJM.js +47 -0
- package/dist/{chunk-G362JEAV.js → chunk-EGCWR5AS.js} +1 -1
- package/dist/{chunk-7LB6DPB6.js → chunk-EITIW5OX.js} +1 -1
- package/dist/chunk-EMSF57ZB.js +1 -0
- package/dist/{chunk-2II4W4ZF.js → chunk-EXFBZPZS.js} +1 -1
- package/dist/chunk-FDXHQZTO.js +26 -0
- package/dist/{chunk-YLCYRG2T.js → chunk-FFHH5LOR.js} +1 -1
- package/dist/{chunk-KOS53Z7E.js → chunk-FNLECT7B.js} +1 -1
- package/dist/{chunk-MTBABHUB.js → chunk-FWB3GLMW.js} +1 -1
- package/dist/chunk-FZCGRIOM.js +1 -0
- package/dist/{chunk-ND6O6KT6.js → chunk-G6ZMSWEU.js} +1 -1
- package/dist/chunk-GAMC2BNY.js +7 -0
- package/dist/chunk-GB6E3ATN.js +4 -0
- package/dist/chunk-GCNA3HXH.js +8 -0
- package/dist/{chunk-PIGERIRY.js → chunk-GFVKTWFT.js} +1 -1
- package/dist/chunk-GQNOVEKP.js +2 -0
- package/dist/{chunk-WGO2GC6I.js → chunk-GRGFA26K.js} +1 -1
- package/dist/chunk-GXORLBVN.js +2 -0
- package/dist/{chunk-HB4YI2PF.js → chunk-H4V55Y3Z.js} +118 -118
- package/dist/chunk-HCZG7YJ6.js +16 -0
- package/dist/chunk-HF4NDEX3.js +1 -0
- package/dist/chunk-HIRTL45Q.js +1 -0
- package/dist/chunk-I4OVLRQR.js +1 -0
- package/dist/{chunk-RUDHGUIM.js → chunk-I6FRVYGE.js} +1 -1
- package/dist/chunk-IEQ4UOH3.js +4 -0
- package/dist/{chunk-PIZDYS7T.js → chunk-IILLQOUC.js} +60 -60
- package/dist/{chunk-LG6DGIFX.js → chunk-IQVRP7CT.js} +1 -1
- package/dist/{chunk-5VRB3FBD.js → chunk-IUP7POIE.js} +1 -1
- package/dist/chunk-IUTZIN2T.js +10 -0
- package/dist/chunk-IWEKM5Y3.js +1 -0
- package/dist/chunk-IWTNUJGY.js +2 -0
- package/dist/chunk-J6TW43TG.js +1 -0
- package/dist/chunk-JDR6UVZA.js +8 -0
- package/dist/{chunk-NHE46R6C.js → chunk-JEA3C7ON.js} +1 -1
- package/dist/chunk-JOJV5E2K.js +1 -0
- package/dist/chunk-JYMDWR25.js +1 -0
- package/dist/{chunk-EAVD3OH2.js → chunk-KDPQXURV.js} +1 -1
- package/dist/{chunk-DO5YFMTJ.js → chunk-KGRIYAMA.js} +1 -1
- package/dist/chunk-KJQDS5HI.js +1 -0
- package/dist/chunk-KKPOOIE4.js +2 -0
- package/dist/{chunk-4IAGBAQD.js → chunk-KSDU4YOB.js} +1 -1
- package/dist/chunk-L7MSPGDS.js +5 -0
- package/dist/{chunk-JPFHPVIO.js → chunk-LDU5T3DN.js} +1 -1
- package/dist/chunk-LHKVXJPX.js +1 -0
- package/dist/{chunk-VG5ZDVDQ.js → chunk-LMQGNECW.js} +86 -200
- package/dist/{chunk-TQ7URMGS.js → chunk-LQ7ENG4V.js} +1 -1
- package/dist/chunk-LVLAOBJM.js +103 -0
- package/dist/chunk-LWCTKI4Z.js +18 -0
- package/dist/chunk-M3ACZWMR.js +1 -0
- package/dist/chunk-M4BVLMPH.js +31 -0
- package/dist/{chunk-WKVFVT3H.js → chunk-M5TGCSUK.js} +1 -1
- package/dist/chunk-M7LPHCP2.js +274 -0
- package/dist/{chunk-QBIYAMSH.js → chunk-MDRVCBDO.js} +1 -1
- package/dist/chunk-MR2AUT7Q.js +1 -0
- package/dist/chunk-MXJAH2GW.js +5 -0
- package/dist/{chunk-EO422KZZ.js → chunk-MYAIWSOO.js} +1 -1
- package/dist/{chunk-Y5VFOLNQ.js → chunk-N2RFDHRY.js} +1 -1
- package/dist/{chunk-7DSH4CRU.js → chunk-NB4BRW3H.js} +1 -1
- package/dist/chunk-NDKSG4CC.js +97 -0
- package/dist/chunk-NK2MGR6A.js +1 -0
- package/dist/chunk-NOH63WC6.js +12 -0
- package/dist/{chunk-3XAD2E55.js → chunk-OGWPS55W.js} +1 -1
- package/dist/chunk-OQ5CLM2H.js +4 -0
- package/dist/{chunk-MQ4WV4B6.js → chunk-OQU3HLAE.js} +1 -1
- package/dist/chunk-OVWUGAEU.js +11 -0
- package/dist/chunk-OX7UVDSU.js +6 -0
- package/dist/chunk-P33TONYG.js +1 -0
- package/dist/chunk-PEVIRAMR.js +6 -0
- package/dist/{chunk-LLNUIGHP.js → chunk-PGLWZMJU.js} +4 -4
- package/dist/chunk-PIAD3F6M.js +16 -0
- package/dist/chunk-PMHP57MH.js +20 -0
- package/dist/{chunk-XTOOTN4P.js → chunk-POKY4RWR.js} +1 -1
- package/dist/chunk-PSSYLJG4.js +2 -0
- package/dist/chunk-PYIICTLX.js +1 -0
- package/dist/chunk-PZUGDE7N.js +2 -0
- package/dist/{chunk-SUTVPAJF.js → chunk-Q2SZCZE7.js} +1 -1
- package/dist/{chunk-EZG5EB7D.js → chunk-Q2XRITUG.js} +1 -1
- package/dist/chunk-Q5MEFIMV.js +4 -0
- package/dist/chunk-Q66CI37F.js +7 -0
- package/dist/chunk-QFWWCZOI.js +1 -0
- package/dist/{chunk-TR4OWSEX.js → chunk-QFYLJVJW.js} +1 -1
- package/dist/chunk-QKVVJXWS.js +3 -0
- package/dist/chunk-QN3774QI.js +1 -0
- package/dist/chunk-R2BDABJD.js +213 -0
- package/dist/{chunk-RW3P3UMU.js → chunk-R7EMV77H.js} +2 -2
- package/dist/chunk-RFGEM5JC.js +3 -0
- package/dist/{chunk-HY6EXJBZ.js → chunk-RVQV6G5M.js} +1 -1
- package/dist/chunk-S67I4E7M.js +5 -0
- package/dist/chunk-SFPXYHHL.js +1 -0
- package/dist/{chunk-XPDHT3Z4.js → chunk-SFQEHDJY.js} +1 -1
- package/dist/chunk-SL3VBI62.js +3 -0
- package/dist/{chunk-5XTJ4OL4.js → chunk-SNNZ4U2W.js} +1 -1
- package/dist/chunk-T2IUXXCT.js +1 -0
- package/dist/chunk-TPSA4JN5.js +1 -0
- package/dist/chunk-TTEF7GTX.js +1 -0
- package/dist/{chunk-BAHM64B4.js → chunk-U25W35TX.js} +1 -1
- package/dist/chunk-UIQL5ZF3.js +1 -0
- package/dist/chunk-UK6576EO.js +1 -0
- package/dist/chunk-ULD7CIOY.js +4 -0
- package/dist/{chunk-65GNYRYR.js → chunk-UOS2XLGG.js} +2 -2
- package/dist/{chunk-VNG2I7NM.js → chunk-UVRKTMF7.js} +1 -1
- package/dist/{chunk-BD2L6YE5.js → chunk-UWMZ5CSB.js} +1 -1
- package/dist/chunk-UZROQRLX.js +2 -0
- package/dist/{chunk-5BGUKF7L.js → chunk-V75WUEFU.js} +1 -1
- package/dist/chunk-VB7YQMAM.js +5 -0
- package/dist/chunk-VHUD3CBC.js +3 -0
- package/dist/chunk-VMMUJN4T.js +17 -0
- package/dist/{chunk-T3UCIWRH.js → chunk-VW6QS7DO.js} +1 -1
- package/dist/chunk-VWH3VPYI.js +1 -0
- package/dist/{chunk-4TF7ER72.js → chunk-WBJ6ZHYH.js} +1 -1
- package/dist/chunk-WDFCOZAY.js +16 -0
- package/dist/chunk-WFWISGLS.js +1 -0
- package/dist/chunk-WGUOLSMG.js +1 -0
- package/dist/{chunk-VTOPYXHO.js → chunk-WJSUIUBW.js} +2 -2
- package/dist/{chunk-762IKULK.js → chunk-WMAFG2JD.js} +1 -1
- package/dist/chunk-X2H6I2WW.js +5 -0
- package/dist/{chunk-MWWULCLD.js → chunk-X7HVAVSZ.js} +1 -1
- package/dist/{chunk-MF7IHOM5.js → chunk-XBQDMGUN.js} +1 -1
- package/dist/chunk-XITZIDCL.js +18 -0
- package/dist/chunk-XKRJKUA7.js +1 -0
- package/dist/{chunk-K6FH5JSY.js → chunk-XM7YUXTF.js} +2 -2
- package/dist/chunk-XMODGI45.js +1 -0
- package/dist/{chunk-5NCWBBRW.js → chunk-XNNKLUTN.js} +1 -1
- package/dist/chunk-XTREQ4A2.js +1 -0
- package/dist/chunk-YGYEM6QO.js +1 -0
- package/dist/{chunk-XVFQ6CNO.js → chunk-YKS7MH3F.js} +9 -6
- package/dist/chunk-YTUDXZLN.js +1 -0
- package/dist/{chunk-I3J63RFV.js → chunk-YTUUU33R.js} +1 -1
- package/dist/chunk-YVVU4J5O.js +3 -0
- package/dist/{chunk-QUO4RD3W.js → chunk-YVY32DNA.js} +1 -1
- package/dist/chunk-Z5SILNH2.js +7 -0
- package/dist/chunk-ZAA2DXK5.js +5 -0
- package/dist/chunk-ZDQO6CNY.js +1 -0
- package/dist/chunk-ZGV3HNEV.js +1 -0
- package/dist/chunk-ZQDDRIBA.js +22 -0
- package/dist/{chunk-AODTY2BL.js → chunk-ZT5WFUKJ.js} +4 -4
- package/dist/chunk-ZYQ2XWC5.js +5 -0
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +1 -1
- package/dist/cli/commands/app/env/pull.js +1 -1
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -1
- package/dist/cli/commands/app/graphiql.js +1 -1
- package/dist/cli/commands/app/import/channel-config.js +1 -1
- package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/security/check.js +1 -1
- package/dist/cli/commands/app/security/clean.js +1 -1
- package/dist/cli/commands/app/security/instructions.js +1 -1
- package/dist/cli/commands/app/security/record.js +1 -1
- package/dist/cli/commands/app/security/review.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.d.ts +34 -1
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.d.ts +53 -1
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.d.ts +6 -6
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/send-analytics.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.d.ts +64 -0
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/cli/services/commands/doc/fetch-result.d.ts +2 -0
- package/dist/cli/services/commands/doc/fetch-result.js +22 -0
- package/dist/cli/services/commands/doc/fetch.d.ts +2 -1
- package/dist/cli/services/commands/doc/fetch.js +2 -15
- package/dist/cli/services/commands/doc/search-result.d.ts +2 -0
- package/dist/cli/services/commands/doc/search-result.js +14 -0
- package/dist/cli/services/commands/doc/search.d.ts +9 -1
- package/dist/cli/services/commands/doc/search.js +27 -2
- package/dist/cli/services/commands/doc/types.d.ts +107 -0
- package/dist/cli/services/commands/doc/types.js +47 -0
- package/dist/cli/services/commands/help/types.d.ts +6 -6
- package/dist/command-event-context-LFUZ7UCA.js +1 -0
- package/dist/command-json-schema-2UMKY7MY.js +1 -0
- package/dist/command-registry.js +1 -1
- package/dist/conf-store-RI3TL6I4.js +1 -0
- package/dist/custom-oclif-loader-IZCKN67O.js +1 -0
- package/dist/deprecations-IFVUXXDB.js +1 -0
- package/dist/dist-4H2B7BMN.js +1 -0
- package/dist/dist-QNWOGQN3.js +1 -0
- package/dist/{environment-RSUK27TA.js → environment-O7ECODHU.js} +1 -1
- package/dist/environments-CYMEN7NV.js +1 -0
- package/dist/error-IL6WQMSW.js +1 -0
- package/dist/error-handler-74HKA23T.js +1 -0
- package/dist/fs-AINFLJ2E.js +1 -0
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/plugin-plugins.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/index.js +13 -13
- package/dist/is-global-2VLKV46Q.js +1 -0
- package/dist/json-error-HZB5YIHV.js +1 -0
- package/dist/{lib-TYM5B75S.js → lib-PJHT4MKY.js} +1 -1
- package/dist/{lib-55QUD4AJ.js → lib-VKSQ65BQ.js} +1 -1
- package/dist/{lib-PH52G55H.js → lib-YEZOHXF3.js} +1 -1
- package/dist/{local-ZZGRGYUP.js → local-KOZETREJ.js} +1 -1
- package/dist/{metadata-YQNVKC2R.js → metadata-IBPHZB7N.js} +1 -1
- package/dist/{morph-BABFBRSW.js → morph-CRY35DIK.js} +1 -1
- package/dist/node-package-manager-DXSRNEDC.js +1 -0
- package/dist/notifications-system-XA3EBOGJ.js +1 -0
- package/dist/os-X73O7BAB.js +1 -0
- package/dist/out-B2GISN65.js +1 -0
- package/dist/output-3OYXK3Z5.js +1 -0
- package/dist/{path-CPAYTWQW.js → path-3L2QRACZ.js} +1 -1
- package/dist/system-JWYYT4PM.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-PCG5D6RZ.js +1 -0
- package/dist/upgrade-7U2TUNC4.js +1 -0
- package/dist/version-7DGU2KYH.js +1 -0
- package/dist/version-SXQTRBXB.js +1 -0
- package/dist/workerd-MQZ3NKJI.js +18 -0
- package/oclif.manifest.json +1664 -427
- package/package.json +8 -8
- package/dist/analytics-PBZEKUGU.js +0 -1
- package/dist/analytics-WVGBNFGK.js +0 -1
- package/dist/chunk-2EC5SUGK.js +0 -19
- package/dist/chunk-2QENUJVG.js +0 -1
- package/dist/chunk-2RONPKOD.js +0 -1
- package/dist/chunk-2WDJXERZ.js +0 -25
- package/dist/chunk-32NWVYUC.js +0 -1
- package/dist/chunk-32RRWGNS.js +0 -1
- package/dist/chunk-32VQQ6EU.js +0 -1
- package/dist/chunk-34RFTE5T.js +0 -4
- package/dist/chunk-35VQQKVX.js +0 -1
- package/dist/chunk-3N6NKC2U.js +0 -1
- package/dist/chunk-3Q5BAPQK.js +0 -7
- package/dist/chunk-42DMJGOW.js +0 -2
- package/dist/chunk-4CTTWXUX.js +0 -32
- package/dist/chunk-4HBKQUKY.js +0 -1
- package/dist/chunk-4MQXMIWQ.js +0 -7
- package/dist/chunk-5APLAJCB.js +0 -3
- package/dist/chunk-5AQNISGC.js +0 -1
- package/dist/chunk-5OM72O4N.js +0 -1
- package/dist/chunk-5SLKHURV.js +0 -1
- package/dist/chunk-62GA7XR3.js +0 -18
- package/dist/chunk-62LMVFR7.js +0 -1
- package/dist/chunk-6IDEDOXW.js +0 -2
- package/dist/chunk-72CBJYAG.js +0 -16
- package/dist/chunk-7E4MJCVE.js +0 -10
- package/dist/chunk-7HZU7CYS.js +0 -1
- package/dist/chunk-7Q4EKY3E.js +0 -3
- package/dist/chunk-7YXHILW4.js +0 -383
- package/dist/chunk-7Z6IX7MU.js +0 -1
- package/dist/chunk-A4XREDFZ.js +0 -1
- package/dist/chunk-AHNLGCHF.js +0 -5
- package/dist/chunk-ARRRFY6S.js +0 -4
- package/dist/chunk-BAP2CHI2.js +0 -1
- package/dist/chunk-BQWK222Q.js +0 -1
- package/dist/chunk-C3PXIZY3.js +0 -8
- package/dist/chunk-C6HGU77I.js +0 -1
- package/dist/chunk-CBFAU5AF.js +0 -5
- package/dist/chunk-COP2Q2YT.js +0 -1
- package/dist/chunk-CSWDRG3E.js +0 -1
- package/dist/chunk-CVBWEUWX.js +0 -1
- package/dist/chunk-D3NVUE65.js +0 -1
- package/dist/chunk-DCKRQZLE.js +0 -20
- package/dist/chunk-DYH3ZXJS.js +0 -15
- package/dist/chunk-EBX6DYDX.js +0 -2
- package/dist/chunk-EDRCFY3K.js +0 -16
- package/dist/chunk-EEAY7HFW.js +0 -317
- package/dist/chunk-EJMLNBZA.js +0 -275
- package/dist/chunk-EO3S2TFI.js +0 -2
- package/dist/chunk-EOIGDOUD.js +0 -7
- package/dist/chunk-EYKXHMEJ.js +0 -6
- package/dist/chunk-FHV2H3Z2.js +0 -12
- package/dist/chunk-FOAV642V.js +0 -1
- package/dist/chunk-FVTP7EO4.js +0 -46
- package/dist/chunk-FYIC4JHB.js +0 -26
- package/dist/chunk-GF36WNMH.js +0 -5
- package/dist/chunk-GJ3QUZO6.js +0 -1
- package/dist/chunk-GJZVUEMP.js +0 -11
- package/dist/chunk-GP6O7YRO.js +0 -20
- package/dist/chunk-GW424AJO.js +0 -7
- package/dist/chunk-GXSF6NCR.js +0 -1
- package/dist/chunk-GYVQIRBD.js +0 -1
- package/dist/chunk-H3ZPYOQV.js +0 -1
- package/dist/chunk-H7YSZKZ2.js +0 -1
- package/dist/chunk-HILYTMVA.js +0 -1
- package/dist/chunk-HMWQOQAQ.js +0 -2
- package/dist/chunk-HNSRF4SQ.js +0 -1
- package/dist/chunk-HTODXNY6.js +0 -3
- package/dist/chunk-IUYVJJKE.js +0 -9
- package/dist/chunk-JM2CQP64.js +0 -97
- package/dist/chunk-K4AF7A25.js +0 -1
- package/dist/chunk-KDV4WR5A.js +0 -4
- package/dist/chunk-KF7NL5YM.js +0 -8
- package/dist/chunk-KMJTO7CU.js +0 -103
- package/dist/chunk-KN3MUEWA.js +0 -4
- package/dist/chunk-KYB4JX76.js +0 -5
- package/dist/chunk-LJAU6YHF.js +0 -10
- package/dist/chunk-LMQOFVRC.js +0 -17
- package/dist/chunk-LQSD25YS.js +0 -3
- package/dist/chunk-M2HQFHNO.js +0 -1
- package/dist/chunk-M5WBYWSQ.js +0 -7
- package/dist/chunk-N47RQHEI.js +0 -2
- package/dist/chunk-NRG2WPSM.js +0 -1
- package/dist/chunk-O2CP7DQE.js +0 -1
- package/dist/chunk-O6FXUKI2.js +0 -2
- package/dist/chunk-OHJUEUSA.js +0 -1
- package/dist/chunk-OOKTWSGP.js +0 -4
- package/dist/chunk-OONMCK7X.js +0 -1
- package/dist/chunk-OWK2RI4O.js +0 -6
- package/dist/chunk-P2UEQJJ4.js +0 -5
- package/dist/chunk-QBJ74XPX.js +0 -18
- package/dist/chunk-QGFJOTOH.js +0 -4
- package/dist/chunk-RIO5HKD5.js +0 -1
- package/dist/chunk-S7EKUSO6.js +0 -3
- package/dist/chunk-SJ2ROSXG.js +0 -1
- package/dist/chunk-SNTRSP5K.js +0 -359
- package/dist/chunk-SYCN2GT2.js +0 -3
- package/dist/chunk-TBNEN73P.js +0 -1
- package/dist/chunk-TVI7TQ4C.js +0 -16
- package/dist/chunk-TYMYIUIQ.js +0 -1
- package/dist/chunk-UEQT7TA4.js +0 -1
- package/dist/chunk-UUM367NR.js +0 -5
- package/dist/chunk-V5FZRNXI.js +0 -1
- package/dist/chunk-VE35YELD.js +0 -1
- package/dist/chunk-WEICJ4GW.js +0 -1
- package/dist/chunk-WJJXJNNP.js +0 -3
- package/dist/chunk-XAQUXFN5.js +0 -1
- package/dist/chunk-XE6EUHSS.js +0 -2
- package/dist/chunk-XFEJS652.js +0 -16
- package/dist/chunk-XI4QEULN.js +0 -1
- package/dist/chunk-XP63T4KZ.js +0 -5
- package/dist/chunk-XRCAUZAZ.js +0 -8
- package/dist/chunk-XSRZWJIJ.js +0 -1
- package/dist/chunk-YFJELEVH.js +0 -1
- package/dist/chunk-YNJIDLI3.js +0 -7
- package/dist/chunk-YRX4E67D.js +0 -6
- package/dist/chunk-Z2NL6XQK.js +0 -6
- package/dist/chunk-Z6Z5DPKS.js +0 -1
- package/dist/chunk-ZOE6WXW6.js +0 -1
- package/dist/cli/commands/app/app-logs/sources.js +0 -1
- package/dist/command-json-schema-3RP5P43D.js +0 -1
- package/dist/conf-store-XORTWCKZ.js +0 -1
- package/dist/custom-oclif-loader-ZRYPPYIP.js +0 -1
- package/dist/deprecations-AZDMCRNN.js +0 -1
- package/dist/dist-DTBXLVHF.js +0 -1
- package/dist/dist-SOYIDACZ.js +0 -1
- package/dist/environments-L42SEHB4.js +0 -1
- package/dist/error-H6B5BHYC.js +0 -1
- package/dist/error-handler-JB752NKM.js +0 -1
- package/dist/fs-XHZY6MNM.js +0 -1
- package/dist/is-global-2NBDZWLC.js +0 -1
- package/dist/json-error-OHV2KQFY.js +0 -1
- package/dist/node-package-manager-LN2Y7FQ2.js +0 -1
- package/dist/notifications-system-HWJ3F44U.js +0 -1
- package/dist/os-MHOCCDIB.js +0 -1
- package/dist/out-53ABAVL7.js +0 -1
- package/dist/output-GILH4S6M.js +0 -1
- package/dist/system-6WYK24ET.js +0 -1
- package/dist/ui-RP6SVJUK.js +0 -1
- package/dist/upgrade-5G7FBJJV.js +0 -1
- package/dist/version-TOBC7X2C.js +0 -1
- package/dist/version-UIRCT6RC.js +0 -1
- package/dist/workerd-ARH2OCYL.js +0 -18
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as j,c as v,d as O}from"./chunk-HCZG7YJ6.js";import{D as n,F as b,J as k,O as p,P as a,Q as u,U as h,W as T,X as F,a as A,t as P}from"./chunk-LMQGNECW.js";import{b as w}from"./chunk-ZQDDRIBA.js";import{b as I,c as g}from"./chunk-Q2SZCZE7.js";import{a as f}from"./chunk-BN7ZXAZJ.js";import{wb as S}from"./chunk-LWCTKI4Z.js";import{b as o}from"./chunk-FZCGRIOM.js";import{b as x}from"./chunk-YTUUU33R.js";import{e as d}from"./chunk-IWTNUJGY.js";import{e as _,g as i}from"./chunk-VKWPEFWQ.js";i();i();i();var R=o.object({path:p().describe("The absolute path of the file that the instructions were written to."),format:o.literal("markdown").describe("The file holds the instructions in Markdown, not a JSON result.")}).strict(),c=f({name:"AppSecurityInstructionsResult",schema:o.union([o.object({status:o.literal("success"),app:a,resultsDirectory:p().describe("The absolute path of the results directory that the instructions use. It may not exist yet: the instructions start by running check, which creates it."),instructions:u}).strict(),R]).describe("The instructions and the app they are for. With --write, only the file they were written to."),definitions:{AppSecurityApp:a,AppSecurityInstructions:u,AppSecurityInstructionsFile:R}});function C(r,t,e){if(e==="json"){S(c.encode(W(r,t)));return}O(r,t.delivery)}function W(r,{selection:t,delivery:e}){if(e.writePath)return{path:h(e.writePath),format:"markdown"};let{resultsDirectory:s}=P(t.appDirectory,n(t));return{status:"success",app:T(t),resultsDirectory:h(s),instructions:F(r,e)}}var l=_(x(),1);var m=class r extends w{static summary="Provide app security check instructions to a coding agent.";static descriptionWithMarkdown="Prints the complete workflow that a coding agent should follow to review app security check results.\n\nBy default, the instructions are printed to stdout. Use `--copy` to copy them to the clipboard or `--write` to write them to a file. Standalone instructions always start by running `shopify app security check`; only that invocation's generated review pack is trusted as workflow input.";static get jsonOutputSchema(){return c}static description=this.descriptionWithoutMarkdown();static flags={...I,...A,copy:l.Flags.boolean({description:"Copy the instructions to the clipboard instead of printing them. With --json, the result still includes them.",default:!1,exclusive:["write"],env:"SHOPIFY_FLAG_APP_SECURITY_INSTRUCTIONS_COPY"}),write:l.Flags.string({description:"Write the instructions to a file instead of printing them. With --json, stdout contains only the absolute path and Markdown format of the written file.",exclusive:["copy"],parse:async t=>d(t),env:"SHOPIFY_FLAG_APP_SECURITY_INSTRUCTIONS_WRITE"}),...g};async run(){let{flags:t}=await this.parse(r),e=await b({path:t.path,config:t.config,clientId:t["client-id"],withoutAppConfig:t["without-app-config"],allowPrompts:!1}),s=j({appDirectory:e.appDirectory,resultsKey:n(e),commands:k(e,t.path)}),y={copy:t.copy,writePath:t.write};await v(s,y),C(s,{selection:e,delivery:y},t.json?"json":"text")}};export{m as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as l,na as d,sa as z,ta as y}from"./chunk-WDFCOZAY.js";import{b as n}from"./chunk-ZQDDRIBA.js";import{b as g,c as f,d as h}from"./chunk-Q2SZCZE7.js";import{H as c}from"./chunk-CZ22VZDA.js";import{a as u}from"./chunk-BN7ZXAZJ.js";import{wb as p}from"./chunk-LWCTKI4Z.js";import{b as o}from"./chunk-FZCGRIOM.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();i();i();var L=o.object({id:o.string(),gid:o.string(),name:o.string(),status:o.enum(l),shopCount:o.number().nullable(),url:o.string()}).strict(),r=u({name:"OrganizationListResult",schema:o.object({organizations:o.array(L)}).strict(),definitions:{OrganizationListEntry:L}});function e(s,t){if(t==="json"){p(r.encode(s));return}c({rows:s.organizations.map(a=>({id:a.id,name:a.name})),columns:{id:{header:"ID"},name:{header:"NAME"}}})}i();async function O(){return{organizations:(await y()).map(t=>({id:t.id,gid:d(t.id),name:t.businessName,status:t.status,shopCount:t.shopCount,url:t.url}))}}var m=class s extends n{static baseFlags={...n.baseFlags,...h};static summary="List Shopify organizations you have access to.";static descriptionWithMarkdown="Lists the Shopify organizations that you have access to, along with their organization IDs.";static description=this.descriptionForHelp();static flags={...g,...f};static get jsonOutputSchema(){return r}async run(){let{flags:t}=await this.parse(s);try{let a=await O();e(a,t.json?"json":"text")}catch(a){if(t.json&&a instanceof z){e({organizations:[]},"json");return}throw a}}};export{m as a};
|
|
@@ -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-
|
|
7
|
+
`)}async function Sc(r){try{let{jsonOutputEnabled:e}=await import("./environment-O7ECODHU.js");if(e()){let{handler:n}=await import("./error-IL6WQMSW.js");await n(r);return}let{FatalError:t}=await import("./error-IL6WQMSW.js");if(r instanceof t){let{renderFatalError:n}=await import("./ui-PCG5D6RZ.js");n(r)}else zr(r)}catch{zr(r)}}export{Sc as a,Tc as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{P as i}from"./chunk-CZ22VZDA.js";import{a as l}from"./chunk-7UNQOKZW.js";import{a as p}from"./chunk-CX5CC6P5.js";import{e as u,g as a}from"./chunk-VKWPEFWQ.js";a();var f=u(l(),1),o=u(p(),1);async function h(t){try{return(await i("npm",["list","@shopify/cli"],{cwd:t})).match(/@shopify\/cli@([\w.-]*)/)?.[1]}catch{return}}async function d(){try{let t={...process.env,SHOPIFY_CLI_NO_ANALYTICS:"1"},e=f.default.sync("shopify",{all:!0}).filter(r=>!r.includes("node_modules"));if(!e[0])return;let n=(await i(e[0],[],{env:t})).match(/@shopify\/cli\/([^\s]+)/);if(n&&n[1]){let r=n[1];if((0,o.satisfies)(r,">=3.59.0")||s(r))return r}return}catch{return}}function s(t){return t.startsWith("0.0.0")}function y(t,e){if(s(t)||s(e))return!1;let c=new o.SemVer(t),n=new o.SemVer(e);return c.major!==n.major}export{h as a,d as b,s as c,y as d};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as d,d as M,e as D,f as U}from"./chunk-7QUZWCJZ.js";import{a as E,b as T,c as L,f as $,j as R,k as N,m as P,t as j}from"./chunk-OGWPS55W.js";import{a as _}from"./chunk-ZGV3HNEV.js";import{a as q}from"./chunk-FWB3GLMW.js";import{S as O,u as I}from"./chunk-H4V55Y3Z.js";import{b as x,c as C}from"./chunk-Q2SZCZE7.js";import{A,C as S,H as F,z as g}from"./chunk-CZ22VZDA.js";import{k as B}from"./chunk-2VSNFOKD.js";import{Db as y,ba as h,ga as k,qb as p,sb as u,wb as v}from"./chunk-LWCTKI4Z.js";import{i as l}from"./chunk-B4OMIONW.js";import{b as Y}from"./chunk-YTUUU33R.js";import{e as K,g as s}from"./chunk-VKWPEFWQ.js";s();s();async function V(t){let{storeFqdn:o,operationId:e,remoteApp:n}=t,{adminSession:r,version:i}=await G(o,n),a=await R({adminSession:r,operationId:e,version:i});return{store:o,apiVersion:i,operationId:e,operation:a??null}}async function z(t){let{storeFqdn:o,remoteApp:e}=t,{adminSession:n,version:r}=await G(o,e),i=await N({adminSession:n,version:r});return{store:o,apiVersion:r,operations:i}}async function G(t,o){let e=o.apiSecretKeys[0]?.secret;if(!e)throw new B("No API secret keys found for app");let n=await O(t,o.apiKey,e),r=await $({adminSession:n,minimumDefaultVersion:E});return{adminSession:n,version:r}}s();function H(t,o){if(o==="json"){v(d.encode({...M(t),..."operation"in t?{operationGid:t.operationId,operation:t.operation?D(t.operation):null}:{operations:t.operations.map(D),pageInfo:{hasNextPage:t.operations.length<100?!1:null}}}));return}if("operation"in t){t.operation?W(t.operation):S({headline:"Bulk operation not found.",body:u`ID: ${p.yellow(t.operationId)}`.value});return}let e=t.operations.map(n=>({id:L(n.id),status:X(n.status),count:Z(n.objectCount),dateCreated:h(new Date(String(n.createdAt))),dateFinished:n.completedAt?h(new Date(String(n.completedAt))):"",results:tt(n.url??n.partialDataUrl)}));y(),e.length===0?g({body:"No bulk operations found in the last 7 days."}):F({rows:e,columns:{id:{header:"ID",color:"yellow"},status:{header:"STATUS"},count:{header:"COUNT"},dateCreated:{header:"DATE CREATED",color:"cyan"},dateFinished:{header:"DATE FINISHED",color:"cyan"},results:{header:"RESULTS"}}}),y()}function W(t){let{id:o,status:e,createdAt:n,completedAt:r,url:i,partialDataUrl:a}=t,c=P(t).value,J=Q(n,r),m=u`ID: ${p.yellow(o)}\n${J}`.value;if(e==="COMPLETED"){let f=i?p.link("Download results",i):"";A({headline:c,body:u`${m}\n${f}`.value})}else if(e==="FAILED"){let f=a?p.link("Download partial results",a):"";S({headline:c,body:u`${m}\n${f}`.value})}else g({headline:c,body:m})}function Q(t,o){let e=new Date;return o?`Finished ${k(new Date(String(o)),e)}`:`Started ${k(new Date(String(t)),e)}`}function X(t){return t==="COMPLETED"?l.green(t):t==="FAILED"?l.red(t):l.dim(t)}function Z(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:String(t)}function tt(t){return t?u`${p.link("download",t)}`.value:""}var b=K(Y(),1);var w=class t extends _{static summary="Check the status of bulk operations.";static descriptionWithMarkdown=`Check the status of a specific bulk operation by ID, or list all bulk operations belonging to this app on this store in the last 7 days.
|
|
2
|
+
|
|
3
|
+
Bulk operations allow you to process large amounts of data asynchronously. Learn more about [bulk query operations](https://shopify.dev/docs/api/usage/bulk-operations/queries) and [bulk mutation operations](https://shopify.dev/docs/api/usage/bulk-operations/imports).
|
|
4
|
+
|
|
5
|
+
Use [\`bulk execute\`](https://shopify.dev/docs/api/shopify-cli/app/app-bulk-execute) to start a new bulk operation.`;static description=this.descriptionForHelp();static flags={...x,...C,...q,id:b.Flags.string({description:"The bulk operation ID (numeric ID or full GID). If not provided, lists all bulk operations belonging to this app on this store in the last 7 days.",env:"SHOPIFY_FLAG_ID"}),store:b.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async o=>I(o)})};static get jsonOutputSchema(){return d}async run(){let{flags:o}=await this.parse(t),{appContextResult:e,store:n}=await j(o),r=o.json?"json":"text";U(o.id?"Checking bulk operation status.":"Listing bulk operations.",{organization:e.organization,remoteApp:e.remoteApp,storeFqdn:n.shopDomain},r);let i={storeFqdn:n.shopDomain,remoteApp:e.remoteApp},a=o.id?await V({...i,operationId:T(o.id)}):await z(i);return H(a,r),{app:e.app}}};export{w as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as b}from"./chunk-
|
|
1
|
+
import{g as b}from"./chunk-3A3DZVEJ.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();import{performance as u}from"node:perf_hooks";function w(){return b()?"bubble":"mute-and-report"}function h(g={}){let i={sensitive:{},public:{...g}},p=t=>{Object.assign(i.public,t)},M=t=>{Object.assign(i.sensitive,t)},l=async(t,e,n)=>{let r=n==="auto"?w():n,s=async()=>{let c=await e();t(c)};if(r==="bubble")await s();else try{await s()}catch(c){let{sendErrorToBugsnag:o}=await import("./error-handler-74HKA23T.js");await o(c,"unexpected_error")}},a=[];return{getAllPublicMetadata:()=>({...i.public}),getAllSensitiveMetadata:()=>({...i.sensitive}),addPublicMetadata:async(t,e="auto")=>l(p,t,e),addSensitiveMetadata:async(t,e="auto")=>l(M,t,e),runWithTimer:t=>async e=>{a.push(0);let n=u.now();try{return await e()}finally{let r=u.now();r=Math.max(n,r);let s=Math.max(r-n,0),c=a.pop(),o=Math.max(s-c,0);a.length>0&&(a[a.length-1]=(a[a.length-1]??0)+s),u.measure(`${t}#measurable`,{start:n,duration:o}),u.measure(`${t}#wall`,{start:n,end:r});let d=i.public[t]||0;d+=o,i.public[t]=d}}}}var y=h({cmd_all_timing_network_ms:0,cmd_all_timing_prompts_ms:0}),{getAllPublicMetadata:S,getAllSensitiveMetadata:f,addPublicMetadata:x,addSensitiveMetadata:A,runWithTimer:P}=y;export{h as a,S as b,f as c,x as d,A as e,P as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{U as B}from"./chunk-H4V55Y3Z.js";import{v as O}from"./chunk-CZ22VZDA.js";import{F as w,f as m}from"./chunk-LWCTKI4Z.js";import{c as g,e as s,g as o}from"./chunk-VKWPEFWQ.js";var f=g((Q,c)=>{o();function j(r,e,t,n){for(var a=-1,i=r==null?0:r.length;++a<i;){var u=r[a];e(n,u,t(u),r)}return n}c.exports=j});var A=g((S,h)=>{o();var l=O();function E(r,e,t,n){return l(r,function(a,i,u){e(n,a,t(a),u)}),n}h.exports=E});var p=g((U,q)=>{o();var G=f(),I=A(),V=w(),C=m();function D(r,e){return function(t,n){var a=C(t)?G:I,i=e?e():{};return a(t,r,V(n,2),i)}}q.exports=D});var x=g((X,v)=>{o();var F=B(),H=p(),J=Object.prototype,K=J.hasOwnProperty,L=H(function(r,e,t){K.call(r,t)?r[t].push(e):F(r,t,[e])});v.exports=L});var y=g((Z,b)=>{o();var M=p(),N=M(function(r,e,t){r[t?0:1].push(e)},function(){return[[],[]]});b.exports=N});o();var P=s(x()),d=s(y());function $(r,e){return(0,P.default)(r,e)}function k(r,e){return(0,d.default)(r,e)}export{$ as a,k as b};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import{d as le,h as pe,i as de,j as ce}from"./chunk-PZUGDE7N.js";import{a as ie,c as se,d as ae,e as re}from"./chunk-EMSF57ZB.js";import{a as M}from"./chunk-ACA2BGAD.js";import{b as D}from"./chunk-XBQDMGUN.js";import{a as oe}from"./chunk-ZGV3HNEV.js";import{a as q}from"./chunk-FWB3GLMW.js";import{Ma as ne,N as X,Q as ee,fa as te,g as Z}from"./chunk-3C6VLJ5D.js";import{a as Q}from"./chunk-IQVRP7CT.js";import{b as W,c as J}from"./chunk-Q2SZCZE7.js";import{A as T,F as Y,I as z,N as K,y as N,z as G}from"./chunk-CZ22VZDA.js";import{a as U}from"./chunk-BN7ZXAZJ.js";import{d as $}from"./chunk-X7HVAVSZ.js";import{h as y,j as E}from"./chunk-2VSNFOKD.js";import{Ba as V,Db as k,L as B,rb as C,va as S,wb as H,yb as R}from"./chunk-LWCTKI4Z.js";import{b as d}from"./chunk-FZCGRIOM.js";import{b as Ie}from"./chunk-YTUUU33R.js";import{c as _,h as j}from"./chunk-IWTNUJGY.js";import{e as Ee,g as m}from"./chunk-VKWPEFWQ.js";m();m();m();async function ue(e){let t,o;e.bundlePath&&(t=await re(e.developerPlatformClient,{id:e.apiKey,apiKey:e.apiKey,organizationId:e.organizationId}),await ae(t,e.bundlePath));let n={appManifest:e.appManifest,appId:e.appId,apiKey:e.apiKey,name:e.name,organizationId:e.organizationId,skipPublish:!e.release,message:e.message,versionTag:e.version,commitReference:e.commitReference};t&&(n.bundleUrl=t),e.appModules.length>0&&(n.appModules=e.appModules);let i=await e.developerPlatformClient.deploy(n);if(!i.appDeploy.appVersion){let a=_e(i.appDeploy.userErrors??[],e.appModuleRegistrationIds,e.appModules,{version:e.version});throw new y({bold:"Version couldn't be created."},null,[],a)}return i.appDeploy.userErrors?.length>0&&(o=i.appDeploy.userErrors.map(a=>a.message).join(", ")||"The app version could not be released."),{validationErrors:i.appDeploy.appVersion.appModuleVersions.filter(a=>a.validationErrors.length>0).map(a=>({uuid:a.registrationUuid,errors:a.validationErrors})),versionGid:i.appDeploy.appVersion.uuid,versionTag:i.appDeploy.appVersion.versionTag,location:i.appDeploy.appVersion.location,message:i.appDeploy.appVersion.message,deployError:o}}var x=`
|
|
2
|
+
Validation errors`,O=`
|
|
3
|
+
`;function _e(e,t,o,n={}){let i=l=>l.details?.some(v=>v.extension_id)??!1,s=(l,v)=>{let w=l.details?.find(F=>typeof F.extension_id<"u")?.extension_id??"";return Object.values(v).includes(w.toString())},a=l=>{let v=l.on?l.on[0]:void 0;return o.some(w=>w.uid===v?.user_identifier)},[c,u]=D(e,l=>a(l)),[h,p]=D(u,l=>i(l)),[g,r]=D(h,l=>s(l,t));return[...Se(p,{version:n.version}),...De(g,t),...Me(r),...Ae(c,o)]}function Se(e,t={}){return e.length>0?e.filter(o=>o.field&&o.field.includes("version_tag")&&o.message==="has already been taken").length>0&&t.version?[{body:["An app version with the name",{userInput:t.version},"already exists. Deploy again with a different version name."]}]:e.length===1?[{body:e[0]?.message??""}]:[{body:{list:{items:e.map(o=>o.message)}}}]:[]}function De(e,t){return e.reduce((o,n)=>{let i=(n.field??["unknown"]).join(".").replace("extension_points","extensions.targeting"),s=i==="base"?n.message:`${i}: ${n.message}`,a=n.details.find(r=>typeof r.extension_title<"u")?.extension_title,c=n.details.find(r=>typeof r.specification_identifier<"u")?.specification_identifier,u=n.details.find(r=>typeof r.extension_id<"u")?.extension_id?.toString(),p=Object.keys(t).find(r=>t[r]===u)??a;c==="webhook_subscription"&&(p="Webhook Subscription");let g=o.find(r=>r.title===p);if(g){let r=g.body,f=n.category==="invalid"?r.find(l=>l.list.title===x):r.find(l=>l.list.title===O);f?f.list.items.includes(s)||f.list.items.push(s):r.push({list:{title:n.category==="invalid"?x:O,items:[s]}})}else o.push({title:p,body:[{list:{title:n.category==="invalid"?x:O,items:[s]}}]});return o.forEach(r=>{r.body.sort((f,l)=>f.list.title===x?1:l.list.title===x?-1:0)}),o},[])}function Ae(e,t){return e.reduce((o,n)=>{let s=(n.on?n.on[0]:void 0)?.user_identifier,a=t.find(r=>r.uid===s),c=s?`Extension with uid: ${s}`:"Unknown Extension",u=a?.handle??c,p=`${(n.field??["unknown"]).join(".")}: ${n.message}`,g=o.find(r=>r.title===u);if(g){let f=g.body.find(l=>l.list.title===x);f&&(f.list.items.includes(p)||f.list.items.push(p))}else o.push({title:u,body:[{list:{title:x,items:[p]}}]});return o},[])}function Me(e){return e.reduce((t,o)=>{let n=o.details.find(s=>typeof s.extension_title<"u")?.extension_title,i=t.find(s=>s.title===n);return i?i.errorCount+=1:t.push({title:n,errorCount:1}),t},[]).map(t=>({title:t.title,body:`
|
|
4
|
+
${t.errorCount} error${t.errorCount>1?"s":""} found in your extensions. Fix these issues and try deploying again.`}))}m();async function me(e){let t=_(e.app.directory,".shopify","deploy-bundle");await V(t,{force:!0}),await S(t),await ie(e.appManifest,t),e.skipBuild||await Z(e.app);let o=e.app.allExtensions.map(i=>({prefix:i.localIdentifier,action:async(s,a,c)=>{await i.buildForBundle({stderr:a,stdout:s,signal:c,app:e.app,environment:"production",skipBuild:e.skipBuild},t)}}));if(await N({processes:o,showTimestamps:!1}),e.app.allExtensions.some(i=>i.hasDeploySteps))return await se(t,e.bundlePath),e.bundlePath}async function Te(e){let{app:t,remoteApp:o,developerPlatformClient:n,noRelease:i,allowUpdates:s,allowDeletes:a,extensions:c}=e,u=[i,s,a].some(Boolean),h=[`App can't be deployed until Partner Dashboard managed extensions are added to your version or removed from your app:
|
|
5
|
+
`,c.map(f=>` - ${f.title}`).join(`
|
|
6
|
+
`)],p=[`
|
|
7
|
+
|
|
8
|
+
Run `,{command:"shopify app import dashboard-extensions"}," to add legacy extensions."];if(u||!K())throw new y(h,p);let g=[`
|
|
9
|
+
|
|
10
|
+
Run `,{command:"shopify app import dashboard-extensions"}," to add legacy extensions now?"];if(await Y({message:[...h,...g],confirmationMessage:"Yes, add legacy extensions and deploy",cancellationMessage:"No, don't add legacy extensions"}))return await de({app:t,remoteApp:o,developerPlatformClient:n,extensions:c}),X(t);throw new E}async function Ce(e){let{app:t,remoteApp:o,developerPlatformClient:n}=e,i=await ce({developerPlatformClient:n,apiKey:o.apiKey,organizationId:o.organizationId,extensionTypes:le,onlyDashboardManaged:!0}),s=pe(e.app,i);return s.length===0?t:Te({...e,extensions:s})}async function fe(e){let{remoteApp:t,developerPlatformClient:o,noRelease:n,allowUpdates:i,allowDeletes:s}=e,a,c;try{a=await Ce({app:e.app,remoteApp:t,developerPlatformClient:o,noRelease:n,allowUpdates:i,allowDeletes:s}),c=await te({...e,app:a,developerPlatformClient:o,allowUpdates:i,allowDeletes:s})}catch(I){if(!(I instanceof E))throw I;return{status:"cancelled",app:e.app}}let{deployIdentifiers:u,didMigrateExtensionsToDevDash:h}=c,p=!n,g=t.apiKey;k(),p?R(`Releasing a new app version as part of ${t.title}`):R(`Creating a new app version as part of ${t.title}`),k();let r,f=_(e.app.directory,".shopify",`deploy-bundle.${o.bundleFormat}`);await S(j(f));let l=await a.manifest(Re(a,u.appModuleUuids)),v=await me({app:a,appManifest:l,bundlePath:f,skipBuild:e.skipBuild}),w;return p?w="Releasing an app version":w="Creating an app version",await z([{title:"Running validation",task:async()=>{await a.preDeployValidation()}},{title:w,task:async()=>{let I=await Promise.all(a.allExtensions.flatMap(xe=>xe.bundleConfig({appModuleUuids:u.appModuleUuids,developerPlatformClient:o,apiKey:g,appConfiguration:a.configuration})));r=await ue({appManifest:l,appId:t.id,apiKey:g,name:a.name,organizationId:t.organizationId,bundlePath:v,appModules:B(I),release:p,developerPlatformClient:o,appModuleRegistrationIds:u.appModuleRegistrationIds,message:e.message,version:e.version,commitReference:e.commitReference})}}]),{status:p&&r.deployError?"partial":"success",app:a,release:p,uploadExtensionsBundleResult:r,didMigrateExtensionsToDevDash:h}}function Re(e,t){return Object.fromEntries(e.allExtensions.filter(o=>o.isUUIDStrategyExtension).map(o=>[o.localIdentifier,t[o.localIdentifier]]))}m();var ge=d.object({name:d.string(),clientId:d.string().min(1).describe("The client ID of the app receiving the deployment.")}).strict(),ye=d.object({gid:d.string().regex(/^gid:\/\/shopify\/Version\/\d+$/).describe("The Shopify app version GID."),name:d.string().min(1).nullable().describe("The version tag, or null when no tag is available."),message:d.string().min(1).nullable().describe("The version message, or null when no message is available."),url:d.string().url().describe("The Developer Dashboard URL for this version.")}).strict(),P=d.object({released:d.boolean().describe("Whether this command released the version to users."),version:ye}).strict(),he={app:ge,deployment:P},A=U({name:"AppDeployResult",schema:d.discriminatedUnion("status",[d.object({status:d.literal("success"),...he}).strict(),d.object({status:d.literal("partial"),...he,deployment:P.extend({released:d.literal(!1)}),errors:d.array(M).min(1)}).strict(),d.object({status:d.literal("cancelled")}).strict()]),definitions:{JsonAbortError:M,App:ge,AppDeployment:P,AppDeploymentVersion:ye}});m();async function be(e,t,o,n){if(n==="json"){let i=ke(e,t);if(H(A.encode(i)),i.status==="cancelled")throw Object.assign(new E,{oclif:{exit:0}});i.status==="partial"&&(process.exitCode=1);return}if(e.status==="cancelled")throw new E;await Oe({...e,project:o})}function ke(e,t){if(e.status==="cancelled")return{status:"cancelled"};let{release:o,uploadExtensionsBundleResult:n}=e,i={app:{name:t.title,clientId:t.apiKey},deployment:{released:o&&!n.deployError,version:{gid:n.versionGid,name:n.versionTag===""?null:n.versionTag??null,message:n.message===""?null:n.message??null,url:n.location}}};return o&&n.deployError?{...i,deployment:{...i.deployment,released:!1},status:"partial",errors:[{type:"abort",message:n.deployError}]}:{...i,status:"success"}}async function Oe({app:e,project:t,release:o,uploadExtensionsBundleResult:n,didMigrateExtensionsToDevDash:i}){let s=[{link:{label:n.versionTag??"version",url:n.location}},n.message?`
|
|
11
|
+
${n.message}`:""],a=[];if(i){let c=await ee(e.directory),u=Object.values(c).filter(p=>p!==c[e.configuration.client_id]),h=[];u.length>0&&h.push("\u2022 Map extension IDs to other copies of your app by running",{command:C(t.packageManager,"shopify app deploy")},"for: ",{list:{items:u}}),h.push("\u2022 Commit to source control to ensure your extension IDs aren't regenerated on the next deploy."),a=[{title:"Next steps",body:h},{title:"Reference",body:["\u2022 ",{link:{label:"Migrating from the Partner Dashboard",url:"https://shopify.dev/docs/apps/build/dev-dashboard/migrate-from-partners"}}]}]}return o?n.deployError?G({headline:"New version created, but not released.",body:[...s,`
|
|
12
|
+
|
|
13
|
+
${n.deployError}`],customSections:a}):T({headline:"New version released to users.",body:s,customSections:a}):T({headline:"New version created.",body:s,customSections:a,nextSteps:[["Run",{command:C(t.packageManager,"shopify app release",`--version=${n.versionTag}`)},"to release this version to users."]]})}m();function ve(e){if(typeof e>"u")return;let t=["Invalid version name:",{userInput:e}],o=100;if(e.length>o)throw new y(t,`Version name must be ${o} characters or less.`);let n=[".",".."];if(n.find(s=>e===s))throw new y(t,`Version name may not be any of: ${n.map(s=>`'${s}'`).join(" , ")}`);let i=/^[a-zA-Z0-9.\-_]+$/;if(!e.match(i))throw new y(t,["Version name can only contain alphanumeric characters, periods, hyphens, and underscores"])}m();function we(e){if(typeof e>"u")return;let t=["Invalid message:",{userInput:e}],o=200;if(e.length>o)throw new y(t,`Message name must be ${o} characters or less.`)}var b=Ee(Ie(),1);var L=class e extends oe{static summary="Deploy your Shopify app.";static descriptionWithMarkdown=`[Builds the app](https://shopify.dev/docs/api/shopify-cli/app/app-build), then deploys your app configuration and extensions.
|
|
14
|
+
|
|
15
|
+
This command creates an app version, which is a snapshot of your app configuration and all extensions. This version is then released to users.
|
|
16
|
+
|
|
17
|
+
This command doesn't deploy your [web app](https://shopify.dev/docs/apps/tools/cli/structure#web-components). You need to [deploy your web app](https://shopify.dev/docs/apps/deployment/web) to your own hosting solution.
|
|
18
|
+
`;static get jsonOutputSchema(){return A}static description=this.descriptionForHelp();static flags={...W,...q,...J,"client-id":b.Flags.string({hidden:!1,description:"The Client ID of your app. Use with --config to deploy that configuration to a different app than the one it is linked to.",env:"SHOPIFY_FLAG_CLIENT_ID"}),"allow-updates":b.Flags.boolean({hidden:!1,description:"Allows adding and updating extensions and configuration without requiring user confirmation. Recommended option for CI/CD environments. In non-interactive environments, provide this flag, --allow-deletes, or --no-release.",env:"SHOPIFY_FLAG_ALLOW_UPDATES"}),"allow-deletes":b.Flags.boolean({hidden:!1,description:"Allows removing extensions and configuration without requiring user confirmation. For CI/CD environments, the recommended flag is --allow-updates. In non-interactive environments, provide this flag, --allow-updates, or --no-release.",env:"SHOPIFY_FLAG_ALLOW_DELETES"}),"no-release":b.Flags.boolean({hidden:!1,description:"Creates a version but doesn't release it - it's not made available to merchants. With this flag, a user confirmation is not required. In non-interactive environments, provide this flag, --allow-updates, or --allow-deletes.",env:"SHOPIFY_FLAG_NO_RELEASE",default:!1,exclusive:["allow-updates","allow-deletes"]}),"no-build":b.Flags.boolean({description:"Use with caution: Skips building any elements of the app that require building. You should ensure your app has been prepared in advance, such as by running `shopify app build` or by caching build artifacts.",env:"SHOPIFY_FLAG_NO_BUILD",default:!1}),message:b.Flags.string({hidden:!1,description:"Optional message that will be associated with this version. This is for internal use only and won't be available externally.",env:"SHOPIFY_FLAG_MESSAGE"}),version:b.Flags.string({hidden:!1,description:"Optional version tag that will be associated with this app version. If not provided, an auto-generated identifier will be generated for this app version.",env:"SHOPIFY_FLAG_VERSION"}),"source-control-url":b.Flags.string({hidden:!1,description:"URL associated with the new app version.",env:"SHOPIFY_FLAG_SOURCE_CONTROL_URL"})};static nonTTYFlagRequirements(){return[{flags:["allow-updates","allow-deletes","no-release"]}]}async run(){let{flags:t}=await this.parse(e);await Q.addPublicMetadata(()=>({cmd_deploy_flag_message_used:!!t.message,cmd_deploy_flag_version_used:!!t.version,cmd_deploy_flag_source_url_used:!!t["source-control-url"]})),ve(t.version),we(t.message);let o=t["client-id"];await $(()=>({cmd_app_reset_used:t.reset}));let{app:n,project:i,remoteApp:s,developerPlatformClient:a,organization:c}=await ne({directory:t.path,clientId:o,forceRelink:t.reset,userProvidedConfigName:t.config}),u=t["no-release"]||t["allow-updates"],h=t["no-release"]||t["allow-deletes"],p=await fe({app:n,project:i,remoteApp:s,organization:c,developerPlatformClient:a,reset:t.reset,allowUpdates:u,allowDeletes:h,noRelease:t["no-release"],message:t.message,version:t.version,commitReference:t["source-control-url"],skipBuild:t["no-build"]});return await be(p,s,i,t.json?"json":"text"),{app:p.app}}};export{L as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as e}from"./chunk-ZQDDRIBA.js";import{b as t,c as a}from"./chunk-Q2SZCZE7.js";import{h as r}from"./chunk-2VSNFOKD.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var o=class extends e{static hidden=!0;static strict=!1;static summary="App logs were removed in Shopify CLI 5.0.";static flags={...t,...a};async run(){throw new r("`shopify app logs` and `shopify app logs sources` were removed in Shopify CLI 5.0. To see Function logs, run `shopify app dev`.")}};export{o as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as S}from"./chunk-VJEKDBGZ.js";import{
|
|
2
|
-
`).filter(Boolean)}catch(r){if(r instanceof i&&"exitCode"in r&&r.exitCode===1)return[];throw r}}async function tt(t){return k("cmd_all_timing_network_ms")(async()=>{let{repoUrl:e,destination:r,shallow:n,latestTag:c}=t;if(d(a`Git-cloning repository ${e} into ${o.path(r)}...`),await w(),await I(r)){if(!await v(r))throw new i(a`Can't clone to ${o.path(r)}`,"The path exists but isn't a directory.");if((await E(["*",".*"],{cwd:r,deep:1,onlyFiles:!1})).length>0)throw new i(a`Directory ${o.path(r)} already exists and is not empty`,a`Choose a different name or remove the existing directory first.`)}let[h,g]=e.split("#");if(g&&c)throw new i("Error cloning the repository. Git can't clone the latest release with a 'branch'.");if(n&&c)throw new i("Error cloning the repository. Git can't clone the latest release with the 'shallow' property.");let l=["clone","--recurse-submodules"];g&&l.push("--branch",g),n&&l.push("--depth","1"),D()||l.push("-c","core.askpass=true"),l.push(h,r);try{if(await f("git",l),c){let u=await _(r,e);await s(["checkout",u],r)}}catch(u){if(u instanceof i)throw u;if(u instanceof Error){let $=new i(u.message);throw $.stack=u.stack,$}throw u}})}async function _(t,e){let r=await L(t);if(!r)throw new i(`Couldn't obtain the most recent tag of the repository ${e}`);return r}async function et(t){let r=await s(["log","-1","--format=%H%x00%ai%x00%s%x00%D%x00%b%x00%an%x00%ae"],t);if(!r.trim())throw new i("Must have at least one commit to run command",a`Run ${o.genericShellCommand("git commit -m 'Initial commit'")} to create your first commit.`);let n=r.split("\0");return{hash:n[0],date:n[1],message:n[2],refs:n[3],body:n[4],author_name:n[5],author_email:n[6]}}async function rt(t){await s(["add","--all"],t)}async function nt(t,e){let r=["commit","-m",t];if(e?.author){if(e.author.startsWith("-"))throw new i(`Invalid commit author: ${e.author}. Author name/email can't start with a hyphen.`);r.push("--author",e.author)}return await s(r,e?.directory),(await s(["rev-parse","HEAD"],e?.directory)).trim()}async function w(){if(!await m())throw new i("Git is necessary in the environment to continue",a`Install ${o.link("git","https://git-scm.com/book/en/v2/Getting-Started-Installing-Git")}`)}function F(t){let e=/^git version (?<version>\d+\.\d+\.\d+)(?<suffix>[.\s-].*)?$/.exec(t.trim()),r=e?.groups?.version;if(!r)return;let c=/^(?:\.rc|-rc\.?)(?<number>\d+)(?:[.\s-].*)?$/.exec(e.groups?.suffix??"")?.groups?.number;return c?`${r}-rc.${c}`:r}async function it(t,e={}){let r=await C(c=>H(t,{cwd:e.cwd,env:{GIT_DIR:c}})),n=F(r);if(!n)throw d(a`Unrecognized git --version output: ${o.raw(JSON.stringify(r.slice(0,200)))}`),new i("Couldn't determine the installed Git version.",`Install Git ${t} or later, then try again.`);if((0,A.lt)(n,t))throw new i(`Git ${t} or later is required, but version ${n} is installed.`,`Upgrade Git to version ${t} or later, then try again.`)}async function H(t,e){let{captureOutput:r}=await import("./system-
|
|
1
|
+
import{a as S}from"./chunk-VJEKDBGZ.js";import{a as f}from"./chunk-DFQ4WTET.js";import{f as k}from"./chunk-X7HVAVSZ.js";import{h as i}from"./chunk-2VSNFOKD.js";import{Bb as d,Da as v,Sa as I,Va as E,ja as C,qb as o,sb as a}from"./chunk-LWCTKI4Z.js";import{a as D,r as m}from"./chunk-3A3DZVEJ.js";import{p}from"./chunk-IWTNUJGY.js";import{a as T}from"./chunk-CX5CC6P5.js";import{e as G,g as b}from"./chunk-VKWPEFWQ.js";b();var A=G(T()),O=G(S());async function s(t,e){try{return(await f("git",t,{cwd:e})).stdout}catch(r){if(r instanceof Error){let n=new i(r.message);throw n.stack=r.stack,"exitCode"in r&&Object.assign(n,{exitCode:r.exitCode}),n}throw r}}async function Z(t,e="main"){if(e.startsWith("-"))throw new i(`Invalid initial branch name: ${e}. Branch names can't start with a hyphen.`);d(a`Initializing git repository at ${o.path(t)}...`),await w(),await s(["init"],t),await s(["checkout","-b",e],t)}async function V(t,e){try{return(await s(["check-ignore",...e],t)).split(`
|
|
2
|
+
`).filter(Boolean)}catch(r){if(r instanceof i&&"exitCode"in r&&r.exitCode===1)return[];throw r}}async function tt(t){return k("cmd_all_timing_network_ms")(async()=>{let{repoUrl:e,destination:r,shallow:n,latestTag:c}=t;if(d(a`Git-cloning repository ${e} into ${o.path(r)}...`),await w(),await I(r)){if(!await v(r))throw new i(a`Can't clone to ${o.path(r)}`,"The path exists but isn't a directory.");if((await E(["*",".*"],{cwd:r,deep:1,onlyFiles:!1})).length>0)throw new i(a`Directory ${o.path(r)} already exists and is not empty`,a`Choose a different name or remove the existing directory first.`)}let[h,g]=e.split("#");if(g&&c)throw new i("Error cloning the repository. Git can't clone the latest release with a 'branch'.");if(n&&c)throw new i("Error cloning the repository. Git can't clone the latest release with the 'shallow' property.");let l=["clone","--recurse-submodules"];g&&l.push("--branch",g),n&&l.push("--depth","1"),D()||l.push("-c","core.askpass=true"),l.push(h,r);try{if(await f("git",l),c){let u=await _(r,e);await s(["checkout",u],r)}}catch(u){if(u instanceof i)throw u;if(u instanceof Error){let $=new i(u.message);throw $.stack=u.stack,$}throw u}})}async function _(t,e){let r=await L(t);if(!r)throw new i(`Couldn't obtain the most recent tag of the repository ${e}`);return r}async function et(t){let r=await s(["log","-1","--format=%H%x00%ai%x00%s%x00%D%x00%b%x00%an%x00%ae"],t);if(!r.trim())throw new i("Must have at least one commit to run command",a`Run ${o.genericShellCommand("git commit -m 'Initial commit'")} to create your first commit.`);let n=r.split("\0");return{hash:n[0],date:n[1],message:n[2],refs:n[3],body:n[4],author_name:n[5],author_email:n[6]}}async function rt(t){await s(["add","--all"],t)}async function nt(t,e){let r=["commit","-m",t];if(e?.author){if(e.author.startsWith("-"))throw new i(`Invalid commit author: ${e.author}. Author name/email can't start with a hyphen.`);r.push("--author",e.author)}return await s(r,e?.directory),(await s(["rev-parse","HEAD"],e?.directory)).trim()}async function w(){if(!await m())throw new i("Git is necessary in the environment to continue",a`Install ${o.link("git","https://git-scm.com/book/en/v2/Getting-Started-Installing-Git")}`)}function F(t){let e=/^git version (?<version>\d+\.\d+\.\d+)(?<suffix>[.\s-].*)?$/.exec(t.trim()),r=e?.groups?.version;if(!r)return;let c=/^(?:\.rc|-rc\.?)(?<number>\d+)(?:[.\s-].*)?$/.exec(e.groups?.suffix??"")?.groups?.number;return c?`${r}-rc.${c}`:r}async function it(t,e={}){let r=await C(c=>H(t,{cwd:e.cwd,env:{GIT_DIR:c}})),n=F(r);if(!n)throw d(a`Unrecognized git --version output: ${o.raw(JSON.stringify(r.slice(0,200)))}`),new i("Couldn't determine the installed Git version.",`Install Git ${t} or later, then try again.`);if((0,A.lt)(n,t))throw new i(`Git ${t} or later is required, but version ${n} is installed.`,`Upgrade Git to version ${t} or later, then try again.`)}async function H(t,e){let{captureOutput:r}=await import("./system-JWYYT4PM.js");try{return await r("git",["--version"],e)}catch(n){if(n instanceof i)throw n;if(n instanceof Error&&"code"in n&&n.code==="ENOENT")throw new i(`Git ${t} or later is required, but Git isn't installed.`,`Install Git ${t} or later, then try again.`);let c=n instanceof Error?n.message:String(n);d(a`Couldn't run git --version: ${o.raw(c)}`);let h=n instanceof Error&&"stderr"in n&&typeof n.stderr=="string"?n.stderr.trim():"";throw new i(h?`Couldn't run Git to check its version: ${h}`:"Couldn't run Git to check its version.",`Check that Git ${t} or later is installed and can run, then try again.`)}}var y=class extends i{};async function ot(t){if(await w(),!await R(t))throw new y(`${o.path(t??p())} is not a Git directory`)}async function at(t){return await m()?R(t):!1}async function R(t){try{return await f("git",["rev-parse","--git-dir"],{cwd:t}),!0}catch(e){if(e instanceof Error&&"exitCode"in e&&e.exitCode===128)return!1;throw e}}var x=class extends i{};async function st(t){if(!await j(t))throw new x(`${o.path(t??p())} is not a clean Git directory`)}async function j(t){return(await s(["status","--porcelain"],t)).trim()===""}async function L(t){try{return(await s(["describe","--tags","--abbrev=0"],t)).trim()||void 0}catch(e){if(e instanceof i&&"exitCode"in e&&e.exitCode===128)return;throw e}}async function ct(t,e="origin"){if(d(a`Removing git remote ${e} from ${o.path(t)}...`),await w(),!(await s(["remote"],t)).split(`
|
|
3
3
|
`).filter(Boolean).includes(e)){d(a`Remote ${e} does not exist, no action needed`);return}await s(["remote","remove",e],t)}export{Z as a,V as b,tt as c,et as d,rt as e,nt as f,it as g,ot as h,at as i,x as j,st as k,j as l,ct as m};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as l}from"./chunk-L7MSPGDS.js";import{a as m}from"./chunk-T2IUXXCT.js";import{b as c}from"./chunk-7GHSE7SG.js";import{a as p}from"./chunk-ZGV3HNEV.js";import{a as s}from"./chunk-FWB3GLMW.js";import{Ma as r}from"./chunk-3C6VLJ5D.js";import{b as i,c as n}from"./chunk-Q2SZCZE7.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var e=class d extends p{static summary="Display app and extensions environment variables.";static descriptionWithMarkdown="Displays environment variables that can be used to deploy apps and app extensions.";static get jsonOutputSchema(){return c}static description=this.descriptionForHelp();static flags={...i,...n,...s};async run(){let{flags:t}=await this.parse(d),{app:a,remoteApp:f,organization:u}=await r({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),g=await m(a,f,u);return l(g,t.json?"json":"text"),{app:a}}};export{e as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{B as n}from"./chunk-CZ22VZDA.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();function d({from:o,to:r}){n({headline:[{command:`shopify ${o}`},"has moved."],body:["This command will be removed in a future release. Use",{command:`shopify ${r}`},"instead."]})}export{d as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{T as i}from"./chunk-CZ22VZDA.js";import{yb as o}from"./chunk-LWCTKI4Z.js";import{j as d}from"./chunk-FZCGRIOM.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();import{Writable as m}from"node:stream";import{StringDecoder as f}from"node:string_decoder";function p(){return d()!=="json"?{stdout:process.stdout,stderr:process.stderr}:{stdout:u(),stderr:u()}}function u(){let e=new f("utf8");return new m({write(r,t,c){let s=e.write(r);s&&o(s),c()},final(r){let t=e.end();t&&o(t),r()}})}async function y(e,r){let t=p();try{await i(e,r,t.stdout===process.stdout?{stdio:"inherit"}:{stdin:"inherit",...t})}finally{t.stdout!==process.stdout&&t.stdout.end(),t.stderr!==process.stderr&&t.stderr.end()}}export{p as a,y as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as y,c as S,f as C,g as B}from"./chunk-4GOJQKY5.js";import{a as x}from"./chunk-7RPFJZLP.js";import{a as b}from"./chunk-FWB3GLMW.js";import{Na as w,q as g}from"./chunk-3C6VLJ5D.js";import{b as h,c as F}from"./chunk-Q2SZCZE7.js";import{A as d,y as l}from"./chunk-CZ22VZDA.js";import{c as p}from"./chunk-J6TW43TG.js";import{a}from"./chunk-BN7ZXAZJ.js";import{wb as f}from"./chunk-LWCTKI4Z.js";import{b as s,h as m}from"./chunk-FZCGRIOM.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();var j=S.extend({wasmPath:y.nullable().describe("The built Wasm file, or null when the build produced no file.")}).strict(),e=a({name:"FunctionBuildResult",schema:s.object({status:s.literal("success"),function:j}).strict(),definitions:{FunctionBuild:j}});o();function A(n,t){t?f(e.encode(n)):d({headline:"Function built successfully."})}var r=class n extends x{static get jsonOutputSchema(){return e}static summary="Compile a function to wasm.";static descriptionWithMarkdown="Compiles the function in your current directory to WebAssembly (Wasm) for testing purposes.";static description=this.descriptionForHelp();static flags={...h,...b,...C,...F};async run(){let{flags:t}=await this.parse(n),{app:i}=await w({directory:t.path,userProvidedConfigName:t.config}),u=await B(i,t.path),c=async(J,O)=>{let W=await g(u,{app:i,stdout:J,stderr:O,useTasks:!0,environment:"production"});A(W,t.json)};return t.json?await m({outputMode:"json",sink:p},()=>l({processes:[{prefix:u.localIdentifier,action:c}],showTimestamps:!1})):await c(process.stdout,process.stderr),{app:i}}};export{r as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{c as r,d as c,e as v,f,g as y}from"./chunk-YVVU4J5O.js";import{p as s,q as p,v as u}from"./chunk-DJAZBPYA.js";import{ua as i}from"./chunk-H4V55Y3Z.js";import{b as a,c as d}from"./chunk-Q2SZCZE7.js";import{wb as l}from"./chunk-LWCTKI4Z.js";import{b}from"./chunk-YTUUU33R.js";import{e as _,g as m}from"./chunk-VKWPEFWQ.js";m();var t=_(b(),1);var h=class extends u{static get jsonOutputSchema(){return r}static summary="Uploads your local theme files to the connected store, overwriting the remote version if specified.";static usage=["theme push","theme push --unpublished --json"];static descriptionWithMarkdown=`Uploads your local theme files to Shopify, overwriting the remote version if specified.
|
|
2
2
|
|
|
3
3
|
If no theme is specified, then you're prompted to select the theme to overwrite from the list of the themes in your store.
|
|
4
4
|
|
|
@@ -15,14 +15,17 @@ import{a}from"./chunk-XP63T4KZ.js";import{p as n,q as m,v as l}from"./chunk-LQSD
|
|
|
15
15
|
|
|
16
16
|
\`\`\`json
|
|
17
17
|
{
|
|
18
|
+
"status": "success",
|
|
19
|
+
"changed": true,
|
|
20
|
+
"issues": [],
|
|
18
21
|
"theme": {
|
|
19
|
-
"id": 108267175958,
|
|
22
|
+
"id": "108267175958",
|
|
20
23
|
"name": "MyTheme",
|
|
21
24
|
"role": "unpublished",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
+
"storeDomain": "mystore.myshopify.com",
|
|
26
|
+
"editorUrl": "https://mystore.myshopify.com/admin/themes/108267175958/editor",
|
|
27
|
+
"previewUrl": "https://mystore.myshopify.com/?preview_theme_id=108267175958"
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
30
|
\`\`\`
|
|
28
|
-
`;static description=this.descriptionForHelp();static flags={...s,...
|
|
31
|
+
`;static description=this.descriptionForHelp();static flags={...a,...s,...p("upload"),...d,theme:t.Flags.string({char:"t",description:"Theme ID or name of the remote theme. Use --development, --live, --theme, or --unpublished in non-interactive environments. When using --unpublished without --development, use --theme to provide the new theme name.",env:"SHOPIFY_FLAG_THEME_ID"}),development:t.Flags.boolean({char:"d",description:"Push theme files from your remote development theme. Use --development, --live, --theme, or --unpublished in non-interactive environments.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),"development-context":t.Flags.string({char:"c",description:"Unique identifier for a development theme context (e.g., PR number, branch name). Reuses an existing development theme with this context name, or creates one if none exists.",env:"SHOPIFY_FLAG_DEVELOPMENT_CONTEXT",dependsOn:["development"],exclusive:["theme"]}),live:t.Flags.boolean({char:"l",description:"Push theme files from your remote live theme. Use --development, --live, --theme, or --unpublished in non-interactive environments.",env:"SHOPIFY_FLAG_LIVE"}),unpublished:t.Flags.boolean({char:"u",description:"Create a new unpublished theme and push to it. Use --development, --live, --theme, or --unpublished in non-interactive environments. When using --unpublished without --development, use --theme to provide the new theme name.",env:"SHOPIFY_FLAG_UNPUBLISHED"}),nodelete:t.Flags.boolean({char:"n",description:"Prevent deleting remote files that don't exist locally.",env:"SHOPIFY_FLAG_NODELETE"}),"allow-live":t.Flags.boolean({char:"a",description:"Allow push to a live theme. Required in non-interactive environments when targeting the live theme.",env:"SHOPIFY_FLAG_ALLOW_LIVE"}),publish:t.Flags.boolean({char:"p",description:"Publish as the live theme after uploading.",env:"SHOPIFY_FLAG_PUBLISH"}),force:t.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"}),strict:t.Flags.boolean({description:"Require theme check to pass without errors before pushing. Warnings are allowed.",env:"SHOPIFY_FLAG_STRICT_PUSH"}),listing:t.Flags.string({description:"The listing preset to use for multi-preset themes. Applies preset files from listings/[preset-name] directory.",env:"SHOPIFY_FLAG_LISTING"}),environment:s.environment};static multiEnvironmentsFlags=["store","password","path",["live","development","theme"]];static nonTTYFlagRequirements(){return[{flags:["theme","development","live","unpublished"]},{flags:["theme"],when:e=>!!(e.unpublished&&!e.development)},{flags:["allow-live"],when:e=>!!e.live}]}async command(e,w,n,P,g){i("theme-command:push"),await v(e);let o=await y({...e,allowLive:e["allow-live"],noColor:e["no-color"],developmentContext:e["development-context"]},w,n,g);return o?.hasErrors&&(process.exitCode=1),e.json&&n||(o?c(o,e.json?"json":"text"):e.json&&l(r.encode({status:"cancelled"}))),i("theme-command:push"),o??(e.json&&n?{status:"skipped",reason:"unsafe-directory"}:void 0)}renderEnvironmentResults(e){f(e)}storeAuthScopes(){return["read_themes","write_themes"]}};export{h as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p,d as m,e as u,f,g as h}from"./chunk-4GOJQKY5.js";import{a as c}from"./chunk-ZGV3HNEV.js";import{a as s}from"./chunk-FWB3GLMW.js";import{Ma as r}from"./chunk-3C6VLJ5D.js";import{b as a,c as n}from"./chunk-Q2SZCZE7.js";import{b as v}from"./chunk-YTUUU33R.js";import{e as S,g as i}from"./chunk-VKWPEFWQ.js";i();var d=S(v(),1);var o=class l extends c{static get jsonOutputSchema(){return m}static summary="Fetch the latest GraphQL schema for a function.";static descriptionWithMarkdown="Generates the latest [GraphQL schema](https://shopify.dev/docs/apps/functions/input-output#graphql-schema) for a function in your app. Run this command from the function directory.\n\n This command uses the API type and version of your function, as defined in your extension TOML file, to generate the latest GraphQL schema. The schema is written to the `schema.graphql` file.";static description=this.descriptionForHelp();static flags={...a,...s,...f,...n,stdout:d.Flags.boolean({description:"Output the schema to stdout instead of writing to a file.",required:!1,default:!1,env:"SHOPIFY_FLAG_STDOUT"})};async run(){let{flags:t}=await this.parse(l),{app:e,developerPlatformClient:g,organization:F}=await r({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),y=await h(e,t.path),w=await p({app:e,extension:y,developerPlatformClient:g,orgId:F.id});return await u(w,{stdout:t.stdout,json:t.json}),{app:e}}};export{o as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Gi,c as Ki,d as ln,g as ao,k as un,l as qe,m as lo,n as uo,o as fo,p as po,q as ho,r as mo,s as go,t as _o,u as yo}from"./chunk-TR4OWSEX.js";import{b as ro,c as oo}from"./chunk-ZGASBRSQ.js";import{b as so}from"./chunk-I5A6BPCP.js";import{a as io}from"./chunk-CX5CC6P5.js";import{a as co}from"./chunk-IGE4Y5SE.js";import{a as v,c as y,g as f}from"./chunk-VKWPEFWQ.js";var $=y(F=>{"use strict";f();Object.defineProperty(F,"__esModule",{value:!0});F.pickBy=bo;F.compact=vo;F.uniqBy=wo;F.last=Oo;F.sortBy=jo;F.castArray=Po;F.isProd=Co;F.maxBy=Eo;F.sumBy=$o;F.capitalize=qo;F.isTruthy=Do;F.isNotFalsy=xo;F.uniq=Fo;F.mapValues=Ao;F.mergeNestedObjects=Mo;function bo(t,e){return Object.entries(t).reduce((n,[i,s])=>(e(s)&&(n[i]=s),n),{})}function vo(t){return t.filter(e=>!!e)}function wo(t,e){return t.filter((n,i)=>{let s=e(n);return!t.some((r,o)=>o>i&&e(r)===s)})}function Oo(t){if(t)return t.at(-1)}function dn(t,e){if(t=t===void 0?0:t,e=e===void 0?0:e,Array.isArray(t)&&Array.isArray(e)){if(t.length===0&&e.length===0)return 0;let n=dn(t[0],e[0]);return n!==0?n:dn(t.slice(1),e.slice(1))}return t<e?-1:t>e?1:0}function jo(t,e){return t.sort((n,i)=>dn(e(n),e(i)))}function Po(t){return t===void 0?[]:Array.isArray(t)?t:[t]}function Co(){return!["development","test"].includes(process.env.NODE_ENV??"")}function Eo(t,e){if(t.length!==0)return t.reduce((n,i)=>{let s=e(i),r=e(n);return s>r?i:n})}function $o(t,e){return t.reduce((n,i)=>n+e(i),0)}function qo(t){return t?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():""}function Do(t){return["1","true","y","yes"].includes(t.toLowerCase())}function xo(t){return!["0","false","n","no"].includes(t.toLowerCase())}function Fo(t){return[...new Set(t)].sort()}function Ao(t,e){return Object.entries(t).reduce((n,[i,s])=>(n[i]=e(s,i),n),{})}function So(t,e){return e.split(".").reduce((n,i)=>n?.[i],t)}function Mo(t,e){return Object.fromEntries(t.flatMap(n=>Object.entries(So(n,e)??{})).reverse())}});var X=y(ie=>{"use strict";f();Object.defineProperty(ie,"__esModule",{value:!0});ie.fileExists=ie.dirExists=void 0;ie.readJson=Ji;ie.safeReadJson=Ro;ie.existsSync=No;var Io=v("node:fs"),hn=v("node:fs/promises"),ko=$(),To=async t=>{let e;try{e=await(0,hn.stat)(t)}catch{throw new Error(`No directory found at ${t}`)}if(!e.isDirectory())throw new Error(`${t} exists but is not a directory`);return t};ie.dirExists=To;var Lo=async t=>{let e;try{e=await(0,hn.stat)(t)}catch{throw new Error(`No file found at ${t}`)}if(!e.isFile())throw new Error(`${t} exists but is not a file`);return t};ie.fileExists=Lo;var pn=class extends Map{set(e,n){return((0,ko.isProd)()??!1)&&super.set(e,n),this}},fn=new pn;async function Ji(t,e=!0){if(e&&fn.has(t))return JSON.parse(fn.get(t));let n=await(0,hn.readFile)(t,"utf8");return fn.set(t,n),JSON.parse(n)}async function Ro(t,e=!0){try{return await Ji(t,e)}catch{}}function No(t){return(0,Io.existsSync)(t)}});var Xi=y(M=>{"use strict";f();Object.defineProperty(M,"__esModule",{value:!0});M.string=M.url=M.file=M.directory=M.integer=M.boolean=void 0;M.custom=me;var Ho=v("node:url"),Yi=X(),Bo=$();function me(t){return(e={})=>({parse:async(n,i,s)=>n,...t,...e,input:[],type:"option"})}M.boolean=me({parse:async t=>!!t&&(0,Bo.isNotFalsy)(t)});M.integer=me({async parse(t,e,n){if(!/^-?\d+$/.test(t))throw new Error(`Expected an integer but received: ${t}`);let i=Number.parseInt(t,10);if(n.min!==void 0&&i<n.min)throw new Error(`Expected an integer greater than or equal to ${n.min} but received: ${t}`);if(n.max!==void 0&&i>n.max)throw new Error(`Expected an integer less than or equal to ${n.max} but received: ${t}`);return i}});M.directory=me({async parse(t,e,n){return n.exists?(0,Yi.dirExists)(t):t}});M.file=me({async parse(t,e,n){return n.exists?(0,Yi.fileExists)(t):t}});M.url=me({async parse(t){try{return new Ho.URL(t)}catch{throw new Error(`Expected a valid url but received: ${t}`)}}});var Wo=me({});M.string=Wo});var Zi=y((Rf,zo)=>{zo.exports={name:"@oclif/core",description:"base library for oclif CLIs",version:"4.8.3",author:"Salesforce",bugs:"https://github.com/oclif/core/issues",dependencies:{"ansi-escapes":"^4.3.2",ansis:"^3.17.0","clean-stack":"^3.0.1","cli-spinners":"^2.9.2",debug:"^4.4.3",ejs:"^3.1.10","get-package-type":"^0.1.0","indent-string":"^4.0.0","is-wsl":"^2.2.0",lilconfig:"^3.1.3",minimatch:"^10.2.4",semver:"^7.7.3","string-width":"^4.2.3","supports-color":"^8",tinyglobby:"^0.2.14","widest-line":"^3.1.0",wordwrap:"^1.0.0","wrap-ansi":"^7.0.0"},devDependencies:{"@commitlint/config-conventional":"^19","@eslint/compat":"^1.4.1","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^5","@oclif/prettier-config":"^0.2.1","@oclif/test":"^4","@types/benchmark":"^2.1.5","@types/chai":"^4.3.16","@types/chai-as-promised":"^7.1.8","@types/clean-stack":"^2.1.1","@types/debug":"^4.1.10","@types/ejs":"^3.1.5","@types/indent-string":"^4.0.1","@types/mocha":"^10.0.10","@types/node":"^18","@types/pnpapi":"^0.0.5","@types/sinon":"^17.0.3","@types/supports-color":"^8.1.3","@types/wordwrap":"^1.0.3","@types/wrap-ansi":"^3.0.0",benchmark:"^2.1.4",chai:"^4.5.0","chai-as-promised":"^7.1.2",commitlint:"^19","cross-env":"^7.0.3",eslint:"^9","eslint-config-oclif":"^6","eslint-config-prettier":"^10",husky:"^9.1.7","lint-staged":"^15",madge:"^6.1.0",mocha:"^11.7.5",nyc:"^15.1.0",prettier:"^3.8.1",shx:"^0.4.0",sinon:"^18","ts-node":"^10.9.2",tsd:"^0.33.0",typescript:"^5"},engines:{node:">=18.0.0"},files:["/lib"],homepage:"https://github.com/oclif/core",keywords:["oclif","cli","command","command line","parser","args","argv"],license:"MIT",exports:{".":"./lib/index.js","./args":"./lib/args.js","./command":"./lib/command.js","./config":"./lib/config/index.js","./errors":"./lib/errors/index.js","./execute":"./lib/execute.js","./flags":"./lib/flags.js","./flush":"./lib/flush.js","./handle":"./lib/errors/handle.js","./help":"./lib/help/index.js","./hooks":"./lib/interfaces/hooks.js","./interfaces":"./lib/interfaces/index.js","./logger":"./lib/logger.js","./package.json":"./package.json","./parser":"./lib/parser/index.js","./performance":"./lib/performance.js","./run":"./lib/main.js","./settings":"./lib/settings.js","./util/ids":"./lib/util/ids.js","./ux":"./lib/ux/index.js"},repository:"oclif/core",oclif:{bin:"oclif",devPlugins:["@oclif/plugin-help","@oclif/plugin-plugins"]},publishConfig:{access:"public"},scripts:{build:"shx rm -rf lib && tsc",compile:"tsc",format:'prettier --write "+(src|test)/**/*.+(ts|js|json)"',lint:"eslint",posttest:"yarn lint && yarn test:circular-deps",prepack:"yarn run build",prepare:"husky","test:circular-deps":"yarn build && madge lib/ -c","test:debug":'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',"test:integration":'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',"test:interoperability":"cross-env DEBUG=integration:* ts-node test/integration/interop.ts","test:perf":"ts-node test/perf/parser.perf.ts",test:'nyc mocha --forbid-only "test/**/*.test.ts" --parallel'},types:"lib/index.d.ts"}});var G=y(gn=>{"use strict";f();Object.defineProperty(gn,"__esModule",{value:!0});var Uo=v("node:fs"),Vo=v("node:path"),mn=class t extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return t.instance||(t.instance=new t),t.instance}get(e){return super.get(e)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:Zi().version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,Uo.readFileSync)((0,Vo.join)(__dirname,"..","package.json"),"utf8")).version}}catch{return{name:"@oclif/core",version:"unknown"}}}}};gn.default=mn});var k=y(le=>{"use strict";f();var Go=le&&le.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(le,"__esModule",{value:!0});le.getLogger=Qi;le.makeDebug=Yo;le.setLogger=Xo;le.clearLoggers=Zo;var Ko=Go(oo()),yn="oclif";function Ct(t=yn){let e=(0,Ko.default)(t);return{child:(n,i)=>Ct(`${t}${i??":"}${n}`),debug:e,error:(n,...i)=>Ct(`${t}:error`).debug(n,...i),info:e,namespace:t,trace:e,warn:e}}var se=new Map;function Qi(t){let e=se.get("root");if(e||_n(Ct(yn)),e=se.get("root"),t){let n=se.get(t);if(n)return n;let i=e.child(t);return se.set(t,i),i}return e}function Jo(t){return typeof t.child=="function"&&typeof t.debug=="function"&&typeof t.error=="function"&&typeof t.info=="function"&&typeof t.trace=="function"&&typeof t.warn=="function"&&typeof t.namespace=="string"}function _n(t){se.has(t.namespace)||se.has("root")||(Jo(t)?(se.set(t.namespace,t),se.set("root",t)):process.emitWarning("Logger does not match the Logger interface. Using default logger."))}function Yo(t){return(e,...n)=>Qi(t).debug(e,...n)}function Xo(t){t&&typeof t!="string"&&"logger"in t&&t.logger?_n(t.logger):_n(Ct(yn))}function Zo(){se.clear()}});var tt=y(xe=>{"use strict";f();Object.defineProperty(xe,"__esModule",{value:!0});xe.stderr=xe.stdout=void 0;var De=v("node:util"),Qo=(t,...e)=>{!t&&e?console.log((0,De.format)(...e)):t?console.log(typeof t=="string"?(0,De.format)(t,...e):(0,De.format)(...t,...e)):console.log()};xe.stdout=Qo;var ea=(t,...e)=>{!t&&e?console.error((0,De.format)(...e)):t?console.error(typeof t=="string"?(0,De.format)(t,...e):(0,De.format)(...t,...e)):console.error()};xe.stderr=ea});var re=y(Et=>{"use strict";f();Object.defineProperty(Et,"__esModule",{value:!0});Et.settings=void 0;globalThis.oclif||(globalThis.oclif={});Et.settings=globalThis.oclif});var Ae=y(Fe=>{"use strict";f();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.errtermwidth=Fe.stdtermwidth=void 0;var ta=re();function es(t){if(!t.isTTY)return 80;let e=t.getWindowSize()[0];return e<1?80:e<40?40:e}var ts=Number.parseInt(process.env.OCLIF_COLUMNS,10)||ta.settings.columns;Fe.stdtermwidth=ts||es(process.stdout);Fe.errtermwidth=ts||es(process.stderr)});var ns=y($t=>{"use strict";f();Object.defineProperty($t,"__esModule",{value:!0});$t.STANDARD_ANSI=void 0;$t.STANDARD_ANSI=["white","black","blue","yellow","green","red","magenta","cyan","gray","blackBright","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright","whiteBright","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite","bgGray","bgBlackBright","bgRedBright","bgGreenBright","bgYellowBright","bgBlueBright","bgMagentaBright","bgCyanBright","bgWhiteBright","bold","underline","dim","italic","strikethrough"]});var ss=y(bn=>{"use strict";f();Object.defineProperty(bn,"__esModule",{value:!0});bn.supportsColor=na;var is=ro();function na(){return!!is.stdout&&!!is.stderr}});var W=y(Se=>{"use strict";f();var ia=Se&&Se.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Se,"__esModule",{value:!0});Se.colorize=oa;Se.parseTheme=os;var vn=ia(qe()),sa=ns(),ra=ss();function rs(t){return sa.STANDARD_ANSI.includes(t)}function oa(t,e){if(!t||!(0,ra.supportsColor)())return e;if(rs(t))return vn.default[t](e);if(t.startsWith("#"))return vn.default.hex(t)(e);if(t.startsWith("rgb")){let[n,i,s]=t.slice(4,-1).split(",").map(r=>Number.parseInt(r.trim(),10));return vn.default.rgb(n,i,s)(e)}return e}function os(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,typeof n=="string"?aa(n):os(n)]).filter(([e,n])=>n))}function aa(t){return t.startsWith("#")||t.startsWith("rgb")||rs(t)?t:void 0}});var ge=y(ue=>{"use strict";f();var qt=ue&&ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ue,"__esModule",{value:!0});ue.CLIError=void 0;ue.addOclifExitCode=cs;var ca=qt(Ki()),wn=qt(ln()),la=qt(un()),ua=qt(G()),da=Ae(),fa=re(),as=W();function cs(t,e){return"oclif"in t||(t.oclif={}),t.oclif.exit=e?.exit===void 0?ua.default.getInstance().get("exitCodes")?.default??2:e.exit,t}var nt=class extends Error{code;oclif={};skipOclifErrorHandling;suggestions;constructor(e,n={}){super(e instanceof Error?e.message:e),cs(this,n),this.code=n.code,this.suggestions=n.suggestions}get bang(){try{return(0,as.colorize)("red",process.platform==="win32"?"\xBB":"\u203A")}catch{}}get stack(){return(0,ca.default)(super.stack,{pretty:!0})}render(){if(fa.settings.debug)return this.stack;let e=`${this.name}: ${this.message}`;return e=(0,la.default)(e,da.errtermwidth-6,{hard:!0,trim:!1}),e=(0,wn.default)(e,3),e=(0,wn.default)(e,1,{includeEmptyLines:!0,indent:this.bang}),e=(0,wn.default)(e,1),e}};ue.CLIError=nt;(function(t){class e extends t{constructor(i){super(i instanceof Error?i.message:i),this.name="Warning"}get bang(){try{return(0,as.colorize)("yellow",process.platform==="win32"?"\xBB":"\u203A")}catch{}}}t.Warn=e})(nt||(ue.CLIError=nt={}))});var xt=y(Me=>{"use strict";f();var ls=Me&&Me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Me,"__esModule",{value:!0});Me.applyPrettyPrintOptions=ga;Me.default=ya;var Dt=ls(ln()),pa=ls(un()),ha=Ae(),ma=re();function ga(t,e){let n=["message","code","ref","suggestions"];for(let i of n)!(i in t)&&e[i]&&(t[i]=e[i]);return t}var _a=t=>{let e="Try this:";if(!t||t.length===0)return;if(t.length===1)return`${e} ${t[0]}`;let n=t.map(i=>`* ${i}`).join(`
|
|
1
|
+
import{a as Gi,c as Ki,d as ln,e as ao,f as un,g as qe,h as lo,i as uo,j as fo,k as po,l as ho,m as mo,n as go,o as _o,p as yo}from"./chunk-QFYLJVJW.js";import{b as ro,c as oo}from"./chunk-ZGASBRSQ.js";import{b as so}from"./chunk-I5A6BPCP.js";import{a as io}from"./chunk-CX5CC6P5.js";import{a as co}from"./chunk-IGE4Y5SE.js";import{a as v,c as y,g as f}from"./chunk-VKWPEFWQ.js";var $=y(F=>{"use strict";f();Object.defineProperty(F,"__esModule",{value:!0});F.pickBy=bo;F.compact=vo;F.uniqBy=wo;F.last=Oo;F.sortBy=jo;F.castArray=Po;F.isProd=Co;F.maxBy=Eo;F.sumBy=$o;F.capitalize=qo;F.isTruthy=Do;F.isNotFalsy=xo;F.uniq=Fo;F.mapValues=Ao;F.mergeNestedObjects=Mo;function bo(t,e){return Object.entries(t).reduce((n,[i,s])=>(e(s)&&(n[i]=s),n),{})}function vo(t){return t.filter(e=>!!e)}function wo(t,e){return t.filter((n,i)=>{let s=e(n);return!t.some((r,o)=>o>i&&e(r)===s)})}function Oo(t){if(t)return t.at(-1)}function dn(t,e){if(t=t===void 0?0:t,e=e===void 0?0:e,Array.isArray(t)&&Array.isArray(e)){if(t.length===0&&e.length===0)return 0;let n=dn(t[0],e[0]);return n!==0?n:dn(t.slice(1),e.slice(1))}return t<e?-1:t>e?1:0}function jo(t,e){return t.sort((n,i)=>dn(e(n),e(i)))}function Po(t){return t===void 0?[]:Array.isArray(t)?t:[t]}function Co(){return!["development","test"].includes(process.env.NODE_ENV??"")}function Eo(t,e){if(t.length!==0)return t.reduce((n,i)=>{let s=e(i),r=e(n);return s>r?i:n})}function $o(t,e){return t.reduce((n,i)=>n+e(i),0)}function qo(t){return t?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():""}function Do(t){return["1","true","y","yes"].includes(t.toLowerCase())}function xo(t){return!["0","false","n","no"].includes(t.toLowerCase())}function Fo(t){return[...new Set(t)].sort()}function Ao(t,e){return Object.entries(t).reduce((n,[i,s])=>(n[i]=e(s,i),n),{})}function So(t,e){return e.split(".").reduce((n,i)=>n?.[i],t)}function Mo(t,e){return Object.fromEntries(t.flatMap(n=>Object.entries(So(n,e)??{})).reverse())}});var X=y(ie=>{"use strict";f();Object.defineProperty(ie,"__esModule",{value:!0});ie.fileExists=ie.dirExists=void 0;ie.readJson=Ji;ie.safeReadJson=Ro;ie.existsSync=No;var Io=v("node:fs"),hn=v("node:fs/promises"),ko=$(),To=async t=>{let e;try{e=await(0,hn.stat)(t)}catch{throw new Error(`No directory found at ${t}`)}if(!e.isDirectory())throw new Error(`${t} exists but is not a directory`);return t};ie.dirExists=To;var Lo=async t=>{let e;try{e=await(0,hn.stat)(t)}catch{throw new Error(`No file found at ${t}`)}if(!e.isFile())throw new Error(`${t} exists but is not a file`);return t};ie.fileExists=Lo;var pn=class extends Map{set(e,n){return((0,ko.isProd)()??!1)&&super.set(e,n),this}},fn=new pn;async function Ji(t,e=!0){if(e&&fn.has(t))return JSON.parse(fn.get(t));let n=await(0,hn.readFile)(t,"utf8");return fn.set(t,n),JSON.parse(n)}async function Ro(t,e=!0){try{return await Ji(t,e)}catch{}}function No(t){return(0,Io.existsSync)(t)}});var Xi=y(M=>{"use strict";f();Object.defineProperty(M,"__esModule",{value:!0});M.string=M.url=M.file=M.directory=M.integer=M.boolean=void 0;M.custom=me;var Ho=v("node:url"),Yi=X(),Bo=$();function me(t){return(e={})=>({parse:async(n,i,s)=>n,...t,...e,input:[],type:"option"})}M.boolean=me({parse:async t=>!!t&&(0,Bo.isNotFalsy)(t)});M.integer=me({async parse(t,e,n){if(!/^-?\d+$/.test(t))throw new Error(`Expected an integer but received: ${t}`);let i=Number.parseInt(t,10);if(n.min!==void 0&&i<n.min)throw new Error(`Expected an integer greater than or equal to ${n.min} but received: ${t}`);if(n.max!==void 0&&i>n.max)throw new Error(`Expected an integer less than or equal to ${n.max} but received: ${t}`);return i}});M.directory=me({async parse(t,e,n){return n.exists?(0,Yi.dirExists)(t):t}});M.file=me({async parse(t,e,n){return n.exists?(0,Yi.fileExists)(t):t}});M.url=me({async parse(t){try{return new Ho.URL(t)}catch{throw new Error(`Expected a valid url but received: ${t}`)}}});var Wo=me({});M.string=Wo});var Zi=y((Rf,zo)=>{zo.exports={name:"@oclif/core",description:"base library for oclif CLIs",version:"4.8.3",author:"Salesforce",bugs:"https://github.com/oclif/core/issues",dependencies:{"ansi-escapes":"^4.3.2",ansis:"^3.17.0","clean-stack":"^3.0.1","cli-spinners":"^2.9.2",debug:"^4.4.3",ejs:"^3.1.10","get-package-type":"^0.1.0","indent-string":"^4.0.0","is-wsl":"^2.2.0",lilconfig:"^3.1.3",minimatch:"^10.2.4",semver:"^7.7.3","string-width":"^4.2.3","supports-color":"^8",tinyglobby:"^0.2.14","widest-line":"^3.1.0",wordwrap:"^1.0.0","wrap-ansi":"^7.0.0"},devDependencies:{"@commitlint/config-conventional":"^19","@eslint/compat":"^1.4.1","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^5","@oclif/prettier-config":"^0.2.1","@oclif/test":"^4","@types/benchmark":"^2.1.5","@types/chai":"^4.3.16","@types/chai-as-promised":"^7.1.8","@types/clean-stack":"^2.1.1","@types/debug":"^4.1.10","@types/ejs":"^3.1.5","@types/indent-string":"^4.0.1","@types/mocha":"^10.0.10","@types/node":"^18","@types/pnpapi":"^0.0.5","@types/sinon":"^17.0.3","@types/supports-color":"^8.1.3","@types/wordwrap":"^1.0.3","@types/wrap-ansi":"^3.0.0",benchmark:"^2.1.4",chai:"^4.5.0","chai-as-promised":"^7.1.2",commitlint:"^19","cross-env":"^7.0.3",eslint:"^9","eslint-config-oclif":"^6","eslint-config-prettier":"^10",husky:"^9.1.7","lint-staged":"^15",madge:"^6.1.0",mocha:"^11.7.5",nyc:"^15.1.0",prettier:"^3.8.1",shx:"^0.4.0",sinon:"^18","ts-node":"^10.9.2",tsd:"^0.33.0",typescript:"^5"},engines:{node:">=18.0.0"},files:["/lib"],homepage:"https://github.com/oclif/core",keywords:["oclif","cli","command","command line","parser","args","argv"],license:"MIT",exports:{".":"./lib/index.js","./args":"./lib/args.js","./command":"./lib/command.js","./config":"./lib/config/index.js","./errors":"./lib/errors/index.js","./execute":"./lib/execute.js","./flags":"./lib/flags.js","./flush":"./lib/flush.js","./handle":"./lib/errors/handle.js","./help":"./lib/help/index.js","./hooks":"./lib/interfaces/hooks.js","./interfaces":"./lib/interfaces/index.js","./logger":"./lib/logger.js","./package.json":"./package.json","./parser":"./lib/parser/index.js","./performance":"./lib/performance.js","./run":"./lib/main.js","./settings":"./lib/settings.js","./util/ids":"./lib/util/ids.js","./ux":"./lib/ux/index.js"},repository:"oclif/core",oclif:{bin:"oclif",devPlugins:["@oclif/plugin-help","@oclif/plugin-plugins"]},publishConfig:{access:"public"},scripts:{build:"shx rm -rf lib && tsc",compile:"tsc",format:'prettier --write "+(src|test)/**/*.+(ts|js|json)"',lint:"eslint",posttest:"yarn lint && yarn test:circular-deps",prepack:"yarn run build",prepare:"husky","test:circular-deps":"yarn build && madge lib/ -c","test:debug":'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',"test:integration":'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',"test:interoperability":"cross-env DEBUG=integration:* ts-node test/integration/interop.ts","test:perf":"ts-node test/perf/parser.perf.ts",test:'nyc mocha --forbid-only "test/**/*.test.ts" --parallel'},types:"lib/index.d.ts"}});var G=y(gn=>{"use strict";f();Object.defineProperty(gn,"__esModule",{value:!0});var Uo=v("node:fs"),Vo=v("node:path"),mn=class t extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return t.instance||(t.instance=new t),t.instance}get(e){return super.get(e)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:Zi().version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,Uo.readFileSync)((0,Vo.join)(__dirname,"..","package.json"),"utf8")).version}}catch{return{name:"@oclif/core",version:"unknown"}}}}};gn.default=mn});var k=y(le=>{"use strict";f();var Go=le&&le.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(le,"__esModule",{value:!0});le.getLogger=Qi;le.makeDebug=Yo;le.setLogger=Xo;le.clearLoggers=Zo;var Ko=Go(oo()),yn="oclif";function Ct(t=yn){let e=(0,Ko.default)(t);return{child:(n,i)=>Ct(`${t}${i??":"}${n}`),debug:e,error:(n,...i)=>Ct(`${t}:error`).debug(n,...i),info:e,namespace:t,trace:e,warn:e}}var se=new Map;function Qi(t){let e=se.get("root");if(e||_n(Ct(yn)),e=se.get("root"),t){let n=se.get(t);if(n)return n;let i=e.child(t);return se.set(t,i),i}return e}function Jo(t){return typeof t.child=="function"&&typeof t.debug=="function"&&typeof t.error=="function"&&typeof t.info=="function"&&typeof t.trace=="function"&&typeof t.warn=="function"&&typeof t.namespace=="string"}function _n(t){se.has(t.namespace)||se.has("root")||(Jo(t)?(se.set(t.namespace,t),se.set("root",t)):process.emitWarning("Logger does not match the Logger interface. Using default logger."))}function Yo(t){return(e,...n)=>Qi(t).debug(e,...n)}function Xo(t){t&&typeof t!="string"&&"logger"in t&&t.logger?_n(t.logger):_n(Ct(yn))}function Zo(){se.clear()}});var tt=y(xe=>{"use strict";f();Object.defineProperty(xe,"__esModule",{value:!0});xe.stderr=xe.stdout=void 0;var De=v("node:util"),Qo=(t,...e)=>{!t&&e?console.log((0,De.format)(...e)):t?console.log(typeof t=="string"?(0,De.format)(t,...e):(0,De.format)(...t,...e)):console.log()};xe.stdout=Qo;var ea=(t,...e)=>{!t&&e?console.error((0,De.format)(...e)):t?console.error(typeof t=="string"?(0,De.format)(t,...e):(0,De.format)(...t,...e)):console.error()};xe.stderr=ea});var re=y(Et=>{"use strict";f();Object.defineProperty(Et,"__esModule",{value:!0});Et.settings=void 0;globalThis.oclif||(globalThis.oclif={});Et.settings=globalThis.oclif});var Ae=y(Fe=>{"use strict";f();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.errtermwidth=Fe.stdtermwidth=void 0;var ta=re();function es(t){if(!t.isTTY)return 80;let e=t.getWindowSize()[0];return e<1?80:e<40?40:e}var ts=Number.parseInt(process.env.OCLIF_COLUMNS,10)||ta.settings.columns;Fe.stdtermwidth=ts||es(process.stdout);Fe.errtermwidth=ts||es(process.stderr)});var ns=y($t=>{"use strict";f();Object.defineProperty($t,"__esModule",{value:!0});$t.STANDARD_ANSI=void 0;$t.STANDARD_ANSI=["white","black","blue","yellow","green","red","magenta","cyan","gray","blackBright","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright","whiteBright","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite","bgGray","bgBlackBright","bgRedBright","bgGreenBright","bgYellowBright","bgBlueBright","bgMagentaBright","bgCyanBright","bgWhiteBright","bold","underline","dim","italic","strikethrough"]});var ss=y(bn=>{"use strict";f();Object.defineProperty(bn,"__esModule",{value:!0});bn.supportsColor=na;var is=ro();function na(){return!!is.stdout&&!!is.stderr}});var W=y(Se=>{"use strict";f();var ia=Se&&Se.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Se,"__esModule",{value:!0});Se.colorize=oa;Se.parseTheme=os;var vn=ia(qe()),sa=ns(),ra=ss();function rs(t){return sa.STANDARD_ANSI.includes(t)}function oa(t,e){if(!t||!(0,ra.supportsColor)())return e;if(rs(t))return vn.default[t](e);if(t.startsWith("#"))return vn.default.hex(t)(e);if(t.startsWith("rgb")){let[n,i,s]=t.slice(4,-1).split(",").map(r=>Number.parseInt(r.trim(),10));return vn.default.rgb(n,i,s)(e)}return e}function os(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,typeof n=="string"?aa(n):os(n)]).filter(([e,n])=>n))}function aa(t){return t.startsWith("#")||t.startsWith("rgb")||rs(t)?t:void 0}});var ge=y(ue=>{"use strict";f();var qt=ue&&ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ue,"__esModule",{value:!0});ue.CLIError=void 0;ue.addOclifExitCode=cs;var ca=qt(Ki()),wn=qt(ln()),la=qt(un()),ua=qt(G()),da=Ae(),fa=re(),as=W();function cs(t,e){return"oclif"in t||(t.oclif={}),t.oclif.exit=e?.exit===void 0?ua.default.getInstance().get("exitCodes")?.default??2:e.exit,t}var nt=class extends Error{code;oclif={};skipOclifErrorHandling;suggestions;constructor(e,n={}){super(e instanceof Error?e.message:e),cs(this,n),this.code=n.code,this.suggestions=n.suggestions}get bang(){try{return(0,as.colorize)("red",process.platform==="win32"?"\xBB":"\u203A")}catch{}}get stack(){return(0,ca.default)(super.stack,{pretty:!0})}render(){if(fa.settings.debug)return this.stack;let e=`${this.name}: ${this.message}`;return e=(0,la.default)(e,da.errtermwidth-6,{hard:!0,trim:!1}),e=(0,wn.default)(e,3),e=(0,wn.default)(e,1,{includeEmptyLines:!0,indent:this.bang}),e=(0,wn.default)(e,1),e}};ue.CLIError=nt;(function(t){class e extends t{constructor(i){super(i instanceof Error?i.message:i),this.name="Warning"}get bang(){try{return(0,as.colorize)("yellow",process.platform==="win32"?"\xBB":"\u203A")}catch{}}}t.Warn=e})(nt||(ue.CLIError=nt={}))});var xt=y(Me=>{"use strict";f();var ls=Me&&Me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Me,"__esModule",{value:!0});Me.applyPrettyPrintOptions=ga;Me.default=ya;var Dt=ls(ln()),pa=ls(un()),ha=Ae(),ma=re();function ga(t,e){let n=["message","code","ref","suggestions"];for(let i of n)!(i in t)&&e[i]&&(t[i]=e[i]);return t}var _a=t=>{let e="Try this:";if(!t||t.length===0)return;if(t.length===1)return`${e} ${t[0]}`;let n=t.map(i=>`* ${i}`).join(`
|
|
2
2
|
`);return`${e}
|
|
3
3
|
${(0,Dt.default)(n,2)}`};function ya(t){if(ma.settings.debug)return t.stack;let{bang:e,code:n,message:i,name:s,ref:r,suggestions:o}=t,c=i?`${s||"Error"}: ${i}`:void 0,l=n?`Code: ${n}`:void 0,u=_a(o),p=r?`Reference: ${r}`:void 0,a=[c,l,u,p].filter(Boolean).join(`
|
|
4
4
|
`),d=(0,pa.default)(a,ha.errtermwidth-6,{hard:!0,trim:!1});return d=(0,Dt.default)(d,3),d=(0,Dt.default)(d,1,{includeEmptyLines:!0,indent:e||""}),d=(0,Dt.default)(d,1),d}});var Ie=y(Z=>{"use strict";f();var ba=Z&&Z.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(e,n);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,s)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),va=Z&&Z.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),wa=Z&&Z.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&ba(n,e,i[s]);return va(n,e),n}})();Object.defineProperty(Z,"__esModule",{value:!0});Z.error=fs;var Oa=k(),ja=tt(),us=ge(),ds=wa(xt());function fs(t,e={}){let n;if(typeof t=="string")n=new us.CLIError(t,e);else if(t instanceof Error)n=(0,us.addOclifExitCode)(t,e);else throw new TypeError("first argument must be a string or instance of Error");if(n=(0,ds.applyPrettyPrintOptions)(n,e),e.exit===!1){let i=(0,ds.default)(n);i&&(0,ja.stderr)(i),n?.stack&&(0,Oa.getLogger)().error(n.stack)}else throw n}Z.default=fs});var At=y(Ft=>{"use strict";f();Object.defineProperty(Ft,"__esModule",{value:!0});Ft.ExitError=void 0;var Pa=ge(),On=class extends Pa.CLIError{code="EEXIT";constructor(e=1){super(`EEXIT: ${e}`,{exit:e})}render(){return""}};Ft.ExitError=On});var Pn=y(St=>{"use strict";f();Object.defineProperty(St,"__esModule",{value:!0});St.ModuleLoadError=void 0;var Ca=ge(),jn=class extends Ca.CLIError{code="MODULE_NOT_FOUND";constructor(e){super(`[MODULE_NOT_FOUND] ${e}`,{exit:1}),this.name="ModuleLoadError"}};St.ModuleLoadError=jn});var Mt=y(Cn=>{"use strict";f();Object.defineProperty(Cn,"__esModule",{value:!0});Cn.exit=$a;var Ea=At();function $a(t=0){throw new Ea.ExitError(t)}});var ke=y(_e=>{"use strict";f();var qa=_e&&_e.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_e,"__esModule",{value:!0});_e.warn=En;_e.memoizedWarn=Aa;var Da=k(),xa=tt(),ps=ge(),Fa=qa(xt());function En(t){let e;if(typeof t=="string")e=new ps.CLIError.Warn(t);else if(t instanceof Error)e=(0,ps.addOclifExitCode)(t);else throw new TypeError("first argument must be a string or instance of Error");let n=(0,Fa.default)(e);n&&(0,xa.stderr)(n),e?.stack&&(0,Da.getLogger)().error(e.stack)}var hs=new Set;function Aa(t){hs.has(t)||En(t),hs.add(t)}_e.default=En});var vs=y($n=>{"use strict";f();Object.defineProperty($n,"__esModule",{value:!0});$n.readTSConfig=ka;var ms=v("node:fs/promises"),ys=v("node:path"),Sa=ke(),Ma=k(),gs=$(),Ia=(0,Ma.makeDebug)("read-tsconfig");function _s(t,e){try{return v.resolve(e,{paths:[t]})}catch{}}async function bs(t,e){let n;try{n=await e(t)}catch{n=!1}if(n)return t;let i=(0,ys.dirname)(t);if(i!==t)return bs(i,e)}async function ka(t,e="tsconfig.json"){let n=[],i;try{i=co()}catch{try{i=v(t+"/node_modules/typescript")}catch{}}if(!i){(0,Sa.memoizedWarn)("Could not find typescript. Please ensure that typescript is a devDependency. Falling back to compiled source.");return}let s=async r=>{let o=await bs(r,async c=>(await(0,ms.readdir)(c)).includes("package.json"));if(o)try{let c=await(0,ms.readFile)(r,"utf8"),l=i?.parseConfigFileTextToJson(r,c).config;if(n.push(l),l.extends){if(l.extends.startsWith(".")){let p=_s(o,l.extends);return p?s(p):void 0}let u=_s(o,l.extends);if(u)return s(u)}return l}catch(c){Ia(c)}};return await s((0,ys.join)(t,e)),{compilerOptions:(0,gs.mergeNestedObjects)(n,"compilerOptions"),"ts-node":(0,gs.mergeNestedObjects)(n,"ts-node")}}});var Te=y(ye=>{"use strict";f();Object.defineProperty(ye,"__esModule",{value:!0});ye.collectUsableIds=void 0;ye.makeDebug=La;ye.getPermutations=qn;ye.getCommandIdPermutations=Ra;var Ta=k();function La(...t){return(e,...n)=>(0,Ta.getLogger)(["config",...t].join(":")).debug(e,...n)}function qn(t){if(t.length===0)return[];if(t.length===1)return[t];let e=[],n=qn(t.slice(1)),i=t[0];for(let s=0,r=n.length;s<r;s++){let o=n[s];for(let c=0,l=o.length;c<=l;c++){let u=o.slice(0,c),p=o.slice(c),a=[...u,i,...p];e.push(a)}}return e}function Ra(t){return qn(t.split(":")).flatMap(e=>e.join(":"))}var Na=t=>new Set(t.flatMap(e=>e.split(":").map((n,i,s)=>s.slice(0,i+1).join(":"))));ye.collectUsableIds=Na});var Le=y(K=>{"use strict";f();var Ha=K&&K.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(K,"__esModule",{value:!0});K.TS_CONFIGS=void 0;K.tsPath=tc;var ws=v("node:fs/promises"),T=v("node:path"),Ba=v("node:url"),Wa=Ha(G()),it=ke(),Os=re(),za=X(),Ua=vs(),Dn=$(),Va=Te(),P=(0,Va.makeDebug)("ts-path");K.TS_CONFIGS={};var It=new Set;function Ga(){return process.execPath.split(T.sep).includes("bun")?"bun":process.execArgv.length===0?"node":process.execArgv[0]==="--require"&&process.execArgv[1].split(T.sep).includes("ts-node")||process.execArgv[0].split(T.sep).includes("ts-node")?"ts-node":process.execArgv[0]==="--require"&&process.execArgv[1].split(T.sep).includes("tsx")?"tsx":"node"}var xn=Ga();function Ka(t){return"code"in t&&t.code==="ENOENT"}async function Ja(t){try{if(K.TS_CONFIGS[t])return K.TS_CONFIGS[t];let e=await(0,Ua.readTSConfig)(t);return e?(P("tsconfig: %O",e),K.TS_CONFIGS[t]=e,K.TS_CONFIGS[t]):void 0}catch(e){if(Ka(e))return;P(`Could not parse tsconfig.json. Skipping typescript path lookup for ${t}.`),(0,it.memoizedWarn)(`Could not parse tsconfig.json for ${t}. Falling back to compiled source.`)}}async function Ya(t,e){if(!It.has(t))try{let n=e==="module"?"tsx/esm/api":"tsx/cjs/api",i=v.resolve(n,{paths:[t]});if(!i)return;P("registering tsx at",t),P("tsx path:",i);let{href:s}=(0,Ba.pathToFileURL)(i);P("tsx href:",s);let{register:r}=await import(s);P("Successfully imported tsx"),r(),It.add(t)}catch(n){P(`Could not find tsx. Skipping tsx registration for ${t}.`),P(n)}}async function Xa(t,e){if(It.has(t))return;P("registering ts-node at",t);let n=v.resolve("ts-node",{paths:[t,__dirname]});P("ts-node path:",n);let i;try{i=v(n),P("Successfully required ts-node")}catch(p){P(`Could not find ts-node at ${n}. Skipping ts-node registration for ${t}.`),P(p),(0,it.memoizedWarn)(`Could not find ts-node at ${n}. Please ensure that ts-node is a devDependency. Falling back to compiled source.`);return}let s=[(0,T.join)(t,"node_modules","@types")],r=[];if(e.compilerOptions.rootDirs)for(let p of e.compilerOptions.rootDirs)r.push((0,T.join)(t,p));else e.compilerOptions.rootDir?r.push((0,T.join)(t,e.compilerOptions.rootDir)):e.compilerOptions.baseUrl?r.push((0,T.join)(t,e.compilerOptions.baseUrl)):r.push((0,T.join)(t,"src"));let{baseUrl:o,rootDir:c,...l}=e.compilerOptions,u={compilerOptions:{...l,rootDirs:r,typeRoots:s},...e["ts-node"],cwd:t,esm:e["ts-node"]?.esm??!0,experimentalSpecifierResolution:e["ts-node"]?.experimentalSpecifierResolution??"explicit",scope:!0,scopeDir:t,skipProject:!0,transpileOnly:!0};P("ts-node options: %O",u),i.register(u),It.add(t)}function Za(t,e,n){return(n||t?.moduleType==="commonjs")&&e?.moduleType==="module"&&!e?.pjson.devDependencies?.tsx}function Qa(t,e,n){if(e?.moduleType!=="module"||n)return!1;let i=Number.parseInt(process.version.replace("v","").split(".")[0],10);return xn==="ts-node"&&i>=20}async function ec(t,e,n){let i=await Ja(t);if(!i)return e;P(`Determining path for ${e}`),xn==="bun"?P(`Skipping ts-node registration for ${t} because the runtime is: ${xn}`):(await Ya(t,n?.moduleType),await Xa(t,i));let{baseUrl:s,outDir:r,rootDir:o,rootDirs:c}=i.compilerOptions,l=o??(c??[])[0]??s;if(!l)return P(`no rootDir, rootDirs, or baseUrl specified in tsconfig.json. Returning default path ${e}`),e;if(!r)return P(`no outDir specified in tsconfig.json. Returning default path ${e}`),e;let u=(0,T.join)(t,r),p=(0,T.join)(t,l),a=(0,T.relative)(u,e),d=(0,T.join)(p,a).replace(/\.js$/,"");return P(`lib dir: ${u}`),P(`src dir: ${p}`),P(`src directory to find: ${d}`),(0,za.existsSync)(d)?(P(`Found source directory for ${e} at ${d}`),d):(await Promise.all([(0,ws.access)(`${d}.ts`).then(()=>`${d}.ts`).catch(()=>!1),(0,ws.access)(`${d}.tsx`).then(()=>`${d}.tsx`).catch(()=>!1)])).some(Boolean)?(P(`Found source file for ${e} at ${d}`),d):(P(`No source file found. Returning default path ${e}`),(0,Dn.isProd)()||(0,it.memoizedWarn)(`Could not find source for ${e} based on tsconfig. Defaulting to compiled source.`),e)}async function tc(t,e,n){let i=n?.options.isRoot?n:Wa.default.getInstance().get("rootPlugin");if(!e)return e;e=e.startsWith(t)?e:(0,T.join)(t,e);let s=Os.settings.enableAutoTranspile??Os.settings.tsnodeEnabled;if(s===!1)return P(`Skipping typescript path lookup for ${t} because enableAutoTranspile is explicitly set to false`),e;let r=(0,Dn.isProd)();if(s===void 0&&r&&n?.type!=="link")return P(`Skipping typescript path lookup for ${t} because NODE_ENV is NOT "test" or "development"`),e;if(Za(i,n,r)){P(`Skipping typescript path lookup for ${t} because it's an ESM module (NODE_ENV: ${process.env.NODE_ENV}, root plugin module type: ${i?.moduleType})`);let o=process.env.OCLIF_DISABLE_LINKED_ESM_WARNING&&(0,Dn.isTruthy)(process.env.OCLIF_DISABLE_LINKED_ESM_WARNING);return n?.type==="link"&&!o&&(0,it.memoizedWarn)(`${n?.name} is a linked ESM module and cannot be auto-transpiled. Existing compiled source will be used instead.`),e}if(Qa(t,n,r))return P(`Skipping typescript path lookup for ${t} because ts-node is run in node version ${process.version}"`),(0,it.memoizedWarn)("ts-node executable cannot transpile ESM in Node 20. Existing compiled source will be used instead. See https://github.com/oclif/core/issues/817."),e;try{return await ec(t,e,n)}catch(o){return P(o),e}}});var st=y(Re=>{"use strict";f();Object.defineProperty(Re,"__esModule",{value:!0});Re.load=oc;Re.loadWithData=ac;Re.loadWithDataFromManifest=cc;Re.isPathModule=An;var nc=lo(),ic=v("node:fs"),kt=v("node:path"),Sn=v("node:url"),js=Le(),Fn=Pn(),Cs=X(),sc=[".ts",".js",".mjs",".cjs",".mts",".cts",".tsx",".jsx"],rc=t=>t.type!==void 0;function Mn(t,e,n){throw t.code==="MODULE_NOT_FOUND"||t.code==="ERR_MODULE_NOT_FOUND"?new Fn.ModuleLoadError(`${e?"import()":"require"} failed to load ${n}: ${t.message}`):t}async function oc(t,e){let n,i;try{return{filePath:n,isESM:i}=await Es(t,e),i?await import((0,Sn.pathToFileURL)(n).href):v(n)}catch(s){Mn(s,i,n??e)}}async function ac(t,e){let n,i;try{({filePath:n,isESM:i}=await Es(t,e));let s=i?await import((0,Sn.pathToFileURL)(n).href):v(n);return{filePath:n,isESM:i,module:s}}catch(s){Mn(s,i,n??e)}}async function cc(t,e){let{id:n,isESM:i,relativePath:s}=t;if(!s)throw new Fn.ModuleLoadError(`Cached command ${n} does not have a relative path`);if(i===void 0)throw new Fn.ModuleLoadError(`Cached command ${n} does not have the isESM property set`);let r=(0,kt.join)(e,s.join(kt.sep));try{let o=i?await import((0,Sn.pathToFileURL)(r).href):v(r);return{filePath:r,isESM:i,module:o}}catch(o){Mn(o,i,r??e)}}function An(t){switch((0,kt.extname)(t).toLowerCase()){case".js":case".jsx":case".ts":case".tsx":return nc.sync(t)==="module";case".mjs":case".mts":return!0;default:return!1}}async function Es(t,e){let n,i;try{i=v.resolve(e),n=An(i)}catch{i=(rc(t)?await(0,js.tsPath)(t.root,e,t):await(0,js.tsPath)(t.root,e))??e;let s=!1,r=!1;if((0,Cs.existsSync)(i)){s=!0;try{(0,ic.lstatSync)(i)?.isDirectory?.()&&(s=!1,r=!0)}catch{}}if(!s){let o=Ps(i);!o&&r&&(o=Ps((0,kt.join)(i,"index"))),o&&(i=o)}n=An(i)}return{filePath:i,isESM:n}}function Ps(t){for(let e of sc){let n=`${t}${e}`;if((0,Cs.existsSync)(n))return n}return null}});var Lt=y(Tt=>{"use strict";f();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.SINGLE_COMMAND_CLI_SYMBOL=void 0;Tt.SINGLE_COMMAND_CLI_SYMBOL=Symbol("SINGLE_COMMAND_CLI").toString()});var In=y(Rt=>{"use strict";f();Object.defineProperty(Rt,"__esModule",{value:!0});Rt.cacheDefaultValue=void 0;var lc=async(t,e)=>{if(!(e&&t.noCacheDefault)){if(typeof t.defaultHelp=="function")try{return await t.defaultHelp({flags:{},options:t})}catch{return}if(typeof t.default=="function")try{return await t.default({flags:{},options:t})}catch{}else return t.default}};Rt.cacheDefaultValue=lc});var be=y(Nt=>{"use strict";f();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.toStandardizedId=uc;Nt.toConfiguredId=dc;function uc(t,e){return t.replaceAll(new RegExp(e.topicSeparator,"g"),":")}function dc(t,e){return t.replaceAll(new RegExp(":","g"),e.topicSeparator||":")}});var Tn=y(Ht=>{"use strict";f();Object.defineProperty(Ht,"__esModule",{value:!0});Ht.ActionBase=void 0;var $s=v("node:util"),qs=$(),kn=class{std="stderr";stdmocks;type;stdmockOrigs={stderr:process.stderr.write,stdout:process.stdout.write};get globals(){globalThis.ux=globalThis.ux||{};let e=globalThis.ux;return e.action=e.action||{},e}get output(){return this.globals.output}set output(e){this.globals.output=e}get running(){return!!this.task}get status(){return this.task?this.task.status:void 0}set status(e){let{task:n}=this;n&&n.status!==e&&(this._updateStatus(e,n.status),n.status=e)}get task(){return this.globals.action.task}set task(e){this.globals.action.task=e}_flushStdout(){try{let e="",n;for(;this.stdmocks&&this.stdmocks.length>0;){let i=this.stdmocks.shift();n=i[0],this._write(n,i[1]),e+=i[1][0].toString("utf8")}e&&n&&e.at(-1)!==`
|