import{n as e}from"./chunk-DR8-3Aex.js";import{a as t,n}from"./env-C2A9gV_G.js";import{r,t as i}from"./execFileNoThrow-azCkYhmF.js";import{c as a,o}from"./constants-BljlAJOX.js";function s(){return!!g}async function c(){return v===null&&(v=!!g),v}function l(){return _||null}async function u(){return(await i(o,[`-V`])).code===0}async function d(){return process.env.WT_SESSION?!0:(await i(`where.exe`,[`wt.exe`])).code===0}function f(){if(y!==null)return y;let e=process.env.TERM_PROGRAM,t=!!process.env.ITERM_SESSION_ID,r=n.terminal===`iTerm.app`;return y=e===`iTerm.app`||t||r,y}function p(){return b===null&&(b=!!process.env.WT_SESSION),b}async function m(){return(await i(`it2`,[`session`,`list`])).code===0}function h(){v=null,y=null,b=null}var g,_,v,y,b,x,S=e((()=>{t(),r(),a(),g=process.env.TMUX,_=process.env.TMUX_PANE,v=null,y=null,b=null,x=`it2`}));export{p as a,m as c,h as d,f as i,u as l,l as n,c as o,S as r,s,x as t,d as u};