--cięcie--
let hiddenLicenses = new Set();

function update(items) {
  // Elementy bez tych, których licencje zostały odznaczone
  let filtered = items.filter(d => !hiddenLicenses.has(getLicense(d)));

  let licenses = new Set(items.map(d => getLicense(d)));
--cięcie--
