"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.setRelAttribute = void 0;
var setRelAttribute = exports.setRelAttribute = function setRelAttribute(rel, target) {
  if (rel) {
    return rel;
  }
  if (target !== '_self') {
    return 'noreferrer noopener';
  }
  return undefined;
};