var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},t={},i={},s=e.parcelRequire55a5;null==s&&((s=function(e){if(e in t)return t[e].exports;if(e in i){var s=i[e];delete i[e];var r={id:e,exports:{}};return t[e]=r,s.call(r.exports,r,r.exports),r.exports}var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}).register=function(e,t){i[e]=t},e.parcelRequire55a5=s);var r=s("1l9f9");const n=Math.floor(20*parseFloat(getComputedStyle(document.documentElement).fontSize));customElements.define("lia-terminal",class extends HTMLElement{initObservers(){let e=this;this.resizeObserver=new(0,r.default)((function(t){var i;e.style.height?(e.height_=e.style.height,e.update(),e.dispatchEvent(new CustomEvent("onchangeheight"))):(null===(i=null==t?void 0:t[0].borderBoxSize)||void 0===i?void 0:i[0].blockSize)>=n&&(e.height_=n+"px",e.update(),e.dispatchEvent(new CustomEvent("onchangeheight")))})),this.mutationObserver=new MutationObserver((()=>{this.update()}))}connectedCallback(){var e,t;null===(e=this.resizeObserver)||void 0===e||e.observe(this),null===(t=this.mutationObserver)||void 0===t||t.observe(this,{childList:!0,subtree:!0})}disconnectedCallback(){this.cleanup()}cleanup(){this.resizeObserver&&(this.resizeObserver.unobserve(this),this.resizeObserver.disconnect(),this.resizeObserver=void 0),this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=void 0)}update(){this.height_&&(this.style.maxHeight="none",this.style.height=this.height_),this.scrollTop=this.scrollHeight}get height(){return this.height_}set height(e){this.height_!=e&&(this.height_=e,this.update())}constructor(){super(),this.initObservers()}});