/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 */ function p(t, o) { o.bubbles && (!t.shadowRoot || o.composed) && o.stopPropagation(); const s = Reflect.construct(o.constructor, [o.type, o]), c = t.dispatchEvent(s); return c || o.preventDefault(), c; } export { p as r };