Removed file as requested
[akkoma] / priv / static / packs / application.js
index 047178a75546a892b48640f008bb4e53a31e3520..d107877c713447de5ade4eb262e2ec13193045b4 100644 (file)
@@ -1,2 +1,2 @@
-webpackJsonp([36],{155:function(t,e,n){"use strict";n.d(e,"a",function(){return m});var o=n(2),r=n.n(o),a=n(1),i=n.n(a),s=n(3),c=n.n(s),l=n(4),u=n.n(l),d=n(0),p=n.n(d),h=n(10),f=n.n(h),m=function(t){function e(){var n,o,r;i()(this,e);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=o=c()(this,t.call.apply(t,[this].concat(s))),o.handleClick=function(){o.props.onClick()},r=n,c()(o,r)}return u()(e,t),e.prototype.render=function(){var t=this.props,e=t.icon,n=t.type,o=t.active,a=t.columnHeaderId,i="";return e&&(i=r()("i",{className:"fa fa-fw fa-"+e+" column-header__icon"})),r()("h1",{className:f()("column-header",{active:o}),id:a||null},void 0,r()("button",{onClick:this.handleClick},void 0,i,n))},e}(p.a.PureComponent)},251:function(t,e,n){"use strict";function o(t){return k.findIndex(function(e){return e.props.to===t})}function r(t){return k[t].props.to}n.d(e,"d",function(){return k}),e.b=o,e.c=r,n.d(e,"a",function(){return _});var a,i=n(1),s=n.n(i),c=n(3),l=n.n(c),u=n(4),d=n.n(u),p=n(2),h=n.n(p),f=n(32),m=n.n(f),v=n(0),y=n.n(v),g=n(44),b=n(7),w=n(43),k=[h()(g.c,{className:"tabs-bar__link primary",to:"/timelines/home","data-preview-title-id":"column.home","data-preview-icon":"home"},void 0,h()("i",{className:"fa fa-fw fa-home"}),h()(b.b,{id:"tabs_bar.home",defaultMessage:"Home"})),h()(g.c,{className:"tabs-bar__link primary",to:"/notifications","data-preview-title-id":"column.notifications","data-preview-icon":"bell"},void 0,h()("i",{className:"fa fa-fw fa-bell"}),h()(b.b,{id:"tabs_bar.notifications",defaultMessage:"Notifications"})),h()(g.c,{className:"tabs-bar__link primary",to:"/search","data-preview-title-id":"tabs_bar.search","data-preview-icon":"bell"},void 0,h()("i",{className:"fa fa-fw fa-search"}),h()(b.b,{id:"tabs_bar.search",defaultMessage:"Search"})),h()(g.c,{className:"tabs-bar__link secondary",to:"/timelines/public/local","data-preview-title-id":"column.community","data-preview-icon":"users"},void 0,h()("i",{className:"fa fa-fw fa-users"}),h()(b.b,{id:"tabs_bar.local_timeline",defaultMessage:"Local"})),h()(g.c,{className:"tabs-bar__link secondary",exact:!0,to:"/timelines/public","data-preview-title-id":"column.public","data-preview-icon":"globe"},void 0,h()("i",{className:"fa fa-fw fa-globe"}),h()(b.b,{id:"tabs_bar.federated_timeline",defaultMessage:"Federated"})),h()(g.c,{className:"tabs-bar__link primary",style:{flexGrow:"0",flexBasis:"30px"},to:"/getting-started","data-preview-title-id":"getting_started.heading","data-preview-icon":"bars"},void 0,h()("i",{className:"fa fa-fw fa-bars"}))],_=Object(b.g)(a=Object(g.g)(a=function(t){function e(){var n,o,r;s()(this,e);for(var a=arguments.length,i=Array(a),c=0;c<a;c++)i[c]=arguments[c];return n=o=l()(this,t.call.apply(t,[this].concat(i))),o.setRef=function(t){o.node=t},o.handleClick=function(t){Object(w.c)()&&(t.preventDefault(),t.persist(),requestAnimationFrame(function(){var e=Array.apply(void 0,o.node.querySelectorAll(".tabs-bar__link")),n=e.find(function(t){return t.classList.contains("active")}),r=e.find(function(e){return e.contains(t.target)}),a=k[Array.apply(void 0,o.node.childNodes).indexOf(r)].props.to;if(n!==r){n&&n.classList.remove("active");var i=m()(function(){r.removeEventListener("transitionend",i),o.props.history.push(a)},50);r.addEventListener("transitionend",i),r.classList.add("active")}}))},r=n,l()(o,r)}return d()(e,t),e.prototype.render=function(){var t=this,e=this.props.intl.formatMessage;return y.a.createElement("nav",{className:"tabs-bar",ref:this.setRef},k.map(function(n){return y.a.cloneElement(n,{key:n.props.to,onClick:t.handleClick,"aria-label":e({id:n.props["data-preview-title-id"]})})}))},e}(y.a.PureComponent))||a)||a},252:function(t,e,n){"use strict";n.d(e,"a",function(){return w});var o,r,a=n(2),i=n.n(a),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),p=n.n(d),h=n(0),f=(n.n(h),n(5)),m=n.n(f),v=n(71),y=n(70),g=n(12),b=n.n(g),w=(r=o=function(t){function e(){return c()(this,e),u()(this,t.apply(this,arguments))}return p()(e,t),e.prototype.render=function(){var t=this.props,e=t.title,n=t.icon;return i()(v.a,{},void 0,i()(y.a,{icon:n,title:e,multiColumn:!1,focusable:!1}),i()("div",{className:"scrollable"}))},e}(b.a),o.propTypes={title:m.a.oneOfType([m.a.node,m.a.string]),icon:m.a.string},o.defaultProps={title:"",icon:""},r)},253:function(t,e,n){"use strict";var o=n(2),r=n.n(o),a=n(1),i=n.n(a),s=n(3),c=n.n(s),l=n(4),u=n.n(l),d=n(0),p=n.n(d),h=n(7),f=n(274),m=n(155),v=n(288),y=n(23),g=Object(h.f)({title:{id:"bundle_column_error.title",defaultMessage:"Network error"},body:{id:"bundle_column_error.body",defaultMessage:"Something went wrong while loading this component."},retry:{id:"bundle_column_error.retry",defaultMessage:"Try again"}}),b=function(t){function e(){var n,o,r;i()(this,e);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=o=c()(this,t.call.apply(t,[this].concat(s))),o.handleRetry=function(){o.props.onRetry()},r=n,c()(o,r)}return u()(e,t),e.prototype.render=function(){var t=this.props.intl.formatMessage;return r()(f.a,{},void 0,r()(m.a,{icon:"exclamation-circle",type:t(g.title)}),r()(v.a,{}),r()("div",{className:"error-column"},void 0,r()(y.a,{title:t(g.retry),icon:"refresh",onClick:this.handleRetry,size:64}),t(g.body)))},e}(p.a.PureComponent);e.a=Object(h.g)(b)},274:function(t,e,n){"use strict";n.d(e,"a",function(){return g});var o=n(2),r=n.n(o),a=n(1),i=n.n(a),s=n(3),c=n.n(s),l=n(4),u=n.n(l),d=n(32),p=n.n(d),h=n(0),f=n.n(h),m=n(155),v=n(91),y=n(43),g=function(t){function e(){var n,o,r;i()(this,e);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=o=c()(this,t.call.apply(t,[this].concat(s))),o.handleHeaderClick=function(){var t=o.node.querySelector(".scrollable");t&&(o._interruptScrollAnimation=Object(v.b)(t))},o.handleScroll=p()(function(){void 0!==o._interruptScrollAnimation&&o._interruptScrollAnimation()},200),o.setRef=function(t){o.node=t},r=n,c()(o,r)}return u()(e,t),e.prototype.scrollTop=function(){var t=this.node.querySelector(".scrollable");t&&(this._interruptScrollAnimation=Object(v.b)(t))},e.prototype.render=function(){var t=this.props,e=t.heading,n=t.icon,o=t.children,a=t.active,i=t.hideHeadingOnMobile,s=e&&(!i||i&&!Object(y.b)(window.innerWidth)),c=s&&e.replace(/ /g,"-"),l=s&&r()(m.a,{icon:n,active:a,type:e,onClick:this.handleHeaderClick,columnHeaderId:c});return f.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":c,className:"column",onScroll:this.handleScroll},l,o)},e}(f.a.PureComponent)},276:function(t,e,n){"use strict";n.d(e,"a",function(){return g});var o,r,a=n(2),i=n.n(a),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),p=n.n(d),h=n(0),f=n.n(h),m=n(7),v=n(5),y=n.n(v),g=(r=o=function(t){function e(){var n,o,r;c()(this,e);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=o=u()(this,t.call.apply(t,[this].concat(i))),o.handleClick=function(){window.history&&1===window.history.length?o.context.router.history.push("/"):o.context.router.history.goBack()},r=n,u()(o,r)}return p()(e,t),e.prototype.render=function(){return i()("button",{onClick:this.handleClick,className:"column-back-button"},void 0,i()("i",{className:"fa fa-fw fa-chevron-left column-back-button__icon"}),i()(m.b,{id:"column_back_button.label",defaultMessage:"Back"}))},e}(f.a.PureComponent),o.contextTypes={router:y.a.object},r)},288:function(t,e,n){"use strict";n.d(e,"a",function(){return f});var o=n(2),r=n.n(o),a=n(1),i=n.n(a),s=n(3),c=n.n(s),l=n(4),u=n.n(l),d=n(0),p=(n.n(d),n(7)),h=n(276),f=function(t){function e(){return i()(this,e),c()(this,t.apply(this,arguments))}return u()(e,t),e.prototype.render=function(){return r()("div",{className:"column-back-button--slim"},void 0,r()("div",{role:"button",tabIndex:"0",onClick:this.handleClick,className:"column-back-button column-back-button--slim-button"},void 0,r()("i",{className:"fa fa-fw fa-chevron-left column-back-button__icon"}),r()(p.b,{id:"column_back_button.label",defaultMessage:"Back"})))},e}(h.a)},662:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(77);Object(o.a)().then(function(){n(663).default()}).catch(function(t){console.error(t)})},663:function(t,e,n){"use strict";function o(){if(d.start("main()"),window.history&&history.replaceState){var t=window.location,e=t.pathname,o=t.search,i=t.hash,c=e+o+i;/^\/web($|\/)/.test(c)||history.replaceState(null,document.title,"/web"+c)}Object(u.default)(function(){var t=document.getElementById("mastodon"),e=JSON.parse(t.getAttribute("data-props"));l.a.render(s.a.createElement(a.a,e),t),n(676).install(),a.b.dispatch(r.f()),d.stop("main()")})}Object.defineProperty(e,"__esModule",{value:!0});var r=n(163),a=n(664),i=n(0),s=n.n(i),c=n(20),l=n.n(c),u=n(89),d=n(675);e.default=o},664:function(t,e,n){"use strict";n.d(e,"b",function(){return j}),n.d(e,"a",function(){return M});var o=n(2),r=n.n(o),a=n(1),i=n.n(a),s=n(3),c=n.n(s),l=n(4),u=n.n(l),d=n(0),p=n.n(d),h=n(9),f=n(126),m=n(665),v=n(44),y=n(156),g=n(666),b=n(210),w=n(31),k=n(72),_=n(7),O=n(6),T=n(13),C=Object(O.getLocale)(),x=C.localeData,N=C.messages;Object(_.e)(x);var j=Object(f.a)(),E=Object(w.b)(T.c);j.dispatch(E),j.dispatch(Object(b.b)());var M=function(t){function e(){return i()(this,e),c()(this,t.apply(this,arguments))}return u()(e,t),e.prototype.componentDidMount=function(){if(this.disconnect=j.dispatch(Object(k.f)()),void 0!==window.Notification&&"default"===Notification.permission&&window.setTimeout(function(){return Notification.requestPermission()},6e4),void 0!==navigator.registerProtocolHandler){var t=window.location.protocol+"//"+window.location.host+"/intent?uri=%s";window.setTimeout(function(){return navigator.registerProtocolHandler("web+mastodon",t,"Mastodon")},3e5)}j.dispatch(Object(m.a)())},e.prototype.componentWillUnmount=function(){this.disconnect&&(this.disconnect(),this.disconnect=null)},e.prototype.render=function(){var t=this.props.locale;return r()(_.d,{locale:t,messages:N},void 0,r()(h.Provider,{store:j},void 0,r()(v.a,{basename:"/web"},void 0,r()(y.b,{},void 0,r()(v.e,{path:"/",component:g.a})))))},e}(p.a.PureComponent)},665:function(t,e,n){"use strict";function o(){return function(t,e){e().getIn(["settings","onboarded"])||(t(Object(r.d)("ONBOARDING")),t(Object(a.c)(["onboarded"],!0)),t(Object(a.d)()))}}e.a=o;var r=n(26),a=n(56)},666:function(t,e,n){"use strict";n.d(e,"a",function(){return z});var o,r,a,i,s=n(2),c=n.n(s),l=n(1),u=n.n(l),d=n(3),p=n.n(d),h=n(4),f=n.n(h),m=n(32),v=n.n(m),y=n(10),g=n.n(y),b=n(0),w=n.n(b),k=n(247),_=n(5),O=n.n(_),T=n(250),C=n(251),x=n(150),N=n(9),j=n(44),E=n(43),M=n(17),P=n(19),S=n(103),D=n(94),L=n(670),I=n(671),H=n(672),F=n(58),A=n(162),R=(n.n(A),n(13)),U=n(7),W=(n(158),Object(U.f)({beforeUnload:{id:"ui.beforeunload",defaultMessage:"Your draft will be lost if you leave Mastodon."}})),G=function(t){return{isComposing:t.getIn(["compose","is_composing"]),hasComposingText:""!==t.getIn(["compose","text"]),dropdownMenuIsOpen:null!==t.getIn(["dropdown_menu","openId"])}},q={help:"?",new:"n",search:"s",forceNew:"option+n",focusColumn:["1","2","3","4","5","6","7","8","9"],reply:"r",favourite:"f",boost:"b",mention:"m",open:["enter","o"],openProfile:"p",moveDown:["down","j"],moveUp:["up","k"],back:"backspace",goToHome:"g h",goToNotifications:"g n",goToLocal:"g l",goToFederated:"g t",goToDirect:"g d",goToStart:"g s",goToFavourites:"g f",goToPinned:"g p",goToProfile:"g u",goToBlocked:"g b",goToMuted:"g m",toggleHidden:"x"},B=function(t){function e(){var n,o,r;u()(this,e);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=o=p()(this,t.call.apply(t,[this].concat(i))),o.state={mobile:Object(E.b)(window.innerWidth)},o.handleResize=v()(function(){o.props.onLayoutChange(),o.setState({mobile:Object(E.b)(window.innerWidth)})},500,{trailing:!0}),o.setRef=function(t){o.node=t.getWrappedInstance().getWrappedInstance()},r=n,p()(o,r)}return f()(e,t),e.prototype.componentWillMount=function(){window.addEventListener("resize",this.handleResize,{passive:!0})},e.prototype.componentDidUpdate=function(t){[this.props.location.pathname,"/"].includes(t.location.pathname)||this.node.handleChildrenContentChange()},e.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleResize)},e.prototype.render=function(){var t=this.props.children,e=this.state.mobile,n=e?c()(j.d,{from:"/",to:"/timelines/home",exact:!0}):c()(j.d,{from:"/",to:"/getting-started",exact:!0});return w.a.createElement(H.a,{ref:this.setRef,singleColumn:e},c()(L.b,{},void 0,n,c()(L.a,{path:"/getting-started",component:F.p,content:t}),c()(L.a,{path:"/keyboard-shortcuts",component:F.s,content:t}),c()(L.a,{path:"/timelines/home",component:F.r,content:t}),c()(L.a,{path:"/timelines/public",exact:!0,component:F.C,content:t}),c()(L.a,{path:"/timelines/public/media",component:F.C,content:t,componentParams:{onlyMedia:!0}}),c()(L.a,{path:"/timelines/public/local",exact:!0,component:F.d,content:t}),c()(L.a,{path:"/timelines/public/local/media",component:F.d,content:t,componentParams:{onlyMedia:!0}}),c()(L.a,{path:"/timelines/direct",component:F.f,content:t}),c()(L.a,{path:"/timelines/tag/:id",component:F.q,content:t}),c()(L.a,{path:"/timelines/list/:id",component:F.u,content:t}),c()(L.a,{path:"/notifications",component:F.z,content:t}),c()(L.a,{path:"/favourites",component:F.j,content:t}),c()(L.a,{path:"/pinned",component:F.B,content:t}),c()(L.a,{path:"/search",component:F.e,content:t,componentParams:{isSearchPage:!0}}),c()(L.a,{path:"/statuses/new",component:F.e,content:t}),c()(L.a,{path:"/statuses/:statusId",exact:!0,component:F.F,content:t}),c()(L.a,{path:"/statuses/:statusId/reblogs",component:F.D,content:t}),c()(L.a,{path:"/statuses/:statusId/favourites",component:F.k,content:t}),c()(L.a,{path:"/accounts/:accountId",exact:!0,component:F.b,content:t}),c()(L.a,{path:"/accounts/:accountId/with_replies",component:F.b,content:t,componentParams:{withReplies:!0}}),c()(L.a,{path:"/accounts/:accountId/followers",component:F.m,content:t}),c()(L.a,{path:"/accounts/:accountId/following",component:F.n,content:t}),c()(L.a,{path:"/accounts/:accountId/media",component:F.a,content:t}),c()(L.a,{path:"/follow_requests",component:F.l,content:t}),c()(L.a,{path:"/blocks",component:F.c,content:t}),c()(L.a,{path:"/domain_blocks",component:F.g,content:t}),c()(L.a,{path:"/mutes",component:F.y,content:t}),c()(L.a,{path:"/lists",component:F.v,content:t}),c()(L.a,{component:F.o,content:t})))},e}(w.a.PureComponent),z=(o=Object(N.connect)(G))(r=Object(U.g)(r=Object(j.g)((i=a=function(t){function e(){var n,o,r;u()(this,e);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=o=p()(this,t.call.apply(t,[this].concat(i))),o.state={draggingOver:!1},o.handleBeforeUnload=function(t){var e=o.props,n=e.intl,r=e.isComposing,a=e.hasComposingText;r&&a&&(t.returnValue=n.formatMessage(W.beforeUnload))},o.handleLayoutChange=function(){o.props.dispatch(Object(D.c)())},o.handleDragEnter=function(t){t.preventDefault(),o.dragTargets||(o.dragTargets=[]),-1===o.dragTargets.indexOf(t.target)&&o.dragTargets.push(t.target),t.dataTransfer&&Array.from(t.dataTransfer.types).includes("Files")&&o.setState({draggingOver:!0})},o.handleDragOver=function(t){t.preventDefault(),t.stopPropagation();try{t.dataTransfer.dropEffect="copy"}catch(t){}return!1},o.handleDrop=function(t){t.preventDefault(),o.setState({draggingOver:!1}),t.dataTransfer&&1===t.dataTransfer.files.length&&o.props.dispatch(Object(M.Z)(t.dataTransfer.files))},o.handleDragLeave=function(t){t.preventDefault(),t.stopPropagation(),o.dragTargets=o.dragTargets.filter(function(e){return e!==t.target&&o.node.contains(e)}),o.dragTargets.length>0||o.setState({draggingOver:!1})},o.closeUploadModal=function(){o.setState({draggingOver:!1})},o.handleServiceWorkerPostMessage=function(t){var e=t.data;"navigate"===e.type?o.context.router.history.push(e.path):console.warn("Unknown message type:",e.type)},o.setRef=function(t){o.node=t},o.handleHotkeyNew=function(t){t.preventDefault();var e=o.node.querySelector(".compose-form__autosuggest-wrapper textarea");e&&e.focus()},o.handleHotkeySearch=function(t){t.preventDefault();var e=o.node.querySelector(".search__input");e&&e.focus()},o.handleHotkeyForceNew=function(t){o.handleHotkeyNew(t),o.props.dispatch(Object(M.U)())},o.handleHotkeyFocusColumn=function(t){var e=1*t.key+1,n=o.node.querySelector(".column:nth-child("+e+")");if(n){var r=n.querySelector(".focusable");r&&r.focus()}},o.handleHotkeyBack=function(){window.history&&1===window.history.length?o.context.router.history.push("/"):o.context.router.history.goBack()},o.setHotkeysRef=function(t){o.hotkeys=t},o.handleHotkeyToggleHelp=function(){"/keyboard-shortcuts"===o.props.location.pathname?o.context.router.history.goBack():o.context.router.history.push("/keyboard-shortcuts")},o.handleHotkeyGoToHome=function(){o.context.router.history.push("/timelines/home")},o.handleHotkeyGoToNotifications=function(){o.context.router.history.push("/notifications")},o.handleHotkeyGoToLocal=function(){o.context.router.history.push("/timelines/public/local")},o.handleHotkeyGoToFederated=function(){o.context.router.history.push("/timelines/public")},o.handleHotkeyGoToDirect=function(){o.context.router.history.push("/timelines/direct")},o.handleHotkeyGoToStart=function(){o.context.router.history.push("/getting-started")},o.handleHotkeyGoToFavourites=function(){o.context.router.history.push("/favourites")},o.handleHotkeyGoToPinned=function(){o.context.router.history.push("/pinned")},o.handleHotkeyGoToProfile=function(){o.context.router.history.push("/accounts/"+R.i)},o.handleHotkeyGoToBlocked=function(){o.context.router.history.push("/blocks")},o.handleHotkeyGoToMuted=function(){o.context.router.history.push("/mutes")},r=n,p()(o,r)}return f()(e,t),e.prototype.componentWillMount=function(){window.addEventListener("beforeunload",this.handleBeforeUnload,!1),document.addEventListener("dragenter",this.handleDragEnter,!1),document.addEventListener("dragover",this.handleDragOver,!1),document.addEventListener("drop",this.handleDrop,!1),document.addEventListener("dragleave",this.handleDragLeave,!1),document.addEventListener("dragend",this.handleDragEnd,!1),"serviceWorker"in navigator&&navigator.serviceWorker.addEventListener("message",this.handleServiceWorkerPostMessage),this.props.dispatch(Object(P.p)()),this.props.dispatch(Object(S.h)())},e.prototype.componentDidMount=function(){this.hotkeys.__mousetrap__.stopCallback=function(t,e){return["TEXTAREA","SELECT","INPUT"].includes(e.tagName)}},e.prototype.componentWillUnmount=function(){window.removeEventListener("beforeunload",this.handleBeforeUnload),document.removeEventListener("dragenter",this.handleDragEnter),document.removeEventListener("dragover",this.handleDragOver),document.removeEventListener("drop",this.handleDrop),document.removeEventListener("dragleave",this.handleDragLeave),document.removeEventListener("dragend",this.handleDragEnd)},e.prototype.render=function(){var t=this.state.draggingOver,e=this.props,n=e.children,o=e.isComposing,r=e.location,a=e.dropdownMenuIsOpen,i={help:this.handleHotkeyToggleHelp,new:this.handleHotkeyNew,search:this.handleHotkeySearch,forceNew:this.handleHotkeyForceNew,focusColumn:this.handleHotkeyFocusColumn,back:this.handleHotkeyBack,goToHome:this.handleHotkeyGoToHome,goToNotifications:this.handleHotkeyGoToNotifications,goToLocal:this.handleHotkeyGoToLocal,goToFederated:this.handleHotkeyGoToFederated,goToDirect:this.handleHotkeyGoToDirect,goToStart:this.handleHotkeyGoToStart,goToFavourites:this.handleHotkeyGoToFavourites,goToPinned:this.handleHotkeyGoToPinned,goToProfile:this.handleHotkeyGoToProfile,goToBlocked:this.handleHotkeyGoToBlocked,goToMuted:this.handleHotkeyGoToMuted};return w.a.createElement(A.HotKeys,{keyMap:q,handlers:i,ref:this.setHotkeysRef},w.a.createElement("div",{className:g()("ui",{"is-composing":o}),ref:this.setRef,style:{pointerEvents:a?"none":null}},c()(C.a,{}),c()(B,{location:r,onLayoutChange:this.handleLayoutChange},void 0,n),c()(k.a,{}),c()(T.a,{className:"loading-bar"}),c()(x.a,{}),c()(I.a,{active:t,onClose:this.closeUploadModal})))},e}(w.a.PureComponent),a.contextTypes={router:O.a.object.isRequired},r=i))||r)||r)||r},670:function(t,e,n){"use strict";n.d(e,"b",function(){return O}),n.d(e,"a",function(){return T});var o,r,a=n(55),i=n.n(a),s=n(34),c=n.n(s),l=n(2),u=n.n(l),d=n(1),p=n.n(d),h=n(3),f=n.n(h),m=n(4),v=n.n(m),y=n(0),g=n.n(y),b=n(44),w=n(252),k=n(253),_=n(151),O=function(t){function e(){return p()(this,e),f()(this,t.apply(this,arguments))}return v()(e,t),e.prototype.render=function(){var t=this.props,e=t.multiColumn,n=t.children;return u()(b.f,{},void 0,g.a.Children.map(n,function(t){return g.a.cloneElement(t,{multiColumn:e})}))},e}(g.a.PureComponent),T=(r=o=function(t){function e(){var n,o,r;p()(this,e);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=o=f()(this,t.call.apply(t,[this].concat(i))),o.renderComponent=function(t){var e=t.match,n=o.props,r=n.component,a=n.content,i=n.multiColumn,s=n.componentParams;return u()(_.a,{fetchComponent:r,loading:o.renderLoading,error:o.renderError},void 0,function(t){return g.a.createElement(t,c()({params:e.params,multiColumn:i},s),a)})},o.renderLoading=function(){return u()(w.a,{})},o.renderError=function(t){return g.a.createElement(k.a,t)},r=n,f()(o,r)}return v()(e,t),e.prototype.render=function(){var t=this.props,e=(t.component,t.content,i()(t,["component","content"]));return g.a.createElement(b.e,c()({},e,{render:this.renderComponent}))},e}(g.a.Component),o.defaultProps={componentParams:{}},r)},671:function(t,e,n){"use strict";n.d(e,"a",function(){return y});var o=n(2),r=n.n(o),a=n(1),i=n.n(a),s=n(3),c=n.n(s),l=n(4),u=n.n(l),d=n(0),p=n.n(d),h=n(28),f=n(27),m=n.n(f),v=n(7),y=function(t){function e(){var n,o,r;i()(this,e);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=o=c()(this,t.call.apply(t,[this].concat(s))),o.handleKeyUp=function(t){var e=t.keyCode;if(o.props.active)switch(e){case 27:t.preventDefault(),t.stopPropagation(),o.props.onClose()}},r=n,c()(o,r)}return u()(e,t),e.prototype.componentDidMount=function(){window.addEventListener("keyup",this.handleKeyUp,!1)},e.prototype.componentWillUnmount=function(){window.removeEventListener("keyup",this.handleKeyUp)},e.prototype.render=function(){var t=this.props.active;return r()(h.a,{defaultStyle:{backgroundOpacity:0,backgroundScale:.95},style:{backgroundOpacity:m()(t?1:0,{stiffness:150,damping:15}),backgroundScale:m()(t?1:.95,{stiffness:200,damping:3})}},void 0,function(e){var n=e.backgroundOpacity,o=e.backgroundScale;return r()("div",{className:"upload-area",style:{visibility:t?"visible":"hidden",opacity:n}},void 0,r()("div",{className:"upload-area__drop"},void 0,r()("div",{className:"upload-area__background",style:{transform:"scale("+o+")"}}),r()("div",{className:"upload-area__content"},void 0,r()(v.b,{id:"upload_area.title",defaultMessage:"Drag & drop to upload"}))))})},e}(p.a.PureComponent)},672:function(t,e,n){"use strict";var o=n(9),r=n(673),a=function(t){return{columns:t.getIn(["settings","columns"]),isModalOpen:!!t.get("modal").modalType}};e.a=Object(o.connect)(a,null,null,{withRef:!0})(r.a)},673:function(t,e,n){"use strict";n.d(e,"a",function(){return U});var o,r,a,i,s=n(34),c=n.n(s),l=n(2),u=n.n(l),d=n(1),p=n.n(d),h=n(3),f=n.n(h),m=n(4),v=n.n(m),y=n(0),g=n.n(y),b=n(5),w=n.n(b),k=n(7),_=n(14),O=n.n(_),T=n(12),C=n.n(T),x=n(164),N=n.n(x),j=n(251),E=n(44),M=n(151),P=n(252),S=n(674),D=n(253),L=n(58),I=n(45),H=n.n(I),F=n(91),A={COMPOSE:L.e,HOME:L.r,NOTIFICATIONS:L.z,PUBLIC:L.C,COMMUNITY:L.d,HASHTAG:L.q,DIRECT:L.f,FAVOURITES:L.j,LIST:L.u},R=function(t){return t.match(/^\/statuses\//)},U=(o=function(t){return Object(k.g)(t,{withRef:!0})})((i=a=function(t){function e(){var n,o,r;p()(this,e);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=o=f()(this,t.call.apply(t,[this].concat(i))),o.state={shouldAnimate:!1},o.handleSwipe=function(t){o.pendingIndex=t;var e=j.d[t].props["data-preview-title-id"],n='.tabs-bar__link[data-preview-title-id="'+e+'"]';document.querySelector(".tabs-bar__link.active").classList.remove("active"),document.querySelector(n).classList.add("active")},o.handleAnimationEnd=function(){"number"==typeof o.pendingIndex&&(o.context.router.history.push(Object(j.c)(o.pendingIndex)),o.pendingIndex=null)},o.handleWheel=function(){"function"==typeof o._interruptScrollAnimation&&o._interruptScrollAnimation()},o.setRef=function(t){o.node=t},o.renderView=function(t,e){var n=Object(j.b)(o.context.router.history.location.pathname),r=o.props.intl.formatMessage({id:t.props["data-preview-title-id"]}),a=t.props["data-preview-icon"],i=e===n?g.a.cloneElement(o.props.children):u()(P.a,{title:r,icon:a});return u()("div",{className:"columns-area"},e,i)},o.renderLoading=function(t){return function(){return"COMPOSE"===t?u()(S.a,{}):u()(P.a,{})}},o.renderError=function(t){return g.a.createElement(D.a,t)},r=n,f()(o,r)}return v()(e,t),e.prototype.componentWillReceiveProps=function(){this.setState({shouldAnimate:!1})},e.prototype.componentDidMount=function(){this.props.singleColumn||this.node.addEventListener("wheel",this.handleWheel,!!H.a.hasSupport&&{passive:!0}),this.lastIndex=Object(j.b)(this.context.router.history.location.pathname),this.isRtlLayout=document.getElementsByTagName("body")[0].classList.contains("rtl"),this.setState({shouldAnimate:!0})},e.prototype.componentWillUpdate=function(t){this.props.singleColumn!==t.singleColumn&&t.singleColumn&&this.node.removeEventListener("wheel",this.handleWheel)},e.prototype.componentDidUpdate=function(t){this.props.singleColumn===t.singleColumn||this.props.singleColumn||this.node.addEventListener("wheel",this.handleWheel,!!H.a.hasSupport&&{passive:!0}),this.lastIndex=Object(j.b)(this.context.router.history.location.pathname),this.setState({shouldAnimate:!0})},e.prototype.componentWillUnmount=function(){this.props.singleColumn||this.node.removeEventListener("wheel",this.handleWheel)},e.prototype.handleChildrenContentChange=function(){if(!this.props.singleColumn){var t=this.isRtlLayout?-1:1;this._interruptScrollAnimation=Object(F.a)(this.node,(this.node.scrollWidth-window.innerWidth)*t)}},e.prototype.render=function(){var t=this,e=this.props,n=e.columns,o=e.children,r=e.singleColumn,a=e.isModalOpen,i=this.state.shouldAnimate,s=Object(j.b)(this.context.router.history.location.pathname);if(this.pendingIndex=null,r){var l=R(this.context.router.history.location.pathname)?null:u()(E.b,{to:"/statuses/new",className:"floating-action-button"},"floating-action-button",u()("i",{className:"fa fa-pencil"}));return-1!==s?[u()(N.a,{index:s,onChangeIndex:this.handleSwipe,onTransitionEnd:this.handleAnimationEnd,animateTransitions:i,springConfig:{duration:"400ms",delay:"0s",easeFunction:"ease"},style:{height:"100%"}},"content",j.d.map(this.renderView)),l]:[u()("div",{className:"columns-area"},void 0,o),l]}return g.a.createElement("div",{className:"columns-area "+(a?"unscrollable":""),ref:this.setRef},n.map(function(e){var n=null===e.get("params",null)?null:e.get("params").toJS(),o=n&&n.other?n.other:{};return u()(M.a,{fetchComponent:A[e.get("id")],loading:t.renderLoading(e.get("id")),error:t.renderError},e.get("uuid"),function(t){return g.a.createElement(t,c()({columnId:e.get("uuid"),params:n,multiColumn:!0},o))})}),g.a.Children.map(o,function(t){return g.a.cloneElement(t,{multiColumn:!0})}))},e}(C.a),a.contextTypes={router:w.a.object.isRequired},a.propTypes={intl:w.a.object.isRequired,columns:O.a.list.isRequired,isModalOpen:w.a.bool.isRequired,singleColumn:w.a.bool,children:w.a.node},r=i))||r},674:function(t,e,n){"use strict";var o=n(2),r=n.n(o),a=n(0),i=(n.n(a),function(){return r()("div",{className:"drawer"},void 0,r()("div",{className:"drawer__pager"},void 0,r()("div",{className:"drawer__inner"})))});e.a=i},675:function(t,e,n){"use strict";function o(t){}function r(t){}Object.defineProperty(e,"__esModule",{value:!0}),e.start=o,e.stop=r},676:function(t,e){function n(){return"serviceWorker"in navigator&&(window.fetch||"imageRendering"in document.documentElement.style)&&("https:"===window.location.protocol||"localhost"===window.location.hostname||0===window.location.hostname.indexOf("127."))}function o(t){if(t||(t={}),n()){navigator.serviceWorker.register("/sw.js")}else if(window.applicationCache){var e=function(){var t=document.createElement("iframe");t.src="/packs/appcache/manifest.html",t.style.display="none",i=t,document.body.appendChild(t)};return void("complete"===document.readyState?setTimeout(e):window.addEventListener("load",e))}}function r(t,e){}function a(){if(n()&&navigator.serviceWorker.getRegistration().then(function(t){if(t)return t.update()}),i)try{i.contentWindow.applicationCache.update()}catch(t){}}var i;e.install=o,e.applyUpdate=r,e.update=a},7:function(t,e,n){"use strict";function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(Array.isArray(t)?t:[t]).forEach(function(t){t&&t.locale&&(P.a.__addLocaleData(t),D.a.__addLocaleData(t))})}function r(t){for(var e=(t||"").split("-");e.length>0;){if(a(e.join("-")))return!0;e.pop()}return!1}function a(t){var e=t&&t.toLowerCase();return!(!P.a.__localeData__[e]||!D.a.__localeData__[e])}function i(t){return(""+t).replace(wt,function(t){return bt[t]})}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,o){return t.hasOwnProperty(o)?e[o]=t[o]:n.hasOwnProperty(o)&&(e[o]=n[o]),e},{})}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.intl;R()(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function l(t,e){if(t===e)return!0;if("object"!==(void 0===t?"undefined":q(t))||null===t||"object"!==(void 0===e?"undefined":q(e))||null===e)return!1;var n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(var r=Object.prototype.hasOwnProperty.bind(e),a=0;a<n.length;a++)if(!r(n[a])||t[n[a]]!==e[n[a]])return!1;return!0}function u(t,e,n){var o=t.props,r=t.state,a=t.context,i=void 0===a?{}:a,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=i.intl,d=void 0===u?{}:u,p=c.intl,h=void 0===p?{}:p;return!l(e,o)||!l(n,r)||!(h===d||l(s(h,gt),s(d,gt)))}function d(t){return t.displayName||t.name||"Component"}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.intlPropName,o=void 0===n?"intl":n,r=e.withRef,a=void 0!==r&&r,i=function(e){function n(t,e){B(this,n);var o=Y(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t,e));return c(e),o}return J(n,e),z(n,[{key:"getWrappedInstance",value:function(){return R()(a,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this.refs.wrappedInstance}},{key:"render",value:function(){return F.a.createElement(t,K({},this.props,V({},o,this.context.intl),{ref:a?"wrappedInstance":null}))}}]),n}(H.Component);return i.displayName="InjectIntl("+d(t)+")",i.contextTypes={intl:ht},i.WrappedComponent=t,i}function h(t){return t}function f(t){return P.a.prototype._resolveLocale(t)}function m(t){return P.a.prototype._findPluralRuleFunction(t)}function v(t){var e=D.a.thresholds;e.second=t.second,e.minute=t.minute,e.hour=t.hour,e.day=t.day,e.month=t.month}function y(t,e,n){var o=t&&t[e]&&t[e][n];if(o)return o}function g(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,a=t.formats,i=o.format,c=new Date(n),l=i&&y(a,"date",i),u=s(o,_t,l);try{return e.getDateTimeFormat(r,u).format(c)}catch(t){}return String(c)}function b(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,a=t.formats,i=o.format,c=new Date(n),l=i&&y(a,"time",i),u=s(o,_t,l);u.hour||u.minute||u.second||(u=K({},u,{hour:"numeric",minute:"numeric"}));try{return e.getDateTimeFormat(r,u).format(c)}catch(t){}return String(c)}function w(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,a=t.formats,i=o.format,c=new Date(n),l=new Date(o.now),u=i&&y(a,"relative",i),d=s(o,Tt,u),p=K({},D.a.thresholds);v(xt);try{return e.getRelativeFormat(r,d).format(c,{now:isFinite(l)?l:e.now()})}catch(t){}finally{v(p)}return String(c)}function k(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,a=t.formats,i=o.format,c=i&&y(a,"number",i),l=s(o,Ot,c);try{return e.getNumberFormat(r,l).format(n)}catch(t){}return String(n)}function _(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,a=s(o,Ct);try{return e.getPluralFormat(r,a).format(n)}catch(t){}return"other"}function O(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,a=t.formats,i=t.messages,s=t.defaultLocale,c=t.defaultFormats,l=n.id,u=n.defaultMessage;R()(l,"[React Intl] An `id` must be provided to format a message.");var d=i&&i[l];if(!(Object.keys(o).length>0))return d||u||l;var p=void 0;if(d)try{p=e.getMessageFormat(d,r,a).format(o)}catch(t){}if(!p&&u)try{p=e.getMessageFormat(u,s,c).format(o)}catch(t){}return p||d||u||l}function T(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return O(t,e,n,Object.keys(o).reduce(function(t,e){var n=o[e];return t[e]="string"==typeof n?i(n):n,t},{}))}function C(t){var e=Math.abs(t);return e<It?"second":e<Ht?"minute":e<Ft?"hour":"day"}function x(t){switch(t){case"second":return Lt;case"minute":return It;case"hour":return Ht;case"day":return Ft;default:return At}}function N(t,e){if(t===e)return!0;var n=new Date(t).getTime(),o=new Date(e).getTime();return isFinite(n)&&isFinite(o)&&n===o}n.d(e,"e",function(){return o}),n.d(e,"g",function(){return p}),n.d(e,"f",function(){return h}),n.d(e,"d",function(){return Pt}),n.d(e,"a",function(){return St}),n.d(e,"c",function(){return Ut}),n.d(e,"b",function(){return Gt});var j=n(107),E=n.n(j),M=n(59),P=n.n(M),S=n(76),D=n.n(S),L=n(5),I=n.n(L),H=n(0),F=n.n(H),A=n(18),R=n.n(A),U=n(108),W=n.n(U),G={locale:"en",pluralRuleFunction:function(t,e){var n=String(t).split("."),o=!n[1],r=Number(n[0])==t,a=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return e?1==a&&11!=i?"one":2==a&&12!=i?"two":3==a&&13!=i?"few":"other":1==t&&o?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}}}},q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},z=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),V=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},K=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},J=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},Z=function(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},Y=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},X=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)},$=I.a.bool,Q=I.a.number,tt=I.a.string,et=I.a.func,nt=I.a.object,ot=I.a.oneOf,rt=I.a.shape,at=I.a.any,it=I.a.oneOfType,st=ot(["best fit","lookup"]),ct=ot(["narrow","short","long"]),lt=ot(["numeric","2-digit"]),ut=et.isRequired,dt={locale:tt,formats:nt,messages:nt,textComponent:at,defaultLocale:tt,defaultFormats:nt},pt={formatDate:ut,formatTime:ut,formatRelative:ut,formatNumber:ut,formatPlural:ut,formatMessage:ut,formatHTMLMessage:ut},ht=rt(K({},dt,pt,{formatters:nt,now:ut})),ft=(tt.isRequired,it([tt,nt]),{localeMatcher:st,formatMatcher:ot(["basic","best fit"]),timeZone:tt,hour12:$,weekday:ct,era:ct,year:lt,month:ot(["numeric","2-digit","narrow","short","long"]),day:lt,hour:lt,minute:lt,second:lt,timeZoneName:ot(["short","long"])}),mt={localeMatcher:st,style:ot(["decimal","currency","percent"]),currency:tt,currencyDisplay:ot(["symbol","code","name"]),useGrouping:$,minimumIntegerDigits:Q,minimumFractionDigits:Q,maximumFractionDigits:Q,minimumSignificantDigits:Q,maximumSignificantDigits:Q},vt={style:ot(["best fit","numeric"]),units:ot(["second","minute","hour","day","month","year"])},yt={style:ot(["cardinal","ordinal"])},gt=Object.keys(dt),bt={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},wt=/[&><"']/g,kt=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};B(this,t);var o="ordinal"===n.style,r=m(f(e));this.format=function(t){return r(t,o)}},_t=Object.keys(ft),Ot=Object.keys(mt),Tt=Object.keys(vt),Ct=Object.keys(yt),xt={second:60,minute:60,hour:24,day:30,month:12},Nt=Object.freeze({formatDate:g,formatTime:b,formatRelative:w,formatNumber:k,formatPlural:_,formatMessage:O,formatHTMLMessage:T}),jt=Object.keys(dt),Et=Object.keys(pt),Mt={formats:{},messages:{},textComponent:"span",defaultLocale:"en",defaultFormats:{}},Pt=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};B(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));R()("undefined"!=typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var r=n.intl,a=void 0;a=isFinite(t.initialNow)?Number(t.initialNow):r?r.now():Date.now();var i=r||{},s=i.formatters,c=void 0===s?{getDateTimeFormat:W()(Intl.DateTimeFormat),getNumberFormat:W()(Intl.NumberFormat),getMessageFormat:W()(P.a),getRelativeFormat:W()(D.a),getPluralFormat:W()(kt)}:s;return o.state=K({},c,{now:function(){return o._didDisplay?Date.now():a}}),o}return J(e,t),z(e,[{key:"getConfig",value:function(){var t=this.context.intl,e=s(this.props,jt,t);for(var n in Mt)void 0===e[n]&&(e[n]=Mt[n]);if(!r(e.locale)){var o=e,a=(o.locale,o.defaultLocale),i=o.defaultFormats;e=K({},e,{locale:a,formats:i,messages:Mt.messages})}return e}},{key:"getBoundFormatFns",value:function(t,e){return Et.reduce(function(n,o){return n[o]=Nt[o].bind(null,t,e),n},{})}},{key:"getChildContext",value:function(){var t=this.getConfig(),e=this.getBoundFormatFns(t,this.state),n=this.state,o=n.now,r=Z(n,["now"]);return{intl:K({},t,e,{formatters:r,now:o})}}},{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"componentDidMount",value:function(){this._didDisplay=!0}},{key:"render",value:function(){return H.Children.only(this.props.children)}}]),e}(H.Component);Pt.displayName="IntlProvider",Pt.contextTypes={intl:ht},Pt.childContextTypes={intl:ht.isRequired};var St=function(t){function e(t,n){B(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return J(e,t),z(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatDate,n=t.textComponent,o=this.props,r=o.value,a=o.children,i=e(r,this.props);return"function"==typeof a?a(i):F.a.createElement(n,null,i)}}]),e}(H.Component);St.displayName="FormattedDate",St.contextTypes={intl:ht};var Dt=function(t){function e(t,n){B(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return J(e,t),z(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatTime,n=t.textComponent,o=this.props,r=o.value,a=o.children,i=e(r,this.props);return"function"==typeof a?a(i):F.a.createElement(n,null,i)}}]),e}(H.Component);Dt.displayName="FormattedTime",Dt.contextTypes={intl:ht};var Lt=1e3,It=6e4,Ht=36e5,Ft=864e5,At=2147483647,Rt=function(t){function e(t,n){B(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));c(n);var r=isFinite(t.initialNow)?Number(t.initialNow):n.intl.now();return o.state={now:r},o}return J(e,t),z(e,[{key:"scheduleNextUpdate",value:function(t,e){var n=this;clearTimeout(this._timer);var o=t.value,r=t.units,a=t.updateInterval,i=new Date(o).getTime();if(a&&isFinite(i)){var s=i-e.now,c=x(r||C(s)),l=Math.abs(s%c),u=s<0?Math.max(a,c-l):Math.max(a,l);this._timer=setTimeout(function(){n.setState({now:n.context.intl.now()})},u)}}},{key:"componentDidMount",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentWillReceiveProps",value:function(t){N(t.value,this.props.value)||this.setState({now:this.context.intl.now()})}},{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"componentWillUpdate",value:function(t,e){this.scheduleNextUpdate(t,e)}},{key:"componentWillUnmount",value:function(){clearTimeout(this._timer)}},{key:"render",value:function(){var t=this.context.intl,e=t.formatRelative,n=t.textComponent,o=this.props,r=o.value,a=o.children,i=e(r,K({},this.props,this.state));return"function"==typeof a?a(i):F.a.createElement(n,null,i)}}]),e}(H.Component);Rt.displayName="FormattedRelative",Rt.contextTypes={intl:ht},Rt.defaultProps={updateInterval:1e4};var Ut=function(t){function e(t,n){B(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return J(e,t),z(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatNumber,n=t.textComponent,o=this.props,r=o.value,a=o.children,i=e(r,this.props);return"function"==typeof a?a(i):F.a.createElement(n,null,i)}}]),e}(H.Component);Ut.displayName="FormattedNumber",Ut.contextTypes={intl:ht};var Wt=function(t){function e(t,n){B(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return J(e,t),z(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatPlural,n=t.textComponent,o=this.props,r=o.value,a=o.other,i=o.children,s=e(r,this.props),c=this.props[s]||a;return"function"==typeof i?i(c):F.a.createElement(n,null,c)}}]),e}(H.Component);Wt.displayName="FormattedPlural",Wt.contextTypes={intl:ht},Wt.defaultProps={style:"cardinal"};var Gt=function(t){function e(t,n){B(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return J(e,t),z(e,[{key:"shouldComponentUpdate",value:function(t){var e=this.props.values;if(!l(t.values,e))return!0;for(var n=K({},t,{values:e}),o=arguments.length,r=Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return u.apply(void 0,[this,n].concat(r))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatMessage,n=t.textComponent,o=this.props,r=o.id,a=o.description,i=o.defaultMessage,s=o.values,c=o.tagName,l=void 0===c?n:c,u=o.children,d=void 0,p=void 0,h=void 0;if(s&&Object.keys(s).length>0){var f=Math.floor(1099511627776*Math.random()).toString(16),m=function(){var t=0;return function(){return"ELEMENT-"+f+"-"+(t+=1)}}();d="@__"+f+"__@",p={},h={},Object.keys(s).forEach(function(t){var e=s[t];if(Object(H.isValidElement)(e)){var n=m();p[t]=d+n+d,h[n]=e}else p[t]=e})}var v={id:r,description:a,defaultMessage:i},y=e(v,p||s),g=void 0;return g=h&&Object.keys(h).length>0?y.split(d).filter(function(t){return!!t}).map(function(t){return h[t]||t}):[y],"function"==typeof u?u.apply(void 0,X(g)):H.createElement.apply(void 0,[l,null].concat(X(g)))}}]),e}(H.Component);Gt.displayName="FormattedMessage",Gt.contextTypes={intl:ht},Gt.defaultProps={values:{}};var qt=function(t){function e(t,n){B(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return J(e,t),z(e,[{key:"shouldComponentUpdate",value:function(t){var e=this.props.values;if(!l(t.values,e))return!0;for(var n=K({},t,{values:e}),o=arguments.length,r=Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return u.apply(void 0,[this,n].concat(r))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatHTMLMessage,n=t.textComponent,o=this.props,r=o.id,a=o.description,i=o.defaultMessage,s=o.values,c=o.tagName,l=void 0===c?n:c,u=o.children,d={id:r,description:a,defaultMessage:i},p=e(d,s);if("function"==typeof u)return u(p);var h={__html:p};return F.a.createElement(l,{dangerouslySetInnerHTML:h})}}]),e}(H.Component);qt.displayName="FormattedHTMLMessage",qt.contextTypes={intl:ht},qt.defaultProps={values:{}},o(G),o(E.a)}},[662]);
+(window.webpackJsonp=window.webpackJsonp||[]).push([[90],{373:function(t,e,o){"use strict";var n=function(){};t.exports=n},389:function(t,e,o){"use strict";o.r(e);var n=o(82),r=o(0),a=o.n(r),i=o(6),s=o.n(i),c=o(3),l=o.n(c),p=o(7),u=o.n(p),d=o(1),h=o.n(d),f=o(12),m=o(101),y=o(21),g=o(33);var v=o(373),b=o.n(v),w=o(2),S=o.n(w),T=o(54),k=o(43),O=o.n(k),C=o(24),E=o.n(C),_=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t};function U(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var x=function(t){function e(){var o,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return o=n=U(this,t.call.apply(t,[this].concat(a))),n.state={match:n.computeMatch(n.props.history.location.pathname)},U(n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{router:_({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},e.prototype.computeMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}},e.prototype.componentWillMount=function(){var t=this,e=this.props,o=e.children,n=e.history;E()(null==o||1===h.a.Children.count(o),"A <Router> may have only one child element"),this.unlisten=n.listen(function(){t.setState({match:t.computeMatch(n.location.pathname)})})},e.prototype.componentWillReceiveProps=function(t){O()(this.props.history===t.history,"You cannot change <Router history>")},e.prototype.componentWillUnmount=function(){this.unlisten()},e.prototype.render=function(){var t=this.props.children;return t?h.a.Children.only(t):null},e}(h.a.Component);x.propTypes={history:S.a.object.isRequired,children:S.a.node},x.contextTypes={router:S.a.object},x.childContextTypes={router:S.a.object.isRequired};var j=x;function P(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var R=function(t){function e(){var o,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,a=Array(r),i=0;i<r;i++)a[i]=arguments[i];return o=n=P(this,t.call.apply(t,[this].concat(a))),n.history=Object(T.createBrowserHistory)(n.props),P(n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.componentWillMount=function(){b()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},e.prototype.render=function(){return h.a.createElement(j,{history:this.history,children:this.props.children})},e}(h.a.Component),M=o(811),N=o(123),L=o(38),H=o.n(L),D=o(14),I=o.n(D),q=o(118),A=o(4),W=o(145),G=o.n(W),B={},F=0,z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===t?t:function(t){var e=t,o=B[e]||(B[e]={});if(o[t])return o[t];var n=G.a.compile(t);return F<1e4&&(o[t]=n,F++),n}(t)(e,{pretty:!0})},Y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t};var V=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},e.prototype.componentWillMount=function(){E()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||this.perform()},e.prototype.componentDidUpdate=function(t){var e=Object(T.createLocation)(t.to),o=Object(T.createLocation)(this.props.to);Object(T.locationsAreEqual)(e,o)?O()(!1,"You tried to redirect to the same route you're currently on: \""+o.pathname+o.search+'"'):this.perform()},e.prototype.computeTo=function(t){var e=t.computedMatch,o=t.to;return e?"string"==typeof o?z(o,e.params):Y({},o,{pathname:z(o.pathname,e.params)}):o},e.prototype.perform=function(){var t=this.context.router.history,e=this.props.push,o=this.computeTo(this.props);e?t.push(o):t.replace(o)},e.prototype.render=function(){return null},e}(h.a.Component);V.propTypes={computedMatch:S.a.object,push:S.a.bool,from:S.a.string,to:S.a.oneOfType([S.a.string,S.a.object]).isRequired},V.defaultProps={push:!1},V.contextTypes={router:S.a.shape({history:S.a.shape({push:S.a.func.isRequired,replace:S.a.func.isRequired}).isRequired,staticContext:S.a.object}).isRequired};var J,K=V,X=o(812),Z=o(144),$=o(143),Q=o(813),tt=o(36),et=[a()(Q.a,{className:"tabs-bar__link primary",to:"/timelines/home","data-preview-title-id":"column.home","data-preview-icon":"home"},void 0,a()("i",{className:"fa fa-fw fa-home"}),a()(A.b,{id:"tabs_bar.home",defaultMessage:"Home"})),a()(Q.a,{className:"tabs-bar__link primary",to:"/notifications","data-preview-title-id":"column.notifications","data-preview-icon":"bell"},void 0,a()("i",{className:"fa fa-fw fa-bell"}),a()(A.b,{id:"tabs_bar.notifications",defaultMessage:"Notifications"})),a()(Q.a,{className:"tabs-bar__link secondary",to:"/timelines/public/local","data-preview-title-id":"column.community","data-preview-icon":"users"},void 0,a()("i",{className:"fa fa-fw fa-users"}),a()(A.b,{id:"tabs_bar.local_timeline",defaultMessage:"Local"})),a()(Q.a,{className:"tabs-bar__link secondary",exact:!0,to:"/timelines/public","data-preview-title-id":"column.public","data-preview-icon":"globe"},void 0,a()("i",{className:"fa fa-fw fa-globe"}),a()(A.b,{id:"tabs_bar.federated_timeline",defaultMessage:"Federated"})),a()(Q.a,{className:"tabs-bar__link primary",to:"/search","data-preview-title-id":"tabs_bar.search","data-preview-icon":"bell"},void 0,a()("i",{className:"fa fa-fw fa-search"}),a()(A.b,{id:"tabs_bar.search",defaultMessage:"Search"})),a()(Q.a,{className:"tabs-bar__link primary",style:{flexGrow:"0",flexBasis:"30px"},to:"/getting-started","data-preview-title-id":"getting_started.heading","data-preview-icon":"bars"},void 0,a()("i",{className:"fa fa-fw fa-bars"}))];function ot(t){return et.findIndex(function(e){return e.props.to===t})}var nt=Object(A.g)(J=Object(X.a)(J=function(t){function e(){var o,n,r;s()(this,e);for(var a=arguments.length,i=Array(a),c=0;c<a;c++)i[c]=arguments[c];return o=n=l()(this,t.call.apply(t,[this].concat(i))),n.setRef=function(t){n.node=t},n.handleClick=function(t){Object(tt.c)()&&(t.preventDefault(),t.persist(),requestAnimationFrame(function(){var e=Array.apply(void 0,n.node.querySelectorAll(".tabs-bar__link")),o=e.find(function(t){return t.classList.contains("active")}),r=e.find(function(e){return e.contains(t.target)}),a=et[Array.apply(void 0,n.node.childNodes).indexOf(r)].props.to;if(o!==r){o&&o.classList.remove("active");var i=H()(function(){r.removeEventListener("transitionend",i),n.props.history.push(a)},50);r.addEventListener("transitionend",i),r.classList.add("active")}}))},r=o,l()(n,r)}return u()(e,t),e.prototype.render=function(){var t=this,e=this.props.intl.formatMessage;return h.a.createElement("nav",{className:"tabs-bar",ref:this.setRef},et.map(function(o){return h.a.cloneElement(o,{key:o.props.to,onClick:t.handleClick,"aria-label":e({id:o.props["data-preview-title-id"]})})}))},e}(h.a.PureComponent))||J)||J,rt=o(99),at=o(11),it=o(19),st=o(46),ct=o(105),lt=o(84),pt=o(53),ut=o.n(pt),dt=o(34),ht=o.n(dt),ft=o(146);var mt=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.componentWillMount=function(){E()(this.context.router,"You should not use <Switch> outside a <Router>")},e.prototype.componentWillReceiveProps=function(t){O()(!(t.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),O()(!(!t.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},e.prototype.render=function(){var t=this.context.router.route,e=this.props.children,o=this.props.location||t.location,n=void 0,r=void 0;return h.a.Children.forEach(e,function(e){if(null==n&&h.a.isValidElement(e)){var a=e.props,i=a.path,s=a.exact,c=a.strict,l=a.sensitive,p=a.from,u=i||p;r=e,n=Object(ft.a)(o.pathname,{path:u,exact:s,strict:c,sensitive:l},t.match)}}),n?h.a.cloneElement(r,{location:o,computedMatch:n}):null},e}(h.a.Component);mt.contextTypes={router:S.a.shape({route:S.a.object.isRequired}).isRequired};var yt,gt,vt,bt,wt,St,Tt,kt,Ot,Ct,Et=mt,_t=o(62),Ut=o(60),xt=o(18),jt=(gt=yt=function(t){function e(){return s()(this,e),l()(this,t.apply(this,arguments))}return u()(e,t),e.prototype.render=function(){var t=this.props,e=t.title,o=t.icon;return a()(_t.a,{},void 0,a()(Ut.a,{icon:o,title:e,multiColumn:!1,focusable:!1}),a()("div",{className:"scrollable"}))},e}(xt.a),yt.propTypes={title:S.a.oneOfType([S.a.node,S.a.string]),icon:S.a.string},yt.defaultProps={title:"",icon:""},gt),Pt=o(193),Rt=o(135),Mt=o(197),Nt=o(20),Lt=Object(A.f)({title:{id:"bundle_column_error.title",defaultMessage:"Network error"},body:{id:"bundle_column_error.body",defaultMessage:"Something went wrong while loading this component."},retry:{id:"bundle_column_error.retry",defaultMessage:"Try again"}}),Ht=function(t){function e(){var o,n,r;s()(this,e);for(var a=arguments.length,i=Array(a),c=0;c<a;c++)i[c]=arguments[c];return o=n=l()(this,t.call.apply(t,[this].concat(i))),n.handleRetry=function(){n.props.onRetry()},r=o,l()(n,r)}return u()(e,t),e.prototype.render=function(){var t=this.props.intl.formatMessage;return a()(Pt.a,{},void 0,a()(Rt.a,{icon:"exclamation-circle",type:t(Lt.title)}),a()(Mt.a,{}),a()("div",{className:"error-column"},void 0,a()(Nt.a,{title:t(Lt.retry),icon:"refresh",onClick:this.handleRetry,size:64}),t(Lt.body)))},e}(h.a.PureComponent),Dt=Object(A.g)(Ht),It=o(98),qt=function(t){function e(){return s()(this,e),l()(this,t.apply(this,arguments))}return u()(e,t),e.prototype.render=function(){var t=this.props,e=t.multiColumn,o=t.children;return a()(Et,{},void 0,h.a.Children.map(o,function(t){return h.a.cloneElement(t,{multiColumn:e})}))},e}(h.a.PureComponent),At=(bt=vt=function(t){function e(){var o,n,r;s()(this,e);for(var i=arguments.length,c=Array(i),p=0;p<i;p++)c[p]=arguments[p];return o=n=l()(this,t.call.apply(t,[this].concat(c))),n.renderComponent=function(t){var e=t.match,o=n.props,r=o.component,i=o.content,s=o.multiColumn,c=o.componentParams;return a()(It.a,{fetchComponent:r,loading:n.renderLoading,error:n.renderError},void 0,function(t){return h.a.createElement(t,ht()({params:e.params,multiColumn:s},c),i)})},n.renderLoading=function(){return a()(jt,{})},n.renderError=function(t){return h.a.createElement(Dt,t)},r=o,l()(n,r)}return u()(e,t),e.prototype.render=function(){var t=this.props,e=(t.component,t.content,ut()(t,["component","content"]));return h.a.createElement(M.a,ht()({},e,{render:this.renderComponent}))},e}(h.a.Component),vt.defaultProps={componentParams:{}},bt),Wt=o(25),Gt=o(22),Bt=o.n(Gt),Ft=function(t){function e(){var o,n,r;s()(this,e);for(var a=arguments.length,i=Array(a),c=0;c<a;c++)i[c]=arguments[c];return o=n=l()(this,t.call.apply(t,[this].concat(i))),n.handleKeyUp=function(t){var e=t.keyCode;if(n.props.active)switch(e){case 27:t.preventDefault(),t.stopPropagation(),n.props.onClose()}},r=o,l()(n,r)}return u()(e,t),e.prototype.componentDidMount=function(){window.addEventListener("keyup",this.handleKeyUp,!1)},e.prototype.componentWillUnmount=function(){window.removeEventListener("keyup",this.handleKeyUp)},e.prototype.render=function(){var t=this.props.active;return a()(Wt.a,{defaultStyle:{backgroundOpacity:0,backgroundScale:.95},style:{backgroundOpacity:Bt()(t?1:0,{stiffness:150,damping:15}),backgroundScale:Bt()(t?1:.95,{stiffness:200,damping:3})}},void 0,function(e){var o=e.backgroundOpacity,n=e.backgroundScale;return a()("div",{className:"upload-area",style:{visibility:t?"visible":"hidden",opacity:o}},void 0,a()("div",{className:"upload-area__drop"},void 0,a()("div",{className:"upload-area__background",style:{transform:"scale("+n+")"}}),a()("div",{className:"upload-area__content"},void 0,a()(A.b,{id:"upload_area.title",defaultMessage:"Drag & drop to upload"}))))})},e}(h.a.PureComponent),zt=o(17),Yt=o.n(zt),Vt=o(136),Jt=o.n(Vt),Kt=o(810),Xt=function(){return a()("div",{className:"drawer"},void 0,a()("div",{className:"drawer__pager"},void 0,a()("div",{className:"drawer__inner"})))},Zt=o(16),$t=o(41),Qt=o.n($t),te=o(83),ee={COMPOSE:Zt.e,HOME:Zt.r,NOTIFICATIONS:Zt.z,PUBLIC:Zt.C,COMMUNITY:Zt.d,HASHTAG:Zt.q,DIRECT:Zt.f,FAVOURITES:Zt.j,LIST:Zt.u},oe=Object(A.f)({publish:{id:"compose_form.publish",defaultMessage:"Toot"}}),ne=function(t){return Object(A.g)(t,{withRef:!0})}((Tt=St=function(t){function e(){var o,n,r;s()(this,e);for(var i=arguments.length,c=Array(i),p=0;p<i;p++)c[p]=arguments[p];return o=n=l()(this,t.call.apply(t,[this].concat(c))),n.state={shouldAnimate:!1},n.handleSwipe=function(t){n.pendingIndex=t;var e='.tabs-bar__link[data-preview-title-id="'+et[t].props["data-preview-title-id"]+'"]';document.querySelector(".tabs-bar__link.active").classList.remove("active"),document.querySelector(e).classList.add("active")},n.handleAnimationEnd=function(){var t;"number"==typeof n.pendingIndex&&(n.context.router.history.push((t=n.pendingIndex,et[t].props.to)),n.pendingIndex=null)},n.handleWheel=function(){"function"==typeof n._interruptScrollAnimation&&n._interruptScrollAnimation()},n.setRef=function(t){n.node=t},n.renderView=function(t,e){var o=ot(n.context.router.history.location.pathname),r=n.props.intl.formatMessage({id:t.props["data-preview-title-id"]}),i=t.props["data-preview-icon"],s=e===o?h.a.cloneElement(n.props.children):a()(jt,{title:r,icon:i});return a()("div",{className:"columns-area"},e,s)},n.renderLoading=function(t){return function(){return"COMPOSE"===t?a()(Xt,{}):a()(jt,{})}},n.renderError=function(t){return h.a.createElement(Dt,t)},r=o,l()(n,r)}return u()(e,t),e.prototype.componentWillReceiveProps=function(){this.setState({shouldAnimate:!1})},e.prototype.componentDidMount=function(){this.props.singleColumn||this.node.addEventListener("wheel",this.handleWheel,!!Qt.a.hasSupport&&{passive:!0}),this.lastIndex=ot(this.context.router.history.location.pathname),this.isRtlLayout=document.getElementsByTagName("body")[0].classList.contains("rtl"),this.setState({shouldAnimate:!0})},e.prototype.componentWillUpdate=function(t){this.props.singleColumn!==t.singleColumn&&t.singleColumn&&this.node.removeEventListener("wheel",this.handleWheel)},e.prototype.componentDidUpdate=function(t){this.props.singleColumn===t.singleColumn||this.props.singleColumn||this.node.addEventListener("wheel",this.handleWheel,!!Qt.a.hasSupport&&{passive:!0}),this.lastIndex=ot(this.context.router.history.location.pathname),this.setState({shouldAnimate:!0})},e.prototype.componentWillUnmount=function(){this.props.singleColumn||this.node.removeEventListener("wheel",this.handleWheel)},e.prototype.handleChildrenContentChange=function(){if(!this.props.singleColumn){var t=this.isRtlLayout?-1:1;this._interruptScrollAnimation=Object(te.a)(this.node,(this.node.scrollWidth-window.innerWidth)*t)}},e.prototype.render=function(){var t=this,e=this.props,o=e.columns,n=e.children,r=e.singleColumn,i=e.isModalOpen,s=e.intl,c=this.state.shouldAnimate,l=ot(this.context.router.history.location.pathname);if(this.pendingIndex=null,r){var p=this.context.router.history.location.pathname.match(/^\/statuses\//)?null:a()(Kt.a,{to:"/statuses/new",className:"floating-action-button","aria-label":s.formatMessage(oe.publish)},"floating-action-button",a()("i",{className:"fa fa-pencil"}));return-1!==l?[a()(Jt.a,{index:l,onChangeIndex:this.handleSwipe,onTransitionEnd:this.handleAnimationEnd,animateTransitions:c,springConfig:{duration:"400ms",delay:"0s",easeFunction:"ease"},style:{height:"100%"}},"content",et.map(this.renderView)),p]:[a()("div",{className:"columns-area"},void 0,n),p]}return h.a.createElement("div",{className:"columns-area "+(i?"unscrollable":""),ref:this.setRef},o.map(function(e){var o=null===e.get("params",null)?null:e.get("params").toJS(),n=o&&o.other?o.other:{};return a()(It.a,{fetchComponent:ee[e.get("id")],loading:t.renderLoading(e.get("id")),error:t.renderError},e.get("uuid"),function(t){return h.a.createElement(t,ht()({columnId:e.get("uuid"),params:o,multiColumn:!0},n))})}),h.a.Children.map(n,function(t){return h.a.cloneElement(t,{multiColumn:!0})}))},e}(xt.a),St.contextTypes={router:S.a.object.isRequired},St.propTypes={intl:S.a.object.isRequired,columns:Yt.a.list.isRequired,isModalOpen:S.a.bool.isRequired,singleColumn:S.a.bool,children:S.a.node},wt=Tt))||wt,re=Object(f.connect)(function(t){return{columns:t.getIn(["settings","columns"]),isModalOpen:!!t.get("modal").modalType}},null,null,{withRef:!0})(ne),ae=o(10),ie=o(134),se=(o(157),Object(A.f)({beforeUnload:{id:"ui.beforeunload",defaultMessage:"Your draft will be lost if you leave Mastodon."}})),ce={help:"?",new:"n",search:"s",forceNew:"option+n",focusColumn:["1","2","3","4","5","6","7","8","9"],reply:"r",favourite:"f",boost:"b",mention:"m",open:["enter","o"],openProfile:"p",moveDown:["down","j"],moveUp:["up","k"],back:"backspace",goToHome:"g h",goToNotifications:"g n",goToLocal:"g l",goToFederated:"g t",goToDirect:"g d",goToStart:"g s",goToFavourites:"g f",goToPinned:"g p",goToProfile:"g u",goToBlocked:"g b",goToMuted:"g m",goToRequests:"g r",toggleHidden:"x"},le=function(t){function e(){var o,n,r;s()(this,e);for(var a=arguments.length,i=Array(a),c=0;c<a;c++)i[c]=arguments[c];return o=n=l()(this,t.call.apply(t,[this].concat(i))),n.state={mobile:Object(tt.b)(window.innerWidth)},n.handleResize=H()(function(){n.props.onLayoutChange(),n.setState({mobile:Object(tt.b)(window.innerWidth)})},500,{trailing:!0}),n.setRef=function(t){n.node=t.getWrappedInstance().getWrappedInstance()},r=o,l()(n,r)}return u()(e,t),e.prototype.componentWillMount=function(){window.addEventListener("resize",this.handleResize,{passive:!0})},e.prototype.componentDidUpdate=function(t){[this.props.location.pathname,"/"].includes(t.location.pathname)||this.node.handleChildrenContentChange()},e.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleResize)},e.prototype.shouldUpdateScroll=function(t,e){return e.location.state!==ie.b},e.prototype.render=function(){var t=this.props.children,e=this.state.mobile,o=e?a()(K,{from:"/",to:"/timelines/home",exact:!0}):a()(K,{from:"/",to:"/getting-started",exact:!0});return h.a.createElement(re,{ref:this.setRef,singleColumn:e},a()(qt,{},void 0,o,a()(At,{path:"/getting-started",component:Zt.p,content:t}),a()(At,{path:"/keyboard-shortcuts",component:Zt.s,content:t}),a()(At,{path:"/timelines/home",component:Zt.r,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/timelines/public",exact:!0,component:Zt.C,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/timelines/public/media",component:Zt.C,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll,onlyMedia:!0}}),a()(At,{path:"/timelines/public/local",exact:!0,component:Zt.d,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/timelines/public/local/media",component:Zt.d,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll,onlyMedia:!0}}),a()(At,{path:"/timelines/direct",component:Zt.f,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/timelines/tag/:id",component:Zt.q,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/timelines/list/:id",component:Zt.u,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/notifications",component:Zt.z,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/favourites",component:Zt.j,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/pinned",component:Zt.B,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/search",component:Zt.e,content:t,componentParams:{isSearchPage:!0}}),a()(At,{path:"/statuses/new",component:Zt.e,content:t}),a()(At,{path:"/statuses/:statusId",exact:!0,component:Zt.F,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/statuses/:statusId/reblogs",component:Zt.D,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/statuses/:statusId/favourites",component:Zt.k,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/accounts/:accountId",exact:!0,component:Zt.b,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/accounts/:accountId/with_replies",component:Zt.b,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll,withReplies:!0}}),a()(At,{path:"/accounts/:accountId/followers",component:Zt.m,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/accounts/:accountId/following",component:Zt.n,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/accounts/:accountId/media",component:Zt.a,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/follow_requests",component:Zt.l,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/blocks",component:Zt.c,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/domain_blocks",component:Zt.g,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/mutes",component:Zt.y,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{path:"/lists",component:Zt.v,content:t,componentParams:{shouldUpdateScroll:this.shouldUpdateScroll}}),a()(At,{component:Zt.o,content:t})))},e}(h.a.PureComponent),pe=Object(f.connect)(function(t){return{isComposing:t.getIn(["compose","is_composing"]),hasComposingText:""!==t.getIn(["compose","text"]),dropdownMenuIsOpen:null!==t.getIn(["dropdown_menu","openId"])}})(kt=Object(A.g)(kt=Object(X.a)((Ct=Ot=function(t){function e(){var o,n,r;s()(this,e);for(var a=arguments.length,i=Array(a),c=0;c<a;c++)i[c]=arguments[c];return o=n=l()(this,t.call.apply(t,[this].concat(i))),n.state={draggingOver:!1},n.handleBeforeUnload=function(t){var e=n.props,o=e.intl,r=e.isComposing,a=e.hasComposingText;r&&a&&(t.returnValue=o.formatMessage(se.beforeUnload))},n.handleLayoutChange=function(){n.props.dispatch(Object(lt.c)())},n.handleDragEnter=function(t){t.preventDefault(),n.dragTargets||(n.dragTargets=[]),-1===n.dragTargets.indexOf(t.target)&&n.dragTargets.push(t.target),t.dataTransfer&&Array.from(t.dataTransfer.types).includes("Files")&&n.setState({draggingOver:!0})},n.handleDragOver=function(t){t.preventDefault(),t.stopPropagation();try{t.dataTransfer.dropEffect="copy"}catch(t){}return!1},n.handleDrop=function(t){t.preventDefault(),n.setState({draggingOver:!1}),t.dataTransfer&&1===t.dataTransfer.files.length&&n.props.dispatch(Object(at.Z)(t.dataTransfer.files))},n.handleDragLeave=function(t){t.preventDefault(),t.stopPropagation(),n.dragTargets=n.dragTargets.filter(function(e){return e!==t.target&&n.node.contains(e)}),n.dragTargets.length>0||n.setState({draggingOver:!1})},n.closeUploadModal=function(){n.setState({draggingOver:!1})},n.handleServiceWorkerPostMessage=function(t){var e=t.data;"navigate"===e.type?n.context.router.history.push(e.path):console.warn("Unknown message type:",e.type)},n.setRef=function(t){n.node=t},n.handleHotkeyNew=function(t){t.preventDefault();var e=n.node.querySelector(".compose-form__autosuggest-wrapper textarea");e&&e.focus()},n.handleHotkeySearch=function(t){t.preventDefault();var e=n.node.querySelector(".search__input");e&&e.focus()},n.handleHotkeyForceNew=function(t){n.handleHotkeyNew(t),n.props.dispatch(Object(at.U)())},n.handleHotkeyFocusColumn=function(t){var e=1*t.key+1,o=n.node.querySelector(".column:nth-child("+e+")");if(o){var r=o.querySelector(".focusable");r&&r.focus()}},n.handleHotkeyBack=function(){window.history&&1===window.history.length?n.context.router.history.push("/"):n.context.router.history.goBack()},n.setHotkeysRef=function(t){n.hotkeys=t},n.handleHotkeyToggleHelp=function(){"/keyboard-shortcuts"===n.props.location.pathname?n.context.router.history.goBack():n.context.router.history.push("/keyboard-shortcuts")},n.handleHotkeyGoToHome=function(){n.context.router.history.push("/timelines/home")},n.handleHotkeyGoToNotifications=function(){n.context.router.history.push("/notifications")},n.handleHotkeyGoToLocal=function(){n.context.router.history.push("/timelines/public/local")},n.handleHotkeyGoToFederated=function(){n.context.router.history.push("/timelines/public")},n.handleHotkeyGoToDirect=function(){n.context.router.history.push("/timelines/direct")},n.handleHotkeyGoToStart=function(){n.context.router.history.push("/getting-started")},n.handleHotkeyGoToFavourites=function(){n.context.router.history.push("/favourites")},n.handleHotkeyGoToPinned=function(){n.context.router.history.push("/pinned")},n.handleHotkeyGoToProfile=function(){n.context.router.history.push("/accounts/"+ae.i)},n.handleHotkeyGoToBlocked=function(){n.context.router.history.push("/blocks")},n.handleHotkeyGoToMuted=function(){n.context.router.history.push("/mutes")},n.handleHotkeyGoToRequests=function(){n.context.router.history.push("/follow_requests")},r=o,l()(n,r)}return u()(e,t),e.prototype.componentWillMount=function(){var t=this;window.addEventListener("beforeunload",this.handleBeforeUnload,!1),document.addEventListener("dragenter",this.handleDragEnter,!1),document.addEventListener("dragover",this.handleDragOver,!1),document.addEventListener("drop",this.handleDrop,!1),document.addEventListener("dragleave",this.handleDragLeave,!1),document.addEventListener("dragend",this.handleDragEnd,!1),"serviceWorker"in navigator&&navigator.serviceWorker.addEventListener("message",this.handleServiceWorkerPostMessage),this.props.dispatch(Object(it.p)()),this.props.dispatch(Object(st.h)()),setTimeout(function(){return t.props.dispatch(Object(ct.b)())},500)},e.prototype.componentDidMount=function(){this.hotkeys.__mousetrap__.stopCallback=function(t,e){return["TEXTAREA","SELECT","INPUT"].includes(e.tagName)}},e.prototype.componentWillUnmount=function(){window.removeEventListener("beforeunload",this.handleBeforeUnload),document.removeEventListener("dragenter",this.handleDragEnter),document.removeEventListener("dragover",this.handleDragOver),document.removeEventListener("drop",this.handleDrop),document.removeEventListener("dragleave",this.handleDragLeave),document.removeEventListener("dragend",this.handleDragEnd)},e.prototype.render=function(){var t=this.state.draggingOver,e=this.props,o=e.children,n=e.isComposing,r=e.location,i=e.dropdownMenuIsOpen,s={help:this.handleHotkeyToggleHelp,new:this.handleHotkeyNew,search:this.handleHotkeySearch,forceNew:this.handleHotkeyForceNew,focusColumn:this.handleHotkeyFocusColumn,back:this.handleHotkeyBack,goToHome:this.handleHotkeyGoToHome,goToNotifications:this.handleHotkeyGoToNotifications,goToLocal:this.handleHotkeyGoToLocal,goToFederated:this.handleHotkeyGoToFederated,goToDirect:this.handleHotkeyGoToDirect,goToStart:this.handleHotkeyGoToStart,goToFavourites:this.handleHotkeyGoToFavourites,goToPinned:this.handleHotkeyGoToPinned,goToProfile:this.handleHotkeyGoToProfile,goToBlocked:this.handleHotkeyGoToBlocked,goToMuted:this.handleHotkeyGoToMuted,goToRequests:this.handleHotkeyGoToRequests};return h.a.createElement(q.HotKeys,{keyMap:ce,handlers:s,ref:this.setHotkeysRef},h.a.createElement("div",{className:I()("ui",{"is-composing":n}),ref:this.setRef,style:{pointerEvents:i?"none":null}},a()(nt,{}),a()(le,{location:r,onLayoutChange:this.handleLayoutChange},void 0,o),a()(Z.a,{}),a()($.a,{className:"loading-bar"}),a()(rt.a,{}),a()(Ft,{active:t,onClose:this.closeUploadModal})))},e}(h.a.PureComponent),Ot.contextTypes={router:S.a.object.isRequired},kt=Ct))||kt)||kt)||kt,ue=o(150),de=o(29),he=o(63),fe=o(8),me=Object(fe.getLocale)(),ye=me.localeData,ge=me.messages;Object(A.e)(ye);var ve=Object(m.a)(),be=Object(de.b)(ae.c);ve.dispatch(be),ve.dispatch(Object(ue.b)());var we=function(t){function e(){return s()(this,e),l()(this,t.apply(this,arguments))}return u()(e,t),e.prototype.componentDidMount=function(){this.disconnect=ve.dispatch(Object(he.f)()),void 0!==window.Notification&&"default"===Notification.permission&&window.setTimeout(function(){return Notification.requestPermission()},6e4),ve.dispatch(function(t,e){e().getIn(["settings","onboarded"])||(t(Object(y.d)("ONBOARDING")),t(Object(g.c)(["onboarded"],!0)),t(Object(g.d)()))})},e.prototype.componentWillUnmount=function(){this.disconnect&&(this.disconnect(),this.disconnect=null)},e.prototype.render=function(){var t=this.props.locale;return a()(A.d,{locale:t,messages:ge},void 0,a()(f.Provider,{store:ve},void 0,a()(R,{basename:"/web"},void 0,a()(N.b,{},void 0,a()(M.a,{path:"/",component:pe})))))},e}(h.a.PureComponent),Se=o(28),Te=o.n(Se),ke=o(80),Oe=o(454);e.default=function(){if(Oe.start("main()"),window.history&&history.replaceState){var t=window.location,e=t.pathname+t.search+t.hash;/^\/web($|\/)/.test(e)||history.replaceState(null,document.title,"/web"+e)}Object(ke.default)(function(){var t=document.getElementById("mastodon"),e=JSON.parse(t.getAttribute("data-props"));Te.a.render(h.a.createElement(we,e),t),o(453).install(),ve.dispatch(n.f()),Oe.stop("main()")})}},453:function(t,e){function o(){return"serviceWorker"in navigator&&("https:"===window.location.protocol||"localhost"===window.location.hostname||0===window.location.hostname.indexOf("127."))}e.install=function(t){t||(t={}),o()&&navigator.serviceWorker.register("/sw.js",{})},e.applyUpdate=function(t,e){},e.update=function(){o()&&navigator.serviceWorker.getRegistration().then(function(t){if(t)return t.update()})}},454:function(t,e,o){"use strict";o.r(e),o.d(e,"start",function(){return n}),o.d(e,"stop",function(){return r});function n(t){0}function r(t){0}},457:function(t,e,o){"use strict";o.r(e);var n=o(67),r=o(66);Object(r.a)(),Object(n.a)().then(function(){o(389).default()}).catch(function(t){console.error(t)})}},[[457,0]]]);
 //# sourceMappingURL=application.js.map
\ No newline at end of file