From 451931d36fcf0bd953ce18d027a4fe4d7b354bc9 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Wed, 26 Jun 2019 21:06:28 +0200 Subject: Update mastofe to bundle-2019-06-26 --- priv/static/packs/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'priv/static/packs/common.js') diff --git a/priv/static/packs/common.js b/priv/static/packs/common.js index 7abac8be8..021c7d872 100644 --- a/priv/static/packs/common.js +++ b/priv/static/packs/common.js @@ -1,2 +1,2 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[,,,,,,,,function(e,a,t){"use strict";t.d(a,"a",function(){return i}),t.d(a,"f",function(){return n}),t.d(a,"c",function(){return o}),t.d(a,"e",function(){return s}),t.d(a,"g",function(){return r}),t.d(a,"d",function(){return l}),t.d(a,"b",function(){return _});var i=function(e){return"/"===e.charAt(0)?e:"/"+e},n=function(e){return"/"===e.charAt(0)?e.substr(1):e},o=function(e,a){return new RegExp("^"+a+"(\\/|\\?|#|$)","i").test(e)},s=function(e,a){return o(e,a)?e.substr(a.length):e},r=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},l=function(e){var a=e||"/",t="",i="",n=a.indexOf("#");-1!==n&&(i=a.substr(n),a=a.substr(0,n));var o=a.indexOf("?");return-1!==o&&(t=a.substr(o),a=a.substr(0,o)),{pathname:a,search:"?"===t?"":t,hash:"#"===i?"":i}},_=function(e){var a=e.pathname,t=e.search,i=e.hash,n=a||"/";return t&&"?"!==t&&(n+="?"===t.charAt(0)?t:"?"+t),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}},,,,,function(e,a,t){"use strict";e.exports=function(){}},,function(e,a,t){"use strict";t.d(a,"b",function(){return i}),t.d(a,"a",function(){return n}),t.d(a,"e",function(){return o}),t.d(a,"c",function(){return s}),t.d(a,"g",function(){return r}),t.d(a,"h",function(){return l}),t.d(a,"f",function(){return _}),t.d(a,"d",function(){return g});var i=!("undefined"==typeof window||!window.document||!window.document.createElement),n=function(e,a,t){return e.addEventListener?e.addEventListener(a,t,!1):e.attachEvent("on"+a,t)},o=function(e,a,t){return e.removeEventListener?e.removeEventListener(a,t,!1):e.detachEvent("on"+a,t)},s=function(e,a){return a(window.confirm(e))},r=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},l=function(){return-1===window.navigator.userAgent.indexOf("Trident")},_=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},g=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,a,t){"use strict";function f(e){return"/"===e.charAt(0)}function h(e,a){for(var t=a,i=t+1,n=e.length;ia?t.splice(a,t.length-a,i):t.push(i),_({action:"PUSH",location:i,index:a,entries:t})}})},replace:function(e,a){C()(!("object"===(void 0===e?"undefined":m(e))&&void 0!==e.state&&void 0!==a),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var t="REPLACE",i=Object(M.a)(e,a,g(),u.location);l.confirmTransitionTo(i,t,n,function(e){e&&(u.entries[u.index]=i,_({action:t,location:i}))})},go:h,goBack:function(){return h(-1)},goForward:function(){return h(1)},canGo:function(e){var a=u.index+e;return 0<=a&&a=i.length)return""===a?i.length:-1;if(""===a)return t;var n=a.match(l.default),o=!1,s=void 0;for(s=t;s>",r=o||t;if(null==a[t])return e?new Error("Required "+n+" `"+r+"` was not specified in `"+s+"`."):null;for(var l=arguments.length,_=Array(6e.get("votes_count")}),r=!!this.state.selected[""+e],l=i.get("voted")||i.get("expired"),_=a.get("title_emojified");if(!_){var g=i.get("emojis").reduce(function(e,a){return e[":"+a.get("shortcode")+":"]=a.toJS(),e},{});_=Object(O.default)(w()(a.get("title")),g)}return Object(c.a)("li",{},a.get("title"),l&&Object(c.a)(y.a,{defaultStyle:{width:0},style:{width:v()(o,{stiffness:180,damping:12})}},void 0,function(e){var a=e.width;return Object(c.a)("span",{className:F()("poll__chart",{leading:s}),style:{width:a+"%"}})}),Object(c.a)("label",{className:F()("poll__text",{selectable:!l})},void 0,Object(c.a)("input",{name:"vote-options",type:i.get("multiple")?"checkbox":"radio",value:e,checked:r,onChange:this.handleOptionChange,disabled:n}),!l&&Object(c.a)("span",{className:F()("poll__input",{checkbox:i.get("multiple"),active:r})}),l&&Object(c.a)("span",{className:"poll__number"},void 0,Math.round(o),"%"),Object(c.a)("span",{dangerouslySetInnerHTML:{__html:_}})))},a.render=function(){var t=this,e=this.props,a=e.poll,i=e.intl;if(!a)return null;var n,o,s,r,l=a.get("expired")?i.formatMessage(E.closed):(n=i,o=new Date(a.get("expires_at")),s=i.now(),(r=o.getTime()-s)<1e4?n.formatMessage(E.moments):r<6e4?n.formatMessage(E.seconds,{number:Math.floor(r/1e3)}):r<36e5?n.formatMessage(E.minutes,{number:Math.floor(r/6e4)}):r<864e5?n.formatMessage(E.hours,{number:Math.floor(r/36e5)}):n.formatMessage(E.days,{number:Math.floor(r/864e5)})),_=a.get("voted")||a.get("expired"),g=this.props.disabled||Object.entries(this.state.selected).every(function(e){return!e});return Object(c.a)("div",{className:"poll"},void 0,Object(c.a)("ul",{},void 0,a.get("options").map(function(e,a){return t.renderOption(e,a)})),Object(c.a)("div",{className:"poll__footer"},void 0,!_&&Object(c.a)("button",{className:"button button-secondary",disabled:g,onClick:this.handleVote},void 0,Object(c.a)(m.b,{id:"poll.vote",defaultMessage:"Vote"})),_&&!this.props.disabled&&Object(c.a)("span",{},void 0,Object(c.a)("button",{className:"poll__link",onClick:this.handleRefresh},void 0,Object(c.a)(m.b,{id:"poll.refresh",defaultMessage:"Refresh"}))," · "),Object(c.a)(m.b,{id:"poll.total_votes",defaultMessage:"{count, plural, one {# vote} other {# votes}}",values:{count:a.get("votes_count")}}),a.get("expires_at")&&Object(c.a)("span",{},void 0," · ",l)))},e}(u.a),Object(_.a)(n,"propTypes",{poll:h.a.map,intl:d.a.object.isRequired,dispatch:d.a.func,disabled:d.a.bool}),i=o))||i},,,,function(e,S,B){(function(h,u){var m;!function(e){S&&S.nodeType,h&&h.nodeType;var a="object"==typeof u&&u;a.global!==a&&a.window!==a&&a.self;var t,p=2147483647,F=36,b=1,y=26,n=38,o=700,k=72,v=128,j="-",i=/^xn--/,s=/[^\x20-\x7E]/,r=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=F-b,w=Math.floor,O=String.fromCharCode;function E(e){throw new RangeError(l[e])}function g(e,a){for(var t=e.length,i=[];t--;)i[t]=a(e[t]);return i}function c(e,a){var t=e.split("@"),i="";return 1>>10&1023|55296),e=56320|1023&e),a+=O(e)}).join("")}function x(e,a){return e+22+75*(e<26)-((0!=a)<<5)}function M(e,a,t){var i=0;for(e=t?w(e/o):e>>1,e+=w(e/a);_*y>>1w((p-h)/s))&&E("overflow"),h+=l*s,!(l<(_=r<=m?b:m+y<=r?y:r-m));r+=F)s>w(p/(g=F-_))&&E("overflow"),s*=g;m=M(h-o,a=d.length+1,0==o),w(h/a)>p-u&&E("overflow"),u+=w(h/a),h%=a,d.splice(h++,0,u)}return C(d)}function f(e){var a,t,i,n,o,s,r,l,_,g,c,d,f,h,u,m=[];for(d=(e=D(e)).length,a=v,o=k,s=t=0;sw((p-t)/(f=i+1))&&E("overflow"),t+=(r-a)*f,a=r,s=0;sp&&E("overflow"),c==a){for(l=t,_=F;!(l<(g=_<=o?b:o+y<=_?y:_-o));_+=F)u=l-g,h=F-g,m.push(O(x(g+u%h,0))),l=w(u/h);m.push(O(x(l,0))),o=M(t,f,i==n),t=0,++i}++t,++a}return m.join("")}t={version:"1.4.1",ucs2:{decode:D,encode:C},decode:d,encode:f,toASCII:function(e){return c(e,function(e){return s.test(e)?"xn--"+f(e):e})},toUnicode:function(e){return c(e,function(e){return i.test(e)?d(e.slice(4).toLowerCase()):e})}},void 0===(m=function(){return t}.call(S,B,S,h))||(h.exports=m)}()}).call(this,B(236)(e),B(55))},,,,function(e,a,t){"use strict";var i=t(2),r=t.n(i),n=t(5),o=t.n(n),s=t(19),l=t.n(s),_=t(83),g=Object.assign||function(e){for(var a=1;a outside a "),l()(void 0!==a,'You must specify the "to" property');var n=this.context.router.history,o="string"==typeof a?Object(_.createLocation)(a,null,null,n.location):a,s=n.createHref(o);return r.a.createElement("a",g({},i,{onClick:this.handleClick,href:s,ref:t}))},o}(r.a.Component);d.defaultProps={replace:!1},d.contextTypes={router:o.a.shape({history:o.a.shape({push:o.a.func.isRequired,replace:o.a.func.isRequired,createHref:o.a.func.isRequired}).isRequired}).isRequired},a.a=d},,,,function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var o=Object.assign||function(e){for(var a=1;athis.startX&&(this.setState({checked:!0}),this.startX=a,this.activated=at?this.previouslyChecked!==this.state.checked&&(this.setState({checked:!1}),this.previouslyChecked=this.state.checked,a.click()):this.startX-4 or withRouter() outside a ");var l=a.route,_=(i||l.location).pathname;return Object(d.a)(_,{path:n,strict:o,exact:s,sensitive:r},l.match)},s.prototype.componentWillMount=function(){n()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),n()(!(this.props.component&&this.props.children&&!h(this.props.children)),"You should not use and in the same route; will be ignored"),n()(!(this.props.render&&this.props.children&&!h(this.props.children)),"You should not use and in the same route; will be ignored")},s.prototype.componentWillReceiveProps=function(e,a){n()(!(e.location&&!this.props.location),' 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.'),n()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,a.router)})},s.prototype.render=function(){var e=this.state.match,a=this.props,t=a.children,i=a.component,n=a.render,o=this.context.router,s=o.history,r=o.route,l=o.staticContext,_={match:e,location:this.props.location||r.location,history:s,staticContext:l};return i?e?c.a.createElement(i,_):null:n?e?n(_):null:"function"==typeof t?t(_):t&&!h(t)?c.a.Children.only(t):null},s}(c.a.Component);u.contextTypes={router:l.a.shape({history:l.a.object.isRequired,route:l.a.object.isRequired,staticContext:l.a.object})},u.childContextTypes={router:l.a.object.isRequired},a.a=u},function(e,a,t){"use strict";var i=t(369),p=t.n(i),F={},b=0;a.a=function(e){var a=1t&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},i.prototype.once=function(e,a){if(!l(a))throw TypeError("listener must be a function");var t=!1;function i(){this.removeListener(e,i),t||(t=!0,a.apply(this,arguments))}return i.listener=a,this.on(e,i),this},i.prototype.removeListener=function(e,a){var t,i,n,o;if(!l(a))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=(t=this._events[e]).length,i=-1,t===a||l(t.listener)&&t.listener===a)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,a);else if(_(t)){for(o=n;0a.get("height")&&a.get("width")+100>=o||"link"!==a.get("type")||s,h="link"!==a.get("type"),u=E()("status-card",{horizontal:f,compact:i,interactive:h}),m=h?Object(j.a)("a",{className:"status-card__title",href:a.get("url"),title:a.get("title"),rel:"noopener",target:"_blank"},void 0,Object(j.a)("strong",{},void 0,a.get("title"))):Object(j.a)("strong",{className:"status-card__title",title:a.get("title")},void 0,a.get("title")),p=a.get("width")/a.get("height"),F=i&&!s?o/(16/9):o/p,b=Object(j.a)("div",{className:"status-card__content"},void 0,m,!(f||i)&&Object(j.a)("p",{className:"status-card__description"},void 0,(_=a.get("description")||"",g=t,-1===(c=_.indexOf(" ",g))?_:_.substring(0,c)+(_.length>g?"…":""))),Object(j.a)("span",{className:"status-card__host"},void 0,d)),y="",k=Object(j.a)("div",{style:{backgroundImage:"url("+a.get("image")+")",width:f?o:null,height:f?F:null},className:"status-card__image-image"});if(h){if(s)y=this.renderVideo();else{var v="play";"photo"===a.get("type")&&(v="search-plus"),y=Object(j.a)("div",{className:"status-card__image"},void 0,k,Object(j.a)("div",{className:"status-card__actions"},void 0,Object(j.a)("div",{},void 0,Object(j.a)("button",{onClick:this.handleEmbedClick},void 0,Object(j.a)("i",{className:"fa fa-"+v})),f&&Object(j.a)("a",{href:a.get("url"),target:"_blank",rel:"noopener"},void 0,Object(j.a)("i",{className:"fa fa-external-link"})))))}return w.a.createElement("div",{className:u,ref:this.setRef},y,!i&&b)}return y=a.get("image")?Object(j.a)("div",{className:"status-card__image"},void 0,k):Object(j.a)("div",{className:"status-card__image"},void 0,Object(j.a)("i",{className:"fa fa-file-text"})),w.a.createElement("a",{href:a.get("url"),className:u,target:"_blank",rel:"noopener",ref:this.setRef},y,b)},e}(w.a.PureComponent);Object(s.a)(d,"defaultProps",{maxDescription:50,compact:!1})},function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i,n=t(2),o=(i=n)&&i.__esModule?i:{default:i};a.default=function(){return o.default.createElement("svg",{width:"14",height:"11",viewBox:"0 0 14 11"},o.default.createElement("title",null,"switch-check"),o.default.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}))}},function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i,n=t(2),o=(i=n)&&i.__esModule?i:{default:i};a.default=function(){return o.default.createElement("svg",{width:"10",height:"10",viewBox:"0 0 10 10"},o.default.createElement("title",null,"switch-x"),o.default.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"}))}},function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.pointerCoord=function(e){if(e){var a=e.changedTouches;if(a&&0a.get("height")&&a.get("width")+100>=o||"link"!==a.get("type")||s,h="link"!==a.get("type"),u=E()("status-card",{horizontal:f,compact:i,interactive:h}),m=h?Object(j.a)("a",{className:"status-card__title",href:a.get("url"),title:a.get("title"),rel:"noopener",target:"_blank"},void 0,Object(j.a)("strong",{},void 0,a.get("title"))):Object(j.a)("strong",{className:"status-card__title",title:a.get("title")},void 0,a.get("title")),p=a.get("width")/a.get("height"),F=i&&!s?o/(16/9):o/p,b=Object(j.a)("div",{className:"status-card__content"},void 0,m,!(f||i)&&Object(j.a)("p",{className:"status-card__description"},void 0,(_=a.get("description")||"",g=t,-1===(c=_.indexOf(" ",g))?_:_.substring(0,c)+(_.length>g?"…":""))),Object(j.a)("span",{className:"status-card__host"},void 0,d)),y="",k=Object(j.a)("div",{style:{backgroundImage:"url("+a.get("image")+")",width:f?o:null,height:f?F:null},className:"status-card__image-image"});if(h){if(s)y=this.renderVideo();else{var v="play";"photo"===a.get("type")&&(v="search-plus"),y=Object(j.a)("div",{className:"status-card__image"},void 0,k,Object(j.a)("div",{className:"status-card__actions"},void 0,Object(j.a)("div",{},void 0,Object(j.a)("button",{onClick:this.handleEmbedClick},void 0,Object(j.a)(D.a,{id:v})),f&&Object(j.a)("a",{href:a.get("url"),target:"_blank",rel:"noopener"},void 0,Object(j.a)(D.a,{id:"external-link"})))))}return w.a.createElement("div",{className:u,ref:this.setRef},y,!i&&b)}return y=a.get("image")?Object(j.a)("div",{className:"status-card__image"},void 0,k):Object(j.a)("div",{className:"status-card__image"},void 0,Object(j.a)(D.a,{id:"file-text"})),w.a.createElement("a",{href:a.get("url"),className:u,target:"_blank",rel:"noopener",ref:this.setRef},y,b)},e}(w.a.PureComponent);Object(s.a)(d,"defaultProps",{maxDescription:50,compact:!1})},function(e,a,t){"use strict";t.d(a,"a",function(){return h});var i,n,o,r=t(0),s=t(7),l=t(1),_=(t(2),t(5)),g=t.n(_),c=t(6),d=t(25),f=Object(c.f)({public:{id:"privacy.public.short",defaultMessage:"Public"},unlisted:{id:"privacy.unlisted.short",defaultMessage:"Unlisted"},private:{id:"privacy.private.short",defaultMessage:"Followers-only"},direct:{id:"privacy.direct.short",defaultMessage:"Direct"}}),h=Object(c.g)((o=n=function(e){function a(){return e.apply(this,arguments)||this}return Object(s.a)(a,e),a.prototype.render=function(){var e=this.props,a=e.withLabel,t=e.visibility,i=e.intl,n={public:"globe",unlisted:"unlock",private:"lock",direct:"envelope"}[t],o=i.formatMessage(f[t]),s=Object(r.a)("i",{className:"status__visibility-icon fa fa-fw fa-"+n,title:o,"aria-hidden":"true"});return a?Object(r.a)("span",{style:{whiteSpace:"nowrap"}},void 0,s," ",o):s},a}(d.a),Object(l.a)(n,"propTypes",{visibility:g.a.string,intl:g.a.object.isRequired,withLabel:g.a.bool}),i=o))||i},function(e,a,t){"use strict";function i(){this.length=0}i.prototype.push=function(e){var a={item:e};this.last?this.last=this.last.next=a:this.last=this.first=a,this.length++},i.prototype.shift=function(){var e=this.first;if(e)return this.first=e.next,--this.length||(this.last=void 0),e.item},i.prototype.slice=function(e,a){e=void 0===e?0:e,a=void 0===a?1/0:a;for(var t=[],i=0,n=this.first;n&&!(--a<0);n=n.next)++i>e&&t.push(n.item);return t},e.exports=i},function(e,a,t){"use strict";var i=t(24),n=t(350);a.a=Object(i.connect)(function(e,a){var t=a.pollId;return{poll:e.getIn(["polls",t])}})(n.a)},function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=function(){function i(e,a){for(var t=0;t":".","?":"/","|":"\\"},l={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},s=1;s<20;++s)o[111+s]="f"+s;for(s=0;s<=9;++s)o[s+96]=s.toString();v.prototype.bind=function(e,a,t){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,a,t),this},v.prototype.unbind=function(e,a){return this.bind.call(this,e,function(){},a)},v.prototype.trigger=function(e,a){return this._directMap[e+":"+a]&&this._directMap[e+":"+a]({},e),this},v.prototype.reset=function(){return this._callbacks={},this._directMap={},this},v.prototype.stopCallback=function(e,a){return!(-1<(" "+a.className+" ").indexOf(" mousetrap "))&&(!function e(a,t){return null!==a&&a!==i&&(a===t||e(a.parentNode,t))}(a,this.target)&&("INPUT"==a.tagName||"SELECT"==a.tagName||"TEXTAREA"==a.tagName||a.isContentEditable))},v.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},v.addKeycodes=function(e){for(var a in e)e.hasOwnProperty(a)&&(o[a]=e[a]);n=null},v.init=function(){var a=v(i);for(var e in a)"_"!==e.charAt(0)&&(v[e]=function(e){return function(){return a[e].apply(a,arguments)}}(e))},v.init(),e.Mousetrap=v,g.exports&&(g.exports=v),void 0===(f=function(){return v}.call(c,d,c,g))||(g.exports=f)}function F(e,a,t){e.addEventListener?e.addEventListener(a,t,!1):e.attachEvent("on"+a,t)}function b(e){if("keypress"!=e.type)return o[e.which]?o[e.which]:t[e.which]?t[e.which]:String.fromCharCode(e.which).toLowerCase();var a=String.fromCharCode(e.which);return e.shiftKey||(a=a.toLowerCase()),a}function y(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function _(e,a,t){return t||(t=function(){if(!n)for(var e in n={},o)95(t.get("media_attachments").size&&!o?650:400):case r.get("reblogs")&&"reblogged_by"===s:case r.get("replies")&&null!==t.get("in_reply_to_id",null):case r.get("media")&&!t.get("spoiler_text").length&&!!t.get("media_attachments").size:return!0;default:return!1}})()&&(this.setCollapsed(!0),this.setState({autoCollapsed:!0})),this.didShowCard=!this.props.muted&&!this.props.hidden&&this.props.status&&this.props.status.get("card")&&this.props.settings.get("inline_preview_cards")}},a.getSnapshotBeforeUpdate=function(e,a){return this.props.getScrollPosition?this.props.getScrollPosition():null},a.componentDidUpdate=function(e,a,t){var i=!this.props.muted&&!this.props.hidden&&this.props.status&&this.props.status.get("card")&&this.props.settings.get("inline_preview_cards");(this.state.autoCollapsed||i&&!this.didShowCard)&&(i&&(this.didShowCard=!0),this.state.autoCollapsed&&this.setState({autoCollapsed:!1}),null!==t&&this.props.updateScrollBottom&&this.node.offsetTop>10),a=s%1024+56320,t.push(e,a)),(i+1===n||16384',custom:'',flags:'',foods:'',nature:'',objects:'',people:'',places:'',recent:'',symbols:''},B=function(e){function i(e){m()(this,i);var a=p(this,(i.__proto__||u(i)).call(this,e)),t=e.categories.filter(function(e){return e.first})[0];return a.state={selected:t.name},a.handleClick=a.handleClick.bind(a),a}return r(i,j.a.PureComponent),o(i,[{key:"getSVG",value:function(e){if(this.SVGs||(this.SVGs={}),this.SVGs[e])return this.SVGs[e];var a='\n '+S[e]+"\n ";return this.SVGs[e]=a}},{key:"handleClick",value:function(e){var a=e.currentTarget.getAttribute("data-index"),t=this.props,i=t.categories;(0,t.onAnchorClick)(i[a],a)}},{key:"render",value:function(){var s=this,e=this.props,a=e.categories,r=(e.onAnchorClick,e.color),l=e.i18n,_=this.state.selected;return j.a.createElement("div",{className:"emoji-mart-anchors"},a.map(function(e,a){var t=e.id,i=e.name,n=e.anchor,o=i==_;return!1===n?null:j.a.createElement("span",{key:t,title:l.categories[t],"data-index":a,onClick:s.handleClick,className:"emoji-mart-anchor "+(o?"emoji-mart-anchor-selected":""),style:{color:o?r:null}},j.a.createElement("div",{dangerouslySetInnerHTML:{__html:s.getSVG(t)}}),j.a.createElement("span",{className:"emoji-mart-anchor-bar",style:{backgroundColor:r}}))}))}}]),i}(),q=B;B.defaultProps={categories:[],onAnchorClick:function(){}};var A=function(e){function t(e){m()(this,t);var a=p(this,(t.__proto__||u(t)).call(this,e));return a.data=e.data,a.setContainerRef=a.setContainerRef.bind(a),a.setLabelRef=a.setLabelRef.bind(a),a}return r(t,j.a.Component),o(t,[{key:"componentDidMount",value:function(){this.parent=this.container.parentNode,this.margin=0,this.minMargin=0,this.memoizeSize()}},{key:"shouldComponentUpdate",value:function(e,a){var t=this.props,i=t.name,n=t.perLine,o=t.native,s=t.hasStickyPosition,r=t.emojis,l=t.emojiProps,_=l.skin,g=l.size,c=l.set,d=e.perLine,f=e.native,h=e.hasStickyPosition,u=e.emojis,m=e.emojiProps,p=m.skin,F=m.size,b=m.set,y=!1;return"Recent"==i&&n!=d&&(y=!0),"Search"==i&&(y=!(r==u)),_==p&&g==F&&o==f&&c==b&&s==h||(y=!0),y}},{key:"memoizeSize",value:function(){var e=this.container.getBoundingClientRect(),a=e.top,t=e.height,i=this.parent.getBoundingClientRect().top,n=this.label.getBoundingClientRect().height;this.top=a-i+this.parent.scrollTop,this.maxMargin=0==t?0:t-n}},{key:"handleScroll",value:function(e){var a=e-this.top;if((a=(a=athis.maxMargin?this.maxMargin:a)!=this.margin)return this.props.hasStickyPosition||(this.label.style.top=a+"px"),this.margin=a,!0}},{key:"getEmojis",value:function(){var a=this,e=this.props,t=e.name,i=e.emojis,n=e.recent,o=e.perLine;if("Recent"==t){var s=this.props.custom,r=n||D.get(o);if(r.length&&(i=r.map(function(a){var e=s.filter(function(e){return e.id===a})[0];return e||a}).filter(function(e){return!!Object(C.b)(e,null,null,a.data)})),0===i.length&&0i&&(l=l.slice(0,i))),l}}]),a}(),N=function(e){function t(e){m()(this,t);var a=p(this,(t.__proto__||u(t)).call(this,e));return a.data=e.data,a.emojiIndex=new I(a.data),a.setRef=a.setRef.bind(a),a.handleChange=a.handleChange.bind(a),a}return r(t,j.a.PureComponent),o(t,[{key:"handleChange",value:function(){var e=this.input.value;this.props.onSearch(this.emojiIndex.search(e,{emojisToShowFilter:this.props.emojisToShowFilter,maxResults:this.props.maxResults,include:this.props.include,exclude:this.props.exclude,custom:this.props.custom}))}},{key:"setRef",value:function(e){this.input=e}},{key:"clear",value:function(){this.input.value=""}},{key:"render",value:function(){var e=this.props,a=e.i18n,t=e.autoFocus;return j.a.createElement("div",{className:"emoji-mart-search"},j.a.createElement("input",{ref:this.setRef,type:"text",onChange:this.handleChange,placeholder:a.search,autoFocus:t}))}}]),t}(),L=N;N.defaultProps={onSearch:function(){},maxResults:75,emojisToShowFilter:null,autoFocus:!1};var H=function(e){function t(e){m()(this,t);var a=p(this,(t.__proto__||u(t)).call(this,e));return a.state={opened:!1},a.handleClick=a.handleClick.bind(a),a}return r(t,j.a.PureComponent),o(t,[{key:"handleClick",value:function(e){var a=parseInt(e.currentTarget.getAttribute("data-skin")),t=this.props.onChange;this.state.opened?(this.setState({opened:!1}),a!=this.props.skin&&t(a)):this.setState({opened:!0})}},{key:"render",value:function(){for(var e=this.props.skin,a=this.state.opened,t=[],i=0;i<6;i++){var n=i+1,o=n==e;t.push(j.a.createElement("span",{key:"skin-tone-"+n,className:"emoji-mart-skin-swatch "+(o?"emoji-mart-skin-swatch-selected":"")},j.a.createElement("span",{onClick:this.handleClick,"data-skin":n,className:"emoji-mart-skin emoji-mart-skin-tone-"+n})))}return j.a.createElement("div",null,j.a.createElement("div",{className:"emoji-mart-skin-swatches "+(a?"emoji-mart-skin-swatches-opened":"")},t))}}]),t}(),W=H;H.defaultProps={onChange:function(){}};t(893);var z=t(920),U={search:"Search",notfound:"No Emoji Found",categories:{search:"Search Results",recent:"Frequently Used",people:"Smileys & People",nature:"Animals & Nature",foods:"Food & Drink",activity:"Activity",places:"Travel & Places",objects:"Objects",symbols:"Symbols",flags:"Flags",custom:"Custom"}},V=function(e){function h(t){m()(this,h);var e=p(this,(h.__proto__||u(h)).call(this,t));e.RECENT_CATEGORY={id:"recent",name:"Recent",emojis:null},e.CUSTOM_CATEGORY={id:"custom",name:"Custom",emojis:[]},e.SEARCH_CATEGORY={id:"search",name:"Search",emojis:null,anchor:!1},t.data.compressed&&Object(x.uncompress)(t.data),e.data=t.data,e.i18n=Object(C.a)(U,t.i18n),e.state={skin:t.skin||b.get("skin")||t.defaultSkin,firstRender:!0},e.categories=[];var a=[].concat(e.data.categories);0t.include.indexOf(a.id)?1:-1});for(var i=0;i(this.scrollTop||0),i=0,n=0,o=this.categories.length;n=this.scrollHeight&&(e=this.categories[this.categories.length-1])}if(e){var g=this.anchors,c=e.name;g.state.selected!=c&&g.setState({selected:c})}this.scrollTop=a}}},{key:"handleSearch",value:function(e){this.SEARCH_CATEGORY.emojis=e;for(var a=0,t=this.categories.length;a