import{Ident as t}from"../../tokenizer/types.mjs";import"../../tokenizer/char-code-definitions.mjs";import"../../tokenizer/TokenStream.mjs";const e="Nth",o={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function i(){this.skipSC();const t=this.tokenStart;let e,o=t,i=null;return e=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),o=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),i=this.SelectorList(),o=this.tokenStart),{type:"Nth",loc:this.getLocation(t,o),nth:e,selector:i}}function s(e){this.node(e.nth),null!==e.selector&&(this.token(t,"of"),this.node(e.selector))}export{s as generate,e as name,i as parse,o as structure};