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

atoms.setCursorAtTheEnd_ios.js Maven / Gradle / Ivy

The newest version!
function(){return function(){function f(a){throw a;}var h=void 0,k=!0,l=null,n=!1;function p(a){return function(){return this[a]}}function aa(a){return function(){return a}}var q,r=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}var ca="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),da=0;function t(a,b){function c(){}c.prototype=b.prototype;a.ta=b.prototype;a.prototype=new c};var ea=window;function u(a){Error.captureStackTrace?Error.captureStackTrace(this,u):this.stack=Error().stack||"";a&&(this.message=String(a))}t(u,Error);u.prototype.name="CustomError";function fa(a,b){for(var c=1;c(0==I[1].length?
0:parseInt(I[1],10))?1:0)||((0==H[2].length)<(0==I[2].length)?-1:(0==H[2].length)>(0==I[2].length)?1:0)||(H[2]I[2]?1:0)}while(0==c)}return c};function ga(a,b){b.unshift(a);u.call(this,fa.apply(l,b));b.shift();this.pa=a}t(ga,u);ga.prototype.name="AssertionError";function ha(a,b,c){if(!a){var d=Array.prototype.slice.call(arguments,2),e="Assertion failed";if(b)var e=e+(": "+b),g=d;f(new ga(""+e,g||[]))}};var ia=Array.prototype;function ja(a,b){if(s(a))return!s(b)||1!=b.length?-1:a.indexOf(b,0);for(var c=0;c=arguments.length?ia.slice.call(a,b):ia.slice.call(a,b,c)};function pa(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};function qa(a,b){this.code=a;this.message=b||"";this.name=ra[a]||ra[13];var c=Error(this.message);c.name=this.name;this.stack=c.stack||""}t(qa,Error);
var ra={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"};
qa.prototype.toString=function(){return this.name+": "+this.message};var sa,ta;function x(){return r.navigator?r.navigator.userAgent:l}var ua,va=r.navigator;ua=va&&va.platform||"";sa=-1!=ua.indexOf("Mac");ta=-1!=ua.indexOf("Win");var z=-1!=ua.indexOf("Linux"),wa;var xa="",ya=/WebKit\/(\S+)/.exec(x());wa=xa=ya?ya[1]:"";var za={};function Aa(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 Ba(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,g=b.parentNode;return e==g?Ca(a,b):!c&&Aa(e,b)?-1*Da(a,b):!d&&Aa(g,a)?Da(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:g.sourceIndex)}d=9==a.nodeType?a:a.ownerDocument||a.document;c=d.createRange();c.selectNode(a);c.collapse(k);
d=d.createRange();d.selectNode(b);d.collapse(k);return c.compareBoundaryPoints(r.Range.START_TO_END,d)}function Da(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return Ca(d,a)}function Ca(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}function Ea(a,b){a=a.parentNode;for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return l};var Fa,Ga,Ha,Ia,Ja,Ka,La;La=Ka=Ja=Ia=Ha=Ga=Fa=n;var A=x();A&&(-1!=A.indexOf("Firefox")?Fa=k:-1!=A.indexOf("Camino")?Ga=k:-1!=A.indexOf("iPhone")||-1!=A.indexOf("iPod")?Ha=k:-1!=A.indexOf("iPad")?Ia=k:-1!=A.indexOf("Android")?Ja=k:-1!=A.indexOf("Chrome")?Ka=k:-1!=A.indexOf("Safari")&&(La=k));var Ma=Fa,Na=Ga,Oa=Ha,Pa=Ia,B=Ja,Qa=Ka,Ra=La;function C(a,b,c){this.j=a;this.ia=b||1;this.k=c||1};function F(a){var b=l,c=a.nodeType;1==c&&(b=a.textContent,b=b==h||b==l?a.innerText:b,b=b==h||b==l?"":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 G(a,b,c){if(b===l)return k;try{if(!a.getAttribute)return n}catch(d){return n}return c==l?!!a.getAttribute(b):a.getAttribute(b,2)==c}
function J(a,b,c,d,e){return Sa.call(l,a,b,s(c)?c:l,s(d)?d:l,e||new K)}function Sa(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 L?Ta(a,b,c,d,e):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),w(b,function(a){G(a,c,d)&&e.add(a)}));return e}
function Ua(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)G(b,c,d)&&a.matches(b)&&e.add(b);return e}function Ta(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)G(b,c,d)&&a.matches(b)&&e.add(b),Ta(a,b,c,d,e)};function K(){this.k=this.g=l;this.A=0}function Va(a){this.p=a;this.next=this.u=l}function Wa(a,b){if(a.g){if(!b.g)return a}else return b;for(var c=a.g,d=b.g,e=l,g=l,m=0;c&&d;)c.p==d.p||n&&n&&c.p.j==d.p.j?(g=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 cb=S("=",3,2,function(a,b,c){return R(function(a,b){return a==b},a,b,c,k)});S("!=",3,2,function(a,b,c){return R(function(a,b){return a!=b},a,b,c,k)});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 fb(a,b){b.s()&&4!=a.f&&f(Error("Primary expression must evaluate to nodeset if filter has predicate(s)."));N.call(this,a.f);this.V=a;this.c=b;this.m=a.d();this.i=a.i}t(fb,N);fb.prototype.evaluate=function(a){a=this.V.evaluate(a);return gb(this.c,a)};fb.prototype.toString=function(a){a=a||"";var b=a+"Filter: \n";a+="  ";b+=this.V.toString(a);return b+=this.c.toString(a)};function hb(a,b){b.lengtha.M&&f(Error("Function "+a.t+" expects at most "+a.M+" arguments, "+b.length+" given"));a.ga&&w(b,function(b,d){4!=b.f&&f(Error("Argument "+d+" to function "+a.t+" is not of type Nodeset: "+b))});N.call(this,a.f);this.F=a;this.J=b;$a(this,a.m||la(b,function(a){return a.d()}));ab(this,a.ea&&!b.length||a.da&&!!b.length||la(b,function(a){return a.i}))}t(hb,N);
hb.prototype.evaluate=function(a){return this.F.r.apply(l,na(a,this.J))};hb.prototype.toString=function(a){var b=a||"";a=b+"Function: "+this.F+"\n";b+="  ";this.J.length&&(a+=b+"Arguments:",b+="  ",a=ka(this.J,function(a,d){return a+"\n"+d.toString(b)},a));return a};function ib(a,b,c,d,e,g,m,y,D){this.t=a;this.f=b;this.m=c;this.ea=d;this.da=e;this.r=g;this.T=m;this.M=y!==h?y:m;this.ga=!!D}ib.prototype.toString=p("t");var jb={};
function T(a,b,c,d,e,g,m,y){a in jb&&f(Error("Function already created: "+a+"."));jb[a]=new ib(a,b,c,d,n,e,g,m,y)}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=oa(arguments,1);return ka(c,function(b,c){return b+P(c,a)},"")},2,l);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).s()},1,1,k);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.j,d=9==c.nodeType?c:c.ownerDocument,c=P(b,a).split(/\s+/),e=[];w(c,function(a){(a=d.getElementById(a))&&!(0<=ja(e,a))&&e.push(a)});e.sort(Ba);var g=new K;w(e,function(a){g.add(a)});return g},1);T("lang",2,n,n,aa(n),1);T("last",1,k,n,function(a){1!=arguments.length&&f(Error("Function last expects ()"));return a.k},0);
T("local-name",3,n,k,function(a,b){var c=b?Xa(b.evaluate(a)):a.j;return c?c.nodeName.toLowerCase():""},0,1,k);T("name",3,n,k,function(a,b){var c=b?Xa(b.evaluate(a)):a.j;return c?c.nodeName.toLowerCase():""},0,1,k);T("namespace-uri",3,k,n,aa(""),0,1,k);T("normalize-space",3,n,k,function(a,b){return(b?P(b,a):F(a.j)).replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},0,1);T("not",2,n,n,function(a,b){return!Q(b,a)},1);T("number",1,n,k,function(a,b){return b?O(b,a):+F(a.j)},0,1);
T("position",1,k,n,function(a){return a.ia},0);T("round",1,n,n,function(a,b){return Math.round(O(b,a))},1);T("starts-with",2,n,n,function(a,b,c){b=P(b,a);a=P(c,a);return 0==b.lastIndexOf(a,0)},2);T("string",3,n,k,function(a,b){return b?P(b,a):F(a.j)},0,1);T("string-length",1,n,k,function(a,b){return(b?P(b,a):F(a.j)).length},0,1);
T("substring",3,n,n,function(a,b,c,d){c=O(c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return"";d=d?O(d,a):Infinity;if(isNaN(d)||-Infinity===d)return"";c=Math.round(c)-1;var e=Math.max(c,0);a=P(b,a);if(Infinity==d)return a.substring(e);b=Math.round(d);return a.substring(e,c+b)},2,3);T("substring-after",3,n,n,function(a,b,c){b=P(b,a);a=P(c,a);c=b.indexOf(a);return-1==c?"":b.substring(c+a.length)},2);
T("substring-before",3,n,n,function(a,b,c){b=P(b,a);a=P(c,a);a=b.indexOf(a);return-1==a?"":b.substring(0,a)},2);T("sum",1,n,n,function(a,b){for(var c=M(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+=+F(e);return d},1,1,k);T("translate",3,n,n,function(a,b,c,d){b=P(b,a);c=P(c,a);var e=P(d,a);a=[];for(d=0;d2*this.w&&Lb(this),k):n};
function Lb(a){if(a.w!=a.e.length){for(var b=0,c=0;b");Z(191,"/","?");Z(192,"`","~");Z(219,"[","{");Z(220,"\\","|");Z(221,"]","}");Z({b:59,a:186,opera:59},";",":");Z(222,"'",'"');var Qb=[Wb,Vb,Xb,Ub],Yb=new Kb;Yb.set(1,Ub);Yb.set(2,Vb);Yb.set(4,Wb);Yb.set(8,Xb);var Rb=function(a){var b=new Kb;w(Mb(a),function(c){b.set(a.get(c).code,c)});return b}(Yb);var Zb=Pb.ra,$b=["_"],$=r;!($b[0]in $)&&$.execScript&&$.execScript("var "+$b[0]);for(var ac;$b.length&&(ac=$b.shift());)!$b.length&&Zb!==h?$[ac]=Zb:$=$[ac]?$[ac]:$[ac]={};; return this._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?window.navigator:null,document:typeof window!=undefined?window.document:null}, arguments);}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy