All Downloads are FREE. Search and download functionalities are using the official Maven repository.

atoms.getLocationInView_ios.js Maven / Gradle / Ivy

The newest version!
function(){return function(){function g(a){throw a;}var k=void 0,l=!0,m=null,n=!1;function p(a){return function(){return this[a]}}function aa(a){return function(){return a}}var q=this;
function ba(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function s(a){return"string"==typeof a}Math.floor(2147483648*Math.random()).toString(36);function t(a,b){function c(){}c.prototype=b.prototype;a.ba=b.prototype;a.prototype=new c};function v(a){Error.captureStackTrace?Error.captureStackTrace(this,v):this.stack=Error().stack||"";a&&(this.message=String(a))}t(v,Error);v.prototype.name="CustomError";function ca(a,b){for(var c=1;c(0==B[1].length?
0:parseInt(B[1],10))?1:0)||((0==A[2].length)<(0==B[2].length)?-1:(0==A[2].length)>(0==B[2].length)?1:0)||(A[2]B[2]?1:0)}while(0==c)}return c};function ea(a,b){b.unshift(a);v.call(this,ca.apply(m,b));b.shift();this.$=a}t(ea,v);ea.prototype.name="AssertionError";function fa(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);g(new ea(""+e,f||[]))}function ga(a,b,c){a||fa("",m,b,Array.prototype.slice.call(arguments,2))}function ha(a,b,c){var d=typeof a;"object"==d&&a!=m||"function"==d||fa("Expected object but got %s: %s.",[ba(a),a],b,Array.prototype.slice.call(arguments,2))};var ia=Array.prototype;function w(a,b){for(var c=a.length,d=s(a)?a.split(""):a,e=0;e=arguments.length?ia.slice.call(a,b):ia.slice.call(a,b,c)};function na(a,b){this.code=a;this.message=b||"";this.name=oa[a]||oa[13];var c=Error(this.message);c.name=this.name;this.stack=c.stack||""}t(na,Error);
var oa={7:"NoSuchElementError",8:"NoSuchFrameError",9:"UnknownCommandError",10:"StaleElementReferenceError",11:"ElementNotVisibleError",12:"InvalidElementStateError",13:"UnknownError",15:"ElementNotSelectableError",19:"XPathLookupError",23:"NoSuchWindowError",24:"InvalidCookieDomainError",25:"UnableToSetCookieError",26:"ModalDialogOpenedError",27:"NoModalDialogOpenError",28:"ScriptTimeoutError",32:"InvalidSelectorError",35:"SqlDatabaseError",34:"MoveTargetOutOfBoundsError"};
na.prototype.toString=function(){return this.name+": "+this.message};function y(){return q.navigator?q.navigator.userAgent:m}var pa,qa="",ra=/WebKit\/(\S+)/.exec(y());pa=qa=ra?ra[1]:"";var sa={};var ta;function z(a,b){this.x=a!==k?a:0;this.y=b!==k?b:0}z.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function C(a,b){this.width=a;this.height=b}C.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};C.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};C.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};C.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function ua(a){return a?new va(D(a)):ta||(ta=new va)}function wa(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}
function xa(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?ya(a,b):!c&&wa(e,b)?-1*za(a,b):!d&&wa(f,a)?za(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=D(a);c=d.createRange();c.selectNode(a);c.collapse(l);d=d.createRange();d.selectNode(b);
d.collapse(l);return c.compareBoundaryPoints(q.Range.START_TO_END,d)}function za(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return ya(d,a)}function ya(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}function D(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function va(a){this.C=a||q.document||document}
function Aa(a){var b=a.C;a=b.body;b=b.parentWindow||b.defaultView;return new z(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}va.prototype.contains=wa;var Ba,Ca,Da,Ea,Fa,Ga,Ha;Ha=Ga=Fa=Ea=Da=Ca=Ba=n;var E=y();E&&(-1!=E.indexOf("Firefox")?Ba=l:-1!=E.indexOf("Camino")?Ca=l:-1!=E.indexOf("iPhone")||-1!=E.indexOf("iPod")?Da=l:-1!=E.indexOf("iPad")?Ea=l:-1!=E.indexOf("Android")?Fa=l:-1!=E.indexOf("Chrome")?Ga=l:-1!=E.indexOf("Safari")&&(Ha=l));var Ia=Ba,Ja=Ca,Ka=Da,La=Ea,Ma=Fa,Na=Ga,Oa=Ha;function F(a,b,c){this.g=a;this.Y=b||1;this.f=c||1};function G(a){var b=m,c=a.nodeType;1==c&&(b=a.textContent,b=b==k||b==m?a.innerText:b,b=b==k||b==m?"":b);if("string"!=typeof b)if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;for(var c=0,d=[],b="";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return""+b}function H(a,b,c){if(b===m)return l;try{if(!a.getAttribute)return n}catch(d){return n}return c==m?!!a.getAttribute(b):a.getAttribute(b,2)==c}
function I(a,b,c,d,e){return Pa.call(m,a,b,s(c)?c:m,s(d)?d:m,e||new J)}function Pa(a,b,c,d,e){b.getElementsByName&&d&&"name"==c?(b=b.getElementsByName(d),w(b,function(b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d&&"class"==c?(b=b.getElementsByClassName(d),w(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):a instanceof K?Qa(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),w(b,function(a){H(a,c,d)&&e.add(a)}));return e}
function Ra(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)H(b,c,d)&&a.matches(b)&&e.add(b);return e}function Qa(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)H(b,c,d)&&a.matches(b)&&e.add(b),Qa(a,b,c,d,e)};function J(){this.f=this.d=m;this.r=0}function Sa(a){this.o=a;this.next=this.n=m}function Ta(a,b){if(a.d){if(!b.d)return a}else return b;for(var c=a.d,d=b.d,e=m,f=m,h=0;c&&d;)c.o==d.o?(f=c,c=c.next,d=d.next):0",4,2,function(a,b,c){return R(function(a,b){return a>b},a,b,c)});S("<=",4,2,function(a,b,c){return R(function(a,b){return a<=b},a,b,c)});S(">=",4,2,function(a,b,c){return R(function(a,b){return a>=b},a,b,c)});var $a=S("=",3,2,function(a,b,c){return R(function(a,b){return a==b},a,b,c,l)});S("!=",3,2,function(a,b,c){return R(function(a,b){return a!=b},a,b,c,l)});S("and",2,2,function(a,b,c){return Q(a,c)&&Q(b,c)});S("or",1,2,function(a,b,c){return Q(a,c)||Q(b,c)});function cb(a,b){b.l()&&4!=a.c&&g(Error("Primary expression must evaluate to nodeset if filter has predicate(s)."));N.call(this,a.c);this.O=a;this.a=b;this.h=a.b();this.e=a.e}t(cb,N);cb.prototype.evaluate=function(a){a=this.O.evaluate(a);return db(this.a,a)};cb.prototype.toString=function(a){a=a||"";var b=a+"Filter: \n";a+="  ";b+=this.O.toString(a);return b+=this.a.toString(a)};function eb(a,b){b.lengtha.F&&g(Error("Function "+a.m+" expects at most "+a.F+" arguments, "+b.length+" given"));a.W&&w(b,function(b,d){4!=b.c&&g(Error("Argument "+d+" to function "+a.m+" is not of type Nodeset: "+b))});N.call(this,a.c);this.v=a;this.A=b;Xa(this,a.h||ka(b,function(a){return a.b()}));Ya(this,a.U&&!b.length||a.T&&!!b.length||ka(b,function(a){return a.e}))}t(eb,N);
eb.prototype.evaluate=function(a){return this.v.k.apply(m,la(a,this.A))};eb.prototype.toString=function(a){var b=a||"";a=b+"Function: "+this.v+"\n";b+="  ";this.A.length&&(a+=b+"Arguments:",b+="  ",a=ja(this.A,function(a,d){return a+"\n"+d.toString(b)},a));return a};function fb(a,b,c,d,e,f,h,u,x){this.m=a;this.c=b;this.h=c;this.U=d;this.T=e;this.k=f;this.N=h;this.F=u!==k?u:h;this.W=!!x}fb.prototype.toString=p("m");var gb={};
function T(a,b,c,d,e,f,h,u){a in gb&&g(Error("Function already created: "+a+"."));gb[a]=new fb(a,b,c,d,n,e,f,h,u)}T("boolean",2,n,n,function(a,b){return Q(b,a)},1);T("ceiling",1,n,n,function(a,b){return Math.ceil(O(b,a))},1);T("concat",3,n,n,function(a,b){var c=ma(arguments,1);return ja(c,function(b,c){return b+P(c,a)},"")},2,m);T("contains",2,n,n,function(a,b,c){b=P(b,a);a=P(c,a);return-1!=b.indexOf(a)},2);T("count",1,n,n,function(a,b){return b.evaluate(a).l()},1,1,l);T("false",2,n,n,aa(n),0);
T("floor",1,n,n,function(a,b){return Math.floor(O(b,a))},1);T("id",4,n,n,function(a,b){var c=a.g,d=9==c.nodeType?c:c.ownerDocument,c=P(b,a).split(/\s+/),e=[];w(c,function(a){a=d.getElementById(a);var b;if(b=a){a:if(s(e))b=!s(a)||1!=a.length?-1:e.indexOf(a,0);else{for(b=0;b=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};function Y(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}Y.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};Y.prototype.contains=function(a){return a instanceof Y?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};function Z(a,b){var c=D(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,m))?c[b]||c.getPropertyValue(b)||"":""}function Ab(a){return Z(a,"position")||(a.currentStyle?a.currentStyle.position:m)||a.style&&a.style.position}
function Bb(a){var b=D(a),c=Ab(a),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Ab(a),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return m}
function Cb(a){var b=D(a),c=Ab(a);ha(a,"Parameter is required");var d=new z(0,0),e=(b?D(b):document).documentElement;if(a==e)return d;if(a.getBoundingClientRect)a=a.getBoundingClientRect(),b=Aa(ua(b)),d.x=a.left+b.x,d.y=a.top+b.y;else if(b.getBoxObjectFor)a=b.getBoxObjectFor(a),b=b.getBoxObjectFor(e),d.x=a.screenX-b.screenX,d.y=a.screenY-b.screenY;else{var f=a;do{d.x+=f.offsetLeft;d.y+=f.offsetTop;f!=a&&(d.x+=f.clientLeft||0,d.y+=f.clientTop||0);if("fixed"==Ab(f)){d.x+=b.body.scrollLeft;d.y+=b.body.scrollTop;
break}f=f.offsetParent}while(f&&f!=a);"absolute"==c&&(d.y-=b.body.offsetTop);for(f=a;(f=Bb(f))&&f!=b.body&&f!=e;)d.x-=f.scrollLeft,d.y-=f.scrollTop}return d};function Db(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return a&&1==a.nodeType?a:m}function Eb(a,b){b.scrollLeft+=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 Fb(a,b){var c;c=b?new Y(b.left,b.top,b.width,b.height):new Y(0,0,a.offsetWidth,a.offsetHeight);for(var d=D(a),e=Db(a);e&&e!=d.body&&e!=d.documentElement;e=Db(e)){var f=c,h=e,u=Cb(a),x=Cb(h),r=k,L=r=k,A=k,B=k,B=Z(h,"borderLeftWidth"),A=Z(h,"borderRightWidth"),L=Z(h,"borderTopWidth"),r=Z(h,"borderBottomWidth"),r=new zb(parseFloat(L),parseFloat(A),parseFloat(r),parseFloat(B));Eb(new Y(u.x+f.left-x.x-r.left,u.y+f.top-x.y-r.top,h.clientWidth-f.width,h.clientHeight-f.height),h)}e=Cb(a);f=ua(d);
f=(f.C.parentWindow||f.C.defaultView||window).document;f="CSS1Compat"==f.compatMode?f.documentElement:f.body;f=new C(f.clientWidth,f.clientHeight);Eb(new Y(e.x+c.left-(d.body?d.body.scrollLeft:0),e.y+c.top-(d.body?d.body.scrollTop:0),f.width-c.width,f.height-c.height),d.body||d.documentElement);(d=a.getClientRects?a.getClientRects()[0]:m)?d=new z(d.left,d.top):(d=new z,1==a.nodeType?a.getBoundingClientRect?(e=a.getBoundingClientRect(),d.x=e.left,d.y=e.top):(e=Aa(ua(a)),f=Cb(a),d.x=f.x-e.x,d.y=f.y-
e.y):(e="function"==ba(a.K),f=a,a.targetTouches?f=a.targetTouches[0]:e&&a.K().targetTouches&&(f=a.K().targetTouches[0]),d.x=f.clientX,d.y=f.clientY));return new z(d.x+c.left,d.y+c.top)}var Gb=["_"],$=q;!(Gb[0]in $)&&$.execScript&&$.execScript("var "+Gb[0]);for(var Hb;Gb.length&&(Hb=Gb.shift());)!Gb.length&&Fb!==k?$[Hb]=Fb:$=$[Hb]?$[Hb]:$[Hb]={};; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null,document:typeof window!=undefined?window.document:null}, arguments);}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy