const panel=Editor.require("packages://bitmap-font/panel/font.js");function loadCss(e,t){e&&(Array.isArray(t)||(t=[t]),t.forEach((t=>{const a=CSS.escape(t);if(!e.querySelector(`#${a}`)){const n=document.createElement("link");n.rel="stylesheet",n.href=t,n.id=a,e.appendChild(n)}})))}Editor.Panel.extend({template:'<div id="app" style="width:100%;height:100%;display:flex;">font</div>',messages:{},ready(...e){loadCss(this.shadowRoot,"packages://bitmap-font/panel/font.css"),loadCss(document.head,"packages://bitmap-font/panel/font.css");let t=panel;panel&&panel.default&&(t=panel.default);let a=t;if("function"==typeof t&&(a=new t),a.hasOwnProperty("ready")&&"function"==typeof a.ready){const t=this.shadowRoot.getElementById("app");a.ready(t||this.shadowRoot,e)}}});