import { r as redirect } from './index-Djsj11qr.js';

const load = async ({ params, fetch }) => {
  const agent = params.agent;
  const res = await fetch(`/tests/${encodeURIComponent(agent)}/api/tests`);
  if (res.status === 404) throw redirect(307, "/tests");
  return {};
};

var _page_ts = /*#__PURE__*/Object.freeze({
  __proto__: null,
  load: load
});

const index = 6;
let component_cache;
const component = async () => component_cache ??= (await import('./_page.svelte-B5HdAc24.js')).default;
const universal_id = "src/routes/tests/[agent]/+page.ts";
const imports = ["_app/immutable/nodes/6.m-XfB9t_.js","_app/immutable/chunks/hp4PFHFv.js","_app/immutable/chunks/BUApaBEI.js","_app/immutable/chunks/CWj6FrbW.js","_app/immutable/chunks/x2n8lXq-.js","_app/immutable/chunks/DOPisAOl.js","_app/immutable/chunks/Xc3_nZLd.js","_app/immutable/chunks/DWnVehjo.js","_app/immutable/chunks/CO5ixKDf.js","_app/immutable/chunks/CGcWBEH0.js","_app/immutable/chunks/eylS3834.js","_app/immutable/chunks/D3toRszH.js","_app/immutable/chunks/D-PR_7HR.js","_app/immutable/chunks/CnF5UeRo.js","_app/immutable/chunks/CEk_xq3X.js","_app/immutable/chunks/DO9Exidn.js","_app/immutable/chunks/yjlNamjV.js","_app/immutable/chunks/DNZ_XOhh.js","_app/immutable/chunks/BxniC1kI.js","_app/immutable/chunks/BiKOfkaT.js","_app/immutable/chunks/B2bunaw_.js","_app/immutable/chunks/BK4X32_X.js","_app/immutable/chunks/BhT-mCxl.js","_app/immutable/chunks/C1FmrZbK.js","_app/immutable/chunks/AVg3DZ_B.js","_app/immutable/chunks/BsZvu73I.js","_app/immutable/chunks/BDNQHkYN.js"];
const stylesheets = ["_app/immutable/assets/Tab.DrtF13Tg.css","_app/immutable/assets/Link.D7uHGZ0C.css","_app/immutable/assets/AgentSidebar.BEG0l2mN.css","_app/immutable/assets/6.Bsj2Wn1S.css"];
const fonts = [];

export { component, fonts, imports, index, stylesheets, _page_ts as universal, universal_id };
//# sourceMappingURL=6-CbCOh73N.js.map
