Tweet
","",""].join("");this.document.write(e),this.document.close()},e(u)})});provide("sandbox/minimal",function(e){using("sandbox/baseframe","util/env","util/promise","util/util",function(t,n,r,i){function s(e,t){if(!e)return;this._frame=e,this._win=e.contentWindow,this._doc=this._win.document,this._body=this._doc.body,this._head=this._body.parentNode.children[0],this.layout=t}i.aug(s.prototype,{createElement:function(e){return this._doc.createElement(e)},createDocumentFragment:function(){return this._doc.createDocumentFragment()},appendChild:function(e){return this.layout(i.bind(function(){return this._body.appendChild(e)},this))},setBaseTarget:function(e){var t=this._doc.createElement("base");return t.target=e,this.layout(i.bind(function(){return this._head.appendChild(t)},this))},element:function(){return this._frame},document:function(){return this._doc}}),s.createSandbox=function(e,n,r,i){var o=new t(e,n,r,i);return o.ready().then(function(e){return new s(e.frame,e.layout)})},e(s)})});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#"+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)}})});;