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 t(a){return"string"==typeof a}function da(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}var ea="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),fa=0,ga=Date.now||function(){return+new Date};function u(a,b){function c(){}c.prototype=b.prototype;a.hb=b.prototype;a.prototype=new c};var v=window;function ha(a){Error.captureStackTrace?Error.captureStackTrace(this,ha):this.stack=Error().stack||"";a&&(this.message=String(a))}u(ha,Error);ha.prototype.name="CustomError";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,b){for(var c=0,d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=String(b).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var m=d[g]||"",y=e[g]||"",r=RegExp("(\\d*)(\\D*)","g"),ka=RegExp("(\\d*)(\\D*)","g");do{var Z=r.exec(m)||["","",""],$=ka.exec(y)||["","",""];if(0==Z[0].length&&0==$[0].length)break;c=((0==Z[1].length?0:parseInt(Z[1],10))<(0==$[1].length?0:parseInt($[1],10))?-1:(0==Z[1].length?0:parseInt(Z[1],10))>(0==$[1].length?
0:parseInt($[1],10))?1:0)||((0==Z[2].length)<(0==$[2].length)?-1:(0==Z[2].length)>(0==$[2].length)?1:0)||(Z[2]<$[2]?-1:Z[2]>$[2]?1:0)}while(0==c)}return c};function la(a,b){b.unshift(a);ha.call(this,ia.apply(k,b));b.shift();this.Ya=a}u(la,ha);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("",k,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 w(a,b,c){for(var d=a.length,e=t(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)}function qa(a,b){for(var c=a.length,d=[],e=0,f=t(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 ra(a,b){for(var c=a.length,d=Array(c),e=t(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;w(a,function(c,f){d=b.call(i,d,c,f,a)});return d}
function ta(a,b){for(var c=a.length,d=t(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 ua(a,b){var c;a:if(t(a))c=!t(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 va(a){return pa.concat.apply(pa,arguments)}function wa(a,b,c){na(a.length!=k);return 2>=arguments.length?pa.slice.call(a,b):pa.slice.call(a,b,c)};var xa={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 ya="background-color border-top-color border-right-color border-bottom-color border-left-color color outline-color".split(" "),za=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/;function Aa(a){Ba.test(a)||h(Error("'"+a+"' is not a valid hex color"));4==a.length&&(a=a.replace(za,"#$1$1$2$2$3$3"));return a.toLowerCase()}var Ba=/^#(?:[0-9a-f]{3}){1,2}$/i,Ca=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i;
function Da(a){var b=a.match(Ca);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 Ea=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function Fa(a){var b=a.match(Ea);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 Ga(a,b){var c={},d;for(d in a)c[d]=b.call(i,a[d],d,a);return c}function Ha(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=Ia[a]||Ia[13];var c=Error(this.message);c.name=this.name;this.stack=c.stack||""}u(x,Error);
var Ia={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 Ja,Ka,La,Ma,Na,Oa;function Pa(){return q.navigator?q.navigator.userAgent:k}Ma=La=Ka=Ja=l;var Qa;if(Qa=Pa()){var Ra=q.navigator;Ja=0==Qa.indexOf("Opera");Ka=!Ja&&-1!=Qa.indexOf("MSIE");La=!Ja&&-1!=Qa.indexOf("WebKit");Ma=!Ja&&!La&&"Gecko"==Ra.product}var z=Ja,A=Ka,B=Ma,C=La,Sa,Ta=q.navigator;Sa=Ta&&Ta.platform||"";Na=-1!=Sa.indexOf("Mac");Oa=-1!=Sa.indexOf("Win");var Ua=-1!=Sa.indexOf("Linux");function Va(){var a=q.document;return a?a.documentMode:i}var Wa;
a:{var Xa="",Ya;if(z&&q.opera)var Za=q.opera.version,Xa="function"==typeof Za?Za():Za;else if(B?Ya=/rv\:([^\);]+)(\)|;)/:A?Ya=/MSIE\s+([^\);]+)(\)|;)/:C&&(Ya=/WebKit\/(\S+)/),Ya)var $a=Ya.exec(Pa()),Xa=$a?$a[1]:"";if(A){var ab=Va();if(ab>parseFloat(Xa)){Wa=String(ab);break a}}Wa=Xa}var bb={};function cb(a){return bb[a]||(bb[a]=0<=ja(Wa,a))}function D(a){return A&&db>=a}var eb=q.document,db=!eb||!A?i:Va()||("CSS1Compat"==eb.compatMode?parseInt(Wa,10):5);var fb;!B&&!A||A&&D(9)||B&&cb("1.9.1");A&&cb("9");var gb="BODY";function E(a,b){this.x=s(a)?a:0;this.y=s(b)?b:0}E.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function hb(a,b){this.width=a;this.height=b}p=hb.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 ib=3;function jb(a){return a?new kb(F(a)):fb||(fb=new kb)}function lb(a){var b=!C&&mb(a)?a.documentElement:a.body,a=a.parentWindow||a.defaultView;return new E(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function nb(a){return a?a.parentWindow||a.defaultView:window}function mb(a){return"CSS1Compat"==a.compatMode}
function ob(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 pb(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if(A&&!D(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?qb(a,b):!c&&ob(e,b)?-1*rb(a,b):!d&&ob(f,a)?rb(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=F(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 rb(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return qb(d,a)}function qb(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}function F(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function sb(a,b,c,d){if(a!=k)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||sb(a,b,c,d))return j;a=a.nextSibling}return l}var tb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},ub={IMG:" ",BR:"\n"};function vb(a,b,c){if(!(a.nodeName in tb))if(a.nodeType==ib)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in ub)b.push(ub[a.nodeName]);else for(a=a.firstChild;a;)vb(a,b,c),a=a.nextSibling}
function wb(a,b){for(var a=a.parentNode,c=0;a;){if(b(a))return a;a=a.parentNode;c++}return k}function kb(a){this.D=a||q.document||document}kb.prototype.F=function(a){return t(a)?this.D.getElementById(a):a};kb.prototype.contains=ob;var xb,yb,zb,Ab,Bb,Cb,Db;Db=Cb=Bb=Ab=zb=yb=xb=l;var Eb=Pa();Eb&&(-1!=Eb.indexOf("Firefox")?xb=j:-1!=Eb.indexOf("Camino")?yb=j:-1!=Eb.indexOf("iPhone")||-1!=Eb.indexOf("iPod")?zb=j:-1!=Eb.indexOf("iPad")?Ab=j:-1!=Eb.indexOf("Android")?Bb=j:-1!=Eb.indexOf("Chrome")?Cb=j:-1!=Eb.indexOf("Safari")&&(Db=j));var Fb=z,Gb=A,Hb=xb,Ib=yb,Jb=zb,Kb=Ab,Lb=Bb,Mb=Cb,Nb=Db;function Ob(a,b,c){this.f=a;this.La=b||1;this.p=c||1};var Pb=A&&!D(9),Qb=A&&!D(8);function Rb(a,b,c,d,e){this.f=a;this.nodeName=c;this.nodeValue=d;this.nodeType=2;this.ownerElement=b;this.fb=e;this.parentNode=b}function Sb(a,b,c){var d=Qb&&"href"==b.nodeName?a.getAttribute(b.nodeName,2):b.nodeValue;return new Rb(b,a,b.nodeName,d,c)};function Tb(a){this.fa=a;this.R=0}var Ub=RegExp("\\$?(?:(?![0-9-])[\\w-]+:)?(?![0-9-])[\\w-]+|\\/\\/|\\.\\.|::|\\d+(?:\\.\\d*)?|\\.\\d+|\"[^\"]*\"|'[^']*'|[!<>]=|\\s+|.","g"),Vb=/^\s/;function G(a,b){return a.fa[a.R+(b||0)]}Tb.prototype.next=function(){return this.fa[this.R++]};Tb.prototype.back=function(){this.R--};Tb.prototype.empty=function(){return this.fa.length<=this.R};function H(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(Pb&&"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),Pb&&"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 Wb(a,b,c){if(b===k)return j;try{if(!a.getAttribute)return l}catch(d){return l}Qb&&"class"==b&&(b="className");return c==k?!!a.getAttribute(b):a.getAttribute(b,2)==c}function Xb(a,b,c,d,e){return(Pb?Yb:Zb).call(k,a,b,t(c)?c:k,t(d)?d:k,e||new I)}
function Yb(a,b,c,d,e){if(a instanceof $b||8==a.d||c&&a.d===k){var f=b.all;if(!f)return e;a=ac(a);if("*"!=a&&(f=b.getElementsByTagName(a),!f))return e;if(c){for(var g=[],m=0;b=f[m++];)Wb(b,c,d)&&g.push(b);f=g}for(m=0;b=f[m++];)("*"!=a||"!"!=b.tagName)&&e.add(b);return e}bc(a,b,c,d,e);return e}
function Zb(a,b,c,d,e){b.getElementsByName&&d&&"name"==c&&!A?(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 J?bc(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),w(b,function(a){Wb(a,c,d)&&e.add(a)}));return e}
function cc(a,b,c,d,e){var f;if((a instanceof $b||8==a.d||c&&a.d===k)&&(f=b.childNodes)){var g=ac(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 Wb(a,c,d)}));w(f,function(a){("*"!=g||"!"!=a.tagName&&!("*"==g&&1!=a.nodeType))&&e.add(a)});return e}return dc(a,b,c,d,e)}function dc(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)Wb(b,c,d)&&a.matches(b)&&e.add(b);return e}
function bc(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)Wb(b,c,d)&&a.matches(b)&&e.add(b),bc(a,b,c,d,e)}function ac(a){if(a instanceof J){if(8==a.d)return"!";if(a.d===k)return"*"}return a.getName()};function I(){this.p=this.k=k;this.M=0}function ec(a){this.t=a;this.next=this.G=k}function fc(a,b){if(a.k){if(!b.k)return a}else return b;for(var c=a.k,d=b.k,e=k,f=k,g=0;c&&d;)c.t==d.t||c.t instanceof Rb&&d.t instanceof Rb&&c.t.f==d.t.f?(f=c,c=c.next,d=d.next):0<pb(c.t,d.t)?(f=d,d=d.next):(f=c,c=c.next),(f.G=e)?e.next=f:a.k=f,e=f,g++;for(f=c||d;f;)f.G=e,e=e.next=f,g++,f=f.next;a.p=e;a.M=g;return a}
I.prototype.unshift=function(a){a=new ec(a);a.next=this.k;this.p?this.k.G=a:this.k=this.p=a;this.k=a;this.M++};I.prototype.add=function(a){a=new ec(a);a.G=this.p;this.k?this.p.next=a:this.k=this.p=a;this.p=a;this.M++};function gc(a){return(a=a.k)?a.t:k}I.prototype.v=n("M");function hc(a){return(a=gc(a))?H(a):""}function ic(a,b){return new jc(a,!!b)}function jc(a,b){this.Ia=a;this.ha=(this.H=b)?a.p:a.k;this.aa=k}
jc.prototype.next=function(){var a=this.ha;if(a==k)return k;var b=this.aa=a;this.ha=this.H?a.G:a.next;return b.t};jc.prototype.remove=function(){var a=this.Ia,b=this.aa;b||h(Error("Next must be called at least once before remove."));var c=b.G,b=b.next;c?c.next=b:a.k=b;b?b.G=c:a.p=c;a.M--;this.aa=k};function K(a){this.j=a;this.i=this.s=l;this.N=k}K.prototype.g=n("s");K.prototype.C=n("N");function L(a,b){var c=a.evaluate(b);return c instanceof I?+hc(c):+c}function M(a,b){var c=a.evaluate(b);return c instanceof I?hc(c):""+c}function kc(a,b){var c=a.evaluate(b);return c instanceof I?!!c.v():!!c};function lc(a,b,c){K.call(this,a.j);this.da=a;this.ma=b;this.ta=c;this.s=b.g()||c.g();this.i=b.i||c.i;this.da==mc&&(!c.i&&!c.g()&&4!=c.j&&0!=c.j&&b.C()?this.N={name:b.C().name,I:c}:!b.i&&(!b.g()&&4!=b.j&&0!=b.j&&c.C())&&(this.N={name:c.C().name,I:b}))}u(lc,K);
function nc(a,b,c,d,e){var b=b.evaluate(d),c=c.evaluate(d),f;if(b instanceof I&&c instanceof I){f=ic(b);for(b=f.next();b;b=f.next()){e=ic(c);for(d=e.next();d;d=e.next())if(a(H(b),H(d)))return j}return l}if(b instanceof I||c instanceof I){b instanceof I?e=b:(e=c,c=b);e=ic(e);b=typeof c;for(d=e.next();d;d=e.next()){switch(b){case "number":f=+H(d);break;case "boolean":f=!!H(d);break;case "string":f=H(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)}lc.prototype.evaluate=function(a){return this.da.r(this.ma,this.ta,a)};lc.prototype.toString=function(a){var a=a||"",b=a+"binary expression: "+this.da+"\n",a=a+"  ",b=b+(this.ma.toString(a)+"\n");return b+=this.ta.toString(a)};function oc(a,b,c,d){this.Ka=a;this.qa=b;this.j=c;this.r=d}oc.prototype.toString=n("Ka");var pc={};
function N(a,b,c,d){a in pc&&h(Error("Binary operator already created: "+a));a=new oc(a,b,c,d);return pc[a.toString()]=a}N("div",6,1,function(a,b,c){return L(a,c)/L(b,c)});N("mod",6,1,function(a,b,c){return L(a,c)%L(b,c)});N("*",6,1,function(a,b,c){return L(a,c)*L(b,c)});N("+",5,1,function(a,b,c){return L(a,c)+L(b,c)});N("-",5,1,function(a,b,c){return L(a,c)-L(b,c)});N("<",4,2,function(a,b,c){return nc(function(a,b){return a<b},a,b,c)});
N(">",4,2,function(a,b,c){return nc(function(a,b){return a>b},a,b,c)});N("<=",4,2,function(a,b,c){return nc(function(a,b){return a<=b},a,b,c)});N(">=",4,2,function(a,b,c){return nc(function(a,b){return a>=b},a,b,c)});var mc=N("=",3,2,function(a,b,c){return nc(function(a,b){return a==b},a,b,c,j)});N("!=",3,2,function(a,b,c){return nc(function(a,b){return a!=b},a,b,c,j)});N("and",2,2,function(a,b,c){return kc(a,c)&&kc(b,c)});N("or",1,2,function(a,b,c){return kc(a,c)||kc(b,c)});function qc(a,b){b.v()&&4!=a.j&&h(Error("Primary expression must evaluate to nodeset if filter has predicate(s)."));K.call(this,a.j);this.sa=a;this.e=b;this.s=a.g();this.i=a.i}u(qc,K);qc.prototype.evaluate=function(a){a=this.sa.evaluate(a);return rc(this.e,a)};qc.prototype.toString=function(a){var a=a||"",b=a+"Filter: \n",a=a+"  ",b=b+this.sa.toString(a);return b+=this.e.toString(a)};function sc(a,b){b.length<a.oa&&h(Error("Function "+a.o+" expects at least"+a.oa+" arguments, "+b.length+" given"));a.ba!==k&&b.length>a.ba&&h(Error("Function "+a.o+" expects at most "+a.ba+" arguments, "+b.length+" given"));a.Ja&&w(b,function(b,d){4!=b.j&&h(Error("Argument "+d+" to function "+a.o+" is not of type Nodeset: "+b))});K.call(this,a.j);this.Q=a;this.X=b;this.s=a.s||ta(b,function(a){return a.g()});this.i=a.Ha&&!b.length||a.Ga&&!!b.length||ta(b,function(a){return a.i})}u(sc,K);
sc.prototype.evaluate=function(a){return this.Q.r.apply(k,va(a,this.X))};sc.prototype.toString=function(a){var b=a||"",a=b+"Function: "+this.Q+"\n",b=b+"  ";this.X.length&&(a+=b+"Arguments:",b+="  ",a=sa(this.X,function(a,d){return a+"\n"+d.toString(b)},a));return a};function tc(a,b,c,d,e,f,g,m,y){this.o=a;this.j=b;this.s=c;this.Ha=d;this.Ga=e;this.r=f;this.oa=g;this.ba=s(m)?m:g;this.Ja=!!y}tc.prototype.toString=n("o");var uc={};
function O(a,b,c,d,e,f,g,m){a in uc&&h(Error("Function already created: "+a+"."));uc[a]=new tc(a,b,c,d,l,e,f,g,m)}O("boolean",2,l,l,function(a,b){return kc(b,a)},1);O("ceiling",1,l,l,function(a,b){return Math.ceil(L(b,a))},1);O("concat",3,l,l,function(a,b){var c=wa(arguments,1);return sa(c,function(b,c){return b+M(c,a)},"")},2,k);O("contains",2,l,l,function(a,b,c){b=M(b,a);a=M(c,a);return-1!=b.indexOf(a)},2);O("count",1,l,l,function(a,b){return b.evaluate(a).v()},1,1,j);O("false",2,l,l,aa(l),0);
O("floor",1,l,l,function(a,b){return Math.floor(L(b,a))},1);
O("id",4,l,l,function(a,b){function c(a){if(Pb){var b=e.all[a];if(b){if(b.nodeType&&a==b.id)return b;if(b.length){var c;a:{c=function(b){return a==b.id};for(var d=b.length,f=t(b)?b.split(""):b,g=0;g<d;g++)if(g in f&&c.call(i,f[g])){c=g;break a}c=-1}return 0>c?k:t(b)?b.charAt(c):b[c]}}return k}return e.getElementById(a)}var d=a.f,e=9==d.nodeType?d:d.ownerDocument,d=M(b,a).split(/\s+/),f=[];w(d,function(a){(a=c(a))&&!ua(f,a)&&f.push(a)});f.sort(pb);var g=new I;w(f,function(a){g.add(a)});return g},1);
O("lang",2,l,l,aa(l),1);O("last",1,j,l,function(a){1!=arguments.length&&h(Error("Function last expects ()"));return a.p},0);O("local-name",3,l,j,function(a,b){var c=b?gc(b.evaluate(a)):a.f;return c?c.nodeName.toLowerCase():""},0,1,j);O("name",3,l,j,function(a,b){var c=b?gc(b.evaluate(a)):a.f;return c?c.nodeName.toLowerCase():""},0,1,j);O("namespace-uri",3,j,l,aa(""),0,1,j);O("normalize-space",3,l,j,function(a,b){return(b?M(b,a):H(a.f)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);
O("not",2,l,l,function(a,b){return!kc(b,a)},1);O("number",1,l,j,function(a,b){return b?L(b,a):+H(a.f)},0,1);O("position",1,j,l,function(a){return a.La},0);O("round",1,l,l,function(a,b){return Math.round(L(b,a))},1);O("starts-with",2,l,l,function(a,b,c){b=M(b,a);a=M(c,a);return 0==b.lastIndexOf(a,0)},2);O("string",3,l,j,function(a,b){return b?M(b,a):H(a.f)},0,1);O("string-length",1,l,j,function(a,b){return(b?M(b,a):H(a.f)).length},0,1);
O("substring",3,l,l,function(a,b,c,d){c=L(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?L(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";var c=Math.round(c)-1,e=Math.max(c,0),a=M(b,a);if(Infinity==d)return a.substring(e);b=Math.round(d);return a.substring(e,c+b)},2,3);O("substring-after",3,l,l,function(a,b,c){b=M(b,a);a=M(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
O("substring-before",3,l,l,function(a,b,c){b=M(b,a);a=M(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);O("sum",1,l,l,function(a,b){for(var c=ic(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+=+H(e);return d},1,1,j);O("translate",3,l,l,function(a,b,c,d){for(var b=M(b,a),c=M(c,a),e=M(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);O("true",2,l,l,aa(j),0);function J(a,b){this.va=a;this.na=s(b)?b:k;this.d=k;switch(a){case "comment":this.d=8;break;case "text":this.d=ib;break;case "processing-instruction":this.d=7;break;case "node":break;default:h(Error("Unexpected argument"))}}function vc(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}J.prototype.matches=function(a){return this.d===k||this.d==a.nodeType};J.prototype.getName=n("va");
J.prototype.toString=function(a){var a=a||"",b=a+"kindtest: "+this.va;this.na===k||(b+="\n"+this.na.toString(a+"  "));return b};function wc(a){K.call(this,3);this.ua=a.substring(1,a.length-1)}u(wc,K);wc.prototype.evaluate=n("ua");wc.prototype.toString=function(a){return(a||"")+"literal: "+this.ua};function $b(a){this.o=a.toLowerCase()}$b.prototype.matches=function(a){var b=a.nodeType;if(1==b||2==b)return"*"==this.o||this.o==a.nodeName.toLowerCase()?j:this.o==(a.namespaceURI||"http://www.w3.org/1999/xhtml")+":*"};$b.prototype.getName=n("o");$b.prototype.toString=function(a){return(a||"")+"nametest: "+this.o};function xc(a){K.call(this,1);this.wa=a}u(xc,K);xc.prototype.evaluate=n("wa");xc.prototype.toString=function(a){return(a||"")+"number: "+this.wa};function yc(a,b){K.call(this,a.j);this.ja=a;this.O=b;this.s=a.g();this.i=a.i;if(1==this.O.length){var c=this.O[0];!c.Z&&c.z==zc&&(c=c.U,"*"!=c.getName()&&(this.N={name:c.getName(),I:k}))}}u(yc,K);function Ac(){K.call(this,4)}u(Ac,K);Ac.prototype.evaluate=function(a){var b=new I,a=a.f;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};Ac.prototype.toString=function(a){return a+"RootHelperExpr"};function Bc(){K.call(this,4)}u(Bc,K);Bc.prototype.evaluate=function(a){var b=new I;b.add(a.f);return b};
Bc.prototype.toString=function(a){return a+"ContextHelperExpr"};
yc.prototype.evaluate=function(a){var b=this.ja.evaluate(a);b instanceof I||h(Error("FilterExpr must evaluate to nodeset."));for(var a=this.O,c=0,d=a.length;c<d&&b.v();c++){var e=a[c],f=ic(b,e.z.H),g;if(!e.g()&&e.z==Cc){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.g()&&e.z==Dc)g=f.next(),b=e.evaluate(new Ob(g));else{g=f.next();for(b=e.evaluate(new Ob(g));(g=f.next())!=k;)g=e.evaluate(new Ob(g)),b=fc(b,g)}}return b};
yc.prototype.toString=function(a){var b=a||"",c=b+"PathExpr:\n",b=b+"  ",c=c+this.ja.toString(b);this.O.length&&(c+=b+"Steps:\n",b+="  ",w(this.O,function(a){c+=a.toString(b)}));return c};function Ec(a,b){this.e=a;this.H=!!b}function rc(a,b,c){for(c=c||0;c<a.e.length;c++)for(var d=a.e[c],e=ic(b),f=b.v(),g,m=0;g=e.next();m++){var y=a.H?f-m:m+1;g=d.evaluate(new Ob(g,y,f));var r;"number"==typeof g?r=y==g:"string"==typeof g||"boolean"==typeof g?r=!!g:g instanceof I?r=0<g.v():h(Error("Predicate.evaluate returned an unexpected type."));r||e.remove()}return b}Ec.prototype.C=function(){return 0<this.e.length?this.e[0].C():k};
Ec.prototype.g=function(){for(var a=0;a<this.e.length;a++){var b=this.e[a];if(b.g()||1==b.j||0==b.j)return j}return l};Ec.prototype.v=function(){return this.e.length};Ec.prototype.toString=function(a){var b=a||"",a=b+"Predicates:",b=b+"  ";return sa(this.e,function(a,d){return a+"\n"+b+d.toString(b)},a)};function Fc(a,b,c,d){K.call(this,4);this.z=a;this.U=b;this.e=c||new Ec([]);this.Z=!!d;b=this.e.C();a.Oa&&b&&(a=b.name,a=Pb?a.toLowerCase():a,this.N={name:a,I:b.I});this.s=this.e.g()}u(Fc,K);
Fc.prototype.evaluate=function(a){var b=a.f,c=k,c=this.C(),d=k,e=k,f=0;c&&(d=c.name,e=c.I?M(c.I,a):k,f=1);if(this.Z)if(!this.g()&&this.z==Gc)c=Xb(this.U,b,d,e),c=rc(this.e,c,f);else if(a=ic((new Fc(Hc,new J("node"))).evaluate(a)),b=a.next())for(c=this.r(b,d,e,f);(b=a.next())!=k;)c=fc(c,this.r(b,d,e,f));else c=new I;else c=this.r(a.f,d,e,f);return c};Fc.prototype.r=function(a,b,c,d){a=this.z.Q(this.U,a,b,c);return a=rc(this.e,a,d)};
Fc.prototype.toString=function(a){var a=a||"",b=a+"Step: \n",a=a+"  ",b=b+(a+"Operator: "+(this.Z?"//":"/")+"\n");this.z.o&&(b+=a+"Axis: "+this.z+"\n");b+=this.U.toString(a);if(this.e.length)for(var b=b+(a+"Predicates: \n"),c=0;c<this.e.length;c++)var d=c<this.e.length-1?", ":"",b=b+(this.e[c].toString(a)+d);return b};function Ic(a,b,c,d){this.o=a;this.Q=b;this.H=c;this.Oa=d}Ic.prototype.toString=n("o");var Jc={};
function P(a,b,c,d){a in Jc&&h(Error("Axis already created: "+a));b=new Ic(a,b,c,!!d);return Jc[a]=b}P("ancestor",function(a,b){for(var c=new I,d=b;d=d.parentNode;)a.matches(d)&&c.unshift(d);return c},j);P("ancestor-or-self",function(a,b){var c=new I,d=b;do a.matches(d)&&c.unshift(d);while(d=d.parentNode);return c},j);
var zc=P("attribute",function(a,b){var c=new I,d=a.getName();if("style"==d&&b.style&&Pb)return c.add(new Rb(b.style,b,"style",b.style.cssText,b.sourceIndex)),c;var e=b.attributes;if(e)if(a instanceof J&&a.d===k||"*"==d)for(var d=b.sourceIndex,f=0,g;g=e[f];f++)Pb?g.nodeValue&&c.add(Sb(b,g,d)):c.add(g);else(g=e.getNamedItem(d))&&(Pb?g.nodeValue&&c.add(Sb(b,g,b.sourceIndex)):c.add(g));return c},l),Gc=P("child",function(a,b,c,d,e){return(Pb?cc:dc).call(k,a,b,t(c)?c:k,t(d)?d:k,e||new I)},l,j);
P("descendant",Xb,l,j);var Hc=P("descendant-or-self",function(a,b,c,d){var e=new I;Wb(b,c,d)&&a.matches(b)&&e.add(b);return Xb(a,b,c,d,e)},l,j),Cc=P("following",function(a,b,c,d){var e=new I;do for(var f=b;f=f.nextSibling;)Wb(f,c,d)&&a.matches(f)&&e.add(f),e=Xb(a,f,c,d,e);while(b=b.parentNode);return e},l,j);P("following-sibling",function(a,b){for(var c=new I,d=b;d=d.nextSibling;)a.matches(d)&&c.add(d);return c},l);P("namespace",function(){return new I},l);
var Kc=P("parent",function(a,b){var c=new I;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),Dc=P("preceding",function(a,b,c,d){var e=new I,f=[];do f.unshift(b);while(b=b.parentNode);for(var g=1,m=f.length;g<m;g++){for(var y=[],b=f[g];b=b.previousSibling;)y.unshift(b);for(var r=0,ka=y.length;r<ka;r++)b=y[r],Wb(b,c,d)&&a.matches(b)&&e.add(b),e=Xb(a,b,c,d,e)}return e},j,j);
P("preceding-sibling",function(a,b){for(var c=new I,d=b;d=d.previousSibling;)a.matches(d)&&c.unshift(d);return c},j);var Lc=P("self",function(a,b){var c=new I;a.matches(b)&&c.add(b);return c},l);function Mc(a){K.call(this,1);this.ia=a;this.s=a.g();this.i=a.i}u(Mc,K);Mc.prototype.evaluate=function(a){return-L(this.ia,a)};Mc.prototype.toString=function(a){var a=a||"",b=a+"UnaryExpr: -\n";return b+=this.ia.toString(a+"  ")};function Nc(a){K.call(this,4);this.S=a;this.s=ta(this.S,function(a){return a.g()});this.i=ta(this.S,function(a){return a.i})}u(Nc,K);Nc.prototype.evaluate=function(a){var b=new I;w(this.S,function(c){c=c.evaluate(a);c instanceof I||h(Error("PathExpr must evaluate to NodeSet."));b=fc(b,c)});return b};Nc.prototype.toString=function(a){var b=a||"",c=b+"UnionExpr:\n",b=b+"  ";w(this.S,function(a){c+=a.toString(b)+"\n"});return c.substring(0,c.length)};function Oc(a){this.a=a}function Pc(a){for(var b,c=[];;){Q(a,"Missing right hand side of binary expression.");b=Qc(a);var d=a.a.next();if(!d)break;var e=(d=pc[d]||k)&&d.qa;if(!e){a.a.back();break}for(;c.length&&e<=c[c.length-1].qa;)b=new lc(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new lc(c.pop(),c.pop(),b);return b}function Q(a,b){a.a.empty()&&h(Error(b))}function Rc(a,b){var c=a.a.next();c!=b&&h(Error("Bad token, expected: "+b+" got: "+c))}
function Sc(a){a=a.a.next();")"!=a&&h(Error("Bad token: "+a))}function Tc(a){a=a.a.next();2>a.length&&h(Error("Unclosed literal string"));return new wc(a)}function Uc(a){return"*"!=G(a.a)&&":"==G(a.a,1)&&"*"==G(a.a,2)?new $b(a.a.next()+a.a.next()+a.a.next()):new $b(a.a.next())}
function Vc(a){var b,c=[],d;if("/"==G(a.a)||"//"==G(a.a)){b=a.a.next();d=G(a.a);if("/"==b&&(a.a.empty()||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new Ac;d=new Ac;Q(a,"Missing next location step.");b=Wc(a,b);c.push(b)}else{a:{b=G(a.a);d=b.charAt(0);switch(d){case "$":h(Error("Variable reference not allowed in HTML XPath"));case "(":a.a.next();b=Pc(a);Q(a,'unclosed "("');Rc(a,")");break;case '"':case "'":b=Tc(a);break;default:if(isNaN(+b))if(!vc(b)&&/(?![0-9])[\w]/.test(d)&&
"("==G(a.a,1)){b=a.a.next();b=uc[b]||k;a.a.next();for(d=[];")"!=G(a.a);){Q(a,"Missing function argument list.");d.push(Pc(a));if(","!=G(a.a))break;a.a.next()}Q(a,"Unclosed function argument list.");Sc(a);b=new sc(b,d)}else{b=k;break a}else b=new xc(+a.a.next())}"["==G(a.a)&&(d=new Ec(Xc(a)),b=new qc(b,d))}if(b)if("/"==G(a.a)||"//"==G(a.a))d=b;else return b;else b=Wc(a,"/"),d=new Bc,c.push(b)}for(;"/"==G(a.a)||"//"==G(a.a);)b=a.a.next(),Q(a,"Missing next location step."),b=Wc(a,b),c.push(b);return new yc(d,
c)}
function Wc(a,b){var c,d,e;"/"!=b&&"//"!=b&&h(Error('Step op should be "/" or "//"'));if("."==G(a.a))return d=new Fc(Lc,new J("node")),a.a.next(),d;if(".."==G(a.a))return d=new Fc(Kc,new J("node")),a.a.next(),d;var f;"@"==G(a.a)?(f=zc,a.a.next(),Q(a,"Missing attribute name")):"::"==G(a.a,1)?(/(?![0-9])[\w]/.test(G(a.a).charAt(0))||h(Error("Bad token: "+a.a.next())),e=a.a.next(),(f=Jc[e]||k)||h(Error("No axis with name: "+e)),a.a.next(),Q(a,"Missing node name")):f=Gc;e=G(a.a);if(/(?![0-9])[\w]/.test(e.charAt(0)))if("("==G(a.a,
1)){vc(e)||h(Error("Invalid node type: "+e));c=a.a.next();vc(c)||h(Error("Invalid type name: "+c));Rc(a,"(");Q(a,"Bad nodetype");e=G(a.a).charAt(0);var g=k;if('"'==e||"'"==e)g=Tc(a);Q(a,"Bad nodetype");Sc(a);c=new J(c,g)}else c=Uc(a);else"*"==e?c=Uc(a):h(Error("Bad token: "+a.a.next()));e=new Ec(Xc(a),f.H);return d||new Fc(f,c,e,"//"==b)}
function Xc(a){for(var b=[];"["==G(a.a);){a.a.next();Q(a,"Missing predicate expression.");var c=Pc(a);b.push(c);Q(a,"Unclosed predicate expression.");Rc(a,"]")}return b}function Qc(a){if("-"==G(a.a))return a.a.next(),new Mc(Qc(a));var b=Vc(a);if("|"!=G(a.a))a=b;else{for(b=[b];"|"==a.a.next();)Q(a,"Missing next union location path."),b.push(Vc(a));a.a.back();a=new Nc(b)}return a};function Yc(a){a.length||h(Error("Empty XPath expression."));for(var a=a.match(Ub),b=0;b<a.length;b++)Vb.test(a[b])&&a.splice(b,1);a=new Tb(a);a.empty()&&h(Error("Invalid XPath expression."));var c=Pc(new Oc(a));a.empty()||h(Error("Bad token: "+a.next()));this.evaluate=function(a,b){var f=c.evaluate(new Ob(a));return new R(f,b)}}
function R(a,b){0==b&&(a instanceof I?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 I))&&h(Error("document.evaluate called with wrong result type."));this.resultType=b;var c;switch(b){case 2:this.stringValue=a instanceof I?hc(a):""+a;break;case 1:this.numberValue=a instanceof I?+hc(a):+a;break;case 3:this.booleanValue=a instanceof I?0<a.v():!!a;break;case 4:case 5:case 6:case 7:var d=ic(a);c=[];
for(var e=d.next();e;e=d.next())c.push(e instanceof Rb?e.f:e);this.snapshotLength=a.v();this.invalidIteratorState=l;break;case 8:case 9:d=gc(a);this.singleNodeValue=d instanceof Rb?d.f: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]}}
R.ANY_TYPE=0;R.NUMBER_TYPE=1;R.STRING_TYPE=2;R.BOOLEAN_TYPE=3;R.UNORDERED_NODE_ITERATOR_TYPE=4;R.ORDERED_NODE_ITERATOR_TYPE=5;R.UNORDERED_NODE_SNAPSHOT_TYPE=6;R.ORDERED_NODE_SNAPSHOT_TYPE=7;R.ANY_UNORDERED_NODE_TYPE=8;R.FIRST_ORDERED_NODE_TYPE=9;var S={},Zc={ib:"http://www.w3.org/2000/svg"};S.ya=function(a){return Zc[a]||k};
S.r=function(a,b,c){var d=F(a);if(A||Lb){var e=nb(d)||q,f=e.document;f.evaluate||(e.XPathResult=R,f.evaluate=function(a,b,c,d){return(new Yc(a)).evaluate(b,d)},f.createExpression=function(a){return new Yc(a)})}try{var g=d.createNSResolver?d.createNSResolver(d.documentElement):S.ya;return A&&!cb(7)?d.evaluate.call(d,b,a,g,c,k):d.evaluate(b,a,g,c,k)}catch(m){B&&"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))}};S.Y=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."))};S.Na=function(a,b){var c=function(){var c=S.r(b,a,9);return c?(c=c.singleNodeValue,z?c:c||k):b.selectSingleNode?(c=F(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):k}();c===k||S.Y(c,a);return c};
S.Xa=function(a,b){var c=function(){var c=S.r(b,a,7);if(c){var e=c.snapshotLength;z&&!s(e)&&S.Y(k,a);for(var f=[],g=0;g<e;++g)f.push(c.snapshotItem(g));return f}return b.selectNodes?(c=F(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectNodes(a)):[]}();w(c,function(b){S.Y(b,a)});return c};function $c(a){return(a=a.exec(Pa()))?a[1]:""}var ad=function(){if(Hb)return $c(/Firefox\/([0-9.]+)/);if(Gb||Fb)return Wa;if(Mb)return $c(/Chrome\/([0-9.]+)/);if(Nb)return $c(/Version\/([0-9.]+)/);if(Jb||Kb){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Pa());if(a)return a[1]+"."+a[2]}else{if(Lb)return(a=$c(/Android\s+([0-9.]+)/))?a:$c(/Version\/([0-9.]+)/);if(Ib)return $c(/Camino\/([0-9.]+)/)}return""}();var bd,cd;function dd(a){return ed?bd(a):A?0<=ja(db,a):cb(a)}function fd(a){return ed?cd(a):Lb?0<=ja(gd,a):0<=ja(ad,a)}
var ed=function(){if(!B)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;bd=function(a){return 0<=d.Aa(e,""+a)};cd=function(a){return 0<=d.Aa(f,""+a)};return j}(),hd=Kb||Jb,id;if(Lb){var jd=/Android\s+([0-9\.]+)/.exec(Pa());id=jd?jd[1]:"0"}else id="0";
var gd=id,kd=A&&!D(8),ld=D(9),md=A&&!D(9),nd=D(10),od=A&&!D(10);Lb&&fd(2.3);!z&&(!C||dd("533"));function pd(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}pd.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};pd.prototype.contains=function(a){return!this||!a?l:a instanceof pd?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 qd(a,b){var c=F(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,k))?c[b]||c.getPropertyValue(b)||"":""}function rd(a,b){return qd(a,b)||(a.currentStyle?a.currentStyle[b]:k)||a.style&&a.style[b]}function sd(a){var a=a?F(a):document,b;if(b=A)if(b=!D(9))b=jb(a),b=!mb(b.D);return b?a.body:a.documentElement}
function td(a){var b=a.getBoundingClientRect();A&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b}
function ud(a){if(A&&!D(8))return a.offsetParent;for(var b=F(a),c=rd(a,"position"),d="fixed"==c||"absolute"==c,a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=rd(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 vd(a){var b,c=F(a),d=rd(a,"position");oa(a,"Parameter is required");var e=B&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new E(0,0),g=sd(c);if(a==g)return f;if(a.getBoundingClientRect)b=td(a),a=jb(c),a=lb(a.D),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(C&&"fixed"==rd(b,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(z||C&&"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=ud(b))&&b!=c.body&&b!=g;)if(f.x-=b.scrollLeft,!z||"TR"!=b.tagName)f.y-=b.scrollTop}return f}
function wd(a){var b=new E;if(1==a.nodeType){if(a.getBoundingClientRect){var c=td(a);b.x=c.left;b.y=c.top}else{var c=jb(a),c=lb(c.D),d=vd(a);b.x=d.x-c.x;b.y=d.y-c.y}if(B&&!cb(12)){var e;A?e="-ms-transform":C?e="-webkit-transform":z?e="-o-transform":B&&(e="-moz-transform");var f;e&&(f=rd(a,e));f||(f=rd(a,"transform"));f?(a=f.match(xd),a=!a?new E(0,0):new E(parseFloat(a[1]),parseFloat(a[2]))):a=new E(0,0);b=new E(b.x+a.x,b.y+a.y)}}else e="function"==ba(a.ka),f=a,a.targetTouches?f=a.targetTouches[0]:
e&&a.ka().targetTouches&&(f=a.ka().targetTouches[0]),b.x=f.clientX,b.y=f.clientY;return b}function yd(a){if("none"!=rd(a,"display"))return zd(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=zd(a);b.display=c;b.position=e;b.visibility=d;return a}function zd(a){var b=a.offsetWidth,c=a.offsetHeight,d=C&&!b&&!c;return(!s(b)||d)&&a.getBoundingClientRect?(a=td(a),new hb(a.right-a.left,a.bottom-a.top)):new hb(b,c)}
var Ad={thin:2,medium:4,thick:6};function Bd(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 Ad)d=Ad[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 xd=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function T(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function Cd(a){return Dd(a,j)&&Ed(a)&&!(A||z||B&&!dd("1.9.2")?0:"none"==U(a,"pointer-events"))}function Fd(a,b){var c;if(c=kd)if(c="value"==b)if(c=T(a,"OPTION"))c=Gd(a,"value")===k;c?(c=[],vb(a,c,l),c=c.join("")):c=a[b];return c}var Hd=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;
function Gd(a,b){b=b.toLowerCase();if("style"==b){var c=[];w(a.style.cssText.split(Hd),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 z?c.replace(/\w+:;/g,""):c}if(kd&&"value"==b&&T(a,"INPUT"))return a.value;if(md&&a[b]===j)return String(a.getAttribute(b));var d=a.getAttributeNode(b);return d&&d.specified?d.value:k}var Id="BUTTON INPUT OPTGROUP OPTION SELECT TEXTAREA".split(" ");
function Ed(a){var b=a.tagName.toUpperCase();return!ua(Id,b)?j:Fd(a,"disabled")?l:a.parentNode&&1==a.parentNode.nodeType&&"OPTGROUP"==b||"OPTION"==b?Ed(a.parentNode):j}var Jd="text search tel url email password number".split(" ");function Kd(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return T(a)?a:k}
function U(a,b){var c=String(b).replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()});if("float"==c||"cssFloat"==c||"styleFloat"==c)c=md?"styleFloat":"cssFloat";c=qd(a,c)||Ld(a,c);if(c===k)c=k;else if(ua(ya,b)&&(Ba.test("#"==c.charAt(0)?c:"#"+c)||Fa(c).length||xa&&xa[c.toLowerCase()]||Da(c).length)){var d=Da(c);if(!d.length){a:if(d=Fa(c),!d.length){d=xa[c.toLowerCase()];d=!d?"#"==c.charAt(0)?c:"#"+c:d;if(Ba.test(d)&&(d=Aa(d),d=Aa(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 Ld(a,b){var c=a.currentStyle||a.style,d=c[b];!s(d)&&"function"==ba(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?s(d)?d:k:(c=Kd(a))?Ld(c,b):k}
function Md(a){if("function"==ba(a.getBBox))try{var b=a.getBBox();if(b)return b}catch(c){}if(T(a,gb)){b=nb(F(a))||i;"hidden"!=U(a,"overflow")?a=j:(a=Kd(a),!a||!T(a,"HTML")?a=j:(a=U(a,"overflow"),a="auto"==a||"scroll"==a));if(a){var a=(b||v).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 hb(b,a)}else b=(b||window).document,b=mb(b)?b.documentElement:b.body,b=new hb(b.clientWidth,b.clientHeight);return b}return yd(a)}
function Dd(a,b){function c(a){if("none"==U(a,"display"))return l;a=Kd(a);return!a||c(a)}function d(a){var b=Md(a);return 0<b.height&&0<b.width?j:T(a,"PATH")&&(0<b.height||0<b.width)?(b=U(a,"stroke-width"),!!b&&0<parseInt(b,10)):ta(a.childNodes,function(b){return b.nodeType==ib&&"hidden"!=U(a,"overflow")||T(b)&&d(b)})}function e(a){var b=ud(a),c=B||A||z?Kd(a):b;if((B||A||z)&&T(c,gb))b=c;if(b&&"hidden"==U(b,"overflow")){var c=Md(b),d=wd(b),a=wd(a);return d.x+c.width<a.x||d.y+c.height<a.y?l:e(b)}return j}
function f(a){var b=U(a,"-o-transform")||U(a,"-webkit-transform")||U(a,"-ms-transform")||U(a,"-moz-transform")||U(a,"transform");if(b&&"none"!==b)return b=wd(a),a=Md(a),0<=b.x+a.width/2&&0<=b.y+a.height/2?j:l;a=Kd(a);return!a||f(a)}T(a)||h(Error("Argument to isShown must be of type Element"));if(T(a,"OPTION")||T(a,"OPTGROUP")){var g=wb(a,function(a){return T(a,"SELECT")});return!!g&&Dd(g,j)}if(T(a,"MAP")){if(!a.name)return l;g=F(a);if(g.evaluate)g=S.Na('/descendant::*[@usemap = "#'+a.name+'"]',g);
else var m=[],g=sb(g,function(b){return T(b)&&Gd(b,"usemap")=="#"+a.name},m,j)?m[0]:i;return!!g&&Dd(g,b)}if(T(a,"AREA"))return g=wb(a,function(a){return T(a,"MAP")}),!!g&&Dd(g,b);if(!(g=T(a,"INPUT")&&"hidden"==a.type.toLowerCase()||T(a,"NOSCRIPT")||"hidden"==U(a,"visibility")||!c(a)))if(g=!b)od?"relative"==U(a,"position")?g=1:(g=U(a,"filter"),g=(g=g.match(/^alpha\(opacity=(\d*)\)/)||g.match(/^progid:DXImageTransform.Microsoft.Alpha\(Opacity=(\d*)\)/))?Number(g[1])/100:1):g=Nd(a),g=0==g;return g||
!d(a)||!e(a)?l:f(a)}function Nd(a){var b=1,c=U(a,"opacity");c&&(b=Number(c));(a=Kd(a))&&(b*=Nd(a));return b};function Od(a){this.m=v.document.documentElement;this.u=k;var b;a:{var c=F(this.m);try{b=c&&c.activeElement;break a}catch(d){}b=k}b&&Pd(this,b);this.w=a||new Qd}Od.prototype.F=n("m");function Pd(a,b){a.m=b;a.u=T(b,"OPTION")?wb(b,function(a){return T(a,"SELECT")}):k}
function Rd(a,b,c,d,e,f,g){if(g||Cd(a.m))e&&!(Sd==b||Td==b)&&h(new x(12,"Event type does not allow related target: "+b)),c={clientX:c.x,clientY:c.y,button:d,altKey:a.w.n(4),ctrlKey:a.w.n(2),shiftKey:a.w.n(1),metaKey:a.w.n(8),wheelDelta:f||0,relatedTarget:e||k},(a=a.u?Ud(a,b):a.m)&&Vd(a,b,c)}
function Wd(a,b,c,d,e,f,g,m,y){if(!y&&!Cd(a.m))return l;m&&!(Xd==b||Yd==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,Ma:0,rotation:0,pointerId:e,Pa:0,Qa:0,pointerType:f,Fa:g};return(a=a.u?Ud(a,b):a.m)?Vd(a,b,c):j}
function Ud(a,b){if(A)switch(b){case Sd:case Xd:return k;case Zd:case $d:case ae:return a.u.multiple?a.u:k;default:return a.u}if(z)switch(b){case Zd:case Sd:return a.u.multiple?a.m:k;default:return a.m}if(C)switch(b){case be:case ce:return a.u.multiple?a.m:a.u;default:return a.u.multiple?a.m:k}return a.m}C||z||ed&&fd(3.6);function Qd(){this.ea=0}Qd.prototype.n=function(a){return 0!=(this.ea&a)};var de=!(A&&!dd(10))&&!z,ee=Lb?!fd(4):!hd,fe=A&&v.navigator.msPointerEnabled;function V(a,b,c){this.d=a;this.A=b;this.B=c}V.prototype.create=function(a){a=F(a);md?a=a.createEventObject():(a=a.createEvent("HTMLEvents"),a.initEvent(this.d,this.A,this.B));return a};V.prototype.toString=n("d");function W(a,b,c){V.call(this,a,b,c)}u(W,V);
W.prototype.create=function(a,b){!B&&this==ge&&h(new x(9,"Browser does not support a mouse pixel scroll event."));var c=F(a),d;if(md){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==Td||this==Sd)Object.defineProperty?(c=this==Td,e("fromElement",c?a:b.relatedTarget),e("toElement",c?b.relatedTarget:a)):d.relatedTarget=
b.relatedTarget;this==he&&(Object.defineProperty?e("wheelDelta",b.wheelDelta):d.detail=b.wheelDelta)}else{e=nb(c);d=c.createEvent("MouseEvents");c=1;if(this==he&&(B||(d.wheelDelta=b.wheelDelta),B||z))c=b.wheelDelta/-40;B&&this==ge&&(c=b.wheelDelta);d.initMouseEvent(this.d,this.A,this.B,e,c,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);if(A&&0===d.pageX&&0===d.pageY&&Object.defineProperty){var e=jb(a),e=!C&&mb(e.D)?e.D.documentElement:e.D.body,c=sd(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 ie(a,b,c){V.call(this,a,b,c)}u(ie,V);
ie.prototype.create=function(a,b){var c=F(a);if(B){var d=nb(c),e=b.charCode?0:b.keyCode,c=c.createEvent("KeyboardEvent");c.initKeyEvent(this.d,this.A,this.B,d,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,e,b.charCode);this.d==je&&b.preventDefault&&c.preventDefault()}else md?c=c.createEventObject():(c=c.createEvent("Events"),c.initEvent(this.d,this.A,this.B)),c.altKey=b.altKey,c.ctrlKey=b.ctrlKey,c.metaKey=b.metaKey,c.shiftKey=b.shiftKey,c.keyCode=b.charCode||b.keyCode,C&&(c.charCode=this==je?c.keyCode:
0);return c};function ke(a,b,c){V.call(this,a,b,c)}u(ke,V);
ke.prototype.create=function(a,b){function c(b){b=ra(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=ra(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}de||h(new x(9,"Browser does not support firing touch events."));var e=F(a),f=nb(e),g=ee?d(b.changedTouches):
c(b.changedTouches),m=b.touches==b.changedTouches?g:ee?d(b.touches):c(b.touches),y=b.targetTouches==b.changedTouches?g:ee?d(b.targetTouches):c(b.targetTouches),r;ee?(r=e.createEvent("MouseEvents"),r.initMouseEvent(this.d,this.A,this.B,f,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,0,b.relatedTarget),r.touches=m,r.targetTouches=y,r.changedTouches=g,r.scale=b.scale,r.rotation=b.rotation):(r=e.createEvent("TouchEvent"),Lb?r.initTouchEvent(m,y,g,this.d,f,0,0,b.clientX,b.clientY,b.ctrlKey,
b.altKey,b.shiftKey,b.metaKey):r.initTouchEvent(this.d,this.A,this.B,f,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,m,y,g,b.scale,b.rotation),r.relatedTarget=b.relatedTarget);return r};function le(a,b,c){V.call(this,a,b,c)}u(le,V);
le.prototype.create=function(a,b){fe||h(new x(9,"Browser does not support MSGesture events."));var c=F(a),d=nb(c),c=c.createEvent("MSGestureEvent");c.initGestureEvent(this.d,this.A,this.B,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 me(a,b,c){V.call(this,a,b,c)}u(me,V);
me.prototype.create=function(a,b){fe||h(new x(9,"Browser does not support MSPointer events."));var c=F(a),d=nb(c),c=c.createEvent("MSPointerEvent");c.Wa(this.d,this.A,this.B,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.Ma,b.rotation,b.Pa,b.Qa,b.pointerId,b.pointerType,0,b.Fa);return c};
var be=new W("click",j,j),Zd=new W("contextmenu",j,j),ne=new W("dblclick",j,j),oe=new W("mousedown",j,j),$d=new W("mousemove",j,l),Td=new W("mouseout",j,j),Sd=new W("mouseover",j,j),ce=new W("mouseup",j,j),he=new W(B?"DOMMouseScroll":"mousewheel",j,j),ge=new W("MozMousePixelScroll",j,j),je=new ie("keypress",j,j),pe=new ke("touchmove",j,j),qe=new ke("touchstart",j,j),re=new me("MSPointerDown",j,j),ae=new me("MSPointerMove",j,j),Xd=new me("MSPointerOver",j,j),Yd=new me("MSPointerOut",j,j),se=new me("MSPointerUp",
j,j);function Vd(a,b,c){c=b.create(a,c);"isTrusted"in c||(c.isTrusted=l);return md?a.fireEvent("on"+b.d,c):a.dispatchEvent(c)};function te(a){if("function"==typeof a.L)return a.L();if(t(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 Ha(a)};function ue(a,b){this.l={};this.h=[];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.W(a)}p=ue.prototype;p.K=0;p.xa=0;p.L=function(){ve(this);for(var a=[],b=0;b<this.h.length;b++)a.push(this.l[this.h[b]]);return a};function we(a){ve(a);return a.h.concat()}p.remove=function(a){return xe(this.l,a)?(delete this.l[a],this.K--,this.xa++,this.h.length>2*this.K&&ve(this),j):l};
function ve(a){if(a.K!=a.h.length){for(var b=0,c=0;b<a.h.length;){var d=a.h[b];xe(a.l,d)&&(a.h[c++]=d);b++}a.h.length=c}if(a.K!=a.h.length){for(var e={},c=b=0;b<a.h.length;)d=a.h[b],xe(e,d)||(a.h[c++]=d,e[d]=1),b++;a.h.length=c}}p.get=function(a,b){return xe(this.l,a)?this.l[a]:b};p.set=function(a,b){xe(this.l,a)||(this.K++,this.h.push(a),this.xa++);this.l[a]=b};
p.W=function(a){var b;if(a instanceof ue)b=we(a),a=a.L();else{b=[];var c=0,d;for(d in a)b[c++]=d;a=Ha(a)}for(c=0;c<b.length;c++)this.set(b[c],a[c])};function xe(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function ye(a){this.l=new ue;a&&this.W(a)}function ze(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[ea]||(a[ea]=++fa)):b.substr(0,1)+a}p=ye.prototype;p.add=function(a){this.l.set(ze(a),a)};p.W=function(a){for(var a=te(a),b=a.length,c=0;c<b;c++)this.add(a[c])};p.remove=function(a){return this.l.remove(ze(a))};p.contains=function(a){a=ze(a);return xe(this.l.l,a)};p.L=function(){return this.l.L()};function Ae(a){Od.call(this);var b;if(T(this.F(),"TEXTAREA"))b=j;else if(T(this.F(),"INPUT"))b=ua(Jd,this.F().type.toLowerCase());else{b=this.F();var c=function(a){return"inherit"==a.contentEditable?(a=Kd(a))?c(a):l:"true"==a.contentEditable};b=(!s(b.contentEditable)?0:!A&&s(b.isContentEditable)?b.isContentEditable:c(b))?j:l}this.Ta=b&&!Fd(this.F(),"readOnly");this.Ba=0;this.ra=new ye;a&&(w(a.pressed,function(a){if(ua(Be,a)){var b=Ce.get(a.code),c=this.w;c.ea|=b}this.ra.add(a)},this),this.Ba=a.currentPos)}
u(Ae,Od);var De={};function X(a,b,c){da(a)&&(a=B?a.b:z?a.opera:a.c);a=new Ee(a,b,c);if(b&&(!(b in De)||c))De[b]={key:a,shift:l},c&&(De[c]={key:a,shift:j});return a}function Ee(a,b,c){this.code=a;this.za=b||k;this.gb=c||this.za}X(8);X(9);X(13);var Fe=X(16),Ge=X(17),He=X(18);X(19);X(20);X(27);X(32," ");X(33);X(34);X(35);X(36);X(37);X(38);X(39);X(40);X(44);X(45);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 Ie=X(Oa?{b:91,c:91,opera:219}:Na?{b:224,c:91,opera:17}:{b:0,c:91,opera:k});
X(Oa?{b:92,c:92,opera:220}:Na?{b:224,c:93,opera:17}:{b:0,c:92,opera:k});X(Oa?{b:93,c:93,opera:0}:Na?{b:0,c:0,opera:16}:{b:93,c:k,opera:0});X({b:96,c:96,opera:48},"0");X({b:97,c:97,opera:49},"1");X({b:98,c:98,opera:50},"2");X({b:99,c:99,opera:51},"3");X({b:100,c:100,opera:52},"4");X({b:101,c:101,opera:53},"5");X({b:102,c:102,opera:54},"6");X({b:103,c:103,opera:55},"7");X({b:104,c:104,opera:56},"8");X({b:105,c:105,opera:57},"9");X({b:106,c:106,opera:Ua?56:42},"*");X({b:107,c:107,opera:Ua?61:43},"+");
X({b:109,c:109,opera:Ua?109:45},"-");X({b:110,c:110,opera:Ua?190:78},".");X({b:111,c:111,opera:Ua?191:47},"/");X(Ua&&z?k:144);X(112);X(113);X(114);X(115);X(116);X(117);X(118);X(119);X(120);X(121);X(122);X(123);X({b:107,c:187,opera:61},"=","+");X(108,",");X({b:109,c:189,opera:109},"-","_");X(188,",","<");X(190,".",">");X(191,"/","?");X(192,"`","~");X(219,"[","{");X(220,"\\","|");X(221,"]","}");X({b:59,c:186,opera:59},";",":");X(222,"'",'"');var Be=[He,Ge,Ie,Fe],Je=new ue;Je.set(1,Fe);Je.set(2,Ge);
Je.set(4,He);Je.set(8,Ie);var Ce,Ke=new ue;w(we(Je),function(a){Ke.set(Je.get(a).code,a)});Ce=Ke;Ae.prototype.n=function(a){return this.ra.contains(a)};B&&dd(12);function Le(a,b){Od.call(this,b);this.Da=this.J=k;this.q=new E(0,0);this.$=this.pa=l;if(a){this.J=a.Ra;try{T(a.Ca)&&(this.Da=a.Ca)}catch(c){this.J=k}this.q=a.Sa;this.pa=a.eb;this.$=a.Va;try{T(a.element)&&Pd(this,a.element)}catch(d){this.J=k}}}u(Le,Od);var Y={};
md?(Y[be]=[0,0,0,k],Y[Zd]=[k,k,0,k],Y[ce]=[1,4,2,k],Y[Td]=[0,0,0,0],Y[$d]=[1,4,2,0]):C||ld?(Y[be]=[0,1,2,k],Y[Zd]=[k,k,2,k],Y[ce]=[0,1,2,k],Y[Td]=[0,1,2,0],Y[$d]=[0,1,2,0]):(Y[be]=[0,1,2,k],Y[Zd]=[k,k,2,k],Y[ce]=[0,1,2,k],Y[Td]=[0,0,0,0],Y[$d]=[0,0,0,0]);nd&&(Y[re]=Y[ce],Y[se]=Y[ce],Y[ae]=[-1,-1,-1,-1],Y[Yd]=Y[ae],Y[Xd]=Y[ae]);Y[ne]=Y[be];Y[oe]=Y[ce];Y[Sd]=Y[Td];var Me={Za:re,$a:ae,ab:Yd,bb:Xd,cb:se};
Le.prototype.move=function(a,b){var c=Cd(a),d=wd(a);this.q.x=b.x+d.x;this.q.y=b.y+d.y;d=this.F();if(a!=d){try{nb(F(d)).closed&&(d=k)}catch(e){d=k}if(d){var f=d===v.document.documentElement||d===v.document.body,d=!this.$&&f?k:d;Ne(this,Td,a)}Pd(this,a);A||Ne(this,Sd,d,k,c)}Ne(this,$d,k,k,c);A&&a!=d&&Ne(this,Sd,d,k,c);this.pa=l};
Le.prototype.scroll=function(a){0==a&&h(new x(13,"Must scroll a non-zero number of ticks."));for(var b=0<a?-120:120,c=0<a?57:-57,d=0;d<Math.abs(a);d++)Ne(this,he,k,b),B&&Ne(this,ge,k,c)};function Ne(a,b,c,d,e){a.$=j;if(nd){var f=Me[b];if(f&&!Wd(a,f,a.q,Oe(a,f),1,MSPointerEvent.MSPOINTER_TYPE_MOUSE,j,c,e))return}Rd(a,b,a.q,Oe(a,b),c,d,e)}function Oe(a,b){if(!(b in Y))return 0;var c=Y[b][a.J===k?3:a.J];c===k&&h(new x(13,"Event does not permit the specified mouse button."));return c};function Pe(){Od.call(this);this.q=new E(0,0);this.P=new E(0,0)}u(Pe,Od);p=Pe.prototype;p.Ea=l;p.ga=0;p.V=0;
p.move=function(a,b,c){(!this.n()||nd)&&Pd(this,a);a=wd(a);this.q.x=b.x+a.x;this.q.y=b.y+a.y;s(c)&&(this.P.x=c.x+a.x,this.P.y=c.y+a.y);if(this.n())if(this.Ea=j,nd){var d=Qe;d(this,this.q,this.ga,j);this.V&&d(this,this.P,this.V,l)}else{this.n()||h(new x(13,"Should never fire event when touchscreen is not pressed."));var e;this.V&&(e=this.V,d=this.P);var b=this.ga,c=this.q,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(pe==qe||pe==pe)f.touches.push(c),f.targetTouches.push(c)},f={touches:[],targetTouches:[],changedTouches:[],altKey:this.w.n(4),ctrlKey:this.w.n(2),shiftKey:this.w.n(1),metaKey:this.w.n(8),relatedTarget:k,scale:0,rotation:0};a(b,c);s(e)&&a(e,d);Vd(this.m,pe,f)}};p.n=function(){return!!this.ga};function Qe(a,b,c,d){Wd(a,ae,b,-1,c,MSPointerEvent.MSPOINTER_TYPE_TOUCH,d);Rd(a,$d,b,0)};function Re(a,b){this.x=a;this.y=b}u(Re,E);Re.prototype.scale=function(a){this.x*=a;this.y*=a;return this};Re.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function Se(a,b,c,d){Dd(a,j)||h(new x(11,"Element is not currently visible and may not be manipulated"));var e=F(a),e=C?e.body:e.documentElement,f;f=vd(a);var g=vd(e),m;if(A){var y=Bd(e,"borderLeft");m=Bd(e,"borderRight");var r=Bd(e,"borderTop"),ka=Bd(e,"borderBottom");m=new pd(r,m,ka,y)}else y=qd(e,"borderLeftWidth"),m=qd(e,"borderRightWidth"),r=qd(e,"borderTopWidth"),ka=qd(e,"borderBottomWidth"),m=new pd(parseFloat(r),parseFloat(m),parseFloat(ka),parseFloat(y));y=f.x-g.x-m.left;f=f.y-g.y-m.top;
g=e.clientHeight-a.offsetHeight;m=e.scrollLeft;r=e.scrollTop;m+=Math.min(y,Math.max(y-(e.clientWidth-a.offsetWidth),0));r+=Math.min(f,Math.max(f-g,0));f=new E(m,r);e.scrollLeft=f.x;e.scrollTop=f.y;c?c=new Re(c.x,c.y):(c=Te(a),c=new Re(c.width/2,c.height/2));d=d||new Le;d.move(a,c);d.scroll(b)}function Te(a){var b=yd(a);return 0<b.width&&0<b.height||!a.offsetParent?b:Te(a.offsetParent)}function Ue(){Od.call(this)}u(Ue,Od);Ue.Ua=function(){return Ue.la?Ue.la:Ue.la=new Ue};function Ve(){this.T=i}
function We(a,b,c){switch(typeof b){case "string":Xe(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],We(a,a.T?a.T.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),Xe(f,
c),c.push(":"),We(a,a.T?a.T.call(b,f,e):e,c),d=","));c.push("}");break;case "function":break;default:h(Error("Unknown type: "+typeof b))}}var Ye={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Ze=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function Xe(a,b){b.push('"',a.replace(Ze,function(a){if(a in Ye)return Ye[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return Ye[a]=e+b.toString(16)}),'"')};C||z||B&&dd(3.5)||A&&dd(8);function $e(a){switch(ba(a)){case "string":case "number":case "boolean":return a;case "function":return a.toString();case "array":return ra(a,$e);case "object":if("nodeType"in a&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=af(a);return b}if("document"in a)return b={},b.WINDOW=af(a),b;if(ca(a))return ra(a,$e);var b=function(a,b){return"number"==typeof b||t(b)},c={},d;for(d in a)b.call(i,0,d)&&(c[d]=a[d]);return Ga(c,$e);default:return k}}
function bf(a,b){return"array"==ba(a)?ra(a,function(a){return bf(a,b)}):da(a)?"function"==typeof a?a:"ELEMENT"in a?cf(a.ELEMENT,b):"WINDOW"in a?cf(a.WINDOW,b):Ga(a,function(a){return bf(a,b)}):a}function df(a){var a=a||document,b=a.$wdc_;b||(b=a.$wdc_={},b.ca=ga());b.ca||(b.ca=ga());return b}function af(a){var b=df(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.ca++,b[c]=a);return c}
function cf(a,b){var a=decodeURIComponent(a),c=b||document,d=df(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 ef(a,b,c){var a=[a,b,c],b=Se,d;try{var b=t(b)?new v.Function(b):v==window?b:new v.Function("return ("+b+").apply(null,arguments);"),e=bf(a,v.document),f=b.apply(k,e);d={status:0,value:$e(f)}}catch(g){d={status:"code"in g?g.code:13,value:{message:g.message}}}e=[];We(new Ve,d,e);return e.join("")}var ff=["_"],gf=q;!(ff[0]in gf)&&gf.execScript&&gf.execScript("var "+ff[0]);for(var hf;ff.length&&(hf=ff.shift());)!ff.length&&s(ef)?gf[hf]=ef:gf=gf[hf]?gf[hf]:gf[hf]={};; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null,document:typeof window!=undefined?window.document:null}, arguments);}
