 (!this.matches(":popover-open")) {
                if (document.startViewTransition) {
                  document.startViewTransition(() => {
                    this.showPopover();
                  });
                } else {
                  this.showPopover();
                }
              }
            }
          });

          const originalClickEvent = this.trigger.onclick;
          this.trigger.onclick = (e) => {
            if (!this.matches(":popover-open")) {
              if (document.sta