function(){return function(){function h(a){throw a;}var i=void 0,j=!0,k=null,l=!1;function n(a){return function(){return this[a]}}function aa(a){return function(){return a}}var p,q=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 s(a){return a!==i}function ca(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length}function u(a){return"string"==typeof a}function da(a){return"function"==ba(a)}function ea(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}var fa="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ia=0,ja=Date.now||function(){return+new Date};
function v(a,b){function c(){}c.prototype=b.prototype;a.lb=b.prototype;a.prototype=new c;a.prototype.constructor=a};var ka=window;function la(a){Error.captureStackTrace?Error.captureStackTrace(this,la):this.stack=Error().stack||"";a&&(this.message=String(a))}v(la,Error);la.prototype.name="CustomError";function ma(a){var b=a.length-1;return 0<=b&&a.indexOf(" ",b)==b}function na(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 oa(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}
function pa(a,b){for(var c=0,d=oa(String(a)).split("."),e=oa(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var m=d[g]||"",r=e[g]||"",t=RegExp("(\\d*)(\\D*)","g"),M=RegExp("(\\d*)(\\D*)","g");do{var ga=t.exec(m)||["","",""],ha=M.exec(r)||["","",""];if(0==ga[0].length&&0==ha[0].length)break;c=((0==ga[1].length?0:parseInt(ga[1],10))<(0==ha[1].length?0:parseInt(ha[1],10))?-1:(0==ga[1].length?0:parseInt(ga[1],10))>(0==ha[1].length?0:parseInt(ha[1],10))?1:0)||((0==ga[2].length)<
(0==ha[2].length)?-1:(0==ga[2].length)>(0==ha[2].length)?1:0)||(ga[2]<ha[2]?-1:ga[2]>ha[2]?1:0)}while(0==c)}return c};function qa(a,b){b.unshift(a);la.call(this,na.apply(k,b));b.shift();this.cb=a}v(qa,la);qa.prototype.name="AssertionError";function ra(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);h(new qa(""+e,f||[]))}function sa(a,b,c){a||ra("",k,b,Array.prototype.slice.call(arguments,2))}function ta(a,b,c){ea(a)||ra("Expected object but got %s: %s.",[ba(a),a],b,Array.prototype.slice.call(arguments,2))};var ua=Array.prototype;function w(a,b,c){for(var d=a.length,e=u(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)}function va(a,b){for(var c=a.length,d=[],e=0,f=u(a)?a.split(""):a,g=0;g<c;g++)if(g in f){var m=f[g];b.call(i,m,g,a)&&(d[e++]=m)}return d}function wa(a,b){for(var c=a.length,d=Array(c),e=u(a)?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(i,e[f],f,a));return d}function xa(a,b,c){if(a.reduce)return a.reduce(b,c);var d=c;w(a,function(c,f){d=b.call(i,d,c,f,a)});return d}
function ya(a,b){for(var c=a.length,d=u(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 za(a,b){var c;a:{c=a.length;for(var d=u(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?k:u(a)?a.charAt(c):a[c]}function Aa(a,b){var c;a:if(u(a))c=!u(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 Ba(a){return ua.concat.apply(ua,arguments)}
function Ca(a,b,c){sa(a.length!=k);return 2>=arguments.length?ua.slice.call(a,b):ua.slice.call(a,b,c)};var Da={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 Ea="background-color border-top-color border-right-color border-bottom-color border-left-color color outline-color".split(" "),Fa=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/;function Ga(a){Ha.test(a)||h(Error("'"+a+"' is not a valid hex color"));4==a.length&&(a=a.replace(Fa,"#$1$1$2$2$3$3"));return a.toLowerCase()}var Ha=/^#(?:[0-9a-f]{3}){1,2}$/i,Ia=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i;
function Ja(a){var b=a.match(Ia);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 Ka=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function La(a){var b=a.match(Ka);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 Ma(a,b){var c={},d;for(d in a)c[d]=b.call(i,a[d],d,a);return c}function Na(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};function x(a,b){this.code=a;this.message=b||"";this.name=Oa[a]||Oa[13];var c=Error(this.message);c.name=this.name;this.stack=c.stack||""}v(x,Error);
var Oa={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"};
x.prototype.toString=function(){return this.name+": "+this.message};var Pa,Qa,Ra,Sa,Ta,Ua;function Va(){return q.navigator?q.navigator.userAgent:k}Sa=Ra=Qa=Pa=l;var Wa;if(Wa=Va()){var Xa=q.navigator;Pa=0==Wa.indexOf("Opera");Qa=!Pa&&-1!=Wa.indexOf("MSIE");Ra=!Pa&&-1!=Wa.indexOf("WebKit");Sa=!Pa&&!Ra&&"Gecko"==Xa.product}var y=Pa,z=Qa,A=Sa,B=Ra,Ya,Za=q.navigator;Ya=Za&&Za.platform||"";Ta=-1!=Ya.indexOf("Mac");Ua=-1!=Ya.indexOf("Win");var $a=-1!=Ya.indexOf("Linux");function ab(){var a=q.document;return a?a.documentMode:i}var bb;
a:{var cb="",db;if(y&&q.opera)var eb=q.opera.version,cb="function"==typeof eb?eb():eb;else if(A?db=/rv\:([^\);]+)(\)|;)/:z?db=/MSIE\s+([^\);]+)(\)|;)/:B&&(db=/WebKit\/(\S+)/),db)var fb=db.exec(Va()),cb=fb?fb[1]:"";if(z){var gb=ab();if(gb>parseFloat(cb)){bb=String(gb);break a}}bb=cb}var hb={};function ib(a){return hb[a]||(hb[a]=0<=pa(bb,a))}function jb(a){return z&&kb>=a}var lb=q.document,kb=!lb||!z?i:ab()||("CSS1Compat"==lb.compatMode?parseInt(bb,10):5);var mb;!A&&!z||z&&jb(9)||A&&ib("1.9.1");z&&ib("9");var nb="BODY";function C(a,b){this.x=s(a)?a:0;this.y=s(b)?b:0}C.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function ob(a,b){this.width=a;this.height=b}p=ob.prototype;p.toString=function(){return"("+this.width+" x "+this.height+")"};p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};p.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};p.scale=function(a){this.width*=a;this.height*=a;return this};var pb=3;function D(a){return a?new qb(E(a)):mb||(mb=new qb)}function rb(a){var b=!B&&sb(a)?a.documentElement:a.body,a=a.parentWindow||a.defaultView;return new C(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function tb(a){return a?a.parentWindow||a.defaultView:window}function sb(a){return"CSS1Compat"==a.compatMode}
function ub(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 vb(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if(z&&!jb(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?wb(a,b):!c&&ub(e,b)?-1*xb(a,b):!d&&ub(f,a)?xb(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=E(a);c=d.createRange();
c.selectNode(a);c.collapse(j);d=d.createRange();d.selectNode(b);d.collapse(j);return c.compareBoundaryPoints(q.Range.START_TO_END,d)}function xb(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return wb(d,a)}function wb(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}function E(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function yb(a,b,c,d){if(a!=k)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||yb(a,b,c,d))return j;a=a.nextSibling}return l}var zb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Ab={IMG:" ",BR:"\n"};function Bb(a,b,c){if(!(a.nodeName in zb))if(a.nodeType==pb)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Ab)b.push(Ab[a.nodeName]);else for(a=a.firstChild;a;)Bb(a,b,c),a=a.nextSibling}
function Cb(a,b,c){c||(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return k}function qb(a){this.I=a||q.document||document}qb.prototype.c=function(a){return u(a)?this.I.getElementById(a):a};
function Db(a,b,c,d){a=d||a.I;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&&Aa(b.split(/\s+/),c)&&(d[e++]=g);d.length=e;c=d}else c=a;return c}
qb.prototype.contains=ub;var Eb,Fb,Gb,Hb,Ib,Jb,Kb;Kb=Jb=Ib=Hb=Gb=Fb=Eb=l;var Lb=Va();Lb&&(-1!=Lb.indexOf("Firefox")?Eb=j:-1!=Lb.indexOf("Camino")?Fb=j:-1!=Lb.indexOf("iPhone")||-1!=Lb.indexOf("iPod")?Gb=j:-1!=Lb.indexOf("iPad")?Hb=j:-1!=Lb.indexOf("Android")?Ib=j:-1!=Lb.indexOf("Chrome")?Jb=j:-1!=Lb.indexOf("Safari")&&(Kb=j));var Mb=y,Nb=z,Ob=Eb,Pb=Fb,Qb=Gb,Rb=Hb,Sb=Ib,Tb=Jb,Ub=Kb;function Vb(a,b,c){this.j=a;this.Sa=b||1;this.v=c||1};var Wb=z&&!jb(9),Xb=z&&!jb(8);function Yb(a,b,c,d,e){this.j=a;this.nodeName=c;this.nodeValue=d;this.nodeType=2;this.ownerElement=b;this.kb=e;this.parentNode=b}function Zb(a,b,c){var d=Xb&&"href"==b.nodeName?a.getAttribute(b.nodeName,2):b.nodeValue;return new Yb(b,a,b.nodeName,d,c)};function $b(a){this.oa=a;this.Y=0}var ac=RegExp("\\$?(?:(?![0-9-])[\\w-]+:)?(?![0-9-])[\\w-]+|\\/\\/|\\.\\.|::|\\d+(?:\\.\\d*)?|\\.\\d+|\"[^\"]*\"|'[^']*'|[!<>]=|\\s+|.","g"),bc=/^\s/;function F(a,b){return a.oa[a.Y+(b||0)]}$b.prototype.next=function(){return this.oa[this.Y++]};$b.prototype.back=function(){this.Y--};$b.prototype.empty=function(){return this.oa.length<=this.Y};function cc(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(Wb&&"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),Wb&&"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 dc(a,b,c){if(b===k)return j;try{if(!a.getAttribute)return l}catch(d){return l}Xb&&"class"==b&&(b="className");return c==k?!!a.getAttribute(b):a.getAttribute(b,2)==c}function ec(a,b,c,d,e){return(Wb?fc:gc).call(k,a,b,u(c)?c:k,u(d)?d:k,e||new G)}
function fc(a,b,c,d,e){if(a instanceof hc||8==a.h||c&&a.h===k){var f=b.all;if(!f)return e;a=ic(a);if("*"!=a&&(f=b.getElementsByTagName(a),!f))return e;if(c){for(var g=[],m=0;b=f[m++];)dc(b,c,d)&&g.push(b);f=g}for(m=0;b=f[m++];)("*"!=a||"!"!=b.tagName)&&e.add(b);return e}jc(a,b,c,d,e);return e}
function gc(a,b,c,d,e){b.getElementsByName&&d&&"name"==c&&!z?(b=b.getElementsByName(d),w(b,function(b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),w(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):a instanceof kc?jc(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),w(b,function(a){dc(a,c,d)&&e.add(a)}));return e}
function lc(a,b,c,d,e){var f;if((a instanceof hc||8==a.h||c&&a.h===k)&&(f=b.childNodes)){var g=ic(a);if("*"!=g&&(f=va(f,function(a){return a.tagName&&a.tagName.toLowerCase()==g}),!f))return e;c&&(f=va(f,function(a){return dc(a,c,d)}));w(f,function(a){("*"!=g||"!"!=a.tagName&&!("*"==g&&1!=a.nodeType))&&e.add(a)});return e}return mc(a,b,c,d,e)}function mc(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)dc(b,c,d)&&a.matches(b)&&e.add(b);return e}
function jc(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)dc(b,c,d)&&a.matches(b)&&e.add(b),jc(a,b,c,d,e)}function ic(a){if(a instanceof kc){if(8==a.h)return"!";if(a.h===k)return"*"}return a.getName()};function G(){this.v=this.o=k;this.R=0}function nc(a){this.B=a;this.next=this.M=k}function oc(a,b){if(a.o){if(!b.o)return a}else return b;for(var c=a.o,d=b.o,e=k,f=k,g=0;c&&d;)c.B==d.B||c.B instanceof Yb&&d.B instanceof Yb&&c.B.j==d.B.j?(f=c,c=c.next,d=d.next):0<vb(c.B,d.B)?(f=d,d=d.next):(f=c,c=c.next),(f.M=e)?e.next=f:a.o=f,e=f,g++;for(f=c||d;f;)f.M=e,e=e.next=f,g++,f=f.next;a.v=e;a.R=g;return a}
G.prototype.unshift=function(a){a=new nc(a);a.next=this.o;this.v?this.o.M=a:this.o=this.v=a;this.o=a;this.R++};G.prototype.add=function(a){a=new nc(a);a.M=this.v;this.o?this.v.next=a:this.o=this.v=a;this.v=a;this.R++};function pc(a){return(a=a.o)?a.B:k}G.prototype.C=n("R");function qc(a){return(a=pc(a))?cc(a):""}function rc(a,b){return new sc(a,!!b)}function sc(a,b){this.Pa=a;this.ra=(this.N=b)?a.v:a.o;this.ja=k}
sc.prototype.next=function(){var a=this.ra;if(a==k)return k;var b=this.ja=a;this.ra=this.N?a.M:a.next;return b.B};sc.prototype.remove=function(){var a=this.Pa,b=this.ja;b||h(Error("Next must be called at least once before remove."));var c=b.M,b=b.next;c?c.next=b:a.o=b;b?b.M=c:a.v=c;a.R--;this.ja=k};function H(a){this.n=a;this.m=this.A=l;this.T=k}H.prototype.k=n("A");H.prototype.J=n("T");function I(a,b){var c=a.evaluate(b);return c instanceof G?+qc(c):+c}function J(a,b){var c=a.evaluate(b);return c instanceof G?qc(c):""+c}function tc(a,b){var c=a.evaluate(b);return c instanceof G?!!c.C():!!c};function uc(a,b,c){H.call(this,a.n);this.ma=a;this.wa=b;this.Ca=c;this.A=b.k()||c.k();this.m=b.m||c.m;this.ma==vc&&(!c.m&&!c.k()&&4!=c.n&&0!=c.n&&b.J()?this.T={name:b.J().name,O:c}:!b.m&&(!b.k()&&4!=b.n&&0!=b.n&&c.J())&&(this.T={name:c.J().name,O:b}))}v(uc,H);
function wc(a,b,c,d,e){var b=b.evaluate(d),c=c.evaluate(d),f;if(b instanceof G&&c instanceof G){f=rc(b);for(b=f.next();b;b=f.next()){e=rc(c);for(d=e.next();d;d=e.next())if(a(cc(b),cc(d)))return j}return l}if(b instanceof G||c instanceof G){b instanceof G?e=b:(e=c,c=b);e=rc(e);b=typeof c;for(d=e.next();d;d=e.next()){switch(b){case "number":f=+cc(d);break;case "boolean":f=!!cc(d);break;case "string":f=cc(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)}uc.prototype.evaluate=function(a){return this.ma.z(this.wa,this.Ca,a)};uc.prototype.toString=function(a){var a=a||"",b=a+"binary expression: "+this.ma+"\n",a=a+"  ",b=b+(this.wa.toString(a)+"\n");return b+=this.Ca.toString(a)};function xc(a,b,c,d){this.Ra=a;this.Aa=b;this.n=c;this.z=d}xc.prototype.toString=n("Ra");var yc={};
function K(a,b,c,d){a in yc&&h(Error("Binary operator already created: "+a));a=new xc(a,b,c,d);return yc[a.toString()]=a}K("div",6,1,function(a,b,c){return I(a,c)/I(b,c)});K("mod",6,1,function(a,b,c){return I(a,c)%I(b,c)});K("*",6,1,function(a,b,c){return I(a,c)*I(b,c)});K("+",5,1,function(a,b,c){return I(a,c)+I(b,c)});K("-",5,1,function(a,b,c){return I(a,c)-I(b,c)});K("<",4,2,function(a,b,c){return wc(function(a,b){return a<b},a,b,c)});
K(">",4,2,function(a,b,c){return wc(function(a,b){return a>b},a,b,c)});K("<=",4,2,function(a,b,c){return wc(function(a,b){return a<=b},a,b,c)});K(">=",4,2,function(a,b,c){return wc(function(a,b){return a>=b},a,b,c)});var vc=K("=",3,2,function(a,b,c){return wc(function(a,b){return a==b},a,b,c,j)});K("!=",3,2,function(a,b,c){return wc(function(a,b){return a!=b},a,b,c,j)});K("and",2,2,function(a,b,c){return tc(a,c)&&tc(b,c)});K("or",1,2,function(a,b,c){return tc(a,c)||tc(b,c)});function zc(a,b){b.C()&&4!=a.n&&h(Error("Primary expression must evaluate to nodeset if filter has predicate(s)."));H.call(this,a.n);this.Ba=a;this.i=b;this.A=a.k();this.m=a.m}v(zc,H);zc.prototype.evaluate=function(a){a=this.Ba.evaluate(a);return Ac(this.i,a)};zc.prototype.toString=function(a){var a=a||"",b=a+"Filter: \n",a=a+"  ",b=b+this.Ba.toString(a);return b+=this.i.toString(a)};function Bc(a,b){b.length<a.za&&h(Error("Function "+a.r+" expects at least"+a.za+" arguments, "+b.length+" given"));a.ka!==k&&b.length>a.ka&&h(Error("Function "+a.r+" expects at most "+a.ka+" arguments, "+b.length+" given"));a.Qa&&w(b,function(b,d){4!=b.n&&h(Error("Argument "+d+" to function "+a.r+" is not of type Nodeset: "+b))});H.call(this,a.n);this.X=a;this.ea=b;this.A=a.A||ya(b,function(a){return a.k()});this.m=a.Oa&&!b.length||a.Na&&!!b.length||ya(b,function(a){return a.m})}v(Bc,H);
Bc.prototype.evaluate=function(a){return this.X.z.apply(k,Ba(a,this.ea))};Bc.prototype.toString=function(a){var b=a||"",a=b+"Function: "+this.X+"\n",b=b+"  ";this.ea.length&&(a+=b+"Arguments:",b+="  ",a=xa(this.ea,function(a,d){return a+"\n"+d.toString(b)},a));return a};function Cc(a,b,c,d,e,f,g,m,r){this.r=a;this.n=b;this.A=c;this.Oa=d;this.Na=e;this.z=f;this.za=g;this.ka=s(m)?m:g;this.Qa=!!r}Cc.prototype.toString=n("r");var Dc={};
function L(a,b,c,d,e,f,g,m){a in Dc&&h(Error("Function already created: "+a+"."));Dc[a]=new Cc(a,b,c,d,l,e,f,g,m)}L("boolean",2,l,l,function(a,b){return tc(b,a)},1);L("ceiling",1,l,l,function(a,b){return Math.ceil(I(b,a))},1);L("concat",3,l,l,function(a,b){var c=Ca(arguments,1);return xa(c,function(b,c){return b+J(c,a)},"")},2,k);L("contains",2,l,l,function(a,b,c){b=J(b,a);a=J(c,a);return-1!=b.indexOf(a)},2);L("count",1,l,l,function(a,b){return b.evaluate(a).C()},1,1,j);L("false",2,l,l,aa(l),0);
L("floor",1,l,l,function(a,b){return Math.floor(I(b,a))},1);L("id",4,l,l,function(a,b){function c(a){if(Wb){var b=e.all[a];if(b){if(b.nodeType&&a==b.id)return b;if(b.length)return za(b,function(b){return a==b.id})}return k}return e.getElementById(a)}var d=a.j,e=9==d.nodeType?d:d.ownerDocument,d=J(b,a).split(/\s+/),f=[];w(d,function(a){(a=c(a))&&!Aa(f,a)&&f.push(a)});f.sort(vb);var g=new G;w(f,function(a){g.add(a)});return g},1);L("lang",2,l,l,aa(l),1);
L("last",1,j,l,function(a){1!=arguments.length&&h(Error("Function last expects ()"));return a.v},0);L("local-name",3,l,j,function(a,b){var c=b?pc(b.evaluate(a)):a.j;return c?c.nodeName.toLowerCase():""},0,1,j);L("name",3,l,j,function(a,b){var c=b?pc(b.evaluate(a)):a.j;return c?c.nodeName.toLowerCase():""},0,1,j);L("namespace-uri",3,j,l,aa(""),0,1,j);L("normalize-space",3,l,j,function(a,b){return(b?J(b,a):cc(a.j)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);
L("not",2,l,l,function(a,b){return!tc(b,a)},1);L("number",1,l,j,function(a,b){return b?I(b,a):+cc(a.j)},0,1);L("position",1,j,l,function(a){return a.Sa},0);L("round",1,l,l,function(a,b){return Math.round(I(b,a))},1);L("starts-with",2,l,l,function(a,b,c){b=J(b,a);a=J(c,a);return 0==b.lastIndexOf(a,0)},2);L("string",3,l,j,function(a,b){return b?J(b,a):cc(a.j)},0,1);L("string-length",1,l,j,function(a,b){return(b?J(b,a):cc(a.j)).length},0,1);
L("substring",3,l,l,function(a,b,c,d){c=I(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?I(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";var c=Math.round(c)-1,e=Math.max(c,0),a=J(b,a);if(Infinity==d)return a.substring(e);b=Math.round(d);return a.substring(e,c+b)},2,3);L("substring-after",3,l,l,function(a,b,c){b=J(b,a);a=J(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
L("substring-before",3,l,l,function(a,b,c){b=J(b,a);a=J(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);L("sum",1,l,l,function(a,b){for(var c=rc(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+=+cc(e);return d},1,1,j);L("translate",3,l,l,function(a,b,c,d){for(var b=J(b,a),c=J(c,a),e=J(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);L("true",2,l,l,aa(j),0);function kc(a,b){this.Fa=a;this.xa=s(b)?b:k;this.h=k;switch(a){case "comment":this.h=8;break;case "text":this.h=pb;break;case "processing-instruction":this.h=7;break;case "node":break;default:h(Error("Unexpected argument"))}}function Ec(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}kc.prototype.matches=function(a){return this.h===k||this.h==a.nodeType};kc.prototype.getName=n("Fa");
kc.prototype.toString=function(a){var a=a||"",b=a+"kindtest: "+this.Fa;this.xa===k||(b+="\n"+this.xa.toString(a+"  "));return b};function Fc(a){H.call(this,3);this.Ea=a.substring(1,a.length-1)}v(Fc,H);Fc.prototype.evaluate=n("Ea");Fc.prototype.toString=function(a){return(a||"")+"literal: "+this.Ea};function hc(a){this.r=a.toLowerCase()}hc.prototype.matches=function(a){var b=a.nodeType;if(1==b||2==b)return"*"==this.r||this.r==a.nodeName.toLowerCase()?j:this.r==(a.namespaceURI||"http://www.w3.org/1999/xhtml")+":*"};hc.prototype.getName=n("r");hc.prototype.toString=function(a){return(a||"")+"nametest: "+this.r};function Gc(a){H.call(this,1);this.Ga=a}v(Gc,H);Gc.prototype.evaluate=n("Ga");Gc.prototype.toString=function(a){return(a||"")+"number: "+this.Ga};function Hc(a,b){H.call(this,a.n);this.ta=a;this.U=b;this.A=a.k();this.m=a.m;if(1==this.U.length){var c=this.U[0];!c.ga&&c.F==Ic&&(c=c.ba,"*"!=c.getName()&&(this.T={name:c.getName(),O:k}))}}v(Hc,H);function Jc(){H.call(this,4)}v(Jc,H);Jc.prototype.evaluate=function(a){var b=new G,a=a.j;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};Jc.prototype.toString=function(a){return a+"RootHelperExpr"};function Kc(){H.call(this,4)}v(Kc,H);Kc.prototype.evaluate=function(a){var b=new G;b.add(a.j);return b};
Kc.prototype.toString=function(a){return a+"ContextHelperExpr"};
Hc.prototype.evaluate=function(a){var b=this.ta.evaluate(a);b instanceof G||h(Error("FilterExpr must evaluate to nodeset."));for(var a=this.U,c=0,d=a.length;c<d&&b.C();c++){var e=a[c],f=rc(b,e.F.N),g;if(!e.k()&&e.F==Lc){for(g=f.next();(b=f.next())&&(!g.contains||g.contains(b))&&b.compareDocumentPosition(g)&8;g=b);b=e.evaluate(new Vb(g))}else if(!e.k()&&e.F==Mc)g=f.next(),b=e.evaluate(new Vb(g));else{g=f.next();for(b=e.evaluate(new Vb(g));(g=f.next())!=k;)g=e.evaluate(new Vb(g)),b=oc(b,g)}}return b};
Hc.prototype.toString=function(a){var b=a||"",c=b+"PathExpr:\n",b=b+"  ",c=c+this.ta.toString(b);this.U.length&&(c+=b+"Steps:\n",b+="  ",w(this.U,function(a){c+=a.toString(b)}));return c};function Nc(a,b){this.i=a;this.N=!!b}function Ac(a,b,c){for(c=c||0;c<a.i.length;c++)for(var d=a.i[c],e=rc(b),f=b.C(),g,m=0;g=e.next();m++){var r=a.N?f-m:m+1;g=d.evaluate(new Vb(g,r,f));var t;"number"==typeof g?t=r==g:"string"==typeof g||"boolean"==typeof g?t=!!g:g instanceof G?t=0<g.C():h(Error("Predicate.evaluate returned an unexpected type."));t||e.remove()}return b}Nc.prototype.J=function(){return 0<this.i.length?this.i[0].J():k};
Nc.prototype.k=function(){for(var a=0;a<this.i.length;a++){var b=this.i[a];if(b.k()||1==b.n||0==b.n)return j}return l};Nc.prototype.C=function(){return this.i.length};Nc.prototype.toString=function(a){var b=a||"",a=b+"Predicates:",b=b+"  ";return xa(this.i,function(a,d){return a+"\n"+b+d.toString(b)},a)};function Oc(a,b,c,d){H.call(this,4);this.F=a;this.ba=b;this.i=c||new Nc([]);this.ga=!!d;b=this.i.J();a.Va&&b&&(a=b.name,a=Wb?a.toLowerCase():a,this.T={name:a,O:b.O});this.A=this.i.k()}v(Oc,H);
Oc.prototype.evaluate=function(a){var b=a.j,c=k,c=this.J(),d=k,e=k,f=0;c&&(d=c.name,e=c.O?J(c.O,a):k,f=1);if(this.ga)if(!this.k()&&this.F==Pc)c=ec(this.ba,b,d,e),c=Ac(this.i,c,f);else if(a=rc((new Oc(Qc,new kc("node"))).evaluate(a)),b=a.next())for(c=this.z(b,d,e,f);(b=a.next())!=k;)c=oc(c,this.z(b,d,e,f));else c=new G;else c=this.z(a.j,d,e,f);return c};Oc.prototype.z=function(a,b,c,d){a=this.F.X(this.ba,a,b,c);return a=Ac(this.i,a,d)};
Oc.prototype.toString=function(a){var a=a||"",b=a+"Step: \n",a=a+"  ",b=b+(a+"Operator: "+(this.ga?"//":"/")+"\n");this.F.r&&(b+=a+"Axis: "+this.F+"\n");b+=this.ba.toString(a);if(this.i.length)for(var b=b+(a+"Predicates: \n"),c=0;c<this.i.length;c++)var d=c<this.i.length-1?", ":"",b=b+(this.i[c].toString(a)+d);return b};function Rc(a,b,c,d){this.r=a;this.X=b;this.N=c;this.Va=d}Rc.prototype.toString=n("r");var Sc={};
function N(a,b,c,d){a in Sc&&h(Error("Axis already created: "+a));b=new Rc(a,b,c,!!d);return Sc[a]=b}N("ancestor",function(a,b){for(var c=new G,d=b;d=d.parentNode;)a.matches(d)&&c.unshift(d);return c},j);N("ancestor-or-self",function(a,b){var c=new G,d=b;do a.matches(d)&&c.unshift(d);while(d=d.parentNode);return c},j);
var Ic=N("attribute",function(a,b){var c=new G,d=a.getName();if("style"==d&&b.style&&Wb)return c.add(new Yb(b.style,b,"style",b.style.cssText,b.sourceIndex)),c;var e=b.attributes;if(e)if(a instanceof kc&&a.h===k||"*"==d)for(var d=b.sourceIndex,f=0,g;g=e[f];f++)Wb?g.nodeValue&&c.add(Zb(b,g,d)):c.add(g);else(g=e.getNamedItem(d))&&(Wb?g.nodeValue&&c.add(Zb(b,g,b.sourceIndex)):c.add(g));return c},l),Pc=N("child",function(a,b,c,d,e){return(Wb?lc:mc).call(k,a,b,u(c)?c:k,u(d)?d:k,e||new G)},l,j);
N("descendant",ec,l,j);var Qc=N("descendant-or-self",function(a,b,c,d){var e=new G;dc(b,c,d)&&a.matches(b)&&e.add(b);return ec(a,b,c,d,e)},l,j),Lc=N("following",function(a,b,c,d){var e=new G;do for(var f=b;f=f.nextSibling;)dc(f,c,d)&&a.matches(f)&&e.add(f),e=ec(a,f,c,d,e);while(b=b.parentNode);return e},l,j);N("following-sibling",function(a,b){for(var c=new G,d=b;d=d.nextSibling;)a.matches(d)&&c.add(d);return c},l);N("namespace",function(){return new G},l);
var Tc=N("parent",function(a,b){var c=new G;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),Mc=N("preceding",function(a,b,c,d){var e=new G,f=[];do f.unshift(b);while(b=b.parentNode);for(var g=1,m=f.length;g<m;g++){for(var r=[],b=f[g];b=b.previousSibling;)r.unshift(b);for(var t=0,M=r.length;t<M;t++)b=r[t],dc(b,c,d)&&a.matches(b)&&e.add(b),e=ec(a,b,c,d,e)}return e},j,j);
N("preceding-sibling",function(a,b){for(var c=new G,d=b;d=d.previousSibling;)a.matches(d)&&c.unshift(d);return c},j);var Uc=N("self",function(a,b){var c=new G;a.matches(b)&&c.add(b);return c},l);function Vc(a){H.call(this,1);this.sa=a;this.A=a.k();this.m=a.m}v(Vc,H);Vc.prototype.evaluate=function(a){return-I(this.sa,a)};Vc.prototype.toString=function(a){var a=a||"",b=a+"UnaryExpr: -\n";return b+=this.sa.toString(a+"  ")};function Wc(a){H.call(this,4);this.Z=a;this.A=ya(this.Z,function(a){return a.k()});this.m=ya(this.Z,function(a){return a.m})}v(Wc,H);Wc.prototype.evaluate=function(a){var b=new G;w(this.Z,function(c){c=c.evaluate(a);c instanceof G||h(Error("PathExpr must evaluate to NodeSet."));b=oc(b,c)});return b};Wc.prototype.toString=function(a){var b=a||"",c=b+"UnionExpr:\n",b=b+"  ";w(this.Z,function(a){c+=a.toString(b)+"\n"});return c.substring(0,c.length)};function Xc(a){this.a=a}function Yc(a){for(var b,c=[];;){O(a,"Missing right hand side of binary expression.");b=Zc(a);var d=a.a.next();if(!d)break;var e=(d=yc[d]||k)&&d.Aa;if(!e){a.a.back();break}for(;c.length&&e<=c[c.length-1].Aa;)b=new uc(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new uc(c.pop(),c.pop(),b);return b}function O(a,b){a.a.empty()&&h(Error(b))}function $c(a,b){var c=a.a.next();c!=b&&h(Error("Bad token, expected: "+b+" got: "+c))}
function ad(a){a=a.a.next();")"!=a&&h(Error("Bad token: "+a))}function bd(a){a=a.a.next();2>a.length&&h(Error("Unclosed literal string"));return new Fc(a)}function cd(a){return"*"!=F(a.a)&&":"==F(a.a,1)&&"*"==F(a.a,2)?new hc(a.a.next()+a.a.next()+a.a.next()):new hc(a.a.next())}
function dd(a){var b,c=[],d;if("/"==F(a.a)||"//"==F(a.a)){b=a.a.next();d=F(a.a);if("/"==b&&(a.a.empty()||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Jc;d=new Jc;O(a,"Missing next location step.");b=ed(a,b);c.push(b)}else{a:{b=F(a.a);d=b.charAt(0);switch(d){case "$":h(Error("Variable reference not allowed in HTML XPath"));case "(":a.a.next();b=Yc(a);O(a,'unclosed "("');$c(a,")");break;case '"':case "'":b=bd(a);break;default:if(isNaN(+b))if(!Ec(b)&&/(?![0-9])[\w]/.test(d)&&
"("==F(a.a,1)){b=a.a.next();b=Dc[b]||k;a.a.next();for(d=[];")"!=F(a.a);){O(a,"Missing function argument list.");d.push(Yc(a));if(","!=F(a.a))break;a.a.next()}O(a,"Unclosed function argument list.");ad(a);b=new Bc(b,d)}else{b=k;break a}else b=new Gc(+a.a.next())}"["==F(a.a)&&(d=new Nc(fd(a)),b=new zc(b,d))}if(b)if("/"==F(a.a)||"//"==F(a.a))d=b;else return b;else b=ed(a,"/"),d=new Kc,c.push(b)}for(;"/"==F(a.a)||"//"==F(a.a);)b=a.a.next(),O(a,"Missing next location step."),b=ed(a,b),c.push(b);return new Hc(d,
c)}
function ed(a,b){var c,d,e;"/"!=b&&"//"!=b&&h(Error('Step op should be "/" or "//"'));if("."==F(a.a))return d=new Oc(Uc,new kc("node")),a.a.next(),d;if(".."==F(a.a))return d=new Oc(Tc,new kc("node")),a.a.next(),d;var f;"@"==F(a.a)?(f=Ic,a.a.next(),O(a,"Missing attribute name")):"::"==F(a.a,1)?(/(?![0-9])[\w]/.test(F(a.a).charAt(0))||h(Error("Bad token: "+a.a.next())),e=a.a.next(),(f=Sc[e]||k)||h(Error("No axis with name: "+e)),a.a.next(),O(a,"Missing node name")):f=Pc;e=F(a.a);if(/(?![0-9])[\w]/.test(e.charAt(0)))if("("==F(a.a,
1)){Ec(e)||h(Error("Invalid node type: "+e));c=a.a.next();Ec(c)||h(Error("Invalid type name: "+c));$c(a,"(");O(a,"Bad nodetype");e=F(a.a).charAt(0);var g=k;if('"'==e||"'"==e)g=bd(a);O(a,"Bad nodetype");ad(a);c=new kc(c,g)}else c=cd(a);else"*"==e?c=cd(a):h(Error("Bad token: "+a.a.next()));e=new Nc(fd(a),f.N);return d||new Oc(f,c,e,"//"==b)}
function fd(a){for(var b=[];"["==F(a.a);){a.a.next();O(a,"Missing predicate expression.");var c=Yc(a);b.push(c);O(a,"Unclosed predicate expression.");$c(a,"]")}return b}function Zc(a){if("-"==F(a.a))return a.a.next(),new Vc(Zc(a));var b=dd(a);if("|"!=F(a.a))a=b;else{for(b=[b];"|"==a.a.next();)O(a,"Missing next union location path."),b.push(dd(a));a.a.back();a=new Wc(b)}return a};function gd(a){a.length||h(Error("Empty XPath expression."));for(var a=a.match(ac),b=0;b<a.length;b++)bc.test(a[b])&&a.splice(b,1);a=new $b(a);a.empty()&&h(Error("Invalid XPath expression."));var c=Yc(new Xc(a));a.empty()||h(Error("Bad token: "+a.next()));this.evaluate=function(a,b){var f=c.evaluate(new Vb(a));return new P(f,b)}}
function P(a,b){0==b&&(a instanceof G?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 G))&&h(Error("document.evaluate called with wrong result type."));this.resultType=b;var c;switch(b){case 2:this.stringValue=a instanceof G?qc(a):""+a;break;case 1:this.numberValue=a instanceof G?+qc(a):+a;break;case 3:this.booleanValue=a instanceof G?0<a.C():!!a;break;case 4:case 5:case 6:case 7:var d=rc(a);c=[];
for(var e=d.next();e;e=d.next())c.push(e instanceof Yb?e.j:e);this.snapshotLength=a.C();this.invalidIteratorState=l;break;case 8:case 9:d=pc(a);this.singleNodeValue=d instanceof Yb?d.j: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?k:c[f++]};this.snapshotItem=function(a){6!=b&&7!=b&&h(Error("snapshotItem called with wrong result type."));return a>=c.length||0>a?k:c[a]}}
P.ANY_TYPE=0;P.NUMBER_TYPE=1;P.STRING_TYPE=2;P.BOOLEAN_TYPE=3;P.UNORDERED_NODE_ITERATOR_TYPE=4;P.ORDERED_NODE_ITERATOR_TYPE=5;P.UNORDERED_NODE_SNAPSHOT_TYPE=6;P.ORDERED_NODE_SNAPSHOT_TYPE=7;P.ANY_UNORDERED_NODE_TYPE=8;P.FIRST_ORDERED_NODE_TYPE=9;var Q={},hd={mb:"http://www.w3.org/2000/svg"};Q.Ia=function(a){return hd[a]||k};
Q.z=function(a,b,c){var d=E(a);if(z||Sb){var e=tb(d)||q,f=e.document;f.evaluate||(e.XPathResult=P,f.evaluate=function(a,b,c,d){return(new gd(a)).evaluate(b,d)},f.createExpression=function(a){return new gd(a)})}try{var g=d.createNSResolver?d.createNSResolver(d.documentElement):Q.Ia;return z&&!ib(7)?d.evaluate.call(d,b,a,g,c,k):d.evaluate(b,a,g,c,k)}catch(m){A&&"NS_ERROR_ILLEGAL_VALUE"==m.name||h(new x(32,"Unable to locate an element with the xpath expression "+b+" because of the following error:\n"+
m))}};Q.fa=function(a,b){(!a||1!=a.nodeType)&&h(new x(32,'The result of the xpath expression "'+b+'" is: '+a+". It should be an element."))};Q.K=function(a,b){var c=function(){var c=Q.z(b,a,9);return c?(c=c.singleNodeValue,y?c:c||k):b.selectSingleNode?(c=E(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):k}();c===k||Q.fa(c,a);return c};
Q.w=function(a,b){var c=function(){var c=Q.z(b,a,7);if(c){var e=c.snapshotLength;y&&!s(e)&&Q.fa(k,a);for(var f=[],g=0;g<e;++g)f.push(c.snapshotItem(g));return f}return b.selectNodes?(c=E(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectNodes(a)):[]}();w(c,function(b){Q.fa(b,a)});return c};function id(a){return(a=a.exec(Va()))?a[1]:""}var jd=function(){if(Ob)return id(/Firefox\/([0-9.]+)/);if(Nb||Mb)return bb;if(Tb)return id(/Chrome\/([0-9.]+)/);if(Ub)return id(/Version\/([0-9.]+)/);if(Qb||Rb){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Va());if(a)return a[1]+"."+a[2]}else{if(Sb)return(a=id(/Android\s+([0-9.]+)/))?a:id(/Version\/([0-9.]+)/);if(Pb)return id(/Camino\/([0-9.]+)/)}return""}();var kd,ld;function R(a){return md?kd(a):z?0<=pa(kb,a):ib(a)}function nd(a){return md?ld(a):Sb?0<=pa(od,a):0<=pa(jd,a)}
var md=function(){if(!A)return l;var a=q.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;kd=function(a){return 0<=d.Ja(e,""+a)};ld=function(a){return 0<=d.Ja(f,""+a)};return j}(),pd=Rb||Qb,qd;if(Sb){var rd=/Android\s+([0-9\.]+)/.exec(Va());qd=rd?rd[1]:"0"}else qd="0";
var od=qd,sd=z&&!jb(8),td=jb(9),ud=z&&!jb(9),vd=jb(10),wd=z&&!jb(10);Sb&&nd(2.3);!y&&(!B||R("533"));function xd(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}xd.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};xd.prototype.contains=function(a){return!this||!a?l:a instanceof xd?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};function yd(a,b){var c=E(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function zd(a,b){return yd(a,b)||(a.currentStyle?a.currentStyle[b]:k)||a.style&&a.style[b]}function Ad(a){var a=a?E(a):document,b;if(b=z)if(b=!jb(9))b=D(a),b=!sb(b.I);return b?a.body:a.documentElement}
function Bd(a){var b=a.getBoundingClientRect();z&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function Cd(a){if(z&&!jb(8))return a.offsetParent;for(var b=E(a),c=zd(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=zd(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 k}
function Dd(a){var b,c=E(a),d=zd(a,"position");ta(a,"Parameter is required");var e=A&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new C(0,0),g=Ad(c);if(a==g)return f;if(a.getBoundingClientRect)b=Bd(a),a=D(c),a=rb(a.I),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(g),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{b=a;do{f.x+=b.offsetLeft;f.y+=b.offsetTop;b!=a&&(f.x+=
b.clientLeft||0,f.y+=b.clientTop||0);if(B&&"fixed"==zd(b,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(y||B&&"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=Cd(b))&&b!=c.body&&b!=g;)if(f.x-=b.scrollLeft,!y||"TR"!=b.tagName)f.y-=b.scrollTop}return f}
function Ed(a){var b=new C;if(1==a.nodeType){if(a.getBoundingClientRect){var c=Bd(a);b.x=c.left;b.y=c.top}else{var c=D(a),c=rb(c.I),d=Dd(a);b.x=d.x-c.x;b.y=d.y-c.y}if(A&&!ib(12)){var e;z?e="-ms-transform":B?e="-webkit-transform":y?e="-o-transform":A&&(e="-moz-transform");var f;e&&(f=zd(a,e));f||(f=zd(a,"transform"));f?(a=f.match(Fd),a=!a?new C(0,0):new C(parseFloat(a[1]),parseFloat(a[2]))):a=new C(0,0);b=new C(b.x+a.x,b.y+a.y)}}else e=da(a.ua),f=a,a.targetTouches?f=a.targetTouches[0]:e&&a.ua().targetTouches&&
(f=a.ua().targetTouches[0]),b.x=f.clientX,b.y=f.clientY;return b}function Gd(a){if("none"!=zd(a,"display"))return Hd(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=Hd(a);b.display=c;b.position=e;b.visibility=d;return a}function Hd(a){var b=a.offsetWidth,c=a.offsetHeight,d=B&&!b&&!c;return(!s(b)||d)&&a.getBoundingClientRect?(a=Bd(a),new ob(a.right-a.left,a.bottom-a.top)):new ob(b,c)}var Id={thin:2,medium:4,thick:6};
function Jd(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:k))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:k,d;if(c in Id)d=Id[c];else if(/^\d+px?$/.test(c))d=parseInt(c,10);else{d=a.style.left;var e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=c;c=a.style.pixelLeft;a.style.left=d;a.runtimeStyle.left=e;d=c}return d}var Fd=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Kd(a){var b;a:{a=E(a);try{b=a&&a.activeElement;break a}catch(c){}b=k}return b}function S(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function Ld(a){return Md(a,j)&&Nd(a)&&!(z||y||A&&!R("1.9.2")?0:"none"==T(a,"pointer-events"))}function Od(a){return S(a,"OPTION")?j:S(a,"INPUT")?(a=a.type.toLowerCase(),"checkbox"==a||"radio"==a):l}function Pd(a,b){var c;if(c=sd)if(c="value"==b)if(c=S(a,"OPTION"))c=Qd(a,"value")===k;c?(c=[],Bb(a,c,l),c=c.join("")):c=a[b];return c}
var Rd=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;
function Qd(a,b){b=b.toLowerCase();if("style"==b){var c=[];w(a.style.cssText.split(Rd),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 y?c.replace(/\w+:;/g,""):c}if(sd&&"value"==b&&S(a,"INPUT"))return a.value;if(ud&&a[b]===j)return String(a.getAttribute(b));var d=a.getAttributeNode(b);return d&&d.specified?d.value:k}var Sd="BUTTON INPUT OPTGROUP OPTION SELECT TEXTAREA".split(" ");
function Nd(a){var b=a.tagName.toUpperCase();return!Aa(Sd,b)?j:Pd(a,"disabled")?l:a.parentNode&&1==a.parentNode.nodeType&&"OPTGROUP"==b||"OPTION"==b?Nd(a.parentNode):j}var Td="text search tel url email password number".split(" ");
function Ud(a){if(S(a,"TEXTAREA"))a=j;else if(S(a,"INPUT"))a=Aa(Td,a.type.toLowerCase());else var b=function(a){return"inherit"==a.contentEditable?(a=Vd(a))?b(a):l:"true"==a.contentEditable},a=(!s(a.contentEditable)?0:!z&&s(a.isContentEditable)?a.isContentEditable:b(a))?j:l;return a}function Vd(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return S(a)?a:k}
function T(a,b){var c=String(b).replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()});if("float"==c||"cssFloat"==c||"styleFloat"==c)c=ud?"styleFloat":"cssFloat";c=yd(a,c)||Wd(a,c);if(c===k)c=k;else if(Aa(Ea,b)&&(Ha.test("#"==c.charAt(0)?c:"#"+c)||La(c).length||Da&&Da[c.toLowerCase()]||Ja(c).length)){var d=Ja(c);if(!d.length){a:if(d=La(c),!d.length){d=Da[c.toLowerCase()];d=!d?"#"==c.charAt(0)?c:"#"+c:d;if(Ha.test(d)&&(d=Ga(d),d=Ga(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 Wd(a,b){var c=a.currentStyle||a.style,d=c[b];!s(d)&&da(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?s(d)?d:k:(c=Vd(a))?Wd(c,b):k}
function Xd(a){if(da(a.getBBox))try{var b=a.getBBox();if(b)return b}catch(c){}if(S(a,nb)){b=tb(E(a))||i;"hidden"!=T(a,"overflow")?a=j:(a=Vd(a),!a||!S(a,"HTML")?a=j:(a=T(a,"overflow"),a="auto"==a||"scroll"==a));if(a){var a=(b||ka).document,b=a.documentElement,d=a.body;d||h(new x(13,"No BODY element present"));a=[b.clientHeight,b.scrollHeight,b.offsetHeight,d.scrollHeight,d.offsetHeight];b=Math.max.apply(k,[b.clientWidth,b.scrollWidth,b.offsetWidth,d.scrollWidth,d.offsetWidth]);a=Math.max.apply(k,a);
b=new ob(b,a)}else b=(b||window).document,b=sb(b)?b.documentElement:b.body,b=new ob(b.clientWidth,b.clientHeight);return b}return Gd(a)}
function Md(a,b){function c(a){if("none"==T(a,"display"))return l;a=Vd(a);return!a||c(a)}function d(a){var b=Xd(a);return 0<b.height&&0<b.width?j:S(a,"PATH")&&(0<b.height||0<b.width)?(b=T(a,"stroke-width"),!!b&&0<parseInt(b,10)):ya(a.childNodes,function(b){return b.nodeType==pb&&"hidden"!=T(a,"overflow")||S(b)&&d(b)})}function e(a){var b=Cd(a),c=A||z||y?Vd(a):b;if((A||z||y)&&S(c,nb))b=c;if(b&&"hidden"==T(b,"overflow")){var c=Xd(b),d=Ed(b),a=Ed(a);return d.x+c.width<a.x||d.y+c.height<a.y?l:e(b)}return j}
function f(a){var b=T(a,"-o-transform")||T(a,"-webkit-transform")||T(a,"-ms-transform")||T(a,"-moz-transform")||T(a,"transform");if(b&&"none"!==b)return b=Ed(a),a=Xd(a),0<=b.x+a.width/2&&0<=b.y+a.height/2?j:l;a=Vd(a);return!a||f(a)}S(a)||h(Error("Argument to isShown must be of type Element"));if(S(a,"OPTION")||S(a,"OPTGROUP")){var g=Cb(a,function(a){return S(a,"SELECT")});return!!g&&Md(g,j)}if(S(a,"MAP")){if(!a.name)return l;g=E(a);if(g.evaluate)g=Q.K('/descendant::*[@usemap = "#'+a.name+'"]',g);
else var m=[],g=yb(g,function(b){return S(b)&&Qd(b,"usemap")=="#"+a.name},m,j)?m[0]:i;return!!g&&Md(g,b)}if(S(a,"AREA"))return g=Cb(a,function(a){return S(a,"MAP")}),!!g&&Md(g,b);if(!(g=S(a,"INPUT")&&"hidden"==a.type.toLowerCase()||S(a,"NOSCRIPT")||"hidden"==T(a,"visibility")||!c(a)))if(g=!b)wd?"relative"==T(a,"position")?g=1:(g=T(a,"filter"),g=(g=g.match(/^alpha\(opacity=(\d*)\)/)||g.match(/^progid:DXImageTransform.Microsoft.Alpha\(Opacity=(\d*)\)/))?Number(g[1])/100:1):g=Yd(a),g=0==g;return g||
!d(a)||!e(a)?l:f(a)}function Zd(a){return a.replace(/^[^\S\xa0]+|[^\S\xa0]+$/g,"")}function $d(a){var b=[];ae(a,b);b=wa(b,Zd);return Zd(b.join("\n")).replace(/\xa0/g," ")}
function ae(a,b){if(S(a,"BR"))b.push("");else{var c=S(a,"TD"),d=T(a,"display"),e=!c&&!Aa(be,d),f;if(a.previousElementSibling!=i)f=a.previousElementSibling;else for(f=a.previousSibling;f&&1!=f.nodeType;)f=f.previousSibling;f=f?T(f,"display"):"";var g=T(a,"float")||T(a,"cssFloat")||T(a,"styleFloat");e&&(!("run-in"==f&&"none"==g)&&!/^[\s\xa0]*$/.test(b[b.length-1]||""))&&b.push("");var m=Md(a),r=k,t=k;m&&(r=T(a,"white-space"),t=T(a,"text-transform"));w(a.childNodes,function(a){if(a.nodeType==pb&&m){var c=
r,d=t,a=a.nodeValue.replace(/\u200b/g,""),a=a.replace(/(\r\n|\r|\n)/g,"\n");if("normal"==c||"nowrap"==c)a=a.replace(/\n/g," ");a="pre"==c||"pre-wrap"==c?a.replace(/[ \f\t\v\u2028\u2029]/g,"\u00a0"):a.replace(/[\ \f\t\v\u2028\u2029]+/g," ");"capitalize"==d?a=a.replace(/(^|\s)(\S)/g,function(a,b,c){return b+c.toUpperCase()}):"uppercase"==d?a=a.toUpperCase():"lowercase"==d&&(a=a.toLowerCase());c=b.pop()||"";ma(c)&&0==a.lastIndexOf(" ",0)&&(a=a.substr(1));b.push(c+a)}else S(a)&&ae(a,b)});f=b[b.length-
1]||"";if((c||"table-cell"==d)&&f&&!ma(f))b[b.length-1]+=" ";e&&("run-in"!=d&&!/^[\s\xa0]*$/.test(f))&&b.push("")}}var be="inline inline-block inline-table none table-cell table-column table-column-group".split(" ");function Yd(a){var b=1,c=T(a,"opacity");c&&(b=Number(c));(a=Vd(a))&&(b*=Yd(a));return b};var ce={qa:function(a){return!(!a.querySelectorAll||!a.querySelector)},K:function(a,b){a||h(Error("No class name specified"));a=oa(a);1<a.split(/\s+/).length&&h(Error("Compound class names not permitted"));if(ce.qa(b))return b.querySelector("."+a.replace(/\./g,"\\."))||k;var c=Db(D(b),"*",a,b);return c.length?c[0]:k},w:function(a,b){a||h(Error("No class name specified"));a=oa(a);1<a.split(/\s+/).length&&h(Error("Compound class names not permitted"));return ce.qa(b)?b.querySelectorAll("."+a.replace(/\./g,
"\\.")):Db(D(b),"*",a,b)}};var de={K:function(a,b){!da(b.querySelector)&&(z&&R(8)&&!ea(b.querySelector))&&h(Error("CSS selection is not supported"));a||h(Error("No selector specified"));var a=oa(a),c=b.querySelector(a);return c&&1==c.nodeType?c:k},w:function(a,b){!da(b.querySelectorAll)&&(z&&R(8)&&!ea(b.querySelector))&&h(Error("CSS selection is not supported"));a||h(Error("No selector specified"));a=oa(a);return b.querySelectorAll(a)}};var ee={},fe={};ee.Da=function(a,b,c){var d;try{d=de.w("a",b)}catch(e){d=Db(D(b),"A",k,b)}return za(d,function(b){b=$d(b);return c&&-1!=b.indexOf(a)||b==a})};ee.ya=function(a,b,c){var d;try{d=de.w("a",b)}catch(e){d=Db(D(b),"A",k,b)}return va(d,function(b){b=$d(b);return c&&-1!=b.indexOf(a)||b==a})};ee.K=function(a,b){return ee.Da(a,b,l)};ee.w=function(a,b){return ee.ya(a,b,l)};fe.K=function(a,b){return ee.Da(a,b,j)};fe.w=function(a,b){return ee.ya(a,b,j)};var ge={K:function(a,b){return b.getElementsByTagName(a)[0]||k},w:function(a,b){return b.getElementsByTagName(a)}};var he={className:ce,"class name":ce,css:de,"css selector":de,id:{K:function(a,b){var c=D(b),d=c.c(a);if(!d)return k;if(Qd(d,"id")==a&&ub(b,d))return d;c=Db(c,"*");return za(c,function(c){return Qd(c,"id")==a&&ub(b,c)})},w:function(a,b){var c=Db(D(b),"*",k,b);return va(c,function(b){return Qd(b,"id")==a})}},linkText:ee,"link text":ee,name:{K:function(a,b){var c=Db(D(b),"*",k,b);return za(c,function(b){return Qd(b,"name")==a})},w:function(a,b){var c=Db(D(b),"*",k,b);return va(c,function(b){return Qd(b,
"name")==a})}},partialLinkText:fe,"partial link text":fe,tagName:ge,"tag name":ge,xpath:Q};function ie(a,b){var c;a:{for(c in a)if(a.hasOwnProperty(c))break a;c=k}if(c){var d=he[c];if(d&&da(d.w))return d.w(a[c],b||ka.document)}h(Error("Unsupported locator strategy: "+c))};function je(a){this.d=ka.document.documentElement;this.q=k;var b=Kd(this.d);b&&ke(this,b);this.D=a||new le}je.prototype.c=n("d");function ke(a,b){a.d=b;a.q=S(b,"OPTION")?Cb(b,function(a){return S(a,"SELECT")}):k}
function me(a,b,c,d,e,f,g){if(!g&&!Ld(a.d))return l;e&&!(ne==b||oe==b)&&h(new x(12,"Event type does not allow related target: "+b));c={clientX:c.x,clientY:c.y,button:d,altKey:a.D.e(4),ctrlKey:a.D.e(2),shiftKey:a.D.e(1),metaKey:a.D.e(8),wheelDelta:f||0,relatedTarget:e||k};return(a=a.q?pe(a,b):a.d)?U(a,b,c):j}
function qe(a,b,c,d,e,f,g,m,r){if(!r&&!Ld(a.d))return l;m&&!(re==b||se==b)&&h(new x(12,"Event type does not allow related target: "+b));c={clientX:c.x,clientY:c.y,button:d,altKey:l,ctrlKey:l,shiftKey:l,metaKey:l,relatedTarget:m||k,width:0,height:0,Ta:0,rotation:0,pointerId:e,Wa:0,Xa:0,pointerType:f,Ma:g};return(a=a.q?pe(a,b):a.d)?U(a,b,c):j}
function pe(a,b){if(z)switch(b){case ne:case re:return k;case te:case ue:case ve:return a.q.multiple?a.q:k;default:return a.q}if(y)switch(b){case te:case ne:return a.q.multiple?a.d:k;default:return a.d}if(B)switch(b){case we:case xe:return a.q.multiple?a.d:a.q;default:return a.q.multiple?a.d:k}return a.d}
function ye(a){var a=a.q||a.d,b=Kd(a);if(a==b)return l;if(b&&(da(b.blur)||z&&ea(b.blur))){try{"body"!==b.tagName.toLowerCase()&&b.blur()}catch(c){z&&"Unspecified error."==c.message||h(c)}z&&!R(8)&&tb(E(a)).focus()}return da(a.focus)||z&&ea(a.focus)?(y&&R(11)&&!Md(a)?U(a,ze):a.focus(),j):l}var Ae=B||y||md&&nd(3.6);function Be(a){if(S(a,"INPUT")){var b=a.type.toLowerCase();if("submit"==b||"image"==b)return j}return S(a,"BUTTON")&&(b=a.type.toLowerCase(),"submit"==b)?j:l}
function Ce(a){if(Ae||!a.href)return l;if(!md)return j;if(a.target||0==a.href.toLowerCase().indexOf("javascript"))return l;var b=tb(E(a)),c=b.location.href,a=De(b.location,a.href);return c.split("#")[0]!==a.split("#")[0]}function Ee(a){return S(a,"FORM")}var Fe=/^([^:/?#.]+:)?(?:\/\/([^/]*))?([^?#]+)?(\?[^#]*)?(#.*)?$/;
function De(a,b){var c=b.match(Fe);if(!c)return"";var d=c[1]||"",e=c[2]||"",f=c[3]||"",g=c[4]||"",c=c[5]||"";if(!d&&(d=a.protocol,!e))if(e=a.host,f){if("/"!=f.charAt(0)){var m=a.pathname.lastIndexOf("/");-1!=m&&(f=a.pathname.substr(0,m+1)+f)}}else f=a.pathname,g=g||a.search;return d+"//"+e+f+g+c}function le(){this.$=0}le.prototype.e=function(a){return 0!=(this.$&a)};var Ge=!(z&&!R(10))&&!y,He=Sb?!nd(4):!pd,Ie=z&&ka.navigator.msPointerEnabled;function V(a,b,c){this.h=a;this.G=b;this.H=c}V.prototype.create=function(a){a=E(a);ud?a=a.createEventObject():(a=a.createEvent("HTMLEvents"),a.initEvent(this.h,this.G,this.H));return a};V.prototype.toString=n("h");function W(a,b,c){V.call(this,a,b,c)}v(W,V);
W.prototype.create=function(a,b){!A&&this==Je&&h(new x(9,"Browser does not support a mouse pixel scroll event."));var c=E(a),d;if(ud){d=c.createEventObject();d.altKey=b.altKey;d.ctrlKey=b.ctrlKey;d.metaKey=b.metaKey;d.shiftKey=b.shiftKey;d.button=b.button;d.clientX=b.clientX;d.clientY=b.clientY;var e=function(a,b){Object.defineProperty(d,a,{get:function(){return b}})};if(this==oe||this==ne)Object.defineProperty?(c=this==oe,e("fromElement",c?a:b.relatedTarget),e("toElement",c?b.relatedTarget:a)):d.relatedTarget=
b.relatedTarget;this==Ke&&(Object.defineProperty?e("wheelDelta",b.wheelDelta):d.detail=b.wheelDelta)}else{e=tb(c);d=c.createEvent("MouseEvents");c=1;if(this==Ke&&(A||(d.wheelDelta=b.wheelDelta),A||y))c=b.wheelDelta/-40;A&&this==Je&&(c=b.wheelDelta);d.initMouseEvent(this.h,this.G,this.H,e,c,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);if(z&&0===d.pageX&&0===d.pageY&&Object.defineProperty){var e=D(a),e=!B&&sb(e.I)?e.I.documentElement:e.I.body,c=Ad(a),f=b.clientX+
e.scrollLeft-c.clientLeft,g=b.clientY+e.scrollTop-c.clientTop;Object.defineProperty(d,"pageX",{get:function(){return f}});Object.defineProperty(d,"pageY",{get:function(){return g}})}}return d};function Le(a,b,c){V.call(this,a,b,c)}v(Le,V);
Le.prototype.create=function(a,b){var c=E(a);if(A){var d=tb(c),e=b.charCode?0:b.keyCode,c=c.createEvent("KeyboardEvent");c.initKeyEvent(this.h,this.G,this.H,d,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,e,b.charCode);this.h==Me&&b.preventDefault&&c.preventDefault()}else ud?c=c.createEventObject():(c=c.createEvent("Events"),c.initEvent(this.h,this.G,this.H)),c.altKey=b.altKey,c.ctrlKey=b.ctrlKey,c.metaKey=b.metaKey,c.shiftKey=b.shiftKey,c.keyCode=b.charCode||b.keyCode,B&&(c.charCode=this==Me?c.keyCode:
0);return c};function Ne(a,b,c){V.call(this,a,b,c)}v(Ne,V);
Ne.prototype.create=function(a,b){function c(b){b=wa(b,function(b){return e.createTouch(f,a,b.identifier,b.pageX,b.pageY,b.screenX,b.screenY)});return e.createTouchList.apply(e,b)}function d(b){var c=wa(b,function(b){return{identifier:b.identifier,screenX:b.screenX,screenY:b.screenY,clientX:b.clientX,clientY:b.clientY,pageX:b.pageX,pageY:b.pageY,target:a}});c.item=function(a){return c[a]};return c}Ge||h(new x(9,"Browser does not support firing touch events."));var e=E(a),f=tb(e),g=He?d(b.changedTouches):
c(b.changedTouches),m=b.touches==b.changedTouches?g:He?d(b.touches):c(b.touches),r=b.targetTouches==b.changedTouches?g:He?d(b.targetTouches):c(b.targetTouches),t;He?(t=e.createEvent("MouseEvents"),t.initMouseEvent(this.h,this.G,this.H,f,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,0,b.relatedTarget),t.touches=m,t.targetTouches=r,t.changedTouches=g,t.scale=b.scale,t.rotation=b.rotation):(t=e.createEvent("TouchEvent"),Sb?t.initTouchEvent(m,r,g,this.h,f,0,0,b.clientX,b.clientY,b.ctrlKey,
b.altKey,b.shiftKey,b.metaKey):t.initTouchEvent(this.h,this.G,this.H,f,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,m,r,g,b.scale,b.rotation),t.relatedTarget=b.relatedTarget);return t};function Oe(a,b,c){V.call(this,a,b,c)}v(Oe,V);
Oe.prototype.create=function(a,b){Ie||h(new x(9,"Browser does not support MSGesture events."));var c=E(a),d=tb(c),c=c.createEvent("MSGestureEvent");c.initGestureEvent(this.h,this.G,this.H,d,1,0,0,b.clientX,b.clientY,0,0,b.translationX,b.translationY,b.scale,b.expansion,b.rotation,b.velocityX,b.velocityY,b.velocityExpansion,b.velocityAngular,(new Date).getTime(),b.relatedTarget);return c};function Pe(a,b,c){V.call(this,a,b,c)}v(Pe,V);
Pe.prototype.create=function(a,b){Ie||h(new x(9,"Browser does not support MSPointer events."));var c=E(a),d=tb(c),c=c.createEvent("MSPointerEvent");c.bb(this.h,this.G,this.H,d,0,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget,0,0,b.width,b.height,b.Ta,b.rotation,b.Wa,b.Xa,b.pointerId,b.pointerType,0,b.Ma);return c};
var Qe=new V("change",j,l),ze=new V("focus",l,l),Re=new V("input",l,l),Se=new V("submit",j,j),Te=new V("textInput",j,j),we=new W("click",j,j),te=new W("contextmenu",j,j),Ue=new W("dblclick",j,j),Ve=new W("mousedown",j,j),ue=new W("mousemove",j,l),oe=new W("mouseout",j,j),ne=new W("mouseover",j,j),xe=new W("mouseup",j,j),Ke=new W(A?"DOMMouseScroll":"mousewheel",j,j),Je=new W("MozMousePixelScroll",j,j),We=new Le("keydown",j,j),Me=new Le("keypress",j,j),Xe=new Le("keyup",j,j),Ye=new Ne("touchmove",j,
j),Ze=new Ne("touchstart",j,j),$e=new Pe("MSPointerDown",j,j),ve=new Pe("MSPointerMove",j,j),re=new Pe("MSPointerOver",j,j),se=new Pe("MSPointerOut",j,j),af=new Pe("MSPointerUp",j,j);function U(a,b,c){c=b.create(a,c);"isTrusted"in c||(c.isTrusted=l);return ud?a.fireEvent("on"+b.h,c):a.dispatchEvent(c)};function bf(a,b){if(cf(a))a.selectionStart=b;else if(z){var c=df(a),d=c[0];d.inRange(c[1])&&(b=ef(a,b),d.collapse(j),d.move("character",b),d.select())}}
function ff(a,b){var c=0,d=0;if(cf(a))c=a.selectionStart,d=b?-1:a.selectionEnd;else if(z){var e=df(a),f=e[0],e=e[1];if(f.inRange(e)){f.setEndPoint("EndToStart",e);if("textarea"==a.type){for(var c=e.duplicate(),g=f.text,d=g,m=e=c.text,r=l;!r;)0==f.compareEndPoints("StartToEnd",f)?r=j:(f.moveEnd("character",-1),f.text==g?d+="\r\n":r=j);if(b)f=[d.length,-1];else{for(f=l;!f;)0==c.compareEndPoints("StartToEnd",c)?f=j:(c.moveEnd("character",-1),c.text==e?m+="\r\n":f=j);f=[d.length,d.length+m.length]}return f}c=
f.text.length;d=b?-1:f.text.length+e.text.length}}return[c,d]}function gf(a,b){if(cf(a))a.selectionEnd=b;else if(z){var c=df(a),d=c[1];c[0].inRange(d)&&(b=ef(a,b),c=ef(a,ff(a,j)[0]),d.collapse(j),d.moveEnd("character",b-c),d.select())}}function hf(a,b){if(cf(a))a.selectionStart=b,a.selectionEnd=b;else if(z){var b=ef(a,b),c=a.createTextRange();c.collapse(j);c.move("character",b);c.select()}}
function jf(a,b){if(cf(a)){var c=a.value,d=a.selectionStart;a.value=c.substr(0,d)+b+c.substr(a.selectionEnd);a.selectionStart=d;a.selectionEnd=d+b.length}else z?(d=df(a),c=d[1],d[0].inRange(c)&&(d=c.duplicate(),c.text=b,c.setEndPoint("StartToStart",d),c.select())):h(Error("Cannot set the selection end"))}function df(a){var b=a.ownerDocument||a.document,c=b.selection.createRange();"textarea"==a.type?(b=b.body.createTextRange(),b.moveToElementText(a)):b=a.createTextRange();return[b,c]}
function ef(a,b){"textarea"==a.type&&(b=a.value.substring(0,b).replace(/(\r\n|\r|\n)/g,"\n").length);return b}function cf(a){try{return"number"==typeof a.selectionStart}catch(b){return l}};function kf(a){if("function"==typeof a.Q)return a.Q();if(u(a))return a.split("");if(ca(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Na(a)};function lf(a,b){this.p={};this.l=[];var c=arguments.length;if(1<c){c%2&&h(Error("Uneven number of arguments"));for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.da(a)}p=lf.prototype;p.P=0;p.Ha=0;p.Q=function(){mf(this);for(var a=[],b=0;b<this.l.length;b++)a.push(this.p[this.l[b]]);return a};function nf(a){mf(a);return a.l.concat()}p.remove=function(a){return of(this.p,a)?(delete this.p[a],this.P--,this.Ha++,this.l.length>2*this.P&&mf(this),j):l};
function mf(a){if(a.P!=a.l.length){for(var b=0,c=0;b<a.l.length;){var d=a.l[b];of(a.p,d)&&(a.l[c++]=d);b++}a.l.length=c}if(a.P!=a.l.length){for(var e={},c=b=0;b<a.l.length;)d=a.l[b],of(e,d)||(a.l[c++]=d,e[d]=1),b++;a.l.length=c}}p.get=function(a,b){return of(this.p,a)?this.p[a]:b};p.set=function(a,b){of(this.p,a)||(this.P++,this.l.push(a),this.Ha++);this.p[a]=b};
p.da=function(a){var b;if(a instanceof lf)b=nf(a),a=a.Q();else{b=[];var c=0,d;for(d in a)b[c++]=d;a=Na(a)}for(c=0;c<b.length;c++)this.set(b[c],a[c])};function of(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function pf(a){this.p=new lf;a&&this.da(a)}function qf(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[fa]||(a[fa]=++ia)):b.substr(0,1)+a}p=pf.prototype;p.add=function(a){this.p.set(qf(a),a)};p.da=function(a){for(var a=kf(a),b=a.length,c=0;c<b;c++)this.add(a[c])};p.remove=function(a){return this.p.remove(qf(a))};p.contains=function(a){a=qf(a);return of(this.p.p,a)};p.Q=function(){return this.p.Q()};function rf(a){je.call(this);this.ha=Ud(this.c())&&!Pd(this.c(),"readOnly");this.s=0;this.na=new pf;a&&(w(a.pressed,function(a){sf(this,a,j)},this),this.s=a.currentPos)}v(rf,je);var tf={};function X(a,b,c){ea(a)&&(a=A?a.f:y?a.opera:a.g);a=new uf(a,b,c);if(b&&(!(b in tf)||c))tf[b]={key:a,shift:l},c&&(tf[c]={key:a,shift:j});return a}function uf(a,b,c){this.code=a;this.L=b||k;this.Ua=c||this.L}var vf=X(8),wf=X(9),xf=X(13),Y=X(16),yf=X(17),zf=X(18),Af=X(19);X(20);
var Bf=X(27),Cf=X(32," "),Df=X(33),Ef=X(34),Ff=X(35),Gf=X(36),Hf=X(37),If=X(38),Jf=X(39),Kf=X(40);X(44);var Lf=X(45),Mf=X(46);X(48,"0",")");X(49,"1","!");X(50,"2","@");X(51,"3","#");X(52,"4","$");X(53,"5","%");X(54,"6","^");X(55,"7","&");X(56,"8","*");X(57,"9","(");X(65,"a","A");X(66,"b","B");X(67,"c","C");X(68,"d","D");X(69,"e","E");X(70,"f","F");X(71,"g","G");X(72,"h","H");X(73,"i","I");X(74,"j","J");X(75,"k","K");X(76,"l","L");X(77,"m","M");X(78,"n","N");X(79,"o","O");X(80,"p","P");X(81,"q","Q");
X(82,"r","R");X(83,"s","S");X(84,"t","T");X(85,"u","U");X(86,"v","V");X(87,"w","W");X(88,"x","X");X(89,"y","Y");X(90,"z","Z");
var Nf=X(Ua?{f:91,g:91,opera:219}:Ta?{f:224,g:91,opera:17}:{f:0,g:91,opera:k}),Of=X(Ua?{f:92,g:92,opera:220}:Ta?{f:224,g:93,opera:17}:{f:0,g:92,opera:k}),Pf=X(Ua?{f:93,g:93,opera:0}:Ta?{f:0,g:0,opera:16}:{f:93,g:k,opera:0}),Qf=X({f:96,g:96,opera:48},"0"),Rf=X({f:97,g:97,opera:49},"1"),Sf=X({f:98,g:98,opera:50},"2"),Tf=X({f:99,g:99,opera:51},"3"),Uf=X({f:100,g:100,opera:52},"4"),Vf=X({f:101,g:101,opera:53},"5"),Wf=X({f:102,g:102,opera:54},"6"),Xf=X({f:103,g:103,opera:55},"7"),Yf=X({f:104,g:104,opera:56},
"8"),Zf=X({f:105,g:105,opera:57},"9"),$f=X({f:106,g:106,opera:$a?56:42},"*"),ag=X({f:107,g:107,opera:$a?61:43},"+"),bg=X({f:109,g:109,opera:$a?109:45},"-"),cg=X({f:110,g:110,opera:$a?190:78},"."),dg=X({f:111,g:111,opera:$a?191:47},"/");X($a&&y?k:144);var eg=X(112),fg=X(113),gg=X(114),hg=X(115),ig=X(116),jg=X(117),kg=X(118),lg=X(119),mg=X(120),ng=X(121),og=X(122),pg=X(123),qg=X({f:107,g:187,opera:61},"=","+"),rg=X(108,",");X({f:109,g:189,opera:109},"-","_");X(188,",","<");X(190,".",">");
X(191,"/","?");X(192,"`","~");X(219,"[","{");X(220,"\\","|");X(221,"]","}");var sg=X({f:59,g:186,opera:59},";",":");X(222,"'",'"');var tg=[zf,yf,Nf,Y],ug=new lf;ug.set(1,Y);ug.set(2,yf);ug.set(4,zf);ug.set(8,Nf);var vg=new lf;w(nf(ug),function(a){vg.set(ug.get(a).code,a)});function sf(a,b,c){if(Aa(tg,b)){var d=vg.get(b.code),e=a.D;e.$=c?e.$|d:e.$&~d}c?a.na.add(b):a.na.remove(b)}var wg=z||y?"\r\n":"\n";rf.prototype.e=function(a){return this.na.contains(a)};
function xg(a,b){Aa(tg,b)&&a.e(b)&&h(new x(13,"Cannot press a modifier key that is already pressed."));var c=b.code!==k&&yg(a,We,b);if(c||A)if((!zg(b)||yg(a,Me,b,!c))&&c){if(b==xf&&(!A&&S(a.c(),"INPUT"))&&(c=Cb(a.c(),Ee,j))){var d=c.getElementsByTagName("input");if(ya(d,function(a){return Be(a)})||1==d.length||B&&!R(534))if(Ee(c)||h(new x(12,"Element was not in a form, so could not submit.")),U(c,Se))if(S(c.submit))if(!z||R(8))c.constructor.prototype.submit.call(c);else{var d=ie({id:"submit"},c),
e=ie({name:"submit"},c);w(d,function(a){a.removeAttribute("id")});w(e,function(a){a.removeAttribute("name")});c=c.submit;w(d,function(a){a.setAttribute("id","submit")});w(e,function(a){a.setAttribute("name","submit")});c()}else c.submit()}if(a.ha)if(b.L)Ag||(c=Bg(a,b),d=ff(a.c(),j)[0]+1,jf(a.c(),c),bf(a.c(),d),B&&U(a.d,Te),ud||U(a.d,Re),a.s=d);else switch(b){case xf:Ag||(B&&U(a.d,Te),S(a.c(),"TEXTAREA")&&(c=ff(a.c(),j)[0]+wg.length,jf(a.c(),wg),bf(a.c(),c),z||U(a.d,Re),a.s=c));break;case vf:case Mf:Ag||
(c=ff(a.c(),l),c[0]==c[1]&&(b==vf?(bf(a.c(),c[1]-1),gf(a.c(),c[1])):gf(a.c(),c[1]+1)),c=ff(a.c(),l),c=!(c[0]==a.c().value.length||0==c[1]),jf(a.c(),""),(!z&&c||A&&b==vf)&&U(a.d,Re),c=ff(a.c(),l),a.s=c[1]);break;case Hf:case Jf:var c=a.c(),f=ff(c,j)[0],g=ff(c,l)[1],e=d=0;b==Hf?a.e(Y)?a.s==f?(d=Math.max(f-1,0),e=g,f=d):(d=f,f=e=g-1):f=f==g?Math.max(f-1,0):f:a.e(Y)?a.s==g?(d=f,f=e=Math.min(g+1,c.value.length)):(d=f+1,e=g,f=d):f=f==g?Math.min(g+1,c.value.length):g;a.e(Y)?(bf(c,d),gf(c,e)):hf(c,f);a.s=
f;break;case Gf:case Ff:c=a.c(),d=ff(c,j)[0],e=ff(c,l)[1],b==Gf?(a.e(Y)?(bf(c,0),gf(c,a.s==d?e:d)):hf(c,0),a.s=0):(a.e(Y)?(a.s==d&&bf(c,e),gf(c,c.value.length)):hf(c,c.value.length),a.s=c.value.length)}}sf(a,b,j)}function zg(a){if(a.L||a==xf)return j;if(B)return l;if(z)return a==Bf;switch(a){case Y:case yf:case zf:return l;case Nf:case Of:case Pf:return A;default:return j}}
function Cg(a,b){a.e(b)||h(new x(13,"Cannot release a key that is not pressed. ("+b.code+")"));b.code===k||yg(a,Xe,b);sf(a,b,l)}function Bg(a,b){b.L||h(new x(13,"not a character key"));return a.e(Y)?b.Ua:b.L}var Ag=A&&!R(12);function yg(a,b,c,d){c.code===k&&h(new x(13,"Key must have a keycode to be fired."));c={altKey:a.e(zf),ctrlKey:a.e(yf),metaKey:a.e(Nf),shiftKey:a.e(Y),keyCode:c.code,charCode:c.L&&b==Me?Bg(a,c).charCodeAt(0):0,preventDefault:!!d};return U(a.d,b,c)};function Dg(a,b){je.call(this,b);this.W=this.t=k;this.u=new C(0,0);this.ia=this.S=l;if(a){this.t=a.Ya;try{S(a.Ka)&&(this.W=a.Ka)}catch(c){this.t=k}this.u=a.Za;this.S=a.jb;this.ia=a.ab;try{S(a.element)&&ke(this,a.element)}catch(d){this.t=k}}}v(Dg,je);var Z={};
ud?(Z[we]=[0,0,0,k],Z[te]=[k,k,0,k],Z[xe]=[1,4,2,k],Z[oe]=[0,0,0,0],Z[ue]=[1,4,2,0]):B||td?(Z[we]=[0,1,2,k],Z[te]=[k,k,2,k],Z[xe]=[0,1,2,k],Z[oe]=[0,1,2,0],Z[ue]=[0,1,2,0]):(Z[we]=[0,1,2,k],Z[te]=[k,k,2,k],Z[xe]=[0,1,2,k],Z[oe]=[0,0,0,0],Z[ue]=[0,0,0,0]);vd&&(Z[$e]=Z[xe],Z[af]=Z[xe],Z[ve]=[-1,-1,-1,-1],Z[se]=Z[ve],Z[re]=Z[ve]);Z[Ue]=Z[we];Z[Ve]=Z[xe];Z[ne]=Z[oe];var Eg={eb:$e,fb:ve,gb:se,hb:re,ib:af};
Dg.prototype.move=function(a,b){var c=Ld(a),d=Ed(a);this.u.x=b.x+d.x;this.u.y=b.y+d.y;d=this.c();if(a!=d){try{tb(E(d)).closed&&(d=k)}catch(e){d=k}if(d){var f=d===ka.document.documentElement||d===ka.document.body,d=!this.ia&&f?k:d;Fg(this,oe,a)}ke(this,a);z||Fg(this,ne,d,k,c)}Fg(this,ue,k,k,c);z&&a!=d&&Fg(this,ne,d,k,c);this.S=l};function Fg(a,b,c,d,e){a.ia=j;if(vd){var f=Eg[b];if(f&&!qe(a,f,a.u,Gg(a,f),1,MSPointerEvent.MSPOINTER_TYPE_MOUSE,j,c,e))return l}return me(a,b,a.u,Gg(a,b),c,d,e)}
function Gg(a,b){if(!(b in Z))return 0;var c=Z[b][a.t===k?3:a.t];c===k&&h(new x(13,"Event does not permit the specified mouse button."));return c};function Hg(){je.call(this);this.u=new C(0,0);this.V=new C(0,0)}v(Hg,je);p=Hg.prototype;p.La=l;p.pa=0;p.ca=0;
p.move=function(a,b,c){(!this.e()||vd)&&ke(this,a);a=Ed(a);this.u.x=b.x+a.x;this.u.y=b.y+a.y;s(c)&&(this.V.x=c.x+a.x,this.V.y=c.y+a.y);if(this.e())if(this.La=j,vd){var d=Ig;d(this,this.u,this.pa,j);this.ca&&d(this,this.V,this.ca,l)}else{this.e()||h(new x(13,"Should never fire event when touchscreen is not pressed."));var e;this.ca&&(e=this.ca,d=this.V);var b=this.pa,c=this.u,a=function(a,b){var c={identifier:a,screenX:b.x,screenY:b.y,clientX:b.x,clientY:b.y,pageX:b.x,pageY:b.y};f.changedTouches.push(c);
if(Ye==Ze||Ye==Ye)f.touches.push(c),f.targetTouches.push(c)},f={touches:[],targetTouches:[],changedTouches:[],altKey:this.D.e(4),ctrlKey:this.D.e(2),shiftKey:this.D.e(1),metaKey:this.D.e(8),relatedTarget:k,scale:0,rotation:0};a(b,c);s(e)&&a(e,d);U(this.d,Ye,f)}};p.e=function(){return!!this.pa};function Ig(a,b,c,d){qe(a,ve,b,-1,c,MSPointerEvent.MSPOINTER_TYPE_TOUCH,d);me(a,ue,b,0)};function Jg(a,b){this.x=a;this.y=b}v(Jg,C);Jg.prototype.scale=function(a){this.x*=a;this.y*=a;return this};Jg.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function Kg(a){Md(a,j)||h(new x(11,"Element is not currently visible and may not be manipulated"))}
function Lg(a,b,c){Kg(a);var d=E(a),d=B?d.body:d.documentElement,e;e=Dd(a);var f=Dd(d),g;if(z){var m=Jd(d,"borderLeft");g=Jd(d,"borderRight");var r=Jd(d,"borderTop"),t=Jd(d,"borderBottom");g=new xd(r,g,t,m)}else m=yd(d,"borderLeftWidth"),g=yd(d,"borderRightWidth"),r=yd(d,"borderTopWidth"),t=yd(d,"borderBottomWidth"),g=new xd(parseFloat(r),parseFloat(g),parseFloat(t),parseFloat(m));m=e.x-f.x-g.left;e=e.y-f.y-g.top;f=d.clientHeight-a.offsetHeight;g=d.scrollLeft;r=d.scrollTop;g+=Math.min(m,Math.max(m-
(d.clientWidth-a.offsetWidth),0));r+=Math.min(e,Math.max(e-f,0));e=new C(g,r);d.scrollLeft=e.x;d.scrollTop=e.y;b?b=new Jg(b.x,b.y):(b=Mg(a),b=new Jg(b.width/2,b.height/2));c=c||new Dg;c.move(a,b);c.t!==k&&h(new x(13,"Cannot press more then one button or an already pressed button."));c.t=0;c.W=c.c();var M;a=A&&!nd(4);(B||a)&&(S(c.c(),"OPTION")||S(c.c(),"SELECT"))?M=j:((a=A||z)&&(M=Kd(c.c())),M=(b=Fg(c,Ve))&&a&&M!=Kd(c.c())?l:b);M&&ye(c);c.t===k&&h(new x(13,"Cannot release a button when no button is pressed."));
Fg(c,xe);if(0==c.t&&c.c()==c.W){M=c.u;a=Gg(c,we);if(Ld(c.d)){d=b=k;if(!Ae)for(e=c.d;e;e=e.parentNode)if(S(e,"A")){b=e;break}else if(Be(e)){d=e;break}if(f=e=Od(c.d)){f=c.d;Od(f)||h(new x(15,"Element is not selectable"));m="selected";g=f.type&&f.type.toLowerCase();if("checkbox"==g||"radio"==g)m="checked";f=!!Pd(f,m)}if(c.q&&(m=c.q,!f||m.multiple))c.d.selected=!f,(!B||!m.multiple||Sb&&nd(4))&&U(m,Qe);z&&d?d.click():me(c,we,M,a)&&(b&&Ce(b)?(M=b,a=M.href,b=tb(E(M)),z&&!R(8)&&(a=De(b.location,a)),M.target?
b.open(a,M.target):b.location.href=a):e&&!c.q&&(!A&&!B&&!(f&&"radio"==c.d.type.toLowerCase()))&&(c.d.checked=!f,y&&!R(11)&&U(c.d,Qe)))}c.S&&Fg(c,Ue);c.S=!c.S}else 2==c.t&&Fg(c,te);c.t=k;c.W=k}function Mg(a){var b=Gd(a);return 0<b.width&&0<b.height||!a.offsetParent?b:Mg(a.offsetParent)}function Ng(){je.call(this)}v(Ng,je);Ng.$a=function(){return Ng.va?Ng.va:Ng.va=new Ng};function $(a,b,c){var d=[],e=[];d.push(e);w(b,function(a){w(a.split(""),function(a){if("\ue000"<=a&&"\ue03d">=a){var b=$.b[a];b===k?d.push(e=[]):s(b)?e.push(b):h(Error("Unsupported WebDriver key: \\u"+a.charCodeAt(0).toString(16)))}else switch(a){case "\n":e.push(xf);break;case "\t":e.push(wf);break;case "\b":e.push(vf);break;default:e.push(a)}})});w(d,function(b){function d(a){u(a)?w(a.split(""),function(a){1!=a.length&&h(new x(13,"Argument not a single character: "+a));var b=tf[a];b||(b=a.toUpperCase(),
b=X(b.charCodeAt(0),a.toLowerCase(),b),b={key:b,shift:a!=b.L});a=b;b=e.e(Y);a.shift&&!b&&xg(e,Y);xg(e,a.key);Cg(e,a.key);a.shift&&!b&&Cg(e,Y)}):Aa(tg,a)?e.e(a)?Cg(e,a):xg(e,a):(xg(e,a),Cg(e,a))}Kg(a);Ld(a)||h(new x(12,"Element is not currently interactable and may not be manipulated"));var e=c||new rf,r=e;ke(r,a);r.ha=Ud(a)&&!Pd(a,"readOnly");var t=ye(r);r.ha&&t&&(hf(a,a.value.length),r.s=a.value.length);"array"==ba(b)?w(b,d):d(b);w(tg,function(a){e.e(a)&&Cg(e,a)})})}$.b={};$.b["\ue000"]=k;
$.b["\ue003"]=vf;$.b["\ue004"]=wf;$.b["\ue006"]=xf;$.b["\ue007"]=xf;$.b["\ue008"]=Y;$.b["\ue009"]=yf;$.b["\ue00a"]=zf;$.b["\ue00b"]=Af;$.b["\ue00c"]=Bf;$.b["\ue00d"]=Cf;$.b["\ue00e"]=Df;$.b["\ue00f"]=Ef;$.b["\ue010"]=Ff;$.b["\ue011"]=Gf;$.b["\ue012"]=Hf;$.b["\ue013"]=If;$.b["\ue014"]=Jf;$.b["\ue015"]=Kf;$.b["\ue016"]=Lf;$.b["\ue017"]=Mf;$.b["\ue018"]=sg;$.b["\ue019"]=qg;$.b["\ue01a"]=Qf;$.b["\ue01b"]=Rf;$.b["\ue01c"]=Sf;$.b["\ue01d"]=Tf;$.b["\ue01e"]=Uf;$.b["\ue01f"]=Vf;$.b["\ue020"]=Wf;
$.b["\ue021"]=Xf;$.b["\ue022"]=Yf;$.b["\ue023"]=Zf;$.b["\ue024"]=$f;$.b["\ue025"]=ag;$.b["\ue027"]=bg;$.b["\ue028"]=cg;$.b["\ue029"]=dg;$.b["\ue026"]=rg;$.b["\ue031"]=eg;$.b["\ue032"]=fg;$.b["\ue033"]=gg;$.b["\ue034"]=hg;$.b["\ue035"]=ig;$.b["\ue036"]=jg;$.b["\ue037"]=kg;$.b["\ue038"]=lg;$.b["\ue039"]=mg;$.b["\ue03a"]=ng;$.b["\ue03b"]=og;$.b["\ue03c"]=pg;$.b["\ue03d"]=Nf;function Og(){this.aa=i}
function Pg(a,b,c){switch(typeof b){case "string":Qg(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==k){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],Pg(a,a.aa?a.aa.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),
Qg(f,c),c.push(":"),Pg(a,a.aa?a.aa.call(b,f,e):e,c),d=","));c.push("}");break;case "function":break;default:h(Error("Unknown type: "+typeof b))}}var Rg={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Sg=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function Qg(a,b){b.push('"',a.replace(Sg,function(a){if(a in Rg)return Rg[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return Rg[a]=e+b.toString(16)}),'"')};B||y||A&&R(3.5)||z&&R(8);function Tg(a){switch(ba(a)){case "string":case "number":case "boolean":return a;case "function":return a.toString();case "array":return wa(a,Tg);case "object":if("nodeType"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=Ug(a);return b}if("document"in a)return b={},b.WINDOW=Ug(a),b;if(ca(a))return wa(a,Tg);var b=function(a,b){return"number"==typeof b||u(b)},c={},d;for(d in a)b.call(i,0,d)&&(c[d]=a[d]);return Ma(c,Tg);default:return k}}
function Vg(a,b){return"array"==ba(a)?wa(a,function(a){return Vg(a,b)}):ea(a)?"function"==typeof a?a:"ELEMENT"in a?Wg(a.ELEMENT,b):"WINDOW"in a?Wg(a.WINDOW,b):Ma(a,function(a){return Vg(a,b)}):a}function Xg(a){var a=a||document,b=a.$wdc_;b||(b=a.$wdc_={},b.la=ja());b.la||(b.la=ja());return b}function Ug(a){var b=Xg(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.la++,b[c]=a);return c}
function Wg(a,b){var a=decodeURIComponent(a),c=b||document,d=Xg(c);a in d||h(new x(10,"Element does not exist in cache"));var e=d[a];if("setInterval"in e)return e.closed&&(delete d[a],h(new x(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 x(10,"Element is no longer attached to the DOM"))};function Yg(a){var b=Lg,a=[a],c=window||ka,d;try{var b=u(b)?new c.Function(b):c==window?b:new c.Function("return ("+b+").apply(null,arguments);"),e=Vg(a,c.document),f=b.apply(k,e);d={status:0,value:Tg(f)}}catch(g){d={status:"code"in g?g.code:13,value:{message:g.message}}}b=[];Pg(new Og,d,b);return b.join("")}var Zg=["_"],$g=q;!(Zg[0]in $g)&&$g.execScript&&$g.execScript("var "+Zg[0]);for(var ah;Zg.length&&(ah=Zg.shift());)!Zg.length&&s(Yg)?$g[ah]=Yg:$g=$g[ah]?$g[ah]:$g[ah]={};; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null,document:typeof window!=undefined?window.document:null}, arguments);}
