/*! © 2026 Yahoo, Inc. UDS Tailwind and Purger v0.0.0-development */
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
let node_path = require("node:path");
node_path = require_runtime.__toESM(node_path);

//#region src/css/runner.helpers.ts
const getMainCssSummaryMessage = (options) => {
	const { optimizationStats, sizeGzipBytes, formatBytes } = options;
	if (!optimizationStats) return `Main CSS: ${formatBytes(sizeGzipBytes)} gzip`;
	const { originalSizeGzip, fontFacesRemoved, emptyRulesRemoved } = optimizationStats;
	const savedBytesGzip = originalSizeGzip - sizeGzipBytes;
	if (savedBytesGzip <= 0) return `Main CSS: ${formatBytes(sizeGzipBytes)} gzip`;
	return `Main CSS: ${formatBytes(sizeGzipBytes)} gzip)(optimized: saved ${formatBytes(savedBytesGzip)} gzip, ${fontFacesRemoved} unused @font-face, ${emptyRulesRemoved} empty rules removed)`;
};
const getWatchDirectoryGroups = (entryDirs, dirs) => {
	const watchDirs = [...new Set(dirs.filter((dir) => !dir.split(node_path.default.sep).includes("node_modules")))];
	return {
		watchDirs,
		filteredPackageDirs: watchDirs.filter((dir) => !entryDirs.includes(dir))
	};
};

//#endregion
exports.getMainCssSummaryMessage = getMainCssSummaryMessage;
exports.getWatchDirectoryGroups = getWatchDirectoryGroups;