!function(a,b){function c(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b2?b[b.length-2]:"";return c.match(/^[0-9a-f]{32}$/i)&&c}function e(b){(new a.Image).src=j(l+"/stat.gif",{event:b})}function g(b){(new a.Image).src=j(l+"/event.gif",b)}function h(c){var d=new a.URLSearchParams;i(c,function(a,c){a!==b&&d.append(c,a)});var e=new a.XMLHttpRequest;e.open("POST",l+"/event.json",!0),e.withCredentials=!0,e.send(d)}var i=f,j=ja,k=m,l=k.jester;return{getLoaderVersionFromUrl:d,logStat:e,reportJester:g,reportJesterPOST:h}}({}),o=function(){function b(b){b=b||{};var c=b.Math||a.Math,d=b.Date||a.Date;try{var e=(new d).getTimezoneOffset(),f=1,g=a.screen;g&&g.availWidth?f=g.availWidth*g.availHeight+g.colorDepth:g&&g.width&&(f=g.width*g.height);var h=a.document.documentElement,i=h.clientWidth*h.clientHeight;return c.abs(17*e+25*f-i)}catch(j){return 1}}return{get:b}}(),p=function(b){function c(b){b=b||{};var c=b.Uint32Array||a.Uint32Array,d=b.crypto||a.crypto,e=b.Math||a.Math;try{var f=new c(1);return d.getRandomValues(f),f[0]}catch(g){return e.floor(1e9*e.random())}}function d(){var b=a.performance,c=b&&b.timing;if(!c)return 1e5;var d=c.domainLookupEnd-c.domainLookupStart,e=c.connectEnd-c.connectStart,f=c.responseStart-c.navigationStart;return 11*d+13*e+17*f}function e(e){e=e||{};var f=e.Math||a.Math,g=Number((new Date).getTime().toString().substring(3)),h=f.abs(g+d()-b.get()).toString(32);return h+=c(e).toString(32)}return{generate:e}}(o),q=function(b){var c=a.document,d=c.createElement("iframe");return d.style.display="none",function(a,b){var e=b&&b[a]||null;try{return d.parentNode!==c.body&&c.body.appendChild(d),d.contentWindow[a]||e}catch(f){return e}}}({}),r=function(){var c={isIE:function(){return Boolean(a.document.documentMode)},isSafari:function(){var b=a.navigator.userAgent.toLowerCase();return b.indexOf("safari")>-1&&b.indexOf("chrome")===-1},isFirefox:function(){var b=a.navigator.userAgent.toLowerCase();return b.indexOf("firefox")>-1&&b.indexOf("chrome")===-1},isChrome:function(){var c=a.navigator.userAgent.toLowerCase();return c.indexOf("crios")>-1||Boolean(a.chrome)&&"Google Inc."===a.navigator.vendor&&a.opr===b&&c.indexOf("edge")===-1},isEdge:function(){var b=a.navigator.userAgent.toLowerCase();return b.indexOf("edge")>-1},isOpera:function(){var b=a.navigator.userAgent.toLowerCase();return b.indexOf("opera")>-1||b.indexOf("opr")>-1},isCrawler:function(c){c===b&&(c=a);var d=c.navigator.userAgent;return/bot|crawl|slurp|spider|facebookexternalhit|embedly|feedly|pinterest/i.test(d)}};return c}(),s=function(a){return"[object String]"===Object.prototype.toString.call(a)},t=function(){return a.getComputedStyle?function(b,c,d){try{return a.document.defaultView.getComputedStyle(b,null).getPropertyValue(c)}catch(e){return null}}:function(a,b,c){return a.currentStyle[b]||a.currentStyle[c]}}(),u=function(a){function b(a){return a.replace(/\s+/g,"").toLowerCase()}var c=f,d=s,e=k;return function(a,f,g){var h={};d(f)?h[f]=g:h=f;var i=e({},h);c(i,function(a,c){var d=b(c);d!==c&&(delete i[c],i[d]=a),null===a&&(i[d]=""),void 0===a&&delete i[d]});var j=a.style;c(i,function(a,b){j.setProperty(b,String(a),"important")})}}({}),v=function(b){function c(a){return a.replace(/\s+/g,"").toLowerCase()}function d(a){return a=a.replace(/^#([a-f0-9])([a-f0-9])([a-f0-9])$/,"#$1$1$2$2$3$3"),a=a.slice(1),{red:parseInt(a.slice(0,2),16),green:parseInt(a.slice(2,4),16),blue:parseInt(a.slice(4,6),16)}}function e(a){var b=a.match(/^rgb\((\d+),(\d+),(\d+)\)$/);return{red:parseInt(b[1],10),green:parseInt(b[2],10),blue:parseInt(b[3],10)}}function f(a){var b=a.match(/^rgba\((\d+),(\d+),(\d+),([\d.]+)\)$/);return{red:parseInt(b[1],10),green:parseInt(b[2],10),blue:parseInt(b[3],10),alpha:parseFloat(b[4])}}function g(b,c,d,e){return c=a.document.createElement(c),i(c,{visibility:"hidden",color:d}),b.appendChild(c),d=e(c),b.removeChild(c),d}function h(b,d){d=d||{};var f=d.container||a.document.body;return a.getComputedStyle?(b=g(f,"span",b,function(b){return a.getComputedStyle(b,null).getPropertyValue("color")}),e(c(b))):(b=g(f,"textarea",b,function(a){return a.createTextRange().queryCommandValue("ForeColor")}),{red:255&b,blue:b>>>16,green:(65280&b)>>>8})}var i=u;return function(a,b){a=c(a);var g;if("transparent"===a)return{red:0,green:0,blue:0,alpha:0};if("#"===a.charAt(0))g=d;else if("rgba("===a.slice(0,5))g=f;else if("rgb("===a.slice(0,4))g=e;else{if(!/^[a-z]+$/.test(a))throw new Error("parseColor received unparseable color: "+a);g=h}return g(a,b)}}({}),w=function(c){function d(a){for(var b=[/(https?:)?\/\/(www\.)?disqus\.com\/forums\/([\w_-]+)/i,/(https?:)?\/\/(www\.)?([\w_-]+)\.disqus\.com/i,/(https?:)?\/\/(www\.)?dev\.disqus\.org\/forums\/([\w_-]+)/i,/(https?:)?\/\/(www\.)?([\w_-]+)\.dev\.disqus\.org/i],c=0;ce&&(e=f[c+1][d+1]));return e}function g(){for(var a=A.getElementsByTagName("h1"),c=A.title,d=c.length,e=c,g=.6,h=function(a){var h,i=a.textContent||a.innerText;null!==i&&i!==b&&(h=f(c,i)/d,h>g&&(g=h,e=i))},i=0;iG},I=function(){if(A.querySelector){var a=A.querySelector("link[rel=canonical]");if(a)return a.href}};return{MAX_Z_INDEX:2147483647,getShortnameFromUrl:d,getForum:e,guessThreadTitle:g,getContrastYIQ:n,getColorScheme:o,getElementStyle:k,getAnchorColor:m,getAnchorColorScheme:p,normalizeFontValue:h,isSerif:l,getBrowserSupport:i,pageVisibility:B,getScrollbarWidth:C,browser:u,storage:D,appearsToHideContent:F,hasOverflow:H,getCanonicalUrl:I}}({}),x=function(a){var c=f,d=p,e=q,g=w,h=function(a,c){this.win=a,this.configurator=c,this.config={page:{url:b,title:b,slug:b,category_id:b,identifier:b,language:b,integration:b,api_key:b,remote_auth_s3:b,author_s3:b},experiment:{enable_scroll_container:!0,force_auto_styles:b,sort_order:b,force_mobile:b},server_side:{service:"static",experiment:"default",variant:"control",top_placement_url:b,bottom_placement_url:b,inthread_placement_url:b,default_placement_url:b,top_in_embed_placement_url:b,bottom_in_embed_placement_url:b,inthread_leading_comment_count:b,inthread_repeat_comment_count:b,inthread_trailing_comment_count:b,inthread_count_children:b,inthread_multiple_ads:b,sandbox_ads:b,can_disable_ads:b,sourceless_iframe:b,disable_ads_ios:b,disable_ads_android:b,forum_id:b,is_private:b,forum:{id:b,disable_disqus_branding:b,recommendations_feature_enabled:b,recommendation_placement:b},lazyload_viewports:b,skeleton_frame_enabled:b,forceSwitch:b,forceRecommendationsOutside:b,forceLocalHome:b,previewVersion:b},disable_ads:b,hide_alerts:b,strings:b,sso:{},callbacks:{preData:[],preInit:[],onInit:[],afterRender:[],onReady:[],onNewComment:[],preReset:[],onPaginate:[],onIdentify:[],beforeComment:[]}}};h.DISQUS_GLOBALS=["shortname","identifier","url","title","integration","slug","category_id"];var i=h.prototype;return i.getContainer=function(){var a=this.win;return a.document.getElementById(a.disqus_container_id||"disqus_thread")},i.runConfigurator=function(){var a=this.configurator||this.win.disqus_config;if("function"==typeof a)try{a.call(this.config)}catch(b){}},i.getValuesFromGlobals=function(){var a,b=this.win,d=this.config,e=d.page;c(h.DISQUS_GLOBALS,function(a){var c=b["disqus_"+a];"undefined"!=typeof c&&(e[a]=c)}),this.runConfigurator(),d.forum||(a=e.shortname,d.forum=a?a.toLowerCase():g.getForum(b.document,"embed.js"))},i.toJSON=function(){var a,c=this.win,f=this.config,h=f.page,i=this.getContainer(),j=g.getBrowserSupport(c),k=!1;return this.getValuesFromGlobals(),(f.server_side.top_placement_url||f.server_side.inthread_placement_url||f.server_side.bottom_placement_url||f.server_side.top_in_embed_placement_url||f.server_side.bottom_in_embed_placement_url)&&(a=d.generate({Math:e("Math",c),crypto:e("crypto",c),Uint32Array:e("Uint32Array",c),Date:e("Date",c)})),{impressionId:a||null,container:i,forum:f.forum,sortOrder:f.experiment.sort_order||g.storage.getItem("disqus.sort")||"default",language:f.language,typeface:g.isSerif(i)?"serif":"sans-serif",anchorColor:g.getAnchorColor(i),colorScheme:g.getColorScheme(i),anchorColorScheme:g.getAnchorColorScheme(i),canonicalUrl:g.getCanonicalUrl(),url:h.url||c.location.href.replace(/#.*$/,""),title:h.title,documentTitle:g.guessThreadTitle(),slug:h.slug,category:h.category_id,identifier:h.identifier,integration:h.integration,experimentName:f.server_side.experiment,experimentVariant:f.server_side.variant,experimentService:f.server_side.service,forumId:f.server_side.forum_id,disableAds:f.disable_ads,hideAlerts:Boolean(f.hide_alerts),topPlacementUrl:f.server_side.top_placement_url,bottomPlacementUrl:f.server_side.bottom_placement_url,inthreadPlacementUrl:f.server_side.inthread_placement_url,topInEmbedPlacementUrl:f.server_side.top_in_embed_placement_url,bottomInEmbedPlacementUrl:f.server_side.bottom_in_embed_placement_url,defaultPlacementUrl:f.server_side.default_placement_url,inthreadLeadingCommentCount:f.server_side.inthread_leading_comment_count,inthreadRepeatCommentCount:f.server_side.inthread_repeat_comment_count,inthreadTrailingCommentCount:f.server_side.inthread_trailing_comment_count,inthreadCountChildren:f.server_side.inthread_count_children,inthreadMultipleAds:f.server_side.inthread_multiple_ads,sandboxAds:f.server_side.sandbox_ads,canDisableAds:f.server_side.can_disable_ads,sourcelessIframe:Boolean(f.server_side.sourceless_iframe),disableAdsIos:Boolean(f.server_side.disable_ads_ios),disableAdsAndroid:Boolean(f.server_side.disable_ads_android),apiKey:h.api_key,remoteAuthS3:h.remote_auth_s3,sso:f.sso,unsupported:j,degraded:Boolean(j)||g.browser.isCrawler(),callbacks:f.callbacks,enableScrollContainer:f.experiment.enable_scroll_container,forceAutoStyles:f.experiment.force_auto_styles,forceMobile:f.experiment.force_mobile,isPrivate:f.server_side.is_private,forumDetails:{id:f.server_side.forum&&f.server_side.forum.id,disableDisqusBranding:Boolean(f.server_side.forum&&f.server_side.forum.disable_disqus_branding),recommendationsEnabled:Boolean(f.server_side.forum&&f.server_side.forum.recommendations_feature_enabled),recommendationsPlacement:f.server_side.forum&&f.server_side.forum.recommendation_placement},lazyloadViewports:f.server_side.lazyload_viewports,skeletonFrameEnabled:Boolean(f.server_side.skeleton_frame_enabled),forceSwitch:k?f.server_side.forceSwitch:b,forceRecommendationsOutside:k?f.server_side.forceRecommendationsOutside:b,forceLocalHome:k?f.server_side.forceLocalHome:b,previewVersion:k?f.server_side.previewVersion:b,embedV2Version:k?f.server_side.embedV2Version:b,embedV2Status:k?f.server_side.embedV2Status:b}},{HostConfig:h}}({}),y=function(){var a;return a="undefined"==typeof console?function(){}:"function"==typeof console.log?function(){return console.log(Array.prototype.slice.call(arguments,0).join(" "))}:function(){return console.log.apply(console,arguments)},{log:a}}(),z=function(a){return function(b){return Boolean(b&&(b.offsetWidth||b.offsetHeight||b.getClientRects().length)&&"hidden"!==a(b,"visibility"))}}(t),A=function(a,b,c){var d=function(){var e=a();return e?void b(e):void setTimeout(d,c)};d()},B=function(){var a=1e4,b=Math.floor(Math.random()*a+1);return function(a){b+=1;var c=String(b);return a?a+c:c}}(),C=function(a){var b=f,c=e,d=B,g=function(a){var b,c=!1;return function(){return c?b:(c=!0,b=a.apply(this,arguments),a=null,b)}},h=Object.keys||function(a){if(a!==Object(a))throw new TypeError("Invalid object");var b=[];for(var d in a)c(a,d)&&(b[b.length]=d);return b},i=[].slice,j={on:function(a,b,c){if(!l(this,"on",a,[b,c])||!b)return this;this._events=this._events||{};var d=this._events[a]||(this._events[a]=[]);return d.push({callback:b,context:c,ctx:c||this}),this},once:function(a,b,c){if(!l(this,"once",a,[b,c])||!b)return this;var d=this,e=g(function(){d.off(a,e),b.apply(this,arguments)});return e._callback=b,this.on(a,e,c)},off:function(a,b,c){var d,e,f,g,i,j,k,m;if(!this._events||!l(this,"off",a,[b,c]))return this;if(!a&&!b&&!c)return this._events={},this;for(g=a?[a]:h(this._events),i=0,j=g.length;i=e,i=h&&c<=g);var j=this.frame;j.sendMessage("window.scroll.always",a),h&&j.sendMessage("window.scroll",a),i!==this.wasInViewport&&(j.sendMessage(i?"window.inViewport":"window.scrollOffViewport"),this.wasInViewport=i)}},getBestNextFrameHeight:function(a){var b=this.getViewportAndScrollStatus();if(!b||this.settings.enableScrollContainer||!this.getScrollContainer())return a;var c=b.frameOffset;if(a>=c.height)return a;var d=e(),f=d-(c.height+c.top),g=b.pageOffset+b.height-(c.top+f);return g>a?g+1:a},isHeightRestricted:function(a){function b(){return i.appearsToHideContent(d)||f&&i.appearsToHideContent(e)}function c(){return i.appearsToHideContent(d)&&i.hasOverflow(d)||f&&i.appearsToHideContent(e)&&i.hasOverflow(e)}a=a||{};var d=this.settings.container,e=d.parentNode,f=e!==l&&e!==j.body;return a.checkScrollHeight?c():b()},events:{"state:INIT":function(){this.settings.degraded||(this.settings.windowName||(this.stopListeningToScrollEvent=this.listenToScrollEvent(this.communicateViewportAndScrollStatus),this.listenTo(h,"window.resize",this.communicateViewportAndScrollStatus)),this.timestamp=Number(new Date))},"state:LOADED":function(){var a=this.frame,b=a.elem;this.settings.degraded?(a.setInlineStyle("height","500px"),b.setAttribute("scrolling","yes"),b.setAttribute("horizontalscrolling","no"),b.setAttribute("verticalscrolling","yes"),a.show()):this.settings.windowName||(this.rendered=!1,a.setInlineStyle("height","0"),b.setAttribute("scrolling","no"),b.setAttribute("horizontalscrolling","no"),b.setAttribute("verticalscrolling","no"))},"frame:ready":function(a,b){var c=this.getFrameInitParams(a,b);b.sendMessage("init",c)},"frame:resize":function(a,b){var c=a.height;b.elem&&this.rendered&&(c=this.getBestNextFrameHeight(c),b.setInlineStyle("height",c+"px"),b.sendMessage(m[this.name]+".resized")),this.storeScrollContainer(),this.communicateViewportAndScrollStatus()},"frame:rendered":function(a,b){this.rendered=!0,this.wasInViewport=!1,b.trigger("resize",a),b.sendMessage(m[this.name]+".rendered")},"frame:fail":function(a,b){b.elem&&b.setInlineStyle("height",a&&a.height||"75px")},"frame:scrollTo":function(b,c){if(c.elem&&c.getOffset){var d=this.getScrollContainer(),e=c.getOffset(d),f="window"===b.relative?b.top:e.top+b.top,g=this.getViewportCoords();!b.force&&f>g.top&&f\n
\n
\n
\n
\n
\n
\n
\n
\n \n
\n '+(b?"":'
')+'\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n ';return c.innerHTML=d,c};return{getBubbleStyle:e,getIconStyle:i,getSkeletonFrameElement:m}}({}),P=function(){var b={_doc:a.document,create:function(a,c,d){d||(d={});var e=a+"="+c+"; path="+(d.path||"/"),f=d.domain,g=d.expiresIn;if(f&&(e+="; domain=."+f),"[object Number]"===Object.prototype.toString.call(g)){var h=new Date((new Date).getTime()+g);e+="; expires="+h.toGMTString()}"https:"===b._doc.location.protocol&&(e+="; secure"),e+="; SameSite=None",b._doc.cookie=e},read:function(a){for(var c,d=a+"=",e=b._doc.cookie.split(";"),f=0;f0&&c<=a.height},pollFullyVisible:function(){var a=this;if(!a.pollingFullVisibility){a.pollingFullVisibility=!0;var b=a.isHeightRestricted(),c={};q(function(){return a.frame&&a.frame.elem?!(b&&!a.rendered)&&(p(a.frame.elem)&&!a.isHeightRestricted({checkScrollHeight:!0})):c},function(b){b!==c&&(a.fullyVisible=!0,a.trigger("fullyVisible"))},a.constructor.VISIBILITY_POLL_INTERVAL)}},whenFullyVisible:function(a){this.pollFullyVisible(),this.fullyVisible?a():this.once("fullyVisible",a)},showSlowLoadingMessage:function(){var b,c=this;if(c.loadingElem){if(B.pageVisibility.isHidden())return b=function(){B.pageVisibility.stopListening(b),c.setSlowLoadingMessageTimer(2e3)},void B.pageVisibility.listen(b);c.triggeredSlowEvent=!0,c.state===c.constructor.states.READY?r.logStat("slow_embed.got_ready"):c.state===c.constructor.states.LOADED?r.logStat("slow_embed.loaded"):r.logStat("slow_embed.no_ready");var d='

Disqus seems to be taking longer than usual. Reload?

',e=a.document.getElementById("dsq-skeleton-embed-body");c.settings.skeletonFrameEnabled&&e?e.insertAdjacentHTML("beforeend",d):c.loadingElem.firstChild.insertAdjacentHTML("afterend",d)}},clearSlowLoadingMessageTimer:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},setSlowLoadingMessageTimer:function(a){var b=this;b.clearSlowLoadingMessageTimer(),b.timeout=setTimeout(function(){b.showSlowLoadingMessage()},a)},addLoadingAnimOnContainerVisible:function(){var a,b=this;a=b.listenToScrollEvent(function(){var c=b.isContainerVisible();(c||b.state>=b.constructor.states.RUNNING)&&a(),c&&b.addLoadingAnim()})},addLoadingAnim:function(){var b,c,e,f=this,g=f.settings.container;if(f.loadingElem)return f.loadingElem;if(!(f.state>=f.constructor.states.RUNNING||this.settings.degraded)){b=d.createElement("div"),b.dir="ltr",b.style.overflow="hidden";var h="dark"===f.settings.colorScheme;if(this.settings.skeletonFrameEnabled){f.frame.once("resize",function(){f.frame.removeInlineStyle("display")}),f.frame.setInlineStyle("display","block");var i=l(a);b.appendChild(D.getSkeletonFrameElement(i)),g.appendChild(b)}else if(f.settings.forumDetails&&f.settings.forumDetails.disableDisqusBranding){c=d.createElement("div"),b.appendChild(c);var j=c.style;o(j,D.getBubbleStyle(h)),g.appendChild(b)}else{e=d.createElement("svg"),b.appendChild(e);var k=e.style;o(k,D.getIconStyle(h)),g.appendChild(b)}return f.loadingElem=b,f.setSlowLoadingMessageTimer(15e3),r.logStat("lounge.loading.view"),f.loadingElem}},removeLoadingAnim:function(){var a=this.loadingElem,b=this.settings.container;this.clearSlowLoadingMessageTimer(),a&&a.parentNode===b&&(b.removeChild(a),this.loadingElem=null)},destroy:function(){var a=this.indicators;this.removeLoadingAnim(),a&&a.north&&(a.north.destroy(),a.north=null),a&&a.south&&(a.south.destroy(),a.south=null),u.prototype.destroy.call(this)}},{LEGACY_EVENTS_MAPPING:{onReady:"frame:rendered",onNewComment:"posts.create",onPaginate:"posts.paginate",onCommentCountChange:"posts.count",onIdentify:"session.identify"},VISIBILITY_POLL_INTERVAL:500}),H=function(a){return new F(a)};return{Lounge:H}}({}),S=function(a,b,c){var d,e,f,g,h,i=function(){var j=(new Date).getTime()-g;j=0?d=setTimeout(i,b-j):(d=null,c||(h=a.apply(f,e),d||(f=e=null)))};return function(){f=this,e=arguments,g=(new Date).getTime();var j=c&&!d;return d||(d=setTimeout(i,b)),j&&(h=a.apply(f,e),f=e=null),h}},T=function(a,b){for(var c=0;ce;return!f&&!g||f&&g?c=1:f?c=(b.height-(d-b.visibleTop))/b.height:g&&(c=(e-b.visibleTop)/b.height),Math.round(100*c)},a}(na,X,B),oa=function(c,d,e,f,g,h){return h.events=[],h.lastPos=null,h.clearCache=function(a){if(a===b)h.getElementOffset.cache={};else{var c=g.getId(a);c&&(h.getElementOffset.cache[c]=null)}},h.calculateOffset=function(b){if(!b)return null;if(!e(b))return null;var c=b.ownerDocument.documentElement;return{height:b.offsetHeight,top:b.getBoundingClientRect().top+a.pageYOffset-(c.clientTop||0)}},h._getElementOffset=function(a){var b=g.getElement(a);if(!b)return null;var c=h.calculateOffset(b);return c?{visibleTop:c.top+(f(a,"topEdgeOffset")||0),visibleBottom:c.top+c.height-(f(a,"bottomEdgeOffset")||0),offsetTop:c.top,height:c.height}:null},h.getElementOffset=function(){var a=function(b){var c=a.cache,d=g.getId(b);if(d&&c[d])return c[d];var e=h._getElementOffset(b);return d&&e&&(c[d]=e),e};return a.cache={},a}(),h.EVENT_NAMES=["enter","exit","visible","invisible","all"],h.updateTracking=function(a){var e,f=function(a){return a?function(b){return a[b]}:function(){return b}};d(h.EVENT_NAMES,f(a._events))?(e=c(h.events,a),e===-1&&h.events.push(a)):(e=c(h.events,a),e!==-1&&h.events.splice(e,1))},h.processEvents=function(a){h.lastPos=a;var b=h.events;if(b.length)for(var c=b.length-1;c>=0;--c){var d=b[c],e=d.isVisible(a);null!==e&&(e!==d.lastVisible&&d.trigger(e?"enter":"exit",d,a),d.trigger(e?"visible":"invisible",d,a),d.lastVisible=e)}},h}(T,U,z,W,na,oa),Y=function(b,c,d,e,f){function g(a){return this instanceof g?(this.obj=a,void(this.lastVisible=!1)):new g(a)}var h=c(function(){f.processEvents(f.lastPos)},250);return e(g.prototype,b,{on:function(a){var c=!(this._events&&this._events[a]),d=b.on.apply(this,arguments);return c&&f.updateTracking(this),h(),d},off:function(a){var c=b.off.apply(this,arguments);return this._events&&this._events[a]||f.updateTracking(this),c},offset:function(){return f.getElementOffset(this.obj)},isVisible:function(a){if(a=a||f.lastPos,!a)return null;var b=a.top,c=b+a.height,d=this.offset();return!!d&&(d.offsetTop>=b&&d.visibleTopb)},invalidate:function(){return f.clearCache(this.obj),this}}),e(g,{invalidate:f.clearCache,scroll:f.processEvents,_windowScrollHandlerBound:!1,_ignoreCache:!1,_windowScrollHandler:d(function(){g._ignoreCache&&g.invalidate(),f.processEvents({top:a.pageYOffset,height:a.document.documentElement.clientHeight})},250),bindWindowEvents:function(b){this._windowScrollHandlerBound||("undefined"!=typeof b&&(g._ignoreCache=b),a.addEventListener("scroll",this._windowScrollHandler),a.addEventListener("resize",this._windowScrollHandler),this._windowScrollHandlerBound=!0,this._windowScrollHandler())},unbindWindowEvents:function(){g._ignoreCache=!1,a.removeEventListener("scroll",this._windowScrollHandler),a.removeEventListener("resize",this._windowScrollHandler),this._windowScrollHandlerBound=!1}}),g}(C,S,K,k,oa),Z=function(a){return a}(Y),pa=function(a){return a=function(a,b){var c=null,d=!1;this.start=function(){d||(c=setTimeout(function(){d=!0,a()},b))},this.clear=function(){clearTimeout(c)}}}(pa),$=function(){function a(a){if(a=Number(a),isNaN(a)||a>255)throw new Error("Color components should be numbers less than 256");return a=a.toString(16),1===a.length?"0"+a:String(a)}return function(b){return"#"+a(b.red)+a(b.green)+a(b.blue)}}(),_=function(){var a=["allow-forms","allow-pointer-lock","allow-popups","allow-same-origin","allow-scripts","allow-top-navigation"],b=function(b){return b?a.reduce(function(a,c){return b[c]&&(a+=c+" "),a},"").trim():""};return{getAttribute:b}}(),aa=function(b){return function(c){"undefined"==typeof c&&(c=a.location.search);var d={};return b(c.substr(1).split("&"),function(a){var b=a.split("=").map(function(a){return decodeURIComponent(a.replace(/\+/g,"%20"))});b[0]&&(d[b[0]]=b[1])}),d}}(f),ba=function(){var b={},c=a.document.createElement("a");return b.getOrigin=function(a){c.href=a;var b=c.href.split("/");return b[0]+"//"+b[2]},b.getHostName=function(a){return c.href=a,c.hostname},b.getDomainPart=function(a,c){"undefined"==typeof c&&(c=0);var d=b.getHostName(a),e=d.split(".").reverse();return e[c]},b.getQuery=function(a){return c.href=a,c.search},b.getPathname=function(a){return c.href=a,c.pathname},b}(),ca=function(){var a=function(a){return null!==a&&!isNaN(Number(a))&&isFinite(a)},b=function(a){return Math.min.apply(Math,c(a))||0},d=function(a){return Math.max.apply(Math,c(a))||0};return{min:b,max:d,isNumeric:a}}();var ra=function(){function a(a,b){for(var c=0;c=6?(this.top=a[0],this.right=a[1],this.bottom=a[2],this.left=a[3],this.width=a[4],this.height=a[5]):a.length>=4?(this.top=a[0],this.right=a[1],this.bottom=a[2],this.left=a[3]):3===a.length?(this.top=a[0],this.right=a[1],this.bottom=a[2],this.left=0):2===a.length?(this.top=a[0],this.right=a[1],this.bottom=a[0],this.left=a[1]):(this.top=a[0],this.right=a[0],this.bottom=a[0],this.left=a[0]),this.update()}},{key:"fromObject",value:function(a){return this.fromArray([a.top,a.right,a.bottom,a.left,a.width,a.height])}},{key:"update",value:function(){this.width||(this.width=this.right-this.left),this.height||(this.height=this.bottom-this.top)}},{key:"reset",value:function(a){a=a||0,this.top=a,this.right=a,this.bottom=a,this.left=a,this.width=a,this.height=a}},{key:"getArea",value:function(){return(this.right-this.left)*(this.bottom-this.top)}}]),b}();return b.getOverlapRect=function(c,d){var e=a.max([c.left,d.left]),f=a.min([c.left+c.width,d.left+d.width]),g=a.max([c.top,d.top]),h=a.min([c.top+c.height,d.top+d.height]);return f>=e&&h>=g&&new b(g,f,h,e,f-e,h-g)},b.getOverlapArea=function(b,c){var d=a.max([0,a.min([b.right,c.right])-a.max([b.left,c.left])]),e=a.max([0,a.min([b.bottom,c.bottom])-a.max([b.top,c.top])]);return d*e},b}(ca),ea=function(b){var c=9,d=function(a){return a&&a.parentNode},e=function(b,c){if(!b)return null;var d=a.document.defaultView.getComputedStyle(b);return c&&d.hasOwnProperty(c)?d[c]:d},f=function(){return{x:a.pageXOffset,y:a.pageYOffset}},g=function(a){var c=void 0;if(a&&a.style){var d=a.style.display;a.style.display="block",c=a.getBoundingClientRect(),a.style.display=d,c=new b(c);var e=f();c.left+=e.x,c.right+=e.x,c.top+=e.y,c.bottom+=e.y}else c=new b(0);return c},h=function(a,b){var c=g(a);if(b){var d=g(b);c.top=d.top-d.top+b.scrollTop,c.bottom=c.top+c.height+b.scrollTop,c.left=c.left-d.left+b.scrollLeft, c.right=c.left+c.width+b.scrollLeft}return c},i=function(){var c=f(),d=c.y,e=c.x+a.innerWidth,g=c.y+a.innerHeight,h=c.x,i=a.innerWidth,j=a.innerHeight;return new b(d,e,g,h,i,j)},j=function(a){try{return a.nodeType===c?a:a.ownerDocument}catch(b){return null}},k=function(b){var c=j(b),d=void 0;try{c&&(d=c.parentWindow||c.defaultView||a)}catch(e){d=a}return d},l=function(a){var c=k(a),d=new b(0,c.innerWidth,c.innerHeight,0,c.innerWidth,c.innerHeight),e=f();return d.left+=e.x,d.right+=e.x,d.top+=e.y,d.bottom+=e.y,d},m=function(a){var b=j(a);if(b)return b.documentElement||b.body},n=function(a){var c=m(a)||{},d=new b;return d.right=d.width=c.scrollWidth||0,d.bottom=d.height=c.scrollHeight||0,d},o=function(a,b){for(;b;){if(b===a)return!0;b=b.parentNode}return!1},p=function(a){var b=e(a);return"inline-block"===b.display||"none"!==b["float"]||"absolute"===b.position||"fixed"===b.position||"auto"!==b.width||"auto"!==b.height},q=function(a){var b=e(a),c={};return"scroll"===b.overflowX||"auto"===b.overflowX?c.xscroll=a.offsetWidth-a.clientWidth:c.xscroll=0,"scroll"===b.overflowY||"auto"===b.overflowY?c.yscroll=a.offsetHeight-a.clientHeight:c.yscroll=0,c.xhidden="hidden"===b.overflowX,c.yhidden="hidden"===b.overflowY,c},r=function(a){var b=e(a);return!!(b.clip&&"auto"!==b.clip||b.clipPath&&"none"!==b.clipPath)};return{getParentNode:d,getWindow:k,getScroll:f,getRect:g,getRectRelativeTo:h,getViewportRect:i,getDocument:j,getWindowRect:l,getRootNode:m,getRootRect:n,getNodeStyle:e,isParentOf:o,hasLayout:p,getNodeOverflow:q,isNodeClipped:r}}(da);var ra=function(){function a(a,b){for(var c=0;c=f&&(n=k.right,o=k.bottom))}return g}},{key:"getWindowGeom",value:function(){var a=this.window.innerHeight||0,b=this.window.innerWidth||0,c=this.window.screenY||this.window.screenTop||0,d=c+a,e=this.window.screenX||this.window.screenLeft||0,f=e+b;return{t:c,r:f,b:d,l:e,w:b,h:a}}},{key:"getSelfGeom",value:function(){var a=b.getRect(this.node),d=b.getRect(this.ref),e=b.getNodeStyle(this.node),f=b.getWindowRect(this.node),g=a.width,h=a.height;this.ref!==this.root&&(g=c.max([0,c.min([a.right,d.right])-c.max([a.left,d.left])]),h=c.max([0,c.min([a.bottom,d.bottom])-c.max([a.top,d.top])]));var i=c.max([0,c.min(a.right,f.right)-c.max([a.left,f.left])]),j=c.max([0,c.min([a.bottom,f.bottom])-c.max([a.top,f.top])]),k=c.min([g,i]),l=c.min([h,j]),m=a.width?k/a.width:0,n=a.height?l/a.height:0,o=k*l/(a.width*a.height),p=1,q=this.getNodesOver(this.node,p);if(q.length){var r=b.getRect(q[0]),s=c.max([0,c.min([r.right,a.right])-c.max([r.left,a.left])]),t=c.max([0,c.min([r.bottom,a.bottom])-c.max([r.top,a.top])]);o=c.max([0,(k*l-s*t)/(a.width*a.height)])}var u=b.getScroll();return{t:a.top-u.y,r:a.right-u.x,b:a.bottom-u.y,l:a.left-u.x,z:e.zIndex,w:a.width,h:a.height,xiv:1===m?"1":Number(m).toFixed(2),yiv:1===n?"1":Number(n).toFixed(2),iv:1===o?"1":Number(o).toFixed(2)}}},{key:"getExpandGeom",value:function(){var a=b.getRect(this.ref),d=b.getRect(this.node),e=b.getWindowRect(this.node),f={top:c.max([a.top,e.top]),right:c.min([a.right,e.right]),bottom:c.min([a.bottom,e.bottom]),left:c.max([a.left,e.left])},g=b.getNodeOverflow(this.ref);return{t:c.max([0,d.top-f.top]),r:c.max([0,f.right-d.right]),b:c.max([0,f.bottom-d.bottom]),l:c.max([0,d.left-f.left]),xs:Boolean(g.yscroll),yx:Boolean(g.xscroll)}}},{key:"getGeom",value:function(){return{win:this.getWindowGeom(),self:this.getSelfGeom(),exp:this.getExpandGeom()}}}]),f}(),g={get:function(a){var b=new f(a);return b.getGeom()}};return g}(ea,ca),ga=function(c){var d=I,e=L,f=D,g=Y,h=na,i=E,j=pa,l=$,m=k,o=_,p=aa,q=ja,r=ba.getOrigin,s=ba.getQuery,t=n,u=fa,v=e.extend({name:"ads",origin:b,onceEvents:{"view:enter":function(){this._reportLegacy({verb:"view",adverb:"0ms-no50perc"})},"view:iab":function(){this._reportLegacy({verb:"view",adverb:"iab-scroll"})}},events:{"frame:ready":function(a){this.forumId=a.forumId,this._reportLegacy({verb:"load",extra_data:a.extraData,advertisement_id:a.advertisement_id,provider:a.provider}),this.bindViewEvents(),this.triggerGeomUpdate()},"frame:resize":function(a){this.frame.setInlineStyle("height",a.height+"px"),0===a.height?this.trigger("ad-placement-empty"):(a.adWidth&&this.frame.setInlineStyle("width",a.adWidth+"px"),this.trigger("ad-placement-filled")),this.triggerGeomUpdate()},"frame:click":function(){this._reportOnce({verb:"click"},"click")},"frame:hover":function(){this._reportOnce({verb:"hover"},"hover")},"frame:error-provider-not-ready":function(a){this._reportLegacy({verb:"fail",object_type:"provider",object_id:a.provider||this.getProvider(),adverb:"provider_not_ready"})},"frame:error-no-height":function(a){this._reportLegacy({verb:"fail",object_type:"provider",object_id:a.provider||this.getProvider(),adverb:"no_height"})},"frame:clearSandbox":function(){this.frame.elem.hasAttribute("sandbox")&&this.frame.elem.removeAttribute("sandbox")},"frame:$sf-init":function(){this.settings.isOnHostPage&&(this.isSafeframe=!0)},"frame:error":function(a){this.settings.isOnHostPage&&this.postMessageDirect({event:"error",data:{error:a}})}},constructor:function(){e.apply(this,arguments),this.origin=r(this.settings.adUrl),this._reportOnceHistory={},this.settings.isOnHostPage&&(this.detectLazyload=this.detectLazyload.bind(this),a.addEventListener("scroll",this.detectLazyload));var b=this.settings.adUrl.indexOf("/ads-iframe/taboola/")>=0;this.settings.useSourcelessFrame=this.settings.sourcelessIframe&&this.settings.isOnHostPage&&(!this.settings.defaultPlacementUrl||!this.settings.adBlockEnabled)&&!b},init:function(){if(this.settings.forum=p(s(this.settings.adUrl)).shortname,this.settings.forum){var b=a.navigator&&a.navigator.userAgent||a.navigator&&a.navigator.vendor||a.opera,c=this.settings.disableAdsIos&&/iP(hone|od|ad)/.test(b)||this.settings.disableAdsAndroid&&/Android/.test(b),f=this.settings.disableAds,g=this.settings.isInHome||this.settings.isOnHostPage&&0===a.location.href.indexOf(d.apps.home);if(!g&&f&&this.settings.canDisableAds||c)return void this.trigger("prevented-ad-load");this._reportOnce({verb:"call",object_type:"provider",object_id:this.getProvider(),adjective:1},"call"),this.settings.sandboxAds&&(this.sandbox=o.getAttribute({"allow-scripts":!0,"allow-same-origin":!0,"allow-forms":!0,"allow-popups":!0})),e.prototype.init.call(this)}},detectLazyload:function(){if(this.frame&&this.settings.isOnHostPage){var b=this.frame.elem.getBoundingClientRect().top,c=b-a.innerHeight,d=a.innerHeight*this.settings.lazyloadViewports;c=i&&!e?(e=!0,b("view:50in"),d.start()):g1&&arguments[1]!==b?arguments[1]:{},e=this.settings,f=d.provider||this.getProvider();c.forum_id=e.forumId||this.forumId;var g;g=e.placement&&e.placement.indexOf("timeline")>-1?"home":"recommendations"===e.placement?"recommendations":"embed";var h=d.usePOST?"reportJesterPOST":"reportJester";t[h](m({imp:e.impressionId,experiment:e.experiment.experiment,variant:e.experiment.variant,service:e.experiment.service,area:e.placement,product:g,forum:e.forum,zone:"thread",version:e.loaderVersion,page_url:e.referrer||a.document.location.href,page_referrer:e.hostReferrer||a.document.referrer,object_type:"advertisement",provider:f,event:"activity"},c))},_reportLegacy:function(a){var b=this.settings;this._report(m({ad_product_name:"iab_display",ad_product_layout:"iab_display",bin:"embed:promoted_discovery:"+b.experiment.service+":"+b.experiment.experiment+":"+b.experiment.variant,object_id:a.advertisement_id?"["+a.advertisement_id+"]":"",section:"default"},a))},_reportOnce:function(a,b){this._reportOnceHistory[b]||(this._reportLegacy(a),this._reportOnceHistory[b]=!0)},getFrameSettings:function(){var a=e.prototype.getFrameSettings.call(this);return a.insertBeforeEl=this.settings.insertBeforeEl,a.insertAfterEl=this.settings.insertAfterEl,a}}),w=function(a){return a=a||{},a.experiment||(a.experiment={experiment:a.experimentName,variant:a.experimentVariant,service:a.experimentService}),new v(a)};return{Ads:w}}({}),qa=function(c){var d=a.document,f=g,l=h,m=i,o=j,p=k,q=e,r=ja,s=n,t=x.HostConfig,u=y,v=R,w=ga,z=new t(a);c.configAdapter=z;var A=[],B=function(a){return a.lastResizedHeight===b?parseInt(a.frame&&a.frame.elem&&a.frame.elem.style.height||0,10):a.lastResizedHeight},C=function(a){return parseInt(a.style.height||0,10)},D=!1,E=null,F=!1,G="disqus_recommendations",H=12,I=function(){for(var a;a=A.pop();)a.triggeredSlowEvent&&a.state!==a.constructor.states.RUNNING&&s.logStat("reset_embed.slow"),a.destroy()},J=c.reset=function(b){b=b||{},F&&!d.getElementById(G)&&(F=!1),I(),b.reload&&(F&&a.DISQUS_RECOMMENDATIONS&&a.DISQUS_RECOMMENDATIONS.reset(b),c.loadEmbed(b.config))},K=m(a),L=o(a),M=c.removeDisqusLink=function(){if(d.getElementsByClassName){if("complete"!==d.readyState)return a.addEventListener("load",M);var b=d.getElementsByClassName("dsq-brlink"),c=b&&b.length&&b[0];c&&c.parentNode.removeChild(c)}};c.VERSION="current",c.loadEmbed=function(a){if(A.length)return J({reload:!0}),u.log("Use DISQUS.reset instead of reloading embed.js please."),void u.log("See https://help.disqus.com/customer/portal/articles/472107-using-disqus-on-ajax-sites");z.configurator=a;var b=z.toJSON();b.version=c.VERSION,b.loaderVersion=s.getLoaderVersionFromUrl("https://c.disquscdn.com/next/embed/lounge.load.006bbc905574fc5153c7814eb2dc65a8.js"),D||(b.container.innerHTML="",D=!0),c.loadApps(b),c.removeDisqusLink()};var N=function(b){I();var c=v.Lounge(p({},b,{isHostIframed:K}));A.push(c),c.init();var d=function(a){c.whenFullyVisible(a)},e=Boolean(!b.adBlockEnabled||b.defaultPlacementUrl),f=function(a,c){return b.adBlockEnabled&&b.defaultPlacementUrl&&(a=r(b.defaultPlacementUrl,{position:c})),a},g="googlewidemargins"===b.experimentName&&"fallthrough"!==b.experimentVariant,h=null;if(b.topPlacementUrl&&e){b.topPlacementUrl=f(b.topPlacementUrl,"top");var i={};g&&(L?i.margin=b.experimentVariant+" auto":(i.margin=b.experimentVariant,i["min-width"]="calc(100% - "+2*parseInt(b.experimentVariant,10)+"px)")),h=w.Ads(p({adUrl:b.topPlacementUrl,placement:"top",isOnHostPage:!0,styles:i},b,{insertBeforeEl:c.frame.elem})),g&&h.once("ad-placement-empty prevented-ad-load",function(){this.frame.setInlineStyle("margin","0")}),A.push(h),d(function(){h.init()})}var j=null;if(b.bottomPlacementUrl&&e){b.bottomPlacementUrl=f(b.bottomPlacementUrl,"bottom");var k={};g&&(L?k.margin=b.experimentVariant+" auto":(k.margin=b.experimentVariant,k["min-width"]="calc(100% - "+2*parseInt(b.experimentVariant,10)+"px)")),j=w.Ads(p({adUrl:b.bottomPlacementUrl,placement:"bottom",isOnHostPage:!0,styles:k},b,{insertAfterEl:c.frame.elem})),g&&j.once("ad-placement-empty prevented-ad-load",function(){this.frame.setInlineStyle("margin","0")}),A.push(j),d(function(){j.init()})}if(K){var l=function(){var a=L?function(a,b){return C(b)+a}:function(a,b){return Math.max(C(b),a)};return H+Array.prototype.reduce.call(E.children,a,0)};c.on("frame:resize",function(b){var c=b.height||B(this);h&&(c+=B(h)),j&&(c+=B(j)),E&&(c+=l()),a.postMessage(JSON.stringify({scope:"host",sender:"dsq-app-embed",name:"resize",data:{height:c}}),"*")}),h&&c.listenTo(h,"frame:resize",function(b){var c=B(this)+(b.height||B(h));j&&(c+=B(j)),E&&(c+=l()),a.postMessage(JSON.stringify({scope:"host",sender:"dsq-app-embed",name:"resize",data:{height:c}}),"*")}),j&&c.listenTo(j,"frame:resize",function(b){var c=B(this)+(b.height||B(j));h&&(c+=B(h)),E&&(c+=l()),a.postMessage(JSON.stringify({scope:"host",sender:"dsq-app-embed",name:"resize",data:{height:c}}),"*")})}};return c.loadRecommendations=function(b,c){var e=b.container;if(e&&!d.getElementById(G)){E=d.createElement("div"),E.id=G,K&&a.addEventListener("message",function(b){var c,d;try{c=JSON.parse(b.data)}catch(e){return}var g=c.sender,h=q(E.children,g)&&E.children[g];if(h&&f.getHost(b.origin)===f.getHost(h.src)&&("resize"===c.name||"rendered"===c.name)){if(1===E.children.length)d=H+(c.data.height||0);else{var i=L?function(a,b){return b.id===g?c.data.height+a:C(b)+a}:function(a,b){return b.id===g?Math.max(c.data.height,a):Math.max(C(b),a)};d=H+Array.prototype.reduce.call(E.children,i,0)}d+=A.reduce(function(a,b){return a+B(b)},0),a.postMessage(JSON.stringify({scope:"host",sender:"dsq-app-embed",name:"resize",data:{height:d}}),"*")}});var g=e.parentNode;if(g&&"top"===c)E.style.cssText="margin-bottom: "+H+"px",g.insertBefore(E,e);else{if(!g||"bottom"!==c)return;E.style.cssText="margin-top: "+H+"px",g.insertBefore(E,e.nextSibling)}var h=a.disqus_recommendations_config;a.disqus_recommendations_config=function(){if(h)try{h.call(this)}catch(a){console.error("There was a problem with the Disqus configuration.",a)}this.disable_ads=b.disableAds,this.disable_loader=!0};var i=d.createElement("script");i.async=!0,i.id="dsq_recs_scr",i.src="https://"+b.forum+".disqus.com/recommendations.js",(d.head||d.body).appendChild(i),F=!0}},c.loadApps=function(a){a.adBlockEnabled===b?l(function(b){a.adBlockEnabled=b,N(a)}):N(a);var d=a.forumDetails||{},e=!!d.recommendationsEnabled&&d.recommendationsEnabled,f=d.recommendationsPlacement?d.recommendationsPlacement:null;e&&!F&&f&&"standalone"!==f&&c.loadRecommendations(a,f)},c}(qa),ha=function(b){var c=(a.document,a.DISQUS||{}),d=ka;c.reset||(c.reset=qa.reset),c.request||(c.request={}),c.request.get||(c.request.get=function(a,b,c){d(a,b,c)}),c.host||(c.host={}),c.host._loadEmbed||(c.host._loadEmbed=qa.loadEmbed),a.DISQUS=c}({})}(this),this.DISQUS.host._loadEmbed();