/*1328509928,169775556*/

if (window.CavalryLogger) { CavalryLogger.start_js(["fbhRl"]); }

window.__DEV__=window.__DEV__||0;if(!window.skipDomainLower&&document.domain.toLowerCase().match(/(^|\.)facebook\..*/))document.domain=window.location.hostname.replace(/^.*(facebook\..*)$/i,'$1');function bagofholding(){}function bagof(a){return function(){return a;};}if(!Date.now)Date.now=function now(){return new Date().getTime();};if(!Array.isArray)Array.isArray=function(a){return Object.prototype.toString.call(a)=='[object Array]';};Env=window.Env||{};Env.start=Env.start||Date.now();document.documentElement.className=document.documentElement.className.replace('no_js','');
window.require||(function(){var a={},b={},c=0,d=this,e=1,f=2,g='special',h='exports',i='dependencies',j='module',k='waiting',l='factory',m=undefined,n='define',o='global',p='require',q='requireLazy',r='requireDynamic',s='context';function t(ea){var fa=a[ea],ga,ha;if(fa[k]&&fa[g]&f)w();if(!fa[h]){var ia=fa[h]={},ja=fa[l];if(Object.prototype.toString.call(ja)==='[object Function]'){var ka=[],la=fa[i],ma=la.length;if(fa[g]&f)ma=Math.min(ma,ja.length);for(ha=0;ha<ma;ha++){ga=la[ha];ka.push(ga===j?fa:(ga===h?ia:t(ga)));}var na=ja.apply(fa[s]||d,ka);if(na)fa[h]=na;}else fa[h]=ja;}return fa[h];}function u(ea,fa,ga,ha,ia){if(fa===m){fa=[];ga=ea;ea=y();}else if(ga===m){ga=fa;fa=ea;ea=y();}if(a[ea])return;var ja={id:ea};ja[l]=ga;ja[i]=fa;ja[s]=ia;ja[g]=ha;a[ea]=ja;z(ea);}function v(ea,fa,ga){u(ea,fa,m,e,ga);}function w(){var ea={},fa;for(fa in b)if(a[fa]&&!ea[fa]&&a[fa][g]&f)x({},fa,ea);}function x(ea,fa,ga){ga[fa]=1;var ha=b[fa],ia;if(!ha)return;ea[fa]=1;for(ia in ha){if(!a[ia][g]&f)continue;if(ea[ia]){delete ha[ia];a[ia][k]--;if(!a[ia][k])aa(ia);}else x(ea,ia,ga);}ea[fa]=0;}function y(){return '__mod__'+c++;}function z(ea){var fa=a[ea],ga=0;for(var ha=0;ha<fa[i].length;ha++){var ia=fa[i][ha];if(!a[ia]||a[ia][k]){b[ia]||(b[ia]={});b[ia][ea]=1;ga++;}}fa[k]=ga;if(!ga)aa(ea);}function aa(ea){var fa=a[ea];if(fa[g]&e)t(ea);var ga=b[ea];if(ga){delete b[ea];for(var ha in ga)if(!--a[ha][k])aa(ha);}}function ba(ea,fa){a[ea]={id:ea};a[ea][h]=fa;}ba(j,0);ba(h,0);ba(n,u);ba(o,d);ba(p,t);ba(r,t);ba(q,v);u.amd={};d[n]=u;d[p]=t;d[r]=t;d[q]=v;t.ensure=v;var ca=false,da=function(ea,fa,ga,ha){u(ea,fa,ga,ha||f);if(a[ea][k]&&!ca)ca=setTimeout(function(){w();ca=false;},9);};d.__d=function(ea,fa,ga,ha){fa=[o,p,q,j,h].concat(fa);da(ea,fa,ga,ha);};d.__e=function(ea,fa,ga,ha){fa=[o,p,r,q,j,h].concat(fa);da(ea,fa,ga,ha);};})();
__e("hasArrayNature",[],function(a,b,c,d,e,f){function g(h){return (!!h&&(typeof h=='object'||typeof h=='function')&&('length' in h)&&!('setInterval' in h)&&(Object.prototype.toString.call(h)==="[object Array]"||('callee' in h)||('item' in h)));}e.exports=g;});
__e("ArrayUtils",["hasArrayNature"],function(a,b,c,d,e,f){var g=b("hasArrayNature"),h={createFrom:function(i){if(!g(i))return [i];if(i.item){var j=i.length,k=new Array(j);while(j--)k[j]=i[j];return k;}return Array.prototype.slice.call(i);}};e.exports=h;});
__e("copyProperties",[],function(a,b,c,d,e,f){function g(h,i){h=h||{};i=i||{};for(var j in i)h[j]=i[j];if(i.hasOwnProperty&&i.hasOwnProperty('toString')&&(typeof i.toString!='undefined')&&(h.toString!==i.toString))h.toString=i.toString;return h;}e.exports=g;});
__e("array-extensions",["copyProperties"],function(a,b,c,d,e,f){var g=b('copyProperties');function h(i){return function(){if(this===a)throw new TypeError();return i.apply(this,arguments);};}g(Array.prototype,{map:function(i,j){if(this===a||typeof i!='function')throw new TypeError();var k,l=this.length,m=new Array(l);for(k=0;k<l;++k)if(k in this)m[k]=i.call(j,this[k],k,this);return m;},forEach:function(i,j){this.map(i,j);},filter:h(function(i,j){if(typeof i!='function')throw new TypeError();var k,l,m=this.length,n=[];for(k=0;k<m;++k)if(k in this){l=this[k];if(i.call(j,l,k,this))n.push(l);}return n;}),every:h(function(i,j){if(typeof i!=='function')throw new TypeError();var k=new Object(this),l=k.length;for(var m=0;m<l;m++)if(m in k)if(!i.call(j,k[m],m,k))return false;return true;}),some:h(function(i,j){if(typeof i!=='function')throw new TypeError();var k=new Object(this),l=k.length;for(var m=0;m<l;m++)if(m in k)if(i.call(j,k[m],m,k))return true;return false;}),reduce:null,reduceRight:null,sort:h(Array.prototype.sort),reverse:h(Array.prototype.reverse),concat:h(Array.prototype.concat),slice:h(Array.prototype.slice),indexOf:h(Array.prototype.indexOf||function(i,j){var k=this.length;j|=0;if(j<0)j+=k;for(;j<k;j++)if(j in this&&this[j]===i)return j;return -1;}),contains:function(i){return this.indexOf(i)!=-1;},remove:function(i){var j=this.indexOf(i);if(j!=-1)this.splice(j,1);}});Array.prototype.each=Array.prototype.forEach;},3);
__e("Env",["copyProperties"],function(a,b,c,d,e,f){var g=b("copyProperties"),h={start:Date.now()};if(a.Env){g(h,a.Env);a.Env=undefined;}e.exports=h;});
__e("Util",[],function(a,b,c,d,e,f){if(typeof console=='undefined')a.console={log:bagofholding,info:bagofholding,warn:bagofholding,debug:bagofholding,dir:bagofholding,error:bagofholding};e.exports=a.console;});
__e("ErrorUtils",["Env","Util"],function(a,b,c,d,e,f){var g=b("Env"),h=b("Util"),i=[],j=[],k=window.chrome&&'type' in new Error();function l(q){if(!q){return {};}else if(q._originalError)return q;var r={line:q.lineNumber||q.line,message:q.message,name:q.name,script:q.fileName||q.sourceURL,stack:q.stackTrace||q.stack};r._originalError=q;if(k&&/(\w{3,5}:\/\/[^:]+):(\d+)/.test(q.stack)){r.script=RegExp.$1;r.line=parseInt(RegExp.$2,10);}for(var s in r)(r[s]==null&&delete r[s]);return r;}function m(q,r){q=l(q);!r;if(j.length<100)j.push(q);for(var s=0;s<i.length;s++)try{i[s](q);}catch(t){}}function n(q,r,s,t){if(g.nocatch||(/nocatch/).test(location.search))return q.apply(r,s||[]);try{return q.apply(r,s||[]);}catch(u){var v=l(u);if(t)t(v);m(v);}}function o(q,r,s){m({message:q,script:r,line:s},true);}window.onerror=o;function p(q,r){i.push(q);if(r)for(var s=0;s<j.length;s++)q(j[s]);}e.exports={onerror:o,history:j,reportError:m,normalizeError:l,applyWithGuard:n,addListener:function(q){i.push(q);}};});
__e("Arbiter",["array-extensions","ArrayUtils","ErrorUtils","Util","copyProperties","hasArrayNature"],function(a,b,c,d,e,f){b("array-extensions");var g=b("ArrayUtils"),h=b("ErrorUtils"),i=b("Util"),j=b("copyProperties"),k=b("hasArrayNature");if(!window.async_callback)window.async_callback=function(m,n){return m;};function l(){j(this,{_listeners:[],_events:{},_callbacks:{},_last_id:1,_listen:{},_index:{}});j(this,l);}j(l,{SUBSCRIBE_NEW:'new',SUBSCRIBE_ALL:'all',BEHAVIOR_EVENT:'event',BEHAVIOR_PERSISTENT:'persistent',BEHAVIOR_STATE:'state',LIVEMESSAGE:'livemessage',BOOTLOAD:'bootload',FUNCTION_EXTENSION:'function_ext',subscribe:function(m,n,o){m=g.createFrom(m);var p=m.some(function(y){return !y||typeof(y)!='string';});if(p)return null;o=o||l.SUBSCRIBE_ALL;var q=l._getInstance(this);q._listeners.push({callback:n,types:m});var r=q._listeners.length-1;for(var s=0;s<m.length;s++){var t=m[s];if(!q._index[t])q._index[t]=[];q._index[t].push(r);if(o==l.SUBSCRIBE_ALL)if(t in q._events)for(var u=0;u<q._events[t].length;u++){var v=q._events[t][u],w=h.applyWithGuard(n,null,[t,v]);if(w===false){q._events[t].splice(u,1);u--;}}}var x={subscriberID:r};return x;},unsubscribe:function(m){var n=l._getInstance(this),o=n._listeners[m.subscriberID];if(!o)return;for(var p=0;p<o.types.length;p++){var q=o.types[p];if(n._index[q])for(var r=0;r<n._index[q].length;r++)if(n._index[q][r]==m.subscriberID){n._index[q].splice(r,1);if(n._index[q].length==0)delete n._index[q];break;}}delete n._listeners[m.subscriberID];},inform:function(m,n,o){var p=k(m);m=g.createFrom(m);var q=l._getInstance(this),r={};o=o||l.BEHAVIOR_EVENT;for(var s=0;s<m.length;s++){var t=m[s],u=null;if(o==l.BEHAVIOR_PERSISTENT){u=q._events.length;if(!(t in q._events))q._events[t]=[];q._events[t].push(n);q._events[t]._stateful=false;}else if(o==l.BEHAVIOR_STATE){u=0;q._events[t]=[n];q._events[t]._stateful=true;}else if(t in q._events)q._events[t]._stateful=false;window.ArbiterMonitor&&ArbiterMonitor.record('event',t,n,q);var v;if(q._index[t]){var w=g.createFrom(q._index[t]);for(var x=0;x<w.length;x++){var y=q._listeners[w[x]];if(y){v=h.applyWithGuard(y.callback,null,[t,n]);if(v===false){if(u!==null)q._events[t].splice(u,1);break;}}}}q._updateCallbacks(t,n);window.ArbiterMonitor&&ArbiterMonitor.record('done',t,n,q);r[t]=v;}return p?r:r[m[0]];},query:function(m){var n=l._getInstance(this);if(!(m in n._events))return null;if(n._events[m].length)return n._events[m][0];return null;},_instance:null,_getInstance:function(m){if(m instanceof l)return m;if(!l._instance)l._instance=new l();return l._instance;},registerCallback:function(m,n){var o,p=0,q=l._getInstance(this),r=false;if(typeof m=='function'){o=q._last_id;q._last_id++;r=true;}else{if(!q._callbacks[m])return null;o=m;}if(k(n)){var s={};for(var t=0;t<n.length;t++)s[n[t]]=1;n=s;}for(var u in n){try{if(q.query(u))continue;}catch(v){}p+=n[u];if(q._listen[u]===undefined)q._listen[u]={};q._listen[u][o]=(q._listen[u][o]||0)+n[u];}if(p==0&&r){h.applyWithGuard(m);return null;}if(!r){q._callbacks[o].depnum+=p;}else q._callbacks[o]={callback:async_callback(m,'arbiter'),depnum:p};return o;},_updateCallbacks:function(m,n){if(n===null||!this._listen[m])return;for(var o in this._listen[m]){this._listen[m][o]--;if(this._listen[m][o]<=0)delete this._listen[m][o];this._callbacks[o].depnum--;if(this._callbacks[o].depnum<=0){var p=this._callbacks[o].callback;delete this._callbacks[o];h.applyWithGuard(p);}}}});e.exports=l;});
__e("mixins",["Arbiter"],function(a,b,c,d,e,f){var g=b('Arbiter'),h={Arbiter:{_getArbiterInstance:function(){return this._arbiter||(this._arbiter=new g());},inform:function(i,j,k){return this._getArbiterInstance().inform(i,j,k);},subscribe:function(i,j,k){return this._getArbiterInstance().subscribe(i,j,k);},unsubscribe:function(i){this._getArbiterInstance().unsubscribe(i);}}};a.Mixins=e.exports=h;},3);
__e("bind",[],function(a,b,c,d,e,f){function g(h,i){var j=Array.prototype.slice.call(arguments,2);function k(){var l=h||(this==window?false:this),m=j.concat(Array.prototype.slice.call(arguments));if(typeof(i)=="string"){if(l[i])return l[i].apply(l,m);}else return i.apply(l,m);}k.toString=function(){if(typeof(i)=="string")return "bound lazily: "+h[i];return "bound: "+i;};return k;}e.exports=g;a.bind=g;},3);
__e("function-extensions",["ArrayUtils","mixins","bind","copyProperties"],function(a,b,c,d,e,f){var g=b('ArrayUtils'),h=b('mixins'),i=b('bind'),j=b('copyProperties');Function.mixin=function(){for(var k=1,l=arguments.length;k<l;++k)j(arguments[0],h[arguments[k]]||arguments[k]);};Function.prototype.bind=function(k){var l=[k,this].concat(Array.prototype.slice.call(arguments,1));return i.apply(null,l);};Function.prototype.curry=Function.prototype.bind.bind(null,null);Function.prototype.shield=function(k){if(typeof this!='function')throw new TypeException();var l=this.bind.apply(this,g.createFrom(arguments));return function(){return l();};};Function.prototype.defer=function(k,l){if(typeof this!='function')throw new TypeError();k=k||0;return setTimeout(this,k,l);};},3);
__e("isEmpty",[],function(a,b,c,d,e,f){function g(h){if(h instanceof Array){return h.length===0;}else if(h instanceof Object){for(var i in h)return false;return true;}else return !h;}e.exports=g;});
__e("CSSLoader",["function-extensions","Util","isEmpty"],function(a,b,c,d,e,f){b("function-extensions");var g=b("Util"),h=b("isEmpty"),i=20,j=5000,k,l,m={},n=[],o,p={};function q(v){var w=Array.prototype.slice(arguments,1);for(var x=0;x<v.length;x++)v[x].apply(null,w);}function r(v){if(l)return;l=true;var w=document.createElement('link');w.onload=function(){k=true;w.parentNode.removeChild(w);};w.rel='stylesheet';w.href='data:text/css;base64,';v.appendChild(w);}function s(){var v,w=[],x=[];if(Date.now()>=o){for(v in p){x.push(p[v].signal);w.push(p[v].error);}p={};}else for(v in p){var y=p[v].signal,z=window.getComputedStyle?getComputedStyle(y,null):y.currentStyle;if(z&&parseInt(z.height,10)>1){w.push(p[v].load);x.push(y);delete p[v];}}for(var aa=0;aa<x.length;aa++)x[aa].parentNode.removeChild(x[aa]);if(!h(w)){q(w);o=Date.now()+j;}return h(p);}function t(v,w,x,y){var z=document.createElement('meta');z.id='bootloader_'+v.replace(/[^a-z0-9]/ig,'_');w.appendChild(z);var aa=!h(p);o=Date.now()+j;p[v]={signal:z,load:x,error:y};if(!aa)var ba=setInterval(function _pollCSS(){if(s())clearInterval(ba);},i,false);}var u={loadStyleSheet:function(v,w,x,y,z){if(m[v])throw new Error('CSS component '+v+' has already been requested.');if(document.createStyleSheet){var aa;for(var ba=0;ba<n.length;ba++)if(n[ba].imports.length<31){aa=ba;break;}if(aa===undefined){n.push(document.createStyleSheet());aa=n.length-1;}n[aa].addImport(w);m[v]={styleSheet:n[aa],uri:w};t(v,x,y,z);return;}var ca=document.createElement('link');ca.rel='stylesheet';ca.type='text/css';ca.href=w;m[v]={link:ca};if(k){ca.onload=function(){ca.onload=ca.onerror=null;y();};ca.onerror=function(){ca.onload=ca.onerror=null;z();};}else{t(v,x,y,z);if(k===undefined)r(x);}x.appendChild(ca);},registerLoadedStyleSheet:function(v,w){if(m[v])throw new Error('CSS component '+v+' has already been requested.');m[v]={link:w};},unloadStyleSheet:function(v){if(!v in m)return;var w=m[v],x=w.link;if(x){x.onload=x.onerror=null;x.parentNode.removeChild(x);}else{var y=w.styleSheet;for(var z=0;z<y.imports.length;z++)if(y.imports[z].href==w.uri){y.removeImport(z);break;}}delete p[v];delete m[v];}};e.exports=u;});
__e("bootloader",["ArrayUtils","Arbiter","CSSLoader","Util","isEmpty"],function(a,b,c,d,e,f){var g=b('ArrayUtils'),h=b('Arbiter'),i=b('CSSLoader'),j=b('Util'),k=b('isEmpty'),l={},m={},n={},o=null,p={},q={},r=false,s=[];function t(x,y,z,aa){var ba=w.done.curry([z],x=='css');if(x=='js'){var ca=document.createElement('script');ca.src=y;ca.type='text/javascript';ca.async=true;ca.onload=ca.onerror=ba;ca.onreadystatechange=function(){if(this.readyState in {loaded:1,complete:1})ba();};aa.appendChild(ca);}else if(x=='css')i.loadStyleSheet(z,y,aa,ba,function(){ba();});}function u(x){if(!p[x])return;if(p[x].type=='css'){i.unloadStyleSheet(x);delete l[x];h.inform(h.BOOTLOAD+'/'+x,null,h.BEHAVIOR_STATE);}}function v(x,y){if(!r){s.push([x,y]);return;}x=g.createFrom(x);var z=[];for(var aa=0;aa<x.length;++aa){if(!x[aa])continue;var ba=n[x[aa]];if(!!ba)for(var ca=0;ca<ba.length;++ca)z.push(ba[ca]);}w.loadResources(z,y);}var w={configurePage:function(x){var y={},z=w.resolveResources(x),aa;for(aa=0;aa<z.length;aa++){y[z[aa].src]=z[aa];w.requested(z[aa].name);}var ba=document.getElementsByTagName('link');for(aa=0;aa<ba.length;++aa){if(ba[aa].rel!='stylesheet')continue;for(var ca in y)if(ba[aa].href.indexOf(ca)!==-1){var da=y[ca].name;if(y[ca].permanent)m[da]=true;delete y[ca];i.registerLoadedStyleSheet(da,ba[aa]);w.done([da],true);break;}}},loadComponents:function(x,y){x=g.createFrom(x);var z=[];for(var aa=0;aa<x.length;aa++){var ba=n[x[aa]];if(ba&&!ba.module)continue;var ca='legacy:'+x[aa];if(n[ca]){x[aa]=ca;}else if(ba&&ba.module)z.push(x[aa]);}z.length;v(x,y);},loadResources:function(x,y,z,aa){var ba;x=w.resolveResources(g.createFrom(x));if(z){var ca={};for(ba=0;ba<x.length;++ba)ca[x[ba].name]=true;for(var da in l)if(!(da in m)&&!(da in ca)&&!(da in q))u(da);q={};}var ea=[],fa=[];for(ba=0;ba<x.length;++ba){var ga=x[ba];if(ga.permanent)m[ga.name]=true;var ha=h.BOOTLOAD+'/'+ga.name;if(h.query(ha)!==null)continue;if(!ga.nonblocking)fa.push(ha);if(!l[ga.name]){w.requested(ga.name);ea.push(ga);window.CavalryLogger&&CavalryLogger.getInstance().measureResources(ga,aa);}}if(y)y=h.registerCallback(y,fa);var ia=document.documentMode||+(/MSIE.(\d+)/.exec(navigator.userAgent)||[])[1],ja=w.getHardpoint(),ka=ia?ja:document.createDocumentFragment();for(ba=0;ba<ea.length;++ba)t(ea[ba].type,ea[ba].src,ea[ba].name,ka);if(ja!==ka)ja.appendChild(ka);return y;},requestResource:function(x,y,z){var aa=w.getHardpoint();t(x,y,z,aa);},done:function(x,y){w.requested(x);if(!y){var z={sender:this};h.inform(h.BOOTLOAD,z,h.BEHAVIOR_EVENT);}for(var aa=0;aa<x.length;++aa){var ba=x[aa];h.inform(h.BOOTLOAD+'/'+ba,true,h.BEHAVIOR_STATE);}},requested:function(x){x=g.createFrom(x);for(var y=0;y<x.length;++y)l[x[y]]=true;},enableBootload:function(x){for(var y in x)if(!n[y])n[y]=x[y];if(!r){r=true;for(var z=0;z<s.length;z++)w.loadComponents.apply(null,s[z]);s=[];}},getHardpoint:function(){if(!o){var x=document.getElementsByTagName('head');o=x.length&&x[0]||document.body;}return o;},setResourceMap:function(x){if(!x)return;for(var y in x){if(!x[y].name)x[y].name=y;p[y]=x[y];}},resolveResources:function(x){if(!x)return [];var y=[];for(var z=0;z<x.length;++z)if(typeof x[z]=='string'){if(x[z] in p)y.push(p[x[z]]);}else y.push(x[z]);return y;},loadEarlyResources:function(x){var y;w.setResourceMap(x);var z=[];for(y in x)z.push(p[y]);w.loadResources(z);for(y in x){var aa=p[y];if(!aa.permanent)q[aa.name]=aa;}},isDisplayJS:function(x){if(typeof x=='string')x=p[x];return x.displayjs;}};a.Bootloader=e.exports=w;},3);
__e("onload",["Arbiter","Util","copyProperties"],function(a,b,c,d,e,f){var g=b('Arbiter'),h=b('Util'),i=g.BEHAVIOR_STATE,j=function(y){window.CavalryLogger&&CavalryLogger.getInstance().setTimeStamp(y);},k={ONLOAD:'onload/onload',ONLOAD_CALLBACK:'onload/onload_callback',ONLOAD_DOMCONTENT:'onload/dom_content_ready',ONLOAD_DOMCONTENT_CALLBACK:'onload/domcontent_callback',ONBEFOREUNLOAD:'onload/beforeunload',ONUNLOAD:'onload/unload'};function l(){return !window.loading_page_chrome;}function m(y){if(window.loaded&&typeof _runHook!='undefined'){_runHook(y,'onlateloadhooks');}else r('onloadhooks',y);}function n(y){if(window.afterloaded&&typeof _runHook!='undefined'){setTimeout(function(){_runHook(y,'onlateafterloadhooks');},0);}else r('onafterloadhooks',y);}function o(y,z){if(z===undefined)z=l();z?r('onbeforeleavehooks',y):r('onbeforeunloadhooks',y);}function p(y){if(!window.onunload)window.onunload=function(){g.inform(k.ONUNLOAD,true,i);};r('onunloadhooks',y);}function q(y){r('onleavehooks',y);}function r(y,z){window[y]=(window[y]||[]).concat(z);}function s(y){window[y]=[];}function t(){g.inform(k.ONLOAD_DOMCONTENT,true,i);}function u(){var y=document,z=window;if(y.addEventListener){var aa=/AppleWebKit.(\d+)/.exec(navigator.userAgent);if(aa&&aa[1]<525){var ba=setInterval(function(){if(/loaded|complete/.test(y.readyState)){t();clearInterval(ba);}},10);}else y.addEventListener("DOMContentLoaded",t,true);}else{var ca='javascript:void(0)';if(z.location.protocol=='https:')ca='//:';y.write('<script onreadystatechange="if (this.readyState==\'complete\') {'+'this.parentNode.removeChild(this);_domcontentready();}" '+'defer="defer" src="'+ca+'"><\/script\>');}var da=z.onload;z.onload=function(){j('t_layout');da&&da();g.inform(k.ONLOAD,true,i);};z.onbeforeunload=function(){var ea={};g.inform(k.ONBEFOREUNLOAD,ea,i);if(!ea.warn)g.inform('onload/exit',true);return ea.warn;};}var v=g.registerCallback(function(){j('t_onload');g.inform(k.ONLOAD_CALLBACK,true,i);},[k.ONLOAD]),w=g.registerCallback(function(){j('t_domcontent');g.inform(k.ONLOAD_DOMCONTENT_CALLBACK,true,i);},[k.ONLOAD_DOMCONTENT]);u();e.exports={Event:k,runOnload:m,runAfterload:n,runOnleave:q,runBeforeUnload:o,runOnUnload:p};var x=b('copyProperties');x(a,{OnloadEvent:k,onloadRegister_DEPRECATED:m,onloadRegister:function(){return m.apply(this,arguments);},onafterloadRegister_DEPRECATED:n,onafterloadRegister:function(){return n.apply(this,arguments);},onleaveRegister:q,onbeforeunloadRegister:o,onunloadRegister:p,domcontent_callback:w,onload_callback:v,_domcontentready:t,removeHook:s,_addHook:r});},3);
__e("EagleEye",["Arbiter","bootloader","Env","onload","Util"],function(a,b,c,d,e,f){var g=b('Arbiter'),h=b('bootloader'),i=b('Env'),j=b('onload'),k=b('Util'),l=i.eagleEyeConfig||{},m='_e_',n=(window.name||'').toString();if(n.length==7&&n.substr(0,3)==m){n=n.substr(3);}else{n=l.seed;if(window==window.top)window.name=m+n;}var o=(window.location.protocol=='https:'&&document.cookie.match(/\bcsm=1/))?'; secure':'',p=m+n+'_',q=new Date(Date.now()+604800000).toGMTString(),r=window.location.hostname.replace(/^.*(facebook\..*)$/i,'$1'),s='; expires='+q+';path=/; domain='+r+o,t=0,u,v=l.sessionStorage&&a.sessionStorage,w=document.cookie.length,x=false,y=Date.now();function z(ea){var fa=2166136261;for(var ga=0,ha=ea.length;ga<ha;++ga)fa=(fa^ea.charCodeAt(ga))*16777619;fa+=fa<<13;fa^=fa>>7;fa+=fa<<3;fa^=fa>>17;fa+=fa<<5;return (fa|0)+2147483648;}function aa(ea){return p+(t++)+'='+encodeURIComponent(ea)+s;}function ba(){var ea=[],fa=false,ga=0,ha=0;this.isEmpty=function(){return !ea.length;};this.enqueue=function(ia,ja){if(ja){ea.unshift(ia);}else ea.push(ia);};this.dequeue=function(){ea.shift();};this.peek=function(){return ea[0];};this.clear=function(ia){w=Math.min(w,document.cookie.length);if(!x&&(new Date()-y>60000))x=true;var ja=!ia&&(document.cookie.search(m)>=0),ka=!!i.cookie_header_limit,la=i.cookie_count_limit||19,ma=i.cookie_header_limit||3950,na=la-5,oa=ma-1000;while(!this.isEmpty()){var pa=aa(this.peek());if(ka&&(pa.length>ma||(x&&pa.length+w>ma))){this.dequeue();continue;}if((ja||ka)&&((document.cookie.length+pa.length>ma)||(document.cookie.split(';').length>la)))break;document.cookie=pa;ja=true;this.dequeue();}var qa=Date.now();if(ia||!fa&&ja&&((ha>0)&&(Math.min(10*Math.pow(2,ha-1),60000)+ga<qa))&&g.query(j.Event.ONLOAD)&&(!this.isEmpty()||(document.cookie.length>oa)||(document.cookie.split(';').length>na))){var ra=new Image(),sa=this,ta=i.tracking_domain||'';fa=true;ra.onload=function _EagleEye_logged(){fa=false;ha=0;sa.clear();};ra.onerror=ra.onabort=function _EagleEye_error(){fa=false;ga=Date.now();ha++;};var ua=i.fb_isb?'&fb_isb='+i.fb_isb:'',va='&__user='+i.user;ra.src=ta+'/ajax/nectar.php?asyncSignal='+(Math.floor(Math.random()*10000)+1)+ua+va+'&'+(!ia?'':'s=')+qa;}};}u=new ba();if(v){var ca=function(){var ea=0,fa=ea;function ga(){var ja=sessionStorage.getItem('_e_ids');if(ja){var ka=(ja+'').split(';');if(ka.length==2){ea=parseInt(ka[0],10);fa=parseInt(ka[1],10);}}}function ha(){var ja=ea+';'+fa;sessionStorage.setItem('_e_ids',ja);}function ia(ja){return '_e_'+((ja!==undefined)?ja:ea++);}this.isEmpty=function(){return fa===ea;};this.enqueue=function(ja,ka){var la=ka?ia(--fa):ia();sessionStorage.setItem(la,ja);ha();};this.dequeue=function(){this.isEmpty();sessionStorage.removeItem(ia(fa));fa++;ha();};this.peek=function(){var ja=sessionStorage.getItem(ia(fa));return ja?(ja+''):ja;};this.clear=u.clear;ga();};u=new ca();}var da={log:function(ea,fa,ga){if(i.no_cookies)return;var ha=[n,Date.now(),ea].concat(fa);ha.push(ha.length);function ia(){var ja=JSON.stringify(ha);try{u.enqueue(ja,!!ga);u.clear(!!ga);}catch(ka){if(v&&(ka.code===1000)){u=new ba();v=false;ia();}}}if(a.JSON){ia();}else h.loadComponents('json',ia);},createLogger:function(ea,fa){fa=(fa===undefined)?1:fa;var ga=function(ha,ia){if(ga.enabled)da.log(ea,ha,ia);};ga.enabled=false;ga._key=(i.user||Math.random())+ea;ga.enabled=(z(ga._key)%65535/65535)<=fa;return ga;},getSessionID:function(){return n;}};a.EagleEye=e.exports=da;},3);
__e("setUECookie",["Env"],function(a,b,c,d,e,f){var g=b("Env");function h(i){if(!g.no_cookies){var j=0;if(a.afterloaded){j=2;}else if(a.loaded)j=1;document.cookie="act="+encodeURIComponent(i+":"+j)+"; path=/; domain="+window.location.hostname.replace(/^.*(\.facebook\..*)$/i,'$1');}}e.exports=h;});
__e("json",[],function(global,require,requireDynamic,requireLazy,module,exports){if(!this.JSON)this.JSON={};(function(){function f(n){return n<10?'0'+n:n;}if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+f(this.getUTCMonth()+1)+'-'+f(this.getUTCDate())+'T'+f(this.getUTCHours())+':'+f(this.getUTCMinutes())+':'+f(this.getUTCSeconds())+'Z':null;};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function')value=value.toJSON(key);if(typeof rep==='function')value=rep.call(holder,key,value);switch(typeof value){case 'string':return quote(value);case 'number':return isFinite(value)?String(value):'null';case 'boolean':case 'null':return String(value);case 'object':if(!value)return 'null';gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;i<length;i+=1)partial[i]=str(i,value)||'null';v=partial.length===0?'[]':gap?'[\n'+gap+partial.join(',\n'+gap)+'\n'+mind+']':'['+partial.join(',')+']';gap=mind;return v;}if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==='string'){v=str(k,value);if(v)partial.push(quote(k)+(gap?': ':':')+v);}}}else for(k in value)if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v)partial.push(quote(k)+(gap?': ':':')+v);}v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+mind+'}':'{'+partial.join(',')+'}';gap=mind;return v;}}if(typeof JSON.stringify!=='function')JSON.stringify=function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1)indent+=' ';}else if(typeof space==='string')indent=space;rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number'))throw new Error('JSON.stringify');return str('',{'':value});};if(typeof JSON.parse!=='function')JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object')for(k in value)if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else delete value[k];}return reviver.call(holder,key,value);}text=String(text);cx.lastIndex=0;if(cx.test(text))text=text.replace(cx,function(a){return '\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);});if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}throw new SyntaxError('JSON.parse');};JSON.stringify=function(old){return function(){var s=old.apply(this,arguments);return s?s.replace(/[%\u2028\u2029]/g,function(m){var s=m.charCodeAt(0).toString(16);return '\\u0000'.substring(0,6-s.length)+s;}):s;};}(JSON.stringify);}());if(!global.JSON)global.JSON=JSON;},3);
__e("collectDataAttributes",["json"],function(a,b,c,d,e,f){b("json");function g(h,i){var j={},k={},l=i.length,m;for(m=0;m<l;++m){j[i[m]]={};k[i[m]]='data-'+i[m];}while(h){if(h.getAttribute)for(m=0;m<l;++m){var n=h.getAttribute(k[i[m]]);if(n){var o=JSON.parse(n);for(var p in o)if(j[i[m]][p]===undefined)j[i[m]][p]=o[p];}}h=h.parentNode;}return j;}e.exports=g;});
__e("ClickRef",["Arbiter","EagleEye","copyProperties","setUECookie","collectDataAttributes"],function(a,b,c,d,e,f){var g=b("Arbiter"),h=b("EagleEye"),i=b("copyProperties"),j=b("setUECookie"),k=b("collectDataAttributes");function l(){function m(r){if(!!r){var s={profile_minifeed:1,info_tab:1,gb_content_and_toolbar:1,gb_muffin_area:1,ego:1,bookmarks_menu:1,jewelBoxNotif:1,jewelNotif:1,BeeperBox:1,navSearch:1};for(var t=r;t&&t!=document.body;t=t.parentNode){if(!t.id||typeof t.id!=='string')continue;if(t.id.substr(0,8)=='pagelet_')return t.id.substr(8);if(t.id.substr(0,8)=='box_app_')return t.id;if(s[t.id])return t.id;}}return '-';}function n(r){return (r.getAttribute&&(r.getAttribute('ajaxify')||r.getAttribute('data-endpoint'))||r.action||r.href||r.name);}function o(r){if(!ge('content'))return [0,0,0,0];var s=$('content'),t=window.Vector2?Vector2.getEventPosition(r):{x:0,y:0};return [t.x,t.y,s.offsetLeft,s.clientWidth];}function p(r,s){if(s=='FORCE')return true;if(s=='INDIRECT')return false;return (r&&n(r));}function q(r,s,event,t){var u=(!window.ArbiterMonitor)?'r':'a',v=[0,0,0,0],w,x,y;if(!!event){w=event.type;if(w=='click'&&ge('content'))v=o(event);var z=0;event.ctrlKey&&(z+=1);event.shiftKey&&(z+=2);event.altKey&&(z+=4);event.metaKey&&(z+=8);if(z)w+=z;}if(!!s)x=n(s);var aa=[];if(window.ArbiterMonitor){y=ArbiterMonitor.getInternRef(s);aa=ArbiterMonitor.getActFields();}var ba=k(s,['ft','gt']);i(ba.ft,t.ft||{});i(ba.gt,t.gt||{});if(ba.gt.ua_id)r.set_ua_id(ba.gt.ua_id);if(typeof(ba.ft.ei)==='string')delete ba.ft.ei;var ca=[r._ue_ts,r._ue_count,x||'-',r._context,w||'-',y||m(s),u,window.URI?URI.getRequestURI(true,true).getUnqualifiedURI().toString():location.pathname+location.search+location.hash,ba].concat(v).concat(aa);return ca;}g.subscribe("UserAction/new",function(r,s){if(p(s.node,s.mode)){var t=q(s.ua,s.node,s.event,s.extra_data);j(s.ua.ue);h.log('act',t);}});}e.exports={init:l};});
__e("legacy:click-ref",["ClickRef"],function(a,b,c,d){b('ClickRef').init();},3);
__e("legacy:env",["Env"],function(a,b,c,d){var e=b('Env');a.Env=e;},3);
__e("dom-core",[],function(a,b,c,d,e,f){var g=function(i){return typeof i=='string'?document.getElementById(i):i;},h=g;a.ge=f.ge=h;a.$=f.$=g;},3);
__e("css-core",["dom-core"],function(a,b,c,d,e,f){var g=b('dom-core').$,h={hasClass:function(i,j){i=g(i);return (' '+i.className+' ').indexOf(' '+j+' ')>-1;},addClass:function(i,j){i=g(i);if(j&&!h.hasClass(i,j))i.className=i.className+' '+j;return i;},removeClass:function(i,j){i=g(i);if(h.hasClass(i,j))i.className=i.className.replace(new RegExp('(^|\\s)'+j+'(?:\\s|$)','g'),'$1').replace(/\s+/g,' ').replace(/^\s*|\s*$/g,'');return i;},toggleClass:function(i,j){return h.conditionClass(i,j,!h.hasClass(i,j));},conditionClass:function(i,j,k){return (k?h.addClass:h.removeClass)(i,j);},show:function(i){h.removeClass(i,'hidden_elem');},hide:function(i){h.addClass(i,'hidden_elem');},conditionShow:function(i,j){h.conditionClass(i,'hidden_elem',!j);}};a.CSS=e.exports=h;},3);
__e("Parent",["css-core"],function(a,b,c,d,e,f){var g=b("css-core"),h={byTag:function(i,j){j=j.toUpperCase();while(i&&i.nodeName!=j)i=i.parentNode;return i;},byClass:function(i,j){while(i&&!g.hasClass(i,j))i=i.parentNode;return i;},byAttribute:function(i,j){while(i&&(!i.getAttribute||!i.getAttribute(j)))i=i.parentNode;return i;}};e.exports=h;});
__e("legacy:parent",["Parent"],function(a,b,c,d){a.Parent=b('Parent');},3);
__e("trackReferrer",["Parent"],function(a,b,c,d,e,f){var g=b("Parent");function h(i,j){i=g.byAttribute(i,'data-referrer');if(i){var k=/^(?:(?:[^:\/?#]+):)?(?:\/\/(?:[^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/.exec(j)[1]||'';if(!k)return;var l=k+'|'+i.getAttribute('data-referrer'),m=new Date();m.setTime(Date.now()+1000);document.cookie="x-src="+encodeURIComponent(l)+"; "+"expires="+m.toGMTString()+";path=/; domain="+window.location.hostname.replace(/^.*(\.facebook\..*)$/i,'$1');}return i;}e.exports=h;});
__e("legacy:referrer-tracker",["trackReferrer"],function(a,b,c,d){a.trackReferrer=b('trackReferrer');},3);
__e("UserNoOp",[],function(a,b,c,d,e,f){var g=function(){},h=function(){return this;};g.prototype={add_event:h,add_data:h,set_ua_id:h,set_namespace:h};e.exports=g;});
__e("FunctionUtils",[],function(a,b,c,d,e,f){function g(h,i,j,k){var l,m=function(){var n=arguments,o=this,p=function(){l=null;h.apply(o,n);};j&&m.reset();if(j||!l)l=setTimeout(p,i,k);};m.reset=function(){l&&clearTimeout(l);l=null;};return m;}e.exports={debounce:function(h,i,j){return g(h,i,true,j);},throttle:function(h,i,j){return g(h,i,false,j);}};});
__e("userAction",["function-extensions","Arbiter","EagleEye","FunctionUtils","copyProperties","hasArrayNature"],function(a,b,c,d,e,f){b("function-extensions");var g=b("Arbiter"),h=b("EagleEye"),i=b("FunctionUtils"),j=b("copyProperties"),k=b("hasArrayNature");function l(s,t,u){var v=s+'/'+t;j(this,{ue:v,_ua_id:null,_ts:s,_ns:null,_start_ts:s,_prev_event:'s',_ue_ts:s,_ue_count:t,_context:u,_data_version:1,_event_version:2,_info_version:1});if(l.enable.report)h.log('uan',[s,t]);this._report=i.debounce(function report(){if(!l.enable.report)return;var w=[this._info_version,this.ue,this._ns,this._ua_id];h.log('uai',w);}.bind(this),100);}var m=[];l.enable=function(s){if(!s)return;if(!k(s))s=[s];for(var t=0;t<s.length;t++)l.enable[s[t]]=true;};j(l.prototype,{set_ua_id:function(s){this._ua_id=s;this._report();return this;},set_namespace:function(s){this._ns=s;this._report();return this;},add_event:function(s,t){if(!l.enable.events)return this;t=t||0;var u=(Date.now()-t),v=u-this._ts,w=u-this._ue_ts,x=[this._event_version,this.ue,this._ns,this._ua_id,this._prev_event,s,v,w];h.log('uae',x);this._ts=u;this._prev_event=s;return this;},add_data:function(s){if(!l.enable.data)return this;var t=[this._data_version,this.ue,s];h.log('uad',t);return this;}});var n=0,o=0,p=null,q=null;function r(s,t,event,u,v){var w=Date.now(),x=w+'/'+n;v=v||{};if(!t&&event)t=event.getTarget();var y=50;if(t&&p)if(w-o<y&&t==p&&u!="FORCE")return m[m.length-1];if(!window.addEventListener&&document.createEventObject)event=document.createEventObject(event);p=t;q=event;var z=new l(w,n,s);m.push(z);while(m.length>10)m.shift();g.inform("UserAction/new",{ua:z,node:t,mode:u,event:event,extra_data:v});o=w;n++;return z;}g.subscribe("UserAction/enable",function(s,t){l.enable(t);});e.exports=r;});
__e("legacy:UserAction",["UserNoOp","userAction"],function(a,b,c,d){a.UserNoOp=b('UserNoOp');a.user_action=a.user_action||b('userAction');a.report_data=a.report_data||function(e,f){user_action(e,null,null,'FORCE',f);};},3);
!function(){if(window.__primer)return;window.__primer=true;var a=null,b=/async(?:-post)?|dialog(?:-pipe|-post)?|theater|toggle/;document.documentElement.onclick=function(d){d=d||window.event;a=d.target||d.srcElement;var e=Parent.byTag(a,'A');if(!e)return;var f=e.getAttribute('ajaxify'),g=e.href,h=f||g;if(h){var i=user_action('a',e,d).set_namespace('primer');if(window.ArbiterMonitor)ArbiterMonitor.initUA(i,[e]);}if(f&&g&&!(/#$/).test(g)){var j=d.which&&d.which!=1,k=d.altKey||d.ctrlKey||d.metaKey||d.shiftKey;if(j||k)return;}trackReferrer(e,h);var l=['dialog'],m=e.rel&&e.rel.match(b);m=m&&m[0];switch(m){case 'dialog-pipe':l.push('ajaxpipe');case 'dialog':case 'dialog-post':Bootloader.loadComponents(l,function(){Dialog.bootstrap(h,null,m=='dialog',null,null,e);});break;case 'async':case 'async-post':Bootloader.loadComponents('async',function(){AsyncRequest.bootstrap(h,e);});break;case 'theater':if(window.Env&&Env.snowlift){Bootloader.loadComponents('PhotoSnowlift',function(){PhotoSnowlift.bootstrap(h,e);});}else Bootloader.loadComponents('PhotoSnowbox',function(){PhotoSnowbox.bootstrap(h,e);});break;case 'toggle':CSS.toggleClass(e.parentNode,'openToggler');Bootloader.loadComponents('Toggler',function(){Toggler.bootstrap(e);});break;default:return;}return false;};document.documentElement.onsubmit=function(d){d=d||window.event;var e=d.target||d.srcElement;if(e&&e.nodeName=='FORM'&&e.getAttribute('rel')=='async'){var f=user_action('f',e,d).set_namespace('primer');if(window.ArbiterMonitor)ArbiterMonitor.initUA(f,[e]);var g=a;Bootloader.loadComponents('dom-form',function(){Form.bootstrap(e,g);});return false;}};var c=null;document.documentElement.onmouseover=function(d){d=d||window.event;c=d.target||d.srcElement;var e=Parent.byAttribute(c,'data-hover');if(!e)return;switch(e.getAttribute('data-hover')){case 'tooltip':Bootloader.loadComponents('Tooltip',function(){Tooltip.process(e,c);});break;}};}();
__e("Class",["function-extensions","Arbiter","bind"],function(a,b,c,d,e,f){b('function-extensions');var g=b('Arbiter'),h=b('bind'),i={},j=null,k={extend:function(s,t){if(!j)j=g.subscribe(g.BOOTLOAD,m);if(typeof t=='string'){l(s,t);}else n(s,t);},mixin:function(s,t){var u=Array.prototype.slice.call(arguments);u[0]=u[0].prototype;Function.mixin.apply(Function,u);}};function l(s,t){s.__class_extending=true;var u=g.registerCallback(h(null,n,s,t),[g.FUNCTION_EXTENSION+'/'+t,g.BOOTLOAD]);if(u!==null)i[t]=true;}function m(){for(var s in i)if(!!a[s]){delete i[s];if(!a[s].__class_extending){g.inform(g.FUNCTION_EXTENSION+'/'+s,true,g.BEHAVIOR_STATE);}else a[s].__class_name=s;}}function n(s,t){delete s.__class_extending;t=typeof t=='string'?a[t]:t;var u=o(t,0),v=o(s,u.prototype.__level+1);v.parent=u;if(!!s.__class_name)g.inform(g.FUNCTION_EXTENSION+'/'+s.__class_name,true,g.BEHAVIOR_STATE);}function o(s,t){if(s._metaprototype)return s._metaprototype;var u=new Function();u.construct=p;u.prototype.construct=r(s,t,true);u.prototype.__level=t;u.base=s;s.prototype.parent=u;s._metaprototype=u;return u;}function p(s){q(s.parent);var t=[],u=s;while(u.parent){var v=new u.parent();t.push(v);v.__instance=s;u=u.parent;}s.parent=t[1];t.reverse();t.pop();s.__parents=t;s.__instance=s;return s.parent.construct.apply(s.parent,arguments);}function q(s){if(s.initialized)return;var t=s.base.prototype;if(s.parent){q(s.parent);var u=s.parent.prototype;for(var v in u)if(v!='__level'&&v!='construct'&&t[v]===undefined)t[v]=s.prototype[v]=u[v];}s.initialized=true;var w=s.prototype.__level;for(var v in t)if(v!='parent')t[v]=s.prototype[v]=r(t[v],w);}function r(s,t,u){if(typeof s!='function'||s.__prototyped)return s;var v=function(){var w=this.__instance;if(w){var x=w.parent;w.parent=t?w.__parents[t-1]:null;var y=arguments;if(u){y=[];for(var z=1;z<arguments.length;z++)y.push(arguments[z]);}var aa=s.apply(w,y);w.parent=x;return aa;}else return s.apply(this,arguments);};v.__prototyped=true;return v;}a.Class=e.exports=k;},3);
__e("legacy:arbiter",["Arbiter"],function(a,b,c,d){a.Arbiter=b('Arbiter');},3);
__e("event-form-bubbling",[],function(a,b,c,d,e,f){a.Event=a.Event||function(){};Event.__inlineSubmit=function(g,event){var h=Event.__getHandler&&Event.__getHandler(g,'submit');return h?null:Event.__bubbleSubmit(g,event);};Event.__bubbleSubmit=function(g,event){if(document.documentElement.attachEvent){var h;while(h!==false&&(g=g.parentNode))h=g.onsubmit?g.onsubmit(event):Event.__fire&&Event.__fire(g,'submit',event);return h;}};},3);
__e("DataStore",[],function(a,b,c,d,e,f){var g={},h={},i=1,j=1;function k(n){var o;if(typeof n=='string'){o='str_'+n;}else{o='elem_'+(n.__FB_TOKEN||(n.__FB_TOKEN=[i++]))[0];h[o]=n;}return g[o]||(g[o]={});}function l(n){if(!n.nodeName)return false;try{if(null!=n.offsetParent)return false;}catch(o){}if(document.documentElement.contains){return !document.documentElement.contains(n);}else return (document.documentElement.compareDocumentPosition(n)&j);}var m={set:function(n,o,p){var q=k(n);q[o]=p;return n;},get:function(n,o,p){var q=k(n),r=q[o];if(typeof r==='undefined'&&n.getAttribute){var s=n.getAttribute('data-'+o);r=(null===s)?undefined:s;}if((p!==undefined)&&(r===undefined))r=q[o]=p;return r;},remove:function(n,o){var p=k(n),q=p[o];delete p[o];return q;},cleanup:function(){var n,o;for(n in h){o=h[n];if(l(o)){delete g[n];delete h[n];}}}};e.exports=m;});
__e("string-extensions",[],function(a,b,c,d,e,f){String.prototype.trim=function(){if(this==window)return null;return this.replace(/^\s*|\s*$/g,'');};f.trim=a.trim=function(g){try{return String(g.toString()).trim();}catch(h){return '';}};String.prototype.startsWith=function(g){if(this==window)return null;return this.substring(0,g.length)==g;};String.prototype.endsWith=function(g){if(this==window)return null;return this.length>=g.length&&this.substring(this.length-g.length)==g;};String.prototype.split=(function(g){return function(h,i){var j="";if(h===null||i===null){return [];}else if(typeof h=='string'){return g.call(this,h,i);}else if(h===undefined){return [this.toString()];}else if(h instanceof RegExp){if(!h._2||!h._1){j=h.toString().replace(/^[\S\s]+\//,"");if(!h._1)if(!h.global){h._1=new RegExp(h.source,"g"+j);}else h._1=1;}separator1=h._1===1?h:h._1;var k=(h._2?h._2:h._2=new RegExp("^"+separator1.source+"$",j));if(i===undefined||i<0){i=false;}else{i=Math.floor(i);if(!i)return [];}var l,m=[],n=0,o=0;while((i?o++<=i:true)&&(l=separator1.exec(this))){if((l[0].length===0)&&(separator1.lastIndex>l.index))separator1.lastIndex--;if(separator1.lastIndex>n){if(l.length>1)l[0].replace(k,function(){for(var p=1;p<arguments.length-2;p++)if(arguments[p]===undefined)l[p]=undefined;});m=m.concat(this.substring(n,l.index),(l.index===this.length?[]:l.slice(1)));n=separator1.lastIndex;}if(l[0].length===0)separator1.lastIndex++;}return (n===this.length)?(separator1.test("")?m:m.concat("")):(i?m:m.concat(this.substring(n)));}else return g.call(this,h,i);};})(String.prototype.split);},3);
__e("ua",[],function(a,b,c,d,e,f){var g={ie:function(){return g._populate()||this._ie;},ie64:function(){return g.ie()&&this._win64;},firefox:function(){return g._populate()||this._firefox;},opera:function(){return g._populate()||this._opera;},safari:function(){return g._populate()||this._safari;},chrome:function(){return g._populate()||this._chrome;},windows:function(){return g._populate()||this._windows;},osx:function(){return g._populate()||this._osx;},linux:function(){return g._populate()||this._linux;},iphone:function(){return g._populate()||this._iphone;},_populated:false,_populate:function(){if(g._populated)return;g._populated=true;var h=navigator.userAgent,i=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))/.exec(h),j=/(Mac OS X)|(Windows)|(Linux)/.exec(h),k=/\b(iPhone|iP[ao]d)/.exec(h);g._win64=!!(/Win64/.exec(h));if(i){g._ie=i[1]?parseFloat(i[1]):NaN;if(g._ie&&document.documentMode)g._ie=document.documentMode;g._firefox=i[2]?parseFloat(i[2]):NaN;g._opera=i[3]?parseFloat(i[3]):NaN;g._safari=i[4]?parseFloat(i[4]):NaN;if(g._safari){i=/(?:Chrome\/(\d+\.\d+))/.exec(h);g._chrome=i&&i[1]?parseFloat(i[1]):NaN;}else g._chrome=NaN;}else g._ie=g._firefox=g._opera=g._chrome=g._safari=NaN;if(j){if(j[1]){var l=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(h);g._osx=l?parseFloat(l[1].replace('_','.')):true;}else g._osx=false;g._windows=!!j[2];g._linux=!!j[3];}else g._osx=g._windows=g._linux=false;g._iphone=k;}};a.ua=e.exports=g;},3);
__e("evalGlobal",[],function(a,b,c,d,e,f){function g(h){if('string'!=typeof(h)){throw new Error('JS sent to eval_global is not a string.  Only strings '+'are permitted.');}else if(''==h)return;var i=document.createElement('script');i.type='text/javascript';try{i.appendChild(document.createTextNode(h));}catch(j){i.text=h;}var k=(document.getElementsByTagName("head")[0]||document.documentElement);k.appendChild(i);k.removeChild(i);}e.exports=g;});
__e("HTML",["function-extensions","string-extensions","ArrayUtils","ua","copyProperties","evalGlobal"],function(a,b,c,d,e,f){b("function-extensions");b("string-extensions");var g=b("ArrayUtils"),h=b("ua"),i=b("copyProperties"),j=b("evalGlobal");function k(l){if(l&&l.__html)l=l.__html;if(!(this instanceof k)){if(l instanceof k)return l;return new k(l);}this._content=l;this._defer=false;this._extra_action='';this._nodes=null;this._inline_js=bagofholding;this._ie_clone_bug=false;return this;}k.isHTML=function(l){return l&&(l instanceof k||l.__html!==undefined);};k.replaceJSONWrapper=function(l){return l&&l.__html!==undefined?new k(l.__html):l;};i(k.prototype,{toString:function(){var l=this._content||'';if(this._extra_action)l+='<script type="text/javascript">'+this._extra_action+'</scr'+'ipt>';return l;},setAction:function(l){this._extra_action=l;return this;},getAction:function(){this._fillCache();var l=function(){this._inline_js();j(this._extra_action);}.bind(this);if(this.getDeferred()){return l.defer.bind(l);}else return l;},setDeferred:function(l){this._defer=!!l;return this;},getDeferred:function(){return this._defer;},getContent:function(){return this._content;},getNodes:function(){this._fillCache();return this._nodes;},getRootNode:function(){return this.getNodes()[0];},ieCloneBug:function(){this._fillCache();return this._ie_clone_bug;},_fillCache:function(){if(null!==this._nodes)return;var l=this._content;if(!l){this._nodes=[];return;}l=l.replace(/(<(\w+)[^>]*?)\/>/g,function(w,x,y){return y.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?w:x+'></'+y+'>';});var m=l.trim().toLowerCase(),n=document.createElement('div'),o=false,p=(!m.indexOf('<opt')&&[1,'<select multiple="multiple" class="__WRAPPER">','</select>'])||(!m.indexOf('<leg')&&[1,'<fieldset class="__WRAPPER">','</fieldset>'])||(m.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,'<table class="__WRAPPER">','</table>'])||(!m.indexOf('<tr')&&[2,'<table><tbody class="__WRAPPER">','</tbody></table>'])||((!m.indexOf('<td')||!m.indexOf('<th'))&&[3,'<table><tbody><tr class="__WRAPPER">','</tr></tbody></table>'])||(!m.indexOf('<col')&&[2,'<table><tbody></tbody><colgroup class="__WRAPPER">','</colgroup></table>'])||null;if(null===p){n.className='__WRAPPER';if(h.ie()){p=[0,'<span style="display:none">&nbsp;</span>',''];o=true;}else p=[0,'',''];}n.innerHTML=p[1]+l+p[2];while(p[0]--)n=n.lastChild;if(o)n.removeChild(n.firstChild);n.className!='__WRAPPER';if(0!==n.getElementsByTagName('option').length||0!==n.getElementsByTagName('object').length)this._ie_clone_bug=true;if(h.ie()){var q;if(!m.indexOf('<table')&&-1==m.indexOf('<tbody')){q=n.firstChild&&n.firstChild.childNodes;}else if(p[1]=='<table>'&&-1==m.indexOf('<tbody')){q=n.childNodes;}else q=[];for(var r=q.length-1;r>=0;--r)if(q[r].nodeName&&q[r].nodeName.toLowerCase()=='tbody'&&q[r].childNodes.length==0)q[r].parentNode.removeChild(q[r]);}var s=n.getElementsByTagName('script'),t=[];for(var u=0;u<s.length;u++)if(s[u].src){t.push(Bootloader.requestResource.bind(Bootloader,'js',s[u].src));}else t.push(j.bind(null,s[u].innerHTML));for(var u=s.length-1;u>=0;u--)s[u].parentNode.removeChild(s[u]);var v=function(){for(var w=0;w<t.length;w++)t[w]();};this._nodes=g.createFrom(n.childNodes);this._inline_js=v;}});e.exports=k;});
__e("ObjectUtils",["copyProperties","hasArrayNature"],function(a,b,c,d,e,f){var g=b("copyProperties"),h=b("hasArrayNature"),i={object:function(j){var k=new Function();k.prototype=j;return new k();},isScalar:function(j){return (/string|number|boolean/).test(typeof j);},getKeys:function(j){var k=[];for(var l in j)k.push(l);return k;},getValues:function(j){var k=[];for(var l in j)k.push(j[l]);return k;},countKeys:function(j){var k=0;for(var l in j)k++;return k;},areEqual:function(j,k){return JSON.stringify(j)==JSON.stringify(k);},merge:function(){var j={};for(var k=0;k<arguments.length;k++)g(j,arguments[k]);return j;},coalesce:function(){for(var j=0;j<arguments.length;++j)if(arguments[j]!=null)return arguments[j];return null;},createFrom:function(j,k){var l={},m=h(k);if(typeof k=='undefined')k=true;for(var n=j.length;n--;)l[j[n]]=m?k[n]:k;return l;}};e.exports=i;});
__e("Intl",[],function(a,b,c,d,e,f){function g(i){if(typeof i!='string')return false;return i.match(new RegExp(g.punct_char_class+'['+')"'+"'"+'\u00BB'+'\u0F3B'+'\u0F3D'+'\u2019'+'\u201D'+'\u203A'+'\u3009'+'\u300B'+'\u300D'+'\u300F'+'\u3011'+'\u3015'+'\u3017'+'\u3019'+'\u301B'+'\u301E'+'\u301F'+'\uFD3F'+'\uFF07'+'\uFF09'+'\uFF3D'+'\s'+']*$'));}g.punct_char_class='['+'.!?'+'\u3002'+'\uFF01'+'\uFF1F'+'\u0964'+'\u2026'+'\u0EAF'+'\u1801'+'\u0E2F'+'\uFF0E'+']';function h(i){var j,k=i,l=window.intl_locale_rewrites,m,n;try{if(l){var p=[],q=[];for(var r in l.patterns){var s=r,t=l.patterns[r];for(m in l.meta){j=new RegExp(m.slice(1,-1),'g');s=s.replace(j,l.meta[m]);t=t.replace(j,l.meta[m]);}p[p.length]=s;q[q.length]=t;}for(var u=0;u<p.length;u++){j=new RegExp(p[u].slice(1,-1),'g');if(q[u]=='javascript'){n=i.match(j);m=n&&n[0];if(m)i=i.replace(j,m.slice(1).toLowerCase());}else i=i.replace(j,q[u]);}}}catch(o){i=k;}j=new RegExp('\x01','g');i=i.replace(j,'');return i;}e.exports={endsInPunct:g,phonologicalRules:h};});
__e("tx",["Intl","Util"],function(a,b,c,d,e,f){var g=b('Intl'),h=b('Util');function i(k,l){if(!l)return k;var m;for(var n in l){if(g.endsInPunct(l[n])){m=new RegExp('\\{'+n+'\\}'+g.endsInPunct.punct_char_class+'*','g');}else m=new RegExp('\\{'+n+'\\}','g');var o='\x01';k=k.replace(m,o+l[n]+o);}k=g.phonologicalRules(k);return k;}function j(k,l){if(typeof _string_table=='undefined')return;k=_string_table[k];return i(k,l);}j._=i;e.exports=j;});
__e("dom",["ArrayUtils","css-core","HTML","ObjectUtils","dom-core","copyProperties","ua","tx"],function(a,b,c,d,e,f){var g=b('ArrayUtils'),h=b('css-core'),i=b('HTML'),j=b('ObjectUtils'),k=b('dom-core').$,l=b('copyProperties'),m=b('dom-core').ge,n=b('ua'),o=b('tx');function p(s){function t(u){return q.create('div',{},u).innerHTML;}return function(u,v){var w={};if(v)for(var x in v)w[x]=t(v[x]);return i(s(u,w));};}var q={find:function(s,t){var u=q.scry(s,t);return u[0];},scry:function(s,t){if(!s||!s.getElementsByTagName)return [];var u=t.split(' '),v=[s],w=!!s.documentElement;for(var x=0;x<u.length;x++){if(v.length==0)break;if(u[x]=='')continue;var y=u[x],z=[],aa=false;if(y.charAt(0)=='^')if(x==0){aa=true;y=y.slice(1);}else return [];y=y.replace(/\./g,' .');y=y.replace(/\#/g,' #');y=y.replace(/\[/g,' [');var ba=y.split(' '),ca=ba[0]||'*',da=ba[1]&&ba[1].charAt(0)=='#';if(da){var ea=m(ba[1].slice(1),true);if(ea&&('*'==ca||ea.tagName.toLowerCase()==ca))for(var fa=0;fa<v.length;fa++)if(aa&&q.contains(ea,v[fa])){z=[ea];break;}else if(document==v[fa]||q.contains(v[fa],ea)){z=[ea];break;}}else{var ga=[],ha=v.length;for(var ia=0;ia<ha;ia++){if(aa){var ja=[],ka=v[ia].parentNode,la=ca=='*';while(q.isElementNode(ka)){if(la||ka.tagName.toLowerCase()==ca)ja.push(ka);ka=ka.parentNode;}}else var ja=v[ia].getElementsByTagName(ca);var ma=ja.length;for(var na=0;na<ma;na++)ga.push(ja[na]);}for(var oa=1;oa<ba.length;oa++){var pa=ba[oa],qa=pa.charAt(0)=='.',ra=pa.substring(1);for(var ia=0;ia<ga.length;ia++){var sa=ga[ia];if(!sa)continue;if(qa){if(!h.hasClass(sa,ra))delete ga[ia];continue;}else{var ta=pa.slice(1,pa.length-1);if(ta.indexOf('=')==-1){if(sa.getAttribute(ta)===null){delete ga[ia];continue;}}else{var ua=ta.split('='),va=ua[0],wa=ua[1];wa=wa.slice(1,wa.length-1);if(sa.getAttribute(va)!=wa){delete ga[ia];continue;}}}}}for(var ia=0;ia<ga.length;ia++)if(ga[ia]){z.push(ga[ia]);if(aa)break;}}v=z;}return v;},getText:(function(){var s=document.createElement('div'),t=s.textContent!=null?'textContent':'innerText';return function(u){if(!u){return '';}else if(q.isTextNode(u)){return u.data;}else return u[t];};})(),getSelection:function(){var s=window.getSelection,t=document.selection;if(s){return s()+'';}else if(t)return t.createRange().text;return null;},create:function(s,t,u){s=document.createElement(s);if(t){t=l({},t);if(t.style){l(s.style,t.style);delete t.style;}for(var v in t)if(v.toLowerCase().indexOf('on')==0){if(!(typeof t[v]!='function'))if(window.Event&&Event.listen){Event.listen(s,v.substr(2),t[v]);}else s[v]=t[v];delete t[v];}l(s,t);}if(u!=undefined)q.setContent(s,u);return s;},prependContent:function(s,t){if(!q.isNode(s))throw new Error('DOM.prependContent: reference element is not a node');var u=function(v){if(s.firstChild){s.insertBefore(v,s.firstChild);}else s.appendChild(v);};return q._addContent(t,u,s);},insertAfter:function(s,t){if(!q.isNode(s)||!s.parentNode)throw new Error('DOM.insertAfter: reference element is not a node');var u=function(v){if(s.nextSibling){s.parentNode.insertBefore(v,s.nextSibling);}else s.parentNode.appendChild(v);};return q._addContent(t,u,s.parentNode);},insertBefore:function(s,t){if(!q.isNode(t)||!t.parentNode)throw new Error('DOM.insertBefore: reference element is not a node or '+'does not have a parent.');var u=function(v){t.parentNode.insertBefore(v,t);};return q._addContent(s,u,t.parentNode);},setContent:function(s,t){if(!q.isNode(s))throw new Error('DOM.setContent: reference element is not a node');q.empty(s);return q.appendContent(s,t);},appendContent:function(s,t){if(!q.isNode(s))throw new Error('DOM.appendContent: reference element is not a node');var u=function(v){s.appendChild(v);};return q._addContent(t,u,s);},replace:function(s,t){if(!q.isNode(s)||!s.parentNode)throw new Error('DOM.replace: reference element must be a node with a'+' parent');var u=function(v){s.parentNode.replaceChild(v,s);};return q._addContent(t,u,s.parentNode);},remove:function(s){s=k(s);if(s.parentNode)s.parentNode.removeChild(s);},empty:function(s){s=k(s);while(s.firstChild)q.remove(s.firstChild);},contains:function(s,t){s=m(s);t=m(t);if(!s||!t){return false;}else if(s===t){return true;}else if(q.isTextNode(s)){return false;}else if(q.isTextNode(t)){return q.contains(s,t.parentNode);}else if(s.contains){return s.contains(t);}else if(s.compareDocumentPosition){return !!(s.compareDocumentPosition(t)&16);}else return false;},getRootElement:function(){var s=null;if(window.Quickling&&Quickling.isActive())s=m('content');return s||document.body;},isNode:function(s){return !!(s&&(typeof Node=='object'?s instanceof Node:typeof s=="object"&&typeof s.nodeType=='number'&&typeof s.nodeName=='string'));},isNodeOfType:function(s,t){var u=g.createFrom(t).join('|').toUpperCase().split('|'),v=j.createFrom(u);return q.isNode(s)&&s.nodeName in v;},isElementNode:function(s){return q.isNode(s)&&s.nodeType==1;},isTextNode:function(s){return q.isNode(s)&&s.nodeType==3;},_addContent:function(s,t,u){s=i.replaceJSONWrapper(s);if(s instanceof i&&-1==s.toString().indexOf('<scr'+'ipt')&&''==u.innerHTML){var v=n.ie();if(!v||(v>7&&!q.isNodeOfType(u,['table','tbody','thead','tfoot','tr','select','fieldset']))){var w=v?"<em style=\"display:none;\">&nbsp;</em>":"";u.innerHTML=w+s;v&&u.removeChild(u.firstChild);return g.createFrom(u.childNodes);}}else if(q.isTextNode(u)){u.data=s;return [s];}var x,y=[],z=[],aa=document.createDocumentFragment();if(!(s instanceof Array))s=[s];for(var ba=0;ba<s.length;ba++){x=i.replaceJSONWrapper(s[ba]);if(x instanceof i){z.push(x.getAction());var ca=x.getNodes(),da;for(var ea=0;ea<ca.length;ea++){da=(n.safari()||(n.ie()&&x.ieCloneBug()))?ca[ea]:ca[ea].cloneNode(true);y.push(da);aa.appendChild(da);}}else if(j.isScalar(x)){var fa=document.createTextNode(x);y.push(fa);aa.appendChild(fa);}else if(q.isNode(x)){y.push(x);aa.appendChild(x);}else if(!(x instanceof Array))x!==null;}t(aa);for(var ba=0;ba<z.length;ba++)z[ba]();return y;},getDocumentScrollElement:function(s){s=s||document;if(h.hasClass(s.documentElement,'wrapped')){var t=s.getElementById('body');if(t)return t;}return !(n.chrome()||n.safari())&&s.compatMode==='CSS1Compat'?s.documentElement:s.body;},getDocumentBodyElement:function(s){s=s||document;if(h.hasClass(s.documentElement,'wrapped')){var t=s.getElementById('body');if(t)return t;}return s.body;}};q.tx=p(o);q.tx._=q._tx=p(o._);function r(s,t,u){if(typeof t!='object'||q.isNode(t)||t instanceof Array||i.isHTML(t)){u=t;t=null;}return q.create(s,t,u);}a.$N=q.$N=r;a.DOM=e.exports=q;},3);
__e("event-extensions",["event-form-bubbling","DataStore","dom","ObjectUtils","Parent","ErrorUtils","ua","dom-core","copyProperties","userAction"],function(a,b,c,d,e,f){b('event-form-bubbling');var g=b('DataStore'),h=b('dom'),i=b('ObjectUtils'),j=b('Parent'),k=b('ErrorUtils'),l=b('ua'),m=b('dom-core').$,n=b('copyProperties'),o=b('userAction');Event.DATASTORE_KEY='Event.listeners';if(!Event.prototype)Event.prototype={};function p(y,z,aa){this.target=y;this.type=z;this.data=aa;}p.prototype={getData:function(){this.data=this.data||{};return this.data;},stop:function(){this.cancelBubble=true;this.stopPropagation&&this.stopPropagation();return this;},prevent:function(){this.returnValue=false;this.preventDefault&&this.preventDefault();return this;},kill:function(){this.stop().prevent();return false;},getTarget:function(){var y=this.target||this.srcElement;return y?m(y):null;}};function q(y){if(y instanceof p)return y;y=y||window.event||{};if(!y._inherits_from_prototype)for(var z in Event.prototype)try{y[z]=Event.prototype[z];}catch(aa){}return y;}n(Event.prototype,{_inherits_from_prototype:true,getRelatedTarget:function(){var y=this.relatedTarget||(this.fromElement===this.srcElement?this.toElement:this.fromElement);return y?m(y):null;},getModifiers:function(){var y={control:!!this.ctrlKey,shift:!!this.shiftKey,alt:!!this.altKey,meta:!!this.metaKey};y.access=l.osx()?y.control:y.alt;y.any=y.control||y.shift||y.alt||y.meta;return y;}});n(Event.prototype,p.prototype);n(Event,{listen:function(y,z,aa,ba){if(typeof y=='string')y=m(y);if(typeof ba=='undefined')ba=Event.Priority.NORMAL;if(typeof z=='object'){var ca={};for(var da in z)ca[da]=Event.listen(y,da,z[da],ba);return ca;}if(z.match(/^on/i))throw new TypeError("Bad event name `"+event+"': use `click', not `onclick'.");if(y.nodeName=='LABEL'&&z=='click'){var ea=y.getElementsByTagName('input');y=ea.length==1?ea[0]:y;}else if(y===window&&z==='scroll'){var fa=h.getDocumentScrollElement();if(fa!==document.documentElement&&fa!==document.body)y=fa;}var ga=g.get(y,s,{});if(u[z]){var ha=u[z];z=ha.base;aa=ha.wrap(aa);}v(y,z);var ia=ga[z];if(!(ba in ia))ia[ba]=[];var ja=ia[ba].length,ka=new x(aa,ia[ba],ja);ia[ba].push(ka);return ka;},stop:function(y){return q(y).stop();},prevent:function(y){return q(y).prevent();},kill:function(y){return q(y).kill();},getKeyCode:function(event){event=q(event);if(!event)return false;switch(event.keyCode){case 63232:return 38;case 63233:return 40;case 63234:return 37;case 63235:return 39;case 63272:case 63273:case 63275:return null;case 63276:return 33;case 63277:return 34;}if(event.shiftKey)switch(event.keyCode){case 33:case 34:case 37:case 38:case 39:case 40:return null;}return event.keyCode;},getPriorities:function(){if(!r){var y=i.getValues(Event.Priority);y.sort(function(z,aa){return z-aa;});r=y;}return r;},fire:function(y,z,aa){var ba=new p(y,z,aa),ca;do{var da=Event.__getHandler(y,z);if(da)ca=da(ba);y=y.parentNode;}while(y&&ca!==false&&!ba.cancelBubble);return ca!==false;},__fire:function(y,z,event){var aa=Event.__getHandler(y,z);if(aa)return aa(q(event));},__getHandler:function(y,z){return g.get(y,Event.DATASTORE_KEY+z);}});var r=null,s=Event.DATASTORE_KEY,t=function(y){return function(z){if(!h.contains(this,z.getRelatedTarget()))return y.call(this,z);};},u={mouseenter:{base:'mouseover',wrap:t},mouseleave:{base:'mouseout',wrap:t}},v=function(y,z){var aa='on'+z,ba=w.bind(y),ca=g.get(y,s);if(z in ca)return;ca[z]={};if(y.addEventListener){y.addEventListener(z,ba,false);}else if(y.attachEvent)y.attachEvent(aa,ba);g.set(y,s+z,ba);if(y[aa]){var da=y===document.documentElement?Event.Priority._BUBBLE:Event.Priority.TRADITIONAL,ea=y[aa];y[aa]=null;Event.listen(y,z,ea,da);}if(y.nodeName==='FORM'&&z==='submit')Event.listen(y,z,Event.__bubbleSubmit.curry(y),Event.Priority._BUBBLE);},w=function(event){event=q(event);var y=event.type;if(!g.get(this,s))throw new Error("Bad listenHandler context.");var z=g.get(this,s)[y];if(!z)throw new Error("No registered handlers for `"+y+"'.");if(y=='click'){var aa=j.byTag(event.getTarget(),'a'),ba=o('click',aa,event).set_namespace('evt_ext');if(window.ArbiterMonitor)ArbiterMonitor.initUA(ba,[aa]);}var ca=Event.getPriorities();for(var da=0;da<ca.length;da++){var ea=ca[da];if(ea in z){var fa=z[ea];for(var ga=0;ga<fa.length;ga++){if(!fa[ga])continue;var ha=fa[ga].fire(this,event);if(ha===false){return event.kill();}else if(event.cancelBubble)event.stop();}}}return event.returnValue;};Event.Priority={URGENT:-20,TRADITIONAL:-10,NORMAL:0,_BUBBLE:1000};function x(y,z,aa){this._handler=y;this._container=z;this._index=aa;}x.prototype={remove:function(){delete this._handler;delete this._container[this._index];},fire:function(y,event){return k.applyWithGuard(this._handler,y,[event],function(z){z.event_type=event.type;z.dom_element=y.name||y.id;z.category='eventhandler';});}};a.$E=f.$E=q;});
__e("css",["dom","css-core","copyProperties"],function(a,b,c,d,e,f){var g=b('dom'),h=b('css-core'),i=b('copyProperties');i(h,{shown:function(j){return !h.hasClass(j,'hidden_elem');},toggle:function(j){h.conditionShow(j,!h.shown(j));},setClass:function(j,k){$(j).className=k||'';return j;},setStyle:function(j,k,l){switch(k){case 'opacity':j.style.opacity=l;j.style.filter=l!==''?'alpha(opacity='+l*100+')':'';break;case 'float':j.style.cssFloat=j.style.styleFloat=l;break;default:k=k.replace(/-(.)/g,function(m,n){return n.toUpperCase();});j.style[k]=l;}return j;},getStyle:function(j,k){j=$(j);k=k.replace(/-(.)/g,function(n,o){return o.toUpperCase();});function l(n){return n.replace(/([A-Z])/g,'-$1').toLowerCase();}if(window.getComputedStyle){var m=window.getComputedStyle(j,null);if(m)return m.getPropertyValue(l(k));}if(document.defaultView&&document.defaultView.getComputedStyle){var m=document.defaultView.getComputedStyle(j,null);if(m)return m.getPropertyValue(l(k));if(k=="display")return "none";}if(j.currentStyle)return j.currentStyle[k];return j.style&&j.style[k];},getStyleFloat:function(j,k){return parseFloat(h.getStyle(j,k),10);},getOpacity:function(j){j=$(j);var k=h.getStyle(j,'filter'),l=null;if(k&&(l=/(\d+(?:\.\d+)?)/.exec(k))){return parseFloat(l.pop())/100;}else if(k=h.getStyle(j,'opacity')){return parseFloat(k);}else return 1;},isFixed:function(j){while(j&&j!==document.documentElement){if(h.getStyle(j,'position')==='fixed')return true;j=j.parentNode;}return false;},getScrollParent:(function(){function j(k,l){var m=h.getStyle(k,l);return (m==='auto'||m==='scroll');}return function(k){if(!k)return null;while(k!==document.body){if(j(k,'overflow')||j(k,'overflowY')||j(k,'overflowX'))return k;k=k.parentNode;}return window;};})()});e.exports=h;},3);
__e("AsyncDOM",["css","dom","onload"],function(a,b,c,d,e,f){var g=b("css"),h=b("dom"),i=b("onload"),j={invoke:function(k,l){for(var m=0;m<k.length;++m){var n=k[m],o=n[0],p=n[1],q=n[2],r=n[3],s=(q&&l)||null;if(p)s=h.scry(s||document.documentElement,p)[0];switch(o){case 'eval':(new Function(r)).apply(s);break;case 'hide':g.hide(s);break;case 'show':g.show(s);break;case 'setContent':h.setContent(s,r);break;case 'appendContent':h.appendContent(s,r);break;case 'prependContent':h.prependContent(s,r);break;case 'insertAfter':h.insertAfter(s,r);break;case 'insertBefore':h.insertBefore(r,s);break;case 'remove':h.remove(s);break;case 'replace':h.replace(s,r);break;default:}}}};e.exports=j;});
__e("AsyncResponse",["Env","copyProperties","tx"],function(a,b,c,d,e,f){var g=b("Env"),h=b("copyProperties");a.tx=b("tx");function i(j,k){h(this,{error:0,errorSummary:null,errorDescription:null,onload:null,replay:false,payload:k||null,request:j||null,silentError:false,is_last:true});return this;}h(i,{defaultErrorHandler:function(j){try{if(!j.silentError){i.verboseErrorHandler(j);}else j.logErrorByGroup('silent',10);}catch(k){alert(j);}},verboseErrorHandler:function(j){try{var l=j.getErrorSummary(),m=j.getErrorDescription();j.logErrorByGroup('popup',10);if(j.silentError&&m=='')m="Something went wrong. We're working on getting this fixed as soon as we can. You may be able to try again.";Bootloader.loadComponents('dialog',function(){new Dialog().setTitle(l).setBody(m).setButtons([Dialog.OK]).setModal(true).setCausalElement(this.relativeTo).show();});}catch(k){alert(j);}}});h(i.prototype,{getRequest:function(){return this.request;},getPayload:function(){return this.payload;},getError:function(){return this.error;},getErrorSummary:function(){return this.errorSummary;},setErrorSummary:function(j){j=(j===undefined?null:j);this.errorSummary=j;return this;},getErrorDescription:function(){return this.errorDescription;},getErrorIsWarning:function(){return this.errorIsWarning;},logError:function(j,k){if(window.send_error_signal){var l={err_code:this.error,vip:(g.vip||'-')};if(k!==undefined){l.duration=k.duration;l.xfb_ip=k.xfb_ip;}var m=this.request.getURI();l.path=m||'-';l.aid=this.request.userActionID;if(m&&m.indexOf('scribe_endpoint.php')!=-1)j='async_error_double';send_error_signal(j,JSON.stringify(l));}},logErrorByGroup:function(j,k){if(Math.floor(Math.random()*k)==0)if(this.error==1357010||this.error<15000){this.logError('async_error_oops_'+j);}else this.logError('async_error_logic_'+j);}});e.exports=i;});
__e("Cookie",["Env"],function(a,b,c,d,e,f){var g=b("Env"),h={set:function(i,j,k,l,m){if(g.no_cookies&&i!='tpa')return;var n;if(k){var o=new Date();n=new Date();n.setTime(o.getTime()+k);}document.cookie=i+"="+encodeURIComponent(j)+"; "+(k?"expires="+n.toGMTString()+"; ":"")+"path="+(l||'/')+"; domain="+window.location.hostname.replace(/^.*(\.facebook\..*)$/i,'$1')+(m?"; secure":"");},clear:function(i){document.cookie=i+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; "+"path=/; domain="+window.location.hostname.replace(/^.*(\.facebook\..*)$/i,'$1');},get:function(i){var j=i+"=",k=document.cookie.split(';');for(var l=0;l<k.length;l++){var m=k[l];while(m.charAt(0)==' ')m=m.substring(1,m.length);if(m.indexOf(j)===0)return decodeURIComponent(m.substring(j.length,m.length));}return null;}};e.exports=h;});
__e("JSCC",["array-extensions","Util","isEmpty"],function(a,b,c,d,e,f){b("array-extensions");var g=b("Util"),h=b("isEmpty"),i={},j={};function k(n){var o,p=false;return function(){if(!p){o=n();p=true;}return o;};}function l(n,o){if(h(n))return;for(var p in n){i[p]=k(n[p]);if(o){if(!j[o])j[o]=[];j[o].push(p);}}}var m={get:function(n){!i[n];return i[n]();},init:function(n){l(n);},initForPagelet:function(n,o){l(o,n);},clearForPagelet:function(n){if(j[n]){for(var o=0;o<j[n].length;o++){var p=j[n][o];delete i[p];}delete j[n];}}};e.exports=m;});
__e("URI",["copyProperties"],function(a,b,c,d,e,f){var g=b("copyProperties");function h(i){if(!(this instanceof h))return new h(i||window.location.href);this.parse(i||'');}g(h,{getRequestURI:function(i,j){i=i===undefined||i;if(i&&window.PageTransitions&&PageTransitions.isInitialized()){return PageTransitions.getCurrentURI(!!j).getQualifiedURI();}else return new h(window.location.href);},getMostRecentURI:function(){if(window.PageTransitions&&PageTransitions.isInitialized()){return PageTransitions.getMostRecentURI().getQualifiedURI();}else return new h(window.location.href);},getNextURI:function(){if(window.PageTransitions&&PageTransitions.isInitialized()){return PageTransitions.getNextURI().getQualifiedURI();}else return new h(window.location.href);},expression:/(((\w+):\/\/)([^\/:]*)(:(\d+))?)?([^#?]*)(\?([^#]*))?(#(.*))?/,arrayQueryExpression:/^(\w+)((?:\[\w*\])+)=?(.*)/,explodeQuery:function(i){if(!i)return {};var j={};i=i.replace(/%5B/ig,'[').replace(/%5D/ig,']');i=i.split('&');for(var k=0,l=i.length;k<l;k++){var m=i[k].match(h.arrayQueryExpression);if(!m){var n=i[k].split('=');j[h.decodeComponent(n[0])]=n[1]===undefined?null:h.decodeComponent(n[1]);}else{var o=m[2].split(/\]\[|\[|\]/).slice(0,-1),p=m[1],q=h.decodeComponent(m[3]||'');o[0]=p;var r=j;for(var s=0;s<o.length-1;s++)if(o[s]){if(r[o[s]]===undefined)if(o[s+1]&&!o[s+1].match(/^\d+$/)){r[o[s]]={};}else r[o[s]]=[];r=r[o[s]];}else{if(o[s+1]&&!o[s+1].match(/^\d+$/)){r.push({});}else r.push([]);r=r[r.length-1];}if(r instanceof Array&&o[o.length-1]===''){r.push(q);}else r[o[o.length-1]]=q;}}return j;},implodeQuery:function(i,j,k){j=j||'';if(k===undefined)k=true;var l=[];if(i===null||i===undefined){l.push(k?h.encodeComponent(j):j);}else if(i instanceof Array){for(var m=0;m<i.length;++m)try{if(i[m]!==undefined)l.push(h.implodeQuery(i[m],j?(j+'['+m+']'):m));}catch(n){}}else if(typeof(i)=='object'){if(('nodeName' in i)&&('nodeType' in i)){l.push('{node}');}else for(var o in i)try{if(i[o]!==undefined)l.push(h.implodeQuery(i[o],j?(j+'['+o+']'):o));}catch(n){}}else if(k){l.push(h.encodeComponent(j)+'='+h.encodeComponent(i));}else l.push(j+'='+i);return l.join('&');},encodeComponent:function(i){var j=String(i).split(/([\[\]])/);for(var k=0,l=j.length;k<l;k+=2)j[k]=encodeURIComponent(j[k]);return j.join('');},decodeComponent:function(i){return decodeURIComponent(i.replace(/\+/g,' '));},INVALID_DOMAIN:'invalid.invalid',sanitizeDomain:function(i){var j=new RegExp('[\\x00-\\x2c\\x2f\\x3b-\\x40\\x5c\\x5e\\x60\\x7b-\\x7f'+'\\uFDD0-\\uFDEF\\uFFF0-\\uFFFF'+'\\u2047\\u2048\\uFE56\\uFE5F\\uFF03\\uFF0F\\uFF1F]');if(j.test(i)){return h.INVALID_DOMAIN;}else return i;},fromJSON:function(i){return new h(i.url);}});g(h.prototype,{parse:function(i){var j=i.toString().match(h.expression);g(this,{protocol:j[3]||'',domain:h.sanitizeDomain(j[4]||''),port:j[6]||'',path:j[7]||'',query_s:j[9]||'',fragment:j[11]||''});return this;},setProtocol:function(i){this.protocol=i;return this;},getProtocol:function(){return this.protocol;},setQueryData:function(i){this.query_s=h.implodeQuery(i);return this;},addQueryData:function(i){return this.setQueryData(g(this.getQueryData(),i));},removeQueryData:function(i){if(!(i instanceof Array))i=[i];var j=this.getQueryData();for(var k=0,l=i.length;k<l;++k)delete j[i[k]];return this.setQueryData(j);},getQueryData:function(){return h.explodeQuery(this.query_s);},setFragment:function(i){this.fragment=i;return this;},getFragment:function(){return this.fragment;},setDomain:function(i){this.domain=h.sanitizeDomain(i);return this;},getDomain:function(){return this.domain;},setPort:function(i){this.port=i;return this;},getPort:function(){return this.port;},setPath:function(i){this.path=i;return this;},getPath:function(){return this.path.replace(/^\/+/,'/');},isEmpty:function(){return !(this.path||this.protocol||this.domain||this.port||this.query_s||this.fragment);},toString:function(){var i='';this.protocol&&(i+=this.protocol+'://');this.domain&&(i+=this.domain);this.port&&(i+=':'+this.port);if(this.domain&&!this.path)i+='/';this.path&&(i+=this.path);this.query_s&&(i+='?'+this.query_s);this.fragment&&(i+='#'+this.fragment);return i;},valueOf:function(){return this.toString();},isFacebookURI:function(){if(!h._facebookURIRegex)h._facebookURIRegex=new RegExp('(^|\\.)facebook\\.com([^.]*)$','i');return (!this.domain||h._facebookURIRegex.test(this.domain));},isQuicklingEnabled:function(){return window.Quickling&&Quickling.isActive()&&Quickling.isPageActive(this);},getRegisteredDomain:function(){if(!this.domain)return '';if(!this.isFacebookURI())return null;var i=this.domain.split('.'),j=i.indexOf('facebook');return i.slice(j).join('.');},getUnqualifiedURI:function(){return new h(this).setProtocol(null).setDomain(null).setPort(null);},getQualifiedURI:function(){var i=new h(this);if(!i.getDomain()){var j=h();i.setProtocol(j.getProtocol()).setDomain(j.getDomain()).setPort(j.getPort());}return i;},isSameOrigin:function(i){var j=i||window.location.href;if(!(j instanceof h))j=new h(j.toString());if(this.getProtocol()&&this.getProtocol()!=j.getProtocol())return false;if(this.getDomain()&&this.getDomain()!=j.getDomain())return false;return true;},go:function(i){goURI(this,i);},setSubdomain:function(i){var j=new h(this).getQualifiedURI(),k=j.getDomain().split('.');if(k.length<=2){k.unshift(i);}else k[0]=i;return j.setDomain(k.join('.'));},getSubdomain:function(){if(!this.getDomain())return '';var i=this.getDomain().split('.');if(i.length<=2){return '';}else return i[0];},setSecure:function(i){return this.setProtocol(i?'https':'http');},isSecure:function(){return this.getProtocol()=='https';}});e.exports=h;});
__e("goURI",[],function(a,b,c,d,e,f){function g(h,i){h=h.toString();if(!i&&a.PageTransitions&&PageTransitions.isInitialized()){PageTransitions.go(h);}else if(window.location.href==h){window.location.reload();}else window.location.href=h;}e.exports=g;});
__e("invokeCallbacks",["ErrorUtils"],function(a,b,c,d,e,f){var g=b("ErrorUtils");function h(i,j){if(i)for(var k=0;k<i.length;k++)g.applyWithGuard(new Function(i[k]),j);}e.exports=h;});
__e("AsyncRequest",["array-extensions","event-extensions","json","Arbiter","AsyncDOM","AsyncResponse","bootloader","Cookie","css-core","dom","Env","JSCC","Parent","URI","Util","bind","copyProperties","evalGlobal","goURI","invokeCallbacks","isEmpty"],function(global,require,requireDynamic,requireLazy,module,exports){require("array-extensions");require("event-extensions");require("json");var Arbiter=require("Arbiter"),AsyncDOM=require("AsyncDOM"),AsyncResponse=require("AsyncResponse"),Bootloader=require("bootloader"),Cookie=require("Cookie"),CSS=require("css-core"),DOM=require("dom"),Env=require("Env"),JSCC=require("JSCC"),Parent=require("Parent"),URI=require("URI"),Util=require("Util"),bind=require("bind"),copyProperties=require("copyProperties"),evalGlobal=require("evalGlobal"),goURI=require("goURI"),invokeCallbacks=require("invokeCallbacks"),isEmpty=require("isEmpty");function AsyncRequest(uri){var dispatchResponse=bind(this,function(asyncResponse){try{this.clearStatusIndicator();if(!this.isRelevant()){invokeErrorHandler(1010);return;}if(this.initialHandler(asyncResponse)!==false){clearTimeout(this.timer);if(asyncResponse.jscc_map){var jscc_map=eval(asyncResponse.jscc_map);JSCC.init(jscc_map);}if(this.handler)try{var suppress_onload=this.handler(asyncResponse);}catch(exception){asyncResponse.is_last&&this.finallyHandler(asyncResponse);throw exception;}if(suppress_onload!==AsyncRequest.suppressOnloadToken){var domOps=asyncResponse.domops;if(domOps)AsyncDOM.invoke(domOps,this.getRelativeTo());asyncResponse.jscalls&&invokeCallbacks([asyncResponse.jscalls]);var onload=asyncResponse.onload;if(onload)for(var ii=0;ii<onload.length;ii++)try{(new Function(onload[ii])).apply(this);}catch(exception){}if(this.lid)Arbiter.inform('tti_ajax',{s:this.lid,d:[this._sendTimeStamp||0,(this._sendTimeStamp&&this._responseTime)?(this._responseTime-this._sendTimeStamp):0]},Arbiter.BEHAVIOR_EVENT);var onafterload=asyncResponse.onafterload;if(onafterload)for(var ii=0;ii<onafterload.length;ii++)try{(new Function(onafterload[ii])).apply(this);}catch(exception){}}asyncResponse.is_last&&this.finallyHandler(asyncResponse);}}catch(exception){}}),dispatchErrorResponse=bind(this,function(asyncResponse,isTransport){try{this.clearStatusIndicator();var async_error=asyncResponse.getError();if(this._sendTimeStamp){var _duration=Date.now()-this._sendTimeStamp,xfb_ip=this._xFbServer||'-';asyncResponse.logError('async_error',{duration:_duration,xfb_ip:xfb_ip});}else asyncResponse.logError('async_error');if((!this.isRelevant())||async_error===1010)return;if(async_error==1357008||async_error==1357007||async_error==1442002||async_error==1357001){var is_confirmation=false;if(async_error==1357008||async_error==1357007)is_confirmation=true;var payload=asyncResponse.getPayload();this._displayServerDialog(payload.__dialog,is_confirmation);}else if(this.initialHandler(asyncResponse)!==false){clearTimeout(this.timer);try{if(isTransport){this.transportErrorHandler(asyncResponse);}else this.errorHandler(asyncResponse);}catch(exception){this.finallyHandler(asyncResponse);throw exception;}this.finallyHandler(asyncResponse);}}catch(exception){}}),_interpretTransportResponse=bind(this,function(){if(this.getOption('suppressEvaluation')){var r=new AsyncResponse(this,this.transport);return {asyncResponse:r};}var _sendError=function(p,error_code,str){if(!window.send_error_signal)return;if(this._xFbServer){error_code='1008_'+error_code;}else error_code='1012_'+error_code;send_error_signal('async_xport_resp',error_code+':'+(this._xFbServer||'-')+':'+p.getURI()+':'+str.length+':'+str.substr(0,1600));},shield="for (;;);",shieldlen=shield.length,text=this.transport.responseText;if(text.length<=shieldlen){_sendError(this,'empty',text);return {transportError:'Response too short on async to '+this.getURI()};}var offset=0;while(text.charAt(offset)==" "||text.charAt(offset)=="\n")offset++;offset&&text.substring(offset,offset+shieldlen)==shield;var safeResponse=text.substring(offset+shieldlen);try{var response=eval('('+safeResponse+')');}catch(exception){_sendError(this,'excep',text);return {transportError:'eval() failed on async to '+this.getURI()};}return interpretResponse(response);}),interpretResponse=bind(this,function(response){if(response.redirect)return {redirect:response.redirect};var r=new AsyncResponse(this);if(response.__ar!=1){r.payload=response;}else{copyProperties(r,response);if(response.tplts)if(window.DynaTemplate)DynaTemplate.registerTemplates(response.tplts);}return {asyncResponse:r};}),invokeResponseHandler=bind(this,function(interp){if(typeof(interp.redirect)!='undefined'){(function(){this.setURI(interp.redirect).send();}).bind(this).defer();return;}if(this.handler||this.errorHandler||this.transportErrorHandler)if(typeof(interp.asyncResponse)!='undefined'){var r=interp.asyncResponse;if(!this.isRelevant()){invokeErrorHandler(1010);return;}if(r.inlinejs)evalGlobal(r.inlinejs);if(r.lid){this._responseTime=Date.now();if(window.CavalryLogger)this.cavalry=CavalryLogger.getInstance(r.lid);this.lid=r.lid;}if(r.getError()&&!r.getErrorIsWarning()){var fn=dispatchErrorResponse;}else var fn=dispatchResponse;Bootloader.setResourceMap(r.resource_map);if(r.bootloadable)Bootloader.enableBootload(r.bootloadable);fn=fn.shield(null,r);fn=fn.defer.bind(fn);var is_transitional=false;if(this.preBootloadHandler)is_transitional=this.preBootloadHandler(r);r.css=r.css||[];r.js=r.js||[];Bootloader.loadResources(r.css.concat(r.js),fn,is_transitional,this.getURI());}else if(typeof(interp.transportError)!='undefined'){if(this._xFbServer){invokeErrorHandler(1008);}else invokeErrorHandler(1012);}else invokeErrorHandler(1007);}),invokeErrorHandler=bind(this,function(explicitError){try{if(!window.loaded&&!this.getOption('handleErrorAfterUnload'))return;}catch(ex){return;}var r=new AsyncResponse(this),err;try{err=explicitError||this.transport.status||1004;}catch(ex){err=1005;}if(this._requestAborted)err=1011;try{if(this.responseText=='')err=1002;}catch(ignore){}if(this.transportErrorHandler){var desc,summary,silent=true;if(false===navigator.onLine){summary="No Network Connection";desc="Your browser appears to be offline. Please check your internet connection and try again.";err=1006;}else if(err>=300&&err<=399){summary="Redirection";desc="Your access to Facebook was redirected or blocked by a third party at this time, please contact your ISP or reload. ";redir_url=this.transport.getResponseHeader("Location");if(redir_url)goURI(redir_url,true);silent=true;}else{summary="Oops!";desc="Something went wrong. We're working on getting this fixed as soon as we can. You may be able to try again.";}!this.getOption('suppressErrorAlerts');copyProperties(r,{error:err,errorSummary:summary,errorDescription:desc,silentError:silent});dispatchErrorResponse(r,true);}}),handleResponse=function(response){var asyncResponse=this.interpretResponse(response);this.invokeResponseHandler(asyncResponse);},onStateChange=function(){try{if(this.transport.readyState==4){AsyncRequest._inflightPurge();try{if(typeof(this.transport.getResponseHeader)!='undefined'&&this.transport.getResponseHeader('X-FB-Debug'))this._xFbServer=this.transport.getResponseHeader('X-FB-Debug');}catch(ex){}if(this.transport.status>=200&&this.transport.status<300){AsyncRequest.lastSuccessTime=Date.now();invokeResponseHandler(_interpretTransportResponse());}else if(ua.safari()&&(typeof(this.transport.status)=='undefined')){invokeErrorHandler(1002);}else if(window.Env&&window.Env.retry_ajax_on_network_error&&this.transport.status in {0:1,12029:1,12030:1,12031:1,12152:1}&&this.remainingRetries>0){--this.remainingRetries;delete this.transport;this.send(true);return;}else invokeErrorHandler();if(this.getOption('asynchronous')!==false)delete this.transport;}}catch(exception){try{if(!window.loaded)return;}catch(ex){return;}delete this.transport;if(this.remainingRetries>0){--this.remainingRetries;this.send(true);}else{!this.getOption('suppressErrorAlerts');if(window.send_error_signal)send_error_signal('async_xport_resp','1007:'+(this._xFbServer||'-')+':'+this.getURI()+':'+exception.message);invokeErrorHandler(1007);}}},onJSONPResponse=function(data,more_chunked_response){var is_first=(this.is_first===undefined);this.is_first=is_first;if(this.transportIframe&&!more_chunked_response){if(this.cavalry)this.cavalry.collectBrowserTiming(this.transportIframe.contentWindow);(function(x){document.body.removeChild(x);}).bind(null,this.transportIframe).defer();}if(ua.ie()>=9&&window.JSON)data=window.JSON.parse(window.JSON.stringify(data));var r=this.interpretResponse(data);r.asyncResponse.is_first=is_first;r.asyncResponse.is_last=!more_chunked_response;this.invokeResponseHandler(r);return more_chunked_response;};copyProperties(this,{onstatechange:onStateChange,onjsonpresponse:onJSONPResponse,invokeResponseHandler:invokeResponseHandler,interpretResponse:interpretResponse,handleResponse:handleResponse,transport:null,method:'POST',uri:'',timeout:null,timer:null,initialHandler:bagofholding,handler:null,errorHandler:null,transportErrorHandler:null,timeoutHandler:null,finallyHandler:bagofholding,serverDialogCancelHandler:null,relativeTo:null,statusElement:null,statusClass:'',data:{},file:null,context:{},readOnly:false,writeRequiredParams:['post_form_id'],remainingRetries:0,option:{asynchronous:true,suppressErrorHandlerWarning:false,suppressEvaluation:false,suppressErrorAlerts:false,retries:0,jsonp:false,bundle:false,useIframeTransport:false,tfbEndpoint:true,handleErrorAfterUnload:false},userActionID:'-'});this.errorHandler=AsyncResponse.defaultErrorHandler;this.transportErrorHandler=bind(this,'errorHandler');if(uri!=undefined)this.setURI(uri);return this;}Arbiter.subscribe("page_transition",function(type,message){AsyncRequest._id_threshold=message.id;});copyProperties(AsyncRequest,{receiveJSONPResponse:function(id,data,more_chunked_response){if(this._JSONPReceivers[id]){if(!this._JSONPReceivers[id](data,more_chunked_response))delete this._JSONPReceivers[id];}else if(window.logJSError&&!more_chunked_response){var uri=(data.payload&&data.payload.uri)||'';logJSError('ajax',{error:'UnexpectedJsonResponse',extra:{id:id,uri:uri}});}},_bundleRequest:function(request){if(request.getOption('jsonp')||request.getOption('useIframeTransport')){request.setOption('bundle',false);return false;}else if(!request.uri.isFacebookURI()){request.setOption('bundle',false);return false;}else if(!request.getOption('asynchronous')){request.setOption('bundle',false);return false;}var path=request.uri.getPath();if(!AsyncRequest._bundleTimer)AsyncRequest._bundleTimer=setTimeout(function(){AsyncRequest._sendBundledRequests();},0);AsyncRequest._allBundledRequests.push([path,request]);return true;},_sendBundledRequests:function(){clearTimeout(AsyncRequest._bundleTimer);AsyncRequest._bundleTimer=null;var bundled_requests=AsyncRequest._allBundledRequests;AsyncRequest._allBundledRequests=[];if(bundled_requests.length==1){var request=bundled_requests[0][1];request.setOption('bundle',false).send();return request;}if(bundled_requests.length===0)return null;var data=[];for(var ii=0;ii<bundled_requests.length;ii++)data.push([bundled_requests[ii][0],URI.implodeQuery(bundled_requests[ii][1].data)]);var query_data={data:data},request=new AsyncRequest();request.setURI('/ajax/proxy.php').setData(query_data).setMethod('POST').setInitialHandler(bagof(true)).setAllowCrossPageTransition(true).setHandler(function(r){var payload=r.getPayload(),responses=payload.responses;if(responses.length!=bundled_requests.length){return;}else for(var ii=0;ii<bundled_requests.length;ii++){var path=bundled_requests[ii][0],request=bundled_requests[ii][1];request.id=this.id;if(responses[ii][0]!=path){request.invokeResponseHandler({transportError:'Wrong response order in bundled request to '+path});continue;}var asyncResponse=request.interpretResponse(responses[ii][1]);request.invokeResponseHandler(asyncResponse);}}).setTransportErrorHandler(function(response){var paths=[],interp={transportError:response.errorDescription};for(var ii=0;ii<bundled_requests.length;ii++){var path=bundled_requests[ii][0],request=bundled_requests[ii][1];paths.push(path);request.id=this.id;request.invokeResponseHandler(interp);}}).send();return request;},bootstrap:function(href,elem,is_post){var method='GET',readonly=true,data={};if(is_post||elem&&(elem.rel=='async-post'||elem.getAttribute&&elem.getAttribute('forcemethod')=='post')){method='POST';readonly=false;if(href){href=URI(href);data=href.getQueryData();href.setQueryData({});}}var status_elem=Parent.byClass(elem,'stat_elem')||elem;if(status_elem&&CSS.hasClass(status_elem,'async_saving'))return false;var async=new AsyncRequest(href).setReadOnly(readonly).setMethod(method).setData(data).setNectarModuleDataSafe(elem).setRelativeTo(elem).setHandler(function(response){Event.fire(elem,'success',{response:response});}).setErrorHandler(function(response){if(Event.fire(elem,'error',{response:response})!==false)AsyncResponse.defaultErrorHandler(response);});if(status_elem){async.setStatusElement(status_elem);var status_class=status_elem.getAttribute('data-status-class');status_class&&async.setStatusClass(status_class);}async.send();return false;},post:function(href,data){new AsyncRequest(href).setReadOnly(false).setMethod('POST').setData(data).send();return false;},getLastId:function(){return AsyncRequest._last_id;},_JSONPReceivers:{},_allBundledRequests:[],_bundleTimer:null,suppressOnloadToken:{},_last_id:2,_id_threshold:2,_inflight:[],_inflightAdd:bagofholding,_inflightPurge:bagofholding,_inflightEnable:function(){if(ua.ie()){copyProperties(AsyncRequest,{_inflightAdd:function(ar){this._inflight.push(ar);},_inflightPurge:function(){AsyncRequest._inflight=AsyncRequest._inflight.filter(function(ar){return ar.transport&&ar.transport.readyState<4;});}});onunloadRegister(function(){AsyncRequest._inflight.each(function(ar){if(ar.transport&&ar.transport.readyState<4){ar.transport.abort();delete ar.transport;}});});}}});copyProperties(AsyncRequest.prototype,{setMethod:function(m){this.method=m.toString().toUpperCase();return this;},getMethod:function(){return this.method;},setData:function(obj){this.data=obj;return this;},_setDataHash:function(){if(this.method!='POST'||!this.getOption('tfbEndpoint')||this.data.phstamp)return;var input_len=URI.implodeQuery(this.data).length,numeric_csrf_value='';for(var ii=0;ii<this.data.fb_dtsg.length;ii++)numeric_csrf_value+=this.data.fb_dtsg.charCodeAt(ii);this.data.phstamp='1'+numeric_csrf_value+input_len;},setFile:function(file){this.file=file;return this;},getData:function(){return this.data;},setContextData:function(key,value,enabled){enabled=enabled===undefined?true:enabled;if(enabled)this.context['_log_'+key]=value;return this;},_setUserActionID:function(){var ue=window.ArbiterMonitor&&ArbiterMonitor.getUE()||'-';this.userActionID=(window.EagleEye&&EagleEye.getSessionID()||'-')+'/'+ue;},setURI:function(uri){var uri_obj=URI(uri);if(this.getOption('useIframeTransport')&&!uri_obj.isFacebookURI())return this;if(!this.getOption('jsonp')&&!this.getOption('useIframeTransport')&&!uri_obj.isSameOrigin())return this;this._setUserActionID();if(!uri||uri_obj.isEmpty()){if(window.send_error_signal&&window.get_error_stack){var data={err_code:1013,vip:'-',duration:0,xfb_ip:'-',path:window.location.href,aid:this.userActionID};send_error_signal('async_error',JSON.stringify(data));send_error_signal('async_xport_stack','1013:'+window.location.href+'::'+get_error_stack());}return this;}this.uri=uri_obj;return this;},getURI:function(){return this.uri.toString();},setInitialHandler:function(fn){this.initialHandler=fn;return this;},setHandler:function(fn){if(!(typeof(fn)!='function'))this.handler=fn;return this;},getHandler:function(){return this.handler;},setErrorHandler:function(fn){if(!(typeof(fn)!='function'))this.errorHandler=fn;return this;},setTransportErrorHandler:function(fn){this.transportErrorHandler=fn;return this;},getErrorHandler:function(){return this.errorHandler;},getTransportErrorHandler:function(){return this.transportErrorHandler;},setTimeoutHandler:function(timeout,fn){if(!(typeof(fn)!='function')){this.timeout=timeout;this.timeoutHandler=fn;}return this;},resetTimeout:function(timeout){if(!(this.timeoutHandler===null))if(timeout===null){this.timeout=null;clearTimeout(this.timer);this.timer=null;}else{var clear_on_quickling_event=!this._allowCrossPageTransition;this.timeout=timeout;clearTimeout(this.timer);this.timer=this._handleTimeout.bind(this).defer(this.timeout,clear_on_quickling_event);}return this;},_handleTimeout:function(){this.abandon();this.timeoutHandler(this);},setNewSerial:function(){this.id=++AsyncRequest._last_id;return this;},setFinallyHandler:function(fn){this.finallyHandler=fn;return this;},getServerDialogCancelHandler:function(){return this.serverDialogCancelHandler;},setServerDialogCancelHandler:function(fn){this.serverDialogCancelHandler=fn;return this;},setPreBootloadHandler:function(fn){this.preBootloadHandler=fn;return this;},setReadOnly:function(readOnly){if(!(typeof(readOnly)!='boolean'))this.readOnly=readOnly;return this;},setFBMLForm:function(){this.writeRequiredParams=["fb_sig"];return this;},getReadOnly:function(){return this.readOnly;},setRelativeTo:function(element){this.relativeTo=element;return this;},getRelativeTo:function(){return this.relativeTo;},setStatusClass:function(c){this.statusClass=c;return this;},setStatusElement:function(element){this.statusElement=element;return this;},getStatusElement:function(){return ge(this.statusElement);},isRelevant:function(){if(this._allowCrossPageTransition)return true;if(!this.id)return true;return this.id>AsyncRequest._id_threshold;},clearStatusIndicator:function(){var statusElem=this.getStatusElement();if(statusElem){CSS.removeClass(statusElem,'async_saving');CSS.removeClass(statusElem,this.statusClass);}},addStatusIndicator:function(){var statusElem=this.getStatusElement();if(statusElem){CSS.addClass(statusElem,'async_saving');CSS.addClass(statusElem,this.statusClass);}},specifiesWriteRequiredParams:function(){return this.writeRequiredParams.every(function(param){this.data[param]=this.data[param]||Env[param]||(ge(param)||{}).value;if(this.data[param]!==undefined)return true;return false;},this);},setOption:function(opt,v){if(typeof(this.option[opt])!='undefined')this.option[opt]=v;return this;},getOption:function(opt){typeof(this.option[opt])=='undefined';return this.option[opt];},abort:function(){if(this.transport){var old_handler=this.getTransportErrorHandler();this.setOption('suppressErrorAlerts',true);this.setTransportErrorHandler(bagofholding);this._requestAborted=1;this.transport.abort();this.setTransportErrorHandler(old_handler);}},abandon:function(){clearTimeout(this.timer);this.setOption('suppressErrorAlerts',true).setHandler(bagofholding).setErrorHandler(bagofholding).setTransportErrorHandler(bagofholding);if(this.transport){this._requestAborted=1;this.transport.abort();}},setNectarData:function(nctrParams){if(nctrParams){if(this.data.nctr===undefined)this.data.nctr={};copyProperties(this.data.nctr,nctrParams);}return this;},setNectarModuleDataSafe:function(elem){if(this.setNectarModuleData)this.setNectarModuleData(elem);return this;},setNectarImpressionIdSafe:function(){if(this.setNectarImpressionId)this.setNectarImpressionId();return this;},setAllowCrossPageTransition:function(allow){this._allowCrossPageTransition=!!allow;if(this.timer)this.resetTimeout(this.timeout);return this;},send:function(isRetry){isRetry=isRetry||false;if(!this.uri)return false;!this.errorHandler&&!this.getOption('suppressErrorHandlerWarning');if(this.getOption('jsonp')&&this.method!='GET')this.setMethod('GET');if(this.getOption('useIframeTransport')&&this.method!='GET')this.setMethod('GET');this.timeoutHandler!==null&&(this.getOption('jsonp')||this.getOption('useIframeTransport'));if(!this.getReadOnly()){this.specifiesWriteRequiredParams();if(this.method!='POST')return false;}if(this.method=='POST'&&this.getOption('tfbEndpoint')){this.data.fb_dtsg=Env.fb_dtsg;this.data.lsd=Cookie.get('lsd');}if(!isEmpty(this.context)&&this.getOption('tfbEndpoint')){copyProperties(this.data,this.context);this.data.ajax_log=1;}if(window.Env&&Env.force_param)copyProperties(this.data,Env.force_param);if(!this.getReadOnly()&&this.getOption('tfbEndpoint')&&this.method=='POST'&&this.data.post_form_id_source===undefined)this.data.post_form_id_source='AsyncRequest';if(window.Env)this.data.__user=Env.user;this._setUserActionID();if(this.getOption('bundle')&&AsyncRequest._bundleRequest(this))return true;this.setNewSerial();if(this.getOption('tfbEndpoint')){this.uri.addQueryData({__a:1});if(!this.getOption('asynchronous'))this.uri.addQueryData({__s:1});if(Env.fb_isb)this.uri.addQueryData({fb_isb:Env.fb_isb});}this.finallyHandler=async_callback(this.finallyHandler,'final');var uri_str,query;if(this.method=='GET'||this.file){uri_str=this.uri.addQueryData(this.data).toString();query='';}else{uri_str=this.uri.toString();this._setDataHash();query=URI.implodeQuery(this.data);}if(this.getOption('jsonp')||this.getOption('useIframeTransport')){uri_str=this.uri.addQueryData({__a:this.id}).toString();AsyncRequest._JSONPReceivers[this.id]=async_callback(bind(this,'onjsonpresponse'),'json');if(this.getOption('jsonp')){(function(){document.body.appendChild($N('script',{src:uri_str,type:"text/javascript"}));}).bind(this).defer();}else{var style={position:'absolute',top:'-9999999px',width:'80px',height:'80px'};this.transportIframe=$N('iframe',{src:"javascript:''",style:style});document.body.appendChild(this.transportIframe);this.transportIframe.src=uri_str;}return true;}if(this.transport)return false;var transport=null;try{transport=new XMLHttpRequest();}catch(ignored){}if(!transport)try{transport=new ActiveXObject("Msxml2.XMLHTTP");}catch(ignored){}if(!transport)try{transport=new ActiveXObject("Microsoft.XMLHTTP");}catch(ignored){}if(!transport)return false;transport.onreadystatechange=async_callback(bind(this,'onstatechange'),'xhr');if(!isRetry)this.remainingRetries=this.getOption('retries');if(window.send_error_signal||window.ArbiterMonitor)this._sendTimeStamp=this._sendTimeStamp||Date.now();this.transport=transport;try{this.transport.open(this.method,uri_str,this.getOption('asynchronous'));}catch(ex){return false;}var svn_rev=Env.svn_rev;if(svn_rev)this.transport.setRequestHeader('X-SVN-Rev',String(svn_rev));if(this.method=='POST')this.transport.setRequestHeader('Content-Type','application/x-www-form-urlencoded');this.addStatusIndicator();query=this.file||query;this.transport.send(query);if(this.timeout!==null)this.resetTimeout(this.timeout);AsyncRequest._inflightAdd(this);return true;},_displayServerDialog:function(model,is_confirmation){Bootloader.loadComponents('dialog',function(){var dialog=new Dialog(model);if(is_confirmation)dialog.setHandler(this._displayConfirmationHandler.bind(this,dialog));dialog.setCancelHandler(function(){var handler=this.getServerDialogCancelHandler();if(handler)handler.apply(this,arguments);this.finallyHandler.apply(this,arguments);}.bind(this)).setCausalElement(this.relativeTo).setCloseHandler(this.finallyHandler.bind(this)).show();}.bind(this));},_displayConfirmationHandler:function(dialog){this.data.confirmed=1;copyProperties(this.data,dialog.getFormData());this.send();}});module.exports=AsyncRequest;});
__e("legacy:async",["AsyncRequest","AsyncResponse"],function(a,b,c,d){a.AsyncRequest=b('AsyncRequest');a.AsyncResponse=b('AsyncResponse');},3);
__e("AsyncRequestNectarLogging",["string-extensions","AsyncRequest","Env","copyProperties"],function(a,b,c,d,e,f){b("string-extensions");var g=b("AsyncRequest"),h=b("Env"),i=b("copyProperties");i(g.prototype,{setNectarModuleData:function(j){if(this.method=='POST'){var k=h.module;if(j&&k===undefined){var l={fbpage_fan_confirm:1},m=null;for(var n=j;n&&n!=document.body;n=n.parentNode){if(!n.id||typeof n.id!=='string')continue;if(n.id.startsWith('pagelet_')){k=n.id;break;}if(!m&&l[n.id])m=n.id;}if(k===undefined&&m)k=m;}if(k!==undefined){if(this.data.nctr===undefined)this.data.nctr={};this.data.nctr._mod=k;}}},setNectarImpressionId:function(){if(this.method=='POST'){var j=h.impid;if(j!==undefined){if(this.data.nctr===undefined)this.data.nctr={};this.data.nctr._impid=j;}}}});});
__e("legacy:async-postlude",["AsyncRequestNectarLogging"],function(a,b,c,d){b('AsyncRequestNectarLogging');},3);
__e("deferUntil",[],function(a,b,c,d,e,f){function g(h,i,j,k,l){var m=i();if(m){h(m);return null;}var n=Date.now(),o=setInterval(function(){m=i();if(!m){if(!j||(j<new Date()-n))return;l&&l();}clearInterval(o);h(m);},20,k);return o;}e.exports=g;});
__e("legacy:function-utils",["FunctionUtils","deferUntil"],function(a,b,c,d){var e=b('FunctionUtils');a.debounce=e.debounce;a.throttle=e.throttle;a.defer_until=b('deferUntil');},3);
__e("XD",["function-extensions","copyProperties","ua","URI","Arbiter"],function(a,b,c,d,e,f){b("function-extensions");var g=b("copyProperties"),h=b("ua"),i=b("URI"),j=b("Arbiter"),k={_callbacks:[],_opts:{autoResize:false,allowShrink:true,channelUrl:null,hideOverflow:false,newResizeMethod:false,resizeTimeout:100,resizeWidth:false,expectResizeAck:false,resizeAckTimeout:6000},_lastResizeAckId:0,_resizeCount:0,_resizeTimestamp:0,init:function(m){this._opts=g(g({},this._opts),m);if(this._opts.autoResize)this._startResizeMonitor();j.subscribe('Connect.Unsafe.resize.ack',function(n,o){if(!o.id)o.id=this._resizeCount;if(o.id>this._lastResizeAckId)this._lastResizeAckId=o.id;}.bind(this));},send:function(m,n){n=n||this._opts.channelUrl;if(!n)return;if(n.substr(0,4)!='http')return;var o=n+'&'+i.implodeQuery(m),p='f'+(Math.random()*(1<<30)).toString(16).replace('.',''),q=document.body.appendChild(document.createElement('div')),r=false;q.style.position='absolute';q.style.top='-10000px';q.style.width='1px';q.style.height='1px';k._callbacks[p]=function(){if(r){(function(){q.parentNode.removeChild(q);}).defer(3000);delete k._callbacks[p];}};if(h.ie()){var s,t=document.createElement('div');s='<iframe onload="XD._callbacks.'+p+'()"></iframe>';t.innerHTML=s;t.firstChild.setAttribute('src',o);s=t.innerHTML;q.innerHTML='<iframe src="javascript:false"></iframe>';r=true;(function(){q.innerHTML=s;}).defer();}else{var u=document.createElement('iframe');u.onload=k._callbacks[p];q.appendChild(u);r=true;u.src=o;}},_computeSize:function(){return {width:this._opts.resizeWidth?this._calcWidth(k.forced_min_width):0,height:this._calcHeight(this._opts.newResizeMethod)};},_calcHeight:function(m){var n=document.body,o=document.documentElement,p=0;if(m){p=Math.max(Math.max(n.offsetHeight,n.scrollHeight)+n.offsetTop,Math.max(o.offsetHeight,o.scrollHeight)+o.offsetTop);}else{if(h.ie()){p=Math.max(n.offsetHeight,n.scrollHeight)+n.offsetTop;}else p=o.offsetHeight+o.offsetTop;if(window.Dialog)p=Math.max(p,Dialog.max_bottom);}return p;},_calcWidth:function(m){var n=document.body,o=document.documentElement,p=0;if(n.offsetWidth<n.scrollWidth){p=n.scrollWidth+n.offsetLeft;}else{var q=n.childNodes;for(var r=0;r<q.length;r++){var s=q[r],t=s.offsetWidth+s.offsetLeft;if(t>p)p=t;}}if(m)p=Math.max(p,m);if(o.clientLeft>0)p+=(o.clientLeft*2);if(o.clientTop>0)height+=(o.clientTop*2);return p;},_startResizeMonitor:function(){var m,n=document.documentElement;if(this._opts.hideOverflow){n.style.overflow='hidden';document.body.style.overflow='hidden';}setInterval((function(){var o=this._computeSize(),p=Date.now(),q=this._lastResizeAckId<this._resizeCount&&(p-this._resizeTimestamp)>this._opts.resizeAckTimeout;if(!m||(this._opts.expectResizeAck&&q)||(this._opts.allowShrink&&m.width!=o.width)||(!this._opts.allowShrink&&m.width<o.width)||(this._opts.allowShrink&&m.height!=o.height)||(!this._opts.allowShrink&&m.height<o.height)){m=o;this._resizeCount++;this._resizeTimestamp=p;var r={type:'resize',height:o.height,ackData:{id:this._resizeCount}};if(o.width&&o.width!=0)r.width=o.width;try{if(i(document.referrer).isFacebookURI()&&window.parent!=window&&window.name&&window.parent.location&&window.parent.location.toString&&i(window.parent.location).isFacebookURI()){var t=window.parent.document.getElementsByTagName('iframe');for(var u=0;u<t.length;u=u+1)if(t[u].name==window.name){if(this._opts.resizeWidth)t[u].style.width=r.width+'px';t[u].style.height=r.height+'px';}}this.send(r);}catch(s){this.send(r);}}}).bind(this),this._opts.resizeTimeout);}},l=g({},k);e.exports.UnverifiedXD=l;e.exports.XD=k;a.UnverifiedXD=l;a.XD=k;});
__e("legacy:connect-xd",["XD"],function(a,b,c,d){a.UnverifiedXD=b('XD').UnverifiedXD;a.XD=b('XD').XD;},3);
__e("legacy:uri",["URI"],function(a,b,c,d){a.URI=b('URI');},3);
WindowComm={_callbacks:{},makeHandler:function(a,b){b=b||'opener';var c='f'+(Math.random()*(1<<30)).toString(16).replace('.','');WindowComm._callbacks[c]=a;return new URI('/connect/window_comm.php').setQueryData({_id:c,_relation:b}).getQualifiedURI().toString();},_recv:function(a){var b=new URI(a).getQueryData();WindowComm._callbacks[b._id](b);}};
__e("Vector",["dom","ua","event-extensions","copyProperties"],function(a,b,c,d,e,f){var g=b("dom"),h=b("ua"),i=b("event-extensions").$E,j=b("copyProperties");function k(l,m,n){j(this,{x:parseFloat(l),y:parseFloat(m),domain:n||'pure'});}j(k.prototype,{toString:function(){return '('+this.x+', '+this.y+')';},add:function(l,m){if(arguments.length==1){if(l.domain!='pure')l=l.convertTo(this.domain);return this.add(l.x,l.y);}var n=parseFloat(l),o=parseFloat(m);return new k(this.x+n,this.y+o,this.domain);},mul:function(l,m){if(typeof m=="undefined")m=l;return new k(this.x*l,this.y*m,this.domain);},sub:function(l,m){if(arguments.length==1){return this.add(l.mul(-1));}else return this.add(-l,-m);},distanceTo:function(l){return this.sub(l).magnitude();},magnitude:function(){return Math.sqrt((this.x*this.x)+(this.y*this.y));},convertTo:function(l){if(l!='pure'&&l!='viewport'&&l!='document')return new k(0,0);if(l==this.domain)return new k(this.x,this.y,this.domain);if(l=='pure')return new k(this.x,this.y);if(this.domain=='pure')return new k(0,0);var m=k.getScrollPosition('document'),n=this.x,o=this.y;if(this.domain=='document'){n-=m.x;o-=m.y;}else{n+=m.x;o+=m.y;}return new k(n,o,l);},setElementPosition:function(l){var m=this.convertTo('document');l.style.left=parseInt(m.x)+'px';l.style.top=parseInt(m.y)+'px';return this;},setElementDimensions:function(l){return this.setElementWidth(l).setElementHeight(l);},setElementWidth:function(l){l.style.width=parseInt(this.x,10)+'px';return this;},setElementHeight:function(l){l.style.height=parseInt(this.y,10)+'px';return this;},scrollElementBy:function(l){if(l==document.body){window.scrollBy(this.x,this.y);}else{l.scrollLeft+=this.x;l.scrollTop+=this.y;}return this;}});j(k,{getEventPosition:function(l,m){m=m||'document';l=i(l);var n=g.getDocumentScrollElement(),o=l.pageX||(l.clientX+n.scrollLeft),p=l.pageY||(l.clientY+n.scrollTop),q=new k(o,p,'document');return q.convertTo(m);},getScrollPosition:function(l){l=l||'document';var m=g.getDocumentScrollElement(),n=m.scrollLeft,o=m.scrollTop;return new k(n,o,'document').convertTo(l);},getElementPosition:function(l,m){m=m||'document';if(!l)return;if(!('getBoundingClientRect' in l))return new k(0,0,'document');var n=l.getBoundingClientRect(),o=document.documentElement,p=Math.round(n.left)-o.clientLeft,q=Math.round(n.top)-o.clientTop;return new k(p,q,'viewport').convertTo(m);},getElementDimensions:function(l){return new k(l.offsetWidth||0,l.offsetHeight||0);},getViewportDimensions:function(){var l=(window&&window.innerWidth)||(document&&document.documentElement&&document.documentElement.clientWidth)||(document&&document.body&&document.body.clientWidth)||0,m=(window&&window.innerHeight)||(document&&document.documentElement&&document.documentElement.clientHeight)||(document&&document.body&&document.body.clientHeight)||0;return new k(l,m,'viewport');},getDocumentDimensions:function(l){l=l||document;var m=g.getDocumentScrollElement(l);if(m===l.body&&h.firefox())m=l.documentElement;var n=m.scrollWidth||0,o=m.scrollHeight||0;return new k(n,o,'document');},deserialize:function(l){var m=l.split(',');return new k(m[0],m[1]);}});e.exports=k;});
__e("PopupWindow",["copyProperties","ua","Vector","dom"],function(a,b,c,d,e,f){var g=b("copyProperties"),h=b("ua"),i=b("Vector"),j=b("dom"),k={_opts:{allowShrink:true,strategy:'vector',timeout:100,widthElement:null},init:function(l){copy_properties(k._opts,l);setInterval(k._resizeCheck,k._opts.timeout);},_resizeCheck:function(){var l=i.getViewportDimensions(),m=k._getDocumentSize(),n=m.y-l.y,o=m.x-l.x;if(o<0&&!k._opts.widthElement)o=0;if(!k._opts.allowShrink&&n<0)n=0;if(n||o)try{if(window.console&&window.console.firebug)console.log('Resizing will not work in firefox with firebug enabled. '+'See https://bugzilla.mozilla.org/show_bug.cgi?id=691693');window.resizeBy(o,n);if(o)window.moveBy(o/-2,0);}catch(p){}},_getDocumentSize:function(){var l=i.getDocumentDimensions();if(k._opts.strategy==='offsetHeight')l.y=document.body.offsetHeight;if(k._opts.widthElement){var m=j.scry(document.body,k._opts.widthElement)[0];if(m)l.x=i.getElementDimensions(m).x;}if(window.Dialog&&Dialog.max_bottom&&Dialog.max_bottom>l.y)l.y=Dialog.max_bottom;return l;},open:function(l,m,n){var o=typeof window.screenX!='undefined'?window.screenX:window.screenLeft,p=typeof window.screenY!='undefined'?window.screenY:window.screenTop,q=typeof window.outerWidth!='undefined'?window.outerWidth:document.body.clientWidth,r=typeof window.outerHeight!='undefined'?window.outerHeight:(document.body.clientHeight-22),s=parseInt(o+((q-n)/2),10),t=parseInt(p+((r-m)/2.5),10),u=('width='+n+',height='+m+',left='+s+',top='+t);return window.open(l,'_blank',u);}};e.exports=k;});
__e("legacy:popup-resizer",["PopupWindow"],function(a,b,c,d){a.PopupResizer=b('PopupWindow');},3);
ConnectLogin={init:function(a){this.appID=a.appID;this.addToProfile=a.addToProfile;this.oneClick=a.oneClick;this.channelUrl=a.channelUrl;XD.init(a);},login:function(a,b,c){if(this.oneClick&&!b){this._oneClick(a);}else this._openPopup(a,b,c);},logout:function(){XD.send({type:'logout'});},_oneClick:function(a){new AsyncRequest().setURI('/ajax/api/tos.php').setData({app_id:this.appID,grant_perm:1}).setHandler(function(b){ConnectLogin._refreshLoginStatus();a&&a();}).send();},_openPopup:function(a,b,c){c=c||{};var d=WindowComm.makeHandler(function(h){ConnectLogin._closePopup();if(ConnectLogin.appID)ConnectLogin._refreshLoginStatus();a&&a();}),e=WindowComm.makeHandler(function(h){ConnectLogin._closePopup();}),f=new URI('/login.php');f.setQueryData({api_key:this.appID,next:d,channel_url:e,cancel_url:e,req_perms:b,v:'1.0',fbconnect:1,add_to_profile:this.addToProfile,display:'popup'});f.addQueryData(c);var g=this._getSize(c);this._popup=PopupResizer.open(f.toString(),g.height,g.width);},_closePopup:function(){if(this._popup){this._popup.close();this._popup=null;}},_refreshLoginStatus:function(){if(this.channelUrl){XD.send({type:'refreshLoginStatus'});}else window.location.reload();},_getSize:function(a){if(a.social_plugin=='registration'){return {width:640,height:370};}else return {width:610,height:280};}};
__e("legacy:intl-core",["tx","Intl"],function(a,b,c,d){var e=b('tx'),f=b('Intl');a.tx=e;a._tx=e._;a.intl_ends_in_punct=f.endsInPunct;a.intl_phonological_rules=f.phonologicalRules;},3);
__e("legacy:vector",["Vector"],function(a,b,c,d){a.Vector2=b('Vector');},3);
__e("legacy:dom-html",["HTML"],function(a,b,c,d){a.HTML=b('HTML');},3);
__e("legacy:object-core-utils",["isEmpty","copyProperties"],function(a,b,c,d){a.is_empty=b('isEmpty');a.copy_properties=b('copyProperties');function e(f,g){return copy_properties(window[f]||(window[f]={}),g);}a.add_properties=e;},3);
InitialJSLoader=window.InitialJSLoader||{INITIAL_JS_READY:'BOOTLOAD/JSREADY',load:function(a){InitialJSLoader.callback=Bootloader.loadResources(a,InitialJSLoader.callback);},callback:Arbiter.registerCallback(function(){Arbiter.inform(InitialJSLoader.INITIAL_JS_READY,true,Arbiter.BEHAVIOR_STATE);},[OnloadEvent.ONLOAD_DOMCONTENT_CALLBACK])};
__e("legacy:util",["Util"],function(a,b,c,d){a.Util=b('Util');},3);
__e("legacy:errorutils",["ErrorUtils"],function(a,b,c,d){a.ErrorUtils=b('ErrorUtils');},3);
function _onloadHook(){!window.loaded&&window.CavalryLogger&&CavalryLogger.getInstance().setTimeStamp('t_prehooks');_runHooks('onloadhooks');!window.loaded&&window.CavalryLogger&&CavalryLogger.getInstance().setTimeStamp('t_hooks');window.loaded=true;Arbiter.inform('uipage_onload',true,Arbiter.BEHAVIOR_STATE);}function _onafterloadHook(){_runHooks('onafterloadhooks');window.afterloaded=true;}function _runHook(a,b){return ErrorUtils.applyWithGuard(a,null,null,function(c){c.event_type=b;c.category='runhook';});}function _runHooks(a){var b=a=='onbeforeleavehooks'||a=='onbeforeunloadhooks',c=null;do{var d=window[a];if(!b)window[a]=null;if(!d)break;for(var e=0;e<d.length;e++)if(b){c=c||_runHook(d[e],a);}else _runHook(d[e],a);if(b)break;}while(window[a]);if(b&&c)return c;}function keep_window_set_as_loaded(){if(window.loaded==false){window.loaded=true;_runHooks('onloadhooks');}if(window.afterloaded==false){window.afterloaded=true;_runHooks('onafterloadhooks');}}Arbiter.registerCallback(_onloadHook,[OnloadEvent.ONLOAD_DOMCONTENT_CALLBACK,InitialJSLoader.INITIAL_JS_READY]);Arbiter.registerCallback(_onafterloadHook,[OnloadEvent.ONLOAD_DOMCONTENT_CALLBACK,OnloadEvent.ONLOAD_CALLBACK,InitialJSLoader.INITIAL_JS_READY]);Arbiter.subscribe(OnloadEvent.ONBEFOREUNLOAD,function(a,b){b.warn=_runHooks('onbeforeleavehooks')||_runHooks('onbeforeunloadhooks');if(!b.warn){window.loaded=false;window.afterloaded=false;}},Arbiter.SUBSCRIBE_NEW);Arbiter.subscribe(OnloadEvent.ONUNLOAD,function(a,b){_runHooks('onunloadhooks');},Arbiter.SUBSCRIBE_NEW);
var PlatformOptInPopup=function(){};copy_properties(PlatformOptInPopup,{DIALOG_URL:'/connect/uiserver.php',DIALOG_WIDTH:420,DIALOG_HEIGHT:450,APP_ID:127760087237610,open:function(a,b,c){if(!a)a='generic';if(!b)b='opt.in';var d=new URI(PlatformOptInPopup.DIALOG_URL);d.addQueryData({social_plugin:a,method:b,display:'popup',secure:URI.getRequestURI().isSecure(),app_id:PlatformOptInPopup.APP_ID});if(c)d.addQueryData(c);return PopupResizer.open(d.toString(),PlatformOptInPopup.DIALOG_WIDTH,PlatformOptInPopup.DIALOG_HEIGHT);}});
__e("animation",["css"],function(a,b,c,d,e,f){var g=b('css');function h(i){if(i==undefined)return;if(a==this){return new h(i);}else{this.obj=i;this._reset_state();this.queue=[];this.last_attr=null;}}h.resolution=20;h.offset=0;h.prototype._reset_state=function(){this.state={attrs:{},duration:500};};h.prototype.stop=function(){this._reset_state();this.queue=[];return this;};h.prototype._build_container=function(){if(this.container_div){this._refresh_container();return;}if(this.obj.firstChild&&this.obj.firstChild.__animation_refs){this.container_div=this.obj.firstChild;this.container_div.__animation_refs++;this._refresh_container();return;}var i=document.createElement('div');i.style.padding='0px';i.style.margin='0px';i.style.border='0px';i.__animation_refs=1;var j=this.obj.childNodes;while(j.length)i.appendChild(j[0]);this.obj.appendChild(i);this._orig_overflow=this.obj.style.overflow;this.obj.style.overflow='hidden';this.container_div=i;this._refresh_container();};h.prototype._refresh_container=function(){this.container_div.style.height='auto';this.container_div.style.width='auto';this.container_div.style.height=this.container_div.offsetHeight+'px';this.container_div.style.width=this.container_div.offsetWidth+'px';};h.prototype._destroy_container=function(){if(!this.container_div)return;if(!--this.container_div.__animation_refs){var i=this.container_div.childNodes;while(i.length)this.obj.appendChild(i[0]);this.obj.removeChild(this.container_div);}this.container_div=null;this.obj.style.overflow=this._orig_overflow;};h.ATTR_TO=1;h.ATTR_BY=2;h.ATTR_FROM=3;h.prototype._attr=function(i,j,k){i=i.replace(/-[a-z]/gi,function(m){return m.substring(1).toUpperCase();});var l=false;switch(i){case 'background':this._attr('backgroundColor',j,k);return this;case 'margin':j=h.parse_group(j);this._attr('marginBottom',j[0],k);this._attr('marginLeft',j[1],k);this._attr('marginRight',j[2],k);this._attr('marginTop',j[3],k);return this;case 'padding':j=h.parse_group(j);this._attr('paddingBottom',j[0],k);this._attr('paddingLeft',j[1],k);this._attr('paddingRight',j[2],k);this._attr('paddingTop',j[3],k);return this;case 'backgroundColor':case 'borderColor':case 'color':j=h.parse_color(j);break;case 'opacity':j=parseFloat(j,10);break;case 'height':case 'width':if(j=='auto'){l=true;}else j=parseInt(j,10);break;case 'borderWidth':case 'lineHeight':case 'fontSize':case 'marginBottom':case 'marginLeft':case 'marginRight':case 'marginTop':case 'paddingBottom':case 'paddingLeft':case 'paddingRight':case 'paddingTop':case 'bottom':case 'left':case 'right':case 'top':case 'scrollTop':case 'scrollLeft':j=parseInt(j,10);break;default:throw new Error(i+' is not a supported attribute!');}if(this.state.attrs[i]===undefined)this.state.attrs[i]={};if(l)this.state.attrs[i].auto=true;switch(k){case h.ATTR_FROM:this.state.attrs[i].start=j;break;case h.ATTR_BY:this.state.attrs[i].by=true;case h.ATTR_TO:this.state.attrs[i].value=j;break;}};h._get_box_width=function(i){var j=parseInt(g.getStyle(i,'paddingLeft'),10),k=parseInt(g.getStyle(i,'paddingRight'),10),l=parseInt(g.getStyle(i,'borderLeftWidth'),10),m=parseInt(g.getStyle(i,'borderRightWidth'),10);return i.offsetWidth-(j?j:0)-(k?k:0)-(l?l:0)-(m?m:0);};h._get_box_height=function(i){var j=parseInt(g.getStyle(i,'paddingTop'),10),k=parseInt(g.getStyle(i,'paddingBottom'),10),l=parseInt(g.getStyle(i,'borderTopWidth'),10),m=parseInt(g.getStyle(i,'borderBottomWidth'),10);return i.offsetHeight-(j?j:0)-(k?k:0)-(l?l:0)-(m?m:0);};h.prototype.to=function(i,j){if(j===undefined){this._attr(this.last_attr,i,h.ATTR_TO);}else{this._attr(i,j,h.ATTR_TO);this.last_attr=i;}return this;};h.prototype.by=function(i,j){if(j===undefined){this._attr(this.last_attr,i,h.ATTR_BY);}else{this._attr(i,j,h.ATTR_BY);this.last_attr=i;}return this;};h.prototype.from=function(i,j){if(j===undefined){this._attr(this.last_attr,i,h.ATTR_FROM);}else{this._attr(i,j,h.ATTR_FROM);this.last_attr=i;}return this;};h.prototype.duration=function(i){this.state.duration=i?i:0;return this;};h.prototype.checkpoint=function(i,j){if(i===undefined)i=1;this.state.checkpoint=i;this.queue.push(this.state);this._reset_state();this.state.checkpointcb=j;return this;};h.prototype.blind=function(){this.state.blind=true;return this;};h.prototype.hide=function(){this.state.hide=true;return this;};h.prototype.show=function(){this.state.show=true;return this;};h.prototype.ease=function(i){this.state.ease=i;return this;};h.prototype.go=function(){var i=(new Date()).getTime();this.queue.push(this.state);for(var j=0;j<this.queue.length;j++){this.queue[j].start=i-h.offset;if(this.queue[j].checkpoint)i+=this.queue[j].checkpoint*this.queue[j].duration;}h.push(this);return this;};h.prototype._show=function(){g.show(this.obj);};h.prototype._hide=function(){g.hide(this.obj);};h.prototype._frame=function(i){var j=true,k=false,l=false,m;function n(x){return document.documentElement[x]||document.body[x];}for(var o=0;o<this.queue.length;o++){var p=this.queue[o];if(p.start>i){j=false;continue;}if(p.checkpointcb){this._callback(p.checkpointcb,i-p.start);p.checkpointcb=null;}if(p.started===undefined){if(p.show)this._show();for(var q in p.attrs){if(p.attrs[q].start!==undefined)continue;switch(q){case 'backgroundColor':case 'borderColor':case 'color':m=h.parse_color(g.getStyle(this.obj,q=='borderColor'?'borderLeftColor':q));if(p.attrs[q].by){p.attrs[q].value[0]=Math.min(255,Math.max(0,p.attrs[q].value[0]+m[0]));p.attrs[q].value[1]=Math.min(255,Math.max(0,p.attrs[q].value[1]+m[1]));p.attrs[q].value[2]=Math.min(255,Math.max(0,p.attrs[q].value[2]+m[2]));}break;case 'opacity':m=g.getOpacity(this.obj);if(p.attrs[q].by)p.attrs[q].value=Math.min(1,Math.max(0,p.attrs[q].value+m));break;case 'height':m=h._get_box_height(this.obj);if(p.attrs[q].by)p.attrs[q].value+=m;break;case 'width':m=h._get_box_width(this.obj);if(p.attrs[q].by)p.attrs[q].value+=m;break;case 'scrollLeft':case 'scrollTop':m=(this.obj===document.body)?n(q):this.obj[q];if(p.attrs[q].by)p.attrs[q].value+=m;p['last'+q]=m;break;default:m=parseInt(g.getStyle(this.obj,q),10)||0;if(p.attrs[q].by)p.attrs[q].value+=m;break;}p.attrs[q].start=m;}if((p.attrs.height&&p.attrs.height.auto)||(p.attrs.width&&p.attrs.width.auto)){if(ua.firefox()<3)l=true;this._destroy_container();for(var q in {height:1,width:1,fontSize:1,borderLeftWidth:1,borderRightWidth:1,borderTopWidth:1,borderBottomWidth:1,paddingLeft:1,paddingRight:1,paddingTop:1,paddingBottom:1})if(p.attrs[q])this.obj.style[q]=p.attrs[q].value+(typeof p.attrs[q].value=='number'?'px':'');if(p.attrs.height&&p.attrs.height.auto)p.attrs.height.value=h._get_box_height(this.obj);if(p.attrs.width&&p.attrs.width.auto)p.attrs.width.value=h._get_box_width(this.obj);}p.started=true;if(p.blind)this._build_container();}var r=(i-p.start)/p.duration;if(r>=1){r=1;if(p.hide)this._hide();}else j=false;var s=p.ease?p.ease(r):r;if(!k&&r!=1&&p.blind)k=true;if(l&&this.obj.parentNode){var t=this.obj.parentNode,u=this.obj.nextSibling;t.removeChild(this.obj);}for(var q in p.attrs)switch(q){case 'backgroundColor':case 'borderColor':case 'color':this.obj.style[q]='rgb('+h.calc_tween(s,p.attrs[q].start[0],p.attrs[q].value[0],true)+','+h.calc_tween(s,p.attrs[q].start[1],p.attrs[q].value[1],true)+','+h.calc_tween(s,p.attrs[q].start[2],p.attrs[q].value[2],true)+')';break;case 'opacity':g.setStyle(this.obj,'opacity',h.calc_tween(s,p.attrs[q].start,p.attrs[q].value));break;case 'height':case 'width':this.obj.style[q]=s==1&&p.attrs[q].auto?'auto':h.calc_tween(s,p.attrs[q].start,p.attrs[q].value,true)+'px';break;case 'scrollLeft':case 'scrollTop':var v=this.obj===document.body;m=v?n(q):this.obj[q];if(p['last'+q]!==m){delete p.attrs[q];}else{var w=h.calc_tween(s,p.attrs[q].start,p.attrs[q].value,true);if(!v){w=this.obj[q]=w;}else{if(q=='scrollLeft'){a.scrollTo(w,n('scrollTop'));}else a.scrollTo(n('scrollLeft'),w);w=n(q);}p['last'+q]=w;}break;default:this.obj.style[q]=h.calc_tween(s,p.attrs[q].start,p.attrs[q].value,true)+'px';break;}if(r==1){this.queue.splice(o--,1);this._callback(p.ondone,i-p.start-p.duration);}}if(l)t[u?'insertBefore':'appendChild'](this.obj,u);if(!k&&this.container_div)this._destroy_container();return !j;};h.prototype.ondone=function(i){this.state.ondone=i;return this;};h.prototype._callback=function(i,j){if(i){h.offset=j;i.call(this);h.offset=0;}};h.calc_tween=function(i,j,k,l){return (l?parseInt:parseFloat)((k-j)*i+j,10);};h.parse_color=function(i){var j=/^#([a-f0-9]{1,2})([a-f0-9]{1,2})([a-f0-9]{1,2})$/i.exec(i);if(j){return [parseInt(j[1].length==1?j[1]+j[1]:j[1],16),parseInt(j[2].length==1?j[2]+j[2]:j[2],16),parseInt(j[3].length==1?j[3]+j[3]:j[3],16)];}else{var k=/^rgba? *\(([0-9]+), *([0-9]+), *([0-9]+)(?:, *([0-9]+))?\)$/.exec(i);if(k){if(k[4]==='0'){return [255,255,255];}else return [parseInt(k[1],10),parseInt(k[2],10),parseInt(k[3],10)];}else if(i=='transparent'){return [255,255,255];}else throw 'Named color attributes are not supported.';}};h.parse_group=function(i){i=trim(i).split(/ +/);if(i.length==4){return i;}else if(i.length==3){return [i[0],i[1],i[2],i[1]];}else if(i.length==2){return [i[0],i[1],i[0],i[1]];}else return [i[0],i[0],i[0],i[0]];};h.push=function(i){if(!h.active)h.active=[];h.active.push(i);if(h.active.length===1){if(!h.requestAnimationFrame){var j=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame;if(j)h.requestAnimationFrame=j.bind(a);}if(h.requestAnimationFrame){h.requestAnimationFrame(h._animate);}else h.timeout=setInterval(h._animate,h.resolution,false);}if(h.requestAnimationFrame)h._updateEndingTimer();h._animate(Date.now(),true);};h._updateEndingTimer=function(){if(!h.requestAnimationFrame)throw new Error('Ending timer only valid with requestAnimationFrame');var i=0;for(var j=0;j<h.active.length;j++){var k=h.active[j];for(var l=0;l<k.queue.length;l++){var m=k.queue[l].start+k.queue[l].duration;if(m>i)i=m;}}if(h.timeout){clearTimeout(h.timeout);delete h.timeout;}var n=Date.now();if(i>n)h.timeout=setTimeout(h._animate.shield(),i-n,false);};h._animate=function(i,j){i=i||Date.now();for(var k=(j===true)?h.active.length-1:0;k<h.active.length;k++)try{if(!h.active[k]._frame(i))h.active.splice(k--,1);}catch(l){h.active.splice(k--,1);}if(h.active.length===0){if(h.timeout){if(h.requestAnimationFrame){clearTimeout(h.timeout);}else clearInterval(h.timeout);delete h.timeout;}}else if(h.requestAnimationFrame)h.requestAnimationFrame(h._animate);};h.ease={};h.ease.begin=function(i){return Math.sin(Math.PI/2*(i-1))+1;};h.ease.end=function(i){return Math.sin(.5*Math.PI*i);};h.ease.both=function(i){return .5*Math.sin(Math.PI*(i-.5))+.5;};h.prependInsert=function(i,j){h.insert(i,j,DOM.prependContent);};h.appendInsert=function(i,j){h.insert(i,j,DOM.appendContent);};h.insert=function(i,j,k){g.setStyle(j,'opacity',0);k(i,j);h(j).from('opacity',0).to('opacity',1).duration(400).go();};a.animation=e.exports=h;},3);
__e("legacy:event-extensions",["event-extensions"],function(a,b,c,d){b('event-extensions');},3);
__e("legacy:array-utils",["ArrayUtils","hasArrayNature"],function(a,b,c,d){a.$A=b('ArrayUtils').createFrom;a.hasArrayNature=b('hasArrayNature');},3);
WidgetArbiter={_findSiblings:function(){if(WidgetArbiter._siblings)return;WidgetArbiter._siblings=[];for(var a=parent.frames.length-1;a>=0;a--)try{if(parent.frames[a]&&parent.frames[a].Arbiter&&parent.frames[a].Arbiter.inform)WidgetArbiter._siblings.push(parent.frames[a].Arbiter);}catch(b){}},inform:function(){WidgetArbiter._findSiblings();var a=$A(arguments);WidgetArbiter._siblings.each(function(b){b.inform.apply(b,a);});}};
__e("Locale",["css"],function(a,b,c,d,e,f){var g=b("css"),h={isRTL:function(){return 'rtl'===g.getStyle(document.body,'direction');}};e.exports=h;});
__e("legacy:intl-locale",["Locale"],function(a,b,c,d){a.intl_locale_is_rtl=b('Locale').isRTL;},3);
__e("Button",["event-extensions","css","DataStore","dom","Parent"],function(a,b,c,d,e,f){b('event-extensions');var g=b('css'),h=b('DataStore'),i=b('dom'),j=b('Parent'),k=(function(){var l='uiButtonDisabled',m='uiButtonDepressed',n='button:blocker',o='href';function p(s,t){var u=h.get(s,n);if(t){if(u){u.remove();h.remove(s,n);}}else if(!u)h.set(s,n,Event.listen(s,'click',bagof(false),Event.Priority.URGENT));}function q(s){var t=j.byClass(s,'uiButton');if(!t)throw new Error('invalid use case');return t;}function r(s){return i.isNodeOfType(s,'a');}return {getInputElement:function(s){s=q(s);if(r(s))throw new Error('invalid use case');return i.find(s,'input');},isEnabled:function(s){return !g.hasClass(q(s),l);},setEnabled:function(s,t){s=q(s);g.conditionClass(s,l,!t);if(r(s)){var u=s.href,v=h.get(s,o,'#');if(t){if(!u)s.href=v;}else{if(u&&u!==v)h.set(s,o,u);s.removeAttribute('href');}p(s,t);}else{var w=k.getInputElement(s);w.disabled=!t;p(w,t);}},setDepressed:function(s,t){g.conditionClass(q(s),m,t);},isDepressed:function(s){return g.hasClass(q(s),m);},setLabel:function(s,t){s=q(s);if(r(s)){var u=i.find(s,'span.uiButtonText');i.setContent(u,t);}else k.getInputElement(s).value=t;g.conditionClass(s,'uiButtonNoText',!t);},setIcon:function(s,t){if(!i.isNode(t))return;g.addClass(t,'customimg');s=q(s);var u=i.scry(s,'.img')[0];if(u!=t)if(u){i.replace(u,t);}else i.prependContent(s,t);}};})();a.Button=e.exports=k;},3);
__e("PlaceholderListener",["Arbiter","css-core","Parent"],function(a,b,c,d,e,f){var g=b('Arbiter'),h=b('css-core'),i=b('Parent'),j=document.documentElement,k=function(l){l=l||window.event;var m=l.target||l.srcElement,n=m.getAttribute('placeholder');if(n){var o=i.byClass(m,'focus_target');if('focus'==l.type||'focusin'==l.type){var p=m.value.replace(/\r\n/g,'\n'),q=n.replace(/\r\n/g,'\n');if(p==q&&h.hasClass(m,'DOMControl_placeholder')){m.value='';h.removeClass(m,'DOMControl_placeholder');}if(o){h.addClass(o,'child_is_active');h.addClass(o,'child_is_focused');h.addClass(o,'child_was_focused');g.inform('reflow');}}else{if(m.value===''){h.addClass(m,'DOMControl_placeholder');m.value=n;o&&h.removeClass(o,'child_is_active');m.style.direction='';}o&&h.removeClass(o,'child_is_focused');}}};if(j.addEventListener){j.addEventListener('focus',k,true);j.addEventListener('blur',k,true);}else j.onfocusin=j.onfocusout=k;});
__e("legacy:placeholder-form-listener",["PlaceholderListener"],function(a,b,c,d){b('PlaceholderListener');},3);
__e("DOMControl",["DataStore","dom-core"],function(a,b,c,d,e,f){var g=b("DataStore"),h=b("dom-core").$;function i(j){this.root=h(j);this.updating=false;g.set(j,'DOMControl',this);}i.prototype={getRoot:function(){return this.root;},beginUpdate:function(){if(this.updating)return false;this.updating=true;return true;},endUpdate:function(){this.updating=false;},update:function(j){if(!this.beginUpdate())return this;this.onupdate(j);this.endUpdate();},onupdate:function(j){}};i.getInstance=function(j){return g.get(j,'DOMControl');};e.exports=i;});
__e("InputSelection",["dom","Input"],function(a,b,c,d,e,f){var g=b("dom"),h=b("Input"),i={get:function(j){if(!document.selection)return {start:j.selectionStart,end:j.selectionEnd};var k=document.selection.createRange();if(k.parentElement()!==j)return {start:0,end:0};var l=j.value.length;if(g.isNodeOfType(j,'input')){return {start:-k.moveStart('character',-l),end:-k.moveEnd('character',-l)};}else{var m=k.duplicate();m.moveToElementText(j);m.setEndPoint('StartToEnd',k);var n=l-m.text.length;m.setEndPoint('StartToStart',k);return {start:l-m.text.length,end:n};}},set:function(j,k,l){if(typeof l=='undefined')l=k;if(document.selection){if(j.tagName=='TEXTAREA'){var m=(j.value.slice(0,k).match(/\r/g)||[]).length,n=(j.value.slice(k,l).match(/\r/g)||[]).length;k-=m;l-=m+n;}var o=j.createTextRange();o.collapse(true);o.moveStart('character',k);o.moveEnd('character',l-k);o.select();}else{j.selectionStart=k;j.selectionEnd=Math.min(l,j.value.length);h.focus(j);}}};e.exports=i;});
__e("enforceMaxLength",["event-extensions","function-extensions","dom","Input","InputSelection"],function(a,b,c,d,e,f){b("event-extensions");b("function-extensions");var g=b("dom"),h=b("Input"),i=b("InputSelection"),j=function(l,m){var n=h.getValue(l),o=n.length,p=o-m;if(p>0){var q,r;try{q=i.get(l);r=q.end;}catch(s){q=null;r=0;}if(r>=p)o=r;var t=o-p;if(t&&(n.charCodeAt(t-1)&64512)===55296)t--;r=Math.min(r,t);h.setValue(l,n.slice(0,t)+n.slice(o));if(q)i.set(l,Math.min(q.start,r),r);}},k=function(event){var l=event.getTarget(),m=l.getAttribute&&parseInt(l.getAttribute('maxlength'),10);if(m>0&&g.isNodeOfType(l,['input','textarea']))j.bind(null,l,m).defer();};Event.listen(document.documentElement,{keydown:k,paste:k});e.exports=j;});
__e("Input",["bootloader","css-core","dom","DOMControl"],function(a,b,c,d,e,f){var g=b("bootloader"),h=b("css-core"),i=b("dom"),j=b("DOMControl"),k=function(m){var n=m.getAttribute('maxlength');if(n&&n>0)d(["enforceMaxLength"],function(o){o(m,n);});},l={focus:function(m){try{m.focus();}catch(n){}},isEmpty:function(m){return !(/\S/).test(m.value||'')||h.hasClass(m,'DOMControl_placeholder');},getValue:function(m){return l.isEmpty(m)?'':m.value;},setValue:function(m,n){h.removeClass(m,'DOMControl_placeholder');m.value=n||'';k(m);var o=j.getInstance(m);o&&o.resetHeight&&o.resetHeight();},setPlaceholder:function(m,n){m.setAttribute('title',n);m.setAttribute('placeholder',n);if(m==document.activeElement)return;if(l.isEmpty(m)){h.conditionClass(m,'DOMControl_placeholder',n);m.value=n||'';}},reset:function(m){var n=m!==document.activeElement?(m.getAttribute('placeholder')||''):'';m.value=n;h.conditionClass(m,'DOMControl_placeholder',n);m.style.height='';},setSubmitOnEnter:function(m,n){h.conditionClass(m,'enter_submit',n);},getSubmitOnEnter:function(m){return h.hasClass(m,'enter_submit');},setMaxLength:function(m,n){if(n>0){m.setAttribute('maxlength',n);k(m);}else m.removeAttribute('maxlength');}};e.exports=l;});
__e("legacy:input-methods",["Input","copyProperties"],function(a,b,c,d){var e=b('Input'),f=b('copyProperties');f(a.Input||(a.Input={}),e);},3);
onloadRegister_DEPRECATED(function(){Event.listen(document.documentElement,'submit',function(a){var b=a.getTarget().getElementsByTagName('*');for(var c=0;c<b.length;c++)if(b[c].getAttribute('placeholder')&&Input.isEmpty(b[c]))Input.setValue(b[c],'');});});
var ExternalNodeConnectWidget=function(a){copy_properties(this,{widgetID:a.widgetID,widget:$(a.widgetID),viewerID:a.viewer,nodeType:a.nodeType,viewerIsAdmin:a.viewerIsAdmin&&!a.userOptedOut,adminUrl:a.adminUrl,popupOptInParams:{},nodeUri:new URI(a.nodeURL),externalUrl:a.externalURL,pageId:a.pageId,domainId:a.domainId,layout:a.layout,edgeType:a.edgeType,error:a.error,errorURI:new URI('/'),alreadyConnected:a.alreadyConnected,usingConnectLibrary:!!a.channelURL,commentWidgetMarkup:a.commentWidgetMarkup,commentWidgetOpen:false,commentWidgetVisible:false,userProfile:null,connectStoryFbid:0,isAmbiguousText:a.isAmbiguousText,socialBar:a.socialbar,useDisconnectLink:a.useDisconnectLink,showError:a.showError,showConfirm:a.showConfirm,showFaces:a.showFaces,connectText:a.connectText,ref:a.ref,userOptedOut:a.userOptedOut,usingInlineCommenting:a.usingInlineCommenting,mobile:a.mobile,supportCommenting:!a.mobile&&(!!a.channelURL||a.usingInlineCommenting),inlineCommentListenersInitialized:false,inlineCommentFocused:false,forceCommentHooks:a.forceCommentHooks,nux:a.nux,iframeReferer:a.iframeReferer,isBlocked:a.isBlocked,isPersonalized:a.isPersonalized,confirmedConnect:a.confirmedConnect,hasSend:a.send,colorScheme:a.colorScheme,grayOut:a.grayOut});if(this.usingConnectLibrary)UnverifiedXD.init({autoResize:a.autoResize,channelUrl:a.channelURL,resizeWidth:a.autoResize&&a.layout!==ExternalNodeConnectWidget.STANDARD_LAYOUT});this.connectButtonSlider=DOM.scry(this.widget,'div.connect_button_slider');this.connectButtonContainer=null;if(this.connectButtonSlider.length){this.connectButtonSlider=this.connectButtonSlider[0];this.connectButtonContainer=DOM.find(this.connectButtonSlider,'div.connect_button_container');}else this.connectButtonSlider=null;this.connectButton=DOM.find(this.widget,'a.connect_widget_like_button');if(this.grayOut)this.tombstoneCross=DOM.find(this.widget,'div.tombstone_cross');this.connectedMessage=DOM.scry(this.widget,'span.connect_widget_connected_text');this.connectedMessage=this.connectedMessage.length?this.connectedMessage[0]:null;this.notConnectedMessage=DOM.scry(this.widget,'span.connect_widget_not_connected_text');this.notConnectedMessage=this.notConnectedMessage.length?this.notConnectedMessage[0]:null;this.adminSpans=DOM.scry(this.widget,'span.connect_widget_admin_span');if(this.adminSpans.length>0){this.adminLinks=[];for(var b=0;b<this.adminSpans.length;b++)this.adminLinks[b]=DOM.find(this.adminSpans[b],'a.connect_widget_admin_option');}if(this.layout==ExternalNodeConnectWidget.STANDARD_LAYOUT){this.confirmationCell=DOM.find(this.widget,'div.connect_confirmation_cell');this.userActionTextSpan=DOM.find(this.confirmationCell,'span.connect_widget_user_action');this.summaryTextSpan=DOM.find(this.confirmationCell,'span.connect_widget_summary');this.summaryText=DOM.find(this.confirmationCell,'div.connect_widget_text_summary');var c=DOM.scry(this.widget,'div.connect_widget_sample_connections');this.sampleConnections=c.length>0?c[0]:null;if(a.showFaces&&a.viewer>0){var d=DOM.scry(this.widget,'div.connect_widget_logged_in_user');this.loggedInUserPhotoDiv=d.length>0?d[0]:null;}}if(this.layout===ExternalNodeConnectWidget.SIMPLE_LAYOUT){this.originalButtonWidth=this.computeButtonDimensions().width;this.summaryIncluding=DOM.find(this.widget,'td.connect_widget_simple_including');this.supportCommenting=false;this.usingInlineCommenting=false;}this.setQueryData();if(this.pageId)copy_properties(this.popupOptInParams,{connect_id:this.pageId});this.errorSpans=DOM.scry(this.widget,'span.connect_widget_error_span');if(this.errorSpans.length>0){this.errorLinks=[];for(var e=0;e<this.errorSpans.length;e++)this.errorLinks[e]=DOM.find(this.errorSpans[e],'a.connect_widget_error_text');}this.confirmSpans=DOM.scry(this.widget,'span.connect_widget_confirm_span');if(this.confirmSpans.length>0){this.confirmLinks=[];for(var f=0;f<this.confirmSpans.length;f++)this.confirmLinks[f]=DOM.find(this.confirmSpans[f],'a.connect_widget_confirm_link');}this.unlikeSpans=DOM.scry(this.widget,'span.unlike_span');this.unlikeLinks=[];for(var g=0;g<this.unlikeSpans.length;g++){this.unlikeLinks[g]=DOM.find(this.unlikeSpans[g],'a.connect_widget_unlike_link');Event.listen(this.unlikeLinks[g],'click',this.connectToNodeOnClick.bind(this));}var h=DOM.scry(this.widget,'div.connect_widget_number_cloud');if(h.length==1){this.numberCloud=h[0];this.numberCloudNub=DOM.find(this.widget,'div.connect_widget_number_cloud_nub');this.numberCloudExtension=DOM.find(this.numberCloud,'div.connect_widget_number_cloud_extension');this.sizeNumberCloud();this.numberCloudUnlikeSpan=DOM.find(this.numberCloudExtension,'span.unlike_span');this.numberCloudReminderSpan=DOM.find(this.numberCloudExtension,'span.like_reminder');this.inAnimation=false;this.reminderIsVisible=CSS.hasClass(this.numberCloudUnlikeSpan,'hidden_elem');Event.listen(this.numberCloud,'mouseleave',this.restoreReminderSpan.bind(this));Event.listen(this.numberCloudExtension,'mouseleave',this.restoreReminderSpan.bind(this));Event.listen(this.numberCloudExtension,'mouseenter',this.exposeUnlikeSpan.bind(this));Event.listen(this.numberCloud,'mouseenter',this.exposeUnlikeSpan.bind(this));Event.listen(this.numberCloudExtension,'mouseleave',function(event){this.requiresMouseLeaveEvent=false;}.bind(this));}if(this.usingInlineCommenting&&!this.showFaces){this.shareCommentSpans=DOM.scry(this.widget,'span.connect_widget_share_comment_span');for(var i=0;i<this.shareCommentSpans.length;i++){var j=DOM.find(this.shareCommentSpans[i],'a.connect_widget_share_comment_option');Event.listen(j,'click',function(event){for(var l=0;l<this.shareCommentSpans.length;l++)CSS.addClass(this.shareCommentSpans[l],'hidden_elem');this.presentCommentingOption();}.bind(this));}}if(this.layout===ExternalNodeConnectWidget.BUTTON_COUNT_LAYOUT){XD.forced_min_width=this.getButtonCountWidgetWidth();this.numberExcluding=DOM.find(this.widget,'td.connect_widget_button_count_excluding');this.summaryIncluding=DOM.find(this.widget,'td.connect_widget_button_count_including');this.thumbsUpIcon=DOM.find(this.summaryIncluding,'div.thumbs_up');this.undoRegion=DOM.find(this.summaryIncluding,'div.undo');this.originalButtonWidth=this.computeButtonDimensions().width;Event.listen(this.thumbsUpIcon,'mouseenter',function(event){this.undoButton=DOM.find(this.undoRegion,'label.undo_button input');Event.listen(this.undoButton,'click',this.connectToNodeOnClick.bind(this));CSS.addClass(this.thumbsUpIcon,'hidden_elem');CSS.removeClass(this.undoRegion,'hidden_elem');}.bind(this));Event.listen(this.undoRegion,'mouseleave',function(event){CSS.removeClass(this.thumbsUpIcon,'hidden_elem');CSS.addClass(this.undoRegion,'hidden_elem');}.bind(this));}if(!this.isBlocked){Event.listen(this.connectButton,'click',this.primaryLikeButtonOnClick.bind(this));if(this.grayOut)Event.listen(this.tombstoneCross,'click',this.connectToNodeOnClick.bind(this));}if(this.adminLinks)for(var b=0;b<this.adminLinks.length;b++)Event.listen(this.adminLinks[b],'click',this.presentAdminPage.bind(this));if(this.errorLinks)for(var b=0;b<this.errorLinks.length;b++)Event.listen(this.errorLinks[b],'click',this.presentErrorDialog.bind(this));if(this.confirmLinks)for(var k=0;k<this.confirmLinks.length;k++)Event.listen(this.confirmLinks[k],'click',this.presentConfirmDialog.bind(this));if(a.showCaptcha){this.showCaptcha=true;this.connectToNode(true);}if(this.forceCommentHooks)this.setupCommentHooks($(this.forceCommentHooks));this.textInputMarginWithButton=5;this.widthSyncArbiter=Arbiter.subscribe('platform/socialplugins/send/resize',this.syncSendWidgetWidth.bind(this));Arbiter.inform('platform/socialplugins/like/resize',{button_width:this.computeButtonDimensionsWithPadding().width,widget_width:Vector2.getElementDimensions(this.widget).x,layout:this.layout},Arbiter.BEHAVIOR_STATE);Arbiter.subscribe('platform/socialplugins/dialog',function(l,m){if(m.controllerID!==this.widgetID)this.otherCommentWidgetOpen=(m.event=='open');}.bind(this));Arbiter.subscribe('platform/socialplugins/dialog',function(l,m){if(m.controllerID!==this.divID&&m.event=='open')this.closeCommentWidget();}.bind(this));this.subscribeToSync(a);};copy_properties(ExternalNodeConnectWidget,{STANDARD_LAYOUT:'standard',BOX_COUNT_LAYOUT:'box_count',BUTTON_COUNT_LAYOUT:'button_count',SIMPLE_LAYOUT:'simple',COLOR_DARK:0,COLOR_LIGHT:1,OPT_IN_FACEBOOK_APP_ID:'127760087237610',updateLoggedInUser:function(a){var b=ExternalNodeConnectWidget.controllerManagingLogin;b.setLoggedIn(a);b.connectToNode(true);b.userOptedOut=false;delete ExternalNodeConnectWidget.controllerManagingLogin;Arbiter.inform('platform/socialplugins/login',{user:a.user},Arbiter.BEHAVIOR_STATE);WidgetArbiter.inform('platform/socialplugins/login',{user:a.user},Arbiter.BEHAVIOR_STATE);},onCommentWidgetLoaded:function(a){var b=ExternalNodeConnectWidget.self;delete ExternalNodeConnectWidget.self;b.injectCommentWidgetMarkup(a);}});copy_properties(ExternalNodeConnectWidget.prototype,{getSyncEndpointName:function(){},getConnectionEndpointName:function(){},getPluginName:function(){},subscribeToSync:function(a){Arbiter.subscribe('platform/socialplugins/login',function(b,c){if(this.viewerID&&c.user!==this.viewerID)document.location.reload();}.bind(this));Arbiter.subscribe(this.getSyncEndpointName(),function(b,c){if(c.externalUrl==a.externalURL){this.userOptedOut=false;this.updateWidget(c.opts,true);}}.bind(this));},setQueryData:function(){copy_properties(this.popupOptInParams,{protocol:window.location.protocol,external_page_url:this.externalUrl});if(this.nux)copy_properties(this.popupOptInParams,{nux:this.nux,referer:this.iframeReferer});},updateWidget:function(a,b,c){var d=(this.alreadyConnected!=a.nowConnected)||(this.showConfirm!=a.showConfirm);if(!b)Arbiter.inform(this.getConnectionEndpointName(),a,Arbiter.BEHAVIOR_STATE);this.alreadyConnected=a.nowConnected;this.viewerIsAdmin=a.isAdmin;this.showError=a.showError;this.showConfirm=a.showConfirm;this.adminUrl=a.adminUrl;this.userProfile=a.userProfile;this.connectStoryFbid=a.connectStoryFbid;this.error=a.error;if(!a.nowConnected)this.closeCommentWidget();if(d&&!b||c){var e=a.nowConnected?'edgeCreated':'edgeRemoved';UnverifiedXD.send({type:e});}if(d||this.error)this.syncWidgetDisplay();if(!b||c)WidgetArbiter.inform(this.getSyncEndpointName(),{externalUrl:this.externalUrl,opts:a},Arbiter.BEHAVIOR_STATE);},presentOptIn:function(){ExternalNodeConnectWidget.controllerManagingLogin=this;PlatformOptInPopup.open(this.getPluginName(),'opt.inlike',this.popupOptInParams);UnverifiedXD.send({type:'authPrompted'});},setLoggedIn:function(a){this.viewerID=a.user;this.newProfilePic=a.profilePic;this.placeFormUserCheck(a.formUserCheck,a.fbDtsg);},placeFormUserCheck:function(a,b){Env.fb_dtsg=b;if(ge('post_form_id')){DOM.replace($('post_form_id'),HTML(a));}else DOM.appendContent(DOM.find(document,'body'),HTML(a));},syncWidgetWithServer:function(a){var b=a.getPayload();if(b.requires_login){this.updateWidget({nowConnected:false,isAdmin:false},false);this.presentOptIn();return;}var c={nowConnected:b.success&&b.already_connected,isAdmin:b.is_admin,showError:b.show_error,showConfirm:b.show_confirm,adminUrl:b.admin_url,userProfile:b.user_profile,connectStoryFbid:b.story_fbid,error:b.error_info};this.updateWidget(c,!b.success,b.success);if(b.success&&this.showCaptcha){window.opener.location.reload();window.close();}},getButtonCountWidgetWidth:function(){var a=DOM.find(this.widget,'table.connect_widget_interactive_area'),b=CSS.getStyle(a,'width');return parseInt(b,10);},sizeNumberCloud:function(){this.collapsedNumberCloudHeight=this.getCollapsedNumberCloudHeight();this.expandedNumberCloudHeight=this.collapsedNumberCloudHeight+this.getNumberCloudExtensionHeight();if(this.alreadyConnected)CSS.setStyle(this.numberCloud,'height',this.expandedNumberCloudHeight+'px');var a=this.computeButtonDimensionsWithPadding().width;XD.forced_min_width=a;var b=intl_locale_is_rtl();a-=2;CSS.setStyle(this.numberCloud,'width',a+'px');CSS.setStyle(this.numberCloud,'visibility','visible');animation(this.numberCloud).from('opacity',0).to('opacity',1).duration(100).go();},getCollapsedNumberCloudHeight:function(){var a=Vector2.getElementDimensions(this.numberCloud).y,b=parseInt(CSS.getStyle(this.numberCloud,'paddingTop'),10),c=parseInt(CSS.getStyle(this.numberCloud,'paddingBottom'),10),d=parseInt(CSS.getStyle(this.numberCloud,'border'),10);return a-b-c-2;},getNumberCloudExtensionHeight:function(){CSS.addClass(this.numberCloudExtension,'connect_widget_offscreen');if(!this.alreadyConnected)CSS.removeClass(this.numberCloudExtension,'hidden_elem');var a=Vector2.getElementDimensions(this.numberCloudExtension).y;if(!this.alreadyConnected)CSS.addClass(this.numberCloudExtension,'hidden_elem');CSS.removeClass(this.numberCloudExtension,'connect_widget_offscreen');return a;},restoreReminderSpan:function(event){if(this.reminderIsVisible||this.inAnimation)return;this.animateReminderSpanReappearance();},animateReminderSpanReappearance:function(){if(this.reminderIsVisible||this.inAnimation)return;this.inAnimation=true;CSS.addClass(this.numberCloudUnlikeSpan,'hidden_elem');CSS.setStyle(this.numberCloudReminderSpan,'opacity',0);CSS.removeClass(this.numberCloudReminderSpan,'hidden_elem');animation(this.numberCloudReminderSpan).to('opacity',1).duration(100).ondone(function(){this.inAnimation=false;this.reminderIsVisible=true;}.bind(this)).go();},exposeUnlikeSpan:function(event){if(!this.alreadyConnected||this.requiresMouseLeaveEvent||!this.reminderIsVisible||this.inAnimation)return;this.inAnimation=true;CSS.addClass(this.numberCloudReminderSpan,'hidden_elem');CSS.setStyle(this.numberCloudUnlikeSpan,'opacity',0);CSS.removeClass(this.numberCloudUnlikeSpan,'hidden_elem');animation(this.numberCloudUnlikeSpan).to('opacity',1).duration(100).ondone(function(){this.inAnimation=false;this.reminderIsVisible=false;}.bind(this)).go();},conditionallyActivateButton:function(event){this.commentButtonIsActive=this.inlineCommentInput.value.trim().length>0;},updateConnectionWithComment:function(event){Event.kill(event);if(this.commentButtonIsActive){this.postInlineComment();this.resetInlineComment();this.closeInlineComment();}},postInlineComment:function(){this.postUserComment(this.inlineCommentInput.value.trim(),false,'iframe');},resetInlineComment:function(){this.concealCommentButton();var a=this.inlineCommentInput.getAttribute('placeholder');this.inlineCommentInput.value=a;},showInlineComment:function(event){Event.kill(event);if(!this.inlineCommentFlyoutOpen||this.inlineCommentFlyoutVisible||this.showConfirm||this.error)return;this.inlineCommentFlyoutVisible=true;CSS.show(this.inlineCommentFlyout);},hideInlineComment:function(event){if(event)Event.kill(event);if(this.inlineCommentFocused||!this.inlineCommentFlyoutOpen||!this.inlineCommentFlyoutVisible)return;if(event&&DOM.contains(this.inlineCommentFlyout,event.getRelatedTarget()))return;var a=this.inlineCommentInput.value.trim(),b=this.inlineCommentInput.getAttribute('placeholder');if(a.length>0&&a!=b)return;this.inlineCommentFlyoutVisible=false;CSS.hide(this.inlineCommentFlyout);},closeInlineComment:function(){this.inlineCommentFlyoutVisible=false;this.inlineCommentFlyoutOpen=false;CSS.hide(this.inlineCommentFlyout);this.resetInlineComment();},concealCommentButton:function(){CSS.addClass(this.inlineCommentButton,'hidden_elem');CSS.setStyle(this.inlineCommentInput,'width',this.textInputWidthWithoutButton+'px');CSS.setStyle(this.inlineCommentInput,'margin-right',0);},positionInlineCommentFlyout:function(){CSS.addClass(this.inlineCommentFlyout,'comment_widget_offscreen');CSS.removeClass(this.inlineCommentFlyout,'hidden_elem');var a=0,b=this.computeButtonDimensions(),c=b.height,d=this.grayOut?a:a+20,e=intl_locale_is_rtl()?'right':'left';if(this.showFaces){var f=DOM.scry(this.widget,'span.connect_widget_text')[0],g=intl_locale_is_rtl()?'paddingRight':'paddingLeft',h=CSS.getStyle(f,g);d=this.grayOut?a:a+parseInt(h,10);var i=Vector2.getElementDimensions(this.sampleConnections).y;c=i-3;}var j=Vector2.getElementDimensions(this.summaryText).y;if(j>15)c+=2;CSS.setStyle(this.inlineCommentFlyout,e,d+'px');CSS.setStyle(this.inlineCommentFlyout,'top',(-c)+'px');var k=Vector2.getElementPosition(this.widget,'document').x,l=Vector2.getElementDimensions(this.widget).x,m=k+l-d-5;CSS.setStyle(this.inlineCommentFlyout,'width',m+'px');CSS.removeClass(this.inlineCommentButton,'hidden_elem');var n=Vector2.getElementDimensions(this.inlineCommentButton).x;CSS.addClass(this.inlineCommentButton,'hidden_elem');var o=(this.inlineCommentClose)?15:0;this.textInputWidthWithoutButton=m-24-o;this.textInputWidthWithButton=this.textInputWidthWithoutButton-n-this.textInputMarginWithButton-1;CSS.setStyle(this.inlineCommentInput,'width',this.textInputWidthWithoutButton+'px');CSS.setStyle(this.inlineCommentInput,'margin-right',0);CSS.removeClass(this.inlineCommentFlyout,'comment_widget_offscreen');CSS.addClass(this.inlineCommentFlyout,'hidden_elem');},postUserComment:function(a,b,c){var d={href:this.externalUrl,node_type:this.nodeType,edge_type:this.edgeType,page_id:this.pageId,connect_text:this.connectText,story_fbid:this.connectStoryFbid,comment:a,widget_type:c||'xfbml',own_product:b};new AsyncRequest().setURI(this.getCommentAjaxEndpoint()).setData(d).setNectarModuleDataSafe().setNectarImpressionIdSafe().send();this.closeCommentWidget();},closeCommentWidget:function(){if(this.commentWidgetOpen){delete this.inGracePeriod;delete this.commentWidgetIsExpanded;this.commentWidgetVisible=false;this.commentWidgetOpen=false;UnverifiedXD.send({type:'dismissEdgeCommentDialog'});}},presentAdminPage:function(){var a='_blank';window.open(this.adminUrl.toString(),a);},presentErrorDialog:function(){if(!this.error.errorUri)return;var a='_blank',b='toolbar=0, status=0, width=960, height=300';window.open(this.error.errorUri.toString(),a,b);},presentConfirmDialog:function(){var a='_blank',b='toolbar=0,status=0,width=450,height=200,scrollbars=0,location=0,menubar=0';if(!window.confirmDialogReturn)window.confirmDialogReturn={};window.confirmDialogReturn[this.widgetID]=this;var c=this.getConfirmURL();window.open(c,a,b);},returnFromConfirmDialog:function(a){if(a){this.showConfirm=null;this.confirmedConnect=a;this.connectToNode(!this.alreadyConnected);}else this.updateWidget({nowConnected:this.alreadyConnected,showConfirm:null,isAdmin:this.viewerIsAdmin},false);},syncWidgetDisplay:function(){var a=this.alreadyConnected;this.setButtonState(a);this.showElementIf(this.connectedMessage,a);this.showElementIf(this.notConnectedMessage,!a);if(this.adminSpans)for(var b=0;b<this.adminSpans.length;b++)this.showElementIf(this.adminSpans[b],this.viewerIsAdmin);if(this.errorSpans)for(var c=0;c<this.errorSpans.length;c++)this.showElementIf(this.errorSpans[c],this.error&&(this.viewerIsAdmin||this.showError));for(var d=0;d<this.confirmSpans.length;d++)this.showElementIf(this.confirmSpans[d],!this.alreadyConnected&&this.showConfirm);for(var e=0;e<this.unlikeSpans.length;e++)this.showElementIf(this.unlikeSpans[e],this.alreadyConnected);if(this.shareCommentSpans)for(var f=0;f<this.shareCommentSpans.length;f++)this.showElementIf(this.shareCommentSpans[f],a);this.showElementIf(this.connectButton,(!this.useDisconnectLink||!a)&&!this.showConfirm);if(this.layout===ExternalNodeConnectWidget.BOX_COUNT_LAYOUT){this.manageBoxCountButtonAnimation(a);}else if(this.layout===ExternalNodeConnectWidget.BUTTON_COUNT_LAYOUT){this.manageButtonCountButtonAnimation(a);}else if(this.layout===ExternalNodeConnectWidget.SIMPLE_LAYOUT){this.manageSimpleButtonAnimation(a);}else this.manageStandardButtonAnimation(a);if(!this.loggedInUserPhotoDiv)return;if(a){this.slideUserPhotoIn(this.loggedInUserPhotoDiv);}else this.slideUserPhotoOut(this.loggedInUserPhotoDiv);},manageStandardButtonAnimation:function(a){if(this.grayOut)return;if(this.alreadyConnected||this.showConfirm){this.hideButton(true);}else this.hideButton(false);},setButtonState:function(a){if(a){CSS.removeClass(this.connectButton,'like_button_no_like');CSS.addClass(this.connectButton,'like_button_like');this.fixIEButtonDoubleLineBug();}else{CSS.addClass(this.connectButton,'like_button_no_like');CSS.removeClass(this.connectButton,'like_button_like');}},fixIEButtonDoubleLineBug:function(){if(this.layout===ExternalNodeConnectWidget.STANDARD_LAYOUT&&ua.ie()<=7&&!this.hasBeenFixed){var a=this.computeButtonDimensionsWithPadding();CSS.setStyle(this.connectButton,'width',a.width+1);this.hasBeenFixed=true;}},hideButton:function(a){if(this.layout!=='standard')return;if(this.oAnimateBlind)this.oAnimateBlind.stop();this.oAnimateBlind=animation(this.connectButtonSlider).duration(150);var b=1,c=intl_locale_is_rtl(),d=c?'marginRight':'marginLeft',e=c?'marginLeft':'marginRight';if(a){CSS.addClass(this.connectButtonContainer,'hidden');this.oAnimateBlind.ondone(function(){CSS.setStyle(this.connectButtonContainer,d,'2px');CSS.setStyle(this.connectButtonContainer,'visibility','hidden');CSS.addClass(this.confirmationCell,'connect_confirmation_cell_like');CSS.removeClass(this.confirmationCell,'connect_confirmation_cell_no_like');this.oAnimateBlind=null;}.bind(this));}else{CSS.setStyle(this.connectButtonContainer,d,'0px');b=Vector2.getElementDimensions(this.connectButton).x;this.oAnimateBlind.ondone(function(){CSS.setStyle(this.connectButtonSlider,'overflow','visible');CSS.setStyle(this.connectButtonSlider,'width','auto');CSS.removeClass(this.confirmationCell,'connect_confirmation_cell_like');CSS.addClass(this.confirmationCell,'connect_confirmation_cell_no_like');CSS.setStyle(this.connectButtonContainer,'visibility','visible');CSS.removeClass(this.connectButtonContainer,'hidden');this.oAnimateBlind=null;}.bind(this));}this.oAnimateBlind.to('width',b).blind().go();},showElementIf:function(a,b){if(!a)return;if(b){CSS.show(a);}else CSS.hide(a);},slideUserPhotoIn:function(a){if(!CSS.hasClass(a,'connect_widget_user_not_connected'))return;var b=CSS.getStyle(a,'width');CSS.setStyle(a,'width',0);CSS.setStyle(a,'opacity',0);CSS.removeClass(a,'connect_widget_user_not_connected');animation(a).to('width',b).duration(100).checkpoint().to('opacity',1).duration(400).go();},slideUserPhotoOut:function(a){if(CSS.hasClass(a,'connect_widget_user_not_connected'))return;animation(a).to('opacity',0).duration(100).checkpoint(.25).to('width',0).duration(100).ondone(function(){CSS.addClass(a,'connect_widget_user_not_connected');CSS.setStyle(a,'width',null);}).go();},primaryLikeButtonOnClick:function(event){if(this.grayOut&&this.alreadyConnected&&!this.mobile)return;this.connectToNodeOnClick(event);if(this.tombstoneCross&&this.alreadyConnected)DOM.replace(this.tombstoneCross,HTML('<div class="tombstone_cross tombstone_cross_static" />'));setTimeout(function(){this.tombstoneCross=DOM.find(this.widget,'div.tombstone_cross');CSS.removeClass(this.tombstoneCross,'tombstone_cross_static');Event.listen(this.tombstoneCross,'click',this.connectToNodeOnClick.bind(this));}.bind(this),1000);},_clickLocked:false,connectToNodeOnClick:function(event){Event.kill(event);if(!this._clickLocked){this._clickLocked=true;setTimeout(function(){this._clickLocked=false;}.bind(this),1000);if(this.viewerID==0||this.userOptedOut){this.presentOptIn();}else this.connectToNode(!this.alreadyConnected);}},connectToNode:function(a){if(!a){if(this.layout===ExternalNodeConnectWidget.SIMPLE_LAYOUT)return;if(this.layout===ExternalNodeConnectWidget.STANDARD_LAYOUT&&!this.usingConnectLibrary){CSS.addClass(this.userActionTextSpan,'hidden_elem');CSS.removeClass(this.summaryTextSpan,'hidden_elem');CSS.setStyle(this.summaryTextSpan,'opacity',1);}if(this.shareCommentSpans)for(var b=0;b<this.shareCommentSpans.length;b++)CSS.addClass(this.shareCommentSpans[b],'hidden_elem');if(this.commentWidgetOpen){this.closeCommentWidget();}else if(this.inlineCommentFlyoutOpen)this.closeInlineComment();}this.updateWidget({nowConnected:!this.alreadyConnected,isAdmin:this.viewerIsAdmin},true);var c={href:this.externalUrl,node_type:this.nodeType,edge_type:this.edgeType,page_id:this.pageId,layout:this.layout,is_personalized:this.isPersonalized,show_captcha:this.showCaptcha,connect_text:this.connectText,ref:this.ref,now_connected:a,post_form_id:$('post_form_id').value,iframe_referer:this.iframeReferer};if(this.confirmedConnect)c.confirm=1;new AsyncRequest().setURI(this.getAjaxEndpoint()).setHandler(this.syncWidgetWithServer.bind(this)).setData(c).setNectarModuleDataSafe().setNectarImpressionIdSafe().send();if(a){if(this.layout===ExternalNodeConnectWidget.BOX_COUNT_LAYOUT)this.requiresMouseLeaveEvent=true;if(this.layout===ExternalNodeConnectWidget.STANDARD_LAYOUT&&!this.usingConnectLibrary){CSS.setStyle(this.userActionTextSpan,'opacity',1);CSS.removeClass(this.userActionTextSpan,'hidden_elem');CSS.addClass(this.summaryTextSpan,'hidden_elem');Event.listen(this.widget,'mouseleave',this.transitionBetweenMessages.bind(this));}if(this.shareCommentSpans){for(var d=0;d<this.shareCommentSpans;d++)CSS.removeClass(this.shareCommentSpans[d],'hidden_elem');}else if(this.supportCommenting)this.presentCommentingOption();this.repositionFacepileVertically();}},transitionBetweenMessages:function(event){if(!this.alreadyConnected||CSS.hasClass(this.userActionTextSpan,'hidden_elem'))return;animation(this.userActionTextSpan).to('opacity',0).duration(500).ondone(function(){CSS.addClass(this.userActionTextSpan,'hidden_elem');CSS.setStyle(this.summaryTextSpan,'opacity',0);CSS.removeClass(this.summaryTextSpan,'hidden_elem');animation(this.summaryTextSpan).to('opacity',1).duration(500).ondone(function(){this.repositionFacepileVertically();}.bind(this)).go();this.positionInlineCommentFlyout();}.bind(this)).go();},presentCommentingOption:function(){Arbiter.inform('platform/socialplugins/dialog',{controllerID:this.widgetID,event:'open'});if(this.usingConnectLibrary){ExternalNodeConnectWidget.self=this;var a={type:'presentEdgeCommentDialog',masterFrameName:window.name,version:2};if(this.layout==ExternalNodeConnectWidget.BOX_COUNT_LAYOUT){a.preComputedWidthOffset=this.computeButtonDimensionsWithPadding().width;if(!intl_locale_is_rtl())a.preComputedWidthOffset+=8;}if(this.socialBar){a.left=parseInt(CSS.getStyle(document.getElementById('profile'),'width'),10)+1;}else if(this.hasSend&&this.layout==ExternalNodeConnectWidget.STANDARD_LAYOUT)a.preComputedWidthOffset=this.invertedButtons?0:65;UnverifiedXD.send(a);this.commentWidgetOpen=true;this.commentWidgetVisible=true;this.commentWidgetExpanded=true;}else if(this.usingInlineCommenting)if(!this.inlineCommentListenersInitialized){this.unwrapComment();this.initializeInlineCommentListeners();this.openInlineCommentFlyout();this.positionInlineCommentFlyout();this.inlineCommentListenersInitialized=true;}else{this.positionInlineCommentFlyout();this.openInlineCommentFlyout();}},unwrapComment:function(){if(this.unwrapComment.done)return;var a=$('connect-widget-comment-box-markup'),b=ExternalNodeConnectWidget.commentMarkup;a.innerHTML=b;this.unwrapComment.done=true;},initializeInlineCommentListeners:function(){this.inlineCommentFlyout=DOM.find(this.widget,'.connect_widget_comment_box');this.inlineCommentInput=DOM.find(this.inlineCommentFlyout,'.connect_widget_comment_textinput');this.inlineCommentButton=DOM.find(this.inlineCommentFlyout,'.connect_widget_comment_button');this.inlineCommentClose=DOM.scry(this.inlineCommentFlyout,'.connect_widget_comment_close_button');if(this.inlineCommentClose.length>0)this.inlineCommentClose=this.inlineCommentClose[0];this.commentButtonIsActive=false;Event.listen(this.inlineCommentInput,'keyup',this.conditionallyActivateButton.bind(this));Event.listen(this.inlineCommentInput,'focus',function(){this.inlineCommentFocused=true;this.exposeCommentButton();}.bind(this));Event.listen(this.inlineCommentButton,'click',this.updateConnectionWithComment.bind(this));Event.listen(this.inlineCommentInput,'blur',function(){this.inlineCommentFocused=false;this.hideInlineComment();}.bind(this));Event.listen(this.widget,'mouseout',this.hideInlineComment.bind(this));Event.listen(this.widget,'mouseover',this.showInlineComment.bind(this));if(this.inlineCommentClose)Event.listen(this.inlineCommentClose,'click',function(event){for(var a=0;a<this.shareCommentSpans.length;a++)CSS.removeClass(this.shareCommentSpans[a],'hidden_elem');this.closeInlineComment();}.bind(this));},exposeCommentButton:function(event){if(!CSS.hasClass(this.inlineCommentButton,'hidden_elem'))return;CSS.removeClass(this.inlineCommentButton,'hidden_elem');CSS.setStyle(this.inlineCommentInput,'width',this.textInputWidthWithButton+'px');CSS.setStyle(this.inlineCommentInput,'margin-right',this.textInputMarginWithButton+'px');},openInlineCommentFlyout:function(){CSS.show(this.inlineCommentFlyout);this.inlineCommentFlyoutOpen=true;this.inlineCommentFlyoutVisible=true;},manageBoxCountButtonAnimation:function(a){if(a&&!this.showConfirm){this.animateBoxCountButtonDisappearance();}else this.animateBoxCountButtonReappearance();},animateBoxCountButtonDisappearance:function(){if(this.grayOut)return;CSS.addClass(this.connectButton,'hidden_elem');CSS.setStyle(this.numberCloudExtension,'opacity',0);CSS.removeClass(this.numberCloudExtension,'hidden_elem');CSS.addClass(this.numberCloudNub,'hidden_elem');CSS.addClass(this.numberCloudUnlikeSpan,'hidden_elem');CSS.removeClass(this.numberCloudReminderSpan,'hidden_elem');animation(this.numberCloud).to('height',this.expandedNumberCloudHeight).duration(100).ondone(function(){animation(this.numberCloudExtension).from('opacity',0).to('opacity',1).duration(100).go();}.bind(this)).go();},animateBoxCountButtonReappearance:function(){CSS.addClass(this.numberCloudExtension,'hidden_elem');animation(this.numberCloud).to('height',this.collapsedNumberCloudHeight).duration(75).ondone(function(){if(this.showConfirm){for(var a=0;a<this.confirmSpans.length;a++)CSS.removeClass(this.confirmSpans[a],'hidden_elem');}else{CSS.setStyle(this.connectButton,'opacity',0);CSS.removeClass(this.connectButton,'hidden_elem');animation(this.connectButton).from('opacity',0).to('opacity',1).duration(75).ondone(function(){CSS.setStyle(this.numberCloudNub,'opacity',0);CSS.removeClass(this.numberCloudNub,'hidden_elem');animation(this.numberCloudNub).from('opacity',0).to('opacity',1).duration(50).go();}.bind(this)).go();}}.bind(this)).go();},manageButtonCountButtonAnimation:function(a){if(a&&!this.showConfirm){this.animateButtonCountButtonDisappearance();}else this.animateButtonCountButtonReappearance();if(!this.grayOut){CSS.removeClass(this.thumbsUpIcon,'hidden_elem');CSS.addClass(this.undoRegion,'hidden_elem');}},manageSimpleButtonAnimation:function(a){if(this.grayOut)return;if(a&&!this.showConfirm){this.animateSimpleButtonDisappearance();}else this.animateSimpleButtonReappearance();},animateButtonCountButtonDisappearance:function(){if(!this.grayOut)animation(this.connectButton).from('opacity',1).to('opacity',0).from('width',this.originalButtonWidth).to('width','0px').ondone(function(){CSS.addClass(this.connectButton,'hidden_elem');}.bind(this)).duration(100).go();animation(this.numberExcluding).from('opacity',1).to('opacity',0).duration(100).ondone(function(){CSS.addClass(this.numberExcluding,'hidden_elem');CSS.setStyle(this.summaryIncluding,'opacity',0);CSS.removeClass(this.summaryIncluding,'hidden_elem');animation(this.summaryIncluding).from('opacity',0).to('opacity',1).duration(100).go();}.bind(this)).go();for(var a=0;a<this.confirmSpans.length;a++)CSS.addClass(this.confirmSpans[a],'hidden_elem');if(this.grayOut)CSS.removeClass(this.connectButton,'hidden_elem');},animateSimpleButtonDisappearance:function(){animation(this.connectButton).from('opacity',1).to('opacity',0).from('width',this.originalButtonWidth).to('width','0px').ondone(function(){CSS.addClass(this.connectButton,'hidden_elem');CSS.setStyle(this.summaryIncluding,'opacity',0);CSS.removeClass(this.summaryIncluding,'hidden_elem');animation(this.summaryIncluding).from('opacity',0).to('opacity',1).duration(100).go();}.bind(this)).duration(50).go();for(var a=0;a<this.confirmSpans.length;a++)CSS.addClass(this.confirmSpans[a],'hidden_elem');if(this.grayOut)CSS.removeClass(this.connectButton,'hidden_elem');},computeButtonDimensions:function(){var a=CSS.hasClass(this.connectButton,'hidden_elem');if(a){CSS.addClass(this.connectButton,'connect_widget_offscreen');CSS.removeClass(this.connectButton,'hidden_elem');}var b=Vector2.getElementDimensions(this.connectButton),c=b.x,d=b.y,e=parseInt(CSS.getStyle(this.connectButton,'paddingLeft'),10),f=parseInt(CSS.getStyle(this.connectButton,'paddingRight'),10),g=parseInt(CSS.getStyle(this.connectButton,'paddingTop'),10),h=parseInt(CSS.getStyle(this.connectButton,'paddingBottom'),10);if(a){CSS.addClass(this.connectButton,'hidden_elem');CSS.removeClass(this.connectButton,'connect_widget_offscreen');}return {width:c-e-f-2,height:d};},computeButtonDimensionsWithPadding:function(){var a=CSS.hasClass(this.connectButton,'hidden_elem');if(a){CSS.addClass(this.connectButton,'connect_widget_offscreen');CSS.removeClass(this.connectButton,'hidden_elem');}var b=Vector2.getElementDimensions(this.connectButton),c=b.x,d=b.y;if(ua.ie())c+=3;if(a){CSS.addClass(this.connectButton,'hidden_elem');CSS.removeClass(this.connectButton,'connect_widget_offscreen');}return {width:c,height:d};},animateButtonCountButtonReappearance:function(){if(this.showConfirm){for(var a=0;a<this.confirmSpans.length;a++)CSS.removeClass(this.confirmSpans[a],'hidden_elem');}else if(!this.grayOut){CSS.removeClass(this.connectButton,'hidden_elem');animation(this.connectButton).from('width','0px').to('width',this.originalButtonWidth).from('opacity',0).to('opacity',1).duration(100).go();}CSS.setStyle(this.summaryIncluding,'opacity',1);animation(this.summaryIncluding).from('opacity',1).to('opacity',0).duration(100).ondone(function(){CSS.addClass(this.summaryIncluding,'hidden_elem');CSS.setStyle(this.numberExcluding,'opacity',0);CSS.removeClass(this.numberExcluding,'hidden_elem');animation(this.numberExcluding).from('opacity',0).to('opacity',1).duration(100).go();}.bind(this)).go();},animateSimpleButtonReappearance:function(){if(this.showConfirm){for(var a=0;a<this.confirmSpans.length;a++)CSS.removeClass(this.confirmSpans[a],'hidden_elem');}else{CSS.removeClass(this.connectButton,'hidden_elem');animation(this.connectButton).from('width','0px').to('width',this.originalButtonWidth).from('opacity',0).to('opacity',1).duration(100).go();}CSS.setStyle(this.summaryIncluding,'opacity',1);animation(this.summaryIncluding).from('opacity',1).to('opacity',0).duration(100).ondone(function(){CSS.addClass(this.summaryIncluding,'hidden_elem');}.bind(this)).go();},injectCommentWidgetMarkup:function(a){this.commentDocument=a;this.commentDocument.body.innerHTML=this.commentWidgetMarkup;this.transferCSSStyles();if(this.newProfilePic){var b=DOM.find(this.commentDocument,'img.connect_comment_widget_user_pic');b.src=this.newProfilePic;delete this.newProfilePic;}if(ua.ie()){var c=DOM.scry(this.commentDocument,'.connect_comment_share_preview_pic');if(c.length>0){c=c[0];var d=50,e=Vector2.getElementDimensions(c),f=d/e.x;if(f<1){CSS.setStyle(c,'width',d);CSS.setStyle(c,'height',e.y*f);}}}this.setupCommentHooks(this.commentDocument);this.commentWidgetIsExpanded=!this.inlineUnlikeLink;var g=this.getCommentActivatingComponent();g.onmouseout=this.commentDocument.body.onmouseout=this.onCommentMouseOut.bind(this);g.onmouseover=this.commentDocument.body.onmouseover=this.onCommentMouseOver.bind(this);this.inGracePeriod=false;},onCommentMouseOut:function(a){this.mouseOutside=true;return true;},onCommentMouseOver:function(a){this.mouseOutside=false;return true;},setupCommentHooks:function(a){this.placeholderInputRegion=DOM.find(a,'div.connect_comment_widget_placeholder_input_region');this.placeholderInput=DOM.find(this.placeholderInputRegion,'input.connect_comment_widget_placeholder_input');this.fullInputRegion=DOM.find(a,'div.connect_comment_widget_full_input_region');this.fullInputTextarea=DOM.find(this.fullInputRegion,'textarea.connect_comment_widget_full_input_textarea');this.ownProductCheckbox=DOM.scry(a,'input.connect_comment_widget_own_product_checkbox');if(this.ownProductCheckbox.length>0)this.ownProductCheckbox=this.ownProductCheckbox[0];this.widgetButtonRegion=DOM.find(a,'div.connect_comment_widget_button_region');this.postToFacebookButton=DOM.scry(this.widgetButtonRegion,'.connect_comment_widget_post_button input');if(this.postToFacebookButton.length>0){this.postToFacebookButton=this.postToFacebookButton[0];this.postToFacebookButton.onclick=this.updateUserComment.bind(this);}this.closeButton=DOM.scry(this.widgetButtonRegion,'.connect_comment_widget_close_button input');if(this.closeButton.length>0){this.closeButton=this.closeButton[0];this.closeButton.onclick=this.closeCommentWidget.bind(this);}this.inlineUnlikeLink=DOM.scry(a,'a.connect_comment_widget_unlike_link');if(this.inlineUnlikeLink.length>0){this.inlineUnlikeLink=this.inlineUnlikeLink[0];this.inlineUnlikeLink.onclick=this.connectToNodeOnClick.bind(this);}this.defaultInputText=this.placeholderInput.value;this.placeholderInput.onfocus=this.transitionToFullInputMode.bind(this);this.fullInputTextarea.onfocus=this.removePlaceholderText.bind(this);this.fullInputTextarea.onblur=(function(b){this.restorePlaceholderText();if(this.mouseOutside)return this.hideCommentWidget();}).bind(this);if(this.inlineUnlikeLink)this.inlineUnlikeLink.onclick=this.connectToNodeOnClick.bind(this);if(this.closeButton){this.closeButton.onclick=this.closeCommentWidget.bind(this);this.fullInputTextarea.onkeydown=(function(b){b=b||window.event;if(!b)return true;if(b.keyCode==13&&!(b.ctrlKey||b.shiftKey||b.altKey||b.metaKey)){this.updateUserComment();return false;}if(this.didResetOnKeydown)return true;this.removePlaceholderText();this.didResetOnKeydown=true;return true;}).bind(this);this.transitionToFullInputMode();}},getCommentActivatingComponent:function(){if(this.layout===ExternalNodeConnectWidget.BOX_COUNT_LAYOUT||this.layout===ExternalNodeConnectWidget.BUTTON_COUNT_LAYOUT){return this.widget;}else if(this.layout===ExternalNodeConnectWidget.SIMPLE_LAYOUT){return this.widget;}else if(this.grayOut){return DOM.find(this.widget,'table.connect_widget_interactive_area');}else return this.confirmationCell;},showCommentWidget:function(event){if(this.otherCommentWidgetOpen)return false;this.inGracePeriod=true;this.killCloseThread();if(this.commentWidgetOpen&&!this.commentWidgetVisible){this.commentWidgetVisible=true;CSS.show(this.commentDocument.body);UnverifiedXD.send({type:'showEdgeCommentDialog'});}return false;},hideCommentWidget:function(event){if(this.otherCommentWidgetOpen)return false;this.inGracePeriod=false;if(this.commentWidgetOpen&&this.commentWidgetVisible){var a=function(){if(!this.inGracePeriod&&this.shouldHideExpandedWidget()){this.fullInputTextarea.blur();this.commentWidgetVisible=false;if(!this.socialBar)CSS.hide(this.commentDocument.body);UnverifiedXD.send({type:'hideEdgeCommentDialog'});}this.inGracePeriod=false;this.killCloseThread();}.bind(this);this.closeThreadID=setTimeout(a,100);}return false;},shouldHideExpandedWidget:function(){return !this.commentWidgetIsExpanded||this.fullInputTextarea.value===''||this.fullInputTextarea.value===this.defaultInputText;},killCloseThread:function(){if(this.closeThreadID){clearTimeout(this.closeThreadID);delete this.closeThreadID;}},transferCSSStyles:function(){var a=DOM.scry(window.document,'link'),b=DOM.scry(window.document,'style'),c=DOM.find(window.document,'html'),d=DOM.find(this.commentDocument,'html'),e=DOM.find(this.commentDocument,'head');for(var f=0;f<a.length;f++)if(a[f].rel=='stylesheet'){var g=this.commentDocument.createElement('link');g.rel=a[f].rel;g.href=a[f].href;g.type=a[f].type;e.appendChild(g);}for(f=0;f<b.length;f++){var h=this.commentDocument.createElement('style'),i=b[f].innerText||b[f].textContent||b[f].innerHTML;h.setAttribute("type","text/css");e.appendChild(h);if(h.styleSheet){h.styleSheet.cssText=i;}else{var j=this.commentDocument.createTextNode(i);h.appendChild(j);}}d.id=c.id;d.className=c.className;this.commentDocument.body.className=window.document.body.className;},transitionToFullInputMode:function(event){this.commentWidgetIsExpanded=true;CSS.hide(this.placeholderInputRegion);CSS.show(this.fullInputRegion);CSS.show(this.widgetButtonRegion);if(this.closeButton){this.restorePlaceholderText();var a=this.fullInputTextarea;if(document.selection){var b=a.createTextRange();b.collapse(true);b.moveEnd('character',0);b.moveStart('character',0);b.select();}else if(a.setSelectionRange){a.focus();a.setSelectionRange(0,0);}}return false;},removePlaceholderText:function(event){if(CSS.hasClass(this.fullInputTextarea,'connect_comment_widget_disabled')){CSS.removeClass(this.fullInputTextarea,'connect_comment_widget_disabled');this.fullInputTextarea.value='';}return false;},restorePlaceholderText:function(event){if(this.fullInputTextarea.value.trim()==''){this.fullInputTextarea.value=this.defaultInputText;CSS.addClass(this.fullInputTextarea,'connect_comment_widget_disabled');}return false;},updateUserComment:function(event){var a=this.fullInputTextarea.value.trim(),b=this.ownProductCheckbox.checked;if(a===''||a==this.defaultInputText){if(b===false)return false;a='';}this.postUserComment(a,b);return false;},getAjaxEndpoint:function(){return '/ajax/connect/external_node_connect.php';},getCommentAjaxEndpoint:function(){return '/ajax/connect/external_edge_comment.php';},getConfirmURL:function(){var a={href:this.externalUrl,page_id:this.pageId,node_type:this.nodeType,edge_type:this.edgeType,widget_id:this.widgetID};if(this.ref)a.ref=this.ref;return URI('/plugins/like_confirm.php').addQueryData(a).toString();},updateLoggedInUser:function(a,b){ExternalNodeConnectWidget.updateLoggedInUser(a,b);},syncSendWidgetWidth:function(a,b){var c=this.computeButtonDimensionsWithPadding().width,d=b.button_width-c;if(this.layout===ExternalNodeConnectWidget.BOX_COUNT_LAYOUT&&d>0&&d<=5){CSS.setStyle(this.connectButton,'width',(b.button_width-parseInt(CSS.getStyle(this.connectButton,'paddingLeft'))-parseInt(CSS.getStyle(this.connectButton,'paddingRight'))-parseInt(CSS.getStyle(this.connectButton,'borderLeftWidth'))-parseInt(CSS.getStyle(this.connectButton,'borderRightWidth')))+'px');this.sizeNumberCloud();}if(this.layout===ExternalNodeConnectWidget.STANDARD_LAYOUT){var e=Vector2.getElementDimensions(this.widget).y;CSS.setStyle(this.widget,'height',(e+5)+'px');var f=ua.ie(),g=intl_locale_is_rtl(),h=g?'right':'left';if(f&&f<9){CSS.setStyle(this.connectButton,'position','absolute');CSS.setStyle(this.connectButton,h,-(b.button_width+10)+'px');}else{CSS.setStyle(this.connectButton,'position','fixed');CSS.setStyle(this.connectButton,h,'0px');}if(f&&this.connectButtonSlider){CSS.setStyle(this.connectButtonSlider,h,b.button_width+'px');if(f<=7)this.fixIEButtonDoubleLineBug();}CSS.setStyle(this.confirmationCell,'position','absolute');CSS.setStyle(this.confirmationCell,h,(b.button_width+c+5)+'px');CSS.setStyle(this.confirmationCell,'top','5px');if(this.sampleConnections){CSS.setStyle(this.sampleConnections,'position','fixed');CSS.setStyle(this.sampleConnections,h,'0');}this.invertedButtons=true;this.repositionFacepileVertically();}},repositionFacepileVertically:function(){if(this.invertedButtons&&this.sampleConnections){var a=Vector2.getElementDimensions(this.summaryText).y;CSS.setStyle(this.sampleConnections,'margin-top',(5+a+5)+'px');}}});
var ExternalPageLikeWidget=function(a){a.edgeType='like';this.parent.construct(this,a);this.unactionLink=DOM.scry(this.widget,'span.unlike_link')[0];if(this.unactionLink)Event.listen(this.unactionLink,'click',this.connectToNodeOnClick.bind(this));this.hasShowedInsights=false;this.showInsights();};Class.extend(ExternalPageLikeWidget,'ExternalNodeConnectWidget');ExternalPageLikeWidget.LIKE_EDGE_TYPE=0;ExternalPageLikeWidget.RECOMMEND_EDGE_TYPE=1;copy_properties(ExternalPageLikeWidget.prototype,{getSyncEndpointName:function(){var a=this.connectText?this.connectText:'like';if(a==ExternalPageLikeWidget.RECOMMEND_EDGE_TYPE)a='like';return 'platform/'+a+'/sync';},getConnectionEndpointName:function(){return 'platform/like/connection';},getPluginName:function(){return 'like';},presentInsightsPage:function(){var a;a='/insights/?inline_link=true&sk=';if(this.pageId){a+='po_'+this.pageId;}else a+='lo_'+this.domainId;window.open(a,'_blank');},showInsights:function(){if(this.hasShowedInsights||(!this.pageId&&!this.domainId))return;var a=DOM.scry(this.widget,'a.connect_widget_insights_link');if(a)for(var b=0;b<a.length;b++){CSS.show(a[b].parentNode);Event.listen(a[b],'click',this.presentInsightsPage.bind(this));}this.hasShowedInsights=true;},repositionFacepileVertically:function(){this.showInsights();this.parent.repositionFacepileVertically();}});
function SendButton(a){var b=$(a.divID);copy_properties(this,{button:DOM.find(b,'a.btnLink'),channel:a.channel,div:b,divID:a.divID,loggedIn:!!a.userID,nodeImageURL:a.nodeImageURL,nodeTitle:a.nodeTitle,nodeURL:a.nodeURL,nodeSummary:a.nodeSummary,error:a.error,initFormOpen:a.initFormOpen,extended_social_context:a.extended_social_context,likeButtonLayout:a.likeButtonLayout});this.init();}copy_properties(SendButton.prototype,{init:function(){this.formIsOpen=false;this.formIsShown=false;this.pendingFormShow=false;Arbiter.subscribe('platform/socialplugins/send/sent',function(a,b){if(b.controllerID===this.divID)this.closeForm();}.bind(this),Arbiter.SUBSCRIBE_NEW);Arbiter.subscribe('platform/socialplugins/send/cancel',function(a,b){if(b.controllerID===this.divID)this.hideForm();}.bind(this),Arbiter.SUBSCRIBE_NEW);this.buttonWidth=Vector2.getElementDimensions(this.button).x;this.widthSyncArbiter=Arbiter.subscribe('platform/socialplugins/like/resize',this.syncLikeWidgetWidth.bind(this));Arbiter.inform('platform/socialplugins/send/resize',{button_width:this.buttonWidth},Arbiter.BEHAVIOR_STATE);Arbiter.subscribe('platform/socialplugins/dialog',function(a,b){if(b.controllerID!==this.divID&&b.event=='open')this.closeForm();}.bind(this));UnverifiedXD.init({channelUrl:this.channel,autoResize:true,resizeWidth:true});Event.listen(this.button,'click',this.toggleFormVisibility.bind(this));if(this.initFormOpen)onafterloadRegister_DEPRECATED(this.toggleFormVisibility.bind(this));},syncLikeWidgetWidth:function(a,b){var c=b.button_width-this.buttonWidth;if(b.layout==='box_count'&&c>0&&c<=5)CSS.setStyle(this.div,'width',(b.button_width-parseInt(CSS.getStyle(this.button,'paddingLeft'))-parseInt(CSS.getStyle(this.button,'paddingRight'))-parseInt(CSS.getStyle(this.button,'borderLeftWidth'))-parseInt(CSS.getStyle(this.button,'borderRightWidth')))+'px');if(b.layout==='standard'){var d=intl_locale_is_rtl()?'right':'left';CSS.setStyle(this.div,'position','absolute');CSS.setStyle(this.div,d,(b.button_width+5)+'px');this.invertedButtons=true;}this.likeWidgetWidth=b.widget_width;this.likeButtonWidth=b.button_width;},toggleFormVisibility:function(a){if(!this.loggedIn){a.kill();PlatformOptInPopup.open('send');return;}if(!this.formIsOpen){this.openForm();}else if(this.formIsShown){this.hideForm();}else this.showForm();},hideForm:function(){if(this.formIsShown){this.formIsShown=false;UnverifiedXD.send({type:'hideEdgeCommentDialog'});CSS.removeClass(this.div,'fbSendButtonSelected');}},showForm:function(){if(!this.formIsShown){CSS.addClass(this.div,'fbSendButtonSelected');this.formIsShown=true;UnverifiedXD.send({type:'showEdgeCommentDialog'});}},closeForm:function(){Arbiter.inform('platform/socialplugins/dialog',{controllerID:this.divID,event:'close'});if(this.formIsOpen){this.formIsOpen=this.formIsShown=false;UnverifiedXD.send({type:'dismissEdgeCommentDialog'});CSS.removeClass(this.div,'fbSendButtonSelected');}return this;},openForm:function(){Arbiter.inform('platform/socialplugins/dialog',{controllerID:this.divID,event:'open'});if(!this.formIsOpen){CSS.addClass(this.div,'fbSendButtonSelected');this.formIsOpen=this.formIsShown=true;var a={type:'presentEdgeCommentDialog',nodeImageURL:this.nodeImageURL,nodeTitle:this.nodeTitle,nodeURL:this.nodeURL,nodeSummary:this.nodeSummary,controllerID:this.divID,error:this.error,widget_type:'send',extended_social_context:this.extended_social_context};if(this.likeButtonLayout=='button_count'){a.preComputedWidthOffset=this.likeWidgetWidth?this.likeWidgetWidth+10:91;}else if(this.likeButtonLayout=='box_count'){a.preComputedHeightOffset=65;a.preComputedWidthOffset=this.buttonWidth?this.buttonWidth+7:60;a.siderender=true;}else if(this.likeButtonLayout=='simple'){a.preComputedWidthOffset=100;}else if(this.likeButtonLayout=='standard'&&this.invertedButtons)a.preComputedWidthOffset=this.likeButtonWidth?this.likeButtonWidth+5:69;UnverifiedXD.send(a);}return this;}});
__e("legacy:cookie",["Cookie"],function(a,b,c,d){var e=b('Cookie');a.getCookie=e.get;a.setCookie=e.set;a.clearCookie=e.clear;},3);