@shopify/cli 4.5.1 → 4.5.2

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.
Files changed (277) hide show
  1. package/dist/{analytics-CIKTYXZ6.js → analytics-M7ZU437S.js} +1 -1
  2. package/dist/{analytics-DM7CBV2M.js → analytics-ZRM4FEOE.js} +1 -1
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/{chunk-QMSYJIAU.js → chunk-23LZNWB5.js} +1 -1
  5. package/dist/{chunk-DE3WCNP6.js → chunk-2ACN7JIZ.js} +1 -1
  6. package/dist/{chunk-OCYPWE2O.js → chunk-2TJ6LOCC.js} +1 -1
  7. package/dist/{chunk-MQXSMZQZ.js → chunk-34SINZ7L.js} +1 -1
  8. package/dist/{chunk-ALQKJAHP.js → chunk-35FS2NTM.js} +1 -1
  9. package/dist/{chunk-GAYQKMOM.js → chunk-3EJGRQTH.js} +1 -1
  10. package/dist/{chunk-6Y3QXASG.js → chunk-3IFZECSI.js} +1 -1
  11. package/dist/{chunk-DQE7XRCK.js → chunk-3OCR7P3S.js} +1 -1
  12. package/dist/{chunk-XWQ72WTQ.js → chunk-42RVM4EZ.js} +1 -1
  13. package/dist/{chunk-UZ7U322K.js → chunk-4MLEL3VK.js} +1 -1
  14. package/dist/{chunk-PTIJDS6I.js → chunk-4P54DKG4.js} +1 -1
  15. package/dist/chunk-4ROX2TCK.js +1 -0
  16. package/dist/{chunk-P6S5YLOP.js → chunk-4UJNCOE6.js} +1 -1
  17. package/dist/{chunk-COTYR5RC.js → chunk-4VJ5VBSR.js} +1 -1
  18. package/dist/{chunk-5UXPTCSD.js → chunk-523SJVNT.js} +1 -1
  19. package/dist/{chunk-M2AS5BWX.js → chunk-5CV7GFWZ.js} +1 -1
  20. package/dist/{chunk-MKCXLBQ4.js → chunk-5GVE4ILZ.js} +1 -1
  21. package/dist/{chunk-U7ZRDNZU.js → chunk-5N7H4PJJ.js} +1 -1
  22. package/dist/{chunk-YJCJDCVP.js → chunk-5VC4XXYH.js} +1 -1
  23. package/dist/{chunk-ASOT7VNB.js → chunk-5VRU3BT5.js} +1 -1
  24. package/dist/{chunk-OVLTFTZW.js → chunk-6AWRW3GS.js} +1 -1
  25. package/dist/{chunk-CGULQAB5.js → chunk-6K4DVV37.js} +1 -1
  26. package/dist/{chunk-QDYDB7DY.js → chunk-6VR22Z5R.js} +1 -1
  27. package/dist/{chunk-7ZLKT2TB.js → chunk-6ZWMXMNM.js} +1 -1
  28. package/dist/{chunk-VSZS3FAJ.js → chunk-75DBVSVI.js} +1 -1
  29. package/dist/{chunk-3QVXHF6I.js → chunk-7AY6HLQG.js} +1 -1
  30. package/dist/{chunk-H7DDRARV.js → chunk-7AYYQUJG.js} +1 -1
  31. package/dist/{chunk-ZHPXJRHR.js → chunk-7KWBVZPI.js} +1 -1
  32. package/dist/{chunk-5JCREGSD.js → chunk-7PVNAILK.js} +1 -1
  33. package/dist/{chunk-3SJHCEQR.js → chunk-7RJPTSL6.js} +1 -1
  34. package/dist/{chunk-72K36DID.js → chunk-7TQ6HVHN.js} +1 -1
  35. package/dist/{chunk-MOCD7GFI.js → chunk-AAK3WGD7.js} +1 -1
  36. package/dist/{chunk-XU6CCL4P.js → chunk-AATUQ2AY.js} +2 -2
  37. package/dist/{chunk-VHAZBDFE.js → chunk-ADKFAPED.js} +1 -1
  38. package/dist/{chunk-IIHPONSQ.js → chunk-ANH2V6DJ.js} +1 -1
  39. package/dist/{chunk-ZVQBSXE4.js → chunk-AUAUAK6P.js} +1 -1
  40. package/dist/chunk-B5MFFERE.js +1 -0
  41. package/dist/{chunk-AH2ZJ73H.js → chunk-BLSWUNOK.js} +1 -1
  42. package/dist/{chunk-E7OLCSAL.js → chunk-BQARKSGG.js} +1 -1
  43. package/dist/{chunk-BVFIJSD7.js → chunk-BUVP2UUA.js} +1 -1
  44. package/dist/{chunk-RIRSTGFU.js → chunk-BVWQZKNK.js} +1 -1
  45. package/dist/{chunk-NGPJXONG.js → chunk-CEBDKIVH.js} +1 -1
  46. package/dist/{chunk-UHJ65YFN.js → chunk-CX44CQFL.js} +1 -1
  47. package/dist/{chunk-UB5BVO76.js → chunk-DELISRUH.js} +1 -1
  48. package/dist/{chunk-6XLVKD6Q.js → chunk-DI5ZPWNA.js} +1 -1
  49. package/dist/{chunk-JO4ZHVOD.js → chunk-DIPTSBQM.js} +1 -1
  50. package/dist/{chunk-5NY4HKJF.js → chunk-DN3BB4IO.js} +2 -2
  51. package/dist/{chunk-RFDT525K.js → chunk-DZMXYETH.js} +1 -1
  52. package/dist/{chunk-DKKBJ4H5.js → chunk-EAOT5CK5.js} +1 -1
  53. package/dist/{chunk-E24W34C4.js → chunk-EEEKSYWV.js} +1 -1
  54. package/dist/{chunk-GXUZ3V7S.js → chunk-EOJNSPIH.js} +1 -1
  55. package/dist/{chunk-GQG6WELZ.js → chunk-FSVSM57K.js} +1 -1
  56. package/dist/{chunk-HXYWEKMS.js → chunk-G6BFXMOV.js} +1 -1
  57. package/dist/{chunk-DA4LHFJQ.js → chunk-GMAZ2BQY.js} +1 -1
  58. package/dist/{chunk-DDVT2K7E.js → chunk-HOAVZLEG.js} +1 -1
  59. package/dist/{chunk-EDSKA6UB.js → chunk-HQE5B2CF.js} +1 -1
  60. package/dist/{chunk-KOB6T6NK.js → chunk-HSVZU7MP.js} +1 -1
  61. package/dist/{chunk-5PLLJPEW.js → chunk-HYF3VJYS.js} +1 -1
  62. package/dist/{chunk-5T3OVTF5.js → chunk-I5X3IP6T.js} +1 -1
  63. package/dist/{chunk-5U6MXSNY.js → chunk-ICRQZAXP.js} +1 -1
  64. package/dist/{chunk-ELIH6GCC.js → chunk-IIFRDOYG.js} +1 -1
  65. package/dist/{chunk-GKQ6CSJZ.js → chunk-JADXT2DY.js} +1 -1
  66. package/dist/{chunk-KC2TN7AR.js → chunk-JOKLZMTP.js} +1 -1
  67. package/dist/{chunk-BEXQB4RT.js → chunk-K4APB7O3.js} +1 -1
  68. package/dist/{chunk-SKM44SK5.js → chunk-KB6H5LQJ.js} +1 -1
  69. package/dist/{chunk-SRAHMYWJ.js → chunk-KFUOVO3X.js} +1 -1
  70. package/dist/{chunk-Q2X7IXPQ.js → chunk-KIAMA3L2.js} +1 -1
  71. package/dist/{chunk-KOUKBXOZ.js → chunk-KMQE7WFZ.js} +1 -1
  72. package/dist/{chunk-WO5YOBQ7.js → chunk-KPNNGJAW.js} +1 -1
  73. package/dist/{chunk-2WDKXDFM.js → chunk-KQTVJMV6.js} +1 -1
  74. package/dist/{chunk-QPJQ67GU.js → chunk-L42FYXFW.js} +144 -144
  75. package/dist/{chunk-PGKP7W5T.js → chunk-LGFOE4XL.js} +1 -1
  76. package/dist/{chunk-BZAZMLII.js → chunk-LSCDB36D.js} +1 -1
  77. package/dist/{chunk-ZNWFTUFV.js → chunk-LVLDPYH5.js} +1 -1
  78. package/dist/{chunk-O2PI2PYG.js → chunk-LXOBFJZO.js} +1 -1
  79. package/dist/{chunk-PGN5EZTI.js → chunk-MC466GSO.js} +2 -2
  80. package/dist/{chunk-TXJEP4FB.js → chunk-ML6SILEL.js} +1 -1
  81. package/dist/{chunk-EAXEV45I.js → chunk-MYQTAM77.js} +1 -1
  82. package/dist/{chunk-YBFCDINU.js → chunk-N6IFIMC6.js} +1 -1
  83. package/dist/{chunk-Q6LCSRIW.js → chunk-NGCPVRDM.js} +1 -1
  84. package/dist/{chunk-YYHCPLBX.js → chunk-NIVGP4LB.js} +1 -1
  85. package/dist/{chunk-IHUCBI6L.js → chunk-NSADN5S2.js} +1 -1
  86. package/dist/{chunk-FO6FNY6P.js → chunk-NVA2354A.js} +1 -1
  87. package/dist/{chunk-AI756VJI.js → chunk-NWH3TAHK.js} +1 -1
  88. package/dist/{chunk-MMKBIMMC.js → chunk-NYG2VQFQ.js} +1 -1
  89. package/dist/{chunk-JNEGEJH6.js → chunk-OC5PD4ID.js} +1 -1
  90. package/dist/{chunk-G7QLHXVA.js → chunk-OCBGHOH2.js} +1 -1
  91. package/dist/{chunk-3YCTWCHH.js → chunk-ODSMT2ZC.js} +1 -1
  92. package/dist/{chunk-T5DF2GGD.js → chunk-OJZT3NA2.js} +1 -1
  93. package/dist/{chunk-DCUAVLTM.js → chunk-OMXKQY2L.js} +1 -1
  94. package/dist/{chunk-O7MONSF7.js → chunk-P2SBE77Z.js} +1 -1
  95. package/dist/{chunk-APYASWBA.js → chunk-P6LVSNTT.js} +1 -1
  96. package/dist/{chunk-CNOL26GA.js → chunk-P7OSUECN.js} +1 -1
  97. package/dist/chunk-P7U6BWKN.js +1 -0
  98. package/dist/{chunk-3GMW7IEC.js → chunk-PEYYIWP6.js} +2 -2
  99. package/dist/{chunk-MCATVWHC.js → chunk-Q7DSLGTN.js} +1 -1
  100. package/dist/{chunk-4TC4M4RC.js → chunk-QEVGRNUE.js} +1 -1
  101. package/dist/{chunk-HHSUBF73.js → chunk-QFXJNFMI.js} +1 -1
  102. package/dist/{chunk-IBBFRL3Y.js → chunk-R6A754UW.js} +1 -1
  103. package/dist/{chunk-IRH6IGFT.js → chunk-R7QYSC6T.js} +1 -1
  104. package/dist/{chunk-JOYM7AEQ.js → chunk-RE652L3G.js} +1 -1
  105. package/dist/{chunk-6ZMNEURG.js → chunk-RFOALCVH.js} +1 -1
  106. package/dist/{chunk-5K4DONQJ.js → chunk-RLB5QHWG.js} +1 -1
  107. package/dist/{chunk-UYNCJGMC.js → chunk-RTINXD5Z.js} +1 -1
  108. package/dist/{chunk-XH5FCMS5.js → chunk-SG5TRPJ7.js} +1 -1
  109. package/dist/{chunk-NV5IDANV.js → chunk-SH6Q5CLM.js} +1 -1
  110. package/dist/{chunk-VRRDIXFQ.js → chunk-SSDEWKDZ.js} +1 -1
  111. package/dist/{chunk-JCNRQYRP.js → chunk-SZM6ANMN.js} +1 -1
  112. package/dist/{chunk-Q2UHGP2Z.js → chunk-T35C6NC7.js} +1 -1
  113. package/dist/{chunk-EYDNSYYE.js → chunk-TB7HFPBB.js} +2 -2
  114. package/dist/{chunk-SFMXFH33.js → chunk-TH6CLNGO.js} +1 -1
  115. package/dist/{chunk-2HZMOK4U.js → chunk-TIU7MMRT.js} +2 -2
  116. package/dist/{chunk-OASPW2P2.js → chunk-TM44Z7U7.js} +1 -1
  117. package/dist/{chunk-ICFFBMFB.js → chunk-TNUY66EE.js} +1 -1
  118. package/dist/{chunk-2GDACKZF.js → chunk-TPGREOWO.js} +1 -1
  119. package/dist/{chunk-2MNOWKMI.js → chunk-TSEPNC3O.js} +1 -1
  120. package/dist/{chunk-IRTCLR3F.js → chunk-TTEY5PLR.js} +1 -1
  121. package/dist/{chunk-EXQXGSGY.js → chunk-U3MSTPZP.js} +1 -1
  122. package/dist/{chunk-N5HGT3TE.js → chunk-U4HLIXRH.js} +1 -1
  123. package/dist/{chunk-IDKUJQIG.js → chunk-UAYIFFYJ.js} +3 -3
  124. package/dist/chunk-UHIP5CFI.js +1 -0
  125. package/dist/{chunk-MYQQOOGA.js → chunk-UHMRDG6J.js} +1 -1
  126. package/dist/{chunk-TDCY3BRI.js → chunk-UMB4BWCK.js} +1 -1
  127. package/dist/{chunk-2FIDORHT.js → chunk-UMFVRG33.js} +1 -1
  128. package/dist/{chunk-FPCPFECH.js → chunk-UVIGXZMV.js} +1 -1
  129. package/dist/{chunk-QPY6WJTT.js → chunk-UW6YEKST.js} +1 -1
  130. package/dist/{chunk-U2LQBJJL.js → chunk-V6QZF5YS.js} +1 -1
  131. package/dist/{chunk-TDSR2X7X.js → chunk-VCWESQBC.js} +1 -1
  132. package/dist/{chunk-QVYZZNAS.js → chunk-VGSH33QU.js} +1 -1
  133. package/dist/{chunk-7XQDZF73.js → chunk-VJQJ5PTQ.js} +1 -1
  134. package/dist/{chunk-AVMNXIXF.js → chunk-WDSBR7KX.js} +1 -1
  135. package/dist/{chunk-H7PNMMDO.js → chunk-WN5VTUWJ.js} +1 -1
  136. package/dist/{chunk-7USHLXEN.js → chunk-WTRKTFVE.js} +1 -1
  137. package/dist/{chunk-OHASEW7T.js → chunk-X3VG75LO.js} +1 -1
  138. package/dist/{chunk-YZY4M6IH.js → chunk-XCGV3IJ5.js} +1 -1
  139. package/dist/{chunk-XDEAZP2I.js → chunk-XDV4PRFT.js} +1 -1
  140. package/dist/{chunk-KHXDP3SF.js → chunk-XHTICMA7.js} +1 -1
  141. package/dist/{chunk-WIXW233Y.js → chunk-XS7WK4YK.js} +1 -1
  142. package/dist/{chunk-ZDQNCYRH.js → chunk-XSUZPWYV.js} +1 -1
  143. package/dist/{chunk-T3AJL2M5.js → chunk-XUAAQI5N.js} +1 -1
  144. package/dist/{chunk-ODH2U44N.js → chunk-XXLGM6OZ.js} +1 -1
  145. package/dist/{chunk-TVU4YD2H.js → chunk-YKNMNGV7.js} +1 -1
  146. package/dist/{chunk-FOPGI6GO.js → chunk-YNX4DT2O.js} +1 -1
  147. package/dist/{chunk-WMDYHUPS.js → chunk-YWQPSMRZ.js} +1 -1
  148. package/dist/{chunk-C5U4NLNU.js → chunk-YXNKDX56.js} +1 -1
  149. package/dist/{chunk-4E354M4H.js → chunk-Z33MWGCG.js} +1 -1
  150. package/dist/{chunk-JVMYTC3J.js → chunk-Z6VNPAY7.js} +1 -1
  151. package/dist/{chunk-IQYZAALJ.js → chunk-ZAN7AZTX.js} +1 -1
  152. package/dist/{chunk-IOU6EKTT.js → chunk-ZIM2G3EP.js} +1 -1
  153. package/dist/{chunk-H3QZN45D.js → chunk-ZSYMRT3S.js} +1 -1
  154. package/dist/{chunk-LUG2BZJP.js → chunk-ZT4PUH7L.js} +1 -1
  155. package/dist/{chunk-DU5LZYQX.js → chunk-ZUWEGJA7.js} +1 -1
  156. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  157. package/dist/cli/commands/app/build.js +1 -1
  158. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  159. package/dist/cli/commands/app/bulk/execute.js +1 -1
  160. package/dist/cli/commands/app/bulk/status.js +1 -1
  161. package/dist/cli/commands/app/config/link.js +1 -1
  162. package/dist/cli/commands/app/config/pull.js +1 -1
  163. package/dist/cli/commands/app/config/use.js +1 -1
  164. package/dist/cli/commands/app/config/validate.js +1 -1
  165. package/dist/cli/commands/app/demo/watcher.js +1 -1
  166. package/dist/cli/commands/app/deploy.js +1 -1
  167. package/dist/cli/commands/app/dev/clean.js +1 -1
  168. package/dist/cli/commands/app/dev.js +1 -1
  169. package/dist/cli/commands/app/env/pull.js +1 -1
  170. package/dist/cli/commands/app/env/show.js +1 -1
  171. package/dist/cli/commands/app/execute.js +1 -1
  172. package/dist/cli/commands/app/function/build.js +1 -1
  173. package/dist/cli/commands/app/function/info.js +1 -1
  174. package/dist/cli/commands/app/function/replay.js +1 -1
  175. package/dist/cli/commands/app/function/run.js +1 -1
  176. package/dist/cli/commands/app/function/schema.js +1 -1
  177. package/dist/cli/commands/app/function/typegen.js +1 -1
  178. package/dist/cli/commands/app/generate/extension.js +1 -1
  179. package/dist/cli/commands/app/graphiql.js +1 -1
  180. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  181. package/dist/cli/commands/app/import-extensions.js +1 -1
  182. package/dist/cli/commands/app/info.js +1 -1
  183. package/dist/cli/commands/app/init.js +1 -1
  184. package/dist/cli/commands/app/logs.js +1 -1
  185. package/dist/cli/commands/app/release.js +1 -1
  186. package/dist/cli/commands/app/versions/list.js +1 -1
  187. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  188. package/dist/cli/commands/auth/login.js +1 -1
  189. package/dist/cli/commands/auth/logout.js +1 -1
  190. package/dist/cli/commands/cache/clear.js +1 -1
  191. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  192. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  193. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  194. package/dist/cli/commands/debug/command-flags.js +1 -1
  195. package/dist/cli/commands/doc/fetch.js +1 -1
  196. package/dist/cli/commands/doc/search.js +1 -1
  197. package/dist/cli/commands/docs/generate.js +1 -1
  198. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  199. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  200. package/dist/cli/commands/help.js +1 -1
  201. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  202. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  203. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  204. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  205. package/dist/cli/commands/notifications/generate.js +1 -1
  206. package/dist/cli/commands/notifications/list.js +1 -1
  207. package/dist/cli/commands/organization/list.js +1 -1
  208. package/dist/cli/commands/search.js +1 -1
  209. package/dist/cli/commands/theme/check.js +1 -1
  210. package/dist/cli/commands/theme/console.js +1 -1
  211. package/dist/cli/commands/theme/delete.js +1 -1
  212. package/dist/cli/commands/theme/dev.js +1 -1
  213. package/dist/cli/commands/theme/duplicate.js +1 -1
  214. package/dist/cli/commands/theme/info.js +1 -1
  215. package/dist/cli/commands/theme/init.js +1 -1
  216. package/dist/cli/commands/theme/language-server.js +1 -1
  217. package/dist/cli/commands/theme/list.js +1 -1
  218. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  219. package/dist/cli/commands/theme/open.js +1 -1
  220. package/dist/cli/commands/theme/package.js +1 -1
  221. package/dist/cli/commands/theme/preview.js +1 -1
  222. package/dist/cli/commands/theme/profile.js +1 -1
  223. package/dist/cli/commands/theme/publish.js +1 -1
  224. package/dist/cli/commands/theme/pull.js +1 -1
  225. package/dist/cli/commands/theme/push.js +1 -1
  226. package/dist/cli/commands/theme/rename.js +1 -1
  227. package/dist/cli/commands/theme/share.js +1 -1
  228. package/dist/cli/commands/upgrade.js +1 -1
  229. package/dist/cli/commands/version.js +1 -1
  230. package/dist/command-registry.js +1 -1
  231. package/dist/{conf-store-OC4XCP45.js → conf-store-HOA62HKK.js} +1 -1
  232. package/dist/configs/all.yml +3 -0
  233. package/dist/configs/recommended.yml +3 -0
  234. package/dist/data/filters.json +1 -1
  235. package/dist/data/objects.json +30 -3
  236. package/dist/data/shopify_system_translations.json +48 -4
  237. package/dist/{deprecations-M5JGGK47.js → deprecations-2FTB7JEW.js} +1 -1
  238. package/dist/{dist-Z4H2OM7V.js → dist-63JMGNUL.js} +1 -1
  239. package/dist/dist-6TY6L7OW.js +1 -0
  240. package/dist/{environments-ZLSO534C.js → environments-XVYTKHRZ.js} +1 -1
  241. package/dist/{error-ZBG2MA5U.js → error-SDU6RPQQ.js} +1 -1
  242. package/dist/{error-handler-MCUV4RZV.js → error-handler-4YEBBCUH.js} +1 -1
  243. package/dist/{fs-7LCRIUF3.js → fs-B4UJTUCD.js} +1 -1
  244. package/dist/hooks/app-init.js +1 -1
  245. package/dist/hooks/did-you-mean.js +1 -1
  246. package/dist/hooks/hydrogen-init.js +1 -1
  247. package/dist/hooks/postrun.js +1 -1
  248. package/dist/hooks/prerun.js +1 -1
  249. package/dist/hooks/public-metadata.js +1 -1
  250. package/dist/hooks/sensitive-metadata.js +1 -1
  251. package/dist/hooks/tunnel-provider.js +1 -1
  252. package/dist/hooks/tunnel-start.js +1 -1
  253. package/dist/index.js +1 -1
  254. package/dist/{is-global-RURDJZDU.js → is-global-5LFZDDNH.js} +1 -1
  255. package/dist/{local-5AKD7T5X.js → local-VTYGIJVD.js} +1 -1
  256. package/dist/{local-storage-TJU77VRQ.js → local-storage-A6NBLBB2.js} +1 -1
  257. package/dist/{metadata-D5GLZOLV.js → metadata-FREAI3KR.js} +1 -1
  258. package/dist/{node-package-manager-FA3Y6DPG.js → node-package-manager-N5SUT2WN.js} +1 -1
  259. package/dist/notifications-system-P3SUTD25.js +1 -0
  260. package/dist/{output-FYS764MJ.js → output-VUR2QZPW.js} +1 -1
  261. package/dist/{system-KDM2BB7R.js → system-OXF2P5CT.js} +1 -1
  262. package/dist/tsconfig.tsbuildinfo +1 -1
  263. package/dist/{ui-QIHGXICT.js → ui-N2C5FC3G.js} +1 -1
  264. package/dist/upgrade-AJ36IT7H.js +1 -0
  265. package/dist/{version-LULWCT5R.js → version-DSFP332V.js} +1 -1
  266. package/dist/version-HUOO3XOE.js +1 -0
  267. package/dist/{workerd-N25GY5MX.js → workerd-KPQTFQD4.js} +1 -1
  268. package/oclif.manifest.json +1 -1
  269. package/package.json +7 -7
  270. package/dist/chunk-6ZRHK4ON.js +0 -1
  271. package/dist/chunk-J3KRY2SD.js +0 -1
  272. package/dist/chunk-PGODIZ64.js +0 -1
  273. package/dist/chunk-YB3SGPFF.js +0 -1
  274. package/dist/dist-3SP7TISC.js +0 -1
  275. package/dist/notifications-system-76GJJAJP.js +0 -1
  276. package/dist/upgrade-DY4L43H4.js +0 -1
  277. package/dist/version-WIERCO5R.js +0 -1
