// Copyright 2011 WebDriver committers // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /* AUTO GENERATED - DO NOT EDIT BY HAND */ #ifndef WEBDRIVER_ATOMS_H_ #define WEBDRIVER_ATOMS_H_ namespace webdriver { namespace atoms { const char* const CLEAR = "function(){return function(){var k=this;\nfunction m(a){var b=typeof a;if" "(b==\"object\")if(a){if(a instanceof Array)return\"array\";else if(a inst" "anceof Object)return b;var c=Object.prototype.toString.call(a);if(c==\"[o" "bject Window]\")return\"object\";if(c==\"[object Array]\"||typeof a.lengt" "h==\"number\"&&typeof a.splice!=\"undefined\"&&typeof a.propertyIsEnumera" "ble!=\"undefined\"&&!a.propertyIsEnumerable(\"splice\"))return\"array\";i" "f(c==\"[object Function]\"||typeof a.call!=\"undefined\"&&typeof a.proper" "tyIsEnumerable!=\"undefined\"&&!a.propertyIsEnumerable(\"call\"))return\"" "function\"}else return\"null\";else if(b==\n\"function\"&&typeof a.call==" "\"undefined\")return\"object\";return b}function o(a){return m(a)==\"func" "tion\"}Math.floor(Math.random()*2147483648).toString(36);function p(a,b){" "function c(){}c.prototype=b.prototype;a.i=b.prototype;a.prototype=new c};" "function q(a){this.stack=Error().stack||\"\";if(a)this.message=String(a)}" "p(q,Error);q.prototype.name=\"CustomError\";function s(a,b){q.call(this,b" ");this.code=a;this.name=t[a]||t[13]}p(s,q);var t,u={NoSuchElementError:7," "NoSuchFrameError:8,UnknownCommandError:9,StaleElementReferenceError:10,El" "ementNotVisibleError:11,InvalidElementStateError:12,UnknownError:13,Eleme" "ntNotSelectableError:15,XPathLookupError:19,NoSuchWindowError:23,InvalidC" "ookieDomainError:24,UnableToSetCookieError:25,ModalDialogOpenedError:26,M" "odalDialogOpenError:27,ScriptTimeoutError:28},v={};for(var w in u)v[u[w]]" "=w;t=v;\ns.prototype.toString=function(){return\"[\"+this.name+\"] \"+thi" "s.message};var aa=window;function ba(a){for(var b=1;b=0;c--)a.parentNode&&a.parentNode.insertBefore(b[c],a.nextSibli" "ng);a&&a.parentNode&&a.parentNode.removeChild(a)};function P(a,b,c,d){N.c" "all(this,a,b,c,null,d)}p(P,N);P.prototype.next=function(){do P.i.next.cal" "l(this);while(this.c==-1);return this.b};function ja(a,b){var c=I(a);if(c" ".defaultView&&c.defaultView.getComputedStyle)if(c=c.defaultView.getComput" "edStyle(a,null))return c[b]||c.getPropertyValue(b);return\"\"}function Q(" "a,b){return ja(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style[b]}" "\nfunction ka(a){var b=I(a),c=Q(a,\"position\"),d=c==\"fixed\"||c==\"abso" "lute\";for(a=a.parentNode;a&&a!=b;a=a.parentNode){c=Q(a,\"position\");d=d" "&&c==\"static\"&&a!=b.documentElement&&a!=b.body;if(!d&&(a.scrollWidth>a." "clientWidth||a.scrollHeight>a.clientHeight||c==\"fixed\"||c==\"absolute\"" "))return a}return null};function R(a,b){return!!a&&a.nodeType==1&&(!b||a." "tagName.toUpperCase()==b)}\nvar la={\"class\":\"className\",readonly:\"re" "adOnly\"},ma=[\"checked\",\"disabled\",\"draggable\",\"hidden\"],na=[\"as" "ync\",\"autofocus\",\"autoplay\",\"checked\",\"compact\",\"complete\",\"c" "ontrols\",\"declare\",\"defaultchecked\",\"defaultselected\",\"defer\",\"" "disabled\",\"draggable\",\"ended\",\"formnovalidate\",\"hidden\",\"indete" "rminate\",\"iscontenteditable\",\"ismap\",\"itemscope\",\"loop\",\"multip" "le\",\"muted\",\"nohref\",\"noresize\",\"noshade\",\"novalidate\",\"nowra" "p\",\"open\",\"paused\",\"pubdate\",\"readonly\",\"required\",\"reversed" "\",\"scoped\",\"seamless\",\"seeking\",\n\"selected\",\"spellcheck\",\"tr" "uespeed\",\"willvalidate\"];function oa(a,b){if(8==a.nodeType)return null" ";b=b.toLowerCase();if(b==\"style\"){var c=a.style.cssText.replace(/^[\\s" "\\xa0]+|[\\s\\xa0]+$/g,\"\").toLowerCase();return c.charAt(c.length-1)==" "\";\"?c:c+\";\"}c=a.getAttributeNode(b);if(!c)return null;if(B(na,b)>=0)r" "eturn\"true\";return c.specified?c.value:null}var pa=[\"BUTTON\",\"INPUT" "\",\"OPTGROUP\",\"OPTION\",\"SELECT\",\"TEXTAREA\"];\nfunction qa(a){var " "b=a.tagName.toUpperCase();if(!(B(pa,b)>=0))return true;if(oa(a,\"disabled" "\"))return false;if(a.parentNode&&a.parentNode.nodeType==1&&\"OPTGROUP\"=" "=b||\"OPTION\"==b)return qa(a.parentNode);return true}function S(a){for(a" "=a.parentNode;a&&a.nodeType!=1&&a.nodeType!=9&&a.nodeType!=11;)a=a.parent" "Node;return R(a)?a:null}function T(a,b){b=ca(String(b));return ja(a,b)||r" "a(a,b)}\nfunction ra(a,b){var c=(a.currentStyle||a.style)[b];if(c!=\"inhe" "rit\")return c!==undefined?c:null;return(c=S(a))?ra(c,b):null}function sa" "(a){if(o(a.getBBox))return a.getBBox();var b;if(Q(a,\"display\")!=\"none" "\")b=new H(a.offsetWidth,a.offsetHeight);else{b=a.style;var c=b.display,d" "=b.visibility,f=b.position;b.visibility=\"hidden\";b.position=\"absolute" "\";b.display=\"inline\";var e;e=a.offsetWidth;a=a.offsetHeight;b.display=" "c;b.position=f;b.visibility=d;b=new H(e,a)}return b}\nfunction U(a,b){fun" "ction c(e){if(T(e,\"display\")==\"none\")return false;e=S(e);return!e||c(" "e)}function d(e){var l=sa(e);if(l.height>0&&l.width>0)return true;if(e.in" "nerText||e.textContent)if(ta.test(e.innerText||e.textContent))return true" ";return C&&da(e.childNodes,function(j){return R(j)&&d(j)})}if(!R(a))throw" " Error(\"Argument to isShown must be of type Element\");if(R(a,\"TITLE\")" ")return(I(a)?I(a).parentWindow||I(a).defaultView:window)==aa;if(R(a,\"OPT" "ION\")||R(a,\"OPTGROUP\")){var f=K(a,function(e){return R(e,\n\"SELECT\")" "});return!!f&&U(f)}if(R(a,\"MAP\")){if(!a.name)return false;f=I(a);f=f.ev" "aluate?ha('/descendant::*[@usemap = \"#'+a.name+'\"]',f):fa(f,function(e)" "{return R(e)&&oa(e,\"usemap\")==\"#\"+a.name});return!!f&&U(f)}if(R(a,\"A" "REA\")){f=K(a,function(e){return R(e,\"MAP\")});return!!f&&U(f)}if(R(a,\"" "INPUT\")&&a.type.toLowerCase()==\"hidden\")return false;if(T(a,\"visibili" "ty\")==\"hidden\")return false;if(!c(a))return false;if(!b&&ua(a)==0)retu" "rn false;if(!d(a))return false;return true}\nvar va=\"[\\\\s\\\\xa0\"+Str" "ing.fromCharCode(160)+\"]+\",ta=RegExp(\"^\"+va+\"$\");function ua(a){var" " b=1,c=T(a,\"opacity\");if(c)b=Number(c);if(a=S(a))b*=ua(a);return b};var" " wa=[\"dragstart\",\"dragexit\",\"mouseover\",\"mouseout\"];\nfunction V(" "a,b,c){var d=I(a),f=d?d.parentWindow||d.defaultView:window,e=new G;if(a.n" "odeType==1)if(a.getBoundingClientRect){var l=a.getBoundingClientRect();e." "x=l.left;e.y=l.top}else{l=ga(a?new L(I(a)):F||(F=new L));var j,g=I(a);j=Q" "(a,\"position\");var h=new G(0,0),r=(g?g.nodeType==9?g:I(g):document).doc" "umentElement;if(a!=r)if(a.getBoundingClientRect){j=a.getBoundingClientRec" "t();g=ga(g?new L(I(g)):F||(F=new L));h.x=j.left+g.x;h.y=j.top+g.y}else if" "(g.getBoxObjectFor){j=g.getBoxObjectFor(a);g=g.getBoxObjectFor(r);\nh.x=j" ".screenX-g.screenX;h.y=j.screenY-g.screenY}else{var i=a;do{h.x+=i.offsetL" "eft;h.y+=i.offsetTop;if(i!=a){h.x+=i.clientLeft||0;h.y+=i.clientTop||0}if" "(C&&Q(i,\"position\")==\"fixed\"){h.x+=g.body.scrollLeft;h.y+=g.body.scro" "llTop;break}i=i.offsetParent}while(i&&i!=a);if(C&&j==\"absolute\")h.y-=g." "body.offsetTop;for(i=a;(i=ka(i))&&i!=g.body&&i!=r;){h.x-=i.scrollLeft;h.y" "-=i.scrollTop}}e.x=h.x-l.x;e.y=h.y-l.y}else{l=o(a.f);h=a;if(a.targetTouch" "es)h=a.targetTouches[0];else if(l&&a.f().targetTouches)h=a.f().targetTouc" "hes[0];\ne.x=h.clientX;e.y=h.clientY}var n=c||{};c=(n.x||0)+e.x;e=(n.y||0" ")+e.y;l=n.button||0;h=n.bubble||true;j=null;if(B(wa,b)>=0)j=n.related||nu" "ll;g=!!n.alt;r=!!n.control;i=!!n.shift;n=!!n.meta;if(a.fireEvent&&d&&d.cr" "eateEventObject){a=d.createEventObject();a.altKey=g;a.j=r;a.metaKey=n;a.s" "hiftKey=i;a.clientX=c;a.clientY=e;a.button=l;a.relatedTarget=j}else{a=d.c" "reateEvent(\"MouseEvents\");if(a.initMouseEvent)a.initMouseEvent(b,h,true" ",f,1,0,0,c,e,r,g,i,n,l,j);else{a.initEvent(b,h,true);a.shiftKey=i;a.metaK" "ey=\nn;a.altKey=g;a.ctrlKey=r;a.button=l}}return a}function W(a,b,c){var " "d=c||{};c=d.keyCode||0;var f=d.charCode||0,e=!!d.alt,l=!!d.ctrl,j=!!d.shi" "ft;d=!!d.meta;a=I(a).createEvent(\"Events\");a.initEvent(b,true,true);a.c" "harCode=f;a.keyCode=c;a.altKey=e;a.ctrlKey=l;a.metaKey=d;a.shiftKey=j;ret" "urn a}\nfunction xa(a,b,c){var d=I(a),f=c||{};c=f.bubble!==false;var e=!!" "f.alt,l=!!f.control,j=!!f.shift;f=!!f.meta;if(a.fireEvent&&d&&d.createEve" "ntObject){a=d.createEventObject();a.altKey=e;a.k=l;a.metaKey=f;a.shiftKey" "=j}else{a=d.createEvent(\"HTMLEvents\");a.initEvent(b,c,true);a.shiftKey=" "j;a.metaKey=f;a.altKey=e;a.ctrlKey=l}return a}var X={};X.click=V;X.keydow" "n=W;X.keypress=W;X.keyup=W;X.mousedown=V;X.mousemove=V;X.mouseout=V;X.mou" "seover=V;X.mouseup=V;function ya(a){if(!U(a,true))throw new s(11,\"Elemen" "t is not currently visible and may not be manipulated\");};function za(a)" "{var b;if(R(a,\"TEXTAREA\"))b=true;else if(R(a,\"INPUT\")){b=a.type.toLow" "erCase();b=b==\"text\"||b==\"password\"||b==\"email\"||b==\"search\"}else" " b=false;if(b){b=la.readOnly||\"readOnly\";var c=a[b];b=c===undefined&&B(" "ma,b)>=0?false:c;if(b)throw new s(12,\"Element is readonly and may not be" " cleared.\");if(a.value!=\"\"){ya(a);if(!qa(a))throw new s(12,\"Element i" "s not currently enabled and may not be manipulated\");b=I(a).activeElemen" "t;ya(a);if(a!=b){b&&o(b.blur)&&b.blur();o(a.focus)&&a.focus()}a.value=\n" "\"\";b=(X.change||xa)(a,\"change\",void 0);if(!(c=o(a.fireEvent))){c=m(a." "fireEvent);c=c==\"object\"||c==\"array\"||c==\"function\"}if(c){try{(I(a)" "?I(a).parentWindow||I(a).defaultView:window).event=b}catch(d){}a.fireEven" "t(\"onchange\",b)}else a.dispatchEvent(b)}}}var Y=\"_\".split(\".\"),Z=k;" "!(Y[0]in Z)&&Z.execScript&&Z.execScript(\"var \"+Y[0]);for(var $;Y.length" "&&($=Y.shift());)if(!Y.length&&za!==undefined)Z[$]=za;else Z=Z[$]?Z[$]:Z[" "$]={};; return this._.apply(null,arguments);}.apply({navigator:typeof win" "dow!='undefined'?window.navigator:null}, arguments);}"; const char* const EXECUTE_SCRIPT = "function(){return function(){function h(a){var b=typeof a;if(b==\"object" "\")if(a){if(a instanceof Array)return\"array\";else if(a instanceof Objec" "t)return b;var c=Object.prototype.toString.call(a);if(c==\"[object Window" "]\")return\"object\";if(c==\"[object Array]\"||typeof a.length==\"number" "\"&&typeof a.splice!=\"undefined\"&&typeof a.propertyIsEnumerable!=\"unde" "fined\"&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(c==\"[obj" "ect Function]\"||typeof a.call!=\"undefined\"&&typeof a.propertyIsEnumera" "ble!=\"undefined\"&&!a.propertyIsEnumerable(\"call\"))return\"function\"}" "else return\"null\";\nelse if(b==\"function\"&&typeof a.call==\"undefined" "\")return\"object\";return b}function i(a){var b=h(a);return b==\"array\"" "||b==\"object\"&&typeof a.length==\"number\"}function j(a){a=h(a);return " "a==\"object\"||a==\"array\"||a==\"function\"}var k=Date.now||function(){r" "eturn+new Date};function l(a,b){function c(){}c.prototype=b.prototype;a.c" "=b.prototype;a.prototype=new c};function m(a){this.stack=Error().stack||" "\"\";if(a)this.message=String(a)}l(m,Error);m.prototype.name=\"CustomErro" "r\";function n(a,b,c){var d={};for(var e in a)if(b.call(c,a[e],e,a))d[e]=" "a[e];return d}function o(a,b,c){var d={};for(var e in a)d[e]=b.call(c,a[e" "],e,a);return d}function p(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))re" "turn d};function q(a,b){m.call(this,b);this.code=a;this.name=r[a]||r[13]}" "l(q,m);var r,s={NoSuchElementError:7,NoSuchFrameError:8,UnknownCommandErr" "or:9,StaleElementReferenceError:10,ElementNotVisibleError:11,InvalidEleme" "ntStateError:12,UnknownError:13,ElementNotSelectableError:15,XPathLookupE" "rror:19,NoSuchWindowError:23,InvalidCookieDomainError:24,UnableToSetCooki" "eError:25,ModalDialogOpenedError:26,ModalDialogOpenError:27,ScriptTimeout" "Error:28},t={};for(var u in s)t[s[u]]=u;r=t;\nq.prototype.toString=functi" "on(){return\"[\"+this.name+\"] \"+this.message};function v(a){for(var b=1" ";bb)return 1;return 0}var ba={};function ca(a){return ba[a]||(ba[a]=String" "(a).replace(/\\-([a-z])/g,function(b,c){return c.toUpperCase()}))};functi" "on r(a,b){b.unshift(a);o.call(this,aa.apply(null,b));b.shift();this.m=a}m" "(r,o);r.prototype.name=\"AssertionError\";function s(a,b){if(!a){var c=Ar" "ray.prototype.slice.call(arguments,2),d=\"Assertion failed\";if(b){d+=\":" " \"+b;var f=c}throw new r(\"\"+d,f||[]);}return a};var t=Array.prototype," "da=t.indexOf?function(a,b,c){s(a.length!=null);return t.indexOf.call(a,b," "c)}:function(a,b,c){c=c==null?0:c<0?Math.max(0,a.length+c):c;if(k(a)){if(" "!k(b)||b.length!=1)return-1;return a.indexOf(b,c)}for(c=c;c=0}d=d}d=d}d=d}d=d}" "if(d&&(b||c))c=a.querySelectorAll(b+(c?\".\"+c:\"\"));else if(c&&a.getEle" "mentsByClassName){a=a.getElementsByClassName(c);if(b){d={};e=f=0;for(;g=a" "[e];e++)if(b==g.nodeName)d[f++]=g;d.length=f;c=d}else c=a}else{a=a.getEle" "mentsByTagName(b||\"*\");if(c){d={};f=0;for(e=0;g=a[e];e++){b=g.className" ";if(typeof b.split==\"function\"&&da(b.split(/\\s+/),c)>=0)d[f++]=g}d.len" "gth=\nf;c=d}else c=a}return c}C.prototype.contains=F;var H={};H.b=functio" "n(a,b){if(!a)throw Error(\"No class name specified\");a=p(a);if(a.split(/" "\\s+/).length>1)throw Error(\"Compound class names not permitted\");var c" "=G(B(b),\"*\",a,b);return c.length?c[0]:null};H.e=function(a,b){if(!a)thr" "ow Error(\"No class name specified\");a=p(a);if(a.split(/\\s+/).length>1)" "throw Error(\"Compound class names not permitted\");return G(B(b),\"*\",a" ",b)};var I={};I.b=function(a,b){if(!l(b.querySelector)&&0)throw Error(\"C" "SS selection is not supported\");if(!a)throw Error(\"No selector specifie" "d\");if(a.split(/,/).length>1)throw Error(\"Compound selectors not permit" "ted\");a=p(a);var c=b.querySelector(a);return c&&c.nodeType==1?c:null};I." "e=function(a,b){if(!l(b.querySelectorAll)&&0)throw Error(\"CSS selection " "is not supported\");if(!a)throw Error(\"No selector specified\");if(a.spl" "it(/,/).length>1)throw Error(\"Compound selectors not permitted\");a=p(a)" ";return b.querySelectorAll(a)};function pa(a,b){if(typeof a.selectNodes!=" "\"undefined\"){var c=D(a);typeof c.setProperty!=\"undefined\"&&c.setPrope" "rty(\"SelectionLanguage\",\"XPath\");return a.selectNodes(b)}else if(docu" "ment.implementation.hasFeature(\"XPath\",\"3.0\")){c=D(a);var d=c.createN" "SResolver(c.documentElement);c=c.evaluate(b,a,d,XPathResult.ORDERED_NODE_" "SNAPSHOT_TYPE,null);d=[];var f=c.snapshotLength;for(var e=0;e=0;c--)a.parentNode&&a.parentNode.insertBefore(b[c],a.n" "extSibling);a&&a.parentNode&&a.parentNode.removeChild(a)};function N(a,b," "c,d){L.call(this,a,b,c,null,d)}m(N,L);N.prototype.next=function(){do N.l." "next.call(this);while(this.d==-1);return this.c};function ra(a,b){var c=D" "(a);if(c.defaultView&&c.defaultView.getComputedStyle)if(c=c.defaultView.g" "etComputedStyle(a,null))return c[b]||c.getPropertyValue(b);return\"\"};fu" "nction O(a,b){return!!a&&a.nodeType==1&&(!b||a.tagName.toUpperCase()==b)}" "\nvar sa=[\"async\",\"autofocus\",\"autoplay\",\"checked\",\"compact\",\"" "complete\",\"controls\",\"declare\",\"defaultchecked\",\"defaultselected" "\",\"defer\",\"disabled\",\"draggable\",\"ended\",\"formnovalidate\",\"hi" "dden\",\"indeterminate\",\"iscontenteditable\",\"ismap\",\"itemscope\",\"" "loop\",\"multiple\",\"muted\",\"nohref\",\"noresize\",\"noshade\",\"noval" "idate\",\"nowrap\",\"open\",\"paused\",\"pubdate\",\"readonly\",\"require" "d\",\"reversed\",\"scoped\",\"seamless\",\"seeking\",\"selected\",\"spell" "check\",\"truespeed\",\"willvalidate\"];\nfunction P(a,b){if(8==a.nodeTyp" "e)return null;b=b.toLowerCase();if(b==\"style\"){var c=p(a.style.cssText)" ".toLowerCase();return c.charAt(c.length-1)==\";\"?c:c+\";\"}c=a.getAttrib" "uteNode(b);if(!c)return null;if(da(sa,b)>=0)return\"true\";return c.speci" "fied?c.value:null}function Q(a){for(a=a.parentNode;a&&a.nodeType!=1&&a.no" "deType!=9&&a.nodeType!=11;)a=a.parentNode;return O(a)?a:null}function R(a" ",b){b=ca(String(b));return ra(a,b)||ta(a,b)}\nfunction ta(a,b){var c=(a.c" "urrentStyle||a.style)[b];if(c!=\"inherit\")return c!==undefined?c:null;re" "turn(c=Q(a))?ta(c,b):null}\nfunction ua(a){if(l(a.getBBox))return a.getBB" "ox();var b;if((ra(a,\"display\")||(a.currentStyle?a.currentStyle.display:" "null)||a.style.display)!=\"none\")b=new A(a.offsetWidth,a.offsetHeight);e" "lse{b=a.style;var c=b.display,d=b.visibility,f=b.position;b.visibility=\"" "hidden\";b.position=\"absolute\";b.display=\"inline\";var e;e=a.offsetWid" "th;a=a.offsetHeight;b.display=c;b.position=f;b.visibility=d;b=new A(e,a)}" "return b}\nfunction S(a,b){function c(e){if(R(e,\"display\")==\"none\")re" "turn false;e=Q(e);return!e||c(e)}function d(e){var g=ua(e);if(g.height>0&" "&g.width>0)return true;if(e.innerText||e.textContent)if(va.test(e.innerTe" "xt||e.textContent))return true;return y&&ga(e.childNodes,function(i){retu" "rn O(i)&&d(i)})}if(!O(a))throw Error(\"Argument to isShown must be of typ" "e Element\");if(O(a,\"TITLE\"))return(D(a)?D(a).parentWindow||D(a).defaul" "tView:window)==n;if(O(a,\"OPTION\")||O(a,\"OPTGROUP\")){var f=oa(a,functi" "on(e){return O(e,\n\"SELECT\")});return!!f&&S(f)}if(O(a,\"MAP\")){if(!a.n" "ame)return false;f=D(a);f=f.evaluate?J.b('/descendant::*[@usemap = \"#'+a" ".name+'\"]',f):ma(f,function(e){return O(e)&&P(e,\"usemap\")==\"#\"+a.nam" "e});return!!f&&S(f)}if(O(a,\"AREA\")){f=oa(a,function(e){return O(e,\"MAP" "\")});return!!f&&S(f)}if(O(a,\"INPUT\")&&a.type.toLowerCase()==\"hidden\"" ")return false;if(R(a,\"visibility\")==\"hidden\")return false;if(!c(a))re" "turn false;if(!b&&wa(a)==0)return false;if(!d(a))return false;return true" "}\nfunction Aa(a){var b=[\"\"];Ba(a,b);b=fa(b,p);return p(b.join(\"\\n\")" ")}function Ba(a,b){if(O(a,\"BR\"))b.push(\"\");else{var c=Ca(a);c&&b[b.le" "ngth-1]&&b.push(\"\");ea(a.childNodes,function(d){if(d.nodeType==3){var f" "=Q(d);if(f){S(f);if(f&&S(f)){d=d.nodeValue.replace(Da,\" \");f=b.pop();va" "r e=f.length-1;if(e>=0&&f.indexOf(\" \",e)==e&&d.lastIndexOf(\" \",0)==0)" "d=d.substr(1);b.push(f+d)}}}else O(d)&&Ba(d,b)});c&&b[b.length-1]&&b.push" "(\"\")}}function Ca(a){a=R(a,\"display\");return a==\"block\"||a==\"inlin" "e-block\"}\nvar Ea=\"[\\\\s\\\\xa0\"+String.fromCharCode(160)+\"]+\",Da=R" "egExp(Ea,\"g\"),va=RegExp(\"^\"+Ea+\"$\");function wa(a){var b=1,c=R(a,\"" "opacity\");if(c)b=Number(c);if(a=Q(a))b*=wa(a);return b};var T={};T.b=fun" "ction(a,b){var c=B(b),d=k(a)?c.g.getElementById(a):a;if(!d)return null;if" "(P(d,\"id\")==a&&F(b,d))return d;c=G(c,\"*\");return x(c,function(f){retu" "rn P(f,\"id\")==a&&F(b,f)})};T.e=function(a,b){var c=G(B(b),\"*\",null,b)" ";return u(c,function(d){return P(d,\"id\")==a})};var U={},V={};U.i=functi" "on(a,b,c){b=G(B(b),\"A\",null,b);return x(b,function(d){d=Aa(d);return c&" "&d.indexOf(a)!=-1||d==a})};U.h=function(a,b,c){b=G(B(b),\"A\",null,b);ret" "urn u(b,function(d){d=Aa(d);return c&&d.indexOf(a)!=-1||d==a})};U.b=funct" "ion(a,b){return U.i(a,b,false)};U.e=function(a,b){return U.h(a,b,false)};" "V.b=function(a,b){return U.i(a,b,true)};V.e=function(a,b){return U.h(a,b," "true)};var W={};W.b=function(a,b){var c=G(B(b),\"*\",null,b);return x(c,f" "unction(d){return P(d,\"name\")==a})};W.e=function(a,b){var c=G(B(b),\"*" "\",null,b);return u(c,function(d){return P(d,\"name\")==a})};var X={};X.b" "=function(a,b){return G(B(b),a,null,b)[0]||null};X.e=function(a,b){return" " G(B(b),a,null,b)};var Fa={className:H,css:I,id:T,linkText:U,name:W,parti" "alLinkText:V,tagName:X,xpath:J};function Ga(a,b){var c;a:{for(c in a){c=c" ";break a}c=void 0}if(c){var d=Fa[c];if(d&&l(d.b))return d.b(a[c],b||D(n))" "}throw Error(\"Unsupported locator strategy: \"+c);}var Y=\"_\".split(\"." "\"),Z=h;!(Y[0]in Z)&&Z.execScript&&Z.execScript(\"var \"+Y[0]);for(var $;" "Y.length&&($=Y.shift());)if(!Y.length&&Ga!==undefined)Z[$]=Ga;else Z=Z[$]" "?Z[$]:Z[$]={};; return this._.apply(null,arguments);}.apply({navigator:ty" "peof window!='undefined'?window.navigator:null}, arguments);}"; const char* const FIND_ELEMENTS = "function(){return function(){var h=this;\nfunction j(a){var b=typeof a;if" "(b==\"object\")if(a){if(a instanceof Array)return\"array\";else if(a inst" "anceof Object)return b;var c=Object.prototype.toString.call(a);if(c==\"[o" "bject Window]\")return\"object\";if(c==\"[object Array]\"||typeof a.lengt" "h==\"number\"&&typeof a.splice!=\"undefined\"&&typeof a.propertyIsEnumera" "ble!=\"undefined\"&&!a.propertyIsEnumerable(\"splice\"))return\"array\";i" "f(c==\"[object Function]\"||typeof a.call!=\"undefined\"&&typeof a.proper" "tyIsEnumerable!=\"undefined\"&&!a.propertyIsEnumerable(\"call\"))return\"" "function\"}else return\"null\";else if(b==\n\"function\"&&typeof a.call==" "\"undefined\")return\"object\";return b}function k(a){return typeof a==\"" "string\"}function l(a){return j(a)==\"function\"}function m(a,b){function" " c(){}c.prototype=b.prototype;a.l=b.prototype;a.prototype=new c};var n=wi" "ndow;function o(a){this.stack=Error().stack||\"\";if(a)this.message=Strin" "g(a)}m(o,Error);o.prototype.name=\"CustomError\";function aa(a){for(var b" "=1;bb)return 1;return 0}var ba={};function ca(a){return ba[a]||(ba[a]=String" "(a).replace(/\\-([a-z])/g,function(b,c){return c.toUpperCase()}))};functi" "on r(a,b){b.unshift(a);o.call(this,aa.apply(null,b));b.shift();this.m=a}m" "(r,o);r.prototype.name=\"AssertionError\";function s(a,b){if(!a){var c=Ar" "ray.prototype.slice.call(arguments,2),d=\"Assertion failed\";if(b){d+=\":" " \"+b;var f=c}throw new r(\"\"+d,f||[]);}return a};var t=Array.prototype," "da=t.indexOf?function(a,b,c){s(a.length!=null);return t.indexOf.call(a,b," "c)}:function(a,b,c){c=c==null?0:c<0?Math.max(0,a.length+c):c;if(k(a)){if(" "!k(b)||b.length!=1)return-1;return a.indexOf(b,c)}for(c=c;c=0}d=d}d=d}d=d}d=d}" "if(d&&(b||c))c=a.querySelectorAll(b+(c?\".\"+c:\"\"));else if(c&&a.getEle" "mentsByClassName){a=a.getElementsByClassName(c);if(b){d={};e=f=0;for(;g=a" "[e];e++)if(b==g.nodeName)d[f++]=g;d.length=f;c=d}else c=a}else{a=a.getEle" "mentsByTagName(b||\"*\");if(c){d={};f=0;for(e=0;g=a[e];e++){b=g.className" ";if(typeof b.split==\"function\"&&da(b.split(/\\s+/),c)>=0)d[f++]=g}d.len" "gth=\nf;c=d}else c=a}return c}C.prototype.contains=F;var H={};H.d=functio" "n(a,b){if(!a)throw Error(\"No class name specified\");a=p(a);if(a.split(/" "\\s+/).length>1)throw Error(\"Compound class names not permitted\");var c" "=G(B(b),\"*\",a,b);return c.length?c[0]:null};H.b=function(a,b){if(!a)thr" "ow Error(\"No class name specified\");a=p(a);if(a.split(/\\s+/).length>1)" "throw Error(\"Compound class names not permitted\");return G(B(b),\"*\",a" ",b)};var I={};I.d=function(a,b){if(!l(b.querySelector)&&0)throw Error(\"C" "SS selection is not supported\");if(!a)throw Error(\"No selector specifie" "d\");if(a.split(/,/).length>1)throw Error(\"Compound selectors not permit" "ted\");a=p(a);var c=b.querySelector(a);return c&&c.nodeType==1?c:null};I." "b=function(a,b){if(!l(b.querySelectorAll)&&0)throw Error(\"CSS selection " "is not supported\");if(!a)throw Error(\"No selector specified\");if(a.spl" "it(/,/).length>1)throw Error(\"Compound selectors not permitted\");a=p(a)" ";return b.querySelectorAll(a)};function pa(a,b){if(typeof a.selectNodes!=" "\"undefined\"){var c=D(a);typeof c.setProperty!=\"undefined\"&&c.setPrope" "rty(\"SelectionLanguage\",\"XPath\");return a.selectNodes(b)}else if(docu" "ment.implementation.hasFeature(\"XPath\",\"3.0\")){c=D(a);var d=c.createN" "SResolver(c.documentElement);c=c.evaluate(b,a,d,XPathResult.ORDERED_NODE_" "SNAPSHOT_TYPE,null);d=[];var f=c.snapshotLength;for(var e=0;e=0;c--)a.parentNode&&a.parentNode.insertBefore(b[c],a.n" "extSibling);a&&a.parentNode&&a.parentNode.removeChild(a)};function N(a,b," "c,d){L.call(this,a,b,c,null,d)}m(N,L);N.prototype.next=function(){do N.l." "next.call(this);while(this.e==-1);return this.c};function ra(a,b){var c=D" "(a);if(c.defaultView&&c.defaultView.getComputedStyle)if(c=c.defaultView.g" "etComputedStyle(a,null))return c[b]||c.getPropertyValue(b);return\"\"};fu" "nction O(a,b){return!!a&&a.nodeType==1&&(!b||a.tagName.toUpperCase()==b)}" "\nvar sa=[\"async\",\"autofocus\",\"autoplay\",\"checked\",\"compact\",\"" "complete\",\"controls\",\"declare\",\"defaultchecked\",\"defaultselected" "\",\"defer\",\"disabled\",\"draggable\",\"ended\",\"formnovalidate\",\"hi" "dden\",\"indeterminate\",\"iscontenteditable\",\"ismap\",\"itemscope\",\"" "loop\",\"multiple\",\"muted\",\"nohref\",\"noresize\",\"noshade\",\"noval" "idate\",\"nowrap\",\"open\",\"paused\",\"pubdate\",\"readonly\",\"require" "d\",\"reversed\",\"scoped\",\"seamless\",\"seeking\",\"selected\",\"spell" "check\",\"truespeed\",\"willvalidate\"];\nfunction P(a,b){if(8==a.nodeTyp" "e)return null;b=b.toLowerCase();if(b==\"style\"){var c=p(a.style.cssText)" ".toLowerCase();return c.charAt(c.length-1)==\";\"?c:c+\";\"}c=a.getAttrib" "uteNode(b);if(!c)return null;if(da(sa,b)>=0)return\"true\";return c.speci" "fied?c.value:null}function Q(a){for(a=a.parentNode;a&&a.nodeType!=1&&a.no" "deType!=9&&a.nodeType!=11;)a=a.parentNode;return O(a)?a:null}function R(a" ",b){b=ca(String(b));return ra(a,b)||ta(a,b)}\nfunction ta(a,b){var c=(a.c" "urrentStyle||a.style)[b];if(c!=\"inherit\")return c!==undefined?c:null;re" "turn(c=Q(a))?ta(c,b):null}\nfunction ua(a){if(l(a.getBBox))return a.getBB" "ox();var b;if((ra(a,\"display\")||(a.currentStyle?a.currentStyle.display:" "null)||a.style.display)!=\"none\")b=new A(a.offsetWidth,a.offsetHeight);e" "lse{b=a.style;var c=b.display,d=b.visibility,f=b.position;b.visibility=\"" "hidden\";b.position=\"absolute\";b.display=\"inline\";var e;e=a.offsetWid" "th;a=a.offsetHeight;b.display=c;b.position=f;b.visibility=d;b=new A(e,a)}" "return b}\nfunction S(a,b){function c(e){if(R(e,\"display\")==\"none\")re" "turn false;e=Q(e);return!e||c(e)}function d(e){var g=ua(e);if(g.height>0&" "&g.width>0)return true;if(e.innerText||e.textContent)if(va.test(e.innerTe" "xt||e.textContent))return true;return y&&ga(e.childNodes,function(i){retu" "rn O(i)&&d(i)})}if(!O(a))throw Error(\"Argument to isShown must be of typ" "e Element\");if(O(a,\"TITLE\"))return(D(a)?D(a).parentWindow||D(a).defaul" "tView:window)==n;if(O(a,\"OPTION\")||O(a,\"OPTGROUP\")){var f=oa(a,functi" "on(e){return O(e,\n\"SELECT\")});return!!f&&S(f)}if(O(a,\"MAP\")){if(!a.n" "ame)return false;f=D(a);f=f.evaluate?J.d('/descendant::*[@usemap = \"#'+a" ".name+'\"]',f):ma(f,function(e){return O(e)&&P(e,\"usemap\")==\"#\"+a.nam" "e});return!!f&&S(f)}if(O(a,\"AREA\")){f=oa(a,function(e){return O(e,\"MAP" "\")});return!!f&&S(f)}if(O(a,\"INPUT\")&&a.type.toLowerCase()==\"hidden\"" ")return false;if(R(a,\"visibility\")==\"hidden\")return false;if(!c(a))re" "turn false;if(!b&&wa(a)==0)return false;if(!d(a))return false;return true" "}\nfunction Aa(a){var b=[\"\"];Ba(a,b);b=fa(b,p);return p(b.join(\"\\n\")" ")}function Ba(a,b){if(O(a,\"BR\"))b.push(\"\");else{var c=Ca(a);c&&b[b.le" "ngth-1]&&b.push(\"\");ea(a.childNodes,function(d){if(d.nodeType==3){var f" "=Q(d);if(f){S(f);if(f&&S(f)){d=d.nodeValue.replace(Da,\" \");f=b.pop();va" "r e=f.length-1;if(e>=0&&f.indexOf(\" \",e)==e&&d.lastIndexOf(\" \",0)==0)" "d=d.substr(1);b.push(f+d)}}}else O(d)&&Ba(d,b)});c&&b[b.length-1]&&b.push" "(\"\")}}function Ca(a){a=R(a,\"display\");return a==\"block\"||a==\"inlin" "e-block\"}\nvar Ea=\"[\\\\s\\\\xa0\"+String.fromCharCode(160)+\"]+\",Da=R" "egExp(Ea,\"g\"),va=RegExp(\"^\"+Ea+\"$\");function wa(a){var b=1,c=R(a,\"" "opacity\");if(c)b=Number(c);if(a=Q(a))b*=wa(a);return b};var T={};T.d=fun" "ction(a,b){var c=B(b),d=k(a)?c.g.getElementById(a):a;if(!d)return null;if" "(P(d,\"id\")==a&&F(b,d))return d;c=G(c,\"*\");return x(c,function(f){retu" "rn P(f,\"id\")==a&&F(b,f)})};T.b=function(a,b){var c=G(B(b),\"*\",null,b)" ";return u(c,function(d){return P(d,\"id\")==a})};var U={},V={};U.i=functi" "on(a,b,c){b=G(B(b),\"A\",null,b);return x(b,function(d){d=Aa(d);return c&" "&d.indexOf(a)!=-1||d==a})};U.h=function(a,b,c){b=G(B(b),\"A\",null,b);ret" "urn u(b,function(d){d=Aa(d);return c&&d.indexOf(a)!=-1||d==a})};U.d=funct" "ion(a,b){return U.i(a,b,false)};U.b=function(a,b){return U.h(a,b,false)};" "V.d=function(a,b){return U.i(a,b,true)};V.b=function(a,b){return U.h(a,b," "true)};var W={};W.d=function(a,b){var c=G(B(b),\"*\",null,b);return x(c,f" "unction(d){return P(d,\"name\")==a})};W.b=function(a,b){var c=G(B(b),\"*" "\",null,b);return u(c,function(d){return P(d,\"name\")==a})};var X={};X.d" "=function(a,b){return G(B(b),a,null,b)[0]||null};X.b=function(a,b){return" " G(B(b),a,null,b)};var Fa={className:H,css:I,id:T,linkText:U,name:W,parti" "alLinkText:V,tagName:X,xpath:J};function Ga(a,b){var c;a:{for(c in a){c=c" ";break a}c=void 0}if(c){var d=Fa[c];if(d&&l(d.b))return d.b(a[c],b||D(n))" "}throw Error(\"Unsupported locator strategy: \"+c);}var Y=\"_\".split(\"." "\"),Z=h;!(Y[0]in Z)&&Z.execScript&&Z.execScript(\"var \"+Y[0]);for(var $;" "Y.length&&($=Y.shift());)if(!Y.length&&Ga!==undefined)Z[$]=Ga;else Z=Z[$]" "?Z[$]:Z[$]={};; return this._.apply(null,arguments);}.apply({navigator:ty" "peof window!='undefined'?window.navigator:null}, arguments);}"; const char* const GET_ATTRIBUTE = "function(){return function(){function e(a){var c=typeof a;if(c==\"object" "\")if(a){if(a instanceof Array)return\"array\";else if(a instanceof Objec" "t)return c;var b=Object.prototype.toString.call(a);if(b==\"[object Window" "]\")return\"object\";if(b==\"[object Array]\"||typeof a.length==\"number" "\"&&typeof a.splice!=\"undefined\"&&typeof a.propertyIsEnumerable!=\"unde" "fined\"&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(b==\"[obj" "ect Function]\"||typeof a.call!=\"undefined\"&&typeof a.propertyIsEnumera" "ble!=\"undefined\"&&!a.propertyIsEnumerable(\"call\"))return\"function\"}" "else return\"null\";\nelse if(c==\"function\"&&typeof a.call==\"undefined" "\")return\"object\";return c}function f(a,c){function b(){}b.prototype=c." "prototype;a.g=c.prototype;a.prototype=new b};function h(a){this.stack=Err" "or().stack||\"\";if(a)this.message=String(a)}f(h,Error);function j(a){for" "(var c=1;c=0;b--)a.parentNode&&a.parentNode.insertBefore(c[b" "],a.nextSibling);a&&a.parentNode&&a.parentNode.removeChild(a)};function v" "(a,c,b,d){t.call(this,a,c,b,null,d)}f(v,t);v.prototype.next=function(){do" " v.g.next.call(this);while(this.c==-1);return this.b};var w={\"class\":\"" "className\",readonly:\"readOnly\"},x=[\"checked\",\"disabled\",\"draggabl" "e\",\"hidden\"],z=[\"async\",\"autofocus\",\"autoplay\",\"checked\",\"com" "pact\",\"complete\",\"controls\",\"declare\",\"defaultchecked\",\"default" "selected\",\"defer\",\"disabled\",\"draggable\",\"ended\",\"formnovalidat" "e\",\"hidden\",\"indeterminate\",\"iscontenteditable\",\"ismap\",\"itemsc" "ope\",\"loop\",\"multiple\",\"muted\",\"nohref\",\"noresize\",\"noshade\"" ",\"novalidate\",\"nowrap\",\"open\",\"paused\",\"pubdate\",\"readonly\"," "\"required\",\"reversed\",\"scoped\",\"seamless\",\"seeking\",\n\"selecte" "d\",\"spellcheck\",\"truespeed\",\"willvalidate\"];function A(a,c){if(8==" "a.nodeType)return null;c=c.toLowerCase();if(c==\"style\"){var b=a.style.c" "ssText.replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\").toLowerCase();return b." "charAt(b.length-1)==\";\"?b:b+\";\"}b=a.getAttributeNode(c);if(!b)return " "null;if(n(z,c)>=0)return\"true\";return b.specified?b.value:null}String.f" "romCharCode(160);/*\n\n Copyright 2010 WebDriver committers\n Copyright 2" "010 Google Inc.\n\n Licensed under the Apache License, Version 2.0 (the " "\"License\");\n you may not use this file except in compliance with the L" "icense.\n You may obtain a copy of the License at\n\n http://www.apache.o" "rg/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed t" "o in writing, software\n distributed under the License is distributed on " "an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, eithe" "r express or implied.\n See the License for the specific language governi" "ng permissions and\n limitations under the License.\n*/\nvar B=[\"checkbo" "x\",\"radio\"];function C(a){var c=a.tagName.toUpperCase();if(c==\"OPTION" "\")return true;if(c==\"INPUT\")if(n(B,a.type)>=0)return true;return false" "};function D(a,c){var b=null;b=c.toLowerCase();if(\"style\"==c.toLowerCas" "e()){if((b=a.style)&&typeof b!=\"string\")b=b.cssText;return b}if(\"selec" "ted\"==b||\"checked\"==b&&C(a)){var d;if(C(a)){d=\"selected\";b=a.type&&a" ".type.toLowerCase();if(\"checkbox\"==b||\"radio\"==b)d=\"checked\";d=!!a[" "d]}else d=false;return d?\"true\":null}var g=a.tagName&&\"A\"==a.tagName." "toUpperCase(),H=a.tagName&&\"IMG\"==a.tagName.toUpperCase();try{var i=w[c" "]||c,y=a[i];d=y===undefined&&n(x,i)>=0?false:y}catch(I){}if(!(i=b==\"href" "\"&&g)){if(!(b=b==\n\"src\"&&H)){if(!(b=d==null)){b=e(d);b=b==\"object\"|" "|b==\"array\"||b==\"function\"}b=b}i=b}b=i?A(a,c):d;return b!=null?b.toSt" "ring():null}var E=\"_\".split(\".\"),F=this;!(E[0]in F)&&F.execScript&&F." "execScript(\"var \"+E[0]);for(var G;E.length&&(G=E.shift());)if(!E.length" "&&D!==undefined)F[G]=D;else F=F[G]?F[G]:F[G]={};; return this._.apply(nul" "l,arguments);}.apply({navigator:typeof window!='undefined'?window.navigat" "or:null}, arguments);}"; const char* const GET_EFFECTIVE_STYLE = "function(){return function(){function e(b,c){function a(){}a.prototype=c." "prototype;b.g=c.prototype;b.prototype=new a};function f(b){this.stack=Err" "or().stack||\"\";if(b)this.message=String(b)}e(f,Error);function g(b){for" "(var c=1;ca.c" "lientWidth||a.scrollHeight>a.clientHeight||c==\"fixed\"||c==\"absolute\")" ")return a}return null};function t(a){var b=p(a),c=r(a,\"position\"),d=new" " o(0,0),n=(b?b.nodeType==9?b:p(b):document).documentElement;if(a==n)retur" "n d;if(a.getBoundingClientRect){a=a.getBoundingClientRect();b=(b?new q(p(" "b)):m||(m=new q)).a.body;b=new o(b.scrollLeft,b.scrollTop);d.x=a.left+b.x" ";d.y=a.top+b.y}else if(b.getBoxObjectFor){a=b.getBoxObjectFor(a);b=b.getB" "oxObjectFor(n);d.x=a.screenX-b.screenX;d.y=a.screenY-b.screenY}else{var e" "=a;do{d.x+=e.offsetLeft;d.y+=e.offsetTop;if(e!=a){d.x+=e.clientLeft||0;d." "y+=e.clientTop||\n0}if(r(e,\"position\")==\"fixed\"){d.x+=b.body.scrollLe" "ft;d.y+=b.body.scrollTop;break}e=e.offsetParent}while(e&&e!=a);if(c==\"ab" "solute\")d.y-=b.body.offsetTop;for(e=a;(e=s(e))&&e!=b.body&&e!=n;){d.x-=e" ".scrollLeft;d.y-=e.scrollTop}}return d}var u=\"_\".split(\".\"),v=f;!(u[0" "]in v)&&v.execScript&&v.execScript(\"var \"+u[0]);for(var w;u.length&&(w=" "u.shift());)if(!u.length&&t!==undefined)v[w]=t;else v=v[w]?v[w]:v[w]={};;" " return this._.apply(null,arguments);}.apply({navigator:typeof window!='u" "ndefined'?window.navigator:null}, arguments);}"; const char* const GET_LOCATION_IN_VIEW = "function(){return function(){var i=this;\nfunction k(a){var b=typeof a;if" "(b==\"object\")if(a){if(a instanceof Array)return\"array\";else if(a inst" "anceof Object)return b;var c=Object.prototype.toString.call(a);if(c==\"[o" "bject Window]\")return\"object\";if(c==\"[object Array]\"||typeof a.lengt" "h==\"number\"&&typeof a.splice!=\"undefined\"&&typeof a.propertyIsEnumera" "ble!=\"undefined\"&&!a.propertyIsEnumerable(\"splice\"))return\"array\";i" "f(c==\"[object Function]\"||typeof a.call!=\"undefined\"&&typeof a.proper" "tyIsEnumerable!=\"undefined\"&&!a.propertyIsEnumerable(\"call\"))return\"" "function\"}else return\"null\";else if(b==\n\"function\"&&typeof a.call==" "\"undefined\")return\"object\";return b}function m(a,b){function c(){}c.p" "rototype=b.prototype;a.i=b.prototype;a.prototype=new c};function n(a){thi" "s.stack=Error().stack||\"\";if(a)this.message=String(a)}m(n,Error);functi" "on o(a){for(var b=1;bb)return 1;return 0};m(function(a,b){b.unshift(a);" "n.call(this,o.apply(null,b));b.shift();this.j=a},n);var q,r=\"\",v;if(v=/" "WebKit\\/(\\S+)/){var w=v.exec(i.navigator?i.navigator.userAgent:null);r=" "w?w[1]:\"\"}q=r;var x={};var y;function z(a,b){this.x=a!==undefined?a:0;t" "his.y=b!==undefined?b:0}z.prototype.toString=function(){return\"(\"+this." "x+\", \"+this.y+\")\"};function C(a,b){this.width=a;this.height=b}C.proto" "type.toString=function(){return\"(\"+this.width+\" x \"+this.height+\")\"" "};function D(a){return a?new E(F(a)):y||(y=new E)}function F(a){return a." "nodeType==9?a:a.ownerDocument||a.document}function E(a){this.e=a||i.docum" "ent||document}function G(a){a=a.e.body;return new z(a.scrollLeft,a.scroll" "Top)};var H=\"StopIteration\"in i?i.StopIteration:Error(\"StopIteration\"" ");function I(){}I.prototype.next=function(){throw H;};function J(a,b,c,e," "f){this.a=!!b;a&&K(this,a,e);this.d=f!=undefined?f:this.c||0;if(this.a)th" "is.d*=-1;this.h=!c}m(J,I);J.prototype.b=null;J.prototype.c=0;J.prototype." "g=false;function K(a,b,c,e){if(a.b=b)a.c=typeof c==\"number\"?c:a.b.nodeT" "ype!=1?0:a.a?-1:1;if(typeof e==\"number\")a.d=e}\nJ.prototype.next=functi" "on(){var a;if(this.g){if(!this.b||this.h&&this.d==0)throw H;a=this.b;var " "b=this.a?-1:1;if(this.c==b){var c=this.a?a.lastChild:a.firstChild;c?K(thi" "s,c):K(this,a,b*-1)}else(c=this.a?a.previousSibling:a.nextSibling)?K(this" ",c):K(this,a.parentNode,b*-1);this.d+=this.c*(this.a?-1:1)}else this.g=tr" "ue;a=this.b;if(!this.b)throw H;return a};\nJ.prototype.splice=function(){" "var a=this.b,b=this.a?1:-1;if(this.c==b){this.c=b*-1;this.d+=this.c*(this" ".a?-1:1)}this.a=!this.a;J.prototype.next.call(this);this.a=!this.a;b=argu" "ments[0];var c=k(b);b=c==\"array\"||c==\"object\"&&typeof b.length==\"num" "ber\"?arguments[0]:arguments;for(c=b.length-1;c>=0;c--)a.parentNode&&a.pa" "rentNode.insertBefore(b[c],a.nextSibling);a&&a.parentNode&&a.parentNode.r" "emoveChild(a)};function L(a,b,c,e){J.call(this,a,b,c,null,e)}m(L,J);L.pro" "totype.next=function(){do L.i.next.call(this);while(this.c==-1);return th" "is.b};function M(a,b,c,e){this.top=a;this.right=b;this.bottom=c;this.left" "=e}M.prototype.toString=function(){return\"(\"+this.top+\"t, \"+this.righ" "t+\"r, \"+this.bottom+\"b, \"+this.left+\"l)\"};function N(a,b,c,e){this." "left=a;this.top=b;this.width=c;this.height=e}N.prototype.toString=functio" "n(){return\"(\"+this.left+\", \"+this.top+\" - \"+this.width+\"w x \"+thi" "s.height+\"h)\"};function O(a,b){var c=F(a);if(c.defaultView&&c.defaultVi" "ew.getComputedStyle)if(c=c.defaultView.getComputedStyle(a,null))return c[" "b]||c.getPropertyValue(b);return\"\"}function P(a,b){return O(a,b)||(a.cu" "rrentStyle?a.currentStyle[b]:null)||a.style[b]}\nfunction Q(a){var b=F(a)" ",c=P(a,\"position\"),e=c==\"fixed\"||c==\"absolute\";for(a=a.parentNode;a" "&&a!=b;a=a.parentNode){c=P(a,\"position\");e=e&&c==\"static\"&&a!=b.docum" "entElement&&a!=b.body;if(!e&&(a.scrollWidth>a.clientWidth||a.scrollHeight" ">a.clientHeight||c==\"fixed\"||c==\"absolute\"))return a}return null}\nfu" "nction R(a){var b=F(a),c=P(a,\"position\"),e=new z(0,0),f=(b?b.nodeType==" "9?b:F(b):document).documentElement;if(a==f)return e;if(a.getBoundingClien" "tRect){a=a.getBoundingClientRect();b=G(D(b));e.x=a.left+b.x;e.y=a.top+b.y" "}else if(b.getBoxObjectFor){a=b.getBoxObjectFor(a);b=b.getBoxObjectFor(f)" ";e.x=a.screenX-b.screenX;e.y=a.screenY-b.screenY}else{var d=a;do{e.x+=d.o" "ffsetLeft;e.y+=d.offsetTop;if(d!=a){e.x+=d.clientLeft||0;e.y+=d.clientTop" "||0}if(P(d,\"position\")==\"fixed\"){e.x+=b.body.scrollLeft;e.y+=b.body.s" "crollTop;\nbreak}d=d.offsetParent}while(d&&d!=a);if(c==\"absolute\")e.y-=" "b.body.offsetTop;for(d=a;(d=Q(d))&&d!=b.body&&d!=f;){e.x-=d.scrollLeft;e." "y-=d.scrollTop}}return e};String.fromCharCode(160);function S(a,b){b.scro" "llLeft+=Math.min(a.left,Math.max(a.left-a.width,0));b.scrollTop+=Math.min" "(a.top,Math.max(a.top-a.height,0))};function T(a,b){var c;c=b?new N(b.lef" "t,b.top,b.width,b.height):new N(0,0,a.offsetWidth,a.offsetHeight);var e=F" "(a);for(var f=a.parentNode;f&&f!=e.body&&f!=e.documentElement;){var d=c,g" "=f,h=R(a),s=R(g),j=void 0;j=void 0;var A=void 0,l=void 0,B=void 0;B=O(g," "\"borderLeftWidth\");l=O(g,\"borderRightWidth\");A=O(g,\"borderTopWidth\"" ");j=O(g,\"borderBottomWidth\");j=new M(parseFloat(A),parseFloat(l),parseF" "loat(j),parseFloat(B));S(new N(h.x+d.left-s.x-j.left,h.y+d.top-s.y-j.top," "g.clientWidth-d.width,g.clientHeight-\nd.height),g);f=f.parentNode}f=R(a)" ";d=D(e);d=d.e.parentWindow||d.e.defaultView||window;g=d.document;if(!(h=x" "[\"500\"])){h=0;s=String(q).replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\").sp" "lit(\".\");j=String(\"500\").replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\").s" "plit(\".\");A=Math.max(s.length,j.length);for(l=0;h==0&&l=0}if(h)" "{d=g.compatMode==\"CSS1Compat\"?g.documentElement:g.body;d=new C(d.client" "Width,d.clientHeight)}else{if(typeof d.innerHeight==\"undefined\")d=windo" "w;g=d.innerHeight;h=d.document.documentElement.scrollHeight;if(d==d.top)i" "f(h=0;c--)a.parentNode&&a.parentNode.insertBefore(b[c],a" ".nextSibling);a&&a.parentNode&&a.parentNode.removeChild(a)};function L(a," "b,c,e){J.call(this,a,b,c,null,e)}j(L,J);L.prototype.next=function(){do L." "g.next.call(this);while(this.c==-1);return this.b};function N(a,b){var c=" "C(a);if(c.defaultView&&c.defaultView.getComputedStyle)if(c=c.defaultView." "getComputedStyle(a,null))return c[b]||c.getPropertyValue(b);return\"\"};f" "unction O(a,b){return!!a&&a.nodeType==1&&(!b||a.tagName.toUpperCase()==b)" "}\nvar P=[\"async\",\"autofocus\",\"autoplay\",\"checked\",\"compact\",\"" "complete\",\"controls\",\"declare\",\"defaultchecked\",\"defaultselected" "\",\"defer\",\"disabled\",\"draggable\",\"ended\",\"formnovalidate\",\"hi" "dden\",\"indeterminate\",\"iscontenteditable\",\"ismap\",\"itemscope\",\"" "loop\",\"multiple\",\"muted\",\"nohref\",\"noresize\",\"noshade\",\"noval" "idate\",\"nowrap\",\"open\",\"paused\",\"pubdate\",\"readonly\",\"require" "d\",\"reversed\",\"scoped\",\"seamless\",\"seeking\",\"selected\",\"spell" "check\",\"truespeed\",\"willvalidate\"];\nfunction aa(a,b){if(8==a.nodeTy" "pe)return null;b=b.toLowerCase();if(b==\"style\"){var c=n(a.style.cssText" ").toLowerCase();return c.charAt(c.length-1)==\";\"?c:c+\";\"}c=a.getAttri" "buteNode(b);if(!c)return null;if(t(P,b)>=0)return\"true\";return c.specif" "ied?c.value:null}function Q(a){for(a=a.parentNode;a&&a.nodeType!=1&&a.nod" "eType!=9&&a.nodeType!=11;)a=a.parentNode;return O(a)?a:null}function R(a," "b){b=p(String(b));return N(a,b)||S(a,b)}\nfunction S(a,b){var c=(a.curren" "tStyle||a.style)[b];if(c!=\"inherit\")return c!==undefined?c:null;return(" "c=Q(a))?S(c,b):null}\nfunction ba(a){if(g(a.getBBox)==\"function\")return" " a.getBBox();var b;if((N(a,\"display\")||(a.currentStyle?a.currentStyle.d" "isplay:null)||a.style.display)!=\"none\")b=new B(a.offsetWidth,a.offsetHe" "ight);else{b=a.style;var c=b.display,e=b.visibility,f=b.position;b.visibi" "lity=\"hidden\";b.position=\"absolute\";b.display=\"inline\";var d;d=a.of" "fsetWidth;a=a.offsetHeight;b.display=c;b.position=f;b.visibility=e;b=new " "B(d,a)}return b}\nfunction T(a,b){function c(d){if(R(d,\"display\")==\"no" "ne\")return false;d=Q(d);return!d||c(d)}function e(d){var h=ba(d);if(h.he" "ight>0&&h.width>0)return true;if(d.innerText||d.textContent)if(ca.test(d." "innerText||d.textContent))return true;return x&&w(d.childNodes,function(M" "){return O(M)&&e(M)})}if(!O(a))throw Error(\"Argument to isShown must be " "of type Element\");if(O(a,\"TITLE\"))return(C(a)?C(a).parentWindow||C(a)." "defaultView:window)==k;if(O(a,\"OPTION\")||O(a,\"OPTGROUP\")){var f=F(a,f" "unction(d){return O(d,\n\"SELECT\")});return!!f&&T(f)}if(O(a,\"MAP\")){if" "(!a.name)return false;f=C(a);f=f.evaluate?G('/descendant::*[@usemap = \"#" "'+a.name+'\"]',f):D(f,function(d){return O(d)&&aa(d,\"usemap\")==\"#\"+a." "name});return!!f&&T(f)}if(O(a,\"AREA\")){f=F(a,function(d){return O(d,\"M" "AP\")});return!!f&&T(f)}if(O(a,\"INPUT\")&&a.type.toLowerCase()==\"hidden" "\")return false;if(R(a,\"visibility\")==\"hidden\")return false;if(!c(a))" "return false;if(!b&&U(a)==0)return false;if(!e(a))return false;return tru" "e}\nfunction V(a,b){if(O(a,\"BR\"))b.push(\"\");else{var c=da(a);c&&b[b.l" "ength-1]&&b.push(\"\");u(a.childNodes,function(e){if(e.nodeType==3){var f" "=Q(e);if(f){T(f);if(f&&T(f)){e=e.nodeValue.replace(ea,\" \");f=b.pop();va" "r d=f.length-1;if(d>=0&&f.indexOf(\" \",d)==d&&e.lastIndexOf(\" \",0)==0)" "e=e.substr(1);b.push(f+e)}}}else O(e)&&V(e,b)});c&&b[b.length-1]&&b.push(" "\"\")}}function da(a){a=R(a,\"display\");return a==\"block\"||a==\"inline" "-block\"}\nvar W=\"[\\\\s\\\\xa0\"+String.fromCharCode(160)+\"]+\",ea=Reg" "Exp(W,\"g\"),ca=RegExp(\"^\"+W+\"$\");function U(a){var b=1,c=R(a,\"opaci" "ty\");if(c)b=Number(c);if(a=Q(a))b*=U(a);return b};/*\n\n Copyright 2010 " "WebDriver committers\n Copyright 2010 Google Inc.\n\n Licensed under the " "Apache License, Version 2.0 (the \"License\");\n you may not use this fil" "e except in compliance with the License.\n You may obtain a copy of the L" "icense at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless requi" "red by applicable law or agreed to in writing, software\n distributed und" "er the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES" " OR CONDITIONS OF ANY KIND, either express or implied.\n See the License " "for the specific language governing permissions and\n limitations under t" "he License.\n*/\nfunction fa(a){for(;a;){if(a.tagName&&a.tagName.toLowerC" "ase()==\"head\")return true;try{a=a.parentNode}catch(b){return false}}ret" "urn false};function X(a){if(fa(a)){var b=C(a);if(a.tagName.toUpperCase()=" "=\"TITLE\"&&(b?b.parentWindow||b.defaultView:window)==k.top)return n(b.ti" "tle);return\"\"}b=[\"\"];V(a,b);b=v(b,n);return n(b.join(\"\\n\"))}var Y=" "\"_\".split(\".\"),Z=this;!(Y[0]in Z)&&Z.execScript&&Z.execScript(\"var " "\"+Y[0]);for(var $;Y.length&&($=Y.shift());)if(!Y.length&&X!==undefined)Z" "[$]=X;else Z=Z[$]?Z[$]:Z[$]={};; return this._.apply(null,arguments);}.ap" "ply({navigator:typeof window!='undefined'?window.navigator:null}, argumen" "ts);}"; const char* const IS_DISPLAYED = "function(){return function(){function g(a){var b=typeof a;if(b==\"object" "\")if(a){if(a instanceof Array)return\"array\";else if(a instanceof Objec" "t)return b;var c=Object.prototype.toString.call(a);if(c==\"[object Window" "]\")return\"object\";if(c==\"[object Array]\"||typeof a.length==\"number" "\"&&typeof a.splice!=\"undefined\"&&typeof a.propertyIsEnumerable!=\"unde" "fined\"&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(c==\"[obj" "ect Function]\"||typeof a.call!=\"undefined\"&&typeof a.propertyIsEnumera" "ble!=\"undefined\"&&!a.propertyIsEnumerable(\"call\"))return\"function\"}" "else return\"null\";\nelse if(b==\"function\"&&typeof a.call==\"undefined" "\")return\"object\";return b}function h(a,b){function c(){}c.prototype=b." "prototype;a.g=b.prototype;a.prototype=new c};var i=window;function j(a){t" "his.stack=Error().stack||\"\";if(a)this.message=String(a)}h(j,Error);j.pr" "ototype.name=\"CustomError\";function k(a){for(var b=1;b=0;c--)a.parentNode&&a.parentNode.insertBe" "fore(b[c],a.nextSibling);a&&a.parentNode&&a.parentNode.removeChild(a)};fu" "nction G(a,b,c,f){E.call(this,a,b,c,null,f)}h(G,E);G.prototype.next=funct" "ion(){do G.g.next.call(this);while(this.c==-1);return this.b};function H(" "a,b){var c=x(a);if(c.defaultView&&c.defaultView.getComputedStyle)if(c=c.d" "efaultView.getComputedStyle(a,null))return c[b]||c.getPropertyValue(b);re" "turn\"\"};function K(a,b){return!!a&&a.nodeType==1&&(!b||a.tagName.toUppe" "rCase()==b)}\nvar L=[\"async\",\"autofocus\",\"autoplay\",\"checked\",\"c" "ompact\",\"complete\",\"controls\",\"declare\",\"defaultchecked\",\"defau" "ltselected\",\"defer\",\"disabled\",\"draggable\",\"ended\",\"formnovalid" "ate\",\"hidden\",\"indeterminate\",\"iscontenteditable\",\"ismap\",\"item" "scope\",\"loop\",\"multiple\",\"muted\",\"nohref\",\"noresize\",\"noshade" "\",\"novalidate\",\"nowrap\",\"open\",\"paused\",\"pubdate\",\"readonly\"" ",\"required\",\"reversed\",\"scoped\",\"seamless\",\"seeking\",\"selected" "\",\"spellcheck\",\"truespeed\",\"willvalidate\"];\nfunction M(a,b){if(8=" "=a.nodeType)return null;b=b.toLowerCase();if(b==\"style\"){var c=a.style." "cssText.replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\").toLowerCase();return c" ".charAt(c.length-1)==\";\"?c:c+\";\"}c=a.getAttributeNode(b);if(!c)return" " null;if(q(L,b)>=0)return\"true\";return c.specified?c.value:null}functio" "n N(a){for(a=a.parentNode;a&&a.nodeType!=1&&a.nodeType!=9&&a.nodeType!=11" ";)a=a.parentNode;return K(a)?a:null}function O(a,b){b=m(String(b));return" " H(a,b)||P(a,b)}\nfunction P(a,b){var c=(a.currentStyle||a.style)[b];if(c" "!=\"inherit\")return c!==undefined?c:null;return(c=N(a))?P(c,b):null}\nfu" "nction Q(a){if(g(a.getBBox)==\"function\")return a.getBBox();var b;if((H(" "a,\"display\")||(a.currentStyle?a.currentStyle.display:null)||a.style.dis" "play)!=\"none\")b=new w(a.offsetWidth,a.offsetHeight);else{b=a.style;var " "c=b.display,f=b.visibility,e=b.position;b.visibility=\"hidden\";b.positio" "n=\"absolute\";b.display=\"inline\";var d;d=a.offsetWidth;a=a.offsetHeigh" "t;b.display=c;b.position=e;b.visibility=f;b=new w(d,a)}return b}\nfunctio" "n R(a,b){function c(d){if(O(d,\"display\")==\"none\")return false;d=N(d);" "return!d||c(d)}function f(d){var I=Q(d);if(I.height>0&&I.width>0)return t" "rue;if(d.innerText||d.textContent)if(S.test(d.innerText||d.textContent))r" "eturn true;return s&&r(d.childNodes,function(J){return K(J)&&f(J)})}if(!K" "(a))throw Error(\"Argument to isShown must be of type Element\");if(K(a," "\"TITLE\"))return(x(a)?x(a).parentWindow||x(a).defaultView:window)==i;if(" "K(a,\"OPTION\")||K(a,\"OPTGROUP\")){var e=A(a,function(d){return K(d,\n\"" "SELECT\")});return!!e&&R(e)}if(K(a,\"MAP\")){if(!a.name)return false;e=x(" "a);e=e.evaluate?B('/descendant::*[@usemap = \"#'+a.name+'\"]',e):y(e,func" "tion(d){return K(d)&&M(d,\"usemap\")==\"#\"+a.name});return!!e&&R(e)}if(K" "(a,\"AREA\")){e=A(a,function(d){return K(d,\"MAP\")});return!!e&&R(e)}if(" "K(a,\"INPUT\")&&a.type.toLowerCase()==\"hidden\")return false;if(O(a,\"vi" "sibility\")==\"hidden\")return false;if(!c(a))return false;if(!b&&T(a)==0" ")return false;if(!f(a))return false;return true}\nvar U=\"[\\\\s\\\\xa0\"" "+String.fromCharCode(160)+\"]+\",S=RegExp(\"^\"+U+\"$\");function T(a){va" "r b=1,c=O(a,\"opacity\");if(c)b=Number(c);if(a=N(a))b*=T(a);return b};var" " V=R,W=\"_\".split(\".\"),X=this;!(W[0]in X)&&X.execScript&&X.execScript(" "\"var \"+W[0]);for(var Y;W.length&&(Y=W.shift());)if(!W.length&&V!==undef" "ined)X[Y]=V;else X=X[Y]?X[Y]:X[Y]={};; return this._.apply(null,arguments" ");}.apply({navigator:typeof window!='undefined'?window.navigator:null}, a" "rguments);}"; const char* const IS_ENABLED = "function(){return function(){function d(a,c){function b(){}b.prototype=c." "prototype;a.g=c.prototype;a.prototype=new b};function f(a){this.stack=Err" "or().stack||\"\";if(a)this.message=String(a)}d(f,Error);function g(a){for" "(var c=1;c=0)return\"true\";return b.specified?b.value:null}var s=[\"BUTTON" "\",\"INPUT\",\"OPTGROUP\",\"OPTION\",\"SELECT\",\"TEXTAREA\"];\nfunction " "t(a){var c=a.tagName.toUpperCase();if(!(l(s,c)>=0))return true;if(r(a,\"d" "isabled\"))return false;if(a.parentNode&&a.parentNode.nodeType==1&&\"OPTG" "ROUP\"==c||\"OPTION\"==c)return t(a.parentNode);return true}String.fromCh" "arCode(160);var u=t,v=\"_\".split(\".\"),w=this;!(v[0]in w)&&w.execScript" "&&w.execScript(\"var \"+v[0]);for(var x;v.length&&(x=v.shift());)if(!v.le" "ngth&&u!==undefined)w[x]=u;else w=w[x]?w[x]:w[x]={};; return this._.apply" "(null,arguments);}.apply({navigator:typeof window!='undefined'?window.nav" "igator:null}, arguments);}"; const char* const IS_SELECTED = "function(){return function(){function d(a,b){function c(){}c.prototype=b." "prototype;a.g=b.prototype;a.prototype=new c};function f(a){this.stack=Err" "or().stack||\"\";if(a)this.message=String(a)}d(f,Error);function g(a){for" "(var b=1;b=0){b=tru" "e;break a}b=false}}if(!b)return false;b=\"selected\";var c=a.type&&a.type" ".toLowerCase();if(\"checkbox\"==c||\"radio\"==c)b=\"checked\";return!!a[b" "]}var s=\"_\".split(\".\"),t=this;!(s[0]in t)&&t.execScript&&t.execScript" "(\"var \"+s[0]);for(var u;s.length&&(u=s.shift());)if(!s.length&&r!==unde" "fined)t[u]=r;else t=t[u]?t[u]:t[u]={};; return this._.apply(null,argument" "s);}.apply({navigator:typeof window!='undefined'?window.navigator:null}, " "arguments);}"; const char* const SET_SELECTED = "function(){return function(){var l=this;\nfunction m(a){var b=typeof a;if" "(b==\"object\")if(a){if(a instanceof Array)return\"array\";else if(a inst" "anceof Object)return b;var c=Object.prototype.toString.call(a);if(c==\"[o" "bject Window]\")return\"object\";if(c==\"[object Array]\"||typeof a.lengt" "h==\"number\"&&typeof a.splice!=\"undefined\"&&typeof a.propertyIsEnumera" "ble!=\"undefined\"&&!a.propertyIsEnumerable(\"splice\"))return\"array\";i" "f(c==\"[object Function]\"||typeof a.call!=\"undefined\"&&typeof a.proper" "tyIsEnumerable!=\"undefined\"&&!a.propertyIsEnumerable(\"call\"))return\"" "function\"}else return\"null\";else if(b==\n\"function\"&&typeof a.call==" "\"undefined\")return\"object\";return b}Math.floor(Math.random()*21474836" "48).toString(36);function o(a,b){function c(){}c.prototype=b.prototype;a." "i=b.prototype;a.prototype=new c};function p(a){this.stack=Error().stack||" "\"\";if(a)this.message=String(a)}o(p,Error);p.prototype.name=\"CustomErro" "r\";function q(a,b){p.call(this,b);this.code=a;this.name=r[a]||r[13]}o(q," "p);var r,t={NoSuchElementError:7,NoSuchFrameError:8,UnknownCommandError:9" ",StaleElementReferenceError:10,ElementNotVisibleError:11,InvalidElementSt" "ateError:12,UnknownError:13,ElementNotSelectableError:15,XPathLookupError" ":19,NoSuchWindowError:23,InvalidCookieDomainError:24,UnableToSetCookieErr" "or:25,ModalDialogOpenedError:26,ModalDialogOpenError:27,ScriptTimeoutErro" "r:28},u={};for(var v in t)u[t[v]]=v;r=u;\nq.prototype.toString=function()" "{return\"[\"+this.name+\"] \"+this.message};var aa=window;function ba(a){" "for(var b=1;b=0;c--)a.parentNode&&a.parentNo" "de.insertBefore(b[c],a.nextSibling);a&&a.parentNode&&a.parentNode.removeC" "hild(a)};function P(a,b,c,d){N.call(this,a,b,c,null,d)}o(P,N);P.prototype" ".next=function(){do P.i.next.call(this);while(this.c==-1);return this.b};" "function ia(a,b){var c=H(a);if(c.defaultView&&c.defaultView.getComputedSt" "yle)if(c=c.defaultView.getComputedStyle(a,null))return c[b]||c.getPropert" "yValue(b);return\"\"}function Q(a,b){return ia(a,b)||(a.currentStyle?a.cu" "rrentStyle[b]:null)||a.style[b]}\nfunction ja(a){var b=H(a),c=Q(a,\"posit" "ion\"),d=c==\"fixed\"||c==\"absolute\";for(a=a.parentNode;a&&a!=b;a=a.par" "entNode){c=Q(a,\"position\");d=d&&c==\"static\"&&a!=b.documentElement&&a!" "=b.body;if(!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeigh" "t||c==\"fixed\"||c==\"absolute\"))return a}return null};function R(a,b){r" "eturn!!a&&a.nodeType==1&&(!b||a.tagName.toUpperCase()==b)}\nvar ka={\"cla" "ss\":\"className\",readonly:\"readOnly\"},la=[\"checked\",\"disabled\",\"" "draggable\",\"hidden\"],ma=[\"async\",\"autofocus\",\"autoplay\",\"checke" "d\",\"compact\",\"complete\",\"controls\",\"declare\",\"defaultchecked\"," "\"defaultselected\",\"defer\",\"disabled\",\"draggable\",\"ended\",\"form" "novalidate\",\"hidden\",\"indeterminate\",\"iscontenteditable\",\"ismap\"" ",\"itemscope\",\"loop\",\"multiple\",\"muted\",\"nohref\",\"noresize\",\"" "noshade\",\"novalidate\",\"nowrap\",\"open\",\"paused\",\"pubdate\",\"rea" "donly\",\"required\",\"reversed\",\"scoped\",\"seamless\",\"seeking\",\n" "\"selected\",\"spellcheck\",\"truespeed\",\"willvalidate\"];function na(a" ",b){if(8==a.nodeType)return null;b=b.toLowerCase();if(b==\"style\"){var c" "=a.style.cssText.replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\").toLowerCase()" ";return c.charAt(c.length-1)==\";\"?c:c+\";\"}c=a.getAttributeNode(b);if(" "!c)return null;if(A(ma,b)>=0)return\"true\";return c.specified?c.value:nu" "ll}var oa=[\"BUTTON\",\"INPUT\",\"OPTGROUP\",\"OPTION\",\"SELECT\",\"TEXT" "AREA\"];\nfunction pa(a){var b=a.tagName.toUpperCase();if(!(A(oa,b)>=0))r" "eturn true;if(na(a,\"disabled\"))return false;if(a.parentNode&&a.parentNo" "de.nodeType==1&&\"OPTGROUP\"==b||\"OPTION\"==b)return pa(a.parentNode);re" "turn true}function S(a){for(a=a.parentNode;a&&a.nodeType!=1&&a.nodeType!=" "9&&a.nodeType!=11;)a=a.parentNode;return R(a)?a:null}function T(a,b){b=ca" "(String(b));return ia(a,b)||qa(a,b)}\nfunction qa(a,b){var c=(a.currentSt" "yle||a.style)[b];if(c!=\"inherit\")return c!==undefined?c:null;return(c=S" "(a))?qa(c,b):null}function ra(a){if(m(a.getBBox)==\"function\")return a.g" "etBBox();var b;if(Q(a,\"display\")!=\"none\")b=new G(a.offsetWidth,a.offs" "etHeight);else{b=a.style;var c=b.display,d=b.visibility,f=b.position;b.vi" "sibility=\"hidden\";b.position=\"absolute\";b.display=\"inline\";var e;e=" "a.offsetWidth;a=a.offsetHeight;b.display=c;b.position=f;b.visibility=d;b=" "new G(e,a)}return b}\nfunction U(a,b){function c(e){if(T(e,\"display\")==" "\"none\")return false;e=S(e);return!e||c(e)}function d(e){var k=ra(e);if(" "k.height>0&&k.width>0)return true;if(e.innerText||e.textContent)if(sa.tes" "t(e.innerText||e.textContent))return true;return B&&da(e.childNodes,funct" "ion(j){return R(j)&&d(j)})}if(!R(a))throw Error(\"Argument to isShown mus" "t be of type Element\");if(R(a,\"TITLE\"))return(H(a)?H(a).parentWindow||" "H(a).defaultView:window)==aa;if(R(a,\"OPTION\")||R(a,\"OPTGROUP\")){var f" "=J(a,function(e){return R(e,\n\"SELECT\")});return!!f&&U(f)}if(R(a,\"MAP" "\")){if(!a.name)return false;f=H(a);f=f.evaluate?ga('/descendant::*[@usem" "ap = \"#'+a.name+'\"]',f):fa(f,function(e){return R(e)&&na(e,\"usemap\")=" "=\"#\"+a.name});return!!f&&U(f)}if(R(a,\"AREA\")){f=J(a,function(e){retur" "n R(e,\"MAP\")});return!!f&&U(f)}if(R(a,\"INPUT\")&&a.type.toLowerCase()=" "=\"hidden\")return false;if(T(a,\"visibility\")==\"hidden\")return false;" "if(!c(a))return false;if(!b&&ta(a)==0)return false;if(!d(a))return false;" "return true}\nvar ua=\"[\\\\s\\\\xa0\"+String.fromCharCode(160)+\"]+\",sa" "=RegExp(\"^\"+ua+\"$\");function ta(a){var b=1,c=T(a,\"opacity\");if(c)b=" "Number(c);if(a=S(a))b*=ta(a);return b};var va=[\"dragstart\",\"dragexit\"" ",\"mouseover\",\"mouseout\"];\nfunction V(a,b,c){var d=H(a),f=d?d.parentW" "indow||d.defaultView:window,e=new F;if(a.nodeType==1)if(a.getBoundingClie" "ntRect){var k=a.getBoundingClientRect();e.x=k.left;e.y=k.top}else{k=L(a?n" "ew K(H(a)):E||(E=new K));var j,g=H(a);j=Q(a,\"position\");var h=new F(0,0" "),s=(g?g.nodeType==9?g:H(g):document).documentElement;if(a!=s)if(a.getBou" "ndingClientRect){j=a.getBoundingClientRect();g=L(g?new K(H(g)):E||(E=new " "K));h.x=j.left+g.x;h.y=j.top+g.y}else if(g.getBoxObjectFor){j=g.getBoxObj" "ectFor(a);g=g.getBoxObjectFor(s);\nh.x=j.screenX-g.screenX;h.y=j.screenY-" "g.screenY}else{var i=a;do{h.x+=i.offsetLeft;h.y+=i.offsetTop;if(i!=a){h.x" "+=i.clientLeft||0;h.y+=i.clientTop||0}if(B&&Q(i,\"position\")==\"fixed\")" "{h.x+=g.body.scrollLeft;h.y+=g.body.scrollTop;break}i=i.offsetParent}whil" "e(i&&i!=a);if(B&&j==\"absolute\")h.y-=g.body.offsetTop;for(i=a;(i=ja(i))&" "&i!=g.body&&i!=s;){h.x-=i.scrollLeft;h.y-=i.scrollTop}}e.x=h.x-k.x;e.y=h." "y-k.y}else{k=m(a.f)==\"function\";h=a;if(a.targetTouches)h=a.targetTouche" "s[0];else if(k&&a.f().targetTouches)h=\na.f().targetTouches[0];e.x=h.clie" "ntX;e.y=h.clientY}var n=c||{};c=(n.x||0)+e.x;e=(n.y||0)+e.y;k=n.button||0" ";h=n.bubble||true;j=null;if(A(va,b)>=0)j=n.related||null;g=!!n.alt;s=!!n." "control;i=!!n.shift;n=!!n.meta;if(a.fireEvent&&d&&d.createEventObject){a=" "d.createEventObject();a.altKey=g;a.j=s;a.metaKey=n;a.shiftKey=i;a.clientX" "=c;a.clientY=e;a.button=k;a.relatedTarget=j}else{a=d.createEvent(\"MouseE" "vents\");if(a.initMouseEvent)a.initMouseEvent(b,h,true,f,1,0,0,c,e,s,g,i," "n,k,j);else{a.initEvent(b,h,true);\na.shiftKey=i;a.metaKey=n;a.altKey=g;a" ".ctrlKey=s;a.button=k}}return a}function W(a,b,c){var d=c||{};c=d.keyCode" "||0;var f=d.charCode||0,e=!!d.alt,k=!!d.ctrl,j=!!d.shift;d=!!d.meta;a=H(a" ").createEvent(\"Events\");a.initEvent(b,true,true);a.charCode=f;a.keyCode" "=c;a.altKey=e;a.ctrlKey=k;a.metaKey=d;a.shiftKey=j;return a}\nfunction wa" "(a,b,c){var d=H(a),f=c||{};c=f.bubble!==false;var e=!!f.alt,k=!!f.control" ",j=!!f.shift;f=!!f.meta;if(a.fireEvent&&d&&d.createEventObject){a=d.creat" "eEventObject();a.altKey=e;a.k=k;a.metaKey=f;a.shiftKey=j}else{a=d.createE" "vent(\"HTMLEvents\");a.initEvent(b,c,true);a.shiftKey=j;a.metaKey=f;a.alt" "Key=e;a.ctrlKey=k}return a}var X={};X.click=V;X.keydown=W;X.keypress=W;X." "keyup=W;X.mousedown=V;X.mousemove=V;X.mouseout=V;X.mouseover=V;X.mouseup=" "V;\nfunction xa(a,b,c){c=(X[b]||wa)(a,b,c);var d;if(!(d=m(a.fireEvent)==" "\"function\")){d=m(a.fireEvent);d=d==\"object\"||d==\"array\"||d==\"funct" "ion\"}if(d){try{(H(a)?H(a).parentWindow||H(a).defaultView:window).event=c" "}catch(f){}a=a.fireEvent(\"on\"+b,c)}else a=a.dispatchEvent(c);return a};" "function ya(a){var b;if(R(a,\"OPTION\"))b=true;else if(R(a,\"INPUT\")){b=" "a.type.toLowerCase();b=b==\"checkbox\"||b==\"radio\"}else b=false;if(!b)t" "hrow new q(15,\"Element is not selectable\");b=\"selected\";var c=a.type&" "&a.type.toLowerCase();if(\"checkbox\"==c||\"radio\"==c)b=\"checked\";b=ka" "[b]||b;a=a[b];a=a===undefined&&A(la,b)>=0?false:a;return!!a}function za(a" "){return R(a,\"SELECT\")};function Aa(a,b){if(!pa(a))throw new q(12,\"Ele" "ment is not currently enabled and may not be manipulated\");if(!U(a,true)" ")throw new q(11,\"Element is not currently visible and may not be manipul" "ated\");if(R(a,\"INPUT\")){var c=a.type.toLowerCase();if(c==\"checkbox\"|" "|c==\"radio\"){if(a.checked!=b){if(a.type==\"radio\"&&!b)throw new q(12," "\"You may not deselect a radio button\");if(b!=ya(a)){a.checked=b;xa(a,\"" "change\")}}}else throw new q(15,\"You may not select an unselectable inpu" "t element: \"+a.type);}else if(R(a,\n\"OPTION\")){c=J(a,za);if(!c.multipl" "e&&!b)throw new q(15,\"You may not deselect an option within a select tha" "t does not support multiple selections.\");if(b!=ya(a)){a.selected=b;xa(c" ",\"change\")}}else throw new q(15,\"You may not select an unselectable el" "ement: \"+a.tagName);}var Y=\"_\".split(\".\"),Z=l;!(Y[0]in Z)&&Z.execScr" "ipt&&Z.execScript(\"var \"+Y[0]);for(var $;Y.length&&($=Y.shift());)if(!Y" ".length&&Aa!==undefined)Z[$]=Aa;else Z=Z[$]?Z[$]:Z[$]={};; return this._." "apply(null,arguments);}.apply({navigator:typeof window!='undefined'?windo" "w.navigator:null}, arguments);}"; const char* const SUBMIT = "function(){return function(){var m=this;\nfunction n(a){var b=typeof a;if" "(b==\"object\")if(a){if(a instanceof Array)return\"array\";else if(a inst" "anceof Object)return b;var c=Object.prototype.toString.call(a);if(c==\"[o" "bject Window]\")return\"object\";if(c==\"[object Array]\"||typeof a.lengt" "h==\"number\"&&typeof a.splice!=\"undefined\"&&typeof a.propertyIsEnumera" "ble!=\"undefined\"&&!a.propertyIsEnumerable(\"splice\"))return\"array\";i" "f(c==\"[object Function]\"||typeof a.call!=\"undefined\"&&typeof a.proper" "tyIsEnumerable!=\"undefined\"&&!a.propertyIsEnumerable(\"call\"))return\"" "function\"}else return\"null\";else if(b==\n\"function\"&&typeof a.call==" "\"undefined\")return\"object\";return b}Math.floor(Math.random()*21474836" "48).toString(36);function o(a,b){function c(){}c.prototype=b.prototype;a." "i=b.prototype;a.prototype=new c};function p(a){this.stack=Error().stack||" "\"\";if(a)this.message=String(a)}o(p,Error);p.prototype.name=\"CustomErro" "r\";function r(a,b){p.call(this,b);this.code=a;this.name=s[a]||s[13]}o(r," "p);var s,t={NoSuchElementError:7,NoSuchFrameError:8,UnknownCommandError:9" ",StaleElementReferenceError:10,ElementNotVisibleError:11,InvalidElementSt" "ateError:12,UnknownError:13,ElementNotSelectableError:15,XPathLookupError" ":19,NoSuchWindowError:23,InvalidCookieDomainError:24,UnableToSetCookieErr" "or:25,ModalDialogOpenedError:26,ModalDialogOpenError:27,ScriptTimeoutErro" "r:28},u={};for(var v in t)u[t[v]]=v;s=u;\nr.prototype.toString=function()" "{return\"[\"+this.name+\"] \"+this.message};function w(a){for(var b=1;b=0;c--)a.pa" "rentNode&&a.parentNode.insertBefore(b[c],a.nextSibling);a&&a.parentNode&&" "a.parentNode.removeChild(a)};function N(a,b,c,d){L.call(this,a,b,c,null,d" ")}o(N,L);N.prototype.next=function(){do N.i.next.call(this);while(this.c=" "=-1);return this.b};function O(a,b){var c;a:{c=G(a);if(c.defaultView&&c.d" "efaultView.getComputedStyle)if(c=c.defaultView.getComputedStyle(a,null)){" "c=c[b]||c.getPropertyValue(b);break a}c=\"\"}return c||(a.currentStyle?a." "currentStyle[b]:null)||a.style[b]}\nfunction P(a){var b=G(a),c=O(a,\"posi" "tion\"),d=c==\"fixed\"||c==\"absolute\";for(a=a.parentNode;a&&a!=b;a=a.pa" "rentNode){c=O(a,\"position\");d=d&&c==\"static\"&&a!=b.documentElement&&a" "!=b.body;if(!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeig" "ht||c==\"fixed\"||c==\"absolute\"))return a}return null};String.fromCharC" "ode(160);var Q=[\"dragstart\",\"dragexit\",\"mouseover\",\"mouseout\"];\n" "function R(a,b,c){var d=G(a),h=d?d.parentWindow||d.defaultView:window,j=n" "ew F;if(a.nodeType==1)if(a.getBoundingClientRect){var k=a.getBoundingClie" "ntRect();j.x=k.left;j.y=k.top}else{k=I(a?new H(G(a)):E||(E=new H));var i," "e=G(a);i=O(a,\"position\");var f=new F(0,0),q=(e?e.nodeType==9?e:G(e):doc" "ument).documentElement;if(a!=q)if(a.getBoundingClientRect){i=a.getBoundin" "gClientRect();e=I(e?new H(G(e)):E||(E=new H));f.x=i.left+e.x;f.y=i.top+e." "y}else if(e.getBoxObjectFor){i=e.getBoxObjectFor(a);e=e.getBoxObjectFor(q" ");\nf.x=i.screenX-e.screenX;f.y=i.screenY-e.screenY}else{var g=a;do{f.x+=" "g.offsetLeft;f.y+=g.offsetTop;if(g!=a){f.x+=g.clientLeft||0;f.y+=g.client" "Top||0}if(O(g,\"position\")==\"fixed\"){f.x+=e.body.scrollLeft;f.y+=e.bod" "y.scrollTop;break}g=g.offsetParent}while(g&&g!=a);if(i==\"absolute\")f.y-" "=e.body.offsetTop;for(g=a;(g=P(g))&&g!=e.body&&g!=q;){f.x-=g.scrollLeft;f" ".y-=g.scrollTop}}j.x=f.x-k.x;j.y=f.y-k.y}else{k=n(a.e)==\"function\";f=a;" "if(a.targetTouches)f=a.targetTouches[0];else if(k&&a.e().targetTouches)f=" "a.e().targetTouches[0];\nj.x=f.clientX;j.y=f.clientY}var l=c||{};c=(l.x||" "0)+j.x;j=(l.y||0)+j.y;k=l.button||0;f=l.bubble||true;i=null;if(A(Q,b)>=0)" "i=l.related||null;e=!!l.alt;q=!!l.control;g=!!l.shift;l=!!l.meta;if(a.fir" "eEvent&&d&&d.createEventObject){a=d.createEventObject();a.altKey=e;a.j=q;" "a.metaKey=l;a.shiftKey=g;a.clientX=c;a.clientY=j;a.button=k;a.relatedTarg" "et=i}else{a=d.createEvent(\"MouseEvents\");if(a.initMouseEvent)a.initMous" "eEvent(b,f,true,h,1,0,0,c,j,q,e,g,l,k,i);else{a.initEvent(b,f,true);a.shi" "ftKey=g;a.metaKey=\nl;a.altKey=e;a.ctrlKey=q;a.button=k}}return a}functio" "n S(a,b,c){var d=c||{};c=d.keyCode||0;var h=d.charCode||0,j=!!d.alt,k=!!d" ".ctrl,i=!!d.shift;d=!!d.meta;a=G(a).createEvent(\"Events\");a.initEvent(b" ",true,true);a.charCode=h;a.keyCode=c;a.altKey=j;a.ctrlKey=k;a.metaKey=d;a" ".shiftKey=i;return a}\nfunction T(a,b,c){var d=G(a),h=c||{};c=h.bubble!==" "false;var j=!!h.alt,k=!!h.control,i=!!h.shift;h=!!h.meta;if(a.fireEvent&&" "d&&d.createEventObject){a=d.createEventObject();a.altKey=j;a.k=k;a.metaKe" "y=h;a.shiftKey=i}else{a=d.createEvent(\"HTMLEvents\");a.initEvent(b,c,tru" "e);a.shiftKey=i;a.metaKey=h;a.altKey=j;a.ctrlKey=k}return a}var U={};U.cl" "ick=R;U.keydown=S;U.keypress=S;U.keyup=S;U.mousedown=R;U.mousemove=R;U.mo" "useout=R;U.mouseover=R;U.mouseup=R;function V(a){a:{a=a;for(var b=0;a;){i" "f(a&&a.nodeType==1&&a.tagName.toUpperCase()==\"FORM\"){a=a;break a}a=a.pa" "rentNode;b++}a=null}if(!a)throw new r(12,\"Element was not in a form, so " "could not submit.\");b=a;var c=(U.submit||T)(b,\"submit\",void 0),d;if(!(" "d=n(b.fireEvent)==\"function\")){d=n(b.fireEvent);d=d==\"object\"||d==\"a" "rray\"||d==\"function\"}if(d){try{(G(b)?G(b).parentWindow||G(b).defaultVi" "ew:window).event=c}catch(h){}b=b.fireEvent(\"onsubmit\",c)}else b=b.dispa" "tchEvent(c);b&&a.submit()}\nvar W=\"_\".split(\".\"),X=m;!(W[0]in X)&&X.e" "xecScript&&X.execScript(\"var \"+W[0]);for(var Y;W.length&&(Y=W.shift());" ")if(!W.length&&V!==undefined)X[Y]=V;else X=X[Y]?X[Y]:X[Y]={};; return thi" "s._.apply(null,arguments);}.apply({navigator:typeof window!='undefined'?w" "indow.navigator:null}, arguments);}"; const char* const TOGGLE = "function(){return function(){var l=this;\nfunction m(a){var b=typeof a;if" "(b==\"object\")if(a){if(a instanceof Array)return\"array\";else if(a inst" "anceof Object)return b;var c=Object.prototype.toString.call(a);if(c==\"[o" "bject Window]\")return\"object\";if(c==\"[object Array]\"||typeof a.lengt" "h==\"number\"&&typeof a.splice!=\"undefined\"&&typeof a.propertyIsEnumera" "ble!=\"undefined\"&&!a.propertyIsEnumerable(\"splice\"))return\"array\";i" "f(c==\"[object Function]\"||typeof a.call!=\"undefined\"&&typeof a.proper" "tyIsEnumerable!=\"undefined\"&&!a.propertyIsEnumerable(\"call\"))return\"" "function\"}else return\"null\";else if(b==\n\"function\"&&typeof a.call==" "\"undefined\")return\"object\";return b}Math.floor(Math.random()*21474836" "48).toString(36);function o(a,b){function c(){}c.prototype=b.prototype;a." "i=b.prototype;a.prototype=new c};function p(a){this.stack=Error().stack||" "\"\";if(a)this.message=String(a)}o(p,Error);p.prototype.name=\"CustomErro" "r\";function q(a,b){p.call(this,b);this.code=a;this.name=r[a]||r[13]}o(q," "p);var r,t={NoSuchElementError:7,NoSuchFrameError:8,UnknownCommandError:9" ",StaleElementReferenceError:10,ElementNotVisibleError:11,InvalidElementSt" "ateError:12,UnknownError:13,ElementNotSelectableError:15,XPathLookupError" ":19,NoSuchWindowError:23,InvalidCookieDomainError:24,UnableToSetCookieErr" "or:25,ModalDialogOpenedError:26,ModalDialogOpenError:27,ScriptTimeoutErro" "r:28},u={};for(var v in t)u[t[v]]=v;r=u;\nq.prototype.toString=function()" "{return\"[\"+this.name+\"] \"+this.message};var aa=window;function ba(a){" "for(var b=1;b=0;c--)a.parentNode&&a.parentN" "ode.insertBefore(b[c],a.nextSibling);a&&a.parentNode&&a.parentNode.remove" "Child(a)};function O(a,b,c,d){M.call(this,a,b,c,null,d)}o(O,M);O.prototyp" "e.next=function(){do O.i.next.call(this);while(this.c==-1);return this.b}" ";function ja(a,b){var c=H(a);if(c.defaultView&&c.defaultView.getComputedS" "tyle)if(c=c.defaultView.getComputedStyle(a,null))return c[b]||c.getProper" "tyValue(b);return\"\"}function P(a,b){return ja(a,b)||(a.currentStyle?a.c" "urrentStyle[b]:null)||a.style[b]}\nfunction ka(a){var b=H(a),c=P(a,\"posi" "tion\"),d=c==\"fixed\"||c==\"absolute\";for(a=a.parentNode;a&&a!=b;a=a.pa" "rentNode){c=P(a,\"position\");d=d&&c==\"static\"&&a!=b.documentElement&&a" "!=b.body;if(!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeig" "ht||c==\"fixed\"||c==\"absolute\"))return a}return null};function Q(a,b){" "return!!a&&a.nodeType==1&&(!b||a.tagName.toUpperCase()==b)}\nvar la={\"cl" "ass\":\"className\",readonly:\"readOnly\"},ma=[\"checked\",\"disabled\"," "\"draggable\",\"hidden\"],na=[\"async\",\"autofocus\",\"autoplay\",\"chec" "ked\",\"compact\",\"complete\",\"controls\",\"declare\",\"defaultchecked" "\",\"defaultselected\",\"defer\",\"disabled\",\"draggable\",\"ended\",\"f" "ormnovalidate\",\"hidden\",\"indeterminate\",\"iscontenteditable\",\"isma" "p\",\"itemscope\",\"loop\",\"multiple\",\"muted\",\"nohref\",\"noresize\"" ",\"noshade\",\"novalidate\",\"nowrap\",\"open\",\"paused\",\"pubdate\",\"" "readonly\",\"required\",\"reversed\",\"scoped\",\"seamless\",\"seeking\"," "\n\"selected\",\"spellcheck\",\"truespeed\",\"willvalidate\"];function oa" "(a,b){if(8==a.nodeType)return null;b=b.toLowerCase();if(b==\"style\"){var" " c=a.style.cssText.replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\").toLowerCase" "();return c.charAt(c.length-1)==\";\"?c:c+\";\"}c=a.getAttributeNode(b);i" "f(!c)return null;if(A(na,b)>=0)return\"true\";return c.specified?c.value:" "null}var pa=[\"BUTTON\",\"INPUT\",\"OPTGROUP\",\"OPTION\",\"SELECT\",\"TE" "XTAREA\"];\nfunction qa(a){var b=a.tagName.toUpperCase();if(!(A(pa,b)>=0)" ")return true;if(oa(a,\"disabled\"))return false;if(a.parentNode&&a.parent" "Node.nodeType==1&&\"OPTGROUP\"==b||\"OPTION\"==b)return qa(a.parentNode);" "return true}function R(a){for(a=a.parentNode;a&&a.nodeType!=1&&a.nodeType" "!=9&&a.nodeType!=11;)a=a.parentNode;return Q(a)?a:null}function S(a,b){b=" "ca(String(b));return ja(a,b)||ra(a,b)}\nfunction ra(a,b){var c=(a.current" "Style||a.style)[b];if(c!=\"inherit\")return c!==undefined?c:null;return(c" "=R(a))?ra(c,b):null}function sa(a){if(m(a.getBBox)==\"function\")return a" ".getBBox();var b;if(P(a,\"display\")!=\"none\")b=new G(a.offsetWidth,a.of" "fsetHeight);else{b=a.style;var c=b.display,d=b.visibility,f=b.position;b." "visibility=\"hidden\";b.position=\"absolute\";b.display=\"inline\";var e;" "e=a.offsetWidth;a=a.offsetHeight;b.display=c;b.position=f;b.visibility=d;" "b=new G(e,a)}return b}\nfunction T(a,b){function c(e){if(S(e,\"display\")" "==\"none\")return false;e=R(e);return!e||c(e)}function d(e){var k=sa(e);i" "f(k.height>0&&k.width>0)return true;if(e.innerText||e.textContent)if(ta.t" "est(e.innerText||e.textContent))return true;return B&&da(e.childNodes,fun" "ction(j){return Q(j)&&d(j)})}if(!Q(a))throw Error(\"Argument to isShown m" "ust be of type Element\");if(Q(a,\"TITLE\"))return(H(a)?H(a).parentWindow" "||H(a).defaultView:window)==aa;if(Q(a,\"OPTION\")||Q(a,\"OPTGROUP\")){var" " f=J(a,function(e){return Q(e,\n\"SELECT\")});return!!f&&T(f)}if(Q(a,\"MA" "P\")){if(!a.name)return false;f=H(a);f=f.evaluate?ha('/descendant::*[@use" "map = \"#'+a.name+'\"]',f):fa(f,function(e){return Q(e)&&oa(e,\"usemap\")" "==\"#\"+a.name});return!!f&&T(f)}if(Q(a,\"AREA\")){f=J(a,function(e){retu" "rn Q(e,\"MAP\")});return!!f&&T(f)}if(Q(a,\"INPUT\")&&a.type.toLowerCase()" "==\"hidden\")return false;if(S(a,\"visibility\")==\"hidden\")return false" ";if(!c(a))return false;if(!b&&ua(a)==0)return false;if(!d(a))return false" ";return true}\nvar va=\"[\\\\s\\\\xa0\"+String.fromCharCode(160)+\"]+\",t" "a=RegExp(\"^\"+va+\"$\");function ua(a){var b=1,c=S(a,\"opacity\");if(c)b" "=Number(c);if(a=R(a))b*=ua(a);return b};var wa=[\"dragstart\",\"dragexit" "\",\"mouseover\",\"mouseout\"];\nfunction U(a,b,c){var d=H(a),f=d?d.paren" "tWindow||d.defaultView:window,e=new F;if(a.nodeType==1)if(a.getBoundingCl" "ientRect){var k=a.getBoundingClientRect();e.x=k.left;e.y=k.top}else{k=ga(" "a?new K(H(a)):E||(E=new K));var j,g=H(a);j=P(a,\"position\");var h=new F(" "0,0),s=(g?g.nodeType==9?g:H(g):document).documentElement;if(a!=s)if(a.get" "BoundingClientRect){j=a.getBoundingClientRect();g=ga(g?new K(H(g)):E||(E=" "new K));h.x=j.left+g.x;h.y=j.top+g.y}else if(g.getBoxObjectFor){j=g.getBo" "xObjectFor(a);g=g.getBoxObjectFor(s);\nh.x=j.screenX-g.screenX;h.y=j.scre" "enY-g.screenY}else{var i=a;do{h.x+=i.offsetLeft;h.y+=i.offsetTop;if(i!=a)" "{h.x+=i.clientLeft||0;h.y+=i.clientTop||0}if(B&&P(i,\"position\")==\"fixe" "d\"){h.x+=g.body.scrollLeft;h.y+=g.body.scrollTop;break}i=i.offsetParent}" "while(i&&i!=a);if(B&&j==\"absolute\")h.y-=g.body.offsetTop;for(i=a;(i=ka(" "i))&&i!=g.body&&i!=s;){h.x-=i.scrollLeft;h.y-=i.scrollTop}}e.x=h.x-k.x;e." "y=h.y-k.y}else{k=m(a.f)==\"function\";h=a;if(a.targetTouches)h=a.targetTo" "uches[0];else if(k&&a.f().targetTouches)h=\na.f().targetTouches[0];e.x=h." "clientX;e.y=h.clientY}var n=c||{};c=(n.x||0)+e.x;e=(n.y||0)+e.y;k=n.butto" "n||0;h=n.bubble||true;j=null;if(A(wa,b)>=0)j=n.related||null;g=!!n.alt;s=" "!!n.control;i=!!n.shift;n=!!n.meta;if(a.fireEvent&&d&&d.createEventObject" "){a=d.createEventObject();a.altKey=g;a.j=s;a.metaKey=n;a.shiftKey=i;a.cli" "entX=c;a.clientY=e;a.button=k;a.relatedTarget=j}else{a=d.createEvent(\"Mo" "useEvents\");if(a.initMouseEvent)a.initMouseEvent(b,h,true,f,1,0,0,c,e,s," "g,i,n,k,j);else{a.initEvent(b,h,true);\na.shiftKey=i;a.metaKey=n;a.altKey" "=g;a.ctrlKey=s;a.button=k}}return a}function V(a,b,c){var d=c||{};c=d.key" "Code||0;var f=d.charCode||0,e=!!d.alt,k=!!d.ctrl,j=!!d.shift;d=!!d.meta;a" "=H(a).createEvent(\"Events\");a.initEvent(b,true,true);a.charCode=f;a.key" "Code=c;a.altKey=e;a.ctrlKey=k;a.metaKey=d;a.shiftKey=j;return a}\nfunctio" "n xa(a,b,c){var d=H(a),f=c||{};c=f.bubble!==false;var e=!!f.alt,k=!!f.con" "trol,j=!!f.shift;f=!!f.meta;if(a.fireEvent&&d&&d.createEventObject){a=d.c" "reateEventObject();a.altKey=e;a.k=k;a.metaKey=f;a.shiftKey=j}else{a=d.cre" "ateEvent(\"HTMLEvents\");a.initEvent(b,c,true);a.shiftKey=j;a.metaKey=f;a" ".altKey=e;a.ctrlKey=k}return a}var W={};W.click=U;W.keydown=V;W.keypress=" "V;W.keyup=V;W.mousedown=U;W.mousemove=U;W.mouseout=U;W.mouseover=U;W.mous" "eup=U;\nfunction ya(a,b,c){c=(W[b]||xa)(a,b,c);var d;if(!(d=m(a.fireEvent" ")==\"function\")){d=m(a.fireEvent);d=d==\"object\"||d==\"array\"||d==\"fu" "nction\"}if(d){try{(H(a)?H(a).parentWindow||H(a).defaultView:window).even" "t=c}catch(f){}a=a.fireEvent(\"on\"+b,c)}else a=a.dispatchEvent(c);return " "a};function X(a){var b;if(Q(a,\"OPTION\"))b=true;else if(Q(a,\"INPUT\")){" "b=a.type.toLowerCase();b=b==\"checkbox\"||b==\"radio\"}else b=false;if(!b" ")throw new q(15,\"Element is not selectable\");b=\"selected\";var c=a.typ" "e&&a.type.toLowerCase();if(\"checkbox\"==c||\"radio\"==c)b=\"checked\";b=" "la[b]||b;a=a[b];a=a===undefined&&A(ma,b)>=0?false:a;return!!a}function za" "(a){return Q(a,\"SELECT\")};function Aa(a){if(Q(a,\"INPUT\")&&\"radio\"==" "a.type)throw new q(12,\"You may not toggle a radio button\");var b=!X(a);" "if(!qa(a))throw new q(12,\"Element is not currently enabled and may not b" "e manipulated\");if(!T(a,true))throw new q(11,\"Element is not currently " "visible and may not be manipulated\");if(Q(a,\"INPUT\")){var c=a.type.toL" "owerCase();if(c==\"checkbox\"||c==\"radio\"){if(a.checked!=b){if(a.type==" "\"radio\"&&!b)throw new q(12,\"You may not deselect a radio button\");if(" "b!=X(a)){a.checked=b;ya(a,\"change\")}}}else throw new q(15,\n\"You may n" "ot select an unselectable input element: \"+a.type);}else if(Q(a,\"OPTION" "\")){c=J(a,za);if(!c.multiple&&!b)throw new q(15,\"You may not deselect a" "n option within a select that does not support multiple selections.\");if" "(b!=X(a)){a.selected=b;ya(c,\"change\")}}else throw new q(15,\"You may no" "t select an unselectable element: \"+a.tagName);return X(a)}var Y=\"_\".s" "plit(\".\"),Z=l;!(Y[0]in Z)&&Z.execScript&&Z.execScript(\"var \"+Y[0]);\n" "for(var $;Y.length&&($=Y.shift());)if(!Y.length&&Aa!==undefined)Z[$]=Aa;e" "lse Z=Z[$]?Z[$]:Z[$]={};; return this._.apply(null,arguments);}.apply({na" "vigator:typeof window!='undefined'?window.navigator:null}, arguments);}"; } // namespace atoms } // namespace webdriver #endif // WEBDRIVER_ATOMS_H_