cf 1.0.0-beta.4 → 1.0.0-beta.5

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 (204) hide show
  1. package/dist/{abuse-reports-L4L7sC0F.mjs → abuse-reports-DoqL_52r.mjs} +1 -1
  2. package/dist/{access-DUQisFsH.mjs → access-DRlrq_cq.mjs} +1 -1
  3. package/dist/{account-J7N4Ukse.mjs → account-DfC3gRTf.mjs} +1 -1
  4. package/dist/{account-tags-DMmTopgx.mjs → account-tags-DMCYk5rR.mjs} +1 -1
  5. package/dist/{accounts-DbZdpH5e.mjs → accounts-BlVDzIWc.mjs} +1 -1
  6. package/dist/{acm-BtXPdUqH.mjs → acm-CCc33e4l.mjs} +1 -1
  7. package/dist/{addressing-Bc_ZSmrK.mjs → addressing-BA-5A3jQ.mjs} +1 -1
  8. package/dist/{agent-memory-CEUI1wKI.mjs → agent-memory-Csgs8W5u.mjs} +1 -1
  9. package/dist/{ai-CFHaVQcc.mjs → ai-BN_pzw7p.mjs} +1 -1
  10. package/dist/{ai-audit-guygqmOl.mjs → ai-audit-Dbln3Ai6.mjs} +1 -1
  11. package/dist/{ai-gateway-BcKOL4WQ.mjs → ai-gateway-BhASWwdp.mjs} +1 -1
  12. package/dist/{ai-search-DJvNkX2o.mjs → ai-search-DvA8g4xr.mjs} +1 -1
  13. package/dist/{ai-security-CVaHbGzn.mjs → ai-security-nualpneg.mjs} +1 -1
  14. package/dist/{alerting-wy4IuGs7.mjs → alerting-HUbVuQMl.mjs} +1 -1
  15. package/dist/{analytics-Do4VMrPX.mjs → analytics-ClKN9YnQ.mjs} +1 -1
  16. package/dist/{analytics_engine-Cv7IF8ex.mjs → analytics_engine-DP_O5HIq.mjs} +1 -1
  17. package/dist/{api-security-fuzV322d.mjs → api-security-Ce_9nFH9.mjs} +1 -1
  18. package/dist/{argo-BBf-Jw0O.mjs → argo-CLLBrtiV.mjs} +1 -1
  19. package/dist/{artifacts-B7_OhBxW.mjs → artifacts-CIxZX3VM.mjs} +1 -1
  20. package/dist/{audit-logs-DyARgcxN.mjs → audit-logs-DjzIj9T4.mjs} +1 -1
  21. package/dist/{auth-BYFcxn1F.mjs → auth-B_Utev-x.mjs} +1 -1
  22. package/dist/{auth-CiOv7s9F.mjs → auth-CgPQplnD.mjs} +1 -1
  23. package/dist/{autoconfig-DbL_FL5k.mjs → autoconfig-BunaOShS.mjs} +1 -1
  24. package/dist/{billing-07_VIO4X.mjs → billing-tHlHhEVf.mjs} +1 -1
  25. package/dist/{bot-management-CmkPUu2I.mjs → bot-management-ChV-gaXh.mjs} +1 -1
  26. package/dist/{botnet-feed-Bn5pE_rx.mjs → botnet-feed-DQWBOEqC.mjs} +1 -1
  27. package/dist/{brand-protection-CWDqPOXe.mjs → brand-protection-B3afeuOj.mjs} +1 -1
  28. package/dist/{browser-run-CfEIfpnQ.mjs → browser-run-eQMomr1x.mjs} +1 -1
  29. package/dist/build-DFa0ngeO.mjs +2 -0
  30. package/dist/{build-DEbkHHVh.mjs → build-VUz0URCV.mjs} +1 -1
  31. package/dist/{builds-mgouQLUs.mjs → builds-wTOvlp0S.mjs} +1 -1
  32. package/dist/{cache-DXLofz5T.mjs → cache-s4HK0we7.mjs} +1 -1
  33. package/dist/{certificate-authorities-BfW-rEpf.mjs → certificate-authorities-CaPUfYzA.mjs} +1 -1
  34. package/dist/{cli-Dgk9bd8j.mjs → cli-CT-QJu7q.mjs} +1 -1
  35. package/dist/{client-certificates-By2A46a2.mjs → client-certificates-BfNDnT8H.mjs} +1 -1
  36. package/dist/{client-side-security-Bo6ZwJOS.mjs → client-side-security-BV7iORbb.mjs} +1 -1
  37. package/dist/{cloud-connector-DYb_3u-M.mjs → cloud-connector-CGT8ezvv.mjs} +1 -1
  38. package/dist/{cloudforce-one-D8l0I5PL.mjs → cloudforce-one-BDhbXtA_.mjs} +1 -1
  39. package/dist/{command-C7cOrHdI.mjs → command-C8gLcKlB.mjs} +1 -1
  40. package/dist/{command-C_lQtSPg.mjs → command-C_l69o2b.mjs} +1 -1
  41. package/dist/{command-CJR1CUK_.mjs → command-Cox9Wh1i.mjs} +1 -1
  42. package/dist/{command-DaAGN9uP.mjs → command-DJF4wdrM.mjs} +1 -1
  43. package/dist/{command-DJJN9xaA.mjs → command-DQcG8PK-.mjs} +1 -1
  44. package/dist/{command-DRlUj6lW.mjs → command-DpEQ07Xe.mjs} +1 -1
  45. package/dist/{command-DYeBZ5mA.mjs → command-G_VL3Jf8.mjs} +1 -1
  46. package/dist/{command-CGD1oByJ.mjs → command-SgtzgQrs.mjs} +1 -1
  47. package/dist/{command-gSmdvn_d.mjs → command-lYaHS62l.mjs} +1 -1
  48. package/dist/{command-BPfW-yE4.mjs → command-ozwmaY7n.mjs} +1 -1
  49. package/dist/{completions-DUDx3DwX.mjs → completions-VR53Fiec.mjs} +1 -1
  50. package/dist/{connector-interrupts-DIMvaZhN.mjs → connector-interrupts-hfttjm-b.mjs} +1 -1
  51. package/dist/{connector-telemetry-events-TWQvm-cj.mjs → connector-telemetry-events-5nVvivYA.mjs} +1 -1
  52. package/dist/{connector-telemetry-snapshots-Dyoe-_R3.mjs → connector-telemetry-snapshots-DKk_7VQa.mjs} +1 -1
  53. package/dist/{connectors-D7ZFg3hB.mjs → connectors-CvX4Z3cg.mjs} +1 -1
  54. package/dist/{containers-Bu3tLjU1.mjs → containers-BQxj87na.mjs} +1 -1
  55. package/dist/{containers-CduXjFBJ.mjs → containers-BU9RquYh.mjs} +1 -1
  56. package/dist/{content-scan-CVBD6mUI.mjs → content-scan-hWh-aGbO.mjs} +1 -1
  57. package/dist/{context-BsGrhAqB.mjs → context-CPVzoKbN.mjs} +1 -1
  58. package/dist/{cps-CgiRKmTe.mjs → cps-o8QQFfnF.mjs} +1 -1
  59. package/dist/{csamScanner-BlXIOFFe.mjs → csamScanner-DHod3Hak.mjs} +1 -1
  60. package/dist/{ct-alerting-CJZK0uSQ.mjs → ct-alerting-D-_YsE1x.mjs} +1 -1
  61. package/dist/{custom-certificates-DFaj_czg.mjs → custom-certificates-UnaVRb3W.mjs} +1 -1
  62. package/dist/{custom-csrs-BnFQpjOo.mjs → custom-csrs-BCJ7LOUe.mjs} +1 -1
  63. package/dist/{custom-hostnames-DSnE6xOT.mjs → custom-hostnames-DOluVIfa.mjs} +1 -1
  64. package/dist/{custom-nameservers-CdQOt_qU.mjs → custom-nameservers-CvIucaA2.mjs} +1 -1
  65. package/dist/{custom-pages-TWGlS6Ms.mjs → custom-pages-DzrXSeCR.mjs} +1 -1
  66. package/dist/{d1-Cbqx2kAz.mjs → d1-BCg7BhWi.mjs} +1 -1
  67. package/dist/{dcv-delegation-DM3oGGio.mjs → dcv-delegation-9bMHPSoc.mjs} +1 -1
  68. package/dist/{deploy-BZUWZ888.mjs → deploy-BT_EVz0K.mjs} +1 -1
  69. package/dist/{deploy-input-ChEbf2Kp.mjs → deploy-input-YW632ysz.mjs} +1 -1
  70. package/dist/{dev-OsbQIdD8.mjs → dev-jRnP9IIJ.mjs} +1 -1
  71. package/dist/{diagnostics-8bbleTmW.mjs → diagnostics-BIe-XR-P.mjs} +1 -1
  72. package/dist/{dist-DTN-pqSs.mjs → dist-COohnEBL.mjs} +1 -1
  73. package/dist/{dls-TzQpry2j.mjs → dls-BuKO5QWL.mjs} +1 -1
  74. package/dist/{dns-Bzv4YLeg.mjs → dns-DzVN-WA4.mjs} +1 -1
  75. package/dist/{dns-firewall-BjWwOmDR.mjs → dns-firewall-Dx_XvWKJ.mjs} +1 -1
  76. package/dist/{durable-objects-CRhSGkpc.mjs → durable-objects-DnU6OsEb.mjs} +1 -1
  77. package/dist/{email-auth-Bth4_FHy.mjs → email-auth-DqIyzEcR.mjs} +1 -1
  78. package/dist/{email-routing-CkTh4F5j.mjs → email-routing-8rhAmzOY.mjs} +1 -1
  79. package/dist/{email-security-C-2jADxE.mjs → email-security-BRq5J31C.mjs} +1 -1
  80. package/dist/{email-sending-B_sd4ouE.mjs → email-sending-Bsfk4Jia.mjs} +1 -1
  81. package/dist/{fieldExtractors-z92V55-Y.mjs → fieldExtractors-COaK02vB.mjs} +1 -1
  82. package/dist/{firewall-0yKpxdjj.mjs → firewall-Dar706zc.mjs} +1 -1
  83. package/dist/{flagship-IRVq23te.mjs → flagship-CTchDpyw.mjs} +1 -1
  84. package/dist/{fraud-BpJ_aoIE.mjs → fraud-H-mdJfRU.mjs} +1 -1
  85. package/dist/{google-tag-gateway-DA_7SCC3.mjs → google-tag-gateway-zqXS_12f.mjs} +1 -1
  86. package/dist/{healthchecks-C-GthoQz.mjs → healthchecks-x889sT8g.mjs} +1 -1
  87. package/dist/{hostnames-CH6utzVv.mjs → hostnames-DqB5I-_U.mjs} +1 -1
  88. package/dist/{hyperdrive-_rIC33bB.mjs → hyperdrive-sR7Mwif9.mjs} +1 -1
  89. package/dist/{iam-sseKl99z.mjs → iam-CKt7U41p.mjs} +1 -1
  90. package/dist/{images-CvIOwtg0.mjs → images-CakdBcMc.mjs} +1 -1
  91. package/dist/index.mjs +1 -1
  92. package/dist/{init-DEIhItNF.mjs → init-CVyWV_Ow.mjs} +1 -1
  93. package/dist/{intel-Da84oZMO.mjs → intel-Dcv1vMsK.mjs} +1 -1
  94. package/dist/{ips-zTTd_3jg.mjs → ips-Ce9_k1Vh.mjs} +1 -1
  95. package/dist/{keyless-certificates-BGOUKdJc.mjs → keyless-certificates-Cf_6sc7K.mjs} +1 -1
  96. package/dist/{keys-CDnrfmiS.mjs → keys-DW2A43fL.mjs} +1 -1
  97. package/dist/{kv-C5jR7vjM.mjs → kv-BKBWXf8s.mjs} +1 -1
  98. package/dist/{lazy-command-DZtpMsVB.mjs → lazy-command-BOjQB_U7.mjs} +1 -1
  99. package/dist/{leaked-credential-checks-B7WSzVG3.mjs → leaked-credential-checks-D-gwxxaF.mjs} +1 -1
  100. package/dist/{load-balancers-DG9wMQUM.mjs → load-balancers-DHUVei95.mjs} +1 -1
  101. package/dist/{login-k3QLVysD.mjs → login-CptngugC.mjs} +1 -1
  102. package/dist/{login-rJanUgdL.mjs → login-D37fy09s.mjs} +1 -1
  103. package/dist/{logo-matches-5nijgkg7.mjs → logo-matches-D1aNSBnZ.mjs} +1 -1
  104. package/dist/{logos-BRRqg8_2.mjs → logos-SyEjq15s.mjs} +1 -1
  105. package/dist/{logpush-Br7H8sRD.mjs → logpush-l9tVWnua.mjs} +1 -1
  106. package/dist/{logs-CBU44LT8.mjs → logs-EW0Pq-gf.mjs} +1 -1
  107. package/dist/{magic-cloud-networking-Bu7O7wKz.mjs → magic-cloud-networking-CN2Qd2Lx.mjs} +1 -1
  108. package/dist/{magic-network-monitoring-Bnc--4Jr.mjs → magic-network-monitoring-8jxG-tPc.mjs} +1 -1
  109. package/dist/{magic-transit-Dxr86HKN.mjs → magic-transit-DLhIQz2l.mjs} +1 -1
  110. package/dist/{managed-defense-Bm_jKFTN.mjs → managed-defense-CgKdTd9J.mjs} +1 -1
  111. package/dist/{managed-transforms-D5mvHv_N.mjs → managed-transforms-BASi4j_s.mjs} +1 -1
  112. package/dist/{matches-Dhc1eSWw.mjs → matches-BCV6x948.mjs} +1 -1
  113. package/dist/{mcp-B-PBoBl5.mjs → mcp-DQODvLQm.mjs} +1 -1
  114. package/dist/{mesh-CW8B4naI.mjs → mesh-S_yYh-w3.mjs} +1 -1
  115. package/dist/{mtls-certificates-swvfPqA2.mjs → mtls-certificates-XJXK21J_.mjs} +1 -1
  116. package/dist/{network-iwRBn0i7.mjs → network-DA81Mcdh.mjs} +1 -1
  117. package/dist/{network-interconnects-CjXYZC4g.mjs → network-interconnects-OttR92s7.mjs} +1 -1
  118. package/dist/{oauth-DJW_HyaL.mjs → oauth-CKeW8CqE.mjs} +1 -1
  119. package/dist/{oauth-CrTr-mRe.mjs → oauth-ChXrM0q9.mjs} +1 -1
  120. package/dist/{oauth-clients-DGUJzFFu.mjs → oauth-clients-Ba-YZsxB.mjs} +1 -1
  121. package/dist/{oauth-scopes-Bl0YUOHt.mjs → oauth-scopes-XqOk2zCQ.mjs} +1 -1
  122. package/dist/{observability-DRHiMrLy.mjs → observability-BdIbZ1D8.mjs} +1 -1
  123. package/dist/{organization-BoMJzks7.mjs → organization-DnQ2_txo.mjs} +1 -1
  124. package/dist/{organizations-UGtCHzSq.mjs → organizations-BkI0IhEg.mjs} +1 -1
  125. package/dist/{origin-ca-certificates-CdByaOCe.mjs → origin-ca-certificates-Br91H1EG.mjs} +1 -1
  126. package/dist/{origin-post-quantum-encryption-GjmifGkF.mjs → origin-post-quantum-encryption-BcpK8DaG.mjs} +1 -1
  127. package/dist/{origin-tls-client-auth-CCIqSj_C.mjs → origin-tls-client-auth-CYK6YnzK.mjs} +1 -1
  128. package/dist/{page-rules-Btn-r3QF.mjs → page-rules-DpOcNsJr.mjs} +1 -1
  129. package/dist/{pages-iil93G96.mjs → pages-Cw4DM-1N.mjs} +1 -1
  130. package/dist/{pay-per-crawl-DcAZuk9T.mjs → pay-per-crawl-BORpCGxC.mjs} +1 -1
  131. package/dist/{pay-per-use-z0Iwy9rN.mjs → pay-per-use-CZw-KHEz.mjs} +1 -1
  132. package/dist/{pipelines-YRPwntqo.mjs → pipelines-DDDyJ6Oe.mjs} +1 -1
  133. package/dist/{precursor-Bcww14RH.mjs → precursor-DrH1i64o.mjs} +1 -1
  134. package/dist/{previews-BBn-IiQu.mjs → previews-CiYBBKj8.mjs} +1 -1
  135. package/dist/{progress-5nsUpQL6.mjs → progress-DS2fwfNP.mjs} +1 -1
  136. package/dist/{prompt-Ba_bys2F.mjs → prompt-doX80PCd.mjs} +1 -1
  137. package/dist/{queries-lxdncISw.mjs → queries-CD6h6iEP.mjs} +1 -1
  138. package/dist/{queues-Egb0KXYK.mjs → queues-3TpjE349.mjs} +1 -1
  139. package/dist/{r2-BD4NOkR7.mjs → r2-CV_hSFkM.mjs} +1 -1
  140. package/dist/{r2-data-catalog-CI-oHtKe.mjs → r2-data-catalog-D_YHTMFG.mjs} +1 -1
  141. package/dist/{radar-B4dtfeBP.mjs → radar-6-4_LoQ1.mjs} +1 -1
  142. package/dist/{raw-fetch-AX_Gz3c3.mjs → raw-fetch-_Z55VEDY.mjs} +1 -1
  143. package/dist/{realtime-CtLXkW8l.mjs → realtime-B5ce977I.mjs} +1 -1
  144. package/dist/{registrar-I9XClUOe.mjs → registrar-CF-3h2dN.mjs} +1 -1
  145. package/dist/{registrar-sandbox-DAqK58QS.mjs → registrar-sandbox-BDRZbyAV.mjs} +1 -1
  146. package/dist/{reporting-BYsEUCIE.mjs → reporting-CiS-RBNJ.mjs} +1 -1
  147. package/dist/{request-headers-sc4CaZX0.mjs → request-headers-DPbWytRv.mjs} +1 -1
  148. package/dist/{request-tracers-DXr9Dr2z.mjs → request-tracers-Drcpv8ha.mjs} +1 -1
  149. package/dist/{resource-sharing-DgbnNgCQ.mjs → resource-sharing-BI3CoOjl.mjs} +1 -1
  150. package/dist/{resource-tagging-CjPU8PpX.mjs → resource-tagging-D4i_-E0W.mjs} +1 -1
  151. package/dist/{rules-BrshTdy1.mjs → rules-C4I4CLoq.mjs} +1 -1
  152. package/dist/{rulesets-BZulblVp.mjs → rulesets-c2efesdy.mjs} +1 -1
  153. package/dist/{rum-B4IRlWgy.mjs → rum-DT58nW8a.mjs} +1 -1
  154. package/dist/{run-UHTbUldP.mjs → run-CJ-6owN3.mjs} +1 -1
  155. package/dist/run-D0esoYSn.mjs +2 -0
  156. package/dist/{schema-flags-C4KmiKur.mjs → schema-flags-DDW79Tda.mjs} +1 -1
  157. package/dist/{scim-BL2TVEZM.mjs → scim-PfJWMuRu.mjs} +1 -1
  158. package/dist/{secrets-store-BcyhU7Kj.mjs → secrets-store-7jrgww1J.mjs} +1 -1
  159. package/dist/{security-center-D1LSkhL_.mjs → security-center-BhUM_Flh.mjs} +1 -1
  160. package/dist/{security-txt-BGIj4nU3.mjs → security-txt-ButEG3qy.mjs} +1 -1
  161. package/dist/{shared-jqlTaG5K.mjs → shared-JNtE--kh.mjs} +1 -1
  162. package/dist/{smart-shield-C8mGSzyE.mjs → smart-shield-DgbYuUFC.mjs} +1 -1
  163. package/dist/{snippets-BmHMaKEZ.mjs → snippets-De-xVTIb.mjs} +1 -1
  164. package/dist/{spectrum-CrGKTMx-.mjs → spectrum-DcknX0jS.mjs} +1 -1
  165. package/dist/{speed-yyPLwj5X.mjs → speed-Cn_p-ieT.mjs} +1 -1
  166. package/dist/{src-DFnlH5Tg.mjs → src-BYjublVL.mjs} +5 -5
  167. package/dist/{ssl-DZ6G7pP_.mjs → ssl-Bkn4ke9Q.mjs} +1 -1
  168. package/dist/{stream-hoBmKs9X.mjs → stream-Cx78uNm_.mjs} +1 -1
  169. package/dist/{submit-Lfebq3yj.mjs → submit-Gu34n1a6.mjs} +1 -1
  170. package/dist/{tags-CnHv__u_.mjs → tags-BQqO7TLX.mjs} +1 -1
  171. package/dist/telemetry-D2UwfCd1.mjs +2 -0
  172. package/dist/{telemetry-DbAo3nvk.mjs → telemetry-Qc-g_0fL.mjs} +1 -1
  173. package/dist/{tenant-7CL844dh.mjs → tenant-Dr0hGlhU.mjs} +1 -1
  174. package/dist/{tenant-custom-nameservers-CZL9_D8w.mjs → tenant-custom-nameservers-B5Nf5hLr.mjs} +1 -1
  175. package/dist/{tunnels-DuO8F5_h.mjs → tunnels-ndJtol-f.mjs} +1 -1
  176. package/dist/{turnstile-B-6k-bKa.mjs → turnstile-Cd65N6jD.mjs} +1 -1
  177. package/dist/{update-check-g9Jcn6YJ.mjs → update-check-AraGlAQf.mjs} +1 -1
  178. package/dist/update-check-D5-zqJoN.mjs +2 -0
  179. package/dist/update-check-worker.mjs +1 -1
  180. package/dist/{url-info-C6-jj9nl.mjs → url-info-CQKJ5A-x.mjs} +1 -1
  181. package/dist/{url-normalization-BRSTQe20.mjs → url-normalization-BPXZwYu0.mjs} +1 -1
  182. package/dist/{url-scanner-DER5YAdW.mjs → url-scanner-Bq43LJ98.mjs} +1 -1
  183. package/dist/{user-foSeF-0m.mjs → user-D4InwQxA.mjs} +1 -1
  184. package/dist/{values-DgBNckq9.mjs → values-C3YLablc.mjs} +1 -1
  185. package/dist/{vectorize-9AZMN3fN.mjs → vectorize-CYt0qXQ5.mjs} +1 -1
  186. package/dist/version-DyZwKU6l.mjs +2 -0
  187. package/dist/{waiting-rooms-CUc0Xqp0.mjs → waiting-rooms-B3ksWao9.mjs} +1 -1
  188. package/dist/{web-assets-D5LUB5UO.mjs → web-assets-DNiElHgV.mjs} +1 -1
  189. package/dist/{web3-BvOpojFR.mjs → web3-DfMKMDix.mjs} +1 -1
  190. package/dist/{workers-Cko7OnFE.mjs → workers-C8uiRedD.mjs} +1 -1
  191. package/dist/{workers-builds-BFqiT0GR.mjs → workers-builds-DbEy311-.mjs} +1 -1
  192. package/dist/{workers-for-platforms-EVE01qsM.mjs → workers-for-platforms-BjvcY5A1.mjs} +1 -1
  193. package/dist/{workers-vpc-9xBzFjiF.mjs → workers-vpc-BEnB6e_3.mjs} +1 -1
  194. package/dist/{workflows-BS0EGixd.mjs → workflows-CX3Zer8w.mjs} +1 -1
  195. package/dist/{zaraz-DBccJ-ZM.mjs → zaraz-DR1KbYY-.mjs} +1 -1
  196. package/dist/{zero-trust-DGagti-V.mjs → zero-trust-CLoXVq1e.mjs} +1 -1
  197. package/dist/{zone-B4OniptR.mjs → zone-B9qejq6W.mjs} +1 -1
  198. package/dist/{zones-DYuGVoTH.mjs → zones-BxU08wO0.mjs} +1 -1
  199. package/package.json +3 -3
  200. package/dist/build-BmLpTw4w.mjs +0 -2
  201. package/dist/run-BQGVl3vg.mjs +0 -2
  202. package/dist/telemetry-C3hmM9Q9.mjs +0 -2
  203. package/dist/update-check-BDMPumcv.mjs +0 -2
  204. package/dist/version-DLvRzH-I.mjs +0 -2
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-BsGrhAqB.mjs";import{a as t,r as n}from"./auth-BYFcxn1F.mjs";import{t as r}from"./output-CvQFJkvi.mjs";import{t as i}from"./dry-run-Bq0JAsbX.mjs";import{t as a}from"./progress-5nsUpQL6.mjs";import{t as o}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as s,t as c}from"./body-parser-hh2avzkz.mjs";import{n as l}from"./input-validation-Dk52b0me.mjs";import{a as u,i as d,n as f}from"./prompt-Ba_bys2F.mjs";function p(e){return e.usage("$0 cache origin-cloud-regions bulk-delete\n\nRemoves up to 100 IP-to-cloud-region mappings in a single request. Each IP is validated independently — successfully deleted items are returned in the `succeeded` array and IPs that could not be found or are invalid are returned in the `failed` array.").option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ee={command:`bulk-delete`,describe:`Batch delete origin cloud region mappings`,builder:p,handler:async c=>o({command:`cache origin-cloud-regions bulk-delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){i({command:`cf cache origin-cloud-regions bulk-delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/origin/cloud_regions/batch`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?void 0:s(c.body)});return}let o=await n(c);if(c.zoneId=await e({zone:c.zone},o,{quiet:c.quiet}),!await f({force:!!c.force,message:`Are you sure you want to delete these Origin Cloud Region configurations?`})){process.stderr.write(`Aborted.
2
+ import{i as e}from"./context-CPVzoKbN.mjs";import{a as t,r as n}from"./auth-B_Utev-x.mjs";import{t as r}from"./output-CvQFJkvi.mjs";import{t as i}from"./dry-run-Bq0JAsbX.mjs";import{t as a}from"./progress-DS2fwfNP.mjs";import{t as o}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as s,t as c}from"./body-parser-hh2avzkz.mjs";import{n as l}from"./input-validation-Dk52b0me.mjs";import{a as u,i as d,n as f}from"./prompt-doX80PCd.mjs";function p(e){return e.usage("$0 cache origin-cloud-regions bulk-delete\n\nRemoves up to 100 IP-to-cloud-region mappings in a single request. Each IP is validated independently — successfully deleted items are returned in the `succeeded` array and IPs that could not be found or are invalid are returned in the `failed` array.").option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ee={command:`bulk-delete`,describe:`Batch delete origin cloud region mappings`,builder:p,handler:async c=>o({command:`cache origin-cloud-regions bulk-delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){i({command:`cf cache origin-cloud-regions bulk-delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/origin/cloud_regions/batch`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?void 0:s(c.body)});return}let o=await n(c);if(c.zoneId=await e({zone:c.zone},o,{quiet:c.quiet}),!await f({force:!!c.force,message:`Are you sure you want to delete these Origin Cloud Region configurations?`})){process.stderr.write(`Aborted.
3
3
  `);return}if(c.body){let e=s(c.body);if(Array.isArray(e)&&e.length>100){let n=Math.ceil(e.length/100),i=null;for(let r=0;r<e.length;r+=100){let s=e.slice(r,r+100);i=await a(`Deleting: batch ${Math.floor(r/100)+1}/${n}`,async()=>t(o,`DELETE`,`/zones/${c.zoneId}/origin/cloud_regions/batch`,{body:s}))}r(i,{successLabel:`Deleted`});return}r(await a(`Deleting`,async()=>t(o,`DELETE`,`/zones/${c.zoneId}/origin/cloud_regions/batch`,{body:e})),{successLabel:`Deleted`});return}if(c.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function m(e){return e.usage("$0 cache origin-cloud-regions bulk-update\n\nUpserts up to 100 IP-to-cloud-region mappings in a single request. Items in the request body are created or replaced; mappings not included in the request body are preserved unchanged (this is a merge operation, not a full collection replacement). Each item is validated independently — valid items are applied and invalid items are returned in the `failed` array. The vendor and region for every item are validated against the list from `GET /zones/{zone_id}/origin/cloud_regions/supported_regions`.").option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const h={command:`bulk-update`,describe:`Batch create or replace origin cloud region mappings`,builder:m,handler:async c=>o({command:`cache origin-cloud-regions bulk-update`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){i({command:`cf cache origin-cloud-regions bulk-update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/origin/cloud_regions/batch`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?void 0:s(c.body)});return}let o=await n(c);if(c.zoneId=await e({zone:c.zone},o,{quiet:c.quiet}),c.body){let e=s(c.body);if(Array.isArray(e)&&e.length>100){let n=Math.ceil(e.length/100),i=null;for(let r=0;r<e.length;r+=100){let s=e.slice(r,r+100);i=await a(`Updating: batch ${Math.floor(r/100)+1}/${n}`,async()=>t(o,`PUT`,`/zones/${c.zoneId}/origin/cloud_regions/batch`,{body:s}))}r(i,{successLabel:`Updated`});return}r(await a(`Updating`,async()=>t(o,`PUT`,`/zones/${c.zoneId}/origin/cloud_regions/batch`,{body:e})),{successLabel:`Updated`});return}if(c.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function g(e){return e.usage(`$0 cache origin-cloud-regions delete <origin-ip>
4
4
 
5
5
  Removes the cloud region mapping for a single origin IP address. The IP path parameter is normalized before lookup. Returns the deleted IP on success. Returns 404 if no mapping exists for the specified IP. When the last mapping for the zone is removed the underlying rule record is also deleted.`).positional(`origin-ip`,{type:`string`,description:`Origin IP address whose mapping should be deleted.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const _={command:`delete <origin-ip>`,describe:`Delete an origin cloud region mapping`,builder:g,handler:async t=>o({command:`cache origin-cloud-regions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){i({command:`cf cache origin-cloud-regions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${t.zone??t.zoneId??`<zone>`}/origin/cloud_regions/${t[`origin-ip`]==null?`<origin-ip>`:encodeURIComponent(String(t[`origin-ip`]))}`,pathParams:{"zone-id":String(t.zone??t[`zone-id`]??``),"origin-ip":String(t[`origin-ip`]??``)},bodyKind:`none`});return}let o=await n(t),s=await e({zone:t.zone},o,{quiet:t.quiet});if(t.zoneId=s,!await f({force:!!t.force,message:`Are you sure you want to delete this Origin Cloud Region configuration?`})){process.stderr.write(`Aborted.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-BsGrhAqB.mjs";import{r as t}from"./auth-BYFcxn1F.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-5nsUpQL6.mjs";import{t as a}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";function l(e){return e.usage(`$0 certificate-authorities hostname-associations get
2
+ import{i as e}from"./context-CPVzoKbN.mjs";import{r as t}from"./auth-B_Utev-x.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-DS2fwfNP.mjs";import{t as a}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";function l(e){return e.usage(`$0 certificate-authorities hostname-associations get
3
3
 
4
4
  List Hostname Associations.`).option(`mtls-certificate-id`,{type:`string`,description:`The UUID to match against for a certificate that was uploaded to the mTLS Certificate Management endpoint. If no mtls_certificate_id is given, the results will be the hostnames associated to your active Cloudflare Managed CA.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const u={command:`get`,describe:`List Hostname Associations`,builder:l,handler:async o=>a({command:`certificate-authorities hostname-associations get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{let a={mtls_certificate_id:o[`mtls-certificate-id`]};if(o.dryRun){r({command:`cf certificate-authorities hostname-associations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/certificate_authorities/hostname_associations`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await t(o),c=await e({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.certificateAuthorities.hostnameAssociations.get({zone_id:c,...a})),{successLabel:`Loaded`})})};function d(e){return e.usage(`$0 certificate-authorities hostname-associations update
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{n as e,t}from"./metadata-C33s4rc-.mjs";import{r as n}from"./theme-BIWQFmZ0.mjs";import{t as r}from"./cli-exit-Dqoo6Jgb.mjs";import"./ui-BQxRjahW.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{a,f as o,m as s,t as c,u as l}from"./run-UHTbUldP.mjs";import u from"minisearch";function d({enabled:e,source:t}){let r=e?n.success(`Enabled`):n.error(`Disabled`),i=l(t);return`Status: ${r}${i?` (set by ${i})`:``}\n`}const f={command:`disable`,describe:`Disable cf telemetry collection`,handler:()=>{s(!1);let{enabled:e,source:t}=o();console.log(d({enabled:e,source:t})),console.log(e?`cf is collecting usage telemetry because ${l(t)}=true overrides this setting.\n`:`cf is no longer collecting usage telemetry.
2
+ import{n as e,t}from"./metadata-C33s4rc-.mjs";import{r as n}from"./theme-BIWQFmZ0.mjs";import{t as r}from"./cli-exit-Dqoo6Jgb.mjs";import"./ui-BQxRjahW.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{a,f as o,m as s,t as c,u as l}from"./run-CJ-6owN3.mjs";import u from"minisearch";function d({enabled:e,source:t}){let r=e?n.success(`Enabled`):n.error(`Disabled`),i=l(t);return`Status: ${r}${i?` (set by ${i})`:``}\n`}const f={command:`disable`,describe:`Disable cf telemetry collection`,handler:()=>{s(!1);let{enabled:e,source:t}=o();console.log(d({enabled:e,source:t})),console.log(e?`cf is collecting usage telemetry because ${l(t)}=true overrides this setting.\n`:`cf is no longer collecting usage telemetry.
3
3
  `)}},p={command:`enable`,describe:`Enable cf telemetry collection`,handler:()=>{s(!0);let{enabled:e,source:t}=o();console.log(d({enabled:e,source:t})),console.log(e?`cf is now collecting anonymous usage telemetry. Thank you for helping make cf better.
4
4
  `:`cf is not collecting usage telemetry because ${l(t)}${t===`env`||t===`wrangler-env`?`=false`:``} overrides this setting.\n`)}},m={command:`status`,describe:`Check whether cf telemetry collection is enabled`,handler:()=>{console.log(d(o())),console.log(n.muted(`Configure on this machine: \`cf cli telemetry enable\` / \`cf cli telemetry disable\`.
5
5
  Override per invocation with ${a}=true/false. DO_NOT_TRACK is also honored.\nLearn more: https://github.com/cloudflare/cf/blob/main/packages/cli/telemetry.md`))}},h={command:`telemetry`,describe:`Configure whether cf collects anonymous usage telemetry`,builder:e=>e.command(m).command(p).command(f).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function g(e,t){let n=e.fullPath.slice(0,-1).map((t,n)=>e.fullPath.slice(0,n+1).join(` `));return{command:e.command,summary:e.summary||e.description.split(`
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-BsGrhAqB.mjs";import{r as t}from"./auth-BYFcxn1F.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-5nsUpQL6.mjs";import{t as a}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,n as u}from"./prompt-Ba_bys2F.mjs";import{t as d}from"./cli-types-DoVT5q_M.mjs";function f(e){return e.usage(`$0 client-certificates create
2
+ import{i as e}from"./context-CPVzoKbN.mjs";import{r as t}from"./auth-B_Utev-x.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-DS2fwfNP.mjs";import{t as a}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,n as u}from"./prompt-doX80PCd.mjs";import{t as d}from"./cli-types-DoVT5q_M.mjs";function f(e){return e.usage(`$0 client-certificates create
3
3
 
4
4
  Create a new API Shield mTLS Client Certificate.`).option(`csr`,{type:`string`,description:`The Certificate Signing Request (CSR). Must be newline-encoded.`}).option(`validity-days`,{type:`number`,description:`The number of days the Client Certificate will be valid after the issued_on date.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const p={command:`create`,describe:`Create Client Certificate`,builder:f,handler:async u=>a({command:`client-certificates create`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf client-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/client_certificates`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({csr:c(u.csr,`csr`,`text`),validity_days:u[`validity-days`]}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Creating`,async()=>a.clientCertificates.create({...e,zone_id:d})),{successLabel:`Created`});return}if(u.csr===void 0&&(u.csr=await l(`csr`,`The Certificate Signing Request (CSR). Must be newline-encoded.`)),u[`validity-days`]===void 0)throw Error(`--validity-days is required (or pass --body with this field set).`);let f=s({csr:c(u.csr,`csr`,`text`),validity_days:u[`validity-days`]});n(await i(`Creating`,async()=>a.clientCertificates.create({...f,zone_id:d})),{successLabel:`Created`})})};function m(e){return e.usage(`$0 client-certificates delete <client-certificate-id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-BsGrhAqB.mjs";import{r as t}from"./auth-BYFcxn1F.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-5nsUpQL6.mjs";import{t as a}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,i as u,n as d}from"./prompt-Ba_bys2F.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 client-side-security connections get <connection-id>
2
+ import{i as e}from"./context-CPVzoKbN.mjs";import{r as t}from"./auth-B_Utev-x.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-DS2fwfNP.mjs";import{t as a}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,i as u,n as d}from"./prompt-doX80PCd.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 client-side-security connections get <connection-id>
3
3
 
4
4
  Returns a webpage connection detected on the zone by connection ID.`).positional(`connection-id`,{type:`string`,description:`Identifier`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`get <connection-id>`,describe:`Get a detected connection`,builder:p,handler:async o=>a({command:`client-side-security connections get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf client-side-security connections get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/page_shield/connections/${o[`connection-id`]==null?`<connection-id>`:encodeURIComponent(String(o[`connection-id`]))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),"connection-id":String(o[`connection-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.clientSideSecurity.connections.get({zone_id:s,connection_id:o[`connection-id`]})),{successLabel:`Loaded`})})};function h(e){return e.usage(`$0 client-side-security connections list
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-BsGrhAqB.mjs";import{r as t}from"./auth-BYFcxn1F.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-5nsUpQL6.mjs";import{t as a}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as o}from"./body-parser-hh2avzkz.mjs";function s(e){return e.usage(`$0 cloud-connector rules list
2
+ import{i as e}from"./context-CPVzoKbN.mjs";import{r as t}from"./auth-B_Utev-x.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-DS2fwfNP.mjs";import{t as a}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as o}from"./body-parser-hh2avzkz.mjs";function s(e){return e.usage(`$0 cloud-connector rules list
3
3
 
4
4
  Retrieves the Cloud Connector rules configured for a zone. Rules define how traffic is routed to cloud services.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const c={command:`list`,describe:`Rules`,builder:s,handler:async o=>a({command:`cloud-connector rules list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf cloud-connector rules list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/cloud_connector/rules`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.cloudConnector.rules.list({zone_id:s})),{successLabel:`Loaded`})})};function l(e){return e.usage(`$0 cloud-connector rules update
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-BsGrhAqB.mjs";import{a as r,r as i}from"./auth-BYFcxn1F.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-5nsUpQL6.mjs";import{t as c}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{i as l,n as u,r as d,t as f}from"./body-parser-hh2avzkz.mjs";import{n as p,t as m}from"./input-validation-Dk52b0me.mjs";import{a as h,i as g,n as _}from"./prompt-Ba_bys2F.mjs";import{t as v}from"./cli-types-DoVT5q_M.mjs";import{n as ee,t as te}from"./raw-fetch-AX_Gz3c3.mjs";function y(e){return e.usage(`$0 cloudforce-one binary-storage create
2
+ import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-CPVzoKbN.mjs";import{a as r,r as i}from"./auth-B_Utev-x.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-DS2fwfNP.mjs";import{t as c}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{i as l,n as u,r as d,t as f}from"./body-parser-hh2avzkz.mjs";import{n as p,t as m}from"./input-validation-Dk52b0me.mjs";import{a as h,i as g,n as _}from"./prompt-doX80PCd.mjs";import{t as v}from"./cli-types-DoVT5q_M.mjs";import{n as ee,t as te}from"./raw-fetch-_Z55VEDY.mjs";function y(e){return e.usage(`$0 cloudforce-one binary-storage create
3
3
 
4
4
  Uploads a binary file to Cloudforce One's binary database for malware analysis and threat intelligence correlation.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Binary file to be uploaded to the database.`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const b={command:`create`,describe:`Posts a file to Binary Storage`,builder:y,handler:async l=>c({command:`cloudforce-one binary-storage create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){o({command:`cf cloudforce-one binary-storage create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/cloudforce-one/binary`,pathParams:{},bodyKind:`multipart`,body:{body:l.body,file:l.file}});return}let c=await i(l),u=l.local?e:await n();if(l.accountId=u,l.file!==void 0||l.body!==void 0){let e=new FormData;if(l.file){let t=m(l.file);e.append(`file`,new Blob([t]),l.file.split(/[\\/]/).filter(Boolean).pop())}else l.body!==void 0&&e.append(`file`,l.body);a(await s(`Creating`,async()=>r(c,`POST`,`/accounts/${u}/cloudforce-one/binary`,{body:e})),{successLabel:`Created`});return}if(l.body){let e=p(l.body,`body`,`binary`);a(await s(`Creating`,async()=>r(c,`POST`,`/accounts/${u}/cloudforce-one/binary`,{body:e,headers:{"Content-Type":`multipart/form-data`}})),{successLabel:`Created`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function x(e){return e.usage(`$0 cloudforce-one binary-storage get <hash>
5
5
 
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{r as n}from"./resolve-BCTrtcx7.mjs";import{t as r}from"./context-BsGrhAqB.mjs";import{r as i}from"./auth-BYFcxn1F.mjs";import{t as a}from"./progress-5nsUpQL6.mjs";import{n as o,t as s}from"./cloudflared-91JvyShh.mjs";const c=1e3;async function l(e,t,r){if(n(r))return r;let i=0,a;for(let n=1;;n++){let o=await e.tunnel.list({account_id:t,name:r,is_deleted:!1,page:n,per_page:c}),s=o.result??[];for(let e of s)e.name===r&&(i++,a=e.id);let l=o.result_info?.per_page||c;if(s.length<l)break}if(i===0)throw Error(`"${r}" is neither the ID nor the name of any tunnel. Run \`cf tunnels list\` to see available tunnels.`);if(i>1)throw Error(`Found multiple tunnels named "${r}". Pass the tunnel UUID instead.`);if(!a)throw Error(`Tunnel "${r}" was found but has no ID. Pass the tunnel UUID instead.`);return a}async function u(e,t,n){let r=await e.tunnels.token.get({account_id:t,tunnel_id:n});if(typeof r!=`string`||r.length===0)throw Error(`The API returned an empty token for tunnel ${n}.`);return r}function d(e){return e.positional(`tunnel`,{type:`string`,description:`Tunnel name or UUID; required unless --token is provided`}).option(`token`,{type:`string`,description:`Tunnel token supplied directly to cloudflared`}).option(`log-level`,{type:`string`,choices:s,default:`info`,description:`cloudflared log level`})}const f={command:`run [tunnel]`,describe:`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,builder:d,handler:async n=>{if(n.local)throw Error(`--local is not supported by cf tunnels run.`);let s=n.token,c=n.tunnel;if(!s){if(!c)throw Error(`Either a tunnel name/UUID or --token must be provided.`);s=await t(n,async()=>{let e=await i(n),t=await r();return a(`Fetching tunnel token`,async()=>u(e,t,await l(e,t,c)))})}let d=[`tunnel`,`--loglevel`,n[`log-level`]];throw d.push(`run`),new e(await o(d,{env:{TUNNEL_TOKEN:s}}))}};export{f as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{r as n}from"./resolve-BCTrtcx7.mjs";import{t as r}from"./context-CPVzoKbN.mjs";import{r as i}from"./auth-B_Utev-x.mjs";import{t as a}from"./progress-DS2fwfNP.mjs";import{n as o,t as s}from"./cloudflared-91JvyShh.mjs";const c=1e3;async function l(e,t,r){if(n(r))return r;let i=0,a;for(let n=1;;n++){let o=await e.tunnel.list({account_id:t,name:r,is_deleted:!1,page:n,per_page:c}),s=o.result??[];for(let e of s)e.name===r&&(i++,a=e.id);let l=o.result_info?.per_page||c;if(s.length<l)break}if(i===0)throw Error(`"${r}" is neither the ID nor the name of any tunnel. Run \`cf tunnels list\` to see available tunnels.`);if(i>1)throw Error(`Found multiple tunnels named "${r}". Pass the tunnel UUID instead.`);if(!a)throw Error(`Tunnel "${r}" was found but has no ID. Pass the tunnel UUID instead.`);return a}async function u(e,t,n){let r=await e.tunnels.token.get({account_id:t,tunnel_id:n});if(typeof r!=`string`||r.length===0)throw Error(`The API returned an empty token for tunnel ${n}.`);return r}function d(e){return e.positional(`tunnel`,{type:`string`,description:`Tunnel name or UUID; required unless --token is provided`}).option(`token`,{type:`string`,description:`Tunnel token supplied directly to cloudflared`}).option(`log-level`,{type:`string`,choices:s,default:`info`,description:`cloudflared log level`})}const f={command:`run [tunnel]`,describe:`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,builder:d,handler:async n=>{if(n.local)throw Error(`--local is not supported by cf tunnels run.`);let s=n.token,c=n.tunnel;if(!s){if(!c)throw Error(`Either a tunnel name/UUID or --token must be provided.`);s=await t(n,async()=>{let e=await i(n),t=await r();return a(`Fetching tunnel token`,async()=>u(e,t,await l(e,t,c)))})}let d=[`tunnel`,`--loglevel`,n[`log-level`]];throw d.push(`run`),new e(await o(d,{env:{TUNNEL_TOKEN:s}}))}};export{f as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-BsGrhAqB.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`login`,describe:`Authorize cloudflared and download an origin certificate for locally managed tunnels.`,handler:async i=>{if(i.local)throw Error(`--local is not supported by cf tunnels login.`);let a=[`tunnel`,`login`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),new e(await r(a))}};export{i as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-CPVzoKbN.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`login`,describe:`Authorize cloudflared and download an origin certificate for locally managed tunnels.`,handler:async i=>{if(i.local)throw Error(`--local is not supported by cf tunnels login.`);let a=[`tunnel`,`login`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),new e(await r(a))}};export{i as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-BsGrhAqB.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`ssh-config`,describe:`Print an example SSH configuration for an Access application.`,builder:e=>e.option(`hostname`,{type:`string`,description:`Hostname of the Access application`}).option(`short-lived-cert`,{type:`boolean`,description:`Include short-lived certificate configuration`}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access ssh-config.`);if(await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`)throw Error(`cf access ssh-config does not support FedRAMP because cloudflared does not include --fedramp in its generated SSH configuration.`);let a=[`access`,`ssh-config`];throw i.hostname&&a.push(`--hostname`,i.hostname),i[`short-lived-cert`]&&a.push(`--short-lived-cert`),new e(await r(a))}};export{i as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-CPVzoKbN.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`ssh-config`,describe:`Print an example SSH configuration for an Access application.`,builder:e=>e.option(`hostname`,{type:`string`,description:`Hostname of the Access application`}).option(`short-lived-cert`,{type:`boolean`,description:`Include short-lived certificate configuration`}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access ssh-config.`);if(await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`)throw Error(`cf access ssh-config does not support FedRAMP because cloudflared does not include --fedramp in its generated SSH configuration.`);let a=[`access`,`ssh-config`];throw i.hostname&&a.push(`--hostname`,i.hostname),i[`short-lived-cert`]&&a.push(`--short-lived-cert`),new e(await r(a))}};export{i as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{x as e}from"./dist-DfMipWKR.mjs";import{t}from"./chunk-M77HNR46-DPbhuhiy.mjs";import{i as n,n as r,t as i}from"./startup-profile-DrV846S5.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./progress-5nsUpQL6.mjs";import{a as s,i as c,n as l,o as u,r as d,s as f}from"./build-DEbkHHVh.mjs";import{t as p}from"./deploy-input-ChEbf2Kp.mjs";import m from"node:path";import{writeFile as h}from"node:fs/promises";import{readBuildOutput as g}from"@cloudflare/build-output-utils";function _(e){return e.option(`outfile`,{type:`string`,description:`Output file for the startup CPU profile`,default:`worker-startup.cpuprofile`,requiresArg:!0}).option(`prebuilt`,{type:`boolean`,description:`Use existing Build Output Specification files without building`,default:!1}).option(`worker`,d)}const v={command:`check`,describe:`Profile a Worker's startup performance`,builder:_,handler:async d=>{if(d.local)throw Error(`--local is not supported by cf workers check.`);d.prebuilt||await l(d.mode,{output:d.quiet?`silent`:`stderr`,worker:d.worker});let{workers:_,rootConfig:v}=await g(process.cwd());u(d.mode,v.buildContext.mode);let y=s(_,d.worker),{wranglerConfig:b,builtConfig:x}=c(y,v),S=p(y,x);if(!S.resolvedEntryPointPath)throw new f(`Startup profiling requires a Worker entrypoint; assets-only projects cannot be profiled.`);if(S.bundleType===`commonjs`)throw new f(`Startup profiling does not support service-worker format Workers. Refer to https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/ for migration guidance.`);let C=t({name:b.name??y.config.name??`worker`,main:{name:x.manifest?.mainModule??m.basename(S.resolvedEntryPointPath),filePath:S.resolvedEntryPointPath,content:S.content,type:S.bundleType},modules:S.modules,sourceMaps:S.sourceMaps,compatibility_date:b.compatibility_date,compatibility_flags:b.compatibility_flags??[],assets:void 0,containers:void 0,migrations:void 0,exports:void 0,keepVars:void 0,keepSecrets:void 0,logpush:void 0,placement:void 0,tail_consumers:void 0,streaming_tail_consumers:void 0,limits:void 0,annotations:void 0,observability:void 0,cache:void 0,package_dependencies:void 0},e(b),{dryRun:!0,unsafe:b.unsafe}),w=await r(C),T=d.quiet?await i(C):await o(`Profiling Worker startup`,()=>i(C)),E=n(T);await h(d.outfile,JSON.stringify(T)),a({bundle:{sizeBytes:w.size,gzipSizeBytes:w.gzipSize},startup:{profileWindowMs:E.profileWindow/1e3,sampledTimeMs:E.sampledTime/1e3,activeTimeMs:E.activeTime/1e3,garbageCollectionTimeMs:E.garbageCollectionTime/1e3,idleTimeMs:E.idleTime/1e3,sampleCount:E.sampleCount},profile:d.outfile,note:`This profile was measured locally. Use it to understand where startup time is spent, not to predict startup time on Cloudflare.`},{quiet:d.quiet})}};export{v as default};
2
+ import{x as e}from"./dist-DfMipWKR.mjs";import{t}from"./chunk-M77HNR46-DPbhuhiy.mjs";import{i as n,n as r,t as i}from"./startup-profile-DrV846S5.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./progress-DS2fwfNP.mjs";import{a as s,i as c,n as l,o as u,r as d,s as f}from"./build-VUz0URCV.mjs";import{t as p}from"./deploy-input-YW632ysz.mjs";import m from"node:path";import{writeFile as h}from"node:fs/promises";import{readBuildOutput as g}from"@cloudflare/build-output-utils";function _(e){return e.option(`outfile`,{type:`string`,description:`Output file for the startup CPU profile`,default:`worker-startup.cpuprofile`,requiresArg:!0}).option(`prebuilt`,{type:`boolean`,description:`Use existing Build Output Specification files without building`,default:!1}).option(`worker`,d)}const v={command:`check`,describe:`Profile a Worker's startup performance`,builder:_,handler:async d=>{if(d.local)throw Error(`--local is not supported by cf workers check.`);d.prebuilt||await l(d.mode,{output:d.quiet?`silent`:`stderr`,worker:d.worker});let{workers:_,rootConfig:v}=await g(process.cwd());u(d.mode,v.buildContext.mode);let y=s(_,d.worker),{wranglerConfig:b,builtConfig:x}=c(y,v),S=p(y,x);if(!S.resolvedEntryPointPath)throw new f(`Startup profiling requires a Worker entrypoint; assets-only projects cannot be profiled.`);if(S.bundleType===`commonjs`)throw new f(`Startup profiling does not support service-worker format Workers. Refer to https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/ for migration guidance.`);let C=t({name:b.name??y.config.name??`worker`,main:{name:x.manifest?.mainModule??m.basename(S.resolvedEntryPointPath),filePath:S.resolvedEntryPointPath,content:S.content,type:S.bundleType},modules:S.modules,sourceMaps:S.sourceMaps,compatibility_date:b.compatibility_date,compatibility_flags:b.compatibility_flags??[],assets:void 0,containers:void 0,migrations:void 0,exports:void 0,keepVars:void 0,keepSecrets:void 0,logpush:void 0,placement:void 0,tail_consumers:void 0,streaming_tail_consumers:void 0,limits:void 0,annotations:void 0,observability:void 0,cache:void 0,package_dependencies:void 0},e(b),{dryRun:!0,unsafe:b.unsafe}),w=await r(C),T=d.quiet?await i(C):await o(`Profiling Worker startup`,()=>i(C)),E=n(T);await h(d.outfile,JSON.stringify(T)),a({bundle:{sizeBytes:w.size,gzipSizeBytes:w.gzipSize},startup:{profileWindowMs:E.profileWindow/1e3,sampledTimeMs:E.sampledTime/1e3,activeTimeMs:E.activeTime/1e3,garbageCollectionTimeMs:E.garbageCollectionTime/1e3,idleTimeMs:E.idleTime/1e3,sampleCount:E.sampleCount},profile:d.outfile,note:`This profile was measured locally. Use it to understand where startup time is spent, not to predict startup time on Cloudflare.`},{quiet:d.quiet})}};export{v as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-BsGrhAqB.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`token <url>`,describe:`Print a JWT for authenticating with an Access application.`,builder:e=>e.positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access token.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`token`,i.url),new e(await r(a))}};export{i as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-CPVzoKbN.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`token <url>`,describe:`Print a JWT for authenticating with an Access application.`,builder:e=>e.positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access token.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`token`,i.url),new e(await r(a))}};export{i as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-BsGrhAqB.mjs";import{n as r,t as i}from"./cloudflared-91JvyShh.mjs";function a(e){return e.option(`hostname`,{type:`string`,demandOption:!0,description:`Hostname of the Access application`}).option(`destination`,{type:`string`,description:`Destination address of the target server`}).option(`url`,{type:`string`,description:`Local host and port to forward to the Cloudflare edge`}).option(`header`,{type:`string`,array:!0,description:`Additional request header; repeat for multiple headers`}).option(`service-token-id`,{type:`string`,description:`Access service token ID`}).option(`service-token-secret`,{type:`string`,description:`Access service token secret`}).option(`log-level`,{alias:`loglevel`,type:`string`,choices:i,description:`cloudflared log level`})}const o={command:`tcp`,aliases:[`ssh`,`rdp`,`smb`],describe:`Proxy a TCP connection through Access. The command is also available as ssh, rdp, and smb.`,builder:a,handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access tcp.`);let a=[`access`];await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`tcp`),a.push(`--hostname`,i.hostname),i.destination&&a.push(`--destination`,i.destination),i.url&&a.push(`--url`,i.url);for(let e of i.header??[])a.push(`--header`,e);throw i[`service-token-id`]&&a.push(`--service-token-id`,i[`service-token-id`]),i[`log-level`]&&a.push(`--loglevel`,i[`log-level`]),new e(await r(a,{env:i[`service-token-secret`]?{TUNNEL_SERVICE_TOKEN_SECRET:i[`service-token-secret`]}:void 0}))}};export{o as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-CPVzoKbN.mjs";import{n as r,t as i}from"./cloudflared-91JvyShh.mjs";function a(e){return e.option(`hostname`,{type:`string`,demandOption:!0,description:`Hostname of the Access application`}).option(`destination`,{type:`string`,description:`Destination address of the target server`}).option(`url`,{type:`string`,description:`Local host and port to forward to the Cloudflare edge`}).option(`header`,{type:`string`,array:!0,description:`Additional request header; repeat for multiple headers`}).option(`service-token-id`,{type:`string`,description:`Access service token ID`}).option(`service-token-secret`,{type:`string`,description:`Access service token secret`}).option(`log-level`,{alias:`loglevel`,type:`string`,choices:i,description:`cloudflared log level`})}const o={command:`tcp`,aliases:[`ssh`,`rdp`,`smb`],describe:`Proxy a TCP connection through Access. The command is also available as ssh, rdp, and smb.`,builder:a,handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access tcp.`);let a=[`access`];await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`tcp`),a.push(`--hostname`,i.hostname),i.destination&&a.push(`--destination`,i.destination),i.url&&a.push(`--url`,i.url);for(let e of i.header??[])a.push(`--header`,e);throw i[`service-token-id`]&&a.push(`--service-token-id`,i[`service-token-id`]),i[`log-level`]&&a.push(`--loglevel`,i[`log-level`]),new e(await r(a,{env:i[`service-token-secret`]?{TUNNEL_SERVICE_TOKEN_SECRET:i[`service-token-secret`]}:void 0}))}};export{o as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-BsGrhAqB.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`login <url>`,describe:`Authenticate with an Access application and store its JWT through cloudflared.`,builder:e=>e.positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access login.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`login`),i.quiet&&a.push(`--quiet`),a.push(i.url),new e(await r(a))}};export{i as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-CPVzoKbN.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`login <url>`,describe:`Authenticate with an Access application and store its JWT through cloudflared.`,builder:e=>e.positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access login.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`login`),i.quiet&&a.push(`--quiet`),a.push(i.url),new e(await r(a))}};export{i as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{t as n}from"./context-BsGrhAqB.mjs";import{r}from"./auth-BYFcxn1F.mjs";import{t as i}from"./progress-5nsUpQL6.mjs";import{n as a}from"./cloudflared-91JvyShh.mjs";const o=[`cloudflared`,`http`,`tcp`,`udp`],s=[`debug`,`info`,`warn`,`error`],c=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function l(e,t){if(!c.test(e))throw Error(`${t} must be a valid UUID.`);return e}const u={command:`tail [tunnel-id]`,describe:`Stream logs from a remote cloudflared instance.`,builder:e=>e.positional(`tunnel-id`,{type:`string`,coerce:e=>l(e,`Tunnel ID`),description:`Tunnel UUID to stream logs from`}).option(`connector-id`,{type:`string`,coerce:e=>l(e,`--connector-id`),description:`Target a specific cloudflared connector`}).option(`event`,{type:`string`,choices:o,array:!0,description:`Filter by event type (may be repeated)`}).option(`level`,{type:`string`,choices:s,description:`Filter by log level`}).option(`sample`,{type:`number`,coerce:e=>{if(!Number.isFinite(e)||e<=0||e>1)throw Error(`--sample must be greater than 0.0 and no greater than 1.0.`);return e},description:`Sample log events by fraction greater than 0.0 and no greater than 1.0`}),handler:async o=>{if(o.local)throw Error(`--local is not supported by cf tunnels tail.`);let s=process.env.TUNNEL_MANAGEMENT_TOKEN;if(s!==void 0&&!s.trim())throw Error(`TUNNEL_MANAGEMENT_TOKEN must not be empty.`);if(s&&o[`tunnel-id`])throw Error(`Specify either a tunnel ID or TUNNEL_MANAGEMENT_TOKEN, not both.`);let c=s;if(!c){let e=o[`tunnel-id`];if(!e)throw Error(`Either a tunnel ID or TUNNEL_MANAGEMENT_TOKEN must be provided.`);c=await t({mode:o.mode,local:o.local},async()=>{let t=await r(o),a=await n();return i(`Fetching tunnel management token`,async()=>t.tunnels.managementToken.create({account_id:a,tunnel_id:e,resources:[`logs`]}))})}let l=[`tail`,`--output`,`json`];if(o[`connector-id`]&&l.push(`--connector-id`,o[`connector-id`]),o.event)for(let e of o.event)l.push(`--event`,e);throw o.level&&l.push(`--level`,o.level),o.sample!==void 0&&l.push(`--sample`,String(o.sample)),o[`tunnel-id`]&&l.push(o[`tunnel-id`]),new e(await a(l,{env:{TUNNEL_MANAGEMENT_TOKEN:c}}))}};export{u as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{t as n}from"./context-CPVzoKbN.mjs";import{r}from"./auth-B_Utev-x.mjs";import{t as i}from"./progress-DS2fwfNP.mjs";import{n as a}from"./cloudflared-91JvyShh.mjs";const o=[`cloudflared`,`http`,`tcp`,`udp`],s=[`debug`,`info`,`warn`,`error`],c=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function l(e,t){if(!c.test(e))throw Error(`${t} must be a valid UUID.`);return e}const u={command:`tail [tunnel-id]`,describe:`Stream logs from a remote cloudflared instance.`,builder:e=>e.positional(`tunnel-id`,{type:`string`,coerce:e=>l(e,`Tunnel ID`),description:`Tunnel UUID to stream logs from`}).option(`connector-id`,{type:`string`,coerce:e=>l(e,`--connector-id`),description:`Target a specific cloudflared connector`}).option(`event`,{type:`string`,choices:o,array:!0,description:`Filter by event type (may be repeated)`}).option(`level`,{type:`string`,choices:s,description:`Filter by log level`}).option(`sample`,{type:`number`,coerce:e=>{if(!Number.isFinite(e)||e<=0||e>1)throw Error(`--sample must be greater than 0.0 and no greater than 1.0.`);return e},description:`Sample log events by fraction greater than 0.0 and no greater than 1.0`}),handler:async o=>{if(o.local)throw Error(`--local is not supported by cf tunnels tail.`);let s=process.env.TUNNEL_MANAGEMENT_TOKEN;if(s!==void 0&&!s.trim())throw Error(`TUNNEL_MANAGEMENT_TOKEN must not be empty.`);if(s&&o[`tunnel-id`])throw Error(`Specify either a tunnel ID or TUNNEL_MANAGEMENT_TOKEN, not both.`);let c=s;if(!c){let e=o[`tunnel-id`];if(!e)throw Error(`Either a tunnel ID or TUNNEL_MANAGEMENT_TOKEN must be provided.`);c=await t({mode:o.mode,local:o.local},async()=>{let t=await r(o),a=await n();return i(`Fetching tunnel management token`,async()=>t.tunnels.managementToken.create({account_id:a,tunnel_id:e,resources:[`logs`]}))})}let l=[`tail`,`--output`,`json`];if(o[`connector-id`]&&l.push(`--connector-id`,o[`connector-id`]),o.event)for(let e of o.event)l.push(`--event`,e);throw o.level&&l.push(`--level`,o.level),o.sample!==void 0&&l.push(`--sample`,String(o.sample)),o[`tunnel-id`]&&l.push(o[`tunnel-id`]),new e(await a(l,{env:{TUNNEL_MANAGEMENT_TOKEN:c}}))}};export{u as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-BsGrhAqB.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`ssh-gen`,describe:`Generate a short-lived certificate for an Access SSH application.`,builder:e=>e.option(`hostname`,{type:`string`,description:`Hostname of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access ssh-gen.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`ssh-gen`,`--hostname`,i.hostname),new e(await r(a))}};export{i as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-CPVzoKbN.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`ssh-gen`,describe:`Generate a short-lived certificate for an Access SSH application.`,builder:e=>e.option(`hostname`,{type:`string`,description:`Hostname of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access ssh-gen.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`ssh-gen`,`--hostname`,i.hostname),new e(await r(a))}};export{i as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-BsGrhAqB.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`curl <url>`,describe:`Run curl against an Access-protected application with its JWT injected by cloudflared.`,builder:e=>e.parserConfiguration({"populate--":!0,"parse-positional-numbers":!1,"short-option-groups":!1}).option(`allow-request`,{alias:`ar`,type:`boolean`,description:`Continue the request when no Access token is available`}).positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access curl.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`curl`),i[`allow-request`]&&a.push(`--allow-request`),a.push(i.url,...(i[`--`]??[]).map(String)),new e(await r(a))}};export{i as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-CPVzoKbN.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`curl <url>`,describe:`Run curl against an Access-protected application with its JWT injected by cloudflared.`,builder:e=>e.parserConfiguration({"populate--":!0,"parse-positional-numbers":!1,"short-option-groups":!1}).option(`allow-request`,{alias:`ar`,type:`boolean`,description:`Continue the request when no Access token is available`}).positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access curl.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`curl`),i[`allow-request`]&&a.push(`--allow-request`),a.push(i.url,...(i[`--`]??[]).map(String)),new e(await r(a))}};export{i as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{n as e,t}from"./metadata-C33s4rc-.mjs";import{t as n}from"./run-UHTbUldP.mjs";import r from"node:assert";function i(e,t){return`#compdef ${e}
2
+ import{n as e,t}from"./metadata-C33s4rc-.mjs";import{t as n}from"./run-CJ-6owN3.mjs";import r from"node:assert";function i(e,t){return`#compdef ${e}
3
3
  compdef _${e} ${e}
4
4
 
5
5
  # zsh completion for ${e} -*- shell-script -*-
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-BsGrhAqB.mjs";import{r}from"./auth-BYFcxn1F.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-5nsUpQL6.mjs";import{t as s}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";function u(e){return e.usage(`$0 connector-interrupts create <connector-id>
2
+ import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-CPVzoKbN.mjs";import{r}from"./auth-B_Utev-x.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-DS2fwfNP.mjs";import{t as s}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";function u(e){return e.usage(`$0 connector-interrupts create <connector-id>
3
3
 
4
4
  Creates an interrupt for a Magic WAN Connector.`).positional(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`reboot-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`restart-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`shutdown-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Interrupt action for a connector.`})}const d={command:`create <connector-id>`,describe:`Create Interrupt`,builder:u,handler:async u=>s({command:`connector-interrupts create`,classification:{safeFlags:[`reboot-purge`,`restart-purge`,`shutdown-purge`,`dry-run`]}},u,async()=>{if(u.dryRun){a({command:`cf connector-interrupts create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/magic/connectors/${u[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(u[`connector-id`]))}/interrupts`,pathParams:{"connector-id":String(u[`connector-id`]??``)},bodyKind:`json`,body:u.body===void 0?l({reboot:{purge:u[`reboot-purge`]},restart:{purge:u[`restart-purge`]},shutdown:{purge:u[`shutdown-purge`]}}):c(u.body)});return}let s=await r(u),d=u.local?e:await n();if(u.accountId=d,u.body){let e=c(u.body);i(await o(`Creating`,async()=>s.connectorInterrupts.create({...e,account_id:d,connector_id:u[`connector-id`]})),{successLabel:`Created`});return}let f=l({reboot:{purge:u[`reboot-purge`]},restart:{purge:u[`restart-purge`]},shutdown:{purge:u[`shutdown-purge`]}});i(await o(`Creating`,async()=>s.connectorInterrupts.create({...f,account_id:d,connector_id:u[`connector-id`]})),{successLabel:`Created`})})};function f(e){return e.usage(`$0 connector-interrupts list
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-BsGrhAqB.mjs";import{r}from"./auth-BYFcxn1F.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-5nsUpQL6.mjs";import{t as s}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";function c(e){return e.usage(`$0 connector-telemetry-events get <event-n>
2
+ import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-CPVzoKbN.mjs";import{r}from"./auth-B_Utev-x.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-DS2fwfNP.mjs";import{t as s}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";function c(e){return e.usage(`$0 connector-telemetry-events get <event-n>
3
3
 
4
4
  Gets Magic WAN Connector Telemetry Event`).positional(`event-n`,{type:`string`,description:`Event n`,demandOption:!0}).option(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`event-t`,{type:`string`,description:`Event t`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get <event-n>`,describe:`Get Event`,builder:c,handler:async c=>s({command:`connector-telemetry-events get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf connector-telemetry-events get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/magic/connectors/${c[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(c[`connector-id`]))}/telemetry/events/${c[`event-t`]==null?`<event-t>`:encodeURIComponent(String(c[`event-t`]))}.${c[`event-n`]==null?`<event-n>`:encodeURIComponent(String(c[`event-n`]))}`,pathParams:{"connector-id":String(c[`connector-id`]??``),"event-t":String(c[`event-t`]??``),"event-n":String(c[`event-n`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.connectorTelemetryEvents.get({account_id:l,connector_id:c[`connector-id`],event_t:c[`event-t`],event_n:c[`event-n`]})),{successLabel:`Loaded`})})};function u(e){return e.usage(`$0 connector-telemetry-events list
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-BsGrhAqB.mjs";import{r}from"./auth-BYFcxn1F.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-5nsUpQL6.mjs";import{t as s}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";function c(e){return e.usage(`$0 connector-telemetry-snapshots get <snapshot-t>
2
+ import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-CPVzoKbN.mjs";import{r}from"./auth-B_Utev-x.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-DS2fwfNP.mjs";import{t as s}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";function c(e){return e.usage(`$0 connector-telemetry-snapshots get <snapshot-t>
3
3
 
4
4
  Gets Magic WAN Connector Telemetry Snapshot`).positional(`snapshot-t`,{type:`string`,description:`Snapshot t`,demandOption:!0}).option(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get <snapshot-t>`,describe:`Get Snapshot`,builder:c,handler:async c=>s({command:`connector-telemetry-snapshots get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf connector-telemetry-snapshots get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/magic/connectors/${c[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(c[`connector-id`]))}/telemetry/snapshots/${c[`snapshot-t`]==null?`<snapshot-t>`:encodeURIComponent(String(c[`snapshot-t`]))}`,pathParams:{"connector-id":String(c[`connector-id`]??``),"snapshot-t":String(c[`snapshot-t`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.connectorTelemetrySnapshots.get({account_id:l,connector_id:c[`connector-id`],snapshot_t:c[`snapshot-t`]})),{successLabel:`Loaded`})})};function u(e){return e.usage(`$0 connector-telemetry-snapshots list
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-BsGrhAqB.mjs";import{r}from"./auth-BYFcxn1F.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-5nsUpQL6.mjs";import{t as s}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{n as d}from"./prompt-Ba_bys2F.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 connectors create
2
+ import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-CPVzoKbN.mjs";import{r}from"./auth-B_Utev-x.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-DS2fwfNP.mjs";import{t as s}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{n as d}from"./prompt-doX80PCd.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 connectors create
3
3
 
4
4
  Creates a Magic WAN Connector.`).option(`device-id`,{type:`string`,description:`The device.id field`}).option(`device-provision-license`,{type:`boolean`,description:`When true, create and provision a new licence key for the connector.`}).option(`device-serial-number`,{type:`string`,description:`The device.serial_number field`}).option(`activated`,{type:`boolean`,description:`The activated field`}).option(`interrupt-window-days-of-week`,{type:`string`,array:!0,description:`Allowed days of the week for upgrades. Default is all days.`}).option(`interrupt-window-duration-hours`,{type:`number`,description:`The interrupt_window_duration_hours field`}).option(`interrupt-window-embargo-dates`,{type:`string`,array:!0,description:`List of dates (YYYY-MM-DD) when upgrades are blocked.`}).option(`interrupt-window-hour-of-day`,{type:`number`,description:`The interrupt_window_hour_of_day field`}).option(`notes`,{type:`string`,description:`The notes field`}).option(`timezone`,{type:`string`,description:`The timezone field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const m={command:`create`,describe:`Create Connector`,builder:p,handler:async d=>s({command:`connectors create`,classification:{safeFlags:[`device-provision-license`,`activated`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf connectors create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/magic/connectors`,pathParams:{},bodyKind:`json`,body:d.body===void 0?l({device:{id:u(d[`device-id`],`device-id`,`text`),provision_license:d[`device-provision-license`],serial_number:u(d[`device-serial-number`],`device-serial-number`,`text`)},activated:d.activated,interrupt_window_days_of_week:d[`interrupt-window-days-of-week`],interrupt_window_duration_hours:d[`interrupt-window-duration-hours`],interrupt_window_embargo_dates:d[`interrupt-window-embargo-dates`],interrupt_window_hour_of_day:d[`interrupt-window-hour-of-day`],notes:u(d.notes,`notes`,`text`),timezone:u(d.timezone,`timezone`,`text`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await n();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Creating`,async()=>s.connectors.create({...e,account_id:f})),{successLabel:`Created`});return}let p=l({device:{id:u(d[`device-id`],`device-id`,`text`),provision_license:d[`device-provision-license`],serial_number:u(d[`device-serial-number`],`device-serial-number`,`text`)},activated:d.activated,interrupt_window_days_of_week:d[`interrupt-window-days-of-week`],interrupt_window_duration_hours:d[`interrupt-window-duration-hours`],interrupt_window_embargo_dates:d[`interrupt-window-embargo-dates`],interrupt_window_hour_of_day:d[`interrupt-window-hour-of-day`],notes:u(d.notes,`notes`,`text`),timezone:u(d.timezone,`timezone`,`text`)});i(await o(`Creating`,async()=>s.connectors.create({...p,account_id:f})),{successLabel:`Created`})})};function h(e){return e.usage(`$0 connectors delete <connector-id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{G as e}from"./dist-DfMipWKR.mjs";import{a as t}from"./banner-ClclgnBn.mjs";import{t as n}from"./local-B3OyWKkW.mjs";import{a as r,n as i,t as a}from"./context-BsGrhAqB.mjs";import{n as o}from"./request-headers-sc4CaZX0.mjs";import{i as s,r as c}from"./auth-BYFcxn1F.mjs";import{t as l}from"./output-CvQFJkvi.mjs";import{t as u}from"./dry-run-Bq0JAsbX.mjs";import{t as d}from"./progress-5nsUpQL6.mjs";import{n as f,t as p}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as m,r as h,t as g}from"./body-parser-hh2avzkz.mjs";import{n as _}from"./input-validation-Dk52b0me.mjs";import{a as v,i as y,n as b}from"./prompt-Ba_bys2F.mjs";import{t as x}from"./cli-types-DoVT5q_M.mjs";import{D as S,T as C,_ as w,d as T,f as E,g as D,l as ee,m as te,o as O,w as k,x as A,y as j}from"./dist-DTN-pqSs.mjs";function M(e){return e.positional(`path`,{type:`string`,demandOption:!0,description:`Directory containing the Dockerfile to build`}).option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Name and optional tag for the built image`}).option(`push`,{alias:`p`,type:`boolean`,default:!1,description:`Push the built image to Cloudflare's managed registry`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var N=f({command:`build <path>`,describe:`Build a Container image`,builder:M,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers build`.");let n={compliance_region:t.push?await i():`public`},r=t.push?await s():``,o=S(r);D({logger:o.logger,fetchResult:o.fetchResult,fetchPagedListResult:o.fetchPagedListResult}),t.push&&T(await a(),r,e(n)),await ee({PATH:t.path,tag:t.tag,push:t.push,pathToDocker:t[`path-to-docker`]},n)}},{command:`containers build`,classification:{safeFlags:[`push`],shortFlagAliases:{p:{canonical:`push`,type:`boolean`},t:{canonical:`tag`,type:`value`}}}});function P(e){return e.option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Tag of the local image to push`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var F=f({command:`push`,describe:`Push a local image to the Cloudflare managed registry`,builder:P,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers push`.");let n=await s(),r=await a(),o={compliance_region:await i()},c=S(n);D({logger:c.logger,fetchResult:c.fetchResult,fetchPagedListResult:c.fetchPagedListResult}),T(r,n,e(o)),await A({TAG:t.tag,pathToDocker:t[`path-to-docker`]},r,o)}},{command:`containers push`,classification:{safeFlags:[],shortFlagAliases:{t:{canonical:`tag`,type:`value`}}}});function I(e){return e.positional(`id`,{type:`string`,demandOption:!0,description:`ID of the container instance`}).positional(`ssh-command`,{type:`string`,array:!0,description:`Command and arguments to run in the container`}).options(E).middleware(e=>{k(e)&&(e.quiet=!0)},!0).parserConfiguration({"populate--":!0,"unknown-options-as-args":!0,"parse-positional-numbers":!1})}const L={command:`ssh <id> [ssh-command..]`,describe:`SSH into a container`,builder:I,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers ssh`.");let n=await s(),r=await a(),c={compliance_region:await i()},l=S(n);D({logger:l.logger,fetchResult:l.fetchResult}),O.HEADERS=o(),T(r,n,e(c)),await C({...t,id:t.id,command:[...t[`ssh-command`]??[],...Array.isArray(t[`--`])?t[`--`].map(String):[]]})}},R=f(L,{command:`containers ssh`,recordArgs:!1});var z={...R,handler:async e=>{if(k(e)){let{markCommandReported:t}=await import(`./telemetry-DbAo3nvk.mjs`);return t(),L.handler(e)}return R.handler(e)}};function B(e){return e.usage('$0 containers applications create\n\nCreate a Containers application. Use `scheduling_policy: "default"` for a scheduler-backed application. The Containers scheduler maintains the requested instance count and manages deployment configuration, placement, scaling, versions, and rollouts. Use `scheduling_policy: "durable_object"` for a Durable Object-managed application. Each Durable Object creates and manages the lifecycle of its container instance. Supply `name`, `scheduling_policy`, and `durable_objects`, with optional `configuration` and optional top-level `observability` settings. Deployment configuration, scaling, constraints, versions, and rollouts do not apply.').option(`configuration-command`,{type:`string`,array:!0,description:`The command that runs when the container starts, passed to the entrypoint.
2
+ import{G as e}from"./dist-DfMipWKR.mjs";import{a as t}from"./banner-ClclgnBn.mjs";import{t as n}from"./local-B3OyWKkW.mjs";import{a as r,n as i,t as a}from"./context-CPVzoKbN.mjs";import{n as o}from"./request-headers-DPbWytRv.mjs";import{i as s,r as c}from"./auth-B_Utev-x.mjs";import{t as l}from"./output-CvQFJkvi.mjs";import{t as u}from"./dry-run-Bq0JAsbX.mjs";import{t as d}from"./progress-DS2fwfNP.mjs";import{n as f,t as p}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as m,r as h,t as g}from"./body-parser-hh2avzkz.mjs";import{n as _}from"./input-validation-Dk52b0me.mjs";import{a as v,i as y,n as b}from"./prompt-doX80PCd.mjs";import{t as x}from"./cli-types-DoVT5q_M.mjs";import{D as S,T as C,_ as w,d as T,f as E,g as D,l as ee,m as te,o as O,w as k,x as A,y as j}from"./dist-COohnEBL.mjs";function M(e){return e.positional(`path`,{type:`string`,demandOption:!0,description:`Directory containing the Dockerfile to build`}).option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Name and optional tag for the built image`}).option(`push`,{alias:`p`,type:`boolean`,default:!1,description:`Push the built image to Cloudflare's managed registry`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var N=f({command:`build <path>`,describe:`Build a Container image`,builder:M,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers build`.");let n={compliance_region:t.push?await i():`public`},r=t.push?await s():``,o=S(r);D({logger:o.logger,fetchResult:o.fetchResult,fetchPagedListResult:o.fetchPagedListResult}),t.push&&T(await a(),r,e(n)),await ee({PATH:t.path,tag:t.tag,push:t.push,pathToDocker:t[`path-to-docker`]},n)}},{command:`containers build`,classification:{safeFlags:[`push`],shortFlagAliases:{p:{canonical:`push`,type:`boolean`},t:{canonical:`tag`,type:`value`}}}});function P(e){return e.option(`tag`,{alias:`t`,type:`string`,demandOption:!0,description:`Tag of the local image to push`}).option(`path-to-docker`,{type:`string`,description:`Path to the Docker binary if it is not on PATH`})}var F=f({command:`push`,describe:`Push a local image to the Cloudflare managed registry`,builder:P,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers push`.");let n=await s(),r=await a(),o={compliance_region:await i()},c=S(n);D({logger:c.logger,fetchResult:c.fetchResult,fetchPagedListResult:c.fetchPagedListResult}),T(r,n,e(o)),await A({TAG:t.tag,pathToDocker:t[`path-to-docker`]},r,o)}},{command:`containers push`,classification:{safeFlags:[],shortFlagAliases:{t:{canonical:`tag`,type:`value`}}}});function I(e){return e.positional(`id`,{type:`string`,demandOption:!0,description:`ID of the container instance`}).positional(`ssh-command`,{type:`string`,array:!0,description:`Command and arguments to run in the container`}).options(E).middleware(e=>{k(e)&&(e.quiet=!0)},!0).parserConfiguration({"populate--":!0,"unknown-options-as-args":!0,"parse-positional-numbers":!1})}const L={command:`ssh <id> [ssh-command..]`,describe:`SSH into a container`,builder:I,handler:async t=>{if(t.local)throw Error("--local is not supported with `cf containers ssh`.");let n=await s(),r=await a(),c={compliance_region:await i()},l=S(n);D({logger:l.logger,fetchResult:l.fetchResult}),O.HEADERS=o(),T(r,n,e(c)),await C({...t,id:t.id,command:[...t[`ssh-command`]??[],...Array.isArray(t[`--`])?t[`--`].map(String):[]]})}},R=f(L,{command:`containers ssh`,recordArgs:!1});var z={...R,handler:async e=>{if(k(e)){let{markCommandReported:t}=await import(`./telemetry-Qc-g_0fL.mjs`);return t(),L.handler(e)}return R.handler(e)}};function B(e){return e.usage('$0 containers applications create\n\nCreate a Containers application. Use `scheduling_policy: "default"` for a scheduler-backed application. The Containers scheduler maintains the requested instance count and manages deployment configuration, placement, scaling, versions, and rollouts. Use `scheduling_policy: "durable_object"` for a Durable Object-managed application. Each Durable Object creates and manages the lifecycle of its container instance. Supply `name`, `scheduling_policy`, and `durable_objects`, with optional `configuration` and optional top-level `observability` settings. Deployment configuration, scaling, constraints, versions, and rollouts do not apply.').option(`configuration-command`,{type:`string`,array:!0,description:`The command that runs when the container starts, passed to the entrypoint.
3
3
  You can override this at run-time. If you override only the command,
4
4
  it gets passed to the default entrypoint specified in the image.
5
5
  `}).option(`configuration-entrypoint`,{type:`string`,array:!0,description:`The entry point for the container, specifying the executable to run when the container starts.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e,n as t,t as n}from"./source-38bULAR8.mjs";import{i as r}from"./dotenv-CcQjGlV0.mjs";import{At as i,B as a,C as o,Ct as s,Et as c,F as l,H as u,J as d,Ot as f,P as p,S as m,St as h,T as g,Tt as _,U as v,W as y,X as b,Z as x,_t as S,at as C,b as w,bt as T,ct as E,dt as D,f as ee,ft as O,gt as te,ht as ne,k,kt as A,lt as j,mt as re,n as ie,nt as ae,o as oe,ot as se,p as ce,pt as le,r as ue,rt as de,st as fe,u as pe,ut as M,vt as me,x as he,y as ge,yt as _e,z as ve}from"./dist-DfMipWKR.mjs";import{a as ye,c as be,i as N,o as P,r as xe,s as Se,t as Ce}from"./chunk-M77HNR46-DPbhuhiy.mjs";import{A as we,C as Te,D as Ee,E as De,T as Oe,a as ke,b as Ae,c as je,d as Me,f as Ne,h as Pe,j as Fe,k as Ie,o as Le,p as Re,r as ze,w as Be,y as Ve}from"./interactive-C-o16XQs.mjs";import{C as He,E as Ue,S as We,a as Ge,b as Ke,g as qe,h as Je,i as Ye,n as Xe,p as Ze,r as Qe,s as $e,t as et,v as tt}from"./dist-DTN-pqSs.mjs";import{s as nt}from"./build-DEbkHHVh.mjs";import{createRequire as rt}from"node:module";import{setTimeout as it}from"node:timers/promises";import{createReadStream as at,mkdirSync as ot,readFileSync as st,writeFileSync as ct}from"node:fs";import*as lt from"node:path";import ut,{extname as dt,isAbsolute as ft,resolve as pt,sep as mt}from"node:path";import ht,{URLSearchParams as gt}from"node:url";import{access as _t,readFile as vt,readdir as yt,stat as bt,writeFile as xt}from"node:fs/promises";import F from"node:assert";import{isDeepStrictEqual as St}from"node:util";import{Blob as Ct}from"node:buffer";import{gzipSync as wt}from"node:zlib";import{createHash as Tt}from"node:crypto";import{execSync as Et}from"node:child_process";import{getFreshSourceMapSupport as Dt,getNodeCompat as Ot}from"miniflare";import kt from"node:readline";import{hash as At}from"blake3-wasm";import{convertToWranglerConfig as jt}from"@cloudflare/config";rt(import.meta.url||(typeof __filename==`string`?__filename:`/`));var I,L,Mt,Nt,Pt,Ft,It;function Lt(e){I=e.logger,L=e.fetchResult,Mt=e.fetchListResult,Nt=e.fetchPagedListResult,e.fetchKVGetValue,Pt=e.confirm,Ft=e.prompt,It=e.select}P(Lt,`initDeployHelpersContext`);var Rt=t(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)})),zt=a(),Bt=e(Rt(),1),Vt=class e extends Error{name=`TimeoutError`;constructor(t,n){super(t,n),Error.captureStackTrace?.(this,e)}};const Ht=e=>e.reason??new DOMException(`This operation was aborted.`,`AbortError`);function Ut(e,t){let{milliseconds:n,fallback:r,message:i,customTimers:a={setTimeout,clearTimeout},signal:o}=t,s,c,l=new Promise((t,l)=>{if(typeof n!=`number`||Math.sign(n)!==1)throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(o?.aborted){l(Ht(o));return}if(o&&(c=()=>{l(Ht(o))},o.addEventListener(`abort`,c,{once:!0})),e.then(t,l),n===1/0)return;let u=new Vt;s=a.setTimeout.call(void 0,()=>{if(r){try{t(r())}catch(e){l(e)}return}typeof e.cancel==`function`&&e.cancel(),i===!1?t():i instanceof Error?l(i):(u.message=i??`Promise timed out after ${n} milliseconds`,l(u))},n)}).finally(()=>{l.clear(),c&&o&&o.removeEventListener(`abort`,c)});return l.clear=()=>{a.clearTimeout.call(void 0,s),s=void 0},l}function Wt(e,t,n){let r=0,i=e.length;for(;i>0;){let a=Math.trunc(i/2),o=r+a;n(e[o],t)<=0?(r=++o,i-=a+1):i=a}return r}var Gt=class{#e=[];enqueue(e,t){let{priority:n=0,id:r}=t??{},i={priority:n,id:r,run:e};if(this.size===0||this.#e[this.size-1].priority>=n){this.#e.push(i);return}let a=Wt(this.#e,i,(e,t)=>t.priority-e.priority);this.#e.splice(a,0,i)}setPriority(e,t){let n=this.#e.findIndex(t=>t.id===e);if(n===-1)throw ReferenceError(`No promise function with the id "${e}" exists in the queue.`);let[r]=this.#e.splice(n,1);this.enqueue(r.run,{priority:t,id:e})}dequeue(){return this.#e.shift()?.run}filter(e){return this.#e.filter(t=>t.priority===e.priority).map(e=>e.run)}get size(){return this.#e.length}},Kt=class extends Bt.default{#e;#t;#n=0;#r;#i=!1;#a=!1;#o;#s=0;#c=0;#l;#u;#d;#f;#p=0;#m;#h;#g=1n;#_=new Map;timeout;constructor(e){if(super(),e={carryoverIntervalCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:Gt,...e},!(typeof e.intervalCap==`number`&&e.intervalCap>=1))throw TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${e.intervalCap?.toString()??``}\` (${typeof e.intervalCap})`);if(e.interval===void 0||!(Number.isFinite(e.interval)&&e.interval>=0))throw TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${e.interval?.toString()??``}\` (${typeof e.interval})`);if(this.#e=e.carryoverIntervalCount??e.carryoverConcurrencyCount??!1,this.#t=e.intervalCap===1/0||e.interval===0,this.#r=e.intervalCap,this.#o=e.interval,this.#d=new e.queueClass,this.#f=e.queueClass,this.concurrency=e.concurrency,e.timeout!==void 0&&!(Number.isFinite(e.timeout)&&e.timeout>0))throw TypeError(`Expected \`timeout\` to be a positive finite number, got \`${e.timeout}\` (${typeof e.timeout})`);this.timeout=e.timeout,this.#h=e.autoStart===!1,this.#M()}get#v(){return this.#t||this.#n<this.#r}get#y(){return this.#p<this.#m}#b(){this.#p--,this.#p===0&&this.emit(`pendingZero`),this.#E(),this.emit(`next`)}#x(){this.#O(),this.#D(),this.#u=void 0}get#S(){let e=Date.now();if(this.#l===void 0){let t=this.#s-e;if(t<0){if(this.#c>0){let t=e-this.#c;if(t<this.#o)return this.#C(this.#o-t),!0}this.#n=this.#e?this.#p:0}else return this.#C(t),!0}return!1}#C(e){this.#u===void 0&&(this.#u=setTimeout(()=>{this.#x()},e))}#w(){this.#l&&=(clearInterval(this.#l),void 0)}#T(){this.#u&&=(clearTimeout(this.#u),void 0)}#E(){if(this.#d.size===0)return this.#w(),this.emit(`empty`),this.#p===0&&(this.#T(),this.emit(`idle`)),!1;let e=!1;if(!this.#h){let t=!this.#S;if(this.#v&&this.#y){let n=this.#d.dequeue();this.#t||(this.#n++,this.#N()),this.emit(`active`),this.#c=Date.now(),n(),t&&this.#D(),e=!0}}return e}#D(){this.#t||this.#l!==void 0||(this.#l=setInterval(()=>{this.#O()},this.#o),this.#s=Date.now()+this.#o)}#O(){this.#n===0&&this.#p===0&&this.#l&&this.#w(),this.#n=this.#e?this.#p:0,this.#k(),this.#N()}#k(){for(;this.#E(););}get concurrency(){return this.#m}set concurrency(e){if(!(typeof e==`number`&&e>=1))throw TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this.#m=e,this.#k()}async#A(e){return new Promise((t,n)=>{e.addEventListener(`abort`,()=>{n(e.reason)},{once:!0})})}setPriority(e,t){if(typeof t!=`number`||!Number.isFinite(t))throw TypeError(`Expected \`priority\` to be a finite number, got \`${t}\` (${typeof t})`);this.#d.setPriority(e,t)}async add(e,t={}){return t.id??=(this.#g++).toString(),t={timeout:this.timeout,...t},new Promise((n,r)=>{let i=Symbol(`task-${t.id}`);this.#d.enqueue(async()=>{this.#p++,this.#_.set(i,{id:t.id,priority:t.priority??0,startTime:Date.now(),timeout:t.timeout});try{try{t.signal?.throwIfAborted()}catch(e){throw this.#t||this.#n--,this.#_.delete(i),e}let r=e({signal:t.signal});t.timeout&&(r=Ut(Promise.resolve(r),{milliseconds:t.timeout,message:`Task timed out after ${t.timeout}ms (queue has ${this.#p} running, ${this.#d.size} waiting)`})),t.signal&&(r=Promise.race([r,this.#A(t.signal)]));let a=await r;n(a),this.emit(`completed`,a)}catch(e){r(e),this.emit(`error`,e)}finally{this.#_.delete(i),queueMicrotask(()=>{this.#b()})}},t),this.emit(`add`),this.#E()})}async addAll(e,t){return Promise.all(e.map(async e=>this.add(e,t)))}start(){return this.#h?(this.#h=!1,this.#k(),this):this}pause(){this.#h=!0}clear(){this.#d=new this.#f,this.#P()}async onEmpty(){this.#d.size!==0&&await this.#j(`empty`)}async onSizeLessThan(e){this.#d.size<e||await this.#j(`next`,()=>this.#d.size<e)}async onIdle(){this.#p===0&&this.#d.size===0||await this.#j(`idle`)}async onPendingZero(){this.#p!==0&&await this.#j(`pendingZero`)}async onRateLimit(){this.isRateLimited||await this.#j(`rateLimit`)}async onRateLimitCleared(){this.isRateLimited&&await this.#j(`rateLimitCleared`)}async onError(){return new Promise((e,t)=>{let n=e=>{this.off(`error`,n),t(e)};this.on(`error`,n)})}async#j(e,t){return new Promise(n=>{let r=()=>{t&&!t()||(this.off(e,r),n())};this.on(e,r)})}get size(){return this.#d.size}sizeBy(e){return this.#d.filter(e).length}get pending(){return this.#p}get isPaused(){return this.#h}#M(){this.#t||(this.on(`add`,()=>{this.#d.size>0&&this.#N()}),this.on(`next`,()=>{this.#N()}))}#N(){this.#t||this.#a||(this.#a=!0,queueMicrotask(()=>{this.#a=!1,this.#P()}))}#P(){let e=this.#i,t=!this.#t&&this.#n>=this.#r&&this.#d.size>0;t!==e&&(this.#i=t,this.emit(t?`rateLimit`:`rateLimitCleared`))}get isRateLimited(){return this.#i}get isSaturated(){return this.#p===this.#m&&this.#d.size>0||this.isRateLimited&&this.#d.size>0}get runningTasks(){return[...this.#_.values()].map(e=>({...e}))}};const qt=[`B`,`kB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`],Jt=[`B`,`KiB`,`MiB`,`GiB`,`TiB`,`PiB`,`EiB`,`ZiB`,`YiB`],Yt=[`b`,`kbit`,`Mbit`,`Gbit`,`Tbit`,`Pbit`,`Ebit`,`Zbit`,`Ybit`],Xt=[`b`,`kibit`,`Mibit`,`Gibit`,`Tibit`,`Pibit`,`Eibit`,`Zibit`,`Yibit`],Zt=(e,t,n)=>{let r=e;return typeof t==`string`||Array.isArray(t)?r=e.toLocaleString(t,n):(t===!0||n!==void 0)&&(r=e.toLocaleString(void 0,n)),r};function Qt(e,t){if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};let n=t.bits?t.binary?Xt:Yt:t.binary?Jt:qt,r=t.space?` `:``;if(t.signed&&e===0)return` 0${r}${n[0]}`;let i=e<0,a=i?`-`:t.signed?`+`:``;i&&(e=-e);let o;if(t.minimumFractionDigits!==void 0&&(o={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(o={maximumFractionDigits:t.maximumFractionDigits,...o}),e<1)return a+Zt(e,t.locale,o)+r+n[0];let s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);e/=(t.binary?1024:1e3)**s,o||(e=e.toPrecision(3));let c=Zt(Number(e),t.locale,o),l=n[s];return a+c+r+l}var $t=r();rt(import.meta.url||(typeof __filename==`string`?__filename:`/`));var en=N({"../../node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js"(e,t){function n(e){return Array.isArray(e)?e:[e]}P(n,`makeArray`);var r=``,i=` `,a=`\\`,o=/^\s+$/,s=/(?:[^\\]|^)\\$/,c=/^\\!/,l=/^\\#/,u=/\r?\n/g,d=/^\.*\/|^\.+$/,f=`/`,p=`node-ignore`;typeof Symbol<`u`&&(p=Symbol.for(`node-ignore`));var m=p,h=P((e,t,n)=>Object.defineProperty(e,t,{value:n}),`define`),g=/([0-z])-([0-z])/g,_=P(()=>!1,`RETURN_FALSE`),v=P(e=>e.replace(g,(e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:r),`sanitizeRange`),y=P(e=>{let{length:t}=e;return e.slice(0,t-t%2)},`cleanRangeBackSlash`),b=[[/^\uFEFF/,()=>r],[/\\?\s+$/,e=>e.indexOf(`\\`)===0?i:r],[/\\\s/g,()=>i],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>`[^/]`],[/^\//,()=>`^`],[/\//g,()=>`\\/`],[/^\^*\\\*\\\*\\\//,()=>`^(?:.*\\/)?`],[/^(?=[^^])/,P(function(){return/\/(?!$)/.test(this)?`^`:`(?:^|\\/)`},`startingReplacer`)],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?`(?:\\/[^\\/]+)*`:`\\/.+`],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>t+n.replace(/\\\*/g,`[^\\/]*`)],[/\\\\\\(?=[$.|*+(){^])/g,()=>a],[/\\\\/g,()=>a],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,r,i)=>t===a?`\\[${n}${y(r)}${i}`:i===`]`&&r.length%2==0?`[${v(n)}${r}]`:`[]`],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:`[^/]*`}(?=$|\\/$)`]],x=Object.create(null),S=P((e,t)=>{let n=x[e];return n||(n=b.reduce((t,n)=>t.replace(n[0],n[1].bind(e)),e),x[e]=n),t?new RegExp(n,`i`):new RegExp(n)},`makeRegex`),C=P(e=>typeof e==`string`,`isString`),w=P(e=>e&&C(e)&&!o.test(e)&&!s.test(e)&&e.indexOf(`#`)!==0,`checkPattern`),T=P(e=>e.split(u),`splitPattern`),E=class{static{P(this,`IgnoreRule`)}constructor(e,t,n,r){this.origin=e,this.pattern=t,this.negative=n,this.regex=r}},D=P((e,t)=>{let n=e,r=!1;e.indexOf(`!`)===0&&(r=!0,e=e.substr(1)),e=e.replace(c,`!`).replace(l,`#`);let i=S(e,t);return new E(n,e,r,i)},`createRule`),ee=P((e,t)=>{throw new t(e)},`throwError`),O=P((e,t,n)=>C(e)?e?O.isNotRelative(e)?n(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:n(`path must not be empty`,TypeError):n(`path must be a string, but got \`${t}\``,TypeError),`checkPath`),te=P(e=>d.test(e),`isNotRelative`);O.isNotRelative=te,O.convert=e=>e;var ne=class{static{P(this,`Ignore`)}constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){h(this,m,!0),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[m]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(w(e)){let t=D(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(e){return this._added=!1,n(C(e)?T(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,r=!1;return this._rules.forEach(i=>{let{negative:a}=i;r===a&&n!==r||a&&!n&&!r&&!t||i.regex.test(e)&&(n=!a,r=a)}),{ignored:n,unignored:r}}_test(e,t,n,r){let i=e&&O.convert(e);return O(i,e,this._allowRelativePaths?_:ee),this._t(i,t,n,r)}_t(e,t,n,r){if(e in t)return t[e];if(r||=e.split(f),r.pop(),!r.length)return t[e]=this._testOne(e,n);let i=this._t(r.join(f)+f,t,n,r);return t[e]=i.ignored?i:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return n(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},k=P(e=>new ne(e),`factory`);if(k.isPathValid=P(e=>O(e&&O.convert(e),e,_),`isPathValid`),k.default=k,t.exports=k,typeof process<`u`&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform===`win32`)){O.convert=P(e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,`/`),`makePosix`);let e=/^[a-z]:\//i;O.isNotRelative=t=>e.test(t)||te(t)}}}),tn=N({"../../node_modules/.pnpm/heap@0.2.7/node_modules/heap/lib/heap.js"(e,t){(function(){var n,r,i=Math.floor,a,o,s,c,l,u,d=Math.min,f,p,m,h,g;r=P(function(e,t){return e<t?-1:+(e>t)},`defaultCmp`),u=P(function(e,t,n,a,o){var s;if(n??=0,o??=r,n<0)throw Error(`lo must be non-negative`);for(a??=e.length;n<a;)s=i((n+a)/2),o(t,e[s])<0?a=s:n=s+1;return[].splice.apply(e,[n,n-n].concat(t)),t},`insort`),s=P(function(e,t,n){return n??=r,e.push(t),h(e,0,e.length-1,n)},`heappush`),o=P(function(e,t){var n,i;return t??=r,n=e.pop(),e.length?(i=e[0],e[0]=n,g(e,0,t)):i=n,i},`heappop`),l=P(function(e,t,n){var i;return n??=r,i=e[0],e[0]=t,g(e,0,n),i},`heapreplace`),c=P(function(e,t,n){var i;return n??=r,e.length&&n(e[0],t)<0&&(i=[e[0],t],t=i[0],e[0]=i[1],g(e,0,n)),t},`heappushpop`),a=P(function(e,t){var n,a,o,s,c,l;for(t??=r,s=function(){l=[];for(var t=0,n=i(e.length/2);0<=n?t<n:t>n;0<=n?t++:t--)l.push(t);return l}.apply(this).reverse(),c=[],a=0,o=s.length;a<o;a++)n=s[a],c.push(g(e,n,t));return c},`heapify`),m=P(function(e,t,n){var i;if(n??=r,i=e.indexOf(t),i!==-1)return h(e,0,i,n),g(e,i,n)},`updateItem`),f=P(function(e,t,n){var i,o,s,l,u;if(n??=r,o=e.slice(0,t),!o.length)return o;for(a(o,n),u=e.slice(t),s=0,l=u.length;s<l;s++)i=u[s],c(o,i,n);return o.sort(n).reverse()},`nlargest`),p=P(function(e,t,n){var i,s,c,l,f,p,m,h,g;if(n??=r,t*10<=e.length){if(c=e.slice(0,t).sort(n),!c.length)return c;for(s=c[c.length-1],m=e.slice(t),l=0,p=m.length;l<p;l++)i=m[l],n(i,s)<0&&(u(c,i,0,null,n),c.pop(),s=c[c.length-1]);return c}for(a(e,n),g=[],f=0,h=d(t,e.length);0<=h?f<h:f>h;0<=h?++f:--f)g.push(o(e,n));return g},`nsmallest`),h=P(function(e,t,n,i){var a,o,s;for(i??=r,a=e[n];n>t;){if(s=n-1>>1,o=e[s],i(a,o)<0){e[n]=o,n=s;continue}break}return e[n]=a},`_siftdown`),g=P(function(e,t,n){var i,a,o,s,c;for(n??=r,a=e.length,c=t,o=e[t],i=2*t+1;i<a;)s=i+1,s<a&&!(n(e[i],e[s])<0)&&(i=s),e[t]=e[i],t=i,i=2*t+1;return e[t]=o,h(e,c,t,n)},`_siftup`),n=function(){e.push=s,e.pop=o,e.replace=l,e.pushpop=c,e.heapify=a,e.updateItem=m,e.nlargest=f,e.nsmallest=p;function e(e){this.cmp=e??r,this.nodes=[]}return P(e,`Heap`),e.prototype.push=function(e){return s(this.nodes,e,this.cmp)},e.prototype.pop=function(){return o(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return this.nodes.indexOf(e)!==-1},e.prototype.replace=function(e){return l(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return c(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return a(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return m(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return this.nodes.length===0},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t=new e;return t.nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),(function(n,r){return typeof define==`function`&&define.amd?define([],r):typeof e==`object`?t.exports=r():n.Heap=r()})(this,function(){return n})}).call(e)}}),nn=N({"../../node_modules/.pnpm/heap@0.2.7/node_modules/heap/index.js"(e,t){t.exports=tn()}}),rn=N({"../../node_modules/.pnpm/@ewoudenberg+difflib@0.1.0/node_modules/@ewoudenberg/difflib/lib/difflib.js"(e){(function(){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S=[].indexOf;({floor:h,max:_,min:v}=Math),n=nn(),p=Se(`assert`),c=P(function(e,t){return t?2*e/t:1},`_calculateRatio`),s=P(function(e,t){var n,r,i,a,o;for([i,a]=[e.length,t.length],n=r=0,o=v(i,a);0<=o?r<o:r>o;n=0<=o?++r:--r){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return i-a},`_arrayCmp`),f=P(function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},`_has`),o=P(function(e){var t,n,r;for(n=0,r=e.length;n<r;n++)if(t=e[n],t)return!0;return!1},`_any`),a=class{static{P(this,`SequenceMatcher`)}constructor(e,t=``,n=``,r=!0){this.isjunk=e,this.autojunk=r,this.a=this.b=null,this.setSeqs(t,n)}setSeqs(e,t){return this.setSeq1(e),this.setSeq2(t)}setSeq1(e){if(e!==this.a)return this.a=e,this.matchingBlocks=this.opcodes=null}setSeq2(e){if(e!==this.b)return this.b=e,this.matchingBlocks=this.opcodes=null,this.fullbcount=null,this._chainB()}_chainB(){var e=this.b,t,n,r,i,a,o,s,c,l,u,d;for(this.b2j=t=new Map,r=s=0,c=e.length;s<c;r=++s)n=e[r],t.has(n)||t.set(n,[]),i=t.get(n),i.push(r);return o=new Map,a=this.isjunk,a&&t.forEach(function(e,n){if(a(n))return o.set(n,!0),t.delete(n)}),d=new Map,l=e.length,this.autojunk&&l>=200&&(u=h(l/100)+1,t.forEach(function(e,n){if(e.length>u)return d.set(n,!0),t.delete(n)})),this.isbjunk=function(e){return o.has(e)},this.isbpopular=function(e){return d.has(e)}}findLongestMatch(e,t,n,r){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x;for([i,a,o,d]=[this.a,this.b,this.b2j,this.isbjunk],[s,c,l]=[e,n,0],p={},u=g=b=e,x=t;b<=x?g<x:g>x;u=b<=x?++g:--g){for(y={},m=[],o.has(i[u])&&(m=o.get(i[u])),v=0,_=m.length;v<_;v++)if(f=m[v],!(f<n)){if(f>=r)break;h=y[f]=(p[f-1]||0)+1,h>l&&([s,c,l]=[u-h+1,f-h+1,h])}p=y}for(;s>e&&c>n&&!d(a[c-1])&&i[s-1]===a[c-1];)[s,c,l]=[s-1,c-1,l+1];for(;s+l<t&&c+l<r&&!d(a[c+l])&&i[s+l]===a[c+l];)l++;for(;s>e&&c>n&&d(a[c-1])&&i[s-1]===a[c-1];)[s,c,l]=[s-1,c-1,l+1];for(;s+l<t&&c+l<r&&d(a[c+l])&&i[s+l]===a[c+l];)l++;return[s,c,l]}getMatchingBlocks(){var e,t,n,r,i,a,o,c,l,u,d,f,p,m,h,g,_,v,y,b,x;if(this.matchingBlocks)return this.matchingBlocks;for([h,g]=[this.a.length,this.b.length],b=[[0,h,0,g]],v=[];b.length;)[t,e,r,n]=b.pop(),[i,c,d]=x=this.findLongestMatch(t,e,r,n),d&&(v.push(x),t<i&&r<c&&b.push([t,i,r,c]),i+d<e&&c+d<n&&b.push([i+d,e,c+d,n]));for(v.sort(s),a=l=f=0,y=[],m=0,_=v.length;m<_;m++)[o,u,p]=v[m],a+f===o&&l+f===u?f+=p:(f&&y.push([a,l,f]),[a,l,f]=[o,u,p]);return f&&y.push([a,l,f]),y.push([h,g,0]),this.matchingBlocks=y}getOpcodes(){var e,t,n,r,i,a,o,s,c,l;if(this.opcodes)return this.opcodes;for(r=i=0,this.opcodes=t=[],s=this.getMatchingBlocks(),a=0,o=s.length;a<o;a++)[e,n,c]=s[a],l=``,r<e&&i<n?l=`replace`:r<e?l=`delete`:i<n&&(l=`insert`),l&&t.push([l,r,e,i,n]),[r,i]=[e+c,n+c],c&&t.push([`equal`,e,r,n,i]);return t}getGroupedOpcodes(e=3){var t=this.getOpcodes(),n,r,i,a,o,s,c,l,u,d;for(t.length||(t=[[`equal`,0,1,0,1]]),t[0][0]===`equal`&&([d,i,a,o,s]=t[0],t[0]=[d,_(i,a-e),a,_(o,s-e),s]),t[t.length-1][0]===`equal`&&([d,i,a,o,s]=t[t.length-1],t[t.length-1]=[d,i,v(a,i+e),o,v(s,o+e)]),u=e+e,r=[],n=[],c=0,l=t.length;c<l;c++)[d,i,a,o,s]=t[c],d===`equal`&&a-i>u&&(n.push([d,i,v(a,i+e),o,v(s,o+e)]),r.push(n),n=[],[i,o]=[_(i,a-e),_(o,s-e)]),n.push([d,i,a,o,s]);return n.length&&!(n.length===1&&n[0][0]===`equal`)&&r.push(n),r}ratio(){var e,t,n,r=0,i=this.getMatchingBlocks();for(e=0,t=i.length;e<t;e++)n=i[e],r+=n[2];return c(r,this.a.length+this.b.length)}quickRatio(){var e,t,n,r,i,a,o,s,l,u,d;if(!this.fullbcount)for(this.fullbcount=n={},u=this.b,r=0,i=u.length;r<i;r++)t=u[r],n[t]=(n[t]||0)+1;for(n=this.fullbcount,e={},s=0,d=this.a,o=0,a=d.length;o<a;o++)t=d[o],l=f(e,t)?e[t]:n[t]||0,e[t]=l-1,l>0&&s++;return c(s,this.a.length+this.b.length)}realQuickRatio(){var e,t;return[e,t]=[this.a.length,this.b.length],c(v(e,t),e+t)}},g=P(function(e,t,r=3,i=.6){var o,c,l,u,d,f,p,m,h;if(!(r>0))throw Error(`n must be > 0: (${r})`);if(!(0<=i&&i<=1))throw Error(`cutoff must be in [0.0, 1.0]: (${i})`);for(d=[],p=new a,p.setSeq2(e),o=0,c=t.length;o<c;o++)h=t[o],p.setSeq1(h),p.realQuickRatio()>=i&&p.quickRatio()>=i&&p.ratio()>=i&&d.push([p.ratio(),h]);for(d=n.nlargest(d,r,s),f=[],u=0,l=d.length;u<l;u++)[m,h]=d[u],f.push(h);return f},`getCloseMatches`),l=P(function(e,t){var n,r;for([n,r]=[0,e.length];n<r&&e[n]===t;)n++;return n},`_countLeading`),t=class{static{P(this,`Differ`)}constructor(e,t){this.linejunk=e,this.charjunk=t}compare(e,t){var n,r,i,o,s=new a(this.linejunk,e,t),c,l,u,d,f,p=[],m,h=s.getOpcodes(),g;for(l=0,u=h.length;l<u;l++){switch([g,r,n,o,i]=h[l],g){case`replace`:c=this._fancyReplace(e,r,n,t,o,i);break;case`delete`:c=this._dump(`-`,e,r,n);break;case`insert`:c=this._dump(`+`,t,o,i);break;case`equal`:c=this._dump(` `,e,r,n);break;default:throw Error(`unknow tag (${g})`)}for(m=0,d=c.length;m<d;m++)f=c[m],p.push(f)}return p}_dump(e,t,n,r){var i,a,o,s,c=[];for(i=a=o=n,s=r;o<=s?a<s:a>s;i=o<=s?++a:--a)c.push(`${e} ${t[i]}`);return c}_plainReplace(e,t,n,r,i,a){var o,s,c,l,u,d,f,m,h,g;for(p(t<n&&i<a),a-i<n-t?(o=this._dump(`+`,r,i,a),g=this._dump(`-`,e,t,n)):(o=this._dump(`-`,e,t,n),g=this._dump(`+`,r,i,a)),f=[],h=[o,g],c=0,l=h.length;c<l;c++)for(s=h[c],m=0,u=s.length;m<u;m++)d=s[m],f.push(d);return f}_fancyReplace(e,t,n,r,i,o){var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,ee,O,te,ne,k,A,j,re,ie,ae,oe,se,ce,le,ue,de,fe,pe,M,me,he,ge,_e,ve;for([p,x]=[.74,.75],b=new a(this.charjunk),[S,C]=[null,null],re=[],T=E=le=i,ue=o;le<=ue?E<ue:E>ue;T=le<=ue?++E:--E)for(g=r[T],b.setSeq2(g),w=ie=de=t,fe=n;de<=fe?ie<fe:ie>fe;w=de<=fe?++ie:--ie){if(c=e[w],c===g){S===null&&([S,C]=[w,T]);continue}b.setSeq1(c),b.realQuickRatio()>p&&b.quickRatio()>p&&b.ratio()>p&&([p,m,h]=[b.ratio(),w,T])}if(p<x){if(S===null){for(pe=this._plainReplace(e,t,n,r,i,o),ae=0,O=pe.length;ae<O;ae++)j=pe[ae],re.push(j);return re}[m,h,p]=[S,C,1]}else S=null;for(M=this._fancyHelper(e,t,m,r,i,h),oe=0,te=M.length;oe<te;oe++)j=M[oe],re.push(j);if([s,f]=[e[m],r[h]],S===null){for(d=y=``,b.setSeqs(s,f),me=b.getOpcodes(),se=0,ne=me.length;se<ne;se++)switch([ve,l,u,_,v]=me[se],[D,ee]=[u-l,v-_],ve){case`replace`:d+=Array(D+1).join(`^`),y+=Array(ee+1).join(`^`);break;case`delete`:d+=Array(D+1).join(`-`);break;case`insert`:y+=Array(ee+1).join(`+`);break;case`equal`:d+=Array(D+1).join(` `),y+=Array(ee+1).join(` `);break;default:throw Error(`unknow tag (${ve})`)}for(he=this._qformat(s,f,d,y),ce=0,k=he.length;ce<k;ce++)j=he[ce],re.push(j)}else re.push(` `+s);for(ge=this._fancyHelper(e,m+1,n,r,h+1,o),_e=0,A=ge.length;_e<A;_e++)j=ge[_e],re.push(j);return re}_fancyHelper(e,t,n,r,i,a){var o=[];return t<n?o=i<a?this._fancyReplace(e,t,n,r,i,a):this._dump(`-`,e,t,n):i<a&&(o=this._dump(`+`,r,i,a)),o}_qformat(e,t,n,r){var i,a=[];return i=v(l(e,` `),l(t,` `)),i=v(i,l(n.slice(0,i),` `)),i=v(i,l(r.slice(0,i),` `)),n=n.slice(i).replace(/\s+$/,``),r=r.slice(i).replace(/\s+$/,``),a.push(`- `+e),n.length&&a.push(`? ${Array(i+1).join(` `)}${n}
2
+ import{i as e,n as t,t as n}from"./source-38bULAR8.mjs";import{i as r}from"./dotenv-CcQjGlV0.mjs";import{At as i,B as a,C as o,Ct as s,Et as c,F as l,H as u,J as d,Ot as f,P as p,S as m,St as h,T as g,Tt as _,U as v,W as y,X as b,Z as x,_t as S,at as C,b as w,bt as T,ct as E,dt as D,f as ee,ft as O,gt as te,ht as ne,k,kt as A,lt as j,mt as re,n as ie,nt as ae,o as oe,ot as se,p as ce,pt as le,r as ue,rt as de,st as fe,u as pe,ut as M,vt as me,x as he,y as ge,yt as _e,z as ve}from"./dist-DfMipWKR.mjs";import{a as ye,c as be,i as N,o as P,r as xe,s as Se,t as Ce}from"./chunk-M77HNR46-DPbhuhiy.mjs";import{A as we,C as Te,D as Ee,E as De,T as Oe,a as ke,b as Ae,c as je,d as Me,f as Ne,h as Pe,j as Fe,k as Ie,o as Le,p as Re,r as ze,w as Be,y as Ve}from"./interactive-C-o16XQs.mjs";import{C as He,E as Ue,S as We,a as Ge,b as Ke,g as qe,h as Je,i as Ye,n as Xe,p as Ze,r as Qe,s as $e,t as et,v as tt}from"./dist-COohnEBL.mjs";import{s as nt}from"./build-VUz0URCV.mjs";import{createRequire as rt}from"node:module";import{setTimeout as it}from"node:timers/promises";import{createReadStream as at,mkdirSync as ot,readFileSync as st,writeFileSync as ct}from"node:fs";import*as lt from"node:path";import ut,{extname as dt,isAbsolute as ft,resolve as pt,sep as mt}from"node:path";import ht,{URLSearchParams as gt}from"node:url";import{access as _t,readFile as vt,readdir as yt,stat as bt,writeFile as xt}from"node:fs/promises";import F from"node:assert";import{isDeepStrictEqual as St}from"node:util";import{Blob as Ct}from"node:buffer";import{gzipSync as wt}from"node:zlib";import{createHash as Tt}from"node:crypto";import{execSync as Et}from"node:child_process";import{getFreshSourceMapSupport as Dt,getNodeCompat as Ot}from"miniflare";import kt from"node:readline";import{hash as At}from"blake3-wasm";import{convertToWranglerConfig as jt}from"@cloudflare/config";rt(import.meta.url||(typeof __filename==`string`?__filename:`/`));var I,L,Mt,Nt,Pt,Ft,It;function Lt(e){I=e.logger,L=e.fetchResult,Mt=e.fetchListResult,Nt=e.fetchPagedListResult,e.fetchKVGetValue,Pt=e.confirm,Ft=e.prompt,It=e.select}P(Lt,`initDeployHelpersContext`);var Rt=t(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)})),zt=a(),Bt=e(Rt(),1),Vt=class e extends Error{name=`TimeoutError`;constructor(t,n){super(t,n),Error.captureStackTrace?.(this,e)}};const Ht=e=>e.reason??new DOMException(`This operation was aborted.`,`AbortError`);function Ut(e,t){let{milliseconds:n,fallback:r,message:i,customTimers:a={setTimeout,clearTimeout},signal:o}=t,s,c,l=new Promise((t,l)=>{if(typeof n!=`number`||Math.sign(n)!==1)throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(o?.aborted){l(Ht(o));return}if(o&&(c=()=>{l(Ht(o))},o.addEventListener(`abort`,c,{once:!0})),e.then(t,l),n===1/0)return;let u=new Vt;s=a.setTimeout.call(void 0,()=>{if(r){try{t(r())}catch(e){l(e)}return}typeof e.cancel==`function`&&e.cancel(),i===!1?t():i instanceof Error?l(i):(u.message=i??`Promise timed out after ${n} milliseconds`,l(u))},n)}).finally(()=>{l.clear(),c&&o&&o.removeEventListener(`abort`,c)});return l.clear=()=>{a.clearTimeout.call(void 0,s),s=void 0},l}function Wt(e,t,n){let r=0,i=e.length;for(;i>0;){let a=Math.trunc(i/2),o=r+a;n(e[o],t)<=0?(r=++o,i-=a+1):i=a}return r}var Gt=class{#e=[];enqueue(e,t){let{priority:n=0,id:r}=t??{},i={priority:n,id:r,run:e};if(this.size===0||this.#e[this.size-1].priority>=n){this.#e.push(i);return}let a=Wt(this.#e,i,(e,t)=>t.priority-e.priority);this.#e.splice(a,0,i)}setPriority(e,t){let n=this.#e.findIndex(t=>t.id===e);if(n===-1)throw ReferenceError(`No promise function with the id "${e}" exists in the queue.`);let[r]=this.#e.splice(n,1);this.enqueue(r.run,{priority:t,id:e})}dequeue(){return this.#e.shift()?.run}filter(e){return this.#e.filter(t=>t.priority===e.priority).map(e=>e.run)}get size(){return this.#e.length}},Kt=class extends Bt.default{#e;#t;#n=0;#r;#i=!1;#a=!1;#o;#s=0;#c=0;#l;#u;#d;#f;#p=0;#m;#h;#g=1n;#_=new Map;timeout;constructor(e){if(super(),e={carryoverIntervalCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:Gt,...e},!(typeof e.intervalCap==`number`&&e.intervalCap>=1))throw TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${e.intervalCap?.toString()??``}\` (${typeof e.intervalCap})`);if(e.interval===void 0||!(Number.isFinite(e.interval)&&e.interval>=0))throw TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${e.interval?.toString()??``}\` (${typeof e.interval})`);if(this.#e=e.carryoverIntervalCount??e.carryoverConcurrencyCount??!1,this.#t=e.intervalCap===1/0||e.interval===0,this.#r=e.intervalCap,this.#o=e.interval,this.#d=new e.queueClass,this.#f=e.queueClass,this.concurrency=e.concurrency,e.timeout!==void 0&&!(Number.isFinite(e.timeout)&&e.timeout>0))throw TypeError(`Expected \`timeout\` to be a positive finite number, got \`${e.timeout}\` (${typeof e.timeout})`);this.timeout=e.timeout,this.#h=e.autoStart===!1,this.#M()}get#v(){return this.#t||this.#n<this.#r}get#y(){return this.#p<this.#m}#b(){this.#p--,this.#p===0&&this.emit(`pendingZero`),this.#E(),this.emit(`next`)}#x(){this.#O(),this.#D(),this.#u=void 0}get#S(){let e=Date.now();if(this.#l===void 0){let t=this.#s-e;if(t<0){if(this.#c>0){let t=e-this.#c;if(t<this.#o)return this.#C(this.#o-t),!0}this.#n=this.#e?this.#p:0}else return this.#C(t),!0}return!1}#C(e){this.#u===void 0&&(this.#u=setTimeout(()=>{this.#x()},e))}#w(){this.#l&&=(clearInterval(this.#l),void 0)}#T(){this.#u&&=(clearTimeout(this.#u),void 0)}#E(){if(this.#d.size===0)return this.#w(),this.emit(`empty`),this.#p===0&&(this.#T(),this.emit(`idle`)),!1;let e=!1;if(!this.#h){let t=!this.#S;if(this.#v&&this.#y){let n=this.#d.dequeue();this.#t||(this.#n++,this.#N()),this.emit(`active`),this.#c=Date.now(),n(),t&&this.#D(),e=!0}}return e}#D(){this.#t||this.#l!==void 0||(this.#l=setInterval(()=>{this.#O()},this.#o),this.#s=Date.now()+this.#o)}#O(){this.#n===0&&this.#p===0&&this.#l&&this.#w(),this.#n=this.#e?this.#p:0,this.#k(),this.#N()}#k(){for(;this.#E(););}get concurrency(){return this.#m}set concurrency(e){if(!(typeof e==`number`&&e>=1))throw TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this.#m=e,this.#k()}async#A(e){return new Promise((t,n)=>{e.addEventListener(`abort`,()=>{n(e.reason)},{once:!0})})}setPriority(e,t){if(typeof t!=`number`||!Number.isFinite(t))throw TypeError(`Expected \`priority\` to be a finite number, got \`${t}\` (${typeof t})`);this.#d.setPriority(e,t)}async add(e,t={}){return t.id??=(this.#g++).toString(),t={timeout:this.timeout,...t},new Promise((n,r)=>{let i=Symbol(`task-${t.id}`);this.#d.enqueue(async()=>{this.#p++,this.#_.set(i,{id:t.id,priority:t.priority??0,startTime:Date.now(),timeout:t.timeout});try{try{t.signal?.throwIfAborted()}catch(e){throw this.#t||this.#n--,this.#_.delete(i),e}let r=e({signal:t.signal});t.timeout&&(r=Ut(Promise.resolve(r),{milliseconds:t.timeout,message:`Task timed out after ${t.timeout}ms (queue has ${this.#p} running, ${this.#d.size} waiting)`})),t.signal&&(r=Promise.race([r,this.#A(t.signal)]));let a=await r;n(a),this.emit(`completed`,a)}catch(e){r(e),this.emit(`error`,e)}finally{this.#_.delete(i),queueMicrotask(()=>{this.#b()})}},t),this.emit(`add`),this.#E()})}async addAll(e,t){return Promise.all(e.map(async e=>this.add(e,t)))}start(){return this.#h?(this.#h=!1,this.#k(),this):this}pause(){this.#h=!0}clear(){this.#d=new this.#f,this.#P()}async onEmpty(){this.#d.size!==0&&await this.#j(`empty`)}async onSizeLessThan(e){this.#d.size<e||await this.#j(`next`,()=>this.#d.size<e)}async onIdle(){this.#p===0&&this.#d.size===0||await this.#j(`idle`)}async onPendingZero(){this.#p!==0&&await this.#j(`pendingZero`)}async onRateLimit(){this.isRateLimited||await this.#j(`rateLimit`)}async onRateLimitCleared(){this.isRateLimited&&await this.#j(`rateLimitCleared`)}async onError(){return new Promise((e,t)=>{let n=e=>{this.off(`error`,n),t(e)};this.on(`error`,n)})}async#j(e,t){return new Promise(n=>{let r=()=>{t&&!t()||(this.off(e,r),n())};this.on(e,r)})}get size(){return this.#d.size}sizeBy(e){return this.#d.filter(e).length}get pending(){return this.#p}get isPaused(){return this.#h}#M(){this.#t||(this.on(`add`,()=>{this.#d.size>0&&this.#N()}),this.on(`next`,()=>{this.#N()}))}#N(){this.#t||this.#a||(this.#a=!0,queueMicrotask(()=>{this.#a=!1,this.#P()}))}#P(){let e=this.#i,t=!this.#t&&this.#n>=this.#r&&this.#d.size>0;t!==e&&(this.#i=t,this.emit(t?`rateLimit`:`rateLimitCleared`))}get isRateLimited(){return this.#i}get isSaturated(){return this.#p===this.#m&&this.#d.size>0||this.isRateLimited&&this.#d.size>0}get runningTasks(){return[...this.#_.values()].map(e=>({...e}))}};const qt=[`B`,`kB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`],Jt=[`B`,`KiB`,`MiB`,`GiB`,`TiB`,`PiB`,`EiB`,`ZiB`,`YiB`],Yt=[`b`,`kbit`,`Mbit`,`Gbit`,`Tbit`,`Pbit`,`Ebit`,`Zbit`,`Ybit`],Xt=[`b`,`kibit`,`Mibit`,`Gibit`,`Tibit`,`Pibit`,`Eibit`,`Zibit`,`Yibit`],Zt=(e,t,n)=>{let r=e;return typeof t==`string`||Array.isArray(t)?r=e.toLocaleString(t,n):(t===!0||n!==void 0)&&(r=e.toLocaleString(void 0,n)),r};function Qt(e,t){if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};let n=t.bits?t.binary?Xt:Yt:t.binary?Jt:qt,r=t.space?` `:``;if(t.signed&&e===0)return` 0${r}${n[0]}`;let i=e<0,a=i?`-`:t.signed?`+`:``;i&&(e=-e);let o;if(t.minimumFractionDigits!==void 0&&(o={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(o={maximumFractionDigits:t.maximumFractionDigits,...o}),e<1)return a+Zt(e,t.locale,o)+r+n[0];let s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);e/=(t.binary?1024:1e3)**s,o||(e=e.toPrecision(3));let c=Zt(Number(e),t.locale,o),l=n[s];return a+c+r+l}var $t=r();rt(import.meta.url||(typeof __filename==`string`?__filename:`/`));var en=N({"../../node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js"(e,t){function n(e){return Array.isArray(e)?e:[e]}P(n,`makeArray`);var r=``,i=` `,a=`\\`,o=/^\s+$/,s=/(?:[^\\]|^)\\$/,c=/^\\!/,l=/^\\#/,u=/\r?\n/g,d=/^\.*\/|^\.+$/,f=`/`,p=`node-ignore`;typeof Symbol<`u`&&(p=Symbol.for(`node-ignore`));var m=p,h=P((e,t,n)=>Object.defineProperty(e,t,{value:n}),`define`),g=/([0-z])-([0-z])/g,_=P(()=>!1,`RETURN_FALSE`),v=P(e=>e.replace(g,(e,t,n)=>t.charCodeAt(0)<=n.charCodeAt(0)?e:r),`sanitizeRange`),y=P(e=>{let{length:t}=e;return e.slice(0,t-t%2)},`cleanRangeBackSlash`),b=[[/^\uFEFF/,()=>r],[/\\?\s+$/,e=>e.indexOf(`\\`)===0?i:r],[/\\\s/g,()=>i],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>`[^/]`],[/^\//,()=>`^`],[/\//g,()=>`\\/`],[/^\^*\\\*\\\*\\\//,()=>`^(?:.*\\/)?`],[/^(?=[^^])/,P(function(){return/\/(?!$)/.test(this)?`^`:`(?:^|\\/)`},`startingReplacer`)],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,n)=>t+6<n.length?`(?:\\/[^\\/]+)*`:`\\/.+`],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,n)=>t+n.replace(/\\\*/g,`[^\\/]*`)],[/\\\\\\(?=[$.|*+(){^])/g,()=>a],[/\\\\/g,()=>a],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,n,r,i)=>t===a?`\\[${n}${y(r)}${i}`:i===`]`&&r.length%2==0?`[${v(n)}${r}]`:`[]`],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:`[^/]*`}(?=$|\\/$)`]],x=Object.create(null),S=P((e,t)=>{let n=x[e];return n||(n=b.reduce((t,n)=>t.replace(n[0],n[1].bind(e)),e),x[e]=n),t?new RegExp(n,`i`):new RegExp(n)},`makeRegex`),C=P(e=>typeof e==`string`,`isString`),w=P(e=>e&&C(e)&&!o.test(e)&&!s.test(e)&&e.indexOf(`#`)!==0,`checkPattern`),T=P(e=>e.split(u),`splitPattern`),E=class{static{P(this,`IgnoreRule`)}constructor(e,t,n,r){this.origin=e,this.pattern=t,this.negative=n,this.regex=r}},D=P((e,t)=>{let n=e,r=!1;e.indexOf(`!`)===0&&(r=!0,e=e.substr(1)),e=e.replace(c,`!`).replace(l,`#`);let i=S(e,t);return new E(n,e,r,i)},`createRule`),ee=P((e,t)=>{throw new t(e)},`throwError`),O=P((e,t,n)=>C(e)?e?O.isNotRelative(e)?n(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:n(`path must not be empty`,TypeError):n(`path must be a string, but got \`${t}\``,TypeError),`checkPath`),te=P(e=>d.test(e),`isNotRelative`);O.isNotRelative=te,O.convert=e=>e;var ne=class{static{P(this,`Ignore`)}constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:n=!1}={}){h(this,m,!0),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[m]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(w(e)){let t=D(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(e){return this._added=!1,n(C(e)?T(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,t){let n=!1,r=!1;return this._rules.forEach(i=>{let{negative:a}=i;r===a&&n!==r||a&&!n&&!r&&!t||i.regex.test(e)&&(n=!a,r=a)}),{ignored:n,unignored:r}}_test(e,t,n,r){let i=e&&O.convert(e);return O(i,e,this._allowRelativePaths?_:ee),this._t(i,t,n,r)}_t(e,t,n,r){if(e in t)return t[e];if(r||=e.split(f),r.pop(),!r.length)return t[e]=this._testOne(e,n);let i=this._t(r.join(f)+f,t,n,r);return t[e]=i.ignored?i:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return n(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},k=P(e=>new ne(e),`factory`);if(k.isPathValid=P(e=>O(e&&O.convert(e),e,_),`isPathValid`),k.default=k,t.exports=k,typeof process<`u`&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform===`win32`)){O.convert=P(e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,`/`),`makePosix`);let e=/^[a-z]:\//i;O.isNotRelative=t=>e.test(t)||te(t)}}}),tn=N({"../../node_modules/.pnpm/heap@0.2.7/node_modules/heap/lib/heap.js"(e,t){(function(){var n,r,i=Math.floor,a,o,s,c,l,u,d=Math.min,f,p,m,h,g;r=P(function(e,t){return e<t?-1:+(e>t)},`defaultCmp`),u=P(function(e,t,n,a,o){var s;if(n??=0,o??=r,n<0)throw Error(`lo must be non-negative`);for(a??=e.length;n<a;)s=i((n+a)/2),o(t,e[s])<0?a=s:n=s+1;return[].splice.apply(e,[n,n-n].concat(t)),t},`insort`),s=P(function(e,t,n){return n??=r,e.push(t),h(e,0,e.length-1,n)},`heappush`),o=P(function(e,t){var n,i;return t??=r,n=e.pop(),e.length?(i=e[0],e[0]=n,g(e,0,t)):i=n,i},`heappop`),l=P(function(e,t,n){var i;return n??=r,i=e[0],e[0]=t,g(e,0,n),i},`heapreplace`),c=P(function(e,t,n){var i;return n??=r,e.length&&n(e[0],t)<0&&(i=[e[0],t],t=i[0],e[0]=i[1],g(e,0,n)),t},`heappushpop`),a=P(function(e,t){var n,a,o,s,c,l;for(t??=r,s=function(){l=[];for(var t=0,n=i(e.length/2);0<=n?t<n:t>n;0<=n?t++:t--)l.push(t);return l}.apply(this).reverse(),c=[],a=0,o=s.length;a<o;a++)n=s[a],c.push(g(e,n,t));return c},`heapify`),m=P(function(e,t,n){var i;if(n??=r,i=e.indexOf(t),i!==-1)return h(e,0,i,n),g(e,i,n)},`updateItem`),f=P(function(e,t,n){var i,o,s,l,u;if(n??=r,o=e.slice(0,t),!o.length)return o;for(a(o,n),u=e.slice(t),s=0,l=u.length;s<l;s++)i=u[s],c(o,i,n);return o.sort(n).reverse()},`nlargest`),p=P(function(e,t,n){var i,s,c,l,f,p,m,h,g;if(n??=r,t*10<=e.length){if(c=e.slice(0,t).sort(n),!c.length)return c;for(s=c[c.length-1],m=e.slice(t),l=0,p=m.length;l<p;l++)i=m[l],n(i,s)<0&&(u(c,i,0,null,n),c.pop(),s=c[c.length-1]);return c}for(a(e,n),g=[],f=0,h=d(t,e.length);0<=h?f<h:f>h;0<=h?++f:--f)g.push(o(e,n));return g},`nsmallest`),h=P(function(e,t,n,i){var a,o,s;for(i??=r,a=e[n];n>t;){if(s=n-1>>1,o=e[s],i(a,o)<0){e[n]=o,n=s;continue}break}return e[n]=a},`_siftdown`),g=P(function(e,t,n){var i,a,o,s,c;for(n??=r,a=e.length,c=t,o=e[t],i=2*t+1;i<a;)s=i+1,s<a&&!(n(e[i],e[s])<0)&&(i=s),e[t]=e[i],t=i,i=2*t+1;return e[t]=o,h(e,c,t,n)},`_siftup`),n=function(){e.push=s,e.pop=o,e.replace=l,e.pushpop=c,e.heapify=a,e.updateItem=m,e.nlargest=f,e.nsmallest=p;function e(e){this.cmp=e??r,this.nodes=[]}return P(e,`Heap`),e.prototype.push=function(e){return s(this.nodes,e,this.cmp)},e.prototype.pop=function(){return o(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return this.nodes.indexOf(e)!==-1},e.prototype.replace=function(e){return l(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return c(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return a(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return m(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return this.nodes.length===0},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t=new e;return t.nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),(function(n,r){return typeof define==`function`&&define.amd?define([],r):typeof e==`object`?t.exports=r():n.Heap=r()})(this,function(){return n})}).call(e)}}),nn=N({"../../node_modules/.pnpm/heap@0.2.7/node_modules/heap/index.js"(e,t){t.exports=tn()}}),rn=N({"../../node_modules/.pnpm/@ewoudenberg+difflib@0.1.0/node_modules/@ewoudenberg/difflib/lib/difflib.js"(e){(function(){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S=[].indexOf;({floor:h,max:_,min:v}=Math),n=nn(),p=Se(`assert`),c=P(function(e,t){return t?2*e/t:1},`_calculateRatio`),s=P(function(e,t){var n,r,i,a,o;for([i,a]=[e.length,t.length],n=r=0,o=v(i,a);0<=o?r<o:r>o;n=0<=o?++r:--r){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return i-a},`_arrayCmp`),f=P(function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},`_has`),o=P(function(e){var t,n,r;for(n=0,r=e.length;n<r;n++)if(t=e[n],t)return!0;return!1},`_any`),a=class{static{P(this,`SequenceMatcher`)}constructor(e,t=``,n=``,r=!0){this.isjunk=e,this.autojunk=r,this.a=this.b=null,this.setSeqs(t,n)}setSeqs(e,t){return this.setSeq1(e),this.setSeq2(t)}setSeq1(e){if(e!==this.a)return this.a=e,this.matchingBlocks=this.opcodes=null}setSeq2(e){if(e!==this.b)return this.b=e,this.matchingBlocks=this.opcodes=null,this.fullbcount=null,this._chainB()}_chainB(){var e=this.b,t,n,r,i,a,o,s,c,l,u,d;for(this.b2j=t=new Map,r=s=0,c=e.length;s<c;r=++s)n=e[r],t.has(n)||t.set(n,[]),i=t.get(n),i.push(r);return o=new Map,a=this.isjunk,a&&t.forEach(function(e,n){if(a(n))return o.set(n,!0),t.delete(n)}),d=new Map,l=e.length,this.autojunk&&l>=200&&(u=h(l/100)+1,t.forEach(function(e,n){if(e.length>u)return d.set(n,!0),t.delete(n)})),this.isbjunk=function(e){return o.has(e)},this.isbpopular=function(e){return d.has(e)}}findLongestMatch(e,t,n,r){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x;for([i,a,o,d]=[this.a,this.b,this.b2j,this.isbjunk],[s,c,l]=[e,n,0],p={},u=g=b=e,x=t;b<=x?g<x:g>x;u=b<=x?++g:--g){for(y={},m=[],o.has(i[u])&&(m=o.get(i[u])),v=0,_=m.length;v<_;v++)if(f=m[v],!(f<n)){if(f>=r)break;h=y[f]=(p[f-1]||0)+1,h>l&&([s,c,l]=[u-h+1,f-h+1,h])}p=y}for(;s>e&&c>n&&!d(a[c-1])&&i[s-1]===a[c-1];)[s,c,l]=[s-1,c-1,l+1];for(;s+l<t&&c+l<r&&!d(a[c+l])&&i[s+l]===a[c+l];)l++;for(;s>e&&c>n&&d(a[c-1])&&i[s-1]===a[c-1];)[s,c,l]=[s-1,c-1,l+1];for(;s+l<t&&c+l<r&&d(a[c+l])&&i[s+l]===a[c+l];)l++;return[s,c,l]}getMatchingBlocks(){var e,t,n,r,i,a,o,c,l,u,d,f,p,m,h,g,_,v,y,b,x;if(this.matchingBlocks)return this.matchingBlocks;for([h,g]=[this.a.length,this.b.length],b=[[0,h,0,g]],v=[];b.length;)[t,e,r,n]=b.pop(),[i,c,d]=x=this.findLongestMatch(t,e,r,n),d&&(v.push(x),t<i&&r<c&&b.push([t,i,r,c]),i+d<e&&c+d<n&&b.push([i+d,e,c+d,n]));for(v.sort(s),a=l=f=0,y=[],m=0,_=v.length;m<_;m++)[o,u,p]=v[m],a+f===o&&l+f===u?f+=p:(f&&y.push([a,l,f]),[a,l,f]=[o,u,p]);return f&&y.push([a,l,f]),y.push([h,g,0]),this.matchingBlocks=y}getOpcodes(){var e,t,n,r,i,a,o,s,c,l;if(this.opcodes)return this.opcodes;for(r=i=0,this.opcodes=t=[],s=this.getMatchingBlocks(),a=0,o=s.length;a<o;a++)[e,n,c]=s[a],l=``,r<e&&i<n?l=`replace`:r<e?l=`delete`:i<n&&(l=`insert`),l&&t.push([l,r,e,i,n]),[r,i]=[e+c,n+c],c&&t.push([`equal`,e,r,n,i]);return t}getGroupedOpcodes(e=3){var t=this.getOpcodes(),n,r,i,a,o,s,c,l,u,d;for(t.length||(t=[[`equal`,0,1,0,1]]),t[0][0]===`equal`&&([d,i,a,o,s]=t[0],t[0]=[d,_(i,a-e),a,_(o,s-e),s]),t[t.length-1][0]===`equal`&&([d,i,a,o,s]=t[t.length-1],t[t.length-1]=[d,i,v(a,i+e),o,v(s,o+e)]),u=e+e,r=[],n=[],c=0,l=t.length;c<l;c++)[d,i,a,o,s]=t[c],d===`equal`&&a-i>u&&(n.push([d,i,v(a,i+e),o,v(s,o+e)]),r.push(n),n=[],[i,o]=[_(i,a-e),_(o,s-e)]),n.push([d,i,a,o,s]);return n.length&&!(n.length===1&&n[0][0]===`equal`)&&r.push(n),r}ratio(){var e,t,n,r=0,i=this.getMatchingBlocks();for(e=0,t=i.length;e<t;e++)n=i[e],r+=n[2];return c(r,this.a.length+this.b.length)}quickRatio(){var e,t,n,r,i,a,o,s,l,u,d;if(!this.fullbcount)for(this.fullbcount=n={},u=this.b,r=0,i=u.length;r<i;r++)t=u[r],n[t]=(n[t]||0)+1;for(n=this.fullbcount,e={},s=0,d=this.a,o=0,a=d.length;o<a;o++)t=d[o],l=f(e,t)?e[t]:n[t]||0,e[t]=l-1,l>0&&s++;return c(s,this.a.length+this.b.length)}realQuickRatio(){var e,t;return[e,t]=[this.a.length,this.b.length],c(v(e,t),e+t)}},g=P(function(e,t,r=3,i=.6){var o,c,l,u,d,f,p,m,h;if(!(r>0))throw Error(`n must be > 0: (${r})`);if(!(0<=i&&i<=1))throw Error(`cutoff must be in [0.0, 1.0]: (${i})`);for(d=[],p=new a,p.setSeq2(e),o=0,c=t.length;o<c;o++)h=t[o],p.setSeq1(h),p.realQuickRatio()>=i&&p.quickRatio()>=i&&p.ratio()>=i&&d.push([p.ratio(),h]);for(d=n.nlargest(d,r,s),f=[],u=0,l=d.length;u<l;u++)[m,h]=d[u],f.push(h);return f},`getCloseMatches`),l=P(function(e,t){var n,r;for([n,r]=[0,e.length];n<r&&e[n]===t;)n++;return n},`_countLeading`),t=class{static{P(this,`Differ`)}constructor(e,t){this.linejunk=e,this.charjunk=t}compare(e,t){var n,r,i,o,s=new a(this.linejunk,e,t),c,l,u,d,f,p=[],m,h=s.getOpcodes(),g;for(l=0,u=h.length;l<u;l++){switch([g,r,n,o,i]=h[l],g){case`replace`:c=this._fancyReplace(e,r,n,t,o,i);break;case`delete`:c=this._dump(`-`,e,r,n);break;case`insert`:c=this._dump(`+`,t,o,i);break;case`equal`:c=this._dump(` `,e,r,n);break;default:throw Error(`unknow tag (${g})`)}for(m=0,d=c.length;m<d;m++)f=c[m],p.push(f)}return p}_dump(e,t,n,r){var i,a,o,s,c=[];for(i=a=o=n,s=r;o<=s?a<s:a>s;i=o<=s?++a:--a)c.push(`${e} ${t[i]}`);return c}_plainReplace(e,t,n,r,i,a){var o,s,c,l,u,d,f,m,h,g;for(p(t<n&&i<a),a-i<n-t?(o=this._dump(`+`,r,i,a),g=this._dump(`-`,e,t,n)):(o=this._dump(`-`,e,t,n),g=this._dump(`+`,r,i,a)),f=[],h=[o,g],c=0,l=h.length;c<l;c++)for(s=h[c],m=0,u=s.length;m<u;m++)d=s[m],f.push(d);return f}_fancyReplace(e,t,n,r,i,o){var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,ee,O,te,ne,k,A,j,re,ie,ae,oe,se,ce,le,ue,de,fe,pe,M,me,he,ge,_e,ve;for([p,x]=[.74,.75],b=new a(this.charjunk),[S,C]=[null,null],re=[],T=E=le=i,ue=o;le<=ue?E<ue:E>ue;T=le<=ue?++E:--E)for(g=r[T],b.setSeq2(g),w=ie=de=t,fe=n;de<=fe?ie<fe:ie>fe;w=de<=fe?++ie:--ie){if(c=e[w],c===g){S===null&&([S,C]=[w,T]);continue}b.setSeq1(c),b.realQuickRatio()>p&&b.quickRatio()>p&&b.ratio()>p&&([p,m,h]=[b.ratio(),w,T])}if(p<x){if(S===null){for(pe=this._plainReplace(e,t,n,r,i,o),ae=0,O=pe.length;ae<O;ae++)j=pe[ae],re.push(j);return re}[m,h,p]=[S,C,1]}else S=null;for(M=this._fancyHelper(e,t,m,r,i,h),oe=0,te=M.length;oe<te;oe++)j=M[oe],re.push(j);if([s,f]=[e[m],r[h]],S===null){for(d=y=``,b.setSeqs(s,f),me=b.getOpcodes(),se=0,ne=me.length;se<ne;se++)switch([ve,l,u,_,v]=me[se],[D,ee]=[u-l,v-_],ve){case`replace`:d+=Array(D+1).join(`^`),y+=Array(ee+1).join(`^`);break;case`delete`:d+=Array(D+1).join(`-`);break;case`insert`:y+=Array(ee+1).join(`+`);break;case`equal`:d+=Array(D+1).join(` `),y+=Array(ee+1).join(` `);break;default:throw Error(`unknow tag (${ve})`)}for(he=this._qformat(s,f,d,y),ce=0,k=he.length;ce<k;ce++)j=he[ce],re.push(j)}else re.push(` `+s);for(ge=this._fancyHelper(e,m+1,n,r,h+1,o),_e=0,A=ge.length;_e<A;_e++)j=ge[_e],re.push(j);return re}_fancyHelper(e,t,n,r,i,a){var o=[];return t<n?o=i<a?this._fancyReplace(e,t,n,r,i,a):this._dump(`-`,e,t,n):i<a&&(o=this._dump(`+`,r,i,a)),o}_qformat(e,t,n,r){var i,a=[];return i=v(l(e,` `),l(t,` `)),i=v(i,l(n.slice(0,i),` `)),i=v(i,l(r.slice(0,i),` `)),n=n.slice(i).replace(/\s+$/,``),r=r.slice(i).replace(/\s+$/,``),a.push(`- `+e),n.length&&a.push(`? ${Array(i+1).join(` `)}${n}
3
3
  `),a.push(`+ `+t),r.length&&a.push(`? ${Array(i+1).join(` `)}${r}
4
4
  `),a}},i=P(function(e,t=/^\s*#?\s*$/){return t.test(e)},`IS_LINE_JUNK`),r=P(function(e,t=` `){return S.call(t,e)>=0},`IS_CHARACTER_JUNK`),d=P(function(e,t){var n=e+1,r=t-e;return r===1?`${n}`:(r||n--,`${n},${r}`)},`_formatRangeUnified`),x=P(function(e,t,{fromfile:n,tofile:r,fromfiledate:i,tofiledate:o,n:s,lineterm:c}={}){var l,u,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,ee,O,te,ne,k,A,j,re,ie,ae,oe;for(n??=``,r??=``,i??=``,o??=``,s??=3,c??=`
5
5
  `,D=[],ie=!1,k=new a(null,e,t).getGroupedOpcodes(),y=0,x=k.length;y<x;y++)for(m=k[y],ie||(ie=!0,p=i?` ${i}`:``,oe=o?` ${o}`:``,D.push(`--- ${n}${p}${c}`),D.push(`+++ ${r}${oe}${c}`)),[f,b]=[m[0],m[m.length-1]],l=d(f[1],b[2]),u=d(f[3],b[4]),D.push(`@@ -${l} +${u} @@${c}`),ee=0,S=m.length;ee<S;ee++){if([ae,h,g,_,v]=m[ee],ae===`equal`){for(A=e.slice(h,g),O=0,C=A.length;O<C;O++)E=A[O],D.push(` `+E);continue}if(ae===`replace`||ae===`delete`)for(j=e.slice(h,g),te=0,w=j.length;te<w;te++)E=j[te],D.push(`-`+E);if(ae===`replace`||ae===`insert`)for(re=t.slice(_,v),ne=0,T=re.length;ne<T;ne++)E=re[ne],D.push(`+`+E)}return D},`unifiedDiff`),u=P(function(e,t){var n=e+1,r=t-e;return r||n--,r<=1?`${n}`:`${n},${n+r-1}`},`_formatRangeContext`),m=P(function(e,t,{fromfile:n,tofile:r,fromfiledate:i,tofiledate:s,n:c,lineterm:l}={}){var d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,ee,O,te,ne,k,A,j,re,ie,ae,oe,se,ce;for(n??=``,r??=``,i??=``,s??=``,c??=3,l??=`
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-BsGrhAqB.mjs";import{r as t}from"./auth-BYFcxn1F.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-5nsUpQL6.mjs";import{t as a}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,i as u,n as d}from"./prompt-Ba_bys2F.mjs";function f(e){return e.usage(`$0 content-scan expressions create
2
+ import{i as e}from"./context-CPVzoKbN.mjs";import{r as t}from"./auth-B_Utev-x.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-DS2fwfNP.mjs";import{t as a}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,i as u,n as d}from"./prompt-doX80PCd.mjs";function f(e){return e.usage(`$0 content-scan expressions create
3
3
 
4
4
  Create one or more Content Scanning custom expressions, appending them to the existing list of the zone, and return the updated list. Each expression reaches content objects the scanner cannot find automatically, for example \`lookup_json_string(http.request.body.raw, "file")\`.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Array of Content Scanning custom expressions to create.`})}const p={command:`create`,describe:`Create Content Scanning custom expressions for a zone.`,builder:f,handler:async s=>a({command:`content-scan expressions create`,classification:{safeFlags:[`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf content-scan expressions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/content-upload-scan/payloads`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?void 0:o(s.body)});return}let a=await t(s),c=await e({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=c,s.body){let e=o(s.body);n(await i(`Creating`,async()=>a.contentScan.expressions.create({body:e,zone_id:c})),{successLabel:`Created`});return}if(s.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function m(e){return e.usage(`$0 content-scan expressions delete <expression-id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e,r as t}from"./project-settings-DO6njFg_.mjs";import{n}from"./resolve-BCTrtcx7.mjs";function r(e,t){if(t)return{value:t,source:`flag`};let n=process.env[e];if(n)return{value:n,source:`env`}}async function i(n={}){let r=process.env.CLOUDFLARE_ACCOUNT_ID;if(r)return{value:r,source:`env`};if(n.skipProjectSettings)return;let i=t(void 0,n),a=i===void 0?await e(void 0,n):i;if(a?.settings?.accountId)return{value:a.settings.accountId,source:`settings`,path:a.path}}async function a(){let e=await i();if(e)return e.value;let{getActiveAccountId:t}=await import(`./oauth-CrTr-mRe.mjs`);try{return t()}catch{return}}async function o(e){let t=await i(e);t&&s(t.value,g(t,`accountId`));let{getOrSelectAccountId:n}=await import(`./oauth-CrTr-mRe.mjs`);return n(t?.value,e)}function s(e,t){if(!process.env.DEBUG)return;let n=e.length>12?e.slice(0,12)+`…`:e;process.stderr.write(`Using account: ${n} (${t})\n`)}async function c(e,t,n){if(e?.zoneId)return l(e.zoneId,t);let i=r(`CLOUDFLARE_ZONE_ID`,e?.zone);if(i){if(!n?.quiet&&i.source!==`flag`){let e=g(i);console.error(`Using zone: ${i.value} (from ${e})`)}return l(i.value,t)}throw Error(`No zone specified.
2
+ import{i as e,r as t}from"./project-settings-DO6njFg_.mjs";import{n}from"./resolve-BCTrtcx7.mjs";function r(e,t){if(t)return{value:t,source:`flag`};let n=process.env[e];if(n)return{value:n,source:`env`}}async function i(n={}){let r=process.env.CLOUDFLARE_ACCOUNT_ID;if(r)return{value:r,source:`env`};if(n.skipProjectSettings)return;let i=t(void 0,n),a=i===void 0?await e(void 0,n):i;if(a?.settings?.accountId)return{value:a.settings.accountId,source:`settings`,path:a.path}}async function a(){let e=await i();if(e)return e.value;let{getActiveAccountId:t}=await import(`./oauth-ChXrM0q9.mjs`);try{return t()}catch{return}}async function o(e){let t=await i(e);t&&s(t.value,g(t,`accountId`));let{getOrSelectAccountId:n}=await import(`./oauth-ChXrM0q9.mjs`);return n(t?.value,e)}function s(e,t){if(!process.env.DEBUG)return;let n=e.length>12?e.slice(0,12)+`…`:e;process.stderr.write(`Using account: ${n} (${t})\n`)}async function c(e,t,n){if(e?.zoneId)return l(e.zoneId,t);let i=r(`CLOUDFLARE_ZONE_ID`,e?.zone);if(i){if(!n?.quiet&&i.source!==`flag`){let e=g(i);console.error(`Using zone: ${i.value} (from ${e})`)}return l(i.value,t)}throw Error(`No zone specified.
3
3
 
4
4
  Please provide one of the following:
5
5
  1. Zone as a positional argument: cf dns records list <zone>
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./auth-BYFcxn1F.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-5nsUpQL6.mjs";import{t as i}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as a,t as o}from"./body-parser-hh2avzkz.mjs";import{n as s}from"./input-validation-Dk52b0me.mjs";function c(e){return e.usage(`$0 cps get
2
+ import{r as e}from"./auth-B_Utev-x.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-DS2fwfNP.mjs";import{t as i}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as a,t as o}from"./body-parser-hh2avzkz.mjs";import{n as s}from"./input-validation-Dk52b0me.mjs";function c(e){return e.usage(`$0 cps get
3
3
 
4
4
  Retrieve the communication preferences for the authenticated user, including email verification status, marketing subscription opt-in/opt-out state, and language locale. Callers authenticate with standard Cloudflare API tokens or keys.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get`,describe:`Get communication preferences`,builder:c,handler:async a=>i({command:`cps get`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){n({command:`cf cps get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/communication_preferences`,pathParams:{},bodyKind:`none`});return}let i=await e(a);t(await r(`Loading`,async()=>i.cps.get()),{successLabel:`Loaded`})})};function u(e){return e.usage(`$0 cps update
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-BsGrhAqB.mjs";import{r as t}from"./auth-BYFcxn1F.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-5nsUpQL6.mjs";import{t as a}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";function l(e){return e.usage(`$0 csamScanner edit
2
+ import{i as e}from"./context-CPVzoKbN.mjs";import{r as t}from"./auth-B_Utev-x.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-DS2fwfNP.mjs";import{t as a}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";function l(e){return e.usage(`$0 csamScanner edit
3
3
 
4
4
  Update the CSAM Scanner configuration for a zone. Allows enabling or disabling CSAM scanning, updating the notification email, and configuring scanning sources. When a new email is provided, email verification is triggered automatically. The \`enabled\` field is a toggle; the server may adjust it based on whether the notification email is verified. Returns 403 if the zone or account is locked by Trust & Safety.`).option(`id`,{type:`string`,description:`The feature identifier.`,choices:[`csam_scanner`]}).option(`value-email`,{type:`string`,description:`Notification email address for CSAM scan results. When changed,
5
5
  email verification is triggered automatically.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-BsGrhAqB.mjs";import{r as t}from"./auth-BYFcxn1F.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-5nsUpQL6.mjs";import{t as a}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";function c(e){return e.usage(`$0 ct-alerting get
2
+ import{i as e}from"./context-CPVzoKbN.mjs";import{r as t}from"./auth-B_Utev-x.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-DS2fwfNP.mjs";import{t as a}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";function c(e){return e.usage(`$0 ct-alerting get
3
3
 
4
4
  Retrieve the Certificate Transparency alerting subscription settings for a zone. Returns whether CT monitoring is enabled and the list of email addresses that receive alerts, if any have been configured.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get`,describe:`Get CT Alerting Subscription`,builder:c,handler:async o=>a({command:`ct-alerting get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ct-alerting get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ct/alerting`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.ctAlerting.get({zone_id:s})),{successLabel:`Loaded`})})};function u(e){return e.usage("$0 ct-alerting update\n\nCreate or update the Certificate Transparency alerting subscription for a zone. Enables or disables email notifications when certificates are issued for the zone's domains. The `enabled` field is required on every request and controls whether the subscription is active. The `emails` field is optional and, when provided, replaces the stored recipient list for the zone. When `emails` is omitted, the stored recipient list is preserved and only the enabled state is toggled. A maximum of 100 email addresses may be configured per zone. Requests that omit `enabled` are rejected with error code 1008. Subscribe and unsubscribe notification emails are only sent for recipients whose effective subscription state changes. Idempotent requests (no state change) send no notification email.").option(`emails`,{type:`string`,array:!0,description:`Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.
5
5
  `}).option(`enabled`,{type:`boolean`,description:`Whether CT alerting is enabled for the zone.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for updating CT alerting subscription settings.`})}const d={command:`update`,describe:`Update CT Alerting Subscription`,builder:u,handler:async c=>a({command:`ct-alerting update`,classification:{safeFlags:[`enabled`,`dry-run`]}},c,async()=>{if(c.dryRun){r({command:`cf ct-alerting update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/ct/alerting`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?s({emails:c.emails,enabled:c.enabled}):o(c.body)});return}let a=await t(c),l=await e({zone:c.zone},a,{quiet:c.quiet});if(c.zoneId=l,c.body){let e=o(c.body);n(await i(`Updating`,async()=>a.ctAlerting.update({...e,zone_id:l})),{successLabel:`Updated`});return}if(c.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let u=s({emails:c.emails,enabled:c.enabled});n(await i(`Updating`,async()=>a.ctAlerting.update({...u,zone_id:l})),{successLabel:`Updated`})})},f={command:`ct-alerting`,describe:`ct-alerting`,builder:e=>e.command(l).command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{f as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-BsGrhAqB.mjs";import{r as t}from"./auth-BYFcxn1F.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-5nsUpQL6.mjs";import{t as a}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as o,r as s,t as c}from"./body-parser-hh2avzkz.mjs";import{n as l}from"./input-validation-Dk52b0me.mjs";import{a as u,n as d}from"./prompt-Ba_bys2F.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 custom-certificates create
2
+ import{i as e}from"./context-CPVzoKbN.mjs";import{r as t}from"./auth-B_Utev-x.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-DS2fwfNP.mjs";import{t as a}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as o,r as s,t as c}from"./body-parser-hh2avzkz.mjs";import{n as l}from"./input-validation-Dk52b0me.mjs";import{a as u,n as d}from"./prompt-doX80PCd.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 custom-certificates create
3
3
 
4
4
  Upload a new SSL certificate for a zone.`).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`],default:`ubiquitous`}).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or certificate and the intermediate(s).`}).option(`custom-csr-id`,{type:`string`,description:`The identifier for the Custom CSR that was used.`}).option(`deploy`,{type:`string`,description:`The environment to deploy the certificate to, defaults to production.`,choices:[`staging`,`production`],default:`production`}).option(`geo-restrictions-label`,{type:`string`,description:`The geo_restrictions.label field`,choices:[`us`,`eu`,`highest_security`]}).option(`policy`,{type:`string`,description:`Specify the policy that determines the region where your private key will be held locally. HTTPS connections to any excluded data center will still be fully encrypted, but will incur some latency while Keyless SSL is used to complete the handshake with the nearest allowed data center. Any combination of countries, specified by their two letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) can be chosen, such as 'country: IN', as well as 'region: EU' which refers to the EU region. If there are too few data centers satisfying the policy, it will be rejected.
5
5
  Note: The API accepts this field as either "policy" or "policy_restrictions" in requests. Responses return this field as "policy_restrictions".`}).option(`private-key`,{type:`string`,description:`The zone's private key. Not required if custom_csr_id is provided, in which case the private key is retrieved from the CSR record held by Cloudflare.`}).option(`type`,{type:`string`,description:`The type 'legacy_custom' enables support for legacy clients which do not include SNI in the TLS handshake.`,choices:[`legacy_custom`,`sni_custom`],default:`legacy_custom`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const m={command:`create`,describe:`Create SSL Configuration`,builder:p,handler:async s=>a({command:`custom-certificates create`,classification:{safeFlags:[`bundle-method`,`deploy`,`geo-restrictions-label`,`type`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf custom-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/custom_certificates`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({bundle_method:l(s[`bundle-method`],`bundle-method`,`text`),certificate:l(s.certificate,`certificate`,`text`),custom_csr_id:l(s[`custom-csr-id`],`custom-csr-id`,`text`),deploy:l(s.deploy,`deploy`,`text`),geo_restrictions:{label:l(s[`geo-restrictions-label`],`geo-restrictions-label`,`text`)},policy:l(s.policy,`policy`,`text`),private_key:l(s[`private-key`],`private-key`,`text`),type:l(s.type,`type`,`text`)}):o(s.body)});return}let a=await t(s),d=await e({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=d,s.body){let e=o(s.body);n(await i(`Creating`,async()=>a.customCertificates.create({...e,zone_id:d})),{successLabel:`Created`});return}s.certificate===void 0&&(s.certificate=await u(`certificate`,`The zone's SSL certificate or certificate and the intermediate(s).`));let f=c({bundle_method:l(s[`bundle-method`],`bundle-method`,`text`),certificate:l(s.certificate,`certificate`,`text`),custom_csr_id:l(s[`custom-csr-id`],`custom-csr-id`,`text`),deploy:l(s.deploy,`deploy`,`text`),geo_restrictions:{label:l(s[`geo-restrictions-label`],`geo-restrictions-label`,`text`)},policy:l(s.policy,`policy`,`text`),private_key:l(s[`private-key`],`private-key`,`text`),type:l(s.type,`type`,`text`)});n(await i(`Creating`,async()=>a.customCertificates.create({...f,zone_id:d})),{successLabel:`Created`})})};function h(e){return e.usage(`$0 custom-certificates delete <custom-certificate-id>
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,i as n,t as r}from"./context-BsGrhAqB.mjs";import{r as i}from"./auth-BYFcxn1F.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-5nsUpQL6.mjs";import{t as c}from"./run-UHTbUldP.mjs";import"./telemetry-C3hmM9Q9.mjs";import{n as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{a as f,n as p}from"./prompt-Ba_bys2F.mjs";import{t as m}from"./cli-types-DoVT5q_M.mjs";function h(e){return e.usage(`$0 custom-csrs create
2
+ import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,i as n,t as r}from"./context-CPVzoKbN.mjs";import{r as i}from"./auth-B_Utev-x.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-DS2fwfNP.mjs";import{t as c}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{a as f,n as p}from"./prompt-doX80PCd.mjs";import{t as m}from"./cli-types-DoVT5q_M.mjs";function h(e){return e.usage(`$0 custom-csrs create
3
3
 
4
4
  Generate a new custom Certificate Signing Request (CSR) for an account or zone. Cloudflare generates and securely stores the private key associated with the CSR.`).option(`common-name`,{type:`string`,description:`The common name (domain) for the CSR. Must be at most 64 characters.`}).option(`country`,{type:`string`,description:`Two-letter ISO 3166-1 alpha-2 country code.`}).option(`description`,{type:`string`,description:`Optional description for the CSR.`}).option(`key-type`,{type:`string`,description:`Key algorithm to use for the CSR. Defaults to rsa2048 if not specified.`,choices:[`rsa2048`,`p256v1`],default:`rsa2048`}).option(`locality`,{type:`string`,description:`City or locality name.`}).option(`name`,{type:`string`,description:`Human-readable name for the CSR.`}).option(`organization`,{type:`string`,description:`Organization name.`}).option(`organizational-unit`,{type:`string`,description:`Organizational unit name.`}).option(`sans`,{type:`string`,array:!0,description:`Subject Alternative Names for the CSR. At least one SAN is required.`}).option(`state`,{type:`string`,description:`State or province name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating a custom CSR.`})}const g={command:`create`,describe:`Create Custom CSR`,builder:h,handler:async p=>c({command:`custom-csrs create`,classification:{safeFlags:[`key-type`,`dry-run`]}},p,async()=>{if(p.dryRun){let e=p.zone===void 0?await t():void 0,n=p.zone===void 0?`accounts`:`zones`,r=p.zone??e??`<account-id>`;o({command:`cf custom-csrs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/custom_csrs`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:p.body===void 0?u({common_name:d(p[`common-name`],`common-name`,`text`),country:d(p.country,`country`,`text`),description:d(p.description,`description`,`text`),key_type:d(p[`key-type`],`key-type`,`text`),locality:d(p.locality,`locality`,`text`),name:d(p.name,`name`,`text`),organization:d(p.organization,`organization`,`text`),organizational_unit:d(p[`organizational-unit`],`organizational-unit`,`text`),sans:p.sans,state:d(p.state,`state`,`text`)}):l(p.body)});return}let c=await i(p),m=p.zone===void 0?`accounts`:`zones`,h=m===`zones`?await n({zone:p.zone},c,{quiet:p.quiet}):p.local?e:await r();if(m===`zones`?p.zoneId=h:p.accountId=h,p.body){let e=l(p.body);a(await s(`Creating`,async()=>c.customCsrs.create({...e,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`});return}if(p[`common-name`]===void 0&&(p[`common-name`]=await f(`common-name`,`The common name (domain) for the CSR. Must be at most 64 characters.`)),p.country===void 0&&(p.country=await f(`country`,`Two-letter ISO 3166-1 alpha-2 country code.`)),p.locality===void 0&&(p.locality=await f(`locality`,`City or locality name.`)),p.organization===void 0&&(p.organization=await f(`organization`,`Organization name.`)),p.sans===void 0)throw Error(`--sans is required (or pass --body with this field set).`);p.state===void 0&&(p.state=await f(`state`,`State or province name.`));let g=u({common_name:d(p[`common-name`],`common-name`,`text`),country:d(p.country,`country`,`text`),description:d(p.description,`description`,`text`),key_type:d(p[`key-type`],`key-type`,`text`),locality:d(p.locality,`locality`,`text`),name:d(p.name,`name`,`text`),organization:d(p.organization,`organization`,`text`),organizational_unit:d(p[`organizational-unit`],`organizational-unit`,`text`),sans:p.sans,state:d(p.state,`state`,`text`)});a(await s(`Creating`,async()=>c.customCsrs.create({...g,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`})})};function _(e){return e.usage(`$0 custom-csrs delete <custom-csr-id>
5
5