@@ -1,4 +1,4 @@
1
- import{Ea as cs,Fb as kt,Hb as gs,Pa as hs,Pb as ms,Qa as us,Ta as fs,Wa as ds,bb as ps,ma as wt,pa as be,ua as ls,wa as bt}from"./chunk-EYDNSYYE.js";import{d as we,g as yt,i as as}from"./chunk-773TIA5M.js";import{a as X,c as gi,e as mi,g as ye}from"./chunk-VKWPEFWQ.js";var ui=gi(l=>{"use strict";ye();Object.defineProperty(l,"__esModule",{value:!0});var yi=X("stream"),W=X("path"),G=X("fs"),Es=X("crypto"),O=class{constructor(e,s,i,r,n){this.kind=e,this.input=s,this.begin=i,this.end=r,this.file=n}getText(){return this.input.slice(this.begin,this.end)}getPosition(){let[e,s]=[1,1];for(let i=0;i<this.begin;i++)this.input[i]===`
1
+ import{Ea as cs,Fb as kt,Hb as gs,Pa as hs,Pb as ms,Qa as us,Ta as fs,Wa as ds,bb as ps,ma as wt,pa as be,ua as ls,wa as bt}from"./chunk-TB7HFPBB.js";import{d as we,g as yt,i as as}from"./chunk-773TIA5M.js";import{a as X,c as gi,e as mi,g as ye}from"./chunk-VKWPEFWQ.js";var ui=gi(l=>{"use strict";ye();Object.defineProperty(l,"__esModule",{value:!0});var yi=X("stream"),W=X("path"),G=X("fs"),Es=X("crypto"),O=class{constructor(e,s,i,r,n){this.kind=e,this.input=s,this.begin=i,this.end=r,this.file=n}getText(){return this.input.slice(this.begin,this.end)}getPosition(){let[e,s]=[1,1];for(let i=0;i<this.begin;i++)this.input[i]===`
2
2
  `?(e++,s=1):s++;return[e,s]}size(){return this.end-this.begin}},D=class{liquidMethodMissing(e,s){}},wi=Object.prototype.toString,ys=String.prototype.toLowerCase,Qt=Object.hasOwnProperty;function d(t){return typeof t=="string"}function x(t){return typeof t=="function"}function bi(t){return t&&x(t.then)}function _e(t){return t&&x(t.next)&&x(t.throw)&&x(t.return)}function Kt(t){return function(...e){return new Promise((s,i)=>{t(...e,(r,n)=>{r?i(r):s(n)})})}}function h(t){return t=m(t),d(t)?t:k(t)?"":S(t)?t.map(e=>h(e)).join(""):String(t)}function ge(t){return t=m(t),S(t)?t:d(t)&&t.length>0?[t]:Ti(t)?Array.from(t):dt(t)?Object.keys(t).map(e=>[e,t[e]]):[]}function L(t){return t=m(t),k(t)?[]:S(t)?t:[t]}function m(t){return t instanceof D&&x(t.valueOf)?t.valueOf():t}function xt(t){return+m(t)||0}function ft(t){return typeof t=="number"}function Vs(t){return t&&x(t.toLiquid)?Vs(t.toLiquid()):t}function k(t){return t==null}function ki(t){return t===void 0}function S(t){return wi.call(t)==="[object Array]"}function Ps(t){return t&&ft(t.length)}function Ti(t){return dt(t)&&Symbol.iterator in t}function ws(t,e){t=t||{};for(let s in t)if(Qt.call(t,s)&&e(t[s],s,t)===!1)break;return t}function xi(t){return t[t.length-1]}function dt(t){let e=typeof t;return t!==null&&(e==="object"||e==="function")}function Cs(t,e,s=1){let i=[];for(let r=t;r<e;r+=s)i.push(r);return i}function oe(t,e,s=" "){return $s(t,e,s,(i,r)=>r+i)}function Si(t,e,s=" "){return $s(t,e,s,(i,r)=>i+r)}function $s(t,e,s,i){t=String(t);let r=e-t.length;return r<=0?t:i(t,s.repeat(r))}function js(t){return t}function _i(t){return[...t].some(s=>s>="a"&&s<="z")?t.toUpperCase():t.toLowerCase()}function Li(t,e){return t.length>e?t.slice(0,e-3)+"...":t}function Fi(t,e){return k(t)&&k(e)?0:k(t)?1:k(e)||t<e?-1:t>e?1:0}function Oi(t,e){return k(t)&&k(e)?0:k(t)?1:k(e)||(t=ys.call(t),e=ys.call(e),t<e)?-1:t>e?1:0}function pt(t){return function(...e){return t.call(this,...e.map(m))}}function V(t){return function(...e){return t.call(this,...e.map(xt))}}function*ke(t){let e=new Set;for(let s of t){let i=JSON.stringify(s);e.has(i)||(e.add(i),yield s)}}var bs="__liquidClass__",E=class extends Error{constructor(e,s){super(typeof e=="string"?e:e.message),this.context="",typeof e!="string"&&Object.defineProperty(this,"originalError",{value:e,enumerable:!1}),Object.defineProperty(this,"token",{value:s,enumerable:!1}),Object.defineProperty(this,bs,{value:"LiquidError",enumerable:!1})}update(){Object.defineProperty(this,"context",{value:vi(this.token),enumerable:!1}),this.message=zi(this.message,this.token),this.stack=this.message+`
3
3
  `+this.context+`
4
4
  `+this.stack,this.originalError&&(this.stack+=`
@@ -11,5 +11,5 @@ From `+this.originalError.stack)}static is(e){return e?.[bs]==="LiquidError"}},L
11
11
  `)}function _r(t){let e=h(t);this.context.memoryLimit.use(e.length);let s=new Map([["<script","</script>"],["<style","</style>"],["<!--","-->"],["<",">"]]),i="",r=0;for(;r<e.length;){let n=e.indexOf("<",r);if(n<0)return i+e.slice(r);i+=e.slice(r,n);for(let[o,a]of s){if(!e.startsWith(o,n))continue;let c=e.indexOf(a,n+o.length);if(c>=0){r=c+a.length;break}s.delete(o)}if(r===n)return i+e.slice(n)}return i}var Lr=Object.freeze({__proto__:null,escape:gt,xml_escape:kr,escape_once:xr,newline_to_br:Sr,strip_html:_r}),It=class{constructor(e){this.mapping=e,this.sep="/"}async exists(e){return this.existsSync(e)}existsSync(e){return!k(this.mapping[e])}async readFile(e){return this.readFileSync(e)}readFileSync(e){let s=this.mapping[e];if(k(s))throw new Error(`ENOENT: ${e}`);return s}dirname(e){let s=e.split(this.sep);return s.pop(),s.join(this.sep)}resolve(e,s,i){if(s+=i,e===".")return s;let r=e.split(/\/+/);for(let n of s.split(this.sep))n==="."||n===""||(n===".."?(r.length>1||r[0]!=="")&&r.pop():r.push(n));return r.join(this.sep)}},Q={root:["."],layouts:["."],partials:["."],relativeReference:!0,jekyllInclude:!1,keyValueSeparator:":",cache:void 0,extname:"",fs:dr,dynamicPartials:!0,jsTruthy:!1,dateFormat:"%A, %B %-e, %Y at %-l:%M %P %z",locale:"",trimTagRight:!1,trimTagLeft:!1,trimOutputRight:!1,trimOutputLeft:!1,greedy:!0,tagDelimiterLeft:"{%",tagDelimiterRight:"%}",outputDelimiterLeft:"{{",outputDelimiterRight:"}}",preserveTimezones:!1,strictFilters:!1,strictVariables:!1,ownPropertyOnly:!0,lenientIf:!1,globals:{},keepOutputType:!1,operators:Zs,memoryLimit:1/0,parseLimit:1/0,renderLimit:1/0};function Fr(t){if(t.hasOwnProperty("root")&&(t.hasOwnProperty("partials")||(t.partials=t.root),t.hasOwnProperty("layouts")||(t.layouts=t.root)),t.hasOwnProperty("cache")){let e;typeof t.cache=="number"?e=t.cache>0?new Pe(t.cache):void 0:typeof t.cache=="object"?e=t.cache:e=t.cache?new Pe(1024):void 0,t.cache=e}return t={...Q,...t.jekyllInclude?{dynamicPartials:!1}:{},...t},(!t.fs.dirname||!t.fs.sep)&&t.relativeReference&&(console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"),t.relativeReference=!1),t.root=Se(t.root),t.partials=Se(t.partials),t.layouts=Se(t.layouts),t.outputEscape=t.outputEscape&&Or(t.outputEscape),t.locale||(t.locale=Ws()?.().resolvedOptions().locale??"en-US"),t.templates&&(t.fs=new It(t.templates),t.relativeReference=!0,t.root=t.partials=t.layouts="."),t}function Or(t){return t==="escape"?gt:t==="json"?Qs.json:(_(x(t),"`outputEscape` need to be of type string or function"),t)}function Se(t){let e=[];return S(t)&&(e=t),d(t)&&(e=[t]),e}function vr(t,e){let s=!1;for(let i=0;i<t.length;i++){let r=t[i];ei(r)&&(!s&&r.trimLeft&&zr(t[i-1],e.greedy),J(r)&&(r.name==="raw"?s=!0:r.name==="endraw"&&(s=!1)),!s&&r.trimRight&&Rr(t[i+1],e.greedy))}}function zr(t,e){if(!t||!mt(t))return;let s=e?te:Is;for(;w[t.input.charCodeAt(t.end-1-t.trimRight)]&s;)t.trimRight++}function Rr(t,e){if(!t||!mt(t))return;let s=e?te:Is;for(;w[t.input.charCodeAt(t.begin+t.trimLeft)]&s;)t.trimLeft++;t.input.charAt(t.begin+t.trimLeft)===`
12
12
  `&&t.trimLeft++}var z=class{constructor(e,s=Q.operators,i,r){this.input=e,this.file=i,this.rawBeginAt=-1,this.p=r?r[0]:0,this.N=r?r[1]:e.length,this.opTrie=vt(s),this.literalTrie=vt(Bs)}readExpression(){return new Ve(this.readExpressionTokens())}*readExpressionTokens(){for(;this.p<this.N;){let e=this.readOperator();if(e){yield e;continue}let s=this.readValue();if(s){yield s;continue}return}}readOperator(){this.skipBlank();let e=this.matchTrie(this.opTrie);if(e!==-1)return new Mt(this.input,this.p,this.p=e,this.file)}matchTrie(e){let s=e,i=this.p,r;for(;s[this.input[i]]&&i<this.N;)s=s[this.input[i++]],s.end&&(r=s);return!r||r.needBoundary&&Te(this.peek(i-this.p))?-1:i}readFilteredValue(){let e=this.p,s=this.readExpression();this.assert(s.valid(),`invalid value expression: ${this.snapshot()}`);let i=this.readFilters();return new Ct(s,i,this.input,e,this.p,this.file)}readFilters(){let e=[];for(;;){let s=this.readFilter();if(!s)return e;e.push(s)}}readFilter(){if(this.skipBlank(),this.end())return null;this.assert(this.read()==="|",'expected "|" before filter');let e=this.readIdentifier();if(!e.size())return this.assert(this.end(),"expected filter name"),null;let s=[];if(this.skipBlank(),this.peek()===":")do{++this.p;let i=this.readFilterArg();i&&s.push(i),this.skipBlank(),this.assert(this.end()||this.peek()===","||this.peek()==="|",()=>`unexpected character ${this.snapshot()}`)}while(this.peek()===",");else if(!(this.peek()==="|"||this.end()))throw this.error('expected ":" after filter name');return new Ee(e.getText(),s,this.input,e.begin,this.p,this.file)}readFilterArg(){let e=this.readValue();if(!e)return;if(this.skipBlank(),this.peek()!==":")return e;++this.p;let s=this.readValue();return[e.getText(),s]}readTopLevelTokens(e=Q){let s=[];for(;this.p<this.N;){let i=this.readTopLevelToken(e);s.push(i)}return vr(s,e),s}readTopLevelToken(e){let{tagDelimiterLeft:s,outputDelimiterLeft:i}=e;return this.rawBeginAt>-1?this.readEndrawOrRawContent(e):this.match(s)?this.readTagToken(e):this.match(i)?this.readOutputToken(e):this.readHTMLToken([s,i])}readHTMLToken(e){let s=this.p;for(;this.p<this.N&&!e.some(i=>this.match(i));)++this.p;return new Me(this.input,s,this.p,this.file)}readTagToken(e){let{file:s,input:i}=this,r=this.p;if(this.readToDelimiter(e.tagDelimiterRight)===-1)throw this.error(`tag ${this.snapshot(r)} not closed`,r);let n=new ue(i,r,this.p,e,s);return n.name==="raw"&&(this.rawBeginAt=r),n}readToDelimiter(e,s=!1){for(this.skipBlank();this.p<this.N;){if(s&&this.peekType()&ks){this.readQuoted();continue}if(++this.p,this.rmatch(e))return this.p}return-1}readOutputToken(e=Q){let{file:s,input:i}=this,{outputDelimiterRight:r}=e,n=this.p;if(this.readToDelimiter(r,!0)===-1)throw this.error(`output ${this.snapshot(n)} not closed`,n);return new At(i,n,this.p,e,s)}readEndrawOrRawContent(e){let{tagDelimiterLeft:s,tagDelimiterRight:i}=e,r=this.p,n=this.readTo(s)-s.length;for(;this.p<this.N;){if(this.readIdentifier().getText()!=="endraw"){n=this.readTo(s)-s.length;continue}for(;this.p<=this.N;){if(this.rmatch(i)){let o=this.p;return r===n?(this.rawBeginAt=-1,new ue(this.input,r,o,e,this.file)):(this.p=n,new Me(this.input,r,n,this.file))}if(this.rmatch(s))break;this.p++}}throw this.error(`raw ${this.snapshot(this.rawBeginAt)} not closed`,r)}readLiquidTagTokens(e=Q){let s=[];for(;this.p<this.N;){let i=this.readLiquidTagToken(e);i&&s.push(i)}return s}readLiquidTagToken(e){if(this.skipBlank(),this.end())return;let s=this.p;this.readToDelimiter(`
13
13
  `);let i=this.p;return new Pt(this.input,s,i,e,this.file)}error(e,s=this.p){return new Le(e,new ie(this.input,s,this.N,this.file))}assert(e,s,i){if(!e)throw this.error(typeof s=="function"?s():s,i)}snapshot(e=this.p){return JSON.stringify(Li(this.input.slice(e,this.N),32))}readWord(){return this.readIdentifier()}readIdentifier(){this.skipBlank();let e=this.p;for(;!this.end()&&Te(this.peek());)++this.p;return new ie(this.input,e,this.p,this.file)}readNonEmptyIdentifier(){let e=this.readIdentifier();return e.size()?e:void 0}readTagName(){return this.skipBlank(),this.input[this.p]==="#"?this.input.slice(this.p,++this.p):this.readIdentifier().getText()}readHashes(e){let s=[];for(;;){let i=this.readHash(e);if(!i)return s;s.push(i)}}readHash(e){this.skipBlank(),this.peek()===","&&++this.p;let s=this.p,i=this.readNonEmptyIdentifier();if(!i)return;let r;this.skipBlank();let n=d(e)?e:e?"=":":";return this.peek()===n&&(++this.p,r=this.readValue()),new Dt(this.input,s,this.p,i,r,this.file)}remaining(){return this.input.slice(this.p,this.N)}advance(e=1){this.p+=e}end(){return this.p>=this.N}read(){return this.input[this.p++]}readTo(e){for(;this.p<this.N;)if(++this.p,this.rmatch(e))return this.p;return-1}readValue(){this.skipBlank();let e=this.p,s=this.readLiteral()||this.readQuoted()||this.readRange()||this.readNumber(),i=this.readProperties(!s);return i.length?new De(s,i,this.input,e,this.p):s}readScopeValue(){this.skipBlank();let e=this.p,s=this.readProperties();if(s.length)return new De(void 0,s,this.input,e,this.p)}readProperties(e=!0){let s=[];for(;;){if(this.peek()==="["){this.p++;let i=this.readValue()||new ie(this.input,this.p,this.p,this.file);this.assert(this.readTo("]")!==-1,"[ not closed"),s.push(i);continue}if(e&&!s.length){let i=this.readNonEmptyIdentifier();if(i){s.push(i);continue}}if(this.peek()==="."&&this.peek(1)!=="."){this.p++;let i=this.readNonEmptyIdentifier();if(!i)break;s.push(i);continue}break}return s}readNumber(){this.skipBlank();let e=!1,s=!1,i=0;for(this.peekType()&Ni&&i++;this.p+i<=this.N;)if(this.peekType(i)&Ai)s=!0,i++;else if(this.peek(i)==="."&&this.peek(i+1)!=="."){if(e||!s)return;e=!0,i++}else break;if(s&&!Te(this.peek(i))){let r=new Nt(this.input,this.p,this.p+i,this.file);return this.advance(i),r}}readLiteral(){this.skipBlank();let e=this.matchTrie(this.literalTrie);if(e===-1)return;let s=new qt(this.input,this.p,e,this.file);return this.p=e,s}readRange(){this.skipBlank();let e=this.p;if(this.peek()!=="(")return;++this.p;let s=this.readValueOrThrow();this.skipBlank(),this.assert(this.read()==="."&&this.read()===".","invalid range syntax");let i=this.readValueOrThrow();return this.skipBlank(),this.assert(this.read()===")","invalid range syntax"),new Vt(this.input,e,this.p,s,i,this.file)}readValueOrThrow(){let e=this.readValue();return this.assert(e,()=>`unexpected token ${this.snapshot()}, value expected`),e}readQuoted(){this.skipBlank();let e=this.p;if(!(this.peekType()&ks))return;++this.p;let s=!1;for(;this.p<this.N&&(++this.p,!(this.input[this.p-1]===this.input[e]&&!s));)s?s=!1:this.input[this.p-1]==="\\"&&(s=!0);return new Et(this.input,e,this.p,this.file)}*readFileNameTemplate(e){let{outputDelimiterLeft:s}=e,i=[","," ","\r",`
14
- `," ",s],r=new Set(i);for(;this.p<this.N&&!r.has(this.peek());)yield this.match(s)?this.readOutputToken(e):this.readHTMLToken(i)}match(e){for(let s=0;s<e.length;s++)if(e[s]!==this.input[this.p+s])return!1;return!0}rmatch(e){for(let s=0;s<e.length;s++)if(e[e.length-1-s]!==this.input[this.p-1-s])return!1;return!0}peekType(e=0){return this.p+e>=this.N?0:w[this.input.charCodeAt(this.p+e)]}peek(e=0){return this.p+e>=this.N?"":this.input[this.p+e]}skipBlank(){for(;this.peekType()&te;)++this.p}},Ce=class{constructor(e,s){this.handlers={},this.stopRequested=!1,this.tokens=e,this.parseToken=s}on(e,s){return this.handlers[e]=s,this}trigger(e,s){let i=this.handlers[e];return i?(i.call(this,s),!0):!1}start(){this.trigger("start");let e;for(;!this.stopRequested&&(e=this.tokens.shift());){if(this.trigger("token",e)||J(e)&&this.trigger(`tag:${e.name}`,e))continue;let s=this.parseToken(e,this.tokens);this.trigger("template",s)}return this.stopRequested||this.trigger("end"),this}stop(){return this.stopRequested=!0,this}},fe=class{constructor(e){this.token=e}},b=class extends fe{constructor(e,s,i){super(e),this.name=e.name,this.liquid=i,this.tokenizer=e.tokenizer}},j=class{constructor(e,s){this.hash={};let i=e instanceof z?e:new z(e,{});for(let r of i.readHashes(s))this.hash[r.name.content]=r.value}*render(e){let s={};for(let i of Object.keys(this.hash))s[i]=this.hash[i]===void 0?!0:yield T(this.hash[i],e);return s}};function Ar(t){return class extends b{constructor(e,s,i){super(e,s,i),x(t.parse)&&t.parse.call(this,e,s)}*render(e,s){let i=yield new j(this.token.args,e.opts.keyValueSeparator).render(e);return yield t.render.call(this,e,s,i)}}}function Ks(t){return S(t)}var de=class{constructor(e,s,i){this.token=e,this.name=e.name,this.handler=x(s)?s:x(s?.handler)?s.handler:js,this.raw=!x(s)&&!!s?.raw,this.args=e.args,this.liquid=i}*render(e,s){let i=[];for(let r of this.args)Ks(r)?i.push([r[0],yield T(r[1],s)]):i.push(yield T(r,s));return yield this.handler.apply({context:s,token:this.token,liquid:this.liquid},[e,...i])}},F=class{constructor(e,s){this.filters=[];let i=typeof e=="string"?new z(e,s.options.operators).readFilteredValue():e;this.initial=i.initial,this.filters=i.filters.map(r=>new de(r,this.getFilter(s,r.name),s))}*value(e,s){s=s||e.opts.lenientIf&&this.filters.length>0&&this.filters[0].name==="default";let i=yield this.initial.evaluate(e,s);for(let r of this.filters)i=yield r.render(i,e);return i}getFilter(e,s){let i=e.filters[s];return _(i||!e.options.strictFilters,()=>`undefined filter: ${s}`),i}},$e=class extends fe{constructor(e,s){super(e);let i=new z(e.input,s.options.operators,e.file,e.contentRange);this.value=new F(i.readFilteredValue(),s);let r=this.value.filters,n=s.options.outputEscape;if(!r[r.length-1]?.raw&&n){let o=new Ee(toString.call(n),[],"",0,0);r.push(new de(o,n,s))}}*render(e,s){let i=yield this.value.value(e,!1);s.write(i)}*arguments(){yield this.value}},Bt=class extends fe{constructor(e){super(e),this.str=e.getContent()}*render(e,s){s.write(this.str)}},H=class t{constructor(e,s){this.segments=e,this.location=s}toString(){return Ie(this.segments,!0)}toArray(){function*e(...s){for(let i of s)i instanceof t?yield Array.from(e(...i.segments)):yield i}return Array.from(e(...this.segments))}},ne=class{constructor(){this.map=new Map}get(e){let s=Ie([e.segments[0]]);return this.map.has(s)||this.map.set(s,[]),this.map.get(s)}has(e){return this.map.has(Ie([e.segments[0]]))}push(e){this.get(e).push(e)}asObject(){return Object.fromEntries(this.map)}},Gs={partials:!0};function*Xs(t,e,s){let i=new ne,r=new ne,n=new ne,o=new je(new Set),a=new Set;function c(u,p){i.push(u);let g=p.alias(u);if(g!==void 0){let y=g.segments[0];d(y)&&!o.has(y)&&r.push(g)}else{let y=u.segments[0];d(y)&&!p.has(y)&&r.push(u)}for(let y of u.segments)y instanceof H&&c(y,p)}function*f(u,p){if(u.arguments)for(let g of u.arguments())for(let y of Rs(g))c(y,p);if(u.localScope)for(let g of u.localScope()){p.add(g.content),p.deleteAlias(g.content);let[y,se]=g.getPosition();n.push(new H([g.content],{row:y,col:se,file:g.file}))}if(u.children)if(u.partialScope){let g=u.partialScope();if(g===void 0){for(let Z of yield u.children(e,s))yield f(Z,p);return}if(a.has(g.name))return;let y=new Set,se=g.isolated?new je(y):p.push(y);for(let Z of g.scope)if(d(Z))y.add(Z);else{let[ns,pi]=Z;y.add(ns);let os=Array.from(Rs(pi));os.length&&se.setAlias(ns,os[0].segments)}for(let Z of yield u.children(e,s))yield f(Z,se),a.add(g.name);se.pop()}else{u.blockScope&&p.push(new Set(u.blockScope()));for(let g of yield u.children(e,s))yield f(g,p);u.blockScope&&p.pop()}}for(let u of t)yield f(u,o);return{variables:i.asObject(),globals:r.asObject(),locals:n.asObject()}}function P(t,e={}){let s={...Gs,...e};return q(Xs(t,s.partials,!1))}function C(t,e={}){let s={...Gs,...e};return M(Xs(t,s.partials,!0))}var je=class{constructor(e){this.stack=[{names:e,aliases:new Map}]}has(e){for(let s of this.stack)if(s.names.has(e))return!0;return!1}push(e){return this.stack.push({names:e,aliases:new Map}),this}pop(){return this.stack.pop()?.names}add(e){this.stack[0].names.add(e)}alias(e){let s=e.segments[0];if(!d(s))return;let i=this.getAlias(s);if(i!==void 0)return new H([...i,...e.segments.slice(1)],e.location)}setAlias(e,s){this.stack[this.stack.length-1].aliases.set(e,s)}deleteAlias(e){this.stack[this.stack.length-1].aliases.delete(e)}getAlias(e){for(let s of this.stack){if(s.aliases.has(e))return s.aliases.get(e);if(s.names.has(e))return}}};function*Rs(t){v(t)?yield*ee(t):t instanceof F&&(yield*Nr(t))}function*Nr(t){for(let e of t.initial.postfix)v(e)&&(yield*ee(e));for(let e of t.filters)for(let s of e.args)Ks(s)&&s[1]?yield*ee(s[1]):v(s)&&(yield*ee(s))}function*ee(t){Xt(t)?(yield*ee(t.lhs),yield*ee(t.rhs)):pe(t)&&(yield Ut(t))}function Ut(t){let e=[],s=t.file,i=t.props[0];s=s||i.file,Be(i)||Ht(i)||Yt(i)?e.push(i.content):pe(i)&&e.push(...Ut(i).segments);for(let o of t.props.slice(1))s=s||o.file,Be(o)||Ht(o)||Yt(o)?e.push(o.content):pe(o)&&e.push(Ut(o));let[r,n]=t.getPosition();return new H(e,{row:r,col:n,file:s})}var As=/^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;function Ie(t,e=!1){let s=[],i=t[0];d(i)&&(!e||i.match(As)?s.push(`${i}`):s.push(`['${i}']`));for(let r of t.slice(1))r instanceof H?s.push(`[${Ie(r.segments)}]`):d(r)?r.match(As)?s.push(`.${r}`):s.push(`['${r}']`):s.push(`[${r}]`);return s.join("")}(function(t){t.Partials="partials",t.Layouts="layouts",t.Root="root"})(l.LookupType||(l.LookupType={}));var Wt=class{constructor(e){if(this.options=e,e.relativeReference){let i=e.fs.sep;_(i,"`fs.sep` is required for relative reference");let r=["."+i,".."+i,"./","../"];this.shouldLoadRelative=n=>r.some(o=>n.startsWith(o))}else this.shouldLoadRelative=i=>!1;let s=e.fs;this.contains=zt(s.contains?.bind(s)||(async()=>!0),s.containsSync?.bind(s)||(()=>!0)),this.exists=zt(s.exists?.bind(s)||(async()=>!1),s.existsSync?.bind(s))}*lookup(e,s,i,r){let n=this.options[s];for(let o of this.candidates(e,n,r)){let a=!1;for(let c of n)if(yield this.contains(!!i,c,o)){a=!0;break}if(a&&(yield this.exists(!!i,o)))return o}throw this.lookupError(e,n)}*candidates(e,s,i){let{fs:r,extname:n}=this.options;this.shouldLoadRelative(e)&&i&&(yield r.resolve(this.dirname(i),e,n));for(let o of s)yield r.resolve(o,e,n);if(r.fallback!==void 0){let o=r.fallback(e);o!==void 0&&(yield o)}}dirname(e){let s=this.options.fs;return _(s.dirname,"`fs.dirname` is required for relative reference"),s.dirname(e)}lookupError(e,s){let i=new Error("ENOENT");return i.message=`ENOENT: Failed to lookup "${e}" in "${s}"`,i.code="ENOENT",i}},N=class{constructor(e){this.liquid=e,this.cache=this.liquid.options.cache,this.fs=this.liquid.options.fs,this.parseFile=this.cache?this._parseFileCached:this._parseFile,this.loader=new Wt(this.liquid.options),this.parseLimit=new ce("parse length",e.options.parseLimit),this.readFile=zt(this.fs.readFile?.bind(this.fs)||(async()=>{throw new Error("readFile not implemented")}),this.fs.readFileSync?.bind(this.fs))}parse(e,s){e=String(e),this.parseLimit.use(e.length);let r=new z(e,this.liquid.options.operators,s).readTopLevelTokens(this.liquid.options);return this.parseTokens(r)}parseTokens(e){let s,i=[],r=[];for(;s=e.shift();)try{i.push(this.parseToken(s,e))}catch(n){if(this.liquid.options.catchAllErrors)r.push(n);else throw n}if(r.length)throw new ve(r);return i}parseToken(e,s){try{if(J(e)){let i=this.liquid.tags[e.name];return _(i,`tag "${e.name}" not found`),new i(e,s,this.liquid,this)}return ti(e)?new $e(e,this.liquid):new Bt(e)}catch(i){throw E.is(i)?i:new Fe(i,e)}}parseStream(e){return new Ce(e,(s,i)=>this.parseToken(s,i))}*_parseFileCached(e,s,i=l.LookupType.Root,r){let n=this.cache,o=this.loader.shouldLoadRelative(e)?r+","+e:i+":"+e,a=yield n.read(o);if(a)return a;let c=this._parseFile(e,s,i,r),f=s?yield c:q(c);n.write(o,f);try{return yield f}catch(u){throw n.remove(o),u}}*_parseFile(e,s,i=l.LookupType.Root,r){let n=yield this.loader.lookup(e,i,s,r);return this.parse(yield this.readFile(!!s,n),n)}};(function(t){t[t.Number=1]="Number",t[t.Literal=2]="Literal",t[t.Tag=4]="Tag",t[t.Output=8]="Output",t[t.HTML=16]="HTML",t[t.Filter=32]="Filter",t[t.Hash=64]="Hash",t[t.PropertyAccess=128]="PropertyAccess",t[t.Word=256]="Word",t[t.Range=512]="Range",t[t.Quoted=1024]="Quoted",t[t.Operator=2048]="Operator",t[t.FilteredValue=4096]="FilteredValue",t[t.Delimited=12]="Delimited"})(l.TokenKind||(l.TokenKind={}));function ei(t){return!!(R(t)&l.TokenKind.Delimited)}function Gt(t){return R(t)===l.TokenKind.Operator}function mt(t){return R(t)===l.TokenKind.HTML}function ti(t){return R(t)===l.TokenKind.Output}function J(t){return R(t)===l.TokenKind.Tag}function Be(t){return R(t)===l.TokenKind.Quoted}function qr(t){return R(t)===l.TokenKind.Literal}function Ht(t){return R(t)===l.TokenKind.Number}function pe(t){return R(t)===l.TokenKind.PropertyAccess}function Yt(t){return R(t)===l.TokenKind.Word}function Xt(t){return R(t)===l.TokenKind.Range}function v(t){return(R(t)&1667)>0}function R(t){return t?t.kind:-1}var Mr=Object.freeze({__proto__:null,isDelimitedToken:ei,isOperatorToken:Gt,isHTMLToken:mt,isOutputToken:ti,isTagToken:J,isQuotedToken:Be,isLiteralToken:qr,isNumberToken:Ht,isPropertyAccessToken:pe,isWordToken:Yt,isRangeToken:Xt,isValueToken:v}),Ue=function(){return Ue=Object.assign||function(e){for(var s,i=1,r=arguments.length;i<r;i++){s=arguments[i];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},Ue.apply(this,arguments)};function Y(t){let e=Object.create(null);return t&&Object.assign(e,t),e}var B=class t{constructor(e={},s=Q,i={},{memoryLimit:r,renderLimit:n}={}){this.scopes=[Y()],this.registers={},this.breakCalled=!1,this.continueCalled=!1,this.sync=!!i.sync,this.opts=s,this.globals=i.globals??s.globals,this.environments=dt(e)?e:Object(e),this.strictVariables=i.strictVariables??this.opts.strictVariables,this.ownPropertyOnly=i.ownPropertyOnly??s.ownPropertyOnly,this.memoryLimit=r??new ce("memory alloc",i.memoryLimit??s.memoryLimit),this.renderLimit=n??new ce("template render",$t().now()+(i.renderLimit??s.renderLimit))}getRegister(e,s=void 0){return this.registers[e]=this.registers[e]||s}setRegister(e,s){return this.registers[e]=s}saveRegister(...e){return e.map(s=>[s,this.getRegister(s)])}restoreRegister(e){return e.forEach(([s,i])=>this.setRegister(s,i))}getAll(){return[this.globals,this.environments,...this.scopes].reduce((e,s)=>Ue(e,s),{})}get(e){return this.getSync(e)}getSync(e){return M(this._get(e))}*_get(e){let s=this.findScope(e[0]);return yield this._getFromScope(s,e)}getFromScope(e,s){return M(this._getFromScope(e,s))}*_getFromScope(e,s,i=this.strictVariables){d(s)&&(s=s.split("."));for(let r=0;r<s.length;r++)if(e=yield this.readProperty(e,s[r]),i&&ki(e))throw new St(s.slice(0,r+1).join("."));return e}push(e){return this.scopes.push(e)}pop(){return this.scopes.pop()}bottom(){return this.scopes[0]}spawn(e={}){return new t(e,this.opts,{sync:this.sync,globals:this.globals,strictVariables:this.strictVariables,ownPropertyOnly:this.ownPropertyOnly},{renderLimit:this.renderLimit,memoryLimit:this.memoryLimit})}findScope(e){for(let s=this.scopes.length-1;s>=0;s--){let i=this.scopes[s];if(e in i)return i}return e in this.environments?this.environments:this.globals}readProperty(e,s){if(e=Vs(e),s=m(s),k(e))return e;if(S(e)&&s<0)return e[e.length+ +s];let i=Dr(e,s,this.ownPropertyOnly);return i===void 0&&e instanceof D?e.liquidMethodMissing(s,this):x(i)?i.call(e):s==="size"?Pr(e):s==="first"?Er(e):s==="last"?Vr(e):i}};function Dr(t,e,s){if(!(s&&!Qt.call(t,e)&&!(t instanceof D)))return t[e]}function Er(t){return S(t)?t[0]:t.first}function Vr(t){return S(t)?t[t.length-1]:t.last}function Pr(t){if(Qt.call(t,"size")||t.size!==void 0)return t.size;if(S(t)||d(t))return t.length;if(typeof t=="object")return Object.keys(t).length}var K;(function(t){t[t.OUTPUT=0]="OUTPUT",t[t.STORE=1]="STORE"})(K||(K={}));var Cr=V(Math.abs),$r=V(Math.max),jr=V(Math.min),Ir=V(Math.ceil),Br=V((t,e,s=!1)=>s?Math.floor(t/e):t/e),Ur=V(Math.floor),Wr=V((t,e)=>t-e),Hr=V((t,e)=>t+e),Yr=V((t,e)=>t%e),Jr=V((t,e)=>t*e);function Zr(t,e=0){t=xt(t),e=xt(e);let s=Math.pow(10,e),i=t*s;return Math.sign(t)*Math.round(Math.abs(i))/s}var Qr=Object.freeze({__proto__:null,abs:Cr,at_least:$r,at_most:jr,ceil:Ir,divided_by:Br,floor:Ur,minus:Wr,plus:Hr,modulo:Yr,times:Jr,round:Zr}),Kr=t=>decodeURIComponent(h(t)).replace(/\+/g," "),Gr=t=>encodeURIComponent(h(t)).replace(/%20/g,"+"),Xr=t=>encodeURIComponent(h(t)).replace(/%20/g,"+").replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),en=t=>encodeURI(h(t)).replace(/%5B/g,"[").replace(/%5D/g,"]"),Ns=/[^\p{M}\p{L}\p{Nd}]+/ug,tn={raw:/\s+/g,default:Ns,pretty:/[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/ug,ascii:/[^A-Za-z0-9]+/g,latin:Ns,none:null};function sn(t,e="default",s=!1){t=h(t);let i=tn[e];return i&&(e==="latin"&&(t=rn(t)),t=t.replace(i,"-").replace(/^-|-$/g,"")),s?t:t.toLowerCase()}function rn(t){return t.replace(/[àáâãäå]/g,"a").replace(/[æ]/g,"ae").replace(/[ç]/g,"c").replace(/[èéêë]/g,"e").replace(/[ìíîï]/g,"i").replace(/[ð]/g,"d").replace(/[ñ]/g,"n").replace(/[òóôõöø]/g,"o").replace(/[ùúûü]/g,"u").replace(/[ýÿ]/g,"y").replace(/[ß]/g,"ss").replace(/[œ]/g,"oe").replace(/[þ]/g,"th").replace(/[ẞ]/g,"SS").replace(/[Œ]/g,"OE").replace(/[Þ]/g,"TH")}var nn=Object.freeze({__proto__:null,url_decode:Kr,url_encode:Gr,cgi_escape:Xr,uri_escape:en,slugify:sn}),on=pt(function(t,e){let s=L(t),i=k(e)?" ":h(e),r=s.length*(1+i.length);return this.context.memoryLimit.use(r),s.join(i)}),an=pt(t=>Ps(t)?xi(t):""),ln=pt(t=>Ps(t)?t[0]:""),cn=pt(function(t){let e=L(t);return this.context.memoryLimit.use(e.length),[...e].reverse()});function*si(t,e,s){let i=[],r=L(t);this.context.memoryLimit.use(r.length);for(let n of r)i.push([n,e?yield this.context._getFromScope(n,h(e).split("."),!1):n]);return i.sort((n,o)=>s(n[1],o[1])).map(n=>n[0])}function*hn(t,e){return yield*si.call(this,t,e,Fi)}function*un(t,e){return yield*si.call(this,t,e,Oi)}var fn=t=>t&&t.length||0;function*dn(t,e){let s=[],i=L(t);this.context.memoryLimit.use(i.length);for(let r of i)s.push(yield this.context._getFromScope(r,h(e),!1));return s}function*pn(t,e){let s=0,i=L(t);for(let r of i){let n=Number(e?yield this.context._getFromScope(r,h(e),!1):r);s+=Number.isNaN(n)?0:n}return s}function gn(t){let e=L(t);return this.context.memoryLimit.use(e.length),e.filter(s=>!k(m(s)))}function ii(t,e=[]){let s=L(t),i=L(e);return this.context.memoryLimit.use(s.length+i.length),s.concat(i)}function mn(t,e){return ii.call(this,t,[e])}function yn(t,e){let s=L(t);this.context.memoryLimit.use(s.length);let i=[...s];return i.unshift(e),i}function wn(t){let e=[...L(t)];return e.pop(),e}function bn(t){let e=L(t);this.context.memoryLimit.use(e.length);let s=[...e];return s.shift(),s}function kn(t,e,s=1){return t=m(t),k(t)?[]:(S(t)||(t=h(t)),e=e<0?t.length+e:e,this.context.memoryLimit.use(s),t.slice(e,e+s))}function ri(t){return this.context.opts.jekyllWhere?e=>ae.is(t)?$(e,t):S(e)?er(e,t):$(e,t):t===void 0?e=>U(e,this.context):e=>$(e,t)}function*ni(t,e,s,i){let r=[];e=L(e),this.context.memoryLimit.use(e.length);let n=new z(h(s)).readScopeValue();for(let a of e)r.push(yield T(n,this.context.spawn(a)));let o=ri.call(this,i);return e.filter((a,c)=>o(r[c])===t)}function*oi(t,e,s,i){let r=[],n=new F(h(i),this.liquid),o=L(e);this.context.memoryLimit.use(o.length);for(let a of o){this.context.push({[s]:a});let c=yield n.value(this.context);this.context.pop(),c===t&&r.push(a)}return r}function*Tn(t,e,s){return yield*ni.call(this,!0,t,e,s)}function*xn(t,e,s){return yield*ni.call(this,!1,t,e,s)}function*Sn(t,e,s){return yield*oi.call(this,!0,t,e,s)}function*_n(t,e,s){return yield*oi.call(this,!1,t,e,s)}function*Ln(t,e){let s=new Map;t=ge(t);let i=new z(h(e)).readScopeValue();this.context.memoryLimit.use(t.length);for(let r of t){let n=yield T(i,this.context.spawn(r));s.has(n)||s.set(n,[]),s.get(n).push(r)}return[...s.entries()].map(([r,n])=>({name:r,items:n}))}function*Fn(t,e,s){let i=new Map,r=new F(h(s),this.liquid);t=ge(t),this.context.memoryLimit.use(t.length);for(let n of t){this.context.push({[e]:n});let o=yield r.value(this.context);this.context.pop(),i.has(o)||i.set(o,[]),i.get(o).push(n)}return[...i.entries()].map(([n,o])=>({name:n,items:o}))}function*es(t,e,s){let i=new z(h(e)).readScopeValue(),r=L(t),n=ri.call(this,s);for(let o=0;o<r.length;o++){let a=yield T(i,this.context.spawn(r[o]));if(n(a))return[o,r[o]]}}function*ts(t,e,s){let i=new F(h(s),this.liquid),r=L(t);for(let n=0;n<r.length;n++){this.context.push({[e]:r[n]});let o=yield i.value(this.context);if(this.context.pop(),o)return[n,r[n]]}}function*On(t,e,s){return!!(yield*es.call(this,t,e,s))}function*vn(t,e,s){return!!(yield*ts.call(this,t,e,s))}function*zn(t,e,s){let i=yield*es.call(this,t,e,s);return i?i[0]:void 0}function*Rn(t,e,s){let i=yield*ts.call(this,t,e,s);return i?i[0]:void 0}function*An(t,e,s){let i=yield*es.call(this,t,e,s);return i?i[1]:void 0}function*Nn(t,e,s){let i=yield*ts.call(this,t,e,s);return i?i[1]:void 0}function qn(t){return t=L(t),this.context.memoryLimit.use(t.length),[...new Set(t)]}function Mn(t,e=1){if(t=m(t),k(t))return[];S(t)||(t=h(t)),this.context.memoryLimit.use(e);let s=[...t].sort(()=>Math.random()-.5);return e===1?s[0]:s.slice(0,e)}var Dn=Object.freeze({__proto__:null,join:on,last:an,first:ln,reverse:cn,sort:hn,sort_natural:un,size:fn,map:dn,sum:pn,compact:gn,concat:ii,push:mn,unshift:yn,pop:wn,shift:bn,slice:kn,where:Tn,reject:xn,where_exp:Sn,reject_exp:_n,group_by:Ln,group_by_exp:Fn,has:On,has_exp:vn,find_index:zn,find_index_exp:Rn,find:An,find_exp:Nn,uniq:qn,sample:Mn});function ss(t,e,s){let i=(t?.length??0)+(s?.length??0);this.context.memoryLimit.use(i);let r=li(t,this.context.opts,s);return r?(e=m(e),e=k(e)?this.context.opts.dateFormat:h(e),this.context.memoryLimit.use(e.length),xe(r,e,this.context.memoryLimit)):t}function En(t){return ss.call(this,t,"%Y-%m-%dT%H:%M:%S%:z")}function Vn(t){return ss.call(this,t,"%a, %d %b %Y %H:%M:%S %z")}function Pn(t,e,s){return ai.call(this,t,"%b",e,s)}function Cn(t,e,s){return ai.call(this,t,"%B",e,s)}function ai(t,e,s,i){let r=li(t,this.context.opts);if(!r)return t;let n=this.context.memoryLimit;if(s==="ordinal"){let o=r.getDate();return i==="US"?xe(r,`${e} ${o}%q, %Y`,n):xe(r,`${o}%q ${e} %Y`,n)}return xe(r,`%d ${e} %Y`,n)}function li(t,e,s){let i,r=s??e.timezoneOffset,n=e.locale;if(t=m(t),!k(t))return t==="now"||t==="today"?i=new I(Date.now(),n,r):ft(t)?i=new I(t*1e3,n,r):d(t)?/^\d+$/.test(t)?i=new I(+t*1e3,n,r):e.preserveTimezones&&s===void 0?i=I.createDateFixedToTimezone(t,n):i=new I(t,n,r):i=new I(t,n,r),i.valid()?i:void 0}var $n=Object.freeze({__proto__:null,date:ss,date_to_xmlschema:En,date_to_rfc822:Vn,date_to_string:Pn,date_to_long_string:Cn}),Tt=/[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu,qs=/[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;function jn(t,e){_(arguments.length===2,"append expect 2 arguments");let s=h(t),i=h(e);return this.context.memoryLimit.use(s.length+i.length),s+i}function In(t,e){_(arguments.length===2,"prepend expect 2 arguments");let s=h(t),i=h(e);return this.context.memoryLimit.use(s.length+i.length),i+s}function Bn(t,e){let s=h(t);if(this.context.memoryLimit.use(s.length),e){e=h(e),this.context.memoryLimit.use(e.length);for(let i=0,r=new Set(e);i<s.length;i++)if(!r.has(s[i]))return s.slice(i);return""}return s.trimStart()}function Un(t){let e=h(t);return this.context.memoryLimit.use(e.length),e.toLowerCase()}function Wn(t){let e=h(t);return this.context.memoryLimit.use(e.length),h(e).toUpperCase()}function Hn(t,e){let s=h(t);return e=h(e),this.context.memoryLimit.use(s.length+e.length),s.split(e).join("")}function Yn(t,e){let s=h(t);return e=h(e),this.context.memoryLimit.use(s.length+e.length),s.replace(e,"")}function Jn(t,e){let s=h(t),i=h(e);this.context.memoryLimit.use(s.length+i.length);let r=s.lastIndexOf(i);return r===-1?s:s.substring(0,r)+s.substring(r+i.length)}function Zn(t,e){if(t=h(t),this.context.memoryLimit.use(t.length),e){e=h(e),this.context.memoryLimit.use(e.length);for(let s=t.length-1,i=new Set(e);s>=0;s--)if(!i.has(t[s]))return t.slice(0,s+1);return""}return t.trimEnd()}function Qn(t,e){let s=h(t);this.context.memoryLimit.use(s.length);let i=s.split(h(e));for(;i.length&&i[i.length-1]==="";)i.pop();return i}function Kn(t,e){let s=h(t);if(this.context.memoryLimit.use(s.length),e){let i=new Set(h(e));this.context.memoryLimit.use(i.size);let r=0,n=s.length-1;for(;i.has(s[r]);)r++;for(;n>=r&&i.has(s[n]);)n--;return s.slice(r,n+1)}return s.trim()}function Gn(t){let e=h(t);return this.context.memoryLimit.use(e.length),e.replace(/\r?\n/gm,"")}function Xn(t){return t=h(t),this.context.memoryLimit.use(t.length),t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function eo(t,e,s){let i=h(t);e=h(e),s=h(s);let r=i.split(e),n=i.length+(r.length-1)*(s.length-e.length);return this.context.memoryLimit.use(n),r.join(s)}function to(t,e,s){let i=h(t);return e=h(e),s=h(s),this.context.memoryLimit.use(i.length+e.length+s.length),i.replace(e,()=>s)}function so(t,e,s){let i=h(t),r=h(e),n=h(s);this.context.memoryLimit.use(i.length+r.length+n.length);let o=i.lastIndexOf(r);return o===-1?i:i.substring(0,o)+n+i.substring(o+r.length)}function io(t,e=50,s="..."){let i=h(t);return s=h(s),this.context.memoryLimit.use(i.length+s.length),i.length<=e?t:i.substring(0,e-s.length)+s}function ro(t,e=15,s="..."){let i=h(t);s=h(s),this.context.memoryLimit.use(i.length+s.length);let r=i.split(/\s+/);e<=0&&(e=1);let n=r.slice(0,e).join(" ");return r.length>=e&&(n+=s),n}function no(t){let e=h(t);return this.context.memoryLimit.use(e.length),e.replace(/\s+/g," ")}function oo(t,e){let s=h(t);if(this.context.memoryLimit.use(s.length),t=s.trim(),!t)return 0;switch(e){case"cjk":return(t.match(Tt)||[]).length+(t.match(qs)||[]).length;case"auto":return Tt.test(t)?t.match(Tt).length+(t.match(qs)||[]).length:t.split(/\s+/).length;default:return t.split(/\s+/).length}}function ao(t,e="and"){switch(e=h(e),this.context.memoryLimit.use(t.length+e.length),t.length){case 0:return"";case 1:return t[0];case 2:return`${t[0]} ${e} ${t[1]}`;default:return`${t.slice(0,-1).join(", ")}, ${e} ${t[t.length-1]}`}}var lo=Object.freeze({__proto__:null,append:jn,prepend:In,lstrip:Bn,downcase:Un,upcase:Wn,remove:Hn,remove_first:Yn,remove_last:Jn,rstrip:Zn,split:Qn,strip:Kn,strip_newlines:Gn,capitalize:Xn,replace:eo,replace_first:to,replace_last:so,truncate:io,truncatewords:ro,normalize_whitespace:no,number_of_words:oo,array_to_sentence_string:ao});function co(t){return Buffer.from(t,"utf8").toString("base64")}function ho(t){return Buffer.from(t,"base64").toString("utf8")}function uo(t){if(typeof Buffer<"u"&&Buffer.isBuffer(t))return this.context.memoryLimit.use(t.byteLength),t.toString("base64");let e=h(t);return this.context.memoryLimit.use(e.length),co(e)}function fo(t){let e=h(t);return this.context.memoryLimit.use(e.length),ho(e)}var po=Object.freeze({__proto__:null,base64_encode:uo,base64_decode:fo});function go(t){return Es.createHash("sha256").update(t,"utf8").digest("hex")}function mo(t,e){return Es.createHmac("sha256",e).update(t,"utf8").digest("hex")}function yo(t){let e=h(t);return this.context.memoryLimit.use(e.length),go(e)}function wo(t,e){let s=h(t),i=h(e);return this.context.memoryLimit.use(s.length+i.length),mo(s,i)}var bo=Object.freeze({__proto__:null,sha256:yo,hmac_sha256:wo}),ci={...Lr,...Qr,...nn,...Dn,...$n,...lo,...po,...bo,...Qs},We=class extends b{constructor(e,s,i){super(e,s,i),this.identifier=this.tokenizer.readIdentifier(),this.key=this.identifier.content,this.tokenizer.assert(this.key,"expected variable name"),this.tokenizer.skipBlank(),this.tokenizer.assert(this.tokenizer.peek()==="=",'expected "="'),this.tokenizer.advance(),this.value=new F(this.tokenizer.readFilteredValue(),this.liquid)}*render(e){e.bottom()[this.key]=yield this.value.value(e,this.liquid.options.lenientIf)}*arguments(){yield this.value}*localScope(){yield this.identifier}},Ms=["offset","limit","reversed"],He=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer.readIdentifier(),o=this.tokenizer.readIdentifier(),a=this.tokenizer.readValue();if(!n.size()||o.content!=="in"||!a)throw new Error(`illegal tag: ${e.getText()}`);this.variable=n.content,this.collection=a,this.hash=new j(this.tokenizer,i.options.keyValueSeparator),this.templates=[],this.elseTemplates=[];let c,f=r.parseStream(s).on("start",()=>c=this.templates).on("tag:else",u=>{Ae(u.args),c=this.elseTemplates}).on("tag:endfor",u=>{Ae(u.args),f.stop()}).on("template",u=>c.push(u)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});f.start()}*render(e,s){let i=this.liquid.renderer,r=ge(yield T(this.collection,e));if(!r.length){yield i.renderTemplates(this.elseTemplates,e,s);return}let n="continue-"+this.variable+"-"+this.collection.getText();e.push(Y({continue:e.getRegister(n,{})}));let o=yield this.hash.render(e);e.pop(),r=(this.liquid.options.orderedFilterParameters?Object.keys(o).filter(f=>Ms.includes(f)):Ms.filter(f=>o[f]!==void 0)).reduce((f,u)=>u==="offset"?To(f,o.offset):u==="limit"?xo(f,o.limit):ko(f),r),e.setRegister(n,(o.offset||0)+r.length);let c=Y({forloop:new le(r.length,this.collection.getText(),this.variable)});e.push(c);for(let f of r){if(c[this.variable]=f,e.continueCalled=e.breakCalled=!1,yield i.renderTemplates(this.templates,e,s),e.breakCalled)break;c.forloop.next()}e.continueCalled=e.breakCalled=!1,e.pop()}*children(){let e=this.templates.slice();return this.elseTemplates&&e.push(...this.elseTemplates),e}*arguments(){yield this.collection;for(let e of Object.values(this.hash.hash))v(e)&&(yield e)}blockScope(){return[this.variable,"forloop"]}};function ko(t){return[...t].reverse()}function To(t,e){return t.slice(e)}function xo(t,e){return t.slice(0,e)}var Ye=class extends b{constructor(e,s,i,r){for(super(e,s,i),this.templates=[],this.identifier=this.readVariable(),this.variable=this.identifier.content;s.length;){let n=s.shift();if(J(n)&&n.name==="endcapture")return;this.templates.push(r.parseToken(n,s))}throw new Error(`tag ${e.getText()} not closed`)}readVariable(){let e=this.tokenizer.readIdentifier();if(e.content||(e=this.tokenizer.readQuoted(),e))return e;throw this.tokenizer.error("invalid capture name")}*render(e){let i=yield this.liquid.renderer.renderTemplates(this.templates,e);e.bottom()[this.variable]=i}*children(){return this.templates}*localScope(){yield this.identifier}},Je=class extends b{constructor(e,s,i,r){super(e,s,i),this.branches=[],this.elseTemplates=[],this.value=new F(this.tokenizer.readFilteredValue(),this.liquid),this.elseTemplates=[];let n=[],o=0,a=r.parseStream(s).on("tag:when",c=>{if(o>0)return;n=[];let f=[];for(;!c.tokenizer.end();)f.push(c.tokenizer.readValueOrThrow()),c.tokenizer.skipBlank(),c.tokenizer.peek()===","?c.tokenizer.readTo(","):c.tokenizer.readTo("or");this.branches.push({values:f,templates:n})}).on("tag:else",()=>{o++,n=this.elseTemplates}).on("tag:endcase",()=>a.stop()).on("template",c=>{(n!==this.elseTemplates||o===1)&&n.push(c)}).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});a.start()}*render(e,s){let i=this.liquid.renderer,r=m(yield this.value.value(e,e.opts.lenientIf)),n=!1;for(let o of this.branches)for(let a of o.values){let c=yield T(a,e,e.opts.lenientIf);if($(r,c)){yield i.renderTemplates(o.templates,e,s),n=!0;break}}n||(yield i.renderTemplates(this.elseTemplates,e,s))}*arguments(){yield this.value,yield*this.branches.flatMap(e=>e.values)}*children(){let e=this.branches.flatMap(s=>s.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}},Ze=class extends b{constructor(e,s,i){for(super(e,s,i);s.length;){let r=s.shift();if(J(r)&&r.name==="endcomment")return}throw new Error(`tag ${e.getText()} not closed`)}render(){}},Qe=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer;for(this.file=is(n,this.liquid,r),this.currentFile=e.file;!n.end();){n.skipBlank();let o=n.p,a=n.readIdentifier();if((a.content==="with"||a.content==="for")&&(n.skipBlank(),n.peek()!==":")){let c=n.readValue();if(c){let f=n.p,u=n.readIdentifier(),p;u.content==="as"?p=n.readIdentifier():n.p=f,this[a.content]={value:c,alias:p&&p.content},n.skipBlank(),n.peek()===","&&n.advance();continue}}n.p=o;break}this.hash=new j(n,i.options.keyValueSeparator)}*render(e,s){let{liquid:i,hash:r}=this,n=yield rs(this.file,e,i);_(n,()=>`illegal file path "${n}"`);let o=e.spawn(),a=o.bottom();if(Ue(a,yield r.render(e)),this.with){let{value:c,alias:f}=this.with;a[f||n]=yield T(c,e)}if(this.for){let{value:c,alias:f}=this.for,u=ge(yield T(c,e));a.forloop=new le(u.length,c.getText(),f);for(let p of u){a[f]=p;let g=yield i._parsePartialFile(n,o.sync,this.currentFile);yield i.renderer.renderTemplates(g,o,s),a.forloop.next()}}else{let c=yield i._parsePartialFile(n,o.sync,this.currentFile);yield i.renderer.renderTemplates(c,o,s)}}*children(e,s){return e&&d(this.file)?yield this.liquid._parsePartialFile(this.file,s,this.currentFile):[]}partialScope(){if(d(this.file)){let e=Object.keys(this.hash.hash);if(this.with){let{value:s,alias:i}=this.with;d(i)?e.push([i,s]):d(this.file)&&e.push([this.file,s])}if(this.for){let{value:s,alias:i}=this.for;d(i)?e.push([i,s]):d(this.file)&&e.push([this.file,s])}return{name:this.file,isolated:!0,scope:e}}}*arguments(){for(let e of Object.values(this.hash.hash))v(e)&&(yield e);if(this.with){let{value:e}=this.with;v(e)&&(yield e)}if(this.for){let{value:e}=this.for;v(e)&&(yield e)}}};function is(t,e,s){if(e.options.dynamicPartials){let n=t.readValue();if(t.assert(n,"illegal file path"),n.getText()==="none")return;if(Be(n)){let o=s.parse(Js(n));return Ds(o)}return n}let i=[...t.readFileNameTemplate(e.options)],r=Ds(s.parseTokens(i));return r==="none"?void 0:r}function Ds(t){return t.length===1&&mt(t[0].token)?t[0].token.getContent():t}function*rs(t,e,s){return typeof t=="string"?t:Array.isArray(t)?s.renderer.renderTemplates(t,e):yield T(t,e)}var Ke=class extends b{constructor(e,s,i,r){super(e,s,i);let{tokenizer:n}=e;this.file=is(n,this.liquid,r),this.currentFile=e.file;let o=n.p;n.readIdentifier().content==="with"?(n.skipBlank(),n.peek()!==":"?this.withVar=n.readValue():n.p=o):n.p=o,this.hash=new j(n,i.options.jekyllInclude||i.options.keyValueSeparator)}*render(e,s){let{liquid:i,hash:r,withVar:n}=this,{renderer:o}=i,a=yield rs(this.file,e,i);_(a,()=>`illegal file path "${a}"`);let c=e.saveRegister("blocks","blockMode");e.setRegister("blocks",{}),e.setRegister("blockMode",K.OUTPUT);let f=Y(yield r.render(e));n&&(f[a]=yield T(n,e));let u=yield i._parsePartialFile(a,e.sync,this.currentFile);e.push(e.opts.jekyllInclude?Y({include:f}):f),yield o.renderTemplates(u,e,s),e.pop(),e.restoreRegister(c)}*children(e,s){return e&&d(this.file)?yield this.liquid._parsePartialFile(this.file,s,this.currentFile):[]}partialScope(){if(d(this.file)){let e;return this.liquid.options.jekyllInclude?e=["include"]:(e=Object.keys(this.hash.hash),this.withVar&&e.push([this.file,this.withVar])),{name:this.file,isolated:!1,scope:e}}}*arguments(){yield*Object.values(this.hash.hash).filter(v),v(this.file)&&(yield this.file),v(this.withVar)&&(yield this.withVar)}},Ge=class extends b{constructor(e,s,i){super(e,s,i),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,s){let i=e.environments;ft(i[this.variable])||(i[this.variable]=0),s.write(h(--i[this.variable]))}*localScope(){yield this.identifier}},Xe=class extends b{constructor(e,s,i){super(e,s,i),this.candidates=[];let r=this.tokenizer.readValue();for(this.tokenizer.skipBlank(),r&&(this.tokenizer.peek()===":"?(this.group=r,this.tokenizer.advance()):this.candidates.push(r));!this.tokenizer.end();){let n=this.tokenizer.readValue();n&&this.candidates.push(n),this.tokenizer.readTo(",")}this.tokenizer.assert(this.candidates.length,()=>`empty candidates: "${e.getText()}"`)}*render(e,s){let r=`cycle:${yield T(this.group,e)}:`+this.candidates.join(","),n=e.getRegister("cycle",{}),o=n[r];o===void 0&&(o=n[r]=0);let a=this.candidates[o];return o=(o+1)%this.candidates.length,n[r]=o,yield T(a,e)}*arguments(){yield*this.candidates,this.group&&(yield this.group)}},et=class extends b{constructor(e,s,i,r){super(e,s,i),this.branches=[];let n=[];r.parseStream(s).on("start",()=>this.branches.push({value:new F(e.tokenizer.readFilteredValue(),this.liquid),templates:n=[]})).on("tag:elsif",o=>{_(!this.elseTemplates,"unexpected elsif after else"),this.branches.push({value:new F(o.tokenizer.readFilteredValue(),this.liquid),templates:n=[]})}).on("tag:else",o=>{Ae(o.args),_(!this.elseTemplates,"duplicated else"),n=this.elseTemplates=[]}).on("tag:endif",function(o){Ae(o.args),this.stop()}).on("template",o=>n.push(o)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)}).start()}*render(e,s){let i=this.liquid.renderer;for(let{value:r,templates:n}of this.branches){let o=yield r.value(e,e.opts.lenientIf);if(U(o,e)){yield i.renderTemplates(n,e,s);return}}yield i.renderTemplates(this.elseTemplates||[],e,s)}*children(){let e=this.branches.flatMap(s=>s.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}},tt=class extends b{constructor(e,s,i){super(e,s,i),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,s){let i=e.environments;ft(i[this.variable])||(i[this.variable]=0);let r=i[this.variable];i[this.variable]++,s.write(h(r))}*localScope(){yield this.identifier}},st=class extends b{constructor(e,s,i,r){super(e,s,i),this.file=is(this.tokenizer,this.liquid,r),this.currentFile=e.file,this.args=new j(this.tokenizer,i.options.keyValueSeparator),this.templates=r.parseTokens(s)}*render(e,s){let{liquid:i,args:r,file:n}=this,{renderer:o}=i;if(n===void 0){e.setRegister("blockMode",K.OUTPUT),yield o.renderTemplates(this.templates,e,s);return}let a=yield rs(this.file,e,i);_(a,()=>`illegal file path "${a}"`);let c=yield i._parseLayoutFile(a,e.sync,this.currentFile);e.setRegister("blockMode",K.STORE);let f=yield o.renderTemplates(this.templates,e),u=e.getRegister("blocks",{});u[""]===void 0&&(u[""]=(p,g)=>g.write(f)),e.setRegister("blockMode",K.OUTPUT),e.push(Y(yield r.render(e))),yield o.renderTemplates(c,e,s),e.pop()}*children(e){let s=this.templates.slice();return e&&d(this.file)&&s.push(...yield this.liquid._parsePartialFile(this.file,!0,this.currentFile)),s}*arguments(){for(let e of Object.values(this.args.hash))v(e)&&(yield e);v(this.file)&&(yield this.file)}partialScope(){if(d(this.file))return{name:this.file,isolated:!1,scope:Object.keys(this.args.hash)}}},it=class extends b{constructor(e,s,i,r){super(e,s,i),this.templates=[];let n=/\w+/.exec(e.args);for(this.block=n?n[0]:"";s.length;){let o=s.shift();if(J(o)&&o.name==="endblock")return;let a=r.parseToken(o,s);this.templates.push(a)}throw new Error(`tag ${e.getText()} not closed`)}*render(e,s){let i=this.getBlockRender(e);e.getRegister("blockMode")===K.STORE?e.getRegister("blocks",{})[this.block]=i:yield i(new qe,s)}getBlockRender(e){let s=this,{liquid:i,templates:r}=this,n=e.getRegister("blocks",{})[this.block],o=function*(a,c){let f=e.getRegister("blockStack",[]);if(f.includes(s))throw new Error("block tag cannot be nested");f.push(s),e.push(Y({block:a})),yield i.renderer.renderTemplates(r,e,c),e.pop(),f.pop()};return n?(a,c)=>n(new qe(f=>o(a,f)),c):o}*children(){return this.templates}blockScope(){return["block"]}},rt=class extends b{constructor(e,s,i){for(super(e,s,i),this.tokens=[];s.length;){let r=s.shift();if(J(r)&&r.name==="endraw")return;this.tokens.push(r)}throw new Error(`tag ${e.getText()} not closed`)}render(){return this.tokens.map(e=>e.getText()).join("")}},Jt=class extends le{constructor(e,s,i,r){super(e,i,r),this.length=e,this.cols=s}row(){return Math.floor(this.i/this.cols)+1}col0(){return this.i%this.cols}col(){return this.col0()+1}col_first(){return this.col0()===0}col_last(){return this.col()===this.cols}},nt=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer.readIdentifier();this.tokenizer.skipBlank();let o=this.tokenizer.readIdentifier(),a=this.tokenizer.readValue();if(o.content!=="in"||!a)throw new Error(`illegal tag: ${e.getText()}`);this.variable=n.content,this.collection=a,this.args=new j(this.tokenizer,i.options.keyValueSeparator),this.templates=[];let c,f=r.parseStream(s).on("start",()=>c=this.templates).on("tag:endtablerow",()=>f.stop()).on("template",u=>c.push(u)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});f.start()}*render(e,s){let i=ge(yield T(this.collection,e)),r=yield this.args.render(e),n=r.offset||0,o=r.limit===void 0?i.length:r.limit;i=i.slice(n,n+o);let a=r.cols||i.length,c=this.liquid.renderer,f=new Jt(i.length,a,this.collection.getText(),this.variable),u=Y({tablerowloop:f});e.push(u);for(let p=0;p<i.length;p++,f.next())u[this.variable]=i[p],f.col0()===0&&(f.row()!==1&&s.write("</tr>"),s.write(`<tr class="row${f.row()}">`)),s.write(`<td class="col${f.col()}">`),yield c.renderTemplates(this.templates,e,s),s.write("</td>");i.length&&s.write("</tr>"),e.pop()}*children(){return this.templates}*arguments(){yield this.collection;for(let e of Object.values(this.args.hash))v(e)&&(yield e)}blockScope(){return[this.variable,"tablerowloop"]}},ot=class extends b{constructor(e,s,i,r){super(e,s,i),this.branches=[],this.elseTemplates=[];let n=[],o=0;r.parseStream(s).on("start",()=>this.branches.push({value:new F(e.tokenizer.readFilteredValue(),this.liquid),test:me,templates:n=[]})).on("tag:elsif",a=>{if(o>0){n=[];return}this.branches.push({value:new F(a.tokenizer.readFilteredValue(),this.liquid),test:U,templates:n=[]})}).on("tag:else",()=>{o++,n=this.elseTemplates}).on("tag:endunless",function(){this.stop()}).on("template",a=>{(n!==this.elseTemplates||o===1)&&n.push(a)}).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)}).start()}*render(e,s){let i=this.liquid.renderer;for(let{value:r,test:n,templates:o}of this.branches){let a=yield r.value(e,e.opts.lenientIf);if(n(a,e)){yield i.renderTemplates(o,e,s);return}}yield i.renderTemplates(this.elseTemplates,e,s)}*children(){let e=this.branches.flatMap(s=>s.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}},at=class extends b{render(e,s){e.breakCalled=!0}},lt=class extends b{render(e,s){e.continueCalled=!0}},ct=class extends b{constructor(e,s,i){super(e,s,i),this.tokenizer.skipBlank(),this.tokenizer.end()||(this.value=new F(this.tokenizer.readFilteredValue(),this.liquid))}*render(e,s){if(!this.value)return;let i=yield this.value.value(e,!1);s.write(i)}*arguments(){this.value&&(yield this.value)}},ht=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer.readLiquidTagTokens(this.liquid.options);this.templates=r.parseTokens(n)}*render(e,s){yield this.liquid.renderer.renderTemplates(this.templates,e,s)}*children(){return this.templates}},ut=class extends b{constructor(e,s,i){if(super(e,s,i),e.args.search(/\n\s*[^#\s]/g)!==-1)throw new Error("every line of an inline comment must start with a '#' character")}render(){}},hi={assign:We,for:He,capture:Ye,case:Je,comment:Ze,include:Ke,render:Qe,decrement:Ge,increment:tt,cycle:Xe,if:et,layout:st,block:it,raw:rt,tablerow:nt,unless:ot,break:at,continue:lt,echo:ct,liquid:ht,"#":ut},Zt=class t{constructor(e={}){this.renderer=new jt,this.filters=Object.create(null),this.tags=Object.create(null),this.options=Fr(e),this.parser=new N(this),ws(hi,(s,i)=>this.registerTag(i,s)),ws(ci,(s,i)=>this.registerFilter(i,s))}parse(e,s){return new N(this).parse(e,s)}_render(e,s,i){let r=s instanceof B?s:new B(s,this.options,i);return this.renderer.renderTemplates(e,r)}async render(e,s,i){return q(this._render(e,s,{...i,sync:!1}))}renderSync(e,s,i){return M(this._render(e,s,{...i,sync:!0}))}renderToNodeStream(e,s,i={}){let r=new B(s,this.options,i);return this.renderer.renderTemplatesToNodeStream(e,r)}_parseAndRender(e,s,i){let r=this.parse(e);return this._render(r,s,i)}async parseAndRender(e,s,i){return q(this._parseAndRender(e,s,{...i,sync:!1}))}parseAndRenderSync(e,s,i){return M(this._parseAndRender(e,s,{...i,sync:!0}))}_parsePartialFile(e,s,i){return new N(this).parseFile(e,s,l.LookupType.Partials,i)}_parseLayoutFile(e,s,i){return new N(this).parseFile(e,s,l.LookupType.Layouts,i)}_parseFile(e,s,i,r){return new N(this).parseFile(e,s,i,r)}async parseFile(e,s){return q(new N(this).parseFile(e,!1,s))}parseFileSync(e,s){return M(new N(this).parseFile(e,!0,s))}*_renderFile(e,s,i){let r=yield this._parseFile(e,i.sync,i.lookupType);return yield this._render(r,s,i)}async renderFile(e,s,i){return q(this._renderFile(e,s,{...i,sync:!1}))}renderFileSync(e,s,i){return M(this._renderFile(e,s,{...i,sync:!0}))}async renderFileToNodeStream(e,s,i){let r=await this.parseFile(e);return this.renderToNodeStream(r,s,i)}_evalValue(e,s){let i=new F(e,this),r=s instanceof B?s:new B(s,this.options);return i.value(r)}async evalValue(e,s){return q(this._evalValue(e,s))}evalValueSync(e,s){return M(this._evalValue(e,s))}registerFilter(e,s){this.filters[e]=s}registerTag(e,s){this.tags[e]=x(s)?s:Ar(s)}plugin(e){return e.call(this,t)}express(){let e=this,s=!0;return function(i,r,n){if(s){s=!1;let o=Se(this.root);e.options.root.unshift(...o),e.options.layouts.unshift(...o),e.options.partials.unshift(...o)}e.renderFile(i,r).then(o=>n(null,o),n)}}async analyze(e,s={}){return P(e,s)}analyzeSync(e,s={}){return C(e,s)}async parseAndAnalyze(e,s,i={}){return P(this.parse(e,s),i)}parseAndAnalyzeSync(e,s,i={}){return C(this.parse(e,s),i)}async variables(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Object.keys(i.variables)}variablesSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Object.keys(i.variables)}async fullVariables(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.variables).flatMap(r=>r.map(n=>String(n)))))}fullVariablesSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.variables).flatMap(r=>r.map(n=>String(n)))))}async variableSegments(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Array.from(ke(Object.values(i.variables).flatMap(r=>r.map(n=>n.toArray()))))}variableSegmentsSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Array.from(ke(Object.values(i.variables).flatMap(r=>r.map(n=>n.toArray()))))}async globalVariables(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Object.keys(i.globals)}globalVariablesSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Object.keys(i.globals)}async globalFullVariables(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.globals).flatMap(r=>r.map(n=>String(n)))))}globalFullVariablesSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.globals).flatMap(r=>r.map(n=>String(n)))))}async globalVariableSegments(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Array.from(ke(Object.values(i.globals).flatMap(r=>r.map(n=>n.toArray()))))}globalVariableSegmentsSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Array.from(ke(Object.values(i.globals).flatMap(r=>r.map(n=>n.toArray()))))}},So="10.27.0";l.AssertionError=Re;l.AssignTag=We;l.BlockTag=it;l.BreakTag=at;l.CaptureTag=Ye;l.CaseTag=Je;l.CommentTag=Ze;l.Context=B;l.ContinueTag=lt;l.CycleTag=Xe;l.DecrementTag=Ge;l.Drop=D;l.EchoTag=ct;l.Expression=Ve;l.Filter=de;l.ForTag=He;l.Hash=j;l.IfTag=et;l.IncludeTag=Ke;l.IncrementTag=tt;l.InlineCommentTag=ut;l.LayoutTag=st;l.Liquid=Zt;l.LiquidError=E;l.LiquidTag=ht;l.Output=$e;l.ParseError=Fe;l.ParseStream=Ce;l.Parser=N;l.RawTag=rt;l.RenderError=Oe;l.RenderTag=Qe;l.TablerowTag=nt;l.Tag=b;l.TagToken=ue;l.Token=O;l.TokenizationError=Le;l.Tokenizer=z;l.TypeGuards=Mr;l.UndefinedVariableError=ze;l.UnlessTag=ot;l.Value=F;l.Variable=H;l.analyze=P;l.analyzeSync=C;l.assert=_;l.createTrie=vt;l.defaultOperators=Zs;l.defaultOptions=Q;l.evalQuotedToken=Js;l.evalToken=T;l.filters=ci;l.isFalsy=me;l.isTruthy=U;l.tags=hi;l.toPromise=q;l.toValue=m;l.toValueSync=M;l.version=So});ye();var di=mi(ui());function fi(t,e){let s=new di.Liquid;return s.render(s.parse(t),e)}async function Ao(t,e,s){ms(gs`Copying template from directory ${kt.path(t)} to ${kt.path(e)}`);let i=await ds(we(t,"**/*"),{dot:!0}),r=we(t,".cli-liquid-bypass"),n=[];await fs(r)&&(n=(await wt(r)).split(`
14
+ `," ",s],r=new Set(i);for(;this.p<this.N&&!r.has(this.peek());)yield this.match(s)?this.readOutputToken(e):this.readHTMLToken(i)}match(e){for(let s=0;s<e.length;s++)if(e[s]!==this.input[this.p+s])return!1;return!0}rmatch(e){for(let s=0;s<e.length;s++)if(e[e.length-1-s]!==this.input[this.p-1-s])return!1;return!0}peekType(e=0){return this.p+e>=this.N?0:w[this.input.charCodeAt(this.p+e)]}peek(e=0){return this.p+e>=this.N?"":this.input[this.p+e]}skipBlank(){for(;this.peekType()&te;)++this.p}},Ce=class{constructor(e,s){this.handlers={},this.stopRequested=!1,this.tokens=e,this.parseToken=s}on(e,s){return this.handlers[e]=s,this}trigger(e,s){let i=this.handlers[e];return i?(i.call(this,s),!0):!1}start(){this.trigger("start");let e;for(;!this.stopRequested&&(e=this.tokens.shift());){if(this.trigger("token",e)||J(e)&&this.trigger(`tag:${e.name}`,e))continue;let s=this.parseToken(e,this.tokens);this.trigger("template",s)}return this.stopRequested||this.trigger("end"),this}stop(){return this.stopRequested=!0,this}},fe=class{constructor(e){this.token=e}},b=class extends fe{constructor(e,s,i){super(e),this.name=e.name,this.liquid=i,this.tokenizer=e.tokenizer}},j=class{constructor(e,s){this.hash={};let i=e instanceof z?e:new z(e,{});for(let r of i.readHashes(s))this.hash[r.name.content]=r.value}*render(e){let s={};for(let i of Object.keys(this.hash))s[i]=this.hash[i]===void 0?!0:yield T(this.hash[i],e);return s}};function Ar(t){return class extends b{constructor(e,s,i){super(e,s,i),x(t.parse)&&t.parse.call(this,e,s)}*render(e,s){let i=yield new j(this.token.args,e.opts.keyValueSeparator).render(e);return yield t.render.call(this,e,s,i)}}}function Ks(t){return S(t)}var de=class{constructor(e,s,i){this.token=e,this.name=e.name,this.handler=x(s)?s:x(s?.handler)?s.handler:js,this.raw=!x(s)&&!!s?.raw,this.args=e.args,this.liquid=i}*render(e,s){let i=[];for(let r of this.args)Ks(r)?i.push([r[0],yield T(r[1],s)]):i.push(yield T(r,s));return yield this.handler.apply({context:s,token:this.token,liquid:this.liquid},[e,...i])}},F=class{constructor(e,s){this.filters=[];let i=typeof e=="string"?new z(e,s.options.operators).readFilteredValue():e;this.initial=i.initial,this.filters=i.filters.map(r=>new de(r,this.getFilter(s,r.name),s))}*value(e,s){s=s||e.opts.lenientIf&&this.filters.length>0&&this.filters[0].name==="default";let i=yield this.initial.evaluate(e,s);for(let r of this.filters)i=yield r.render(i,e);return i}getFilter(e,s){let i=e.filters[s];return _(i||!e.options.strictFilters,()=>`undefined filter: ${s}`),i}},$e=class extends fe{constructor(e,s){super(e);let i=new z(e.input,s.options.operators,e.file,e.contentRange);this.value=new F(i.readFilteredValue(),s);let r=this.value.filters,n=s.options.outputEscape;if(!r[r.length-1]?.raw&&n){let o=new Ee(toString.call(n),[],"",0,0);r.push(new de(o,n,s))}}*render(e,s){let i=yield this.value.value(e,!1);s.write(i)}*arguments(){yield this.value}},Bt=class extends fe{constructor(e){super(e),this.str=e.getContent()}*render(e,s){s.write(this.str)}},H=class t{constructor(e,s){this.segments=e,this.location=s}toString(){return Ie(this.segments,!0)}toArray(){function*e(...s){for(let i of s)i instanceof t?yield Array.from(e(...i.segments)):yield i}return Array.from(e(...this.segments))}},ne=class{constructor(){this.map=new Map}get(e){let s=Ie([e.segments[0]]);return this.map.has(s)||this.map.set(s,[]),this.map.get(s)}has(e){return this.map.has(Ie([e.segments[0]]))}push(e){this.get(e).push(e)}asObject(){return Object.fromEntries(this.map)}},Gs={partials:!0};function*Xs(t,e,s){let i=new ne,r=new ne,n=new ne,o=new je(new Set),a=new Set;function c(u,p){i.push(u);let g=p.alias(u);if(g!==void 0){let y=g.segments[0];d(y)&&!o.has(y)&&r.push(g)}else{let y=u.segments[0];d(y)&&!p.has(y)&&r.push(u)}for(let y of u.segments)y instanceof H&&c(y,p)}function*f(u,p){if(u.arguments)for(let g of u.arguments())for(let y of Rs(g))c(y,p);if(u.localScope)for(let g of u.localScope()){p.add(g.content),p.deleteAlias(g.content);let[y,se]=g.getPosition();n.push(new H([g.content],{row:y,col:se,file:g.file}))}if(u.children)if(u.partialScope){let g=u.partialScope();if(g===void 0){for(let Z of yield u.children(e,s))yield f(Z,p);return}if(a.has(g.name))return;let y=new Set,se=g.isolated?new je(y):p.push(y);for(let Z of g.scope)if(d(Z))y.add(Z);else{let[ns,pi]=Z;y.add(ns);let os=Array.from(Rs(pi));os.length&&se.setAlias(ns,os[0].segments)}for(let Z of yield u.children(e,s))yield f(Z,se),a.add(g.name);se.pop()}else{u.blockScope&&p.push(new Set(u.blockScope()));for(let g of yield u.children(e,s))yield f(g,p);u.blockScope&&p.pop()}}for(let u of t)yield f(u,o);return{variables:i.asObject(),globals:r.asObject(),locals:n.asObject()}}function P(t,e={}){let s={...Gs,...e};return q(Xs(t,s.partials,!1))}function C(t,e={}){let s={...Gs,...e};return M(Xs(t,s.partials,!0))}var je=class{constructor(e){this.stack=[{names:e,aliases:new Map}]}has(e){for(let s of this.stack)if(s.names.has(e))return!0;return!1}push(e){return this.stack.push({names:e,aliases:new Map}),this}pop(){return this.stack.pop()?.names}add(e){this.stack[0].names.add(e)}alias(e){let s=e.segments[0];if(!d(s))return;let i=this.getAlias(s);if(i!==void 0)return new H([...i,...e.segments.slice(1)],e.location)}setAlias(e,s){this.stack[this.stack.length-1].aliases.set(e,s)}deleteAlias(e){this.stack[this.stack.length-1].aliases.delete(e)}getAlias(e){for(let s of this.stack){if(s.aliases.has(e))return s.aliases.get(e);if(s.names.has(e))return}}};function*Rs(t){v(t)?yield*ee(t):t instanceof F&&(yield*Nr(t))}function*Nr(t){for(let e of t.initial.postfix)v(e)&&(yield*ee(e));for(let e of t.filters)for(let s of e.args)Ks(s)&&s[1]?yield*ee(s[1]):v(s)&&(yield*ee(s))}function*ee(t){Xt(t)?(yield*ee(t.lhs),yield*ee(t.rhs)):pe(t)&&(yield Ut(t))}function Ut(t){let e=[],s=t.file,i=t.props[0];s=s||i.file,Be(i)||Ht(i)||Yt(i)?e.push(i.content):pe(i)&&e.push(...Ut(i).segments);for(let o of t.props.slice(1))s=s||o.file,Be(o)||Ht(o)||Yt(o)?e.push(o.content):pe(o)&&e.push(Ut(o));let[r,n]=t.getPosition();return new H(e,{row:r,col:n,file:s})}var As=/^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;function Ie(t,e=!1){let s=[],i=t[0];d(i)&&(!e||i.match(As)?s.push(`${i}`):s.push(`['${i}']`));for(let r of t.slice(1))r instanceof H?s.push(`[${Ie(r.segments)}]`):d(r)?r.match(As)?s.push(`.${r}`):s.push(`['${r}']`):s.push(`[${r}]`);return s.join("")}(function(t){t.Partials="partials",t.Layouts="layouts",t.Root="root"})(l.LookupType||(l.LookupType={}));var Wt=class{constructor(e){if(this.options=e,e.relativeReference){let i=e.fs.sep;_(i,"`fs.sep` is required for relative reference");let r=["."+i,".."+i,"./","../"];this.shouldLoadRelative=n=>r.some(o=>n.startsWith(o))}else this.shouldLoadRelative=i=>!1;let s=e.fs;this.contains=zt(s.contains?.bind(s)||(async()=>!0),s.containsSync?.bind(s)||(()=>!0)),this.exists=zt(s.exists?.bind(s)||(async()=>!1),s.existsSync?.bind(s))}*lookup(e,s,i,r){let n=this.options[s];for(let o of this.candidates(e,n,r)){let a=!1;for(let c of n)if(yield this.contains(!!i,c,o)){a=!0;break}if(a&&(yield this.exists(!!i,o)))return o}throw this.lookupError(e,n)}*candidates(e,s,i){let{fs:r,extname:n}=this.options;this.shouldLoadRelative(e)&&i&&(yield r.resolve(this.dirname(i),e,n));for(let o of s)yield r.resolve(o,e,n);if(r.fallback!==void 0){let o=r.fallback(e);o!==void 0&&(yield o)}}dirname(e){let s=this.options.fs;return _(s.dirname,"`fs.dirname` is required for relative reference"),s.dirname(e)}lookupError(e,s){let i=new Error("ENOENT");return i.message=`ENOENT: Failed to lookup "${e}" in "${s}"`,i.code="ENOENT",i}},N=class{constructor(e){this.liquid=e,this.cache=this.liquid.options.cache,this.fs=this.liquid.options.fs,this.parseFile=this.cache?this._parseFileCached:this._parseFile,this.loader=new Wt(this.liquid.options),this.parseLimit=new ce("parse length",e.options.parseLimit),this.readFile=zt(this.fs.readFile?.bind(this.fs)||(async()=>{throw new Error("readFile not implemented")}),this.fs.readFileSync?.bind(this.fs))}parse(e,s){e=String(e),this.parseLimit.use(e.length);let r=new z(e,this.liquid.options.operators,s).readTopLevelTokens(this.liquid.options);return this.parseTokens(r)}parseTokens(e){let s,i=[],r=[];for(;s=e.shift();)try{i.push(this.parseToken(s,e))}catch(n){if(this.liquid.options.catchAllErrors)r.push(n);else throw n}if(r.length)throw new ve(r);return i}parseToken(e,s){try{if(J(e)){let i=this.liquid.tags[e.name];return _(i,`tag "${e.name}" not found`),new i(e,s,this.liquid,this)}return ti(e)?new $e(e,this.liquid):new Bt(e)}catch(i){throw E.is(i)?i:new Fe(i,e)}}parseStream(e){return new Ce(e,(s,i)=>this.parseToken(s,i))}*_parseFileCached(e,s,i=l.LookupType.Root,r){let n=this.cache,o=this.loader.shouldLoadRelative(e)?r+","+e:i+":"+e,a=yield n.read(o);if(a)return a;let c=this._parseFile(e,s,i,r),f=s?yield c:q(c);n.write(o,f);try{return yield f}catch(u){throw n.remove(o),u}}*_parseFile(e,s,i=l.LookupType.Root,r){let n=yield this.loader.lookup(e,i,s,r);return this.parse(yield this.readFile(!!s,n),n)}};(function(t){t[t.Number=1]="Number",t[t.Literal=2]="Literal",t[t.Tag=4]="Tag",t[t.Output=8]="Output",t[t.HTML=16]="HTML",t[t.Filter=32]="Filter",t[t.Hash=64]="Hash",t[t.PropertyAccess=128]="PropertyAccess",t[t.Word=256]="Word",t[t.Range=512]="Range",t[t.Quoted=1024]="Quoted",t[t.Operator=2048]="Operator",t[t.FilteredValue=4096]="FilteredValue",t[t.Delimited=12]="Delimited"})(l.TokenKind||(l.TokenKind={}));function ei(t){return!!(R(t)&l.TokenKind.Delimited)}function Gt(t){return R(t)===l.TokenKind.Operator}function mt(t){return R(t)===l.TokenKind.HTML}function ti(t){return R(t)===l.TokenKind.Output}function J(t){return R(t)===l.TokenKind.Tag}function Be(t){return R(t)===l.TokenKind.Quoted}function qr(t){return R(t)===l.TokenKind.Literal}function Ht(t){return R(t)===l.TokenKind.Number}function pe(t){return R(t)===l.TokenKind.PropertyAccess}function Yt(t){return R(t)===l.TokenKind.Word}function Xt(t){return R(t)===l.TokenKind.Range}function v(t){return(R(t)&1667)>0}function R(t){return t?t.kind:-1}var Mr=Object.freeze({__proto__:null,isDelimitedToken:ei,isOperatorToken:Gt,isHTMLToken:mt,isOutputToken:ti,isTagToken:J,isQuotedToken:Be,isLiteralToken:qr,isNumberToken:Ht,isPropertyAccessToken:pe,isWordToken:Yt,isRangeToken:Xt,isValueToken:v}),Ue=function(){return Ue=Object.assign||function(e){for(var s,i=1,r=arguments.length;i<r;i++){s=arguments[i];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},Ue.apply(this,arguments)};function Y(t){let e=Object.create(null);return t&&Object.assign(e,t),e}var B=class t{constructor(e={},s=Q,i={},{memoryLimit:r,renderLimit:n}={}){this.scopes=[Y()],this.registers={},this.breakCalled=!1,this.continueCalled=!1,this.sync=!!i.sync,this.opts=s,this.globals=i.globals??s.globals,this.environments=dt(e)?e:Object(e),this.strictVariables=i.strictVariables??this.opts.strictVariables,this.ownPropertyOnly=i.ownPropertyOnly??s.ownPropertyOnly,this.memoryLimit=r??new ce("memory alloc",i.memoryLimit??s.memoryLimit),this.renderLimit=n??new ce("template render",$t().now()+(i.renderLimit??s.renderLimit))}getRegister(e,s=void 0){return this.registers[e]=this.registers[e]||s}setRegister(e,s){return this.registers[e]=s}saveRegister(...e){return e.map(s=>[s,this.getRegister(s)])}restoreRegister(e){return e.forEach(([s,i])=>this.setRegister(s,i))}getAll(){return[this.globals,this.environments,...this.scopes].reduce((e,s)=>Ue(e,s),{})}get(e){return this.getSync(e)}getSync(e){return M(this._get(e))}*_get(e){let s=this.findScope(e[0]);return yield this._getFromScope(s,e)}getFromScope(e,s){return M(this._getFromScope(e,s))}*_getFromScope(e,s,i=this.strictVariables){d(s)&&(s=s.split("."));for(let r=0;r<s.length;r++)if(e=yield this.readProperty(e,s[r]),i&&ki(e))throw new St(s.slice(0,r+1).join("."));return e}push(e){return this.scopes.push(e)}pop(){return this.scopes.pop()}bottom(){return this.scopes[0]}spawn(e={}){return new t(e,this.opts,{sync:this.sync,globals:this.globals,strictVariables:this.strictVariables,ownPropertyOnly:this.ownPropertyOnly},{renderLimit:this.renderLimit,memoryLimit:this.memoryLimit})}findScope(e){for(let s=this.scopes.length-1;s>=0;s--){let i=this.scopes[s];if(e in i)return i}return e in this.environments?this.environments:this.globals}readProperty(e,s){if(e=Vs(e),s=m(s),k(e))return e;if(S(e)&&s<0)return e[e.length+ +s];let i=Dr(e,s,this.ownPropertyOnly);return i===void 0&&e instanceof D?e.liquidMethodMissing(s,this):x(i)?i.call(e):s==="size"?Pr(e):s==="first"?Er(e):s==="last"?Vr(e):i}};function Dr(t,e,s){if(!(s&&!Qt.call(t,e)&&!(t instanceof D)))return t[e]}function Er(t){return S(t)?t[0]:t.first}function Vr(t){return S(t)?t[t.length-1]:t.last}function Pr(t){if(Qt.call(t,"size")||t.size!==void 0)return t.size;if(S(t)||d(t))return t.length;if(typeof t=="object")return Object.keys(t).length}var K;(function(t){t[t.OUTPUT=0]="OUTPUT",t[t.STORE=1]="STORE"})(K||(K={}));var Cr=V(Math.abs),$r=V(Math.max),jr=V(Math.min),Ir=V(Math.ceil),Br=V((t,e,s=!1)=>s?Math.floor(t/e):t/e),Ur=V(Math.floor),Wr=V((t,e)=>t-e),Hr=V((t,e)=>t+e),Yr=V((t,e)=>t%e),Jr=V((t,e)=>t*e);function Zr(t,e=0){t=xt(t),e=xt(e);let s=Math.pow(10,e),i=t*s;return Math.sign(t)*Math.round(Math.abs(i))/s}var Qr=Object.freeze({__proto__:null,abs:Cr,at_least:$r,at_most:jr,ceil:Ir,divided_by:Br,floor:Ur,minus:Wr,plus:Hr,modulo:Yr,times:Jr,round:Zr}),Kr=t=>decodeURIComponent(h(t)).replace(/\+/g," "),Gr=t=>encodeURIComponent(h(t)).replace(/%20/g,"+"),Xr=t=>encodeURIComponent(h(t)).replace(/%20/g,"+").replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),en=t=>encodeURI(h(t)).replace(/%5B/g,"[").replace(/%5D/g,"]"),Ns=/[^\p{M}\p{L}\p{Nd}]+/ug,tn={raw:/\s+/g,default:Ns,pretty:/[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/ug,ascii:/[^A-Za-z0-9]+/g,latin:Ns,none:null};function sn(t,e="default",s=!1){t=h(t);let i=tn[e];return i&&(e==="latin"&&(t=rn(t)),t=t.replace(i,"-").replace(/^-|-$/g,"")),s?t:t.toLowerCase()}function rn(t){return t.replace(/[àáâãäå]/g,"a").replace(/[æ]/g,"ae").replace(/[ç]/g,"c").replace(/[èéêë]/g,"e").replace(/[ìíîï]/g,"i").replace(/[ð]/g,"d").replace(/[ñ]/g,"n").replace(/[òóôõöø]/g,"o").replace(/[ùúûü]/g,"u").replace(/[ýÿ]/g,"y").replace(/[ß]/g,"ss").replace(/[œ]/g,"oe").replace(/[þ]/g,"th").replace(/[ẞ]/g,"SS").replace(/[Œ]/g,"OE").replace(/[Þ]/g,"TH")}var nn=Object.freeze({__proto__:null,url_decode:Kr,url_encode:Gr,cgi_escape:Xr,uri_escape:en,slugify:sn}),on=pt(function(t,e){let s=L(t),i=k(e)?" ":h(e),r=s.length*(1+i.length);return this.context.memoryLimit.use(r),s.join(i)}),an=pt(t=>Ps(t)?xi(t):""),ln=pt(t=>Ps(t)?t[0]:""),cn=pt(function(t){let e=L(t);return this.context.memoryLimit.use(e.length),[...e].reverse()});function*si(t,e,s){let i=[],r=L(t);this.context.memoryLimit.use(r.length);for(let n of r)i.push([n,e?yield this.context._getFromScope(n,h(e).split("."),!1):n]);return i.sort((n,o)=>s(n[1],o[1])).map(n=>n[0])}function*hn(t,e){return yield*si.call(this,t,e,Fi)}function*un(t,e){return yield*si.call(this,t,e,Oi)}var fn=t=>t&&t.length||0;function*dn(t,e){let s=[],i=L(t);this.context.memoryLimit.use(i.length);for(let r of i)s.push(yield this.context._getFromScope(r,h(e),!1));return s}function*pn(t,e){let s=0,i=L(t);for(let r of i){let n=Number(e?yield this.context._getFromScope(r,h(e),!1):r);s+=Number.isNaN(n)?0:n}return s}function gn(t){let e=L(t);return this.context.memoryLimit.use(e.length),e.filter(s=>!k(m(s)))}function ii(t,e=[]){let s=L(t),i=L(e);return this.context.memoryLimit.use(s.length+i.length),s.concat(i)}function mn(t,e){return ii.call(this,t,[e])}function yn(t,e){let s=L(t);this.context.memoryLimit.use(s.length);let i=[...s];return i.unshift(e),i}function wn(t){let e=[...L(t)];return e.pop(),e}function bn(t){let e=L(t);this.context.memoryLimit.use(e.length);let s=[...e];return s.shift(),s}function kn(t,e,s=1){return t=m(t),k(t)?[]:(S(t)||(t=h(t)),e=e<0?t.length+e:e,this.context.memoryLimit.use(s),t.slice(e,e+s))}function ri(t){return this.context.opts.jekyllWhere?e=>ae.is(t)?$(e,t):S(e)?er(e,t):$(e,t):t===void 0?e=>U(e,this.context):e=>$(e,t)}function*ni(t,e,s,i){let r=[];e=L(e),this.context.memoryLimit.use(e.length);let n=new z(h(s)).readScopeValue();for(let a of e)r.push(yield T(n,this.context.spawn(a)));let o=ri.call(this,i);return e.filter((a,c)=>o(r[c])===t)}function*oi(t,e,s,i){let r=[],n=new F(h(i),this.liquid),o=L(e);this.context.memoryLimit.use(o.length);for(let a of o){this.context.push({[s]:a});let c=yield n.value(this.context);this.context.pop(),c===t&&r.push(a)}return r}function*Tn(t,e,s){return yield*ni.call(this,!0,t,e,s)}function*xn(t,e,s){return yield*ni.call(this,!1,t,e,s)}function*Sn(t,e,s){return yield*oi.call(this,!0,t,e,s)}function*_n(t,e,s){return yield*oi.call(this,!1,t,e,s)}function*Ln(t,e){let s=new Map;t=ge(t);let i=new z(h(e)).readScopeValue();this.context.memoryLimit.use(t.length);for(let r of t){let n=yield T(i,this.context.spawn(r));s.has(n)||s.set(n,[]),s.get(n).push(r)}return[...s.entries()].map(([r,n])=>({name:r,items:n}))}function*Fn(t,e,s){let i=new Map,r=new F(h(s),this.liquid);t=ge(t),this.context.memoryLimit.use(t.length);for(let n of t){this.context.push({[e]:n});let o=yield r.value(this.context);this.context.pop(),i.has(o)||i.set(o,[]),i.get(o).push(n)}return[...i.entries()].map(([n,o])=>({name:n,items:o}))}function*es(t,e,s){let i=new z(h(e)).readScopeValue(),r=L(t),n=ri.call(this,s);for(let o=0;o<r.length;o++){let a=yield T(i,this.context.spawn(r[o]));if(n(a))return[o,r[o]]}}function*ts(t,e,s){let i=new F(h(s),this.liquid),r=L(t);for(let n=0;n<r.length;n++){this.context.push({[e]:r[n]});let o=yield i.value(this.context);if(this.context.pop(),o)return[n,r[n]]}}function*On(t,e,s){return!!(yield*es.call(this,t,e,s))}function*vn(t,e,s){return!!(yield*ts.call(this,t,e,s))}function*zn(t,e,s){let i=yield*es.call(this,t,e,s);return i?i[0]:void 0}function*Rn(t,e,s){let i=yield*ts.call(this,t,e,s);return i?i[0]:void 0}function*An(t,e,s){let i=yield*es.call(this,t,e,s);return i?i[1]:void 0}function*Nn(t,e,s){let i=yield*ts.call(this,t,e,s);return i?i[1]:void 0}function qn(t){return t=L(t),this.context.memoryLimit.use(t.length),[...new Set(t)]}function Mn(t,e=1){if(t=m(t),k(t))return[];S(t)||(t=h(t)),this.context.memoryLimit.use(e);let s=[...t].sort(()=>Math.random()-.5);return e===1?s[0]:s.slice(0,e)}var Dn=Object.freeze({__proto__:null,join:on,last:an,first:ln,reverse:cn,sort:hn,sort_natural:un,size:fn,map:dn,sum:pn,compact:gn,concat:ii,push:mn,unshift:yn,pop:wn,shift:bn,slice:kn,where:Tn,reject:xn,where_exp:Sn,reject_exp:_n,group_by:Ln,group_by_exp:Fn,has:On,has_exp:vn,find_index:zn,find_index_exp:Rn,find:An,find_exp:Nn,uniq:qn,sample:Mn});function ss(t,e,s){let i=(t?.length??0)+(s?.length??0);this.context.memoryLimit.use(i);let r=li(t,this.context.opts,s);return r?(e=m(e),e=k(e)?this.context.opts.dateFormat:h(e),this.context.memoryLimit.use(e.length),xe(r,e,this.context.memoryLimit)):t}function En(t){return ss.call(this,t,"%Y-%m-%dT%H:%M:%S%:z")}function Vn(t){return ss.call(this,t,"%a, %d %b %Y %H:%M:%S %z")}function Pn(t,e,s){return ai.call(this,t,"%b",e,s)}function Cn(t,e,s){return ai.call(this,t,"%B",e,s)}function ai(t,e,s,i){let r=li(t,this.context.opts);if(!r)return t;let n=this.context.memoryLimit;if(s==="ordinal"){let o=r.getDate();return i==="US"?xe(r,`${e} ${o}%q, %Y`,n):xe(r,`${o}%q ${e} %Y`,n)}return xe(r,`%d ${e} %Y`,n)}function li(t,e,s){let i,r=s??e.timezoneOffset,n=e.locale;if(t=m(t),!k(t))return t==="now"||t==="today"?i=new I(Date.now(),n,r):ft(t)?i=new I(t*1e3,n,r):d(t)?/^\d+$/.test(t)?i=new I(+t*1e3,n,r):e.preserveTimezones&&s===void 0?i=I.createDateFixedToTimezone(t,n):i=new I(t,n,r):i=new I(t,n,r),i.valid()?i:void 0}var $n=Object.freeze({__proto__:null,date:ss,date_to_xmlschema:En,date_to_rfc822:Vn,date_to_string:Pn,date_to_long_string:Cn}),Tt=/[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu,qs=/[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;function jn(t,e){_(arguments.length===2,"append expect 2 arguments");let s=h(t),i=h(e);return this.context.memoryLimit.use(s.length+i.length),s+i}function In(t,e){_(arguments.length===2,"prepend expect 2 arguments");let s=h(t),i=h(e);return this.context.memoryLimit.use(s.length+i.length),i+s}function Bn(t,e){let s=h(t);if(this.context.memoryLimit.use(s.length),e){e=h(e),this.context.memoryLimit.use(e.length);for(let i=0,r=new Set(e);i<s.length;i++)if(!r.has(s[i]))return s.slice(i);return""}return s.trimStart()}function Un(t){let e=h(t);return this.context.memoryLimit.use(e.length),e.toLowerCase()}function Wn(t){let e=h(t);return this.context.memoryLimit.use(e.length),h(e).toUpperCase()}function Hn(t,e){let s=h(t);return e=h(e),this.context.memoryLimit.use(s.length+e.length),s.split(e).join("")}function Yn(t,e){let s=h(t);return e=h(e),this.context.memoryLimit.use(s.length+e.length),s.replace(e,"")}function Jn(t,e){let s=h(t),i=h(e);this.context.memoryLimit.use(s.length+i.length);let r=s.lastIndexOf(i);return r===-1?s:s.substring(0,r)+s.substring(r+i.length)}function Zn(t,e){if(t=h(t),this.context.memoryLimit.use(t.length),e){e=h(e),this.context.memoryLimit.use(e.length);for(let s=t.length-1,i=new Set(e);s>=0;s--)if(!i.has(t[s]))return t.slice(0,s+1);return""}return t.trimEnd()}function Qn(t,e){let s=h(t);this.context.memoryLimit.use(s.length);let i=s.split(h(e));for(;i.length&&i[i.length-1]==="";)i.pop();return i}function Kn(t,e){let s=h(t);if(this.context.memoryLimit.use(s.length),e){let i=new Set(h(e));this.context.memoryLimit.use(i.size);let r=0,n=s.length-1;for(;i.has(s[r]);)r++;for(;n>=r&&i.has(s[n]);)n--;return s.slice(r,n+1)}return s.trim()}function Gn(t){let e=h(t);return this.context.memoryLimit.use(e.length),e.replace(/\r?\n/gm,"")}function Xn(t){return t=h(t),this.context.memoryLimit.use(t.length),t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function eo(t,e,s){let i=h(t);e=h(e),s=h(s);let r=i.split(e),n=i.length+(r.length-1)*(s.length-e.length);return this.context.memoryLimit.use(n),r.join(s)}function to(t,e,s){let i=h(t);return e=h(e),s=h(s),this.context.memoryLimit.use(i.length+e.length+s.length),i.replace(e,()=>s)}function so(t,e,s){let i=h(t),r=h(e),n=h(s);this.context.memoryLimit.use(i.length+r.length+n.length);let o=i.lastIndexOf(r);return o===-1?i:i.substring(0,o)+n+i.substring(o+r.length)}function io(t,e=50,s="..."){let i=h(t);return s=h(s),this.context.memoryLimit.use(i.length+s.length),i.length<=e?t:i.substring(0,e-s.length)+s}function ro(t,e=15,s="..."){let i=h(t);s=h(s),this.context.memoryLimit.use(i.length+s.length);let r=i.split(/\s+/);e<=0&&(e=1);let n=r.slice(0,e).join(" ");return r.length>=e&&(n+=s),n}function no(t){let e=h(t);return this.context.memoryLimit.use(e.length),e.replace(/\s+/g," ")}function oo(t,e){let s=h(t);if(this.context.memoryLimit.use(s.length),t=s.trim(),!t)return 0;switch(e){case"cjk":return(t.match(Tt)||[]).length+(t.match(qs)||[]).length;case"auto":return Tt.test(t)?t.match(Tt).length+(t.match(qs)||[]).length:t.split(/\s+/).length;default:return t.split(/\s+/).length}}function ao(t,e="and"){switch(e=h(e),this.context.memoryLimit.use(t.length+e.length),t.length){case 0:return"";case 1:return t[0];case 2:return`${t[0]} ${e} ${t[1]}`;default:return`${t.slice(0,-1).join(", ")}, ${e} ${t[t.length-1]}`}}var lo=Object.freeze({__proto__:null,append:jn,prepend:In,lstrip:Bn,downcase:Un,upcase:Wn,remove:Hn,remove_first:Yn,remove_last:Jn,rstrip:Zn,split:Qn,strip:Kn,strip_newlines:Gn,capitalize:Xn,replace:eo,replace_first:to,replace_last:so,truncate:io,truncatewords:ro,normalize_whitespace:no,number_of_words:oo,array_to_sentence_string:ao});function co(t){return Buffer.from(t,"utf8").toString("base64")}function ho(t){return Buffer.from(t,"base64").toString("utf8")}function uo(t){if(typeof Buffer<"u"&&Buffer.isBuffer(t))return this.context.memoryLimit.use(t.byteLength),t.toString("base64");let e=h(t);return this.context.memoryLimit.use(e.length),co(e)}function fo(t){let e=h(t);return this.context.memoryLimit.use(e.length),ho(e)}var po=Object.freeze({__proto__:null,base64_encode:uo,base64_decode:fo});function go(t){return Es.createHash("sha256").update(t,"utf8").digest("hex")}function mo(t,e){return Es.createHmac("sha256",e).update(t,"utf8").digest("hex")}function yo(t){let e=h(t);return this.context.memoryLimit.use(e.length),go(e)}function wo(t,e){let s=h(t),i=h(e);return this.context.memoryLimit.use(s.length+i.length),mo(s,i)}var bo=Object.freeze({__proto__:null,sha256:yo,hmac_sha256:wo}),ci={...Lr,...Qr,...nn,...Dn,...$n,...lo,...po,...bo,...Qs},We=class extends b{constructor(e,s,i){super(e,s,i),this.identifier=this.tokenizer.readIdentifier(),this.key=this.identifier.content,this.tokenizer.assert(this.key,"expected variable name"),this.tokenizer.skipBlank(),this.tokenizer.assert(this.tokenizer.peek()==="=",'expected "="'),this.tokenizer.advance(),this.value=new F(this.tokenizer.readFilteredValue(),this.liquid)}*render(e){e.bottom()[this.key]=yield this.value.value(e,this.liquid.options.lenientIf)}*arguments(){yield this.value}*localScope(){yield this.identifier}},Ms=["offset","limit","reversed"],He=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer.readIdentifier(),o=this.tokenizer.readIdentifier(),a=this.tokenizer.readValue();if(!n.size()||o.content!=="in"||!a)throw new Error(`illegal tag: ${e.getText()}`);this.variable=n.content,this.collection=a,this.hash=new j(this.tokenizer,i.options.keyValueSeparator),this.templates=[],this.elseTemplates=[];let c,f=r.parseStream(s).on("start",()=>c=this.templates).on("tag:else",u=>{Ae(u.args),c=this.elseTemplates}).on("tag:endfor",u=>{Ae(u.args),f.stop()}).on("template",u=>c.push(u)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});f.start()}*render(e,s){let i=this.liquid.renderer,r=ge(yield T(this.collection,e));if(!r.length){yield i.renderTemplates(this.elseTemplates,e,s);return}let n="continue-"+this.variable+"-"+this.collection.getText();e.push(Y({continue:e.getRegister(n,{})}));let o=yield this.hash.render(e);e.pop(),r=(this.liquid.options.orderedFilterParameters?Object.keys(o).filter(f=>Ms.includes(f)):Ms.filter(f=>o[f]!==void 0)).reduce((f,u)=>u==="offset"?To(f,o.offset):u==="limit"?xo(f,o.limit):ko(f),r),e.setRegister(n,(o.offset||0)+r.length);let c=Y({forloop:new le(r.length,this.collection.getText(),this.variable)});e.push(c);for(let f of r){if(c[this.variable]=f,e.continueCalled=e.breakCalled=!1,yield i.renderTemplates(this.templates,e,s),e.breakCalled)break;c.forloop.next()}e.continueCalled=e.breakCalled=!1,e.pop()}*children(){let e=this.templates.slice();return this.elseTemplates&&e.push(...this.elseTemplates),e}*arguments(){yield this.collection;for(let e of Object.values(this.hash.hash))v(e)&&(yield e)}blockScope(){return[this.variable,"forloop"]}};function ko(t){return[...t].reverse()}function To(t,e){return t.slice(e)}function xo(t,e){return t.slice(0,e)}var Ye=class extends b{constructor(e,s,i,r){for(super(e,s,i),this.templates=[],this.identifier=this.readVariable(),this.variable=this.identifier.content;s.length;){let n=s.shift();if(J(n)&&n.name==="endcapture")return;this.templates.push(r.parseToken(n,s))}throw new Error(`tag ${e.getText()} not closed`)}readVariable(){let e=this.tokenizer.readIdentifier();if(e.content||(e=this.tokenizer.readQuoted(),e))return e;throw this.tokenizer.error("invalid capture name")}*render(e){let i=yield this.liquid.renderer.renderTemplates(this.templates,e);e.bottom()[this.variable]=i}*children(){return this.templates}*localScope(){yield this.identifier}},Je=class extends b{constructor(e,s,i,r){super(e,s,i),this.branches=[],this.elseTemplates=[],this.value=new F(this.tokenizer.readFilteredValue(),this.liquid),this.elseTemplates=[];let n=[],o=0,a=r.parseStream(s).on("tag:when",c=>{if(o>0)return;n=[];let f=[];for(;!c.tokenizer.end();)f.push(c.tokenizer.readValueOrThrow()),c.tokenizer.skipBlank(),c.tokenizer.peek()===","?c.tokenizer.readTo(","):c.tokenizer.readTo("or");this.branches.push({values:f,templates:n})}).on("tag:else",()=>{o++,n=this.elseTemplates}).on("tag:endcase",()=>a.stop()).on("template",c=>{(n!==this.elseTemplates||o===1)&&n.push(c)}).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});a.start()}*render(e,s){let i=this.liquid.renderer,r=m(yield this.value.value(e,e.opts.lenientIf)),n=!1;for(let o of this.branches)for(let a of o.values){let c=yield T(a,e,e.opts.lenientIf);if($(r,c)){yield i.renderTemplates(o.templates,e,s),n=!0;break}}n||(yield i.renderTemplates(this.elseTemplates,e,s))}*arguments(){yield this.value,yield*this.branches.flatMap(e=>e.values)}*children(){let e=this.branches.flatMap(s=>s.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}},Ze=class extends b{constructor(e,s,i){for(super(e,s,i);s.length;){let r=s.shift();if(J(r)&&r.name==="endcomment")return}throw new Error(`tag ${e.getText()} not closed`)}render(){}},Qe=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer;for(this.file=is(n,this.liquid,r),this.currentFile=e.file;!n.end();){n.skipBlank();let o=n.p,a=n.readIdentifier();if((a.content==="with"||a.content==="for")&&(n.skipBlank(),n.peek()!==":")){let c=n.readValue();if(c){let f=n.p,u=n.readIdentifier(),p;u.content==="as"?p=n.readIdentifier():n.p=f,this[a.content]={value:c,alias:p&&p.content},n.skipBlank(),n.peek()===","&&n.advance();continue}}n.p=o;break}this.hash=new j(n,i.options.keyValueSeparator)}*render(e,s){let{liquid:i,hash:r}=this,n=yield rs(this.file,e,i);_(n,()=>`illegal file path "${n}"`);let o=e.spawn(),a=o.bottom();if(Ue(a,yield r.render(e)),this.with){let{value:c,alias:f}=this.with;a[f||n]=yield T(c,e)}if(this.for){let{value:c,alias:f}=this.for,u=ge(yield T(c,e));a.forloop=new le(u.length,c.getText(),f);for(let p of u){a[f]=p;let g=yield i._parsePartialFile(n,o.sync,this.currentFile);yield i.renderer.renderTemplates(g,o,s),a.forloop.next()}}else{let c=yield i._parsePartialFile(n,o.sync,this.currentFile);yield i.renderer.renderTemplates(c,o,s)}}*children(e,s){return e&&d(this.file)?yield this.liquid._parsePartialFile(this.file,s,this.currentFile):[]}partialScope(){if(d(this.file)){let e=Object.keys(this.hash.hash);if(this.with){let{value:s,alias:i}=this.with;d(i)?e.push([i,s]):d(this.file)&&e.push([this.file,s])}if(this.for){let{value:s,alias:i}=this.for;d(i)?e.push([i,s]):d(this.file)&&e.push([this.file,s])}return{name:this.file,isolated:!0,scope:e}}}*arguments(){for(let e of Object.values(this.hash.hash))v(e)&&(yield e);if(this.with){let{value:e}=this.with;v(e)&&(yield e)}if(this.for){let{value:e}=this.for;v(e)&&(yield e)}}};function is(t,e,s){if(e.options.dynamicPartials){let n=t.readValue();if(t.assert(n,"illegal file path"),n.getText()==="none")return;if(Be(n)){let o=s.parse(Js(n));return Ds(o)}return n}let i=[...t.readFileNameTemplate(e.options)],r=Ds(s.parseTokens(i));return r==="none"?void 0:r}function Ds(t){return t.length===1&&mt(t[0].token)?t[0].token.getContent():t}function*rs(t,e,s){return typeof t=="string"?t:Array.isArray(t)?s.renderer.renderTemplates(t,e):yield T(t,e)}var Ke=class extends b{constructor(e,s,i,r){super(e,s,i);let{tokenizer:n}=e;this.file=is(n,this.liquid,r),this.currentFile=e.file;let o=n.p;n.readIdentifier().content==="with"?(n.skipBlank(),n.peek()!==":"?this.withVar=n.readValue():n.p=o):n.p=o,this.hash=new j(n,i.options.jekyllInclude||i.options.keyValueSeparator)}*render(e,s){let{liquid:i,hash:r,withVar:n}=this,{renderer:o}=i,a=yield rs(this.file,e,i);_(a,()=>`illegal file path "${a}"`);let c=e.saveRegister("blocks","blockMode");e.setRegister("blocks",{}),e.setRegister("blockMode",K.OUTPUT);let f=Y(yield r.render(e));n&&(f[a]=yield T(n,e));let u=yield i._parsePartialFile(a,e.sync,this.currentFile);e.push(e.opts.jekyllInclude?Y({include:f}):f),yield o.renderTemplates(u,e,s),e.pop(),e.restoreRegister(c)}*children(e,s){return e&&d(this.file)?yield this.liquid._parsePartialFile(this.file,s,this.currentFile):[]}partialScope(){if(d(this.file)){let e;return this.liquid.options.jekyllInclude?e=["include"]:(e=Object.keys(this.hash.hash),this.withVar&&e.push([this.file,this.withVar])),{name:this.file,isolated:!1,scope:e}}}*arguments(){yield*Object.values(this.hash.hash).filter(v),v(this.file)&&(yield this.file),v(this.withVar)&&(yield this.withVar)}},Ge=class extends b{constructor(e,s,i){super(e,s,i),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,s){let i=e.environments;ft(i[this.variable])||(i[this.variable]=0),s.write(h(--i[this.variable]))}*localScope(){yield this.identifier}},Xe=class extends b{constructor(e,s,i){super(e,s,i),this.candidates=[];let r=this.tokenizer.readValue();for(this.tokenizer.skipBlank(),r&&(this.tokenizer.peek()===":"?(this.group=r,this.tokenizer.advance()):this.candidates.push(r));!this.tokenizer.end();){let n=this.tokenizer.readValue();n&&this.candidates.push(n),this.tokenizer.readTo(",")}this.tokenizer.assert(this.candidates.length,()=>`empty candidates: "${e.getText()}"`)}*render(e,s){let r=`cycle:${yield T(this.group,e)}:`+this.candidates.join(","),n=e.getRegister("cycle",{}),o=n[r];o===void 0&&(o=n[r]=0);let a=this.candidates[o];return o=(o+1)%this.candidates.length,n[r]=o,yield T(a,e)}*arguments(){yield*this.candidates,this.group&&(yield this.group)}},et=class extends b{constructor(e,s,i,r){super(e,s,i),this.branches=[];let n=[];r.parseStream(s).on("start",()=>this.branches.push({value:new F(e.tokenizer.readFilteredValue(),this.liquid),templates:n=[]})).on("tag:elsif",o=>{_(!this.elseTemplates,"unexpected elsif after else"),this.branches.push({value:new F(o.tokenizer.readFilteredValue(),this.liquid),templates:n=[]})}).on("tag:else",o=>{Ae(o.args),_(!this.elseTemplates,"duplicated else"),n=this.elseTemplates=[]}).on("tag:endif",function(o){Ae(o.args),this.stop()}).on("template",o=>n.push(o)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)}).start()}*render(e,s){let i=this.liquid.renderer;for(let{value:r,templates:n}of this.branches){let o=yield r.value(e,e.opts.lenientIf);if(U(o,e)){yield i.renderTemplates(n,e,s);return}}yield i.renderTemplates(this.elseTemplates||[],e,s)}*children(){let e=this.branches.flatMap(s=>s.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}},tt=class extends b{constructor(e,s,i){super(e,s,i),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,s){let i=e.environments;ft(i[this.variable])||(i[this.variable]=0);let r=i[this.variable];i[this.variable]++,s.write(h(r))}*localScope(){yield this.identifier}},st=class extends b{constructor(e,s,i,r){super(e,s,i),this.file=is(this.tokenizer,this.liquid,r),this.currentFile=e.file,this.args=new j(this.tokenizer,i.options.keyValueSeparator),this.templates=r.parseTokens(s)}*render(e,s){let{liquid:i,args:r,file:n}=this,{renderer:o}=i;if(n===void 0){e.setRegister("blockMode",K.OUTPUT),yield o.renderTemplates(this.templates,e,s);return}let a=yield rs(this.file,e,i);_(a,()=>`illegal file path "${a}"`);let c=yield i._parseLayoutFile(a,e.sync,this.currentFile);e.setRegister("blockMode",K.STORE);let f=yield o.renderTemplates(this.templates,e),u=e.getRegister("blocks",{});u[""]===void 0&&(u[""]=(p,g)=>g.write(f)),e.setRegister("blockMode",K.OUTPUT),e.push(Y(yield r.render(e))),yield o.renderTemplates(c,e,s),e.pop()}*children(e){let s=this.templates.slice();return e&&d(this.file)&&s.push(...yield this.liquid._parsePartialFile(this.file,!0,this.currentFile)),s}*arguments(){for(let e of Object.values(this.args.hash))v(e)&&(yield e);v(this.file)&&(yield this.file)}partialScope(){if(d(this.file))return{name:this.file,isolated:!1,scope:Object.keys(this.args.hash)}}},it=class extends b{constructor(e,s,i,r){super(e,s,i),this.templates=[];let n=/\w+/.exec(e.args);for(this.block=n?n[0]:"";s.length;){let o=s.shift();if(J(o)&&o.name==="endblock")return;let a=r.parseToken(o,s);this.templates.push(a)}throw new Error(`tag ${e.getText()} not closed`)}*render(e,s){let i=this.getBlockRender(e);e.getRegister("blockMode")===K.STORE?e.getRegister("blocks",{})[this.block]=i:yield i(new qe,s)}getBlockRender(e){let s=this,{liquid:i,templates:r}=this,n=e.getRegister("blocks",{})[this.block],o=function*(a,c){let f=e.getRegister("blockStack",[]);if(f.includes(s))throw new Error("block tag cannot be nested");f.push(s),e.push(Y({block:a})),yield i.renderer.renderTemplates(r,e,c),e.pop(),f.pop()};return n?(a,c)=>n(new qe(f=>o(a,f)),c):o}*children(){return this.templates}blockScope(){return["block"]}},rt=class extends b{constructor(e,s,i){for(super(e,s,i),this.tokens=[];s.length;){let r=s.shift();if(J(r)&&r.name==="endraw")return;this.tokens.push(r)}throw new Error(`tag ${e.getText()} not closed`)}render(){return this.tokens.map(e=>e.getText()).join("")}},Jt=class extends le{constructor(e,s,i,r){super(e,i,r),this.length=e,this.cols=s}row(){return Math.floor(this.i/this.cols)+1}col0(){return this.i%this.cols}col(){return this.col0()+1}col_first(){return this.col0()===0}col_last(){return this.col()===this.cols}},nt=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer.readIdentifier();this.tokenizer.skipBlank();let o=this.tokenizer.readIdentifier(),a=this.tokenizer.readValue();if(o.content!=="in"||!a)throw new Error(`illegal tag: ${e.getText()}`);this.variable=n.content,this.collection=a,this.args=new j(this.tokenizer,i.options.keyValueSeparator),this.templates=[];let c,f=r.parseStream(s).on("start",()=>c=this.templates).on("tag:endtablerow",()=>f.stop()).on("template",u=>c.push(u)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});f.start()}*render(e,s){let i=ge(yield T(this.collection,e)),r=yield this.args.render(e),n=r.offset||0,o=r.limit===void 0?i.length:r.limit;i=i.slice(n,n+o);let a=r.cols||i.length,c=this.liquid.renderer,f=new Jt(i.length,a,this.collection.getText(),this.variable),u=Y({tablerowloop:f});e.push(u);for(let p=0;p<i.length;p++,f.next())u[this.variable]=i[p],f.col0()===0&&(f.row()!==1&&s.write("</tr>"),s.write(`<tr class="row${f.row()}">`)),s.write(`<td class="col${f.col()}">`),yield c.renderTemplates(this.templates,e,s),s.write("</td>");i.length&&s.write("</tr>"),e.pop()}*children(){return this.templates}*arguments(){yield this.collection;for(let e of Object.values(this.args.hash))v(e)&&(yield e)}blockScope(){return[this.variable,"tablerowloop"]}},ot=class extends b{constructor(e,s,i,r){super(e,s,i),this.branches=[],this.elseTemplates=[];let n=[],o=0;r.parseStream(s).on("start",()=>this.branches.push({value:new F(e.tokenizer.readFilteredValue(),this.liquid),test:me,templates:n=[]})).on("tag:elsif",a=>{if(o>0){n=[];return}this.branches.push({value:new F(a.tokenizer.readFilteredValue(),this.liquid),test:U,templates:n=[]})}).on("tag:else",()=>{o++,n=this.elseTemplates}).on("tag:endunless",function(){this.stop()}).on("template",a=>{(n!==this.elseTemplates||o===1)&&n.push(a)}).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)}).start()}*render(e,s){let i=this.liquid.renderer;for(let{value:r,test:n,templates:o}of this.branches){let a=yield r.value(e,e.opts.lenientIf);if(n(a,e)){yield i.renderTemplates(o,e,s);return}}yield i.renderTemplates(this.elseTemplates,e,s)}*children(){let e=this.branches.flatMap(s=>s.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}},at=class extends b{render(e,s){e.breakCalled=!0}},lt=class extends b{render(e,s){e.continueCalled=!0}},ct=class extends b{constructor(e,s,i){super(e,s,i),this.tokenizer.skipBlank(),this.tokenizer.end()||(this.value=new F(this.tokenizer.readFilteredValue(),this.liquid))}*render(e,s){if(!this.value)return;let i=yield this.value.value(e,!1);s.write(i)}*arguments(){this.value&&(yield this.value)}},ht=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer.readLiquidTagTokens(this.liquid.options);this.templates=r.parseTokens(n)}*render(e,s){yield this.liquid.renderer.renderTemplates(this.templates,e,s)}*children(){return this.templates}},ut=class extends b{constructor(e,s,i){if(super(e,s,i),e.args.search(/\n\s*[^#\s]/g)!==-1)throw new Error("every line of an inline comment must start with a '#' character")}render(){}},hi={assign:We,for:He,capture:Ye,case:Je,comment:Ze,include:Ke,render:Qe,decrement:Ge,increment:tt,cycle:Xe,if:et,layout:st,block:it,raw:rt,tablerow:nt,unless:ot,break:at,continue:lt,echo:ct,liquid:ht,"#":ut},Zt=class t{constructor(e={}){this.renderer=new jt,this.filters=Object.create(null),this.tags=Object.create(null),this.options=Fr(e),this.parser=new N(this),ws(hi,(s,i)=>this.registerTag(i,s)),ws(ci,(s,i)=>this.registerFilter(i,s))}parse(e,s){return new N(this).parse(e,s)}_render(e,s,i){let r=s instanceof B?s:new B(s,this.options,i);return this.renderer.renderTemplates(e,r)}async render(e,s,i){return q(this._render(e,s,{...i,sync:!1}))}renderSync(e,s,i){return M(this._render(e,s,{...i,sync:!0}))}renderToNodeStream(e,s,i={}){let r=new B(s,this.options,i);return this.renderer.renderTemplatesToNodeStream(e,r)}_parseAndRender(e,s,i){let r=this.parse(e);return this._render(r,s,i)}async parseAndRender(e,s,i){return q(this._parseAndRender(e,s,{...i,sync:!1}))}parseAndRenderSync(e,s,i){return M(this._parseAndRender(e,s,{...i,sync:!0}))}_parsePartialFile(e,s,i){return new N(this).parseFile(e,s,l.LookupType.Partials,i)}_parseLayoutFile(e,s,i){return new N(this).parseFile(e,s,l.LookupType.Layouts,i)}_parseFile(e,s,i,r){return new N(this).parseFile(e,s,i,r)}async parseFile(e,s){return q(new N(this).parseFile(e,!1,s))}parseFileSync(e,s){return M(new N(this).parseFile(e,!0,s))}*_renderFile(e,s,i){let r=yield this._parseFile(e,i.sync,i.lookupType);return yield this._render(r,s,i)}async renderFile(e,s,i){return q(this._renderFile(e,s,{...i,sync:!1}))}renderFileSync(e,s,i){return M(this._renderFile(e,s,{...i,sync:!0}))}async renderFileToNodeStream(e,s,i){let r=await this.parseFile(e);return this.renderToNodeStream(r,s,i)}_evalValue(e,s){let i=new F(e,this),r=s instanceof B?s:new B(s,this.options);return i.value(r)}async evalValue(e,s){return q(this._evalValue(e,s))}evalValueSync(e,s){return M(this._evalValue(e,s))}registerFilter(e,s){this.filters[e]=s}registerTag(e,s){this.tags[e]=x(s)?s:Ar(s)}plugin(e){return e.call(this,t)}express(){let e=this,s=!0;return function(i,r,n){if(s){s=!1;let o=Se(this.root);e.options.root.unshift(...o),e.options.layouts.unshift(...o),e.options.partials.unshift(...o)}e.renderFile(i,r).then(o=>n(null,o),n)}}async analyze(e,s={}){return P(e,s)}analyzeSync(e,s={}){return C(e,s)}async parseAndAnalyze(e,s,i={}){return P(this.parse(e,s),i)}parseAndAnalyzeSync(e,s,i={}){return C(this.parse(e,s),i)}async variables(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Object.keys(i.variables)}variablesSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Object.keys(i.variables)}async fullVariables(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.variables).flatMap(r=>r.map(n=>String(n)))))}fullVariablesSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.variables).flatMap(r=>r.map(n=>String(n)))))}async variableSegments(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Array.from(ke(Object.values(i.variables).flatMap(r=>r.map(n=>n.toArray()))))}variableSegmentsSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Array.from(ke(Object.values(i.variables).flatMap(r=>r.map(n=>n.toArray()))))}async globalVariables(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Object.keys(i.globals)}globalVariablesSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Object.keys(i.globals)}async globalFullVariables(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.globals).flatMap(r=>r.map(n=>String(n)))))}globalFullVariablesSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.globals).flatMap(r=>r.map(n=>String(n)))))}async globalVariableSegments(e,s={}){let i=await P(d(e)?this.parse(e):e,s);return Array.from(ke(Object.values(i.globals).flatMap(r=>r.map(n=>n.toArray()))))}globalVariableSegmentsSync(e,s={}){let i=C(d(e)?this.parse(e):e,s);return Array.from(ke(Object.values(i.globals).flatMap(r=>r.map(n=>n.toArray()))))}},So="10.27.0";l.AssertionError=Re;l.AssignTag=We;l.BlockTag=it;l.BreakTag=at;l.CaptureTag=Ye;l.CaseTag=Je;l.CommentTag=Ze;l.Context=B;l.ContinueTag=lt;l.CycleTag=Xe;l.DecrementTag=Ge;l.Drop=D;l.EchoTag=ct;l.Expression=Ve;l.Filter=de;l.ForTag=He;l.Hash=j;l.IfTag=et;l.IncludeTag=Ke;l.IncrementTag=tt;l.InlineCommentTag=ut;l.LayoutTag=st;l.Liquid=Zt;l.LiquidError=E;l.LiquidTag=ht;l.Output=$e;l.ParseError=Fe;l.ParseStream=Ce;l.Parser=N;l.RawTag=rt;l.RenderError=Oe;l.RenderTag=Qe;l.TablerowTag=nt;l.Tag=b;l.TagToken=ue;l.Token=O;l.TokenizationError=Le;l.Tokenizer=z;l.TypeGuards=Mr;l.UndefinedVariableError=ze;l.UnlessTag=ot;l.Value=F;l.Variable=H;l.analyze=P;l.analyzeSync=C;l.assert=_;l.createTrie=vt;l.defaultOperators=Zs;l.defaultOptions=Q;l.evalQuotedToken=Js;l.evalToken=T;l.filters=ci;l.isFalsy=me;l.isTruthy=U;l.tags=hi;l.toPromise=q;l.toValue=m;l.toValueSync=M;l.version=So});ye();var di=mi(ui(),1);function fi(t,e){let s=new di.Liquid;return s.render(s.parse(t),e)}async function Ao(t,e,s){ms(gs`Copying template from directory ${kt.path(t)} to ${kt.path(e)}`);let i=await ds(we(t,"**/*"),{dot:!0}),r=we(t,".cli-liquid-bypass"),n=[];await fs(r)&&(n=(await wt(r)).split(`
15
15
  `).filter(a=>a.trim().length>0));let o=i.map(a=>a.split("/")).sort((a,c)=>a.length<c.length?1:-1).map(a=>a.join("/"));await Promise.all(o.map(async a=>{let c=await fi(we(e,yt(t,a)),s),f=n.some(u=>{let p=yt(t,a),g=u.replace(/^\.\//,"");return ps(p,g)||p.startsWith(g)});if(await cs(a))await bt(c);else if(a.endsWith(".liquid")&&!f){await bt(as(c));let u=await wt(a),p=await fi(u,s),g=await us(a),y=c.replace(".liquid","");await be(a,y),await ls(y,p),g&&await hs(y,493)}else if(a.endsWith(".raw")){let u=c.replace(".raw","");await be(a,u)}else await be(a,c)}))}export{fi as a,Ao as b};
@@ -1 +1 @@
1
- import{h as l}from"./chunk-5T3OVTF5.js";import{O as c}from"./chunk-2HZMOK4U.js";import{d as u}from"./chunk-ELIH6GCC.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var s=["live","unpublished","development"];async function A(e,r){let t=await c(e,r);return p(t)}async function p(e){let r=e.storeFqdn,t=(await l(e)).filter(d);if(t.length===0)throw new u(`There are no themes in the ${r} store`);return t.sort(w)}function d(e){return s.includes(e.role)}function w(e,r){return s.indexOf(e.role)-s.indexOf(r.role)}i();function E(e,r,t){return y(e,r,t)??T(e,r,t)}function y(e,r,t){let o=t.role;if(!o)return;let n=`No themes on the store ${e} match the role "${o}"`;return m(r,h=>h.role===o).orThrow(n)}function T(e,r,t){return t.themeIdentifiers.flatMap(n=>{let h=`No themes on the store ${e} match the ID or name "${n}"`;return m(r,f=>`${f.id}`===n||f.name.toLowerCase()===n.toLowerCase()?!0:L(f.name.toLowerCase(),n.toLowerCase())).orThrow(h)})}function m(e,r){let t=e.filter(r);return t.length>0?{orThrow:o=>t}:{orThrow:o=>{throw new u(o)}}}var a=class{constructor(r){this.queryProps=r}get role(){for(let r of s)if(this.queryProps[r])return r}get themeIdentifiers(){return[this.queryProps.theme,this.queryProps.themes].flat().filter(t=>!!t)}any(){return Object.values(this.queryProps).some(r=>r?.length!==void 0?r.length>0:!!r)}};function L(e,r){let t=r.replace(/(^\*)|(\*$)/g,"");return r.startsWith("*")&&r.endsWith("*")?e.includes(t):r.startsWith("*")?e.endsWith(t):r.endsWith("*")?e.startsWith(t):!1}export{s as a,A as b,p as c,E as d,a as e};
1
+ import{h as l}from"./chunk-I5X3IP6T.js";import{O as c}from"./chunk-TIU7MMRT.js";import{d as u}from"./chunk-IIFRDOYG.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var s=["live","unpublished","development"];async function A(e,r){let t=await c(e,r);return p(t)}async function p(e){let r=e.storeFqdn,t=(await l(e)).filter(d);if(t.length===0)throw new u(`There are no themes in the ${r} store`);return t.sort(w)}function d(e){return s.includes(e.role)}function w(e,r){return s.indexOf(e.role)-s.indexOf(r.role)}i();function E(e,r,t){return y(e,r,t)??T(e,r,t)}function y(e,r,t){let o=t.role;if(!o)return;let n=`No themes on the store ${e} match the role "${o}"`;return m(r,h=>h.role===o).orThrow(n)}function T(e,r,t){return t.themeIdentifiers.flatMap(n=>{let h=`No themes on the store ${e} match the ID or name "${n}"`;return m(r,f=>`${f.id}`===n||f.name.toLowerCase()===n.toLowerCase()?!0:L(f.name.toLowerCase(),n.toLowerCase())).orThrow(h)})}function m(e,r){let t=e.filter(r);return t.length>0?{orThrow:o=>t}:{orThrow:o=>{throw new u(o)}}}var a=class{constructor(r){this.queryProps=r}get role(){for(let r of s)if(this.queryProps[r])return r}get themeIdentifiers(){return[this.queryProps.theme,this.queryProps.themes].flat().filter(t=>!!t)}any(){return Object.values(this.queryProps).some(r=>r?.length!==void 0?r.length>0:!!r)}};function L(e,r){let t=r.replace(/(^\*)|(\*$)/g,"");return r.startsWith("*")&&r.endsWith("*")?e.includes(t):r.startsWith("*")?e.endsWith(t):r.endsWith("*")?e.startsWith(t):!1}export{s as a,A as b,p as c,E as d,a as e};
@@ -1,4 +1,4 @@
1
- import{a as ri}from"./chunk-RJ5VF3QY.js";import{d as si,g as ni}from"./chunk-ELIH6GCC.js";import{Ra as Jr,Sa as sr}from"./chunk-EYDNSYYE.js";import{b as ti}from"./chunk-NNOSZ447.js";import{i as rr}from"./chunk-773TIA5M.js";import{a as mc}from"./chunk-CX5CC6P5.js";import{c as g,e as Wr,g as u}from"./chunk-VKWPEFWQ.js";var Nt=g(q=>{"use strict";u();Object.defineProperty(q,"__esModule",{value:!0});q.regexpCode=q.getEsmExportName=q.getProperty=q.safeStringify=q.stringify=q.strConcat=q.addCodeArg=q.str=q._=q.nil=q._Code=q.Name=q.IDENTIFIER=q._CodeOrName=void 0;var bt=class{};q._CodeOrName=bt;q.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ve=class extends bt{constructor(e){if(super(),!q.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};q.Name=Ve;var se=class extends bt{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,s)=>`${r}${s}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,s)=>(s instanceof Ve&&(r[s.str]=(r[s.str]||0)+1),r),{})}};q._Code=se;q.nil=new se("");function bi(t,...e){let r=[t[0]],s=0;for(;s<e.length;)os(r,e[s]),r.push(t[++s]);return new se(r)}q._=bi;var is=new se("+");function Pi(t,...e){let r=[Pt(t[0])],s=0;for(;s<e.length;)r.push(is),os(r,e[s]),r.push(is,Pt(t[++s]));return Nc(r),new se(r)}q.str=Pi;function os(t,e){e instanceof se?t.push(...e._items):e instanceof Ve?t.push(e):t.push(Ic(e))}q.addCodeArg=os;function Nc(t){let e=1;for(;e<t.length-1;){if(t[e]===is){let r=Oc(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function Oc(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof Ve||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof Ve))return`"${t}${e.slice(1)}`}function Tc(t,e){return e.emptyStr()?t:t.emptyStr()?e:Pi`${t}${e}`}q.strConcat=Tc;function Ic(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Pt(Array.isArray(t)?t.join(","):t)}function kc(t){return new se(Pt(t))}q.stringify=kc;function Pt(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}q.safeStringify=Pt;function Rc(t){return typeof t=="string"&&q.IDENTIFIER.test(t)?new se(`.${t}`):bi`[${t}]`}q.getProperty=Rc;function jc(t){if(typeof t=="string"&&q.IDENTIFIER.test(t))return new se(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}q.getEsmExportName=jc;function qc(t){return new se(t.toString())}q.regexpCode=qc});var us=g(Q=>{"use strict";u();Object.defineProperty(Q,"__esModule",{value:!0});Q.ValueScope=Q.ValueScopeName=Q.Scope=Q.varKinds=Q.UsedValueState=void 0;var Z=Nt(),as=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},ar;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(ar||(Q.UsedValueState=ar={}));Q.varKinds={const:new Z.Name("const"),let:new Z.Name("let"),var:new Z.Name("var")};var cr=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof Z.Name?e:this.name(e)}name(e){return new Z.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,s;if(!((s=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||s===void 0)&&s.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Q.Scope=cr;var ur=class extends Z.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:s}){this.value=e,this.scopePath=(0,Z._)`.${new Z.Name(r)}[${s}]`}};Q.ValueScopeName=ur;var Ac=(0,Z._)`\n`,cs=class extends cr{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?Ac:Z.nil}}get(){return this._scope}name(e){return new ur(e,this._newName(e))}value(e,r){var s;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(e),{prefix:i}=n,o=(s=r.key)!==null&&s!==void 0?s:r.ref,a=this._values[i];if(a){let d=a.get(o);if(d)return d}else a=this._values[i]=new Map;a.set(o,n);let c=this._scope[i]||(this._scope[i]=[]),l=c.length;return c[l]=r.ref,n.setValue(r,{property:i,itemIndex:l}),n}getValue(e,r){let s=this._values[e];if(s)return s.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,Z._)`${e}${s.scopePath}`})}scopeCode(e=this._values,r,s){return this._reduceValues(e,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},r,s)}_reduceValues(e,r,s={},n){let i=Z.nil;for(let o in e){let a=e[o];if(!a)continue;let c=s[o]=s[o]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,ar.Started);let d=r(l);if(d){let f=this.opts.es5?Q.varKinds.var:Q.varKinds.const;i=(0,Z._)`${i}${f} ${l} = ${d};${this.opts._n}`}else if(d=n?.(l))i=(0,Z._)`${i}${d}${this.opts._n}`;else throw new as(l);c.set(l,ar.Completed)})}return i}};Q.ValueScope=cs});var b=g(P=>{"use strict";u();Object.defineProperty(P,"__esModule",{value:!0});P.or=P.and=P.not=P.CodeGen=P.operators=P.varKinds=P.ValueScopeName=P.ValueScope=P.Scope=P.Name=P.regexpCode=P.stringify=P.getProperty=P.nil=P.strConcat=P.str=P._=void 0;var T=Nt(),ue=us(),Ie=Nt();Object.defineProperty(P,"_",{enumerable:!0,get:function(){return Ie._}});Object.defineProperty(P,"str",{enumerable:!0,get:function(){return Ie.str}});Object.defineProperty(P,"strConcat",{enumerable:!0,get:function(){return Ie.strConcat}});Object.defineProperty(P,"nil",{enumerable:!0,get:function(){return Ie.nil}});Object.defineProperty(P,"getProperty",{enumerable:!0,get:function(){return Ie.getProperty}});Object.defineProperty(P,"stringify",{enumerable:!0,get:function(){return Ie.stringify}});Object.defineProperty(P,"regexpCode",{enumerable:!0,get:function(){return Ie.regexpCode}});Object.defineProperty(P,"Name",{enumerable:!0,get:function(){return Ie.Name}});var hr=us();Object.defineProperty(P,"Scope",{enumerable:!0,get:function(){return hr.Scope}});Object.defineProperty(P,"ValueScope",{enumerable:!0,get:function(){return hr.ValueScope}});Object.defineProperty(P,"ValueScopeName",{enumerable:!0,get:function(){return hr.ValueScopeName}});Object.defineProperty(P,"varKinds",{enumerable:!0,get:function(){return hr.varKinds}});P.operators={GT:new T._Code(">"),GTE:new T._Code(">="),LT:new T._Code("<"),LTE:new T._Code("<="),EQ:new T._Code("==="),NEQ:new T._Code("!=="),NOT:new T._Code("!"),OR:new T._Code("||"),AND:new T._Code("&&"),ADD:new T._Code("+")};var be=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},ls=class extends be{constructor(e,r,s){super(),this.varKind=e,this.name=r,this.rhs=s}render({es5:e,_n:r}){let s=e?ue.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${n};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=rt(this.rhs,e,r)),this}get names(){return this.rhs instanceof T._CodeOrName?this.rhs.names:{}}},lr=class extends be{constructor(e,r,s){super(),this.lhs=e,this.rhs=r,this.sideEffects=s}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof T.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=rt(this.rhs,e,r),this}get names(){let e=this.lhs instanceof T.Name?{}:{...this.lhs.names};return fr(e,this.rhs)}},ds=class extends lr{constructor(e,r,s,n){super(e,s,n),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},fs=class extends be{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},hs=class extends be{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},ps=class extends be{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},ms=class extends be{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=rt(this.code,e,r),this}get names(){return this.code instanceof T._CodeOrName?this.code.names:{}}},Ot=class extends be{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,s)=>r+s.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let s=e[r].optimizeNodes();Array.isArray(s)?e.splice(r,1,...s):s?e[r]=s:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:s}=this,n=s.length;for(;n--;){let i=s[n];i.optimizeNames(e,r)||(Cc(e,i.names),s.splice(n,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>Ke(e,r.names),{})}},Pe=class extends Ot{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},ys=class extends Ot{},tt=class extends Pe{};tt.kind="else";var Ue=class t extends Pe{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let s=r.optimizeNodes();r=this.else=Array.isArray(s)?new tt(s):s}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(Ni(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var s;if(this.else=(s=this.else)===null||s===void 0?void 0:s.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=rt(this.condition,e,r),this}get names(){let e=super.names;return fr(e,this.condition),this.else&&Ke(e,this.else.names),e}};Ue.kind="if";var Le=class extends Pe{};Le.kind="for";var _s=class extends Le{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=rt(this.iteration,e,r),this}get names(){return Ke(super.names,this.iteration.names)}},gs=class extends Le{constructor(e,r,s,n){super(),this.varKind=e,this.name=r,this.from=s,this.to=n}render(e){let r=e.es5?ue.varKinds.var:this.varKind,{name:s,from:n,to:i}=this;return`for(${r} ${s}=${n}; ${s}<${i}; ${s}++)`+super.render(e)}get names(){let e=fr(super.names,this.from);return fr(e,this.to)}},dr=class extends Le{constructor(e,r,s,n){super(),this.loop=e,this.varKind=r,this.name=s,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=rt(this.iterable,e,r),this}get names(){return Ke(super.names,this.iterable.names)}},Tt=class extends Pe{constructor(e,r,s){super(),this.name=e,this.args=r,this.async=s}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};Tt.kind="func";var It=class extends Ot{render(e){return"return "+super.render(e)}};It.kind="return";var $s=class extends Pe{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var s,n;return super.optimizeNames(e,r),(s=this.catch)===null||s===void 0||s.optimizeNames(e,r),(n=this.finally)===null||n===void 0||n.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&Ke(e,this.catch.names),this.finally&&Ke(e,this.finally.names),e}},kt=class extends Pe{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};kt.kind="catch";var Rt=class extends Pe{render(e){return"finally"+super.render(e)}};Rt.kind="finally";var vs=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
1
+ import{a as ri}from"./chunk-RJ5VF3QY.js";import{d as si,g as ni}from"./chunk-IIFRDOYG.js";import{Ra as Jr,Sa as sr}from"./chunk-TB7HFPBB.js";import{b as ti}from"./chunk-NNOSZ447.js";import{i as rr}from"./chunk-773TIA5M.js";import{a as mc}from"./chunk-CX5CC6P5.js";import{c as g,e as Wr,g as u}from"./chunk-VKWPEFWQ.js";var Nt=g(q=>{"use strict";u();Object.defineProperty(q,"__esModule",{value:!0});q.regexpCode=q.getEsmExportName=q.getProperty=q.safeStringify=q.stringify=q.strConcat=q.addCodeArg=q.str=q._=q.nil=q._Code=q.Name=q.IDENTIFIER=q._CodeOrName=void 0;var bt=class{};q._CodeOrName=bt;q.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ve=class extends bt{constructor(e){if(super(),!q.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};q.Name=Ve;var se=class extends bt{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,s)=>`${r}${s}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,s)=>(s instanceof Ve&&(r[s.str]=(r[s.str]||0)+1),r),{})}};q._Code=se;q.nil=new se("");function bi(t,...e){let r=[t[0]],s=0;for(;s<e.length;)os(r,e[s]),r.push(t[++s]);return new se(r)}q._=bi;var is=new se("+");function Pi(t,...e){let r=[Pt(t[0])],s=0;for(;s<e.length;)r.push(is),os(r,e[s]),r.push(is,Pt(t[++s]));return Nc(r),new se(r)}q.str=Pi;function os(t,e){e instanceof se?t.push(...e._items):e instanceof Ve?t.push(e):t.push(Ic(e))}q.addCodeArg=os;function Nc(t){let e=1;for(;e<t.length-1;){if(t[e]===is){let r=Oc(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function Oc(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof Ve||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof Ve))return`"${t}${e.slice(1)}`}function Tc(t,e){return e.emptyStr()?t:t.emptyStr()?e:Pi`${t}${e}`}q.strConcat=Tc;function Ic(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Pt(Array.isArray(t)?t.join(","):t)}function kc(t){return new se(Pt(t))}q.stringify=kc;function Pt(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}q.safeStringify=Pt;function Rc(t){return typeof t=="string"&&q.IDENTIFIER.test(t)?new se(`.${t}`):bi`[${t}]`}q.getProperty=Rc;function jc(t){if(typeof t=="string"&&q.IDENTIFIER.test(t))return new se(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}q.getEsmExportName=jc;function qc(t){return new se(t.toString())}q.regexpCode=qc});var us=g(Q=>{"use strict";u();Object.defineProperty(Q,"__esModule",{value:!0});Q.ValueScope=Q.ValueScopeName=Q.Scope=Q.varKinds=Q.UsedValueState=void 0;var Z=Nt(),as=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},ar;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(ar||(Q.UsedValueState=ar={}));Q.varKinds={const:new Z.Name("const"),let:new Z.Name("let"),var:new Z.Name("var")};var cr=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof Z.Name?e:this.name(e)}name(e){return new Z.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,s;if(!((s=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||s===void 0)&&s.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Q.Scope=cr;var ur=class extends Z.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:s}){this.value=e,this.scopePath=(0,Z._)`.${new Z.Name(r)}[${s}]`}};Q.ValueScopeName=ur;var Ac=(0,Z._)`\n`,cs=class extends cr{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?Ac:Z.nil}}get(){return this._scope}name(e){return new ur(e,this._newName(e))}value(e,r){var s;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(e),{prefix:i}=n,o=(s=r.key)!==null&&s!==void 0?s:r.ref,a=this._values[i];if(a){let d=a.get(o);if(d)return d}else a=this._values[i]=new Map;a.set(o,n);let c=this._scope[i]||(this._scope[i]=[]),l=c.length;return c[l]=r.ref,n.setValue(r,{property:i,itemIndex:l}),n}getValue(e,r){let s=this._values[e];if(s)return s.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,Z._)`${e}${s.scopePath}`})}scopeCode(e=this._values,r,s){return this._reduceValues(e,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},r,s)}_reduceValues(e,r,s={},n){let i=Z.nil;for(let o in e){let a=e[o];if(!a)continue;let c=s[o]=s[o]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,ar.Started);let d=r(l);if(d){let f=this.opts.es5?Q.varKinds.var:Q.varKinds.const;i=(0,Z._)`${i}${f} ${l} = ${d};${this.opts._n}`}else if(d=n?.(l))i=(0,Z._)`${i}${d}${this.opts._n}`;else throw new as(l);c.set(l,ar.Completed)})}return i}};Q.ValueScope=cs});var b=g(P=>{"use strict";u();Object.defineProperty(P,"__esModule",{value:!0});P.or=P.and=P.not=P.CodeGen=P.operators=P.varKinds=P.ValueScopeName=P.ValueScope=P.Scope=P.Name=P.regexpCode=P.stringify=P.getProperty=P.nil=P.strConcat=P.str=P._=void 0;var T=Nt(),ue=us(),Ie=Nt();Object.defineProperty(P,"_",{enumerable:!0,get:function(){return Ie._}});Object.defineProperty(P,"str",{enumerable:!0,get:function(){return Ie.str}});Object.defineProperty(P,"strConcat",{enumerable:!0,get:function(){return Ie.strConcat}});Object.defineProperty(P,"nil",{enumerable:!0,get:function(){return Ie.nil}});Object.defineProperty(P,"getProperty",{enumerable:!0,get:function(){return Ie.getProperty}});Object.defineProperty(P,"stringify",{enumerable:!0,get:function(){return Ie.stringify}});Object.defineProperty(P,"regexpCode",{enumerable:!0,get:function(){return Ie.regexpCode}});Object.defineProperty(P,"Name",{enumerable:!0,get:function(){return Ie.Name}});var hr=us();Object.defineProperty(P,"Scope",{enumerable:!0,get:function(){return hr.Scope}});Object.defineProperty(P,"ValueScope",{enumerable:!0,get:function(){return hr.ValueScope}});Object.defineProperty(P,"ValueScopeName",{enumerable:!0,get:function(){return hr.ValueScopeName}});Object.defineProperty(P,"varKinds",{enumerable:!0,get:function(){return hr.varKinds}});P.operators={GT:new T._Code(">"),GTE:new T._Code(">="),LT:new T._Code("<"),LTE:new T._Code("<="),EQ:new T._Code("==="),NEQ:new T._Code("!=="),NOT:new T._Code("!"),OR:new T._Code("||"),AND:new T._Code("&&"),ADD:new T._Code("+")};var be=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},ls=class extends be{constructor(e,r,s){super(),this.varKind=e,this.name=r,this.rhs=s}render({es5:e,_n:r}){let s=e?ue.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${n};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=rt(this.rhs,e,r)),this}get names(){return this.rhs instanceof T._CodeOrName?this.rhs.names:{}}},lr=class extends be{constructor(e,r,s){super(),this.lhs=e,this.rhs=r,this.sideEffects=s}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof T.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=rt(this.rhs,e,r),this}get names(){let e=this.lhs instanceof T.Name?{}:{...this.lhs.names};return fr(e,this.rhs)}},ds=class extends lr{constructor(e,r,s,n){super(e,s,n),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},fs=class extends be{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},hs=class extends be{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},ps=class extends be{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},ms=class extends be{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=rt(this.code,e,r),this}get names(){return this.code instanceof T._CodeOrName?this.code.names:{}}},Ot=class extends be{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,s)=>r+s.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let s=e[r].optimizeNodes();Array.isArray(s)?e.splice(r,1,...s):s?e[r]=s:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:s}=this,n=s.length;for(;n--;){let i=s[n];i.optimizeNames(e,r)||(Cc(e,i.names),s.splice(n,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>Ke(e,r.names),{})}},Pe=class extends Ot{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},ys=class extends Ot{},tt=class extends Pe{};tt.kind="else";var Ue=class t extends Pe{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let s=r.optimizeNodes();r=this.else=Array.isArray(s)?new tt(s):s}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(Ni(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var s;if(this.else=(s=this.else)===null||s===void 0?void 0:s.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=rt(this.condition,e,r),this}get names(){let e=super.names;return fr(e,this.condition),this.else&&Ke(e,this.else.names),e}};Ue.kind="if";var Le=class extends Pe{};Le.kind="for";var _s=class extends Le{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=rt(this.iteration,e,r),this}get names(){return Ke(super.names,this.iteration.names)}},gs=class extends Le{constructor(e,r,s,n){super(),this.varKind=e,this.name=r,this.from=s,this.to=n}render(e){let r=e.es5?ue.varKinds.var:this.varKind,{name:s,from:n,to:i}=this;return`for(${r} ${s}=${n}; ${s}<${i}; ${s}++)`+super.render(e)}get names(){let e=fr(super.names,this.from);return fr(e,this.to)}},dr=class extends Le{constructor(e,r,s,n){super(),this.loop=e,this.varKind=r,this.name=s,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=rt(this.iterable,e,r),this}get names(){return Ke(super.names,this.iterable.names)}},Tt=class extends Pe{constructor(e,r,s){super(),this.name=e,this.args=r,this.async=s}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};Tt.kind="func";var It=class extends Ot{render(e){return"return "+super.render(e)}};It.kind="return";var $s=class extends Pe{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var s,n;return super.optimizeNames(e,r),(s=this.catch)===null||s===void 0||s.optimizeNames(e,r),(n=this.finally)===null||n===void 0||n.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&Ke(e,this.catch.names),this.finally&&Ke(e,this.finally.names),e}},kt=class extends Pe{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};kt.kind="catch";var Rt=class extends Pe{render(e){return"finally"+super.render(e)}};Rt.kind="finally";var vs=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
2
2
  `:""},this._extScope=e,this._scope=new ue.Scope({parent:e}),this._nodes=[new ys]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let s=this._extScope.value(e,r);return(this._values[s.prefix]||(this._values[s.prefix]=new Set)).add(s),s}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,s,n){let i=this._scope.toName(r);return s!==void 0&&n&&(this._constants[i.str]=s),this._leafNode(new ls(e,i,s)),i}const(e,r,s){return this._def(ue.varKinds.const,e,r,s)}let(e,r,s){return this._def(ue.varKinds.let,e,r,s)}var(e,r,s){return this._def(ue.varKinds.var,e,r,s)}assign(e,r,s){return this._leafNode(new lr(e,r,s))}add(e,r){return this._leafNode(new ds(e,P.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==T.nil&&this._leafNode(new ms(e)),this}object(...e){let r=["{"];for(let[s,n]of e)r.length>1&&r.push(","),r.push(s),(s!==n||this.opts.es5)&&(r.push(":"),(0,T.addCodeArg)(r,n));return r.push("}"),new T._Code(r)}if(e,r,s){if(this._blockNode(new Ue(e)),r&&s)this.code(r).else().code(s).endIf();else if(r)this.code(r).endIf();else if(s)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new Ue(e))}else(){return this._elseNode(new tt)}endIf(){return this._endBlockNode(Ue,tt)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new _s(e),r)}forRange(e,r,s,n,i=this.opts.es5?ue.varKinds.var:ue.varKinds.let){let o=this._scope.toName(e);return this._for(new gs(i,o,r,s),()=>n(o))}forOf(e,r,s,n=ue.varKinds.const){let i=this._scope.toName(e);if(this.opts.es5){let o=r instanceof T.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,T._)`${o}.length`,a=>{this.var(i,(0,T._)`${o}[${a}]`),s(i)})}return this._for(new dr("of",n,i,r),()=>s(i))}forIn(e,r,s,n=this.opts.es5?ue.varKinds.var:ue.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,T._)`Object.keys(${r})`,s);let i=this._scope.toName(e);return this._for(new dr("in",n,i,r),()=>s(i))}endFor(){return this._endBlockNode(Le)}label(e){return this._leafNode(new fs(e))}break(e){return this._leafNode(new hs(e))}return(e){let r=new It;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(It)}try(e,r,s){if(!r&&!s)throw new Error('CodeGen: "try" without "catch" and "finally"');let n=new $s;if(this._blockNode(n),this.code(e),r){let i=this.name("e");this._currNode=n.catch=new kt(i),r(i)}return s&&(this._currNode=n.finally=new Rt,this.code(s)),this._endBlockNode(kt,Rt)}throw(e){return this._leafNode(new ps(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let s=this._nodes.length-r;if(s<0||e!==void 0&&s!==e)throw new Error(`CodeGen: wrong number of nodes: ${s} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=T.nil,s,n){return this._blockNode(new Tt(e,r,s)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(Tt)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let s=this._currNode;if(s instanceof e||r&&s instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof Ue))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};P.CodeGen=vs;function Ke(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function fr(t,e){return e instanceof T._CodeOrName?Ke(t,e.names):t}function rt(t,e,r){if(t instanceof T.Name)return s(t);if(!n(t))return t;return new T._Code(t._items.reduce((i,o)=>(o instanceof T.Name&&(o=s(o)),o instanceof T._Code?i.push(...o._items):i.push(o),i),[]));function s(i){let o=r[i.str];return o===void 0||e[i.str]!==1?i:(delete e[i.str],o)}function n(i){return i instanceof T._Code&&i._items.some(o=>o instanceof T.Name&&e[o.str]===1&&r[o.str]!==void 0)}}function Cc(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function Ni(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,T._)`!${ws(t)}`}P.not=Ni;var Mc=Oi(P.operators.AND);function Dc(...t){return t.reduce(Mc)}P.and=Dc;var xc=Oi(P.operators.OR);function zc(...t){return t.reduce(xc)}P.or=zc;function Oi(t){return(e,r)=>e===T.nil?r:r===T.nil?e:(0,T._)`${ws(e)} ${t} ${ws(r)}`}function ws(t){return t instanceof T.Name?t:(0,T._)`(${t})`}});var k=g(N=>{"use strict";u();Object.defineProperty(N,"__esModule",{value:!0});N.checkStrictMode=N.getErrorPath=N.Type=N.useFunc=N.setEvaluated=N.evaluatedPropsToName=N.mergeEvaluated=N.eachItem=N.unescapeJsonPointer=N.escapeJsonPointer=N.escapeFragment=N.unescapeFragment=N.schemaRefOrVal=N.schemaHasRulesButRef=N.schemaHasRules=N.checkUnknownRules=N.alwaysValidSchema=N.toHash=void 0;var C=b(),Fc=Nt();function Vc(t){let e={};for(let r of t)e[r]=!0;return e}N.toHash=Vc;function Uc(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(ki(t,e),!Ri(e,t.self.RULES.all))}N.alwaysValidSchema=Uc;function ki(t,e=t.schema){let{opts:r,self:s}=t;if(!r.strictSchema||typeof e=="boolean")return;let n=s.RULES.keywords;for(let i in e)n[i]||Ai(t,`unknown keyword: "${i}"`)}N.checkUnknownRules=ki;function Ri(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}N.schemaHasRules=Ri;function Lc(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}N.schemaHasRulesButRef=Lc;function Kc({topSchemaRef:t,schemaPath:e},r,s,n){if(!n){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,C._)`${r}`}return(0,C._)`${t}${e}${(0,C.getProperty)(s)}`}N.schemaRefOrVal=Kc;function Gc(t){return ji(decodeURIComponent(t))}N.unescapeFragment=Gc;function Hc(t){return encodeURIComponent(Ss(t))}N.escapeFragment=Hc;function Ss(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}N.escapeJsonPointer=Ss;function ji(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}N.unescapeJsonPointer=ji;function Wc(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}N.eachItem=Wc;function Ti({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:s}){return(n,i,o,a)=>{let c=o===void 0?i:o instanceof C.Name?(i instanceof C.Name?t(n,i,o):e(n,i,o),o):i instanceof C.Name?(e(n,o,i),i):r(i,o);return a===C.Name&&!(c instanceof C.Name)?s(n,c):c}}N.mergeEvaluated={props:Ti({mergeNames:(t,e,r)=>t.if((0,C._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,C._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,C._)`${r} || {}`).code((0,C._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,C._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,C._)`${r} || {}`),bs(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:qi}),items:Ti({mergeNames:(t,e,r)=>t.if((0,C._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,C._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,C._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,C._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function qi(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,C._)`{}`);return e!==void 0&&bs(t,r,e),r}N.evaluatedPropsToName=qi;function bs(t,e,r){Object.keys(r).forEach(s=>t.assign((0,C._)`${e}${(0,C.getProperty)(s)}`,!0))}N.setEvaluated=bs;var Ii={};function Jc(t,e){return t.scopeValue("func",{ref:e,code:Ii[e.code]||(Ii[e.code]=new Fc._Code(e.code))})}N.useFunc=Jc;var Es;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Es||(N.Type=Es={}));function Yc(t,e,r){if(t instanceof C.Name){let s=e===Es.Num;return r?s?(0,C._)`"[" + ${t} + "]"`:(0,C._)`"['" + ${t} + "']"`:s?(0,C._)`"/" + ${t}`:(0,C._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,C.getProperty)(t).toString():"/"+Ss(t)}N.getErrorPath=Yc;function Ai(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}N.checkStrictMode=Ai});var Ne=g(Ps=>{"use strict";u();Object.defineProperty(Ps,"__esModule",{value:!0});var H=b(),Bc={data:new H.Name("data"),valCxt:new H.Name("valCxt"),instancePath:new H.Name("instancePath"),parentData:new H.Name("parentData"),parentDataProperty:new H.Name("parentDataProperty"),rootData:new H.Name("rootData"),dynamicAnchors:new H.Name("dynamicAnchors"),vErrors:new H.Name("vErrors"),errors:new H.Name("errors"),this:new H.Name("this"),self:new H.Name("self"),scope:new H.Name("scope"),json:new H.Name("json"),jsonPos:new H.Name("jsonPos"),jsonLen:new H.Name("jsonLen"),jsonPart:new H.Name("jsonPart")};Ps.default=Bc});var jt=g(W=>{"use strict";u();Object.defineProperty(W,"__esModule",{value:!0});W.extendErrors=W.resetErrorsCount=W.reportExtraError=W.reportError=W.keyword$DataError=W.keywordError=void 0;var R=b(),pr=k(),Y=Ne();W.keywordError={message:({keyword:t})=>(0,R.str)`must pass "${t}" keyword validation`};W.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,R.str)`"${t}" keyword must be ${e} ($data)`:(0,R.str)`"${t}" keyword is invalid ($data)`};function Xc(t,e=W.keywordError,r,s){let{it:n}=t,{gen:i,compositeRule:o,allErrors:a}=n,c=Di(t,e,r);s??(o||a)?Ci(i,c):Mi(n,(0,R._)`[${c}]`)}W.reportError=Xc;function Zc(t,e=W.keywordError,r){let{it:s}=t,{gen:n,compositeRule:i,allErrors:o}=s,a=Di(t,e,r);Ci(n,a),i||o||Mi(s,Y.default.vErrors)}W.reportExtraError=Zc;function Qc(t,e){t.assign(Y.default.errors,e),t.if((0,R._)`${Y.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,R._)`${Y.default.vErrors}.length`,e),()=>t.assign(Y.default.vErrors,null)))}W.resetErrorsCount=Qc;function eu({gen:t,keyword:e,schemaValue:r,data:s,errsCount:n,it:i}){if(n===void 0)throw new Error("ajv implementation error");let o=t.name("err");t.forRange("i",n,Y.default.errors,a=>{t.const(o,(0,R._)`${Y.default.vErrors}[${a}]`),t.if((0,R._)`${o}.instancePath === undefined`,()=>t.assign((0,R._)`${o}.instancePath`,(0,R.strConcat)(Y.default.instancePath,i.errorPath))),t.assign((0,R._)`${o}.schemaPath`,(0,R.str)`${i.errSchemaPath}/${e}`),i.opts.verbose&&(t.assign((0,R._)`${o}.schema`,r),t.assign((0,R._)`${o}.data`,s))})}W.extendErrors=eu;function Ci(t,e){let r=t.const("err",e);t.if((0,R._)`${Y.default.vErrors} === null`,()=>t.assign(Y.default.vErrors,(0,R._)`[${r}]`),(0,R._)`${Y.default.vErrors}.push(${r})`),t.code((0,R._)`${Y.default.errors}++`)}function Mi(t,e){let{gen:r,validateName:s,schemaEnv:n}=t;n.$async?r.throw((0,R._)`new ${t.ValidationError}(${e})`):(r.assign((0,R._)`${s}.errors`,e),r.return(!1))}var Ge={keyword:new R.Name("keyword"),schemaPath:new R.Name("schemaPath"),params:new R.Name("params"),propertyName:new R.Name("propertyName"),message:new R.Name("message"),schema:new R.Name("schema"),parentSchema:new R.Name("parentSchema")};function Di(t,e,r){let{createErrors:s}=t.it;return s===!1?(0,R._)`{}`:tu(t,e,r)}function tu(t,e,r={}){let{gen:s,it:n}=t,i=[ru(n,r),su(t,r)];return nu(t,e,i),s.object(...i)}function ru({errorPath:t},{instancePath:e}){let r=e?(0,R.str)`${t}${(0,pr.getErrorPath)(e,pr.Type.Str)}`:t;return[Y.default.instancePath,(0,R.strConcat)(Y.default.instancePath,r)]}function su({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:s}){let n=s?e:(0,R.str)`${e}/${t}`;return r&&(n=(0,R.str)`${n}${(0,pr.getErrorPath)(r,pr.Type.Str)}`),[Ge.schemaPath,n]}function nu(t,{params:e,message:r},s){let{keyword:n,data:i,schemaValue:o,it:a}=t,{opts:c,propertyName:l,topSchemaRef:d,schemaPath:f}=a;s.push([Ge.keyword,n],[Ge.params,typeof e=="function"?e(t):e||(0,R._)`{}`]),c.messages&&s.push([Ge.message,typeof r=="function"?r(t):r]),c.verbose&&s.push([Ge.schema,o],[Ge.parentSchema,(0,R._)`${d}${f}`],[Y.default.data,i]),l&&s.push([Ge.propertyName,l])}});var zi=g(st=>{"use strict";u();Object.defineProperty(st,"__esModule",{value:!0});st.boolOrEmptySchema=st.topBoolOrEmptySchema=void 0;var iu=jt(),ou=b(),au=Ne(),cu={message:"boolean schema is false"};function uu(t){let{gen:e,schema:r,validateName:s}=t;r===!1?xi(t,!1):typeof r=="object"&&r.$async===!0?e.return(au.default.data):(e.assign((0,ou._)`${s}.errors`,null),e.return(!0))}st.topBoolOrEmptySchema=uu;function lu(t,e){let{gen:r,schema:s}=t;s===!1?(r.var(e,!1),xi(t)):r.var(e,!0)}st.boolOrEmptySchema=lu;function xi(t,e){let{gen:r,data:s}=t,n={gen:r,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,iu.reportError)(n,cu,void 0,e)}});var Ns=g(nt=>{"use strict";u();Object.defineProperty(nt,"__esModule",{value:!0});nt.getRules=nt.isJSONType=void 0;var du=["string","number","integer","boolean","null","object","array"],fu=new Set(du);function hu(t){return typeof t=="string"&&fu.has(t)}nt.isJSONType=hu;function pu(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}nt.getRules=pu});var Os=g(ke=>{"use strict";u();Object.defineProperty(ke,"__esModule",{value:!0});ke.shouldUseRule=ke.shouldUseGroup=ke.schemaHasRulesForType=void 0;function mu({schema:t,self:e},r){let s=e.RULES.types[r];return s&&s!==!0&&Fi(t,s)}ke.schemaHasRulesForType=mu;function Fi(t,e){return e.rules.some(r=>Vi(t,r))}ke.shouldUseGroup=Fi;function Vi(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(s=>t[s]!==void 0))}ke.shouldUseRule=Vi});var qt=g(J=>{"use strict";u();Object.defineProperty(J,"__esModule",{value:!0});J.reportTypeError=J.checkDataTypes=J.checkDataType=J.coerceAndCheckDataType=J.getJSONTypes=J.getSchemaTypes=J.DataType=void 0;var yu=Ns(),_u=Os(),gu=jt(),S=b(),Ui=k(),it;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(it||(J.DataType=it={}));function $u(t){let e=Li(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}J.getSchemaTypes=$u;function Li(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(yu.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}J.getJSONTypes=Li;function vu(t,e){let{gen:r,data:s,opts:n}=t,i=wu(e,n.coerceTypes),o=e.length>0&&!(i.length===0&&e.length===1&&(0,_u.schemaHasRulesForType)(t,e[0]));if(o){let a=Is(e,s,n.strictNumbers,it.Wrong);r.if(a,()=>{i.length?Eu(t,e,i):ks(t)})}return o}J.coerceAndCheckDataType=vu;var Ki=new Set(["string","number","integer","boolean","null"]);function wu(t,e){return e?t.filter(r=>Ki.has(r)||e==="array"&&r==="array"):[]}function Eu(t,e,r){let{gen:s,data:n,opts:i}=t,o=s.let("dataType",(0,S._)`typeof ${n}`),a=s.let("coerced",(0,S._)`undefined`);i.coerceTypes==="array"&&s.if((0,S._)`${o} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>s.assign(n,(0,S._)`${n}[0]`).assign(o,(0,S._)`typeof ${n}`).if(Is(e,n,i.strictNumbers),()=>s.assign(a,n))),s.if((0,S._)`${a} !== undefined`);for(let l of r)(Ki.has(l)||l==="array"&&i.coerceTypes==="array")&&c(l);s.else(),ks(t),s.endIf(),s.if((0,S._)`${a} !== undefined`,()=>{s.assign(n,a),Su(t,a)});function c(l){switch(l){case"string":s.elseIf((0,S._)`${o} == "number" || ${o} == "boolean"`).assign(a,(0,S._)`"" + ${n}`).elseIf((0,S._)`${n} === null`).assign(a,(0,S._)`""`);return;case"number":s.elseIf((0,S._)`${o} == "boolean" || ${n} === null
3
3
  || (${o} == "string" && ${n} && ${n} == +${n})`).assign(a,(0,S._)`+${n}`);return;case"integer":s.elseIf((0,S._)`${o} === "boolean" || ${n} === null
4
4
  || (${o} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(a,(0,S._)`+${n}`);return;case"boolean":s.elseIf((0,S._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(a,!1).elseIf((0,S._)`${n} === "true" || ${n} === 1`).assign(a,!0);return;case"null":s.elseIf((0,S._)`${n} === "" || ${n} === 0 || ${n} === false`),s.assign(a,null);return;case"array":s.elseIf((0,S._)`${o} === "string" || ${o} === "number"
@@ -1 +1 @@
1
- import{n as a}from"./chunk-2HZMOK4U.js";import{d as o}from"./chunk-ELIH6GCC.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();var n={LOCALHOST:"localhost",HTTP:"http",PUBSUB:"google-pub-sub",EVENTBRIDGE:"event-bridge"},p={LOCALHOST:new RegExp("^http:","i"),HTTP:new RegExp("^https:","i"),PUBSUB:new RegExp("^pubsub:"),EVENTBRIDGE:new RegExp("^arn:aws:events:")};function c(t,e){let r=h(t);return r===n.LOCALHOST&&e===n.HTTP?!0:r===e}function f(t){return p.LOCALHOST.test(t)?new URL(t.toLowerCase()).hostname==="localhost":!1}function E(t,e){if(!c(t,e))throw new o(`Can't deliver your webhook payload to this address using '${e}'`,"Use a valid URL for address",l(e));let r=e;return f(t)&&(r=n.LOCALHOST),[t.trim(),r]}function l(t){return t===n.HTTP?["For remote HTTP testing, use a URL that starts with https://","For local HTTP testing, use http://localhost:{port}/{url-path}"]:t===n.PUBSUB?["For Google Pub/Sub, use pubsub://{project-id}:{topic-id}"]:t===n.EVENTBRIDGE?["For Amazon EventBridge, use an Amazon Resource Name (ARN) starting with arn:aws:events:"]:[]}function g(t,e){if(e.includes(t))return t;throw new o(`Api Version '${t}' does not exist`,`Allowed values: ${e.join(", ")}`,["Try again with a valid api-version value"])}function L(t,e,r){if(r.length===0)throw new o(`No topics found for '${e}'`);let i=T(t.trim(),r);if(i===void 0)throw new o(`Topic '${t}' does not exist for ApiVersion '${e}'`,`Allowed values: ${r.join(", ")}`,["Try again with a valid api-version - topic pair"]);return i}function T(t,e){return e.includes(t)?t:e.find(r=>r.toUpperCase().replace("/","_")===t)}function h(t){if(t){if(t.startsWith("pubsub:"))return n.PUBSUB;if(t.startsWith("arn:aws:events:"))return n.EVENTBRIDGE;if(f(t))return n.LOCALHOST;if(p.HTTP.test(t))return n.HTTP}}u();async function H(t,e,r){let i={method:"POST",body:e,headers:{"Content-Type":"application/json",...JSON.parse(r)}},s=await a(t,i);return s.status>=200&&s.status<300}export{H as a,n as b,c,E as d,g as e,L as f,h as g};
1
+ import{n as a}from"./chunk-TIU7MMRT.js";import{d as o}from"./chunk-IIFRDOYG.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();var n={LOCALHOST:"localhost",HTTP:"http",PUBSUB:"google-pub-sub",EVENTBRIDGE:"event-bridge"},p={LOCALHOST:new RegExp("^http:","i"),HTTP:new RegExp("^https:","i"),PUBSUB:new RegExp("^pubsub:"),EVENTBRIDGE:new RegExp("^arn:aws:events:")};function c(t,e){let r=h(t);return r===n.LOCALHOST&&e===n.HTTP?!0:r===e}function f(t){return p.LOCALHOST.test(t)?new URL(t.toLowerCase()).hostname==="localhost":!1}function E(t,e){if(!c(t,e))throw new o(`Can't deliver your webhook payload to this address using '${e}'`,"Use a valid URL for address",l(e));let r=e;return f(t)&&(r=n.LOCALHOST),[t.trim(),r]}function l(t){return t===n.HTTP?["For remote HTTP testing, use a URL that starts with https://","For local HTTP testing, use http://localhost:{port}/{url-path}"]:t===n.PUBSUB?["For Google Pub/Sub, use pubsub://{project-id}:{topic-id}"]:t===n.EVENTBRIDGE?["For Amazon EventBridge, use an Amazon Resource Name (ARN) starting with arn:aws:events:"]:[]}function g(t,e){if(e.includes(t))return t;throw new o(`Api Version '${t}' does not exist`,`Allowed values: ${e.join(", ")}`,["Try again with a valid api-version value"])}function L(t,e,r){if(r.length===0)throw new o(`No topics found for '${e}'`);let i=T(t.trim(),r);if(i===void 0)throw new o(`Topic '${t}' does not exist for ApiVersion '${e}'`,`Allowed values: ${r.join(", ")}`,["Try again with a valid api-version - topic pair"]);return i}function T(t,e){return e.includes(t)?t:e.find(r=>r.toUpperCase().replace("/","_")===t)}function h(t){if(t){if(t.startsWith("pubsub:"))return n.PUBSUB;if(t.startsWith("arn:aws:events:"))return n.EVENTBRIDGE;if(f(t))return n.LOCALHOST;if(p.HTTP.test(t))return n.HTTP}}u();async function H(t,e,r){let i={method:"POST",body:e,headers:{"Content-Type":"application/json",...JSON.parse(r)}},s=await a(t,i);return s.status>=200&&s.status<300}export{H as a,n as b,c,E as d,g as e,L as f,h as g};
@@ -1 +1 @@
1
- import{a as k}from"./chunk-YB3SGPFF.js";import{a as g}from"./chunk-MOCD7GFI.js";import{a as y}from"./chunk-7XQDZF73.js";import{Ga as w,g as b}from"./chunk-UZ7U322K.js";import{b as h}from"./chunk-Q6LCSRIW.js";import{O as u,t as m,v as f}from"./chunk-E24W34C4.js";import{d}from"./chunk-3QVXHF6I.js";import{r as S}from"./chunk-T6CC5WUU.js";import{e as A,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();async function r(e,{web:i,stdout:t,stderr:a,signal:s,env:p={}}){let l=i.configuration.commands[e];if(!l)return;let[_,...v]=l.split(" ");await u(_,v,{cwd:i.directory,stdout:t,stderr:a,signal:s,env:p}),t.write("Web successfully built.")}async function P(e){!e.skipDependenciesInstallation&&!e.project.usesWorkspaces&&await g(e.project);let i={};e.apiKey&&(i.SHOPIFY_API_KEY=e.apiKey),await b(e.app),await m({processes:[...e.app.webs.map(t=>({prefix:["web",...t.configuration.roles].join("-"),action:async(a,s,p)=>{await r("build",{web:t,stdout:a,stderr:s,signal:p,env:i})}})),...e.app.allExtensions.map(t=>({prefix:t.localIdentifier,action:async(a,s,p)=>{await t.build({stdout:a,stderr:s,signal:p,app:e.app,environment:"production"})}}))],showTimestamps:!1}),f({headline:[{userInput:e.app.name},"built!"]})}var x=P;var I=A(S(),1);var c,n=class extends k{async run(){let{flags:i}=await this.parse(c),t=i["client-id"];await d(()=>({cmd_app_dependency_installation_skipped:i["skip-dependencies-installation"]}));let{app:a,project:s}=await w({directory:i.path,userProvidedConfigName:i.config});return await x({app:a,project:s,skipDependenciesInstallation:i["skip-dependencies-installation"],apiKey:t}),{app:a}}};c=n;n.summary="Build the app, including extensions.";n.descriptionWithMarkdown="This command executes the build script specified in the element's TOML file. You can specify a custom script in the file. To learn about configuration files in Shopify apps, refer to [App configuration](https://shopify.dev/docs/apps/tools/cli/configuration).\n\n If you're building a [theme app extension](https://shopify.dev/docs/apps/online-store/theme-app-extensions), then running the `build` command runs [Theme Check](https://shopify.dev/docs/themes/tools/theme-check) against your extension to ensure that it's valid.";n.description=c.descriptionWithoutMarkdown();n.flags={...h,...y,"skip-dependencies-installation":I.Flags.boolean({hidden:!1,description:"Skips the installation of dependencies. Deprecated, use workspaces instead.",env:"SHOPIFY_FLAG_SKIP_DEPENDENCIES_INSTALLATION",default:!1})};var J=n;export{J as a};
1
+ import{a as k}from"./chunk-P7U6BWKN.js";import{a as g}from"./chunk-AAK3WGD7.js";import{a as y}from"./chunk-VJQJ5PTQ.js";import{Ga as w,g as b}from"./chunk-4MLEL3VK.js";import{b as h}from"./chunk-NGCPVRDM.js";import{O as u,t as m,v as f}from"./chunk-EEEKSYWV.js";import{d}from"./chunk-7AY6HLQG.js";import{r as S}from"./chunk-T6CC5WUU.js";import{e as A,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();async function r(e,{web:i,stdout:t,stderr:a,signal:s,env:p={}}){let l=i.configuration.commands[e];if(!l)return;let[_,...v]=l.split(" ");await u(_,v,{cwd:i.directory,stdout:t,stderr:a,signal:s,env:p}),t.write("Web successfully built.")}async function P(e){!e.skipDependenciesInstallation&&!e.project.usesWorkspaces&&await g(e.project);let i={};e.apiKey&&(i.SHOPIFY_API_KEY=e.apiKey),await b(e.app),await m({processes:[...e.app.webs.map(t=>({prefix:["web",...t.configuration.roles].join("-"),action:async(a,s,p)=>{await r("build",{web:t,stdout:a,stderr:s,signal:p,env:i})}})),...e.app.allExtensions.map(t=>({prefix:t.localIdentifier,action:async(a,s,p)=>{await t.build({stdout:a,stderr:s,signal:p,app:e.app,environment:"production"})}}))],showTimestamps:!1}),f({headline:[{userInput:e.app.name},"built!"]})}var x=P;var I=A(S(),1);var c,n=class extends k{async run(){let{flags:i}=await this.parse(c),t=i["client-id"];await d(()=>({cmd_app_dependency_installation_skipped:i["skip-dependencies-installation"]}));let{app:a,project:s}=await w({directory:i.path,userProvidedConfigName:i.config});return await x({app:a,project:s,skipDependenciesInstallation:i["skip-dependencies-installation"],apiKey:t}),{app:a}}};c=n;n.summary="Build the app, including extensions.";n.descriptionWithMarkdown="This command executes the build script specified in the element's TOML file. You can specify a custom script in the file. To learn about configuration files in Shopify apps, refer to [App configuration](https://shopify.dev/docs/apps/tools/cli/configuration).\n\n If you're building a [theme app extension](https://shopify.dev/docs/apps/online-store/theme-app-extensions), then running the `build` command runs [Theme Check](https://shopify.dev/docs/themes/tools/theme-check) against your extension to ensure that it's valid.";n.description=c.descriptionWithoutMarkdown();n.flags={...h,...y,"skip-dependencies-installation":I.Flags.boolean({hidden:!1,description:"Skips the installation of dependencies. Deprecated, use workspaces instead.",env:"SHOPIFY_FLAG_SKIP_DEPENDENCIES_INSTALLATION",default:!1})};var J=n;export{J as a};
@@ -1,4 +1,4 @@
1
- import{c as Me}from"./chunk-ICFFBMFB.js";import{$ as ze,H as Ee,I as $e,K as ie,L as ae,P as te,b as Ie,ba as q,ca as Re,e as X,f as Te,ga as h,ha as Ce,ia as K,j as p,ja as Oe,ka as Le,la as Be,n as Ve,na as U,o as L,oa as Ke,pa as j,r as s,t as ee,v as D,w as qe,x as ne,z as B}from"./chunk-2HZMOK4U.js";import{b as Pe}from"./chunk-ZDF5N422.js";import{w as oe}from"./chunk-VRRDIXFQ.js";import{b as we}from"./chunk-LUG2BZJP.js";import{a as M}from"./chunk-J3KRY2SD.js";import{b as Ue}from"./chunk-4TC4M4RC.js";import{a as Ge}from"./chunk-WW7TENNA.js";import{B as je}from"./chunk-E24W34C4.js";import{d as k,g as v}from"./chunk-ELIH6GCC.js";import{Fb as We,Hb as Qe,N as be,Pb as x,Ta as De,U as Fe,Wa as xe,ga as _e,ma as Ae}from"./chunk-EYDNSYYE.js";import{u as Z}from"./chunk-A4SBXDZB.js";import{f as H,j as He}from"./chunk-JCNRQYRP.js";import{d as he,j as O}from"./chunk-773TIA5M.js";import{e as P,g as o}from"./chunk-VKWPEFWQ.js";o();function E(n,{httpsOnly:e=!1,message:i="Invalid URL"}={}){return n.refine(a=>Je(a,e),{message:i}).refine(a=>!a.includes(`
1
+ import{c as Me}from"./chunk-TNUY66EE.js";import{$ as ze,H as Ee,I as $e,K as ie,L as ae,P as te,b as Ie,ba as q,ca as Re,e as X,f as Te,ga as h,ha as Ce,ia as K,j as p,ja as Oe,ka as Le,la as Be,n as Ve,na as U,o as L,oa as Ke,pa as j,r as s,t as ee,v as D,w as qe,x as ne,z as B}from"./chunk-TIU7MMRT.js";import{b as Pe}from"./chunk-ZDF5N422.js";import{w as oe}from"./chunk-SSDEWKDZ.js";import{b as we}from"./chunk-ZT4PUH7L.js";import{a as M}from"./chunk-B5MFFERE.js";import{b as Ue}from"./chunk-QEVGRNUE.js";import{a as Ge}from"./chunk-WW7TENNA.js";import{B as je}from"./chunk-EEEKSYWV.js";import{d as k,g as v}from"./chunk-IIFRDOYG.js";import{Fb as We,Hb as Qe,N as be,Pb as x,Ta as De,U as Fe,Wa as xe,ga as _e,ma as Ae}from"./chunk-TB7HFPBB.js";import{u as Z}from"./chunk-A4SBXDZB.js";import{f as H,j as He}from"./chunk-SZM6ANMN.js";import{d as he,j as O}from"./chunk-773TIA5M.js";import{e as P,g as o}from"./chunk-VKWPEFWQ.js";o();function E(n,{httpsOnly:e=!1,message:i="Invalid URL"}={}){return n.refine(a=>Je(a,e),{message:i}).refine(a=>!a.includes(`
2
2
  `),{message:i})}function mt(n,{message:e="URL must be HTTPS URL or start with /"}={}){return n.refine(i=>i.startsWith("/")||Je(i,!0),{message:e})}function Je(n,e){try{let i=new URL(n);return e?i.protocol==="https:":["http:","https:"].includes(i.protocol)}catch{return!1}}function pt(n){return typeof n=="string"&&!n.startsWith("/")?`/${n}`:n}var Ji=30;function ut(n){return n.length<=Ji}o();o();o();var Ye=p`
3
3
  mutation AppCreate(
4
4
  $org: Int!
@@ -1 +1 @@
1
- import{M as l,N as I,P}from"./chunk-UZ7U322K.js";import{Z as M,ea as N}from"./chunk-IRH6IGFT.js";import{a as w}from"./chunk-5JCREGSD.js";import{z as g}from"./chunk-2HZMOK4U.js";import{a as D}from"./chunk-5C7HDTHJ.js";import{D as _,P as h,u as b}from"./chunk-E24W34C4.js";import{b as m,d as p,g as y}from"./chunk-ELIH6GCC.js";import{Nb as F}from"./chunk-EYDNSYYE.js";import{j as E}from"./chunk-JCNRQYRP.js";import{g as d}from"./chunk-VKWPEFWQ.js";d();d();async function u(t,e,r){let i=r.clientName===M.AppManagement,s;r.supportsStoreSearch&&(s=async a=>r.devStoresForOrg(e.id,a));let o=await l({onSearchForStoresByName:s,...t,showDomainOnPrompt:i});if(!o){if(b({body:await r.getCreateDevStoreLink(e)}),await h(5),!await P(e))throw new m;let f=await k(e.id,r);o=await u({stores:f,hasMorePages:!1},e,r)}let n=await c(o,e.id,r,"prompt-first");for(;!n;){if(o=await l({stores:[o],hasMorePages:!1,showDomainOnPrompt:i}),!o)throw new m;n=await c(o,e.id,r,"prompt-first")}return o}async function k(t,e){let s=[];return await _([{title:"Fetching organization data",task:async()=>{for(let n=0;n<10;n++){let{stores:a}=await e.devStoresForOrg(t);if(a.length>0){s=a;return}await h(3)}}}]),s}async function c(t,e,r,i){if(t.transferDisabled||E())return!0;if(!t.transferDisabled&&!t.convertableToPartnerTest)throw new p(`The store you specified (${t.shopDomain}) is not a dev store`,"Run dev --reset and select an eligible dev store.");switch(i){case"prompt-first":return await I()?(await x(t,e,r),!0):!1;case"never":throw new p("The store you specified is not transfer-disabled","Try running 'dev --reset' and selecting a different store, or choosing to convert this one.")}}async function x(t,e,r){let i={input:{organizationID:parseInt(e,10),shopId:t.shopId}},s=await r.convertToTransferDisabledStore(i);if(!s.convertDevToTestStore.convertedToTestStore){let o=s.convertDevToTestStore.userErrors.map(n=>n.message).join(", ");throw new y(`Error converting store ${t.shopDomain} to a transfer-disabled store: ${o}`,"This store might not be compatible with draft apps, please try a different store")}F(`Converted ${t.shopDomain} to a transfer-disabled store`)}async function X({appContextResult:t,storeFqdn:e,forceReselectStore:r,storeTypes:i=["APP_DEVELOPMENT"]}){let{app:s,organization:o,developerPlatformClient:n}=t,a,f=s.configuration.build?.dev_store_url,S=s.hiddenConfig.dev_store_url,T=f??S,v=e??(r?void 0:T),O=i.length===1&&i[0]==="APP_DEVELOPMENT";if(v)a=await N(o,v,n,i),O&&await c(a,o.id,n,"never");else{let A=await n.devStoresForOrg(o.id);a=await u(A,o,n)}return a.shopDomain=g(a.shopDomain),await C(a,r),(a.shopDomain!==T||!S)&&await s.updateHiddenConfig({dev_store_url:a.shopDomain}),await n.ensureUserAccessToStore(o.id,a),a}async function C(t,e){await w.addPublicMetadata(()=>({cmd_app_reset_used:e,store_fqdn_hash:D(t.shopDomain),store_domain:t.shopDomain})),await w.addSensitiveMetadata(()=>({store_fqdn:t.shopDomain}))}export{X as a};
1
+ import{M as l,N as I,P}from"./chunk-4MLEL3VK.js";import{Z as M,ea as N}from"./chunk-R7QYSC6T.js";import{a as w}from"./chunk-7PVNAILK.js";import{z as g}from"./chunk-TIU7MMRT.js";import{a as D}from"./chunk-5C7HDTHJ.js";import{D as _,P as h,u as b}from"./chunk-EEEKSYWV.js";import{b as m,d as p,g as y}from"./chunk-IIFRDOYG.js";import{Nb as F}from"./chunk-TB7HFPBB.js";import{j as E}from"./chunk-SZM6ANMN.js";import{g as d}from"./chunk-VKWPEFWQ.js";d();d();async function u(t,e,r){let i=r.clientName===M.AppManagement,s;r.supportsStoreSearch&&(s=async a=>r.devStoresForOrg(e.id,a));let o=await l({onSearchForStoresByName:s,...t,showDomainOnPrompt:i});if(!o){if(b({body:await r.getCreateDevStoreLink(e)}),await h(5),!await P(e))throw new m;let f=await k(e.id,r);o=await u({stores:f,hasMorePages:!1},e,r)}let n=await c(o,e.id,r,"prompt-first");for(;!n;){if(o=await l({stores:[o],hasMorePages:!1,showDomainOnPrompt:i}),!o)throw new m;n=await c(o,e.id,r,"prompt-first")}return o}async function k(t,e){let s=[];return await _([{title:"Fetching organization data",task:async()=>{for(let n=0;n<10;n++){let{stores:a}=await e.devStoresForOrg(t);if(a.length>0){s=a;return}await h(3)}}}]),s}async function c(t,e,r,i){if(t.transferDisabled||E())return!0;if(!t.transferDisabled&&!t.convertableToPartnerTest)throw new p(`The store you specified (${t.shopDomain}) is not a dev store`,"Run dev --reset and select an eligible dev store.");switch(i){case"prompt-first":return await I()?(await x(t,e,r),!0):!1;case"never":throw new p("The store you specified is not transfer-disabled","Try running 'dev --reset' and selecting a different store, or choosing to convert this one.")}}async function x(t,e,r){let i={input:{organizationID:parseInt(e,10),shopId:t.shopId}},s=await r.convertToTransferDisabledStore(i);if(!s.convertDevToTestStore.convertedToTestStore){let o=s.convertDevToTestStore.userErrors.map(n=>n.message).join(", ");throw new y(`Error converting store ${t.shopDomain} to a transfer-disabled store: ${o}`,"This store might not be compatible with draft apps, please try a different store")}F(`Converted ${t.shopDomain} to a transfer-disabled store`)}async function X({appContextResult:t,storeFqdn:e,forceReselectStore:r,storeTypes:i=["APP_DEVELOPMENT"]}){let{app:s,organization:o,developerPlatformClient:n}=t,a,f=s.configuration.build?.dev_store_url,S=s.hiddenConfig.dev_store_url,T=f??S,v=e??(r?void 0:T),O=i.length===1&&i[0]==="APP_DEVELOPMENT";if(v)a=await N(o,v,n,i),O&&await c(a,o.id,n,"never");else{let A=await n.devStoresForOrg(o.id);a=await u(A,o,n)}return a.shopDomain=g(a.shopDomain),await C(a,r),(a.shopDomain!==T||!S)&&await s.updateHiddenConfig({dev_store_url:a.shopDomain}),await n.ensureUserAccessToStore(o.id,a),a}async function C(t,e){await w.addPublicMetadata(()=>({cmd_app_reset_used:e,store_fqdn_hash:D(t.shopDomain),store_domain:t.shopDomain})),await w.addSensitiveMetadata(()=>({store_fqdn:t.shopDomain}))}export{X as a};
@@ -1,4 +1,4 @@
1
- import{b as h}from"./chunk-IDKUJQIG.js";import{Ca as g,ua as u,wa as c}from"./chunk-EYDNSYYE.js";import{d as f,q as p}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();var d=f(p(),"/docs-shopify.dev/commands"),m=class extends h{static{this.description="Generate CLI commands documentation"}static{this.hidden=!0}async run(){let a=this.config.commands;await g(d),await c(d);let o=a.sort((e,i)=>e.id.length-i.id.length).filter(e=>!b(e)).map(e=>{let i=k(e);return N(e,i)});await Promise.all(o)}},C=["commands","help","plugins"];function b(t){return t.hidden?(C.push(t.id),!0):t.pluginType==="user"?!0:C.some(a=>t.id.startsWith(`${a}:`))}function k(t){let a=t.id.replace(/[:]/g," "),s=t.id.replace(/[:]/g,"-"),o=t.id.replace(/[:-]/g,"");return{commandName:a,fileName:s,interfaceName:o}}async function N(t,{commandName:a,fileName:s,interfaceName:o}){let e=Object.keys(t.flags).map(r=>{let n=t.flags[r];if(!n||n.hidden)return;let $=n.description??"",w=n.char?`-${n.char}, `:"",y=n.type==="option"?"string":"''",v=n.type==="option"?" <value>":"",x=n.required?"":"?",D=n.env!==void 0?` @environment ${n.env}`:"";return` /**
1
+ import{b as h}from"./chunk-UAYIFFYJ.js";import{Ca as g,ua as u,wa as c}from"./chunk-TB7HFPBB.js";import{d as f,q as p}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();var d=f(p(),"/docs-shopify.dev/commands"),m=class extends h{static{this.description="Generate CLI commands documentation"}static{this.hidden=!0}async run(){let a=this.config.commands;await g(d),await c(d);let o=a.sort((e,i)=>e.id.length-i.id.length).filter(e=>!b(e)).map(e=>{let i=k(e);return N(e,i)});await Promise.all(o)}},C=["commands","help","plugins"];function b(t){return t.hidden?(C.push(t.id),!0):t.pluginType==="user"?!0:C.some(a=>t.id.startsWith(`${a}:`))}function k(t){let a=t.id.replace(/[:]/g," "),s=t.id.replace(/[:]/g,"-"),o=t.id.replace(/[:-]/g,"");return{commandName:a,fileName:s,interfaceName:o}}async function N(t,{commandName:a,fileName:s,interfaceName:o}){let e=Object.keys(t.flags).map(r=>{let n=t.flags[r];if(!n||n.hidden)return;let $=n.description??"",w=n.char?`-${n.char}, `:"",y=n.type==="option"?"string":"''",v=n.type==="option"?" <value>":"",x=n.required?"":"?",D=n.env!==void 0?` @environment ${n.env}`:"";return` /**
2
2
  * ${$}
3
3
  *${D}
4
4
  */
@@ -1 +1 @@
1
- import{Ga as r}from"./chunk-UZ7U322K.js";import{a}from"./chunk-5JCREGSD.js";import{q as i}from"./chunk-773TIA5M.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var c=3e3;async function n(o){let t;try{if(a.getAllPublicMetadata().api_key!==void 0)return;await Promise.race([r({directory:o,skipPrompts:!0}),new Promise(l=>{t=setTimeout(l,c)})])}catch{}finally{t&&clearTimeout(t)}}var m=async()=>(await n(i()),a.getAllPublicMetadata()),f=m;export{f as a};
1
+ import{Ga as r}from"./chunk-4MLEL3VK.js";import{a}from"./chunk-7PVNAILK.js";import{q as i}from"./chunk-773TIA5M.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var c=3e3;async function n(o){let t;try{if(a.getAllPublicMetadata().api_key!==void 0)return;await Promise.race([r({directory:o,skipPrompts:!0}),new Promise(l=>{t=setTimeout(l,c)})])}catch{}finally{t&&clearTimeout(t)}}var m=async()=>(await n(i()),a.getAllPublicMetadata()),f=m;export{f as a};
@@ -1 +1 @@
1
- import{A as e,B as r,F as o,G as s,k as n,z as h}from"./chunk-E24W34C4.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();async function y(){await h({message:"Associate your project with the org Castile Ventures?",choices:[{label:"first",value:"first",disabled:!0},{label:"second",value:"second"},{label:"third (limit reached)",value:"third",disabled:!0},{label:"fourth (limit reached)",value:"fourth",disabled:!0},{label:"fifth",value:"fifth",group:"Automations",disabled:!0},{label:"sixth",value:"sixth",group:"Automations"},{label:"seventh",value:"seventh"},{label:"eighth (limit reached)",value:"eighth",group:"Merchant Admin",disabled:!0},{label:"ninth",value:"ninth",group:"Merchant Admin"},{label:"tenth",value:"tenth"}],infoTable:[{header:"add",items:["new-ext"],bullet:"+"},{header:"remove",items:["integrated-demand-ext","order-discount"],bullet:"-"}]}),await o({message:"App project name (can be changed later)",defaultValue:"expansive commerce app",validate:t=>{if(t.includes("shopify"))return`Can't include "shopify" in the name`}});let l=[{label:"first",value:"first"},{label:"second",value:"second"},{label:"third",value:"third"},{label:"fourth",value:"fourth"},{label:"fifth",value:"fifth"},{label:"sixth",value:"sixth"},{label:"seventh",value:"seventh"},{label:"eighth",value:"eighth"},{label:"ninth",value:"ninth"},{label:"tenth",value:"tenth"},{label:"eleventh",value:"eleventh"},{label:"twelfth",value:"twelfth"},{label:"thirteenth",value:"thirteenth"},{label:"fourteenth",value:"fourteenth"},{label:"fifteenth",value:"fifteenth"},{label:"sixteenth",value:"sixteenth"},{label:"seventeenth",value:"seventeenth"},{label:"eighteenth",value:"eighteenth"},{label:"nineteenth",value:"nineteenth"},{label:"twentieth",value:"twentieth"},{label:"twenty-first",value:"twenty-first"},{label:"twenty-second",value:"twenty-second"},{label:"twenty-third",value:"twenty-third"},{label:"twenty-fourth",value:"twenty-fourth"},{label:"twenty-fifth",value:"twenty-fifth"},{label:"twenty-sixth",value:"twenty-sixth"},{label:"twenty-seventh",value:"twenty-seventh"},{label:"twenty-eighth",value:"twenty-eighth"},{label:"twenty-ninth",value:"twenty-ninth"},{label:"thirtieth",value:"thirtieth"},{label:"thirty-first",value:"thirty-first"},{label:"thirty-second",value:"thirty-second"},{label:"thirty-third",value:"thirty-third"},{label:"thirty-fourth",value:"thirty-fourth"},{label:"thirty-fifth",value:"thirty-fifth"},{label:"thirty-sixth",value:"thirty-sixth"},{label:"thirty-seventh",value:"thirty-seventh"},{label:"thirty-eighth",value:"thirty-eighth"},{label:"thirty-ninth",value:"thirty-ninth"},{label:"fortieth",value:"fortieth"},{label:"forty-first",value:"forty-first"},{label:"forty-second",value:"forty-second"},{label:"forty-third",value:"forty-third"},{label:"forty-fourth",value:"forty-fourth"},{label:"forty-fifth",value:"forty-fifth"},{label:"forty-sixth",value:"forty-sixth"},{label:"forty-seventh",value:"forty-seventh"},{label:"forty-eighth",value:"forty-eighth"},{label:"forty-ninth",value:"forty-ninth"},{label:"fiftieth",value:"fiftieth"}];await r({message:"Template",choices:l,search(t){return Promise.resolve({data:l.filter(f=>f.label.includes(t))})}});let a=[["first theme",{subdued:"(#1)"}],["second theme",{subdued:"(#2)"}]];await e({message:"Add the following themes to the store?",infoTable:{"":a},confirmationMessage:"Yes, add them",cancellationMessage:"Cancel"});let u={title:{color:"red",text:`${n.warning} This can't be undone.`},body:"The action you are executing should be confirmed to proceed."};await e({message:"Delete the following themes from the store?",infoTable:{"":a},infoMessage:u,confirmationMessage:"Yes, delete them",cancellationMessage:"Cancel",defaultValue:!1}),await e({message:["Make the following changes to your",{filePath:".env"},"file?"],defaultValue:!0,confirmationMessage:"Yes, confirm changes",cancellationMessage:"No, make changes later"}),await s({message:"Release this version of Mega App?",infoTable:[{header:"Includes",items:["My subscription extension","Order discount function","Subscription cancelled trigger","Add subscription action"],bullet:"+"},{header:"Removes",items:["product-discount-function","product-subscription-extension"],bullet:"-"}],confirmation:"Mega App"})}export{y as a};
1
+ import{A as e,B as r,F as o,G as s,k as n,z as h}from"./chunk-EEEKSYWV.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();async function y(){await h({message:"Associate your project with the org Castile Ventures?",choices:[{label:"first",value:"first",disabled:!0},{label:"second",value:"second"},{label:"third (limit reached)",value:"third",disabled:!0},{label:"fourth (limit reached)",value:"fourth",disabled:!0},{label:"fifth",value:"fifth",group:"Automations",disabled:!0},{label:"sixth",value:"sixth",group:"Automations"},{label:"seventh",value:"seventh"},{label:"eighth (limit reached)",value:"eighth",group:"Merchant Admin",disabled:!0},{label:"ninth",value:"ninth",group:"Merchant Admin"},{label:"tenth",value:"tenth"}],infoTable:[{header:"add",items:["new-ext"],bullet:"+"},{header:"remove",items:["integrated-demand-ext","order-discount"],bullet:"-"}]}),await o({message:"App project name (can be changed later)",defaultValue:"expansive commerce app",validate:t=>{if(t.includes("shopify"))return`Can't include "shopify" in the name`}});let l=[{label:"first",value:"first"},{label:"second",value:"second"},{label:"third",value:"third"},{label:"fourth",value:"fourth"},{label:"fifth",value:"fifth"},{label:"sixth",value:"sixth"},{label:"seventh",value:"seventh"},{label:"eighth",value:"eighth"},{label:"ninth",value:"ninth"},{label:"tenth",value:"tenth"},{label:"eleventh",value:"eleventh"},{label:"twelfth",value:"twelfth"},{label:"thirteenth",value:"thirteenth"},{label:"fourteenth",value:"fourteenth"},{label:"fifteenth",value:"fifteenth"},{label:"sixteenth",value:"sixteenth"},{label:"seventeenth",value:"seventeenth"},{label:"eighteenth",value:"eighteenth"},{label:"nineteenth",value:"nineteenth"},{label:"twentieth",value:"twentieth"},{label:"twenty-first",value:"twenty-first"},{label:"twenty-second",value:"twenty-second"},{label:"twenty-third",value:"twenty-third"},{label:"twenty-fourth",value:"twenty-fourth"},{label:"twenty-fifth",value:"twenty-fifth"},{label:"twenty-sixth",value:"twenty-sixth"},{label:"twenty-seventh",value:"twenty-seventh"},{label:"twenty-eighth",value:"twenty-eighth"},{label:"twenty-ninth",value:"twenty-ninth"},{label:"thirtieth",value:"thirtieth"},{label:"thirty-first",value:"thirty-first"},{label:"thirty-second",value:"thirty-second"},{label:"thirty-third",value:"thirty-third"},{label:"thirty-fourth",value:"thirty-fourth"},{label:"thirty-fifth",value:"thirty-fifth"},{label:"thirty-sixth",value:"thirty-sixth"},{label:"thirty-seventh",value:"thirty-seventh"},{label:"thirty-eighth",value:"thirty-eighth"},{label:"thirty-ninth",value:"thirty-ninth"},{label:"fortieth",value:"fortieth"},{label:"forty-first",value:"forty-first"},{label:"forty-second",value:"forty-second"},{label:"forty-third",value:"forty-third"},{label:"forty-fourth",value:"forty-fourth"},{label:"forty-fifth",value:"forty-fifth"},{label:"forty-sixth",value:"forty-sixth"},{label:"forty-seventh",value:"forty-seventh"},{label:"forty-eighth",value:"forty-eighth"},{label:"forty-ninth",value:"forty-ninth"},{label:"fiftieth",value:"fiftieth"}];await r({message:"Template",choices:l,search(t){return Promise.resolve({data:l.filter(f=>f.label.includes(t))})}});let a=[["first theme",{subdued:"(#1)"}],["second theme",{subdued:"(#2)"}]];await e({message:"Add the following themes to the store?",infoTable:{"":a},confirmationMessage:"Yes, add them",cancellationMessage:"Cancel"});let u={title:{color:"red",text:`${n.warning} This can't be undone.`},body:"The action you are executing should be confirmed to proceed."};await e({message:"Delete the following themes from the store?",infoTable:{"":a},infoMessage:u,confirmationMessage:"Yes, delete them",cancellationMessage:"Cancel",defaultValue:!1}),await e({message:["Make the following changes to your",{filePath:".env"},"file?"],defaultValue:!0,confirmationMessage:"Yes, confirm changes",cancellationMessage:"No, make changes later"}),await s({message:"Release this version of Mega App?",infoTable:[{header:"Includes",items:["My subscription extension","Order discount function","Subscription cancelled trigger","Add subscription action"],bullet:"+"},{header:"Removes",items:["product-discount-function","product-subscription-extension"],bullet:"-"}],confirmation:"Mega App"})}export{y as a};
@@ -1,2 +1,2 @@
1
- import{w as h}from"./chunk-YZY4M6IH.js";import{a as d}from"./chunk-6ZRHK4ON.js";import{a as f}from"./chunk-7XQDZF73.js";import{Fa as l}from"./chunk-UZ7U322K.js";import{b as m}from"./chunk-Q6LCSRIW.js";import{Lb as c,Xb as u}from"./chunk-EYDNSYYE.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();function g(p){let e=h(p),o=new Map;e.forEach(s=>{let r=s.split(".");if(r.length>=2){let i=r[0];o.has(i)||o.set(i,[]),o.set(i,[...o.get(i),s])}});for(let[s,r]of o)c(u(s,r.join(`
1
+ import{w as h}from"./chunk-XCGV3IJ5.js";import{a as d}from"./chunk-UHIP5CFI.js";import{a as f}from"./chunk-VJQJ5PTQ.js";import{Fa as l}from"./chunk-4MLEL3VK.js";import{b as m}from"./chunk-NGCPVRDM.js";import{Lb as c,Xb as u}from"./chunk-TB7HFPBB.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();function g(p){let e=h(p),o=new Map;e.forEach(s=>{let r=s.split(".");if(r.length>=2){let i=r[0];o.has(i)||o.set(i,[]),o.set(i,[...o.get(i),s])}});for(let[s,r]of o)c(u(s,r.join(`
2
2
  `)))}var a,t=class extends d{async run(){let{flags:e}=await this.parse(a),{app:o}=await l({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config});return o.errors.isEmpty()?g(o):process.exit(2),{app:o}}};a=t;t.summary="Print out a list of sources that may be used with the logs command.";t.descriptionWithMarkdown="The output source names can be used with the `--source` argument of `shopify app logs` to filter log output. Currently only function extensions are supported as sources.";t.description=a.descriptionWithoutMarkdown();t.flags={...m,...f};var N=t;export{N as a};
@@ -1 +1 @@
1
- import{a as u}from"./chunk-7USHLXEN.js";import{g as d}from"./chunk-VKWPEFWQ.js";d();var m=!1;function v(){return m}function y(){let t=0,e=!1,i=setInterval(()=>{if(!e){if(v()||t>=12e4){e=!0,clearInterval(i),u(process.pid,"SIGINT",!1,()=>{process.exit(0)});return}t+=100}},100)}var k=async({config:a,Command:o})=>{await I(o);let t=await import("./metadata-D5GLZOLV.js"),{commandStartOptions:e}=t.getAllSensitiveMetadata();e&&await t.addSensitiveMetadata(()=>({commandStartOptions:{...e,endTime:new Date().getTime()}}));let{postrun:i}=await import("./deprecations-M5JGGK47.js");i(o);let{outputDebug:n}=await import("./output-FYS764MJ.js"),r=o.id.replace(/:/g," ");n(`Completed command ${r}`),!r.includes("notifications")&&!r.includes("upgrade")&&await M();let{reportAnalyticsEvent:p}=await import("./analytics-DM7CBV2M.js");await p({config:a,exitMode:"ok"}),m=!0};async function M(){let{versionToAutoUpgrade:a,warnIfUpgradeAvailable:o}=await import("./upgrade-DY4L43H4.js"),t=a();if(!t){await o();return}if(process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE==="1")await l(t);else{let{runAtMinimumInterval:i}=await import("./conf-store-OC4XCP45.js");await i("auto-upgrade",{days:1},async()=>{await l(t)})}}async function l(a){let[{CLI_KIT_VERSION:o},{isMajorVersionChange:t},{outputWarn:e,outputDebug:i},{getOutputUpdateCLIReminder:n,runCLIUpgrade:r,hasBlockingAutoUpgradeNotification:p},s]=await Promise.all([import("./version-WIERCO5R.js"),import("./version-LULWCT5R.js"),import("./output-FYS764MJ.js"),import("./upgrade-DY4L43H4.js"),import("./metadata-D5GLZOLV.js")]);if(t(o,a)){e(n(a,!0)),await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"major_version"}));return}if(await p()){await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"blocked_by_notification"}));return}try{await r({autoupgrade:!0}),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!0}))}catch(f){let c=`Auto-upgrade failed: ${f}`;i(c),e(n(a)),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!1}));let[{sendErrorToBugsnag:g},{inferPackageManagerForGlobalCLI:w}]=await Promise.all([import("./error-handler-MCUV4RZV.js"),import("./is-global-RURDJZDU.js")]),_=Object.assign(new Error(c),{packageManager:w(),platform:process.platform,cliVersion:o});await g(_,"expected_error")}}async function I(a){let o=new Date().getTime();if(a&&"analyticsStopCommand"in a&&typeof a.analyticsStopCommand=="function"){let t=a.analyticsStopCommand();if(t){let e=await import("./metadata-D5GLZOLV.js"),{commandStartOptions:i}=e.getAllSensitiveMetadata();if(!i)return;await e.addSensitiveMetadata(()=>({commandStartOptions:{...i,startTime:o,startCommand:t}}))}}}export{y as a,k as b};
1
+ import{a as u}from"./chunk-WTRKTFVE.js";import{g as d}from"./chunk-VKWPEFWQ.js";d();var m=!1;function v(){return m}function y(){let t=0,e=!1,i=setInterval(()=>{if(!e){if(v()||t>=12e4){e=!0,clearInterval(i),u(process.pid,"SIGINT",!1,()=>{process.exit(0)});return}t+=100}},100)}var k=async({config:a,Command:o})=>{await I(o);let t=await import("./metadata-FREAI3KR.js"),{commandStartOptions:e}=t.getAllSensitiveMetadata();e&&await t.addSensitiveMetadata(()=>({commandStartOptions:{...e,endTime:new Date().getTime()}}));let{postrun:i}=await import("./deprecations-2FTB7JEW.js");i(o);let{outputDebug:n}=await import("./output-VUR2QZPW.js"),r=o.id.replace(/:/g," ");n(`Completed command ${r}`),!r.includes("notifications")&&!r.includes("upgrade")&&await M();let{reportAnalyticsEvent:p}=await import("./analytics-ZRM4FEOE.js");await p({config:a,exitMode:"ok"}),m=!0};async function M(){let{versionToAutoUpgrade:a,warnIfUpgradeAvailable:o}=await import("./upgrade-AJ36IT7H.js"),t=a();if(!t){await o();return}if(process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE==="1")await l(t);else{let{runAtMinimumInterval:i}=await import("./conf-store-HOA62HKK.js");await i("auto-upgrade",{days:1},async()=>{await l(t)})}}async function l(a){let[{CLI_KIT_VERSION:o},{isMajorVersionChange:t},{outputWarn:e,outputDebug:i},{getOutputUpdateCLIReminder:n,runCLIUpgrade:r,hasBlockingAutoUpgradeNotification:p},s]=await Promise.all([import("./version-HUOO3XOE.js"),import("./version-DSFP332V.js"),import("./output-VUR2QZPW.js"),import("./upgrade-AJ36IT7H.js"),import("./metadata-FREAI3KR.js")]);if(t(o,a)){e(n(a,!0)),await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"major_version"}));return}if(await p()){await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"blocked_by_notification"}));return}try{await r({autoupgrade:!0}),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!0}))}catch(f){let c=`Auto-upgrade failed: ${f}`;i(c),e(n(a)),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!1}));let[{sendErrorToBugsnag:g},{inferPackageManagerForGlobalCLI:w}]=await Promise.all([import("./error-handler-4YEBBCUH.js"),import("./is-global-5LFZDDNH.js")]),_=Object.assign(new Error(c),{packageManager:w(),platform:process.platform,cliVersion:o});await g(_,"expected_error")}}async function I(a){let o=new Date().getTime();if(a&&"analyticsStopCommand"in a&&typeof a.analyticsStopCommand=="function"){let t=a.analyticsStopCommand();if(t){let e=await import("./metadata-FREAI3KR.js"),{commandStartOptions:i}=e.getAllSensitiveMetadata();if(!i)return;await e.addSensitiveMetadata(()=>({commandStartOptions:{...i,startTime:o,startCommand:t}}))}}}export{y as a,k as b};
@@ -1,4 +1,4 @@
1
- import{j as W,l as B}from"./chunk-LUG2BZJP.js";import{O as v,a as O}from"./chunk-E24W34C4.js";import{f as h}from"./chunk-3QVXHF6I.js";import{d as u,g as T}from"./chunk-ELIH6GCC.js";import{$a as S,Bb as L,Fb as o,Hb as s,Pb as d,Ta as w,Ua as i,Wa as D,ma as x,ua as b}from"./chunk-EYDNSYYE.js";import{d as c,i as k}from"./chunk-773TIA5M.js";import{a as I}from"./chunk-CX5CC6P5.js";import{e as R,g}from"./chunk-VKWPEFWQ.js";g();g();function M(e,n){try{return JSON.parse(e)}catch(a){let r=a instanceof Error?a.message:String(a),t=n?` from ${n}`:"";throw new u(`Failed to parse JSON${t}.
1
+ import{j as W,l as B}from"./chunk-ZT4PUH7L.js";import{O as v,a as O}from"./chunk-EEEKSYWV.js";import{f as h}from"./chunk-7AY6HLQG.js";import{d as u,g as T}from"./chunk-IIFRDOYG.js";import{$a as S,Bb as L,Fb as o,Hb as s,Pb as d,Ta as w,Ua as i,Wa as D,ma as x,ua as b}from"./chunk-TB7HFPBB.js";import{d as c,i as k}from"./chunk-773TIA5M.js";import{a as I}from"./chunk-CX5CC6P5.js";import{e as R,g}from"./chunk-VKWPEFWQ.js";g();g();function M(e,n){try{return JSON.parse(e)}catch(a){let r=a instanceof Error?a.message:String(a),t=n?` from ${n}`:"";throw new u(`Failed to parse JSON${t}.
2
2
  ${r}`)}}var l=R(I(),1),N="yarn.lock",j="package-lock.json",J="pnpm-lock.yaml",$="bun.lockb",C="bun.lock",V="pnpm-workspace.yaml",ke=[N,J,j,$,C],we={yarn:[N],npm:[j],pnpm:[J],bun:[$,C],homebrew:[],unknown:[]},E=["yarn","npm","pnpm","bun","homebrew","unknown"],_=class extends u{constructor(){super("Unknown package manager")}},y=class extends u{constructor(n){super(s`The directory ${o.path(n)} doesn't have a package.json.`)}},P=class extends T{constructor(n){super(s`Couldn't find a a package.json traversing directories from ${o.path(n)}`)}};function A(e=process.env){return e.npm_config_user_agent?.includes("yarn")?"yarn":e.npm_config_user_agent?.includes("pnpm")?"pnpm":e.npm_config_user_agent?.includes("bun")?"bun":e.npm_config_user_agent?.includes("npm")?"npm":"unknown"}function U(e){return i(c(e,$))||i(c(e,C))}function G(e){switch(e){case"yarn":case"npm":case"pnpm":case"bun":return e;case"homebrew":case"unknown":return"npm"}}function K(e,n,...a){switch(e){case"npm":return{command:"npm",args:["exec","--",n,...a]};case"pnpm":return{command:"pnpm",args:["exec",n,...a]};case"yarn":return{command:"yarn",args:["run",n,...a]};case"bun":return{command:"bun",args:["x",n,...a]}}}async function F(e){let n=e;for(d(s`Looking for a lockfile in ${o.path(n)}...`);;){if(i(c(n,N)))return"yarn";if(i(c(n,J))||i(c(n,V)))return"pnpm";if(U(n))return"bun";if(i(c(n,j)))return"npm";let r=k(n);if(r===n)break;n=r}let a=A();return a!=="unknown"?a:"npm"}async function he(e,n,...a){let r=G(await F(e));return K(r,n,...a)}async function ye(e){let n=await D(c(e.directory,"**/package.json"),{ignore:[c(e.directory,"node_modules/**/package.json")],cwd:e.directory,onlyFiles:!0,deep:e.deep}),a=new O;try{await Promise.all(n.map(async r=>{let t=k(r);await z({directory:t,packageManager:e.packageManager,stdout:void 0,stderr:void 0,signal:a.signal,args:[]})}))}catch(r){throw a.abort(),r}}async function z(e){let n={cwd:e.directory,stdin:void 0,stdout:e.stdout,stderr:e.stderr,signal:e.signal},a=["install"];e.args&&(a=a.concat(e.args)),await h("cmd_all_timing_network_ms")(async()=>{await v(e.packageManager,a,n)})}async function xe(e){return(await f(e)).name}async function be(e){return(await f(e)).version}async function H(e){let n=await f(e),a=n.dependencies??{},r=n.devDependencies??{};return{...a,...r}}async function ve(e){let n=c(e,"package.json"),a=await f(n),r=c(e,V);return!!a.workspaces||w(r)}async function Me(e,n,{cacheExpiryInHours:a=0}={}){let r=async()=>(d(s`Checking if there's a version of ${e} newer than ${n}`),ne(e)),t=`npm-package-${e}`,p;try{p=await W(t,r,a*3600*1e3)}catch{return}if(p&&new l.SemVer(n).compare(p)<0)return p}function _e(e,n){let a=`npm-package-${e}`,r=B(a)?.value;if(r&&new l.SemVer(n).compare(r)<0)return r}function Pe(e,n){return(0,l.satisfies)(e,n)}async function f(e){if(!await w(e))throw new y(k(e));return M(await x(e),e)}async function Y(e,n){d(s`Adding the following dependencies if needed:
3
3
  ${o.json(e)}
4
4
  With options: