class HAXApp extends HTMLElement{constructor(){super(),this.eventName="hax-register-app"}static get tag(){return"hax-app"}connectedCallback(){void 0!==this.data&&("string"==typeof this.data&&(this.data=JSON.parse(this.data)),this.dispatchEvent(new CustomEvent(this.eventName,{bubbles:!0,composed:!0,cancelable:!1,detail:this.data})))}}customElements.define(HAXApp.tag,HAXApp);class HAXStax extends HAXApp{constructor(){super(),this.eventName="hax-register-stax"}static get tag(){return"hax-stax"}}customElements.define(HAXStax.tag,HAXStax);export{HAXApp,HAXStax};