//#region src/routes/brain/tier-stats/+page.server.ts
var load = async ({ fetch }) => {
	try {
		const res = await fetch("/api/memory/tier-stats");
		if (!res.ok) return {
			stats: null,
			loadedAt: (/* @__PURE__ */ new Date()).toISOString()
		};
		return {
			stats: await res.json(),
			loadedAt: (/* @__PURE__ */ new Date()).toISOString()
		};
	} catch {
		return {
			stats: null,
			loadedAt: (/* @__PURE__ */ new Date()).toISOString()
		};
	}
};

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

const index = 14;
let component_cache;
const component = async () => component_cache ??= (await import('./_page.svelte-Byz2djto.js')).default;
const server_id = "src/routes/brain/tier-stats/+page.server.ts";
const imports = ["_app/immutable/nodes/14.eaAlFU4w.js","_app/immutable/chunks/DyGQ_VXC.js","_app/immutable/chunks/DrKWWDpL.js","_app/immutable/chunks/CQCxd1p9.js","_app/immutable/chunks/BRgWBQlV.js","_app/immutable/chunks/CEqOYim7.js","_app/immutable/chunks/CqF5Lomf.js"];
const stylesheets = ["_app/immutable/assets/Tabs.CU9_rsWl.css","_app/immutable/assets/ui.CH-9N9-0.css","_app/immutable/assets/memory.BscouZPQ.css","_app/immutable/assets/14.Cl-Ch082.css"];
const fonts = [];

export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
//# sourceMappingURL=14-Bo-dTCaZ.js.map
