appium-remote-debugger 9.1.18 → 10.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -7
- package/README.md +5 -0
- package/atoms/active_element.js +50 -59
- package/atoms/clear.js +117 -138
- package/atoms/clear_local_storage.js +74 -0
- package/atoms/clear_session_storage.js +74 -0
- package/atoms/click.js +123 -157
- package/atoms/default_content.js +74 -0
- package/atoms/execute_async_script.js +9 -15
- package/atoms/execute_script.js +7 -14
- package/atoms/execute_sql.js +2 -0
- package/atoms/find_element.js +90 -99
- package/atoms/find_element_fragment.js +116 -0
- package/atoms/find_elements.js +92 -99
- package/atoms/frame_by_id_or_name.js +92 -100
- package/atoms/frame_by_index.js +50 -59
- package/atoms/get_appcache_status.js +74 -0
- package/atoms/get_attribute.js +89 -0
- package/atoms/get_attribute_value.js +67 -69
- package/atoms/get_effective_style.js +75 -0
- package/atoms/get_element_from_cache.js +3 -6
- package/atoms/get_frame_window.js +50 -59
- package/atoms/get_local_storage_item.js +74 -0
- package/atoms/get_local_storage_key.js +70 -0
- package/atoms/get_local_storage_keys.js +74 -0
- package/atoms/get_local_storage_size.js +74 -0
- package/atoms/get_location.js +3 -0
- package/atoms/get_session_storage_item.js +74 -0
- package/atoms/get_session_storage_key.js +70 -0
- package/atoms/get_session_storage_keys.js +74 -0
- package/atoms/get_session_storage_size.js +74 -0
- package/atoms/get_size.js +74 -74
- package/atoms/get_text.js +97 -98
- package/atoms/get_top_left_coordinates.js +88 -91
- package/atoms/get_value_of_css_property.js +73 -74
- package/atoms/is_displayed.js +91 -92
- package/atoms/is_editable.js +69 -0
- package/atoms/is_enabled.js +66 -66
- package/atoms/is_focusable.js +71 -0
- package/atoms/is_interactable.js +95 -0
- package/atoms/is_selected.js +66 -69
- package/atoms/lastupdate +7 -5
- package/atoms/remove_local_storage_item.js +74 -0
- package/atoms/remove_session_storage_item.js +74 -0
- package/atoms/set_local_storage_item.js +74 -0
- package/atoms/set_session_storage_item.js +74 -0
- package/atoms/submit.js +115 -136
- package/atoms/type.js +115 -136
- package/build/lib/atoms.js +9 -3
- package/build/lib/atoms.js.map +1 -1
- package/build/lib/rpc/rpc-message-handler.js +1 -1
- package/build/lib/rpc/rpc-message-handler.js.map +1 -1
- package/lib/atoms.js +9 -2
- package/lib/rpc/rpc-message-handler.js +1 -2
- package/package.json +9 -9
- package/scripts/build-atoms.js +2 -3
- package/scripts/common.js +67 -107
- package/atoms/element_equals_element.js +0 -83
- package/atoms/fireEvent.js +0 -84
- package/atoms/get_window_size.js +0 -8
- package/atoms/move_mouse.js +0 -134
- package/atoms/refresh.js +0 -82
- package/atoms/tap.js +0 -150
- package/atoms/title.js +0 -82
- package/scripts/import-atoms.js +0 -3
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
function(){return (function(){var h=this||self;function k(a){return"string"==typeof a}function aa(a,b){a=a.split(".");var c=h;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}
|
|
2
|
+
function ba(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
|
|
3
|
+
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function ca(a,b,c){return a.call.apply(a.bind,arguments)}function da(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}
|
|
4
|
+
function l(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?l=ca:l=da;return l.apply(null,arguments)}function ea(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}function m(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a};/*
|
|
5
|
+
|
|
6
|
+
The MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2007 Cybozu Labs, Inc.
|
|
9
|
+
Copyright (c) 2012 Google Inc.
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to
|
|
13
|
+
deal in the Software without restriction, including without limitation the
|
|
14
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
15
|
+
sell copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions:
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in
|
|
19
|
+
all copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
26
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
27
|
+
IN THE SOFTWARE.
|
|
28
|
+
*/
|
|
29
|
+
function p(a,b,c){this.a=a;this.b=b||1;this.f=c||1};var fa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},q=Array.prototype.forEach?function(a,b){Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)},r=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,
|
|
30
|
+
b,c)}:function(a,b,c){var d=c;q(a,function(e,f){d=b.call(void 0,d,e,f,a)});return d},t=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1};function ha(a){return Array.prototype.concat.apply([],arguments)}function ia(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var u;a:{var ja=h.navigator;if(ja){var ka=ja.userAgent;if(ka){u=ka;break a}}u=""}function v(a){return-1!=u.indexOf(a)};function la(){return v("Firefox")||v("FxiOS")}function ma(){return(v("Chrome")||v("CriOS"))&&!v("Edge")};function na(){return v("iPhone")&&!v("iPod")&&!v("iPad")};function oa(a){this.b=a;this.a=0}function pa(a){a=a.match(qa);for(var b=0;b<a.length;b++)ra.test(a[b])&&a.splice(b,1);return new oa(a)}var qa=/\$?(?:(?![0-9-\.])(?:\*|[\w-\.]+):)?(?![0-9-\.])(?:\*|[\w-\.]+)|\/\/|\.\.|::|\d+(?:\.\d*)?|\.\d+|"[^"]*"|'[^']*'|[!<>]=|\s+|./g,ra=/^\s/;function x(a,b){return a.b[a.a+(b||0)]}function y(a){return a.b[a.a++]}function sa(a){return a.b.length<=a.a};function ta(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}
|
|
31
|
+
function ua(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.parentNode;return e==f?va(a,b):!c&&ta(e,b)?-1*wa(a,b):!d&&ta(f,a)?wa(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=9==a.nodeType?a:a.ownerDocument||a.document;c=d.createRange();c.selectNode(a);c.collapse(!0);
|
|
32
|
+
a=d.createRange();a.selectNode(b);a.collapse(!0);return c.compareBoundaryPoints(h.Range.START_TO_END,a)}function wa(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return va(b,a)}function va(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1};function z(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||null==b?"":b);if("string"!=typeof b)if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;c=0;var d=[];for(b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return b}
|
|
33
|
+
function B(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function C(a,b,c,d,e){return xa.call(null,a,b,k(c)?c:null,k(d)?d:null,e||new D)}
|
|
34
|
+
function xa(a,b,c,d,e){b.getElementsByName&&d&&"name"==c?(b=b.getElementsByName(d),q(b,function(f){a.a(f)&&e.add(f)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),q(b,function(f){f.className==d&&a.a(f)&&e.add(f)})):a instanceof E?ya(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.f()),q(b,function(f){B(f,c,d)&&e.add(f)}));return e}function ya(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)B(b,c,d)&&a.a(b)&&e.add(b),ya(a,b,c,d,e)};function D(){this.b=this.a=null;this.l=0}function za(a){this.f=a;this.a=this.b=null}function Aa(a,b){if(!a.a)return b;if(!b.a)return a;var c=a.a;b=b.a;for(var d=null,e,f=0;c&&b;)c.f==b.f?(e=c,c=c.a,b=b.a):0<ua(c.f,b.f)?(e=b,b=b.a):(e=c,c=c.a),(e.b=d)?d.a=e:a.a=e,d=e,f++;for(e=c||b;e;)e.b=d,d=d.a=e,f++,e=e.a;a.b=d;a.l=f;return a}function Ba(a,b){b=new za(b);b.a=a.a;a.b?a.a.b=b:a.a=a.b=b;a.a=b;a.l++}D.prototype.add=function(a){a=new za(a);a.b=this.b;this.a?this.b.a=a:this.a=this.b=a;this.b=a;this.l++};
|
|
35
|
+
function Ca(a){return(a=a.a)?a.f:null}function Da(a){return(a=Ca(a))?z(a):""}function F(a,b){return new Ea(a,!!b)}function Ea(a,b){this.f=a;this.b=(this.s=b)?a.b:a.a;this.a=null}function G(a){var b=a.b;if(null==b)return null;var c=a.a=b;a.b=a.s?b.b:b.a;return c.f};function H(a){this.i=a;this.b=this.g=!1;this.f=null}function I(a){return"\n "+a.toString().split("\n").join("\n ")}function Fa(a,b){a.g=b}function Ga(a,b){a.b=b}function J(a,b){a=a.a(b);return a instanceof D?+Da(a):+a}function K(a,b){a=a.a(b);return a instanceof D?Da(a):""+a}function L(a,b){a=a.a(b);return a instanceof D?!!a.l:!!a};function M(a,b,c){H.call(this,a.i);this.c=a;this.h=b;this.o=c;this.g=b.g||c.g;this.b=b.b||c.b;this.c==Ha&&(c.b||c.g||4==c.i||0==c.i||!b.f?b.b||b.g||4==b.i||0==b.i||!c.f||(this.f={name:c.f.name,u:b}):this.f={name:b.f.name,u:c})}m(M,H);
|
|
36
|
+
function N(a,b,c,d,e){b=b.a(d);c=c.a(d);var f;if(b instanceof D&&c instanceof D){b=F(b);for(d=G(b);d;d=G(b))for(e=F(c),f=G(e);f;f=G(e))if(a(z(d),z(f)))return!0;return!1}if(b instanceof D||c instanceof D){b instanceof D?(e=b,d=c):(e=c,d=b);f=F(e);for(var g=typeof d,n=G(f);n;n=G(f)){switch(g){case "number":n=+z(n);break;case "boolean":n=!!z(n);break;case "string":n=z(n);break;default:throw Error("Illegal primitive type for comparison.");}if(e==b&&a(n,d)||e==c&&a(d,n))return!0}return!1}return e?"boolean"==
|
|
37
|
+
typeof b||"boolean"==typeof c?a(!!b,!!c):"number"==typeof b||"number"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}M.prototype.a=function(a){return this.c.m(this.h,this.o,a)};M.prototype.toString=function(){var a="Binary Expression: "+this.c;a+=I(this.h);return a+=I(this.o)};function Ia(a,b,c,d){this.I=a;this.D=b;this.i=c;this.m=d}Ia.prototype.toString=function(){return this.I};var Ja={};
|
|
38
|
+
function P(a,b,c,d){if(Ja.hasOwnProperty(a))throw Error("Binary operator already created: "+a);a=new Ia(a,b,c,d);return Ja[a.toString()]=a}P("div",6,1,function(a,b,c){return J(a,c)/J(b,c)});P("mod",6,1,function(a,b,c){return J(a,c)%J(b,c)});P("*",6,1,function(a,b,c){return J(a,c)*J(b,c)});P("+",5,1,function(a,b,c){return J(a,c)+J(b,c)});P("-",5,1,function(a,b,c){return J(a,c)-J(b,c)});P("<",4,2,function(a,b,c){return N(function(d,e){return d<e},a,b,c)});
|
|
39
|
+
P(">",4,2,function(a,b,c){return N(function(d,e){return d>e},a,b,c)});P("<=",4,2,function(a,b,c){return N(function(d,e){return d<=e},a,b,c)});P(">=",4,2,function(a,b,c){return N(function(d,e){return d>=e},a,b,c)});var Ha=P("=",3,2,function(a,b,c){return N(function(d,e){return d==e},a,b,c,!0)});P("!=",3,2,function(a,b,c){return N(function(d,e){return d!=e},a,b,c,!0)});P("and",2,2,function(a,b,c){return L(a,c)&&L(b,c)});P("or",1,2,function(a,b,c){return L(a,c)||L(b,c)});function Ka(a,b){if(b.a.length&&4!=a.i)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");H.call(this,a.i);this.c=a;this.h=b;this.g=a.g;this.b=a.b}m(Ka,H);Ka.prototype.a=function(a){a=this.c.a(a);return La(this.h,a)};Ka.prototype.toString=function(){var a="Filter:"+I(this.c);return a+=I(this.h)};function Ma(a,b){if(b.length<a.C)throw Error("Function "+a.j+" expects at least"+a.C+" arguments, "+b.length+" given");if(null!==a.B&&b.length>a.B)throw Error("Function "+a.j+" expects at most "+a.B+" arguments, "+b.length+" given");a.H&&q(b,function(c,d){if(4!=c.i)throw Error("Argument "+d+" to function "+a.j+" is not of type Nodeset: "+c);});H.call(this,a.i);this.v=a;this.c=b;Fa(this,a.g||t(b,function(c){return c.g}));Ga(this,a.G&&!b.length||a.F&&!!b.length||t(b,function(c){return c.b}))}m(Ma,H);
|
|
40
|
+
Ma.prototype.a=function(a){return this.v.m.apply(null,ha(a,this.c))};Ma.prototype.toString=function(){var a="Function: "+this.v;if(this.c.length){var b=r(this.c,function(c,d){return c+I(d)},"Arguments:");a+=I(b)}return a};function Na(a,b,c,d,e,f,g,n){this.j=a;this.i=b;this.g=c;this.G=d;this.F=!1;this.m=e;this.C=f;this.B=void 0!==g?g:f;this.H=!!n}Na.prototype.toString=function(){return this.j};var Oa={};
|
|
41
|
+
function Q(a,b,c,d,e,f,g,n){if(Oa.hasOwnProperty(a))throw Error("Function already created: "+a+".");Oa[a]=new Na(a,b,c,d,e,f,g,n)}Q("boolean",2,!1,!1,function(a,b){return L(b,a)},1);Q("ceiling",1,!1,!1,function(a,b){return Math.ceil(J(b,a))},1);Q("concat",3,!1,!1,function(a,b){return r(ia(arguments,1),function(c,d){return c+K(d,a)},"")},2,null);Q("contains",2,!1,!1,function(a,b,c){b=K(b,a);a=K(c,a);return-1!=b.indexOf(a)},2);Q("count",1,!1,!1,function(a,b){return b.a(a).l},1,1,!0);
|
|
42
|
+
Q("false",2,!1,!1,function(){return!1},0);Q("floor",1,!1,!1,function(a,b){return Math.floor(J(b,a))},1);Q("id",4,!1,!1,function(a,b){var c=a.a,d=9==c.nodeType?c:c.ownerDocument;a=K(b,a).split(/\s+/);var e=[];q(a,function(g){g=d.getElementById(g);!g||0<=fa(e,g)||e.push(g)});e.sort(ua);var f=new D;q(e,function(g){f.add(g)});return f},1);Q("lang",2,!1,!1,function(){return!1},1);Q("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.f},0);
|
|
43
|
+
Q("local-name",3,!1,!0,function(a,b){return(a=b?Ca(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);Q("name",3,!1,!0,function(a,b){return(a=b?Ca(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);Q("namespace-uri",3,!0,!1,function(){return""},0,1,!0);Q("normalize-space",3,!1,!0,function(a,b){return(b?K(b,a):z(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);Q("not",2,!1,!1,function(a,b){return!L(b,a)},1);Q("number",1,!1,!0,function(a,b){return b?J(b,a):+z(a.a)},0,1);
|
|
44
|
+
Q("position",1,!0,!1,function(a){return a.b},0);Q("round",1,!1,!1,function(a,b){return Math.round(J(b,a))},1);Q("starts-with",2,!1,!1,function(a,b,c){b=K(b,a);a=K(c,a);return 0==b.lastIndexOf(a,0)},2);Q("string",3,!1,!0,function(a,b){return b?K(b,a):z(a.a)},0,1);Q("string-length",1,!1,!0,function(a,b){return(b?K(b,a):z(a.a)).length},0,1);
|
|
45
|
+
Q("substring",3,!1,!1,function(a,b,c,d){c=J(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?J(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=K(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);Q("substring-after",3,!1,!1,function(a,b,c){b=K(b,a);a=K(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
|
|
46
|
+
Q("substring-before",3,!1,!1,function(a,b,c){b=K(b,a);a=K(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);Q("sum",1,!1,!1,function(a,b){a=F(b.a(a));b=0;for(var c=G(a);c;c=G(a))b+=+z(c);return b},1,1,!0);Q("translate",3,!1,!1,function(a,b,c,d){b=K(b,a);c=K(c,a);var e=K(d,a);a={};for(d=0;d<c.length;d++){var f=c.charAt(d);f in a||(a[f]=e.charAt(d))}c="";for(d=0;d<b.length;d++)f=b.charAt(d),c+=f in a?a[f]:f;return c},3);Q("true",2,!1,!1,function(){return!0},0);function E(a,b){this.h=a;this.c=void 0!==b?b:null;this.b=null;switch(a){case "comment":this.b=8;break;case "text":this.b=3;break;case "processing-instruction":this.b=7;break;case "node":break;default:throw Error("Unexpected argument");}}function Pa(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}E.prototype.a=function(a){return null===this.b||this.b==a.nodeType};E.prototype.f=function(){return this.h};
|
|
47
|
+
E.prototype.toString=function(){var a="Kind Test: "+this.h;null===this.c||(a+=I(this.c));return a};function Qa(a){H.call(this,3);this.c=a.substring(1,a.length-1)}m(Qa,H);Qa.prototype.a=function(){return this.c};Qa.prototype.toString=function(){return"Literal: "+this.c};function R(a,b){this.j=a.toLowerCase();a="*"==this.j?"*":"http://www.w3.org/1999/xhtml";this.b=b?b.toLowerCase():a}R.prototype.a=function(a){var b=a.nodeType;if(1!=b&&2!=b)return!1;b=void 0!==a.localName?a.localName:a.nodeName;return"*"!=this.j&&this.j!=b.toLowerCase()?!1:"*"==this.b?!0:this.b==(a.namespaceURI?a.namespaceURI.toLowerCase():"http://www.w3.org/1999/xhtml")};R.prototype.f=function(){return this.j};
|
|
48
|
+
R.prototype.toString=function(){return"Name Test: "+("http://www.w3.org/1999/xhtml"==this.b?"":this.b+":")+this.j};function Ra(a){H.call(this,1);this.c=a}m(Ra,H);Ra.prototype.a=function(){return this.c};Ra.prototype.toString=function(){return"Number: "+this.c};function Sa(a,b){H.call(this,a.i);this.h=a;this.c=b;this.g=a.g;this.b=a.b;1==this.c.length&&(a=this.c[0],a.A||a.c!=Ta||(a=a.o,"*"!=a.f()&&(this.f={name:a.f(),u:null})))}m(Sa,H);function S(){H.call(this,4)}m(S,H);S.prototype.a=function(a){var b=new D;a=a.a;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};S.prototype.toString=function(){return"Root Helper Expression"};function Ua(){H.call(this,4)}m(Ua,H);Ua.prototype.a=function(a){var b=new D;b.add(a.a);return b};Ua.prototype.toString=function(){return"Context Helper Expression"};
|
|
49
|
+
function Va(a){return"/"==a||"//"==a}Sa.prototype.a=function(a){var b=this.h.a(a);if(!(b instanceof D))throw Error("Filter expression must evaluate to nodeset.");a=this.c;for(var c=0,d=a.length;c<d&&b.l;c++){var e=a[c],f=F(b,e.c.s);if(e.g||e.c!=Wa)if(e.g||e.c!=Xa){var g=G(f);for(b=e.a(new p(g));null!=(g=G(f));)g=e.a(new p(g)),b=Aa(b,g)}else g=G(f),b=e.a(new p(g));else{for(g=G(f);(b=G(f))&&(!g.contains||g.contains(b))&&b.compareDocumentPosition(g)&8;g=b);b=e.a(new p(g))}}return b};
|
|
50
|
+
Sa.prototype.toString=function(){var a="Path Expression:"+I(this.h);if(this.c.length){var b=r(this.c,function(c,d){return c+I(d)},"Steps:");a+=I(b)}return a};function Ya(a,b){this.a=a;this.s=!!b}
|
|
51
|
+
function La(a,b,c){for(c=c||0;c<a.a.length;c++)for(var d=a.a[c],e=F(b),f=b.l,g,n=0;g=G(e);n++){var w=a.s?f-n:n+1;g=d.a(new p(g,w,f));if("number"==typeof g)w=w==g;else if("string"==typeof g||"boolean"==typeof g)w=!!g;else if(g instanceof D)w=0<g.l;else throw Error("Predicate.evaluate returned an unexpected type.");if(!w){w=e;g=w.f;var A=w.a;if(!A)throw Error("Next must be called at least once before remove.");var O=A.b;A=A.a;O?O.a=A:g.a=A;A?A.b=O:g.b=O;g.l--;w.a=null}}return b}
|
|
52
|
+
Ya.prototype.toString=function(){return r(this.a,function(a,b){return a+I(b)},"Predicates:")};function T(a,b,c,d){H.call(this,4);this.c=a;this.o=b;this.h=c||new Ya([]);this.A=!!d;b=this.h;b=0<b.a.length?b.a[0].f:null;a.J&&b&&(this.f={name:b.name,u:b.u});a:{a=this.h;for(b=0;b<a.a.length;b++)if(c=a.a[b],c.g||1==c.i||0==c.i){a=!0;break a}a=!1}this.g=a}m(T,H);
|
|
53
|
+
T.prototype.a=function(a){var b=a.a,c=this.f,d=null,e=null,f=0;c&&(d=c.name,e=c.u?K(c.u,a):null,f=1);if(this.A)if(this.g||this.c!=Za)if(b=F((new T($a,new E("node"))).a(a)),c=G(b))for(a=this.m(c,d,e,f);null!=(c=G(b));)a=Aa(a,this.m(c,d,e,f));else a=new D;else a=C(this.o,b,d,e),a=La(this.h,a,f);else a=this.m(a.a,d,e,f);return a};T.prototype.m=function(a,b,c,d){a=this.c.v(this.o,a,b,c);return a=La(this.h,a,d)};
|
|
54
|
+
T.prototype.toString=function(){var a="Step:"+I("Operator: "+(this.A?"//":"/"));this.c.j&&(a+=I("Axis: "+this.c));a+=I(this.o);if(this.h.a.length){var b=r(this.h.a,function(c,d){return c+I(d)},"Predicates:");a+=I(b)}return a};function ab(a,b,c,d){this.j=a;this.v=b;this.s=c;this.J=d}ab.prototype.toString=function(){return this.j};var bb={};function U(a,b,c,d){if(bb.hasOwnProperty(a))throw Error("Axis already created: "+a);b=new ab(a,b,c,!!d);return bb[a]=b}
|
|
55
|
+
U("ancestor",function(a,b){for(var c=new D;b=b.parentNode;)a.a(b)&&Ba(c,b);return c},!0);U("ancestor-or-self",function(a,b){var c=new D;do a.a(b)&&Ba(c,b);while(b=b.parentNode);return c},!0);
|
|
56
|
+
var Ta=U("attribute",function(a,b){var c=new D,d=a.f();if(b=b.attributes)if(a instanceof E&&null===a.b||"*"==d)for(a=0;d=b[a];a++)c.add(d);else(d=b.getNamedItem(d))&&c.add(d);return c},!1),Za=U("child",function(a,b,c,d,e){c=k(c)?c:null;d=k(d)?d:null;e=e||new D;for(b=b.firstChild;b;b=b.nextSibling)B(b,c,d)&&a.a(b)&&e.add(b);return e},!1,!0);U("descendant",C,!1,!0);
|
|
57
|
+
var $a=U("descendant-or-self",function(a,b,c,d){var e=new D;B(b,c,d)&&a.a(b)&&e.add(b);return C(a,b,c,d,e)},!1,!0),Wa=U("following",function(a,b,c,d){var e=new D;do for(var f=b;f=f.nextSibling;)B(f,c,d)&&a.a(f)&&e.add(f),e=C(a,f,c,d,e);while(b=b.parentNode);return e},!1,!0);U("following-sibling",function(a,b){for(var c=new D;b=b.nextSibling;)a.a(b)&&c.add(b);return c},!1);U("namespace",function(){return new D},!1);
|
|
58
|
+
var cb=U("parent",function(a,b){var c=new D;if(9==b.nodeType)return c;if(2==b.nodeType)return c.add(b.ownerElement),c;b=b.parentNode;a.a(b)&&c.add(b);return c},!1),Xa=U("preceding",function(a,b,c,d){var e=new D,f=[];do f.unshift(b);while(b=b.parentNode);for(var g=1,n=f.length;g<n;g++){var w=[];for(b=f[g];b=b.previousSibling;)w.unshift(b);for(var A=0,O=w.length;A<O;A++)b=w[A],B(b,c,d)&&a.a(b)&&e.add(b),e=C(a,b,c,d,e)}return e},!0,!0);
|
|
59
|
+
U("preceding-sibling",function(a,b){for(var c=new D;b=b.previousSibling;)a.a(b)&&Ba(c,b);return c},!0);var db=U("self",function(a,b){var c=new D;a.a(b)&&c.add(b);return c},!1);function eb(a){H.call(this,1);this.c=a;this.g=a.g;this.b=a.b}m(eb,H);eb.prototype.a=function(a){return-J(this.c,a)};eb.prototype.toString=function(){return"Unary Expression: -"+I(this.c)};function fb(a){H.call(this,4);this.c=a;Fa(this,t(this.c,function(b){return b.g}));Ga(this,t(this.c,function(b){return b.b}))}m(fb,H);fb.prototype.a=function(a){var b=new D;q(this.c,function(c){c=c.a(a);if(!(c instanceof D))throw Error("Path expression must evaluate to NodeSet.");b=Aa(b,c)});return b};fb.prototype.toString=function(){return r(this.c,function(a,b){return a+I(b)},"Union Expression:")};function gb(a,b){this.a=a;this.b=b}function hb(a){for(var b,c=[];;){V(a,"Missing right hand side of binary expression.");b=ib(a);var d=y(a.a);if(!d)break;var e=(d=Ja[d]||null)&&d.D;if(!e){a.a.a--;break}for(;c.length&&e<=c[c.length-1].D;)b=new M(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new M(c.pop(),c.pop(),b);return b}function V(a,b){if(sa(a.a))throw Error(b);}function jb(a,b){a=y(a.a);if(a!=b)throw Error("Bad token, expected: "+b+" got: "+a);}
|
|
60
|
+
function kb(a){a=y(a.a);if(")"!=a)throw Error("Bad token: "+a);}function lb(a){a=y(a.a);if(2>a.length)throw Error("Unclosed literal string");return new Qa(a)}
|
|
61
|
+
function mb(a){var b=[];if(Va(x(a.a))){var c=y(a.a);var d=x(a.a);if("/"==c&&(sa(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new S;d=new S;V(a,"Missing next location step.");c=nb(a,c);b.push(c)}else{a:{c=x(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":y(a.a);c=hb(a);V(a,'unclosed "("');jb(a,")");break;case '"':case "'":c=lb(a);break;default:if(isNaN(+c))if(!Pa(c)&&/(?![0-9])[\w]/.test(d)&&"("==x(a.a,1)){c=y(a.a);
|
|
62
|
+
c=Oa[c]||null;y(a.a);for(d=[];")"!=x(a.a);){V(a,"Missing function argument list.");d.push(hb(a));if(","!=x(a.a))break;y(a.a)}V(a,"Unclosed function argument list.");kb(a);c=new Ma(c,d)}else{c=null;break a}else c=new Ra(+y(a.a))}"["==x(a.a)&&(d=new Ya(ob(a)),c=new Ka(c,d))}if(c)if(Va(x(a.a)))d=c;else return c;else c=nb(a,"/"),d=new Ua,b.push(c)}for(;Va(x(a.a));)c=y(a.a),V(a,"Missing next location step."),c=nb(a,c),b.push(c);return new Sa(d,b)}
|
|
63
|
+
function nb(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==x(a.a)){var c=new T(db,new E("node"));y(a.a);return c}if(".."==x(a.a))return c=new T(cb,new E("node")),y(a.a),c;if("@"==x(a.a)){var d=Ta;y(a.a);V(a,"Missing attribute name")}else if("::"==x(a.a,1)){if(!/(?![0-9])[\w]/.test(x(a.a).charAt(0)))throw Error("Bad token: "+y(a.a));var e=y(a.a);d=bb[e]||null;if(!d)throw Error("No axis with name: "+e);y(a.a);V(a,"Missing node name")}else d=Za;e=x(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==
|
|
64
|
+
x(a.a,1)){if(!Pa(e))throw Error("Invalid node type: "+e);e=y(a.a);if(!Pa(e))throw Error("Invalid type name: "+e);jb(a,"(");V(a,"Bad nodetype");var f=x(a.a).charAt(0),g=null;if('"'==f||"'"==f)g=lb(a);V(a,"Bad nodetype");kb(a);e=new E(e,g)}else if(e=y(a.a),f=e.indexOf(":"),-1==f)e=new R(e);else{g=e.substring(0,f);if("*"==g)var n="*";else if(n=a.b(g),!n)throw Error("Namespace prefix not declared: "+g);e=e.substr(f+1);e=new R(e,n)}else throw Error("Bad token: "+y(a.a));a=new Ya(ob(a),d.s);return c||new T(d,
|
|
65
|
+
e,a,"//"==b)}function ob(a){for(var b=[];"["==x(a.a);){y(a.a);V(a,"Missing predicate expression.");var c=hb(a);b.push(c);V(a,"Unclosed predicate expression.");jb(a,"]")}return b}function ib(a){if("-"==x(a.a))return y(a.a),new eb(ib(a));var b=mb(a);if("|"!=x(a.a))a=b;else{for(b=[b];"|"==y(a.a);)V(a,"Missing next union location path."),b.push(mb(a));a.a.a--;a=new fb(b)}return a};function pb(a){switch(a.nodeType){case 1:return ea(qb,a);case 9:return pb(a.documentElement);case 11:case 10:case 6:case 12:return rb;default:return a.parentNode?pb(a.parentNode):rb}}function rb(){return null}function qb(a,b){if(a.prefix==b)return a.namespaceURI||"http://www.w3.org/1999/xhtml";var c=a.getAttributeNode("xmlns:"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode.nodeType?qb(a.parentNode,b):null};function sb(a,b){if(!a.length)throw Error("Empty XPath expression.");a=pa(a);if(sa(a))throw Error("Invalid XPath expression.");b?"function"==ba(b)||(b=l(b.lookupNamespaceURI,b)):b=function(){return null};var c=hb(new gb(a,b));if(!sa(a))throw Error("Bad token: "+y(a));this.evaluate=function(d,e){d=c.a(new p(d));return new W(d,e)}}
|
|
66
|
+
function W(a,b){if(0==b)if(a instanceof D)b=4;else if("string"==typeof a)b=2;else if("number"==typeof a)b=1;else if("boolean"==typeof a)b=3;else throw Error("Unexpected evaluation result.");if(2!=b&&1!=b&&3!=b&&!(a instanceof D))throw Error("value could not be converted to the specified type");this.resultType=b;switch(b){case 2:this.stringValue=a instanceof D?Da(a):""+a;break;case 1:this.numberValue=a instanceof D?+Da(a):+a;break;case 3:this.booleanValue=a instanceof D?0<a.l:!!a;break;case 4:case 5:case 6:case 7:var c=
|
|
67
|
+
F(a);var d=[];for(var e=G(c);e;e=G(c))d.push(e);this.snapshotLength=a.l;this.invalidIteratorState=!1;break;case 8:case 9:this.singleNodeValue=Ca(a);break;default:throw Error("Unknown XPathResult type.");}var f=0;this.iterateNext=function(){if(4!=b&&5!=b)throw Error("iterateNext called with wrong result type");return f>=d.length?null:d[f++]};this.snapshotItem=function(g){if(6!=b&&7!=b)throw Error("snapshotItem called with wrong result type");return g>=d.length||0>g?null:d[g]}}W.ANY_TYPE=0;
|
|
68
|
+
W.NUMBER_TYPE=1;W.STRING_TYPE=2;W.BOOLEAN_TYPE=3;W.UNORDERED_NODE_ITERATOR_TYPE=4;W.ORDERED_NODE_ITERATOR_TYPE=5;W.UNORDERED_NODE_SNAPSHOT_TYPE=6;W.ORDERED_NODE_SNAPSHOT_TYPE=7;W.ANY_UNORDERED_NODE_TYPE=8;W.FIRST_ORDERED_NODE_TYPE=9;function tb(a){this.lookupNamespaceURI=pb(a)}
|
|
69
|
+
function ub(a,b){a=a||h;var c=a.Document&&a.Document.prototype||a.document;if(!c.evaluate||b)a.XPathResult=W,c.evaluate=function(d,e,f,g){return(new sb(d,f)).evaluate(e,g)},c.createExpression=function(d,e){return new sb(d,e)},c.createNSResolver=function(d){return new tb(d)}}aa("wgxpath.install",ub);aa("wgxpath.install",ub);var vb=la(),wb=na()||v("iPod"),xb=v("iPad"),yb=v("Android")&&!(ma()||la()||v("Opera")||v("Silk")),zb=ma(),Ab=v("Safari")&&!(ma()||v("Coast")||v("Opera")||v("Edge")||v("Edg/")||v("OPR")||la()||v("Silk")||v("Android"))&&!(na()||v("iPad")||v("iPod"));function X(a){return(a=a.exec(u))?a[1]:""}(function(){if(vb)return X(/Firefox\/([0-9.]+)/);if(zb)return na()||v("iPad")||v("iPod")?X(/CriOS\/([0-9.]+)/):X(/Chrome\/([0-9.]+)/);if(Ab&&!(na()||v("iPad")||v("iPod")))return X(/Version\/([0-9.]+)/);if(wb||xb){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(u);if(a)return a[1]+"."+a[2]}else if(yb)return(a=X(/Android\s+([0-9.]+)/))?a:X(/Version\/([0-9.]+)/);return""})();function Bb(a){var b="tabindex";return"style"==b?Cb(a.style.cssText):(a=a.getAttributeNode(b))&&a.specified?a.value:null}var Db=/[;]+(?=(?:(?:[^"]*"){2})*[^"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\([^()]*\))*[^()]*$)/;function Cb(a){var b=[];q(a.split(Db),function(c){var d=c.indexOf(":");0<d&&(c=[c.slice(0,d),c.slice(d+1)],2==c.length&&b.push(c[0].toLowerCase(),":",c[1],";"))});b=b.join("");return b=";"==b.charAt(b.length-1)?b:b+";"}
|
|
70
|
+
function Y(a,b){b&&"string"!==typeof b&&(b=b.toString());return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)};var Eb="A AREA BUTTON INPUT LABEL SELECT TEXTAREA".split(" "),Fb="text search tel url email password number".split(" ");function Z(a,b){return Y(a,"INPUT")?a.type.toLowerCase()==b:!1}function Gb(a){function b(c){if("inherit"==c.contentEditable){for(c=c.parentNode;c&&1!=c.nodeType&&9!=c.nodeType&&11!=c.nodeType;)c=c.parentNode;return(c=Y(c)?c:null)?b(c):!1}return"true"==c.contentEditable}return void 0!==a.contentEditable?void 0!==a.isContentEditable?a.isContentEditable:b(a):!1}
|
|
71
|
+
function Hb(a){return((Y(a,"TEXTAREA")?!0:Y(a,"INPUT")?0<=fa(Fb,a.type.toLowerCase()):Gb(a)?!0:!1)||(Y(a,"INPUT")?"file"==a.type.toLowerCase():!1)||Z(a,"range")||Z(a,"date")||Z(a,"month")||Z(a,"week")||Z(a,"time")||Z(a,"datetime-local")||Z(a,"color"))&&!a.readOnly};aa("_",function(a){return t(Eb,function(b){return Y(a,b)})||null!=Bb(a)&&0<=Number(a.tabIndex)||Hb(a)});; return this._.apply(null,arguments);}).apply(window, arguments);}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
function(){return (function(){var aa=this||self;function ba(a){return"string"==typeof a}function ca(a,b){a=a.split(".");var c=aa;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}
|
|
2
|
+
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";
|
|
3
|
+
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function ea(a,b,c){return a.call.apply(a.bind,arguments)}function fa(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}
|
|
4
|
+
function ha(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ha=ea:ha=fa;return ha.apply(null,arguments)}function ia(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}function k(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a};/*
|
|
5
|
+
|
|
6
|
+
The MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2007 Cybozu Labs, Inc.
|
|
9
|
+
Copyright (c) 2012 Google Inc.
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to
|
|
13
|
+
deal in the Software without restriction, including without limitation the
|
|
14
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
15
|
+
sell copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions:
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in
|
|
19
|
+
all copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
26
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
27
|
+
IN THE SOFTWARE.
|
|
28
|
+
*/
|
|
29
|
+
function l(a,b,c){this.a=a;this.b=b||1;this.f=c||1};var ja=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},m=Array.prototype.forEach?function(a,b){Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)},q=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,
|
|
30
|
+
b,c)}:function(a,b,c){var d=c;m(a,function(e,f){d=b.call(void 0,d,e,f,a)});return d},r=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1},ka=Array.prototype.every?function(a,b){return Array.prototype.every.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&!b.call(void 0,d[e],
|
|
31
|
+
e,a))return!1;return!0};function la(a){return Array.prototype.concat.apply([],arguments)}function ma(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var na;a:{var oa=aa.navigator;if(oa){var pa=oa.userAgent;if(pa){na=pa;break a}}na=""}function t(a){return-1!=na.indexOf(a)};function qa(){return t("Firefox")||t("FxiOS")}function ra(){return(t("Chrome")||t("CriOS"))&&!t("Edge")};function sa(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};function ta(){return t("iPhone")&&!t("iPod")&&!t("iPad")};function ua(a){this.b=a;this.a=0}function va(a){a=a.match(wa);for(var b=0;b<a.length;b++)xa.test(a[b])&&a.splice(b,1);return new ua(a)}var wa=/\$?(?:(?![0-9-\.])(?:\*|[\w-\.]+):)?(?![0-9-\.])(?:\*|[\w-\.]+)|\/\/|\.\.|::|\d+(?:\.\d*)?|\.\d+|"[^"]*"|'[^']*'|[!<>]=|\s+|./g,xa=/^\s/;function w(a,b){return a.b[a.a+(b||0)]}function x(a){return a.b[a.a++]}function ya(a){return a.b.length<=a.a};function za(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}za.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};za.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};za.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};function Aa(a,b){this.width=a;this.height=b}Aa.prototype.aspectRatio=function(){return this.width/this.height};Aa.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};Aa.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};Aa.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Ba(a){for(;a&&1!=a.nodeType;)a=a.previousSibling;return a}function Ca(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}
|
|
32
|
+
function Da(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.parentNode;return e==f?Ea(a,b):!c&&Ca(e,b)?-1*Fa(a,b):!d&&Ca(f,a)?Fa(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=z(a);c=d.createRange();c.selectNode(a);c.collapse(!0);a=d.createRange();a.selectNode(b);
|
|
33
|
+
a.collapse(!0);return c.compareBoundaryPoints(aa.Range.START_TO_END,a)}function Fa(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return Ea(b,a)}function Ea(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1}function z(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Ga(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}function Ha(a){this.a=a||aa.document||document}
|
|
34
|
+
Ha.prototype.getElementsByTagName=function(a,b){return(b||this.a).getElementsByTagName(String(a))};function A(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||null==b?"":b);if("string"!=typeof b)if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;c=0;var d=[];for(b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return b}
|
|
35
|
+
function B(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function Ia(a,b,c,d,e){return Ja.call(null,a,b,ba(c)?c:null,ba(d)?d:null,e||new C)}
|
|
36
|
+
function Ja(a,b,c,d,e){b.getElementsByName&&d&&"name"==c?(b=b.getElementsByName(d),m(b,function(f){a.a(f)&&e.add(f)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),m(b,function(f){f.className==d&&a.a(f)&&e.add(f)})):a instanceof E?Ka(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.f()),m(b,function(f){B(f,c,d)&&e.add(f)}));return e}function Ka(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)B(b,c,d)&&a.a(b)&&e.add(b),Ka(a,b,c,d,e)};function C(){this.b=this.a=null;this.l=0}function La(a){this.f=a;this.a=this.b=null}function Ma(a,b){if(!a.a)return b;if(!b.a)return a;var c=a.a;b=b.a;for(var d=null,e,f=0;c&&b;)c.f==b.f?(e=c,c=c.a,b=b.a):0<Da(c.f,b.f)?(e=b,b=b.a):(e=c,c=c.a),(e.b=d)?d.a=e:a.a=e,d=e,f++;for(e=c||b;e;)e.b=d,d=d.a=e,f++,e=e.a;a.b=d;a.l=f;return a}function Na(a,b){b=new La(b);b.a=a.a;a.b?a.a.b=b:a.a=a.b=b;a.a=b;a.l++}C.prototype.add=function(a){a=new La(a);a.b=this.b;this.a?this.b.a=a:this.a=this.b=a;this.b=a;this.l++};
|
|
37
|
+
function Oa(a){return(a=a.a)?a.f:null}function Pa(a){return(a=Oa(a))?A(a):""}function F(a,b){return new Qa(a,!!b)}function Qa(a,b){this.f=a;this.b=(this.s=b)?a.b:a.a;this.a=null}function G(a){var b=a.b;if(null==b)return null;var c=a.a=b;a.b=a.s?b.b:b.a;return c.f};function H(a){this.i=a;this.b=this.g=!1;this.f=null}function I(a){return"\n "+a.toString().split("\n").join("\n ")}function Ra(a,b){a.g=b}function Sa(a,b){a.b=b}function K(a,b){a=a.a(b);return a instanceof C?+Pa(a):+a}function L(a,b){a=a.a(b);return a instanceof C?Pa(a):""+a}function M(a,b){a=a.a(b);return a instanceof C?!!a.l:!!a};function Ta(a,b,c){H.call(this,a.i);this.c=a;this.h=b;this.o=c;this.g=b.g||c.g;this.b=b.b||c.b;this.c==Ua&&(c.b||c.g||4==c.i||0==c.i||!b.f?b.b||b.g||4==b.i||0==b.i||!c.f||(this.f={name:c.f.name,u:b}):this.f={name:b.f.name,u:c})}k(Ta,H);
|
|
38
|
+
function O(a,b,c,d,e){b=b.a(d);c=c.a(d);var f;if(b instanceof C&&c instanceof C){b=F(b);for(d=G(b);d;d=G(b))for(e=F(c),f=G(e);f;f=G(e))if(a(A(d),A(f)))return!0;return!1}if(b instanceof C||c instanceof C){b instanceof C?(e=b,d=c):(e=c,d=b);f=F(e);for(var g=typeof d,h=G(f);h;h=G(f)){switch(g){case "number":h=+A(h);break;case "boolean":h=!!A(h);break;case "string":h=A(h);break;default:throw Error("Illegal primitive type for comparison.");}if(e==b&&a(h,d)||e==c&&a(d,h))return!0}return!1}return e?"boolean"==
|
|
39
|
+
typeof b||"boolean"==typeof c?a(!!b,!!c):"number"==typeof b||"number"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}Ta.prototype.a=function(a){return this.c.m(this.h,this.o,a)};Ta.prototype.toString=function(){var a="Binary Expression: "+this.c;a+=I(this.h);return a+=I(this.o)};function Va(a,b,c,d){this.I=a;this.D=b;this.i=c;this.m=d}Va.prototype.toString=function(){return this.I};var Xa={};
|
|
40
|
+
function P(a,b,c,d){if(Xa.hasOwnProperty(a))throw Error("Binary operator already created: "+a);a=new Va(a,b,c,d);return Xa[a.toString()]=a}P("div",6,1,function(a,b,c){return K(a,c)/K(b,c)});P("mod",6,1,function(a,b,c){return K(a,c)%K(b,c)});P("*",6,1,function(a,b,c){return K(a,c)*K(b,c)});P("+",5,1,function(a,b,c){return K(a,c)+K(b,c)});P("-",5,1,function(a,b,c){return K(a,c)-K(b,c)});P("<",4,2,function(a,b,c){return O(function(d,e){return d<e},a,b,c)});
|
|
41
|
+
P(">",4,2,function(a,b,c){return O(function(d,e){return d>e},a,b,c)});P("<=",4,2,function(a,b,c){return O(function(d,e){return d<=e},a,b,c)});P(">=",4,2,function(a,b,c){return O(function(d,e){return d>=e},a,b,c)});var Ua=P("=",3,2,function(a,b,c){return O(function(d,e){return d==e},a,b,c,!0)});P("!=",3,2,function(a,b,c){return O(function(d,e){return d!=e},a,b,c,!0)});P("and",2,2,function(a,b,c){return M(a,c)&&M(b,c)});P("or",1,2,function(a,b,c){return M(a,c)||M(b,c)});function Ya(a,b){if(b.a.length&&4!=a.i)throw Error("Primary expression must evaluate to nodeset if filter has predicate(s).");H.call(this,a.i);this.c=a;this.h=b;this.g=a.g;this.b=a.b}k(Ya,H);Ya.prototype.a=function(a){a=this.c.a(a);return Za(this.h,a)};Ya.prototype.toString=function(){var a="Filter:"+I(this.c);return a+=I(this.h)};function $a(a,b){if(b.length<a.C)throw Error("Function "+a.j+" expects at least"+a.C+" arguments, "+b.length+" given");if(null!==a.B&&b.length>a.B)throw Error("Function "+a.j+" expects at most "+a.B+" arguments, "+b.length+" given");a.H&&m(b,function(c,d){if(4!=c.i)throw Error("Argument "+d+" to function "+a.j+" is not of type Nodeset: "+c);});H.call(this,a.i);this.v=a;this.c=b;Ra(this,a.g||r(b,function(c){return c.g}));Sa(this,a.G&&!b.length||a.F&&!!b.length||r(b,function(c){return c.b}))}k($a,H);
|
|
42
|
+
$a.prototype.a=function(a){return this.v.m.apply(null,la(a,this.c))};$a.prototype.toString=function(){var a="Function: "+this.v;if(this.c.length){var b=q(this.c,function(c,d){return c+I(d)},"Arguments:");a+=I(b)}return a};function ab(a,b,c,d,e,f,g,h){this.j=a;this.i=b;this.g=c;this.G=d;this.F=!1;this.m=e;this.C=f;this.B=void 0!==g?g:f;this.H=!!h}ab.prototype.toString=function(){return this.j};var bb={};
|
|
43
|
+
function Q(a,b,c,d,e,f,g,h){if(bb.hasOwnProperty(a))throw Error("Function already created: "+a+".");bb[a]=new ab(a,b,c,d,e,f,g,h)}Q("boolean",2,!1,!1,function(a,b){return M(b,a)},1);Q("ceiling",1,!1,!1,function(a,b){return Math.ceil(K(b,a))},1);Q("concat",3,!1,!1,function(a,b){return q(ma(arguments,1),function(c,d){return c+L(d,a)},"")},2,null);Q("contains",2,!1,!1,function(a,b,c){b=L(b,a);a=L(c,a);return-1!=b.indexOf(a)},2);Q("count",1,!1,!1,function(a,b){return b.a(a).l},1,1,!0);
|
|
44
|
+
Q("false",2,!1,!1,function(){return!1},0);Q("floor",1,!1,!1,function(a,b){return Math.floor(K(b,a))},1);Q("id",4,!1,!1,function(a,b){var c=a.a,d=9==c.nodeType?c:c.ownerDocument;a=L(b,a).split(/\s+/);var e=[];m(a,function(g){g=d.getElementById(g);!g||0<=ja(e,g)||e.push(g)});e.sort(Da);var f=new C;m(e,function(g){f.add(g)});return f},1);Q("lang",2,!1,!1,function(){return!1},1);Q("last",1,!0,!1,function(a){if(1!=arguments.length)throw Error("Function last expects ()");return a.f},0);
|
|
45
|
+
Q("local-name",3,!1,!0,function(a,b){return(a=b?Oa(b.a(a)):a.a)?a.localName||a.nodeName.toLowerCase():""},0,1,!0);Q("name",3,!1,!0,function(a,b){return(a=b?Oa(b.a(a)):a.a)?a.nodeName.toLowerCase():""},0,1,!0);Q("namespace-uri",3,!0,!1,function(){return""},0,1,!0);Q("normalize-space",3,!1,!0,function(a,b){return(b?L(b,a):A(a.a)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);Q("not",2,!1,!1,function(a,b){return!M(b,a)},1);Q("number",1,!1,!0,function(a,b){return b?K(b,a):+A(a.a)},0,1);
|
|
46
|
+
Q("position",1,!0,!1,function(a){return a.b},0);Q("round",1,!1,!1,function(a,b){return Math.round(K(b,a))},1);Q("starts-with",2,!1,!1,function(a,b,c){b=L(b,a);a=L(c,a);return 0==b.lastIndexOf(a,0)},2);Q("string",3,!1,!0,function(a,b){return b?L(b,a):A(a.a)},0,1);Q("string-length",1,!1,!0,function(a,b){return(b?L(b,a):A(a.a)).length},0,1);
|
|
47
|
+
Q("substring",3,!1,!1,function(a,b,c,d){c=K(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?K(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=L(b,a);return Infinity==d?a.substring(e):a.substring(e,c+Math.round(d))},2,3);Q("substring-after",3,!1,!1,function(a,b,c){b=L(b,a);a=L(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
|
|
48
|
+
Q("substring-before",3,!1,!1,function(a,b,c){b=L(b,a);a=L(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);Q("sum",1,!1,!1,function(a,b){a=F(b.a(a));b=0;for(var c=G(a);c;c=G(a))b+=+A(c);return b},1,1,!0);Q("translate",3,!1,!1,function(a,b,c,d){b=L(b,a);c=L(c,a);var e=L(d,a);a={};for(d=0;d<c.length;d++){var f=c.charAt(d);f in a||(a[f]=e.charAt(d))}c="";for(d=0;d<b.length;d++)f=b.charAt(d),c+=f in a?a[f]:f;return c},3);Q("true",2,!1,!1,function(){return!0},0);function E(a,b){this.h=a;this.c=void 0!==b?b:null;this.b=null;switch(a){case "comment":this.b=8;break;case "text":this.b=3;break;case "processing-instruction":this.b=7;break;case "node":break;default:throw Error("Unexpected argument");}}function cb(a){return"comment"==a||"text"==a||"processing-instruction"==a||"node"==a}E.prototype.a=function(a){return null===this.b||this.b==a.nodeType};E.prototype.f=function(){return this.h};
|
|
49
|
+
E.prototype.toString=function(){var a="Kind Test: "+this.h;null===this.c||(a+=I(this.c));return a};function db(a){H.call(this,3);this.c=a.substring(1,a.length-1)}k(db,H);db.prototype.a=function(){return this.c};db.prototype.toString=function(){return"Literal: "+this.c};function eb(a,b){this.j=a.toLowerCase();a="*"==this.j?"*":"http://www.w3.org/1999/xhtml";this.b=b?b.toLowerCase():a}eb.prototype.a=function(a){var b=a.nodeType;if(1!=b&&2!=b)return!1;b=void 0!==a.localName?a.localName:a.nodeName;return"*"!=this.j&&this.j!=b.toLowerCase()?!1:"*"==this.b?!0:this.b==(a.namespaceURI?a.namespaceURI.toLowerCase():"http://www.w3.org/1999/xhtml")};eb.prototype.f=function(){return this.j};
|
|
50
|
+
eb.prototype.toString=function(){return"Name Test: "+("http://www.w3.org/1999/xhtml"==this.b?"":this.b+":")+this.j};function fb(a){H.call(this,1);this.c=a}k(fb,H);fb.prototype.a=function(){return this.c};fb.prototype.toString=function(){return"Number: "+this.c};function gb(a,b){H.call(this,a.i);this.h=a;this.c=b;this.g=a.g;this.b=a.b;1==this.c.length&&(a=this.c[0],a.A||a.c!=hb||(a=a.o,"*"!=a.f()&&(this.f={name:a.f(),u:null})))}k(gb,H);function ib(){H.call(this,4)}k(ib,H);ib.prototype.a=function(a){var b=new C;a=a.a;9==a.nodeType?b.add(a):b.add(a.ownerDocument);return b};ib.prototype.toString=function(){return"Root Helper Expression"};function jb(){H.call(this,4)}k(jb,H);jb.prototype.a=function(a){var b=new C;b.add(a.a);return b};jb.prototype.toString=function(){return"Context Helper Expression"};
|
|
51
|
+
function kb(a){return"/"==a||"//"==a}gb.prototype.a=function(a){var b=this.h.a(a);if(!(b instanceof C))throw Error("Filter expression must evaluate to nodeset.");a=this.c;for(var c=0,d=a.length;c<d&&b.l;c++){var e=a[c],f=F(b,e.c.s);if(e.g||e.c!=lb)if(e.g||e.c!=mb){var g=G(f);for(b=e.a(new l(g));null!=(g=G(f));)g=e.a(new l(g)),b=Ma(b,g)}else g=G(f),b=e.a(new l(g));else{for(g=G(f);(b=G(f))&&(!g.contains||g.contains(b))&&b.compareDocumentPosition(g)&8;g=b);b=e.a(new l(g))}}return b};
|
|
52
|
+
gb.prototype.toString=function(){var a="Path Expression:"+I(this.h);if(this.c.length){var b=q(this.c,function(c,d){return c+I(d)},"Steps:");a+=I(b)}return a};function nb(a,b){this.a=a;this.s=!!b}
|
|
53
|
+
function Za(a,b,c){for(c=c||0;c<a.a.length;c++)for(var d=a.a[c],e=F(b),f=b.l,g,h=0;g=G(e);h++){var n=a.s?f-h:h+1;g=d.a(new l(g,n,f));if("number"==typeof g)n=n==g;else if("string"==typeof g||"boolean"==typeof g)n=!!g;else if(g instanceof C)n=0<g.l;else throw Error("Predicate.evaluate returned an unexpected type.");if(!n){n=e;g=n.f;var y=n.a;if(!y)throw Error("Next must be called at least once before remove.");var p=y.b;y=y.a;p?p.a=y:g.a=y;y?y.b=p:g.b=p;g.l--;n.a=null}}return b}
|
|
54
|
+
nb.prototype.toString=function(){return q(this.a,function(a,b){return a+I(b)},"Predicates:")};function R(a,b,c,d){H.call(this,4);this.c=a;this.o=b;this.h=c||new nb([]);this.A=!!d;b=this.h;b=0<b.a.length?b.a[0].f:null;a.J&&b&&(this.f={name:b.name,u:b.u});a:{a=this.h;for(b=0;b<a.a.length;b++)if(c=a.a[b],c.g||1==c.i||0==c.i){a=!0;break a}a=!1}this.g=a}k(R,H);
|
|
55
|
+
R.prototype.a=function(a){var b=a.a,c=this.f,d=null,e=null,f=0;c&&(d=c.name,e=c.u?L(c.u,a):null,f=1);if(this.A)if(this.g||this.c!=ob)if(b=F((new R(pb,new E("node"))).a(a)),c=G(b))for(a=this.m(c,d,e,f);null!=(c=G(b));)a=Ma(a,this.m(c,d,e,f));else a=new C;else a=Ia(this.o,b,d,e),a=Za(this.h,a,f);else a=this.m(a.a,d,e,f);return a};R.prototype.m=function(a,b,c,d){a=this.c.v(this.o,a,b,c);return a=Za(this.h,a,d)};
|
|
56
|
+
R.prototype.toString=function(){var a="Step:"+I("Operator: "+(this.A?"//":"/"));this.c.j&&(a+=I("Axis: "+this.c));a+=I(this.o);if(this.h.a.length){var b=q(this.h.a,function(c,d){return c+I(d)},"Predicates:");a+=I(b)}return a};function qb(a,b,c,d){this.j=a;this.v=b;this.s=c;this.J=d}qb.prototype.toString=function(){return this.j};var rb={};function S(a,b,c,d){if(rb.hasOwnProperty(a))throw Error("Axis already created: "+a);b=new qb(a,b,c,!!d);return rb[a]=b}
|
|
57
|
+
S("ancestor",function(a,b){for(var c=new C;b=b.parentNode;)a.a(b)&&Na(c,b);return c},!0);S("ancestor-or-self",function(a,b){var c=new C;do a.a(b)&&Na(c,b);while(b=b.parentNode);return c},!0);
|
|
58
|
+
var hb=S("attribute",function(a,b){var c=new C,d=a.f();if(b=b.attributes)if(a instanceof E&&null===a.b||"*"==d)for(a=0;d=b[a];a++)c.add(d);else(d=b.getNamedItem(d))&&c.add(d);return c},!1),ob=S("child",function(a,b,c,d,e){c=ba(c)?c:null;d=ba(d)?d:null;e=e||new C;for(b=b.firstChild;b;b=b.nextSibling)B(b,c,d)&&a.a(b)&&e.add(b);return e},!1,!0);S("descendant",Ia,!1,!0);
|
|
59
|
+
var pb=S("descendant-or-self",function(a,b,c,d){var e=new C;B(b,c,d)&&a.a(b)&&e.add(b);return Ia(a,b,c,d,e)},!1,!0),lb=S("following",function(a,b,c,d){var e=new C;do for(var f=b;f=f.nextSibling;)B(f,c,d)&&a.a(f)&&e.add(f),e=Ia(a,f,c,d,e);while(b=b.parentNode);return e},!1,!0);S("following-sibling",function(a,b){for(var c=new C;b=b.nextSibling;)a.a(b)&&c.add(b);return c},!1);S("namespace",function(){return new C},!1);
|
|
60
|
+
var sb=S("parent",function(a,b){var c=new C;if(9==b.nodeType)return c;if(2==b.nodeType)return c.add(b.ownerElement),c;b=b.parentNode;a.a(b)&&c.add(b);return c},!1),mb=S("preceding",function(a,b,c,d){var e=new C,f=[];do f.unshift(b);while(b=b.parentNode);for(var g=1,h=f.length;g<h;g++){var n=[];for(b=f[g];b=b.previousSibling;)n.unshift(b);for(var y=0,p=n.length;y<p;y++)b=n[y],B(b,c,d)&&a.a(b)&&e.add(b),e=Ia(a,b,c,d,e)}return e},!0,!0);
|
|
61
|
+
S("preceding-sibling",function(a,b){for(var c=new C;b=b.previousSibling;)a.a(b)&&Na(c,b);return c},!0);var tb=S("self",function(a,b){var c=new C;a.a(b)&&c.add(b);return c},!1);function ub(a){H.call(this,1);this.c=a;this.g=a.g;this.b=a.b}k(ub,H);ub.prototype.a=function(a){return-K(this.c,a)};ub.prototype.toString=function(){return"Unary Expression: -"+I(this.c)};function vb(a){H.call(this,4);this.c=a;Ra(this,r(this.c,function(b){return b.g}));Sa(this,r(this.c,function(b){return b.b}))}k(vb,H);vb.prototype.a=function(a){var b=new C;m(this.c,function(c){c=c.a(a);if(!(c instanceof C))throw Error("Path expression must evaluate to NodeSet.");b=Ma(b,c)});return b};vb.prototype.toString=function(){return q(this.c,function(a,b){return a+I(b)},"Union Expression:")};function wb(a,b){this.a=a;this.b=b}function xb(a){for(var b,c=[];;){T(a,"Missing right hand side of binary expression.");b=yb(a);var d=x(a.a);if(!d)break;var e=(d=Xa[d]||null)&&d.D;if(!e){a.a.a--;break}for(;c.length&&e<=c[c.length-1].D;)b=new Ta(c.pop(),c.pop(),b);c.push(b,d)}for(;c.length;)b=new Ta(c.pop(),c.pop(),b);return b}function T(a,b){if(ya(a.a))throw Error(b);}function zb(a,b){a=x(a.a);if(a!=b)throw Error("Bad token, expected: "+b+" got: "+a);}
|
|
62
|
+
function Ab(a){a=x(a.a);if(")"!=a)throw Error("Bad token: "+a);}function Bb(a){a=x(a.a);if(2>a.length)throw Error("Unclosed literal string");return new db(a)}
|
|
63
|
+
function Cb(a){var b=[];if(kb(w(a.a))){var c=x(a.a);var d=w(a.a);if("/"==c&&(ya(a.a)||"."!=d&&".."!=d&&"@"!=d&&"*"!=d&&!/(?![0-9])[\w]/.test(d)))return new ib;d=new ib;T(a,"Missing next location step.");c=Fb(a,c);b.push(c)}else{a:{c=w(a.a);d=c.charAt(0);switch(d){case "$":throw Error("Variable reference not allowed in HTML XPath");case "(":x(a.a);c=xb(a);T(a,'unclosed "("');zb(a,")");break;case '"':case "'":c=Bb(a);break;default:if(isNaN(+c))if(!cb(c)&&/(?![0-9])[\w]/.test(d)&&"("==w(a.a,1)){c=x(a.a);
|
|
64
|
+
c=bb[c]||null;x(a.a);for(d=[];")"!=w(a.a);){T(a,"Missing function argument list.");d.push(xb(a));if(","!=w(a.a))break;x(a.a)}T(a,"Unclosed function argument list.");Ab(a);c=new $a(c,d)}else{c=null;break a}else c=new fb(+x(a.a))}"["==w(a.a)&&(d=new nb(Gb(a)),c=new Ya(c,d))}if(c)if(kb(w(a.a)))d=c;else return c;else c=Fb(a,"/"),d=new jb,b.push(c)}for(;kb(w(a.a));)c=x(a.a),T(a,"Missing next location step."),c=Fb(a,c),b.push(c);return new gb(d,b)}
|
|
65
|
+
function Fb(a,b){if("/"!=b&&"//"!=b)throw Error('Step op should be "/" or "//"');if("."==w(a.a)){var c=new R(tb,new E("node"));x(a.a);return c}if(".."==w(a.a))return c=new R(sb,new E("node")),x(a.a),c;if("@"==w(a.a)){var d=hb;x(a.a);T(a,"Missing attribute name")}else if("::"==w(a.a,1)){if(!/(?![0-9])[\w]/.test(w(a.a).charAt(0)))throw Error("Bad token: "+x(a.a));var e=x(a.a);d=rb[e]||null;if(!d)throw Error("No axis with name: "+e);x(a.a);T(a,"Missing node name")}else d=ob;e=w(a.a);if(/(?![0-9])[\w\*]/.test(e.charAt(0)))if("("==
|
|
66
|
+
w(a.a,1)){if(!cb(e))throw Error("Invalid node type: "+e);e=x(a.a);if(!cb(e))throw Error("Invalid type name: "+e);zb(a,"(");T(a,"Bad nodetype");var f=w(a.a).charAt(0),g=null;if('"'==f||"'"==f)g=Bb(a);T(a,"Bad nodetype");Ab(a);e=new E(e,g)}else if(e=x(a.a),f=e.indexOf(":"),-1==f)e=new eb(e);else{g=e.substring(0,f);if("*"==g)var h="*";else if(h=a.b(g),!h)throw Error("Namespace prefix not declared: "+g);e=e.substr(f+1);e=new eb(e,h)}else throw Error("Bad token: "+x(a.a));a=new nb(Gb(a),d.s);return c||
|
|
67
|
+
new R(d,e,a,"//"==b)}function Gb(a){for(var b=[];"["==w(a.a);){x(a.a);T(a,"Missing predicate expression.");var c=xb(a);b.push(c);T(a,"Unclosed predicate expression.");zb(a,"]")}return b}function yb(a){if("-"==w(a.a))return x(a.a),new ub(yb(a));var b=Cb(a);if("|"!=w(a.a))a=b;else{for(b=[b];"|"==x(a.a);)T(a,"Missing next union location path."),b.push(Cb(a));a.a.a--;a=new vb(b)}return a};function Hb(a){switch(a.nodeType){case 1:return ia(Ib,a);case 9:return Hb(a.documentElement);case 11:case 10:case 6:case 12:return Jb;default:return a.parentNode?Hb(a.parentNode):Jb}}function Jb(){return null}function Ib(a,b){if(a.prefix==b)return a.namespaceURI||"http://www.w3.org/1999/xhtml";var c=a.getAttributeNode("xmlns:"+b);return c&&c.specified?c.value||null:a.parentNode&&9!=a.parentNode.nodeType?Ib(a.parentNode,b):null};function Kb(a,b){if(!a.length)throw Error("Empty XPath expression.");a=va(a);if(ya(a))throw Error("Invalid XPath expression.");b?"function"==da(b)||(b=ha(b.lookupNamespaceURI,b)):b=function(){return null};var c=xb(new wb(a,b));if(!ya(a))throw Error("Bad token: "+x(a));this.evaluate=function(d,e){d=c.a(new l(d));return new U(d,e)}}
|
|
68
|
+
function U(a,b){if(0==b)if(a instanceof C)b=4;else if("string"==typeof a)b=2;else if("number"==typeof a)b=1;else if("boolean"==typeof a)b=3;else throw Error("Unexpected evaluation result.");if(2!=b&&1!=b&&3!=b&&!(a instanceof C))throw Error("value could not be converted to the specified type");this.resultType=b;switch(b){case 2:this.stringValue=a instanceof C?Pa(a):""+a;break;case 1:this.numberValue=a instanceof C?+Pa(a):+a;break;case 3:this.booleanValue=a instanceof C?0<a.l:!!a;break;case 4:case 5:case 6:case 7:var c=
|
|
69
|
+
F(a);var d=[];for(var e=G(c);e;e=G(c))d.push(e);this.snapshotLength=a.l;this.invalidIteratorState=!1;break;case 8:case 9:this.singleNodeValue=Oa(a);break;default:throw Error("Unknown XPathResult type.");}var f=0;this.iterateNext=function(){if(4!=b&&5!=b)throw Error("iterateNext called with wrong result type");return f>=d.length?null:d[f++]};this.snapshotItem=function(g){if(6!=b&&7!=b)throw Error("snapshotItem called with wrong result type");return g>=d.length||0>g?null:d[g]}}U.ANY_TYPE=0;
|
|
70
|
+
U.NUMBER_TYPE=1;U.STRING_TYPE=2;U.BOOLEAN_TYPE=3;U.UNORDERED_NODE_ITERATOR_TYPE=4;U.ORDERED_NODE_ITERATOR_TYPE=5;U.UNORDERED_NODE_SNAPSHOT_TYPE=6;U.ORDERED_NODE_SNAPSHOT_TYPE=7;U.ANY_UNORDERED_NODE_TYPE=8;U.FIRST_ORDERED_NODE_TYPE=9;function Lb(a){this.lookupNamespaceURI=Hb(a)}
|
|
71
|
+
function Mb(a,b){a=a||aa;var c=a.Document&&a.Document.prototype||a.document;if(!c.evaluate||b)a.XPathResult=U,c.evaluate=function(d,e,f,g){return(new Kb(d,f)).evaluate(e,g)},c.createExpression=function(d,e){return new Kb(d,e)},c.createNSResolver=function(d){return new Lb(d)}}ca("wgxpath.install",Mb);ca("wgxpath.install",Mb);var Nb={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",
|
|
72
|
+
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",
|
|
73
|
+
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",
|
|
74
|
+
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
|
|
75
|
+
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
|
|
76
|
+
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 Ob="backgroundColor borderTopColor borderRightColor borderBottomColor borderLeftColor color outlineColor".split(" "),Pb=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/,Qb=/^#(?:[0-9a-f]{3}){1,2}$/i,Rb=/^(?:rgba)?\((\d{1,3}),\s?(\d{1,3}),\s?(\d{1,3}),\s?(0|1|0\.\d*)\)$/i,Sb=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;function Tb(a,b){this.code=a;this.a=V[a]||Ub;this.message=b||"";a=this.a.replace(/((?:^|\s+)[a-z])/g,function(c){return c.toUpperCase().replace(/^[\s\xa0]+/g,"")});b=a.length-5;if(0>b||a.indexOf("Error",b)!=b)a+="Error";this.name=a;a=Error(this.message);a.name=this.name;this.stack=a.stack||""}k(Tb,Error);var Ub="unknown error",V={15:"element not selectable",11:"element not visible"};V[31]=Ub;V[30]=Ub;V[24]="invalid cookie domain";V[29]="invalid element coordinates";V[12]="invalid element state";
|
|
77
|
+
V[32]="invalid selector";V[51]="invalid selector";V[52]="invalid selector";V[17]="javascript error";V[405]="unsupported operation";V[34]="move target out of bounds";V[27]="no such alert";V[7]="no such element";V[8]="no such frame";V[23]="no such window";V[28]="script timeout";V[33]="session not created";V[10]="stale element reference";V[21]="timeout";V[25]="unable to set cookie";V[26]="unexpected alert open";V[13]=Ub;V[9]="unknown command";var Vb=qa(),Wb=ta()||t("iPod"),Xb=t("iPad"),Yb=t("Android")&&!(ra()||qa()||t("Opera")||t("Silk")),Zb=ra(),$b=t("Safari")&&!(ra()||t("Coast")||t("Opera")||t("Edge")||t("Edg/")||t("OPR")||qa()||t("Silk")||t("Android"))&&!(ta()||t("iPad")||t("iPod"));function ac(a){return(a=a.exec(na))?a[1]:""}(function(){if(Vb)return ac(/Firefox\/([0-9.]+)/);if(Zb)return ta()||t("iPad")||t("iPod")?ac(/CriOS\/([0-9.]+)/):ac(/Chrome\/([0-9.]+)/);if($b&&!(ta()||t("iPad")||t("iPod")))return ac(/Version\/([0-9.]+)/);if(Wb||Xb){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(na);if(a)return a[1]+"."+a[2]}else if(Yb)return(a=ac(/Android\s+([0-9.]+)/))?a:ac(/Version\/([0-9.]+)/);return""})();function W(a,b){b&&"string"!==typeof b&&(b=b.toString());return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)};var bc=function(){var a={K:"http://www.w3.org/2000/svg"};return function(b){return a[b]||null}}();
|
|
78
|
+
function cc(a,b){var c=z(a);if(!c.documentElement)return null;Yb&&Mb(c?c.parentWindow||c.defaultView:window);try{for(var d=c.createNSResolver?c.createNSResolver(c.documentElement):bc,e={},f=c.getElementsByTagName("*"),g=0;g<f.length;++g){var h=f[g],n=h.namespaceURI;if(n&&!e[n]){var y=h.lookupPrefix(n);if(!y){var p=n.match(".*/(\\w+)/?$");y=p?p[1]:"xhtml"}e[n]=y}}var D={},J;for(J in e)D[e[J]]=J;d=function(N){return D[N]||null};try{return c.evaluate(b,a,d,9,null)}catch(N){if("TypeError"===N.name)return d=
|
|
79
|
+
c.createNSResolver?c.createNSResolver(c.documentElement):bc,c.evaluate(b,a,d,9,null);throw N;}}catch(N){throw new Tb(32,"Unable to locate an element with the xpath expression "+b+" because of the following error:\n"+N);}}
|
|
80
|
+
function dc(a,b){var c=function(){var d=cc(b,a);return d?d.singleNodeValue||null:b.selectSingleNode?(d=z(b),d.setProperty&&d.setProperty("SelectionLanguage","XPath"),b.selectSingleNode(a)):null}();if(null!==c&&(!c||1!=c.nodeType))throw new Tb(32,'The result of the xpath expression "'+a+'" is: '+c+". It should be an element.");return c};function ec(a,b,c,d){this.c=a;this.a=b;this.b=c;this.f=d}ec.prototype.ceil=function(){this.c=Math.ceil(this.c);this.a=Math.ceil(this.a);this.b=Math.ceil(this.b);this.f=Math.ceil(this.f);return this};ec.prototype.floor=function(){this.c=Math.floor(this.c);this.a=Math.floor(this.a);this.b=Math.floor(this.b);this.f=Math.floor(this.f);return this};ec.prototype.round=function(){this.c=Math.round(this.c);this.a=Math.round(this.a);this.b=Math.round(this.b);this.f=Math.round(this.f);return this};function X(a,b,c,d){this.a=a;this.b=b;this.width=c;this.height=d}X.prototype.ceil=function(){this.a=Math.ceil(this.a);this.b=Math.ceil(this.b);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};X.prototype.floor=function(){this.a=Math.floor(this.a);this.b=Math.floor(this.b);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
|
|
81
|
+
X.prototype.round=function(){this.a=Math.round(this.a);this.b=Math.round(this.b);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var fc="function"===typeof ShadowRoot,gc="BUTTON INPUT OPTGROUP OPTION SELECT TEXTAREA".split(" ");function hc(a){return r(gc,function(b){return W(a,b)})?a.disabled?!1:a.parentNode&&1==a.parentNode.nodeType&&W(a,"OPTGROUP")||W(a,"OPTION")?hc(a.parentNode):!Ga(a,function(b){var c=b.parentNode;if(c&&W(c,"FIELDSET")&&c.disabled){if(!W(b,"LEGEND"))return!0;for(;b=void 0!==b.previousElementSibling?b.previousElementSibling:Ba(b.previousSibling);)if(W(b,"LEGEND"))return!0}return!1},!0):!0}
|
|
82
|
+
function ic(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return W(a)?a:null}
|
|
83
|
+
function Y(a,b){b=sa(b);if("float"==b||"cssFloat"==b||"styleFloat"==b)b="cssFloat";a:{var c=b;var d=z(a);if(d.defaultView&&d.defaultView.getComputedStyle&&(d=d.defaultView.getComputedStyle(a,null))){c=d[c]||d.getPropertyValue(c)||"";break a}c=""}a=c||jc(a,b);if(null===a)a=null;else if(0<=ja(Ob,b)){b:{var e=a.match(Rb);if(e&&(b=Number(e[1]),c=Number(e[2]),d=Number(e[3]),e=Number(e[4]),0<=b&&255>=b&&0<=c&&255>=c&&0<=d&&255>=d&&0<=e&&1>=e)){b=[b,c,d,e];break b}b=null}if(!b)b:{if(d=a.match(Sb))if(b=Number(d[1]),
|
|
84
|
+
c=Number(d[2]),d=Number(d[3]),0<=b&&255>=b&&0<=c&&255>=c&&0<=d&&255>=d){b=[b,c,d,1];break b}b=null}if(!b)b:{b=a.toLowerCase();c=Nb[b.toLowerCase()];if(!c&&(c="#"==b.charAt(0)?b:"#"+b,4==c.length&&(c=c.replace(Pb,"#$1$1$2$2$3$3")),!Qb.test(c))){b=null;break b}b=[parseInt(c.substr(1,2),16),parseInt(c.substr(3,2),16),parseInt(c.substr(5,2),16),1]}a=b?"rgba("+b.join(", ")+")":a}return a}
|
|
85
|
+
function jc(a,b){var c=a.currentStyle||a.style,d=c[b];void 0===d&&"function"==da(c.getPropertyValue)&&(d=c.getPropertyValue(b));return"inherit"!=d?void 0!==d?d:null:(a=ic(a))?jc(a,b):null}
|
|
86
|
+
function kc(a,b,c){function d(g){var h=lc(g);return 0<h.height&&0<h.width?!0:W(g,"PATH")&&(0<h.height||0<h.width)?(g=Y(g,"stroke-width"),!!g&&0<parseInt(g,10)):"hidden"!=Y(g,"overflow")&&r(g.childNodes,function(n){return 3==n.nodeType||W(n)&&d(n)})}function e(g){return mc(g)==Z&&ka(g.childNodes,function(h){return!W(h)||e(h)||!d(h)})}if(!W(a))throw Error("Argument to isShown must be of type Element");if(W(a,"BODY"))return!0;if(W(a,"OPTION")||W(a,"OPTGROUP"))return a=Ga(a,function(g){return W(g,"SELECT")}),
|
|
87
|
+
!!a&&kc(a,!0,c);var f=nc(a);if(f)return!!f.image&&0<f.rect.width&&0<f.rect.height&&kc(f.image,b,c);if(W(a,"INPUT")&&"hidden"==a.type.toLowerCase()||W(a,"NOSCRIPT"))return!1;f=Y(a,"visibility");return"collapse"!=f&&"hidden"!=f&&c(a)&&(b||0!=oc(a))&&d(a)?!e(a):!1}
|
|
88
|
+
function pc(a){function b(c){if(W(c)&&"none"==Y(c,"display"))return!1;var d;if((d=c.parentNode)&&d.shadowRoot&&void 0!==c.assignedSlot)d=c.assignedSlot?c.assignedSlot.parentNode:null;else if(c.getDestinationInsertionPoints){var e=c.getDestinationInsertionPoints();0<e.length&&(d=e[e.length-1])}if(fc&&d instanceof ShadowRoot){if(d.host.shadowRoot!==d)return!1;d=d.host}return!d||9!=d.nodeType&&11!=d.nodeType?d&&W(d,"DETAILS")&&!d.open&&!W(c,"SUMMARY")?!1:!!d&&b(d):!0}return kc(a,!0,b)}var Z="hidden";
|
|
89
|
+
function mc(a){function b(u){function v(Wa){if(Wa==g)return!0;var Db=Y(Wa,"display");return 0==Db.lastIndexOf("inline",0)||"contents"==Db||"absolute"==Eb&&"static"==Y(Wa,"position")?!1:!0}var Eb=Y(u,"position");if("fixed"==Eb)return y=!0,u==g?null:g;for(u=ic(u);u&&!v(u);)u=ic(u);return u}function c(u){var v=u;if("visible"==n)if(u==g&&h)v=h;else if(u==h)return{x:"visible",y:"visible"};v={x:Y(v,"overflow-x"),y:Y(v,"overflow-y")};u==g&&(v.x="visible"==v.x?"auto":v.x,v.y="visible"==v.y?"auto":v.y);return v}
|
|
90
|
+
function d(u){if(u==g){var v=(new Ha(f)).a;u=v.scrollingElement?v.scrollingElement:v.body||v.documentElement;v=v.parentWindow||v.defaultView;u=new za(v.pageXOffset||u.scrollLeft,v.pageYOffset||u.scrollTop)}else u=new za(u.scrollLeft,u.scrollTop);return u}var e=qc(a),f=z(a),g=f.documentElement,h=f.body,n=Y(g,"overflow"),y;for(a=b(a);a;a=b(a)){var p=c(a);if("visible"!=p.x||"visible"!=p.y){var D=lc(a);if(0==D.width||0==D.height)return Z;var J=e.a<D.a,N=e.b<D.b;if(J&&"hidden"==p.x||N&&"hidden"==p.y)return Z;
|
|
91
|
+
if(J&&"visible"!=p.x||N&&"visible"!=p.y){J=d(a);N=e.b<D.b-J.y;if(e.a<D.a-J.x&&"visible"!=p.x||N&&"visible"!=p.x)return Z;e=mc(a);return e==Z?Z:"scroll"}J=e.f>=D.a+D.width;D=e.c>=D.b+D.height;if(J&&"hidden"==p.x||D&&"hidden"==p.y)return Z;if(J&&"visible"!=p.x||D&&"visible"!=p.y){if(y&&(p=d(a),e.f>=g.scrollWidth-p.x||e.a>=g.scrollHeight-p.y))return Z;e=mc(a);return e==Z?Z:"scroll"}}}return"none"}
|
|
92
|
+
function lc(a){var b=nc(a);if(b)return b.rect;if(W(a,"HTML"))return a=z(a),a=((a?a.parentWindow||a.defaultView:window)||window).document,a="CSS1Compat"==a.compatMode?a.documentElement:a.body,a=new Aa(a.clientWidth,a.clientHeight),new X(0,0,a.width,a.height);try{var c=a.getBoundingClientRect()}catch(d){return new X(0,0,0,0)}return new X(c.left,c.top,c.right-c.left,c.bottom-c.top)}
|
|
93
|
+
function nc(a){var b=W(a,"MAP");if(!b&&!W(a,"AREA"))return null;var c=b?a:W(a.parentNode,"MAP")?a.parentNode:null,d=null,e=null;c&&c.name&&(d=dc('/descendant::*[@usemap = "#'+c.name+'"]',z(c)))&&(e=lc(d),b||"default"==a.shape.toLowerCase()||(a=rc(a),b=Math.min(Math.max(a.a,0),e.width),c=Math.min(Math.max(a.b,0),e.height),e=new X(b+e.a,c+e.b,Math.min(a.width,e.width-b),Math.min(a.height,e.height-c))));return{image:d,rect:e||new X(0,0,0,0)}}
|
|
94
|
+
function rc(a){var b=a.shape.toLowerCase();a=a.coords.split(",");if("rect"==b&&4==a.length){b=a[0];var c=a[1];return new X(b,c,a[2]-b,a[3]-c)}if("circle"==b&&3==a.length)return b=a[2],new X(a[0]-b,a[1]-b,2*b,2*b);if("poly"==b&&2<a.length){b=a[0];c=a[1];for(var d=b,e=c,f=2;f+1<a.length;f+=2)b=Math.min(b,a[f]),d=Math.max(d,a[f]),c=Math.min(c,a[f+1]),e=Math.max(e,a[f+1]);return new X(b,c,d-b,e-c)}return new X(0,0,0,0)}function qc(a){a=lc(a);return new ec(a.b,a.a+a.width,a.b+a.height,a.a)}
|
|
95
|
+
function oc(a){var b=1,c=Y(a,"opacity");c&&(b=Number(c));(a=ic(a))&&(b*=oc(a));return b};ca("_",function(a){return pc(a)&&hc(a)&&"none"!=Y(a,"pointer-events")});; return this._.apply(null,arguments);}).apply(window, arguments);}
|