import { isHttpMethod as e } from "@scalar/helpers/http/is-http-method";
function i(o, r) {
  const t = r?.params[o];
  if (typeof t == "string")
    return o === "method" ? t && e(t) ? t : void 0 : decodeURIComponent(t);
}
export {
  i as getRouteParam
};
