const scarceModules = import.meta.glob("../static/scarce/*.svg", {
  eager: true,
  query: "?url",
  import: "default"
});
function findScarceKey(kind) {
  return Object.keys(scarceModules).find((k) => k.endsWith(`/${kind}.svg`));
}
export function getScarceSvgUrl(kind) {
  const key = findScarceKey(kind);
  return key ? scarceModules[key] : undefined;
}
export function listScarceKinds() {
  return Object.keys(scarceModules).map((k) => k.match(/\/([^/]+)\.svg$/)?.[1] ?? "").filter(Boolean);
}
export const SCARCE_PAGE_NOT_FOUND = getScarceSvgUrl("页面不存在") ?? "";
