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