function normalizeExactModelId(model) {
  if (typeof model !== "string") {
    return void 0;
  }
  const trimmed = model.trim();
  return trimmed || void 0;
}
function resolveClaudeFamilyModelSlots(options = {}) {
  const selectedModel = normalizeExactModelId(options.selectedModel);
  if (selectedModel) {
    return {
      primaryModel: selectedModel,
      haikuModel: selectedModel,
      sonnetModel: selectedModel,
      opusModel: selectedModel
    };
  }
  const defaults = options.defaultModels || [];
  const primaryModel = normalizeExactModelId(defaults[0]);
  const haikuModel = normalizeExactModelId(defaults[1]) || primaryModel;
  const sonnetModel = normalizeExactModelId(defaults[2]) || primaryModel;
  const opusModel = normalizeExactModelId(defaults[3]) || primaryModel;
  return {
    primaryModel,
    haikuModel,
    sonnetModel,
    opusModel
  };
}

export { resolveClaudeFamilyModelSlots as r };
