mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 16:24:23 +00:00
2 lines
37 KiB
JavaScript
2 lines
37 KiB
JavaScript
webpackJsonp([37],{275:function(t,e,n){"use strict";n.d(e,"a",function(){return v});var o,r,i=n(2),a=n.n(i),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),f=n.n(d),h=n(0),p=n.n(h),m=n(7),v=(r=o=function(t){function e(){return c()(this,e),u()(this,t.apply(this,arguments))}return f()(e,t),e.prototype.render=function(){var t=this.props,e=t.disabled,n=t.visible;return a()("button",{className:"load-more",disabled:e||!n,style:{visibility:n?"visible":"hidden"},onClick:this.props.onClick},void 0,a()(m.b,{id:"status.load_more",defaultMessage:"Load more"}))},e}(p.a.PureComponent),o.defaultProps={visible:!0},r)},277:function(t,e,n){"use strict";var o=n(2),r=n.n(o),i=n(0),a=(n.n(i),n(9)),s=n(158),c=n(67),l=n(17),u=n(68),d=n(22),f=n(69),h=n(90),p=n(157),m=n(26),v=n(7),g=n(13),y=n(33),b=Object(v.f)({deleteConfirm:{id:"confirmations.delete.confirm",defaultMessage:"Delete"},deleteMessage:{id:"confirmations.delete.message",defaultMessage:"Are you sure you want to delete this status?"},redraftConfirm:{id:"confirmations.redraft.confirm",defaultMessage:"Delete & redraft"},redraftMessage:{id:"confirmations.redraft.message",defaultMessage:"Are you sure you want to delete this status and re-draft it? You will lose all replies, boosts and favourites to it."},blockConfirm:{id:"confirmations.block.confirm",defaultMessage:"Block"}}),O=function(){var t=Object(c.e)();return function(e,n){return{status:t(e,n.id)}}},j=function(t,e){var n=e.intl;return{onReply:function(e,n){t(Object(l.T)(e,n))},onModalReblog:function(e){t(Object(u.o)(e))},onReblog:function(e,n){e.get("reblogged")?t(Object(u.r)(e)):n.shiftKey||!g.b?this.onModalReblog(e):t(Object(m.d)("BOOST",{status:e,onReblog:this.onModalReblog}))},onFavourite:function(e){t(e.get("favourited")?Object(u.p)(e):Object(u.k)(e))},onPin:function(e){t(e.get("pinned")?Object(u.q)(e):Object(u.n)(e))},onEmbed:function(e){t(Object(m.d)("EMBED",{url:e.get("url"),onError:function(e){return t(Object(y.e)(e))}}))},onDelete:function(e){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t(g.d?Object(m.d)("CONFIRM",{message:n.formatMessage(o?b.redraftMessage:b.deleteMessage),confirm:n.formatMessage(o?b.redraftConfirm:b.deleteConfirm),onConfirm:function(){return t(Object(f.g)(e.get("id"),o))}}):Object(f.g)(e.get("id"),o))},onDirect:function(e,n){t(Object(l.N)(e,n))},onMention:function(e,n){t(Object(l.R)(e,n))},onOpenMedia:function(e,n){t(Object(m.d)("MEDIA",{media:e,index:n}))},onOpenVideo:function(e,n){t(Object(m.d)("VIDEO",{media:e,time:n}))},onBlock:function(e){t(Object(m.d)("CONFIRM",{message:r()(v.b,{id:"confirmations.block.message",defaultMessage:"Are you sure you want to block {name}?",values:{name:r()("strong",{},void 0,"@",e.get("acct"))}}),confirm:n.formatMessage(b.blockConfirm),onConfirm:function(){return t(Object(d.q)(e.get("id")))}}))},onReport:function(e){t(Object(p.k)(e.get("account"),e))},onMute:function(e){t(Object(h.g)(e))},onMuteConversation:function(e){t(e.get("muted")?Object(f.l)(e.get("id")):Object(f.j)(e.get("id")))},onToggleHidden:function(e){t(e.get("hidden")?Object(f.k)(e.get("id")):Object(f.i)(e.get("id")))}}};e.a=Object(v.g)(Object(a.connect)(O,j)(s.a))},278:function(t,e,n){"use strict";n.d(e,"a",function(){return w});var o,r,i=n(2),a=n.n(i),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),f=n.n(d),h=n(93),p=n.n(h),m=n(0),v=n.n(m),g=n(156),y=n(5),b=n.n(y),O=n(279),j=n(275),M=n(284),C=n(8),_=(n.n(C),n(10)),k=n.n(_),I=n(159),w=(r=o=function(t){function e(){var n,o,r;c()(this,e);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=u()(this,t.call.apply(t,[this].concat(a))),o.state={fullscreen:null},o.intersectionObserverWrapper=new M.a,o.handleScroll=p()(function(){if(o.node){var t=o.node,e=t.scrollTop;400>t.scrollHeight-e-t.clientHeight&&o.props.onLoadMore&&!o.props.isLoading&&o.props.onLoadMore(),e<100&&o.props.onScrollToTop?o.props.onScrollToTop():o.props.onScroll&&o.props.onScroll()}},150,{trailing:!0}),o.onFullScreenChange=function(){o.setState({fullscreen:Object(I.d)()})},o.setRef=function(t){o.node=t},o.handleLoadMore=function(t){t.preventDefault(),o.props.onLoadMore()},r=n,u()(o,r)}return f()(e,t),e.prototype.componentDidMount=function(){this.attachScrollListener(),this.attachIntersectionObserver(),Object(I.a)(this.onFullScreenChange),this.handleScroll()},e.prototype.getSnapshotBeforeUpdate=function(t){return v.a.Children.count(t.children)>0&&v.a.Children.count(t.children)<v.a.Children.count(this.props.children)&&this.getFirstChildKey(t)!==this.getFirstChildKey(this.props)&&this.node.scrollTop>0?this.node.scrollHeight-this.node.scrollTop:null},e.prototype.componentDidUpdate=function(t,e,n){if(null!==n){var o=this.node.scrollHeight-n;this.node.scrollTop!==o&&(this.node.scrollTop=o)}},e.prototype.componentWillUnmount=function(){this.detachScrollListener(),this.detachIntersectionObserver(),Object(I.b)(this.onFullScreenChange)},e.prototype.attachIntersectionObserver=function(){this.intersectionObserverWrapper.connect({root:this.node,rootMargin:"300% 0px"})},e.prototype.detachIntersectionObserver=function(){this.intersectionObserverWrapper.disconnect()},e.prototype.attachScrollListener=function(){this.node.addEventListener("scroll",this.handleScroll)},e.prototype.detachScrollListener=function(){this.node.removeEventListener("scroll",this.handleScroll)},e.prototype.getFirstChildKey=function(t){var e=t.children,n=e;return e instanceof C.List?n=e.get(0):Array.isArray(e)&&(n=e[0]),n&&n.key},e.prototype.render=function(){var t=this,e=this.props,n=e.children,o=e.scrollKey,r=e.trackScroll,i=e.shouldUpdateScroll,s=e.isLoading,c=e.hasMore,l=e.prepend,u=e.alwaysPrepend,d=e.emptyMessage,f=e.onLoadMore,h=this.state.fullscreen,p=v.a.Children.count(n),m=c&&p>0&&f?a()(j.a,{visible:!s,onClick:this.handleLoadMore}):null,y=null;return y=s||p>0||!d?v.a.createElement("div",{className:k()("scrollable",{fullscreen:h}),ref:this.setRef},a()("div",{role:"feed",className:"item-list"},void 0,l,v.a.Children.map(this.props.children,function(e,n){return a()(O.a,{id:e.key,index:n,listLength:p,intersectionObserverWrapper:t.intersectionObserverWrapper,saveHeightKey:r?t.context.router.route.location.key+":"+o:null},e.key,e)}),m)):a()("div",{style:{flex:"1 1 auto",display:"flex",flexDirection:"column"}},void 0,u&&l,v.a.createElement("div",{className:"empty-column-indicator",ref:this.setRef},d)),r?a()(g.a,{scrollKey:o,shouldUpdateScroll:i},void 0,y):y},e}(m.PureComponent),o.contextTypes={router:b.a.object},o.defaultProps={trackScroll:!0},r)},279:function(t,e,n){"use strict";var o=n(9),r=n(280),i=n(94),a=function(t,e){return{cachedHeight:t.getIn(["height_cache",e.saveHeightKey,e.id])}},s=function(t){return{onHeightChange:function(e,n,o){t(Object(i.d)(e,n,o))}}};e.a=Object(o.connect)(a,s)(r.a)},280:function(t,e,n){"use strict";n.d(e,"a",function(){return v});var o=n(1),r=n.n(o),i=n(3),a=n.n(i),s=n(4),c=n.n(s),l=n(0),u=n.n(l),d=n(281),f=n(283),h=n(8),p=(n.n(h),["id","index","listLength"]),m=["id","index","listLength","cachedHeight"],v=function(t){function e(){var n,o,i;r()(this,e);for(var s=arguments.length,c=Array(s),l=0;l<s;l++)c[l]=arguments[l];return n=o=a()(this,t.call.apply(t,[this].concat(c))),o.state={isHidden:!1},o.handleIntersection=function(t){o.entry=t,Object(d.a)(o.calculateHeight),o.setState(o.updateStateAfterIntersection)},o.updateStateAfterIntersection=function(t){return t.isIntersecting&&!o.entry.isIntersecting&&Object(d.a)(o.hideIfNotIntersecting),{isIntersecting:o.entry.isIntersecting,isHidden:!1}},o.calculateHeight=function(){var t=o.props,e=t.onHeightChange,n=t.saveHeightKey,r=t.id;o.height=Object(f.a)(o.entry).height,e&&n&&e(n,r,o.height)},o.hideIfNotIntersecting=function(){o.componentMounted&&o.setState(function(t){return{isHidden:!t.isIntersecting}})},o.handleRef=function(t){o.node=t},i=n,a()(o,i)}return c()(e,t),e.prototype.shouldComponentUpdate=function(t,e){var n=this,o=!this.state.isIntersecting&&(this.state.isHidden||this.props.cachedHeight);return!!o!=!(e.isIntersecting||!e.isHidden&&!t.cachedHeight)||!(o?m:p).every(function(e){return Object(h.is)(t[e],n.props[e])})},e.prototype.componentDidMount=function(){var t=this.props,e=t.intersectionObserverWrapper,n=t.id;e.observe(n,this.node,this.handleIntersection),this.componentMounted=!0},e.prototype.componentWillUnmount=function(){var t=this.props,e=t.intersectionObserverWrapper,n=t.id;e.unobserve(n,this.node),this.componentMounted=!1},e.prototype.render=function(){var t=this.props,e=t.children,n=t.id,o=t.index,r=t.listLength,i=t.cachedHeight,a=this.state,s=a.isIntersecting,c=a.isHidden;return s||!c&&!i?u.a.createElement("article",{ref:this.handleRef,"aria-posinset":o,"aria-setsize":r,"data-id":n,tabIndex:"0"},e&&u.a.cloneElement(e,{hidden:!1})):u.a.createElement("article",{ref:this.handleRef,"aria-posinset":o,"aria-setsize":r,style:{height:(this.height||i)+"px",opacity:0,overflow:"hidden"},"data-id":n,tabIndex:"0"},e&&u.a.cloneElement(e,{hidden:!0}))},e}(u.a.Component)},281:function(t,e,n){"use strict";function o(t){for(;s.length&&t.timeRemaining()>0;)s.shift()();s.length?requestIdleCallback(o):c=!1}function r(t){s.push(t),c||(c=!0,requestIdleCallback(o))}var i=n(282),a=n.n(i),s=new a.a,c=!1;e.a=r},282:function(t,e,n){"use strict";function o(){this.length=0}o.prototype.push=function(t){var e={item:t};this.last?this.last=this.last.next=e:this.last=this.first=e,this.length++},o.prototype.shift=function(){var t=this.first;if(t)return this.first=t.next,--this.length||(this.last=void 0),t.item},o.prototype.slice=function(t,e){t=void 0===t?0:t,e=void 0===e?1/0:e;for(var n=[],o=0,r=this.first;r&&!(--e<0);r=r.next)++o>t&&n.push(r.item);return n},t.exports=o},283:function(t,e,n){"use strict";function o(t){if("boolean"!=typeof r){var e=t.target.getBoundingClientRect(),n=t.boundingClientRect;r=e.height!==n.height||e.top!==n.top||e.width!==n.width||e.bottom!==n.bottom||e.left!==n.left||e.right!==n.right}return r?t.target.getBoundingClientRect():t.boundingClientRect}var r=void 0;e.a=o},284:function(t,e,n){"use strict";var o=n(1),r=n.n(o),i=function(){function t(){r()(this,t),this.callbacks={},this.observerBacklog=[],this.observer=null}return t.prototype.connect=function(t){var e=this,n=function(t){t.forEach(function(t){var n=t.target.getAttribute("data-id");e.callbacks[n]&&e.callbacks[n](t)})};this.observer=new IntersectionObserver(n,t),this.observerBacklog.forEach(function(t){var n=t[0],o=t[1],r=t[2];e.observe(n,o,r)}),this.observerBacklog=null},t.prototype.observe=function(t,e,n){this.observer?(this.callbacks[t]=n,this.observer.observe(e)):this.observerBacklog.push([t,e,n])},t.prototype.unobserve=function(t,e){this.observer&&(delete this.callbacks[t],this.observer.unobserve(e))},t.prototype.disconnect=function(){this.observer&&(this.callbacks={},this.observer.disconnect(),this.observer=null)},t}();e.a=i},285:function(t,e,n){"use strict";n.d(e,"a",function(){return v});var o,r=n(2),i=n.n(r),a=n(1),s=n.n(a),c=n(3),l=n.n(c),u=n(4),d=n.n(u),f=n(0),h=n.n(f),p=n(7),m=Object(p.f)({load_more:{id:"status.load_more",defaultMessage:"Load more"}}),v=Object(p.g)(o=function(t){function e(){var n,o,r;s()(this,e);for(var i=arguments.length,a=Array(i),c=0;c<i;c++)a[c]=arguments[c];return n=o=l()(this,t.call.apply(t,[this].concat(a))),o.handleClick=function(){o.props.onClick(o.props.maxId)},r=n,l()(o,r)}return d()(e,t),e.prototype.render=function(){var t=this.props,e=t.disabled,n=t.intl;return i()("button",{className:"load-more load-gap",disabled:e,onClick:this.handleClick,"aria-label":n.formatMessage(m.load_more)},void 0,i()("i",{className:"fa fa-ellipsis-h"}))},e}(h.a.PureComponent))||o},286:function(t,e,n){"use strict";n.d(e,"a",function(){return L});var o,r,i=n(34),a=n.n(i),s=n(2),c=n.n(s),l=n(55),u=n.n(l),d=n(1),f=n.n(d),h=n(3),p=n.n(h),m=n(4),v=n.n(m),g=n(32),y=n.n(g),b=n(0),O=n.n(b),j=n(14),M=n.n(j),C=n(5),_=n.n(C),k=n(277),I=n(12),w=n.n(I),x=n(285),S=n(278),T=n(7),L=(r=o=function(t){function e(){var n,o,r;f()(this,e);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=p()(this,t.call.apply(t,[this].concat(a))),o.getFeaturedStatusCount=function(){return o.props.featuredStatusIds?o.props.featuredStatusIds.size:0},o.getCurrentStatusIndex=function(t,e){return e?o.props.featuredStatusIds.indexOf(t):o.props.statusIds.indexOf(t)+o.getFeaturedStatusCount()},o.handleMoveUp=function(t,e){var n=o.getCurrentStatusIndex(t,e)-1;o._selectChild(n)},o.handleMoveDown=function(t,e){var n=o.getCurrentStatusIndex(t,e)+1;o._selectChild(n)},o.handleLoadOlder=y()(function(){o.props.onLoadMore(o.props.statusIds.last())},300,{leading:!0}),o.setRef=function(t){o.node=t},r=n,p()(o,r)}return v()(e,t),e.prototype._selectChild=function(t){var e=this.node.node.querySelector("article:nth-of-type("+(t+1)+") .focusable");e&&e.focus()},e.prototype.render=function(){var t=this,e=this.props,n=e.statusIds,o=e.featuredStatusIds,r=e.onLoadMore,i=u()(e,["statusIds","featuredStatusIds","onLoadMore"]),s=i.isLoading;if(i.isPartial)return c()("div",{className:"regeneration-indicator"},void 0,c()("div",{},void 0,c()("div",{className:"regeneration-indicator__figure"}),c()("div",{className:"regeneration-indicator__label"},void 0,c()(T.b,{id:"regeneration_indicator.label",tagName:"strong",defaultMessage:"Loading…"}),c()(T.b,{id:"regeneration_indicator.sublabel",defaultMessage:"Your home feed is being prepared!"}))));var l=s||n.size>0?n.map(function(e,o){return null===e?c()(x.a,{disabled:s,maxId:o>0?n.get(o-1):null,onClick:r},"gap:"+n.get(o+1)):c()(k.a,{id:e,onMoveUp:t.handleMoveUp,onMoveDown:t.handleMoveDown},e)}):null;return l&&o&&(l=o.map(function(e){return c()(k.a,{id:e,featured:!0,onMoveUp:t.handleMoveUp,onMoveDown:t.handleMoveDown},"f-"+e)}).concat(l)),O.a.createElement(S.a,a()({},i,{onLoadMore:r&&this.handleLoadOlder,ref:this.setRef}),l)},e}(w.a),o.propTypes={scrollKey:_.a.string.isRequired,statusIds:M.a.list.isRequired,featuredStatusIds:M.a.list,onLoadMore:_.a.func,onScrollToTop:_.a.func,onScroll:_.a.func,trackScroll:_.a.bool,shouldUpdateScroll:_.a.func,isLoading:_.a.bool,isPartial:_.a.bool,hasMore:_.a.bool,prepend:_.a.node,emptyMessage:_.a.node,alwaysPrepend:_.a.bool},o.defaultProps={trackScroll:!0},r)},330:function(t,e,n){"use strict";function o(){var t=n(331).default,e=n(0),o=n(20),r=document.getElementById("mastodon-timeline");if(null!==r){var i=JSON.parse(r.getAttribute("data-props"));o.render(e.createElement(t,i),r)}}function r(){(0,n(89).default)(o)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(77);Object(i.a)().then(r).catch(function(t){console.error(t)})},331:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"default",function(){return L});var o,r,i=n(2),a=n.n(i),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),f=n.n(d),h=n(0),p=n.n(h),m=n(20),v=n.n(m),g=n(9),y=n(126),b=n(31),O=n(7),j=n(6),M=n(487),C=n(648),_=n(649),k=n(150),I=n(13),w=Object(j.getLocale)(),x=w.localeData,S=w.messages;Object(O.e)(x);var T=Object(y.a)();I.c&&T.dispatch(Object(b.b)(I.c));var L=(r=o=function(t){function e(){return c()(this,e),u()(this,t.apply(this,arguments))}return f()(e,t),e.prototype.render=function(){var t=this.props,e=t.locale,n=t.hashtag,o=t.showPublicTimeline,r=void 0;return r=n?a()(_.a,{hashtag:n}):o?a()(M.a,{}):a()(C.a,{}),a()(O.d,{locale:e,messages:S},void 0,a()(g.Provider,{store:T},void 0,a()(h.Fragment,{},void 0,r,v.a.createPortal(a()(k.a,{}),document.getElementById("modal-container")))))},e}(p.a.PureComponent),o.defaultProps={showPublicTimeline:I.c.settings.known_fediverse},r)},487:function(t,e,n){"use strict";n.d(e,"a",function(){return C});var o,r,i=n(2),a=n.n(i),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),f=n.n(d),h=n(0),p=n.n(h),m=n(9),v=n(92),g=n(19),y=n(71),b=n(70),O=n(7),j=n(72),M=Object(O.f)({title:{id:"standalone.public_title",defaultMessage:"A look inside..."}}),C=(o=Object(m.connect)())(r=Object(O.g)(r=function(t){function e(){var n,o,r;c()(this,e);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=u()(this,t.call.apply(t,[this].concat(a))),o.handleHeaderClick=function(){o.column.scrollTop()},o.setRef=function(t){o.column=t},o.handleLoadMore=function(t){o.props.dispatch(Object(g.r)({maxId:t}))},r=n,u()(o,r)}return f()(e,t),e.prototype.componentDidMount=function(){var t=this.props.dispatch;t(Object(g.r)()),this.disconnect=t(Object(j.e)())},e.prototype.componentWillUnmount=function(){this.disconnect&&(this.disconnect(),this.disconnect=null)},e.prototype.render=function(){var t=this.props.intl;return p.a.createElement(y.a,{ref:this.setRef},a()(b.a,{icon:"globe",title:t.formatMessage(M.title),onClick:this.handleHeaderClick}),a()(v.a,{timelineId:"public",onLoadMore:this.handleLoadMore,scrollKey:"standalone_public_timeline",trackScroll:!1}))},e}(p.a.PureComponent))||r)||r},648:function(t,e,n){"use strict";n.d(e,"a",function(){return C});var o,r,i=n(2),a=n.n(i),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),f=n.n(d),h=n(0),p=n.n(h),m=n(9),v=n(92),g=n(19),y=n(71),b=n(70),O=n(7),j=n(72),M=Object(O.f)({title:{id:"standalone.public_title",defaultMessage:"A look inside..."}}),C=(o=Object(m.connect)())(r=Object(O.g)(r=function(t){function e(){var n,o,r;c()(this,e);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=u()(this,t.call.apply(t,[this].concat(a))),o.handleHeaderClick=function(){o.column.scrollTop()},o.setRef=function(t){o.column=t},o.handleLoadMore=function(t){o.props.dispatch(Object(g.m)({maxId:t}))},r=n,u()(o,r)}return f()(e,t),e.prototype.componentDidMount=function(){var t=this.props.dispatch;t(Object(g.m)()),this.disconnect=t(Object(j.a)())},e.prototype.componentWillUnmount=function(){this.disconnect&&(this.disconnect(),this.disconnect=null)},e.prototype.render=function(){var t=this.props.intl;return p.a.createElement(y.a,{ref:this.setRef},a()(b.a,{icon:"users",title:t.formatMessage(M.title),onClick:this.handleHeaderClick}),a()(v.a,{timelineId:"community",onLoadMore:this.handleLoadMore,scrollKey:"standalone_public_timeline",trackScroll:!1}))},e}(p.a.PureComponent))||r)||r},649:function(t,e,n){"use strict";n.d(e,"a",function(){return j});var o,r,i=n(2),a=n.n(i),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),f=n.n(d),h=n(0),p=n.n(h),m=n(9),v=n(92),g=n(19),y=n(71),b=n(70),O=n(72),j=(o=Object(m.connect)())(r=function(t){function e(){var n,o,r;c()(this,e);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=u()(this,t.call.apply(t,[this].concat(a))),o.handleHeaderClick=function(){o.column.scrollTop()},o.setRef=function(t){o.column=t},o.handleLoadMore=function(t){o.props.dispatch(Object(g.o)(o.props.hashtag,{maxId:t}))},r=n,u()(o,r)}return f()(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.dispatch,n=t.hashtag;e(Object(g.o)(n)),this.disconnect=e(Object(O.c)(n))},e.prototype.componentWillUnmount=function(){this.disconnect&&(this.disconnect(),this.disconnect=null)},e.prototype.render=function(){var t=this.props.hashtag;return p.a.createElement(y.a,{ref:this.setRef},a()(b.a,{icon:"hashtag",title:t,onClick:this.handleHeaderClick}),a()(v.a,{trackScroll:!1,scrollKey:"standalone_hashtag_timeline",timelineId:"hashtag:"+t,onLoadMore:this.handleLoadMore}))},e}(p.a.PureComponent))||r},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&&(L.a.__addLocaleData(t),N.a.__addLocaleData(t))})}function r(t){for(var e=(t||"").split("-");e.length>0;){if(i(e.join("-")))return!0;e.pop()}return!1}function i(t){var e=t&&t.toLowerCase();return!(!L.a.__localeData__[e]||!N.a.__localeData__[e])}function a(t){return(""+t).replace(Ot,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;H()(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":K(t))||null===t||"object"!==(void 0===e?"undefined":K(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),i=0;i<n.length;i++)if(!r(n[i])||t[n[i]]!==e[n[i]])return!1;return!0}function u(t,e,n){var o=t.props,r=t.state,i=t.context,a=void 0===i?{}:i,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=a.intl,d=void 0===u?{}:u,f=c.intl,h=void 0===f?{}:f;return!l(e,o)||!l(n,r)||!(h===d||l(s(h,yt),s(d,yt)))}function d(t){return t.displayName||t.name||"Component"}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.intlPropName,o=void 0===n?"intl":n,r=e.withRef,i=void 0!==r&&r,a=function(e){function n(t,e){q(this,n);var o=G(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t,e));return c(e),o}return Y(n,e),z(n,[{key:"getWrappedInstance",value:function(){return H()(i,"[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 E.a.createElement(t,J({},this.props,V({},o,this.context.intl),{ref:i?"wrappedInstance":null}))}}]),n}(R.Component);return a.displayName="InjectIntl("+d(t)+")",a.contextTypes={intl:ht},a.WrappedComponent=t,a}function h(t){return t}function p(t){return L.a.prototype._resolveLocale(t)}function m(t){return L.a.prototype._findPluralRuleFunction(t)}function v(t){var e=N.a.thresholds;e.second=t.second,e.minute=t.minute,e.hour=t.hour,e.day=t.day,e.month=t.month}function g(t,e,n){var o=t&&t[e]&&t[e][n];if(o)return o}function y(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,i=t.formats,a=o.format,c=new Date(n),l=a&&g(i,"date",a),u=s(o,Mt,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,i=t.formats,a=o.format,c=new Date(n),l=a&&g(i,"time",a),u=s(o,Mt,l);u.hour||u.minute||u.second||(u=J({},u,{hour:"numeric",minute:"numeric"}));try{return e.getDateTimeFormat(r,u).format(c)}catch(t){}return String(c)}function O(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,i=t.formats,a=o.format,c=new Date(n),l=new Date(o.now),u=a&&g(i,"relative",a),d=s(o,_t,u),f=J({},N.a.thresholds);v(It);try{return e.getRelativeFormat(r,d).format(c,{now:isFinite(l)?l:e.now()})}catch(t){}finally{v(f)}return String(c)}function j(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,i=t.formats,a=o.format,c=a&&g(i,"number",a),l=s(o,Ct,c);try{return e.getNumberFormat(r,l).format(n)}catch(t){}return String(n)}function M(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,i=s(o,kt);try{return e.getPluralFormat(r,i).format(n)}catch(t){}return"other"}function C(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,i=t.formats,a=t.messages,s=t.defaultLocale,c=t.defaultFormats,l=n.id,u=n.defaultMessage;H()(l,"[React Intl] An `id` must be provided to format a message.");var d=a&&a[l];if(!(Object.keys(o).length>0))return d||u||l;var f=void 0;if(d)try{f=e.getMessageFormat(d,r,i).format(o)}catch(t){}if(!f&&u)try{f=e.getMessageFormat(u,s,c).format(o)}catch(t){}return f||d||u||l}function _(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return C(t,e,n,Object.keys(o).reduce(function(t,e){var n=o[e];return t[e]="string"==typeof n?a(n):n,t},{}))}function k(t){var e=Math.abs(t);return e<Ft?"second":e<Rt?"minute":e<Et?"hour":"day"}function I(t){switch(t){case"second":return Dt;case"minute":return Ft;case"hour":return Rt;case"day":return Et;default:return At}}function w(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 f}),n.d(e,"f",function(){return h}),n.d(e,"d",function(){return Lt}),n.d(e,"a",function(){return Pt}),n.d(e,"c",function(){return Ut}),n.d(e,"b",function(){return Bt});var x=n(107),S=n.n(x),T=n(59),L=n.n(T),P=n(76),N=n.n(P),D=n(5),F=n.n(D),R=n(0),E=n.n(R),A=n(18),H=n.n(A),U=n(108),W=n.n(U),B={locale:"en",pluralRuleFunction:function(t,e){var n=String(t).split("."),o=!n[1],r=Number(n[0])==t,i=r&&n[0].slice(-1),a=r&&n[0].slice(-2);return e?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"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"}}}}},K="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},q=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},J=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},Y=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},G=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},Q=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)},X=F.a.bool,$=F.a.number,tt=F.a.string,et=F.a.func,nt=F.a.object,ot=F.a.oneOf,rt=F.a.shape,it=F.a.any,at=F.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:it,defaultLocale:tt,defaultFormats:nt},ft={formatDate:ut,formatTime:ut,formatRelative:ut,formatNumber:ut,formatPlural:ut,formatMessage:ut,formatHTMLMessage:ut},ht=rt(J({},dt,ft,{formatters:nt,now:ut})),pt=(tt.isRequired,at([tt,nt]),{localeMatcher:st,formatMatcher:ot(["basic","best fit"]),timeZone:tt,hour12:X,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:X,minimumIntegerDigits:$,minimumFractionDigits:$,maximumFractionDigits:$,minimumSignificantDigits:$,maximumSignificantDigits:$},vt={style:ot(["best fit","numeric"]),units:ot(["second","minute","hour","day","month","year"])},gt={style:ot(["cardinal","ordinal"])},yt=Object.keys(dt),bt={"&":"&",">":">","<":"<",'"':""","'":"'"},Ot=/[&><"']/g,jt=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};q(this,t);var o="ordinal"===n.style,r=m(p(e));this.format=function(t){return r(t,o)}},Mt=Object.keys(pt),Ct=Object.keys(mt),_t=Object.keys(vt),kt=Object.keys(gt),It={second:60,minute:60,hour:24,day:30,month:12},wt=Object.freeze({formatDate:y,formatTime:b,formatRelative:O,formatNumber:j,formatPlural:M,formatMessage:C,formatHTMLMessage:_}),xt=Object.keys(dt),St=Object.keys(ft),Tt={formats:{},messages:{},textComponent:"span",defaultLocale:"en",defaultFormats:{}},Lt=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};q(this,e);var o=G(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));H()("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,i=void 0;i=isFinite(t.initialNow)?Number(t.initialNow):r?r.now():Date.now();var a=r||{},s=a.formatters,c=void 0===s?{getDateTimeFormat:W()(Intl.DateTimeFormat),getNumberFormat:W()(Intl.NumberFormat),getMessageFormat:W()(L.a),getRelativeFormat:W()(N.a),getPluralFormat:W()(jt)}:s;return o.state=J({},c,{now:function(){return o._didDisplay?Date.now():i}}),o}return Y(e,t),z(e,[{key:"getConfig",value:function(){var t=this.context.intl,e=s(this.props,xt,t);for(var n in Tt)void 0===e[n]&&(e[n]=Tt[n]);if(!r(e.locale)){var o=e,i=(o.locale,o.defaultLocale),a=o.defaultFormats;e=J({},e,{locale:i,formats:a,messages:Tt.messages})}return e}},{key:"getBoundFormatFns",value:function(t,e){return St.reduce(function(n,o){return n[o]=wt[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:J({},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 R.Children.only(this.props.children)}}]),e}(R.Component);Lt.displayName="IntlProvider",Lt.contextTypes={intl:ht},Lt.childContextTypes={intl:ht.isRequired};var Pt=function(t){function e(t,n){q(this,e);var o=G(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return Y(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,i=o.children,a=e(r,this.props);return"function"==typeof i?i(a):E.a.createElement(n,null,a)}}]),e}(R.Component);Pt.displayName="FormattedDate",Pt.contextTypes={intl:ht};var Nt=function(t){function e(t,n){q(this,e);var o=G(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return Y(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,i=o.children,a=e(r,this.props);return"function"==typeof i?i(a):E.a.createElement(n,null,a)}}]),e}(R.Component);Nt.displayName="FormattedTime",Nt.contextTypes={intl:ht};var Dt=1e3,Ft=6e4,Rt=36e5,Et=864e5,At=2147483647,Ht=function(t){function e(t,n){q(this,e);var o=G(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 Y(e,t),z(e,[{key:"scheduleNextUpdate",value:function(t,e){var n=this;clearTimeout(this._timer);var o=t.value,r=t.units,i=t.updateInterval,a=new Date(o).getTime();if(i&&isFinite(a)){var s=a-e.now,c=I(r||k(s)),l=Math.abs(s%c),u=s<0?Math.max(i,c-l):Math.max(i,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){w(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,i=o.children,a=e(r,J({},this.props,this.state));return"function"==typeof i?i(a):E.a.createElement(n,null,a)}}]),e}(R.Component);Ht.displayName="FormattedRelative",Ht.contextTypes={intl:ht},Ht.defaultProps={updateInterval:1e4};var Ut=function(t){function e(t,n){q(this,e);var o=G(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return Y(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,i=o.children,a=e(r,this.props);return"function"==typeof i?i(a):E.a.createElement(n,null,a)}}]),e}(R.Component);Ut.displayName="FormattedNumber",Ut.contextTypes={intl:ht};var Wt=function(t){function e(t,n){q(this,e);var o=G(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return Y(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,i=o.other,a=o.children,s=e(r,this.props),c=this.props[s]||i;return"function"==typeof a?a(c):E.a.createElement(n,null,c)}}]),e}(R.Component);Wt.displayName="FormattedPlural",Wt.contextTypes={intl:ht},Wt.defaultProps={style:"cardinal"};var Bt=function(t){function e(t,n){q(this,e);var o=G(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return Y(e,t),z(e,[{key:"shouldComponentUpdate",value:function(t){var e=this.props.values;if(!l(t.values,e))return!0;for(var n=J({},t,{values:e}),o=arguments.length,r=Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];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,i=o.description,a=o.defaultMessage,s=o.values,c=o.tagName,l=void 0===c?n:c,u=o.children,d=void 0,f=void 0,h=void 0;if(s&&Object.keys(s).length>0){var p=Math.floor(1099511627776*Math.random()).toString(16),m=function(){var t=0;return function(){return"ELEMENT-"+p+"-"+(t+=1)}}();d="@__"+p+"__@",f={},h={},Object.keys(s).forEach(function(t){var e=s[t];if(Object(R.isValidElement)(e)){var n=m();f[t]=d+n+d,h[n]=e}else f[t]=e})}var v={id:r,description:i,defaultMessage:a},g=e(v,f||s),y=void 0;return y=h&&Object.keys(h).length>0?g.split(d).filter(function(t){return!!t}).map(function(t){return h[t]||t}):[g],"function"==typeof u?u.apply(void 0,Q(y)):R.createElement.apply(void 0,[l,null].concat(Q(y)))}}]),e}(R.Component);Bt.displayName="FormattedMessage",Bt.contextTypes={intl:ht},Bt.defaultProps={values:{}};var Kt=function(t){function e(t,n){q(this,e);var o=G(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return Y(e,t),z(e,[{key:"shouldComponentUpdate",value:function(t){var e=this.props.values;if(!l(t.values,e))return!0;for(var n=J({},t,{values:e}),o=arguments.length,r=Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];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,i=o.description,a=o.defaultMessage,s=o.values,c=o.tagName,l=void 0===c?n:c,u=o.children,d={id:r,description:i,defaultMessage:a},f=e(d,s);if("function"==typeof u)return u(f);var h={__html:f};return E.a.createElement(l,{dangerouslySetInnerHTML:h})}}]),e}(R.Component);Kt.displayName="FormattedHTMLMessage",Kt.contextTypes={intl:ht},Kt.defaultProps={values:{}},o(B),o(S.a)},92:function(t,e,n){"use strict";var o=n(32),r=n.n(o),i=n(9),a=n(286),s=n(19),c=n(8),l=(n.n(c),n(95)),u=(n.n(l),n(13)),d=function(){return Object(l.createSelector)([function(t,e){var n=e.type;return t.getIn(["settings",n],Object(c.Map)())},function(t,e){var n=e.type;return t.getIn(["timelines",n,"items"],Object(c.List)())},function(t){return t.get("statuses")}],function(t,e,n){var o=t.getIn(["regex","body"],"").trim(),r=null;try{r=o&&new RegExp(o,"i")}catch(t){}return e.filter(function(e){if(null===e)return!0;var o=n.get(e),i=!0;if(!1===t.getIn(["shows","reblog"])&&(i=i&&null===o.get("reblog")),!1===t.getIn(["shows","reply"])&&(i=i&&(null===o.get("in_reply_to_id")||o.get("in_reply_to_account_id")===u.i)),i&&r&&o.get("account")!==u.i){var a=o.get("reblog")?n.getIn([o.get("reblog"),"search_index"]):o.get("search_index");i=!r.test(a)}return i})})},f=function(){var t=d();return function(e,n){var o=n.timelineId;return{statusIds:t(e,{type:o}),isLoading:e.getIn(["timelines",o,"isLoading"],!0),isPartial:e.getIn(["timelines",o,"isPartial"],!1),hasMore:e.getIn(["timelines",o,"hasMore"])}}},h=function(t,e){var n=e.timelineId;return{onScrollToTop:r()(function(){t(Object(s.s)(n,!0))},100),onScroll:r()(function(){t(Object(s.s)(n,!1))},100)}};e.a=Object(i.connect)(f,h)(a.a)}},[330]);
|
|
//# sourceMappingURL=about.js.map
|