Bug 837621 - Update isElementDisplayed atoms with new overflow logic. r=jgriffin, a=test-only
authorDavid Burns <dburns@mozilla.com>
Mon, 29 Jul 2013 21:20:50 +0100
changeset 119820 b32a6a58c97da091655f4f7e20d2aedf3d177c3d
parent 119819 658f625177cae97ae7d3e2cab8f0ea3ffcd8f797
child 119821 1fe3339e3d9638cb8b0a6d4bebed9df47b76e783
push id1011
push userryanvm@gmail.com
push dateMon, 29 Jul 2013 22:55:57 +0000
reviewersjgriffin, test-only
bugs837621
milestone18.1
Bug 837621 - Update isElementDisplayed atoms with new overflow logic. r=jgriffin, a=test-only
testing/marionette/atoms/atoms.js
--- a/testing/marionette/atoms/atoms.js
+++ b/testing/marionette/atoms/atoms.js
@@ -122,64 +122,58 @@ 0:parseInt(B[1],10))?1:0)||((0==A[2].len
 //isElementSelected
 var isElementSelected = function(){return function(){var f=!1,g=this;function h(a,b){function c(){}c.prototype=b.prototype;a.d=b.prototype;a.prototype=new c};function i(a,b){for(var c=1;c<arguments.length;c++)var d=(""+arguments[c]).replace(/\$/g,"$$$$"),a=a.replace(/\%s/,d);return a};var k,l="",m=/rv\:([^\);]+)(\)|;)/.exec(g.navigator?g.navigator.userAgent:null);k=l=m?m[1]:"";var n={};function o(a,b){this.code=a;this.message=b||"";this.name=p[a]||p[13];var c=Error(this.message);c.name=this.name;this.stack=c.stack||""}h(o,Error);
 var p={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",33:"SqlDatabaseError",34:"MoveTargetOutOfBoundsError"};
 o.prototype.toString=function(){return"["+this.name+"] "+this.message};function q(a){this.stack=Error().stack||"";a&&(this.message=""+a)}h(q,Error);q.prototype.name="CustomError";function r(a,b){b.unshift(a);q.call(this,i.apply(null,b));b.shift()}h(r,q);r.prototype.name="AssertionError";if(!n["1.9.1"]){for(var s=0,t=(""+k).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),u="1.9.1".replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),v=Math.max(t.length,u.length),w=0;0==s&&w<v;w++){var x=t[w]||"",y=u[w]||"",z=RegExp("(\\d*)(\\D*)","g"),A=RegExp("(\\d*)(\\D*)","g");do{var B=z.exec(x)||["","",""],C=A.exec(y)||["","",""];if(0==B[0].length&&0==C[0].length)break;s=((0==B[1].length?0:parseInt(B[1],10))<(0==C[1].length?0:parseInt(C[1],10))?-1:(0==B[1].length?0:parseInt(B[1],10))>(0==C[1].length?
 0:parseInt(C[1],10))?1:0)||((0==B[2].length)<(0==C[2].length)?-1:(0==B[2].length)>(0==C[2].length)?1:0)||(B[2]<C[2]?-1:B[2]>C[2]?1:0)}while(0==s)}n["1.9.1"]=0<=s};var D={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},E={IMG:" ",BR:"\n"};function F(a,b,c){if(!(a.nodeName in D))if(3==a.nodeType)c?b.push((""+a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in E)b.push(E[a.nodeName]);else for(a=a.firstChild;a;)F(a,b,c),a=a.nextSibling};(function(){var a=g.Components;if(!a)return f;try{if(!a.classes)return f}catch(b){return f}var c=a.classes,a=a.interfaces;c["@mozilla.org/xpcom/version-comparator;1"].getService(a.nsIVersionComparator);c["@mozilla.org/xre/app-info;1"].getService(a.nsIXULAppInfo);return!0})();function G(a,b,c,d,e){this.b=!!b;if(a&&(this.a=a))this.c="number"==typeof d?d:1!=this.a.nodeType?0:this.b?-1:1;this.depth=void 0!=e?e:this.c||0;this.b&&(this.depth*=-1)}h(G,function(){});G.prototype.a=null;G.prototype.c=0;h(function(a,b,c,d){G.call(this,a,b,0,null,d)},G);function H(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function I(a){return H(a,"OPTION")?!0:H(a,"INPUT")?(a=a.type.toLowerCase(),"checkbox"==a||"radio"==a):f}var J={"class":"className",readonly:"readOnly"},K=["checked","disabled","draggable","hidden"];function L(a){if(I(a)){if(!I(a))throw new o(15,"Element is not selectable");var b="selected",c=a.type&&a.type.toLowerCase();if("checkbox"==c||"radio"==c)b="checked";var c=b,d=J[c]||c,b=a[d],e;if(e=void 0===b){b:if("string"==typeof K)d="string"!=typeof d||1!=d.length?-1:K.indexOf(d,0);else{for(e=0;e<K.length;e++)if(e in K&&K[e]===d){d=e;break b}d=-1}e=0<=d}if(e)a=f;else{if(d="value"==c)if(d=H(a,"OPTION")){var j;c=c.toLowerCase();if(a.hasAttribute)j=a.hasAttribute(c);else try{j=a.attributes[c].specified}catch(P){j=
 f}d=!j}d&&(j=[],F(a,j,f),b=j.join(""));a=b}a=!!a}else a=f;return a}var M=["_"],N=g;!(M[0]in N)&&N.execScript&&N.execScript("var "+M[0]);for(var O;M.length&&(O=M.shift());)!M.length&&void 0!==L?N[O]=L:N=N[O]?N[O]:N[O]={};; return this._.apply(null,arguments);}.apply({navigator:typeof window!='undefined'?window.navigator:null}, arguments);}
 
 // isElementDisplayed
-var isElementDisplayed = function(){return function(){function g(a){throw a;}var h=void 0,l=!0,m=null,n=!1;function p(a){return function(){return this[a]}}function aa(a){return function(){return a}}var 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!==h}function t(a){return"string"==typeof a}function ca(a){var b=typeof a;return"object"==b&&a!=m||"function"==b}Math.floor(2147483648*Math.random()).toString(36);function v(a,b){function c(){}c.prototype=b.prototype;a.ba=b.prototype;a.prototype=new c};var da=window;function w(a){Error.captureStackTrace?Error.captureStackTrace(this,w):this.stack=Error().stack||"";a&&(this.message=String(a))}v(w,Error);w.prototype.name="CustomError";function ea(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 fa(a){var b=0,c=String(ga).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split(".");a=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split(".");for(var d=Math.max(c.length,a.length),e=0;0==b&&e<d;e++){var f=c[e]||"",k=a[e]||"",u=RegExp("(\\d*)(\\D*)","g"),E=RegExp("(\\d*)(\\D*)","g");do{var r=u.exec(f)||["","",""],B=E.exec(k)||["","",""];if(0==r[0].length&&0==B[0].length)break;b=((0==r[1].length?0:parseInt(r[1],10))<(0==B[1].length?0:parseInt(B[1],10))?-1:(0==r[1].length?0:parseInt(r[1],10))>(0==
-B[1].length?0:parseInt(B[1],10))?1:0)||((0==r[2].length)<(0==B[2].length)?-1:(0==r[2].length)>(0==B[2].length)?1:0)||(r[2]<B[2]?-1:r[2]>B[2]?1:0)}while(0==b)}return b}function ha(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};function ia(a,b){b.unshift(a);w.call(this,ea.apply(m,b));b.shift();this.$=a}v(ia,w);ia.prototype.name="AssertionError";function ja(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);g(new ia(""+e,f||[]))}function ka(a,b,c){a||ja("",m,b,Array.prototype.slice.call(arguments,2))}function la(a,b,c){ca(a)||ja("Expected object but got %s: %s.",[ba(a),a],b,Array.prototype.slice.call(arguments,2))};var ma=Array.prototype;function x(a,b){for(var c=a.length,d=t(a)?a.split(""):a,e=0;e<c;e++)e in d&&b.call(h,d[e],e,a)}function na(a,b,c){if(a.reduce)return a.reduce(b,c);var d=c;x(a,function(c,f){d=b.call(h,d,c,f,a)});return d}function y(a,b){for(var c=a.length,d=t(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(h,d[e],e,a))return l;return n}function oa(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 pa(a){return ma.concat.apply(ma,arguments)}function qa(a,b,c){ka(a.length!=m);return 2>=arguments.length?ma.slice.call(a,b):ma.slice.call(a,b,c)};var ra={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",
+var isElementDisplayed = function(){return function(){function g(a){return function(){return a}}var h=this;
+function m(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 n(a){return"string"==typeof a};function q(a){var b=0,c=String(r).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split(".");a=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split(".");for(var d=Math.max(c.length,a.length),e=0;0==b&&e<d;e++){var f=c[e]||"",k=a[e]||"",w=RegExp("(\\d*)(\\D*)","g"),p=RegExp("(\\d*)(\\D*)","g");do{var l=w.exec(f)||["","",""],v=p.exec(k)||["","",""];if(0==l[0].length&&0==v[0].length)break;b=((0==l[1].length?0:parseInt(l[1],10))<(0==v[1].length?0:parseInt(v[1],10))?-1:(0==l[1].length?0:parseInt(l[1],10))>(0==v[1].length?
+0:parseInt(v[1],10))?1:0)||((0==l[2].length)<(0==v[2].length)?-1:(0==l[2].length)>(0==v[2].length)?1:0)||(l[2]<v[2]?-1:l[2]>v[2]?1:0)}while(0==b)}return b}function aa(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};var s=Array.prototype;function t(a,b){for(var c=a.length,d=n(a)?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)}function ba(a,b){if(a.reduce)return a.reduce(b,"");var c="";t(a,function(d,e){c=b.call(void 0,c,d,e,a)});return c}function ca(a,b){for(var c=a.length,d=n(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1}
+function da(a,b){var c;a:if(n(a))c=n(b)&&1==b.length?a.indexOf(b,0):-1;else{for(c=0;c<a.length;c++)if(c in a&&a[c]===b)break a;c=-1}return 0<=c}function ea(a,b,c){return 2>=arguments.length?s.slice.call(a,b):s.slice.call(a,b,c)};var u={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 sa="background-color border-top-color border-right-color border-bottom-color border-left-color color outline-color".split(" "),ta=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/;function ua(a){va.test(a)||g(Error("'"+a+"' is not a valid hex color"));4==a.length&&(a=a.replace(ta,"#$1$1$2$2$3$3"));return a.toLowerCase()}var va=/^#(?:[0-9a-f]{3}){1,2}$/i,wa=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i;
-function xa(a){var b=a.match(wa);if(b){a=Number(b[1]);var 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 ya=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function za(a){var b=a.match(ya);if(b){a=Number(b[1]);var 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 z(a,b){this.code=a;this.message=b||"";this.name=Aa[a]||Aa[13];var c=Error(this.message);c.name=this.name;this.stack=c.stack||""}v(z,Error);
-var Aa={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"};
-z.prototype.toString=function(){return this.name+": "+this.message};var ga,Ba="",Ca=/rv\:([^\);]+)(\)|;)/.exec(q.navigator?q.navigator.userAgent:m);ga=Ba=Ca?Ca[1]:"";var Da={};var Ea;Da["1.9.1"]||(Da["1.9.1"]=0<=fa("1.9.1"));function A(a,b){this.x=s(a)?a:0;this.y=s(b)?b:0}A.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function C(a,b){this.width=a;this.height=b}C.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};C.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};C.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};C.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var Fa=3;function Ga(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 Ha(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-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?Ia(a,b):!c&&Ga(e,b)?-1*Ja(a,b):!d&&Ga(f,a)?Ja(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=D(a);c=d.createRange();c.selectNode(a);c.collapse(l);d=d.createRange();d.selectNode(b);
-d.collapse(l);return c.compareBoundaryPoints(q.Range.START_TO_END,d)}function Ja(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return Ia(d,a)}function Ia(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}function D(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Ka(a,b){var c=[];return La(a,b,c,l)?c[0]:h}function La(a,b,c,d){if(a!=m)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||La(a,b,c,d))return l;a=a.nextSibling}return n}
-function Ma(a,b){a=a.parentNode;for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return m}function F(a){this.S=a||q.document||document}function Na(a){var b=a.S;a="CSS1Compat"==b.compatMode?b.documentElement:b.body;b=b.parentWindow||b.defaultView;return new A(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}F.prototype.contains=Ga;function G(a,b,c){this.g=a;this.Y=b||1;this.f=c||1};function H(a){var b=m,c=a.nodeType;1==c&&(b=a.textContent,b=b==h||b==m?a.innerText:b,b=b==h||b==m?"":b);if("string"!=typeof b)if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;for(var c=0,d=[],b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return""+b}function I(a,b,c){if(b===m)return l;try{if(!a.getAttribute)return n}catch(d){return n}return c==m?!!a.getAttribute(b):a.getAttribute(b,2)==c}
-function J(a,b,c,d,e){return Oa.call(m,a,b,t(c)?c:m,t(d)?d:m,e||new K)}function Oa(a,b,c,d,e){b.getElementsByName&&d&&"name"==c?(b=b.getElementsByName(d),x(b,function(b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),x(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):a instanceof L?Pa(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),x(b,function(a){I(a,c,d)&&e.add(a)}));return e}
-function Qa(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)I(b,c,d)&&a.matches(b)&&e.add(b);return e}function Pa(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)I(b,c,d)&&a.matches(b)&&e.add(b),Pa(a,b,c,d,e)};function K(){this.f=this.d=m;this.r=0}function Ra(a){this.o=a;this.next=this.n=m}function Sa(a,b){if(a.d){if(!b.d)return a}else return b;for(var c=a.d,d=b.d,e=m,f=m,k=0;c&&d;)c.o==d.o?(f=c,c=c.next,d=d.next):0<Ha(c.o,d.o)?(f=d,d=d.next):(f=c,c=c.next),(f.n=e)?e.next=f:a.d=f,e=f,k++;for(f=c||d;f;)f.n=e,e=e.next=f,k++,f=f.next;a.f=e;a.r=k;return a}K.prototype.unshift=function(a){a=new Ra(a);a.next=this.d;this.f?this.d.n=a:this.d=this.f=a;this.d=a;this.r++};
-K.prototype.add=function(a){a=new Ra(a);a.n=this.f;this.d?this.f.next=a:this.d=this.f=a;this.f=a;this.r++};function Ta(a){return(a=a.d)?a.o:m}K.prototype.l=p("r");function Ua(a){return(a=Ta(a))?H(a):""}function M(a,b){return new Va(a,!!b)}function Va(a,b){this.V=a;this.G=(this.t=b)?a.f:a.d;this.C=m}Va.prototype.next=function(){var a=this.G;if(a==m)return m;var b=this.C=a;this.G=this.t?a.n:a.next;return b.o};
-Va.prototype.remove=function(){var a=this.V,b=this.C;b||g(Error("Next must be called at least once before remove."));var c=b.n,b=b.next;c?c.next=b:a.d=b;b?b.n=c:a.f=c;a.r--;this.C=m};function N(a){this.c=a;this.e=this.h=n;this.s=m}N.prototype.b=p("h");function Wa(a,b){a.h=b}function Xa(a,b){a.e=b}N.prototype.j=p("s");function O(a,b){var c=a.evaluate(b);return c instanceof K?+Ua(c):+c}function P(a,b){var c=a.evaluate(b);return c instanceof K?Ua(c):""+c}function Q(a,b){var c=a.evaluate(b);return c instanceof K?!!c.l():!!c};function Ya(a,b,c){N.call(this,a.c);this.F=a;this.K=b;this.O=c;this.h=b.b()||c.b();this.e=b.e||c.e;this.F==Za&&(!c.e&&!c.b()&&4!=c.c&&0!=c.c&&b.j()?this.s={name:b.j().name,q:c}:!b.e&&(!b.b()&&4!=b.c&&0!=b.c&&c.j())&&(this.s={name:c.j().name,q:b}))}v(Ya,N);
-function R(a,b,c,d,e){b=b.evaluate(d);c=c.evaluate(d);var f;if(b instanceof K&&c instanceof K){f=M(b);for(b=f.next();b;b=f.next()){e=M(c);for(d=e.next();d;d=e.next())if(a(H(b),H(d)))return l}return n}if(b instanceof K||c instanceof K){b instanceof K?e=b:(e=c,c=b);e=M(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:g(Error("Illegal primitive type for comparison."))}if(a(f,c))return l}return n}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)}Ya.prototype.evaluate=function(a){return this.F.k(this.K,this.O,a)};Ya.prototype.toString=function(a){a=a||"";var b=a+"binary expression: "+this.F+"\n";a+="  ";b+=this.K.toString(a)+"\n";return b+=this.O.toString(a)};function $a(a,b,c,d){this.X=a;this.aa=b;this.c=c;this.k=d}$a.prototype.toString=p("X");var ab={};
-function S(a,b,c,d){a in ab&&g(Error("Binary operator already created: "+a));a=new $a(a,b,c,d);return ab[a.toString()]=a}S("div",6,1,function(a,b,c){return O(a,c)/O(b,c)});S("mod",6,1,function(a,b,c){return O(a,c)%O(b,c)});S("*",6,1,function(a,b,c){return O(a,c)*O(b,c)});S("+",5,1,function(a,b,c){return O(a,c)+O(b,c)});S("-",5,1,function(a,b,c){return O(a,c)-O(b,c)});S("<",4,2,function(a,b,c){return R(function(a,b){return a<b},a,b,c)});
-S(">",4,2,function(a,b,c){return R(function(a,b){return a>b},a,b,c)});S("<=",4,2,function(a,b,c){return R(function(a,b){return a<=b},a,b,c)});S(">=",4,2,function(a,b,c){return R(function(a,b){return a>=b},a,b,c)});var Za=S("=",3,2,function(a,b,c){return R(function(a,b){return a==b},a,b,c,l)});S("!=",3,2,function(a,b,c){return R(function(a,b){return a!=b},a,b,c,l)});S("and",2,2,function(a,b,c){return Q(a,c)&&Q(b,c)});S("or",1,2,function(a,b,c){return Q(a,c)||Q(b,c)});function bb(a,b){b.l()&&4!=a.c&&g(Error("Primary expression must evaluate to nodeset if filter has predicate(s)."));N.call(this,a.c);this.N=a;this.a=b;this.h=a.b();this.e=a.e}v(bb,N);bb.prototype.evaluate=function(a){a=this.N.evaluate(a);return cb(this.a,a)};bb.prototype.toString=function(a){a=a||"";var b=a+"Filter: \n";a+="  ";b+=this.N.toString(a);return b+=this.a.toString(a)};function db(a,b){b.length<a.M&&g(Error("Function "+a.m+" expects at least"+a.M+" arguments, "+b.length+" given"));a.D!==m&&b.length>a.D&&g(Error("Function "+a.m+" expects at most "+a.D+" arguments, "+b.length+" given"));a.W&&x(b,function(b,d){4!=b.c&&g(Error("Argument "+d+" to function "+a.m+" is not of type Nodeset: "+b))});N.call(this,a.c);this.v=a;this.A=b;Wa(this,a.h||y(b,function(a){return a.b()}));Xa(this,a.U&&!b.length||a.T&&!!b.length||y(b,function(a){return a.e}))}v(db,N);
-db.prototype.evaluate=function(a){return this.v.k.apply(m,pa(a,this.A))};db.prototype.toString=function(a){var b=a||"";a=b+"Function: "+this.v+"\n";b+="  ";this.A.length&&(a+=b+"Arguments:",b+="  ",a=na(this.A,function(a,d){return a+"\n"+d.toString(b)},a));return a};function eb(a,b,c,d,e,f,k,u,E){this.m=a;this.c=b;this.h=c;this.U=d;this.T=e;this.k=f;this.M=k;this.D=s(u)?u:k;this.W=!!E}eb.prototype.toString=p("m");var fb={};
-function T(a,b,c,d,e,f,k,u){a in fb&&g(Error("Function already created: "+a+"."));fb[a]=new eb(a,b,c,d,n,e,f,k,u)}T("boolean",2,n,n,function(a,b){return Q(b,a)},1);T("ceiling",1,n,n,function(a,b){return Math.ceil(O(b,a))},1);T("concat",3,n,n,function(a,b){var c=qa(arguments,1);return na(c,function(b,c){return b+P(c,a)},"")},2,m);T("contains",2,n,n,function(a,b,c){b=P(b,a);a=P(c,a);return-1!=b.indexOf(a)},2);T("count",1,n,n,function(a,b){return b.evaluate(a).l()},1,1,l);T("false",2,n,n,aa(n),0);
-T("floor",1,n,n,function(a,b){return Math.floor(O(b,a))},1);T("id",4,n,n,function(a,b){var c=a.g,d=9==c.nodeType?c:c.ownerDocument,c=P(b,a).split(/\s+/),e=[];x(c,function(a){(a=d.getElementById(a))&&!oa(e,a)&&e.push(a)});e.sort(Ha);var f=new K;x(e,function(a){f.add(a)});return f},1);T("lang",2,n,n,aa(n),1);T("last",1,l,n,function(a){1!=arguments.length&&g(Error("Function last expects ()"));return a.f},0);
-T("local-name",3,n,l,function(a,b){var c=b?Ta(b.evaluate(a)):a.g;return c?c.nodeName.toLowerCase():""},0,1,l);T("name",3,n,l,function(a,b){var c=b?Ta(b.evaluate(a)):a.g;return c?c.nodeName.toLowerCase():""},0,1,l);T("namespace-uri",3,l,n,aa(""),0,1,l);T("normalize-space",3,n,l,function(a,b){return(b?P(b,a):H(a.g)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);T("not",2,n,n,function(a,b){return!Q(b,a)},1);T("number",1,n,l,function(a,b){return b?O(b,a):+H(a.g)},0,1);
-T("position",1,l,n,function(a){return a.Y},0);T("round",1,n,n,function(a,b){return Math.round(O(b,a))},1);T("starts-with",2,n,n,function(a,b,c){b=P(b,a);a=P(c,a);return 0==b.lastIndexOf(a,0)},2);T("string",3,n,l,function(a,b){return b?P(b,a):H(a.g)},0,1);T("string-length",1,n,l,function(a,b){return(b?P(b,a):H(a.g)).length},0,1);
-T("substring",3,n,n,function(a,b,c,d){c=O(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?O(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=P(b,a);if(Infinity==d)return a.substring(e);b=Math.round(d);return a.substring(e,c+b)},2,3);T("substring-after",3,n,n,function(a,b,c){b=P(b,a);a=P(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
-T("substring-before",3,n,n,function(a,b,c){b=P(b,a);a=P(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);T("sum",1,n,n,function(a,b){for(var c=M(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+=+H(e);return d},1,1,l);T("translate",3,n,n,function(a,b,c,d){b=P(b,a);c=P(c,a);var e=P(d,a);a=[];for(d=0;d<c.length;d++){var f=c.charAt(d);f in a||(a[f]=e.charAt(d))}c="";for(d=0;d<b.length;d++)f=b.charAt(d),c+=f in a?a[f]:f;return c},3);T("true",2,n,n,aa(l),0);function L(a,b){this.Q=a;this.L=s(b)?b:m;this.p=m;switch(a){case "comment":this.p=8;break;case "text":this.p=Fa;break;case "processing-instruction":this.p=7;break;case "node":break;default:g(Error("Unexpected argument"))}}L.prototype.matches=function(a){return this.p===m||this.p==a.nodeType};L.prototype.getName=p("Q");L.prototype.toString=function(a){a=a||"";var b=a+"kindtest: "+this.Q;this.L===m||(b+="\n"+this.L.toString(a+"  "));return b};function gb(a){N.call(this,3);this.P=a.substring(1,a.length-1)}v(gb,N);gb.prototype.evaluate=p("P");gb.prototype.toString=function(a){return(a||"")+"literal: "+this.P};function hb(a){N.call(this,1);this.R=a}v(hb,N);hb.prototype.evaluate=p("R");hb.prototype.toString=function(a){return(a||"")+"number: "+this.R};function ib(a,b){N.call(this,a.c);this.I=a;this.u=b;this.h=a.b();this.e=a.e;if(1==this.u.length){var c=this.u[0];!c.B&&c.i==jb&&(c=c.z,"*"!=c.getName()&&(this.s={name:c.getName(),q:m}))}}v(ib,N);function kb(){N.call(this,4)}v(kb,N);kb.prototype.evaluate=function(a){var b=new K;a=a.g;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};kb.prototype.toString=function(a){return a+"RootHelperExpr"};function lb(){N.call(this,4)}v(lb,N);lb.prototype.evaluate=function(a){var b=new K;b.add(a.g);return b};
-lb.prototype.toString=function(a){return a+"ContextHelperExpr"};
-ib.prototype.evaluate=function(a){var b=this.I.evaluate(a);b instanceof K||g(Error("FilterExpr must evaluate to nodeset."));a=this.u;for(var c=0,d=a.length;c<d&&b.l();c++){var e=a[c],f=M(b,e.i.t),k;if(!e.b()&&e.i==mb){for(k=f.next();(b=f.next())&&(!k.contains||k.contains(b))&&b.compareDocumentPosition(k)&8;k=b);b=e.evaluate(new G(k))}else if(!e.b()&&e.i==nb)k=f.next(),b=e.evaluate(new G(k));else{k=f.next();for(b=e.evaluate(new G(k));(k=f.next())!=m;)k=e.evaluate(new G(k)),b=Sa(b,k)}}return b};
-ib.prototype.toString=function(a){var b=a||"",c=b+"PathExpr:\n",b=b+"  ",c=c+this.I.toString(b);this.u.length&&(c+=b+"Steps:\n",b+="  ",x(this.u,function(a){c+=a.toString(b)}));return c};function U(a,b){this.a=a;this.t=!!b}function cb(a,b,c){for(c=c||0;c<a.a.length;c++)for(var d=a.a[c],e=M(b),f=b.l(),k,u=0;k=e.next();u++){var E=a.t?f-u:u+1;k=d.evaluate(new G(k,E,f));var r;"number"==typeof k?r=E==k:"string"==typeof k||"boolean"==typeof k?r=!!k:k instanceof K?r=0<k.l():g(Error("Predicate.evaluate returned an unexpected type."));r||e.remove()}return b}U.prototype.j=function(){return 0<this.a.length?this.a[0].j():m};
-U.prototype.b=function(){for(var a=0;a<this.a.length;a++){var b=this.a[a];if(b.b()||1==b.c||0==b.c)return l}return n};U.prototype.l=function(){return this.a.length};U.prototype.toString=function(a){var b=a||"";a=b+"Predicates:";b+="  ";return na(this.a,function(a,d){return a+"\n"+b+d.toString(b)},a)};function V(a,b,c,d){N.call(this,4);this.i=a;this.z=b;this.a=c||new U([]);this.B=!!d;b=this.a.j();a.Z&&b&&(this.s={name:b.name,q:b.q});this.h=this.a.b()}v(V,N);V.prototype.evaluate=function(a){var b=a.g,c=m,c=this.j(),d=m,e=m,f=0;c&&(d=c.name,e=c.q?P(c.q,a):m,f=1);if(this.B)if(!this.b()&&this.i==ob)c=J(this.z,b,d,e),c=cb(this.a,c,f);else if(a=M((new V(pb,new L("node"))).evaluate(a)),b=a.next())for(c=this.k(b,d,e,f);(b=a.next())!=m;)c=Sa(c,this.k(b,d,e,f));else c=new K;else c=this.k(a.g,d,e,f);return c};
-V.prototype.k=function(a,b,c,d){a=this.i.v(this.z,a,b,c);return a=cb(this.a,a,d)};V.prototype.toString=function(a){a=a||"";var b=a+"Step: \n";a+="  ";b+=a+"Operator: "+(this.B?"//":"/")+"\n";this.i.m&&(b+=a+"Axis: "+this.i+"\n");b+=this.z.toString(a);if(this.a.length)for(var b=b+(a+"Predicates: \n"),c=0;c<this.a.length;c++)var d=c<this.a.length-1?", ":"",b=b+(this.a[c].toString(a)+d);return b};function qb(a,b,c,d){this.m=a;this.v=b;this.t=c;this.Z=d}qb.prototype.toString=p("m");var rb={};
-function W(a,b,c,d){a in rb&&g(Error("Axis already created: "+a));b=new qb(a,b,c,!!d);return rb[a]=b}W("ancestor",function(a,b){for(var c=new K,d=b;d=d.parentNode;)a.matches(d)&&c.unshift(d);return c},l);W("ancestor-or-self",function(a,b){var c=new K,d=b;do a.matches(d)&&c.unshift(d);while(d=d.parentNode);return c},l);
-var jb=W("attribute",function(a,b){var c=new K,d=a.getName(),e=b.attributes;if(e)if(a instanceof L&&a.p===m||"*"==d)for(var d=0,f;f=e[d];d++)c.add(f);else(f=e.getNamedItem(d))&&c.add(f);return c},n),ob=W("child",function(a,b,c,d,e){return Qa.call(m,a,b,t(c)?c:m,t(d)?d:m,e||new K)},n,l);W("descendant",J,n,l);
-var pb=W("descendant-or-self",function(a,b,c,d){var e=new K;I(b,c,d)&&a.matches(b)&&e.add(b);return J(a,b,c,d,e)},n,l),mb=W("following",function(a,b,c,d){var e=new K;do for(var f=b;f=f.nextSibling;)I(f,c,d)&&a.matches(f)&&e.add(f),e=J(a,f,c,d,e);while(b=b.parentNode);return e},n,l);W("following-sibling",function(a,b){for(var c=new K,d=b;d=d.nextSibling;)a.matches(d)&&c.add(d);return c},n);W("namespace",function(){return new K},n);
-W("parent",function(a,b){var c=new K;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},n);var nb=W("preceding",function(a,b,c,d){var e=new K,f=[];do f.unshift(b);while(b=b.parentNode);for(var k=1,u=f.length;k<u;k++){var E=[];for(b=f[k];b=b.previousSibling;)E.unshift(b);for(var r=0,B=E.length;r<B;r++)b=E[r],I(b,c,d)&&a.matches(b)&&e.add(b),e=J(a,b,c,d,e)}return e},l,l);
-W("preceding-sibling",function(a,b){for(var c=new K,d=b;d=d.previousSibling;)a.matches(d)&&c.unshift(d);return c},l);W("self",function(a,b){var c=new K;a.matches(b)&&c.add(b);return c},n);function sb(a){N.call(this,1);this.H=a;this.h=a.b();this.e=a.e}v(sb,N);sb.prototype.evaluate=function(a){return-O(this.H,a)};sb.prototype.toString=function(a){a=a||"";var b=a+"UnaryExpr: -\n";return b+=this.H.toString(a+"  ")};function tb(a){N.call(this,4);this.w=a;Wa(this,y(this.w,function(a){return a.b()}));Xa(this,y(this.w,function(a){return a.e}))}v(tb,N);tb.prototype.evaluate=function(a){var b=new K;x(this.w,function(c){c=c.evaluate(a);c instanceof K||g(Error("PathExpr must evaluate to NodeSet."));b=Sa(b,c)});return b};tb.prototype.toString=function(a){var b=a||"",c=b+"UnionExpr:\n",b=b+"  ";x(this.w,function(a){c+=a.toString(b)+"\n"});return c.substring(0,c.length)};var ub=function(){var a={ca:"http://www.w3.org/2000/svg"};return function(b){return a[b]||m}}();
-function vb(a,b){var c=function(){var c;a:{var e=D(b);try{var f=e.createNSResolver?e.createNSResolver(e.documentElement):ub;c=e.evaluate(a,b,f,9,m);break a}catch(k){"NS_ERROR_ILLEGAL_VALUE"!=k.name&&g(new z(32,"Unable to locate an element with the xpath expression "+a+" because of the following error:\n"+k))}c=h}return c?c.singleNodeValue||m:b.selectSingleNode?(c=D(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):m}();c!==m&&(!c||1!=c.nodeType)&&g(new z(32,'The result of the xpath expression "'+
-a+'" is: '+c+". It should be an element."));return c};(function(){var a=q.Components;if(!a)return n;try{if(!a.classes)return n}catch(b){return n}var c=a.classes,a=a.interfaces;c["@mozilla.org/xpcom/version-comparator;1"].getService(a.nsIVersionComparator);c["@mozilla.org/xre/app-info;1"].getService(a.nsIXULAppInfo);return l})();function wb(a,b){var c=D(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,m))?c[b]||c.getPropertyValue(b)||"":""}function X(a,b){return wb(a,b)||(a.currentStyle?a.currentStyle[b]:m)||a.style&&a.style[b]}
-function xb(a){var b=D(a),c=X(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=X(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 m}
-function yb(a){var b=new A;if(1==a.nodeType){if(a.getBoundingClientRect){var c=a.getBoundingClientRect();b.x=c.left;b.y=c.top}else{c=Na(a?new F(D(a)):Ea||(Ea=new F));var d,e=D(a),f=X(a,"position");la(a,"Parameter is required");var k=e.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==f&&(d=e.getBoxObjectFor(a))&&(0>d.screenX||0>d.screenY),f=new A(0,0),u=(e?D(e):document).documentElement;if(a!=u)if(a.getBoundingClientRect)d=a.getBoundingClientRect(),e=Na(e?new F(D(e)):Ea||(Ea=new F)),f.x=d.left+
-e.x,f.y=d.top+e.y;else if(e.getBoxObjectFor&&!k)d=e.getBoxObjectFor(a),e=e.getBoxObjectFor(u),f.x=d.screenX-e.screenX,f.y=d.screenY-e.screenY;else{d=a;do f.x+=d.offsetLeft,f.y+=d.offsetTop,d!=a&&(f.x+=d.clientLeft||0,f.y+=d.clientTop||0),d=d.offsetParent;while(d&&d!=a);for(d=a;(d=xb(d))&&d!=e.body&&d!=u;)f.x-=d.scrollLeft,f.y-=d.scrollTop}b.x=f.x-c.x;b.y=f.y-c.y}if(!Da[12]&&!(Da[12]=0<=fa(12)))(c=X(a,"-moz-transform"))||(c=X(a,"transform")),c?(a=c.match(zb),a=!a?new A(0,0):new A(parseFloat(a[1]),
-parseFloat(a[2]))):a=new A(0,0),b=new A(b.x+a.x,b.y+a.y)}else c="function"==ba(a.J),d=a,a.targetTouches?d=a.targetTouches[0]:c&&a.J().targetTouches&&(d=a.J().targetTouches[0]),b.x=d.clientX,b.y=d.clientY;return b}function Ab(a){var b=a.offsetWidth,c=a.offsetHeight;return!s(b)&&a.getBoundingClientRect?(a=a.getBoundingClientRect(),new C(a.right-a.left,a.bottom-a.top)):new C(b,c)}var zb=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function Y(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}var Bb=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;function Cb(a){var b=[];x(a.split(Bb),function(a){var d=a.indexOf(":");0<d&&(a=[a.slice(0,d),a.slice(d+1)],2==a.length&&b.push(a[0].toLowerCase(),":",a[1],";"))});b=b.join("");return b=";"==b.charAt(b.length-1)?b:b+";"}
-function Db(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return Y(a)?a:m}
-function Z(a,b){var c=ha(b);if("float"==c||"cssFloat"==c||"styleFloat"==c)c="cssFloat";c=wb(a,c)||Eb(a,c);if(c===m)c=m;else if(oa(sa,b)&&(va.test("#"==c.charAt(0)?c:"#"+c)||za(c).length||ra&&ra[c.toLowerCase()]||xa(c).length)){var d=xa(c);if(!d.length){a:if(d=za(c),!d.length){d=ra[c.toLowerCase()];d=!d?"#"==c.charAt(0)?c:"#"+c:d;if(va.test(d)&&(d=ua(d),d=ua(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 Eb(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:m:(c=Db(a))?Eb(c,b):m}
-function Fb(a){if("function"==ba(a.getBBox))try{var b=a.getBBox();if(b)return b}catch(c){}if(Y(a,"BODY")){b=(D(a)?D(a).parentWindow||D(a).defaultView:window)||h;"hidden"!=Z(a,"overflow")?a=l:(a=Db(a),!a||!Y(a,"HTML")?a=l:(a=Z(a,"overflow"),a="auto"==a||"scroll"==a));if(a){b=(b||da).document;a=b.documentElement;var d=b.body;d||g(new z(13,"No BODY element present"));b=[a.clientHeight,a.scrollHeight,a.offsetHeight,d.scrollHeight,d.offsetHeight];a=Math.max.apply(m,[a.clientWidth,a.scrollWidth,a.offsetWidth,
-d.scrollWidth,d.offsetWidth]);b=Math.max.apply(m,b);a=new C(a,b)}else a=(b||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new C(a.clientWidth,a.clientHeight);return a}if("none"!=X(a,"display"))a=Ab(a);else{var b=a.style,d=b.display,e=b.visibility,f=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=Ab(a);b.display=d;b.position=f;b.visibility=e}return a}
-function Gb(a,b){function c(a){if("none"==Z(a,"display"))return n;a=Db(a);return!a||c(a)}function d(a){var b=Fb(a);return 0<b.height&&0<b.width?l:Y(a,"PATH")&&(0<b.height||0<b.width)?(b=Z(a,"stroke-width"),!!b&&0<parseInt(b,10)):y(a.childNodes,function(b){return b.nodeType==Fa&&"hidden"!=Z(a,"overflow")||Y(b)&&d(b)})}function e(a){var b,c=a.parentNode;return(b=ca(c)&&1==c.nodeType?c:m)&&("hidden"==Z(b,"overflow")||"hidden"==Z(b,"overflow-x")||"hidden"==Z(b,"overflow-y"))?(c=Fb(b),b=yb(b),a=yb(a),
-b.x+c.width<=a.x||b.y+c.height<=a.y?n:l):!b||e(b)}function f(a){var b=Z(a,"-o-transform")||Z(a,"-webkit-transform")||Z(a,"-ms-transform")||Z(a,"-moz-transform")||Z(a,"transform");if(b&&"none"!==b)return b=yb(a),a=Fb(a),0<=b.x+a.width&&0<=b.y+a.height?l:n;a=Db(a);return!a||f(a)}Y(a)||g(Error("Argument to isShown must be of type Element"));if(Y(a,"OPTION")||Y(a,"OPTGROUP")){var k=Ma(a,function(a){return Y(a,"SELECT")});return!!k&&Gb(k,l)}if(Y(a,"MAP")){if(!a.name)return n;k=D(a);k=k.evaluate?vb('/descendant::*[@usemap = "#'+
-a.name+'"]',k):Ka(k,function(b){var c;if(c=Y(b))c="usemap",b="style"==c?Cb(b.style.cssText):(b=b.getAttributeNode(c))&&b.specified?b.value:m,c=b=="#"+a.name;return c});return!!k&&Gb(k,b)}return Y(a,"AREA")?(k=Ma(a,function(a){return Y(a,"MAP")}),!!k&&Gb(k,b)):Y(a,"INPUT")&&"hidden"==a.type.toLowerCase()||Y(a,"NOSCRIPT")||"hidden"==Z(a,"visibility")||!c(a)||!b&&0==Hb(a)||!d(a)||!e(a)?n:f(a)}function Hb(a){var b=1,c=Z(a,"opacity");c&&(b=Number(c));(a=Db(a))&&(b*=Hb(a));return b};var Ib=Gb,Jb=["_"],$=q;!(Jb[0]in $)&&$.execScript&&$.execScript("var "+Jb[0]);for(var Kb;Jb.length&&(Kb=Jb.shift());)!Jb.length&&s(Ib)?$[Kb]=Ib:$=$[Kb]?$[Kb]:$[Kb]={};; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null,document:typeof window!=undefined?window.document:null}, arguments);}
+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:"#9370db",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:"#db7093",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 fa="background-color border-top-color border-right-color border-bottom-color border-left-color color outline-color".split(" "),ga=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/;function ha(a){if(!x.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(ga,"#$1$1$2$2$3$3"));return a.toLowerCase()}var x=/^#(?:[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){a=Number(b[1]);var 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){a=Number(b[1]);var 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 y(a,b){this.code=a;this.state=z[a]||ma;this.message=b||"";var c=this.state.replace(/((?:^|\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\s\xa0]+/g,"")}),d=c.length-5;if(0>d||c.indexOf("Error",d)!=d)c+="Error";this.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||""}(function(){var a=Error;function b(){}b.prototype=a.prototype;y.I=a.prototype;y.prototype=new b})();
+var ma="unknown error",z={15:"element not selectable",11:"element not visible",31:"ime engine activation failed",30:"ime not available",24:"invalid cookie domain",29:"invalid element coordinates",12:"invalid element state",32:"invalid selector",51:"invalid selector",52:"invalid selector",17:"javascript error",405:"unsupported operation",34:"move target out of bounds",27:"no such alert",7:"no such element",8:"no such frame",23:"no such window",28:"script timeout",33:"session not created",10:"stale element reference",
+0:"success",21:"timeout",25:"unable to set cookie",26:"unexpected alert open"};z[13]=ma;z[9]="unknown command";y.prototype.toString=function(){return this.name+": "+this.message};var r,na="",oa=/rv\:([^\);]+)(\)|;)/.exec(h.navigator?h.navigator.userAgent:null);r=na=oa?oa[1]:"";var A={};var B;A["1.9.1"]||(A["1.9.1"]=0<=q("1.9.1"));function C(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}C.prototype.toString=function(){return"("+this.x+", "+this.y+")"};C.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};C.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};C.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};function D(a,b){this.width=a;this.height=b}D.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};D.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};D.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};D.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var pa=3;function E(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 qa(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-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?ra(a,b):!c&&E(e,b)?-1*sa(a,b):!d&&E(f,a)?sa(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=F(a);c=d.createRange();c.selectNode(a);c.collapse(!0);d=d.createRange();d.selectNode(b);d.collapse(!0);
+return c.compareBoundaryPoints(h.Range.START_TO_END,d)}function sa(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return ra(d,a)}function ra(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 ta(a,b){a=a.parentNode;for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}function G(a){this.p=a||h.document||document}
+function ua(a){var b=a.p;a="CSS1Compat"==b.compatMode?b.documentElement:b.body;b=b.parentWindow||b.defaultView;return new C(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}G.prototype.contains=E;function H(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||null==b?"":b);if("string"!=typeof b)if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;for(var c=0,d=[],b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return""+b}
+function I(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function J(a,b,c,d,e){return va.call(null,a,b,n(c)?c:null,n(d)?d:null,e||new K)}
+function va(a,b,c,d,e){b.getElementsByName&&d&&"name"==c?(b=b.getElementsByName(d),t(b,function(b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),t(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),t(b,function(a){I(a,c,d)&&e.add(a)}));return e}function wa(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)I(b,c,d)&&a.matches(b)&&e.add(b);return e};function K(){this.d=this.c=null;this.g=0}function xa(a){this.m=a;this.next=this.i=null}K.prototype.unshift=function(a){a=new xa(a);a.next=this.c;this.d?this.c.i=a:this.c=this.d=a;this.c=a;this.g++};K.prototype.add=function(a){a=new xa(a);a.i=this.d;this.c?this.d.next=a:this.c=this.d=a;this.d=a;this.g++};function ya(a){return(a=a.c)?a.m:null}function L(a){return new za(a,!1)}function za(a,b){this.F=a;this.j=(this.n=b)?a.d:a.c;this.r=null}
+za.prototype.next=function(){var a=this.j;if(null==a)return null;var b=this.r=a;this.j=this.n?a.i:a.next;return b.m};function M(a,b,c,d,e){b=b.evaluate(d);c=c.evaluate(d);var f;if(b instanceof K&&c instanceof K){e=L(b);for(d=e.next();d;d=e.next())for(b=L(c),f=b.next();f;f=b.next())if(a(H(d),H(f)))return!0;return!1}if(b instanceof K||c instanceof K){b instanceof K?e=b:(e=c,c=b);e=L(e);b=typeof c;for(d=e.next();d;d=e.next()){switch(b){case "number":d=+H(d);break;case "boolean":d=!!H(d);break;case "string":d=H(d);break;default:throw Error("Illegal primitive type for comparison.");}if(a(d,c))return!0}return!1}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)}function Aa(a,b,c,d){this.s=a;this.H=b;this.o=c;this.q=d}Aa.prototype.toString=function(){return this.s};var Ba={};function N(a,b,c,d){if(a in Ba)throw Error("Binary operator already created: "+a);a=new Aa(a,b,c,d);Ba[a.toString()]=a}N("div",6,1,function(a,b,c){return a.b(c)/b.b(c)});N("mod",6,1,function(a,b,c){return a.b(c)%b.b(c)});N("*",6,1,function(a,b,c){return a.b(c)*b.b(c)});
+N("+",5,1,function(a,b,c){return a.b(c)+b.b(c)});N("-",5,1,function(a,b,c){return a.b(c)-b.b(c)});N("<",4,2,function(a,b,c){return M(function(a,b){return a<b},a,b,c)});N(">",4,2,function(a,b,c){return M(function(a,b){return a>b},a,b,c)});N("<=",4,2,function(a,b,c){return M(function(a,b){return a<=b},a,b,c)});N(">=",4,2,function(a,b,c){return M(function(a,b){return a>=b},a,b,c)});N("=",3,2,function(a,b,c){return M(function(a,b){return a==b},a,b,c,!0)});
+N("!=",3,2,function(a,b,c){return M(function(a,b){return a!=b},a,b,c,!0)});N("and",2,2,function(a,b,c){return a.f(c)&&b.f(c)});N("or",1,2,function(a,b,c){return a.f(c)||b.f(c)});function Ca(a,b,c,d,e,f,k,w,p){this.h=a;this.o=b;this.D=c;this.C=d;this.B=e;this.q=f;this.A=k;this.w=void 0!==w?w:k;this.G=!!p}Ca.prototype.toString=function(){return this.h};var Da={};function O(a,b,c,d,e,f,k,w){if(a in Da)throw Error("Function already created: "+a+".");Da[a]=new Ca(a,b,c,d,!1,e,f,k,w)}O("boolean",2,!1,!1,function(a,b){return b.f(a)},1);O("ceiling",1,!1,!1,function(a,b){return Math.ceil(b.b(a))},1);
+O("concat",3,!1,!1,function(a,b){var c=ea(arguments,1);return ba(c,function(b,c){return b+c.a(a)})},2,null);O("contains",2,!1,!1,function(a,b,c){b=b.a(a);a=c.a(a);return-1!=b.indexOf(a)},2);O("count",1,!1,!1,function(a,b){return b.evaluate(a).g},1,1,!0);O("false",2,!1,!1,g(!1),0);O("floor",1,!1,!1,function(a,b){return Math.floor(b.b(a))},1);
+O("id",4,!1,!1,function(a,b){var c=a.e(),d=9==c.nodeType?c:c.ownerDocument,c=b.a(a).split(/\s+/),e=[];t(c,function(a){(a=d.getElementById(a))&&!da(e,a)&&e.push(a)});e.sort(qa);var f=new K;t(e,function(a){f.add(a)});return f},1);O("lang",2,!1,!1,g(!1),1);O("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.u()},0);O("local-name",3,!1,!0,function(a,b){var c=b?ya(b.evaluate(a)):a.e();return c?c.nodeName.toLowerCase():""},0,1,!0);
+O("name",3,!1,!0,function(a,b){var c=b?ya(b.evaluate(a)):a.e();return c?c.nodeName.toLowerCase():""},0,1,!0);O("namespace-uri",3,!0,!1,g(""),0,1,!0);O("normalize-space",3,!1,!0,function(a,b){return(b?b.a(a):H(a.e())).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);O("not",2,!1,!1,function(a,b){return!b.f(a)},1);O("number",1,!1,!0,function(a,b){return b?b.b(a):+H(a.e())},0,1);O("position",1,!0,!1,function(a){return a.v()},0);O("round",1,!1,!1,function(a,b){return Math.round(b.b(a))},1);
+O("starts-with",2,!1,!1,function(a,b,c){b=b.a(a);a=c.a(a);return 0==b.lastIndexOf(a,0)},2);O("string",3,!1,!0,function(a,b){return b?b.a(a):H(a.e())},0,1);O("string-length",1,!1,!0,function(a,b){return(b?b.a(a):H(a.e())).length},0,1);
+O("substring",3,!1,!1,function(a,b,c,d){c=c.b(a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?d.b(a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=b.a(a);if(Infinity==d)return a.substring(e);b=Math.round(d);return a.substring(e,c+b)},2,3);O("substring-after",3,!1,!1,function(a,b,c){b=b.a(a);a=c.a(a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
+O("substring-before",3,!1,!1,function(a,b,c){b=b.a(a);a=c.a(a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);O("sum",1,!1,!1,function(a,b){for(var c=L(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+=+H(e);return d},1,1,!0);O("translate",3,!1,!1,function(a,b,c,d){b=b.a(a);c=c.a(a);var e=d.a(a);a=[];for(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,!1,!1,g(!0),0);function Ea(a,b,c,d){this.h=a;this.t=b;this.n=c;this.J=d}Ea.prototype.toString=function(){return this.h};var Fa={};function P(a,b,c,d){if(a in Fa)throw Error("Axis already created: "+a);Fa[a]=new Ea(a,b,c,!!d)}P("ancestor",function(a,b){for(var c=new K,d=b;d=d.parentNode;)a.matches(d)&&c.unshift(d);return c},!0);P("ancestor-or-self",function(a,b){var c=new K,d=b;do a.matches(d)&&c.unshift(d);while(d=d.parentNode);return c},!0);
+P("attribute",function(a,b){var c=new K,d=a.getName(),e=b.attributes;if(e)if("*"==d)for(var d=0,f;f=e[d];d++)c.add(f);else(f=e.getNamedItem(d))&&c.add(f);return c},!1);P("child",function(a,b,c,d,e){return wa.call(null,a,b,n(c)?c:null,n(d)?d:null,e||new K)},!1,!0);P("descendant",J,!1,!0);P("descendant-or-self",function(a,b,c,d){var e=new K;I(b,c,d)&&a.matches(b)&&e.add(b);return J(a,b,c,d,e)},!1,!0);
+P("following",function(a,b,c,d){var e=new K;do for(var f=b;f=f.nextSibling;)I(f,c,d)&&a.matches(f)&&e.add(f),e=J(a,f,c,d,e);while(b=b.parentNode);return e},!1,!0);P("following-sibling",function(a,b){for(var c=new K,d=b;d=d.nextSibling;)a.matches(d)&&c.add(d);return c},!1);P("namespace",function(){return new K},!1);P("parent",function(a,b){var c=new K;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},!1);
+P("preceding",function(a,b,c,d){var e=new K,f=[];do f.unshift(b);while(b=b.parentNode);for(var k=1,w=f.length;k<w;k++){var p=[];for(b=f[k];b=b.previousSibling;)p.unshift(b);for(var l=0,v=p.length;l<v;l++)b=p[l],I(b,c,d)&&a.matches(b)&&e.add(b),e=J(a,b,c,d,e)}return e},!0,!0);P("preceding-sibling",function(a,b){for(var c=new K,d=b;d=d.previousSibling;)a.matches(d)&&c.unshift(d);return c},!0);P("self",function(a,b){var c=new K;a.matches(b)&&c.add(b);return c},!1);var Ga=function(){var a={K:"http://www.w3.org/2000/svg"};return function(b){return a[b]||null}}();
+function Ha(a,b){var c=function(){var c;a:{var e=F(b);try{var f=e.createNSResolver?e.createNSResolver(e.documentElement):Ga;c=e.evaluate(a,b,f,9,null);break a}catch(k){if("NS_ERROR_ILLEGAL_VALUE"!=k.name)throw new y(32,"Unable to locate an element with the xpath expression "+a+" because of the following error:\n"+k);}c=void 0}return c?c.singleNodeValue||null:b.selectSingleNode?(c=F(b),c.setProperty&&c.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):null}();if(null!==c&&(!c||1!=c.nodeType))throw new y(32,
+'The result of the xpath expression "'+a+'" is: '+c+". It should be an element.");return c};(function(){var a=h.Components;if(!a)return!1;try{if(!a.classes)return!1}catch(b){return!1}var c=a.classes,a=a.interfaces;c["@mozilla.org/xpcom/version-comparator;1"].getService(a.nsIVersionComparator);c["@mozilla.org/xre/app-info;1"].getService(a.nsIXULAppInfo);return!0})();function Q(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}Q.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};Q.prototype.contains=function(a){return a instanceof Q?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};
+Q.prototype.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};Q.prototype.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
+Q.prototype.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Ia(a,b){var c=F(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function R(a,b){return Ia(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function Ja(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}return b}
+function Ka(a){var b=F(a),c=R(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=R(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 null}
+function La(a){if(1==a.nodeType){var b;if(a.getBoundingClientRect)b=Ja(a),b=new C(b.left,b.top);else{b=ua(a?new G(F(a)):B||(B=new G));var c,d=F(a),e=R(a,"position"),f=d.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==e&&(c=d.getBoxObjectFor(a))&&(0>c.screenX||0>c.screenY),e=new C(0,0),k=(d?F(d):document).documentElement;if(a!=k)if(a.getBoundingClientRect)c=Ja(a),d=ua(d?new G(F(d)):B||(B=new G)),e.x=c.left+d.x,e.y=c.top+d.y;else if(d.getBoxObjectFor&&!f)c=d.getBoxObjectFor(a),d=d.getBoxObjectFor(k),
+e.x=c.screenX-d.screenX,e.y=c.screenY-d.screenY;else{c=a;do e.x+=c.offsetLeft,e.y+=c.offsetTop,c!=a&&(e.x+=c.clientLeft||0,e.y+=c.clientTop||0),c=c.offsetParent;while(c&&c!=a);for(c=a;(c=Ka(c))&&c!=d.body&&c!=k;)e.x-=c.scrollLeft,e.y-=c.scrollTop}b=new C(e.x-b.x,e.y-b.y)}A[12]||(A[12]=0<=q(12))?a=b:((c=R(a,"-moz-transform"))||(c=R(a,"transform")),a=c?(a=c.match(Ma))?new C(parseFloat(a[1]),parseFloat(a[2])):new C(0,0):new C(0,0),a=new C(b.x+a.x,b.y+a.y));return a}b="function"==m(a.k);c=a;a.targetTouches?
+c=a.targetTouches[0]:b&&a.k().targetTouches&&(c=a.k().targetTouches[0]);return new C(c.clientX,c.clientY)}var Ma=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function S(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function T(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return S(a)?a:null}
+function U(a,b){var c=aa(b);if("float"==c||"cssFloat"==c||"styleFloat"==c)c="cssFloat";c=Ia(a,c)||Na(a,c);if(null===c)c=null;else if(da(fa,b)&&(x.test("#"==c.charAt(0)?c:"#"+c)||la(c).length||u&&u[c.toLowerCase()]||ja(c).length)){var d=ja(c);if(!d.length){a:if(d=la(c),!d.length){d=(d=u[c.toLowerCase()])?d:"#"==c.charAt(0)?c:"#"+c;if(x.test(d)&&(d=ha(d),d=ha(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 Na(a,b){var c=a.currentStyle||a.style,d=c[b];void 0===d&&"function"==m(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?void 0!==d?d:null:(c=T(a))?Na(c,b):null}
+function V(a,b){function c(a){if("none"==U(a,"display"))return!1;a=T(a);return!a||c(a)}function d(a){var b=W(a);return 0<b.height&&0<b.width?!0:S(a,"PATH")&&(0<b.height||0<b.width)?(a=U(a,"stroke-width"),!!a&&0<parseInt(a,10)):"hidden"!=U(a,"overflow")&&ca(a.childNodes,function(a){return a.nodeType==pa||S(a)&&d(a)})}function e(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=La(a),a=W(a),0<=b.x+a.width&&
+0<=b.y+a.height?!0:!1;a=T(a);return!a||e(a)}if(!S(a))throw Error("Argument to isShown must be of type Element");if(S(a,"OPTION")||S(a,"OPTGROUP")){var f=ta(a,function(a){return S(a,"SELECT")});return!!f&&V(f,!0)}return(f=Oa(a))?!!f.l&&0<f.rect.width&&0<f.rect.height&&V(f.l,b):S(a,"INPUT")&&"hidden"==a.type.toLowerCase()||S(a,"NOSCRIPT")||"hidden"==U(a,"visibility")||!c(a)||!b&&0==Pa(a)||!d(a)||Qa(a)==X?!1:e(a)}var X="hidden";
+function Qa(a){function b(a){var b=a;if("visible"==w)if(a==f)b=k;else if(a==k)return{x:"visible",y:"visible"};b={x:U(b,"overflow-x"),y:U(b,"overflow-y")};a==f&&(b.x="hidden"==b.x?"hidden":"auto",b.y="hidden"==b.y?"hidden":"auto");return b}function c(a){var b=U(a,"position");if("fixed"==b)return f;for(a=T(a);a&&a!=f&&(0==U(a,"display").lastIndexOf("inline",0)||"absolute"==b&&"static"==U(a,"position"));)a=T(a);return a}var d=W(a),e=F(a),f=e.documentElement,k=e.body,w=U(f,"overflow");for(a=c(a);a;a=
+c(a)){var p=W(a),e=b(a),l=d.left>=p.left+p.width,p=d.top>=p.top+p.height;if(l&&"hidden"==e.x||p&&"hidden"==e.y)return X;if(l&&"visible"!=e.x||p&&"visible"!=e.y)return Qa(a)==X?X:"scroll"}return"none"}
+function W(a){var b=Oa(a);if(b)return b.rect;if("function"==m(a.getBBox))try{var c=a.getBBox();return new Q(c.x,c.y,c.width,c.height)}catch(d){if("NS_ERROR_FAILURE"===d.name||-1!=d.message.indexOf("Component returned failure code: 0x80004005"))return new Q(0,0,0,0);throw d;}else{if(S(a,"HTML"))return a=((F(a)?F(a).parentWindow||F(a).defaultView:window)||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new D(a.clientWidth,a.clientHeight),new Q(0,0,a.width,a.height);b=La(a);
+return new Q(b.x,b.y,a.offsetWidth,a.offsetHeight)}}
+function Oa(a){var b=S(a,"MAP");if(!b&&!S(a,"AREA"))return null;var c=b?a:S(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;if(c&&c.name&&(d=Ha('/descendant::*[@usemap = "#'+c.name+'"]',F(c)))&&(e=W(d),!b&&"default"!=a.shape.toLowerCase())){var f=Ra(a);a=Math.min(Math.max(f.left,0),e.width);b=Math.min(Math.max(f.top,0),e.height);c=Math.min(f.width,e.width-a);f=Math.min(f.height,e.height-b);e=new Q(a+e.left,b+e.top,c,f)}return{l:d,rect:e||new Q(0,0,0,0)}}
+function Ra(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if("rect"==b&&4==a.length){var b=a[0],c=a[1];return new Q(b,c,a[2]-b,a[3]-c)}if("circle"==b&&3==a.length)return b=a[2],new Q(a[0]-b,a[1]-b,2*b,2*b);if("poly"==b&&2<a.length){for(var b=a[0],c=a[1],d=b,e=c,f=2;f+1<a.length;f+=2)b=Math.min(b,a[f]),d=Math.max(d,a[f]),c=Math.min(c,a[f+1]),e=Math.max(e,a[f+1]);return new Q(b,c,d-b,e-c)}return new Q(0,0,0,0)}
+function Pa(a){var b=1,c=U(a,"opacity");c&&(b=Number(c));(a=T(a))&&(b*=Pa(a));return b};var Sa=V,Y=["_"],Z=h;Y[0]in Z||!Z.execScript||Z.execScript("var "+Y[0]);for(var $;Y.length&&($=Y.shift());)Y.length||void 0===Sa?Z=Z[$]?Z[$]:Z[$]={}:Z[$]=Sa;; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null,document:typeof window!=undefined?window.document:null}, arguments);}