Tweet
","",""].join("");this.sandbox.doc.write(e),this.sandbox.doc.close()},e(o)})});provide("dom/delegate",function(e){using("util/env",function(t){function i(e){var t=e.getAttribute("data-twitter-event-id");return t?t:(e.setAttribute("data-twitter-event-id",++r),r)}function s(e,t,n){var r=0,i=e&&e.length||0;for(r=0;r")}catch(n){e=g.createElement("iframe"),e.name=t}return e.id=t,e.style.display="none",e.width=0,e.height=0,e.border=0,e}function P(e){var t=document.createElement("img");t.src=e,t.alt="",t.style.position="absolute",t.style.height="1px",t.style.width="1px",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t)}function H(e){var t;for(t in e)~u.indexOf(l,t)&&delete e[t]}function B(e){var t=Array.prototype.toJSON,n;return delete Array.prototype.toJSON,n=JSON.stringify(e),t&&(Array.prototype.toJSON=t),n}var a="twttr_",f={tweetbutton:"../../t.gif",followbutton:"../../f.gif",tweetembed:"../../e.gif"},l=["hask","li","logged_in","pid","user_id",s.guest_id_cookie,a+"hask",a+"li",a+s.guest_id_cookie],c=0,h,p,d=[],v,m,g,y,b="https://twitter.com/i/jot",w="https://platform.twitter.com/jot.html";s.forceNewCookie(),e({enqueue:C,flush:k,initPostLogging:E,addPixel:S,addLegacyPixel:x,addVar:T})})});using("util/domready","util/util","util/querystring","util/params","tfw/util/tracking","tfw/util/guest_cookie","util/widgetrpc","util/twitter","i18n/languages",function(e,t,n,r,i,s,o,u,a){function L(e){l=e,h.innerHTML=H(l)}function A(){e(function(){if(v.url&&v.count!=="none"){var e=c.createElement("script");e.type="text/javascript",e.src=twttr.config.countURL+"?url="+n.encodePart(E)+"&callback=twttr.receiveCount",c.body.appendChild(e)}})}function O(){switch(v.type){case"hashtag":return _("Tweet %{hashtag}",{hashtag:"#"+v.button_hashtag+""});case"mention":return _("Tweet to %{name}",{name:"@"+v.screen_name+""});default:return _("Tweet")}}function M(){var e=c.getElementById("l");c.title=_("Tweet Button"),e.innerHTML=O()}function D(e,t){var n=e.id+"-desc",r=document.createElement("p");r.id=n,r.className="aria",r.innerHTML=t,c.body.appendChild(r),e.setAttribute("aria-describedby",n)}function P(e){var t="scrollbars=yes,resizable=yes,toolbar=no,location=yes",n=550,r=420,i=screen.height,s=screen.width,o=Math.round(s/2-n/2),u=0;return i>r&&(u=Math.round(i/2-r/2)),window.open(e,null,t+",width="+n+",height="+r+",left="+o+",top="+u)}function H(e){var t,n,r=parseInt(e,10),i=new RegExp("^\\"+_(",")),s={ja:1,ko:1};return isNaN(r)?"":r<1e4?r.toString().split("").reverse().join("").replace(/(\d{3})/g,"$1"+_(",")).split("").reverse().join("").replace(i,""):r<1e5?s[v.lang]?(n=(Math.floor(r/100)/100).toString(),n+_("10k unit")):(t=(Math.round(r/100)/10).toString(),t.replace(/\./,_("."))+_("K")):_("100K+")}function B(e){return e=e||window.event,e&&e.preventDefault?e.preventDefault():e.returnValue=!1,e&&e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,!1}function j(e){return e.replace(/(<)|(>)/g,function(e){var t;return e[0]==="<"?t="<":t=">",t})}function F(e){for(var t=0,n=e.length;t0&&(h.title=_("This page has been shared %{tweets} times. View these Tweets.",{tweets:e.count}),D(h,h.title)))},v.type=~t.indexOf(y,v.type)?v.type:"share",v.size=g[v.size]?v.size:"m",I(c.documentElement,g[v.size]||""),v.align=="right"&&I(c.body,"right");if(v.type=="mention"||v.screen_name)(C=u.screenName(v.screen_name))?v.screen_name=C:(delete v.screen_name,v.type=="mention"&&(v.type="share",v.count="none"));v.type=="hashtag"||v.button_hashtag?((N=u.hashTag(v.button_hashtag,!1))?(v.button_hashtag=N,v.hashtags=v.button_hashtag+","+(v.hashtags||"")):(delete v.button_hashtag,v.type="share"),v.count="none"):v.type=="share"?(v.url=v.url||c.referrer,E=v.counturl||v.url,S=E&&"http://twitter.com/search?q="+n.encodePart(E),v.size=="l"&&v.count=="vertical"&&(v.count="none"),b.push(m[v.count]||"hcount"),A()):v.count="none",b.push(k),I(c.body,b.join(" ")),M(),I(c.body,"ready"),w={text:v.text,screen_name:v.screen_name,hashtags:v.hashtags,url:v.url,via:v.via,related:v.related,placeid:v.placeid,original_referer:c.referrer,partner:v.partner,tw_p:"tweetbutton"},x=twttr.config.intentURL+"?"+n.encode(w),T=v.dnt&&v.dnt.toLowerCase()==="true",i.addLegacyPixel(v,"tweetbutton",!1,T),i.addPixel({page:"button",section:v.type,action:"impression"},{language:v.lang,client_version:f+":"+v.size+(v.count!=="none"?":c":""),widget_origin:c.referrer},!1,T),h.href=S,p.href=x,p.onclick=function(e){return o.withHub({nohub:function(){P(x,v.id)},timeout:function(){P(x,v.id)},success:function(e){e.openIntent(x,v.id),e.trigger("click",{region:"tweet"},v.id)}}),B(e)},v.searchlink!="disabled"?(I(h.parentNode,"enabled"),h.onclick=function(e){e=e||window.event,o.withHub(function(e){e.trigger("click",{region:"tweetcount"},v.id)});if(e.altKey||e.shiftKey||e.metaKey)return;return window.open(S),B(e)}):h.onclick=function(e){B(e)}})});;