!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("tile",t):(e=e||self).tile=t()}(this,function(){"use strict";var e="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};e.setTimeout,e.clearTimeout;var t=e.performance||{};t.now||t.mozNow||t.msNow||t.oNow||t.webkitNow;function r(e,t){return e(t={exports:{}},t.exports),t.exports}var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;var i=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,i,u=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s2?r-2:0),o=2;o1?t-1:0),n=1;n2?r-2:0),o=2;o8)throw new Error("warningWithoutStack() currently supports at most 8 arguments.");if(!e){if("undefined"!=typeof console){var a=n.map(function(e){return""+e});a.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,a)}try{var i=0,u="Warning: "+t.replace(/%s/g,function(){return n[i++]});throw new Error(u)}catch(e){}}},O={};function P(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;O[o]||(j(!1,"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),O[o]=!0)}var R={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){P(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){P(e,"replaceState")},enqueueSetState:function(e,t,r,n){P(e,"setState")}},S={};function x(e,t,r){this.props=e,this.context=t,this.refs=S,this.updater=r||R}Object.freeze(S),x.prototype.isReactComponent={},x.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&C(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."),this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var E={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},N=function(e,t){Object.defineProperty(x.prototype,e,{get:function(){k(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var $ in E)E.hasOwnProperty($)&&N($,E[$]);function T(){}function A(e,t,r){this.props=e,this.context=t,this.refs=S,this.updater=r||R}T.prototype=x.prototype;var I=A.prototype=new T;I.constructor=A,t(I,x.prototype),I.isPureReactComponent=!0;var D={current:null},q={current:null},U=/^(.*)[\\\/]/,F=1;function M(e){if(null==e)return null;if("number"==typeof e.tag&&j(!1,"Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case p:return"ConcurrentMode";case u:return"Fragment";case a:return"Portal";case c:return"Profiler";case s:return"StrictMode";case y:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case f:return"Context.Consumer";case l:return"Context.Provider";case d:return n=e,o=e.render,i="ForwardRef",h=o.displayName||o.name||"",n.displayName||(""!==h?i+"("+h+")":i);case m:return M(e.type);case v:var t=(r=e)._status===F?r._result:null;if(t)return M(t)}var r,n,o,i,h;return null}var W={},z=null;function V(e){z=e}W.getCurrentStack=null,W.getStackAddendum=function(){var e="";if(z){var t=M(z.type),r=z._owner;e+=function(e,t,r){var n="";if(t){var o=t.fileName,a=o.replace(U,"");if(/^index\./.test(a)){var i=o.match(U);if(i){var u=i[1];u&&(a=u.replace(U,"")+"/"+a)}}n=" (at "+a+":"+t.lineNumber+")"}else r&&(n=" (created by "+r+")");return"\n in "+(e||"Unknown")+n}(t,z._source,r&&M(r.type))}var n=W.getCurrentStack;return n&&(e+=n()||""),e};var L={ReactCurrentDispatcher:D,ReactCurrentOwner:q,assign:t};t(L,{ReactDebugCurrentFrame:W,ReactComponentTreeHook:{}});var Y=function(e,t){if(!e){for(var r=L.ReactDebugCurrentFrame.getStackAddendum(),n=arguments.length,o=Array(n>2?n-2:0),a=2;a1){for(var l=Array(c),f=0;f.")}return t}(t);if(!ge[r]){ge[r]=!0;var n="";e&&e._owner&&e._owner!==q.current&&(n=" It was passed a child from "+M(e._owner.type)+"."),V(e),Y(!1,'Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',r,n),V(null)}}}function we(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,Y(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var c=Z.apply(this,arguments);if(null==c)return c;if(n)for(var l=2;l is not supported and will be removed in a future major release. Did you mean to render instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,Y(!1,"Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),r.Consumer}}}),r.Consumer=a,r._currentRenderer=null,r._currentRenderer2=null,r},forwardRef:function(e){return null!=e&&e.$$typeof===m?j(!1,"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?j(!1,"forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&j(!1,"forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null!=e.defaultProps||null!=e.propTypes)&&j(!1,"forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:d,render:e}},lazy:function(e){var t={$$typeof:v,_ctor:e,_status:-1,_result:null},r=void 0,n=void 0;return Object.defineProperties(t,{defaultProps:{configurable:!0,get:function(){return r},set:function(e){Y(!1,"React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(t,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){Y(!1,"React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=e,Object.defineProperty(t,"propTypes",{enumerable:!0})}}}),t},memo:function(e,t){return me(e)||j(!1,"memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:m,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return ve().useCallback(e,t)},useContext:function(e,t){var r=ve();if(void 0!==t&&Y(!1,"useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context){var n=e._context;n.Consumer===e?Y(!1,"Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&Y(!1,"Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return r.useContext(e,t)},useEffect:function(e,t){return ve().useEffect(e,t)},useImperativeHandle:function(e,t,r){return ve().useImperativeHandle(e,t,r)},useDebugValue:function(e,t){return ve().useDebugValue(e,t)},useLayoutEffect:function(e,t){return ve().useLayoutEffect(e,t)},useMemo:function(e,t){return ve().useMemo(e,t)},useReducer:function(e,t,r){return ve().useReducer(e,t,r)},useRef:function(e){return ve().useRef(e)},useState:function(e){return ve().useState(e)},Fragment:u,StrictMode:s,Suspense:y,createElement:ke,cloneElement:function(e,r,n){for(var o=function(e,r,n){null==e&&C(!1,"React.cloneElement(...): The argument must be a React element, but you passed %s.",e);var o=void 0,a=t({},e.props),i=e.key,u=e.ref,s=e._self,c=e._source,l=e._owner;if(null!=r){G(r)&&(u=r.ref,l=q.current),K(r)&&(i=""+r.key);var f=void 0;for(o in e.type&&e.type.defaultProps&&(f=e.type.defaultProps),r)H.call(r,o)&&!B.hasOwnProperty(o)&&(void 0===r[o]&&void 0!==f?a[o]=f[o]:a[o]=r[o])}var p=arguments.length-2;if(1===p)a.children=n;else if(p>1){for(var d=Array(p),y=0;y0){let t=1==this.props.data.invites?"Invite":"Invites";e.push(w.createElement("p",{key:1,__self:this,__source:{fileName:k,lineNumber:17}},w.createElement("span",{className:"green-medium",__self:this,__source:{fileName:k,lineNumber:18}},this.props.data.invites," "),w.createElement("span",{__self:this,__source:{fileName:k,lineNumber:19}},t)))}if(this.props.data.new>0){let t=1==this.props.data.new?"New Post":"New Posts";e.push(w.createElement("p",{key:2,__self:this,__source:{fileName:k,lineNumber:28}},w.createElement("span",{className:"green-medium",__self:this,__source:{fileName:k,lineNumber:29}},this.props.data.new," "),w.createElement("span",{__self:this,__source:{fileName:k,lineNumber:30}},t)))}return w.createElement("div",{className:"w-100 h-100 relative",style:{background:"#1a1a1a"},__self:this,__source:{fileName:k,lineNumber:36}},w.createElement("a",{className:"w-100 h-100 db no-underline",href:"/~publish",__self:this,__source:{fileName:k,lineNumber:37}},w.createElement("p",{className:"gray label-regular b absolute",style:{left:8,top:4},__self:this,__source:{fileName:k,lineNumber:38}},"Publish"),w.createElement("img",{className:"absolute",style:{left:60,top:66},src:"/~publish/tile.png",width:113,height:102,__self:this,__source:{fileName:k,lineNumber:42}}),w.createElement("div",{className:"absolute w-100 flex-col body-regular white",style:{verticalAlign:"bottom",bottom:8,left:8},__self:this,__source:{fileName:k,lineNumber:48}},e)))}}return window.publishTile=j,j});