shopify 5.0.2 → 5.1.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-QFDTQYPM.js +1 -0
- package/dist/analytics-XADBBHOH.js +1 -0
- package/dist/bootstrap.js +1 -1
- package/dist/chunk-24Q6X53V.js +1 -0
- package/dist/{chunk-LEHBZKK3.js → chunk-25MYHE4W.js} +1 -1
- package/dist/{chunk-TODZ3TJR.js → chunk-27JT4NA4.js} +1 -1
- package/dist/chunk-2BYW3BYX.js +1 -0
- package/dist/chunk-2KFYIYLI.js +1 -0
- package/dist/{chunk-D2KIGKBI.js → chunk-2KUM2RU4.js} +60 -60
- package/dist/chunk-2PD7TNFS.js +275 -0
- package/dist/{chunk-64G5TGFF.js → chunk-3C72S6LO.js} +1 -1
- package/dist/chunk-3FZ4LE6A.js +10 -0
- package/dist/{chunk-3MYDSQHF.js → chunk-3GD5ESWN.js} +1 -1
- package/dist/chunk-3KGN6N7E.js +1 -0
- package/dist/{chunk-KNWT7JLL.js → chunk-3MZ7ELHS.js} +2 -2
- package/dist/{chunk-PF53E2DC.js → chunk-3PS52ZT4.js} +1 -1
- package/dist/chunk-3PYDIBTX.js +1 -0
- package/dist/chunk-3Z75BVGJ.js +1 -0
- package/dist/chunk-4FWPOGPQ.js +1 -0
- package/dist/chunk-4IP37MBX.js +1 -0
- package/dist/chunk-4NFX7YCT.js +1 -0
- package/dist/chunk-4TCXPHKN.js +1 -0
- package/dist/chunk-4WBWZIN5.js +6 -0
- package/dist/chunk-5534MHZW.js +97 -0
- package/dist/{chunk-UKWIWCOH.js → chunk-5C6CXU74.js} +1 -1
- package/dist/{chunk-QEKGGTMN.js → chunk-5HOZDOJ7.js} +1 -1
- package/dist/{chunk-ER6C5WS3.js → chunk-5PSQFQL6.js} +1 -1
- package/dist/chunk-5T3ZT6CC.js +1 -0
- package/dist/chunk-62NW4EPI.js +17 -0
- package/dist/chunk-65NCQJYR.js +1 -0
- package/dist/{chunk-IHXGZW42.js → chunk-6BYHL3DS.js} +1 -1
- package/dist/chunk-6I7DT7QR.js +3 -0
- package/dist/chunk-6IMTMS2S.js +3 -0
- package/dist/chunk-7A77JCED.js +11 -0
- package/dist/chunk-7ART2IKU.js +1 -0
- package/dist/{chunk-I4CEH7AK.js → chunk-7BPT5V24.js} +2 -2
- package/dist/{chunk-Z2WAW6MM.js → chunk-7CT3NIXI.js} +1 -1
- package/dist/chunk-7DBKSSDK.js +1 -0
- package/dist/chunk-7HECBXSP.js +1 -0
- package/dist/chunk-7KID5BIR.js +4 -0
- package/dist/{chunk-2L6AN3QA.js → chunk-7N7KRZOM.js} +1 -1
- package/dist/{chunk-W37IFK3P.js → chunk-7NRHZG5Y.js} +102 -102
- package/dist/chunk-7PHDEILV.js +1 -0
- package/dist/chunk-A2NSORBM.js +2296 -0
- package/dist/chunk-A54TADAZ.js +1 -0
- package/dist/{chunk-YTUUU33R.js → chunk-AE3IQG7S.js} +1 -1
- package/dist/chunk-AGTUAQHX.js +4 -0
- package/dist/chunk-AHYI27QL.js +11 -0
- package/dist/chunk-ALINJ6J2.js +1 -0
- package/dist/chunk-AMVWKHNY.js +1 -0
- package/dist/{chunk-NVKJ7ZLP.js → chunk-ASKBYEO7.js} +1 -1
- package/dist/{chunk-62EOM3Y2.js → chunk-AVJJGQOP.js} +1 -1
- package/dist/{chunk-NXAEBGMO.js → chunk-AY3AAV77.js} +1 -1
- package/dist/{chunk-F3CK3EJJ.js → chunk-BFAOTQGH.js} +1 -1
- package/dist/{chunk-H6GNKWYM.js → chunk-BPKQA2EO.js} +1 -1
- package/dist/{chunk-WESTVWWD.js → chunk-C2HJEGTS.js} +1 -1
- package/dist/chunk-C72QNK6O.js +4 -0
- package/dist/chunk-CDSDQTNB.js +16 -0
- package/dist/chunk-CEQGOCKX.js +1 -0
- package/dist/{chunk-WCC52MR2.js → chunk-CIGWIKOW.js} +1 -1
- package/dist/chunk-CQAD5WML.js +1 -0
- package/dist/chunk-CRQQCT7F.js +1 -0
- package/dist/chunk-CZNUBAAG.js +3 -0
- package/dist/{chunk-ISKQQXLZ.js → chunk-D7IMC2G4.js} +1 -1
- package/dist/{chunk-6ES4KRFW.js → chunk-DC7ITY6T.js} +1 -1
- package/dist/{chunk-7GHSE7SG.js → chunk-DDRP6QTC.js} +1 -1
- package/dist/{chunk-SLY27GDC.js → chunk-DDZYIC76.js} +2 -2
- package/dist/chunk-DGIIUQH3.js +1 -0
- package/dist/{chunk-3KM5ZOW2.js → chunk-DMOLPSXF.js} +1 -1
- package/dist/{chunk-LHXFTFFM.js → chunk-DOLVBTCB.js} +1 -1
- package/dist/{chunk-WBVS5NBV.js → chunk-DTKGI43P.js} +2 -2
- package/dist/{chunk-2WJOTJOD.js → chunk-DVD7I2TX.js} +2 -2
- package/dist/chunk-DVFVO6ZE.js +2 -0
- package/dist/{chunk-3XRI3D44.js → chunk-DXEMSLI6.js} +1 -1
- package/dist/chunk-EDWIWZWM.js +15 -0
- package/dist/chunk-ELR6AZT4.js +9 -0
- package/dist/chunk-EVQPYZ7F.js +5 -0
- package/dist/chunk-F5QKMDP3.js +1 -0
- package/dist/{chunk-URXM5A2K.js → chunk-F6IQWX2F.js} +1 -1
- package/dist/{chunk-SACNUF4I.js → chunk-FAVPTYIR.js} +1 -1
- package/dist/{chunk-Q7BOSHWX.js → chunk-FDSNRKGQ.js} +1 -1
- package/dist/{chunk-Q4JYAUVL.js → chunk-FHKK3QU7.js} +1 -1
- package/dist/chunk-FKKJQGYX.js +7 -0
- package/dist/chunk-FQLXQ7WN.js +16 -0
- package/dist/{chunk-6PUU6ZNQ.js → chunk-FRWQJAW2.js} +1 -1
- package/dist/{chunk-J5ERDFIC.js → chunk-FU7PYW7H.js} +1 -1
- package/dist/{chunk-ESFCYB46.js → chunk-FYQE5E6U.js} +1 -1
- package/dist/chunk-G3EWGBXR.js +1 -0
- package/dist/chunk-G3RNO2TC.js +1 -0
- package/dist/{chunk-35XFNKNB.js → chunk-GGCP2TIK.js} +1 -1
- package/dist/chunk-GSFWBFFH.js +1 -0
- package/dist/{chunk-ZRI3SSLG.js → chunk-H2KGP2FM.js} +2 -2
- package/dist/{chunk-GW7YIJPJ.js → chunk-H4K3F7PP.js} +1 -1
- package/dist/chunk-HGZ2HRPO.js +13 -0
- package/dist/chunk-HMPRWNGG.js +203 -0
- package/dist/chunk-HP4QYSBQ.js +1 -0
- package/dist/{chunk-RPCIFYCY.js → chunk-HSTZV6H7.js} +2 -2
- package/dist/{chunk-N57Y7THE.js → chunk-HVUMVDUG.js} +1 -1
- package/dist/{chunk-XWSWXQCC.js → chunk-HYCNYUHW.js} +1 -1
- package/dist/{chunk-CXI3RHPW.js → chunk-I3WRA2LH.js} +1 -1
- package/dist/{chunk-UUAKOX7E.js → chunk-IRLYC626.js} +2 -2
- package/dist/chunk-IWNFPBH2.js +33 -0
- package/dist/{chunk-C3RFAKWR.js → chunk-JALDNBTU.js} +1 -1
- package/dist/{chunk-QDCLL5OI.js → chunk-JC37YZ4I.js} +1 -1
- package/dist/{chunk-QF5WKTPD.js → chunk-JG4FAT2T.js} +1 -1
- package/dist/chunk-JGLLABZR.js +8 -0
- package/dist/chunk-JIY6XWSC.js +1 -0
- package/dist/{chunk-3ODQKAEA.js → chunk-JIYCZXK5.js} +1 -1
- package/dist/chunk-JMSAHCBU.js +35 -0
- package/dist/{chunk-KZRLZWOU.js → chunk-JNSVKDBY.js} +1 -1
- package/dist/chunk-JQU2BJDH.js +3 -0
- package/dist/chunk-JVY6CCLE.js +3 -0
- package/dist/{chunk-BAHIL37I.js → chunk-K4QJEQI4.js} +1 -1
- package/dist/chunk-KCAWHJGF.js +1 -0
- package/dist/{chunk-YV2TP44L.js → chunk-KFO2JNF5.js} +1 -1
- package/dist/chunk-KFR7HWCG.js +9 -0
- package/dist/{chunk-MEYVUHQH.js → chunk-KHZF73BL.js} +1 -1
- package/dist/{chunk-LGXI7EGM.js → chunk-KM4LE7K4.js} +2 -2
- package/dist/{chunk-IILLQOUC.js → chunk-L2PUDV7Y.js} +1 -1
- package/dist/chunk-LFBFPK22.js +1 -0
- package/dist/{chunk-BN7ZXAZJ.js → chunk-LG3KEHGD.js} +2 -2
- package/dist/chunk-LGDWE3H3.js +1 -0
- package/dist/chunk-LPPEAMI6.js +1 -0
- package/dist/chunk-LXIWMYM4.js +1 -0
- package/dist/chunk-MGWCXTGD.js +1 -0
- package/dist/chunk-MGX7UG44.js +1 -0
- package/dist/chunk-MKFRKNHF.js +3 -0
- package/dist/chunk-MTT6EAQO.js +1 -0
- package/dist/{chunk-SIL6HPMK.js → chunk-MU7IVBGI.js} +2 -2
- package/dist/{chunk-QEVTBD33.js → chunk-MYMBHVC4.js} +1 -1
- package/dist/chunk-MZDBH4XV.js +4 -0
- package/dist/{chunk-Q5IC3IYY.js → chunk-NUBJ2HK7.js} +1 -1
- package/dist/{chunk-3Z3MADXZ.js → chunk-NY5N4ANL.js} +1 -1
- package/dist/{chunk-WRZWHT6M.js → chunk-NYMKGE3J.js} +1 -1
- package/dist/{chunk-CX5CC6P5.js → chunk-O472FAYX.js} +1 -1
- package/dist/chunk-O7HZ3EIP.js +1 -0
- package/dist/chunk-OJOF6IYG.js +9 -0
- package/dist/{chunk-UXVXVI6O.js → chunk-ONZULPQH.js} +68 -66
- package/dist/chunk-ORMXPSJM.js +1 -0
- package/dist/chunk-ORYEDUKM.js +5 -0
- package/dist/{chunk-T4XJKM6B.js → chunk-OTMYJWIP.js} +1 -1
- package/dist/chunk-OVJVFB5E.js +20 -0
- package/dist/chunk-OWQEFORZ.js +1 -0
- package/dist/{chunk-UBP3LQFY.js → chunk-OXPEBT4I.js} +2 -2
- package/dist/chunk-OXZR2MB4.js +6 -0
- package/dist/chunk-OY5M52EF.js +6 -0
- package/dist/{chunk-2A2JSAAA.js → chunk-PJZZZNWR.js} +1 -1
- package/dist/chunk-Q2LQJYRK.js +16 -0
- package/dist/chunk-QBRRFFMZ.js +1 -0
- package/dist/{chunk-AQKWPRZE.js → chunk-QCLE5REL.js} +2 -2
- package/dist/{chunk-43R5VGKT.js → chunk-QGQWVA7N.js} +1 -1
- package/dist/chunk-QKPAB245.js +1 -0
- package/dist/chunk-QUPZOBTB.js +1 -0
- package/dist/chunk-R4E2E4NN.js +1 -0
- package/dist/{chunk-CGVROSPS.js → chunk-R6US7F33.js} +1 -1
- package/dist/chunk-RKNVTEO3.js +5 -0
- package/dist/{chunk-7CCTPBCT.js → chunk-RLOEI6VE.js} +1 -1
- package/dist/chunk-RSZAAN37.js +1 -0
- package/dist/{chunk-WBJ6ZHYH.js → chunk-S3RROJGG.js} +37 -37
- package/dist/chunk-S4KNPCW3.js +81 -0
- package/dist/{chunk-26PWHH3B.js → chunk-SBN3ILXO.js} +1 -1
- package/dist/chunk-SCDGLREP.js +1 -0
- package/dist/chunk-SHOMIS6Q.js +2 -0
- package/dist/chunk-SN3PMWUF.js +6 -0
- package/dist/chunk-SODCXZ5U.js +1 -0
- package/dist/chunk-SPJM7RTD.js +1 -0
- package/dist/chunk-SQL67BKI.js +5 -0
- package/dist/{chunk-AQ6EVL73.js → chunk-SURFUFAZ.js} +1 -1
- package/dist/{chunk-SNH4XZ6E.js → chunk-SVQDMZJO.js} +1 -1
- package/dist/chunk-T4ZOTYOY.js +1 -0
- package/dist/chunk-T6C4WC3Z.js +2 -0
- package/dist/chunk-TD6JBHUS.js +1 -0
- package/dist/chunk-TIM4CIXZ.js +22 -0
- package/dist/{chunk-B2O3ANRZ.js → chunk-TP7CTMMT.js} +1 -1
- package/dist/chunk-TSPJAMYB.js +1 -0
- package/dist/chunk-TSVEV2UD.js +26 -0
- package/dist/{chunk-ZBL7XMJ6.js → chunk-TTAT62N3.js} +2 -2
- package/dist/{chunk-S5P7KWY4.js → chunk-TUSS6PXB.js} +1 -1
- package/dist/chunk-TXP6KFWO.js +5 -0
- package/dist/chunk-TZHVCMZN.js +6 -0
- package/dist/chunk-UC4TOM36.js +3 -0
- package/dist/{chunk-RPVZ2JON.js → chunk-UFY4L5KQ.js} +1 -1
- package/dist/chunk-UU6UQ2QY.js +1 -0
- package/dist/chunk-V4FC72R6.js +1 -0
- package/dist/chunk-VA2S7W7H.js +10 -0
- package/dist/chunk-VE3IIC7H.js +1 -0
- package/dist/{chunk-PTSCGSQV.js → chunk-VJG7VXFU.js} +2 -2
- package/dist/chunk-VQSRU5XL.js +4 -0
- package/dist/chunk-VRIFLMA3.js +70 -0
- package/dist/chunk-WBJFTCEJ.js +1 -0
- package/dist/chunk-WBPP6PO7.js +31 -0
- package/dist/chunk-WE5KY6T6.js +1 -0
- package/dist/chunk-WFPVT2IY.js +1 -0
- package/dist/{chunk-PLSS456F.js → chunk-WLYXBQ2M.js} +1 -1
- package/dist/chunk-WNVOEE6T.js +7 -0
- package/dist/chunk-WPDJVUTY.js +47 -0
- package/dist/chunk-WWCYEZUU.js +1 -0
- package/dist/chunk-WWVDZ3GC.js +3 -0
- package/dist/{chunk-4KECSZTL.js → chunk-WZBZ7FWP.js} +2 -2
- package/dist/chunk-XEZPN5TR.js +22 -0
- package/dist/{chunk-QW52RPAU.js → chunk-XLMKHTJ5.js} +1 -1
- package/dist/chunk-XRNBCV2B.js +1 -0
- package/dist/{chunk-67L7FIB6.js → chunk-XWLNCBAG.js} +1 -1
- package/dist/chunk-YF4AXKM4.js +1 -0
- package/dist/chunk-YKDRUAY3.js +857 -0
- package/dist/{chunk-YSWVYPWR.js → chunk-YNFQBYSL.js} +1 -1
- package/dist/{chunk-TFPW2VGN.js → chunk-YNZLLZU2.js} +1 -1
- package/dist/chunk-YOYPYB4H.js +1 -0
- package/dist/{chunk-HF4NDEX3.js → chunk-YR4J46US.js} +1 -1
- package/dist/chunk-YTL45RXR.js +103 -0
- package/dist/chunk-YVPB7OT6.js +6 -0
- package/dist/chunk-YYWSHRO2.js +89 -0
- package/dist/{chunk-DZKFP6H2.js → chunk-Z5QEXS6F.js} +1 -1
- package/dist/chunk-Z5WFRYVQ.js +6 -0
- package/dist/{chunk-PWAT52M4.js → chunk-Z6ZRS256.js} +1 -1
- package/dist/chunk-ZMOW2YZ4.js +18 -0
- package/dist/chunk-ZMU4EYXT.js +1 -0
- package/dist/{chunk-ACA2BGAD.js → chunk-ZNEPRGFY.js} +1 -1
- package/dist/chunk-ZXZWMXXK.js +7 -0
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +1 -1
- package/dist/cli/commands/app/env/pull.js +1 -1
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -1
- package/dist/cli/commands/app/graphiql.js +1 -1
- package/dist/cli/commands/app/import/channel-config.js +1 -1
- package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs-next.js +1 -0
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/security/check.js +1 -1
- package/dist/cli/commands/app/security/clean.js +1 -1
- package/dist/cli/commands/app/security/instructions.js +1 -1
- package/dist/cli/commands/app/security/record.js +1 -1
- package/dist/cli/commands/app/security/review.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.d.ts +10 -10
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.d.ts +7 -7
- 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.d.ts +7 -7
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.d.ts +7 -7
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.d.ts +7 -7
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.d.ts +21 -21
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.d.ts +23 -23
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.d.ts +90 -90
- 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.d.ts +7 -7
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/send-analytics.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.d.ts +24 -24
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.d.ts +7 -7
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/cli-version-check-V25AVSZ6.js +1 -0
- package/dist/{command-event-context-LFUZ7UCA.js → command-event-context-ILIANB5Q.js} +1 -1
- package/dist/command-json-schema-C5UZXP2W.js +1 -0
- package/dist/command-registry.js +1 -1
- package/dist/conf-store-OCGEEV4U.js +1 -0
- package/dist/custom-oclif-loader-ZVUKMRGH.js +1 -0
- package/dist/data/filters.json +41 -2
- package/dist/data/local_block_entry.json +1 -1
- package/dist/data/manifest_theme.json +1 -0
- package/dist/data/objects.json +78 -36
- package/dist/data/section.json +1 -1
- package/dist/data/shopify_system_translations.json +240 -23
- package/dist/data/strict_settings.json +24 -0
- package/dist/data/tags.json +57 -24
- package/dist/data/theme_block.json +1 -1
- package/dist/deprecations-A5AXXKIK.js +1 -0
- package/dist/dist-NORLLIHQ.js +1 -0
- package/dist/dist-XBM4XZS4.js +1 -0
- package/dist/environment-5P7JJ3GI.js +1 -0
- package/dist/environments-Y5JEI3U3.js +1 -0
- package/dist/error-GI4DXVDU.js +1 -0
- package/dist/error-handler-BS2ZENQV.js +1 -0
- package/dist/fs-UOOLPOHJ.js +1 -0
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/plugin-plugins.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +2 -2
- 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/http-2OXOS2AW.js +1 -0
- package/dist/http-proxy-node16-NZZ674YW.js +38 -0
- package/dist/index.js +12 -12
- package/dist/is-global-CI77T7NE.js +1 -0
- package/dist/json-error-6PBUR4LQ.js +1 -0
- package/dist/latest-version-75YEFEMK.js +9 -0
- package/dist/lib-4JVADMNT.js +1 -0
- package/dist/lib-L4STV5B2.js +1 -0
- package/dist/lib-LEEN55OD.js +1 -0
- package/dist/{local-OKPVB4NH.js → local-5NIWPWDS.js} +1 -1
- package/dist/metadata-IXPNNPNJ.js +1 -0
- package/dist/{morph-CRY35DIK.js → morph-H7XQP55V.js} +3 -3
- package/dist/node-package-manager-ALFEGGD6.js +1 -0
- package/dist/notifications-system-FQW3GKH2.js +1 -0
- package/dist/{npa-A4YSCQ5Q.js → npa-LVYMN7GE.js} +1 -1
- package/dist/os-6TNQTEUN.js +1 -0
- package/dist/output-LEOB5LAM.js +1 -0
- package/dist/{prettier-EGVCP5CY.js → prettier-VLTY4MIE.js} +1 -1
- package/dist/registry-auth-token-EDH77OOW.js +1 -0
- package/dist/registry-url-JMNV3LLX.js +1 -0
- package/dist/semver-HHZRKD6Y.js +1 -0
- package/dist/system-J4CTESP5.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui-YDUI56E3.js +1 -0
- package/dist/upgrade-LBCZORG2.js +1 -0
- package/dist/version-2YL4YEQ2.js +1 -0
- package/dist/version-X2CPQVWQ.js +1 -0
- package/dist/workerd-5UPTEWNI.js +18 -0
- package/oclif.manifest.json +25622 -1132
- package/package.json +7 -7
- package/dist/analytics-NMMVOF4B.js +0 -1
- package/dist/analytics-UK77WNLG.js +0 -1
- package/dist/chunk-224UPIYS.js +0 -4
- package/dist/chunk-27NXPOAS.js +0 -1
- package/dist/chunk-2MT3LSMZ.js +0 -1
- package/dist/chunk-2T4HDR6R.js +0 -70
- package/dist/chunk-2ZBXHCQZ.js +0 -1
- package/dist/chunk-335BUVBP.js +0 -1
- package/dist/chunk-33ZE3DRQ.js +0 -16
- package/dist/chunk-34MOWGRL.js +0 -1
- package/dist/chunk-3JSKNXL7.js +0 -1
- package/dist/chunk-3MG4MTWQ.js +0 -1
- package/dist/chunk-4WYKPIN3.js +0 -1
- package/dist/chunk-5AEZJZNQ.js +0 -1
- package/dist/chunk-5ED7SOQZ.js +0 -20
- package/dist/chunk-5IDJALJH.js +0 -1
- package/dist/chunk-66TMIQMB.js +0 -1
- package/dist/chunk-74NRFUGQ.js +0 -1
- package/dist/chunk-7GUMJ5E4.js +0 -1
- package/dist/chunk-7NFTSBHQ.js +0 -10
- package/dist/chunk-ACZNWIRY.js +0 -1
- package/dist/chunk-AUE7LM32.js +0 -1
- package/dist/chunk-AXL2VIWA.js +0 -16
- package/dist/chunk-B3ZJGYZY.js +0 -3
- package/dist/chunk-BOAGJ6P5.js +0 -1
- package/dist/chunk-BWN2QG6D.js +0 -5
- package/dist/chunk-CCUQM4FX.js +0 -6
- package/dist/chunk-CLUUA3HX.js +0 -3
- package/dist/chunk-CYEEGTVZ.js +0 -11
- package/dist/chunk-DBDTE3EE.js +0 -5
- package/dist/chunk-DLVB3237.js +0 -31
- package/dist/chunk-DN6X7SHW.js +0 -2
- package/dist/chunk-E5COIKGY.js +0 -5
- package/dist/chunk-E6RONHMT.js +0 -1
- package/dist/chunk-EAZIQI2D.js +0 -1
- package/dist/chunk-EEY4FKAW.js +0 -1
- package/dist/chunk-EKFPTBXC.js +0 -1
- package/dist/chunk-FEBOZ2XX.js +0 -31
- package/dist/chunk-FFSDGRAN.js +0 -1
- package/dist/chunk-FZCGRIOM.js +0 -1
- package/dist/chunk-GNCVDN7U.js +0 -1
- package/dist/chunk-GQLNG537.js +0 -836
- package/dist/chunk-GVI3DWSB.js +0 -4
- package/dist/chunk-H6GYBLVQ.js +0 -2
- package/dist/chunk-HB3MJYBK.js +0 -1
- package/dist/chunk-HSKDFEXW.js +0 -1
- package/dist/chunk-HTRJU4R4.js +0 -1
- package/dist/chunk-HXZAY5OA.js +0 -1
- package/dist/chunk-I7PEEJVH.js +0 -1
- package/dist/chunk-IHMATNOR.js +0 -1
- package/dist/chunk-IJY3RJPJ.js +0 -47
- package/dist/chunk-J3JPJCWP.js +0 -1
- package/dist/chunk-J55GQLP4.js +0 -1
- package/dist/chunk-JLQRDFR5.js +0 -18
- package/dist/chunk-JPWRZ5SL.js +0 -16
- package/dist/chunk-K7ZSPQKL.js +0 -4
- package/dist/chunk-L5TSPCSY.js +0 -26
- package/dist/chunk-LUGMXSRI.js +0 -9
- package/dist/chunk-M2CWCOFU.js +0 -11
- package/dist/chunk-M5VIFG2V.js +0 -1
- package/dist/chunk-MADINS4Z.js +0 -1
- package/dist/chunk-MGHPF7HU.js +0 -6
- package/dist/chunk-MHR5OHT5.js +0 -10
- package/dist/chunk-MXEXP3HT.js +0 -15
- package/dist/chunk-OJULL7HT.js +0 -1
- package/dist/chunk-OMPQ7REW.js +0 -3
- package/dist/chunk-OR4IJ4BQ.js +0 -1
- package/dist/chunk-P2RMFHQP.js +0 -1
- package/dist/chunk-P4VZYOKO.js +0 -15
- package/dist/chunk-PDZBKVWL.js +0 -97
- package/dist/chunk-Q2KWXZQB.js +0 -12
- package/dist/chunk-QFSENE5T.js +0 -3
- package/dist/chunk-QFWWCZOI.js +0 -1
- package/dist/chunk-QFYLJVJW.js +0 -77
- package/dist/chunk-QQJNQNKP.js +0 -6
- package/dist/chunk-R4UVIYZP.js +0 -4
- package/dist/chunk-RLNIOJH3.js +0 -272
- package/dist/chunk-RW6G4ZPU.js +0 -1
- package/dist/chunk-S4LOWCGS.js +0 -1
- package/dist/chunk-SB27UOXX.js +0 -1
- package/dist/chunk-SHD4VV5V.js +0 -3
- package/dist/chunk-SK7EPN6C.js +0 -1
- package/dist/chunk-TAWCKJKP.js +0 -1
- package/dist/chunk-U2T5HPRD.js +0 -319
- package/dist/chunk-U6YOP562.js +0 -1
- package/dist/chunk-UPPO3BMT.js +0 -7
- package/dist/chunk-USXIXANP.js +0 -103
- package/dist/chunk-UV5GAGAD.js +0 -1
- package/dist/chunk-UY6W2EVZ.js +0 -1
- package/dist/chunk-UYELAINQ.js +0 -16
- package/dist/chunk-V75WUEFU.js +0 -1
- package/dist/chunk-VAVXDIUX.js +0 -6
- package/dist/chunk-VEUKT5EI.js +0 -6
- package/dist/chunk-VGSH52JM.js +0 -1
- package/dist/chunk-VHZ6RL67.js +0 -1
- package/dist/chunk-VQA3X7O3.js +0 -1
- package/dist/chunk-VZCMJRYV.js +0 -1
- package/dist/chunk-W56ZGEQQ.js +0 -2265
- package/dist/chunk-WSDKCQH6.js +0 -6
- package/dist/chunk-X2PFXSU4.js +0 -1
- package/dist/chunk-X5NIAZA4.js +0 -1
- package/dist/chunk-XBMD3FEZ.js +0 -3
- package/dist/chunk-XDVPIGXE.js +0 -2
- package/dist/chunk-XLIJYJ6Q.js +0 -1
- package/dist/chunk-XUHGWIWW.js +0 -4
- package/dist/chunk-Y55T4IIQ.js +0 -7
- package/dist/chunk-Y5CVX5LJ.js +0 -1
- package/dist/chunk-Y6J46XYF.js +0 -3
- package/dist/chunk-YKMINHYY.js +0 -3
- package/dist/chunk-ZDQO6CNY.js +0 -1
- package/dist/chunk-ZGASBRSQ.js +0 -5
- package/dist/chunk-ZGBTO46A.js +0 -1
- package/dist/chunk-ZJOX5HW4.js +0 -22
- package/dist/chunk-ZOOT3GBY.js +0 -5
- package/dist/command-json-schema-F5XF7XHL.js +0 -1
- package/dist/conf-store-5CBLWTOC.js +0 -1
- package/dist/custom-oclif-loader-UDVUFKMD.js +0 -1
- package/dist/deprecations-EOHPSTCS.js +0 -1
- package/dist/dist-RNV3GFZ7.js +0 -1
- package/dist/dist-ZFKWJVNB.js +0 -1
- package/dist/environment-O7ECODHU.js +0 -1
- package/dist/environments-4FLRZW4P.js +0 -1
- package/dist/error-JY2ADS6S.js +0 -1
- package/dist/error-handler-4GCXKC6I.js +0 -1
- package/dist/fs-XS5YF34R.js +0 -1
- package/dist/http-proxy-node16-D3JUYA5D.js +0 -38
- package/dist/is-global-27MUENOK.js +0 -1
- package/dist/json-error-S5XFS3UX.js +0 -1
- package/dist/latest-version-LDWU5F7A.js +0 -49
- package/dist/lib-PJHT4MKY.js +0 -1
- package/dist/lib-VKSQ65BQ.js +0 -1
- package/dist/lib-YEZOHXF3.js +0 -1
- package/dist/metadata-2YJBAKR7.js +0 -1
- package/dist/node-package-manager-B3OW3PFQ.js +0 -1
- package/dist/notifications-system-BWTDYBG2.js +0 -1
- package/dist/os-F6QKJCFW.js +0 -1
- package/dist/output-BRIPK7UC.js +0 -1
- package/dist/system-466QKFDI.js +0 -1
- package/dist/ui-VJTNGCS6.js +0 -1
- package/dist/upgrade-VHVJLXKX.js +0 -1
- package/dist/version-FETZRLZO.js +0 -1
- package/dist/version-T4XXTJMB.js +0 -1
- package/dist/workerd-32DMKLMN.js +0 -18
- /package/dist/{chunk-YLQ3LNNY.js → chunk-2S3FHQFS.js} +0 -0
- /package/dist/{chunk-YRHFPXC3.js → chunk-Z2AV4BWZ.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as x}from"./chunk-
|
|
1
|
+
import{a as x}from"./chunk-LXIWMYM4.js";import{P as D}from"./chunk-HMPRWNGG.js";import{b as u,e as B}from"./chunk-2BYW3BYX.js";import{b as W,p as y}from"./chunk-YKDRUAY3.js";import{A as _,H as N,S as F}from"./chunk-2KUM2RU4.js";import{i as s,l as C}from"./chunk-TD6JBHUS.js";import{Sa as A,la as T,tb as m,vb as o}from"./chunk-ZMOW2YZ4.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 A(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
|
`);_({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(Array.isArray(i.errors)&&i.errors.length>0)return!0;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};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{a as U}from"./chunk-SBN3ILXO.js";import{V as H}from"./chunk-YYWSHRO2.js";import{a as X}from"./chunk-VJEKDBGZ.js";import{u as I}from"./chunk-OJOF6IYG.js";import{a as O,v as S}from"./chunk-2KUM2RU4.js";import{i as k}from"./chunk-TD6JBHUS.js";import{Ba as W,Eb as p,Sa as A,Ta as y,ab as w,gb as D,ma as R,va as g}from"./chunk-ZMOW2YZ4.js";import{g as N}from"./chunk-DOLVBTCB.js";import{c as x,d as f,f as v,h as P}from"./chunk-IWTNUJGY.js";import{e as J,g as E}from"./chunk-VKWPEFWQ.js";E();function _(){return process.hrtime()}function M(r){let t=process.hrtime(r);return(t[0]*1e3+t[1]/1e6).toFixed(2)}E();E();var $=J(X(),1),q=200,K=6e4,L=200,Y=500,Q=["**/node_modules/**","**/.git/**","**/.shopify/**","**/.DS_Store","**/*.swp","**/*.swo","**/*~"],b=class{currentEvents=[];extensionPaths=[];app;options;onChangeCallback;watcher;debouncedEmit;ignored={};extensionWatchedFiles=new Map;constructor(t,e,s=q){this.app=t,this.options=e,this.debouncedEmit=S(this.emitEvents.bind(this),s,{leading:!0,trailing:!0}),this.updateApp(t)}onChange(t){this.onChangeCallback=t}async start(){let e=[...this.app.configuration.extension_directories??["extensions"]].map(a=>x(this.app.directory,a));await Promise.all(e.map(async a=>{try{await g(a.replace(/\/\*+$/,""))}catch{}}));let s=[this.app.configPath,...e],i=this.getAllWatchedFiles();s.push(...i),this.close();let{default:n}=await import("./chokidar-5RWEYTNQ.js"),o=new Map;this.watcher=n.watch(s,{ignored:[...Q,a=>{let d=f(a);return this.app.realExtensions.some(c=>{if(!c.isFunctionExtension)return!1;let h=f(x(c.directory,P(c.outputRelativePath)));return d===h||d.startsWith(`${h}/`)})||Z(d,o)}],persistent:!0,ignoreInitial:!0}),this.watcher.on("all",this.onWatcherCreated(this.watcher,this.handleFileEvent)),this.addAbortListener(),p(`File watcher started with ${s.length} paths`,this.options.stdout)}updateApp(t){this.app=t,this.extensionPaths=this.app.nonConfigExtensions.map(e=>f(e.directory)).filter(e=>e!==this.app.directory),this.extensionPaths.forEach(e=>{this.ignored[e]??=this.createIgnoreInstance(e)})}onWatcherCreated(t,e){return e}addAbortListener(){this.options.signal.removeEventListener("abort",this.close),this.options.signal.addEventListener("abort",this.close)}getAllWatchedFiles(){this.extensionWatchedFiles.clear();let t=this.app.realExtensions.map(s=>({extension:s,watchedFiles:s.watchedFiles()})),e=new Set;for(let{extension:s,watchedFiles:i}of t)for(let n of i){let o=f(n);e.add(o);let a=this.extensionWatchedFiles.get(o)??new Set;a.add(s.handle),this.extensionWatchedFiles.set(o,a)}return Array.from(e)}emitEvents=()=>{let t=this.currentEvents;this.currentEvents=[];let e=`\u{1F509} ${t.length} EVENTS EMITTED in files: ${t.map(s=>s.path).join(`
|
|
2
|
+
`)}`;p(e,this.options.stdout),this.onChangeCallback?.(t)};pushEvent(t){this.shouldIgnoreEvent(t)||(t.type==="extension_folder_created"&&(this.ignored[t.path]=this.createIgnoreInstance(t.path)),!this.currentEvents.some(e=>e.path===t.path&&e.type===t.type&&e.extensionHandle===t.extensionHandle)&&this.currentEvents.push(t))}shouldIgnoreEvent(t){if(t.type==="extension_folder_deleted"||t.type==="extension_folder_created"||t.extensionHandle&&this.extensionWatchedFiles.get(f(t.path))?.has(t.extensionHandle))return!1;let s=(t.extensionHandle?this.app.realExtensions.find(n=>n.handle===t.extensionHandle):void 0)?.watchedFiles(),i=this.ignored[t.extensionPath];if(s)return!s.some(o=>w(t.path,o));if(i){let n=v(t.extensionPath,t.path);return i.ignores(n)}return!1}handleFileEvent=(t,e)=>{let s=_(),i=f(e),n=e===this.app.configPath,o=e.endsWith(".extension.toml");if(p(`\u{1F300}: ${t} ${e.replace(this.app.directory,"")}
|
|
3
|
+
`),n)this.handleEventForExtension(t,e,this.app.directory,s,!1);else{let a=this.extensionWatchedFiles.get(i),d=a===void 0||a.size===0;if(d&&t==="add"&&!o){let l=this.discoverFileOwners(i);l.size>0&&(this.extensionWatchedFiles.set(i,l),a=l,d=!1)}if(d&&!o&&!n){p(`\u{1F300}: File ${e} is not watched by any extension`,this.options.stdout);return}for(let l of a??[]){let c=this.app.realExtensions.find(m=>m.handle===l),h=c?f(c.directory):this.app.directory;this.handleEventForExtension(t,e,h,s,!1,l)}d&&this.handleEventForExtension(t,e,this.app.directory,s,!0)}this.debouncedEmit()};discoverFileOwners(t){let e=new Set;for(let s of this.app.realExtensions){let i=f(s.directory);i!==this.app.directory&&t.startsWith(`${i}/`)&&this.pathMatchesWatchPatterns(t,s)&&e.add(s.handle)}return e}pathMatchesWatchPatterns(t,e){let{paths:s,ignore:i}=e.watchPatterns(),n=v(f(e.directory),t);return i.some(o=>w(n,o))?!1:s.some(o=>w(n,o))}handleEventForExtension(t,e,s,i,n,o){let a=e.endsWith(".extension.toml"),d=e===this.app.configPath;switch(t){case"change":if(n)break;a||d?this.pushEvent({type:"extensions_config_updated",path:e,extensionPath:s,extensionHandle:o,startTime:i}):this.pushEvent({type:"file_updated",path:e,extensionPath:s,extensionHandle:o,startTime:i});break;case"add":if(!a){this.pushEvent({type:"file_created",path:e,extensionPath:s,extensionHandle:o,startTime:i});break}let l=0,c=P(e),h=setInterval(()=>{y(x(c,I.lockFile))?(p(`Waiting for extension to complete creation: ${e}
|
|
4
|
+
`),l+=L):(clearInterval(h),this.extensionPaths.push(c),this.pushEvent({type:"extension_folder_created",path:c,extensionPath:s,startTime:i}),this.debouncedEmit()),l>=K&&(clearInterval(h),this.options.stderr.write(`Error loading new extension at path: ${e}.
|
|
5
|
+
Please restart the process.`))},L);break;case"unlink":if(e.endsWith(I.lockFile))break;d?this.pushEvent({type:"app_config_deleted",path:e,extensionPath:s,startTime:i}):a?(this.extensionPaths=this.extensionPaths.filter(m=>m!==s),this.pushEvent({type:"extension_folder_deleted",path:s,extensionPath:s,startTime:i})):setTimeout(()=>{this.extensionPaths.includes(s)&&(this.pushEvent({type:"file_deleted",path:e,extensionPath:s,extensionHandle:o,startTime:i}),this.extensionWatchedFiles.delete(f(e)),this.debouncedEmit())},Y);break;case"addDir":case"unlinkDir":break}}close=()=>{this.watcher&&(p("Closing file watcher",this.options.stdout),this.watcher.close().then(()=>p("File watching closed",this.options.stdout)).catch(t=>p(`File watching failed to close: ${t.message}`,this.options.stderr)))};createIgnoreInstance(t){let e=x(t,".gitignore");if(!y(e))return;let s=R(e).toString().split(`
|
|
6
|
+
`).map(i=>i.trim()).filter(i=>i!==""&&!i.startsWith("#"));return $.default.default().add(s)}};function Z(r,t){let e=r.split("/");for(let s=e.length-1;s>0;s--){if(e[s]!=="target")continue;let i=e.slice(0,s).join("/"),n=t.get(i);if(n===void 0&&(n=y(x(i,"Cargo.toml")),t.set(i,n)),n)return!0}return!1}E();E();function j(r,t,e=!0){let s=r.realExtensions,i=s.map(c=>c.uid),n=t.realExtensions,o=n.map(c=>c.uid),a=n.filter(c=>!i.includes(c.uid)),d=s.filter(c=>!o.includes(c.uid)),l;return e&&(l=n.filter(c=>{let h=s.find(F=>F.uid===c.uid);if(!h)return!1;let m=JSON.stringify(h.configuration)!==JSON.stringify(c.configuration),C=h.configurationPath!==c.configurationPath;return m||C})),{created:a,updated:l??[],deleted:d}}async function V(r,t,e){if(r[0]===void 0)return;let s=r.some(o=>B.includes(o.type)),i=r.filter(o=>!B.includes(o.type));if(s)return it({event:r[0],app:t,options:e,extensions:[]});let n={app:t,extensionEvents:[],path:r[0].path,startTime:r[0].startTime};for(let o of i){let a=o.extensionHandle?t.realExtensions.filter(l=>l.handle===o.extensionHandle):t.realExtensions.filter(l=>l.directory===o.extensionPath),d=tt[o.type]({event:o,app:n.app,extensions:a,options:e});n.extensionEvents.push(...d.extensionEvents)}return n}var B=["extensions_config_updated","extension_folder_created"],tt={extension_folder_deleted:et,file_created:T,file_deleted:T,file_updated:T,app_config_deleted:st,extension_folder_created:z,extensions_config_updated:z};function et({event:r,app:t,extensions:e}){let s=e.map(i=>(t.removeExtension(i.uid),{type:u.Deleted,extension:i}));return{app:t,extensionEvents:s,startTime:r.startTime,path:r.path}}function T({event:r,app:t,extensions:e}){let s=e.map(i=>({type:u.Updated,extension:i}));return{app:t,extensionEvents:s,startTime:r.startTime,path:r.path}}function z(r){return{app:r.app,extensionEvents:[],startTime:r.event.startTime,path:r.event.path}}function st(r){throw new k("The active app.toml was deleted, exiting")}async function it({event:r,app:t}){let e=await nt(t),s=j(t,e,!0),i=s.created.map(d=>({type:u.Created,extension:d})),n=s.deleted.map(d=>({type:u.Deleted,extension:d})),o=s.updated.map(d=>({type:u.Updated,extension:d})),a=[...i,...n,...o];return{app:e,extensionEvents:a,startTime:r.startTime,path:r.path,appWasReloaded:!0}}async function nt(r){let t=_();try{let e=await H(r);return p(`App reloaded [${M(t)}ms]`),e}catch(e){let s=new Error(`Error reloading app: ${e.message}`);throw s.cause="validation-error",s}}import{formatMessagesSync as ot}from"esbuild";import rt from"events";var u;(function(r){r.Updated="changed",r.Deleted="deleted",r.Created="created"})(u||(u={}));var G=class extends rt{buildOutputPath;app;options;appURL;started=!1;ready=!1;initialEvents=[];fileWatcher;constructor(t,e,s,i){super(),this.app=t,this.appURL=e,this.buildOutputPath=s??x(t.directory,".shopify","dev-bundle"),this.options={stdout:process.stdout,stderr:process.stderr,signal:new O().signal},this.fileWatcher=i}async start(t,e=!0){this.started||(this.started=!0,this.options=t??this.options,await A(this.buildOutputPath)&&await W(this.buildOutputPath,{force:!0}),await g(this.buildOutputPath),e&&(this.initialEvents=this.app.realExtensions.map(s=>({type:u.Updated,extension:s})),await this.buildExtensions(this.initialEvents)),this.fileWatcher=this.fileWatcher??new b(this.app,this.options),this.fileWatcher.onChange(s=>{V(s,this.app,this.options).then(async i=>{if(i?.extensionEvents.length===0&&p("Change detected, but no extensions were affected"),!i)return;this.app=i.app,i.appWasReloaded&&this.fileWatcher?.updateApp(this.app),await this.rescanImports(i);let n=i.extensionEvents.filter(o=>o.type!==u.Deleted);await this.buildExtensions(n),i.appWasReloaded||await this.app.generateExtensionTypes(),await this.deleteExtensionsBuildOutput(i),this.emit("all",i)}).catch(i=>{this.emit("error",i)})}),await this.fileWatcher.start(),this.ready=!0,this.emit("ready",{app:this.app,extensionEvents:this.initialEvents}))}onEvent(t){return this.addListener("all",t),this}onStart(t){if(this.ready){let e={app:this.app,extensionEvents:this.initialEvents,startTime:[0,0],path:""};t(e)?.catch(()=>{})}else this.once("ready",t);return this}onError(t){return this.addListener("error",t),this}async deleteExtensionsBuildOutput(t){let s=t.extensionEvents.filter(i=>i.type===u.Deleted).map(i=>i.extension).map(async i=>{let n=x(this.buildOutputPath,i.getOutputFolderId());return W(n,{force:!0})});await Promise.all(s)}async buildExtensions(t){let e=U(t,n=>n.extension.uid),s=[];for(let n of Object.values(e))n.length>0&&n[0]&&s.push({extension:n[0].extension,events:n});let i=s.map(async({extension:n,events:o})=>D({outputPrefix:n.handle,stripAnsi:!1},async()=>{try{await this.buildExtension(n);let a={status:"ok",uid:n.uid};o.forEach(d=>{d.buildResult=a})}catch(a){let d=a.errors??[],l=a.message,c;if(d.length){let m=d[0];l=m?.text,c=m?.location?.file,ot(d,{kind:"error",color:!N()}).forEach(F=>{this.options.stderr.write(F)})}else this.options.stderr.write(a.message);let h={status:"error",error:l,file:c,uid:n.uid};o.forEach(m=>{m.buildResult=h})}}));return Promise.all(i)}async buildExtension(t){let e={app:this.app,stdout:this.options.stdout,stderr:this.options.stderr,useTasks:!1,environment:"development",appURL:this.appURL};await t.buildForBundle(e,this.buildOutputPath)}async rescanImports(t){if(t.path.endsWith(".toml"))return;let s=t.extensionEvents.filter(i=>i.type!==u.Deleted).map(i=>i.extension);s.length>0&&(await Promise.all(s.map(async o=>o.rescanImports()))).some(o=>o)&&await this.fileWatcher?.start()}};export{_ as a,M as b,b as c,u as d,G as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as n}from"./chunk-
|
|
1
|
+
import{b as n}from"./chunk-DMOLPSXF.js";import{i as r}from"./chunk-B4OMIONW.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();function v(o){o.verbose&&(process.env[n.verbose.env]="true"),o.noColor&&(r.level=0,process.env.FORCE_COLOR="0")}export{v as a};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import{a as oh,b as ve,c as $r,d as Rt,e as Ur,f as ct,g as Wr,h as zr,i as O}from"./chunk-B4OMIONW.js";import{b as sh}from"./chunk-UU6UQ2QY.js";import{a as ah}from"./chunk-5B76DT7X.js";import{j as _i,k as Gr}from"./chunk-3PYDIBTX.js";import{e as bi,g as se}from"./chunk-DOLVBTCB.js";import{a as di}from"./chunk-JD5P5RAJ.js";import{a as mi,b as Nt,c as ut,d as Mr,e as kr,h as gi,m as wi,n as Si,p as vi,q as xi}from"./chunk-IWTNUJGY.js";import{a as uh}from"./chunk-3KGN6N7E.js";import{b as ih}from"./chunk-CQAD5WML.js";import{a as M,b as rh,c as p,d as nh,e as H,f as le,g as s}from"./chunk-VKWPEFWQ.js";var Ai=p((Hq,Pi)=>{"use strict";s();var hh=uh(),$e=ih();function Ti(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 Kr(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($e("no-hyperlink")||$e("no-hyperlinks")||$e("hyperlink=false")||$e("hyperlink=never"))return!1;if($e("hyperlink=true")||$e("hyperlink=always")||n)return!0;if(!hh.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=Ti(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=Ti(u);return f.major>0||f.minor>=50}return l==="alacritty"}Pi.exports={supportsHyperlink:Kr,stdout:Kr(process.stdout),stderr:Kr(process.stderr)}});var Ui=p((IE,$i)=>{s();function vh(){this.__data__=[],this.size=0}$i.exports=vh});var Xr=p((RE,Wi)=>{s();function xh(e,t){return e===t||e!==e&&t!==t}Wi.exports=xh});var mt=p((kE,Gi)=>{s();var _h=Xr();function bh(e,t){for(var r=e.length;r--;)if(_h(e[r][0],t))return r;return-1}Gi.exports=bh});var Ji=p((UE,zi)=>{s();var qh=mt(),Eh=Array.prototype,Ch=Eh.splice;function Oh(e){var t=this.__data__,r=qh(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ch.call(t,r,1),--this.size,!0}zi.exports=Oh});var Hi=p((GE,Bi)=>{s();var Th=mt();function Ph(e){var t=this.__data__,r=Th(t,e);return r<0?void 0:t[r][1]}Bi.exports=Ph});var Yi=p((JE,Ki)=>{s();var Ah=mt();function Fh(e){return Ah(this.__data__,e)>-1}Ki.exports=Fh});var Zi=p((HE,Vi)=>{s();var Lh=mt();function Dh(e,t){var r=this.__data__,n=Lh(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}Vi.exports=Dh});var gt=p((YE,Xi)=>{s();var jh=Ui(),Ih=Ji(),Nh=Hi(),Rh=Yi(),Mh=Zi();function Ge(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])}}Ge.prototype.clear=jh;Ge.prototype.delete=Ih;Ge.prototype.get=Nh;Ge.prototype.has=Rh;Ge.prototype.set=Mh;Xi.exports=Ge});var eo=p((ZE,Qi)=>{s();var kh=gt();function $h(){this.__data__=new kh,this.size=0}Qi.exports=$h});var ro=p((QE,to)=>{s();function Uh(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}to.exports=Uh});var io=p((tC,no)=>{s();function Wh(e){return this.__data__.get(e)}no.exports=Wh});var so=p((nC,oo)=>{s();function Gh(e){return this.__data__.has(e)}oo.exports=Gh});var Qr=p((oC,ao)=>{s();var zh=Rt(),Jh=Ur(),Bh="[object AsyncFunction]",Hh="[object Function]",Kh="[object GeneratorFunction]",Yh="[object Proxy]";function Vh(e){if(!Jh(e))return!1;var t=zh(e);return t==Hh||t==Kh||t==Bh||t==Yh}ao.exports=Vh});var co=p((aC,uo)=>{s();var Zh=ve(),Xh=Zh["__core-js_shared__"];uo.exports=Xh});var po=p((cC,lo)=>{s();var en=co(),fo=(function(){var e=/[^.]+$/.exec(en&&en.keys&&en.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Qh(e){return!!fo&&fo in e}lo.exports=Qh});var tn=p((lC,ho)=>{s();var ey=Function.prototype,ty=ey.toString;function ry(e){if(e!=null){try{return ty.call(e)}catch{}try{return e+""}catch{}}return""}ho.exports=ry});var mo=p((hC,yo)=>{s();var ny=Qr(),iy=po(),oy=Ur(),sy=tn(),ay=/[\\^$.*+?()[\]{}|]/g,uy=/^\[object .+?Constructor\]$/,cy=Function.prototype,fy=Object.prototype,ly=cy.toString,py=fy.hasOwnProperty,hy=RegExp("^"+ly.call(py).replace(ay,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yy(e){if(!oy(e)||iy(e))return!1;var t=ny(e)?hy:uy;return t.test(sy(e))}yo.exports=yy});var wo=p((dC,go)=>{s();function dy(e,t){return e?.[t]}go.exports=dy});var xe=p((gC,So)=>{s();var my=mo(),gy=wo();function wy(e,t){var r=gy(e,t);return my(r)?r:void 0}So.exports=wy});var Kt=p((SC,vo)=>{s();var Sy=xe(),vy=ve(),xy=Sy(vy,"Map");vo.exports=xy});var wt=p((xC,xo)=>{s();var _y=xe(),by=_y(Object,"create");xo.exports=by});var qo=p((bC,bo)=>{s();var _o=wt();function qy(){this.__data__=_o?_o(null):{},this.size=0}bo.exports=qy});var Co=p((EC,Eo)=>{s();function Ey(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}Eo.exports=Ey});var To=p((OC,Oo)=>{s();var Cy=wt(),Oy="__lodash_hash_undefined__",Ty=Object.prototype,Py=Ty.hasOwnProperty;function Ay(e){var t=this.__data__;if(Cy){var r=t[e];return r===Oy?void 0:r}return Py.call(t,e)?t[e]:void 0}Oo.exports=Ay});var Ao=p((PC,Po)=>{s();var Fy=wt(),Ly=Object.prototype,Dy=Ly.hasOwnProperty;function jy(e){var t=this.__data__;return Fy?t[e]!==void 0:Dy.call(t,e)}Po.exports=jy});var Lo=p((FC,Fo)=>{s();var Iy=wt(),Ny="__lodash_hash_undefined__";function Ry(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Iy&&t===void 0?Ny:t,this}Fo.exports=Ry});var jo=p((DC,Do)=>{s();var My=qo(),ky=Co(),$y=To(),Uy=Ao(),Wy=Lo();function ze(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])}}ze.prototype.clear=My;ze.prototype.delete=ky;ze.prototype.get=$y;ze.prototype.has=Uy;ze.prototype.set=Wy;Do.exports=ze});var Ro=p((IC,No)=>{s();var Io=jo(),Gy=gt(),zy=Kt();function Jy(){this.size=0,this.__data__={hash:new Io,map:new(zy||Gy),string:new Io}}No.exports=Jy});var ko=p((RC,Mo)=>{s();function By(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}Mo.exports=By});var St=p((kC,$o)=>{s();var Hy=ko();function Ky(e,t){var r=e.__data__;return Hy(t)?r[typeof t=="string"?"string":"hash"]:r.map}$o.exports=Ky});var Wo=p((UC,Uo)=>{s();var Yy=St();function Vy(e){var t=Yy(this,e).delete(e);return this.size-=t?1:0,t}Uo.exports=Vy});var zo=p((GC,Go)=>{s();var Zy=St();function Xy(e){return Zy(this,e).get(e)}Go.exports=Xy});var Bo=p((JC,Jo)=>{s();var Qy=St();function ed(e){return Qy(this,e).has(e)}Jo.exports=ed});var Ko=p((HC,Ho)=>{s();var td=St();function rd(e,t){var r=td(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}Ho.exports=rd});var Yt=p((YC,Yo)=>{s();var nd=Ro(),id=Wo(),od=zo(),sd=Bo(),ad=Ko();function Je(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])}}Je.prototype.clear=nd;Je.prototype.delete=id;Je.prototype.get=od;Je.prototype.has=sd;Je.prototype.set=ad;Yo.exports=Je});var Zo=p((ZC,Vo)=>{s();var ud=gt(),cd=Kt(),fd=Yt(),ld=200;function pd(e,t){var r=this.__data__;if(r instanceof ud){var n=r.__data__;if(!cd||n.length<ld-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new fd(n)}return r.set(e,t),this.size=r.size,this}Vo.exports=pd});var rn=p((QC,Xo)=>{s();var hd=gt(),yd=eo(),dd=ro(),md=io(),gd=so(),wd=Zo();function Be(e){var t=this.__data__=new hd(e);this.size=t.size}Be.prototype.clear=yd;Be.prototype.delete=dd;Be.prototype.get=md;Be.prototype.has=gd;Be.prototype.set=wd;Xo.exports=Be});var es=p((tO,Qo)=>{s();var Sd="__lodash_hash_undefined__";function vd(e){return this.__data__.set(e,Sd),this}Qo.exports=vd});var rs=p((nO,ts)=>{s();function xd(e){return this.__data__.has(e)}ts.exports=xd});var Zt=p((oO,ns)=>{s();var _d=Yt(),bd=es(),qd=rs();function Vt(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new _d;++t<r;)this.add(e[t])}Vt.prototype.add=Vt.prototype.push=bd;Vt.prototype.has=qd;ns.exports=Vt});var os=p((aO,is)=>{s();function Ed(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}is.exports=Ed});var Xt=p((cO,ss)=>{s();function Cd(e,t){return e.has(t)}ss.exports=Cd});var nn=p((lO,as)=>{s();var Od=Zt(),Td=os(),Pd=Xt(),Ad=1,Fd=2;function Ld(e,t,r,n,i,o){var a=r&Ad,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,y=!0,d=r&Fd?new Od:void 0;for(o.set(e,t),o.set(t,e);++h<u;){var g=e[h],m=t[h];if(n)var w=a?n(m,g,h,t,e,o):n(g,m,h,e,t,o);if(w!==void 0){if(w)continue;y=!1;break}if(d){if(!Td(t,function(S,v){if(!Pd(d,v)&&(g===S||i(g,S,r,n,o)))return d.push(v)})){y=!1;break}}else if(!(g===m||i(g,m,r,n,o))){y=!1;break}}return o.delete(e),o.delete(t),y}as.exports=Ld});var cs=p((hO,us)=>{s();var Dd=ve(),jd=Dd.Uint8Array;us.exports=jd});var ls=p((dO,fs)=>{s();function Id(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}fs.exports=Id});var Qt=p((gO,ps)=>{s();function Nd(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}ps.exports=Nd});var gs=p((SO,ms)=>{s();var hs=$r(),ys=cs(),Rd=Xr(),Md=nn(),kd=ls(),$d=Qt(),Ud=1,Wd=2,Gd="[object Boolean]",zd="[object Date]",Jd="[object Error]",Bd="[object Map]",Hd="[object Number]",Kd="[object RegExp]",Yd="[object Set]",Vd="[object String]",Zd="[object Symbol]",Xd="[object ArrayBuffer]",Qd="[object DataView]",ds=hs?hs.prototype:void 0,on=ds?ds.valueOf:void 0;function em(e,t,r,n,i,o,a){switch(r){case Qd:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Xd:return!(e.byteLength!=t.byteLength||!o(new ys(e),new ys(t)));case Gd:case zd:case Hd:return Rd(+e,+t);case Jd:return e.name==t.name&&e.message==t.message;case Kd:case Vd:return e==t+"";case Bd:var u=kd;case Yd:var l=n&Ud;if(u||(u=$d),e.size!=t.size&&!l)return!1;var f=a.get(e);if(f)return f==t;n|=Wd,a.set(e,t);var c=Md(u(e),u(t),n,i,o,a);return a.delete(e),c;case Zd:if(on)return on.call(e)==on.call(t)}return!1}ms.exports=em});var sn=p((xO,ws)=>{s();function tm(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}ws.exports=tm});var de=p((bO,Ss)=>{s();var rm=Array.isArray;Ss.exports=rm});var xs=p((EO,vs)=>{s();var nm=sn(),im=de();function om(e,t,r){var n=t(e);return im(e)?n:nm(n,r(e))}vs.exports=om});var bs=p((OO,_s)=>{s();function sm(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}_s.exports=sm});var Es=p((PO,qs)=>{s();function am(){return[]}qs.exports=am});var Ts=p((FO,Os)=>{s();var um=bs(),cm=Es(),fm=Object.prototype,lm=fm.propertyIsEnumerable,Cs=Object.getOwnPropertySymbols,pm=Cs?function(e){return e==null?[]:(e=Object(e),um(Cs(e),function(t){return lm.call(e,t)}))}:cm;Os.exports=pm});var As=p((DO,Ps)=>{s();function hm(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}Ps.exports=hm});var Ls=p((IO,Fs)=>{s();var ym=Rt(),dm=ct(),mm="[object Arguments]";function gm(e){return dm(e)&&ym(e)==mm}Fs.exports=gm});var er=p((RO,Is)=>{s();var Ds=Ls(),wm=ct(),js=Object.prototype,Sm=js.hasOwnProperty,vm=js.propertyIsEnumerable,xm=Ds((function(){return arguments})())?Ds:function(e){return wm(e)&&Sm.call(e,"callee")&&!vm.call(e,"callee")};Is.exports=xm});var Rs=p((kO,Ns)=>{s();function _m(){return!1}Ns.exports=_m});var an=p((vt,He)=>{s();var bm=ve(),qm=Rs(),$s=typeof vt=="object"&&vt&&!vt.nodeType&&vt,Ms=$s&&typeof He=="object"&&He&&!He.nodeType&&He,Em=Ms&&Ms.exports===$s,ks=Em?bm.Buffer:void 0,Cm=ks?ks.isBuffer:void 0,Om=Cm||qm;He.exports=Om});var un=p((WO,Us)=>{s();var Tm=9007199254740991,Pm=/^(?:0|[1-9]\d*)$/;function Am(e,t){var r=typeof e;return t=t??Tm,!!t&&(r=="number"||r!="symbol"&&Pm.test(e))&&e>-1&&e%1==0&&e<t}Us.exports=Am});var tr=p((zO,Ws)=>{s();var Fm=9007199254740991;function Lm(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Fm}Ws.exports=Lm});var zs=p((BO,Gs)=>{s();var Dm=Rt(),jm=tr(),Im=ct(),Nm="[object Arguments]",Rm="[object Array]",Mm="[object Boolean]",km="[object Date]",$m="[object Error]",Um="[object Function]",Wm="[object Map]",Gm="[object Number]",zm="[object Object]",Jm="[object RegExp]",Bm="[object Set]",Hm="[object String]",Km="[object WeakMap]",Ym="[object ArrayBuffer]",Vm="[object DataView]",Zm="[object Float32Array]",Xm="[object Float64Array]",Qm="[object Int8Array]",eg="[object Int16Array]",tg="[object Int32Array]",rg="[object Uint8Array]",ng="[object Uint8ClampedArray]",ig="[object Uint16Array]",og="[object Uint32Array]",A={};A[Zm]=A[Xm]=A[Qm]=A[eg]=A[tg]=A[rg]=A[ng]=A[ig]=A[og]=!0;A[Nm]=A[Rm]=A[Ym]=A[Mm]=A[Vm]=A[km]=A[$m]=A[Um]=A[Wm]=A[Gm]=A[zm]=A[Jm]=A[Bm]=A[Hm]=A[Km]=!1;function sg(e){return Im(e)&&jm(e.length)&&!!A[Dm(e)]}Gs.exports=sg});var cn=p((KO,Js)=>{s();function ag(e){return function(t){return e(t)}}Js.exports=ag});var Hs=p((xt,Ke)=>{s();var ug=oh(),Bs=typeof xt=="object"&&xt&&!xt.nodeType&&xt,_t=Bs&&typeof Ke=="object"&&Ke&&!Ke.nodeType&&Ke,cg=_t&&_t.exports===Bs,fn=cg&&ug.process,fg=(function(){try{var e=_t&&_t.require&&_t.require("util").types;return e||fn&&fn.binding&&fn.binding("util")}catch{}})();Ke.exports=fg});var ln=p((ZO,Vs)=>{s();var lg=zs(),pg=cn(),Ks=Hs(),Ys=Ks&&Ks.isTypedArray,hg=Ys?pg(Ys):lg;Vs.exports=hg});var Xs=p((QO,Zs)=>{s();var yg=As(),dg=er(),mg=de(),gg=an(),wg=un(),Sg=ln(),vg=Object.prototype,xg=vg.hasOwnProperty;function _g(e,t){var r=mg(e),n=!r&&dg(e),i=!r&&!n&&gg(e),o=!r&&!n&&!i&&Sg(e),a=r||n||i||o,u=a?yg(e.length,String):[],l=u.length;for(var f in e)(t||xg.call(e,f))&&!(a&&(f=="length"||i&&(f=="offset"||f=="parent")||o&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||wg(f,l)))&&u.push(f);return u}Zs.exports=_g});var ea=p((tT,Qs)=>{s();var bg=Object.prototype;function qg(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||bg;return e===r}Qs.exports=qg});var ra=p((nT,ta)=>{s();function Eg(e,t){return function(r){return e(t(r))}}ta.exports=Eg});var ia=p((oT,na)=>{s();var Cg=ra(),Og=Cg(Object.keys,Object);na.exports=Og});var sa=p((aT,oa)=>{s();var Tg=ea(),Pg=ia(),Ag=Object.prototype,Fg=Ag.hasOwnProperty;function Lg(e){if(!Tg(e))return Pg(e);var t=[];for(var r in Object(e))Fg.call(e,r)&&r!="constructor"&&t.push(r);return t}oa.exports=Lg});var pn=p((cT,aa)=>{s();var Dg=Qr(),jg=tr();function Ig(e){return e!=null&&jg(e.length)&&!Dg(e)}aa.exports=Ig});var hn=p((lT,ua)=>{s();var Ng=Xs(),Rg=sa(),Mg=pn();function kg(e){return Mg(e)?Ng(e):Rg(e)}ua.exports=kg});var fa=p((hT,ca)=>{s();var $g=xs(),Ug=Ts(),Wg=hn();function Gg(e){return $g(e,Wg,Ug)}ca.exports=Gg});var ha=p((dT,pa)=>{s();var la=fa(),zg=1,Jg=Object.prototype,Bg=Jg.hasOwnProperty;function Hg(e,t,r,n,i,o){var a=r&zg,u=la(e),l=u.length,f=la(t),c=f.length;if(l!=c&&!a)return!1;for(var h=l;h--;){var y=u[h];if(!(a?y in t:Bg.call(t,y)))return!1}var d=o.get(e),g=o.get(t);if(d&&g)return d==t&&g==e;var m=!0;o.set(e,t),o.set(t,e);for(var w=a;++h<l;){y=u[h];var S=e[y],v=t[y];if(n)var C=a?n(v,S,y,t,e,o):n(S,v,y,e,t,o);if(!(C===void 0?S===v||i(S,v,r,n,o):C)){m=!1;break}w||(w=y=="constructor")}if(m&&!w){var Z=e.constructor,Fe=t.constructor;Z!=Fe&&"constructor"in e&&"constructor"in t&&!(typeof Z=="function"&&Z instanceof Z&&typeof Fe=="function"&&Fe instanceof Fe)&&(m=!1)}return o.delete(e),o.delete(t),m}pa.exports=Hg});var da=p((gT,ya)=>{s();var Kg=xe(),Yg=ve(),Vg=Kg(Yg,"DataView");ya.exports=Vg});var ga=p((ST,ma)=>{s();var Zg=xe(),Xg=ve(),Qg=Zg(Xg,"Promise");ma.exports=Qg});var yn=p((xT,wa)=>{s();var ew=xe(),tw=ve(),rw=ew(tw,"Set");wa.exports=rw});var va=p((bT,Sa)=>{s();var nw=xe(),iw=ve(),ow=nw(iw,"WeakMap");Sa.exports=ow});var Ta=p((ET,Oa)=>{s();var dn=da(),mn=Kt(),gn=ga(),wn=yn(),Sn=va(),Ca=Rt(),Ye=tn(),xa="[object Map]",sw="[object Object]",_a="[object Promise]",ba="[object Set]",qa="[object WeakMap]",Ea="[object DataView]",aw=Ye(dn),uw=Ye(mn),cw=Ye(gn),fw=Ye(wn),lw=Ye(Sn),je=Ca;(dn&&je(new dn(new ArrayBuffer(1)))!=Ea||mn&&je(new mn)!=xa||gn&&je(gn.resolve())!=_a||wn&&je(new wn)!=ba||Sn&&je(new Sn)!=qa)&&(je=function(e){var t=Ca(e),r=t==sw?e.constructor:void 0,n=r?Ye(r):"";if(n)switch(n){case aw:return Ea;case uw:return xa;case cw:return _a;case fw:return ba;case lw:return qa}return t});Oa.exports=je});var Na=p((OT,Ia)=>{s();var vn=rn(),pw=nn(),hw=gs(),yw=ha(),Pa=Ta(),Aa=de(),Fa=an(),dw=ln(),mw=1,La="[object Arguments]",Da="[object Array]",rr="[object Object]",gw=Object.prototype,ja=gw.hasOwnProperty;function ww(e,t,r,n,i,o){var a=Aa(e),u=Aa(t),l=a?Da:Pa(e),f=u?Da:Pa(t);l=l==La?rr:l,f=f==La?rr:f;var c=l==rr,h=f==rr,y=l==f;if(y&&Fa(e)){if(!Fa(t))return!1;a=!0,c=!1}if(y&&!c)return o||(o=new vn),a||dw(e)?pw(e,t,r,n,i,o):hw(e,t,l,r,n,i,o);if(!(r&mw)){var d=c&&ja.call(e,"__wrapped__"),g=h&&ja.call(t,"__wrapped__");if(d||g){var m=d?e.value():e,w=g?t.value():t;return o||(o=new vn),i(m,w,r,n,o)}}return y?(o||(o=new vn),yw(e,t,r,n,i,o)):!1}Ia.exports=ww});var xn=p((PT,ka)=>{s();var Sw=Na(),Ra=ct();function Ma(e,t,r,n,i){return e===t?!0:e==null||t==null||!Ra(e)&&!Ra(t)?e!==e&&t!==t:Sw(e,t,r,n,Ma,i)}ka.exports=Ma});var Ua=p((FT,$a)=>{s();var vw=rn(),xw=xn(),_w=1,bw=2;function qw(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 vw;if(n)var y=n(f,c,l,e,t,h);if(!(y===void 0?xw(c,f,_w|bw,n,h):y))return!1}}return!0}$a.exports=qw});var _n=p((DT,Wa)=>{s();var Ew=Ur();function Cw(e){return e===e&&!Ew(e)}Wa.exports=Cw});var za=p((IT,Ga)=>{s();var Ow=_n(),Tw=hn();function Pw(e){for(var t=Tw(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Ow(i)]}return t}Ga.exports=Pw});var bn=p((RT,Ja)=>{s();function Aw(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}Ja.exports=Aw});var Ha=p((kT,Ba)=>{s();var Fw=Ua(),Lw=za(),Dw=bn();function jw(e){var t=Lw(e);return t.length==1&&t[0][2]?Dw(t[0][0],t[0][1]):function(r){return r===e||Fw(r,e,t)}}Ba.exports=jw});var nr=p((UT,Ka)=>{s();var Iw=de(),Nw=Wr(),Rw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mw=/^\w*$/;function kw(e,t){if(Iw(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Nw(e)?!0:Mw.test(e)||!Rw.test(e)||t!=null&&e in Object(t)}Ka.exports=kw});var Za=p((GT,Va)=>{s();var Ya=Yt(),$w="Expected a function";function qn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError($w);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(qn.Cache||Ya),r}qn.Cache=Ya;Va.exports=qn});var Qa=p((JT,Xa)=>{s();var Uw=Za(),Ww=500;function Gw(e){var t=Uw(e,function(n){return r.size===Ww&&r.clear(),n}),r=t.cache;return t}Xa.exports=Gw});var tu=p((HT,eu)=>{s();var zw=Qa(),Jw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bw=/\\(\\)?/g,Hw=zw(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Jw,function(r,n,i,o){t.push(i?o.replace(Bw,"$1"):n||r)}),t});eu.exports=Hw});var En=p((YT,ru)=>{s();function Kw(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}ru.exports=Kw});var uu=p((ZT,au)=>{s();var nu=$r(),Yw=En(),Vw=de(),Zw=Wr(),Xw=1/0,iu=nu?nu.prototype:void 0,ou=iu?iu.toString:void 0;function su(e){if(typeof e=="string")return e;if(Vw(e))return Yw(e,su)+"";if(Zw(e))return ou?ou.call(e):"";var t=e+"";return t=="0"&&1/e==-Xw?"-0":t}au.exports=su});var fu=p((QT,cu)=>{s();var Qw=uu();function eS(e){return e==null?"":Qw(e)}cu.exports=eS});var Cn=p((t1,lu)=>{s();var tS=de(),rS=nr(),nS=tu(),iS=fu();function oS(e,t){return tS(e)?e:rS(e,t)?[e]:nS(iS(e))}lu.exports=oS});var bt=p((n1,pu)=>{s();var sS=Wr(),aS=1/0;function uS(e){if(typeof e=="string"||sS(e))return e;var t=e+"";return t=="0"&&1/e==-aS?"-0":t}pu.exports=uS});var On=p((o1,hu)=>{s();var cS=Cn(),fS=bt();function lS(e,t){t=cS(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[fS(t[r++])];return r&&r==n?e:void 0}hu.exports=lS});var du=p((a1,yu)=>{s();var pS=On();function hS(e,t,r){var n=e==null?void 0:pS(e,t);return n===void 0?r:n}yu.exports=hS});var gu=p((c1,mu)=>{s();function yS(e,t){return e!=null&&t in Object(e)}mu.exports=yS});var Su=p((l1,wu)=>{s();var dS=Cn(),mS=er(),gS=de(),wS=un(),SS=tr(),vS=bt();function xS(e,t,r){t=dS(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=vS(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&&SS(i)&&wS(a,i)&&(gS(e)||mS(e)))}wu.exports=xS});var xu=p((h1,vu)=>{s();var _S=gu(),bS=Su();function qS(e,t){return e!=null&&bS(e,t,_S)}vu.exports=qS});var bu=p((d1,_u)=>{s();var ES=xn(),CS=du(),OS=xu(),TS=nr(),PS=_n(),AS=bn(),FS=bt(),LS=1,DS=2;function jS(e,t){return TS(e)&&PS(t)?AS(FS(e),t):function(r){var n=CS(r,e);return n===void 0&&n===t?OS(r,e):ES(t,n,LS|DS)}}_u.exports=jS});var ir=p((g1,qu)=>{s();function IS(e){return e}qu.exports=IS});var Cu=p((S1,Eu)=>{s();function NS(e){return function(t){return t?.[e]}}Eu.exports=NS});var Tu=p((x1,Ou)=>{s();var RS=On();function MS(e){return function(t){return RS(t,e)}}Ou.exports=MS});var Au=p((b1,Pu)=>{s();var kS=Cu(),$S=Tu(),US=nr(),WS=bt();function GS(e){return US(e)?kS(WS(e)):$S(e)}Pu.exports=GS});var Lu=p((E1,Fu)=>{s();var zS=Ha(),JS=bu(),BS=ir(),HS=de(),KS=Au();function YS(e){return typeof e=="function"?e:e==null?BS:typeof e=="object"?HS(e)?JS(e[0],e[1]):zS(e):KS(e)}Fu.exports=YS});var ju=p((O1,Du)=>{s();function VS(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}Du.exports=VS});var Nu=p((P1,Iu)=>{s();function ZS(e){return e!==e}Iu.exports=ZS});var Mu=p((F1,Ru)=>{s();function XS(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}Ru.exports=XS});var $u=p((D1,ku)=>{s();var QS=ju(),ev=Nu(),tv=Mu();function rv(e,t,r){return t===t?tv(e,t,r):QS(e,ev,r)}ku.exports=rv});var Tn=p((I1,Uu)=>{s();var nv=$u();function iv(e,t){var r=e==null?0:e.length;return!!r&&nv(e,t,0)>-1}Uu.exports=iv});var Pn=p((R1,Wu)=>{s();function ov(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}Wu.exports=ov});var zu=p((k1,Gu)=>{s();function sv(){}Gu.exports=sv});var Bu=p((U1,Ju)=>{s();var An=yn(),av=zu(),uv=Qt(),cv=1/0,fv=An&&1/uv(new An([,-0]))[1]==cv?function(e){return new An(e)}:av;Ju.exports=fv});var Ku=p((G1,Hu)=>{s();var lv=Zt(),pv=Tn(),hv=Pn(),yv=Xt(),dv=Bu(),mv=Qt(),gv=200;function wv(e,t,r){var n=-1,i=pv,o=e.length,a=!0,u=[],l=u;if(r)a=!1,i=hv;else if(o>=gv){var f=t?null:dv(e);if(f)return mv(f);a=!1,i=yv,l=new lv}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 y=l.length;y--;)if(l[y]===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}Hu.exports=wv});var Vu=p((J1,Yu)=>{s();var Sv=Lu(),vv=Ku();function xv(e,t){return e&&e.length?vv(e,Sv(t,2)):[]}Yu.exports=xv});var Xu=p((H1,Zu)=>{s();var _v=Zt(),bv=Tn(),qv=Pn(),Ev=En(),Cv=cn(),Ov=Xt(),Tv=200;function Pv(e,t,r,n){var i=-1,o=bv,a=!0,u=e.length,l=[],f=t.length;if(!u)return l;r&&(t=Ev(t,Cv(r))),n?(o=qv,a=!1):t.length>=Tv&&(o=Ov,a=!1,t=new _v(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 y=f;y--;)if(t[y]===h)continue e;l.push(c)}else o(t,h,n)||l.push(c)}return l}Zu.exports=Pv});var rc=p((Y1,tc)=>{s();var Qu=$r(),Av=er(),Fv=de(),ec=Qu?Qu.isConcatSpreadable:void 0;function Lv(e){return Fv(e)||Av(e)||!!(ec&&e&&e[ec])}tc.exports=Lv});var oc=p((Z1,ic)=>{s();var Dv=sn(),jv=rc();function nc(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=jv),i||(i=[]);++o<a;){var u=e[o];t>0&&r(u)?t>1?nc(u,t-1,r,n,i):Dv(i,u):n||(i[i.length]=u)}return i}ic.exports=nc});var ac=p((Q1,sc)=>{s();function Iv(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)}sc.exports=Iv});var fc=p((tP,cc)=>{s();var Nv=ac(),uc=Math.max;function Rv(e,t,r){return t=uc(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=uc(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),Nv(e,this,u)}}cc.exports=Rv});var pc=p((nP,lc)=>{s();function Mv(e){return function(){return e}}lc.exports=Mv});var yc=p((oP,hc)=>{s();var kv=xe(),$v=(function(){try{var e=kv(Object,"defineProperty");return e({},"",{}),e}catch{}})();hc.exports=$v});var gc=p((aP,mc)=>{s();var Uv=pc(),dc=yc(),Wv=ir(),Gv=dc?function(e,t){return dc(e,"toString",{configurable:!0,enumerable:!1,value:Uv(t),writable:!0})}:Wv;mc.exports=Gv});var Sc=p((cP,wc)=>{s();var zv=800,Jv=16,Bv=Date.now;function Hv(e){var t=0,r=0;return function(){var n=Bv(),i=Jv-(n-r);if(r=n,i>0){if(++t>=zv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}wc.exports=Hv});var xc=p((lP,vc)=>{s();var Kv=gc(),Yv=Sc(),Vv=Yv(Kv);vc.exports=Vv});var bc=p((hP,_c)=>{s();var Zv=ir(),Xv=fc(),Qv=xc();function ex(e,t){return Qv(Xv(e,t,Zv),e+"")}_c.exports=ex});var Ec=p((dP,qc)=>{s();var tx=pn(),rx=ct();function nx(e){return rx(e)&&tx(e)}qc.exports=nx});var Tc=p((gP,Oc)=>{s();var ix=Xu(),ox=oc(),sx=bc(),Cc=Ec(),ax=sx(function(e,t){return Cc(e)?ix(e,ox(t,1,Cc,!0)):[]});Oc.exports=ax});var ae={};nh(ae,{__addDisposableResource:()=>tf,__assign:()=>or,__asyncDelegator:()=>Hc,__asyncGenerator:()=>Bc,__asyncValues:()=>Kc,__await:()=>Ve,__awaiter:()=>$c,__classPrivateFieldGet:()=>Xc,__classPrivateFieldIn:()=>ef,__classPrivateFieldSet:()=>Qc,__createBinding:()=>ar,__decorate:()=>Dc,__disposeResources:()=>rf,__esDecorate:()=>Ic,__exportStar:()=>Wc,__extends:()=>Fc,__generator:()=>Uc,__importDefault:()=>Zc,__importStar:()=>Vc,__makeTemplateObject:()=>Yc,__metadata:()=>kc,__param:()=>jc,__propKey:()=>Rc,__read:()=>jn,__rest:()=>Lc,__rewriteRelativeImportExtension:()=>nf,__runInitializers:()=>Nc,__setFunctionName:()=>Mc,__spread:()=>Gc,__spreadArray:()=>Jc,__spreadArrays:()=>zc,__values:()=>sr,default:()=>lx});function Fc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ln(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Lc(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 Dc(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 jc(e,t){return function(r,n){t(r,n,e)}}function Ic(e,t,r,n,i,o){function a(S){if(S!==void 0&&typeof S!="function")throw new TypeError("Function expected");return S}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,y=!1,d=r.length-1;d>=0;d--){var g={};for(var m in n)g[m]=m==="access"?{}:n[m];for(var m in n.access)g.access[m]=n.access[m];g.addInitializer=function(S){if(y)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(S||null))};var w=(0,r[d])(u==="accessor"?{get:c.get,set:c.set}:c[l],g);if(u==="accessor"){if(w===void 0)continue;if(w===null||typeof w!="object")throw new TypeError("Object expected");(h=a(w.get))&&(c.get=h),(h=a(w.set))&&(c.set=h),(h=a(w.init))&&i.unshift(h)}else(h=a(w))&&(u==="field"?i.unshift(h):c[l]=h)}f&&Object.defineProperty(f,n.name,c),y=!0}function Nc(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 Rc(e){return typeof e=="symbol"?e:"".concat(e)}function Mc(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 kc(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function $c(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 Uc(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 Wc(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ar(t,e,r)}function sr(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 jn(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 Gc(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(jn(arguments[t]));return e}function zc(){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 Jc(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 Ve(e){return this instanceof Ve?(this.v=e,this):new Ve(e)}function Bc(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(d){return function(g){return Promise.resolve(g).then(d,h)}}function u(d,g){n[d]&&(i[d]=function(m){return new Promise(function(w,S){o.push([d,m,w,S])>1||l(d,m)})},g&&(i[d]=g(i[d])))}function l(d,g){try{f(n[d](g))}catch(m){y(o[0][3],m)}}function f(d){d.value instanceof Ve?Promise.resolve(d.value.v).then(c,h):y(o[0][2],d)}function c(d){l("next",d)}function h(d){l("throw",d)}function y(d,g){d(g),o.shift(),o.length&&l(o[0][0],o[0][1])}}function Hc(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:Ve(e[i](a)),done:!1}:o?o(a):a}:o}}function Kc(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 sr=="function"?sr(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 Yc(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Vc(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"&&ar(t,e,r[n]);return cx(t,e),t}function Zc(e){return e&&e.__esModule?e:{default:e}}function Xc(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 Qc(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 ef(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 tf(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 rf(e){function t(o){e.error=e.hasError?new fx(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 nf(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 Ln,or,ar,cx,Dn,fx,lx,ue=rh(()=>{s();Ln=function(e,t){return Ln=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])},Ln(e,t)};or=function(){return or=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},or.apply(this,arguments)};ar=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]});cx=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)};fx=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};lx={__extends:Fc,__assign:or,__rest:Lc,__decorate:Dc,__param:jc,__esDecorate:Ic,__runInitializers:Nc,__propKey:Rc,__setFunctionName:Mc,__metadata:kc,__awaiter:$c,__generator:Uc,__createBinding:ar,__exportStar:Wc,__values:sr,__read:jn,__spread:Gc,__spreadArrays:zc,__spreadArray:Jc,__await:Ve,__asyncGenerator:Bc,__asyncDelegator:Hc,__asyncValues:Kc,__makeTemplateObject:Yc,__importStar:Vc,__importDefault:Zc,__classPrivateFieldGet:Xc,__classPrivateFieldSet:Qc,__classPrivateFieldIn:ef,__addDisposableResource:tf,__disposeResources:rf,__rewriteRelativeImportExtension:nf}});var of=p(Ze=>{"use strict";s();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.lowerCase=Ze.localeLowerCase=void 0;var px={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 hx(e,t){var r=px[t.toLowerCase()];return In(r?e.replace(r.regexp,function(n){return r.map[n]}):e)}Ze.localeLowerCase=hx;function In(e){return e.toLowerCase()}Ze.lowerCase=In});var Ie=p(ur=>{"use strict";s();Object.defineProperty(ur,"__esModule",{value:!0});ur.noCase=void 0;var yx=of(),dx=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],mx=/[^A-Z0-9]+/gi;function gx(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,n=r===void 0?dx:r,i=t.stripRegexp,o=i===void 0?mx:i,a=t.transform,u=a===void 0?yx.lowerCase:a,l=t.delimiter,f=l===void 0?" ":l,c=sf(sf(e,n,"$1\0$2"),o,"\0"),h=0,y=c.length;c.charAt(h)==="\0";)h++;for(;c.charAt(y-1)==="\0";)y--;return c.slice(h,y).split("\0").map(u).join(f)}ur.noCase=gx;function sf(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(n,i){return n.replace(i,r)},e)}});var Nn=p(_e=>{"use strict";s();Object.defineProperty(_e,"__esModule",{value:!0});_e.pascalCase=_e.pascalCaseTransformMerge=_e.pascalCaseTransform=void 0;var wx=(ue(),le(ae)),Sx=Ie();function af(e,t){var r=e.charAt(0),n=e.substr(1).toLowerCase();return t>0&&r>="0"&&r<="9"?"_"+r+n:""+r.toUpperCase()+n}_e.pascalCaseTransform=af;function vx(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}_e.pascalCaseTransformMerge=vx;function xx(e,t){return t===void 0&&(t={}),Sx.noCase(e,wx.__assign({delimiter:"",transform:af},t))}_e.pascalCase=xx});var cf=p(be=>{"use strict";s();Object.defineProperty(be,"__esModule",{value:!0});be.camelCase=be.camelCaseTransformMerge=be.camelCaseTransform=void 0;var _x=(ue(),le(ae)),Rn=Nn();function uf(e,t){return t===0?e.toLowerCase():Rn.pascalCaseTransform(e,t)}be.camelCaseTransform=uf;function bx(e,t){return t===0?e.toLowerCase():Rn.pascalCaseTransformMerge(e)}be.camelCaseTransformMerge=bx;function qx(e,t){return t===void 0&&(t={}),Rn.pascalCase(e,_x.__assign({transform:uf},t))}be.camelCase=qx});var Mn=p(cr=>{"use strict";s();Object.defineProperty(cr,"__esModule",{value:!0});cr.upperCaseFirst=void 0;function Ex(e){return e.charAt(0).toUpperCase()+e.substr(1)}cr.upperCaseFirst=Ex});var kn=p(Xe=>{"use strict";s();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.capitalCase=Xe.capitalCaseTransform=void 0;var Cx=(ue(),le(ae)),Ox=Ie(),Tx=Mn();function ff(e){return Tx.upperCaseFirst(e.toLowerCase())}Xe.capitalCaseTransform=ff;function Px(e,t){return t===void 0&&(t={}),Ox.noCase(e,Cx.__assign({delimiter:" ",transform:ff},t))}Xe.capitalCase=Px});var lf=p(Qe=>{"use strict";s();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.upperCase=Qe.localeUpperCase=void 0;var Ax={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 Fx(e,t){var r=Ax[t.toLowerCase()];return $n(r?e.replace(r.regexp,function(n){return r.map[n]}):e)}Qe.localeUpperCase=Fx;function $n(e){return e.toUpperCase()}Qe.upperCase=$n});var pf=p(fr=>{"use strict";s();Object.defineProperty(fr,"__esModule",{value:!0});fr.constantCase=void 0;var Lx=(ue(),le(ae)),Dx=Ie(),jx=lf();function Ix(e,t){return t===void 0&&(t={}),Dx.noCase(e,Lx.__assign({delimiter:"_",transform:jx.upperCase},t))}fr.constantCase=Ix});var qt=p(lr=>{"use strict";s();Object.defineProperty(lr,"__esModule",{value:!0});lr.dotCase=void 0;var Nx=(ue(),le(ae)),Rx=Ie();function Mx(e,t){return t===void 0&&(t={}),Rx.noCase(e,Nx.__assign({delimiter:"."},t))}lr.dotCase=Mx});var hf=p(pr=>{"use strict";s();Object.defineProperty(pr,"__esModule",{value:!0});pr.headerCase=void 0;var kx=(ue(),le(ae)),$x=kn();function Ux(e,t){return t===void 0&&(t={}),$x.capitalCase(e,kx.__assign({delimiter:"-"},t))}pr.headerCase=Ux});var yf=p(hr=>{"use strict";s();Object.defineProperty(hr,"__esModule",{value:!0});hr.paramCase=void 0;var Wx=(ue(),le(ae)),Gx=qt();function zx(e,t){return t===void 0&&(t={}),Gx.dotCase(e,Wx.__assign({delimiter:"-"},t))}hr.paramCase=zx});var df=p(yr=>{"use strict";s();Object.defineProperty(yr,"__esModule",{value:!0});yr.pathCase=void 0;var Jx=(ue(),le(ae)),Bx=qt();function Hx(e,t){return t===void 0&&(t={}),Bx.dotCase(e,Jx.__assign({delimiter:"/"},t))}yr.pathCase=Hx});var gf=p(et=>{"use strict";s();Object.defineProperty(et,"__esModule",{value:!0});et.sentenceCase=et.sentenceCaseTransform=void 0;var Kx=(ue(),le(ae)),Yx=Ie(),Vx=Mn();function mf(e,t){var r=e.toLowerCase();return t===0?Vx.upperCaseFirst(r):r}et.sentenceCaseTransform=mf;function Zx(e,t){return t===void 0&&(t={}),Yx.noCase(e,Kx.__assign({delimiter:" ",transform:mf},t))}et.sentenceCase=Zx});var wf=p(dr=>{"use strict";s();Object.defineProperty(dr,"__esModule",{value:!0});dr.snakeCase=void 0;var Xx=(ue(),le(ae)),Qx=qt();function e0(e,t){return t===void 0&&(t={}),Qx.dotCase(e,Xx.__assign({delimiter:"_"},t))}dr.snakeCase=e0});var Sf=p(oe=>{"use strict";s();Object.defineProperty(oe,"__esModule",{value:!0});var pe=(ue(),le(ae));pe.__exportStar(cf(),oe);pe.__exportStar(kn(),oe);pe.__exportStar(pf(),oe);pe.__exportStar(qt(),oe);pe.__exportStar(hf(),oe);pe.__exportStar(Ie(),oe);pe.__exportStar(yf(),oe);pe.__exportStar(Nn(),oe);pe.__exportStar(df(),oe);pe.__exportStar(gf(),oe);pe.__exportStar(wf(),oe)});var X=p(Wn=>{"use strict";s();Wn.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})};Wn.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 bf=p((OA,_f)=>{s();var qe=M("constants"),u0=process.cwd,gr=null,c0=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return gr||(gr=u0.call(process)),gr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Gn=process.chdir,process.chdir=function(e){gr=null,Gn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Gn));var Gn;_f.exports=f0;function f0(e){qe.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,y){y&&process.nextTick(y)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(c,h,y,d){d&&process.nextTick(d)},e.lchownSync=function(){}),c0==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:(function(c){function h(y,d,g){var m=Date.now(),w=0;c(y,d,function S(v){if(v&&(v.code==="EACCES"||v.code==="EPERM"||v.code==="EBUSY")&&Date.now()-m<6e4){setTimeout(function(){e.stat(d,function(C,Z){C&&C.code==="ENOENT"?c(y,d,S):g(v)})},w),w<100&&(w+=10);return}g&&g(v)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,c),h})(e.rename)),e.read=typeof e.read!="function"?e.read:(function(c){function h(y,d,g,m,w,S){var v;if(S&&typeof S=="function"){var C=0;v=function(Z,Fe,yi){if(Z&&Z.code==="EAGAIN"&&C<10)return C++,c.call(e,y,d,g,m,w,v);S.apply(this,arguments)}}return c.call(e,y,d,g,m,w,v)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,c),h})(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:(function(c){return function(h,y,d,g,m){for(var w=0;;)try{return c.call(e,h,y,d,g,m)}catch(S){if(S.code==="EAGAIN"&&w<10){w++;continue}throw S}}})(e.readSync);function t(c){c.lchmod=function(h,y,d){c.open(h,qe.O_WRONLY|qe.O_SYMLINK,y,function(g,m){if(g){d&&d(g);return}c.fchmod(m,y,function(w){c.close(m,function(S){d&&d(w||S)})})})},c.lchmodSync=function(h,y){var d=c.openSync(h,qe.O_WRONLY|qe.O_SYMLINK,y),g=!0,m;try{m=c.fchmodSync(d,y),g=!1}finally{if(g)try{c.closeSync(d)}catch{}else c.closeSync(d)}return m}}function r(c){qe.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(h,y,d,g){c.open(h,qe.O_SYMLINK,function(m,w){if(m){g&&g(m);return}c.futimes(w,y,d,function(S){c.close(w,function(v){g&&g(S||v)})})})},c.lutimesSync=function(h,y,d){var g=c.openSync(h,qe.O_SYMLINK),m,w=!0;try{m=c.futimesSync(g,y,d),w=!1}finally{if(w)try{c.closeSync(g)}catch{}else c.closeSync(g)}return m}):c.futimes&&(c.lutimes=function(h,y,d,g){g&&process.nextTick(g)},c.lutimesSync=function(){})}function n(c){return c&&function(h,y,d){return c.call(e,h,y,function(g){f(g)&&(g=null),d&&d.apply(this,arguments)})}}function i(c){return c&&function(h,y){try{return c.call(e,h,y)}catch(d){if(!f(d))throw d}}}function o(c){return c&&function(h,y,d,g){return c.call(e,h,y,d,function(m){f(m)&&(m=null),g&&g.apply(this,arguments)})}}function a(c){return c&&function(h,y,d){try{return c.call(e,h,y,d)}catch(g){if(!f(g))throw g}}}function u(c){return c&&function(h,y,d){typeof y=="function"&&(d=y,y=null);function g(m,w){w&&(w.uid<0&&(w.uid+=4294967296),w.gid<0&&(w.gid+=4294967296)),d&&d.apply(this,arguments)}return y?c.call(e,h,y,g):c.call(e,h,g)}}function l(c){return c&&function(h,y){var d=y?c.call(e,h,y):c.call(e,h);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}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 Cf=p((PA,Ef)=>{s();var qf=M("stream").Stream;Ef.exports=l0;function l0(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);qf.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);qf.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 Tf=p((FA,Of)=>{"use strict";s();Of.exports=h0;var p0=Object.getPrototypeOf||function(e){return e.__proto__};function h0(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:p0(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var Q=p((DA,Bn)=>{s();var I=M("fs"),y0=bf(),d0=Cf(),m0=Tf(),wr=M("util"),z,vr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(z=Symbol.for("graceful-fs.queue"),vr=Symbol.for("graceful-fs.previous")):(z="___graceful-fs.queue",vr="___graceful-fs.previous");function g0(){}function Ff(e,t){Object.defineProperty(e,z,{get:function(){return t}})}var Ne=g0;wr.debuglog?Ne=wr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ne=function(){var e=wr.format.apply(wr,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
2
|
+
GFS4: `),console.error(e)});I[z]||(Pf=global[z]||[],Ff(I,Pf),I.close=(function(e){function t(r,n){return e.call(I,r,function(i){i||Af(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,vr,{value:e}),t})(I.close),I.closeSync=(function(e){function t(r){e.apply(I,arguments),Af()}return Object.defineProperty(t,vr,{value:e}),t})(I.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ne(I[z]),M("assert").equal(I[z].length,0)}));var Pf;global[z]||Ff(global,I[z]);Bn.exports=zn(m0(I));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!I.__patched&&(Bn.exports=zn(I),I.__patched=!0);function zn(e){y0(e),e.gracefulify=zn,e.createReadStream=Fe,e.createWriteStream=yi;var t=e.readFile;e.readFile=r;function r(x,E,b){return typeof E=="function"&&(b=E,E=null),U(x,E,b);function U(W,k,D,N){return t(W,k,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?tt([U,[W,k,D],T,N||Date.now(),Date.now()]):typeof D=="function"&&D.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(x,E,b,U){return typeof b=="function"&&(U=b,b=null),W(x,E,b,U);function W(k,D,N,T,G){return n(k,D,N,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?tt([W,[k,D,N,T],F,G||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=a);function a(x,E,b,U){return typeof b=="function"&&(U=b,b=null),W(x,E,b,U);function W(k,D,N,T,G){return o(k,D,N,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?tt([W,[k,D,N,T],F,G||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var u=e.copyFile;u&&(e.copyFile=l);function l(x,E,b,U){return typeof b=="function"&&(U=b,b=0),W(x,E,b,U);function W(k,D,N,T,G){return u(k,D,N,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?tt([W,[k,D,N,T],F,G||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,E,b){typeof E=="function"&&(b=E,E=null);var U=c.test(process.version)?function(D,N,T,G){return f(D,W(D,N,T,G))}:function(D,N,T,G){return f(D,N,W(D,N,T,G))};return U(x,E,b);function W(k,D,N,T){return function(G,F){G&&(G.code==="EMFILE"||G.code==="ENFILE")?tt([U,[k,D,N],G,T||Date.now(),Date.now()]):(F&&F.sort&&F.sort(),typeof N=="function"&&N.call(this,G,F))}}}if(process.version.substr(0,4)==="v0.8"){var y=d0(e);S=y.ReadStream,C=y.WriteStream}var d=e.ReadStream;d&&(S.prototype=Object.create(d.prototype),S.prototype.open=v);var g=e.WriteStream;g&&(C.prototype=Object.create(g.prototype),C.prototype.open=Z),Object.defineProperty(e,"ReadStream",{get:function(){return S},set:function(x){S=x},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return C},set:function(x){C=x},enumerable:!0,configurable:!0});var m=S;Object.defineProperty(e,"FileReadStream",{get:function(){return m},set:function(x){m=x},enumerable:!0,configurable:!0});var w=C;Object.defineProperty(e,"FileWriteStream",{get:function(){return w},set:function(x){w=x},enumerable:!0,configurable:!0});function S(x,E){return this instanceof S?(d.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function v(){var x=this;Rr(x.path,x.flags,x.mode,function(E,b){E?(x.autoClose&&x.destroy(),x.emit("error",E)):(x.fd=b,x.emit("open",b),x.read())})}function C(x,E){return this instanceof C?(g.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function Z(){var x=this;Rr(x.path,x.flags,x.mode,function(E,b){E?(x.destroy(),x.emit("error",E)):(x.fd=b,x.emit("open",b))})}function Fe(x,E){return new e.ReadStream(x,E)}function yi(x,E){return new e.WriteStream(x,E)}var th=e.open;e.open=Rr;function Rr(x,E,b,U){return typeof b=="function"&&(U=b,b=null),W(x,E,b,U);function W(k,D,N,T,G){return th(k,D,N,function(F,Aq){F&&(F.code==="EMFILE"||F.code==="ENFILE")?tt([W,[k,D,N,T],F,G||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}return e}function tt(e){Ne("ENQUEUE",e[0].name,e[1]),I[z].push(e),Jn()}var Sr;function Af(){for(var e=Date.now(),t=0;t<I[z].length;++t)I[z][t].length>2&&(I[z][t][3]=e,I[z][t][4]=e);Jn()}function Jn(){if(clearTimeout(Sr),Sr=void 0,I[z].length!==0){var e=I[z].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(i===void 0)Ne("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Ne("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?(Ne("RETRY",t.name,r),t.apply(null,r.concat([i]))):I[z].push(e)}Sr===void 0&&(Sr=setTimeout(Jn,0))}}});var rt=p(we=>{"use strict";s();var Lf=X().fromCallback,K=Q(),w0=["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 K[e]=="function");Object.assign(we,K);w0.forEach(e=>{we[e]=Lf(K[e])});we.exists=function(e,t){return typeof t=="function"?K.exists(e,t):new Promise(r=>K.exists(e,r))};we.read=function(e,t,r,n,i,o){return typeof o=="function"?K.read(e,t,r,n,i,o):new Promise((a,u)=>{K.read(e,t,r,n,i,(l,f,c)=>{if(l)return u(l);a({bytesRead:f,buffer:c})})})};we.write=function(e,t,...r){return typeof r[r.length-1]=="function"?K.write(e,t,...r):new Promise((n,i)=>{K.write(e,t,...r,(o,a,u)=>{if(o)return i(o);n({bytesWritten:a,buffer:u})})})};we.readv=function(e,t,...r){return typeof r[r.length-1]=="function"?K.readv(e,t,...r):new Promise((n,i)=>{K.readv(e,t,...r,(o,a,u)=>{if(o)return i(o);n({bytesRead:a,buffers:u})})})};we.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?K.writev(e,t,...r):new Promise((n,i)=>{K.writev(e,t,...r,(o,a,u)=>{if(o)return i(o);n({bytesWritten:a,buffers:u})})})};typeof K.realpath.native=="function"?we.realpath.native=Lf(K.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var jf=p((RA,Df)=>{"use strict";s();var S0=M("path");Df.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(S0.parse(t).root,""))){let n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}}});var Mf=p((kA,Hn)=>{"use strict";s();var If=rt(),{checkPath:Nf}=jf(),Rf=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};Hn.exports.makeDir=async(e,t)=>(Nf(e),If.mkdir(e,{mode:Rf(t),recursive:!0}));Hn.exports.makeDirSync=(e,t)=>(Nf(e),If.mkdirSync(e,{mode:Rf(t),recursive:!0}))});var he=p((UA,kf)=>{"use strict";s();var v0=X().fromPromise,{makeDir:x0,makeDirSync:Kn}=Mf(),Yn=v0(x0);kf.exports={mkdirs:Yn,mkdirsSync:Kn,mkdirp:Yn,mkdirpSync:Kn,ensureDir:Yn,ensureDirSync:Kn}});var Ee=p((GA,Uf)=>{"use strict";s();var _0=X().fromPromise,$f=rt();function b0(e){return $f.access(e).then(()=>!0).catch(()=>!1)}Uf.exports={pathExists:_0(b0),pathExistsSync:$f.existsSync}});var Vn=p((JA,Wf)=>{"use strict";s();var nt=Q();function q0(e,t,r,n){nt.open(e,"r+",(i,o)=>{if(i)return n(i);nt.futimes(o,t,r,a=>{nt.close(o,u=>{n&&n(a||u)})})})}function E0(e,t,r){let n=nt.openSync(e,"r+");return nt.futimesSync(n,t,r),nt.closeSync(n)}Wf.exports={utimesMillis:q0,utimesMillisSync:E0}});var Re=p((HA,Jf)=>{"use strict";s();var it=rt(),$=M("path"),C0=M("util");function O0(e,t,r){let n=r.dereference?i=>it.stat(i,{bigint:!0}):i=>it.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 T0(e,t,r){let n,i=r.dereference?a=>it.statSync(a,{bigint:!0}):a=>it.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 P0(e,t,r,n,i){C0.callbackify(O0)(e,t,n,(o,a)=>{if(o)return i(o);let{srcStat:u,destStat:l}=a;if(l){if(Et(u,l)){let f=$.basename(e),c=$.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()&&Zn(e,t)?i(new Error(xr(e,t,r))):i(null,{srcStat:u,destStat:l})})}function A0(e,t,r,n){let{srcStat:i,destStat:o}=T0(e,t,n);if(o){if(Et(i,o)){let a=$.basename(e),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()&&Zn(e,t))throw new Error(xr(e,t,r));return{srcStat:i,destStat:o}}function Gf(e,t,r,n,i){let o=$.resolve($.dirname(e)),a=$.resolve($.dirname(r));if(a===o||a===$.parse(a).root)return i();it.stat(a,{bigint:!0},(u,l)=>u?u.code==="ENOENT"?i():i(u):Et(t,l)?i(new Error(xr(e,r,n))):Gf(e,t,a,n,i))}function zf(e,t,r,n){let i=$.resolve($.dirname(e)),o=$.resolve($.dirname(r));if(o===i||o===$.parse(o).root)return;let a;try{a=it.statSync(o,{bigint:!0})}catch(u){if(u.code==="ENOENT")return;throw u}if(Et(t,a))throw new Error(xr(e,r,n));return zf(e,t,o,n)}function Et(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function Zn(e,t){let r=$.resolve(e).split($.sep).filter(i=>i),n=$.resolve(t).split($.sep).filter(i=>i);return r.reduce((i,o,a)=>i&&n[a]===o,!0)}function xr(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}Jf.exports={checkPaths:P0,checkPathsSync:A0,checkParentPaths:Gf,checkParentPathsSync:zf,isSrcSubdir:Zn,areIdentical:Et}});var Zf=p((YA,Vf)=>{"use strict";s();var ee=Q(),Ct=M("path"),F0=he().mkdirs,L0=Ee().pathExists,D0=Vn().utimesMillis,Ot=Re();function j0(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"),Ot.checkPaths(e,t,"copy",r,(i,o)=>{if(i)return n(i);let{srcStat:a,destStat:u}=o;Ot.checkParentPaths(e,a,t,"copy",l=>{if(l)return n(l);Hf(e,t,r,(f,c)=>{if(f)return n(f);if(!c)return n();I0(u,e,t,r,n)})})})}function I0(e,t,r,n,i){let o=Ct.dirname(r);L0(o,(a,u)=>{if(a)return i(a);if(u)return Xn(e,t,r,n,i);F0(o,l=>l?i(l):Xn(e,t,r,n,i))})}function Hf(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 Xn(e,t,r,n,i){(n.dereference?ee.stat:ee.lstat)(t,(a,u)=>a?i(a):u.isDirectory()?W0(u,e,t,r,n,i):u.isFile()||u.isCharacterDevice()||u.isBlockDevice()?N0(u,e,t,r,n,i):u.isSymbolicLink()?J0(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 N0(e,t,r,n,i,o){return t?R0(e,r,n,i,o):Kf(e,r,n,i,o)}function R0(e,t,r,n,i){if(n.overwrite)ee.unlink(r,o=>o?i(o):Kf(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Kf(e,t,r,n,i){ee.copyFile(t,r,o=>o?i(o):n.preserveTimestamps?M0(e.mode,t,r,i):_r(r,e.mode,i))}function M0(e,t,r,n){return k0(e)?$0(r,e,i=>i?n(i):Bf(e,t,r,n)):Bf(e,t,r,n)}function k0(e){return(e&128)===0}function $0(e,t,r){return _r(e,t|128,r)}function Bf(e,t,r,n){U0(t,r,i=>i?n(i):_r(r,e,n))}function _r(e,t,r){return ee.chmod(e,t,r)}function U0(e,t,r){ee.stat(e,(n,i)=>n?r(n):D0(t,i.atime,i.mtime,r))}function W0(e,t,r,n,i,o){return t?Yf(r,n,i,o):G0(e.mode,r,n,i,o)}function G0(e,t,r,n,i){ee.mkdir(r,o=>{if(o)return i(o);Yf(t,r,n,a=>a?i(a):_r(r,e,i))})}function Yf(e,t,r,n){ee.readdir(e,(i,o)=>i?n(i):Qn(o,e,t,r,n))}function Qn(e,t,r,n,i){let o=e.pop();return o?z0(e,o,t,r,n,i):i()}function z0(e,t,r,n,i,o){let a=Ct.join(r,t),u=Ct.join(n,t);Hf(a,u,i,(l,f)=>{if(l)return o(l);if(!f)return Qn(e,r,n,i,o);Ot.checkPaths(a,u,"copy",i,(c,h)=>{if(c)return o(c);let{destStat:y}=h;Xn(y,a,u,i,d=>d?o(d):Qn(e,r,n,i,o))})})}function J0(e,t,r,n,i){ee.readlink(t,(o,a)=>{if(o)return i(o);if(n.dereference&&(a=Ct.resolve(process.cwd(),a)),e)ee.readlink(r,(u,l)=>u?u.code==="EINVAL"||u.code==="UNKNOWN"?ee.symlink(a,r,i):i(u):(n.dereference&&(l=Ct.resolve(process.cwd(),l)),Ot.isSrcSubdir(a,l)?i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${l}'.`)):Ot.isSrcSubdir(l,a)?i(new Error(`Cannot overwrite '${l}' with '${a}'.`)):B0(a,r,i)));else return ee.symlink(a,r,i)})}function B0(e,t,r){ee.unlink(t,n=>n?r(n):ee.symlink(e,t,r))}Vf.exports=j0});var rl=p((ZA,tl)=>{"use strict";s();var Y=Q(),Tt=M("path"),H0=he().mkdirsSync,K0=Vn().utimesMillisSync,Pt=Re();function Y0(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}=Pt.checkPathsSync(e,t,"copy",r);if(Pt.checkParentPathsSync(e,n,t,"copy"),r.filter&&!r.filter(e,t))return;let o=Tt.dirname(t);return Y.existsSync(o)||H0(o),Xf(i,e,t,r)}function Xf(e,t,r,n){let o=(n.dereference?Y.statSync:Y.lstatSync)(t);if(o.isDirectory())return r_(o,e,t,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return V0(o,e,t,r,n);if(o.isSymbolicLink())return o_(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 V0(e,t,r,n,i){return t?Z0(e,r,n,i):Qf(e,r,n,i)}function Z0(e,t,r,n){if(n.overwrite)return Y.unlinkSync(r),Qf(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Qf(e,t,r,n){return Y.copyFileSync(t,r),n.preserveTimestamps&&X0(e.mode,t,r),ei(r,e.mode)}function X0(e,t,r){return Q0(e)&&e_(r,e),t_(t,r)}function Q0(e){return(e&128)===0}function e_(e,t){return ei(e,t|128)}function ei(e,t){return Y.chmodSync(e,t)}function t_(e,t){let r=Y.statSync(e);return K0(t,r.atime,r.mtime)}function r_(e,t,r,n,i){return t?el(r,n,i):n_(e.mode,r,n,i)}function n_(e,t,r,n){return Y.mkdirSync(r),el(t,r,n),ei(r,e)}function el(e,t,r){Y.readdirSync(e).forEach(n=>i_(n,e,t,r))}function i_(e,t,r,n){let i=Tt.join(t,e),o=Tt.join(r,e);if(n.filter&&!n.filter(i,o))return;let{destStat:a}=Pt.checkPathsSync(i,o,"copy",n);return Xf(a,i,o,n)}function o_(e,t,r,n){let i=Y.readlinkSync(t);if(n.dereference&&(i=Tt.resolve(process.cwd(),i)),e){let o;try{o=Y.readlinkSync(r)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return Y.symlinkSync(i,r);throw a}if(n.dereference&&(o=Tt.resolve(process.cwd(),o)),Pt.isSrcSubdir(i,o))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);if(Pt.isSrcSubdir(o,i))throw new Error(`Cannot overwrite '${o}' with '${i}'.`);return s_(i,r)}else return Y.symlinkSync(i,r)}function s_(e,t){return Y.unlinkSync(t),Y.symlinkSync(e,t)}tl.exports=Y0});var br=p((QA,nl)=>{"use strict";s();var a_=X().fromCallback;nl.exports={copy:a_(Zf()),copySync:rl()}});var At=p((tF,ol)=>{"use strict";s();var il=Q(),u_=X().fromCallback;function c_(e,t){il.rm(e,{recursive:!0,force:!0},t)}function f_(e){il.rmSync(e,{recursive:!0,force:!0})}ol.exports={remove:u_(c_),removeSync:f_}});var hl=p((nF,pl)=>{"use strict";s();var l_=X().fromPromise,ul=rt(),cl=M("path"),fl=he(),ll=At(),sl=l_(async function(t){let r;try{r=await ul.readdir(t)}catch{return fl.mkdirs(t)}return Promise.all(r.map(n=>ll.remove(cl.join(t,n))))});function al(e){let t;try{t=ul.readdirSync(e)}catch{return fl.mkdirsSync(e)}t.forEach(r=>{r=cl.join(e,r),ll.removeSync(r)})}pl.exports={emptyDirSync:al,emptydirSync:al,emptyDir:sl,emptydir:sl}});var gl=p((oF,ml)=>{"use strict";s();var p_=X().fromCallback,yl=M("path"),Ce=Q(),dl=he();function h_(e,t){function r(){Ce.writeFile(e,"",n=>{if(n)return t(n);t()})}Ce.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let o=yl.dirname(e);Ce.stat(o,(a,u)=>{if(a)return a.code==="ENOENT"?dl.mkdirs(o,l=>{if(l)return t(l);r()}):t(a);u.isDirectory()?r():Ce.readdir(o,l=>{if(l)return t(l)})})})}function y_(e){let t;try{t=Ce.statSync(e)}catch{}if(t&&t.isFile())return;let r=yl.dirname(e);try{Ce.statSync(r).isDirectory()||Ce.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")dl.mkdirsSync(r);else throw n}Ce.writeFileSync(e,"")}ml.exports={createFile:p_(h_),createFileSync:y_}});var _l=p((aF,xl)=>{"use strict";s();var d_=X().fromCallback,wl=M("path"),Oe=Q(),Sl=he(),m_=Ee().pathExists,{areIdentical:vl}=Re();function g_(e,t,r){function n(i,o){Oe.link(i,o,a=>{if(a)return r(a);r(null)})}Oe.lstat(t,(i,o)=>{Oe.lstat(e,(a,u)=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),r(a);if(o&&vl(u,o))return r(null);let l=wl.dirname(t);m_(l,(f,c)=>{if(f)return r(f);if(c)return n(e,t);Sl.mkdirs(l,h=>{if(h)return r(h);n(e,t)})})})})}function w_(e,t){let r;try{r=Oe.lstatSync(t)}catch{}try{let o=Oe.lstatSync(e);if(r&&vl(o,r))return}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let n=wl.dirname(t);return Oe.existsSync(n)||Sl.mkdirsSync(n),Oe.linkSync(e,t)}xl.exports={createLink:d_(g_),createLinkSync:w_}});var ql=p((cF,bl)=>{"use strict";s();var Te=M("path"),Ft=Q(),S_=Ee().pathExists;function v_(e,t,r){if(Te.isAbsolute(e))return Ft.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=Te.dirname(t),i=Te.join(n,e);return S_(i,(o,a)=>o?r(o):a?r(null,{toCwd:i,toDst:e}):Ft.lstat(e,u=>u?(u.message=u.message.replace("lstat","ensureSymlink"),r(u)):r(null,{toCwd:e,toDst:Te.relative(n,e)})))}}function x_(e,t){let r;if(Te.isAbsolute(e)){if(r=Ft.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=Te.dirname(t),i=Te.join(n,e);if(r=Ft.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Ft.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Te.relative(n,e)}}}bl.exports={symlinkPaths:v_,symlinkPathsSync:x_}});var Ol=p((lF,Cl)=>{"use strict";s();var El=Q();function __(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);El.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function b_(e,t){let r;if(t)return t;try{r=El.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Cl.exports={symlinkType:__,symlinkTypeSync:b_}});var Il=p((hF,jl)=>{"use strict";s();var q_=X().fromCallback,Pl=M("path"),ye=rt(),Al=he(),E_=Al.mkdirs,C_=Al.mkdirsSync,Fl=ql(),O_=Fl.symlinkPaths,T_=Fl.symlinkPathsSync,Ll=Ol(),P_=Ll.symlinkType,A_=Ll.symlinkTypeSync,F_=Ee().pathExists,{areIdentical:Dl}=Re();function L_(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,ye.lstat(t,(i,o)=>{!i&&o.isSymbolicLink()?Promise.all([ye.stat(e),ye.stat(t)]).then(([a,u])=>{if(Dl(a,u))return n(null);Tl(e,t,r,n)}):Tl(e,t,r,n)})}function Tl(e,t,r,n){O_(e,t,(i,o)=>{if(i)return n(i);e=o.toDst,P_(o.toCwd,r,(a,u)=>{if(a)return n(a);let l=Pl.dirname(t);F_(l,(f,c)=>{if(f)return n(f);if(c)return ye.symlink(e,t,u,n);E_(l,h=>{if(h)return n(h);ye.symlink(e,t,u,n)})})})})}function D_(e,t,r){let n;try{n=ye.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){let u=ye.statSync(e),l=ye.statSync(t);if(Dl(u,l))return}let i=T_(e,t);e=i.toDst,r=A_(i.toCwd,r);let o=Pl.dirname(t);return ye.existsSync(o)||C_(o),ye.symlinkSync(e,t,r)}jl.exports={createSymlink:q_(L_),createSymlinkSync:D_}});var Gl=p((dF,Wl)=>{"use strict";s();var{createFile:Nl,createFileSync:Rl}=gl(),{createLink:Ml,createLinkSync:kl}=_l(),{createSymlink:$l,createSymlinkSync:Ul}=Il();Wl.exports={createFile:Nl,createFileSync:Rl,ensureFile:Nl,ensureFileSync:Rl,createLink:Ml,createLinkSync:kl,ensureLink:Ml,ensureLinkSync:kl,createSymlink:$l,createSymlinkSync:Ul,ensureSymlink:$l,ensureSymlinkSync:Ul}});var qr=p((gF,zl)=>{s();function j_(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 I_(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}zl.exports={stringify:j_,stripBom:I_}});var Kl=p((SF,Hl)=>{s();var ot;try{ot=Q()}catch{ot=M("fs")}var Er=X(),{stringify:Jl,stripBom:Bl}=qr();async function N_(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||ot,n="throws"in t?t.throws:!0,i=await Er.fromCallback(r.readFile)(e,t);i=Bl(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 R_=Er.fromPromise(N_);function M_(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||ot,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=Bl(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function k_(e,t,r={}){let n=r.fs||ot,i=Jl(t,r);await Er.fromCallback(n.writeFile)(e,i,r)}var $_=Er.fromPromise(k_);function U_(e,t,r={}){let n=r.fs||ot,i=Jl(t,r);return n.writeFileSync(e,i,r)}Hl.exports={readFile:R_,readFileSync:M_,writeFile:$_,writeFileSync:U_}});var Vl=p((xF,Yl)=>{"use strict";s();var Cr=Kl();Yl.exports={readJson:Cr.readFile,readJsonSync:Cr.readFileSync,writeJson:Cr.writeFile,writeJsonSync:Cr.writeFileSync}});var Or=p((bF,Ql)=>{"use strict";s();var W_=X().fromCallback,Lt=Q(),Zl=M("path"),Xl=he(),G_=Ee().pathExists;function z_(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Zl.dirname(e);G_(i,(o,a)=>{if(o)return n(o);if(a)return Lt.writeFile(e,t,r,n);Xl.mkdirs(i,u=>{if(u)return n(u);Lt.writeFile(e,t,r,n)})})}function J_(e,...t){let r=Zl.dirname(e);if(Lt.existsSync(r))return Lt.writeFileSync(e,...t);Xl.mkdirsSync(r),Lt.writeFileSync(e,...t)}Ql.exports={outputFile:W_(z_),outputFileSync:J_}});var tp=p((EF,ep)=>{"use strict";s();var{stringify:B_}=qr(),{outputFile:H_}=Or();async function K_(e,t,r={}){let n=B_(t,r);await H_(e,n,r)}ep.exports=K_});var np=p((OF,rp)=>{"use strict";s();var{stringify:Y_}=qr(),{outputFileSync:V_}=Or();function Z_(e,t,r){let n=Y_(t,r);V_(e,n,r)}rp.exports=Z_});var op=p((PF,ip)=>{"use strict";s();var X_=X().fromPromise,V=Vl();V.outputJson=X_(tp());V.outputJsonSync=np();V.outputJSON=V.outputJson;V.outputJSONSync=V.outputJsonSync;V.writeJSON=V.writeJson;V.writeJSONSync=V.writeJsonSync;V.readJSON=V.readJson;V.readJSONSync=V.readJsonSync;ip.exports=V});var fp=p((FF,cp)=>{"use strict";s();var Q_=Q(),ri=M("path"),eb=br().copy,up=At().remove,tb=he().mkdirp,rb=Ee().pathExists,sp=Re();function nb(e,t,r,n){typeof r=="function"&&(n=r,r={}),r=r||{};let i=r.overwrite||r.clobber||!1;sp.checkPaths(e,t,"move",r,(o,a)=>{if(o)return n(o);let{srcStat:u,isChangingCase:l=!1}=a;sp.checkParentPaths(e,u,t,"move",f=>{if(f)return n(f);if(ib(t))return ap(e,t,i,l,n);tb(ri.dirname(t),c=>c?n(c):ap(e,t,i,l,n))})})}function ib(e){let t=ri.dirname(e);return ri.parse(t).root===t}function ap(e,t,r,n,i){if(n)return ti(e,t,r,i);if(r)return up(t,o=>o?i(o):ti(e,t,r,i));rb(t,(o,a)=>o?i(o):a?i(new Error("dest already exists.")):ti(e,t,r,i))}function ti(e,t,r,n){Q_.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):ob(e,t,r,n):n())}function ob(e,t,r,n){eb(e,t,{overwrite:r,errorOnExist:!0},o=>o?n(o):up(e,n))}cp.exports=nb});var dp=p((DF,yp)=>{"use strict";s();var pp=Q(),ii=M("path"),sb=br().copySync,hp=At().removeSync,ab=he().mkdirpSync,lp=Re();function ub(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:o=!1}=lp.checkPathsSync(e,t,"move",r);return lp.checkParentPathsSync(e,i,t,"move"),cb(t)||ab(ii.dirname(t)),fb(e,t,n,o)}function cb(e){let t=ii.dirname(e);return ii.parse(t).root===t}function fb(e,t,r,n){if(n)return ni(e,t,r);if(r)return hp(t),ni(e,t,r);if(pp.existsSync(t))throw new Error("dest already exists.");return ni(e,t,r)}function ni(e,t,r){try{pp.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return lb(e,t,r)}}function lb(e,t,r){return sb(e,t,{overwrite:r,errorOnExist:!0}),hp(e)}yp.exports=ub});var gp=p((IF,mp)=>{"use strict";s();var pb=X().fromCallback;mp.exports={move:pb(fp()),moveSync:dp()}});s();s();s();import{realpathSync as ch}from"fs";var Mt;function Jr(e=process.argv){try{if(Mt!==void 0&&!se())return Mt;let t=xi()??vi(),r=fh(t);if(!r)return!0;let n=e[1]??"";return n?(Mt=!Si(r.trim(),n),Mt):!0}catch{return!1}}async function Iq(e){let{outputInfo:t}=await import("./output-LEOB5LAM.js"),{exec:r}=await import("./system-J4CTESP5.js"),{jsonOutputEnabled:n}=await import("./environment-5P7JJ3GI.js"),i=e==="yarn"?["global","add","@shopify/cli@latest"]:["install","-g","@shopify/cli@latest"];t(`Running ${e} ${i.join(" ")}...`),await r(e,i,n()?{}:{stdio:"inherit"})}function Nq(e=process.env){return e.SHOPIFY_HOMEBREW_FORMULA??"shopify-cli"}async function Rq(){let{terminalSupportsPrompting:e}=await import("./system-J4CTESP5.js");if(!e())return{install:!1,alreadyInstalled:!1};let{globalCLIVersion:t}=await import("./version-2YL4YEQ2.js");if(await t())return{install:!1,alreadyInstalled:!0};let{renderSelectPrompt:r}=await import("./ui-YDUI56E3.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 Mq(e=process.argv,t=process.env){if(!Jr(e))return"unknown";if(t.SHOPIFY_HOMEBREW_FORMULA)return"homebrew";let r=e[1]??"",n=r.toLowerCase(),i=n;try{i=ch(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 fh(e){let t=["shopify.app{,.*}.toml","hydrogen.config.js","hydrogen.config.ts"],r=n=>{let i=qi(t.map(o=>ut(n,o)));return i.length>0?i[0]:void 0};try{let n=Ei(r,{cwd:e,type:"file"});if(n)return gi(n)}catch{return}}s();s();s();import Br from"node:process";var q="\x1B[",lt="\x1B]",ke="\x07",ft=";",Hr=typeof window<"u"&&typeof window.document<"u",Ci=!Hr&&Br.env.TERM_PROGRAM==="Apple_Terminal",lh=!Hr&&Br.platform==="win32",ph=Hr?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:Br.cwd,_={};_.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?q+(e+1)+"G":q+(t+1)+ft+(e+1)+"H"};_.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=q+-e+"D":e>0&&(r+=q+e+"C"),t<0?r+=q+-t+"A":t>0&&(r+=q+t+"B"),r};_.cursorUp=(e=1)=>q+e+"A";_.cursorDown=(e=1)=>q+e+"B";_.cursorForward=(e=1)=>q+e+"C";_.cursorBackward=(e=1)=>q+e+"D";_.cursorLeft=q+"G";_.cursorSavePosition=Ci?"\x1B7":q+"s";_.cursorRestorePosition=Ci?"\x1B8":q+"u";_.cursorGetPosition=q+"6n";_.cursorNextLine=q+"E";_.cursorPrevLine=q+"F";_.cursorHide=q+"?25l";_.cursorShow=q+"?25h";_.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=_.eraseLine+(r<e-1?_.cursorUp():"");return e&&(t+=_.cursorLeft),t};_.eraseEndLine=q+"K";_.eraseStartLine=q+"1K";_.eraseLine=q+"2K";_.eraseDown=q+"J";_.eraseUp=q+"1J";_.eraseScreen=q+"2J";_.scrollUp=q+"S";_.scrollDown=q+"T";_.clearScreen="\x1Bc";_.clearTerminal=lh?`${_.eraseScreen}${q}0f`:`${_.eraseScreen}${q}3J${q}H`;_.enterAlternativeScreen=q+"?1049h";_.exitAlternativeScreen=q+"?1049l";_.beep=ke;_.link=(e,t)=>[lt,"8",ft,ft,t,ke,e,lt,"8",ft,ft,ke].join("");_.image=(e,t={})=>{let r=`${lt}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")+ke};_.iTerm={setCwd:(e=ph())=>`${lt}50;CurrentDir=${e}${ke}`,annotation(e,t={}){let r=`${lt}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+ke}};var Oi=_;var Fi=H(Ai(),1),ie=class{value;constructor(t){this.value=t}},kt=class extends ie{output(){return this.value}},$t=class extends ie{link;fallback;constructor(t,r,n){super(t),this.link=r??R(t),this.fallback=n}output(){let t=O.green(R(this.value)),r=this.link??"",n=this.value===this.link?t:`${t} ( ${r} )`;return Fi.default.stdout?Oi.link(t,r):this.fallback??n}},pt=class extends ie{output(){return`\`${O.magentaBright(R(this.value))}\``}},yh=/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g;function dh(e){let t=typeof e=="string"?JSON.parse(e):e,n=JSON.stringify(t,void 0,2).replace(yh,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 Ut=class extends ie{output(){try{return dh(R(this.value)??{})}catch{return JSON.stringify(R(this.value)??{},null,2)}}},Wt=class extends ie{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)}},me=class extends ie{color;constructor(t,r){super(t),this.color=r}output(){return this.color(R(this.value))}},ht=class extends ie{output(){return O.bold.redBright(R(this.value))}},Gt=class extends ie{output(){return wi(R(this.value))}},zt=class extends ie{output(){return O.bold.underline(R(this.value))}},Jt=class extends ie{output(){return O.underline(R(this.value))}},Bt=class extends ie{output(){return O.italic(R(this.value))}};s();function Ue(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(Ue).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)?` ${Ue(t)}`:Ue(t)).join("")}function tE(e,t){return Array.isArray(e)?[...e,{char:t}]:[e,{char:t}]}function Li(e){return Array.isArray(e)?e.map((t,r)=>{let n=Di(t);return r!==0&&!(typeof t!="string"&&"char"in t)?` ${n}`:n}).join(""):Di(e)}function Di(e){if(typeof e=="string")return e;if("link"in e){let{label:t,url:r}=e.link;return t&&t!==r?`${t} (${r})`:r}if("list"in e){let t=e.list.title?Li(e.list.title).trim():void 0,r=e.list.items.map(Li).join("; ");return t?`${t}${r?`: ${r}`:""}`:r}return Ue(e)}s();s();import{AsyncLocalStorage as mh}from"node:async_hooks";var ji=new mh;function oE(e,t){return ji.run(e,t)}function Ii(){return ji.getStore()}function Yr(e){return Mi()?e:We(e)}function Ni(e){process.stdout.write(`${Yr(e)}
|
|
10
|
+
`)}function ge(e){let t=Ii()?.consoleWarn;if(t){t(Yr(e));return}console.warn(Yr(e))}function Ri(e,t="info",r=ge){se()&&Le(t,e);let n=R(e);De(t,r,n)}import{Writable as gh}from"stream";var Ht=class{value;constructor(t){this.value=t}},P={raw(e){return new kt(e)},genericShellCommand(e){return new pt(e)},json(e){return new Ut(e)},path(e){return new Gt(e)},link(e,t,r){return new $t(e,t,r)},heading(e){return new zt(e)},subheading(e){return new Jt(e)},italic(e){return new Bt(e)},errorText(e){return new ht(e)},cyan(e){return new me(e,O.cyan)},yellow(e){return new me(e,O.yellow)},magenta(e){return new me(e,O.magenta)},green(e){return new me(e,O.green)},gray(e){return new me(e,O.gray)},packagejsonScript(e,t,...r){return new pt(wh(e,t,...r))},successIcon(){return new me("\u2714",O.green)},failIcon(){return new ht("\u2716")},linesDiff(e){return new Wt(e)}};function wh(e,t,...r){if(Jr())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 L(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 Ht(r)}function ki(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 Sh(){return bi()?"debug":"info"}function Zr(e){if(se())return!1;let t=ki(Sh());return ki(e)>=t}var yt={},Vr;function Le(e,t){let r=zr(R(t));yt.output??=[],yt[e]??=[],yt.output.push(r),yt[e].push(r)}var bE=()=>{yt={}};function qE(e){Ri(e,"info",Ni)}async function EE(){await new Promise((e,t)=>{process.stdout.write("",r=>{r?t(r):e()})})}function CE(e,t=ge){if(dt(e,"info",t))return;let r=R(e);se()&&Le("info",e),De("info",t,r)}function OE(e,t=ge){if(dt(e,"info",t))return;let r=O.bold(`\u2705 Success! ${R(e)}.`);se()&&Le("success",e),De("info",t,r)}function TE(e,t=ge){if(dt(e,"info",t))return;let r=`${O.green("\u2714")} ${R(e)}`;se()&&Le("completed",e),De("info",t,r)}function j(e,t=ge){if(dt(e,"debug",t)||(se()&&Le("debug",e),!Zr("debug")))return;let r=O.gray(R(e));De("debug",t,`${new Date().toISOString()}: ${r}`)}function PE(e,t=ge){if(dt(e,"warning",t))return;se()&&Le("warn",e);let r=O.yellow(R(e));De("warn",t,r)}function AE(){Gr()!=="json"&&ge("")}function R(e){return e instanceof Ht?e.value:e}function FE(e){return Ue(e)}function De(e,t,r){Zr(e)&&(t instanceof gh?t.write(r):t(r,e))}function We(e){return e.includes("\x1B")?zr(e):e}function dt(e,t,r){if(r!==ge||Gr()!=="json")return!1;if(t==="debug"&&!se()&&!Zr("debug"))return!0;let n=We(R(e));return n.trim().length>0&&_i({type:"diagnostic",level:t,message:n}),!0}function Mi(e=process){if(e===process&&Vr!==void 0)return Vr;let{env:t,stdout:r}=e,n=Object.hasOwnProperty.call(t,"FORCE_COLOR")?di(t.FORCE_COLOR):!!r.isTTY;return e===process&&(Vr=n),n}function LE(e,t){let r=e.toUpperCase().padEnd(35);return L`${P.heading(r)}\n${t}`.value}s();s();var Pc=H(Vu(),1),ux=H(Tc(),1);function Fn(e){return e[Math.floor(Math.random()*e.length)]}function SP(e){return e.filter(t=>t!==void 0)}function vP(e){return e.length!==new Set(e).size}function Ac(e){return Array.from(new Set(e))}function xP(e,t){return(0,Pc.default)(e,t)}function _P(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 ce=H(Sf()),t0=["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"],r0=["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"],n0=["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"],i0=["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"],vf={business:{adjectives:t0,nouns:n0},creative:{adjectives:r0,nouns:i0}};function xf(e="business"){return`${Fn(vf[e].adjectives)}-${Fn(vf[e].nouns)}`}function iA(e){return e.substring(0,1).toUpperCase()+e.substring(1)}function oA(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 aA(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=>We(o).length)))}return e.map(n=>n.map((i,o)=>`${i}${" ".repeat(t[o]-We(i).length)}`).join(" ").trimEnd()).join(`
|
|
11
|
+
`)}function uA(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function cA(e){return(0,ce.camelCase)(e)}function fA(e){return(0,ce.capitalCase)(e)}function lA(e){return(0,ce.paramCase)(e)}function pA(e){return(0,ce.snakeCase)(e)}function hA(e){return(0,ce.constantCase)(e)}function o0(e){let t=e.toISOString().split("T"),r=t[0]??e.toDateString(),n=t[1]?.split(".")[0]??e.toTimeString();return`${r} ${n}`}function yA(e){let t=new Date(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()));return o0(r)}function dA(e){return e.length===0?"":e.length===1?`"${e[0]}"`:`${e.slice(0,-1).map(t=>`"${t}"`).join(", ")} and "${e[e.length-1]}"`}function mA(e){return(0,ce.pascalCase)(e)}function gA(e,t=","){if(e)return Ac(e.split(t).map(r=>r.trim()).filter(r=>r!=="")).sort().join(t)}function wA(e,t){let r=Math.floor((t.getTime()-e.getTime())/1e3);if(r<60)return`${mr(r,"second")} ago`;let n=Math.floor(r/60);if(n<60)return`${mr(n,"minute")} ago`;let i=Math.floor(n/60);if(i<24)return`${mr(i,"hour")} ago`;let o=Math.floor(i/24);return`${mr(o,"day")} ago`}function mr(e,t){return`${e} ${t}${e===1?"":"s"}`}s();import{realpath as s0}from"fs/promises";import{tmpdir as a0}from"os";var Un=await s0(a0());s();var Tr=H(br(),1),st=H(hl(),1),te=H(Gl(),1),re=H(op(),1),Pe=H(he(),1),Pr=H(gp(),1),Ar=H(Or(),1),Fr=H(Ee(),1),Lr=H(At(),1),oi=Tr.default.copy,RF=Tr.default.copySync,MF=st.default.emptyDirSync,kF=st.default.emptydirSync,$F=st.default.emptyDir,UF=st.default.emptydir,WF=te.default.createFile,GF=te.default.createFileSync,wp=te.default.ensureFile,Sp=te.default.ensureFileSync,zF=te.default.createLink,JF=te.default.createLinkSync,BF=te.default.ensureLink,HF=te.default.ensureLinkSync,KF=te.default.createSymlink,YF=te.default.createSymlinkSync,VF=te.default.ensureSymlink,ZF=te.default.ensureSymlinkSync,XF=re.default.readJson,QF=re.default.readJSON,eL=re.default.readJsonSync,tL=re.default.readJSONSync,rL=re.default.writeJson,nL=re.default.writeJSON,iL=re.default.writeJsonSync,oL=re.default.writeJSONSync,sL=re.default.outputJson,aL=re.default.outputJSON,uL=re.default.outputJsonSync,cL=re.default.outputJSONSync,fL=Pe.default.mkdirs,lL=Pe.default.mkdirsSync,pL=Pe.default.mkdirp,hL=Pe.default.mkdirpSync,yL=Pe.default.ensureDir,dL=Pe.default.ensureDirSync,vp=Pr.default.move,mL=Pr.default.moveSync,gL=Ar.default.outputFile,wL=Ar.default.outputFileSync,SL=Fr.default.pathExists,vL=Fr.default.pathExistsSync,xL=Lr.default.remove,xp=Lr.default.removeSync,_L={...Tr.default,...st.default,...te.default,...re.default,...Pe.default,...Pr.default,...Ar.default,...Fr.default,...Lr.default};s();import Se from"node:path";import{fileURLToPath as mb}from"node:url";s();import qp from"node:process";import Ep from"node:path";import _p,{promises as bp}from"node:fs";import{fileURLToPath as db}from"node:url";s();s();s();var si=class{value;next;constructor(t){this.value=t}},Dt=class{#t;#r;#i;constructor(){this.clear()}enqueue(t){let r=new si(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 Dr(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 Dt,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 jr=class extends Error{constructor(t){super(),this.value=t}},hb=async(e,t)=>t(await e),yb=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new jr(t[0]);return!1};async function ai(e,t,{concurrency:r=Number.POSITIVE_INFINITY,preserveOrder:n=!0}={}){let i=Dr(r),o=[...e].map(u=>[u,i(hb,u,t)]),a=Dr(n?1:Number.POSITIVE_INFINITY);try{await Promise.all(o.map(u=>a(yb,u)))}catch(u){if(u instanceof jr)return u.value;throw u}}var Cp={directory:"isDirectory",file:"isFile"};function Op(e){if(!Object.hasOwnProperty.call(Cp,e))throw new Error(`Invalid type specified: ${e}`)}var Tp=(e,t)=>t[Cp[e]](),Pp=e=>e instanceof URL?db(e):e;async function ui(e,{cwd:t=qp.cwd(),type:r="file",allowSymlinks:n=!0,concurrency:i,preserveOrder:o}={}){Op(r),t=Pp(t);let a=n?bp.stat:bp.lstat;return ai(e,async u=>{try{let l=await a(Ep.resolve(t,u));return Tp(r,l)}catch{return!1}},{concurrency:i,preserveOrder:o})}function ci(e,{cwd:t=qp.cwd(),type:r="file",allowSymlinks:n=!0}={}){Op(r),t=Pp(t);let i=n?_p.statSync:_p.lstatSync;for(let o of e)try{let a=i(Ep.resolve(t,o),{throwIfNoEntry:!1});if(!a)continue;if(Tp(r,a))return o}catch{}}s();var Ap=e=>e instanceof URL?mb(e):e,Fp=Symbol("findUpStop");async function gb(e,t={}){let r=Se.resolve(Ap(t.cwd)||""),{root:n}=Se.parse(r),i=Se.resolve(r,t.stopAt||n),o=t.limit||Number.POSITIVE_INFINITY,a=[e].flat(),u=async f=>{if(typeof e!="function")return ui(a,f);let c=await e(f.cwd);return typeof c=="string"?ui([c],f):c},l=[];for(;;){let f=await u({...t,cwd:r});if(f===Fp||(f&&l.push(Se.resolve(r,f)),r===i||l.length>=o))break;r=Se.dirname(r)}return l}function wb(e,t={}){let r=Se.resolve(Ap(t.cwd)||""),{root:n}=Se.parse(r),i=t.stopAt||n,o=t.limit||Number.POSITIVE_INFINITY,a=[e].flat(),u=f=>{if(typeof e!="function")return ci(a,f);let c=e(f.cwd);return typeof c=="string"?ci([c],f):c},l=[];for(;;){let f=u({...t,cwd:r});if(f===Fp||(f&&l.push(Se.resolve(r,f)),r===i||l.length>=o))break;r=Se.dirname(r)}return l}async function Lp(e,t={}){return(await gb(e,{...t,limit:1}))[0]}function Dp(e,t={}){return wb(e,{...t,limit:1})[0]}s();var Wp=H(sh(),1);s();var jt=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};s();s();var Sb={"[: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]},It=e=>e.replace(/[[\]\\-]/g,"\\$&"),vb=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),jp=e=>e.join(""),Ip=(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 m=e.charAt(o);if((m==="!"||m==="^")&&o===r+1){f=!0,o++;continue}if(m==="]"&&a&&!l){c=o+1;break}if(a=!0,m==="\\"&&!l){l=!0,o++;continue}if(m==="["&&!l){for(let[w,[S,v,C]]of Object.entries(Sb))if(e.startsWith(w,o)){if(h)return["$.",!1,e.length-r,!0];o+=w.length,C?i.push(S):n.push(S),u=u||v;continue e}}if(l=!1,h){m>h?n.push(It(h)+"-"+It(m)):m===h&&n.push(It(m)),h="",o++;continue}if(e.startsWith("-]",o+1)){n.push(It(m+"-")),o+=2;continue}if(e.startsWith("-",o+1)){h=m,o+=2;continue}n.push(It(m)),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 m=n[0].length===2?n[0].slice(-1):n[0];return[vb(m),!1,c-r,!1]}let y="["+(f?"^":"")+jp(n)+"]",d="["+(f?"":"^")+jp(i)+"]";return[n.length&&i.length?"("+y+"|"+d+")":n.length?y:d,u,c-r,!0]};s();var Ae=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var ne,xb=new Set(["!","?","+","*","@"]),fi=e=>xb.has(e),Np=e=>fi(e.type),_b=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),bb=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),qb=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Rp=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),Eb="(?!(?:^|/)\\.\\.?(?:$|/))",Ir="(?!\\.)",Cb=new Set(["[","."]),Ob=new Set(["..","."]),Tb=new Set("().*{}+?[]^$\\!"),Pb=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),li="[^/]",Mp=li+"*?",kp=li+"+?",Me=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 ne&&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 ne&&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 ne(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 m=n,w="";for(;m<t.length;){let S=t.charAt(m++);if(u||S==="\\"){u=!u,w+=S;continue}if(l){m===f+1?(S==="^"||S==="!")&&(c=!0):S==="]"&&!(m===f+2&&c)&&(l=!1),w+=S;continue}else if(S==="["){l=!0,f=m,c=!1,w+=S;continue}if(!i.noext&&fi(S)&&t.charAt(m)==="("&&o<=a){r.push(w),w="";let C=new ne(S,r);m=ne.#l(t,C,m,i,o+1),r.push(C);continue}w+=S}return r.push(w),m}let h=n+1,y=new ne(null,r),d=[],g="";for(;h<t.length;){let m=t.charAt(h++);if(u||m==="\\"){u=!u,g+=m;continue}if(l){h===f+1?(m==="^"||m==="!")&&(c=!0):m==="]"&&!(h===f+2&&c)&&(l=!1),g+=m;continue}else if(m==="["){l=!0,f=h,c=!1,g+=m;continue}if(fi(m)&&t.charAt(h)==="("&&(o<=a||r&&r.#p(m))){let S=r&&r.#p(m)?0:1;y.push(g),g="";let v=new ne(m,y);y.push(v),h=ne.#l(t,v,h,i,o+S);continue}if(m==="|"){y.push(g),g="",d.push(y),y=new ne(null,r);continue}if(m===")")return g===""&&r.#e.length===0&&(r.#f=!0),y.push(g),g="",r.push(...d,y),h;g+=m}return r.type=null,r.#r=void 0,r.#e=[t.substring(n-1)],h}#w(t){return this.#y(t,bb)}#y(t,r=_b){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=qb){return!!r.get(this.type)?.includes(t)}#S(t,r){let n=t.#e[0],i=new ne(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}#v(t){return!!Rp.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.#v(r.type)}#_(t){let r=Rp.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(Np(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.#w(i)?(r=!1,this.#S(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 ne(null,void 0,r);return ne.#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()),!Np(this)){let l=this.isStart()&&this.isEnd(),f=this.#e.map(d=>{let[g,m,w,S]=typeof d=="string"?ne.#b(d,this.#r,l):d.toRegExpSource(t);return this.#r=this.#r||w,this.#i=this.#i||S,g}).join(""),c="";if(this.isStart()&&typeof this.#e[0]=="string"&&!(this.#e.length===1&&Ob.has(this.#e[0]))){let g=Cb,m=r&&g.has(f.charAt(0))||f.startsWith("\\.")&&g.has(f.charAt(2))||f.startsWith("\\.\\.")&&g.has(f.charAt(4)),w=!r&&!t&&g.has(f.charAt(0));c=m?Eb:w?Ir:""}let h="";return this.isEnd()&&this.#t.#u&&this.#n?.type==="!"&&(h="(?:$|\\/)"),[c+f+h,Ae(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,Ae(this.toString()),!1,!1]}let a=!n||t||r||!Ir?"":this.#m(!0);a===o&&(a=""),a&&(o=`(?:${o})(?:${a})*?`);let u="";if(this.type==="!"&&this.#f)u=(this.isStart()&&!r?Ir:"")+kp;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!t?Ir:"")+Mp+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;u=i+o+l}return[u,Ae(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+=(Tb.has(f)?"\\":"")+f,u=!1;continue}if(f==="\\"){l===t.length-1?o+="\\\\":i=!0;continue}if(f==="["){let[c,h,y,d]=Ip(t,l);if(y){o+=c,a=a||h,l+=y-1,r=r||d,u=!1;continue}}if(f==="*"){if(u)continue;u=!0,o+=n&&/^[*]+$/.test(t)?kp:Mp,r=!0;continue}else u=!1;if(f==="?"){o+=li,r=!0;continue}o+=Pb(f)}return[o,Ae(t),!!r,a]}};ne=Me;s();var pi=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var J=(e,t,r={})=>(jt(t),!r.nocomment&&t.charAt(0)==="#"?!1:new at(t,r).match(e)),Ab=/^\*+([^+@!?\*\[\(]*)$/,Fb=e=>t=>!t.startsWith(".")&&t.endsWith(e),Lb=e=>t=>t.endsWith(e),Db=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),jb=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Ib=/^\*+\.\*+$/,Nb=e=>!e.startsWith(".")&&e.includes("."),Rb=e=>e!=="."&&e!==".."&&e.includes("."),Mb=/^\.\*+$/,kb=e=>e!=="."&&e!==".."&&e.startsWith("."),$b=/^\*+$/,Ub=e=>e.length!==0&&!e.startsWith("."),Wb=e=>e.length!==0&&e!=="."&&e!=="..",Gb=/^\?+([^+@!?\*\[\(]*)?$/,zb=([e,t=""])=>{let r=Gp([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},Jb=([e,t=""])=>{let r=zp([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},Bb=([e,t=""])=>{let r=zp([e]);return t?n=>r(n)&&n.endsWith(t):r},Hb=([e,t=""])=>{let r=Gp([e]);return t?n=>r(n)&&n.endsWith(t):r},Gp=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},zp=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},Jp=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",$p={win32:{sep:"\\"},posix:{sep:"/"}},Kb=Jp==="win32"?$p.win32.sep:$p.posix.sep;J.sep=Kb;var B=Symbol("globstar **");J.GLOBSTAR=B;var Yb="[^/]",Vb=Yb+"*?",Zb="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Xb="(?:(?!(?:\\/|^)\\.).)*?",Qb=(e,t={})=>r=>J(r,e,t);J.filter=Qb;var fe=(e,t={})=>Object.assign({},e,t),eq=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return J;let t=J;return Object.assign((n,i,o={})=>t(n,i,fe(e,o)),{Minimatch:class extends t.Minimatch{constructor(i,o={}){super(i,fe(e,o))}static defaults(i){return t.defaults(fe(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,o,a={}){super(i,o,fe(e,a))}static fromGlob(i,o={}){return t.AST.fromGlob(i,fe(e,o))}},unescape:(n,i={})=>t.unescape(n,fe(e,i)),escape:(n,i={})=>t.escape(n,fe(e,i)),filter:(n,i={})=>t.filter(n,fe(e,i)),defaults:n=>t.defaults(fe(e,n)),makeRe:(n,i={})=>t.makeRe(n,fe(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,fe(e,i)),match:(n,i,o={})=>t.match(n,i,fe(e,o)),sep:t.sep,GLOBSTAR:B})};J.defaults=eq;var Bp=(e,t={})=>(jt(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,Wp.default)(e));J.braceExpand=Bp;var tq=(e,t={})=>new at(e,t).makeRe();J.makeRe=tq;var rq=(e,t,r={})=>{let n=new at(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};J.match=rq;var Up=/[?*]|[+@!]\(.*?\)|\[|\]/,nq=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),at=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(t,r={}){jt(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||Jp,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]==="?"||!Up.test(o[2]))&&!Up.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,y=c?3:f?0:void 0;if(typeof h=="number"&&typeof y=="number"){let[d,g]=[t[h],r[y]];d.toLowerCase()===g.toLowerCase()&&(r[y]=d,o=y,i=h)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(B)?this.#t(t,r,n,i,o):this.#i(t,r,n,i,o)}#t(t,r,n,i,o){let a=r.indexOf(B,o),u=r.lastIndexOf(B),[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 v=t.slice(i,i+l.length);if(!this.#i(v,l,n,0,0))return!1;i+=l.length}let h=0;if(c.length){if(c.length+i>t.length)return!1;let v=t.length-c.length;if(this.#i(t,c,n,v,0))h=c.length;else{if(t[t.length-1]!==""||i+c.length===t.length||(v--,!this.#i(t,c,n,v,0)))return!1;h=c.length+1}}if(!f.length){let v=!!h;for(let C=i;C<t.length-h;C++){let Z=String(t[C]);if(v=!0,Z==="."||Z===".."||!this.options.dot&&Z.startsWith("."))return!1}return n||v}let y=[[[],0]],d=y[0],g=0,m=[0];for(let v of f)v===B?(m.push(g),d=[[],0],y.push(d)):(d[0].push(v),g++);let w=y.length-1,S=t.length-h;for(let v of y)v[1]=S-(m[w--]+v[0].length);return!!this.#r(t,y,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 y=t[h];if(y==="."||y===".."||!this.options.dot&&y.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 d=this.#r(t,r,n+f.length,i+1,o,a+1,u);if(d!==!1)return d}let y=t[n];if(y==="."||y===".."||!this.options.dot&&y.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===B)return!1;let y;if(typeof c=="string"?(y=h===c,this.debug("string match",c,h,y)):(y=c.test(h),this.debug("pattern match",c,h,y)),!y)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 Bp(this.pattern,this.options)}parse(t){jt(t);let r=this.options;if(t==="**")return B;if(t==="")return"";let n,i=null;(n=t.match($b))?i=r.dot?Wb:Ub:(n=t.match(Ab))?i=(r.nocase?r.dot?jb:Db:r.dot?Lb:Fb)(n[1]):(n=t.match(Gb))?i=(r.nocase?r.dot?Jb:zb:r.dot?Bb:Hb)(n):(n=t.match(Ib))?i=r.dot?Rb:Nb:(n=t.match(Mb))&&(i=kb);let o=Me.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?Vb:r.dot?Zb:Xb,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"?nq(c):c===B?B:c._src});return f.forEach((c,h)=>{let y=f[h+1],d=f[h-1];c!==B||d===B||(d===void 0?y!==void 0&&y!==B?f[h+1]="(?:\\/|"+n+"\\/)?"+y:f[h]=n:y===void 0?f[h-1]=d+"(?:\\/|"+n+")?":y!==B&&(f[h-1]=d+"(?:\\/|\\/"+n+"\\/)"+y,f[h+1]=B))}),f.filter(c=>c!==B).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=Me;J.Minimatch=at;J.escape=pi;J.unescape=Ae;var Hp=H(ah());import{mkdirSync as iq,readFileSync as oq,writeFileSync as sq,appendFileSync as aq,statSync as Kp,createReadStream as uq,createWriteStream as cq,constants as Yp,existsSync as fq,unlinkSync as lq,mkdtempSync as pq,accessSync as hq,statSync as yq}from"fs";import{mkdir as dq,writeFile as mq,readFile as gq,realpath as wq,appendFile as Sq,mkdtemp as Vp,stat as Zp,lstat as Xp,chmod as vq,access as Qp,rename as xq,unlink as _q,rm as hi,readdir as bq,symlink as qq}from"fs/promises";import{pathToFileURL as Eq}from"url";import*as Nr from"os";function AD(e,t){let r=e.split(mi);return Nt(...r.slice(t))}async function FD(e){let t=await Vp(Nt(Un,"tmp-"));try{return await e(t)}finally{await hi(t,{recursive:!0,force:!0,maxRetries:2})}}function LD(){return pq(Nt(Un,"tmp-"))}async function DD(e,t={encoding:"utf8"}){return j(L`Reading the content of file at ${P.path(e)}...`),gq(e,t)}function jD(e){return j(L`Sync-reading the content of file at ${P.path(e)}...`),oq(e)}async function ID(e){return wq(e)}async function ND(e,t){if(kr(e)===kr(t)){j(L`Skipping copy file step because source and destination is the same: ${P.path(e)}`);return}j(L`Copying file from ${P.path(e)} to ${P.path(t)}...`),await oi(e,t)}async function RD(e){j(L`Creating an empty file at ${P.path(e)}...`),await wp(e)}function MD(e){j(L`Creating an empty file at ${P.path(e)}...`),Sp(e)}async function kD(e,t){j(L`Appending the following content to ${P.path(e)}:
|
|
12
|
+
${t.split(`
|
|
13
|
+
`).map(r=>` ${r}`).join(`
|
|
14
|
+
`)}
|
|
15
|
+
`),await Sq(e,t)}function $D(e,t){aq(e,t)}async function UD(e,t,r={encoding:"utf8"}){j(L`Writing some content to file at ${P.path(e)}...`),await mq(e,t,r)}function WD(e,t){j(L`File-writing some content to file at ${P.path(e)}...`),sq(e,t)}async function GD(e){j(L`Creating directory at ${P.path(e)}...`),await dq(e,{recursive:!0})}function zD(e){j(L`Sync-creating directory at ${P.path(e)}...`),iq(e,{recursive:!0})}async function JD(e,t={}){j(L`Removing file at ${P.path(e)}...`),await hi(e,{recursive:!0,force:!0,...t})}async function BD(e,t){j(L`Renaming file from ${P.path(e)} to ${P.path(t)}...`),await xq(e,t)}async function HD(e,t){j(L`Creating symbolic link from ${P.path(t)} to ${P.path(e)}...`);let r="file";try{(await Xp(e)).isDirectory()&&(r="junction")}catch{}await qq(e,t,r)}function KD(e){j(L`Sync-removing file at ${P.path(e)}...`),xp(e)}async function YD(e,t={}){j(L`Removing directory at ${P.path(e)}...`),await hi(e,{recursive:!0,force:t.force??!0})}async function VD(){return j(L`Creating a temporary directory...`),await Vp(ut(Nr.tmpdir(),"tmp-"))}async function ZD(e){return j(L`Checking if ${P.path(e)} is a directory...`),(await Xp(e)).isDirectory()}function XD(e){return j(L`Checking if ${P.path(e)} is a directory...`),Kp(e).isDirectory()}async function QD(e){return j(L`Getting the size of file at ${P.path(e)}...`),(await Zp(e)).size}function ej(e){return j(L`Sync-getting the size of file at ${P.path(e)}...`),Kp(e).size}function tj(e){lq(e)}function rj(e){return _q(e)}function nj(e,t){return uq(e,t)}function ij(e){return cq(e)}async function Cq(e){return j(L`Getting last updated timestamp for file at ${P.path(e)}...`),(await Zp(e)).ctime}async function oj(e){try{return(await Cq(e)).getTime()}catch{return}}async function sj(e,t,r={}){await vp(e,t,r)}async function aj(e,t){await vq(e,t)}async function uj(e){try{return await Qp(e,Yp.X_OK),!0}catch{return!1}}function cj(e){try{return hq(e,Yp.W_OK),!0}catch{return!1}}function fj(e){if(!(process.platform==="win32"||typeof process.getuid!="function")){if(!Oq(e))return!1;try{let t=yq(e),r=process.getuid();return t.uid===r}catch{return!1}}}async function eh(e){try{return await Qp(e),!0}catch{return!1}}function Oq(e){return fq(e)}async function Tq(e){let t=`${xf(e.family??"business")}-${e.suffix}`,r=ut(e.directory,t);return await eh(r)?Tq(e):t}async function lj(e,t){let{default:r}=await import("./out-B2GISN65.js"),n=t;return t?.dot==null&&(n={...t,dot:!0}),r(e,n)}function qi(e,t){let r=t;return t?.dot==null&&(r={...t,dot:!0}),Hp.default.sync(e,r)}function pj(e){return Eq(e)}function hj(e){let t=e.match(/\r\n|\n/g);if(!t)return Pq();let r=0;for(let i of t)i===`\r
|
|
16
|
+
`&&r++;let n=t.length-r;return r>n?`\r
|
|
17
|
+
`:`
|
|
18
|
+
`}function Pq(){return Nr.EOL}async function yj(e,t){let r=await Lp(e,t);return r?Mr(r):void 0}function Ei(e,t){let r=Dp(e,t);return r?Mr(r):void 0}function dj(e,t,r){return J(e,t,r)}function mj(e){return bq(e)}async function gj(e,t){if(!await eh(e))throw new Error(`Source directory ${e} does not exist`);await oi(e,t)}export{Xr as a,rn as b,cs as c,ls as d,sn as e,de as f,xs as g,Es as h,Ts as i,er as j,an as k,un as l,cn as m,Hs as n,ln as o,Xs as p,ea as q,ra as r,sa as s,pn as t,hn as u,fa as v,Ta as w,xn as x,Za as y,En as z,Cn as A,bt as B,On as C,du as D,ir as E,Lu as F,Xu as G,oc as H,yc as I,bc as J,Ec as K,SP as L,vP as M,Ac as N,xP as O,_P as P,ae as Q,ue as R,xf as S,iA as T,oA as U,sA as V,aA as W,uA as X,cA as Y,fA as Z,lA as _,pA as $,hA as aa,o0 as ba,yA as ca,dA as da,mA as ea,gA as fa,wA as ga,Q as ha,AD as ia,FD as ja,LD as ka,DD as la,jD as ma,ID as na,ND as oa,RD as pa,MD as qa,kD as ra,$D as sa,UD as ta,WD as ua,GD as va,zD as wa,JD as xa,BD as ya,HD as za,KD as Aa,YD as Ba,VD as Ca,ZD as Da,XD as Ea,QD as Fa,ej as Ga,tj as Ha,rj as Ia,nj as Ja,ij as Ka,Cq as La,oj as Ma,sj as Na,aj as Oa,uj as Pa,cj as Qa,fj as Ra,eh as Sa,Oq as Ta,Tq as Ua,lj as Va,qi as Wa,pj as Xa,hj as Ya,Pq as Za,yj as _a,Ei as $a,dj as ab,mj as bb,gj as cb,Ue as db,tE as eb,Li as fb,oE as gb,Ii as hb,ge as ib,Ri as jb,Jr as kb,Iq as lb,Nq as mb,Rq as nb,Mq as ob,fh as pb,Oi as qb,Ai as rb,Ht as sb,P as tb,wh as ub,L as vb,yt as wb,Le as xb,bE as yb,qE as zb,EE as Ab,CE as Bb,OE as Cb,TE as Db,j as Eb,PE as Fb,AE as Gb,R as Hb,FE as Ib,De as Jb,We as Kb,Mi as Lb,LE as Mb};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as v,c as D}from"./chunk-G3RNO2TC.js";import{$ as w,E as g,I as S,L as b,Q as c,W as p,Z as o,t as h}from"./chunk-A2NSORBM.js";import{i as u}from"./chunk-TD6JBHUS.js";import{i as y}from"./chunk-IWTNUJGY.js";import{g as f}from"./chunk-VKWPEFWQ.js";f();async function x(t,e){let r=c(t);if(await S(t.appDirectory,r))return;let{scan:i}=p(t,e),n=new u(`No app security check results for ${r} in ${t.appDirectory}.`,`Run \`${o(i)}\`.`);throw n.code="results-directory-not-found",n}async function B(t,e){await x(t,e);let r=c(t),i=g(t.appDirectory,r),[n,s]=await Promise.all([k(i.deterministicFindingsPath,"deterministic"),k(i.agentFindingsPath,"agent")]),a=[A(n,"deterministic"),A(s,"agent")].filter(F=>F!==void 0);a.length>0&&E(a,p(t,e));let m=await v(t.appDirectory),l=P(n),d=P(s),{checks:R,suppressions:$}=h({deterministic:l?.document??null,agent:d?.document??null,suppressions:{entries:m,missingPaths:await D(t.appDirectory,m)}});return{sources:{deterministic:l,agent:d},checks:R,suppressions:$}}async function k(t,e){return{path:t,result:await b(t,e)}}function A(t,e){if(t.result.status==="invalid")return{source:e,path:t.path,errors:t.result.errors}}function P(t){return t.result.status!=="ok"?null:{path:t.path,document:t.result.value}}function E(t,e){let r=t.length===1?"The app security check results could not be loaded because a results file is invalid.":"The app security check results could not be loaded because both results files are invalid.",i=[...t.map(s=>C(s.source,e,`${y(s.path)}.`)),["Or run",{command:o(e.clean)},"to delete both results files and start over."]],n=new u(r,null,i,t.map(T));throw n.code="results-file-invalid",n.details={files:t.map(({path:s,errors:a})=>({path:w(s),errors:a}))},n}function C(t,e,r){return t==="deterministic"?["Run",{command:o(e.scan)},`to regenerate ${r}`]:["Have your coding agent run",{command:o(e.record)},`again to regenerate ${r}`]}function T(t){return{title:t.path,body:{list:{items:t.errors}}}}export{x as a,B as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-LG3KEHGD.js";import{b as r}from"./chunk-3PYDIBTX.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var e=r.object({title:r.string().optional(),body:r.union([r.string(),r.array(r.array(r.string()))])}).strict(),o={message:r.string(),code:r.string().min(1).optional().describe("A stable error code, included only when known."),tryMessage:r.string().optional(),nextSteps:r.array(r.string()).optional(),customSections:r.array(e).optional(),details:r.unknown().optional().describe("Selected domain details, preserving native API payloads such as GraphQL errors, extensions, and data.")},s=r.object({type:r.literal("abort"),...o}).strict(),a=r.object({type:r.literal("bug"),...o,stack:r.string().optional()}).strict(),i=r.object({type:r.literal("external"),...o,command:r.string(),args:r.array(r.string())}).strict(),c=r.union([s,a,i]),m=r.object({error:c}).strict(),d=n({name:"JsonErrorDocument",schema:m,definitions:{JsonError:c,JsonErrorCustomSection:e,JsonAbortError:s,JsonBugError:a,JsonExternalError:i}});export{s as a,c as b,d as c};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{a as j}from"./chunk-RSZAAN37.js";import{a as D}from"./chunk-ASKBYEO7.js";import{E as u,F as _,P as L}from"./chunk-HMPRWNGG.js";import{b as $,c as P}from"./chunk-DMOLPSXF.js";import{y as R,z as A}from"./chunk-2KUM2RU4.js";import{a as S}from"./chunk-LG3KEHGD.js";import{i as a}from"./chunk-TD6JBHUS.js";import{Sa as O,ab as v,ta as E,va as N,zb as F}from"./chunk-ZMOW2YZ4.js";import{b as s}from"./chunk-3PYDIBTX.js";import{b as X}from"./chunk-AE3IQG7S.js";import{c as m,e as w,f,h as T,i as C}from"./chunk-IWTNUJGY.js";import{e as z,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();async function k({remoteApp:t,developerPlatformClient:e}){let n=await e.channelSpecExport(t);if(n.status===404)throw new a("The channel spec export endpoint is not available for this app.","Check that the app and organization are correct.");if(!n.ok){let r=typeof n.body?.reason=="string"?n.body.reason:void 0;if(n.status===426)throw new a(`Failed to fetch the channel spec export: ${r??"This version of the Shopify CLI is no longer supported."}`,"Upgrade the Shopify CLI and try again.");if(n.status===422)return{success:!1,reason:r??`http_${n.status}`};throw n.status===401||n.status===403?new a(`Failed to fetch the channel spec export: authentication failed (status ${n.status}).`,"Run `shopify auth logout` and try again."):new a(`Failed to fetch the channel spec export: the server responded with status ${n.status}.`,"Try again in a moment.")}let{handle:i,filename:p,toml:o,warnings:h}=n.body;if(typeof i!="string"||typeof p!="string"||typeof o!="string")throw new a("Failed to fetch the channel spec export: the response was missing required fields.");return{success:!0,handle:i,filename:p,toml:o,warnings:B(h)}}function B(t){return Array.isArray(t)?t.flatMap(e=>e&&typeof e=="object"&&typeof e.code=="string"&&typeof e.message=="string"?[e]:[]):[]}c();var M=s.object({code:s.string(),message:s.string()}).strict(),d=S({name:"ImportChannelConfigResult",schema:s.object({status:s.literal("success"),handle:s.string().min(1),filename:s.string().min(1),path:s.string().regex(/^(?:\/|[a-zA-Z]:[\\/]|\\\\)/,"The path must be absolute.").describe("Absolute path of the written TOML file."),toml:s.string().describe("Native channel_config TOML content, unchanged from the export."),warnings:s.array(M).describe("Warnings returned with the channel spec export.")}).strict(),definitions:{ChannelSpecExportWarning:M}});var g=m("extensions","channel-config"),he=m(g,_),x="shopify.extension.toml",G=`name = "Channel config"
|
|
2
|
+
type = "${u}"
|
|
3
|
+
handle = "channel-config"
|
|
4
|
+
`,U=["extensions/*"],q={no_exportable_frozen_record:"This app doesn't have a channel spec that can be exported yet.",multiple_exportable_records:"This app has more than one channel spec, so it can't be exported automatically.",not_allowlisted:"This app isn't part of the channel spec export prototype yet.",contains_no_public_fields:"This app's channel spec has no public channel_config fields.",invalid_public_schema:"This app's channel spec doesn't match the public channel_config schema."};async function H(t){let{app:e,remoteApp:n,developerPlatformClient:i,force:p}=t,o=await k({remoteApp:n,developerPlatformClient:i});if(!o.success){let y=q[o.reason];throw y?new a(y):new a(`The channel spec for this app could not be exported (reason: ${o.reason}).`)}let{extensionDirectory:h,createExtension:r}=Z(e),l=w(h,_,C(o.filename));if(!p&&await O(l))throw new a(`A channel spec already exists at ${f(e.directory,l)}.`,"Re-run with `--force` to replace it.");let I=d.validate({status:"success",handle:o.handle,filename:C(o.filename),path:l,toml:o.toml,warnings:o.warnings.map(({code:y,message:Y})=>({code:y,message:Y}))});return await N(T(l)),r&&await E(m(h,x),G),await E(l,I.toml),{...I,extensionConfigurationPath:r?w(h,x):null}}function Z(t){let e=t.allExtensions.filter(r=>r.type===u);if(e.length>1){let r=e.map(l=>f(t.directory,l.directory)).join(", ");throw new a(`This app has more than one ${u} extension (${r}).`,"Only one is allowed. Remove the extras and try again.")}if(e.length===1)return{extensionDirectory:e[0].directory,createExtension:!1};let n=t.configuration.extension_directories,i=n&&n.length>0?n:U;if(!i.some(r=>v(`${g}/${x}`,`${r}/*.extension.toml`)))throw new a(`Your shopify.app.toml only loads extensions from ${i.join(", ")}, so a new extension at ${g} wouldn't be deployed.`,`Create a ${u} extension in one of those directories with a ${x} like:
|
|
5
|
+
|
|
6
|
+
${G}
|
|
7
|
+
then re-run this command.`);let o=m(t.directory,g),h=t.allExtensions.find(r=>r.directory===o);if(h)throw new a(`${g} already contains a ${h.type} extension.`,"Move that extension to another directory, then re-run this command.");return{extensionDirectory:o,createExtension:!0}}c();function W(t,e,n){if(t.warnings.forEach(i=>A({body:i.message})),n==="json"){F(d.encode({status:t.status,handle:t.handle,filename:t.filename,path:t.path,toml:t.toml,warnings:t.warnings.map(({code:i,message:p})=>({code:i,message:p}))}));return}R({headline:["Imported the channel spec for",{userInput:e.name},{char:"."}],body:["The spec was written to",{filePath:f(e.directory,t.path)},{char:"."},...t.extensionConfigurationPath?["Also created",{filePath:f(e.directory,t.extensionConfigurationPath)},"so the spec is included when your app is deployed."]:[]],nextSteps:["Review the generated spec and make any changes your channel needs.",["Run",{command:"shopify app dev"},"to try the spec on a development store before releasing it."],["Run",{command:"shopify app deploy"},"to deploy the spec as part of your app."]]})}var J=z(X(),1);var b=class t extends j{static hidden=!0;static summary="Import your app's default channel spec as a channel_config extension.";static descriptionWithMarkdown="Imports the Shopify-authored channel spec for your app as a `channel_config` extension.\n\n The generated TOML only includes public `channel_config` fields. Review it, then deploy it with `shopify app deploy`.";static jsonOutputSchema=d;static description=this.descriptionForHelp();static flags={...$,...D,...P,force:J.Flags.boolean({description:"Overwrite the existing channel spec file without prompting.",env:"SHOPIFY_FLAG_FORCE",default:!1})};async run(){let{flags:e}=await this.parse(t),{app:n,remoteApp:i,developerPlatformClient:p}=await L({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),o=await H({app:n,remoteApp:i,developerPlatformClient:p,force:e.force});return W(o,{directory:n.directory,name:i.title},e.json?"json":"text"),{app:n}}};export{b as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-DGIIUQH3.js";import"../../../chunk-ALINJ6J2.js";import"../../../chunk-RLOEI6VE.js";import"../../../chunk-3GD5ESWN.js";import"../../../chunk-ASKBYEO7.js";import"../../../chunk-HMPRWNGG.js";import"../../../chunk-2S3FHQFS.js";import"../../../chunk-JGLLABZR.js";import"../../../chunk-2BYW3BYX.js";import"../../../chunk-YYWSHRO2.js";import"../../../chunk-DC7ITY6T.js";import"../../../chunk-VJEKDBGZ.js";import"../../../chunk-OJOF6IYG.js";import"../../../chunk-7DBKSSDK.js";import"../../../chunk-KFO2JNF5.js";import"../../../chunk-2PD7TNFS.js";import"../../../chunk-IWOTLFOY.js";import"../../../chunk-27JT4NA4.js";import"../../../chunk-F5QKMDP3.js";import"../../../chunk-OTMYJWIP.js";import"../../../chunk-HVUMVDUG.js";import"../../../chunk-XEZPN5TR.js";import"../../../chunk-LFOBYEWG.js";import"../../../chunk-YKDRUAY3.js";import"../../../chunk-ZDF5N422.js";import"../../../chunk-4WBWZIN5.js";import"../../../chunk-T4ZOTYOY.js";import"../../../chunk-3FZ4LE6A.js";import"../../../chunk-MPW2YJWU.js";import"../../../chunk-JIY6XWSC.js";import"../../../chunk-BFAOTQGH.js";import"../../../chunk-DMOLPSXF.js";import"../../../chunk-T7KHS6RF.js";import"../../../chunk-2KUM2RU4.js";import"../../../chunk-7Y7AZRL3.js";import"../../../chunk-25MYHE4W.js";import"../../../chunk-H4K3F7PP.js";import"../../../chunk-5HBIIYSK.js";import"../../../chunk-RJ5VF3QY.js";import"../../../chunk-7UNQOKZW.js";import"../../../chunk-GB3YC4TI.js";import"../../../chunk-2KFYIYLI.js";import"../../../chunk-QBRRFFMZ.js";import"../../../chunk-Z2AV4BWZ.js";import"../../../chunk-LG3KEHGD.js";import"../../../chunk-I3WRA2LH.js";import"../../../chunk-TD6JBHUS.js";import"../../../chunk-636CTEW7.js";import"../../../chunk-AY3AAV77.js";import"../../../chunk-ZMOW2YZ4.js";import"../../../chunk-B4OMIONW.js";import"../../../chunk-UU6UQ2QY.js";import"../../../chunk-5B76DT7X.js";import"../../../chunk-JJZNUFPD.js";import"../../../chunk-3PYDIBTX.js";import"../../../chunk-DOLVBTCB.js";import"../../../chunk-QGQWVA7N.js";import"../../../chunk-AE3IQG7S.js";import"../../../chunk-R4E2E4NN.js";import"../../../chunk-JD5P5RAJ.js";import"../../../chunk-IWTNUJGY.js";import"../../../chunk-3KGN6N7E.js";import"../../../chunk-S4KNPCW3.js";import"../../../chunk-CQAD5WML.js";import"../../../chunk-I5A6BPCP.js";import"../../../chunk-O472FAYX.js";import"../../../chunk-IGE4Y5SE.js";import"../../../chunk-JFBCE4HN.js";import"../../../chunk-VKWPEFWQ.js";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../../chunk-
|
|
1
|
+
import{a}from"../../../../chunk-T6C4WC3Z.js";import"../../../../chunk-6IMTMS2S.js";import"../../../../chunk-4NFX7YCT.js";import"../../../../chunk-Z5QEXS6F.js";import"../../../../chunk-LXIWMYM4.js";import"../../../../chunk-RSZAAN37.js";import"../../../../chunk-3GD5ESWN.js";import"../../../../chunk-ASKBYEO7.js";import"../../../../chunk-HMPRWNGG.js";import"../../../../chunk-2S3FHQFS.js";import"../../../../chunk-JGLLABZR.js";import"../../../../chunk-2BYW3BYX.js";import"../../../../chunk-YYWSHRO2.js";import"../../../../chunk-DC7ITY6T.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-OJOF6IYG.js";import"../../../../chunk-7DBKSSDK.js";import"../../../../chunk-KFO2JNF5.js";import"../../../../chunk-2PD7TNFS.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-27JT4NA4.js";import"../../../../chunk-F5QKMDP3.js";import"../../../../chunk-OTMYJWIP.js";import"../../../../chunk-HVUMVDUG.js";import"../../../../chunk-XEZPN5TR.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-YKDRUAY3.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-4WBWZIN5.js";import"../../../../chunk-T4ZOTYOY.js";import"../../../../chunk-3FZ4LE6A.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-JIY6XWSC.js";import"../../../../chunk-BFAOTQGH.js";import"../../../../chunk-DMOLPSXF.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-2KUM2RU4.js";import"../../../../chunk-7Y7AZRL3.js";import"../../../../chunk-25MYHE4W.js";import"../../../../chunk-H4K3F7PP.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-2KFYIYLI.js";import"../../../../chunk-QBRRFFMZ.js";import"../../../../chunk-Z2AV4BWZ.js";import"../../../../chunk-LG3KEHGD.js";import"../../../../chunk-I3WRA2LH.js";import"../../../../chunk-TD6JBHUS.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-AY3AAV77.js";import"../../../../chunk-ZMOW2YZ4.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-UU6UQ2QY.js";import"../../../../chunk-5B76DT7X.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-3PYDIBTX.js";import"../../../../chunk-DOLVBTCB.js";import"../../../../chunk-QGQWVA7N.js";import"../../../../chunk-AE3IQG7S.js";import"../../../../chunk-R4E2E4NN.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-IWTNUJGY.js";import"../../../../chunk-3KGN6N7E.js";import"../../../../chunk-S4KNPCW3.js";import"../../../../chunk-CQAD5WML.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-O472FAYX.js";import"../../../../chunk-IGE4Y5SE.js";import"../../../../chunk-JFBCE4HN.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../../chunk-
|
|
1
|
+
import{a}from"../../../../chunk-WZBZ7FWP.js";import"../../../../chunk-6IMTMS2S.js";import"../../../../chunk-4NFX7YCT.js";import"../../../../chunk-Z5QEXS6F.js";import"../../../../chunk-LXIWMYM4.js";import"../../../../chunk-RSZAAN37.js";import"../../../../chunk-3GD5ESWN.js";import"../../../../chunk-ASKBYEO7.js";import"../../../../chunk-HMPRWNGG.js";import"../../../../chunk-2S3FHQFS.js";import"../../../../chunk-JGLLABZR.js";import"../../../../chunk-2BYW3BYX.js";import"../../../../chunk-YYWSHRO2.js";import"../../../../chunk-DC7ITY6T.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-OJOF6IYG.js";import"../../../../chunk-7DBKSSDK.js";import"../../../../chunk-KFO2JNF5.js";import"../../../../chunk-2PD7TNFS.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-27JT4NA4.js";import"../../../../chunk-F5QKMDP3.js";import"../../../../chunk-OTMYJWIP.js";import"../../../../chunk-HVUMVDUG.js";import"../../../../chunk-XEZPN5TR.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-YKDRUAY3.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-4WBWZIN5.js";import"../../../../chunk-T4ZOTYOY.js";import"../../../../chunk-3FZ4LE6A.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-JIY6XWSC.js";import"../../../../chunk-BFAOTQGH.js";import"../../../../chunk-DMOLPSXF.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-2KUM2RU4.js";import"../../../../chunk-7Y7AZRL3.js";import"../../../../chunk-25MYHE4W.js";import"../../../../chunk-H4K3F7PP.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-2KFYIYLI.js";import"../../../../chunk-QBRRFFMZ.js";import"../../../../chunk-Z2AV4BWZ.js";import"../../../../chunk-LG3KEHGD.js";import"../../../../chunk-I3WRA2LH.js";import"../../../../chunk-TD6JBHUS.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-AY3AAV77.js";import"../../../../chunk-ZMOW2YZ4.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-UU6UQ2QY.js";import"../../../../chunk-5B76DT7X.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-3PYDIBTX.js";import"../../../../chunk-DOLVBTCB.js";import"../../../../chunk-QGQWVA7N.js";import"../../../../chunk-AE3IQG7S.js";import"../../../../chunk-R4E2E4NN.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-IWTNUJGY.js";import"../../../../chunk-3KGN6N7E.js";import"../../../../chunk-S4KNPCW3.js";import"../../../../chunk-CQAD5WML.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-O472FAYX.js";import"../../../../chunk-IGE4Y5SE.js";import"../../../../chunk-JFBCE4HN.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};
|