Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.78 KB | None | 0 0
  1. var shortest=shortest||{};shortest.MODULE_TYPE=function(){"use strict";return{ENTRY:11,LINK_CLICK:12,EXIT:13,POPUP:14,COMMENTS_MONETIZER:15,VIDEO_MONETIZER:16,SOCIAL_WIDGET:17,LINK_CLICK_OVERLAY:18}}(),!function(a,b){"undefined"!=typeof module?module.exports=b():"function"==typeof define&&"object"==typeof define.amd?define(b):this[a]=b()}("domready",function(){var a,b=[],c=document,d="DOMContentLoaded",e=/^loaded|^i|^c/.test(c.readyState);return e||c.addEventListener(d,a=function(){for(c.removeEventListener(d,a),e=1;a=b.shift();)a()}),function(a){e?a():b.push(a)}}),function(a,b,c){"undefined"!=typeof module&&module.exports?module.exports=c():"function"==typeof define&&define.amd?define(c):b[a]=c()}("bean",this,function(a,b){a=a||"bean",b=b||this;var c,d=window,e=b[a],f=/[^\.]*(?=\..*)\.|.*/,g=/\..*/,h="addEventListener",i="removeEventListener",j=document||{},k=j.documentElement||{},l=k[h],m=l?h:"attachEvent",n={},o=Array.prototype.slice,p=function(a,b){return a.split(b||" ")},q=function(a){return"string"==typeof a},r=function(a){return"function"==typeof a},s="click dblclick mouseup mousedown contextmenu mousewheel mousemultiwheel DOMMouseScroll mouseover mouseout mousemove selectstart selectend keydown keypress keyup orientationchange focus blur change reset select submit load unload beforeunload resize move DOMContentLoaded readystatechange message error abort scroll ",t="show input invalid touchstart touchmove touchend touchcancel gesturestart gesturechange gestureend textinput readystatechange pageshow pagehide popstate hashchange offline online afterprint beforeprint dragstart dragenter dragover dragleave drag drop dragend loadstart progress suspend emptied stalled loadmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate play pause ratechange volumechange cuechange checking noupdate downloading cached updateready obsolete ",u=function(a,b,c){for(c=0;c<b.length;c++)b[c]&&(a[b[c]]=1);return a}({},p(s+(l?t:""))),v=function(){var a="compareDocumentPosition"in k?function(a,b){return b.compareDocumentPosition&&16===(16&b.compareDocumentPosition(a))}:"contains"in k?function(a,b){return b=9===b.nodeType||b===window?k:b,b!==a&&b.contains(a)}:function(a,b){for(;a=a.parentNode;)if(a===b)return 1;return 0},b=function(b){var c=b.relatedTarget;return c?c!==this&&"xul"!==c.prefix&&!/document/.test(this.toString())&&!a(c,this):null==c};return{mouseenter:{base:"mouseover",condition:b},mouseleave:{base:"mouseout",condition:b},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}}}(),w=function(){var a=p("altKey attrChange attrName bubbles cancelable ctrlKey currentTarget detail eventPhase getModifierState isTrusted metaKey relatedNode relatedTarget shiftKey srcElement target timeStamp type view which propertyName"),b=a.concat(p("button buttons clientX clientY dataTransfer fromElement offsetX offsetY pageX pageY screenX screenY toElement")),c=b.concat(p("wheelDelta wheelDeltaX wheelDeltaY wheelDeltaZ axis")),e=a.concat(p("char charCode key keyCode keyIdentifier keyLocation location")),f=a.concat(p("data")),g=a.concat(p("touches targetTouches changedTouches scale rotation")),h=a.concat(p("data origin source")),i=a.concat(p("state")),l=/over|out/,m=[{reg:/key/i,fix:function(a,b){return b.keyCode=a.keyCode||a.which,e}},{reg:/click|mouse(?!(.*wheel|scroll))|menu|drag|drop/i,fix:function(a,c,d){return c.rightClick=3===a.which||2===a.button,c.pos={x:0,y:0},a.pageX||a.pageY?(c.clientX=a.pageX,c.clientY=a.pageY):(a.clientX||a.clientY)&&(c.clientX=a.clientX+j.body.scrollLeft+k.scrollLeft,c.clientY=a.clientY+j.body.scrollTop+k.scrollTop),l.test(d)&&(c.relatedTarget=a.relatedTarget||a[("mouseover"==d?"from":"to")+"Element"]),b}},{reg:/mouse.*(wheel|scroll)/i,fix:function(){return c}},{reg:/^text/i,fix:function(){return f}},{reg:/^touch|^gesture/i,fix:function(){return g}},{reg:/^message$/i,fix:function(){return h}},{reg:/^popstate$/i,fix:function(){return i}},{reg:/.*/,fix:function(){return a}}],n={},o=function(a,b,c){if(arguments.length&&(a=a||((b.ownerDocument||b.document||b).parentWindow||d).event,this.originalEvent=a,this.isNative=c,this.isBean=!0,a)){var e,f,g,h,i,j=a.type,k=a.target||a.srcElement;if(this.target=k&&3===k.nodeType?k.parentNode:k,c){if(i=n[j],!i)for(e=0,f=m.length;f>e;e++)if(m[e].reg.test(j)){n[j]=i=m[e].fix;break}for(h=i(a,this,j),e=h.length;e--;)!((g=h[e])in this)&&g in a&&(this[g]=a[g])}}};return o.prototype.preventDefault=function(){this.originalEvent.preventDefault?this.originalEvent.preventDefault():this.originalEvent.returnValue=!1},o.prototype.stopPropagation=function(){this.originalEvent.stopPropagation?this.originalEvent.stopPropagation():this.originalEvent.cancelBubble=!0},o.prototype.stop=function(){this.preventDefault(),this.stopPropagation(),this.stopped=!0},o.prototype.stopImmediatePropagation=function(){this.originalEvent.stopImmediatePropagation&&this.originalEvent.stopImmediatePropagation(),this.isImmediatePropagationStopped=function(){return!0}},o.prototype.isImmediatePropagationStopped=function(){return this.originalEvent.isImmediatePropagationStopped&&this.originalEvent.isImmediatePropagationStopped()},o.prototype.clone=function(a){var b=new o(this,this.element,this.isNative);return b.currentTarget=a,b},o}(),x=function(a,b){return l||b||a!==j&&a!==d?a:k},y=function(){var a=function(a,b,c,d){var e=function(c,e){return b.apply(a,d?o.call(e,c?0:1).concat(d):e)},f=function(c,d){return b.__beanDel?b.__beanDel.ft(c.target,a):d},g=c?function(a){var b=f(a,this);return c.apply(b,arguments)?(a&&(a.currentTarget=b),e(a,arguments)):void 0}:function(a){return b.__beanDel&&(a=a.clone(f(a))),e(a,arguments)};return g.__beanDel=b.__beanDel,g},b=function(b,c,d,e,f,g,h){var i,j=v[c];"unload"==c&&(d=D(E,b,c,d,e)),j&&(j.condition&&(d=a(b,d,j.condition,g)),c=j.base||c),this.isNative=i=u[c]&&!!b[m],this.customType=!l&&!i&&c,this.element=b,this.type=c,this.original=e,this.namespaces=f,this.eventType=l||i?c:"propertychange",this.target=x(b,i),this[m]=!!this.target[m],this.root=h,this.handler=a(b,d,null,g)};return b.prototype.inNamespaces=function(a){var b,c,d=0;if(!a)return!0;if(!this.namespaces)return!1;for(b=a.length;b--;)for(c=this.namespaces.length;c--;)a[b]==this.namespaces[c]&&d++;return a.length===d},b.prototype.matches=function(a,b,c){return!(this.element!==a||b&&this.original!==b||c&&this.handler!==c)},b}(),z=function(){var a={},b=function(c,d,e,f,g,h){var i=g?"r":"$";if(d&&"*"!=d){var j,k=0,l=a[i+d],m="*"==c;if(!l)return;for(j=l.length;j>k;k++)if((m||l[k].matches(c,e,f))&&!h(l[k],l,k,d))return}else for(var n in a)n.charAt(0)==i&&b(c,n.substr(1),e,f,g,h)},c=function(b,c,d,e){var f,g=a[(e?"r":"$")+c];if(g)for(f=g.length;f--;)if(!g[f].root&&g[f].matches(b,d,null))return!0;return!1},d=function(a,c,d,e){var f=[];return b(a,c,d,null,e,function(a){return f.push(a)}),f},e=function(b){var c=!b.root&&!this.has(b.element,b.type,null,!1),d=(b.root?"r":"$")+b.type;return(a[d]||(a[d]=[])).push(b),c},f=function(c){b(c.element,c.type,null,c.handler,c.root,function(b,c,d){return c.splice(d,1),b.removed=!0,0===c.length&&delete a[(b.root?"r":"$")+b.type],!1})},g=function(){var b,c=[];for(b in a)"$"==b.charAt(0)&&(c=c.concat(a[b]));return c};return{has:c,get:d,put:e,del:f,entries:g}}(),A=function(a){c=arguments.length?a:j.querySelectorAll?function(a,b){return b.querySelectorAll(a)}:function(){throw new Error("Bean: No selector engine installed")}},B=function(a,b){if(l||!b||!a||a.propertyName=="_on"+b){var c=z.get(this,b||a.type,null,!1),d=c.length,e=0;for(a=new w(a,this,!0),b&&(a.type=b);d>e&&!a.isImmediatePropagationStopped();e++)c[e].removed||c[e].handler.call(this,a)}},C=l?function(a,b,c){a[c?h:i](b,B,!1)}:function(a,b,c,d){var e;c?(z.put(e=new y(a,d||b,function(b){B.call(a,b,d)},B,null,null,!0)),d&&null==a["_on"+d]&&(a["_on"+d]=0),e.target.attachEvent("on"+e.eventType,e.handler)):(e=z.get(a,d||b,B,!0)[0],e&&(e.target.detachEvent("on"+e.eventType,e.handler),z.del(e)))},D=function(a,b,c,d,e){return function(){d.apply(this,arguments),a(b,c,e)}},E=function(a,b,c,d){var e,f,h=b&&b.replace(g,""),i=z.get(a,h,null,!1),j={};for(e=0,f=i.length;f>e;e++)c&&i[e].original!==c||!i[e].inNamespaces(d)||(z.del(i[e]),!j[i[e].eventType]&&i[e][m]&&(j[i[e].eventType]={t:i[e].eventType,c:i[e].type}));for(e in j)z.has(a,j[e].t,null,!1)||C(a,j[e].t,!1,j[e].c)},F=function(a,b){var d=function(b,d){for(var e,f=q(a)?c(a,d):a;b&&b!==d;b=b.parentNode)for(e=f.length;e--;)if(f[e]===b)return b},e=function(a){var c=d(a.target,this);c&&b.apply(c,arguments)};return e.__beanDel={ft:d,selector:a},e},G=l?function(a,b,c){var e=j.createEvent(a?"HTMLEvents":"UIEvents");e[a?"initEvent":"initUIEvent"](b,!0,!0,d,1),c.dispatchEvent(e)}:function(a,b,c){c=x(c,a),a?c.fireEvent("on"+b,j.createEventObject()):c["_on"+b]++},H=function(a,b,c){var d,e,h,i,j=q(b);if(j&&b.indexOf(" ")>0){for(b=p(b),i=b.length;i--;)H(a,b[i],c);return a}if(e=j&&b.replace(g,""),e&&v[e]&&(e=v[e].base),!b||j)(h=j&&b.replace(f,""))&&(h=p(h,".")),E(a,e,c,h);else if(r(b))E(a,null,b);else for(d in b)b.hasOwnProperty(d)&&H(a,d,b[d]);return a},I=function(a,b,d,e){var h,i,j,k,l,q,s;{if(void 0!==d||"object"!=typeof b){for(r(d)?(l=o.call(arguments,3),e=h=d):(h=e,l=o.call(arguments,4),e=F(d,h,c)),j=p(b),this===n&&(e=D(H,a,b,e,h)),k=j.length;k--;)s=z.put(q=new y(a,j[k].replace(g,""),e,h,p(j[k].replace(f,""),"."),l,!1)),q[m]&&s&&C(a,q.eventType,!0,q.customType);return a}for(i in b)b.hasOwnProperty(i)&&I.call(this,a,i,b[i])}},J=function(a,b,c,d){return I.apply(null,q(c)?[a,c,b,d].concat(arguments.length>3?o.call(arguments,5):[]):o.call(arguments))},K=function(){return I.apply(n,arguments)},L=function(a,b,c){var d,e,h,i,j,k=p(b);for(d=k.length;d--;)if(b=k[d].replace(g,""),(i=k[d].replace(f,""))&&(i=p(i,".")),i||c||!a[m])for(j=z.get(a,b,null,!1),c=[!1].concat(c),e=0,h=j.length;h>e;e++)j[e].inNamespaces(i)&&j[e].handler.apply(a,c);else G(u[b],b,a);return a},M=function(a,b,c){for(var d,e,f=z.get(b,c,null,!1),g=f.length,h=0;g>h;h++)f[h].original&&(d=[a,f[h].type],(e=f[h].handler.__beanDel)&&d.push(e.selector),d.push(f[h].original),I.apply(null,d));return a},N={on:I,add:J,one:K,off:H,remove:H,clone:M,fire:L,Event:w,setSelectorEngine:A,noConflict:function(){return b[a]=e,this}};if(d.attachEvent){var O=function(){var a,b=z.entries();for(a in b)b[a].type&&"unload"!==b[a].type&&H(b[a].element,b[a].type);d.detachEvent("onunload",O),d.CollectGarbage&&d.CollectGarbage()};d.attachEvent("onunload",O)}return A(),N}),!function(a,b,c){"undefined"!=typeof module&&module.exports?module.exports=c():"function"==typeof define&&define.amd?define(c):b[a]=c()}("reqwest",this,function(){function succeed(a){var b=protocolRe.exec(a.url);return b=b&&b[1]||window.location.protocol,httpsRe.test(b)?twoHundo.test(a.request.status):!!a.request.response}function handleReadyState(a,b,c){return function(){return a._aborted?c(a.request):a._timedOut?c(a.request,"Request is aborted: timeout"):void(a.request&&4==a.request[readyState]&&(a.request.onreadystatechange=noop,succeed(a)?b(a.request):c(a.request)))}}function setHeaders(a,b){var c,d=b.headers||{};d.Accept=d.Accept||defaultHeaders.accept[b.type]||defaultHeaders.accept["*"];var e="function"==typeof FormData&&b.data instanceof FormData;!b.crossOrigin&&!d[requestedWith]&&(d[requestedWith]=defaultHeaders.requestedWith),!d[contentType]&&!e&&(d[contentType]=b.contentType||defaultHeaders.contentType);for(c in d)d.hasOwnProperty(c)&&"setRequestHeader"in a&&a.setRequestHeader(c,d[c])}function setCredentials(a,b){"undefined"!=typeof b.withCredentials&&"undefined"!=typeof a.withCredentials&&(a.withCredentials=!!b.withCredentials)}function generalCallback(a){lastValue=a}function urlappend(a,b){return a+(/\?/.test(a)?"&":"?")+b}function handleJsonp(a,b,c,d){var e=uniqid++,f=a.jsonpCallback||"callback",g=a.jsonpCallbackName||reqwest.getcallbackPrefix(e),h=new RegExp("((^|\\?|&)"+f+")=([^&]+)"),i=d.match(h),j=doc.createElement("script"),k=0,l=-1!==navigator.userAgent.indexOf("MSIE 10.0");return i?"?"===i[3]?d=d.replace(h,"$1="+g):g=i[3]:d=urlappend(d,f+"="+g),win[g]=generalCallback,j.type="text/javascript",j.src=d,j.async=!0,"undefined"!=typeof j.onreadystatechange&&!l&&(j.htmlFor=j.id="_reqwest_"+e),j.onload=j.onreadystatechange=function(){return j[readyState]&&"complete"!==j[readyState]&&"loaded"!==j[readyState]||k?!1:(j.onload=j.onreadystatechange=null,j.onclick&&j.onclick(),b(lastValue),lastValue=void 0,head.removeChild(j),k=1,void 0)},head.appendChild(j),{abort:function(){j.onload=j.onreadystatechange=null,c({},"Request is aborted: timeout",{}),lastValue=void 0,head.removeChild(j),k=1}}}function getRequest(a,b){var c,d=this.o,e=(d.method||"GET").toUpperCase(),f="string"==typeof d?d:d.url,g=d.processData!==!1&&d.data&&"string"!=typeof d.data?reqwest.toQueryString(d.data):d.data||null,h=!1;return("jsonp"==d.type||"GET"==e)&&g&&(f=urlappend(f,g),g=null),"jsonp"==d.type?handleJsonp(d,a,b,f):(c=d.xhr&&d.xhr(d)||xhr(d),c.open(e,f,d.async===!1?!1:!0),setHeaders(c,d),setCredentials(c,d),win[xDomainRequest]&&c instanceof win[xDomainRequest]?(c.onload=a,c.onerror=b,c.onprogress=function(){},h=!0):c.onreadystatechange=handleReadyState(this,a,b),d.before&&d.before(c),h?setTimeout(function(){c.send(g)},200):c.send(g),c)}function Reqwest(a,b){this.o=a,this.fn=b,init.apply(this,arguments)}function setType(a){return a.match("json")?"json":a.match("javascript")?"js":a.match("text")?"html":a.match("xml")?"xml":void 0}function init(o,fn){function complete(a){for(o.timeout&&clearTimeout(self.timeout),self.timeout=null;self._completeHandlers.length>0;)self._completeHandlers.shift()(a)}function success(resp){var type=o.type||resp&&setType(resp.getResponseHeader("Content-Type"));resp="jsonp"!==type?self.request:resp;var filteredResponse=globalSetupOptions.dataFilter(resp.responseText,type),r=filteredResponse;try{resp.responseText=r}catch(e){}if(r)switch(type){case"json":try{resp=win.JSON?win.JSON.parse(r):eval("("+r+")")}catch(err){return error(resp,"Could not parse JSON in response",err)}break;case"js":resp=eval(r);break;case"html":resp=r;break;case"xml":resp=resp.responseXML&&resp.responseXML.parseError&&resp.responseXML.parseError.errorCode&&resp.responseXML.parseError.reason?null:resp.responseXML}for(self._responseArgs.resp=resp,self._fulfilled=!0,fn(resp),self._successHandler(resp);self._fulfillmentHandlers.length>0;)resp=self._fulfillmentHandlers.shift()(resp);complete(resp)}function timedOut(){self._timedOut=!0,self.request.abort()}function error(a,b,c){for(a=self.request,self._responseArgs.resp=a,self._responseArgs.msg=b,self._responseArgs.t=c,self._erred=!0;self._errorHandlers.length>0;)self._errorHandlers.shift()(a,b,c);complete(a)}this.url="string"==typeof o?o:o.url,this.timeout=null,this._fulfilled=!1,this._successHandler=function(){},this._fulfillmentHandlers=[],this._errorHandlers=[],this._completeHandlers=[],this._erred=!1,this._responseArgs={};var self=this;fn=fn||function(){},o.timeout&&(this.timeout=setTimeout(function(){timedOut()},o.timeout)),o.success&&(this._successHandler=function(){o.success.apply(o,arguments)}),o.error&&this._errorHandlers.push(function(){o.error.apply(o,arguments)}),o.complete&&this._completeHandlers.push(function(){o.complete.apply(o,arguments)}),this.request=getRequest.call(this,success,error)}function reqwest(a,b){return new Reqwest(a,b)}function normalize(a){return a?a.replace(/\r?\n/g,"\r\n"):""}function serial(a,b){var c,d,e,f,g=a.name,h=a.tagName.toLowerCase(),i=function(a){a&&!a.disabled&&b(g,normalize(a.attributes.value&&a.attributes.value.specified?a.value:a.text))};if(!a.disabled&&g)switch(h){case"input":/reset|button|image|file/i.test(a.type)||(c=/checkbox/i.test(a.type),d=/radio/i.test(a.type),e=a.value,(!c&&!d||a.checked)&&b(g,normalize(c&&""===e?"on":e)));break;case"textarea":b(g,normalize(a.value));break;case"select":if("select-one"===a.type.toLowerCase())i(a.selectedIndex>=0?a.options[a.selectedIndex]:null);else for(f=0;a.length&&f<a.length;f++)a.options[f].selected&&i(a.options[f])}}function eachFormElement(){var a,b,c=this,d=function(a,b){var d,e,f;for(d=0;d<b.length;d++)for(f=a[byTag](b[d]),e=0;e<f.length;e++)serial(f[e],c)};for(b=0;b<arguments.length;b++)a=arguments[b],/input|select|textarea/i.test(a.tagName)&&serial(a,c),d(a,["input","select","textarea"])}function serializeQueryString(){return reqwest.toQueryString(reqwest.serializeArray.apply(null,arguments))}function serializeHash(){var a={};return eachFormElement.apply(function(b,c){b in a?(a[b]&&!isArray(a[b])&&(a[b]=[a[b]]),a[b].push(c)):a[b]=c},arguments),a}function buildParams(a,b,c,d){var e,f,g,h=/\[\]$/;if(isArray(b))for(f=0;b&&f<b.length;f++)g=b[f],c||h.test(a)?d(a,g):buildParams(a+"["+("object"==typeof g?f:"")+"]",g,c,d);else if(b&&"[object Object]"===b.toString())for(e in b)buildParams(a+"["+e+"]",b[e],c,d);else d(a,b)}var win=window,doc=document,httpsRe=/^http/,protocolRe=/(^\w+):\/\//,twoHundo=/^(20\d|1223)$/,byTag="getElementsByTagName",readyState="readyState",contentType="Content-Type",requestedWith="X-Requested-With",head=doc[byTag]("head")[0],uniqid=0,callbackPrefix="reqwest_"+ +new Date,lastValue,xmlHttpRequest="XMLHttpRequest",xDomainRequest="XDomainRequest",noop=function(){},isArray="function"==typeof Array.isArray?Array.isArray:function(a){return a instanceof Array},defaultHeaders={contentType:"application/x-www-form-urlencoded",requestedWith:xmlHttpRequest,accept:{"*":"text/javascript, text/html, application/xml, text/xml, */*",xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript",js:"application/javascript, text/javascript"}},xhr=function(a){if(a.crossOrigin===!0){var b=win[xmlHttpRequest]?new XMLHttpRequest:null;if(b&&"withCredentials"in b)return b;if(win[xDomainRequest])return new XDomainRequest;throw new Error("Browser does not support cross-origin requests")}return win[xmlHttpRequest]?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")},globalSetupOptions={dataFilter:function(a){return a}};return Reqwest.prototype={abort:function(){this._aborted=!0,this.request.abort()},retry:function(){init.call(this,this.o,this.fn)},then:function(a,b){return a=a||function(){},b=b||function(){},this._fulfilled?this._responseArgs.resp=a(this._responseArgs.resp):this._erred?b(this._responseArgs.resp,this._responseArgs.msg,this._responseArgs.t):(this._fulfillmentHandlers.push(a),this._errorHandlers.push(b)),this},always:function(a){return this._fulfilled||this._erred?a(this._responseArgs.resp):this._completeHandlers.push(a),this},fail:function(a){return this._erred?a(this._responseArgs.resp,this._responseArgs.msg,this._responseArgs.t):this._errorHandlers.push(a),this},"catch":function(a){return this.fail(a)}},reqwest.serializeArray=function(){var a=[];return eachFormElement.apply(function(b,c){a.push({name:b,value:c})},arguments),a},reqwest.serialize=function(){if(0===arguments.length)return"";var a,b,c=Array.prototype.slice.call(arguments,0);return a=c.pop(),a&&a.nodeType&&c.push(a)&&(a=null),a&&(a=a.type),b="map"==a?serializeHash:"array"==a?reqwest.serializeArray:serializeQueryString,b.apply(null,c)},reqwest.toQueryString=function(a,b){var c,d,e=b||!1,f=[],g=encodeURIComponent,h=function(a,b){b="function"==typeof b?b():null==b?"":b,f[f.length]=g(a)+"="+g(b)};if(isArray(a))for(d=0;a&&d<a.length;d++)h(a[d].name,a[d].value);else for(c in a)a.hasOwnProperty(c)&&buildParams(c,a[c],e,h);return f.join("&").replace(/%20/g,"+")},reqwest.getcallbackPrefix=function(){return callbackPrefix},reqwest.compat=function(a,b){return a&&(a.type&&(a.method=a.type)&&delete a.type,a.dataType&&(a.type=a.dataType),a.jsonpCallback&&(a.jsonpCallbackName=a.jsonpCallback)&&delete a.jsonpCallback,a.jsonp&&(a.jsonpCallback=a.jsonp)),new Reqwest(a,b)},reqwest.ajaxSetup=function(a){a=a||{};for(var b in a)globalSetupOptions[b]=a[b]},reqwest}),function(){"use strict";Array.prototype.forEach||(Array.prototype.forEach=function(a,b){var c,d;if(null==this)throw new TypeError("this is null or not defined");var e,f=Object(this),g=f.length>>>0;if("[object Function]"!=={}.toString.call(a))throw new TypeError(a+" is not a function");for(arguments.length>=2&&(c=b),d=0;g>d;)d in f&&(e=f[d],a.call(c,e,d,f)),d++}),Array.prototype.indexOf||(Array.prototype.indexOf=function(a){if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=0;if(arguments.length>1&&(d=Number(arguments[1]),d!==d?d=0:0!==d&&d!==1/0&&d!==-(1/0)&&(d=(d>0||-1)*Math.floor(Math.abs(d)))),d>=c)return-1;for(var e=d>=0?d:Math.max(c-Math.abs(d),0);c>e;e++)if(e in b&&b[e]===a)return e;return-1})}(),function(){"use strict";if(!Element.prototype.addEventListener){var a={},b=function(b){b||(b=window.event);for(var c=0,d=0,e=a[b.type];d<e.aEls.length;d++)if(e.aEls[d]===this){for(c;c<e.aEvts[d].length;c++)e.aEvts[d][c].call(this,b);break}};Element.prototype.addEventListener=function(c,d){if(a.hasOwnProperty(c)){for(var e=a[c],f=-1,g=0;g<e.aEls.length;g++)if(e.aEls[g]===this){f=g;break}if(-1===f)e.aEls.push(this),e.aEvts.push([d]),this["on"+c]=b;else{var h=e.aEvts[f];this["on"+c]!==b&&(h.splice(0),this["on"+c]=b);for(var i=0;i<h.length;i++)if(h[i]===d)return;h.push(d)}}else a[c]={aEls:[this],aEvts:[[d]]},this["on"+c]=b},Element.prototype.removeEventListener=function(b,c){if(a.hasOwnProperty(b)){for(var d=a[b],e=-1,f=0;f<d.aEls.length;f++)if(d.aEls[f]===this){e=f;break}if(-1!==e)for(var g=0,h=d.aEvts[e];g<h.length;g++)h[g]===c&&h.splice(g,1)}}}}(),function(a){window.Element=window.Element||function(){},a.querySelectorAll||(a.querySelectorAll=window.Element.prototype.querySelectorAll=function(b){var c,d,e,f,g=b.split(","),h=function(b,c){var d,e,f,g,h,i,j,k,l,m,n,o,p,q=c.split(/[ >]+/),r=c.match(/[ >]+/g)||[],s=[b];for(r.unshift(" ");d=q.shift();)for(e=r.shift(),e&&(e=e.replace(/^ +| +$/g,"")),f=s.slice(0),s=[],g=f.length,i=d.match(/[#.[]?[a-z_-]+(?:='[^']+'|="[^"]+")?]?/gi),j=i.length,h=0;g>h;h++)if("#"==i[0].charAt(0))s=[a.getElementById(i[0].substr(1))];else{if(l=">"==e?f[h].children:f[h].getElementsByTagName("*"),!l)continue;for(n=l.length,m=0;n>m;m++){for(o=!0,k=0;j>k;k++){switch(i[k].charAt(0)){case".":l[m].className.match(new RegExp("\\b"+i[k].substr(1)+"\\b"))||(o=!1);break;case"[":p=i[k].substr(1,i[k].length-2).split("="),l[m].getAttribute(p[0])?p[1]&&(p[1]=p[1].replace(/^['"]|['"]$/g,""),l[m].getAttribute(p[0])!=p[1]&&(o=!1)):o=!1;break;default:l[m].tagName.toLowerCase()!=i[k].toLowerCase()&&(o=!1)}if(!o)break}o&&s.push(l[m])}}return s},i=g.length,j=[];for(c=0;i>c;c++)for(d=h(this,g[c]),e=d.length,f=0;e>f;f++)j.push(d[f]);return j}),a.querySelector||(a.querySelector=window.Element.prototype.querySelector=function(b){var c=a.querySelectorAll(b);return c.length?c[0]:null})}(document),function(){"use strict";String.prototype.sprintf||(String.prototype.sprintf=function(){for(var a=this,b=0,c=arguments.length;c>b;b++){var d=new RegExp("\\{"+b+"\\}","g");a=a.replace(d,arguments[b])}return a}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")})}();var shortest=shortest||{};shortest.cookie=function(a,b){"use strict";var c=3600,d=function(d,e,f,g){g===b&&(g="/");var h=new Date;h.setTime(h.getTime()+1e3*f*c);var i="; expires="+h.toGMTString();a.document.cookie=d+"="+e+"; "+i+"; path="+g},e=function(b,c){"undefined"==typeof c&&(c=null);var d=a.document.cookie;if(!d.length)return c;var e=d.indexOf(b+"=");if(-1===e||!e&&b!==d.substring(0,b.length))return c;var f=e+b.length+1,g=d.indexOf(";",f);return-1===g&&(g=d.length),unescape(d.substring(f,g))};return{set:d,get:e,expiresMultiplier:c}}(this);var shortest=shortest||{};shortest.common=shortest.common||{},shortest.common.IFrameDetector=function(a){"use strict";function b(){return a.top!==a.self}function c(){if(!a.hasOwnProperty("top")||!a.hasOwnProperty("self"))throw new Error("Improper window object")}return c(),{pageDisplayedInIFrame:b}};var shortest=shortest||{};shortest.utils=function(a){"use strict";function b(b){a.location=b}function c(){return a.referrer}function d(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}return{redirect:b,getReferrer:c,overrideObject:d}}(document);var shortest=shortest||{};shortest.http=shortest.http||{},shortest.http.XmlHttpRequestGateway=function(){"use strict";var a=function(a,b){var c=new XMLHttpRequest;c.open("POST",a,!0),c.send(JSON.stringify(b))};return{post:a}};var shortest=shortest||{};shortest.dataCollector=shortest.dataCollector||{},shortest.dataCollector.ImpressionType=function(a){"use strict";var b=function(){return a};return{toInt:b}},shortest.dataCollector.ImpressionType.LEGIT=1,shortest.dataCollector.ImpressionType.JINGLING=2,shortest.dataCollector.ImpressionType.legitImpression=function(){"use strict";return new shortest.dataCollector.ImpressionType(shortest.dataCollector.ImpressionType.LEGIT)},shortest.dataCollector.ImpressionType.jinglingImpression=function(){"use strict";return new shortest.dataCollector.ImpressionType(shortest.dataCollector.ImpressionType.JINGLING)};var shortest=shortest||{};shortest.dataCollector=shortest.dataCollector||{},shortest.dataCollector.ApiKeyToImpressionTypeBindings=function(){"use strict";var a={},b=function(b,c){if("undefined"!=typeof c)for(var d=0;d<c.length;d++)a[c[d]]=b},c=function(b){return b in a},d=function(b){return a[b]};return{apiKeyBindingExists:c,bind:b,getBoundImpressionType:d}};var shortest=shortest||{};shortest.dataCollector=shortest.dataCollector||{},shortest.dataCollector.FraudDataCollector=function(a,b,c,d){"use strict";var e=function(){g()&&f()},f=function(){var e=b.getBoundImpressionType(a);c.post(d,{impressionType:e.toInt()})},g=function(){return b.apiKeyBindingExists(a)};return{collectHttpHeaders:e}};var shortest=shortest||{};shortest.collector=shortest.collector||{},shortest.collector.eventPublisher=function(a,b){"use strict";var c=function(a,b){var c=a.toJson();d(c,b)},d=function(c,d){reqwest({url:a,crossOrigin:!0,method:"post",contentType:"application/json",data:c,error:d,success:d,timeout:b})};return{publish:c}},shortest.collector=shortest.collector||{},shortest.collector.events=shortest.collector.events||{},shortest.collector.OverlayEvent=function(a,b){"use strict";var c=function(){return JSON.stringify({eventName:b,publisherApiToken:a})};return{toJson:c}},shortest.collector.events.createSkipButtonClicked=function(a){"use strict";return shortest.collector.OverlayEvent(a,"skipButtonClicked")},shortest.collector.events.createTabFocusLost=function(a){"use strict";return shortest.collector.OverlayEvent(a,"tabFocusLost")},shortest.collector=shortest.collector||{},shortest.collector.events=shortest.collector.events||{},shortest.collector.init=function(a){"use strict";var b=shortest.collector.eventPublisher(a.eventCollectorUrl,a.eventCollectorTimeout);bean.on(window,"blur",function(){var c=a.apiToken;b.publish(shortest.collector.events.createTabFocusLost(c))}),bean.on(document.getElementById(a.skipAdElementId),"mousedown",function(c){function d(){var a=window.location.href,b=c.currentTarget.href;return a=/#$/.test(a)?a.slice(0,-1):a,b=/#$/.test(b)?b.slice(0,-1):b,a===b}var e=a.apiToken,f=shortest.collector.events.createSkipButtonClicked(e);d()?b.publish(f):(c.stopPropagation(),b.publish(f,function(){window.location=c.currentTarget.href}))})};var shortest=shortest||{config:{}};shortest.capping={},function(a){"use strict";shortest.capping.Capping=function(b,c,d,e){function f(){return void 0!==b}function g(){return void 0!==d&&void 0!==e}function h(){if(f()){var h=parseInt(a.cookie.get(c,0),10)+1;a.cookie.set(c,h.toString(),b.timeout)}if(g()){var i=Date.now();a.cookie.set(d,i.toString(),e)}}function i(){if(!f())return!1;var h=parseInt(a.cookie.get(c,0),10)>=b.limit;if(!g())return h;var i,j;i=Date.now(),j=parseInt(a.cookie.get(d,i-e));var k=i-j>=e;return h||!k}return c=c||"shortest-cap",a.cookie.expiresMultiplier=3600,{increment:h,isLimitExceeded:i}},shortest.capping.defaultSettings={limit:1,timeout:24}}({cookie:shortest.cookie});var shortest=shortest||{};shortest.domains={},shortest.domains.DomainsChecker=function(a,b,c){"use strict";function d(c){var d=!0,f=!1;return void 0!==a&&(d=e(c,a)),void 0!==b&&(f=e(c,b)),d&&!f}function e(a,b){if(!a)return!1;for(var c=0,d=b.length;d>c;c++){var e=new RegExp(b[c],"i");if(a.search(e)>0)return!0}return!1}return c===!0&&(b=b||[],b.push(document.location.hostname)),{checkDomain:d}};var shortest=shortest||{};shortest.bounceDetector=function(a,b,c){"use strict";function d(){var a=b.cookie.get(g);return a===c||1!==parseInt(a,10)}function e(){b.bean.off(a.body,"click",e),b.cookie.set(g,1,24)}function f(){i.forEach(function(a){a()})}var g="shst_non_bounce__",h=2e4,i=[function(){window.setTimeout(e,h)},function(){b.bean.on(a.body,"click",e)}];return b.domready(f),{isBounce:d}}(document,{cookie:shortest.cookie,bean:bean,domready:domready});var shortest=shortest||{};shortest.api=function(){"use strict";function a(a,b){var c=new XMLHttpRequest;c.open("GET",g.placementCodeUrl+g.token+"/"+a),c.setRequestHeader("Content-Type","text/html"),c.onload=function(){b(c.responseText)},c.send()}function b(a){var b=document.createElement("script");b.innerHTML='var EpomConfig = EpomConfig || {ads:[]};\nEpomConfig.ads.push({\nepom_key:"'+g.epomKey+'",\nepom_channel:"",\nepom_code_format:"ads-async.js",\nepom_ads_host:"//www.stshrt.com",\nepom_click:"",\nepom_custom_params:{},\nepom_target_id:"epom-'+g.epomKey+'"\n});\n(function () {\nvar sc = document.createElement("script");\nsc.type = "text/javascript";\nsc.async = true;\nsc.src = (location.protocol == "https:" ? "https:" : \n"http:") + "//www.stshrt.com/js/show_ads.js";\nvar s = document.getElementsByTagName("script")[0];\ns.parentNode.insertBefore(sc, s);\n})();\n',document.head.appendChild(b),a('<div id="epom-'+g.epomKey+'"></div>')}function c(c,d){shortest.overlay.withShstAdCode()?a(d,c):b(c)}function d(a,b){a=a.replace("#",h);var c="http://{0}/r/{1}/{2}/{3}/{4}".sprintf(g.shDomain.trim(),g.token,b,g.inclusionTypeId,a);return c}function e(a){var b=document.createElement("script");b.type="text/javascript",b.async=!0,b.src="https://ssp.shorte.st/bid/?tag_id=90&mode=jsonfeed&callback={0}&sub_id={1}&url={2}&keywords={3}".sprintf(a,g.token,encodeURIComponent(document.location),document.getElementsByTagName("title")[0]?encodeURIComponent(document.getElementsByTagName("title")[0].text):""),document.getElementsByTagName("head")[0].appendChild(b)}function f(a){g=a,g.token=g.token.trim()}var g,h="~~HASH~~";return{getInterstitialPageUrl:d,loadAdvertisementCode:c,setConfig:f,getRTBAd:e}}();var shortest=shortest||{};shortest.session=function(){"use strict";function a(a,b){var c=new XMLHttpRequest;c.open("POST",[d.sessionEndUrl,d.token,"/",a,"/",b.toString()].join("")),c.setRequestHeader("Content-Type","application/json"),c.withCredentials=!0,c.send(),shortest.googleAnalyticsTracker.trackCallback("success")}function b(){return d.sessionDuration}function c(a){d=a}var d,e=function(a,b,c){a=a||function(){},b=b||function(){};var e,f;e=new XMLHttpRequest,e.open("POST",d.sessionStartUrl+d.token,!0),e.setRequestHeader("Content-Type","application/json; charset=utf-8"),e.onload=function(){try{var c=JSON.parse(e.responseText);shortest.session.adSessionId=c.adSessionId,shortest.cookie.set("cookies-enable",1),a()}catch(d){b()}},e.onerror=function(){b()},f={moduleType:c,inclusionType:d.inclusionTypeId},e.withCredentials=!0,e.send(JSON.stringify(f))};return{start:e,finish:a,sessionDuration:b,setConfig:c}}();var shortest=shortest||{};shortest.countdown=function(){"use strict";function a(){k(j),0>j?(b(),l()):j--}function b(){clearInterval(h)}function c(){clearInterval(h),j=i,h=setInterval(a,1250)}function d(a,b,c){i=a-1,k=c||function(){},l=b||function(){}}function e(a){k=a}function f(a){l=a}function g(){return j||i}var h,i,j,k,l;return{init:d,start:c,changeUpdateFunctionTo:e,changeFinishFunctionTo:f,secondsLeft:g}}();var shortest=shortest||{};shortest.advertisementRedirectBlocker=function(){"use strict";var a=!1,b=!1,c="//shorte.st/no-content",d=function(){
  2. shortest.advertisementRedirectBlockerIntervalId=setInterval(function(){b&&(window.top.location=c)},1)},e=function(){window.clearInterval(shortest.advertisementRedirectBlockerIntervalId)};return window.onbeforeunload=function(){a?(a=!1,b=!1):(b=!0,a=!0)},{stopBlocking:e,startBlocking:d}};var shortest=shortest||{};shortest.googleAnalyticsTracker=function(){"use strict";var a,b=!1,c=function(){f(),ga("shstTracker.send","pageview")},d=function(a){f(),ga("shstTracker.send","event","interstitial","callback",a)},e=function(a){f(),ga("shstTracker.send","event","interstitial","click",a)},f=function(){if(!b){var c=document.getElementsByTagName("head")[0],d=document.createElement("script");d.type="text/javascript",d.src="//www.google-analytics.com/analytics.js",d.async="async",c.appendChild(d),window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date,ga("create",a.trackingId,"auto",{name:"shstTracker"}),ga("shstTracker.set","campaignName",a.apiToken),ga("shstTracker.set","campaignSource",document.location),ga("shstTracker.set","campaignMedium","overlay"),ga("shstTracker.set","page","/overlay/"+a.apiToken),b=!0}},g=function(b){a=b};return{trackPageView:c,trackCallback:d,trackClick:e,setConfig:g}}();var shortest=shortest||{config:{}};shortest.LinksMonetization=function(a){"use strict";var b,c,d,e={enabled:!1,shortestDomain:"shorte.st",shDomain:"sh.st",capping:{limit:5,timeout:24},domains:void 0,excludeDomains:void 0,excludeCurrentDomain:!1},f=function(){e.enabled===!0&&(h(),i(),b.isLimitExceeded()||j())},g=function(a){Object.keys(e).forEach(function(b){a.hasOwnProperty(b)&&(e[b]=a[b])})},h=function(){b=new shortest.capping.Capping(e.capping,"shortest-conv-cap-v2")},i=function(){d=new shortest.domains.DomainsChecker(e.domains,[e.shortestDomain,e.shDomain].concat(e.excludeDomains),e.excludeCurrentDomain)},j=function(){c=function(c){l(c.currentTarget)&&m(c.currentTarget.href)&&(a(c),b.increment(),b.isLimitExceeded()&&k())},bean.on(document.body,"mousedown","a",c)},k=function(){bean.off(document.body,"mousedown","a",c)},l=function(a){var b,c;return b=function(a){return"a"===a.tagName.toLowerCase()&&a.href.length>0},c=function(a){var b,c=document.getElementById("overlay-container");return b=function(a,b){for(var c=b.parentNode;null!=c;){if(c===a)return!0;c=c.parentNode}return!1},!(c&&b(c,a))},b(a)&&c(a)},m=function(a){var b,c;return b=function(a){return 0===a.indexOf("javascript:")},c=function(a){return d.checkDomain(a)},!b(a)&&c(a)};return{clear:k,init:f,setConfig:g}};var shortest=shortest||{};shortest.overlay=function(){"use strict";function a(a){var b=/shst-dest-page/i;return b.test(a.className)}function b(){var a=window.navigator.userAgent,b=a.indexOf("MSIE ");if(b>0||navigator.userAgent.match(/Trident.*rv\:11\./)){var c=parseInt(a.substring(b+5,a.indexOf(".",b)));if(8>c)return!1}return!0}function c(){return g.overlayActivated&&b()&&f()}function d(){return g.withSession}function e(a){g=a}function f(){return!l.pageDisplayedInIFrame()}var g,h,i,j,k,l,m,n,o,p,q,r,s=!1,t="overlay-container",u=".lay-sh",v="close-overlay-container",w=".content-sh",x={loadingText:"Loading...",continueToText:"CLIQUE AQUI PARA FECHAR ISTO ",skipAdText:"FECHAR PROPAGANDA &raquo;",waitText:"POR FAVOR, ESPERE "},y=function(a,b){z(),A(),m=a,l=b,h=shortest.advertisementRedirectBlocker()},z=function(){var a=document.getElementsByTagName("head")[0],b=document.createElement("link");o=document.getElementById(t),b.rel="stylesheet",b.type="text/css",b.href=g.overlayCss,a.appendChild(b);var c='<div class="lay-sh"><div class="container-top-sh"><div class="logo-sh"></div><a href="#" class="cl-button-sh shst-dest-page active-sh" id="'+v+'"></a></div><div class="container-sh"><div class="content-sh"></div></div><div class="container-bottom-sh">'+g.productName+"</div></div>";null===o&&(o=document.createElement("div"),o.id=t,document.body.appendChild(o)),o.innerHTML=c},A=function(){p=document.querySelectorAll(u)[0],r=document.querySelectorAll(w)[0],q=document.getElementById(v)},B=function(a,b,c,d){var e=function(){C(a,b,c),D(),m.collectHttpHeaders(),d()};f()&&(g.withSession?shortest.session.start(e,function(){},n):e())},C=function(a,b,c){n=c,i=a,j=a&&void 0===b?window.location.href:b,q.innerHTML=x.loadingText,p.className+=" active-sh",shortest.googleAnalyticsTracker.trackPageView()},D=function(){G(),F(),shortest.api.loadAdvertisementCode(function(a){r.innerHTML=a},shortest.session.adSessionId)},E=function(){p.className="lay-sh",q.innerHTML="",r.innerHTML="",s=!1},F=function(){H(),shortest.countdown.init(shortest.session.sessionDuration(),function(){s=!1,h.stopBlocking(),I(),shortest.session.finish(shortest.session.adSessionId,n)}),shortest.countdown.start(),s=!0},G=function(){h.startBlocking(),bean.on(p,"click",function(){h.stopBlocking()})},H=function(){var a=document.createElement("a");a.href=j,q.innerHTML=x.continueToText+a.hostname+" &raquo;",q.href="#",k=function(a){v===a.target.id&&(s?shortest.countdown.changeUpdateFunctionTo(function(a){q.innerHTML=x.waitText+a}):q.innerHTML=x.skipAdText,window.removeEventListener("click",k,!0))},window.addEventListener("click",k,!0)},I=function(){window.removeEventListener("click",k,!0),i?(k=function(a){v===a.target.id&&(shortest.googleAnalyticsTracker.trackClick("skip"),E(),window.removeEventListener("click",k,!0))},window.addEventListener("click",k,!0)):q.href=j,q.innerHTML=x.skipAdText};return{setConfig:e,isActivated:c,init:y,show:B,hide:E,isDestinationHref:a,withShstAdCode:d,notDisplayedInIframe:f}}();var shortest=shortest||{};shortest.rtbOverlay=function(){"use strict";function a(){var a=window.navigator.userAgent,b=a.indexOf("MSIE ");if(b>0||navigator.userAgent.match(/Trident.*rv\:11\./)){var c=parseInt(a.substring(b+5,a.indexOf(".",b)));if(8>c)return!1}return!0}function b(){return a()&&d()}function c(a){e=a}function d(){return!j.pageDisplayedInIFrame()}var e,f,g,h,i,j,k,l,m,n,o,p,q,r=!1,s="overlay-container",t=".lay-sh",u="close-overlay-container",v=".content-sh",w={loadingText:"Loading...",continueToText:"CLIQUE AQUI PARA FECHAR ISSO ",skipAdText:"FECHAR PROPAGANDA &raquo;",waitText:"POR FAVOR, ESPERE "},x=function(a){y(),z(),j=a,f=shortest.advertisementRedirectBlocker()},y=function(){var a=document.getElementsByTagName("head")[0],b=document.createElement("link");n=document.getElementById(s),b.rel="stylesheet",b.type="text/css",b.href=e.overlayCss,a.appendChild(b);var c='<div class="lay-sh"><div class="container-top-sh"><div class="logo-sh"></div><a href="#" class="cl-button-sh shst-dest-page active-sh" id="'+u+'"></a></div><div class="container-sh"><div class="content-sh"></div></div><div class="container-bottom-sh">'+e.productName+"</div></div>";null===n&&(n=document.createElement("div"),n.id=s,document.body.appendChild(n)),n.innerHTML=c},z=function(){o=document.querySelectorAll(t)[0],q=document.querySelectorAll(v)[0],p=document.getElementById(u)},A=function(a,c,d){b()&&(k=a,l=c,m=d,shortest.api.getRTBAd("shortest.rtbOverlay.handleRtbResponse"))},B=function(a){a&&a.bid&&a.bid>=e.minBid?(console.log(1e3*a.bid+" accepted"),C(k,l),D(a.creativeUrl),m()):console.log(1e3*a.bid+" to low")},C=function(){g=k,h=k&&void 0===l?window.location.href:l,p.innerHTML=w.loadingText,o.className+=" active-sh",shortest.googleAnalyticsTracker.trackPageView()},D=function(a){G(),F(),q.innerHTML="<iframe id='overlay-ad' src='{0}' width='100%' height='100%'></iframe>".sprintf(decodeURIComponent(a))},E=function(){o.className="lay-sh",p.innerHTML="",q.innerHTML="",r=!1},F=function(){H(),shortest.countdown.init(10,function(){r=!1,f.stopBlocking(),I()}),shortest.countdown.start(),r=!0},G=function(){f.startBlocking(),bean.on(o,"click",function(){f.stopBlocking()})},H=function(){var a=document.createElement("a");a.href=h,p.innerHTML=w.continueToText+a.hostname+" &raquo;",p.href="#",i=function(a){u===a.target.id&&(r?shortest.countdown.changeUpdateFunctionTo(function(a){p.innerHTML=w.waitText+a}):p.innerHTML=w.skipAdText,window.removeEventListener("click",i,!0))},window.addEventListener("click",i,!0)},I=function(){window.removeEventListener("click",i,!0),g?(i=function(a){u===a.target.id&&(shortest.googleAnalyticsTracker.trackClick("skip"),E(),window.removeEventListener("click",i,!0))},window.addEventListener("click",i,!0)):p.href=h,p.innerHTML=w.skipAdText};return{setConfig:c,init:x,show:A,hide:E,handleRtbResponse:B}}();var shortest=shortest||{config:{}};shortest.entryScript=function(a,b,c,d){"use strict";function e(){l=new c.capping.Capping(k.capping||c.capping.defaultSettings,n,o,k.minimumDelay),l.isLimitExceeded()||q[k.type||"click"]()}function f(){l.increment()}function g(){var b=a.location.href;k.rtb?shortest.rtbOverlay.show(!0,b,f):shortest.overlay.show(!0,b,m,f),j()}function h(a){var b={minimumDelay:9e5};a!==d&&(k=c.utils.overrideObject(b,a))}function i(){k!==d&&e()}function j(){b.bean.off(a.body,"click",g)}var k,l,m=shortest.MODULE_TYPE.ENTRY,n="shortest-entry-capping-v2",o="shortest-last-redirect-time",p=1e3,q={timeout:function(){window.setTimeout(g,k.timeout||p)},click:function(){b.bean.on(a.body,"click",g)}};return{clear:j,init:i,setConfig:h}}(document,{bean:bean},{capping:shortest.capping,api:shortest.api,utils:shortest.utils,cookies:shortest.cookie,session:shortest.session});var shortest=shortest||{config:{}};shortest.exitScript=function(a,b,c,d,e){"use strict";function f(){l={enabled:l.enabled||!1}}function g(){var c=d.utils.getReferrer();c&&(b.replaceState({f:1,next:d.api.getInterstitialPageUrl(c,n)},a.title),b.pushState({s:1},a.title))}function h(a){var c=a.state;if(c&&!c.s)return d.bounceDetector.isBounce()?void(c.f&&c.next&&window.setTimeout(function(){d.utils.redirect(c.next)},m)):(j(),void b.go(-1))}function i(){l!==e&&(f(),l.enabled&&b&&b.pushState!==e&&(g(),c.bean.on(window,"popstate",h)))}function j(){c.bean.off(window,"popstate",h)}function k(a){l=a}var l,m=10,n=shortest.MODULE_TYPE.EXIT;return{clear:j,init:i,setConfig:k}}(document,window.history,{bean:bean,domready:domready},{api:shortest.api,utils:shortest.utils,bounceDetector:shortest.bounceDetector}),function(){var a,b,c,d=function(a){a.stop()};a=function(a){if(!shortest.overlay.isDestinationHref(a.currentTarget)){bean.one(a.currentTarget,"click",d),a.stop();var b=a.currentTarget.href;shortest.overlay.show(!1,b,shortest.MODULE_TYPE.LINK_CLICK_OVERLAY,function(){})}},b=function(a){a.currentTarget.href=shortest.api.getInterstitialPageUrl(a.currentTarget.href,shortest.MODULE_TYPE.LINK_CLICK)},c=function(c){shortest.overlay.isActivated()?a(c):b(c)},shortest.converter=new shortest.LinksMonetization(c)}();var shortest=shortest||{config:{}};shortest.commentConverter=function(a,b,c,d){"use strict";function e(a){m=a}function f(a,b){return p.test(a)?a:b+a}function g(a,b){var c=f(a,"http://"),d='<a href="'+c+'">'+c+"</a>";b.innerHTML=b.innerHTML.replace(a,d)}function h(){for(var b=a.querySelectorAll(".comment-content"),c=0;c<b.length;c++){for(var d=b[c],e=d.cloneNode(!0),f=e.querySelectorAll("a"),h=0;h<f.length;h++)e.removeChild(f[h]);var i=e.innerHTML.match(o);if(i)for(var j=0;j<i.length;j++)i[j]=g(i[j],d)}}function i(a){return"a"===a.tagName.toLowerCase()&&a.href.length>0}function j(a){var b=a.currentTarget;i(b)&&(b.href=shortest.api.getInterstitialPageUrl(b.href,n))}function k(){bean.on(a.body,"mousedown",".comment-content a",j)}function l(){m!==d&&m.enable&&(h(),k())}var m,n=shortest.MODULE_TYPE.COMMENTS_MONETIZER,o=new RegExp("(?:(?:https?|ftp)://)?(?:\\S+(?::\\S*)?@)?(?:(?!10(?:\\.\\d{1,3}){3})(?!127(?:\\.\\d{1,3}){3})(?!169\\.254(?:\\.\\d{1,3}){2})(?!192\\.168(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:/[^\\s]*)?","mig"),p=new RegExp("^(?:(?:https?|ftp)://)","i");return{init:l,setConfig:e}}(document,{bean:bean,domready:domready},{api:shortest.api});var shortest=shortest||{};shortest.popUnder=function(){"use strict";var a,b={adCashScriptUrl:"https://www.tradeadexchange.com/a/display.php?r=999708&sub1={{token}}&sub2={{scriptId}}",sspAPIUrl:"https://ssp.shorte.st/bid/?tag_id={{tagId}}&sub_id={{subId}}&url={{url}}&mode=jsonfeed&callback={{callback}}",popUnderTagId:90,enabled:!1,capping:{limit:1,timeout:1},cappingDelay:9e5,defaultScriptId:0},c=function(){b.enabled===!0&&(d(),a.isLimitExceeded()||e())},d=function(){a=new shortest.capping.Capping(b.capping,"shortest-pop-under","shortest-last-pop-under",b.cappingDelay)},e=function(){j()},f=function(b){g(b)?i(b,function(){a.increment()}):h()},g=function(a){return void 0!==a.bid&&parseFloat(a.bid)>0},h=function(){m(),a.increment()},i=function(a,b){SmartPopunder.make(a.creativeUrl,{newTab:!0,blur:!1,chromeDelay:450,cookieExpires:0,afterOpen:b})},j=function(){k(l(),h)},k=function(a,b){var c=document.createElement("script");c.type="text/javascript",c.src=a,c.addEventListener("error",b,!0),document.body.appendChild(c)},l=function(){var a=b.sspAPIUrl;return a=a.replace(/{{tagId}}/g,b.popUnderTagId),a=a.replace(/{{subId}}/g,shortest.config.token),a=a.replace(/{{url}}/g,encodeURIComponent(window.location)),a=a.replace(/{{callback}}/g,"shortest.popUnder.onSSPPopUnderBidRetrieved")},m=function(){var a,c;c=function(){var a;return a=b.adCashScriptUrl,a=a.replace(/{{token}}/g,shortest.config.token),a=a.replace(/{{scriptId}}/g,b.defaultScriptId)},(a=function(){var a,b;a=document.createElement("script"),a.src=c(),b=document.getElementsByTagName("script")[0],document.getElementsByTagName("script")[0].parentNode.insertBefore(a,b)})()},n=function(a){Object.keys(b).forEach(function(c){a.hasOwnProperty(c)&&(b[c]=a[c])})};return{init:c,setConfig:n,onSSPPopUnderBidRetrieved:f}}();var shortestPopFlashUrl="//cdn.shorte.st/pops/flash/flash.swf";!function(a){var b=0,c=0,d=top!=self?top:self,e=navigator.userAgent.toLowerCase();/windows/.test(e),/macintosh/.test(e);var f=/iphone|ipad|android/.test(e),g=/webkit/.test(e);/mozilla/.test(e)&&/(compatible|webkit)/.test(e);var h=/chrome/.test(e),i=/msie|trident\//.test(e)&&!/opera/.test(e),j=/firefox/.test(e);/safari/.test(e)&&/chrome/.test(e),/opera/.test(e);var k=parseInt(e.match(/(?:[^\s]+(?:ri|ox|me|ra)\/|trident\/.*?rv:)([\d]+)/i)[1],10),l={simulateClick:function(b){b=this.createElement("a",{href:b||"data:text/html,<script>window.close();</script>;"});var c=document.createEvent("MouseEvents");document.body.appendChild(b),c.initMouseEvent("click",!0,!0,a,0,0,0,0,0,!0,!1,!1,!0,0,null),b.dispatchEvent(c),b.parentNode.removeChild(b)},blur:function(b){if(!f)try{b.blur(),b.opener.window.focus(),a.self.window.focus(),a.focus(),j?this.openCloseWindow(b):g?(!h||h&&41>k)&&this.openCloseTab():i&&setTimeout(function(){b.blur(),b.opener.window.focus(),a.self.window.focus(),a.focus()},1e3)}catch(c){}},createElement:function(a,b,c){a=document.createElement(a);for(var d in b)a.setAttribute(d,b[d]);return c&&(a.innerHTML=innerHTML),a},openCloseWindow:function(a){var b=a.window.open("about:blank");b.focus(),b.close(),setTimeout(function(){try{b=a.window.open("about:blank"),b.focus(),b.close()}catch(c){}},1)},openCloseTab:function(){this.simulateClick()},isFlashInstalled:function(){return!!navigator.mimeTypes["application/x-shockwave-flash"]},removeFlashPopunder:function(a){setTimeout(function(){var b=document.getElementById(a.name+"_flash");b&&b.parentNode.removeChild(b)},1e3)},initFlashPopunder:function(a){var b,c,d=this,e=a.name+"_flash",f=this.createElement("object",{type:"application/x-shockwave-flash",data:n.flashUrl,name:e,id:e,style:"position:fixed;visibility:visible;left:0;top:0;width:1px;height:1px;z-index:9999999;"});a=[{name:"flashvars",value:"fire="+a.name+".fire&name="+a.name},{name:"wmode",value:"transparent"},{name:"menu",value:"false"},{name:"allowscriptaccess",value:"always"}];for(c in a)f.appendChild(this.createElement("param",a[c]));return b=setInterval(function(){"complete"==document.readyState&&(clearInterval(b),document.body.insertBefore(f,document.body.firstChild),f.focus(),d.attachEvent("mousedown",function(a){0===a.button&&(document.getElementById(e).style.width=document.getElementById(e).style.height="100%")}))},10),f},detachEvent:function(b,c,d){return d=d||a,d.removeEventListener?d.removeEventListener(b,c):d.detachEvent("on"+b,c)},attachEvent:function(b,c,d){return d=d||a,d.addEventListener?d.addEventListener(b,c,!0):d.attachEvent("on"+b,c)},mergeObject:function(){var a,b,c={};for(a=0;a<arguments.length;a++)for(b in arguments[a])c[b]=arguments[a][b];return c},getCookie:function(a){return(a=document.cookie.match(new RegExp(a+"=[^;]+","i")))?decodeURIComponent(a[0].split("=")[1]):null},setCookie:function(a,b,c,d){if(null===c||"undefined"==typeof c)c="";else{var e;"number"==typeof c?(e=new Date,e.setTime(e.getTime()+6e4*c)):e=c,c="; expires="+e.toUTCString()}document.cookie=a+"="+escape(b)+c+"; path="+(d||"/")}},m=[],n=function(a,b){this.__construct(a,b)};n.flashUrl=shortestPopFlashUrl+"?v="+Math.random(),n.prototype={defaultWindowOptions:{width:a.screen.width,height:a.screen.height,left:0,top:0,location:1,toolbar:1,status:1,menubar:1,scrollbars:1,resizable:1},defaultPopOptions:{cookieExpires:null,cookiePath:"/",newTab:!0,blur:!0,chromeDelay:500,beforeOpen:function(){},afterOpen:function(){}},__newWindowOptionsFlash:{menubar:0,toolbar:0},__newWindowOptionsChromeBefore41:{scrollbars:1},__wasPopUnderBlocked:function(a){try{a.focus()}catch(b){return!0}return!1},__construct:function(c,d){this.url=c,this.index=b++,this.name="SmartPopunder_"+this.index,this.executed=!1,this.setOptions(d),this.register(),this.isExecuted()||m.push(this.url),a[this.name]=this},register:function(){if(!this.isExecuted()){if(this.options.blur&&!this.options.newTab&&l.isFlashInstalled())return l.initFlashPopunder(this);var b=this,c=function(){b.shouldExecute()&&(b.fire(),l.detachEvent("click",c,a),l.detachEvent("click",c,document))};l.attachEvent("click",c,a),l.attachEvent("click",c,document)}},fire:function(b){b=a[b]||this;var e;if(b.options.beforeOpen.call(void 0,this),c=(new Date).getTime(),b.setExecuted(),b.options.newTab)if(b.options.blur&&(f||h&&k>=41||j&&k>=38||i&&k>=11))if(1==m.length||h){e=d.window.open(a.location.href,"_blank");var g=m.shift();setTimeout(function(){a.location.href=g},100)}else e=d.window.open(m.shift(),"_blank");else h&&k>30&&b.options.blur?(a.open("javascript:window.focus()","_self",""),l.simulateClick(b.url),e=null):e=d.window.open(b.url,"_blank");else e=a.open(b.url,b.url,b.getParams());this.__wasPopUnderBlocked(e)||(b.options.afterOpen.call(void 0,this),b.options.blur&&l.blur(e),l.removeFlashPopunder(b))},shouldExecute:function(){return h&&c&&c+this.options.chromeDelay>(new Date).getTime()?!1:!this.isExecuted()},isExecuted:function(){return this.executed||!!l.getCookie(this.name)},setExecuted:function(){this.executed=!0,l.setCookie(this.name,1,this.options.cookieExpires,this.options.cookiePath)},setOptions:function(a){if(this.options=l.mergeObject(this.defaultWindowOptions,this.defaultPopOptions,a||{}),!this.options.newTab){if(h&&41>k)for(var b in this.__newWindowOptionsChromeBefore41)this.options[b]=this.__newWindowOptionsChromeBefore41[b];if(l.isFlashInstalled())for(b in this.__newWindowOptionsFlash)this.options[b]=this.__newWindowOptionsFlash[b]}},getParams:function(){var a,b="";for(a in this.options)"undefined"!=typeof this.defaultWindowOptions[a]&&(b+=(b?",":"")+a+"="+this.options[a]);return b}},n.make=function(a,b){return new this(a,b)},a.SmartPopunder=n}(this);var shortestApplication=function(a,b,c,d){"use strict";if(void 0===d)throw new Error("Missing Shorte.st monetization configuration.");c.config=c.config||{},c.config.token=d.token;var e=d,f='Desculpe pelo anuncio, mais e atravez dele que mantenho o site online <a href="https://shorte.st?utm_source='+a.location.hostname+'&utm_medium=overlay&utm_campaign=bottom" target="_blank"> </a>',g={overlay:{overlayActivated:e.overlayActivated||!1,overlayCss:e.overlayCss||"https://cdn.shorte.st/css/sh-overlay.css",withSession:void 0!==e.withSession?e.withSession:!0,productName:e.productName||f,apiKey:e.token,dataCollectorUrl:e.dataCollectorUrl||"//collector.shorte.st/overlay-impression",testMode:e.testMode||!1},rtbOverlay:{overlayCss:e.overlayCss||"https://cdn.shorte.st/css/sh-overlay.css",productName:e.productName||f,apiKey:e.token,minBid:e.minBid/1e3||5e-4},api:{token:e.token,shortestDomain:e.shortestDomain||"shorte.st",shDomain:e.shDomain||"sh.st",inclusionTypeId:e.inclusionTypeId||1,restShortenUrl:e.restShortenUrl||"https://api.shorte.st/v1/data/url",placementCodeUrl:e.placementCodeUrl||"https://api.shorte.st/get-ad/",epomKey:e.epomKey||"c3880ec96e08dac60dd250ec7a73fadf"},session:{token:e.token,inclusionTypeId:e.inclusionTypeId||1,sessionStartUrl:e.sessionStartUrl||"https://api.shorte.st/start-adsession/",sessionEndUrl:e.sessionEndUrl||"https://api.shorte.st/end-adsession/",sessionDuration:e.sessionDuration||6},converter:{enabled:void 0!==e.domains||void 0!==e.excludeDomains||void 0!==e.excludeCurrentDomain,domains:e.domains,excludeDomains:e.excludeDomains,capping:e.capping,shDomain:e.shDomain||"sh.st",shortestDomain:e.shortestDomain||"shorte.st",excludeCurrentDomain:e.excludeCurrentDomain},eventCollector:{skipAdElementId:"close-overlay-container",eventCollectorUrl:e.eventCollectorUrl||"//collector.shorte.st/overlay-event",eventCollectorTimeout:1e3,apiToken:e.token,enabled:!0},popUnder:e.popUnder||{enabled:!1},commentConverter:e.commentMonetizer||{enable:!1},entryScript:e.entryScript,exitScript:e.exitScript,googleAnalyticsTracker:{trackingId:"UA-42296749-1",apiToken:e.token}};"undefined"==typeof e.shDomain&&(e.shDomain="sh.st");var h=function(){b.bean.setSelectorEngine(function(b){return a.querySelectorAll(b)});for(var d in g)if(g.hasOwnProperty(d)){if("overlay"===d||"eventCollector"===d||"rtbOverlay"===d)continue;g.hasOwnProperty(d)&&i(d)}k(),j(),c.enabled=!0},i=function(a){var b=g[a];if(c.hasOwnProperty(a)){var d=c[a];d.hasOwnProperty("setConfig")&&d.setConfig(b),d.hasOwnProperty("init")&&d.init()}},j=function(){g.eventCollector.enabled&&c.collector.init(g.eventCollector)},k=function(){var a=c.overlay,b=g.overlay;e.entryScript&&e.entryScript.rtb&&(a=c.rtbOverlay,b=g.rtbOverlay);var d=l(),f=m();a.setConfig(b),a.init(d,f)},l=function(){var a=c.dataCollector.ImpressionType,b=new c.dataCollector.ApiKeyToImpressionTypeBindings;return b.bind(a.jinglingImpression(),g.overlay.jinglingKeys),b.bind(a.legitImpression(),g.overlay.legitKeys),new c.dataCollector.FraudDataCollector(g.overlay.apiKey,b,new c.http.XmlHttpRequestGateway,g.overlay.dataCollectorUrl)},m=function(){if(g.overlay.testMode){var a={top:!0,self:!0};return c.common.IFrameDetector(a)}return new c.common.IFrameDetector(window)};b.domready(h)},shortestMonetization=function(a){shortestApplication(document,{domready:domready,bean:bean},shortest,a)};domready(function(){void 0!=shortest&&shortest.hasOwnProperty("config")&&shortestMonetization(shortest.config)});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement