import{__exports as i}from"../../../../_virtual/guards.mjs";import{__require as e}from"./types.mjs";var r;function n(){if(r)return i;r=1,i.__esModule=!0,i.isComment=i.isCombinator=i.isClassName=i.isAttribute=void 0,i.isContainer=function(i){return!(!o(i)||!i.walk)},i.isIdentifier=void 0,i.isNamespace=function(i){return u(i)||m(i)},i.isNesting=void 0,i.isNode=o,i.isPseudo=void 0,i.isPseudoClass=function(i){return b(i)&&!I(i)},i.isPseudoElement=I,i.isUniversal=i.isTag=i.isString=i.isSelector=i.isRoot=void 0;var n,s=e(),t=((n={})[s.ATTRIBUTE]=!0,n[s.CLASS]=!0,n[s.COMBINATOR]=!0,n[s.COMMENT]=!0,n[s.ID]=!0,n[s.NESTING]=!0,n[s.PSEUDO]=!0,n[s.ROOT]=!0,n[s.SELECTOR]=!0,n[s.STRING]=!0,n[s.TAG]=!0,n[s.UNIVERSAL]=!0,n);function o(i){return"object"==typeof i&&t[i.type]}function a(i,e){return o(e)&&e.type===i}var u=a.bind(null,s.ATTRIBUTE);i.isAttribute=u;var l=a.bind(null,s.CLASS);i.isClassName=l;var v=a.bind(null,s.COMBINATOR);i.isCombinator=v;var d=a.bind(null,s.COMMENT);i.isComment=d;var T=a.bind(null,s.ID);i.isIdentifier=T;var C=a.bind(null,s.NESTING);i.isNesting=C;var b=a.bind(null,s.PSEUDO);i.isPseudo=b;var N=a.bind(null,s.ROOT);i.isRoot=N;var S=a.bind(null,s.SELECTOR);i.isSelector=S;var f=a.bind(null,s.STRING);i.isString=f;var m=a.bind(null,s.TAG);i.isTag=m;var E=a.bind(null,s.UNIVERSAL);function I(i){return b(i)&&i.value&&(i.value.startsWith("::")||":before"===i.value.toLowerCase()||":after"===i.value.toLowerCase()||":first-letter"===i.value.toLowerCase()||":first-line"===i.value.toLowerCase())}return i.isUniversal=E,i}export{n as __require};