");const Pt=e=>{let r;const[o]=Z(e,["onOpen","onClose","isOpen","value"]),[t,a]=(f((()=>{r&&(r.innerHTML=function(e){return(e=(e="string"!=typeof e?JSON.stringify(e,void 0,2):e).replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,(function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""}))}(JSON.stringify(e?.value,void 0,2)))})),b(o.isOpen??!1)),l=(P((()=>{be(e.isOpen)||e.isOpen===t()||n()})),e=>{e.stopPropagation()}),i=()=>{a(!1),o.onClose?.(),document.body.style.overflow="auto"},n=()=>{t()?i():(a(!0),o.onOpen?.(),document.body.style.overflow="hidden")};return V(z,{get when(){return t()},get children(){return[(se(a=At(),Ae),a),(a=bt(),o=a.firstChild,t=o.nextSibling.nextSibling.firstChild.firstChild,a.style.setProperty("z-index","1100"),a.addEventListener("click",i),se(o,Ae),t.style.setProperty("background-color","transparent"),t.style.setProperty("margin-left","20px"),t.style.setProperty("margin-right","20px"),t.addEventListener("click",l),t.addEventListener("pointerdown",l),se(t,(()=>{const o=T((()=>!!e.value));return()=>{return o()&&(t=(e=Mt()).firstChild,e.style.setProperty("background","white"),e.style.setProperty("margin","auto"),e.style.setProperty("padding","7px"),"function"==typeof(a=r)?de(a,t):r=t,e);var e,t,a}})()),a)];var o,t,a}})},Tt=te('