/*Copyright (c) 2011-2016 Moat Inc. All Rights Reserved.*/ try{(function(x,t){var v={},A=[],u={},B=[],y={};v.a=function(){for(var a=0;aa&&14t.abs(k.width/a.c.c.innerWidth-f)&&(c=f);return{w:k.width/c,h:k.height/c}}return{w:k.width,h:k.height}};a.b.ae=function(){return a.b.af()?a.b.ag()?1:2:0};a.b.af=function(){var f;return function(){if("undefined"!==typeof f)return f;var k=a.c.c,c=a.b.ad();if(a.c.c.navigator.standalone)f= !0;else{var b=k.innerWidth/c.w,k=k.innerHeight/c.h,b=!isNaN(b)&&isFinite(b)&&.9<=b&&1.1>=b,k=!isNaN(k)&&isFinite(k)&&.75<=k&&1.1>=k;f=b&&k}return f}}();a.b.ag=function(){var f=a.b.af(),k=a.b.e(),c=a.c.d(),b="applewebdata:"===window.location.protocol||"data:"===window.location.protocol,k="-"===k||""===k.replace(/^\s+|\s+$/gm,"");return f&&!(k||c||b)};a.b.ah=function(){return function(){}}();a.b.ai=function(){return a.b.ah()?!!document.getElementById(APPSCOPE_CONTAINER_ID):!1};a.b.aj=function(){var f; return function(){return"undefined"!==typeof f?f:f=a.b.af()}}();a.b.ak=function(){var a=window;try{return"undefined"!==typeof a.external&&"undefined"!==typeof a.external.InPrivateFilteringEnabled&&a.external.InPrivateFilteringEnabled()||"undefined"!==typeof a.external&&"undefined"!==typeof a.external.msTrackingProtectionEnabled&&a.external.msTrackingProtectionEnabled()||"undefined"!==typeof a._gaUserPrefs&&a._gaUserPrefs.ioo&&a._gaUserPrefs.ioo()||"undefined"!==typeof navigator.doNotTrack&&("yes"=== navigator.doNotTrack||!0===navigator.doNotTrack)||"undefined"!==typeof a._gaUserPrefs&&!0===a._gaUserPrefs}catch(k){return!1}};a.b.al=function(){return!1};a.b.getAttribute=function(a,k){return a[k]||a.getAttribute(k)};a.b.am=function(a){var k=0,c;for(c in a)a.hasOwnProperty(c)&&(k+=1);return k};var h=[function(a){if(!a||"IFRAME"!==a.nodeName)return!1;var k=a.offsetHeight;return isNaN(k)||15=a.b.a};var p={};a.b.as=function(f){if(!(f&&f.src&&f.nodeName&&"IMG"!=!f.nodeName&&f.complete))return!1;if(p[f.src])return p[f.src]; try{if("undefined"!==typeof f.naturalHeight&&"undefined"!==typeof f.naturalWidth){var c={width:f.naturalWidth,height:f.naturalHeight};return p[f.src]=c}}catch(b){}return a.c.e&&(a.c.e.src=f.src,a.c.e.a)?(c={width:parseInt(a.c.e.b),height:parseInt(a.c.e.c)},p[f.src]=c):!1};a.b.at=function(){var a;return function(){if(!a)a:{for(var c=document.getElementsByTagName("script"),b=c.length-1;-1c;)if(c++,a&&1===a.nodeType)return a}};a.b.bb=function(a,c,b){"undefined"!==typeof b&&(a[c]=b)};a.b.filter=function(a,c){for(var b=[],g=0;gString(Function.prototype.toString).indexOf("[native code]")?a===Function.prototype.toString?!1:null:0<=String(a).indexOf("[native code]")&&!0||!1:!1};a.b.bd=m;a.b.bn=b;a.b.bo=d;a.b.forEach=function(a,c,b,g){var l,r=typeof a;if(a)if("function"===r)for(l in a){if("prototype"!=l&&"length"!=l&&"name"!=l&&(g||!a.hasOwnProperty||a.hasOwnProperty(l))&&(r=c.call(b,a[l],l),"boolean"===typeof r&&!r))break}else if("number"===r)for(l=0;ll;l++)if(b!=b.parent){if(d=a.d.a(c,b))g.push(d);else break;b=b.parent;c=d}else break;return g};a.b.by=function(a){a=t.max(4,a);return((1+t.random())*t.pow(16,a)|0).toString(16).substring(0,a)};a.b.bz=function(){var c=a.b.by;return c(4)+"-"+c(4)+"-"+c(4)+"-"+c(4)};a.b.ca=function(a){window&&window.clearTimeout&&window.clearTimeout(a)};a.b.cb=function(a){window&&window.clearInterval&&window.clearInterval(a)}; var z=function(c,b){if(a.b.bm(b.toString))return b.toString();if(a.b.bm(c&&c.Function.prototype.toString))return b.toString=c.Function.prototype.toString,b.toString();var g=a.c.c!==c&&a.c.c&&a.c.c.Function.prototype.toString;if(a.b.bm(g))return b.toString=g,b.toString();if(a.c.g&&8>=a.b.k())return b.toString();var g=c||window,d=g.document.createElement("IFRAME");d.style.display="none";d.style.width="0px";d.style.height="0px";d.width="0";d.height="0";a.b.bg(d,g.document.documentElement);d.contentWindow&& (b.toString=d.contentWindow.Function.prototype.toString);var l=b.toString();g.document.documentElement.removeChild(d);return l};a.b.toString=function(c,b){b=b||a.c.c;var g;try{g=z(b,c)}catch(d){g=c.toString()}return g};a.b.cc=function(c,b,g){c=a.b.toString(c,g);if(a.c.h())g.eval("("+c+")("+b+")");else if(g.Function)(new g.Function("("+c+")("+b+")"))();else{var d=g.document.createElement("script");d.type="text/javascript";d.text="("+c+")("+b+")";a.b.bg(d,g.document.body)}};a.b.cd=function(c){var b= [];a.b.forEach(c,function(a,c){b.push(c)});return b}})(v);(function(a){a.d={};a.d.b=function(e){if(!e)return null;try{if(e.moatHostileIframe)return null;if(e.src&&e.src.slice&&"http"===e.src.slice(0,4)&&a.b.p(e.src)!=a.b.p(D.location.toString()))return e.moatHostileIframe=!0,null;var b=e&&(e.contentDocument||e.contentWindow&&e.contentWindow.document);if(b&&"string"===typeof b.location.toString())return b;e.moatHostileIframe=!0;return null}catch(d){return e.moatHostileIframe=!0,null}};a.d.a=function(e, b){b=b||a.b.r(e);try{return b&&b.frameElement}catch(d){return!1}};a.d.c=function(e,b){var d;a.b.forEach(e.getElementsByTagName("iframe"),function(a){if(a&&a.contentWindow&&a.contentWindow==b)return d=a,!1});return d};a.d.d=function(e){if(e=a.d.a(e))try{return e.parentNode}catch(b){}return null};a.d.e=function(e,b){if(!e)return!1;var d=0,m=[];for(b=b||10;dr&&!c;r++){d=a.d.a(d.body);if(!1!==d&&!d)break;d=(e=a.b.r(d))&&e.document;c=c||b(e)}a.c.t=function(){return c&&e};a.c.d=function(){return c};a.c.u=function(){return!1}; (function(){if(a.c.d()){var c="___mraid_loop___"+(new x).getTime(),b=a.b.bj(a.c.t(),["mraid","isViewable"]);b&&a.f.a(function(){return b()?(a.c.u=function(){return!0},!1):!0},{},300,c)}})()};a.c.t=function(){e();return a.c.t()};a.c.d=function(){e();return a.c.d()};a.c.u=function(){e();return a.c.u()};var b=function(){var b=function(c){if(a.b.ac.isInApp)return!1;c=a.b.bj(c,["$sf"]);if(!c)return!1;var b=c.ext;c=b&&b.geom;var g=b&&b.inViewPercentage,d=[["exp","b","t","l","r"],"self b t l r h w xiv yiv".split(" ")], l;if(b&&c&&g&&"function"===typeof c&&"function"===typeof g)try{c=c();if(!c)return!1;if(c.par)return!0;for(var b=0,r=d.length;bg&&!c;g++){e=a.d.a(e.body);if(!1!==e&&!e)break;e=(d=a.b.r(e))&&d.document;c=c||b(d);r=r||c||d.$sf}a.c.v=function(){return c&&d};a.c.w=function(){return c};a.c.x=function(){return r}}; a.c.y=!1;a.c.v=function(){b();return a.c.v()};a.c.x=function(){b();return a.c.x()};a.c.w=function(){b();return a.c.w()};var d=function(){var b=function(c){return a.b.ac.isInApp?!1:a.b.bj(c,["context","observeIntersection"])?!0:!1},d=window,e=document,c=b(d),r=!(!c&&!d.context);if(!c&&a.c.s)for(var g=0;20>g&&!c;g++){e=a.d.a(e.body);if(!1!==e&&!e)break;e=(d=a.b.r(e))&&d.document;c=c||b(d);r=r||c||d.context}a.c.z=function(){return c&&d};a.c.aa=function(){return c};a.c.ab=function(){return r}};a.c.z= function(){d();return a.c.z()};a.c.ab=function(){d();return a.c.ab()};a.c.aa=function(){d();return a.c.aa()};a.c.protocol=a.b.ay();a.c.ac=("https:"===a.c.protocol?"z":"js")+".moatads.com";a.c.f=window!=window.parent;var m=a.d.g(window.parent);a.c.s=a.c.f&&!m;a.c.ad=a.b.w();a.c.a=m?!1:!a.d.g(window.top);a.c.c=a.c.a?window.top:a.c.s?window.parent:window;a.b.ac().isInApp&&(a.c.a=a.b.aj()||a.b.ah());a.c.b=a.c.c.document.referrer||"";try{a.c.ae=a.c.c.history&&a.c.c.history.length}catch(p){}try{if(!a.c.a){var m= window,h;for(h=0;20>h&&m!=window.top;h++)m=m.parent;a.c.af=h}}catch(p){}a.c.ag=function(){var b=a.c.c;if(!b)return!1;try{var d=b.document&&b.document.body,e=b.document&&b.document.documentElement}catch(r){}try{b.screen&&(a.c.ah=b.screen.availWidth,a.c.ai=b.screen.availHeight,a.c.aj=b.screen.width,a.c.ak=b.screen.height)}catch(r){a.c.ah=a.c.ah||0,a.c.ai=a.c.ai||0,a.c.aj=a.c.aj||0,a.c.ak=a.c.ak||0}var c=a.c.al(b);a.c.am=c.width;a.c.an=c.height;try{a.c.ao=b.outerWidth||b.document&&b.document.body&&b.document.body.offsetWidth|| 0,a.c.ap=b.outerHeight||b.document&&b.document.body&&b.document.body.offsetHeight||0}catch(r){a.c.ao=0,a.c.ap=0}d&&e&&(a.c.aq=t.max(d.scrollHeight,d.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight),a.c.ar=d.scrollTop||e.scrollTop||b.pageYOffset||0)};a.c.al=function(a){var b,d,c,r=0,g=0;try{(b=a.document,d=b.documentElement,c=b.body,"undefined"!==typeof a.innerWidth)?(r=a.innerWidth,g=a.innerHeight):"CSS1Compat"===b.compatMode&&5!==b.documentMode||!c||"undefined"===typeof c.clientWidth?d&& "undefined"!==typeof d.clientWidth&&(r=d.clientWidth,g=d.clientHeight):(r=c.clientWidth,g=c.clientHeight)}catch(e){}return{width:r,height:g,left:0,right:r,top:0,bottom:g}};a.c.ag();a.c.as=function(){if(y)for(var a in y)if(y.hasOwnProperty(a))return!0;return!1};a.c.at=function(b){var d=!0;a.b.forEach(b&&b.parentNode&&b.parentNode.childNodes,function(b){if(a.b.m(["DIV","IFRAME","A","EMBED","OBJECT"],b.nodeName))return d=!1});return d};a.c.au=function(){for(var a in y)if(y.hasOwnProperty(a)){var b=y[a]; if(b&&b.aa&&b.aa[MOATALREADYFOUND])return!0}return!1};a.c.av=function(){return a.c.a};a.c.aw=function(){return a.c.y||a.c.w&&a.c.w()};a.c.ax=function(){return a.c.aa&&a.c.aa()};a.c.ay=function(b){var d=!1;a.g&&a.g.a()?d=!0:a.h&&a.h.a&&(b&&b.periscopeManager?b.periscopeManager.measurable&&(d=!0):d=!0);return d};a.c.az=function(b){return b?a.c.av()||a.c.aw()||a.c.ay(b)||a.c.ax()?!0:!1:!1};a.c.e=new a.c.c.Image;a.c.h=function(){if("undefined"!==typeof a.c.c["Moat#EVA"])return!0;try{if("undefined"!== typeof a.c.c.eval&&(a.c.c.eval("(function(win){ win['Moat#EVA'] = true; })(window)"),"undefined"!==typeof a.c.c["Moat#EVA"]))return!0}catch(b){}return!1}})(v);(function(a){function e(a,d,e){function h(a,b){for(var c in a)a.hasOwnProperty(c)&&b.call(null,a[c],c)}function p(a){var b=[];h(a,function(a,d){b.push(d)});return b}a=d[a];a&&a.xa.sode||(a.xa.sode=function(){this.desw={};this.xfgf=[];this.publishing_=!1;this.xkcd={};this.edws=[]},a.xa.sode.prototype.uxin=function(){var a=function(a){a=e.max(4, a);return((1+e.random())*e.pow(16,a)|0).toString(16).substring(0,a)};return function(b){return a(4)+"-"+a(4)+"-"+a(4)+"-"+a(4)}}(),a.xa.sode.prototype.xsza=function(a){this.desw[a]||(this.desw[a]={});return this.desw[a]},a.xa.sode.prototype.esgf=function(a,b){this.publishing_?this.xfgf.push(arguments):this.zaxs.apply(this,arguments)},a.xa.sode.prototype.kswa=function(a,b){for(var c=this.xkcd[a]||[],d=c&&c.length,g=0;gf;)f++,d=this.uxin();e[g]||(e[g]={});this.kswa(a,g);c.priority=g;e[g][d]= {cb:b,options:c};return d},a.xa.sode.prototype.zaxs=function(a,b){if(!this.desw[a])return!1;this.publishing_=!0;for(var c=this.edws.slice.call(arguments,1),d=this._getEventPriorities_(a),g=0,e=d.length;gwindow["Moat#EMC"]){window["Moat#EMC"]++;try{var c="//v4.moatads.com/pixel.gif?e=24&d=data%3Adata%3Adata%3Adata&i="+escape("REDDITADZERK1")+"&ac=1&k="+escape(q)+"&ar="+escape("e7548e3-clean")+"&j="+escape(document.referrer)+"&cs="+(new x).getTime(),r=new Image(1,1);r.src=c}catch(z){}}else if(l){window["Moat#EMC"]=1;window["Moat#ETS"]=p;try{c="//v4.moatads.com/pixel.gif?e=24&d=data%3Adata%3Adata%3Adata&i="+escape("REDDITADZERK1")+"&ac=1&k="+ escape(q)+"&ar="+escape("e7548e3-clean")+"&j="+escape(document.referrer)+"&cs="+(new x).getTime(),r=new Image(1,1),r.src=c}catch(z){}}}}}}()}a.f={};var b={};a.f.b=b;a.f.c=function(b,e){if(!b||"string"!==typeof e||!b[e]||b==window)return!1;if("string"===typeof b.nodeName&&("OBJECT"===b.nodeName||"EMBED"===b.nodeName)){var h=a&&a.l&&a.l[e];if(h&&h!==b[e])return h}return!1};a.f.d=function(d,m,h,p){var l,q=e(h),c;d.addEventListener?(h="addEventListener",l=""):(h="attachEvent",l="on");if(c=a.f.c(d,h))try{c.call(d, l+m,q,!1)}catch(r){d[h](l+m,q,!1)}else if(d&&h&&d[h])try{d[h](l+m,q,!1)}catch(r){}!1!==p&&(b[m+p]=q)};a.f.e=function(d,e,h,p){var l,q=e+p,c;if(!d)return delete b[q],!1;h=!1!==p?b[q]:h;d.removeEventListener?(p="removeEventListener",l=""):(p="detachEvent",l="on");if(c=a.f.c(d,p))try{c.call(d,l+e,h,!1)}catch(r){d[p](l+e,h,!1)}else try{d[p](l+e,h,!1)}catch(r){}delete b[q]};a.f.f=function(a,b){a=e(a);var h;window&&window.setInterval&&(h=window.setInterval(a,b),B.push(h));return h};a.f.g=function(a,b){a= e(a);var h;window&&window.setTimeout&&(h=window.setTimeout(a,b),A.push(h));return h};a.f.a=function(b,m,h,p){if(!p)return!1;p+="";u[p]&&a.b.ca(u[p].tid);u[p]={};u[p].callback=e(b);u[p].params=m;u[p].interval=h;u[p].tid=a.f.g(a.f.h(p),h);callbacks=null};a.f.h=function(b){return function(){if(!u||!u[b])return!1;var e=u[b].callback(u[b].params);if("boolean"===typeof e&&!1===e)return a.b.ca(u[b].tid),u[b]=!1;u[b].tid=a.f.g(a.f.h(b),u[b].interval);time=b=null}};a.f.i=function(){return u};a.f.j=function(b, e,h,p){var l=0,q=function(){l+=1;!0!==b()&&(l(new x).getTime()-u;if(m&&h)return b(2),document.hasFocus();b(3);return!0};_lastFocusState=!1;a.focus.pageIsVisible=function(){var b=a.focus.checkFocus();if(_lastFocusState!=b&&w&&w.swde)try{w.swde.zaxs("focusStateChange",b)}catch(c){}return _lastFocusState=b};a.focus.pageIsPrerendered=function(){return"undefined"!==typeof r?"prerender"==document[r]:!1};a.focus.pageIsVisible();a.focus.pageIsPrerendered()&&(a.f.d(document,c,e,"pr"),a.i.b.azsx("allLocalAdsKilled",function(){a.f.e(document, c,e,"pr")},{once:!0}));var v=a.focus.pageIsPrerendered()})(v);(function(a){function e(b,e){if(!b)return!1;var g,h;"number"==typeof b.zr?(g=b.aa,h=b._calcVideoBasedOnContainer):g=b;h=h?new a.m.j(g.parentNode,e):new a.m.j(g,e);g=h.height;var f=h.width,k=h.calcArea();if(0===k)return{area:k,percv:0};var n=d(h),m=n.visibleRect.calcArea(),l=m/k,p;a:{var q=n.cumulRect,t=n.cumulRect.getViewportRect();if(0>q.top&&0t.height&&q.topa?[a,b]:[0,0]}function h(b,d,e,h){var f=[],k;for(k in b){var n=b[k],n=a.b.bt(n[0],n[1],d),m;if(m=n&&n!==e&&n[DOM_NODE_KEY]!==h)n=(n=a.b.as(n))&&(1>=n.width||1>=n.height)?!0:!1,m= !1===n;m&&f.push(k)}return f}function p(a){var b=.01*a.width,d=.01*a.height;return{tl:[a.left+b,a.top+d],m:[a.left+(a.right-a.left)/2,a.top+(a.bottom-a.top)/2],br:[a.right-b,a.bottom-d]}}function l(c,d){var e={corners:[],addCorner:function(b){var c=this;a.b.forEach(b,function(b){-1===a.b.indexOf(c.corners,b)&&c.corners.push(b)})}},m=a.d.e(c),m=b(function(b){var d=new a.m.j(c),e=new a.m.j(b);d.changeReferenceFrame(e);return{rect:d,frame:b,doc:b.ownerDocument}},m);m.unshift({rect:new a.m.j(c),frame:c, doc:c.ownerDocument});a.b.forEach(m,function(a){var b=p(a.rect);e.addCorner(h(b,a.doc,a.frame,d))});return e.corners}a.m={};var q=a.c.a;a.m.a=.5;a.m.b=.3;a.m.c=236425;a.m.d=.98;a.m.e=void 0;a.m.f=function(b,d){d=d||!1;return function(g,h){var f=g.ao.skin?a.m.g(g,h):e(g,h);f.isVisible=d?f.percv>b:f.percv>=b;f.elGeo&&(f.elGeo.threshold=b);return f}};a.m.g=function(b,d){if(1==b.ao.skin){var g={},h=a.c.c.scrollY||a.c.c.document.documentElement.scrollTop;if("width"==a.n.a&&a.n.b<=b.adContent&&45=h;g.isFullyVisible=g.percv>=f;g.elGeo&&(g.elGeo.threshold=h);b.videoIsFullscreen&&0a.m.e&&(a.m.e=g.percv):a.m.e=g.percv;return g};a.m.h=function(b,d){return b.area>=a.m.c?(d.viewstats||(d.viewstats={}),d.viewstats.isBigAd=!0,a.m.b):a.m.a};a.m.i=function(){return q}; a.m.k=a.c.al;a.m.j=function(b,d,e,h){try{this.rect=e||b.getBoundingClientRect&&b.getBoundingClientRect()||{}}catch(k){this.rect=e||b&&{top:b.offsetTop,left:b.offsetLeft,width:b.offsetWidth,height:b.offsetHeight,bottom:b.offsetTop+b.offsetHeight,right:b.offsetLeft+b.offsetWidth}||{}}e="left right top bottom width height".split(" ");for(h=0;h