globalThis.process ??= {};
globalThis.process.env ??= {};
//#region ../../packages/ui-tokens/dist/tokens-DGlfOSoI.js
/** Frozen runtime mirror of each union — for iteration, validation, and the theme adapter. */
var TOKEN_COLORS = [
	"fg",
	"fg-muted",
	"fg-subtle",
	"bg",
	"surface",
	"surface-raised",
	"border",
	"border-strong",
	"accent",
	"accent-fg",
	"success",
	"warning",
	"danger",
	"info",
	"success-fg",
	"warning-fg",
	"danger-fg",
	"info-fg"
];
var TOKEN_RADII = [
	"none",
	"sm",
	"md",
	"lg",
	"xl",
	"full"
];
var TOKEN_FONT_SIZES = [
	"xs",
	"sm",
	"base",
	"lg",
	"xl",
	"2xl",
	"3xl"
];
var TOKEN_WEIGHTS = [
	"normal",
	"medium",
	"semibold",
	"bold"
];
/** CSS custom-property name for a token color (the seam a theme overrides). */
function colorVar(token) {
	return `--mod-color-${token}`;
}
//#endregion
//#region ../../packages/ui-tokens/dist/theme-engine/index.js
var SURFACES = [
	"bg",
	"surface",
	"surface-raised"
];
var INTENTS = [
	"success",
	"warning",
	"danger",
	"info"
];
var INTENT_FG = {
	success: "success-fg",
	warning: "warning-fg",
	danger: "danger-fg",
	info: "info-fg"
};
function build() {
	const pairs = [];
	for (const fg of ["fg", "fg-muted"]) for (const bg of SURFACES) pairs.push({
		fg,
		bg,
		level: "text"
	});
	for (const bg of SURFACES) pairs.push({
		fg: "fg-subtle",
		bg,
		level: "ui"
	});
	pairs.push({
		fg: "accent-fg",
		bg: "accent",
		level: "text"
	});
	for (const intent of INTENTS) pairs.push({
		fg: INTENT_FG[intent],
		bg: intent,
		level: "text"
	});
	for (const fg of INTENTS) for (const bg of SURFACES) pairs.push({
		fg,
		bg,
		level: "text"
	});
	for (const bg of SURFACES) pairs.push({
		fg: "border-strong",
		bg,
		level: "ui"
	});
	for (const bg of SURFACES) pairs.push({
		fg: "accent",
		bg,
		level: "ui"
	});
	for (const fg of INTENTS) for (const bg of SURFACES) pairs.push({
		fg,
		bg,
		level: "ui"
	});
	return pairs;
}
Object.freeze(build());
var COLOR_TOKEN_KEYS = TOKEN_COLORS;
[
	...TOKEN_RADII.map((r) => `radius-${r}`),
	...TOKEN_FONT_SIZES.map((s) => `font-size-${s}`),
	...TOKEN_WEIGHTS.map((w) => `font-weight-${w}`)
];
var DEFAULT_RAMPS = {
	neutral: {
		light: {
			steps: [
				"#fcfcfd",
				"#f9f9fb",
				"#f0f0f3",
				"#e8e8ec",
				"#e0e1e6",
				"#d9d9e0",
				"#cdced6",
				"#b9bbc6",
				"#8b8d98",
				"#80838d",
				"#60646c",
				"#1c2024"
			],
			alpha: [
				"rgba(0, 0, 85, 0.012)",
				"rgba(0, 0, 85, 0.024)",
				"rgba(0, 0, 51, 0.059)",
				"rgba(0, 0, 45, 0.09)",
				"rgba(0, 9, 50, 0.122)",
				"rgba(0, 0, 47, 0.149)",
				"rgba(0, 6, 46, 0.196)",
				"rgba(0, 8, 48, 0.275)",
				"rgba(0, 5, 29, 0.455)",
				"rgba(0, 7, 27, 0.498)",
				"rgba(0, 7, 20, 0.624)",
				"rgba(0, 5, 9, 0.89)"
			],
			contrast: "#000000"
		},
		dark: {
			steps: [
				"#111113",
				"#18191b",
				"#212225",
				"#272a2d",
				"#2e3135",
				"#363a3f",
				"#43484e",
				"#5a6169",
				"#696e77",
				"#777b84",
				"#afb3ba",
				"#edeef0"
			],
			alpha: [
				"rgba(0, 0, 0, 0)",
				"rgba(216, 244, 246, 0.035)",
				"rgba(221, 234, 248, 0.078)",
				"rgba(211, 237, 248, 0.114)",
				"rgba(217, 237, 254, 0.145)",
				"rgba(214, 235, 253, 0.188)",
				"rgba(217, 237, 255, 0.251)",
				"rgba(217, 237, 255, 0.365)",
				"rgba(223, 235, 253, 0.427)",
				"rgba(229, 237, 253, 0.482)",
				"rgba(240, 245, 254, 0.71)",
				"rgba(252, 253, 255, 0.937)"
			],
			contrast: "#ffffff"
		}
	},
	accent: {
		light: {
			steps: [
				"#fdfdfe",
				"#f7f9ff",
				"#edf2ff",
				"#e1e9ff",
				"#d2deff",
				"#c1d0ff",
				"#abbdf9",
				"#8da4ef",
				"#3e63dd",
				"#3358d4",
				"#3a5bc7",
				"#1f2d5c"
			],
			alpha: [
				"rgba(0, 0, 128, 0.008)",
				"rgba(0, 64, 255, 0.031)",
				"rgba(0, 71, 255, 0.071)",
				"rgba(0, 68, 255, 0.118)",
				"rgba(0, 68, 255, 0.176)",
				"rgba(0, 62, 255, 0.243)",
				"rgba(0, 55, 237, 0.329)",
				"rgba(0, 52, 220, 0.447)",
				"rgba(0, 49, 210, 0.757)",
				"rgba(0, 46, 201, 0.8)",
				"rgba(0, 43, 183, 0.773)",
				"rgba(0, 16, 70, 0.878)"
			],
			contrast: "#ffffff"
		},
		dark: {
			steps: [
				"#11131f",
				"#141726",
				"#15224c",
				"#142d69",
				"#1b367b",
				"#274089",
				"#344c9c",
				"#3e5cbb",
				"#3e63dd",
				"#5472e4",
				"#9eb1ff",
				"#d6e1ff"
			],
			alpha: [
				"rgba(17, 51, 255, 0.059)",
				"rgba(51, 84, 250, 0.09)",
				"rgba(33, 85, 253, 0.251)",
				"rgba(25, 92, 253, 0.373)",
				"rgba(40, 100, 255, 0.447)",
				"rgba(61, 110, 255, 0.506)",
				"rgba(77, 118, 255, 0.584)",
				"rgba(80, 121, 254, 0.718)",
				"rgba(70, 113, 255, 0.859)",
				"rgba(92, 126, 254, 0.89)",
				"rgba(158, 177, 255, 1)",
				"rgba(214, 225, 255, 1)"
			],
			contrast: "#ffffff"
		}
	},
	success: {
		light: {
			steps: [
				"#fbfefc",
				"#f2fcf5",
				"#e3f8e9",
				"#d3f2dd",
				"#c2eacf",
				"#abdebf",
				"#8dcea9",
				"#5bb98b",
				"#30a46c",
				"#2b9a66",
				"#218358",
				"#193b2d"
			],
			alpha: [
				"rgba(0, 192, 64, 0.016)",
				"rgba(0, 197, 59, 0.051)",
				"rgba(0, 192, 55, 0.11)",
				"rgba(0, 180, 58, 0.173)",
				"rgba(0, 168, 55, 0.239)",
				"rgba(0, 155, 61, 0.329)",
				"rgba(0, 146, 63, 0.447)",
				"rgba(0, 146, 75, 0.643)",
				"rgba(0, 143, 74, 0.812)",
				"rgba(0, 134, 71, 0.831)",
				"rgba(0, 113, 63, 0.871)",
				"rgba(0, 38, 22, 0.902)"
			],
			contrast: "#000000"
		},
		dark: {
			steps: [
				"#0e1512",
				"#131b17",
				"#112c20",
				"#123b29",
				"#184933",
				"#20573e",
				"#28684a",
				"#2f7c57",
				"#30a46c",
				"#35b979",
				"#3dd68c",
				"#b1f1cb"
			],
			alpha: [
				"rgba(0, 222, 69, 0.02)",
				"rgba(64, 249, 157, 0.043)",
				"rgba(18, 255, 149, 0.114)",
				"rgba(23, 255, 153, 0.176)",
				"rgba(47, 255, 162, 0.235)",
				"rgba(68, 255, 170, 0.294)",
				"rgba(80, 253, 172, 0.369)",
				"rgba(84, 255, 173, 0.451)",
				"rgba(68, 255, 164, 0.62)",
				"rgba(68, 255, 165, 0.706)",
				"rgba(70, 254, 165, 0.831)",
				"rgba(187, 255, 215, 0.941)"
			],
			contrast: "#000000"
		}
	},
	warning: {
		light: {
			steps: [
				"#fefdfb",
				"#fff9e8",
				"#fff2b5",
				"#ffeb94",
				"#ffe176",
				"#fad373",
				"#edbf63",
				"#e2a336",
				"#ffc53d",
				"#ffba18",
				"#ab6400",
				"#4f3422"
			],
			alpha: [
				"rgba(192, 128, 0, 0.016)",
				"rgba(255, 189, 0, 0.09)",
				"rgba(255, 211, 1, 0.29)",
				"rgba(255, 208, 1, 0.42)",
				"rgba(255, 200, 0, 0.537)",
				"rgba(246, 175, 0, 0.549)",
				"rgba(226, 151, 0, 0.612)",
				"rgba(218, 138, 0, 0.788)",
				"rgba(255, 179, 0, 0.761)",
				"rgba(255, 179, 0, 0.906)",
				"rgba(171, 100, 0, 1)",
				"rgba(52, 21, 0, 0.867)"
			],
			contrast: "#000000"
		},
		dark: {
			steps: [
				"#16120c",
				"#1c1812",
				"#2d1e07",
				"#3e2700",
				"#4c3000",
				"#5b3d06",
				"#704f1a",
				"#8f6424",
				"#ffc53d",
				"#ffd505",
				"#ffca16",
				"#ffe7b3"
			],
			alpha: [
				"rgba(230, 60, 0, 0.024)",
				"rgba(251, 166, 39, 0.047)",
				"rgba(255, 128, 0, 0.118)",
				"rgba(252, 132, 0, 0.192)",
				"rgba(253, 141, 0, 0.251)",
				"rgba(253, 157, 0, 0.314)",
				"rgba(255, 172, 40, 0.4)",
				"rgba(255, 174, 53, 0.529)",
				"rgba(255, 197, 61, 1)",
				"rgba(255, 213, 5, 1)",
				"rgba(255, 202, 22, 1)",
				"rgba(255, 231, 179, 1)"
			],
			contrast: "#000000"
		}
	},
	danger: {
		light: {
			steps: [
				"#fffcfc",
				"#fff7f7",
				"#ffe9ea",
				"#ffdbdc",
				"#ffcdce",
				"#fdbdbe",
				"#f4a9aa",
				"#eb8e90",
				"#e5484d",
				"#dc3e42",
				"#ce2c31",
				"#641723"
			],
			alpha: [
				"rgba(255, 0, 0, 0.012)",
				"rgba(255, 0, 0, 0.031)",
				"rgba(255, 0, 12, 0.086)",
				"rgba(255, 0, 8, 0.141)",
				"rgba(255, 0, 6, 0.196)",
				"rgba(248, 0, 4, 0.259)",
				"rgba(223, 0, 3, 0.337)",
				"rgba(210, 0, 5, 0.443)",
				"rgba(219, 0, 7, 0.718)",
				"rgba(209, 0, 5, 0.757)",
				"rgba(196, 0, 6, 0.827)",
				"rgba(85, 0, 13, 0.91)"
			],
			contrast: "#000000"
		},
		dark: {
			steps: [
				"#191111",
				"#201314",
				"#3c1017",
				"#500f1c",
				"#601623",
				"#72232d",
				"#8b3339",
				"#b54548",
				"#e5484d",
				"#ec5d5e",
				"#ff9592",
				"#ffd1d9"
			],
			alpha: [
				"rgba(244, 18, 18, 0.035)",
				"rgba(242, 47, 62, 0.067)",
				"rgba(251, 12, 50, 0.184)",
				"rgba(254, 10, 59, 0.267)",
				"rgba(255, 32, 71, 0.333)",
				"rgba(255, 62, 86, 0.408)",
				"rgba(255, 84, 95, 0.514)",
				"rgba(255, 93, 97, 0.69)",
				"rgba(254, 78, 84, 0.894)",
				"rgba(255, 100, 101, 0.922)",
				"rgba(255, 149, 146, 1)",
				"rgba(255, 209, 217, 1)"
			],
			contrast: "#000000"
		}
	},
	info: {
		light: {
			steps: [
				"#fbfdff",
				"#f4faff",
				"#e5f5ff",
				"#d5efff",
				"#c2e5ff",
				"#acd8fc",
				"#8ec8f6",
				"#5eb1ef",
				"#0090ff",
				"#0588f0",
				"#0d74ce",
				"#113264"
			],
			alpha: [
				"rgba(0, 128, 255, 0.016)",
				"rgba(0, 140, 255, 0.043)",
				"rgba(0, 157, 255, 0.102)",
				"rgba(0, 158, 255, 0.165)",
				"rgba(0, 147, 255, 0.239)",
				"rgba(0, 136, 246, 0.325)",
				"rgba(0, 131, 235, 0.443)",
				"rgba(0, 132, 230, 0.631)",
				"rgba(0, 144, 255, 1)",
				"rgba(0, 134, 240, 0.98)",
				"rgba(0, 109, 203, 0.949)",
				"rgba(0, 35, 89, 0.933)"
			],
			contrast: "#000000"
		},
		dark: {
			steps: [
				"#0d1520",
				"#111a27",
				"#0c2745",
				"#003465",
				"#004078",
				"#064d8b",
				"#1a5da3",
				"#2270c3",
				"#0090ff",
				"#3b9eff",
				"#70b8ff",
				"#c2e6ff"
			],
			alpha: [
				"rgba(0, 77, 242, 0.067)",
				"rgba(17, 113, 251, 0.094)",
				"rgba(0, 118, 254, 0.22)",
				"rgba(0, 117, 255, 0.353)",
				"rgba(0, 125, 253, 0.435)",
				"rgba(0, 134, 255, 0.514)",
				"rgba(31, 140, 254, 0.616)",
				"rgba(40, 144, 255, 0.749)",
				"rgba(0, 144, 255, 1)",
				"rgba(59, 158, 255, 1)",
				"rgba(112, 184, 255, 1)",
				"rgba(194, 230, 255, 1)"
			],
			contrast: "#000000"
		}
	}
};
function colorsFor(mode) {
	const intentStep = mode === "light" ? 11 : 10;
	const intentContrast = mode === "light" ? "#ffffff" : null;
	return {
		fg: DEFAULT_RAMPS.neutral[mode].steps[11],
		"fg-muted": DEFAULT_RAMPS.neutral[mode].steps[10],
		"fg-subtle": DEFAULT_RAMPS.neutral[mode].steps[9],
		bg: DEFAULT_RAMPS.neutral[mode].steps[0],
		surface: DEFAULT_RAMPS.neutral[mode].steps[1],
		"surface-raised": DEFAULT_RAMPS.neutral[mode].steps[2],
		border: DEFAULT_RAMPS.neutral[mode].steps[5],
		"border-strong": DEFAULT_RAMPS.neutral[mode].steps[9],
		accent: DEFAULT_RAMPS.accent[mode].steps[8],
		"accent-fg": DEFAULT_RAMPS.accent[mode].contrast,
		success: DEFAULT_RAMPS.success[mode].steps[intentStep],
		warning: DEFAULT_RAMPS.warning[mode].steps[intentStep],
		danger: DEFAULT_RAMPS.danger[mode].steps[intentStep],
		info: DEFAULT_RAMPS.info[mode].steps[intentStep],
		"success-fg": intentContrast ?? DEFAULT_RAMPS.success[mode].contrast,
		"warning-fg": intentContrast ?? DEFAULT_RAMPS.warning[mode].contrast,
		"danger-fg": intentContrast ?? DEFAULT_RAMPS.danger[mode].contrast,
		"info-fg": intentContrast ?? DEFAULT_RAMPS.info[mode].contrast
	};
}
colorsFor("light"), colorsFor("dark");
var COLOR_SET = new Set(COLOR_TOKEN_KEYS);
/**
* Map an EffectiveTokens key to its ui-tokens custom-property name.
* color key  -> colorVar(key) = `--mod-color-<key>`
* shape key  -> `--mod-<key>` (already carries radius-/font-size-/font-weight-)
*/
function cssVarFor(key) {
	return COLOR_SET.has(key) ? colorVar(key) : `--mod-${key}`;
}
var RAMP_KEYS = [
	"neutral",
	"accent",
	"success",
	"warning",
	"danger",
	"info"
];
function decls(colors, shape, mode) {
	const lines = [];
	for (const [k, v] of Object.entries(colors)) lines.push(`  ${cssVarFor(k)}: ${v};`);
	for (const [k, v] of Object.entries(shape)) lines.push(`  ${cssVarFor(k)}: ${v};`);
	for (const rampName of RAMP_KEYS) {
		const ramp = DEFAULT_RAMPS[rampName][mode];
		ramp.steps.forEach((step, index) => lines.push(`  --mod-${rampName}-${index + 1}: ${step};`));
		ramp.alpha.forEach((alpha, index) => lines.push(`  --mod-${rampName}-a${index + 1}: ${alpha};`));
		lines.push(`  --mod-${rampName}-contrast: ${ramp.contrast};`);
	}
	lines.push(`  color-scheme: ${mode};`);
	return lines.join("\n");
}
/** Build-time static CSS for SSR/no-JS first paint. Palette-scoped; group 3 resolves system-mode with no flash. */
function themeToCss(pkg) {
	const blocks = [];
	for (const palette of pkg.palettes) {
		const base = `[data-theme="${pkg.id}"][data-palette="${palette.id}"]`;
		const light = decls(palette.colors.light, pkg.shape.light, "light");
		const dark = decls(palette.colors.dark, pkg.shape.dark, "dark");
		blocks.push(`${base}[data-mode="light"] {\n${light}\n}`);
		blocks.push(`${base}[data-mode="dark"] {\n${dark}\n}`);
		blocks.push(`${base}:not([data-mode]) {\n${light}\n}`);
		blocks.push(`@media (prefers-color-scheme: dark) {\n  ${base}:not([data-mode]) {\n${dark}\n  }\n}`);
	}
	return blocks.join("\n\n");
}
//#endregion
//#region src/lib/theme.ts
var SHAPE = {
	"radius-none": "0",
	"radius-sm": "0.125rem",
	"radius-md": "0.375rem",
	"radius-lg": "0.5rem",
	"radius-xl": "0.75rem",
	"radius-full": "9999px",
	"font-size-xs": "0.75rem",
	"font-size-sm": "0.875rem",
	"font-size-base": "1rem",
	"font-size-lg": "1.125rem",
	"font-size-xl": "1.25rem",
	"font-size-2xl": "1.5rem",
	"font-size-3xl": "1.875rem",
	"font-weight-normal": "400",
	"font-weight-medium": "500",
	"font-weight-semibold": "600",
	"font-weight-bold": "700"
};
var MOD_CMS_PALETTE_SET = {
	id: "mod-cms",
	name: "mod-cms",
	defaultPaletteId: "default",
	palettes: [{
		id: "default",
		name: "Default",
		colors: {
			light: {
				fg: "#1a1a1a",
				"fg-muted": "#555555",
				"fg-subtle": "#888888",
				bg: "#ffffff",
				surface: "#f7f7f7",
				"surface-raised": "#ffffff",
				border: "#e2e2e2",
				"border-strong": "#8e8e8e",
				accent: "#3b5bdb",
				"accent-fg": "#ffffff",
				success: "#237a35",
				warning: "#b45309",
				danger: "#c92a2a",
				info: "#1971c2",
				"success-fg": "#ffffff",
				"warning-fg": "#ffffff",
				"danger-fg": "#ffffff",
				"info-fg": "#ffffff"
			},
			dark: {
				fg: "#eceae3",
				"fg-muted": "#b3b1a8",
				"fg-subtle": "#7b7d87",
				bg: "#14151a",
				surface: "#1d1f25",
				"surface-raised": "#1f2126",
				border: "#2e3038",
				"border-strong": "#686b74",
				accent: "#5b8def",
				"accent-fg": "#14151a",
				success: "#3dba6a",
				warning: "#e0a030",
				danger: "#e85d6a",
				info: "#5b9fd4",
				"success-fg": "#14151a",
				"warning-fg": "#14151a",
				"danger-fg": "#14151a",
				"info-fg": "#14151a"
			}
		}
	}, {
		id: "slate",
		name: "Slate",
		colors: {
			light: {
				fg: "#0f172a",
				"fg-muted": "#475569",
				"fg-subtle": "#64748b",
				bg: "#ffffff",
				surface: "#f8fafc",
				"surface-raised": "#ffffff",
				border: "#e2e8f0",
				"border-strong": "#64748b",
				accent: "#0f766e",
				"accent-fg": "#ffffff",
				success: "#237a35",
				warning: "#b45309",
				danger: "#c92a2a",
				info: "#1971c2",
				"success-fg": "#ffffff",
				"warning-fg": "#ffffff",
				"danger-fg": "#ffffff",
				"info-fg": "#ffffff"
			},
			dark: {
				fg: "#e2e8f0",
				"fg-muted": "#cbd5e1",
				"fg-subtle": "#94a3b8",
				bg: "#0f172a",
				surface: "#162231",
				"surface-raised": "#1a2736",
				border: "#334155",
				"border-strong": "#94a3b8",
				accent: "#2dd4bf",
				"accent-fg": "#0f172a",
				success: "#3dba6a",
				warning: "#e0a030",
				danger: "#f87171",
				info: "#5b9fd4",
				"success-fg": "#0f172a",
				"warning-fg": "#0f172a",
				"danger-fg": "#0f172a",
				"info-fg": "#0f172a"
			}
		}
	}],
	shape: {
		light: SHAPE,
		dark: SHAPE
	}
};
MOD_CMS_PALETTE_SET.palettes.map((p) => ({
	id: p.id,
	name: p.name
}));
function paletteOptions(mode) {
	return MOD_CMS_PALETTE_SET.palettes.map((p) => {
		const c = p.colors[mode];
		return {
			id: p.id,
			label: p.name,
			swatches: [
				c.bg,
				c.surface,
				c.accent,
				c.fg
			],
			preview: {
				bg: c.bg,
				surface: c.surface,
				fg: c.fg,
				fgMuted: c["fg-muted"],
				accent: c.accent,
				accentFg: c["accent-fg"],
				border: c.border
			}
		};
	});
}
/**
* PURE presentation-theme projection (id + name only — NO components). The admin picker
* and parseActiveSelection consume this; the component bindings live in src/themes/registry.ts.
* Each id here MUST equal a key in MOD_CMS_THEMES (the registry guard enforces parity).
*/
var THEME_REGISTRY_META = [
	{
		id: "default",
		name: "Default",
		desc: "Clean and flexible"
	},
	{
		id: "editorial",
		name: "Editorial",
		desc: "Long-form reading"
	},
	{
		id: "magazine",
		name: "Magazine",
		desc: "Bold publication"
	},
	{
		id: "blog",
		name: "Blog",
		desc: "Chronological feed"
	}
];
var DEFAULT_THEME_ID = "default";
/** Precomputed once — static SSR token CSS for the theme. Inject in <head>. */
var themeCss = themeToCss(MOD_CMS_PALETTE_SET);
var DEFAULT_SELECTION = {
	themeId: DEFAULT_THEME_ID,
	paletteId: MOD_CMS_PALETTE_SET.defaultPaletteId,
	mode: "light"
};
var MODES = /* @__PURE__ */ new Set([
	"light",
	"dark",
	"system"
]);
/**
* Resolve the stored `theme` setting to an ActiveSelection. ALWAYS resolves (the site must never
* blank on a bad setting — availability Hard floor). Back-compat: the legacy value was the bare
* string 'light'|'dark' (the old data-theme mode); map it onto the default theme+palette.
*/
function parseActiveSelection(value) {
	if (value === "light" || value === "dark") return {
		...DEFAULT_SELECTION,
		mode: value
	};
	if (!value || typeof value !== "object") return DEFAULT_SELECTION;
	const v = value;
	return {
		themeId: typeof v.themeId === "string" && THEME_REGISTRY_META.some((t) => t.id === v.themeId) ? v.themeId : DEFAULT_THEME_ID,
		paletteId: typeof v.paletteId === "string" && MOD_CMS_PALETTE_SET.palettes.some((p) => p.id === v.paletteId) ? v.paletteId : MOD_CMS_PALETTE_SET.defaultPaletteId,
		mode: typeof v.mode === "string" && MODES.has(v.mode) ? v.mode : DEFAULT_SELECTION.mode
	};
}
//#endregion
export { paletteOptions as a, THEME_REGISTRY_META as i, DEFAULT_THEME_ID as n, parseActiveSelection as o, MOD_CMS_PALETTE_SET as r, themeCss as s, DEFAULT_SELECTION as t };
