@shopify/cli 4.0.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/analytics-CX22YIUZ.js +1 -0
- package/dist/analytics-UBWQIQYF.js +1 -0
- package/dist/angular-UTTM4Y4S.js +4 -0
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-DU4WR4OP.js → chunk-23AMFHXC.js} +1 -1
- package/dist/{chunk-LNHLDRC5.js → chunk-2EJCY4CE.js} +1 -1
- package/dist/{chunk-YMWHHINU.js → chunk-2KH2S7PI.js} +1 -1
- package/dist/chunk-2N4O33VM.js +6 -0
- package/dist/{chunk-WZBSLU4Q.js → chunk-2VLMN5QZ.js} +1 -1
- package/dist/chunk-2WNODIWJ.js +1 -0
- package/dist/chunk-2YXKZWYW.js +1 -0
- package/dist/{chunk-GFJ7UV74.js → chunk-3BRUCKZ2.js} +1 -1
- package/dist/{chunk-RM5SJJN6.js → chunk-3V63X7WZ.js} +66 -66
- package/dist/chunk-3YWUSKWF.js +159 -0
- package/dist/chunk-42RMKTCJ.js +8 -0
- package/dist/{chunk-V2CNCPIE.js → chunk-4EXYYBQ6.js} +1 -1
- package/dist/chunk-4KRT35A2.js +1 -0
- package/dist/chunk-4V4DQ6W7.js +836 -0
- package/dist/chunk-4Z2WYNTE.js +1 -0
- package/dist/chunk-57N2DFIF.js +1 -0
- package/dist/chunk-5TIJLYZU.js +3 -0
- package/dist/{chunk-GNPS5SBU.js → chunk-6AJZKIZ3.js} +1 -1
- package/dist/{chunk-XNO6DZYP.js → chunk-6HZTMQD6.js} +1 -1
- package/dist/chunk-6LK6ZP3Q.js +1 -0
- package/dist/chunk-6SXOUZ7V.js +1 -0
- package/dist/chunk-6TEXPRI2.js +2 -0
- package/dist/{chunk-OUOYKNMY.js → chunk-6TORWTD7.js} +1 -1
- package/dist/{chunk-IASVAERO.js → chunk-6YAXFS6V.js} +1 -1
- package/dist/chunk-6YHJ554P.js +6 -0
- package/dist/chunk-6ZIOYXEF.js +3 -0
- package/dist/chunk-7BFDUVOG.js +1 -0
- package/dist/chunk-7DVOSOEP.js +11 -0
- package/dist/chunk-7JESXDF2.js +14 -0
- package/dist/chunk-7KJ5TBWG.js +5 -0
- package/dist/{chunk-7MUKLZOL.js → chunk-A3VYI4LO.js} +2 -2
- package/dist/{chunk-4HHXSMD7.js → chunk-A5SQCM63.js} +2 -2
- package/dist/chunk-A6X2IVGT.js +4 -0
- package/dist/{chunk-HUZUORYM.js → chunk-AP3RFOPL.js} +10 -10
- package/dist/{chunk-3LVGAQB4.js → chunk-ATPFTRCC.js} +1 -1
- package/dist/chunk-AWQ5AR2K.js +5 -0
- package/dist/chunk-BECEP46I.js +16 -0
- package/dist/{chunk-JPGO36XP.js → chunk-BHWEA4V2.js} +1 -1
- package/dist/chunk-BPVZ7E63.js +1 -0
- package/dist/chunk-C2FFA4O4.js +1 -0
- package/dist/chunk-C3LZPAAH.js +3 -0
- package/dist/chunk-C6ABJCRG.js +1 -0
- package/dist/chunk-CCEA5CUX.js +1 -0
- package/dist/chunk-CE6FKJFS.js +1 -0
- package/dist/chunk-CW7WJZKR.js +28 -0
- package/dist/chunk-D3DDLLNF.js +2 -0
- package/dist/chunk-D656BV5Z.js +25 -0
- package/dist/chunk-DCBYHVKW.js +1 -0
- package/dist/{chunk-RF2DPBA6.js → chunk-DCK2FX6J.js} +1 -1
- package/dist/chunk-DERA4K6A.js +32 -0
- package/dist/chunk-DNLOSMHL.js +3 -0
- package/dist/chunk-E2YBU6D3.js +294 -0
- package/dist/{chunk-INEU4XKS.js → chunk-F47MFBKM.js} +1 -1
- package/dist/chunk-F6T3UBBL.js +1 -0
- package/dist/{chunk-WXVZJJOR.js → chunk-FBVBO5YQ.js} +1 -1
- package/dist/chunk-FD5S2O6M.js +7 -0
- package/dist/chunk-FFYYJKF7.js +1 -0
- package/dist/{chunk-LX3ZOW52.js → chunk-FGVC22EY.js} +1 -1
- package/dist/{chunk-NRAFVIU3.js → chunk-FP2NOZSD.js} +1 -1
- package/dist/chunk-FQDRVPCY.js +2 -0
- package/dist/{chunk-IOLVEXM6.js → chunk-FSTCEWXX.js} +1 -1
- package/dist/chunk-FTN7Y6HD.js +7 -0
- package/dist/{chunk-52GC6XUT.js → chunk-GVITHCQJ.js} +1 -1
- package/dist/chunk-H4W4DFKK.js +1 -0
- package/dist/{chunk-72F3YBNA.js → chunk-HD5TYIDZ.js} +1 -1
- package/dist/chunk-HHXHOQQP.js +3 -0
- package/dist/chunk-HJSYHK4S.js +8 -0
- package/dist/chunk-HLMFVORT.js +1 -0
- package/dist/chunk-HSYRYSX4.js +3 -0
- package/dist/chunk-I3LX25MB.js +1 -0
- package/dist/chunk-INFBVFMU.js +4 -0
- package/dist/chunk-IOQQUHST.js +18 -0
- package/dist/chunk-IVGWFPMA.js +19 -0
- package/dist/chunk-IWCPQD7X.js +1382 -0
- package/dist/chunk-IWE4RUI7.js +1 -0
- package/dist/chunk-IXUVSFW2.js +1 -0
- package/dist/chunk-J6VTZEE2.js +15 -0
- package/dist/{chunk-MQNYGGAM.js → chunk-K3PGC6DC.js} +1 -1
- package/dist/{chunk-MBAFWQSZ.js → chunk-K77WAKOB.js} +1 -1
- package/dist/{chunk-UGDBJTLP.js → chunk-K7K6GNF6.js} +1 -1
- package/dist/chunk-KFCGMT67.js +1 -0
- package/dist/chunk-KLA7AWG6.js +7 -0
- package/dist/{chunk-6B53BWJW.js → chunk-KQU6HOJ3.js} +1 -1
- package/dist/{chunk-A74GETYC.js → chunk-KU5OPV7U.js} +1 -1
- package/dist/chunk-L2VSSINY.js +1 -0
- package/dist/chunk-LCCMXY6N.js +1 -0
- package/dist/{chunk-GOJ2QHSR.js → chunk-LITB5QQX.js} +1 -1
- package/dist/chunk-LKS47US7.js +8 -0
- package/dist/{chunk-DJONKJSZ.js → chunk-LQMSF3F7.js} +1 -1
- package/dist/chunk-LTWXTDDR.js +5 -0
- package/dist/{chunk-D6JARNEH.js → chunk-M2TJICTB.js} +1 -1
- package/dist/chunk-M4LOKANA.js +1 -0
- package/dist/chunk-M4V2OQAX.js +1 -0
- package/dist/chunk-MA52QGHP.js +1 -0
- package/dist/chunk-MFLBTJO7.js +1 -0
- package/dist/chunk-MGL4YM3S.js +28 -0
- package/dist/{chunk-6TZAAS5H.js → chunk-MIO2CV3Q.js} +1 -1
- package/dist/{chunk-2APPXD5Z.js → chunk-MKE434RB.js} +1 -1
- package/dist/chunk-MZJRNFAU.js +1 -0
- package/dist/{chunk-HSK7YMRE.js → chunk-N3YWHJMB.js} +11 -11
- package/dist/{chunk-TQYMC7TH.js → chunk-N5ROZKPZ.js} +1 -1
- package/dist/chunk-NBYS6YQ2.js +5 -0
- package/dist/chunk-NEZEHBT2.js +1 -0
- package/dist/chunk-NO5KVFTV.js +22 -0
- package/dist/{chunk-3DQIVE24.js → chunk-NP4UFPAX.js} +1 -1
- package/dist/chunk-NPM3MFB3.js +7 -0
- package/dist/{chunk-JVIKCGDY.js → chunk-NXL6LDJU.js} +1 -1
- package/dist/chunk-OA4P6AKS.js +1 -0
- package/dist/chunk-OKNBZSGN.js +2 -0
- package/dist/chunk-OKOYLEA7.js +278 -0
- package/dist/chunk-OLOBQ42K.js +1 -0
- package/dist/chunk-OYP7DKPU.js +1 -0
- package/dist/{chunk-7UYZQN4V.js → chunk-PBTXPBI6.js} +2 -2
- package/dist/chunk-PLQFX5ZP.js +9 -0
- package/dist/{chunk-JLBH7RCF.js → chunk-PS25FEBF.js} +1 -1
- package/dist/{chunk-OLZHWPZP.js → chunk-PSQFZAF3.js} +1 -1
- package/dist/chunk-PUTZFF2Z.js +613 -0
- package/dist/chunk-QLQGHMVU.js +15 -0
- package/dist/{chunk-XLELNRFF.js → chunk-QTGMS62F.js} +1 -1
- package/dist/chunk-R6JNXEB3.js +1 -0
- package/dist/chunk-RAH5NW3R.js +1 -0
- package/dist/{chunk-R466TU3N.js → chunk-RGNAWKD7.js} +1 -1
- package/dist/chunk-RL5BWZ7D.js +15 -0
- package/dist/{chunk-Y5JKV2AI.js → chunk-RVMB5LC2.js} +1 -1
- package/dist/chunk-SSM346XI.js +5 -0
- package/dist/chunk-T5MK7ZSF.js +1 -0
- package/dist/{chunk-22PCRFG4.js → chunk-TGACBJIY.js} +1 -1
- package/dist/{chunk-KBQ4LGFB.js → chunk-TLSAQ6FG.js} +1 -1
- package/dist/chunk-TNQXTZAX.js +32 -0
- package/dist/{chunk-ELVFJ7BR.js → chunk-TQGTEVSR.js} +1 -1
- package/dist/chunk-TXUTT6UA.js +17 -0
- package/dist/chunk-U3ZG675O.js +5 -0
- package/dist/chunk-UARVYVLN.js +3 -0
- package/dist/chunk-UBKVCI7A.js +3 -0
- package/dist/{chunk-SRCQVUMC.js → chunk-UCLSPAVX.js} +1 -1
- package/dist/chunk-ULQG3XQS.js +1 -0
- package/dist/chunk-UOQ75BL3.js +1 -0
- package/dist/{chunk-OXPWCC7I.js → chunk-UOQQNAHX.js} +2 -2
- package/dist/chunk-UURFVUAH.js +11 -0
- package/dist/chunk-VA5IUGZV.js +2 -0
- package/dist/{chunk-YZDDTYTU.js → chunk-VEDZUOVI.js} +3 -3
- package/dist/chunk-VICNWPLQ.js +567 -0
- package/dist/chunk-VPL2NDH6.js +370 -0
- package/dist/chunk-VT77EFRL.js +10 -0
- package/dist/chunk-VYXVYOIJ.js +3 -0
- package/dist/chunk-WCWNI3ZV.js +283 -0
- package/dist/chunk-WNGV4JQS.js +4 -0
- package/dist/chunk-WUK5NQSX.js +6 -0
- package/dist/chunk-X2TC7S57.js +103 -0
- package/dist/chunk-X4CV6TRE.js +1 -0
- package/dist/chunk-XDAOLCPN.js +4 -0
- package/dist/chunk-XFKCDWXB.js +5 -0
- package/dist/chunk-XP6IRAZN.js +1 -0
- package/dist/{chunk-JGXWQULI.js → chunk-XX343DDG.js} +1 -1
- package/dist/{chunk-Q7ING5F5.js → chunk-XXE7667M.js} +1 -1
- package/dist/chunk-YGMVL6NZ.js +6 -0
- package/dist/chunk-YJB7P2HC.js +1 -0
- package/dist/{chunk-P6XE4MH5.js → chunk-YS6VOQ7I.js} +1 -1
- package/dist/chunk-ZZYFG22L.js +26 -0
- package/dist/cli/commands/app/app-logs/sources.js +1 -2
- 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 -9
- package/dist/cli/commands/app/bulk/status.js +1 -5
- package/dist/cli/commands/app/config/link.js +1 -4
- 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 -3
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -22
- package/dist/cli/commands/app/dev/clean.js +1 -5
- package/dist/cli/commands/app/dev.js +1 -320
- package/dist/cli/commands/app/env/pull.js +1 -11
- 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 -16
- package/dist/cli/commands/app/function/replay.js +1 -5
- 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 -5
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -4
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -11
- package/dist/cli/commands/app/init.js +1 -10
- package/dist/cli/commands/app/logs.js +1 -2
- package/dist/cli/commands/app/release.js +1 -4
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -25
- 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/docs/generate.d.ts +0 -8
- 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.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/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -15
- package/dist/cli/commands/theme/delete.js +1 -7
- package/dist/cli/commands/theme/dev.js +1 -26
- package/dist/cli/commands/theme/duplicate.js +1 -32
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -8
- 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 -3
- package/dist/cli/commands/theme/open.js +1 -8
- package/dist/cli/commands/theme/package.js +1 -7
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -3
- package/dist/cli/commands/theme/publish.js +1 -7
- package/dist/cli/commands/theme/pull.js +1 -3
- package/dist/cli/commands/theme/push.js +1 -28
- package/dist/cli/commands/theme/rename.js +1 -6
- package/dist/cli/commands/theme/share.js +1 -3
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/command-registry.js +1 -1
- package/dist/conf-store-6QNH5BID.js +1 -0
- package/dist/configs/all.yml +3 -0
- package/dist/configs/recommended.yml +3 -0
- package/dist/{custom-oclif-loader-DVFFWCBV.js → custom-oclif-loader-TSPWW5YF.js} +1 -1
- package/dist/data/filters.json +60 -0
- package/dist/data/latest.json +1 -1
- package/dist/data/setting.json +29 -9
- package/dist/data/shopify_system_translations.json +71 -19
- package/dist/data/tags.json +3 -3
- package/dist/deprecations-F6JWVV2W.js +1 -0
- package/dist/{devtools-OLOT2NY4.js → devtools-HCKYP7DQ.js} +1 -1
- package/dist/{devtools-UFRKBFGI.js → devtools-VEZNCV6W.js} +1 -1
- package/dist/dist-4BD6KOLR.js +1 -0
- package/dist/dist-AUABCVPI.js +1 -0
- package/dist/environments-RGLI75HN.js +1 -0
- package/dist/error-OZALZZ3U.js +1 -0
- package/dist/error-handler-V7LSEXHM.js +1 -0
- package/dist/{estree-KI7NUW53.js → estree-BYYJYS3A.js} +1 -1
- package/dist/fs-YMUQ6JLE.js +1 -0
- package/dist/hooks/app-init.js +1 -1
- 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/html-HETICZ2F.js +25 -0
- package/dist/index.js +9 -1182
- package/dist/is-global-BLIZ57HQ.js +1 -0
- package/dist/is-wsl-TN2CXYI7.js +1 -0
- package/dist/{latest-version-EFWBOTWM.js → latest-version-6OAYLOBL.js} +1 -1
- package/dist/{lib-QB6I6CTC.js → lib-AK5EOIKR.js} +1 -1
- package/dist/{lib-C3VO2BQW.js → lib-LVUMLZ4H.js} +1 -1
- package/dist/lib-ME6554NA.js +1 -0
- package/dist/local-GPDAXHE6.js +1 -0
- package/dist/local-storage-P66KJG6I.js +1 -0
- package/dist/{markdown-PLKL4IZK.js → markdown-5TVCXM53.js} +1 -1
- package/dist/{metadata-UDMOTRS7.js → metadata-TRH25EHU.js} +1 -1
- package/dist/{morph-EMYAITFM.js → morph-I35VYPBH.js} +4 -4
- package/dist/node-package-manager-GO4ZRTKQ.js +1 -0
- package/dist/notifications-system-HM6JZ6WJ.js +1 -0
- package/dist/{npa-ICFSA3NL.js → npa-VNALV7XY.js} +1 -1
- package/dist/output-7IYOMPSA.js +1 -0
- package/dist/{postcss-3FJQPJI2.js → postcss-IIK6CGAW.js} +1 -1
- package/dist/{prettier-NVRHEAFO.js → prettier-ZSBNNQTK.js} +1 -1
- package/dist/system-X5C4EQQH.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-H62CMRLG.js +1 -0
- package/dist/upgrade-EEOPH464.js +1 -0
- package/dist/version-76NBQR4K.js +1 -0
- package/dist/version-IGSEISUA.js +1 -0
- package/dist/{workerd-L2EJKIAQ.js → workerd-ST6XJKUN.js} +1 -1
- package/oclif.manifest.json +142 -7
- package/package.json +14 -11
- package/dist/analytics-6IHHYAV6.js +0 -1
- package/dist/analytics-KKVP5DT3.js +0 -1
- package/dist/angular-VRDO2DBE.js +0 -4
- package/dist/chunk-26D72ZNV.js +0 -1
- package/dist/chunk-2I4PRX2I.js +0 -1
- package/dist/chunk-2VQJQ36C.js +0 -103
- package/dist/chunk-323UTVMM.js +0 -1
- package/dist/chunk-3F6NZK7S.js +0 -2
- package/dist/chunk-4G7J6HIV.js +0 -1
- package/dist/chunk-66RJ5T7A.js +0 -102
- package/dist/chunk-6BMMB2UO.js +0 -1
- package/dist/chunk-6HBRBQAN.js +0 -6
- package/dist/chunk-74HYYXXE.js +0 -17
- package/dist/chunk-7BGM2GAH.js +0 -1
- package/dist/chunk-AIV5RI3X.js +0 -1
- package/dist/chunk-AKML26N3.js +0 -7
- package/dist/chunk-ALKTLKQ6.js +0 -5
- package/dist/chunk-B2EHO7ZC.js +0 -847
- package/dist/chunk-B2IVY4V5.js +0 -1
- package/dist/chunk-BDVAE5MS.js +0 -28
- package/dist/chunk-CERXUPGC.js +0 -14
- package/dist/chunk-D3TSJA5S.js +0 -1
- package/dist/chunk-DFMQWJQ3.js +0 -3
- package/dist/chunk-DJQVNH7P.js +0 -567
- package/dist/chunk-ELYP4KFP.js +0 -8
- package/dist/chunk-FFQ5EWII.js +0 -294
- package/dist/chunk-FUOIGXI4.js +0 -1
- package/dist/chunk-GD7FWXJ5.js +0 -2
- package/dist/chunk-GFEAKSGV.js +0 -374
- package/dist/chunk-IIIVWD4R.js +0 -1
- package/dist/chunk-IX5ICOBV.js +0 -7
- package/dist/chunk-J3KVONB3.js +0 -6
- package/dist/chunk-JHPRFW5B.js +0 -19
- package/dist/chunk-K2WUCOQJ.js +0 -32
- package/dist/chunk-K5YV6UVF.js +0 -4
- package/dist/chunk-KGXQS7LS.js +0 -1
- package/dist/chunk-KL5Z3T6L.js +0 -1
- package/dist/chunk-KNVM7N3U.js +0 -1
- package/dist/chunk-KWJ562F2.js +0 -12
- package/dist/chunk-LALIKZPS.js +0 -5
- package/dist/chunk-LAZJ47DZ.js +0 -6
- package/dist/chunk-LDGAHMS7.js +0 -159
- package/dist/chunk-LW7U753G.js +0 -1
- package/dist/chunk-LXFJDCNG.js +0 -1
- package/dist/chunk-N5YIPQ6J.js +0 -1
- package/dist/chunk-N7RBSKYT.js +0 -1
- package/dist/chunk-NF2ABOOU.js +0 -1
- package/dist/chunk-ODNGDO4H.js +0 -50
- package/dist/chunk-OHY4ZL3U.js +0 -2
- package/dist/chunk-P5VVOLGV.js +0 -1
- package/dist/chunk-P7R7FBY2.js +0 -3
- package/dist/chunk-QRRNOVJ3.js +0 -1
- package/dist/chunk-RFG5RMPL.js +0 -1
- package/dist/chunk-RVNMVBPM.js +0 -1
- package/dist/chunk-SBEZBZM7.js +0 -144
- package/dist/chunk-SGQ6D3LU.js +0 -15
- package/dist/chunk-TFSBQ4RY.js +0 -5
- package/dist/chunk-UGXYQ23Y.js +0 -1411
- package/dist/chunk-VS3T5YOG.js +0 -264
- package/dist/chunk-VWYM4OWK.js +0 -1
- package/dist/chunk-VY6SNDKW.js +0 -3
- package/dist/chunk-WFXRSKRK.js +0 -1
- package/dist/chunk-XBXMPFXM.js +0 -1
- package/dist/chunk-YC6G4MHD.js +0 -3
- package/dist/chunk-YI232QLS.js +0 -1
- package/dist/chunk-ZTMSBSYD.js +0 -1
- package/dist/chunk-ZV6NCNI4.js +0 -586
- package/dist/chunk-ZVJVDCIM.js +0 -1
- package/dist/conf-store-U5ZITKJN.js +0 -1
- package/dist/deprecations-TU5UQJVV.js +0 -1
- package/dist/dist-2Z5TND4U.js +0 -1
- package/dist/dist-GYHFDHKP.js +0 -1
- package/dist/environments-Z5PR7DSI.js +0 -1
- package/dist/error-IJGNYKZ3.js +0 -1
- package/dist/error-handler-WSCGNS2P.js +0 -1
- package/dist/fs-5BDEA2KD.js +0 -1
- package/dist/html-VSSXOZOQ.js +0 -25
- package/dist/is-global-V4ZRHQG2.js +0 -1
- package/dist/is-wsl-FVUIXDOK.js +0 -1
- package/dist/lib-5L7UKDEK.js +0 -1
- package/dist/local-6QPX4GCJ.js +0 -1
- package/dist/local-storage-JLXBZVWO.js +0 -1
- package/dist/node-package-manager-HAFRYGUM.js +0 -1
- package/dist/notifications-system-MP7WDOCS.js +0 -1
- package/dist/output-YGMHXEIS.js +0 -1
- package/dist/system-KLXD4FXF.js +0 -1
- package/dist/ui-GHG3UGB3.js +0 -1
- package/dist/upgrade-OPZGPM5J.js +0 -1
- package/dist/version-D5PJZIRW.js +0 -1
- package/dist/version-KRQBMYCH.js +0 -1
- /package/dist/{acorn-LOOAJL3S.js → acorn-QBS5IYTX.js} +0 -0
- /package/dist/{babel-URCL33XX.js → babel-JS32NLHY.js} +0 -0
- /package/dist/{flow-MLHT7MTJ.js → flow-M3Q2HPQT.js} +0 -0
- /package/dist/{glimmer-HAJ4HQCW.js → glimmer-3DEJJGOJ.js} +0 -0
- /package/dist/{graphql-F7IHGXDT.js → graphql-A4HHE3MB.js} +0 -0
- /package/dist/{meriyah-AYZQ3BGY.js → meriyah-23OZNYWC.js} +0 -0
- /package/dist/{typescript-ODJ335NU.js → typescript-YKZ232QT.js} +0 -0
- /package/dist/{yaml-BIHS2GQW.js → yaml-SJKIH3VD.js} +0 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import{b as Ff,c as Af}from"./chunk-ZR76GGZ6.js";import{b as wf}from"./chunk-EENHXSWU.js";import{a as vf}from"./chunk-H4W4DFKK.js";import{a as Of}from"./chunk-6M3ZYNGO.js";import{a as O,c as v,g as p}from"./chunk-VPRTJUIN.js";var te=v(ae=>{"use strict";p();Object.defineProperty(ae,"__esModule",{value:!0});ae.pickBy=xf;ae.compact=Sf;ae.uniqBy=jf;ae.last=Pf;ae.sortBy=$f;ae.castArray=Rf;ae.isProd=Lf;ae.maxBy=Tf;ae.sumBy=kf;ae.capitalize=Mf;ae.isTruthy=Bf;ae.isNotFalsy=qf;ae.uniq=If;ae.mapValues=Nf;ae.mergeNestedObjects=Wf;function xf(t,e){return Object.entries(t).reduce((n,[s,r])=>(e(r)&&(n[s]=r),n),{})}function Sf(t){return t.filter(e=>!!e)}function jf(t,e){return t.filter((n,s)=>{let r=e(n);return!t.some((i,o)=>o>s&&e(i)===r)})}function Pf(t){if(t)return t.at(-1)}function sr(t,e){if(t=t===void 0?0:t,e=e===void 0?0:e,Array.isArray(t)&&Array.isArray(e)){if(t.length===0&&e.length===0)return 0;let n=sr(t[0],e[0]);return n!==0?n:sr(t.slice(1),e.slice(1))}return t<e?-1:t>e?1:0}function $f(t,e){return t.sort((n,s)=>sr(e(n),e(s)))}function Rf(t){return t===void 0?[]:Array.isArray(t)?t:[t]}function Lf(){return!["development","test"].includes(process.env.NODE_ENV??"")}function Tf(t,e){if(t.length!==0)return t.reduce((n,s)=>{let r=e(s),i=e(n);return r>i?s:n})}function kf(t,e){return t.reduce((n,s)=>n+e(s),0)}function Mf(t){return t?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():""}function Bf(t){return["1","true","y","yes"].includes(t.toLowerCase())}function qf(t){return!["0","false","n","no"].includes(t.toLowerCase())}function If(t){return[...new Set(t)].sort()}function Nf(t,e){return Object.entries(t).reduce((n,[s,r])=>(n[s]=e(r,s),n),{})}function Hf(t,e){return e.split(".").reduce((n,s)=>n?.[s],t)}function Wf(t,e){return Object.fromEntries(t.flatMap(n=>Object.entries(Hf(n,e)??{})).reverse())}});var ke=v(We=>{"use strict";p();Object.defineProperty(We,"__esModule",{value:!0});We.fileExists=We.dirExists=void 0;We.readJson=Po;We.safeReadJson=Kf;We.existsSync=Jf;var zf=O("node:fs"),or=O("node:fs/promises"),Gf=te(),Uf=async t=>{let e;try{e=await(0,or.stat)(t)}catch{throw new Error(`No directory found at ${t}`)}if(!e.isDirectory())throw new Error(`${t} exists but is not a directory`);return t};We.dirExists=Uf;var Vf=async t=>{let e;try{e=await(0,or.stat)(t)}catch{throw new Error(`No file found at ${t}`)}if(!e.isFile())throw new Error(`${t} exists but is not a file`);return t};We.fileExists=Vf;var ir=class extends Map{set(e,n){return((0,Gf.isProd)()??!1)&&super.set(e,n),this}},rr=new ir;async function Po(t,e=!0){if(e&&rr.has(t))return JSON.parse(rr.get(t));let n=await(0,or.readFile)(t,"utf8");return rr.set(t,n),JSON.parse(n)}async function Kf(t,e=!0){try{return await Po(t,e)}catch{}}function Jf(t){return(0,zf.existsSync)(t)}});var Ro=v(le=>{"use strict";p();Object.defineProperty(le,"__esModule",{value:!0});le.string=le.url=le.file=le.directory=le.integer=le.boolean=void 0;le.custom=st;var Xf=O("node:url"),$o=ke(),Yf=te();function st(t){return(e={})=>({parse:async(n,s,r)=>n,...t,...e,input:[],type:"option"})}le.boolean=st({parse:async t=>!!t&&(0,Yf.isNotFalsy)(t)});le.integer=st({async parse(t,e,n){if(!/^-?\d+$/.test(t))throw new Error(`Expected an integer but received: ${t}`);let s=Number.parseInt(t,10);if(n.min!==void 0&&s<n.min)throw new Error(`Expected an integer greater than or equal to ${n.min} but received: ${t}`);if(n.max!==void 0&&s>n.max)throw new Error(`Expected an integer less than or equal to ${n.max} but received: ${t}`);return s}});le.directory=st({async parse(t,e,n){return n.exists?(0,$o.dirExists)(t):t}});le.file=st({async parse(t,e,n){return n.exists?(0,$o.fileExists)(t):t}});le.url=st({async parse(t){try{return new Xf.URL(t)}catch{throw new Error(`Expected a valid url but received: ${t}`)}}});var Qf=st({});le.string=Qf});var Lo=v((e1,Zf)=>{Zf.exports={name:"@oclif/core",description:"base library for oclif CLIs",version:"4.8.3",author:"Salesforce",bugs:"https://github.com/oclif/core/issues",dependencies:{"ansi-escapes":"^4.3.2",ansis:"^3.17.0","clean-stack":"^3.0.1","cli-spinners":"^2.9.2",debug:"^4.4.3",ejs:"^3.1.10","get-package-type":"^0.1.0","indent-string":"^4.0.0","is-wsl":"^2.2.0",lilconfig:"^3.1.3",minimatch:"^10.2.4",semver:"^7.7.3","string-width":"^4.2.3","supports-color":"^8",tinyglobby:"^0.2.14","widest-line":"^3.1.0",wordwrap:"^1.0.0","wrap-ansi":"^7.0.0"},devDependencies:{"@commitlint/config-conventional":"^19","@eslint/compat":"^1.4.1","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^5","@oclif/prettier-config":"^0.2.1","@oclif/test":"^4","@types/benchmark":"^2.1.5","@types/chai":"^4.3.16","@types/chai-as-promised":"^7.1.8","@types/clean-stack":"^2.1.1","@types/debug":"^4.1.10","@types/ejs":"^3.1.5","@types/indent-string":"^4.0.1","@types/mocha":"^10.0.10","@types/node":"^18","@types/pnpapi":"^0.0.5","@types/sinon":"^17.0.3","@types/supports-color":"^8.1.3","@types/wordwrap":"^1.0.3","@types/wrap-ansi":"^3.0.0",benchmark:"^2.1.4",chai:"^4.5.0","chai-as-promised":"^7.1.2",commitlint:"^19","cross-env":"^7.0.3",eslint:"^9","eslint-config-oclif":"^6","eslint-config-prettier":"^10",husky:"^9.1.7","lint-staged":"^15",madge:"^6.1.0",mocha:"^11.7.5",nyc:"^15.1.0",prettier:"^3.8.1",shx:"^0.4.0",sinon:"^18","ts-node":"^10.9.2",tsd:"^0.33.0",typescript:"^5"},engines:{node:">=18.0.0"},files:["/lib"],homepage:"https://github.com/oclif/core",keywords:["oclif","cli","command","command line","parser","args","argv"],license:"MIT",exports:{".":"./lib/index.js","./args":"./lib/args.js","./command":"./lib/command.js","./config":"./lib/config/index.js","./errors":"./lib/errors/index.js","./execute":"./lib/execute.js","./flags":"./lib/flags.js","./flush":"./lib/flush.js","./handle":"./lib/errors/handle.js","./help":"./lib/help/index.js","./hooks":"./lib/interfaces/hooks.js","./interfaces":"./lib/interfaces/index.js","./logger":"./lib/logger.js","./package.json":"./package.json","./parser":"./lib/parser/index.js","./performance":"./lib/performance.js","./run":"./lib/main.js","./settings":"./lib/settings.js","./util/ids":"./lib/util/ids.js","./ux":"./lib/ux/index.js"},repository:"oclif/core",oclif:{bin:"oclif",devPlugins:["@oclif/plugin-help","@oclif/plugin-plugins"]},publishConfig:{access:"public"},scripts:{build:"shx rm -rf lib && tsc",compile:"tsc",format:'prettier --write "+(src|test)/**/*.+(ts|js|json)"',lint:"eslint",posttest:"yarn lint && yarn test:circular-deps",prepack:"yarn run build",prepare:"husky","test:circular-deps":"yarn build && madge lib/ -c","test:debug":'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',"test:integration":'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',"test:interoperability":"cross-env DEBUG=integration:* ts-node test/integration/interop.ts","test:perf":"ts-node test/perf/parser.perf.ts",test:'nyc mocha --forbid-only "test/**/*.test.ts" --parallel'},types:"lib/index.d.ts"}});var xe=v(ur=>{"use strict";p();Object.defineProperty(ur,"__esModule",{value:!0});var eh=O("node:fs"),th=O("node:path"),ar=class t extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return t.instance||(t.instance=new t),t.instance}get(e){return super.get(e)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:Lo().version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,eh.readFileSync)((0,th.join)(__dirname,"..","package.json"),"utf8")).version}}catch{return{name:"@oclif/core",version:"unknown"}}}}};ur.default=ar});var ko=v(ve=>{"use strict";p();var nh=/[|\\{}()[\]^$+*?.]/g,sh=Object.prototype.hasOwnProperty,cr=function(t,e){return sh.apply(t,[e])};ve.escapeRegExpChars=function(t){return t?String(t).replace(nh,"\\$&"):""};var rh={"&":"&","<":"<",">":">",'"':""","'":"'"},ih=/[&<>'"]/g;function oh(t){return rh[t]||t}var ah=`var _ENCODE_HTML_RULES = {
|
|
2
|
+
"&": "&"
|
|
3
|
+
, "<": "<"
|
|
4
|
+
, ">": ">"
|
|
5
|
+
, '"': """
|
|
6
|
+
, "'": "'"
|
|
7
|
+
}
|
|
8
|
+
, _MATCH_HTML = /[&<>'"]/g;
|
|
9
|
+
function encode_char(c) {
|
|
10
|
+
return _ENCODE_HTML_RULES[c] || c;
|
|
11
|
+
};
|
|
12
|
+
`;ve.escapeXML=function(t){return t==null?"":String(t).replace(ih,oh)};function To(){return Function.prototype.toString.call(this)+`;
|
|
13
|
+
`+ah}try{typeof Object.defineProperty=="function"?Object.defineProperty(ve.escapeXML,"toString",{value:To}):ve.escapeXML.toString=To}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}ve.shallowCopy=function(t,e){if(e=e||{},t!=null)for(var n in e)cr(e,n)&&(n==="__proto__"||n==="constructor"||(t[n]=e[n]));return t};ve.shallowCopyFromList=function(t,e,n){if(n=n||[],e=e||{},t!=null)for(var s=0;s<n.length;s++){var r=n[s];if(typeof e[r]<"u"){if(!cr(e,r)||r==="__proto__"||r==="constructor")continue;t[r]=e[r]}}return t};ve.cache={_data:{},set:function(t,e){this._data[t]=e},get:function(t){return this._data[t]},remove:function(t){delete this._data[t]},reset:function(){this._data={}}};ve.hyphenToCamel=function(t){return t.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})};ve.createNullProtoObjWherePossible=(function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}})();ve.hasOwnOnlyObject=function(t){var e=ve.createNullProtoObjWherePossible();for(var n in t)cr(t,n)&&(e[n]=t[n]);return e}});var Mo=v((i1,uh)=>{uh.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.10",author:"Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",license:"Apache-2.0",bin:{ejs:"./bin/cli.js"},main:"./lib/ejs.js",jsdelivr:"ejs.min.js",unpkg:"ejs.min.js",repository:{type:"git",url:"git://github.com/mde/ejs.git"},bugs:"https://github.com/mde/ejs/issues",homepage:"https://github.com/mde/ejs",dependencies:{jake:"^10.8.5"},devDependencies:{browserify:"^16.5.1",eslint:"^6.8.0","git-directory-deploy":"^1.5.1",jsdoc:"^4.0.2","lru-cache":"^4.0.1",mocha:"^10.2.0","uglify-js":"^3.3.16"},engines:{node:">=0.10.0"},scripts:{test:"npx jake test"}}});var hr=v(I=>{"use strict";p();var fr=O("fs"),tn=O("path"),Y=ko(),Bo=!1,ch=Mo().version,lh="<",fh=">",hh="%",zo="locals",dh="ejs",ph="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",Go=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],gh=Go.concat("cache"),qo=/^\uFEFF/,lr=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;I.cache=Y.cache;I.fileLoader=fr.readFileSync;I.localsName=zo;I.promiseImpl=new Function("return this;")().Promise;I.resolveInclude=function(t,e,n){var s=tn.dirname,r=tn.extname,i=tn.resolve,o=i(n?e:s(e),t),a=r(t);return a||(o+=".ejs"),o};function Io(t,e){var n;if(e.some(function(s){return n=I.resolveInclude(t,s,!0),fr.existsSync(n)}))return n}function mh(t,e){var n,s,r=e.views,i=/^[A-Za-z]+:\\|^\//.exec(t);if(i&&i.length)t=t.replace(/^\/*/,""),Array.isArray(e.root)?n=Io(t,e.root):n=I.resolveInclude(t,e.root||"/",!0);else if(e.filename&&(s=I.resolveInclude(t,e.filename),fr.existsSync(s)&&(n=s)),!n&&Array.isArray(r)&&(n=Io(t,r)),!n&&typeof e.includer!="function")throw new Error('Could not find the include file "'+e.escapeFunction(t)+'"');return n}function nn(t,e){var n,s=t.filename,r=arguments.length>1;if(t.cache){if(!s)throw new Error("cache option requires a filename");if(n=I.cache.get(s),n)return n;r||(e=No(s).toString().replace(qo,""))}else if(!r){if(!s)throw new Error("Internal EJS error: no file name or template provided");e=No(s).toString().replace(qo,"")}return n=I.compile(e,t),t.cache&&I.cache.set(s,n),n}function Dh(t,e,n){var s;if(n){try{s=nn(t)(e)}catch(r){return n(r)}n(null,s)}else{if(typeof I.promiseImpl=="function")return new I.promiseImpl(function(r,i){try{s=nn(t)(e),r(s)}catch(o){i(o)}});throw new Error("Please provide a callback function")}}function No(t){return I.fileLoader(t)}function _h(t,e){var n=Y.shallowCopy(Y.createNullProtoObjWherePossible(),e);if(n.filename=mh(t,n),typeof e.includer=="function"){var s=e.includer(t,n.filename);if(s&&(s.filename&&(n.filename=s.filename),s.template))return nn(n,s.template)}return nn(n)}function Ho(t,e,n,s,r){var i=e.split(`
|
|
14
|
+
`),o=Math.max(s-3,0),a=Math.min(i.length,s+3),u=r(n),l=i.slice(o,a).map(function(f,c){var h=c+o+1;return(h==s?" >> ":" ")+h+"| "+f}).join(`
|
|
15
|
+
`);throw t.path=u,t.message=(u||"ejs")+":"+s+`
|
|
16
|
+
`+l+`
|
|
17
|
+
|
|
18
|
+
`+t.message,t}function Wo(t){return t.replace(/;(\s*$)/,"$1")}I.compile=function(e,n){var s;return n&&n.scope&&(Bo||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),Bo=!0),n.context||(n.context=n.scope),delete n.scope),s=new re(e,n),s.compile()};I.render=function(t,e,n){var s=e||Y.createNullProtoObjWherePossible(),r=n||Y.createNullProtoObjWherePossible();return arguments.length==2&&Y.shallowCopyFromList(r,s,Go),nn(r,t)(s)};I.renderFile=function(){var t=Array.prototype.slice.call(arguments),e=t.shift(),n,s={filename:e},r,i;return typeof arguments[arguments.length-1]=="function"&&(n=t.pop()),t.length?(r=t.shift(),t.length?Y.shallowCopy(s,t.pop()):(r.settings&&(r.settings.views&&(s.views=r.settings.views),r.settings["view cache"]&&(s.cache=!0),i=r.settings["view options"],i&&Y.shallowCopy(s,i)),Y.shallowCopyFromList(s,r,gh)),s.filename=e):r=Y.createNullProtoObjWherePossible(),Dh(s,r,n)};I.Template=re;I.clearCache=function(){I.cache.reset()};function re(t,e){var n=Y.hasOwnOnlyObject(e),s=Y.createNullProtoObjWherePossible();this.templateText=t,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",s.client=n.client||!1,s.escapeFunction=n.escape||n.escapeFunction||Y.escapeXML,s.compileDebug=n.compileDebug!==!1,s.debug=!!n.debug,s.filename=n.filename,s.openDelimiter=n.openDelimiter||I.openDelimiter||lh,s.closeDelimiter=n.closeDelimiter||I.closeDelimiter||fh,s.delimiter=n.delimiter||I.delimiter||hh,s.strict=n.strict||!1,s.context=n.context,s.cache=n.cache||!1,s.rmWhitespace=n.rmWhitespace,s.root=n.root,s.includer=n.includer,s.outputFunctionName=n.outputFunctionName,s.localsName=n.localsName||I.localsName||zo,s.views=n.views,s.async=n.async,s.destructuredLocals=n.destructuredLocals,s.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,s.strict?s._with=!1:s._with=typeof n._with<"u"?n._with:!0,this.opts=s,this.regex=this.createRegex()}re.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};re.prototype={createRegex:function(){var t=ph,e=Y.escapeRegExpChars(this.opts.delimiter),n=Y.escapeRegExpChars(this.opts.openDelimiter),s=Y.escapeRegExpChars(this.opts.closeDelimiter);return t=t.replace(/%/g,e).replace(/</g,n).replace(/>/g,s),new RegExp(t)},compile:function(){var t,e,n=this.opts,s="",r="",i=n.escapeFunction,o,a=n.filename?JSON.stringify(n.filename):"undefined";if(!this.source){if(this.generateSource(),s+=` var __output = "";
|
|
19
|
+
function __append(s) { if (s !== undefined && s !== null) __output += s }
|
|
20
|
+
`,n.outputFunctionName){if(!lr.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");s+=" var "+n.outputFunctionName+` = __append;
|
|
21
|
+
`}if(n.localsName&&!lr.test(n.localsName))throw new Error("localsName is not a valid JS identifier.");if(n.destructuredLocals&&n.destructuredLocals.length){for(var u=" var __locals = ("+n.localsName+` || {}),
|
|
22
|
+
`,l=0;l<n.destructuredLocals.length;l++){var f=n.destructuredLocals[l];if(!lr.test(f))throw new Error("destructuredLocals["+l+"] is not a valid JS identifier.");l>0&&(u+=`,
|
|
23
|
+
`),u+=f+" = __locals."+f}s+=u+`;
|
|
24
|
+
`}n._with!==!1&&(s+=" with ("+n.localsName+` || {}) {
|
|
25
|
+
`,r+=` }
|
|
26
|
+
`),r+=` return __output;
|
|
27
|
+
`,this.source=s+this.source+r}n.compileDebug?t=`var __line = 1
|
|
28
|
+
, __lines = `+JSON.stringify(this.templateText)+`
|
|
29
|
+
, __filename = `+a+`;
|
|
30
|
+
try {
|
|
31
|
+
`+this.source+`} catch (e) {
|
|
32
|
+
rethrow(e, __lines, __filename, __line, escapeFn);
|
|
33
|
+
}
|
|
34
|
+
`:t=this.source,n.client&&(t="escapeFn = escapeFn || "+i.toString()+`;
|
|
35
|
+
`+t,n.compileDebug&&(t="rethrow = rethrow || "+Ho.toString()+`;
|
|
36
|
+
`+t)),n.strict&&(t=`"use strict";
|
|
37
|
+
`+t),n.debug&&console.log(t),n.compileDebug&&n.filename&&(t=t+`
|
|
38
|
+
//# sourceURL=`+a+`
|
|
39
|
+
`);try{if(n.async)try{o=new Function("return (async function(){}).constructor;")()}catch(d){throw d instanceof SyntaxError?new Error("This environment does not support async/await"):d}else o=Function;e=new o(n.localsName+", escapeFn, include, rethrow",t)}catch(d){throw d instanceof SyntaxError&&(n.filename&&(d.message+=" in "+n.filename),d.message+=` while compiling ejs
|
|
40
|
+
|
|
41
|
+
`,d.message+=`If the above error is not helpful, you may want to try EJS-Lint:
|
|
42
|
+
`,d.message+="https://github.com/RyanZim/EJS-Lint",n.async||(d.message+=`
|
|
43
|
+
`,d.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),d}var c=n.client?e:function(m){var _=function(y,D){var w=Y.shallowCopy(Y.createNullProtoObjWherePossible(),m);return D&&(w=Y.shallowCopy(w,D)),_h(y,n)(w)};return e.apply(n.context,[m||Y.createNullProtoObjWherePossible(),i,_,Ho])};if(n.filename&&typeof Object.defineProperty=="function"){var h=n.filename,g=tn.basename(h,tn.extname(h));try{Object.defineProperty(c,"name",{value:g,writable:!1,enumerable:!1,configurable:!0})}catch{}}return c},generateSource:function(){var t=this.opts;t.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
|
|
44
|
+
`).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var e=this,n=this.parseTemplateText(),s=this.opts.delimiter,r=this.opts.openDelimiter,i=this.opts.closeDelimiter;n&&n.length&&n.forEach(function(o,a){var u;if(o.indexOf(r+s)===0&&o.indexOf(r+s+s)!==0&&(u=n[a+2],!(u==s+i||u=="-"+s+i||u=="_"+s+i)))throw new Error('Could not find matching close tag for "'+o+'".');e.scanLine(o)})},parseTemplateText:function(){for(var t=this.templateText,e=this.regex,n=e.exec(t),s=[],r;n;)r=n.index,r!==0&&(s.push(t.substring(0,r)),t=t.slice(r)),s.push(n[0]),t=t.slice(n[0].length),n=e.exec(t);return t&&s.push(t),s},_addOutput:function(t){if(this.truncate&&(t=t.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!t)return t;t=t.replace(/\\/g,"\\\\"),t=t.replace(/\n/g,"\\n"),t=t.replace(/\r/g,"\\r"),t=t.replace(/"/g,'\\"'),this.source+=' ; __append("'+t+`")
|
|
45
|
+
`},scanLine:function(t){var e=this,n=this.opts.delimiter,s=this.opts.openDelimiter,r=this.opts.closeDelimiter,i=0;switch(i=t.split(`
|
|
46
|
+
`).length-1,t){case s+n:case s+n+"_":this.mode=re.modes.EVAL;break;case s+n+"=":this.mode=re.modes.ESCAPED;break;case s+n+"-":this.mode=re.modes.RAW;break;case s+n+"#":this.mode=re.modes.COMMENT;break;case s+n+n:this.mode=re.modes.LITERAL,this.source+=' ; __append("'+t.replace(s+n+n,s+n)+`")
|
|
47
|
+
`;break;case n+n+r:this.mode=re.modes.LITERAL,this.source+=' ; __append("'+t.replace(n+n+r,n+r)+`")
|
|
48
|
+
`;break;case n+r:case"-"+n+r:case"_"+n+r:this.mode==re.modes.LITERAL&&this._addOutput(t),this.mode=null,this.truncate=t.indexOf("-")===0||t.indexOf("_")===0;break;default:if(this.mode){switch(this.mode){case re.modes.EVAL:case re.modes.ESCAPED:case re.modes.RAW:t.lastIndexOf("//")>t.lastIndexOf(`
|
|
49
|
+
`)&&(t+=`
|
|
50
|
+
`)}switch(this.mode){case re.modes.EVAL:this.source+=" ; "+t+`
|
|
51
|
+
`;break;case re.modes.ESCAPED:this.source+=" ; __append(escapeFn("+Wo(t)+`))
|
|
52
|
+
`;break;case re.modes.RAW:this.source+=" ; __append("+Wo(t)+`)
|
|
53
|
+
`;break;case re.modes.COMMENT:break;case re.modes.LITERAL:this._addOutput(t);break}}else this._addOutput(t)}e.opts.compileDebug&&i&&(this.currentLine+=i,this.source+=" ; __line = "+this.currentLine+`
|
|
54
|
+
`)}};I.escapeXML=Y.escapeXML;I.__express=I.renderFile;I.VERSION=ch;I.name=dh;typeof window<"u"&&(window.ejs=I)});var de=v(Ye=>{"use strict";p();var yh=Ye&&Ye.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.getLogger=Uo;Ye.makeDebug=Ch;Ye.setLogger=vh;Ye.clearLoggers=wh;var bh=yh(Af()),pr="oclif";function Hn(t=pr){let e=(0,bh.default)(t);return{child:(n,s)=>Hn(`${t}${s??":"}${n}`),debug:e,error:(n,...s)=>Hn(`${t}:error`).debug(n,...s),info:e,namespace:t,trace:e,warn:e}}var ze=new Map;function Uo(t){let e=ze.get("root");if(e||dr(Hn(pr)),e=ze.get("root"),t){let n=ze.get(t);if(n)return n;let s=e.child(t);return ze.set(t,s),s}return e}function Eh(t){return typeof t.child=="function"&&typeof t.debug=="function"&&typeof t.error=="function"&&typeof t.info=="function"&&typeof t.trace=="function"&&typeof t.warn=="function"&&typeof t.namespace=="string"}function dr(t){ze.has(t.namespace)||ze.has("root")||(Eh(t)?(ze.set(t.namespace,t),ze.set("root",t)):process.emitWarning("Logger does not match the Logger interface. Using default logger."))}function Ch(t){return(e,...n)=>Uo(t).debug(e,...n)}function vh(t){t&&typeof t!="string"&&"logger"in t&&t.logger?dr(t.logger):dr(Hn(pr))}function wh(){ze.clear()}});var sn=v(wt=>{"use strict";p();Object.defineProperty(wt,"__esModule",{value:!0});wt.stderr=wt.stdout=void 0;var vt=O("node:util"),Fh=(t,...e)=>{!t&&e?console.log((0,vt.format)(...e)):t?console.log(typeof t=="string"?(0,vt.format)(t,...e):(0,vt.format)(...t,...e)):console.log()};wt.stdout=Fh;var Ah=(t,...e)=>{!t&&e?console.error((0,vt.format)(...e)):t?console.error(typeof t=="string"?(0,vt.format)(t,...e):(0,vt.format)(...t,...e)):console.error()};wt.stderr=Ah});var Ko=v((h1,Vo)=>{"use strict";p();Vo.exports=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}});var gr=v((p1,Yo)=>{"use strict";p();var Jo=O("os"),Oh=Ko(),Xo=/\s+at.*[(\s](.*)\)?/,xh=/^(?:(?:(?:node|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/,Sh=typeof Jo.homedir>"u"?"":Jo.homedir();Yo.exports=(t,{pretty:e=!1,basePath:n}={})=>{let s=n&&new RegExp(`(at | \\()${Oh(n)}`,"g");return t.replace(/\\/g,"/").split(`
|
|
55
|
+
`).filter(r=>{let i=r.match(Xo);if(i===null||!i[1])return!0;let o=i[1];return o.includes(".app/Contents/Resources/electron.asar")||o.includes(".app/Contents/Resources/default_app.asar")?!1:!xh.test(o)}).filter(r=>r.trim()!=="").map(r=>(s&&(r=r.replace(s,"$1")),e&&(r=r.replace(Xo,(i,o)=>i.replace(o,o.replace(Sh,"~")))),r)).join(`
|
|
56
|
+
`)}});var Wn=v((m1,Qo)=>{"use strict";p();Qo.exports=(t,e=1,n)=>{if(n={indent:" ",includeEmptyLines:!1,...n},typeof t!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof t}\``);if(typeof e!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof e}\``);if(typeof n.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);if(e===0)return t;let s=n.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return t.replace(s,n.indent.repeat(e))}});var ea=v((_1,Zo)=>{"use strict";p();Zo.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var mr=v((b1,ta)=>{"use strict";p();var jh=ea();ta.exports=t=>typeof t=="string"?t.replace(jh(),""):t});var sa=v((C1,Dr)=>{"use strict";p();var na=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);Dr.exports=na;Dr.exports.default=na});var ia=v((w1,ra)=>{"use strict";p();ra.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var zn=v((A1,_r)=>{"use strict";p();var Ph=mr(),$h=sa(),Rh=ia(),oa=t=>{if(typeof t!="string"||t.length===0||(t=Ph(t),t.length===0))return 0;t=t.replace(Rh()," ");let e=0;for(let n=0;n<t.length;n++){let s=t.codePointAt(n);s<=31||s>=127&&s<=159||s>=768&&s<=879||(s>65535&&n++,e+=$h(s)?2:1)}return e};_r.exports=oa;_r.exports.default=oa});var ua=v((x1,aa)=>{"use strict";p();aa.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var yr=v((j1,la)=>{p();var rn=ua(),ca={};for(let t of Object.keys(rn))ca[rn[t]]=t;var S={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};la.exports=S;for(let t of Object.keys(S)){if(!("channels"in S[t]))throw new Error("missing channels property: "+t);if(!("labels"in S[t]))throw new Error("missing channel labels property: "+t);if(S[t].labels.length!==S[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:n}=S[t];delete S[t].channels,delete S[t].labels,Object.defineProperty(S[t],"channels",{value:e}),Object.defineProperty(S[t],"labels",{value:n})}S.rgb.hsl=function(t){let e=t[0]/255,n=t[1]/255,s=t[2]/255,r=Math.min(e,n,s),i=Math.max(e,n,s),o=i-r,a,u;i===r?a=0:e===i?a=(n-s)/o:n===i?a=2+(s-e)/o:s===i&&(a=4+(e-n)/o),a=Math.min(a*60,360),a<0&&(a+=360);let l=(r+i)/2;return i===r?u=0:l<=.5?u=o/(i+r):u=o/(2-i-r),[a,u*100,l*100]};S.rgb.hsv=function(t){let e,n,s,r,i,o=t[0]/255,a=t[1]/255,u=t[2]/255,l=Math.max(o,a,u),f=l-Math.min(o,a,u),c=function(h){return(l-h)/6/f+1/2};return f===0?(r=0,i=0):(i=f/l,e=c(o),n=c(a),s=c(u),o===l?r=s-n:a===l?r=1/3+e-s:u===l&&(r=2/3+n-e),r<0?r+=1:r>1&&(r-=1)),[r*360,i*100,l*100]};S.rgb.hwb=function(t){let e=t[0],n=t[1],s=t[2],r=S.rgb.hsl(t)[0],i=1/255*Math.min(e,Math.min(n,s));return s=1-1/255*Math.max(e,Math.max(n,s)),[r,i*100,s*100]};S.rgb.cmyk=function(t){let e=t[0]/255,n=t[1]/255,s=t[2]/255,r=Math.min(1-e,1-n,1-s),i=(1-e-r)/(1-r)||0,o=(1-n-r)/(1-r)||0,a=(1-s-r)/(1-r)||0;return[i*100,o*100,a*100,r*100]};function Lh(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}S.rgb.keyword=function(t){let e=ca[t];if(e)return e;let n=1/0,s;for(let r of Object.keys(rn)){let i=rn[r],o=Lh(t,i);o<n&&(n=o,s=r)}return s};S.keyword.rgb=function(t){return rn[t]};S.rgb.xyz=function(t){let e=t[0]/255,n=t[1]/255,s=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;let r=e*.4124+n*.3576+s*.1805,i=e*.2126+n*.7152+s*.0722,o=e*.0193+n*.1192+s*.9505;return[r*100,i*100,o*100]};S.rgb.lab=function(t){let e=S.rgb.xyz(t),n=e[0],s=e[1],r=e[2];n/=95.047,s/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;let i=116*s-16,o=500*(n-s),a=200*(s-r);return[i,o,a]};S.hsl.rgb=function(t){let e=t[0]/360,n=t[1]/100,s=t[2]/100,r,i,o;if(n===0)return o=s*255,[o,o,o];s<.5?r=s*(1+n):r=s+n-s*n;let a=2*s-r,u=[0,0,0];for(let l=0;l<3;l++)i=e+1/3*-(l-1),i<0&&i++,i>1&&i--,6*i<1?o=a+(r-a)*6*i:2*i<1?o=r:3*i<2?o=a+(r-a)*(2/3-i)*6:o=a,u[l]=o*255;return u};S.hsl.hsv=function(t){let e=t[0],n=t[1]/100,s=t[2]/100,r=n,i=Math.max(s,.01);s*=2,n*=s<=1?s:2-s,r*=i<=1?i:2-i;let o=(s+n)/2,a=s===0?2*r/(i+r):2*n/(s+n);return[e,a*100,o*100]};S.hsv.rgb=function(t){let e=t[0]/60,n=t[1]/100,s=t[2]/100,r=Math.floor(e)%6,i=e-Math.floor(e),o=255*s*(1-n),a=255*s*(1-n*i),u=255*s*(1-n*(1-i));switch(s*=255,r){case 0:return[s,u,o];case 1:return[a,s,o];case 2:return[o,s,u];case 3:return[o,a,s];case 4:return[u,o,s];case 5:return[s,o,a]}};S.hsv.hsl=function(t){let e=t[0],n=t[1]/100,s=t[2]/100,r=Math.max(s,.01),i,o;o=(2-n)*s;let a=(2-n)*r;return i=n*r,i/=a<=1?a:2-a,i=i||0,o/=2,[e,i*100,o*100]};S.hwb.rgb=function(t){let e=t[0]/360,n=t[1]/100,s=t[2]/100,r=n+s,i;r>1&&(n/=r,s/=r);let o=Math.floor(6*e),a=1-s;i=6*e-o,(o&1)!==0&&(i=1-i);let u=n+i*(a-n),l,f,c;switch(o){default:case 6:case 0:l=a,f=u,c=n;break;case 1:l=u,f=a,c=n;break;case 2:l=n,f=a,c=u;break;case 3:l=n,f=u,c=a;break;case 4:l=u,f=n,c=a;break;case 5:l=a,f=n,c=u;break}return[l*255,f*255,c*255]};S.cmyk.rgb=function(t){let e=t[0]/100,n=t[1]/100,s=t[2]/100,r=t[3]/100,i=1-Math.min(1,e*(1-r)+r),o=1-Math.min(1,n*(1-r)+r),a=1-Math.min(1,s*(1-r)+r);return[i*255,o*255,a*255]};S.xyz.rgb=function(t){let e=t[0]/100,n=t[1]/100,s=t[2]/100,r,i,o;return r=e*3.2406+n*-1.5372+s*-.4986,i=e*-.9689+n*1.8758+s*.0415,o=e*.0557+n*-.204+s*1.057,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,r=Math.min(Math.max(0,r),1),i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),[r*255,i*255,o*255]};S.xyz.lab=function(t){let e=t[0],n=t[1],s=t[2];e/=95.047,n/=100,s/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;let r=116*n-16,i=500*(e-n),o=200*(n-s);return[r,i,o]};S.lab.xyz=function(t){let e=t[0],n=t[1],s=t[2],r,i,o;i=(e+16)/116,r=n/500+i,o=i-s/200;let a=i**3,u=r**3,l=o**3;return i=a>.008856?a:(i-16/116)/7.787,r=u>.008856?u:(r-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,r*=95.047,i*=100,o*=108.883,[r,i,o]};S.lab.lch=function(t){let e=t[0],n=t[1],s=t[2],r;r=Math.atan2(s,n)*360/2/Math.PI,r<0&&(r+=360);let o=Math.sqrt(n*n+s*s);return[e,o,r]};S.lch.lab=function(t){let e=t[0],n=t[1],r=t[2]/360*2*Math.PI,i=n*Math.cos(r),o=n*Math.sin(r);return[e,i,o]};S.rgb.ansi16=function(t,e=null){let[n,s,r]=t,i=e===null?S.rgb.hsv(t)[2]:e;if(i=Math.round(i/50),i===0)return 30;let o=30+(Math.round(r/255)<<2|Math.round(s/255)<<1|Math.round(n/255));return i===2&&(o+=60),o};S.hsv.ansi16=function(t){return S.rgb.ansi16(S.hsv.rgb(t),t[2])};S.rgb.ansi256=function(t){let e=t[0],n=t[1],s=t[2];return e===n&&n===s?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(s/255*5)};S.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let n=(~~(t>50)+1)*.5,s=(e&1)*n*255,r=(e>>1&1)*n*255,i=(e>>2&1)*n*255;return[s,r,i]};S.ansi256.rgb=function(t){if(t>=232){let i=(t-232)*10+8;return[i,i,i]}t-=16;let e,n=Math.floor(t/36)/5*255,s=Math.floor((e=t%36)/6)/5*255,r=e%6/5*255;return[n,s,r]};S.rgb.hex=function(t){let n=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};S.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let n=e[0];e[0].length===3&&(n=n.split("").map(a=>a+a).join(""));let s=parseInt(n,16),r=s>>16&255,i=s>>8&255,o=s&255;return[r,i,o]};S.rgb.hcg=function(t){let e=t[0]/255,n=t[1]/255,s=t[2]/255,r=Math.max(Math.max(e,n),s),i=Math.min(Math.min(e,n),s),o=r-i,a,u;return o<1?a=i/(1-o):a=0,o<=0?u=0:r===e?u=(n-s)/o%6:r===n?u=2+(s-e)/o:u=4+(e-n)/o,u/=6,u%=1,[u*360,o*100,a*100]};S.hsl.hcg=function(t){let e=t[1]/100,n=t[2]/100,s=n<.5?2*e*n:2*e*(1-n),r=0;return s<1&&(r=(n-.5*s)/(1-s)),[t[0],s*100,r*100]};S.hsv.hcg=function(t){let e=t[1]/100,n=t[2]/100,s=e*n,r=0;return s<1&&(r=(n-s)/(1-s)),[t[0],s*100,r*100]};S.hcg.rgb=function(t){let e=t[0]/360,n=t[1]/100,s=t[2]/100;if(n===0)return[s*255,s*255,s*255];let r=[0,0,0],i=e%1*6,o=i%1,a=1-o,u=0;switch(Math.floor(i)){case 0:r[0]=1,r[1]=o,r[2]=0;break;case 1:r[0]=a,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=o;break;case 3:r[0]=0,r[1]=a,r[2]=1;break;case 4:r[0]=o,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=a}return u=(1-n)*s,[(n*r[0]+u)*255,(n*r[1]+u)*255,(n*r[2]+u)*255]};S.hcg.hsv=function(t){let e=t[1]/100,n=t[2]/100,s=e+n*(1-e),r=0;return s>0&&(r=e/s),[t[0],r*100,s*100]};S.hcg.hsl=function(t){let e=t[1]/100,s=t[2]/100*(1-e)+.5*e,r=0;return s>0&&s<.5?r=e/(2*s):s>=.5&&s<1&&(r=e/(2*(1-s))),[t[0],r*100,s*100]};S.hcg.hwb=function(t){let e=t[1]/100,n=t[2]/100,s=e+n*(1-e);return[t[0],(s-e)*100,(1-s)*100]};S.hwb.hcg=function(t){let e=t[1]/100,s=1-t[2]/100,r=s-e,i=0;return r<1&&(i=(s-r)/(1-r)),[t[0],r*100,i*100]};S.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};S.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};S.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};S.gray.hsl=function(t){return[0,0,t[0]]};S.gray.hsv=S.gray.hsl;S.gray.hwb=function(t){return[0,100,t[0]]};S.gray.cmyk=function(t){return[0,0,0,t[0]]};S.gray.lab=function(t){return[t[0],0,0]};S.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,s=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(s.length)+s};S.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var ha=v(($1,fa)=>{p();var Gn=yr();function Th(){let t={},e=Object.keys(Gn);for(let n=e.length,s=0;s<n;s++)t[e[s]]={distance:-1,parent:null};return t}function kh(t){let e=Th(),n=[t];for(e[t].distance=0;n.length;){let s=n.pop(),r=Object.keys(Gn[s]);for(let i=r.length,o=0;o<i;o++){let a=r[o],u=e[a];u.distance===-1&&(u.distance=e[s].distance+1,u.parent=s,n.unshift(a))}}return e}function Mh(t,e){return function(n){return e(t(n))}}function Bh(t,e){let n=[e[t].parent,t],s=Gn[e[t].parent][t],r=e[t].parent;for(;e[r].parent;)n.unshift(e[r].parent),s=Mh(Gn[e[r].parent][r],s),r=e[r].parent;return s.conversion=n,s}fa.exports=function(t){let e=kh(t),n={},s=Object.keys(e);for(let r=s.length,i=0;i<r;i++){let o=s[i];e[o].parent!==null&&(n[o]=Bh(o,e))}return n}});var pa=v((L1,da)=>{p();var br=yr(),qh=ha(),Ft={},Ih=Object.keys(br);function Nh(t){let e=function(...n){let s=n[0];return s==null?s:(s.length>1&&(n=s),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function Hh(t){let e=function(...n){let s=n[0];if(s==null)return s;s.length>1&&(n=s);let r=t(n);if(typeof r=="object")for(let i=r.length,o=0;o<i;o++)r[o]=Math.round(r[o]);return r};return"conversion"in t&&(e.conversion=t.conversion),e}Ih.forEach(t=>{Ft[t]={},Object.defineProperty(Ft[t],"channels",{value:br[t].channels}),Object.defineProperty(Ft[t],"labels",{value:br[t].labels});let e=qh(t);Object.keys(e).forEach(s=>{let r=e[s];Ft[t][s]=Hh(r),Ft[t][s].raw=Nh(r)})});da.exports=Ft});var ba=v((k1,ya)=>{"use strict";p();var ga=(t,e)=>(...n)=>`\x1B[${t(...n)+e}m`,ma=(t,e)=>(...n)=>{let s=t(...n);return`\x1B[${38+e};5;${s}m`},Da=(t,e)=>(...n)=>{let s=t(...n);return`\x1B[${38+e};2;${s[0]};${s[1]};${s[2]}m`},Un=t=>t,_a=(t,e,n)=>[t,e,n],At=(t,e,n)=>{Object.defineProperty(t,e,{get:()=>{let s=n();return Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0}),s},enumerable:!0,configurable:!0})},Er,Ot=(t,e,n,s)=>{Er===void 0&&(Er=pa());let r=s?10:0,i={};for(let[o,a]of Object.entries(Er)){let u=o==="ansi16"?"ansi":o;o===e?i[u]=t(n,r):typeof a=="object"&&(i[u]=t(a[e],r))}return i};function Wh(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[n,s]of Object.entries(e)){for(let[r,i]of Object.entries(s))e[r]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},s[r]=e[r],t.set(i[0],i[1]);Object.defineProperty(e,n,{value:s,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",At(e.color,"ansi",()=>Ot(ga,"ansi16",Un,!1)),At(e.color,"ansi256",()=>Ot(ma,"ansi256",Un,!1)),At(e.color,"ansi16m",()=>Ot(Da,"rgb",_a,!1)),At(e.bgColor,"ansi",()=>Ot(ga,"ansi16",Un,!0)),At(e.bgColor,"ansi256",()=>Ot(ma,"ansi256",Un,!0)),At(e.bgColor,"ansi16m",()=>Ot(Da,"rgb",_a,!0)),e}Object.defineProperty(ya,"exports",{enumerable:!0,get:Wh})});var Kn=v((B1,Fa)=>{"use strict";p();var on=zn(),zh=mr(),Gh=ba(),Vn=new Set(["\x1B","\x9B"]),Uh=39,vr="\x07",va="[",Vh="]",wa="m",wr=`${Vh}8;;`,Ea=t=>`${Vn.values().next().value}${va}${t}${wa}`,Ca=t=>`${Vn.values().next().value}${wr}${t}${vr}`,Kh=t=>t.split(" ").map(e=>on(e)),Cr=(t,e,n)=>{let s=[...e],r=!1,i=!1,o=on(zh(t[t.length-1]));for(let[a,u]of s.entries()){let l=on(u);if(o+l<=n?t[t.length-1]+=u:(t.push(u),o=0),Vn.has(u)&&(r=!0,i=s.slice(a+1).join("").startsWith(wr)),r){i?u===vr&&(r=!1,i=!1):u===wa&&(r=!1);continue}o+=l,o===n&&a<s.length-1&&(t.push(""),o=0)}!o&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},Jh=t=>{let e=t.split(" "),n=e.length;for(;n>0&&!(on(e[n-1])>0);)n--;return n===e.length?t:e.slice(0,n).join(" ")+e.slice(n).join("")},Xh=(t,e,n={})=>{if(n.trim!==!1&&t.trim()==="")return"";let s="",r,i,o=Kh(t),a=[""];for(let[l,f]of t.split(" ").entries()){n.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let c=on(a[a.length-1]);if(l!==0&&(c>=e&&(n.wordWrap===!1||n.trim===!1)&&(a.push(""),c=0),(c>0||n.trim===!1)&&(a[a.length-1]+=" ",c++)),n.hard&&o[l]>e){let h=e-c,g=1+Math.floor((o[l]-h-1)/e);Math.floor((o[l]-1)/e)<g&&a.push(""),Cr(a,f,e);continue}if(c+o[l]>e&&c>0&&o[l]>0){if(n.wordWrap===!1&&c<e){Cr(a,f,e);continue}a.push("")}if(c+o[l]>e&&n.wordWrap===!1){Cr(a,f,e);continue}a[a.length-1]+=f}n.trim!==!1&&(a=a.map(Jh));let u=[...a.join(`
|
|
57
|
+
`)];for(let[l,f]of u.entries()){if(s+=f,Vn.has(f)){let{groups:h}=new RegExp(`(?:\\${va}(?<code>\\d+)m|\\${wr}(?<uri>.*)${vr})`).exec(u.slice(l).join(""))||{groups:{}};if(h.code!==void 0){let g=Number.parseFloat(h.code);r=g===Uh?void 0:g}else h.uri!==void 0&&(i=h.uri.length===0?void 0:h.uri)}let c=Gh.codes.get(Number(r));u[l+1]===`
|
|
58
|
+
`?(i&&(s+=Ca("")),r&&c&&(s+=Ea(c))):f===`
|
|
59
|
+
`&&(r&&c&&(s+=Ea(r)),i&&(s+=Ca(i)))}return s};Fa.exports=(t,e,n)=>String(t).normalize().replace(/\r\n/g,`
|
|
60
|
+
`).split(`
|
|
61
|
+
`).map(s=>Xh(s,e,n)).join(`
|
|
62
|
+
`)});var Ge=v(Jn=>{"use strict";p();Object.defineProperty(Jn,"__esModule",{value:!0});Jn.settings=void 0;globalThis.oclif||(globalThis.oclif={});Jn.settings=globalThis.oclif});var St=v(xt=>{"use strict";p();Object.defineProperty(xt,"__esModule",{value:!0});xt.errtermwidth=xt.stdtermwidth=void 0;var Yh=Ge();function Aa(t){if(!t.isTTY)return 80;let e=t.getWindowSize()[0];return e<1?80:e<40?40:e}var Oa=Number.parseInt(process.env.OCLIF_COLUMNS,10)||Yh.settings.columns;xt.stdtermwidth=Oa||Aa(process.stdout);xt.errtermwidth=Oa||Aa(process.stderr)});var ut=v((z1,Ia)=>{p();var{defineProperty:Qh,setPrototypeOf:La,create:Zh,keys:ed}=Object,rt="",{round:it,max:td}=Math,Ta=t=>{let[,e]=/([a-f\d]{3,6})/i.exec(t)||[],n=e?e.length:0;if(n===3)e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2];else if(6^n)return[0,0,0];let s=parseInt(e,16);return[s>>16&255,s>>8&255,255&s]},ka=(t,e,n)=>t===e&&e===n?t<8?16:t>248?231:it((t-8)/247*24)+232:16+36*it(t/51)+6*it(e/51)+it(n/51),Or=t=>{let e,n,s,r,i;return t<8?30+t:t<16?t-8+90:(t>=232?e=n=s=(10*(t-232)+8)/255:(i=(t-=16)%36,e=(t/36|0)/5,n=(i/6|0)/5,s=i%6/5),r=2*td(e,n,s),r?30+(it(s)<<2|it(n)<<1|it(e))+(2^r?0:60):30)},xr=(()=>{let t=d=>i.some((m=>d.test(m))),e=globalThis,n=e.Deno,s=!!n,r=e.process||n||{},i=r.argv||r.args||[],o=r.env||{},a=-1;if(s)try{o=o.toObject()}catch{a=0}let u=!!o.PM2_HOME&&!!o.pm_id||o.NEXT_RUNTIME?.includes("edge")||(s?n.isatty(1):!!r.stdout?.isTTY),l="FORCE_COLOR",f=o[l],c=parseInt(f),h=isNaN(c)?f==="false"?0:-1:c,g=l in o&&h||t(/^-{1,2}color=?(true|always)?$/);return g&&(a=h),a<0&&(a=((d,m,_)=>{let y=d.TERM,D=","+ed(d).join(",");return{"24bit":3,truecolor:3,ansi256:2,ansi:1}[d.COLORTERM]||(d.TF_BUILD?1:/,TEAMCI/.test(D)?2:d.CI?/,GIT(HUB|EA)/.test(D)?3:1:!m||/-mono|dumb/i.test(y)?0:_||/term-(kit|dir)/.test(y)?3:/-256/.test(y)?2:/scr|xterm|tty|ansi|color|[nm]ux|vt|cyg/.test(y)?1:3)})(o,u,(s?n.build.os:r.platform)==="win32")),!h||o.NO_COLOR||t(/^-{1,2}(no-color|color=(false|never))$/)?0:g&&!a||e.window?.chrome?3:a})(),Ma=xr>0,Ba={open:rt,close:rt},Q=Ma?(t,e)=>({open:`\x1B[${t}m`,close:`\x1B[${e}m`}):()=>Ba,ot=39,at=49,xa=(t,e)=>(n,s,r)=>Q(((i,o,a)=>Or(ka(i,o,a)))(n,s,r)+t,e),Sa=t=>(e,n,s)=>t(ka(e,n,s)),ja=t=>e=>t(...Ta(e)),an=(t,e,n)=>Q(`38;2;${t};${e};${n}`,ot),Yn=(t,e,n)=>Q(`48;2;${t};${e};${n}`,at),Qn=t=>Q(`38;5;${t}`,ot),Zn=t=>Q(`48;5;${t}`,at);xr===2?(an=Sa(Qn),Yn=Sa(Zn)):xr===1&&(an=xa(0,ot),Yn=xa(10,at),Qn=t=>Q(Or(t),ot),Zn=t=>Q(Or(t)+10,at));var Fr,Se={ansi256:Qn,bgAnsi256:Zn,fg:Qn,bg:Zn,rgb:an,bgRgb:Yn,hex:ja(an),bgHex:ja(Yn),visible:Ba,reset:Q(0,0),bold:Q(1,22),dim:Q(2,22),italic:Q(3,23),underline:Q(4,24),inverse:Q(7,27),hidden:Q(8,28)},Pa="Bright",Xn=30;"black,red,green,yellow,blue,magenta,cyan,white".split(",").map((t=>{Fr="bg"+t[0].toUpperCase()+t.slice(1),Se[t]=Q(Xn,ot),Se[t+Pa]=Q(60+Xn,ot),Se[Fr]=Q(Xn+10,at),Se[Fr+Pa]=Q(70+Xn++,at)})),Se.grey=Se.gray=Q(90,ot),Se.bgGrey=Se.bgGray=Q(100,at),Se.strikethrough=Se.strike=Q(9,29);var Sr,$a={},Ra=({_p:t},{open:e,close:n})=>{let s=(o,...a)=>{if(!o){if(e&&e===n)return e;if(o==null||rt===o)return rt}let u=o.raw?String.raw(o,...a).replace(/\\n/g,`
|
|
63
|
+
`):rt+o,l=s._p,{_a:f,_b:c}=l;if(u.includes("\x1B"))for(;l;){let h,g=l.close,d=l.open,m=g.length,_=rt,y=0;if(m){for(;~(h=u.indexOf(g,y));y=h+m)_+=u.slice(y,h)+d;u=_+u.slice(y)}l=l._p}return u.includes(`
|
|
64
|
+
`)&&(u=u.replace(/(\r?\n)/g,c+"$1"+f)),f+u+c},r=e,i=n;return t&&(r=t._a+e,i=n+t._b),La(s,Sr),s._p={open:e,close:n,_a:r,_b:i,_p:t},s.open=r,s.close=i,s},qa=function(){let t={Ansis:qa,isSupported:()=>Ma,strip:e=>e.replace(/[][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,rt),extend(e){for(let n in e){let s=e[n],r=(typeof s)[0],i=r==="s"?an(...Ta(s)):s;$a[n]=r==="f"?{get(){return(...o)=>Ra(this,s(...o))}}:{get(){let o=Ra(this,i);return Qh(this,n,{value:o}),o}}}return Sr=Zh({},$a),La(t,Sr),t}};return t.extend(Se)},Ar=new qa;Ia.exports=Ar,Ar.default=Ar});var Na=v(es=>{"use strict";p();Object.defineProperty(es,"__esModule",{value:!0});es.STANDARD_ANSI=void 0;es.STANDARD_ANSI=["white","black","blue","yellow","green","red","magenta","cyan","gray","blackBright","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright","whiteBright","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite","bgGray","bgBlackBright","bgRedBright","bgGreenBright","bgYellowBright","bgBlueBright","bgMagentaBright","bgCyanBright","bgWhiteBright","bold","underline","dim","italic","strikethrough"]});var Wa=v(jr=>{"use strict";p();Object.defineProperty(jr,"__esModule",{value:!0});jr.supportsColor=nd;var Ha=Ff();function nd(){return!!Ha.stdout&&!!Ha.stderr}});var we=v(jt=>{"use strict";p();var sd=jt&&jt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(jt,"__esModule",{value:!0});jt.colorize=od;jt.parseTheme=Ga;var Pr=sd(ut()),rd=Na(),id=Wa();function za(t){return rd.STANDARD_ANSI.includes(t)}function od(t,e){if(!t||!(0,id.supportsColor)())return e;if(za(t))return Pr.default[t](e);if(t.startsWith("#"))return Pr.default.hex(t)(e);if(t.startsWith("rgb")){let[n,s,r]=t.slice(4,-1).split(",").map(i=>Number.parseInt(i.trim(),10));return Pr.default.rgb(n,s,r)(e)}return e}function Ga(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,typeof n=="string"?ad(n):Ga(n)]).filter(([e,n])=>n))}function ad(t){return t.startsWith("#")||t.startsWith("rgb")||za(t)?t:void 0}});var ct=v(Qe=>{"use strict";p();var ts=Qe&&Qe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.CLIError=void 0;Qe.addOclifExitCode=Va;var ud=ts(gr()),$r=ts(Wn()),cd=ts(Kn()),ld=ts(xe()),fd=St(),hd=Ge(),Ua=we();function Va(t,e){return"oclif"in t||(t.oclif={}),t.oclif.exit=e?.exit===void 0?ld.default.getInstance().get("exitCodes")?.default??2:e.exit,t}var un=class extends Error{code;oclif={};skipOclifErrorHandling;suggestions;constructor(e,n={}){super(e instanceof Error?e.message:e),Va(this,n),this.code=n.code,this.suggestions=n.suggestions}get bang(){try{return(0,Ua.colorize)("red",process.platform==="win32"?"\xBB":"\u203A")}catch{}}get stack(){return(0,ud.default)(super.stack,{pretty:!0})}render(){if(hd.settings.debug)return this.stack;let e=`${this.name}: ${this.message}`;return e=(0,cd.default)(e,fd.errtermwidth-6,{hard:!0,trim:!1}),e=(0,$r.default)(e,3),e=(0,$r.default)(e,1,{includeEmptyLines:!0,indent:this.bang}),e=(0,$r.default)(e,1),e}};Qe.CLIError=un;(function(t){class e extends t{constructor(s){super(s instanceof Error?s.message:s),this.name="Warning"}get bang(){try{return(0,Ua.colorize)("yellow",process.platform==="win32"?"\xBB":"\u203A")}catch{}}}t.Warn=e})(un||(Qe.CLIError=un={}))});var ss=v(Pt=>{"use strict";p();var Ka=Pt&&Pt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.applyPrettyPrintOptions=md;Pt.default=_d;var ns=Ka(Wn()),dd=Ka(Kn()),pd=St(),gd=Ge();function md(t,e){let n=["message","code","ref","suggestions"];for(let s of n)!(s in t)&&e[s]&&(t[s]=e[s]);return t}var Dd=t=>{let e="Try this:";if(!t||t.length===0)return;if(t.length===1)return`${e} ${t[0]}`;let n=t.map(s=>`* ${s}`).join(`
|
|
65
|
+
`);return`${e}
|
|
66
|
+
${(0,ns.default)(n,2)}`};function _d(t){if(gd.settings.debug)return t.stack;let{bang:e,code:n,message:s,name:r,ref:i,suggestions:o}=t,a=s?`${r||"Error"}: ${s}`:void 0,u=n?`Code: ${n}`:void 0,l=Dd(o),f=i?`Reference: ${i}`:void 0,c=[a,u,l,f].filter(Boolean).join(`
|
|
67
|
+
`),h=(0,dd.default)(c,pd.errtermwidth-6,{hard:!0,trim:!1});return h=(0,ns.default)(h,3),h=(0,ns.default)(h,1,{includeEmptyLines:!0,indent:e||""}),h=(0,ns.default)(h,1),h}});var $t=v(Me=>{"use strict";p();var yd=Me&&Me.__createBinding||(Object.create?(function(t,e,n,s){s===void 0&&(s=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,r)}):(function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]})),bd=Me&&Me.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ed=Me&&Me.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var s=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(s[s.length]=r);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var s=t(e),r=0;r<s.length;r++)s[r]!=="default"&&yd(n,e,s[r]);return bd(n,e),n}})();Object.defineProperty(Me,"__esModule",{value:!0});Me.error=Ya;var Cd=de(),vd=sn(),Ja=ct(),Xa=Ed(ss());function Ya(t,e={}){let n;if(typeof t=="string")n=new Ja.CLIError(t,e);else if(t instanceof Error)n=(0,Ja.addOclifExitCode)(t,e);else throw new TypeError("first argument must be a string or instance of Error");if(n=(0,Xa.applyPrettyPrintOptions)(n,e),e.exit===!1){let s=(0,Xa.default)(n);s&&(0,vd.stderr)(s),n?.stack&&(0,Cd.getLogger)().error(n.stack)}else throw n}Me.default=Ya});var is=v(rs=>{"use strict";p();Object.defineProperty(rs,"__esModule",{value:!0});rs.ExitError=void 0;var wd=ct(),Rr=class extends wd.CLIError{code="EEXIT";constructor(e=1){super(`EEXIT: ${e}`,{exit:e})}render(){return""}};rs.ExitError=Rr});var Tr=v(os=>{"use strict";p();Object.defineProperty(os,"__esModule",{value:!0});os.ModuleLoadError=void 0;var Fd=ct(),Lr=class extends Fd.CLIError{code="MODULE_NOT_FOUND";constructor(e){super(`[MODULE_NOT_FOUND] ${e}`,{exit:1}),this.name="ModuleLoadError"}};os.ModuleLoadError=Lr});var as=v(kr=>{"use strict";p();Object.defineProperty(kr,"__esModule",{value:!0});kr.exit=Od;var Ad=is();function Od(t=0){throw new Ad.ExitError(t)}});var Rt=v(lt=>{"use strict";p();var xd=lt&<.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(lt,"__esModule",{value:!0});lt.warn=Mr;lt.memoizedWarn=$d;var Sd=de(),jd=sn(),Qa=ct(),Pd=xd(ss());function Mr(t){let e;if(typeof t=="string")e=new Qa.CLIError.Warn(t);else if(t instanceof Error)e=(0,Qa.addOclifExitCode)(t);else throw new TypeError("first argument must be a string or instance of Error");let n=(0,Pd.default)(e);n&&(0,jd.stderr)(n),e?.stack&&(0,Sd.getLogger)().error(e.stack)}var Za=new Set;function $d(t){Za.has(t)||Mr(t),Za.add(t)}lt.default=Mr});var iu=v(Br=>{"use strict";p();Object.defineProperty(Br,"__esModule",{value:!0});Br.readTSConfig=kd;var eu=O("node:fs/promises"),su=O("node:path"),Rd=Rt(),Ld=de(),tu=te(),Td=(0,Ld.makeDebug)("read-tsconfig");function nu(t,e){try{return O.resolve(e,{paths:[t]})}catch{}}async function ru(t,e){let n;try{n=await e(t)}catch{n=!1}if(n)return t;let s=(0,su.dirname)(t);if(s!==t)return ru(s,e)}async function kd(t,e="tsconfig.json"){let n=[],s;try{s=Of()}catch{try{s=O(t+"/node_modules/typescript")}catch{}}if(!s){(0,Rd.memoizedWarn)("Could not find typescript. Please ensure that typescript is a devDependency. Falling back to compiled source.");return}let r=async i=>{let o=await ru(i,async a=>(await(0,eu.readdir)(a)).includes("package.json"));if(o)try{let a=await(0,eu.readFile)(i,"utf8"),u=s?.parseConfigFileTextToJson(i,a).config;if(n.push(u),u.extends){if(u.extends.startsWith(".")){let f=nu(o,u.extends);return f?r(f):void 0}let l=nu(o,u.extends);if(l)return r(l)}return u}catch(a){Td(a)}};return await r((0,su.join)(t,e)),{compilerOptions:(0,tu.mergeNestedObjects)(n,"compilerOptions"),"ts-node":(0,tu.mergeNestedObjects)(n,"ts-node")}}});var Lt=v(ft=>{"use strict";p();Object.defineProperty(ft,"__esModule",{value:!0});ft.collectUsableIds=void 0;ft.makeDebug=Bd;ft.getPermutations=qr;ft.getCommandIdPermutations=qd;var Md=de();function Bd(...t){return(e,...n)=>(0,Md.getLogger)(["config",...t].join(":")).debug(e,...n)}function qr(t){if(t.length===0)return[];if(t.length===1)return[t];let e=[],n=qr(t.slice(1)),s=t[0];for(let r=0,i=n.length;r<i;r++){let o=n[r];for(let a=0,u=o.length;a<=u;a++){let l=o.slice(0,a),f=o.slice(a),c=[...l,s,...f];e.push(c)}}return e}function qd(t){return qr(t.split(":")).flatMap(e=>e.join(":"))}var Id=t=>new Set(t.flatMap(e=>e.split(":").map((n,s,r)=>r.slice(0,s+1).join(":"))));ft.collectUsableIds=Id});var Tt=v(je=>{"use strict";p();var Nd=je&&je.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(je,"__esModule",{value:!0});je.TS_CONFIGS=void 0;je.tsPath=tp;var ou=O("node:fs/promises"),pe=O("node:path"),Hd=O("node:url"),Wd=Nd(xe()),cn=Rt(),au=Ge(),zd=ke(),Gd=iu(),Ir=te(),Ud=Lt(),N=(0,Ud.makeDebug)("ts-path");je.TS_CONFIGS={};var us=new Set;function Vd(){return process.execPath.split(pe.sep).includes("bun")?"bun":process.execArgv.length===0?"node":process.execArgv[0]==="--require"&&process.execArgv[1].split(pe.sep).includes("ts-node")||process.execArgv[0].split(pe.sep).includes("ts-node")?"ts-node":process.execArgv[0]==="--require"&&process.execArgv[1].split(pe.sep).includes("tsx")?"tsx":"node"}var Nr=Vd();function Kd(t){return"code"in t&&t.code==="ENOENT"}async function Jd(t){try{if(je.TS_CONFIGS[t])return je.TS_CONFIGS[t];let e=await(0,Gd.readTSConfig)(t);return e?(N("tsconfig: %O",e),je.TS_CONFIGS[t]=e,je.TS_CONFIGS[t]):void 0}catch(e){if(Kd(e))return;N(`Could not parse tsconfig.json. Skipping typescript path lookup for ${t}.`),(0,cn.memoizedWarn)(`Could not parse tsconfig.json for ${t}. Falling back to compiled source.`)}}async function Xd(t,e){if(!us.has(t))try{let n=e==="module"?"tsx/esm/api":"tsx/cjs/api",s=O.resolve(n,{paths:[t]});if(!s)return;N("registering tsx at",t),N("tsx path:",s);let{href:r}=(0,Hd.pathToFileURL)(s);N("tsx href:",r);let{register:i}=await import(r);N("Successfully imported tsx"),i(),us.add(t)}catch(n){N(`Could not find tsx. Skipping tsx registration for ${t}.`),N(n)}}async function Yd(t,e){if(us.has(t))return;N("registering ts-node at",t);let n=O.resolve("ts-node",{paths:[t,__dirname]});N("ts-node path:",n);let s;try{s=O(n),N("Successfully required ts-node")}catch(f){N(`Could not find ts-node at ${n}. Skipping ts-node registration for ${t}.`),N(f),(0,cn.memoizedWarn)(`Could not find ts-node at ${n}. Please ensure that ts-node is a devDependency. Falling back to compiled source.`);return}let r=[(0,pe.join)(t,"node_modules","@types")],i=[];if(e.compilerOptions.rootDirs)for(let f of e.compilerOptions.rootDirs)i.push((0,pe.join)(t,f));else e.compilerOptions.rootDir?i.push((0,pe.join)(t,e.compilerOptions.rootDir)):e.compilerOptions.baseUrl?i.push((0,pe.join)(t,e.compilerOptions.baseUrl)):i.push((0,pe.join)(t,"src"));let{baseUrl:o,rootDir:a,...u}=e.compilerOptions,l={compilerOptions:{...u,rootDirs:i,typeRoots:r},...e["ts-node"],cwd:t,esm:e["ts-node"]?.esm??!0,experimentalSpecifierResolution:e["ts-node"]?.experimentalSpecifierResolution??"explicit",scope:!0,scopeDir:t,skipProject:!0,transpileOnly:!0};N("ts-node options: %O",l),s.register(l),us.add(t)}function Qd(t,e,n){return(n||t?.moduleType==="commonjs")&&e?.moduleType==="module"&&!e?.pjson.devDependencies?.tsx}function Zd(t,e,n){if(e?.moduleType!=="module"||n)return!1;let s=Number.parseInt(process.version.replace("v","").split(".")[0],10);return Nr==="ts-node"&&s>=20}async function ep(t,e,n){let s=await Jd(t);if(!s)return e;N(`Determining path for ${e}`),Nr==="bun"?N(`Skipping ts-node registration for ${t} because the runtime is: ${Nr}`):(await Xd(t,n?.moduleType),await Yd(t,s));let{baseUrl:r,outDir:i,rootDir:o,rootDirs:a}=s.compilerOptions,u=o??(a??[])[0]??r;if(!u)return N(`no rootDir, rootDirs, or baseUrl specified in tsconfig.json. Returning default path ${e}`),e;if(!i)return N(`no outDir specified in tsconfig.json. Returning default path ${e}`),e;let l=(0,pe.join)(t,i),f=(0,pe.join)(t,u),c=(0,pe.relative)(l,e),h=(0,pe.join)(f,c).replace(/\.js$/,"");return N(`lib dir: ${l}`),N(`src dir: ${f}`),N(`src directory to find: ${h}`),(0,zd.existsSync)(h)?(N(`Found source directory for ${e} at ${h}`),h):(await Promise.all([(0,ou.access)(`${h}.ts`).then(()=>`${h}.ts`).catch(()=>!1),(0,ou.access)(`${h}.tsx`).then(()=>`${h}.tsx`).catch(()=>!1)])).some(Boolean)?(N(`Found source file for ${e} at ${h}`),h):(N(`No source file found. Returning default path ${e}`),(0,Ir.isProd)()||(0,cn.memoizedWarn)(`Could not find source for ${e} based on tsconfig. Defaulting to compiled source.`),e)}async function tp(t,e,n){let s=n?.options.isRoot?n:Wd.default.getInstance().get("rootPlugin");if(!e)return e;e=e.startsWith(t)?e:(0,pe.join)(t,e);let r=au.settings.enableAutoTranspile??au.settings.tsnodeEnabled;if(r===!1)return N(`Skipping typescript path lookup for ${t} because enableAutoTranspile is explicitly set to false`),e;let i=(0,Ir.isProd)();if(r===void 0&&i&&n?.type!=="link")return N(`Skipping typescript path lookup for ${t} because NODE_ENV is NOT "test" or "development"`),e;if(Qd(s,n,i)){N(`Skipping typescript path lookup for ${t} because it's an ESM module (NODE_ENV: ${process.env.NODE_ENV}, root plugin module type: ${s?.moduleType})`);let o=process.env.OCLIF_DISABLE_LINKED_ESM_WARNING&&(0,Ir.isTruthy)(process.env.OCLIF_DISABLE_LINKED_ESM_WARNING);return n?.type==="link"&&!o&&(0,cn.memoizedWarn)(`${n?.name} is a linked ESM module and cannot be auto-transpiled. Existing compiled source will be used instead.`),e}if(Zd(t,n,i))return N(`Skipping typescript path lookup for ${t} because ts-node is run in node version ${process.version}"`),(0,cn.memoizedWarn)("ts-node executable cannot transpile ESM in Node 20. Existing compiled source will be used instead. See https://github.com/oclif/core/issues/817."),e;try{return await ep(t,e,n)}catch(o){return N(o),e}}});var Hr=v((bE,cu)=>{"use strict";p();var uu=O("path");function np(t){let e=uu.basename(t);return uu.sep==="\\"&&(e=e.toLowerCase()),e==="node_modules"}cu.exports=np});var Wr=v((CE,lu)=>{"use strict";p();lu.exports=new Map});var du=v((wE,hu)=>{"use strict";p();var ls=O("path"),{promisify:sp}=O("util"),rp=sp(O("fs").readFile),ip=Hr(),zr=Wr(),cs=new Map;async function op(t){if(ip(t))return"commonjs";try{return JSON.parse(await rp(ls.resolve(t,"package.json"))).type||"commonjs"}catch{}let e=ls.dirname(t);return e===t?"commonjs":fu(e)}async function fu(t){if(zr.has(t))return zr.get(t);if(cs.has(t))return cs.get(t);let e=op(t);cs.set(t,e);let n=await e;return zr.set(t,n),cs.delete(t),n}function ap(t){return fu(ls.resolve(ls.dirname(t)))}hu.exports=ap});var mu=v((AE,gu)=>{"use strict";p();var fs=O("path"),{readFileSync:up}=O("fs"),cp=Hr(),Gr=Wr();function lp(t){if(cp(t))return"commonjs";try{return JSON.parse(up(fs.resolve(t,"package.json"))).type||"commonjs"}catch{}let e=fs.dirname(t);return e===t?"commonjs":pu(e)}function pu(t){if(Gr.has(t))return Gr.get(t);let e=lp(t);return Gr.set(t,e),e}function fp(t){return pu(fs.resolve(fs.dirname(t)))}gu.exports=fp});var Du=v((xE,Ur)=>{"use strict";p();var hp=du(),dp=mu();Ur.exports=t=>hp(t);Ur.exports.sync=dp});var ln=v(kt=>{"use strict";p();Object.defineProperty(kt,"__esModule",{value:!0});kt.load=_p;kt.loadWithData=yp;kt.loadWithDataFromManifest=bp;kt.isPathModule=Kr;var pp=Du(),gp=O("node:fs"),hs=O("node:path"),Jr=O("node:url"),_u=Tt(),Vr=Tr(),bu=ke(),mp=[".ts",".js",".mjs",".cjs",".mts",".cts",".tsx",".jsx"],Dp=t=>t.type!==void 0;function Xr(t,e,n){throw t.code==="MODULE_NOT_FOUND"||t.code==="ERR_MODULE_NOT_FOUND"?new Vr.ModuleLoadError(`${e?"import()":"require"} failed to load ${n}: ${t.message}`):t}async function _p(t,e){let n,s;try{return{filePath:n,isESM:s}=await Eu(t,e),s?await import((0,Jr.pathToFileURL)(n).href):O(n)}catch(r){Xr(r,s,n??e)}}async function yp(t,e){let n,s;try{({filePath:n,isESM:s}=await Eu(t,e));let r=s?await import((0,Jr.pathToFileURL)(n).href):O(n);return{filePath:n,isESM:s,module:r}}catch(r){Xr(r,s,n??e)}}async function bp(t,e){let{id:n,isESM:s,relativePath:r}=t;if(!r)throw new Vr.ModuleLoadError(`Cached command ${n} does not have a relative path`);if(s===void 0)throw new Vr.ModuleLoadError(`Cached command ${n} does not have the isESM property set`);let i=(0,hs.join)(e,r.join(hs.sep));try{let o=s?await import((0,Jr.pathToFileURL)(i).href):O(i);return{filePath:i,isESM:s,module:o}}catch(o){Xr(o,s,i??e)}}function Kr(t){switch((0,hs.extname)(t).toLowerCase()){case".js":case".jsx":case".ts":case".tsx":return pp.sync(t)==="module";case".mjs":case".mts":return!0;default:return!1}}async function Eu(t,e){let n,s;try{s=O.resolve(e),n=Kr(s)}catch{s=(Dp(t)?await(0,_u.tsPath)(t.root,e,t):await(0,_u.tsPath)(t.root,e))??e;let r=!1,i=!1;if((0,bu.existsSync)(s)){r=!0;try{(0,gp.lstatSync)(s)?.isDirectory?.()&&(r=!1,i=!0)}catch{}}if(!r){let o=yu(s);!o&&i&&(o=yu((0,hs.join)(s,"index"))),o&&(s=o)}n=Kr(s)}return{filePath:s,isESM:n}}function yu(t){for(let e of mp){let n=`${t}${e}`;if((0,bu.existsSync)(n))return n}return null}});var ps=v(ds=>{"use strict";p();Object.defineProperty(ds,"__esModule",{value:!0});ds.SINGLE_COMMAND_CLI_SYMBOL=void 0;ds.SINGLE_COMMAND_CLI_SYMBOL=Symbol("SINGLE_COMMAND_CLI").toString()});var Yr=v(gs=>{"use strict";p();Object.defineProperty(gs,"__esModule",{value:!0});gs.cacheDefaultValue=void 0;var Ep=async(t,e)=>{if(!(e&&t.noCacheDefault)){if(typeof t.defaultHelp=="function")try{return await t.defaultHelp({flags:{},options:t})}catch{return}if(typeof t.default=="function")try{return await t.default({flags:{},options:t})}catch{}else return t.default}};gs.cacheDefaultValue=Ep});var ht=v(ms=>{"use strict";p();Object.defineProperty(ms,"__esModule",{value:!0});ms.toStandardizedId=Cp;ms.toConfiguredId=vp;function Cp(t,e){return t.replaceAll(new RegExp(e.topicSeparator,"g"),":")}function vp(t,e){return t.replaceAll(new RegExp(":","g"),e.topicSeparator||":")}});var Zr=v(Ds=>{"use strict";p();Object.defineProperty(Ds,"__esModule",{value:!0});Ds.ActionBase=void 0;var Cu=O("node:util"),vu=te(),Qr=class{std="stderr";stdmocks;type;stdmockOrigs={stderr:process.stderr.write,stdout:process.stdout.write};get globals(){globalThis.ux=globalThis.ux||{};let e=globalThis.ux;return e.action=e.action||{},e}get output(){return this.globals.output}set output(e){this.globals.output=e}get running(){return!!this.task}get status(){return this.task?this.task.status:void 0}set status(e){let{task:n}=this;n&&n.status!==e&&(this._updateStatus(e,n.status),n.status=e)}get task(){return this.globals.action.task}set task(e){this.globals.action.task=e}_flushStdout(){try{let e="",n;for(;this.stdmocks&&this.stdmocks.length>0;){let s=this.stdmocks.shift();n=s[0],this._write(n,s[1]),e+=s[1][0].toString("utf8")}e&&n&&e.at(-1)!==`
|
|
68
|
+
`&&this._write(n,`
|
|
69
|
+
`)}catch(e){this._write("stderr",(0,Cu.inspect)(e))}}_pause(e){throw new Error("not implemented")}_resume(){this.task&&this.start(this.task.action,this.task.status)}_start(e){throw new Error("not implemented")}_stdout(e){try{if(e){if(this.stdmocks)return;this.stdmockOrigs={stderr:process.stderr.write,stdout:process.stdout.write},this.stdmocks=[],process.stdout.write=(...n)=>(this.stdmocks.push(["stdout",n]),!0),process.stderr.write=(...n)=>(this.stdmocks.push(["stderr",n]),!0)}else{if(!this.stdmocks)return;delete this.stdmocks,process.stdout.write=this.stdmockOrigs.stdout,process.stderr.write=this.stdmockOrigs.stderr}}catch(n){this._write("stderr",(0,Cu.inspect)(n))}}_stop(e){throw new Error("not implemented")}_updateStatus(e,n){}_write(e,n){switch(e){case"stderr":{this.stdmockOrigs.stderr.apply(process.stderr,(0,vu.castArray)(n));break}case"stdout":{this.stdmockOrigs.stdout.apply(process.stdout,(0,vu.castArray)(n));break}default:throw new Error(`invalid std: ${e}`)}}pause(e,n){let{task:s}=this,r=s&&s.active;s&&r&&(this._pause(n),this._stdout(!1),s.active=!1);let i=e();return s&&r&&this._resume(),i}async pauseAsync(e,n){let{task:s}=this,r=s&&s.active;s&&r&&(this._pause(n),this._stdout(!1),s.active=!1);let i=await e();return s&&r&&this._resume(),i}start(e,n,s={}){this.std=s.stdout?"stdout":"stderr";let r={action:e,active:!!(this.task&&this.task.active),status:n};this.task=r,this._start(s),r.active=!0,this._stdout(!0)}stop(e="done"){let{task:n}=this;n&&(this._stop(e),n.active=!1,this.task=void 0,this._stdout(!1))}};Ds.ActionBase=Qr});var wu=v(ti=>{"use strict";p();Object.defineProperty(ti,"__esModule",{value:!0});var wp=Zr(),ei=class extends wp.ActionBase{type="simple";_pause(e){e?this._updateStatus(e):this._flush()}_resume(){}_start(){this.task&&this._render(this.task.action,this.task.status)}_stop(e){this.task&&this._updateStatus(e,this.task.status,!0)}_updateStatus(e,n,s=!1){this.task&&(this.task.active&&!n?this._write(this.std,` ${e}`):this._write(this.std,`${this.task.action}... ${e}`),(s||!n)&&this._flush())}_flush(){this._write(this.std,`
|
|
70
|
+
`),this._flushStdout()}_render(e,n){this.task&&(this.task.active&&this._flush(),this._write(this.std,n?`${e}... ${n}`:`${e}...`))}};ti.default=ei});var Au=v((WE,ni)=>{"use strict";p();var q=ni.exports;ni.exports.default=q;var H="\x1B[",fn="\x1B]",Mt="\x07",_s=";",Fu=process.env.TERM_PROGRAM==="Apple_Terminal";q.cursorTo=(t,e)=>{if(typeof t!="number")throw new TypeError("The `x` argument is required");return typeof e!="number"?H+(t+1)+"G":H+(e+1)+";"+(t+1)+"H"};q.cursorMove=(t,e)=>{if(typeof t!="number")throw new TypeError("The `x` argument is required");let n="";return t<0?n+=H+-t+"D":t>0&&(n+=H+t+"C"),e<0?n+=H+-e+"A":e>0&&(n+=H+e+"B"),n};q.cursorUp=(t=1)=>H+t+"A";q.cursorDown=(t=1)=>H+t+"B";q.cursorForward=(t=1)=>H+t+"C";q.cursorBackward=(t=1)=>H+t+"D";q.cursorLeft=H+"G";q.cursorSavePosition=Fu?"\x1B7":H+"s";q.cursorRestorePosition=Fu?"\x1B8":H+"u";q.cursorGetPosition=H+"6n";q.cursorNextLine=H+"E";q.cursorPrevLine=H+"F";q.cursorHide=H+"?25l";q.cursorShow=H+"?25h";q.eraseLines=t=>{let e="";for(let n=0;n<t;n++)e+=q.eraseLine+(n<t-1?q.cursorUp():"");return t&&(e+=q.cursorLeft),e};q.eraseEndLine=H+"K";q.eraseStartLine=H+"1K";q.eraseLine=H+"2K";q.eraseDown=H+"J";q.eraseUp=H+"1J";q.eraseScreen=H+"2J";q.scrollUp=H+"S";q.scrollDown=H+"T";q.clearScreen="\x1Bc";q.clearTerminal=process.platform==="win32"?`${q.eraseScreen}${H}0f`:`${q.eraseScreen}${H}3J${H}H`;q.beep=Mt;q.link=(t,e)=>[fn,"8",_s,_s,e,Mt,t,fn,"8",_s,_s,Mt].join("");q.image=(t,e={})=>{let n=`${fn}1337;File=inline=1`;return e.width&&(n+=`;width=${e.width}`),e.height&&(n+=`;height=${e.height}`),e.preserveAspectRatio===!1&&(n+=";preserveAspectRatio=0"),n+":"+t.toString("base64")+Mt};q.iTerm={setCwd:(t=process.cwd())=>`${fn}50;CurrentDir=${t}${Mt}`,annotation:(t,e={})=>{let n=`${fn}1337;`,s=typeof e.x<"u",r=typeof e.y<"u";if((s||r)&&!(s&&r&&typeof e.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return t=t.replace(/\|/g,""),n+=e.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",e.length>0?n+=(s?[t,e.length,e.x,e.y]:[e.length,t]).join("|"):n+=t,n+Mt}}});var Ou=v((GE,Fp)=>{Fp.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=v((UE,Su)=>{"use strict";p();var ys=Object.assign({},Ou()),xu=Object.keys(ys);Object.defineProperty(ys,"random",{get(){let t=Math.floor(Math.random()*xu.length),e=xu[t];return ys[e]}});Su.exports=ys});var $u=v(hn=>{"use strict";p();var ii=hn&&hn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hn,"__esModule",{value:!0});var si=Au(),Ap=ii(ut()),Pu=ii(ju()),Op=ii(xe()),xp=St(),Sp=we(),jp=Zr(),ri=class extends jp.ActionBase{type="spinner";color="magenta";frameIndex;frames;spinner;constructor(){super(),this.frames=this.getFrames(),this.frameIndex=0}_frame(){let e=this.frames[this.frameIndex];return this.frameIndex=++this.frameIndex%this.frames.length,this.colorize(e)}_pause(e){this.spinner&&clearInterval(this.spinner),this._reset(),e&&this._render(` ${e}`),this.output=void 0}_start(e){this.color=Op.default.getInstance().get("config")?.theme?.spinner??this.color,e.style&&(this.frames=this.getFrames(e)),this._reset(),this.spinner&&clearInterval(this.spinner),this._render(),this.spinner=setInterval(s=>this._render.bind(this)(s),process.platform==="win32"?500:100,"spinner"),this.spinner.unref()}_stop(e){this.task&&(this.task.status=e),this.spinner&&clearInterval(this.spinner),this._render(),this.output=void 0}colorize(e){return(0,Sp.colorize)(this.color,e)}_lines(e){return Ap.default.strip(e).split(`
|
|
71
|
+
`).map(n=>Math.ceil(n.length/xp.errtermwidth)).reduce((n,s)=>n+s,0)}_render(e){if(!this.task)return;this._reset(),this._flushStdout();let n=e==="spinner"?` ${this._frame()}`:e||"",s=this.task.status?` ${this.task.status}`:"";this.output=`${this.task.action}...${n}${s}
|
|
72
|
+
`,this._write(this.std,this.output)}_reset(){if(!this.output)return;let e=this._lines(this.output);this._write(this.std,si.cursorLeft+si.cursorUp(e)+si.eraseDown),this.output=void 0}getFrames(e){return e?.style?Pu.default[e.style].frames:Pu.default[process.platform==="win32"?"line":"dots2"].frames}};hn.default=ri});var oi=v(dn=>{"use strict";p();Object.defineProperty(dn,"__esModule",{value:!0});dn.stringifyInput=Lu;dn.tokenize=Tu;dn.default=Tp;var Pp=we(),$p=[{regex:/^\s+/,tokenType:"whitespace"},{regex:/^[{}]/,tokenType:"brace"},{regex:/^[[\]]/,tokenType:"bracket"},{regex:/^:/,tokenType:"colon"},{regex:/^,/,tokenType:"comma"},{regex:/^-?\d+(?:\.\d+)?(?:e[+-]?\d+)?/i,tokenType:"number"},{regex:/^"(?:\\.|[^"\\])*"(?=\s*:)/,tokenType:"key"},{regex:/^"(?:\\.|[^"\\])*"/,tokenType:"string"},{regex:/^true|^false/,tokenType:"boolean"},{regex:/^null/,tokenType:"null"}];function Ru(t,e,n){return JSON.stringify(t,Rp(e,e),n)}function Rp(t,e){let n=[],s=[];return e||(e=function(r,i){return n[0]===i?"[Circular ~]":"[Circular ~."+s.slice(0,n.indexOf(i)).join(".")+"]"}),function(r,i){if(n.length>0){let o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?s.splice(o,Number.POSITIVE_INFINITY,r):s.push(r),n.includes(i)&&(i=e.call(this,r,i))}else n.push(i);return t?t.call(this,r,i):i}}function Lu(t,e){return e?.pretty?Ru(typeof t=="string"?JSON.parse(t):t,void 0,2):typeof t=="string"?t:Ru(t)}function Tu(t,e){let n=Lu(t,e),s=[],r=!1;do for(let i of $p){let o=i.regex.exec(n);if(o){s.push({type:i.tokenType,value:o[0]}),n=n.slice(o[0].length),r=!0;break}}while(Lp(n,r));return s}function Lp(t,e){return(t?.length??0)>0&&e}function Tp(t,e){let n={...e,pretty:e?.pretty??!0};return Tu(t,n).reduce((s,r)=>s+(0,Pp.colorize)(e?.theme?.[r.type],r.value),"")}});var dt=v(K=>{"use strict";p();var bs=K&&K.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(K,"__esModule",{value:!0});K.ux=K.action=K.stdout=K.stderr=K.colorize=K.colorizeJson=K.warn=K.exit=K.error=void 0;var kp=$t(),Mp=as(),Bp=Rt(),qp=bs(wu()),Ip=bs($u()),Np=bs(oi()),Hp=we(),ku=sn(),Wp=$t();Object.defineProperty(K,"error",{enumerable:!0,get:function(){return Wp.error}});var zp=as();Object.defineProperty(K,"exit",{enumerable:!0,get:function(){return zp.exit}});var Gp=Rt();Object.defineProperty(K,"warn",{enumerable:!0,get:function(){return Gp.warn}});var Up=oi();Object.defineProperty(K,"colorizeJson",{enumerable:!0,get:function(){return bs(Up).default}});var Vp=we();Object.defineProperty(K,"colorize",{enumerable:!0,get:function(){return Vp.colorize}});var Mu=sn();Object.defineProperty(K,"stderr",{enumerable:!0,get:function(){return Mu.stderr}});Object.defineProperty(K,"stdout",{enumerable:!0,get:function(){return Mu.stdout}});var Kp=!!process.stderr.isTTY&&!process.env.CI&&!["dumb","emacs-color"].includes(process.env.TERM)&&"spinner"||"simple";K.action=Kp==="spinner"?new Ip.default:new qp.default;K.ux={action:K.action,colorize:Hp.colorize,colorizeJson:Np.default,error:kp.error,exit:Mp.exit,stderr:ku.stderr,stdout:ku.stdout,warn:Bp.warn}});var Es=v(ai=>{"use strict";p();Object.defineProperty(ai,"__esModule",{value:!0});ai.ensureArgObject=Jp;function Jp(t){return Array.isArray(t)?(t??[]).reduce((e,n)=>({...e,[n.name]:n}),{}):t??{}}});var Bu=v(Cs=>{"use strict";p();Object.defineProperty(Cs,"__esModule",{value:!0});Cs.DocOpts=void 0;var Xp=Es(),ui=class t{cmd;flagList;flagMap;constructor(e){this.cmd=e,this.flagMap={},this.flagList=Object.entries(e.flags||{}).filter(([n,s])=>!s.hidden).map(([n,s])=>(this.flagMap[n]=s,s))}static formatUsageType(e,n,s){if(e.type!=="option")return"";let r;return e.helpValue?r=typeof e.helpValue=="string"?[e.helpValue]:e.helpValue:e.options?r=[s?e.options.join("|"):"<option>"]:n?r=[e.name]:r=["<value>"],r.map(i=>`${i}${e.multiple?"...":""}`).join(" ")}static generate(e){return new t(e).toString()}toString(){let e=["<%= command.id %>"];if(this.cmd.args){let n=this.cmd.strict===!1?"...":"",s=Object.values((0,Xp.ensureArgObject)(this.cmd.args)).filter(r=>!r.hidden).map(r=>r.required?`${r.name.toUpperCase()}${n}`:`[${r.name.toUpperCase()}${n}]`)||[];e.push(...s)}try{e.push(...Object.values(this.groupFlagElements()))}catch{e.push(...this.flagList.map(n=>{let s=n.char?`-${n.char}`:`--${n.name}`;return n.type==="boolean"?s:`${s}=${t.formatUsageType(n,!1,!0)}`}))}return e.join(" ")}combineElementsToFlag(e,n,s,r){if(!this.flagMap[n])return;let i=this.flagMap[n]?.required;(typeof i!="boolean"||!i)&&(i=s.reduce((o,a)=>o||this.flagMap[a]?.required||!1,!1));for(let o of s)e[n]=`${e[n]||""}${r}${e[o]||""}`,delete e[o],delete this.flagMap[o];e[n]=i?`(${e[n]||""})`:`[${e[n]||""}]`,delete this.flagMap[n]}generateElements(e={},n=[]){let s=[];for(let r of n){let i="",o=r.char?`-${r.char}`:`--${r.name}`;r.type==="option"&&(i=` ${t.formatUsageType(r,!1,!0)}`);let a=`${o}${i}`;e[r.name]=a,s.push(a)}return s}groupFlagElements(){let e={};this.generateElements(e,this.flagList.filter(n=>n.required)),this.generateElements(e,this.flagList.filter(n=>!n.required));for(let n of this.flagList){Array.isArray(n.dependsOn)&&this.combineElementsToFlag(e,n.name,n.dependsOn," ");let s;if(Array.isArray(n.exclusive)&&(s=new Set(n.exclusive)),Array.isArray(n.combinable)){let r=new Set(n.combinable);s??=new Set;for(let i of this.flagList)n!==i&&!r.has(i.name)&&s.add(i.name)}s!==void 0&&s.size>0&&this.combineElementsToFlag(e,n.name,[...s]," | ")}for(let n of Object.keys(this.flagMap)){let s=this.flagMap[n]||{};s.required||(e[s.name]=`[${e[s.name]||""}]`)}return e}};Cs.DocOpts=ui});var Iu=v((rC,ci)=>{"use strict";p();var Yp=zn(),qu=t=>{let e=0;for(let n of t.split(`
|
|
73
|
+
`))e=Math.max(e,Yp(n));return e};ci.exports=qu;ci.exports.default=qu});var Bt=v(ge=>{"use strict";p();var Qp=ge&&ge.__createBinding||(Object.create?(function(t,e,n,s){s===void 0&&(s=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,r)}):(function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]})),Zp=ge&&ge.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),eg=ge&&ge.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var s=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(s[s.length]=r);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var s=t(e),r=0;r<s.length;r++)s[r]!=="default"&&Qp(n,e,s[r]);return Zp(n,e),n}})();Object.defineProperty(ge,"__esModule",{value:!0});ge.template=rg;ge.standardizeIDFromArgv=Nu;ge.getHelpFlagAdditions=ug;ge.formatFlagDeprecationWarning=cg;ge.formatCommandDeprecationWarning=lg;ge.normalizeArgv=fg;var tg=eg(hr()),ng=Lt(),sg=ht();function rg(t){function e(n){return tg.render(n,t)}return e}var ig=t=>t.startsWith("-"),og=t=>t.includes("=");function ag(t,e){if(t.length===1)return t;let s=(r=>{let i=(0,ng.collectUsableIds)(e.commandIDs),o=[],a=f=>i.has(f),u=f=>(f?[...o,f]:o).filter(Boolean).join(":"),l=()=>{let f=u();if(!f)return!1;let c=e.findCommand(f);return!!(c&&(c.strict===!1||Object.keys(c.args??{}).length>0))};for(let f of r)if(a(u(f)))o.push(f);else{if(og(f)||ig(f)||l())break;o.push(f)}return u()})(t);if(s){let r=t.slice(s.split(":").length);return[s,...r]}return t}function Nu(t,e){return t.length===0||(e.topicSeparator===" "?t=ag(t,e):e.topicSeparator!==":"&&(t[0]=(0,sg.toStandardizedId)(t[0],e))),t}function ug(t){let e=["--help"],n=t.pjson.oclif.additionalHelpFlags??[];return[...new Set([...n,...e]).values()]}function cg(t,e){let n=`The "${t}" flag has been deprecated`;return e===!0?`${n}.`:e.message?e.message:(e.version&&(n+=` and will be removed in version ${e.version}`),n+=e.to?`. Use "${e.to}" instead.`:".",n)}function lg(t,e){let n=`The "${t}" command has been deprecated`;return e?e.message?e.message:(e.version&&(n+=` and will be removed in version ${e.version}`),n+=e.to?`. Use "${e.to}" instead.`:".",n):`${n}.`}function fg(t,e=process.argv.slice(2)){return t.topicSeparator!==":"&&!e[0]?.includes(":")&&(e=Nu(e,t)),e}});var mn=v(qt=>{"use strict";p();var gn=qt&&qt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qt,"__esModule",{value:!0});qt.HelpFormatter=void 0;var pn=gn(ut()),hg=gn(Wn()),dg=gn(zn()),pg=gn(Iu()),gg=gn(Kn()),mg=St(),li=we(),Dg=Bt(),fi=class{config;indentSpacing=2;opts;render;constructor(e,n={}){this.config=e,this.opts={maxWidth:mg.stdtermwidth,...n},this.render=(0,Dg.template)(this)}indent(e,n=this.indentSpacing){return(0,hg.default)(e,n)}renderList(e,n){if(e.length===0)return"";let s=()=>{let u="";for(let[l,f]of e)!l&&!f||(l&&(n.stripAnsi&&(l=pn.default.strip(l)),u+=this.wrap(l.trim(),n.indentation)),f&&(n.stripAnsi&&(f=pn.default.strip(f)),u+=`
|
|
74
|
+
`,u+=this.indent(this.wrap(f.trim(),n.indentation+2),4)),u+=`
|
|
75
|
+
|
|
76
|
+
`);return u.trim()};if(n.multiline)return s();let r=(0,pg.default)(e.map(u=>u[0]).join(`
|
|
77
|
+
`)),i="",o=n.spacer||`
|
|
78
|
+
`,a="";for(let[u,l]of e){let f=l;if(a&&(i+=o,i+=a),a=u||"",n.stripAnsi&&(a=pn.default.strip(a)),!f){a=a.trim();continue}n.stripAnsi&&(f=pn.default.strip(f)),f=this.wrap(f.trim(),n.indentation+r+2);let[c,...h]=f.split(`
|
|
79
|
+
`).map(g=>g.trim());if(a+=" ".repeat(r-(0,dg.default)(a)+2),a+=c,h.length!==0){if(h.length>4)return s();n.spacer||(o=`
|
|
80
|
+
`),a+=`
|
|
81
|
+
`,a+=this.indent(h.join(`
|
|
82
|
+
`),r+2)}}return a&&(i+=o,i+=a),i.trim()}section(e,n){let s;if(typeof n=="string")s=this.render(n);else if(Array.isArray(n))s=n.map(i=>{if("name"in i){let u=i;return[this.render(u.name),this.render(u.description)]}let[o,a]=i;return[this.render(o),a&&this.render(a)]});else{if("header"in n)return this.section(n.header,n.body);s=n.map(i=>[i.name,i.description]).map(([i,o])=>[this.render(i),o&&this.render(o)])}let r=[(0,li.colorize)(this.config?.theme?.sectionHeader,(0,li.colorize)("bold",e)),(0,li.colorize)(this.config?.theme?.sectionDescription,this.indent(Array.isArray(s)?this.renderList(s,{indentation:2,stripAnsi:this.opts.stripAnsi}):s))].join(`
|
|
83
|
+
`);return this.opts.stripAnsi?pn.default.strip(r):r}wrap(e,n=this.indentSpacing){return(0,gg.default)(this.render(e),this.opts.maxWidth-n,{hard:!0})}};qt.HelpFormatter=fi});var hi=v(pt=>{"use strict";p();var _g=pt&&pt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pt,"__esModule",{value:!0});pt.CommandHelp=void 0;var yg=_g(ut()),bg=Es(),Hu=ht(),It=te(),ne=we(),Wu=Bu(),Eg=mn(),Nt=/\r\n|\n/;function Cg(t){return t==="alphabetical"?"alphabetical":t==="none"?"none":"alphabetical"}var vs=class extends Eg.HelpFormatter{command;config;opts;constructor(e,n,s){super(n,s),this.command=e,this.config=n,this.opts=s}aliases(e){return!e||e.length===0?void 0:e.map(s=>[(0,ne.colorize)(this.config?.theme?.dollarSign,"$"),(0,ne.colorize)(this.config?.theme?.bin,this.config.bin),(0,ne.colorize)(this.config?.theme?.alias,s)].join(" ")).join(`
|
|
84
|
+
`)}arg(e){let n=e.name.toUpperCase();return e.required?`${n}`:`[${n}]`}args(e){if(e.filter(n=>n.description).length!==0)return e.map(n=>{let s=this.command.strict===!1?`${n.name.toUpperCase()}...`:n.name.toUpperCase();s=n.required?`${s}`:`[${s}]`;let r=n.description||"";return n.default&&(r=`${(0,ne.colorize)(this.config?.theme?.flagDefaultValue,`[default: ${n.default}]`)} ${r}`),n.options&&(r=`${(0,ne.colorize)(this.config?.theme?.flagOptions,`(${n.options.join("|")})`)} ${r}`),[(0,ne.colorize)(this.config?.theme?.flag,s),r?(0,ne.colorize)(this.config?.theme?.sectionDescription,r):void 0]})}defaultUsage(){return this.opts.docopts===void 0||this.opts.docopts?Wu.DocOpts.generate(this.command):(0,It.compact)([this.command.id,Object.values(this.command.args??{})?.filter(e=>!e.hidden).map(e=>this.arg(e)).join(" ")]).join(" ")}description(){let e=this.command,n;if(this.opts.hideCommandSummaryInDescription)n=[(e.description||"").split(Nt).at(-1)??""];else if(e.description){let s=e.summary?`${e.summary}
|
|
85
|
+
`:null;n=s?[...s.split(Nt),...(e.description||"").split(Nt)]:(e.description||"").split(Nt)}if(n)return this.wrap(n.join(`
|
|
86
|
+
`))}examples(e){return!e||e.length===0?void 0:(0,It.castArray)(e).map(s=>{let r,i;if(typeof s=="string"){let l=s.split(Nt).filter(Boolean);if(l.length>=2&&!this.isCommand(l[0])&&l.slice(1).every(f=>this.isCommand(f)))r=l[0],i=l.slice(1);else return l.map(f=>this.formatIfCommand(f)).join(`
|
|
87
|
+
`)}else r=s.description,i=[s.command];let o=this.config.platform==="win32"?this.config.shell.includes("powershell")?"`":"^":"\\",a=this.indentSpacing*2,u=i.map(l=>this.indent(this.wrap(this.formatIfCommand(l),a+4)).split(Nt).join(` ${o}
|
|
88
|
+
`)).join(`
|
|
89
|
+
`);return`${this.wrap(r,a)}
|
|
90
|
+
|
|
91
|
+
${u}`}).join(`
|
|
92
|
+
|
|
93
|
+
`)}flagHelpLabel(e,n=!1){let s=e.helpLabel;if(!s){let r=[];r.push(e.char?`-${e.char[0]}`:" "),e.name&&(e.type==="boolean"&&e.allowNo?r.push(`--[no-]${e.name.trim()}`):r.push(`--${e.name.trim()}`)),s=r.join(e.char?(0,ne.colorize)(this.config?.theme?.flagSeparator,", "):" ")}if(e.type==="option"){let r=Wu.DocOpts.formatUsageType(e,this.opts.showFlagNameInTitle??!1,this.opts.showFlagOptionsInTitle??n);r.includes("|")||(r=(0,ne.colorize)("underline",r)),s+=`=${r}`}return(0,ne.colorize)(this.config.theme?.flag,s)}flags(e){if(e.length===0)return;let n=e.reduce((s,r)=>s&&r.char===void 0,!0);return e.map(s=>{let r=this.flagHelpLabel(s);n&&(r=r.replace(" ",""));let i=s.summary||s.description||"",o=[],a=!(this.opts.respectNoCacheDefault===!0&&s.noCacheDefault===!0);return s.type==="option"?(s.default&&a&&o.push(`default: ${s.default}`),s.env&&o.push(`env: ${s.env}`)):s.type==="boolean"&&s.env&&o.push(`env: ${s.env}`),o.length>0&&(i=`${(0,ne.colorize)(this.config?.theme?.flagDefaultValue,`[${o.join(", ")}]`)} ${i}`),s.required&&(i=`${(0,ne.colorize)(this.config?.theme?.flagRequired,"(required)")} ${i}`),s.type==="option"&&s.options&&!s.helpValue&&!this.opts.showFlagOptionsInTitle&&(i+=(0,ne.colorize)(this.config?.theme?.flagOptions,`
|
|
94
|
+
<options: ${s.options.join("|")}>`)),[r,(0,ne.colorize)(this.config?.theme?.sectionDescription,i.trim())]})}flagsDescriptions(e){let n=e.filter(r=>r.summary&&r.description);return n.length===0?void 0:n.map(r=>{let i=r.summary||"",o=this.flagHelpLabel(r,!0);return r.char||(o=o.replace(" ","")),o+=o.length+i.length+2<this.opts.maxWidth?" "+i:`
|
|
95
|
+
|
|
96
|
+
`+this.indent(this.wrap(i,this.indentSpacing*2)),`${o}
|
|
97
|
+
|
|
98
|
+
${this.indent(this.wrap(r.description||"",this.indentSpacing*2))}`}).join(`
|
|
99
|
+
|
|
100
|
+
`)}generate(){let e=this.command,n=Object.entries(e.flags||{}).filter(([,o])=>!o.hidden).map(([o,a])=>(a.name=o,a)),s=Cg(this.opts.flagSortOrder)==="alphabetical"?(0,It.sortBy)(n,o=>[!o.char,o.char,o.name]):n,r=Object.values((0,bg.ensureArgObject)(e.args)).filter(o=>!o.hidden);return(0,It.compact)(this.sections().map(({generate:o,header:a})=>{let u=o({args:r,cmd:e,flags:s},a);return Array.isArray(u)?u.map(l=>l&&l.body&&this.section(l.header,l.body)).join(`
|
|
101
|
+
|
|
102
|
+
`):u&&this.section(a,u)})).join(`
|
|
103
|
+
|
|
104
|
+
`)}groupFlags(e){let n=[],s={};for(let r of e){let i=r.helpGroup;i?(s[i]||(s[i]=[]),s[i].push(r)):n.push(r)}return{flagGroups:s,mainFlags:n}}sections(){let e=[{generate:()=>this.usage(),header:this.opts.usageHeader||"USAGE"},{generate:({args:s},r)=>[{body:this.args(s),header:r}],header:"ARGUMENTS"},{generate:({flags:s},r)=>{let{flagGroups:i,mainFlags:o}=this.groupFlags(s),a=[],u=this.flags(o);u&&a.push({body:u,header:r});for(let[l,f]of Object.entries(i)){let c=this.flags(f);c&&a.push({body:c,header:`${l.toUpperCase()} ${r}`})}return(0,It.compact)(a)},header:"FLAGS"},{generate:()=>this.description(),header:"DESCRIPTION"},{generate:({cmd:s})=>this.aliases(s.aliases),header:"ALIASES"},{generate:({cmd:s})=>{let r=s.examples||s.example;return this.examples(r)},header:"EXAMPLES"},{generate:({flags:s})=>this.flagsDescriptions(s),header:"FLAG DESCRIPTIONS"}],n=this.opts.sections?.map(s=>s.toLowerCase());return e.filter(({header:s})=>!n||n.includes(s.toLowerCase()))}usage(){let{id:e,usage:n}=this.command,s=(0,Hu.toStandardizedId)(e,this.config),r=(0,Hu.toConfiguredId)(e,this.config);return(n?(0,It.castArray)(n):[this.defaultUsage()]).map(o=>{let a=this.opts.maxWidth-this.indentSpacing,u=(0,ne.colorize)(this.config?.theme?.dollarSign,"$"),l=(0,ne.colorize)(this.config?.theme?.bin,this.config.bin),f=(0,ne.colorize)(this.config?.theme?.command,"<%= command.id %>"),c=(0,ne.colorize)(this.config?.theme?.sectionDescription,o.replace("<%= command.id %>","").replace(new RegExp(`^${s}`),"").replace(new RegExp(`^${r}`),"").trim()),h=`${u} ${l} ${f} ${c}`.trim();if(h.length>a){let g=h.slice(0,Math.max(0,a)).lastIndexOf(" ");return h.slice(0,Math.max(0,g))+`
|
|
105
|
+
`+this.indent(this.wrap(h.slice(Math.max(0,g)),this.indentSpacing*2))}return this.wrap(h)}).join(`
|
|
106
|
+
`)}formatIfCommand(e){e=this.render(e);let n=(0,ne.colorize)(this.config?.theme?.dollarSign,"$");return e.startsWith(this.config.bin)?`${n} ${e}`:e.startsWith(`$ ${this.config.bin}`)?`${n}${e.replace("$","")}`:e}isCommand(e){return yg.default.strip(this.formatIfCommand(e)).startsWith(`${(0,ne.colorize)(this.config?.theme?.dollarSign,"$")} ${this.config.bin}`)}};pt.CommandHelp=vs;pt.default=vs});var zu=v(Dn=>{"use strict";p();var vg=Dn&&Dn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dn,"__esModule",{value:!0});var wg=vg(ut()),Fg=te(),Ht=we(),Ag=mn(),di=class extends Ag.HelpFormatter{config;opts;constructor(e,n){super(e,n),this.config=e,this.opts=n}description(){let e=this.config.pjson.oclif.description||this.config.pjson.description||"";if(e=this.render(e),e=e.split(`
|
|
107
|
+
`).slice(1).join(`
|
|
108
|
+
`),!!e)return this.section("DESCRIPTION",this.wrap((0,Ht.colorize)(this.config?.theme?.sectionDescription,e)))}root(){let e=this.config.pjson.oclif.description||this.config.pjson.description||"";e=this.render(e),e=e.split(`
|
|
109
|
+
`)[0];let n=(0,Fg.compact)([(0,Ht.colorize)(this.config?.theme?.commandSummary,e),this.version(),this.usage(),this.description()]).join(`
|
|
110
|
+
|
|
111
|
+
`);return this.opts.stripAnsi&&(n=wg.default.strip(n)),n}usage(){return this.section(this.opts.usageHeader||"USAGE",this.wrap(`${(0,Ht.colorize)(this.config?.theme?.dollarSign,"$")} ${(0,Ht.colorize)(this.config?.theme?.bin,this.config.bin)} ${(0,Ht.colorize)(this.config?.theme?.sectionDescription,"[COMMAND]")}`))}version(){return this.section("VERSION",this.wrap((0,Ht.colorize)(this.config?.theme?.version,this.config.userAgent)))}};Dn.default=di});var bn=v(ie=>{"use strict";p();var Ju=ie&&ie.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ie,"__esModule",{value:!0});ie.Help=ie.HelpBase=ie.standardizeIDFromArgv=ie.normalizeArgv=ie.getHelpFlagAdditions=ie.HelpFormatter=ie.CommandHelp=void 0;ie.loadHelpClass=Bg;var Gu=Ju(ut()),Og=Tt(),xg=$t(),Sg=ln(),Uu=ps(),jg=Yr(),pi=ht(),_n=te(),Vu=dt(),Be=we(),Pg=hi(),$g=mn(),Rg=Ju(zu()),yn=Bt(),Lg=hi();Object.defineProperty(ie,"CommandHelp",{enumerable:!0,get:function(){return Lg.CommandHelp}});var Tg=mn();Object.defineProperty(ie,"HelpFormatter",{enumerable:!0,get:function(){return Tg.HelpFormatter}});var gi=Bt();Object.defineProperty(ie,"getHelpFlagAdditions",{enumerable:!0,get:function(){return gi.getHelpFlagAdditions}});Object.defineProperty(ie,"normalizeArgv",{enumerable:!0,get:function(){return gi.normalizeArgv}});Object.defineProperty(ie,"standardizeIDFromArgv",{enumerable:!0,get:function(){return gi.standardizeIDFromArgv}});function kg(t,e){let n=(0,yn.getHelpFlagAdditions)(e);for(let s of t){if(s==="--")return;if(!(n.includes(s)||s==="help"))return s.startsWith("-")?void 0:s}}var ws=class extends $g.HelpFormatter{constructor(e,n={}){super(e,n),e.topicSeparator||(e.topicSeparator=":")}};ie.HelpBase=ws;var Fs=class extends ws{CommandHelpClass=Pg.CommandHelp;constructor(e,n={}){super(e,n)}get _topics(){return this.config.topics.filter(e=>this.config.topics.some(s=>s.name.includes(`${e.name}:`)))}get sortedCommands(){let{commands:e}=this.config;return e=e.filter(n=>this.opts.all||!n.hidden),e=(0,_n.sortBy)(e,n=>n.id),e=(0,_n.uniqBy)(e,n=>n.id),e}get sortedTopics(){let e=this._topics;return e=e.filter(n=>this.opts.all||!n.hidden),e=(0,_n.sortBy)(e,n=>n.name),e=(0,_n.uniqBy)(e,n=>n.name),e}command(e){return this.formatCommand(e)}description(e){let n=this.render(e.description||"");return e.summary?n:n.split(`
|
|
112
|
+
`).slice(1).join(`
|
|
113
|
+
`)}formatCommand(e){return this.config.topicSeparator!==":"&&(e.id=e.id.replaceAll(":",this.config.topicSeparator),e.aliases=e.aliases&&e.aliases.map(s=>s.replaceAll(":",this.config.topicSeparator))),this.getCommandHelpClass(e).generate()}formatCommands(e){if(e.length===0)return"";let n=this.renderList(e.filter(s=>this.opts.hideAliasesFromRoot?!s.aliases?.includes(s.id):!0).map(s=>{this.config.topicSeparator!==":"&&(s.id=s.id.replaceAll(":",this.config.topicSeparator));let r=this.summary(s);return[(0,Be.colorize)(this.config?.theme?.command,s.id),r&&(0,Be.colorize)(this.config?.theme?.sectionDescription,Gu.default.strip(r))]}),{indentation:2,spacer:`
|
|
114
|
+
`,stripAnsi:this.opts.stripAnsi});return this.section("COMMANDS",n)}formatRoot(){return new Rg.default(this.config,this.opts).root()}formatTopic(e){let n=this.render(e.description||""),s=n.split(`
|
|
115
|
+
`)[0];n=n.split(`
|
|
116
|
+
`).slice(1).join(`
|
|
117
|
+
`);let r=`${e.name}:COMMAND`;this.config.topicSeparator!==":"&&(r=r.replaceAll(":",this.config.topicSeparator));let i=(0,_n.compact)([(0,Be.colorize)(this.config?.theme?.commandSummary,s),this.section(this.opts.usageHeader||"USAGE",`${(0,Be.colorize)(this.config?.theme?.dollarSign,"$")} ${(0,Be.colorize)(this.config?.theme?.bin,this.config.bin)} ${r}`),n&&this.section("DESCRIPTION",this.wrap((0,Be.colorize)(this.config?.theme?.sectionDescription,n)))]).join(`
|
|
118
|
+
|
|
119
|
+
`);return this.opts.stripAnsi&&(i=Gu.default.strip(i)),i+`
|
|
120
|
+
`}formatTopics(e){if(e.length===0)return"";let n=this.renderList(e.map(s=>(this.config.topicSeparator!==":"&&(s.name=s.name.replaceAll(":",this.config.topicSeparator)),[(0,Be.colorize)(this.config?.theme?.topic,s.name),s.description&&this.render((0,Be.colorize)(this.config?.theme?.sectionDescription,s.description.split(`
|
|
121
|
+
`)[0]))])),{indentation:2,spacer:`
|
|
122
|
+
`,stripAnsi:this.opts.stripAnsi});return this.section("TOPICS",n)}getCommandHelpClass(e){return new this.CommandHelpClass(e,this.config,this.opts)}log(...e){return this.opts.sendToStderr?Vu.ux.stderr(e):Vu.ux.stdout(e)}async showCommandHelp(e){let n=e.id,s=n.split(":").length,r=this.sortedTopics.filter(l=>l.name.startsWith(n+":")&&l.name.split(":").length===s+1),i=this.sortedCommands.filter(l=>l.id.startsWith(n+":")&&l.id.split(":").length===s+1),o=this.config.plugins.get(e.pluginName),a=this.config.pjson?.oclif?.state||o?.pjson?.oclif?.state||e.state;if(a&&this.log(a==="deprecated"?`${(0,yn.formatCommandDeprecationWarning)((0,pi.toConfiguredId)(n,this.config),e.deprecationOptions)}
|
|
123
|
+
`:`This command is in ${a}.
|
|
124
|
+
`),e.deprecateAliases&&e.aliases.includes(n)){let l=this.config.commands.find(h=>h.aliases.includes(n)),f=l?(0,pi.toConfiguredId)(l.id,this.config):"",c={...e.deprecationOptions,...l?{to:f}:{}};this.log(`${(0,yn.formatCommandDeprecationWarning)((0,pi.toConfiguredId)(n,this.config),c)}
|
|
125
|
+
`)}let u=this.summary(e);if(u&&this.log(u+`
|
|
126
|
+
`),this.log(this.formatCommand(e)),this.log(""),r.length>0&&(this.log(this.formatTopics(r)),this.log("")),i.length>0){let l=[],f=i.filter(c=>(l.push(...c.aliases),!l.includes(c.id)));this.log(this.formatCommands(f)),this.log("")}}async showHelp(e){let n=e.slice(1);e=e.filter(o=>!(0,yn.getHelpFlagAdditions)(this.config).includes(o)),this.config.topicSeparator!==":"&&(e=(0,yn.standardizeIDFromArgv)(e,this.config));let s=kg(e,this.config);if(!s){if(this.config.isSingleCommandCLI){let o=this.config.findCommand(Uu.SINGLE_COMMAND_CLI_SYMBOL);if(o){o.id="",await this.showCommandHelp(o);return}}await this.showRootHelp();return}let r=this.config.findCommand(s);if(r){if(r.id===Uu.SINGLE_COMMAND_CLI_SYMBOL&&(r.id=""),r.hasDynamicHelp&&r.pluginType!=="jit"){let o=await r.load();for(let[a,u]of Object.entries(o.flags??{}))u.type!=="boolean"&&(r.flags[a].default=await(0,jg.cacheDefaultValue)(u,!1));await this.showCommandHelp(r)}else await this.showCommandHelp(r);return}let i=this.config.findTopic(s);if(i){await this.showTopicHelp(i);return}if(this.config.flexibleTaxonomy){let o=this.config.findMatches(s,n);if(o.length>0&&(await this.config.runHook("command_incomplete",{argv:n.filter(u=>!s.split(":").includes(u)),id:s,matches:o})).successes.length>0)return}(0,xg.error)(`Command ${s} not found.`)}async showRootHelp(){let e=this.sortedTopics,n=this.sortedCommands,s=this.config.pjson?.oclif?.state;s&&this.log(s==="deprecated"?`${this.config.bin} is deprecated`:`${this.config.bin} is in ${s}.
|
|
127
|
+
`),this.log(this.formatRoot()),this.log(""),this.opts.all||(e=e.filter(r=>!r.name.includes(":")),n=n.filter(r=>!r.id.includes(":"))),e.length>0&&(this.log(this.formatTopics(e)),this.log("")),n.length>0&&(n=n.filter(r=>r.id),this.log(this.formatCommands(n)),this.log(""))}async showTopicHelp(e){let{name:n}=e,s=n.split(":").length,r=this.sortedTopics.filter(a=>a.name.startsWith(n+":")&&a.name.split(":").length===s+1),i=this.sortedCommands.filter(a=>a.id.startsWith(n+":")&&a.id.split(":").length===s+1),o=this.config.pjson?.oclif?.state;o&&this.log(`This topic is in ${o}.
|
|
128
|
+
`),this.log(this.formatTopic(e)),r.length>0&&(this.log(this.formatTopics(r)),this.log("")),i.length>0&&(this.log(this.formatCommands(i)),this.log(""))}summary(e){if(!(this.opts.sections&&!this.opts.sections.map(n=>n.toLowerCase()).includes("summary")))return e.summary?(0,Be.colorize)(this.config?.theme?.commandSummary,this.render(e.summary.split(`
|
|
129
|
+
`)[0])):e.description&&(0,Be.colorize)(this.config?.theme?.commandSummary,this.render(e.description).split(`
|
|
130
|
+
`)[0])}};ie.Help=Fs;function Ku(t){return t&&t.default?t.default:t}function Mg(t){return typeof t=="string"?{identifier:"default",target:t}:t.identifier?t:{...t,identifier:"default"}}async function Bg(t){if(t.pjson.oclif?.helpClass){let{identifier:e,target:n}=Mg(t.pjson.oclif?.helpClass);try{let s=await(0,Og.tsPath)(t.root,n)??n,r=await(0,Sg.load)(t,s),i=r[e]??(e==="default"?Ku(r):void 0);return Ku(i)}catch(s){throw new Error(`Unable to load configured help class "${n}", failed with message:
|
|
131
|
+
${s.message}`)}}return Fs}});var As=v(qe=>{"use strict";p();var mi=qe&&qe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qe,"__esModule",{value:!0});qe.Exit=void 0;qe.handle=Ug;var qg=mi(gr()),Ig=mi(xe()),Ng=bn(),Hg=de(),Wg=ct(),zg=is(),Gg=mi(ss());qe.Exit={exit(t=0){process.exit(t)}};async function Ug(t){try{t||(t=new Wg.CLIError("no error?")),t.message==="SIGINT"&&qe.Exit.exit(1);let e=!(t instanceof zg.ExitError)&&!t.skipOclifErrorHandling,n=(0,Gg.default)(t),s=(0,qg.default)(t.stack||"",{pretty:!0});if(e){console.error(n??s);let i=Ig.default.getInstance().get("config");if(t.showHelp&&t.parse?.input?.argv&&i){let o={...i.pjson.oclif.helpOptions??i.pjson.helpOptions,sections:["flags","usage","arguments"],sendToStderr:!0},a=new Ng.Help(i,o);console.error(),await a.showHelp(process.argv.slice(2))}}let r=t.oclif?.exit??1;t.code!=="EEXIT"&&s&&(0,Hg.getLogger)().error(s),qe.Exit.exit(r)}catch(e){console.error(t.stack),console.error(e.stack),qe.Exit.exit(1)}}});var Ue=v(ue=>{"use strict";p();Object.defineProperty(ue,"__esModule",{value:!0});ue.warn=ue.handle=ue.exit=ue.ModuleLoadError=ue.ExitError=ue.CLIError=ue.error=void 0;var Vg=$t();Object.defineProperty(ue,"error",{enumerable:!0,get:function(){return Vg.error}});var Kg=ct();Object.defineProperty(ue,"CLIError",{enumerable:!0,get:function(){return Kg.CLIError}});var Jg=is();Object.defineProperty(ue,"ExitError",{enumerable:!0,get:function(){return Jg.ExitError}});var Xg=Tr();Object.defineProperty(ue,"ModuleLoadError",{enumerable:!0,get:function(){return Xg.ModuleLoadError}});var Yg=as();Object.defineProperty(ue,"exit",{enumerable:!0,get:function(){return Yg.exit}});var Qg=As();Object.defineProperty(ue,"handle",{enumerable:!0,get:function(){return Qg.handle}});var Zg=Rt();Object.defineProperty(ue,"warn",{enumerable:!0,get:function(){return Zg.warn}})});var Wt=v(fe=>{"use strict";p();Object.defineProperty(fe,"__esModule",{value:!0});fe.Performance=fe.OCLIF_MARKER_OWNER=void 0;var En=O("node:perf_hooks"),Xu=de(),em=Ge();fe.OCLIF_MARKER_OWNER="@oclif/core";var Di=class{owner;name;details;method;module;scope;stopped=!1;startMarker;stopMarker;constructor(e,n,s={}){this.owner=e,this.name=n,this.details=s,this.startMarker=`${this.name}-start`,this.stopMarker=`${this.name}-stop`;let[r,i]=n.split("#"),[o,a]=r.split(".");this.module=o,this.method=a,this.scope=i,En.performance.mark(this.startMarker)}addDetails(e){this.details={...this.details,...e}}measure(){En.performance.measure(this.name,this.startMarker,this.stopMarker)}stop(){this.stopped=!0,En.performance.mark(this.stopMarker)}},_i=class t{static _oclifPerf;static _results=new Map;static markers=new Map;static async collect(){if(!t.enabled||t._results.size>0)return;let e=[...t.markers.values()];if(e.length!==0){for(let n of e.filter(s=>!s.stopped))n.stop();return new Promise(n=>{new En.PerformanceObserver(r=>{for(let c of r.getEntries()){let h=t.markers.get(c.name);if(h){let g={details:h.details,duration:c.duration,method:h.method,module:h.module,name:c.name,scope:h.scope},d=t._results.get(h.owner)??[];t._results.set(h.owner,[...d,g])}}let i=t._results.get(fe.OCLIF_MARKER_OWNER)??[],o=i.find(c=>c.name.startsWith("config.runCommand")),a=o?t.getResult(fe.OCLIF_MARKER_OWNER,`plugin.findCommand#${o.details.plugin}.${o.details.command}`)?.duration??0:0,u=Object.fromEntries(i.filter(({name:c})=>c.startsWith("plugin.load#")).sort((c,h)=>h.duration-c.duration).map(({details:c,duration:h,scope:g})=>[g,{details:c,duration:h}])),l=i.filter(({name:c})=>c.startsWith("config.runHook#")).reduce((c,h)=>{let g=h.details.event;if(g)c[g]||(c[g]={}),c[g][h.scope]=h.duration;else{let d=h.scope;c[d]||(c[d]={}),c[d].total=h.duration}return c},{}),f=Object.fromEntries(i.filter(({name:c})=>c.startsWith("config.loadPlugins#")).sort((c,h)=>h.duration-c.duration).map(({duration:c,scope:h})=>[h,c]));t._oclifPerf={hookRunTimes:l,"oclif.commandLoadMs":a,"oclif.commandRunMs":i.find(({name:c})=>c.startsWith("config.runCommand#"))?.duration??0,"oclif.configLoadMs":t.getResult(fe.OCLIF_MARKER_OWNER,"config.load")?.duration??0,"oclif.corePluginsLoadMs":f.core??0,"oclif.initHookMs":l.init?.total??0,"oclif.initMs":t.getResult(fe.OCLIF_MARKER_OWNER,"main.run#init")?.duration??0,"oclif.linkedPluginsLoadMs":f.link??0,"oclif.postrunHookMs":l.postrun?.total??0,"oclif.prerunHookMs":l.prerun?.total??0,"oclif.runMs":t.getResult(fe.OCLIF_MARKER_OWNER,"main.run")?.duration??0,"oclif.userPluginsLoadMs":f.user??0,pluginLoadTimes:u},n()}).observe({buffered:!0,entryTypes:["measure"]});for(let r of e)try{r.measure()}catch{}En.performance.clearMarks()})}}static debug(){if(!t.enabled)return;let e=(0,Xu.makeDebug)("perf"),n=(process.uptime()*1e3).toFixed(4);e("Process Uptime: %sms",n),e("Oclif Time: %sms",t.oclifPerf["oclif.runMs"].toFixed(4)),e("Init Time: %sms",t.oclifPerf["oclif.initMs"].toFixed(4)),e("Config Load Time: %sms",t.oclifPerf["oclif.configLoadMs"].toFixed(4)),e(" \u2022 Root Plugin Load Time: %sms",t.getResult(fe.OCLIF_MARKER_OWNER,"plugin.load#root")?.duration.toFixed(4)??0),e(" \u2022 Plugins Load Time: %sms",t.getResult(fe.OCLIF_MARKER_OWNER,"config.loadAllPlugins")?.duration.toFixed(4)??0),e(" \u2022 Commands Load Time: %sms",t.getResult(fe.OCLIF_MARKER_OWNER,"config.loadAllCommands")?.duration.toFixed(4)??0),e("Core Plugin Load Time: %sms",t.oclifPerf["oclif.corePluginsLoadMs"].toFixed(4)),e("User Plugin Load Time: %sms",t.oclifPerf["oclif.userPluginsLoadMs"].toFixed(4)),e("Linked Plugin Load Time: %sms",t.oclifPerf["oclif.linkedPluginsLoadMs"].toFixed(4)),e("Plugin Load Times:");for(let[i,o]of Object.entries(t.oclifPerf.pluginLoadTimes))o.details.hasManifest?e(` ${i}: ${o.duration.toFixed(4)}ms`):e(` ${i}: ${o.duration.toFixed(4)}ms (no manifest!)`);e("Hook Run Times:");for(let[i,o]of Object.entries(t.oclifPerf.hookRunTimes)){e(` ${i}:`);for(let[a,u]of Object.entries(o))e(` ${a}: ${u.toFixed(4)}ms`)}e("Command Load Time: %sms",t.oclifPerf["oclif.commandLoadMs"].toFixed(4)),e("Command Run Time: %sms",t.oclifPerf["oclif.commandRunMs"].toFixed(4)),t.oclifPerf["oclif.configLoadMs"]>t.oclifPerf["oclif.runMs"]&&e("! Config load time is greater than total oclif time. This might mean that Config was instantiated before oclif was run.");let s=(0,Xu.makeDebug)("non-oclif-perf"),r=t.results;if(r.size>0){s("Non-Core Performance Measurements:");for(let[i,o]of r){s(` ${i}:`);for(let a of o)s(` ${a.name}: ${a.duration.toFixed(4)}ms`)}}}static getResult(e,n){return t._results.get(e)?.find(s=>s.name===n)}static mark(e,n,s={}){if(!t.enabled)return;let r=new Di(e,n,s);return t.markers.set(r.name,r),r}static get enabled(){return em.settings.performanceEnabled??!1}static get oclifPerf(){if(!t.enabled)return{};if(t._oclifPerf)return t._oclifPerf;throw new Error("Perf results not available. Did you forget to call await Performance.collect()?")}static get results(){return t.enabled?new Map([...t._results.entries()].filter(([e])=>e!==fe.OCLIF_MARKER_OWNER)):new Map}};fe.Performance=_i});var Yu=v(yi=>{"use strict";p();Object.defineProperty(yi,"__esModule",{value:!0});yi.determinePriority=tm;function tm(t,e){return e.sort((s,r)=>{let i=s.pluginAlias??"A-Cannot-Find-This",o=r.pluginAlias??"B-Cannot-Find-This",a=t.indexOf(i),u=t.indexOf(o);return s.pluginType==="core"&&r.pluginType==="core"?a-u:r.pluginType==="core"&&s.pluginType!=="core"?1:s.pluginType==="core"&&r.pluginType!=="core"?-1:s.pluginType==="jit"&&r.pluginType!=="jit"?1:r.pluginType==="jit"&&s.pluginType!=="jit"?-1:0})[0]}});var Zu=v(Os=>{"use strict";p();Object.defineProperty(Os,"__esModule",{value:!0});Os.getHomeDir=nm;Os.getPlatform=sm;var Qu=O("node:os");function nm(){return(0,Qu.homedir)()}function sm(){return(0,Qu.platform)()}});var tc=v(gt=>{"use strict";p();Object.defineProperty(gt,"__esModule",{value:!0});gt.range=gt.balanced=void 0;var rm=(t,e,n)=>{let s=t instanceof RegExp?ec(t,n):t,r=e instanceof RegExp?ec(e,n):e,i=s!==null&&r!=null&&(0,gt.range)(s,r,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+s.length,i[1]),post:n.slice(i[1]+r.length)}};gt.balanced=rm;var ec=(t,e)=>{let n=e.match(t);return n?n[0]:null},im=(t,e,n)=>{let s,r,i,o,a,u=n.indexOf(t),l=n.indexOf(e,u+1),f=u;if(u>=0&&l>0){if(t===e)return[u,l];for(s=[],i=n.length;f>=0&&!a;){if(f===u)s.push(f),u=n.indexOf(t,f+1);else if(s.length===1){let c=s.pop();c!==void 0&&(a=[c,l])}else r=s.pop(),r!==void 0&&r<i&&(i=r,o=l),l=n.indexOf(e,f+1);f=u<l&&u>=0?u:l}s.length&&o!==void 0&&(a=[i,o])}return a};gt.range=im});var uc=v(zt=>{"use strict";p();Object.defineProperty(zt,"__esModule",{value:!0});zt.EXPANSION_MAX=void 0;zt.expand=_m;var nc=tc(),sc="\0SLASH"+Math.random()+"\0",rc="\0OPEN"+Math.random()+"\0",Ei="\0CLOSE"+Math.random()+"\0",ic="\0COMMA"+Math.random()+"\0",oc="\0PERIOD"+Math.random()+"\0",om=new RegExp(sc,"g"),am=new RegExp(rc,"g"),um=new RegExp(Ei,"g"),cm=new RegExp(ic,"g"),lm=new RegExp(oc,"g"),fm=/\\\\/g,hm=/\\{/g,dm=/\\}/g,pm=/\\,/g,gm=/\\\./g;zt.EXPANSION_MAX=1e5;function bi(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function mm(t){return t.replace(fm,sc).replace(hm,rc).replace(dm,Ei).replace(pm,ic).replace(gm,oc)}function Dm(t){return t.replace(om,"\\").replace(am,"{").replace(um,"}").replace(cm,",").replace(lm,".")}function ac(t){if(!t)return[""];let e=[],n=(0,nc.balanced)("{","}",t);if(!n)return t.split(",");let{pre:s,body:r,post:i}=n,o=s.split(",");o[o.length-1]+="{"+r+"}";let a=ac(i);return i.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function _m(t,e={}){if(!t)return[];let{max:n=zt.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),Cn(mm(t),n,!0).map(Dm)}function ym(t){return"{"+t+"}"}function bm(t){return/^-?0\d/.test(t)}function Em(t,e){return t<=e}function Cm(t,e){return t>=e}function Cn(t,e,n){let s=[],r=(0,nc.balanced)("{","}",t);if(!r)return[t];let i=r.pre,o=r.post.length?Cn(r.post,e,!1):[""];if(/\$$/.test(r.pre))for(let a=0;a<o.length&&a<e;a++){let u=i+"{"+r.body+"}"+o[a];s.push(u)}else{let a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),l=a||u,f=r.body.indexOf(",")>=0;if(!l&&!f)return r.post.match(/,(?!,).*\}/)?(t=r.pre+"{"+r.body+Ei+r.post,Cn(t,e,!0)):[t];let c;if(l)c=r.body.split(/\.\./);else if(c=ac(r.body),c.length===1&&c[0]!==void 0&&(c=Cn(c[0],e,!1).map(ym),c.length===1))return o.map(g=>r.pre+c[0]+g);let h;if(l&&c[0]!==void 0&&c[1]!==void 0){let g=bi(c[0]),d=bi(c[1]),m=Math.max(c[0].length,c[1].length),_=c.length===3&&c[2]!==void 0?Math.max(Math.abs(bi(c[2])),1):1,y=Em;d<g&&(_*=-1,y=Cm);let w=c.some(bm);h=[];for(let $=g;y($,d);$+=_){let j;if(u)j=String.fromCharCode($),j==="\\"&&(j="");else if(j=String($),w){let T=m-j.length;if(T>0){let B=new Array(T+1).join("0");$<0?j="-"+B+j.slice(1):j=B+j}}h.push(j)}}else{h=[];for(let g=0;g<c.length;g++)h.push.apply(h,Cn(c[g],e,!1))}for(let g=0;g<h.length;g++)for(let d=0;d<o.length&&s.length<e;d++){let m=i+h[g]+o[d];(!n||l||m)&&s.push(m)}}return s}});var cc=v(xs=>{"use strict";p();Object.defineProperty(xs,"__esModule",{value:!0});xs.assertValidPattern=void 0;var vm=1024*64,wm=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>vm)throw new TypeError("pattern is too long")};xs.assertValidPattern=wm});var fc=v(Ss=>{"use strict";p();Object.defineProperty(Ss,"__esModule",{value:!0});Ss.parseClass=void 0;var Fm={"[: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]},vn=t=>t.replace(/[[\]\\-]/g,"\\$&"),Am=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),lc=t=>t.join(""),Om=(t,e)=>{let n=e;if(t.charAt(n)!=="[")throw new Error("not in a brace expression");let s=[],r=[],i=n+1,o=!1,a=!1,u=!1,l=!1,f=n,c="";e:for(;i<t.length;){let m=t.charAt(i);if((m==="!"||m==="^")&&i===n+1){l=!0,i++;continue}if(m==="]"&&o&&!u){f=i+1;break}if(o=!0,m==="\\"&&!u){u=!0,i++;continue}if(m==="["&&!u){for(let[_,[y,D,w]]of Object.entries(Fm))if(t.startsWith(_,i)){if(c)return["$.",!1,t.length-n,!0];i+=_.length,w?r.push(y):s.push(y),a=a||D;continue e}}if(u=!1,c){m>c?s.push(vn(c)+"-"+vn(m)):m===c&&s.push(vn(m)),c="",i++;continue}if(t.startsWith("-]",i+1)){s.push(vn(m+"-")),i+=2;continue}if(t.startsWith("-",i+1)){c=m,i+=2;continue}s.push(vn(m)),i++}if(f<i)return["",!1,0,!1];if(!s.length&&!r.length)return["$.",!1,t.length-n,!0];if(r.length===0&&s.length===1&&/^\\?.$/.test(s[0])&&!l){let m=s[0].length===2?s[0].slice(-1):s[0];return[Am(m),!1,f-n,!1]}let h="["+(l?"^":"")+lc(s)+"]",g="["+(l?"":"^")+lc(r)+"]";return[s.length&&r.length?"("+h+"|"+g+")":s.length?h:g,a,f-n,!0]};Ss.parseClass=Om});var Ps=v(js=>{"use strict";p();Object.defineProperty(js,"__esModule",{value:!0});js.unescape=void 0;var xm=(t,{windowsPathsNoEscape:e=!1,magicalBraces:n=!0}={})=>n?e?t.replace(/\[([^/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):e?t.replace(/\[([^/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");js.unescape=xm});var wi=v(Ts=>{"use strict";p();var me;Object.defineProperty(Ts,"__esModule",{value:!0});Ts.AST=void 0;var Sm=fc(),$s=Ps(),jm=new Set(["!","?","+","*","@"]),Ci=t=>jm.has(t),hc=t=>Ci(t.type),Pm=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),$m=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),Rm=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),dc=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),Lm="(?!(?:^|/)\\.\\.?(?:$|/))",Rs="(?!\\.)",Tm=new Set(["[","."]),km=new Set(["..","."]),Mm=new Set("().*{}+?[]^$\\!"),Bm=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),vi="[^/]",pc=vi+"*?",gc=vi+"+?",qm=0,Ls=class{type;#n;#s;#r=!1;#e=[];#t;#a;#c;#u=!1;#i;#o;#l=!1;id=++qm;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(e,n,s={}){this.type=e,e&&(this.#s=!0),this.#t=n,this.#n=this.#t?this.#t.#n:this,this.#i=this.#n===this?s:this.#n.#i,this.#c=this.#n===this?[]:this.#n.#c,e==="!"&&!this.#n.#u&&this.#c.push(this),this.#a=this.#t?this.#t.#e.length:0}get hasMagic(){if(this.#s!==void 0)return this.#s;for(let e of this.#e)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#s=!0;return this.#s}toString(){return this.#o!==void 0?this.#o:this.type?this.#o=this.type+"("+this.#e.map(e=>String(e)).join("|")+")":this.#o=this.#e.map(e=>String(e)).join("")}#D(){if(this!==this.#n)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let e;for(;e=this.#c.pop();){if(e.type!=="!")continue;let n=e,s=n.#t;for(;s;){for(let r=n.#a+1;!s.type&&r<s.#e.length;r++)for(let i of e.#e){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(s.#e[r])}n=s,s=n.#t}}return this}push(...e){for(let n of e)if(n!==""){if(typeof n!="string"&&!(n instanceof me&&n.#t===this))throw new Error("invalid part: "+n);this.#e.push(n)}}toJSON(){let e=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&&e.unshift([]),this.isEnd()&&(this===this.#n||this.#n.#u&&this.#t?.type==="!")&&e.push({}),e}isStart(){if(this.#n===this)return!0;if(!this.#t?.isStart())return!1;if(this.#a===0)return!0;let e=this.#t;for(let n=0;n<this.#a;n++){let s=e.#e[n];if(!(s instanceof me&&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 e=this.#t?this.#t.#e.length:0;return this.#a===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let n=new me(this.type,e);for(let s of this.#e)n.copyIn(s);return n}static#f(e,n,s,r,i){let o=r.maxExtglobRecursion??2,a=!1,u=!1,l=-1,f=!1;if(n.type===null){let m=s,_="";for(;m<e.length;){let y=e.charAt(m++);if(a||y==="\\"){a=!a,_+=y;continue}if(u){m===l+1?(y==="^"||y==="!")&&(f=!0):y==="]"&&!(m===l+2&&f)&&(u=!1),_+=y;continue}else if(y==="["){u=!0,l=m,f=!1,_+=y;continue}if(!r.noext&&Ci(y)&&e.charAt(m)==="("&&i<=o){n.push(_),_="";let w=new me(y,n);m=me.#f(e,w,m,r,i+1),n.push(w);continue}_+=y}return n.push(_),m}let c=s+1,h=new me(null,n),g=[],d="";for(;c<e.length;){let m=e.charAt(c++);if(a||m==="\\"){a=!a,d+=m;continue}if(u){c===l+1?(m==="^"||m==="!")&&(f=!0):m==="]"&&!(c===l+2&&f)&&(u=!1),d+=m;continue}else if(m==="["){u=!0,l=c,f=!1,d+=m;continue}if(!r.noext&&Ci(m)&&e.charAt(c)==="("&&(i<=o||n&&n.#h(m))){let y=n&&n.#h(m)?0:1;h.push(d),d="";let D=new me(m,h);h.push(D),c=me.#f(e,D,c,r,i+y);continue}if(m==="|"){h.push(d),d="",g.push(h),h=new me(null,n);continue}if(m===")")return d===""&&n.#e.length===0&&(n.#l=!0),h.push(d),d="",n.push(...g,h),c;d+=m}return n.type=null,n.#s=void 0,n.#e=[e.substring(s-1)],c}#_(e){return this.#p(e,$m)}#p(e,n=Pm){if(!e||typeof e!="object"||e.type!==null||e.#e.length!==1||this.type===null)return!1;let s=e.#e[0];return!s||typeof s!="object"||s.type===null?!1:this.#h(s.type,n)}#h(e,n=Rm){return!!n.get(this.type)?.includes(e)}#y(e,n){let s=e.#e[0],r=new me(null,s,this.options);r.#e.push(""),s.push(r),this.#g(e,n)}#g(e,n){let s=e.#e[0];this.#e.splice(n,1,...s.#e);for(let r of s.#e)typeof r=="object"&&(r.#t=this);this.#o=void 0}#b(e){return!!dc.get(this.type)?.has(e)}#E(e){if(!e||typeof e!="object"||e.type!==null||e.#e.length!==1||this.type===null||this.#e.length!==1)return!1;let n=e.#e[0];return!n||typeof n!="object"||n.type===null?!1:this.#b(n.type)}#C(e){let n=dc.get(this.type),s=e.#e[0],r=n?.get(s.type);if(!r)return!1;this.#e=s.#e;for(let i of this.#e)typeof i=="object"&&(i.#t=this);this.type=r,this.#o=void 0,this.#l=!1}static fromGlob(e,n={}){let s=new me(null,void 0,n);return me.#f(e,s,0,n,0),s}toMMPattern(){if(this!==this.#n)return this.#n.toMMPattern();let e=this.toString(),[n,s,r,i]=this.toRegExpSource();if(!(r||this.#s||this.#i.nocase&&!this.#i.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return s;let a=(this.#i.nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${n}$`,a),{_src:n,_glob:e})}get options(){return this.#i}toRegExpSource(e){let n=e??!!this.#i.dot;if(this.#n===this&&(this.#d(),this.#D()),!hc(this)){let u=this.isStart()&&this.isEnd()&&!this.#e.some(g=>typeof g!="string"),l=this.#e.map(g=>{let[d,m,_,y]=typeof g=="string"?me.#v(g,this.#s,u):g.toRegExpSource(e);return this.#s=this.#s||_,this.#r=this.#r||y,d}).join(""),f="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&km.has(this.#e[0]))){let d=Tm,m=n&&d.has(l.charAt(0))||l.startsWith("\\.")&&d.has(l.charAt(2))||l.startsWith("\\.\\.")&&d.has(l.charAt(4)),_=!n&&!e&&d.has(l.charAt(0));f=m?Lm:_?Rs:""}let c="";return this.isEnd()&&this.#n.#u&&this.#t?.type==="!"&&(c="(?:$|\\/)"),[f+l+c,(0,$s.unescape)(l),this.#s=!!this.#s,this.#r]}let s=this.type==="*"||this.type==="+",r=this.type==="!"?"(?:(?!(?:":"(?:",i=this.#m(n);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){let u=this.toString(),l=this;return l.#e=[u],l.type=null,l.#s=void 0,[u,(0,$s.unescape)(this.toString()),!1,!1]}let o=!s||e||n||!Rs?"":this.#m(!0);o===i&&(o=""),o&&(i=`(?:${i})(?:${o})*?`);let a="";if(this.type==="!"&&this.#l)a=(this.isStart()&&!n?Rs:"")+gc;else{let u=this.type==="!"?"))"+(this.isStart()&&!n&&!e?Rs:"")+pc+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=r+i+u}return[a,(0,$s.unescape)(i),this.#s=!!this.#s,this.#r]}#d(){if(hc(this)){let e=0,n=!1;do{n=!0;for(let s=0;s<this.#e.length;s++){let r=this.#e[s];typeof r=="object"&&(r.#d(),this.#p(r)?(n=!1,this.#g(r,s)):this.#_(r)?(n=!1,this.#y(r,s)):this.#E(r)&&(n=!1,this.#C(r)))}}while(!n&&++e<10)}else for(let e of this.#e)typeof e=="object"&&e.#d();this.#o=void 0}#m(e){return this.#e.map(n=>{if(typeof n=="string")throw new Error("string type in extglob ast??");let[s,r,i,o]=n.toRegExpSource(e);return this.#r=this.#r||o,s}).filter(n=>!(this.isStart()&&this.isEnd())||!!n).join("|")}static#v(e,n,s=!1){let r=!1,i="",o=!1,a=!1;for(let u=0;u<e.length;u++){let l=e.charAt(u);if(r){r=!1,i+=(Mm.has(l)?"\\":"")+l;continue}if(l==="*"){if(a)continue;a=!0,i+=s&&/^[*]+$/.test(e)?gc:pc,n=!0;continue}else a=!1;if(l==="\\"){u===e.length-1?i+="\\\\":r=!0;continue}if(l==="["){let[f,c,h,g]=(0,Sm.parseClass)(e,u);if(h){i+=f,o=o||c,u+=h-1,n=n||g;continue}}if(l==="?"){i+=vi,n=!0;continue}i+=Bm(l)}return[i,(0,$s.unescape)(e),!!n,o]}};Ts.AST=Ls;me=Ls});var Fi=v(ks=>{"use strict";p();Object.defineProperty(ks,"__esModule",{value:!0});ks.escape=void 0;var Im=(t,{windowsPathsNoEscape:e=!1,magicalBraces:n=!1}={})=>n?e?t.replace(/[?*()[\]{}]/g,"[$&]"):t.replace(/[?*()[\]\\{}]/g,"\\$&"):e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");ks.escape=Im});var Cc=v(x=>{"use strict";p();Object.defineProperty(x,"__esModule",{value:!0});x.unescape=x.escape=x.AST=x.Minimatch=x.match=x.makeRe=x.braceExpand=x.defaults=x.filter=x.GLOBSTAR=x.sep=x.minimatch=void 0;var Nm=uc(),Ms=cc(),_c=wi(),Hm=Fi(),Wm=Ps(),zm=(t,e,n={})=>((0,Ms.assertValidPattern)(e),!n.nocomment&&e.charAt(0)==="#"?!1:new mt(e,n).match(t));x.minimatch=zm;var Gm=/^\*+([^+@!?*[(]*)$/,Um=t=>e=>!e.startsWith(".")&&e.endsWith(t),Vm=t=>e=>e.endsWith(t),Km=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Jm=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),Xm=/^\*+\.\*+$/,Ym=t=>!t.startsWith(".")&&t.includes("."),Qm=t=>t!=="."&&t!==".."&&t.includes("."),Zm=/^\.\*+$/,eD=t=>t!=="."&&t!==".."&&t.startsWith("."),tD=/^\*+$/,nD=t=>t.length!==0&&!t.startsWith("."),sD=t=>t.length!==0&&t!=="."&&t!=="..",rD=/^\?+([^+@!?*[(]*)?$/,iD=([t,e=""])=>{let n=yc([t]);return e?(e=e.toLowerCase(),s=>n(s)&&s.toLowerCase().endsWith(e)):n},oD=([t,e=""])=>{let n=bc([t]);return e?(e=e.toLowerCase(),s=>n(s)&&s.toLowerCase().endsWith(e)):n},aD=([t,e=""])=>{let n=bc([t]);return e?s=>n(s)&&s.endsWith(e):n},uD=([t,e=""])=>{let n=yc([t]);return e?s=>n(s)&&s.endsWith(e):n},yc=([t])=>{let e=t.length;return n=>n.length===e&&!n.startsWith(".")},bc=([t])=>{let e=t.length;return n=>n.length===e&&n!=="."&&n!==".."},Ec=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",mc={win32:{sep:"\\"},posix:{sep:"/"}};x.sep=Ec==="win32"?mc.win32.sep:mc.posix.sep;x.minimatch.sep=x.sep;x.GLOBSTAR=Symbol("globstar **");x.minimatch.GLOBSTAR=x.GLOBSTAR;var cD="[^/]",lD=cD+"*?",fD="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",hD="(?:(?!(?:\\/|^)\\.).)*?",dD=(t,e={})=>n=>(0,x.minimatch)(n,t,e);x.filter=dD;x.minimatch.filter=x.filter;var Fe=(t,e={})=>Object.assign({},t,e),pD=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return x.minimatch;let e=x.minimatch;return Object.assign((s,r,i={})=>e(s,r,Fe(t,i)),{Minimatch:class extends e.Minimatch{constructor(r,i={}){super(r,Fe(t,i))}static defaults(r){return e.defaults(Fe(t,r)).Minimatch}},AST:class extends e.AST{constructor(r,i,o={}){super(r,i,Fe(t,o))}static fromGlob(r,i={}){return e.AST.fromGlob(r,Fe(t,i))}},unescape:(s,r={})=>e.unescape(s,Fe(t,r)),escape:(s,r={})=>e.escape(s,Fe(t,r)),filter:(s,r={})=>e.filter(s,Fe(t,r)),defaults:s=>e.defaults(Fe(t,s)),makeRe:(s,r={})=>e.makeRe(s,Fe(t,r)),braceExpand:(s,r={})=>e.braceExpand(s,Fe(t,r)),match:(s,r,i={})=>e.match(s,r,Fe(t,i)),sep:e.sep,GLOBSTAR:x.GLOBSTAR})};x.defaults=pD;x.minimatch.defaults=x.defaults;var gD=(t,e={})=>((0,Ms.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,Nm.expand)(t,{max:e.braceExpandMax}));x.braceExpand=gD;x.minimatch.braceExpand=x.braceExpand;var mD=(t,e={})=>new mt(t,e).makeRe();x.makeRe=mD;x.minimatch.makeRe=x.makeRe;var DD=(t,e,n={})=>{let s=new mt(e,n);return t=t.filter(r=>s.match(r)),s.options.nonull&&!t.length&&t.push(e),t};x.match=DD;x.minimatch.match=x.match;var Dc=/[?*]|[+@!]\(.*?\)|\[|\]/,_D=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),mt=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,n={}){(0,Ms.assertValidPattern)(e),n=n||{},this.options=n,this.maxGlobstarRecursion=n.maxGlobstarRecursion??200,this.pattern=e,this.platform=n.platform||Ec,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 e of this.set)for(let n of e)if(typeof n!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,n=this.options;if(!n.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],n.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,this.globSet);let s=this.globSet.map(i=>this.slashSplit(i));this.globParts=this.preprocess(s),this.debug(this.pattern,this.globParts);let r=this.globParts.map((i,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let u=i[0]===""&&i[1]===""&&(i[2]==="?"||!Dc.test(i[2]))&&!Dc.test(i[3]),l=/^[a-z]:/i.test(i[0]);if(u)return[...i.slice(0,4),...i.slice(4).map(f=>this.parse(f))];if(l)return[i[0],...i.slice(1).map(f=>this.parse(f))]}return i.map(u=>this.parse(u))});if(this.debug(this.pattern,r),this.set=r.filter(i=>i.indexOf(!1)===-1),this.isWindows)for(let i=0;i<this.set.length;i++){let o=this.set[i];o[0]===""&&o[1]===""&&this.globParts[i][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let s of e)for(let r=0;r<s.length;r++)s[r]==="**"&&(s[r]="*");let{optimizationLevel:n=1}=this.options;return n>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):n>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.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(e){return e.map(n=>(n=n.reduce((s,r)=>{let i=s[s.length-1];return r==="**"&&i==="**"?s:r===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(s.pop(),s):(s.push(r),s)},[]),n.length===0?[""]:n))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let n=!1;do{if(n=!1,!this.preserveMultipleSlashes){for(let r=1;r<e.length-1;r++){let i=e[r];r===1&&i===""&&e[0]===""||(i==="."||i==="")&&(n=!0,e.splice(r,1),r--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(n=!0,e.pop())}let s=0;for(;(s=e.indexOf("..",s+1))!==-1;){let r=e[s-1];r&&r!=="."&&r!==".."&&r!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(r))&&(n=!0,e.splice(s-1,2),s-=2)}}while(n);return e.length===0?[""]:e}firstPhasePreProcess(e){let n=!1;do{n=!1;for(let s of e){let r=-1;for(;(r=s.indexOf("**",r+1))!==-1;){let o=r;for(;s[o+1]==="**";)o++;o>r&&s.splice(r+1,o-r);let a=s[r+1],u=s[r+2],l=s[r+3];if(a!==".."||!u||u==="."||u===".."||!l||l==="."||l==="..")continue;n=!0,s.splice(r,1);let f=s.slice(0);f[r]="**",e.push(f),r--}if(!this.preserveMultipleSlashes){for(let o=1;o<s.length-1;o++){let a=s[o];o===1&&a===""&&s[0]===""||(a==="."||a==="")&&(n=!0,s.splice(o,1),o--)}s[0]==="."&&s.length===2&&(s[1]==="."||s[1]==="")&&(n=!0,s.pop())}let i=0;for(;(i=s.indexOf("..",i+1))!==-1;){let o=s[i-1];if(o&&o!=="."&&o!==".."&&o!=="**"){n=!0;let u=i===1&&s[i+1]==="**"?["."]:[];s.splice(i-1,2,...u),s.length===0&&s.push(""),i-=2}}}}while(n);return e}secondPhasePreProcess(e){for(let n=0;n<e.length-1;n++)for(let s=n+1;s<e.length;s++){let r=this.partsMatch(e[n],e[s],!this.preserveMultipleSlashes);if(r){e[n]=[],e[s]=r;break}}return e.filter(n=>n.length)}partsMatch(e,n,s=!1){let r=0,i=0,o=[],a="";for(;r<e.length&&i<n.length;)if(e[r]===n[i])o.push(a==="b"?n[i]:e[r]),r++,i++;else if(s&&e[r]==="**"&&n[i]===e[r+1])o.push(e[r]),r++;else if(s&&n[i]==="**"&&e[r]===n[i+1])o.push(n[i]),i++;else if(e[r]==="*"&&n[i]&&(this.options.dot||!n[i].startsWith("."))&&n[i]!=="**"){if(a==="b")return!1;a="a",o.push(e[r]),r++,i++}else if(n[i]==="*"&&e[r]&&(this.options.dot||!e[r].startsWith("."))&&e[r]!=="**"){if(a==="a")return!1;a="b",o.push(n[i]),r++,i++}else return!1;return e.length===n.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,n=!1,s=0;for(let r=0;r<e.length&&e.charAt(r)==="!";r++)n=!n,s++;s&&(this.pattern=e.slice(s)),this.negate=n}matchOne(e,n,s=!1){let r=0,i=0;if(this.isWindows){let a=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),u=!a&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),l=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),f=!l&&n[0]===""&&n[1]===""&&n[2]==="?"&&typeof n[3]=="string"&&/^[a-z]:$/i.test(n[3]),c=u?3:a?0:void 0,h=f?3:l?0:void 0;if(typeof c=="number"&&typeof h=="number"){let[g,d]=[e[c],n[h]];g.toLowerCase()===d.toLowerCase()&&(n[h]=g,i=h,r=c)}}let{optimizationLevel:o=1}=this.options;return o>=2&&(e=this.levelTwoFileOptimize(e)),n.includes(x.GLOBSTAR)?this.#n(e,n,s,r,i):this.#r(e,n,s,r,i)}#n(e,n,s,r,i){let o=n.indexOf(x.GLOBSTAR,i),a=n.lastIndexOf(x.GLOBSTAR),[u,l,f]=s?[n.slice(i,o),n.slice(o+1),[]]:[n.slice(i,o),n.slice(o+1,a),n.slice(a+1)];if(u.length){let D=e.slice(r,r+u.length);if(!this.#r(D,u,s,0,0))return!1;r+=u.length,i+=u.length}let c=0;if(f.length){if(f.length+r>e.length)return!1;let D=e.length-f.length;if(this.#r(e,f,s,D,0))c=f.length;else{if(e[e.length-1]!==""||r+f.length===e.length||(D--,!this.#r(e,f,s,D,0)))return!1;c=f.length+1}}if(!l.length){let D=!!c;for(let w=r;w<e.length-c;w++){let $=String(e[w]);if(D=!0,$==="."||$===".."||!this.options.dot&&$.startsWith("."))return!1}return s||D}let h=[[[],0]],g=h[0],d=0,m=[0];for(let D of l)D===x.GLOBSTAR?(m.push(d),g=[[],0],h.push(g)):(g[0].push(D),d++);let _=h.length-1,y=e.length-c;for(let D of h)D[1]=y-(m[_--]+D[0].length);return!!this.#s(e,h,r,0,s,0,!!c)}#s(e,n,s,r,i,o,a){let u=n[r];if(!u){for(let c=s;c<e.length;c++){a=!0;let h=e[c];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return a}let[l,f]=u;for(;s<=f;){if(this.#r(e.slice(0,s+l.length),l,i,s,0)&&o<this.maxGlobstarRecursion){let g=this.#s(e,n,s+l.length,r+1,i,o+1,a);if(g!==!1)return g}let h=e[s];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;s++}return i||null}#r(e,n,s,r,i){let o,a,u,l;for(o=r,a=i,l=e.length,u=n.length;o<l&&a<u;o++,a++){this.debug("matchOne loop");let f=n[a],c=e[o];if(this.debug(n,f,c),f===!1||f===x.GLOBSTAR)return!1;let h;if(typeof f=="string"?(h=c===f,this.debug("string match",f,c,h)):(h=f.test(c),this.debug("pattern match",f,c,h)),!h)return!1}if(o===l&&a===u)return!0;if(o===l)return s;if(a===u)return o===l-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return(0,x.braceExpand)(this.pattern,this.options)}parse(e){(0,Ms.assertValidPattern)(e);let n=this.options;if(e==="**")return x.GLOBSTAR;if(e==="")return"";let s,r=null;(s=e.match(tD))?r=n.dot?sD:nD:(s=e.match(Gm))?r=(n.nocase?n.dot?Jm:Km:n.dot?Vm:Um)(s[1]):(s=e.match(rD))?r=(n.nocase?n.dot?oD:iD:n.dot?aD:uD)(s):(s=e.match(Xm))?r=n.dot?Qm:Ym:(s=e.match(Zm))&&(r=eD);let i=_c.AST.fromGlob(e,this.options).toMMPattern();return r&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:r}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let n=this.options,s=n.noglobstar?lD:n.dot?fD:hD,r=new Set(n.nocase?["i"]:[]),i=e.map(u=>{let l=u.map(c=>{if(c instanceof RegExp)for(let h of c.flags.split(""))r.add(h);return typeof c=="string"?_D(c):c===x.GLOBSTAR?x.GLOBSTAR:c._src});l.forEach((c,h)=>{let g=l[h+1],d=l[h-1];c!==x.GLOBSTAR||d===x.GLOBSTAR||(d===void 0?g!==void 0&&g!==x.GLOBSTAR?l[h+1]="(?:\\/|"+s+"\\/)?"+g:l[h]=s:g===void 0?l[h-1]=d+"(?:\\/|\\/"+s+")?":g!==x.GLOBSTAR&&(l[h-1]=d+"(?:\\/|\\/"+s+"\\/)"+g,l[h+1]=x.GLOBSTAR))});let f=l.filter(c=>c!==x.GLOBSTAR);if(this.partial&&f.length>=1){let c=[];for(let h=1;h<=f.length;h++)c.push(f.slice(0,h).join("/"));return"(?:"+c.join("|")+")"}return f.join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.partial&&(i="^(?:\\/|"+o+i.slice(1,-1)+a+")$"),this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...r].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,n=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&n)return!0;let s=this.options;this.isWindows&&(e=e.split("\\").join("/"));let r=this.slashSplit(e);this.debug(this.pattern,"split",r);let i=this.set;this.debug(this.pattern,"set",i);let o=r[r.length-1];if(!o)for(let a=r.length-2;!o&&a>=0;a--)o=r[a];for(let a of i){let u=r;if(s.matchBase&&a.length===1&&(u=[o]),this.matchOne(u,a,n))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(e){return x.minimatch.defaults(e).Minimatch}};x.Minimatch=mt;var yD=wi();Object.defineProperty(x,"AST",{enumerable:!0,get:function(){return yD.AST}});var bD=Fi();Object.defineProperty(x,"escape",{enumerable:!0,get:function(){return bD.escape}});var ED=Ps();Object.defineProperty(x,"unescape",{enumerable:!0,get:function(){return ED.unescape}});x.minimatch.AST=_c.AST;x.minimatch.Minimatch=mt;x.minimatch.escape=Hm.escape;x.minimatch.unescape=Wm.unescape});var wn=v((zC,Oc)=>{"use strict";p();var vc="[^\\\\/]",CD="(?=.)",wc="[^/]",Ai="(?:\\/|$)",Fc="(?:^|\\/)",Oi=`\\.{1,2}${Ai}`,vD="(?!\\.)",wD=`(?!${Fc}${Oi})`,FD=`(?!\\.{0,1}${Ai})`,AD=`(?!${Oi})`,OD="[^.\\/]",xD=`${wc}*?`,SD="/",Ac={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:CD,QMARK:wc,END_ANCHOR:Ai,DOTS_SLASH:Oi,NO_DOT:vD,NO_DOTS:wD,NO_DOT_SLASH:FD,NO_DOTS_SLASH:AD,QMARK_NO_DOT:OD,STAR:xD,START_ANCHOR:Fc,SEP:SD},jD={...Ac,SLASH_LITERAL:"[\\\\/]",QMARK:vc,STAR:`${vc}*?`,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:"\\"},PD={__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"};Oc.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:PD,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(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?jD:Ac}}});var Fn=v(De=>{"use strict";p();var{REGEX_BACKSLASH:$D,REGEX_REMOVE_BACKSLASH:RD,REGEX_SPECIAL_CHARS:LD,REGEX_SPECIAL_CHARS_GLOBAL:TD}=wn();De.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);De.hasRegexChars=t=>LD.test(t);De.isRegexChar=t=>t.length===1&&De.hasRegexChars(t);De.escapeRegex=t=>t.replace(TD,"\\$1");De.toPosixSlashes=t=>t.replace($D,"/");De.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let t=navigator.platform.toLowerCase();return t==="win32"||t==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1};De.removeBackslashes=t=>t.replace(RD,e=>e==="\\"?"":e);De.escapeLast=(t,e,n)=>{let s=t.lastIndexOf(e,n);return s===-1?t:t[s-1]==="\\"?De.escapeLast(t,e,s-1):`${t.slice(0,s)}\\${t.slice(s)}`};De.removePrefix=(t,e={})=>{let n=t;return n.startsWith("./")&&(n=n.slice(2),e.prefix="./"),n};De.wrapOutput=(t,e={},n={})=>{let s=n.contains?"":"^",r=n.contains?"":"$",i=`${s}(?:${t})${r}`;return e.negated===!0&&(i=`(?:^(?!${i}).*$)`),i};De.basename=(t,{windows:e}={})=>{let n=t.split(e?/[\\/]/:"/"),s=n[n.length-1];return s===""?n[n.length-2]:s}});var Tc=v((KC,Lc)=>{"use strict";p();var xc=Fn(),{CHAR_ASTERISK:xi,CHAR_AT:kD,CHAR_BACKWARD_SLASH:An,CHAR_COMMA:MD,CHAR_DOT:Si,CHAR_EXCLAMATION_MARK:ji,CHAR_FORWARD_SLASH:Rc,CHAR_LEFT_CURLY_BRACE:Pi,CHAR_LEFT_PARENTHESES:$i,CHAR_LEFT_SQUARE_BRACKET:BD,CHAR_PLUS:qD,CHAR_QUESTION_MARK:Sc,CHAR_RIGHT_CURLY_BRACE:ID,CHAR_RIGHT_PARENTHESES:jc,CHAR_RIGHT_SQUARE_BRACKET:ND}=wn(),Pc=t=>t===Rc||t===An,$c=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},HD=(t,e)=>{let n=e||{},s=t.length-1,r=n.parts===!0||n.scanToEnd===!0,i=[],o=[],a=[],u=t,l=-1,f=0,c=0,h=!1,g=!1,d=!1,m=!1,_=!1,y=!1,D=!1,w=!1,$=!1,j=!1,T=0,B,R,L={value:"",depth:0,isGlob:!1},C=()=>l>=s,he=()=>u.charCodeAt(l+1),ee=()=>(B=R,u.charCodeAt(++l));for(;l<s;){R=ee();let W;if(R===An){D=L.backslashes=!0,R=ee(),R===Pi&&(y=!0);continue}if(y===!0||R===Pi){for(T++;C()!==!0&&(R=ee());){if(R===An){D=L.backslashes=!0,ee();continue}if(R===Pi){T++;continue}if(y!==!0&&R===Si&&(R=ee())===Si){if(h=L.isBrace=!0,d=L.isGlob=!0,j=!0,r===!0)continue;break}if(y!==!0&&R===MD){if(h=L.isBrace=!0,d=L.isGlob=!0,j=!0,r===!0)continue;break}if(R===ID&&(T--,T===0)){y=!1,h=L.isBrace=!0,j=!0;break}}if(r===!0)continue;break}if(R===Rc){if(i.push(l),o.push(L),L={value:"",depth:0,isGlob:!1},j===!0)continue;if(B===Si&&l===f+1){f+=2;continue}c=l+1;continue}if(n.noext!==!0&&(R===qD||R===kD||R===xi||R===Sc||R===ji)===!0&&he()===$i){if(d=L.isGlob=!0,m=L.isExtglob=!0,j=!0,R===ji&&l===f&&($=!0),r===!0){for(;C()!==!0&&(R=ee());){if(R===An){D=L.backslashes=!0,R=ee();continue}if(R===jc){d=L.isGlob=!0,j=!0;break}}continue}break}if(R===xi){if(B===xi&&(_=L.isGlobstar=!0),d=L.isGlob=!0,j=!0,r===!0)continue;break}if(R===Sc){if(d=L.isGlob=!0,j=!0,r===!0)continue;break}if(R===BD){for(;C()!==!0&&(W=ee());){if(W===An){D=L.backslashes=!0,ee();continue}if(W===ND){g=L.isBracket=!0,d=L.isGlob=!0,j=!0;break}}if(r===!0)continue;break}if(n.nonegate!==!0&&R===ji&&l===f){w=L.negated=!0,f++;continue}if(n.noparen!==!0&&R===$i){if(d=L.isGlob=!0,r===!0){for(;C()!==!0&&(R=ee());){if(R===$i){D=L.backslashes=!0,R=ee();continue}if(R===jc){j=!0;break}}continue}break}if(d===!0){if(j=!0,r===!0)continue;break}}n.noext===!0&&(m=!1,d=!1);let X=u,E="",b="";f>0&&(E=u.slice(0,f),u=u.slice(f),c-=f),X&&d===!0&&c>0?(X=u.slice(0,c),b=u.slice(c)):d===!0?(X="",b=u):X=u,X&&X!==""&&X!=="/"&&X!==u&&Pc(X.charCodeAt(X.length-1))&&(X=X.slice(0,-1)),n.unescape===!0&&(b&&(b=xc.removeBackslashes(b)),X&&D===!0&&(X=xc.removeBackslashes(X)));let Ee={prefix:E,input:t,start:f,base:X,glob:b,isBrace:h,isBracket:g,isGlob:d,isExtglob:m,isGlobstar:_,negated:w,negatedExtglob:$};if(n.tokens===!0&&(Ee.maxDepth=0,Pc(R)||o.push(L),Ee.tokens=o),n.parts===!0||n.tokens===!0){let W;for(let V=0;V<i.length;V++){let He=W?W+1:f,Ce=i[V],Je=t.slice(He,Ce);n.tokens&&(V===0&&f!==0?(o[V].isPrefix=!0,o[V].value=E):o[V].value=Je,$c(o[V]),Ee.maxDepth+=o[V].depth),(V!==0||Je!=="")&&a.push(Je),W=Ce}if(W&&W+1<t.length){let V=t.slice(W+1);a.push(V),n.tokens&&(o[o.length-1].value=V,$c(o[o.length-1]),Ee.maxDepth+=o[o.length-1].depth)}Ee.slashes=i,Ee.parts=a}return Ee};Lc.exports=HD});var Ic=v((XC,qc)=>{"use strict";p();var On=wn(),be=Fn(),{MAX_LENGTH:Bs,POSIX_REGEX_SOURCE:WD,REGEX_NON_SPECIAL_CHARS:zD,REGEX_SPECIAL_CHARS_BACKREF:GD,REPLACEMENTS:kc}=On,UD=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let n=`[${t.join("-")}]`;try{new RegExp(n)}catch{return t.map(r=>be.escapeRegex(r)).join("..")}return n},Gt=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Mc=t=>{let e=[],n=0,s=0,r=0,i="",o=!1;for(let a of t){if(o===!0){i+=a,o=!1;continue}if(a==="\\"){i+=a,o=!0;continue}if(a==='"'){r=r===1?0:1,i+=a;continue}if(r===0){if(a==="[")n++;else if(a==="]"&&n>0)n--;else if(n===0){if(a==="(")s++;else if(a===")"&&s>0)s--;else if(a==="|"&&s===0){e.push(i),i="";continue}}}i+=a}return e.push(i),e},VD=t=>{let e=!1;for(let n of t){if(e===!0){e=!1;continue}if(n==="\\"){e=!0;continue}if(/[?*+@!()[\]{}]/.test(n))return!1}return!0},Bc=t=>{let e=t.trim(),n=!0;for(;n===!0;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(e)&&(e=e.slice(2,-1),n=!0);if(VD(e))return e.replace(/\\(.)/g,"$1")},KD=t=>{let e=t.map(Bc).filter(Boolean);for(let n=0;n<e.length;n++)for(let s=n+1;s<e.length;s++){let r=e[n],i=e[s],o=r[0];if(!(!o||r!==o.repeat(r.length)||i!==o.repeat(i.length))&&(r===i||r.startsWith(i)||i.startsWith(r)))return!0}return!1},Ri=(t,e=!0)=>{if(t[0]!=="+"&&t[0]!=="*"||t[1]!=="(")return;let n=0,s=0,r=0,i=!1;for(let o=1;o<t.length;o++){let a=t[o];if(i===!0){i=!1;continue}if(a==="\\"){i=!0;continue}if(a==='"'){r=r===1?0:1;continue}if(r!==1){if(a==="["){n++;continue}if(a==="]"&&n>0){n--;continue}if(!(n>0)){if(a==="("){s++;continue}if(a===")"&&(s--,s===0))return e===!0&&o!==t.length-1?void 0:{type:t[0],body:t.slice(2,o),end:o}}}}},JD=t=>{let e=0,n=[];for(;e<t.length;){let r=Ri(t.slice(e),!1);if(!r||r.type!=="*")return;let i=Mc(r.body).map(a=>a.trim());if(i.length!==1)return;let o=Bc(i[0]);if(!o||o.length!==1)return;n.push(o),e+=r.end+1}return n.length<1?void 0:`${n.length===1?be.escapeRegex(n[0]):`[${n.map(r=>be.escapeRegex(r)).join("")}]`}*`},XD=t=>{let e=0,n=t.trim(),s=Ri(n);for(;s;)e++,n=s.body.trim(),s=Ri(n);return e},YD=(t,e)=>{if(e.maxExtglobRecursion===!1)return{risky:!1};let n=typeof e.maxExtglobRecursion=="number"?e.maxExtglobRecursion:On.DEFAULT_MAX_EXTGLOB_RECURSION,s=Mc(t).map(r=>r.trim());if(s.length>1&&(s.some(r=>r==="")||s.some(r=>/^[*?]+$/.test(r))||KD(s)))return{risky:!0};for(let r of s){let i=JD(r);if(i)return{risky:!0,safeOutput:i};if(XD(r)>n)return{risky:!0}}return{risky:!1}},Li=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=kc[t]||t;let n={...e},s=typeof n.maxLength=="number"?Math.min(Bs,n.maxLength):Bs,r=t.length;if(r>s)throw new SyntaxError(`Input length: ${r}, exceeds maximum allowed length: ${s}`);let i={type:"bos",value:"",output:n.prepend||""},o=[i],a=n.capture?"":"?:",u=On.globChars(n.windows),l=On.extglobChars(u),{DOT_LITERAL:f,PLUS_LITERAL:c,SLASH_LITERAL:h,ONE_CHAR:g,DOTS_SLASH:d,NO_DOT:m,NO_DOT_SLASH:_,NO_DOTS_SLASH:y,QMARK:D,QMARK_NO_DOT:w,STAR:$,START_ANCHOR:j}=u,T=A=>`(${a}(?:(?!${j}${A.dot?d:f}).)*?)`,B=n.dot?"":m,R=n.dot?D:w,L=n.bash===!0?T(n):$;n.capture&&(L=`(${L})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);let C={input:t,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:o};t=be.removePrefix(t,C),r=t.length;let he=[],ee=[],X=[],E=i,b,Ee=()=>C.index===r-1,W=C.peek=(A=1)=>t[C.index+A],V=C.advance=()=>t[++C.index]||"",He=()=>t.slice(C.index+1),Ce=(A="",U=0)=>{C.consumed+=A,C.index+=U},Je=A=>{C.output+=A.output!=null?A.output:A.value,Ce(A.value)},Ef=()=>{let A=1;for(;W()==="!"&&(W(2)!=="("||W(3)==="?");)V(),C.start++,A++;return A%2===0?!1:(C.negated=!0,C.start++,!0)},In=A=>{C[A]++,X.push(A)},Xe=A=>{C[A]--,X.pop()},k=A=>{if(E.type==="globstar"){let U=C.braces>0&&(A.type==="comma"||A.type==="brace"),F=A.extglob===!0||he.length&&(A.type==="pipe"||A.type==="paren");A.type!=="slash"&&A.type!=="paren"&&!U&&!F&&(C.output=C.output.slice(0,-E.output.length),E.type="star",E.value="*",E.output=L,C.output+=E.output)}if(he.length&&A.type!=="paren"&&(he[he.length-1].inner+=A.value),(A.value||A.output)&&Je(A),E&&E.type==="text"&&A.type==="text"){E.output=(E.output||E.value)+A.value,E.value+=A.value;return}A.prev=E,o.push(A),E=A},Nn=(A,U)=>{let F={...l[U],conditions:1,inner:""};F.prev=E,F.parens=C.parens,F.output=C.output,F.startIndex=C.index,F.tokensIndex=o.length;let M=(n.capture?"(":"")+F.open;In("parens"),k({type:A,value:U,output:C.output?"":g}),k({type:"paren",extglob:!0,value:V(),output:M}),he.push(F)},Cf=A=>{let U=t.slice(A.startIndex,C.index+1),F=t.slice(A.startIndex+2,C.index),M=YD(F,n);if((A.type==="plus"||A.type==="star")&&M.risky){let z=M.safeOutput?(A.output?"":g)+(n.capture?`(${M.safeOutput})`:M.safeOutput):void 0,Le=o[A.tokensIndex];Le.type="text",Le.value=U,Le.output=z||be.escapeRegex(U);for(let Te=A.tokensIndex+1;Te<o.length;Te++)o[Te].value="",o[Te].output="",delete o[Te].suffix;C.output=A.output+Le.output,C.backtrack=!0,k({type:"paren",extglob:!0,value:b,output:""}),Xe("parens");return}let G=A.close+(n.capture?")":""),se;if(A.type==="negate"){let z=L;if(A.inner&&A.inner.length>1&&A.inner.includes("/")&&(z=T(n)),(z!==L||Ee()||/^\)+$/.test(He()))&&(G=A.close=`)$))${z}`),A.inner.includes("*")&&(se=He())&&/^\.[^\\/.]+$/.test(se)){let Le=Li(se,{...e,fastpaths:!1}).output;G=A.close=`)${Le})${z})`}A.prev.type==="bos"&&(C.negatedExtglob=!0)}k({type:"paren",extglob:!0,value:b,output:G}),Xe("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let A=!1,U=t.replace(GD,(F,M,G,se,z,Le)=>se==="\\"?(A=!0,F):se==="?"?M?M+se+(z?D.repeat(z.length):""):Le===0?R+(z?D.repeat(z.length):""):D.repeat(G.length):se==="."?f.repeat(G.length):se==="*"?M?M+se+(z?L:""):L:M?F:`\\${F}`);return A===!0&&(n.unescape===!0?U=U.replace(/\\/g,""):U=U.replace(/\\+/g,F=>F.length%2===0?"\\\\":F?"\\":"")),U===t&&n.contains===!0?(C.output=t,C):(C.output=be.wrapOutput(U,C,e),C)}for(;!Ee();){if(b=V(),b==="\0")continue;if(b==="\\"){let F=W();if(F==="/"&&n.bash!==!0||F==="."||F===";")continue;if(!F){b+="\\",k({type:"text",value:b});continue}let M=/^\\+/.exec(He()),G=0;if(M&&M[0].length>2&&(G=M[0].length,C.index+=G,G%2!==0&&(b+="\\")),n.unescape===!0?b=V():b+=V(),C.brackets===0){k({type:"text",value:b});continue}}if(C.brackets>0&&(b!=="]"||E.value==="["||E.value==="[^")){if(n.posix!==!1&&b===":"){let F=E.value.slice(1);if(F.includes("[")&&(E.posix=!0,F.includes(":"))){let M=E.value.lastIndexOf("["),G=E.value.slice(0,M),se=E.value.slice(M+2),z=WD[se];if(z){E.value=G+z,C.backtrack=!0,V(),!i.output&&o.indexOf(E)===1&&(i.output=g);continue}}}(b==="["&&W()!==":"||b==="-"&&W()==="]")&&(b=`\\${b}`),b==="]"&&(E.value==="["||E.value==="[^")&&(b=`\\${b}`),n.posix===!0&&b==="!"&&E.value==="["&&(b="^"),E.value+=b,Je({value:b});continue}if(C.quotes===1&&b!=='"'){b=be.escapeRegex(b),E.value+=b,Je({value:b});continue}if(b==='"'){C.quotes=C.quotes===1?0:1,n.keepQuotes===!0&&k({type:"text",value:b});continue}if(b==="("){In("parens"),k({type:"paren",value:b});continue}if(b===")"){if(C.parens===0&&n.strictBrackets===!0)throw new SyntaxError(Gt("opening","("));let F=he[he.length-1];if(F&&C.parens===F.parens+1){Cf(he.pop());continue}k({type:"paren",value:b,output:C.parens?")":"\\)"}),Xe("parens");continue}if(b==="["){if(n.nobracket===!0||!He().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(Gt("closing","]"));b=`\\${b}`}else In("brackets");k({type:"bracket",value:b});continue}if(b==="]"){if(n.nobracket===!0||E&&E.type==="bracket"&&E.value.length===1){k({type:"text",value:b,output:`\\${b}`});continue}if(C.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(Gt("opening","["));k({type:"text",value:b,output:`\\${b}`});continue}Xe("brackets");let F=E.value.slice(1);if(E.posix!==!0&&F[0]==="^"&&!F.includes("/")&&(b=`/${b}`),E.value+=b,Je({value:b}),n.literalBrackets===!1||be.hasRegexChars(F))continue;let M=be.escapeRegex(E.value);if(C.output=C.output.slice(0,-E.value.length),n.literalBrackets===!0){C.output+=M,E.value=M;continue}E.value=`(${a}${M}|${E.value})`,C.output+=E.value;continue}if(b==="{"&&n.nobrace!==!0){In("braces");let F={type:"brace",value:b,output:"(",outputIndex:C.output.length,tokensIndex:C.tokens.length};ee.push(F),k(F);continue}if(b==="}"){let F=ee[ee.length-1];if(n.nobrace===!0||!F){k({type:"text",value:b,output:b});continue}let M=")";if(F.dots===!0){let G=o.slice(),se=[];for(let z=G.length-1;z>=0&&(o.pop(),G[z].type!=="brace");z--)G[z].type!=="dots"&&se.unshift(G[z].value);M=UD(se,n),C.backtrack=!0}if(F.comma!==!0&&F.dots!==!0){let G=C.output.slice(0,F.outputIndex),se=C.tokens.slice(F.tokensIndex);F.value=F.output="\\{",b=M="\\}",C.output=G;for(let z of se)C.output+=z.output||z.value}k({type:"brace",value:b,output:M}),Xe("braces"),ee.pop();continue}if(b==="|"){he.length>0&&he[he.length-1].conditions++,k({type:"text",value:b});continue}if(b===","){let F=b,M=ee[ee.length-1];M&&X[X.length-1]==="braces"&&(M.comma=!0,F="|"),k({type:"comma",value:b,output:F});continue}if(b==="/"){if(E.type==="dot"&&C.index===C.start+1){C.start=C.index+1,C.consumed="",C.output="",o.pop(),E=i;continue}k({type:"slash",value:b,output:h});continue}if(b==="."){if(C.braces>0&&E.type==="dot"){E.value==="."&&(E.output=f);let F=ee[ee.length-1];E.type="dots",E.output+=b,E.value+=b,F.dots=!0;continue}if(C.braces+C.parens===0&&E.type!=="bos"&&E.type!=="slash"){k({type:"text",value:b,output:f});continue}k({type:"dot",value:b,output:f});continue}if(b==="?"){if(!(E&&E.value==="(")&&n.noextglob!==!0&&W()==="("&&W(2)!=="?"){Nn("qmark",b);continue}if(E&&E.type==="paren"){let M=W(),G=b;(E.value==="("&&!/[!=<:]/.test(M)||M==="<"&&!/<([!=]|\w+>)/.test(He()))&&(G=`\\${b}`),k({type:"text",value:b,output:G});continue}if(n.dot!==!0&&(E.type==="slash"||E.type==="bos")){k({type:"qmark",value:b,output:w});continue}k({type:"qmark",value:b,output:D});continue}if(b==="!"){if(n.noextglob!==!0&&W()==="("&&(W(2)!=="?"||!/[!=<:]/.test(W(3)))){Nn("negate",b);continue}if(n.nonegate!==!0&&C.index===0){Ef();continue}}if(b==="+"){if(n.noextglob!==!0&&W()==="("&&W(2)!=="?"){Nn("plus",b);continue}if(E&&E.value==="("||n.regex===!1){k({type:"plus",value:b,output:c});continue}if(E&&(E.type==="bracket"||E.type==="paren"||E.type==="brace")||C.parens>0){k({type:"plus",value:b});continue}k({type:"plus",value:c});continue}if(b==="@"){if(n.noextglob!==!0&&W()==="("&&W(2)!=="?"){k({type:"at",extglob:!0,value:b,output:""});continue}k({type:"text",value:b});continue}if(b!=="*"){(b==="$"||b==="^")&&(b=`\\${b}`);let F=zD.exec(He());F&&(b+=F[0],C.index+=F[0].length),k({type:"text",value:b});continue}if(E&&(E.type==="globstar"||E.star===!0)){E.type="star",E.star=!0,E.value+=b,E.output=L,C.backtrack=!0,C.globstar=!0,Ce(b);continue}let A=He();if(n.noextglob!==!0&&/^\([^?]/.test(A)){Nn("star",b);continue}if(E.type==="star"){if(n.noglobstar===!0){Ce(b);continue}let F=E.prev,M=F.prev,G=F.type==="slash"||F.type==="bos",se=M&&(M.type==="star"||M.type==="globstar");if(n.bash===!0&&(!G||A[0]&&A[0]!=="/")){k({type:"star",value:b,output:""});continue}let z=C.braces>0&&(F.type==="comma"||F.type==="brace"),Le=he.length&&(F.type==="pipe"||F.type==="paren");if(!G&&F.type!=="paren"&&!z&&!Le){k({type:"star",value:b,output:""});continue}for(;A.slice(0,3)==="/**";){let Te=t[C.index+4];if(Te&&Te!=="/")break;A=A.slice(3),Ce("/**",3)}if(F.type==="bos"&&Ee()){E.type="globstar",E.value+=b,E.output=T(n),C.output=E.output,C.globstar=!0,Ce(b);continue}if(F.type==="slash"&&F.prev.type!=="bos"&&!se&&Ee()){C.output=C.output.slice(0,-(F.output+E.output).length),F.output=`(?:${F.output}`,E.type="globstar",E.output=T(n)+(n.strictSlashes?")":"|$)"),E.value+=b,C.globstar=!0,C.output+=F.output+E.output,Ce(b);continue}if(F.type==="slash"&&F.prev.type!=="bos"&&A[0]==="/"){let Te=A[1]!==void 0?"|$":"";C.output=C.output.slice(0,-(F.output+E.output).length),F.output=`(?:${F.output}`,E.type="globstar",E.output=`${T(n)}${h}|${h}${Te})`,E.value+=b,C.output+=F.output+E.output,C.globstar=!0,Ce(b+V()),k({type:"slash",value:"/",output:""});continue}if(F.type==="bos"&&A[0]==="/"){E.type="globstar",E.value+=b,E.output=`(?:^|${h}|${T(n)}${h})`,C.output=E.output,C.globstar=!0,Ce(b+V()),k({type:"slash",value:"/",output:""});continue}C.output=C.output.slice(0,-E.output.length),E.type="globstar",E.output=T(n),E.value+=b,C.output+=E.output,C.globstar=!0,Ce(b);continue}let U={type:"star",value:b,output:L};if(n.bash===!0){U.output=".*?",(E.type==="bos"||E.type==="slash")&&(U.output=B+U.output),k(U);continue}if(E&&(E.type==="bracket"||E.type==="paren")&&n.regex===!0){U.output=b,k(U);continue}(C.index===C.start||E.type==="slash"||E.type==="dot")&&(E.type==="dot"?(C.output+=_,E.output+=_):n.dot===!0?(C.output+=y,E.output+=y):(C.output+=B,E.output+=B),W()!=="*"&&(C.output+=g,E.output+=g)),k(U)}for(;C.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(Gt("closing","]"));C.output=be.escapeLast(C.output,"["),Xe("brackets")}for(;C.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(Gt("closing",")"));C.output=be.escapeLast(C.output,"("),Xe("parens")}for(;C.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(Gt("closing","}"));C.output=be.escapeLast(C.output,"{"),Xe("braces")}if(n.strictSlashes!==!0&&(E.type==="star"||E.type==="bracket")&&k({type:"maybe_slash",value:"",output:`${h}?`}),C.backtrack===!0){C.output="";for(let A of C.tokens)C.output+=A.output!=null?A.output:A.value,A.suffix&&(C.output+=A.suffix)}return C};Li.fastpaths=(t,e)=>{let n={...e},s=typeof n.maxLength=="number"?Math.min(Bs,n.maxLength):Bs,r=t.length;if(r>s)throw new SyntaxError(`Input length: ${r}, exceeds maximum allowed length: ${s}`);t=kc[t]||t;let{DOT_LITERAL:i,SLASH_LITERAL:o,ONE_CHAR:a,DOTS_SLASH:u,NO_DOT:l,NO_DOTS:f,NO_DOTS_SLASH:c,STAR:h,START_ANCHOR:g}=On.globChars(n.windows),d=n.dot?f:l,m=n.dot?c:l,_=n.capture?"":"?:",y={negated:!1,prefix:""},D=n.bash===!0?".*?":h;n.capture&&(D=`(${D})`);let w=B=>B.noglobstar===!0?D:`(${_}(?:(?!${g}${B.dot?u:i}).)*?)`,$=B=>{switch(B){case"*":return`${d}${a}${D}`;case".*":return`${i}${a}${D}`;case"*.*":return`${d}${D}${i}${a}${D}`;case"*/*":return`${d}${D}${o}${a}${m}${D}`;case"**":return d+w(n);case"**/*":return`(?:${d}${w(n)}${o})?${m}${a}${D}`;case"**/*.*":return`(?:${d}${w(n)}${o})?${m}${D}${i}${a}${D}`;case"**/.*":return`(?:${d}${w(n)}${o})?${i}${a}${D}`;default:{let R=/^(.*?)\.(\w+)$/.exec(B);if(!R)return;let L=$(R[1]);return L?L+i+R[2]:void 0}}},j=be.removePrefix(t,y),T=$(j);return T&&n.strictSlashes!==!0&&(T+=`${o}?`),T};qc.exports=Li});var Wc=v((QC,Hc)=>{"use strict";p();var QD=Tc(),Ti=Ic(),Nc=Fn(),ZD=wn(),e0=t=>t&&typeof t=="object"&&!Array.isArray(t),Z=(t,e,n=!1)=>{if(Array.isArray(t)){let f=t.map(h=>Z(h,e,n));return h=>{for(let g of f){let d=g(h);if(d)return d}return!1}}let s=e0(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!s)throw new TypeError("Expected pattern to be a non-empty string");let r=e||{},i=r.windows,o=s?Z.compileRe(t,e):Z.makeRe(t,e,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(r.ignore){let f={...e,ignore:null,onMatch:null,onResult:null};u=Z(r.ignore,f,n)}let l=(f,c=!1)=>{let{isMatch:h,match:g,output:d}=Z.test(f,o,e,{glob:t,posix:i}),m={glob:t,state:a,regex:o,posix:i,input:f,output:d,match:g,isMatch:h};return typeof r.onResult=="function"&&r.onResult(m),h===!1?(m.isMatch=!1,c?m:!1):u(f)?(typeof r.onIgnore=="function"&&r.onIgnore(m),m.isMatch=!1,c?m:!1):(typeof r.onMatch=="function"&&r.onMatch(m),c?m:!0)};return n&&(l.state=a),l};Z.test=(t,e,n,{glob:s,posix:r}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let i=n||{},o=i.format||(r?Nc.toPosixSlashes:null),a=t===s,u=a&&o?o(t):t;return a===!1&&(u=o?o(t):t,a=u===s),(a===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?a=Z.matchBase(t,e,n,r):a=e.exec(u)),{isMatch:!!a,match:a,output:u}};Z.matchBase=(t,e,n)=>(e instanceof RegExp?e:Z.makeRe(e,n)).test(Nc.basename(t));Z.isMatch=(t,e,n)=>Z(e,n)(t);Z.parse=(t,e)=>Array.isArray(t)?t.map(n=>Z.parse(n,e)):Ti(t,{...e,fastpaths:!1});Z.scan=(t,e)=>QD(t,e);Z.compileRe=(t,e,n=!1,s=!1)=>{if(n===!0)return t.output;let r=e||{},i=r.contains?"":"^",o=r.contains?"":"$",a=`${i}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let u=Z.toRegex(a,e);return s===!0&&(u.state=t),u};Z.makeRe=(t,e={},n=!1,s=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let r={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(r.output=Ti.fastpaths(t,e)),r.output||(r=Ti(t,e)),Z.compileRe(r,e,n,s)};Z.toRegex=(t,e)=>{try{let n=e||{};return new RegExp(t,n.flags||(n.nocase?"i":""))}catch(n){if(e&&e.debug===!0)throw n;return/$^/}};Z.constants=ZD;Hc.exports=Z});var ki=v((ev,Uc)=>{"use strict";p();var zc=Wc(),t0=Fn();function Gc(t,e,n=!1){return e&&(e.windows===null||e.windows===void 0)&&(e={...e,windows:t0.isWindows()}),zc(t,e,n)}Object.assign(Gc,zc);Uc.exports=Gc});var rl=v(sl=>{p();var n0=Object.create,Kc=Object.defineProperty,s0=Object.getOwnPropertyDescriptor,r0=Object.getOwnPropertyNames,i0=Object.getPrototypeOf,o0=Object.prototype.hasOwnProperty,a0=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(var r=r0(e),i=0,o=r.length,a;i<o;i++)a=r[i],!o0.call(t,a)&&a!==n&&Kc(t,a,{get:(u=>e[u]).bind(null,a),enumerable:!(s=s0(e,a))||s.enumerable});return t},Jc=(t,e,n)=>(n=t!=null?n0(i0(t)):{},a0(e||!t||!t.__esModule?Kc(n,"default",{value:t,enumerable:!0}):n,t)),Ve=Jc(O("path")),u0=Jc(O("fs"));function c0(t){let e=(0,Ve.normalize)(t);return e.length>1&&e[e.length-1]===Ve.sep&&(e=e.substring(0,e.length-1)),e}var l0=/[\\/]/g;function Xc(t,e){return t.replace(l0,e)}var f0=/^[a-z]:[\\/]$/i;function h0(t){return t==="/"||f0.test(t)}function Mi(t,e){let{resolvePaths:n,normalizePath:s,pathSeparator:r}=e,i=process.platform==="win32"&&t.includes("/")||t.startsWith(".");if(n&&(t=(0,Ve.resolve)(t)),(s||i)&&(t=c0(t)),t===".")return"";let o=t[t.length-1]!==r;return Xc(o?t+r:t,r)}function Yc(t,e){return e+t}function d0(t,e){return function(n,s){return s.startsWith(t)?s.slice(t.length)+n:Xc((0,Ve.relative)(t,s),e.pathSeparator)+e.pathSeparator+n}}function p0(t){return t}function g0(t,e,n){return e+t+n}function m0(t,e){let{relativePaths:n,includeBasePath:s}=e;return n&&t?d0(t,e):s?Yc:p0}function D0(t){return function(e,n){n.push(e.substring(t.length)||".")}}function _0(t){return function(e,n,s){let r=e.substring(t.length)||".";s.every(i=>i(r,!0))&&n.push(r)}}var y0=(t,e)=>{e.push(t||".")},b0=(t,e,n)=>{let s=t||".";n.every(r=>r(s,!0))&&e.push(s)},E0=()=>{};function C0(t,e){let{includeDirs:n,filters:s,relativePaths:r}=e;return n?r?s&&s.length?_0(t):D0(t):s&&s.length?b0:y0:E0}var v0=(t,e,n,s)=>{s.every(r=>r(t,!1))&&n.files++},w0=(t,e,n,s)=>{s.every(r=>r(t,!1))&&e.push(t)},F0=(t,e,n,s)=>{n.files++},A0=(t,e)=>{e.push(t)},O0=()=>{};function x0(t){let{excludeFiles:e,filters:n,onlyCounts:s}=t;return e?O0:n&&n.length?s?v0:w0:s?F0:A0}var S0=t=>t,j0=()=>[""].slice(0,0);function P0(t){return t.group?j0:S0}var $0=(t,e,n)=>{t.push({directory:e,files:n,dir:e})},R0=()=>{};function L0(t){return t.group?$0:R0}var T0=function(t,e,n){let{queue:s,fs:r,options:{suppressErrors:i}}=e;s.enqueue(),r.realpath(t,(o,a)=>{if(o)return s.dequeue(i?null:o,e);r.stat(a,(u,l)=>{if(u)return s.dequeue(i?null:u,e);if(l.isDirectory()&&Qc(t,a,e))return s.dequeue(null,e);n(l,a),s.dequeue(null,e)})})},k0=function(t,e,n){let{queue:s,fs:r,options:{suppressErrors:i}}=e;s.enqueue();try{let o=r.realpathSync(t),a=r.statSync(o);if(a.isDirectory()&&Qc(t,o,e))return;n(a,o)}catch(o){if(!i)throw o}};function M0(t,e){return!t.resolveSymlinks||t.excludeSymlinks?null:e?k0:T0}function Qc(t,e,n){if(n.options.useRealPaths)return B0(e,n);let s=(0,Ve.dirname)(t),r=1;for(;s!==n.root&&r<2;){let i=n.symlinks.get(s);!!i&&(i===e||i.startsWith(e)||e.startsWith(i))?r++:s=(0,Ve.dirname)(s)}return n.symlinks.set(t,e),r>1}function B0(t,e){return e.visited.includes(t+e.options.pathSeparator)}var q0=t=>t.counts,I0=t=>t.groups,N0=t=>t.paths,H0=t=>t.paths.slice(0,t.options.maxFiles),W0=(t,e,n)=>(qs(e,n,t.counts,t.options.suppressErrors),null),z0=(t,e,n)=>(qs(e,n,t.paths,t.options.suppressErrors),null),G0=(t,e,n)=>(qs(e,n,t.paths.slice(0,t.options.maxFiles),t.options.suppressErrors),null),U0=(t,e,n)=>(qs(e,n,t.groups,t.options.suppressErrors),null);function qs(t,e,n,s){e(t&&!s?t:null,n)}function V0(t,e){let{onlyCounts:n,group:s,maxFiles:r}=t;return n?e?q0:W0:s?e?I0:U0:r?e?H0:G0:e?N0:z0}var Zc={withFileTypes:!0},K0=(t,e,n,s,r)=>{if(t.queue.enqueue(),s<0)return t.queue.dequeue(null,t);let{fs:i}=t;t.visited.push(e),t.counts.directories++,i.readdir(e||".",Zc,(o,a=[])=>{r(a,n,s),t.queue.dequeue(t.options.suppressErrors?null:o,t)})},J0=(t,e,n,s,r)=>{let{fs:i}=t;if(s<0)return;t.visited.push(e),t.counts.directories++;let o=[];try{o=i.readdirSync(e||".",Zc)}catch(a){if(!t.options.suppressErrors)throw a}r(o,n,s)};function X0(t){return t?J0:K0}var Y0=class{count=0;constructor(t){this.onQueueEmpty=t}enqueue(){return this.count++,this.count}dequeue(t,e){this.onQueueEmpty&&(--this.count<=0||t)&&(this.onQueueEmpty(t,e),t&&(e.controller.abort(),this.onQueueEmpty=void 0))}},Q0=class{_files=0;_directories=0;set files(t){this._files=t}get files(){return this._files}set directories(t){this._directories=t}get directories(){return this._directories}get dirs(){return this._directories}},Z0=class{aborted=!1;abort(){this.aborted=!0}},el=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(t,e,n){this.isSynchronous=!n,this.callbackInvoker=V0(e,this.isSynchronous),this.root=Mi(t,e),this.state={root:h0(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new Q0,options:e,queue:new Y0((s,r)=>this.callbackInvoker(r,s,n)),symlinks:new Map,visited:[""].slice(0,0),controller:new Z0,fs:e.fs||u0},this.joinPath=m0(this.root,e),this.pushDirectory=C0(this.root,e),this.pushFile=x0(e),this.getArray=P0(e),this.groupFiles=L0(e),this.resolveSymlink=M0(e,this.isSynchronous),this.walkDirectory=X0(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=(t,e,n)=>{let{paths:s,options:{filters:r,resolveSymlinks:i,excludeSymlinks:o,exclude:a,maxFiles:u,signal:l,useRealPaths:f,pathSeparator:c},controller:h}=this.state;if(h.aborted||l&&l.aborted||u&&s.length>u)return;let g=this.getArray(this.state.paths);for(let d=0;d<t.length;++d){let m=t[d];if(m.isFile()||m.isSymbolicLink()&&!i&&!o){let _=this.joinPath(m.name,e);this.pushFile(_,g,this.state.counts,r)}else if(m.isDirectory()){let _=g0(m.name,e,this.state.options.pathSeparator);if(a&&a(m.name,_))continue;this.pushDirectory(_,s,r),this.walkDirectory(this.state,_,_,n-1,this.walk)}else if(this.resolveSymlink&&m.isSymbolicLink()){let _=Yc(m.name,e);this.resolveSymlink(_,this.state,(y,D)=>{if(y.isDirectory()){if(D=Mi(D,this.state.options),a&&a(m.name,f?D:_+c))return;this.walkDirectory(this.state,D,f?D:_+c,n-1,this.walk)}else{D=f?D:_;let w=(0,Ve.basename)(D),$=Mi((0,Ve.dirname)(D),this.state.options);D=this.joinPath(w,$),this.pushFile(D,g,this.state.counts,r)}})}}this.groupFiles(this.state.groups,e,g)}};function e_(t,e){return new Promise((n,s)=>{tl(t,e,(r,i)=>{if(r)return s(r);n(i)})})}function tl(t,e,n){new el(t,e,n).start()}function t_(t,e){return new el(t,e).start()}var Vc=class{constructor(t,e){this.root=t,this.options=e}withPromise(){return e_(this.root,this.options)}withCallback(t){tl(this.root,this.options,t)}sync(){return t_(this.root,this.options)}},nl=null;try{O.resolve("picomatch"),nl=ki()}catch{}var n_=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:Ve.sep,filters:[]};globFunction;constructor(t){this.options={...this.options,...t},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(t){return this.options.pathSeparator=t,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(t){return this.options.maxDepth=t,this}withMaxFiles(t){return this.options.maxFiles=t,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:t=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=t,this.withFullPaths()}withAbortSignal(t){return this.options.signal=t,this}normalize(){return this.options.normalizePath=!0,this}filter(t){return this.options.filters.push(t),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(t){return this.options.exclude=t,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(t){return new Vc(t||".",this.options)}withGlobFunction(t){return this.globFunction=t,this}crawlWithOptions(t,e){return this.options={...this.options,...e},new Vc(t||".",this.options)}glob(...t){return this.globFunction?this.globWithOptions(t):this.globWithOptions(t,{dot:!0})}globWithOptions(t,...e){let n=this.globFunction||nl;if(!n)throw new Error("Please specify a glob function to use glob matching.");var s=this.globCache[t.join("\0")];return s||(s=n(t,...e),this.globCache[t.join("\0")]=s),this.options.filters.push(r=>s(r)),this}};sl.fdir=n_});var ml=v(_t=>{p();Object.defineProperty(_t,Symbol.toStringTag,{value:"Module"});var s_=Object.create,ol=Object.defineProperty,r_=Object.getOwnPropertyDescriptor,i_=Object.getOwnPropertyNames,o_=Object.getPrototypeOf,a_=Object.prototype.hasOwnProperty,u_=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(var r=i_(e),i=0,o=r.length,a;i<o;i++)a=r[i],!a_.call(t,a)&&a!==n&&ol(t,a,{get:(u=>e[u]).bind(null,a),enumerable:!(s=r_(e,a))||s.enumerable});return t},c_=(t,e,n)=>(n=t!=null?s_(o_(t)):{},u_(e||!t||!t.__esModule?ol(n,"default",{value:t,enumerable:!0}):n,t)),Ut=O("fs"),Ke=O("path"),l_=O("url"),f_=rl(),Dt=ki();Dt=c_(Dt);var h_=Array.isArray,al=/\\/g,qi=process.platform==="win32",d_=/^(\/?\.\.)+$/;function p_(t,e={}){let n=t.length,s=Array(n),r=Array(n),i,o;for(i=0;i<n;i++){let a=ul(t[i]);s[i]=a;let u=a.length,l=Array(u);for(o=0;o<u;o++)l[o]=(0,Dt.default)(a[o],e);r[i]=l}return a=>{let u=a.split("/");if(u[0]===".."&&d_.test(a))return!0;for(i=0;i<n;i++){let l=s[i],f=r[i],c=u.length,h=Math.min(c,l.length);for(o=0;o<h;){let g=l[o];if(g.includes("/"))return!0;if(!f[o](u[o]))break;if(!e.noglobstar&&g==="**")return!0;o++}if(o===c)return!0}return!1}}var g_=/^[A-Z]:\/$/i,m_=qi?t=>g_.test(t):t=>t==="/";function il(t,e,n){if(t===e||e.startsWith(`${t}/`)){if(n){let r=t.length+ +!m_(t);return(i,o)=>i.slice(r,o?-1:void 0)||"."}let s=e.slice(t.length+1);return s?(r,i)=>{if(r===".")return s;let o=`${s}/${r}`;return i?o.slice(0,-1):o}:(r,i)=>i&&r!=="."?r.slice(0,-1):r}return n?s=>Ke.posix.relative(t,s)||".":s=>Ke.posix.relative(t,`${e}/${s}`)||"."}function D_(t,e){if(e.startsWith(`${t}/`)){let n=e.slice(t.length+1);return s=>`${n}/${s}`}return n=>{let s=Ke.posix.relative(t,`${e}/${n}`);return n[n.length-1]==="/"&&s!==""?`${s}/`:s||"."}}var __={parts:!0};function ul(t){var e;let n=Dt.default.scan(t,__);return!((e=n.parts)===null||e===void 0)&&e.length?n.parts:[t]}var y_=/\\(?![()[\]{}!+@])/g;function b_(t){return cl(t)}function E_(t){return ll(t).replace(y_,"/")}var C_=qi?E_:b_,v_=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,w_=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,cl=t=>t.replace(v_,"\\$&"),ll=t=>t.replace(w_,"\\$&"),fl=qi?ll:cl;function hl(t,e){if(e?.caseSensitiveMatch===!1)return!0;let n=Dt.default.scan(t);return n.isGlob||n.negated}function xn(...t){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...t)}function dl(t){return typeof t=="string"?[t]:t??[]}var F_=/^(\/?\.\.)+/,A_=/\\(?=[()[\]{}!*+?@|])/g;function Bi(t,e,n,s){var r;let i=e.cwd,o=t;t[t.length-1]==="/"&&(o=t.slice(0,-1)),o[o.length-1]!=="*"&&e.expandDirectories&&(o+="/**");let a=fl(i);o=(0,Ke.isAbsolute)(o.replace(A_,""))?Ke.posix.relative(a,o):Ke.posix.normalize(o);let u=(r=F_.exec(o))===null||r===void 0?void 0:r[0],l=ul(o);if(u){let c=(u.length+1)/3,h=0,g=a.split("/");for(;h<c&&l[h+c]===g[g.length+h-c];)o=o.slice(0,(c-h-1)*3)+o.slice((c-h)*3+l[h+c].length+1)||".",h++;let d=Ke.posix.join(i,u.slice(h*3));d[0]!=="."&&n.root.length>d.length&&(n.root=d,n.depthOffset=-c+h)}if(!s&&n.depthOffset>=0){var f;(f=n.commonPath)!==null&&f!==void 0||(n.commonPath=l);let c=[],h=Math.min(n.commonPath.length,l.length);for(let g=0;g<h;g++){let d=l[g];if(d==="**"&&!l[g+1]){c.pop();break}if(g===l.length-1||d!==n.commonPath[g]||hl(d))break;c.push(d)}n.depthOffset=c.length,n.commonPath=c,n.root=c.length>0?Ke.posix.join(i,...c):i}return o}function O_(t,e,n){let s=[],r=[];for(let i of t.ignore)i&&(i[0]!=="!"||i[1]==="(")&&r.push(Bi(i,t,n,!0));for(let i of e)i&&(i[0]!=="!"||i[1]==="("?s.push(Bi(i,t,n,!1)):(i[1]!=="!"||i[2]==="(")&&r.push(Bi(i.slice(1),t,n,!0)));return{match:s,ignore:r}}function x_(t,e){let n=t.cwd,s={root:n,depthOffset:0},r=O_(t,e,s);t.debug&&xn("internal processing patterns:",r);let{absolute:i,caseSensitiveMatch:o,debug:a,dot:u,followSymbolicLinks:l,onlyDirectories:f}=t,c=s.root.replace(al,""),h={dot:u,nobrace:t.braceExpansion===!1,nocase:!o,noextglob:t.extglob===!1,noglobstar:t.globstar===!1,posix:!0},g=(0,Dt.default)(r.match,h),d=(0,Dt.default)(r.ignore,h),m=p_(r.match,h),_=il(n,c,i),y=i?_:il(n,c,!0),D=(j,T)=>{let B=y(T,!0);return B!=="."&&!m(B)||d(B)},w;t.deep!==void 0&&(w=Math.round(t.deep-s.depthOffset));let $=new f_.fdir({filters:[a?(j,T)=>{let B=_(j,T),R=g(B)&&!d(B);return R&&xn(`matched ${B}`),R}:(j,T)=>{let B=_(j,T);return g(B)&&!d(B)}],exclude:a?(j,T)=>{let B=D(j,T);return xn(`${B?"skipped":"crawling"} ${T}`),B}:D,fs:t.fs,pathSeparator:"/",relativePaths:!i,resolvePaths:i,includeBasePath:i,resolveSymlinks:l,excludeSymlinks:!l,excludeFiles:f,includeDirs:f||!t.onlyFiles,maxDepth:w,signal:t.signal}).crawl(c);return t.debug&&xn("internal properties:",{...s,root:c}),[$,n!==c&&!i&&D_(n,c)]}function pl(t,e){if(e)for(let n=t.length-1;n>=0;n--)t[n]=e(t[n]);return t}var S_={caseSensitiveMatch:!0,cwd:process.cwd(),debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function j_(t){let e={...S_,...t};return e.cwd=(e.cwd instanceof URL?(0,l_.fileURLToPath)(e.cwd):(0,Ke.resolve)(e.cwd)).replace(al,"/"),e.ignore=dl(e.ignore),e.fs&&(e.fs={readdir:e.fs.readdir||Ut.readdir,readdirSync:e.fs.readdirSync||Ut.readdirSync,realpath:e.fs.realpath||Ut.realpath,realpathSync:e.fs.realpathSync||Ut.realpathSync,stat:e.fs.stat||Ut.stat,statSync:e.fs.statSync||Ut.statSync}),e.debug&&xn("globbing with options:",e),e}function gl(t,e={}){var n;if(t&&e?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");let s=h_(t)||typeof t=="string",r=dl((n=s?t:t.patterns)!==null&&n!==void 0?n:"**/*"),i=j_(s?e:t);return r.length>0?x_(i,r):[]}async function P_(t,e){let[n,s]=gl(t,e);return n?pl(await n.withPromise(),s):[]}function $_(t,e){let[n,s]=gl(t,e);return n?pl(n.sync(),s):[]}_t.convertPathToPattern=C_;_t.escapePath=fl;_t.glob=P_;_t.globSync=$_;_t.isDynamicPattern=hl});var Ni=v(oe=>{"use strict";p();Object.defineProperty(oe,"__esModule",{value:!0});oe.help=oe.version=oe.string=oe.url=oe.file=oe.directory=oe.integer=void 0;oe.custom=Vt;oe.boolean=Ii;oe.option=M_;var R_=O("node:url"),Is=Ue(),L_=bn(),Dl=ke();function Vt(t){return(e={})=>({parse:async(n,s,r)=>n,...t,...e,input:[],multiple:!!(e.multiple===void 0?t?.multiple??!1:e.multiple),type:"option"})}function Ii(t={}){return{parse:async(e,n)=>e,...t,allowNo:!!t.allowNo,type:"boolean"}}oe.integer=Vt({async parse(t,e,n){if(!/^-?\d+$/.test(t))throw new Is.CLIError(`Expected an integer but received: ${t}`);let s=Number.parseInt(t,10);if(n.min!==void 0&&s<n.min)throw new Is.CLIError(`Expected an integer greater than or equal to ${n.min} but received: ${t}`);if(n.max!==void 0&&s>n.max)throw new Is.CLIError(`Expected an integer less than or equal to ${n.max} but received: ${t}`);return s}});oe.directory=Vt({async parse(t,e,n){return n.exists?(0,Dl.dirExists)(t):t}});oe.file=Vt({async parse(t,e,n){return n.exists?(0,Dl.fileExists)(t):t}});oe.url=Vt({async parse(t){try{return new R_.URL(t)}catch{throw new Is.CLIError(`Expected a valid url but received: ${t}`)}}});oe.string=Vt();var T_=(t={})=>Ii({description:"Show CLI version.",...t,async parse(e,n){n.log(n.config.userAgent),n.exit(0)}});oe.version=T_;var k_=(t={})=>Ii({description:"Show CLI help.",...t,async parse(e,n){let s=await(0,L_.loadHelpClass)(n.config);await new s(n.config,n.config.pjson.oclif.helpOptions??n.config.pjson.helpOptions).showHelp(n.id?[n.id,...n.argv]:n.argv),n.exit(0)}});oe.help=k_;function M_(t){return(e={})=>({parse:async(n,s,r)=>n,...t,...e,input:[],multiple:!!(e.multiple===void 0?t.multiple:e.multiple),type:"option"})}});var Wi=v(Hi=>{"use strict";p();Object.defineProperty(Hi,"__esModule",{value:!0});Hi.aggregateFlags=I_;var B_=Ni(),q_=(0,B_.boolean)({description:"Format output as json.",helpGroup:"GLOBAL"});function I_(t,e,n){let s={...e,...t};return n?{json:q_,...s}:s}});var bl=v(zi=>{"use strict";p();Object.defineProperty(zi,"__esModule",{value:!0});zi.cacheCommand=U_;var N_=Wi(),_l=Yr(),H_=Es(),W_=te();function yl(t,e){let n=Object.getPrototypeOf(e),s=(0,W_.pickBy)(n,r=>r!==void 0);return Object.keys(n).length>0?yl({...s,...t},n):t}async function z_(t,e){let n=Object.entries(t).map(async([s,r])=>[s,{aliases:r.aliases,char:r.char,charAliases:r.charAliases,combinable:r.combinable,dependsOn:r.dependsOn,deprecateAliases:r.deprecateAliases,deprecated:r.deprecated,description:r.description,env:r.env,exclusive:r.exclusive,helpGroup:r.helpGroup,helpLabel:r.helpLabel,hidden:r.hidden,name:s,noCacheDefault:r.noCacheDefault,relationships:r.relationships,required:r.required,summary:r.summary,...r.type==="boolean"?{allowNo:r.allowNo,type:r.type}:{default:await(0,_l.cacheDefaultValue)(r,e),delimiter:r.delimiter,hasDynamicHelp:typeof r.defaultHelp=="function",helpValue:r.helpValue,multiple:r.multiple,options:r.options,type:r.type}}]);return Object.fromEntries(await Promise.all(n))}async function G_(t,e){let n=Object.entries(t).map(async([s,r])=>[s,{default:await(0,_l.cacheDefaultValue)(r,e),description:r.description,hidden:r.hidden,name:s,noCacheDefault:r.noCacheDefault,options:r.options,required:r.required}]);return Object.fromEntries(await Promise.all(n))}async function U_(t,e,n=!1){let s=yl(t,t),r=s.flags??s._flags,i=s.baseFlags??s._baseFlags,[o,a]=await Promise.all([z_((0,N_.aggregateFlags)(r,i,s.enableJsonFlag),n),G_((0,H_.ensureArgObject)(s.args),n)]),u={aliases:(s.aliases??[]).map(g=>g.replaceAll(" ",":")),args:a,deprecateAliases:s.deprecateAliases,deprecationOptions:s.deprecationOptions,description:s.description,examples:s.examples??s.example,flags:o,hasDynamicHelp:Object.values(o).some(g=>g.hasDynamicHelp),hidden:s.hidden,hiddenAliases:s.hiddenAliases??[],id:s.id,pluginAlias:e&&e.alias,pluginName:e&&e.name,pluginType:e&&e.type,state:s.state,strict:s.strict,summary:s.summary,usage:s.usage},l=["plugin","_flags","_enableJsonFlag","_globalFlags","_baseFlags","baseFlags","_--","_base"],f=new Set([...l,...Object.keys(u)]),c=Object.keys(s).filter(g=>!f.has(g)),h=Object.fromEntries(c.map(g=>[g,s[g]]));return{...u,...h}}});var Cl=v(Hs=>{"use strict";p();Object.defineProperty(Hs,"__esModule",{value:!0});Hs.debug=_e;Hs.findRoot=Q_;var ye=O("node:path"),V_=de(),Ns=ke();function _e(...t){return(e,...n)=>(0,V_.getLogger)(["find-root",...t].join(":")).debug(e,...n)}function*Gi(t){for(;(0,ye.dirname)(t)!==t;)yield t,t=(0,ye.dirname)(t);yield t}async function El(t,e){if(_e(e??"root-plugin")(`Finding root starting at ${t}`),e){for(let n of Gi(t))if(n.endsWith((0,ye.basename)(e)))return _e(e)("Found root based on plugin name!"),n}for(let n of Gi(t))if(!((0,ye.basename)((0,ye.dirname)(n))==="bin"&&["dev","dev.cmd","dev.js","run","run.cmd","run.js"].includes((0,ye.basename)(n))))try{let s=(0,ye.join)(n,"package.json");if(_e(e??"root-plugin")(`Checking ${s}`),await(0,Ns.safeReadJson)(s))return _e(e??"root-plugin")("Found root by traversing up from starting point!"),(0,ye.dirname)(s)}catch{}}async function K_(t,e){_e(t??"root-plugin")("Finding root using legacy method");for(let n of Gi(e)){let s;if(t){if(s=(0,ye.join)(n,"node_modules",t,"package.json"),await(0,Ns.safeReadJson)(s))return(0,ye.dirname)(s);if((await(0,Ns.safeReadJson)((0,ye.join)(n,"package.json")))?.name===t)return n}else if(s=(0,ye.join)(n,"package.json"),await(0,Ns.safeReadJson)(s))return(0,ye.dirname)(s)}}var Ze;function J_(t){if(Ze)return Ze;try{return Ze=O(O.resolve("pnpapi",{paths:[t]})),Ze}catch{}}var Ui=t=>JSON.stringify(t),X_=(t,e,n)=>Ui(t?.packageDependencies.get(n))===Ui(e?.packageDependencies.get(n));function Y_(t,e){if(J_(e),!Ze)return;_e(t)("Finding root for using pnp method");let n=new Set,s=(r,i)=>{let o=Ui(r);if(n.has(o))return;let a=Ze.getPackageInformation(r);if(r.name===t)return a.packageLocation;n.add(o);for(let[u,l]of a.packageDependencies){if(l===null||i!==null&&X_(a,i,u))continue;let f=Ze.getLocator(u,l),c=s(f,a);if(c)return c}n.delete(o)};for(let r of Ze.getDependencyTreeRoots()){let i=s(r);if(i)return i}}async function Q_(t,e){if(t){_e(t)(`Finding root using ${e}`);let s;try{s=O.resolve(t,{paths:[e]}),_e(t)("Found starting point with require.resolve")}catch{_e(t)("require.resolve could not find plugin starting point")}if(s){let i=await El((0,ye.dirname)(s),t);if(i)return _e(t)(`Found root at ${i}`),i}let r=process.versions.pnp?Y_(t,e):await K_(t,e);return _e(t)(r?`Found root at ${r}`:"No root found!"),r}_e("root-plugin")(`Finding root plugin using ${e}`);let n=await El(e);return _e("root-plugin")(n?`Found root at ${n}`:"No root found!"),n}});var Sl=v((Cv,jn)=>{p();var Pe=O("path"),Sn=O("fs"),Z_=O("os"),ey=O("url"),vl=Sn.promises.readFile;function ty(t,e){return["package.json",`.${t}rc.json`,`.${t}rc.js`,`.${t}rc.cjs`,...e?[]:[`.${t}rc.mjs`],`.config/${t}rc`,`.config/${t}rc.json`,`.config/${t}rc.js`,`.config/${t}rc.cjs`,...e?[]:[`.config/${t}rc.mjs`],`${t}.config.js`,`${t}.config.cjs`,...e?[]:[`${t}.config.mjs`]]}function zs(t){return Pe.dirname(t)||Pe.sep}var Ki=(t,e)=>JSON.parse(e),Ws=typeof __webpack_require__=="function"?__non_webpack_require__:O,wl=Object.freeze({".js":Ws,".json":Ws,".cjs":Ws,noExt:Ki});jn.exports.defaultLoadersSync=wl;var Vi=async t=>{try{return(await import(ey.pathToFileURL(t).href)).default}catch(e){try{return Ws(t)}catch(n){throw n.code==="ERR_REQUIRE_ESM"||n instanceof SyntaxError&&n.toString().includes("Cannot use import statement outside a module")?e:n}}},Fl=Object.freeze({".js":Vi,".mjs":Vi,".cjs":Vi,".json":Ki,noExt:Ki});jn.exports.defaultLoaders=Fl;function Al(t,e,n){let s={stopDir:Z_.homedir(),searchPlaces:ty(t,n),ignoreEmptySearchPlaces:!0,cache:!0,transform:r=>r,packageProp:[t],...e,loaders:{...n?wl:Fl,...e.loaders}};return s.searchPlaces.forEach(r=>{let i=Pe.extname(r)||"noExt",o=s.loaders[i];if(!o)throw new Error(`Missing loader for extension "${r}"`);if(typeof o!="function")throw new Error(`Loader for extension "${r}" is not a function: Received ${typeof o}.`)}),s}function Gs(t,e){return typeof t=="string"&&t in e?e[t]:(Array.isArray(t)?t:t.split(".")).reduce((n,s)=>n===void 0?n:n[s],e)||null}function Ol(t){if(!t)throw new Error("load must pass a non-empty string")}function Us(t,e){if(!t)throw new Error(`No loader specified for extension "${e}"`);if(typeof t!="function")throw new Error("loader is not a function")}var xl=t=>(e,n,s)=>(t&&e.set(n,s),s);jn.exports.lilconfig=function(e,n){let{ignoreEmptySearchPlaces:s,loaders:r,packageProp:i,searchPlaces:o,stopDir:a,transform:u,cache:l}=Al(e,n??{},!1),f=new Map,c=new Map,h=xl(l);return{async search(g=process.cwd()){let d={config:null,filepath:""},m=new Set,_=g;e:for(;;){if(l){let D=f.get(_);if(D!==void 0){for(let w of m)f.set(w,D);return D}m.add(_)}for(let D of o){let w=Pe.join(_,D);try{await Sn.promises.access(w)}catch{continue}let $=String(await vl(w)),j=Pe.extname(D)||"noExt",T=r[j];if(D==="package.json"){let R=await T(w,$),L=Gs(i,R);if(L!=null){d.config=L,d.filepath=w;break e}continue}let B=$.trim()==="";if(!(B&&s)){B?(d.isEmpty=!0,d.config=void 0):(Us(T,j),d.config=await T(w,$)),d.filepath=w;break e}}if(_===a||_===zs(_))break e;_=zs(_)}let y=d.filepath===""&&d.config===null?u(null):u(d);if(l)for(let D of m)f.set(D,y);return y},async load(g){Ol(g);let d=Pe.resolve(process.cwd(),g);if(l&&c.has(d))return c.get(d);let{base:m,ext:_}=Pe.parse(d),y=_||"noExt",D=r[y];Us(D,y);let w=String(await vl(d));if(m==="package.json"){let T=await D(d,w);return h(c,d,u({config:Gs(i,T),filepath:d}))}let $={config:null,filepath:d},j=w.trim()==="";return j&&s?h(c,d,u({config:void 0,filepath:d,isEmpty:!0})):($.config=j?void 0:await D(d,w),h(c,d,u(j?{...$,isEmpty:j,config:void 0}:$)))},clearLoadCache(){l&&c.clear()},clearSearchCache(){l&&f.clear()},clearCaches(){l&&(c.clear(),f.clear())}}};jn.exports.lilconfigSync=function(e,n){let{ignoreEmptySearchPlaces:s,loaders:r,packageProp:i,searchPlaces:o,stopDir:a,transform:u,cache:l}=Al(e,n??{},!0),f=new Map,c=new Map,h=xl(l);return{search(g=process.cwd()){let d={config:null,filepath:""},m=new Set,_=g;e:for(;;){if(l){let D=f.get(_);if(D!==void 0){for(let w of m)f.set(w,D);return D}m.add(_)}for(let D of o){let w=Pe.join(_,D);try{Sn.accessSync(w)}catch{continue}let $=Pe.extname(D)||"noExt",j=r[$],T=String(Sn.readFileSync(w));if(D==="package.json"){let R=j(w,T),L=Gs(i,R);if(L!=null){d.config=L,d.filepath=w;break e}continue}let B=T.trim()==="";if(!(B&&s)){B?(d.isEmpty=!0,d.config=void 0):(Us(j,$),d.config=j(w,T)),d.filepath=w;break e}}if(_===a||_===zs(_))break e;_=zs(_)}let y=d.filepath===""&&d.config===null?u(null):u(d);if(l)for(let D of m)f.set(D,y);return y},load(g){Ol(g);let d=Pe.resolve(process.cwd(),g);if(l&&c.has(d))return c.get(d);let{base:m,ext:_}=Pe.parse(d),y=_||"noExt",D=r[y];Us(D,y);let w=String(Sn.readFileSync(d));if(m==="package.json"){let T=D(d,w);return u({config:Gs(i,T),filepath:d})}let $={config:null,filepath:d},j=w.trim()==="";return j&&s?h(c,d,u({filepath:d,config:void 0,isEmpty:!0})):($.config=j?void 0:D(d,w),h(c,d,u(j?{...$,isEmpty:j,config:void 0}:$)))},clearLoadCache(){l&&c.clear()},clearSearchCache(){l&&f.clear()},clearCaches(){l&&(c.clear(),f.clear())}}}});var Pl=v(Ji=>{"use strict";p();Object.defineProperty(Ji,"__esModule",{value:!0});Ji.readPjson=iy;var ny=Sl(),sy=O("node:path"),ry=de(),jl=ke(),Pn=(0,ry.makeDebug)("read-pjson");async function iy(t){let e=(0,sy.join)(t,"package.json");if(process.env.OCLIF_DISABLE_RC)return Pn("OCLIF_DISABLE_RC is set, skipping rc search"),(0,jl.readJson)(e);let n=await(0,jl.readJson)(e);if(n.oclif)return Pn(`found oclif config in ${e}`),n;Pn(`searching for oclif config in ${t}`);let r=await(0,ny.lilconfig)("oclif",{searchPlaces:[".oclifrc",".oclifrc.json",".oclifrc.js",".oclifrc.mjs",".oclifrc.cjs","oclif.config.js","oclif.config.mjs","oclif.config.cjs"],stopDir:t}).search(t);return r?.config?(Pn(`found oclif config for ${t}: %O`,r),{...n,oclif:r?.config??{}}):(Pn(`no oclif config found in ${t}`),n)}});var Zi=v(Jt=>{"use strict";p();var oy=Jt&&Jt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.Plugin=void 0;var $n=O("node:path"),$l=O("node:util"),ay=ml(),uy=oy(xe()),Rn=Ue(),Vs=ln(),Kt=Wt(),Ml=ps(),cy=bl(),ly=Cl(),fy=ke(),hy=Pl(),Rl=te(),Xi=Tt(),Ks=Lt(),Ll=uy.default.getInstance().get("@oclif/core");function Yi(t,e){return t?(e=e?`${e}:`:"",Array.isArray(t)?[...t,t.flatMap(n=>Yi(n.subtopics,`${e}${n.name}`))]:Object.keys(t).flatMap(n=>(t[n].name=n,[{...t[n],name:`${e}${n}`},...Yi(t[n].subtopics,`${e}${t[n].name}`)]))):[]}var dy=(t,e)=>!!(t?.commands[e]&&"isESM"in t.commands[e]&&"relativePath"in t.commands[e]),Tl=t=>typeof t.run=="function"?t:t.default&&t.default.run?t.default:Object.values(t).find(e=>typeof e.run=="function"),kl=t=>{if(t&&typeof t.run=="function")return t},Bl=["**/*.+(js|cjs|mjs|ts|tsx|mts|cts)","!**/*.+(d.ts|test.ts|test.js|spec.ts|spec.js|d.mts|d.cts)?(x)"];function py(t){return t.map(e=>{let n=(0,$n.parse)(e),s=n.dir.split("/"),r=n.name!=="index"&&n.name,i=[...s,r].filter(Boolean).join(":");return i===""?Ml.SINGLE_COMMAND_CLI_SYMBOL:i})}function gy(t){if(t){if(typeof t=="string")return{globPatterns:Bl,strategy:"pattern",target:t};if(!t.target)throw new Rn.CLIError("`oclif.commandDiscovery.target` is required.");if(!t.strategy)throw new Rn.CLIError("`oclif.commandDiscovery.strategy` is required.");return t.strategy==="explicit"&&!t.identifier&&(t.identifier="default"),t}}function my(t){return typeof t=="string"?{identifier:"default",target:t}:t.identifier?t:{...t,identifier:"default"}}var Qi=class{options;_base=`${Ll.name}@${Ll.version}`;_debug=(0,Ks.makeDebug)();alias;alreadyLoaded=!1;children=[];commandIDs=[];commands;commandsDir;hasManifest=!1;hooks;isRoot=!1;manifest;moduleType;name;parent;pjson;root;tag;type;valid=!1;version;commandCache;commandDiscoveryOpts;flexibleTaxonomy;constructor(e){this.options=e}get topics(){return Yi(this.pjson.oclif.topics||{})}async findCommand(e,n={}){let s=Kt.Performance.mark(Kt.OCLIF_MARKER_OWNER,`plugin.findCommand#${this.name}.${e}`,{id:e,plugin:this.name}),i=await(async()=>{if(this.commandDiscoveryOpts?.strategy==="pattern"){let o=await this.getCommandsDir();if(!o)return;let a,u,l;try{({filePath:l,isESM:u,module:a}=dy(this.manifest,e)?await(0,Vs.loadWithDataFromManifest)(this.manifest.commands[e],this.root):await(0,Vs.loadWithData)(this,(0,$n.join)(o??this.pjson.oclif.commands,...e.split(":")))),this._debug(u?"(import)":"(require)",l)}catch(c){if(!n.must&&c.code==="MODULE_NOT_FOUND")return;throw c}let f=Tl(a);return f?(f.id=e,f.plugin=this,f.isESM=u,f.relativePath=(0,$n.relative)(this.root,l||"").split($n.sep),f):void 0}if(this.commandDiscoveryOpts?.strategy==="single"||this.commandDiscoveryOpts?.strategy==="explicit"){let o=await this.loadCommandsFromTarget(),a=kl(o?.[e]);return a?(a.id=e,a.plugin=this,a):void 0}})();return!i&&n.must&&(0,Rn.error)(`command ${e} not found`),s?.stop(),i}async load(){this.type=this.options.type??"core",this.tag=this.options.tag,this.isRoot=this.options.isRoot??!1,this.options.parent&&(this.parent=this.options.parent);let e=this.options.pjson&&this.options.isRoot?this.options.root:this.type==="link"&&!this.parent?this.options.root:await(0,ly.findRoot)(this.options.name,this.options.root);if(!e)throw new Rn.CLIError(`could not find package.json with ${(0,$l.inspect)(this.options)}`);if(this.root=e,this._debug(`loading ${this.type} plugin from ${e}`),this.pjson=this.options.pjson??await(0,hy.readPjson)(e),this.flexibleTaxonomy=this.options?.flexibleTaxonomy||this.pjson.oclif?.flexibleTaxonomy||!1,this.moduleType=this.pjson.type==="module"?"module":"commonjs",this.name=this.pjson.name,this.alias=this.options.name??this.pjson.name,!this.name)throw new Rn.CLIError(`no name in package.json (${e})`);this._debug=(0,Ks.makeDebug)(this.name),this.version=this.pjson.version,this.pjson.oclif?this.valid=!0:this.pjson.oclif=this.pjson["cli-engine"]||{},this.hooks=Object.fromEntries(Object.entries(this.pjson.oclif.hooks??{}).map(([n,s])=>[n,(0,Rl.castArray)(s).map(r=>my(r))])),this.commandDiscoveryOpts=gy(this.pjson.oclif?.commands),this._debug("command discovery options",this.commandDiscoveryOpts),this.manifest=await this._manifest(),this.commands=Object.entries(this.manifest.commands).map(([n,s])=>({...s,load:async()=>this.findCommand(n,{must:!0}),pluginAlias:this.alias,pluginType:s.pluginType==="jit"?"jit":this.type})).sort((n,s)=>n.id.localeCompare(s.id))}async _manifest(){let e=!!this.options.ignoreManifest,n=!!this.options.errorOnManifestCreate,s=!!this.options.respectNoCacheDefault,r=async(a=!1)=>{try{let u=(0,$n.join)(this.root,`${a?".":""}oclif.manifest.json`),l=await(0,fy.readJson)(u);if(!process.env.OCLIF_NEXT_VERSION&&l.version.split("-")[0]!==this.version.split("-")[0])process.emitWarning(`Mismatched version in ${this.name} plugin manifest. Expected: ${this.version} Received: ${l.version}
|
|
132
|
+
This usually means you have an oclif.manifest.json file that should be deleted in development. This file should be automatically generated when publishing.`);else return this._debug("using manifest from",u),this.hasManifest=!0,l}catch(u){if(u.code==="ENOENT"){if(!a)return r(!0)}else this.warn(u,"readManifest")}},i=Kt.Performance.mark(Kt.OCLIF_MARKER_OWNER,`plugin.manifest#${this.name}`,{plugin:this.name});if(!e){let a=await r();if(a)return i?.addDetails({commandCount:Object.keys(a.commands).length,fromCache:!0}),i?.stop(),this.commandIDs=Object.keys(a.commands),a}this.commandIDs=await this.getCommandIDs();let o={commands:(await Promise.all(this.commandIDs.map(async a=>{try{let u=await this.findCommand(a,{must:!0}),l=await(0,cy.cacheCommand)(u,this,s);if(l.id=a,this.flexibleTaxonomy){let f=(0,Ks.getCommandIdPermutations)(a),c=l.aliases.flatMap(h=>(0,Ks.getCommandIdPermutations)(h));return[a,{...l,aliasPermutations:c,permutations:f}]}return[a,l]}catch(u){let l=`findCommand (${a})`;if(!n)this.warn(u,l);else throw this.addErrorScope(u,l)}}))).filter(a=>!!a).reduce((a,[u,l])=>(a[u]=l,a),{}),version:this.version};return i?.addDetails({commandCount:Object.keys(o.commands).length,fromCache:!1}),i?.stop(),o}addErrorScope(e,n){return e.name=e.name??(0,$l.inspect)(e).trim(),e.detail=(0,Rl.compact)([e.detail,`module: ${this._base}`,n&&`task: ${n}`,`plugin: ${this.name}`,`root: ${this.root}`,...e.code?[`code: ${e.code}`]:[],...e.message?[`message: ${e.message}`]:[],"See more details with DEBUG=*"]).join(`
|
|
133
|
+
`),e}async getCommandIDs(){let e=Kt.Performance.mark(Kt.OCLIF_MARKER_OWNER,`plugin.getCommandIDs#${this.name}`,{plugin:this.name}),n;switch(this.commandDiscoveryOpts?.strategy){case"explicit":{n=await this.getCommandIdsFromTarget()??[];break}case"pattern":{n=await this.getCommandIdsFromPattern();break}case"single":{n=await this.getCommandIdsFromTarget()??[];break}default:n=[]}return this._debug("found commands",n),e?.addDetails({count:n.length}),e?.stop(),n}async getCommandIdsFromPattern(){let e=await this.getCommandsDir();if(!e)return[];this._debug(`loading IDs from ${e}`);let n=await(0,ay.glob)(this.commandDiscoveryOpts?.globPatterns??Bl,{cwd:e});return py(n)}async getCommandIdsFromTarget(){if(await this.loadCommandsFromTarget())return Object.entries(await this.loadCommandsFromTarget()??[]).filter(([,n])=>kl(n)).map(([n])=>n)}async getCommandsDir(){return this.commandsDir?this.commandsDir:(this.commandsDir=await(0,Xi.tsPath)(this.root,this.commandDiscoveryOpts?.target,this),this.commandsDir)}async loadCommandsFromTarget(){if(this.commandCache)return this.commandCache;if(this.commandDiscoveryOpts?.strategy==="explicit"&&this.commandDiscoveryOpts.target){let e=await(0,Xi.tsPath)(this.root,this.commandDiscoveryOpts.target,this),n=await(0,Vs.load)(this,e);return this.commandCache=n[this.commandDiscoveryOpts?.identifier??"default"]??{},this.commandCache}if(this.commandDiscoveryOpts?.strategy==="single"&&this.commandDiscoveryOpts.target){let e=await(0,Xi.tsPath)(this.root,this.commandDiscoveryOpts?.target??this.root,this),n=await(0,Vs.load)(this,e);return this.commandCache={[Ml.SINGLE_COMMAND_CLI_SYMBOL]:Tl(n)},this.commandCache}}warn(e,n){typeof e=="string"&&(e=new Error(e));let s=this.addErrorScope(e,n);process.emitWarning(s.name,s)}};Jt.Plugin=Qi});var Nl=v(so=>{"use strict";p();Object.defineProperty(so,"__esModule",{value:!0});var Dy=Cc(),eo=O("node:path"),Xt=Wt(),to=ke(),_y=te(),ql=Zi(),yy=Lt(),Il=(0,yy.makeDebug)();function yt(t,e){return Object.keys(t).filter(n=>e.some(s=>(0,Dy.minimatch)(n,s)))}var no=class{options;errors=[];plugins=new Map;pluginsProvided=!1;constructor(e){this.options=e,e.plugins&&(this.pluginsProvided=!0,this.plugins=Array.isArray(e.plugins)?new Map(e.plugins.map(n=>[n.name,n])):e.plugins)}async loadChildren(e){return(!this.pluginsProvided||e.force)&&(await this.loadUserPlugins(e),await this.loadDevPlugins(e),await this.loadCorePlugins(e)),{errors:this.errors,plugins:this.plugins}}async loadRoot({pjson:e}){let n;if(this.pluginsProvided){let s=[...this.plugins.values()];n=s.find(r=>r.root===this.options.root)??s[0]}else{let s=Xt.Performance.mark(Xt.OCLIF_MARKER_OWNER,"plugin.load#root");n=new ql.Plugin({isRoot:!0,pjson:e,root:this.options.root}),await n.load(),s?.addDetails({commandCount:n.commands.length,hasManifest:n.hasManifest??!1,name:n.name,topicCount:n.topics.length,type:n.type,usesMain:!!n.pjson.main}),s?.stop()}return this.plugins.set(n.name,n),n}async loadCorePlugins(e){let{plugins:n}=e.rootPlugin.pjson.oclif;if(n){let i=yt(e.rootPlugin.pjson.dependencies??{},n);await this.loadPlugins(e.rootPlugin.root,"core",i)}let{core:s,path:r}=e.pluginAdditions??{core:[]};if(s)if(r){let i=await(0,to.readJson)((0,eo.join)(r,"package.json")),o=yt(i.dependencies??{},s);await this.loadPlugins(r,"core",o)}else{let i=yt(e.rootPlugin.pjson.dependencies??{},s);await this.loadPlugins(e.rootPlugin.root,"core",i)}}async loadDevPlugins(e){if(e.devPlugins!==!1){if((0,_y.isProd)())return;try{let{devPlugins:n}=e.rootPlugin.pjson.oclif;if(n){let i={...e.rootPlugin.pjson.dependencies,...e.rootPlugin.pjson.devDependencies},o=yt(i??{},n);await this.loadPlugins(e.rootPlugin.root,"dev",o)}let{dev:s,path:r}=e.pluginAdditions??{core:[]};if(s)if(r){let i=await(0,to.readJson)((0,eo.join)(r,"package.json")),o={...i.dependencies,...i.devDependencies},a=yt(o??{},s);await this.loadPlugins(r,"dev",a)}else{let i={...e.rootPlugin.pjson.dependencies,...e.rootPlugin.pjson.devDependencies},o=yt(i??{},s);await this.loadPlugins(e.rootPlugin.root,"dev",o)}}catch(n){process.emitWarning(n)}}}async loadPlugins(e,n,s,r){if(!s||s.length===0)return;let i=Xt.Performance.mark(Xt.OCLIF_MARKER_OWNER,`config.loadPlugins#${n}`);Il("loading plugins",s),await Promise.all((s||[]).map(async o=>{try{let a=typeof o=="string"?o:o.name,u={name:a,root:e,type:n};if(typeof o!="string"&&(u.tag=o.tag||u.tag,u.root=o.root||u.root,u.url=o.url),r&&(u.parent=r),this.plugins.has(a))return;let l=Xt.Performance.mark(Xt.OCLIF_MARKER_OWNER,`plugin.load#${a}`),f=new ql.Plugin(u);if(await f.load(),l?.addDetails({commandCount:f.commands.length,hasManifest:f.hasManifest,name:f.name,topicCount:f.topics.length,type:f.type,usesMain:!!f.pjson.main}),l?.stop(),this.plugins.set(f.name,f),r&&(f.parent=r,r.children||(r.children=[]),r.children.push(f)),f.pjson.oclif.plugins){let c=n==="dev"?{...f.pjson.dependencies,...f.pjson.devDependencies}:f.pjson.dependencies,h=yt(c??{},f.pjson.oclif.plugins);await this.loadPlugins(f.root,n,h,f)}}catch(a){this.errors.push(a)}})),i?.addDetails({pluginCount:s.length}),i?.stop()}async loadUserPlugins(e){if(e.userPlugins!==!1)try{let n=(0,eo.join)(e.dataDir,"package.json");Il("reading user plugins pjson %s",n);let s=await(0,to.readJson)(n,!1);s.oclif||(s.oclif={schema:1}),s.oclif.plugins||(s.oclif.plugins=[]),await this.loadPlugins(n,"user",s.oclif.plugins.filter(r=>r.type==="user")),await this.loadPlugins(n,"link",s.oclif.plugins.filter(r=>r.type==="link"))}catch(n){n.code!=="ENOENT"&&process.emitWarning(n)}}};so.default=no});var Xl=v((Ae,Jl)=>{"use strict";p();var by=Ae&&Ae.__createBinding||(Object.create?(function(t,e,n,s){s===void 0&&(s=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,r)}):(function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]})),Ey=Ae&&Ae.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Cy=Ae&&Ae.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var s=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(s[s.length]=r);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var s=t(e),r=0;r<s.length;r++)s[r]!=="default"&&by(n,e,s[r]);return Ey(n,e),n}})(),ao=Ae&&Ae.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.Config=void 0;var vy=Cy(hr()),wy=ao(wf()),Yt=O("node:os"),et=O("node:path"),Hl=O("node:url"),Kl=ao(xe()),Qt=Ue(),Fy=Bt(),ro=de(),Ay=ln(),ce=Wt(),Ln=Ge(),Wl=Yu(),zl=ke(),Oy=ht(),Gl=Zu(),Js=te(),xy=dt(),Sy=we(),jy=ao(Nl()),Py=Tt(),kn=Lt(),Tn=(0,kn.makeDebug)(),Ul=Kl.default.getInstance().get("@oclif/core"),io=`${Ul.name}@${Ul.version}`,$y=new Set(["preparse"]);function Vl(){process.listenerCount("warning")>1||process.on("warning",t=>{console.error(t.stack),t.detail&&console.error(t.detail)})}function Ry(t){let e=t.match(/[^-]+(?:-([^.]+))?/);return e&&e[1]||"stable"}function Ly(t){return t&&!!t._base}var Xs=class extends Map{validPermutations=new Map;add(e,n){this.validPermutations.set(e,n);for(let s of(0,kn.collectUsableIds)([e]))this.has(s)?this.set(s,this.get(s).add(n)):this.set(s,new Set([n]))}get(e){return super.get(e)??new Set}getAllValid(){return[...this.validPermutations.keys()]}getValid(e){return this.validPermutations.get(e)}hasValid(e){return this.validPermutations.has(e)}},oo=class t{options;arch;bin;binAliases;binPath;cacheDir;channel;configDir;dataDir;dirname;flexibleTaxonomy;home;isSingleCommandCLI=!1;name;npmRegistry;nsisCustomization;pjson;platform;plugins=new Map;root;shell;theme;topicSeparator=":";updateConfig;userAgent;userPJSON;valid;version;warned=!1;windows;_base=io;_commandIDs;_commands=new Map;_topics=new Map;commandPermutations=new Xs;pluginLoader;rootPlugin;topicPermutations=new Xs;constructor(e){this.options=e}static async load(e=Jl.filename||__dirname){if((0,ro.setLogger)(e),typeof e=="string"&&e.startsWith("file://")&&(e=(0,Hl.fileURLToPath)(e)),typeof e=="string"&&(e={root:e}),Ly(e)){if(io!==e._base){Tn(`reloading config from ${e._base} to ${io}`);let s=new t({...e.options,plugins:e.plugins});return await s.load(),s}return e}let n=new t(e);return await n.load(),n}get commandIDs(){return this._commandIDs?this._commandIDs:(this._commandIDs=this.commands.map(e=>e.id),this._commandIDs)}get commands(){return[...this._commands.values()]}get isProd(){return(0,Js.isProd)()}static get rootPlugin(){return this.rootPlugin}get topics(){return[...this._topics.values()]}get versionDetails(){let[e,n,s]=this.userAgent.split(" ");return{architecture:n,cliVersion:e,nodeVersion:s,osVersion:`${(0,Yt.type)()} ${(0,Yt.release)()}`,pluginVersions:Object.fromEntries([...this.plugins.values()].map(r=>[r.name,{root:r.root,type:r.type,version:r.version}])),rootPath:this.root,shell:this.shell}}_shell(){let e,{COMSPEC:n}=process.env,s=process.env.SHELL??(0,Yt.userInfo)().shell?.split(et.sep)?.pop();return s?e=s.split("/"):this.windows&&(process.title.toLowerCase().includes("powershell")||process.title.toLowerCase().includes("pwsh"))?e=["powershell"]:this.windows&&(process.title.toLowerCase().includes("command prompt")||process.title.toLowerCase().includes("cmd"))?e=["cmd.exe"]:this.windows&&n?e=n.split(/\\|\//):e=["unknown"],e.at(-1)??"unknown"}dir(e){let n=process.env[`XDG_${e.toUpperCase()}_HOME`]||this.windows&&process.env.LOCALAPPDATA||(0,et.join)(this.home,e==="data"?".local/share":"."+e);return(0,et.join)(n,this.dirname)}findCommand(e,n={}){let s=this.getCmdLookupId(e),r=this._commands.get(s);return n.must&&!r&&(0,Qt.error)(`command ${s} not found`),r}findMatches(e,n){let s=n.filter(o=>!(0,Fy.getHelpFlagAdditions)(this).includes(o)&&o.startsWith("-")).map(o=>o.replaceAll("-",""));return[...this.commandPermutations.get(e)].map(o=>this._commands.get(o)).filter(o=>{let a=Object.entries(o.flags).flatMap(([u,l])=>l.char?[l.char,u]:[u]);return s.every(u=>a.includes(u))})}findTopic(e,n={}){let s=this.getTopicLookupId(e),r=this._topics.get(s);if(r)return r;if(n.must)throw new Error(`topic ${e} not found`)}getAllCommandIDs(){return this.getAllCommands().map(e=>e.id)}getAllCommands(){let e=[...this._commands.values()],n=[...this.commandPermutations.getAllValid()];for(let s of n)if(!this._commands.has(s)){let r=this._commands.get(this.getCmdLookupId(s));e.push({...r,id:s})}return e}getPluginsList(){return[...this.plugins.values()]}async load(){Ln.settings.performanceEnabled=(Ln.settings.performanceEnabled===void 0?this.options.enablePerf:Ln.settings.performanceEnabled)??!1,Ln.settings.debug&&Vl(),(0,ro.setLogger)(this.options);let e=ce.Performance.mark(ce.OCLIF_MARKER_OWNER,"config.load");this.pluginLoader=new jy.default({plugins:this.options.plugins,root:this.options.root}),this.rootPlugin=await this.pluginLoader.loadRoot({pjson:this.options.pjson});let n=Kl.default.getInstance();n.set("rootPlugin",this.rootPlugin),n.set("exitCodes",this.rootPlugin.pjson.oclif.exitCodes??{}),this.root=this.rootPlugin.root,this.pjson=this.rootPlugin.pjson,this.plugins.set(this.rootPlugin.name,this.rootPlugin),this.root=this.rootPlugin.root,this.pjson=this.rootPlugin.pjson,this.name=this.pjson.name,this.version=this.options.version||this.pjson.version||"0.0.0",this.channel=this.options.channel||Ry(this.version),this.valid=this.rootPlugin.valid,this.arch=(0,Yt.arch)()==="ia32"?"x86":(0,Yt.arch)(),this.platform=wy.default?"wsl":(0,Gl.getPlatform)(),this.windows=this.platform==="win32",this.bin=this.pjson.oclif.bin||this.name,this.binAliases=this.pjson.oclif.binAliases,this.nsisCustomization=this.pjson.oclif.nsisCustomization,this.dirname=this.pjson.oclif.dirname||this.name,this.flexibleTaxonomy=this.pjson.oclif.flexibleTaxonomy||!1,this.pjson.oclif.topicSeparator&&[" ",":"].includes(this.pjson.oclif.topicSeparator)&&(this.topicSeparator=this.pjson.oclif.topicSeparator),this.platform==="win32"&&(this.dirname=this.dirname.replace("/","\\")),this.userAgent=`${this.name}/${this.version} ${this.platform}-${this.arch} node-${process.version}`,this.shell=this._shell(),this.home=process.env.HOME||this.windows&&this.windowsHome()||(0,Gl.getHomeDir)()||(0,Yt.tmpdir)(),this.cacheDir=this.scopedEnvVar("CACHE_DIR")||this.macosCacheDir()||this.dir("cache"),this.configDir=this.scopedEnvVar("CONFIG_DIR")||this.dir("config"),this.dataDir=this.scopedEnvVar("DATA_DIR")||this.dir("data"),this.binPath=this.scopedEnvVar("BINPATH"),this.npmRegistry=this.scopedEnvVar("NPM_REGISTRY")||this.pjson.oclif.npmRegistry,this.theme=await this.loadTheme(),this.updateConfig={...this.pjson.oclif.update,node:this.pjson.oclif.update?.node??{},s3:this.buildS3Config()},this.isSingleCommandCLI=!!(typeof this.pjson.oclif.commands!="string"&&this.pjson.oclif.commands?.strategy==="single"&&this.pjson.oclif.commands?.target),this.maybeAdjustDebugSetting(),await this.loadPluginsAndCommands(),Tn("config done"),e?.addDetails({commandPermutations:this.commands.length,commands:[...this.plugins.values()].reduce((s,r)=>s+r.commands.length,0),plugins:this.plugins.size,topics:this.topics.length}),e?.stop()}async loadPluginsAndCommands(e){let n=ce.Performance.mark(ce.OCLIF_MARKER_OWNER,"config.loadAllPlugins"),{errors:s,plugins:r}=await this.pluginLoader.loadChildren({dataDir:this.dataDir,devPlugins:this.options.devPlugins,force:e?.force??!1,pluginAdditions:this.options.pluginAdditions,rootPlugin:this.rootPlugin,userPlugins:this.options.userPlugins});this.plugins=r,n?.stop();let i=ce.Performance.mark(ce.OCLIF_MARKER_OWNER,"config.loadAllCommands");for(let o of this.plugins.values())this.loadCommands(o),this.loadTopics(o);i?.stop();for(let o of s)this.warn(o)}async loadTheme(){if(this.scopedEnvVarTrue("DISABLE_THEME"))return;let e=(0,et.resolve)(this.configDir,"theme.json"),n=async()=>{if(this.pjson.oclif.theme)return typeof this.pjson.oclif.theme=="string"?(0,zl.safeReadJson)((0,et.resolve)(this.root,this.pjson.oclif.theme)):this.pjson.oclif.theme},[s,r]=await Promise.all([n(),(0,zl.safeReadJson)(e)]),i={...s,...r};return Object.keys(i).length>0?(0,Sy.parseTheme)(i):void 0}macosCacheDir(){return this.platform==="darwin"&&(0,et.join)(this.home,"Library","Caches",this.dirname)||void 0}async runCommand(e,n=[],s=null){let r=ce.Performance.mark(ce.OCLIF_MARKER_OWNER,`config.runCommand#${e}`);Tn("runCommand %s %o",e,n);let i=s??this.findCommand(e);if(!i){let u=this.flexibleTaxonomy?this.findMatches(e,n):[],l=this.flexibleTaxonomy&&u.length>0?await this.runHook("command_incomplete",{argv:n,id:e,matches:u}):await this.runHook("command_not_found",{argv:n,id:e});if(l.successes[0])return l.successes[0].result;throw l.failures[0]?l.failures[0].error:new Qt.CLIError(`command ${e} not found`)}if(this.isJitPluginCommand(i)){let u=i.pluginName,l=this.pjson.oclif.jitPlugins[u],f=await this.runHook("jit_plugin_not_installed",{argv:n,command:i,id:e,pluginName:u,pluginVersion:l});if(f.failures[0])throw f.failures[0].error;if(f.successes[0])await this.loadPluginsAndCommands({force:!0}),i=this.findCommand(e)??i;else{let c=await this.runHook("command_not_found",{argv:n,id:e});if(c.successes[0])return c.successes[0].result;throw c.failures[0]?c.failures[0].error:new Qt.CLIError(`command ${e} not found`)}}let o=await i.load();await this.runHook("prerun",{argv:n,Command:o});let a=await o.run(n,this);if(i.id==="plugins:uninstall")for(let u of n)this.plugins.delete(u);return await this.runHook("postrun",{argv:n,Command:o,result:a}),r?.addDetails({command:e,plugin:i.pluginName}),r?.stop(),a}async runHook(e,n,s,r){let i=ce.Performance.mark(ce.OCLIF_MARKER_OWNER,`config.runHook#${e}`);Tn("start %s hook",e);let o=c=>typeof c=="function"?c:c.default&&typeof c.default=="function"?c.default:Object.values(c).find(h=>typeof h=="function"),a=async(c,h)=>{let g,d=new Promise((m,_)=>{g=setTimeout(()=>{_(new Error(`Timed out after ${c} ms.`))},c).unref()});return Promise.race([h,d]).then(m=>(clearTimeout(g),m))},u={failures:[],successes:[]},f=($y.has(e)?[this.rootPlugin]:[...this.plugins.values()]).map(async c=>{let h=(0,ro.makeDebug)([c.name,"hooks",e].join(":")),g={config:this,debug:h,error(m,_={}){(0,Qt.error)(m,_)},exit(m=0){(0,Qt.exit)(m)},log(m,..._){xy.ux.stdout(m,..._)},warn(m){(0,Qt.warn)(m)}},d=c.hooks[e]||[];for(let m of d){let _=ce.Performance.mark(ce.OCLIF_MARKER_OWNER,`config.runHook#${c.name}(${m.target})`);try{let{filePath:y,isESM:D,module:w}=await(0,Ay.loadWithData)(c,await(0,Py.tsPath)(c.root,m.target,c));h("start",D?"(import)":"(require)",y);let $=w[m.identifier]??(m.identifier==="default"?o(w):void 0);if(!$){h("No hook found for hook definition:",m);continue}let j=s?await a(s,$.call(g,{...n,config:this,context:g})):await $.call(g,{...n,config:this,context:g});u.successes.push({plugin:c,result:j}),c.name==="@oclif/plugin-legacy"&&e==="init"&&this.insertLegacyPlugins(j),h("done")}catch(y){if(u.failures.push({error:y,plugin:c}),h(y),!r&&y.oclif?.exit!==void 0&&y.oclif?.exit!==0&&y.code!=="MODULE_NOT_FOUND")throw y}_?.addDetails({event:e,hook:m.target,plugin:c.name}),_?.stop()}});return await Promise.all(f),Tn("%s hook done",e),i?.stop(),u}s3Key(e,n,s={}){typeof n=="object"?s=n:n&&(s.ext=n);let r=this.updateConfig.s3?.templates?.[s.platform?"target":"vanilla"][e]??"";return vy.render(r,{...this,...s})}s3Url(e){let{host:n}=this.updateConfig.s3??{host:void 0};if(!n)throw new Error("no s3 host is set");let s=new Hl.URL(n);return s.pathname=(0,et.join)(s.pathname,e),s.toString()}scopedEnvVar(e){return process.env[this.scopedEnvVarKeys(e).find(n=>process.env[n])]}scopedEnvVarKey(e){return[this.bin,e].map(n=>n.replaceAll("@","").replaceAll(/[/-]/g,"_")).join("_").toUpperCase()}scopedEnvVarKeys(e){return[this.bin,...this.binAliases??[]].filter(Boolean).map(n=>[n.replaceAll("@","").replaceAll(/[/-]/g,"_"),e].join("_").toUpperCase())}scopedEnvVarTrue(e){let n=this.scopedEnvVar(e);return n==="1"||n==="true"}windowsHome(){return this.windowsHomedriveHome()||this.windowsUserprofileHome()}windowsHomedriveHome(){return process.env.HOMEDRIVE&&process.env.HOMEPATH&&(0,et.join)(process.env.HOMEDRIVE,process.env.HOMEPATH)}windowsUserprofileHome(){return process.env.USERPROFILE}buildS3Config(){let e=this.pjson.oclif.update?.s3,n=this.scopedEnvVar("S3_BUCKET")??e?.bucket,s=e?.host??(n&&`https://${n}.s3.amazonaws.com`),r={...e?.templates,target:{baseDir:"<%- bin %>",manifest:"<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- platform %>-<%- arch %>",unversioned:"<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %>-<%- platform %>-<%- arch %><%- ext %>",versioned:"<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %>-v<%- version %>/<%- bin %>-v<%- version %>-<%- platform %>-<%- arch %><%- ext %>",...e?.templates&&e?.templates.target},vanilla:{baseDir:"<%- bin %>",manifest:"<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %>version",unversioned:"<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %><%- ext %>",versioned:"<%- channel === 'stable' ? '' : 'channels/' + channel + '/' %><%- bin %>-v<%- version %>/<%- bin %>-v<%- version %><%- ext %>",...e?.templates&&e?.templates.vanilla}};return{bucket:n,host:s,templates:r}}getCmdLookupId(e){return this._commands.has(e)?e:this.commandPermutations.hasValid(e)?this.commandPermutations.getValid(e):e}getTopicLookupId(e){return this._topics.has(e)?e:this.topicPermutations.hasValid(e)?this.topicPermutations.getValid(e):e}insertLegacyPlugins(e){for(let n of e){this.plugins.set(n.name,n);for(let s of n.commands??[]){this._commands.delete(s.id);for(let r of[...s.aliases??[],...s.hiddenAliases??[]])this._commands.delete(r)}this.loadCommands(n)}}isJitPluginCommand(e){return Object.keys(this.pjson.oclif.jitPlugins??{}).includes(e.pluginName??"")&&!!(e?.pluginName&&!this.plugins.has(e.pluginName))}loadCommands(e){let n=ce.Performance.mark(ce.OCLIF_MARKER_OWNER,`config.loadCommands#${e.name}`,{plugin:e.name});for(let s of e.commands){if(this._commands.has(s.id)){let o=(0,Wl.determinePriority)(this.pjson.oclif.plugins??[],[this._commands.get(s.id),s]);this._commands.set(o.id,o)}else this._commands.set(s.id,s);let r=this.flexibleTaxonomy&&s.permutations===void 0?(0,kn.getCommandIdPermutations)(s.id):s.permutations??[s.id];for(let o of r)this.commandPermutations.add(o,s.id);let i=(o,a=!1)=>{let u=(0,Oy.toStandardizedId)(o,this);if(this._commands.has(u)){let f=(0,Wl.determinePriority)(this.pjson.oclif.plugins??[],[this._commands.get(u),s]);this._commands.set(u,{...f,id:u})}else this._commands.set(u,{...s,hidden:a,id:u});let l=this.flexibleTaxonomy&&s.aliasPermutations===void 0?(0,kn.getCommandIdPermutations)(u):s.permutations??[u];for(let f of l)this.commandPermutations.add(f,s.id)};for(let o of s.aliases??[])i(o);for(let o of s.hiddenAliases??[])i(o,!0)}n?.addDetails({commandCount:e.commands.length}),n?.stop()}loadTopics(e){let n=ce.Performance.mark(ce.OCLIF_MARKER_OWNER,`config.loadTopics#${e.name}`,{plugin:e.name});for(let s of(0,Js.compact)(e.topics)){let r=this._topics.get(s.name);r?(r.description=s.description||r.description,r.hidden=r.hidden||s.hidden):this._topics.set(s.name,s);let i=this.flexibleTaxonomy?(0,kn.getCommandIdPermutations)(s.name):[s.name];for(let o of i)this.topicPermutations.add(o,s.name)}for(let s of e.commands.filter(r=>!r.hidden)){let r=s.id.split(":");for(;r.length>0;){let i=r.join(":");i&&!this._topics.has(i)&&this._topics.set(i,{description:s.summary||s.description,name:i}),r.pop()}}n?.stop()}maybeAdjustDebugSetting(){this.scopedEnvVarTrue("DEBUG")&&(Ln.settings.debug=!0,Vl())}warn(e,n){if(!this.warned){if(typeof e=="string"){process.emitWarning(e);return}if(e instanceof Error){let s=e;s.name=`${e.name} Plugin: ${this.name}`,s.detail=(0,Js.compact)([e.detail,`module: ${this._base}`,n&&`task: ${n}`,`plugin: ${this.name}`,`root: ${this.root}`,"See more details with DEBUG=*"]).join(`
|
|
134
|
+
`),process.emitWarning(e);return}process.emitWarning("Config.warn expected either a string or Error, but instead received an object"),e.name=`${e.name} Plugin: ${this.name}`,e.detail=(0,Js.compact)([e.detail,`module: ${this._base}`,n&&`task: ${n}`,`plugin: ${this.name}`,`root: ${this.root}`,"See more details with DEBUG=*"]).join(`
|
|
135
|
+
`),process.emitWarning(JSON.stringify(e))}}};Ae.Config=oo});var Ys=v(tt=>{"use strict";p();Object.defineProperty(tt,"__esModule",{value:!0});tt.tsPath=tt.Plugin=tt.Config=void 0;var Ty=Xl();Object.defineProperty(tt,"Config",{enumerable:!0,get:function(){return Ty.Config}});var ky=Zi();Object.defineProperty(tt,"Plugin",{enumerable:!0,get:function(){return ky.Plugin}});var My=Tt();Object.defineProperty(tt,"tsPath",{enumerable:!0,get:function(){return My.tsPath}})});var Ql=v((Lv,Yl)=>{p();var Qs=Yl.exports=function(t,e,n){typeof t=="object"&&(n=t,t=n.start,e=n.stop),typeof e=="object"&&(n=e,t=t||n.start,e=void 0),e||(e=t,t=0),n||(n={});var s=n.mode||"soft",r=s==="hard"?/\b/:/(\S+\s+)/;return function(i){var o=i.toString().split(r).reduce(function(a,u){if(s==="hard")for(var l=0;l<u.length;l+=e-t)a.push(u.slice(l,l+e-t));else a.push(u);return a},[]);return o.reduce(function(a,u){if(u==="")return a;var l=u.replace(/\t/g," "),f=a.length-1;if(a[f].length+l.length>e)a[f]=a[f].replace(/\s+$/,""),l.split(/\n/).forEach(function(h){a.push(new Array(t+1).join(" ")+h.replace(/^\s+/,""))});else if(l.match(/\n/)){var c=l.split(/\n/);a[f]+=c.shift(),c.forEach(function(h){a.push(new Array(t+1).join(" ")+h.replace(/^\s+/,""))})}else a[f]+=l;return a},[new Array(t+1).join(" ")]).join(`
|
|
136
|
+
`)}};Qs.soft=Qs;Qs.hard=function(t,e){return Qs(t,e,{mode:"hard"})}});var Zl=v(uo=>{"use strict";p();Object.defineProperty(uo,"__esModule",{value:!0});uo.default=Hy;var By=Ql(),qy=St(),Iy=te();function Ny(t,e){return By(t,qy.stdtermwidth,{skipScheme:"ansi-color"})(e).trim()}function Hy(t){if(t.length===0)return"";let e=(0,Iy.maxBy)(t,s=>s[0].length)?.[0].length??0;return t.map(s=>{let r=s[0],i=s[1];return i?(r=r.padEnd(e),i=Ny(e+2,i),`${r} ${i}`):r}).join(`
|
|
137
|
+
`)}});var Do=v(J=>{"use strict";p();var ef=J&&J.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(J,"__esModule",{value:!0});J.FailedFlagValidationError=J.ArgInvalidOptionError=J.FlagInvalidOptionError=J.NonExistentFlagsError=J.UnexpectedArgsError=J.RequiredArgsError=J.InvalidArgsSpecError=J.CLIParseError=J.CLIError=void 0;var Mn=ef(xe()),Wy=Ue(),zy=te(),tf=ef(Zl()),Gy=we(),Uy=Ue();Object.defineProperty(J,"CLIError",{enumerable:!0,get:function(){return Uy.CLIError}});var Ie=class extends Wy.CLIError{parse;showHelp=!1;constructor(e){e.message+=`
|
|
138
|
+
See more help with --help`,super(e.message,{exit:e.exit}),this.parse=e.parse}};J.CLIParseError=Ie;var co=class extends Ie{args;constructor({args:e,exit:n,parse:s}){let r="Invalid argument spec",i=Object.values(e).filter(o=>o.name);if(i.length>0){let o=(0,tf.default)(i.map(a=>[`${a.name} (${a.required?"required":"optional"})`,a.description]));r+=`:
|
|
139
|
+
${o}`}super({exit:Mn.default.getInstance().get("exitCodes")?.invalidArgsSpec??n,message:r,parse:s}),this.args=e}};J.InvalidArgsSpecError=co;var lo=class extends Ie{args;constructor({args:e,exit:n,flagsWithMultiple:s,parse:r}){let i=`Missing ${e.length} required arg${e.length===1?"":"s"}`,o=e.filter(a=>a.name);if(o.length>0){let a=(0,tf.default)(o.map(u=>{let l=u.options?`(${u.options.join("|")}) ${u.description}`:u.description;return[u.name,l]}));i+=`:
|
|
140
|
+
${a}`}if(s?.length){let a=s.map(u=>`--${u}`).join(", ");i+=`
|
|
141
|
+
|
|
142
|
+
Note: ${a} allow${s.length===1?"s":""} multiple values. Because of this you need to provide all arguments before providing ${s.length===1?"that flag":"those flags"}.`,i+=`
|
|
143
|
+
Alternatively, you can use "--" to signify the end of the flags and the beginning of arguments.`}super({exit:Mn.default.getInstance().get("exitCodes")?.requiredArgs??n,message:i,parse:r}),this.args=e,this.showHelp=!0}};J.RequiredArgsError=lo;var fo=class extends Ie{args;constructor({args:e,exit:n,parse:s}){let r=`Unexpected argument${e.length===1?"":"s"}: ${e.join(", ")}`;super({exit:Mn.default.getInstance().get("exitCodes")?.unexpectedArgs??n,message:r,parse:s}),this.args=e,this.showHelp=!0}};J.UnexpectedArgsError=fo;var ho=class extends Ie{flags;constructor({exit:e,flags:n,parse:s}){let r=`Nonexistent flag${n.length===1?"":"s"}: ${n.join(", ")}`;super({exit:Mn.default.getInstance().get("exitCodes")?.nonExistentFlag??e,message:r,parse:s}),this.flags=n,this.showHelp=!0}};J.NonExistentFlagsError=ho;var po=class extends Ie{constructor(e,n){let s=`Expected --${e.name}=${n} to be one of: ${e.options.join(", ")}`;super({message:s,parse:{}})}};J.FlagInvalidOptionError=po;var go=class extends Ie{constructor(e,n){let s=`Expected ${n} to be one of: ${e.options.join(", ")}`;super({message:s,parse:{}})}};J.ArgInvalidOptionError=go;var mo=class extends Ie{constructor({exit:e,failed:n,parse:s}){let r=n.map(u=>u.reason),i=(0,zy.uniq)(r),a=`The following ${i.length===1?"error":"errors"} occurred:
|
|
144
|
+
${(0,Gy.colorize)("dim",i.join(`
|
|
145
|
+
`))}`;super({exit:Mn.default.getInstance().get("exitCodes")?.failedFlagValidation??e,message:a,parse:s})}};J.FailedFlagValidationError=mo});var sf=v(Ne=>{"use strict";p();var Vy=Ne&&Ne.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.Parser=Ne.readStdin=void 0;var Ky=O("node:os"),Jy=O("node:readline"),nf=Vy(xe()),Xy=de(),nt=te(),bt=Do(),$e;try{$e=process.env.CLI_FLAGS_DEBUG==="1"?(0,Xy.makeDebug)("parser"):()=>{}}catch{$e=()=>{}}var Yy=async()=>{let{stdin:t,stdout:e}=process;return t.isTTY?null:globalThis.oclif?.stdinCache?($e("resolved stdin from global cache",globalThis.oclif.stdinCache),globalThis.oclif.stdinCache):new Promise(n=>{let s=[],r=new AbortController,{signal:i}=r,o=setTimeout(()=>r.abort(),10),a=(0,Jy.createInterface)({input:t,output:e,terminal:!1});a.on("line",u=>{s.push(u)}),a.once("close",()=>{let u=s.join(Ky.EOL);clearTimeout(o),$e("resolved from stdin",u),globalThis.oclif={...globalThis.oclif,stdinCache:u},n(u)}),i.addEventListener("abort",()=>{$e("stdin aborted"),clearTimeout(o),a.close(),n(null)},{once:!0})})};Ne.readStdin=Yy;function Qy(t){return/^-\d/g.test(t)}var Zs=(t,e)=>{if(t.options&&!t.options.includes(e))throw new bt.FlagInvalidOptionError(t,e);return e},er="--no-",_o=class{input;argv;booleanFlags;context;currentFlag;flagAliases;raw=[];constructor(e){this.input=e,this.context=e.context??{},this.argv=[...e.argv],this._setNames(),this.booleanFlags=(0,nt.pickBy)(e.flags,n=>n.type==="boolean"),this.flagAliases=Object.fromEntries(Object.values(e.flags).flatMap(n=>[...n.aliases??[],...n.charAliases??[]].map(s=>[s,n])))}get _argTokens(){return this.raw.filter(e=>e.type==="arg")}async parse(){this._debugInput();let e=async c=>{let{isLong:h,name:g}=this.findFlag(c);if(!g){let m=c.indexOf("=");if(m!==-1){let _=c.slice(m+1);this.argv.unshift(_);let y=await e(c.slice(0,m));return y||this.argv.shift(),y}return!1}let d=this.input.flags[g];if(d.type==="option"){if(!d.multiple&&this.raw.some(_=>_.type==="flag"&&_.flag===g))throw new bt.CLIError(`Flag --${g} can only be specified once`);this.currentFlag=d;let m=h||c.length<3?this.argv.shift():c.slice(c[2]==="="?3:2);if(d.allowStdin==="only"&&m!=="-"&&m!==void 0&&!this.findFlag(m).name)throw new bt.CLIError(`Flag --${g} can only be read from stdin. The value must be "-" or not provided at all.`);if(d.allowStdin&&m==="-"||d.allowStdin==="only"){let _=await(0,Ne.readStdin)();_&&(m=_.trim())}if(typeof m!="string"||this.findFlag(m).name)throw d.options?new bt.CLIError(`Flag --${g} expects one of these values: ${d.options.join(", ")}`):new bt.CLIError(`Flag --${g} expects a value`);this.raw.push({flag:d.name,input:m,type:"flag"})}else this.raw.push({flag:d.name,input:c,type:"flag"}),!h&&c.length>2&&this.argv.unshift(`-${c.slice(2)}`);return!0},n=!0,s=[],r=!1,i=[...this.argv];for(;this.argv.length>0;){let c=this.argv.shift();if(n&&c.startsWith("-")&&c!=="-"){if(this.input["--"]!==!1&&c==="--"){n=!1;continue}if(await e(c))continue;if(c==="--"){r=!0;continue}if(this.input["--"]!==!1&&!Qy(c)){s.push(c);continue}}if(n&&this.currentFlag&&this.currentFlag.multiple&&!this.currentFlag.multipleNonGreedy){this.raw.push({flag:this.currentFlag.name,input:c,type:"flag"});continue}let h=Object.keys(this.input.args)[this._argTokens.length];this.raw.push({arg:h,input:c,type:"arg"})}let[{args:o,argv:a},{flags:u,metadata:l}]=await Promise.all([this._args(),this._flags()]);this._debugOutput(a,o,u);let f=r?[...a,...s,"--"]:[...a,...s];return{args:o,argv:f.sort((c,h)=>i.indexOf(c)-i.indexOf(h)),flags:u,metadata:l,nonExistentFlags:s,raw:this.raw}}async _args(){let e=[],n={},s=this._argTokens,r=!1,i=this.context;for(let[o,a]of Object.entries(this.input.args)){let u=s.find(l=>l.arg===o);if(i.token=u,u){if(a.options&&!a.options.includes(u.input))throw new bt.ArgInvalidOptionError(a,u.input);let l=await a.parse(u.input,i,a);e.push(l),n[u.arg]=l}else if(!a.ignoreStdin&&!r){let l=await(0,Ne.readStdin)();if(l){l=l.trim();let f=await a.parse(l,i,a);e.push(f),n[o]=f}r=!0}if(!n[o]&&(a.default||a.default===!1))if(typeof a.default=="function"){let l=await a.default();e.push(l),n[o]=l}else e.push(a.default),n[o]=a.default}for(let o of s)n[o.arg]===void 0&&e.push(o.input);return{args:n,argv:e}}_debugInput(){$e("input: %s",this.argv.join(" "));let e=Object.keys(this.input.args);e.length>0&&$e("available args: %s",e.join(" ")),Object.keys(this.input.flags).length!==0&&$e("available flags: %s",Object.keys(this.input.flags).map(n=>`--${n}`).join(" "))}_debugOutput(e,n,s){s.length>0&&$e("argv: %o",s),Object.keys(e).length>0&&$e("args: %o",e),Object.keys(n).length>0&&$e("flags: %o",n)}async _flags(){let e=async(c,h,g,d)=>{if(!h.parse)return c;let m={...g,error:g?.error,exit:g?.exit,jsonEnabled:g?.jsonEnabled,log:g?.log,logToStderr:g?.logToStderr,token:d,warn:g?.warn};try{return h.type==="boolean"?await h.parse(c,m,h):await h.parse(c,m,h)}catch(_){throw _.message=`Parsing --${h.name}
|
|
146
|
+
${_.message}
|
|
147
|
+
See more help with --help`,nf.default.getInstance().get("exitCodes")?.failedFlagParsing&&(_.oclif={exit:nf.default.getInstance().get("exitCodes")?.failedFlagParsing}),_}},n=c=>{if(c.tokens?.length){if(c.inputFlag.flag.type==="boolean"&&(0,nt.last)(c.tokens)?.input){let g=d=>{let m=[d.inputFlag.name,...d.inputFlag.flag.aliases??[]].map(y=>`${er}${y}`),_=(0,nt.last)(d.tokens)?.input;return _?!m.includes(_):!0};return{...c,valueFunction:async d=>e(g(d),d.inputFlag.flag,this.context,(0,nt.last)(d.tokens))}}if(c.inputFlag.flag.type==="option"&&c.inputFlag.flag.delimiter&&c.inputFlag.flag.multiple){let g=d=>new RegExp(`(?<!\\\\)${d}`);return{...c,valueFunction:async d=>(await Promise.all((d.tokens??[]).flatMap(m=>m.input.split(g(d.inputFlag.flag.delimiter??","))).map(m=>m.trim().replaceAll(new RegExp(`\\\\${d.inputFlag.flag.delimiter}`,"g"),d.inputFlag.flag.delimiter??",").replace(/^"(.*)"$/,"$1").replace(/^'(.*)'$/,"$1")).map(async m=>e(m,d.inputFlag.flag,this.context,{...(0,nt.last)(d.tokens),input:m})))).map(m=>Zs(d.inputFlag.flag,m))}}if(c.inputFlag.flag.type==="option"&&c.inputFlag.flag.multiple)return{...c,valueFunction:async g=>Promise.all((c.tokens??[]).map(d=>e(Zs(g.inputFlag.flag,d.input),g.inputFlag.flag,this.context,d)))};if(c.inputFlag.flag.type==="option")return{...c,valueFunction:async g=>e(Zs(g.inputFlag.flag,(0,nt.last)(c.tokens)?.input),g.inputFlag.flag,this.context,(0,nt.last)(c.tokens))}}if(c.inputFlag.flag.env&&process.env[c.inputFlag.flag.env]){let g=process.env[c.inputFlag.flag.env];if(c.inputFlag.flag.type==="option"&&g)return{...c,valueFunction:async d=>e(Zs(d.inputFlag.flag,g),d.inputFlag.flag,this.context)};if(c.inputFlag.flag.type==="boolean")return{...c,valueFunction:async d=>(0,nt.isTruthy)(process.env[d.inputFlag.flag.env]??"false")}}return typeof c.inputFlag.flag.default!==void 0?{...c,metadata:{setFromDefault:!0},valueFunction:typeof c.inputFlag.flag.default=="function"?(g,d={})=>c.inputFlag.flag.default({flags:d,options:g.inputFlag.flag}):async()=>c.inputFlag.flag.default}:c},s=c=>c.inputFlag.flag.type==="option"&&c.inputFlag.flag.defaultHelp?{...c,helpFunction:typeof c.inputFlag.flag.defaultHelp=="function"?(h,g,...d)=>h.inputFlag.flag.defaultHelp({flags:g,options:h.inputFlag},...d):h=>h.inputFlag.flag.defaultHelp}:c,r=async c=>{let h=i(l.filter(g=>!g.metadata?.setFromDefault));return Promise.all(c.map(async g=>{try{if(g.helpFunction)return{...g,metadata:{...g.metadata,defaultHelp:await g.helpFunction?.(g,h,this.context)}}}catch{}return g}))},i=c=>Object.fromEntries(c.filter(h=>h.value!==void 0).map(h=>[h.inputFlag.name,h.value])),o=this.mapAndValidateFlags(),a=await Promise.all(Object.entries(this.input.flags).filter(([c,h])=>h.type==="boolean"||h.env||h.default!==void 0||"defaultHelp"in h||o.has(c)).map(([c,h])=>({inputFlag:{flag:h,name:c},tokens:o.get(c)})).map(c=>n(c)).filter(c=>c.valueFunction!==void 0).map(c=>s(c)).map(async c=>c.metadata?.setFromDefault?c:{...c,value:await c.valueFunction?.(c)})),u=i(a.filter(c=>!c.metadata?.setFromDefault)),l=await Promise.all(a.map(async c=>c.metadata?.setFromDefault?{...c,value:await c.valueFunction?.(c,u)}:c)),f=l.some(c=>typeof c.helpFunction=="function")?await r(l):l;return{flags:i(f),metadata:{flags:Object.fromEntries(f.filter(c=>c.metadata).map(c=>[c.inputFlag.name,c.metadata]))}}}_setNames(){for(let e of Object.keys(this.input.flags))this.input.flags[e].name=e;for(let e of Object.keys(this.input.args))this.input.args[e].name=e}findFlag(e){let n=e.startsWith("--"),s=n?!1:e.startsWith("-"),r=n?this.findLongFlag(e):s?this.findShortFlag(e):void 0;return{isLong:n,name:r}}findLongFlag(e){let n=e.slice(2);if(this.input.flags[n])return n;if(this.flagAliases[n])return this.flagAliases[n].name;if(e.startsWith(er)){let s=this.booleanFlags[e.slice(er.length)];if(s&&s.allowNo)return s.name;let r=this.flagAliases[e.slice(er.length)];if(r&&r.type==="boolean"&&r.allowNo)return r.name}}findShortFlag([e,n]){return this.flagAliases[n]?this.flagAliases[n].name:Object.keys(this.input.flags).find(s=>this.input.flags[s].char===n&&n!==void 0&&this.input.flags[s].char!==void 0)}mapAndValidateFlags(){let e=new Map;for(let n of this.raw.filter(s=>s.type==="flag")){if(!(n.flag in this.input.flags))throw new bt.CLIError(`Unexpected flag ${n.flag}`);let s=e.get(n.flag)??[];e.set(n.flag,[...s,n])}return e}};Ne.Parser=_o});var bo=v(yo=>{"use strict";p();Object.defineProperty(yo,"__esModule",{value:!0});yo.validate=Zy;var rf=te(),Bn=Do();async function Zy(t){let e;function n(){if(t.output.nonExistentFlags?.length>0)throw new Bn.NonExistentFlagsError({flags:t.output.nonExistentFlags,parse:t});let d=Object.keys(t.input.args).length;if(t.input.strict&&t.output.argv.length>d){let y=t.output.argv.slice(d);throw new Bn.UnexpectedArgsError({args:y,parse:t})}let m=[],_=!1;for(let[y,D]of Object.entries(t.input.args)){if(!D.required)_=!0;else if(_)throw new Bn.InvalidArgsSpecError({args:t.input.args,parse:t});D.required&&t.output.args[y]===void 0&&m.push(D)}if(m.length>0){let y=Object.entries(t.input.flags).filter(([D,w])=>w.type==="option"&&!!w.multiple).map(([D])=>D);throw new Bn.RequiredArgsError({args:m,flagsWithMultiple:y,parse:t})}}async function s(){let d=Object.entries(t.input.flags).flatMap(([y,D])=>t.output.flags[y]!==void 0?[...D.relationships?g(y,D):[],...D.dependsOn?[c(y,D.dependsOn)]:[],...D.exclusive?[u(y,D.exclusive)]:[],...D.combinable?[l(y,D.combinable)]:[],...D.exactlyOne?[f(y,D.exactlyOne)]:[]]:D.required?[{name:y,reason:`Missing required flag ${y}`,status:"failed",validationFn:"required"}]:D.exactlyOne&&D.exactlyOne.length>0?[o(D)]:D.atLeastOne&&D.atLeastOne.length>0?[a(D)]:[]),_=(await Promise.all(d)).filter(y=>y.status==="failed");if(_.length>0)throw new Bn.FailedFlagValidationError({failed:_,parse:t})}async function r(d){if(e)return e;let m=d.map(async y=>typeof y=="string"?[y,t.output.flags[y]]:await y.when(t.output.flags)?[y.name,t.output.flags[y.name]]:null),_=await Promise.all(m);return e=Object.fromEntries(_.filter(y=>y!==null)),e}let i=d=>Object.keys(d).filter(m=>m!==void 0);function o(d){let m={name:d.name,validationFn:"validateExactlyOneAcrossFlags"};if(Object.entries(t.input.flags).map(y=>y[0]).filter(y=>t.output.flags[y]!==void 0).filter(y=>d.exactlyOne&&d.exactlyOne.includes(y)).length===0){let D=`Exactly one of the following must be provided: ${(0,rf.uniq)(d.exactlyOne?.map(w=>`--${w}`)??[]).join(", ")}`;return{...m,reason:D,status:"failed"}}return{...m,status:"success"}}function a(d){let m={name:d.name,validationFn:"validateAtLeastOneAcrossFlags"};if(Object.entries(t.input.flags).map(y=>y[0]).filter(y=>t.output.flags[y]!==void 0).filter(y=>d.atLeastOne&&d.atLeastOne.includes(y)).length===0){let D=`At least one of the following must be provided: ${(0,rf.uniq)(d.atLeastOne?.map(w=>`--${w}`)??[]).join(", ")}`;return{...m,reason:D,status:"failed"}}return{...m,status:"success"}}async function u(d,m){let _={name:d,validationFn:"validateExclusive"},y=await r(m),D=i(y);for(let w of D)if(!(t.output.metadata.flags&&t.output.metadata.flags[w]?.setFromDefault)&&!(t.output.metadata.flags&&t.output.metadata.flags[d]?.setFromDefault)&&t.output.flags[w]!==void 0){let $=t.output.metadata.flags?.[w]?.defaultHelp??t.output.flags[w];return{..._,reason:`--${w}=${$} cannot also be provided when using --${d}`,status:"failed"}}return{..._,status:"success"}}async function l(d,m){let _={name:d,validationFn:"validateCombinable"},y=new Set(m.map(w=>typeof w=="string"?w:w.name)),D=await r(m);for(let w of Object.keys(t.output.flags))if(!(t.output.metadata.flags&&t.output.metadata.flags[w]?.setFromDefault)&&!(t.output.metadata.flags&&t.output.metadata.flags[d]?.setFromDefault)&&w!==d&&t.output.flags[w]!==void 0&&!y.has(w)){let $=Object.keys(D).map(j=>`--${j}`).join(", ");return{..._,reason:`Only the following can be provided when using --${d}: ${$}`,status:"failed"}}return{..._,status:"success"}}async function f(d,m){let _={name:d,validationFn:"validateExactlyOne"},y=await r(m),D=i(y);for(let w of D)if(w!==d&&t.output.flags[w]!==void 0)return{..._,reason:`--${w} cannot also be provided when using --${d}`,status:"failed"};return{..._,status:"success"}}async function c(d,m){let _={name:d,validationFn:"validateDependsOn"},y=await r(m);if(!Object.values(y).every(w=>w!==void 0)){let w=Object.keys(y).map($=>`--${$}`).join(", ");return{..._,reason:`All of the following must be provided when using --${d}: ${w}`,status:"failed"}}return{..._,status:"success"}}async function h(d,m){let _={name:d,validationFn:"validateSome"},y=await r(m);if(!Object.values(y).some(Boolean)){let w=Object.keys(y).map($=>`--${$}`).join(", ");return{..._,reason:`One of the following must be provided when using --${d}: ${w}`,status:"failed"}}return{..._,status:"success"}}function g(d,m){return(m.relationships??[]).map(_=>{switch(_.type){case"all":return c(d,_.flags);case"none":return u(d,_.flags);case"only":return l(d,_.flags);case"some":return h(d,_.flags);default:throw new Error(`Unknown relationship type: ${_.type}`)}})}return n(),s()}});var af=v(tr=>{"use strict";p();Object.defineProperty(tr,"__esModule",{value:!0});tr.flagUsage=of;tr.flagUsages=nb;var eb=te(),tb=dt();function of(t,e={}){let n=[];t.helpLabel?n.push(t.helpLabel):(t.char&&n.push(`-${t.char}`),t.name&&n.push(` --${t.name}`));let s=t.type==="option"?` ${t.name.toUpperCase()}`:"",r=t.summary||t.description||"";return e.displayRequired&&t.required&&(r=`(required) ${r}`),r=r?(0,tb.colorize)("dim",r):void 0,[` ${n.join(",").trim()}${s}`,r]}function nb(t,e={}){return t.length===0?[]:(0,eb.sortBy)(t,n=>[n.char?-1:1,n.char,n.name]).map(n=>of(n,e))}});var Eo=v(Et=>{"use strict";p();Object.defineProperty(Et,"__esModule",{value:!0});Et.validate=Et.flagUsages=void 0;Et.parse=ab;var sb=sf(),rb=bo(),ib=af();Object.defineProperty(Et,"flagUsages",{enumerable:!0,get:function(){return ib.flagUsages}});var ob=bo();Object.defineProperty(Et,"validate",{enumerable:!0,get:function(){return ob.validate}});async function ab(t,e){let n={"--":e["--"],args:e.args??{},argv:t,context:e.context,flags:e.flags??{},strict:e.strict!==!1},r=await new sb.Parser(n).parse();return await(0,rb.validate)({input:n,output:r}),r}});var df=v(Oe=>{"use strict";p();var ub=Oe&&Oe.__createBinding||(Object.create?(function(t,e,n,s){s===void 0&&(s=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,r)}):(function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]})),cb=Oe&&Oe.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hf=Oe&&Oe.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var s=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(s[s.length]=r);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var s=t(e),r=0;r<s.length;r++)s[r]!=="default"&&ub(n,e,s[r]);return cb(n,e),n}})(),lb=Oe&&Oe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Oe,"__esModule",{value:!0});Oe.Command=void 0;var fb=O("node:url"),uf=O("node:util"),wo=lb(xe()),hb=Ys(),Co=hf(Ue()),qn=Bt(),db=de(),pb=hf(Eo()),cf=Wi(),vo=ht(),lf=te(),Ct=dt(),ff=wo.default.getInstance().get("@oclif/core");process.stdout.on("error",t=>{if(!(t&&t.code==="EPIPE"))throw t});var Fo=class{argv;config;static _base=`${ff.name}@${ff.version}`;static aliases=[];static args={};static baseFlags;static deprecateAliases;static deprecationOptions;static description;static enableJsonFlag=!1;static examples;static flags;static hasDynamicHelp=!1;static help;static hidden;static hiddenAliases=[];static id;static plugin;static pluginAlias;static pluginName;static pluginType;static state;static strict=!0;static summary;static usage;debug;id;parsed=!1;constructor(e,n){this.argv=e,this.config=n,this.id=this.ctor.id;try{this.debug=(0,db.makeDebug)(this.id?`${this.config.bin}:${this.id}`:this.config.bin)}catch{this.debug=()=>{}}}static async run(e,n){e||(e=process.argv.slice(2)),typeof n=="string"&&n.startsWith("file://")&&(n=(0,fb.fileURLToPath)(n));let s=await hb.Config.load(n||O.main?.filename||__dirname),r=wo.default.getInstance();r.has("config")||r.set("config",s);let i=new this(e,s);if(!i.id){let o=i.constructor.name.toLowerCase();i.id=o,i.ctor.id=o}return i._run()}get ctor(){return this.constructor}async _run(){let e,n;try{this.removeEnvVar("REDIRECTED"),await this.init(),n=await this.run()}catch(s){e=s,await this.catch(s)}finally{await this.finally(e)}return n&&this.jsonEnabled()&&this.logJson(this.toSuccessJson(n)),!this.parsed&&!(0,lf.isProd)()&&process.emitWarning(`Command ${this.id} did not parse its arguments. Did you forget to call 'this.parse'?`,{code:"UnparsedCommand"}),n}async catch(e){if(process.exitCode=process.exitCode??e.exitCode??1,this.jsonEnabled())this.logJson(this.toErrorJson(e));else{if(!e.message)throw e;try{Ct.ux.action.stop(Ct.ux.colorize("bold",Ct.ux.colorize("red","!")))}catch{}throw e}}error(e,n={}){return Co.error(e,n)}exit(e=0){Co.exit(e)}async finally(e){}async init(){this.debug("init version: %s argv: %o",this.ctor._base,this.argv);let e=globalThis;e["http-call"]=e["http-call"]||{},e["http-call"].userAgent=this.config.userAgent,this.warnIfCommandDeprecated()}jsonEnabled(){if(!this.ctor?.enableJsonFlag)return!1;if(this.config.scopedEnvVar?.("CONTENT_TYPE")?.toLowerCase()==="json")return!0;let e=this.argv.indexOf("--"),n=this.argv.indexOf("--json");return e===-1?n!==-1:n!==-1&&n<e}log(e="",...n){this.jsonEnabled()||(e=typeof e=="string"?e:(0,uf.inspect)(e),Ct.ux.stdout(e,...n))}logJson(e){Ct.ux.stdout(Ct.ux.colorizeJson(e,{pretty:!0,theme:this.config.theme?.json}))}logToStderr(e="",...n){this.jsonEnabled()||(e=typeof e=="string"?e:(0,uf.inspect)(e),Ct.ux.stderr(e,...n))}async parse(e,n=this.argv){e||(e=this.ctor);let s={context:this,...e,flags:(0,cf.aggregateFlags)(e.flags,e.baseFlags,e.enableJsonFlag)},r=await this.config.runHook("preparse",{argv:[...n],options:s}),i=r.successes?.length?r.successes.find(a=>a.plugin.root===wo.default.getInstance().get("rootPlugin")?.root)?.result??n:n;this.argv=[...i];let o=await pb.parse(i,s);return this.warnIfFlagDeprecated(o.flags??{}),this.parsed=!0,o}toErrorJson(e){return{error:e}}toSuccessJson(e){return e}warn(e){return this.jsonEnabled()||Co.warn(e),e}warnIfCommandDeprecated(){let[e]=(0,qn.normalizeArgv)(this.config);if(this.ctor.deprecateAliases&&this.ctor.aliases.includes(e)){let n=(0,vo.toConfiguredId)(this.ctor.id,this.config),s=(0,vo.toConfiguredId)(e,this.config);this.warn((0,qn.formatCommandDeprecationWarning)(s,{to:n}))}if(this.ctor.state==="deprecated"){let n=(0,vo.toConfiguredId)(this.ctor.id,this.config);this.warn((0,qn.formatCommandDeprecationWarning)(n,this.ctor.deprecationOptions))}}warnIfFlagDeprecated(e){let n=(0,cf.aggregateFlags)(this.ctor.flags,this.ctor.baseFlags,this.ctor.enableJsonFlag);for(let s of Object.keys(e)){let r=n[s],i=r?.deprecated;if(i&&this.warn((0,qn.formatFlagDeprecationWarning)(s,i)),r?.deprecateAliases){let a=(0,lf.uniq)([...r?.aliases??[],...r?.charAliases??[]]).map(l=>l.length===1?`-${l}`:`--${l}`);if(a.length===0)return;let u=a.filter(l=>this.argv.includes(l));for(let l of u){let f=`--${r?.name}`;r?.char&&(f+=` | -${r?.char}`),this.warn((0,qn.formatFlagDeprecationWarning)(l,{to:f}))}}}}removeEnvVar(e){let n=[];try{n.push(...this.config.scopedEnvVarKeys(e))}catch{n.push(this.config.scopedEnvVarKey(e))}n.map(s=>delete process.env[s])}};Oe.Command=Fo});var Oo=v(Ao=>{"use strict";p();Object.defineProperty(Ao,"__esModule",{value:!0});Ao.flush=_b;var gb=$t();function mb(t,e){function n(s,r=!1){return new Promise(i=>{let o=setTimeout(()=>i(null),s);r&&o.unref()})}return Promise.race([t,n(e,!0).then(()=>(0,gb.error)("timed out"))])}async function Db(){let t=new Promise(n=>{process.stdout.once("drain",()=>n(null))});if(!process.stdout.write(""))return t}async function _b(t=1e4){await mb(Db(),t)}});var So=v(Re=>{"use strict";p();var yb=Re&&Re.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Re,"__esModule",{value:!0});Re.versionAddition=Re.helpAddition=void 0;Re.run=Ab;var pf=O("node:url"),bb=yb(xe()),Eb=Ys(),xo=bn(),gf=de(),Zt=Wt(),Cb=ps(),vb=dt(),wb=(t,e)=>{if(t.length===0&&!e.isSingleCommandCLI)return!0;let n=(0,xo.getHelpFlagAdditions)(e);for(let s of t){if(n.includes(s))return!0;if(s==="--")return!1}return!1};Re.helpAddition=wb;var Fb=(t,e)=>{let n=e?.pjson.oclif.additionalVersionFlags??[];return!![...new Set(["--version",...n]).values()].includes(t[0])};Re.versionAddition=Fb;async function Ab(t,e){let n=Zt.Performance.mark(Zt.OCLIF_MARKER_OWNER,"main.run"),s=Zt.Performance.mark(Zt.OCLIF_MARKER_OWNER,"main.run#init"),r=async h=>{let g=await(0,xo.loadHelpClass)(o);await new g(o,o.pjson.oclif.helpOptions??o.pjson.helpOptions).showHelp(h)};(0,gf.setLogger)(e);let{debug:i}=(0,gf.getLogger)("main");i(`process.execPath: ${process.execPath}`),i(`process.execArgv: ${process.execArgv}`),i("process.argv: %O",process.argv),t=t??process.argv.slice(2),e&&(typeof e=="string"&&e.startsWith("file://")||e instanceof pf.URL)&&(e=(0,pf.fileURLToPath)(e));let o=await Eb.Config.load(e??O.main?.filename??__dirname);bb.default.getInstance().set("config",o),o.isSingleCommandCLI&&(t=[Cb.SINGLE_COMMAND_CLI_SYMBOL,...t]);let[a,...u]=(0,xo.normalizeArgv)(o,t),l=async(h,g)=>{n?.stop(),s?.stopped||s?.stop(),await Zt.Performance.collect(),Zt.Performance.debug(),await o.runHook("finally",{argv:u,Command:h,error:g,id:a})};if(await o.runHook("init",{argv:u,id:a}),(0,Re.versionAddition)(t,o)){vb.ux.stdout(o.userAgent),await l();return}if((0,Re.helpAddition)(t,o)){await r(t),await l();return}let f=o.findCommand(a);if(!f&&(o.flexibleTaxonomy?null:o.findTopic(a))){await r([a]),await l();return}s?.stop();let c;try{return await o.runCommand(a,u,f)}catch(h){throw c=h,h}finally{await l(f,c)}}});var mf=v(jo=>{"use strict";p();Object.defineProperty(jo,"__esModule",{value:!0});jo.execute=$b;var Ob=Ue(),xb=As(),Sb=Oo(),jb=So(),Pb=Ge();async function $b(t){if(!t.dir&&!t.loadOptions)throw new Ob.CLIError("dir or loadOptions is required.");return t.development&&(process.env.NODE_ENV="development",Pb.settings.debug=!0),(0,jb.run)(t.args??process.argv.slice(2),t.loadOptions??t.dir).then(async e=>((0,Sb.flush)(),e)).catch(async e=>(0,xb.handle)(e))}});var _f=v(Df=>{"use strict";p();Object.defineProperty(Df,"__esModule",{value:!0})});var Vb=v(P=>{p();var Rb=P&&P.__createBinding||(Object.create?(function(t,e,n,s){s===void 0&&(s=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,r)}):(function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]})),Lb=P&&P.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),en=P&&P.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var s=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(s[s.length]=r);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var s=t(e),r=0;r<s.length;r++)s[r]!=="default"&&Rb(n,e,s[r]);return Lb(n,e),n}})();Object.defineProperty(P,"__esModule",{value:!0});P.ux=P.toStandardizedId=P.toConfiguredId=P.settings=P.Performance=P.Parser=P.ModuleLoader=P.getLogger=P.Interfaces=P.loadHelpClass=P.HelpBase=P.Help=P.CommandHelp=P.flush=P.Flags=P.execute=P.handle=P.Errors=P.Plugin=P.Config=P.Command=P.Args=void 0;var Tb=te();function kb(){try{process.cwd()}catch(t){t.code==="ENOENT"&&process.stderr.write(`WARNING: current directory does not exist
|
|
148
|
+
`)}}function Mb(){if(!(process.env.OCLIF_DISABLE_ENGINE_WARNING&&(0,Tb.isTruthy)(process.env.OCLIF_DISABLE_ENGINE_WARNING)))try{let t=O("node:path"),e=vf(),n=t.join(__dirname,".."),s=O(t.join(n,"package.json"));e.satisfies(process.versions.node,s.engines.node)||process.emitWarning(`Node version must be ${s.engines.node} to use this CLI. Current node version: ${process.versions.node}`)}catch{}}kb();Mb();P.Args=en(Ro());var Bb=df();Object.defineProperty(P,"Command",{enumerable:!0,get:function(){return Bb.Command}});var yf=Ys();Object.defineProperty(P,"Config",{enumerable:!0,get:function(){return yf.Config}});Object.defineProperty(P,"Plugin",{enumerable:!0,get:function(){return yf.Plugin}});P.Errors=en(Ue());var qb=As();Object.defineProperty(P,"handle",{enumerable:!0,get:function(){return qb.handle}});var Ib=mf();Object.defineProperty(P,"execute",{enumerable:!0,get:function(){return Ib.execute}});P.Flags=en(Ni());var Nb=Oo();Object.defineProperty(P,"flush",{enumerable:!0,get:function(){return Nb.flush}});var nr=bn();Object.defineProperty(P,"CommandHelp",{enumerable:!0,get:function(){return nr.CommandHelp}});Object.defineProperty(P,"Help",{enumerable:!0,get:function(){return nr.Help}});Object.defineProperty(P,"HelpBase",{enumerable:!0,get:function(){return nr.HelpBase}});Object.defineProperty(P,"loadHelpClass",{enumerable:!0,get:function(){return nr.loadHelpClass}});P.Interfaces=en(_f());var Hb=de();Object.defineProperty(P,"getLogger",{enumerable:!0,get:function(){return Hb.getLogger}});var Wb=So();Object.defineProperty(P,"run",{enumerable:!0,get:function(){return Wb.run}});P.ModuleLoader=en(ln());P.Parser=en(Eo());var zb=Wt();Object.defineProperty(P,"Performance",{enumerable:!0,get:function(){return zb.Performance}});var Gb=Ge();Object.defineProperty(P,"settings",{enumerable:!0,get:function(){return Gb.settings}});var bf=ht();Object.defineProperty(P,"toConfiguredId",{enumerable:!0,get:function(){return bf.toConfiguredId}});Object.defineProperty(P,"toStandardizedId",{enumerable:!0,get:function(){return bf.toStandardizedId}});var Ub=dt();Object.defineProperty(P,"ux",{enumerable:!0,get:function(){return Ub.ux}})});export{hr as a,Ko as b,gr as c,Wn as d,mr as e,sa as f,zn as g,ua as h,pa as i,ba as j,Kn as k,ut as l,Du as m,Au as n,Iu as o,Cc as p,Ql as q,Vb as r};
|
|
149
|
+
/*! Bundled license information:
|
|
150
|
+
|
|
151
|
+
ejs/lib/ejs.js:
|
|
152
|
+
(**
|
|
153
|
+
* @file Embedded JavaScript templating engine. {@link http://ejs.co}
|
|
154
|
+
* @author Matthew Eernisse <mde@fleegix.org>
|
|
155
|
+
* @author Tiancheng "Timothy" Gu <timothygu99@gmail.com>
|
|
156
|
+
* @project EJS
|
|
157
|
+
* @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
|
|
158
|
+
*)
|
|
159
|
+
*/
|