package main // CaptchaWidget renders the self-hosted Cap (trycap.dev) proof-of-work widget. // When placed inside a
, the widget injects a hidden `cap-token` field on // solve, which the form handler verifies against the instance's redeem endpoint. // // Vendored from the CMS built-in blocks.CaptchaWidget (cms/backend/blocks/ // captcha_widget.templ): a standalone wasm plugin cannot import the CMS-internal // blocks package, but the widget markup is fully static (served from this // instance's own origin), so it is reproduced here verbatim. Re-copy if the // upstream widget changes. templ CaptchaWidget() { }