MediaWiki:Livefyre.js

if(typeof fyre=="undefined"){var fyre={};}fyre.conv=fyre.conv||{}; (function(z){ var na;z.l=function(a){return function{return z.aa[a].apply(this,arguments)}};z.ba=function(a){return void 0!==a};z.n=function{};z.da=function(a){a.C=function{return a.MF?a.MF:a.MF=new a}}; z.ea=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; else if("function"==b&&"undefined"==typeof a.call)return"object";return b};z.p=function(a){return"array"==z.ea(a)};z.fa=function(a){var b=z.ea(a);return"array"==b||"object"==b&&"number"==typeof a.length};z.s=function(a){return"string"==typeof a};z.ga=function(a){return"boolean"==typeof a};z.ha=function(a){return"function"==z.ea(a)};z.ia=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};z.ja=function(a){return a[z.ma]||(a[z.ma]=++na)}; var oa=function(a,b,c){return a.call.apply(a.bind,arguments)};var pa=function(a,b,c){if(!a)throw Error;if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function{var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function{return a.apply(b,arguments)}};z.t=function(a,b,c){z.t=Function.prototype.bind&&-1!=Function.prototype.bind.toString.indexOf("native code")?oa:pa;return z.t.apply(null,arguments)}; z.qa=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function{var b=c.slice;b.push.apply(b,arguments);return a.apply(this,b)}};z.ra=function{return+new Date};z.sa=function(a,b){var c=a.split("."),d=z.u;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var f;c.length&&(f=c.shift);)!c.length&&z.ba(b)?d[f]=b:d=d[f]?d[f]:d[f]={}}; z.v=function(a,b){function c{}c.prototype=b.prototype;a.b=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.uC=function(a,c,g){return b.prototype[c].apply(a,Array.prototype.slice.call(arguments,2))}};z.ta=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,z.ta);else{var b=Error.stack;b&&(this.stack=b)}a&&(this.message=String(a))};z.ua=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}; z.wa=function(a,b){for(var c=a.split("%s"),d="",f=Array.prototype.slice.call(arguments,1);f.length&&1<c.length;)d+=c.shift+f.shift;return d+c.join("%s")};z.xa=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}; z.ya=function(a){if(!za.test(a))return a;-1!=a.indexOf("\x26")&&(a=a.replace(Aa,"\x26amp;"));-1!=a.indexOf("\x3c")&&(a=a.replace(Ba,"\x26lt;"));-1!=a.indexOf("\x3e")&&(a=a.replace(Ca,"\x26gt;"));-1!=a.indexOf('"')&&(a=a.replace(Da,"\x26quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ea,"\x26#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Fa,"\x26#0;"));return a};z.Ga=function(a,b){return-1!=a.indexOf(b)}; z.Ha=function(a,b){for(var c=0,d=z.xa(String(a)).split("."),f=z.xa(String(b)).split("."),g=Math.max(d.length,f.length),h=0;0==c&&hb?1:0};var Ka=function(a,b){a.bq=b;switch(b){case 3:a.L.jy=a.vL;break;case 0:a.Xe=z.Ga(window.location.hostname,"fy.re")?"fy.re":"fyre",La(a,z.w.Xe);default:a.L.jy=""}La(a,a.Xe)}; var La=function(a,b){var c="%s."+b;a.Eh&&a.Se&&(c=b.indexOf("."),c=b.slice(0,c)+".%s."+b.slice(c+1));a.L.domain=b;a.L.eW=a.protocol+b;Ma(a);a.L.dt=a.protocol+z.wa(c,"www");a.L.Qi=a.protocol+z.wa(c,"admin");var d=a.L.dt.replace("http:","https:");a.L.auth=a.Eh?a.L.Qi:d;0==a.bq&&(a.L.auth=a.L.dt);a.L.Ll=a.protocol+z.wa(c,"quill");a.L.vd=a.protocol+z.wa(c,"bootstrap");a.L.stream=a.protocol+z.wa(c,"stream1");a.L.gg=a.protocol+"lc."+a.Xe;a.L.dz=a.protocol+"www."+a.Xe}; var Ma=function(a,b){if(b)a.L.kb=b;else{var c;if(a.Se)switch(a.bq){case 2:c="d1u30ju8a112p1.cloudfront.net";break;case 1:c="d3gywr6idt93ut.cloudfront.net";break;case 0:c="widget."+a.Xe;break;default:c="d3qdfnco3bamip.cloudfront.net"}else switch(a.bq){case 3:c="zor.fyre.co";break;case 0:c="widget."+a.Xe;break;default:c="zor."+a.Xe}c=a.protocol+c;a.L.kb=c;a.L.kb+="/wjs";a.Si&&(z.ua(a.L.kb,"v3.0")?a.L.kb+="."+a.Si:a.L.kb+="/v3.0."+a.Si)}}; z.Na=function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(z.s(a))return z.s(b)&&1==b.length?a.indexOf(b,c):-1;for(c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};z.x=function(a,b,c){for(var d=a.length,f=z.s(a)?a.split(""):a,g=0;g<d;g++)g in f&&b.call(c,f[g],g,a)};z.Oa=function(a,b,c){for(var d=a.length,f=[],g=0,h=z.s(a)?a.split(""):a,k=0;kb?null:z.s(a)?a.charAt(b):a[b]};z.Ta=function(a,b){return 0<=z.Na(a,b)};z.Ua=function(a){return 0==a.length}; z.Va=function(a,b){var c=z.Na(a,b),d;(d=0<=c)&&z.Xa(a,c);return d};z.Xa=function(a,b){z.Ya.splice.call(a,b,1)};z.Za=function(a){return z.Ya.concat.apply(z.Ya,arguments)};z.$a=function(a){var b=a.length;if(0=arguments.length?z.Ya.slice.call(a,b):z.Ya.slice.call(a,b,c)};z.bb=function(a){for(var b=[],c=0,d=0;d>=8;b[c++]=f}return b}; var cb=function(a){return z.Pa(a,function(a){a=a.toString(16);return 1<a.length?a:"0"+a}).join("")};z.y=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};z.db=function(a){var b=0,c;for(c in a)b++;return b};z.eb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};z.fb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};z.gb=function(a,b){for(var c=z.fa(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],z.ba(a));c++);return a};z.hb=function(a){for(var b in a)return!1;return!0}; z.ib=function(a,b){b in a&&delete a[b]};z.jb=function(a){var b={},c;for(c in a)b[c]=a[c];return b};z.kb=function(a,b){for(var c,d,f=1;f<arguments.length;f++){d=arguments[f];for(c in d)a[c]=d[c];for(var g=0;g=a}; var ub=function(a){a=z.bb(a);if(!z.fa(a))throw Error("encodeByteArray takes an array as a parameter");z.vb;for(var b=wb,c=[],d=0;d>2,f=(f&3)<<4|h>>4,h=(h&15)<<2|m>>6,m=m&63;k||(m=64,g||(h=64));c.push(b[q],b[f],b[h],b[m])}return c.join("")}; z.vb=function{if(!xb){xb={};z.yb={};wb={};for(var a=0;65>a;a++)xb[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(a),z.yb[xb[a]]=a,wb[a]=zb.charAt(a),62<=a&&(z.yb[zb.charAt(a)]=a)}};z.Ab=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0};var Bb=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};z.Cb=function(a){return function{return a}}; z.Db=function(a){var b=arguments,c=b.length;return function{for(var a,f=0;f<c;f++)a=b[f].apply(this,arguments);return a}};var Eb=function(a){z.u.setTimeout(function{throw a;},0)}; var Gb=function{var a=z.u.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&(a=function{var a=window.document.createElement("iframe");a.style.display="none";a.src="";window.document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open;a.write("");a.close;var c="callImmediate"+Math.random,d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=(0,z.t)(function(a){if(a.origin==d||a.data== c)this.port1.onmessage},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function{b.postMessage(c,d)}}});if("undefined"!==typeof a&&!z.Ga(z.Hb,"Trident")&&!z.Ga(z.Hb,"MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function{c=c.next;var a=c.GC;c.GC=null;a};return function(a){d.next={GC:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof window.document&&"onreadystatechange"in window.document.createElement("script")?function(a){var b=window.document.createElement("script"); b.onreadystatechange=function{b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a;a=null};window.document.documentElement.appendChild(b)}:function(a){z.u.setTimeout(a,0)}};var Ib=function(a,b){Jb||Kb;Lb||(Jb,Lb=!0);Mb.push(new Nb(a,b))}; var Kb=function{if(z.u.Promise&&z.u.Promise.resolve){var a=z.u.Promise.resolve;Jb=function{a.then(Ob)}}else Jb=function{var a=Ob;!z.ha(z.u.setImmediate)||z.u.Window&&z.u.Window.prototype.setImmediate==z.u.setImmediate?(Pb||(Pb=Gb),Pb(a)):z.u.setImmediate(a)}};var Ob=function{for(Mb.length;){var a=Mb;Mb=[];for(var b=0;b<a.length;b++){var c=a[b];try{c.QO.call(c.scope)}catch(d){Eb(d)}}}Lb=!1};var Nb=function(a,b){this.QO=a;this.scope=b}; z.Rb=function(a,b){this.F=Sb;this.dh=void 0;this.xe=this.Oa=null;this.Yq=this.$u=!1;try{var c=this;a.call(b,function(a){Tb(c,Ub,a)},function(a){Tb(c,Vb,a)})}catch(d){Tb(this,Vb,d)}};var Wb=function(a,b){if(a.F==Sb)if(a.Oa){var c=a.Oa;if(c.xe){for(var d=0,f=-1,g=0,h;h=c.xe[g];g++)if(h=h.fq)if(d++,h==a&&(f=g),0<=f&&1<d)break;0<=f&&(c.F==Sb&&1==d?Wb(c,b):(d=c.xe.splice(f,1)[0],Xb(c,d,Vb,b)))}}else Tb(a,Vb,b)};var Yb=function(a,b){a.xe&&a.xe.length||a.F!=Ub&&a.F!=Vb||Zb(a);a.xe||(a.xe=[]);a.xe.push(b)}; var $b=function(a,b,c,d){var f={fq:null,BG:null,EG:null};f.fq=new z.Rb(function(a,h){f.BG=b?function(c){try{var f=b.call(d,c);a(f)}catch(q){h(q)}}:a;f.EG=c?function(b){try{var f=c.call(d,b);!z.ba(f)&&b instanceof ac?h(b):a(f)}catch(q){h(q)}}:h});f.fq.Oa=a;Yb(a,f);return f.fq}; var Tb=function(a,b,c){if(a.F==Sb){if(a==c)b=Vb,c=new TypeError("Promise cannot resolve to itself");else{if(Bb(c)){a.F=1;c.then(a.iI,a.jI,a);return}if(z.ia(c))try{var d=c.then;if(z.ha(d)){bc(a,c,d);return}}catch(f){b=Vb,c=f}}a.dh=c;a.F=b;Zb(a);b!=Vb||c instanceof ac||cc(a,c)}};var bc=function(a,b,c){function d(b){g||(g=!0,a.jI(b))}function f(b){g||(g=!0,a.iI(b))}a.F=1;var g=!1;try{c.call(b,f,d)}catch(h){d(h)}};var Zb=function(a){a.$u||(a.$u=!0,Ib(a.oO,a))}; var Xb=function(a,b,c,d){if(c==Ub)b.BG(d);else{for(a&&a.Yq;a=a.Oa)a.Yq=!1;b.EG(d)}};var cc=function(a,b){a.Yq=!0;Ib(function{a.Yq&&dc.call(null,b)})};var ac=function(a){z.ta.call(this,a)};z.ec=function(a,b){this.zo=[];this.xG=a;this.oD=b||null;this.zn=this.VD=!1;this.dh=void 0;this.Ey=this.WM=this.ku=!1;this.Zs=0;this.Oa=null;this.tu=0};var fc=function(a,b,c){a.VD=!0;a.dh=c;a.zn=!b;gc(a)};var hc=function(a){if(a.dg){if(!a.Ey)throw new ic;a.Ey=!1}};z.jc=function(a,b){hc(a);fc(a,!1,b)}; z.kc=function(a,b,c,d){a.zo.push([b,c,d]);a.dg&&gc(a)};var lc=function(a){return z.Qa(a.zo,function(a){return z.ha(a[1])})}; var gc=function(a){if(a.Zs&&a.dg&&lc(a)){var b=a.Zs,c=mc[b];c&&(nc.call(z.u,c.cc),delete mc[b]);a.Zs=0}a.Oa&&(a.Oa.tu--,delete a.Oa);for(var b=a.dh,d=c=!1;a.zo.length&&!a.ku;){var f=a.zo.shift,g=f[0],h=f[1],f=f[2];if(g=a.zn?h:g)try{var k=g.call(f||a.oD,b);z.ba(k)&&(a.zn=a.zn&&(k==b||k instanceof Error),a.dh=b=k);Bb(b)&&(d=!0,a.ku=!0)}catch(m){b=m,a.zn=!0,lc(a)||(c=!0)}}a.dh=b;d&&(k=(0,z.t)(a.$C,a,!0),d=(0,z.t)(a.$C,a,!1),b instanceof z.ec?(z.kc(b,k,d),b.WM=!0):b.then(k,d));c&&(b=new qc(b),mc[b.cc]= b,a.Zs=b.cc)};var ic=function{z.ta.call(this)};var rc=function{z.ta.call(this)};var qc=function(a){this.cc=sc.call(z.u,(0,z.t)(this.WV,this),0);this.Zf=a}; z.tc=function(a,b){var c=b||window.document,d=c.getElementsByTagName("head")[0],f=c.createElement("link"),g;a:{g=0;for(var h=(c||window.document).getElementsByTagName("link"),k=h.length,m,c=a.toLowerCase;g<k;g++)if(m=h[g],z.s(m.href)&&-1<m.href.toLowerCase.indexOf(c)){g=!0;break a}g=!1}g||(f.rel="stylesheet",f.type="text/css",f.href=a,f.media="all",z.ia(void 0)&&z.kb(f,void 0),d.appendChild(f))}; z.uc=function(a,b,c,d,f){b=b||window.document;d=z.ha(d)?d:z.n;f=f?f:b.getElementsByTagName("head")[0];b=b.createElement("script");vc[a]?d:wc[a]?wc[a].push(d):(b.type="text/javascript",b.src=a,b.async=!0,b.defer=!0,z.ia(c)&&z.kb(b,c),xc(b,d),f.appendChild(b))}; var xc=function(a,b){wc[a.src]=[b];a.onload=a.onreadystatechange=function{if(!a.readyState||/loaded|complete/.test(a.readyState)){var b=a.src,d=wc[b];if(d.length)for(var f=0,g=d.length;f<g;f++)d[f];delete wc[b];vc[a.src]=!0;a.onload=a.onreadystatechange=null;a=void 0}}};z.yc=function{};z.zc=function(a,b){var c=(0,z.t)(a,b||window);return z.w.L.jy?Ac(c):c}; var Ac=function(a){return function{try{a.apply(this,arguments)}catch(b){z.uc(z.w.L.kb+z.w.yf.dO,null,null,function{z.Bc.UC(z.w.L.jy,{zr:[/https?:\/\/zor.fyre.co/,/https?:\/\/(admin|zor|www).livefyre.com/]});z.Bc.qS;z.Bc.FC(b)});var c=0===(0,window.parseInt)(10*Math.random)%10;if(z.B&&c)throw b;}}};z.D=function{0!=Cc&&(Dc[z.ja(this)]=this);this.Ha=this.Ha;this.Hj=this.Hj};z.Ec=function{z.D.call(this);this.oe=[];this.If={}};var Fc=function(a){delete a.oe;delete a.If;delete a.ho}; var Gc=function(a){this.name=a;z.Ec.call(this);this.Qo={}};z.Hc=function(a,b){if(b in a.Qo)throw Error("Cannot create new channel: Channel name already exists");a.Qo[b]=new Ic(b,a);return a.Qo[b]};var Ic=function(a,b){Gc.call(this,a);this.parent=b};z.Jc=function(a){return a?new z.Kc(z.Lc(a)):Mc||(Mc=new z.Kc)}; z.Nc=function(a,b){z.y(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Oc?a.setAttribute(Oc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}; z.Pc=function(a,b){var c=b[0],d=b[1];if(!Qc&&d&&(d.name||d.type)){c=["\x3c",c];d.name&&c.push(' name\x3d"',z.ya(d.name),'"');if(d.type){c.push(' type\x3d"',z.ya(d.type),'"');var f={};z.kb(f,d);delete f.type;d=f}c.push("\x3e");c=c.join("")}c=a.createElement(c);d&&(z.s(d)?c.className=d:z.p(d)?c.className=d.join(" "):z.Nc(c,d));2<b.length&&Rc(a,c,b,2);return c}; var Rc=function(a,b,c,d){function f(c){c&&b.appendChild(z.s(c)?a.createTextNode(c):c)}for(d<c.length;d++){var g=c[d];!z.fa(g)||z.ia(g)&&0<g.nodeType?f(g):z.x(z.Sc(g)?z.$a(g):g,f)}};z.Tc=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; z.Uc=function(a,b){Rc(z.Lc(a),a,arguments,1)};z.Vc=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};z.Wc=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};z.Xc=function(a){var b,c=a.parentNode;if(c&&11!=c.nodeType){if(a.removeNode)return a.removeNode(!1);for(b=a.firstChild;)c.insertBefore(b,a);return z.Wc(a)}};z.Yc=function(a){return Zc&&void 0!=a.children?a.children:z.Oa(a.childNodes,function(a){return 1==a.nodeType})}; z.$c=function(a){return void 0!=a.firstElementChild?a.firstElementChild:z.ad(a.firstChild,!0)};z.ad=function(a,b){for(a&&1!=a.nodeType;)a=b?a.nextSibling:a.previousSibling;return a};z.bd=function(a){return z.ia(a)&&1==a.nodeType};z.cd=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(b&&a!=b;)b=b.parentNode;return b==a}; z.Lc=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};z.dd=function(a){if(ed&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];z.fd(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");ed||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a}; z.fd=function(a,b,c){if(!(a.nodeName in gd))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in hd)b.push(hd[a.nodeName]);else for(a=a.firstChild;a;)z.fd(a,b,c),a=a.nextSibling};z.Sc=function(a){if(a&&"number"==typeof a.length){if(z.ia(a))return"function"==typeof a.item||"string"==typeof a.item;if(z.ha(a))return"function"==typeof a.item}return!1};z.Kc=function(a){this.Ja=a||z.u.document||window.document}; z.id=function(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};var jd=function(a){return eval("("+a+")")};z.kd=function(a){var b=[];ld(new md,a,b);return b.join("")};var md=function{this.Bs=void 0}; var ld=function(a,b,c){switch(typeof b){case "string":nd(b,c);break;case "number":c.push((0,window.isFinite)(b)&&!(0,window.isNaN)(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(null==b){c.push("null");break}if(z.p(b)){var d=b.length;c.push("[");for(var f="",g=0;gb?f+="000":256>b?f+="00":4096>b&&(f+="0");return pd[a]=f+b.toString(16)}),'"')}; z.qd=function(a,b,c){if(a===b)return 0!==a||1/a==1/b;if(null==a||null==b)return a===b;a.wM&&(a=a.BM);b.wM&&(b=b.BM);if(a.isEqual&&z.ha(a.isEqual))return a.isEqual(b);if(b.isEqual&&z.ha(b.isEqual))return b.isEqual(a);var d=Object.prototype.toString.call(a);if(d!=Object.prototype.toString.call(b))return!1;switch(d){case "[object String]":return a==String(b);case "[object Number]":return a!=+a?b!=+b:0==a?1/a==1/b:a==+b;case "[object Date]":case "[object Boolean]":return+a==+b;case "[object RegExp]":return a.source== b.source&&a.global==b.global&&a.multiline==b.multiline&&a.ignoreCase==b.ignoreCase}if("object"!=typeof a||"object"!=typeof b)return!1;for(var f=c.length;f--;)if(c[f]==a)return!0;c.push(a);var f=0,g=!0;if("[object Array]"==d){if(f=a.length,g=f==b.length)for(f--&&(g=f in a==f in b&&z.qd(a[f],b[f],c)););}else{if("constructor"in a!="constructor"in b||a.constructor!=b.constructor)return!1;for(var h in a)if(h in a&&(f++,!(g=h in b&&z.qd(a[h],b[h],c))))break;if(g){for(h in b)if(h in b&&!f--)break;g=!f}}c.pop; return g};var rd=function(a,b){z.x(Array.prototype.slice.call(arguments,1),function(b){for(var d in b)a[d]=b[d]});return a};z.sd=function(a,b,c){b.lk=a;b.kp=c};var td=function(a,b){b=b||a.J;z.y(a,function(c){if(z.ha(c)&&c.lk)for(var d=0,f=c.lk.length;d<f;++d){var g=c.lk[d];(c.kp?c.kp:b.R&&z.ha(b.R.subscribe)?b.R:b).subscribe(g,c,a)}})}; var ud=function(a,b){b=b||a.J;var c;z.y(a,function(d){if(z.ha(d)&&d.lk)for(var f=0,g=d.lk.length;f<g;++f){var h=d.lk[f];c=d.kp?d.kp:b.R&&z.ha(b.R.subscribe)?b.R:b;c.bd(h,d,a)}})};z.vd=function(a){if("function"==typeof a.md)return a.md;if(z.s(a))return a.split("");if(z.fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return z.eb(a)}; z.wd=function(a){if("function"==typeof a.Ph)return a.Ph;if("function"!=typeof a.md){if(z.fa(a)||z.s(a)){var b=[];a=a.length;for(var c=0;c=a.length)throw z.Ad;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");};z.Bd=function(a,b){if(z.fa(a))try{z.x(a,b,void 0)}catch(c){if(c!==z.Ad)throw c;}else{a=z.zd(a);try{forb.call(void 0,a.next,void 0,a)}catch(d){if(d!==z.Ad)throw d;}}}; var Cd=function(a){if(z.fa(a))return z.$a(a);a=z.zd(a);var b=[];z.Bd(a,function(a){b.push(a)});return b};z.Dd=function(a,b){this.Db={};this.gb=[];this.ap=this.Ta=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.Xt(a)}; z.Ed=function(a){if(a.Ta!=a.gb.length){for(var b=0,c=0;b<a.gb.length;){var d=a.gb[b];z.Fd(a.Db,d)&&(a.gb[c++]=d);b++}a.gb.length=c}if(a.Ta!=a.gb.length){for(var f={},c=b=0;b<a.gb.length;)d=a.gb[b],z.Fd(f,d)||(a.gb[c++]=d,f[d]=1),b++;a.gb.length=c}};z.Gd=function(a){z.Ed(a);for(var b={},c=0;c<a.gb.length;c++){var d=a.gb[c];b[d]=a.Db[d]}return b};z.Fd=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};z.Hd=function(a){this.Db=new z.Dd;a&&this.Xt(a)}; var Id=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+z.ja(a):b.substr(0,1)+a};var Kd=function(a){this.AT=a;this.nr=this.ma=this.Oa=null};z.Ld=function(a){Md||(Md=new Kd(""),Nd[""]=Md);var b;if(!(b=Nd[a])){b=new Kd(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=z.Ld(a.substr(0,c));c.kc[d]=b;b.Oa=c;Nd[a]=b}return b};z.Od=function{this.xa=Pd;z.Qd.uh.apply(this,arguments)};z.Rd=function(a){return"change:"+a}; z.Sd=function(a){var b=Td;return function{var c=this||z.u,c=c[Ud]||(c[Ud]={}),d=b(z.ja(a),arguments);return c.hasOwnProperty(d)?c[d]:c[d]=a.apply(this,arguments)}};var Td=function(a,b){for(var c=[a],d=b.length-1;0<=d;--d)c.push(typeof b[d],b[d]);return c.join("\x0B")};z.Vd=function(a){this.k=z.Wd;z.Od.call(this,a)};z.Xd=function(a){z.w.Se&&(z.y(Yd,function(b,c){a=a.replace(c,b)}),a=a.replace(/http:\/\//g,"https://"));return a};z.Zd=function{z.D.call(this)}; z.$d=function(a){if(ae){ae=!1;var b=z.u.location;if(b){var c=b.href;if(c&&(c=(c=z.$d(c)[3]||null)?(0,window.decodeURI)(c):c)&&c!=b.hostname)throw ae=!0,Error;}}return a.match(be)}; z.ce=function(a,b){var c;if(a instanceof z.ce)this.Je=z.ba(b)?b:a.Je,z.de(this,a.oi),c=a.bk,ee(this),this.bk=c,z.fe(this,a.$i),ge(this,a.Il),z.he(this,a.hi),z.ie(this,a.Gd.clone),je(this,a.pn);else if(a&&(c=z.$d(String(a)))){this.Je=!!b;z.de(this,c[1]||"",!0);var d=c[2]||"";ee(this);this.bk=ke(d);z.fe(this,c[3]||"",!0);ge(this,c[4]);z.he(this,c[5]||"",!0);z.ie(this,c[6]||"",!0);je(this,c[7]||"",!0)}else this.Je=!!b,this.Gd=new z.le(null,0,this.Je)}; z.de=function(a,b,c){ee(a);a.oi=c?ke(b,!0):b;a.oi&&(a.oi=a.oi.replace(/:$/,""))};z.fe=function(a,b,c){ee(a);a.$i=c?ke(b,!0):b};var ge=function(a,b){ee(a);if(b){b=Number(b);if((0,window.isNaN)(b)||0>b)throw Error("Bad port number "+b);a.Il=b}else a.Il=null};z.he=function(a,b,c){ee(a);a.hi=c?ke(b,!0):b};z.ie=function(a,b,c){ee(a);b instanceof z.le?(a.Gd=b,a.Gd.py(a.Je)):(c||(b=me(b,ne)),a.Gd=new z.le(b,0,a.Je))};z.oe=function(a,b,c){ee(a);a.Gd.set(b,c)}; var pe=function(a,b,c){ee(a);z.p(c)||(c=[String(c)]);qe(a.Gd,b,c)};var je=function(a,b,c){ee(a);a.pn=c?ke(b):b};var ee=function(a){if(a.BS)throw Error("Tried to modify a read-only Uri");};var ke=function(a,b){return a?b?(0,window.decodeURI)(a):(0,window.decodeURIComponent)(a):""};var me=function(a,b,c){return z.s(a)?(a=(0,window.encodeURI)(a).replace(b,re),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};var re=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}; z.le=function(a,b,c){this.$d=a||null;this.Je=!!c};z.se=function(a){if(!a.Nb&&(a.Nb=new z.Dd,a.Ta=0,a.$d))for(var b=a.$d.split("\x26"),c=0;c<b.length;c++){var d=b[c].indexOf("\x3d"),f=null,g=null;0<=d?(f=b[c].substring(0,d),g=b[c].substring(d+1)):f=b[c];f=(0,window.decodeURIComponent)(f.replace(/\+/g," "));f=te(a,f);a.add(f,g?(0,window.decodeURIComponent)(g.replace(/\+/g," ")):"")}}; z.ue=function(a){var b=z.wd(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new z.le(null,0,void 0);a=z.vd(a);for(var d=0;d<b.length;d++){var f=b[d],g=a[d];z.p(g)?qe(c,f,g):c.add(f,g)}return c};var qe=function(a,b,c){a.remove(b);0<c.length&&(a.$d=null,a.Nb.set(te(a,b),z.$a(c)),a.Ta+=c.length)};var te=function(a,b){var c=String(b);a.Je&&(c=c.toLowerCase);return c}; var ve=function(a){var b={url:window.location.href,wa:z.n,ra:z.n,method:we,timeout:30};z.kb(b,a);this.url=new z.ce(b.url);this.Rs=b.wa||z.n;this.Gq=b.ra||z.n;this.method=b.method.toUpperCase;this.timeout=b.timeout;this.ba=null};var xe=function(a,b){var c=new z.ce(a.url);b&&a.method===we&&(b=z.ue(b),b.extend(c.Gd),z.ie(c,b));return c};var ye=function(a,b){if("POST"===a.method)return z.s(b)?b:z.ia(b)?z.ue(b).toString:z.kd(b)}; var ze=function(a){ve.call(this,a);this.withCredentials="with_credentials"in a?a.with_credentials:!0;this.ba=new window.XMLHttpRequest};var Ae=function(a){ve.call(this,a);this.ba=new window.XDomainRequest}; var Be=function(a,b){var c=b||{},d=c.document||window.document,f=window.document.createElement("SCRIPT"),g={nH:f,yi:void 0},h=new z.ec(Ce,g),k=null,m=null!=c.timeout?c.timeout:5E3;0<m&&(k=window.setTimeout(function{De(f,!0);z.jc(h,new Ee(Fe,"Timeout reached for loading script "+a))},m),g.yi=k);f.onload=f.onreadystatechange=function{f.readyState&&"loaded"!=f.readyState&&"complete"!=f.readyState||(De(f,c.nN||!1,k),h.ia(null))};f.onerror=function{De(f,!0,k);z.jc(h,new Ee(Ge,"Error while loading script "+ a))};z.Nc(f,{type:"text/javascript",charset:"UTF-8",src:a});He(d).appendChild(f);return h};var He=function(a){var b=a.getElementsByTagName("HEAD");return!b||z.Ua(b)?a.documentElement:b[0]};var Ce=function{if(this&&this.nH){var a=this.nH;a&&"SCRIPT"==a.tagName&&De(a,!0,this.yi)}};var De=function(a,b,c){null!=c&&z.u.clearTimeout(c);a.onload=z.n;a.onerror=z.n;a.onreadystatechange=z.n;b&&window.setTimeout(function{z.Wc(a)},0)}; var Ee=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);z.ta.call(this,c);this.code=a};var Ie=function(a,b){this.tI=new z.ce(a);this.eN=b?b:"callback";this.yi=5E3};var Je=function(a,b,c){return function{Ke(a,!1);c&&c(b)}};var Le=function(a,b){return function(c){Ke(a,!0);b.apply(void 0,arguments)}};var Ke=function(a,b){z.u._callbacks_[a]&&(b?delete z.u._callbacks_[a]:z.u._callbacks_[a]=z.n)}; var Me=function(a){ve.call(this,a);this.ba=new Ie(this.url);this.ba.yi=3E4;this.hH={cancel:(0,z.t)(this.ba.cancel,this.ba)}}; var Ne=function(a){ve.call(this,a);if(!window.document.body)throw"Cannot use this method until body exists";if("POST"!==this.method)throw"Only post methods allowed";this.DF=Oe+"/site_media/iframe_receiver.html";this.Gw=!1;z.u.addEventListener("message",(0,z.t)(this.CG,this));(a=window.document.getElementById("fyre-pm-iframe"))?this.Gw=!0:(a=window.document.createElement("IFRAME"),a.id="fyre-pm-iframe",a.src=this.DF,window.document.body.appendChild(a));a=a.contentWindow;this.hS=a;this.us=null}; z.Pe=function(a){ve.call(this,a);this.ba=Qe(a);this.ba.wa=(0,z.t)(this.wa,this);this.ba.ra=(0,z.t)(this.ra,this)};var Qe=function(a){switch(a.ad||z.Re){case "postmessage":return"POST"===a.method&&0==a.url.lastIndexOf(Oe,0)?new Ne(a):new Me(a);case "CORS":return new ze(a);case "IECORS":return"POST"===a.method?new Ae(a):new Me(a);case "jsonp":return new Me(a)}};z.Se=function{z.D.call(this)};z.Te=function(a){z.Od.call(this,a)};z.Ue=function(a){z.Od.call(this,a)}; var Ve=function(a){var b=a.profile,c=a.permissions;if(!b)return{};b[z.We.kk]=[];c.moderator_key&&(b[z.We.kk].push(c.moderator_key),b[z.We.Pd]=!0);b[z.We.Rd]=a[z.We.Rd].value||a[z.We.Rd];b[z.We.Pt]=a[z.We.Rd].ttl;z.x(["type","sourceId"],function(a){z.ib(b,a)});return b};z.Xe=function{this.Ez=this.Ez||this.constructor.Ez;arguments&&arguments[0]||(arguments[0]={});this.nd.apply(this,arguments)};z.Ye=function(a,b){z.Xe.call(this,a,b)};var Ze=function(a,b){z.Xe.call(this,a,b)}; z.$e=function(a){this.Ja=a};z.af=function(a){a=(a.Ja.cookie||"").split(z.bf);for(var b=[],c=[],d,f,g=0;f=a[g];g++)d=f.indexOf("\x3d"),-1==d?(b.push(""),c.push(f)):(b.push(f.substring(0,d)),c.push(f.substring(d+1)));return{keys:b,mz:c}};var cf=function{};var df=function{};z.ef=function{};z.ff=function(a){this.Dc=a};var gf=function{var a=null;try{a=window.localStorage||null}catch(b){}this.Dc=a}; z.jf=function(a,b){if(z.B&&!z.sb(9)){kf||(kf=new z.Dd);this.rd=kf.get(a);this.rd||(b?this.rd=window.document.getElementById(b):(this.rd=window.document.createElement("userdata"),this.rd.addBehavior("#default#userData"),window.document.body.appendChild(this.rd)),kf.set(a,this.rd));this.Sy=a;try{this.rd.load(this.Sy)}catch(c){this.rd=null}}};var lf=function(a){return"_"+(0,window.encodeURIComponent)(a).replace(/[.!~*'%]/g,function(a){return mf[a]})}; var nf=function(a){try{a.rd.save(a.Sy)}catch(b){throw"Storage mechanism: Quota exceeded";}};z.of=function(a){return a.rd.XMLDocument.documentElement};z.pf=function{if(window.localStorage){var a=new gf;a.PF&&(this.Dc=a)}this.Dc||(this.Dc=z.B?new z.jf("fyre-store"):new df)};var qf=function(a){a=a||{};z.D.call(this);this.qd=a.qd||z.pf.C};z.rf=function{return sf||void 0};z.tf=function(a){return a.qd.get(uf)}; z.vf=function(a,b){b||(b={});var c=window,d="undefined"!=typeof a.href?a.href:String(a),f=b.target||a.target,g=[],h;for(h in b)switch(h){case "width":case "height":case "top":case "left":g.push(h+"\x3d"+b[h]);break;case "target":case "noreferrer":break;default:g.push(h+"\x3d"+(b[h]?1:0))}g=g.join(",");if(b.noreferrer){if(c=c.open("",f,g))z.B&&-1!=d.indexOf(";")&&(d="'"+d.replace(/'/g,"%27")+"'"),c.opener=null,d=z.ya(d),c.document.write('\x3cMETA HTTP-EQUIV\x3d"refresh" content\x3d"0; url\x3d'+d+'"\x3e'), c.document.close}else c=c.open(d,f,g);return c};z.wf=function{}; var xf=function(a,b){function c(a){f.isAuthenticated&&!z.E.id&&(f.removeListener("login",c),yf(a.token.value),f.on("logout",d))}function d{f.removeListener("logout",d);z.E.id&&b.Ne;f.on("login",c)}var f=a.getUser;f.on("login",c);return{login:function(b){function c(a){b.success({data:a});f.removeListener("login",c)}f.on("login",c);a.login},logout:function(b){function c{b.success;f.removeListener("logout",c)}f.on("logout",c);a.logout},viewProfile:function(b){a.viewProfile.apply(a,z.ab(arguments, 1))},editProfile:function(b){a.editProfile.apply(a,z.ab(arguments,1))},loginByCookie:function(b){!f.isAuthenticated&&a.restoreSession&&a.restoreSession;if(f.isAuthenticated){var c=z.tf(z.rf);z.E&&z.E.set(z.E.k.Rd,f.get("token"));c?b.success(c):b.failure(c)}}}};z.zf=function{z.D.call(this);this.Cd=z.Ld("fyre.v1.client.AuthClient")};var Af=function(a,b,c,d){(new Me({url:b,wa:c,ra:d})).send({})};z.Bf=function(a){this.ii=null;this.d=a}; var Cf=function(a,b,c){var d;d=a.d.u.v;var f=new z.ce(z.w.L.auth+"/auth/popup/");z.ie(f,z.ue({start:!0,site_id:d.get(d.k.Qc)}));z.Df&&z.oe(f,"url",(0,window.encodeURI)(window.location.href.split("#")[0]));d=f.toString;a.by=-1;a.MG=z.vf(d,{target:"authWindow",width:530,height:365,location:!0,menubar:!1,K0:!1,scrollbars:!1});(0,window.clearTimeout)(a.C0);b=(0,z.t)(a.RH,a,b,c);a.ii=(0,window.setTimeout)(b,100)};z.Ef=function{z.D.call(this)};z.Ff=function(a){this.xa=Pd;z.Qd.lm.call(this,a)}; z.Gf=function(a,b){this.J=this.d=a;this.ha=b;z.D.call(this)};var Hf=function(a,b){this.base=(0,z.t)(a.base||z.n,b);this.success=(0,z.t)(a.success||z.n,b);this.failure=(0,z.t)(a.failure||z.n,b)};var If=function(a,b){var c=b||{};return function{var b=new Hf(c,this),f=this.delegate&&this.delegate[a];f?f.apply(this.delegate,z.Za(b,z.$a(arguments))):b.base.apply(this,arguments)}};z.Jf=function(a,b){z.Gf.call(this,a,b);this.Ko=new z.Ff;this.Ko.Ia=z.Te;this.kv=!1;this.cg=new (b.cg||Ze)(b,this)}; z.Kf=function(a,b){var c;a.kv&&!b||!z.E.id||z.E.Qb||(c=c||z.n,z.Ef.C.Ev(z.E,!1,(0,z.t)(a.tR,a,c),c),a.kv=!0)};var Lf=function(a){var b=z.tf(z.rf);a.Vs&&(0,window.clearTimeout)(a.Vs);a.Vs=(0,window.setTimeout)((0,z.t)(function{b?Lf(this):z.E.set(z.E.k.KB,!0)},a),3E5)};var Mf=function{this.Eg=-1};z.Nf=function{this.Eg=-1;this.Eg=64;this.Xb=Array(4);this.VM=Array(this.Eg);this.Ws=this.Nm=0;this.reset}; var Of=function(a,b,c){c||(c=0);var d=Array(16);if(z.s(b))for(var f=0;16>f;++f)d[f]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(f=0;16>f;++f)d[f]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.Xb[0];c=a.Xb[1];var f=a.Xb[2],g=a.Xb[3],h=0,h=b+(g^c&(f^g))+d[0]+3614090360&4294967295;b=c+(h<<7&4294967295|h>>>25);h=g+(f^b&(c^f))+d[1]+3905402710&4294967295;g=b+(h<<12&4294967295|h>>>20);h=f+(c^g&(b^c))+d[2]+606105819&4294967295;f=g+(h<<17&4294967295|h>>>15);h=c+ (b^f&(g^b))+d[3]+3250441966&4294967295;c=f+(h<<22&4294967295|h>>>10);h=b+(g^c&(f^g))+d[4]+4118548399&4294967295;b=c+(h<<7&4294967295|h>>>25);h=g+(f^b&(c^f))+d[5]+1200080426&4294967295;g=b+(h<<12&4294967295|h>>>20);h=f+(c^g&(b^c))+d[6]+2821735955&4294967295;f=g+(h<<17&4294967295|h>>>15);h=c+(b^f&(g^b))+d[7]+4249261313&4294967295;c=f+(h<<22&4294967295|h>>>10);h=b+(g^c&(f^g))+d[8]+1770035416&4294967295;b=c+(h<<7&4294967295|h>>>25);h=g+(f^b&(c^f))+d[9]+2336552879&4294967295;g=b+(h<<12&4294967295|h>>> 20);h=f+(c^g&(b^c))+d[10]+4294925233&4294967295;f=g+(h<<17&4294967295|h>>>15);h=c+(b^f&(g^b))+d[11]+2304563134&4294967295;c=f+(h<<22&4294967295|h>>>10);h=b+(g^c&(f^g))+d[12]+1804603682&4294967295;b=c+(h<<7&4294967295|h>>>25);h=g+(f^b&(c^f))+d[13]+4254626195&4294967295;g=b+(h<<12&4294967295|h>>>20);h=f+(c^g&(b^c))+d[14]+2792965006&4294967295;f=g+(h<<17&4294967295|h>>>15);h=c+(b^f&(g^b))+d[15]+1236535329&4294967295;c=f+(h<<22&4294967295|h>>>10);h=b+(f^g&(c^f))+d[1]+4129170786&4294967295;b=c+(h<<5&4294967295| h>>>27);h=g+(c^f&(b^c))+d[6]+3225465664&4294967295;g=b+(h<<9&4294967295|h>>>23);h=f+(b^c&(g^b))+d[11]+643717713&4294967295;f=g+(h<<14&4294967295|h>>>18);h=c+(g^b&(f^g))+d[0]+3921069994&4294967295;c=f+(h<<20&4294967295|h>>>12);h=b+(f^g&(c^f))+d[5]+3593408605&4294967295;b=c+(h<<5&4294967295|h>>>27);h=g+(c^f&(b^c))+d[10]+38016083&4294967295;g=b+(h<<9&4294967295|h>>>23);h=f+(b^c&(g^b))+d[15]+3634488961&4294967295;f=g+(h<<14&4294967295|h>>>18);h=c+(g^b&(f^g))+d[4]+3889429448&4294967295;c=f+(h<<20&4294967295| h>>>12);h=b+(f^g&(c^f))+d[9]+568446438&4294967295;b=c+(h<<5&4294967295|h>>>27);h=g+(c^f&(b^c))+d[14]+3275163606&4294967295;g=b+(h<<9&4294967295|h>>>23);h=f+(b^c&(g^b))+d[3]+4107603335&4294967295;f=g+(h<<14&4294967295|h>>>18);h=c+(g^b&(f^g))+d[8]+1163531501&4294967295;c=f+(h<<20&4294967295|h>>>12);h=b+(f^g&(c^f))+d[13]+2850285829&4294967295;b=c+(h<<5&4294967295|h>>>27);h=g+(c^f&(b^c))+d[2]+4243563512&4294967295;g=b+(h<<9&4294967295|h>>>23);h=f+(b^c&(g^b))+d[7]+1735328473&4294967295;f=g+(h<<14&4294967295| h>>>18);h=c+(g^b&(f^g))+d[12]+2368359562&4294967295;c=f+(h<<20&4294967295|h>>>12);h=b+(c^f^g)+d[5]+4294588738&4294967295;b=c+(h<<4&4294967295|h>>>28);h=g+(b^c^f)+d[8]+2272392833&4294967295;g=b+(h<<11&4294967295|h>>>21);h=f+(g^b^c)+d[11]+1839030562&4294967295;f=g+(h<<16&4294967295|h>>>16);h=c+(f^g^b)+d[14]+4259657740&4294967295;c=f+(h<<23&4294967295|h>>>9);h=b+(c^f^g)+d[1]+2763975236&4294967295;b=c+(h<<4&4294967295|h>>>28);h=g+(b^c^f)+d[4]+1272893353&4294967295;g=b+(h<<11&4294967295|h>>>21);h=f+(g^ b^c)+d[7]+4139469664&4294967295;f=g+(h<<16&4294967295|h>>>16);h=c+(f^g^b)+d[10]+3200236656&4294967295;c=f+(h<<23&4294967295|h>>>9);h=b+(c^f^g)+d[13]+681279174&4294967295;b=c+(h<<4&4294967295|h>>>28);h=g+(b^c^f)+d[0]+3936430074&4294967295;g=b+(h<<11&4294967295|h>>>21);h=f+(g^b^c)+d[3]+3572445317&4294967295;f=g+(h<<16&4294967295|h>>>16);h=c+(f^g^b)+d[6]+76029189&4294967295;c=f+(h<<23&4294967295|h>>>9);h=b+(c^f^g)+d[9]+3654602809&4294967295;b=c+(h<<4&4294967295|h>>>28);h=g+(b^c^f)+d[12]+3873151461&4294967295; g=b+(h<<11&4294967295|h>>>21);h=f+(g^b^c)+d[15]+530742520&4294967295;f=g+(h<<16&4294967295|h>>>16);h=c+(f^g^b)+d[2]+3299628645&4294967295;c=f+(h<<23&4294967295|h>>>9);h=b+(f^(c|~g))+d[0]+4096336452&4294967295;b=c+(h<<6&4294967295|h>>>26);h=g+(c^(b|~f))+d[7]+1126891415&4294967295;g=b+(h<<10&4294967295|h>>>22);h=f+(b^(g|~c))+d[14]+2878612391&4294967295;f=g+(h<<15&4294967295|h>>>17);h=c+(g^(f|~b))+d[5]+4237533241&4294967295;c=f+(h<<21&4294967295|h>>>11);h=b+(f^(c|~g))+d[12]+1700485571&4294967295;b=c+ (h<<6&4294967295|h>>>26);h=g+(c^(b|~f))+d[3]+2399980690&4294967295;g=b+(h<<10&4294967295|h>>>22);h=f+(b^(g|~c))+d[10]+4293915773&4294967295;f=g+(h<<15&4294967295|h>>>17);h=c+(g^(f|~b))+d[1]+2240044497&4294967295;c=f+(h<<21&4294967295|h>>>11);h=b+(f^(c|~g))+d[8]+1873313359&4294967295;b=c+(h<<6&4294967295|h>>>26);h=g+(c^(b|~f))+d[15]+4264355552&4294967295;g=b+(h<<10&4294967295|h>>>22);h=f+(b^(g|~c))+d[6]+2734768916&4294967295;f=g+(h<<15&4294967295|h>>>17);h=c+(g^(f|~b))+d[13]+1309151649&4294967295; c=f+(h<<21&4294967295|h>>>11);h=b+(f^(c|~g))+d[4]+4149444226&4294967295;b=c+(h<<6&4294967295|h>>>26);h=g+(c^(b|~f))+d[11]+3174756917&4294967295;g=b+(h<<10&4294967295|h>>>22);h=f+(b^(g|~c))+d[2]+718787259&4294967295;f=g+(h<<15&4294967295|h>>>17);h=c+(g^(f|~b))+d[9]+3951481745&4294967295;a.Xb[0]=a.Xb[0]+b&4294967295;a.Xb[1]=a.Xb[1]+(f+(h<<21&4294967295|h>>>11))&4294967295;a.Xb[2]=a.Xb[2]+f&4294967295;a.Xb[3]=a.Xb[3]+g&4294967295}; z.Pf=function(a){var b=Array((56>a.Nm?a.Eg:2*a.Eg)-a.Nm);b[0]=128;for(var c=1;cc;++c)for(var f=0;32>f;f+=8)b[d++]=a.Xb[c]>>>f&255;return b};var Qf=function(a){var b=new z.Nf;b.update(""+a);return cb(z.Pf(b))};var Rf=function(a){this.Uf=a;var b=!1,c=(0,z.t)(function{(0,z.Sf)((0,z.t)(this.nd,this));this.jD=this.Uf.getChannelID;b=!0},this);this.Uf(function{b||c})}; var Tf=function(a){z.E.set(z.nb(z.E.k.fk,a),{Ff:!0})};var Uf=function(a){a.Uf.subscribe((0,z.t)(a.An,a))};var Vf=function(a,b){var c=new z.Hd(z.eb(Wf));return Sa(b,function(a){return c.contains(this.ND(a))},a)};var Xf=function(a){Rf.call(this,a);this.je=z.Ld("fyre.conv.service.backplane.Backplane12")};var Yf=function(a,b){var c=z.E.get(z.E.k.fk);Af(z.zf.C,c,b,(0,z.t)(function{},a))};var Zf=function(a){Rf.call(this,a);this.je=z.Ld("fyre.conv.service.backplane.Backplane20")}; var $f=function(a){var b=a.version,c;b.match(ag.oM)?c=Xf:b.match(ag.K_)&&(c=Zf);this.Uf=new c(a);this.je=z.Ld("fyre.conv.service.BackplaneAuthDelegate")};var bg=function(a){a=a||{};var b=a.engage||{},c=a.profiles||{};(0,z.Sf)((0,z.t)(function{this.WF=z.cg;this.JD=new z.u.fyre.sp.app.Engage(b);this.profiles=new z.u.fyre.sp.app.Profile(c);dg(this)},this))}; var dg=function(a){var b=z.eg||void 0;b.delegate=b.delegate||a;z.u.fyre.sp.on(fg.wp,function(a){(0,z.Sf)(function{b.wf(a.token)})});z.u.fyre.sp.on(fg.EK,function{(0,z.Sf)(function{b.Ne})})};var gg=function(a){a.WF&&z.hg.M("window_nav")};var yf=function(a){(z.eg||void 0).wf(a)}; var ig=function(a){if(!ig.NF){a.networkId&&"livefyre.com"!==a.networkId&&z.w.uH(a.networkId);ig.NF=!0;sf=new qf(a);a=new z.Jf(z.hg,a);var b=a.ha.authDelegate;(b?b&&z.ha(b.loginByCookie):1)||(a.ha.authDelegate=xf(b,a));z.eg=a}};var jg=function(a,b,c){return new kg(a,b,c)}; var kg=function(a,b,c){a.network&&"livefyre.com"!==a.network&&z.w.uH(a.network);if(a.env){if(!a.network)throw Error("If using `env` network is required");var d={prod:"",staging:"t402",qa:"qa-ext",dev:""};"livefyre.com"===a.network&&(a.network=d[a.env]+"."+a.network);z.w.set("tldPrefix",d[a.env])}this.ha=a;var f=(new z.ce(window.location.href)).Gd.get("livefyrejs");if(f&&!z.u.FYRE_OVERRIDE){var g=d=null,h=z.w.protocol;switch(f){case "dev":g="widget.fyre/wjs";d=h+"widget.fyre/compile?id\x3dlfconv\x26mode\x3dsimple"; break;case "qa":g="zor.qa-ext.livefyre.com/wjs";d=h+g+"/v3.0/"+z.w.yf.fG;break;case "uat":g="zor.t402.livefyre.com/wjs";d=h+g+"/v3.0/"+z.w.yf.fG;break;default:f=null,window.console&&window.console.warn("Unknown server override.")}z.u.FYRE_OVERRIDE=f;f={tldPrefix:z.w.Xe.replace(/.livefyre.com/,""),buildType:z.w.bq,assetServer:g};z.uc(d,null,null,z.qa(function(a,b){var c=z.u.fyre.conv;z.y(b,function(a,b){c.config.set(b,a)});c.load.apply(z.u,a)},arguments,f))}else z.ha(b)&&(c=b,b=z.lg.ik),b||(b=z.lg.ik), this.Gm={},this.ia=c||z.n,this.rG=[],this.Sp=z.Pa(z.s(b)?[b]:b,this.$O,this),z.x(this.Sp,function(a,b){var c=(0,z.t)(this.JF,this,b);z.kc(a.wT.Dh,c,null,void 0);c="";z.mg?c="_ipad":z.cg&&(c="_mobile");z.tc(z.w.L.kb+"/css/"+("livefyre_"+("reviews"===a.appName?"reviews":"main")+c+".css"))},this),ng(this,this.ha.assetVersion||z.w.Si)};var ng=function(a,b){z.w.Si=b;z.uc(z.w.L.kb+z.w.yf.uC,null,null,(0,z.t)(a.Pr,a));a.zi=(0,window.setTimeout)((0,z.t)(a.KR,a),3E3)};z.aa=[];z.og=z.og||{};z.u=this; z.ma="closure_uid_"+(1E9*Math.random>>>0);na=0;z.v(z.ta,Error);z.ta.prototype.name="CustomError";var Mc;var Aa,Ba,Ca,Da,Ea,Fa,za;Aa=/&/g;Ba=//g;Da=/"/g;Ea=/'/g;Fa=/\x00/g;za=/[\x00&<>"']/;z.qg=2147483648*Math.random|0;z.Ya=Array.prototype;a:{var rg=z.u.navigator;if(rg){var sg=rg.userAgent;if(sg){z.Hb=sg;break a}}z.Hb=""};var mb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var wg,xg,yg,qb,Ag,tb;z.F=z.Ga(z.Hb,"Opera")||z.Ga(z.Hb,"OPR");z.B=z.Ga(z.Hb,"Trident")||z.Ga(z.Hb,"MSIE");z.G=z.Ga(z.Hb,"Gecko")&&!z.Ga(z.Hb.toLowerCase,"webkit")&&!(z.Ga(z.Hb,"Trident")||z.Ga(z.Hb,"MSIE"));z.H=z.Ga(z.Hb.toLowerCase,"webkit");wg=z.H&&z.Ga(z.Hb,"Mobile");yg=ob;xg=yg&&yg.platform||"";z.tg=z.Ga(xg,"Mac");z.ug=z.Ga(xg,"Win");z.Ga(xg,"Linux");z.vg=!!ob&&z.Ga(ob.appVersion||"","X11");var zg=z.Hb;zg&&z.Ga(zg,"Android");zg&&z.Ga(zg,"iPhone");zg&&z.Ga(zg,"iPad"); z.rb=function{var a="",b;if(z.F&&z.u.opera)return a=z.u.opera.version,z.ha(a)?a:a;z.G?b=/rv\:([^\);]+)(\)|;)/:z.B?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:z.H&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(z.Hb))?a[1]:"");return z.B&&(b=pb,b>(0,window.parseFloat)(a))?String(b):a};qb={};Ag=z.u.document;tb=Ag&&z.B?pb||("CSS1Compat"==Ag.compatMode?(0,window.parseInt)(z.rb,10):5):void 0;var xb,wb,zb;xb=null;z.yb=null;wb=null;zb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.";z.Bg=z.G||z.H||z.F||"function"==typeof z.u.atob;z.w={};z.sa("fyre.conv.config",z.w);z.w.Nu=!1;z.w.Se="https:"===window.document.location.protocol;z.w.protocol=z.w.Se?"https://":"http://";z.w.uz="/api/v1.1/";z.w.Ye="/api/v3.0/";z.w.NI="fyre-auth";z.w.OI=2592E3;z.w.AA="fyre-livecount";z.w.Yb=(z.w.Se?"https://lfavatar-a.akamaihd.net":"http://avatars.fyre.co")+"/a/anon/50.jpg";z.w.e0=50;z.w.v0={u0:"WARNING"};z.w.sx="livefyre.com";z.w.network=z.w.sx;z.w.Eh=!1;z.w.nu="";z.w.bootstrapS3Prefix=z.w.nu;z.w.Xe="livefyre.com";z.w.tld=z.w.Xe;z.w.gI="https://twitter.com/intent/"; z.w.hI="https://platform.twitter.com/widgets.js";z.w.uL="https://d2kmm3vx031a1h.cloudfront.net";z.w.yf={};z.w.yf.fG="/javascripts/livefyre.js";z.w.yf.uC="/javascripts/livefyre_base.js";z.w.yf.dO="/javascripts/livefyre_mod_error.js";z.w.yf.tO="/javascripts/livefyre_mod_featured.js";z.w.yf.Yr="/javascripts/livefyre_mod_notifier.js";z.w.MI="10067";z.w.Si=z.w.MI;z.w.L={Qi:null,dt:null,vd:null,Ll:null,gg:null,dz:null,auth:null,kb:null,stream:null}; z.w.uH=function(a){var b=z.w;b.Eh=!0;b.sx=a;La(b,a);b.L.auth=b.L.Qi};z.w.set=function(a,b){var c=z.w;switch(a){case "tldPrefix":var d="livefyre.com";b&&(d=b+"."+d,c.nu="/"+d);c.Xe=d;La(c,d);Ma(c);break;case "buildType":Ka(c,b);break;case "assetVersion":c.Si=b;Ma(c);break;case "assetServer":Ma(c,b)}};z.w.set=z.w.set;z.w.mu=function(a,b){return[z.w.nu,z.w.sx,a,ub(""+b),""].join("/")};z.w.HZ=!1;z.w.vL="http://803d167b95084bdf833d2f95d66a1b3f@sentry.livefyre.com:9000/2";La(z.w,z.w.Xe);Ka(z.w,3); z.w.Nu&&Ka(z.w,0);z.Cg=z.Cb(!1);z.Dg=z.Cb(!0);var Pb;var Jb,Lb=!1,Mb=[];var Sb=0,Ub=2,Vb=3;z.Rb.prototype.then=function(a,b,c){return $b(this,z.ha(a)?a:null,z.ha(b)?b:null,c)};z.Ab(z.Rb);z.Rb.prototype.cancel=function(a){this.F==Sb&&Ib(function{var b=new ac(a);Wb(this,b)},this)};z.Rb.prototype.iI=function(a){this.F=Sb;Tb(this,Ub,a)};z.Rb.prototype.jI=function(a){this.F=Sb;Tb(this,Vb,a)};z.Rb.prototype.oO=function{for(this.xe&&this.xe.length;){var a=this.xe;this.xe=[];for(var b=0;b=b.tu&&b.cancel)}this.xG?this.xG.call(this.oD,this):this.Ey=!0;this.dg||z.jc(this,new rc)}};z.ec.prototype.$C=function(a,b){this.ku=!1;fc(this,a,b)};z.ec.prototype.ia=function(a){hc(this);fc(this,!0,a)}; z.ec.prototype.then=function(a,b,c){var d,f,g=new z.Rb(function(a,b){d=a;f=b});z.kc(this,d,function(a){a instanceof rc?g.cancel:f(a)});return g.then(a,b,c)};z.Ab(z.ec);z.ec.prototype.dg=function{return this.VD};z.v(ic,z.ta);ic.prototype.message="Deferred has already fired";ic.prototype.name="AlreadyCalledError";z.v(rc,z.ta);rc.prototype.message="Deferred was canceled";rc.prototype.name="CanceledError";qc.prototype.WV=function{delete mc[this.cc];throw this.Zf;};var mc={};z.lg={ik:"main"};z.lg.main={vd:!0,Wg:!0,Dh:new z.ec};z.lg.reviews={vd:!0,Wg:!0,Dh:new z.ec};z.lg.debug={Dh:new z.ec};z.lg.sdk={Dh:new z.ec};var wc={},vc={};z.da(z.yc);var Cc=0,Dc={};z.D.prototype.Ha=!1;z.D.prototype.p=function{if(!this.Ha&&(this.Ha=!0,this.h,0!=Cc)){var a=z.ja(this);delete Dc[a]}};z.D.prototype.h=function{if(this.Hj)for(this.Hj.length;)this.Hj.shift};z.v(z.Ec,z.D);z.e=z.Ec.prototype;z.e.Yn=1;z.e.mo=0;z.e.subscribe=function(a,b,c){var d=this.If[a];d||(d=this.If[a]=[]);var f=this.Yn;this.oe[f]=a;this.oe[f+1]=b;this.oe[f+2]=c;this.Yn=f+3;d.push(f);return f};z.e.Ro=z.l(0);z.e.bd=z.l(1);z.e.$o=function(a){if(0!=this.mo)return this.ho||(this.ho=[]),this.ho.push(a),!1;var b=this.oe[a];if(b){var c=this.If[b];c&&z.Va(c,a);delete this.oe[a];delete this.oe[a+1];delete this.oe[a+2]}return!!b}; z.e.pb=function(a,b){var c=this.If[a];if(c){this.mo++;for(var d=z.ab(arguments,1),f=0,g=c.length;f<g;f++){var h=c[f];this.oe[h+1].apply(this.oe[h+2],d)}this.mo--;if(this.ho&&0==this.mo){for(c=this.ho.pop;)this.$o(c);this.Ha&&Fc(this)}return 0!=f}return!1};z.e.clear=function(a){if(a){var b=this.If[a];b&&(z.x(b,this.$o,this),delete this.If[a])}else this.oe.length=0,this.If={}};z.e.mb=z.l(9);z.e.h=function{z.Ec.b.h.call(this);if(0!=this.mo)for(var a=1;a<this.oe.length;a+=3)this.$o(a);else Fc(this)};z.Ec.prototype.M=z.Ec.prototype.pb;z.v(Gc,z.Ec);var Eg=new Gc("main");z.v(Ic,Gc);Ic.prototype.M=function(a,b){Ic.b.M.call(this,a,b);this.parent.pb(a,b)};Ic.prototype.h=function{this.parent.Qo[this.name].p;delete this.parent.Qo[this.name];this.parent=null;Ic.b.h.call(this)};z.hg=z.Hc(Eg,Eg.name+".fyre.conv");z.yc.C;z.hg.Ax=z.hg.pb;z.hg.pb=z.zc(z.hg.pb,z.hg);var Qc,Zc,ed;Qc=!z.B||z.sb(9);Zc=!z.G&&!z.B||z.B&&z.sb(9)||z.G&&z.A("1.9.1");ed=z.B&&!z.A("9");z.Fg=z.B||z.F||z.H;z.Gg=z.B&&!z.sb(9);var Oc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},gd={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},hd={IMG:" ",BR:"\n"};z.e=z.Kc.prototype;z.e.T=z.Jc;z.e.la=z.l(15);z.e.f=z.l(16);z.e.bg=z.l(17);z.e.n=z.l(18);z.e.r=function(a,b,c){return z.Pc(this.Ja,arguments)};z.e.createElement=function(a){return this.Ja.createElement(a)}; z.e.createTextNode=function(a){return this.Ja.createTextNode(String(a))};z.e.Eu=z.l(19);z.e.hb=z.l(20);z.e.appendChild=function(a,b){a.appendChild(b)};z.e.append=z.Uc;z.e.canHaveChildren=z.Tc;z.e.Hd=z.Vc;z.e.removeNode=z.Wc;z.e.PO=z.Xc;z.e.kc=z.Yc;z.e.iE=z.$c;z.e.wS=z.bd;z.e.contains=z.cd;z.e.sf=z.l(21);z.e.kP=z.dd;var pd={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},od=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;var Hg=function{var a=0;return function(b){var c=a++;return b?b+c:c}};z.Qd=function{function a(a,c,d){var f;f=c&&c.hasOwnProperty("constructor")?c.constructor:function{a.apply(this,arguments)};rd(f,a);b.prototype=a.prototype;f.prototype=new b;c&&rd(f.prototype,c);d&&rd(f,d);f.prototype.constructor=f;f.U_=a.prototype;return f}function b{}var c=Array.prototype.slice,d=Array.prototype.splice,f={Ii:{on:function(a,b,c){var d;a=a.split(/\s+/);for(var f=this.Mp||(this.Mp={});d=a.shift;){d=f[d]||(f[d]={});var g=d.wi||(d.wi=d.next={});g.ia=b;g.J=c;d.wi=g.next={}}return this}, off:function(a,b,c){var d,f,g,I,J,M;if(f=this.Mp){if(!(a||b||c))return delete this.Mp,this;for(a=a?a.split(/\s+/):z.fb(f);d=a.shift;)if(g=f[d],delete f[d],g&&(b||c))for(I=g.wi;(g=g.next)!==I;)if(J=g.ia,M=g.J,b&&J!==b||c&&M!==c)this.on(d,J,M);return this}},M:function(a){var b,d,f,g;if(!(f=this.Mp))return this;g=f.all;for((a=a.split(/\s+/)).push(null);b=a.shift;)g&&a.push({next:g.next,wi:g.wi,event:b}),(d=f[b])&&a.push({next:d.next,wi:d.wi});for(g=c.call(arguments,1);d=a.pop;)for(b=d.wi,f=d.event? [d.event].concat(g):g;(d=d.next)!==b;)d.ia.apply(d.J||this,f);return this}}};f.Ii.bind=f.Ii.on;f.Ii.T0=f.Ii.off;f.uh=function(a,b){var c;a||(a={});if(c=z.ha(this.vc)?this.vc:this.vc||{})a=rd({},c,a);b&&b.v&&(this.v=b.v);this.attributes={};this.xM={};this.Gg=Hg("c");if(!this.set(a,{Ff:!0}))throw Error("Can't create an invalid model");delete this.ue;this.yk=z.jb(this.attributes);this.nd.apply(this,arguments)};rd(f.uh.prototype,f.Ii,{wr:"id",nd:function{},toJSON:function{return z.jb(this.attributes)}, get:function(a){return this.attributes[a]},has:function(a){return null!=this.attributes[a]},set:function(a,b,c){var d,g;z.ia(a)||null==a?(d=a,c=b):(d={},d[a]=b);c||(c={});if(!d)return this;d instanceof f.uh&&(d=d.attributes);if(c.lh)for(g in d)d[g]=void 0;this.wr in d&&(this.id=d[this.wr]);b=this.attributes;var r=this.xM,I=this.yk||{},J=this.cC;this.ue||(this.ue={});this.cC=!0;for(g in d)if(a=d[g],z.qd(b[g],a,[])||delete r[g],c.lh?delete b[g]:b[g]=a,this.Tt&&!z.qd(this.ue[g],a,[])&&(this.M("change:"+ g,this,a,c),this.Ut=!0),delete this.ue[g],!z.qd(I[g],a,[])||g in b!=g in I||c.nj)this.ue[g]=a;J||(c.Ff||!this.Rg&&!c.nj||this.hN(c),this.cC=!1);return this},lh:function(a,b){(b||(b={})).lh=!0;return this.set(a,null,b)},clear:function(a){(a||(a={})).lh=!0;return this.set(z.jb(this.attributes),a)},clone:function{return new this.constructor(this.attributes)},AS:function{return null==this.id},Dj:function(a,b){a instanceof this.constructor&&z.y(a.attributes,function(a,c){this.set(c,a,b)},this)}, hN:function(a){if(this.Tt||!this.Rg)return this;this.Ut=this.Tt=!0;for(var b in this.ue)this.M("change:"+b,this,this.ue[b],a);for(this.Ut;)this.Ut=!1,this.M("change",this,a);this.yk=z.jb(this.attributes);delete this.ue;this.Tt=!1;return this},Rg:function(a){return arguments.length?this.ue&&a in this.ue:!z.hb(this.ue)},eq:function(a){if(!a)return this.Rg?z.jb(this.ue):!1;var b,c=!1,d=this.yk,f;for(f in a){var g=b=a[f];z.qd(d[f],g,[])||((c||(c={}))[f]=b)}return c},yU:function(a){return arguments.length&& this.yk?this.yk[a]:null},E0:function{return z.jb(this.yk)}});f.lm=function(a,b){b||(b={});this.bC;this.nd.apply(this,arguments);a&&this.reset(a,{Ff:!0})};rd(f.lm.prototype,f.Ii,{Ia:f.uh,nd:function{},toJSON:function{return this.map(function(a){return a.toJSON})},add:function(a,b){var c,f,g,r,I,J={},M={};b||(b={});a=z.p(a)?a.slice:[a];c=0;for(f=a.length;c<f;c++){if(!(g=a[c]=this.AM(a[c],b)))throw Error("Can't add an invalid model to a collection");if(J[r=g.Gg]||this.Lp[r]||null!=(I=g.id)&& (M[I]||this.xk[I])){if(b.X_)throw Error("Can't add the same model to a collection twice");return}J[r]=M[I]=g}for(c=0;c<f;c++)(g=a[c]).on("all",this.$B,this),this.Lp[g.Gg]=g,null!=g.id&&(this.xk[g.id]=g);this.length+=f;d.apply(this.ob,[null!=b.Vp?b.Vp:this.ob.length,0].concat(a));if(b.Ff)return this;c=0;for(f=this.ob.length;c<f;c++)J[(g=this.ob[c]).Gg]&&(b.index=c,g.M("add",g,this,b));return this},remove:function(a,b){var c,d,f,g;b||(b={});a=z.p(a)?a.slice:[a];c=0;for(d=a.length;c<d;c++)if(g=this.dE(a[c])|| this.get(a[c]))delete this.xk[g.id],delete this.Lp[g.Gg],f=this.indexOf(g),this.ob.splice(f,1),this.length--,b.Ff||(b.index=f,g.M("remove",g,this,b)),this.aC(g);return this},get:function(a){return null==a?null:this.xk[null!=a.id?a.id:a]},dE:function(a){return a&&this.Lp[a.Gg||a]},Vp:function(a){return this.ob[a]},reset:function(a,b){a||(a=[]);b||(b={});for(var c=0,d=this.ob.length;c<d;c++)this.aC(this.ob[c]);this.bC;this.add(a,{Ff:!0});b.Ff||this.M("reset",this,b);return this},bC:function{this.length= 0;this.ob=[];this.xk={};this.Lp={}},AM:function(a,b){a instanceof f.uh?a.v||(a.v=this):(b.v=this,a=new this.Ia(a,b));return a},aC:function(a){this==a.v&&delete a.v;a.off("all",this.$B,this)},$B:function(a,b,c,d){if("add"!=a&&"remove"!=a||c==this)"destroy"==a&&this.remove(b,d),b&&a==="change:"+b.wr&&(delete this.xk[b.yU(b.wr)],this.xk[b.id]=b),this.M.apply(this,arguments)}});var g={forEach:z.x,map:z.Pa,some:z.Qa,contains:z.Ta,indexOf:z.Na,filter:z.Oa};z.y(g,function(a,b){f.lm.prototype[b]=function{return g[b].apply(a, [this.ob].concat(z.$a(arguments)))}});f.uh.extend=f.lm.extend=function(b,c){var d=a(this,b,c);d.extend=this.extend;return d};return f};z.Ad="StopIteration"in z.u?z.u.StopIteration:Error("StopIteration");z.yd.prototype.next=function{throw z.Ad;};z.yd.prototype.Sd=function{return this};z.e=z.Dd.prototype;z.e.mb=z.l(8);z.e.md=function{z.Ed(this);for(var a=[],b=0;b2*this.Ta&&z.Ed(this),!0):!1}; z.e.get=function(a,b){return z.Fd(this.Db,a)?this.Db[a]:b};z.e.set=function(a,b){z.Fd(this.Db,a)||(this.Ta++,this.gb.push(a),this.ap++);this.Db[a]=b};z.e.Xt=function(a){var b;a instanceof z.Dd?(b=a.Ph,a=a.md):(b=z.fb(a),a=z.eb(a));for(var c=0;c=c.length)throw z.Ad;var h=c[b++];return a?h:d[h]}};return h};z.e=z.Hd.prototype;z.e.mb=z.l(7);z.e.add=function(a){this.Db.set(Id(a),a)};z.e.Xt=function(a){a=z.vd(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])};z.e.Re=z.l(27);z.e.remove=function(a){return this.Db.remove(Id(a))};z.e.clear=function{this.Db.clear};z.e.Bd=z.l(12);z.e.contains=function(a){return this.Db.Ig(Id(a))};z.e.Ow=z.l(28);z.e.md=function{return this.Db.md};z.e.clone=function{return new z.Hd(this)};z.e.Sk=z.l(25);z.e.Sd=function{return this.Db.Sd(!1)};z.e=Kd.prototype;z.e.getName=function{return this.AT};z.e.getParent=function{return this.Oa};z.e.kc=function{this.ma||(this.ma={});return this.ma};z.e.log=function{};z.e.info=function{};z.e.UC=function{};var Nd={},Md=null;z.v(z.Od,z.Qd.uh);var Pd={FW:"all",gt:"add",Mf:"change",BX:"destroy",ERROR:"error",Gt:"remove",pL:"reset",n_:"sync",M_:"visible"};z.Od.prototype.hc=z.Rd;z.Od.prototype.set=function(a,b){return z.Qd.uh.prototype.set.apply(this,arguments)};z.Od.prototype.update=function(a,b,c){var d;z.ia(a)||null==a?(d=a,c=b):(d={},d[a]=b);return this.eq(d)?this.set(d,c):this};z.Od.prototype.reset=function(a){var b=this.vc;if(z.p(a))for(var c=0;c<a.length;c++)delete b[a[c]];this.set(b)};z.Ig={};z.Ig.avatar=z.w.Yb;z.Ig.custom=!1;z.Ig.display_name="";z.Ig.handle="";z.Ig.jid="";z.Ig.name=null;z.Ig.profile_url="";z.Ig.provider="";z.Ig.prefix="@";var Ud="closure_memoize_cache_";z.v(z.Vd,z.Od);z.Jg={ik:1,LJ:2,tc:3,rc:4,tM:5,tY:6,nk:7,up:8,gM:9};z.Kg={1:"Livefyre",3:"Twitter",4:"Facebook",8:"Instagram",5:"YouTube",6:"Google+",7:"LinkedIn",9:"Tumblr"};z.Wd={ub:"avatar",hp:"bio",yg:"connections",Fz:"createdAt",jk:"defaultAvatar",ua:"displayName",qJ:"key",bA:"firstName",pp:"handle",X:"id",vA:"lastName",nK:"likes",Vb:"profileUrl",Ab:"rating",bf:"tags",Na:"type",URL:"url",H_:"userId"}; z.Vd.prototype.vc=function{var a=z.Wd,b={};b[a.ub]=z.w.Yb;b[a.jk]=z.w.Yb;b[a.Ab]=5;b[a.bf]=[];b[a.Na]=1;return b};z.Vd.prototype.iP=z.Sd(function{var a=this.get(this.k.Na);return a in z.Kg?z.Kg[a]:z.Kg[1]});z.Vd.prototype.bm=z.l(30);z.Vd.prototype.Qb=function{return/^guest-/.test(this.get(this.k.X))};z.Lg=new RegExp(/(tw\.gw\.livefyre\.com|twitter\.com)$/);z.Vd.prototype.Ac=z.l(31);z.Mg=new RegExp(/(fb\.gw\.livefyre\.com|facebook\.com)$/);z.Vd.prototype.ee=z.l(32);z.Vd.prototype.$h=z.l(33); z.Vd.prototype.Ke=z.l(34);z.Vd.prototype.Pw=z.l(35);var Pg;z.Ng={ub:"avatar",Hi:"custom",ua:"display_name",pp:"handle",X:"id",ut:"jid",pk:"name",VA:"prefix",Vb:"profile_url",qk:"provider",Ag:"reply",Na:"type",PB:"uid"};z.Og={rc:"facebook",zt:"livefyre",tc:"twitter",up:"instagram"};Pg=z.Ng;z.Qg={};z.Qg[Pg.ub]="";z.Qg[Pg.Hi]=!1;z.Qg[Pg.ua]="";z.Qg[Pg.pp]="";z.Qg[Pg.ut]="";z.Qg[Pg.pk]=null;z.Qg[Pg.Vb]="";z.Qg[Pg.qk]="";z.Qg[Pg.VA]="@";var Yd,Sg;Yd={"avatars-qa.fyre.co":"lfqaavatar-a.akamaihd.net","avatars-staging.fyre.co":"lfstagingavatar-a.akamaihd.net","avatars.fyre.co":"lfavatar-a.akamaihd.net","a0.twimg.com":"si0.twimg.com"};z.Rg={};Sg=z.Og;z.Rg[Sg.rc]=z.Jg.rc;z.Rg[Sg.zt]=z.Jg.ik;z.Rg[Sg.tc]=z.Jg.tc;z.v(z.Zd,z.D);var be=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,ae=z.H;z.e=z.ce.prototype;z.e.oi="";z.e.bk="";z.e.$i="";z.e.Il=null;z.e.hi="";z.e.pn="";z.e.BS=!1;z.e.Je=!1; z.e.toString=function{var a=[],b=this.oi;b&&a.push(me(b,Tg,!0),":");if(b=this.$i){a.push("//");var c=this.bk;c&&a.push(me(c,Tg,!0),"@");a.push((0,window.encodeURIComponent)(String(b)).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Il;null!=b&&a.push(":",String(b))}if(b=this.hi)this.$i&&"/"!=b.charAt(0)&&a.push("/"),a.push(me(b,"/"==b.charAt(0)?Ug:Vg,!0));(b=this.Gd.toString)&&a.push("?",b);(b=this.pn)&&a.push("#",me(b,Wg));return a.join("")}; z.e.resolve=function(a){var b=this.clone,c=!!a.oi;c?z.de(b,a.oi):c=!!a.bk;if(c){var d=a.bk;ee(b);b.bk=d}else c=!!a.$i;c?z.fe(b,a.$i):c=null!=a.Il;d=a.hi;if(c)ge(b,a.Il);else if(c=!!a.hi){if("/"!=d.charAt(0))if(this.$i&&!this.hi)d="/"+d;else{var f=b.hi.lastIndexOf("/");-1!=f&&(d=b.hi.substr(0,f+1)+d)}f=d;if(".."==f||"."==f)d="";else if(z.Ga(f,"./")||z.Ga(f,"/.")){for(var d=0==f.lastIndexOf("/",0),f=f.split("/"),g=[],h=0;h<f.length;){var k=f[h++];"."==k?d&&h==f.length&&g.push(""):".."==k?((1<g.length|| 1==g.length&&""!=g[0])&&g.pop,d&&h==f.length&&g.push("")):(g.push(k),d=!0)}d=g.join("/")}else d=f}c?z.he(b,d):c=""!==a.Gd.toString;c?z.ie(b,ke(a.Gd.toString)):c=!!a.pn;c&&je(b,a.pn);return b};z.e.clone=function{return new z.ce(this)};z.e.py=function(a){this.Je=a;this.Gd&&this.Gd.py(a);return this};var Tg=/[#\/\?@]/g,Vg=/[\#\?:]/g,Ug=/[\#\?]/g,ne=/[\#\?@]/g,Wg=/#/g;z.e=z.le.prototype;z.e.Nb=null;z.e.Ta=null;z.e.mb=z.l(6); z.e.add=function(a,b){z.se(this);this.$d=null;a=te(this,a);var c=this.Nb.get(a);c||this.Nb.set(a,c=[]);c.push(b);this.Ta++;return this};z.e.remove=function(a){z.se(this);a=te(this,a);return this.Nb.Ig(a)?(this.$d=null,this.Ta-=this.Nb.get(a).length,this.Nb.remove(a)):!1};z.e.clear=function{this.Nb=this.$d=null;this.Ta=0};z.e.Bd=z.l(11);z.e.Ig=function(a){z.se(this);a=te(this,a);return this.Nb.Ig(a)};z.e.Xi=z.l(23); z.e.Ph=function{z.se(this);for(var a=this.Nb.md,b=this.Nb.Ph,c=[],d=0;d<b.length;d++)for(var f=a[d],g=0;g<f.length;g++)c.push(b[d]);return c};z.e.md=function(a){z.se(this);var b=[];if(z.s(a))this.Ig(a)&&(b=z.Za(b,this.Nb.get(te(this,a))));else{a=this.Nb.md;for(var c=0;c<a.length;c++)b=z.Za(b,a[c])}return b};z.e.set=function(a,b){z.se(this);this.$d=null;a=te(this,a);this.Ig(a)&&(this.Ta-=this.Nb.get(a).length);this.Nb.set(a,[b]);this.Ta++;return this}; z.e.get=function(a,b){var c=a?this.md(a):[];return 0<c.length?String(c[0]):b};z.e.toString=function{if(this.$d)return this.$d;if(!this.Nb)return"";for(var a=[],b=this.Nb.Ph,c=0;c<b.length;c++)for(var d=b[c],f=(0,window.encodeURIComponent)(String(d)),d=this.md(d),g=0;g<d.length;g++){var h=f;""!==d[g]&&(h+="\x3d"+(0,window.encodeURIComponent)(String(d[g])));a.push(h)}return this.$d=a.join("\x26")};z.e.clone=function{var a=new z.le;a.$d=this.$d;this.Nb&&(a.Nb=this.Nb.clone,a.Ta=this.Ta);return a}; z.e.py=function(a){a&&!this.Je&&(z.se(this),this.$d=null,this.Nb.forEach(function(a,c){var d=c.toLowerCase;c!=d&&(this.remove(c),qe(this,d,a))},this));this.Je=a};z.e.extend=function(a){for(var b=0;b<arguments.length;b++)xd(arguments[b],function(a,b){this.add(b,a)},this)};var we="GET";ve.prototype.send=z.n;ve.prototype.abort=function{this.ba&&this.ba.abort};ve.prototype.wa=function(a){if(a&&z.s(a))try{a=jd(a)}catch(b){}this.Rs(a)};ve.prototype.ra=function(a){if(a&&z.s(a))try{a=jd(a)}catch(b){}this.Gq(a)};z.v(ze,ve);ze.prototype.send=function(a,b){this.ba.open(this.method,xe(this,a).toString,!0);z.ia(b)&&z.y(b,function(a,b){this.ba.setRequestHeader(b,a)},this);this.ba.withCredentials=this.withCredentials;this.ba.onreadystatechange=(0,z.t)(this.ia,this);this.ba.send(ye(this,a))};ze.prototype.ia=function{4!==this.ba.readyState||200!==this.ba.status&&304!==this.ba.status?4===this.ba.readyState&&this.ra(this.ba.responseText):this.wa(this.ba.responseText)};z.v(Ae,ve);Ae.prototype.send=function(a){this.ba.open(this.method,xe(this,a).toString);this.ba.timeout=1E3*this.timeout;this.ba.onload=(0,z.t)(function{this.ia("success",this.ba.responseText)},this);this.ba.onerror=this.ba.ontimeout=(0,z.t)(function{this.ia("failure",this.ba.responseText)},this);this.ba.onprogress=z.n;this.ba.send(ye(this,a))};Ae.prototype.ia=function(a,b){var c={};if("success"===a){try{if(c=jd(b),200!==c.code&&304!==c.code){this.ra(b);return}}catch(d){}this.wa(b)}else this.ra(b)};var Ge=0,Fe=1;z.v(Ee,z.ta);var Xg=0;Ie.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(Xg++).toString(36)+z.ra.toString(36);z.u._callbacks_||(z.u._callbacks_={});var f=this.tI.clone;if(a)for(var g in a)a.hasOwnProperty&&!a.hasOwnProperty(g)||pe(f,g,a[g]);b&&(z.u._callbacks_[d]=Le(d,b),pe(f,this.eN,"_callbacks_."+d));b=Be(f.toString,{timeout:this.yi,nN:!0});z.kc(b,null,Je(d,a,c),void 0);return{cc:d,Fh:b}};Ie.prototype.cancel=function(a){a&&(a.Fh&&a.Fh.cancel,a.cc&&Ke(a.cc,!1))};z.v(Me,ve);Me.prototype.Vy=function(a){a&&"error"==a.status?this.ra(a):this.wa(a)};Me.prototype.send=function(a){a=a||{};"POST"==this.method&&(z.s(a)&&(a={_body:a}),a._method="POST");this.ba.tI=this.url;a instanceof z.Dd&&(a=z.Gd(a));this.hH=this.ba.send(a,(0,z.t)(this.Vy,this),(0,z.t)(this.ra,this))};Me.prototype.abort=function{this.ba.cancel(this.hH);this.ra};z.v(Ne,ve);var Oe=z.w.L.Ll;Ne.prototype.send=function(a){this.Gw?(z.u.addEventListener("message",(0,z.t)(this.aH,this)),a={url:xe(this).toString,data:ye(this,a)},this.hS.postMessage(JSON.stringify(a),this.DF)):this.us=a};Ne.prototype.CG=function{this.Gw=!0;this.us&&(this.send(this.us),this.us=null);z.u.removeEventListener("message",(0,z.t)(this.CG,this))}; Ne.prototype.aH=function(a){z.u.removeEventListener("message",(0,z.t)(this.aH,this));a.origin===z.w.L.Ll&&(a=JSON.parse(a.data),/200|304/.test((0,window.parseInt)(a.code,10))?this.wa(a):this.ra(a))};var Yg,Zg;z.v(z.Pe,ve);z.Pe.prototype.wa=function(a){z.Pe.b.wa.call(this,a)};z.Pe.prototype.ra=function(a){z.Pe.b.ra.call(this,a)};z.Pe.prototype.send=function(a,b){this.ba.url=this.url;this.ba.send(a,b)};Yg=window.document.location.protocol;Zg=z.ha(window.postMessage)&&z.ia(JSON);z.Re="file:"==Yg?"jsonp":"https:"==Yg&&Zg?"postmessage":window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest?"CORS":"jsonp";z.v(z.Se,z.Zd);z.da(z.Se);z.$g="collCreated";z.$g="collection_created";z.v(z.Te,z.Od);var ah;z.Te.prototype.k=ah={X:"id",ub:"avatar",pk:"name",qk:"provider"};z.Te.prototype.OL={tc:"tw",rc:"fb"};z.Te.prototype.vc=function{var a={};a[ah.ub]=z.w.Yb;return a};z.Te.prototype.bm=z.l(29);z.v(z.Ue,z.Od);z.Ue.prototype.k=z.We={ub:"avatar",fk:"bp_channel",yg:"connections",jk:"defaultAvatar",ua:"displayName",kk:"eref_keys",th:"guest",X:"id",ut:"jid",Pd:"moderator",xm:"oauthTokens",Ki:"posted",Vb:"profileUrl",Ab:"rating",wL:"settingsUrl",bf:"tags",Rd:"token",KB:"tokeExp",Pt:"tokenTTL"}; z.Ue.prototype.vc=function{var a={};a[z.We.ub]=z.w.Yb;a[z.We.jk]=z.w.Yb;a[z.We.fk]=null;a[z.We.yg]={};a[z.We.ua]="";a[z.We.kk]=[];a[z.We.xm]={};a[z.We.Pd]=!1;a[z.We.Ki]=!1;a[z.We.Ab]=5;a[z.We.bf]=[];a[z.We.Rd]="";return a};z.Ue.prototype.Qb=function{return/^guest-/.test(this.get(z.We.X))};z.Ue.prototype.eb=z.l(36);z.Xe.prototype.nd=function(a){this.ha=a};z.v(z.Ye,z.Xe);z.Ye.prototype.nd=function(a,b){this.J=b.J;this.parent=b;td(this,b.J)};z.Ye.prototype.p=function{this.h;ud(this,this.parent.J);delete this.J;delete this.parent};z.Ye.prototype.h=function{};z.v(Ze,z.Ye);Ze.prototype.nd=function(a,b){this.ha=a;this.qb=b;Ze.b.nd.call(this,a,b)};Ze.prototype.ZQ=function{this.qb.wf};z.sd(["render_complete"],Ze.prototype.ZQ);Ze.prototype.SS=function{z.Kf(this.qb);Lf(this.qb)};z.sd(["user_logged_in"],Ze.prototype.SS);Ze.prototype.FP=function{var a=z.rf;!z.E.id&&z.tf(a)&&this.qb.wf(!0)};z.sd([z.$g],Ze.prototype.FP);z.bf=/\s*;\s*/;z.e=z.$e.prototype;z.e.isEnabled=function{return window.navigator.cookieEnabled};z.e.set=function(a,b,c,d,f,g){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');z.ba(c)||(c=-1);f=f?";domain\x3d"+f:"";d=d?";path\x3d"+d:"";g=g?";secure":"";c=0>c?"":0==c?";expires\x3d"+(new Date(1970,1,1)).toUTCString:";expires\x3d"+(new Date(z.ra+1E3*c)).toUTCString;this.Ja.cookie=a+"\x3d"+b+f+d+c+g}; z.e.get=function(a,b){for(var c=a+"\x3d",d=(this.Ja.cookie||"").split(z.bf),f=0,g;g=d[f];f++){if(0==g.lastIndexOf(c,0))return g.substr(c.length);if(g==a)return""}return b};z.e.remove=function(a,b,c){var d=this.Ig(a);this.set(a,"",0,b,c);return d};z.e.Ph=function{return z.af(this).keys};z.e.md=function{return z.af(this).mz};z.e.Bd=z.l(10);z.e.mb=z.l(5);z.e.Ig=function(a){return z.ba(this.get(a))};z.e.Xi=z.l(22);z.e.clear=function{for(var a=z.af(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])}; z.bh=new z.$e(window.document);z.bh.aZ=3950;z.v(df,cf);df.prototype.get=function(a){a=z.bh.get(a);return z.ba(a)?a:null};df.prototype.set=function(a,b){z.bh.set(a,b,604800)};df.prototype.remove=function(a){z.bh.remove(a)};z.v(z.ef,cf);z.ef.prototype.mb=z.l(4);z.ef.prototype.clear=function{var a=Cd(this.Sd(!0)),b=this;z.x(a,function(a){b.remove(a)})};z.v(z.ff,z.ef);z.e=z.ff.prototype;z.e.PF=function{if(!this.Dc)return!1;try{return this.Dc.setItem("__sak","1"),this.Dc.removeItem("__sak"),!0}catch(a){return!1}};z.e.set=function(a,b){try{this.Dc.setItem(a,b)}catch(c){if(0==this.Dc.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};z.e.get=function(a){a=this.Dc.getItem(a);if(!z.s(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};z.e.remove=function(a){this.Dc.removeItem(a)}; z.e.mb=z.l(3);z.e.Sd=function(a){var b=0,c=this.Dc,d=new z.yd;d.next=function{if(b>=c.length)throw z.Ad;var d=c.key(b++);if(a)return d;d=c.getItem(d);if(!z.s(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};z.e.clear=function{this.Dc.clear};z.e.key=function(a){return this.Dc.key(a)};z.v(gf,z.ff);z.v(z.jf,z.ef);var mf={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},kf=null;z.e=z.jf.prototype;z.e.rd=null;z.e.Sy=null;z.e.PF=function{return!!this.rd};z.e.set=function(a,b){this.rd.setAttribute(lf(a),b);nf(this)};z.e.get=function(a){a=this.rd.getAttribute(lf(a));if(!z.s(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};z.e.remove=function(a){this.rd.removeAttribute(lf(a));nf(this)};z.e.mb=z.l(2); z.e.Sd=function(a){var b=0,c=z.of(this).attributes,d=new z.yd;d.next=function{if(b>=c.length)throw z.Ad;var d=c[b++];if(a)return(0,window.decodeURIComponent)(d.nodeName.replace(/\./g,"%")).substr(1);d=d.nodeValue;if(!z.s(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};z.e.clear=function{for(var a=z.of(this),b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);nf(this)};z.da(z.pf);z.pf.prototype.get=function(a){try{var b=z.id(this.Dc.get(a))}catch(c){return null}if(!b)return null;var d=b.value,f=(new Date).getTime;return(b=b.expiration||b.ttl)&&b<f?(this.remove(a),null):d};z.pf.prototype.set=function(a,b,c){var d=null;c&&(d=(new Date).getTime+1E3*c);b={value:b,expiration:d};try{this.Dc.set(a,z.kd(b))}catch(f){}};z.pf.prototype.remove=function(a){try{this.Dc.remove(a)}catch(b){}};var sf;z.v(qf,z.D);var uf=z.w.NI;z.sa("fyre.conv.service.RemoteAuthDelegate",z.wf);z.wf.prototype.wf=function(a,b){if(b){var c=z.E.k,d=z.rf,f=d.qd.get("fyre-authentication-creds"),g=z.tf(d);z.s(b)&&z.E.set(c.Rd,b);g&&f===b?a.success(g):(d.qd.remove(uf),a.failure)}};z.wf.prototype.loginByCookie=z.wf.prototype.wf;z.wf.prototype.login=function{};z.wf.prototype.login=z.wf.prototype.login;z.wf.prototype.logout=function(a){a.success};z.wf.prototype.logout=z.wf.prototype.logout; z.wf.prototype.viewProfile=function(a,b){var c=b.profileUrl;c&&z.vf(c,{target:"_blank"})};z.wf.prototype.viewProfile=z.wf.prototype.viewProfile;z.v(z.zf,z.Zd);z.da(z.zf);z.zf.prototype.logout=function(a,b){this.Cd.info("Requesting logout.");(new z.Pe({url:z.w.L.auth+"/auth/logout/ajax/?nocache\x3d"+(new Date).getTime,wa:a,ra:b})).send};z.zf.prototype.bl=z.l(38);z.sa("fyre.conv.service.LivefyreAuthDelegate",z.Bf);z.Bf.prototype.wf=function(a){var b=z.tf(z.rf);b?a.success(b):a.failure(b)};z.Bf.prototype.loginByCookie=z.Bf.prototype.wf;z.Bf.prototype.login=function(a){Cf(this,function(b){"profile"in b.data?a.success.apply(a,arguments):a.failure.apply(a,arguments)},a.failure)};z.Bf.prototype.login=z.Bf.prototype.login; z.Bf.prototype.RH=function(a,b){var c=this.d.Hc,d=100;if(z.Df){if(z.E.id){a;return}if(25<this.by){b;return}-1<this.by&&c.hn(a,b);d=7500;this.by++}else{var f;if(this.MG)try{f=!1===this.MG.closed}catch(g){if(z.F)f=!0;else throw g;}else f=!1;if(!f){(0,window.clearTimeout)(this.V_);c.hn(a,b);return}}this.ii=(0,window.setTimeout)((0,z.t)(this.RH,this,a,b),d)};z.Bf.prototype.logout=function(a){z.E.Qb?a.success:z.zf.C.logout((0,z.t)(a.success,a))};z.Bf.prototype.logout=z.Bf.prototype.logout; z.Bf.prototype.viewProfile=function(a,b){z.vf(b.profileUrl,{target:"_blank"})};z.Bf.prototype.viewProfile=z.Bf.prototype.viewProfile;z.Bf.prototype.editProfile=function{z.vf(z.w.L.eW+"/profile/edit/info/",{target:"_blank"})};z.Bf.prototype.editProfile=z.Bf.prototype.editProfile;z.v(z.Ef,z.Zd);z.da(z.Ef);z.Ef.prototype.lc=function(a,b,c,d,f){var g=new z.ce(z.w.L.vd+b);b={wa:c,ra:d,method:"GET"};z.oe(g,a.Qb?"lfgtoken":"lftoken",a.get(a.k.Rd));z.y(f||{},function(a,b){z.oe(g,b,a)});b.url=g.toString;return new z.Pe(b)};z.Ef.prototype.Ev=function(a,b,c,d){this.lc(a,z.w.uz+"public/social/friends/",c,d).send({nj:z.ga(b)?b:!1})};z.Ef.prototype.Tq=z.l(39);z.v(z.Ff,z.Qd.lm);z.v(z.Gf,z.D);z.Gf.prototype.M=function(a,b){this.J.M(a,b)};z.v(z.Jf,z.Gf);z.e=z.Jf.prototype;z.e.login=function(a,b,c){var d=(0,z.t)(function(a){a&&this.Zq(a);b=b||z.n;if(z.E.id)z.E.off(z.E.hc("id"),d),b;else z.E.on(z.E.hc("id"),d)},this);If("login",{base:function{throw"Login delegate function must be provided";},success:d,failure:function{(c||z.n);z.E.off(z.E.hc("id"),d)}}).call(this)}; z.e.wf=If("loginByCookie",{success:function(a){var b=Ve(a);b&&b.moderator&&a.articleId!=this.ha.articleId||a.siteId!=this.ha.siteId?this.hn:z.hb(b)||(0,z.Sf)((0,z.t)(this.gG,this,b,a))},failure:function{this.hn}}); z.e.hn=If("fetchAuthData",{base:function(a,b){z.Se.C;var c=z.jb(this.ha),d=z.E.k,f=z.E.get(d.Rd),d=z.E.get(d.fk);f&&z.s(f)&&(c.lftoken=f);d&&(c.bp_channel=d);c.trusted_auth_source=4==this.delegate.type;var f=z.Db((0,z.t)(this.Zq,this),a||z.n),d=b||z.n,g={},h=z.w.L.auth+z.w.Ye+"auth/";c.lftoken&&(g.lftoken=c.lftoken);c.bp_channel&&(g.bp_channel=c.bp_channel);c.collectionId?g.collectionId=c.collectionId:(g.siteId=c.siteId,g.articleId=ub(""+c.articleId));c.trusted_auth_source&&(g.trusted_auth_source= c.trusted_auth_source);(new z.Pe({url:h,timeout:1E4,wa:f,ra:d})).send(g)}});z.e.viewProfile=If("viewProfile");z.e.editProfile=If("editProfile");z.e.Zq=function(a){a=z.jb(a.data);var b=Ve(a),c=b[z.We.Pt]||z.w.OI;if(!z.hb(b)){a.siteId=this.ha.siteId;a.articleId=this.ha.articleId;var d=z.rf;d.qd.set(uf,a,c);(c=a.auth_token)&&d.qd.set("fyre-authentication-creds",c.value,c.ttl);this.gG(b,a)}}; z.e.gG=function(a,b){a.avatar=z.Xd(a.avatar);z.x((b.permissions||{}).authors||[],(0,z.t)(this.NR,this,a));z.E.set(a);this.M("user_logged_in")};z.e.NR=function(a,b){a[z.We.kk].push(b[z.Wd.qJ]);this.M("login_author_received",a)};z.e.logout=If("logout",{success:function{this.Ne}});z.e.Ne=function{var a=z.rf;this.kv=null;this.Ko.reset;z.E.clear({Ff:!0});z.E.set(z.E.vc);a.qd.remove(uf);a.qd.remove("fyre-authentication-creds");this.Vs&&(0,window.clearTimeout)(this.Vs);this.M("user_logged_out")}; z.e.bl=z.l(37);z.e.YE=z.l(40);z.e.XE=z.l(41);z.e.tR=function(a,b){a(b);var c=0,d=z.gb(b,"data","friends"),f=d.length;(0,window.setTimeout)((0,z.t)(function{if(c!==f){var a=d[c];this.Ko.get(a.id)||this.Ko.add(new z.Te(a));c++;(0,window.setTimeout)((0,z.t)(arguments.callee,this),0)}},this),0);z.E.set(z.nb(z.We.yg,z.gb(b,"data","reconnect")));z.E.M("changed:"+z.We.yg)};z.e.Ev=function{return this.Ko};z.v(z.Nf,Mf);z.Nf.prototype.reset=function{this.Xb[0]=1732584193;this.Xb[1]=4023233417;this.Xb[2]=2562383102;this.Xb[3]=271733878;this.Ws=this.Nm=0};z.Nf.prototype.update=function(a,b){z.ba(b)||(b=a.length);for(var c=b-this.Eg,d=this.VM,f=this.Nm,g=0;g<b;){if(0==f)for(g<=c;)Of(this,a,g),g+=this.Eg;if(z.s(a))for(g<b;){if(d[f++]=a.charCodeAt(g++),f==this.Eg){Of(this,d);f=0;break}}else for(g<b;)if(d[f++]=a[g++],f==this.Eg){Of(this,d);f=0;break}}this.Nm=f;this.Ws+=b};var Wf={VY:"identity/login",YY:"identity/logout"};z.e=Rf.prototype;z.e.An=function(a){var b=z.eg||void 0,c;c=ch;var d=z.E.k,f=z.rf,d=a.messageURL||z.E.get(d.fk),g=Qf(z.kd(a));c=(f=f.qd.get("fyre-backplane-cache"))&&d===f[c.Az]&&g===f[c.ph]?!0:!1;f=a.type;b.delegate=b.delegate||this;switch(f){case "identity/login":if(c){b.wf(!0);break}f=ch;d=z.E.k;c=z.rf;d=a.messageURL||z.E.get(d.fk);a=Qf(z.kd(a));a=z.nb(f.Az,d,f.ph,a);c.qd.set("fyre-backplane-cache",a);b.hn;break;case "identity/logout":b.logout}}; z.e.login=function{};z.e.logout=function{this.yC=(0,window.setTimeout)((0,z.t)(this.jo,this,0),100)};z.e.jo=function(a){var b=this.Uf.getChannelID,b=b&&this.jD!==b;(0,window.clearTimeout)(this.yC);b||50===a?this.Ne:(a=++a,this.yC=(0,window.setTimeout)((0,z.t)(this.jo,this,a),100))};z.e.Ne=function{var a=z.eg||void 0,b=z.rf;a.Ne;b.qd.remove("fyre-backplane-cache");this.jD=this.Uf.getChannelID};z.v(Xf,Rf);Xf.prototype.nd=function{Tf(this.Uf.getChannelID||null);Uf(this);Yf(this,(0,z.t)(this.zP,this))};Xf.prototype.zP=function(a){z.Ua(a)||(a=Vf(this,a))&&this.An(a.message)};Xf.prototype.Ne=function{Xf.b.Ne.call(this);Tf(this.Uf.getChannelID||null)};Xf.prototype.ND=function(a){return a.message.type};z.v(Zf,Rf);Zf.prototype.nd=function{Uf(this);var a=this.Uf.getCachedMessages;z.Ua(a)||(a=Vf(this,a))&&this.An(a)};Zf.prototype.An=function(a){Tf(a.messageURL);Zf.b.An.call(this,a)};Zf.prototype.Ne=function{Zf.b.Ne.call(this);Tf(null);Uf(this)};Zf.prototype.ND=function(a){return a.type};z.sa("fyre.conv.service.BackplaneAuthDelegate",$f);var ch={Az:"channel",ph:"checksum"},ag={oM:/1\.2\.[0-9]/,J_:/2\.0\.[0-9]/};$f.prototype.login=function{};$f.prototype.login=$f.prototype.login;$f.prototype.logout=function{this.Uf.logout};$f.prototype.logout=$f.prototype.logout;$f.prototype.wf=function(a,b){if(b){var c=z.tf(z.rf);c&&"profile"in c?a.success(c):a.failure(c)}};$f.prototype.loginByCookie=$f.prototype.wf;var dh,eh,fh,gh,hh,ih,jh;jh=ih=hh=gh=fh=eh=dh=!1;var kh=z.Hb;kh&&(-1!=kh.indexOf("Firefox")?dh=!0:-1!=kh.indexOf("Camino")?eh=!0:-1!=kh.indexOf("iPhone")||-1!=kh.indexOf("iPod")?fh=!0:-1!=kh.indexOf("iPad")?gh=!0:-1!=kh.indexOf("Chrome")?ih=!0:-1!=kh.indexOf("Android")?hh=!0:-1!=kh.indexOf("Safari")&&(jh=!0));z.lh=dh;z.mh=eh;z.nh=fh;z.mg=gh;z.oh=hh;z.ph=ih;z.Df=jh;var qh;qh=z.Hb;z.rh=(z.cg=wg||z.oh||-1<qh.indexOf("IEMobile"))&&!z.mg;z.v(bg,z.wf);z.sa("fyre.conv.service.SPAuthDelegate",bg);var fg={wp:"auth_login_complete",EK:"auth_logout_complete",At:"auth_login_incomplete"};bg.prototype.login=function(a){function b{a.failure;z.u.fyre.sp.off(fg.At,b);z.u.fyre.sp.off(fg.wp,c)}function c{a.success;z.u.fyre.sp.off(fg.wp,c);z.u.fyre.sp.off(fg.At,b)}gg(this);this.JD.signIn;z.u.fyre.sp.on(fg.wp,c);z.u.fyre.sp.on(fg.At,b)};bg.prototype.login=bg.prototype.login;bg.prototype.logout=function{gg(this);this.JD.signOut}; bg.prototype.logout=bg.prototype.logout;bg.prototype.viewProfile=function(a,b){var c;gg(this);if(b.isCuratedAuthor){if(c=b.profileUrl)this.WF?window.location.href=c:z.vf(b.profileUrl,{target:"_blank"})}else b.id!=z.E.get(z.E.k.X)&&(c=b.id.split("@")[0]),this.profiles.viewProfile(c)};bg.prototype.viewProfile=bg.prototype.viewProfile;bg.prototype.editProfile=function{gg(this);this.profiles.editProfile};bg.prototype.editProfile=bg.prototype.editProfile;var sh;z.sa("fyre.conv.LivefyreAuthDelegate",z.Bf);z.Bf.prototype.type=2;z.sa("fyre.conv.SPAuthDelegate",bg);bg.prototype.type=4;z.sa("fyre.conv.BackplaneAuthDelegate",$f);$f.prototype.type=1;z.sa("fyre.conv.RemoteAuthDelegate",z.wf);z.wf.prototype.type=3;z.Sf=function{function a(a){z.kc(b,a,null,void 0)}var b=new z.ec;a.M=function{b.ia};a.dg=function{return b.dg};return a};z.sa("fyre.conv.ready",z.Sf);z.Sf.trigger=z.Sf.M;z.Sf.hasFired=z.Sf.dg;sh=z.gb(z.u,"fyre","conv","user"); z.E=sh&&!z.hb(sh)?sh:new z.Ue;z.sa("fyre.conv.user",z.E);z.E.on=z.E.on;z.E.get=z.E.get;z.E.off=z.E.off;z.sa("fyre.conv.login",yf);z.sa("fyre.conv.logout",function{(z.eg||void 0).Ne});z.sa("fyre.conv.getDelegate",function{return(z.eg||void 0).delegate});ig.NF=!1;z.sa("fyre.conv.initializeGlobalServices",ig);zb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_\x3d";z.t=pa;z.sa("fyre.conv.load",jg);jg.US=function(a,b,c){return jg.hG(a,b,c)};z.sa("fyre.conv.load.makeArticleId",jg.US);jg.hG=function(a,b,c){var d,f=new z.le;a||(a=jg.eE);a||(a=window.location.href);d=new z.ce(a);z.s(b)&&(b=[b]);b&&z.x(b,function(a){f.add(a,d.Gd.get(a))});z.ie(d,f);c||je(d,"");return d.toString};z.sa("fyre.conv.load.makeCollectionUrl",jg.hG); jg.eE=function{for(var a=window.document.getElementsByTagName("link"),b=0,c=a.length,d;b<c;b++)if(d=a[b],"canonical"==d.rel)return d.href};z.sa("fyre.conv.load.getCanonicalLinkRel",jg.eE);z.sa("fyre.conv.Loader",kg);z.e=kg.prototype;z.e.$O=function(a){var b;z.s(a)?a={appName:a,ha:{}}:(a={appName:a.app||z.lg.ik,ha:z.jb(a)},delete a.ha.app);b=z.lg[a.appName];if(!b)throw"Invalid app "+a.appName;a.wT=b;this.rG.push(a.appName);return a}; z.e.Pr=function{(0,window.clearTimeout)(this.zi);z.x(this.rG,function(a){z.uc(z.w.L.kb+"/javascripts/livefyre_mod_"+a+".js")})};z.e.xv=function(a){var b=z.jb(this.ha);z.kb(b,a.ha);b.strings=z.jb(this.ha.strings);z.kb(b.strings,a.ha.strings||{});return b}; z.e.JF=function(a,b){var c=this.xv(this.Sp[a]);(z.hb(this.Gm)||0==a)&&ig(c);c=new b(this.ha,c);this.Gm[a]=c;if(!(z.db(this.Gm)<this.Sp.length)){var d=[];z.y(this.Gm,function(a,b){var c=this.Gm[b.toString].uv;d.push(c);-1<window.location.hash.indexOf("fyre-debug")&&a.debug},this);z.u.FyreLoader=this;z.u.FyreLoader.apps=d;this.ia.apply(z.u,d);z.Sf.dg||z.Sf.M}};z.e.KR=function{ng(this,z.w.Si)};z.ha(z.u.FYRE_LOADED_CB)&&(0,window.setTimeout)(z.u.FYRE_LOADED_CB,80);})(fyre.conv);fyre.conv.config.set('assetVersion', 1428017018);