pastepin57

Untitled

May 14th, 2015
574
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var h,k=this,l=function(a,b){var c=a.split("."),d=k;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b},p=function(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&&
  2. !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};Math.random();
  3. var q=function(a,b){function c(){}c.prototype=b.prototype;a.v=b.prototype;a.prototype=new c;a.u=function(a,c,f){for(var g=Array(arguments.length-2),m=2;m<arguments.length;m++)g[m-2]=arguments[m];return b.prototype[c].apply(a,g)}};var u=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,u);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};q(u,Error);var aa=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")},v=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},w=function(a,b){return a<b?-1:a>b?1:0};Math.random();var x=function(a,b){b.unshift(a);u.call(this,aa.apply(null,b));b.shift()};q(x,u);var y=function(a,b,c){if(!a){var d="Assertion failed";if(b)var d=d+(": "+b),e=Array.prototype.slice.call(arguments,2);throw new x(""+d,e||[]);}};var z=Array.prototype,A=function(a){return z.concat.apply(z,arguments)},ba=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};var B=function(a){var b=arguments.length;if(1==b&&"array"==p(arguments[0]))return B.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};B("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));var D;a:{var ca=k.navigator;if(ca){var da=ca.userAgent;if(da){D=da;break a}}D=""}var E=function(a){return-1!=D.indexOf(a)};var F=function(){return E("Opera")||E("OPR")},G=function(){return E("Edge")||E("Trident")||E("MSIE")},H=function(){return(E("Chrome")||E("CriOS"))&&!F()&&!G()};var I=function(){return E("Edge")};var ea=F(),J=G(),K=E("Gecko")&&!(-1!=D.toLowerCase().indexOf("webkit")&&!I())&&!(E("Trident")||E("MSIE"))&&!I(),L=-1!=D.toLowerCase().indexOf("webkit")&&!I(),fa=L&&E("Mobile"),ga=function(){var a=D;if(K)return/rv\:([^\);]+)(\)|;)/.exec(a);if(J&&I())return/Edge\/([\d\.]+)/.exec(a);if(J)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(L)return/WebKit\/(\S+)/.exec(a)},ha=function(){var a=k.document;return a?a.documentMode:void 0},ia=function(){if(ea&&k.opera){var a=k.opera.version;return"function"==
  4. p(a)?a():a}var a="",b=ga();b&&(a=b?b[1]:"");return J&&!I()&&(b=ha(),b>parseFloat(a))?String(b):a}(),ja={},ka=function(a){if(!ja[a]){for(var b=0,c=v(String(ia)).split("."),d=v(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",m=d[f]||"",r=RegExp("(\\d*)(\\D*)","g"),C=RegExp("(\\d*)(\\D*)","g");do{var t=r.exec(g)||["","",""],n=C.exec(m)||["","",""];if(0==t[0].length&&0==n[0].length)break;b=w(0==t[1].length?0:parseInt(t[1],10),0==n[1].length?0:parseInt(n[1],10))||
  5. w(0==t[2].length,0==n[2].length)||w(t[2],n[2])}while(0==b)}ja[a]=0<=b}},la=k.document,ma=ha(),na=!la||!J||!ma&&I()?void 0:ma||("CSS1Compat"==la.compatMode?parseInt(ia,10):5);var M;if(!(M=!K&&!J)){var N;if(N=J)N=J&&(I()||9<=na);M=N}M||K&&ka("1.9.1");J&&ka("9");!E("Android")||H()||E("Firefox")||F();H();var oa=E("Safari")&&!(H()||E("Coast")||F()||G()||E("Silk")||E("Android"))&&!(E("iPhone")&&!E("iPod")&&!E("iPad")||E("iPad")||E("iPod"));var qa=function(a){var b=window;if(fa&&oa&&a){a.focus();var c=0,d=null,d=a.setInterval(function(){b.closed||5==c?(a.clearInterval(d),pa(b)):(b.close(),c++)},150)}else b.close(),pa(b)},pa=function(a){if(!a.closed&&a.document&&a.document.body)if(a=a.document.body,y(null!=a,"goog.dom.setTextContent expects a non-null value for node"),"textContent"in a)a.textContent="Please close this window.";else if(3==a.nodeType)a.data="Please close this window.";else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=
  6. a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data="Please close this window."}else{for(var b;b=a.firstChild;)a.removeChild(b);y(a,"Node cannot be null or undefined.");a.appendChild((9==a.nodeType?a:a.ownerDocument||a.document).createTextNode("Please close this window."))}};var ra="StopIteration"in k?k.StopIteration:Error("StopIteration"),O=function(){};O.prototype.next=function(){throw ra;};O.prototype.s=function(){return this};var P=function(a,b){this.g={};this.c=[];this.q=this.b=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};P.prototype.h=function(){Q(this);for(var a=[],b=0;b<this.c.length;b++)a.push(this.g[this.c[b]]);return a};P.prototype.l=function(){Q(this);return this.c.concat()};P.prototype.j=function(a){return R(this.g,a)};
  7. P.prototype.remove=function(a){return R(this.g,a)?(delete this.g[a],this.b--,this.q++,this.c.length>2*this.b&&Q(this),!0):!1};var Q=function(a){if(a.b!=a.c.length){for(var b=0,c=0;b<a.c.length;){var d=a.c[b];R(a.g,d)&&(a.c[c++]=d);b++}a.c.length=c}if(a.b!=a.c.length){for(var e={},c=b=0;b<a.c.length;)d=a.c[b],R(e,d)||(a.c[c++]=d,e[d]=1),b++;a.c.length=c}};h=P.prototype;h.get=function(a,b){return R(this.g,a)?this.g[a]:b};
  8. h.set=function(a,b){R(this.g,a)||(this.b++,this.c.push(a),this.q++);this.g[a]=b};h.addAll=function(a){var b;if(a instanceof P)b=a.l(),a=a.h();else{b=[];var c=0,d;for(d in a)b[c++]=d;c=[];d=0;for(var e in a)c[d++]=a[e];a=c}for(e=0;e<b.length;e++)this.set(b[e],a[e])};h.forEach=function(a,b){for(var c=this.l(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};h.clone=function(){return new P(this)};
  9. h.s=function(a){Q(this);var b=0,c=this.q,d=this,e=new O;e.next=function(){if(c!=d.q)throw Error("The map has changed since the iterator was created");if(b>=d.c.length)throw ra;var e=d.c[b++];return a?e:d.g[e]};return e};var R=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var sa=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,ta=function(a){if(S){S=!1;var b=k.location;if(b){var c=b.href;if(c&&(c=(c=ta(c)[3]||null)?decodeURI(c):c)&&c!=b.hostname)throw S=!0,Error();}}return a.match(sa)},S=L,ua=function(a,b){for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null,g=null;0<=e?(f=c[d].substring(0,e),g=c[d].substring(e+1)):f=c[d];b(f,g?decodeURIComponent(g.replace(/\+/g," ")):"")}};var T=function(a,b){this.k=this.p=this.i="";this.o=null;this.m=this.n="";this.e=this.t=!1;var c;if(a instanceof T)this.e=void 0!==b?b:a.e,va(this,a.i),c=a.p,U(this),this.p=c,c=a.k,U(this),this.k=c,wa(this,a.o),c=a.n,U(this),this.n=c,xa(this,a.f.clone()),c=a.m,U(this),this.m=c;else if(a&&(c=ta(String(a)))){this.e=!!b;va(this,c[1]||"",!0);var d=c[2]||"";U(this);this.p=V(d);d=c[3]||"";U(this);this.k=V(d,!0);wa(this,c[4]);d=c[5]||"";U(this);this.n=V(d,!0);xa(this,c[6]||"",!0);c=c[7]||"";U(this);this.m=
  10. V(c)}else this.e=!!b,this.f=new W(null,0,this.e)};T.prototype.toString=function(){var a=[],b=this.i;b&&a.push(X(b,ya,!0),":");if(b=this.k){a.push("//");var c=this.p;c&&a.push(X(c,ya,!0),"@");a.push(encodeURIComponent(String(b)).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.o;null!=b&&a.push(":",String(b))}if(b=this.n)this.k&&"/"!=b.charAt(0)&&a.push("/"),a.push(X(b,"/"==b.charAt(0)?za:Aa,!0));(b=this.f.toString())&&a.push("?",b);(b=this.m)&&a.push("#",X(b,Ba));return a.join("")};
  11. T.prototype.clone=function(){return new T(this)};var va=function(a,b,c){U(a);a.i=c?V(b,!0):b;a.i&&(a.i=a.i.replace(/:$/,""))},wa=function(a,b){U(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.o=b}else a.o=null},xa=function(a,b,c){U(a);b instanceof W?(a.f=b,a.f.r(a.e)):(c||(b=X(b,Ca)),a.f=new W(b,0,a.e))},U=function(a){if(a.t)throw Error("Tried to modify a read-only Uri");};T.prototype.r=function(a){this.e=a;this.f&&this.f.r(a);return this};
  12. var V=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""},X=function(a,b,c){return"string"==typeof a?(a=encodeURI(a).replace(b,Da),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Da=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},ya=/[#\/\?@]/g,Aa=/[\#\?:]/g,za=/[\#\?]/g,Ca=/[\#\?@]/g,Ba=/#/g,W=function(a,b,c){this.b=this.a=null;this.d=a||null;this.e=!!c},Y=function(a){a.a||(a.a=new P,a.b=0,a.d&&ua(a.d,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g,
  13. " ")),c)}))};h=W.prototype;h.add=function(a,b){Y(this);this.d=null;a=Z(this,a);var c=this.a.get(a);c||this.a.set(a,c=[]);c.push(b);this.b++;return this};h.remove=function(a){Y(this);a=Z(this,a);return this.a.j(a)?(this.d=null,this.b-=this.a.get(a).length,this.a.remove(a)):!1};h.j=function(a){Y(this);a=Z(this,a);return this.a.j(a)};h.l=function(){Y(this);for(var a=this.a.h(),b=this.a.l(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
  14. h.h=function(a){Y(this);var b=[];if("string"==typeof a)this.j(a)&&(b=A(b,this.a.get(Z(this,a))));else{a=this.a.h();for(var c=0;c<a.length;c++)b=A(b,a[c])}return b};h.set=function(a,b){Y(this);this.d=null;a=Z(this,a);this.j(a)&&(this.b-=this.a.get(a).length);this.a.set(a,[b]);this.b++;return this};h.get=function(a,b){var c=a?this.h(a):[];return 0<c.length?String(c[0]):b};
  15. h.toString=function(){if(this.d)return this.d;if(!this.a)return"";for(var a=[],b=this.a.l(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.h(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.d=a.join("&")};h.clone=function(){var a=new W;a.d=this.d;this.a&&(a.a=this.a.clone(),a.b=this.b);return a};var Z=function(a,b){var c=String(b);a.e&&(c=c.toLowerCase());return c};
  16. W.prototype.r=function(a){a&&!this.e&&(Y(this),this.d=null,this.a.forEach(function(a,c){var d=c.toLowerCase();c!=d&&(this.remove(c),this.remove(d),0<a.length&&(this.d=null,this.a.set(Z(this,d),ba(a)),this.b+=a.length))},this));this.e=a};var Ea=function(a){a=new T(a);var b="&"+window.name;U(a);a.f.set(b,!0);b=a.f.h("parent");U(a);a.f.remove("parent");1==b.length&&(b=gadgets.rpc.getOrigin(String(b[0])),U(a),a.f.set("parent",b));b="&"+window.name;U(a);a.f.remove(b);return a.toString()},Fa=function(a,b,c,d,e,f,g){if(!d||!d.document.domain)return!1;var m=Ea(String(d.document.location.href));if(m.substr(0,c.length)!=c)return!1;c=gadgets.util.getUrlParameters(m);if(!b||!c.parent||b!=gadgets.rpc.getOrigin(String(c.parent)))return!1;if(!e)return l("oauth2callbackUrl",
  17. a),d.oauth2verify.call(d,String(window.name),g)?!0:!1;d.oauth2callback.call(d,a);try{f()}catch(r){}return!0},Ga=function(){try{return window.parent!=window}catch(a){}return!0},Ha=function(){try{return!!window.opener}catch(a){}return!0},Ia=function(a,b,c,d,e){try{var f=Ga(),g=!f&&Ha(),m=!0,r=null,C=function(){m&&qa(r)};if(!f&&!g)return;var m=(g||!f)&&"keep_open"!==e,r=g?window.opener:window.parent,t=Ea(b);try{var n;if(d&&(n=r.frames[d],Fa(a,c,t,n,!g,C,e)))return;for(b=0;b<r.frames.length;++b)if(n=
  18. r.frames[b],Fa(a,c,t,n,!g,C,e)){m=!1;break}}catch(Ja){}}catch(Ka){}C()};
  19. l("postmessage.onLoad",function(){window.name="pmh"+String(2147483647*shindig.random()|0);var a=document.createElement("div"),b="true"==document.getElementById("error").value,c=gadgets.rpc.getOrigin(document.getElementById("origin").value),b=c+(b?"?":"#")+document.getElementById("response-form-encoded").value,d=document.getElementById("relay-endpoint").value,e=null,f=document.getElementById("proxy");f&&f.value&&(e=f.value);var f=document.getElementById("after-redirect"),g=null;f&&f.value&&(g=f.value);
  20. a.appendChild(document.createTextNode(b));a.setAttribute("id","postmessage-hello");Ia(b,d,c,e,g)});l("postmessage.closePopup",function(){var a=null;try{var b=Ga(),c=!b&&Ha();if(!b&&!c)return;a=c?window.opener:window.parent}catch(d){}qa(a)});
RAW Paste Data