function(){return function(){function h(a){throw a;}var i=void 0,j=!0,k=null,l=!1;function m(a){return function(){return this[a]}}function aa(a){return function(){return a}}var p=this;function q(a){return"string"==typeof a}Math.floor(2147483648*Math.random()).toString(36);function r(a,b){function c(){}c.prototype=b.prototype;a.ca=b.prototype;a.prototype=new c};var ba=window;function s(a){Error.captureStackTrace?Error.captureStackTrace(this,s):this.stack=Error().stack||"";a&&(this.message=String(a))}r(s,Error);s.prototype.name="CustomError";function ca(a,b){for(var c=1;c<arguments.length;c++)var d=String(arguments[c]).replace(/\$/g,"$$$$"),a=a.replace(/\%s/,d);return a}
function da(a,b){for(var c=0,d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=String(b).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var n=d[g]||"",B=e[g]||"",C=RegExp("(\\d*)(\\D*)","g"),oa=RegExp("(\\d*)(\\D*)","g");do{var E=C.exec(n)||["","",""],F=oa.exec(B)||["","",""];if(0==E[0].length&&0==F[0].length)break;c=((0==E[1].length?0:parseInt(E[1],10))<(0==F[1].length?0:parseInt(F[1],10))?-1:(0==E[1].length?0:parseInt(E[1],10))>(0==F[1].length?
0:parseInt(F[1],10))?1:0)||((0==E[2].length)<(0==F[2].length)?-1:(0==E[2].length)>(0==F[2].length)?1:0)||(E[2]<F[2]?-1:E[2]>F[2]?1:0)}while(0==c)}return c};function ea(a,b){b.unshift(a);s.call(this,ca.apply(k,b));b.shift();this.$=a}r(ea,s);ea.prototype.name="AssertionError";function fa(a,b,c){if(!a){var d=Array.prototype.slice.call(arguments,2),e="Assertion failed";if(b)var e=e+(": "+b),f=d;h(new ea(""+e,f||[]))}};var ga=Array.prototype;function t(a,b){for(var c=a.length,d=q(a)?a.split(""):a,e=0;e<c;e++)e in d&&b.call(i,d[e],e,a)}function ha(a,b){for(var c=a.length,d=[],e=0,f=q(a)?a.split(""):a,g=0;g<c;g++)if(g in f){var n=f[g];b.call(i,n,g,a)&&(d[e++]=n)}return d}function ia(a,b,c){if(a.reduce)return a.reduce(b,c);var d=c;t(a,function(c,f){d=b.call(i,d,c,f,a)});return d}function ja(a,b){for(var c=a.length,d=q(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(i,d[e],e,a))return j;return l}
function ka(a){return ga.concat.apply(ga,arguments)}function la(a,b,c){fa(a.length!=k);return 2>=arguments.length?ga.slice.call(a,b):ga.slice.call(a,b,c)};function u(a,b){this.code=a;this.message=b||"";this.name=ma[a]||ma[13];var c=Error(this.message);c.name=this.name;this.stack=c.stack||""}r(u,Error);
var ma={7:"NoSuchElementError",8:"NoSuchFrameError",9:"UnknownCommandError",10:"StaleElementReferenceError",11:"ElementNotVisibleError",12:"InvalidElementStateError",13:"UnknownError",15:"ElementNotSelectableError",19:"XPathLookupError",23:"NoSuchWindowError",24:"InvalidCookieDomainError",25:"UnableToSetCookieError",26:"ModalDialogOpenedError",27:"NoModalDialogOpenError",28:"ScriptTimeoutError",32:"InvalidSelectorError",35:"SqlDatabaseError",34:"MoveTargetOutOfBoundsError"};
u.prototype.toString=function(){return this.name+": "+this.message};var v,na,pa,qa;function w(){return p.navigator?p.navigator.userAgent:k}qa=pa=na=v=l;var ra;if(ra=w()){var sa=p.navigator;v=0==ra.indexOf("Opera");na=!v&&-1!=ra.indexOf("MSIE");pa=!v&&-1!=ra.indexOf("WebKit");qa=!v&&!pa&&"Gecko"==sa.product}var ta=v,x=na,ua=qa,va=pa;function wa(){var a=p.document;return a?a.documentMode:i}var y;
a:{var xa="",z;if(ta&&p.opera)var ya=p.opera.version,xa="function"==typeof ya?ya():ya;else if(ua?z=/rv\:([^\);]+)(\)|;)/:x?z=/MSIE\s+([^\);]+)(\)|;)/:va&&(z=/WebKit\/(\S+)/),z)var za=z.exec(w()),xa=za?za[1]:"";if(x){var Aa=wa();if(Aa>parseFloat(xa)){y=String(Aa);break a}}y=xa}var Ba={};function Ca(a){Ba[a]||(Ba[a]=0<=da(y,a))}var Da=p.document,A=!Da||!x?i:wa()||("CSS1Compat"==Da.compatMode?parseInt(y,10):5);var Ea;!ua&&!x||x&&x&&9<=A||ua&&Ca("1.9.1");x&&Ca("9");function Fa(a,b){this.x=a!==i?a:0;this.y=b!==i?b:0}Fa.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function D(a,b){this.width=a;this.height=b}D.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};D.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};D.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};D.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Ga(a){var b=!va&&"CSS1Compat"==a.compatMode?a.documentElement:a.body,a=a.parentWindow||a.defaultView;return new Fa(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function Ha(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}
function Ia(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if(x&&!(x&&9<=A)){if(9==a.nodeType)return-1;if(9==b.nodeType)return 1}if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.parentNode;return e==f?Ja(a,b):!c&&Ha(e,b)?-1*Ka(a,b):!d&&Ha(f,a)?Ka(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=La(a);c=d.createRange();
c.selectNode(a);c.collapse(j);d=d.createRange();d.selectNode(b);d.collapse(j);return c.compareBoundaryPoints(p.Range.START_TO_END,d)}function Ka(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return Ja(d,a)}function Ja(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}function La(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function G(a){this.H=a||p.document||document}G.prototype.contains=Ha;var Ma,Na,Oa,Pa,Qa,Ra,Sa;Sa=Ra=Qa=Pa=Oa=Na=Ma=l;var H=w();H&&(-1!=H.indexOf("Firefox")?Ma=j:-1!=H.indexOf("Camino")?Na=j:-1!=H.indexOf("iPhone")||-1!=H.indexOf("iPod")?Oa=j:-1!=H.indexOf("iPad")?Pa=j:-1!=H.indexOf("Android")?Qa=j:-1!=H.indexOf("Chrome")?Ra=j:-1!=H.indexOf("Safari")&&(Sa=j));var Ta=Ma,Ua=Na,Va=Oa,Wa=Pa,Xa=Qa,Ya=Ra,Za=Sa;function I(a,b,c){this.f=a;this.Y=b||1;this.h=c||1};var J=x&&!(x&&9<=A),$a=x&&!(x&&8<=A);function ab(a,b,c,d,e){this.f=a;this.nodeName=c;this.nodeValue=d;this.nodeType=2;this.ownerElement=b;this.aa=e;this.parentNode=b}function bb(a,b,c){var d=$a&&"href"==b.nodeName?a.getAttribute(b.nodeName,2):b.nodeValue;return new ab(b,a,b.nodeName,d,c)};function K(a){var b=k,c=a.nodeType;1==c&&(b=a.textContent,b=b==i||b==k?a.innerText:b,b=b==i||b==k?"":b);if("string"!=typeof b)if(J&&"title"==a.nodeName.toLowerCase()&&1==c)b=a.text;else if(9==c||1==c)for(var a=9==c?a.documentElement:a.firstChild,c=0,d=[],b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),J&&"title"==a.nodeName.toLowerCase()&&(b+=a.text),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}else b=a.nodeValue;return""+b}
function L(a,b,c){if(b===k)return j;try{if(!a.getAttribute)return l}catch(d){return l}$a&&"class"==b&&(b="className");return c==k?!!a.getAttribute(b):a.getAttribute(b,2)==c}function M(a,b,c,d,e){return(J?cb:db).call(k,a,b,q(c)?c:k,q(d)?d:k,e||new N)}
function cb(a,b,c,d,e){if(8==a.g||c&&a.g===k){var f=b.all;if(!f)return e;a=eb(a);if("*"!=a&&(f=b.getElementsByTagName(a),!f))return e;if(c){for(var g=[],n=0;b=f[n++];)L(b,c,d)&&g.push(b);f=g}for(n=0;b=f[n++];)("*"!=a||"!"!=b.tagName)&&e.add(b);return e}fb(a,b,c,d,e);return e}
function db(a,b,c,d,e){b.getElementsByName&&d&&"name"==c&&!x?(b=b.getElementsByName(d),t(b,function(b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),t(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):a instanceof O?fb(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),t(b,function(a){L(a,c,d)&&e.add(a)}));return e}
function gb(a,b,c,d,e){var f;if((8==a.g||c&&a.g===k)&&(f=b.childNodes)){var g=eb(a);if("*"!=g&&(f=ha(f,function(a){return a.tagName&&a.tagName.toLowerCase()==g}),!f))return e;c&&(f=ha(f,function(a){return L(a,c,d)}));t(f,function(a){("*"!=g||"!"!=a.tagName&&!("*"==g&&1!=a.nodeType))&&e.add(a)});return e}return hb(a,b,c,d,e)}function hb(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)L(b,c,d)&&a.matches(b)&&e.add(b);return e}
function fb(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)L(b,c,d)&&a.matches(b)&&e.add(b),fb(a,b,c,d,e)}function eb(a){if(a instanceof O){if(8==a.g)return"!";if(a.g===k)return"*"}return a.getName()};function N(){this.h=this.e=k;this.r=0}function ib(a){this.j=a;this.next=this.p=k}function jb(a,b){if(a.e){if(!b.e)return a}else return b;for(var c=a.e,d=b.e,e=k,f=k,g=0;c&&d;)c.j==d.j||c.j instanceof ab&&d.j instanceof ab&&c.j.f==d.j.f?(f=c,c=c.next,d=d.next):0<Ia(c.j,d.j)?(f=d,d=d.next):(f=c,c=c.next),(f.p=e)?e.next=f:a.e=f,e=f,g++;for(f=c||d;f;)f.p=e,e=e.next=f,g++,f=f.next;a.h=e;a.r=g;return a}
N.prototype.unshift=function(a){a=new ib(a);a.next=this.e;this.h?this.e.p=a:this.e=this.h=a;this.e=a;this.r++};N.prototype.add=function(a){a=new ib(a);a.p=this.h;this.e?this.h.next=a:this.e=this.h=a;this.h=a;this.r++};function kb(a){return(a=a.e)?a.j:k}N.prototype.n=m("r");function lb(a){return(a=kb(a))?K(a):""}function P(a,b){return new mb(a,!!b)}function mb(a,b){this.V=a;this.G=(this.t=b)?a.h:a.e;this.C=k}
mb.prototype.next=function(){var a=this.G;if(a==k)return k;var b=this.C=a;this.G=this.t?a.p:a.next;return b.j};mb.prototype.remove=function(){var a=this.V,b=this.C;b||h(Error("Next must be called at least once before remove."));var c=b.p,b=b.next;c?c.next=b:a.e=b;b?b.p=c:a.h=c;a.r--;this.C=k};function Q(a){this.d=a;this.c=this.i=l;this.s=k}Q.prototype.b=m("i");Q.prototype.l=m("s");function R(a,b){var c=a.evaluate(b);return c instanceof N?+lb(c):+c}function S(a,b){var c=a.evaluate(b);return c instanceof N?lb(c):""+c}function T(a,b){var c=a.evaluate(b);return c instanceof N?!!c.n():!!c};function nb(a,b,c){Q.call(this,a.d);this.F=a;this.K=b;this.O=c;this.i=b.b()||c.b();this.c=b.c||c.c;this.F==ob&&(!c.c&&!c.b()&&4!=c.d&&0!=c.d&&b.l()?this.s={name:b.l().name,q:c}:!b.c&&(!b.b()&&4!=b.d&&0!=b.d&&c.l())&&(this.s={name:c.l().name,q:b}))}r(nb,Q);
function U(a,b,c,d,e){var b=b.evaluate(d),c=c.evaluate(d),f;if(b instanceof N&&c instanceof N){f=P(b);for(b=f.next();b;b=f.next()){e=P(c);for(d=e.next();d;d=e.next())if(a(K(b),K(d)))return j}return l}if(b instanceof N||c instanceof N){b instanceof N?e=b:(e=c,c=b);e=P(e);b=typeof c;for(d=e.next();d;d=e.next()){switch(b){case "number":f=+K(d);break;case "boolean":f=!!K(d);break;case "string":f=K(d);break;default:h(Error("Illegal primitive type for comparison."))}if(a(f,c))return j}return l}return e?
"boolean"==typeof b||"boolean"==typeof c?a(!!b,!!c):"number"==typeof b||"number"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}nb.prototype.evaluate=function(a){return this.F.m(this.K,this.O,a)};nb.prototype.toString=function(a){var a=a||"",b=a+"binary expression: "+this.F+"\n",a=a+"  ",b=b+(this.K.toString(a)+"\n");return b+=this.O.toString(a)};function pb(a,b,c,d){this.X=a;this.ba=b;this.d=c;this.m=d}pb.prototype.toString=m("X");var qb={};
function V(a,b,c,d){a in qb&&h(Error("Binary operator already created: "+a));a=new pb(a,b,c,d);return qb[a.toString()]=a}V("div",6,1,function(a,b,c){return R(a,c)/R(b,c)});V("mod",6,1,function(a,b,c){return R(a,c)%R(b,c)});V("*",6,1,function(a,b,c){return R(a,c)*R(b,c)});V("+",5,1,function(a,b,c){return R(a,c)+R(b,c)});V("-",5,1,function(a,b,c){return R(a,c)-R(b,c)});V("<",4,2,function(a,b,c){return U(function(a,b){return a<b},a,b,c)});
V(">",4,2,function(a,b,c){return U(function(a,b){return a>b},a,b,c)});V("<=",4,2,function(a,b,c){return U(function(a,b){return a<=b},a,b,c)});V(">=",4,2,function(a,b,c){return U(function(a,b){return a>=b},a,b,c)});var ob=V("=",3,2,function(a,b,c){return U(function(a,b){return a==b},a,b,c,j)});V("!=",3,2,function(a,b,c){return U(function(a,b){return a!=b},a,b,c,j)});V("and",2,2,function(a,b,c){return T(a,c)&&T(b,c)});V("or",1,2,function(a,b,c){return T(a,c)||T(b,c)});function rb(a,b){b.n()&&4!=a.d&&h(Error("Primary expression must evaluate to nodeset if filter has predicate(s)."));Q.call(this,a.d);this.N=a;this.a=b;this.i=a.b();this.c=a.c}r(rb,Q);rb.prototype.evaluate=function(a){a=this.N.evaluate(a);return sb(this.a,a)};rb.prototype.toString=function(a){var a=a||"",b=a+"Filter: \n",a=a+"  ",b=b+this.N.toString(a);return b+=this.a.toString(a)};function tb(a,b){b.length<a.M&&h(Error("Function "+a.o+" expects at least"+a.M+" arguments, "+b.length+" given"));a.D!==k&&b.length>a.D&&h(Error("Function "+a.o+" expects at most "+a.D+" arguments, "+b.length+" given"));a.W&&t(b,function(b,d){4!=b.d&&h(Error("Argument "+d+" to function "+a.o+" is not of type Nodeset: "+b))});Q.call(this,a.d);this.v=a;this.A=b;this.i=a.i||ja(b,function(a){return a.b()});this.c=a.U&&!b.length||a.T&&!!b.length||ja(b,function(a){return a.c})}r(tb,Q);
tb.prototype.evaluate=function(a){return this.v.m.apply(k,ka(a,this.A))};tb.prototype.toString=function(a){var b=a||"",a=b+"Function: "+this.v+"\n",b=b+"  ";this.A.length&&(a+=b+"Arguments:",b+="  ",a=ia(this.A,function(a,d){return a+"\n"+d.toString(b)},a));return a};function ub(a,b,c,d,e,f,g,n,B){this.o=a;this.d=b;this.i=c;this.U=d;this.T=e;this.m=f;this.M=g;this.D=n!==i?n:g;this.W=!!B}ub.prototype.toString=m("o");var vb={};
function W(a,b,c,d,e,f,g,n){a in vb&&h(Error("Function already created: "+a+"."));vb[a]=new ub(a,b,c,d,l,e,f,g,n)}W("boolean",2,l,l,function(a,b){return T(b,a)},1);W("ceiling",1,l,l,function(a,b){return Math.ceil(R(b,a))},1);W("concat",3,l,l,function(a,b){var c=la(arguments,1);return ia(c,function(b,c){return b+S(c,a)},"")},2,k);W("contains",2,l,l,function(a,b,c){b=S(b,a);a=S(c,a);return-1!=b.indexOf(a)},2);W("count",1,l,l,function(a,b){return b.evaluate(a).n()},1,1,j);W("false",2,l,l,aa(l),0);
W("floor",1,l,l,function(a,b){return Math.floor(R(b,a))},1);
W("id",4,l,l,function(a,b){function c(a){if(J){var b=e.all[a];if(b){if(b.nodeType&&a==b.id)return b;if(b.length){var c;a:{c=function(b){return a==b.id};for(var d=b.length,f=q(b)?b.split(""):b,g=0;g<d;g++)if(g in f&&c.call(i,f[g])){c=g;break a}c=-1}return 0>c?k:q(b)?b.charAt(c):b[c]}}return k}return e.getElementById(a)}var d=a.f,e=9==d.nodeType?d:d.ownerDocument,d=S(b,a).split(/\s+/),f=[];t(d,function(a){var a=c(a),b;if(b=a){a:if(q(f))b=!q(a)||1!=a.length?-1:f.indexOf(a,0);else{for(b=0;b<f.length;b++)if(b in
f&&f[b]===a)break a;b=-1}b=!(0<=b)}b&&f.push(a)});f.sort(Ia);var g=new N;t(f,function(a){g.add(a)});return g},1);W("lang",2,l,l,aa(l),1);W("last",1,j,l,function(a){1!=arguments.length&&h(Error("Function last expects ()"));return a.h},0);W("local-name",3,l,j,function(a,b){var c=b?kb(b.evaluate(a)):a.f;return c?c.nodeName.toLowerCase():""},0,1,j);W("name",3,l,j,function(a,b){var c=b?kb(b.evaluate(a)):a.f;return c?c.nodeName.toLowerCase():""},0,1,j);W("namespace-uri",3,j,l,aa(""),0,1,j);
W("normalize-space",3,l,j,function(a,b){return(b?S(b,a):K(a.f)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);W("not",2,l,l,function(a,b){return!T(b,a)},1);W("number",1,l,j,function(a,b){return b?R(b,a):+K(a.f)},0,1);W("position",1,j,l,function(a){return a.Y},0);W("round",1,l,l,function(a,b){return Math.round(R(b,a))},1);W("starts-with",2,l,l,function(a,b,c){b=S(b,a);a=S(c,a);return 0==b.lastIndexOf(a,0)},2);W("string",3,l,j,function(a,b){return b?S(b,a):K(a.f)},0,1);
W("string-length",1,l,j,function(a,b){return(b?S(b,a):K(a.f)).length},0,1);W("substring",3,l,l,function(a,b,c,d){c=R(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?R(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";var c=Math.round(c)-1,e=Math.max(c,0),a=S(b,a);if(Infinity==d)return a.substring(e);b=Math.round(d);return a.substring(e,c+b)},2,3);W("substring-after",3,l,l,function(a,b,c){b=S(b,a);a=S(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
W("substring-before",3,l,l,function(a,b,c){b=S(b,a);a=S(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);W("sum",1,l,l,function(a,b){for(var c=P(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+=+K(e);return d},1,1,j);W("translate",3,l,l,function(a,b,c,d){for(var b=S(b,a),c=S(c,a),e=S(d,a),a=[],d=0;d<c.length;d++){var f=c.charAt(d);f in a||(a[f]=e.charAt(d))}c="";for(d=0;d<b.length;d++)f=b.charAt(d),c+=f in a?a[f]:f;return c},3);W("true",2,l,l,aa(j),0);function O(a,b){this.Q=a;this.L=b!==i?b:k;this.g=k;switch(a){case "comment":this.g=8;break;case "text":this.g=3;break;case "processing-instruction":this.g=7;break;case "node":break;default:h(Error("Unexpected argument"))}}O.prototype.matches=function(a){return this.g===k||this.g==a.nodeType};O.prototype.getName=m("Q");O.prototype.toString=function(a){var a=a||"",b=a+"kindtest: "+this.Q;this.L===k||(b+="\n"+this.L.toString(a+"  "));return b};function wb(a){Q.call(this,3);this.P=a.substring(1,a.length-1)}r(wb,Q);wb.prototype.evaluate=m("P");wb.prototype.toString=function(a){return(a||"")+"literal: "+this.P};function xb(a){Q.call(this,1);this.R=a}r(xb,Q);xb.prototype.evaluate=m("R");xb.prototype.toString=function(a){return(a||"")+"number: "+this.R};function yb(a,b){Q.call(this,a.d);this.J=a;this.u=b;this.i=a.b();this.c=a.c;if(1==this.u.length){var c=this.u[0];!c.B&&c.k==zb&&(c=c.z,"*"!=c.getName()&&(this.s={name:c.getName(),q:k}))}}r(yb,Q);function Ab(){Q.call(this,4)}r(Ab,Q);Ab.prototype.evaluate=function(a){var b=new N,a=a.f;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};Ab.prototype.toString=function(a){return a+"RootHelperExpr"};function Bb(){Q.call(this,4)}r(Bb,Q);Bb.prototype.evaluate=function(a){var b=new N;b.add(a.f);return b};
Bb.prototype.toString=function(a){return a+"ContextHelperExpr"};
yb.prototype.evaluate=function(a){var b=this.J.evaluate(a);b instanceof N||h(Error("FilterExpr must evaluate to nodeset."));for(var a=this.u,c=0,d=a.length;c<d&&b.n();c++){var e=a[c],f=P(b,e.k.t),g;if(!e.b()&&e.k==Cb){for(g=f.next();(b=f.next())&&(!g.contains||g.contains(b))&&b.compareDocumentPosition(g)&8;g=b);b=e.evaluate(new I(g))}else if(!e.b()&&e.k==Db)g=f.next(),b=e.evaluate(new I(g));else{g=f.next();for(b=e.evaluate(new I(g));(g=f.next())!=k;)g=e.evaluate(new I(g)),b=jb(b,g)}}return b};
yb.prototype.toString=function(a){var b=a||"",c=b+"PathExpr:\n",b=b+"  ",c=c+this.J.toString(b);this.u.length&&(c+=b+"Steps:\n",b+="  ",t(this.u,function(a){c+=a.toString(b)}));return c};function X(a,b){this.a=a;this.t=!!b}function sb(a,b,c){for(c=c||0;c<a.a.length;c++)for(var d=a.a[c],e=P(b),f=b.n(),g,n=0;g=e.next();n++){var B=a.t?f-n:n+1;g=d.evaluate(new I(g,B,f));var C;"number"==typeof g?C=B==g:"string"==typeof g||"boolean"==typeof g?C=!!g:g instanceof N?C=0<g.n():h(Error("Predicate.evaluate returned an unexpected type."));C||e.remove()}return b}X.prototype.l=function(){return 0<this.a.length?this.a[0].l():k};
X.prototype.b=function(){for(var a=0;a<this.a.length;a++){var b=this.a[a];if(b.b()||1==b.d||0==b.d)return j}return l};X.prototype.n=function(){return this.a.length};X.prototype.toString=function(a){var b=a||"",a=b+"Predicates:",b=b+"  ";return ia(this.a,function(a,d){return a+"\n"+b+d.toString(b)},a)};function Eb(a,b,c,d){Q.call(this,4);this.k=a;this.z=b;this.a=c||new X([]);this.B=!!d;b=this.a.l();a.Z&&b&&(a=b.name,a=J?a.toLowerCase():a,this.s={name:a,q:b.q});this.i=this.a.b()}r(Eb,Q);
Eb.prototype.evaluate=function(a){var b=a.f,c=k,c=this.l(),d=k,e=k,f=0;c&&(d=c.name,e=c.q?S(c.q,a):k,f=1);if(this.B)if(!this.b()&&this.k==Fb)c=M(this.z,b,d,e),c=sb(this.a,c,f);else if(a=P((new Eb(Gb,new O("node"))).evaluate(a)),b=a.next())for(c=this.m(b,d,e,f);(b=a.next())!=k;)c=jb(c,this.m(b,d,e,f));else c=new N;else c=this.m(a.f,d,e,f);return c};Eb.prototype.m=function(a,b,c,d){a=this.k.v(this.z,a,b,c);return a=sb(this.a,a,d)};
Eb.prototype.toString=function(a){var a=a||"",b=a+"Step: \n",a=a+"  ",b=b+(a+"Operator: "+(this.B?"//":"/")+"\n");this.k.o&&(b+=a+"Axis: "+this.k+"\n");b+=this.z.toString(a);if(this.a.length)for(var b=b+(a+"Predicates: \n"),c=0;c<this.a.length;c++)var d=c<this.a.length-1?", ":"",b=b+(this.a[c].toString(a)+d);return b};function Hb(a,b,c,d){this.o=a;this.v=b;this.t=c;this.Z=d}Hb.prototype.toString=m("o");var Ib={};
function Y(a,b,c,d){a in Ib&&h(Error("Axis already created: "+a));b=new Hb(a,b,c,!!d);return Ib[a]=b}Y("ancestor",function(a,b){for(var c=new N,d=b;d=d.parentNode;)a.matches(d)&&c.unshift(d);return c},j);Y("ancestor-or-self",function(a,b){var c=new N,d=b;do a.matches(d)&&c.unshift(d);while(d=d.parentNode);return c},j);
var zb=Y("attribute",function(a,b){var c=new N,d=a.getName();if("style"==d&&b.style&&J)return c.add(new ab(b.style,b,"style",b.style.cssText,b.sourceIndex)),c;var e=b.attributes;if(e)if(a instanceof O&&a.g===k||"*"==d)for(var d=b.sourceIndex,f=0,g;g=e[f];f++)J?g.nodeValue&&c.add(bb(b,g,d)):c.add(g);else(g=e.getNamedItem(d))&&(J?g.nodeValue&&c.add(bb(b,g,b.sourceIndex)):c.add(g));return c},l),Fb=Y("child",function(a,b,c,d,e){return(J?gb:hb).call(k,a,b,q(c)?c:k,q(d)?d:k,e||new N)},l,j);
Y("descendant",M,l,j);var Gb=Y("descendant-or-self",function(a,b,c,d){var e=new N;L(b,c,d)&&a.matches(b)&&e.add(b);return M(a,b,c,d,e)},l,j),Cb=Y("following",function(a,b,c,d){var e=new N;do for(var f=b;f=f.nextSibling;)L(f,c,d)&&a.matches(f)&&e.add(f),e=M(a,f,c,d,e);while(b=b.parentNode);return e},l,j);Y("following-sibling",function(a,b){for(var c=new N,d=b;d=d.nextSibling;)a.matches(d)&&c.add(d);return c},l);Y("namespace",function(){return new N},l);
Y("parent",function(a,b){var c=new N;if(9==b.nodeType)return c;if(2==b.nodeType)return c.add(b.ownerElement),c;var d=b.parentNode;a.matches(d)&&c.add(d);return c},l);var Db=Y("preceding",function(a,b,c,d){var e=new N,f=[];do f.unshift(b);while(b=b.parentNode);for(var g=1,n=f.length;g<n;g++){for(var B=[],b=f[g];b=b.previousSibling;)B.unshift(b);for(var C=0,oa=B.length;C<oa;C++)b=B[C],L(b,c,d)&&a.matches(b)&&e.add(b),e=M(a,b,c,d,e)}return e},j,j);
Y("preceding-sibling",function(a,b){for(var c=new N,d=b;d=d.previousSibling;)a.matches(d)&&c.unshift(d);return c},j);Y("self",function(a,b){var c=new N;a.matches(b)&&c.add(b);return c},l);function Jb(a){Q.call(this,1);this.I=a;this.i=a.b();this.c=a.c}r(Jb,Q);Jb.prototype.evaluate=function(a){return-R(this.I,a)};Jb.prototype.toString=function(a){var a=a||"",b=a+"UnaryExpr: -\n";return b+=this.I.toString(a+"  ")};function Kb(a){Q.call(this,4);this.w=a;this.i=ja(this.w,function(a){return a.b()});this.c=ja(this.w,function(a){return a.c})}r(Kb,Q);Kb.prototype.evaluate=function(a){var b=new N;t(this.w,function(c){c=c.evaluate(a);c instanceof N||h(Error("PathExpr must evaluate to NodeSet."));b=jb(b,c)});return b};Kb.prototype.toString=function(a){var b=a||"",c=b+"UnionExpr:\n",b=b+"  ";t(this.w,function(a){c+=a.toString(b)+"\n"});return c.substring(0,c.length)};function Z(a){return(a=a.exec(w()))?a[1]:""}var Lb=function(){if(Ta)return Z(/Firefox\/([0-9.]+)/);if(x||ta)return y;if(Ya)return Z(/Chrome\/([0-9.]+)/);if(Za)return Z(/Version\/([0-9.]+)/);if(Va||Wa){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(w());if(a)return a[1]+"."+a[2]}else{if(Xa)return(a=Z(/Android\s+([0-9.]+)/))?a:Z(/Version\/([0-9.]+)/);if(Ua)return Z(/Camino\/([0-9.]+)/)}return""}();var Mb,Nb,Ob=function(){if(!ua)return l;var a=p.Components;if(!a)return l;try{if(!a.classes)return l}catch(b){return l}var c=a.classes,a=a.interfaces,d=c["@mozilla.org/xpcom/version-comparator;1"].getService(a.nsIVersionComparator),c=c["@mozilla.org/xre/app-info;1"].getService(a.nsIXULAppInfo),e=c.platformVersion,f=c.version;Mb=function(a){d.S(e,""+a)};Nb=function(a){d.S(f,""+a)};return j}(),Pb;if(Xa){var Qb=/Android\s+([0-9\.]+)/.exec(w());Pb=Qb?Qb[1]:"0"}else Pb="0";var Rb=Pb;
Xa&&(Ob?Nb(2.3):Xa?da(Rb,2.3):da(Lb,2.3));!ta&&va&&(Ob?Mb("533"):x?da(A,"533"):Ca("533"));function Sb(a,b){var c=b||ba,d;d=(c||window).document;d="CSS1Compat"==d.compatMode?d.documentElement:d.body;d=new D(d.clientWidth,d.clientHeight);var e=a.x>=d.width?a.x-(d.width-1):0>a.x?a.x:0,f=a.y>=d.height?a.y-(d.height-1):0>a.y?a.y:0,g;g=c.document?new G(La(c.document)):Ea||(Ea=new G);g=Ga(g.H);(0!=e||0!=f)&&c.scrollBy(e,f);c=c.document?new G(La(c.document)):Ea||(Ea=new G);c=Ga(c.H);(g.x+e!=c.x||g.y+f!=c.y)&&h(new u(34,"The target location ("+(a.x+g.x)+", "+(a.y+g.y)+") is not on the webpage."));
c=new Fa(a.x-e,a.y-f);(0>c.x||c.x>=d.width)&&h(new u(34,"The target location ("+c.x+", "+c.y+") should be within the viewport ("+d.width+":"+d.height+") after scrolling."));(0>c.y||c.y>=d.height)&&h(new u(34,"The target location ("+c.x+", "+c.y+") should be within the viewport ("+d.width+":"+d.height+") after scrolling."));return c}var Tb=["_"],$=p;!(Tb[0]in $)&&$.execScript&&$.execScript("var "+Tb[0]);for(var Ub;Tb.length&&(Ub=Tb.shift());)!Tb.length&&Sb!==i?$[Ub]=Sb:$=$[Ub]?$[Ub]:$[Ub]={};; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null,document:typeof window!=undefined?window.document:null}, arguments);}
