var DISQUS=function(a){"use strict";var b=a.DISQUS||{};return b.define=function(c,d){"function"==typeof c&&(d=c,c="");for(var e=c.split("."),f=e.shift(),g=b,h=(d||function(){return{}}).call({overwrites:function(a){return a.__overwrites__=!0,a}},a);f;)g=g[f]?g[f]:g[f]={},f=e.shift();for(var i in h)h.hasOwnProperty(i)&&(!h.__overwrites__&&null!==g[i]&&g.hasOwnProperty(i)?b.logError&&b.logError("Unsafe attempt to redefine existing module: "+i):g[i]=h[i]);return g},b.use=function(a){return b.define(a)},b.define("next"),b}(window);DISQUS.define(function(a,b){"use strict";var c=a.DISQUS,d=a.document,e=d.head||d.getElementsByTagName("head")[0]||d.body,f=0;c.getUid=function(a){var b=++f,c=Math.floor(100*Math.random());return 10>c&&(c="0"+c),(a||"")+b+c},c.isOwn=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},c.isString=function(a){return"[object String]"===Object.prototype.toString.call(a)},c.each=function(a,b){var d=a.length,e=Array.prototype.forEach;if(isNaN(d))for(var f in a)c.isOwn(a,f)&&b(a[f],f,a);else if(e)e.call(a,b);else for(var g=0;d>g;g++)b(a[g],g,a)},c.extend=function(a){return c.each(Array.prototype.slice.call(arguments,1),function(b){for(var c in b)a[c]=b[c]}),a},c.serializeArgs=function(a){var d=[];return c.each(a,function(a,c){a!==b&&d.push(c+(null!==a?"="+encodeURIComponent(a):""))}),d.join("&")},c.serialize=function(a,b,d){if(b&&(a+=a.indexOf("?")>-1?"&"===a.charAt(a.length-1)?"":"&":"?",a+=c.serializeArgs(b)),d){var e={};return e[(new Date).getTime()]=null,c.serialize(a,e)}var f=a.length;return"&"===a.charAt(f-1)?a.slice(0,f-1):a};var g,h,i=2e4;"addEventListener"in a?(g=function(a,b,c){a.addEventListener(b,c,!1)},h=function(a,b,c){a.removeEventListener(b,c,!1)}):(g=function(a,b,c){a.attachEvent("on"+b,c)},h=function(a,b,c){a.detachEvent("on"+b,c)}),c.require=function(b,f,j,k,l){function m(b){b=b||a.event,b.target||(b.target=b.srcElement),("load"===b.type||/^(complete|loaded)$/.test(b.target.readyState))&&(k&&k(),p&&clearTimeout(p),h(b.target,o,m))}var n=d.createElement("script"),o=n.addEventListener?"load":"readystatechange",p=null;return n.src=c.serialize(b,f,j),n.async=!0,n.charset="UTF-8",(k||l)&&g(n,o,m),l&&(p=setTimeout(function(){l()},i)),e.appendChild(n),c}}),DISQUS.define(function(a){"use strict";var b=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return!0;return!1},c={},d=function(d){var e=a.require&&require.defined&&require.defined("remote/config")&&require("remote/config");if(!e||!e.switches)return null;if(DISQUS.isOwn(c,d))return c[d];var f=c[d]=b(e.switches,d);return f},e=function(){a.console&&d("next_logging")!==!1&&(a.console.log.apply?a.console.log.apply(a.console,arguments):a.console.log(Array.prototype.slice.call(arguments,0).join(" ")))};return{log:e,logError:e}}),DISQUS.define("next.host.urls",function(){"use strict";var a="default",b="c6ed14e4",c={lounge:"http://disqus.com/embed/comments/",profile:"http://disqus.com/embed/profile/",onboard:"http://disqus.com/embed/onboard/",home:"https://disqus.com/home/"},d=function(a,b){return/^http/.test(b)||(b="http:"),b+"//"+a.replace(/^\s*(\w+:)?\/\//,"")},e=function(e,f,g){var h=c[e];if(!h)throw new Error("Unknown app: "+e);var i=d(h,document.location.protocol),j=DISQUS.extend({base:a,disqus_version:b},f||{}),k=g?"#"+encodeURIComponent(JSON.stringify(g)):"";return DISQUS.serialize(i,j)+k};return{BASE:a,VERSION:b,apps:c,get:e,ensureHttpBasedProtocol:d}}),DISQUS.define("Events",function(){"use strict";var a=function(a){var b,c=!1;return function(){return c?b:(c=!0,b=a.apply(this,arguments),a=null,b)}},b=DISQUS.isOwn,c=Object.keys||function(a){if(a!==Object(a))throw new TypeError("Invalid object");var c=[];for(var d in a)b(a,d)&&(c[c.length]=d);return c},d=[].slice,e={on:function(a,b,c){if(!g(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(b,c,d){if(!g(this,"once",b,[c,d])||!c)return this;var e=this,f=a(function(){e.off(b,f),c.apply(this,arguments)});return f._callback=c,this.on(b,f,d)},off:function(a,b,d){var e,f,h,i,j,k,l,m;if(!this._events||!g(this,"off",a,[b,d]))return this;if(!a&&!b&&!d)return this._events={},this;for(i=a?[a]:c(this._events),j=0,k=i.length;k>j;j++)if(a=i[j],h=this._events[a]){if(this._events[a]=e=[],b||d)for(l=0,m=h.length;m>l;l++)f=h[l],(b&&b!==f.callback&&b!==f.callback._callback||d&&d!==f.context)&&e.push(f);e.length||delete this._events[a]}return this},trigger:function(a){if(!this._events)return this;var b=d.call(arguments,1);if(!g(this,"trigger",a,b))return this;var c=this._events[a],e=this._events.all;return c&&h(c,b),e&&h(e,arguments),this},stopListening:function(a,b,c){var d=this._listeners;if(!d)return this;var e=!b&&!c;"object"==typeof b&&(c=this),a&&((d={})[a._listenerId]=a);for(var f in d)d[f].off(b,c,this),e&&delete this._listeners[f];return this}},f=/\s+/,g=function(a,b,c,d){if(!c)return!0;if("object"==typeof c){for(var e in c)a[b].apply(a,[e,c[e]].concat(d));return!1}if(f.test(c)){for(var g=c.split(f),h=0,i=g.length;i>h;h++)a[b].apply(a,[g[h]].concat(d));return!1}return!0},h=function(a,b){var c,d=-1,e=a.length,f=b[0],g=b[1],h=b[2];switch(b.length){case 0:for(;++d=k?(clearTimeout(f),f=null,h=j,g=a.apply(d,e)):f||(f=setTimeout(i,k+c)),g}},h.addEvent(a,"message",function(a){var b;try{b=e.parse(a.data)}catch(c){return}var g=b.sender,i=f(d,g)&&d[g];i&&h.getHost(a.origin)===i.host&&(a.origin!==i.origin&&(i.origin=a.origin),"host"===b.scope&&i.trigger(b.name,b.data))},!1),h.addEvent(a,"hashchange",function(){DISQUS.trigger("window.hashchange",{hash:a.location.hash})},!1),h.addEvent(a,"resize",h.throttle(function(){DISQUS.trigger("window.resize")},250,50),!1);var i=function(){DISQUS.trigger("window.scroll")};h.addEvent(a,"scroll",h.throttle(i,250,50)),h.addEvent(c,"click",function(){DISQUS.trigger("window.click")});var j=h.WindowBase=function(a){a=a||{},this.state=j.INIT,this.uid=a.uid||DISQUS.getUid(),this.origin=a.origin,this.host=h.getHost(this.origin),this.target=a.target,this.window=null,d[this.uid]=this,this.on("ready",function(){this.state=j.READY},this),this.on("die",function(){this.state=j.KILLED},this)};DISQUS.extend(j,{INIT:0,READY:1,KILLED:2,postMessage:function(a,b,c){return a.postMessage(b,c)}}),DISQUS.extend(j.prototype,DISQUS.Events),j.prototype.sendMessage=function(a,b){var c=e.stringify({scope:"client",name:a,data:b}),d=function(a,b){return function(){var c=a.window;c?j.postMessage(c,b,a.origin):setTimeout(d,500)}}(this,c);this.isReady()?d():this.on("ready",d)},j.prototype.hide=function(){},j.prototype.show=function(){},j.prototype.url=function(){return this.target+"#"+this.uid},j.prototype.destroy=function(){this.state=j.KILLED,this.off()},j.prototype.isReady=function(){return this.state===j.READY},j.prototype.isKilled=function(){return this.state===j.KILLED};var k=h.Popup=function(a){j.call(this,a),this.windowName=a.windowName};DISQUS.extend(k.prototype,j.prototype),k.prototype.load=function(){this.window=a.open("",this.windowName||"_blank"),this.window.location=this.url()},k.prototype.isKilled=function(){return j.prototype.isKilled()||this.window.closed};var l=h.Iframe=function(a){j.call(this,a),this.styles=a.styles||{},this.tabIndex=a.tabIndex||0,this.title=a.title||"Disqus",this.container=a.container,this.elem=null};DISQUS.extend(l.prototype,j.prototype),l.prototype.load=function(){var a=this.elem=c.createElement("iframe");a.setAttribute("id","dsq-"+this.uid),a.setAttribute("data-disqus-uid",this.uid),a.setAttribute("allowTransparency","true"),a.setAttribute("frameBorder","0"),a.setAttribute("scrolling","no"),this.role&&a.setAttribute("role",this.role),a.setAttribute("tabindex",this.tabIndex),a.setAttribute("title",this.title),this.setInlineStyle(this.styles)},l.prototype.getOffset=function(a){return h.getOffset(this.elem,a)},l.prototype.setInlineStyle=function(a,b){var c={};DISQUS.isString(a)?c[a]=b:c=a;var d=this.elem.style;return"setProperty"in d?void DISQUS.each(c,function(a,b){d.setProperty(b,""+a,"important")}):this._setInlineStyleCompat(c)},l.prototype._setInlineStyleCompat=function(a){this._stylesCache=this._stylesCache||{},DISQUS.extend(this._stylesCache,a);var b=[];DISQUS.each(this._stylesCache,function(a,c){b.push(c+":"+a+" !important")}),this.elem.style.cssText=b.join(";")},l.prototype.removeInlineStyle=function(a){var b=this.elem.style;return"removeProperty"in b?void b.removeProperty(a):this._removeInlineStyleCompat(a)},l.prototype._removeInlineStyleCompat=function(a){this._stylesCache&&(delete this._stylesCache[a],this._setInlineStyleCompat({}))},l.prototype.hide=function(){this.setInlineStyle("display","none")},l.prototype.show=function(){this.removeInlineStyle("display")},l.prototype.destroy=function(){return this.elem&&this.elem.parentNode&&(this.elem.parentNode.removeChild(this.elem),this.elem=null),j.prototype.destroy.call(this)};var m=h.Channel=function(a){var b=this;b.window=null,l.call(b,a),b.styles=DISQUS.extend({width:"100%",border:"none",overflow:"hidden",height:"0"},a.styles||{})};DISQUS.extend(m.prototype,l.prototype),m.prototype.load=function(a){var c=this;l.prototype.load.call(c);var d=c.elem;d.setAttribute("width","100%"),d.setAttribute("src",this.url()),h.addEvent(d,"load",function(){c.window=d.contentWindow,a&&a()});var e=DISQUS.isString(this.container)?b(this.container):this.container;e.appendChild(d)},m.prototype.destroy=function(){return this.window=null,l.prototype.destroy.call(this)};var n=h.Sandbox=function(a){l.call(this,a),this.contents=a.contents||"",this.styles=DISQUS.extend({width:"100%",border:"none",overflow:"hidden"},a.styles||{})};return DISQUS.extend(n.prototype,l.prototype),n.prototype.load=function(){l.prototype.load.call(this);var a=this.elem,d=DISQUS.isString(this.container)?b(this.container):this.container;d.appendChild(a),this.window=a.contentWindow;try{this.window.document.open()}catch(e){a.src='javascript:var d=document.open();d.domain="'+c.domain+'";void(0);'}return this.document=this.window.document,this.document.write(this.contents),this.document.close(),this.updateHeight(),this},n.prototype.updateHeight=function(){var a,b=this.document.body;b&&(a=b.offsetHeight+"px",this.setInlineStyle({height:a,"min-height":a,"max-height":a}))},n.prototype.show=function(){this.setInlineStyle("display","block")},n.prototype.click=function(a){var b=this,c=b.document.body;h.addEvent(c,"click",function(c){a.call(b,c)})},n.prototype.setBodyClass=function(a){this.document.body.className=a},h.on=DISQUS.Events.on,h.off=DISQUS.Events.off,h.trigger=DISQUS.Events.trigger,h}),DISQUS.define("JSON",function(a){"use strict";var b,c=new DISQUS.Sandbox({container:"disqus_thread",styles:{display:"none"}});try{b=c.load().window.JSON}catch(d){}return b||(b=a.JSON),{stringify:b.stringify,parse:b.parse}}),DISQUS.define("next.host.utils",function(a,b){"use strict";function c(a){a=a.toLowerCase(),a=a.replace(/\s/,"");var b={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};return b[a]||""}function d(a){if(!a||"embed.js"!==a.substring(a.length-8))return null;for(var b,c=[/(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],d=c.length,e=0;d>e;e++)if(b=a.match(c[e]),b&&b.length&&4===b.length)return b[3];return null}function e(a,b){var c,e,f,g=a.getElementsByTagName("script"),h=g.length;b=b||d;for(var i=h-1;i>=0;i--)if(c=g[i],e=c.getAttribute?c.getAttribute("src"):c.src,f=b(e),null!==f)return f.toLowerCase();return null}function f(a,b){for(var c=0,d=new Array(a.length),e=0;e<=a.length;e++){d[e]=new Array(b.length);for(var f=0;f<=b.length;f++)d[e][f]=0}for(var g=0;gc&&(c=d[g+1][h+1]));return c}function g(){for(var a=t.getElementsByTagName("h1"),c=t.title,d=c.length,e=c,g=.6,h=0;hg&&(g=h,e=i))}(a[h]);return e}function h(a,b,c){if(c=c||b,a===t)return"";var d=r(a,b,c);return"transparent"===d||""===d||"rgba(0, 0, 0, 0)"===d?h(a.parentNode,b,c):d||null}function i(a){a=j(a),"#"===a.charAt(0)&&(a=a.substr(1));var b=parseInt(a.substr(0,2),16),c=parseInt(a.substr(2,2),16),d=parseInt(a.substr(4,2),16),e=(299*b+587*c+114*d)/1e3;return e}function j(a){return a=a.replace(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i,"#$1$1$2$2$3$3"),/^#?[a-f0-9]{6}$/.test(a)?a:k(a)||c(a)}function k(a){function b(a){return a=Number(a).toString(16),1===a.length?"0"+a:a}var c=/rgb\((\d+),\s*(\d+),\s*(\d+)\)/.exec(a);if(!c||4!==c.length)return"";var d=b(c[1]),e=b(c[2]),f=b(c[3]);return"#"+d+e+f}function l(a,b,c,d){DISQUS.isString(b)&&(b=t.createElement(b));var e=null;return b.style.visibility="hidden",a.appendChild(b),e=h(b,c,d),a.removeChild(b),e}function m(a){var b=t.createElement("a");return b.href=+new Date,l(a,b,"color")}function n(a){return a.toLowerCase().replace(/^\s+|\s+$/g,"").replace(/['"]/g,"")}function o(a){for(var b,c=l(a,"span","font-family","fontFamily"),d=c.split(","),e={courier:1,times:1,"times new roman":1,georgia:1,palatino:1,serif:1},f=0;fe;e++)d=c[e],d.events&&this.on(d.events,this),d.onceEvents&&this.once(d.onceEvents,this)};c(j.prototype,DISQUS.Events),j.prototype.destroy=function(){var a=this.constructor;this.off(),this.stopListening(),a.unregister&&a.unregister(this)},j.extend=function(a,d){var e,f=this;e=a&&b(a,"constructor")?a.constructor:function(){return f.apply(this,arguments)},c(e,f,d);var g=function(){this.constructor=e};return g.prototype=f.prototype,e.prototype=new g,a&&c(e.prototype,a),e.__super__=f.prototype,e};var k=j.extend({name:null,frame:null,origin:e.ensureHttpBasedProtocol("http://disqus.com",h),state:null,getUrl:function(a,b){return e.ensureHttpBasedProtocol(e.get(this.name,a,b),h)},getFrame:function(){var a,b=this.settings,c={target:this.getUrl(),origin:this.origin,uid:this.uid};return b.windowName?c.windowName=b.windowName:c.container=this.settings.container||f.body,this.getFrameSettings&&(c=this.getFrameSettings(c)),new(a=c.windowName?DISQUS.Popup:DISQUS.Channel)(c)},setState:function(a){var b=this.constructor;return a in b.states?void(this.state=b.states[a]):!1},init:function(){var a,b=this;b.setState("INIT"),b.trigger("beforeInit"),b.frame=a=this.getFrame(),b.listenTo(a,"all",function(c,d){b.trigger("frame:"+c,d,a)}),b.trigger("change:frame",a),b.frame.load(function(){b.setState("LOADED"),b.trigger("frameLoaded",a)}),b.trigger("afterInit")},destroy:function(){var a=this.frame;a&&(this.stopListening(a),a.destroy()),this.setState("KILLED"),this.frame=null,j.prototype.destroy.call(this)},events:{"frame:ready":function(){this.setState("READY")}}},{states:{INIT:0,LOADED:1,READY:2,RUNNING:3,KILLED:4}});c(k,i);var l=k.extend({getUrl:function(){var b=this.settings,c={f:b.forum,t_i:b.identifier,t_u:b.url||a.location.href,t_s:b.slug,t_e:b.title,t_d:b.documentTitle,t_t:b.title||b.documentTitle,t_c:b.category,s_o:b.sortOrder,l:b.language};return b.unsupported&&(c.n_s=b.unsupported),k.prototype.getUrl.call(this,c)},getFrameInitParams:function(b,c){var d=this.settings,e={permalink:d.permalink,anchorColor:d.anchorColor,referrer:a.location.href,hostReferrer:f.referrer,colorScheme:d.colorScheme,typeface:d.typeface,remoteAuthS3:d.remoteAuthS3,apiKey:d.apiKey,sso:d.sso,parentWindowHash:a.location.hash,forceAutoStyles:d.forceAutoStyles,layout:d.layout,timestamp:this.timestamp};return c&&c.elem&&a.navigator.userAgent.match(/(iPad|iPhone|iPod)/)&&(e.width=c.elem.offsetWidth),e.initialPosition=this.getViewportAndScrollStatus(),e},listenToScrollEvent:function(a){var b=this,c=b.getScrollContainer();if(c===g)return b.listenTo(DISQUS,"window.scroll",a),function(){b.stopListening(DISQUS,"window.scroll",a)};var d=DISQUS.throttle(function(){a.call(b)},250,50);return DISQUS.addEvent(c,"scroll",d),function(){DISQUS.removeEvent(c,"scroll",d)}},getScrollContainer:function(){if(this.scrollContainer)return this.scrollContainer;if(!this.settings.enableScrollContainer)return g;var a=this.settings.container;do{var b=d.utils.getComputedStyle(a,"overflow-y","overflowY");if("scroll"===b||"auto"===b)break;a=a.parentNode}while(a&&a!==g);return a===f.body&&(a=g),this.scrollContainer=a},getViewportCoords:function(){return this.getScrollContainer()===g?this.getWindowCoords():this.getScrollContainerCoords()},getWindowCoords:function(){if("number"==typeof a.pageYOffset)this.getWindowScroll=function(){return a.pageYOffset},this.getWindowHeight=function(){return a.innerHeight};else{var b=a.document;b=g.clientHeight||g.clientWidth?g:b.body,this.getWindowScroll=function(){return b.scrollTop},this.getWindowHeight=function(){return b.clientHeight}}return this.getWindowCoords=function(){return{top:this.getWindowScroll(),height:this.getWindowHeight()}},this.getWindowCoords()},getScrollContainerCoords:function(){var a=this.getScrollContainer();return{top:a.scrollTop,height:a.clientHeight}},getDocumentHeight:function(){var a=f.body,b=f.documentElement;return Math.max(a.scrollHeight,a.offsetHeight,b.clientHeight,b.scrollHeight,b.offsetHeight)},getViewportAndScrollStatus:function(){var a=this.frame;if(!a||!a.getOffset)return null;var b=this.getViewportCoords();return{frameOffset:a.getOffset(this.getScrollContainer()),pageOffset:b.top,height:b.height}},communicateViewportAndScrollStatus:function(){var a=this.getViewportAndScrollStatus();if(a){var b=a.frameOffset,c=b.top,d=c+b.height,e=a.pageOffset,f=a.height,g=e+f,h=!1,i=!1;g+f>=c&&(h=d>=e,i=h&&g>=c);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=this.getDocumentHeight(),e=d-(c.height+c.top),f=b.pageOffset+b.height-(c.top+e);return f>a?f+1:a},events:{beforeInit:function(){this.settings.unsupported||(this.settings.windowName||(this.listenToScrollEvent(this.communicateViewportAndScrollStatus),this.listenTo(DISQUS,"window.resize",this.communicateViewportAndScrollStatus)),this.timestamp=+new Date)},afterInit:function(){this.trigger("loading.start")},frameLoaded:function(a){var b=a.elem;this.settings.unsupported?(a.setInlineStyle("height","500px"),b.setAttribute("scrolling","yes"),b.setAttribute("horizontalscrolling","no"),b.setAttribute("verticalscrolling","yes"),a.show()):this.settings.windowName||(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),this.trigger("loading.init")},"frame:resize":function(a,b){var c=a.height;b.elem&&this.rendered&&(c=this.getBestNextFrameHeight(c),b.setInlineStyle("height",c+"px"),b.sendMessage("embed.resized")),this.communicateViewportAndScrollStatus()},"frame:mainViewRendered":function(a,b){this.rendered=!0,this.wasInViewport=!1,b.trigger("resize",a),b.sendMessage("embed.rendered"),this.trigger("loading.done")},"frame:fail":function(a,b){b.elem&&b.setInlineStyle("height","75px"),this.trigger("fail",a)},"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,h=this.getViewportCoords();!b.force&&f>h.top&&f-1&&-1===a.indexOf("chrome")&&this.triggerHostReflow()}},triggerHostReflow:function(){var a=document.createElement("style");document.body.appendChild(a),document.body.removeChild(a)},calcMargin:function(a){var b=a.match(e);return b&&(a=b[1]),a?"calc("+a+" + "+c.getScrollbarWidth()+"px)":c.getScrollbarWidth()+"px"},setBodyStyles:function(a){for(var b in a)document.body.style[b]=a[b]},getBodyOverflow:function(){return document.body.style.overflow},getSecureOrigin:function(){var a=b.urls.ensureHttpBasedProtocol("https://disqus.com/home/","https:"),c=a.split("/"),d=c[0],e=c[2];return d+"//"+e},getFrameSettings:function(a){return a.role="dialog",a.origin=this.getSecureOrigin(),a.styles={height:"100%",position:"fixed",top:0,right:0,"z-index":c.MAX_Z_INDEX,visibility:"hidden"},a},getUrl:function(){var a=this.settings.path||"",c=this.settings.language,d={utm_source:"disqus_embed"};return c&&"en"!==c&&(d.l=c),DISQUS.serialize(b.urls.apps[this.name]+a,d)},show:function(a){if(!this.frame.isReady())return void this.once("frame:ready",function(){this.show(a)},this);var b={path:a};this.settings.sso&&(b.sso=this.settings.sso),this.frame.sendMessage("showPath",b)}},{getInstanceOrLoad:function(a){var b=f.instance;return b?b:(b=f.instance=new f(a),a.preload&&b.listenToOnce(b,"afterInit",function(){b.frame.hide()}),b.init(),b)},preload:function(a){return a.preload=!0,f.getInstanceOrLoad(a) },show:function(a){var b=f.getInstanceOrLoad(a);return b.show(a.path),b}});return{show:f.show,preload:f.preload,_HomeApp:f}}),DISQUS.define("next.host.lounge",function(a){"use strict";var b=a.document,c=".disqus-loader{animation:disqus-embed-spinner .7s infinite linear;-webkit-animation:disqus-embed-spinner .7s infinite linear}@keyframes disqus-embed-spinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@-webkit-keyframes disqus-embed-spinner{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}",d="//a.disquscdn.com/next/assets/img/loader-bg.aab79aac7146e054d372b00794ea3b14.png",e=DISQUS.next.host,f=e.utils,g=e.app.ThreadBoundApp,h=g.extend({name:"lounge",indicators:null,wasInViewport:!1,triggeredSlowEvent:!1,events:{beforeInit:function(){var a=this.settings;a.unsupported||(this.indicators={},this.isContainerVisible()?this.addLoadingAnim():this.addLoadingAnimOnContainerVisible(),this.bindPublisherCallbacks(),this.forwardGlobalEvents())},"frame:reload":function(){a.location.reload()},"frame:reset":function(){DISQUS.reset({reload:!0})},"frame:session.identify":function(a){this.trigger("session.identify",a)},"frame:posts.paginate":function(){this.trigger("posts.paginate")},"frame:posts.create":function(a){this.trigger("posts.create",{id:a.id,text:a.raw_message})},"frame:posts.beforeCreate":function(a){this.onBeforePostCreate(a)},"frame:profile.show":function(a){this.showProfile(a)},"frame:onboard.show":function(a){this.showOnboard(a)},"frame:home.preload":function(a){this.preloadHome(a)},"frame:home.show":function(a){this.showHome(a)},"frame:home.open":function(b){a.location=b},"frame:bubble:init":function(b,c){if(c.getOffset){var d="270px",e={width:d,"min-width":d,"max-width":d,position:"fixed","z-index":f.MAX_Z_INDEX-1,bottom:"0",right:"-"+d,"-webkit-transition":"right 0.7s",transition:"right 0.7s"},g=new DISQUS.Sandbox({uid:"notification-bubble",container:this.settings.container,contents:b.contents,styles:e,role:"notification"});try{g.load()}catch(h){return}g.hide(),g.setBodyClass(b.colorTheme);var i=function(b){var c;return b||(b=a.event),b.target?c=b.target:b.srcElement&&(c=b.srcElement),3===c.nodeType&&(c=c.parentNode),c};g.click(function(a){var b=i(a),d=b.getAttribute("data-action")||"click";c.sendMessage("bubble:"+d,this.uid.split("-")[1])}),this.on({"frame:bubble:show":function(b){g.document.getElementById("message").innerHTML=b.message,g.show(),g.updateHeight(),a.setTimeout(function(){g.setInlineStyle({right:"50px"})},100)},"frame:bubble:hide":function(){g&&(g.setInlineStyle(e),a.setTimeout(function(){g.hide()},1e3))}})}},"frame:indicator:init":function(a,b){if(b.getOffset){for(var c,d,e=["north","south"],g=this.indicators,h=b.getOffset().width+"px",i={width:h,"min-width":h,"max-width":h,position:"fixed","z-index":f.MAX_Z_INDEX-1},j={north:{top:"0"},south:{bottom:"0"}},k=0;k0&&c<=a.height},showSlowLoadingMessage:function(){var a,b=this;if(b.loadingElem){if(f.pageVisibility.isHidden())return a=function(){f.pageVisibility.stopListening(a),b.setSlowLoadingMessageTimer(2e3)},void f.pageVisibility.listen(a);b.triggeredSlowEvent=!0,f.logStat(b.state===b.constructor.states.READY?"slow_embed.got_ready":b.state===b.constructor.states.LOADED?"slow_embed.loaded":"slow_embed.no_ready"),b.loadingElem.firstChild.insertAdjacentHTML("afterend",'

Disqus seems to be taking longer than usual. Reload?

')}},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 a,e,g,h=this,i=h.settings.container;if(h.loadingElem)return h.loadingElem;if(!(h.state>=h.constructor.states.RUNNING)){var j=b,k=j.createElement("style");k.type="text/css",k.styleSheet?k.styleSheet.cssText=c:k.appendChild(j.createTextNode(c)),a=j.createElement("div"),e=j.createElement("div"),g=j.createElement("div"),e.appendChild(k),e.appendChild(g),a.appendChild(e),a.dir="ltr",a.style.overflow="hidden";var l=e.style;l.height="51px",l.width="54px",l.margin="0 auto",l.overflow="hidden";var m=g.style;return m.height=m.width="29px",m.margin="11px 14px",g.className="disqus-loader",m.backgroundImage=l.backgroundImage="url("+d+")",m.backgroundRepeat=l.backgroundRepeat="no-repeat",m.backgroundPosition="-54px 0","dark"===h.settings.colorScheme&&(l.backgroundPosition="0 -51px",m.backgroundPosition="-54px -51px"),m.transformOrigin="50% 50% 0px",i.appendChild(a),h.loadingElem=a,f.logStat("lounge.loading.view"),h.setSlowLoadingMessageTimer(15e3),h.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(),this.profile&&this.profile.destroy(),a&&a.north&&(a.north.destroy(),a.north=null),a&&a.south&&(a.south.destroy(),a.south=null),g.prototype.destroy.call(this)}},{LEGACY_EVENTS_MAPPING:{onReady:"loading.done",onNewComment:"posts.create",onPaginate:"posts.paginate",onIdentify:"session.identify"}}),i=function(a){return new h(a)};return e.app.expose(h,["list","listByKey","get"],i),{Lounge:i}}),DISQUS.define("next.host.config",function(a,b){"use strict";var c=DISQUS.use("next.host.utils"),d=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,api_key:b,remote_auth_s3:b,author_s3:b},experiment:{enable_scroll_container:!0,force_auto_styles:b,sort_order:b},discovery:{disable_all:b,disable_promoted:b,sponsored_comment_id:b},strings:b,sso:{},callbacks:{preData:[],preInit:[],onInit:[],afterRender:[],onReady:[],onNewComment:[],preReset:[],onPaginate:[],onIdentify:[],beforeComment:[]}}};d.DISQUS_GLOBALS=["shortname","identifier","url","title","category_id","slug"];var e=d.prototype;return e.getContainer=function(){var a=this.win;return a.document.getElementById(a.disqus_container_id||"disqus_thread")},e.runConfigurator=function(){var a=this.configurator||this.win.disqus_config;if("function"==typeof a)try{a.call(this.config)}catch(b){}},e.getValuesFromGlobals=function(){var a,b=this.win,e=this.config,f=e.page;DISQUS.each(d.DISQUS_GLOBALS,function(a){var c=b["disqus_"+a];"undefined"!=typeof c&&(f[a]=c)}),this.runConfigurator(),e.forum||(a=f.shortname,e.forum=a?a.toLowerCase():c.getForum(b.document))},e.toJSON=function(){var a=this.win,b=this.config,d=b.page,e=this.getContainer();return this.getValuesFromGlobals(),{container:e,forum:b.forum,sortOrder:b.experiment.sort_order||a.localStorage&&a.localStorage.getItem("disqus.sort")||"default",language:b.language,typeface:c.isSerif(e)?"serif":"sans-serif",anchorColor:c.getAnchorColor(e),colorScheme:128