@shopify/cli 4.9.4 → 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-LKXFHYLI.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-UEBUGSBT.js → chunk-3A3DZVEJ.js} +1 -1
- package/dist/chunk-3C6VLJ5D.js +319 -0
- package/dist/{chunk-PB5ZZET5.js → chunk-3G4HJO72.js} +30 -30
- package/dist/chunk-3LVCG4JB.js +1 -0
- package/dist/chunk-43KLFFP7.js +1 -0
- package/dist/chunk-43R5VGKT.js +1 -0
- 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-J4J2YXH3.js → chunk-4TI7U2PN.js} +1 -1
- package/dist/{chunk-67EBF76X.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-A2VCTDKH.js → chunk-5NEGOQT6.js} +1 -1
- package/dist/{chunk-MW3JKGJH.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-7556AIVG.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-LJIJEGND.js → chunk-7UOA4DI7.js} +2 -2
- package/dist/chunk-7WPUV7GY.js +6 -0
- package/dist/chunk-7Y7AZRL3.js +10 -0
- package/dist/{chunk-NGSEF3UX.js → chunk-ACA2BGAD.js} +1 -1
- package/dist/chunk-AJMDF3QC.js +1 -0
- package/dist/{chunk-R7YJNDXW.js → chunk-AXC2MHHO.js} +1 -1
- package/dist/{chunk-DEF2G7S4.js → chunk-AYL6KBPE.js} +1 -1
- package/dist/chunk-BAHIL37I.js +1 -0
- package/dist/{chunk-RSC5NQAT.js → chunk-BCYTZ7LM.js} +1 -1
- package/dist/{chunk-AVMNIZAJ.js → chunk-BJPDJIS4.js} +1 -1
- package/dist/{chunk-7VAKNVFD.js → chunk-BN7ZXAZJ.js} +1 -1
- package/dist/chunk-BVSKBX7T.js +16 -0
- package/dist/chunk-BWRNXCVN.js +4 -0
- package/dist/{chunk-XNPUZRWP.js → chunk-C3KEDG33.js} +1 -1
- package/dist/{chunk-WEXOA4C4.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-6YDLNP4G.js → chunk-CVVQQLCF.js} +1 -1
- package/dist/chunk-CW2T7EOQ.js +1 -0
- package/dist/chunk-CZ22VZDA.js +376 -0
- package/dist/{chunk-3G2ZQ2EF.js → chunk-D7NB7YR6.js} +1 -1
- package/dist/{chunk-DYPZX7MW.js → chunk-DFQ4WTET.js} +2 -2
- package/dist/chunk-DJAZBPYA.js +3 -0
- package/dist/chunk-DNMXVMJM.js +47 -0
- package/dist/{chunk-CLD3NZYD.js → chunk-EGCWR5AS.js} +1 -1
- package/dist/{chunk-BOE2ST6J.js → chunk-EITIW5OX.js} +1 -1
- package/dist/chunk-EMSF57ZB.js +1 -0
- package/dist/{chunk-ZEBMW5KS.js → chunk-EXFBZPZS.js} +1 -1
- package/dist/chunk-FDXHQZTO.js +26 -0
- package/dist/{chunk-Q2XLIWG4.js → chunk-FFHH5LOR.js} +1 -1
- package/dist/{chunk-MMQZO2W2.js → chunk-FNLECT7B.js} +1 -1
- package/dist/{chunk-PO5T44H3.js → chunk-FWB3GLMW.js} +1 -1
- package/dist/chunk-FZCGRIOM.js +1 -0
- package/dist/{chunk-G7JW4UIM.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-IGDVKRB4.js → chunk-GFVKTWFT.js} +1 -1
- package/dist/chunk-GQNOVEKP.js +2 -0
- package/dist/{chunk-5BTLE67Z.js → chunk-GRGFA26K.js} +1 -1
- package/dist/chunk-GXORLBVN.js +2 -0
- package/dist/{chunk-3V4VL3SD.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-ENQXB532.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-45SZ5PSE.js → chunk-IQVRP7CT.js} +1 -1
- package/dist/chunk-IUP7POIE.js +6 -0
- 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-CVFPY2SH.js → chunk-JEA3C7ON.js} +1 -1
- package/dist/chunk-JOJV5E2K.js +1 -0
- package/dist/chunk-JYMDWR25.js +1 -0
- package/dist/{chunk-TPHHQAUD.js → chunk-KDPQXURV.js} +1 -1
- package/dist/{chunk-MW3IMZJ5.js → chunk-KGRIYAMA.js} +1 -1
- package/dist/chunk-KJQDS5HI.js +1 -0
- package/dist/chunk-KKPOOIE4.js +2 -0
- package/dist/{chunk-VS7QVU3Z.js → chunk-KSDU4YOB.js} +1 -1
- package/dist/chunk-L7MSPGDS.js +5 -0
- package/dist/{chunk-43URS56H.js → chunk-LDU5T3DN.js} +1 -1
- package/dist/chunk-LHKVXJPX.js +1 -0
- package/dist/{chunk-EO4YJFMY.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-NCRWOW6F.js → chunk-M5TGCSUK.js} +1 -1
- package/dist/chunk-M7LPHCP2.js +274 -0
- package/dist/{chunk-IDKRJ2F4.js → chunk-MDRVCBDO.js} +1 -1
- package/dist/chunk-MR2AUT7Q.js +1 -0
- package/dist/chunk-MXJAH2GW.js +5 -0
- package/dist/{chunk-UU6BRRYS.js → chunk-MYAIWSOO.js} +1 -1
- package/dist/{chunk-NT4A37HG.js → chunk-N2RFDHRY.js} +1 -1
- package/dist/{chunk-GSE6FXZU.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-BVB3DTNE.js → chunk-OGWPS55W.js} +1 -1
- package/dist/chunk-OQ5CLM2H.js +4 -0
- package/dist/{chunk-PVAZCZSY.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-YPCXVZ2N.js → chunk-PGLWZMJU.js} +4 -4
- package/dist/chunk-PIAD3F6M.js +16 -0
- package/dist/chunk-PMHP57MH.js +20 -0
- package/dist/{chunk-F3PZGSOY.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-NU5WLZ6Y.js → chunk-Q2SZCZE7.js} +1 -1
- package/dist/{chunk-MUM34KUM.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-7HWMURCW.js → chunk-R7EMV77H.js} +1 -1
- package/dist/chunk-RFGEM5JC.js +3 -0
- package/dist/{chunk-7A3RW2VM.js → chunk-RVQV6G5M.js} +1 -1
- package/dist/chunk-S67I4E7M.js +5 -0
- package/dist/chunk-SFPXYHHL.js +1 -0
- package/dist/{chunk-4OCVXE5Y.js → chunk-SFQEHDJY.js} +1 -1
- package/dist/chunk-SL3VBI62.js +3 -0
- package/dist/{chunk-LOWSU4BB.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-FQL2WEKX.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-D3KFKT4D.js → chunk-UOS2XLGG.js} +1 -1
- package/dist/{chunk-EMH7OHCW.js → chunk-UVRKTMF7.js} +1 -1
- package/dist/{chunk-ZTICX3AO.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-S36VGP37.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-PFXNBHQQ.js → chunk-WJSUIUBW.js} +2 -2
- package/dist/{chunk-TFXUDHCP.js → chunk-WMAFG2JD.js} +1 -1
- package/dist/chunk-X2H6I2WW.js +5 -0
- package/dist/{chunk-DSS4ECIH.js → chunk-X7HVAVSZ.js} +1 -1
- package/dist/{chunk-NYYXH2SX.js → chunk-XBQDMGUN.js} +1 -1
- package/dist/chunk-XITZIDCL.js +18 -0
- package/dist/chunk-XKRJKUA7.js +1 -0
- package/dist/{chunk-FEQHCE2E.js → chunk-XM7YUXTF.js} +2 -2
- package/dist/chunk-XMODGI45.js +1 -0
- package/dist/{chunk-B3M3KIOU.js → chunk-XNNKLUTN.js} +1 -1
- package/dist/chunk-XTREQ4A2.js +1 -0
- package/dist/chunk-YGYEM6QO.js +1 -0
- package/dist/{chunk-LWU5TKNA.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-4TZCRMBJ.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-QTLGMJDW.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-R3UAQN7T.js → local-KOZETREJ.js} +1 -1
- package/dist/{metadata-JWJG4JV4.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-APDNTBDE.js +0 -1
- package/dist/analytics-LX52KYSE.js +0 -1
- package/dist/chunk-2PDVBGQH.js +0 -7
- package/dist/chunk-2YVSZFXJ.js +0 -4
- package/dist/chunk-35WQTGN3.js +0 -5
- package/dist/chunk-37BGAWAW.js +0 -2
- package/dist/chunk-3C4WVKSO.js +0 -6
- package/dist/chunk-3LHE4GIX.js +0 -1
- package/dist/chunk-47IQIIFX.js +0 -383
- package/dist/chunk-4ES7BJEK.js +0 -1
- package/dist/chunk-4IFY7V7W.js +0 -1
- package/dist/chunk-4JGWKUJN.js +0 -2
- package/dist/chunk-4O5GQ3DS.js +0 -7
- package/dist/chunk-4O7LK5RG.js +0 -26
- package/dist/chunk-4TFJ5RW7.js +0 -8
- package/dist/chunk-4ZNBEMRT.js +0 -20
- package/dist/chunk-5JIJDUXX.js +0 -20
- package/dist/chunk-66YRAUWX.js +0 -3
- package/dist/chunk-6A4H3HPY.js +0 -7
- package/dist/chunk-6HPUOCFF.js +0 -1
- package/dist/chunk-6IDEDOXW.js +0 -2
- package/dist/chunk-6IMHGT7F.js +0 -8
- package/dist/chunk-6MC2BEW4.js +0 -1
- package/dist/chunk-73D5O7A3.js +0 -1
- package/dist/chunk-7E4MJCVE.js +0 -10
- package/dist/chunk-7HNRK2CR.js +0 -1
- package/dist/chunk-7SJHVJ3W.js +0 -5
- package/dist/chunk-ALK66U3O.js +0 -3
- package/dist/chunk-AMLCWRHU.js +0 -4
- package/dist/chunk-AYIU6Z4C.js +0 -1
- package/dist/chunk-BIWG3FQQ.js +0 -5
- package/dist/chunk-BQ3U3CQV.js +0 -1
- package/dist/chunk-C6IBY7NW.js +0 -16
- package/dist/chunk-CQF5NDTJ.js +0 -4
- package/dist/chunk-DMDLJRLW.js +0 -1
- package/dist/chunk-DMNWSUKV.js +0 -5
- package/dist/chunk-FK7GA4QQ.js +0 -1
- package/dist/chunk-FO2R6KHG.js +0 -1
- package/dist/chunk-FOAV642V.js +0 -1
- package/dist/chunk-GE4MLO3C.js +0 -5
- package/dist/chunk-GM4EFJJF.js +0 -7
- package/dist/chunk-GN66BRYF.js +0 -1
- package/dist/chunk-GPRZYFDE.js +0 -1
- package/dist/chunk-GZ7VGCVW.js +0 -3
- package/dist/chunk-HASIOUH2.js +0 -3
- package/dist/chunk-HILYTMVA.js +0 -1
- package/dist/chunk-HJHS23Q3.js +0 -1
- package/dist/chunk-HLPAVELJ.js +0 -1
- package/dist/chunk-HPM3HF7A.js +0 -1
- package/dist/chunk-HQJ62PII.js +0 -3
- package/dist/chunk-HQY6JM6G.js +0 -6
- package/dist/chunk-HSYMUYEZ.js +0 -359
- package/dist/chunk-I5PQZRYM.js +0 -32
- package/dist/chunk-IPZ6LUJV.js +0 -4
- package/dist/chunk-J4NBPC57.js +0 -1
- package/dist/chunk-J6LQR2F6.js +0 -7
- package/dist/chunk-JYGZD4HM.js +0 -1
- package/dist/chunk-K3HUQLIC.js +0 -6
- package/dist/chunk-K7D53KSJ.js +0 -1
- package/dist/chunk-KQFA5YTT.js +0 -97
- package/dist/chunk-KTD7VLHL.js +0 -2
- package/dist/chunk-L4DFMMOI.js +0 -1
- package/dist/chunk-LJZTSQRD.js +0 -11
- package/dist/chunk-LLPB6JN5.js +0 -9
- package/dist/chunk-LYIXRMQJ.js +0 -46
- package/dist/chunk-MCNK5SJ6.js +0 -2
- package/dist/chunk-MJZSSCGD.js +0 -5
- package/dist/chunk-N55MSO3X.js +0 -12
- package/dist/chunk-N5AZZYQA.js +0 -4
- package/dist/chunk-NCVGCVQ5.js +0 -6
- package/dist/chunk-O5FFMTJE.js +0 -25
- package/dist/chunk-OE3HSNSE.js +0 -16
- package/dist/chunk-ONF7XXEL.js +0 -1
- package/dist/chunk-PG4S5HJJ.js +0 -5
- package/dist/chunk-PHG4DASY.js +0 -18
- package/dist/chunk-PP4VCR4Y.js +0 -1
- package/dist/chunk-PWS4VFSD.js +0 -1
- package/dist/chunk-Q37WAD6F.js +0 -1
- package/dist/chunk-Q43LBSPT.js +0 -1
- package/dist/chunk-QAJZUJR5.js +0 -1
- package/dist/chunk-QO5RNGWA.js +0 -1
- package/dist/chunk-QPQS2YU3.js +0 -1
- package/dist/chunk-QUXQM3S3.js +0 -1
- package/dist/chunk-R3KSOCMB.js +0 -6
- package/dist/chunk-R74WHKHH.js +0 -15
- package/dist/chunk-RJSQMKKS.js +0 -1
- package/dist/chunk-RK2V6OIJ.js +0 -2
- package/dist/chunk-RUHQNF2W.js +0 -1
- package/dist/chunk-RXTLNUPF.js +0 -1
- package/dist/chunk-SNE4RHM4.js +0 -1
- package/dist/chunk-SQAS5RVZ.js +0 -10
- package/dist/chunk-SZI6G247.js +0 -103
- package/dist/chunk-TVCWDEVS.js +0 -1
- package/dist/chunk-TYMYIUIQ.js +0 -1
- package/dist/chunk-UIC7K2HX.js +0 -7
- package/dist/chunk-UNHT4ZFP.js +0 -317
- package/dist/chunk-UQ6ALA3Y.js +0 -3
- package/dist/chunk-UWI76E2L.js +0 -18
- package/dist/chunk-VE35YELD.js +0 -1
- package/dist/chunk-VGBUN3CZ.js +0 -17
- package/dist/chunk-VMNOSVPT.js +0 -8
- package/dist/chunk-VNFUCH6T.js +0 -1
- package/dist/chunk-W4KE7AO6.js +0 -1
- package/dist/chunk-WEPO4J2F.js +0 -19
- package/dist/chunk-WLWHCUPZ.js +0 -1
- package/dist/chunk-XGKCPD6W.js +0 -1
- package/dist/chunk-XNVOKAF2.js +0 -1
- package/dist/chunk-XSMCQLJW.js +0 -1
- package/dist/chunk-XUUIBSLW.js +0 -1
- package/dist/chunk-XWQM2NZ2.js +0 -2
- package/dist/chunk-Y3PY5LP7.js +0 -3
- package/dist/chunk-Y62EMOQA.js +0 -1
- package/dist/chunk-Y743UVBS.js +0 -16
- package/dist/chunk-YBSX53QP.js +0 -1
- package/dist/chunk-YHCP326A.js +0 -16
- package/dist/chunk-YHESTFMZ.js +0 -4
- package/dist/chunk-YT27FIQN.js +0 -275
- package/dist/chunk-YTR5JHNJ.js +0 -2
- package/dist/chunk-YYA5VGDW.js +0 -1
- package/dist/chunk-Z6X2GT6Q.js +0 -1
- package/dist/chunk-ZEE32UH6.js +0 -1
- package/dist/cli/commands/app/app-logs/sources.js +0 -1
- package/dist/command-json-schema-SS4GDJTQ.js +0 -1
- package/dist/conf-store-54YJCIDK.js +0 -1
- package/dist/custom-oclif-loader-3UBH7Q7R.js +0 -1
- package/dist/deprecations-ZX7ZKF6L.js +0 -1
- package/dist/dist-JMNE7MP6.js +0 -1
- package/dist/dist-M2AXGBOL.js +0 -1
- package/dist/environments-KD2IDYPG.js +0 -1
- package/dist/error-AA6LW3PN.js +0 -1
- package/dist/error-handler-4VW3AV2G.js +0 -1
- package/dist/fs-4QZCAEP7.js +0 -1
- package/dist/is-global-FKG327CG.js +0 -1
- package/dist/json-error-32ETFU3V.js +0 -1
- package/dist/node-package-manager-M4XHUTQR.js +0 -1
- package/dist/notifications-system-QVM2JWKB.js +0 -1
- package/dist/os-FEHBQQKP.js +0 -1
- package/dist/out-53ABAVL7.js +0 -1
- package/dist/output-2LS5AOAH.js +0 -1
- package/dist/system-TMD2LYZM.js +0 -1
- package/dist/ui-FNPICAAH.js +0 -1
- package/dist/upgrade-YYPP5VZY.js +0 -1
- package/dist/version-OX3MORI6.js +0 -1
- package/dist/version-P7D5ME4Z.js +0 -1
- package/dist/workerd-TKVRZK2F.js +0 -18
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{f as A,g as R,h as j}from"./chunk-4GOJQKY5.js";import{a as T}from"./chunk-7RPFJZLP.js";import{a as S}from"./chunk-FWB3GLMW.js";import{Na as N,b as I,c as w}from"./chunk-3C6VLJ5D.js";import{b as y,c as x}from"./chunk-Q2SZCZE7.js";import{z as m}from"./chunk-CZ22VZDA.js";import{a as d}from"./chunk-BN7ZXAZJ.js";import{qb as b,sb as g,wb as P}from"./chunk-LWCTKI4Z.js";import{b as r}from"./chunk-FZCGRIOM.js";import{c as h}from"./chunk-IWTNUJGY.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();a();import{resolve as u}from"node:path";function v(t,{functionRunnerPath:n,schemaPath:e}){let i=t.configuration;return{function:{handle:i.handle??null,name:t.name,apiVersion:i.api_version??null,directory:u(t.directory),targets:(i.targeting??[]).filter(({target:o})=>!!o).map(o=>({target:o.target,inputQueryPath:o.input_query?u(h(t.directory,o.input_query)):null,export:o.export===""?null:o.export??null})),schemaPath:e?u(e):null,wasmPath:u(h(t.directory,i.build?.path??t.outputRelativePath)),functionRunnerPath:u(n)}}}a();var s=r.string().regex(/^(?:\/|[a-zA-Z]:[\\/]|\\\\)/).describe("An absolute native filesystem path."),C=r.object({target:r.string().min(1),inputQueryPath:s.nullable().describe("Null when no input query is configured."),export:r.string().min(1).nullable().describe("Null when no WebAssembly export is configured.")}).strict(),O=r.object({handle:r.string().nullable().describe("Null when the extension does not configure a handle."),name:r.string(),apiVersion:r.string().nullable().describe("The configured API version, or null when unavailable."),directory:s,targets:r.array(C).describe("All configured targets; empty when none are configured."),schemaPath:s.nullable().describe("Null when a GraphQL schema is unavailable."),wasmPath:s,functionRunnerPath:s}).strict(),l=d({name:"FunctionInfoResult",schema:r.object({function:O}).strict(),definitions:{FunctionInfo:O,FunctionTarget:C}});a();function B(t,n){return{title:`CONFIGURATION
|
|
2
|
+
`,body:{tabularData:[["Handle",t.handle??"N/A"],["Name",n??"N/A"],["API Version",t.api_version??"N/A"]],firstColumnSubdued:!0}}}function E(t){if(Object.keys(t).length===0)return null;let n=[];return Object.entries(t).forEach(([e,i])=>{n.push([g`${b.cyan(e)}`.value,""]),i.inputQueryPath&&n.push([{subdued:" Input Query Path"},{filePath:i.inputQueryPath}]),i.export&&n.push([{subdued:" Export"},i.export])}),{title:`
|
|
3
|
+
TARGETING
|
|
4
|
+
`,body:{tabularData:n}}}function G(t,n){return{title:`
|
|
5
|
+
BUILD
|
|
6
|
+
`,body:{tabularData:[["Schema Path",{filePath:n??"N/A"}],["Wasm Path",{filePath:t}]],firstColumnSubdued:!0}}}function U(t){return{title:`
|
|
7
|
+
FUNCTION RUNNER
|
|
8
|
+
`,body:{tabularData:[["Path",{filePath:t}]],firstColumnSubdued:!0}}}function F(t,n){if(n==="json"){P(l.encode(t));return}let e=t.function,i=Object.fromEntries(e.targets.map(({target:f,inputQueryPath:Q,export:D})=>[f,{inputQueryPath:Q??void 0,export:D??void 0}])),o=[B({handle:e.handle??void 0,api_version:e.apiVersion??void 0},e.name)],c=E(i);c&&o.push(c),o.push(G(e.wasmPath,e.schemaPath??void 0)),o.push(U(e.functionRunnerPath)),m({customSections:o})}var p=class t extends T{static get jsonOutputSchema(){return l}static summary="Print basic information about your function.";static descriptionWithMarkdown=`The information returned includes the following:
|
|
9
|
+
|
|
10
|
+
- The function handle
|
|
11
|
+
- The function name
|
|
12
|
+
- The function API version
|
|
13
|
+
- The targeting configuration
|
|
14
|
+
- The schema path
|
|
15
|
+
- The WASM path
|
|
16
|
+
- The function runner path`;static description=this.descriptionForHelp();static flags={...y,...S,...A,...x};async run(){let{flags:n}=await this.parse(t),{app:e}=await N({directory:n.path,userProvidedConfigName:n.config}),i=await R(e,n.path),o=I();await w(o);let c=await j(i,n.path,n["client-id"],n.reset,n.config),f=v(i,{functionRunnerPath:o.path,schemaPath:c});return F(f,n.json?"json":"text"),{app:e}}};export{p as a};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import{e as se}from"./chunk-QFWWCZOI.js";import{p as L,v as re}from"./chunk-DJAZBPYA.js";import{ca as Te,da as ie}from"./chunk-M5TGCSUK.js";import{r as X}from"./chunk-IUP7POIE.js";import{b as oe,c as E}from"./chunk-Q2SZCZE7.js";import{A as Z,z as T}from"./chunk-CZ22VZDA.js";import{c as Q}from"./chunk-J6TW43TG.js";import{h as N}from"./chunk-2VSNFOKD.js";import{Bb as ne,Da as D,N as I,Sa as j,_a as M,na as B,ta as A,wb as g,yb as ee,zb as te}from"./chunk-LWCTKI4Z.js";import{b as m,h as V,i as z,j as K}from"./chunk-FZCGRIOM.js";import{b as Oe}from"./chunk-YTUUU33R.js";import{c as O,e as R,g as U,o as q}from"./chunk-IWTNUJGY.js";import{e as b,g as l}from"./chunk-VKWPEFWQ.js";l();l();l();import{AsyncLocalStorage as xe}from"node:async_hooks";import{format as Se}from"node:util";var ce=new xe,x=0,P;async function ae(t){if(K()!=="json")return t();x===0&&(P=console.error,console.error=(...e)=>{ce.getStore()?z({type:"diagnostic",level:"warning",message:Se(...e)}):P(...e)}),x++;try{return await ce.run(!0,t)}finally{Fe()}}function Fe(){x--,x===0&&(console.error=P)}var i=b(ie(),1),k=b(Te(),1);function _e(t,e){return t instanceof Error&&"code"in t&&t.code==="ENOENT"&&"path"in t&&typeof t.path=="string"&&R(t.path)===R(e)}async function Re(t){if(!(t===void 0||i.ModernIdentifiers.some(e=>e===t))&&await j(t)&&await D(await B(t)))throw new N(`Theme Check config must be a file, but ${t} is a directory.`,"Pass the path to a .theme-check.yml file to --config, or omit --config to use the .theme-check.yml in your theme root. To choose the theme directory, use --path.")}async function $(t,e){await Re(t);try{return await e()}catch(r){throw t!==void 0&&_e(r,t)?new N(`Theme Check config file not found: ${t}`):r}}function Ie(t){switch(t){case"error":return i.Severity.ERROR;case"suggestion":case"warning":return i.Severity.WARNING;case"style":case"info":return i.Severity.INFO;case"crash":return}}function ue(t){switch(t){case i.Severity.ERROR:return"error";case i.Severity.WARNING:return"warning";case i.Severity.INFO:return"info"}}function Ae(t){return new Map(t.map(e=>[e.uri,e.source]))}function je(t,e,r){let o=t.split(`
|
|
2
|
+
`).slice(e,r+1),s=o.length===1;return o.map((c,a)=>{let u=e+a+1,h=s?c.trim():c;return`${u} ${h}`}).join(`
|
|
3
|
+
`)}function Ne(t){switch(t){case i.Severity.ERROR:return{error:`
|
|
4
|
+
[error]:`};case i.Severity.WARNING:return{warn:`
|
|
5
|
+
[warning]:`};case i.Severity.INFO:return{info:`
|
|
6
|
+
[info]:`}}}function Ee(t,e){return t.map((n,o)=>{let{message:s,uri:c,start:a,end:u,check:h,severity:y}=n,f=e.get(c),p=f===void 0?[]:[`
|
|
7
|
+
|
|
8
|
+
${je(f,a.line,u.line)}`],v=o===t.length-1?"":`
|
|
9
|
+
|
|
10
|
+
`;return[Ne(y),{bold:h},{subdued:`
|
|
11
|
+
${s}`},...p,v]}).flat()}var Le=(t,e)=>t.severity-e.severity;function G(t){let e=t.reduce((r,n)=>{let{uri:o}=n,s=i.path.fsPath(o);return r[s]??=[],r[s].push(n),r},{});return Object.keys(e).reduce((r,n)=>(r[n]=e[n].sort(Le),r),{})}function me(t){return t.reduce((e,r)=>(e[r.severity]=(e[r.severity]??0)+1,e),{})}function he(t,e,r){let n=[`${r.length} files inspected`];if(t.length===0)n.push("with no offenses found.");else{n.push(`with ${t.length} total offenses found across ${Object.keys(e).length} files.`);let o=me(t);o[i.Severity.ERROR]&&n.push(`
|
|
12
|
+
${o[i.Severity.ERROR]} errors.`),o[i.Severity.WARNING]&&n.push(`
|
|
13
|
+
${o[i.Severity.WARNING]} warnings.`),o[i.Severity.INFO]&&n.push(`
|
|
14
|
+
${o[i.Severity.INFO]} info issues.`)}return n}function fe(t,e,r,n){let o=Ae(r);Object.keys(t).sort().forEach(c=>{let a=c.replace(e,"").slice(1);T({headline:n?`[${n}] ${a}`:a,body:Ee(t[c],o)})})}function Pe(t,e){return Object.entries(t).map(([r,n])=>{let o=n.map(c=>({check:c.check,severity:ue(c.severity),start_row:c.start.line,start_column:c.start.character,end_row:c.end.line,end_column:c.end.character,message:c.message})),s=me(n);return{environment:e,path:r,offenses:o,errorCount:s[i.Severity.ERROR]??0,warningCount:s[i.Severity.WARNING]??0,infoCount:s[i.Severity.INFO]??0}})}function le(t,e){process.exit(H(t,e)?1:0)}function H(t,e){let r=e?Ie(e):void 0;return r!==void 0&&t.some(n=>n.severity<=r)}function $e(t){return t.split(`
|
|
15
|
+
`).map(e=>`# ${e}`).join(`
|
|
16
|
+
`)}async function de(t){let e=".theme-check.yml",r=O(t,e);if(await j(r)){ee(`${e} already exists at ${t}`);return}let{settings:n}=await(0,i.loadConfig)(void 0,t),o=$e(k.default.stringify(n)),s=k.default.stringify({extends:"theme-check:recommended",ignore:["node_modules/**"]});await A(r,`${s}${o}`),te(`Created ${e} at ${t}`)}var Ge=async(t,e)=>{let r=(0,i.applyFixToString)(t.source,e),n=i.path.fsPath(t.uri);await A(n,r)};async function pe(t,e){await(0,i.autofix)(t,e,Ge)}async function ge(t,e,r){let{ignore:n,settings:o,rootUri:s}=await $(e,()=>(0,i.loadConfig)(e,t)),c={extends:[],ignore:I(n??[]),rootUri:s,...o},a=r?{[r]:c}:c;g(k.default.stringify(a))}async function ye(t,e,r){let{settings:n,ignore:o,checks:s}=await $(e,()=>(0,i.loadConfig)(e,t)),c=I(o??[]),u=Object.keys(n).reduce((y,f)=>{let{severity:p,enabled:v,...C}=n[f];if(!v)return y;let Ce=ue(p??i.Severity.INFO),w=s.find(be=>be.meta.code===f),we=w&&w.meta?{description:w.meta.docs.description,doc:w.meta.docs.url}:{};return y[f]={severity:Ce,...we,ignored_patterns:`[${c.join(", ")}]`,...C},y},{}),h=r?{[r]:u}:u;g(k.default.stringify(h))}function ve(t){return"_handle"in t&&typeof t._handle=="object"&&t._handle!==null&&typeof t._handle.setBlocking=="function"}async function W(t,e,r){let{offenses:n,theme:o}=await $(e,()=>ae(()=>(0,i.themeCheckRun)(t,e,c=>{process.env.SHOPIFY_TMP_FLAG_DEBUG&&ne(c)})));return{result:Pe(G(n),r),offenses:n,theme:o}}l();l();import{resolve as He}from"node:path";var ke=m.object({filePath:m.string().refine(U).describe("The absolute native path of the file."),check:m.string(),severity:m.enum(["error","warning","info"]),startRow:m.number().int().positive().describe("The one-based starting line."),startColumn:m.number().int().positive().describe("The one-based starting column."),endRow:m.number().int().positive().describe("The one-based ending line."),endColumn:m.number().int().positive().describe("The one-based ending column."),message:m.string()}).strict(),We=m.object({valid:m.boolean().describe("Whether the validation passes the selected blocking policy."),issues:m.array(ke),errorCount:m.number().int().nonnegative(),warningCount:m.number().int().nonnegative(),infoCount:m.number().int().nonnegative()}).strict(),S=se({name:"ThemeCheckResult",schema:We,definitions:{ThemeCheckIssue:ke},project:t=>{let{files:e,valid:r}=Array.isArray(t)?{files:t,valid:void 0}:t;return{valid:r??e.every(n=>n.errorCount===0),issues:e.flatMap(n=>n.offenses.map(o=>({filePath:He(n.path),check:o.check,severity:o.severity,startRow:o.start_row+1,startColumn:o.start_column+1,endRow:o.end_row+1,endColumn:o.end_column+1,message:o.message}))),errorCount:e.reduce((n,o)=>n+o.errorCount,0),warningCount:e.reduce((n,o)=>n+o.warningCount,0),infoCount:e.reduce((n,o)=>n+o.infoCount,0)}}});function Y(t){return JSON.stringify(JSON.parse(S.encode(t)))}function F({result:t,offenses:e,theme:r,valid:n},o,s,c){let a=G(e);if(o==="text"&&(fe(a,s,r,c),(e.length?T:Z)({headline:c?`[${c}] Theme Check Summary.`:"Theme Check Summary.",body:he(e,a,r)})),o==="json"){let u=process.stdout;ve(u)&&u._handle.setBlocking(!0),g(Y(n===void 0?t:{files:t,valid:n}))}}var d=b(Oe(),1);var J=b(ie(),1);var _=class extends re{static get jsonOutputSchema(){return S}static summary="Validate the theme.";static descriptionWithMarkdown="Calls and runs [Theme Check](https://shopify.dev/docs/themes/tools/theme-check) to analyze your theme code for errors and to ensure that it follows theme and Liquid best practices. [Learn more about the checks that Theme Check runs.](https://shopify.dev/docs/themes/tools/theme-check/checks)";static description=this.descriptionForHelp();static flags={...oe,...E,json:d.Flags.boolean({...E.json,env:"SHOPIFY_FLAG_JSON",exclusive:["init","version","print","list"]}),path:L.path,"auto-correct":d.Flags.boolean({char:"a",required:!1,description:"Automatically fix offenses",env:"SHOPIFY_FLAG_AUTO_CORRECT"}),config:d.Flags.string({char:"C",required:!1,description:`Path to a config file to use, overriding .theme-check.yml if present
|
|
17
|
+
Use --path to set the theme directory
|
|
18
|
+
Supports all theme-check: config values, e.g., theme-check:theme-app-extension,
|
|
19
|
+
theme-check:recommended, theme-check:all
|
|
20
|
+
For backwards compatibility, :theme_app_extension is also supported `,env:"SHOPIFY_FLAG_CONFIG"}),"fail-level":d.Flags.string({required:!1,description:"Minimum severity for exit with error code",env:"SHOPIFY_FLAG_FAIL_LEVEL",options:["crash","error","suggestion","style","warning","info"],default:"error"}),init:d.Flags.boolean({required:!1,description:"Generate a .theme-check.yml file",env:"SHOPIFY_FLAG_INIT"}),list:d.Flags.boolean({required:!1,description:"List enabled checks",env:"SHOPIFY_FLAG_LIST"}),output:d.Flags.string({char:"o",required:!1,description:"The output format to use",env:"SHOPIFY_FLAG_OUTPUT",options:["text","json"],default:"text"}),print:d.Flags.boolean({required:!1,description:"Output active config to STDOUT",env:"SHOPIFY_FLAG_PRINT"}),version:d.Flags.boolean({char:"v",required:!1,description:"Print Theme Check version",env:"SHOPIFY_FLAG_VERSION"}),environment:L.environment};static multiEnvironmentsFlags=["path"];async command(e,r,n){let o=e.path,s=e.environment?.[0],a=e.config?.startsWith(":")&&J.LegacyIdentifiers.has(e.config.slice(1))?J.LegacyIdentifiers.get(e.config.slice(1)):e.config;if(e.init){await de(o);return}if(e.version){let v=await M(O("node_modules","@shopify","theme-check-node","package.json"),{type:"file",cwd:q(import.meta.url)}),C="unknown";v&&(C=await X(v)??"unknown"),g(C);return}if(e.print){await ge(o,a,s);return}if(e.list){await ye(o,a,s);return}let u=await W(o,a,s),{offenses:h,theme:y}=u,f=e.json||e.output==="json",p=!H(h,e["fail-level"]);if(f||F({...u,valid:p},e.output,o,s),e["auto-correct"]&&await pe(y,h),f&&!n&&F({...u,valid:p},"json",o,s),f)return p||(process.exitCode=1),{files:u.result,valid:p};if(!n)return le(h,e["fail-level"])}async _run(){let e=this.argv.indexOf("--"),r=e<0?this.argv:this.argv.slice(0,e),n=Ye(r)==="json";return n&&!r.includes("--json")&&(this.argv=[...r,"--json",...e<0?[]:this.argv.slice(e)]),n?V({outputMode:"json",sink:Q},()=>super._run()):super._run()}collectsEnvironmentResults(e){return!!e.json||e.output==="json"}validateCommandFlags(e){if(!this.collectsEnvironmentResults(e))return;let r=["init","version","print","list"].find(n=>e[n]);r&&this.error(`JSON output can't be used with --${r}.`,{exit:2})}renderEnvironmentResults(e){g(Y({environments:e}))}};function Ye(t){let e=process.env.SHOPIFY_FLAG_OUTPUT,r=Object.entries(_.flags);for(let n=0;n<t.length;n++){let o=t[n];if(o.startsWith("--")){let[s,...c]=o.slice(2).split("=");if(r.find(([h])=>h===s)?.[1]?.type!=="option")continue;let u=c.length?c.join("="):t[++n];s==="output"&&(e=u)}else if(o.startsWith("-"))for(let s=1;s<o.length;s++){let c=r.find(([,u])=>u.char===o[s]);if(!c)break;if(c[1].type!=="option")continue;let a=o.slice(s+1).replace(/^=/,"")||t[++n];c[0]==="output"&&(e=a);break}}return e}async function xt(t,e,r,n){let o=await W(t,r,n);return F(o,e,t,n),{offenses:o.offenses,theme:o.theme}}export{_ as a,xt as b};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as I}from"./chunk-LFOBYEWG.js";import{j as w}from"./chunk-
|
|
1
|
+
import{a as I}from"./chunk-LFOBYEWG.js";import{j as w}from"./chunk-H4V55Y3Z.js";import{w as l}from"./chunk-IUP7POIE.js";import{m as u,n as m}from"./chunk-ZT5WFUKJ.js";import{a as h}from"./chunk-4C2DAX5T.js";import{B as y,C as N,T as S,z as g}from"./chunk-CZ22VZDA.js";import{o as d}from"./chunk-335BUVBP.js";import{j as _}from"./chunk-2VSNFOKD.js";import{Bb as a}from"./chunk-LWCTKI4Z.js";import{b as n}from"./chunk-FZCGRIOM.js";import{a as f}from"./chunk-JD5P5RAJ.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();var C="https://cdn.shopify.com/static/cli/notifications.json",T="Cache is empty",O=["notifications:list","notifications:generate","init","app:init","theme:init","hydrogen:init","cache:clear","send-analytics"],$=["127.0.0.1","localhost","::1","[::1]"];function c(){let e=process.env.SHOPIFY_CLI_NOTIFICATIONS_URL;if(e)try{let t=new globalThis.URL(e);if(v(t))return e;a(`The notifications URL provided via SHOPIFY_CLI_NOTIFICATIONS_URL (${e}) must use https, or http with a loopback host. Falling back to default.`)}catch{a(`The notifications URL provided via SHOPIFY_CLI_NOTIFICATIONS_URL (${e}) is not a valid URL. Falling back to default.`)}return C}function v(e){return e.protocol==="https:"?!0:e.protocol==="http:"&&$.includes(e.hostname)}var E=n.object({id:n.string(),message:n.string(),type:n.enum(["info","warning","error"]),frequency:n.enum(["always","once","once_a_day","once_a_week"]),ownerChannel:n.string(),cta:n.object({label:n.string(),url:n.string().url()}).optional(),title:n.string().optional(),minVersion:n.string().optional(),maxVersion:n.string().optional(),minDate:n.string().optional(),maxDate:n.string().optional(),commands:n.array(n.string()).optional(),surface:n.string().optional()}),x=n.object({notifications:n.array(E)});async function Z(e,t=process.env){try{let r=I();if(D(r,t)||d(t))return;let o=await k(),i=A(o.notifications,r,e);a(`Notifications to show: ${i.length}`),await L(i)}catch(r){if(r.message===T){a("Notifications to show: 0 (Cache is empty)");return}if(r.message==="abort")throw new _;let o=`Error showing notifications: ${r.message}`;a(o);let{sendErrorToBugsnag:i}=await import("./error-handler-74HKA23T.js");await i(o,"unexpected_error")}}function D(e,t=process.env){return f(t.CI)||f(t.SHOPIFY_UNIT_TEST)||O.includes(e)}async function L(e){e.slice(0,2).forEach(t=>{let r={headline:t.title,body:t.message.replace(/\\n/g,`
|
|
2
2
|
`),link:t.cta};switch(t.type){case"info":{g(r);break}case"warning":{y(r);break}case"error":throw N(r),new Error("abort")}u(`notification-${t.id}`,new Date().getTime().toString())})}async function k(){let e=`notifications-${c()}`,t=m(e)?.value;if(!t)throw new Error(T);let r=JSON.parse(t);return x.parse(r)}async function ee(){a("Fetching notifications...");let e=await w(c(),void 0,{useNetworkLevelRetry:!1,useAbortSignal:!0,timeoutMs:3*1e3});if(e.status!==200)throw new Error(`Failed to fetch notifications: ${e.statusText}`);let t=await e.text(),r=JSON.parse(t),o=x.parse(r);return await F(t),o}async function F(e){u(`notifications-${c()}`,e),a(`Notifications from ${c()} stored in the cache`)}function te(e,t=process.argv,r=process.env){if(D(e,r)||!t[1])return;let o=process.execPath,s=[t[1],"notifications","list","--ignore-errors"];S(o,s,{background:!0,env:{...process.env,SHOPIFY_CLI_NO_ANALYTICS:"1"},externalErrorHandler:async b=>{a(`Failed to fetch notifications in background: ${b.message}`)}})}function A(e,t,r,o=new Date(new Date().setUTCHours(0,0,0,0)),i=h){return e.filter(s=>V(s,i)).filter(s=>B(s,o)).filter(s=>R(s,t)).filter(s=>U(s,t,r)).filter(s=>H(s))}function V(e,t){let r=!e.minVersion||l(t,`>=${e.minVersion}`),o=!e.maxVersion||l(t,`<=${e.maxVersion}`);return r&&o}function B(e,t){let r=!e.minDate||new Date(e.minDate)<=t,o=!e.maxDate||new Date(e.maxDate)>=t;return r&&o}function R(e,t){return t===""?!0:!e.commands||e.commands.includes(t)}function U(e,t,r){let o=t.split(":")[0]??"all",i=e.surface??"all";return r?r.includes(i):i===o||i==="all"}function H(e){if(!e.frequency)return!0;let t=`notification-${e.id}`,r=m(t)?.value;if(!r)return!0;switch(e.frequency){case"always":return!0;case"once":return!1;case"once_a_day":return new Date().getTime()-Number(r)>24*3600*1e3;case"once_a_week":return new Date().getTime()-Number(r)>168*3600*1e3}}function re(e){let t=[];return e.minDate&&t.push(`from ${e.minDate}`),e.maxDate&&t.push(`to ${e.maxDate}`),e.minVersion&&t.push(`from v${e.minVersion}`),e.maxVersion&&t.push(`to v${e.maxVersion}`),e.frequency==="once"&&t.push("show only once"),e.frequency==="once_a_day"&&t.push("show once a day"),e.frequency==="once_a_week"&&t.push("show once a week"),e.surface&&t.push(`surface = ${e.surface}`),e.commands&&t.push(`commands = ${e.commands.join(", ")}`),t.join(`
|
|
3
3
|
`)}export{Z as a,k as b,ee as c,te as d,A as e,re as f};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as y}from"./chunk-5TB52UUV.js";import{xa as i}from"./chunk-H4V55Y3Z.js";import{B as l,C as p,F as m,I as h,W as a}from"./chunk-CZ22VZDA.js";import{h as s}from"./chunk-2VSNFOKD.js";import{i as d,j as f}from"./chunk-FZCGRIOM.js";import{b as c}from"./chunk-43R5VGKT.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();function w(e){return[`'${e.name}'`,{subdued:`(#${e.id})`}]}function x(e){return{list:{items:e.map(w)}}}async function M(e,r="It doesn't seem like you're running this command in a theme directory.",o,n){if(e)return!0;if(n)return f()==="json"?d({type:"diagnostic",level:"error",message:`${o?`Environment: ${o}
|
|
2
|
+
`:""}${r}`}):p({headline:o?`Environment: ${o}`:"",body:r}),!1;if(l({body:r}),c())throw new s("This command must run from a theme directory when user input is unavailable.","Run the command from a theme directory, or use `--force` to continue.");if(!a())return!0;let t=await m({message:"Do you want to proceed?"});return i(`theme-service:confirm-directory:${t}`),t}async function k(e,r,o){if(e.role!==y||o)return!0;if(!a())throw new s(`Can't ${r} on the live theme when user input is unavailable.`,"Use `--allow-live` to confirm that you want to continue.");let n=`You're about to ${r} on your live theme "${e.name}". This will make changes visible to customers. Are you sure you want to proceed?`,t=await m({message:n,confirmationMessage:"Yes, proceed with live theme",cancellationMessage:"No, cancel"});return i(`theme-service:confirm-live-theme:${t}`),t}async function D(e,r,o=!1){e.length>0&&await h(e,{renderOptions:{stdout:r??process.stderr},noProgressBar:o})}export{w as a,x as b,M as c,k as d,D as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as f,c as D,d as _,e as H}from"./chunk-LHKVXJPX.js";import{c as T,e as w,h as E}from"./chunk-QFWWCZOI.js";import{g as R,p as j,v as x}from"./chunk-DJAZBPYA.js";import{e as v}from"./chunk-ZT5WFUKJ.js";import{b as O,c as F}from"./chunk-Q2SZCZE7.js";import{z as y}from"./chunk-CZ22VZDA.js";import{Bb as p,sb as u,wb as l}from"./chunk-LWCTKI4Z.js";import{b as o}from"./chunk-FZCGRIOM.js";import{b as q}from"./chunk-YTUUU33R.js";import{e as P,g as r}from"./chunk-VKWPEFWQ.js";r();r();async function I(e,t){let n=t.storeFqdn,s=new H({...f.reduce((h,a)=>(h[a]=e.role===a,h),{}),theme:e.id?.toString()??e.name}),m=!!e.json,i=await D(t,{allowEmpty:m});return s.any()&&(i=_(n,i,s,{allowEmpty:m})),i}r();r();var W=o.object({id:o.number(),name:o.string(),processing:o.boolean(),createdAtRuntime:o.boolean(),role:o.string()}),Y=o.array(W),c=w({name:"ThemeListResult",schema:o.object({themes:o.array(T.extend({processing:o.boolean()}).strict())}).strict().describe("The complete theme library after applying the requested filters."),definitions:{Theme:T},project(e){return{themes:Y.parse(e).map(t=>({...E(t),processing:t.processing}))}}});r();var A;function L(){return A??=new v({projectName:"shopify-cli-host-theme-conf"}),A}function $(e){return p(u`Getting host theme...`),L().get(e)}function Z(e,t){p(u`Setting host theme...`),L().set(e,t)}function ee(e){p(u`Removing host theme...`),L().delete(e)}function C(e,t){return{title:e,body:{tabularData:t}}}function G(e,t,n){if(t==="json"){l(c.encode(e));return}let s=R(),m=$(n.store),i=e.map(({id:a,name:J,role:b})=>{let g="";return b&&(g=`[${b}]`,[s,m].includes(`${a}`)&&(g+=" [current]")),[J,g,`#${a}`]}),h=[["name","role","id"],["\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"],...i];y({customSections:[...n.environment?[{title:`${n.store} theme library`,body:[{subdued:`Environment name: ${n.environment}`}]}]:[],C("",h)]})}var d=P(q(),1);var S=class extends x{static get jsonOutputSchema(){return c}static descriptionWithMarkdown="Lists the themes in your store, along with their IDs and statuses.";static description=this.descriptionForHelp();static flags={...O,...F,...j,role:d.Flags.custom({description:"Only list themes with the given role.",options:f,env:"SHOPIFY_FLAG_ROLE"})(),name:d.Flags.string({description:"Only list themes that contain the given name.",env:"SHOPIFY_FLAG_NAME"}),id:d.Flags.integer({description:"Only list theme with the given ID.",env:"SHOPIFY_FLAG_ID"})};static multiEnvironmentsFlags=["store","password"];async command(t,n,s=!1){let m=await I(t,n);if(t.json&&s)return m;G(m,t.json?"json":"text",{store:n.storeFqdn,environment:t.environment})}renderEnvironmentResults(t){l(c.encode({environments:t}))}};export{$ as a,Z as b,ee as c,S as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{da as j,la as W,ma as J,na as N,oa as q,pa as L,qa as B,ra as R,sa as K,ta as I,ua as Q,va as S,wa as Y,xa as O,ya as Z}from"./chunk-3C6VLJ5D.js";import{D as f,s as A,v as z}from"./chunk-WDFCOZAY.js";import{d as X}from"./chunk-UOS2XLGG.js";import{A as $,E as h}from"./chunk-CZ22VZDA.js";import{h as E,j as H}from"./chunk-2VSNFOKD.js";import{Sa as k,X as p,_ as w,pa as V,sb as G,va as U,xa as P}from"./chunk-LWCTKI4Z.js";import{c as y,i as F}from"./chunk-IWTNUJGY.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();function ee(e){if(e.reason==="no-extensions")throw new E("No extensions to migrate");$({headline:["Imported the following extensions from the dashboard:"],body:e.extensions.map(({extension:t,directory:n})=>G`• "${t.title}" at: ${y("extensions",F(n))}`.value).join(`
|
|
2
|
+
`)})}s();s();function te(e){switch(e){case g.Offsite:return N;case g.CreditCard:return S;case g.CustomCreditCard:return I;case g.CustomOnsite:return R;case g.Redeemable:return L;case g.CardPresent:return O}}var g;(function(e){e.Offsite="payments_app",e.CreditCard="payments_app_credit_card",e.CustomCreditCard="payments_app_custom_credit_card",e.CustomOnsite="payments_app_custom_onsite",e.Redeemable="payments_app_redeemable",e.CardPresent="payments_app_card_present"})(g||(g={}));function ne(e,t){let n=e.activeVersion?.context??e.draftVersion?.context??te(e.type);switch(n){case N:return x(e,t,q);case S:return x(e,t,Y);case I:return x(e,t,Q);case R:return x(e,t,K);case L:return x(e,t,B);case O:return x(e,t,Z);default:throw new Error(`Unsupported extension: ${n}`)}}function x(e,t,n){let o=(e.activeVersion??e.draftVersion)?.config;if(!o)throw new Error("No config found for extension");let a=JSON.parse(o),c=n(a,t);c&&delete c.api_version;let l=e.activeVersion?.context??e.draftVersion?.context??te(e.type);return{api_version:a.api_version,extensions:[{name:e.title,type:"payments_extension",handle:p(e.title.substring(0,f)),...c,targeting:[{target:`${l}`}]}]}}s();s();var ue=new Map(J.map(e=>[e[1],e[0]])),me=(e,t)=>{let n=ue.get(e.uiType);if(!n)throw new E(`Field type ${e.uiType} is not supported`);let i={key:e.name,description:e.description??void 0,type:n};return t==="flow_action_definition"&&(i.name=e.label,i.required=e.required),i},de=(e,t)=>{let o={type:t==="flow_action_definition"?`${e.name.replace("_id","")}_reference`:`${e.uiType}_reference`};return t==="flow_action_definition"&&(o.required=e.required),e.uiType==="marketing-activity-id"&&(o.marketingActivityCreateUrl=e.marketingActivityCreateUrl,o.marketingActivityDeleteUrl=e.marketingActivityDeleteUrl),o},ie=(e,t)=>t?t.map(i=>i.uiType==="commerce-object-id"||i.uiType==="marketing-activity-id"||W.includes(i.uiType)?de(i,e):me(i,e)):[];function oe(e){let t=e.activeVersion?.config??e.draftVersion?.config;if(!t)throw new Error("No config found for extension");let n=e.type==="flow_action_definition"?"https://url.com/api/execute":void 0,i;if(e.type==="flow_trigger_discovery_webhook"){let o=JSON.parse(t);i={extensions:[{type:"flow_trigger_lifecycle_callback",name:e.title,handle:p(e.title.substring(0,f)),url:o.url}]}}else{let o=JSON.parse(t),a=ie(e.type,o.fields??[]);i={extensions:[{type:e.type.replace("_definition",""),name:o.title,handle:p(e.title.substring(0,f)),description:o.description,runtime_url:o.url??n,config_page_url:o.custom_configuration_page_url,config_page_preview_url:o.custom_configuration_page_preview_url,validation_url:o.validation_url}],settings:(a?.length??0)>0?{fields:a}:void 0}}return i}s();s();var re=e=>{let t=e.split("#");if(t.length!==2||t.some(c=>c===""||c===void 0))throw new Error("Invalid context");let n="admin",i=_e(t[0]??""),o=ge(t[1]??""),a="link";return o==="selection"?[n,`${i}-index`,`${o}-action`,a].join("."):[n,`${i}-${o}`,"action",a].join(".")},ge=e=>{switch(e.toLocaleLowerCase()){case"show":return"details";case"index":return"index";case"action":return"selection";case"fulfilled_card":return"fulfilled-card";default:throw new Error(`Invalid context location: ${e}`)}},_e=e=>e.toLocaleLowerCase()==="variants"?"product-variant":w(e.toLocaleLowerCase().replace(new RegExp("(s)$"),""));function se(e,t,n){let i=e.activeVersion?.config??e.draftVersion?.config;if(!i)throw new Error("No config found for extension");let o=e.activeVersion?.context??e.draftVersion?.context;if(!o)throw new Error("No context found for link extension");let a=JSON.parse(i);if(n.embedded)try{let l=new URL(a.url),_=l.pathname.startsWith("/")?l.pathname.substring(1):l.pathname,r=new URL(`app://${_}`);r.search=l.search,r.hash=l.hash,a.url=r.toString()}catch{}return{extensions:[{type:"admin_link",name:a.text,handle:p(e.title.substring(0,f)),targeting:[{url:a.url,target:re(o)}]}]}}s();var ye={facebook:"social",instagram:"social",google:"search",pinterest:"social",bing:"search",email:"email",snapchat:"social",sms:"sms",verizon_media:"display",ebay:"marketplace",tiktok:"social",flow:"email"},Ee={facebook:"facebook.com",instagram:"instagram.com",google:"google.com",pinterest:"pinterest.com",bing:"bing.com",snapchat:"snapchat.com",verizon_media:null,email:null,sms:null,ebay:"ebay.com",tiktok:"tiktok.com",flow:null};function xe(e){let t=new URL(e);return t.pathname+t.search+t.hash}function ae(e){let t=e.activeVersion?.config??e.draftVersion?.config;if(!t)throw new Error("No config found for extension");let n=JSON.parse(t);return{extensions:[{type:"marketing_activity",name:e.title,handle:p(e.title.substring(0,f)),title:n.title,description:n.description,api_path:xe(n.app_api_url),tactic:n.tactic,marketing_channel:ye[n.platform]??"",referring_domain:Ee[n.platform]??"",is_automation:n.is_automation,use_external_editor:n.use_external_editor,preview_data:n.preview_data,fields:n.fields.map(({id:o,...a})=>a)}]}}s();function ce(e){let t=e.activeVersion?.config??e.draftVersion?.config;if(!t)throw new Error("No config found for extension");let n=JSON.parse(t);return{extensions:[{type:"subscription_link_extension",name:e.title,handle:p(e.title.substring(0,f)),pattern:n.pattern}]}}var M=[{label:"Payments Extensions",value:"payments",extensionTypes:["payments_app","payments_app_credit_card","payments_app_custom_credit_card","payments_app_custom_onsite","payments_app_redeemable","payments_extension"],buildExtensionConfig:ne},{label:"Flow Extensions",value:"flow",extensionTypes:["flow_action_definition","flow_trigger_definition","flow_trigger_discovery_webhook"],buildExtensionConfig:oe},{label:"Marketing Activity Extensions",value:"marketing activity",extensionTypes:["marketing_activity_extension"],buildExtensionConfig:ae},{label:"Subscription Link Extensions",value:"subscription link",extensionTypes:["subscription_link","subscription_link_extension"],buildExtensionConfig:ce},{label:"Admin Link extensions",value:"link extension",extensionTypes:["app_link","bulk_action"],buildExtensionConfig:se}];function le(e){return M.filter(t=>t.extensionTypes.some(n=>e.some(i=>i.type.toLowerCase()===n.toLowerCase())))}async function Et(e){if(e.length===1&&e[0])return e[0];let t=e.map(o=>({label:o.label,value:o.value})),n=await h({message:"Extension type to migrate",choices:t}),i=e.find(o=>o.value===n);if(i===void 0)throw new E("Invalid migration choice");return i}s();var St=M.flatMap(e=>e.extensionTypes),m;(function(e){e.Write="write",e.Skip="skip",e.Cancel="cancel"})(m||(m={}));async function he({name:e,app:t}){let n=w(e),i=y(t.directory,z.extensions.directoryName,n);if(await k(i)){let o=[{label:"Overwrite local TOML with remote configuration",value:m.Write},{label:"Keep local TOML",value:m.Skip},{label:"Cancel",value:m.Cancel}],a=await h({message:`Directory "${n}" already exists. What would you like to do?`,choices:o});return{directory:i,action:a}}return await U(i),await V(y(i,A.lockFile)),{directory:i,action:m.Write}}var C=class extends H{pendingImports;selectedExtensions;constructor(t,n){super(),this.pendingImports=t,this.selectedExtensions=n}completedImports(){return pe(this.pendingImports,this.selectedExtensions)}},b=class extends Error{originalError;pendingImports;selectedExtensions;constructor(t,n,i){super(t instanceof Error?t.message:"Dashboard extension import failed"),this.originalError=t,this.pendingImports=n,this.selectedExtensions=i}completedImports(){return pe(this.pendingImports,this.selectedExtensions)}};async function pe(e,t){let n=await Promise.allSettled(e);return{extensions:n.flatMap(i=>i.status==="fulfilled"?[i.value]:[]),failures:n.flatMap((i,o)=>i.status==="rejected"&&!(i.reason instanceof C)?[{extension:t[o],error:i.reason}]:[])}}async function Ce(e){let{app:t,extensionTypes:n,extensions:i,buildExtensionConfig:o,all:a}=e,c=i.filter(r=>n.includes(r.type.toLowerCase()));if(c=we(t,c),c.length===0)return{status:"skipped",reason:"no-extensions",extensions:[],extensionUuids:{}};if(!a){let r=c.map(u=>({label:u.title,value:u.uuid}));c.length>1&&r.push({label:"All",value:"All"});let d=await h({message:"Extensions to migrate",choices:r});d!=="All"&&(c=[c.find(u=>u?.uuid===d)])}let l={},_=c.map(async r=>{let{directory:d,action:u}=await he({app:t,name:r.title});if(u===m.Cancel)throw new C(_,c);let T=p(r.title.substring(0,f));l[T]=r.uuid;let v=y(d,"shopify.extension.toml");if(u===m.Write){let D=o(r,i,t.configuration);await new X(v,D).replace(D);let fe=y(d,A.lockFile);await P(fe)}return{extension:r,directory:d,configurationPath:u===m.Write||await k(v)?v:null,changed:u===m.Write}});try{return{status:"success",reason:null,extensions:await Promise.all(_),extensionUuids:l}}catch(r){throw r instanceof C?r:new b(r,_,c)}}function we(e,t){let n=e.dotenv?.variables??{},i=e.allExtensions.map(o=>n[o.idEnvironmentVariableName]);return t.filter(o=>!i.includes(o.uuid))}async function Ot(e){let t=le(e.extensions);await Promise.all(t.map(async n=>{let i=await Ce({...e,extensionTypes:n.extensionTypes,buildExtensionConfig:n.buildExtensionConfig,all:!0}).catch(o=>{throw o instanceof b?o.originalError:o});ee(i),await j({app:e.app,appApiKey:e.remoteApp.apiKey,extensionUuids:i.extensionUuids,command:"import-extensions"})}))}s();async function Ft({developerPlatformClient:e,apiKey:t,organizationId:n,extensionTypes:i,onlyDashboardManaged:o=!1}){let a=await e.appExtensionRegistrations({id:t,apiKey:t,organizationId:n}),{dashboardManagedExtensionRegistrations:c,extensionRegistrations:l}=a.app;return(o?c:l.concat(c)).filter(r=>{let d=i.includes(r.type.toLowerCase()),u=r.activeVersion&&r.activeVersion.config,T=r.draftVersion&&r.draftVersion.config;return d&&(u??T)})}export{ee as a,le as b,Et as c,St as d,C as e,b as f,Ce as g,we as h,Ot as i,Ft as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h}from"./chunk-
|
|
1
|
+
import{a as h}from"./chunk-43R5VGKT.js";import{b as p}from"./chunk-ZDQO6CNY.js";import{b as C}from"./chunk-YTUUU33R.js";import{a as c}from"./chunk-JD5P5RAJ.js";import{e as L,g as u}from"./chunk-VKWPEFWQ.js";u();u();import{fileURLToPath as y}from"node:url";async function g(e){let{isDevelopment:o}=await import("./local-KOZETREJ.js"),{ShopifyConfig:n}=await import("./custom-oclif-loader-IZCKN67O.js"),r=await import("./lib-VKSQ65BQ.js"),{run:s,flush:m,Errors:l,settings:f}=r.default??r;o()&&(f.debug=!0);try{let t=new n({root:y(e.moduleURL)});await t.load(),e.lazyCommandLoader&&t.setLazyCommandLoader(e.lazyCommandLoader);let a=e.argv??process.argv.slice(2),i=a.indexOf("--");if((i===-1?a:a.slice(0,i)).includes("--json-schema")||c(process.env.SHOPIFY_FLAG_JSON_SCHEMA)){let{printCommandJsonSchema:I}=await import("./command-json-schema-2UMKY7MY.js");await I(t,a,e.lazyCommandLoader);return}await s(a,t),await m()}catch(t){let{errorHandler:a}=await import("./error-handler-74HKA23T.js");await a(t);let i=t;return l.handle({...i,name:i?.name??"Error",message:i?.message??String(t),stack:i?.stack,skipOclifErrorHandling:!0})}}var d=L(C());async function O(e=process.versions){let o=e.node,n=Number(o.split(".")[0]);if(n<22){let{renderError:s}=await import("./ui-PCG5D6RZ.js");s({headline:"Upgrade to a supported Node version now.",body:[`Node ${n} has reached end-of-life and poses security risks. When you upgrade to a`,{link:{url:"https://nodejs.dev/en/about/previous-releases",label:"supported version"}},{char:","},"you'll be able to use Shopify CLI without interruption."]}),process.exit(1)}}function v(e,o=process.argv,n=process.env){o.includes("--verbose")&&(n.DEBUG=n.DEBUG??"*"),e.development&&(n.SHOPIFY_CLI_ENV=n.SHOPIFY_CLI_ENV??"development")}function b(e=process.argv,o=process.env){(e.includes("--no-color")||e.includes("--json")||e.includes("-j")||c(o.NO_COLOR)||c(o.SHOPIFY_FLAG_NO_COLOR)||c(o[p.json])||o.TERM==="dumb")&&(o.FORCE_COLOR="0")}async function H(e,o=g,n=process.argv,r=process.env,s=process.versions){return v(e,n,r),e.runInCreateMode&&await w(e,n),b(n,r),await O(s),o({moduleURL:e.moduleURL,lazyCommandLoader:e.lazyCommandLoader})}async function w(e,o=process.argv){let{findUpAndReadPackageJson:n}=await import("./node-package-manager-DXSRNEDC.js"),{moduleDirectory:r}=await import("./path-3L2QRACZ.js"),l=(await n(r(e.moduleURL))).content.name.replace("@shopify/create-","");if(o.findIndex(t=>t.includes("init"))===-1){let t=o.findIndex(a=>a.match(new RegExp(`bin(\\/|\\\\)+(create-${l}|dev|run)`)))+1;o.splice(t,0,"init")}}var k={...h,"no-color":d.Flags.boolean({hidden:!1,description:"Disable color output.",env:"SHOPIFY_FLAG_NO_COLOR"}),verbose:d.Flags.boolean({hidden:!1,description:"Increase the verbosity of the output. May include sensitive data.",env:"SHOPIFY_FLAG_VERBOSE"})},U={json:d.Flags.boolean({char:"j",description:"Output the result as JSON. Automatically disables color output.",hidden:!1,default:!1,env:p.json})},V={"auth-alias":d.Flags.string({description:"Alias of the Shopify account to use for authentication.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})},P=(e={})=>{let o=[e.description,"Must be between 1 and 65535."].filter(Boolean).join(" ");return d.Flags.integer({min:1,max:65535,...e,description:o})};function D(e){let o=e.description?.trimEnd(),r=[o&&!o.endsWith(".")?`${o}.`:o,"Required if non interactive."].filter(Boolean).join(" ");return{...e,description:r,requiredIfNonInteractive:!0}}async function M(){let{cacheClear:e}=await import("./conf-store-RI3TL6I4.js");e()}export{H as a,k as b,U as c,V as d,P as e,D as f,M as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as n}from"./chunk-
|
|
1
|
+
import{b as n}from"./chunk-GRGFA26K.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();t();var o=class extends Error{type;constructor(e,p){super(p),this.type=e}},i=r=>async()=>r,s=r=>async e=>e.provider!==r.provider?n(new o("invalid-provider")):r.action(e.port);var d="cloudflare",v=i({name:d});export{o as a,s as b,d as c,v as d};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{a as m}from"./chunk-ZGV3HNEV.js";import{a as c}from"./chunk-FWB3GLMW.js";import{Ea as p,Ga as d,Ia as l,Ma as g}from"./chunk-3C6VLJ5D.js";import{b as a,c as f,f as s}from"./chunk-Q2SZCZE7.js";import{h as r}from"./chunk-2VSNFOKD.js";import{b as I}from"./chunk-YTUUU33R.js";import{e as v,g as n}from"./chunk-VKWPEFWQ.js";n();var i=v(I(),1);var t=class h extends m{static summary="Fetch your app configuration from the Developer Dashboard.";static descriptionWithMarkdown=`Pulls app configuration from the Developer Dashboard and creates or overwrites a configuration file. You can create a new app with this command to start with a default configuration file.
|
|
2
|
+
|
|
3
|
+
For more information on the format of the created TOML configuration file, refer to the [App configuration](https://shopify.dev/docs/apps/tools/cli/configuration) page.
|
|
4
|
+
`;static get jsonOutputSchema(){return p}static description=this.descriptionForHelp();static flags={...a,...f,...c,config:i.Flags.string({hidden:!1,char:"c",description:"The name of the local app configuration to read and overwrite. Use --file-name instead when specifying --client-id.",env:"SHOPIFY_FLAG_APP_CONFIG"}),"organization-id":i.Flags.string({hidden:!0,env:"SHOPIFY_FLAG_ORGANIZATION_ID",exclusive:["client-id"]}),"client-id":s(i.Flags.string({hidden:!1,description:"The Client ID of the remote app to link. Use --file-name to specify the destination configuration file.",env:"SHOPIFY_FLAG_CLIENT_ID"})),"file-name":i.Flags.string({hidden:!1,description:"The name of the app configuration file to create or overwrite. Requires --force to overwrite an existing file.",env:"SHOPIFY_FLAG_APP_CONFIG_FILE_NAME",exclusive:["config"]}),force:i.Flags.boolean({hidden:!1,description:"Overwrite an existing configuration file without prompting.",env:"SHOPIFY_FLAG_FORCE",dependsOn:["file-name"]})};async run(){let{flags:e}=await this.parse(h);if(e.config!==void 0&&e["client-id"]!==void 0)throw new r("The --config and --client-id flags can't be used together.","Use --file-name instead of --config to choose the configuration file to create or overwrite.");let u={directory:e.path,apiKey:e["client-id"],organizationId:e["organization-id"],configName:e.config,fileName:e["file-name"],force:e.force??!1},o=await l(u),{app:F}=await g({directory:e.path,clientId:void 0,forceRelink:!1,userProvidedConfigName:o.configFileName});return d(o.result,o.packageManager,e.json?"json":"text"),{app:F}}};export{t as a};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{A as o,B as n,C as i,D as t,H as s,z as e}from"./chunk-CZ22VZDA.js";import{h as d,k as l}from"./chunk-2VSNFOKD.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();async function u(){e({headline:"CLI update available.",body:["Run",{command:"npm run shopify upgrade"},{char:"."}]}),e({headline:["To connect this project to your shopify store cd into:",{filePath:"/my-store/hydrogen.config.js"},{char:"."}],body:["You can also try the following steps:",{list:{items:[["Run",{command:"shopify project connect"}],["Run",{command:"hydrogen start"}]]}}]}),e({headline:"About your app.",customSections:[{body:{tabularData:[["Configuration file",{filePath:"shopify.app.scalable-transaction-app.toml"}],["App name",{userInput:"scalable-transaction-app"}],["Access scopes","read_products,write_products"]],firstColumnSubdued:!0}}]}),e({headline:[{userInput:"my-app"},"initialized and ready to build."],nextSteps:[["Run",{command:"cd verification-app"}],["To preview your project, run",{command:"npm app dev"}],["To add extensions, run",{command:"npm generate extension"}]],reference:[["Run",{command:"npm shopify help"}],{link:{label:"Dev docs",url:"https://shopify.dev"}}],customSections:[{title:"Custom section",body:{list:{items:[{link:{label:"Item 1",url:"https://shopify.com"}},"Item 2",{link:{url:"https://community.shopify.com/"}}]}}},{title:"Custom section 2",body:{list:{items:["Item 1","Item 2","Item 3"]}}}]}),o({headline:"CLI updated.",body:"You are now running version 3.47."}),o({headline:"Deployment successful.",body:"Your extensions have been uploaded to your Shopify Partners Dashboard.",nextSteps:[{link:{label:"See your deployment and set it live",url:"https://partners.shopify.com/1797046/apps/4523695/deployments"}}]}),n({headline:"You have reached your limit of checkout extensions for this app.",body:"You can free up space for a new one by deleting an existing one."}),n({headline:"Required access scope update.",body:"The deadline for re-selecting your app scopes is May 1, 2022.",reference:[{link:{label:"Dev docs",url:"https://shopify.dev/app/scopes"}}]});let a=new l("Something went wrong.");a.stack=`
|
|
2
|
+
Error: Unexpected error
|
|
3
|
+
at Module._compile (internal/modules/cjs/loader.js:1137:30)
|
|
4
|
+
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
|
|
5
|
+
at Module.load (internal/modules/cjs/loader.js:985:32)
|
|
6
|
+
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
|
|
7
|
+
`,t(a);let c=[["Have you",{link:{label:"created a Shopify Partners organization",url:"https://partners.shopify.com/signup"}},{char:"?"}],"Have you confirmed your accounts from the emails you received?",["Need to connect to a different App or organization? Run the command again with",{command:"--reset"}]];t(new d("No Organization found",void 0,c)),i({headline:"Version couldn't be released.",body:"This version needs to be submitted for review and approved by Shopify before it can be released."}),s({rows:[{id:"1",name:"John Doe",email:"jon@doe.com"},{id:"2",name:"Jane Doe",email:"jane@doe.com"},{id:"3",name:"John Smith",email:"jon@smith.com"}],columns:{id:{header:"ID",color:"red"},name:{header:"Name",color:"dim"},email:{}}})}export{u as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as s}from"./chunk-ACA2BGAD.js";import{a as l}from"./chunk-BN7ZXAZJ.js";import{b as e}from"./chunk-FZCGRIOM.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();var p=e.string().regex(/^\d+$/).describe("The decimal Online Store theme ID, not a Shopify GID."),h=e.string().regex(/^[a-z0-9][a-z0-9-]*\.myshopify\.com$/).nullable(),b=e.object({id:p,name:e.string(),role:e.string().describe("The upstream theme role; known values include live, unpublished, and development.")}).strict(),v=b.extend({storeDomain:h,previewUrl:e.string().url().nullable(),editorUrl:e.string().url().nullable()}).strict(),d=e.object({status:e.literal("cancelled")}).strict();function O(n){let i=e.union([n.schema,d]),c=e.union([e.object({environment:e.string(),result:i}).strict(),e.object({environment:e.string(),error:s}).strict()]),o=l({name:n.name,schema:e.union([i,e.object({environments:e.array(c)}).strict()]),definitions:{...n.definitions,ThemeEnvironment:c}}),m=t=>d.safeParse(t).success?t:n.project(t);return{...o,encode(t){let a=e.object({environments:e.array(e.unknown())}).strict().safeParse(t);if(!a.success)return JSON.stringify(o.validate(m(t)),null,2);let f=a.data.environments.map(g=>{let r=e.union([e.object({environment:e.string(),result:e.unknown()}).strict(),e.object({environment:e.string(),error:s}).strict()]).parse(g);return"error"in r?r:{...r,result:m(r.result)}});return JSON.stringify(o.validate({environments:f}),null,2)}}}function S(n){if(typeof n=="number"&&(!Number.isSafeInteger(n)||n<0))throw new TypeError("Theme IDs must be safe nonnegative integers or decimal strings.");return p.parse(String(n))}function w(n){return n&&h.safeParse(n).success?n:null}function D(n){return{id:S(n.id),name:n.name,role:n.role}}export{p as a,h as b,b as c,v as d,O as e,S as f,w as g,D as h};
|
|
@@ -63,7 +63,7 @@ try {
|
|
|
63
63
|
`).map(s=>zu(s,t,n)).join(`
|
|
64
64
|
`)});var Ku=R((Zc,It)=>{"use strict";C();var $=It.exports;It.exports.default=$;var j="\x1B[",Le="\x1B]",Ae="\x07",Ye=";",ys=process.env.TERM_PROGRAM==="Apple_Terminal";$.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?j+(e+1)+"G":j+(t+1)+";"+(e+1)+"H"};$.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let n="";return e<0?n+=j+-e+"D":e>0&&(n+=j+e+"C"),t<0?n+=j+-t+"A":t>0&&(n+=j+t+"B"),n};$.cursorUp=(e=1)=>j+e+"A";$.cursorDown=(e=1)=>j+e+"B";$.cursorForward=(e=1)=>j+e+"C";$.cursorBackward=(e=1)=>j+e+"D";$.cursorLeft=j+"G";$.cursorSavePosition=ys?"\x1B7":j+"s";$.cursorRestorePosition=ys?"\x1B8":j+"u";$.cursorGetPosition=j+"6n";$.cursorNextLine=j+"E";$.cursorPrevLine=j+"F";$.cursorHide=j+"?25l";$.cursorShow=j+"?25h";$.eraseLines=e=>{let t="";for(let n=0;n<e;n++)t+=$.eraseLine+(n<e-1?$.cursorUp():"");return e&&(t+=$.cursorLeft),t};$.eraseEndLine=j+"K";$.eraseStartLine=j+"1K";$.eraseLine=j+"2K";$.eraseDown=j+"J";$.eraseUp=j+"1J";$.eraseScreen=j+"2J";$.scrollUp=j+"S";$.scrollDown=j+"T";$.clearScreen="\x1Bc";$.clearTerminal=process.platform==="win32"?`${$.eraseScreen}${j}0f`:`${$.eraseScreen}${j}3J${j}H`;$.beep=Ae;$.link=(e,t)=>[Le,"8",Ye,Ye,t,Ae,e,Le,"8",Ye,Ye,Ae].join("");$.image=(e,t={})=>{let n=`${Le}1337;File=inline=1`;return t.width&&(n+=`;width=${t.width}`),t.height&&(n+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(n+=";preserveAspectRatio=0"),n+":"+e.toString("base64")+Ae};$.iTerm={setCwd:(e=process.cwd())=>`${Le}50;CurrentDir=${e}${Ae}`,annotation:(e,t={})=>{let n=`${Le}1337;`,s=typeof t.x<"u",r=typeof t.y<"u";if((s||r)&&!(s&&r&&typeof t.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),n+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?n+=(s?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):n+=e,n+Ae}}});var bs=R((el,Qu)=>{Qu.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var Ju=R((tl,vs)=>{"use strict";C();var et=Object.assign({},bs()),As=Object.keys(et);Object.defineProperty(et,"random",{get(){let e=Math.floor(Math.random()*As.length),t=As[e];return et[t]}});vs.exports=et});var Zu=R((sl,qt)=>{"use strict";C();var Vu=$t(),ws=e=>{let t=0;for(let n of e.split(`
|
|
65
65
|
`))t=Math.max(t,Vu(n));return t};qt.exports=ws;qt.exports.default=ws});var Ss=R(_e=>{"use strict";C();Object.defineProperty(_e,"__esModule",{value:!0});_e.range=_e.balanced=void 0;var Yu=(e,t,n)=>{let s=e instanceof RegExp?xs(e,n):e,r=t instanceof RegExp?xs(t,n):t,u=s!==null&&r!=null&&(0,_e.range)(s,r,n);return u&&{start:u[0],end:u[1],pre:n.slice(0,u[0]),body:n.slice(u[0]+s.length,u[1]),post:n.slice(u[1]+r.length)}};_e.balanced=Yu;var xs=(e,t)=>{let n=t.match(e);return n?n[0]:null},ei=(e,t,n)=>{let s,r,u,i,o,a=n.indexOf(e),c=n.indexOf(t,a+1),D=a;if(a>=0&&c>0){if(e===t)return[a,c];for(s=[],u=n.length;D>=0&&!o;){if(D===a)s.push(D),a=n.indexOf(e,D+1);else if(s.length===1){let l=s.pop();l!==void 0&&(o=[l,c])}else r=s.pop(),r!==void 0&&r<u&&(u=r,i=c),c=n.indexOf(t,D+1);D=a<c&&a>=0?a:c}s.length&&i!==void 0&&(o=[u,i])}return o};_e.range=ei});var ks=R(ve=>{"use strict";C();Object.defineProperty(ve,"__esModule",{value:!0});ve.EXPANSION_MAX=void 0;ve.expand=hi;var Rs=Ss(),Bs="\0SLASH"+Math.random()+"\0",Os="\0OPEN"+Math.random()+"\0",Gt="\0CLOSE"+Math.random()+"\0",Ls="\0COMMA"+Math.random()+"\0",Ts="\0PERIOD"+Math.random()+"\0",ti=new RegExp(Bs,"g"),ni=new RegExp(Os,"g"),si=new RegExp(Gt,"g"),ri=new RegExp(Ls,"g"),ui=new RegExp(Ts,"g"),ii=/\\\\/g,oi=/\\{/g,ai=/\\}/g,ci=/\\,/g,li=/\\\./g;ve.EXPANSION_MAX=1e5;function Wt(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function Di(e){return e.replace(ii,Bs).replace(oi,Os).replace(ai,Gt).replace(ci,Ls).replace(li,Ts)}function fi(e){return e.replace(ti,"\\").replace(ni,"{").replace(si,"}").replace(ri,",").replace(ui,".")}function $s(e){if(!e)return[""];let t=[],n=(0,Rs.balanced)("{","}",e);if(!n)return e.split(",");let{pre:s,body:r,post:u}=n,i=s.split(",");i[i.length-1]+="{"+r+"}";let o=$s(u);return u.length&&(i[i.length-1]+=o.shift(),i.push.apply(i,o)),t.push.apply(t,i),t}function hi(e,t={}){if(!e)return[];let{max:n=ve.EXPANSION_MAX}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Te(Di(e),n,!0).map(fi)}function pi(e){return"{"+e+"}"}function gi(e){return/^-?0\d/.test(e)}function di(e,t){return e<=t}function mi(e,t){return e>=t}function Te(e,t,n){let s=[],r=(0,Rs.balanced)("{","}",e);if(!r)return[e];let u=r.pre,i=r.post.length?Te(r.post,t,!1):[""];if(/\$$/.test(r.pre))for(let o=0;o<i.length&&o<t;o++){let a=u+"{"+r.body+"}"+i[o];s.push(a)}else{let o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),c=o||a,D=r.body.indexOf(",")>=0;if(!c&&!D)return r.post.match(/,(?!,).*\}/)?(e=r.pre+"{"+r.body+Gt+r.post,Te(e,t,!0)):[e];let l;if(c)l=r.body.split(/\.\./);else if(l=$s(r.body),l.length===1&&l[0]!==void 0&&(l=Te(l[0],t,!1).map(pi),l.length===1))return i.map(_=>r.pre+l[0]+_);let h;if(c&&l[0]!==void 0&&l[1]!==void 0){let _=Wt(l[0]),f=Wt(l[1]),m=Math.max(l[0].length,l[1].length),b=l.length===3&&l[2]!==void 0?Math.max(Math.abs(Wt(l[2])),1):1,w=di;f<_&&(b*=-1,w=mi);let x=l.some(gi);h=[];for(let k=_;w(k,f)&&h.length<t;k+=b){let B;if(a)B=String.fromCharCode(k),B==="\\"&&(B="");else if(B=String(k),x){let M=m-B.length;if(M>0){let G=new Array(M+1).join("0");k<0?B="-"+G+B.slice(1):B=G+B}}h.push(B)}}else{h=[];for(let _=0;_<l.length;_++)h.push.apply(h,Te(l[_],t,!1))}for(let _=0;_<h.length;_++)for(let f=0;f<i.length&&s.length<t;f++){let m=u+h[_]+i[f];(!n||c||m)&&s.push(m)}}return s}});var Ms=R(tt=>{"use strict";C();Object.defineProperty(tt,"__esModule",{value:!0});tt.assertValidPattern=void 0;var Ei=1024*64,_i=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>Ei)throw new TypeError("pattern is too long")};tt.assertValidPattern=_i});var js=R(nt=>{"use strict";C();Object.defineProperty(nt,"__esModule",{value:!0});nt.parseClass=void 0;var Ci={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},$e=e=>e.replace(/[[\]\\-]/g,"\\$&"),Fi=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ns=e=>e.join(""),yi=(e,t)=>{let n=t;if(e.charAt(n)!=="[")throw new Error("not in a brace expression");let s=[],r=[],u=n+1,i=!1,o=!1,a=!1,c=!1,D=n,l="";e:for(;u<e.length;){let m=e.charAt(u);if((m==="!"||m==="^")&&u===n+1){c=!0,u++;continue}if(m==="]"&&i&&!a){D=u+1;break}if(i=!0,m==="\\"&&!a){a=!0,u++;continue}if(m==="["&&!a){for(let[b,[w,E,x]]of Object.entries(Ci))if(e.startsWith(b,u)){if(l)return["$.",!1,e.length-n,!0];u+=b.length,x?r.push(w):s.push(w),o=o||E;continue e}}if(a=!1,l){m>l?s.push($e(l)+"-"+$e(m)):m===l&&s.push($e(m)),l="",u++;continue}if(e.startsWith("-]",u+1)){s.push($e(m+"-")),u+=2;continue}if(e.startsWith("-",u+1)){l=m,u+=2;continue}s.push($e(m)),u++}if(D<u)return["",!1,0,!1];if(!s.length&&!r.length)return["$.",!1,e.length-n,!0];if(r.length===0&&s.length===1&&/^\\?.$/.test(s[0])&&!c){let m=s[0].length===2?s[0].slice(-1):s[0];return[Fi(m),!1,D-n,!1]}let h="["+(c?"^":"")+Ns(s)+"]",_="["+(c?"":"^")+Ns(r)+"]";return[s.length&&r.length?"("+h+"|"+_+")":s.length?h:_,o,D-n,!0]};nt.parseClass=yi});var rt=R(st=>{"use strict";C();Object.defineProperty(st,"__esModule",{value:!0});st.unescape=void 0;var bi=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");st.unescape=bi});var Xt=R(at=>{"use strict";C();var ee;Object.defineProperty(at,"__esModule",{value:!0});at.AST=void 0;var Ai=js(),ut=rt(),vi=new Set(["!","?","+","*","@"]),Ut=e=>vi.has(e),Ps=e=>Ut(e.type),wi=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),xi=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),Si=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Hs=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),Ri="(?!(?:^|/)\\.\\.?(?:$|/))",it="(?!\\.)",Bi=new Set(["[","."]),Oi=new Set(["..","."]),Li=new Set("().*{}+?[]^$\\!"),Ti=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),zt="[^/]",Is=zt+"*?",qs=zt+"+?",$i=0,ot=class{type;#n;#s;#r=!1;#e=[];#t;#o;#c;#a=!1;#u;#i;#l=!1;id=++$i;get depth(){return(this.#t?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#n.id,parent:this.#t?.id,depth:this.depth,partsLength:this.#e.length,parts:this.#e}}constructor(t,n,s={}){this.type=t,t&&(this.#s=!0),this.#t=n,this.#n=this.#t?this.#t.#n:this,this.#u=this.#n===this?s:this.#n.#u,this.#c=this.#n===this?[]:this.#n.#c,t==="!"&&!this.#n.#a&&this.#c.push(this),this.#o=this.#t?this.#t.#e.length:0}get hasMagic(){if(this.#s!==void 0)return this.#s;for(let t of this.#e)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#s=!0;return this.#s}toString(){return this.#i!==void 0?this.#i:this.type?this.#i=this.type+"("+this.#e.map(t=>String(t)).join("|")+")":this.#i=this.#e.map(t=>String(t)).join("")}#m(){if(this!==this.#n)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let t;for(;t=this.#c.pop();){if(t.type!=="!")continue;let n=t,s=n.#t;for(;s;){for(let r=n.#o+1;!s.type&&r<s.#e.length;r++)for(let u of t.#e){if(typeof u=="string")throw new Error("string part in extglob AST??");u.copyIn(s.#e[r])}n=s,s=n.#t}}return this}push(...t){for(let n of t)if(n!==""){if(typeof n!="string"&&!(n instanceof ee&&n.#t===this))throw new Error("invalid part: "+n);this.#e.push(n)}}toJSON(){let t=this.type===null?this.#e.slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...this.#e.map(n=>n.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#n||this.#n.#a&&this.#t?.type==="!")&&t.push({}),t}isStart(){if(this.#n===this)return!0;if(!this.#t?.isStart())return!1;if(this.#o===0)return!0;let t=this.#t;for(let n=0;n<this.#o;n++){let s=t.#e[n];if(!(s instanceof ee&&s.type==="!"))return!1}return!0}isEnd(){if(this.#n===this||this.#t?.type==="!")return!0;if(!this.#t?.isEnd())return!1;if(!this.type)return this.#t?.isEnd();let t=this.#t?this.#t.#e.length:0;return this.#o===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let n=new ee(this.type,t);for(let s of this.#e)n.copyIn(s);return n}static#D(t,n,s,r,u){let i=r.maxExtglobRecursion??2,o=!1,a=!1,c=-1,D=!1;if(n.type===null){let m=s,b="";for(;m<t.length;){let w=t.charAt(m++);if(o||w==="\\"){o=!o,b+=w;continue}if(a){m===c+1?(w==="^"||w==="!")&&(D=!0):w==="]"&&!(m===c+2&&D)&&(a=!1),b+=w;continue}else if(w==="["){a=!0,c=m,D=!1,b+=w;continue}if(!r.noext&&Ut(w)&&t.charAt(m)==="("&&u<=i){n.push(b),b="";let x=new ee(w,n);m=ee.#D(t,x,m,r,u+1),n.push(x);continue}b+=w}return n.push(b),m}let l=s+1,h=new ee(null,n),_=[],f="";for(;l<t.length;){let m=t.charAt(l++);if(o||m==="\\"){o=!o,f+=m;continue}if(a){l===c+1?(m==="^"||m==="!")&&(D=!0):m==="]"&&!(l===c+2&&D)&&(a=!1),f+=m;continue}else if(m==="["){a=!0,c=l,D=!1,f+=m;continue}if(!r.noext&&Ut(m)&&t.charAt(l)==="("&&(u<=i||n&&n.#f(m))){let w=n&&n.#f(m)?0:1;h.push(f),f="";let E=new ee(m,h);h.push(E),l=ee.#D(t,E,l,r,u+w);continue}if(m==="|"){h.push(f),f="",_.push(h),h=new ee(null,n);continue}if(m===")")return f===""&&n.#e.length===0&&(n.#l=!0),h.push(f),f="",n.push(..._,h),l;f+=m}return n.type=null,n.#s=void 0,n.#e=[t.substring(s-1)],l}#E(t){return this.#p(t,xi)}#p(t,n=wi){if(!t||typeof t!="object"||t.type!==null||t.#e.length!==1||this.type===null)return!1;let s=t.#e[0];return!s||typeof s!="object"||s.type===null?!1:this.#f(s.type,n)}#f(t,n=Si){return!!n.get(this.type)?.includes(t)}#_(t,n){let s=t.#e[0],r=new ee(null,s,this.options);r.#e.push(""),s.push(r),this.#g(t,n)}#g(t,n){let s=t.#e[0];this.#e.splice(n,1,...s.#e);for(let r of s.#e)typeof r=="object"&&(r.#t=this);this.#i=void 0}#C(t){return!!Hs.get(this.type)?.has(t)}#F(t){if(!t||typeof t!="object"||t.type!==null||t.#e.length!==1||this.type===null||this.#e.length!==1)return!1;let n=t.#e[0];return!n||typeof n!="object"||n.type===null?!1:this.#C(n.type)}#y(t){let n=Hs.get(this.type),s=t.#e[0],r=n?.get(s.type);if(!r)return!1;this.#e=s.#e;for(let u of this.#e)typeof u=="object"&&(u.#t=this);this.type=r,this.#i=void 0,this.#l=!1}static fromGlob(t,n={}){let s=new ee(null,void 0,n);return ee.#D(t,s,0,n,0),s}toMMPattern(){if(this!==this.#n)return this.#n.toMMPattern();let t=this.toString(),[n,s,r,u]=this.toRegExpSource();if(!(r||this.#s||this.#u.nocase&&!this.#u.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return s;let o=(this.#u.nocase?"i":"")+(u?"u":"");return Object.assign(new RegExp(`^${n}$`,o),{_src:n,_glob:t})}get options(){return this.#u}toRegExpSource(t){let n=t??!!this.#u.dot;if(this.#n===this&&(this.#h(),this.#m()),!Ps(this)){let a=this.isStart()&&this.isEnd()&&!this.#e.some(_=>typeof _!="string"),c=this.#e.map(_=>{let[f,m,b,w]=typeof _=="string"?ee.#b(_,this.#s,a):_.toRegExpSource(t);return this.#s=this.#s||b,this.#r=this.#r||w,f}).join(""),D="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&Oi.has(this.#e[0]))){let f=Bi,m=n&&f.has(c.charAt(0))||c.startsWith("\\.")&&f.has(c.charAt(2))||c.startsWith("\\.\\.")&&f.has(c.charAt(4)),b=!n&&!t&&f.has(c.charAt(0));D=m?Ri:b?it:""}let l="";return this.isEnd()&&this.#n.#a&&this.#t?.type==="!"&&(l="(?:$|\\/)"),[D+c+l,(0,ut.unescape)(c),this.#s=!!this.#s,this.#r]}let s=this.type==="*"||this.type==="+",r=this.type==="!"?"(?:(?!(?:":"(?:",u=this.#d(n);if(this.isStart()&&this.isEnd()&&!u&&this.type!=="!"){let a=this.toString(),c=this;return c.#e=[a],c.type=null,c.#s=void 0,[a,(0,ut.unescape)(this.toString()),!1,!1]}let i=!s||t||n||!it?"":this.#d(!0);i===u&&(i=""),i&&(u=`(?:${u})(?:${i})*?`);let o="";if(this.type==="!"&&this.#l)o=(this.isStart()&&!n?it:"")+qs;else{let a=this.type==="!"?"))"+(this.isStart()&&!n&&!t?it:"")+Is+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&i?")":this.type==="*"&&i?")?":`)${this.type}`;o=r+u+a}return[o,(0,ut.unescape)(u),this.#s=!!this.#s,this.#r]}#h(){if(Ps(this)){let t=0,n=!1;do{n=!0;for(let s=0;s<this.#e.length;s++){let r=this.#e[s];typeof r=="object"&&(r.#h(),this.#p(r)?(n=!1,this.#g(r,s)):this.#E(r)?(n=!1,this.#_(r,s)):this.#F(r)&&(n=!1,this.#y(r)))}}while(!n&&++t<10)}else for(let t of this.#e)typeof t=="object"&&t.#h();this.#i=void 0}#d(t){return this.#e.map(n=>{if(typeof n=="string")throw new Error("string type in extglob ast??");let[s,r,u,i]=n.toRegExpSource(t);return this.#r=this.#r||i,s}).filter(n=>!(this.isStart()&&this.isEnd())||!!n).join("|")}static#b(t,n,s=!1){let r=!1,u="",i=!1,o=!1;for(let a=0;a<t.length;a++){let c=t.charAt(a);if(r){r=!1,u+=(Li.has(c)?"\\":"")+c;continue}if(c==="*"){if(o)continue;o=!0,u+=s&&/^[*]+$/.test(t)?qs:Is,n=!0;continue}else o=!1;if(c==="\\"){a===t.length-1?u+="\\\\":r=!0;continue}if(c==="["){let[D,l,h,_]=(0,Ai.parseClass)(t,a);if(h){u+=D,i=i||l,a+=h-1,n=n||_;continue}}if(c==="?"){u+=zt,n=!0;continue}u+=Ti(c)}return[u,(0,ut.unescape)(t),!!n,i]}};at.AST=ot;ee=ot});var Kt=R(ct=>{"use strict";C();Object.defineProperty(ct,"__esModule",{value:!0});ct.escape=void 0;var ki=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");ct.escape=ki});var Eo=R(A=>{"use strict";C();Object.defineProperty(A,"__esModule",{value:!0});A.unescape=A.escape=A.AST=A.Minimatch=A.match=A.makeRe=A.braceExpand=A.defaults=A.filter=A.GLOBSTAR=A.sep=A.minimatch=void 0;var Mi=ks(),lt=Ms(),Us=Xt(),Ni=Kt(),ji=rt(),Pi=(e,t,n={})=>((0,lt.assertValidPattern)(t),!n.nocomment&&t.charAt(0)==="#"?!1:new Ce(t,n).match(e));A.minimatch=Pi;var Hi=/^\*+([^+@!?*[(]*)$/,Ii=e=>t=>!t.startsWith(".")&&t.endsWith(e),qi=e=>t=>t.endsWith(e),Wi=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Gi=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Ui=/^\*+\.\*+$/,zi=e=>!e.startsWith(".")&&e.includes("."),Xi=e=>e!=="."&&e!==".."&&e.includes("."),Ki=/^\.\*+$/,Qi=e=>e!=="."&&e!==".."&&e.startsWith("."),Ji=/^\*+$/,Vi=e=>e.length!==0&&!e.startsWith("."),Zi=e=>e.length!==0&&e!=="."&&e!=="..",Yi=/^\?+([^+@!?*[(]*)?$/,eo=([e,t=""])=>{let n=zs([e]);return t?(t=t.toLowerCase(),s=>n(s)&&s.toLowerCase().endsWith(t)):n},to=([e,t=""])=>{let n=Xs([e]);return t?(t=t.toLowerCase(),s=>n(s)&&s.toLowerCase().endsWith(t)):n},no=([e,t=""])=>{let n=Xs([e]);return t?s=>n(s)&&s.endsWith(t):n},so=([e,t=""])=>{let n=zs([e]);return t?s=>n(s)&&s.endsWith(t):n},zs=([e])=>{let t=e.length;return n=>n.length===t&&!n.startsWith(".")},Xs=([e])=>{let t=e.length;return n=>n.length===t&&n!=="."&&n!==".."},Ks=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Ws={win32:{sep:"\\"},posix:{sep:"/"}};A.sep=Ks==="win32"?Ws.win32.sep:Ws.posix.sep;A.minimatch.sep=A.sep;A.GLOBSTAR=Symbol("globstar **");A.minimatch.GLOBSTAR=A.GLOBSTAR;var ro="[^/]",uo=ro+"*?",io="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",oo="(?:(?!(?:\\/|^)\\.).)*?",ao=(e,t={})=>n=>(0,A.minimatch)(n,e,t);A.filter=ao;A.minimatch.filter=A.filter;var ie=(e,t={})=>Object.assign({},e,t),co=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return A.minimatch;let t=A.minimatch;return Object.assign((s,r,u={})=>t(s,r,ie(e,u)),{Minimatch:class extends t.Minimatch{constructor(r,u={}){super(r,ie(e,u))}static defaults(r){return t.defaults(ie(e,r)).Minimatch}},AST:class extends t.AST{constructor(r,u,i={}){super(r,u,ie(e,i))}static fromGlob(r,u={}){return t.AST.fromGlob(r,ie(e,u))}},unescape:(s,r={})=>t.unescape(s,ie(e,r)),escape:(s,r={})=>t.escape(s,ie(e,r)),filter:(s,r={})=>t.filter(s,ie(e,r)),defaults:s=>t.defaults(ie(e,s)),makeRe:(s,r={})=>t.makeRe(s,ie(e,r)),braceExpand:(s,r={})=>t.braceExpand(s,ie(e,r)),match:(s,r,u={})=>t.match(s,r,ie(e,u)),sep:t.sep,GLOBSTAR:A.GLOBSTAR})};A.defaults=co;A.minimatch.defaults=A.defaults;var lo=(e,t={})=>((0,lt.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,Mi.expand)(e,{max:t.braceExpandMax}));A.braceExpand=lo;A.minimatch.braceExpand=A.braceExpand;var Do=(e,t={})=>new Ce(e,t).makeRe();A.makeRe=Do;A.minimatch.makeRe=A.makeRe;var fo=(e,t,n={})=>{let s=new Ce(t,n);return e=e.filter(r=>s.match(r)),s.options.nonull&&!e.length&&e.push(t),e};A.match=fo;A.minimatch.match=A.match;var Gs=/[?*]|[+@!]\(.*?\)|\[|\]/,ho=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ce=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(t,n={}){(0,lt.assertValidPattern)(t),n=n||{},this.options=n,this.maxGlobstarRecursion=n.maxGlobstarRecursion??200,this.pattern=t,this.platform=n.platform||Ks,this.isWindows=this.platform==="win32";let s="allowWindowsEscape";this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n[s]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!n.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!n.nonegate,this.comment=!1,this.empty=!1,this.partial=!!n.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=n.windowsNoMagicRoot!==void 0?n.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let n of t)if(typeof n!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,n=this.options;if(!n.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=(...u)=>console.error(...u)),this.debug(this.pattern,this.globSet);let s=this.globSet.map(u=>this.slashSplit(u));this.globParts=this.preprocess(s),this.debug(this.pattern,this.globParts);let r=this.globParts.map((u,i,o)=>{if(this.isWindows&&this.windowsNoMagicRoot){let a=u[0]===""&&u[1]===""&&(u[2]==="?"||!Gs.test(u[2]))&&!Gs.test(u[3]),c=/^[a-z]:/i.test(u[0]);if(a)return[...u.slice(0,4),...u.slice(4).map(D=>this.parse(D))];if(c)return[u[0],...u.slice(1).map(D=>this.parse(D))]}return u.map(a=>this.parse(a))});if(this.debug(this.pattern,r),this.set=r.filter(u=>u.indexOf(!1)===-1),this.isWindows)for(let u=0;u<this.set.length;u++){let i=this.set[u];i[0]===""&&i[1]===""&&this.globParts[u][2]==="?"&&typeof i[3]=="string"&&/^[a-z]:$/i.test(i[3])&&(i[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let s of t)for(let r=0;r<s.length;r++)s[r]==="**"&&(s[r]="*");let{optimizationLevel:n=1}=this.options;return n>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):n>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(n=>{let s=-1;for(;(s=n.indexOf("**",s+1))!==-1;){let r=s;for(;n[r+1]==="**";)r++;r!==s&&n.splice(s,r-s)}return n})}levelOneOptimize(t){return t.map(n=>(n=n.reduce((s,r)=>{let u=s[s.length-1];return r==="**"&&u==="**"?s:r===".."&&u&&u!==".."&&u!=="."&&u!=="**"?(s.pop(),s):(s.push(r),s)},[]),n.length===0?[""]:n))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let r=1;r<t.length-1;r++){let u=t[r];r===1&&u===""&&t[0]===""||(u==="."||u==="")&&(n=!0,t.splice(r,1),r--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(n=!0,t.pop())}let s=0;for(;(s=t.indexOf("..",s+1))!==-1;){let r=t[s-1];r&&r!=="."&&r!==".."&&r!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(r))&&(n=!0,t.splice(s-1,2),s-=2)}}while(n);return t.length===0?[""]:t}firstPhasePreProcess(t){let n=!1;do{n=!1;for(let s of t){let r=-1;for(;(r=s.indexOf("**",r+1))!==-1;){let i=r;for(;s[i+1]==="**";)i++;i>r&&s.splice(r+1,i-r);let o=s[r+1],a=s[r+2],c=s[r+3];if(o!==".."||!a||a==="."||a===".."||!c||c==="."||c==="..")continue;n=!0,s.splice(r,1);let D=s.slice(0);D[r]="**",t.push(D),r--}if(!this.preserveMultipleSlashes){for(let i=1;i<s.length-1;i++){let o=s[i];i===1&&o===""&&s[0]===""||(o==="."||o==="")&&(n=!0,s.splice(i,1),i--)}s[0]==="."&&s.length===2&&(s[1]==="."||s[1]==="")&&(n=!0,s.pop())}let u=0;for(;(u=s.indexOf("..",u+1))!==-1;){let i=s[u-1];if(i&&i!=="."&&i!==".."&&i!=="**"){n=!0;let a=u===1&&s[u+1]==="**"?["."]:[];s.splice(u-1,2,...a),s.length===0&&s.push(""),u-=2}}}}while(n);return t}secondPhasePreProcess(t){for(let n=0;n<t.length-1;n++)for(let s=n+1;s<t.length;s++){let r=this.partsMatch(t[n],t[s],!this.preserveMultipleSlashes);if(r){t[n]=[],t[s]=r;break}}return t.filter(n=>n.length)}partsMatch(t,n,s=!1){let r=0,u=0,i=[],o="";for(;r<t.length&&u<n.length;)if(t[r]===n[u])i.push(o==="b"?n[u]:t[r]),r++,u++;else if(s&&t[r]==="**"&&n[u]===t[r+1])i.push(t[r]),r++;else if(s&&n[u]==="**"&&t[r]===n[u+1])i.push(n[u]),u++;else if(t[r]==="*"&&n[u]&&(this.options.dot||!n[u].startsWith("."))&&n[u]!=="**"){if(o==="b")return!1;o="a",i.push(t[r]),r++,u++}else if(n[u]==="*"&&t[r]&&(this.options.dot||!t[r].startsWith("."))&&t[r]!=="**"){if(o==="a")return!1;o="b",i.push(n[u]),r++,u++}else return!1;return t.length===n.length&&i}parseNegate(){if(this.nonegate)return;let t=this.pattern,n=!1,s=0;for(let r=0;r<t.length&&t.charAt(r)==="!";r++)n=!n,s++;s&&(this.pattern=t.slice(s)),this.negate=n}matchOne(t,n,s=!1){let r=0,u=0;if(this.isWindows){let o=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),a=!o&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),c=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),D=!c&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3]),l=a?3:o?0:void 0,h=D?3:c?0:void 0;if(typeof l=="number"&&typeof h=="number"){let[_,f]=[t[l],n[h]];_.toLowerCase()===f.toLowerCase()&&(n[h]=_,u=h,r=l)}}let{optimizationLevel:i=1}=this.options;return i>=2&&(t=this.levelTwoFileOptimize(t)),n.includes(A.GLOBSTAR)?this.#n(t,n,s,r,u):this.#r(t,n,s,r,u)}#n(t,n,s,r,u){let i=n.indexOf(A.GLOBSTAR,u),o=n.lastIndexOf(A.GLOBSTAR),[a,c,D]=s?[n.slice(u,i),n.slice(i+1),[]]:[n.slice(u,i),n.slice(i+1,o),n.slice(o+1)];if(a.length){let E=t.slice(r,r+a.length);if(!this.#r(E,a,s,0,0))return!1;r+=a.length,u+=a.length}let l=0;if(D.length){if(D.length+r>t.length)return!1;let E=t.length-D.length;if(this.#r(t,D,s,E,0))l=D.length;else{if(t[t.length-1]!==""||r+D.length===t.length||(E--,!this.#r(t,D,s,E,0)))return!1;l=D.length+1}}if(!c.length){let E=!!l;for(let x=r;x<t.length-l;x++){let k=String(t[x]);if(E=!0,k==="."||k===".."||!this.options.dot&&k.startsWith("."))return!1}return s||E}let h=[[[],0]],_=h[0],f=0,m=[0];for(let E of c)E===A.GLOBSTAR?(m.push(f),_=[[],0],h.push(_)):(_[0].push(E),f++);let b=h.length-1,w=t.length-l;for(let E of h)E[1]=w-(m[b--]+E[0].length);return!!this.#s(t,h,r,0,s,0,!!l)}#s(t,n,s,r,u,i,o){let a=n[r];if(!a){for(let l=s;l<t.length;l++){o=!0;let h=t[l];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return o}let[c,D]=a;for(;s<=D;){if(this.#r(t.slice(0,s+c.length),c,u,s,0)&&i<this.maxGlobstarRecursion){let _=this.#s(t,n,s+c.length,r+1,u,i+1,o);if(_!==!1)return _}let h=t[s];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;s++}return u||null}#r(t,n,s,r,u){let i,o,a,c;for(i=r,o=u,c=t.length,a=n.length;i<c&&o<a;i++,o++){this.debug("matchOne loop");let D=n[o],l=t[i];if(this.debug(n,D,l),D===!1||D===A.GLOBSTAR)return!1;let h;if(typeof D=="string"?(h=l===D,this.debug("string match",D,l,h)):(h=D.test(l),this.debug("pattern match",D,l,h)),!h)return!1}if(i===c&&o===a)return!0;if(i===c)return s;if(o===a)return i===c-1&&t[i]==="";throw new Error("wtf?")}braceExpand(){return(0,A.braceExpand)(this.pattern,this.options)}parse(t){(0,lt.assertValidPattern)(t);let n=this.options;if(t==="**")return A.GLOBSTAR;if(t==="")return"";let s,r=null;(s=t.match(Ji))?r=n.dot?Zi:Vi:(s=t.match(Hi))?r=(n.nocase?n.dot?Gi:Wi:n.dot?qi:Ii)(s[1]):(s=t.match(Yi))?r=(n.nocase?n.dot?to:eo:n.dot?no:so)(s):(s=t.match(Ui))?r=n.dot?Xi:zi:(s=t.match(Ki))&&(r=Qi);let u=Us.AST.fromGlob(t,this.options).toMMPattern();return r&&typeof u=="object"&&Reflect.defineProperty(u,"test",{value:r}),u}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let n=this.options,s=n.noglobstar?uo:n.dot?io:oo,r=new Set(n.nocase?["i"]:[]),u=t.map(a=>{let c=a.map(l=>{if(l instanceof RegExp)for(let h of l.flags.split(""))r.add(h);return typeof l=="string"?ho(l):l===A.GLOBSTAR?A.GLOBSTAR:l._src});c.forEach((l,h)=>{let _=c[h+1],f=c[h-1];l!==A.GLOBSTAR||f===A.GLOBSTAR||(f===void 0?_!==void 0&&_!==A.GLOBSTAR?c[h+1]="(?:\\/|"+s+"\\/)?"+_:c[h]=s:_===void 0?c[h-1]=f+"(?:\\/|\\/"+s+")?":_!==A.GLOBSTAR&&(c[h-1]=f+"(?:\\/|\\/"+s+"\\/)"+_,c[h+1]=A.GLOBSTAR))});let D=c.filter(l=>l!==A.GLOBSTAR);if(this.partial&&D.length>=1){let l=[];for(let h=1;h<=D.length;h++)l.push(D.slice(0,h).join("/"));return"(?:"+l.join("|")+")"}return D.join("/")}).join("|"),[i,o]=t.length>1?["(?:",")"]:["",""];u="^"+i+u+o+"$",this.partial&&(u="^(?:\\/|"+i+u.slice(1,-1)+o+")$"),this.negate&&(u="^(?!"+u+").+$");try{this.regexp=new RegExp(u,[...r].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,n=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&n)return!0;let s=this.options;this.isWindows&&(t=t.split("\\").join("/"));let r=this.slashSplit(t);this.debug(this.pattern,"split",r);let u=this.set;this.debug(this.pattern,"set",u);let i=r[r.length-1];if(!i)for(let o=r.length-2;!i&&o>=0;o--)i=r[o];for(let o of u){let a=r;if(s.matchBase&&o.length===1&&(a=[i]),this.matchOne(a,o,n))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(t){return A.minimatch.defaults(t).Minimatch}};A.Minimatch=Ce;var po=Xt();Object.defineProperty(A,"AST",{enumerable:!0,get:function(){return po.AST}});var go=Kt();Object.defineProperty(A,"escape",{enumerable:!0,get:function(){return go.escape}});var mo=rt();Object.defineProperty(A,"unescape",{enumerable:!0,get:function(){return mo.unescape}});A.minimatch.AST=Us.AST;A.minimatch.Minimatch=Ce;A.minimatch.escape=Ni.escape;A.minimatch.unescape=ji.unescape});var ke=R((bl,Ys)=>{"use strict";C();var Qs="[^\\\\/]",_o="(?=.)",Js="[^/]",Qt="(?:\\/|$)",Vs="(?:^|\\/)",Jt=`\\.{1,2}${Qt}`,Co="(?!\\.)",Fo=`(?!${Vs}${Jt})`,yo=`(?!\\.{0,1}${Qt})`,bo=`(?!${Jt})`,Ao="[^.\\/]",vo=`${Js}*?`,wo="/",Zs={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:_o,QMARK:Js,END_ANCHOR:Qt,DOTS_SLASH:Jt,NO_DOT:Co,NO_DOTS:Fo,NO_DOT_SLASH:yo,NO_DOTS_SLASH:bo,QMARK_NO_DOT:Ao,STAR:vo,START_ANCHOR:Vs,SEP:wo},xo={...Zs,SLASH_LITERAL:"[\\\\/]",QMARK:Qs,STAR:`${Qs}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},So={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Ys.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:So,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?xo:Zs}}});var Me=R(te=>{"use strict";C();var{REGEX_BACKSLASH:Ro,REGEX_REMOVE_BACKSLASH:Bo,REGEX_SPECIAL_CHARS:Oo,REGEX_SPECIAL_CHARS_GLOBAL:Lo}=ke();te.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);te.hasRegexChars=e=>Oo.test(e);te.isRegexChar=e=>e.length===1&&te.hasRegexChars(e);te.escapeRegex=e=>e.replace(Lo,"\\$1");te.toPosixSlashes=e=>e.replace(Ro,"/");te.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let e=navigator.platform.toLowerCase();return e==="win32"||e==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1};te.removeBackslashes=e=>e.replace(Bo,t=>t==="\\"?"":t);te.escapeLast=(e,t,n)=>{let s=e.lastIndexOf(t,n);return s===-1?e:e[s-1]==="\\"?te.escapeLast(e,t,s-1):`${e.slice(0,s)}\\${e.slice(s)}`};te.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n};te.wrapOutput=(e,t={},n={})=>{let s=n.contains?"":"^",r=n.contains?"":"$",u=`${s}(?:${e})${r}`;return t.negated===!0&&(u=`(?:^(?!${u}).*$)`),u};te.basename=(e,{windows:t}={})=>{let n=e.split(t?/[\\/]/:"/"),s=n[n.length-1];return s===""?n[n.length-2]:s}});var or=R((xl,ir)=>{"use strict";C();var er=Me(),{CHAR_ASTERISK:Vt,CHAR_AT:To,CHAR_BACKWARD_SLASH:Ne,CHAR_COMMA:$o,CHAR_DOT:Zt,CHAR_EXCLAMATION_MARK:Yt,CHAR_FORWARD_SLASH:ur,CHAR_LEFT_CURLY_BRACE:en,CHAR_LEFT_PARENTHESES:tn,CHAR_LEFT_SQUARE_BRACKET:ko,CHAR_PLUS:Mo,CHAR_QUESTION_MARK:tr,CHAR_RIGHT_CURLY_BRACE:No,CHAR_RIGHT_PARENTHESES:nr,CHAR_RIGHT_SQUARE_BRACKET:jo}=ke(),sr=e=>e===ur||e===Ne,rr=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Po=(e,t)=>{let n=t||{},s=e.length-1,r=n.parts===!0||n.scanToEnd===!0,u=[],i=[],o=[],a=e,c=-1,D=0,l=0,h=!1,_=!1,f=!1,m=!1,b=!1,w=!1,E=!1,x=!1,k=!1,B=!1,M=0,G,S,O={value:"",depth:0,isGlob:!1},d=()=>c>=s,Y=()=>a.charCodeAt(c+1),Q=()=>(G=S,a.charCodeAt(++c));for(;c<s;){S=Q();let P;if(S===Ne){E=O.backslashes=!0,S=Q(),S===en&&(w=!0);continue}if(w===!0||S===en){for(M++;d()!==!0&&(S=Q());){if(S===Ne){E=O.backslashes=!0,Q();continue}if(S===en){M++;continue}if(w!==!0&&S===Zt&&(S=Q())===Zt){if(h=O.isBrace=!0,f=O.isGlob=!0,B=!0,r===!0)continue;break}if(w!==!0&&S===$o){if(h=O.isBrace=!0,f=O.isGlob=!0,B=!0,r===!0)continue;break}if(S===No&&(M--,M===0)){w=!1,h=O.isBrace=!0,B=!0;break}}if(r===!0)continue;break}if(S===ur){if(u.push(c),i.push(O),O={value:"",depth:0,isGlob:!1},B===!0)continue;if(G===Zt&&c===D+1){D+=2;continue}l=c+1;continue}if(n.noext!==!0&&(S===Mo||S===To||S===Vt||S===tr||S===Yt)===!0&&Y()===tn){if(f=O.isGlob=!0,m=O.isExtglob=!0,B=!0,S===Yt&&c===D&&(k=!0),r===!0){for(;d()!==!0&&(S=Q());){if(S===Ne){E=O.backslashes=!0,S=Q();continue}if(S===nr){f=O.isGlob=!0,B=!0;break}}continue}break}if(S===Vt){if(G===Vt&&(b=O.isGlobstar=!0),f=O.isGlob=!0,B=!0,r===!0)continue;break}if(S===tr){if(f=O.isGlob=!0,B=!0,r===!0)continue;break}if(S===ko){for(;d()!==!0&&(P=Q());){if(P===Ne){E=O.backslashes=!0,Q();continue}if(P===jo){_=O.isBracket=!0,f=O.isGlob=!0,B=!0;break}}if(r===!0)continue;break}if(n.nonegate!==!0&&S===Yt&&c===D){x=O.negated=!0,D++;continue}if(n.noparen!==!0&&S===tn){if(f=O.isGlob=!0,r===!0){for(;d()!==!0&&(S=Q());){if(S===tn){E=O.backslashes=!0,S=Q();continue}if(S===nr){B=!0;break}}continue}break}if(f===!0){if(B=!0,r===!0)continue;break}}n.noext===!0&&(m=!1,f=!1);let U=a,g="",p="";D>0&&(g=a.slice(0,D),a=a.slice(D),l-=D),U&&f===!0&&l>0?(U=a.slice(0,l),p=a.slice(l)):f===!0?(U="",p=a):U=a,U&&U!==""&&U!=="/"&&U!==a&&sr(U.charCodeAt(U.length-1))&&(U=U.slice(0,-1)),n.unescape===!0&&(p&&(p=er.removeBackslashes(p)),U&&E===!0&&(U=er.removeBackslashes(U)));let se={prefix:g,input:e,start:D,base:U,glob:p,isBrace:h,isBracket:_,isGlob:f,isExtglob:m,isGlobstar:b,negated:x,negatedExtglob:k};if(n.tokens===!0&&(se.maxDepth=0,sr(S)||i.push(O),se.tokens=i),n.parts===!0||n.tokens===!0){let P;for(let W=0;W<u.length;W++){let De=P?P+1:D,re=u[W],he=e.slice(De,re);n.tokens&&(W===0&&D!==0?(i[W].isPrefix=!0,i[W].value=g):i[W].value=he,rr(i[W]),se.maxDepth+=i[W].depth),(W!==0||he!=="")&&o.push(he),P=re}if(P&&P+1<e.length){let W=e.slice(P+1);o.push(W),n.tokens&&(i[i.length-1].value=W,rr(i[i.length-1]),se.maxDepth+=i[i.length-1].depth)}se.slashes=u,se.parts=o}return se};ir.exports=Po});var Dr=R((Rl,lr)=>{"use strict";C();var je=ke(),ne=Me(),{MAX_LENGTH:Dt,POSIX_REGEX_SOURCE:Ho,REGEX_NON_SPECIAL_CHARS:Io,REGEX_SPECIAL_CHARS_BACKREF:qo,REPLACEMENTS:ar}=je,Wo=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let n=`[${e.join("-")}]`;try{new RegExp(n)}catch{return e.map(r=>ne.escapeRegex(r)).join("..")}return n},we=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,cr=e=>{let t=[],n=0,s=0,r=0,u="",i=!1;for(let o of e){if(i===!0){u+=o,i=!1;continue}if(o==="\\"){u+=o,i=!0;continue}if(o==='"'){r=r===1?0:1,u+=o;continue}if(r===0){if(o==="[")n++;else if(o==="]"&&n>0)n--;else if(n===0){if(o==="(")s++;else if(o===")"&&s>0)s--;else if(o==="|"&&s===0){t.push(u),u="";continue}}}u+=o}return t.push(u),t},Go=e=>{let t=!1;for(let n of e){if(t===!0){t=!1;continue}if(n==="\\"){t=!0;continue}if(/[?*+@!()[\]{}]/.test(n))return!1}return!0},sn=e=>{let t=e.trim(),n=!0;for(;n===!0;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),n=!0);if(Go(t))return t.replace(/\\(.)/g,"$1")},Uo=e=>{let t=e.map(sn).filter(Boolean);for(let n=0;n<t.length;n++)for(let s=n+1;s<t.length;s++){let r=t[n],u=t[s],i=r[0];if(!(!i||r!==i.repeat(r.length)||u!==i.repeat(u.length))&&(r===u||r.startsWith(u)||u.startsWith(r)))return!0}return!1},nn=(e,t=!0)=>{if(e[0]!=="+"&&e[0]!=="*"||e[1]!=="(")return;let n=0,s=0,r=0,u=!1;for(let i=1;i<e.length;i++){let o=e[i];if(u===!0){u=!1;continue}if(o==="\\"){u=!0;continue}if(o==='"'){r=r===1?0:1;continue}if(r!==1){if(o==="["){n++;continue}if(o==="]"&&n>0){n--;continue}if(!(n>0)){if(o==="("){s++;continue}if(o===")"&&(s--,s===0))return t===!0&&i!==e.length-1?void 0:{type:e[0],body:e.slice(2,i),end:i}}}}},zo=e=>`${e.length===1?ne.escapeRegex(e[0]):`[${e.map(n=>ne.escapeRegex(n)).join("")}]`}*`,Xo=e=>{let t=0,n=[];for(;t<e.length;){let s=nn(e.slice(t),!1);if(!s||s.type!=="*")return;let r=cr(s.body).map(i=>i.trim());if(r.length!==1)return;let u=sn(r[0]);if(!u||u.length!==1)return;n.push(u),t+=s.end+1}if(!(n.length<1))return n},Ko=e=>{let t=0,n=e.trim(),s=nn(n);for(;s;)t++,n=s.body.trim(),s=nn(n);return t},Qo=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let n=typeof t.maxExtglobRecursion=="number"?t.maxExtglobRecursion:je.DEFAULT_MAX_EXTGLOB_RECURSION,s=cr(e).map(o=>o.trim());if(s.length>1&&(s.some(o=>o==="")||s.some(o=>/^[*?]+$/.test(o))||Uo(s)))return{risky:!0};let r=[],u=!1,i=!0;for(let o of s){let a=Xo(o);if(a){u=!0,r.push(...a);continue}let c=sn(o);if(c&&c.length===1){r.push(c);continue}if(i=!1,Ko(o)>n)return{risky:!0}}return u?i?{risky:!0,safeOutput:zo([...new Set(r)])}:{risky:!0}:{risky:!1}},rn=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=ar[e]||e;let n={...t},s=typeof n.maxLength=="number"?Math.min(Dt,n.maxLength):Dt,r=e.length;if(r>s)throw new SyntaxError(`Input length: ${r}, exceeds maximum allowed length: ${s}`);let u={type:"bos",value:"",output:n.prepend||""},i=[u],o=n.capture?"":"?:",a=je.globChars(n.windows),c=je.extglobChars(a),{DOT_LITERAL:D,PLUS_LITERAL:l,SLASH_LITERAL:h,ONE_CHAR:_,DOTS_SLASH:f,NO_DOT:m,NO_DOT_SLASH:b,NO_DOTS_SLASH:w,QMARK:E,QMARK_NO_DOT:x,STAR:k,START_ANCHOR:B}=a,M=y=>`(${o}(?:(?!${B}${y.dot?f:D}).)*?)`,G=n.dot?"":m,S=n.dot?E:x,O=n.bash===!0?M(n):k;n.capture&&(O=`(${O})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);let d={input:e,index:-1,start:0,dot:n.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=ne.removePrefix(e,d),r=e.length;let Y=[],Q=[],U=[],g=u,p,se=()=>d.index===r-1,P=d.peek=(y=1)=>e[d.index+y],W=d.advance=()=>e[++d.index]||"",De=()=>e.slice(d.index+1),re=(y="",q=0)=>{d.consumed+=y,d.index+=q},he=y=>{d.output+=y.output!=null?y.output:y.value,re(y.value)},Nr=()=>{let y=1;for(;P()==="!"&&(P(2)!=="("||P(3)==="?");)W(),d.start++,y++;return y%2===0?!1:(d.negated=!0,d.start++,!0)},Ie=y=>{d[y]++,U.push(y)},pe=y=>{d[y]--,U.pop()},L=y=>{if(g.type==="globstar"){let q=d.braces>0&&(y.type==="comma"||y.type==="brace"),F=y.extglob===!0||Y.length&&(y.type==="pipe"||y.type==="paren");y.type!=="slash"&&y.type!=="paren"&&!q&&!F&&(d.output=d.output.slice(0,-g.output.length),g.type="star",g.value="*",g.output=O,d.output+=g.output)}if(Y.length&&y.type!=="paren"&&(Y[Y.length-1].inner+=y.value),(y.value||y.output)&&he(y),g&&g.type==="text"&&y.type==="text"){g.output=(g.output||g.value)+y.value,g.value+=y.value;return}y.prev=g,i.push(y),g=y},qe=(y,q)=>{let F={...c[q],conditions:1,inner:""};F.prev=g,F.parens=d.parens,F.output=d.output,F.startIndex=d.index,F.tokensIndex=i.length;let T=(n.capture?"(":"")+F.open;Ie("parens"),L({type:y,value:q,output:d.output?"":_}),L({type:"paren",extglob:!0,value:W(),output:T}),Y.push(F)},jr=y=>{let q=e.slice(y.startIndex,d.index+1),F=e.slice(y.startIndex+2,d.index),T=Qo(F,n);if((y.type==="plus"||y.type==="star")&&T.risky){let H=T.safeOutput?(y.output?"":_)+(n.capture?`(${T.safeOutput})`:T.safeOutput):void 0,ce=i[y.tokensIndex];ce.type="text",ce.value=q,ce.output=H||ne.escapeRegex(q);for(let le=y.tokensIndex+1;le<i.length;le++)i[le].value="",i[le].output="",delete i[le].suffix;d.output=y.output+ce.output,d.backtrack=!0,L({type:"paren",extglob:!0,value:p,output:""}),pe("parens");return}let I=y.close+(n.capture?")":""),J;if(y.type==="negate"){let H=O;if(y.inner&&y.inner.length>1&&y.inner.includes("/")&&(H=M(n)),(H!==O||se()||/^\)+$/.test(De()))&&(I=y.close=`)$))${H}`),y.inner.includes("*")&&(J=De())&&/^\.[^\\/.]+$/.test(J)){let ce=rn(J,{...t,fastpaths:!1}).output;I=y.close=`)${ce})${H})`}y.prev.type==="bos"&&(d.negatedExtglob=!0)}L({type:"paren",extglob:!0,value:p,output:I}),pe("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let y=!1,q=e.replace(qo,(F,T,I,J,H,ce)=>J==="\\"?(y=!0,F):J==="?"?T?T+J+(H?E.repeat(H.length):""):ce===0?S+(H?E.repeat(H.length):""):E.repeat(I.length):J==="."?D.repeat(I.length):J==="*"?T?T+J+(H?O:""):O:T?F:`\\${F}`);return y===!0&&(n.unescape===!0?q=q.replace(/\\/g,""):q=q.replace(/\\+/g,F=>F.length%2===0?"\\\\":F?"\\":"")),q===e&&n.contains===!0?(d.output=e,d):(d.output=ne.wrapOutput(q,d,t),d)}for(;!se();){if(p=W(),p==="\0")continue;if(p==="\\"){let F=P();if(F==="/"&&n.bash!==!0||F==="."||F===";")continue;if(!F){p+="\\",L({type:"text",value:p});continue}let T=/^\\+/.exec(De()),I=0;if(T&&T[0].length>2&&(I=T[0].length,d.index+=I,I%2!==0&&(p+="\\")),n.unescape===!0?p=W():p+=W(),d.brackets===0){L({type:"text",value:p});continue}}if(d.brackets>0&&(p!=="]"||g.value==="["||g.value==="[^")){if(n.posix!==!1&&p===":"){let F=g.value.slice(1);if(F.includes("[")&&(g.posix=!0,F.includes(":"))){let T=g.value.lastIndexOf("["),I=g.value.slice(0,T),J=g.value.slice(T+2),H=Ho[J];if(H){g.value=I+H,d.backtrack=!0,W(),!u.output&&i.indexOf(g)===1&&(u.output=_);continue}}}(p==="["&&P()!==":"||p==="-"&&P()==="]")&&(p=`\\${p}`),p==="]"&&(g.value==="["||g.value==="[^")&&(p=`\\${p}`),n.posix===!0&&p==="!"&&g.value==="["&&(p="^"),g.value+=p,he({value:p});continue}if(d.quotes===1&&p!=='"'){p=ne.escapeRegex(p),g.value+=p,he({value:p});continue}if(p==='"'){d.quotes=d.quotes===1?0:1,n.keepQuotes===!0&&L({type:"text",value:p});continue}if(p==="("){Ie("parens"),L({type:"paren",value:p});continue}if(p===")"){if(d.parens===0&&n.strictBrackets===!0)throw new SyntaxError(we("opening","("));let F=Y[Y.length-1];if(F&&d.parens===F.parens+1){jr(Y.pop());continue}L({type:"paren",value:p,output:d.parens?")":"\\)"}),pe("parens");continue}if(p==="["){if(n.nobracket===!0||!De().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(we("closing","]"));p=`\\${p}`}else Ie("brackets");L({type:"bracket",value:p});continue}if(p==="]"){if(n.nobracket===!0||g&&g.type==="bracket"&&g.value.length===1){L({type:"text",value:p,output:`\\${p}`});continue}if(d.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(we("opening","["));L({type:"text",value:p,output:`\\${p}`});continue}pe("brackets");let F=g.value.slice(1);if(g.posix!==!0&&F[0]==="^"&&!F.includes("/")&&(p=`/${p}`),g.value+=p,he({value:p}),n.literalBrackets===!1||ne.hasRegexChars(F))continue;let T=ne.escapeRegex(g.value);if(d.output=d.output.slice(0,-g.value.length),n.literalBrackets===!0){d.output+=T,g.value=T;continue}g.value=`(${o}${T}|${g.value})`,d.output+=g.value;continue}if(p==="{"&&n.nobrace!==!0){Ie("braces");let F={type:"brace",value:p,output:"(",outputIndex:d.output.length,tokensIndex:d.tokens.length};Q.push(F),L(F);continue}if(p==="}"){let F=Q[Q.length-1];if(n.nobrace===!0||!F){L({type:"text",value:p,output:p});continue}let T=")";if(F.dots===!0){let I=i.slice(),J=[];for(let H=I.length-1;H>=0&&(i.pop(),I[H].type!=="brace");H--)I[H].type!=="dots"&&J.unshift(I[H].value);T=Wo(J,n),d.backtrack=!0}if(F.comma!==!0&&F.dots!==!0){let I=d.output.slice(0,F.outputIndex),J=d.tokens.slice(F.tokensIndex);F.value=F.output="\\{",p=T="\\}",d.output=I;for(let H of J)d.output+=H.output||H.value}L({type:"brace",value:p,output:T}),pe("braces"),Q.pop();continue}if(p==="|"){Y.length>0&&Y[Y.length-1].conditions++,L({type:"text",value:p});continue}if(p===","){let F=p,T=Q[Q.length-1];T&&U[U.length-1]==="braces"&&(T.comma=!0,F="|"),L({type:"comma",value:p,output:F});continue}if(p==="/"){if(g.type==="dot"&&d.index===d.start+1){d.start=d.index+1,d.consumed="",d.output="",i.pop(),g=u;continue}L({type:"slash",value:p,output:h});continue}if(p==="."){if(d.braces>0&&g.type==="dot"){g.value==="."&&(g.output=D);let F=Q[Q.length-1];g.type="dots",g.output+=p,g.value+=p,F.dots=!0;continue}if(d.braces+d.parens===0&&g.type!=="bos"&&g.type!=="slash"){L({type:"text",value:p,output:D});continue}L({type:"dot",value:p,output:D});continue}if(p==="?"){if(!(g&&g.value==="(")&&n.noextglob!==!0&&P()==="("&&P(2)!=="?"){qe("qmark",p);continue}if(g&&g.type==="paren"){let T=P(),I=p;(g.value==="("&&!/[!=<:]/.test(T)||T==="<"&&!/<([!=]|\w+>)/.test(De()))&&(I=`\\${p}`),L({type:"text",value:p,output:I});continue}if(n.dot!==!0&&(g.type==="slash"||g.type==="bos")){L({type:"qmark",value:p,output:x});continue}L({type:"qmark",value:p,output:E});continue}if(p==="!"){if(n.noextglob!==!0&&P()==="("&&(P(2)!=="?"||!/[!=<:]/.test(P(3)))){qe("negate",p);continue}if(n.nonegate!==!0&&d.index===0){Nr();continue}}if(p==="+"){if(n.noextglob!==!0&&P()==="("&&P(2)!=="?"){qe("plus",p);continue}if(g&&g.value==="("||n.regex===!1){L({type:"plus",value:p,output:l});continue}if(g&&(g.type==="bracket"||g.type==="paren"||g.type==="brace")||d.parens>0){L({type:"plus",value:p});continue}L({type:"plus",value:l});continue}if(p==="@"){if(n.noextglob!==!0&&P()==="("&&P(2)!=="?"){L({type:"at",extglob:!0,value:p,output:""});continue}L({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let F=Io.exec(De());F&&(p+=F[0],d.index+=F[0].length),L({type:"text",value:p});continue}if(g&&(g.type==="globstar"||g.star===!0)){g.type="star",g.star=!0,g.value+=p,g.output=O,d.backtrack=!0,d.globstar=!0,re(p);continue}let y=De();if(n.noextglob!==!0&&/^\([^?]/.test(y)){qe("star",p);continue}if(g.type==="star"){if(n.noglobstar===!0){re(p);continue}let F=g.prev,T=F.prev,I=F.type==="slash"||F.type==="bos",J=T&&(T.type==="star"||T.type==="globstar");if(n.bash===!0&&(!I||y[0]&&y[0]!=="/")){L({type:"star",value:p,output:""});continue}let H=d.braces>0&&(F.type==="comma"||F.type==="brace"),ce=Y.length&&(F.type==="pipe"||F.type==="paren");if(!I&&F.type!=="paren"&&!H&&!ce){L({type:"star",value:p,output:""});continue}for(;y.slice(0,3)==="/**";){let le=e[d.index+4];if(le&&le!=="/")break;y=y.slice(3),re("/**",3)}if(F.type==="bos"&&se()){g.type="globstar",g.value+=p,g.output=M(n),d.output=g.output,d.globstar=!0,re(p);continue}if(F.type==="slash"&&F.prev.type!=="bos"&&!J&&se()){d.output=d.output.slice(0,-(F.output+g.output).length),F.output=`(?:${F.output}`,g.type="globstar",g.output=M(n)+(n.strictSlashes?")":"|$)"),g.value+=p,d.globstar=!0,d.output+=F.output+g.output,re(p);continue}if(F.type==="slash"&&F.prev.type!=="bos"&&y[0]==="/"){let le=y[1]!==void 0?"|$":"";d.output=d.output.slice(0,-(F.output+g.output).length),F.output=`(?:${F.output}`,g.type="globstar",g.output=`${M(n)}${h}|${h}${le})`,g.value+=p,d.output+=F.output+g.output,d.globstar=!0,re(p+W()),L({type:"slash",value:"/",output:""});continue}if(F.type==="bos"&&y[0]==="/"){g.type="globstar",g.value+=p,g.output=`(?:^|${h}|${M(n)}${h})`,d.output=g.output,d.globstar=!0,re(p+W()),L({type:"slash",value:"/",output:""});continue}d.output=d.output.slice(0,-g.output.length),g.type="globstar",g.output=M(n),g.value+=p,d.output+=g.output,d.globstar=!0,re(p);continue}let q={type:"star",value:p,output:O};if(n.bash===!0){q.output=".*?",(g.type==="bos"||g.type==="slash")&&(q.output=G+q.output),L(q);continue}if(g&&(g.type==="bracket"||g.type==="paren")&&n.regex===!0){q.output=p,L(q);continue}(d.index===d.start||g.type==="slash"||g.type==="dot")&&(g.type==="dot"?(d.output+=b,g.output+=b):n.dot===!0?(d.output+=w,g.output+=w):(d.output+=G,g.output+=G),P()!=="*"&&(d.output+=_,g.output+=_)),L(q)}for(;d.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(we("closing","]"));d.output=ne.escapeLast(d.output,"["),pe("brackets")}for(;d.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(we("closing",")"));d.output=ne.escapeLast(d.output,"("),pe("parens")}for(;d.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(we("closing","}"));d.output=ne.escapeLast(d.output,"{"),pe("braces")}if(n.strictSlashes!==!0&&(g.type==="star"||g.type==="bracket")&&L({type:"maybe_slash",value:"",output:`${h}?`}),d.backtrack===!0){d.output="";for(let y of d.tokens)d.output+=y.output!=null?y.output:y.value,y.suffix&&(d.output+=y.suffix)}return d};rn.fastpaths=(e,t)=>{let n={...t},s=typeof n.maxLength=="number"?Math.min(Dt,n.maxLength):Dt,r=e.length;if(r>s)throw new SyntaxError(`Input length: ${r}, exceeds maximum allowed length: ${s}`);e=ar[e]||e;let{DOT_LITERAL:u,SLASH_LITERAL:i,ONE_CHAR:o,DOTS_SLASH:a,NO_DOT:c,NO_DOTS:D,NO_DOTS_SLASH:l,STAR:h,START_ANCHOR:_}=je.globChars(n.windows),f=n.dot?D:c,m=n.dot?l:c,b=n.capture?"":"?:",w={negated:!1,prefix:""},E=n.bash===!0?".*?":h;n.capture&&(E=`(${E})`);let x=G=>G.noglobstar===!0?E:`(${b}(?:(?!${_}${G.dot?a:u}).)*?)`,k=G=>{switch(G){case"*":return`${f}${o}${E}`;case".*":return`${u}${o}${E}`;case"*.*":return`${f}${E}${u}${o}${E}`;case"*/*":return`${f}${E}${i}${o}${m}${E}`;case"**":return f+x(n);case"**/*":return`(?:${f}${x(n)}${i})?${m}${o}${E}`;case"**/*.*":return`(?:${f}${x(n)}${i})?${m}${E}${u}${o}${E}`;case"**/.*":return`(?:${f}${x(n)}${i})?${u}${o}${E}`;default:{let S=/^(.*?)\.(\w+)$/.exec(G);if(!S)return;let O=k(S[1]);return O?O+u+S[2]:void 0}}},B=ne.removePrefix(e,w),M=k(B);return M&&n.strictSlashes!==!0&&(M+=`${i}?`),M};lr.exports=rn});var pr=R((Ol,hr)=>{"use strict";C();var Jo=or(),un=Dr(),fr=Me(),Vo=ke(),Zo=e=>e&&typeof e=="object"&&!Array.isArray(e),K=(e,t,n=!1)=>{if(Array.isArray(e)){let D=e.map(h=>K(h,t,n));return h=>{for(let _ of D){let f=_(h);if(f)return f}return!1}}let s=Zo(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!s)throw new TypeError("Expected pattern to be a non-empty string");let r=t||{},u=r.windows,i=s?K.compileRe(e,t):K.makeRe(e,t,!1,!0),o=i.state;delete i.state;let a=()=>!1;if(r.ignore){let D={...t,ignore:null,onMatch:null,onResult:null};a=K(r.ignore,D,n)}let c=(D,l=!1)=>{let{isMatch:h,match:_,output:f}=K.test(D,i,t,{glob:e,posix:u}),m={glob:e,state:o,regex:i,posix:u,input:D,output:f,match:_,isMatch:h};return typeof r.onResult=="function"&&r.onResult(m),h===!1?(m.isMatch=!1,l?m:!1):a(D)?(typeof r.onIgnore=="function"&&r.onIgnore(m),m.isMatch=!1,l?m:!1):(typeof r.onMatch=="function"&&r.onMatch(m),l?m:!0)};return n&&(c.state=o),c};K.test=(e,t,n,{glob:s,posix:r}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let u=n||{},i=u.format||(r?fr.toPosixSlashes:null),o=e===s,a=o&&i?i(e):e;return o===!1&&(a=i?i(e):e,o=a===s),(o===!1||u.capture===!0)&&(u.matchBase===!0||u.basename===!0?o=K.matchBase(e,t,n,r):o=t.exec(a)),{isMatch:!!o,match:o,output:a}};K.matchBase=(e,t,n,s=n&&n.windows)=>(t instanceof RegExp?t:K.makeRe(t,n)).test(fr.basename(e,{windows:s}));K.isMatch=(e,t,n)=>K(t,n)(e);K.parse=(e,t)=>Array.isArray(e)?e.map(n=>K.parse(n,t)):un(e,{...t,fastpaths:!1});K.scan=(e,t)=>Jo(e,t);K.compileRe=(e,t,n=!1,s=!1)=>{if(n===!0)return e.output;let r=t||{},u=r.contains?"":"^",i=r.contains?"":"$",o=`${u}(?:${e.output})${i}`;e&&e.negated===!0&&(o=`^(?!${o}).*$`);let a=K.toRegex(o,t);return s===!0&&(a.state=e),a};K.makeRe=(e,t={},n=!1,s=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let r={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(r.output=un.fastpaths(e,t)),r.output||(r=un(e,t)),K.compileRe(r,t,n,s)};K.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(n){if(t&&t.debug===!0)throw n;return/$^/}};K.constants=Vo;hr.exports=K});var Er=R((Tl,mr)=>{"use strict";C();var gr=pr(),Yo=Me();function dr(e,t,n=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:Yo.isWindows()}),gr(e,t,n)}Object.assign(dr,gr);mr.exports=dr});var tc=R(Rr=>{C();var ea=Object.create,Cr=Object.defineProperty,ta=Object.getOwnPropertyDescriptor,na=Object.getOwnPropertyNames,sa=Object.getPrototypeOf,ra=Object.prototype.hasOwnProperty,ua=(e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=na(t),u=0,i=r.length,o;u<i;u++)o=r[u],!ra.call(e,o)&&o!==n&&Cr(e,o,{get:(a=>t[a]).bind(null,o),enumerable:!(s=ta(t,o))||s.enumerable});return e},Fr=(e,t,n)=>(n=e!=null?ea(sa(e)):{},ua(t||!e||!e.__esModule?Cr(n,"default",{value:e,enumerable:!0}):n,e)),fe=Fr(V("path")),ia=Fr(V("fs"));function oa(e){let t=(0,fe.normalize)(e);return t.length>1&&t[t.length-1]===fe.sep&&(t=t.substring(0,t.length-1)),t}var aa=/[\\/]/g;function yr(e,t){return e.replace(aa,t)}var ca=/^[a-z]:[\\/]$/i;function la(e){return e==="/"||ca.test(e)}function on(e,t){let{resolvePaths:n,normalizePath:s,pathSeparator:r}=t,u=process.platform==="win32"&&e.includes("/")||e.startsWith(".");if(n&&(e=(0,fe.resolve)(e)),(s||u)&&(e=oa(e)),e===".")return"";let i=e[e.length-1]!==r;return yr(i?e+r:e,r)}function br(e,t){return t+e}function Da(e,t){return function(n,s){return s.startsWith(e)?s.slice(e.length)+n:yr((0,fe.relative)(e,s),t.pathSeparator)+t.pathSeparator+n}}function fa(e){return e}function ha(e,t,n){return t+e+n}function pa(e,t){let{relativePaths:n,includeBasePath:s}=t;return n&&e?Da(e,t):s?br:fa}function ga(e){return function(t,n){n.push(t.substring(e.length)||".")}}function da(e){return function(t,n,s){let r=t.substring(e.length)||".";s.every(u=>u(r,!0))&&n.push(r)}}var ma=(e,t)=>{t.push(e||".")},Ea=(e,t,n)=>{let s=e||".";n.every(r=>r(s,!0))&&t.push(s)},_a=()=>{};function Ca(e,t){let{includeDirs:n,filters:s,relativePaths:r}=t;return n?r?s&&s.length?da(e):ga(e):s&&s.length?Ea:ma:_a}var Fa=(e,t,n,s)=>{s.every(r=>r(e,!1))&&n.files++},ya=(e,t,n,s)=>{s.every(r=>r(e,!1))&&t.push(e)},ba=(e,t,n,s)=>{n.files++},Aa=(e,t)=>{t.push(e)},va=()=>{};function wa(e){let{excludeFiles:t,filters:n,onlyCounts:s}=e;return t?va:n&&n.length?s?Fa:ya:s?ba:Aa}var xa=e=>e,Sa=()=>[""].slice(0,0);function Ra(e){return e.group?Sa:xa}var Ba=(e,t,n)=>{e.push({directory:t,files:n,dir:t})},Oa=()=>{};function La(e){return e.group?Ba:Oa}var Ta=function(e,t,n){let{queue:s,fs:r,options:{suppressErrors:u}}=t;s.enqueue(),r.realpath(e,(i,o)=>{if(i)return s.dequeue(u?null:i,t);r.stat(o,(a,c)=>{if(a)return s.dequeue(u?null:a,t);if(c.isDirectory()&&Ar(e,o,t))return s.dequeue(null,t);n(c,o),s.dequeue(null,t)})})},$a=function(e,t,n){let{queue:s,fs:r,options:{suppressErrors:u}}=t;s.enqueue();try{let i=r.realpathSync(e),o=r.statSync(i);if(o.isDirectory()&&Ar(e,i,t))return;n(o,i)}catch(i){if(!u)throw i}};function ka(e,t){return!e.resolveSymlinks||e.excludeSymlinks?null:t?$a:Ta}function Ar(e,t,n){if(n.options.useRealPaths)return Ma(t,n);let s=(0,fe.dirname)(e),r=1;for(;s!==n.root&&r<2;){let u=n.symlinks.get(s);!!u&&(u===t||u.startsWith(t)||t.startsWith(u))?r++:s=(0,fe.dirname)(s)}return n.symlinks.set(e,t),r>1}function Ma(e,t){return t.visited.includes(e+t.options.pathSeparator)}var Na=e=>e.counts,ja=e=>e.groups,Pa=e=>e.paths,Ha=e=>e.paths.slice(0,e.options.maxFiles),Ia=(e,t,n)=>(ft(t,n,e.counts,e.options.suppressErrors),null),qa=(e,t,n)=>(ft(t,n,e.paths,e.options.suppressErrors),null),Wa=(e,t,n)=>(ft(t,n,e.paths.slice(0,e.options.maxFiles),e.options.suppressErrors),null),Ga=(e,t,n)=>(ft(t,n,e.groups,e.options.suppressErrors),null);function ft(e,t,n,s){t(e&&!s?e:null,n)}function Ua(e,t){let{onlyCounts:n,group:s,maxFiles:r}=e;return n?t?Na:Ia:s?t?ja:Ga:r?t?Ha:Wa:t?Pa:qa}var vr={withFileTypes:!0},za=(e,t,n,s,r)=>{if(e.queue.enqueue(),s<0)return e.queue.dequeue(null,e);let{fs:u}=e;e.visited.push(t),e.counts.directories++,u.readdir(t||".",vr,(i,o=[])=>{r(o,n,s),e.queue.dequeue(e.options.suppressErrors?null:i,e)})},Xa=(e,t,n,s,r)=>{let{fs:u}=e;if(s<0)return;e.visited.push(t),e.counts.directories++;let i=[];try{i=u.readdirSync(t||".",vr)}catch(o){if(!e.options.suppressErrors)throw o}r(i,n,s)};function Ka(e){return e?Xa:za}var Qa=class{count=0;constructor(e){this.onQueueEmpty=e}enqueue(){return this.count++,this.count}dequeue(e,t){this.onQueueEmpty&&(--this.count<=0||e)&&(this.onQueueEmpty(e,t),e&&(t.controller.abort(),this.onQueueEmpty=void 0))}},Ja=class{_files=0;_directories=0;set files(e){this._files=e}get files(){return this._files}set directories(e){this._directories=e}get directories(){return this._directories}get dirs(){return this._directories}},Va=class{aborted=!1;abort(){this.aborted=!0}},wr=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(e,t,n){this.isSynchronous=!n,this.callbackInvoker=Ua(t,this.isSynchronous),this.root=on(e,t),this.state={root:la(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new Ja,options:t,queue:new Qa((s,r)=>this.callbackInvoker(r,s,n)),symlinks:new Map,visited:[""].slice(0,0),controller:new Va,fs:t.fs||ia},this.joinPath=pa(this.root,t),this.pushDirectory=Ca(this.root,t),this.pushFile=wa(t),this.getArray=Ra(t),this.groupFiles=La(t),this.resolveSymlink=ka(t,this.isSynchronous),this.walkDirectory=Ka(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(e,t,n)=>{let{paths:s,options:{filters:r,resolveSymlinks:u,excludeSymlinks:i,exclude:o,maxFiles:a,signal:c,useRealPaths:D,pathSeparator:l},controller:h}=this.state;if(h.aborted||c&&c.aborted||a&&s.length>a)return;let _=this.getArray(this.state.paths);for(let f=0;f<e.length;++f){let m=e[f];if(m.isFile()||m.isSymbolicLink()&&!u&&!i){let b=this.joinPath(m.name,t);this.pushFile(b,_,this.state.counts,r)}else if(m.isDirectory()){let b=ha(m.name,t,this.state.options.pathSeparator);if(o&&o(m.name,b))continue;this.pushDirectory(b,s,r),this.walkDirectory(this.state,b,b,n-1,this.walk)}else if(this.resolveSymlink&&m.isSymbolicLink()){let b=br(m.name,t);this.resolveSymlink(b,this.state,(w,E)=>{if(w.isDirectory()){if(E=on(E,this.state.options),o&&o(m.name,D?E:b+l))return;this.walkDirectory(this.state,E,D?E:b+l,n-1,this.walk)}else{E=D?E:b;let x=(0,fe.basename)(E),k=on((0,fe.dirname)(E),this.state.options);E=this.joinPath(x,k),this.pushFile(E,_,this.state.counts,r)}})}}this.groupFiles(this.state.groups,t,_)}};function Za(e,t){return new Promise((n,s)=>{xr(e,t,(r,u)=>{if(r)return s(r);n(u)})})}function xr(e,t,n){new wr(e,t,n).start()}function Ya(e,t){return new wr(e,t).start()}var _r=class{constructor(e,t){this.root=e,this.options=t}withPromise(){return Za(this.root,this.options)}withCallback(e){xr(this.root,this.options,e)}sync(){return Ya(this.root,this.options)}},Sr=null;try{V.resolve("picomatch"),Sr=Er()}catch{}var ec=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:fe.sep,filters:[]};globFunction;constructor(e){this.options={...this.options,...e},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(e){return this.options.pathSeparator=e,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(e){return this.options.maxDepth=e,this}withMaxFiles(e){return this.options.maxFiles=e,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:e=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=e,this.withFullPaths()}withAbortSignal(e){return this.options.signal=e,this}normalize(){return this.options.normalizePath=!0,this}filter(e){return this.options.filters.push(e),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(e){return this.options.exclude=e,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(e){return new _r(e||".",this.options)}withGlobFunction(e){return this.globFunction=e,this}crawlWithOptions(e,t){return this.options={...this.options,...t},new _r(e||".",this.options)}glob(...e){return this.globFunction?this.globWithOptions(e):this.globWithOptions(e,{dot:!0})}globWithOptions(e,...t){let n=this.globFunction||Sr;if(!n)throw new Error("Please specify a glob function to use glob matching.");var s=this.globCache[e.join("\0")];return s||(s=n(e,...t),this.globCache[e.join("\0")]=s),this.options.filters.push(r=>s(r)),this}};Rr.fdir=ec});var uc=R((Gl,He)=>{C();var ae=V("path"),Pe=V("fs"),nc=V("os"),sc=V("url"),Br=Pe.promises.readFile;function rc(e,t){return["package.json",`.${e}rc.json`,`.${e}rc.js`,`.${e}rc.cjs`,...t?[]:[`.${e}rc.mjs`],`.config/${e}rc`,`.config/${e}rc.json`,`.config/${e}rc.js`,`.config/${e}rc.cjs`,...t?[]:[`.config/${e}rc.mjs`],`${e}.config.js`,`${e}.config.cjs`,...t?[]:[`${e}.config.mjs`]]}function pt(e){return ae.dirname(e)||ae.sep}var cn=(e,t)=>JSON.parse(t),ht=typeof __webpack_require__=="function"?__non_webpack_require__:V,Or=Object.freeze({".js":ht,".json":ht,".cjs":ht,noExt:cn});He.exports.defaultLoadersSync=Or;var an=async e=>{try{return(await import(sc.pathToFileURL(e).href)).default}catch(t){try{return ht(e)}catch(n){throw n.code==="ERR_REQUIRE_ESM"||n instanceof SyntaxError&&n.toString().includes("Cannot use import statement outside a module")?t:n}}},Lr=Object.freeze({".js":an,".mjs":an,".cjs":an,".json":cn,noExt:cn});He.exports.defaultLoaders=Lr;function Tr(e,t,n){let s={stopDir:nc.homedir(),searchPlaces:rc(e,n),ignoreEmptySearchPlaces:!0,cache:!0,transform:r=>r,packageProp:[e],...t,loaders:{...n?Or:Lr,...t.loaders}};return s.searchPlaces.forEach(r=>{let u=ae.extname(r)||"noExt",i=s.loaders[u];if(!i)throw new Error(`Missing loader for extension "${r}"`);if(typeof i!="function")throw new Error(`Loader for extension "${r}" is not a function: Received ${typeof i}.`)}),s}function gt(e,t){return typeof e=="string"&&e in t?t[e]:(Array.isArray(e)?e:e.split(".")).reduce((n,s)=>n===void 0?n:n[s],t)||null}function $r(e){if(!e)throw new Error("load must pass a non-empty string")}function dt(e,t){if(!e)throw new Error(`No loader specified for extension "${t}"`);if(typeof e!="function")throw new Error("loader is not a function")}var kr=e=>(t,n,s)=>(e&&t.set(n,s),s);He.exports.lilconfig=function(t,n){let{ignoreEmptySearchPlaces:s,loaders:r,packageProp:u,searchPlaces:i,stopDir:o,transform:a,cache:c}=Tr(t,n??{},!1),D=new Map,l=new Map,h=kr(c);return{async search(_=process.cwd()){let f={config:null,filepath:""},m=new Set,b=_;e:for(;;){if(c){let E=D.get(b);if(E!==void 0){for(let x of m)D.set(x,E);return E}m.add(b)}for(let E of i){let x=ae.join(b,E);try{await Pe.promises.access(x)}catch{continue}let k=String(await Br(x)),B=ae.extname(E)||"noExt",M=r[B];if(E==="package.json"){let S=await M(x,k),O=gt(u,S);if(O!=null){f.config=O,f.filepath=x;break e}continue}let G=k.trim()==="";if(!(G&&s)){G?(f.isEmpty=!0,f.config=void 0):(dt(M,B),f.config=await M(x,k)),f.filepath=x;break e}}if(b===o||b===pt(b))break e;b=pt(b)}let w=f.filepath===""&&f.config===null?a(null):a(f);if(c)for(let E of m)D.set(E,w);return w},async load(_){$r(_);let f=ae.resolve(process.cwd(),_);if(c&&l.has(f))return l.get(f);let{base:m,ext:b}=ae.parse(f),w=b||"noExt",E=r[w];dt(E,w);let x=String(await Br(f));if(m==="package.json"){let M=await E(f,x);return h(l,f,a({config:gt(u,M),filepath:f}))}let k={config:null,filepath:f},B=x.trim()==="";return B&&s?h(l,f,a({config:void 0,filepath:f,isEmpty:!0})):(k.config=B?void 0:await E(f,x),h(l,f,a(B?{...k,isEmpty:B,config:void 0}:k)))},clearLoadCache(){c&&l.clear()},clearSearchCache(){c&&D.clear()},clearCaches(){c&&(l.clear(),D.clear())}}};He.exports.lilconfigSync=function(t,n){let{ignoreEmptySearchPlaces:s,loaders:r,packageProp:u,searchPlaces:i,stopDir:o,transform:a,cache:c}=Tr(t,n??{},!0),D=new Map,l=new Map,h=kr(c);return{search(_=process.cwd()){let f={config:null,filepath:""},m=new Set,b=_;e:for(;;){if(c){let E=D.get(b);if(E!==void 0){for(let x of m)D.set(x,E);return E}m.add(b)}for(let E of i){let x=ae.join(b,E);try{Pe.accessSync(x)}catch{continue}let k=ae.extname(E)||"noExt",B=r[k],M=String(Pe.readFileSync(x));if(E==="package.json"){let S=B(x,M),O=gt(u,S);if(O!=null){f.config=O,f.filepath=x;break e}continue}let G=M.trim()==="";if(!(G&&s)){G?(f.isEmpty=!0,f.config=void 0):(dt(B,k),f.config=B(x,M)),f.filepath=x;break e}}if(b===o||b===pt(b))break e;b=pt(b)}let w=f.filepath===""&&f.config===null?a(null):a(f);if(c)for(let E of m)D.set(E,w);return w},load(_){$r(_);let f=ae.resolve(process.cwd(),_);if(c&&l.has(f))return l.get(f);let{base:m,ext:b}=ae.parse(f),w=b||"noExt",E=r[w];dt(E,w);let x=String(Pe.readFileSync(f));if(m==="package.json"){let M=E(f,x);return a({config:gt(u,M),filepath:f})}let k={config:null,filepath:f},B=x.trim()==="";return B&&s?h(l,f,a({filepath:f,config:void 0,isEmpty:!0})):(k.config=B?void 0:E(f,x),h(l,f,a(B?{...k,isEmpty:B,config:void 0}:k)))},clearLoadCache(){c&&l.clear()},clearSearchCache(){c&&D.clear()},clearCaches(){c&&(l.clear(),D.clear())}}}});var ic=R((Xl,Mr)=>{C();var mt=Mr.exports=function(e,t,n){typeof e=="object"&&(n=e,e=n.start,t=n.stop),typeof t=="object"&&(n=t,e=e||n.start,t=void 0),t||(t=e,e=0),n||(n={});var s=n.mode||"soft",r=s==="hard"?/\b/:/(\S+\s+)/;return function(u){var i=u.toString().split(r).reduce(function(o,a){if(s==="hard")for(var c=0;c<a.length;c+=t-e)o.push(a.slice(c,c+t-e));else o.push(a);return o},[]);return i.reduce(function(o,a){if(a==="")return o;var c=a.replace(/\t/g," "),D=o.length-1;if(o[D].length+c.length>t)o[D]=o[D].replace(/\s+$/,""),c.split(/\n/).forEach(function(h){o.push(new Array(e+1).join(" ")+h.replace(/^\s+/,""))});else if(c.match(/\n/)){var l=c.split(/\n/);o[D]+=l.shift(),l.forEach(function(h){o.push(new Array(e+1).join(" ")+h.replace(/^\s+/,""))})}else o[D]+=c;return o},[new Array(e+1).join(" ")]).join(`
|
|
66
|
-
`)}};mt.soft=mt;mt.hard=function(e,t){return mt(e,t,{mode:"hard"})}});export{Au as a,Dn as b,qr as c,vu as d
|
|
66
|
+
`)}};mt.soft=mt;mt.hard=function(e,t){return mt(e,t,{mode:"hard"})}});export{Au as a,Dn as b,qr as c,vu as d,$t as e,Xu as f,Xr as g,iu as h,Ku as i,Ju as j,Zu as k,Eo as l,Er as m,tc as n,uc as o,ic as p};
|
|
67
67
|
/*! Bundled license information:
|
|
68
68
|
|
|
69
69
|
ejs/lib/ejs.js:
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{b as W}from"./chunk-J3JPJCWP.js";import{a as z,m as N,o as Q}from"./chunk-LVLAOBJM.js";import{a as X}from"./chunk-KSDU4YOB.js";import{a as q,c as g}from"./chunk-PSSYLJG4.js";import{a as B}from"./chunk-EITIW5OX.js";import{a as $,b as V}from"./chunk-YY6TFARF.js";import{a as K}from"./chunk-P33TONYG.js";import{d as G,e as H,g as U,h as M}from"./chunk-QFWWCZOI.js";import{k as J,n as Y}from"./chunk-5TB52UUV.js";import{p as O,q as A,r as C,u as I,v as L}from"./chunk-DJAZBPYA.js";import{i as Z,l as ee}from"./chunk-XM7YUXTF.js";import{N as D,ua as u}from"./chunk-H4V55Y3Z.js";import{b as R,c as j}from"./chunk-Q2SZCZE7.js";import{A as x,I as E}from"./chunk-CZ22VZDA.js";import{Va as _,wb as f}from"./chunk-LWCTKI4Z.js";import{b as n}from"./chunk-FZCGRIOM.js";import{b as ae}from"./chunk-YTUUU33R.js";import{g as F,p as y}from"./chunk-IWTNUJGY.js";import{e as me,g as a}from"./chunk-VKWPEFWQ.js";a();a();a();import{resolve as ce}from"node:path";var ue=n.object({id:n.number(),name:n.string(),role:n.string(),processing:n.boolean(),src:n.string().optional(),shop:n.string(),editor_url:n.string(),preview_url:n.string()}),w=n.object({environment:n.string().optional(),path:n.string(),changed:n.boolean().optional(),theme:ue}),re=G.extend({processing:n.boolean(),sourceUrl:n.string().url().nullable()}).strict(),de=n.object({status:n.literal("success"),changed:n.boolean(),directory:n.string().refine(F,"Expected an absolute filesystem path."),theme:re}).strict(),te=n.object({status:n.literal("skipped"),reason:n.literal("unsafe-directory")}).strict(),d=H({name:"ThemePullResult",schema:n.union([de,te]),definitions:{ThemePullTheme:re},project:t=>{if(te.safeParse(t).success)return t;let{theme:e,path:r,changed:o}=w.parse(t);return{status:"success",changed:o??!0,directory:ce(r),theme:{...M(e),storeDomain:U(e.shop),processing:e.processing,sourceUrl:e.src===""?null:e.src??null,editorUrl:e.editor_url||null,previewUrl:e.preview_url||null}}}});a();function v(t,e){if(e==="json"){f(d.encode(t));return}let{environment:r,theme:o}=t;x({headline:r?`Environment: ${r}`:"",body:["The theme",...q(o),"has been pulled."],nextSteps:[[{link:{label:"View your theme",url:o.preview_url}}],[{link:{label:"Customize your theme at the theme editor",url:o.editor_url}}]]})}function oe(t){let e=t.map(r=>"error"in r?r:{...r,result:r.result??{status:"skipped",reason:"unsafe-directory"}});f(d.encode({environments:e}))}a();async function ne(t,e,r,o,s,m){let i=he(r,o,s),c=pe(r,t,o,e),l=[...i,...c,{title:"Theme download complete",task:async()=>{}}];return l.length>0&&await E(l,{renderOptions:{stdout:m?.stdout??process.stdout},noProgressBar:s.multiEnvironment}),i.length>0||c.length>0}function he(t,e,r){if(r.nodelete)return[];let o=new Set(t.map(i=>i.key));return e.applyIgnoreFilters([...e.files.values()]).map(({key:i})=>i).filter(i=>!o.has(i)).map(i=>({title:`Cleaning your local directory (removing ${i})`,task:async()=>e.delete(i)}))}function pe(t,e,r,o){let s=r.applyIgnoreFilters(t);s=s.filter(l=>{let p=l.checksum;return r.files.get(l.key)?.checksum!==p});let m=s.map(l=>l.key),i=l=>l.total===0?"[100%]":`[${Math.round(l.current/l.total*100)}%]`;return W(m,I,(l,p)=>({title:`Downloading files from remote theme ${i({current:p,total:m.length})}`,task:async()=>fe(e,r,l,o)}))}async function fe(t,e,r,o){let s=await J(t.id,r,o);s&&await Promise.all(s.map(m=>e.write(m)))}async function P(t,e,r,o){u("theme-service:pull:setup"),X({verbose:t.verbose,noColor:t.noColor});let s=e??await D(C({store:t.store}),t.password),m=new B(s),i=await(t.development?m.find():m.fetch()),{path:c,nodelete:l,live:p,development:T,only:se,ignore:ie,force:S,environment:k}=t;if(!await ye(c??y(),S??!1,k?.[0],r))return;let le=await K(s,{header:"Select a theme to open",filter:{live:p,theme:T?`${i?.id}`:t.theme}});return u("theme-service:pull:setup"),ve(le,s,{environment:k?.[0],force:S??!1,ignore:ie??[],multiEnvironment:r,nodelete:l??!1,only:se??[],path:c??y()},o)}async function ve(t,e,r,o){u("theme-service:pull:file-system");let s=N(r.path,{filters:r}),[m]=await Promise.all([Y(t.id,e),s.ready()]),i=z(m);u("theme-service:pull:file-system");let c=await ne(t,e,i,s,r,o);return w.parse({environment:r.environment,path:r.path,changed:c,theme:{id:t.id,name:t.name,role:t.role,processing:t.processing,src:t.src,shop:e.storeFqdn,editor_url:V(t,e),preview_url:$(t,e)}})}async function Te(t){return(await _("*",{cwd:t,deep:1,onlyFiles:!1})).length===0}async function ye(t,e,r,o){return e?!0:!(!await Te(t)&&!await Q(t)&&!await g(e,void 0,r,o)||await Z(t)&&!await ee(t)&&!await g(e,"The current Git directory has uncommitted changes.",r,o))}async function et(t,e,r,o){let s=await P(t,e,r,o);s&&v(s,"text")}var h=me(ae(),1);var b=class extends L{static get jsonOutputSchema(){return d}static summary="Download your remote theme files locally.";static descriptionWithMarkdown=`Retrieves theme files from Shopify.
|
|
2
|
+
|
|
3
|
+
If no theme is specified, then you're prompted to select the theme to pull from the list of the themes in your store.`;static description=this.descriptionForHelp();static flags={...R,...j,...O,...A("download"),theme:h.Flags.string({char:"t",description:"Theme ID or name of the remote theme. Use --development, --live, or --theme in non-interactive environments.",env:"SHOPIFY_FLAG_THEME_ID"}),development:h.Flags.boolean({char:"d",description:"Pull theme files from your remote development theme. Use --development, --live, or --theme in non-interactive environments.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),live:h.Flags.boolean({char:"l",description:"Pull theme files from your remote live theme. Use --development, --live, or --theme in non-interactive environments.",env:"SHOPIFY_FLAG_LIVE"}),nodelete:h.Flags.boolean({char:"n",description:"Prevent deleting local files that don't exist remotely.",env:"SHOPIFY_FLAG_NODELETE"}),force:h.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"})};static multiEnvironmentsFlags=["store","password","path",["live","development","theme"]];static nonTTYFlagRequirements(){return[{flags:["theme","development","live"]}]}async command(e,r,o,s,m){u("theme-command:pull");let i=await P({...e,noColor:e["no-color"]},r,o,m);return e.json&&o||(i?v(i,e.json?"json":"text"):e.json&&f(d.encode({status:"cancelled"}))),u("theme-command:pull"),i??(e.json&&o?{status:"skipped",reason:"unsafe-directory"}:void 0)}renderEnvironmentResults(e){oe(e)}storeAuthScopes(){return["read_themes"]}};export{et as a,b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as c,J as p,M as o,U as S,j as f,t as h,w as y,z as g}from"./chunk-LMQGNECW.js";import{h as a}from"./chunk-2VSNFOKD.js";import{i as d}from"./chunk-IWTNUJGY.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();async function A(t,e){let r=c(t);if(await y(t.appDirectory,r))return;let{scan:s}=p(t,e),n=new a(`No app security check results for ${r} in ${t.appDirectory}.`,`Run \`${o(s)}\`.`);throw n.code="results-directory-not-found",n}async function q(t,e){await A(t,e);let r=h(t.appDirectory,c(t)),[s,n]=await Promise.all([b(r.deterministicFindingsPath,"deterministic"),b(r.agentFindingsPath,"agent")]),i=[v(s,"deterministic"),v(n,"agent")].filter(k=>k!==void 0);i.length>0&&D(i,p(t,e));let u=w(s),l=w(n);return{sources:{deterministic:u,agent:l},checks:f({deterministic:u?.document??null,agent:l?.document??null})}}async function b(t,e){return{path:t,result:await g(t,e)}}function v(t,e){if(t.result.status==="invalid")return{source:e,path:t.path,errors:t.result.errors}}function w(t){return t.result.status!=="ok"?null:{path:t.path,document:t.result.value}}function D(t,e){let r=t.length===1?"The app security check results could not be loaded because a results file is invalid.":"The app security check results could not be loaded because both results files are invalid.",s=[...t.map(i=>R(i.source,e,`${d(i.path)}.`)),["Or run",{command:o(e.clean)},"to delete both results files and start over."]],n=new a(r,null,s,t.map($));throw n.code="results-file-invalid",n.details={files:t.map(({path:i,errors:u})=>({path:S(i),errors:u}))},n}function R(t,e,r){return t==="deterministic"?["Run",{command:o(e.scan)},`to regenerate ${r}`]:["Have your coding agent run",{command:o(e.record)},`again to regenerate ${r}`]}function $(t){return{title:t.path,body:{list:{items:t.errors}}}}export{A as a,q as b};
|