'use strict'; // First-party parser; inputs are fetched by the paced source broker, not here. const decode = value => String(value).replace(/&/g, '&').replace(/'|'/gi, "'") .replace(/"/g, '"').replace(/<[^>]+>/g, '').trim(); function catalog({ html, url }) { const sourceId = new URL(url).pathname.split('/')[2]; const title = decode(html.match(/