function create_custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {
	return new CustomEvent(type, { detail, bubbles, cancelable });
}
@template [T=any]
@param {string} type
@param {T} [detail]
@param {any}params_0
@returns {CustomEvent<T>}