function(){return function(){function h(a){throw a;}var i=void 0,k=!0,l=null,m=!1;function n(a){return function(){return this[a]}}function aa(a){return function(){return a}}var o=this;
function ba(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function q(a){return a!==i}function r(a){return"string"==typeof a}function ca(a){return"function"==ba(a)}function da(a){var b=typeof a;return"object"==b&&a!=l||"function"==b}Math.floor(2147483648*Math.random()).toString(36);var ea=Date.now||function(){return+new Date};function t(a,b){function c(){}c.prototype=b.prototype;a.pa=b.prototype;a.prototype=new c};var fa=window;function ga(a){Error.captureStackTrace?Error.captureStackTrace(this,ga):this.stack=Error().stack||"";a&&(this.message=String(a))}t(ga,Error);ga.prototype.name="CustomError";function ha(a){var b=a.length-1;return 0<=b&&a.indexOf(" ",b)==b}function ia(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 ja(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}
function ka(a,b){for(var c=0,d=ja(String(a)).split("."),e=ja(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var j=d[g]||"",p=e[g]||"",s=RegExp("(\\d*)(\\D*)","g"),w=RegExp("(\\d*)(\\D*)","g");do{var H=s.exec(j)||["","",""],S=w.exec(p)||["","",""];if(0==H[0].length&&0==S[0].length)break;c=((0==H[1].length?0:parseInt(H[1],10))<(0==S[1].length?0:parseInt(S[1],10))?-1:(0==H[1].length?0:parseInt(H[1],10))>(0==S[1].length?0:parseInt(S[1],10))?1:0)||((0==H[2].length)<(0==S[2].length)?
-1:(0==H[2].length)>(0==S[2].length)?1:0)||(H[2]<S[2]?-1:H[2]>S[2]?1:0)}while(0==c)}return c};function la(a,b){b.unshift(a);ga.call(this,ia.apply(l,b));b.shift();this.na=a}t(la,ga);la.prototype.name="AssertionError";function ma(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);h(new la(""+e,f||[]))}function na(a,b,c){a||ma("",l,b,Array.prototype.slice.call(arguments,2))}function oa(a,b,c){da(a)||ma("Expected object but got %s: %s.",[ba(a),a],b,Array.prototype.slice.call(arguments,2))};var pa=Array.prototype;function u(a,b){for(var c=a.length,d=r(a)?a.split(""):a,e=0;e<c;e++)e in d&&b.call(i,d[e],e,a)}function qa(a,b){for(var c=a.length,d=[],e=0,f=r(a)?a.split(""):a,g=0;g<c;g++)if(g in f){var j=f[g];b.call(i,j,g,a)&&(d[e++]=j)}return d}function ra(a,b){for(var c=a.length,d=Array(c),e=r(a)?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(i,e[f],f,a));return d}function sa(a,b,c){if(a.reduce)return a.reduce(b,c);var d=c;u(a,function(c,f){d=b.call(i,d,c,f,a)});return d}
function ta(a,b){for(var c=a.length,d=r(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(i,d[e],e,a))return k;return m}function ua(a,b){var c;a:{c=a.length;for(var d=r(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(i,d[e],e,a)){c=e;break a}c=-1}return 0>c?l:r(a)?a.charAt(c):a[c]}function va(a,b){var c;a:if(r(a))c=!r(b)||1!=b.length?-1:a.indexOf(b,0);else{for(c=0;c<a.length;c++)if(c in a&&a[c]===b)break a;c=-1}return 0<=c}function wa(a){return pa.concat.apply(pa,arguments)}
function xa(a,b,c){na(a.length!=l);return 2>=arguments.length?pa.slice.call(a,b):pa.slice.call(a,b,c)};var ya,za,Aa,Ba;function Ca(){return o.navigator?o.navigator.userAgent:l}Ba=Aa=za=ya=m;var Da;if(Da=Ca()){var Ea=o.navigator;ya=0==Da.indexOf("Opera");za=!ya&&-1!=Da.indexOf("MSIE");Aa=!ya&&-1!=Da.indexOf("WebKit");Ba=!ya&&!Aa&&"Gecko"==Ea.product}var v=ya,x=za,y=Ba,z=Aa,Fa;
a:{var Ga="",Ha;if(v&&o.opera)var Ia=o.opera.version,Ga="function"==typeof Ia?Ia():Ia;else if(y?Ha=/rv\:([^\);]+)(\)|;)/:x?Ha=/MSIE\s+([^\);]+)(\)|;)/:z&&(Ha=/WebKit\/(\S+)/),Ha)var Ja=Ha.exec(Ca()),Ga=Ja?Ja[1]:"";if(x){var Ka,La=o.document;Ka=La?La.documentMode:i;if(Ka>parseFloat(Ga)){Fa=String(Ka);break a}}Fa=Ga}var Ma={};function Na(a){return Ma[a]||(Ma[a]=0<=ka(Fa,a))}var Oa={};function Pa(a){return Oa[a]||(Oa[a]=x&&!!document.documentMode&&document.documentMode>=a)};var Qa;!x||Pa(9);!y&&!x||x&&Pa(9)||y&&Na("1.9.1");x&&Na("9");var Ra="BODY";function A(a,b){this.x=q(a)?a:0;this.y=q(b)?b:0}A.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function B(a,b){this.width=a;this.height=b}B.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};B.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};B.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};B.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Sa(a,b){var c={},d;for(d in a)c[d]=b.call(i,a[d],d,a);return c};var Ta=3;function C(a){return a?new Ua(D(a)):Qa||(Qa=new Ua)}function Va(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 Wa(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if((9==a.nodeType||9==b.nodeType)&&x&&!Na(9)){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?Xa(a,b):!c&&Va(e,b)?-1*Ya(a,b):!d&&Va(f,a)?Ya(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=
D(a);c=d.createRange();c.selectNode(a);c.collapse(k);d=d.createRange();d.selectNode(b);d.collapse(k);return c.compareBoundaryPoints(o.Range.START_TO_END,d)}function Ya(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return Xa(d,a)}function Xa(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}function D(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function Za(a,b,c,d){if(a!=l)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||Za(a,b,c,d))return k;a=a.nextSibling}return m}function $a(a,b){for(var a=a.parentNode,c=0;a;){if(b(a))return a;a=a.parentNode;c++}return l}function Ua(a){this.A=a||o.document||document}
function E(a,b,c,d){a=d||a.A;b=b&&"*"!=b?b.toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))c=a.querySelectorAll(b+(c?"."+c:""));else if(c&&a.getElementsByClassName)if(a=a.getElementsByClassName(c),b){for(var d={},e=0,f=0,g;g=a[f];f++)b==g.nodeName&&(d[e++]=g);d.length=e;c=d}else c=a;else if(a=a.getElementsByTagName(b||"*"),c){d={};for(f=e=0;g=a[f];f++)b=g.className,"function"==typeof b.split&&va(b.split(/\s+/),c)&&(d[e++]=g);d.length=e;c=d}else c=a;return c}
function ab(a){var b=a.A,a=!z&&"CSS1Compat"==b.compatMode?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new A(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Ua.prototype.contains=Va;var bb={P:function(a){return!(!a.querySelectorAll||!a.querySelector)},r:function(a,b){a||h(Error("No class name specified"));a=ja(a);1<a.split(/\s+/).length&&h(Error("Compound class names not permitted"));if(bb.P(b))return b.querySelector("."+a.replace(/\./g,"\\."))||l;var c=E(C(b),"*",a,b);return c.length?c[0]:l},k:function(a,b){a||h(Error("No class name specified"));a=ja(a);1<a.split(/\s+/).length&&h(Error("Compound class names not permitted"));return bb.P(b)?b.querySelectorAll("."+a.replace(/\./g,
"\\.")):E(C(b),"*",a,b)}};var cb,db,eb,fb,gb,hb,ib;ib=hb=gb=fb=eb=db=cb=m;var F=Ca();F&&(-1!=F.indexOf("Firefox")?cb=k:-1!=F.indexOf("Camino")?db=k:-1!=F.indexOf("iPhone")||-1!=F.indexOf("iPod")?eb=k:-1!=F.indexOf("iPad")?fb=k:-1!=F.indexOf("Android")?gb=k:-1!=F.indexOf("Chrome")?hb=k:-1!=F.indexOf("Safari")&&(ib=k));var jb=v,kb=x,lb=cb,mb=db,nb=eb,ob=fb,pb=gb,qb=hb,rb=ib;function sb(a){return(a=a.exec(Ca()))?a[1]:""}var tb=function(){if(lb)return sb(/Firefox\/([0-9.]+)/);if(kb||jb)return Fa;if(qb)return sb(/Chrome\/([0-9.]+)/);if(rb)return sb(/Version\/([0-9.]+)/);if(nb||ob){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Ca());if(a)return a[1]+"."+a[2]}else{if(pb)return(a=sb(/Android\s+([0-9.]+)/))?a:sb(/Version\/([0-9.]+)/);if(mb)return sb(/Camino\/([0-9.]+)/)}return""}();var ub,vb;function wb(a){return xb?ub(a):x?0<=ka(document.documentMode,a):Na(a)}var xb=function(){if(!y)return m;var a=o.Components;if(!a)return m;try{if(!a.classes)return m}catch(b){return m}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;ub=function(a){return 0<=d.fa(e,""+a)};vb=function(a){return 0<=d.fa(f,""+a)};return k}(),yb;
if(pb){var zb=/Android\s+([0-9\.]+)/.exec(Ca());yb=zb?zb[1]:"0"}else yb="0";var Ab=yb,Bb=x&&9<=document.documentMode,Cb=x&&!Bb;var Db={r:function(a,b){!ca(b.querySelector)&&(x&&wb(8)&&!da(b.querySelector))&&h(Error("CSS selection is not supported"));a||h(Error("No selector specified"));var a=ja(a),c=b.querySelector(a);return c&&1==c.nodeType?c:l},k:function(a,b){!ca(b.querySelectorAll)&&(x&&wb(8)&&!da(b.querySelector))&&h(Error("CSS selection is not supported"));a||h(Error("No selector specified"));a=ja(a);return b.querySelectorAll(a)}};var Eb={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var Fb="background-color border-top-color border-right-color border-bottom-color border-left-color color outline-color".split(" "),Gb=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/;function Hb(a){Ib.test(a)||h(Error("'"+a+"' is not a valid hex color"));4==a.length&&(a=a.replace(Gb,"#$1$1$2$2$3$3"));return a.toLowerCase()}var Ib=/^#(?:[0-9a-f]{3}){1,2}$/i,Jb=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i;
function Kb(a){var b=a.match(Jb);if(b){var a=Number(b[1]),c=Number(b[2]),d=Number(b[3]),b=Number(b[4]);if(0<=a&&255>=a&&0<=c&&255>=c&&0<=d&&255>=d&&0<=b&&1>=b)return[a,c,d,b]}return[]}var Lb=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function Mb(a){var b=a.match(Lb);if(b){var a=Number(b[1]),c=Number(b[2]),b=Number(b[3]);if(0<=a&&255>=a&&0<=c&&255>=c&&0<=b&&255>=b)return[a,c,b]}return[]};function G(a,b){this.code=a;this.message=b||"";this.name=Nb[a]||Nb[13];var c=Error(this.message);c.name=this.name;this.stack=c.stack||""}t(G,Error);
var Nb={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"};
G.prototype.toString=function(){return this.name+": "+this.message};function Ob(a,b,c){this.c=a;this.la=b||1;this.j=c||1};var I=x&&!Pa(9),Pb=x&&!Pa(8);function Qb(a,b,c,d,e){this.c=a;this.nodeName=c;this.nodeValue=d;this.nodeType=2;this.ownerElement=b;this.oa=e;this.parentNode=b}function Rb(a,b,c){var d=Pb&&"href"==b.nodeName?a.getAttribute(b.nodeName,2):b.nodeValue;return new Qb(b,a,b.nodeName,d,c)};function Sb(a){this.O=a;this.C=0}var Tb=RegExp("\\$?(?:(?![0-9-])[\\w-]+:)?(?![0-9-])[\\w-]+|\\/\\/|\\.\\.|::|\\d+(?:\\.\\d*)?|\\.\\d+|\"[^\"]*\"|'[^']*'|[!<>]=|\\s+|.","g"),Ub=/^\s/;function J(a,b){return a.O[a.C+(b||0)]}Sb.prototype.next=function(){return this.O[this.C++]};Sb.prototype.back=function(){this.C--};Sb.prototype.empty=function(){return this.O.length<=this.C};function K(a){var b=l,c=a.nodeType;1==c&&(b=a.textContent,b=b==i||b==l?a.innerText:b,b=b==i||b==l?"":b);if("string"!=typeof b)if(I&&"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),I&&"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===l)return k;try{if(!a.getAttribute)return m}catch(d){return m}Pb&&"class"==b&&(b="className");return c==l?!!a.getAttribute(b):a.getAttribute(b,2)==c}function Vb(a,b,c,d,e){return(I?Wb:Xb).call(l,a,b,r(c)?c:l,r(d)?d:l,e||new M)}
function Wb(a,b,c,d,e){if(a instanceof Yb||8==a.i||c&&a.i===l){var f=b.all;if(!f)return e;a=Zb(a);if("*"!=a&&(f=b.getElementsByTagName(a),!f))return e;if(c){for(var g=[],j=0;b=f[j++];)L(b,c,d)&&g.push(b);f=g}for(j=0;b=f[j++];)("*"!=a||"!"!=b.tagName)&&e.add(b);return e}$b(a,b,c,d,e);return e}
function Xb(a,b,c,d,e){b.getElementsByName&&d&&"name"==c&&!x?(b=b.getElementsByName(d),u(b,function(b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),u(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):a instanceof N?$b(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),u(b,function(a){L(a,c,d)&&e.add(a)}));return e}
function ac(a,b,c,d,e){var f;if((a instanceof Yb||8==a.i||c&&a.i===l)&&(f=b.childNodes)){var g=Zb(a);if("*"!=g&&(f=qa(f,function(a){return a.tagName&&a.tagName.toLowerCase()==g}),!f))return e;c&&(f=qa(f,function(a){return L(a,c,d)}));u(f,function(a){("*"!=g||"!"!=a.tagName&&!("*"==g&&1!=a.nodeType))&&e.add(a)});return e}return bc(a,b,c,d,e)}function bc(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 $b(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)L(b,c,d)&&a.matches(b)&&e.add(b),$b(a,b,c,d,e)}function Zb(a){if(a instanceof N){if(8==a.i)return"!";if(a.i===l)return"*"}return a.getName()};function M(){this.j=this.g=l;this.v=0}function cc(a){this.n=a;this.next=this.s=l}function dc(a,b){if(a.g){if(!b.g)return a}else return b;for(var c=a.g,d=b.g,e=l,f=l,g=0;c&&d;)c.n==d.n||c.n instanceof Qb&&d.n instanceof Qb&&c.n.c==d.n.c?(f=c,c=c.next,d=d.next):0<Wa(c.n,d.n)?(f=d,d=d.next):(f=c,c=c.next),(f.s=e)?e.next=f:a.g=f,e=f,g++;for(f=c||d;f;)f.s=e,e=e.next=f,g++,f=f.next;a.j=e;a.v=g;return a}
M.prototype.unshift=function(a){a=new cc(a);a.next=this.g;this.j?this.g.s=a:this.g=this.j=a;this.g=a;this.v++};M.prototype.add=function(a){a=new cc(a);a.s=this.j;this.g?this.j.next=a:this.g=this.j=a;this.j=a;this.v++};function ec(a){return(a=a.g)?a.n:l}M.prototype.o=n("v");function fc(a){return(a=ec(a))?K(a):""}function gc(a,b){return new hc(a,!!b)}function hc(a,b){this.ia=a;this.Q=(this.t=b)?a.j:a.g;this.K=l}
hc.prototype.next=function(){var a=this.Q;if(a==l)return l;var b=this.K=a;this.Q=this.t?a.s:a.next;return b.n};hc.prototype.remove=function(){var a=this.ia,b=this.K;b||h(Error("Next must be called at least once before remove."));var c=b.s,b=b.next;c?c.next=b:a.g=b;b?b.s=c:a.j=c;a.v--;this.K=l};function O(a){this.f=a;this.e=this.m=m;this.w=l}O.prototype.d=n("m");O.prototype.q=n("w");function P(a,b){var c=a.evaluate(b);return c instanceof M?+fc(c):+c}function Q(a,b){var c=a.evaluate(b);return c instanceof M?fc(c):""+c}function ic(a,b){var c=a.evaluate(b);return c instanceof M?!!c.o():!!c};function jc(a,b,c){O.call(this,a.f);this.N=a;this.U=b;this.$=c;this.m=b.d()||c.d();this.e=b.e||c.e;this.N==kc&&(!c.e&&!c.d()&&4!=c.f&&0!=c.f&&b.q()?this.w={name:b.q().name,u:c}:!b.e&&(!b.d()&&4!=b.f&&0!=b.f&&c.q())&&(this.w={name:c.q().name,u:b}))}t(jc,O);
function lc(a,b,c,d,e){var b=b.evaluate(d),c=c.evaluate(d),f;if(b instanceof M&&c instanceof M){f=gc(b);for(b=f.next();b;b=f.next()){e=gc(c);for(d=e.next();d;d=e.next())if(a(K(b),K(d)))return k}return m}if(b instanceof M||c instanceof M){b instanceof M?e=b:(e=c,c=b);e=gc(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 k}return m}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)}jc.prototype.evaluate=function(a){return this.N.l(this.U,this.$,a)};jc.prototype.toString=function(a){var a=a||"",b=a+"binary expression: "+this.N+"\n",a=a+"  ",b=b+(this.U.toString(a)+"\n");return b+=this.$.toString(a)};function mc(a,b,c,d){this.ka=a;this.Y=b;this.f=c;this.l=d}mc.prototype.toString=n("ka");var nc={};
function R(a,b,c,d){a in nc&&h(Error("Binary operator already created: "+a));a=new mc(a,b,c,d);return nc[a.toString()]=a}R("div",6,1,function(a,b,c){return P(a,c)/P(b,c)});R("mod",6,1,function(a,b,c){return P(a,c)%P(b,c)});R("*",6,1,function(a,b,c){return P(a,c)*P(b,c)});R("+",5,1,function(a,b,c){return P(a,c)+P(b,c)});R("-",5,1,function(a,b,c){return P(a,c)-P(b,c)});R("<",4,2,function(a,b,c){return lc(function(a,b){return a<b},a,b,c)});
R(">",4,2,function(a,b,c){return lc(function(a,b){return a>b},a,b,c)});R("<=",4,2,function(a,b,c){return lc(function(a,b){return a<=b},a,b,c)});R(">=",4,2,function(a,b,c){return lc(function(a,b){return a>=b},a,b,c)});var kc=R("=",3,2,function(a,b,c){return lc(function(a,b){return a==b},a,b,c,k)});R("!=",3,2,function(a,b,c){return lc(function(a,b){return a!=b},a,b,c,k)});R("and",2,2,function(a,b,c){return ic(a,c)&&ic(b,c)});R("or",1,2,function(a,b,c){return ic(a,c)||ic(b,c)});function oc(a,b){b.o()&&4!=a.f&&h(Error("Primary expression must evaluate to nodeset if filter has predicate(s)."));O.call(this,a.f);this.Z=a;this.b=b;this.m=a.d();this.e=a.e}t(oc,O);oc.prototype.evaluate=function(a){a=this.Z.evaluate(a);return pc(this.b,a)};oc.prototype.toString=function(a){var a=a||"",b=a+"Filter: \n",a=a+"  ",b=b+this.Z.toString(a);return b+=this.b.toString(a)};function qc(a,b){b.length<a.X&&h(Error("Function "+a.h+" expects at least"+a.X+" arguments, "+b.length+" given"));a.L!==l&&b.length>a.L&&h(Error("Function "+a.h+" expects at most "+a.L+" arguments, "+b.length+" given"));a.ja&&u(b,function(b,d){4!=b.f&&h(Error("Argument "+d+" to function "+a.h+" is not of type Nodeset: "+b))});O.call(this,a.f);this.B=a;this.H=b;this.m=a.m||ta(b,function(a){return a.d()});this.e=a.ha&&!b.length||a.ga&&!!b.length||ta(b,function(a){return a.e})}t(qc,O);
qc.prototype.evaluate=function(a){return this.B.l.apply(l,wa(a,this.H))};qc.prototype.toString=function(a){var b=a||"",a=b+"Function: "+this.B+"\n",b=b+"  ";this.H.length&&(a+=b+"Arguments:",b+="  ",a=sa(this.H,function(a,d){return a+"\n"+d.toString(b)},a));return a};function rc(a,b,c,d,e,f,g,j,p){this.h=a;this.f=b;this.m=c;this.ha=d;this.ga=e;this.l=f;this.X=g;this.L=q(j)?j:g;this.ja=!!p}rc.prototype.toString=n("h");var sc={};
function T(a,b,c,d,e,f,g,j){a in sc&&h(Error("Function already created: "+a+"."));sc[a]=new rc(a,b,c,d,m,e,f,g,j)}T("boolean",2,m,m,function(a,b){return ic(b,a)},1);T("ceiling",1,m,m,function(a,b){return Math.ceil(P(b,a))},1);T("concat",3,m,m,function(a,b){var c=xa(arguments,1);return sa(c,function(b,c){return b+Q(c,a)},"")},2,l);T("contains",2,m,m,function(a,b,c){b=Q(b,a);a=Q(c,a);return-1!=b.indexOf(a)},2);T("count",1,m,m,function(a,b){return b.evaluate(a).o()},1,1,k);T("false",2,m,m,aa(m),0);
T("floor",1,m,m,function(a,b){return Math.floor(P(b,a))},1);T("id",4,m,m,function(a,b){function c(a){if(I){var b=e.all[a];if(b){if(b.nodeType&&a==b.id)return b;if(b.length)return ua(b,function(b){return a==b.id})}return l}return e.getElementById(a)}var d=a.c,e=9==d.nodeType?d:d.ownerDocument,d=Q(b,a).split(/\s+/),f=[];u(d,function(a){(a=c(a))&&!va(f,a)&&f.push(a)});f.sort(Wa);var g=new M;u(f,function(a){g.add(a)});return g},1);T("lang",2,m,m,aa(m),1);
T("last",1,k,m,function(a){1!=arguments.length&&h(Error("Function last expects ()"));return a.j},0);T("local-name",3,m,k,function(a,b){var c=b?ec(b.evaluate(a)):a.c;return c?c.nodeName.toLowerCase():""},0,1,k);T("name",3,m,k,function(a,b){var c=b?ec(b.evaluate(a)):a.c;return c?c.nodeName.toLowerCase():""},0,1,k);T("namespace-uri",3,k,m,aa(""),0,1,k);T("normalize-space",3,m,k,function(a,b){return(b?Q(b,a):K(a.c)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);
T("not",2,m,m,function(a,b){return!ic(b,a)},1);T("number",1,m,k,function(a,b){return b?P(b,a):+K(a.c)},0,1);T("position",1,k,m,function(a){return a.la},0);T("round",1,m,m,function(a,b){return Math.round(P(b,a))},1);T("starts-with",2,m,m,function(a,b,c){b=Q(b,a);a=Q(c,a);return 0==b.lastIndexOf(a,0)},2);T("string",3,m,k,function(a,b){return b?Q(b,a):K(a.c)},0,1);T("string-length",1,m,k,function(a,b){return(b?Q(b,a):K(a.c)).length},0,1);
T("substring",3,m,m,function(a,b,c,d){c=P(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?P(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";var c=Math.round(c)-1,e=Math.max(c,0),a=Q(b,a);if(Infinity==d)return a.substring(e);b=Math.round(d);return a.substring(e,c+b)},2,3);T("substring-after",3,m,m,function(a,b,c){b=Q(b,a);a=Q(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
T("substring-before",3,m,m,function(a,b,c){b=Q(b,a);a=Q(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);T("sum",1,m,m,function(a,b){for(var c=gc(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+=+K(e);return d},1,1,k);T("translate",3,m,m,function(a,b,c,d){for(var b=Q(b,a),c=Q(c,a),e=Q(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);T("true",2,m,m,aa(k),0);function N(a,b){this.ca=a;this.V=q(b)?b:l;this.i=l;switch(a){case "comment":this.i=8;break;case "text":this.i=Ta;break;case "processing-instruction":this.i=7;break;case "node":break;default:h(Error("Unexpected argument"))}}function tc(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}N.prototype.matches=function(a){return this.i===l||this.i==a.nodeType};N.prototype.getName=n("ca");
N.prototype.toString=function(a){var a=a||"",b=a+"kindtest: "+this.ca;this.V===l||(b+="\n"+this.V.toString(a+"  "));return b};function uc(a){O.call(this,3);this.ba=a.substring(1,a.length-1)}t(uc,O);uc.prototype.evaluate=n("ba");uc.prototype.toString=function(a){return(a||"")+"literal: "+this.ba};function Yb(a){this.h=a.toLowerCase()}Yb.prototype.matches=function(a){var b=a.nodeType;if(1==b||2==b)return"*"==this.h||this.h==a.nodeName.toLowerCase()?k:this.h==(a.namespaceURI||"http://www.w3.org/1999/xhtml")+":*"};Yb.prototype.getName=n("h");Yb.prototype.toString=function(a){return(a||"")+"nametest: "+this.h};function vc(a){O.call(this,1);this.da=a}t(vc,O);vc.prototype.evaluate=n("da");vc.prototype.toString=function(a){return(a||"")+"number: "+this.da};function wc(a,b){O.call(this,a.f);this.S=a;this.z=b;this.m=a.d();this.e=a.e;if(1==this.z.length){var c=this.z[0];!c.J&&c.p==xc&&(c=c.G,"*"!=c.getName()&&(this.w={name:c.getName(),u:l}))}}t(wc,O);function yc(){O.call(this,4)}t(yc,O);yc.prototype.evaluate=function(a){var b=new M,a=a.c;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};yc.prototype.toString=function(a){return a+"RootHelperExpr"};function zc(){O.call(this,4)}t(zc,O);zc.prototype.evaluate=function(a){var b=new M;b.add(a.c);return b};
zc.prototype.toString=function(a){return a+"ContextHelperExpr"};
wc.prototype.evaluate=function(a){var b=this.S.evaluate(a);b instanceof M||h(Error("FilterExpr must evaluate to nodeset."));for(var a=this.z,c=0,d=a.length;c<d&&b.o();c++){var e=a[c],f=gc(b,e.p.t),g;if(!e.d()&&e.p==Ac){for(g=f.next();(b=f.next())&&(!g.contains||g.contains(b))&&b.compareDocumentPosition(g)&8;g=b);b=e.evaluate(new Ob(g))}else if(!e.d()&&e.p==Bc)g=f.next(),b=e.evaluate(new Ob(g));else{g=f.next();for(b=e.evaluate(new Ob(g));(g=f.next())!=l;)g=e.evaluate(new Ob(g)),b=dc(b,g)}}return b};
wc.prototype.toString=function(a){var b=a||"",c=b+"PathExpr:\n",b=b+"  ",c=c+this.S.toString(b);this.z.length&&(c+=b+"Steps:\n",b+="  ",u(this.z,function(a){c+=a.toString(b)}));return c};function Cc(a,b){this.b=a;this.t=!!b}function pc(a,b,c){for(c=c||0;c<a.b.length;c++)for(var d=a.b[c],e=gc(b),f=b.o(),g,j=0;g=e.next();j++){var p=a.t?f-j:j+1;g=d.evaluate(new Ob(g,p,f));var s;"number"==typeof g?s=p==g:"string"==typeof g||"boolean"==typeof g?s=!!g:g instanceof M?s=0<g.o():h(Error("Predicate.evaluate returned an unexpected type."));s||e.remove()}return b}Cc.prototype.q=function(){return 0<this.b.length?this.b[0].q():l};
Cc.prototype.d=function(){for(var a=0;a<this.b.length;a++){var b=this.b[a];if(b.d()||1==b.f||0==b.f)return k}return m};Cc.prototype.o=function(){return this.b.length};Cc.prototype.toString=function(a){var b=a||"",a=b+"Predicates:",b=b+"  ";return sa(this.b,function(a,d){return a+"\n"+b+d.toString(b)},a)};function Dc(a,b,c,d){O.call(this,4);this.p=a;this.G=b;this.b=c||new Cc([]);this.J=!!d;b=this.b.q();a.ma&&b&&(a=b.name,a=I?a.toLowerCase():a,this.w={name:a,u:b.u});this.m=this.b.d()}t(Dc,O);
Dc.prototype.evaluate=function(a){var b=a.c,c=l,c=this.q(),d=l,e=l,f=0;c&&(d=c.name,e=c.u?Q(c.u,a):l,f=1);if(this.J)if(!this.d()&&this.p==Ec)c=Vb(this.G,b,d,e),c=pc(this.b,c,f);else if(a=gc((new Dc(Fc,new N("node"))).evaluate(a)),b=a.next())for(c=this.l(b,d,e,f);(b=a.next())!=l;)c=dc(c,this.l(b,d,e,f));else c=new M;else c=this.l(a.c,d,e,f);return c};Dc.prototype.l=function(a,b,c,d){a=this.p.B(this.G,a,b,c);return a=pc(this.b,a,d)};
Dc.prototype.toString=function(a){var a=a||"",b=a+"Step: \n",a=a+"  ",b=b+(a+"Operator: "+(this.J?"//":"/")+"\n");this.p.h&&(b+=a+"Axis: "+this.p+"\n");b+=this.G.toString(a);if(this.b.length)for(var b=b+(a+"Predicates: \n"),c=0;c<this.b.length;c++)var d=c<this.b.length-1?", ":"",b=b+(this.b[c].toString(a)+d);return b};function Gc(a,b,c,d){this.h=a;this.B=b;this.t=c;this.ma=d}Gc.prototype.toString=n("h");var Hc={};
function U(a,b,c,d){a in Hc&&h(Error("Axis already created: "+a));b=new Gc(a,b,c,!!d);return Hc[a]=b}U("ancestor",function(a,b){for(var c=new M,d=b;d=d.parentNode;)a.matches(d)&&c.unshift(d);return c},k);U("ancestor-or-self",function(a,b){var c=new M,d=b;do a.matches(d)&&c.unshift(d);while(d=d.parentNode);return c},k);
var xc=U("attribute",function(a,b){var c=new M,d=a.getName();if("style"==d&&b.style&&I)return c.add(new Qb(b.style,b,"style",b.style.cssText,b.sourceIndex)),c;var e=b.attributes;if(e)if(a instanceof N&&a.i===l||"*"==d)for(var d=b.sourceIndex,f=0,g;g=e[f];f++)I?g.nodeValue&&c.add(Rb(b,g,d)):c.add(g);else(g=e.getNamedItem(d))&&(I?g.nodeValue&&c.add(Rb(b,g,b.sourceIndex)):c.add(g));return c},m),Ec=U("child",function(a,b,c,d,e){return(I?ac:bc).call(l,a,b,r(c)?c:l,r(d)?d:l,e||new M)},m,k);
U("descendant",Vb,m,k);var Fc=U("descendant-or-self",function(a,b,c,d){var e=new M;L(b,c,d)&&a.matches(b)&&e.add(b);return Vb(a,b,c,d,e)},m,k),Ac=U("following",function(a,b,c,d){var e=new M;do for(var f=b;f=f.nextSibling;)L(f,c,d)&&a.matches(f)&&e.add(f),e=Vb(a,f,c,d,e);while(b=b.parentNode);return e},m,k);U("following-sibling",function(a,b){for(var c=new M,d=b;d=d.nextSibling;)a.matches(d)&&c.add(d);return c},m);U("namespace",function(){return new M},m);
var Ic=U("parent",function(a,b){var c=new M;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},m),Bc=U("preceding",function(a,b,c,d){var e=new M,f=[];do f.unshift(b);while(b=b.parentNode);for(var g=1,j=f.length;g<j;g++){for(var p=[],b=f[g];b=b.previousSibling;)p.unshift(b);for(var s=0,w=p.length;s<w;s++)b=p[s],L(b,c,d)&&a.matches(b)&&e.add(b),e=Vb(a,b,c,d,e)}return e},k,k);
U("preceding-sibling",function(a,b){for(var c=new M,d=b;d=d.previousSibling;)a.matches(d)&&c.unshift(d);return c},k);var Jc=U("self",function(a,b){var c=new M;a.matches(b)&&c.add(b);return c},m);function Kc(a){O.call(this,1);this.R=a;this.m=a.d();this.e=a.e}t(Kc,O);Kc.prototype.evaluate=function(a){return-P(this.R,a)};Kc.prototype.toString=function(a){var a=a||"",b=a+"UnaryExpr: -\n";return b+=this.R.toString(a+"  ")};function Lc(a){O.call(this,4);this.D=a;this.m=ta(this.D,function(a){return a.d()});this.e=ta(this.D,function(a){return a.e})}t(Lc,O);Lc.prototype.evaluate=function(a){var b=new M;u(this.D,function(c){c=c.evaluate(a);c instanceof M||h(Error("PathExpr must evaluate to NodeSet."));b=dc(b,c)});return b};Lc.prototype.toString=function(a){var b=a||"",c=b+"UnionExpr:\n",b=b+"  ";u(this.D,function(a){c+=a.toString(b)+"\n"});return c.substring(0,c.length)};function Mc(a){this.a=a}function Nc(a){for(var b,c=[];;){V(a,"Missing right hand side of binary expression.");b=Oc(a);var d=a.a.next();if(!d)break;var e=(d=nc[d]||l)&&d.Y;if(!e){a.a.back();break}for(;c.length&&e<=c[c.length-1].Y;)b=new jc(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new jc(c.pop(),c.pop(),b);return b}function V(a,b){a.a.empty()&&h(Error(b))}function Pc(a,b){var c=a.a.next();c!=b&&h(Error("Bad token, expected: "+b+" got: "+c))}
function Qc(a){a=a.a.next();")"!=a&&h(Error("Bad token: "+a))}function Rc(a){a=a.a.next();2>a.length&&h(Error("Unclosed literal string"));return new uc(a)}function Sc(a){return"*"!=J(a.a)&&":"==J(a.a,1)&&"*"==J(a.a,2)?new Yb(a.a.next()+a.a.next()+a.a.next()):new Yb(a.a.next())}
function Tc(a){var b,c=[],d;if("/"==J(a.a)||"//"==J(a.a)){b=a.a.next();d=J(a.a);if("/"==b&&(a.a.empty()||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new yc;d=new yc;V(a,"Missing next location step.");b=Uc(a,b);c.push(b)}else{a:{b=J(a.a);d=b.charAt(0);switch(d){case "$":h(Error("Variable reference not allowed in HTML XPath"));case "(":a.a.next();b=Nc(a);V(a,'unclosed "("');Pc(a,")");break;case '"':case "'":b=Rc(a);break;default:if(isNaN(+b))if(!tc(b)&&/(?![0-9])[\w]/.test(d)&&
"("==J(a.a,1)){b=a.a.next();b=sc[b]||l;a.a.next();for(d=[];")"!=J(a.a);){V(a,"Missing function argument list.");d.push(Nc(a));if(","!=J(a.a))break;a.a.next()}V(a,"Unclosed function argument list.");Qc(a);b=new qc(b,d)}else{b=l;break a}else b=new vc(+a.a.next())}"["==J(a.a)&&(d=new Cc(Vc(a)),b=new oc(b,d))}if(b)if("/"==J(a.a)||"//"==J(a.a))d=b;else return b;else b=Uc(a,"/"),d=new zc,c.push(b)}for(;"/"==J(a.a)||"//"==J(a.a);)b=a.a.next(),V(a,"Missing next location step."),b=Uc(a,b),c.push(b);return new wc(d,
c)}
function Uc(a,b){var c,d,e;"/"!=b&&"//"!=b&&h(Error('Step op should be "/" or "//"'));if("."==J(a.a))return d=new Dc(Jc,new N("node")),a.a.next(),d;if(".."==J(a.a))return d=new Dc(Ic,new N("node")),a.a.next(),d;var f;"@"==J(a.a)?(f=xc,a.a.next(),V(a,"Missing attribute name")):"::"==J(a.a,1)?(/(?![0-9])[\w]/.test(J(a.a).charAt(0))||h(Error("Bad token: "+a.a.next())),e=a.a.next(),(f=Hc[e]||l)||h(Error("No axis with name: "+e)),a.a.next(),V(a,"Missing node name")):f=Ec;e=J(a.a);if(/(?![0-9])[\w]/.test(e.charAt(0)))if("("==J(a.a,
1)){tc(e)||h(Error("Invalid node type: "+e));c=a.a.next();tc(c)||h(Error("Invalid type name: "+c));Pc(a,"(");V(a,"Bad nodetype");e=J(a.a).charAt(0);var g=l;if('"'==e||"'"==e)g=Rc(a);V(a,"Bad nodetype");Qc(a);c=new N(c,g)}else c=Sc(a);else"*"==e?c=Sc(a):h(Error("Bad token: "+a.a.next()));e=new Cc(Vc(a),f.t);return d||new Dc(f,c,e,"//"==b)}
function Vc(a){for(var b=[];"["==J(a.a);){a.a.next();V(a,"Missing predicate expression.");var c=Nc(a);b.push(c);V(a,"Unclosed predicate expression.");Pc(a,"]")}return b}function Oc(a){if("-"==J(a.a))return a.a.next(),new Kc(Oc(a));var b=Tc(a);if("|"!=J(a.a))a=b;else{for(b=[b];"|"==a.a.next();)V(a,"Missing next union location path."),b.push(Tc(a));a.a.back();a=new Lc(b)}return a};function Wc(a){a.length||h(Error("Empty XPath expression."));for(var a=a.match(Tb),b=0;b<a.length;b++)Ub.test(a[b])&&a.splice(b,1);a=new Sb(a);a.empty()&&h(Error("Invalid XPath expression."));var c=Nc(new Mc(a));a.empty()||h(Error("Bad token: "+a.next()));this.evaluate=function(a,b){var f=c.evaluate(new Ob(a));return new W(f,b)}}
function W(a,b){0==b&&(a instanceof M?b=4:"string"==typeof a?b=2:"number"==typeof a?b=1:"boolean"==typeof a?b=3:h(Error("Unexpected evaluation result.")));2!=b&&(1!=b&&3!=b&&!(a instanceof M))&&h(Error("document.evaluate called with wrong result type."));this.resultType=b;var c;switch(b){case 2:this.stringValue=a instanceof M?fc(a):""+a;break;case 1:this.numberValue=a instanceof M?+fc(a):+a;break;case 3:this.booleanValue=a instanceof M?0<a.o():!!a;break;case 4:case 5:case 6:case 7:var d=gc(a);c=[];
for(var e=d.next();e;e=d.next())c.push(e instanceof Qb?e.c:e);this.snapshotLength=a.o();this.invalidIteratorState=m;break;case 8:case 9:d=ec(a);this.singleNodeValue=d instanceof Qb?d.c:d;break;default:h(Error("Unknown XPathResult type."))}var f=0;this.iterateNext=function(){4!=b&&5!=b&&h(Error("iterateNext called with wrong result type."));return f>=c.length?l:c[f++]};this.snapshotItem=function(a){6!=b&&7!=b&&h(Error("snapshotItem called with wrong result type."));return a>=c.length||0>a?l:c[a]}}
W.ANY_TYPE=0;W.NUMBER_TYPE=1;W.STRING_TYPE=2;W.BOOLEAN_TYPE=3;W.UNORDERED_NODE_ITERATOR_TYPE=4;W.ORDERED_NODE_ITERATOR_TYPE=5;W.UNORDERED_NODE_SNAPSHOT_TYPE=6;W.ORDERED_NODE_SNAPSHOT_TYPE=7;W.ANY_UNORDERED_NODE_TYPE=8;W.FIRST_ORDERED_NODE_TYPE=9;var X={},Xc={qa:"http://www.w3.org/2000/svg"};X.ea=function(a){return Xc[a]||l};
X.l=function(a,b,c){var d=D(a);if(x){var e=(d?d.parentWindow||d.defaultView:window)||o,f=e.document;f.evaluate||(e.XPathResult=W,f.evaluate=function(a,b,c,d){return(new Wc(a)).evaluate(b,d)},f.createExpression=function(a){return new Wc(a)})}else try{if(!d.implementation||!d.implementation.hasFeature("XPath","3.0"))return l}catch(g){return l}try{var j,p;if(p=pb)p=!(xb?vb(2.3):pb?0<=ka(Ab,2.3):0<=ka(tb,2.3));if(p)try{j=(d?d.parentWindow||d.defaultView:window).top.document}catch(s){return l}else j=d;
var w=d.createNSResolver?d.createNSResolver(d.documentElement):X.ea;return x&&!Na(7)?j.evaluate.apply(l,[b,a,w,c,l]):j.evaluate(b,a,w,c,l)}catch(H){y&&"NS_ERROR_ILLEGAL_VALUE"==H.name||h(new G(32,"Unable to locate an element with the xpath expression "+b+" because of the following error:\n"+H))}};X.I=function(a,b){(!a||1!=a.nodeType)&&h(new G(32,'The result of the xpath expression "'+b+'" is: '+a+". It should be an element."))};
X.r=function(a,b){var c=function(){var c=X.l(b,a,9);return c?(c=c.singleNodeValue,v?c:c||l):b.selectSingleNode?(c=D(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):l}();c===l||X.I(c,a);return c};
X.k=function(a,b){var c=function(){var c=X.l(b,a,7);if(c){var e=c.snapshotLength;v&&!q(e)&&X.I(l,a);for(var f=[],g=0;g<e;++g)f.push(c.snapshotItem(g));return f}return b.selectNodes?(c=D(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectNodes(a)):[]}();u(c,function(b){X.I(b,a)});return c};!v&&(!z||wb("533"));function Yc(a,b){var c=D(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,l))?c[b]||c.getPropertyValue(b)||"":""}function Zc(a,b){return Yc(a,b)||(a.currentStyle?a.currentStyle[b]:l)||a.style&&a.style[b]}function $c(a){var b=a.getBoundingClientRect();x&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function ad(a){if(x&&!Pa(8))return a.offsetParent;for(var b=D(a),c=Zc(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Zc(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return l}
function bd(a){var b=new A;if(1==a.nodeType){if(a.getBoundingClientRect){var c=$c(a);b.x=c.left;b.y=c.top}else{c=ab(C(a));var d,e=D(a),f=Zc(a,"position");oa(a,"Parameter is required");var g=y&&e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),j=new A(0,0),p;d=e?D(e):document;if(p=x)if(p=!Pa(9))p="CSS1Compat"!=C(d).A.compatMode;p=p?d.body:d.documentElement;if(a!=p)if(a.getBoundingClientRect)d=$c(a),e=ab(C(e)),j.x=d.left+e.x,j.y=d.top+e.y;
else if(e.getBoxObjectFor&&!g)d=e.getBoxObjectFor(a),e=e.getBoxObjectFor(p),j.x=d.screenX-e.screenX,j.y=d.screenY-e.screenY;else{g=a;do{j.x+=g.offsetLeft;j.y+=g.offsetTop;g!=a&&(j.x+=g.clientLeft||0,j.y+=g.clientTop||0);if(z&&"fixed"==Zc(g,"position")){j.x+=e.body.scrollLeft;j.y+=e.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(v||z&&"absolute"==f)j.y-=e.body.offsetTop;for(g=a;(g=ad(g))&&g!=e.body&&g!=p;)if(j.x-=g.scrollLeft,!v||"TR"!=g.tagName)j.y-=g.scrollTop}b.x=j.x-c.x;b.y=j.y-c.y}if(y&&
!Na(12)){var s;x?s="-ms-transform":z?s="-webkit-transform":v?s="-o-transform":y&&(s="-moz-transform");var w;s&&(w=Zc(a,s));w||(w=Zc(a,"transform"));w?(a=w.match(cd),a=!a?new A(0,0):new A(parseFloat(a[1]),parseFloat(a[2]))):a=new A(0,0);b=new A(b.x+a.x,b.y+a.y)}}else s=ca(a.T),w=a,a.targetTouches?w=a.targetTouches[0]:s&&a.T().targetTouches&&(w=a.T().targetTouches[0]),b.x=w.clientX,b.y=w.clientY;return b}
function dd(a){var b=a.offsetWidth,c=a.offsetHeight,d=z&&!b&&!c;return(!q(b)||d)&&a.getBoundingClientRect?(a=$c(a),new B(a.right-a.left,a.bottom-a.top)):new B(b,c)}var cd=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Y(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}var ed="async autofocus autoplay checked compact complete controls declare defaultchecked defaultselected defer disabled draggable ended formnovalidate hidden indeterminate iscontenteditable ismap itemscope loop multiple muted nohref noresize noshade novalidate nowrap open paused pubdate readonly required reversed scoped seamless seeking selected spellcheck truespeed willvalidate".split(" "),fd=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;
function gd(a,b){if(8==a.nodeType)return l;b=b.toLowerCase();if("style"==b){var c=[];u(a.style.cssText.split(fd),function(a){var b=a.indexOf(":");0<b&&(a=[a.slice(0,b),a.slice(b+1)],2==a.length&&c.push(a[0].toLowerCase(),":",a[1],";"))});c=c.join("");c=";"==c.charAt(c.length-1)?c:c+";";return v?c.replace(/\w+:;/g,""):c}var d=a.getAttributeNode(b);x&&!d&&(Na(8)&&va(ed,b))&&(d=a[b]);return!d?l:va(ed,b)?Cb&&"false"==d.value?l:"true":d.specified?d.value:l}
function hd(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return Y(a)?a:l}
function Z(a,b){var c=String(b).replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()});if("float"==c||"cssFloat"==c||"styleFloat"==c)c=Cb?"styleFloat":"cssFloat";c=Yc(a,c)||id(a,c);if(c===l)c=l;else if(va(Fb,b)&&(Ib.test("#"==c.charAt(0)?c:"#"+c)||Mb(c).length||Eb&&Eb[c.toLowerCase()]||Kb(c).length)){var d=Kb(c);if(!d.length){a:if(d=Mb(c),!d.length){d=Eb[c.toLowerCase()];d=!d?"#"==c.charAt(0)?c:"#"+c:d;if(Ib.test(d)&&(d=Hb(d),d=Hb(d),d=[parseInt(d.substr(1,2),16),parseInt(d.substr(3,2),16),parseInt(d.substr(5,
2),16)],d.length))break a;d=[]}3==d.length&&d.push(1)}c=4!=d.length?c:"rgba("+d.join(", ")+")"}return c}function id(a,b){var c=a.currentStyle||a.style,d=c[b];!q(d)&&ca(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?q(d)?d:l:(c=hd(a))?id(c,b):l}
function jd(a){if(ca(a.getBBox))try{var b=a.getBBox();if(b)return b}catch(c){}if(Y(a,Ra)){b=(D(a)?D(a).parentWindow||D(a).defaultView:window)||i;"hidden"!=Z(a,"overflow")?a=k:(a=hd(a),!a||!Y(a,"HTML")?a=k:(a=Z(a,"overflow"),a="auto"==a||"scroll"==a));if(a){var b=(b||fa).document,a=b.documentElement,d=b.body;d||h(new G(13,"No BODY element present"));b=[a.clientHeight,a.scrollHeight,a.offsetHeight,d.scrollHeight,d.offsetHeight];a=Math.max.apply(l,[a.clientWidth,a.scrollWidth,a.offsetWidth,d.scrollWidth,
d.offsetWidth]);b=Math.max.apply(l,b);a=new B(a,b)}else a=(b||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new B(a.clientWidth,a.clientHeight);return a}if("none"!=Zc(a,"display"))a=dd(a);else{var b=a.style,d=b.display,e=b.visibility,f=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=dd(a);b.display=d;b.position=f;b.visibility=e}return a}
function kd(a,b){function c(a){if("none"==Z(a,"display"))return m;a=hd(a);return!a||c(a)}function d(a){var b=jd(a);return 0<b.height&&0<b.width?k:ta(a.childNodes,function(a){return a.nodeType==Ta||Y(a)&&d(a)})}function e(a){var b=ad(a),c=y||x||v?hd(a):b;if((y||x||v)&&Y(c,Ra))b=c;if(b&&"hidden"==Z(b,"overflow")){var c=jd(b),d=bd(b),a=bd(a);return d.x+c.width<a.x||d.y+c.height<a.y?m:e(b)}return k}Y(a)||h(Error("Argument to isShown must be of type Element"));if(Y(a,"OPTION")||Y(a,"OPTGROUP")){var f=
$a(a,function(a){return Y(a,"SELECT")});return!!f&&kd(f,k)}if(Y(a,"MAP")){if(!a.name)return m;f=D(a);if(f.evaluate)f=X.r('/descendant::*[@usemap = "#'+a.name+'"]',f);else var g=[],f=Za(f,function(b){return Y(b)&&gd(b,"usemap")=="#"+a.name},g,k)?g[0]:i;return!!f&&kd(f,b)}if(Y(a,"AREA"))return f=$a(a,function(a){return Y(a,"MAP")}),!!f&&kd(f,b);if(!(f=Y(a,"INPUT")&&"hidden"==a.type.toLowerCase()||Y(a,"NOSCRIPT")||"hidden"==Z(a,"visibility")||!c(a)))if(f=!b)x?"relative"==Z(a,"position")?f=1:(f=Z(a,"filter"),
f=(f=f.match(/^alpha\(opacity=(\d*)\)/)||f.match(/^progid:DXImageTransform.Microsoft.Alpha\(Opacity=(\d*)\)/))?Number(f[1])/100:1):f=ld(a),f=0==f;return f||!d(a)?m:e(a)}function md(a){return a.replace(/^[^\S\xa0]+|[^\S\xa0]+$/g,"")}function nd(a){var b=[];od(a,b);b=ra(b,md);return md(b.join("\n")).replace(/\xa0/g," ")}
function od(a,b){if(Y(a,"BR"))b.push("");else{var c=Y(a,"TD"),d=Z(a,"display"),e=!c&&!va(pd,d),f;if(a.previousElementSibling!=i)f=a.previousElementSibling;else for(f=a.previousSibling;f&&1!=f.nodeType;)f=f.previousSibling;f=f?Z(f,"display"):"";var g=Z(a,"float")||Z(a,"cssFloat")||Z(a,"styleFloat");e&&(!("run-in"==f&&"none"==g)&&!/^[\s\xa0]*$/.test(b[b.length-1]||""))&&b.push("");var j=kd(a),p=l,s=l;j&&(p=Z(a,"white-space"),s=Z(a,"text-transform"));u(a.childNodes,function(a){if(a.nodeType==Ta&&j){var c=
p,d=s,a=a.nodeValue.replace(/\u200b/g,""),a=a.replace(/(\r\n|\r|\n)/g,"\n");if(c=="normal"||c=="nowrap")a=a.replace(/\n/g," ");a=c=="pre"||c=="pre-wrap"?a.replace(/[ \f\t\v\u2028\u2029]/g,"\u00a0"):a.replace(/[\ \f\t\v\u2028\u2029]+/g," ");d=="capitalize"?a=a.replace(/(^|\s)(\S)/g,function(a,b,c){return b+c.toUpperCase()}):d=="uppercase"?a=a.toUpperCase():d=="lowercase"&&(a=a.toLowerCase());c=b.pop()||"";ha(c)&&a.lastIndexOf(" ",0)==0&&(a=a.substr(1));b.push(c+a)}else Y(a)&&od(a,b)});f=b[b.length-
1]||"";if((c||"table-cell"==d)&&f&&!ha(f))b[b.length-1]+=" ";e&&("run-in"!=d&&!/^[\s\xa0]*$/.test(f))&&b.push("")}}var pd="inline inline-block inline-table none table-cell table-column table-column-group".split(" ");function ld(a){var b=1,c=Z(a,"opacity");c&&(b=Number(c));(a=hd(a))&&(b*=ld(a));return b};var $={},qd={};$.aa=function(a,b,c){var d;try{d=Db.k("a",b)}catch(e){d=E(C(b),"A",l,b)}return ua(d,function(b){b=nd(b);return c&&-1!=b.indexOf(a)||b==a})};$.W=function(a,b,c){var d;try{d=Db.k("a",b)}catch(e){d=E(C(b),"A",l,b)}return qa(d,function(b){b=nd(b);return c&&-1!=b.indexOf(a)||b==a})};$.r=function(a,b){return $.aa(a,b,m)};$.k=function(a,b){return $.W(a,b,m)};qd.r=function(a,b){return $.aa(a,b,k)};qd.k=function(a,b){return $.W(a,b,k)};var rd={r:function(a,b){return b.getElementsByTagName(a)[0]||l},k:function(a,b){return b.getElementsByTagName(a)}};var sd={className:bb,"class name":bb,css:Db,"css selector":Db,id:{r:function(a,b){var c=C(b),d=r(a)?c.A.getElementById(a):a;if(!d)return l;if(gd(d,"id")==a&&Va(b,d))return d;c=E(c,"*");return ua(c,function(c){return gd(c,"id")==a&&Va(b,c)})},k:function(a,b){var c=E(C(b),"*",l,b);return qa(c,function(b){return gd(b,"id")==a})}},linkText:$,"link text":$,name:{r:function(a,b){var c=E(C(b),"*",l,b);return ua(c,function(b){return gd(b,"name")==a})},k:function(a,b){var c=E(C(b),"*",l,b);return qa(c,function(b){return gd(b,
"name")==a})}},partialLinkText:qd,"partial link text":qd,tagName:rd,"tag name":rd,xpath:X};function td(a,b){for(var c=b||fa,d=c.frames.length,e=0;e<d;e++){var f=c.frames[e];if((f.frameElement||f).name==a)return f.document?f:f.contentWindow||(f.contentDocument||f.contentWindow.document).parentWindow||(f.contentDocument||f.contentWindow.document).defaultView}var g;a:{var d={id:a},c=c.document,j;b:{for(j in d)if(d.hasOwnProperty(j))break b;j=l}if(j&&(e=sd[j])&&ca(e.k)){g=e.k(d[j],c||fa.document);break a}h(Error("Unsupported locator strategy: "+j))}for(e=0;e<g.length;e++)if(Y(g[e],"FRAME")||
Y(g[e],"IFRAME"))return g[e].contentWindow||(g[e].contentDocument||g[e].contentWindow.document).parentWindow||(g[e].contentDocument||g[e].contentWindow.document).defaultView;return l};function ud(){this.F=i}
function vd(a,b,c){switch(typeof b){case "string":wd(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(b==l){c.push("null");break}if("array"==ba(b)){var d=b.length;c.push("[");for(var e="",f=0;f<d;f++)c.push(e),e=b[f],vd(a,a.F?a.F.call(b,String(f),e):e,c),e=",";c.push("]");break}c.push("{");d="";for(f in b)Object.prototype.hasOwnProperty.call(b,f)&&(e=b[f],"function"!=typeof e&&(c.push(d),wd(f,
c),c.push(":"),vd(a,a.F?a.F.call(b,f,e):e,c),d=","));c.push("}");break;case "function":break;default:h(Error("Unknown type: "+typeof b))}}var xd={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},yd=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function wd(a,b){b.push('"',a.replace(yd,function(a){if(a in xd)return xd[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return xd[a]=e+b.toString(16)}),'"')};z||v||y&&wb(3.5)||x&&wb(8);function zd(a){switch(ba(a)){case "string":case "number":case "boolean":return a;case "function":return a.toString();case "array":return ra(a,zd);case "object":if("nodeType"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=Ad(a);return b}if("document"in a)return b={},b.WINDOW=Ad(a),b;var c=ba(a);if("array"==c||"object"==c&&"number"==typeof a.length)return ra(a,zd);var c=function(a,b){return"number"==typeof b||r(b)},d={};for(b in a)c.call(i,0,b)&&(d[b]=a[b]);return Sa(d,zd);default:return l}}
function Bd(a,b){return"array"==ba(a)?ra(a,function(a){return Bd(a,b)}):da(a)?"function"==typeof a?a:"ELEMENT"in a?Cd(a.ELEMENT,b):"WINDOW"in a?Cd(a.WINDOW,b):Sa(a,function(a){return Bd(a,b)}):a}function Dd(a){var a=a||document,b=a.$wdc_;b||(b=a.$wdc_={},b.M=ea());b.M||(b.M=ea());return b}function Ad(a){var b=Dd(a.ownerDocument),c;a:{c=function(b){return b==a};for(var d in b)if(c.call(i,b[d])){c=d;break a}c=i}c||(c=":wdc:"+b.M++,b[c]=a);return c}
function Cd(a,b){var a=decodeURIComponent(a),c=b||document,d=Dd(c);a in d||h(new G(10,"Element does not exist in cache"));var e=d[a];if("setInterval"in e)return e.closed&&(delete d[a],h(new G(23,"Window has been closed."))),e;for(var f=e;f;){if(f==c.documentElement)return e;f=f.parentNode}delete d[a];h(new G(10,"Element is no longer attached to the DOM"))};function Ed(a,b){var c=[a,b],d=td,e;try{var d=r(d)?new fa.Function(d):fa==window?d:new fa.Function("return ("+d+").apply(null,arguments);"),f=Bd(c,fa.document),g=d.apply(l,f);e={status:0,value:zd(g)}}catch(j){e={status:"code"in j?j.code:13,value:{message:j.message}}}c=[];vd(new ud,e,c);return c.join("")}var Fd=["_"],Gd=o;!(Fd[0]in Gd)&&Gd.execScript&&Gd.execScript("var "+Fd[0]);for(var Hd;Fd.length&&(Hd=Fd.shift());)!Fd.length&&q(Ed)?Gd[Hd]=Ed:Gd=Gd[Hd]?Gd[Hd]:Gd[Hd]={};; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null}, arguments);}
