function selectMode(input) {
  if (input.mode === "crawl-rank") {
    if (input.url && input.url.trim().length > 0) return "crawl-rank";
    return "cache";
  }
  if (input.mode === "cache" || input.mode === "web-expansion") return input.mode;
  return "cache";
}
export {
  selectMode
};
//# sourceMappingURL=mode.js.map