YUI.add("selector-css3",function(d,e){d.Selector._reNth=/^(?:([\-]?\d*)(n){1}|(odd|even)$)*([\-+]?\d*)$/,d.Selector._getNth=function(e,t,n,r){var o,c,l,i,u,a;if(d.Selector._reNth.test(t),o=parseInt(RegExp.$1,10),t=RegExp.$2,c=RegExp.$3,l=parseInt(RegExp.$4,10)||0,i=d.DOM._children(e.parentNode,n),c?(o=2,t="n",l="odd"===c?1:0):isNaN(o)&&(o=t?1:0),0===o)return i[(l=r?i.length-l+1:l)-1]===e;if(o<0&&(r=!!r,o=Math.abs(o)),r){for(u=i.length-l,a=i.length;0<=u;u-=o)if(u<a&&i[u]===e)return!0}else for(u=l-1,a=i.length;u<a;u+=o)if(0<=u&&i[u]===e)return!0;return!1},d.mix(d.Selector.pseudos,{root:function(e){return e===e.ownerDocument.documentElement},"nth-child":function(e,t){return d.Selector._getNth(e,t)},"nth-last-child":function(e,t){return d.Selector._getNth(e,t,null,!0)},"nth-of-type":function(e,t){return d.Selector._getNth(e,t,e.tagName)},"nth-last-of-type":function(e,t){return d.Selector._getNth(e,t,e.tagName,!0)},"last-child":function(e){var t=d.DOM._children(e.parentNode);return t[t.length-1]===e},"first-of-type":function(e){return d.DOM._children(e.parentNode,e.tagName)[0]===e},"last-of-type":function(e){var t=d.DOM._children(e.parentNode,e.tagName);return t[t.length-1]===e},"only-child":function(e){var t=d.DOM._children(e.parentNode);return 1===t.length&&t[0]===e},"only-of-type":function(e){var t=d.DOM._children(e.parentNode,e.tagName);return 1===t.length&&t[0]===e},empty:function(e){return 0===e.childNodes.length},not:function(e,t){return!d.Selector.test(e,t)},contains:function(e,t){return-1<(e.innerText||e.textContent||"").indexOf(t)},checked:function(e){return!0===e.checked||!0===e.selected},enabled:function(e){return e.disabled!==undefined&&!e.disabled},disabled:function(e){return e.disabled}}),d.mix(d.Selector.operators,{"^=":"^{val}","$=":"{val}$","*=":"{val}"}),d.Selector.combinators["~"]={axis:"previousSibling"}},"patched-v3.18.7",{requires:["selector-native","selector-css2"]});