cloakSource(source, cloak) {
    if (cloak) {
      for (const entry of cloak) {
        source = source.replaceAll(entry.key, entry.value);
      }
    }
    return source;
  }
@param {string} source Source file
@param {Array<{key: string, value: string}>|undefined} cloak Replacement rules
@return {string} The source with all keys replaced by value