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))},setTitle:function(e){if(!e)return;this._frame.title=e},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){function r(e){var t=e.getAttribute("data-twitter-event-id");return t?t:(e.setAttribute("data-twitter-event-id",++n),n)}function i(e,t,n){var r=0,i=e&&e.length||0;for(r=0;r1&&String(n)!=="[object Object]"){if(n===null||n===undefined)i.expires=-1;return typeof i.expires=="number"&&(s=i.expires,o=new Date((new Date).getTime()+s*60*1e3),i.expires=o),n=String(n),document.cookie=[encodeURIComponent(e),"=",i.raw?n:encodeURIComponent(n),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}return i=n||{},a=i.raw?function(e){return e}:decodeURIComponent,(u=(new RegExp("(?:^|; )"+encodeURIComponent(e)+"=([^;]*)")).exec(document.cookie))?a(u[1]):null})})});provide("tfw/util/tracking",function(e){using("dom/cookie","dom/delegate","sandbox/minimal","util/donottrack","util/promise","util/querystring","tfw/util/env","util/iframe","util/util","$xd/json2.js",function(t,n,r,i,s,o,u,a,f){function E(){return y?y:y=r.createSandbox({id:"rufous-sandbox"},{display:"none"}).then(f.bind(function(e){g=e,p=_(),d=D();while(v[0])k.apply(this,v.shift());return m?L():[p,d]},this))}function S(e,t,n,r){var i=!f.isObject(e),s=t?!f.isObject(t):!1,o,u;if(i||s)return;o=O(e),u=M(t,!!n,!!r),C(o,u,!0)}function x(e,t,n,r,i){var s=T(e.target||e.srcElement);s.action=i||"click",S(s,t,n,r)}function T(e,t){var n;return t=t||{},!e||e.nodeType!==1?t:((n=e.getAttribute("data-scribe"))&&f.forEach(n.split(" "),function(e){var n=f.trim(e).split(":"),r=n[0],i=n[1];r&&i&&!t[r]&&(t[r]=i)}),T(e.parentNode,t))}function N(e,t,n){var r=l+t;if(!e)return;return e[r]=n,e}function C(e,t,n){var r,i,s,u,a;if(!f.isObject(e)||!f.isObject(t))return;s=f.aug({},t,{event_namespace:e}),n?(u={l:B(s)},s.dnt&&(u.dnt=1),P(o.url(b,u))):(r=p.firstChild,r.value=+(+r.value||s.dnt||0),a=B(s),i=g.createElement("input"),i.type="hidden",i.name="l",i.value=a,p.appendChild(i))}function k(e,t,n,r){var i=!f.isObject(e),s=t?!f.isObject(t):!1,o,u;if(i||s)return;if(!g||!p){v.push([e,t,n,r]);return}o=O(e),u=M(t,!!n,!!r),C(o,u)}function L(){if(!p)return m=!0,y||s.reject();if(p.children.length<=2)return s.reject();var e=s.every(g.appendChild(p),g.appendChild(d)).then(function(e){var t=e[0],r=e[1];return n.on(r,"load",function(){window.setTimeout(A(t,r),0)}),t.submit(),e});return p=_(),d=D(),e}function A(e,t){return function(){var n=e.parentNode;if(!n)return;n.removeChild(e),n.removeChild(t)}}function O(e){return f.aug({client:"tfw"},e||{})}function M(e,t,n){var r={_category_:"tfw_client_event"},s,o;t=!!t,n=!!n,s=f.aug(r,e||{}),o=s.widget_origin||document.referrer,s.format_version=1,s.triggered_on=s.triggered_on||+(new Date),t||(s.widget_origin=o);if(n||i(o))s.dnt=!0,H(s);return s}function _(){var e=g.createElement("form"),t=g.createElement("input"),n=g.createElement("input");return h++,e.action=b,e.method="POST",e.target="rufous-frame-"+h,e.id="rufous-form-"+h,t.type="hidden",t.name="dnt",t.value=0,n.type="hidden",n.name="tfw_redirect",n.value=w,e.appendChild(t),e.appendChild(n),e}function D(){var e="rufous-frame-"+h;return a({id:e,name:e,width:0,height:0,border:0},{display:"none"},g.document())}function P(e){var t=new Image;t.src=e}function H(e){f.forIn(e,function(t){~f.indexOf(c,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 l="twttr_",c=["hask","li","logged_in","pid","user_id","guest_id",l+"hask",l+"li",l+"pid"],h=0,p,d,v=[],m,g,y,b="https://twitter.com/i/jot",w="https://platform.twitter.com/jot.html";e({enqueue:k,flush:L,initPostLogging:E,scribeInteraction:x,extractTermsFromDOM:T,addPixel:S,addVar:N})})});using("util/domready","util/util","util/querystring","util/params","tfw/util/tracking","util/widgetrpc","util/twitter","i18n/languages",function(e,t,n,r,i,s,o,u){function a(e){return e=e||window.event,e&&e.preventDefault?e.preventDefault():e.returnValue=!1,e&&e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,!1}function f(e){return e.replace(/(<)|(>)/g,function(e){var t;return e[0]==="<"?t="<":t=">",t})}function l(e){for(var t=0,n=e.length;t#"+w.button_hashtag+""});case"mention":return _("Tweet to %{name}",{name:"@"+w.screen_name+""});default:return _("Tweet")}}function H(e,t){var n=e.id+"-desc",r=document.createElement("p");r.id=n,r.className="aria",r.innerHTML=t,g.body.appendChild(r),e.setAttribute("aria-describedby",n)}function B(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 j(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[w.lang]?(n=(Math.floor(r/100)/100).toString(),n+_("10k unit")):(t=(Math.round(r/100)/10).toString(),t.replace(/\./,_("."))+_("K")):_("100K+")}twttr.config=t.aug({countURL:"http://cdn.api.twitter.com/1/urls/count.json",intentURL:"https://twitter.com/intent/tweet"},twttr.config||{});var v="1.1",m=0,g=document,y=g.getElementById("count"),b=g.getElementById("b"),w=l(r.combined(g.location)),E={vertical:"vcount",horizontal:"hcount",none:"ncount"},S={l:"xl",m:"regular"},x=["share","mention","hashtag"],T=[],N,C,k,L,A,O,M,D;w.lang=w.lang&&w.lang.toLowerCase(),g.body.parentNode.lang=twttr.lang=w.lang=~t.indexOf(u,w.lang)?w.lang:"en",D=_("ltr"),twttr.receiveCount=function(e){typeof e.count=="number"&&(p(e.count),c(g.body,"count-ready"),e.count>0&&(y.title=_("This page has been shared %{tweets} times. View these Tweets.",{tweets:e.count}),H(y,y.title)))},w.type=~t.indexOf(x,w.type)?w.type:"share",w.size=S[w.size]?w.size:"m",c(g.documentElement,S[w.size]||""),w.align=="right"&&c(g.body,"right");if(w.type=="mention"||w.screen_name)(M=o.screenName(w.screen_name))?w.screen_name=M:(delete w.screen_name,w.type=="mention"&&(w.type="share",w.count="none"));w.type=="hashtag"||w.button_hashtag?((O=o.hashTag(w.button_hashtag,!1))?(w.button_hashtag=O,w.hashtags=w.button_hashtag+","+(w.hashtags||"")):(delete w.button_hashtag,w.type="share"),w.count="none"):w.type=="share"?(w.url=w.url||g.referrer,C=w.counturl||w.url,k=C&&"http://twitter.com/search?q="+n.encodePart(C),w.size=="l"&&w.count=="vertical"&&(w.count="none"),T.push(E[w.count]||"hcount"),d()):w.count="none",T.push(D),c(g.body,T.join(" ")),g.body.setAttribute("data-scribe","section:"+w.type),h(),c(g.body,"ready"),N={text:w.text,screen_name:w.screen_name,hashtags:w.hashtags,url:w.url,via:w.via,related:w.related,share_with_retweet:w.share_with_retweet,placeid:w.placeid,original_referer:g.referrer,partner:w.partner,tw_p:"tweetbutton"},L=twttr.config.intentURL+"?"+n.encode(N),A=w.dnt&&w.dnt.toLowerCase()==="true",i.addPixel({page:"button",section:w.type,action:"impression"},{language:w.lang,client_version:[v,w.size,w.count!="none"?"withcount":"nocount"].join(":")+":",widget_origin:g.referrer},!1,A),y.href=k,b.href=L,b.onclick=function(e){return e=e||window.event,i.scribeInteraction(e,{},!1,A),s.withHub({nohub:function(){B(L,w.id)},timeout:function(){B(L,w.id)},success:function(e){e.openIntent(L,w.id),e.trigger("click",{region:"tweet"},w.id)}}),a(e)},w.searchlink!="disabled"?(c(y.parentNode,"enabled"),y.onclick=function(e){e=e||window.event,i.scribeInteraction(e,{},!1,A),s.withHub(function(e){e.trigger("click",{region:"tweetcount"},w.id)});if(e.altKey||e.shiftKey||e.metaKey)return;return window.open(k),a(e)}):y.onclick=function(e){a(e)}})});;