import{aq as p,aN as w}from"./app-QjDgb7aF.js";function c(e,o){let t=e.startsWith("http://")||e.startsWith("https://")?e:p+e;if(t=w(t,"zen"),o){const i=o.getBoundingClientRect(),h=parseInt(getComputedStyle(o,"").width,10),n=parseInt(getComputedStyle(o,"").height,10),s=window.screenX+i.left,d=window.screenY+i.top;window.open(t,t,`width=${h}, height=${n}, top=${d}, left=${s}`)}else{const n=window.top.outerHeight/2+window.top.screenY-250,s=window.top.outerWidth/2+window.top.screenX-400/2;window.open(t,t,`width=400, height=500, top=${n}, left=${s}`)}}export{c as p};
//# sourceMappingURL=popout-k81uBT4r.js.map
