@shopify/cli 4.6.1 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-6LI5GLWS.js +1 -0
- package/dist/analytics-UNRIIG4Y.js +1 -0
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-LURVEPYP.js → chunk-2CYVZUYT.js} +1 -1
- package/dist/{chunk-BDDROQGK.js → chunk-2HK4MFWP.js} +3 -3
- package/dist/chunk-2JDCVEFK.js +1 -0
- package/dist/chunk-2SZOPJYI.js +1 -0
- package/dist/chunk-2U4P6UFZ.js +6 -0
- package/dist/{chunk-EVIO6OWW.js → chunk-2WJAAJVX.js} +1 -1
- package/dist/chunk-37TEEITE.js +2 -0
- package/dist/chunk-3K6VHXC2.js +4 -0
- package/dist/chunk-4HV6A6UH.js +8 -0
- package/dist/chunk-4JY2P2A5.js +1 -0
- package/dist/chunk-4LRG5YBS.js +3 -0
- package/dist/chunk-4W3UE2ZI.js +1 -0
- package/dist/chunk-5CADTCJE.js +25 -0
- package/dist/chunk-5CR5YJTU.js +11 -0
- package/dist/chunk-5CYJG63I.js +1 -0
- package/dist/chunk-5HBIIYSK.js +1 -0
- package/dist/chunk-5HPBQ6U5.js +1 -0
- package/dist/chunk-5NO5OXYP.js +15 -0
- package/dist/chunk-63CIFL36.js +6 -0
- package/dist/chunk-6EBLULOC.js +1 -0
- package/dist/{chunk-5QDM4XIK.js → chunk-6ENBE43F.js} +1 -1
- package/dist/chunk-6OFGSZD6.js +1 -0
- package/dist/chunk-6PDR2IUL.js +11 -0
- package/dist/chunk-6VGJVXZI.js +3 -0
- package/dist/{chunk-YHH3JA36.js → chunk-6VRXGEIW.js} +1 -1
- package/dist/chunk-6WZYX5RO.js +1 -0
- package/dist/chunk-7AALWJAO.js +7 -0
- package/dist/chunk-7DOWT5JZ.js +20 -0
- package/dist/chunk-7JIQXGDE.js +9 -0
- package/dist/chunk-7MHANY34.js +1 -0
- package/dist/chunk-7WTNEG2F.js +3 -0
- package/dist/chunk-7Y7AZRL3.js +10 -0
- package/dist/chunk-ACTDYTAV.js +317 -0
- package/dist/{chunk-Y2PC2BBJ.js → chunk-AEUCDGTB.js} +4 -4
- package/dist/chunk-AGOEROAI.js +10 -0
- package/dist/{chunk-DC7TXY4K.js → chunk-AH2ZGMDM.js} +1 -1
- package/dist/chunk-AMLWPYNA.js +4 -0
- package/dist/chunk-B4OMIONW.js +5 -0
- package/dist/chunk-BR6DBMQA.js +5 -0
- package/dist/chunk-CFWHR74L.js +1 -0
- package/dist/chunk-CHMEDVDZ.js +15 -0
- package/dist/chunk-CIH6LPTG.js +6 -0
- package/dist/chunk-CMYQXGLO.js +1 -0
- package/dist/chunk-CTRXLZAJ.js +1 -0
- package/dist/{chunk-NVQOAHID.js → chunk-CYOFLJ3Z.js} +1 -1
- package/dist/{chunk-P2P2MAZQ.js → chunk-CZJZCJRX.js} +1 -1
- package/dist/chunk-CZPGC2E7.js +1 -0
- package/dist/{chunk-UTK6V2NE.js → chunk-D2K2ZBKH.js} +8 -8
- package/dist/chunk-DHU57LKD.js +1 -0
- package/dist/chunk-DKL6N3L2.js +1 -0
- package/dist/chunk-DMXQLI35.js +1 -0
- package/dist/chunk-DPNZWBT5.js +1 -0
- package/dist/{chunk-LDWMX3KZ.js → chunk-DQCIORGH.js} +1 -1
- package/dist/chunk-DQFSKPKL.js +6 -0
- package/dist/{chunk-RMF3YNWE.js → chunk-E2W5OYYM.js} +1 -1
- package/dist/chunk-E5T4YRGW.js +1 -0
- package/dist/chunk-EOMCXBCS.js +5 -0
- package/dist/{chunk-GD5IRJBE.js → chunk-EW55WWT7.js} +1 -1
- package/dist/{chunk-7EE7YOCR.js → chunk-F5HCSUXC.js} +5 -5
- package/dist/{chunk-WOYI6SDK.js → chunk-FCGKO2KY.js} +1 -1
- package/dist/{chunk-J3D4KQOQ.js → chunk-FULWTZS6.js} +1 -1
- package/dist/chunk-FWPJEL6Q.js +3 -0
- package/dist/chunk-GKOBFX4A.js +1 -0
- package/dist/chunk-GLWQMLUC.js +1 -0
- package/dist/chunk-GMTNOCMS.js +375 -0
- package/dist/chunk-GSCWZR22.js +1 -0
- package/dist/chunk-GZ64KWHX.js +8 -0
- package/dist/{chunk-EZBB2ULE.js → chunk-H5KWM27L.js} +1 -1
- package/dist/chunk-HHVHVGRT.js +1 -0
- package/dist/{chunk-LXOBW4AW.js → chunk-HLNJL4B6.js} +1 -1
- package/dist/{chunk-U3P5TIIR.js → chunk-HZIX3DIT.js} +1 -1
- package/dist/chunk-I3N6NPHF.js +2 -0
- package/dist/chunk-JD5P5RAJ.js +1 -0
- package/dist/chunk-JJJTPEMD.js +1 -0
- package/dist/{chunk-KRZABRYT.js → chunk-JLGA3B7P.js} +1 -1
- package/dist/chunk-JQ2B3VHR.js +7 -0
- package/dist/{chunk-STCLJWHD.js → chunk-JQISGC7D.js} +1 -1
- package/dist/chunk-JQVXH26X.js +6 -0
- package/dist/{chunk-PCTVUTV3.js → chunk-JUKAWTYY.js} +1 -1
- package/dist/{chunk-XZ2KUBFJ.js → chunk-JZMRBJH3.js} +2 -2
- package/dist/chunk-JZXA3H5K.js +1 -0
- package/dist/chunk-K4KTNINH.js +1 -0
- package/dist/chunk-KCS75ZM4.js +1 -0
- package/dist/{chunk-WE3VLC2S.js → chunk-KIYHEMHD.js} +7 -7
- package/dist/chunk-KK24VGVE.js +6 -0
- package/dist/{chunk-7TXWKLPY.js → chunk-KOVAFUYN.js} +1 -1
- package/dist/{chunk-NENUUNWB.js → chunk-KUNDCAQN.js} +1 -1
- package/dist/{chunk-NKBSS7YL.js → chunk-L67BU25M.js} +1 -1
- package/dist/{chunk-6HQMZ324.js → chunk-LDF4PQ3B.js} +18 -18
- package/dist/chunk-LFOBYEWG.js +1 -0
- package/dist/chunk-LJM2DUXN.js +1 -0
- package/dist/{chunk-XWPPBOGF.js → chunk-LQ7ENG4V.js} +1 -1
- package/dist/chunk-LQCR4TGH.js +3 -0
- package/dist/{chunk-QARALFHD.js → chunk-LRQYUWWB.js} +1 -1
- package/dist/{chunk-YR7K4NQT.js → chunk-LWJA2DQG.js} +1 -1
- package/dist/{chunk-NKT5U6IJ.js → chunk-LZ3GZ7NS.js} +1 -1
- package/dist/chunk-MB7E5GEY.js +2 -0
- package/dist/{chunk-7MD5MIGN.js → chunk-MLZLDL6B.js} +8 -8
- package/dist/chunk-MRCWOOSF.js +8 -0
- package/dist/chunk-N6YTJXIS.js +18 -0
- package/dist/chunk-NEMPLS7C.js +1 -0
- package/dist/chunk-OE3F7XXU.js +4 -0
- package/dist/chunk-OORWOTAP.js +3 -0
- package/dist/chunk-OUZGGWFN.js +1 -0
- package/dist/chunk-P5MNNBSO.js +1 -0
- package/dist/chunk-PAAKBWSF.js +1 -0
- package/dist/{chunk-M5YGJYNI.js → chunk-PANGX7SA.js} +1 -1
- package/dist/{chunk-7L5AIZOP.js → chunk-PIFW2R3S.js} +1 -1
- package/dist/chunk-PWSI275S.js +7 -0
- package/dist/chunk-Q5DQGV3M.js +1 -0
- package/dist/chunk-QBIVQXUJ.js +6 -0
- package/dist/chunk-QEB3HUQE.js +19 -0
- package/dist/{chunk-C7LFLIRT.js → chunk-QKGZWOOY.js} +1 -1
- package/dist/chunk-QPWMD2VR.js +1 -0
- package/dist/chunk-QRT4A2RV.js +3 -0
- package/dist/chunk-QXHENYJH.js +2 -0
- package/dist/{chunk-GJEG7VGX.js → chunk-QZBSCOJV.js} +1 -1
- package/dist/chunk-R2R6JDNH.js +1 -0
- package/dist/chunk-RUFQCXBX.js +16 -0
- package/dist/chunk-RY2SJVWM.js +12 -0
- package/dist/chunk-RZFBGBNA.js +1 -0
- package/dist/chunk-S3P5WWJD.js +1 -0
- package/dist/chunk-SEVSMWNX.js +1 -0
- package/dist/chunk-SJMTETSU.js +32 -0
- package/dist/chunk-SSJGWLCW.js +28 -0
- package/dist/chunk-SYADOUBB.js +7 -0
- package/dist/chunk-T5JXQ7KO.js +1 -0
- package/dist/chunk-TCTVI6PK.js +1 -0
- package/dist/chunk-TSLQZTXR.js +1 -0
- package/dist/chunk-TTAPXLI5.js +1 -0
- package/dist/{chunk-MMP3F6LO.js → chunk-TY4W7AYX.js} +1 -1
- package/dist/chunk-TYIGOVRQ.js +3 -0
- package/dist/{chunk-W2357IN2.js → chunk-U2Z5NMXV.js} +1 -1
- package/dist/{chunk-X5RH4ALT.js → chunk-U6HYEGAE.js} +1 -1
- package/dist/chunk-U7R6LYPJ.js +5 -0
- package/dist/chunk-UPJLZHHR.js +4 -0
- package/dist/chunk-UVQL7RUY.js +1 -0
- package/dist/chunk-V2HCVJYF.js +1 -0
- package/dist/chunk-V5SC2RYQ.js +2 -0
- package/dist/chunk-VKSR6MJG.js +2 -0
- package/dist/chunk-VRVP2GQL.js +5 -0
- package/dist/{chunk-MY2H5XPY.js → chunk-WCRZJY3P.js} +1 -1
- package/dist/{chunk-LJZIIURR.js → chunk-WHLGNDRE.js} +1 -1
- package/dist/{chunk-HVMEBH24.js → chunk-WKUGSFTB.js} +3 -3
- package/dist/chunk-X4XP2RQJ.js +1 -0
- package/dist/chunk-XAOYKECS.js +1 -0
- package/dist/chunk-XCBEYRQI.js +3 -0
- package/dist/chunk-XHZ5BWXL.js +5 -0
- package/dist/{chunk-H5I7BSNG.js → chunk-XLURZ6GL.js} +52 -52
- package/dist/chunk-XRT2W5Y2.js +10 -0
- package/dist/chunk-XUEMMLXK.js +1 -0
- package/dist/chunk-Y34LWI3S.js +19 -0
- package/dist/chunk-YHPBDS52.js +16 -0
- package/dist/{chunk-5INBKZRD.js → chunk-YIZZ5LZN.js} +1 -1
- package/dist/chunk-YN6A26QL.js +836 -0
- package/dist/chunk-YOO7DLOT.js +1 -0
- package/dist/chunk-YUVE2I3C.js +1 -0
- package/dist/chunk-YY6TFARF.js +1 -0
- package/dist/chunk-Z5K4J7HQ.js +1 -0
- package/dist/chunk-ZCNIR6YU.js +1 -0
- package/dist/{chunk-K4M32VKU.js → chunk-ZO74GSWC.js} +1 -1
- package/dist/{chunk-FBVNXRVB.js → chunk-ZRLEAF7M.js} +1 -1
- package/dist/chunk-ZSFAURIH.js +3 -0
- package/dist/cli/commands/app/app-logs/sources.js +1 -1
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +1 -1
- package/dist/cli/commands/app/env/pull.js +1 -1
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -1
- package/dist/cli/commands/app/graphiql.js +1 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/send-analytics.d.ts +5 -0
- package/dist/cli/commands/send-analytics.js +1 -0
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/cli/services/doctor-release/theme/tests/init.js +4 -8
- package/dist/cli/services/doctor-release/theme/tests/push.js +3 -4
- package/dist/command-registry.js +1 -1
- package/dist/conf-store-OAGJBITE.js +1 -0
- package/dist/custom-oclif-loader-BWAMUFQ4.js +1 -0
- package/dist/deprecations-K3NPRKBF.js +1 -0
- package/dist/dist-EXJEE23W.js +1 -0
- package/dist/dist-S62Z6IFV.js +1 -0
- package/dist/environments-ALH2N36U.js +1 -0
- package/dist/error-YX56C43A.js +1 -0
- package/dist/error-handler-FDCH72NH.js +1 -0
- package/dist/fs-SKHQZZTQ.js +1 -0
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +2 -1
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -15
- package/dist/is-global-V5VORI3F.js +1 -0
- package/dist/lib-M72BVWQ3.js +1 -0
- package/dist/local-GX5AN6ZS.js +1 -0
- package/dist/metadata-XUJUTBTB.js +1 -0
- package/dist/{morph-ABSWZEVT.js → morph-77RHJICZ.js} +1 -1
- package/dist/node-package-manager-3WIYU7Y3.js +1 -0
- package/dist/notifications-system-RHULO564.js +1 -0
- package/dist/os-M6X7KOR4.js +1 -0
- package/dist/output-X47P6ICP.js +1 -0
- package/dist/{prettier-6ZMB2MMO.js → prettier-RVUAAWC7.js} +1 -1
- package/dist/system-SR5G7WEW.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-VYWSLAQ6.js +1 -0
- package/dist/upgrade-PFQ7JMXG.js +1 -0
- package/dist/version-FK4ETQ22.js +1 -0
- package/dist/version-U4GM2LNG.js +1 -0
- package/dist/workerd-NAPS5TA7.js +18 -0
- package/oclif.manifest.json +146 -120
- package/package.json +7 -8
- package/dist/analytics-3ICKUTK2.js +0 -1
- package/dist/analytics-73NVZI4Z.js +0 -1
- package/dist/chunk-25Z36VJG.js +0 -1
- package/dist/chunk-2AVFG5KT.js +0 -1
- package/dist/chunk-2DMTEIS3.js +0 -2
- package/dist/chunk-2GB3EAD3.js +0 -153
- package/dist/chunk-2NB4P6BB.js +0 -5
- package/dist/chunk-2OYQHHKC.js +0 -3
- package/dist/chunk-2VJKXWLG.js +0 -4
- package/dist/chunk-3Q5ESVIY.js +0 -1
- package/dist/chunk-3XCIUG5P.js +0 -1
- package/dist/chunk-445NFHXL.js +0 -3
- package/dist/chunk-4BPFJDH3.js +0 -1
- package/dist/chunk-4E5RGEJO.js +0 -1
- package/dist/chunk-4IHSAT76.js +0 -2
- package/dist/chunk-4TANJ4JK.js +0 -1
- package/dist/chunk-534U3DKZ.js +0 -6
- package/dist/chunk-56T6YCU2.js +0 -1
- package/dist/chunk-5HJTCBBV.js +0 -317
- package/dist/chunk-5Q4WAGQL.js +0 -3
- package/dist/chunk-65CEF3SM.js +0 -8
- package/dist/chunk-6KAWCN3I.js +0 -10
- package/dist/chunk-6ZPHB5U2.js +0 -3
- package/dist/chunk-7AWKXTNS.js +0 -4
- package/dist/chunk-7US4TVO2.js +0 -32
- package/dist/chunk-A4SBXDZB.js +0 -14
- package/dist/chunk-A7IDVXF7.js +0 -1
- package/dist/chunk-AFM3UZQO.js +0 -684
- package/dist/chunk-AHLNB45E.js +0 -3
- package/dist/chunk-ARCAYYRW.js +0 -1
- package/dist/chunk-B3U6GDHL.js +0 -7
- package/dist/chunk-BCZMDFI2.js +0 -370
- package/dist/chunk-BKJMVAI7.js +0 -1
- package/dist/chunk-BPDUBZMU.js +0 -1
- package/dist/chunk-BQOKTPUU.js +0 -1
- package/dist/chunk-CELVG4AL.js +0 -6
- package/dist/chunk-CNI7ZUST.js +0 -3
- package/dist/chunk-CONJQV7M.js +0 -11
- package/dist/chunk-CV5ELBVU.js +0 -1
- package/dist/chunk-DXUISRMZ.js +0 -2
- package/dist/chunk-EHV7EKB3.js +0 -2
- package/dist/chunk-EJDWYASP.js +0 -1
- package/dist/chunk-EQNJ2NQD.js +0 -3
- package/dist/chunk-FG5QXIQH.js +0 -9
- package/dist/chunk-FGG6HXIZ.js +0 -1
- package/dist/chunk-FJCZ4F6J.js +0 -5
- package/dist/chunk-FKH5ZF2C.js +0 -1
- package/dist/chunk-GT6BJ2GK.js +0 -1
- package/dist/chunk-GWNV44NZ.js +0 -18
- package/dist/chunk-GXO2RRV2.js +0 -1
- package/dist/chunk-H5YC3EP6.js +0 -16
- package/dist/chunk-HY3INWPI.js +0 -1
- package/dist/chunk-I6ST5X56.js +0 -1
- package/dist/chunk-ID6ASBGV.js +0 -15
- package/dist/chunk-IDQT2UY7.js +0 -1
- package/dist/chunk-IIOFR25P.js +0 -3
- package/dist/chunk-IJEDTDSJ.js +0 -25
- package/dist/chunk-ILICQWUF.js +0 -1
- package/dist/chunk-IMWEC6NF.js +0 -16
- package/dist/chunk-ITNFDLZ4.js +0 -1
- package/dist/chunk-IU5U6KKO.js +0 -4
- package/dist/chunk-IXCDFXMB.js +0 -2
- package/dist/chunk-JRTJZAFJ.js +0 -19
- package/dist/chunk-JT7YTXJ7.js +0 -1
- package/dist/chunk-JX4HSDDG.js +0 -28
- package/dist/chunk-K5GJNXDK.js +0 -1
- package/dist/chunk-KCNOFNS5.js +0 -11
- package/dist/chunk-KM2R6O7V.js +0 -6
- package/dist/chunk-KNFDN3AP.js +0 -1
- package/dist/chunk-LEDVV6XK.js +0 -1
- package/dist/chunk-LEEVJH4B.js +0 -1
- package/dist/chunk-MDQHEW7V.js +0 -8
- package/dist/chunk-MPYCIVRA.js +0 -7
- package/dist/chunk-N4RYVOXT.js +0 -2
- package/dist/chunk-NB6HHZ36.js +0 -1
- package/dist/chunk-NEK2KNKR.js +0 -8
- package/dist/chunk-NJONAV7V.js +0 -1
- package/dist/chunk-OHQTOHUX.js +0 -15
- package/dist/chunk-PKR6HS4T.js +0 -6
- package/dist/chunk-PKRDBS7O.js +0 -5
- package/dist/chunk-PMD6S7YG.js +0 -1
- package/dist/chunk-PUOCHFFI.js +0 -1
- package/dist/chunk-Q2DPBMV4.js +0 -1
- package/dist/chunk-Q6XT3YKV.js +0 -3
- package/dist/chunk-QEL3F2NY.js +0 -5
- package/dist/chunk-R2W5B7YI.js +0 -3
- package/dist/chunk-REABQXMP.js +0 -1
- package/dist/chunk-RTPVI7LE.js +0 -3
- package/dist/chunk-SFZQFEZB.js +0 -6
- package/dist/chunk-STJ3LWFL.js +0 -1
- package/dist/chunk-STJWHL36.js +0 -7
- package/dist/chunk-SZJHOXS6.js +0 -6
- package/dist/chunk-TEPMNVJN.js +0 -1
- package/dist/chunk-TNSMROUR.js +0 -1
- package/dist/chunk-UDDJQ34Y.js +0 -1
- package/dist/chunk-UKQ7NE5V.js +0 -1
- package/dist/chunk-UOQBCBKY.js +0 -1
- package/dist/chunk-UQWT2PFO.js +0 -1
- package/dist/chunk-V26QBVCN.js +0 -1
- package/dist/chunk-VVEQ4IHW.js +0 -1
- package/dist/chunk-VXBHTSMX.js +0 -20
- package/dist/chunk-WDCCITSG.js +0 -1
- package/dist/chunk-WGMYSPR2.js +0 -10
- package/dist/chunk-WHT2RCAD.js +0 -11
- package/dist/chunk-WW7TENNA.js +0 -1
- package/dist/chunk-WXJGZGQS.js +0 -1
- package/dist/chunk-X4AZV5A2.js +0 -1
- package/dist/chunk-XBBP5BWC.js +0 -7
- package/dist/chunk-XH32NPYG.js +0 -1
- package/dist/chunk-Y7A7Z2V3.js +0 -1
- package/dist/chunk-YE7XCF44.js +0 -1
- package/dist/chunk-YIFT67BD.js +0 -4
- package/dist/chunk-Z36JS7OX.js +0 -6
- package/dist/chunk-ZHPPBTNE.js +0 -28
- package/dist/chunk-ZMSE5SQB.js +0 -1
- package/dist/conf-store-YW3NWYCN.js +0 -1
- package/dist/custom-oclif-loader-4ZAXX5MR.js +0 -1
- package/dist/deprecations-VW7UIMZX.js +0 -1
- package/dist/dist-I3VCRVOE.js +0 -1
- package/dist/dist-MP4AU5F4.js +0 -1
- package/dist/environments-5P57CTOG.js +0 -1
- package/dist/error-U7DOQOWG.js +0 -1
- package/dist/error-handler-AOEXPYI7.js +0 -1
- package/dist/fs-K5NT4W2Q.js +0 -1
- package/dist/hooks/app-init.d.ts +0 -9
- package/dist/hooks/app-init.js +0 -1
- package/dist/is-global-CFYYUAIJ.js +0 -1
- package/dist/is-wsl-UEMXYJPN.js +0 -1
- package/dist/lib-JKLF33A7.js +0 -1
- package/dist/local-BRRQOCGY.js +0 -1
- package/dist/local-storage-FVSI2IBZ.js +0 -1
- package/dist/metadata-HVSGVFUQ.js +0 -1
- package/dist/node-package-manager-6JURLQKU.js +0 -1
- package/dist/notifications-system-BTEFKXCS.js +0 -1
- package/dist/output-EXMTVS2V.js +0 -1
- package/dist/system-DUJDILSL.js +0 -1
- package/dist/ui-AX6ZMY6P.js +0 -1
- package/dist/upgrade-5TEVQNLY.js +0 -1
- package/dist/version-7LKOAVDW.js +0 -1
- package/dist/version-PRFBZAWQ.js +0 -1
- package/dist/workerd-MFV7EBVM.js +0 -18
- /package/dist/{chunk-VDN6MEYI.js → chunk-NJPL5BTN.js} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{b as ge}from"./chunk-AH2ZGMDM.js";import{a as he,c as ye}from"./chunk-ZSFAURIH.js";import{b as ue}from"./chunk-JZMRBJH3.js";import{a as Te}from"./chunk-NEMPLS7C.js";import{C as ve,H as Pe,J as Ae,L as ke,U as xe,W as Ce,h as we,pa as Fe,sa as Le}from"./chunk-ACTDYTAV.js";import{Y as Ie,aa as Re,o as be}from"./chunk-F5HCSUXC.js";import{b as fe,f as de}from"./chunk-JJJTPEMD.js";import{B as ie,D as re,E as oe,f as C,g as ee,i as te,p as ae}from"./chunk-KK24VGVE.js";import{e as Q}from"./chunk-AGOEROAI.js";import{D as $,H as ce,y as le,z as pe}from"./chunk-GMTNOCMS.js";import{c as ne}from"./chunk-EOMCXBCS.js";import{a as z}from"./chunk-5CYJG63I.js";import{d as se}from"./chunk-JQISGC7D.js";import{h as m}from"./chunk-R2R6JDNH.js";import{a as He}from"./chunk-CTNBSUVU.js";import{$a as Z,Ca as I,Ja as V,Oa as K,Ta as R,Ua as x,Va as B,Wa as W,_ as H,hb as X,ib as J,ka as q,ma as O,qb as h,rb as F,sa as T,sb as b,ua as _,wa as Y}from"./chunk-Y34LWI3S.js";import{e as me}from"./chunk-XAOYKECS.js";import{d as l,e as k,f as M,p as U,q as D}from"./chunk-773TIA5M.js";import{e as De,g as c}from"./chunk-VKWPEFWQ.js";c();c();var y={reactRouter:{url:"https://github.com/Shopify/shopify-app-template-react-router",label:"Build a React Router app (recommended)",visible:!0,branches:{prompt:"For your React Router template, which language do you want?",options:{javascript:{branch:"javascript-cli",label:"JavaScript"},typescript:{branch:"main-cli",label:"TypeScript"}}}},remix:{url:"https://github.com/Shopify/shopify-app-template-remix",label:"Build a Remix app",visible:!1,branches:{prompt:"For your Remix template, which language do you want?",options:{javascript:{branch:"javascript",label:"JavaScript"},typescript:{branch:"main",label:"TypeScript"}}}},none:{url:"https://github.com/Shopify/shopify-app-template-extension-only",label:"Build an extension-only app",visible:!0},node:{url:"https://github.com/Shopify/shopify-app-template-node",visible:!1},ruby:{url:"https://github.com/Shopify/shopify-app-template-ruby",visible:!1}},S=Object.keys(y),L=S.filter(e=>y[e].visible),qe=["reactRouter","none"],Oe=async e=>{let t=e.template,a=e.flavor,r={template:y.reactRouter.url};t??=await $({choices:qe.map(o=>({label:y[o].label||o,value:o})),message:"Get started building your app:",defaultValue:S.find(o=>y[o].url===r.template)});let i={...e,template:t,templateType:P(t)?t:"custom",globalCLIResult:{install:!1,alreadyInstalled:!1}},n,s;if(i.templateType!=="custom"){let o=y[i.templateType];n=o.url,o.branches&&(a?s=o.branches.options[a]?.branch:s=await $({message:o.branches.prompt||"Choose a flavor:",choices:Object.entries(o.branches.options).map(([f,u])=>({value:u.branch,label:u.label}))}))}return s&&(n=`${n}#${s}`),i.template=n||i.template||r.template,i.globalCLIResult=await J(),i},_e=Oe;function P(e){return S.includes(e)}function $e(e){return e!==void 0&&P(e)&&y[e].branches!==void 0}c();c();import{platform as Ye}from"os";async function Se({packageJSON:e,local:t,useGlobalCLI:a}){if(e.dependencies=e.dependencies??{},a?delete e.dependencies["@shopify/cli"]:e.dependencies["@shopify/cli"]=z,delete e.dependencies["@shopify/app"],t){let r=await Ve("cli");e.dependencies["@shopify/cli"]=r;let i={"@shopify/cli":r};e.overrides=e.overrides?{...e.overrides,...i}:i,e.resolutions=e.resolutions?{...e.resolutions,...i}:i}return e}async function Ve(e){return`file:${await Z(`packages/${e}`,{type:"directory",cwd:U(import.meta.url)})}`}async function Ge({from:e,packageManager:t}){let a=Ye()==="win32"&&t==="yarn"?["--network-concurrency","1"]:[];return ae({directory:k(e),packageManager:t,args:a})}c();async function G(e,t){let r=(await W([l(e,"**",".git"),l(e,"**",".github"),l(e,"**",".gitmodules"),l(e,"**",".cli-liquid-bypass"),l(e,"LICENSE*"),l(e,"**","frontend/LICENSE*"),l(e,"package.json.cli2")],{dot:!0,onlyFiles:!1,onlyDirectories:!1,ignore:["**/node_modules/**"]})).map(s=>I(s,{force:!0})),i=new Set(ee[t]),n=C.filter(s=>!i.has(s)).map(s=>{let o=l(e,s);if(x(o))return V(o)});return Promise.all([...r,...n])}async function Ke(e){let t=e.packageManager,a=H(e.name),r=l(e.directory,a),i=ge(e.template);await Ee(r,a),await Be(r),le({body:["Initializing project with",{command:t},`
|
|
2
|
+
Use the`,{command:"--package-manager"},"flag to select a different package manager."]}),await q(async o=>{let f=l(o,"download"),u=i.filePath?l(f,i.filePath):f,d=l(o,"app"),A=i.branch?`${i.baseURL}#${i.branch}`:i.baseURL;await Y(f);let w=[{title:`Downloading template from ${A}`,task:async()=>{await ye({repoUrl:A,destination:f,shallow:!0})}}];w.push({title:"Parsing liquid",task:async()=>{await ue(u,d,{dependency_manager:t,app_name:e.name})}},{title:"Updating package.json",task:async()=>{let p=(await ie(d)).content;p.name=a,p.author=await ne()??"",p.private=!0;let v=["extensions/*"].concat(We(d));switch(t){case"npm":case"yarn":case"bun":p.workspaces=v;break;case"pnpm":{await Ze(d,v),await T(l(d,".npmrc"),`auto-install-peers=true
|
|
3
|
+
`);break}case"homebrew":case"unknown":throw new te}await Se({packageJSON:p,local:e.local,directory:d,useGlobalCLI:e.useGlobalCLI}),await re(d,p)}}),e.postCloneActions.removeLockfilesFromGitignore&&w.push({title:"Removing lockfiles from .gitignore",task:async()=>{let p=l(d,".gitignore");if(await R(p)){let v=await O(p);C.forEach(Me=>{let Ue=new RegExp(`^${Me.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`,"gm");v=v.replace(Ue,"")}),await _(p,v.trim())}}}),await me()&&w.push({title:"[Shopifolks-only] Configuring the project's NPM registry",task:async()=>{let p=l(d,".npmrc");await T(p,`@shopify:registry=https://registry.npmjs.org
|
|
4
|
+
`)}});let N=!1;w.push({title:"Preparing project directory",task:async()=>{await Ee(r,a),N=!0,await K(d,r)}}),w.push({title:`Installing dependencies with ${t}`,task:async()=>{await Ge({from:r,packageManager:t})}},{title:"Cleaning up",task:async()=>{await G(r,t)}},{title:"Initializing a Git repository...",task:async()=>{await he(r)}});try{await ce(w)}catch(p){throw N&&await I(r).catch(()=>{}),p}});let n;if(e.selectedAppOrNameResult.result==="new"){let o=await ve(r,e.name),f=e.selectedAppOrNameResult.org;n=await e.developerPlatformClient.createApp(f,o)}else n=e.selectedAppOrNameResult.app;await Fe({directory:r,apiKey:n.apiKey,appId:n.id,organizationId:n.organizationId,configName:"shopify.app.toml",developerPlatformClient:e.developerPlatformClient,isNewApp:!0},!1);let s=await Le({directory:r,clientId:void 0,forceRelink:!1,userProvidedConfigName:void 0});return pe({headline:[{userInput:a},"is ready for you to build!"],nextSteps:[["Run",{command:`cd ${a}`}],["For extensions, run",{command:F(t,"shopify app generate extension")}],["To see your app, run",{command:F(t,"shopify app dev")}]],reference:[{link:{label:"Shopify docs",url:"https://shopify.dev"}},[{link:{label:"Shopify Dev MCP,",url:"https://shopify.dev/docs/apps/build/devmcp"}},"connect your AI assistant to development resources"],["For an overview of commands, run",{command:F(t,"shopify app","--help")}]]}),{app:s.app}}async function Ee(e,t){if(await R(e))throw new m(`
|
|
5
|
+
A directory with this name (${t}) already exists.
|
|
6
|
+
Choose a new name for your app.`)}async function Be(e){let t=new Q({projectName:"shopify-cli-app"}),a=k(e);t.delete(a)}function We(e){return["web","web/frontend"].filter(t=>x(l(e,t)))}async function Ze(e,t){let a=l(e,"pnpm-workspace.yaml");if(await R(a))return;let r=t.map(i=>` - '${i}'`).join(`
|
|
7
|
+
`);await _(a,`packages:
|
|
8
|
+
${r}`)}var je=Ke;c();c();function E(e){try{return new URL(e)}catch{return}}function Qe(e){if(!e)return;let t=e.toLowerCase();for(let r of[t,`https://${t}`]){let i=E(r)?.hostname;if(i)return i}let a=t.replace(/^https?:\/\//,"").split("/")[0];if(a)return a}function jt(e){let t=Qe(e);if(!t)return;let a=t.match(/^([^.]+)\.myshopify\.com$/);return a?a[1]:void 0}function Ne(e){if(!e)return;let t=E(e);if(t&&t.origin!=="https://github.com")throw new m("Only GitHub repository references are supported, e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]");if(!t&&!P(e))throw new m(b`Only ${L.map(a=>b`${h.yellow(a)}`.value).join(", ")} template aliases are supported, please provide a valid URL`)}function ze(e,t){if(!e){if(t)throw new m(b`The ${h.yellow("--flavor")} flag requires the ${h.yellow("--template")} flag to be set`);return}if(!t)return;if(!P(e))throw new m(b`The ${h.yellow("--flavor")} flag is not supported for custom templates`);let a=y[e];if(!a.branches)throw new m(b`The ${h.yellow(e)} template does not support flavors`);if(!a.branches.options[t])throw new m(b`Invalid option for ${h.yellow("--flavor")}\nThe ${h.yellow("--flavor")} flag for ${h.yellow(e)} accepts only ${Object.keys(a.branches.options).map(r=>b`${h.yellow(r)}`.value).join(", ")}`)}var g=De(He(),1);var j=class e extends Te{static get requiresSyncAnalytics(){return!0}static summary="Create a new app project";static examples=["<%= config.bin %> <%= command.id %> --name my-app --organization-id 123 --template reactRouter --flavor typescript","<%= config.bin %> <%= command.id %> --client-id 123 --template none"];static flags={...fe,name:g.Flags.string({char:"n",env:"SHOPIFY_FLAG_NAME",hidden:!1,description:"The name for the new app. When provided, skips the app selection prompt and creates a new app with this name. Required in non-interactive environments unless --client-id is provided."}),path:g.Flags.string({char:"p",env:"SHOPIFY_FLAG_PATH",parse:async t=>M(t),default:async()=>D(),hidden:!1}),template:de(g.Flags.string({description:`The app template. Accepts one of the following:
|
|
9
|
+
- <${L.join("|")}>
|
|
10
|
+
- Any GitHub repo with optional branch and subpath, e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]`,env:"SHOPIFY_FLAG_TEMPLATE"})),flavor:g.Flags.string({description:"Which flavor of the given template to use. Required in non-interactive environments when the selected template offers multiple flavors.",env:"SHOPIFY_FLAG_TEMPLATE_FLAVOR"}),"package-manager":g.Flags.string({char:"d",env:"SHOPIFY_FLAG_PACKAGE_MANAGER",hidden:!1,options:["npm","yarn","pnpm","bun"]}),local:g.Flags.boolean({char:"l",env:"SHOPIFY_FLAG_LOCAL",default:!1,hidden:!0}),"client-id":g.Flags.string({hidden:!1,description:"The Client ID of your app. Use this to automatically link your new project to an existing app. In non-interactive environments, provide this flag or both --name and --organization-id.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),"organization-id":g.Flags.string({hidden:!1,description:"The organization ID. Your organization ID can be found in your Dev Dashboard URL: https://dev.shopify.com/dashboard/<organization-id>. Required in non-interactive environments unless --client-id is provided.",env:"SHOPIFY_FLAG_ORGANIZATION_ID",exclusive:["client-id"]})};static nonTTYFlagRequirements(){return[{flags:["name","client-id"]},{flags:["organization-id","client-id"]},{flags:["flavor"],when:t=>$e(t.template)}]}async run(){let{flags:t}=await this.parse(e);if(Ne(t.template),ze(t.template,t.flavor),t.name!==void 0&&t.name.trim()==="")throw new m("The --name flag can't be empty","Provide a valid app name, for example: --name my-app");let a=oe(t["package-manager"]),r=t.name??await Xe(t.path),i=Ie();await i.session();let n=await _e({template:t.template,flavor:t.flavor}),s,o;if(t["client-id"]){let u=await xe({apiKey:t["client-id"]});o=u.title,s={result:"existing",app:u}}else{let u;t["organization-id"]?u=await Re(t["organization-id"],i):u=await Ce();let{organization:d,apps:A,hasMorePages:w}=await i.orgAndApps(u.id);s=await Je(t.name!==void 0,r,A,w,d,i),o=s.result==="new"?s.name:s.app.title}n.globalCLIResult.install&&await X(a),await se(()=>({cmd_create_app_template:n.templateType,cmd_create_app_template_url:n.template}));let{app:f}=await je({name:o,selectedAppOrNameResult:s,packageManager:a,template:n.template,local:t.local,directory:t.path,useGlobalCLI:n.globalCLIResult.alreadyInstalled||n.globalCLIResult.install,developerPlatformClient:i,postCloneActions:{removeLockfilesFromGitignore:n.templateType!=="custom"}});return{app:f}}};async function Xe(e){for(let t=0;t<3;t++){let a=await B({suffix:"app",directory:e});if(be(a))return a}return""}async function Je(e,t,a,r,i,n){let s=a.length===0||e;if(s||(s=await ke()),s)return{result:"new",name:e?t:await Ae(t),org:i};{let o=await Pe(we(n,i.id),a,r);if(!o)throw new m("Unable to select an app: the selection prompt was interrupted.");let f=await n.appFromIdentifiers(o.apiKey);if(!f)throw new m(`App with id ${o.id} not found`);return{result:"existing",app:f}}}export{Qe as a,jt as b,j as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as g,W as d,_ as f}from"./chunk-F5HCSUXC.js";import{b as c,c as l,d as u}from"./chunk-JJJTPEMD.js";import{b as m}from"./chunk-RY2SJVWM.js";import{G as e}from"./chunk-GMTNOCMS.js";import{wb as n}from"./chunk-Y34LWI3S.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();async function h(a){let t;try{t=await g()}catch(i){if(a.json&&i instanceof f){n(JSON.stringify({organizations:[]},null,2));return}throw i}if(a.json){let i={organizations:t.map(s=>({id:s.id,gid:d(s.id),name:s.businessName}))};n(JSON.stringify(i,null,2));return}p(t)}function p(a){let t=a.map(i=>({id:i.id,name:i.businessName}));e({rows:t,columns:{id:{header:"ID"},name:{header:"NAME"}}})}var r=class a extends m{static baseFlags=u;static summary="List Shopify organizations you have access to.";static descriptionWithMarkdown="Lists the Shopify organizations that you have access to, along with their organization IDs.";static description=this.descriptionWithoutMarkdown();static flags={...c,...l};async run(){let{flags:t}=await this.parse(a);await h({json:t.json})}};export{r as a};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import{a as vh,b as qe,c as Br,d as Gt,e as Jr,f as ht,g as Hr,h as Kr,i as O}from"./chunk-B4OMIONW.js";import{a as wh}from"./chunk-BOAGJ6P5.js";import{b as Sh}from"./chunk-LD6ZCTZ3.js";import{d as Oi,f as ye}from"./chunk-XAOYKECS.js";import{a as wi}from"./chunk-JD5P5RAJ.js";import{a as Si,c as Wt,d as pt,e as Gr,f as zr,i as xi,n as _i,o as bi,q as qi,r as Ei}from"./chunk-773TIA5M.js";import{a as Ci}from"./chunk-CRALWNNO.js";import{a as D,b as mh,c as p,d as gh,e as Y,f as he,g as s}from"./chunk-VKWPEFWQ.js";var Li=p((pE,Ii)=>{"use strict";s();var Eh=D("os"),Ri=D("tty"),ue=Ci(),{env:$}=process,Ee;ue("no-color")||ue("no-colors")||ue("color=false")||ue("color=never")?Ee=0:(ue("color")||ue("colors")||ue("color=true")||ue("color=always"))&&(Ee=1);"FORCE_COLOR"in $&&($.FORCE_COLOR==="true"?Ee=1:$.FORCE_COLOR==="false"?Ee=0:Ee=$.FORCE_COLOR.length===0?1:Math.min(parseInt($.FORCE_COLOR,10),3));function Xr(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Qr(e,t){if(Ee===0)return 0;if(ue("color=16m")||ue("color=full")||ue("color=truecolor"))return 3;if(ue("color=256"))return 2;if(e&&!t&&Ee===void 0)return 0;let r=Ee||0;if($.TERM==="dumb")return r;if(process.platform==="win32"){let n=Eh.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in $)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in $)||$.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in $)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($.TEAMCITY_VERSION)?1:0;if($.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in $){let n=parseInt(($.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch($.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test($.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($.TERM)||"COLORTERM"in $?1:r}function Ch(e){let t=Qr(e,e&&e.isTTY);return Xr(t)}Ii.exports={supportsColor:Ch,stdout:Xr(Qr(!0,Ri.isatty(1))),stderr:Xr(Qr(!0,Ri.isatty(2)))}});var Di=p((yE,ji)=>{"use strict";s();var Oh=Li(),Je=Ci();function Mi(e){if(/^\d{3,4}$/.test(e)){let r=/(\d{1,2})(\d{2})/.exec(e)||[];return{major:0,minor:parseInt(r[1],10),patch:parseInt(r[2],10)}}let t=(e||"").split(".").map(r=>parseInt(r,10));return{major:t[0],minor:t[1],patch:t[2]}}function en(e){let{CI:t,FORCE_HYPERLINK:r,NETLIFY:n,TEAMCITY_VERSION:i,TERM_PROGRAM:o,TERM_PROGRAM_VERSION:a,VTE_VERSION:u,TERM:l}=process.env;if(r)return!(r.length>0&&parseInt(r,10)===0);if(Je("no-hyperlink")||Je("no-hyperlinks")||Je("hyperlink=false")||Je("hyperlink=never"))return!1;if(Je("hyperlink=true")||Je("hyperlink=always")||n)return!0;if(!Oh.supportsColor(e)||e&&!e.isTTY)return!1;if("WT_SESSION"in process.env)return!0;if(process.platform==="win32"||t||i)return!1;if(o){let f=Mi(a||"");switch(o){case"iTerm.app":return f.major===3?f.minor>=1:f.major>3;case"WezTerm":return f.major>=20200620;case"vscode":return f.major>1||f.major===1&&f.minor>=72;case"ghostty":return!0}}if(u){if(u==="0.50.0")return!1;let f=Mi(u);return f.major>0||f.minor>=50}return l==="alacritty"}ji.exports={supportsHyperlink:en,stdout:en(process.stdout),stderr:en(process.stderr)}});var Ji=p((YE,Bi)=>{s();function Ih(){this.__data__=[],this.size=0}Bi.exports=Ih});var rn=p((ZE,Hi)=>{s();function Lh(e,t){return e===t||e!==e&&t!==t}Hi.exports=Lh});var xt=p((QE,Ki)=>{s();var Mh=rn();function jh(e,t){for(var r=e.length;r--;)if(Mh(e[r][0],t))return r;return-1}Ki.exports=jh});var Vi=p((tC,Yi)=>{s();var Dh=xt(),Nh=Array.prototype,kh=Nh.splice;function $h(e){var t=this.__data__,r=Dh(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():kh.call(t,r,1),--this.size,!0}Yi.exports=$h});var Xi=p((nC,Zi)=>{s();var Uh=xt();function Wh(e){var t=this.__data__,r=Uh(t,e);return r<0?void 0:t[r][1]}Zi.exports=Wh});var eo=p((oC,Qi)=>{s();var Gh=xt();function zh(e){return Gh(this.__data__,e)>-1}Qi.exports=zh});var ro=p((aC,to)=>{s();var Bh=xt();function Jh(e,t){var r=this.__data__,n=Bh(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}to.exports=Jh});var _t=p((cC,no)=>{s();var Hh=Ji(),Kh=Vi(),Yh=Xi(),Vh=eo(),Zh=ro();function He(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}He.prototype.clear=Hh;He.prototype.delete=Kh;He.prototype.get=Yh;He.prototype.has=Vh;He.prototype.set=Zh;no.exports=He});var oo=p((lC,io)=>{s();var Xh=_t();function Qh(){this.__data__=new Xh,this.size=0}io.exports=Qh});var ao=p((hC,so)=>{s();function ey(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}so.exports=ey});var co=p((dC,uo)=>{s();function ty(e){return this.__data__.get(e)}uo.exports=ty});var lo=p((gC,fo)=>{s();function ry(e){return this.__data__.has(e)}fo.exports=ry});var nn=p((wC,po)=>{s();var ny=Gt(),iy=Jr(),oy="[object AsyncFunction]",sy="[object Function]",ay="[object GeneratorFunction]",uy="[object Proxy]";function cy(e){if(!iy(e))return!1;var t=ny(e);return t==sy||t==ay||t==oy||t==uy}po.exports=cy});var yo=p((xC,ho)=>{s();var fy=qe(),ly=fy["__core-js_shared__"];ho.exports=ly});var vo=p((bC,go)=>{s();var on=yo(),mo=(function(){var e=/[^.]+$/.exec(on&&on.keys&&on.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function py(e){return!!mo&&mo in e}go.exports=py});var sn=p((EC,wo)=>{s();var hy=Function.prototype,yy=hy.toString;function dy(e){if(e!=null){try{return yy.call(e)}catch{}try{return e+""}catch{}}return""}wo.exports=dy});var xo=p((OC,So)=>{s();var my=nn(),gy=vo(),vy=Jr(),wy=sn(),Sy=/[\\^$.*+?()[\]{}|]/g,xy=/^\[object .+?Constructor\]$/,_y=Function.prototype,by=Object.prototype,qy=_y.toString,Ey=by.hasOwnProperty,Cy=RegExp("^"+qy.call(Ey).replace(Sy,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Oy(e){if(!vy(e)||gy(e))return!1;var t=my(e)?Cy:xy;return t.test(wy(e))}So.exports=Oy});var bo=p((PC,_o)=>{s();function Ty(e,t){return e?.[t]}_o.exports=Ty});var Oe=p((FC,qo)=>{s();var Py=xo(),Ay=bo();function Fy(e,t){var r=Ay(e,t);return Py(r)?r:void 0}qo.exports=Fy});var er=p((IC,Eo)=>{s();var Ry=Oe(),Iy=qe(),Ly=Ry(Iy,"Map");Eo.exports=Ly});var bt=p((MC,Co)=>{s();var My=Oe(),jy=My(Object,"create");Co.exports=jy});var Po=p((DC,To)=>{s();var Oo=bt();function Dy(){this.__data__=Oo?Oo(null):{},this.size=0}To.exports=Dy});var Fo=p((kC,Ao)=>{s();function Ny(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}Ao.exports=Ny});var Io=p((UC,Ro)=>{s();var ky=bt(),$y="__lodash_hash_undefined__",Uy=Object.prototype,Wy=Uy.hasOwnProperty;function Gy(e){var t=this.__data__;if(ky){var r=t[e];return r===$y?void 0:r}return Wy.call(t,e)?t[e]:void 0}Ro.exports=Gy});var Mo=p((GC,Lo)=>{s();var zy=bt(),By=Object.prototype,Jy=By.hasOwnProperty;function Hy(e){var t=this.__data__;return zy?t[e]!==void 0:Jy.call(t,e)}Lo.exports=Hy});var Do=p((BC,jo)=>{s();var Ky=bt(),Yy="__lodash_hash_undefined__";function Vy(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ky&&t===void 0?Yy:t,this}jo.exports=Vy});var ko=p((HC,No)=>{s();var Zy=Po(),Xy=Fo(),Qy=Io(),ed=Mo(),td=Do();function Ke(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ke.prototype.clear=Zy;Ke.prototype.delete=Xy;Ke.prototype.get=Qy;Ke.prototype.has=ed;Ke.prototype.set=td;No.exports=Ke});var Wo=p((YC,Uo)=>{s();var $o=ko(),rd=_t(),nd=er();function id(){this.size=0,this.__data__={hash:new $o,map:new(nd||rd),string:new $o}}Uo.exports=id});var zo=p((ZC,Go)=>{s();function od(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}Go.exports=od});var qt=p((QC,Bo)=>{s();var sd=zo();function ad(e,t){var r=e.__data__;return sd(t)?r[typeof t=="string"?"string":"hash"]:r.map}Bo.exports=ad});var Ho=p((tO,Jo)=>{s();var ud=qt();function cd(e){var t=ud(this,e).delete(e);return this.size-=t?1:0,t}Jo.exports=cd});var Yo=p((nO,Ko)=>{s();var fd=qt();function ld(e){return fd(this,e).get(e)}Ko.exports=ld});var Zo=p((oO,Vo)=>{s();var pd=qt();function hd(e){return pd(this,e).has(e)}Vo.exports=hd});var Qo=p((aO,Xo)=>{s();var yd=qt();function dd(e,t){var r=yd(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}Xo.exports=dd});var tr=p((cO,es)=>{s();var md=Wo(),gd=Ho(),vd=Yo(),wd=Zo(),Sd=Qo();function Ye(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ye.prototype.clear=md;Ye.prototype.delete=gd;Ye.prototype.get=vd;Ye.prototype.has=wd;Ye.prototype.set=Sd;es.exports=Ye});var rs=p((lO,ts)=>{s();var xd=_t(),_d=er(),bd=tr(),qd=200;function Ed(e,t){var r=this.__data__;if(r instanceof xd){var n=r.__data__;if(!_d||n.length<qd-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new bd(n)}return r.set(e,t),this.size=r.size,this}ts.exports=Ed});var an=p((hO,ns)=>{s();var Cd=_t(),Od=oo(),Td=ao(),Pd=co(),Ad=lo(),Fd=rs();function Ve(e){var t=this.__data__=new Cd(e);this.size=t.size}Ve.prototype.clear=Od;Ve.prototype.delete=Td;Ve.prototype.get=Pd;Ve.prototype.has=Ad;Ve.prototype.set=Fd;ns.exports=Ve});var os=p((dO,is)=>{s();var Rd="__lodash_hash_undefined__";function Id(e){return this.__data__.set(e,Rd),this}is.exports=Id});var as=p((gO,ss)=>{s();function Ld(e){return this.__data__.has(e)}ss.exports=Ld});var nr=p((wO,us)=>{s();var Md=tr(),jd=os(),Dd=as();function rr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Md;++t<r;)this.add(e[t])}rr.prototype.add=rr.prototype.push=jd;rr.prototype.has=Dd;us.exports=rr});var fs=p((xO,cs)=>{s();function Nd(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}cs.exports=Nd});var ir=p((bO,ls)=>{s();function kd(e,t){return e.has(t)}ls.exports=kd});var un=p((EO,ps)=>{s();var $d=nr(),Ud=fs(),Wd=ir(),Gd=1,zd=2;function Bd(e,t,r,n,i,o){var a=r&Gd,u=e.length,l=t.length;if(u!=l&&!(a&&l>u))return!1;var f=o.get(e),c=o.get(t);if(f&&c)return f==t&&c==e;var h=-1,d=!0,y=r&zd?new $d:void 0;for(o.set(e,t),o.set(t,e);++h<u;){var m=e[h],g=t[h];if(n)var v=a?n(g,m,h,t,e,o):n(m,g,h,e,t,o);if(v!==void 0){if(v)continue;d=!1;break}if(y){if(!Ud(t,function(w,S){if(!Wd(y,S)&&(m===w||i(m,w,r,n,o)))return y.push(S)})){d=!1;break}}else if(!(m===g||i(m,g,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}ps.exports=Bd});var ys=p((OO,hs)=>{s();var Jd=qe(),Hd=Jd.Uint8Array;hs.exports=Hd});var ms=p((PO,ds)=>{s();function Kd(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}ds.exports=Kd});var or=p((FO,gs)=>{s();function Yd(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}gs.exports=Yd});var _s=p((IO,xs)=>{s();var vs=Br(),ws=ys(),Vd=rn(),Zd=un(),Xd=ms(),Qd=or(),em=1,tm=2,rm="[object Boolean]",nm="[object Date]",im="[object Error]",om="[object Map]",sm="[object Number]",am="[object RegExp]",um="[object Set]",cm="[object String]",fm="[object Symbol]",lm="[object ArrayBuffer]",pm="[object DataView]",Ss=vs?vs.prototype:void 0,cn=Ss?Ss.valueOf:void 0;function hm(e,t,r,n,i,o,a){switch(r){case pm:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case lm:return!(e.byteLength!=t.byteLength||!o(new ws(e),new ws(t)));case rm:case nm:case sm:return Vd(+e,+t);case im:return e.name==t.name&&e.message==t.message;case am:case cm:return e==t+"";case om:var u=Xd;case um:var l=n&em;if(u||(u=Qd),e.size!=t.size&&!l)return!1;var f=a.get(e);if(f)return f==t;n|=tm,a.set(e,t);var c=Zd(u(e),u(t),n,i,o,a);return a.delete(e),c;case fm:if(cn)return cn.call(e)==cn.call(t)}return!1}xs.exports=hm});var fn=p((MO,bs)=>{s();function ym(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}bs.exports=ym});var ve=p((DO,qs)=>{s();var dm=Array.isArray;qs.exports=dm});var Cs=p((kO,Es)=>{s();var mm=fn(),gm=ve();function vm(e,t,r){var n=t(e);return gm(e)?n:mm(n,r(e))}Es.exports=vm});var Ts=p((UO,Os)=>{s();function wm(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}Os.exports=wm});var As=p((GO,Ps)=>{s();function Sm(){return[]}Ps.exports=Sm});var Is=p((BO,Rs)=>{s();var xm=Ts(),_m=As(),bm=Object.prototype,qm=bm.propertyIsEnumerable,Fs=Object.getOwnPropertySymbols,Em=Fs?function(e){return e==null?[]:(e=Object(e),xm(Fs(e),function(t){return qm.call(e,t)}))}:_m;Rs.exports=Em});var Ms=p((HO,Ls)=>{s();function Cm(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}Ls.exports=Cm});var Ds=p((YO,js)=>{s();var Om=Gt(),Tm=ht(),Pm="[object Arguments]";function Am(e){return Tm(e)&&Om(e)==Pm}js.exports=Am});var sr=p((ZO,$s)=>{s();var Ns=Ds(),Fm=ht(),ks=Object.prototype,Rm=ks.hasOwnProperty,Im=ks.propertyIsEnumerable,Lm=Ns((function(){return arguments})())?Ns:function(e){return Fm(e)&&Rm.call(e,"callee")&&!Im.call(e,"callee")};$s.exports=Lm});var Ws=p((QO,Us)=>{s();function Mm(){return!1}Us.exports=Mm});var ln=p((Et,Ze)=>{s();var jm=qe(),Dm=Ws(),Bs=typeof Et=="object"&&Et&&!Et.nodeType&&Et,Gs=Bs&&typeof Ze=="object"&&Ze&&!Ze.nodeType&&Ze,Nm=Gs&&Gs.exports===Bs,zs=Nm?jm.Buffer:void 0,km=zs?zs.isBuffer:void 0,$m=km||Dm;Ze.exports=$m});var pn=p((r1,Js)=>{s();var Um=9007199254740991,Wm=/^(?:0|[1-9]\d*)$/;function Gm(e,t){var r=typeof e;return t=t??Um,!!t&&(r=="number"||r!="symbol"&&Wm.test(e))&&e>-1&&e%1==0&&e<t}Js.exports=Gm});var ar=p((i1,Hs)=>{s();var zm=9007199254740991;function Bm(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zm}Hs.exports=Bm});var Ys=p((s1,Ks)=>{s();var Jm=Gt(),Hm=ar(),Km=ht(),Ym="[object Arguments]",Vm="[object Array]",Zm="[object Boolean]",Xm="[object Date]",Qm="[object Error]",eg="[object Function]",tg="[object Map]",rg="[object Number]",ng="[object Object]",ig="[object RegExp]",og="[object Set]",sg="[object String]",ag="[object WeakMap]",ug="[object ArrayBuffer]",cg="[object DataView]",fg="[object Float32Array]",lg="[object Float64Array]",pg="[object Int8Array]",hg="[object Int16Array]",yg="[object Int32Array]",dg="[object Uint8Array]",mg="[object Uint8ClampedArray]",gg="[object Uint16Array]",vg="[object Uint32Array]",A={};A[fg]=A[lg]=A[pg]=A[hg]=A[yg]=A[dg]=A[mg]=A[gg]=A[vg]=!0;A[Ym]=A[Vm]=A[ug]=A[Zm]=A[cg]=A[Xm]=A[Qm]=A[eg]=A[tg]=A[rg]=A[ng]=A[ig]=A[og]=A[sg]=A[ag]=!1;function wg(e){return Km(e)&&Hm(e.length)&&!!A[Jm(e)]}Ks.exports=wg});var hn=p((u1,Vs)=>{s();function Sg(e){return function(t){return e(t)}}Vs.exports=Sg});var Xs=p((Ct,Xe)=>{s();var xg=vh(),Zs=typeof Ct=="object"&&Ct&&!Ct.nodeType&&Ct,Ot=Zs&&typeof Xe=="object"&&Xe&&!Xe.nodeType&&Xe,_g=Ot&&Ot.exports===Zs,yn=_g&&xg.process,bg=(function(){try{var e=Ot&&Ot.require&&Ot.require("util").types;return e||yn&&yn.binding&&yn.binding("util")}catch{}})();Xe.exports=bg});var dn=p((l1,ta)=>{s();var qg=Ys(),Eg=hn(),Qs=Xs(),ea=Qs&&Qs.isTypedArray,Cg=ea?Eg(ea):qg;ta.exports=Cg});var na=p((h1,ra)=>{s();var Og=Ms(),Tg=sr(),Pg=ve(),Ag=ln(),Fg=pn(),Rg=dn(),Ig=Object.prototype,Lg=Ig.hasOwnProperty;function Mg(e,t){var r=Pg(e),n=!r&&Tg(e),i=!r&&!n&&Ag(e),o=!r&&!n&&!i&&Rg(e),a=r||n||i||o,u=a?Og(e.length,String):[],l=u.length;for(var f in e)(t||Lg.call(e,f))&&!(a&&(f=="length"||i&&(f=="offset"||f=="parent")||o&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Fg(f,l)))&&u.push(f);return u}ra.exports=Mg});var oa=p((d1,ia)=>{s();var jg=Object.prototype;function Dg(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||jg;return e===r}ia.exports=Dg});var aa=p((g1,sa)=>{s();function Ng(e,t){return function(r){return e(t(r))}}sa.exports=Ng});var ca=p((w1,ua)=>{s();var kg=aa(),$g=kg(Object.keys,Object);ua.exports=$g});var la=p((x1,fa)=>{s();var Ug=oa(),Wg=ca(),Gg=Object.prototype,zg=Gg.hasOwnProperty;function Bg(e){if(!Ug(e))return Wg(e);var t=[];for(var r in Object(e))zg.call(e,r)&&r!="constructor"&&t.push(r);return t}fa.exports=Bg});var mn=p((b1,pa)=>{s();var Jg=nn(),Hg=ar();function Kg(e){return e!=null&&Hg(e.length)&&!Jg(e)}pa.exports=Kg});var gn=p((E1,ha)=>{s();var Yg=na(),Vg=la(),Zg=mn();function Xg(e){return Zg(e)?Yg(e):Vg(e)}ha.exports=Xg});var da=p((O1,ya)=>{s();var Qg=Cs(),ev=Is(),tv=gn();function rv(e){return Qg(e,tv,ev)}ya.exports=rv});var va=p((P1,ga)=>{s();var ma=da(),nv=1,iv=Object.prototype,ov=iv.hasOwnProperty;function sv(e,t,r,n,i,o){var a=r&nv,u=ma(e),l=u.length,f=ma(t),c=f.length;if(l!=c&&!a)return!1;for(var h=l;h--;){var d=u[h];if(!(a?d in t:ov.call(t,d)))return!1}var y=o.get(e),m=o.get(t);if(y&&m)return y==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);for(var v=a;++h<l;){d=u[h];var w=e[d],S=t[d];if(n)var C=a?n(S,w,d,t,e,o):n(w,S,d,e,t,o);if(!(C===void 0?w===S||i(w,S,r,n,o):C)){g=!1;break}v||(v=d=="constructor")}if(g&&!v){var H=e.constructor,we=t.constructor;H!=we&&"constructor"in e&&"constructor"in t&&!(typeof H=="function"&&H instanceof H&&typeof we=="function"&&we instanceof we)&&(g=!1)}return o.delete(e),o.delete(t),g}ga.exports=sv});var Sa=p((F1,wa)=>{s();var av=Oe(),uv=qe(),cv=av(uv,"DataView");wa.exports=cv});var _a=p((I1,xa)=>{s();var fv=Oe(),lv=qe(),pv=fv(lv,"Promise");xa.exports=pv});var vn=p((M1,ba)=>{s();var hv=Oe(),yv=qe(),dv=hv(yv,"Set");ba.exports=dv});var Ea=p((D1,qa)=>{s();var mv=Oe(),gv=qe(),vv=mv(gv,"WeakMap");qa.exports=vv});var Ia=p((k1,Ra)=>{s();var wn=Sa(),Sn=er(),xn=_a(),_n=vn(),bn=Ea(),Fa=Gt(),Qe=sn(),Ca="[object Map]",wv="[object Object]",Oa="[object Promise]",Ta="[object Set]",Pa="[object WeakMap]",Aa="[object DataView]",Sv=Qe(wn),xv=Qe(Sn),_v=Qe(xn),bv=Qe(_n),qv=Qe(bn),ke=Fa;(wn&&ke(new wn(new ArrayBuffer(1)))!=Aa||Sn&&ke(new Sn)!=Ca||xn&&ke(xn.resolve())!=Oa||_n&&ke(new _n)!=Ta||bn&&ke(new bn)!=Pa)&&(ke=function(e){var t=Fa(e),r=t==wv?e.constructor:void 0,n=r?Qe(r):"";if(n)switch(n){case Sv:return Aa;case xv:return Ca;case _v:return Oa;case bv:return Ta;case qv:return Pa}return t});Ra.exports=ke});var Ua=p((U1,$a)=>{s();var qn=an(),Ev=un(),Cv=_s(),Ov=va(),La=Ia(),Ma=ve(),ja=ln(),Tv=dn(),Pv=1,Da="[object Arguments]",Na="[object Array]",ur="[object Object]",Av=Object.prototype,ka=Av.hasOwnProperty;function Fv(e,t,r,n,i,o){var a=Ma(e),u=Ma(t),l=a?Na:La(e),f=u?Na:La(t);l=l==Da?ur:l,f=f==Da?ur:f;var c=l==ur,h=f==ur,d=l==f;if(d&&ja(e)){if(!ja(t))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new qn),a||Tv(e)?Ev(e,t,r,n,i,o):Cv(e,t,l,r,n,i,o);if(!(r&Pv)){var y=c&&ka.call(e,"__wrapped__"),m=h&&ka.call(t,"__wrapped__");if(y||m){var g=y?e.value():e,v=m?t.value():t;return o||(o=new qn),i(g,v,r,n,o)}}return d?(o||(o=new qn),Ov(e,t,r,n,i,o)):!1}$a.exports=Fv});var En=p((G1,za)=>{s();var Rv=Ua(),Wa=ht();function Ga(e,t,r,n,i){return e===t?!0:e==null||t==null||!Wa(e)&&!Wa(t)?e!==e&&t!==t:Rv(e,t,r,n,Ga,i)}za.exports=Ga});var Ja=p((B1,Ba)=>{s();var Iv=an(),Lv=En(),Mv=1,jv=2;function Dv(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null)return!o;for(e=Object(e);i--;){var u=r[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<o;){u=r[i];var l=u[0],f=e[l],c=u[1];if(a&&u[2]){if(f===void 0&&!(l in e))return!1}else{var h=new Iv;if(n)var d=n(f,c,l,e,t,h);if(!(d===void 0?Lv(c,f,Mv|jv,n,h):d))return!1}}return!0}Ba.exports=Dv});var Cn=p((H1,Ha)=>{s();var Nv=Jr();function kv(e){return e===e&&!Nv(e)}Ha.exports=kv});var Ya=p((Y1,Ka)=>{s();var $v=Cn(),Uv=gn();function Wv(e){for(var t=Uv(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,$v(i)]}return t}Ka.exports=Wv});var On=p((Z1,Va)=>{s();function Gv(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}Va.exports=Gv});var Xa=p((Q1,Za)=>{s();var zv=Ja(),Bv=Ya(),Jv=On();function Hv(e){var t=Bv(e);return t.length==1&&t[0][2]?Jv(t[0][0],t[0][1]):function(r){return r===e||zv(r,e,t)}}Za.exports=Hv});var cr=p((tT,Qa)=>{s();var Kv=ve(),Yv=Hr(),Vv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zv=/^\w*$/;function Xv(e,t){if(Kv(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Yv(e)?!0:Zv.test(e)||!Vv.test(e)||t!=null&&e in Object(t)}Qa.exports=Xv});var ru=p((nT,tu)=>{s();var eu=tr(),Qv="Expected a function";function Tn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Qv);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Tn.Cache||eu),r}Tn.Cache=eu;tu.exports=Tn});var iu=p((oT,nu)=>{s();var ew=ru(),tw=500;function rw(e){var t=ew(e,function(n){return r.size===tw&&r.clear(),n}),r=t.cache;return t}nu.exports=rw});var su=p((aT,ou)=>{s();var nw=iu(),iw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ow=/\\(\\)?/g,sw=nw(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(iw,function(r,n,i,o){t.push(i?o.replace(ow,"$1"):n||r)}),t});ou.exports=sw});var Pn=p((cT,au)=>{s();function aw(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}au.exports=aw});var hu=p((lT,pu)=>{s();var uu=Br(),uw=Pn(),cw=ve(),fw=Hr(),lw=1/0,cu=uu?uu.prototype:void 0,fu=cu?cu.toString:void 0;function lu(e){if(typeof e=="string")return e;if(cw(e))return uw(e,lu)+"";if(fw(e))return fu?fu.call(e):"";var t=e+"";return t=="0"&&1/e==-lw?"-0":t}pu.exports=lu});var du=p((hT,yu)=>{s();var pw=hu();function hw(e){return e==null?"":pw(e)}yu.exports=hw});var An=p((dT,mu)=>{s();var yw=ve(),dw=cr(),mw=su(),gw=du();function vw(e,t){return yw(e)?e:dw(e,t)?[e]:mw(gw(e))}mu.exports=vw});var Tt=p((gT,gu)=>{s();var ww=Hr(),Sw=1/0;function xw(e){if(typeof e=="string"||ww(e))return e;var t=e+"";return t=="0"&&1/e==-Sw?"-0":t}gu.exports=xw});var Fn=p((wT,vu)=>{s();var _w=An(),bw=Tt();function qw(e,t){t=_w(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[bw(t[r++])];return r&&r==n?e:void 0}vu.exports=qw});var Su=p((xT,wu)=>{s();var Ew=Fn();function Cw(e,t,r){var n=e==null?void 0:Ew(e,t);return n===void 0?r:n}wu.exports=Cw});var _u=p((bT,xu)=>{s();function Ow(e,t){return e!=null&&t in Object(e)}xu.exports=Ow});var qu=p((ET,bu)=>{s();var Tw=An(),Pw=sr(),Aw=ve(),Fw=pn(),Rw=ar(),Iw=Tt();function Lw(e,t,r){t=Tw(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=Iw(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&Rw(i)&&Fw(a,i)&&(Aw(e)||Pw(e)))}bu.exports=Lw});var Cu=p((OT,Eu)=>{s();var Mw=_u(),jw=qu();function Dw(e,t){return e!=null&&jw(e,t,Mw)}Eu.exports=Dw});var Tu=p((PT,Ou)=>{s();var Nw=En(),kw=Su(),$w=Cu(),Uw=cr(),Ww=Cn(),Gw=On(),zw=Tt(),Bw=1,Jw=2;function Hw(e,t){return Uw(e)&&Ww(t)?Gw(zw(e),t):function(r){var n=kw(r,e);return n===void 0&&n===t?$w(r,e):Nw(t,n,Bw|Jw)}}Ou.exports=Hw});var fr=p((FT,Pu)=>{s();function Kw(e){return e}Pu.exports=Kw});var Fu=p((IT,Au)=>{s();function Yw(e){return function(t){return t?.[e]}}Au.exports=Yw});var Iu=p((MT,Ru)=>{s();var Vw=Fn();function Zw(e){return function(t){return Vw(t,e)}}Ru.exports=Zw});var Mu=p((DT,Lu)=>{s();var Xw=Fu(),Qw=Iu(),eS=cr(),tS=Tt();function rS(e){return eS(e)?Xw(tS(e)):Qw(e)}Lu.exports=rS});var Du=p((kT,ju)=>{s();var nS=Xa(),iS=Tu(),oS=fr(),sS=ve(),aS=Mu();function uS(e){return typeof e=="function"?e:e==null?oS:typeof e=="object"?sS(e)?iS(e[0],e[1]):nS(e):aS(e)}ju.exports=uS});var ku=p((UT,Nu)=>{s();function cS(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}Nu.exports=cS});var Uu=p((GT,$u)=>{s();function fS(e){return e!==e}$u.exports=fS});var Gu=p((BT,Wu)=>{s();function lS(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}Wu.exports=lS});var Bu=p((HT,zu)=>{s();var pS=ku(),hS=Uu(),yS=Gu();function dS(e,t,r){return t===t?yS(e,t,r):pS(e,hS,r)}zu.exports=dS});var Rn=p((YT,Ju)=>{s();var mS=Bu();function gS(e,t){var r=e==null?0:e.length;return!!r&&mS(e,t,0)>-1}Ju.exports=gS});var In=p((ZT,Hu)=>{s();function vS(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}Hu.exports=vS});var Yu=p((QT,Ku)=>{s();function wS(){}Ku.exports=wS});var Zu=p((tP,Vu)=>{s();var Ln=vn(),SS=Yu(),xS=or(),_S=1/0,bS=Ln&&1/xS(new Ln([,-0]))[1]==_S?function(e){return new Ln(e)}:SS;Vu.exports=bS});var Qu=p((nP,Xu)=>{s();var qS=nr(),ES=Rn(),CS=In(),OS=ir(),TS=Zu(),PS=or(),AS=200;function FS(e,t,r){var n=-1,i=ES,o=e.length,a=!0,u=[],l=u;if(r)a=!1,i=CS;else if(o>=AS){var f=t?null:TS(e);if(f)return PS(f);a=!1,i=OS,l=new qS}else l=t?[]:u;e:for(;++n<o;){var c=e[n],h=t?t(c):c;if(c=r||c!==0?c:0,a&&h===h){for(var d=l.length;d--;)if(l[d]===h)continue e;t&&l.push(h),u.push(c)}else i(l,h,r)||(l!==u&&l.push(h),u.push(c))}return u}Xu.exports=FS});var tc=p((oP,ec)=>{s();var RS=Du(),IS=Qu();function LS(e,t){return e&&e.length?IS(e,RS(t,2)):[]}ec.exports=LS});var nc=p((aP,rc)=>{s();var MS=nr(),jS=Rn(),DS=In(),NS=Pn(),kS=hn(),$S=ir(),US=200;function WS(e,t,r,n){var i=-1,o=jS,a=!0,u=e.length,l=[],f=t.length;if(!u)return l;r&&(t=NS(t,kS(r))),n?(o=DS,a=!1):t.length>=US&&(o=$S,a=!1,t=new MS(t));e:for(;++i<u;){var c=e[i],h=r==null?c:r(c);if(c=n||c!==0?c:0,a&&h===h){for(var d=f;d--;)if(t[d]===h)continue e;l.push(c)}else o(t,h,n)||l.push(c)}return l}rc.exports=WS});var ac=p((cP,sc)=>{s();var ic=Br(),GS=sr(),zS=ve(),oc=ic?ic.isConcatSpreadable:void 0;function BS(e){return zS(e)||GS(e)||!!(oc&&e&&e[oc])}sc.exports=BS});var fc=p((lP,cc)=>{s();var JS=fn(),HS=ac();function uc(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=HS),i||(i=[]);++o<a;){var u=e[o];t>0&&r(u)?t>1?uc(u,t-1,r,n,i):JS(i,u):n||(i[i.length]=u)}return i}cc.exports=uc});var pc=p((hP,lc)=>{s();function KS(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}lc.exports=KS});var dc=p((dP,yc)=>{s();var YS=pc(),hc=Math.max;function VS(e,t,r){return t=hc(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=hc(n.length-t,0),a=Array(o);++i<o;)a[i]=n[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=n[i];return u[t]=r(a),YS(e,this,u)}}yc.exports=VS});var gc=p((gP,mc)=>{s();function ZS(e){return function(){return e}}mc.exports=ZS});var wc=p((wP,vc)=>{s();var XS=Oe(),QS=(function(){try{var e=XS(Object,"defineProperty");return e({},"",{}),e}catch{}})();vc.exports=QS});var _c=p((xP,xc)=>{s();var ex=gc(),Sc=wc(),tx=fr(),rx=Sc?function(e,t){return Sc(e,"toString",{configurable:!0,enumerable:!1,value:ex(t),writable:!0})}:tx;xc.exports=rx});var qc=p((bP,bc)=>{s();var nx=800,ix=16,ox=Date.now;function sx(e){var t=0,r=0;return function(){var n=ox(),i=ix-(n-r);if(r=n,i>0){if(++t>=nx)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}bc.exports=sx});var Cc=p((EP,Ec)=>{s();var ax=_c(),ux=qc(),cx=ux(ax);Ec.exports=cx});var Tc=p((OP,Oc)=>{s();var fx=fr(),lx=dc(),px=Cc();function hx(e,t){return px(lx(e,t,fx),e+"")}Oc.exports=hx});var Ac=p((PP,Pc)=>{s();var yx=mn(),dx=ht();function mx(e){return dx(e)&&yx(e)}Pc.exports=mx});var Ic=p((FP,Rc)=>{s();var gx=nc(),vx=fc(),wx=Tc(),Fc=Ac(),Sx=wx(function(e,t){return Fc(e)?gx(e,vx(t,1,Fc,!0)):[]});Rc.exports=Sx});var ce={};gh(ce,{__addDisposableResource:()=>af,__assign:()=>lr,__asyncDelegator:()=>Xc,__asyncGenerator:()=>Zc,__asyncValues:()=>Qc,__await:()=>et,__awaiter:()=>Bc,__classPrivateFieldGet:()=>nf,__classPrivateFieldIn:()=>sf,__classPrivateFieldSet:()=>of,__createBinding:()=>hr,__decorate:()=>Nc,__disposeResources:()=>uf,__esDecorate:()=>$c,__exportStar:()=>Hc,__extends:()=>jc,__generator:()=>Jc,__importDefault:()=>rf,__importStar:()=>tf,__makeTemplateObject:()=>ef,__metadata:()=>zc,__param:()=>kc,__propKey:()=>Wc,__read:()=>Nn,__rest:()=>Dc,__rewriteRelativeImportExtension:()=>cf,__runInitializers:()=>Uc,__setFunctionName:()=>Gc,__spread:()=>Kc,__spreadArray:()=>Vc,__spreadArrays:()=>Yc,__values:()=>pr,default:()=>qx});function jc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");jn(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Dc(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Nc(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}function kc(e,t){return function(r,n){t(r,n,e)}}function $c(e,t,r,n,i,o){function a(w){if(w!==void 0&&typeof w!="function")throw new TypeError("Function expected");return w}for(var u=n.kind,l=u==="getter"?"get":u==="setter"?"set":"value",f=!t&&e?n.static?e:e.prototype:null,c=t||(f?Object.getOwnPropertyDescriptor(f,n.name):{}),h,d=!1,y=r.length-1;y>=0;y--){var m={};for(var g in n)m[g]=g==="access"?{}:n[g];for(var g in n.access)m.access[g]=n.access[g];m.addInitializer=function(w){if(d)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(w||null))};var v=(0,r[y])(u==="accessor"?{get:c.get,set:c.set}:c[l],m);if(u==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(h=a(v.get))&&(c.get=h),(h=a(v.set))&&(c.set=h),(h=a(v.init))&&i.unshift(h)}else(h=a(v))&&(u==="field"?i.unshift(h):c[l]=h)}f&&Object.defineProperty(f,n.name,c),d=!0}function Uc(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function Wc(e){return typeof e=="symbol"?e:"".concat(e)}function Gc(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function zc(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Bc(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function u(c){try{f(n.next(c))}catch(h){a(h)}}function l(c){try{f(n.throw(c))}catch(h){a(h)}}function f(c){c.done?o(c.value):i(c.value).then(u,l)}f((n=n.apply(e,t||[])).next())})}function Jc(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(f){return function(c){return l([f,c])}}function l(f){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,f[0]&&(r=0)),r;)try{if(n=1,i&&(o=f[0]&2?i.return:f[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,f[1])).done)return o;switch(i=0,o&&(f=[f[0]&2,o.value]),f[0]){case 0:case 1:o=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]<o[3])){r.label=f[1];break}if(f[0]===6&&r.label<o[1]){r.label=o[1],o=f;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(f);break}o[2]&&r.ops.pop(),r.trys.pop();continue}f=t.call(e,r)}catch(c){f=[6,c],i=0}finally{n=o=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function Hc(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&hr(t,e,r)}function pr(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Nn(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(u){a={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function Kc(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Nn(arguments[t]));return e}function Yc(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)n[i]=o[a];return n}function Vc(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function et(e){return this instanceof et?(this.v=e,this):new et(e)}function Zc(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(y){return function(m){return Promise.resolve(m).then(y,h)}}function u(y,m){n[y]&&(i[y]=function(g){return new Promise(function(v,w){o.push([y,g,v,w])>1||l(y,g)})},m&&(i[y]=m(i[y])))}function l(y,m){try{f(n[y](m))}catch(g){d(o[0][3],g)}}function f(y){y.value instanceof et?Promise.resolve(y.value.v).then(c,h):d(o[0][2],y)}function c(y){l("next",y)}function h(y){l("throw",y)}function d(y,m){y(m),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Xc(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,o){t[i]=e[i]?function(a){return(r=!r)?{value:et(e[i](a)),done:!1}:o?o(a):a}:o}}function Qc(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof pr=="function"?pr(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(a){return new Promise(function(u,l){a=e[o](a),i(u,l,a.done,a.value)})}}function i(o,a,u,l){Promise.resolve(l).then(function(f){o({value:f,done:u})},a)}}function ef(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function tf(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=Dn(e),n=0;n<r.length;n++)r[n]!=="default"&&hr(t,e,r[n]);return _x(t,e),t}function rf(e){return e&&e.__esModule?e:{default:e}}function nf(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function of(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function sf(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function af(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}function uf(e){function t(o){e.error=e.hasError?new bx(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}var r,n=0;function i(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(a){return t(a),i()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function cf(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,o,a){return n?t?".jsx":".js":i&&(!o||!a)?r:i+o+"."+a.toLowerCase()+"js"}):e}var jn,lr,hr,_x,Dn,bx,qx,fe=mh(()=>{s();jn=function(e,t){return jn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},jn(e,t)};lr=function(){return lr=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},lr.apply(this,arguments)};hr=Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});_x=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},Dn=function(e){return Dn=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},Dn(e)};bx=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};qx={__extends:jc,__assign:lr,__rest:Dc,__decorate:Nc,__param:kc,__esDecorate:$c,__runInitializers:Uc,__propKey:Wc,__setFunctionName:Gc,__metadata:zc,__awaiter:Bc,__generator:Jc,__createBinding:hr,__exportStar:Hc,__values:pr,__read:Nn,__spread:Kc,__spreadArrays:Yc,__spreadArray:Vc,__await:et,__asyncGenerator:Zc,__asyncDelegator:Xc,__asyncValues:Qc,__makeTemplateObject:ef,__importStar:tf,__importDefault:rf,__classPrivateFieldGet:nf,__classPrivateFieldSet:of,__classPrivateFieldIn:sf,__addDisposableResource:af,__disposeResources:uf,__rewriteRelativeImportExtension:cf}});var ff=p(tt=>{"use strict";s();Object.defineProperty(tt,"__esModule",{value:!0});tt.lowerCase=tt.localeLowerCase=void 0;var Ex={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{\u0130:"i",I:"\u0131",I\u0307:"i"}},az:{regexp:/\u0130/g,map:{\u0130:"i",I:"\u0131",I\u0307:"i"}},lt:{regexp:/\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g,map:{I:"i\u0307",J:"j\u0307",\u012E:"\u012F\u0307",\u00CC:"i\u0307\u0300",\u00CD:"i\u0307\u0301",\u0128:"i\u0307\u0303"}}};function Cx(e,t){var r=Ex[t.toLowerCase()];return kn(r?e.replace(r.regexp,function(n){return r.map[n]}):e)}tt.localeLowerCase=Cx;function kn(e){return e.toLowerCase()}tt.lowerCase=kn});var $e=p(yr=>{"use strict";s();Object.defineProperty(yr,"__esModule",{value:!0});yr.noCase=void 0;var Ox=ff(),Tx=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Px=/[^A-Z0-9]+/gi;function Ax(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,n=r===void 0?Tx:r,i=t.stripRegexp,o=i===void 0?Px:i,a=t.transform,u=a===void 0?Ox.lowerCase:a,l=t.delimiter,f=l===void 0?" ":l,c=lf(lf(e,n,"$1\0$2"),o,"\0"),h=0,d=c.length;c.charAt(h)==="\0";)h++;for(;c.charAt(d-1)==="\0";)d--;return c.slice(h,d).split("\0").map(u).join(f)}yr.noCase=Ax;function lf(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(n,i){return n.replace(i,r)},e)}});var $n=p(Te=>{"use strict";s();Object.defineProperty(Te,"__esModule",{value:!0});Te.pascalCase=Te.pascalCaseTransformMerge=Te.pascalCaseTransform=void 0;var Fx=(fe(),he(ce)),Rx=$e();function pf(e,t){var r=e.charAt(0),n=e.substr(1).toLowerCase();return t>0&&r>="0"&&r<="9"?"_"+r+n:""+r.toUpperCase()+n}Te.pascalCaseTransform=pf;function Ix(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}Te.pascalCaseTransformMerge=Ix;function Lx(e,t){return t===void 0&&(t={}),Rx.noCase(e,Fx.__assign({delimiter:"",transform:pf},t))}Te.pascalCase=Lx});var yf=p(Pe=>{"use strict";s();Object.defineProperty(Pe,"__esModule",{value:!0});Pe.camelCase=Pe.camelCaseTransformMerge=Pe.camelCaseTransform=void 0;var Mx=(fe(),he(ce)),Un=$n();function hf(e,t){return t===0?e.toLowerCase():Un.pascalCaseTransform(e,t)}Pe.camelCaseTransform=hf;function jx(e,t){return t===0?e.toLowerCase():Un.pascalCaseTransformMerge(e)}Pe.camelCaseTransformMerge=jx;function Dx(e,t){return t===void 0&&(t={}),Un.pascalCase(e,Mx.__assign({transform:hf},t))}Pe.camelCase=Dx});var Wn=p(dr=>{"use strict";s();Object.defineProperty(dr,"__esModule",{value:!0});dr.upperCaseFirst=void 0;function Nx(e){return e.charAt(0).toUpperCase()+e.substr(1)}dr.upperCaseFirst=Nx});var Gn=p(rt=>{"use strict";s();Object.defineProperty(rt,"__esModule",{value:!0});rt.capitalCase=rt.capitalCaseTransform=void 0;var kx=(fe(),he(ce)),$x=$e(),Ux=Wn();function df(e){return Ux.upperCaseFirst(e.toLowerCase())}rt.capitalCaseTransform=df;function Wx(e,t){return t===void 0&&(t={}),$x.noCase(e,kx.__assign({delimiter:" ",transform:df},t))}rt.capitalCase=Wx});var mf=p(nt=>{"use strict";s();Object.defineProperty(nt,"__esModule",{value:!0});nt.upperCase=nt.localeUpperCase=void 0;var Gx={tr:{regexp:/[\u0069]/g,map:{i:"\u0130"}},az:{regexp:/[\u0069]/g,map:{i:"\u0130"}},lt:{regexp:/[\u0069\u006A\u012F]\u0307|\u0069\u0307[\u0300\u0301\u0303]/g,map:{i\u0307:"I",j\u0307:"J",\u012F\u0307:"\u012E",i\u0307\u0300:"\xCC",i\u0307\u0301:"\xCD",i\u0307\u0303:"\u0128"}}};function zx(e,t){var r=Gx[t.toLowerCase()];return zn(r?e.replace(r.regexp,function(n){return r.map[n]}):e)}nt.localeUpperCase=zx;function zn(e){return e.toUpperCase()}nt.upperCase=zn});var gf=p(mr=>{"use strict";s();Object.defineProperty(mr,"__esModule",{value:!0});mr.constantCase=void 0;var Bx=(fe(),he(ce)),Jx=$e(),Hx=mf();function Kx(e,t){return t===void 0&&(t={}),Jx.noCase(e,Bx.__assign({delimiter:"_",transform:Hx.upperCase},t))}mr.constantCase=Kx});var Pt=p(gr=>{"use strict";s();Object.defineProperty(gr,"__esModule",{value:!0});gr.dotCase=void 0;var Yx=(fe(),he(ce)),Vx=$e();function Zx(e,t){return t===void 0&&(t={}),Vx.noCase(e,Yx.__assign({delimiter:"."},t))}gr.dotCase=Zx});var vf=p(vr=>{"use strict";s();Object.defineProperty(vr,"__esModule",{value:!0});vr.headerCase=void 0;var Xx=(fe(),he(ce)),Qx=Gn();function e0(e,t){return t===void 0&&(t={}),Qx.capitalCase(e,Xx.__assign({delimiter:"-"},t))}vr.headerCase=e0});var wf=p(wr=>{"use strict";s();Object.defineProperty(wr,"__esModule",{value:!0});wr.paramCase=void 0;var t0=(fe(),he(ce)),r0=Pt();function n0(e,t){return t===void 0&&(t={}),r0.dotCase(e,t0.__assign({delimiter:"-"},t))}wr.paramCase=n0});var Sf=p(Sr=>{"use strict";s();Object.defineProperty(Sr,"__esModule",{value:!0});Sr.pathCase=void 0;var i0=(fe(),he(ce)),o0=Pt();function s0(e,t){return t===void 0&&(t={}),o0.dotCase(e,i0.__assign({delimiter:"/"},t))}Sr.pathCase=s0});var _f=p(it=>{"use strict";s();Object.defineProperty(it,"__esModule",{value:!0});it.sentenceCase=it.sentenceCaseTransform=void 0;var a0=(fe(),he(ce)),u0=$e(),c0=Wn();function xf(e,t){var r=e.toLowerCase();return t===0?c0.upperCaseFirst(r):r}it.sentenceCaseTransform=xf;function f0(e,t){return t===void 0&&(t={}),u0.noCase(e,a0.__assign({delimiter:" ",transform:xf},t))}it.sentenceCase=f0});var bf=p(xr=>{"use strict";s();Object.defineProperty(xr,"__esModule",{value:!0});xr.snakeCase=void 0;var l0=(fe(),he(ce)),p0=Pt();function h0(e,t){return t===void 0&&(t={}),p0.dotCase(e,l0.__assign({delimiter:"_"},t))}xr.snakeCase=h0});var qf=p(se=>{"use strict";s();Object.defineProperty(se,"__esModule",{value:!0});var de=(fe(),he(ce));de.__exportStar(yf(),se);de.__exportStar(Gn(),se);de.__exportStar(gf(),se);de.__exportStar(Pt(),se);de.__exportStar(vf(),se);de.__exportStar($e(),se);de.__exportStar(wf(),se);de.__exportStar($n(),se);de.__exportStar(Sf(),se);de.__exportStar(_f(),se);de.__exportStar(bf(),se)});var Q=p(Jn=>{"use strict";s();Jn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{t.push((i,o)=>i!=null?n(i):r(o)),e.apply(this,t)})},"name",{value:e.name})};Jn.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);t.pop(),e.apply(this,t).then(n=>r(null,n),r)},"name",{value:e.name})}});var Tf=p((UA,Of)=>{s();var Ae=D("constants"),x0=process.cwd,br=null,_0=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return br||(br=x0.call(process)),br};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Hn=process.chdir,process.chdir=function(e){br=null,Hn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Hn));var Hn;Of.exports=b0;function b0(e){Ae.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=u(e.stat),e.fstat=u(e.fstat),e.lstat=u(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(c,h,d){d&&process.nextTick(d)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(c,h,d,y){y&&process.nextTick(y)},e.lchownSync=function(){}),_0==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:(function(c){function h(d,y,m){var g=Date.now(),v=0;c(d,y,function w(S){if(S&&(S.code==="EACCES"||S.code==="EPERM"||S.code==="EBUSY")&&Date.now()-g<6e4){setTimeout(function(){e.stat(y,function(C,H){C&&C.code==="ENOENT"?c(d,y,w):m(S)})},v),v<100&&(v+=10);return}m&&m(S)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,c),h})(e.rename)),e.read=typeof e.read!="function"?e.read:(function(c){function h(d,y,m,g,v,w){var S;if(w&&typeof w=="function"){var C=0;S=function(H,we,be){if(H&&H.code==="EAGAIN"&&C<10)return C++,c.call(e,d,y,m,g,v,S);w.apply(this,arguments)}}return c.call(e,d,y,m,g,v,S)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,c),h})(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:(function(c){return function(h,d,y,m,g){for(var v=0;;)try{return c.call(e,h,d,y,m,g)}catch(w){if(w.code==="EAGAIN"&&v<10){v++;continue}throw w}}})(e.readSync);function t(c){c.lchmod=function(h,d,y){c.open(h,Ae.O_WRONLY|Ae.O_SYMLINK,d,function(m,g){if(m){y&&y(m);return}c.fchmod(g,d,function(v){c.close(g,function(w){y&&y(v||w)})})})},c.lchmodSync=function(h,d){var y=c.openSync(h,Ae.O_WRONLY|Ae.O_SYMLINK,d),m=!0,g;try{g=c.fchmodSync(y,d),m=!1}finally{if(m)try{c.closeSync(y)}catch{}else c.closeSync(y)}return g}}function r(c){Ae.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(h,d,y,m){c.open(h,Ae.O_SYMLINK,function(g,v){if(g){m&&m(g);return}c.futimes(v,d,y,function(w){c.close(v,function(S){m&&m(w||S)})})})},c.lutimesSync=function(h,d,y){var m=c.openSync(h,Ae.O_SYMLINK),g,v=!0;try{g=c.futimesSync(m,d,y),v=!1}finally{if(v)try{c.closeSync(m)}catch{}else c.closeSync(m)}return g}):c.futimes&&(c.lutimes=function(h,d,y,m){m&&process.nextTick(m)},c.lutimesSync=function(){})}function n(c){return c&&function(h,d,y){return c.call(e,h,d,function(m){f(m)&&(m=null),y&&y.apply(this,arguments)})}}function i(c){return c&&function(h,d){try{return c.call(e,h,d)}catch(y){if(!f(y))throw y}}}function o(c){return c&&function(h,d,y,m){return c.call(e,h,d,y,function(g){f(g)&&(g=null),m&&m.apply(this,arguments)})}}function a(c){return c&&function(h,d,y){try{return c.call(e,h,d,y)}catch(m){if(!f(m))throw m}}}function u(c){return c&&function(h,d,y){typeof d=="function"&&(y=d,d=null);function m(g,v){v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),y&&y.apply(this,arguments)}return d?c.call(e,h,d,m):c.call(e,h,m)}}function l(c){return c&&function(h,d){var y=d?c.call(e,h,d):c.call(e,h);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}function f(c){if(!c||c.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var Ff=p((GA,Af)=>{s();var Pf=D("stream").Stream;Af.exports=q0;function q0(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);Pf.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var a=Object.keys(i),u=0,l=a.length;u<l;u++){var f=a[u];this[f]=i[f]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(c,h){if(c){o.emit("error",c),o.readable=!1;return}o.fd=h,o.emit("open",h),o._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Pf.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),a=0,u=o.length;a<u;a++){var l=o[a];this[l]=i[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var If=p((BA,Rf)=>{"use strict";s();Rf.exports=C0;var E0=Object.getPrototypeOf||function(e){return e.__proto__};function C0(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:E0(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var ee=p((HA,Vn)=>{s();var M=D("fs"),O0=Tf(),T0=Ff(),P0=If(),qr=D("util"),B,Cr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(B=Symbol.for("graceful-fs.queue"),Cr=Symbol.for("graceful-fs.previous")):(B="___graceful-fs.queue",Cr="___graceful-fs.previous");function A0(){}function jf(e,t){Object.defineProperty(e,B,{get:function(){return t}})}var Ue=A0;qr.debuglog?Ue=qr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ue=function(){var e=qr.format.apply(qr,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
2
|
+
GFS4: `),console.error(e)});M[B]||(Lf=global[B]||[],jf(M,Lf),M.close=(function(e){function t(r,n){return e.call(M,r,function(i){i||Mf(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,Cr,{value:e}),t})(M.close),M.closeSync=(function(e){function t(r){e.apply(M,arguments),Mf()}return Object.defineProperty(t,Cr,{value:e}),t})(M.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ue(M[B]),D("assert").equal(M[B].length,0)}));var Lf;global[B]||jf(global,M[B]);Vn.exports=Kn(P0(M));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!M.__patched&&(Vn.exports=Kn(M),M.__patched=!0);function Kn(e){O0(e),e.gracefulify=Kn,e.createReadStream=we,e.createWriteStream=be;var t=e.readFile;e.readFile=r;function r(x,_,q){return typeof _=="function"&&(q=_,_=null),W(x,_,q);function W(G,k,I,j){return t(G,k,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?ot([W,[G,k,I],T,j||Date.now(),Date.now()]):typeof I=="function"&&I.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(x,_,q,W){return typeof q=="function"&&(W=q,q=null),G(x,_,q,W);function G(k,I,j,T,z){return n(k,I,j,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?ot([G,[k,I,j,T],F,z||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=a);function a(x,_,q,W){return typeof q=="function"&&(W=q,q=null),G(x,_,q,W);function G(k,I,j,T,z){return o(k,I,j,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?ot([G,[k,I,j,T],F,z||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var u=e.copyFile;u&&(e.copyFile=l);function l(x,_,q,W){return typeof q=="function"&&(W=q,q=0),G(x,_,q,W);function G(k,I,j,T,z){return u(k,I,j,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?ot([G,[k,I,j,T],F,z||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var f=e.readdir;e.readdir=h;var c=/^v[0-5]\./;function h(x,_,q){typeof _=="function"&&(q=_,_=null);var W=c.test(process.version)?function(I,j,T,z){return f(I,G(I,j,T,z))}:function(I,j,T,z){return f(I,j,G(I,j,T,z))};return W(x,_,q);function G(k,I,j,T){return function(z,F){z&&(z.code==="EMFILE"||z.code==="ENFILE")?ot([W,[k,I,j],z,T||Date.now(),Date.now()]):(F&&F.sort&&F.sort(),typeof j=="function"&&j.call(this,z,F))}}}if(process.version.substr(0,4)==="v0.8"){var d=T0(e);w=d.ReadStream,C=d.WriteStream}var y=e.ReadStream;y&&(w.prototype=Object.create(y.prototype),w.prototype.open=S);var m=e.WriteStream;m&&(C.prototype=Object.create(m.prototype),C.prototype.open=H),Object.defineProperty(e,"ReadStream",{get:function(){return w},set:function(x){w=x},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return C},set:function(x){C=x},enumerable:!0,configurable:!0});var g=w;Object.defineProperty(e,"FileReadStream",{get:function(){return g},set:function(x){g=x},enumerable:!0,configurable:!0});var v=C;Object.defineProperty(e,"FileWriteStream",{get:function(){return v},set:function(x){v=x},enumerable:!0,configurable:!0});function w(x,_){return this instanceof w?(y.apply(this,arguments),this):w.apply(Object.create(w.prototype),arguments)}function S(){var x=this;ze(x.path,x.flags,x.mode,function(_,q){_?(x.autoClose&&x.destroy(),x.emit("error",_)):(x.fd=q,x.emit("open",q),x.read())})}function C(x,_){return this instanceof C?(m.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function H(){var x=this;ze(x.path,x.flags,x.mode,function(_,q){_?(x.destroy(),x.emit("error",_)):(x.fd=q,x.emit("open",q))})}function we(x,_){return new e.ReadStream(x,_)}function be(x,_){return new e.WriteStream(x,_)}var ae=e.open;e.open=ze;function ze(x,_,q,W){return typeof q=="function"&&(W=q,q=null),G(x,_,q,W);function G(k,I,j,T,z){return ae(k,I,j,function(F,Vq){F&&(F.code==="EMFILE"||F.code==="ENFILE")?ot([G,[k,I,j,T],F,z||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}return e}function ot(e){Ue("ENQUEUE",e[0].name,e[1]),M[B].push(e),Yn()}var Er;function Mf(){for(var e=Date.now(),t=0;t<M[B].length;++t)M[B][t].length>2&&(M[B][t][3]=e,M[B][t][4]=e);Yn()}function Yn(){if(clearTimeout(Er),Er=void 0,M[B].length!==0){var e=M[B].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(i===void 0)Ue("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Ue("TIMEOUT",t.name,r);var a=r.pop();typeof a=="function"&&a.call(null,n)}else{var u=Date.now()-o,l=Math.max(o-i,1),f=Math.min(l*1.2,100);u>=f?(Ue("RETRY",t.name,r),t.apply(null,r.concat([i]))):M[B].push(e)}Er===void 0&&(Er=setTimeout(Yn,0))}}});var st=p(xe=>{"use strict";s();var Df=Q().fromCallback,V=ee(),F0=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof V[e]=="function");Object.assign(xe,V);F0.forEach(e=>{xe[e]=Df(V[e])});xe.exists=function(e,t){return typeof t=="function"?V.exists(e,t):new Promise(r=>V.exists(e,r))};xe.read=function(e,t,r,n,i,o){return typeof o=="function"?V.read(e,t,r,n,i,o):new Promise((a,u)=>{V.read(e,t,r,n,i,(l,f,c)=>{if(l)return u(l);a({bytesRead:f,buffer:c})})})};xe.write=function(e,t,...r){return typeof r[r.length-1]=="function"?V.write(e,t,...r):new Promise((n,i)=>{V.write(e,t,...r,(o,a,u)=>{if(o)return i(o);n({bytesWritten:a,buffer:u})})})};xe.readv=function(e,t,...r){return typeof r[r.length-1]=="function"?V.readv(e,t,...r):new Promise((n,i)=>{V.readv(e,t,...r,(o,a,u)=>{if(o)return i(o);n({bytesRead:a,buffers:u})})})};xe.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?V.writev(e,t,...r):new Promise((n,i)=>{V.writev(e,t,...r,(o,a,u)=>{if(o)return i(o);n({bytesWritten:a,buffers:u})})})};typeof V.realpath.native=="function"?xe.realpath.native=Df(V.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var kf=p((ZA,Nf)=>{"use strict";s();var R0=D("path");Nf.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(R0.parse(t).root,""))){let n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}}});var Gf=p((QA,Zn)=>{"use strict";s();var $f=st(),{checkPath:Uf}=kf(),Wf=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};Zn.exports.makeDir=async(e,t)=>(Uf(e),$f.mkdir(e,{mode:Wf(t),recursive:!0}));Zn.exports.makeDirSync=(e,t)=>(Uf(e),$f.mkdirSync(e,{mode:Wf(t),recursive:!0}))});var me=p((tF,zf)=>{"use strict";s();var I0=Q().fromPromise,{makeDir:L0,makeDirSync:Xn}=Gf(),Qn=I0(L0);zf.exports={mkdirs:Qn,mkdirsSync:Xn,mkdirp:Qn,mkdirpSync:Xn,ensureDir:Qn,ensureDirSync:Xn}});var Fe=p((nF,Jf)=>{"use strict";s();var M0=Q().fromPromise,Bf=st();function j0(e){return Bf.access(e).then(()=>!0).catch(()=>!1)}Jf.exports={pathExists:M0(j0),pathExistsSync:Bf.existsSync}});var ei=p((oF,Hf)=>{"use strict";s();var at=ee();function D0(e,t,r,n){at.open(e,"r+",(i,o)=>{if(i)return n(i);at.futimes(o,t,r,a=>{at.close(o,u=>{n&&n(a||u)})})})}function N0(e,t,r){let n=at.openSync(e,"r+");return at.futimesSync(n,t,r),at.closeSync(n)}Hf.exports={utimesMillis:D0,utimesMillisSync:N0}});var We=p((aF,Vf)=>{"use strict";s();var ut=st(),U=D("path"),k0=D("util");function $0(e,t,r){let n=r.dereference?i=>ut.stat(i,{bigint:!0}):i=>ut.lstat(i,{bigint:!0});return Promise.all([n(e),n(t).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,o])=>({srcStat:i,destStat:o}))}function U0(e,t,r){let n,i=r.dereference?a=>ut.statSync(a,{bigint:!0}):a=>ut.lstatSync(a,{bigint:!0}),o=i(e);try{n=i(t)}catch(a){if(a.code==="ENOENT")return{srcStat:o,destStat:null};throw a}return{srcStat:o,destStat:n}}function W0(e,t,r,n,i){k0.callbackify($0)(e,t,n,(o,a)=>{if(o)return i(o);let{srcStat:u,destStat:l}=a;if(l){if(At(u,l)){let f=U.basename(e),c=U.basename(t);return r==="move"&&f!==c&&f.toLowerCase()===c.toLowerCase()?i(null,{srcStat:u,destStat:l,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(u.isDirectory()&&!l.isDirectory())return i(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!u.isDirectory()&&l.isDirectory())return i(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return u.isDirectory()&&ti(e,t)?i(new Error(Or(e,t,r))):i(null,{srcStat:u,destStat:l})})}function G0(e,t,r,n){let{srcStat:i,destStat:o}=U0(e,t,n);if(o){if(At(i,o)){let a=U.basename(e),u=U.basename(t);if(r==="move"&&a!==u&&a.toLowerCase()===u.toLowerCase())return{srcStat:i,destStat:o,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!o.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&o.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&ti(e,t))throw new Error(Or(e,t,r));return{srcStat:i,destStat:o}}function Kf(e,t,r,n,i){let o=U.resolve(U.dirname(e)),a=U.resolve(U.dirname(r));if(a===o||a===U.parse(a).root)return i();ut.stat(a,{bigint:!0},(u,l)=>u?u.code==="ENOENT"?i():i(u):At(t,l)?i(new Error(Or(e,r,n))):Kf(e,t,a,n,i))}function Yf(e,t,r,n){let i=U.resolve(U.dirname(e)),o=U.resolve(U.dirname(r));if(o===i||o===U.parse(o).root)return;let a;try{a=ut.statSync(o,{bigint:!0})}catch(u){if(u.code==="ENOENT")return;throw u}if(At(t,a))throw new Error(Or(e,r,n));return Yf(e,t,o,n)}function At(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function ti(e,t){let r=U.resolve(e).split(U.sep).filter(i=>i),n=U.resolve(t).split(U.sep).filter(i=>i);return r.reduce((i,o,a)=>i&&n[a]===o,!0)}function Or(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}Vf.exports={checkPaths:W0,checkPathsSync:G0,checkParentPaths:Kf,checkParentPathsSync:Yf,isSrcSubdir:ti,areIdentical:At}});var rl=p((cF,tl)=>{"use strict";s();var te=ee(),Ft=D("path"),z0=me().mkdirs,B0=Fe().pathExists,J0=ei().utimesMillis,Rt=We();function H0(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
3
|
+
|
|
4
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),Rt.checkPaths(e,t,"copy",r,(i,o)=>{if(i)return n(i);let{srcStat:a,destStat:u}=o;Rt.checkParentPaths(e,a,t,"copy",l=>{if(l)return n(l);Xf(e,t,r,(f,c)=>{if(f)return n(f);if(!c)return n();K0(u,e,t,r,n)})})})}function K0(e,t,r,n,i){let o=Ft.dirname(r);B0(o,(a,u)=>{if(a)return i(a);if(u)return ri(e,t,r,n,i);z0(o,l=>l?i(l):ri(e,t,r,n,i))})}function Xf(e,t,r,n){if(!r.filter)return n(null,!0);Promise.resolve(r.filter(e,t)).then(i=>n(null,i),i=>n(i))}function ri(e,t,r,n,i){(n.dereference?te.stat:te.lstat)(t,(a,u)=>a?i(a):u.isDirectory()?t_(u,e,t,r,n,i):u.isFile()||u.isCharacterDevice()||u.isBlockDevice()?Y0(u,e,t,r,n,i):u.isSymbolicLink()?i_(e,t,r,n,i):u.isSocket()?i(new Error(`Cannot copy a socket file: ${t}`)):u.isFIFO()?i(new Error(`Cannot copy a FIFO pipe: ${t}`)):i(new Error(`Unknown file: ${t}`)))}function Y0(e,t,r,n,i,o){return t?V0(e,r,n,i,o):Qf(e,r,n,i,o)}function V0(e,t,r,n,i){if(n.overwrite)te.unlink(r,o=>o?i(o):Qf(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Qf(e,t,r,n,i){te.copyFile(t,r,o=>o?i(o):n.preserveTimestamps?Z0(e.mode,t,r,i):Tr(r,e.mode,i))}function Z0(e,t,r,n){return X0(e)?Q0(r,e,i=>i?n(i):Zf(e,t,r,n)):Zf(e,t,r,n)}function X0(e){return(e&128)===0}function Q0(e,t,r){return Tr(e,t|128,r)}function Zf(e,t,r,n){e_(t,r,i=>i?n(i):Tr(r,e,n))}function Tr(e,t,r){return te.chmod(e,t,r)}function e_(e,t,r){te.stat(e,(n,i)=>n?r(n):J0(t,i.atime,i.mtime,r))}function t_(e,t,r,n,i,o){return t?el(r,n,i,o):r_(e.mode,r,n,i,o)}function r_(e,t,r,n,i){te.mkdir(r,o=>{if(o)return i(o);el(t,r,n,a=>a?i(a):Tr(r,e,i))})}function el(e,t,r,n){te.readdir(e,(i,o)=>i?n(i):ni(o,e,t,r,n))}function ni(e,t,r,n,i){let o=e.pop();return o?n_(e,o,t,r,n,i):i()}function n_(e,t,r,n,i,o){let a=Ft.join(r,t),u=Ft.join(n,t);Xf(a,u,i,(l,f)=>{if(l)return o(l);if(!f)return ni(e,r,n,i,o);Rt.checkPaths(a,u,"copy",i,(c,h)=>{if(c)return o(c);let{destStat:d}=h;ri(d,a,u,i,y=>y?o(y):ni(e,r,n,i,o))})})}function i_(e,t,r,n,i){te.readlink(t,(o,a)=>{if(o)return i(o);if(n.dereference&&(a=Ft.resolve(process.cwd(),a)),e)te.readlink(r,(u,l)=>u?u.code==="EINVAL"||u.code==="UNKNOWN"?te.symlink(a,r,i):i(u):(n.dereference&&(l=Ft.resolve(process.cwd(),l)),Rt.isSrcSubdir(a,l)?i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${l}'.`)):Rt.isSrcSubdir(l,a)?i(new Error(`Cannot overwrite '${l}' with '${a}'.`)):o_(a,r,i)));else return te.symlink(a,r,i)})}function o_(e,t,r){te.unlink(t,n=>n?r(n):te.symlink(e,t,r))}tl.exports=H0});var al=p((lF,sl)=>{"use strict";s();var Z=ee(),It=D("path"),s_=me().mkdirsSync,a_=ei().utimesMillisSync,Lt=We();function u_(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
5
|
+
|
|
6
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:n,destStat:i}=Lt.checkPathsSync(e,t,"copy",r);if(Lt.checkParentPathsSync(e,n,t,"copy"),r.filter&&!r.filter(e,t))return;let o=It.dirname(t);return Z.existsSync(o)||s_(o),nl(i,e,t,r)}function nl(e,t,r,n){let o=(n.dereference?Z.statSync:Z.lstatSync)(t);if(o.isDirectory())return d_(o,e,t,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return c_(o,e,t,r,n);if(o.isSymbolicLink())return v_(e,t,r,n);throw o.isSocket()?new Error(`Cannot copy a socket file: ${t}`):o.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function c_(e,t,r,n,i){return t?f_(e,r,n,i):il(e,r,n,i)}function f_(e,t,r,n){if(n.overwrite)return Z.unlinkSync(r),il(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function il(e,t,r,n){return Z.copyFileSync(t,r),n.preserveTimestamps&&l_(e.mode,t,r),ii(r,e.mode)}function l_(e,t,r){return p_(e)&&h_(r,e),y_(t,r)}function p_(e){return(e&128)===0}function h_(e,t){return ii(e,t|128)}function ii(e,t){return Z.chmodSync(e,t)}function y_(e,t){let r=Z.statSync(e);return a_(t,r.atime,r.mtime)}function d_(e,t,r,n,i){return t?ol(r,n,i):m_(e.mode,r,n,i)}function m_(e,t,r,n){return Z.mkdirSync(r),ol(t,r,n),ii(r,e)}function ol(e,t,r){Z.readdirSync(e).forEach(n=>g_(n,e,t,r))}function g_(e,t,r,n){let i=It.join(t,e),o=It.join(r,e);if(n.filter&&!n.filter(i,o))return;let{destStat:a}=Lt.checkPathsSync(i,o,"copy",n);return nl(a,i,o,n)}function v_(e,t,r,n){let i=Z.readlinkSync(t);if(n.dereference&&(i=It.resolve(process.cwd(),i)),e){let o;try{o=Z.readlinkSync(r)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return Z.symlinkSync(i,r);throw a}if(n.dereference&&(o=It.resolve(process.cwd(),o)),Lt.isSrcSubdir(i,o))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);if(Lt.isSrcSubdir(o,i))throw new Error(`Cannot overwrite '${o}' with '${i}'.`);return w_(i,r)}else return Z.symlinkSync(i,r)}function w_(e,t){return Z.unlinkSync(t),Z.symlinkSync(e,t)}sl.exports=u_});var Pr=p((hF,ul)=>{"use strict";s();var S_=Q().fromCallback;ul.exports={copy:S_(rl()),copySync:al()}});var Mt=p((dF,fl)=>{"use strict";s();var cl=ee(),x_=Q().fromCallback;function __(e,t){cl.rm(e,{recursive:!0,force:!0},t)}function b_(e){cl.rmSync(e,{recursive:!0,force:!0})}fl.exports={remove:x_(__),removeSync:b_}});var vl=p((gF,gl)=>{"use strict";s();var q_=Q().fromPromise,hl=st(),yl=D("path"),dl=me(),ml=Mt(),ll=q_(async function(t){let r;try{r=await hl.readdir(t)}catch{return dl.mkdirs(t)}return Promise.all(r.map(n=>ml.remove(yl.join(t,n))))});function pl(e){let t;try{t=hl.readdirSync(e)}catch{return dl.mkdirsSync(e)}t.forEach(r=>{r=yl.join(e,r),ml.removeSync(r)})}gl.exports={emptyDirSync:pl,emptydirSync:pl,emptyDir:ll,emptydir:ll}});var _l=p((wF,xl)=>{"use strict";s();var E_=Q().fromCallback,wl=D("path"),Re=ee(),Sl=me();function C_(e,t){function r(){Re.writeFile(e,"",n=>{if(n)return t(n);t()})}Re.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let o=wl.dirname(e);Re.stat(o,(a,u)=>{if(a)return a.code==="ENOENT"?Sl.mkdirs(o,l=>{if(l)return t(l);r()}):t(a);u.isDirectory()?r():Re.readdir(o,l=>{if(l)return t(l)})})})}function O_(e){let t;try{t=Re.statSync(e)}catch{}if(t&&t.isFile())return;let r=wl.dirname(e);try{Re.statSync(r).isDirectory()||Re.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")Sl.mkdirsSync(r);else throw n}Re.writeFileSync(e,"")}xl.exports={createFile:E_(C_),createFileSync:O_}});var Ol=p((xF,Cl)=>{"use strict";s();var T_=Q().fromCallback,bl=D("path"),Ie=ee(),ql=me(),P_=Fe().pathExists,{areIdentical:El}=We();function A_(e,t,r){function n(i,o){Ie.link(i,o,a=>{if(a)return r(a);r(null)})}Ie.lstat(t,(i,o)=>{Ie.lstat(e,(a,u)=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),r(a);if(o&&El(u,o))return r(null);let l=bl.dirname(t);P_(l,(f,c)=>{if(f)return r(f);if(c)return n(e,t);ql.mkdirs(l,h=>{if(h)return r(h);n(e,t)})})})})}function F_(e,t){let r;try{r=Ie.lstatSync(t)}catch{}try{let o=Ie.lstatSync(e);if(r&&El(o,r))return}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let n=bl.dirname(t);return Ie.existsSync(n)||ql.mkdirsSync(n),Ie.linkSync(e,t)}Cl.exports={createLink:T_(A_),createLinkSync:F_}});var Pl=p((bF,Tl)=>{"use strict";s();var Le=D("path"),jt=ee(),R_=Fe().pathExists;function I_(e,t,r){if(Le.isAbsolute(e))return jt.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=Le.dirname(t),i=Le.join(n,e);return R_(i,(o,a)=>o?r(o):a?r(null,{toCwd:i,toDst:e}):jt.lstat(e,u=>u?(u.message=u.message.replace("lstat","ensureSymlink"),r(u)):r(null,{toCwd:e,toDst:Le.relative(n,e)})))}}function L_(e,t){let r;if(Le.isAbsolute(e)){if(r=jt.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=Le.dirname(t),i=Le.join(n,e);if(r=jt.existsSync(i),r)return{toCwd:i,toDst:e};if(r=jt.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Le.relative(n,e)}}}Tl.exports={symlinkPaths:I_,symlinkPathsSync:L_}});var Rl=p((EF,Fl)=>{"use strict";s();var Al=ee();function M_(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);Al.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function j_(e,t){let r;if(t)return t;try{r=Al.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Fl.exports={symlinkType:M_,symlinkTypeSync:j_}});var $l=p((OF,kl)=>{"use strict";s();var D_=Q().fromCallback,Ll=D("path"),ge=st(),Ml=me(),N_=Ml.mkdirs,k_=Ml.mkdirsSync,jl=Pl(),$_=jl.symlinkPaths,U_=jl.symlinkPathsSync,Dl=Rl(),W_=Dl.symlinkType,G_=Dl.symlinkTypeSync,z_=Fe().pathExists,{areIdentical:Nl}=We();function B_(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,ge.lstat(t,(i,o)=>{!i&&o.isSymbolicLink()?Promise.all([ge.stat(e),ge.stat(t)]).then(([a,u])=>{if(Nl(a,u))return n(null);Il(e,t,r,n)}):Il(e,t,r,n)})}function Il(e,t,r,n){$_(e,t,(i,o)=>{if(i)return n(i);e=o.toDst,W_(o.toCwd,r,(a,u)=>{if(a)return n(a);let l=Ll.dirname(t);z_(l,(f,c)=>{if(f)return n(f);if(c)return ge.symlink(e,t,u,n);N_(l,h=>{if(h)return n(h);ge.symlink(e,t,u,n)})})})})}function J_(e,t,r){let n;try{n=ge.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){let u=ge.statSync(e),l=ge.statSync(t);if(Nl(u,l))return}let i=U_(e,t);e=i.toDst,r=G_(i.toCwd,r);let o=Ll.dirname(t);return ge.existsSync(o)||k_(o),ge.symlinkSync(e,t,r)}kl.exports={createSymlink:D_(B_),createSymlinkSync:J_}});var Kl=p((PF,Hl)=>{"use strict";s();var{createFile:Ul,createFileSync:Wl}=_l(),{createLink:Gl,createLinkSync:zl}=Ol(),{createSymlink:Bl,createSymlinkSync:Jl}=$l();Hl.exports={createFile:Ul,createFileSync:Wl,ensureFile:Ul,ensureFileSync:Wl,createLink:Gl,createLinkSync:zl,ensureLink:Gl,ensureLinkSync:zl,createSymlink:Bl,createSymlinkSync:Jl,ensureSymlink:Bl,ensureSymlinkSync:Jl}});var Ar=p((FF,Yl)=>{s();function H_(e,{EOL:t=`
|
|
7
|
+
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let o=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+o}function K_(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}Yl.exports={stringify:H_,stripBom:K_}});var Ql=p((IF,Xl)=>{s();var ct;try{ct=ee()}catch{ct=D("fs")}var Fr=Q(),{stringify:Vl,stripBom:Zl}=Ar();async function Y_(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||ct,n="throws"in t?t.throws:!0,i=await Fr.fromCallback(r.readFile)(e,t);i=Zl(i);let o;try{o=JSON.parse(i,t?t.reviver:null)}catch(a){if(n)throw a.message=`${e}: ${a.message}`,a;return null}return o}var V_=Fr.fromPromise(Y_);function Z_(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||ct,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=Zl(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function X_(e,t,r={}){let n=r.fs||ct,i=Vl(t,r);await Fr.fromCallback(n.writeFile)(e,i,r)}var Q_=Fr.fromPromise(X_);function eb(e,t,r={}){let n=r.fs||ct,i=Vl(t,r);return n.writeFileSync(e,i,r)}Xl.exports={readFile:V_,readFileSync:Z_,writeFile:Q_,writeFileSync:eb}});var tp=p((MF,ep)=>{"use strict";s();var Rr=Ql();ep.exports={readJson:Rr.readFile,readJsonSync:Rr.readFileSync,writeJson:Rr.writeFile,writeJsonSync:Rr.writeFileSync}});var Ir=p((DF,ip)=>{"use strict";s();var tb=Q().fromCallback,Dt=ee(),rp=D("path"),np=me(),rb=Fe().pathExists;function nb(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=rp.dirname(e);rb(i,(o,a)=>{if(o)return n(o);if(a)return Dt.writeFile(e,t,r,n);np.mkdirs(i,u=>{if(u)return n(u);Dt.writeFile(e,t,r,n)})})}function ib(e,...t){let r=rp.dirname(e);if(Dt.existsSync(r))return Dt.writeFileSync(e,...t);np.mkdirsSync(r),Dt.writeFileSync(e,...t)}ip.exports={outputFile:tb(nb),outputFileSync:ib}});var sp=p((kF,op)=>{"use strict";s();var{stringify:ob}=Ar(),{outputFile:sb}=Ir();async function ab(e,t,r={}){let n=ob(t,r);await sb(e,n,r)}op.exports=ab});var up=p((UF,ap)=>{"use strict";s();var{stringify:ub}=Ar(),{outputFileSync:cb}=Ir();function fb(e,t,r){let n=ub(t,r);cb(e,n,r)}ap.exports=fb});var fp=p((GF,cp)=>{"use strict";s();var lb=Q().fromPromise,X=tp();X.outputJson=lb(sp());X.outputJsonSync=up();X.outputJSON=X.outputJson;X.outputJSONSync=X.outputJsonSync;X.writeJSON=X.writeJson;X.writeJSONSync=X.writeJsonSync;X.readJSON=X.readJson;X.readJSONSync=X.readJsonSync;cp.exports=X});var dp=p((BF,yp)=>{"use strict";s();var pb=ee(),si=D("path"),hb=Pr().copy,hp=Mt().remove,yb=me().mkdirp,db=Fe().pathExists,lp=We();function mb(e,t,r,n){typeof r=="function"&&(n=r,r={}),r=r||{};let i=r.overwrite||r.clobber||!1;lp.checkPaths(e,t,"move",r,(o,a)=>{if(o)return n(o);let{srcStat:u,isChangingCase:l=!1}=a;lp.checkParentPaths(e,u,t,"move",f=>{if(f)return n(f);if(gb(t))return pp(e,t,i,l,n);yb(si.dirname(t),c=>c?n(c):pp(e,t,i,l,n))})})}function gb(e){let t=si.dirname(e);return si.parse(t).root===t}function pp(e,t,r,n,i){if(n)return oi(e,t,r,i);if(r)return hp(t,o=>o?i(o):oi(e,t,r,i));db(t,(o,a)=>o?i(o):a?i(new Error("dest already exists.")):oi(e,t,r,i))}function oi(e,t,r,n){pb.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):vb(e,t,r,n):n())}function vb(e,t,r,n){hb(e,t,{overwrite:r,errorOnExist:!0},o=>o?n(o):hp(e,n))}yp.exports=mb});var Sp=p((HF,wp)=>{"use strict";s();var gp=ee(),ui=D("path"),wb=Pr().copySync,vp=Mt().removeSync,Sb=me().mkdirpSync,mp=We();function xb(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:o=!1}=mp.checkPathsSync(e,t,"move",r);return mp.checkParentPathsSync(e,i,t,"move"),_b(t)||Sb(ui.dirname(t)),bb(e,t,n,o)}function _b(e){let t=ui.dirname(e);return ui.parse(t).root===t}function bb(e,t,r,n){if(n)return ai(e,t,r);if(r)return vp(t),ai(e,t,r);if(gp.existsSync(t))throw new Error("dest already exists.");return ai(e,t,r)}function ai(e,t,r){try{gp.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return qb(e,t,r)}}function qb(e,t,r){return wb(e,t,{overwrite:r,errorOnExist:!0}),vp(e)}wp.exports=xb});var _p=p((YF,xp)=>{"use strict";s();var Eb=Q().fromCallback;xp.exports={move:Eb(dp()),moveSync:Sp()}});var Hp=p((cI,Jp)=>{s();var $p=wh();Jp.exports=Lb;var Up="\0SLASH"+Math.random()+"\0",Wp="\0OPEN"+Math.random()+"\0",di="\0CLOSE"+Math.random()+"\0",Gp="\0COMMA"+Math.random()+"\0",zp="\0PERIOD"+Math.random()+"\0";function yi(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function Rb(e){return e.split("\\\\").join(Up).split("\\{").join(Wp).split("\\}").join(di).split("\\,").join(Gp).split("\\.").join(zp)}function Ib(e){return e.split(Up).join("\\").split(Wp).join("{").split(di).join("}").split(Gp).join(",").split(zp).join(".")}function Bp(e){if(!e)return[""];var t=[],r=$p("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,o=r.post,a=n.split(",");a[a.length-1]+="{"+i+"}";var u=Bp(o);return o.length&&(a[a.length-1]+=u.shift(),a.push.apply(a,u)),t.push.apply(t,a),t}function Lb(e,t){if(!e)return[];t=t||{};var r=t.max==null?1/0:t.max;return e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),kt(Rb(e),r,!0).map(Ib)}function Mb(e){return"{"+e+"}"}function jb(e){return/^-?0\d/.test(e)}function Db(e,t){return e<=t}function Nb(e,t){return e>=t}function kt(e,t,r){var n=[],i=$p("{","}",e);if(!i)return[e];var o=i.pre,a=i.post.length?kt(i.post,t,!1):[""];if(/\$$/.test(i.pre))for(var u=0;u<a.length&&u<t;u++){var l=o+"{"+i.body+"}"+a[u];n.push(l)}else{var f=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),h=f||c,d=i.body.indexOf(",")>=0;if(!h&&!d)return i.post.match(/,(?!,).*\}/)?(e=i.pre+"{"+i.body+di+i.post,kt(e,t,!0)):[e];var y;if(h)y=i.body.split(/\.\./);else if(y=Bp(i.body),y.length===1&&(y=kt(y[0],t,!1).map(Mb),y.length===1))return a.map(function(q){return i.pre+y[0]+q});var m;if(h){var g=yi(y[0]),v=yi(y[1]),w=Math.max(y[0].length,y[1].length),S=y.length==3?Math.max(Math.abs(yi(y[2])),1):1,C=Db,H=v<g;H&&(S*=-1,C=Nb);var we=y.some(jb);m=[];for(var be=g;C(be,v);be+=S){var ae;if(c)ae=String.fromCharCode(be),ae==="\\"&&(ae="");else if(ae=String(be),we){var ze=w-ae.length;if(ze>0){var x=new Array(ze+1).join("0");be<0?ae="-"+x+ae.slice(1):ae=x+ae}}m.push(ae)}}else{m=[];for(var _=0;_<y.length;_++)m.push.apply(m,kt(y[_],t,!1))}for(var _=0;_<m.length;_++)for(var u=0;u<a.length&&n.length<t;u++){var l=o+m[_]+a[u];(!r||h||l)&&n.push(l)}}return n}});s();s();s();import{realpathSync as xh}from"fs";var zt;function Yr(e=process.argv){try{if(zt!==void 0&&!ye())return zt;let t=Ei()??qi(),r=_h(t);if(!r)return!0;let n=e[1]??"";return n?(zt=!bi(r.trim(),n),zt):!0}catch{return!1}}async function tE(e){let{outputInfo:t}=await import("./output-X47P6ICP.js"),{exec:r}=await import("./system-SR5G7WEW.js"),n=e==="yarn"?["global","add","@shopify/cli@latest"]:["install","-g","@shopify/cli@latest"];t(`Running ${e} ${n.join(" ")}...`),await r(e,n,{stdio:"inherit"})}async function rE(){let{terminalSupportsPrompting:e}=await import("./system-SR5G7WEW.js");if(!e())return{install:!1,alreadyInstalled:!1};let{globalCLIVersion:t}=await import("./version-FK4ETQ22.js");if(await t())return{install:!1,alreadyInstalled:!0};let{renderSelectPrompt:r}=await import("./ui-VYWSLAQ6.js");return{install:await r({message:"We recommend installing Shopify CLI globally in your system. Would you like to install it now?",choices:[{value:"yes",label:"Yes"},{value:"no",label:"No, just for this project"}]})==="yes",alreadyInstalled:!1}}function nE(e=process.argv,t=process.env){if(!Yr(e))return"unknown";if(t.SHOPIFY_HOMEBREW_FORMULA)return"homebrew";let r=e[1]??"",n=r.toLowerCase(),i=n;try{i=xh(r).toLowerCase()}catch{}let o=a=>i.includes(a)||n.includes(a);return o("yarn")?"yarn":o("pnpm")?"pnpm":o("bun")?"bun":i.includes("/cellar/")?"homebrew":"npm"}function _h(e){let t=["shopify.app{,.*}.toml","hydrogen.config.js","hydrogen.config.ts"],r=n=>{let i=Ti(t.map(o=>pt(n,o)));return i.length>0?i[0]:void 0};try{let n=Pi(r,{cwd:e,type:"file"});if(n)return xi(n)}catch{return}}s();s();s();import Vr from"node:process";var E="\x1B[",dt="\x1B]",Be="\x07",yt=";",Zr=typeof window<"u"&&typeof window.document<"u",Ai=!Zr&&Vr.env.TERM_PROGRAM==="Apple_Terminal",bh=!Zr&&Vr.platform==="win32",qh=Zr?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:Vr.cwd,b={};b.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?E+(e+1)+"G":E+(t+1)+yt+(e+1)+"H"};b.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=E+-e+"D":e>0&&(r+=E+e+"C"),t<0?r+=E+-t+"A":t>0&&(r+=E+t+"B"),r};b.cursorUp=(e=1)=>E+e+"A";b.cursorDown=(e=1)=>E+e+"B";b.cursorForward=(e=1)=>E+e+"C";b.cursorBackward=(e=1)=>E+e+"D";b.cursorLeft=E+"G";b.cursorSavePosition=Ai?"\x1B7":E+"s";b.cursorRestorePosition=Ai?"\x1B8":E+"u";b.cursorGetPosition=E+"6n";b.cursorNextLine=E+"E";b.cursorPrevLine=E+"F";b.cursorHide=E+"?25l";b.cursorShow=E+"?25h";b.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=b.eraseLine+(r<e-1?b.cursorUp():"");return e&&(t+=b.cursorLeft),t};b.eraseEndLine=E+"K";b.eraseStartLine=E+"1K";b.eraseLine=E+"2K";b.eraseDown=E+"J";b.eraseUp=E+"1J";b.eraseScreen=E+"2J";b.scrollUp=E+"S";b.scrollDown=E+"T";b.clearScreen="\x1Bc";b.clearTerminal=bh?`${b.eraseScreen}${E}0f`:`${b.eraseScreen}${E}3J${E}H`;b.enterAlternativeScreen=E+"?1049h";b.exitAlternativeScreen=E+"?1049l";b.beep=Be;b.link=(e,t)=>[dt,"8",yt,yt,t,Be,e,dt,"8",yt,yt,Be].join("");b.image=(e,t={})=>{let r=`${dt}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+Be};b.iTerm={setCwd:(e=qh())=>`${dt}50;CurrentDir=${e}${Be}`,annotation(e,t={}){let r=`${dt}1337;`,n=typeof t.x<"u",i=typeof t.y<"u";if((n||i)&&!(n&&i&&typeof t.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(n?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+Be}};var Fi=b;var Ni=Y(Di(),1),oe=class{value;constructor(t){this.value=t}},Bt=class extends oe{output(){return this.value}},Jt=class extends oe{link;fallback;constructor(t,r,n){super(t),this.link=r??N(t),this.fallback=n}output(){let t=O.green(N(this.value)),r=this.link??"",n=this.value===this.link?t:`${t} ( ${r} )`;return Ni.default.stdout?Fi.link(t,r):this.fallback??n}},mt=class extends oe{output(){return`\`${O.magentaBright(N(this.value))}\``}},Th=/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g;function Ph(e){let t=typeof e=="string"?JSON.parse(e):e,n=JSON.stringify(t,void 0,2).replace(Th,i=>i.startsWith('"')?i.endsWith(":")?O.white(i):O.green(i):i==="true"||i==="false"?O.cyan(i):i==="null"?O.red(i):O.magenta(i));return O.yellow(n)}var Ht=class extends oe{output(){try{return Ph(N(this.value)??{})}catch{return JSON.stringify(N(this.value)??{},null,2)}}},Kt=class extends oe{output(){return this.value.flatMap(t=>t.added?t.value.split(/\n/).filter(r=>r!=="").map(r=>O.green(`+ ${r}
|
|
8
|
+
`)):t.removed?t.value.split(/\n/).filter(r=>r!=="").map(r=>O.magenta(`- ${r}
|
|
9
|
+
`)):t.value)}},Se=class extends oe{color;constructor(t,r){super(t),this.color=r}output(){return this.color(N(this.value))}},gt=class extends oe{output(){return O.bold.redBright(N(this.value))}},Yt=class extends oe{output(){return _i(N(this.value))}},Vt=class extends oe{output(){return O.bold.underline(N(this.value))}},Zt=class extends oe{output(){return O.underline(N(this.value))}},Xt=class extends oe{output(){return O.italic(N(this.value))}};s();function vt(e){return typeof e=="string"?e:"command"in e?e.command:"link"in e?e.link.label||e.link.url:"char"in e?e.char:"userInput"in e?e.userInput:"subdued"in e?e.subdued:"filePath"in e?e.filePath:"list"in e?e.list.items.map(vt).join(" "):"bold"in e?e.bold:"info"in e?e.info:"warn"in e?e.warn:"error"in e?e.error:e.map((t,r)=>r!==0&&!(typeof t!="string"&&"char"in t)?` ${vt(t)}`:vt(t)).join("")}function _E(e,t){return Array.isArray(e)?[...e,{char:t}]:[e,{char:t}]}s();function ki(e){return Wi()?e:wt(e)}function $i(e){process.stdout.write(`${ki(e)}
|
|
10
|
+
`)}function Ce(e){process.stderr.write(`${ki(e)}
|
|
11
|
+
`)}function Ui(e,t="info",r=Ce){ye()&&De(t,e);let n=N(e);Ne(t,r,n)}import{Writable as Ah}from"stream";var Qt=class{value;constructor(t){this.value=t}},P={raw(e){return new Bt(e)},genericShellCommand(e){return new mt(e)},json(e){return new Ht(e)},path(e){return new Yt(e)},link(e,t,r){return new Jt(e,t,r)},heading(e){return new Vt(e)},subheading(e){return new Zt(e)},italic(e){return new Xt(e)},errorText(e){return new gt(e)},cyan(e){return new Se(e,O.cyan)},yellow(e){return new Se(e,O.yellow)},magenta(e){return new Se(e,O.magenta)},green(e){return new Se(e,O.green)},gray(e){return new Se(e,O.gray)},packagejsonScript(e,t,...r){return new mt(Fh(e,t,...r))},successIcon(){return new Se("\u2714",O.green)},failIcon(){return new gt("\u2716")},linesDiff(e){return new Kt(e)}};function Fh(e,t,...r){if(Yr())return[t,...r].join(" ");switch(e){case"pnpm":case"bun":case"yarn":return[e,t,...r].join(" ");case"npm":{let n=["npm","run",t];return r.length>0&&(n.push("--"),n.push(...r)),n.join(" ")}case"homebrew":case"unknown":return[t,...r].join(" ")}}function R(e,...t){let r=e.reduce((n,i,o)=>{let a=t[o],u="";if(typeof a=="string")u=a;else if(a){let l=a.output();u=Array.isArray(l)?l.join(""):l}return n+i+u},"");return new Qt(r)}function Gi(e){switch(e){case"trace":return 10;case"debug":return 20;case"info":return 30;case"warn":return 40;case"error":return 50;case"fatal":return 60;case"silent":return 70}}function Rh(){return Oi()?"debug":"info"}function zi(e){if(ye())return!1;let t=Gi(Rh());return Gi(e)>=t}var St={},tn;function De(e,t){let r=Kr(N(t));St.output??=[],St[e]??=[],St.output.push(r),St[e].push(r)}var NE=()=>{St={}};function kE(e){Ui(e,"info",$i)}function $E(e,t=Ce){let r=N(e);ye()&&De("info",e),Ne("info",t,r)}function UE(e,t=Ce){let r=O.bold(`\u2705 Success! ${N(e)}.`);ye()&&De("success",e),Ne("info",t,r)}function WE(e,t=Ce){let r=`${O.green("\u2714")} ${N(e)}`;ye()&&De("completed",e),Ne("info",t,r)}function L(e,t=Ce){if(ye()&&De("debug",e),!zi("debug"))return;let r=O.gray(N(e));Ne("debug",t,`${new Date().toISOString()}: ${r}`)}function GE(e,t=Ce){ye()&&De("warn",e);let r=O.yellow(N(e));Ne("warn",t,r)}function zE(){Ce("")}function N(e){return e instanceof Qt?e.value:e}function BE(e){return vt(e)}function Ne(e,t,r){zi(e)&&(t instanceof Ah?t.write(r):t(r,e))}function wt(e){return e.includes("\x1B")?Kr(e):e}function Wi(e=process){if(e===process&&tn!==void 0)return tn;let{env:t,stdout:r}=e,n=Object.hasOwnProperty.call(t,"FORCE_COLOR")?wi(t.FORCE_COLOR):!!r.isTTY;return e===process&&(tn=n),n}function JE(e,t){let r=e.toUpperCase().padEnd(35);return R`${P.heading(r)}\n${t}`.value}s();s();var Lc=Y(tc(),1),xx=Y(Ic(),1);function Mn(e){return e[Math.floor(Math.random()*e.length)]}function IP(e){return e.filter(t=>t!==void 0)}function LP(e){return e.length!==new Set(e).size}function Mc(e){return Array.from(new Set(e))}function MP(e,t){return(0,Lc.default)(e,t)}function jP(e){return e.length<2?e:e.reduce((t,r,n)=>(n===e.length-1?t.push("and"):n!==0&&t.push(", "),t.push(r),t),[])}var le=Y(qf()),y0=["commercial","profitable","amortizable","branded","integrated","synergistic","consolidated","diversified","lean","niche","premium","luxury","scalable","optimized","empowered","international","beneficial","fruitful","extensive","lucrative","modern","stable","strategic","adaptive","efficient","growing","sustainable","innovative","regional","specialized","focused","pragmatic","ethical","flexible","competitive"],d0=["bright","impactful","stylish","colorful","modern","minimal","trendy","creative","artistic","spectacular","glamorous","luxury","retro","nostalgic","comfy","polished","fabulous","balanced","monochrome","glitched","contrasted","elegant","textured","vibrant","harmonious","versatile","eclectic","futuristic","idealistic","intricate","bohemian","abstract","meticulous","refined","flamboyant"],m0=["account","consumer","customer","enterprise","business","venture","marketplace","revenue","vertical","portfolio","negotiation","shipping","demand","supply","growth","merchant","investment","shareholder","conversion","capital","projection","upside","trade","deal","merchandise","transaction","sale","franchise","subsidiary","logistics","sponsorship","partnership","tax","policy","outsource","equity","strategy","valuation","benchmark","metrics","duplication"],g0=["vibe","style","moment","mood","flavor","look","appearance","perspective","aspect","ambience","quality","backdrop","focus","tone","inspiration","imagery","aesthetics","palette","ornamentation","contrast","colorway","visuals","typography","composition","scale","symmetry","gradients","proportions","textures","harmony","shapes","patterns"],Ef={business:{adjectives:y0,nouns:m0},creative:{adjectives:d0,nouns:g0}};function Cf(e="business"){return`${Mn(Ef[e].adjectives)}-${Mn(Ef[e].nouns)}`}function vA(e){return e.substring(0,1).toUpperCase()+e.substring(1)}function wA(e,t,r,n){return e.length===1?r(e[0]):e.length>1?t(e):n?n():""}function SA(e){if(e===void 0)return;let t=Number.parseInt(e,10);return Number.isNaN(t)?void 0:t}function xA(e){let t=[];for(let n=0;e[0]&&n<e[0].length;n++){let i=e.map(o=>o[n]);t.push(Math.max(...i.map(o=>wt(o).length)))}return e.map(n=>n.map((i,o)=>`${i}${" ".repeat(t[o]-wt(i).length)}`).join(" ").trimEnd()).join(`
|
|
12
|
+
`)}function _A(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function bA(e){return(0,le.camelCase)(e)}function qA(e){return(0,le.capitalCase)(e)}function EA(e){return(0,le.paramCase)(e)}function CA(e){return(0,le.snakeCase)(e)}function OA(e){return(0,le.constantCase)(e)}function v0(e){let t=e.toISOString().split("T"),r=t[0]??e.toDateString(),n=t[1]?.split(".")[0]??e.toTimeString();return`${r} ${n}`}function TA(e){let t=new Date(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()));return v0(r)}function PA(e){return e.length===0?"":e.length===1?`"${e[0]}"`:`${e.slice(0,-1).map(t=>`"${t}"`).join(", ")} and "${e[e.length-1]}"`}function AA(e){return(0,le.pascalCase)(e)}function FA(e,t=","){if(e)return Mc(e.split(t).map(r=>r.trim()).filter(r=>r!=="")).sort().join(t)}function RA(e,t){let r=Math.floor((t.getTime()-e.getTime())/1e3);if(r<60)return`${_r(r,"second")} ago`;let n=Math.floor(r/60);if(n<60)return`${_r(n,"minute")} ago`;let i=Math.floor(n/60);if(i<24)return`${_r(i,"hour")} ago`;let o=Math.floor(i/24);return`${_r(o,"day")} ago`}function _r(e,t){return`${e} ${t}${e===1?"":"s"}`}s();import{realpath as w0}from"fs/promises";import{tmpdir as S0}from"os";var Bn=await w0(S0());s();var Lr=Y(Pr(),1),ft=Y(vl(),1),re=Y(Kl(),1),ne=Y(fp(),1),Me=Y(me(),1),Mr=Y(_p(),1),jr=Y(Ir(),1),Dr=Y(Fe(),1),Nr=Y(Mt(),1),ci=Lr.default.copy,ZF=Lr.default.copySync,XF=ft.default.emptyDirSync,QF=ft.default.emptydirSync,eR=ft.default.emptyDir,tR=ft.default.emptydir,rR=re.default.createFile,nR=re.default.createFileSync,bp=re.default.ensureFile,qp=re.default.ensureFileSync,iR=re.default.createLink,oR=re.default.createLinkSync,sR=re.default.ensureLink,aR=re.default.ensureLinkSync,uR=re.default.createSymlink,cR=re.default.createSymlinkSync,fR=re.default.ensureSymlink,lR=re.default.ensureSymlinkSync,pR=ne.default.readJson,hR=ne.default.readJSON,yR=ne.default.readJsonSync,dR=ne.default.readJSONSync,mR=ne.default.writeJson,gR=ne.default.writeJSON,vR=ne.default.writeJsonSync,wR=ne.default.writeJSONSync,SR=ne.default.outputJson,xR=ne.default.outputJSON,_R=ne.default.outputJsonSync,bR=ne.default.outputJSONSync,qR=Me.default.mkdirs,ER=Me.default.mkdirsSync,CR=Me.default.mkdirp,OR=Me.default.mkdirpSync,TR=Me.default.ensureDir,PR=Me.default.ensureDirSync,Ep=Mr.default.move,AR=Mr.default.moveSync,FR=jr.default.outputFile,RR=jr.default.outputFileSync,IR=Dr.default.pathExists,LR=Dr.default.pathExistsSync,Cp=Nr.default.remove,Op=Nr.default.removeSync,MR={...Lr.default,...ft.default,...re.default,...ne.default,...Me.default,...Mr.default,...jr.default,...Dr.default,...Nr.default};s();import _e from"node:path";import{fileURLToPath as Pb}from"node:url";s();import Ap from"node:process";import Fp from"node:path";import Tp,{promises as Pp}from"node:fs";import{fileURLToPath as Tb}from"node:url";s();s();s();var fi=class{value;next;constructor(t){this.value=t}},Nt=class{#t;#r;#i;constructor(){this.clear()}enqueue(t){let r=new fi(t);this.#t?(this.#r.next=r,this.#r=r):(this.#t=r,this.#r=r),this.#i++}dequeue(){let t=this.#t;if(t)return this.#t=this.#t.next,this.#i--,this.#t||(this.#r=void 0),t.value}peek(){if(this.#t)return this.#t.value}clear(){this.#t=void 0,this.#r=void 0,this.#i=0}get size(){return this.#i}*[Symbol.iterator](){let t=this.#t;for(;t;)yield t.value,t=t.next}*drain(){for(;this.#t;)yield this.dequeue()}};function kr(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new Nt,r=0,n=()=>{r--,t.size>0&&t.dequeue()()},i=async(u,l,f)=>{r++;let c=(async()=>u(...f))();l(c);try{await c}catch{}n()},o=(u,l,f)=>{t.enqueue(i.bind(void 0,u,l,f)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},a=(u,...l)=>new Promise(f=>{o(u,f,l)});return Object.defineProperties(a,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),a}var $r=class extends Error{constructor(t){super(),this.value=t}},Cb=async(e,t)=>t(await e),Ob=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new $r(t[0]);return!1};async function li(e,t,{concurrency:r=Number.POSITIVE_INFINITY,preserveOrder:n=!0}={}){let i=kr(r),o=[...e].map(u=>[u,i(Cb,u,t)]),a=kr(n?1:Number.POSITIVE_INFINITY);try{await Promise.all(o.map(u=>a(Ob,u)))}catch(u){if(u instanceof $r)return u.value;throw u}}var Rp={directory:"isDirectory",file:"isFile"};function Ip(e){if(!Object.hasOwnProperty.call(Rp,e))throw new Error(`Invalid type specified: ${e}`)}var Lp=(e,t)=>t[Rp[e]](),Mp=e=>e instanceof URL?Tb(e):e;async function pi(e,{cwd:t=Ap.cwd(),type:r="file",allowSymlinks:n=!0,concurrency:i,preserveOrder:o}={}){Ip(r),t=Mp(t);let a=n?Pp.stat:Pp.lstat;return li(e,async u=>{try{let l=await a(Fp.resolve(t,u));return Lp(r,l)}catch{return!1}},{concurrency:i,preserveOrder:o})}function hi(e,{cwd:t=Ap.cwd(),type:r="file",allowSymlinks:n=!0}={}){Ip(r),t=Mp(t);let i=n?Tp.statSync:Tp.lstatSync;for(let o of e)try{let a=i(Fp.resolve(t,o),{throwIfNoEntry:!1});if(!a)continue;if(Lp(r,a))return o}catch{}}s();var jp=e=>e instanceof URL?Pb(e):e,Dp=Symbol("findUpStop");async function Ab(e,t={}){let r=_e.resolve(jp(t.cwd)||""),{root:n}=_e.parse(r),i=_e.resolve(r,t.stopAt||n),o=t.limit||Number.POSITIVE_INFINITY,a=[e].flat(),u=async f=>{if(typeof e!="function")return pi(a,f);let c=await e(f.cwd);return typeof c=="string"?pi([c],f):c},l=[];for(;;){let f=await u({...t,cwd:r});if(f===Dp||(f&&l.push(_e.resolve(r,f)),r===i||l.length>=o))break;r=_e.dirname(r)}return l}function Fb(e,t={}){let r=_e.resolve(jp(t.cwd)||""),{root:n}=_e.parse(r),i=t.stopAt||n,o=t.limit||Number.POSITIVE_INFINITY,a=[e].flat(),u=f=>{if(typeof e!="function")return hi(a,f);let c=e(f.cwd);return typeof c=="string"?hi([c],f):c},l=[];for(;;){let f=u({...t,cwd:r});if(f===Dp||(f&&l.push(_e.resolve(r,f)),r===i||l.length>=o))break;r=_e.dirname(r)}return l}async function Np(e,t={}){return(await Ab(e,{...t,limit:1}))[0]}function kp(e,t={}){return Fb(e,{...t,limit:1})[0]}s();var rh=Y(Hp(),1);s();var $t=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};s();s();var kb={"[: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]},Ut=e=>e.replace(/[[\]\\-]/g,"\\$&"),$b=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Kp=e=>e.join(""),Yp=(e,t)=>{let r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],o=r+1,a=!1,u=!1,l=!1,f=!1,c=r,h="";e:for(;o<e.length;){let g=e.charAt(o);if((g==="!"||g==="^")&&o===r+1){f=!0,o++;continue}if(g==="]"&&a&&!l){c=o+1;break}if(a=!0,g==="\\"&&!l){l=!0,o++;continue}if(g==="["&&!l){for(let[v,[w,S,C]]of Object.entries(kb))if(e.startsWith(v,o)){if(h)return["$.",!1,e.length-r,!0];o+=v.length,C?i.push(w):n.push(w),u=u||S;continue e}}if(l=!1,h){g>h?n.push(Ut(h)+"-"+Ut(g)):g===h&&n.push(Ut(g)),h="",o++;continue}if(e.startsWith("-]",o+1)){n.push(Ut(g+"-")),o+=2;continue}if(e.startsWith("-",o+1)){h=g,o+=2;continue}n.push(Ut(g)),o++}if(c<o)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!f){let g=n[0].length===2?n[0].slice(-1):n[0];return[$b(g),!1,c-r,!1]}let d="["+(f?"^":"")+Kp(n)+"]",y="["+(f?"":"^")+Kp(i)+"]";return[n.length&&i.length?"("+d+"|"+y+")":n.length?d:y,u,c-r,!0]};s();var je=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var ie,Ub=new Set(["!","?","+","*","@"]),mi=e=>Ub.has(e),Vp=e=>mi(e.type),Wb=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),Gb=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),zb=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Zp=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),Bb="(?!(?:^|/)\\.\\.?(?:$|/))",Ur="(?!\\.)",Jb=new Set(["[","."]),Hb=new Set(["..","."]),Kb=new Set("().*{}+?[]^$\\!"),Yb=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),gi="[^/]",Xp=gi+"*?",Qp=gi+"+?",Ge=class{type;#t;#r;#i=!1;#e=[];#n;#a;#c;#u=!1;#o;#s;#f=!1;constructor(t,r,n={}){this.type=t,t&&(this.#r=!0),this.#n=r,this.#t=this.#n?this.#n.#t:this,this.#o=this.#t===this?n:this.#t.#o,this.#c=this.#t===this?[]:this.#t.#c,t==="!"&&!this.#t.#u&&this.#c.push(this),this.#a=this.#n?this.#n.#e.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let t of this.#e)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#s!==void 0?this.#s:this.type?this.#s=this.type+"("+this.#e.map(t=>String(t)).join("|")+")":this.#s=this.#e.map(t=>String(t)).join("")}#g(){if(this!==this.#t)throw new Error("should only call on root");if(this.#u)return this;this.toString(),this.#u=!0;let t;for(;t=this.#c.pop();){if(t.type!=="!")continue;let r=t,n=r.#n;for(;n;){for(let i=r.#a+1;!n.type&&i<n.#e.length;i++)for(let o of t.#e){if(typeof o=="string")throw new Error("string part in extglob AST??");o.copyIn(n.#e[i])}r=n,n=r.#n}}return this}push(...t){for(let r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof ie&&r.#n===this))throw new Error("invalid part: "+r);this.#e.push(r)}}toJSON(){let t=this.type===null?this.#e.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#e.map(r=>r.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#u&&this.#n?.type==="!")&&t.push({}),t}isStart(){if(this.#t===this)return!0;if(!this.#n?.isStart())return!1;if(this.#a===0)return!0;let t=this.#n;for(let r=0;r<this.#a;r++){let n=t.#e[r];if(!(n instanceof ie&&n.type==="!"))return!1}return!0}isEnd(){if(this.#t===this||this.#n?.type==="!")return!0;if(!this.#n?.isEnd())return!1;if(!this.type)return this.#n?.isEnd();let t=this.#n?this.#n.#e.length:0;return this.#a===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let r=new ie(this.type,t);for(let n of this.#e)r.copyIn(n);return r}static#l(t,r,n,i,o){let a=i.maxExtglobRecursion??2,u=!1,l=!1,f=-1,c=!1;if(r.type===null){let g=n,v="";for(;g<t.length;){let w=t.charAt(g++);if(u||w==="\\"){u=!u,v+=w;continue}if(l){g===f+1?(w==="^"||w==="!")&&(c=!0):w==="]"&&!(g===f+2&&c)&&(l=!1),v+=w;continue}else if(w==="["){l=!0,f=g,c=!1,v+=w;continue}if(!i.noext&&mi(w)&&t.charAt(g)==="("&&o<=a){r.push(v),v="";let C=new ie(w,r);g=ie.#l(t,C,g,i,o+1),r.push(C);continue}v+=w}return r.push(v),g}let h=n+1,d=new ie(null,r),y=[],m="";for(;h<t.length;){let g=t.charAt(h++);if(u||g==="\\"){u=!u,m+=g;continue}if(l){h===f+1?(g==="^"||g==="!")&&(c=!0):g==="]"&&!(h===f+2&&c)&&(l=!1),m+=g;continue}else if(g==="["){l=!0,f=h,c=!1,m+=g;continue}if(mi(g)&&t.charAt(h)==="("&&(o<=a||r&&r.#p(g))){let w=r&&r.#p(g)?0:1;d.push(m),m="";let S=new ie(g,d);d.push(S),h=ie.#l(t,S,h,i,o+w);continue}if(g==="|"){d.push(m),m="",y.push(d),d=new ie(null,r);continue}if(g===")")return m===""&&r.#e.length===0&&(r.#f=!0),d.push(m),m="",r.push(...y,d),h;m+=g}return r.type=null,r.#r=void 0,r.#e=[t.substring(n-1)],h}#v(t){return this.#y(t,Gb)}#y(t,r=Wb){if(!t||typeof t!="object"||t.type!==null||t.#e.length!==1||this.type===null)return!1;let n=t.#e[0];return!n||typeof n!="object"||n.type===null?!1:this.#p(n.type,r)}#p(t,r=zb){return!!r.get(this.type)?.includes(t)}#w(t,r){let n=t.#e[0],i=new ie(null,n,this.options);i.#e.push(""),n.push(i),this.#d(t,r)}#d(t,r){let n=t.#e[0];this.#e.splice(r,1,...n.#e);for(let i of n.#e)typeof i=="object"&&(i.#n=this);this.#s=void 0}#S(t){return!!Zp.get(this.type)?.has(t)}#x(t){if(!t||typeof t!="object"||t.type!==null||t.#e.length!==1||this.type===null||this.#e.length!==1)return!1;let r=t.#e[0];return!r||typeof r!="object"||r.type===null?!1:this.#S(r.type)}#_(t){let r=Zp.get(this.type),n=t.#e[0],i=r?.get(n.type);if(!i)return!1;this.#e=n.#e;for(let o of this.#e)typeof o=="object"&&(o.#n=this);this.type=i,this.#s=void 0,this.#f=!1}#h(){if(Vp(this)){let t=0,r=!1;do{r=!0;for(let n=0;n<this.#e.length;n++){let i=this.#e[n];typeof i=="object"&&(i.#h(),this.#y(i)?(r=!1,this.#d(i,n)):this.#v(i)?(r=!1,this.#w(i,n)):this.#x(i)&&(r=!1,this.#_(i)))}}while(!r&&++t<10)}else for(let t of this.#e)typeof t=="object"&&t.#h();this.#s=void 0}static fromGlob(t,r={}){let n=new ie(null,void 0,r);return ie.#l(t,n,0,r,0),n}toMMPattern(){if(this!==this.#t)return this.#t.toMMPattern();let t=this.toString(),[r,n,i,o]=this.toRegExpSource();if(!(i||this.#r||this.#o.nocase&&!this.#o.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;let u=(this.#o.nocase?"i":"")+(o?"u":"");return Object.assign(new RegExp(`^${r}$`,u),{_src:r,_glob:t})}get options(){return this.#o}toRegExpSource(t){let r=t??!!this.#o.dot;if(this.#t===this&&(this.#h(),this.#g()),!Vp(this)){let l=this.isStart()&&this.isEnd(),f=this.#e.map(y=>{let[m,g,v,w]=typeof y=="string"?ie.#b(y,this.#r,l):y.toRegExpSource(t);return this.#r=this.#r||v,this.#i=this.#i||w,m}).join(""),c="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&Hb.has(this.#e[0]))){let m=Jb,g=r&&m.has(f.charAt(0))||f.startsWith("\\.")&&m.has(f.charAt(2))||f.startsWith("\\.\\.")&&m.has(f.charAt(4)),v=!r&&!t&&m.has(f.charAt(0));c=g?Bb:v?Ur:""}let h="";return this.isEnd()&&this.#t.#u&&this.#n?.type==="!"&&(h="(?:$|\\/)"),[c+f+h,je(f),this.#r=!!this.#r,this.#i]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",o=this.#m(r);if(this.isStart()&&this.isEnd()&&!o&&this.type!=="!"){let l=this.toString(),f=this;return f.#e=[l],f.type=null,f.#r=void 0,[l,je(this.toString()),!1,!1]}let a=!n||t||r||!Ur?"":this.#m(!0);a===o&&(a=""),a&&(o=`(?:${o})(?:${a})*?`);let u="";if(this.type==="!"&&this.#f)u=(this.isStart()&&!r?Ur:"")+Qp;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!t?Ur:"")+Xp+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;u=i+o+l}return[u,je(o),this.#r=!!this.#r,this.#i]}#m(t){return this.#e.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,o,a]=r.toRegExpSource(t);return this.#i=this.#i||a,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#b(t,r,n=!1){let i=!1,o="",a=!1,u=!1;for(let l=0;l<t.length;l++){let f=t.charAt(l);if(i){i=!1,o+=(Kb.has(f)?"\\":"")+f,u=!1;continue}if(f==="\\"){l===t.length-1?o+="\\\\":i=!0;continue}if(f==="["){let[c,h,d,y]=Yp(t,l);if(d){o+=c,a=a||h,l+=d-1,r=r||y,u=!1;continue}}if(f==="*"){if(u)continue;u=!0,o+=n&&/^[*]+$/.test(t)?Qp:Xp,r=!0;continue}else u=!1;if(f==="?"){o+=gi,r=!0;continue}o+=Yb(f)}return[o,je(t),!!r,a]}};ie=Ge;s();var vi=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var J=(e,t,r={})=>($t(t),!r.nocomment&&t.charAt(0)==="#"?!1:new lt(t,r).match(e)),Vb=/^\*+([^+@!?\*\[\(]*)$/,Zb=e=>t=>!t.startsWith(".")&&t.endsWith(e),Xb=e=>t=>t.endsWith(e),Qb=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),eq=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),tq=/^\*+\.\*+$/,rq=e=>!e.startsWith(".")&&e.includes("."),nq=e=>e!=="."&&e!==".."&&e.includes("."),iq=/^\.\*+$/,oq=e=>e!=="."&&e!==".."&&e.startsWith("."),sq=/^\*+$/,aq=e=>e.length!==0&&!e.startsWith("."),uq=e=>e.length!==0&&e!=="."&&e!=="..",cq=/^\?+([^+@!?\*\[\(]*)?$/,fq=([e,t=""])=>{let r=nh([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},lq=([e,t=""])=>{let r=ih([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},pq=([e,t=""])=>{let r=ih([e]);return t?n=>r(n)&&n.endsWith(t):r},hq=([e,t=""])=>{let r=nh([e]);return t?n=>r(n)&&n.endsWith(t):r},nh=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},ih=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},oh=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",eh={win32:{sep:"\\"},posix:{sep:"/"}},yq=oh==="win32"?eh.win32.sep:eh.posix.sep;J.sep=yq;var K=Symbol("globstar **");J.GLOBSTAR=K;var dq="[^/]",mq=dq+"*?",gq="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",vq="(?:(?!(?:\\/|^)\\.).)*?",wq=(e,t={})=>r=>J(r,e,t);J.filter=wq;var pe=(e,t={})=>Object.assign({},e,t),Sq=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return J;let t=J;return Object.assign((n,i,o={})=>t(n,i,pe(e,o)),{Minimatch:class extends t.Minimatch{constructor(i,o={}){super(i,pe(e,o))}static defaults(i){return t.defaults(pe(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,o,a={}){super(i,o,pe(e,a))}static fromGlob(i,o={}){return t.AST.fromGlob(i,pe(e,o))}},unescape:(n,i={})=>t.unescape(n,pe(e,i)),escape:(n,i={})=>t.escape(n,pe(e,i)),filter:(n,i={})=>t.filter(n,pe(e,i)),defaults:n=>t.defaults(pe(e,n)),makeRe:(n,i={})=>t.makeRe(n,pe(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,pe(e,i)),match:(n,i,o={})=>t.match(n,i,pe(e,o)),sep:t.sep,GLOBSTAR:K})};J.defaults=Sq;var sh=(e,t={})=>($t(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,rh.default)(e));J.braceExpand=sh;var xq=(e,t={})=>new lt(e,t).makeRe();J.makeRe=xq;var _q=(e,t,r={})=>{let n=new lt(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};J.match=_q;var th=/[?*]|[+@!]\(.*?\)|\[|\]/,bq=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),lt=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(t,r={}){$t(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||oh,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...o)=>console.error(...o)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(o=>this.slashSplit(o));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((o,a,u)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=o[0]===""&&o[1]===""&&(o[2]==="?"||!th.test(o[2]))&&!th.test(o[3]),f=/^[a-z]:/i.test(o[0]);if(l)return[...o.slice(0,4),...o.slice(4).map(c=>this.parse(c))];if(f)return[o[0],...o.slice(1).map(c=>this.parse(c))]}return o.map(l=>this.parse(l))});if(this.debug(this.pattern,i),this.set=i.filter(o=>o.indexOf(!1)===-1),this.isWindows)for(let o=0;o<this.set.length;o++){let a=this.set[o];a[0]===""&&a[1]===""&&this.globParts[o][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let i=0;i<t[n].length;i++)t[n][i]==="**"&&(t[n][i]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,i)=>{let o=n[n.length-1];return i==="**"&&o==="**"?n:i===".."&&o&&o!==".."&&o!=="."&&o!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){let o=t[i];i===1&&o===""&&t[0]===""||(o==="."||o==="")&&(r=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){let i=t[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let a=i;for(;n[a+1]==="**";)a++;a>i&&n.splice(i+1,a-i);let u=n[i+1],l=n[i+2],f=n[i+3];if(u!==".."||!l||l==="."||l===".."||!f||f==="."||f==="..")continue;r=!0,n.splice(i,1);let c=n.slice(0);c[i]="**",t.push(c),i--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){let u=n[a];a===1&&u===""&&n[0]===""||(u==="."||u==="")&&(r=!0,n.splice(a,1),a--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let o=0;for(;(o=n.indexOf("..",o+1))!==-1;){let a=n[o-1];if(a&&a!=="."&&a!==".."&&a!=="**"){r=!0;let l=o===1&&n[o+1]==="**"?["."]:[];n.splice(o-1,2,...l),n.length===0&&n.push(""),o-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){let i=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(i){t[r]=[],t[n]=i;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let i=0,o=0,a=[],u="";for(;i<t.length&&o<r.length;)if(t[i]===r[o])a.push(u==="b"?r[o]:t[i]),i++,o++;else if(n&&t[i]==="**"&&r[o]===t[i+1])a.push(t[i]),i++;else if(n&&r[o]==="**"&&t[i]===r[o+1])a.push(r[o]),o++;else if(t[i]==="*"&&r[o]&&(this.options.dot||!r[o].startsWith("."))&&r[o]!=="**"){if(u==="b")return!1;u="a",a.push(t[i]),i++,o++}else if(r[o]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(u==="a")return!1;u="b",a.push(r[o]),i++,o++}else return!1;return t.length===r.length&&a}parseNegate(){if(this.nonegate)return;let t=this.pattern,r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){let i=0,o=0;if(this.isWindows){let u=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),l=!u&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),f=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),c=!f&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),h=l?3:u?0:void 0,d=c?3:f?0:void 0;if(typeof h=="number"&&typeof d=="number"){let[y,m]=[t[h],r[d]];y.toLowerCase()===m.toLowerCase()&&(r[d]=y,o=d,i=h)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(K)?this.#t(t,r,n,i,o):this.#i(t,r,n,i,o)}#t(t,r,n,i,o){let a=r.indexOf(K,o),u=r.lastIndexOf(K),[l,f,c]=n?[r.slice(o,a),r.slice(a+1),[]]:[r.slice(o,a),r.slice(a+1,u),r.slice(u+1)];if(l.length){let S=t.slice(i,i+l.length);if(!this.#i(S,l,n,0,0))return!1;i+=l.length}let h=0;if(c.length){if(c.length+i>t.length)return!1;let S=t.length-c.length;if(this.#i(t,c,n,S,0))h=c.length;else{if(t[t.length-1]!==""||i+c.length===t.length||(S--,!this.#i(t,c,n,S,0)))return!1;h=c.length+1}}if(!f.length){let S=!!h;for(let C=i;C<t.length-h;C++){let H=String(t[C]);if(S=!0,H==="."||H===".."||!this.options.dot&&H.startsWith("."))return!1}return n||S}let d=[[[],0]],y=d[0],m=0,g=[0];for(let S of f)S===K?(g.push(m),y=[[],0],d.push(y)):(y[0].push(S),m++);let v=d.length-1,w=t.length-h;for(let S of d)S[1]=w-(g[v--]+S[0].length);return!!this.#r(t,d,i,0,n,0,!!h)}#r(t,r,n,i,o,a,u){let l=r[i];if(!l){for(let h=n;h<t.length;h++){u=!0;let d=t[h];if(d==="."||d===".."||!this.options.dot&&d.startsWith("."))return!1}return u}let[f,c]=l;for(;n<=c;){if(this.#i(t.slice(0,n+f.length),f,o,n,0)&&a<this.maxGlobstarRecursion){let y=this.#r(t,r,n+f.length,i+1,o,a+1,u);if(y!==!1)return y}let d=t[n];if(d==="."||d===".."||!this.options.dot&&d.startsWith("."))return!1;n++}return o||null}#i(t,r,n,i,o){let a,u,l,f;for(a=i,u=o,f=t.length,l=r.length;a<f&&u<l;a++,u++){this.debug("matchOne loop");let c=r[u],h=t[a];if(this.debug(r,c,h),c===!1||c===K)return!1;let d;if(typeof c=="string"?(d=h===c,this.debug("string match",c,h,d)):(d=c.test(h),this.debug("pattern match",c,h,d)),!d)return!1}if(a===f&&u===l)return!0;if(a===f)return n;if(u===l)return a===f-1&&t[a]==="";throw new Error("wtf?")}braceExpand(){return sh(this.pattern,this.options)}parse(t){$t(t);let r=this.options;if(t==="**")return K;if(t==="")return"";let n,i=null;(n=t.match(sq))?i=r.dot?uq:aq:(n=t.match(Vb))?i=(r.nocase?r.dot?eq:Qb:r.dot?Xb:Zb)(n[1]):(n=t.match(cq))?i=(r.nocase?r.dot?lq:fq:r.dot?pq:hq)(n):(n=t.match(tq))?i=r.dot?nq:rq:(n=t.match(iq))&&(i=oq);let o=Ge.fromGlob(t,this.options).toMMPattern();return i&&typeof o=="object"&&Reflect.defineProperty(o,"test",{value:i}),o}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?mq:r.dot?gq:vq,i=new Set(r.nocase?["i"]:[]),o=t.map(l=>{let f=l.map(c=>{if(c instanceof RegExp)for(let h of c.flags.split(""))i.add(h);return typeof c=="string"?bq(c):c===K?K:c._src});return f.forEach((c,h)=>{let d=f[h+1],y=f[h-1];c!==K||y===K||(y===void 0?d!==void 0&&d!==K?f[h+1]="(?:\\/|"+n+"\\/)?"+d:f[h]=n:d===void 0?f[h-1]=y+"(?:\\/|"+n+")?":d!==K&&(f[h-1]=y+"(?:\\/|\\/"+n+"\\/)"+d,f[h+1]=K))}),f.filter(c=>c!==K).join("/")}).join("|"),[a,u]=t.length>1?["(?:",")"]:["",""];o="^"+a+o+u+"$",this.negate&&(o="^(?!"+o+").+$");try{this.regexp=new RegExp(o,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;let n=this.options;this.isWindows&&(t=t.split("\\").join("/"));let i=this.slashSplit(t);this.debug(this.pattern,"split",i);let o=this.set;this.debug(this.pattern,"set",o);let a=i[i.length-1];if(!a)for(let u=i.length-2;!a&&u>=0;u--)a=i[u];for(let u=0;u<o.length;u++){let l=o[u],f=i;if(n.matchBase&&l.length===1&&(f=[a]),this.matchOne(f,l,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return J.defaults(t).Minimatch}};J.AST=Ge;J.Minimatch=lt;J.escape=vi;J.unescape=je;var ah=Y(Sh());import{mkdirSync as qq,readFileSync as Eq,writeFileSync as Cq,appendFileSync as Oq,statSync as uh,createReadStream as Tq,createWriteStream as Pq,constants as ch,existsSync as Aq,unlinkSync as Fq,mkdtempSync as Rq,accessSync as Iq,statSync as Lq}from"fs";import{mkdir as Mq,writeFile as jq,readFile as Dq,realpath as Nq,appendFile as kq,mkdtemp as fh,stat as lh,lstat as ph,chmod as $q,access as hh,rename as Uq,unlink as Wq,rm as yh,readdir as Gq,symlink as zq}from"fs/promises";import{pathToFileURL as Bq}from"url";import*as Wr from"os";function BI(e,t){let r=e.split(Si);return Wt(...r.slice(t))}async function JI(e){let t=await fh(Wt(Bn,"tmp-"));try{return await e(t)}finally{await yh(t,{recursive:!0,force:!0,maxRetries:2})}}function HI(){return Rq(Wt(Bn,"tmp-"))}async function KI(e,t={encoding:"utf8"}){return L(R`Reading the content of file at ${P.path(e)}...`),Dq(e,t)}function YI(e){return L(R`Sync-reading the content of file at ${P.path(e)}...`),Eq(e)}async function VI(e){return Nq(e)}async function ZI(e,t){if(zr(e)===zr(t)){L(R`Skipping copy file step because source and destination is the same: ${P.path(e)}`);return}L(R`Copying file from ${P.path(e)} to ${P.path(t)}...`),await ci(e,t)}async function XI(e){L(R`Creating an empty file at ${P.path(e)}...`),await bp(e)}function QI(e){L(R`Creating an empty file at ${P.path(e)}...`),qp(e)}async function eL(e,t){L(R`Appending the following content to ${P.path(e)}:
|
|
13
|
+
${t.split(`
|
|
14
|
+
`).map(r=>` ${r}`).join(`
|
|
15
|
+
`)}
|
|
16
|
+
`),await kq(e,t)}function tL(e,t){Oq(e,t)}async function rL(e,t,r={encoding:"utf8"}){L(R`Writing some content to file at ${P.path(e)}...`),await jq(e,t,r)}function nL(e,t){L(R`File-writing some content to file at ${P.path(e)}...`),Cq(e,t)}async function iL(e){L(R`Creating directory at ${P.path(e)}...`),await Mq(e,{recursive:!0})}function oL(e){L(R`Sync-creating directory at ${P.path(e)}...`),qq(e,{recursive:!0})}async function sL(e){L(R`Removing file at ${P.path(e)}...`),await Cp(e)}async function aL(e,t){L(R`Renaming file from ${P.path(e)} to ${P.path(t)}...`),await Uq(e,t)}async function uL(e,t){L(R`Creating symbolic link from ${P.path(t)} to ${P.path(e)}...`);let r="file";try{(await ph(e)).isDirectory()&&(r="junction")}catch{}await zq(e,t,r)}function cL(e){L(R`Sync-removing file at ${P.path(e)}...`),Op(e)}async function fL(e,t={}){L(R`Removing directory at ${P.path(e)}...`),await yh(e,{recursive:!0,force:t.force??!0})}async function lL(){return L(R`Creating a temporary directory...`),await fh(pt(Wr.tmpdir(),"tmp-"))}async function pL(e){return L(R`Checking if ${P.path(e)} is a directory...`),(await ph(e)).isDirectory()}function hL(e){return L(R`Checking if ${P.path(e)} is a directory...`),uh(e).isDirectory()}async function yL(e){return L(R`Getting the size of file at ${P.path(e)}...`),(await lh(e)).size}function dL(e){return L(R`Sync-getting the size of file at ${P.path(e)}...`),uh(e).size}function mL(e){Fq(e)}function gL(e){return Wq(e)}function vL(e,t){return Tq(e,t)}function wL(e){return Pq(e)}async function Jq(e){return L(R`Getting last updated timestamp for file at ${P.path(e)}...`),(await lh(e)).ctime}async function SL(e){try{return(await Jq(e)).getTime()}catch{return}}async function xL(e,t,r={}){await Ep(e,t,r)}async function _L(e,t){await $q(e,t)}async function bL(e){try{return await hh(e,ch.X_OK),!0}catch{return!1}}function qL(e){try{return Iq(e,ch.W_OK),!0}catch{return!1}}function EL(e){if(!(process.platform==="win32"||typeof process.getuid!="function")){if(!Hq(e))return!1;try{let t=Lq(e),r=process.getuid();return t.uid===r}catch{return!1}}}async function dh(e){try{return await hh(e),!0}catch{return!1}}function Hq(e){return Aq(e)}async function Kq(e){let t=`${Cf(e.family??"business")}-${e.suffix}`,r=pt(e.directory,t);return await dh(r)?Kq(e):t}async function CL(e,t){let{default:r}=await import("./out-53ABAVL7.js"),n=t;return t?.dot==null&&(n={...t,dot:!0}),r(e,n)}function Ti(e,t){let r=t;return t?.dot==null&&(r={...t,dot:!0}),ah.default.sync(e,r)}function OL(e){return Bq(e)}function TL(e){let t=e.match(/\r\n|\n/g);if(!t)return Yq();let r=0;for(let i of t)i===`\r
|
|
17
|
+
`&&r++;let n=t.length-r;return r>n?`\r
|
|
18
|
+
`:`
|
|
19
|
+
`}function Yq(){return Wr.EOL}async function PL(e,t){let r=await Np(e,t);return r?Gr(r):void 0}function Pi(e,t){let r=kp(e,t);return r?Gr(r):void 0}function AL(e,t,r){return J(e,t,r)}function FL(e){return Gq(e)}async function RL(e,t){if(!await dh(e))throw new Error(`Source directory ${e} does not exist`);await ci(e,t)}export{rn as a,an as b,ys as c,ms as d,fn as e,ve as f,Cs as g,As as h,Is as i,sr as j,ln as k,pn as l,hn as m,Xs as n,dn as o,na as p,oa as q,aa as r,la as s,mn as t,gn as u,da as v,Ia as w,En as x,ru as y,Pn as z,An as A,Tt as B,Fn as C,Su as D,fr as E,Du as F,nc as G,fc as H,wc as I,Tc as J,Ac as K,IP as L,LP as M,Mc as N,MP as O,jP as P,ce as Q,fe as R,Cf as S,vA as T,wA as U,SA as V,xA as W,_A as X,bA as Y,qA as Z,EA as _,CA as $,OA as aa,v0 as ba,TA as ca,PA as da,AA as ea,FA as fa,RA as ga,ee as ha,Hp as ia,BI as ja,JI as ka,HI as la,KI as ma,YI as na,VI as oa,ZI as pa,XI as qa,QI as ra,eL as sa,tL as ta,rL as ua,nL as va,iL as wa,oL as xa,sL as ya,aL as za,uL as Aa,cL as Ba,fL as Ca,lL as Da,pL as Ea,hL as Fa,yL as Ga,dL as Ha,mL as Ia,gL as Ja,vL as Ka,wL as La,Jq as Ma,SL as Na,xL as Oa,_L as Pa,bL as Qa,qL as Ra,EL as Sa,dh as Ta,Hq as Ua,Kq as Va,CL as Wa,Ti as Xa,OL as Ya,TL as Za,Yq as _a,PL as $a,Pi as ab,AL as bb,FL as cb,RL as db,vt as eb,_E as fb,Yr as gb,tE as hb,rE as ib,nE as jb,_h as kb,Ui as lb,Fi as mb,Li as nb,Di as ob,Qt as pb,P as qb,Fh as rb,R as sb,St as tb,De as ub,NE as vb,kE as wb,$E as xb,UE as yb,WE as zb,L as Ab,GE as Bb,zE as Cb,N as Db,BE as Eb,Ne as Fb,wt as Gb,Wi as Hb,JE as Ib};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{b as N,c as S,d as A}from"./chunk-DHU57LKD.js";import{a as T}from"./chunk-OUZGGWFN.js";import{a as g}from"./chunk-KUNDCAQN.js";import{b as P,c as y,ta as x}from"./chunk-ACTDYTAV.js";import{b as d,c as b}from"./chunk-JJJTPEMD.js";import{y as f}from"./chunk-GMTNOCMS.js";import{qb as h,sb as l,wb as m}from"./chunk-Y34LWI3S.js";import{d as p}from"./chunk-773TIA5M.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();s();function w(n,t){let o={};return n.targeting?.forEach(e=>{e.target&&(o[e.target]={...e.input_query&&{inputQueryPath:`${t}/${e.input_query}`},...e.export&&{export:e.export}})}),o}function C(n,t,o,e,r,i){return JSON.stringify({handle:t.handle,name:n.name,apiVersion:t.api_version,targeting:o,schemaPath:i,wasmPath:r,functionRunnerPath:e},null,2)}function I(n,t){return{title:`CONFIGURATION
|
|
2
|
+
`,body:{tabularData:[["Handle",n.handle??"N/A"],["Name",t??"N/A"],["API Version",n.api_version??"N/A"]],firstColumnSubdued:!0}}}function j(n){if(Object.keys(n).length===0)return null;let t=[];return Object.entries(n).forEach(([o,e])=>{t.push([l`${h.cyan(o)}`.value,""]),e.inputQueryPath&&t.push([{subdued:" Input Query Path"},{filePath:e.inputQueryPath}]),e.export&&t.push([{subdued:" Export"},e.export])}),{title:`
|
|
3
|
+
TARGETING
|
|
4
|
+
`,body:{tabularData:t}}}function O(n,t){return{title:`
|
|
5
|
+
BUILD
|
|
6
|
+
`,body:{tabularData:[["Schema Path",{filePath:t??"N/A"}],["Wasm Path",{filePath:n}]],firstColumnSubdued:!0}}}function D(n){return{title:`
|
|
7
|
+
FUNCTION RUNNER
|
|
8
|
+
`,body:{tabularData:[["Path",{filePath:n}]],firstColumnSubdued:!0}}}function v(n,t,o,e,r,i){let a=[I(t,n.name)],u=j(o);return u&&a.push(u),a.push(O(r,i),D(e)),a}function R(n,t){let{format:o,functionRunnerPath:e,schemaPath:r}=t,i=n.configuration,a=w(i,n.directory),u=p(n.directory,i.build?.path??n.outputRelativePath);return o==="json"?C(n,i,a,e,u,r):v(n,i,a,e,u,r)}var c=class n extends T{static summary="Print basic information about your function.";static descriptionWithMarkdown=`The information returned includes the following:
|
|
9
|
+
|
|
10
|
+
- The function handle
|
|
11
|
+
- The function name
|
|
12
|
+
- The function API version
|
|
13
|
+
- The targeting configuration
|
|
14
|
+
- The schema path
|
|
15
|
+
- The WASM path
|
|
16
|
+
- The function runner path`;static description=this.descriptionWithoutMarkdown();static flags={...d,...g,...N,...b};async run(){let{flags:t}=await this.parse(n),{app:o}=await x({directory:t.path,userProvidedConfigName:t.config}),e=await S(o,t.path),r=P();await y(r);let i=await A(e,t.path,t["client-id"],t.reset,t.config),a=R(e,{format:t.json?"json":"text",functionRunnerPath:r.path,schemaPath:i});return t.json?m(a):f({customSections:a}),{app:o}}};export{c as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as x}from"./chunk-
|
|
1
|
+
import{a as x}from"./chunk-H5KWM27L.js";import{sa as D}from"./chunk-ACTDYTAV.js";import{b as u,d as B}from"./chunk-CTRXLZAJ.js";import{j as W,q as y}from"./chunk-YN6A26QL.js";import{B as A,I as N,T as F}from"./chunk-GMTNOCMS.js";import{h as s,k as C}from"./chunk-R2R6JDNH.js";import{Ta as _,ma as T,qb as m,sb as o}from"./chunk-Y34LWI3S.js";import{e as z,g as t}from"./chunk-VKWPEFWQ.js";t();var b=z(W(),1);function H(e){return e.startsWith("gid://")?e:/^\d+$/.test(e)?`gid://shopify/BulkOperation/${e}`:e}function J(e){return e.match(/^gid:\/\/shopify\/BulkOperation\/(\d+)$/)?.[1]??e}function g(e){let n;try{n=(0,b.parse)(e)}catch(i){throw i instanceof Error?new s(`Invalid GraphQL syntax: ${i.message}`):i}if(n.definitions.filter(i=>i.kind==="OperationDefinition").length!==1)throw new s("GraphQL document must contain exactly one operation definition. Multiple operations are not supported.")}function X(e){let n;try{n=(0,b.parse)(e)}catch(i){throw i instanceof Error?new s(`Invalid GraphQL syntax: ${i.message}`):i}return n.definitions.find(i=>i.kind==="OperationDefinition")?.operation==="mutation"}async function Y(e){let{adminSession:n,userSpecifiedVersion:a,minimumDefaultVersion:i}=e;if(a==="unstable")return a;let r=await B(n);if(!a){let c=r.filter(v=>v.supported).map(v=>v.handle);i&&c.push(i);let f=c.sort().reverse()[0];if(!f)throw new s("No supported API versions available for this store.");return f}let l=r.map(c=>c.handle);if(l.includes(a))return a;let d=o`Invalid API version: ${a}`.value,k=o`Allowed versions: ${l.join(", ")}`.value;throw new s(d,k)}t();t();var p="2026-01";t();async function E(e){let n;if(e.query!==void 0){if(!e.query.trim())throw new s("The --query flag value is empty. Please provide a valid GraphQL query or mutation.");n=e.query}else if(e.queryFile){if(!await _(e.queryFile))throw new s(o`Query file not found at ${m.path(e.queryFile)}. Please check the path and try again.`);let a=await T(e.queryFile,{encoding:"utf8"});if(!a.trim())throw new s(o`Query file at ${m.path(e.queryFile)} is empty. Please provide a valid GraphQL query or mutation.`);n=a}else throw new C("Query should have been provided via --query or --query-file flags due to exactlyOne constraint. This indicates the oclif flag validation failed.");return g(n),n}t();t();var R={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationRunQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationRunQuery"},arguments:[{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function Z(e){let{adminSession:n,query:a,version:i}=e;return(await u({query:R,session:n,variables:{query:a},...i&&{version:i}})).bulkOperationRunQuery}t();t();t();var L={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"StagedUploadsCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StagedUploadInput"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stagedUploadsCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stagedTargets"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"resourceUrl"}},{kind:"Field",name:{kind:"Name",value:"parameters"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function h(e){let{adminSession:n,variablesJsonl:a}=e,i=Buffer.from(a??"","utf-8"),r="bulk-variables.jsonl",l=i.length,d=await ee(n,r,l),k=ne(d);return await ie(i,k.url,k.parameters,r),k.stagedUploadKey}async function ee(e,n,a){return u({query:L,session:e,variables:{input:[{filename:n,fileSize:a.toString(),httpMethod:"POST",mimeType:"text/jsonl",resource:"BULK_MUTATION_VARIABLES"}]}})}function ne(e){if(!e.stagedUploadsCreate)throw new s("No response received from stagedUploadsCreate mutation");if(e.stagedUploadsCreate.userErrors.length>0){let i=e.stagedUploadsCreate.userErrors.map(r=>r.message).join(", ");throw new s(`Failed to create staged upload: ${i}`)}let n=e.stagedUploadsCreate.stagedTargets?.[0];if(!n)throw new s("No staged upload target returned from Shopify");if(!n.url||!n.resourceUrl)throw new s("Invalid staged upload target: missing required URLs");let a=n.parameters.find(i=>i.name==="key")?.value;if(!a)throw new s("No key parameter found in staged upload target");return{url:n.url,resourceUrl:n.resourceUrl,parameters:n.parameters,stagedUploadKey:a}}async function ie(e,n,a,i){let r=new FormData;for(let d of a)r.append(d.name,d.value);r.append("file",new Blob([new Uint8Array(e)],{type:"text/jsonl"}),i);let l=await N({title:o`Uploading bulk operation variables`,task:async()=>y(n,{method:"POST",body:r},"slow-request"),renderOptions:{stdout:process.stderr}});if(!l.ok){let d=await l.text();throw new s(`Failed to upload file to staged URL: ${l.statusText}
|
|
2
2
|
${d}`)}}t();var U={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationRunMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"mutation"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"stagedUploadPath"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"clientIdentifier"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationRunMutation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mutation"},value:{kind:"Variable",name:{kind:"Name",value:"mutation"}}},{kind:"Argument",name:{kind:"Name",value:"stagedUploadPath"},value:{kind:"Variable",name:{kind:"Name",value:"stagedUploadPath"}}},{kind:"Argument",name:{kind:"Name",value:"clientIdentifier"},value:{kind:"Variable",name:{kind:"Name",value:"clientIdentifier"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function ae(e){let{adminSession:n,query:a,variablesJsonl:i,version:r}=e,l=await h({adminSession:n,variablesJsonl:i});return(await u({query:U,session:n,variables:{mutation:a,stagedUploadPath:l},...r&&{version:r}})).bulkOperationRunMutation}t();t();var S={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetBulkOperationById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};t();var q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListBulkOperations"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortKey"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BulkOperationsSortKeys"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperations"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}},{kind:"Argument",name:{kind:"Name",value:"sortKey"},value:{kind:"Variable",name:{kind:"Name",value:"sortKey"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function te(e){let{adminSession:n,operationId:a,version:i}=e;return(await u({query:S,session:n,variables:{id:a},version:i??p})).bulkOperation}async function re(e){let{adminSession:n,version:a,sinceDays:i=7,first:r=100}=e,l=new Date(Date.now()-i*24*60*60*1e3).toISOString().split("T")[0];return(await u({query:q,session:n,variables:{query:`created_at:>=${l}`,first:r,sortKey:"CREATED_AT"},version:a??p})).bulkOperations.nodes}t();t();var P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationCancel"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationCancel"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"fileSize"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"query"}},{kind:"Field",name:{kind:"Name",value:"rootObjectCount"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};async function oe(e){let{adminSession:n,operationId:a,version:i}=e;return(await u({query:P,session:n,variables:{id:a},version:i??p})).bulkOperationCancel}t();t();function O(e){switch(e.status){case"RUNNING":return o`Bulk operation in progress${e.objectCount>0?m.gray(` (${String(e.objectCount)} objects ${e.type==="MUTATION"?"written":"read"})`):""}`;case"CREATED":return o`Starting`;case"COMPLETED":return o`Bulk operation succeeded: ${m.gray(`${String(e.objectCount)} objects`)}`;case"FAILED":return o`Bulk operation failed. ${m.errorText(`Error: ${e.errorCode??"unknown"}`)}`;case"CANCELING":return o`Bulk operation canceling...`;case"CANCELED":return o`Bulk operation canceled.`;case"EXPIRED":return o`Bulk operation expired.`;default:return o`Bulk operation status: ${e.status}`}}function le(e,n){let a=e.map(i=>o`${i.field?.join(".")??"unknown"}: ${i.message}`.value).join(`
|
|
3
3
|
`);A({headline:n,body:a})}function de(e){let n=O(e).value;switch(e.status){case"CANCELING":return{headline:"Bulk operation is being cancelled.",renderType:"success"};case"CANCELED":case"COMPLETED":case"FAILED":{let a=[o`ID: ${m.cyan(e.id)}`.value,o`Status: ${m.yellow(e.status)}`.value,o`Created at: ${m.gray(String(e.createdAt))}`.value,...e.completedAt?[o`Completed at: ${m.gray(String(e.completedAt))}`.value]:[]];return{headline:o`Bulk operation is already ${e.status.toLowerCase()}.`.value,body:o`This operation has already finished and can't be canceled.`.value,customSections:[{body:[{list:{items:a}}]}],renderType:"warning"}}case"CREATED":case"EXPIRED":case"RUNNING":return{headline:n,renderType:"info"}}}var se=["COMPLETED","FAILED","CANCELED","EXPIRED"],V=1,ue=5,M=10,$=3e3,Q=300;async function me(e,n){return N({title:o`Starting bulk operation`,task:async()=>{let a=Date.now(),i=j({adminSession:e,operationId:n,pollIntervalSeconds:Q/1e3,useAdaptivePolling:!1}),r;do{let{value:l,done:d}=await i.next();if(r=l,d)return r}while(Date.now()-a<$);return r},renderOptions:{stdout:process.stderr}})}async function ke(e,n,a,i){return N({title:o`Polling bulk operation`,task:async r=>{let l=j({adminSession:e,operationId:n,pollIntervalSeconds:ue,initialPollIntervalSeconds:V,initialPollCount:M,useAdaptivePolling:!0,abortSignal:a});for(;;){let{value:d,done:k}=await l.next();if(k)return d;r(O(d))}},onAbort:i,renderOptions:{stdout:process.stderr}})}async function*j({adminSession:e,operationId:n,pollIntervalSeconds:a,useAdaptivePolling:i=!1,initialPollIntervalSeconds:r=V,initialPollCount:l=M,abortSignal:d}){let k=0;for(;;){let c=await pe(e,n);if(!c.bulkOperation)throw new Error("bulk operation not found");let f=c.bulkOperation;if(se.includes(f.status)||d?.aborted)return f;yield f,k++;let v=a;if(i&&k<=l&&(v=r),d){let w,K=new Promise(G=>{let I=()=>G();d.addEventListener("abort",I,{once:!0}),w=()=>d.removeEventListener("abort",I)});await Promise.race([F(v),K]),w?.()}else await F(v)}}async function pe(e,n){return u({query:S,session:e,variables:{id:n},version:p})}t();async function ce(e){let n=await y(e);if(!n.ok)throw new s(`Failed to download bulk operation results: ${n.statusText}`);return n.text()}function ve(e){return e.trim().split(`
|
|
4
4
|
`).filter(a=>a.trim().length>0).some(a=>{let i;try{i=JSON.parse(a)}catch(l){if(l instanceof SyntaxError)return!1;throw l}if(!i.data)return!1;let r=Object.values(i.data)[0];return r?.userErrors!==void 0&&r.userErrors.length>0})}t();async function fe(e){let n=await D({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),a=await x({appContextResult:n,storeFqdn:e.store,forceReselectStore:e.reset,storeTypes:["APP_DEVELOPMENT","DEVELOPMENT","DEVELOPMENT_SUPERSET","PRODUCTION"]});return{appContextResult:n,store:a}}async function Jn(e){let n=await E({query:e.query,queryFile:e["query-file"]}),{appContextResult:a,store:i}=await fe(e);return{query:n,appContextResult:a,store:i}}export{p as a,H as b,J as c,g as d,X as e,Y as f,E as g,Z as h,ae as i,te as j,re as k,oe as l,O as m,le as n,de as o,me as p,ke as q,ce as r,ve as s,fe as t,Jn as u};
|