applyFilters(name, ...args) {
    var _this$_filters$name3;

    (_this$_filters$name3 = this._filters[name]) === null || _this$_filters$name3 === void 0 || _this$_filters$name3.forEach(filter => {
      // @ts-expect-error
      args[0] = filter.fn.apply(this, args);
    });
    return args[0];
  }
@template {keyof PhotoSwipeFiltersMap} T
@param {T} name
@param {Parameters<PhotoSwipeFiltersMap[T]>} args
@returns {Parameters<PhotoSwipeFiltersMap[T]>[0]}