configs/walls/Reddit.48b4f2676c5cb460c8a2.js
2019-03-12 13:36:46 -05:00

16 lines
567 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([["Reddit"],{"./src/app/components/Portal/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return i});var n=o("./node_modules/react/index.js"),r=o("./node_modules/react-dom/index.js");class i extends n.PureComponent{render(){var e=this.props;const t=e.children,o=e.container;return Object(r.createPortal)(t,o||document.body)}}},"./src/app/components/StyledHtml/index.less":function(e,t,o){},"./src/app/components/StyledHtml/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return a});o("./node_modules/react/index.js"),o("./src/app/components/StyledHtml/index.less");var n,r=o("./src/config.ts"),i=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const s=e=>e.replace(new RegExp('href="/u',"gi"),`target="_blank" href="${r.a.redditUrl}/u`).replace(new RegExp('href="/r',"gi"),`target="_blank" href="${r.a.redditUrl}/r`);function a({html:e}){return i("div",{className:"StyledHtml",dangerouslySetInnerHTML:{__html:s(e)}})}},"./src/chat/actions/promo/checkPromoInLocalStorage.ts":function(e,t,o){"use strict";var n=o("./src/lib/cache/index.ts"),r=o("./src/chat/constants/promos.ts"),i=o("./src/chat/models/Promo/index.ts");t.a=(e=>{const t=Object(n.b)(r.a)||[];return e=(e=>{switch(e){case i.c.LegacySubredditChatFtux:return i.a.SubredditChatFtux;case i.c.LegacyNSFWWarning:return i.b.NSFWWarning;default:return e}})(e),t.includes(e)})},"./src/chat/constants/promos.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return n});const n="chat.promo"},"./src/chat/helpers/dom.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return n}),o.d(t,"b",function(){return r});const n=e=>t=>{if(t.preventDefault(),e&&"function"==typeof e)return e(t)},r=e=>t=>{if(t.preventDefault(),t.stopPropagation(),e&&"function"==typeof e)return e(t)}},"./src/higherOrderComponents/addOverlayEvents.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return n}),o.d(t,"b",function(){return u});var n,r=o("./node_modules/lodash/debounce.js"),i=o.n(r),s=o("./node_modules/react/index.js"),a=o.n(s),d=o("./node_modules/react-redux/es/index.js"),c=o("./src/app/actions/overlayEvents.ts"),l=o("./src/lib/constants/index.ts");function u(e,t){return Object(d.connect)(null,e=>({onKeyDown:t=>e(c.d({event:t})),onMouseClick:t=>e(c.e({event:t})),onResize:t=>e(c.f({event:t}))}))(class extends s.Component{constructor(e){super(e),this.handleKeyDown=(e=>{e.keyCode===l.J&&this.props.onKeyDown(e)}),this.handleMouseClick=(e=>{this.props.onMouseClick(e)}),this.handleResize=i()(e=>{this.props.onResize(e)},250,{leading:!0})}componentDidMount(){t&&-1!==t.indexOf(n.Keydown)||document.addEventListener("keydown",this.handleKeyDown),t&&-1!==t.indexOf(n.Click)||document.addEventListener("click",this.handleMouseClick),t&&-1!==t.indexOf(n.Resize)||window.addEventListener("resize",this.handleResize)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("click",this.handleMouseClick),window.removeEventListener("resize",this.handleResize)}render(){return a.a.createElement(e,this.props)}})}!function(e){e.Click="click",e.Keydown="keydown",e.Resize="resize"}(n||(n={}))},"./src/higherOrderComponents/asModal.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),r=o.n(n),i=o("./bundled-modules/styled-components/styled-components.min.js"),s=o.n(i),a=o("./src/app/components/Portal/index.tsx"),d=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(o.push(s.value),!t||o.length!==t);n=!0);}catch(d){r=!0,i=d}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();const c=['input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])","a[href]","button:not([disabled])",'[tabindex]:not([tabindex="-1"]):not([disabled])',"audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join();class l{constructor(e){this.active=!1,this.onKeyDown=(e=>{if("Tab"===e.key||9===e.keyCode){var t=this.getTabbableNodes(),o=d(t,2);const n=o[0],r=o[1];if(!n||!r)return;e.shiftKey&&e.target===n?(e.preventDefault(),this.tryToFocusNode(r)):e.shiftKey||e.target!==r||(e.preventDefault(),this.tryToFocusNode(n))}}),this.container=e}activate(){this.active||(this.active=!0,document.addEventListener("keydown",this.onKeyDown,!0))}deactivate(){this.active&&(document.removeEventListener("keydown",this.onKeyDown,!0),this.active=!1)}getTabbableNodes(){const e=this.container.querySelectorAll(c);return[e[0],e[e.length-1]]}tryToFocusNode(e){e!==document.activeElement&&e.focus&&e.focus()}}var u=o("./src/reddit/actions/shortcuts.ts"),p=o("./src/reddit/constants/colors.ts"),m=o("./src/reddit/constants/shortcuts.ts"),f=o("./src/reddit/constants/zIndex.ts"),h=o("./src/reddit/helpers/toggleBodyScroll/index.ts"),g=o("./src/reddit/models/Theme/NewColorSystem/index.ts");o.d(t,"a",function(){return O});var b,v=(b="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var s in r)void 0===t[s]&&(t[s]=r[s]);else t||(t=r||{});if(1===i)t.children=n;else if(i>1){for(var a=Array(i),d=0;d<i;d++)a[d]=arguments[d+3];t.children=a}return{$$typeof:b,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),y=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};const x=s()(e=>{e.isVisible,e.customStyles;var t=y(e,["isVisible","customStyles"]);return r.a.createElement("div",t)}).withConfig({componentId:"s1lp36p8-0"})(["align-items: center;",";box-sizing: border-box;display: flex;height: 100%;overflow: auto;padding: 20px 30px;// since the Redesign header is now on the front side\n// (by z-index) it overlaps the current Overlay\npadding-top: 75px;",";position: fixed;top: 0;width: 100%;z-index: ",";",""],e=>e.isVisible?`background-color: ${p.a.overlayBackground}`:"",e=>e.isVisible?"":"pointer-events: none",f.l,e=>e.customStyles?e.customStyles:"");function O(e){return s()(class extends n.Component{constructor(e){super(e),this.getRef=(e=>this.ref=e),this.onClick=(e=>e.stopPropagation()),this.onOverlayClick=(e=>{this.props.onOverlayClick&&this.props.onOverlayClick(),e.stopPropagation()}),this.state={mounted:!1}}componentDidMount(){this.props.ignoreDefaultFocus||this.ref&&this.ref.focus(),this.setState({mounted:!0}),Object(h.a)(),this.ref&&(this.focusTrap=new l(this.ref),this.focusTrap.activate())}componentWillUnmount(){this.setState({mounted:!1}),Object(h.b)(),Object(u.r)(),this.focusTrap&&this.focusTrap.deactivate()}render(){const t=this.props,o=t.className,n=(t.ignoreDefaultFocus,t.onOverlayClick,t.overlayCustomStyles),i=t.withOverlay,s=y(t,["className","ignoreDefaultFocus","onOverlayClick","overlayCustomStyles","withOverlay"]);return v(a.a,{container:document.getElementById(m.b)},void 0,v(x,{isVisible:i,onClick:this.onOverlayClick,customStyles:n},void 0,r.a.createElement("div",{"aria-modal":!0,className:o,onClick:this.onClick,ref:this.getRef,role:"dialog",tabIndex:-1},r.a.createElement(e,s))))}}).withConfig({componentId:"s1lp36p8-1"})(["background-color: ",";border: 1px solid ",";border-radius: 4px;box-shadow: 0 2px 20px 0 rgba(0,0,0,0.3);margin: auto;pointer-events: initial;z-index: ",";&:focus {{ /*** Since modals obviously have the users current focus its not necessary to highlight them*/}outline: none;}"],e=>Object(g.c)(e).body,e=>Object(g.c)(e).line,f.l)}},"./src/higherOrderComponents/asTooltip.tsx":function(e,t,o){"use strict";var n=o("./node_modules/lodash/omit.js"),r=o.n(n),i=o("./node_modules/react/index.js"),s=o.n(i),a=o("./src/lib/fastdom/index.ts"),d=o("./src/app/components/Portal/index.tsx"),c=o("./src/higherOrderComponents/addOverlayEvents.tsx"),l=o("./src/higherOrderComponents/sizeMe.tsx"),u=o("./bundled-modules/styled-components/styled-components.min.js"),p=o.n(u).a.div.withConfig({componentId:"s1ksf9tn-0"})(["display: none;"]);o.d(t,"a",function(){return x});var m,f=(m="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var s in r)void 0===t[s]&&(t[s]=r[s]);else t||(t=r||{});if(1===i)t.children=n;else if(i>1){for(var a=Array(i),d=0;d<i;d++)a[d]=arguments[d+3];t.children=a}return{$$typeof:m,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},g=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(o.push(s.value),!t||o.length!==t);n=!0);}catch(d){r=!0,i=d}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();const b=["left","bottom"],v=["left","top"],y=({container:e,excludeContainerPosition:t,isFixed:o,targetBox:n,isOverlayOff:r,targetPosition:i,tooltipSize:s,tooltipPosition:a})=>{const d=document.body,c=d.clientTop||0,l=d.clientLeft||0;var u=e?[e.scrollLeft,e.scrollTop,e.scrollWidth,e.scrollHeight]:[window.pageXOffset,window.pageYOffset,window.innerWidth,document.body.scrollHeight],p=g(u,4);const m=p[0],f=p[1],h=p[2],b=p[3],v={bottom:n.bottom,center:n.top+n.height/2,top:n.top}[i[1]]+{bottom:-s.height,center:-s.height/2,top:0}[a[1]],y={left:n.left,center:n.left+n.width/2,right:n.right}[i[0]]+{left:0,center:-s.width/2,right:-s.width}[a[0]];let x,O;o?(x=n.bottom-c,O=n.left-l):(O=m+l+y,x=f+c+v);const C={left:O,top:x},w={bottom:Math.max(0,x+s.height-b),left:Math.max(0,0-O),right:Math.max(0,O+s.width-h),top:Math.max(0,0-x)};if(h>320&&b>667&&!r&&(Boolean(w.left)!==Boolean(w.right)&&(w.left?C.left=0:C.left-=w.right),Boolean(w.top)!==Boolean(w.bottom)&&(w.top?C.top=0:C.top-=w.bottom)),t&&e){const t=e.getBoundingClientRect();C.top=C.top-t.top,C.left=C.left-t.left}return{overflow:w,style:C}};function x(e,t){const o=Object(c.b)(e,t),n=Object(l.a)(e=>{const t=e.container,n=e.domEl,i=e.excludeContainerPosition,a=e.isFixed,d=e.target,c=e.isOverlayOff,l=e.targetPosition,u=e.tooltipPosition;if(!d||!n)return null;const p=n.getBoundingClientRect(),m=d.getBoundingClientRect(),f=y({container:t,excludeContainerPosition:i,isOverlayOff:c,isFixed:!!a,targetBox:m,targetPosition:l||b,tooltipSize:{height:p.height,width:p.width},tooltipPosition:u||v}),g=r()(e,"target","targetPosition","tooltipPosition"),x=e.style?Object.assign({},f.style,e.style):f.style;return s.a.createElement(o,h({},g,{overflow:f.overflow,style:x,targetBox:m}))});return class extends i.Component{constructor(e){super(e),this.state={mounted:!1},this.target=null}componentDidMount(){this.target=this.props.tooltipTarget||document.getElementById(this.props.tooltipId),this.props.isOpen&&a.a.write(()=>{this.setState({mounted:!0})})}componentDidUpdate(){this.target=this.props.tooltipTarget||document.getElementById(this.props.tooltipId)}render(){if(!this.props.isOpen)return this.props.renderContentsHidden?f(p,{},void 0,this.props.children):null;var e=this.props;const t=e.isOpen,o=e.tooltipId,i=e.tooltipTarget,a=this.state.mounted,c=r()(this.props,"isOpen"),l=o?this.target:i,u=`${t}-${a}-${o||""}`;return f(d.a,{container:this.props.container},u,s.a.createElement(n,h({},c,{target:l})))}}}},"./src/higherOrderComponents/sizeMe.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/lodash/omit.js"),i=o.n(r),s=o("./node_modules/react/index.js"),a=o.n(s),d=o("./node_modules/react-dom/index.js"),c=o.n(d),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},u=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});function p(e){return e.displayName||e.name||"Component"}class m extends s.Component{render(){return s.Children.only(this.props.children)}}m.displayName="SizeMeReferenceWrapper";const f=({style:e})=>{const t={style:e||{width:"100%",height:"100%"}};return a.a.createElement("div",t)};f.displayName="SizeMePlaceholder",t.a=function(e){const t=function(e){const t=t=>{const o=t.domEl,n=t.explicitRef,r=t.placeholder,s=t.size,d=t.style,c=i()(t,"explicitRef","size","style"),p="object"!=typeof s||"number"!=typeof s.width&&"number"!=typeof s.height,h={domEl:o,style:d};"object"==typeof s&&(h.size=s);const g=p&&!1!==r?u(f,{style:d}):a.a.createElement(e,l({},h,c));return a.a.createElement(m,{ref:n},g)};return t.displayName=`SizeMeRenderer(${p(e)})`,t}(e);class o extends a.a.Component{constructor(){super(...arguments),this.state={width:void 0,height:void 0},this.refCallback=(e=>{this.reactInst=e}),this.hasSizeChanged=((e,t)=>{const o=e,n=t;return Number(o.height).toFixed(0)!==Number(n.height).toFixed(0)||Number(o.width).toFixed(0)!==Number(n.width).toFixed(0)}),this.checkIfSizeChanged=(e=>{var t=e.getBoundingClientRect();const o={width:t.width,height:t.height};this.hasSizeChanged(this.state,o)&&this.setState(o)})}componentDidMount(){this.handleDOMNode()}componentDidUpdate(){this.handleDOMNode()}componentWillUnmount(){this.hasSizeChanged=(()=>!1),this.checkIfSizeChanged=(e=>void 0),this.domEl&&(this.domEl=null)}handleDOMNode(){const e=this.reactInst&&c.a.findDOMNode(this.reactInst);e?(this.domEl=e,this.checkIfSizeChanged(this.domEl)):this.domEl&&(this.domEl=null)}render(){const e=Object.assign({},this.state);return a.a.createElement(t,l({domEl:this.domEl,explicitRef:this.refCallback,size:e},this.props))}}return o.displayName=`SizeMe(${p(e)})`,o}},"./src/higherOrderComponents/warnOnChildrenCount/index.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),r=o.n(n);o("./src/lib/logs/console.ts");t.a=function(e,t){return t=>r.a.createElement(e,t)}},"./src/lib/LinkedListMap/index.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return r});class n{constructor(e){this.value=e,this.next=void 0,this.prev=void 0}}class r{constructor(e){this.key=e,this.tail=void 0,this.head=void 0,this.length=0,this.itemsByKey={}}static fromArray(e,t){const o=new r(t);return e.forEach(e=>o.push(e)),o}first(){if(this.tail)return this.tail.value}firstNode(){if(this.tail)return this.tail}forEach(e){let t=this.tail;for(;t;)e(t.value),t=t.next}get(e){const t=this.getNode(e);if(t)return t.value}getNode(e){return this.itemsByKey[e]}has(e){return e in this.itemsByKey}insertAfter(e,t){const o=t instanceof n?t:new n(t),r=this.getNode(e);if(!r)throw new Error(`Cannot find item with key ${e}`);o.prev=r,o.next=r.next,r.next=o,o.next&&(o.next.prev=o);const i=t instanceof n?t.value[this.key]:t[this.key];this.itemsByKey[i]=o,this.length++}insertBefore(e,t){const o=t instanceof n?t:new n(t),r=this.getNode(e);if(!r)throw new Error(`Cannot find item with key ${e}`);o.next=r,o.prev=r.prev,r.prev=o,o.prev&&(o.prev.next=o);const i=t instanceof n?t.value[this.key]:t[this.key];this.itemsByKey[i]=o,this.length++}last(){if(this.head)return this.head.value}lastNode(){if(this.head)return this.head}pop(){if(!this.head)return;return this.removeNode(this.head).value}push(e){const t=e instanceof n?e:new n(e);t.prev=this.head,this.head?this.head.next=t:this.tail=t,this.head=t;const o=e instanceof n?t.value[this.key]:e[this.key];this.itemsByKey[o]=t,this.length++}remove(e){const t=this.getNode(e);if(t)return this.removeNode(t).value}removeNode(e){return e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e===this.tail&&(this.tail=e.next),e===this.head&&(this.head=e.prev),e.next=void 0,e.prev=void 0,this.itemsByKey[e.value[this.key]]=void 0,this.length--,e}shift(){if(!this.tail)return;return this.removeNode(this.tail).value}toArray(){const e=[];return this.forEach(t=>e.push(t)),e}unshift(e){const t=e instanceof n?e:new n(e);t.next=this.tail,this.tail?this.tail.prev=t:this.head=t,this.tail=t;const o=e instanceof n?t.value[this.key]:e[this.key];this.itemsByKey[o]=t,this.length++}}},"./src/lib/browser/isIncognito.ts":function(e,t,o){"use strict";t.a=(async()=>await new Promise(e=>{const t=window.RequestFileSystem||window.webkitRequestFileSystem;t?t(0,100,()=>e(!1),()=>e(!0)):e(void 0)}))},"./src/lib/classNames/index.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return c});var n=o("./node_modules/lodash/isNil.js"),r=o.n(n),i=o("./node_modules/lodash/isObject.js"),s=o.n(i),a=o("./node_modules/lodash/isString.js"),d=o.n(a);function c(...e){const t=[];for(const o of e)r()(o)||(d()(o)?t.push(o):Array.isArray(o)?t.push(c(...o)):s()(o)&&t.push(c(...Object.keys(o).filter(e=>o[e]))));return t.join(" ")}},"./src/lib/doubleclickForPublishers/index.ts":function(e,t,o){"use strict";o.d(t,"c",function(){return d}),o.d(t,"a",function(){return l}),o.d(t,"e",function(){return u}),o.d(t,"d",function(){return p}),o.d(t,"b",function(){return m}),o.d(t,"f",function(){return h});var n=o("./src/config.ts"),r=o("./src/lib/constants/index.ts"),i=o("./src/lib/isFakeSubreddit/index.ts"),s=o("./src/lib/fastdom/index.ts");const a=new Map,d=(e,t)=>{const o=[n.a.dfpSlotPrefix];return t!==r.Rb.PROFILE&&(Object(i.a)(e)?o.push("frontpage"):o.push(`r.${e}`)),t===r.Rb.INDEX?o.push(r.Rb.LISTING):t&&o.push(t),o.join("/")},c=(e,t)=>{e.setTargeting("keywords",t.keywords);for(const o in t.properties)e.setTargeting(o,t.properties[o])},l=(e,t)=>{m(e);const o=t.id,n=t.slot,r=t.sizes,i=window.googletag=window.googletag||{};return i.cmd=i.cmd||[],new Promise(d=>{i.cmd.push(()=>{s.a.write(()=>{const s=i.defineSlot(n,r,o);if(!s)return d();s.addService(i.pubads()),a.set(e,s),s.setCollapseEmptyDiv(!0),c(s,t),i.display(o),d()})})})},u=(e,t)=>{const o=a.get(e);if(!o)return;const n=window.googletag=window.googletag||{};n.cmd=n.cmd||[],n.cmd.push(()=>{Object.keys(t).forEach(e=>o.setTargeting(e,t[e]))})},p=(e,t)=>{const o=a.get(e);if(!o)return;c(o,t);const n=window.googletag=window.googletag||{};n.cmd=n.cmd||[],window.aax&&window.aax.cmd.push(()=>{window.aax.getAbpStatus&&window.aax.getAbpStatus()&&n.cmd.push(()=>{n.pubads().refresh([o])})}),window.apstag.fetchBids({slots:[{slotID:t.id,slotName:[t.slot,t.id].join("/"),sizes:t.sizes}],timeout:2e3},()=>{n.cmd.push(()=>{window.apstag.setDisplayBids(),n.pubads().refresh([o])})})},m=e=>{const t=a.get(e);if(!t)return;const o=window.googletag=window.googletag||{};o.cmd=o.cmd||[],o.cmd.push(()=>{s.a.write(()=>{o.destroySlots([t]),a.delete(e)})})},f=e=>{const t=()=>{const t=document.createElement("script");t.src=e,t.async=!0;const o=document.getElementsByTagName("script")[0];o&&o.parentNode&&o.parentNode.insertBefore(t,o)};if(document.head&&(()=>{const e=document.createElement("link").relList;if(!e||!e.supports)return!1;try{return e.supports("preload")}catch(t){return!1}})()){const o=document.createElement("link");o.href=e,o.rel="preload",o.as="script",o.onload=t,document.head.insertBefore(o,document.head.firstChild)}else t()},h=()=>{const e=window.googletag=window.googletag||{};e.cmd=e.cmd||[],f("//www.googletagservices.com/tag/js/gpt.js"),e.cmd.push(()=>{e.pubads().disableInitialLoad(),e.enableServices()}),window.apstag||(window.apstag={_Q:[]},window.apstag.init=((...e)=>{window.apstag._Q.push(["i",e])}),window.apstag.fetchBids=((...e)=>{window.apstag._Q.push(["f",e])}),f("//c.amazon-adsystem.com/aax2/apstag.js"),window.apstag.init({pubID:"3379",adServer:"googletag",bidTimeout:2e3})),window.aax||(window.aax={pubId:"AAX763KC6",ver:1.2,initTime:(new Date).getTime(),hst:location.hostname,deliverExchangeDemand:()=>{},cmd:[]},f(`//c.aaxads.com/aax.js?pub=${window.aax.pubId}&hst=${window.aax.hst}&ver=${window.aax.ver}`))}},"./src/lib/getShortenedLink.ts":function(e,t,o){"use strict";var n=o("./src/reddit/models/Media/index.ts"),r=o("./node_modules/url/url.js"),i=o.n(r);t.a=function(e){const t=e.source,o=e.isSponsored,r=e.domainOverride;let s="";if(o){if(t&&t.displayText)return t.displayText.length>30?t.displayText.substring(0,30)+"...":t.displayText;s=r||Object(n.w)(e)}else s=Object(n.w)(e);const a=i.a.parse(s),d=a.path||"",c=d.length>7?d.substring(0,7)+"...":d;return(a.hostname?a.hostname.replace("www.",""):"")+c}},"./src/lib/isSimpleClick/index.ts":function(e,t,o){"use strict";t.a=(e=>{if(e&&e.target&&(e=>{let t=e;for(;t&&t!==window.document.body;){if("A"===t.nodeName)return!0;t=t.parentElement}return!1})(e.target)){if(e.ctrlKey)return!1;if(e.altKey)return!1;if(e.metaKey)return!1;if(e.shiftKey)return!1}return!0})},"./src/lib/lessComponent.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),r=o.n(n),i=o("./src/lib/classNames/index.ts"),s=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};const a=(e,t,o)=>{const n=o[t];class a extends r.a.PureComponent{render(){const t=this.props,o=t.className,a=t.innerRef,d=s(t,["className","innerRef"]);return r.a.createElement(e,Object.assign({},d,{ref:a,className:Object(i.a)(n,o)}))}}return a.cssClassName=n,a.displayName=t,a},d=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noindex","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","webview","svg","animate","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","switch","symbol","text","textPath","tspan","use","view"].reduce((e,t)=>(e[t]=((e,o)=>a(t,e,o)),e),{});t.a=Object.assign({},d,{wrapped:(e,t,o)=>{const n=o[t];class a extends r.a.PureComponent{render(){const t=this.props,o=t.className,a=s(t,["className"]);return r.a.createElement(e,Object.assign({},a,{className:Object(i.a)(n,o)}))}}return a.cssClassName=n,a.displayName=t,a}})},"./src/lib/loginHref/index.ts":function(e,t,o){"use strict";var n=o("./src/config.ts"),r=o("./node_modules/history/index.js");t.a=((e,t,o)=>{const i=Object(r.createPath)(e),s=encodeURIComponent(`${t}${i}`);return`${n.a.accountManagerOrigin}${o||"/login"}?dest=${s}`})},"./src/lib/permalinkToOverlayLocation/index.ts":function(e,t,o){"use strict";var n=o("./node_modules/history/index.js"),r=o("./src/lib/LRUCache/index.ts"),i=o("./src/reddit/constants/history.ts"),s=o("./src/reddit/helpers/path/index.ts");const a=new r.a(250);t.a=((e,t)=>{let o;if(!(o=a.get(e+t))){const r=Object(s.b)(e);(o=Object(n.createLocation)(r)).state=Object.assign({},o.state,{[i.a.IsOverlay]:!0,[i.a.ScrollOnLoad]:t}),a.set(e+t,o)}return o})},"./src/lib/timeUntil/index.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return d});var n=o("./src/app/strings/index.ts"),r=o("./src/lib/constants/index.ts");const i=[r.Dc,r.lb,r.y,r.N,r.kb,r.Wb],s={[r.Wb]:"time.seconds",[r.kb]:"time.minutes",[r.N]:"time.hours",[r.y]:"time.days",[r.lb]:"time.months",[r.Dc]:"time.years"},a={[r.Wb]:"time.short.seconds",[r.kb]:"time.short.minutes",[r.N]:"time.short.hours",[r.y]:"time.short.days",[r.lb]:"time.short.months",[r.Dc]:"time.short.years"};function d(e,t,o=!1){const d=Date.now(),c=new Date(t).getTime(),l={[r.Dc]:"",[r.lb]:"",[r.y]:"",[r.N]:"",[r.kb]:"",[r.Wb]:""};let u=c-d;if(u<=0)return Object(n.a)(e,"time.soon");for(const r of i){const t=Math.floor(u/r);t&&(l[r]=o?`${t}${Object(n.a)(e,a[r])}`:Object(n.d)(e,s[r],t)),u-=t*r}const p=i.map(e=>l[e]).filter(Boolean).slice(0,2).join(" ");return o?p:Object(n.a)(e,"time.timeLeft",{time:p})}},"./src/lib/unicodeUtils/index.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return n}),o.d(t,"b",function(){return r});const n=e=>{let t=0,o=0;const n=[0];for(const r of e)t++,o+=r.length,n[t]=o;return n},r=e=>{let t=0,o=0;const n=[];for(const r of e){for(let e=0;e<r.length;e++)n[o]=t,o++;t++}return n[o]=t,n}},"./src/reddit/actions/chat/promo.ts":function(e,t,o){"use strict";o.d(t,"b",function(){return l}),o.d(t,"a",function(){return u});var n=o("./src/lib/makeActionCreator/index.ts"),r=o("./src/chat/actions/promo/checkPromoInLocalStorage.ts"),i=o("./src/chat/actions/promo/constants.ts"),s=o("./src/chat/models/Promo/index.ts"),a=o("./src/reddit/selectors/chat.ts"),d=o("./src/reddit/selectors/user.ts");const c=Object(n.a)(i.a),l=Object(n.a)(i.b),u=()=>async(e,t)=>{const o=t(),n=Object(r.a)(s.a.SubredditChatFtux),i=Object(d.V)(o),l=Object(d.m)(o),u=Object(a.f)(o);!n&&!i&&l&&u&&e(c(s.a.SubredditChatFtux))}},"./src/reddit/actions/economics/paymentSystems/actionCreators.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return i}),o.d(t,"b",function(){return s}),o.d(t,"c",function(){return a}),o.d(t,"d",function(){return d});var n=o("./src/lib/makeActionCreator/index.ts"),r=o("./src/reddit/actions/economics/paymentSystems/constants.ts");const i=Object(n.a)(r.a),s=Object(n.a)(r.b),a=Object(n.a)(r.c),d=Object(n.a)(r.d)},"./src/reddit/actions/economics/paymentSystems/thunkedActions.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return i});var n=o("./src/reddit/endpoints/economics/paymentSystems.ts"),r=o("./src/reddit/actions/economics/paymentSystems/actionCreators.ts");const i=()=>async(e,t,{apiContext:o})=>{e(Object(r.d)());const i=await Object(n.c)(o());i.ok?e(Object(r.c)(i.body)):e(Object(r.b)({error:i.error}))}},"./src/reddit/actions/login.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return d}),o.d(t,"b",function(){return c});var n=o("./src/reddit/actions/modal.ts"),r=o("./src/reddit/actions/preferences.ts"),i=o("./src/reddit/constants/modals.ts"),s=o("./src/reddit/constants/postLayout.ts");const a=e=>async(t,o)=>{t(Object(n.i)(e?i.a.LOGIN_MODAL_ID:i.a.REGISTER_MODAL_ID)),!o().user.prefs.layout&&t(Object(r.s)(s.c.Card))},d=()=>async(e,t)=>{e(a(!0))},c=()=>async(e,t)=>{e(a(!1))}},"./src/reddit/actions/notifications/loader.ts":function(e,t,o){"use strict";var n=o("./src/lib/loadWithRetries/index.ts");t.a=(()=>Object(n.a)(()=>o.e("PushNotifications").then(o.bind(null,"./src/reddit/actions/notifications/index.ts"))))},"./src/reddit/actions/notifications/preferences.ts":function(e,t,o){"use strict";var n=o("./src/app/strings/index.ts"),r=o("./src/lib/makeActionCreator/index.ts"),i=o("./src/reddit/actions/toaster.ts"),s=o("./src/config.ts"),a=o("./src/lib/constants/index.ts"),d=o("./src/lib/makeApiRequest/index.ts"),c=o("./src/reddit/helpers/addRedesignIdentifier/index.ts");var l=o("./src/reddit/models/Toast/index.ts"),u=o("./src/reddit/selectors/notificationPrefs.ts"),p=o("./src/reddit/selectors/user.ts"),m=o("./src/reddit/actions/notifications/constants.ts");o.d(t,"a",function(){return b}),o.d(t,"b",function(){return O});const f=Object(r.a)(m.d),h=Object(r.a)(m.c),g=Object(r.a)(m.b),b=()=>async(e,t,{apiContext:o})=>{const n=t();if(!Object(p.j)(n))return;const r=Object(u.b)(n),i=Object(u.a)(n);if(r||i)return;e(f());const l=await(e=>Object(d.c)(e,{endpoint:Object(c.a)(`${s.a.gatewayUrl}/redditmobile/1/push/preferences`),method:a.jb.GET}))(o());if(l.ok){const t=(e=>({chatMessages:!(!e.chat_message&&!e.chat_request),trendingPosts:!!e.lifecycle_post_suggestions,unreadMessages:!!(e.comment_reply||e.post_reply||e.private_message||e.username_mention)}))(l.body);e(h({preferences:t}))}else e(g(l.error))},v=Object(r.a)(m.m),y=Object(r.a)(m.l),x=Object(r.a)(m.k),O=e=>async(t,o,{apiContext:r})=>{const m=o(),f=Object(p.M)(m);if(!Object(p.j)(m))return;if(Object(u.e)(m))return;const h=Object(u.d)(m);t(v({preferences:e}));const g=await((e,t)=>Object(d.c)(e,{endpoint:Object(c.a)(`${s.a.gatewayUrl}/redditmobile/1/push/preferences`),method:a.jb.POST,data:{preferences:JSON.stringify({chat_message:t.chatMessages,chat_request:t.chatMessages,comment_reply:t.unreadMessages,lifecycle_post_suggestions:t.trendingPosts,post_reply:t.unreadMessages,private_message:t.unreadMessages,username_mention:t.unreadMessages})}}))(r(),e);g.ok?(t(y()),t(Object(i.e)({kind:l.b.SuccessCommunity,text:Object(n.a)(f,"settings.page.saveRequestSuccess")}))):t(x({error:g.error,preferences:h}))}},"./src/reddit/components/AccountCompleteness/Icons.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/reddit/constants/colors.ts"),a=o("./src/reddit/icons/fonts/Upvote/index.tsx"),d=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});var c=e=>d("svg",{className:e.className,fill:e.fill,viewBox:"-2 -2 24 24",xmlns:"http://www.w3.org/2000/svg"},void 0,d("path",{d:"\n M 10, 10\n m -12, 0\n a 12,12 0 1,0 24,0\n a 12,12 0 1,0 -24,0 Z\n M8.9310375,15.1995 C8.70135,15.41825 8.38963125,15.541375 8.0647875,15.541375 C8.052975,15.541375 8.04181875,15.54075 8.03000625,15.54075 C7.69335,15.531375 7.37506875,15.39075 7.15063125,15.151375 L4.0879125,11.88075 C3.637725,11.400125 3.68169375,10.662625 4.18700625,10.23325 C4.6916625,9.805125 5.4660375,9.846375 5.91688125,10.327625 L8.115975,12.676375 L14.8550063,6.25825 C15.3327563,5.802625 16.1091,5.802625 16.5875063,6.25825 C17.0659125,6.71325 17.0659125,7.452625 16.5875063,7.907625 L8.9310375,15.1995 Z",fill:"inherit"})),l=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var u=e=>l("svg",{className:e.className,fill:e.fill,stroke:e.stroke,viewBox:"-2 -2 24 24",xmlns:"http://www.w3.org/2000/svg"},void 0,l("circle",{cx:"10",cy:"10",r:"11",strokeWidth:"2",fill:"none"}),l("path",{d:"M8.9310375,15.1995 C8.70135,15.41825 8.38963125,15.541375 8.0647875,15.541375 C8.052975,15.541375 8.04181875,15.54075 8.03000625,15.54075 C7.69335,15.531375 7.37506875,15.39075 7.15063125,15.151375 L4.0879125,11.88075 C3.637725,11.400125 3.68169375,10.662625 4.18700625,10.23325 C4.6916625,9.805125 5.4660375,9.846375 5.91688125,10.327625 L8.115975,12.676375 L14.8550063,6.25825 C15.3327563,5.802625 16.1091,5.802625 16.5875063,6.25825 C17.0659125,6.71325 17.0659125,7.452625 16.5875063,7.907625 L8.9310375,15.1995 Z",fill:"inherit",stroke:"none"})),p=o("./src/reddit/icons/svgs/ChevronUp/index.tsx"),m=o("./src/reddit/icons/svgs/Close/index.tsx"),f=o("./src/reddit/icons/svgs/Plus/index.tsx"),h=o("./src/reddit/icons/svgs/Snoo/index.tsx"),g=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),b=o("./src/reddit/models/Theme/NewColorSystem/index.ts");o.d(t,"a",function(){return C}),o.d(t,"f",function(){return j}),o.d(t,"c",function(){return S}),o.d(t,"d",function(){return P}),o.d(t,"j",function(){return M}),o.d(t,"l",function(){return k}),o.d(t,"m",function(){return N}),o.d(t,"k",function(){return E}),o.d(t,"h",function(){return T}),o.d(t,"i",function(){return L}),o.d(t,"g",function(){return _}),o.d(t,"e",function(){return F}),o.d(t,"b",function(){return R});var v=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const y=Object(r.css)(["cursor: pointer;height: 18px;line-height: 18px;margin: 0px;width: 18px;fill: ",";"],e=>Object(b.c)(e).lightText),x=Object(r.keyframes)(["0%{opacity: 0;transform: scale(1.8);}100%{transform: scale(1);opacity: 1;}"]),O=i.a.div.withConfig({componentId:"i77jts-0"})(["align-items: center;border-radius: 3px;display: flex;height: 20px;justify-content: center;outline-offset: 2px;outline: 1px dashed #888;width: 20px;&:not(:last-child) {margin-right: 12px;}"]),C=({IconComponent:e})=>v(O,{},void 0,v(e,{"data-redditstyle":!0})),w=Object(r.css)(["margin-right: 4px;"]),j=i()(h.a).withConfig({componentId:"i77jts-1"})(["","","fill: ",";height: 20px;width: 20px;"],y,w,s.a.snoo),S=i()(u).withConfig({componentId:"i77jts-2"})(["","","stroke: ",";"],y,w,e=>Object(b.c)(e).lightText),P=i()(c).withConfig({componentId:"i77jts-3"})(["","","fill: ",";animation: 0.6s ease 0s 1 normal both running ",";"],y,w,s.a.approved,x),M=i()(e=>g("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40"},void 0,g("g",{},void 0,g("path",{d:"M32,7.8l0.5-5.3h-25L8,7.8c-3.2,0.8-5.5,3.7-5.5,7.2v0.1c0,4,3.1,7.2,7,7.4l0,0c0.3,2.8,2.7,5,5.5,5h0.1\n c1.3,0,2.4,1.1,2.4,2.4v0.1c0,1.3-1.1,2.4-2.4,2.4H15c-2.7,0-4.9,2.2-4.9,4.9v0.1h20v-0.1c0-2.7-2.2-4.9-4.9-4.9h-0.1\n c-1.3,0-2.4-1.1-2.4-2.4v-0.1c0-1.3,1.1-2.4,2.4-2.4H25c2.8,0,5.2-2.2,5.5-5l0,0c3.9-0.2,7-3.4,7-7.4v-0.1\n C37.5,11.5,35.2,8.6,32,7.8z M4.5,15.1v-0.1c0-2.4,1.6-4.4,3.7-5.1l1.1,10.7C6.6,20.1,4.5,17.9,4.5,15.1z M35.5,15.1\n c0,2.8-2.1,5.1-4.8,5.4l1.1-10.7c2.2,0.7,3.7,2.8,3.7,5.1V15.1z"})))).withConfig({componentId:"i77jts-4"})(["","vertical-align: bottom;"],y),I=i()(a.a).withConfig({componentId:"i77jts-5"})(["","border-radius: 3px;cursor: inherit;text-align: center;margin-left: 0;"],y),k=i()(I).withConfig({componentId:"i77jts-6"})(["background-color: ",";color: ",";font-size: 14px;"],e=>Object(b.c)(e).button,e=>Object(b.c)(e).inactive),N=i()(k).withConfig({componentId:"i77jts-7"})(["animation: 0.6s ease 0.4s 1 normal both running ",";"],x),E=i()(I).withConfig({componentId:"i77jts-8"})(["color: ",";opacity: 0.5;"],e=>Object(b.c)(e).actionIcon),T=i()(f.a).withConfig({componentId:"i77jts-9"})(["","background-color: ",";border-radius: 3px;cursor: inherit;fill: ",";margin-left: 0;"],y,e=>Object(b.c)(e).button,e=>Object(b.c)(e).inactive),L=i()(T).withConfig({componentId:"i77jts-10"})(["animation: 0.6s ease 0.4s 1 normal both running ",";"],x),_=i()(T).withConfig({componentId:"i77jts-11"})(["background-color: ",";fill: ",";opacity: 0.5;"],e=>Object(b.c)(e).post,e=>Object(b.c)(e).actionIcon),F=i()(m.a).withConfig({componentId:"i77jts-12"})(["",""],y),R=i()(p.a).withConfig({componentId:"i77jts-13"})(["","","transition: transform 0.3s ease;"],e=>e.up?"":"transform: rotate(180deg);",y)},"./src/reddit/components/AlertBanner/heights.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return n});const n=(e,t)=>({[e.showFPR]:!!t.showFPR,[e.showSuspended]:!!t.showSuspended})},"./src/reddit/components/AlertBanner/index.m.less":function(e,t,o){e.exports={underlineLink:"vOGtEDdh1mVbkqinhg3Ov",underlineButton:"_1uQwMnfXrOfzkL_CFxH6fd",wrapper:"_3el1HrJryfAxBUzu4HsIhE",fpr:"_36j6vvbAY0wIrxbyXuNQhn",suspended:"_1ivoPEQV9lryC0mH-f_uGY",closeButton:"_1oAzKCYwbVOQ-AbuRZfMg2",closeIcon:"_6aklZuhHMm1XJcsi8dEeP"}},"./src/reddit/components/AppRouter/index.m.less":function(e,t,o){e.exports={main:"_1nxEQl5D2Bx2jxDILRHemb",showFPR:"_2P-zXcOfggYIWnL3EfXUHP",showFpr:"_2P-zXcOfggYIWnL3EfXUHP",showSuspended:"_3o7sV2ySJ76-f1ktwzclmi",lightboxHeaderWrapper:"_3obgdFz00GvpqpuX8QCsNK",overlayContentWrapper:"_2DJXORCrmcNpPTSq0LqL6i",overlayWrapper:"_2mIbM_6nl-2OnOGEbEMRXa",pinnedSubscriptions:"zoWOQnp55WuhEugRSwfw1",bottomAdContainer:"_2SL_DAWw1V6pxZysgrdeBe",sidebarFooter:"_2AJ0ZwpZtFJ10GdcU0CUew",sidebarFooterWithAd:"_1ht98h5gXjzYhFyRZgB0Pv",header:"cx1ohrUAq6ARaXTX2u8YN",bottomSpacer:"_14-8KVF3BKuTNsLNWcOG2X",overlayScrollContainer:"_29IbETWb5VVDcfk_-GumWz",mediaIsFullscreen:"_34Bl1Of1839ZWJXR8IY0Ym"}},"./src/reddit/components/BannedUserList/AddBannedUserModal/index.tsx":function(e,t,o){"use strict";var n=o("./src/higherOrderComponents/makeAsync.tsx"),r=o("./src/lib/loadWithRetries/index.ts");const i=()=>null;t.a=Object(n.a)({ErrorComponent:i,getComponent:()=>Object(r.a)(()=>Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("vendors~GiftsEditProfile~GiftsGiftCreation~GiftsGiftEdit~GiftsShipping~HarbergerTaxManageModal~Moder~43e8895f"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("ModerationPages")]).then(o.bind(null,"./src/reddit/components/BannedUserList/AddBannedUserModal/_AddBannedUserModal.tsx"))).then(e=>e.default),LoadingComponent:i})},"./src/reddit/components/CategoryTagList/index.m.less":function(e,t,o){e.exports={categoryTagWrapper:"_13jLUpnQtcA8FXyw5Kv06q"}},"./src/reddit/components/CategoryTagList/index.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),r=o.n(n),i=o("./node_modules/react-redux/es/index.js"),s=o("./node_modules/reselect/lib/index.js"),a=o("./src/reddit/components/TrackingHelper/index.tsx"),d=o("./src/reddit/selectors/user.ts"),c=o("./bundled-modules/styled-components/styled-components.min.js"),l=o.n(c),u=o("./src/reddit/components/Flair/index.tsx"),p=o("./src/reddit/constants/posts.ts"),m=o("./src/reddit/controls/InternalLink/index.tsx"),f=o("./src/lib/addQueryParams/index.ts"),h=o("./src/lib/constants/index.ts");var g=o("./src/reddit/helpers/correlationIdTracker.ts"),b=o("./src/reddit/selectors/telemetry.ts");var v,y=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),x=(v="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var s in r)void 0===t[s]&&(t[s]=r[s]);else t||(t=r||{});if(1===i)t.children=n;else if(i>1){for(var a=Array(i),d=0;d<i;d++)a[d]=arguments[d+3];t.children=a}return{$$typeof:v,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const O=l.a.span.withConfig({componentId:"s1o0ykhx-0"})(["","background-color: ",";color: ",";margin-top: ",";padding: 0 4px;"],u.b,e=>Object(y.c)(e).flair,e=>Object(y.c)(e).linkText,e=>e.inLightboxHeader?"0":"10px");var C=class extends r.a.Component{constructor(){super(...arguments),this.onClick=(()=>{const e={id:this.props.category.categoryId,title:this.props.category.categoryName,eventType:p.a.SUBREDDIT,originElement:"meta_flair"};this.props.sendEvent(((e,t)=>o=>Object.assign({source:"post",action:"click",noun:"meta_flair"},b.defaults(o),{correlationId:Object(g.c)(g.a.SearchResults),post:b.post(o,e),search:b.postFlairClickToSearch(o,t),subreddit:b.subreddit(o)}))(this.props.postId,e))})}render(){const e=this.props.category,t=this.props.inLightboxHeader,o=e.categoryId,n=e.categoryName,r=x("span",{},void 0,n);return x(O,{postId:this.props.postId,category:e,inLightboxHeader:t,sendEvent:this.props.sendEvent,"data-redditstyle":!0},void 0,x(m.a,{onClick:this.onClick,to:((e,t,o,n)=>{const r=n||"*:*",i=o||h.Y;return Object(f.a)("/search",{q:r,sort:i,category_name:e,category:t})})(n,o),children:r}))}},w=o("./src/reddit/components/CategoryTagList/index.m.less"),j=o.n(w),S=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const P=Object(i.connect)(()=>Object(s.createStructuredSelector)({labelNSFW:d.L}));t.a=P(Object(a.b)(({postCategories:e,postId:t,inLightboxHeader:o,sendEvent:n})=>S("span",{className:o?null:j.a.categoryTagWrapper},void 0,e.map(e=>S(C,{postId:t,category:e,inLightboxHeader:o,sendEvent:n},e.categoryId)))))},"./src/reddit/components/ClassicPost/Thumbnail.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return p});o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o("./src/lib/classNames/index.ts"),s=o("./src/reddit/components/Thumbnail/index.tsx"),a=o("./src/reddit/constants/posts.ts"),d=o("./src/reddit/helpers/styles/mixins/index.tsx"),c=o("./src/reddit/components/ClassicPost/index.m.less"),l=o.n(c),u=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const p=Object(r.css)(["","."," {","}"],s.c,l.a.thumbnailContainer,Object(d.x)(a.c,a.d));t.b=(({className:e,crosspost:t,forceShowNSFW:o,isMeta:n,post:r,removeLink:a,templatePlaceholderImage:d,url:c})=>u("div",{className:Object(i.a)(l.a.thumbnailContainer,e)},void 0,u(s.d,{className:l.a.thumbnail,crosspost:t,forceShowNSFW:o,isMeta:n,post:r,removeLink:a,templatePlaceholderImage:d,url:a?void 0:c})))},"./src/reddit/components/ClassicPost/index.m.less":function(e,t,o){e.exports={classicThumbnail:"nL7Q54U2LLg9rkVdSxxLe",content:"_1Y6dfr4zLlrygH-FLmr8x-",crosspostMediaWrapper:"_1qc1-Anfrhr6APGcBKFk8M",expandoContainer:"_3r40yytzBnldjGGOrs2mCw",flatlist:"ssgs3QQidkqeycI33hlBa",flatlistContainer:"_36kpXQ-z7Hr61j8878uRkP",flatlistSeparator:"_1wDt70OnYnqsrm0XIsNn8v",leftExpando:"_35zWJjb5RJMIMkexZ2Prus",mainBody:"_2XDITKxlj4y3M99thqyCsO",rightExpando:"_2Ddj1d6vOe9NlJqkdothNe",spacer:"iRkLLvxarfGu_2c7HxhW0",titleWithPoll:"_2FcpdQwjwRwk7X_NiZub8x",thumbnail:"_2e9Lv1I3dOmICVO9fg3uTG",thumbnailContainer:"_38EcSQ9jzVrdtzkXO1cydX"}},"./src/reddit/components/CommunityType/index.m.less":function(e,t,o){e.exports={nsfwText:"_1x9diBHPBP-hL1JiwUwJ5J",privateIcon:"_2B0OHMLKb9TXNdd9g5Ere-",quarantinedIcon:"_1xKxnscCn2PjBiXhorZef4",employeesIcon:"_1LLqoNXrOsaIkMtOuTBmO5",restrictedIcon:"QB2Yrr8uihZVRhvwrKuMS"}},"./src/reddit/components/CommunityType/index.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(s),d=o("./src/reddit/components/Flair/index.tsx"),c=o("./src/reddit/components/Translated/index.tsx"),l=o("./node_modules/react-redux/es/index.js"),u=o("./node_modules/reselect/lib/index.js"),p=o("./src/app/strings/index.ts"),m=o("./src/higherOrderComponents/asTooltip.tsx"),f=o("./src/reddit/components/InfoTextTooltip/index.tsx"),h=o("./src/reddit/selectors/user.ts"),g=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const b=Object(m.a)(f.b),v=["center","top"],y=["center","bottom"],x=Object(u.createStructuredSelector)({language:h.M});var O=Object(l.connect)(x,{})(class extends i.a.Component{constructor(e){super(e),this.tooltipTargetElement=null,this.setTooltipTargetRef=(e=>this.tooltipTargetElement=e),this.onShowTooltip=(()=>{this.setState({showTooltip:!0})}),this.onHideTooltip=(()=>{this.setState({showTooltip:!1})}),this.state={showTooltip:!1}}render(){return i.a.createElement("span",{onMouseEnter:this.onShowTooltip,onMouseLeave:this.onHideTooltip,ref:this.setTooltipTargetRef},this.props.icon,g(b,{isOpen:this.state.showTooltip,tooltipTarget:this.tooltipTargetElement,targetPosition:v,text:Object(p.a)(this.props.language,this.props.text),tooltipPosition:y}))}}),C=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),w=o("./src/reddit/icons/svgs/Admin/index.tsx"),j=o("./src/reddit/icons/svgs/Eye/index.tsx"),S=o("./src/reddit/icons/svgs/Lock/index.tsx"),P=o("./src/reddit/icons/svgs/QuarantineWarning/index.tsx"),M=o("./src/reddit/models/Flair/index.ts"),I=o("./src/reddit/models/Subreddit/index.ts"),k=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),N=o("./src/reddit/components/CommunityType/index.m.less"),E=o.n(N),T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},L=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const _=a.a.span.withConfig({componentId:"k3rs6j-0"})(["","color: ",";.",",.",",.",",."," {fill: ",";}"],C.titleFontH5,e=>Object(k.c)(e).actionIcon,E.a.employeesIcon,E.a.privateIcon,E.a.restrictedIcon,E.a.quarantinedIcon,e=>Object(k.c)(e).actionIcon),F=e=>L(i.a.Fragment,{},void 0,L(d.c,{flair:{type:M.e.Nsfw,text:"nsfw"}}),L("span",{className:E.a.nsfwText},void 0,L(c.a,{msgId:"subredditCreation.fields.over18.label"}))),R=()=>L(_,{},void 0,L(P.a,{className:E.a.quarantinedIcon}),L("span",{},void 0,L(c.a,{msgId:"sidebar.subreddit.quarantined"}))),A=e=>L(i.a.Fragment,{},void 0,L("span",{},void 0,e.isNSFW&&L(F,{})),L(_,{},void 0,e.description?L(O,{icon:e.icon,text:e.description}):e.icon,L("span",{},void 0,L(c.a,{msgId:e.text}))),e.isQuarantined&&L(R,{}));t.a=(e=>{switch(e.type){case I.b.Restricted:return i.a.createElement(A,T({icon:L(j.a,{className:E.a.restrictedIcon}),text:"subredditCreation.fields.type.restricted.label",description:"subredditCreation.fields.type.restricted.description"},e));case I.b.Private:return i.a.createElement(A,T({icon:L(S.a,{className:E.a.privateIcon}),text:"subredditCreation.fields.type.private.label",description:"subredditCreation.fields.type.private.description"},e));case I.b.EmployeesOnly:return i.a.createElement(A,T({icon:L(w.a,{className:E.a.employeesIcon}),text:e.allowContractors?"sidebar.subreddit.employeesAndContractors":"sidebar.subreddit.employeesOnly"},e));default:return L(i.a.Fragment,{},void 0,e.isQuarantined&&L(R,{}),e.isNSFW&&L(F,{}))}})},"./src/reddit/components/CompactPost/HorizontalVotes.tsx":function(e,t,o){"use strict";var n=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(n),i=o("./src/reddit/components/VerticalVotes/index.tsx"),s=o("./src/reddit/components/VerticalVotes/votes.m.less"),a=o.n(s),d=o("./src/reddit/controls/Score/index.tsx"),c=o("./src/reddit/controls/Score/index.m.less"),l=o.n(c);const u=r()(i.a).withConfig({componentId:"fjuc30-0"})(["align-items: center;display: flex;flex-direction: row;margin: 0px;padding: 0 2px;","."," {line-height: 15px;margin: 0 1px;text-align: center;width: 32px;}."," {margin-right: 8px;}"],d.b,l.a.score,a.a.customDownvote);t.a=u},"./src/reddit/components/ContentGate/index.tsx":function(e,t,o){"use strict";var n,r=o("./src/config.ts"),i=(o("./node_modules/react/index.js"),o("./node_modules/react-redux/es/index.js")),s=o("./node_modules/react-router/es/index.js"),a=o("./node_modules/reselect/lib/index.js"),d=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(d),l=o("./src/app/components/StyledHtml/index.tsx"),u=o("./src/app/strings/index.ts"),p=o("./src/lib/loginHref/index.ts"),m=o("./src/reddit/actions/contentGate.ts"),f=o("./src/reddit/actions/preferences.ts"),h=o("./src/reddit/components/CreateCommunityButton/index.tsx"),g=o("./src/reddit/constants/componentSizes.ts"),b=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),v=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),y=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const x=c.a.div.withConfig({componentId:"s19uef1h-0"})(["margin: 0 auto;max-width: 100%;padding: 36px 0;width: ","px;"],g.h),O=c.a.div.withConfig({componentId:"s19uef1h-1"})(["","color: ",";margin-top: 15px;text-align: center;"],b.titleFontH6,e=>Object(v.c)(e).actionIcon),C=c.a.a.withConfig({componentId:"s19uef1h-2"})(["color: ",";text-decoration: underline;"],e=>Object(v.c)(e).actionIcon),w=c.a.a.withConfig({componentId:"s19uef1h-3"})(["color: ",";text-decoration: underline;"],e=>Object(v.c)(e).actionIcon),j=Object(a.createStructuredSelector)({language:e=>e.user.language});var S=Object(i.connect)(j)(e=>{const t=e.language;return y(x,{},void 0,y(O,{},void 0,Object(u.a)(t,"footer.legalbottom.part1"),y(C,{href:`${r.a.redditUrl}/help/useragreement`},void 0,Object(u.a)(t,"footer.legalbottom.user")),Object(u.a)(t,"footer.legalbottom.part2"),y(w,{href:`${r.a.redditUrl}/help/privacypolicy`},void 0,Object(u.a)(t,"footer.legalbottom.privacy")),Object(u.a)(t,"footer.legalbottom.part3",{year:(new Date).getFullYear()})))}),P=o("./src/reddit/components/RawHTMLDisplay/index.tsx"),M=o("./src/reddit/constants/colors.ts"),I=o("./src/reddit/controls/Button/index.tsx"),k=o("./src/reddit/helpers/styles/mixins/index.tsx"),N=o("./src/reddit/selectors/meta.ts"),E=o("./src/reddit/selectors/user.ts");o.d(t,"a",function(){return te});var T=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const L=c.a.div.withConfig({componentId:"gwgcky-0"})(["display: flex;justify-content: center;margin-left: auto;margin-right: auto;align-items: baseline;"]),_=c.a.div.withConfig({componentId:"gwgcky-1"})(["background-color: ",";align-items: center;display: flex;flex-direction: column;justify-content: center;min-height: calc(100vh - ","px);"],e=>Object(v.c)(e).canvas,g.j),F=c.a.div.withConfig({componentId:"gwgcky-2"})(["","color: ",";margin-top: 0;margin-bottom: 32px;"],b.titleFontH5,e=>Object(v.c)(e).bodyText),R=c.a.div.withConfig({componentId:"gwgcky-3"})(["border-radius: 4px;background-color: ",";margin-bottom: 20px;padding: 16px;"],e=>Object(v.c)(e).body),A=c.a.div.withConfig({componentId:"gwgcky-4"})(["","color: ",";text-align: left;"],b.bodyFont,e=>Object(v.c)(e).bodyText),$=c.a.h3.withConfig({componentId:"gwgcky-5"})(["","color: ",";margin-bottom: 20px;"],b.titleFontH3,e=>Object(v.c)(e).bodyText),D=c.a.a.withConfig({componentId:"gwgcky-6"})(["color: ",";padding-left: 3px;"],M.a.alienblue),B=c()(I.f).withConfig({componentId:"gwgcky-7"})(["width: ","px;"],150),H=c()(I.e).withConfig({componentId:"gwgcky-8"})(["width: ","px;"],150),Q=c()(I.i).withConfig({componentId:"gwgcky-9"})(["width: ","px;"],150),U=c()(I.h).withConfig({componentId:"gwgcky-10"})(["cursor: pointer;width: ","px;"],150),z=c.a.div.withConfig({componentId:"gwgcky-11"})(["margin-bottom: 25px;"]),G=c()(B).withConfig({componentId:"gwgcky-12"})(["",";","margin-top: 12px;margin-left: 8px;min-width: 104px;width: auto;"],k.e,b.largeButtonFont),V=c.a.img.withConfig({componentId:"gwgcky-13"})(["height: 128px;margin: 0px auto;width: auto;"]),W=c.a.img.withConfig({componentId:"gwgcky-14"})(["background-color: #a8a8a8;border-radius: 100%;height: 100px;margin-left: auto;margin-right: auto;width: 100px;"]),q=c()(B).withConfig({componentId:"gwgcky-15"})(["margin-right: ","px;"],24),Z=c()(H).withConfig({componentId:"gwgcky-16"})(["margin-right: ","px;"],24),K=c()(U).withConfig({componentId:"gwgcky-17"})(["margin-right: ","px;"],24),Y=c()(Q).withConfig({componentId:"gwgcky-18"})(["margin-right: ","px;"],24),X=c.a.h3.withConfig({componentId:"gwgcky-19"})(["","color: ",";margin-top: 32px;margin-bottom: 20px;"],b.titleFontH3,e=>Object(v.c)(e).bodyText),J=c.a.div.withConfig({componentId:"gwgcky-20"})(["align-items: center;display: flex;justify-content: center;margin-left: auto;margin-right: auto;text-align: center;"]),ee=c.a.div.withConfig({componentId:"gwgcky-21"})(["margin: 18px 0;"]);var te;!function(e){e.GoldSubreddit="GoldSubreddit",e.Nsfw="Nsfw",e.PrivateSubreddit="PrivateSubreddit",e.QuarantinedSubreddit="QuarantinedSubreddit",e.SubredditBanned="SubredditBanned",e.SubredditDoesNotExist="SubredditDoesNotExist"}(te||(te={}));const oe=Object(a.createStructuredSelector)({language:E.M,origin:N.d,user:E.j}),ne=Object(i.connect)(oe,(e,{subredditName:t})=>({continueToQuarantinedSubreddit:async()=>{await e(f.z(t)),window.location.reload()},setCookieAndRedirect:async()=>{await e(m.g()),window.location.reload()}})),re=e=>{const t=e.banMessage,o=e.contentGateType,n=e.continueToQuarantinedSubreddit,i=e.language,s=e.location,a=e.origin,d=e.quarantineRequiresEmail,c=e.quarantineMessage,m=e.quarantineMessageHtml,f=e.setCookieAndRedirect,g=e.subredditDescription,b=e.subredditName,v=e.user;switch(o){case te.GoldSubreddit:return T("div",{},void 0,T(V,{src:`${r.a.assetPath}/img/gold/premium-crest.png`}),T(X,{},void 0,Object(u.a)(i,"contentGate.goldSubreddit.titlePremium",{subredditName:b})),T(F,{},void 0,Object(u.a)(i,"contentGate.goldSubreddit.descriptionPremium")),T(L,{},void 0,v?T(K,{href:`${r.a.redditUrl}/premium`},void 0,Object(u.a)(i,"contentGate.goldSubreddit.getPremium")):T(Z,{href:Object(p.a)(s,a)},void 0,Object(u.a)(i,"contentGate.goldSubreddit.signUp")),v?T(B,{to:"/"},void 0,Object(u.a)(i,"contentGate.goldSubreddit.goHome")):T(U,{href:Object(p.a)(s,a)},void 0,Object(u.a)(i,"contentGate.goldSubreddit.login"))));case te.Nsfw:return T("div",{},void 0,T(V,{src:`${r.a.assetPath}/img/content-gate-icons/nsfw.png`}),T(X,{},void 0,Object(u.a)(i,"contentGate.over18.title")),T(F,{},void 0,Object(u.a)(i,"contentGate.over18.description")),T(L,{},void 0,T(q,{to:"/"},void 0,Object(u.a)(i,"common.no")),T(U,{onClick:f},void 0,Object(u.a)(i,"common.yes"))));case te.PrivateSubreddit:return T("div",{},void 0,T(V,{src:`${r.a.assetPath}/img/content-gate-icons/private.png`}),T(X,{},void 0,Object(u.a)(i,"contentGate.privateSubreddit.title",{subredditName:b})),g&&g.length&&T(R,{},void 0,T($,{},void 0,"r/",b),T(A,{},void 0,g)),T(F,{},void 0,Object(u.a)(i,"contentGate.privateSubreddit.description")),T(L,{},void 0,v?T(K,{href:`${r.a.redditUrl}/message/compose?to=/r/${b}`},void 0,Object(u.a)(i,"contentGate.privateSubreddit.messageMods")):T(K,{href:Object(p.a)(s,a)},void 0,Object(u.a)(i,"contentGate.goldSubreddit.signUp")),T(B,{to:"/"},void 0,v?Object(u.a)(i,"contentGate.privateSubreddit.goHome"):Object(u.a)(i,"contentGate.privateSubreddit.exploreReddit"))));case te.QuarantinedSubreddit:return T("div",{},void 0,T(V,{src:`${r.a.assetPath}/img/content-gate-icons/quarantined.png`}),T(X,{},void 0,Object(u.a)(i,"contentGate.quarantinedSubreddit.title")),T(F,{},void 0,Object(u.a)(i,"contentGate.quarantinedSubreddit.subtitle"),T(D,{href:"https://www.reddithelp.com/en/categories/reddit-101/rules-reporting/account-and-community-restrictions/quarantined-subreddits"},void 0,Object(u.a)(i,"contentGate.quarantinedSubreddit.quarantined")),T(ee,{},void 0,m?T(P.a,{html:m}):c||Object(u.a)(i,"contentGate.quarantinedSubreddit.description")),Object(u.a)(i,"contentGate.quarantinedSubreddit.prompt")),T(L,{},void 0,((e,t,o,n)=>{return e&&e.hasVerifiedEmail||!n?T(L,{},void 0,T(q,{to:"/"},void 0,Object(u.a)(t,"contentGate.quarantinedSubreddit.noThankYou")),T(U,{onClick:o},void 0,Object(u.a)(t,"contentGate.quarantinedSubreddit.continue"))):T(L,{},void 0,T(Y,{to:"/"},void 0,Object(u.a)(t,"contentGate.quarantinedSubreddit.noThankYou")),T(H,{href:`${r.a.redditUrl}/prefs/update`},void 0,Object(u.a)(t,"contentGate.quarantinedSubreddit.verifyEmail")))})(v,i,n,d)));case te.SubredditBanned:return T("div",{},void 0,T(V,{src:`${r.a.assetPath}/img/content-gate-icons/banned.png`}),T(X,{},void 0,Object(u.a)(i,"contentGate.subredditBanned.title",{subredditName:b})),((e,t)=>e?T(z,{},void 0,T(l.a,{html:(e=>e.replace(/\[(.+?)\]\((.+?)\)/g,"<a href='$2'>$1</a>"))(e)})):T(F,{},void 0,Object(u.a)(t,"contentGate.subredditBanned.description")))(t,i),T(L,{},void 0,T(B,{to:"/"},void 0,Object(u.a)(i,"contentGate.subredditBanned.exploreReddit"))));case te.SubredditDoesNotExist:return T("div",{},void 0,T(W,{}),T(X,{},void 0,Object(u.a)(i,"contentGate.subredditDoesNotExist.title",{subredditName:b})),T(L,{},void 0,v&&T(h.a,{eventSource:"content_gate",language:i}),T(G,{to:"/"},void 0,Object(u.a)(i,"contentGate.subredditDoesNotExist.goHome"))))}};t.b=ne(Object(s.f)(e=>T(_,{},void 0,T("div",{},void 0,T(J,{},void 0,re(e))),T(S,{}))))},"./src/reddit/components/CreateCommunityButton/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./node_modules/react-redux/es/index.js"),i=o("./node_modules/reselect/lib/index.js"),s=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(s),d=o("./src/app/actions/tooltip.ts"),c=o("./src/app/strings/index.ts"),l=o("./src/reddit/components/InfoTextTooltip/index.tsx"),u=o("./src/reddit/components/TrackingHelper/index.tsx"),p=o("./src/reddit/controls/Button/index.tsx"),m=o("./src/reddit/helpers/overlay/index.ts"),f=o("./src/reddit/helpers/styles/mixins/index.tsx"),h=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),g=o("./src/reddit/helpers/trackers/subredditCreation.ts"),b=o("./src/reddit/selectors/user.ts"),v=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const y="create-community-button",x=a()(p.g).withConfig({componentId:"o51j48-0"})(["","","margin-top: 10px;"],h.largeButtonFont,f.e),O=a()(l.c).withConfig({componentId:"o51j48-1"})(["max-width: 256px;white-space: normal;text-align: center;"]),C=Object(i.createStructuredSelector)({userDoesNotHaveEnoughExpToCreateCommunity:e=>!Object(b.W)(e),userIsSuspended:b.J});t.a=Object(r.connect)(C,(e,{eventSource:t})=>({openCommunityCreation:o=>{o(Object(g.a)(t)),e(Object(m.a)("/subreddits/create"))},onShowTooltip:()=>e(Object(d.d)({tooltipId:y})),onHideTooltip:()=>e(Object(d.f)())}))(Object(u.b)(({eventSource:e,language:t,onShowTooltip:o,onHideTooltip:n,openCommunityCreation:r,sendEvent:i,userDoesNotHaveEnoughExpToCreateCommunity:s,userIsSuspended:a})=>v(x,{disabled:a||s,onClick:()=>r(i),onMouseEnter:o,onMouseLeave:n,id:y},void 0,Object(c.a)(t,"subredditCreation.createCommunity"),s?v(O,{caretOnTop:!0,tooltipId:y,text:Object(c.a)(t,"subredditCreation.cannotCreateCommunity")}):a?v(O,{caretOnTop:!0,tooltipId:y,text:Object(c.a)(t,"subredditCreation.bannedFromCreating")}):null)))},"./src/reddit/components/Flair/index.m.less":function(e,t,o){e.exports={patreonIcon:"_5IWt6wvqkAL0fRSJBu25B"}},"./src/reddit/components/Flair/index.tsx":function(e,t,o){"use strict";var n=o("./node_modules/lodash/pick.js"),r=o.n(n),i=o("./node_modules/polished/dist/polished.es.js"),s=(o("./node_modules/react/index.js"),o("./bundled-modules/styled-components/styled-components.min.js")),a=o.n(s),d=o("./src/lib/addQueryParams/index.ts"),c=o("./src/reddit/helpers/styles/components/index.tsx");const l=a()(Object(c.c)()).withConfig({componentId:"ceo27b-0"})(["background-image: url(",");background-position: center;background-repeat: no-repeat;background-size: contain;position: relative;display: inline-block;"],e=>e.backgroundImage);var u=o("./src/reddit/constants/colors.ts"),p=o("./src/reddit/constants/parameters.ts"),m=o("./src/reddit/controls/InternalLink/index.tsx"),f=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),h=o("./src/reddit/helpers/styles/smartTextColor.ts"),g=o("./src/reddit/icons/svgs/Patreon/index.tsx"),b=o("./src/reddit/models/Flair/index.ts"),v=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),y=o("./src/reddit/components/Flair/index.m.less"),x=o.n(y);o.d(t,"d",function(){return I}),o.d(t,"b",function(){return k}),o.d(t,"a",function(){return N});var O,C=(O="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var s in r)void 0===t[s]&&(t[s]=r[s]);else t||(t=r||{});if(1===i)t.children=n;else if(i>1){for(var a=Array(i),d=0;d<i;d++)a[d]=arguments[d+3];t.children=a}return{$$typeof:O,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),w=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(o.push(s.value),!t||o.length!==t);n=!0);}catch(d){r=!0,i=d}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();const j=a.a.div.withConfig({componentId:"s6qudme-0"})(["margin-left: 3px;"]),S=a()(l).withConfig({componentId:"s6qudme-1"})(["height: 16px;width: 16px;vertical-align: bottom;",""],e=>{if(e.forceSmallEmojis||!e.theme.subredditContext.customEmojisSize)return"";var t=w(e.theme.subredditContext.customEmojisSize,2);return`\n width: ${t[0]}px;\n height: ${t[1]}px;\n `}),P=e=>e.onClick?C(m.a,{onClick:()=>e.onClick(e.searchableTerm),to:((e,t)=>{const o=t?`/r/${t}/search`:"/search",n=`${t?"flair_name":"flair"}:"${e}"`;return Object(d.a)(o,{[p.n]:n,[p.o]:t?"1":""})})(e.searchableTerm,e.subredditName),children:e.flair}):e.flair,M=Object(s.withTheme)(e=>{let t="",o=!1;const n=e.richtext.map((n,r)=>{if(n.e===b.b.Emoji){const r=n;return t+=r.a,o=!0,C(S,{forceSmallEmojis:e.forceSmallEmojis,backgroundImage:r.u,title:r.a},r.u)}{const e=n;return t+=e.t,C("span",{},e.t,e.t)}});let r;if(o&&!e.forceSmallEmojis&&e.theme&&e.theme.subredditContext.customEmojisSize&&e.theme.subredditContext.customEmojisSize[1]>16){r={marginTop:`-${w(e.theme.subredditContext.customEmojisSize,2)[1]-16}px`}}const i=C(j,{className:e.className,style:r},void 0,n);return C(P,{flair:i,onClick:e.onClick?()=>{e.onClick(t)}:void 0,searchableTerm:t,subredditName:e.subredditName})}),I=e=>e=>!e.textColor||e.textColor&&!e.backgroundColor?Object(v.c)(e).postFlairText:"transparent"===e.backgroundColor?Object(h.a)(Object(v.c)(e).post,u.a.black,u.a.white):e.textColor===b.d.Dark?u.a.black:u.a.white,k=`\n ${f.flairFont}\n border-radius: 2px;\n display: inline-block;\n margin-right: 5px;\n overflow: hidden;\n text-overflow: ellipsis;\n vertical-align: text-bottom;\n white-space: nowrap;\n`,N=a()(e=>{const t=C("span",{className:e.className},void 0,e.text);return C(P,{flair:t,onClick:e.onClick,searchableTerm:e.text,subredditName:e.subredditName})}).withConfig({componentId:"s6qudme-2"})(["","background-color: ",";color: ",";padding: ",";"],k,e=>e.backgroundColor||Object(v.c)(e).flair,e=>I(e),e=>"transparent"===e.backgroundColor?"0":"0 4px"),E=a()(M).withConfig({componentId:"s6qudme-3"})(["","background-color: ",";color: ",";margin-left: 0;padding: ",";"],k,e=>e.backgroundColor||Object(v.c)(e).flair,e=>I(e),e=>"transparent"===e.backgroundColor?"0":"0 4px"),T=e=>{switch(e.type){case"spoiler":return"#A4A7A8";case"nsfw":return"#FF585B";default:return Object(i.h)(.1,Object(v.c)(r()(e,"theme","redditStyle","data-redditstyle")).button)}},L=a()(e=>{const t=C("span",{className:e.className},void 0,e.text);return C(P,{flair:t,searchableTerm:e.text})}).withConfig({componentId:"s6qudme-4"})(["","padding: 0 4px;border: solid 1px ",";color: ",";"],k,e=>T(e),e=>T(e)),_=a()(e=>{const t=C("span",{className:e.className},void 0,C(g.b,{className:x.a.patreonIcon}),e.text);return C(P,{flair:t,searchableTerm:e.text})}).withConfig({componentId:"s6qudme-5"})(["","background-color: ",";color: ",";padding: 0 4px;"],k,g.a,u.a.white);t.c=(e=>{const t=e.className,o=e.flair;var n=e.disabled;const r=void 0!==n&&n,i=e.onClick,s=e.subredditName,a=e.usesCommunityStyles,d=e.forceSmallEmojis;switch(o.type){case b.e.Richtext:return r||!o.richtext?null:C(E,{backgroundColor:o.backgroundColor,className:t,forceSmallEmojis:d,onClick:i,redditStyle:!a,richtext:o.richtext,subredditName:s,textColor:o.textColor});case b.e.Text:return r||!o.text?null:C(N,{backgroundColor:o.backgroundColor,className:t,onClick:i,subredditName:s,text:o.text,textColor:o.textColor,redditStyle:!a});case b.e.Meta:return C(N,{backgroundColor:o.backgroundColor,className:t,subredditName:s,text:o.text,textColor:o.textColor,redditStyle:!a});case b.e.Nsfw:case b.e.Spoiler:return C(L,{className:t,text:o.text,type:o.type});case b.e.PatreonPatron:return C(_,{className:t,text:o.text});case b.e.Quarantined:return null;default:return o.text?C(N,{backgroundColor:o.backgroundColor,className:t,onClick:i,subredditName:s,text:o.text,redditStyle:!a}):null}})},"./src/reddit/components/FlairPickerTitle/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/reddit/icons/svgs/Close/index.tsx"),a=o("./src/reddit/layout/row/Inline/index.tsx"),d=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),c=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const l=i()(a.a).withConfig({componentId:"s1nhuz6z-0"})(["color: ",";padding: 8px 16px;"],e=>Object(d.c)(e).bodyText),u=i.a.div.withConfig({componentId:"s1nhuz6z-1"})(["cursor: pointer;margin-left: auto;"]),p=i()(s.a).withConfig({componentId:"s1nhuz6z-2"})(["height: 12px;padding: 4px;width: 12px;fill: ",""],e=>Object(d.c)(e).actionIcon);t.a=(e=>c(l,{},void 0,c("div",{},void 0,e.title),c(u,{onClick:e.onClosePressed},void 0,c(p,{}))))},"./src/reddit/components/FlairPickerWrapper/index.tsx":function(e,t,o){"use strict";var n=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(n),i=o("./src/reddit/constants/screenWidths.ts"),s=o("./src/reddit/models/Theme/NewColorSystem/index.ts");const a=r.a.div.withConfig({componentId:"s14slsgg-0"})(["width: 402px;max-width: 100%;box-sizing: border-box;& > * {border-bottom: solid 1px ",";}@media (max-width: ","px) {width: 360px;}"],e=>Object(s.c)(e).line,i.i);t.a=a},"./src/reddit/components/FlairPreview/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/app/strings/index.ts"),a=o("./src/reddit/components/Flair/index.tsx"),d=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),c=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),l=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const u=i.a.span.withConfig({componentId:"s1io4u5o-0"})(["vertical-align: middle;"]),p=i.a.div.withConfig({componentId:"s1io4u5o-1"})(["","border-bottom: none;color: ",";display: flex;text-align: center;padding: 22px 16px;vertical-align: middle;white-space: nowrap;"],d.metadataFont,e=>Object(c.c)(e).bodyText),m=i()(a.c).withConfig({componentId:"s1io4u5o-2"})(["box-sizing: border-box;margin-bottom: 0;margin-left: 8px;max-width: 80%;overflow: hidden;text-overflow: ellipsis;vertical-align: middle;white-space: nowrap;"]);t.a=(e=>e.flair?l(p,{},void 0,l(u,{},void 0,e.placeholderText),l(m,{flair:e.flair,forceSmallEmojis:!0})):l(p,{},void 0,Object(s.a)(e.language,"flair.noFlair")))},"./src/reddit/components/FlairSearch/FlairEdit/helper.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return p});var n,r=o("./node_modules/lodash/once.js"),i=o.n(r),s=(o("./node_modules/react/index.js"),o("./bundled-modules/styled-components/styled-components.min.js")),a=o.n(s),d=o("./src/higherOrderComponents/makeAsync.tsx"),c=o("./src/lib/loadWithRetries/index.ts"),l=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const u=a()(e=>l("div",{className:e.className})).withConfig({componentId:"c38byg-0"})(["height: 68px;"]),p=i()((e=u)=>Object(d.a)({getComponent:()=>Object(c.a)(()=>Promise.all([o.e("vendors~FlairEdit~PostCreation~RichTextEditor"),o.e("FlairEdit")]).then(o.bind(null,"./src/reddit/components/FlairSearch/FlairEdit/index.tsx")).then(e=>e.default)),ErrorComponent:e,LoadingComponent:e}))},"./src/reddit/components/FlairSearch/index.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=o("./node_modules/react-redux/es/index.js"),a=o("./node_modules/reselect/lib/index.js"),d=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(d),l=o("./src/app/strings/index.ts"),u=o("./src/reddit/icons/svgs/Search/index.tsx"),p=o("./src/reddit/models/Flair/index.ts"),m=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),f=o("./src/reddit/selectors/moderatorPermissions.ts"),h=o("./src/reddit/components/FlairSearch/FlairEdit/helper.tsx"),g=o("./src/reddit/components/Flair/index.tsx"),b=o("./src/reddit/constants/colors.ts"),v=o("./src/reddit/controls/RadioInput/index.tsx"),y=o("./src/reddit/controls/RadioInput/RadioOption/index.tsx"),x=o("./src/reddit/icons/svgs/Pencil/index.tsx"),O=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const C=c()(g.c).withConfig({componentId:"s16mh6sl-0"})(["overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"]),w=c.a.div.withConfig({componentId:"s16mh6sl-1"})(["background-color: ",";border-top: 1px solid ",";box-sizing: border-box;height: 242px; /* from design spec, to keep the modal from being too long */overflow-y: auto;padding: 16px 0;"],e=>Object(m.c)(e).field,e=>Object(m.c)(e).line),j=c()(y.a).withConfig({componentId:"s16mh6sl-2"})(["cursor: pointer;line-height: 16px;padding: 4px 16px;&:hover, &:focus {background-color: ",";color: white;outline: none;}"],b.a.op),S=c()(x.a).withConfig({componentId:"s16mh6sl-3"})(["fill: ",";height: 16px;width: 16px;"],e=>Object(m.c)(e).actionIcon);var P=e=>{const t=e.query?e.templateIds.filter(t=>{return-1!==e.templates[t].text.toLowerCase().indexOf(e.query.toLowerCase())}):e.templateIds;return O(w,{},void 0,O(v.a,{name:"FLAIR_PICKER",onChange:e.onChange,children:t&&t.map((t,o)=>{const n=e.templates[t],r=Object(p.i)(n),i=e.value===t||!e.value&&0===o;return O(j,{showButton:!0,tabIndex:i?0:-1,value:t},t,O(C,{flair:r,forceSmallEmojis:!0}),n.textEditable&&O(S,{}))}),value:e.value||""}))},M=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const I="FlairSearch-EmojiPicker-DropdownId",k=c.a.div.withConfig({componentId:"s10w4zo6-0"})(["padding: 14px 16px;"]),N=c()(k).withConfig({componentId:"s10w4zo6-1"})(["border-top: 1px solid ",";position: relative;"],e=>Object(m.c)(e).line),E=c()(u.a).withConfig({componentId:"s10w4zo6-2"})(["fill: ",";height: 16px;width: 16px;position absolute;left: 24px;top: 32px;"],e=>Object(m.c)(e).actionIcon),T=c.a.input.withConfig({componentId:"s10w4zo6-3"})(["background-color: ",";border: 1px solid ",";color: ",";border-radius: 4px;box-sizing: border-box;height: 50px;padding: 0 16px;width: 100%;"],e=>Object(m.c)(e).field,e=>Object(m.c)(e).line,e=>Object(m.c)(e).bodyText),L=c()(T).withConfig({componentId:"s10w4zo6-4"})(["padding-left: 32px;"]),_=Object(a.createStructuredSelector)({isModerator:f.b}),F=Object(s.connect)(_);t.a=F(class extends i.a.Component{constructor(e){super(e),this.onFlairEdit=(e=>{const t=this.props.selectedTemplateId;this.setState({editFlair:e}),this.props.onChange(e,t)}),this.onSearchChange=(e=>this.setState({searchQuery:e.target.value})),this.onTemplateSelected=(e=>{const t=this.props.templates;if(t){const o=t[e],n=Object(p.i)(o);this.setState({editFlair:n}),this.props.onChange(n,e)}});const t=this.props.selectedTemplateId,o=this.props.templates,n=this.props.isModerator||t&&o&&o[t]&&o[t].textEditable,r={type:p.e.Text,text:""};this.state={searchQuery:"",editFlair:n&&e.appliedFlair?e.appliedFlair:r}}render(){const e=this.props,t=this.state,o=e.isModerator,n=e.templates,r=e.templateIds,i=e.selectedTemplateId,s=e.subredditId,a=n&&i&&n[i],d=Object(h.a)();return M("div",{className:e.className},void 0,(o||a&&a.textEditable)&&M(k,{},void 0,M(d,{emojiPickerId:I,subredditId:s,onChange:this.onFlairEdit,flair:this.state.editFlair})),M(N,{},void 0,M(L,{onChange:this.onSearchChange,type:"text",placeholder:Object(l.a)(e.language,"flair.searchPlaceholder"),value:t.searchQuery},void 0),M(E,{})),n&&r&&M(P,{flairTemplateType:e.flairTemplateType,onChange:this.onTemplateSelected,query:t.searchQuery.length>0?t.searchQuery:"",templateIds:r,templates:n,value:e.selectedTemplateId}))}})},"./src/reddit/components/FlairWrapper/index.m.less":function(e,t,o){e.exports={flairList:"lrzZ8b0L6AzLkQj5Ww7H1",flairWrapper:"_2fiIRtMpITeCAzXc4cANKp",flairNoWrap:"_2xu1HuBz1Yx6SP10AGVx_I"}},"./src/reddit/components/FlairWrapper/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./node_modules/react-redux/es/index.js"),i=o("./node_modules/reselect/lib/index.js"),s=o("./src/app/strings/index.ts"),a=o("./src/lib/classNames/index.ts"),d=o("./src/reddit/components/CategoryTagList/index.tsx"),c=o("./src/reddit/components/Flair/index.tsx"),l=o("./src/reddit/models/Flair/index.ts"),u=o("./src/reddit/selectors/user.ts"),p=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const m=Object(i.createStructuredSelector)({labelNSFW:u.L}),f=Object(r.connect)(m);var h=f(({className:e,onClick:t,disabled:o=!1,flair:n,labelNSFW:r,subredditName:i})=>{const s=!!n.find(e=>e.type===l.e.Richtext),a=n.map(e=>e.type===l.e.Text&&s?null:r||e.type!==l.e.Nsfw?p(c.c,{onClick:t,disabled:o,flair:e,forceSmallEmojis:!0,subredditName:i},(e=>{if(e.type===l.e.Richtext&&e.richtext){const t=e.richtext.map(e=>e.e===l.b.Emoji?e.u:e.t).join("-");return`${e.type}--${t}`}return`${e.type}--${e.text}`})(e)):null);return p("div",{className:e},void 0,a)}),g=o("./src/reddit/contexts/PageLayer/index.tsx"),b=o("./src/reddit/helpers/correlationIdTracker.ts"),v=o("./src/reddit/helpers/trackers/postFlair.ts"),y=o("./src/reddit/selectors/postFlair.ts"),x=o("./src/reddit/selectors/posts.ts"),O=o("./src/reddit/selectors/subreddit.ts"),C=o("./src/reddit/components/FlairWrapper/index.m.less"),w=o.n(C);o.d(t,"b",function(){return P});var j=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const S=Object(r.connect)(()=>Object(i.createStructuredSelector)({flairPosition:(e,{pageLayer:t})=>Object(g.s)(e,{pageLayer:t}),isMeta:(e,{post:t})=>Object(x.m)(e,t.id),isPostFlairEnabled:(e,t)=>Object(y.a)(e,{subredditId:t.post.belongsTo.id}),language:u.M,postCategories:(e,{post:t})=>Object(x.w)(e,t),subredditName:(e,{post:t})=>Object(O.G)(e,{subredditId:t.belongsTo.id}).name})),P=(e,t,o)=>(e?[{type:l.e.Meta,text:Object(s.a)(o,"polls.poll")}]:[]).concat(t.flair);t.a=S(({className:e,disableFlair:t,flairPosition:o,isPostFlairEnabled:n,isMeta:r,language:i,nowrap:s,post:c,postCategories:u,sendEvent:p,showCategoryTag:m,subredditName:f,titleFlair:g})=>{const y=o===l.a.Left,x=g||P(r,c,i),O=[];let C=[];y?x.map(e=>{Object(l.k)(e.type)?O.push(e):C.push(e)}):C=x;const S=s?w.a.flairNoWrap:O.length>0||C.length>0||u&&m?w.a.flairWrapper:null,M=e=>{const t={id:c.belongsTo.id,eventType:c.belongsTo.type,originElement:"post_flair",postFlairName:e};Object(b.d)(b.a.SearchResults),p&&p(Object(v.a)(c.id,t))},I=!(t||!c.flair||!c.flair.length),k=!!(m&&u&&u.length);return I||k?j("div",{className:Object(a.a)(S,e)},void 0,I&&O&&j(h,{className:w.a.flairList,onClick:M,flair:O,disabled:!n,subredditName:f},"leftFlair"),I&&j(h,{className:w.a.flairList,onClick:M,flair:C,disabled:!n,subredditName:f},"rightFlair"),k&&j(d.a,{inLightboxHeader:s,postId:c.id,postCategories:u})):null})},"./src/reddit/components/Governance/ModalClose/index.m.less":function(e,t,o){e.exports={closeIcon:"zKTP6l--BljeY4s019li6"}},"./src/reddit/components/Governance/ModalClose/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return m});o("./node_modules/react/index.js");var n,r=o("./node_modules/react-redux/es/index.js"),i=o("./bundled-modules/styled-components/styled-components.min.js"),s=o("./src/lib/classNames/index.ts"),a=o("./src/reddit/actions/modal.ts"),d=o("./src/reddit/icons/svgs/Close/index.tsx"),c=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),l=o("./src/reddit/components/Governance/ModalClose/index.m.less"),u=o.n(l),p=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const m=Object(i.css)(["."," {fill: ",";}"],u.a.closeIcon,e=>Object(c.c)(e).actionIcon);t.a=Object(r.connect)(void 0,(e,{afterClose:t})=>({onClose:()=>{e(Object(a.f)()),t&&t()}}))(function(e){return p(d.a,{className:Object(s.a)(u.a.closeIcon,e.className),onClick:e.onClose})})},"./src/reddit/components/Governance/ModalTitle/index.m.less":function(e,t,o){e.exports={container:"_1O5EP15-IiRk-UvArRmhUw",title:"_38raT44MC66Wx-UBjmJUGO"}},"./src/reddit/components/Governance/ModalTitle/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return u}),o.d(t,"a",function(){return p});o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o("./src/lib/classNames/index.ts"),s=o("./src/reddit/components/Governance/ModalClose/index.tsx"),a=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),d=o("./src/reddit/components/Governance/ModalTitle/index.m.less"),c=o.n(d),l=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const u=Object(r.css)(["."," {color: ",";}",""],c.a.title,e=>Object(a.c)(e).bodyText,s.b);function p(e){return l("div",{className:Object(i.a)(c.a.container,e.className)},void 0,l("div",{className:c.a.title},void 0,e.children),l(s.a,{}))}},"./src/reddit/components/Governance/PostPollMetaData/index.m.less":function(e,t,o){e.exports={proposalMetaData:"_2uZcUQgumllsYgn5TxSizG",proposalMetaDataTime:"_1u5ghYiKbGasP3ORCsbasV"}},"./src/reddit/components/Governance/ReleaseNotesModal/ReleaseDate/index.m.less":function(e,t,o){e.exports={date:"_1by4A-0PLBX13RXvipwRcH"}},"./src/reddit/components/Governance/ReleaseNotesModal/Slide/index.m.less":function(e,t,o){e.exports={media:"MIDgJ92fubZO3ngkh6ERh",text:"_3cbhcaToRzSvS3AZHJJvLi",title:"_1nM99kzHmBctirluJKfGFl"}},"./src/reddit/components/Governance/ReleaseNotesModal/SlideChange/index.m.less":function(e,t,o){e.exports={arrow:"_16aq4YoQYc6_O-E66cDxvD",container:"sBFMqVph7JM7fhtn8VIiv",prev:"_29Q_dDO_ANxqcMkzCOmsm-"}},"./src/reddit/components/Governance/ReleaseNotesModal/SlideIndicator/index.m.less":function(e,t,o){e.exports={container:"_1eV0V57guaBVMeKljYRDZV",dot:"_1W94VLaridFHpaS6aIPX0M"}},"./src/reddit/components/Governance/ReleaseNotesModal/index.m.less":function(e,t,o){e.exports={controls:"_1d3JALELQYjabIq8gl2EoW",controlBox:"_3yJ4xUsPnm94-kYEcZTx2F",title:"_1j-YFVTgvDYE6azr1ERUw9"}},"./src/reddit/components/Header/QuickLinks/index.m.less":function(e,t,o){e.exports={row:"_1vXXD2qKLnHetdKvisFzBD",container:"x0hiXHicn7r3BG9m1FJH4",icon:"_3dZnYgFFpifT-M_Vs2FAq6"}},"./src/reddit/components/Header/Sparse.m.less":function(e,t,o){e.exports={Logo:"_27RfkQ1Fuxjg5UzNJqCtC-",logo:"_27RfkQ1Fuxjg5UzNJqCtC-",Wordmark:"_1j_hHS0lKR-ok52j1iYlId",wordmark:"_1j_hHS0lKR-ok52j1iYlId",HomeExternalLink:"XGVEYXuPeFqHqAf2DqHaM",homeExternalLink:"XGVEYXuPeFqHqAf2DqHaM"}},"./src/reddit/components/Header/Sparse.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return O});o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/reddit/constants/componentSizes.ts"),a=o("./src/reddit/constants/elementIds.ts"),d=o("./src/reddit/constants/zIndex.ts"),c=o("./src/reddit/icons/svgs/Snoo/index.tsx"),l=o("./src/reddit/icons/svgs/Wordmark/index.tsx"),u=o("./src/reddit/layout/row/Inline/index.tsx"),p=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),m=o("./src/reddit/components/Header/Sparse.m.less"),f=o.n(m),h=o("./src/lib/lessComponent.tsx"),g=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const b=h.a.wrapped(c.a,"Logo",f.a),v=h.a.wrapped(l.a,"Wordmark",f.a),y=i.a.div.withConfig({componentId:"s1sgm51g-0"})(["align-items: center;background-color: ",";border-bottom: 1px solid ",";box-sizing: border-box;display: flex;flex-direction: row;height: ","px;margin-left: auto;position: relative;z-index: ",";"],e=>Object(p.c)(e).body,e=>Object(p.c)(e).line,s.j,d.r),x=h.a.a("HomeExternalLink",f.a);function O(){return g(y,{id:a.c},void 0,g(x,{href:"#",onClick:()=>window.location.reload(!0)},void 0,g(u.a,{},void 0,g(b,{}),g(v,{}))))}},"./src/reddit/components/Header/User/index.m.less":function(e,t,o){e.exports={button:"_3Wg53T10KuuPmyWOMWsY2F",icon:"_234aKY_LemFWuSTYVoshHn",link:"_2qcLS5et_OlJluP0WWDdsJ",loggedOut:"U3FRqDA_Qhr4icbaNXSuf",loggedOutRow:"_1JBkpB_FOZMZ7IPr3FyNfH",oldRedditLink:"_31lJpVPojF0SAR5usRZ36h",row:"_19oWd7e3z7-ztUGzdIoCR7",separator:"Z_HUY3BUsGOBOtdmH94ZS",visitOldReddit:"_3Z5rfDuvQDBNfBgpXdnt_b"}},"./src/reddit/components/Header/index.m.less":function(e,t,o){e.exports={centeredRow:"_30BbATRhFv3V83DHNDjJAO",container:"_2GyPfdsi-MbQFyHRECo9GO",layout:"_2vkeRJojnV7cb9pMlPHy7d",compactLayout:"Y4MkVr6trrdypfZVUkpIA",searchContainer:"_1iqnOY2Y57wmetu8MAjiId",search:"_2dlTXDaX9JuL0bekTwhV18",snoo:"_1O4jTk-dZ-VIxsCuYB6OR8",wordmark:"_1bWuGs_1sq4Pqy099x_yy-",left:"_3dnbqz69WJTFCss8wl7Wlk",quickLinks:"_23q1waDr4n_2fR5A7zcZzb",right:"_2u8LqkbMtzd0lpblMFbJq5"}},"./src/reddit/components/HeaderSubredditSelector/Compact/index.m.less":function(e,t,o){e.exports={container:"wbuVa6YG7M8XkqaQ7Jh2I",link:"_2dqQ0-lgXxJq7S-QgupMNE",icon:"_2vaxHFhEXUi8w9mcExfLrx",text:"kYSum1Wd7yU21JxlhEpQf",badge:"_2rWvOyeOipRn46kEPRRe-K"}},"./src/reddit/components/HeaderSubredditSelector/GenericListItem/index.m.less":function(e,t,o){e.exports={item:"_26MVepkxZHzpNv1cuAA4JA",icon:"cq0sTeCPC4GI78UNPdClD",text:"_1nBP1OfpQDgTmzRFqaVult"}},"./src/reddit/components/HeaderSubredditSelector/ListHeader/index.m.less":function(e,t,o){e.exports={header:"_1Ok0AiXwAeYl2SsUBaxgPC"}},"./src/reddit/components/HeaderSubredditSelector/ListItem/index.m.less":function(e,t,o){e.exports={item:"XEkFoehJNxIH9Wlr5Ilzd",itemWrapper:"_17q-ew4FcK6U0ZiybWkIGG",icon:"_3HTtcITrR-crvsRovLrijl",text:"_2aqH0n-kSzFY7HZZ5GL-Jb",trending:"_2H51id1RX9dGNrtrAIOMGK",subText:"_2Efd4uMAp4YawdvL9Zhdhv",title:"_1JNAu7U5gWAkRoykwfUWhY",favorite:"t2A0mgkgGzc8cAahJsR7a",multi:"_3Hhjob0kyyqVjBXut8STgU",trendingContent:"BNJ5Y52EyQmTHFZJwjoXJ",relatedSubredditMetaData:"_3P_WRCH8aFjwOFA7B1RlBL"}},"./src/reddit/components/HeaderSubredditSelector/LoadingListSection/index.m.less":function(e,t,o){e.exports={header:"_3n88GuUHAnxPu6a--3e0sz",item:"_1TJuQGHgWvq2fnkVcPN7d0"}},"./src/reddit/components/HeaderSubredditSelector/LoadingListSection/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return c}),o.d(t,"a",function(){return l});o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),s=o("./src/reddit/components/HeaderSubredditSelector/LoadingListSection/index.m.less"),a=o.n(s),d=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const c=Object(r.css)([".",", ."," {background-color: ",";}"],a.a.header,a.a.item,e=>Object(i.c)(e).line);function l(e){return d("div",{className:e.className},void 0,d("div",{className:a.a.header}),d("div",{className:a.a.item}),d("div",{className:a.a.item}),d("div",{className:a.a.item}),d("div",{className:a.a.item}))}},"./src/reddit/components/HeaderSubredditSelector/SubredditList/index.m.less":function(e,t,o){e.exports={filter:"_37tmRmxaFMjRRrvwcY2JmY",item:"_2MgAHlPDdKvXiG-Qbz5cbC",listHeader:"_2XRPX11qL4-HxWPuHAzOW5"}},"./src/reddit/components/HeaderSubredditSelector/index.m.less":function(e,t,o){e.exports={caretDown:"_3CG2U_hX3HI-ibl5v2RCq1",container:"_3jiriKeNer8y0-1r6oWIFM","m-pinned":"xjCRzBW5hOCrr1kwceHRs",mPinned:"xjCRzBW5hOCrr1kwceHRs",containerText:"_1GieMuLljOrqnVpRAwz7VP",defaultIcon:"eZQ5o2PrhR59wkAtPbxMU",icon:"_1jKtP65jnxLmoGCSqxAgkZ",itemIcon:"_139PgjqaVJ8tq4kF4QznMX",itemModQueue:"_1VemFsujoJ-6RR82VRSPeM",listContainer:"TMMvbwyeh9yuHKmQWHrE3",itemCoin:"_334CPGEglbIA_2CwQAn43P",coinIcon:"JisrPypso_3RK4iDgDdke",itemPremium:"yeM4RoZW6FtJxVPe3Z84C",premiumIcon:"_2ulegyMhoTE_WCFyBC-IBx",modQueueIcon:"_2L4XuYlbElLC5REx1XpdG_",pin:"_2FVCfsIPxXtl6S-c69sXO4",disabled:"_371yhrlWAj7dxOsk1PWqG4",selector:"h-jI8r2f9ozTNqu_2TBeY",subredditIcon:"_3fvJBCH6c6P0NvMwoqK9MJ",unknownIcon:"_1hCoGzhwFdfF2vGbt8IjSy"}},"./src/reddit/components/HeaderUserActions/CustomizeFlyout/index.m.less":function(e,t,o){e.exports={container:"nSJCQrnLY07CzwT8tTsNO",title:"csebgIdGwT3fBJ8kUT2aQ",subtitle:"rsZg2IAMPbcDGNPnNIBy_",description:"_3m-DocsNGlVUjAtAm7ZZLi",fvfo:"_39OhAB_u8IsYJLbCpGJ4UM",dismissBtn:"_3tJL-r-lrTcB_GkrrlZxEN"}},"./src/reddit/components/HelpfulTooltip/index.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),r=o.n(n),i=o("./bundled-modules/styled-components/styled-components.min.js"),s=o.n(i),a=o("./src/reddit/components/ModalStyledComponents/index.tsx");var d,c=o("./src/reddit/controls/Dropdown/index.tsx"),l=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),u=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),p=(d="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var s in r)void 0===t[s]&&(t[s]=r[s]);else t||(t=r||{});if(1===i)t.children=n;else if(i>1){for(var a=Array(i),c=0;c<i;c++)a[c]=arguments[c+3];t.children=a}return{$$typeof:d,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const m=s()(c.a).withConfig({componentId:"s1fd1rgy-0"})(["","background-color: ",";color: ",";overflow: visible;width: 300px;animation: slide-bottom 0.3s cubic-bezier"," both, fade-in 0.1s cubic-bezier"," both;/*** ----------------------------------------* animation slide-bottom* ----------------------------------------*/@keyframes slide-bottom {0% {transform: translateY(-10px);}100% {transform: translateY(0);}}/*** ----------------------------------------* animation fade-in* ----------------------------------------*/@keyframes fade-in {0% {opacity: 0;}100% {opacity: 1;}}&:before {background-color: ",';content: "";height: .75em;left: 4%;position: absolute;top: 0%;transform: translateX(-50%) translateY(-50%) rotate(45deg);width: .75em;}'],l.bodyFontH5,e=>Object(u.c)(e).button,e=>Object(u.c)(e).body,"(.70,.10,.20,.90)","(.65,.08,.35,.76)",e=>Object(u.c)(e).button),f=s.a.button.withConfig({componentId:"s1fd1rgy-1"})(["position: absolute;right: 8px;top: 8px;"]),h=s()(a.b).withConfig({componentId:"s1fd1rgy-2"})(["fill: ",";height: 12px;width: 12px;opacity: 0.5;"],e=>Object(u.c)(e).body),g=s.a.div.withConfig({componentId:"s1fd1rgy-3"})(["padding: 16px;"]);t.a=class extends r.a.Component{render(){const e=this.props;return p(m,{className:e.className,"data-redditstyle":!0,isFixed:e.isFixed,style:e.style},void 0,!e.hideCloseButton&&p(f,{onClick:e.onCloseClick},void 0,p(h,{})),p(g,{},void 0,e.text))}}},"./src/reddit/components/Hovercards/HoverDiv/index.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),r=o.n(n),i=o("./bundled-modules/styled-components/styled-components.min.js"),s=o.n(i),a=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),c=o("./src/app/actions/tooltip.ts"),l=o("./src/reddit/actions/users.ts"),u=o("./src/reddit/selectors/tooltip.ts");const p=Object(d.createStructuredSelector)({dropdownIsOpen:(e,t)=>Object(u.b)(t.tooltipId)(e)});var m=Object(a.connect)(p,(e,t)=>({onCloseUserDropdown:()=>e(Object(c.f)()),onOpenUserDropdown:async()=>{e(Object(c.d)({tooltipId:t.tooltipId})),t.authorOrSubredditName&&e(Object(l.s)(t.authorOrSubredditName))}})),f=o("./src/reddit/actions/subreddit.ts");const h=Object(d.createStructuredSelector)({dropdownIsOpen:(e,t)=>Object(u.b)(t.tooltipId)(e)});var g=Object(a.connect)(h,(e,t)=>({onCloseUserDropdown:()=>e(Object(c.f)()),onOpenUserDropdown:async()=>{e(Object(c.d)({tooltipId:t.tooltipId})),t.authorOrSubredditName&&e(Object(f.s)(t.authorOrSubredditName))}}));o.d(t,"a",function(){return x}),o.d(t,"b",function(){return O});var b,v=(b="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var s in r)void 0===t[s]&&(t[s]=r[s]);else t||(t=r||{});if(1===i)t.children=n;else if(i>1){for(var a=Array(i),d=0;d<i;d++)a[d]=arguments[d+3];t.children=a}return{$$typeof:b,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const y=s()(class extends r.a.Component{constructor(){super(...arguments),this.closeHovercardTimeoutId=0,this.openHovercardTimeoutId=0,this.isHovering=!1,this.hoverEl=void 0,this.onHoverElMouseEnter=(()=>{this.isHovering=!0}),this.onHoverElMouseLeave=(()=>{this.isHovering=!1}),this.onMouseEnter=(e=>{this.closeHovercardTimeoutId&&clearTimeout(this.closeHovercardTimeoutId),this.openHovercardTimeoutId=window.setTimeout(()=>{this.isHovering||this.props.dropdownIsOpen||(this.props.onOpenUserDropdown(),this.props.sendHoverEvent())},500)}),this.onMouseLeave=(()=>{this.openHovercardTimeoutId&&clearTimeout(this.openHovercardTimeoutId),this.closeHovercardTimeoutId=window.setTimeout(()=>{this.isHovering||this.props.onCloseUserDropdown()},300)})}componentDidMount(){const e=document.getElementById(this.props.hoverId);e&&(this.hoverEl=e,this.addHoverListeners(this.hoverEl))}componentWillUnmount(){this.hoverEl&&this.removeHoverListeners(this.hoverEl),this.hoverEl=void 0,this.openHovercardTimeoutId&&window.clearTimeout(this.openHovercardTimeoutId)}addHoverListeners(e){e.addEventListener("mouseenter",this.onHoverElMouseEnter),e.addEventListener("mouseleave",this.onHoverElMouseLeave)}removeHoverListeners(e){e.removeEventListener("mouseenter",this.onHoverElMouseEnter),e.removeEventListener("mouseleave",this.onHoverElMouseLeave)}render(){var e=this.props;const t=e.children,o=e.className;return v("div",{className:o,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},void 0,t)}}).withConfig({componentId:"xvda30-0"})(["display: inline-block;flex: 0 0 auto;"]),x=m(y),O=g(y)},"./src/reddit/components/Hovercards/SubredditHovercard/index.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),r=o.n(n),i=o("./src/reddit/components/Hovercards/helpers.ts"),s=o("./src/reddit/components/Hovercards/HoverDiv/index.tsx"),a=o("./src/reddit/components/TrackingHelper/index.tsx"),d=o("./src/reddit/selectors/telemetry.ts");const c=(e,t,o)=>n=>({source:"subreddit_hovercard",action:"click",noun:t,post:o?d.post(n,o):void 0,subreddit:d.subredditById(n,e),screen:d.screen(n)}),l=(e,t)=>o=>({source:"subreddit_hovercard",action:"view",noun:"hover_subreddit_hovercard",post:t?d.post(o,t):void 0,subreddit:d.subredditById(o,e),screen:d.screen(o)});var u,p=o("./node_modules/react-redux/es/index.js"),m=o("./node_modules/reselect/lib/index.js"),f=o("./src/app/actions/tooltip.ts"),h=o("./src/reddit/selectors/subreddit.ts"),g=o("./src/reddit/selectors/tooltip.ts"),b=o("./src/reddit/selectors/user.ts"),v=o("./node_modules/react-router-dom/es/index.js"),y=o("./bundled-modules/styled-components/styled-components.min.js"),x=o.n(y),O=o("./src/app/strings/index.ts"),C=o("./src/higherOrderComponents/asTooltip.tsx"),w=o("./src/lib/prettyPrintNumber/index.ts"),j=o("./src/reddit/components/CommunityType/index.tsx"),S=o("./src/reddit/components/JSAPIContainers/index.tsx"),P=o("./src/reddit/components/SubredditIcon/index.tsx"),M=o("./src/reddit/constants/zIndex.ts"),I=o("./src/reddit/controls/Button/index.tsx"),k=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),N=o("./src/reddit/helpers/truncateStringWithEllipsis.ts"),E=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},L=(u="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var s in r)void 0===t[s]&&(t[s]=r[s]);else t||(t=r||{});if(1===i)t.children=n;else if(i>1){for(var a=Array(i),d=0;d<i;d++)a[d]=arguments[d+3];t.children=a}return{$$typeof:u,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const _=x()(P.b).withConfig({componentId:"kfn89v-0"})(["margin-right: 8px;height: 32px;width: 32px;"]),F=x()(v.a).withConfig({componentId:"kfn89v-1"})(["","align-items: center;color: ",";display: flex;"],k.titleFontH4,e=>Object(E.c)(e).bodyText),R=x.a.div.withConfig({componentId:"kfn89v-2"})(["","color: ",";padding: 8px 0;"],k.metadataFont,e=>Object(E.c)(e).bodyText),A=x.a.div.withConfig({componentId:"kfn89v-3"})(["width: 100%;box-sizing: border-box;display: flex;"]),$=x.a.div.withConfig({componentId:"kfn89v-4"})(["display: flex;padding: 8px 0px;"]),D=x.a.div.withConfig({componentId:"kfn89v-5"})(["border-right: 1px solid ",";flex: 1 0 auto;"],e=>Object(E.c)(e).line),B=x.a.div.withConfig({componentId:"kfn89v-6"})(["flex: 1 0 auto;padding-left: 12px;"]),H=x.a.div.withConfig({componentId:"kfn89v-7"})(["","color: ",";"],k.titleFontH4,e=>Object(E.c)(e).bodyText),Q=x.a.div.withConfig({componentId:"kfn89v-8"})(["","color: ",";"],k.metadataFont,e=>Object(E.c)(e).metaText),U=x.a.div.withConfig({componentId:"kfn89v-9"})(["padding: 12px;"]),z=e=>L($,{},void 0,L(D,{},void 0,L(H,{},void 0,Object(w.b)(e.subredditAboutInfo.subscribers)),L(Q,{},void 0,Object(O.a)(e.language,"structuredStyles.widgets.id-card.subscribersText"))),L(B,{},void 0,L(H,{},void 0,Object(w.b)(e.subredditAboutInfo.accountsActive)),L(Q,{},void 0,Object(O.a)(e.language,"structuredStyles.widgets.id-card.currentlyViewingText")))),G=x.a.div.withConfig({componentId:"kfn89v-10"})(["background-color: ",";border-radius: 4px;box-shadow: 0 1px 3px rgba(0,0,0,0.2);position: absolute;width: ","px;z-index: ",";"],e=>Object(E.c)(e).body,240,M.u),V=Object(C.a)(e=>{const t=e.className,o=e.hoverId,n=e.language,r=e.postId,i=e.style,s=e.subreddit,a=e.subredditAboutInfo;return s&&a?L(G,{className:t,id:o,style:i},void 0,L(U,{},void 0,L(A,{},void 0,L(_,{subredditOrProfile:s}),L(F,{onClick:()=>e.sendEvent(c(s.id,"title",r)),to:`${s.url}`},void 0,s.displayText)),L(z,{language:n,subredditAboutInfo:a}),L(j.a,{allowContractors:s.allowContractors,isNSFW:s.isNSFW,type:s.type}),L(R,{},void 0,Object(N.a)(a.publicDescription||"",140)),L(I.f,{onClick:()=>e.sendEvent(c(s.id,"visit",r)),to:`${s.url}`},void 0,Object(O.a)(n,"hovercard.viewCommunity")),L(S.h,{id:s.id,type:"subreddit"}))):L(G,{style:i})});var W=e=>{const t=e.activeTooltipId===e.tooltipId;return r.a.createElement(V,T({isOpen:t},e))},q=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Z=Object(m.createStructuredSelector)({activeTooltipId:g.a,language:b.M,subreddit:h.v,subredditAboutInfo:h.s});var K=Object(p.connect)(Z,e=>({onHideTooltip:()=>e(Object(f.f)())}))(Object(a.b)(e=>q("div",{className:e.className,id:e.tooltipId,onMouseLeave:e.onHideTooltip},void 0,q(W,{activeTooltipId:e.activeTooltipId,hoverId:e.hoverId,language:e.language,onHideTooltip:e.onHideTooltip,postId:e.postId,sendEvent:e.sendEvent,subreddit:e.subreddit,subredditAboutInfo:e.subredditAboutInfo,tooltipId:e.tooltipId,tooltipType:e.tooltipType})))),Y=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const X="SubredditInfoTooltip";t.a=Object(a.b)(class extends r.a.Component{constructor(){super(...arguments),this.sendEvent=(()=>this.props.sendEvent(l(this.props.subredditName,this.props.postId)))}render(){const e=this.props,t=Object(i.b)({itemId:e.postId,subredditName:e.subredditName,tooltipIdPrefix:X,tooltipType:e.tooltipType}),o=`${t}-hover-id`;return Y(s.b,{hoverId:o,sendHoverEvent:this.sendEvent,authorOrSubredditName:e.subredditName,tooltipId:t},void 0,e.children,Y(K,{className:e.className,hoverId:o,postId:e.postId,subredditName:e.subredditName,tooltipId:t,tooltipType:e.tooltipType}))}})},"./src/reddit/components/Hovercards/helpers.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return a}),o.d(t,"c",function(){return d}),o.d(t,"b",function(){return c});var n=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),r=o("./src/reddit/layout/row/Inline/index.tsx"),i=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),s=o("./bundled-modules/styled-components/styled-components.min.js");const a=o.n(s)()(r.a).withConfig({componentId:"s1590ixi-0"})(["","cursor: pointer;color: ",";fill: ",";padding: 6px 12px;&:hover {background-color: ",";color: ",";fill: ",";}"],n.actionFont,e=>Object(i.c)(e).actionIcon,e=>Object(i.c)(e).actionIcon,e=>Object(i.c)(e).line,e=>Object(i.c)(e).bodyText,e=>Object(i.c)(e).bodyText),d="\n display: flex;\n height: 16px;\n width: 16px;\n margin-right: 6px;\n",c=e=>{const t=e.author,o=e.itemId,n=e.subredditName,r=e.tooltipIdPrefix,i=e.tooltipType;let s=r;return o&&(s=`${s}--${o}`),i&&(s=`${s}--${i}`),t&&(s=`${s}--${t}`),n&&(s=`${s}--${n}`),s}},"./src/reddit/components/InfoTextTooltip/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return x}),o.d(t,"a",function(){return O});var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=o("./node_modules/react-redux/es/index.js"),a=o("./node_modules/reselect/lib/index.js"),d=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(d),l=o("./src/higherOrderComponents/addOverlayEvents.tsx"),u=o("./src/higherOrderComponents/asTooltip.tsx"),p=o("./src/reddit/constants/zIndex.ts"),m=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),f=o("./src/reddit/selectors/tooltip.ts"),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},g=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const b=Object(d.keyframes)(["from {opacity: 0;}to {opacity: 1;}"]),v=c.a.div.withConfig({componentId:"yo5zjp-0"})(["","padding: 3px 9px;position: absolute;border-radius: 4px;margin-top: -6px;background: #000;color: #FFF;animation: "," 0.5s step-end;z-index: ",";white-space: pre-wrap;/* CSS arrow */&:after {content: '';position: absolute;top: 100%;left: calc(50% - 4px - ","px);width: 0;height: 0;border-top: 3px solid #000;border-left: 4px solid transparent;border-right: 4px solid transparent;}"],m.titleFontH6,b,p.u,e=>e["data-overflow"].left),y=c()(v).withConfig({componentId:"yo5zjp-1"})(["margin-top: 6px;&:after {border-bottom: 3px solid #000;border-top: none;bottom: 100%;top: auto;}"]),x=e=>g(v,{className:e.className,style:e.style,"data-overflow":e.overflow},void 0,e.text,e.children),O=e=>g(y,{className:e.className,style:e.style,"data-overflow":e.overflow},void 0,e.text,e.children),C=Object(a.createStructuredSelector)({isOpen:(e,{tooltipId:t})=>Object(f.b)(t)(e)}),w=Object(u.a)(O,[l.a.Click,l.a.Keydown]),j=Object(u.a)(x,[l.a.Click,l.a.Keydown]),S=Object(s.connect)(C);t.c=S(e=>{return e.caretOnTop?i.a.createElement(w,h({},e,{targetPosition:["center","bottom"],tooltipPosition:["center","top"]})):i.a.createElement(j,h({},e,{targetPosition:["center","top"],tooltipPosition:["center","bottom"]}))})},"./src/reddit/components/JSAPIContainers/index.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),r=o.n(n),i=o("./node_modules/react-redux/es/index.js"),s=o("./node_modules/reselect/lib/index.js"),a=o("./node_modules/lodash/isNil.js"),d=o.n(a),c=o("./src/reddit/constants/jsapiEvents.ts");var l,u=o("./src/reddit/singleton/EventSystem.ts"),p=(l="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var s in r)void 0===t[s]&&(t[s]=r[s]);else t||(t=r||{});if(1===i)t.children=n;else if(i>1){for(var a=Array(i),d=0;d<i;d++)a[d]=arguments[d+3];t.children=a}return{$$typeof:l,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),m=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};const f=Object(s.createStructuredSelector)({consumers:e=>e.jsApi});var h=Object(i.connect)(f,{})(class extends n.Component{constructor(){super(...arguments),this.el=void 0,this.fireEvent=(e=>{const t=this.props,o=(t.className,t.consumers,m(t,["className","consumers"]));u.a.publish(c.a,o,e)}),this.setRef=(e=>this.el=e)}componentDidMount(){d()(this.el)||this.fireEvent(this.el)}componentDidUpdate(){d()(this.el)||this.fireEvent(this.el)}render(){const e=this.props;return e.consumers.length?r.a.createElement("span",{className:this.props.className,ref:this.setRef},e.consumers.map(e=>e&&p("span",{"data-name":e},e))):null}}),g=o("./src/reddit/selectors/comments.ts"),b=o("./src/reddit/selectors/posts.ts"),v=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const y=(e,t)=>{const o=Object(g.n)(e,t),n=o.postId,r=Object(b.O)(e,{postId:n});return{comment:o,isModerator:!(!r||!r.name)&&!!e.moderatingSubreddits[r.name],subredditOrProfile:Object(b.O)(e,{postId:n})}};var x=Object(i.connect)(()=>Object(s.createSelector)(y,g.j,(e,t)=>Object.assign({},e,{depth:t})))(e=>v(h,{type:"comment",data:{author:e.comment.author,approvedAtUTC:e.comment.approvedAtUTC,approvedBy:e.comment.approvedBy,bannedAtUTC:e.comment.bannedAtUTC,body:e.comment.body,created:e.comment.created,distinguishType:e.comment.distinguishType,id:e.comment.id,isApproved:e.comment.isApproved,isRemoved:e.comment.isRemoved,isSpam:e.comment.isSpam,isStickied:e.comment.isStickied,isTopLevel:0===e.depth,post:{id:e.comment.postId},removedBy:e.comment.bannedBy,subreddit:{id:e.subredditOrProfile?e.subredditOrProfile.id:"",name:e.subredditOrProfile?e.subredditOrProfile.name:"",type:e.subredditOrProfile?e.subredditOrProfile.type:""}}})),O=o("./src/reddit/selectors/subreddit.ts"),C=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const w=(e,t)=>{const o=Object(g.n)(e,t),n=Object(O.B)(e,t);return{comment:o,isModerator:!(!n||!n.name)&&!!e.moderatingSubreddits[n.name],subredditOrProfile:n}};var j=Object(i.connect)(()=>Object(s.createSelector)(w,e=>e))(e=>C(h,{type:"commentAuthor",data:{author:e.comment.author,comment:{id:e.commentId},isModerator:e.isModerator,post:{id:e.comment.postId},subreddit:{id:e.subredditOrProfile?e.subredditOrProfile.id:"",name:e.subredditOrProfile?e.subredditOrProfile.name:"",type:e.subredditOrProfile?e.subredditOrProfile.type:""}}})),S=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var P=Object(i.connect)(()=>Object(s.createStructuredSelector)({subreddit:O.G}))(e=>S(h,{className:e.className,type:"communityTools",data:{sectionName:e.sectionName,subreddit:e.subreddit?{id:e.subreddit.id,name:e.subreddit.name,type:e.subreddit.type}:{}}})),M=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var I=Object(i.connect)(()=>Object(s.createStructuredSelector)({post:b.D,subredditOrProfile:b.O,isModerator:(e,t)=>{const o=Object(b.O)(e,t);return o&&!!e.moderatingSubreddits[o.name]||!1}}))(e=>M(h,{className:e.className,type:"post",data:{author:e.post.author,approvedAtUTC:e.post.approvedAtUTC,approvedBy:e.post.approvedBy,bannedAtUTC:e.post.bannedAtUTC,created:e.post.created,numComments:e.post.numComments,distinguishType:e.post.distinguishType,domain:e.post.source&&e.post.source.displayText,flair:e.post.flair,id:e.post.id,isApproved:e.post.isApproved,isRemoved:e.post.isRemoved,isSpam:e.post.isSpam,media:e.post.media,permalink:e.post.permalink,removedBy:e.post.bannedBy,sourceUrl:e.post.source&&e.post.source.url,subreddit:e.subredditOrProfile?{id:e.subredditOrProfile.id,name:e.subredditOrProfile.name,type:e.subredditOrProfile.type}:{},title:e.post.title,voteState:e.post.voteState}})),k=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var N=Object(i.connect)(()=>Object(s.createStructuredSelector)({subredditOrProfile:(e,t)=>Object(b.O)(e,{postId:t.post.id}),isModerator:(e,t)=>{const o=Object(b.O)(e,{postId:t.post.id});return o&&!!e.moderatingSubreddits[o.name]||!1}}))(e=>k(h,{className:e.className,type:"postAuthor",data:{author:e.post.author,isModerator:e.isModerator,post:{id:e.post.id},subreddit:e.subredditOrProfile?{id:e.subredditOrProfile.id,name:e.subredditOrProfile.name,type:e.subredditOrProfile.type}:{}}})),E=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var T=Object(i.connect)(()=>Object(s.createStructuredSelector)({post:b.D,subredditOrProfile:b.O,isModerator:(e,t)=>{const o=Object(b.O)(e,t);return o&&!!e.moderatingSubreddits[o.name]||!1}}))(e=>E(h,{className:e.className,type:"postModTools",data:{author:e.post.author,approvedAtUTC:e.post.approvedAtUTC,approvedBy:e.post.approvedBy,bannedAtUTC:e.post.bannedAtUTC,distinguishType:e.post.distinguishType,flair:e.post.flair,id:e.post.id,isApproved:e.post.isApproved,isRemoved:e.post.isRemoved,isSpam:e.post.isSpam,media:e.post.media,numComments:e.post.numComments,permalink:e.post.permalink,removedBy:e.post.bannedBy,subreddit:e.subredditOrProfile?{id:e.subredditOrProfile.id,name:e.subredditOrProfile.name,type:e.subredditOrProfile.type}:{},title:e.post.title,voteState:e.post.voteState}})),L=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var _=Object(i.connect)(()=>Object(s.createStructuredSelector)({subreddit:O.G}))(e=>L(h,{className:e.className,type:"sidebar",data:{subreddit:e.subreddit?{id:e.subreddit.id,name:e.subreddit.name,type:e.subreddit.type}:{}}})),F=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var R=Object(i.connect)(()=>Object(s.createStructuredSelector)({subredditOrProfile:(e,t)=>Object(O.C)(e,{identifier:t})}))(e=>F(h,{className:e.className,type:"subreddit",data:{id:e.subredditOrProfile.id,displayText:e.subredditOrProfile.displayText,name:e.subredditOrProfile.name,title:e.subredditOrProfile.title,url:e.subredditOrProfile.title}})),A=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var $=Object(i.connect)(()=>Object(s.createStructuredSelector)({subreddit:(e,{subredditId:t})=>t?Object(O.G)(e,{subredditId:t}):null}))(e=>A(h,{className:e.className,type:"userHovercard",data:{user:e.user,contextId:e.contextId,subreddit:e.subreddit?{id:e.subreddit.id,name:e.subreddit.name,type:e.subreddit.type}:{}}}));o.d(t,"a",function(){return x}),o.d(t,"b",function(){return j}),o.d(t,"c",function(){return P}),o.d(t,"d",function(){return I}),o.d(t,"e",function(){return N}),o.d(t,"f",function(){return T}),o.d(t,"g",function(){return _}),o.d(t,"h",function(){return R}),o.d(t,"i",function(){return $})},"./src/reddit/components/LightboxHeader/index.m.less":function(e,t,o){e.exports={container:"K4Eem3pMbRbAYioOfqN5E",postDetails:"-DOLBAFWXMQX1Q3ErGO8I",mediaIcon:"_33YMDoIltkTaZemWTS7Yki",postTitle:"P9Qd6oTCWgLr3ackKg0I5",horizontalVotes:"_15Igkrvvp7jIfVHt0eKzFd",actions:"_25ONQRwoX20oeRXFl_FZXt",close:"c_rRg_d32D6ZO5sV8DmMM",closeText:"C9XkFfcvNxFrFRVdKxc8x"}},"./src/reddit/components/Media/EmbedBox/index.m.less":function(e,t,o){e.exports={embedBox:"_3K6DCjWs2dQ93YYZDOHjib"}},"./src/reddit/components/Media/EmbedBox/index.tsx":function(e,t,o){"use strict";var n=o("./node_modules/react/index.js"),r=o.n(n),i=o("./src/lib/classNames/index.ts"),s=o("./src/reddit/constants/tracking.ts"),a=o("./src/reddit/models/Media/index.ts"),d=o("./src/lib/addQueryParams/index.ts"),c=o("./src/lib/forceHttps/index.ts"),l=o("./src/reddit/components/Media/EmbedBox/index.m.less"),u=o.n(l);t.a=(e=>{const t=e.isResponsive?Object(d.a)(Object(c.a)(e.source),{responsive:"true"}):Object(c.a)(e.source),o={};return e.showCentered&&(o.margin="0 auto"),e.isListing||(o.maxHeight=`${a.e}px`),r.a.createElement("iframe",{className:Object(i.a)(s.a,u.a.embedBox,e.className),height:`${e.height}px`,width:e.width&&!e.fullWidth?`${e.width}px`:"100%",onLoad:e.onLoad,ref:e.childRef,scrolling:"no",title:e.title,src:t,style:o,allowFullScreen:!0})})},"./src/reddit/components/Media/ImageBox/index.m.less":function(e,t,o){e.exports={container:"_3Oa0THmZ3f5iZXAQ0hBJ0k",image:"_2_tDEnGMLxpM6uOa2kaDB3",seeMore:"_3hUbl08LBz2mbXjy0iYhOS"}},"./src/reddit/components/Media/ImageBox/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return j}),o.d(t,"c",function(){return S});var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=o("./node_modules/react-redux/es/index.js"),a=o("./node_modules/react-router-dom/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),c=o("./bundled-modules/styled-components/styled-components.min.js"),l=o("./src/lib/classNames/index.ts"),u=o("./src/lib/forceHttps/index.ts"),p=o("./src/lib/permalinkToOverlayLocation/index.ts"),m=o("./src/reddit/components/PlayButton/index.tsx"),f=o("./src/reddit/models/Media/index.ts"),h=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),g=o("./src/reddit/selectors/posts.ts"),b=o("./src/reddit/selectors/user.ts"),v=o("./src/reddit/constants/posts.ts"),y=o("./src/reddit/constants/tracking.ts"),x=o("./src/reddit/components/Media/ImageBox/index.m.less"),O=o.n(x),C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},w=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const j=(e,t)=>{return e/t>16/9},S=e=>e>2*f.e,P=Object(c.withTheme)(e=>{const t={backgroundColor:Object(h.c)(e).post};return e.showFull||e.isTall||(t.maxHeight=`${f.i}px`),e.isListing||e.isTall&&S(e.height)||(t.maxHeight=`${f.e}px`),e.isExpando&&e.maxHeight&&(t.maxHeight=`${e.maxHeight}px`),e.isExpando&&e.maxWidth&&(t.maxWidth=`${e.maxWidth}px`),e.showCentered&&(t.margin="0 auto"),e.shouldBlur&&(t.filter=`blur(${v.f}px)`,t.width="100%"),w("img",{className:Object(l.a)(O.a.image,e.className),style:t,src:e.src})}),M=e=>{const t={};return(!e.showFull&&j(e.height,e.width)||e.shouldBlur)&&(t.overflow="hidden"),e.showFull||(t.maxHeight=`${f.i}px`,e.shouldBlur&&(t.maxWidth=j(e.height,e.width)?`${f.t}px`:`${e.width}px`)),e.showCentered&&(t.margin="0 auto"),e.isExpando&&e.maxHeight&&(t.maxHeight=`${e.maxHeight}px`),w("div",{className:Object(l.a)(O.a.container,e.className),style:t},void 0,e.children)},I=Object(d.createStructuredSelector)({postPermalink:g.C,shouldOpenPostInNewTab:b.Q}),k=Object(s.connect)(I);t.a=k(e=>e.outboundUrl?w("a",{href:e.outboundUrl,target:"_blank"},void 0,E(e)):e.isListing&&e.postPermalink?w(a.a,{target:e.shouldOpenPostInNewTab?"_blank":void 0,to:Object(p.a)(e.postPermalink)},void 0,E(e)):E(e));const N=(e,t)=>w(P,{className:e?"":y.a,height:t.height,isExpando:!!t.isExpando,isListing:t.isListing,isTall:e,maxHeight:t.maxHeight,maxWidth:t.maxWidth,shouldBlur:t.shouldBlur,showCentered:t.showCentered,showFull:t.showFull,src:Object(u.a)(t.source),width:t.width}),E=e=>{const t=j(e.height,e.width),o=S(e.height)&&t;return i.a.createElement(M,C({},e,{className:`${t?`${y.a} `:""}${e.className||""}`}),e.isListing?w("div",{},void 0,N(t,e)):w("a",{style:o?{maxWidth:"50%"}:{},href:e.originalSource,target:"_blank"},void 0,N(t,e)),e.isListing&&!e.showFull&&e.height>f.i&&j(e.height,e.width)&&w("div",{className:O.a.seeMore},void 0,"see full image"),e.isVideoThumbnail&&w(m.b,{}))}},"./src/reddit/components/Media/MediaContainer/index.m.less":function(e,t,o){e.exports={blur:"_2iaYXFpGyyEGq1rp02cl5w",container:"m3aNC6yp8RrNM_-a0rrfa",spacer:"_3gBRFDB5C34UWyxEe_U6mD",wrapper:"_3JgI-GOrkmyIeDeyzXdyUD"}},"./src/reddit/components/Media/MediaContainer/index.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/polished/dist/polished.es.js"),i=o("./node_modules/react/index.js"),s=o.n(i),a=o("./bundled-modules/styled-components/styled-components.min.js"),d=o("./src/lib/classNames/index.ts"),c=o("./src/lib/forceHttps/index.ts"),l=o("./src/reddit/models/Media/index.ts"),u=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),p=o("./src/reddit/components/Media/MediaContainer/index.m.less"),m=o.n(p),f=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const h=e=>{const t=e.showFull?{maxHeight:`${e.height}px`}:{maxHeight:`${Math.min(l.i,e.height)}px`},o=Object.assign({background:Object(r.h)(.05,Object(u.c)(e).active)},t,e.showFull&&!e.showCentered?{maxWidth:`${e.width}px`}:{},e.blurSrc?{overflow:"hidden"}:{}),n=e.blurSrc?f("img",{className:m.a.blur,src:Object(c.a)(e.blurSrc)}):null,i=((e,t,o)=>o?100*o:e&&t?e/t*100:100*l.c)(e.height,e.width,e.forceAspectRatio);return f("div",{className:Object(d.a)(m.a.container,e.className),"data-click-id":"media",style:o},void 0,n,f("div",{className:m.a.spacer,style:{paddingBottom:`${i}%`}}),f("div",{className:m.a.wrapper,style:e.blurSrc?void 0:{background:Object(u.c)(e).body}},void 0,e.children))};t.a=Object(a.withTheme)(e=>{if(!e.isListing&&!e.alwaysWrapMedia||e.isExpando)return s.a.Children.only(e.children)||f("div",{});return s.a.createElement(h,e)})},"./src/reddit/components/Media/RichTextContainer/index.m.less":function(e,t,o){e.exports={richTextContainer:"Chtkt3BCZQruf0LtmFg2c",richTextContainerFull:"_3xX726aBn29LDbsDtzr_6E",placeholder:"_1aLU7RPNLdvfcbaNdcN11x",placeholderParagraph:"Owi9iYzjyVpDq_0YbCdJY"}},"./src/reddit/components/Media/VideoBox/index.m.less":function(e,t,o){e.exports={container:"_3spkFGVnKMHZ83pDAhW3Mx",styledVideo:"tErWI93xEKrI2OkozPs7J"}},"./src/reddit/components/Media/VideoBox/index.tsx":function(e,t,o){"use strict";var n=o("./node_modules/lodash/throttle.js"),r=o.n(n),i=o("./node_modules/react/index.js"),s=o.n(i),a=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),c=o("./src/lib/classNames/index.ts"),l=o("./src/reddit/actions/video.ts"),u=o("./src/reddit/constants/tracking.ts"),p=o("./src/reddit/models/Media/index.ts"),m=o("./src/reddit/selectors/user.ts"),f=o("./src/reddit/selectors/video.ts");const h=100,g=h/2/1e3;var b,v=o("./src/lib/forceHttps/index.ts"),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},x=(b="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var s in r)void 0===t[s]&&(t[s]=r[s]);else t||(t=r||{});if(1===i)t.children=n;else if(i>1){for(var a=Array(i),d=0;d<i;d++)a[d]=arguments[d+3];t.children=a}return{$$typeof:b,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),O=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};var C=class extends s.a.Component{constructor(e){super(e),this.toggle=(e=>{if(e){const e=this.play();e&&e.catch&&e.catch(()=>{})}else this.pause()}),this.ref=null}play(){if(this.ref&&this.ref.play)return this.ref.play()}pause(){if(this.ref&&this.ref.pause)return this.ref.pause()}componentDidMount(){this.initEventHandlers(),this.toggle(!this.props.shouldPause&&(this.props.autoplay||this.props.isNotCardView))}componentWillUnmount(){this.destroyEventHandlers()}componentWillReceiveProps(e){this.props.shouldPause!==e.shouldPause&&this.toggle(!e.shouldPause&&(e.autoplay||e.isNotCardView))}destroyEventHandlers(){this.ref&&this.cancelBufferingDetector&&this.cancelBufferingDetector()}initEventHandlers(){this.ref&&this.props.onBufferingChange&&(this.cancelBufferingDetector=function(e,t){let o=!1,n=!1;const r=()=>o=!0,i=()=>n=!0;e.addEventListener("loadeddata",r),e.addEventListener("play",i),e.addEventListener("playing",i);let s=!1,a=0,d=0;const c=window.setInterval(()=>{if(d=e.currentTime,n)return n=!1,void(a=d);if(e.paused||e.seeking||!o)return void(a=d);const r=s;4===e.readyState?s=!1:!s&&d>=a&&d<a+g?s=!0:s&&d>=a&&d>a+g&&(s=!1),a=d,r!==s&&t(s)},h);return()=>{clearInterval(c),e.removeEventListener("playing",i),e.removeEventListener("play",i),e.removeEventListener("loadeddata",r)}}(this.ref,this.props.onBufferingChange))}render(){const e=this.props,t=(e.autoplay,e.isListing,e.isNotCardView,e.onBufferingChange,e.shouldLoad,e.shouldPause,e.showCentered,e.showFull,e.source,O(e,["autoplay","isListing","isNotCardView","onBufferingChange","shouldLoad","shouldPause","showCentered","showFull","source"]));return s.a.createElement("video",y({},t,{ref:e=>{this.ref=e},muted:!0}),x("source",{src:Object(v.a)(this.props.source)}))}},w=o("./src/reddit/components/Media/VideoBox/index.m.less"),j=o.n(w),S=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const P=Object(d.createStructuredSelector)({autoplayPref:m.b,consumed:f.b,loadTimes:f.f,metadata:f.g,started:f.i}),M=Object(a.connect)(P,(e,{postId:t})=>({onBufferingChanged:o=>{e(o?l.w(t):l.I(t))},onLoadStarted:o=>e(l.v(t,o)),onMetadataReceived:o=>e(l.H({metadata:o,postId:t})),onPaused:()=>e(l.D({postId:t})),onPlayable:o=>e(l.E(t,o)),onPlaying:()=>e(l.G(t)),onWatched:()=>e(l.x(t)),onViewableImpression:()=>e(l.B(t)),onFullyViewableImpression:()=>e(l.A(t)),onPlayedWithSound:()=>e(l.F(t)),onWatchedPercent:o=>e(l.P(o,t))}));t.a=M(class extends s.a.Component{constructor(){super(...arguments),this.percentTriggered=0,this._checkForConsumption=r()(e=>{if(this.props.consumed)return;const t=e.target;t&&t.played&&1===t.played.length&&0===t.played.start(0)&&t.played.end(0)===t.duration&&this.props.onWatched()},200),this.onTimeUpdate=(e=>{e.persist(),this._checkForConsumption(e)}),this.onVideoPlayable=(e=>{this.props.metadata||this.sendTransformedMetadata(e),this.props.started||this.props.onPlayable(e.timeStamp)}),this.loadStarted=(e=>{this.props.onLoadStarted(e.timeStamp)}),this.sendTransformedMetadata=(e=>{this.props.onMetadataReceived({id:this.props.postId,length:1e3*e.target.duration,originalHeight:e.target.videoHeight,originalWidth:e.target.videoWidth})}),this.onPaused=(e=>{this.props.onPaused()}),this.onPlaying=(e=>{this.props.loadTimes||this.onVideoPlayable(e),this.props.metadata||this.sendTransformedMetadata(e),this.props.onPlaying()}),this.renderVideoPlayer=(()=>{var e=this.props;const t=e.showCentered,o=e.isListing,n={};return t&&(n.margin="0 auto"),o||(n.maxHeight=`${p.e}px`),S(C,{autoplay:this.props.autoplayPref,className:Object(c.a)(u.a,j.a.styledVideo),height:this.props.height,isListing:this.props.isListing,isNotCardView:this.props.isNotCardView,loop:!0,onBufferingChange:this.props.onBufferingChanged,onLoadStart:this.loadStarted,onLoadedData:this.onVideoPlayable,onLoadedMetadata:this.sendTransformedMetadata,onPause:this.props.onPaused,onPlaying:this.onPlaying,onTimeUpdate:this.onTimeUpdate,shouldLoad:this.props.shouldLoad,shouldPause:this.props.shouldPause,showCentered:this.props.showCentered,showFull:this.props.showFull,source:this.props.source,style:n,width:this.props.width},this.props.postId)})}render(){return this.props.isListing?this.renderVideoPlayer():S("div",{className:j.a.container},void 0,S("a",{href:this.props.originalSource,target:"_blank"},void 0,this.renderVideoPlayer()))}})},"./src/reddit/components/Media/index.m.less":function(e,t,o){e.exports={hiddenLink:"_3dhFVFchWAAFXfLFTa94n9",displayNone:"_1Q2mF3u7v9hBVu_4bkC7R4"}},"./src/reddit/components/Media/index.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/lodash/debounce.js"),i=o.n(r),s=o("./node_modules/react/index.js"),a=o.n(s),d=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(d),l=o("./src/lib/isUrl/index.ts"),u=o("./node_modules/brcast/dist/brcast.es.js"),p=o("./node_modules/lodash/findKey.js"),m=o.n(p);!function(e){e.Hidden="hidden",e.Visible="visible"}(n||(n={}));const f={hidden:"visibilitychange",webkitHidden:"webkitvisibilitychange",mozHidden:"mozvisibilitychange",msHidden:"msvisibilitychange"};let h=!1;const g=Object(u.a)({documentInFocus:!0});!function(){if(!h){const e=m()(f,(e,t)=>void 0!==document[t]);e&&document.addEventListener(f[e],()=>{g.setState({documentInFocus:document.visibilityState!==n.Hidden})}),h=!0}}();var b,v={subscribe:e=>{return g.subscribe(e)},unsubscribe:e=>{g.unsubscribe(e)}},y=o("./src/lib/permalinkToOverlayLocation/index.ts"),x=o("./src/lib/raven/index.ts"),O=o("./src/reddit/components/HTML5StreamPlayer/index.tsx"),C=o("./src/reddit/components/Media/EmbedBox/index.tsx"),w=o("./src/reddit/components/Media/ImageBox/index.tsx"),j=o("./src/reddit/components/Media/MediaContainer/index.tsx"),S=o("./src/lib/classNames/index.ts"),P=o("./src/reddit/constants/componentSizes.ts"),M=o("./src/reddit/models/Media/index.ts"),I=o("./node_modules/react-redux/es/index.js"),k=o("./src/reddit/actions/post.ts"),N=o("./src/reddit/helpers/styles/mixins/loading.ts"),E=o("./src/reddit/components/Media/RichTextContainer/index.m.less"),T=o.n(E),L=(b="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var s in r)void 0===t[s]&&(t[s]=r[s]);else t||(t=r||{});if(1===i)t.children=n;else if(i>1){for(var a=Array(i),d=0;d<i;d++)a[d]=arguments[d+3];t.children=a}return{$$typeof:b,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const _=c.a.div.withConfig({componentId:"s123n0am-0"})(["",""],N.b);var F=Object(I.connect)(null,e=>({onLoadRichTextContentIfNeeded:t=>e(Object(k.p)(t))}))(class extends a.a.Component{componentDidMount(){this.loadRichTextContentIfNeeded()}loadRichTextContentIfNeeded(){this.props.canLoadContent&&this.props.isExpando&&this.props.onLoadRichTextContentIfNeeded(this.props.postId)}render(){return L("div",{className:T.a.placeholder},void 0,[1,2,3].map(e=>L("div",{className:T.a.placeholderParagraph},e,L(_,{isLoading:!0,gradientType:"posts"}),L(_,{isLoading:!0,gradientType:"posts"}),L(_,{isLoading:!0,gradientType:"posts"}))))}}),R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},A=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),$=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};var D=e=>{var t=e.canLoadContent,o=e.children,n=e.className,r=e.isCommentsPage,i=e.isRichTextTruncated,s=e.isExpando,d=e.postId,c=e.showFull,l=$(e,["canLoadContent","children","className","isCommentsPage","isRichTextTruncated","isExpando","postId","showFull"]);const u=c?T.a.richTextContainerFull:T.a.richTextContainer,p={};c||(p.maxHeight=`${M.j}px`),r&&(p.maxWidth=`${P.g}px`);const m=i&&c;return a.a.createElement("div",R({className:Object(S.a)(u,n),style:p},l),o,m&&A(F,{canLoadContent:!!t,isExpando:s,postId:d}))},B=o("./src/reddit/components/Media/VideoBox/index.tsx"),H=o("./src/reddit/components/PlayButton/index.tsx"),Q=o("./src/reddit/components/RawHTMLDisplay/index.tsx"),U=o("./src/reddit/components/RichTextJson/index.tsx"),z=o("./src/reddit/constants/screenWidths.ts"),G=o("./src/reddit/helpers/canPreviewSelfText/index.ts"),V=o("./src/reddit/helpers/getRichTextContent.ts"),W=o("./src/reddit/helpers/postHasSelfText/index.ts"),q=o("./src/lib/redditId/index.ts");function Z(e,t){const o=function e(t,o){let n=!1;let r=[];try{for(const i of t)if("link"===i.e&&i.u&&i.u.includes(`https://www.reddit.com/poll/${o}`))n=!0;else if(i.c&&"string"!=typeof i.c){const t=e(i.c,o);t.found?(n=!0,("par"!==i.e||t.updated.length)&&r.push(Object.assign({},i,{c:t.updated}))):r.push(i)}else r.push(i)}catch(i){n=!1,r=[]}return{found:n,updated:n?r:t}}(e.document,Object(q.c)(t));return o.found?{document:o.updated}:e}const K=(e,t,o,n)=>{const r=e/t,i=o/n;return Math.abs(r-i)<.03},Y=(e,t)=>{for(let o=0;o<t.length;o++){const n=t[o];if(n.width>=e)return n}},X=(e,t,o)=>{for(let n=0;n<o.length;n++){const r=o[n];if(r.width>=M.e/2&&K(e,t,r.height,r.width))return r}},J=e=>{for(let t=0;t<e.length;t++){const o=e[t];if(o.height>=M.e||o.width>=M.f)return o}};var ee=o("./src/reddit/components/Media/index.m.less"),te=o.n(ee),oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},ne=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(o.push(s.value),!t||o.length!==t);n=!0);}catch(d){r=!0,i=d}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),re=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const ie=1200,se="https://www.redditmedia.com",ae=75,de="player.js",ce=P.F+P.E,le=e=>e.isVisible?e.children:re("div",{className:te.a.displayNone},void 0,e.children),ue=new Set([M.m.EMBED,M.m.GIFVIDEO,M.m.VIDEO]),pe=e=>!!e.media&&ue.has(e.media.type),me=new Set([M.m.EMBED,M.m.GIFVIDEO,M.m.IMAGE,M.m.VIDEO]),fe=e=>!!e.media&&me.has(e.media.type);t.a=Object(d.withTheme)(class extends a.a.Component{constructor(e){super(e),this.pauseContent=(()=>{this.shouldFocusContentDebouncer(!1)}),this.stopContent=(()=>{const e=this.props.post.media;if(e&&M.d.has(e.type)){if(this.iframe){const t=e.type===M.m.EMBED?e.provider:null;this.pauseEmbed(this.iframe,t)}this.setState(e=>e.shouldStop?null:{shouldStop:!0})}}),this.handleVisibilityChange=(e=>{const t=this.state.shouldPause,o=this.props.autoplayPref;this.iframe&&(t||!o&&e.documentInFocus||this.toggleEmbedAutoplay(this.iframe,!e.documentInFocus)),this.setState({forcePause:!e.documentInFocus})}),this.focusContent=(()=>{this.shouldFocusContentDebouncer(!0)}),this.loadContent=(()=>{this.setState(e=>e.canLoadContent?null:{canLoadContent:!0})}),this.unmountContent=(()=>{}),this.contentIsHeavyToMount=(()=>{const e=this.props.post.media;return!!e&&M.d.has(e.type)}),this.shouldFocusContentDebouncer=i()(e=>{const t=this.props.post.media,o=this.props.autoplayPref;if(t&&M.d.has(t.type)){if(this.iframe){const n=t.type===M.m.EMBED?t.provider:null;n&&!M.p.has(n)?!o&&e||this.toggleEmbedAutoplay(this.iframe,!e):e||this.pauseEmbed(this.iframe,n)}e?this.setState(e=>e.shouldPause||!e.canLoadContent?{canLoadContent:!0,shouldPause:!1,shouldStop:!1}:null):this.setState(e=>e.shouldPause?null:{shouldPause:!0})}},250,{leading:!0}),this.toggleEmbedAutoplay=((e,t)=>{if(e.contentWindow){const o=t?M.g.Pause:M.g.Play;e.contentWindow.postMessage({context:de,method:o},se),e.contentWindow.postMessage({context:de,method:M.g.Mute},se)}}),this.pauseEmbed=((e,t)=>{e.contentWindow&&(t===M.q.YouTube?e.contentWindow.postMessage(JSON.stringify({event:"command",func:M.u.Pause}),se):e.contentWindow.postMessage({context:de,method:M.g.Pause},se))}),this.onIframeLoaded=(()=>{const e=this.props.post.media,t=this.props.autoplayPref,o=e&&e.type===M.m.EMBED?e.provider:null;if(this.iframe&&o&&!M.p.has(o)){const e=this.state.shouldPause;(t||e)&&this.toggleEmbedAutoplay(this.iframe,e)}}),this.storeChildRef=(e=>{this.iframe=e}),this.updateDimensions=(()=>{this.setState({viewportHeight:window.innerHeight,viewportWidth:window.innerWidth})}),this.state={canLoadContent:e.shouldLoad||!1,forcePause:!1,shouldPause:void 0===e.shouldPause||e.shouldPause,shouldStop:void 0===e.shouldStop||e.shouldStop,viewportHeight:M.e,viewportWidth:M.f}}componentWillMount(){"undefined"!=typeof window&&(this.updateDimensions(),window.addEventListener("resize",this.updateDimensions))}componentDidMount(){pe(this.props.post)&&(this.visibilityChangeSubscriptionId=v.subscribe(e=>{this.handleVisibilityChange(e)})),this.props.scrollerItemRef&&fe(this.props.post)&&this.props.scrollerItemRef(this,this.state.canLoadContent)}componentWillUnmount(){this.visibilityChangeSubscriptionId&&v.unsubscribe(this.visibilityChangeSubscriptionId),this.props.scrollerItemRef&&fe(this.props.post)&&this.props.scrollerItemRef(void 0),window.removeEventListener("resize",this.updateDimensions)}componentWillReceiveProps(e){!this.state.canLoadContent&&e.shouldLoad&&this.setState({canLoadContent:!0}),void 0!==e.shouldPause&&e.shouldPause!==this.props.shouldPause&&this.shouldFocusContentDebouncer(!e.shouldPause)}getVideoExpandoMaxDimensions(){let e,t=Math.max(M.i,this.state.viewportHeight),o=Math.min(ie,16*t/9);o===ie&&(t=9*ie/16),e=this.state.viewportWidth>=z.g?this.state.viewportWidth<P.w?this.state.viewportWidth-ce-2*ae:this.state.viewportWidth-ce-P.i-2*ae:this.state.viewportWidth-2*ae;const n=this.state.viewportHeight-2*ae;if(o>e)t*=e/o,o=e;else if(t>n){const e=n/t;t=n,o*=e}return{maxVideoHeight:t,maxVideoWidth:o}}getMediaInfo(e){const t=e.availableWidth,o=e.post,n=o.media&&o.media.obfuscated||"";let r=o.media&&!Object(M.A)(o.media)?o.media.content:"";var i=!o.media||Object(M.y)(o.media)||Object(M.z)(o.media)?[0,0]:[o.media.height,o.media.width],s=ne(i,2);let a=s[0],d=s[1];if(t&&o.media&&(o.media.type===M.m.IMAGE||o.media.type===M.m.GIFVIDEO)){const e=Y(t,o.media.resolutions);e&&(r=e.url,d=e.width,a=e.height)}else if(o&&o.media&&(!e.isListing||e.isExpando)&&(o.media.type===M.m.IMAGE||o.media.type===M.m.GIFVIDEO)){let e;(e=Object(w.b)(o.media.height,o.media.width)&&Object(w.c)(o.media.height)?X(o.media.height,o.media.width,o.media.resolutions):J(o.media.resolutions))&&(r=e.url,d=e.width,a=e.height)}if(e.isExpando)if(d>this.state.viewportWidth)a*=this.state.viewportWidth/d,d=this.state.viewportWidth;else if(a>this.state.viewportHeight){const e=this.state.viewportHeight/a;a=this.state.viewportHeight,d*=e}var c=this.getVideoExpandoMaxDimensions();const l=c.maxVideoHeight,u=c.maxVideoWidth;if(o.media&&o.media.type===M.m.VIDEO){const t=a/d;t>M.c?(a=M.k,d=Math.min(Math.max(M.k/t,M.o),M.l)):(a=Math.min(Math.max(M.l*t,M.n),M.k),d=M.l),e.isExpando&&(a=l,d=u)}o.media&&o.media.type===M.m.EMBED&&e.isExpando&&(a=l,d=u);let p=!1;if(e.isMiniCard){const e=a/d;p=Math.abs(e-M.c)>.01}return{source:r,obfuscated:n,width:d,height:a,needsBackgroundBlur:p}}render(){var e=this.props;const t=e.className,o=e.crosspost,n=e.flairStyleTemplate,r=e.forceAspectRatio,i=e.isCommentsPage,s=e.isExpando,d=e.isListing,c=e.isNotCardView,u=e.post,p=e.showCentered;var m=e.showFull;const f=void 0!==m&&m,h=e.theme;var g=this.state;const b=g.canLoadContent,v=g.forcePause,S=g.shouldPause,P=g.shouldStop;if(!u.media)return null;const I=v||S,k=P;var N=this.getMediaInfo(this.props);const E=N.source,T=N.obfuscated,L=N.height,_=N.width,F=N.needsBackgroundBlur,R={showCentered:p,isListing:d,showFull:f,height:L,width:_},A=Object.assign({},R,{forceAspectRatio:r,className:t}),$=d&&!s&&(!h.subredditContext.shouldShowNSFWContent&&(u.isNSFW||!(!o||!o.isNSFW))||u.isSpoiler||!(!o||!o.isSpoiler)),z=!(!u.isSponsored||!u.source);if(T&&$)return a.a.createElement(j.a,oe({},A,{blurSrc:T}),re(le,{isVisible:b},void 0,a.a.createElement(w.a,oe({},R,{isListing:d,isVideoThumbnail:u.media.type===M.m.VIDEO,postId:u.id,shouldBlur:$,source:T,outboundUrl:z&&u.source.outboundUrl||void 0,originalSource:E}))));switch(u.media.type){case M.m.RTJSON:const e=Object(V.a)(u,null);if(null===e)return;return f||Object(G.a)(u)?re(D,{canLoadContent:b,className:t,"data-click-id":"text",isCommentsPage:i,isExpando:s,isRichTextTruncated:u.media.isRichtextPreview,postId:u.id,showFull:f},void 0,re(U.b,{flairStyleTemplate:n,content:u.isMeta?Z(e,u.id):e,mediaMetadata:u.media.mediaMetadata,renderingObjectInfo:u,renderMediaAsLinks:d})):null;case M.m.TEXT:return Object(W.a)(u)?(Object(x.c)("Text post should not include body content",{extra:{info:{post:u,isListing:d,isCommentsPage:i}}}),re(D,{postId:u.id,className:t,"data-click-id":"text",isCommentsPage:i,showFull:f},void 0,re(Q.a,{flairStyleTemplate:n,html:u.isMeta?function(e,t,o){return e.replace(`href="https://www.reddit.com/poll/${Object(q.c)(t)}`,`class="${o}" href="https://www.reddit.com/poll/${Object(q.c)(t)}`)}(u.media.content,u.id,te.a.hiddenLink):u.media.content}))):null;case M.m.EMBED:return this.props.isMiniCard&&u.preview&&u.preview.url?a.a.createElement(j.a,oe({},A,{alwaysWrapMedia:!0}),re(le,{isVisible:b},void 0,re(a.a.Fragment,{},void 0,a.a.createElement(w.a,oe({},R,{isExpando:s,isListing:d,isCrosspost:!!o,postId:u.id,shouldBlur:$,source:u.preview.url,originalSource:u.preview.url})),re(H.b,{})))):M.h.has(u.media.provider)?a.a.createElement(j.a,oe({},A,{alwaysWrapMedia:!0,height:s?L:M.i,width:s?_:M.i*(16/9)}),b&&re(C.a,{childRef:this.storeChildRef,height:s?L:M.i,width:s?_:void 0,isListing:d,isResponsive:!0,onLoad:this.onIframeLoaded,showCentered:p,showFull:f,source:E,title:u.title})):a.a.createElement(j.a,oe({},A,{alwaysWrapMedia:!0}),b&&a.a.createElement(C.a,oe({},R,{isResponsive:s||u.media.provider===M.q.IFrameEmbed,title:u.title,childRef:this.storeChildRef,onLoad:this.onIframeLoaded,source:E,fullWidth:u.media.provider===M.q.IFrameEmbed})));case M.m.GIFVIDEO:{let e=L,t=_;return e>M.i&&(t=_/L*(e=M.i)),a.a.createElement(j.a,oe({},A,{blurSrc:F?u.media.gifBackgroundImage:void 0}),re(le,{isVisible:b},void 0,a.a.createElement(B.a,oe({},R,{isNotCardView:c,height:s?void 0:e,width:s?void 0:t,postId:u.id,shouldLoad:!0,shouldPause:I,source:E,originalSource:u.media.content}))))}case M.m.VIDEO:{const e=u.media.posterUrl||u.preview&&u.preview.url;return this.props.isMiniCard&&e?a.a.createElement(j.a,oe({},A,{alwaysWrapMedia:!0}),re(le,{isVisible:b},void 0,re(a.a.Fragment,{},void 0,a.a.createElement(w.a,oe({},R,{isExpando:s,isListing:d,isCrosspost:!!o,postId:u.id,shouldBlur:$,source:e,originalSource:e})),re(H.b,{})))):a.a.createElement(j.a,oe({},A,{alwaysWrapMedia:!0}),b&&re(O.b,{autoPlay:"boolean"==typeof S?!S:void 0,isExpando:s,postUrl:Object(y.a)(u.permalink),shouldLoad:!0,shouldPause:I,shouldStop:k,hlsSource:u.media.hlsUrl,mpegDashSource:u.media.dashUrl,isGif:u.media.isGif,scrubberThumbSource:u.media.scrubberThumbSource,postId:u.id,callToActionSource:u.source||void 0,callToActionText:u.callToAction,isListing:d,posterUrl:u.media.posterUrl}))}case M.m.IMAGE:const r=this.state.viewportHeight-2*ae,m=this.state.viewportWidth-2*ae;let h=E;return this.props.isMiniCard&&(u.thumbnail&&Object(l.a)(u.thumbnail.url)?h=u.thumbnail.url:u.preview&&Object(l.a)(u.preview.url)&&(h=u.preview.url)),a.a.createElement(j.a,oe({},A,{blurSrc:F?h:void 0,isExpando:!!s}),re(le,{isVisible:b},void 0,a.a.createElement(w.a,oe({},R,{isExpando:s,isListing:d,isCrosspost:!!o,maxHeight:s?r:void 0,maxWidth:s?m:void 0,postId:u.id,shouldBlur:$,source:h,outboundUrl:z&&u.source.outboundUrl||void 0,originalSource:u.media.content}))));default:return null}}})},"./src/reddit/components/ModalStyledComponents/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return p}),o.d(t,"c",function(){return m}),o.d(t,"j",function(){return f}),o.d(t,"i",function(){return h}),o.d(t,"d",function(){return g}),o.d(t,"f",function(){return b}),o.d(t,"e",function(){return v}),o.d(t,"g",function(){return y}),o.d(t,"k",function(){return x}),o.d(t,"h",function(){return O}),o.d(t,"n",function(){return C}),o.d(t,"o",function(){return w}),o.d(t,"l",function(){return j}),o.d(t,"a",function(){return S}),o.d(t,"m",function(){return P});var n=o("./node_modules/polished/dist/polished.es.js"),r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/reddit/constants/colors.ts"),a=o("./src/reddit/constants/componentSizes.ts"),d=o("./src/reddit/controls/Button/index.tsx"),c=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),l=o("./src/reddit/icons/svgs/Close/index.tsx"),u=o("./src/reddit/models/Theme/NewColorSystem/index.ts");const p=i()(l.a).withConfig({componentId:"s2uq6p1-0"})(["height: 16px;width: 16px;fill: ",";"],e=>Object(u.c)(e).actionIcon),m=i.a.section.withConfig({componentId:"s2uq6p1-1"})(["box-shadow: 0 2 15px rgba(0, 0, 0, 0.3);max-width: ","px;min-width: ","px;"],a.s,a.t),f=i.a.p.withConfig({componentId:"s2uq6p1-2"})(["display: block;","color: ",";"],c.bodyFont,e=>Object(u.c)(e).bodyText),h=i.a.div.withConfig({componentId:"s2uq6p1-3"})(["","color: ",";margin-bottom: 8px;"],c.bodyFontSmall,e=>Object(u.c)(e).bodyText),g=i.a.div.withConfig({componentId:"s2uq6p1-4"})(["","color: ",";"],c.metadataFont,e=>Object(u.c)(e).actionIcon),b=i.a.label.withConfig({componentId:"s2uq6p1-5"})(["display: block;margin-bottom: 16px;"]),v=i.a.footer.withConfig({componentId:"s2uq6p1-6"})(["background-color: ",";border-top: 1px solid ",";display: flex;justify-content: flex-end;padding: 16px;"],e=>Object(u.c)(e).line,e=>Object(u.c)(e).line),y=i.a.header.withConfig({componentId:"s2uq6p1-7"})(["border-bottom: 1px solid ",";padding: 16px;svg { display: block; }"],e=>Object(u.c)(e).line),x=i.a.h1.withConfig({componentId:"s2uq6p1-8"})(["","color: ",";"],c.titleFontH4,e=>Object(u.c)(e).bodyText),O=i.a.div.withConfig({componentId:"s2uq6p1-9"})(["padding: 16px;"]),C=i.a.textarea.withConfig({componentId:"s2uq6p1-10"})(["background-color: ",";border: 1px solid ",";border-radius: 4px;box-sizing: border-box;color: ",";display: block;height: 78px;padding: 9px 10px;width: 100%;&:focus {outline: none;border: 1px solid ",";}&::placeholder {color: ",";}"],e=>Object(u.c)(e).body,e=>Object(u.c)(e).line,e=>Object(u.c)(e).bodyText,e=>Object(u.c)(e).button,e=>Object(u.c)(e).actionIcon),w=i()(d.d).withConfig({componentId:"s2uq6p1-11"})(["background-color: ",";border-color: ",";margin-left: 8px;&:hover {background-color: ",";border-color: ",";}"],s.a.warning,s.a.warning,Object(n.h)(.8,s.a.warning),Object(n.h)(.8,s.a.warning)),j=i()(d.d).withConfig({componentId:"s2uq6p1-12"})(["margin-left: 8px;"]),S=i()(d.g).withConfig({componentId:"s2uq6p1-13"})(["border-color: ",";color: ",";&:hover {border-color: ",";color: ",";}"],e=>Object(u.c)(e).actionIcon,e=>Object(u.c)(e).actionIcon,e=>Object(n.h)(.8,Object(u.c)(e).actionIcon),e=>Object(n.h)(.8,Object(u.c)(e).actionIcon)),P=i()(d.l).withConfig({componentId:"s2uq6p1-14"})(["color: ",";&:hover {color: ",";}"],s.a.warning,Object(n.h)(.8,s.a.warning))},"./src/reddit/components/ModerationDropdown/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return i});var n=o("./src/higherOrderComponents/makeAsync.tsx"),r=o("./src/lib/loadWithRetries/index.ts");const i="Header--Moderation",s=()=>null;t.b=Object(n.a)({ErrorComponent:s,getComponent:()=>Object(r.a)(()=>o.e("ModerationDropdowns").then(o.bind(null,"./src/reddit/components/ModerationDropdown/_ModerationDropdown.tsx"))).then(e=>e.default),LoadingComponent:s})},"./src/reddit/components/MonthsToMinutesTooltip/index.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=o("./node_modules/react-redux/es/index.js"),a=o("./node_modules/reselect/lib/index.js"),d=o("./src/app/strings/index.ts"),c=o("./src/reddit/actions/monthsToMinutes.ts"),l=o("./src/reddit/components/HelpfulTooltip/index.tsx"),u=o("./src/reddit/components/TrackingHelper/index.tsx"),p=o("./src/reddit/selectors/user.ts"),m=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const f=Object(a.createStructuredSelector)({language:p.M}),h=Object(s.connect)(f,(e,t)=>({closeTooltip:()=>e(Object(c.y)(t.tooltipType))}));t.a=h(Object(u.b)(class extends i.a.Component{componentDidMount(){const e=this.props;e.sendEvent(t=>({source:"tooltip",action:"view",noun:e.tooltipType}))}render(){const e=this.props;return m(l.a,{className:e.className,isFixed:e.isFixed,onCloseClick:t=>{e.sendEvent(t=>({source:"tooltip",action:"close",noun:e.tooltipType})),e.closeTooltip()},style:e.style,text:Object(d.a)(e.language,`monthsToMinutes.tooltips.${e.tooltipType}`)})}}))},"./src/reddit/components/MutedUserList/MuteUserModal/index.tsx":function(e,t,o){"use strict";var n=o("./src/higherOrderComponents/makeAsync.tsx"),r=o("./src/lib/loadWithRetries/index.ts");const i=()=>null;t.a=Object(n.a)({ErrorComponent:i,getComponent:()=>Object(r.a)(()=>Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("vendors~GiftsEditProfile~GiftsGiftCreation~GiftsGiftEdit~GiftsShipping~HarbergerTaxManageModal~Moder~43e8895f"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("ModerationPages")]).then(o.bind(null,"./src/reddit/components/MutedUserList/MuteUserModal/_MuteUserModal.tsx"))).then(e=>e.default),LoadingComponent:i})},"./src/reddit/components/PinnedSubscriptions/index.m.less":function(e,t,o){e.exports={title:"FRrbwuHy8Zmlubp3nowLZ",listHeader:"_3hELZctjzdizaWjW1al9DZ",unpin:"_2oY_N7NWiAv9m_mFIRdwVX",icon:"_3B-ny-D97ZKwdUyXAaWF19"}},"./src/reddit/components/Poll/MetaData/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return d});o("./node_modules/react/index.js");var n,r=o("./src/app/strings/index.ts"),i=o("./src/lib/timeAgo/index.ts"),s=o("./src/lib/timeUntil/index.ts"),a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});function d(e){const t=new Date(e.poll.endsAt).getTime()-Date.now()<=0;return a("span",{className:e.className},void 0,t?Object(r.a)(e.language,"polls.closed",{timeAgo:Object(i.b)(e.language,e.poll.endsAt/1e3)}):Object(s.a)(e.language,new Date(e.poll.endsAt)))}},"./src/reddit/components/PostTitle/index.m.less":function(e,t,o){e.exports={flairList:"_1wrPey753PxLyLbB0NCEZP",outboundLinkIcon:"qgDkGQIoFEpMMeNtfI0BY",pollMeta:"FKej75-i0z1XubMqeVh9Q",styledLink:"SQnoC3ObvgnGjWt90zD9Z",titleContainer:"y8HYJ-y_lTUHkQIc1mdCq",postTitleVisibility:"_1hLrLjnE1G_RBCNcN9MVQf"}},"./src/reddit/components/PostTitle/index.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/polished/dist/polished.es.js"),i=o("./node_modules/react/index.js"),s=o.n(i),a=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/react-router-dom/es/index.js"),c=o("./node_modules/reselect/lib/index.js"),l=o("./bundled-modules/styled-components/styled-components.min.js"),u=o.n(l),p=o("./src/lib/classNames/index.ts"),m=o("./src/reddit/components/TrackingHelper/index.tsx"),f=o("./src/reddit/contexts/PageLayer/index.tsx"),h=o("./src/reddit/controls/OutboundLink/styled.tsx"),g=o("./src/lib/permalinkToOverlayLocation/index.ts"),b=o("./src/reddit/constants/screenWidths.ts"),v=o("./src/reddit/helpers/path/index.ts"),y=o("./src/reddit/helpers/styles/mixins/index.tsx"),x=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),O=o("./src/reddit/icons/fonts/OutboundLink/index.tsx"),C=o("./src/reddit/models/Flair/index.ts"),w=o("./src/reddit/models/Media/index.ts"),j=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),S=o("./src/lib/getShortenedLink.ts"),P=o("./src/reddit/components/FlairWrapper/index.tsx"),M=o("./src/app/strings/index.ts"),I=o("./src/lib/prettyPrintNumber/index.ts"),k=o("./src/reddit/components/Poll/MetaData/index.tsx"),N=o("./src/reddit/components/Governance/PostPollMetaData/index.m.less"),E=o.n(N),T=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const L=Object(c.createStructuredSelector)({language:e=>e.user.language,poll:(e,t)=>e.polls.models[t.pollId],resultsByVoters:(e,t)=>e.polls.results.byVoters[t.pollId]});var _=Object(a.connect)(L)(function(e){const t=e.poll,o=e.resultsByVoters,n=o?o.totalVotes:"0";return T("div",{className:Object(p.a)(e.className,E.a.proposalMetaData)},void 0,T("span",{},void 0,Object(M.d)(e.language,"polls.numVotesCommas",parseInt(n),{count:Object(I.a)(n)})),t&&T(k.a,{className:E.a.proposalMetaDataTime,language:e.language,poll:t}))}),F=o("./src/higherOrderComponents/asTooltip.tsx"),R=o("./src/reddit/components/Flair/index.tsx"),A=o("./src/reddit/components/InfoTextTooltip/index.tsx"),$=o("./src/reddit/constants/colors.ts"),D=o("./src/reddit/contexts/InsideOverlay.tsx"),B=o("./src/reddit/helpers/getOverlayContainerById/index.ts"),H=o("./src/reddit/selectors/user.ts"),Q=o("./src/reddit/components/PostTitle/index.m.less"),U=o.n(Q),z=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const G=["center","top"],V=["center","bottom"],W=u.a.span.withConfig({componentId:"kmle5d-0"})(["","background-color: ",";color: ",";"],R.b,$.a.alienblue,e=>Object(j.c)(e).body),q=Object(M.f)("postCreation.modifiers.originalContentPostLabel"),Z=Object(F.a)(A.b),K=Object(c.createStructuredSelector)({language:H.M});var Y=Object(a.connect)(K)(Object(D.b)(class extends s.a.Component{constructor(e){super(e),this.tooltipTargetElement=null,this.setTooltipTargetRef=(e=>this.tooltipTargetElement=e),this.onShowTooltip=(()=>{this.setState({showTooltip:!0})}),this.onHideTooltip=(()=>{this.setState({showTooltip:!1})}),this.state={showTooltip:!1}}render(){var e=this.props;const t=e.isOverlay,o=e.language,n=this.state.showTooltip,r=Object(B.a)(t);return z("div",{className:U.a.flairList},void 0,z(W,{onMouseEnter:this.onShowTooltip,onMouseLeave:this.onHideTooltip,innerRef:this.setTooltipTargetRef},void 0,z(Z,{text:q(o),container:r,isOpen:n,tooltipTarget:this.tooltipTargetElement,targetPosition:G,tooltipPosition:V}),"OC"))}})),X=o("./src/reddit/selectors/posts.ts"),J=o("./src/reddit/selectors/subreddit.ts"),ee=o("./src/config.ts");o.d(t,"b",function(){return te}),o.d(t,"a",function(){return ie});var te,oe=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},re=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};!function(e){e[e.ExtraLarge=0]="ExtraLarge",e[e.Large=1]="Large",e[e.Medium=2]="Medium",e[e.Small=3]="Small",e[e.ExtraSmall=4]="ExtraSmall"}(te||(te={}));const ie=u()(e=>{e.size,e.titleColor,e.nowrap;var t=e.redditStyle,o=re(e,["size","titleColor","nowrap","redditStyle"]);return s.a.createElement("h2",ne({},o,{"data-redditstyle":t}))}).withConfig({componentId:"s1okktje-0"})(["display: inline;","","","","@media (max-width: ","px) {","}padding-right: 5px;"],y.s,e=>{switch(e.size){case te.ExtraLarge:return`\n ${x.titleFontH2}\n `;case te.Large:return`\n ${x.titleFontH3}\n `;case te.Medium:return`\n ${x.titleFontH4}\n `;case te.Small:return`\n ${x.titleFontH5}\n `;case te.ExtraSmall:return`\n ${x.titleFontH6}\n `}},e=>e.titleColor?`color: ${e.titleColor};`:"",e=>e.nowrap?"\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n ":"",b.i-1,x.titleFontH5),se=Object(l.css)(["&:visited {"," {","}}"],ie,e=>e.disableVisited?"":`\n color: ${Object(r.c)(.45,e.titleColor||Object(j.c)(e).titleText,Object(j.c)(e).body)};\n `),ae=e=>{e.disableVisited,e.titleColor;var t=re(e,["disableVisited","titleColor"]);return s.a.createElement(d.a,ne({},t,{className:U.a.styledLink}),t.children)},de=Object(l.css)(["&:visited {"," {","}}"],ie,e=>e.disableVisited?"":`\n color: ${Object(r.c)(.45,Object(j.c)(e).titleText,"#FFFFFF")};\n `),ce=e=>{e.disableVisited,e.nowrap;var t=re(e,["disableVisited","nowrap"]);return s.a.createElement("span",ne({},t,{className:Object(p.a)(U.a.titleContainer,t.className)}))},le=Object(l.css)(["."," {","}."," {","","}"],U.a.styledLink,se,U.a.titleContainer,de,e=>e.nowrap?"\n display: flex;\n min-width: 0;\n ":""),ue=Object(f.w)({isCommentPermalink:f.y,pageLayer:e=>e}),pe=Object(c.createStructuredSelector)({flairPosition:(e,{pageLayer:t})=>Object(f.s)(e,{pageLayer:t}),isMeta:(e,{post:t})=>Object(X.m)(e,t.id),language:e=>e.user.language,subredditName:(e,{post:t})=>Object(J.G)(e,{subredditId:t.belongsTo.id}).name,shouldOpenPostInNewTab:H.Q}),me=Object(a.connect)(pe),fe=e=>{const t=e.post,o=t.isSponsored;if(!e.isCommentsPage||e.isCommentPermalink||e.shouldLinkWrap){const n=e.isCommentPermalink?Object(v.b)(t.permalink):Object(g.a)(t.permalink);return oe(ce,{disableVisited:e.disableVisited,nowrap:e.nowrap},void 0,o?s.a.createElement(he,e):oe(ae,{"data-click-id":"body",disableVisited:e.disableVisited,target:e.shouldOpenPostInNewTab?"_blank":void 0,titleColor:e.titleColor,to:n},void 0,s.a.createElement(he,e)))}return oe(ce,{nowrap:e.nowrap},void 0,s.a.createElement(he,e))},he=e=>{const t=e.post,o=e.format?e.format(t):t.title;return oe(ie,{nowrap:e.nowrap,redditStyle:e.isCommentsPage,size:e.size,titleColor:e.titleColor},void 0,o)},ge=e=>{const t=e.hideSourceLink,o=e.post,n=o.isSponsored,r=!t&&!e.isCrosspost&&e.size!==te.Large&&!o.isSponsored&&(o.source||o.media&&(o.media.type===w.m.GIFVIDEO||o.media.type===w.m.IMAGE||o.media.type===w.m.EMBED));if(t||!e.isCommentsPage||e.isCommentPermalink||e.shouldLinkWrap){if(r)return oe(h.a,{href:Object(w.w)(o),isSponsored:n,size:e.size,source:o.source},void 0,Object(S.a)(o),oe(O.a,{className:U.a.outboundLinkIcon}))}else if(o.source&&!e.isCrosspost&&e.size!==te.Large&&e.size!==te.ExtraLarge)return oe(h.a,{href:o.source.url,isSponsored:n,size:e.size,source:o.source},void 0,Object(S.a)(o),oe(O.a,{}));return null};t.c=u()(ue(me(Object(m.b)(class extends s.a.Component{render(){var e=this.props;const t=e.className,o=e.disableFlair,n=e.flairPosition,r=e.isCommentsPage,i=e.isMeta,a=e.isOverlay,d=e.language,c=e.poll,l=e.post,u=l.isOriginalContent,p=n===C.a.Left,m=Object(P.b)(i,l,d),f=p?m.filter(e=>Object(C.k)(e.type)):[],h=p?m.filter(e=>!Object(C.k)(e.type)):m,g=!o&&f&&f.length>0&&!a&&!r,b=!o&&h&&h.length>0&&!a&&!r;return oe("div",{className:t},void 0,g&&oe(P.a,{titleFlair:f,nowrap:!0,post:l,sendEvent:this.props.sendEvent,showCategoryTag:!1}),s.a.createElement(fe,this.props),c&&oe(_,{className:U.a.pollMeta,pollId:c.id}),!o&&u&&oe(Y,{},"ocTag"),s.a.createElement(ge,this.props),b&&oe(P.a,{titleFlair:h,nowrap:!0,post:l,sendEvent:this.props.sendEvent,showCategoryTag:!1}),oe("div",{className:U.a.postTitleVisibility,dangerouslySetInnerHTML:{__html:`\n <img src="${ee.a.assetPath}/img/renderTimingPixel.png" style="width: 1px; height: 1px;" onLoad="(__markFirstPostVisible || function(){})();" />\n `}}))}})))).withConfig({componentId:"s1okktje-1"})(["",""],le)},"./src/reddit/components/ProfileIcon/index.m.less":function(e,t,o){e.exports={img:"_165RkdCO9QoaErMgkkAsEc"}},"./src/reddit/components/RawHTMLDisplay/index.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/polished/dist/polished.es.js"),i=(o("./node_modules/react/index.js"),o("./node_modules/react-redux/es/index.js")),s=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(s),d=o("./src/reddit/actions/page.ts"),c=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),l=o("./src/reddit/helpers/styles/postBackgroundColor.ts"),u=o("./src/reddit/helpers/styles/smartTextColor.ts"),p=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),m=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const f=Object(i.connect)(null,e=>({onNavigate:t=>e(Object(d.M)(t))})),h=a()(e=>m("div",{className:e.className,dangerouslySetInnerHTML:{__html:e.html},onClick:t=>{((e,t,o)=>{e.ctrlKey||e.metaKey||1===e.button||"A"!==e.target.tagName||(e.preventDefault(),t(e.target.getAttribute("href"))),o&&o(e)})(t,e.onNavigate,e.onClick)}})).withConfig({componentId:"s1fohmsd-0"})(["","color: ",";word-break: break-word;h1 {","}h2 {","}h3 {","}h4 {","}h5 {","}h6 {","}h1, h2, h3, h4, h5, h6 {margin-top: 1.4em;margin-bottom: 8px;}/* api considers <strong> to be bold, and <em> as italic */em {font-style: italic;}strong {font-weight: 700;}sup {position: relative;top: -0.4em;font-size: 0.7em;line-height: 0.7em;}ul, ol {margin: 4px 0 4px 8px;}a {color: ",";&, &:visited {color: ",";text-decoration: underline;}}ul li, ol li {margin: 0.4em 1em;> p {margin-left: -0.2em;}}ul li {list-style: disc outside;}ol li {list-style: decimal outside;}p {padding: 0.5em 0;&:first-child {padding-top: 0;}&:last-child {padding-bottom: 0;}}blockquote {border-left: 4px solid rgba(0, 0, 0, 0.2);margin: 4px 0 4px 8px;padding-left: 8px;}pre {background: rgba(238, 238, 238, 0.8);display: grid;line-height: 1.4;margin: 4px 0;max-width: 100%;overflow: auto;padding: 8px;}pre code {background-color: transparent;color: #222;margin: 0;}code {","background: ",";color: ",";margin: 0 2px;max-width: 100%;overflow: auto;}table {border: 2px solid ",";border-collapse: collapse;display: inline-block;margin-bottom: 4px;margin-top: 4px;overflow-x: auto;word-break: normal;max-width: 100%;}tr {border: 1px solid ",";&:nth-child(even) {background-color: ",";}&:nth-child(odd) {background-color: ",";}}th, td {border: 1px solid ",";padding: 4px 8px;}th {text-align: center;}hr {border: 0;border-top: 1px solid ",";height: 1px;margin-bottom: 8px;margin-top: 8px;}.md-spoiler-text {border-radius: 2px;background: ",";cursor: pointer;color: transparent;& > * {opacity: 0;}}"],c.bodyFont,e=>Object(u.a)(Object(l.a)(e)),c.bodyFontH1,c.bodyFontH2,c.bodyFontH3,c.bodyFontH4,c.bodyFontH5,c.bodyFontH6,e=>Object(p.c)(e).linkText,e=>Object(p.c)(e).linkText,c.bodyFontMono,e=>Object(p.c)(e).flair,e=>Object(p.c)(e).postFlairText,e=>Object(p.c)(e).line,e=>Object(p.c)(e).line,e=>Object(r.e)(Object(p.c)(e).body,.8),e=>Object(r.e)(Object(p.c)(e).line,.8),e=>Object(p.c)(e).line,e=>Object(r.e)(Object(p.c)(e).bodyText,.2),e=>Object(p.c)(e).metaText);t.a=f(h)},"./src/reddit/components/RichTextJson/SpoilerText.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=o("./node_modules/react-redux/es/index.js"),a=o("./node_modules/reselect/lib/index.js"),d=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(d),l=o("./src/app/strings/index.ts"),u=o("./src/higherOrderComponents/addOverlayEvents.tsx"),p=o("./src/higherOrderComponents/asTooltip.tsx"),m=o("./src/reddit/components/InfoTextTooltip/index.tsx"),f=o("./src/reddit/contexts/InsideOverlay.tsx"),h=o("./src/reddit/helpers/getOverlayContainerById/index.ts"),g=o("./src/reddit/selectors/user.ts"),b=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const v=["left","top"],y=["left","bottom"],x=c.a.span.withConfig({componentId:"jtcmxq-0"})(["opacity: 0;transition: opacity ease-out 1s;"]),O=c.a.span.withConfig({componentId:"jtcmxq-1"})(["// Workaround for chrome to fix tooltip position when\n// spoiler text starts with space\n&:before {content: '';position: absolute;visibility: hidden;}"]),C=c.a.span.withConfig({componentId:"jtcmxq-2"})(["border-radius: 2px;transition: background ease-out 1s;",""," {opacity: ",";}"],e=>e.isOpen?"\n background: rgba(84, 84, 82, 0.1);\n ":"\n background: #545452;\n cursor: pointer;\n ",x,e=>e.isOpen?1:0),w=Object(p.a)(c()(m.b).withConfig({componentId:"jtcmxq-3"})(["animation-duration: .1s;&:after {left: 10px;}"]),[u.a.Click,u.a.Keydown]),j=Object(a.createStructuredSelector)({language:g.M}),S=Object(s.connect)(j);t.a=S(Object(f.b)(class extends i.a.Component{constructor(e){super(e),this.tooltipTargetElement=null,this.onClick=(e=>{this.state.isOpen||(e.preventDefault(),e.stopPropagation(),this.setState({isOpen:!0}))}),this.setTooltipTargetRef=(e=>this.tooltipTargetElement=e),this.onShowTooltip=(()=>{this.state.isOpen||this.setState({showTooltip:!0})}),this.onHideTooltip=(()=>{this.setState({showTooltip:!1})}),this.state={isOpen:!1,showTooltip:!1}}render(){var e=this.props;const t=e.isOverlay,o=e.language;var n=this.state;const r=n.isOpen,i=n.showTooltip,s=Object(h.a)(t);return b(C,{isOpen:r,onMouseEnter:this.onShowTooltip,onMouseLeave:this.onHideTooltip,onClick:this.onClick},void 0,b(x,{},void 0,b(O,{innerRef:this.setTooltipTargetRef}),b(w,{container:s,isOpen:i,tooltipTarget:this.tooltipTargetElement,text:Object(l.a)(o,"posts.spoilerRevealTooltip"),targetPosition:v,tooltipPosition:y}),this.props.children))}}))},"./src/reddit/components/RichTextJson/elements.tsx":function(e,t,o){"use strict";o.d(t,"w",function(){return u}),o.d(t,"e",function(){return p}),o.d(t,"h",function(){return m}),o.d(t,"k",function(){return f}),o.d(t,"c",function(){return h}),o.d(t,"j",function(){return g}),o.d(t,"g",function(){return b}),o.d(t,"v",function(){return v}),o.d(t,"i",function(){return y}),o.d(t,"b",function(){return x}),o.d(t,"f",function(){return O}),o.d(t,"u",function(){return C}),o.d(t,"d",function(){return w}),o.d(t,"l",function(){return j}),o.d(t,"m",function(){return S}),o.d(t,"n",function(){return P}),o.d(t,"t",function(){return M}),o.d(t,"p",function(){return k}),o.d(t,"o",function(){return N}),o.d(t,"q",function(){return E}),o.d(t,"s",function(){return T}),o.d(t,"r",function(){return L}),o.d(t,"a",function(){return _});var n=o("./node_modules/polished/dist/polished.es.js"),r=o("./node_modules/react/index.js"),i=o.n(r),s=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(s),d=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),c=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e};const u=[a.a.h1.withConfig({componentId:"s90z9tc-0"})(["","margin-bottom: 8px;margin-top: 1.4em;"],d.bodyFontH1),a.a.h2.withConfig({componentId:"s90z9tc-1"})(["","margin-bottom: 8px;margin-top: 1.4em;"],d.bodyFontH2),a.a.h3.withConfig({componentId:"s90z9tc-2"})(["","margin-bottom: 8px;margin-top: 1.4em;"],d.bodyFontH3),a.a.h4.withConfig({componentId:"s90z9tc-3"})(["","margin-bottom: 8px;margin-top: 1.4em;"],d.bodyFontH4),a.a.h5.withConfig({componentId:"s90z9tc-4"})(["","margin-bottom: 8px;margin-top: 1.4em;"],d.bodyFontH5),a.a.h6.withConfig({componentId:"s90z9tc-5"})(["","margin-bottom: 8px;margin-top: 1.4em;"],d.bodyFontH6)],p=a.a.hr.withConfig({componentId:"s90z9tc-6"})(["border: 0;border-top: 1px solid ",";height: 1px;margin: 8px 0;"],e=>Object(n.e)(Object(c.c)(e).bodyText,.2)),m=a.a.code.withConfig({componentId:"s90z9tc-7"})(["","background: rgba(238, 238, 238, 0.8);color: #FF006D;margin: 0 2px;max-width: 100%;overflow: auto;"],d.bodyFontMono),f=a.a.pre.withConfig({componentId:"s90z9tc-8"})(["background: rgba(238, 238, 238, 0.8);display: grid;line-height: 1.4;margin: 4px 0;max-width: 100%;overflow: auto;padding: 8px;> "," {background-color: transparent;color: #222;margin: 0;}"],m),h=a.a.blockquote.withConfig({componentId:"s90z9tc-9"})(["border-left: 4px solid ",";margin: 4px 0 4px 8px;padding-left: 8px;"],e=>Object(n.e)(Object(c.c)(e).bodyText,.2)),g=a.a.p.withConfig({componentId:"s90z9tc-10"})(["padding: 0.25em 0;&:first-child {padding-top: 0;}&:last-child {padding-bottom: 0;}"]),b=a.a.li.withConfig({componentId:"s90z9tc-11"})(["margin: 0.4em 1em;"," {padding: 0;}"],g),v=a.a.ul.withConfig({componentId:"s90z9tc-12"})(["list-style: disc outside;margin: 4px 0 4px 8px;& & {list-style-type: circle;}& & & {list-style-type: square;}"]),y=a.a.ol.withConfig({componentId:"s90z9tc-13"})(["list-style: decimal outside;margin: 4px 0 4px 20px;& & {list-style-type: lower-alpha;}& & & {list-style-type: lower-roman;}"]),x=a.a.strong.withConfig({componentId:"s90z9tc-14"})(["font-weight: 700;"]),O=a.a.em.withConfig({componentId:"s90z9tc-15"})(["font-style: italic;"]),C=a.a.span.withConfig({componentId:"s90z9tc-16"})(["text-decoration: underline;"]),w=e=>i.a.createElement("del",e),j=a.a.sub.withConfig({componentId:"s90z9tc-17"})(["position: relative;bottom: -0.4em;font-size: 0.7em;line-height: 0.7em;"]),S=a.a.sup.withConfig({componentId:"s90z9tc-18"})(["position: relative;top: -0.4em;font-size: 0.7em;line-height: 0.7em;"]),P=a.a.table.withConfig({componentId:"s90z9tc-19"})(["border: 2px solid #EEEEEE;border-collapse: collapse;display: inline-block;margin-bottom: 4px;margin-top: 4px;overflow-x: auto;word-break: normal;"]),M=a.a.tr.withConfig({componentId:"s90z9tc-20"})(["border: 1px solid #EEEEEE;&:nth-child(even) {background-color: ",";}&:nth-child(odd) {background-color: ",";}"],e=>Object(n.e)(Object(c.c)(e).body,.8),e=>Object(n.e)(Object(c.c)(e).body,.8)),I=`\n border: 1px solid #EEEEEE;\n color: ${e=>Object(c.c)(e).bodyText};\n padding: 4px 8px;\n`,k=a.a.td.withConfig({componentId:"s90z9tc-21"})(["","background-color: ",";text-align: left;"],I,e=>Object(n.e)(Object(c.c)(e).body,.8)),N=a.a.td.withConfig({componentId:"s90z9tc-22"})(["","text-align: center;"],I),E=a.a.td.withConfig({componentId:"s90z9tc-23"})(["","text-align: right;"],I),T=a.a.th.withConfig({componentId:"s90z9tc-24"})(["","text-align: left;"],I),L=a.a.th.withConfig({componentId:"s90z9tc-25"})(["","text-align: center;"],I),_=(a.a.th.withConfig({componentId:"s90z9tc-26"})(["","text-align: right;"],I),a()(e=>i.a.createElement("a",l({target:"_blank"},e))).withConfig({componentId:"s90z9tc-27"})(["&, &:visited {color: ",";text-decoration: underline;}"],e=>Object(c.c)(e).linkText))},"./src/reddit/components/RichTextJson/index.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/lodash/findLastIndex.js"),i=o.n(r),s=o("./node_modules/react/index.js"),a=o.n(s),d=o("./bundled-modules/styled-components/styled-components.min.js"),c=o.n(d),l=o("./src/lib/raven/index.ts"),u=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),p=o("./src/reddit/helpers/styles/postBackgroundColor.ts"),m=o("./src/reddit/helpers/styles/smartTextColor.ts"),f=o("./src/reddit/models/RichTextJson/index.ts"),h=o("./src/app/strings/index.ts"),g=o("./src/config.ts"),b=o("./src/reddit/components/HTML5StreamPlayer/index.tsx"),v=o("./src/reddit/components/Media/EmbedBox/index.tsx"),y=o("./src/reddit/components/Media/ImageBox/index.tsx"),x=o("./src/reddit/components/Media/MediaContainer/index.tsx"),O=o("./src/reddit/components/Media/VideoBox/index.tsx"),C=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),w=o("./src/reddit/components/RichTextJson/elements.tsx"),j=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const S=/\/(\w+)\/asset\/(\w+)\//,P=c()(w.a).withConfig({componentId:"wgc3ag-0"})(["display: block;"]),M=c()(y.a).withConfig({componentId:"wgc3ag-1"})(["margin-top: 16px;"]),I=c()(x.a).withConfig({componentId:"wgc3ag-2"})(["max-width: ",";margin: 16px auto;"],e=>`${e.width}px`),k=c()(e=>a.a.createElement("p",e)).withConfig({componentId:"wgc3ag-3"})(["margin-bottom: 16px;font-size: 0.8em;text-align: center;"]),N=c.a.div.withConfig({componentId:"wgc3ag-4"})(["background-color: ",";border-radius: 4px;padding-bottom: 56%; // ~ 16/9 aspect ratio\nposition: relative;width: 100%;margin-bottom: 20px;&:after {bottom: 8px;content: '","';font-size: 0.9em;left: 16px;position: absolute;}"],e=>Object(C.c)(e).inactive,e=>e.e===f.C?Object(h.a)(e.language,"postCreation.processingVideo"):Object(h.a)(e.language,"postCreation.processingImage")),E=({c:e,x:t,y:o})=>j(I,{height:o,width:t,isListing:!1,showCentered:!0,showFull:!0},void 0,j(v.a,{isListing:!1,source:e,height:o,width:t,showCentered:!0,showFull:!0})),T=({id:e,s:t})=>j(I,{height:t.y,width:t.x,isListing:!1,showCentered:!0,showFull:!0},void 0,j(M,{originalSource:t.u,postId:e,source:t.u,height:t.y,width:t.x,shouldBlur:!1,showCentered:!0,showFull:!0,isListing:!1})),L=({id:e,s:t})=>j(I,{height:t.y,width:t.x,isListing:!1,showCentered:!0,showFull:!0},void 0,j(O.a,{height:t.y,isListing:!1,isNotCardView:!0,originalSource:t.mp4,width:t.x,postId:e,source:t.mp4,shouldPause:!1,showCentered:!0,shouldLoad:!0,showFull:!0})),_=({hlsUrl:e,dashUrl:t,x:o,y:n,isGif:r})=>j(I,{height:n,width:o,isListing:!1,showCentered:!0,showFull:!0},void 0,j(b.b,{shouldLoad:!0,shouldPause:!0,autoPlay:r,hlsSource:e,mpegDashSource:t,isGif:r})),F=e=>j(k,{},void 0,e),R=(e,t="en")=>j(N,{e,language:t}),A=(e,t)=>{const o=e.c;let n="";return t&&(t.e===f.s?n=t.s.u:t.e===f.r?n=t.s.gif:t.e===f.t&&(n=(e=>{const t=S.exec(e);return t?`${g.a.redditUrl}/link/${t[1]}/video/${t[2]}/player`:""})(t.dashUrl))),n?j(P,{title:o,href:n},void 0,o||n):null};var $=o("./node_modules/lodash/reduce.js"),D=o.n($),B=o("./src/lib/unicodeUtils/index.ts"),H=o("./src/reddit/components/RichTextJson/SpoilerText.tsx"),Q=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(o.push(s.value),!t||o.length!==t);n=!0);}catch(d){r=!0,i=d}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),U=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const z=e=>{const t=e.c||[],o=e.l,n=[],r=t.length;for(let s=0;s<r;s++){const e=t[s];n.push(e.e===f.w?e.t:te(e))}const i=w.w[o-1];return U(i,{},void 0,n)},G=()=>U(w.e,{}),V=e=>{const t=e.c;if(!t)return;const o=t.length,n=[];for(let r=0;r<o;r++)n.push(Z(t[r]));return U(w.c,{},void 0,n)},W=e=>{const t=e.c;return U(w.k,{},void 0,U(w.h,{},void 0,t.reduce((e,t,o,n)=>e+=t.t+(o<n.length?"\n":""),"")))},q=e=>{const t=e.c,o=[],n=t.length;for(let i=0;i<n;i++){const e=t[i].c;e&&e.length&&o.push(U(w.g,{},void 0,e.map(Z)))}const r=e.o?w.i:w.v;return U(r,{},void 0,o)},Z=e=>{switch(e.e){case f.b:return V(e);case f.c:return W(e);case f.k:return z(e);case f.l:return G();case f.p:return q(e);case f.u:return X(e);case f.z:return K(e)}},K=e=>{const t=e.c,o=e.h,n=t.length,r=o.length,i=[],s=[],a=[];for(let u=0;u<r;u++){const e=o[u];var d=ie(e.a);const t=d.H,n=d.D;var c=e.c;const r=void 0===c?[]:c;i.push(U(t,{},void 0,J(r))),a[u]=n}for(let u=0;u<n;u++){const e=t[u],o=e.length,n=[];for(let t=0;t<o;t++){const o=a[t];var l=e[t].c;const r=void 0===l?[]:l;n.push(U(o,{},void 0,J(r)))}s.push(U(w.t,{},void 0,n))}return U(w.n,{},void 0,U("thead",{},void 0,U(w.t,{},void 0,i)),U("tbody",{},void 0,s))},Y=U(w.j,{},void 0,U("br",{})),X=e=>e.c&&e.c.length?U(w.j,{},void 0,J(e.c)):Y,J=e=>{const t=[],o=e.length;for(let n=0;n<o;n++){const o=e[n];o.e===f.A?t.push(oe(o)):o.e===f.x?t.push(U(H.a,{},void 0,J(o.c))):o.e===f.n?t.push(U("br",{})):t.push(te(o))}return t},ee=(e,t)=>{const o=`${t}/${e.t}`;return U(w.a,{href:`/${o}`},void 0,`${e.l?"/":""}${o}`)},te=e=>{switch(e.e){case f.o:return U(w.a,{title:e.a,href:e.u},void 0,oe({t:e.t,f:e.f}));case f.y:return ee(e,"r");case f.B:return ee(e,"u");case f.g:case f.v:return U(w.a,{href:e.t},void 0,e.t)}},oe=e=>{const t=e.f,o=e.t,n=[];if(!t)return re(0,o);const r=Object(B.a)(o);let i=0,s=0;const a=t.length;for(;i<a;i++){var d=Q(t[i],3);const e=d[0],a=d[1],c=a+d[2],l=r[a],u=r[c]-l;l>s&&n.push(re(0,o.substr(s,l-s))),n.push(re(e,o.substr(l,u))),s=l+u}return s<o.length&&n.push(re(0,o.substr(s))),n},ne={[f.j.monospace]:w.h,[f.j.bold]:w.b,[f.j.italic]:w.f,[f.j.underline]:w.u,[f.j.strikethrough]:w.d,[f.j.subscript]:w.l,[f.j.superscript]:w.m},re=(e,t)=>{let o=t;return o=D()(ne,(t,o,n)=>e&parseInt(n,10)?U(o,{},void 0,t):t,o)},ie=e=>{switch(e){case f.f:return{H:w.r,D:w.q};case f.d:return{H:w.r,D:w.o};case f.e:default:return{H:w.r,D:w.p}}};o.d(t,"a",function(){return de}),o.d(t,"b",function(){return ue});var se=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),ae=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};const de=c.a.div.withConfig({componentId:"fo16tt-0"})(["","color: ",";word-break: break-word;overflow: auto;"],u.bodyFont,e=>Object(m.a)(Object(p.a)(e))),ce=e=>e.e===f.k?!!e.c&&!e.c.every(e=>!e.t):e.e!==f.u||!!e.c&&!e.c.every(e=>e.e===f.A&&!e.t),le=e=>{const t=e.className,o=e.content,n=e.language,r=e.mediaMetadata,s=e.renderMediaAsLinks,a=o.document,d=[],c=(e=>e.findIndex(ce))(a),l=(e=>i()(e,ce))(a);if(-1!==c)for(let i=c;i<=l;i++){const e=a[i];switch(e.e){case f.k:d.push(z(e));break;case f.l:d.push(G());break;case f.b:d.push(V(e));break;case f.c:d.push(W(e));break;case f.p:d.push(q(e));break;case f.z:d.push(K(e));break;case f.u:d.push(X(e));break;case f.h:d.push(E(e));break;case f.m:case f.a:case f.C:{const t=f.D(r,e.id);s?d.push(A(e,t)):(t?t.e===f.s?d.push(T(t)):t.e===f.r?d.push(L(t)):t.e===f.t&&d.push(_(t)):d.push(R(e.e,n)),e.c&&d.push(F(e.c)));break}}}return se(de,{className:t,flairStyleTemplate:e.flairStyleTemplate},void 0,d)};class ue extends a.a.Component{constructor(){super(...arguments),this.hasError=!1,this.state={hasError:!1},this.renderDefaultFallback=(()=>"Something went wrong while trying to render this")}componentDidCatch(e){this.setState({hasError:!0}),this.logError(e)}logError(e){Object(l.b)(e,{extra:{objectInfo:this.props.renderingObjectInfo},tags:{rtjson:"rendering"}})}render(){const e=this.props;e.renderingObjectInfo;var t=e.renderFallback;const o=void 0===t?this.renderDefaultFallback:t,n=ae(e,["renderingObjectInfo","renderFallback"]);if(this.hasError||this.state.hasError)return o();try{return le(n)}catch(r){return this.hasError=!0,this.logError(r),o()}}}},"./src/reddit/components/Root/redesignFont.less":function(e,t,o){},"./src/reddit/components/ShortcutWrapper/index.m.less":function(e,t,o){e.exports={shortcutDiv:"_1gsAk1ihQliBnDybgyjghy"}},"./src/reddit/components/SubredditIcon/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return b});var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=o("./src/reddit/constants/colors.ts"),a=o("./src/reddit/helpers/getSubredditOrProfileIconData/index.tsx"),d=o("./src/reddit/icons/svgs/CircledPlanet/index.tsx"),c=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),l=o("./bundled-modules/styled-components/styled-components.min.js"),u=o.n(l),p=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),m=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};const f=Object(l.css)(["border-radius: 100%;vertical-align: middle;"]),h=u.a.img.withConfig({componentId:"s1leg329-0"})(["","",""],f,e=>e.iconColor?`background-color: ${e.iconColor};`:""),g=u()(e=>{e.color;var t=m(e,["color"]);return i.a.createElement(d.a,t)}).withConfig({componentId:"s1leg329-1"})(["background: ",";border: 1px solid ",";border-radius: 9001px;box-sizing: border-box;color: ",";padding: 3px;vertical-align: middle;fill: ",";"],e=>e.color?e.color:Object(c.c)(e).active,e=>Object(c.c)(e).lightText,e=>Object(c.c)(e).lightText,e=>Object(c.c)(e).lightText),b=u.a.div.withConfig({componentId:"s1leg329-2"})(["","background-size: 20px 20px;display: inline-block;"],f);t.b=(e=>{let t,o;if(e.subredditOrProfile){var n=Object(a.a)({subredditOrProfile:e.subredditOrProfile});t=n.url,o=n.color}else t=e.iconUrl,o=e.primaryColor||s.a.alienblue;if(t){const n=p(h,{className:e.className,iconColor:o,role:"presentation",src:t});return e.linkTo?p("a",{href:e.linkTo},void 0,n):n}const r=p(g,{className:e.className,color:e.redditStyle?s.a.alienblue:o,role:"presentation"});return e.linkTo?p("a",{href:e.linkTo},void 0,r):r})},"./src/reddit/components/ThemeProvider/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return w});var n,r=o("./node_modules/lodash/isEqual.js"),i=o.n(r),s=o("./node_modules/react/index.js"),a=o.n(s),d=o("./node_modules/react-redux/es/index.js"),c=o("./node_modules/reselect/lib/index.js"),l=o("./bundled-modules/styled-components/styled-components.min.js"),u=o("./src/lib/objectSelector/index.ts"),p=o("./src/reddit/contexts/PageLayer/index.tsx"),m=o("./src/reddit/contexts/PageLayer/selectors.ts"),f=o("./src/reddit/models/StructuredStyles/index.ts"),h=o("./src/reddit/models/Theme/index.ts"),g=o("./src/reddit/selectors/structuredStyles.ts"),b=o("./src/reddit/selectors/subreddit.ts"),v=o("./src/reddit/selectors/user.ts"),y=o("./src/lib/CSSVariableProvider/index.tsx"),x=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const O=(e,t)=>t.forceRedditTheme?void 0:void 0!==t.subredditName?t.subredditName:Object(m.p)(e,t);const C=Object(d.connect)(()=>Object(c.createSelector)(e=>e.themes.current,e=>!!Object(g.i)(e),e=>{if(Object(g.i)(e))return e.structuredStyles.draft},(e,t)=>{if(Object(g.i)(e))return Object(g.f)(e,t)},O,Object(u.a)((e,t)=>{if(Object(g.i)(e)||Object(v.Z)(e))return;const o=O(e,t);if(!o)return;const n=Object(b.z)(e,o);if(!n)return;if(Object(v.Y)(e,{subredditId:n}))return;const r=e.structuredStyles.models[n];return r||void 0}),(e,t)=>{const o=O(e,t);if(!o)return;const n=Object(b.s)(e,{subredditName:o});return n?n.emojisCustomSize:void 0},(e,t)=>Object(v.fb)(e).nightmode,(e,t)=>{if(!Object(v.fb)(e).hideNSFW)return!0;const o=O(e,t);if(o){const t=Object(b.v)(e,{subredditName:o});return!(!t||!t.isNSFW)}return!1},(e,t)=>t.isOverlay,(e,t)=>t.isCommentsPage,(e,t,o,n,r,s,a,d,c,l,u)=>{const p={customEmojisSize:a,shouldShowNSFWContent:c,isCommentsPage:l,isOverlay:u},m=r&&r.length?`SubredditVars-r-${r}`:y.b;if(t&&o&&n){const e=Object(f.d)(o,n);return{isRootOrUniqueClassName:m,theme:Object(h.j)(e,p)}}if(s){const e=Object(f.d)(s);let t;return{isRootOrUniqueClassName:m,theme:t=d?Object(h.i)(e,p):Object(h.j)(e,p)}}return i()(e.subredditContext,p)?{isRootOrUniqueClassName:m,theme:e}:(e.subredditContext=p,{isRootOrUniqueClassName:m,theme:e})}))(class extends a.a.Component{render(){var e=this.props;const t=e.children,o=e.isRootOrUniqueClassName,n=e.theme;return x(l.ThemeProvider,{theme:n},void 0,x(y.c,{theme:n,isRootOrUniqueClassName:o},void 0,t))}});t.b=C;const w=Object(p.w)()(C)},"./src/reddit/components/Thumbnail/index.m.less":function(e,t,o){e.exports={blurredThumbnail:"GnWcY6GPzeZ5rzsiQ98fo",container:"_2MkcR85HDnYngvlVW2gMMa",contentType:"_2hIvPRO2xz4rn9LXAJXYDa",hiddenImage:"_25ZOvQhQdAqwdxPd5z-KFB",imageThumbnail:"_33Pa96SGhFVpZeI6a7Y_Pl",linkIcon:"m0n699kowSp8Wfa40lqpF",outboundLinkIcon:"_2rOixIHGmpfZB93ihJsw3V",placeholderThumbnail:"_2YO2O4rMRYYMeH_t2y8M5w",thumbnail:"_2c1ElNxHftd8W_nZtcG9zf",usePreview:"_78ohNtfA1urjgUhnN1jLi"}},"./src/reddit/components/Thumbnail/index.tsx":function(e,t,o){"use strict";o.d(t,"e",function(){return w}),o.d(t,"c",function(){return j}),o.d(t,"b",function(){return P}),o.d(t,"a",function(){return M});var n,r=o("./src/lib/isUrl/index.ts"),i=o("./node_modules/react/index.js"),s=o.n(i),a=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(a),c=o("./src/lib/classNames/index.ts"),l=o("./src/reddit/controls/ContentType/index.tsx"),u=o("./src/reddit/controls/OutboundLink/index.tsx"),p=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),m=o("./src/reddit/helpers/styles/mixins/index.tsx"),f=o("./src/reddit/icons/fonts/OutboundLink/index.tsx"),h=o("./src/reddit/models/Media/index.ts"),g=o("./src/reddit/models/Theme/index.ts"),b=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),v=o("./src/reddit/constants/posts.ts"),y=o("./src/reddit/components/Thumbnail/index.m.less"),x=o.n(y),O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},C=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const w=Object(a.css)(["."," {","}."," {background-color: ",";}."," {","}."," {filter: blur(","px);}."," {color: ",";}."," {color: ",";}"],x.a.container,m.d,x.a.linkIcon,e=>Object(b.c)(e).button,x.a.thumbnail,m.d,x.a.blurredThumbnail,v.f,x.a.placeholderThumbnail,e=>Object(b.c)(e).button,x.a.outboundLinkIcon,e=>Object(b.c)(e).body),j=Object(a.css)(["@media (max-width: 639px) {."," {border-radius: 4px;height: 60px;width: 80px;}}@media (min-width: 640px) {."," {","}}."," {background-color: ",";}."," {","}."," {filter: blur(","px);}."," {color: ",";}."," {color: ",";}"],x.a.container,x.a.container,m.d,x.a.linkIcon,e=>Object(b.c)(e).button,x.a.thumbnail,m.d,x.a.blurredThumbnail,v.f,x.a.placeholderThumbnail,e=>Object(b.c)(e).button,x.a.outboundLinkIcon,e=>Object(b.c)(e).body),S=e=>e.placeholderImage||Object(b.c)(e).placeholderImage,P=d.a.span.withConfig({componentId:"s1m0a5q6-0"})(["color: ",";","margin-left: 16px;max-width: 124px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;"],e=>Object(b.c)(e).body,p.metadataFont),M=({className:e,onClick:t,children:o})=>C("div",{onClick:t,className:Object(c.a)(x.a.linkIcon,e)},void 0,o),I=e=>C("img",{alt:e.alt,className:Object(c.a)(x.a.hiddenImage,e.className)}),k=e=>C("div",{"aria-label":e.alt,className:Object(c.a)(x.a.thumbnail,x.a.imageThumbnail,e.className),"data-click-id":"image",role:"img",style:{backgroundImage:`url(${e.src})`,borderColor:e.isOutbound?Object(b.c)(e).button:Object(b.c)(e).line}},void 0,e.isOutbound&&C(M,{},void 0,C(f.a,{className:x.a.outboundLinkIcon}),e.text&&C(P,{},void 0,e.text)),C(I,{alt:e.alt,className:"hiddenImg"})),N=e=>C("div",{className:Object(c.a)(x.a.thumbnail,x.a.placeholderThumbnail,e.className),"data-click-id":"image",style:{borderColor:(e=>e.isOutbound?Object(b.c)(e).button:e.placeholderImage?"transparent":Object(b.c)(e).line)(e),background:S(e)?Object(g.g)(Object(b.c)(e).placeholder,S(e),(e=>e.placeholderImage?"cover":Object(b.c)(e).placeholderImagePosition)(e)):""}},void 0,(!e.placeholderImage||e.showContentType)&&C(T,{className:x.a.contentType,isOutbound:e.isOutbound,type:e.isMeta?"meta":e.type}),e.isOutbound&&C(M,{},void 0,C(f.a,{className:x.a.outboundLinkIcon}),e.text&&C(P,{},void 0,e.text))),E=e=>s.a.createElement(k,O({},e,{className:Object(c.a)(x.a.blurredThumbnail,e.className)})),T=d()(l.b).withConfig({componentId:"s1m0a5q6-1"})(["color: ",";"],e=>e.type&&!e.isOutbound?Object(b.c)(e).actionIcon:Object(b.c)(e).button);t.d=Object(a.withTheme)(e=>{const t=e.className,o=e.crosspost,n=e.forceShowNSFW,i=e.isMeta,s=e.post,a=e.removeLink,d=e.showContentType,l=e.templatePlaceholderImage,p=e.text,m=e.theme,f=e.url,g=e.usePreview,b=!m.subredditContext.shouldShowNSFWContent&&(s.isNSFW||!(!o||!o.isNSFW))&&!n,v=S({theme:m,placeholderImage:l}),y=f||(o?g&&o.preview?o.preview.url:o.thumbnail.url:g&&s.preview?s.preview.url:s.thumbnail.url),O=L(s,t,v,b,p,m,y,i,d,a),w=Object(h.w)(s);return Object(r.a)(w)&&!a&&w.indexOf("redditmedia")<0?C("div",{className:Object(c.a)(x.a.container,g?x.a.usePreview:"")},void 0,C(u.a,{href:Object(h.w)(s),isSponsored:s.isSponsored,source:s.source},void 0,O)):C("div",{className:Object(c.a)(x.a.container,g?x.a.usePreview:"")},void 0,O)});const L=(e,t,o,n,i,s,a,d,c,l)=>{const u=e.source&&!e.isSponsored||!1;return Object(r.a)(a)?n?C(E,{"data-click-id":"image",src:a,className:t,isOutbound:u&&!l,text:i,theme:s}):C(k,{alt:e.title,className:t,src:a,isOutbound:u&&!l,text:i,theme:s}):C(N,{className:t,placeholderImage:o,isMeta:d,isOutbound:u&&!l,showContentType:c,text:i,theme:s,type:e.media?e.media.type:null})}},"./src/reddit/components/Toaster/index.m.less":function(e,t,o){e.exports={AuthErrorToastIcon:"_2Jt0Cjod2bIVz4VEgb6ZNn",authErrorToastIcon:"_2Jt0Cjod2bIVz4VEgb6ZNn",AuthErrorToastPrimaryButton:"_1BkkYahLrqvrnZoHHBH9pU",authErrorToastPrimaryButton:"_1BkkYahLrqvrnZoHHBH9pU"}},"./src/reddit/components/Translated/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return u});var n,r=o("./node_modules/lodash/isEqual.js"),i=o.n(r),s=o("./node_modules/react/index.js"),a=o.n(s),d=o("./src/app/strings/index.ts"),c=o("./src/reddit/contexts/Language.tsx"),l=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});class u extends a.a.Component{constructor(){super(...arguments),this.getString=(e=>Object(d.a)(e,this.props.msgId,this.props.replacements))}shouldComponentUpdate(e){return this.props.msgId!==e.msgId||!i()(this.props.replacements,e.replacements)}render(){return l(c.a.Consumer,{},void 0,this.getString)}}},"./src/reddit/components/UserFlairPicker/index.m.less":function(e,t,o){e.exports={buttonsRow:"_2jjk9b3mpveU6Vpam4kPBm"}},"./src/reddit/components/VerticalVotes/index.m.less":function(e,t,o){e.exports={voteButton:"cYUyoUM3wmgRXEHv1LlZv",bounceUp:"nmB1I04Z-G4nY3g3s_17F",bounceDown:"_1L6r7KisMt3CYUGWSEMGiR"}},"./src/reddit/components/VerticalVotes/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return S});var n,r=o("./node_modules/polished/dist/polished.es.js"),i=o("./node_modules/react/index.js"),s=o.n(i),a=o("./node_modules/react-redux/es/index.js"),d=o("./node_modules/reselect/lib/index.js"),c=o("./bundled-modules/styled-components/styled-components.min.js"),l=o.n(c),u=o("./src/app/strings/index.ts"),p=o("./src/lib/classNames/index.ts"),m=o("./src/reddit/controls/Score/index.tsx"),f=o("./src/reddit/components/VerticalVotes/votes.tsx"),h=o("./src/reddit/helpers/styles/mixins/index.tsx"),g=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),b=o("./src/reddit/models/Vote/index.ts"),v=o("./src/reddit/selectors/monthsToMinutes.ts"),y=o("./src/reddit/selectors/user.ts"),x=o("./src/reddit/components/VerticalVotes/index.m.less"),O=o.n(x),C=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const w=Object(d.createStructuredSelector)({language:y.M,m2mIsEnabled:v.u}),j=Object(a.connect)(w),S=Object(c.css)(["."," {&:focus {border-radius: 2px;background-color: ",";outline: none;}}"],O.a.voteButton,e=>Object(r.e)(Object(g.c)(e).navIcon,.1));t.a=l()(Object(c.withTheme)(j(class extends s.a.Component{constructor(){super(...arguments),this.state={voted:b.a.notVoted},this.onUpvote=(()=>{const e=this.props.model.voteState;(0,this.props.onVoteClick)(b.a.upvoted),this.setState({voted:e!==b.a.upvoted?b.a.upvoted:b.a.notVoted})}),this.onDownvote=(()=>{const e=this.props.model.voteState;(0,this.props.onVoteClick)(b.a.downvoted),this.setState({voted:e!==b.a.downvoted?b.a.downvoted:b.a.notVoted})})}render(){const e=this.props,t=!1!==e.redditStyle&&Object(g.c)(e).voteIcons.upvoteInactive&&Object(g.c)(e).voteIcons.upvoteActive,o=!1!==e.redditStyle&&Object(g.c)(e).voteIcons.downvoteInactive&&Object(g.c)(e).voteIcons.downvoteActive,n=this.state.voted,r=e.model.voteState,i=e.m2mIsEnabled&&n===b.a.upvoted?O.a.bounceUp:"",s=e.m2mIsEnabled&&n===b.a.downvoted?O.a.bounceDown:"";return C("div",{className:e.className},void 0,t?C(f.b,{"aria-label":Object(u.a)(e.language,"posts.upvote"),"aria-pressed":r===b.a.upvoted,"data-click-id":"upvote",compact:e.compact,id:e.upvoteTooltipId,onClick:this.onUpvote,voteState:r}):C("button",{className:Object(p.a)(O.a.voteButton,i),"aria-label":Object(u.a)(e.language,"posts.upvote"),"aria-pressed":r===b.a.upvoted,onClick:this.onUpvote,"data-click-id":"upvote",id:e.upvoteTooltipId},void 0,C(f.d,{compact:e.compact,voteState:r})),!e.compact&&C(m.a,{flairStyleTemplate:e.flairStyleTemplate,light:e.light,score:e.model.score,voteState:r,isScoreHidden:e.model.isScoreHidden}),o?C(f.a,{"aria-label":Object(u.a)(e.language,"posts.downvote"),"aria-pressed":r===b.a.downvoted,"data-click-id":"downvote",compact:e.compact,onClick:this.onDownvote,voteState:r}):C("button",{className:Object(p.a)(O.a.voteButton,s),"aria-label":Object(u.a)(e.language,"posts.downvote"),"aria-pressed":r===b.a.downvoted,onClick:this.onDownvote,"data-click-id":"downvote"},void 0,C(f.c,{compact:e.compact,voteState:r})))}}))).withConfig({componentId:"s1b4xnj8-0"})(["","","",""],S,m.b,h.y)},"./src/reddit/components/VerticalVotes/votes.m.less":function(e,t,o){e.exports={customDownvote:"ceU_3ot04pOVIcrrXH9fY",customUpvote:"_2k73nZrjAYiwAj9hv7K-kq"}},"./src/reddit/components/VerticalVotes/votes.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(s),d=o("./node_modules/polished/dist/polished.es.js"),c=o("./src/reddit/helpers/styles/mixins/index.tsx"),l=o("./src/reddit/icons/fonts/Downvote/index.tsx"),u=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),p=o("./src/reddit/models/Vote/index.ts"),m=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const f=({voteState:e})=>e===p.a.downvoted,h=({interactive:e})=>!1!==e;var g=a()(e=>m(l.a,{className:e.className,compact:e.compact})).withConfig({componentId:"s1y8gf4b-0"})(["","color: ",";","",""],e=>h(e)?`\n ${c.p}\n cursor: pointer;\n `:"",e=>{const t=Object(u.c)(e);return f(e)?`${t.voteText.downvote} !important`:t.actionIcon},e=>{if(f(e)||!h(e))return"";return`\n &:hover {\n color: ${Object(d.g)(.8,Object(u.c)(e).voteText.downvote)};\n }\n `},e=>h(e)?`\n &:active {\n color: ${Object(d.h)(.8,Object(u.c)(e).voteText.downvote)};\n }`:""),b=o("./src/reddit/icons/fonts/Upvote/index.tsx"),v=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const y=({voteState:e})=>e===p.a.upvoted,x=({interactive:e})=>!1!==e;var O=a()(e=>v(b.a,{className:e.className,compact:e.compact})).withConfig({componentId:"dplx91-0"})(["","color: ",";","",""],e=>x(e)&&`\n ${c.p}\n cursor: pointer;\n `||"",e=>{const t=Object(u.c)(e);return y(e)?`${t.voteText.upvote} !important`:t.actionIcon},e=>{if(y(e)||!x(e))return"";return`\n &:hover {\n color: ${Object(d.g)(.8,Object(u.c)(e).voteText.upvote)};\n }\n `},e=>x(e)&&`\n &:active {\n color: ${Object(d.h)(.8,Object(u.c)(e).voteText.upvote)};\n }`||"");const C=e=>({width:`${e}px`,height:`${e}px`});var w=o("./src/reddit/components/VerticalVotes/votes.m.less"),j=o.n(w);o.d(t,"a",function(){return M}),o.d(t,"b",function(){return I}),o.d(t,"c",function(){return k}),o.d(t,"d",function(){return N});var S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},P=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};const M=Object(s.withTheme)(e=>{var t=e.compact,o=e.voteState,n=P(e,["compact","voteState"]);const r=o===p.a.downvoted?Object(u.c)(n).voteIcons.downvoteActive:Object(u.c)(n).voteIcons.downvoteInactive,s=C(t?20:24),a=Object.assign({backgroundImage:`url('${r}')`},s);return i.a.createElement("button",S({className:j.a.customDownvote,style:a},n))}),I=Object(s.withTheme)(e=>{var t=e.compact,o=e.voteState,n=P(e,["compact","voteState"]);const r=o===p.a.upvoted?Object(u.c)(n).voteIcons.upvoteActive:Object(u.c)(n).voteIcons.upvoteInactive,s=C(t?20:24),a=Object.assign({backgroundImage:`url('${r}')`},s);return i.a.createElement("button",S({className:j.a.customUpvote,style:a},n))}),k=g,N=O},"./src/reddit/connectors/connectClickToToggleEditor.ts":function(e,t,o){"use strict";var n=o("./node_modules/react-redux/es/index.js"),r=o("./node_modules/reselect/lib/index.js"),i=o("./src/reddit/actions/structuredStyles.ts"),s=o("./src/reddit/selectors/activeModalId.ts"),a=o("./src/reddit/selectors/structuredStyles.ts"),d=o("./src/reddit/constants/modals.ts");const c=Object(r.createStructuredSelector)({bladeHasUnsavedChanges:a.a,isEditing:a.i,isBladeEditorDirty:a.h,isModalOpen:Object(s.b)(d.a.BLADE_UNSAVED_CHANGES)});t.a=Object(n.connect)(c,(e,{subredditId:t})=>({requestCloseBlade:()=>t&&e(Object(i.s)(t))}))},"./src/reddit/connectors/connectToLanguage.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return a});var n=o("./node_modules/react-redux/es/index.js"),r=o("./node_modules/reselect/lib/index.js"),i=o("./src/reddit/selectors/user.ts");const s=Object(r.createStructuredSelector)({language:i.M});function a(e){return Object(n.connect)(s)(e)}},"./src/reddit/constants/accountManager.ts":function(e,t,o){"use strict";var n,r;o.d(t,"b",function(){return n}),o.d(t,"a",function(){return r}),function(e){e.Index="/login/",e.Register="/register/"}(n||(n={})),function(e){e.Login="login",e.Register="register"}(r||(r={}))},"./src/reddit/constants/componentSizes.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return n}),o.d(t,"b",function(){return r}),o.d(t,"d",function(){return i}),o.d(t,"f",function(){return s}),o.d(t,"g",function(){return a}),o.d(t,"h",function(){return d}),o.d(t,"i",function(){return c}),o.d(t,"j",function(){return l}),o.d(t,"k",function(){return u}),o.d(t,"l",function(){return p}),o.d(t,"p",function(){return m}),o.d(t,"o",function(){return f}),o.d(t,"n",function(){return h}),o.d(t,"m",function(){return g}),o.d(t,"q",function(){return b}),o.d(t,"r",function(){return v}),o.d(t,"u",function(){return y}),o.d(t,"v",function(){return x}),o.d(t,"s",function(){return O}),o.d(t,"t",function(){return C}),o.d(t,"x",function(){return w}),o.d(t,"E",function(){return j}),o.d(t,"F",function(){return S}),o.d(t,"G",function(){return P}),o.d(t,"H",function(){return M}),o.d(t,"I",function(){return I}),o.d(t,"J",function(){return k}),o.d(t,"c",function(){return N}),o.d(t,"w",function(){return E}),o.d(t,"e",function(){return T}),o.d(t,"y",function(){return L}),o.d(t,"z",function(){return _}),o.d(t,"A",function(){return F}),o.d(t,"B",function(){return R}),o.d(t,"C",function(){return A}),o.d(t,"D",function(){return $});const n=425,r=284,i=864,s=450,a=800,d=476,c=284,l=48,u=648,p=80,m=32,f=12,h=1600,g=1280,b=140,v=448,y=40,x=280,O=538,C=410,w=24,j=24,S=312,P=40,M=270,I=5,k=16,N=40,E=1250,T=82,L=48,_=122,F=8,R=16,A=36,$=37},"./src/reddit/constants/elementClassNames.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return n}),o.d(t,"b",function(){return r}),o.d(t,"c",function(){return i}),o.d(t,"e",function(){return s}),o.d(t,"f",function(){return a}),o.d(t,"g",function(){return d}),o.d(t,"h",function(){return c}),o.d(t,"d",function(){return l});const n="public-DraftEditor-content",r="DraftEditor-root",i="public-DraftStyleDefault-block",s="hidden",a="hovered",d="scrollerItem",c="threadline",l="header-user-dropdown"},"./src/reddit/constants/flair.ts":function(e,t,o){"use strict";o.d(t,"b",function(){return i}),o.d(t,"a",function(){return s});var n=o("./src/reddit/constants/colors.ts"),r=o("./src/reddit/models/Flair/index.ts");const i=64,s={backgroundColor:n.a.defaultFlair,id:"",modOnly:!1,textColor:r.d.Dark,textEditable:!1}},"./src/reddit/constants/jsapiEvents.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return n}),o.d(t,"b",function(){return r}),o.d(t,"c",function(){return i});const n="reddit",r="reddit.ready",i="reddit.urlChanged"},"./src/reddit/constants/screenWidths.ts":function(e,t,o){"use strict";o.d(t,"j",function(){return n}),o.d(t,"h",function(){return r}),o.d(t,"f",function(){return i}),o.d(t,"e",function(){return s}),o.d(t,"i",function(){return a}),o.d(t,"g",function(){return d}),o.d(t,"a",function(){return c}),o.d(t,"b",function(){return l}),o.d(t,"c",function(){return u}),o.d(t,"d",function(){return p});const n=320,r=375,i=414,s=480,a=640,d=960,c=1460,l=1024,u=1200,p=1232},"./src/reddit/contexts/AdminEvents.ts":function(e,t,o){"use strict";var n=o("./node_modules/brcast/dist/brcast.es.js"),r=o("./node_modules/react/index.js"),i=o.n(r);t.a=i.a.createContext(Object(n.a)([]))},"./src/reddit/contexts/ApiContext.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return d}),o.d(t,"b",function(){return c});var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const d=Object(r.createContext)(()=>{throw new Error("Component attempted to make an API request with no ApiContext")});function c(e){return t=>a(d.Consumer,{},void 0,o=>i.a.createElement(e,s({apiContext:o},t)))}},"./src/reddit/contexts/Language.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return r});var n=o("./node_modules/react/index.js");const r=Object(n.createContext)("en")},"./src/reddit/controls/Button/index.tsx":function(e,t,o){"use strict";o.d(t,"w",function(){return m}),o.d(t,"p",function(){return f}),o.d(t,"o",function(){return h}),o.d(t,"q",function(){return g}),o.d(t,"t",function(){return b}),o.d(t,"r",function(){return y}),o.d(t,"u",function(){return x}),o.d(t,"s",function(){return O}),o.d(t,"v",function(){return C}),o.d(t,"k",function(){return P}),o.d(t,"j",function(){return I}),o.d(t,"e",function(){return k}),o.d(t,"f",function(){return N}),o.d(t,"d",function(){return E}),o.d(t,"a",function(){return T}),o.d(t,"h",function(){return L}),o.d(t,"i",function(){return _}),o.d(t,"g",function(){return F}),o.d(t,"l",function(){return R}),o.d(t,"m",function(){return A}),o.d(t,"n",function(){return $}),o.d(t,"b",function(){return D}),o.d(t,"c",function(){return B});var n=o("./node_modules/polished/dist/polished.es.js"),r=o("./node_modules/react/index.js"),i=o.n(r),s=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(s),d=o("./src/reddit/controls/InternalLink/index.tsx"),c=o("./src/reddit/constants/colors.ts"),l=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),u=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),p=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};const m=`\n ${l.smallButtonFont}\n padding: 3px 16px;\n`,f=Object(s.css)(["height: 27px;radius: 4px;font-size: 12px;padding-top: 1px;padding-bottom: 2px;padding-right: 20px;padding-left: 20px;border-color: ",";color: ",";fill: ",";&:hover {border-color: ",";color: ",";fill: ",";}&:active {border-color: ",";color: ",";fill: ",";}&:disabled,&[disabled],&[data-disabled] {border-color: ",";color: ",";fill: ",";cursor: not-allowed;}"],e=>Object(u.c)(e).linkText,e=>Object(u.c)(e).linkText,e=>Object(u.c)(e).linkText,e=>Object(n.h)(.8,Object(u.c)(e).linkText),e=>Object(n.h)(.8,Object(u.c)(e).linkText),e=>Object(n.h)(.8,Object(u.c)(e).linkText),e=>Object(n.g)(.8,Object(u.c)(e).linkText),e=>Object(n.g)(.8,Object(u.c)(e).linkText),e=>Object(n.g)(.8,Object(u.c)(e).linkText),e=>Object(n.e)(Object(u.c)(e).linkText,.5),e=>Object(n.e)(Object(u.c)(e).linkText,.5),e=>Object(n.e)(Object(u.c)(e).linkText,.5)),h=Object(s.css)(["","border: 1px solid transparent;border-radius: 4px;box-sizing: border-box;text-align: center;letter-spacing: 1px;text-decoration: none;"],l.smallButtonFont),g=(e,t)=>Object(s.css)(["background-color: ",";border-color: ",";color: ",";fill: ",";&:hover {background-color: ",";border-color: ",";color: ",";fill: ",";}&:active {background-color: ",";border-color: ",";color: ",";fill: ",";}&:disabled,&[disabled],&[data-disabled] {background-color: ",";border-color: ",";color: ",";fill: ",";cursor: not-allowed;}"],e,e,t,t,Object(n.h)(.8,e),Object(n.h)(.8,e),t,t,Object(n.g)(.8,e),Object(n.g)(.8,e),t,t,Object(n.h)(.5,e),Object(n.h)(.5,e),Object(n.e)(t,.5),Object(n.e)(t,.5)),b=Object(s.css)(["",";"],e=>g(Object(u.c)(e).button,Object(u.c)(e).body)),v=Object(s.css)(["background-color: ",";border-color: ",";color: ",";fill: ",";&:hover {background-color: ",";border-color: ",";color: ",";fill: ",";}&:active {background-color: ",";border-color: ",";color: ",";fill: ",";}&:disabled,&[disabled],&[data-disabled] {background-color: ",";border-color: ",";color: ",";fill: ",";cursor: not-allowed;}"],c.a.removed,c.a.removed,e=>Object(u.c)(e).body,e=>Object(u.c)(e).body,Object(n.h)(.8,c.a.removed),Object(n.h)(.8,c.a.removed),e=>Object(u.c)(e).body,e=>Object(u.c)(e).body,Object(n.g)(.8,c.a.removed),Object(n.g)(.8,c.a.removed),e=>Object(u.c)(e).body,e=>Object(u.c)(e).body,Object(n.h)(.5,c.a.removed),Object(n.h)(.5,c.a.removed),e=>Object(n.e)(Object(u.c)(e).body,.5),e=>Object(n.e)(Object(u.c)(e).body,.5)),y=e=>Object(s.css)(["border-color: ",";color: ",";fill: ",";&:hover {border-color: ",";color: ",";fill: ",";}&:active {border-color: ",";color: ",";fill: ",";}&:disabled,&[disabled],&[data-disabled] {border-color: ",";color: ",";fill: ",";cursor: not-allowed;}"],e,e,e,Object(n.h)(.8,e),Object(n.h)(.8,e),Object(n.h)(.8,e),Object(n.g)(.8,e),Object(n.g)(.8,e),Object(n.g)(.8,e),Object(n.e)(e,.5),Object(n.e)(e,.5),Object(n.e)(e,.5)),x=Object(s.css)(["",";"],e=>y(Object(u.c)(e).button)),O=e=>Object(s.css)(["color: ",";fill: ",";&:hover {color: ",";fill: ",";}&:active {color: ",";fill: ",";}&:disabled,&[disabled],&[data-disabled] {color: ",";fill: ",";cursor: not-allowed;}"],e,e,Object(n.g)(.8,e),Object(n.g)(.8,e),Object(n.g)(.8,e),Object(n.g)(.8,e),Object(n.e)(e,.5),Object(n.e)(e,.5)),C=Object(s.css)(["",";"],e=>O(Object(u.c)(e).button)),w=Object(s.css)(["background-color: ",";border-color: ",";color: ",";&:hover {background-color: ",";border-color: ",";color: ",";}&:active {background-color: ",";border-color: ",";color: ",";}&:disabled,&[disabled],&[data-disabled] {background-color: ",";border-color: ",";color: ",";cursor: not-allowed;}"],c.a.gold,c.a.gold,e=>Object(u.c)(e).body,e=>Object(n.h)(.8,c.a.gold),e=>Object(n.h)(.8,c.a.gold),e=>Object(u.c)(e).body,e=>Object(n.g)(.8,c.a.gold),e=>Object(n.g)(.8,c.a.gold),e=>Object(u.c)(e).body,e=>Object(n.h)(.5,c.a.gold),e=>Object(n.h)(.5,c.a.gold),e=>Object(n.e)(Object(u.c)(e).body,.5)),j=Object(s.css)(["background-color: ",";border-color: ",";color: ",";&:hover {background-color: ",";border-color: ",";color: ",";}&:active {background-color: ",";border-color: ",";color: ",";}&:disabled,&[disabled],&[data-disabled] {background-color: ",";border-color: ",";color: ",";cursor: not-allowed;}"],c.a.snoo,c.a.snoo,e=>Object(u.c)(e).body,e=>Object(n.h)(.8,c.a.snoo),e=>Object(n.h)(.8,c.a.snoo),e=>Object(u.c)(e).body,e=>Object(n.g)(.8,c.a.snoo),e=>Object(n.g)(.8,c.a.snoo),e=>Object(u.c)(e).body,e=>Object(n.h)(.5,c.a.snoo),e=>Object(n.h)(.5,c.a.snoo),e=>Object(n.e)(Object(u.c)(e).body,.5)),S=Object(s.css)(["","","color: ",";fill: ",";background-color: ",";"],h,m,e=>Object(u.c)(e).body,e=>Object(u.c)(e).lightText,e=>Object(u.c)(e).button);a.a.button.withConfig({componentId:"s1f6o7cs-0"})(["",""],S);const P=e=>{e.redditStyle,e["data-redditstyle"];var t=p(e,["redditStyle","data-redditstyle"]);return i.a.createElement(d.a,t)},M=e=>{e.redditStyle,e["data-redditstyle"];var t=p(e,["redditStyle","data-redditstyle"]);return i.a.createElement("a",t)},I=e=>{e.redditStyle,e["data-redditstyle"];var t=p(e,["redditStyle","data-redditstyle"]);return i.a.createElement("button",t)},k=a()(M).withConfig({componentId:"s1f6o7cs-1"})(["","","","display: block;"],h,m,b),N=a()(P).withConfig({componentId:"s1f6o7cs-2"})(["","","","display: block;"],h,m,b),E=a()(I).withConfig({componentId:"s1f6o7cs-3"})(["","","",""],h,m,b),T=a()(I).withConfig({componentId:"s1f6o7cs-4"})(["","","",""],h,m,v),L=a()(M).withConfig({componentId:"s1f6o7cs-5"})(["","","background-color: transparent;",""],h,m,x),_=a()(P).withConfig({componentId:"s1f6o7cs-6"})(["","","background-color: transparent;",""],h,m,x),F=a()(I).withConfig({componentId:"s1f6o7cs-7"})(["","","background-color: transparent;",""],h,m,x),R=a()(I).withConfig({componentId:"s1f6o7cs-8"})(["","","background-color: transparent;",""],h,m,C),A=a()(M).withConfig({componentId:"s1f6o7cs-9"})(["","","background-color: transparent;",""],h,m,C),$=a()(P).withConfig({componentId:"s1f6o7cs-10"})(["","","background-color: transparent;",""],h,m,C),D=a()(I).withConfig({componentId:"s1f6o7cs-11"})(["","","",""],h,m,w),B=a()(I).withConfig({componentId:"s1f6o7cs-12"})(["","","",""],h,m,j)},"./src/reddit/controls/CheckboxWithLabel/index.m.less":function(e,t,o){e.exports={checkboxLabel:"_1H6-wE3jxCdsIeXW5AMjj8",labelContent:"-kceiAQn0jpWOpu7qZRjD"}},"./src/reddit/controls/CheckboxWithLabel/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/reddit/controls/CheckboxWithLabel/index.m.less"),a=o.n(s),d=o("./src/lib/classNames/index.ts"),c=o("./src/reddit/constants/colors.ts"),l=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),u=o("./src/reddit/icons/svgs/Checkbox/index.tsx"),p=o("./src/reddit/icons/svgs/CheckboxSelected/index.tsx"),m=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const f=i()(u.a).withConfig({componentId:"s1xud0ot-0"})(["","background-color: ",";border-radius: 2px;"],"\n margin-right: 10px;\n",e=>Object(l.c)(e).body),h=i()(p.a).withConfig({componentId:"s1xud0ot-1"})(["",""],"\n margin-right: 10px;\n"),g=i()(e=>m("button",{"aria-checked":e.isSelected,"aria-disabled":e.disabled,autoFocus:e.autoFocus,className:Object(d.a)(a.a.checkboxLabel,e.className),disabled:e.disabled,onClick:e.onClick,type:"button",role:"checkbox"},void 0,m("span",{tabIndex:-1,className:a.a.labelContent},void 0,e.isSelected?m(h,{className:"checkbox-inner-icon"}):m(f,{className:"checkbox-inner-icon"}),e.text))).withConfig({componentId:"s1xud0ot-2"})(["box-sizing: border-box;fill: ",";"],c.a.alienblue);t.a=g},"./src/reddit/controls/ContentType/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/reddit/icons/fonts/Gif/index.tsx"),a=o("./src/reddit/icons/fonts/Link/index.tsx"),d=o("./src/reddit/icons/fonts/Photos/index.tsx"),c=o("./src/reddit/icons/fonts/Text/index.tsx"),l=o("./src/reddit/icons/fonts/helpers.tsx"),u=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});var p=i()(e=>u("i",{className:`${Object(l.b)("video")} ${e.className}`})).withConfig({componentId:"s1eziz2x-0"})(["display: inline-block;vertical-align: text-bottom;width: 20px;height: 20px;font-size: 20px;font-weight: 400;line-height: 20px;"]),m=o("./src/reddit/icons/svgs/Poll/index.tsx");o.d(t,"a",function(){return b});var f=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const h=Object(r.css)(["width: 20px;height: 20px;pointer-events: none;"]),g=i()(s.a).withConfig({componentId:"ej8hhi-0"})(["",""],h),b=i()(a.a).withConfig({componentId:"ej8hhi-1"})(["",""],h),v=i()(d.a).withConfig({componentId:"ej8hhi-2"})(["",""],h),y=i()(m.a).withConfig({componentId:"ej8hhi-3"})(["",";"],h),x=i()(c.a).withConfig({componentId:"ej8hhi-4"})(["",""],h),O=i()(p).withConfig({componentId:"ej8hhi-5"})(["",""],h);t.b=(e=>{switch(e.type){case"gifvideo":return f(g,{className:e.className});case"image":return f(v,{className:e.className});case"meta":return f(y,{className:e.className});case"rtjson":case"text":return f(x,{className:e.className});case"video":return f(O,{className:e.className});default:return f(b,{className:e.className})}})},"./src/reddit/controls/Dropdown/index.tsx":function(e,t,o){"use strict";var n=o("./node_modules/polished/dist/polished.es.js"),r=o("./node_modules/react/index.js"),i=o.n(r),s=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(s),d=o("./src/lib/domUtils/index.ts"),c=o("./src/reddit/constants/zIndex.ts"),l=o("./src/reddit/models/Theme/NewColorSystem/index.ts");t.a=a()(class extends i.a.Component{componentDidMount(){this.props.noFocus||this.ref&&this.ref.focus()}componentWillUnmount(){Object(d.a)(this.props.tooltipId)}render(){const e=this.props;return i.a.createElement("div",{className:e.className,ref:e=>this.ref=e,role:"menu",style:e.style,tabIndex:-1},e.children)}}).withConfig({componentId:"s1afd82k-0"})(["border-radius: 4px;box-shadow: 0 2px 4px 0 ",";color: ",";margin-top: 8px;overflow: hidden;position: ",";z-index: ",";background-color: ",";&:focus {outline: none;}"],e=>Object(n.e)(Object(l.c)(e).bodyText,.2),e=>Object(l.c)(e).bodyText,({isFixed:e=!1})=>e?"fixed":"absolute",({isFixed:e=!1,isOverlay:t=!1})=>t?e?c.p+1:c.o:c.h,e=>Object(l.c)(e).body)},"./src/reddit/controls/InternalLink/index.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=o("./node_modules/react-router-dom/es/index.js"),a=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(a),c=o("./src/reddit/helpers/path/index.ts"),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},u=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),p=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};const m=d.a.span.withConfig({componentId:"xxcrdx-0"})(["cursor: initial;opacity: 0.3;"]);t.a=(e=>{var t=e.children,o=e.className,n=e.disabled,r=(e.replace,e.to),a=p(e,["children","className","disabled","replace","to"]);return n?u(m,{className:o},void 0,t):("string"==typeof r&&(r=Object(c.b)(r)),i.a.createElement(s.a,l({className:o,to:r},a),t))})},"./src/reddit/controls/InvisibleScreenReaderText/index.tsx":function(e,t,o){"use strict";var n=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(n);t.a=r.a.span.withConfig({componentId:"s1dqr9jy-0"})(["position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);"])},"./src/reddit/controls/RadioInput/RadioOption/index.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(s),d=o("./src/reddit/constants/colors.ts"),c=o("./src/reddit/constants/keycodes.ts"),l=o("./src/reddit/icons/svgs/RadioOff/index.tsx"),u=o("./src/reddit/icons/svgs/RadioOn/index.tsx"),p=o("./src/reddit/layout/row/Inline/index.tsx"),m=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const f=a()(u.a).withConfig({componentId:"s1ighnwk-0"})(["flex: 0 0 16px;height: 16px;margin-right: 4px;width: 16px;fill: ",";"],d.a.alienblue),h=a()(l.a).withConfig({componentId:"s1ighnwk-1"})(["flex: 0 0 16px;height: 16px;margin-right: 4px;width: 16px;"]);t.a=class extends i.a.Component{constructor(){super(...arguments),this.onKeyPress=(e=>{const t=this.props;t.disabled||e.key!==c.b.Enter&&e.key!==c.b.Space||t.onClick&&t.onClick(t.value)})}componentDidUpdate(e){this.props.selected&&!e.selected&&this.ref&&this.ref.focus()}render(){const e=this.props;return e.hidden?null:m(p.a,{"aria-checked":e.selected,className:e.className,innerRef:e=>this.ref=e,onClick:e.disabled?void 0:e.onClick,onKeyPress:this.onKeyPress,role:"radio",tabIndex:e.tabIndex},void 0,e.showButton&&(e.selected?m(f,{}):m(h,{})),e.children)}}},"./src/reddit/controls/RadioInput/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return d});var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=o("./src/reddit/constants/keycodes.ts"),a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});class d extends i.a.Component{constructor(e){super(e),this.handleClick=(e=>{this.state.value!==e&&(this.props.onChange(e),this.setState(()=>({value:e})))}),this.getValues=(()=>i.a.Children.map(this.props.children,e=>e.props.value)),this.onKeyUp=(e=>{var t=this.props;const o=t.disabled,n=t.onChange,r=this.state.value;if(o)return;const i=e.key===s.b.ArrowUp,a=e.key===s.b.ArrowDown;if(i||a){const e=this.getValues();if(!e.length)return;const t=r?e.indexOf(r):0,o=e[((i?t-1:t+1)+e.length)%e.length];n(o),this.setState({value:o})}}),this.state={value:e.value||""}}componentWillReceiveProps(e){this.setState(()=>({value:e.value||""}))}render(){const e=this.props,t=this.state;return a("div",{"aria-labelledby":e.name,className:e.className,role:"radiogroup",onKeyUp:this.onKeyUp},void 0,a("input",{type:"hidden",value:t.value,disabled:e.disabled}),i.a.Children.map(e.children,e=>i.a.cloneElement(e,{onClick:t=>this.handleClick(e.props.value),selected:e.props.value===t.value})))}}},"./src/reddit/controls/Score/index.m.less":function(e,t,o){e.exports={score:"_1rZYMD_4xY3gRcSS3p8ODO"}},"./src/reddit/controls/Score/index.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return g});o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o("./src/lib/classNames/index.ts"),s=o("./src/lib/prettyPrintNumber/index.ts"),a=o("./src/reddit/constants/colors.ts"),d=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),c=o("./src/reddit/helpers/styles/postBackgroundColor.ts"),l=o("./src/reddit/helpers/styles/smartTextColor.ts"),u=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),p=o("./src/reddit/models/Vote/index.ts"),m=o("./src/reddit/controls/Score/index.m.less"),f=o.n(m),h=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const g=`\n .${f.a.score} {\n ${d.actionFont}\n }\n`,b=Object(r.withTheme)(e=>{const t={color:e.light?a.a.lightboxHeaderText:(e=>e.voteState===p.a.downvoted?Object(u.c)(e).voteText.downvote:e.voteState===p.a.upvoted?Object(u.c)(e).voteText.upvote:Object(l.a)(Object(c.a)(e)))(e)},o=e.isScoreHidden?"•":Object(s.b)(e.score);return h("div",{className:Object(i.a)(f.a.score,e.className),style:t},void 0,o)});t.a=b},"./src/reddit/controls/Search/RelatedSubredditMetaData.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./node_modules/react-redux/es/index.js"),i=o("./node_modules/reselect/lib/index.js"),s=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(s),d=o("./src/lib/classNames/index.ts"),c=o("./src/lib/objectSelector/index.ts"),l=o("./src/reddit/components/Hovercards/SubredditHovercard/index.tsx"),u=o("./src/reddit/components/SubredditIcon/index.tsx"),p=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),m=o("./src/reddit/selectors/subreddit.ts"),f=o("./src/reddit/components/HeaderSubredditSelector/ListItem/index.m.less"),h=o.n(f),g=o("./src/reddit/controls/Search/index.m.less"),b=o.n(g),v=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const y=`\n border: 1px solid ${e=>Object(p.c)(e).lightText};\n border-radius: 9001px;\n`,x=a()(u.b).withConfig({componentId:"nkx6bk-0"})(["",";"],y),O=Object(r.connect)(()=>Object(i.createStructuredSelector)({subredditsByName:Object(c.a)((e,t)=>{const o={};return t.subredditIcons&&t.subredditIcons.map(t=>{o[t.subredditName]=Object(m.v)(e,{subredditName:t.subredditName})}),o})}));t.a=O(e=>v("div",{className:Object(d.a)(h.a.subText,b.a.subText,e.className)},void 0,e.subredditIcons?e.subredditIcons.map(t=>v(l.a,{subredditName:t.subredditName},`${t.subredditName}-hoverCard`,v(x,{className:Object(d.a)(b.a.icon,b.a.isHeaderIcon),linkTo:`/r/${t.subredditName}`,iconUrl:t.url,subredditOrProfile:e.subredditsByName[t.subredditName]},t.subredditName))):v(x,{className:b.a.icon,iconUrl:e.iconUrl},e.iconUrl),v("span",{className:e.isHeaderContent&&e.subredditIcons&&e.subredditIcons.length?b.a.hasIcons:void 0},void 0,e.suffix)))},"./src/reddit/controls/Search/index.m.less":function(e,t,o){e.exports={icon:"_1hdDhVEGWEdVJcgy2XQ2Eq",isHeaderIcon:"_1biYoFBD4CLgOvrr_HinV4",hasIcons:"_1M-azLenSs2UgxeZ2rJX20",subText:"_2-DL_E9cFo1xsqU3Q8BXnJ"}},"./src/reddit/controls/Search/index.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/history/index.js"),i=o("./node_modules/lodash/debounce.js"),s=o.n(i),a=o("./node_modules/react/index.js"),d=o.n(a),c=o("./node_modules/react-redux/es/index.js"),l=o("./node_modules/react-router-redux/es/index.js"),u=o("./node_modules/reselect/lib/index.js"),p=o("./bundled-modules/styled-components/styled-components.min.js"),m=o.n(p),f=o("./node_modules/uuid/v4.js"),h=o.n(f),g=o("./src/app/actions/tooltip.ts"),b=o("./src/app/strings/index.ts"),v=o("./src/lib/classNames/index.ts"),y=o("./src/lib/makeSearchKey/index.ts"),x=o("./src/reddit/actions/category.ts"),O=o("./src/reddit/actions/page.ts"),C=o("./src/reddit/actions/search.ts"),w=o("./src/higherOrderComponents/asTooltip.tsx"),j=o("./src/reddit/components/HeaderSubredditSelector/LoadingListSection/index.tsx"),S=o("./node_modules/react-router-dom/es/index.js"),P=o("./src/reddit/components/InfoTextTooltip/index.tsx"),M=o("./src/reddit/helpers/getSearchUrl/index.ts"),I=o("./src/reddit/icons/svgs/CircledPlanet/index.tsx"),k=o("./src/reddit/icons/svgs/Clear/index.tsx"),N=o("./src/reddit/icons/svgs/Search/index.tsx"),E=o("./src/reddit/models/Search/index.ts"),T=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),L=o("./src/reddit/selectors/telemetry.ts"),_=o("./src/reddit/components/HeaderSubredditSelector/ListItem/index.m.less"),F=o.n(_),R=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e};const $=m()(Object(w.a)(P.b)).withConfig({componentId:"sl3810-0"})(["position: fixed;"]),D=`\n \n box-sizing: border-box;\n display: inline-block;\n flex: none;\n height: 16px;\n margin-bottom: -2px;\n vertical-align: middle;\n width: 16px;\n\n border: 1px solid ${e=>Object(T.c)(e).lightText};\n border-radius: 9001px;\n`,B=m()(e=>d.a.createElement("div",A({className:e.className},e))).withConfig({componentId:"sl3810-1"})(["",";background: url('","');background-position: center;background-repeat: no-repeat;background-size: 100%;"],D,e=>e.url),H=m()(I.a).withConfig({componentId:"sl3810-2"})(["",";background: ",";fill: ",";padding: 3px;"],D,e=>Object(T.c)(e).active,e=>Object(T.c)(e).lightText);class Q extends d.a.Component{constructor(){super(...arguments),this.onRecentSearchItemClick=(()=>{this.props.recentSearch.isTypeaheadSuggestion?this.props.onClearSearchQuery():this.props.onUpdateSearchQuery(this.props.recentSearch.searchQuery),this.props.onSendDropdownClickEvent(this.props.recentSearch.searchQuery,this.props.recentSearch.searchQuery,L.StructureType.Recent,L.SearchDropdownNouns.Recent)}),this.generateFullSearchQuery=(e=>e.subredditOrProfileRestrictedName?`${e.subredditOrProfileRestrictedName} ${e.searchQuery}`:e.searchQuery)}render(){const e=this.props,t=e.activeTooltipId,o=e.className,n=e.focusedItem,r=e.isInRailsExperiment,i=e.language,s=e.onRemoveRecentSearch,a=e.recentSearch,d=e.toggleTooltip,c=Object(M.a)(null,null,a,r),l=c&&c.url,u=c&&c.qs,p=u?`${l}?${u}`:l,m=this.generateFullSearchQuery(a);let f;return n&&(f=this.generateFullSearchQuery(n)),R(S.a,{"aria-label":a.searchQuery,className:Object(v.a)(F.a.item,o,{"m-focused":!(!n||n.section!==E.c.recent||f!==m)}),onClick:this.onRecentSearchItemClick,role:"link",tabIndex:-1,to:p||""},m,a.displayInfo&&a.isTypeaheadSuggestion?a.displayInfo.iconUrl?R(B,{url:a.displayInfo.iconUrl}):R(H,{}):R(N.a,{className:F.a.icon}),R("span",{className:F.a.text},void 0,m),R("div",{onMouseEnter:()=>d(m),onMouseLeave:()=>d(null),id:m},void 0,R(k.a,{className:Object(v.a)(F.a.icon,"m-hoverable"),onClick:e=>{e.stopPropagation(),e.preventDefault(),s(a)}}),R($,{isOpen:t===m,text:Object(b.a)(i,"search.dropdown.remove"),tooltipId:m,targetPosition:["center","top"],tooltipPosition:["center","bottom"]})))}}var U=o("./src/reddit/components/ClassicPost/Thumbnail.tsx"),z=o("./src/reddit/components/PostTitle/index.tsx"),G=o("./src/reddit/components/Translated/index.tsx"),V=o("./src/reddit/controls/Search/RelatedSubredditMetaData.tsx"),W=o("./src/reddit/helpers/canRenderThumbnail.ts"),q=o("./src/reddit/icons/svgs/Popular/index.tsx"),Z=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),K=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};const Y=m.a.div.withConfig({componentId:"hlz5av-0"})(["color: ",";flex-grow: 1;font-size: 14px;line-height: 18px;margin: 8px 0 8px 24px;overflow: hidden;text-overflow: ellipsis;"],e=>Object(T.c)(e).metaText);class X extends d.a.Component{constructor(){super(...arguments),this.transformTrendingToRecentSearch=(()=>{const e=this.props.trendingItem;e.post,e.subredditInfo,e.subredditOccurrences;return K(e,["post","subredditInfo","subredditOccurrences"])}),this.onTrendingItemClick=(()=>{this.props.onUpdateSearchQuery(this.props.trendingItem.searchQuery);const e=this.transformTrendingToRecentSearch();this.props.onSetRecentSearch(e),this.props.onSendDropdownClickEvent(this.props.trendingItem.searchQuery,this.props.trendingItem.rawQuery||"",L.StructureType.Trending,L.SearchDropdownNouns.Trending)})}render(){var e=this.props;const t=e.className,o=e.focusedItem,n=e.isInRailsExperiment,r=e.trendingItem,i=Object(M.a)(null,null,r,n,{source:y.a.Trending}),s=i&&i.url,a=i&&i.qs,d=a?`${s}?${a}`:s;return Z(S.a,{"aria-label":r.searchQuery,className:Object(v.a)(F.a.item,F.a.trending,t,{"m-focused":!(!o||o.section!==E.c.trending||r.searchQuery!==o.searchQuery)}),onClick:this.onTrendingItemClick,role:"link",tabIndex:-1,to:d||""},`trending-${r.searchQuery}`,Z("div",{className:F.a.trendingContent},void 0,Z("div",{},void 0,Z(q.a,{className:Object(v.a)(F.a.icon,F.a.trending)}),Z("span",{},void 0,Z(z.a,{className:Object(v.a)(F.a.text,F.a.trending),redditStyle:!0,size:z.b.Small},void 0,r.searchQuery)),r.post&&Z(Y,{},void 0,r.post.title)),r.subredditInfo&&Z(V.a,{className:Object(v.a)(F.a.relatedSubredditMetaData,{"m-noPostTitle":!r.post}),iconUrl:r.subredditInfo.icon||void 0,suffix:Z(G.a,{msgId:"search.subredditMetaData.andMore",replacements:{displayText:r.subredditInfo.displayText}})})),r.post&&Object(W.a)(r.post)&&Z(U.b,{post:r.post,removeLink:!0}))}}var J=o("./src/reddit/components/Flair/index.tsx"),ee=o("./src/reddit/models/Flair/index.ts"),te=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e};const ne="typeahead",re=`\n \n box-sizing: border-box;\n display: inline-block;\n flex: none;\n height: 16px;\n margin-bottom: -2px;\n vertical-align: middle;\n width: 16px;\n\n border: 1px solid ${e=>Object(T.c)(e).lightText};\n border-radius: 9001px;\n`,ie=m()(e=>d.a.createElement("div",oe({className:e.className},e))).withConfig({componentId:"s1wfwevk-0"})(["",";background: url('","');background-position: center;background-repeat: no-repeat;background-size: 100%;"],re,e=>e.url),se=m()(I.a).withConfig({componentId:"s1wfwevk-1"})(["",";background: ",";fill: ",";padding: 3px;"],re,e=>Object(T.c)(e).active,e=>Object(T.c)(e).lightText);class ae extends d.a.Component{constructor(){super(...arguments),this.onTypeaheadSuggestionClick=(()=>{this.props.onSetRecentSearch(this.props.item),this.props.onSendDropdownClickEvent(this.props.item.searchQuery,this.props.item.searchQuery,L.StructureType.Search,this.props.item.isProfile?L.SearchDropdownNouns.TypeaheadProfile:L.SearchDropdownNouns.TypeaheadSubreddit),this.props.onClearSearchQuery()})}render(){const e=this.props,t=e.className,o=e.focusedItem,n=e.item,r=e.language;return te(S.a,{"aria-label":n.searchQuery,className:Object(v.a)(F.a.item,t,ne,{"m-focused":!(!o||o.searchQuery!==n.searchQuery)}),onClick:this.onTypeaheadSuggestionClick,role:"link",tabIndex:-1,to:`/${n.searchQuery}`},n.searchQuery,n.displayInfo&&n.displayInfo.iconUrl?te(ie,{url:n.displayInfo.iconUrl}):te(se,{}),te("div",{},void 0,n.displayInfo&&n.displayInfo.subredditOrProfileName&&te("div",{className:Object(v.a)(F.a.text,ne)},void 0,n.displayInfo.subredditOrProfileName),te("div",{},void 0,n.displayInfo&&void 0!==n.displayInfo.subscribers&&te("div",{className:F.a.subText},void 0,Object(b.d)(r,"listings.subscribers",n.displayInfo.subscribers)),n.displayInfo&&n.displayInfo.isNSFW&&te(J.c,{flair:{type:ee.e.Nsfw,text:"nsfw"}}))))}}var de=o("./src/reddit/constants/zIndex.ts"),ce=o("./src/reddit/controls/Dropdown/index.tsx"),le=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),ue=o("./src/reddit/components/HeaderSubredditSelector/index.m.less"),pe=o.n(ue),me=o("./src/reddit/components/HeaderSubredditSelector/LoadingListSection/index.m.less"),fe=o.n(me),he=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const ge="SearchDropdown",be=3,ve=Object(p.css)(["."," {fill: ",";&."," {fill: ",";}height: 16px;width: 16px;}."," {&.m-withBorder {border-top: 4px solid ",";}color: ",";}."," {padding: 12px 16px;&."," {border-bottom: 1px solid ",";&:last-of-type {border-bottom: none;}}&:hover {background-color: ",";border-color: ",";."," {&.m-hoverable {fill: ",";}}}&.m-focused {background-color: ",";}&."," {padding: 12px 16px 6px 16px;}."," {&."," {","}}."," {color: ",";&.m-noPostTitle {margin-top: 8px;}}}","."," {margin: 12px 16px;width: auto}"],F.a.icon,e=>Object(T.c)(e).actionIcon,F.a.trending,e=>Object(T.c)(e).linkText,F.a.title,e=>Object(T.c)(e).line,e=>Object(T.c)(e).metaText,F.a.item,F.a.trending,e=>Object(T.c)(e).line,e=>Object(T.c)(e).field,e=>Object(T.c)(e).line,F.a.icon,e=>Object(T.c)(e).navIcon,e=>Object(T.c)(e).field,"typeahead",F.a.text,"typeahead",le.titleFontH5,F.a.subText,e=>Object(T.c)(e).metaText,j.b,fe.a.item),ye=m()(Object(w.a)(ce.a)).withConfig({componentId:"s2qo4ss-0"})(["","background-color: ",";border: 1px solid ",";border-top-width: 0;color: ",";padding: 0px;"],ve,e=>Object(T.c)(e).body,e=>Object(T.c)(e).line,e=>Object(T.c)(e).bodyText);class xe extends d.a.Component{constructor(e){super(e),this.toggleTooltip=(e=>{this.setState({activeTooltipId:e})}),this.state={activeTooltipId:null}}render(){const e=this.props,t=this.state;var o=e.isFixed;const n=void 0===o||o,r={width:e.container?`${e.container.offsetWidth}px`:"inherit",marginTop:"7px",overflow:"scroll"};e.isFixed&&(r.zIndex=de.u);const i=0===e.typeaheadSuggestions.length&&!e.isTypeaheadPending;return he(ye,{className:pe.a.listContainer,isFixed:n,isOpen:e.isOpen,tooltipId:ge,noFocus:!0,style:r},void 0,e.typeaheadSuggestions.map(t=>he(ae,{focusedItem:e.typeaheadSuggestions[e.focusedItemIndex],item:t,language:e.language,onClearSearchQuery:e.onClearSearchQuery,onSendDropdownClickEvent:e.onSendDropdownClickEvent,onSetRecentSearch:e.onSetRecentSearch},t.id)),i&&e.recentSearches.map(o=>he(Q,{activeTooltipId:t.activeTooltipId,focusedItem:e.itemList[e.focusedItemIndex],isInRailsExperiment:e.isInRailsExperiment,language:e.language,onClearSearchQuery:e.onClearSearchQuery,onRemoveRecentSearch:e.onRemoveRecentSearch,onSendDropdownClickEvent:e.onSendDropdownClickEvent,onSetRecentSearch:e.onSetRecentSearch,onUpdateSearchQuery:e.onUpdateSearchQuery,recentSearch:o,toggleTooltip:this.toggleTooltip},o.id)),i&&e.isInTrendingExperiment&&!e.isTrendingPending&&e.trendingItems&&he("div",{className:Object(v.a)(F.a.title,{"m-withBorder":!!e.recentSearches.length})},void 0,Object(b.a)(e.language,"search.dropdown.trendingToday")),(e.isTypeaheadPending||e.isTrendingPending)&&he(d.a.Fragment,{},void 0,he("div",{className:fe.a.item}),he("div",{className:fe.a.item}),he("div",{className:fe.a.item}),he("div",{className:fe.a.item}),he("div",{className:fe.a.item})),i&&e.isInTrendingExperiment&&e.trendingItems.slice(0,be).map(t=>he(X,{focusedItem:e.itemList[e.focusedItemIndex],isInRailsExperiment:e.isInRailsExperiment,onSendDropdownClickEvent:e.onSendDropdownClickEvent,onSetRecentSearch:e.onSetRecentSearch,onUpdateSearchQuery:e.onUpdateSearchQuery,trendingItem:t},t.id)))}}var Oe=o("./src/reddit/components/TrackingHelper/index.tsx"),Ce=o("./src/reddit/constants/keycodes.ts"),we=o("./src/reddit/contexts/ApiContext.tsx"),je=o("./src/reddit/contexts/PageLayer/index.tsx"),Se=o("./src/reddit/endpoints/category/categoryList.ts"),Pe=o("./src/lib/constants/index.ts"),Me=o("./src/lib/makeApiRequest/index.ts"),Ie=o("./src/lib/omitHeaders/index.ts"),ke=o("./src/reddit/constants/headers.ts");const Ne=(e,t)=>Object(Me.c)(Object(Ie.a)(e,[ke.a]),{endpoint:`${e.apiUrl}/api/subreddit_autocomplete_v2.json`,method:Pe.jb.GET,data:{query:t}}),Ee=e=>Object(Me.c)(Object(Ie.a)(e,[ke.a]),{endpoint:`${e.apiUrl}/api/trending_searches_v1.json`,method:Pe.jb.GET});var Te=o("./src/reddit/helpers/r2/normalizeProfileSubredditFromR2/index.ts"),Le=o("./src/reddit/helpers/r2/normalizeSubredditFromR2/index.ts");const _e=e=>{const t=[],o={};return e.forEach(e=>{const n=e.data,r=e.kind;r===Pe.wb.SUBREDDIT?(t.push(n.name),o[n.name]=Object(Le.a)(n)):r===Pe.wb.ACCOUNT&&(t.push(n.subreddit.name),o[n.subreddit.name]=Object(Te.a)(n.subreddit,n.name))}),{data:o,order:t}};var Fe=o("./src/reddit/endpoints/trending/index.ts"),Re=o("./src/reddit/helpers/correlationIdTracker.ts"),Ae=o("./node_modules/lodash/isEqual.js"),$e=o.n(Ae),De=o("./node_modules/lodash/xorWith.js"),Be=o.n(De),He=(e,t)=>{const o=Be()(e,t,$e.a);return!(!o||0!==o.length)},Qe=o("./src/reddit/helpers/localStorage/index.ts"),Ue=o("./src/reddit/helpers/name/index.ts"),ze=o("./src/reddit/helpers/styles/placeholder/index.ts"),Ge=o("./src/reddit/helpers/trackers/searchResults.ts"),Ve=o("./src/reddit/selectors/category.ts"),We=o("./src/reddit/selectors/experiments/categories.ts"),qe=o("./src/reddit/selectors/experiments/railsSearchResults.ts"),Ze=o("./src/reddit/selectors/experiments/trending.ts"),Ke=o("./src/reddit/constants/experiments.ts"),Ye=o("./src/reddit/helpers/chooseVariant/index.ts"),Xe=o("./src/reddit/selectors/user.ts");const Je=e=>Object(Xe.D)(e)||Ke.Q.Treatment1===Object(Ye.b)(e,{experimentEligibilitySelector:Ye.a,experimentName:Ke.N});var et=o("./src/reddit/selectors/searchResults.ts"),tt=o("./src/reddit/selectors/tooltip.ts"),ot=o("./src/reddit/selectors/trending.ts"),nt=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const rt=m.a.input.withConfig({componentId:"s18w7pae-0"})(["appearance: none;background-color: ",";border-radius: 4px;border: 1px solid ",";box-shadow: none;color: ",";display: block;height: 36px;outline: none;padding: 0 16px 0 40px;width: 100%;&:hover,&:focus {background-color: ",";border: 1px solid ",";}",";"],e=>Object(T.c)(e).field,e=>Object(T.c)(e).line,e=>Object(T.c)(e).bodyText,e=>Object(T.c)(e).body,e=>Object(T.c)(e).button,e=>Object(ze.a)(Object(T.c)(e).actionIcon,1)),it=m.a.label.withConfig({componentId:"s18w7pae-1"})(["position: absolute;top: 50%;left: 0;height: 18px;margin-left: 16px;margin-top: -9px;"]),st=m()(N.a).withConfig({componentId:"s18w7pae-2"})(["fill: ",";width: 18px;height: 18px;"],e=>Object(T.c)(e).actionIcon),at=Object(je.w)({searchQuery:je.W,pageLayer:e=>e}),dt=(e,t,o)=>e(e=>Object.assign({},Object(Ge.b)(e),{source:"search",action:"click",noun:t,correlationId:Object(Re.c)(Re.a.SearchResults),actionInfo:L.actionInfo(e),search:L.search(e,o)})),ct=Object(c.connect)(()=>Object(u.createStructuredSelector)({categoriesLoaded:Ve.g,categoriesNameToId:Ve.i,currentUser:Xe.j,dropdownIsOpen:Object(tt.b)(ge),typeaheadIdsByQuery:et.c,isInRailsExperiment:qe.c,isInCategoriesExperiment:We.a,isInTrendingExperiment:Ze.a,isInTypeaheadExperiment:Je,isLoggedIn:Xe.F,language:Xe.M,multireddit:je.e,subreddit:je.t,trendingItems:ot.a,typeaheadSuggestions:et.h}),(e,t)=>({onChange:t=>e(Object(C.h)({searchQuery:t})),onClearSearchQuery:()=>e(Object(C.h)({searchQuery:""})),onGoToUrl:t=>e(Object(l.b)(t)),onDispatchSearch:(t,o)=>{e(Object(l.b)(Object(r.createLocation)({pathname:t,search:o})))},onToggleDropdown:()=>e(Object(g.e)({tooltipId:ge})),onTrendingItemsSuccess:t=>e(Object(O.L)({items:t})),onTypeaheadSuggestionsSuccess:t=>{e(Object(C.g)(t))},onListLoaded:({categories:t,categoryIds:o})=>{e(Object(x.j)({categories:t,categoryIds:o}))}}),(e,t,o)=>Object.assign({},e,t,o,{onSearch:(n,r,i)=>{n.preventDefault();const s=Object(M.a)(e.subreddit,e.multireddit,r,e.isInRailsExperiment,o.searchOptions,i);if(!s)return;const a=s.url,d=s.qs;t.onDispatchSearch(a,d)},onFocusSearchBar:()=>{Object(Re.c)(Re.a.SearchResults)||Object(Re.d)(Re.a.SearchResults);const e=o.searchOptions||Object(y.d)({});dt(o.sendEvent,L.OriginElement.SearchBar,e)}})),lt=m.a.div.withConfig({componentId:"s18w7pae-3"})(["position: relative;"]),ut=(e,t,o)=>t?Object(b.a)(e,"header.searchSubreddit",{subreddit:t.name}):o?Object(b.a)(e,"header.searchMultireddit",{multireddit:o.name}):Object(b.a)(e,"header.search");t.a=Object(Oe.b)(at(Object(we.b)(ct(class extends d.a.Component{constructor(e){super(e),this.container=null,this.makeCategoriesApiRequest=(async e=>{const t=await Object(Se.a)(this.props.apiContext());if(t.ok){var o=Object(Se.b)(t.body);const e=o.categories,n=o.categoryIds;this.props.onListLoaded({categories:e,categoryIds:n})}}),this.makeTypeaheadApiRequest=(async()=>{this.setState({isTypeaheadPending:!0});const e=await Ne(this.props.apiContext(),this.state.searchQuery);if(e.ok){if(e.body&&e.body.data&&e.body.data.children){const t=_e(e.body.data.children);t&&t.data&&t.order&&this.props.onTypeaheadSuggestionsSuccess({typeaheadSuggestions:t.data,order:t.order,searchQuery:this.state.searchQuery})}this.setState({isTypeaheadPending:!1,fetchedTrending:!0})}else this.setState({isTypeaheadPending:!1,error:e.error})}),this.makeTrendingApiRequest=(async()=>{if(!this.props.trendingItems.length&&!this.state.isTrendingPending){this.setState({isTrendingPending:!0});const e=await Ee(this.props.apiContext());if(e.ok){const t=Object(Fe.b)(e);this.props.onTrendingItemsSuccess(t),this.setState({isTrendingPending:!1})}else this.setState({isTrendingPending:!1,error:e.error})}}),this.setContainerRef=(e=>{this.container=e}),this.close=(()=>{this.props.dropdownIsOpen&&this.props.onToggleDropdown()}),this.onRemoveRecentSearch=(e=>{this.props.currentUser&&0!==this.state.recentSearches.length&&(Object(Qe.t)(e,this.props.currentUser.id),this.setState({recentSearches:this.state.recentSearches.filter(t=>t.searchQuery!==e.searchQuery),focusedItemIndex:-1}))}),this.onUpdateSearchQuery=(e=>{this.setState({searchQuery:e})}),this.onSetRecentSearch=(e=>{this.props.isLoggedIn&&this.props.currentUser&&this.setState({recentSearches:Object(Qe.L)(Object.assign({},e,{section:E.c.recent}),this.props.currentUser.id)})}),this.onChange=(e=>{const t=e.currentTarget.value,o={searchQuery:t};if(this.setState(o),this.props.onChange(t),this.props.isInTypeaheadExperiment){if(this.props.typeaheadIdsByQuery&&this.props.typeaheadIdsByQuery[t]||!t)return;this.onFetchTypeaheadSuggestions()}}),this.onFetchTypeaheadSuggestions=s()(()=>{this.makeTypeaheadApiRequest()},50),this.onSearch=(async e=>{if(!this.props.categoriesLoaded&&this.props.isInCategoriesExperiment&&await this.makeCategoriesApiRequest(e),this.state.searchQuery){let t,o=Object.assign({},E.a);if(this.state.selectedItem&&this.state.selectedItem.searchQuery===this.state.searchQuery)(o=this.state.selectedItem).id||(o.id=h()()),this.props.typeaheadSuggestions&&o.isTypeaheadSuggestion?this.onSendDropdownClickEvent(this.state.searchQuery,this.state.searchQuery,L.StructureType.Search,o.isProfile?L.SearchDropdownNouns.TypeaheadProfile:L.SearchDropdownNouns.TypeaheadSubreddit):this.onSendDropdownClickEvent(this.state.searchQuery,this.state.searchQuery,L.StructureType.Search,L.SearchDropdownNouns.Recent);else{const e=this.props.subreddit&&this.props.subreddit.icon?this.props.subreddit.icon.url:"",t=this.props.subreddit?this.props.subreddit.displayText:void 0,n=!!this.props.subreddit&&this.props.subreddit.isNSFW,r=E.b.text;o={id:h()(),searchQuery:this.state.searchQuery,type:r,section:E.c.recent,subredditOrProfileRestrictedName:t,displayInfo:{iconUrl:e,isNSFW:n}}}this.props.isInCategoriesExperiment&&this.props.categoriesLoaded&&(t=this.props.categoriesNameToId[Object(Ue.f)(o.searchQuery)]),t||this.onSetRecentSearch(o),this.props.onSearch(e,o,t),this.onClearSearchQuery(),this.close()}}),this.onClearSearchQuery=(()=>{this.setState({focusedItemIndex:-1,selectedItem:null,searchQuery:""}),this.props.onClearSearchQuery()}),this.onSendDropdownClickEvent=((e,t,o,n)=>{const r={displayQuery:e,rawQuery:t,structureType:o,searchQuery:this.props.searchQuery};this.props.sendEvent(Object(Ge.g)(n,r))}),this.onSendDropdownViewEvent=((e,t,o,n)=>{const r={displayQuery:o,rawQuery:n||o,searchQuery:this.props.searchQuery,structureType:t};this.props.sendEvent(Object(Ge.h)(e,r))}),this.onKeyDown=(e=>{if(e.key===Ce.b.Escape&&this.close(),e.key===Ce.b.Tab&&this.close(),e.key===Ce.b.ArrowDown){if(e.preventDefault(),0===this.state.itemList.length||!this.props.dropdownIsOpen)return;if(this.state.focusedItemIndex>=this.state.itemList.length-1)return;const t=this.state.focusedItemIndex+1,o=this.state.itemList[t]||null,n=o?o.searchQuery:"";this.setState({focusedItemIndex:t,searchQuery:n,selectedItem:o})}if(e.key===Ce.b.ArrowUp){if(e.preventDefault(),0===this.state.itemList.length||!this.props.dropdownIsOpen)return;if(-1===this.state.focusedItemIndex)return;const t=this.state.focusedItemIndex-1,o=this.state.itemList[t]||null,n=o?o.searchQuery:"";this.setState({focusedItemIndex:t,searchQuery:n,selectedItem:o})}}),this.toggleDropdownAndGetTrending=(()=>{if(!this.props.trendingItems.length&&this.props.isInTrendingExperiment&&this.makeTrendingApiRequest(),this.props.currentUser&&!this.props.subreddit){const e=Object(Qe.p)(this.props.currentUser.id);e.length>0&&(this.setState({recentSearches:this.props.isLoggedIn?e:[],itemList:[...e,...this.props.trendingItems]}),e.forEach(e=>{this.onSendDropdownViewEvent(L.SearchDropdownNouns.Recent,L.StructureType.Recent,e.searchQuery)})),this.props.trendingItems.length>0&&this.props.trendingItems.forEach(e=>{this.onSendDropdownViewEvent(L.SearchDropdownNouns.Trending,L.StructureType.Trending,e.searchQuery)})}this.props.onToggleDropdown()}),this.state={error:null,fetchedTrending:!1,focusedItemIndex:-1,itemList:[],isTrendingPending:!1,isTypeaheadPending:!1,recentSearches:[],searchQuery:this.props.searchQuery||"",selectedItem:null}}componentDidUpdate(e){const t=He(e.typeaheadSuggestions,this.props.typeaheadSuggestions),o=He(e.trendingItems,this.props.trendingItems);if(this.props.searchQuery!==e.searchQuery||!t||!o){const n=this.props.typeaheadSuggestions.length?this.props.typeaheadSuggestions:[...this.state.recentSearches,...this.props.trendingItems];this.setState(()=>{const t={itemList:n};return this.props.searchQuery!==e.searchQuery&&(t.searchQuery=this.props.searchQuery||""),t}),!t&&this.props.typeaheadSuggestions.length&&this.props.typeaheadSuggestions.forEach(e=>{this.onSendDropdownViewEvent(e.isProfile?L.SearchDropdownNouns.TypeaheadProfile:L.SearchDropdownNouns.TypeaheadSubreddit,L.StructureType.Search,e.searchQuery)}),!o&&this.props.trendingItems.length&&this.state.fetchedTrending&&this.props.trendingItems.forEach(e=>{this.onSendDropdownViewEvent(L.SearchDropdownNouns.Trending,L.StructureType.Trending,e.searchQuery)})}}render(){const e=this.props,t=this.state;return nt(lt,{className:Object(v.a)(pe.a.container,e.className,{"m-open":this.props.dropdownIsOpen}),id:ge,innerRef:this.setContainerRef},void 0,nt(it,{htmlFor:"header-search-bar"},void 0,nt(st,{})),nt("form",{action:"/search",autoComplete:"off",method:"get",onSubmit:t=>{t.preventDefault(),this.onSearch(t);const o=e.searchOptions||Object(y.d)({});o.q||(o.q=this.state.searchQuery),dt(e.sendEvent,"full_search_button",o)},onFocus:e.onFocusSearchBar},void 0,nt(rt,{id:"header-search-bar",name:"q",onChange:this.onChange,onClick:this.toggleDropdownAndGetTrending,onKeyDown:this.onKeyDown,placeholder:ut(e.language,e.subreddit,e.multireddit),role:"search",type:"search",value:this.state.searchQuery},e.searchQuery)),!e.subreddit&&nt(xe,{container:this.container,focusedItemIndex:t.focusedItemIndex,isFixed:e.isFixed,isInRailsExperiment:e.isInRailsExperiment,isInTrendingExperiment:e.isInTrendingExperiment,isOpen:e.dropdownIsOpen,isTrendingPending:t.isTrendingPending,isTypeaheadPending:t.isTypeaheadPending,itemList:t.itemList,language:e.language,onClearSearchQuery:this.onClearSearchQuery,onClose:this.close,onRemoveRecentSearch:this.onRemoveRecentSearch,onSendDropdownClickEvent:this.onSendDropdownClickEvent,onSetRecentSearch:this.onSetRecentSearch,onUpdateSearchQuery:this.onUpdateSearchQuery,recentSearches:t.recentSearches,trendingItems:e.trendingItems,typeaheadSuggestions:e.typeaheadSuggestions}))}}))))},"./src/reddit/controls/TextButton/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=i()(e=>a("button",{children:e.children,className:e.className,disabled:e.disabled,onClick:e.onClick})).withConfig({componentId:"s10n1rwf-0"})(["","background: transparent;border: none;padding: 0;text-decoration: underline;&:hover {cursor: pointer;}"],s.smallButtonFont)},"./src/reddit/controls/ToggleSwitch/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const d=i.a.div.withConfig({componentId:"s11tny4y-0"})(["background-color: #FFFFFF;box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 2px 3px 0 rgba(0,0,0,0.2);transition: left 0.15s linear;border-radius: ","%;width: ","%;&::after {content: '';padding-top: 100%;display: block;}"],.57*100,.57*100);t.a=i()(e=>a("button",{"aria-checked":e.on,className:e.className,id:e.id,role:"switch",tabIndex:e.tabIndex,type:"button",onClick:()=>!e.disabled&&e.onToggle&&e.onToggle()},void 0,a(d,{}))).withConfig({componentId:"s11tny4y-1"})(["display: flex;justify-content: ",";background-color: ",";border: 2px solid ",";border-radius: 100px;cursor: ",";position: relative;width: 35px;transition: border-color 0.15s linear,background-color 0.15s linear;"," {","}"],e=>e.on&&!e.disabled?"flex-end":"flex-start",e=>e.on&&!e.disabled?e.activeColorOverride||Object(s.c)(e).active:Object(s.c)(e).inactive,e=>e.on&&!e.disabled?e.activeColorOverride||Object(s.c)(e).active:Object(s.c)(e).inactive,e=>e.disabled?"default ":"pointer",d,e=>e.disabled?"box-shadow: none;":"")},"./src/reddit/controls/Typography/index.tsx":function(e,t,o){"use strict";o.d(t,"c",function(){return a}),o.d(t,"d",function(){return d}),o.d(t,"e",function(){return c}),o.d(t,"f",function(){return l}),o.d(t,"g",function(){return u}),o.d(t,"a",function(){return p}),o.d(t,"b",function(){return m}),o.d(t,"h",function(){return f});var n=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(n),i=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),s=o("./src/reddit/models/Theme/NewColorSystem/index.ts");const a=r.a.h1.withConfig({componentId:"drw0m7-0"})(["",""],i.titleFontH1),d=r.a.h2.withConfig({componentId:"drw0m7-1"})(["",""],i.titleFontH2),c=r.a.h3.withConfig({componentId:"drw0m7-2"})(["",""],i.titleFontH3),l=r.a.h4.withConfig({componentId:"drw0m7-3"})(["",""],i.titleFontH4),u=r.a.h5.withConfig({componentId:"drw0m7-4"})(["",""],i.titleFontH5),p=(r.a.h6.withConfig({componentId:"drw0m7-5"})(["",""],i.titleFontH6),r.a.p.withConfig({componentId:"drw0m7-6"})(["",""],i.bodyFont)),m=r.a.p.withConfig({componentId:"drw0m7-7"})(["",""],i.bodyFontSmall),f=(r.a.p.withConfig({componentId:"drw0m7-8"})(["",""],i.actionFont),r.a.p.withConfig({componentId:"drw0m7-9"})(["","color: ",";"],i.metadataFont,e=>Object(s.c)(e).metaText));r.a.p.withConfig({componentId:"drw0m7-10"})(["font-size: 10px;font-weight: normal;line-height: 12pt;"])},"./src/reddit/endpoints/economics/paymentSystems.ts":function(e,t,o){"use strict";o.d(t,"d",function(){return i}),o.d(t,"a",function(){return s}),o.d(t,"c",function(){return a}),o.d(t,"b",function(){return d});var n=o("./src/config.ts"),r=o("./src/reddit/endpoints/governance/requester.ts");function i(e){return Object(r.a)(e,{endpoint:`${n.a.metaUrl}/ps/me/stripe-connect-links`,method:"post"})}function s(e,t){return Object(r.a)(e,{endpoint:`${n.a.metaUrl}/ps/me`,method:"patch",data:{stripe:{authorization:Object.assign({},t,{scope:"read_write"})}}})}function a(e){return Object(r.a)(e,{endpoint:`${n.a.metaUrl}/ps/me`,method:"get"})}function d(e,t){return Object(r.a)(e,{endpoint:`${n.a.metaUrl}/ps/me/stripe-sources/${t}`,method:"delete"})}},"./src/reddit/endpoints/trending/index.ts":function(e,t,o){"use strict";o.d(t,"b",function(){return u});var n=o("./node_modules/uuid/v4.js"),r=o.n(n),i=o("./src/lib/constants/index.ts"),s=o("./src/lib/makeApiRequest/index.ts"),a=o("./src/lib/omitHeaders/index.ts"),d=o("./src/reddit/constants/headers.ts"),c=o("./src/reddit/helpers/r2/normalizePostFromR2/index.ts"),l=o("./src/reddit/models/Search/index.ts");const u=e=>{const t=[];if(e.body&&e.body.trending_searches){const o=e.body.trending_searches.length;for(let n=0;n<o;n++){const o=e.body.trending_searches[n],i=o.results.data.children.length>0?o.results.data.children[0].data:null,s={id:r()(),post:i?Object(c.a)(i):null,rawQuery:o.query_string,searchQuery:o.display_string,section:l.c.trending,isWhitelisted:o.is_subreddit_whitelisted,subredditInfo:i?{icon:i.sr_detail.community_icon||i.sr_detail.icon_img,displayText:i.sr_detail.display_name_prefixed}:null,subredditOccurrences:o.subreddit_occurences-1,type:l.b.text};t.push(s)}}return t};t.a=(e=>Object(s.c)(Object(a.a)(e,[d.a]),{endpoint:`${e.apiUrl}/api/trending_searches_v1.json`,method:i.jb.GET}))},"./src/reddit/helpers/canPreviewSelfText/index.ts":function(e,t,o){"use strict";var n=o("./src/reddit/helpers/postHasSelfText/index.ts");t.a=(e=>Object(n.a)(e)&&!e.isSpoiler&&!e.isNSFW)},"./src/reddit/helpers/canRenderThumbnail.ts":function(e,t,o){"use strict";const n="nsfw",r="self";function i(e){return!(!e.thumbnail||!e.thumbnail.url||e.thumbnail.url===r||e.thumbnail.url===n)}o.d(t,"a",function(){return i})},"./src/reddit/helpers/externalAccount/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return n}),o.d(t,"b",function(){return r});const n=()=>new BroadcastChannel("external_account"),r=e=>{const t=n();t.postMessage({type:"connected",provider:e}),t.close()}},"./src/reddit/helpers/getOverlayContainerById/index.ts":function(e,t,o){"use strict";t.a=(e=>null)},"./src/reddit/helpers/getSearchUrl/index.ts":function(e,t,o){"use strict";var n=o("./src/lib/constants/index.ts"),r=o("./src/lib/search/index.ts"),i=o("./src/reddit/constants/parameters.ts"),s=o("./src/reddit/models/Search/index.ts");t.a=((e,t,o,a,d,c)=>{let l,u;if(""!==o.searchQuery)return c?{url:"/search",qs:`${i.n}=*:*&${i.b}=${o.searchQuery}&${i.a}=${c}`}:(o.isTypeaheadSuggestion?l=`/${o.searchQuery}`:(u=`${i.n}=${Object(r.b)(o.searchQuery)}`,l="/search",o.section===s.c.trending&&(a||(u+=`&sort=${n.B}&t=${n.C}`),d&&d.source&&(u+=`&source=${d.source}`)),e?(l=`/r/${e.name}${l}`,u=`${u}&${i.o}=1`):o.subredditOrProfileRestrictedName&&(l=`/${o.subredditOrProfileRestrictedName}${l}`,u=`${u}&${i.o}=1`),t&&(l=`/me/m/${t.name}${l}`,u=`${u}&${i.o}=1&${i.h}=1`),d&&d.category&&(u=`${u}&${i.a}=${d.category}`)),{url:l,qs:u})})},"./src/reddit/helpers/getSubredditErrorProps/index.ts":function(e,t,o){"use strict";var n=o("./src/reddit/components/ContentGate/index.tsx");t.a=((e,t,o)=>{let r,i,s,a,d,c;return e?e.quarantinedSubreddit?(i=n.a.QuarantinedSubreddit,a=e.quarantineMessage,d=e.quarantineMessageHtml,c=e.quarantineRequiresEmail):e.privateSubreddit?(i=n.a.PrivateSubreddit,s=e.subredditDescription):e.goldSubreddit?i=n.a.GoldSubreddit:e.subredditBanned?(i=n.a.SubredditBanned,r=e.subredditBanMessage):e.subredditDoesNotExist&&(i=n.a.SubredditDoesNotExist):t&&(i=n.a.Nsfw),i&&o?{banMessage:r,contentGateType:i,subredditDescription:s,subredditName:o,quarantineMessage:a,quarantineMessageHtml:d,quarantineRequiresEmail:c}:void 0})},"./src/reddit/helpers/makeHeaderUserDropdownItem/index.tsx":function(e,t,o){"use strict";o.d(t,"d",function(){return f}),o.d(t,"b",function(){return g}),o.d(t,"e",function(){return b}),o.d(t,"a",function(){return y});o("./node_modules/react/index.js");var n,r=o("./node_modules/react-router-dom/es/index.js"),i=o("./src/reddit/helpers/styles/components/index.tsx"),s=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(s),d=o("./src/reddit/constants/colors.ts"),c=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),l=o("./src/reddit/icons/svgs/OutboundLink/index.tsx"),u=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),p=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const m=a()(l.a).withConfig({componentId:"s11l4hu4-0"})(["display: inline-block;height: 12px;margin-left: 4px;vertical-align: middle;width: 12px;"]),f=Object(i["d"])()`
fill: ${e=>e.isLit?d.a.orangered:""};
height: 20px;
left: 16px;
position: absolute;
top: 10px;
width: 20px;
`,h=a.a.div.withConfig({componentId:"s11l4hu4-1"})(["","color: ",";"],c.metadataFont,e=>Object(u.c)(e).metaText),g=Object(s.css)(["","display: inline-block;vertical-align: middle;"],c.titleFontH5),b=Object(s.css)(["box-sizing: border-box;color: ",";cursor: pointer;display: block;fill: ",";padding: 10px 16px 10px ","px;position: relative;&:hover, &:focus {background-color: ",";color: ",";fill: ",";outline: none;"," {color: ",";}}"],e=>Object(u.c)(e).bodyText,e=>Object(u.c)(e).actionIcon,48,e=>Object(u.c)(e).button,e=>Object(u.c)(e).body,e=>Object(u.c)(e).body,h,e=>Object(u.c)(e).body),v=a()(r.a).withConfig({componentId:"s11l4hu4-2"})(["",""],b),y=a.a.button.withConfig({componentId:"s11l4hu4-3"})(["","text-align: left;width: 100%;"],b),x=a.a.a.withConfig({componentId:"s11l4hu4-4"})(["",""],b),O=e=>t=>p("div",{className:t.className},void 0,e);t.c=function(e,t,o,n){const r=a()(e).withConfig({componentId:"s11l4hu4-5"})(["",""],f),i="string"==typeof t?a()(O(t)).withConfig({componentId:"s11l4hu4-6"})(["",""],g):a()(t).withConfig({componentId:"s11l4hu4-7"})(["",""],g);return o?e=>p(x,{"data-redditstyle":!0,className:e.className,href:e.href,onClick:e.onClick,target:"_blank"},void 0,p(r,{isLit:e.isLit}),p(i,{}),n&&p(h,{},void 0,n),p(m,{})):e=>e.href?p(v,{"data-redditstyle":!0,className:e.className,to:e.href,onClick:e.onClick},void 0,p(r,{isLit:e.isLit}),p(i,{}),n&&p(h,{},void 0,n)):p(y,{"data-redditstyle":!0,className:e.className,onClick:e.onClick},void 0,p(r,{isLit:e.isLit}),p(i,{}))}},"./src/reddit/helpers/postCollection.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return n});const n=e=>!!e.collectionIds&&e.collectionIds.length>=1},"./src/reddit/helpers/postHasSelfText/index.ts":function(e,t,o){"use strict";var n=o("./src/reddit/models/Media/index.ts"),r=o("./src/reddit/models/RichTextJson/index.ts");t.a=(e=>{const t=e&&e.media;return!!t&&(t.type===n.m.TEXT&&!!t.content||t.type===n.m.RTJSON&&!Object(r.E)(t.richtextContent))})},"./src/reddit/helpers/styles/components/index.tsx":function(e,t,o){"use strict";o.d(t,"d",function(){return s}),o.d(t,"a",function(){return a}),o.d(t,"b",function(){return d}),o.d(t,"c",function(){return c});o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});function s(){return(e,...t)=>Object(r.css)(e,...t)}const a=()=>e=>i("div",{className:e.className},void 0,e.children),d=()=>e=>i("div",{className:e.className,id:e.id,tabIndex:-1},void 0,e.children),c=()=>e=>i("div",{className:e.className,title:e.title},void 0,e.children)},"./src/reddit/helpers/styles/mixins/index.tsx":function(e,t,o){"use strict";o.d(t,"p",function(){return m}),o.d(t,"q",function(){return f}),o.d(t,"u",function(){return h}),o.d(t,"k",function(){return g}),o.d(t,"j",function(){return y}),o.d(t,"f",function(){return O}),o.d(t,"h",function(){return j}),o.d(t,"g",function(){return S}),o.d(t,"b",function(){return P}),o.d(t,"m",function(){return M}),o.d(t,"n",function(){return I}),o.d(t,"v",function(){return k}),o.d(t,"t",function(){return N}),o.d(t,"i",function(){return E}),o.d(t,"w",function(){return T}),o.d(t,"s",function(){return L}),o.d(t,"o",function(){return _}),o.d(t,"c",function(){return R}),o.d(t,"d",function(){return A}),o.d(t,"x",function(){return $}),o.d(t,"y",function(){return D}),o.d(t,"a",function(){return B}),o.d(t,"e",function(){return H}),o.d(t,"r",function(){return Q}),o.d(t,"l",function(){return U});var n=o("./node_modules/polished/dist/polished.es.js"),r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o("./src/reddit/constants/screenWidths.ts"),s=o("./src/reddit/constants/zIndex.ts"),a=o("./src/reddit/helpers/styles/postBackgroundColor.ts"),d=o("./src/reddit/helpers/styles/smartTextColor.ts"),c=o("./src/reddit/models/NewStructuredStyles/index.ts"),l=o("./src/reddit/models/Theme/index.ts"),u=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),p=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};const m=Object(r.css)(["border-radius: 2px;transition: background-color 0.1s;&:hover, &:focus {background-color: ",";outline: none;}"],e=>Object(n.e)(Object(u.c)(e).navIcon,.1)),f=Object(r.css)(["",""],e=>`\n background: ${Object(l.g)(Object(u.c)(e).post,Object(u.c)(e).backgroundImage,Object(u.c)(e).backgroundImagePosition)||""};\n `),h=Object(r.css)(["",""],e=>`\n background: ${Object(l.g)(Object(u.c)(e).body,null,null)||""};\n `),g=e=>{var t=e.template,o=p(e,["template"]);return t.postBackgroundImage?`background: ${Object(l.g)(t.postBackgroundColor||Object(u.c)(o).post,t.postBackgroundImage,Object(u.c)(o).backgroundImagePosition)};`:t.postBackgroundColor?`background: ${Object(l.g)(t.postBackgroundColor,null,null)};`:f},b=e=>Object(n.j)(.2,e),v=Object(r.css)(["position: relative;background-color: ",";",""],e=>b(Object(u.c)(e).post),e=>`\n color: ${Object(u.c)(e).actionIcon};\n `),y=e=>e&&e.postBackgroundColor?`background-color: ${b(e.postBackgroundColor)}`:"",x=Object(r.css)(["border: 1px solid ",";margin-bottom: -1px;position: relative;z-index: 0;&:hover {border: 1px solid ",";z-index: ",";}"],e=>Object(u.c)(e).postLine,e=>Object(u.c)(e).postIcon,s.q),O=Object(r.css)(["",""],e=>e.isActive?`&:focus {\n border: 1px solid ${Object(u.c)(e).postIcon};\n box-shadow: 0px 0px 0px 1px ${Object(u.c)(e).postIcon};\n z-index: ${s.q+1};\n }`:""),C=Object(r.css)(["position: relative;",""],e=>`color: ${Object(u.c)(e).actionIcon}; `),w=Object(r.css)(["color: ",";cursor: pointer;fill: ",";"],e=>Object(d.a)(Object(a.a)(e),c.a.actionIcon,c.b.actionIcon),e=>Object(d.a)(Object(a.a)(e),c.a.actionIcon,c.b.actionIcon)),j=Object(r.css)(["","","","overflow: hidden;@media (min-width: ","px) {padding-left: 40px;}position: relative;"],x,v,w,i.i),S=Object(r.css)(["backface-visibility: hidden;margin-bottom: -1px;position: relative;transform: translateZ(0);z-index: 0;border: 1px solid ",";&:hover {border: 1px solid ",";z-index: ",";}"],e=>Object(u.c)(e).postLine,e=>Object(u.c)(e).postIcon,s.q),P=Object(r.css)(["","","margin-bottom: 10px;overflow: hidden;border: 1px solid ",";&:hover {border: 1px solid ",";}"],v,w,e=>Object(u.c)(e).postLine,e=>Object(u.c)(e).postIcon),M=Object(r.css)(["",""],e=>e.isActive?`&:focus {\n border: 1px solid ${Object(u.c)(e).postIcon};\n box-shadow: 0px 0px 0px 1px ${Object(u.c)(e).postIcon};\n transition: box-shadow 0s;\n }`:""),I=(Object(r.css)(["border-radius: 4px;box-shadow: 0 2px 4px 0 rgba(0,0,0,0.06);margin-bottom: 10px;overflow: hidden;padding: 8px 0 0 40px;"]),Object(r.css)(["","","transition: color 0.5s, fill 0.5s, box-shadow 0.5s;/* &:hover {box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);} */"],P,w)),k=Object(r.css)(["","","transition: color 0.5s, fill 0.5s, box-shadow 0.5s;padding-left: 0;margin-bottom: 0;"],P,w),N=Object(r.css)(["padding: 6px;border-radius: 4px;"]),E=Object(r.css)(["","","","overflow: hidden;"],v,w,x),T=Object(r.css)(["","","overflow: hidden;"],C,w),L=Object(r.css)(["color: ",";word-wrap: break-word;"],e=>Object(u.c)(e).titleText),_=Object(r.css)(["",""],v),F={[i.j]:.4,[i.h]:.7,[i.f]:.8},R="\n border-radius: 2px;\n",A="\n border-radius: 4px;\n flex: 1;\n height: 100%;\n width: 100%;\n",$=(e,t)=>"display: none;\n"+[i.j,i.h,i.f,340+t].map(o=>{const n=((e,t,o)=>{const n=F[o]?F[o]:1;return{height:n*e,width:n*t}})(e,t,o);return n.width<80?`\n display: block;\n height: ${e/t*80}px;\n flex: 0 0 80px;\n `:`\n @media(min-width: ${o}px) {\n display: flex;\n height: ${n.height}px;\n flex: 0 0 ${n.width}px;\n }\n `}).join("\n"),D="\n align-items: center;\n display: flex;\n fill: inherit;\n flex-direction: column;\n",B=(e,t,o={})=>`\n background-image: url(${e});\n background-repeat: ${o.repeat||"no-repeat"};\n\n @media\n only screen and (min-resolution: 2dppx),\n only screen and (-webkit-min-device-pixel-ratio: 2) {\n background-image: url(${t});\n background-size: ${o.hidpiSize||"100%"};\n }\n `,H="\n display: block;\n padding: 0 16px;\n width: 100%;\n",Q=Object(r.css)(["border: 1px solid ",";border-top-width: 0;border-bottom-width: 0;padding-top: 1px;padding-bottom: 1px;overflow: hidden;&:hover {border-color: ",";border-top-width: 1px;border-bottom-width: 1px;padding-top: 0;padding-bottom: 0;z-index: ",";}","",""],e=>Object(u.c)(e).line,e=>Object(u.c)(e).postIcon,s.q,e=>e.isFirst?"border-top-width: 1px;\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n padding-top: 0;":"",e=>e.isLast?"border-bottom-width: 1px;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n padding-bottom: 0;":""),U=Object(r.css)(["display: inline-block;vertical-align: text-bottom;width: 16px;height: 16px;font-size: 16px;font-weight: 400;line-height: 16px;"])},"./src/reddit/helpers/styles/mixins/loading.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return s}),o.d(t,"b",function(){return d}),o.d(t,"c",function(){return c});var n=o("./bundled-modules/styled-components/styled-components.min.js"),r=o("./src/reddit/helpers/styles/components/index.tsx"),i=o("./src/reddit/models/Theme/NewColorSystem/index.ts");const s={COMMENTS:"comments",POSTS:"posts"},a=Object(n.keyframes)(["from { background-position: 0 0; }to { background-position: -200% 0; }"]),d=Object(r["d"])()`
animation: ${e=>e.isLoading?a:"none"} 1.5s ease infinite;
background: ${e=>{const t=Object(i.c)(e);return e.isLoading?`linear-gradient(\n 90deg,\n ${t.field},\n ${t.inactive},\n ${t.field}\n )`:`${t.field}`}};
background-size: 200%;
`,c="\n border-radius: 4px;\n";Object(n.css)(["background: ",";border-radius: 4px;box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06);"],e=>Object(i.c)(e).post)},"./src/reddit/helpers/styles/placeholder/index.ts":function(e,t,o){"use strict";t.a=((e,t=1)=>`\n ::-webkit-input-placeholder { /* WebKit browsers */\n color: ${e};\n }\n :-moz-placeholder { /* Mozilla Firefox 4 to 18 */\n color: ${e};\n opacity: ${t};\n }\n ::-moz-placeholder { /* Mozilla Firefox 19+ */\n color: ${e};\n opacity: ${t};\n }\n :-ms-input-placeholder { /* Internet Explorer 10+ */\n color: ${e};\n }\n`)},"./src/reddit/helpers/styles/postBackgroundColor.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return i}),o.d(t,"b",function(){return s});var n=o("./node_modules/polished/dist/polished.es.js"),r=o("./src/reddit/models/Theme/NewColorSystem/index.ts");function i(e){return e.flairStyleTemplate&&e.flairStyleTemplate.postBackgroundColor?e.flairStyleTemplate.postBackgroundColor:Object(r.c)(e).post}const s=e=>Object(n.e)(Object(r.c)(e).bodyText,.03)},"./src/reddit/helpers/styles/smartTextColor.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return i});var n=o("./node_modules/polished/dist/polished.es.js"),r=o("./src/reddit/models/NewStructuredStyles/index.ts");function i(e,t=r.a.bodyText,o=r.b.bodyText){return Object(n.b)(e)<.6?o:t}},"./src/reddit/helpers/toggleBodyScroll/index.ts":function(e,t,o){"use strict";o.d(t,"b",function(){return i}),o.d(t,"a",function(){return s}),o.d(t,"c",function(){return a});var n=o("./src/reddit/constants/elementIds.ts");let r;const i=()=>{const e=document.body.dataset.previousOverflow;if(!e)return;document.body.removeAttribute("data-previous-overflow");const t=document.getElementById(n.c);document.body.style.overflow=e,document.body.style.marginRight=null,t&&(t.style.marginRight=null)},s=()=>{if(document.body.dataset.previousOverflow)return;const e=document.body.style.overflow||"auto";document.body.dataset.previousOverflow=e,r||(r=a(document.body)),document.body.style.overflow="hidden",document.body.style.marginRight=`${r}px`;const t=document.getElementById(n.c);t&&(t.style.marginRight=`${r}px`)},a=e=>{const t=e.getBoundingClientRect();return window.innerWidth-(t.left+t.right)}},"./src/reddit/helpers/trackers/modTools.ts":function(e,t,o){"use strict";o.d(t,"h",function(){return i}),o.d(t,"i",function(){return s}),o.d(t,"j",function(){return a}),o.d(t,"a",function(){return d}),o.d(t,"d",function(){return c}),o.d(t,"b",function(){return l}),o.d(t,"c",function(){return u}),o.d(t,"e",function(){return p}),o.d(t,"k",function(){return m}),o.d(t,"g",function(){return f}),o.d(t,"f",function(){return h});var n=o("./src/reddit/selectors/telemetry.ts");const r=e=>({screen:Object(n.screen)(e),profile:Object(n.profile)(e),subreddit:Object(n.subreddit)(e)}),i=e=>t=>Object.assign({source:"nav",action:"click",noun:e?"mod_mode_on":"mod_mode_off"},r(t)),s=(e,t)=>o=>Object.assign({source:"post_mod_action_menu",action:"click",noun:e,post:Object(n.post)(o,t)},r(o)),a=(e,t)=>o=>Object.assign({source:"post_overflow_menu",action:"click",noun:e,post:Object(n.post)(o,t)},r(o)),d=(e,t)=>o=>Object.assign({source:"comment",action:"click",noun:e,post:Object(n.post)(o,t),comment:Object(n.comment)(o,t)},r(o)),c=(e,t)=>o=>Object.assign({source:"comment_overflow_menu",action:"click",noun:e,post:Object(n.post)(o,t),comment:Object(n.comment)(o,t)},r(o)),l=(e,t)=>o=>Object.assign({source:"mod_distinguish_menu",action:"click",noun:e,post:Object(n.post)(o,t),comment:Object(n.comment)(o,t)},r(o)),u=(e,t)=>o=>Object.assign({source:"comment_mod_action_menu",action:"click",noun:e,post:Object(n.post)(o,t),comment:Object(n.comment)(o,t)},r(o)),p=(e,t)=>o=>Object.assign({source:"comment_report_menu",action:"click",noun:e,comment:Object(n.comment)(o,t),post:Object(n.post)(o,t)},r(o)),m=(e,t)=>o=>Object.assign({source:"post_report_menu",action:"click",noun:e,post:Object(n.post)(o,t)},r(o)),f=(e,t)=>o=>({source:"post",action:"click",noun:e,post:Object(n.post)(o,t),subreddit:Object(n.subredditByPostOrCommentId)(o,t)}),h=(e,t)=>o=>({source:"comment",action:"click",noun:e,comment:Object(n.comment)(o,t),post:Object(n.post)(o,t),subreddit:Object(n.subredditByPostOrCommentId)(o,t)})},"./src/reddit/helpers/trackers/monthsToMinutes.ts":function(e,t,o){"use strict";o.d(t,"g",function(){return i}),o.d(t,"a",function(){return s}),o.d(t,"b",function(){return a}),o.d(t,"d",function(){return d}),o.d(t,"e",function(){return c}),o.d(t,"f",function(){return l}),o.d(t,"c",function(){return u}),o.d(t,"i",function(){return p}),o.d(t,"h",function(){return m});var n=o("./src/reddit/selectors/telemetry.ts");const r=e=>Object.assign({},n.defaults(e),{source:"banner",noun:"account_complete"}),i=e=>t=>Object.assign({},r(t),{action:"view",actionInfo:n.actionInfo(t,{reason:e?"ac_at_bottom":"ac_in_feed"})}),s=()=>e=>Object.assign({},r(e),{action:"click",actionInfo:n.actionInfo(e,{reason:"arrow"})}),a=()=>e=>Object.assign({},r(e),{action:"click",actionInfo:n.actionInfo(e,{reason:"card"})}),d=()=>e=>Object.assign({},r(e),{action:"click",actionInfo:n.actionInfo(e,{reason:"signup"})}),c=e=>t=>Object.assign({},r(t),{action:"click",actionInfo:n.actionInfo(t,{reason:e})}),l=e=>t=>Object.assign({},r(t),{action:"toggle",actionInfo:n.actionInfo(t,{reason:e?"expand":"collapse"})}),u=()=>e=>Object.assign({},r(e),{action:"close",actionInfo:n.actionInfo(e)}),p=()=>e=>Object.assign({},n.defaults(e),{source:"popup",noun:"welcome_modal",action:"view",actionInfo:n.actionInfo(e,{reason:"milestone_signup"})}),m=()=>e=>Object.assign({},n.defaults(e),{source:"popup",noun:"welcome_modal",action:"close",actionInfo:n.actionInfo(e,{reason:"milestone_signup"})})},"./src/reddit/helpers/trackers/navigation.ts":function(e,t,o){"use strict";o.d(t,"d",function(){return i}),o.d(t,"e",function(){return l}),o.d(t,"a",function(){return u}),o.d(t,"b",function(){return p}),o.d(t,"c",function(){return m});var n=o("./src/reddit/selectors/telemetry.ts");const r=e=>({screen:n.screen(e),profile:n.profile(e),subreddit:n.subreddit(e)}),i=e=>t=>Object.assign({source:"nav",action:"click",noun:e},r(t)),s=(i("open_community_nav"),i("close_community_nav"),i("log_in"),i("sign_up"),i("sign_in"),e=>t=>Object.assign({source:"community_nav",action:"click",noun:`collapse_${e}`},r(t))),a=e=>t=>Object.assign({source:"community_nav",action:"click",noun:`expand_${e}`},r(t)),d=(s("favorites"),s("multireddits"),s("moderating"),s("subscribed_subreddits"),s("subscribed_profiles"),a("favorites"),a("multireddits"),a("moderating"),a("subscribed_subreddits"),a("subscribed_profiles"),/ /g),c=/&/g,l=e=>e.toLowerCase().trim().replace(d,"_").replace(c,"and"),u=e=>t=>Object.assign({},r(t),{source:"community_nav",action:"click",noun:`category_${l(e)}`}),p=e=>Object.assign({},r(e),{source:"community_nav",action:"click",noun:"category_scroll"}),m=e=>t=>Object.assign({},r(t),{source:"sort_switch",action:"click",noun:e})},"./src/reddit/helpers/trackers/postFlair.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return i}),o.d(t,"b",function(){return s});var n=o("./src/reddit/helpers/correlationIdTracker.ts"),r=o("./src/reddit/selectors/telemetry.ts");const i=(e,t)=>o=>Object.assign({source:"post",action:"click",noun:"post_flair"},r.defaults(o),{actionInfo:r.actionInfo(o),correlationId:Object(n.c)(n.a.SearchResults),post:r.post(o,e),search:r.postFlairClickToSearch(o,t),subreddit:r.subreddit(o)}),s=e=>t=>Object.assign({source:"post_flair_widget",action:"click",noun:"post_flair_search"},r.defaults(t),{actionInfo:r.actionInfo(t),correlationId:Object(n.c)(n.a.SearchResults),search:r.postFlairClickToSearch(t,e),subreddit:r.subreddit(t)})},"./src/reddit/helpers/trackers/searchResults.ts":function(e,t,o){"use strict";o.d(t,"b",function(){return s}),o.d(t,"f",function(){return a}),o.d(t,"i",function(){return d}),o.d(t,"d",function(){return c}),o.d(t,"h",function(){return l}),o.d(t,"g",function(){return u}),o.d(t,"c",function(){return p}),o.d(t,"a",function(){return m}),o.d(t,"e",function(){return f}),o.d(t,"j",function(){return h});var n=o("./src/lib/constants/index.ts"),r=o("./src/reddit/helpers/correlationIdTracker.ts"),i=o("./src/reddit/selectors/telemetry.ts");const s=(e,t)=>{const o=i.subreddit(e);return{screen:i.screen(e),subreddit:o&&t&&t.restrict_sr?o:null}},a=(e,t,o,n)=>r=>Object.assign({},s(r,o),{source:"search",action:"click",noun:t,actionInfo:i.actionInfo(r,n?{pageType:"search_results_best",position:0}:void 0),discoveryUnit:n?i.discoveryUnit(n):null,search:i.search(r,o),post:i.post(r,e),media:i.media(r,e)}),d=(e,t,o,r)=>a=>{let d=!0;if(t.type.indexOf(n.kc.Posts)>-1){const t=a.listings.listingOrder.api;d=d&&!t.error[e]&&!t.pending[e]}if(t.type.indexOf(n.kc.Subreddits)>-1||t.type.indexOf(n.kc.Users)>-1){const t=a.listings.postOrder.api;d=d&&!t.error[e]&&!t.pending[e]}return Object.assign({},s(a,t),{source:"search",action:"view",noun:"screen",actionInfo:i.actionInfo(a,{success:d}),timer:i.timer(o,r),search:i.search(a,t)})},c=(e,t,o)=>r=>{let a=!0;if(t.type.indexOf(n.kc.Posts)>-1){const t=r.listings.listingOrder.api;a=a&&!t.error[e]&&!t.pending[e]}if(t.type.indexOf(n.kc.Subreddits)>-1||t.type.indexOf(n.kc.Users)>-1){const t=r.listings.postOrder.api;a=a&&!t.error[e]&&!t.pending[e]}return Object.assign({},s(r,t),{source:"search",action:"view",noun:"search_results_post",actionInfo:i.actionInfo(r,{success:a,pageType:"search_results_best",position:0}),discoveryUnit:i.discoveryUnit(o),search:i.search(r,t)})},l=(e,t)=>o=>({action:"view",actionInfo:i.actionInfo(o),metaSearch:i.metaSearch(t),noun:e,screen:i.screen(o),search:i.smartSearch(o,t),source:"search"}),u=(e,t)=>o=>({action:"click",actionInfo:i.actionInfo(o),noun:e,metaSearch:i.metaSearch(t),screen:i.screen(o),search:i.smartSearch(o,t),source:"search"}),p=(e,t,o)=>n=>({action:t,actionInfo:i.actionInfo(n),noun:e,screen:i.screen(n),search:i.search(n,o),source:"search_results_best"});var m;!function(e){e.TopResults="tab_top_results",e.Posts="tab_posts",e.CommunitiesAndUsers="tab_communities"}(m||(m={}));const f=(e,t)=>o=>Object.assign({},s(o,t),{source:"search",action:"click",noun:e,correlationId:Object(r.c)(r.a.SearchResults),actionInfo:i.actionInfo(o),search:i.search(o,t)}),h=(e,t)=>o=>Object.assign({},s(o,t),{source:"search",action:"click",noun:e,correlationId:Object(r.c)(r.a.SearchResults),actionInfo:i.actionInfo(o),search:i.search(o,t)})},"./src/reddit/helpers/truncateStringWithEllipsis.ts":function(e,t,o){"use strict";t.a=((e,t)=>e.length>t?e.slice(0,t-1).replace(/\s*$/,"")+"…":e)},"./src/reddit/icons/fonts/Coin/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/reddit/constants/colors.ts"),a=o("./src/reddit/icons/fonts/helpers.tsx"),d=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const c=i()(e=>d("i",{className:`${Object(a.b)("coin")} ${e.className}`})).withConfig({componentId:"s1hvzp51-0"})(["display: inline-block;vertical-align: middle;color: ",";"],e=>e.fillColor||s.a.gold);t.a=c},"./src/reddit/icons/fonts/Downvote/index.m.less":function(e,t,o){e.exports={compactDownvote:"_2GCoZTwJW7199HSwNZwlHk",compactDownvoteWrapper:"jR747Vd1NbfaLusf5bHre",downvote:"ZyxIIl4FP5gHGrJDzNpUC",downvoteWrapper:"_1iKd82bq_nqObFvSH1iC_Q"}},"./src/reddit/icons/fonts/Downvote/index.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=o("./src/lib/classNames/index.ts"),a=o("./src/reddit/icons/fonts/helpers.tsx"),d=o("./src/reddit/icons/fonts/Downvote/index.m.less"),c=o.n(d),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},u=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),p=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};const m=e=>u("i",{className:Object(s.a)(Object(a.b)("downvote"),c.a.downvote,e.className)});t.a=(e=>{var t=e.compact,o=p(e,["compact"]);return t?i.a.createElement("div",l({},o,{className:Object(s.a)(c.a.compactDownvoteWrapper,o.className)}),u(m,{className:c.a.compactDownvote})):i.a.createElement("div",l({},o,{className:Object(s.a)(c.a.downvoteWrapper,o.className)}),u(m,{}))})},"./src/reddit/icons/fonts/Expandos/Media/Video/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/reddit/icons/fonts/helpers.tsx"),a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const d=i()(e=>a("i",{className:`${Object(s.b)("expandoMediaVideo")} ${e.className}`})).withConfig({componentId:"s1iaivf2-0"})(["display: inline-block;vertical-align: middle;height: 16px;width: 16px;font-size: 16px;font-weight: 400;line-height: 16px;"]);t.a=d},"./src/reddit/icons/fonts/Gif/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/reddit/icons/fonts/helpers.tsx"),a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const d=i()(e=>a("i",{className:`${Object(s.b)("gif")} ${e.className}`})).withConfig({componentId:"s89g5o-0"})(["display: inline-block;vertical-align: text-bottom;width: 20px;height: 20px;font-size: 20px;font-weight: 400;line-height: 20px;"]);t.a=d},"./src/reddit/icons/fonts/Link/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/reddit/icons/fonts/helpers.tsx"),a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const d=i()(e=>a("i",{className:`${Object(s.b)("link")} ${e.className}`})).withConfig({componentId:"s1tvtxm-0"})(["display: inline-block;vertical-align: text-bottom;width: 20px;height: 20px;font-size: 20px;font-weight: 400;line-height: 20px;"]);t.a=d},"./src/reddit/icons/fonts/OutboundLink/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./src/reddit/icons/fonts/helpers.tsx"),i=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>i("i",{className:`${Object(r.b)("outboundLink")} ${e.className}`}))},"./src/reddit/icons/fonts/Photos/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/reddit/icons/fonts/helpers.tsx"),a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const d=i()(e=>a("i",{className:`${Object(s.b)("photos")} ${e.className}`})).withConfig({componentId:"s124ty5q-0"})(["display: inline-block;vertical-align: text-bottom;width: 20px;height: 20px;font-size: 20px;font-weight: 400;line-height: 20px;"]);t.a=d},"./src/reddit/icons/fonts/Premium/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/reddit/constants/colors.ts"),a=o("./src/reddit/icons/fonts/helpers.tsx"),d=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const c=i()(e=>d("i",{title:e.title,className:`${Object(a.b)("premium")} ${e.className}`})).withConfig({componentId:"h6y9pg-0"})(["display: inline-block;vertical-align: middle;color: ",";"],s.a.snoo);t.a=c},"./src/reddit/icons/fonts/Text/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/reddit/icons/fonts/helpers.tsx"),a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const d=i()(e=>a("i",{className:`${Object(s.b)("text")} ${e.className}`})).withConfig({componentId:"wjiqt4-0"})(["display: inline-block;vertical-align: text-bottom;width: 20px;height: 20px;font-size: 20px;font-weight: 400;line-height: 20px;"]);t.a=d},"./src/reddit/icons/fonts/Upvote/index.m.less":function(e,t,o){e.exports={compactUpvote:"_39UOLMgvssWenwbRxz_iEn",compactUpvoteWrapper:"_3wVayy5JvIMI67DheMYra2",upvote:"_2Jxk822qXs4DaXwsN7yyHA",upvoteWrapper:"_2q7IQ0BUOWeEZoeAxN555e"}},"./src/reddit/icons/fonts/Upvote/index.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=o("./src/lib/classNames/index.ts"),a=o("./src/reddit/icons/fonts/helpers.tsx"),d=o("./src/reddit/icons/fonts/Upvote/index.m.less"),c=o.n(d),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},u=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}}),p=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};const m=e=>u("i",{className:Object(s.a)(Object(a.b)("upvote"),c.a.upvote,e.className)});t.a=(e=>{var t=e.compact,o=p(e,["compact"]);return t?i.a.createElement("div",l({},o,{className:Object(s.a)(c.a.compactUpvoteWrapper,o.className)}),u(m,{className:c.a.compactUpvote})):i.a.createElement("div",l({},o,{className:Object(s.a)(c.a.upvoteWrapper,o.className)}),u(m,{}))})},"./src/reddit/icons/fonts/helpers.tsx":function(e,t,o){"use strict";o.d(t,"b",function(){return a}),o.d(t,"a",function(){return d});o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const a=e=>`icon icon-${e}`,d=i()(e=>s("span",{className:e.className},void 0,e.children)).withConfig({componentId:"i729lw-0"})(["display: none;"])},"./src/reddit/icons/svgs/Admin/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./src/reddit/constants/colors.ts"),i=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),s=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(s),d=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=a()(e=>d("svg",{className:e.className,id:e.id,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,viewBox:"0 -0.75 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,e.desc&&d("desc",{},void 0,e.desc),d("g",{},void 0,d("path",{fill:"inherit",d:"M19.99,9.3125 C19.99,8.104375 19.010625,7.125 17.8025,7.125 C17.213125,7.125 16.67875,7.359375 16.285625,7.73875 C14.8075,6.6725 12.776875,5.98 10.514375,5.886875 L11.491875,1.2875 L14.695625,1.96875 C14.775,2.756875 15.433125,3.375 16.2425,3.375 C17.105625,3.375 17.805,2.675625 17.805,1.8125 C17.805,0.949375 17.105625,0.25 16.2425,0.25 C15.6575,0.25 15.154375,0.575 14.88625,1.050625 L11.228125,0.273125 C11.10625,0.24625 10.98,0.270625 10.875625,0.338125 C10.77125,0.40625 10.698125,0.5125 10.6725,0.63375 L9.556875,5.8825 C7.26,5.960625 5.1975,6.65625 3.7,7.735 C3.306875,7.358125 2.775,7.125 2.1875,7.125 C0.979375,7.125 0,8.104375 0,9.3125 C0,10.20125 0.530625,10.965 1.2925,11.306875 C1.25875,11.524375 1.24,11.745 1.24,11.96875 C1.24,15.334375 5.1575,18.0625 9.99,18.0625 C14.8225,18.0625 18.74,15.334375 18.74,11.96875 C18.74,11.746875 18.721875,11.5275 18.68875,11.31125 C19.455,10.97125 19.99,10.205 19.99,9.3125"})),d("g",{fill:"none",fillRule:"evenodd"},void 0,d("polygon",{points:"0 20 20 20 20 0 0 0"}),d("g",{transform:"translate(0 1)"})))).withConfig({componentId:"ag0m5y-0"})(["fill: ",";"],e=>e.enabled?r.a.admin:Object(i.c)(e).actionIcon)},"./src/reddit/icons/svgs/All/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,r("g",{fillRule:"evenodd"},void 0,r("polygon",{fill:"none",points:"0 20 20 20 20 .001 0 .001"}),r("path",{fill:"inherit",d:"M1.25,17.5 L1.25,7.5 L6.25,7.5 L6.25,17.5 L1.25,17.5 Z M12.49995,17.5001 L7.49995,17.5001 L7.49995,5.0001 L4.99995,5.0001 L9.99995,0.0006 L14.99995,5.0001 L12.49995,5.0001 L12.49995,17.5001 Z M13.75,17.5 L13.75,12.5 L18.75,12.5 L18.75,17.5 L13.75,17.5 Z"}))))},"./src/reddit/icons/svgs/ArrowRight/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r("svg",{className:e.className,viewBox:"0 0 11.4 11.4",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},void 0,r("g",{},void 0,r("path",{fill:"inherit",d:"m11.17929,5.99479c0.08081,-0.19519 0.08081,-0.41599 0,-0.61118c-0.0408,-0.0984 -0.0992,-0.1864 -0.17361,-0.2608l-4.79963,-4.79911c-0.31283,-0.3128 -0.81847,-0.3128 -1.1313,0c-0.31283,0.31279 -0.31283,0.81918 0,1.13118l3.43471,3.43433l-7.66949,0c-0.44244,0 -0.80007,0.3584 -0.80007,0.79999c0,0.44159 0.35763,0.79999 0.80007,0.79999l7.66949,0l-3.43471,3.43433c-0.31283,0.3128 -0.31283,0.81919 0,1.13118c0.15601,0.156 0.36083,0.2344 0.56565,0.2344c0.20482,0 0.40964,-0.0784 0.56565,-0.2344l4.79963,-4.79911c0.07441,-0.0744 0.13281,-0.1624 0.17361,-0.2608"}))))},"./src/reddit/icons/svgs/Chat/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r("svg",{className:e.className,viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},void 0,r("g",{},void 0,r("path",{d:"M18.5 13.17a1.62 1.62 0 0 1-2.35 0c-.31-.3-.48-.73-.48-1.17 0-.44.17-.87.49-1.17a1.7 1.7 0 0 1 2.35 0c.32.3.49.73.49 1.17 0 .44-.17.87-.5 1.17m-4.86-.85c-.03.1-.05.21-.1.32l-.15.28c-.07.1-.14.19-.22.25a1.62 1.62 0 0 1-2.35 0 1.85 1.85 0 0 1-.36-.53c-.05-.1-.07-.21-.1-.32-.01-.1-.03-.21-.03-.32 0-.44.18-.87.5-1.17a1.7 1.7 0 0 1 2.34 0c.32.3.5.73.5 1.17l-.03.32m-5.33 0c-.03.1-.06.21-.11.32-.04.1-.1.2-.15.28-.06.1-.13.19-.21.27a1.67 1.67 0 0 1-2.35 0c-.08-.08-.14-.18-.21-.27a1.85 1.85 0 0 1-.25-.6 1.62 1.62 0 0 1 .47-1.5 1.7 1.7 0 0 1 2.34 0 1.85 1.85 0 0 1 .47.85l.02.33-.02.32M12 0A12.01 12.01 0 0 0 1.99 18.6L.7 22.46a.67.67 0 0 0 .84.84L5.4 22A12.01 12.01 0 0 0 24 12c0-6.62-5.38-12-12-12"}),r("path",{d:"M18.5 13.17a1.62 1.62 0 0 1-2.35 0c-.31-.3-.48-.73-.48-1.17 0-.44.17-.87.49-1.17a1.7 1.7 0 0 1 2.35 0c.32.3.49.73.49 1.17 0 .44-.17.87-.5 1.17",fill:"transparent"}),r("path",{d:"M13.64 12.32c-.03.1-.05.21-.1.32l-.15.28c-.07.1-.14.19-.22.25a1.62 1.62 0 0 1-2.35 0 1.85 1.85 0 0 1-.36-.53c-.05-.1-.07-.21-.1-.32-.01-.1-.03-.21-.03-.32 0-.44.18-.87.5-1.17a1.7 1.7 0 0 1 2.34 0c.32.3.5.73.5 1.17l-.03.32",fill:"transparent"}),r("path",{d:"M8.3 12.32a1.85 1.85 0 0 1-.25.6c-.06.1-.13.19-.21.27a1.67 1.67 0 0 1-2.35 0c-.08-.08-.14-.18-.21-.27a1.85 1.85 0 0 1-.25-.6 1.62 1.62 0 0 1 .47-1.5 1.7 1.7 0 0 1 2.34 0 1.85 1.85 0 0 1 .47.85l.02.33-.02.32",fill:"transparent"}))))},"./src/reddit/icons/svgs/Checkbox/index.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(s),d=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},l=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=a()(e=>i.a.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},e),l("path",{fill:"inherit",d:"M1.66666667,3.34755033 L1.66666667,16.6524497 C1.66666667,17.5781756 2.42112363,18.3333333 3.34755033,18.3333333 L16.6524497,18.3333333 C17.5781756,18.3333333 18.3333333,17.5788764 18.3333333,16.6524497 L18.3333333,3.34755033 C18.3333333,2.42182438 17.5788764,1.66666667 16.6524497,1.66666667 L3.34755033,1.66666667 C2.42182438,1.66666667 1.66666667,2.42112363 1.66666667,3.34755033 Z M0,3.34755033 C0,1.49874933 1.5032506,0 3.34755033,0 L16.6524497,0 C18.5012507,0 20,1.5032506 20,3.34755033 L20,16.6524497 C20,18.5012507 18.4967494,20 16.6524497,20 L3.34755033,20 C1.49874933,20 0,18.4967494 0,16.6524497 L0,3.34755033 Z"}))).withConfig({componentId:"s1ajqegv-0"})(["fill: ",";"],e=>Object(d.c)(e).actionIcon)},"./src/reddit/icons/svgs/CheckboxSelected/index.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>i.a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},e),a("path",{fill:"inherit",d:"M0,3.34755033 C0,1.49874933 1.5032506,0 3.34755033,0 L16.6524497,0 C18.5012507,0 20,1.5032506 20,3.34755033 L20,16.6524497 C20,18.5012507 18.4967494,20 16.6524497,20 L3.34755033,20 C1.49874933,20 0,18.4967494 0,16.6524497 L0,3.34755033 Z M8.50575,15.1995 L15.797625,7.907625 C16.25325,7.452625 16.25325,6.71325 15.797625,6.25825 C15.342,5.802625 14.602625,5.802625 14.147625,6.25825 L7.7295,12.676375 L5.635125,10.327625 C5.20575,9.846375 4.46825,9.805125 3.987625,10.23325 C3.506375,10.662625 3.4645,11.400125 3.89325,11.88075 L6.810125,15.151375 C7.023875,15.39075 7.327,15.531375 7.647625,15.54075 C7.658875,15.54075 7.6695,15.541375 7.68075,15.541375 C7.990125,15.541375 8.287,15.41825 8.50575,15.1995 Z"})))},"./src/reddit/icons/svgs/ChevronUp/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r("svg",{className:e.className,viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"},void 0,r("g",{},void 0,r("polygon",{fill:"inherit",transform:"translate(6.029200, 6.044700) scale(1, -1) translate(-6.029200, -6.044700)",points:"11.0584 4.0602 6.0292 9.0894 1 4.0602 2.0608 3 6.0292 6.9684 9.9982 3"}))))},"./src/reddit/icons/svgs/CircledPlanet/index.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>i.a.createElement("svg",s({className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),a("path",{d:"M15.8286,15.8998 C15.3466,16.3788 12.6326,15.5598 8.5516,11.4798 C4.4706,7.3968 3.6486,4.6858 4.1316,4.2038 C4.3566,3.9788 4.9286,3.9208 5.9126,4.3518 C5.6166,4.5678 5.3306,4.8008 5.0666,5.0658 C5.0536,5.0798 5.0416,5.0948 5.0266,5.1098 C5.5756,6.4268 6.8946,8.4088 9.2596,10.7728 C11.6206,13.1338 13.6046,14.4538 14.9246,15.0028 C14.9376,14.9898 14.9526,14.9778 14.9666,14.9638 C15.2316,14.6988 15.4646,14.4128 15.6786,14.1178 C16.1096,15.1028 16.0526,15.6748 15.8286,15.8998 M16.7526,11.8998 C17.4066,9.5458 16.8136,6.9138 14.9666,5.0658 C13.6436,3.7438 11.8866,3.0148 10.0166,3.0148 C9.3686,3.0148 8.7356,3.1078 8.1286,3.2768 C5.7306,1.7598 3.9176,1.5898 2.7176,2.7898 C1.4036,4.1028 2.0736,6.1918 3.2866,8.1688 C2.6446,10.5128 3.2276,13.1258 5.0666,14.9638 C6.3886,16.2868 8.1456,17.0148 10.0166,17.0148 C10.6536,17.0148 11.2746,16.9178 11.8736,16.7518 C13.0856,17.4938 14.3406,18.0318 15.4316,18.0318 C16.1156,18.0318 16.7366,17.8198 17.2426,17.3138 C18.4416,16.1138 18.2706,14.2988 16.7526,11.8998"})))},"./src/reddit/icons/svgs/Clear/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r("svg",{className:e.className,onClick:e.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40"},void 0,r("path",{d:"M20 2.5C10.3 2.5 2.5 10.3 2.5 20c0 9.7 7.8 17.5 17.5 17.5S37.5 29.7 37.5 20C37.5 10.3 29.7 2.5 20 2.5zM24.2 27.7L20 23.5l-4.2 4.2c-1.1 1.1-2.5 1.1-3.5 0-1.1-1.1-1.1-2.4 0-3.5l4.2-4.2-4.2-4.2c-1.1-1.1-1.1-2.5 0-3.5 1.1-1.1 2.4-1.1 3.5 0l4.2 4.2 4.2-4.2c1.1-1.1 2.5-1.1 3.5 0 1.1 1.1 1.1 2.4 0 3.5L23.5 20l4.2 4.2c1.1 1.1 1.1 2.5 0 3.5C26.7 28.8 25.3 28.8 24.2 27.7z"})))},"./src/reddit/icons/svgs/Close/index.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>i.a.createElement("svg",s({viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),a("polygon",{fill:"inherit",points:"11.649 9.882 18.262 3.267 16.495 1.5 9.881 8.114 3.267 1.5 1.5 3.267 8.114 9.883 1.5 16.497 3.267 18.264 9.881 11.65 16.495 18.264 18.262 16.497"})))},"./src/reddit/icons/svgs/Coin/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,r("path",{d:"M10,1.5 C14.687,1.5 18.5,5.313 18.5,10 C18.5,14.687 14.687,18.5 10,18.5 C5.314,18.5 1.5,14.687 1.5,10 C1.5,5.313 5.314,1.5 10,1.5 Z M7.879,12.122 C6.709,10.952 6.709,9.049 7.879,7.879 C9.012,6.746 10.988,6.746 12.121,7.879 C12.512,8.269 13.145,8.269 13.535,7.879 C13.926,7.489 13.926,6.855 13.535,6.465 C12.591,5.52 11.336,5 10,5 C8.664,5 7.409,5.52 6.465,6.465 C4.516,8.414 4.516,11.586 6.465,13.536 C7.409,14.48 8.664,15 10,15 C11.336,15 12.591,14.48 13.535,13.536 C13.926,13.145 13.926,12.512 13.535,12.122 C13.145,11.731 12.512,11.731 12.121,12.122 C10.988,13.255 9.012,13.255 7.879,12.122 Z"})))},"./src/reddit/icons/svgs/Dropdown/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return d});o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const d=e=>a("svg",{className:e.className,onClick:e.onClick,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,a("g",{},void 0,a("path",{fill:"inherit",d:"M14.1711599,9.3535 L9.99925636,13.529 L5.82735283,9.3535 C5.51262415,9.0385 5.73543207,8.5 6.18054835,8.5 L13.8179644,8.5 C14.2630807,8.5 14.4858886,9.0385 14.1711599,9.3535"})));t.b=i()(d).withConfig({componentId:"r2jmej-0"})(["display: inline-block;fill: ",";height: 20px;margin-left: 2px;width: 20px;vertical-align: middle;"],e=>Object(s.c)(Object.assign({},e,{redditStyle:!e.isSubreddit})).button)},"./src/reddit/icons/svgs/Envelope/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,r("path",{d:"M8.10849995,9.1565 L2.79999995,3.848 C3.17249995,3.6285 3.60499995,3.5 4.06849995,3.5 L16.5685,3.5 C17.0315,3.5 17.464,3.6285 17.8365,3.848 L12.528,9.1565 C11.31,10.375 9.32699995,10.375 8.10849995,9.1565 Z M13.1435,10.3085 L18.452,5 C18.6715,5.3725 18.8,5.805 18.8,6.2685 L18.8,13.7685 C18.8,15.149 17.6805,16.2685 16.3,16.2685 L3.79999995,16.2685 C2.41899995,16.2685 1.29999995,15.149 1.29999995,13.7685 L1.29999995,6.2685 C1.29999995,5.805 1.42849995,5.3725 1.64799995,5 L6.95649995,10.3085 C7.80949995,11.1615 8.92949995,11.588 10.05,11.588 C11.17,11.588 12.2905,11.1615 13.1435,10.3085 Z"})))},"./src/reddit/icons/svgs/Eye/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return i});o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});function i(e){return r("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40"},void 0,r("g",{},void 0,r("path",{d:"M20,8C9.1,8,0.5,14,0.5,21.7h4c0-3.6,3.4-6.9,8.2-8.5C11,15,10,17.4,10,20c0,5.5,4.5,10,10,10s10-4.5,10-10c0-2.6-1-5-2.7-6.8c4.8,1.7,8.2,4.9,8.2,8.5h4C39.5,14,30.9,8,20,8z"})))}},"./src/reddit/icons/svgs/Help/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r("svg",{className:e.className,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},void 0,r("path",{fill:"inherit",d:"M8.622 10.616c.078.08.14.175.183.28.044.105.07.218.07.332 0 .237-.087.456-.253.62-.167.168-.385.255-.622.255-.236 0-.455-.087-.62-.254-.167-.166-.255-.385-.255-.622 0-.114.027-.227.07-.332.044-.105.105-.2.184-.28.087-.088.174-.15.288-.193.324-.13.71-.052.954.193zm-.205-6.242c1.595 0 2.466.807 2.466 1.92 0 .976-.556 1.448-1.238 1.816-.615.317-.83.518-.904.898 0 .004-.034.207-.036.21-.034.126-.087.244-.18.336-.14.14-.323.21-.524.21-.097 0-.192-.017-.29-.052-.087-.035-.165-.088-.235-.158-.14-.14-.22-.333-.22-.533 0-.11.02-.188.074-.348.16-.472.55-.896 1.056-1.17.577-.327.84-.558.84-1.07 0-.42-.357-.715-.987-.715-.496 0-.996.218-1.39.52-.26.2-.62.202-.858-.02l-.05-.05c-.313-.29-.27-.787.075-1.04.603-.444 1.394-.753 2.4-.753zM8 13.25c-2.895 0-5.25-2.355-5.25-5.25S5.105 2.75 8 2.75 13.25 5.105 13.25 8 10.895 13.25 8 13.25M8 1C4.14 1 1 4.14 1 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7"})))},"./src/reddit/icons/svgs/Lock/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r("svg",{className:e.className,id:e.id,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",fill:e.fill},void 0,r("g",{},void 0,r("rect",{x:"7.5",y:"12.5",width:"0",height:"0"}),r("path",{fill:"inherit",d:"M32.5,17.5v-2.6c0-6.8-5.6-12.4-12.4-12.4h-0.2c-6.8,0-12.4,5.6-12.4,12.4v2.6C6.1,17.5,5,18.6,5,20v10c0,5.5,4.5,10,10,10h10c5.5,0,10-4.5,10-10V20C35,18.6,33.9,17.5,32.5,17.5z M12.5,17.5v-2.6c0-4.1,3.3-7.4,7.4-7.4h0.2c4.1,0,7.4,3.3,7.4,7.4v2.6H12.5z"}))))},"./src/reddit/icons/svgs/Moderate/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./src/reddit/constants/colors.ts"),i=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>i("svg",{className:e.className,id:e.id,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,viewBox:"-0.5 -0.5 21 21",xmlns:"http://www.w3.org/2000/svg"},void 0,e.desc&&i("desc",{},void 0,e.desc),i("g",{fillRule:"evenodd"},void 0,i("polygon",{fill:"none",points:".001 20 20 20 20 .001 .001 .001"}),i("path",{fill:"inherit",d:"M1.87525,3.32135 L1.87525,8.96735 C1.87525,13.99585 5.12775,18.44685 9.91875,19.97385 L10.00025,19.99985 L10.08125,19.97385 C14.87225,18.44685 18.12475,13.99585 18.12475,8.96735 L18.12475,3.32135 C14.96075,3.32135 12.09375,2.05385 10.00025,0.00035 C7.90625,2.05385 5.03925,3.32135 1.87525,3.32135"}),i("circle",{cx:"18",cy:"3",r:"5",fill:e.isUnread?"white":"none"}),i("circle",{cx:"18",cy:"3",r:"4",fill:e.isUnread?r.a.orangered:"none"}))))},"./src/reddit/icons/svgs/OriginalContent/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(({className:e})=>r("svg",{className:e,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,r("path",{fill:"inherit",d:"M16.9998,2.9995 C18.1028,2.9995 18.9998,3.8975 18.9998,4.9995 L18.9998,14.9995 C18.9998,16.1025 18.1028,16.9995 16.9998,16.9995 L2.9998,16.9995 C1.8978,16.9995 0.9998,16.1025 0.9998,14.9995 L0.9998,4.9995 C0.9998,3.8975 1.8978,2.9995 2.9998,2.9995 L16.9998,2.9995 Z M13.9648,13.3525 C15.2718,13.3525 16.3188,12.6745 16.8278,11.5665 L15.1818,10.9775 C14.9318,11.4765 14.4528,11.8165 13.8338,11.8165 C13.0158,11.8165 12.3478,11.0575 12.3478,9.9995 C12.3478,8.9525 13.0058,8.1735 13.8438,8.1735 C14.4528,8.1735 14.9218,8.5025 15.1308,8.9615 L16.6968,8.2435 C16.1988,7.2755 15.2108,6.6365 13.9648,6.6365 C12.0588,6.6365 10.5118,8.1335 10.5118,9.9995 C10.5118,11.8755 12.0588,13.3525 13.9648,13.3525 Z M6.6248,13.3635 C8.5408,13.3635 10.0878,11.8755 10.0878,9.9995 C10.0878,8.1335 8.5408,6.6365 6.6248,6.6365 C4.7188,6.6365 3.1718,8.1335 3.1718,9.9995 C3.1718,11.8755 4.7188,13.3635 6.6248,13.3635 Z M6.625,8.1641 C7.562,8.1641 8.262,8.9421 8.262,10.0001 C8.262,11.0481 7.562,11.8361 6.625,11.8361 C5.697,11.8361 4.998,11.0481 4.998,10.0001 C4.998,8.9421 5.697,8.1641 6.625,8.1641 Z"})))},"./src/reddit/icons/svgs/OutboundLink/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,r("path",{d:"M16 10.77a1 1 0 0 0-1 1V14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h2.23a1 1 0 0 0 0-2H6a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3v-2.23a1 1 0 0 0-1-1z"}),r("path",{d:"M17.91 2.62A1 1 0 0 0 17 2h-4a1 1 0 0 0 0 2h1.59L9.38 9.19a1 1 0 1 0 1.41 1.41L16 5.41V7a1 1 0 0 0 2 0V3a1 1 0 0 0-.09-.38z"})))},"./src/reddit/icons/svgs/Patreon/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return i});o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const i="#F96854";t.b=(e=>r("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 96"},void 0,r("g",{fill:"none",fillRule:"evenodd"},void 0,r("rect",{fill:i,x:"0",y:"0",width:"100",height:"96"}),r("path",{fill:"#FFFFFF",d:"M64.1102,0.1004 C44.259,0.1004 28.1086,16.2486 28.1086,36.0986 C28.1086,55.8884 44.259,71.989 64.1102,71.989 C83.9,71.989 100,55.8884 100,36.0986 C100,16.2486 83.9,0.1004 64.1102,0.1004"}),r("polygon",{fill:"#052D49",points:".012 95.988 17.59 95.988 17.59 .1 .012 .1"}))))},"./src/reddit/icons/svgs/Pencil/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,r("title",{id:`${e.title}-title`},void 0,e.title),r("g",{},void 0,r("path",{fill:"inherit",d:"M15.75,7.834625 L12,4.084625 L12.808,3.276625 C13.8435,2.241125 15.5225,2.241125 16.558,3.276625 C17.5935,4.312125 17.5935,5.991125 16.558,7.026625 L15.75,7.834625 Z M11.366,5 L15.116,8.75 L7.25,16.616 L3.5,12.866 L11.366,5 Z M2.5035,13.5 L6.1125,17.109 L1,18.6125 L2.5035,13.5 Z"}))))},"./src/reddit/icons/svgs/Poll/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r("svg",{className:e.className,viewBox:"0 0 16 15",xmlns:"http://www.w3.org/2000/svg"},void 0,r("g",{},void 0,r("path",{"clip-rule":"evenodd",d:"M0 1.5C0 0.671573 0.671573 0 1.5 0H11.5C12.3284 0 13 0.671573 13 1.5C13 2.32843 12.3284 3 11.5 3H1.5C0.671573 3 0 2.32843 0 1.5ZM0 7.5C0 6.67157 0.671573 6 1.5 6H14.5C15.3284 6 16 6.67157 16 7.5C16 8.32843 15.3284 9 14.5 9H1.5C0.671573 9 0 8.32843 0 7.5ZM1.5 12C0.671573 12 0 12.6716 0 13.5C0 14.3284 0.671573 15 1.5 15H7.5C8.32843 15 9 14.3284 9 13.5C9 12.6716 8.32843 12 7.5 12H1.5Z","fill-rule":"evenodd",fill:"inherit"}))))},"./src/reddit/icons/svgs/Popular/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(({className:e})=>r("svg",{className:e,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,r("g",{},void 0,r("polygon",{fill:"none",points:"0 20 20 20 20 0 0 0"}),r("polygon",{fill:"inherit",points:"12.5 3.5 20 3.5 20 11 17.5 8.5 11.25 14.75 7.5 11 2.5 16 0 13.5 7.5 6 11.25 9.75 15 6"}))))},"./src/reddit/icons/svgs/Premium/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./src/app/strings/index.ts"),i=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>i("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,i("title",{},void 0,Object(r.a)("en","gold.premiumCTA.title")),i("path",{d:"M13.535 15.785c-1.678.244-2.883.742-3.535 1.071v-5.113a2 2 0 0 0-2-2H4.217c.044-.487.076-1.016.076-1.629 0-1.692-.489-2.968-.884-3.722L4.8 3.001H10v4.742a2 2 0 0 0 2 2h3.783c.06.67.144 1.248.22 1.742.097.632.182 1.177.182 1.745 0 1.045-.829 2.291-2.65 2.555m5.028-12.249l-2.242-2.242a1 1 0 0 0-.707-.293H4.386a1 1 0 0 0-.707.293L1.436 3.536a1 1 0 0 0-.069 1.337c.009.011.926 1.2.926 3.241 0 1.304-.145 2.24-.273 3.065-.106.684-.206 1.33-.206 2.051 0 1.939 1.499 4.119 4.364 4.534 2.086.304 3.254 1.062 3.261 1.065a1.016 1.016 0 0 0 1.117.004c.011-.007 1.18-.765 3.266-1.069 2.864-.415 4.363-2.595 4.363-4.534 0-.721-.099-1.367-.206-2.051-.128-.825-.272-1.761-.272-3.065 0-2.033.893-3.199.926-3.241a.999.999 0 0 0-.07-1.337"})))},"./src/reddit/icons/svgs/RadioOff/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=i()(e=>a("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,a("g",{fill:"inherit"},void 0,a("path",{d:"M10,1.66666667 C5.39762708,1.66666667 1.66666667,5.39762708 1.66666667,10 C1.66666667,14.6023729 5.39762708,18.3333333 10,18.3333333 C14.6023729,18.3333333 18.3333333,14.6023729 18.3333333,10 C18.3333333,5.39762708 14.6023729,1.66666667 10,1.66666667 Z M10,0 C15.5228475,-1.01453063e-15 20,4.4771525 20,10 C20,15.5228475 15.5228475,20 10,20 C4.4771525,20 6.76353751e-16,15.5228475 0,10 C-6.76353751e-16,4.4771525 4.4771525,1.01453063e-15 10,0 Z"})))).withConfig({componentId:"g052lx-0"})(["fill: ",";"],e=>Object(s.c)(e).actionIcon)},"./src/reddit/icons/svgs/RadioOn/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,r("g",{fill:"inherit"},void 0,r("path",{d:"M10,6.66666667 C8.15905083,6.66666667 6.66666667,8.15905083 6.66666667,10 C6.66666667,11.8409492 8.15905083,13.3333333 10,13.3333333 C11.8409492,13.3333333 13.3333333,11.8409492 13.3333333,10 C13.3333333,8.15905083 11.8409492,6.66666667 10,6.66666667 Z M10,0 C15.5228475,-1.01453063e-15 20,4.4771525 20,10 C20,15.5228475 15.5228475,20 10,20 C4.4771525,20 6.76353751e-16,15.5228475 0,10 C-6.76353751e-16,4.4771525 4.4771525,1.01453063e-15 10,0 Z"}))))},"./src/reddit/icons/svgs/Redditor/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r("svg",{className:e.className,viewBox:"0 0 250 250",xmlns:"http://www.w3.org/2000/svg"},void 0,r("g",{fill:"inherit"},void 0,r("path",{d:"M146.8 142.6h-37.6c-31.1 0-56.5 25.3-56.5 56.5 0 5.2 4.2 9.4 9.4 9.4h131.8c5.2 0 9.4-4.2 9.4-9.4 0-31.2-25.3-56.5-56.5-56.5zM128 130.7c20.1 0 36.4-16.3 36.4-36.4v-9.4c0-20.1-16.3-36.4-36.4-36.4S91.6 64.8 91.6 84.9v9.4c0 20.1 16.3 36.4 36.4 36.4z"}))))},"./src/reddit/icons/svgs/Search/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r("svg",{className:e.className,viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},void 0,r("g",{},void 0,r("path",{d:"M12.4743167,11.1299698 L14.6957506,13.2817166 C15.0924476,13.665969 15.1025359,14.2990536 14.7182834,14.6957506 C14.334031,15.0924476 13.7009464,15.1025359 13.3042494,14.7182834 L11.0486163,12.5334103 C10.0079655,13.2768564 8.73367013,13.7142857 7.35714286,13.7142857 C3.84600096,13.7142857 1,10.8682847 1,7.35714286 C1,3.84600096 3.84600096,1 7.35714286,1 C10.8682847,1 13.7142857,3.84600096 13.7142857,7.35714286 C13.7142857,8.76975383 13.2536226,10.0747029 12.4743167,11.1299698 Z M11.7142857,7.35714286 C11.7142857,4.95057046 9.76371525,3 7.35714286,3 C4.95057046,3 3,4.95057046 3,7.35714286 C3,9.76371525 4.95057046,11.7142857 7.35714286,11.7142857 C9.76371525,11.7142857 11.7142857,9.76371525 11.7142857,7.35714286 Z"}))))},"./src/reddit/icons/svgs/Settings/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r("svg",{className:e.className,id:e.id,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",onClick:e.onClick},void 0,r("g",{fill:"inherit"},void 0,r("path",{d:"M7.03093403,10 C7.03093403,8.36301971 8.36301971,7.03093403 10,7.03093403 C11.6369803,7.03093403 12.9679409,8.36301971 12.9679409,10 C12.9679409,11.6369803 11.6369803,12.969066 10,12.969066 C8.36301971,12.969066 7.03093403,11.6369803 7.03093403,10 M16.4016617,8.49127796 C16.2362761,7.79148295 15.9606334,7.13669084 15.5916096,6.5437777 L16.5231696,5.06768276 C16.7526843,4.70315931 16.7684353,4.22387849 16.5231696,3.83572852 C16.1833977,3.29794393 15.4712269,3.13593351 14.9323172,3.47683044 L13.4562223,4.40839036 C12.8633092,4.03936662 12.208517,3.76259882 11.508722,3.59833825 L11.1250724,1.89947899 C11.0294412,1.47982699 10.7020452,1.12992949 10.2542664,1.02867298 C9.63322641,0.888038932 9.01556168,1.27843904 8.87492764,1.89947899 L8.49127796,3.59833825 C7.79148295,3.76259882 7.13669084,4.03936662 6.54265263,4.40726528 L5.06768276,3.47683044 C4.70315931,3.24731568 4.22387849,3.23156466 3.83572852,3.47683044 C3.29794393,3.81660229 3.13593351,4.5287731 3.47683044,5.06768276 L4.40726528,6.54265263 C4.03936662,7.13669084 3.76259882,7.79148295 3.59721318,8.49127796 L1.89947899,8.87492764 C1.47982699,8.97055879 1.12992949,9.29795485 1.02867298,9.74573365 C0.888038932,10.3667736 1.27843904,10.9844383 1.89947899,11.1250724 L3.59721318,11.508722 C3.76259882,12.208517 4.03936662,12.8633092 4.40726528,13.4573474 L3.47683044,14.9323172 C3.24731568,15.2968407 3.23156466,15.7761215 3.47683044,16.1642715 C3.81660229,16.7020561 4.5287731,16.8640665 5.06768276,16.5231696 L6.54265263,15.5927347 C7.13669084,15.9606334 7.79148295,16.2374012 8.49127796,16.4016617 L8.87492764,18.100521 C8.97055879,18.520173 9.29795485,18.8700705 9.74573365,18.971327 C10.3667736,19.1119611 10.9844383,18.721561 11.1250724,18.100521 L11.508722,16.4016617 C12.208517,16.2374012 12.8633092,15.9606334 13.4562223,15.5916096 L14.9323172,16.5231696 C15.2968407,16.7526843 15.7749964,16.7684353 16.1631464,16.5231696 C16.7020561,16.1833977 16.8629414,15.4712269 16.5231696,14.9323172 L15.5916096,13.4562223 C15.9606334,12.8633092 16.2362761,12.208517 16.4016617,11.508722 L18.100521,11.1250724 C18.520173,11.0294412 18.8700705,10.7020452 18.971327,10.2542664 C19.1119611,9.63322641 18.721561,9.01556168 18.100521,8.87492764 L16.4016617,8.49127796 Z"}))))},"./src/reddit/icons/svgs/Snoo/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./src/reddit/constants/colors.ts"),i=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e.className},void 0,i("g",{},void 0,i("circle",{fill:r.a.snoo,cx:"10",cy:"10",r:"10"}),i("path",{fill:"#FFF",d:"M16.67,10A1.46,1.46,0,0,0,14.2,9a7.12,7.12,0,0,0-3.85-1.23L11,4.65,13.14,5.1a1,1,0,1,0,.13-0.61L10.82,4a0.31,0.31,0,0,0-.37.24L9.71,7.71a7.14,7.14,0,0,0-3.9,1.23A1.46,1.46,0,1,0,4.2,11.33a2.87,2.87,0,0,0,0,.44c0,2.24,2.61,4.06,5.83,4.06s5.83-1.82,5.83-4.06a2.87,2.87,0,0,0,0-.44A1.46,1.46,0,0,0,16.67,10Zm-10,1a1,1,0,1,1,1,1A1,1,0,0,1,6.67,11Zm5.81,2.75a3.84,3.84,0,0,1-2.47.77,3.84,3.84,0,0,1-2.47-.77,0.27,0.27,0,0,1,.38-0.38A3.27,3.27,0,0,0,10,14a3.28,3.28,0,0,0,2.09-.61A0.27,0.27,0,1,1,12.48,13.79Zm-0.18-1.71a1,1,0,1,1,1-1A1,1,0,0,1,12.29,12.08Z"}))))},"./src/reddit/icons/svgs/SnooFacepalm/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=(e=>r("svg",{className:e.className,viewBox:"0 0 24 21",xmlns:"http://www.w3.org/2000/svg"},void 0,r("path",{fill:"#000",d:"M5.1 3.2c.5.3 1.1.3 1.7.1 1.4-.5 2.9-.9 4.5-.7 1.2.2 1.8.2 2.3.4 1 .4 2 .9 3 1.4.5.3 1 .8 1.5 1.2.2.2.5.4.7.4 2.4-.1 4.1 1 5 3.3.8 2-.5 4.5-2 5.1-.3.1-.6.4-.7.7-.6 2-1.9 3.3-3.7 4.2-.1.1-.2.1-.3.1-.7.3-3.9 1.7-7.9 1-4.8-.9-9.3-4.6-8.7-10.2.1-1 0-1.9-.3-2.9-.2-.2-.2-.5-.2-.8.1-2.7 2.9-4.6 5.1-3.3z"}),r("path",{fill:"#FFF",d:"M.7 7.5c.4 1.3.7.5.8.5-.1.6-.3 1.3-.3 1.9-.3 2.4.3 4.6 1.9 6.3 3.7 4 8.5 4.6 13.2 2.7 1.2-.5 2.6-1.7 3.3-2.8.8-1.4 1.3-2.8 1.2-4.4 0-.1 0-.2.1-.4.1.4.3.8.3 1.1.1.4 0 .8 0 1.3 1.4-.5 2.2-2.3 1.8-3.9-.5-2-2.1-3.3-3.9-3 .9.8 1.6 3.3 1.4 3.6-1.5-3.8-4.4-6.1-8.2-6.8-3.8-.8-7.2.4-10.1 3.2.6-1.2 1.7-2 2.9-2.9-.6-.1-1-.3-1.4-.3-1.8.1-3.5 2.1-3 3.9z"}),r("path",{fill:"#000",d:"M7.2 16.7c1.4.6 2.9.9 4.4 1 .6 0 1.3-.4.3-.5-1.2-.1-2.4-.3-3.5-.8-.3-.1-.7-.1-1 0-.1 0-.5.2-.2.3zM7.3 13.4c-.1 0-.2-.1-.3-.2-.1-.2-.2-.4-.4-.6-.6-.6-1.4-1.1-2.2-.9-.3.1-.5.2-.8.2h-.5c0-.1-.1-.3 0-.4.2-.2.5-.3.6-.4 1.6-.6 3.7.6 3.9 1.7v.3c0 .3-.2.3-.3.3zm9.8 1.1c-.1 0-.3 0-.4-.1-.1 0-.1-.1-.2-.1-.7-.5-1.5-.5-2.3 0-.2.1-.5.2-.7.3 0-.2 0-.4.1-.6.6-.6 1.7-.8 2.7-.5.3.1.7.5.9.8.1 0 0 .2-.1.2z"}),r("path",{fill:"#000",d:"M16.1 20.7c-2-.2-2.7-.9-2.9-2.5-.1-.9-.3-1.6-.7-2.4-.4-.9-.5-1.4-1.5-1.7-1.3-.5-1.9-1.6-2-2.6 0-.8.2-1.7.8-2.3 1.1-1.1 2.9-1.1 4.2-.5 1.3.6 3.8 3.2 4.3 4.5 1.6 4.2.8 7.2-2.2 7.5zM12 5.6c.1.2.1.7.6.5.4-.1.4-.6-.2-1.6-.3-.6-.5-1.6 0-2.2 1-1.3 2.3-1 3.5-.7.4.1 1.5.3 1.5.8 0 .7.6 1.8 1.2 2.2 1.2 1 3.5-.1 3.5-1.8 0-1.5-1.1-2.7-2.5-2.6-.6 0-1.6.7-2 1.2-.6-.2-1.2-.4-1.9-.5-1.3-.3-2.6-.3-3.7.7-1.2 1.1-.8 2.9 0 4-.1-.1-.2-.2-.3-.4.1.1.2.3.3.4.1.1-.6-.9 0 0z"}),r("path",{fill:"#FFF",d:"M21.3 3.1c-.2.5-.6.9-1 1-.4.1-.9 0-1.3-.3s-.7-.7-.7-1.1c0-.2 0-.8.8-1.4.5-.4 1.4 0 1.9.4.2.4.5.8.3 1.4zM18 14.6c-.5-2.5-3.8-6.4-6.8-5.3-1.4.5-1.7 2.4-.8 3.5.7.8 2.1 1.2 3 1.6-.3 0-.6.1-.9 0 1.2 1.6.6 4.7 2.8 5.2 2.5.7 3.4-1.7 2.7-5z"})))},"./src/reddit/icons/svgs/Wordmark/index.tsx":function(e,t,o){"use strict";o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o("./src/reddit/constants/colors.ts"),s=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),a=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});t.a=Object(r.withTheme)(e=>a("svg",{className:e.className,viewBox:"0 0 55 17.44"},void 0,a("g",{fill:Object(s.c)(e).bodyText},void 0,a("circle",{fill:i.a.snoo,cx:"45.77",cy:"3.33",r:"2.05"}),a("path",{fill:"inherit",d:"M16.73,12.05a1.44,1.44,0,0,0,1.54-1.48,4.91,4.91,0,0,0-.1-0.83,5.66,5.66,0,0,0-5.34-4.61c-3,0-5.51,2.76-5.51,6.15s2.47,6.15,5.51,6.15a5.47,5.47,0,0,0,4.26-1.78,1.19,1.19,0,0,0-.19-1.77,1.25,1.25,0,0,0-1.53.16,3.78,3.78,0,0,1-2.54,1.09,3.42,3.42,0,0,1-3.14-3.08h7ZM12.82,7.44a3.3,3.3,0,0,1,3,2.56h-6A3.3,3.3,0,0,1,12.82,7.44Z"}),a("path",{fill:"inherit",d:"M7.44,6.32a1.15,1.15,0,0,0-1-1.14A4.46,4.46,0,0,0,2.31,6.69V6.54A1.15,1.15,0,1,0,0,6.54V16a1.18,1.18,0,0,0,1.08,1.2A1.15,1.15,0,0,0,2.31,16V11.15A3.51,3.51,0,0,1,6.15,7.47H6.38A1.15,1.15,0,0,0,7.44,6.32Z"}),a("path",{fill:"inherit",d:"M46.92,7.56a1.15,1.15,0,0,0-2.31,0V16a1.15,1.15,0,1,0,2.31,0V7.56Z"}),a("path",{fill:"inherit",d:"M29.87,1.15A1.15,1.15,0,0,0,28.72,0h0a1.15,1.15,0,0,0-1.15,1.15V6.31a4,4,0,0,0-2.95-1.18c-3,0-5.51,2.76-5.51,6.15s2.47,6.15,5.51,6.15a4.08,4.08,0,0,0,3-1.19A1.15,1.15,0,0,0,29.87,16V1.15Zm-5.26,14c-1.77,0-3.21-1.72-3.21-3.85s1.43-3.85,3.21-3.85,3.21,1.72,3.21,3.85S26.39,15.13,24.62,15.13Z"}),a("path",{fill:"inherit",d:"M41.92,1.15A1.15,1.15,0,0,0,40.77,0h0a1.15,1.15,0,0,0-1.15,1.15V6.31a4,4,0,0,0-2.95-1.18c-3,0-5.51,2.76-5.51,6.15s2.47,6.15,5.51,6.15a4.08,4.08,0,0,0,3-1.19A1.15,1.15,0,0,0,41.92,16V1.15Zm-5.26,14c-1.77,0-3.21-1.72-3.21-3.85s1.43-3.85,3.21-3.85,3.21,1.72,3.21,3.85S38.44,15.13,36.67,15.13Z"}),a("path",{fill:"inherit",d:"M52.91,16V7.44h1a1,1,0,0,0,1.06-1,1,1,0,0,0-1-1.09H52.91V3.76a1.18,1.18,0,0,0-1.08-1.19,1.15,1.15,0,0,0-1.23,1.15V5.38h-1a1,1,0,0,0-1.06,1,1,1,0,0,0,1,1.09h1V16a1.15,1.15,0,0,0,1.15,1.15h0A1.15,1.15,0,0,0,52.91,16Z"}))))},"./src/reddit/index.tsx":function(e,t,o){"use strict";o.r(t);o("./src/polyfill.ts");var n,r=o("./src/lib/performanceTimings/index.tsx"),i=o("./node_modules/@r/google-tag-manager/compiled.js"),s=o("./src/config.ts"),a=o("./node_modules/history/index.js"),d=o("./node_modules/js-cookie/src/js.cookie.js"),c=o.n(d),l=o("./node_modules/react/index.js"),u=o.n(l),p=o("./node_modules/react-router-redux/es/index.js"),m=o("./node_modules/redux-thunk/lib/index.js"),f=o.n(m),h=o("./node_modules/request-idle-callback/index.js"),g=o("./src/app/strings/index.ts"),b=o("./node_modules/history/createBrowserHistory.js"),v=o.n(b),y=o("./src/lib/browser/isIncognito.ts"),x=o("./src/lib/constants/index.ts"),O=o("./src/lib/extractQueryParams/index.ts"),C=o("./src/lib/filterQueryParams/index.ts"),w=o("./src/lib/initializeClient/index.tsx"),j=o("./src/lib/matchRoute/index.ts"),S=o("./src/lib/performance.js"),P=o("./src/lib/safeJSONParse/index.ts"),M=o("./src/reddit/customMiddleware/gqlContext.ts"),I=o("./src/reduxMiddleware/apiContext.ts"),k=o("./src/telemetry/index.ts"),N=o("./src/telemetry/models/Timer.ts"),E=o("./src/reddit/actions/apiRequestHeaders.ts"),T=o("./src/reddit/actions/chat/promo.ts"),L=o("./src/reddit/actions/chat/sendbirdProxy.ts"),_=o("./src/reddit/actions/chat/unreadCount.ts"),F=o("./src/lib/makeApiRequest/index.ts"),R=o("./src/lib/omitHeaders/index.ts"),A=o("./src/reddit/constants/headers.ts"),$=o("./src/reddit/actions/toaster.ts");!function(e){e.Success="SUCCESS",e.AlreadyVerified="EMAIL_ALREADY_VERIFIED",e.WrongUser="EMAIL_VERIFY_WRONG_USER",e.Error="EMAIL_VERIFY_ERROR"}(n||(n={}));var D=o("./src/reddit/models/Toast/index.ts"),B=o("./src/reddit/selectors/user.ts");const H=e=>async(t,o,{apiContext:r})=>{const i=await((e,t)=>Object(F.c)(Object(R.a)(e,[A.a]),{method:x.jb.POST,endpoint:`${e.apiUrl}/api/v1/verify_email/${t}`,data:{}}))(r(),e);if(i.ok&&i.body&&i.body.success)return n.Success;switch(i.body.reason){case n.AlreadyVerified:return n.AlreadyVerified;case n.WrongUser:return n.WrongUser;default:return n.Error}};var Q,U=o("./src/reddit/actions/monthsToMinutes/homeFeed.ts"),z=o("./src/reddit/actions/notifications/loader.ts"),G=o("./src/reddit/actions/nps.ts"),V=o("./src/reddit/actions/platform.ts"),W=o("./src/reddit/actions/session.ts"),q=o("./src/reddit/actions/users.ts"),Z=o("./node_modules/react-redux/es/index.js"),K=o("./node_modules/react-router/es/index.js"),Y=o("./node_modules/reselect/lib/index.js"),X=o("./bundled-modules/styled-components/styled-components.min.js"),J=o.n(X),ee=(o("./src/reddit/components/Root/redesignFont.less"),o("./assets/fonts/IBMPlexSans/font.less"),o("./assets/fonts/NotoMono/font.less"),o("./assets/fonts/NotoSans/font.less"),o("./src/higherOrderComponents/makeAsync.tsx")),te=o("./src/lib/loadWithRetries/index.ts"),oe=o("./src/reddit/selectors/runTimeEnvVars.ts"),ne=(Q="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,n){var r=e&&e.defaultProps,i=arguments.length-3;if(t||0===i||(t={}),t&&r)for(var s in r)void 0===t[s]&&(t[s]=r[s]);else t||(t=r||{});if(1===i)t.children=n;else if(i>1){for(var a=Array(i),d=0;d<i;d++)a[d]=arguments[d+3];t.children=a}return{$$typeof:Q,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const re=Object(Y.createStructuredSelector)({shouldEnable:e=>Object(oe.b)(e)||Object(B.D)(e)}),ie=Object(Z.connect)(re),se=()=>ne(l.Fragment,{});class ae extends u.a.Component{constructor(e){super(e),this.state={component:se}}componentWillMount(){this.props.shouldEnable&&this.loadAdminPanel()}componentWillReceiveProps(e){e.shouldEnable&&ae.adminPanel===se?this.loadAdminPanel():this.props.shouldEnable&&!e.shouldEnable&&this.setComponent(se)}loadAdminPanel(){if(ae.adminPanel===se){const e=Object(ee.a)({ErrorComponent:se,getComponent:()=>Object(te.a)(()=>o.e("AdminPanel").then(o.bind(null,"./src/reddit/components/AdminPanel/index.tsx")).then(e=>e.default)),LoadingComponent:se});this.setComponent(e)}}render(){const e=this.state.component;return ne(e,{})}setComponent(e){ae.adminPanel=e,this.setState({component:e})}}ae.adminPanel=se;var de=ie(ae),ce=o("./src/lib/doubleclickForPublishers/index.ts");var le=class extends u.a.Component{constructor(e){super(e),Object(ce.f)()}shouldComponentUpdate(){return!1}render(){return null}},ue=o("./node_modules/lodash/isEqual.js"),pe=o.n(ue),me=o("./node_modules/lodash/omit.js"),fe=o.n(me),he=o("./node_modules/lodash/throttle.js"),ge=o.n(he),be=o("./src/lib/classNames/index.ts"),ve=o("./src/lib/fastdom/index.ts"),ye=o("./src/lib/isSimpleClick/index.ts"),xe=o("./src/reddit/actions/header.ts"),Oe=o("./src/reddit/actions/multireddit.ts"),Ce=o("./src/reddit/actions/subreddit.ts"),we=o("./src/reddit/actions/subscription.ts"),je=o("./src/lib/localStorageAvailable/index.ts"),Se=o("./src/reddit/actions/modal.ts"),Pe=Object(ee.a)({ErrorComponent:()=>null,LoadingComponent:()=>null,getComponent:()=>o.e("BadgePurchaseModal").then(o.bind(null,"./src/reddit/components/Badges/PurchaseModal/index.tsx")).then(e=>e.default)}),Me=o("./src/reddit/components/BannedUserList/AddBannedUserModal/index.tsx");const Ie=()=>null;var ke=Object(ee.a)({ErrorComponent:Ie,getComponent:()=>Object(te.a)(()=>o.e("GlobalModalContainer").then(o.bind(null,"./src/reddit/components/ConsumersBetaModal/_ConsumersBetaModal.tsx"))).then(e=>e.default),LoadingComponent:Ie});var Ne=Object(ee.a)({ErrorComponent:()=>null,LoadingComponent:()=>null,getComponent:()=>Promise.all([o.e("vendors~CoinsPurchaseModal~EconomicsEntryPointsCommentFlatlistSupportCTA~EconomicsEntryPointsPostFla~fffc5772"),o.e("EconomicsEntryPointsCommentFlatlistSupportCTA~EconomicsEntryPointsPostFlatlistSupportCTA~EconomicsSu~c5c59906"),o.e("EconomicsSupportPaymentModal")]).then(o.bind(null,"./src/reddit/components/Economics/Support/PaymentModal/index.tsx")).then(e=>e.default)});const Ee=()=>null;var Te=Object(ee.a)({ErrorComponent:Ee,getComponent:()=>Object(te.a)(()=>Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("vendors~GiftsEditProfile~GiftsGiftCreation~GiftsGiftEdit~GiftsShipping~HarbergerTaxManageModal~Moder~43e8895f"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("ModerationPages")]).then(o.bind(null,"./src/reddit/components/ManageChatRoomsModal/_ManageChatRoomsModal.tsx"))).then(e=>e.default),LoadingComponent:Ee});const Le=()=>null;var _e=Object(ee.a)({ErrorComponent:Le,getComponent:()=>Object(te.a)(()=>o.e("GlobalModalContainer").then(o.bind(null,"./src/reddit/components/ModBetaModal/_ModBetaModal.tsx"))).then(e=>e.default),LoadingComponent:Le}),Fe=o("./src/reddit/components/MutedUserList/MuteUserModal/index.tsx");var Re=Object(ee.a)({getComponent:()=>Object(te.a)(()=>o.e("NotificationsPrePromptLoader").then(o.bind(null,"./src/reddit/components/NotificationsPrePrompt/index.tsx"))).then(e=>e.default),ErrorComponent:()=>null,LoadingComponent:()=>null});const Ae=()=>null;var $e=Object(ee.a)({ErrorComponent:Ae,getComponent:()=>Object(te.a)(()=>Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("vendors~GiftsEditProfile~GiftsGiftCreation~GiftsGiftEdit~GiftsShipping~HarbergerTaxManageModal~Moder~43e8895f"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("ModerationPages")]).then(o.bind(null,"./src/reddit/components/RemovalReasons/AddRemovalReasonModal/_AddRemovalReasonModal.tsx"))).then(e=>e.default),LoadingComponent:Ae});var De=Object(ee.a)({getComponent:()=>Object(te.a)(()=>o.e("SpezModalLoader").then(o.bind(null,"./src/reddit/components/SpezModal/index.tsx"))).then(e=>e.default),ErrorComponent:()=>null,LoadingComponent:()=>null}),Be=o("./src/higherOrderComponents/asModal.tsx"),He=o("./src/reddit/actions/structuredStyles.ts"),Qe=o("./src/reddit/components/ModalStyledComponents/index.tsx"),Ue=o("./src/reddit/constants/modals.ts"),ze=o("./src/reddit/controls/TextButton/index.tsx"),Ge=o("./src/reddit/layout/twoCol/ExpandLeft/index.tsx"),Ve=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const We=Object(Y.createStructuredSelector)({language:B.M}),qe=Object(Z.connect)(We,(e,{subredditId:t})=>({closeModal:()=>{e(Object(Se.i)(Ue.a.BLADE_NIGHTMODE)),e(Object(He.r)())},openBlade:()=>{e(Object(He.q)(t))}}));var Ze=Object(Be.a)(qe(e=>Ve(Qe.c,{},void 0,Ve(Qe.g,{},void 0,Ve(Ge.b,{},void 0,Ve(Qe.k,{},void 0,Object(g.a)(e.language,"structuredStyles.modal.nightmode.title")),Ve(ze.a,{onClick:e.closeModal},void 0,Ve(Qe.b,{})))),Ve(Qe.h,{},void 0,Ve(Qe.i,{},void 0,Object(g.a)(e.language,"structuredStyles.modal.nightmode.description"))),Ve(Qe.e,{},void 0,Ve(Qe.a,{onClick:e.closeModal,"data-redditstyle":!0},void 0,Object(g.a)(e.language,"structuredStyles.buttons.cancel")),Ve(Qe.l,{onClick:e.openBlade,"data-redditstyle":!0},void 0,Object(g.a)(e.language,"structuredStyles.buttons.continue")))))),Ke=o("./src/reddit/actions/authorFlair.ts"),Ye=o("./src/reddit/actions/userFlair.ts"),Xe=o("./src/reddit/components/FlairPickerTitle/index.tsx"),Je=o("./src/reddit/components/FlairPickerWrapper/index.tsx"),et=o("./src/reddit/components/FlairPreview/index.tsx"),tt=o("./src/reddit/components/FlairSearch/index.tsx"),ot=o("./src/reddit/components/TrackingHelper/index.tsx"),nt=o("./src/reddit/constants/flair.ts"),rt=o("./src/reddit/controls/Button/index.tsx"),it=o("./src/reddit/controls/CheckboxWithLabel/index.tsx"),st=o("./src/reddit/helpers/styles/mixins/fonts.tsx"),at=o("./src/reddit/layout/row/Inline/index.tsx"),dt=o("./src/reddit/layout/row/RightAlign/index.tsx"),ct=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),lt=o("./src/reddit/models/Flair/index.ts"),ut=o("./src/reddit/models/User/index.ts"),pt=o("./src/reddit/selectors/authorFlair.ts"),mt=o("./src/reddit/selectors/moderatorPermissions.ts"),ft=o("./src/reddit/selectors/telemetry.ts"),ht=o("./src/reddit/selectors/userFlair.ts"),gt=o("./src/reddit/components/UserFlairPicker/index.m.less"),bt=o.n(gt),vt=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const yt=J()(at.a).withConfig({componentId:"s1jp43ua-0"})(["border: none;padding: 16px;"]),xt=J()(rt.l).withConfig({componentId:"s1jp43ua-1"})(["color: ",";"],e=>Object(ct.c)(e).actionIcon),Ot=J.a.div.withConfig({componentId:"s1jp43ua-2"})(["","color: ",";"],st.titleFontH5,e=>Object(ct.c)(e).bodyText);const Ct=Object(Z.connect)(()=>Object(Y.createStructuredSelector)({authorFlair:pt.b,currentUser:B.j,inContextAuthor:pt.c,isMod:(e,t)=>!!Object(mt.g)(e,t),language:B.M,userFlairData:ht.b}),(e,t)=>({activeFlairChanged:(o,n,r,i)=>e(Object(Ye.o)(o,n,r,i.username,t.subredditId)),closeModal:()=>e(Object(Ke.b)({username:null,subredditId:null}))}))(class extends u.a.Component{constructor(e){super(e),this.getTrackingNoun=((e,t)=>this.props.isMod?e:t),this.track=(e=>this.props.sendEvent(t=>({source:"user_flair_picker",action:"click",noun:e,subreddit:Object(ft.subredditById)(t,this.props.subredditId)}))),this.setSelectedFlair=((e,t)=>this.setState({previewFlair:e,selectedTemplateId:t})),this.onApply=(()=>{const e=this.props,t=this.state;e.activeFlairChanged(t.previewFlair,t.selectedTemplateId,t.showFlair,e.inContextAuthor),e.closeModal(),this.track(this.getTrackingNoun("flairadd_mod","flairadd_user"))}),this.onClear=(()=>this.setSelectedFlair(null,null)),this.onChange=(e=>this.setState({showFlair:e}));const t=e.authorFlair,o=e.userFlairData.displaySettings.isUserEnabled;this.state={previewFlair:t,showFlair:o,selectedTemplateId:t&&t.templateId?t.templateId:null}}render(){const e=this.props,t=this.state,o=e.userFlairData,n=e.subredditId,r=o.permissions.canUserChange,i=o.permissions.canUserChange,s=o.templates,a=o.templateIds;let d;e.currentUser&&(d=e.inContextAuthor&&Object(ut.f)(e.currentUser)===e.inContextAuthor.username);const c=!!(t.previewFlair&&Object(lt.j)(t.previewFlair).length>nt.b);return vt(Je.a,{},void 0,vt(Xe.a,{onClosePressed:e.closeModal,title:Object(g.a)(e.language,"flair.userFlairModalTitle")}),vt(et.a,{flair:t.previewFlair,flairTemplateType:lt.c.UserFlair,language:e.language,placeholderText:Object(g.a)(e.language,"flair.userFlairPlaceholder")}),i&&vt(tt.a,{appliedFlair:t.previewFlair,flairTemplateType:lt.c.UserFlair,subredditId:n,templates:s,templateIds:a,language:e.language,onChange:this.setSelectedFlair,selectedTemplateId:t.selectedTemplateId}),d&&vt(yt,{},void 0,vt(it.a,{isSelected:t.showFlair,onClick:()=>this.onChange(!t.showFlair),text:vt(Ot,{},void 0,Object(g.a)(e.language,"flair.showMyFlair"))})),vt(yt,{},void 0,vt(dt.a,{className:bt.a.buttonsRow},void 0,vt(rt.d,{disabled:c,onClick:this.onApply,"data-redditstyle":!0},void 0,Object(g.a)(e.language,"flair.apply")),r&&vt(xt,{onClick:this.onClear},void 0,Object(g.a)(e.language,"flair.clear")))))}});var wt=Object(Be.a)(Object(ot.b)(Ct)),jt=o("./src/reddit/selectors/activeModalId.ts"),St=o("./src/reddit/selectors/notificationPrefs.ts"),Pt=o("./src/reddit/selectors/platform.ts"),Mt=o("./src/reddit/selectors/removalReasons.ts"),It=o("./src/reddit/selectors/subredditModeration.ts"),kt=o("./src/reddit/constants/cookie.ts"),Nt=o("./src/reddit/constants/spezModal.ts"),Et=o("./src/reddit/featureFlags/index.ts"),Tt=o("./src/reddit/actions/monthsToMinutes.ts"),Lt=o("./src/reddit/controls/Typography/index.tsx"),_t=o("./src/reddit/helpers/trackers/monthsToMinutes.ts"),Ft=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Rt=Object(Y.createStructuredSelector)({language:B.M}),At=Object(Z.connect)(Rt,e=>({onClose:()=>e(Object(Tt.p)())})),$t=J()(Qe.c).withConfig({componentId:"s1up4f3j-0"})(["display: flex;height: 300px;max-width: 500px;width: 500px;"]),Dt=J.a.img.withConfig({componentId:"s1up4f3j-1"})(["height: auto;width: 126px;"]),Bt=J.a.div.withConfig({componentId:"s1up4f3j-2"})(["display: flex;flex-direction: column;color: ",";flex: 1 1 auto;padding: 26px;"],e=>Object(ct.c)(e).bodyText),Ht=J()(Lt.a).withConfig({componentId:"s1up4f3j-3"})(["margin-top: 16px;",""],st.bodyFontH4),Qt=J()(rt.d).withConfig({componentId:"s1up4f3j-4"})(["margin: auto auto 0 auto;width: 160px;"]);var Ut=Object(Be.a)(At(Object(ot.b)(class extends u.a.Component{constructor(){super(...arguments),this.onClose=(()=>{this.props.onClose(),this.props.sendEvent(Object(_t.h)())})}componentDidMount(){this.props.sendEvent(Object(_t.i)())}render(){return Ft($t,{},void 0,Ft(Dt,{src:`${s.a.assetPath}/img/banner/welcome-modal.png`}),Ft(Bt,{},void 0,Ft(Lt.c,{},void 0,this.str("title")),Ft(Ht,{},void 0,this.str("body1")),Ft(Ht,{},void 0,this.str("body2")),Ft(Qt,{onClick:this.onClose},void 0,this.str("button"))))}str(e){return Object(g.a)(this.props.language,`monthsToMinutes.welcomeModal.${e}`)}}))),zt=o("./src/reddit/helpers/localStorage/index.ts"),Gt=o("./src/reddit/helpers/toggleBodyScroll/index.ts"),Vt=o("./src/reddit/selectors/monthsToMinutes.ts"),Wt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},qt=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Zt=Object(Y.createStructuredSelector)({anyModalIsOpen:e=>!!e.activeModalId,authorContext:pt.c,badgePurchaseModalIsOpen:Object(jt.b)(Ue.a.BADGE_PURCHASE),banContext:It.f,banModalIsOpen:Object(jt.b)(Ue.a.BAN_USER),bladeNightmodeModalIsOpen:Object(jt.b)(Ue.a.BLADE_NIGHTMODE),chatroomSettingsModalIsOpen:Object(jt.b)(Ue.a.SUBREDDIT_CHAT_SETTINGS),consumersBetaModalIsOpen:Object(jt.b)(Ue.a.BETA_CONSUMER),createChatroomModalIsOpen:Object(jt.b)(Ue.a.CREATE_SUBREDDIT_CHAT),currentBadgePurchase:e=>e.products.currentlyPurchasing,currentPaymentTarget:e=>e.economics.currentPaymentTarget,economicsSupportPaymentModalIsOpen:Object(jt.b)(Ue.a.ECONOMY_SUPPORT_MODAL),editChatroomModalIsOpen:Object(jt.b)(Ue.a.EDIT_SUBREDDIT_CHAT),deleteChatroomModalIsOpen:Object(jt.b)(Ue.a.DELETE_SUBREDDIT_CHAT),introModalFeatureEnabled:e=>Et.d.introModal(e),isOverlayOpen:Pt.h,manageChatroomModalIsOpen:Object(jt.b)(Ue.a.MANAGE_SUBREDDIT_CHAT),modBetaModalIsOpen:Object(jt.b)(Ue.a.MOD_BETA),moderatorPermissions:e=>{const t=Object(Pt.d)(e);if(t)return e.moderatingSubreddits[t]},muteContext:It.B,muteModalIsOpen:Object(jt.b)(Ue.a.MUTE_USER),notificationsPrePromptIsOpen:St.c,removalReasonContext:Mt.b,removalReasonModalIsOpen:Object(jt.b)(Ue.a.ADD_REMOVAL_REASON),spezModalEnabled:Et.d.spezModal,spezModalIsOpen:Object(jt.b)(Ue.a.SPEZ_MODAL),subredditId:Pt.d,userFlairModalIsOpen:Object(jt.b)(Ue.a.USER_FLAIR_MODAL_ID),userHasSeenRedesignModal:B.u,userInRedesignBeta:B.A,userIsLoggedIn:B.F,userIsMod:B.G,userIsNew:B.H,welcomeModalIsOpen:Vt.J});var Kt=Object(Z.connect)(Zt,e=>({markRedesignModalAsClosed:()=>e(Object(Se.k)()),toggleBanModal:()=>e(Object(Se.i)(Ue.a.BAN_USER)),toggleBladeNightmodeModal:()=>e(Object(Se.i)(Ue.a.BLADE_NIGHTMODE)),toggleConsumersBetaModal:()=>e(Object(Se.i)(Ue.a.BETA_CONSUMER)),toggleModBetaModal:()=>e(Object(Se.i)(Ue.a.MOD_BETA)),toggleMuteModal:()=>e(Object(Se.i)(Ue.a.MUTE_USER)),toggleRemovalReasonsModal:()=>e(Object(Se.i)(Ue.a.ADD_REMOVAL_REASON)),toggleSpezModal:()=>e(Object(Se.i)(Ue.a.SPEZ_MODAL))}))(Object(ot.b)(class extends u.a.Component{constructor(e){super(e),this.state={domReady:!1,spezModalShown:!1}}checkModBetaModal(){var e=this.props;const t=e.anyModalIsOpen,o=e.introModalFeatureEnabled,n=e.toggleModBetaModal,r=e.userHasSeenRedesignModal,i=e.userIsMod;if(o&&i&&!t&&!r&&!Object(zt.k)(Ue.a.REDESIGN_MODAL))return n()}checkConsumersBetaModal(){var e=this.props;const t=e.anyModalIsOpen,o=e.introModalFeatureEnabled,n=e.markRedesignModalAsClosed,r=e.toggleConsumersBetaModal,i=e.userHasSeenRedesignModal,s=e.userIsLoggedIn,a=e.userIsNew;if(o&&!t&&!i&&s&&!Object(zt.k)(Ue.a.REDESIGN_MODAL)){if(!a)return r();n()}}checkSpezModal(){if(!this.props.spezModalEnabled||this.state.spezModalShown)return!1;try{const t=Date.now(),o=localStorage.getItem(Nt.f);return!((o?parseInt(o,0):0)>Nt.d||(localStorage.setItem(Nt.f,t.toString()),!localStorage.getItem(Nt.f)||(this.setState({spezModalShown:!0}),this.props.toggleSpezModal(),0)))}catch(e){return!1}}conditionalModalCheck(){if(!Object(je.a)())return;{const e=c.a.get(kt.a);e&&c.a.remove(kt.a,{domain:s.a.cookieDomain});const t=Object(zt.k)(Ue.a.MOD_BETA);t&&Object(zt.s)(Ue.a.MOD_BETA);const o=Object(zt.k)(Ue.a.ALPHA_CONSUMER);o&&Object(zt.s)(Ue.a.ALPHA_CONSUMER);const n=Object(zt.k)(Ue.a.BETA_CONSUMER);n&&Object(zt.s)(Ue.a.BETA_CONSUMER),(e||t||o||n)&&Object(zt.F)(Ue.a.REDESIGN_MODAL,!0)}var e=this.props;const t=e.userHasSeenRedesignModal,o=e.markRedesignModalAsClosed,n=Object(zt.k)(Ue.a.REDESIGN_MODAL);!t&&n?o():t&&!n&&Object(zt.F)(Ue.a.REDESIGN_MODAL,!0),this.checkSpezModal()||this.checkModBetaModal()||this.checkConsumersBetaModal()}componentDidMount(){this.conditionalModalCheck(),this.setState({domReady:!0})}componentDidUpdate(){this.conditionalModalCheck(),this.props.anyModalIsOpen?setTimeout(()=>Object(Gt.a)(),500):setTimeout(()=>Object(Gt.b)(),500)}render(){var e=this.props;const t=e.anyModalIsOpen,o=e.authorContext,n=e.badgePurchaseModalIsOpen,r=e.banContext,i=e.banModalIsOpen,s=e.bladeNightmodeModalIsOpen,a=e.chatroomSettingsModalIsOpen,d=e.createChatroomModalIsOpen,c=e.consumersBetaModalIsOpen,p=e.currentBadgePurchase,m=e.currentPaymentTarget,f=e.economicsSupportPaymentModalIsOpen,h=e.editChatroomModalIsOpen,g=e.deleteChatroomModalIsOpen,b=e.manageChatroomModalIsOpen,v=e.modBetaModalIsOpen,y=e.muteContext,x=e.muteModalIsOpen,O=e.notificationsPrePromptIsOpen,C=e.removalReasonContext,w=e.removalReasonModalIsOpen,j=e.sendEvent,S=e.spezModalIsOpen,P=e.subredditId,M=e.toggleBanModal,I=e.toggleMuteModal,k=e.toggleRemovalReasonsModal,N=e.toggleSpezModal,E=e.userFlairModalIsOpen,T=e.welcomeModalIsOpen,L=(e,t,o)=>n=>()=>j(r=>({source:e,action:"click",noun:n,comment:o&&Object(ft.comment)(r,o),post:o&&Object(ft.post)(r,o),screen:Object(ft.screen)(r),subreddit:Object(ft.subredditById)(r,t)}));return qt(l.Fragment,{},void 0,i&&r&&qt(Me.a,{ignoreDefaultFocus:!0,contextId:r.contextId,subredditId:r.subredditId,toggleModal:M,trackAddEvent:L("banned",r.subredditId,r.contextId)("add_in_context"),trackEventWithName:L("banned",r.subredditId,r.contextId),username:r.username}),x&&y&&qt(Fe.a,{contextId:y.contextId,subredditId:y.subredditId,toggleModal:I,trackAddEvent:L("muted",y.subredditId,y.contextId)("add_in_context"),username:y.username}),v&&qt(_e,{withOverlay:!0}),(d||b||g||h||a)&&P&&qt(Te,{subredditId:P,withOverlay:!0}),w&&C&&qt($e,{itemIds:C.itemIds,subredditId:C.subredditId,toggleModal:k,trackClick:L("removal_reasons",C.subredditId,1===C.itemIds.length?C.itemIds[0]:void 0)}),s&&P&&qt(Ze,{subredditId:P}),c&&qt(ke,{withOverlay:!0}),E&&o&&o.subredditId&&qt(wt,{subredditId:o.subredditId}),S&&qt(De,{withOverlay:!0,toggleModal:N}),n&&p&&qt(Pe,{withOverlay:!0,productId:p}),O&&qt(Re,{}),!t&&this.state.domReady&&T&&qt(Ut,{}),f&&m&&u.a.createElement(Ne,Wt({withOverlay:!0},m)))}})),Yt=o("./src/lib/addQueryParams/index.ts");const Xt={},Jt=()=>null;function eo(e,t){if(e in Xt)throw new Error(`Modal with id ${e} already registered!`);Xt[e]=t}var to=o("./src/reddit/constants/accountManager.ts"),oo=o("./src/reddit/constants/experiments.ts"),no=o("./src/reddit/constants/history.ts"),ro=o("./src/reddit/constants/listings.ts"),io=o("./src/reddit/constants/parameters.ts"),so=o("./src/reddit/constants/zIndex.ts"),ao=o("./src/reddit/helpers/chooseVariant/index.ts"),co=o("./src/reddit/helpers/history/index.ts"),lo=o("./src/reddit/helpers/monthsToMinutes/index.ts"),uo=o("./src/reddit/icons/svgs/Close/index.tsx"),po=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const mo=s.a.redditUrl,fo=J.a.div.withConfig({componentId:"r4g97d-0"})(["background: rgba(0,0,0,0.4);height: 100%;left: 0;position: fixed;top: 0;width: 100%;z-index: ",";"],so.b),ho=J.a.div.withConfig({componentId:"r4g97d-1"})(["background: #fff;border-radius: 4px;box-shadow: 1px 7px 20px 2px rgba(0,0,0,0.4);height: 550px;left: 50%;overflow: hidden;position: fixed;top: 50%;transform: translate(-50%, -50%);width: 750px;z-index: ",";"],so.b+1),go=J.a.iframe.withConfig({componentId:"r4g97d-2"})(["height: 100%;width: 100%;"]),bo=J.a.button.withConfig({componentId:"r4g97d-3"})(["position: absolute;right: 16px;top: 16px;"]),vo=J()(uo.a).withConfig({componentId:"r4g97d-4"})(["height: 20px;fill: grey;width: 20px;"]),yo=Object(Y.createStructuredSelector)({actionSource:e=>e.accountManagerModalData.actionSource,redirectUrl:e=>e.accountManagerModalData.redirectUrl,goToHomeVariant:e=>Object(ao.b)(e,{experimentEligibilitySelector:ao.a,experimentName:oo.E,expEventOverride:!1})}),xo=Object(Z.connect)(yo,e=>({sendGoToHomeBucketingEvent:()=>{e(async(e,t)=>{Object(ao.b)(t(),{experimentEligibilitySelector:ao.a,experimentName:oo.E})})},closeModal:(t,o,n)=>{o.contentWindow.postMessage({type:"closedModal"},mo),n.style.display="none",setTimeout(()=>{e(Object(Se.i)(t===to.b.Register?Ue.a.REGISTER_MODAL_ID:Ue.a.LOGIN_MODAL_ID))},1e3)},oniFrameLoaded:(t,o)=>{e((e,n)=>t.contentWindow.postMessage({events:Object.assign({},Object(ft.defaults)(n()),{actionSource:o}),type:"eventData"},mo))}})),Oo=({data:e,origin:t})=>e&&e.success&&(e.type===to.a.Login||e.type===to.a.Register)&&t===s.a.accountManagerOrigin;const Co=xo(class extends u.a.Component{constructor(){super(...arguments),this.onMessage=(e=>{const t=e.data;this.iframeRef&&e.source===this.iframeRef.contentWindow&&Oo(e)&&(Object(lo.a)(),t.type===to.a.Login?this.onLogIn():this.onSignUp(t.numberSubredditsSelected))}),this.onLogIn=(()=>{this.props.redirectUrl?this.redirectTo(this.props.redirectUrl):(Object(co.a)(no.a.JustLoggedIn,!0),window.location.reload(!0))}),this.getMinimumNumberOfSubscriptionsForRedirect=(()=>{switch(this.props.goToHomeVariant){case oo.I.HomeAfter0:return 0;case oo.I.HomeAfter3:return 3;case oo.I.HomeAfter5:return 5;default:return 1/0}}),this.onSignUp=(e=>{let t="";this.props.redirectUrl?t=this.props.redirectUrl:"/"!==window.location.pathname?t=window.location.pathname:(this.props.sendGoToHomeBucketingEvent(),t=(e||0)>=this.getMinimumNumberOfSubscriptionsForRedirect()?ro.c[ro.b.Home]:ro.c[ro.b.Popular]),this.redirectTo(t)}),this.redirectTo=(e=>{window.location.replace(Object(Yt.a)(e,{[io.m]:"true"}))})}componentDidMount(){this.iframeRef&&(this.iframeRef.onload=(()=>this.props.oniFrameLoaded(this.iframeRef,this.props.actionSource))),window.addEventListener("message",this.onMessage)}componentWillUnmount(){window.removeEventListener("message",this.onMessage)}render(){return po(fo,{innerRef:e=>this.containerRef=e},void 0,po(ho,{},void 0,po(bo,{onClick:()=>this.props.closeModal(this.props.path,this.iframeRef,this.containerRef)},void 0,po(vo,{})),po(go,{innerRef:e=>this.iframeRef=e,src:`${s.a.accountManagerOrigin}${this.props.path}`})))}});eo(Ue.a.LOGIN_MODAL_ID,e=>po(Co,{path:to.b.Index})),eo(Ue.a.REGISTER_MODAL_ID,e=>po(Co,{path:to.b.Register}));var wo=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const jo=Object(ee.a)({ErrorComponent:()=>null,LoadingComponent:()=>null,getComponent:()=>o.e("BadgePickerModal").then(o.bind(null,"./src/reddit/components/Badges/PickerModal/index.tsx")).then(e=>e.default)});eo(Ue.a.BADGE_PICKER,e=>wo(jo,{withOverlay:!0}));var So=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Po=Object(ee.a)({ErrorComponent:()=>null,LoadingComponent:()=>null,getComponent:()=>Promise.all([o.e("vendors~GiftsEditProfile~GiftsGiftCreation~GiftsGiftEdit~GiftsShipping~HarbergerTaxManageModal~Moder~43e8895f"),o.e("HarbergerTaxManageModal")]).then(o.bind(null,"./src/reddit/components/Governance/HarbergerTax/BannerManageModal/index.tsx")).then(e=>e.default)});eo(Ue.a.HARBERGER_TAX_BANNER_MANAGE,e=>So(Po,{ignoreDefaultFocus:!0,withOverlay:!0}));var Mo=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Io=Object(ee.a)({ErrorComponent:()=>null,LoadingComponent:()=>null,getComponent:()=>o.e("HarbergerTaxPurchaseModal").then(o.bind(null,"./src/reddit/components/Governance/HarbergerTax/BannerPurchaseModal/index.tsx")).then(e=>e.default)});eo(Ue.a.HARBERGER_TAX_BANNER_PURCHASE,e=>Mo(Io,{ignoreDefaultFocus:!0,withOverlay:!0}));var ko=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const No=Object(ee.a)({ErrorComponent:()=>null,LoadingComponent:()=>null,getComponent:()=>o.e("GovernanceOptOutModal").then(o.bind(null,"./src/reddit/components/Governance/OptOutModal/index.tsx")).then(e=>e.default)});eo(Ue.a.GOVERNANCE_OPT_OUT,e=>ko(No,{}));var Eo=o("./src/reddit/components/Governance/ModalTitle/index.tsx"),To=o("./src/reddit/constants/keycodes.ts"),Lo=o("./src/reddit/contexts/PageLayer/index.tsx"),_o=o("./src/reddit/selectors/gov.ts"),Fo=o("./node_modules/shallowequal/index.js"),Ro=o.n(Fo),Ao=o("./src/reddit/components/Governance/ReleaseNotesModal/ReleaseDate/index.m.less"),$o=o.n(Ao),Do=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),Bo=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var o=[],n=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(o.push(s.value),!t||o.length!==t);n=!0);}catch(d){r=!0,i=d}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return o}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();const Ho=Object(X.css)(["."," {color: ",";}"],$o.a.date,e=>Object(ct.c)(e).metaText);function Qo(e){return[e.getDate(),e.getMonth(),e.getFullYear()]}function Uo(e){const t=(o=new Date(Date.now()+60*(new Date).getTimezoneOffset()*1e3),n=new Date(e.date),Ro()(Qo(o),Qo(n)));var o,n;return Do("div",{className:Object(be.a)($o.a.date,e.className)},void 0,t?Object(g.a)(e.language,"time.today"):function(e){var t=Qo(e),o=Bo(t,3);const n=o[0],r=o[2];return`${e.toLocaleString("en-US",{month:"short"})} ${n}, ${r}`}(new Date(e.date)))}var zo=o("./src/reddit/components/Media/index.tsx"),Go=o("./src/reddit/components/RichTextJson/index.tsx"),Vo=o("./src/reddit/components/Governance/ReleaseNotesModal/Slide/index.m.less"),Wo=o.n(Vo),qo=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Zo=Object(X.css)(["."," {color: ",";}"],Wo.a.title,e=>Object(ct.c)(e).bodyText);function Ko(e){return qo("div",{className:e.className},void 0,qo("div",{className:Wo.a.title},void 0,e.releaseNote.title),e.releaseNote.media&&"rtjson"===e.releaseNote.media.type?qo("div",{className:Wo.a.text},void 0,qo(Go.b,{content:e.releaseNote.media.richtextContent,language:e.language,mediaMetadata:e.releaseNote.media.mediaMetadata})):qo("div",{className:Wo.a.media},void 0,qo(zo.a,{primaryContent:!0,shouldLoad:!0,showCentered:!0,showFull:!0,post:e.releaseNote})))}var Yo=o("./src/reddit/icons/svgs/ArrowRight/index.tsx"),Xo=o("./src/reddit/components/Governance/ReleaseNotesModal/SlideChange/index.m.less"),Jo=o.n(Xo),en=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const tn=Object(X.css)(["."," {fill: ",";}"],Jo.a.arrow,e=>Object(ct.c)(e).button);function on(e){return en("div",{className:Object(be.a)(Jo.a.container,e.className)},void 0,!e.isFirst&&en(rt.g,{className:Jo.a.prev,onClick:e.onPrevSlide},void 0,en(Yo.a,{className:Jo.a.arrow})),en(rt.d,{onClick:e.isLast?e.onClose:e.onNextSlide},void 0,Object(g.a)(e.language,e.isLast?"gov.releaseNotesDone":"gov.releaseNotesNext")))}var nn=o("./src/reddit/components/Governance/ReleaseNotesModal/SlideIndicator/index.m.less"),rn=o.n(nn),sn=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const an="m-selected",dn=Object(X.css)(["."," {background-color: ",";&."," {background-color: ",";height: 6px;margin: 0 2.5px;width: 6px;}}"],rn.a.dot,e=>Object(ct.c)(e).placeholder,an,e=>Object(ct.c)(e).active);function cn(e){return sn("div",{className:Object(be.a)(rn.a.container,e.className)},void 0,Array.from({length:e.totalSlides}).map((t,o)=>sn("div",{className:Object(be.a)(rn.a.dot,{[an]:o===e.currentSlide})})))}var ln=o("./src/reddit/components/Governance/ReleaseNotesModal/index.m.less"),un=o.n(ln),pn=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const mn=J.a.div.withConfig({componentId:"s1rzv55t-0"})(["."," {border-top: 1px solid ",";}."," {border-bottom: 1px solid ",";}","","","","",""],un.a.controls,e=>Object(ct.c)(e).line,un.a.title,e=>Object(ct.c)(e).line,Eo.b,Ho,Zo,dn,tn);const fn=Object(Y.createStructuredSelector)({releaseNotes:_o.f,language:B.M,subreddit:Lo.t}),hn=Object(Z.connect)(fn,e=>({onClose:()=>e(Object(Se.f)())})),gn=Object(Lo.w)();Object(Be.a)(gn(hn(class extends u.a.Component{constructor(){super(...arguments),this.state={currentlyViewingIndex:0},this.handleViewNextSlide=(()=>this.setState(e=>({currentlyViewingIndex:Math.min(e.currentlyViewingIndex+1,this.props.releaseNotes.length-1)}))),this.handleViewPrevSlide=(()=>this.setState(e=>({currentlyViewingIndex:Math.max(e.currentlyViewingIndex-1,0)}))),this.handleKeyDown=(e=>{switch(e.key){case To.b.ArrowRight:return this.handleViewNextSlide();case To.b.ArrowLeft:return this.handleViewPrevSlide();case To.b.Escape:return this.props.onClose()}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}render(){if(!this.props.subreddit)return null;const e=this.props.releaseNotes[this.state.currentlyViewingIndex];return pn(mn,{},void 0,pn(Eo.a,{className:un.a.title},void 0,Object(g.a)(this.props.language,"gov.releaseNotesTitle",{subredditName:this.props.subreddit.displayText})),pn(Ko,{language:this.props.language,releaseNote:e}),pn("div",{className:un.a.controls},void 0,pn(Uo,{className:un.a.controlBox,date:e.created,language:this.props.language}),pn(cn,{className:un.a.controlBox,currentSlide:this.state.currentlyViewingIndex,totalSlides:this.props.releaseNotes.length}),pn(on,{className:un.a.controlBox,isFirst:0===this.state.currentlyViewingIndex,isLast:this.state.currentlyViewingIndex===this.props.releaseNotes.length-1,language:this.props.language,onClose:this.props.onClose,onNextSlide:this.handleViewNextSlide,onPrevSlide:this.handleViewPrevSlide})))}})));var bn=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const vn=Object(ee.a)({ErrorComponent:()=>null,LoadingComponent:()=>null,getComponent:()=>o.e("GovernanceTransferPointsModal").then(o.bind(null,"./src/reddit/components/Governance/TransferPointsModal/index.tsx")).then(e=>e.default)});eo(Ue.a.TRANSFER_POINTS,e=>bn(vn,{ignoreDefaultFocus:!0,withOverlay:!0}));var yn=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const xn=()=>null,On=Object(ee.a)({ErrorComponent:xn,getComponent:()=>Object(te.a)(()=>o.e("GlobalModalContainer").then(o.bind(null,"./src/reddit/components/ProfilePinnedPosts/PinnedPostsLimitReachedModal/_PinnedPostsLimitReachedModal.tsx"))).then(e=>e.default),LoadingComponent:xn});eo(Ue.a.PINNED_POSTS_LIMIT_REACHED,e=>yn(On,{}));var Cn=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const wn=J.a.h2.withConfig({componentId:"s18yhnne-0"})(["color: ",";padding-bottom: 4px;"],e=>Object(ct.c)(e).metaText),jn=J()(at.a).withConfig({componentId:"s18yhnne-1"})(["align-items: baseline;"]),Sn=J.a.div.withConfig({componentId:"s18yhnne-2"})(["display: flex;flex-direction: column;& > div {","color: ",";padding: 2px 0;}"],st.bodyFont,e=>Object(ct.c)(e).bodyText),Pn=J.a.div.withConfig({componentId:"s18yhnne-3"})(["width: 200px;"]),Mn=J.a.div.withConfig({componentId:"s18yhnne-4"})(["width: 100px;"]),In=J()(Qe.h).withConfig({componentId:"s18yhnne-5"})(["overflow: scroll;"]),kn=J()(Qe.c).withConfig({componentId:"s18yhnne-6"})(["min-width: 0;max-width: none;"]),Nn=J()(rt.d).withConfig({componentId:"s18yhnne-7"})(["","padding: 0px 56px;"],st.largeButtonFont),En=J()(ze.a).withConfig({componentId:"s18yhnne-8"})(["height: 16px;"]),Tn=Object(Y.createStructuredSelector)({language:B.M}),Ln=Object(Z.connect)(Tn,e=>({closeModal:()=>e(Object(Se.i)(Ue.a.KEYBOARD_SHORTCUTS))})),_n=J()(Object(Be.a)(Ln(e=>Cn(kn,{onClick:e=>e.stopPropagation()},void 0,Cn(Qe.g,{},void 0,Cn(Ge.b,{},void 0,Cn(Qe.k,{},void 0,"Keyboard Shortcuts"),Cn(En,{onClick:e.closeModal},void 0,Cn(Qe.b,{})))),Cn(In,{},void 0,Cn(jn,{},void 0,Cn(Sn,{},void 0,Cn(at.a,{},void 0,Cn(wn,{},void 0,Object(g.a)(e.language,"shortcuts.navigationTitle"))),Cn(at.a,{},void 0,Cn(Pn,{},void 0,Object(g.a)(e.language,"shortcuts.showShortcuts")),Cn(Mn,{},void 0,"Shift + ?")),Cn(at.a,{},void 0,Cn(Pn,{},void 0,Object(g.a)(e.language,"shortcuts.nextPost")),Cn(Mn,{},void 0,"J")),Cn(at.a,{},void 0,Cn(Pn,{},void 0,Object(g.a)(e.language,"shortcuts.previousPost")),Cn(Mn,{},void 0,"K")),Cn(at.a,{},void 0,Cn(Pn,{},void 0,Object(g.a)(e.language,"shortcuts.nextLightbox")),Cn(Mn,{},void 0,"N")),Cn(at.a,{},void 0,Cn(Pn,{},void 0,Object(g.a)(e.language,"shortcuts.previousLightbox")),Cn(Mn,{},void 0,"P")),Cn(at.a,{},void 0,Cn(Pn,{},void 0,Object(g.a)(e.language,"shortcuts.openPost")),Cn(Mn,{},void 0,"Enter")),Cn(at.a,{},void 0,Cn(Pn,{},void 0,Object(g.a)(e.language,"shortcuts.openExpando")),Cn(Mn,{},void 0,"X")),Cn(at.a,{},void 0,Cn(Pn,{},void 0,Object(g.a)(e.language,"shortcuts.postLink")),Cn(Mn,{},void 0,"L"))),Cn(Sn,{},void 0,Cn(at.a,{},void 0,Cn(wn,{},void 0,Object(g.a)(e.language,"shortcuts.actionsTitle"))),Cn(at.a,{},void 0,Cn(Pn,{},void 0,Object(g.a)(e.language,"shortcuts.upvote")),Cn(Mn,{},void 0,"A")),Cn(at.a,{},void 0,Cn(Pn,{},void 0,Object(g.a)(e.language,"shortcuts.downvote")),Cn(Mn,{},void 0,"Z")),Cn(at.a,{},void 0,Cn(Pn,{},void 0,Object(g.a)(e.language,"shortcuts.newPost")),Cn(Mn,{},void 0,"C")),Cn(at.a,{},void 0,Cn(Pn,{},void 0,Object(g.a)(e.language,"shortcuts.replyToComment")),Cn(Mn,{},void 0,"R")),Cn(at.a,{},void 0,Cn(Pn,{},void 0,Object(g.a)(e.language,"shortcuts.submitComment")),Cn(Mn,{},void 0,"Ctrl + Enter")),Cn(at.a,{},void 0,Cn(Pn,{},void 0,Object(g.a)(e.language,"shortcuts.save")),Cn(Mn,{},void 0,"S")),Cn(at.a,{},void 0,Cn(Pn,{},void 0,Object(g.a)(e.language,"shortcuts.hide")),Cn(Mn,{},void 0,"H")),Cn(at.a,{},void 0,Cn(Pn,{},void 0,Object(g.a)(e.language,"shortcuts.openNavigation")),Cn(Mn,{},void 0,"Q")),Cn(at.a,{},void 0,Cn(Pn,{},void 0,Object(g.a)(e.language,"shortcuts.expandComment")),Cn(Mn,{},void 0,"Enter"))))),Cn(Qe.e,{},void 0,Cn(Nn,{"data-redditstyle":!0,onClick:()=>{e.closeModal()}},void 0,"Close")))))).withConfig({componentId:"s18yhnne-9"})(["max-width: 100%;"]);eo(Ue.a.KEYBOARD_SHORTCUTS,e=>Cn(_n,{onOverlayClick:e,withOverlay:!0}));var Fn=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Rn=Object(Y.createStructuredSelector)({allowNavigationCallback:Pt.a,language:B.M}),An=Object(Z.connect)(Rn,e=>({closeModal:()=>e(Object(Se.i)(Ue.a.BLADE_UNSAVED_CHANGES)),closeBlade:()=>e(Object(He.l)()),resetNavigationBlockCallback:()=>e(Object(V.j)())}));const $n=Object(Be.a)(An(class extends u.a.Component{constructor(){super(...arguments),this.onDiscardClick=(async()=>{this.props.closeBlade(),this.props.allowNavigationCallback&&this.props.allowNavigationCallback(!0)}),this.onCancelClick=(()=>{this.props.closeModal(),this.props.allowNavigationCallback&&this.props.allowNavigationCallback(!1),this.props.resetNavigationBlockCallback()})}render(){const e=this.props.language;return Fn(Qe.c,{},void 0,Fn(Qe.g,{},void 0,Fn(Ge.b,{},void 0,Fn(Qe.k,{},void 0,Object(g.a)(e,"structuredStyles.modal.discardChanges.title")),Fn(ze.a,{onClick:this.onCancelClick},void 0,Fn(Qe.b,{})))),Fn(Qe.h,{},void 0,Fn(Qe.j,{},void 0,Object(g.a)(e,"structuredStyles.modal.saveChanges.text"))),Fn(Qe.e,{},void 0,Fn(Qe.a,{onClick:this.onCancelClick,"data-redditstyle":!0},void 0,Object(g.a)(e,"structuredStyles.buttons.cancel")),Fn(Qe.l,{onClick:this.onDiscardClick,"data-redditstyle":!0},void 0,Object(g.a)(e,"structuredStyles.buttons.discard"))))}}));eo(Ue.a.BLADE_UNSAVED_CHANGES,e=>Fn($n,{withOverlay:!0}));const Dn=Object(Y.createStructuredSelector)({activeModalId:jt.a}),Bn=Object(Z.connect)(Dn,e=>({toggleModal:t=>e(Object(Se.i)(t))})),Hn=500,Qn=()=>{};var Un,zn=Bn(class extends u.a.Component{constructor(){super(...arguments),this.toggleModal=(()=>{this.props.activeModalId&&this.props.toggleModal(this.props.activeModalId)})}componentDidUpdate(){this.props.activeModalId?setTimeout(()=>Object(Gt.a)(),Hn):setTimeout(()=>Object(Gt.b)(),Hn)}componentWillUnmount(){Object(Gt.b)()}render(){const e=this.props.activeModalId;var t;return((t=e)&&t in Xt?Xt[t]:Jt)(e?this.toggleModal:Qn)}}),Gn=o("./node_modules/react-router-dom/es/index.js"),Vn=o("./src/app/actions/tooltip.ts"),Wn=o("./src/reddit/components/InfoTextTooltip/index.tsx"),qn=o("./src/reddit/helpers/styles/mixins/index.tsx"),Zn=o("./src/reddit/icons/svgs/All/index.tsx"),Kn=o("./src/reddit/icons/svgs/OriginalContent/index.tsx"),Yn=o("./src/reddit/icons/svgs/Popular/index.tsx"),Xn=o("./src/reddit/components/Header/QuickLinks/index.m.less"),Jn=o.n(Xn),er=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();!function(e){e.All="header-quicklinks-all",e.Popular="header-quicklinks-popular",e.Oc="header-quicklinks-oc",e.News="header-quicklinks-news"}(Un||(Un={}));const tr=Object(X.css)(["."," {border-right: 1px solid ",";}."," {fill: ",";","}"],Jn.a.container,e=>Object(ct.c)(e).line,Jn.a.icon,e=>Object(ct.c)(e).navIcon,qn.p),or=Object(Y.createStructuredSelector)({isLoggedIn:e=>!!e.user.account,language:e=>e.user.language});var nr=Object(Z.connect)(or,e=>({toggleTooltip:t=>e(Object(Vn.e)({tooltipId:t}))}))(Object(ot.b)(function(e){return er("div",{className:Object(be.a)(Jn.a.container,e.className)},void 0,er("div",{className:Jn.a.row},void 0,er(Gn.a,{className:Jn.a.icon,id:Un.Popular,to:e.isLoggedIn?ro.c[ro.b.Popular]:ro.c[ro.b.Home],onMouseEnter:()=>e.toggleTooltip(Un.Popular),onMouseLeave:()=>e.toggleTooltip(Un.Popular)},void 0,er(Yn.a,{}),er(Wn.c,{caretOnTop:!0,tooltipId:Un.Popular,text:Object(g.a)(e.language,"subscriptions.popular")})),er(Gn.a,{className:Jn.a.icon,id:Un.All,to:ro.c[ro.b.All],onMouseEnter:()=>e.toggleTooltip(Un.All),onMouseLeave:()=>e.toggleTooltip(Un.All)},void 0,er(Zn.a,{}),er(Wn.c,{caretOnTop:!0,tooltipId:Un.All,text:Object(g.a)(e.language,"subscriptions.all")})),er(Gn.a,{className:Jn.a.icon,id:Un.Oc,to:ro.c[ro.b.Original],onMouseEnter:()=>e.toggleTooltip(Un.Oc),onMouseLeave:()=>e.toggleTooltip(Un.Oc)},void 0,er(Kn.a,{}),er(Wn.c,{caretOnTop:!0,tooltipId:Un.Oc,text:Object(g.a)(e.language,"subscriptions.oc")}))))})),rr=o("./src/reddit/actions/login.ts"),ir=o("./src/reddit/selectors/meta.ts"),sr=o("./src/chat/helpers/dom.ts"),ar=o("./src/reddit/actions/chat/toggle.ts"),dr=o("./src/reddit/actions/postCreation/general.ts"),cr=o("./src/reddit/actions/preferences.ts"),lr=o("./src/reddit/helpers/styles/components/index.tsx"),ur=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},pr=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),mr=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};const fr=J.a.button.withConfig({componentId:"s1l5g1hi-0"})(["",""],qn.p),hr=J()(Object(lr.a)()).withConfig({componentId:"s1l5g1hi-1"})(["box-sizing: border-box;height: 32px;width: 32px;padding: 8px;fill: ",";",";"],e=>Object(ct.c)(e).navIcon,e=>e.isOpen?`background-color: ${Object(ct.c)(e).line}`:"");var gr=e=>{const t=e.children,o=e.isOpen,n=mr(e,["children","isOpen"]);return u.a.createElement(fr,ur({},n,{id:e.id,onClick:e.onClick}),pr(hr,{isOpen:o},void 0,t))},br=o("./src/chat/helpers/unreadCount.ts"),vr=o("./src/chat/models/Promo/index.ts"),yr=o("./src/lib/prettyPrintNumber/index.ts"),xr=o("./src/reddit/constants/colors.ts"),Or=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var Cr=J()(e=>e.isActive?Or("span",{className:e.className},void 0,!!e.unreadCount&&Object(yr.b)(e.unreadCount)):null).withConfig({componentId:"s1f2y58t-0"})(["","background: ",";border-radius: 12px;box-sizing: border-box;box-shadow: ",";color: ",";font-size: 8px;font-weight: bold;height: 12px;left: 18px;line-height: 12px;min-width: 12px;padding: 0px 3px;position: absolute;text-align: center;top: 2px;vertical-align: middle;z-index: 1;"],st.bodyFontSmall,xr.a.orangered,e=>e&&e.isActive&&e.unreadCount<=0?`inset 0px 0px 0px 5px ${xr.a.orangered},\n inset 0px 0px 0px 6px ${xr.a.white},\n 0px 0px 0px 0.5px ${Object(ct.c)(e).body}`:`0px 0px 0px 0.5px ${Object(ct.c)(e).body}`,xr.a.white),wr=o("./src/reddit/helpers/trackers/chat.ts"),jr=o("./src/reddit/icons/svgs/Chat/index.tsx"),Sr=o("./src/reddit/selectors/chat.ts"),Pr=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Mr=J()(jr.a).withConfig({componentId:"s1atn12p-0"})(["fill: ",";height: 16px;position: relative;width: 16px;"],e=>e.isActive?xr.a.orangered:Object(ct.c)(e).navIcon),Ir=Object(Y.createStructuredSelector)({promos:Sr.a,unreadCount:Sr.c});var kr=Object(Z.connect)(Ir)(Object(ot.b)(class extends l.Component{componentDidMount(){this.props.promos[vr.a.SubredditChatFtux]&&this.props.sendEvent(Object(wr.j)())}render(){var e=this.props;const t=e.promos,o=e.unreadCount;var n=Object(br.a)(o,t);const r=n.count,i=n.unread;return Pr(u.a.Fragment,{},void 0,Pr(Cr,{isActive:i,unreadCount:r}),Pr(Mr,{isActive:i}))}})),Nr=o("./src/reddit/components/Translated/index.tsx"),Er=o("./src/reddit/components/HeaderUserActions/CustomizeFlyout/index.m.less"),Tr=o.n(Er),Lr=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const _r=J.a.div.withConfig({componentId:"s16621if-0"})(["background-color: ",";border-color: ",";&:before {background-color: ",";border-color: ",";}.","."," {color: ",";}."," {color: ",";}"],e=>Object(ct.c)(e).body,e=>Object(ct.c)(e).line,e=>Object(ct.c)(e).body,e=>Object(ct.c)(e).line,Tr.a.title,Tr.a.subtitle,e=>Object(ct.c)(e).bodyText,Tr.a.description,e=>Object(ct.c)(e).metaText);var Fr=e=>{const t=e.onCloseFlyout;return Lr(_r,{className:Tr.a.container},void 0,Lr("p",{className:Tr.a.title},void 0,Lr(Nr.a,{msgId:"header.customizeFlyout.title"})),Lr("h5",{className:Tr.a.subtitle},void 0,Lr(Nr.a,{msgId:"header.customizeFlyout.subtitle"})),Lr("p",{className:Tr.a.description},void 0,Lr(Nr.a,{msgId:"header.customizeFlyout.description"})),Lr(rt.g,{className:Tr.a.dismissBtn,onClick:t},void 0,Lr(Nr.a,{msgId:"header.customizeFlyout.dismiss"})))},Rr=o("./src/reddit/icons/svgs/Envelope/index.tsx"),Ar=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const $r=J()(Rr.a).withConfig({componentId:"s1r31706-0"})(["fill: ",";height: 16px;width: 16px;"],e=>e.unreadCount?xr.a.orangered:Object(ct.c)(e).navIcon);var Dr=e=>Ar(u.a.Fragment,{},void 0,Ar(Cr,{isActive:!!e.unreadCount,unreadCount:e.unreadCount}),Ar($r,{unreadCount:e.unreadCount})),Br=o("./src/higherOrderComponents/asTooltip.tsx"),Hr=o("./src/reddit/actions/alpha.ts"),Qr=o("./src/reddit/actions/modMode.ts"),Ur=o("./src/reddit/constants/elementClassNames.ts"),zr=o("./src/reddit/controls/Dropdown/index.tsx"),Gr=o("./src/reddit/controls/InvisibleScreenReaderText/index.tsx"),Vr=o("./src/reddit/controls/ToggleSwitch/index.tsx"),Wr=o("./src/reddit/helpers/makeHeaderUserDropdownItem/index.tsx"),qr=o("./src/reddit/helpers/trackers/coins.ts"),Zr=o("./src/reddit/helpers/trackers/modTools.ts"),Kr=o("./src/reddit/helpers/trackers/premium.ts");const Yr=e=>({screen:ft.screen(e),profile:ft.profile(e),subreddit:ft.subreddit(e)});var Xr=o("./src/reddit/icons/fonts/Coin/index.tsx"),Jr=o("./src/reddit/icons/fonts/Premium/index.tsx"),ei=o("./src/reddit/icons/svgs/Coin/index.tsx"),ti=o("./src/reddit/icons/svgs/Dropdown/index.tsx"),oi=o("./src/reddit/icons/svgs/Help/index.tsx"),ni=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var ri=J()(e=>ni("svg",{width:"12",height:"12",viewBox:"1 -4 20 23",xmlns:"http://www.w3.org/2000/svg"},void 0,ni("defs",{},void 0,ni("path",{d:"M4.034 3.471c2.18 0 4.119 1.31 4.941 3.335a.563.563 0 0 1-.262.71 2.79 2.79 0 0 0-1.197 1.195.56.56 0 0 1-.71.263 5.312 5.312 0 0 1-3.334-4.94c0-.31.252-.563.562-.563zm7.254 4.045a.562.562 0 0 1-.262-.71 5.312 5.312 0 0 1 4.94-3.335c.312 0 .562.251.562.563a5.312 5.312 0 0 1-3.334 4.94.558.558 0 0 1-.71-.262 2.802 2.802 0 0 0-1.196-1.196zm1.907 3.51a5.314 5.314 0 0 1 3.333 4.94c0 .31-.25.563-.562.563a5.314 5.314 0 0 1-4.94-3.335.564.564 0 0 1 .262-.71 2.807 2.807 0 0 0 1.197-1.198.56.56 0 0 1 .71-.26zm-4.482 1.457a.563.563 0 0 1 .262.711 5.315 5.315 0 0 1-4.941 3.335.563.563 0 0 1-.563-.563c0-2.18 1.31-4.118 3.335-4.94a.563.563 0 0 1 .71.261c.268.516.681.928 1.197 1.196zM10 6.333A6.497 6.497 0 0 0 7.755 3.54 4.46 4.46 0 0 1 9.71 1.08a.562.562 0 0 1 .578 0 4.46 4.46 0 0 1 1.957 2.459A6.497 6.497 0 0 0 10 6.333zm8.92 3.377c.107.178.107.4 0 .58a4.462 4.462 0 0 1-2.46 1.955 6.502 6.502 0 0 0-2.793-2.246 6.491 6.491 0 0 0 2.794-2.244A4.452 4.452 0 0 1 18.92 9.71zM10 13.666a6.497 6.497 0 0 0 2.246 2.795 4.46 4.46 0 0 1-1.957 2.458.556.556 0 0 1-.578 0 4.46 4.46 0 0 1-1.956-2.458A6.497 6.497 0 0 0 10 13.666zM6.333 10a6.497 6.497 0 0 0-2.794 2.245A4.46 4.46 0 0 1 1.08 10.29a.557.557 0 0 1 0-.578 4.46 4.46 0 0 1 2.458-1.957A6.497 6.497 0 0 0 6.333 10z",id:"a"})),ni("g",{fill:"none",fillRule:"evenodd"},void 0,ni("path",{d:"M0 20h20V0H0z"}),ni("mask",{id:"b",fill:"#fff"},void 0,ni("use",{xlinkHref:"#a"})),ni("g",{mask:"url(#b)",fill:"#FF4500"},void 0,ni("path",{d:"M0 0h20v20H0z"}))))).withConfig({componentId:"lbgdi5-0"})(["margin-right: 2px;"]),ii=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),si=e=>ii("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,ii("g",{fill:"inherit"},void 0,ii("path",{d:"M15,2 L5,2 C4.447,2 4,2.447 4,3 L4,9 L9.586,9 L8.293,7.707 C7.902,7.316 7.902,6.684 8.293,6.293 C8.684,5.902 9.316,5.902 9.707,6.293 L12.707,9.293 C13.098,9.684 13.098,10.316 12.707,10.707 L9.707,13.707 C9.512,13.902 9.256,14 9,14 C8.744,14 8.488,13.902 8.293,13.707 C7.902,13.316 7.902,12.684 8.293,12.293 L9.586,11 L4,11 L4,17 C4,17.553 4.447,18 5,18 L15,18 C15.553,18 16,17.553 16,17 L16,3 C16,2.447 15.553,2 15,2"}))),ai=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var di=e=>ai("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,ai("path",{d:"M10,8 C8.619,8 7.5,9.5 7.5,9.5 C7.5,9.5 8.619,11 10,11 C11.381,11 12.5,9.5 12.5,9.5 C12.5,9.5 11.381,8 10,8 M15.1338,14 L4.8658,14 C4.4818,14 4.2398,13.583 4.4328,13.25 L9.5678,4.357 C9.7598,4.024 10.2398,4.024 10.4328,4.357 L15.5678,13.25 C15.7598,13.583 15.5188,14 15.1338,14 M17.2748,3.038 L10.2748,1.038 C10.0948,0.987 9.9048,0.987 9.7258,1.038 L2.7258,3.038 C2.2958,3.161 1.9998,3.554 1.9998,4 L1.9998,11 C1.9998,16.688 9.4098,18.871 9.7258,18.962 C9.8158,18.987 9.9068,19 9.9998,19 C10.0928,19 10.1848,18.987 10.2748,18.962 C10.5898,18.871 17.9998,16.688 17.9998,11 L17.9998,4 C17.9998,3.554 17.7038,3.161 17.2748,3.038"})),ci=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),li=e=>ci("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,ci("g",{fill:"inherit"},void 0,ci("path",{d:"M15,15.5 L5,15.5 C4.724,15.5 4.5,15.276 4.5,15 C4.5,12.755 6.326,10.929 8.571,10.929 L11.429,10.929 C13.674,10.929 15.5,12.755 15.5,15 C15.5,15.276 15.276,15.5 15,15.5 M10,4.5 C11.405,4.5 12.547,5.643 12.547,7.048 C12.547,8.452 11.405,9.595 10,9.595 C8.595,9.595 7.453,8.452 7.453,7.048 C7.453,5.643 8.595,4.5 10,4.5 M16,2 L4,2 C2.897,2 2,2.897 2,4 L2,16 C2,17.103 2.897,18 4,18 L16,18 C17.103,18 18,17.103 18,16 L18,4 C18,2.897 17.103,2 16,2"}))),ui=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),pi=o("./src/reddit/icons/svgs/OutboundLink/index.tsx"),mi=o("./src/reddit/icons/svgs/Premium/index.tsx"),fi=o("./src/reddit/icons/svgs/Redditor/index.tsx"),hi=o("./src/reddit/icons/svgs/Settings/index.tsx"),gi=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),bi=e=>gi("svg",{className:e.className,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,gi("g",{fill:"inherit"},void 0,gi("path",{d:"M15.4687,7.5029 C15.0937,7.5029 14.7307,7.5849 14.3997,7.7389 C13.4987,7.2209 12.4417,6.8769 11.3157,6.7229 L11.7777,4.5489 L12.8277,4.7729 C13.1127,5.5939 13.8847,6.1889 14.8007,6.1889 C15.9547,6.1889 16.8947,5.2489 16.8947,4.0949 C16.8947,2.9399 15.9547,1.9999 14.8007,1.9999 C14.1367,1.9999 13.5507,2.3159 13.1667,2.7999 L11.2147,2.3849 C10.6757,2.2739 10.1437,2.6139 10.0287,3.1549 L9.3297,6.4389 C9.3137,6.5159 9.3257,6.5899 9.3277,6.6659 C7.9607,6.7589 6.6667,7.1219 5.5987,7.7379 C5.2677,7.5839 4.9057,7.5029 4.5317,7.5029 C3.1357,7.5029 1.9997,8.6389 1.9997,10.0349 C1.9997,10.7769 2.3257,11.4699 2.8687,11.9429 C2.9027,14.8739 6.0217,17.1629 9.9967,17.1629 C13.9697,17.1629 17.0877,14.8769 17.1247,11.9479 C17.6707,11.4759 17.9997,10.7799 17.9997,10.0349 C17.9997,8.6389 16.8647,7.5029 15.4687,7.5029"}))),vi=o("./src/reddit/layout/row/InlineButton/index.tsx"),yi=o("./src/reddit/selectors/tooltip.ts"),xi=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Oi="undefined"!=typeof window&&"new.reddit.com"!==window.location.hostname,Ci=J.a.span.withConfig({componentId:"s1mwm9n7-0"})(["","color: #A8AAAB;margin-left: 8px;"],st.titleFontH6),wi=J.a.div.withConfig({componentId:"s1mwm9n7-1"})(["align-items: center;display: flex;flex-direction: row;"]),ji=J.a.span.withConfig({componentId:"s1mwm9n7-2"})(["","color: #A8AAAB;"],st.titleFontH6),Si=J.a.div.withConfig({componentId:"s1mwm9n7-3"})(["display: ",";@media(min-width: ",") {display: block;}"],e=>e.isUsernameVisible?"block":"none","1210px"),Pi=J.a.div.withConfig({componentId:"s1mwm9n7-4"})(["align-items: center;display: flex;margin-left: 8px;text-align: left;width: 32px;"]),Mi=J()(Pi).withConfig({componentId:"s1mwm9n7-5"})(["margin-left: 0;width: inherit;"]),Ii=J()(Pi).withConfig({componentId:"s1mwm9n7-6"})(["width: ",";@media(min-width: ",") {width: 175px;}"],e=>e.isUsernameVisible?"175px":"auto","1210px"),ki=J()(Wr.a).withConfig({componentId:"s1mwm9n7-7"})(["","background-color: ",";display: flex;height: 40px;margin-top: 4px;margin-bottom: 4px;width: 100%;"],Wr.e,e=>Object(ct.c)(e).body),Ni=J.a.div.withConfig({componentId:"s1mwm9n7-8"})(["",";"],Wr.b),Ei=J()(Xr.a).withConfig({componentId:"s1mwm9n7-9"})(["font-size: 12px;line-height: 1;height: 12px;vertical-align: top;margin-top: 4px;margin-right: 1px;"]),Ti=J()(ti.b).withConfig({componentId:"s1mwm9n7-10"})(["display: inline-block;fill: ",";height: 20px;vertical-align: middle;width: 20px;"],e=>Object(ct.c)(e).navIcon),Li="\n border-radius: 4px;\n float: left;\n margin-right: 5px;\n max-height: 24px;\n max-width: 24px;\n",_i=J.a.img.withConfig({componentId:"s1mwm9n7-11"})(["",""],Li),Fi=J()(vi.a).withConfig({componentId:"s1mwm9n7-12"})(["border-radius: 4px;border: 1px solid transparent;padding: 2px 0;&:focus, &:hover {border-color: ",";outline: none;}&.dropdown-open {border-radius: 4px 4px 0 0;border-color: ",";outline: none;}"],e=>Object(ct.c)(e).line,e=>Object(ct.c)(e).line),Ri=J()(fi.a).withConfig({componentId:"s1mwm9n7-13"})(["","height: 24px;width: 24px;color: ",";fill: ",";"],Li,e=>Object(ct.c)(e).actionIcon,e=>Object(ct.c)(e).actionIcon),Ai=J()(e=>ui("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,ui("g",{fill:"inherit"},void 0,ui("path",{d:"M15.992 14.898A5.014 5.014 0 0 1 12 10a5.014 5.014 0 0 1 3.992-4.899.998.998 0 0 0 .343-1.819A7.965 7.965 0 0 0 12 2c-4.41 0-8 3.588-8 8 0 4.411 3.59 8 8 8a7.966 7.966 0 0 0 4.335-1.283 1 1 0 0 0-.343-1.819"})))).withConfig({componentId:"s1mwm9n7-14"})(["",""],Wr.d),$i=J()(di).withConfig({componentId:"s1mwm9n7-15"})(["",""],Wr.d),Di=J()(Jr.a).withConfig({componentId:"s1mwm9n7-16"})(["font-size: 14px;line-height: 1;height: 14px;vertical-align: top;margin-top: 2px;margin-left: 2px;"]),Bi=J()(zr.a).withConfig({componentId:"s1mwm9n7-17"})(["border-radius: 0 0 4px 4px;border: 1px solid ",";border-top: none; ","box-shadow: none;margin-top: -2px;max-height: 80%;overflow-y: auto;overflow-x: hidden;padding-top: 6px;position: fixed;width: 213px;z-index: ",";"],e=>Object(ct.c)(e).line,"",so.i),Hi=J.a.div.withConfig({componentId:"s1mwm9n7-18"})(["","color: ",";white-space: nowrap;"],st.titleFontH6,e=>Object(ct.c)(e).bodyText),Qi=J()(Vr.a).withConfig({componentId:"s1mwm9n7-19"})(["position: absolute;right: 10px;top: 10px;width: 30px;"]),Ui=Object(Br.a)(Bi),zi=J.a.div.withConfig({componentId:"s1mwm9n7-20"})(["border-top: 1px solid ",";margin: 0 16px;"],e=>Object(ct.c)(e).line),Gi=J.a.h3.withConfig({componentId:"s1mwm9n7-21"})(["","color: ",";margin: 8px 0 4px 12px;"],st.labelsFont,e=>Object(ct.c)(e).actionIcon),Vi=e=>xi(ki,{"data-redditstyle":!0,onClick:e.onClick},void 0,e.children,xi(Ni,{},void 0,e.displayText),xi(Qi,{"data-redditstyle":!0,on:e.isEnabled})),Wi=Object(Z.connect)(()=>Object(Y.createStructuredSelector)({canAccessRedesignProfiles:e=>Et.d.redesignProfiles(e),language:e=>e.user.language,isModModeEnabled:It.s,isOpen:Object(yi.b)("USER_DROPDOWN_ID"),nightmode:B.O,url:Pt.o}),e=>({toggleNightmode:t=>e(Object(cr.u)(t)),onOptIntoRedesign:()=>e(Object(Hr.h)()),onOptOutOfRedesign:()=>{"new.reddit.com"!==window.location.host?(c.a.get("rseor3")&&(c.a.remove("rseor3",{domain:s.a.cookieDomain}),e(Object(Hr.k)())),e(Object(Hr.i)(!0))):window.location.host="old.reddit.com"},dispatchOpenLoginModal:()=>e(Object(rr.a)()),logoutUser:()=>e(Object(q.m)()),toggleModMode:()=>e(Object(Qr.b)())}));var qi=Object(Lo.w)({isCompact:Lo.G,pageLayer:e=>e})(Wi(Object(ot.b)(e=>{const t=e.canAccessRedesignProfiles,o=e.language,n=e.logoutUser,r=e.dispatchOpenLoginModal,i=e.isCompact,a=e.isModModeEnabled,d=e.nightmode,c=e.toggleModMode,p=e.user,m=Object(Wr.c)(hi.a,Object(g.a)(o,"headerDropdown.userSettings"),!1),f=Object(Wr.c)(oi.a,Object(g.a)(o,"headerDropdown.helpCenter"),!0),h=Object(Wr.c)(pi.a,Object(g.a)(o,"headerDropdown.visitOldReddit"),!0),b=Object(Wr.c)(si,Object(g.a)(o,"headerDropdown.loginSignup")),v=Object(Wr.c)(si,Object(g.a)(o,"headerDropdown.logout")),y=Object(Wr.c)(bi,Object(g.a)(o,"headerDropdown.optOut"),!1),x=Object(Wr.c)(bi,Object(g.a)(o,"headerDropdown.optIn"),!1),O=(e=>{const t=e&&e.coins||0;return Object(g.a)(o,"gold.coinsNum",{num:t.toLocaleString()})})(p),C=Object(Wr.c)(ei.a,Object(g.a)(o,"headerDropdown.coins"),!1,O),w=Object(Wr.c)(mi.a,Object(g.a)(o,"headerDropdown.premium"),!1);return xi("div",{className:Ur.d},void 0,xi(Fi,{"aria-expanded":e.isOpen,"aria-haspopup":!0,className:Object(be.a)(e.className,{"dropdown-open":e.isOpen}),id:"USER_DROPDOWN_ID",onClick:()=>{e.onClick(),e.sendEventWithName("user")}},void 0,xi(wi,{},void 0,(t=>t?xi(Ii,{isUsernameVisible:i},void 0,t.accountIcon&&xi(_i,{src:t.accountIcon}),xi(Si,{isUsernameVisible:i},void 0,xi(Hi,{},void 0,t.displayText,t.isGold&&xi(Di,{title:Object(g.a)(e.language,"gold.premiumCTA.title")})),xi(ji,{},void 0,xi(ri,{}),xi("span",{},void 0,(e=>{const t=e.commentKarma+e.postKarma,n=Object(yr.b)(t);return Object(g.a)(o,"account.karmaTotal",{karma:n})})(t))),!!t.coins&&xi(Ci,{},void 0,xi(Ei,{}),xi("span",{},void 0,(e=>Object(yr.b)(e.coins||0))(t))))):xi(Mi,{},void 0,xi(Ri,{})))(e.user),xi(Ti,{})),xi(Gr.a,{},void 0,Object(g.a)(o,"header.userDropdown"))),xi(Ui,{isFixed:!0,isOpen:e.isOpen,tooltipId:"USER_DROPDOWN_ID"},void 0,!i&&xi(u.a.Fragment,{},void 0,p&&xi(l.Fragment,{},void 0,xi(Gi,{role:"heading"},void 0,Object(g.a)(o,"headerDropdown.myStuff")),((e,t,o)=>{const n=Object(g.a)(o,"headerDropdown.myProfile"),r=Object(Wr.c)(li,n,!0),i=Object(Wr.c)(li,n,!1);return t?xi(i,{href:e.url}):xi(r,{href:`${s.a.redditUrl}${e.url}`})})(p,t,o),xi(m,{href:"/settings"})),xi(Gi,{role:"heading"},void 0,Object(g.a)(o,"headerDropdown.viewOptions")),p&&p.isMod&&xi(Vi,{displayText:Object(g.a)(o,"subscriptions.viewOptions.modMode"),isEnabled:a,onClick:()=>{e.sendEvent(Object(Zr.h)(!a)),c()}},void 0,xi($i,{})),xi(Vi,{displayText:"Night Mode",isEnabled:d,onClick:()=>{e.sendEvent((e=>t=>Object.assign({source:"user_dropdown",action:"click",noun:e?"night_mode_off":"night_mode_on"},Yr(t)))(d)),e.toggleNightmode(!d)}},void 0,xi(Ai,{})),xi(Gi,{role:"heading"},void 0,Object(g.a)(o,"headerDropdown.moreStuff")),xi(l.Fragment,{},void 0,xi(C,{href:"/coins",onClick:()=>{qr.f(),e.sendEvent((()=>e=>Object.assign({source:"user_dropdown",action:"click",noun:"coins",correlationId:qr.e()},Yr(e)))())}}),xi(w,{href:"/premium",onClick:()=>{Kr.g(),e.sendEvent((()=>e=>Object.assign({source:"user_dropdown",action:"click",noun:"premium",correlationId:Kr.f()},Yr(e)))())}})),xi(f,{href:"https://www.reddithelp.com"}),xi(h,{href:"https://old.reddit.com"+e.url,onClick:()=>{e.sendEvent(e=>({source:"redesignbanner",action:"click",noun:"2xdropdown_visit_old",screen:ft.screen(e),subreddit:ft.subreddit(e)}))}}),Oi?p&&xi(y,{onClick:()=>{e.sendEvent(e=>({source:"redesignbanner",action:"click",noun:"2xdropdown_opt_out",screen:ft.screen(e),subreddit:ft.subreddit(e)})),e.onOptOutOfRedesign()}}):p&&xi(x,{href:"",onClick:()=>{e.sendEvent(e=>({source:"redesignbanner",action:"click",noun:"2xdropdown_opt_in",screen:ft.screen(e),subreddit:ft.subreddit(e)})),e.onOptIntoRedesign()}}),xi(zi,{})),p?xi(v,{href:"#",onClick:e=>{n(),e.preventDefault()}}):xi(b,{href:"#",onClick:e=>{Object(ye.a)(e)&&(e.preventDefault(),e.stopPropagation(),r())}})))}))),Zi=o("./src/reddit/components/ModerationDropdown/index.tsx"),Ki=o("./src/reddit/helpers/trackers/navigation.ts"),Yi=o("./src/reddit/icons/svgs/Moderate/index.tsx"),Xi=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),Ji=e=>Xi("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,Xi("path",{d:"M5,15 C4.448,15 4,14.553 4,14 L4,11.172 C4,10.906 4.105,10.652 4.293,10.465 L12.379,2.379 C12.77,1.988 13.402,1.988 13.793,2.379 L16.621,5.207 C17.012,5.598 17.012,6.23 16.621,6.621 L8.536,14.707 C8.348,14.895 8.094,15 7.829,15 L5,15 Z M17,16 C17.552,16 18,16.447 18,17 C18,17.553 17.552,18 17,18 L3,18 C2.448,18 2,17.553 2,17 C2,16.447 2.448,16 3,16 L17,16 Z"}),Xi("g",{fill:"none",fillRule:"evenodd"},void 0,Xi("polygon",{points:"0 20 20 20 20 0 0 0"}),Xi("use",{}))),es=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const ts="HeaderUserActions--Chat",os="HeaderUserActions--Messages",ns="HeaderUserActions--Moderation",rs="HeaderUserActions--NewPost",is="\n height: 16px;\n width: 16px;\n",ss=J.a.span.withConfig({componentId:"s1c26b9-0"})(["& ~ & {margin-left: 8px;}"]),as=J()(Ji).withConfig({componentId:"s1c26b9-1"})(["fill: ",";",""],e=>Object(ct.c)(e).active,is),ds=Object(lr["d"])()`
fill: ${e=>e.isLit?xr.a.orangered:""};
display: inline-block;
`,cs=J()(Yi.a).withConfig({componentId:"s1c26b9-2"})(["","",""],ds,is),ls=Object(X.css)(["align-items: center;display: flex;flex-direction: row;padding: 8px;position: relative;",""],qn.p),us=J.a.button.withConfig({componentId:"s1c26b9-3"})(["",""],ls),ps=J.a.a.withConfig({componentId:"s1c26b9-4"})(["",""],ls),ms=J()(at.a).withConfig({componentId:"s1c26b9-5"})(["display: none;@media (min-width: ","px) {display: flex;}"],600),fs=J()(qi).withConfig({componentId:"s1c26b9-6"})(["margin-left: 8px;"]),hs=J()(Zi.b).withConfig({componentId:"s1c26b9-7"})(["margin-top: -8px;"]),gs=Object(Lo.w)({isCompact:Lo.G,pageLayer:e=>e}),bs=Object(Y.createStructuredSelector)({isCustomizeFlyoutShowing:e=>e.user.isCustomizeFlyoutShowing,isModerator:mt.e,unreadNotifications:B.ab,activeDropdownId:yi.a}),vs=Object(Z.connect)(bs,(e,t)=>({onOpenModerationDropdown:()=>e(Object(Vn.e)({tooltipId:Zi.a})),onOpenUserDropdown:()=>e(Object(Vn.e)({tooltipId:"USER_DROPDOWN_ID"})),toggleTooltip:t=>e(Object(Vn.e)({tooltipId:t})),onChatClick:()=>e(Object(ar.b)()),requestCreatePost:()=>{t.pageLayer&&e(dr.o(t.pageLayer))},onDismissCustomizeFlyout:()=>e(Object(cr.q)())}));var ys=Object(ot.b)(gs(vs(class extends u.a.Component{constructor(){super(...arguments),this.sendEventWithName=(e=>this.props.sendEvent(Object(Ki.d)(e))),this.onClickMail=(()=>this.sendEventWithName("mail")),this.onClickCreatePost=(()=>{this.sendEventWithName("create_post"),this.props.requestCreatePost()}),this.onClickChat=(()=>{this.sendEventWithName("chat"),this.props.onChatClick()}),this.onOpenModerationDropdown=(()=>{this.props.onOpenModerationDropdown(),this.sendEventWithName("mod_entry")})}render(){var e=this.props;const t=e.activeDropdownId,o=e.className,n=e.isCustomizeFlyoutShowing,r=e.isModerator,i=e.isCompact,a=e.language,d=e.onDismissCustomizeFlyout,c=e.onOpenUserDropdown,p=e.toggleTooltip,m=e.unreadNotifications,f=e.user,h=!(!m||!m.hasUnreadModmail&&!m.hasUnreadOldModmail),b=(e,t)=>es(Wn.c,{caretOnTop:!0,tooltipId:e,text:t});return u.a.createElement(at.a,{ref:e=>this.container=e,className:o},!i&&es(ms,{},void 0,r&&es(l.Fragment,{},void 0,es(ss,{id:ns,onMouseEnter:()=>p(ns),onMouseLeave:()=>t===ns&&p(ns)},ns,es(gr,{"aria-expanded":t===Zi.a,"aria-haspopup":!0,"aria-label":Object(g.a)(a,"header.moderation"),id:Zi.a,onClick:this.onOpenModerationDropdown,isOpen:t===Zi.a},void 0,es(cs,{isLit:h})),b(ns,Object(g.a)(a,"header.moderation"))),es(hs,{isOpen:t===Zi.a,unreadNotifications:m,sendEventWithName:this.sendEventWithName},Zi.a)),f&&es(l.Fragment,{},void 0,es(ss,{id:ts,onMouseEnter:()=>p(ts),onMouseLeave:()=>t===ts&&p(ts)},ts,es(ps,{href:`${s.a.redditUrl}/chat`,onClick:Object(sr.a)(this.onClickChat)},void 0,es(kr,{})),b(ts,Object(g.a)(a,"header.chat"))),es(ss,{id:os,onMouseEnter:()=>p(os),onMouseLeave:()=>t===os&&p(os)},os,es(ps,{href:m&&m.hasUnreadMail?"/message/unread":"/message/inbox",onClick:this.onClickMail},void 0,es(Dr,{unreadCount:m&&m.inboxCount||0})),b(os,Object(g.a)(a,"header.messages"))),es(ss,{id:rs,onMouseEnter:()=>p(rs),onMouseLeave:()=>t===rs&&p(rs)},rs,es(us,{"aria-label":Object(g.a)(a,"header.newPost"),onClick:this.onClickCreatePost},void 0,es(as,{})),b(rs,Object(g.a)(a,"header.newPost"))))),es(fs,{onClick:c,user:f,sendEventWithName:this.sendEventWithName}),n&&es(Fr,{onCloseFlyout:d}))}}))),xs=o("./src/reddit/components/Header/User/index.m.less"),Os=o.n(xs),Cs=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const ws=Object(X.css)(["."," {color: ",";fill: ",";}"],Os.a.link,e=>Object(ct.c)(e).button,e=>Object(ct.c)(e).button),js=Object(Y.createStructuredSelector)({account:e=>e.user.account,language:e=>e.user.language,origin:ir.d});var Ss=Object(Lo.w)()(Object(Z.connect)(js,e=>({onOpenLoginModal:()=>{e(Object(Se.l)({actionSource:Se.a.HeaderLogin})),e(Object(rr.a)())},onOpenRegisterModal:()=>{e(Object(Se.l)({actionSource:Se.a.HeaderSignup})),e(Object(rr.b)())}}))(function(e){return Cs("div",{className:Object(be.a)(e.className,Os.a.row)},void 0,!e.account&&function(e){const t=e.pageLayer,o=s.a.accountManagerOrigin,n=t?t.url:"/",r=t&&t.meta&&t.meta.name===x.Rb.EXPLORE?encodeURIComponent(e.origin):encodeURIComponent(e.origin+n);return Cs("div",{className:Os.a.loggedOutRow},void 0,Cs(rt.h,{redditStyle:!0,className:Os.a.button,href:`${o}/login?dest=${r}`,onClick:t=>{Object(ye.a)(t)&&(t.stopPropagation(),t.preventDefault(),e.onOpenLoginModal())}},void 0,Object(g.a)(e.language,"session.login.submit")),Cs(rt.e,{redditStyle:!0,className:Object(be.a)(Os.a.separator,Os.a.button),href:`${o}/register?dest=${r}`,onClick:t=>{Object(ye.a)(t)&&(t.stopPropagation(),t.preventDefault(),e.onOpenRegisterModal())}},void 0,Object(g.a)(e.language,"session.register.submit")))}(e),Cs(ys,{className:Object(be.a)({[Os.a.loggedOut]:!e.account}),language:e.language,user:e.account}))})),Ps=o("./src/reddit/actions/page.ts"),Ms=o("./src/reddit/helpers/getSubredditOrProfileIconData/index.tsx"),Is=o("./src/reddit/components/ProfileIcon/index.m.less"),ks=o.n(Is),Ns=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();function Es(e){return Ns("img",{src:e.iconUrl||`${s.a.assetPath}/img/placeholder_gradient_light-280.png`,className:Object(be.a)(ks.a.img,e.className)})}var Ts=o("./src/reddit/components/SubredditIcon/index.tsx"),Ls=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();function _s(e){return Ls("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,Ls("g",{},void 0,Ls("path",{d:"M14,4V3a1,1,0,0,0-1-1H3A1,1,0,0,0,2,3V13a1,1,0,0,0,1,1H4V6A2,2,0,0,1,6,4Z"}),Ls("path",{d:"M16,5H6A1,1,0,0,0,5,6V16a1,1,0,0,0,1,1h4a5,5,0,0,1-1-3,5,5,0,0,1,5-5,5,5,0,0,1,3,1V6A1,1,0,0,0,16,5Z"}),Ls("path",{d:"M19.21,17.79,17.43,16A4,4,0,0,0,18,14a4,4,0,1,0-4,4,4,4,0,0,0,2-.57l1.77,1.77a1,1,0,0,0,1.41-1.41ZM14,16a2,2,0,1,1,2-2A2,2,0,0,1,14,16Z"})))}var Fs=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var Rs,As=e=>Fs("svg",{className:e.className,viewBox:"0 0 14 14",version:"1.1"},void 0,Fs("path",{d:"M4.863 8.963a1.6 1.6 0 0 0 .586.585L3.332 10.77a.804.804 0 0 1-.607.079.8.8 0 0 1-.486-.372L.708 7.824A.8.8 0 0 1 1 6.732l2.12-1.224c-.001.273.065.55.21.802l1.533 2.653zm8.43-3.983a.8.8 0 0 1-.372 1.133L6.57 8.896a.8.8 0 0 1-1.014-.333L4.025 5.91a.8.8 0 0 1 .218-1.045L9.829.755A.799.799 0 0 1 10.995 1l2.298 3.98zM7.666 9.756l1.6 2.4a.8.8 0 0 1-1.331.888L7 11.642l-.934 1.402a.8.8 0 0 1-1.331-.887l1.6-2.4c.296-.446 1.034-.446 1.33 0z",fill:"currentColor",fillRule:"evenodd"})),$s=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),Ds=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o},Bs=Object(X.withTheme)(e=>{var t=e.className,o=e.isBadged,n=Ds(e,["className","isBadged"]);return $s("svg",{className:t,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},void 0,$s("path",{d:"M7 8c0-1.654 1.346-3 3-3s3 1.346 3 3v2.843c-.511.17-1.47.392-3 .392-1.535 0-2.495-.223-3-.391V8zm8 1.895c2.409.46 4 1.241 4 2.131 0 1.418-4.03 2.568-9 2.568s-9-1.15-9-2.568c0-.89 1.59-1.671 4-2.131V8c0-2.757 2.243-5 5-5s5 2.243 5 5v1.895zM2.74 14.599c2.152.744 5.127.995 7.26.995s5.108-.25 7.26-.995l-2.955 2.12a7.394 7.394 0 0 1-8.61 0l-2.955-2.12z",fill:"inherit",fillRule:"evenodd"}),$s("circle",{cx:"16",cy:"4",r:"4",fill:o?Object(ct.c)(n).body:"none"}),$s("circle",{cx:"16",cy:"4",r:"3",fill:o?xr.a.orangered:"none"}))}),Hs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Qs=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),Us=e=>u.a.createElement("svg",Hs({width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e),Qs("g",{fillRule:"evenodd",stroke:"none",strokeWidth:"1"},void 0,Qs("path",{d:"M15.5,11 L13,11 C12.724,11 12.5,10.776 12.5,10.5 C12.5,10.224 12.724,10 13,10 L15.5,10 C15.776,10 16,10.224 16,10.5 C16,10.776 15.776,11 15.5,11 Z M15.5,13.5 L7.5,13.5 C7.224,13.5 7,13.276 7,13 C7,12.724 7.224,12.5 7.5,12.5 L15.5,12.5 C15.776,12.5 16,12.724 16,13 C16,13.276 15.776,13.5 15.5,13.5 Z M15.5,16 L7.5,16 C7.224,16 7,15.776 7,15.5 C7,15.224 7.224,15 7.5,15 L15.5,15 C15.776,15 16,15.224 16,15.5 C16,15.776 15.776,16 15.5,16 Z M7,7.5 C7,7.224 7.224,7 7.5,7 L10.5,7 C10.776,7 11,7.224 11,7.5 L11,10.5 C11,10.776 10.776,11 10.5,11 L7.5,11 C7.224,11 7,10.776 7,10.5 L7,7.5 Z M17,5 C17.553,5 18,5.447 18,6 L18,17 C18,17.553 17.553,18 17,18 L6,18 C5.447,18 5,17.553 5,17 L5,6 C5,5.447 5.447,5 6,5 L17,5 Z M6.0156,4.0156 C4.9116,4.0156 4.0156,4.9116 4.0156,6.0156 L4.0156,15.4926 C4.0156,15.6686 4.0456,15.8366 4.0886,15.9996 L2.9996,15.9996 C2.4476,15.9996 1.9996,15.5526 1.9996,14.9996 L1.9996,2.9996 C1.9996,2.4476 2.4476,1.9996 2.9996,1.9996 L14.9996,1.9996 C15.5526,1.9996 15.9996,2.4476 15.9996,2.9996 L15.9996,4.0886 C15.8366,4.0456 15.6686,4.0156 15.4926,4.0156 L6.0156,4.0156 Z"}))),zs=o("./src/reddit/icons/svgs/News/index.tsx"),Gs=o("./src/reddit/components/HeaderSubredditSelector/index.m.less"),Vs=o.n(Gs),Ws=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();!function(e){e.All="All",e.Appeal="Appeal",e.Category="Category",e.Coins="Coins",e.Community="Community",e.CommunitySearch="CommunitySearch",e.CreateCommunity="CreateCommunity",e.CreatePost="CreatePost",e.Explore="Explore",e.GlobalSearch="GlobalSearch",e.Home="Home",e.Inbox="Inbox",e.ModListing="ModListing",e.ModMail="ModMail",e.ModMailBeta="ModMailBeta",e.ModQueue="ModQueue",e.Multi="Multi",e.News="News",e.OC="OC",e.Popular="Popular",e.Premium="Premium",e.Report="Report",e.Settings="Settings",e.SubredditCreation="SubredditCreation",e.Unknown="Unknown",e.UserProfile="UserProfile",e.UserProfileName="UserProfileName",e.ViewDraft="ViewDraft"}(Rs||(Rs={}));var qs=o("./src/lib/objectSelector/index.ts"),Zs=o("./src/reddit/actions/pages/subredditWiki/constants.ts"),Ks=o("./src/reddit/selectors/experiments/exploreV2.ts"),Ys=o("./src/reddit/selectors/subreddit.ts");var Xs=Object(qs.a)((e,{pageLayer:t})=>{const o=!!e.user.account,n=Object(Lo.V)(t);switch(n){case"index":case"listing":return o||Object(Vt.j)(e)?{type:Rs.Home}:{type:Rs.Popular};case"modListing":return{type:Rs.ModListing};case"modQueuePages":return{type:Rs.ModQueue};case"news":return{type:Rs.News};case"originalContent":return{type:Rs.OC};case"postCreation":return{type:Rs.CreatePost};case"postDraft":return{type:Rs.ViewDraft};case"subredditCreation":return{type:Rs.SubredditCreation};case"coins":return{type:Rs.Coins};case"premium":return{type:Rs.Premium};case"appeal":return{type:Rs.Appeal};case"explore":return{type:Rs.Explore}}const r=e.user.account;if(r)switch(n){case"inboxPages":return{type:Rs.Inbox,model:r};case"settings":return{type:Rs.Settings,model:r}}const i=Object(Lo.P)(e,{pageLayer:t});if("all"===i)return{type:Rs.All};if("popular"===i)return{type:Rs.Popular};const s=Object(Lo.t)(e,{pageLayer:t});if(s)return"searchResults"===n?{type:Rs.CommunitySearch,model:s}:{type:Rs.Community,model:s};const a=Object(Lo.e)(e,{pageLayer:t});if(a)return{type:Rs.Multi,model:a};if(Object(Lo.n)(e,{pageLayer:t})&&Object(Ks.a)(e,{expEventOverride:!1}))return{type:Rs.Explore};const d=Object(Lo.l)(e,{pageLayer:t});if(d)return{type:Rs.UserProfile,model:d};const c=Object(Lo.j)(t);if(c)return{type:Rs.UserProfileName,name:`u/${c}`};if(n&&"searchResults"===n)return{type:Rs.GlobalSearch};if("subredditWiki"===n){const o=Object(Lo.q)(e,{pageLayer:t})||Zs.a,n=Object(Ys.v)(e,{subredditName:o});if(n)return{type:Rs.Community,model:n}}return{type:Rs.Unknown}}),Js=o("./src/reddit/components/HeaderSubredditSelector/GenericListItem/index.m.less"),ea=o.n(Js),ta=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},oa=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const na=Object(X.css)(["."," {&.m-focused {background-color: ",";}}"],ea.a.item,e=>Object(ct.c)(e).field);function ra(e){const t=e.icon,o=e.text,n={id:e.id,role:"menuitem",children:oa(u.a.Fragment,{},void 0,oa(t,{className:ea.a.icon}),oa(o,{className:ea.a.text})),className:Object(be.a)(ea.a.item,e.className,{"m-focused":!!e.isFocused}),tabIndex:-1,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onClick:e.onClick};return n["aria-label"]=e.to,e.externalLink?u.a.createElement("a",ta({},n,{href:e.to,target:"_blank"})):u.a.createElement(Gn.a,ta({},n,{to:e.to}))}var ia=o("./src/reddit/routes/modListing/index.ts"),sa=o("./src/reddit/selectors/multireddit.ts"),aa=o("./src/lib/LinkedListMap/index.ts"),da=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const ca=Object(Y.createStructuredSelector)({account:e=>e.user.account,favoriteProfiles:e=>e.subscriptions.favoriteProfileOrder.map(t=>e.profiles.models[t]).filter(Boolean),favoriteSubreddits:e=>e.subscriptions.favoriteSubredditOrder.map(t=>e.subreddits.models[t]).filter(Boolean),language:e=>e.user.language,moderatingSubreddits:e=>(e.subreddits.moderated.order||[]).map(t=>e.subreddits.models[t]).filter(Boolean),moderatingSubredditsPending:e=>e.subreddits.moderated.api.pending||!e.subreddits.moderated.api.fetched,multis:e=>Object(sa.g)(e,{}),multisPending:e=>e.multireddits.api.pending||!e.multireddits.api.fetched,profiles:e=>e.subscriptions.profileOrder.map(t=>e.profiles.models[t]).filter(Boolean),subscriptions:e=>e.subscriptions.subredditOrder.map(t=>e.subreddits.models[t]).filter(Boolean),subscriptionsPending:e=>e.subscriptions.api.pending||!e.subscriptions.api.fetched,trendingSubreddits:e=>e.subreddits.trending.map(t=>e.subreddits.models[t]).filter(Boolean)});var la;!function(e){e[e.Header=0]="Header",e[e.Subreddit=1]="Subreddit",e[e.SubredditAutocomplete=2]="SubredditAutocomplete",e[e.Profile=3]="Profile",e[e.Multi=4]="Multi",e[e.Generic=5]="Generic",e[e.LoadingState=6]="LoadingState",e[e.Category=7]="Category"}(la||(la={}));const ua=[(e,t)=>({id:Rs.All,type:la.Generic,model:{url:"/r/all",displayText:Object(g.a)(t,"subscriptions.all"),icon:({className:e})=>da(Zn.a,{className:Object(be.a)(e,Vs.a.itemIcon)}),text:({className:e})=>da("span",{className:e},void 0,Object(g.a)(t,"subscriptions.all"))},telemetryNoun:"all"}),(e,t)=>({id:Rs.OC,type:la.Generic,model:{url:"/original",displayText:Object(g.a)(t,"subscriptions.oc"),icon:({className:e})=>da(Kn.a,{className:Object(be.a)(e,Vs.a.itemIcon)}),text:({className:e})=>da("span",{className:e},void 0,Object(g.a)(t,"subscriptions.oc"))},telemetryNoun:"original_content"})],pa=[(e,t)=>({id:"reddit-feeds",type:la.Header,model:{displayText:Object(g.a)(t,"subscriptions.redditFeeds")}}),(e,t,o)=>({id:Rs.Home,type:la.Generic,model:{url:"/",displayText:Object(g.a)(t,"header.home"),icon:({className:e})=>da(Bs,{className:Object(be.a)(e,Vs.a.itemIcon),isBadged:o&&o.isBadged}),text:({className:e})=>da("span",{className:e},void 0,Object(g.a)(t,"header.home"))},telemetryNoun:"home"}),(e,t)=>({id:Rs.Popular,type:la.Generic,model:{url:"/r/popular",displayText:Object(g.a)(t,"subscriptions.popular"),icon:({className:e})=>da(Yn.a,{className:Object(be.a)(e,Vs.a.itemIcon)}),text:({className:e})=>da("span",{className:e},void 0,Object(g.a)(t,"subscriptions.popular"))},telemetryNoun:"popular"}),...ua],ma=[(e,t)=>({id:"reddit-feeds",type:la.Header,model:{displayText:Object(g.a)(t,"subscriptions.redditFeeds")}}),(e,t,o)=>{const n=!o.exploreV2Variant;return{id:n?Rs.Home:Rs.Popular,type:la.Generic,model:{url:n?"/":"/r/popular",displayText:Object(g.a)(t,"subscriptions.popular"),icon:({className:e})=>da(Yn.a,{className:Object(be.a)(e,Vs.a.itemIcon)}),text:({className:e})=>da("span",{className:e},void 0,Object(g.a)(t,"subscriptions.popular"))},telemetryNoun:"popular"}},...ua],fa=(e,t)=>({id:Rs.Explore,type:la.Generic,model:{url:"/explore",displayText:Object(g.a)(t,"header.explore"),icon:({className:e})=>da(As,{className:Object(be.a)(e,Vs.a.itemIcon)}),text:({className:e})=>da("span",{className:e},void 0,Object(g.a)(t,"header.explore"))},telemetryNoun:"explore"}),ha=[(e,t)=>({id:"reddit-other",type:la.Header,model:{displayText:Object(g.a)(t,"subscriptions.otherFeeds")}}),(e,t)=>({id:Rs.Settings,type:la.Generic,model:{url:"/settings",displayText:Object(g.a)(t,"header.settings"),icon:({className:t})=>da(Es,{className:t,iconUrl:e.accountIcon}),text:({className:e})=>da("span",{className:e},void 0,Object(g.a)(t,"header.settings"))},telemetryNoun:"settings"}),(e,t)=>({id:Rs.Inbox,type:la.Generic,model:{url:"/message/inbox/",displayText:Object(g.a)(t,"header.messages"),icon:({className:t})=>da(Es,{className:t,iconUrl:e.accountIcon}),text:({className:e})=>da("span",{className:e},void 0,Object(g.a)(t,"header.messages"))},telemetryNoun:"mail"}),(e,t)=>({id:Rs.CreatePost,type:la.Generic,model:{url:"/submit",displayText:Object(g.a)(t,"header.newPost"),icon:({className:e})=>da(Ji,{className:Object(be.a)(e,Vs.a.itemIcon)}),text:({className:e})=>da("span",{className:e},void 0,Object(g.a)(t,"header.newPost"))},telemetryNoun:"create_post"})],ga=[(e,t)=>({id:Rs.Coins,type:la.Generic,model:{url:"/coins",displayText:Object(g.a)(t,"header.coins"),icon:({className:e})=>da(ei.a,{className:Object(be.a)(e,Vs.a.itemCoin)}),text:({className:e})=>da("span",{className:e},void 0,Object(g.a)(t,"header.coins"))},telemetryNoun:"coins"}),(e,t)=>({id:Rs.Premium,type:la.Generic,model:{url:"/premium",displayText:Object(g.a)(t,"header.premium"),icon:({className:e})=>da(mi.a,{className:Object(be.a)(e,Vs.a.itemPremium)}),text:({className:e})=>da("span",{className:e},void 0,Object(g.a)(t,"header.premium"))},telemetryNoun:"premium"})],ba=[(e,t)=>({id:Rs.ModQueue,type:la.Generic,model:{url:"/r/mod/about/modqueue",displayText:Object(g.a)(t,"header.modQueue"),icon:({className:e})=>da(Yi.a,{className:Object(be.a)(e,Vs.a.itemModQueue)}),text:({className:e})=>da("span",{className:e},void 0,Object(g.a)(t,"header.modQueue"))},telemetryNoun:"mod_queue"}),(e,t)=>({id:Rs.ModMailBeta,type:la.Generic,model:{url:"https://mod.reddit.com/mail/all",displayText:Object(g.a)(t,"header.modMailBeta"),icon:({className:e})=>da(Rr.a,{className:Object(be.a)(e,Vs.a.itemModQueue)}),text:({className:e})=>da("span",{className:e},void 0,Object(g.a)(t,"header.modMailBeta"))},telemetryNoun:"modmail_beta"}),(e,t)=>({id:Rs.ModMail,type:la.Generic,model:{url:"/message/moderator",displayText:Object(g.a)(t,"header.modMail"),icon:({className:e})=>da(Rr.a,{className:Object(be.a)(e,Vs.a.itemModQueue)}),text:({className:e})=>da("span",{className:e},void 0,Object(g.a)(t,"header.modMail"))},telemetryNoun:"modmail"})];function va(e,t,o){t.subscriptions.length&&(e.push({id:"header-subscriptions",type:la.Header,model:{displayText:Object(g.a)(o,"subscriptions.subscriptions")}}),t.subscriptions.forEach(t=>e.push({id:"sub"+t.id,type:la.Subreddit,model:t,telemetryNoun:"community"}))),t.profiles.length&&(e.push({id:"header-profiles",type:la.Header,model:{displayText:Object(g.a)(o,"subscriptions.profiles")}}),t.profiles.forEach(t=>e.push({id:"pro"+t.id,type:la.Profile,model:t,telemetryNoun:"profile"})))}var ya=o("./src/reddit/components/HeaderSubredditSelector/ListHeader/index.m.less"),xa=o.n(ya),Oa=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Ca=Object(X.css)(["."," {color: ",";}"],xa.a.header,e=>Object(ct.c)(e).actionIcon);function wa(e){return Oa("div",{className:Object(be.a)(xa.a.header,e.className),role:"heading"},void 0,e.children)}var ja=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),Sa=({className:e})=>ja("svg",{className:e,viewBox:"0 0 20 20"},void 0,ja("g",{fill:"inherit",fillRule:"evenodd"},void 0,ja("polygon",{points:"15.437 17.594 10.189 14.837 4.941 17.594 5.944 11.755 1.698 7.619 7.565 6.767 10.189 1.454 12.813 6.767 18.68 7.619 14.434 11.755"}))),Pa=o("./src/reddit/components/HeaderSubredditSelector/ListItem/index.m.less"),Ma=o.n(Pa),Ia=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},ka=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Na=Object(X.css)(["."," {&.m-focused {background-color: ",";}}."," {fill: ",";&.m-favorite {fill: ",";}}"],Ma.a.item,e=>Object(ct.c)(e).field,Ma.a.favorite,e=>Object(ct.c)(e).line,e=>Object(ct.c)(e).button),Ea=Object(Y.createStructuredSelector)({isLoggedIn:B.F}),Ta=e=>e.replace(/\/user\/[^\/]+\//,"/me/");var La=Object(Z.connect)(Ea,(e,{model:t,type:o})=>({toggleFavorite:n=>{n.stopPropagation(),n.preventDefault(),e(Object(we.f)({id:t.id,type:o===la.Subreddit?"subreddit":"profile"}))}}))(function(e){const t={className:Object(be.a)(Ma.a.item,e.className,{"m-focused":!!e.isFocused}),id:e.id,role:"menuitem",tabIndex:-1,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onClick:e.onClick};switch(e.type){case la.Subreddit:return u.a.createElement(Gn.a,Ia({},t,{"aria-label":e.model.displayText,to:e.model.url}),ka(Ts.b,{className:Ma.a.icon,subredditOrProfile:e.model}),ka("span",{className:Ma.a.text},void 0,e.model.displayText),e.isLoggedIn&&ka("div",{onClick:e.toggleFavorite},void 0,ka(Sa,{className:Object(be.a)(Ma.a.favorite,{"m-favorite":!!e.isFavorite})})));case la.SubredditAutocomplete:return u.a.createElement(Gn.a,Ia({},t,{"aria-label":e.model.name,to:`/r/${e.model.name}`}),ka(Ts.b,{className:Ma.a.icon,primaryColor:e.model.primaryColor,iconUrl:e.model.communityIcon||e.model.icon}),ka("span",{className:Ma.a.text},void 0,e.model.name));case la.Multi:return u.a.createElement(Gn.a,Ia({},t,{"aria-label":e.model.displayText,to:Ta(e.model.url)}),ka(Us,{className:Ma.a.multi}),ka("span",{className:Ma.a.text},void 0,e.model.displayText));case la.Profile:return u.a.createElement(Gn.a,Ia({},t,{"aria-label":e.model.displayText,to:e.model.url}),ka(Es,{className:Ma.a.icon,iconUrl:e.model.icon.url}),ka("span",{className:Ma.a.text},void 0,e.model.displayText),e.isLoggedIn&&ka("div",{onClick:e.toggleFavorite},void 0,ka(Sa,{className:Object(be.a)(Ma.a.favorite,{"m-favorite":!!e.isFavorite})})))}}),_a=o("./src/reddit/components/HeaderSubredditSelector/LoadingListSection/index.tsx"),Fa=o("./src/higherOrderComponents/addOverlayEvents.tsx"),Ra=o("./src/reddit/models/MonthsToMinutes/index.ts"),Aa=o("./src/reddit/components/MonthsToMinutesTooltip/index.tsx"),$a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e};const Da=Object(Br.a)(J()(Aa.a).withConfig({componentId:"es8p0e-0"})(["width: 270px;z-index: ",";&:before {left: 34px;}"],so.i+1),[Fa.a.Click,Fa.a.Keydown,Fa.a.Resize]);var Ba=e=>u.a.createElement(Da,$a({isFixed:!0,tooltipType:Ra.j.Home},e)),Ha=o("./src/reddit/components/HeaderSubredditSelector/SubredditList/index.m.less"),Qa=o.n(Ha),Ua=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},za=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Ga=Object(X.css)(["."," {background-color: ",";border: 1px solid ",";color: ",";&:hover,&:focus {background-color: ",";border: 1px solid ",";}}","","","",""],Qa.a.filter,e=>Object(ct.c)(e).field,e=>Object(ct.c)(e).line,e=>Object(ct.c)(e).bodyText,e=>Object(ct.c)(e).body,e=>Object(ct.c)(e).button,Ca,_a.b,Na,na);function Va(e){return e.id===Rs.ModMail||(e.id===Rs.ModMailBeta||e.id===Rs.CreateCommunity)}function Wa(e){const t=new aa.a("id");return e.forEach(e=>{(function(e){return e.type!==la.Header&&e.type!==la.LoadingState})(e)&&t.push({id:e.id})}),t}const qa=Object(Y.createStructuredSelector)({favoriteSubreddits:e=>new Set(e.subscriptions.favoriteSubredditOrder),favoriteProfiles:e=>new Set(e.subscriptions.favoriteProfileOrder),isHomeTooltipOpen:Vt.l,language:e=>e.user.language,unfilteredList:function(e){const t=ca(e),o=t.language,n=new aa.a("id");if(t.account){const r=t.account;pa.forEach(e=>n.push(e(r,o))),(t.favoriteSubreddits.length||t.favoriteProfiles.length)&&(n.push({id:"header-favorites",type:la.Header,model:{displayText:Object(g.a)(o,"subscriptions.favorites")}}),t.favoriteSubreddits.forEach(e=>n.push({id:"fav"+e.id,type:la.Subreddit,model:e,telemetryNoun:"community_favorite"})),t.favoriteProfiles.forEach(e=>n.push({id:"fav"+e.id,type:la.Profile,model:e,telemetryNoun:"community_favorite"}))),t.multisPending?n.push({id:"multis-pending",type:la.LoadingState,model:{displayText:""}}):t.multis.length&&(n.push({id:"header-multis",type:la.Header,model:{displayText:Object(g.a)(o,"subscriptions.multiredditsFull")}}),t.multis.forEach(e=>n.push({id:e.url,type:la.Multi,model:e,telemetryNoun:"multireddit"}))),t.moderatingSubredditsPending?n.push({id:"moderatingSubreddits-pending",type:la.LoadingState,model:{displayText:""}}):t.moderatingSubreddits.length&&(n.push({id:"header-moderating",type:la.Header,model:{displayText:Object(g.a)(o,"subscriptions.moderatingFull")}}),n.push({id:Rs.ModListing,type:la.Generic,model:{url:ia.a,displayText:Object(g.a)(o,"header.modListing"),icon:({className:e})=>da(Yi.a,{className:Object(be.a)(e,Vs.a.itemModQueue)}),text:({className:e})=>da("span",{className:e},void 0,Object(g.a)(o,"header.modListing"))},telemetryNoun:"r_mod"}),t.moderatingSubreddits.forEach(e=>n.push({id:"mod"+e.id,type:la.Subreddit,model:e,telemetryNoun:"community_moderate"}))),t.subscriptionsPending?n.push({id:"subscriptions-pending",type:la.LoadingState,model:{displayText:""}}):va(n,t,o),ha.forEach(e=>n.push(e(r,o))),Object(B.W)(e)&&n.push({id:Rs.CreateCommunity,type:la.Generic,model:{url:"https://www.reddit.com/subreddits/create",displayText:Object(g.a)(o,"header.createCommunity"),icon:({className:e})=>da(Ji,{className:Object(be.a)(e,Vs.a.itemIcon)}),text:({className:e})=>da("span",{className:e},void 0,Object(g.a)(o,"header.createCommunity"))},telemetryNoun:"create_community"}),ga.forEach(e=>n.push(e(r,o))),r.isMod&&ba.forEach(e=>n.push(e(r,o)))}else{const r=Object(Ks.a)(e,{expEventOverride:!1});t.subscriptions.length||Object(Vt.j)(e)?pa.forEach(t=>n.push(t(null,o,{exploreV2Variant:r,isBadged:Object(Vt.n)(e)}))):ma.forEach(e=>n.push(e(null,o,{exploreV2Variant:r}))),r&&n.push(fa(null,o)),n.push({id:"reddit-other",type:la.Header,model:{displayText:Object(g.a)(o,"subscriptions.otherFeeds")}}),ga.forEach(e=>n.push(e(null,o))),va(n,t,o)}return n}}),Za=e=>({onHomeClicked:()=>e(Object(Ps.B)()),onGotoUrl:t=>e(Object(p.b)(t)),onSubredditsRequested:()=>{e(Object(we.h)()),e(Object(Ce.q)()),e(Object(Oe.g)())}});class Ka extends u.a.Component{constructor(e){super(e),this.onChange=(e=>{const t=e.currentTarget.value,o=this.getList(t,this.props),n=Wa(o),r=n.first();this.setState({focusOrder:n,renderableList:o,currentInputText:e.currentTarget.value,focusedItemId:r?r.id:void 0})}),this.onChangeFocusedListItemId=(e=>this.setState({focusedItemId:e})),this.onKeyDown=(e=>{if(e.key===To.b.Escape&&this.props.onClose&&this.props.onClose(!0),e.key===To.b.Tab&&this.props.onClose&&this.props.onClose(),e.key===To.b.Enter){const e=this.state.focusOrder.first(),t=this.state.focusedItemId||(e?e.id:null);if(t){const e=this.state.renderableList.get(t);e&&e.type!==la.Header&&e.type!==la.LoadingState&&(this.fireTelemetryForListItem(e),Va(e)?window.open(e.model.url,"_blank"):this.props.onGotoUrl(e.model.url),this.props.onClose&&this.props.onClose(!0))}}e.key===To.b.ArrowDown&&(e.preventDefault(),this.setState(e=>{const t=this.findNextFocusableItem(),o=t?e.renderableList.get(t):void 0,n=o?o.model.displayText:e.currentInputText;if(t){const e=document.getElementById(`focus-${t}`);e&&e.scrollIntoView({block:"nearest"})}return{currentInputText:n,focusedItemId:t}})),e.key===To.b.ArrowUp&&(e.preventDefault(),this.setState(e=>{const t=this.findPrevFocusableItem(),o=t?e.renderableList.get(t):void 0,n=o?o.model.displayText:e.currentInputText;if(t){const e=document.getElementById(`focus-${t}`);e&&e.scrollIntoView({block:"nearest"})}return{currentInputText:n,focusedItemId:t}}))}),this.fireTelemetryForListItem=(e=>{let t;switch(e.id){case Rs.Coins:qr.f(),t=qr.e();break;case Rs.Premium:Kr.g(),t=Kr.f()}switch(e.type){case la.Category:case la.Generic:case la.Multi:case la.Profile:case la.Subreddit:this.props.sendEvent(o=>Object.assign({},Object(ft.defaults)(o),t?{correlationId:t}:null,{source:"community_nav",action:"click",noun:e.telemetryNoun}))}}),this.state={currentInputText:"",focusedItemId:null,focusOrder:Wa(e.unfilteredList),renderableList:e.unfilteredList}}componentDidMount(){"complete"===document.readyState?this.props.onSubredditsRequested():window.addEventListener("load",this.props.onSubredditsRequested)}componentWillReceiveProps(e){const t=this.state.currentInputText,o=this.getList(t,e),n=Wa(o);this.setState({focusOrder:n,renderableList:o})}getList(e,t){if(e){const o=new aa.a("id"),n=new RegExp(e,"ig");t.unfilteredList.forEach(e=>{switch(e.type){case la.Category:case la.Generic:case la.Multi:case la.Profile:case la.Subreddit:e.model.displayText.match(n)&&o.push(e);break;case la.Header:{const t=o.last();t&&t.type===la.Header&&o.pop(),o.push(e);break}case la.LoadingState:}});const r=o.last();return r&&r.type===la.Header&&o.pop(),o}return t.unfilteredList}findNextFocusableItem(){const e=this.state.focusOrder.first();if(this.state.focusedItemId){const t=this.state.focusOrder.getNode(this.state.focusedItemId);if(t)return t.next?t.next.value.id:t.value.id;if(e)return e.id}else if(e)return e.id}findPrevFocusableItem(){const e=this.state.focusOrder.last();if(this.state.focusedItemId){const t=this.state.focusOrder.getNode(this.state.focusedItemId);if(t)return t.prev?t.prev.value.id:t.value.id;if(e)return e.id}else if(e)return e.id}render(){const e=this.state.renderableList.toArray(),t=this.state.focusedItemId?this.state.renderableList.get(this.state.focusedItemId):null;return za("div",{role:"menu",className:this.props.className},void 0,za("div",{"aria-live":"assertive","aria-label":t&&t.model.displayText?`${t.model.displayText} ${Object(g.a)(this.props.language,"header.selected")}`:""}),za("input",{autoFocus:this.props.canAutofocus,"aria-label":Object(g.a)(this.props.language,"header.navigation"),className:Qa.a.filter,id:"header-subreddit-filter",placeholder:Object(g.a)(this.props.language,"header.filter"),onChange:this.onChange,onKeyDown:this.onKeyDown}),e.map((e,t)=>{const o={id:`focus-${e.id}`,isFocused:this.state.focusedItemId===e.id,key:`subreddit-list-key-${e.id}`,onFocus:()=>this.onChangeFocusedListItemId(e.id),onMouseEnter:()=>this.onChangeFocusedListItemId(e.id),onMouseLeave:()=>this.onChangeFocusedListItemId(void 0),onClick:()=>{this.fireTelemetryForListItem(e),this.props.onClose&&this.props.onClose(!0),e.id===Rs.Home&&this.props.onHomeClicked()}};switch(e.type){case la.Category:case la.Generic:return u.a.createElement(ra,Ua({},o,{externalLink:Va(e),className:Qa.a.item,to:e.model.url,icon:e.model.icon,text:e.model.text}));case la.Header:return za(wa,{className:Qa.a.listHeader},`subreddit-list-key-nomodel${t}`,e.model.displayText);case la.LoadingState:return za(_a.a,{className:Qa.a.listHeader},`subreddit-list-key-nomodel${t}`);case la.Multi:return u.a.createElement(La,Ua({},o,{className:Qa.a.item,model:e.model,type:la.Multi}));case la.Profile:return u.a.createElement(La,Ua({},o,{className:Qa.a.item,isFavorite:this.props.favoriteProfiles.has(e.model.id),model:e.model,type:la.Profile}));case la.Subreddit:return u.a.createElement(La,Ua({},o,{className:Qa.a.item,isFavorite:this.props.favoriteSubreddits.has(e.model.id),model:e.model,type:la.Subreddit}))}}),za(Ba,{isOpen:!!this.props.isHomeTooltipOpen,tooltipId:"focus-Home"}))}}const Ya=Object(Z.connect)(qa,Za)(Object(ot.b)(Ka)),Xa=Object(Z.connect)(qa,Za)(Object(ot.b)(Object(Fa.b)(Ka)));var Ja=o("./src/reddit/actions/shortcuts.ts"),ed=o("./src/reddit/constants/componentSizes.ts"),td=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),od=e=>td("svg",{className:e.className,onClick:e.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 254 213.89"},void 0,td("g",{fill:"inherit"},void 0,td("path",{d:"M225.12,21.05H30.88C14.38,21.05,1,33.82,1,49.57V206.43C1,222.18,14.38,235,30.88,235H225.12c16.5,0,29.88-12.77,29.88-28.52V49.57C255,33.82,241.62,21.05,225.12,21.05Zm14.94,180.39a20.14,20.14,0,0,1-20.14,20.14H72V34.42h148a20.14,20.14,0,0,1,20.14,20.14Z",transform:"translate(-1 -21.05)"}),td("g",{},void 0,td("path",{d:"M202.85,120H126L160.4,85.55A8,8,0,1,0,149.06,74.2l-48.13,48.12a8.25,8.25,0,0,0-1.73,2.62,8,8,0,0,0,0,6.13,8.32,8.32,0,0,0,1.73,2.61l48.13,48.12a8,8,0,0,0,11.34-11.34L126,136h76.89a8,8,0,1,0,0-16",transform:"translate(-1 -21.05)"}))));var nd=o("./src/reddit/selectors/userPrefs.ts"),rd=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const id=Object(X.css)([".",", ."," {fill: ",";}."," {border-radius: 4px;border: 1px solid transparent;&.m-open {border-color: ",";border-radius: 4px 4px 0 0;}&.m-not-pinned {&:hover, &:focus {border-color: ",";}}}."," {background-color: ",";border: 1px solid ",";border-top-width: 0;color: ",";}."," {background-color: ",";color: ",";&:focus {border-color: ",";outline: none;}}."," {background-color: ",";}","@media(max-width: ","px) {."," {display: none;}}"],Vs.a.caretDown,Vs.a.pin,e=>Object(ct.c)(e).navIcon,Vs.a.container,e=>Object(ct.c)(e).line,e=>Object(ct.c)(e).line,Vs.a.listContainer,e=>Object(ct.c)(e).body,e=>Object(ct.c)(e).line,e=>Object(ct.c)(e).bodyText,Vs.a.selector,e=>Object(ct.c)(e).body,e=>Object(ct.c)(e).bodyText,e=>Object(ct.c)(e).line,Vs.a.unknownIcon,e=>Object(ct.c)(e).actionIcon,Ga,ed.w,Vs.a.pin),sd=Object(Y.createStructuredSelector)({currentPage:Xs,isDropdownOpen:e=>e.header.isSubscriptionsDropdownOpen,isOverlayOpen:Pt.h,isPinnedSubscriptionsMenuDisabled:nd.a,isSubscriptionsPinned:nd.b,language:e=>e.user.language});var ad=Object(Lo.w)()(Object(Z.connect)(sd,(e,t)=>({closeDropdown:()=>e(Object(xe.g)()),onLocationRefresh:(o,n)=>e(Object(Ps.I)(o,t.pageLayer,n)),onPinSubscriptions:()=>{e(Object(xe.j)()),e(Object(xe.g)())},openDropdown:()=>e(Object(xe.h)()),toggleDropdown:()=>e(Object(xe.i)())}),(e,t,o)=>Object.assign({},e,t,o,{onLocationClick:o=>t.onLocationRefresh(o,e.isOverlayOpen)}))(Object(ot.b)(class extends u.a.Component{constructor(e){super(e),this.preventFocusAction=!1,this.handleKeyboardShortcut=(e=>{if("q"===e.key&&!this.props.isSubscriptionsPinned){if(document.activeElement&&("input"===document.activeElement.tagName.toLowerCase()||"textarea"===document.activeElement.tagName.toLowerCase()||"true"===document.activeElement.getAttribute("contenteditable")))return;this.props.openDropdown()}}),this.close=(e=>{this.props.closeDropdown(),e&&Object(Ja.r)()}),this.onButtonFocus=(()=>{this.props.isSubscriptionsPinned||this.preventFocusAction||this.props.openDropdown(),this.preventFocusAction&&(this.preventFocusAction=!1)}),this.toggleDropdown=(e=>{this.props.isSubscriptionsPinned||(this.props.sendEvent(e=>Object.assign({},Object(ft.defaults)(e),{source:"nav",action:"click",noun:this.props.isDropdownOpen?"close_community_nav":"open_community_nav"})),this.props.toggleDropdown(),this.preventFocusAction=!0)})}componentDidMount(){document.addEventListener("keyup",this.handleKeyboardShortcut)}componentWillUnmount(){document.removeEventListener("keyup",this.handleKeyboardShortcut)}shouldComponentUpdate(e){return!(!this.props.isDropdownOpen&&!e.isDropdownOpen)||e.currentPage!==this.props.currentPage||e.isSubscriptionsPinned!==this.props.isSubscriptionsPinned}stopPropagation(e){e.nativeEvent.stopImmediatePropagation()}render(){var e=this.props;const t=e.currentPage,o=e.className,n=e.isOverlayOpen,r=e.language,i=this.props.isDropdownOpen&&!this.props.isSubscriptionsPinned;return rd("div",{className:Object(be.a)(Vs.a.container,o,{"m-open":i,"m-not-pinned":!this.props.isSubscriptionsPinned,"m-pinned":this.props.isSubscriptionsPinned}),onClickCapture:this.stopPropagation},void 0,rd("button",{"aria-label":Object(g.a)(r,"header.navigation"),className:Vs.a.selector,role:"navigation",onMouseDown:this.props.isSubscriptionsPinned?this.props.onLocationClick:this.toggleDropdown,onFocus:this.onButtonFocus},void 0,rd("span",{className:Vs.a.containerText},void 0,function(e,t){switch(e.type){case Rs.All:return Object(g.a)(t,"subscriptions.all");case Rs.Appeal:return Object(g.a)(t,"header.appeal");case Rs.Category:return e.model.displayText(t);case Rs.Coins:return Object(g.a)(t,"header.coins");case Rs.Community:return e.model.displayText;case Rs.CommunitySearch:return Object(g.a)(t,"search.restrictToSubreddit");case Rs.CreateCommunity:return Object(g.a)(t,"header.createCommunity");case Rs.CreatePost:return Object(g.a)(t,"header.newPost");case Rs.Explore:return Object(g.a)(t,"header.explore");case Rs.GlobalSearch:return Object(g.a)(t,"search.globalName");case Rs.Home:return Object(g.a)(t,"header.home");case Rs.Inbox:return Object(g.a)(t,"header.messages");case Rs.ModListing:return Object(g.a)(t,"header.modListing");case Rs.ModMail:return Object(g.a)(t,"header.modMail");case Rs.ModMailBeta:return Object(g.a)(t,"header.modMailBeta");case Rs.ModQueue:return Object(g.a)(t,"header.modQueue");case Rs.Multi:return e.model.displayText;case Rs.News:return Object(g.a)(t,"header.news");case Rs.OC:return Object(g.a)(t,"subscriptions.oc");case Rs.Popular:return Object(g.a)(t,"subscriptions.popular");case Rs.Premium:return Object(g.a)(t,"header.premium");case Rs.Report:return Object(g.a)(t,"header.report");case Rs.Settings:return Object(g.a)(t,"header.settings");case Rs.SubredditCreation:return Object(g.a)(t,"header.subredditCreation");case Rs.Unknown:return"";case Rs.UserProfile:return e.model.displayText;case Rs.UserProfileName:return e.name;case Rs.ViewDraft:return Object(g.a)(t,"header.viewDraft")}}(t,r)),function(e){switch(e.type){case Rs.All:return Ws(Zn.a,{className:Vs.a.defaultIcon});case Rs.Appeal:return Ws(Ji,{className:Vs.a.defaultIcon});case Rs.Category:return Ws(e.model.icon,{className:Vs.a.defaultIcon});case Rs.Coins:return Ws(ei.a,{className:Vs.a.coinIcon});case Rs.Community:case Rs.CommunitySearch:{const t=Object(Ms.a)({subredditOrProfile:e.model});return Ws(Ts.b,{className:Vs.a.subredditIcon,iconUrl:t.url,primaryColor:t.color})}case Rs.CreateCommunity:case Rs.CreatePost:return Ws(Ji,{className:Vs.a.defaultIcon});case Rs.Explore:return Ws(As,{className:Vs.a.defaultIcon});case Rs.GlobalSearch:return Ws(_s,{className:Vs.a.defaultIcon});case Rs.Home:return Ws(Bs,{className:Vs.a.defaultIcon});case Rs.Inbox:case Rs.Settings:return Ws(Es,{className:Vs.a.icon,iconUrl:e.model.accountIcon});case Rs.ModListing:return Ws(Yi.a,{className:Vs.a.modQueueIcon});case Rs.SubredditCreation:return Ws(Ji,{className:Vs.a.defaultIcon});case Rs.ModMail:case Rs.ModMailBeta:return Ws(Rr.a,{className:Vs.a.modQueueIcon});case Rs.ModQueue:return Ws(Yi.a,{className:Vs.a.modQueueIcon});case Rs.Multi:return Ws(Us,{className:Vs.a.defaultIcon});case Rs.News:return Ws(zs.a,{className:Vs.a.defaultIcon});case Rs.OC:return Ws(Kn.a,{className:Vs.a.defaultIcon});case Rs.Popular:return Ws(Yn.a,{className:Vs.a.defaultIcon});case Rs.Premium:return Ws(mi.a,{className:Vs.a.premiumIcon});case Rs.Report:return Ws(Ji,{className:Vs.a.defaultIcon});case Rs.Unknown:return Ws("div",{className:Vs.a.unknownIcon});case Rs.UserProfile:{const t=Object(Ms.a)({subredditOrProfile:e.model});return Ws(Es,{className:Vs.a.icon,iconUrl:t.url})}case Rs.UserProfileName:return Ws("div",{className:Vs.a.defaultIcon});case Rs.ViewDraft:return Ws(Ji,{className:Vs.a.defaultIcon})}}(t),!this.props.isSubscriptionsPinned&&rd(ti.b,{className:Vs.a.caretDown})),i&&!this.props.isPinnedSubscriptionsMenuDisabled&&rd(od,{className:Object(be.a)(Vs.a.pin,{[Vs.a.disabled]:n}),onClick:n?void 0:this.props.onPinSubscriptions}),i&&rd(Xa,{canAutofocus:!0,className:Vs.a.listContainer,onClose:this.close}))}}))),dd=o("./src/reddit/controls/InternalLink/index.tsx"),cd=o("./src/reddit/components/HeaderSubredditSelector/Compact/index.m.less"),ld=o.n(cd),ud=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const pd=Object(X.css)(["."," {color: ",";fill: ",";}"],ld.a.link,e=>Object(ct.c)(e).actionIcon,e=>Object(ct.c)(e).actionIcon),md=Object(Y.createStructuredSelector)({currentPage:Xs,frontpageIsHome:e=>Object(Vt.j)(e,{expEventOverride:!1}),isBannerVisible:Vt.m,language:B.M}),fd=Object(Z.connect)(md,e=>({visitPopulatedHome:()=>e(Object(U.i)())}));var hd=Object(Lo.w)()(fd(class extends u.a.Component{constructor(){super(...arguments),this.preventFocusAction=!1,this.onHomeClick=(e=>{this.props.frontpageIsHome||(e.preventDefault(),this.props.visitPopulatedHome())})}render(){var e=this.props;const t=e.className,o=e.currentPage,n=e.frontpageIsHome,r=e.isBannerVisible,i=e.language;return ud("div",{"aria-label":Object(g.a)(i,"header.navigation"),className:Object(be.a)(ld.a.container,t),role:"navigation"},void 0,r&&ud(dd.a,{className:Object(be.a)(ld.a.link,{"m-active":o.type===Rs.Home}),"data-redditstyle":!0,onMouseDown:this.onHomeClick,to:ro.c[ro.b.Home]},void 0,ud(Bs,{className:ld.a.icon}),ud("span",{className:ld.a.text},void 0,Object(g.a)(i,"header.home")),!n&&ud("div",{className:ld.a.badge})),ud(dd.a,{className:Object(be.a)(ld.a.link,{"m-active":o.type===Rs.Explore}),"data-redditstyle":!0,to:ro.c[ro.b.Explore]},void 0,ud(As,{className:ld.a.icon}),ud("span",{className:ld.a.text},void 0,Object(g.a)(i,"header.explore"))),ud(dd.a,{className:Object(be.a)(ld.a.link,{"m-active":o.type===Rs.Popular}),"data-redditstyle":!0,to:r?ro.c[ro.b.Popular]:ro.c[ro.b.Home]},void 0,ud(Yn.a,{className:ld.a.icon}),ud("span",{className:ld.a.text},void 0,Object(g.a)(i,"subscriptions.popular"))))}})),gd=o("./src/reddit/controls/Search/index.tsx"),bd=o("./src/reddit/icons/svgs/Snoo/index.tsx"),vd=o("./src/reddit/icons/svgs/Wordmark/index.tsx"),yd=o("./src/reddit/selectors/experiments/m2mV1-5.ts"),xd=o("./src/reddit/components/Header/index.m.less"),Od=o.n(xd),Cd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},wd=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const jd=J.a.header.withConfig({componentId:"pox619-0"})(["color: ",";",";."," {background-color: ",";border-bottom: 1px solid ",";}."," {background-color: ",";border-bottom: 1px solid ",";@media (min-width: ","px) {flex: 1 1 100%;}}."," {fill: ",";}."," {border-right: 1px solid ",";}","","","",""],e=>Object(ct.c)(e).bodyText,e=>e.isBladeOpen?`padding-left: ${ed.b}px;`:"",Od.a.layout,e=>Object(ct.c)(e).body,e=>Object(ct.c)(e).line,Od.a.compactLayout,e=>Object(ct.c)(e).body,e=>Object(ct.c)(e).line,560,Od.a.search,e=>Object(ct.c)(e).navIcon,Od.a.searchLinkContainer,e=>Object(ct.c)(e).line,id,pd,ws,tr),Sd=Object(Y.createStructuredSelector)({exploreV2Variant:e=>Object(Ks.a)(e,{expEventOverride:!1}),isLoggedIn:B.F,language:e=>e.user.language,m2mVariant:yd.c,isBladeOpen:e=>!!e.structuredStyles.isEditing}),Pd=Object(Lo.w)({categoryName:Lo.b,isCompact:Lo.G,isExplore:Lo.A,pageLayer:e=>e}),Md=e=>wd("div",{className:Od.a.left},void 0,wd(Gr.a,{},void 0,Object(g.a)(e.language,"header.ariaInstructions")),wd(Gn.a,{"aria-label":Object(g.a)(e.language,"header.home"),className:Od.a.centeredRow,to:"/",onClick:e.onReloadFrontpage},void 0,wd(bd.a,{className:Od.a.snoo}),wd(vd.a,{className:Od.a.wordmark})),e.children),Id=e=>wd("div",{className:Od.a.right},void 0,e.children,wd(Ss,{isExplore:e.isExplore})),kd=e=>wd("div",{className:Od.a.layout},void 0,u.a.createElement(Md,Cd({},e,{language:e.language,onReloadFrontpage:e.onReloadFrontpage}),wd(ad,{}),wd(gd.a,{className:Od.a.search})),wd(Id,{},void 0,wd(nr,{className:Od.a.quickLinks}))),Nd=e=>wd("div",{className:Od.a.layout},void 0,u.a.createElement(Md,Cd({},e,{language:e.language,onReloadFrontpage:e.onReloadFrontpage}),wd(hd,{}),wd(gd.a,{className:Od.a.search})),wd(Id,{},void 0,wd(nr,{className:Od.a.quickLinks}))),Ed=e=>{const t=!!e.categoryName||!Object(Ks.e)(e.exploreV2Variant);return wd("div",{className:Od.a.layout},void 0,u.a.createElement(Md,Cd({},e,{language:e.language,onReloadFrontpage:e.onReloadFrontpage}),wd(ad,{}),t&&wd("div",{className:Od.a.searchContainer},void 0,wd(gd.a,{className:Od.a.search}))),wd(Id,{isExplore:!0}))},Td=e=>wd(u.a.Fragment,{},void 0,wd("div",{className:Od.a.compactLayout},void 0,u.a.createElement(Md,Cd({},e,{language:e.language,onReloadFrontpage:e.onReloadFrontpage})),wd(Id,{})));var Ld=Pd(Object(Z.connect)(Sd,e=>({onReloadFrontpage:()=>e(Object(Ps.B)(!0))}))(function(e){let t;return t=e.m2mVariant&&!e.isLoggedIn?Nd:e.isExplore?Ed:e.isCompact?Td:kd,wd(jd,{"data-redditstyle":!0,className:Object(be.a)(Od.a.container,e.className),isBladeOpen:e.isBladeOpen},void 0,wd(t,{categoryName:e.categoryName,exploreV2Variant:e.exploreV2Variant,language:e.language,onReloadFrontpage:e.onReloadFrontpage}))})),_d=o("./src/reddit/actions/post.ts"),Fd=o("./src/reddit/components/CompactPost/HorizontalVotes.tsx"),Rd=o("./src/reddit/components/FlairWrapper/index.tsx"),Ad=o("./src/reddit/components/PostTitle/index.tsx"),$d=o("./src/reddit/helpers/postCollection.ts"),Dd=o("./src/reddit/icons/fonts/Expandos/Media/Video/index.tsx"),Bd=o("./src/reddit/icons/fonts/Gif/index.tsx"),Hd=o("./src/reddit/icons/fonts/Link/index.tsx"),Qd=o("./src/reddit/icons/fonts/Photos/index.tsx"),Ud=o("./src/reddit/icons/fonts/Text/index.tsx"),zd=o("./src/reddit/models/Media/index.ts"),Gd=o("./src/reddit/models/Vote/index.ts"),Vd=o("./src/reddit/selectors/experiments/categories.ts"),Wd=o("./src/reddit/components/LightboxHeader/index.m.less"),qd=o.n(Wd),Zd=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Kd=J()(e=>Zd("div",{className:e.className},void 0,e.children)).withConfig({componentId:"c58zz4-0"})(["padding: 0 ","px;","."," {max-width: calc(100% - ","px);}."," {","}."," {","margin-left: ","px;width: ","px;}"],ed.p,e=>e.isCollection?"":`max-width: ${ed.m}px;`,qd.a.postDetails,ed.F+ed.o,qd.a.postTitle,st.titleFontH5,qd.a.actions,st.actionFont,ed.o,ed.F),Yd=Object(Y.createStructuredSelector)({isInCategoriesExperiment:Vd.a,language:B.M,post:Pt.l}),Xd=Object(Z.connect)(Yd,(e,{sendEvent:t})=>({close:o=>{o.preventDefault(),o.stopPropagation(),e(Object(Ja.d)(t,!0))},toggleVote:(t,o)=>e(o===Gd.a.upvoted?Object(_d.J)(t):Object(_d.n)(t))}),(e,t,o)=>Object.assign({},e,t,o,{onVoteClick:o=>e.post&&t.toggleVote(e.post.id,o)})),Jd={[zd.m.GIFVIDEO]:Bd.a,[zd.m.IMAGE]:Qd.a,[zd.m.TEXT]:Ud.a,[zd.m.RTJSON]:Ud.a,[zd.m.VIDEO]:Dd.a,[zd.m.EMBED]:Hd.a};var ec=Object(ot.b)(Xd(e=>{const t=e.close,o=e.language,n=e.onVoteClick,r=e.post,i=Jd[r&&r.media?r.media.type:zd.m.EMBED];return Zd(Kd,{className:qd.a.container,isCollection:r&&Object($d.a)(r),"data-redditstyle":!0},void 0,Zd("div",{className:qd.a.postDetails},void 0,r&&Zd(l.Fragment,{},void 0,Zd(Fd.a,{className:qd.a.horizontalVotes,compact:!1,light:!0,model:r,onVoteClick:n,redditStyle:!0}),Zd(i,{className:qd.a.mediaIcon}),Zd(Ad.c,{className:qd.a.postTitle,post:r,size:Ad.b.Small,hideSourceLink:!0,isCommentsPage:!0,isOverlay:!0,nowrap:!0,titleColor:xr.a.lightboxHeaderText,showCategoryTag:!0}),Zd(Rd.a,{post:r,nowrap:!0,sendEvent:e.sendEvent,showCategoryTag:e.isInCategoriesExperiment}))),Zd("div",{className:qd.a.actions},void 0,Zd(rt.l,{className:qd.a.close,onClick:t,title:Object(g.a)(o,"common.close"),"aria-label":Object(g.a)(o,"common.close")},void 0,Zd(uo.a,{}),Zd("span",{className:qd.a.closeText},void 0,Object(g.a)(o,"common.close")))))}));const tc=()=>null;var oc=Object(ee.a)({ErrorComponent:tc,getComponent:()=>Object(te.a)(()=>o.e("MonthsToMinutes").then(o.bind(null,"./src/reddit/components/M2M/ACBanner/index.tsx"))).then(e=>e.default),LoadingComponent:tc}),nc=o("./src/reddit/components/PinnedSubscriptions/index.m.less"),rc=o.n(nc),ic=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const sc=Object(Y.createStructuredSelector)({language:e=>e.user.language});const ac=Object(Z.connect)(sc,e=>({onUnpinSubscriptions:()=>e(Object(xe.k)())}));var dc=J()(ac(function(e){return ic("div",{"data-redditstyle":!0,className:e.className},void 0,ic("div",{className:rc.a.title},void 0,ic(wa,{className:rc.a.listHeader},void 0,Object(g.a)(e.language,"header.mySubscriptions")),ic("div",{className:rc.a.unpin,onClick:e.onUnpinSubscriptions},void 0,ic(uo.a,{className:rc.a.icon}))),ic(Ya,{}))})).withConfig({componentId:"seo0sf-0"})(["color: ",";."," {&:hover {background-color: ",";}}."," {fill: ",";}","",""],e=>Object(ct.c)(e).bodyText,rc.a.unpin,e=>Object(ct.c)(e).line,rc.a.icon,e=>Object(ct.c)(e).navIcon,Ca,Ga),cc=o("./src/reddit/components/ThemeProvider/index.tsx"),lc=o("./node_modules/react-motion/lib/react-motion.js");const uc=e=>t=>({source:"toast",action:"view",noun:e}),pc=e=>t=>({source:"toast",action:"click",noun:e,actionInfo:Object.assign({},ft.actionInfo(t),{reason:"primary"})}),mc=e=>t=>({source:"toast",action:"click",noun:e,actionInfo:Object.assign({},ft.actionInfo(t),{reason:"secondary"})});var fc=o("./src/reddit/icons/svgs/SnooFacepalm/index.tsx"),hc=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var gc=e=>hc("svg",{className:e.className,viewBox:"0 0 24 25",xmlns:"http://www.w3.org/2000/svg"},void 0,hc("path",{fill:"#000",d:"M19.7 9.4c-.6.2-1.1 0-1.6-.3-1.3-.8-2.6-1.4-4.2-1.5-1.2-.1-1.8-.1-2.3 0-1.1.2-2.2.4-3.2.7-.6.2-1.1.6-1.7.8-.2.1-.5.2-.7.2-2.3-.6-4.1.2-5.4 2.2-1.1 1.7-.4 4.4.9 5.3.2.2.5.5.5.8.1 2.1 1.2 3.6 2.7 4.8.1.1.2.1.3.2.6.4 1.9 1.2 3 1.5 1.5.5 3 .7 4.5.7 1.5-.1 3-.1 4.4-.6.4-.2 2.3-1.1 3.4-2.2 1.2-1.5 2.3-3 2.5-4.9.1-1 .4-1.8.9-2.7.2-.3.2-.6.3-.9.4-2.5-2-5-4.3-4.1z"}),hc("path",{fill:"#FFF",d:"M20.9 10c-.4-.1-.8 0-1.4 0 1 1.1 1.8 2.1 2.2 3.4-2.2-3.2-5.3-5.1-9.1-5.1s-7 1.6-9.2 4.9c-.1-.3-.3-.6-.2-.7.5-1 1.2-1.9 2.3-2.5-1.7-.5-3.5.4-4.4 2.2-.7 1.4-.3 3.3.9 4.1l.3-1.2c.1-.4.4-.7.6-1 .1.2.1.3 0 .4-.5 1.5-.3 3 .2 4.5.5 1 1.1 2 2.1 2.8 3.9 2.9 9.4 3.6 13.8.5 1.9-1.3 2.9-3.3 3.1-5.7.1-.6.1-1.2.1-1.8.1 0 .1.1.2.1.2-.2.6-.3.7-.5.7-1.7-.4-3.9-2.2-4.4z"}),hc("path",{fill:"#000",d:"M10.1 15.4s-.3-.1-.4-.2l-.6-.6c-.8-.5-1.6-.3-2.2.5-.2.3-.3.5-.5.8-.1.1-.3.2-.5.3-.1-.2-.2-.4-.2-.6.1-.4.3-.7.3-.9 1.1-1.7 3.3-1.8 4.1-.3.1.2.2.3.2.5s-.1.4-.2.5zm3.1 6.5c-2.3 0-4-1.6-4.4-3.4 0-.1.3-.4.6-.5 2-.8 5-1.1 7.2-.4.2.1.5.2.5.3 0 .1-.3.2-.3.3-.4 1.7-1.5 3.7-3.6 3.7zm5.9-6.5c-.1 0-.3-.1-.4-.2-.1 0-.1-.1-.1-.2-.6-.9-1.4-1-2.2-.3-.2.2-.5.2-.7.4.1-.3 0-.7.2-.9.7-.9 1.8-1.1 2.7-.5.2.2.6.9.8 1.4-.1.1-.2.3-.3.3zM16.6.5c-.5-.4-1.4-.7-2.3-.2-.4.2-.7.5-.8.7-.2.7-.2 1.1-.1 1.5-1 1-2.2 1.6-3.6 1.7-.2 0-.4.2-.4.4-.1.5.1.9.4 1.4.5.7.7 1.2.9 1.9V8c.1.2.2.2.4.2.1 0 .2-.1.3-.1.1-.1.1-.2.1-.3v-.2c0-.1-.1-.3-.1-.4-.1-.3-.2-.6-.3-.8-.1-.2-.2-.3-.3-.4-.1-.3-.3-.8-.3-1.1.5-.1 1.1-.2 1.6-.5.4-.2.7-.5 1-.8.2-.2.3-.3.5-.4.4.5.8.7 1.6.8h.2c.4 0 .9-.2 1.3-.5s.6-.8.6-1.4c.1-.6-.2-1.2-.7-1.6z"}),hc("path",{fill:"#FFF",d:"M14 1.9c-.1-.6.4-1.1 1.1-1.2.8-.1 1.4.3 1.5 1 .1.7-.5 1.5-1.1 1.6-.7.1-1.4-.6-1.5-1.4z"})),bc=o("./src/reddit/selectors/structuredStyles.ts"),vc=o("./src/lib/lessComponent.tsx"),yc=o("./src/reddit/connectors/connectToLanguage.ts"),xc=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};const Oc=e=>{const t=xr.a;switch(e.kind){case D.b.Error:case D.b.AuthError:return t.warning;case D.b.SuccessCommunity:return t.op;case D.b.SuccessCommunityGreen:case D.b.SuccessMod:return t.approved;case D.b.EuCookiePolicy:case D.b.UappBanner:case D.b.Undo:return t.op}};var Cc=J()(class extends u.a.Component{componentDidMount(){this.props.sendEvent&&this.props.sendEvent()}render(){const e=this.props,t=(e.kind,e.sendEvent,xc(e,["kind","sendEvent"]));return u.a.createElement("div",t)}}).withConfig({componentId:"s197fe4v-0"})(["align-items: center;background: ",";border: 1px solid ",";border-radius: 4px;box-shadow: 0 2px 15px 0px rgba(0,0,0,0.3);box-sizing: border-box;display: flex;margin-bottom: 12px;min-height: 52px;padding-left: 8px;position: relative;transition: padding 0.3s;width: 476px;&:before {background-color: ",";border: 1px solid ",";border-radius: 4px 0 0 4px;content: '';height: 100%;left: 0;margin: -1px;position: absolute;top: 0;width: 8px;}"],e=>Object(ct.c)(e).body,e=>Object(ct.c)(e).actionIcon,Oc,Oc);const wc="\n height: 25px;\n margin: 0 0 3px 12px;\n width: 24px;\n",jc=J.a.span.withConfig({componentId:"cu1hzx-0"})(["","color: ",";flex: 1;margin: 0 12px;&::first-letter {text-transform: uppercase;}"],st.bodyFont,e=>Object(ct.c)(e).bodyText);var Sc=o("./src/reddit/components/Toaster/index.m.less"),Pc=o.n(Sc),Mc=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Ic=vc.a.wrapped(fc.a,"AuthErrorToastIcon",Pc.a),kc=vc.a.wrapped(rt.d,"AuthErrorToastPrimaryButton",Pc.a);var Nc=Object(yc.a)(class extends u.a.Component{constructor(){super(...arguments),this.handleSubmit=(e=>{e.preventDefault(),window.location.reload(!0)})}render(){const e=this.props;return Mc("form",{onSubmit:this.handleSubmit},void 0,Mc(Cc,{kind:e.toast.kind,style:Object.assign({},e.style,{transform:`\n translateY(${e.style.y}px)\n scale(${e.style.x}, ${e.style.x})\n `})},e.key,Mc(Ic,{}),Mc(jc,{},void 0,Object(g.a)(e.language,"error.genericPage")),Mc(kc,{type:"submit"},void 0,Object(g.a)(e.language,"error.reload"))))}});const Ec=3;var Tc=o("./src/lib/permanentCookieOptions.ts"),Lc=J.a.a.withConfig({componentId:"s15inysy-0"})(["color: ",";"],e=>Object(ct.c)(e).linkText),_c=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Fc=J.a.div.withConfig({componentId:"s1pfx7qz-0"})(["",';background-image: url("','/img/snoo-upvote.png");background-size: 100%;background-repeat: no-repeat;'],wc,s.a.assetPath),Rc=J()(rt.d).withConfig({componentId:"s1pfx7qz-1"})(["margin: 0 12px;"]),Ac=J()(Cc).withConfig({componentId:"s1pfx7qz-2"})(["width: 700px;"]);var $c=Object(yc.a)(class extends u.a.Component{constructor(){super(...arguments),this.handleSubmit=(e=>{e.preventDefault(),c.a.set(kt.b,Ec.toString(),Object(Tc.a)(10)),this.props.onClose()})}render(){const e=this.props;return _c("form",{onSubmit:this.handleSubmit},void 0,_c(Ac,{kind:e.toast.kind,style:Object.assign({},e.style,{transform:`\n translateY(${e.style.y}px)\n scale(${e.style.x}, ${e.style.x})\n `})},e.key,_c(Fc,{}),_c(jc,{},void 0,Object(g.a)(e.language,"euCookiePolicy.text")," ",_c(Lc,{href:"https://www.reddit.com/help/privacypolicy",target:"_blank"},void 0,Object(g.a)(e.language,"euCookiePolicy.linkText")),"."),_c(Rc,{type:"submit"},void 0,Object(g.a)(e.language,"euCookiePolicy.buttonText"))))}}),Dc=o("./src/reddit/components/AccountCompleteness/Icons.tsx"),Bc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Hc=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Qc=J.a.div.withConfig({componentId:"s19b9cg0-0"})(["align-items: center;background: ",";border: 1px solid ",";border-radius: 4px;box-shadow: 0 2px 15px 0px rgba(0,0,0,0.3);box-sizing: border-box;display: flex;margin-bottom: 12px;height: 143px;position: relative;width: 484px;"],e=>Object(ct.c)(e).body,e=>Object(ct.c)(e).actionIcon),Uc=J.a.img.withConfig({componentId:"s19b9cg0-1"})(["height: 100%;width: auto;"]),zc=J.a.div.withConfig({componentId:"s19b9cg0-2"})(["color: ",";box-sizing: border-box;display: flex;flex-direction: column;flex: 1 1 auto;height: 100%;justify-content: space-between;padding: 16px;"],e=>Object(ct.c)(e).bodyText),Gc=J.a.div.withConfig({componentId:"s19b9cg0-3"})(["","opacity: 0.5;height: 12px;text-transform: uppercase;"],st.labelsFont),Vc=Lt.b,Wc=J()(rt.e).withConfig({componentId:"s19b9cg0-4"})(["margin: 0;width: 120px;"]),qc=J()(uo.a).withConfig({componentId:"s19b9cg0-5"})(["cursor: pointer;fill: ",";height: 14px;opacity: 0.3;position: absolute;right: 5px;top: 5px;width: 14px;&:hover {opacity: 0.8;}"],e=>Object(ct.c)(e).button);const Zc=Object(Z.connect)(null,e=>({onSignup:()=>e(Object(rr.b)())}))(class extends u.a.Component{constructor(){super(...arguments),this.onSignup=(e=>{e.stopPropagation(),e.preventDefault(),this.props.onClose(),this.props.onSignup()})}render(){var e=this.props;const t=e.content,o=e.key,n=e.sideImage,r=e.style,i=e.subTitle,s=e.title;return Hc(Qc,{style:Object.assign({},r,{transform:`\n translateY(${r.y}px)\n scale(${r.x}, ${r.x})\n `})},o,Hc(qc,{onClick:this.props.onClose}),Hc(Uc,{src:n}),Hc(zc,{},void 0,Hc(Gc,{},void 0,i),Hc(Lt.g,{},void 0,s),Hc(Vc,{},void 0,t),Hc(Wc,{"data-redditstyle":!0,href:"/register",onClick:this.onSignup},void 0,"Sign Up")))}}),Kc=J()(Dc.d).withConfig({componentId:"s19b9cg0-6"})(["width: 10px;height: 10px;vertical-align: middle;"]),Yc=Object(yc.a)(e=>u.a.createElement(Zc,Bc({sideImage:el("subscribe-milestone.png"),title:Object(g.a)(e.language,"monthsToMinutes.subscribeMilestoneToast.title"),subTitle:Hc(u.a.Fragment,{},void 0,Hc(Kc,{}),Object(g.a)(e.language,"monthsToMinutes.subscribeMilestoneToast.subTitle"),`(${Ra.h}/${Ra.h})`),content:Object(g.a)(e.language,"monthsToMinutes.subscribeMilestoneToast.content")},e))),Xc=Object(yc.a)(e=>u.a.createElement(Zc,Bc({sideImage:el("subscribe-cap.png"),title:Object(g.a)(e.language,"monthsToMinutes.subscribeCapToast.title"),subTitle:null,content:Object(g.a)(e.language,"monthsToMinutes.subscribeCapToast.content")},e))),Jc=Object(yc.a)(e=>u.a.createElement(Zc,Bc({sideImage:el("vote-milestone.png"),title:Object(g.a)(e.language,"monthsToMinutes.voteMilestoneToast.title"),subTitle:Hc(u.a.Fragment,{},void 0,Hc(Kc,{}),Object(g.a)(e.language,"monthsToMinutes.voteMilestoneToast.subTitle"),`(${Ra.i}/${Ra.i})`),content:Object(g.a)(e.language,"monthsToMinutes.voteMilestoneToast.content")},e)));function el(e){return`${s.a.assetPath}/img/banner/${e}`}const tl=3,ol=e=>`${e}:1527210000`;var nl=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const rl=J.a.div.withConfig({componentId:"s3i2djw-0"})(["",';background-image: url("','/img/snoo-upvote.png");background-size: 100%;background-repeat: no-repeat;'],wc,s.a.assetPath),il=J()(rt.d).withConfig({componentId:"s3i2djw-1"})(["margin: 0 12px;"]),sl=J()(Cc).withConfig({componentId:"s3i2djw-2"})(["width: 700px;"]);var al=Object(yc.a)(class extends u.a.Component{constructor(){super(...arguments),this.handleSubmit=(e=>{e.preventDefault(),c.a.set(kt.j,ol(tl),Object(Tc.a)(10)),this.props.onClose()})}render(){const e=this.props;return nl("form",{onSubmit:this.handleSubmit},void 0,nl(sl,{kind:e.toast.kind,style:Object.assign({},e.style,{transform:`\n translateY(${e.style.y}px)\n scale(${e.style.x}, ${e.style.x})\n `})},e.key,nl(rl,{}),nl(jc,{},void 0,"Reddit is updating its ",nl(Lc,{href:"https://www.reddit.com/help/useragreement",target:"_blank"},void 0,"User Agreement")," and ",nl(Lc,{href:"https://www.reddit.com/help/privacypolicy",target:"_blank"},void 0,"Privacy Policy"),".  "),nl(il,{type:"submit"},void 0,Object(g.a)(e.language,"uappBanner.buttonText"))))}}),dl=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const cl=[],ll={stiffness:200,damping:24,precision:.01},ul={opacity:.5,x:.5,y:50},pl={opacity:Object(lc.spring)(0),x:Object(lc.spring)(.6),y:Object(lc.spring)(80,ll)},ml=J()(fc.a).withConfig({componentId:"i53ypl-0"})(["",""],wc),fl=J()(gc).withConfig({componentId:"i53ypl-1"})(["",""],wc),hl=J()(Ts.b).withConfig({componentId:"i53ypl-2"})(["",""],wc),gl=J.a.div.withConfig({componentId:"i53ypl-3"})(["align-items: center;bottom: 0;display: flex;flex-direction: column;justify-content: center;left: 0;margin: auto;position: fixed;right: 0;width: 0;z-index: ",";"],so.t),bl=J()(uo.a).withConfig({componentId:"i53ypl-4"})([""]),vl=J()(Cc).withConfig({componentId:"i53ypl-5"})(["&:before {transition: width 0.3s;}"," {cursor: pointer;fill: ",";height: 16px;left: 4px;opacity: 0;position: absolute;transition: opacity 0.3s;width: 16px;}&:hover {padding-left: 24px;&:before {width: 24px;}"," {opacity: 1;}}"],bl,e=>Object(ct.c)(e).body,bl),yl=Object(Y.createStructuredSelector)({subredditIcon:bc.c,toastSlices:e=>e.toaster}),xl=Object(Z.connect)(yl,e=>({dismissToast:t=>()=>e(Object($.f)(t)),onButtonClick:(t,o)=>()=>{e(t),e(Object($.f)(o))}}));const Ol=(e=[],t)=>t.map(e=>({data:e,key:e.id||(new Date).toString(),style:{opacity:Object(lc.spring)(1),x:Object(lc.spring)(1,ll),y:Object(lc.spring)(0,ll)}})),Cl=(e,t)=>{switch(e.kind){case D.b.Error:return dl(ml,{});case D.b.SuccessCommunity:case D.b.SuccessCommunityGreen:return dl(fl,{});case D.b.SuccessMod:return dl(hl,{primaryColor:t.color,iconUrl:t.url})}},wl={[D.a.subscribeMilestone]:Yc,[D.a.subscribeCap]:Xc,[D.a.voteMilestone]:Jc};var jl=xl(Object(ot.b)(class extends u.a.Component{constructor(){super(...arguments),this.getStyles=(e=>Ol(e,this.props.toastSlices)),this.getWillEnterStyles=(()=>ul),this.getWillLeaveStyles=(()=>pl)}render(){return this.props.toastSlices.length?dl(lc.TransitionMotion,{defaultStyles:cl,styles:this.getStyles,willLeave:this.getWillLeaveStyles,willEnter:this.getWillEnterStyles},void 0,e=>dl(gl,{},void 0,e.map(e=>{const t=e.data,o=Object.assign({},e.style,{transform:`\n translateY(${e.style.y}px)\n scale(${e.style.x}, ${e.style.x})\n `});if(t.kind===D.b.Custom&&void 0!==t.customToastType){const n=wl[t.customToastType];return dl(n,{toast:t,style:o,onClose:this.props.dismissToast(t.id)},e.key)}return t.kind===D.b.UappBanner?dl(al,{toast:t,style:o,onClose:this.props.dismissToast(t.id)},e.key):t.kind===D.b.EuCookiePolicy?dl($c,{toast:t,style:o,onClose:this.props.dismissToast(t.id)},e.key):t.kind===D.b.AuthError?dl(Nc,{toast:t,style:o,onClose:this.props.dismissToast(t.id)},e.key):dl(vl,{kind:t.kind,sendEvent:t.name?()=>this.props.sendEvent(uc(t.name)):void 0,style:o},e.key,Cl(t,this.props.subredditIcon),dl(jc,{},void 0,t.text),t.buttonText&&t.buttonAction&&dl(rt.l,{onClick:()=>{this.props.onButtonClick(t.buttonAction,t.id)(),t.name&&this.props.sendEvent(pc(t.name))}},void 0,t.buttonText),t.secondButtonText&&t.secondButtonAction&&dl(rt.l,{onClick:()=>{this.props.onButtonClick(t.secondButtonAction,t.id)(),t.name&&this.props.sendEvent(mc(t.name))}},void 0,t.secondButtonText),dl(bl,{onClick:this.props.dismissToast(t.id)}))}))):null}}));var Sl=J.a.div.withConfig({componentId:"s1lkv2ze-0"})(["","z-index: ",";"],st.titleFontH6,so.i),Pl=o("./src/reddit/components/AlertBanner/index.m.less"),Ml=o.n(Pl),Il=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const kl=e=>Il(Sl,{className:Object(be.a)(Ml.a.wrapper,Ml.a.suspended)},void 0,Il("span",{},void 0,Object(g.a)(e.language,"alertBanner.suspendedMessage")," "),Il("a",{className:Ml.a.underlineLink,href:"https://www.reddithelp.com/en/node/851"},void 0,Object(g.a)(e.language,"alertBanner.learnMore"))),Nl=e=>Il(Sl,{className:Object(be.a)(Ml.a.wrapper,Ml.a.fpr)},void 0,Il("span",{},void 0,Object(g.a)(e.language,"alertBanner.FPRMessage")," "),Il("a",{className:Ml.a.underlineLink,href:"https://www.reddithelp.com/en/categories/using-reddit/your-reddit-account/my-account-was-disabled"},void 0,Object(g.a)(e.language,"alertBanner.learnMore")));var El=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Tl=Object(Y.createStructuredSelector)({isOverlayOpen:Pt.h,language:B.M});var Ll=Object(Z.connect)(Tl)(class extends u.a.PureComponent{constructor(e){super(e),this.state={isMounted:!1}}componentDidMount(){this.setState({isMounted:!0})}render(){var e=this.props;const t=e.language,o=e.showFPR,n=e.showSuspended;return o?El(Nl,{language:t}):n?El(kl,{language:t}):null}}),_l=o("./src/reddit/components/AlertBanner/heights.ts"),Fl=o("./src/reddit/constants/elementIds.ts"),Rl=o("./src/reddit/contexts/InsideOverlay.tsx"),Al=o("./src/reddit/contexts/Language.tsx"),$l=o("./src/reddit/models/Theme/index.ts"),Dl=o("./src/reddit/components/AppRouter/index.m.less"),Bl=o.n(Dl),Hl=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),Ql=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};const Ul=J()(Ld).withConfig({componentId:"s1x3ofg4-0"})(["flex: 0;left: 0;position: fixed;right: 0;top: 0;z-index: ",";"],so.i),zl=J()(e=>{e.isSubscriptionsPinned,e.isPartnerSubredditConnectionPage;var t=Ql(e,["isSubscriptionsPinned","isPartnerSubredditConnectionPage"]);return u.a.createElement("div",t)}).withConfig({componentId:"s1x3ofg4-1"})(["padding-left: ","px;"," {background-color: ",";position: fixed;left: 0;bottom: 0;width: ","px;overflow-y: scroll;overflow-x: hidden;z-index: ",";}"],e=>e.isSubscriptionsPinned&&!e.isPartnerSubredditConnectionPage?ed.H:0,dc,e=>Object(ct.c)(e).body,ed.H,so.s),Gl=J.a.div.withConfig({componentId:"s1x3ofg4-2"})(["bottom: 0;height: 100%;left: 0;position: fixed;backface-visibility: hidden; /* improves performance by preventing incremental repaints */right: 0;top: 0;width: 100%;z-index: ",";&:focus {outline: none;}"],so.n),Vl=J.a.div.withConfig({componentId:"s1x3ofg4-3"})(["background: ",";box-sizing: border-box;height: ","px;left: 0;margin: -","px auto 0;max-width: ","px;padding-top: ","px;position: fixed;right: 0;top: 0;width: calc(100% - ","px);z-index: ",";"],xr.a.lightboxHeaderBg,ed.j+300,300,ed.n,300,2*ed.l,so.p),Wl=J()(e=>{var t=Ql(e,[]);return u.a.createElement("div",t)}).withConfig({componentId:"s1x3ofg4-4"})(["background-color: ",";bottom: 0;height: 100%;left: 0;position: fixed;right: 0;width: 100%;z-index: ",";&.m-commentspage {&:after {background: ",";bottom: 0;content: '';height: 100%;left: 0;margin: 0 auto;max-width: ","px;position: fixed;right: 0;top: 0;width: calc(100% - ","px);}}"],xr.a.overlayBackground,so.n,e=>Object($l.g)(Object(ct.c)(e).canvas,Object(ct.c)(e).canvasImgUrl,Object(ct.c)(e).canvasImgPosition),ed.n,2*ed.l),ql=Object(Z.connect)(()=>Object(Y.createStructuredSelector)({currentPage:e=>e.platform.currentPage,hasInvalidSession:B.s,language:e=>e.user.language,isPartnerSubredditConnectionPage:e=>Object(Lo.G)(e.platform.currentPage),isSubscriptionsPinned:nd.b,isSuspended:B.J,isFPR:B.E,showAccountCompletenessInBottom:e=>{const t=Object(yd.c)(e);return!!t&&!!Object(Vt.m)(e)&&(Object(yd.a)(t)||Object(yd.b)(t)&&!Object(Vt.b)(e))}}),e=>({fetchSubscriptions:()=>{e(Object(we.h)()),e(Object(Ce.q)()),e(Object(Oe.g)())},onClickOutsideOverlay:t=>e(Object(p.b)(t)),onUnpinSubscriptions:()=>e(Object(xe.k)())})),Zl=(e,t)=>!(!e.state||!e.state[no.a.IsOverlay]||t===e),Kl=(e,t)=>{e.key;const o=Ql(e,["key"]),n=(t.key,Ql(t,["key"]));return pe()(o,n)};const Yl=Object(ot.b)(e=>{const t={showFPR:e.isFPR,showSuspended:e.isSuspended};return Hl(l.Fragment,{},void 0,u.a.createElement(Ll,t),Hl(Ul,{className:Object(be.a)(Bl.a.header,Object(_l.a)(Bl.a,t))}))}),Xl=Object(ot.b)(class extends u.a.Component{shouldComponentUpdate(e,t){return!this.locationsEqual(this.props.location,e.location)||!this.pagesEqual(this.props.page,e.page)||this.props.isSubscriptionsPinned!==e.isSubscriptionsPinned}locationsEqual(e,t){const o=fe()(e,"key"),n=fe()(t,"key");return pe()(o,n)}pagesEqual(e,t){if(e&&t){const o=fe()(e,["key","locationState"]),n=fe()(t,["key","locationState"]);return pe()(o,n)}return!1}render(){var e=this.props;const t=e.location,o=e.routes,n=e.overlayIsOpen,r=e.isPartnerSubredditConnectionPage,i=e.isSubscriptionsPinned;return Hl(zl,{"aria-hidden":n,className:Object(be.a)(Bl.a.main,Object(_l.a)(Bl.a,this.props)),isSubscriptionsPinned:i,isPartnerSubredditConnectionPage:r},void 0,i&&!r&&Hl(dc,{className:Object(be.a)(Bl.a.pinnedSubscriptions,Object(_l.a)(Bl.a,this.props)),"data-redditstyle":!0}),Hl(K.d,{location:t},void 0,o))}});class Jl extends u.a.Component{constructor(e){super(e),this.mouseDownInWrapper=!1,this.handleWebkitFullscreenChange=(e=>{this.setState({mediaIsFullscreen:null!==document.webkitFullscreenElement})}),this.overlayRefFn=(e=>this.overlayScrollContainerEl=e),this.onOverlayMouseUp=(e=>{if(this.mouseDownInWrapper&&Object(ye.a)(e)&&0===e.button&&e.target===this.overlayScrollContainerEl){var t=this.props;const e=t.location;(0,t.onClickOutsideOverlay)(e.state[no.a.CloseLocation])}}),this.onOverlayMouseDown=(e=>{this.mouseDownInWrapper=e.target===this.overlayScrollContainerEl&&e.clientX<=window.innerWidth-17}),this.state={mediaIsFullscreen:!1}}componentDidMount(){document.addEventListener("webkitfullscreenchange",this.handleWebkitFullscreenChange)}componentWillUnmount(){document.removeEventListener("webkitfullscreenchange",this.handleWebkitFullscreenChange)}render(){var e=this.props;const t=e.page,o=e.routes,n=!(!t||!t.meta||t.meta.name===x.Rb.SUBREDDIT_CREATION);return Hl(Wl,{className:Object(be.a)(Bl.a.overlayContentWrapper,Object(_l.a)(Bl.a,this.props),{"m-commentspage":n})},void 0,n&&Hl(Vl,{"data-redditstyle":!0,className:Object(be.a)(Bl.a.lightboxHeaderWrapper,Object(_l.a)(Bl.a,this.props))},void 0,Hl(ec,{page:t})),Hl(Gl,{className:Object(be.a)(Bl.a.overlayWrapper,Object(_l.a)(Bl.a,this.props))},void 0,u.a.createElement("div",{className:Object(be.a)(Bl.a.overlayScrollContainer,{[Bl.a.mediaIsFullscreen]:this.state.mediaIsFullscreen}),id:Fl.d,ref:this.overlayRefFn,onMouseDown:this.onOverlayMouseDown,onMouseUp:this.onOverlayMouseUp},Hl(K.d,{},void 0,o),Hl("div",{className:Bl.a.bottomSpacer}))))}}var eu=ql(Object(ot.b)(class extends u.a.Component{constructor(e){super(e),this.previousHistory=this.props.history,this.previousLocation=this.props.location,this.previousPage=this.props.currentPage,this.isNarrowScreen=!1,this.isWideScreen=!1,this.resizeHandler=ge()(()=>{const e=window.innerWidth;this.props.isSubscriptionsPinned&&e<ed.w&&this.props.onUnpinSubscriptions()},x.K)}componentDidMount(){this.resizeHandler(),window.addEventListener("resize",this.resizeHandler)}componentWillUpdate(e){const t=this.props.location,o=t.state&&t.state[no.a.IsOverlay],n=Kl(this.previousLocation,e.location),r=Kl(this.previousLocation,this.props.location);"POP"===e.history.action||o||n||r||(this.previousHistory=this.props.history,this.previousLocation=this.props.location,this.previousPage=this.props.currentPage);const i=Zl(e.location,this.previousLocation);ve.a.write(()=>{document.body.style.overflow=i?"hidden":""})}render(){var e=this.props;const t=e.currentPage,o=e.hasInvalidSession,n=e.isFPR,r=e.isPartnerSubredditConnectionPage,i=e.isSubscriptionsPinned,s=e.isSuspended,a=e.language,d=e.location,c=e.onClickOutsideOverlay,u=e.routes,p=e.showAccountCompletenessInBottom,m=Zl(d,this.previousLocation);d.state&&d.state[no.a.IsOverlay]&&!m?d.state[no.a.IsOverlay]=!1:d.state&&(this.previousLocation===d||d.state[no.a.CloseLocation]&&this.previousLocation.state&&this.previousLocation.state[no.a.CloseLocation]&&this.previousLocation.state[no.a.CloseLocation]===d.state[no.a.CloseLocation]?d.state[no.a.CloseLocation]=Object.assign({},this.previousLocation,{state:fe()(this.previousLocation.state,no.a.CloseLocation)}):d.state[no.a.CloseLocation]=this.previousLocation);const f=Kl(this.previousLocation,d),h=m||f?this.previousLocation:d,b=m||f?this.previousPage:t,v=!(!(b&&b.meta&&b.meta.name===x.Rb.SEARCH_RESULTS&&b&&b.queryParams)||b.queryParams[io.o]),y=!(!b||!b.meta||b.meta.name!==x.Rb.MODERATION_PAGES),O=Object(Lo.z)(b);return o?Object(g.a)(a,"session.invalid"):Hl(Al.a.Provider,{value:a},void 0,Hl(Lo.a.Provider,{value:b},void 0,Hl(cc.a,{forceRedditTheme:v},void 0,Hl(Yl,{isFPR:n,isSuspended:s}))),Hl(Lo.a.Provider,{value:b},void 0,Hl(Rl.a.Provider,{value:!1},void 0,Hl(cc.a,{forceRedditTheme:v||y,isCommentsPage:O},void 0,Hl(Xl,{isPartnerSubredditConnectionPage:r,isSubscriptionsPinned:i,location:h,overlayIsOpen:m,page:b,routes:u,showFPR:n,showSuspended:s})))),Hl(Lo.a.Provider,{value:t},void 0,m&&Hl(Rl.a.Provider,{value:!0},void 0,Hl(cc.a,{isOverlay:!0},void 0,Hl(Jl,{location:d,onClickOutsideOverlay:c,page:t,routes:u,showFPR:n,showSuspended:s}))),Hl(cc.a,{},void 0,Hl(l.Fragment,{},void 0,Hl(jl,{}),p&&Hl(oc,{}),Hl(Kt,{}),Hl(zn,{})))))}})),tu=o("./node_modules/lodash/noop.js"),ou=o.n(tu),nu=o("./node_modules/prop-types/index.js"),ru=o.n(nu),iu=o("./node_modules/react-shortcuts/lib/index.js"),su=o("./src/reddit/constants/shortcuts.ts");const au={[su.c.OpenIndex]:{osx:["cmd + ?","?"],windows:["ctrl + ?","?"],linux:["ctrl + ?","?"],other:["ctrl + ?","?"]},[su.c.Close]:"esc",[su.c.Konami]:"up up down down left right left right b a enter"},du={[su.c.Upvote]:"a",[su.c.Downvote]:"z",[su.c.Save]:"s",[su.c.Hide]:"h",[su.c.OpenLink]:"l"},cu={[su.c.CollapseOrLoad]:"enter",[su.c.NextComment]:"j",[su.c.PrevComment]:"k",[su.c.Reply]:"r"};var lu={[su.d.CommentPage]:Object.assign({},au,du,cu),[su.d.Global]:Object.assign({},au),[su.d.Lightbox]:Object.assign({},au,du,cu,{[su.c.NextPost]:"n",[su.c.PrevPost]:"p"}),[su.d.Listing]:Object.assign({},au,du,{[su.c.OpenLightbox]:"enter",[su.c.NextPost]:"j",[su.c.PrevPost]:"k",[su.c.Expando]:"x",[su.c.NewPost]:"c",Reserved:["n","p","r"]}),[su.d.Modqueue]:Object.assign({},au,du,{[su.c.OpenLightbox]:"enter",[su.c.NextPost]:"j",[su.c.PrevPost]:"k",[su.c.Expando]:"x",[su.c.NewPost]:"c"})};const uu={[su.c.Close]:Ja.d,[su.c.CollapseOrLoad]:Ja.e,[su.c.Downvote]:Ja.f,[su.c.Expando]:Ja.g,[su.c.Hide]:Ja.h,[su.c.NextComment]:Ja.j,[su.c.NextPost]:Ja.k,[su.c.NewPost]:Ja.i,[su.c.OpenIndex]:Ja.l,[su.c.OpenLightbox]:Ja.m,[su.c.OpenLink]:Ja.n,[su.c.PrevComment]:Ja.o,[su.c.PrevPost]:Ja.p,[su.c.Reply]:Ja.q,[su.c.Save]:Ja.s,[su.c.Upvote]:Ja.t,[su.c.Konami]:null},pu=(e,t)=>(o,n)=>{if(!document.activeElement)return;const r=document.activeElement.nodeName;if("INPUT"===r||"TEXTAREA"===r||"BUTTON"===r&&su.a.includes(n.which))return;const i=uu[o];i&&e(i(t))};var mu=o("./src/reddit/components/ShortcutWrapper/index.m.less"),fu=o.n(mu),hu=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const gu=({children:e})=>hu("div",{className:fu.a.shortcutDiv,id:su.b,tabIndex:-1},void 0,u.a.Children.only(e)),bu=new iu.ShortcutManager(lu),vu=Object(Y.createStructuredSelector)({isBladeOpen:bc.i,namespace:e=>e.activeModalId?su.d.Global:e.shortcuts.namespace}),yu=Object(Z.connect)(vu,e=>({dispatchAction:t=>e(t)}));class xu extends l.Component{getChildContext(){return{shortcuts:bu}}componentDidMount(){const e=document.getElementById(su.b);if(e){const t=window.scrollX,o=window.scrollY;e.focus(),window.scrollTo(t,o)}}render(){var e=this.props;const t=e.children,o=e.dispatchAction,n=e.isBladeOpen,r=e.namespace,i=e.sendEvent;return hu(iu.Shortcuts,{handler:n?ou.a:pu(o,i),isolate:!0,name:r},void 0,hu(gu,{},void 0,t))}}xu.childContextTypes={shortcuts:ru.a.object.isRequired};var Ou=yu(Object(ot.b)(xu)),Cu=o("./src/reddit/components/Header/Sparse.tsx"),wu=o("./src/reddit/constants/screenWidths.ts"),ju=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),Su=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),Pu=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};const Mu=Object(Y.createStructuredSelector)({language:B.M,showError:Et.d.showVerboseErrors}),Iu=Object(Z.connect)(Mu),ku=J()(e=>ju("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52 52"},void 0,ju("path",{d:"M19.39,15.71a31.37,31.37,0,0,0-3.08,1.53,2.24,2.24,0,0,1-1.34.23c-4.27-1.06-7.54.28-10,4-2.09,3.17-.74,8,1.58,9.76a2.39,2.39,0,0,1,.91,1.53,12.18,12.18,0,0,0,5,8.87c.16.13.33.24.49.35a25.65,25.65,0,0,0,5.52,2.81A24,24,0,0,0,26.83,46c2.74-.09,5.49-.1,8.06-1.18a22.6,22.6,0,0,0,6.25-4c2.21-2.67,4.31-5.45,4.62-9a11.29,11.29,0,0,1,1.64-4.91,4.66,4.66,0,0,0,.54-1.58c.78-4.68-3.5-9.17-7.84-7.57a3.37,3.37,0,0,1-3-.49,18.33,18.33,0,0,0-7.63-2.81A25.61,25.61,0,0,0,19.39,15.71Z"}),ju("path",{fill:"#fff",d:"M42.39,18.88a12.75,12.75,0,0,0-2.48,0c1.76,2.1,3.33,3.86,4,6.23-4-5.95-9.64-9.32-16.71-9.37a19.14,19.14,0,0,0-17,9.06c-.17-.53-.51-1-.38-1.3A9.3,9.3,0,0,1,14,18.94c-3-1.13-6.34.54-8,3.85-1.29,2.58-.52,6.08,1.74,7.5a18.14,18.14,0,0,1,.55-2.24,15.4,15.4,0,0,1,1-1.9.86.86,0,0,1,.07.69,12.41,12.41,0,0,0,.4,8.24,11.06,11.06,0,0,0,3.82,5.31c7.18,5.27,17.21,6.56,25.28.91a13.72,13.72,0,0,0,5.77-10.45c.1-1.13.1-2.26.15-3.4l.3.27c.44-.29,1.12-.49,1.3-.9A6.06,6.06,0,0,0,42.39,18.88Z"}),ju("path",{d:"M19.48,28.09a.73.73,0,0,1,.59-1q1.37.39.64,1.66a1.91,1.91,0,0,1-2.8.67c-2-1.53-.17-4,1.61-4.15a2.88,2.88,0,0,1,3,3.41,3.68,3.68,0,0,1-2.47,2.56,3.86,3.86,0,0,1-5.37-3.12c-.24-2.18,1.25-3.73,3.12-4.49,1.66-.67,5.58.83,4.89.44-2.7-1.49-5.73-2.15-7.86.32a5.19,5.19,0,0,0,.37,7c1.65,1.53,4.28,1.38,6.15.39s3.15-4,1.6-5.89-4.84-2.39-6.4-.19-.52,4.82,2.15,5.12c2,.22,4.63-2.84,2.55-4.43-1.5-1.15-4.32.86-2.79,2.32.48.46,1.46-.13,1-.59Z"}),ju("path",{d:"M35.66,28.69c1.52-1.26.33-3.28-1.64-3.11-2.66.22-1.83,4.41.31,4.94,2.65.66,4.41-1.6,3.67-4.09s-4.31-3.3-6.24-1.53a3.94,3.94,0,0,0-.08,5.78,5.4,5.4,0,0,0,5.93.89c2.34-1.08,2.85-4.35,2-6.51-.54-1.3-1.64-1.74-2.91-2.18a6.19,6.19,0,0,0-4.81.49c-.52.38,3-.45,4.61.24a3.87,3.87,0,0,1,2.4,4.73c-.53,2.68-3.49,3.31-5.66,2.21a3,3,0,0,1,1.5-5.64,2.66,2.66,0,0,1,2,4.18c-1,1.2-2.88.44-3.33-.84a1.29,1.29,0,0,1,.92-1.69c.68-.06,1.14.68.33,1.25C34.08,28.17,34.85,29.36,35.66,28.69Z"}),ju("path",{d:"M27.48,14.55a23.72,23.72,0,0,1-5.89-.24c-2.93-.77-.16-2.12,1-2.52a23.39,23.39,0,0,1,6.7-1c1.71-.05,4.47-.62,5.54,1.06a13.86,13.86,0,0,1-5.86.71c-1.18-.08-4.66-.14-5.34-1.35-.59-1,.88-2.95,1.86-3a11.48,11.48,0,0,1,2.11.15c.67.07.59-.94,0-1A6.33,6.33,0,0,0,23.36,8a2.55,2.55,0,0,0-.27,4.23c2.39,1.83,7.34,1.61,10.07,1.1,1.23-.23,4-.56,2.91-2.43-.68-1.15-2.46-1.07-3.6-1.08a31.33,31.33,0,0,0-11.3,1.47c-2.62,1-3.87,2.91-.4,4a14.5,14.5,0,0,0,4.86.4l1.85-.09C28.1,15.52,28.13,14.52,27.48,14.55Z"}),ju("path",{d:"M30.73,5.14a3.35,3.35,0,0,0-4.43-.85,3,3,0,0,0-.72,3.93c.77,1.16,3.31,1.48,4.39.7A2.63,2.63,0,0,0,30.73,5.14Z"}),ju("path",{fill:"#fff",d:"M29.34,7.94c-.52.7-1.71.34-2.39.11-1-.34-1-2.35-.18-2.9a1.79,1.79,0,0,1,2.23,0,2.34,2.34,0,0,1,1,1.18C30.21,6.87,29.61,7.57,29.34,7.94Z"}),ju("path",{d:"M31.51,35.16c-5.18.72-4.85-2.84-9.7-1.22-3,1-3,4.65-.45,6.32,3.2,2.09,9.08.72,11,.24C36.87,39.38,36.72,34.43,31.51,35.16Z"}))).withConfig({componentId:"s3ps6uc-0"})(["height: 60px;width: 60px;"]),Nu=J.a.div.withConfig({componentId:"s3ps6uc-1"})(["background-color: ",";display: flex;flex-direction: column;align-items: center;justify-content: center;position: absolute;top: 0;bottom: 0;left: 0;right: 0;z-index: 0;"],e=>Object(ct.c)(e).canvas),Eu=J.a.div.withConfig({componentId:"s3ps6uc-2"})(["color: ",";display: flex;flex-direction: column;align-items: center;justify-content: center;padding: 20px;position: relative;text-align: center;z-index: 99;"],e=>Object(ct.c)(e).bodyText),Tu=J.a.h3.withConfig({componentId:"s3ps6uc-3"})(["","margin-bottom: 8px;margin-top: 20px;"],st.titleFontH3),Lu=J.a.div.withConfig({componentId:"s3ps6uc-4"})(["","margin-bottom: 40px;"],st.metadataFont),_u=J.a.img.withConfig({componentId:"s3ps6uc-5"})(["height: auto;width: 100%;"]),Fu=J.a.div.withConfig({componentId:"s3ps6uc-6"})(["padding: 0 40px;position: absolute;@media(max-width: ","px) {display: none;}@media(max-height: 600px) {display: none;}"],wu.e),Ru=J()(Fu).withConfig({componentId:"s3ps6uc-7"})(["top: ","px;"],ed.j+40),Au=J()(Fu).withConfig({componentId:"s3ps6uc-8"})(["bottom: 0;max-width: ","px;"],wu.g),$u=Iu(e=>{var t=e.language,o=Pu(e,["language"]);return Su(Rl.a.Provider,{value:!1},void 0,Su(cc.b,{subredditName:""},void 0,Su("div",{},void 0,Su(Cu.a,{}),Su(Nu,{},void 0,Su(Eu,{},void 0,Su(ku,{}),Su(Tu,{},void 0,Object(g.a)(t,"error.type.server")),Su(Lu,{},void 0,Object(g.a)(t,"error.tryLater")),Su(rt.d,{onClick:()=>window.location.reload(!0)},void 0,Object(g.a)(t,"error.reload")),o.showError&&Su(Lu,{},void 0,o.error.message)),Su(Ru,{},void 0,Su(_u,{src:`${s.a.assetPath}/img/error/star_pattern.png`})),Su(Au,{},void 0,Su(_u,{src:`${s.a.assetPath}/img/error/half_planet.png`}))))))});var Du=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Bu=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();const Hu=Object(Y.createStructuredSelector)({theme:e=>e.themes.current}),Qu=J.a.div.withConfig({componentId:"xvmxia-0"})(["background-color: ",";min-height: calc(100vh - ",'px);&:after {content: " ";position: fixed;top: 100%;left: 0;right: 0;height: 200px;background-color: ',";}"],e=>Object(ct.c)(e).body,ed.j,e=>Object(ct.c)(e).canvas),Uu=Object(Z.connect)(Hu,{})(Qu);var zu=e=>{if(e.ok){const t=e.RouterComponent,o=e.routes;return Bu(ot.a,{},void 0,Bu(Uu,{},void 0,Bu(le,{}),Bu(de,{}),Bu(Ou,{},void 0,Bu(t,{},void 0,Bu(K.b,{component:Gu(o)})))))}return Bu($u,{error:e.error})};const Gu=e=>t=>u.a.createElement(eu,Du({routes:e},t));var Vu=o("./src/reddit/constants/localStorage.ts");const Wu=1e3;class qu extends u.a.Component{constructor(){super(...arguments),this.flush=ge()(()=>Object(zt.D)(this.props.storageKey,this.props.value),Wu)}componentDidMount(){this.props.syncOnMount&&this.sync()}componentDidUpdate(){this.sync()}sync(){this.props.enabled&&this.flush()}render(){return null}}qu.defaultProps={enabled:!0,syncOnMount:!0};const Zu=Object(Y.createSelector)(yd.c,B.F,(e,t)=>({storageKey:Vu.i,value:{[oo.f]:e},enabled:!t}));var Ku=Object(Z.connect)(Zu)(qu),Yu=o("./src/reddit/selectors/index.ts");const Xu=Object(Yu.a)(Vt.h,Vt.y,Vt.r,Vt.s,Vt.t,Vt.d,Vt.C,(e,t,o,n,r,i,s)=>({storageKey:Vu.l,value:{loggedOutV3:{accountCompleteness:i,homeFeed:o,subreddits:t,tooltip:s,views:n,votes:r}},shouldSync:e,syncOnMount:!1}));var Ju=Object(Z.connect)(Xu)(qu);const ep=Object(Y.createSelector)(Vt.I,e=>({storageKey:Vu.q,value:e}));var tp=Object(Z.connect)(ep)(qu),op=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();var np=()=>op(u.a.Fragment,{},void 0,op(Ju,{}),op(Ku,{}),op(tp,{})),rp=o("./src/reddit/constants/jsapiEvents.ts"),ip=o("./src/reddit/contexts/AdminEvents.ts"),sp=o("./src/reddit/contexts/ApiContext.tsx"),ap=o("./node_modules/brcast/dist/brcast.es.js"),dp=o("./src/telemetry/helpers/sendEvent.ts");var cp="undefined"!=typeof document?()=>{let e=!1;const t=Object(ap.a)([]);return{broadcaster:t,middleware:o=>{const n=o.getState();return(Object(oe.b)(n)||Object(B.D)(n))&&(e=!0,Object(dp.c)(t)),n=>r=>{const i=n(r),s=o.getState();if(!Object(oe.b)(s)){const o=Object(B.D)(s);e&&!o?(e=!1,Object(dp.c)(void 0),t.setState([])):o&&!e&&(t.setState([]),Object(dp.c)(t),e=!0)}return i}}}}:()=>({broadcaster:Object(ap.a)([]),middleware:()=>e=>t=>e(t)}),lp=o("./node_modules/lodash/pick.js"),up=o.n(lp),pp=o("./src/lib/makeActionCreator/index.ts");Object(pp.a)("THEME_CHANGED");const mp=new Set([cr.f,cr.h,"THEME_CHANGED",q.b,cr.c,xe.e,xe.f]);var fp=e=>t=>o=>{const n=t(o);if(mp.has(o.type)){const t=e.getState().user,o={prefs:up()(t.prefs,["hamburgerTray","globalTheme","featuresViewedHistory","collapsedTraySections","nightmode","subscriptionsPinned"]),language:t.language},n=new Date;n.setFullYear(n.getFullYear()+2),c.a.set(kt.k,btoa(JSON.stringify(o)),{expires:n,domain:s.a.cookieDomain})}return n},hp=(o("./node_modules/url/url.js"),o("./src/reddit/helpers/getSubredditErrorProps/index.ts"));o("./src/reddit/models/Comment/index.ts"),o("./src/reddit/models/Post/index.ts"),o("./src/reddit/selectors/comments.ts"),o("./src/reddit/selectors/posts.ts"),o("./src/reddit/selectors/profile.ts"),function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103}();const gp=new Set([302,400,401,403,404,421,429,500,502,503,504,0,void 0,null]),bp=e=>{const t=e.platform.currentPage,o=Object(Pt.c)(e),n=gp.has(o),r=Object(Lo.m)(e,{pageLayer:t}),i=!(!r||!r.hideFromRobots),s=vp(e),a=t&&t.isRobotIndexable;return!!(i||n||s||!1===a)},vp=e=>{let t=!1;const o=Object(Pt.e)(e);if(o){const n=Object(B.R)(e),r=Object(Pt.f)(e),i=r&&r.isNSFW&&!n,s=Object(B.e)(e,o);t=!!Object(hp.a)(s,!!i,o)}return t};var yp="undefined"!=typeof document?e=>t=>o=>{const n=t(o);if(o.type===V.e){const t=e.getState(),n=o.payload.meta;ve.a.write(()=>{document.title=n.title,((e,t)=>{if(t.head){const o=t.querySelector("meta[name='robots']"),n=bp(e),r=t.head;if(o&&!n&&(o.remove?o.remove():o.parentNode?o.parentNode.removeChild(o):r.removeChild&&r.removeChild(o)),!o&&n){const e=t.createElement("meta");e.name="robots",e.content="noindex,nofollow",r.appendChild(e)}}})(t,document)})}return n}:()=>e=>t=>e(t),xp=o("./src/reddit/actions/vote.ts");var Op=e=>t=>{let o;return n=>{const r=t(n);return n.type!==xp.a&&n.type!==we.e||(clearTimeout(o),o=setTimeout(()=>{e.dispatch(Object(Tt.u)(n))},Ra.f)),r}},Cp=o("./src/reddit/actions/frontpage.ts"),wp=o("./src/reddit/actions/originalContent.ts"),jp=o("./src/reddit/actions/pages/collectionCommentsPage.ts"),Sp=o("./src/reddit/actions/pages/news/index.ts"),Pp=o("./src/reddit/actions/pages/originalContent.ts"),Mp=o("./src/reddit/actions/pages/profileComments.ts"),Ip=o("./src/reddit/actions/pages/profileOverview.ts"),kp=o("./src/reddit/actions/pages/profilePosts.ts"),Np=o("./src/reddit/actions/pages/subreddit.ts"),Ep=o("./src/reddit/actions/profileConversations.ts"),Tp=o("./src/reddit/actions/profileOverviewChrono.ts"),Lp=o("./src/reddit/actions/recommendations.ts"),_p=o("./src/reddit/actions/search.ts");const Fp=new Set([jp.b,Ps.b,Sp.b,Mp.b,Mp.e,Ip.e,Ip.b,kp.e,kp.b,Np.b,Ps.g,Ps.l,Pp.b,Oe.b,wp.e,wp.h,Cp.b,Ep.e,Lp.b,Ce.i,_p.c,Tp.b,Ps.q]);var Rp=e=>t=>o=>{const n=t(o),r=e.getState();return Fp.has(o.type)&&r.user.loggedOutData&&Object(Vt.u)(r)&&e.dispatch(Object(Tt.r)(r.user.loggedOutData.votes)),n};const Ap=5*x.kb;var $p=e=>{const t=ge()(()=>{const t=e.getState().user.session,o=new Date(t.expires),n=new Date;o.getTime()-n.getTime()>.2*t.expiresIn*1e3||e.dispatch(W.g())},Ap);let o,n;const r=()=>{const o=e.getState().user.session;if(!o||!n)return;const r=new Date(o.expires),i=n+Math.floor(.8*(r.getTime()-n));Date.now()>i&&t&&t()},i=e=>{n=Date.now();const r=new Date(e.expires).getTime()-n,i=.8+.1*Math.random(),s=Math.min(Math.floor(i*e.expiresIn*1e3),Math.floor(i*r));o=setTimeout(t,s)},s=e.getState();return s.user.session&&i(s.user.session),window.addEventListener("focus",r),window.addEventListener("touchend",r),document.body.addEventListener("mouseenter",r),e=>t=>(t.type!==W.a&&t.type!==W.b&&t.type!==W.c&&t.type!==W.e||i(t.payload),t.type===W.d&&(clearTimeout(o),o=null),e(t))},Dp=o("./node_modules/lodash/without.js"),Bp=o.n(Dp),Hp=o("./src/reddit/actions/tracking.ts"),Qp=o("./src/reddit/helpers/getPostFromRouteMatch/index.ts"),Up=o("./src/reddit/helpers/trackers/commentList.ts"),zp=o("./src/reddit/helpers/trackers/postList.ts"),Gp=o("./src/reddit/helpers/trackers/screenview.ts"),Vp=o("./src/lib/makeSearchKey/index.ts"),Wp=o("./src/reddit/helpers/routeKey/index.ts");var qp=e=>t=>o=>{const n=t=>{e.getState().tracking.viewportDataLoaded[t]||e.dispatch(Hp.c({routeKey:t}))};if(o.type===V.a){const n=e.getState(),r=(n.platform.currentPage.urlParams.subredditName||"").toLowerCase(),s=Object(Ys.z)(n,r)||"",a=(n.subreddits.about[s]||{}).advertiserCategory;i.trigger("pageview",Object.assign({},up()(o.payload.location,"pathname","search","hash"),{subreddit:r,advertiserCategory:a}));const d=n.platform.currentPage&&n.platform.currentPage.routeMatch;if(d){const e=Object(Wp.c)(d,n,Object(Qp.a)(n));if(e&&k.c.has(e)){const t=k.c.end(e);!Object(Pt.h)(n)&&Object(co.b)(no.a.IsOverlay)||Object(Gp.f)(d,n,N.TimerType.UserCancelled,t)}}const c=o.payload.routeMatch;if(!c)return t(o);const l=Object(Qp.a)(n,c),u=Object(Wp.c)(c,n,l);if(!u)return t(o);k.c.start(u)}const r=t(o);switch(o.type){case Pp.b:case Ps.g:case Ip.b:case Ip.e:case kp.e:case Mp.e:case Np.b:{var s=o.payload;const e=s.key;s.token||n(e);break}case Ps.q:{var a=o.payload;const e=a.key,t=a.tokens,r=a.type;r.indexOf(x.kc.Posts)>-1&&!t.posts&&n(Object(Vp.b)(e,[x.kc.Posts])),(r.indexOf(x.kc.Subreddits)>-1||r.indexOf(x.kc.Users)>-1)&&!t.listings&&n(Object(Vp.b)(e,Bp()(r,x.kc.Posts)));break}case Cp.b:case wp.e:case Ce.i:case kp.b:{var d=o.payload;const t=d.key,r=d.postIds;n(t);const i=e.getState();if(r.length)break;if(void 0===i.listings.postOrder.endMarkers[t])break;zp.j(i,t);break}case Mp.b:{var c=o.payload;const t=c.key,r=c.commentIds;if(n(t),r.length)break;const i=e.getState();if(void 0===i.profileCommentsPage.endMarkers[t])break;Up.a(i,t);break}case _p.c:{var l=o.payload;const e=l.key,t=l.type;t.indexOf(x.kc.Posts)>-1&&n(Object(Vp.b)(e,[x.kc.Posts])),(t.indexOf(x.kc.Subreddits)>-1||t.indexOf(x.kc.Users)>-1)&&n(Object(Vp.b)(e,Bp()(t,x.kc.Posts)));break}}return r},Zp=o("./src/reddit/helpers/onBeforeRequestFactory/index.ts");const Kp=e=>{if(!e)return;const t=(c.a.get(kt.i)||"").split(",");if(!t.includes(e)){t.unshift(e);const o=t.slice(0,10).join(","),n=Object(Tc.a)();c.a.set(kt.i,o,n)}};var Yp=o("./src/reddit/layout/page/Listing/index.tsx");var Xp=e=>()=>{switch(e){case x.r.COLLECTION_COMMENTS_PAGE:return Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("vendors~Chat~CollectionCommentsPage~CommentsPage~PostCreation~RedesignChat~RichTextEditor~Subreddit~~db96a512"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("CollectionCommentsPage")]).then(o.bind(null,"./src/reddit/pages/CollectionCommentsPage/index.tsx")).then(e=>e.default);case x.r.COMMENTS_PAGE:return Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("vendors~Chat~CollectionCommentsPage~CommentsPage~PostCreation~RedesignChat~RichTextEditor~Subreddit~~db96a512"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("CommentsPage")]).then(o.bind(null,"./src/reddit/pages/CommentsPage/index.tsx")).then(e=>e.default);case x.r.FRONTPAGE:return Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("Frontpage~ModListing~ModQueuePages~Multireddit~News~OriginalContent~ProfileComments~ProfileOverview~~1d46b903"),o.e("Frontpage")]).then(o.bind(null,"./src/reddit/pages/Frontpage/index.tsx")).then(e=>e.default);case x.r.ORIGINAL_CONTENT:return Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("Frontpage~ModListing~ModQueuePages~Multireddit~News~OriginalContent~ProfileComments~ProfileOverview~~1d46b903"),o.e("OriginalContent")]).then(o.bind(null,"./src/reddit/pages/OriginalContent/index.tsx")).then(e=>e.default);case x.r.PARTNER_SUBREDDIT_CONNECTION:return Promise.all([o.e("PartnerSubredditConnection~StructuredStyles"),o.e("PartnerSubredditConnection")]).then(o.bind(null,"./src/reddit/pages/PartnerSubredditConnection/index.tsx")).then(e=>e.default);case x.r.POST_CREATION:return Promise.all([o.e("vendors~GiftsEditProfile~GiftsGiftCreation~GiftsGiftEdit~GiftsShipping~HarbergerTaxManageModal~Moder~43e8895f"),o.e("vendors~Chat~CollectionCommentsPage~CommentsPage~PostCreation~RedesignChat~RichTextEditor~Subreddit~~db96a512"),o.e("vendors~FlairEdit~PostCreation~RichTextEditor"),o.e("vendors~PostCreation~RichTextEditor"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("PostCreation")]).then(o.bind(null,"./src/reddit/pages/PostCreation/index.tsx")).then(e=>e.default);case x.r.POST_DRAFT:return Promise.all([o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("PostDraft~SubredditWiki"),o.e("PostDraft")]).then(o.bind(null,"./src/reddit/pages/PostDraft/index.tsx")).then(e=>e.default);case x.r.PROFILE_COMMENTS:return Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("Frontpage~ModListing~ModQueuePages~Multireddit~News~OriginalContent~ProfileComments~ProfileOverview~~1d46b903"),o.e("ProfileComments")]).then(o.bind(null,"./src/reddit/pages/ProfileComments/index.tsx")).then(e=>e.default);case x.r.PROFILE_MODERATION:return Promise.all([o.e("ProfileModeration~Settings"),o.e("ProfileModeration")]).then(o.bind(null,"./src/reddit/pages/ProfileModSettings/index.tsx")).then(e=>e.default);case x.r.PROFILE_OVERVIEW:return Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("Frontpage~ModListing~ModQueuePages~Multireddit~News~OriginalContent~ProfileComments~ProfileOverview~~1d46b903"),o.e("ProfileOverview")]).then(o.bind(null,"./src/reddit/pages/ProfileOverview/index.tsx")).then(e=>e.default);case x.r.PROFILE_POSTS:return Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("Frontpage~ModListing~ModQueuePages~Multireddit~News~OriginalContent~ProfileComments~ProfileOverview~~1d46b903"),o.e("ProfilePosts")]).then(o.bind(null,"./src/reddit/pages/ProfilePosts/index.tsx")).then(e=>e.default);case x.r.PROFILE_PRIVATE:return Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("Frontpage~ModListing~ModQueuePages~Multireddit~News~OriginalContent~ProfileComments~ProfileOverview~~1d46b903"),o.e("ProfilePrivate")]).then(o.bind(null,"./src/reddit/pages/ProfilePrivate/index.tsx")).then(e=>e.default);case x.r.SUBREDDIT:return Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("vendors~Chat~CollectionCommentsPage~CommentsPage~PostCreation~RedesignChat~RichTextEditor~Subreddit~~db96a512"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("Subreddit")]).then(o.bind(null,"./src/reddit/pages/Subreddit/index.tsx")).then(e=>e.default);case x.r.MOD_LISTING:return Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("Frontpage~ModListing~ModQueuePages~Multireddit~News~OriginalContent~ProfileComments~ProfileOverview~~1d46b903"),o.e("ModListing")]).then(o.bind(null,"./src/reddit/pages/ModListing/index.tsx")).then(e=>e.default);case x.r.SUBREDDIT_CREATION:return o.e("SubredditCreation").then(o.bind(null,"./src/reddit/pages/SubredditCreation/index.tsx")).then(e=>e.default);case x.r.MODERATION_PAGES:return Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("vendors~GiftsEditProfile~GiftsGiftCreation~GiftsGiftEdit~GiftsShipping~HarbergerTaxManageModal~Moder~43e8895f"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("ModerationPages")]).then(o.bind(null,"./src/reddit/pages/ModHub/index.tsx")).then(e=>e.default);case x.r.MODQUEUE_PAGES:return Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("Frontpage~ModListing~ModQueuePages~Multireddit~News~OriginalContent~ProfileComments~ProfileOverview~~1d46b903"),o.e("ModQueuePages")]).then(o.bind(null,"./src/reddit/pages/ModQueuePages/index.tsx")).then(e=>e.default);case x.r.MULTIREDDIT:return Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("Frontpage~ModListing~ModQueuePages~Multireddit~News~OriginalContent~ProfileComments~ProfileOverview~~1d46b903"),o.e("Multireddit")]).then(o.bind(null,"./src/reddit/pages/Multireddit/index.tsx")).then(e=>e.default);case x.r.NEWS:return Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("Frontpage~ModListing~ModQueuePages~Multireddit~News~OriginalContent~ProfileComments~ProfileOverview~~1d46b903"),o.e("News")]).then(o.bind(null,"./src/reddit/pages/News/index.tsx")).then(e=>e.default);case x.r.INBOX_PAGES:case x.r.R2_EMBED:return o.e("R2Embed").then(o.bind(null,"./src/reddit/pages/RedditEmbed/index.tsx")).then(e=>e.default);case x.r.SEARCH_RESULTS:return Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("Frontpage~ModListing~ModQueuePages~Multireddit~News~OriginalContent~ProfileComments~ProfileOverview~~1d46b903"),o.e("SearchResults")]).then(o.bind(null,"./src/reddit/pages/SearchResults/index.tsx")).then(e=>e.default);case x.r.DASHBOARD:return Promise.reject(new Error("Page does not exist"));case x.r.SETTINGS:return Promise.all([o.e("vendors~GiftsEditProfile~GiftsGiftCreation~GiftsGiftEdit~GiftsShipping~HarbergerTaxManageModal~Moder~43e8895f"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("ProfileModeration~Settings"),o.e("Settings")]).then(o.bind(null,"./src/reddit/pages/Settings/index.tsx")).then(e=>e.default);case x.r.PREMIUM:return o.e("Premium").then(o.bind(null,"./src/reddit/pages/Premium/index.tsx")).then(e=>e.default);case x.r.COINS:return o.e("Coins").then(o.bind(null,"./src/reddit/pages/CoinsPage/index.tsx")).then(e=>e.default);case x.r.COINS_MOBILE:return o.e("CoinsMobile").then(o.bind(null,"./src/reddit/pages/CoinsMobilePage/index.tsx")).then(e=>e.default);case x.r.FRAMED_GILD:return Promise.all([o.e("FramedGild~GildModal"),o.e("FramedGild")]).then(o.bind(null,"./src/reddit/pages/FramedGildPage/index.tsx")).then(e=>e.default);case x.r.APPEAL:return o.e("Appeal").then(o.bind(null,"./src/reddit/pages/AppealPage/index.tsx")).then(e=>e.default);case x.r.EXPLORE:return Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("Explore~Trending"),o.e("Explore")]).then(o.bind(null,"./src/reddit/pages/Explore/index.tsx")).then(e=>e.default);case x.r.SUBREDDIT_WIKI:return Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("vendors~Chat~CollectionCommentsPage~CommentsPage~PostCreation~RedesignChat~RichTextEditor~Subreddit~~db96a512"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("PostDraft~SubredditWiki"),o.e("SubredditWiki")]).then(o.bind(null,"./src/reddit/pages/SubredditWiki/index.tsx")).then(e=>e.default);default:throw new Error(`Could not find page component ${e||"no chunk name"}`)}},Jp=o("./src/reddit/reducers/index.ts");var em=["/:routePrefix(r)/:subredditName/collection/:collectionId/:partialPostId/:partialCommentId","/:routePrefix(r)/:subredditName/collection/:collectionId/:partialPostId","/:routePrefix(r)/:subredditName/collection/:collectionId"].map(e=>({path:e,action:jp.e,chunk:x.r.COLLECTION_COMMENTS_PAGE,exact:!0,meta:{name:x.Rb.COLLECTION_COMMENTS},prefetches:[x.r.FRONTPAGE,x.r.COMMENTS_PAGE,x.r.SUBREDDIT]}));var tm=["/appeal","/appeals"].map(e=>({path:e,action:Ps.s,chunk:x.r.APPEAL,exact:!0,meta:{name:x.Rb.APPEAL}}));var om=["/coins"].map(e=>({path:e,action:Ps.u,chunk:x.r.COINS,exact:!0,meta:{name:x.Rb.COINS},prefetch:[x.r.COINS],routePredicate:()=>!0}));var nm=["/coins/mobile"].map(e=>({path:e,action:Ps.t,chunk:x.r.COINS_MOBILE,exact:!0,meta:{name:x.Rb.COINS_MOBILE},prefetch:[x.r.COINS_MOBILE],routePredicate:()=>!0}));const rm={action:Ps.y,chunk:x.r.COMMENTS_PAGE,exact:!0,meta:{name:x.Rb.COMMENTS},prefetches:[x.r.FRONTPAGE,x.r.SUBREDDIT]};var im=[...["/:routePrefix(r)/:subredditName/comments/:partialPostId/:urlSafePostTitle/:partialCommentId","/:routePrefix(r)/:subredditName/comments/:partialPostId/:urlSafePostTitle?","/comments/:partialPostId/:urlSafePostTitle/:partialCommentId","/comments/:partialPostId/:urlSafePostTitle?"].map(e=>Object.assign({path:e},rm)),...["/:routePrefix(user)/:subredditName/comments/:partialPostId/:urlSafePostTitle/:partialCommentId","/:routePrefix(user)/:subredditName/comments/:partialPostId/:urlSafePostTitle?"].map(e=>Object.assign({path:e},rm,{routePredicate:Et.d.redesignProfiles}))];let sm=[];var am=sm,dm=o("./src/reddit/helpers/pageActionLoginRedirect.ts");var cm={path:"/verification/:verificationToken",action:e=>async(t,o)=>{await t(cr.w());const n=o(),r=e.params.verificationToken;if(!Object(B.F)(n))return Object(dm.a)(t,n);const i=await t(H(r));t(Object(p.c)(`/?verifiedEmail=${i}`))},exact:!0,meta:{name:x.Rb.EMAIL_VERIFICATION},chunk:x.r.EMPTY},lm=o("./src/reddit/actions/pages/explore.ts");var um=["/explore","/explore/:categoryName"].map(e=>({path:e,action:lm.e,chunk:x.r.EXPLORE,exact:!0,meta:{name:x.Rb.EXPLORE},prefetches:[x.r.COMMENTS_PAGE,x.r.FRONTPAGE]}));const pm={action:Ps.A,chunk:x.r.FRAMED_GILD,exact:!0,meta:{name:x.Rb.FRAMED_GILD}};var mm=[...["/framedGild/:thingId"].map(e=>Object.assign({path:e},pm,{routePredicate:()=>!0}))];var fm=["/",`/:sort(${Object.keys(x.X).map(e=>x.X[e]).join("|")})?`].map(e=>({path:e,action:Ps.C,chunk:x.r.FRONTPAGE,exact:!0,meta:{name:"/"===e?x.Rb.INDEX:x.Rb.LISTING},prefetches:[x.r.COMMENTS_PAGE,x.r.SUBREDDIT]}));var hm=[`/message/:pageName(${Object.keys(x.U).map(e=>x.U[e]).join("|")})/:rest(.+)?`].map(e=>({path:e,action:Ps.E,chunk:x.r.INBOX_PAGES,exact:!0,meta:{name:x.Rb.INBOX_PAGES}}));var gm=["/r/:subredditName/about",`/r/:subredditName/about/:pageName(${Object.keys(x.oc).map(e=>x.oc[e]).join("|")})`].map(e=>({path:e,action:e=>async(t,n,r)=>{const i=await Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("vendors~GiftsEditProfile~GiftsGiftCreation~GiftsGiftEdit~GiftsShipping~HarbergerTaxManageModal~Moder~43e8895f"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("ModerationPages")]).then(o.bind(null,"./src/reddit/actions/pages/moderationPages/index.ts")).then(e=>e.moderationPageRequested);await i(e)(t,n,r)},chunk:x.r.MODERATION_PAGES,exact:!0,meta:{name:x.Rb.MODERATION_PAGES},prefetches:[x.r.SUBREDDIT]}));var bm=[`/r/mod/about/:pageName(${Object.keys(x.nb).map(e=>x.nb[e]).join("|")})?`].map(e=>({path:e,action:e=>async(t,n,r)=>{const i=await Promise.all([o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("ModQueue")]).then(o.bind(null,"./src/reddit/actions/pages/modQueue/index.ts")).then(e=>e.modQueuePageRequested);await i(e)(t,n,r)},chunk:x.r.MODQUEUE_PAGES,exact:!0,meta:{name:x.Rb.MODQUEUE_PAGES}}));var vm=["/me/m/:multiredditName",...Object.keys(x.X).map(e=>`/me/m/:multiredditName/:sort(${x.X[e]})?`)].map(e=>({path:e,action:Ps.F,chunk:x.r.MULTIREDDIT,exact:!0,meta:{name:x.Rb.MULTIREDDIT},pretfetches:[x.r.SUBREDDIT]})),ym=o("./src/reddit/selectors/news.ts");var xm=["/news","/news/:topic","/news/:topic/:subtopic"].map(e=>({path:e,action:Sp.d,chunk:x.r.NEWS,exact:!0,meta:{name:x.Rb.NEWS},prefetches:[x.r.COMMENTS_PAGE,x.r.SUBREDDIT],routePredicate:ym.g})),Om=o("./src/reddit/routes/originalContent/index.ts"),Cm=o("./src/reddit/actions/pages/partnerSubredditConnection.ts"),wm=o("./src/reddit/routes/partnerSubredditConnection/constants.ts");const jm=Object.keys(x.Nb).map(e=>x.Nb[e]).join("|");var Sm={action:Cm.d,chunk:x.r.PARTNER_SUBREDDIT_CONNECTION,exact:!0,meta:{name:x.Rb.PARTNER_SUBREDDIT_CONNECTION},path:`${wm.a}/:page(${jm})?`,prefetches:[]},Pm=o("./src/reddit/routes/postCreation/index.ts"),Mm=o("./src/reddit/actions/pages/postDraft.ts");var Im=["/user/:profileName/draft/:draftId"].map(e=>({path:e,action:Mm.b,chunk:x.r.POST_DRAFT,exact:!0,meta:{name:x.Rb.POST_DRAFT},prefetches:[x.r.POST_DRAFT]}));var km=["/premium"].map(e=>({path:e,action:Ps.H,chunk:x.r.PREMIUM,exact:!0,meta:{name:x.Rb.PREMIUM},prefetch:[x.r.PREMIUM],routePredicate:()=>!0}));var Nm=["/user/:profileName/comments"].map(e=>({path:e,action:Mp.h,chunk:x.r.PROFILE_COMMENTS,exact:!0,meta:{name:x.Rb.PROFILE_COMMENTS},prefetches:[x.r.COMMENTS_PAGE]}));var Em=[{path:"/user/:profileName/about/edit/moderation",action:o("./src/reddit/actions/pages/profileModSettings.ts").b,chunk:x.r.PROFILE_MODERATION,exact:!0,meta:{name:x.Rb.PROFILE_MODERATION}}];var Tm=["/user/:profileName"].map(e=>({path:e,action:Ip.g,chunk:x.r.PROFILE_OVERVIEW,exact:!0,meta:{name:x.Rb.PROFILE_OVERVIEW},prefetches:[x.r.COMMENTS_PAGE],routePredicate:Et.d.redesignProfiles}));var Lm=["/user/:profileName/posts"].map(e=>({path:e,action:kp.h,chunk:x.r.PROFILE_POSTS,exact:!0,meta:{name:x.Rb.PROFILE_POSTS},prefetches:[x.r.COMMENTS_PAGE]}));var _m=["/user/:profileName/:listingType"].map(e=>({path:e,action:e=>async(t,n,r)=>{const i=await Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~51767572"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~09b7cb4f"),o.e("Frontpage~ModListing~ModQueuePages~Multireddit~News~OriginalContent~ProfileComments~ProfileOverview~~1d46b903"),o.e("ProfilePrivate")]).then(o.bind(null,"./src/reddit/actions/pages/profilePrivate/index.ts")).then(e=>e.profilePrivateRequested);await i(e)(t,n,r)},chunk:x.r.PROFILE_PRIVATE,exact:!0,meta:{name:x.Rb.PROFILE_PRIVATE},prefetches:[x.r.COMMENTS_PAGE]}));var Fm=["/r/u_:profileName","/r/u_:profileName/:rest(.*)","/u/:profileName","/u/:profileName/:rest(.*)"].map(e=>({path:e,action:e=>async t=>{var o=e.params;const n=o.profileName,r=o.rest,i=e.queryParams,s=r?`/user/${n}/${r}`:`/user/${n}`,a=Object(Yt.a)(s,i);await t(Object(p.c)(a))},chunk:x.r.EMPTY,exact:!0,meta:{name:x.Rb.PROFILE_REDIRECT},routePredicate:Et.d.redesignProfiles}));var Rm=["/user/:profileName/submitted","/user/:profileName/submitted/:rest(.*)"].map(e=>({path:e,action:e=>async t=>{var o=e.params;const n=o.profileName,r=o.rest,i=e.queryParams,s=r?`/user/${n}/posts/${r}`:`/user/${n}/posts`,a=Object(Yt.a)(s,i);t(Object(p.c)(a))},chunk:x.r.EMPTY,exact:!0,meta:{name:x.Rb.PROFILE_REDIRECT},routePredicate:Et.d.redesignProfiles}));var Am=["/report/:rest(.+)?"].map(e=>({path:e,action:Ps.J,chunk:x.r.R2_EMBED,exact:!0,meta:{name:x.Rb.REPORT}}));var $m=["/search","/r/:subredditName/search","/me/m/:multiredditName/search"].map(e=>({path:e,action:Ps.K,chunk:x.r.SEARCH_RESULTS,exact:!0,meta:{name:x.Rb.SEARCH_RESULTS},prefetches:[x.r.FRONTPAGE,x.r.SUBREDDIT,x.r.COMMENTS_PAGE]})),Dm=o("./src/reddit/actions/chat/userSettings.ts"),Bm=o("./src/reddit/actions/economics/paymentSystems/thunkedActions.ts"),Hm=o("./src/reddit/actions/externalAccount.ts"),Qm=o("./src/reddit/actions/notifications/preferences.ts"),Um=o("./src/reddit/actions/profile/index.ts"),zm=o("./src/reddit/actions/subredditSettings.ts"),Gm=o("./src/reddit/helpers/externalAccount/index.tsx"),Vm=o("./src/reddit/reducers/economics/paymentSystems/index.ts"),Wm=o("./src/reddit/selectors/externalAccount.ts"),qm=o("./src/reddit/actions/pages/shared.ts");const Zm=Object.keys(x.lc).map(e=>x.lc[e]).join("|");var Km={action:e=>async(t,o)=>{const n=[t(Object(cr.w)())];o().economics.paymentSystems.status===Vm.a.NotFetched&&n.push(t(Object(Bm.a)())),await Promise.all(n);{const e=o();if(!Object(B.F)(e))return Object(dm.a)(t,e)}var r=e.params.page;const i=void 0===r?x.lc.Account:r;if(i===x.lc.Gold)return void t(Object(p.c)("/settings/premium"));const s=[];i===x.lc.Profile&&(s.push(t(Object(Um.a)())),s.push(t(Object(zm.w)()))),i===x.lc.Account&&s.push(t(Object(Hm.o)())),i===x.lc.Notifications&&s.push(t(Object(Qm.a)())),i===x.lc.Privacy&&s.push(t(Object(Dm.b)())),await Promise.all(s);{const e=o(),n=e.platform.currentPage.url,r=Object(O.a)(n).get(io.c);if(r&&(t(Object(p.c)(Object(C.a)(n,[io.c]))),Object(Wm.b)(e))){const o=Object(B.M)(e),n=Object(g.a)(o,"settings.accountForm.connectedAccounts.twitterConnected.toast");t(Object($.e)({text:n})),Object(Gm.b)(r)}}t(Object(V.l)({title:Object(qm.b)(o(),"settings")}))},chunk:x.r.SETTINGS,exact:!0,meta:{name:x.Rb.SETTINGS},path:`/settings/:page(${Zm})?`};const Ym=["/prefs/:page(deactivate|blocked)?"].map(e=>({path:e,action:e=>async t=>{const o=e.params.page,n=o&&"blocked"===o?"/settings/privacy":"/settings/";await t(Object(p.c)(n))},chunk:x.r.EMPTY,meta:{name:x.Rb.SETTINGS_REDIRECT}}));var Xm=[...Ym,...["/user/:username/about/edit","/user/:username/about/edit/privacy"].map(e=>({path:e,action:()=>async e=>{await e(Object(p.c)("/settings/profile"))},chunk:x.r.EMPTY,meta:{name:x.Rb.SETTINGS_REDIRECT}}))];var Jm=["/r/:subredditName",...Object.keys(x.X).map(e=>`/r/:subredditName/:sort(${x.X[e]})?`)].map(e=>({path:e,action:Np.g,chunk:x.r.SUBREDDIT,exact:!0,meta:{name:x.Rb.SUBREDDIT},prefetches:[x.r.COMMENTS_PAGE,x.r.FRONTPAGE]}));var ef=["/subreddits/create"].map(e=>({path:e,action:()=>async(e,t)=>{let o=t();e(V.l({title:Object(g.a)(o.user.language,"title.subredditCreation")})),await e(Object(q.o)()),o=t(),Object(B.F)(o)||Object(dm.a)(e,o)},chunk:x.r.SUBREDDIT_CREATION,exact:!0,meta:{name:x.Rb.SUBREDDIT_CREATION}}));var tf=[...["/r/:subredditName/w/:wikiPageName*","/w/:wikiPageName*"].map(e=>({path:e,action:e=>async t=>{const o=e.url.replace("/w/","/wiki/");await t(Object(p.c)(o))},chunk:x.r.EMPTY,meta:{name:x.Rb.SUBREDDIT_WIKI}})),...["/r/:subredditName/wiki/:wikiPageName*","/wiki/:wikiPageName*"].map(e=>({path:e,action:e=>async(t,n,r)=>{const i=await Promise.all([o.e("vendors~CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPag~2db29515"),o.e("vendors~Chat~CollectionCommentsPage~CommentsPage~PostCreation~RedesignChat~RichTextEditor~Subreddit~~db96a512"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~0ef8faec"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~cb337d3c"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueue~ModQueuePages~ModerationPages~Mult~a724531d"),o.e("CollectionCommentsPage~CommentsPage~Explore~Frontpage~ModListing~ModQueuePages~ModerationPages~Multi~fc7712a4"),o.e("CollectionCommentsPage~CommentsPage~Frontpage~ModListing~ModQueuePages~ModerationPages~Multireddit~N~445678b8"),o.e("PostDraft~SubredditWiki"),o.e("SubredditWiki")]).then(o.bind(null,"./src/reddit/actions/pages/subredditWiki/index.ts")).then(e=>e.subredditWikiPageRequested);await i(e)(t,n,r)},chunk:x.r.SUBREDDIT_WIKI,exact:!0,meta:{name:x.Rb.SUBREDDIT_WIKI},prefetches:[x.r.SUBREDDIT]}))],of=[...tm,...om,...nm,...Fm,...Rm,...em,...im,cm,...fm,Sm,...km,...mm,...Pm.a,...Im,...Om.a,...um,...vm,...bm,...ia.c,...xm,...hm,...Nm,...Em,...Tm,...Lm,..._m,Km,...Xm,...$m,...tf,...Jm,...ef,...gm,...Am,...am],nf=o("./src/lib/timeAgo/index.ts");var rf;!function(e){e.Treatment="partial-system-fonts-treatment",e.Control1="partial-system-fonts-control1",e.Control2="partial-system-fonts-control2",e.NoBucket="partial-system-fonts-no-bucket"}(rf||(rf={}));const sf=e=>{switch((e=>{const t=parseInt(e.user.loid.loidCreated),o=Object(nf.a)(t/1e3);if(Object(ir.b)(e)||Object(B.F)(e)||t<1550592e6||o>30)return;const n={expEventOverride:!1};return Object(ao.b)(e,Object.assign({experimentEligibilitySelector:ao.a,experimentName:"partial_system_fonts"},n))})(e)){case"partial_system_fonts":return rf.Treatment;case"control_1":return rf.Control1;case"control_2":return rf.Control2;default:return rf.NoBucket}};var af=o("./src/reddit/singleton/EventSystem.ts"),df=o("./src/reddit/actions/global.ts");var cf=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}();Object(r.e)(r.b.EntryPointStart);const lf=Object(I.a)({actionDispatchers:{reddaidReceived:q.p,loidReceived:q.n,sessionTrackerReceived:q.r},authHeaders:{[A.a]:"desktop2x"},cookies:c.a,receivedActions:{reddaidReceived:q.f,loidReceived:q.d,sessionTrackerReceived:q.j,userAuthenticated:W.c,userLoggedOut:W.d,userReauthenticated:W.e,headersReceived:E.a},onBeforeRequestFactory:Zp.a,statsAppName:x.o.Redesign}),uf=Object(M.a)(lf.apiContext),pf=cp();let mf;Object(w.a)({pageLoader:Xp,reducers:Jp.a,routes:of,apiContext:lf.apiContext,gqlContext:uf.gqlContext,appFactory:(e,t)=>cf(ip.a.Provider,{value:pf.broadcaster},void 0,cf(sp.a.Provider,{value:lf.apiContext},void 0,cf(zu,{ok:!0,RouterComponent:e,routes:t}),cf(np,{}))),history:v()({getUserConfirmation(e,t){mf&&mf.dispatch(Object(V.k)({allowNavigationCallback:t}))}}),customMiddleware:[f.a.withExtraArgument({routes:of,apiContext:lf.apiContext,gqlContext:uf.gqlContext}),pf.middleware,lf.middleware,uf.middleware,$p,fp,qp,yp,Rp,Op],modifyInitialData:({initialData:e,browserHistory:t})=>{const o=e.platform.currentPage?e.platform.currentPage.key:"";if(o){const n=t.location.key;e.platform.currentPage&&(e.platform.currentPage.key=n);for(const t of["referrers","metas"])Object.keys(e.platform[t]).length&&(e.platform[t]={[n]:e.platform[t][o]})}return e},staticPages:{error:()=>null,loading:()=>cf(Yp.d,{content:null,sidebar:null})},preRender:({browserHistory:e,routes:t,store:o})=>{const n=e.location.pathname;"framedgild"===String(n.split("/")[1]).toLowerCase()||o.dispatch(Object(V.g)()),o.dispatch(Object(V.h)(t));e.listen((e,n)=>{const r=Object(j.a)(Object(a.createPath)(e),t);o.dispatch(Object(V.i)(e,n,r))});const r=o.getState();return Object(Pt.i)(r)&&o.dispatch(Object(p.c)(Object(C.a)(r.platform.currentPage.url,[io.d]))),{localStorageData:Object(zt.i)()}},postRender:({browserHistory:e,routes:t,serverDocumentLength:o,store:a,localStorageData:d})=>{mf=a;e.listen((e,t)=>{const o=a.getState();var n=o.platform.currentPage;const r=n.urlParams,i={action:t,location:e,urlParams:r,queryParams:n.queryParams},s=r.subredditName,d=Object(Ys.z)(o,s)||"";Kp(d),af.a.publish(rp.c,i,document)});const c=a.getState(),l=(c.platform.currentPage.urlParams.subredditName||"").toLowerCase(),u=Object(Ys.z)(c,l)||"",p=(c.subreddits.about[u]||{}).advertiserCategory;i.setup({jailUrl:"https://www.redditmedia.com/gtm/jail",containerId:s.a.gtmContainerId,payload:{user:c.user.account?c.user.account.id:c.user.loid.loid}}),i.trigger("pageview",{subreddit:l,advertiserCategory:p}),a.dispatch(Object(df.b)({localStorageData:d})),window.addEventListener("load",()=>{const e=a.getState(),t=e.platform.currentPage,i=(t.urlParams.subredditName||"").toLowerCase(),s=Object(Ys.z)(e,i)||"";if(Kp(s),t&&t.meta){const i=t.meta.name;Object(k.b)(x.o.Redesign,{page:i,type:"rum"});const s=sf(e);Object(r.f)(o,{name:i,isLoggedIn:Object(B.F)(e),systemFontsBucket:s});const d=S.a.timing.domInteractive-S.a.timing.navigationStart;Object(Gp.f)(t.routeMatch,a.getState(),N.TimerType.Initial,d);const c=Object(B.M)(e),l=Object(O.a)(window.location.href);Object(P.a)(l.get(io.t))&&a.dispatch(Object($.e)({kind:D.b.SuccessCommunity,text:Object(g.a)(Object(B.M)(e),"email.verificationStatus.success")})),l.get(io.u)&&(a.dispatch((e=>async(t,o,{apiContext:r})=>{const i=o();switch(e){case n.Success:t(Object($.e)({kind:D.b.SuccessCommunity,text:Object(g.a)(Object(B.M)(i),"email.verificationStatus.success")}));break;case n.AlreadyVerified:t(Object($.e)({kind:D.b.SuccessCommunity,text:Object(g.a)(Object(B.M)(i),"email.verificationStatus.alreadyVerified")}));break;case n.WrongUser:return void t(Object($.e)({kind:D.b.Error,text:Object(g.a)(Object(B.M)(i),"email.verificationStatus.wrongUser")}));default:t(Object($.e)({kind:D.b.Error,text:Object(g.a)(Object(B.M)(i),"email.verificationStatus.error")}))}})(l.get(io.u))),history.replaceState(history.state,"",Object(C.a)(window.location.href,[io.u])));let u=!1;(Object(co.b)(no.a.JustLoggedIn)||l&&l.get(io.m)&&Object(P.a)(l.get(io.m)))&&(a.dispatch(Object($.e)({text:Object(g.a)(c,"session.toast.success")})),u=!0,Object(co.c)(no.a.JustLoggedIn),history.replaceState(history.state,"",Object(C.a)(window.location.href,[io.m]))),Object(co.b)(no.a.JustLoggedOut)&&(u=!0,Object(co.c)(no.a.JustLoggedOut)),!1!==zt.q()&&Object(z.a)().then(e=>e.requestNotificationsPermissions).then(e=>a.dispatch(e(u,!1))),Object(yd.c)(e)&&a.dispatch(U.e())}Object(B.F)(a.getState())&&(a.dispatch(Object(_.c)()),a.dispatch(Object(L.b)()).then(()=>a.dispatch(Object(T.a)()))),Object(h.requestIdleCallback)(async()=>{a.dispatch(Object(G.d)()),await Object(y.a)()&&(e=>Object(k.a)(Object.assign({},ft.defaults(e),{screen:ft.screen(e),source:"global",action:"view",noun:"empty"})))(a.getState())})}),window.history.scrollRestoration="manual",af.a.attachStore(a)},raven:{appName:x.o.Redesign,tags:{project:x.o.Redesign}},ssr:!0,target:document.getElementById("2x-container"),timingsSampleRate:1})},"./src/reddit/layout/page/Listing/Content.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return v});var n=o("./node_modules/react/index.js"),r=o.n(n),i=o("./node_modules/react-redux/es/index.js"),s=o("./node_modules/reselect/lib/index.js"),a=o("./bundled-modules/styled-components/styled-components.min.js"),d=o.n(a),c=o("./src/reddit/constants/componentSizes.ts"),l=o("./src/reddit/constants/postLayout.ts"),u=o("./src/reddit/constants/screenWidths.ts"),p=o("./src/reddit/contexts/PageLayer/index.tsx"),m=o("./src/reddit/selectors/structuredStyles.ts"),f=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};const h=Object(p.w)(),g=Object(s.createStructuredSelector)({isEditing:m.i,layout:p.O}),b=Object(i.connect)(g),v=d()(e=>{e.disableFullscreen,e.dispatch,e.isEditing,e.layout,e.pageLayer,e.fitPageToContent;var t=f(e,["disableFullscreen","dispatch","isEditing","layout","pageLayer","fitPageToContent"]);return r.a.createElement("div",t)}).withConfig({componentId:"sdccme-0"})(["","","min-width: 0;width: 100%;@media(min-width: ","px) {width: ",";};}"],e=>e.fitPageToContent?"":"flex: 1 1 100%;","",e=>u.g-(e.isEditing?c.b:0),e=>e.layout===l.f.Large?`${c.k}px`:e.disableFullscreen?`${c.d}px`:"100%");t.b=h(b(v))},"./src/reddit/layout/page/Listing/index.tsx":function(e,t,o){"use strict";var n,r=o("./node_modules/react/index.js"),i=o.n(r),s=o("./bundled-modules/styled-components/styled-components.min.js"),a=o.n(s),d=o("./src/reddit/layout/page/Listing/Content.tsx"),c=o("./src/reddit/constants/componentSizes.ts"),l=o("./src/reddit/constants/screenWidths.ts"),u=o("./src/reddit/constants/zIndex.ts"),p=o("./src/reddit/models/Theme/index.ts"),m=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),f=o("./src/reddit/connectors/connectClickToToggleEditor.ts"),h=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});var g=Object(f.a)(class extends i.a.Component{constructor(){super(...arguments),this.onClickCapture=(e=>{this.props.isEditing&&this.props.subredditId&&!this.props.isModalOpen&&(e.stopPropagation(),e.preventDefault(),this.props.requestCloseBlade())})}render(){return h("div",{className:this.props.className,onClickCapture:this.onClickCapture,children:this.props.children})}}),b=e=>i.a.createElement(g,e);o.d(t,"b",function(){return x}),o.d(t,"c",function(){return O}),o.d(t,"a",function(){return M});var v=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,o,n,r){var i=t&&t.defaultProps,s=arguments.length-3;if(o||0===s||(o={}),o&&i)for(var a in i)void 0===o[a]&&(o[a]=i[a]);else o||(o=i||{});if(1===s)o.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];o.children=d}return{$$typeof:e,type:t,key:void 0===n?null:""+n,ref:null,props:o,_owner:null}}}(),y=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(o[n[r]]=e[n[r]])}return o};const x=`\n align-items: top;\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n justify-content: center;\n margin: 0 auto;\n max-width: ${l.c+2*c.x}px;\n`,O=Object(s.css)(["display: none;flex: 0 0 ","px;width: ","px;","@media(min-width: ","px) {display: block;}"],c.F,c.F,"",e=>e.isCollectionLayout?l.a:l.g),C=a.a.div.withConfig({componentId:"th5f56-0"})(["display: flex;flex-direction: column;min-height: calc(100vh - ","px);"],c.j),w=a.a.div.withConfig({componentId:"th5f56-1"})(["z-index: ","; // show banner above content container background.\n"],u.e),j=a.a.div.withConfig({componentId:"th5f56-2"})(["flex: 0 0 auto; // flex-basis: auto to ensure correct sizes in IE 11\nposition: relative;top: 0;left: 0;right: 0;padding: 0;background-color: ",";"],e=>Object(m.c)(e).body),S=a.a.div.withConfig({componentId:"th5f56-3"})(["min-height: 100%;overflow: hidden; // added for pseudo-element\nposition: relative; // added for pseudo-element\nflex: 0 0 1; // Element has no actual size on page\n// Fixed-position background image\n&:before {content: ' ';position: fixed; // instead of background-attachment\nwidth: 100%;height: 100%;top: 0;left: 0;will-change: transform; // creates a new paint layer\n}"]),P=a()(e=>{e.backgroundColor,e.redditStyle;const t=y(e,["backgroundColor","redditStyle"]);return i.a.createElement(S,t)}).withConfig({componentId:"th5f56-4"})(["&:before {",";"],e=>e.backgroundColor?`background-color: ${e.backgroundColor}`:`background: ${Object(p.g)(Object(m.c)(e).canvas,Object(m.c)(e).canvasImgUrl,Object(m.c)(e).canvasImgPosition)}`),M=a.a.div.withConfig({componentId:"th5f56-5"})(["","padding: 20px 0;position: relative;@media(min-width: ","px) {padding: 20px ","px;}"],x,l.i,c.x),I=a.a.div.withConfig({componentId:"th5f56-6"})(["","margin-top: ",";"],O,e=>e.showTrendingUnit?"28px":"0");t.d=(e=>{const t=e.isPageSwapped?{marginRight:`${c.E}px`}:{marginLeft:`${c.E}px`},o=e.sidebar&&v(I,{showTrendingUnit:!!e.trendingUnit,style:t,isCollectionLayout:e.isCollectionLayout},void 0,e.sidebar),n=v(d.b,{disableFullscreen:e.disableFullscreen,fitPageToContent:e.fitPageToContent},void 0,e.contentBanner,e.content),r=e.isPageSwapped?v(i.a.Fragment,{},void 0,o,n):v(i.a.Fragment,{},void 0,n,o);return v(b,{subredditId:e.subredditId},void 0,v(C,{className:e.className},void 0,v(P,{redditStyle:e.redditStyle,backgroundColor:e.backgroundColor}),v(w,{},void 0,v(j,{},void 0,e.navBar),e.contentNavBar,(e=>e.hero?v(i.a.Fragment,{},void 0,e.hero):null)(e),v("div",{style:{maxWidth:e.disableFullscreen?`${e.maxWidth||l.c+2*c.x}px`:"100%"}},void 0,e.trendingUnit),v(M,{style:{maxWidth:e.disableFullscreen?`${e.maxWidth||l.c+2*c.x}px`:"100%"}},void 0,r))))})},"./src/reddit/layout/row/Inline/index.tsx":function(e,t,o){"use strict";var n=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(n);t.a=r.a.div.withConfig({componentId:"s1cu8rnh-0"})(["display: flex;flex-direction: row;align-items: center;"])},"./src/reddit/layout/row/InlineButton/index.tsx":function(e,t,o){"use strict";var n=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(n);t.a=r.a.button.withConfig({componentId:"b1zwxr-0"})(["align-items: center;display: flex;flex-direction: row;text-align: left;width: 100%;"])},"./src/reddit/layout/row/RightAlign/index.tsx":function(e,t,o){"use strict";var n=o("./bundled-modules/styled-components/styled-components.min.js"),r=o.n(n),i=o("./src/reddit/layout/row/Inline/index.tsx");t.a=r()(i.a).withConfig({componentId:"xoy62-0"})(["display: flex;margin-left: auto;"])},"./src/reddit/layout/twoCol/ExpandLeft/index.tsx":function(e,t,o){"use strict";o.d(t,"a",function(){return l});o("./node_modules/react/index.js");var n,r=o("./bundled-modules/styled-components/styled-components.min.js"),i=o.n(r),s=o("./src/higherOrderComponents/warnOnChildrenCount/index.tsx"),a=o("./src/reddit/helpers/styles/components/index.tsx"),d=o("./src/reddit/models/Theme/NewColorSystem/index.ts"),c=(n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,o,r){var i=e&&e.defaultProps,s=arguments.length-3;if(t||0===s||(t={}),t&&i)for(var a in i)void 0===t[a]&&(t[a]=i[a]);else t||(t=i||{});if(1===s)t.children=r;else if(s>1){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+3];t.children=d}return{$$typeof:n,type:e,key:void 0===o?null:""+o,ref:null,props:t,_owner:null}});const l=i.a.div.withConfig({componentId:"s9duk0e-0"})(["color: ",";flex: 1 1 100%;width: 100%;"],e=>Object(d.c)(e).bodyText),u=i()(Object(a.a)()).withConfig({componentId:"s9duk0e-1"})(["flex: 0 0 ",";"],e=>e.width?`${e.width}px`:"");t.b=i()(Object(s.a)(e=>c("div",{className:e.className},void 0,c(l,{},void 0,Array.isArray(e.children)&&e.children[0]),c(u,{width:e.widthRight},void 0,Array.isArray(e.children)&&e.children[1])),2)).withConfig({componentId:"s9duk0e-2"})(["display: flex;flex-direction: row;"])},"./src/reddit/routes/originalContent/index.ts":function(e,t,o){"use strict";o.d(t,"b",function(){return a});var n=o("./src/lib/constants/index.ts"),r=o("./src/reddit/actions/pages/originalContent.ts"),i=o("./src/reddit/constants/originalContent.ts"),s=o("./src/reddit/constants/parameters.ts");const a=(e=i.b,t=n.Y,o=n.sc)=>{let r;return r=t!==n.Y?`/original/${e}/${t}`:e===i.b?"/original":`/original/${e}`,o!==n.sc?`${r}?${s.s}=${o}`:r},d=["/original","/original/:categoryName/:sort([a-z]+)?"].map(e=>({path:e,action:r.d,chunk:n.r.ORIGINAL_CONTENT,exact:!0,meta:{name:n.Rb.ORIGINAL_CONTENT},prefetches:[n.r.COMMENTS_PAGE,n.r.SUBREDDIT]}));t.a=d},"./src/reddit/selectors/authorFlair.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return n}),o.d(t,"b",function(){return r}),o.d(t,"c",function(){return i});const n=(e,{post:t})=>{const o=t.belongsTo.id;if(!o)return null;const n=e.authorFlair.models[o];if(!n)return null;const r=t.author;return r&&n[r]||null},r=(e,{subredditId:t})=>{const o=e.authorFlair&&e.authorFlair.inContext&&e.authorFlair.inContext.username;if(!o)return null;if(!t)return null;const n=e.authorFlair.models[t];return n?n[o]:null},i=e=>e.authorFlair.inContext},"./src/reddit/selectors/experiments/categories.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return s});var n=o("./src/reddit/constants/experiments.ts"),r=o("./src/reddit/helpers/chooseVariant/index.ts"),i=o("./src/reddit/selectors/user.ts");const s=e=>{return Object(i.D)(e)||n.d.Treatment1===Object(r.b)(e,{experimentEligibilitySelector:r.a,experimentName:n.b})}},"./src/reddit/selectors/experiments/trending.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return s});var n=o("./src/reddit/constants/experiments.ts"),r=o("./src/reddit/helpers/chooseVariant/index.ts"),i=o("./src/reddit/selectors/user.ts");const s=e=>Object(i.D)(e)||n.P.Treatment1===Object(r.b)(e,{experimentEligibilitySelector:r.a,experimentName:n.M})},"./src/reddit/selectors/gov.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return a}),o.d(t,"b",function(){return d}),o.d(t,"c",function(){return c}),o.d(t,"d",function(){return l}),o.d(t,"e",function(){return u}),o.d(t,"f",function(){return p}),o.d(t,"i",function(){return m}),o.d(t,"j",function(){return f}),o.d(t,"g",function(){return h}),o.d(t,"h",function(){return g});var n=o("./src/reddit/contexts/PageLayer/index.tsx");const r=[],i={},s={filled:"img/communityPoints/default_filled.png",grey:"img/communityPoints/default_grey.png"},a=(e,t)=>{const o=h(e,t);if(o)return o.mainHeader},d=(e,t)=>{const o=h(e,t);return o&&o.mainHeader?o.mainHeader.price:"0"},c=(e,t)=>{const o=h(e,t);return o&&o.mainHeader?{owner:o.mainHeader.owner,ownerId:o.mainHeader.ownerId}:i},l=(e,t)=>t&&t.subredditId?(e.user.wallets[t.subredditId]||{}).latest:void 0,u=(e,t)=>{return(e.users.publicWallets[t.userId]||{})[t.subredditId]},p=(e,t)=>{const o=Object(n.p)(e,t);return o&&e.subreddits.gov.releaseNotes[o]||r},m=(e,t)=>t&&t.subredditId&&(e.subreddits.gov.meta[t.subredditId]||{}).name||"Subreddit Points",f=(e,t)=>t&&t.subredditId&&(e.subreddits.gov.meta[t.subredditId]||{}).images||s,h=(e,t)=>t.subredditId?e.subreddits.gov.assets[t.subredditId]:void 0,g=(e,t)=>t.subredditId?e.subreddits.gov.meta[t.subredditId]:void 0},"./src/reddit/selectors/index.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return s});var n=o("./node_modules/lodash/isEqual.js"),r=o.n(n),i=o("./node_modules/reselect/lib/index.js");const s=Object(i.createSelectorCreator)(i.defaultMemoize,r.a)},"./src/reddit/selectors/meta.ts":function(e,t,o){"use strict";o.d(t,"d",function(){return i}),o.d(t,"a",function(){return s}),o.d(t,"b",function(){return a}),o.d(t,"c",function(){return d});var n=o("./node_modules/reselect/lib/index.js"),r=o("./src/lib/getParsedUserAgent/index.ts");const i=e=>`${e.meta.protocol}://${e.meta.domain}`,s=e=>e.meta.country,a=e=>e.meta.isBot,d=Object(n.createSelector)(e=>e.meta.userAgent,e=>Object(r.b)(e))},"./src/reddit/selectors/notificationPrefs.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return n}),o.d(t,"b",function(){return r}),o.d(t,"e",function(){return i}),o.d(t,"d",function(){return s}),o.d(t,"c",function(){return a});const n=e=>e.user.notificationPrefs.api.getPreferences.loaded,r=e=>e.user.notificationPrefs.api.getPreferences.pending,i=e=>e.user.notificationPrefs.api.setPreferences.pending,s=e=>e.user.notificationPrefs.preferences,a=e=>e.user.notificationPrefs.isPrePromptVisible},"./src/reddit/selectors/removalReasons.ts":function(e,t,o){"use strict";o.d(t,"c",function(){return n}),o.d(t,"b",function(){return r}),o.d(t,"a",function(){return i});const n=(e,{subredditId:t})=>{if(e.removalReasons.reasonOrder[t]){return e.removalReasons.reasonOrder[t].map(t=>e.removalReasons.models[t])}return[]},r=e=>e.removalReasons.removedItemIds&&e.removalReasons.removedItemIds.itemIds.length?e.removalReasons.removedItemIds:null,i=e=>e.removalReasons.api.pending},"./src/reddit/selectors/searchResults.ts":function(e,t,o){"use strict";o.d(t,"d",function(){return r}),o.d(t,"e",function(){return i}),o.d(t,"b",function(){return s}),o.d(t,"f",function(){return a}),o.d(t,"h",function(){return d}),o.d(t,"c",function(){return c}),o.d(t,"g",function(){return l}),o.d(t,"a",function(){return u});const n=[],r=(e,{listingKey:t})=>e.listings.listingOrder.api.error[t],i=(e,{listingKey:t})=>e.listings.listingOrder.api.pending[t],s=(e,{listingKey:t})=>e.listings.listingOrder.identifiers[t]||[],a=(e,{listingKey:t})=>e.listings.listingOrder.loadMore[t],d=e=>{const t=e.search.searchQuery;if(!t)return n;const o=e.search.typeahead.idsByQuery[t.toLowerCase()];if(!o)return n;const r=[];return o.forEach(t=>{r.push(e.search.typeahead.models[t])}),r},c=e=>e.search.typeahead.idsByQuery,l=e=>{const t=e.listings.activeKey;return e.search.viewTreatment[t]},u=e=>{const t=e.listings.activeKey;if(t)return e.searchDiscoveryUnits.headerContent[t]}},"./src/reddit/selectors/tooltip.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return n}),o.d(t,"b",function(){return r});const n=e=>e.tooltipId,r=e=>t=>t.tooltipId===e},"./src/reddit/selectors/trending.ts":function(e,t,o){"use strict";o.d(t,"a",function(){return n});const n=e=>e.trending.models},"./src/reddit/selectors/userPrefs.ts":function(e,t,o){"use strict";o.d(t,"b",function(){return i}),o.d(t,"a",function(){return s});var n=o("./src/lib/constants/index.ts"),r=o("./src/reddit/selectors/monthsToMinutes.ts");const i=e=>!s(e)&&(!(void 0!==e.user.prefs.subscriptionsPinned||!Object(r.u)(e))||!!e.user.prefs.subscriptionsPinned),s=e=>!(!e.platform.currentPage||!e.platform.currentPage.meta||e.platform.currentPage.meta.name!==n.Rb.MODERATION_PAGES)},"./src/reddit/singleton/EventSystem.ts":function(e,t,o){"use strict";var n=o("./src/config.ts"),r=o("./src/lib/fastdom/index.ts"),i=o("./src/reddit/actions/jsApi.ts");const s="JSAPI customEvent.detail.name is deprecated. Please upgrade to <meta>",a="jsapi.consumer",d="/r/redesign/wiki/jsapi";var c=o("./src/reddit/constants/jsapiEvents.ts");const l=100;const u=new class{constructor(){if(this.queue=[],this.active=!1,"undefined"==typeof document)return;let e;this.store=new Promise(t=>e=t),this.attachStore=(t=>e(t));const t=document.querySelectorAll(`meta[name="${a}"]`);t.length&&(t.forEach(e=>{const t=e.content;this.store.then(e=>e.dispatch(i.b(t)))}),this.store.then(()=>this.fireEventsQueue())),document.addEventListener(c.b,e=>this.onReadyEvent(e),!0)}onReadyEvent(e){let t;if(this.active=!0,e.target&&e.target instanceof HTMLMetaElement&&e.target.name===a&&(t=e.target.content),!t)try{e.detail&&(t=e.detail.name,console.warn(s,`${n.a.redditUrl}${d}`,e))}catch(o){return void console.error(s,`${n.a.redditUrl}${d}`,o)}this.store.then(e=>{e.dispatch(i.b(t||"")),this.fireEventsQueue()})}publish(e,t,o){const n={name:e,props:t,element:o};this.queue.push(n),this.queue.length>l&&this.queue.shift(),this.active&&this.fireEvent(n)}fireEvent(e){e.element.dispatchEvent(new CustomEvent(e.name,{detail:e.props}))}fireEventsQueue(){r.a.read(()=>{for(let e=0;e<this.queue.length;e++){const t=this.queue[e];this.fireEvent(t)}})}};t.a=u}},[["./src/reddit/index.tsx","runtime~Reddit","RedesignContentFonts","RedesignSystemFonts","vendors~Chat~Client~Gifts~Poll~Reddit~RedesignChat","vendors~Chat~Client~Gifts~Governance~Reddit","vendors~Chat~Client~Governance~Reddit","vendors~Client~Governance~Reddit","vendors~Gifts~Poll~Reddit","vendors~Governance~Reddit","vendors~Reddit","Governance~Profile~ProfileHomepage~ProfilePostComments~R2CommentsPage~R2Listing~Reddit","Profile~ProfileHomepage~ProfilePostComments~R2CommentsPage~R2Listing~Reddit","Chat~Client~Gifts~Governance~Reddit","Chat~Client~Governance~Reddit","Chat~Governance~Reddit~RedesignChat","Client~Governance~Reddit","Governance~Reddit"]]]);
//# sourceMappingURL=Reddit.48b4f2676c5cb460c8a2.js.map