import{n as e}from"./BNTlsKDJ.js";import{X as t,bt as n,ht as r,vt as i}from"./BT3KAag_.js";var a=e({agentOverlay:()=>u}),o=`sg-agent-open`;function s(){return typeof localStorage>`u`?!1:localStorage.getItem(o)===`1`}function c(e){if(!(typeof localStorage>`u`))try{localStorage.setItem(o,e?`1`:`0`)}catch{}}function l(){let e=n(r(s()));function a(t,n=!0){i(e,t,!0),n&&c(t)}return{get open(){return t(e)},toggle(){a(!t(e))},show(e){a(!0,e?.persist??!0)},hide(){a(!1)}}}var u=l();export{a as n,u as t};