function stopPropagation(fn) {
	return function (...args) {
		var event = /** @type {Event} */ (args[0]);
		event.stopPropagation();
		// @ts-ignore
		return fn?.apply(this, args);
	};
}
Substitute for the `stopPropagation` event modifier
@deprecated
@param {(event: Event, ...args: Array<unknown>) => void} fn
@returns {(event: Event, ...args: unknown[]) => void}