(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[813453,e=>{function t(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState((function(t){var o=this.constructor.getDerivedStateFromProps(e,t);return null!=o?o:null}).bind(this))}function n(e,t){try{var o=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(o,n)}finally{this.props=o,this.state=n}}t.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,n.__suppressDeprecationWarning=!0,e.s(["polyfill",0,function(e){var r=e.prototype;if(!r||!r.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof r.getSnapshotBeforeUpdate)return e;var a=null,s=null,i=null;if("function"==typeof r.componentWillMount?a="componentWillMount":"function"==typeof r.UNSAFE_componentWillMount&&(a="UNSAFE_componentWillMount"),"function"==typeof r.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof r.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof r.componentWillUpdate?i="componentWillUpdate":"function"==typeof r.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==a||null!==s||null!==i)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+(null!==i?"\n "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");if("function"==typeof e.getDerivedStateFromProps&&(r.componentWillMount=t,r.componentWillReceiveProps=o),"function"==typeof r.getSnapshotBeforeUpdate){if("function"!=typeof r.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");r.componentWillUpdate=n;var l=r.componentDidUpdate;r.componentDidUpdate=function(e,t,o){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:o;l.call(this,e,t,n)}}return e}])},692623,(e,t,o)=>{e.i(350461),Object.defineProperty(o,"__esModule",{value:!0}),o.bodyOpenClassName=o.portalClassName=void 0;var n=Object.assign||function(e){for(var t=1;t{e.i(350461),Object.defineProperty(o,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t0&&0==(v-=1)&&u.show(t),o.props.shouldFocusAfterRender&&(o.props.shouldReturnFocusAfterClose?(l.returnFocus(o.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),o.props.onAfterClose&&o.props.onAfterClose(),h.default.deregister(o)},o.open=function(){o.beforeOpen(),o.state.afterOpen&&o.state.beforeClose?(clearTimeout(o.closeTimer),o.setState({beforeClose:!1})):(o.props.shouldFocusAfterRender&&(l.setupScopedFocus(o.node),l.markForFocusLater()),o.setState({isOpen:!0},function(){o.openAnimationFrame=requestAnimationFrame(function(){o.setState({afterOpen:!0}),o.props.isOpen&&o.props.onAfterOpen&&o.props.onAfterOpen({overlayEl:o.overlay,contentEl:o.content})})}))},o.close=function(){o.props.closeTimeoutMS>0?o.closeWithTimeout():o.closeWithoutTimeout()},o.focusContent=function(){return o.content&&!o.contentHasFocus()&&o.content.focus({preventScroll:!0})},o.closeWithTimeout=function(){var e=Date.now()+o.props.closeTimeoutMS;o.setState({beforeClose:!0,closesAt:e},function(){o.closeTimer=setTimeout(o.closeWithoutTimeout,o.state.closesAt-Date.now())})},o.closeWithoutTimeout=function(){o.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},o.afterClose)},o.handleKeyDown=function(e){("Tab"===e.code||9===e.keyCode)&&(0,d.default)(o.content,e),o.props.shouldCloseOnEsc&&("Escape"===e.code||27===e.keyCode)&&(e.stopPropagation(),o.requestClose(e))},o.handleOverlayOnClick=function(e){null===o.shouldClose&&(o.shouldClose=!0),o.shouldClose&&o.props.shouldCloseOnOverlayClick&&(o.ownerHandlesClose()?o.requestClose(e):o.focusContent()),o.shouldClose=null},o.handleContentOnMouseUp=function(){o.shouldClose=!1},o.handleOverlayOnMouseDown=function(e){o.props.shouldCloseOnOverlayClick||e.target!=o.overlay||e.preventDefault()},o.handleContentOnClick=function(){o.shouldClose=!1},o.handleContentOnMouseDown=function(){o.shouldClose=!1},o.requestClose=function(e){return o.ownerHandlesClose()&&o.props.onRequestClose(e)},o.ownerHandlesClose=function(){return o.props.onRequestClose},o.shouldBeClosed=function(){return!o.state.isOpen&&!o.state.beforeClose},o.contentHasFocus=function(){return document.activeElement===o.content||o.content.contains(document.activeElement)},o.buildClassName=function(e,t){var n=(void 0===t?"undefined":r(t))==="object"?t:{base:g[e],afterOpen:g[e]+"--after-open",beforeClose:g[e]+"--before-close"},a=n.base;return o.state.afterOpen&&(a=a+" "+n.afterOpen),o.state.beforeClose&&(a=a+" "+n.beforeClose),"string"==typeof t&&t?a+" "+t:a},o.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(o,n){return o[e+"-"+n]=t[n],o},{})},o.state={afterOpen:!1,beforeClose:!1},o.shouldClose=null,o.moveFromContentToOverlay=null,o}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,o=e.ariaHideApp,n=e.htmlOpenClassName,r=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;r&&p.add(s.body,r),n&&p.add(s.getElementsByTagName("html")[0],n),o&&(v+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,o=e.className,r=e.overlayClassName,a=e.defaultStyles,s=e.children,i=o?{}:a.content,l=r?{}:a.overlay;if(this.shouldBeClosed())return null;var d={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:n({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=n({id:t,ref:this.setContentRef,style:n({},i,this.props.style.content),className:this.buildClassName("content",o),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),p=this.props.contentElement(u,s);return this.props.overlayElement(d,p)}}]),t}(s.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:i.default.bool.isRequired,defaultStyles:i.default.shape({content:i.default.object,overlay:i.default.object}),style:i.default.shape({content:i.default.object,overlay:i.default.object}),className:i.default.oneOfType([i.default.string,i.default.object]),overlayClassName:i.default.oneOfType([i.default.string,i.default.object]),parentSelector:i.default.func,bodyOpenClassName:i.default.string,htmlOpenClassName:i.default.string,ariaHideApp:i.default.bool,appElement:i.default.oneOfType([i.default.instanceOf(f.default),i.default.instanceOf(c.SafeHTMLCollection),i.default.instanceOf(c.SafeNodeList),i.default.arrayOf(i.default.instanceOf(f.default))]),onAfterOpen:i.default.func,onAfterClose:i.default.func,onRequestClose:i.default.func,closeTimeoutMS:i.default.number,shouldFocusAfterRender:i.default.bool,shouldCloseOnOverlayClick:i.default.bool,shouldReturnFocusAfterClose:i.default.bool,preventScroll:i.default.bool,role:i.default.string,contentLabel:i.default.string,aria:i.default.object,data:i.default.object,children:i.default.node,shouldCloseOnEsc:i.default.bool,overlayRef:i.default.func,contentRef:i.default.func,id:i.default.string,overlayElement:i.default.func,contentElement:i.default.func,testId:i.default.string},o.default=b,t.exports=o.default},555142,(e,t,o)=>{e.i(350461),Object.defineProperty(o,"__esModule",{value:!0}),o.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(s).forEach(function(e){return e.removeAttribute("aria-hidden")})),s=null},o.log=function(){},o.assertNodeList=i,o.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var o=document.querySelectorAll(t);i(o,t),t=o}return s=t||s},o.validateElement=l,o.hide=function(e){var t=!0,o=!1,n=void 0;try{for(var r,a=l(e)[Symbol.iterator]();!(t=(r=a.next()).done);t=!0)r.value.setAttribute("aria-hidden","true")}catch(e){o=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(o)throw n}}},o.show=function(e){var t=!0,o=!1,n=void 0;try{for(var r,a=l(e)[Symbol.iterator]();!(t=(r=a.next()).done);t=!0)r.value.removeAttribute("aria-hidden")}catch(e){o=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(o)throw n}}},o.documentNotReadyOrSSRTesting=function(){s=null};var n,r=(n=e.r(340137))&&n.__esModule?n:{default:n},a=e.r(173835),s=null;function i(e,t){if(!e||!e.length)throw Error("react-modal: No elements were found for selector "+t+".")}function l(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,r.default)(!1,"react-modal: App element is not defined. Please use `Modal.setAppElement(el)` or set `appElement={el}`. This is needed so screen readers don't see main content when modal is opened. It is not recommended, but you can opt-out by setting `ariaHideApp={false}`."),[])}},87997,(e,t,o)=>{e.i(350461),Object.defineProperty(o,"__esModule",{value:!0}),o.resetState=function(){for(var e=[a,s],t=0;t0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))})},774576,(e,t,o)=>{e.i(350461),Object.defineProperty(o,"__esModule",{value:!0}),o.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)a(e,n[t]);var o=document.body;for(var s in r)a(o,r[s]);n={},r={}},o.log=function(){};var n={},r={};function a(e,t){e.classList.remove(t)}var s=function(e,t,o){o.forEach(function(o){t[o]||(t[o]=0),t[o]+=1,e.add(o)})},i=function(e,t,o){o.forEach(function(o){t[o]&&(t[o]-=1),0===t[o]&&e.remove(o)})};o.add=function(e,t){return s(e.classList,"html"==e.nodeName.toLowerCase()?n:r,t.split(" "))},o.remove=function(e,t){return i(e.classList,"html"==e.nodeName.toLowerCase()?n:r,t.split(" "))}},972195,(e,t,o)=>{e.i(350461),Object.defineProperty(o,"__esModule",{value:!0}),o.resetState=function(){a=[]},o.log=function(){},o.handleBlur=l,o.handleFocus=d,o.markForFocusLater=function(){a.push(document.activeElement)},o.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{0!==a.length&&(t=a.pop()).focus({preventScroll:e});return}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},o.popWithoutFocus=function(){a.length>0&&a.pop()},o.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",d,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",d))},o.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",d)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",d))};var n,r=(n=e.r(981524))&&n.__esModule?n:{default:n},a=[],s=null,i=!1;function l(){i=!0}function d(){i&&(i=!1,s&&setTimeout(function(){s.contains(document.activeElement)||((0,r.default)(s)[0]||s).focus()},0))}},721809,(e,t,o)=>{e.i(350461),Object.defineProperty(o,"__esModule",{value:!0}),o.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},o.resetState=function(){r=new n};var n=function e(){var t=this;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.register=function(e){-1!==t.openInstances.indexOf(e)||(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var o=t.openInstances.indexOf(e);-1===o||(t.openInstances.splice(o,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(o){return o(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},r=new n;o.default=r},173835,(e,t,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.canUseDOM=o.SafeNodeList=o.SafeHTMLCollection=void 0;var n,r=((n=e.r(454416))&&n.__esModule?n:{default:n}).default,a=r.canUseDOM?window.HTMLElement:{};o.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},o.SafeNodeList=r.canUseDOM?window.NodeList:{},o.canUseDOM=r.canUseDOM,o.default=a},53579,(e,t,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(e,t){var o=(0,r.default)(e);if(!o.length)return void t.preventDefault();var n=void 0,a=t.shiftKey,s=o[0],i=o[o.length-1],l=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement}();if(e===l){if(!a)return;n=i}if(i!==l||a||(n=s),s===l&&a&&(n=i),n){t.preventDefault(),n.focus();return}var d=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=d&&"Chrome"!=d[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var u=o.indexOf(l);if(u>-1&&(u+=a?-1:1),void 0===(n=o[u])){t.preventDefault(),(n=a?i:s).focus();return}t.preventDefault(),n.focus()}};var n,r=(n=e.r(981524))&&n.__esModule?n:{default:n};t.exports=o.default},981524,(e,t,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,o){return t.concat(o.shadowRoot?e(o.shadowRoot):[o])},[]).filter(r)};var n=/^(input|select|textarea|button|object|iframe)$/;function r(e){var t,o,r=e.getAttribute("tabindex");null===r&&(r=void 0);var a=isNaN(r);return(a||r>=0)&&(t=!a,o=e.nodeName.toLowerCase(),(n.test(o)&&!e.disabled||"a"===o&&e.href||t)&&function(e){for(var t=e,o=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(o&&t===o&&(t=o.host.parentNode),function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),n=o.getPropertyValue("display");return t?"contents"!==n&&("visible"!==o.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0):"none"===n}catch(e){return console.warn("Failed to inspect element style"),!1}}(t))return!1;t=t.parentNode}return!0}(e))}t.exports=o.default},770267,(e,t,o)=>{var n;Object.defineProperty(o,"__esModule",{value:!0}),o.default=((n=e.r(692623))&&n.__esModule?n:{default:n}).default,t.exports=o.default},340137,(e,t,o)=>{e.i(350461),t.exports=function(){}},225499,e=>{var t=e.i(391398),o=e.i(191788);e.i(966278);var n=e.i(318398),r=e.i(565715),a=e.i(248972);class s extends o.default.Component{componentDidMount(){this.props.api.onAuthenticated(()=>{this.getUserProfile()})}getUserProfile(){let{api:e}=this.props;e&&e.getUserId()&&e.get("users/me").then(e=>{let{id:t}=(0,r.U)(e.user||{});(0,a.U)(t)},()=>{(0,a.U)(null)}).catch(()=>{(0,a.U)(null)})}render(){return(0,t.jsx)("div",{})}}let i=n.f.ApiConsumer(s);e.s(["f",0,i])},659967,e=>{var t=e.i(391398),o=e.i(145246);e.i(191788);let n=new String(".main.jsx-a640c4f42004177f{background:var(--color-light-0);opacity:0;width:0;height:2px}.busy.jsx-a640c4f42004177f{animation-name:zoomingA;animation-duration:2s;animation-iteration-count:infinite}.main.busy.jsx-a640c4f42004177f{opacity:1}@keyframes zoomingA{0%{width:0%}50%{width:100%}to{width:0%}}");n.__hash="a640c4f42004177f",e.s(["f",0,({busy:e,color:r=null})=>{let a={};return r&&(a.background=r),(0,t.jsx)("div",{style:a,className:`jsx-${n.__hash} main ${e?"busy":""}`,children:(0,t.jsx)(o.default,{id:n.__hash,children:n})})}],659967)},823889,e=>{var t=e.i(191788),o=e.i(363872);e.i(966278);var n=e.i(318398);e.i(304617);var r=e.i(574186);let a=(0,e.i(501584).f)(n.f.ApiConsumer(({pageName:e,taPageName:n,taAttributes:a,pageDesktopName:s,pageMobileName:i,api:l,extraData:d,taFromBlock:u})=>{let[p,c]=(0,t.useState)(0);return e||o.isMobile,(0,t.useEffect)(()=>{window&&0===p&&l.onAuthenticated(()=>{new r.U(l).trackPageView(n,l.getUserId(),a,u)}),c(p+1)},[]),null}),{errorMsg:"Lỗi API"});e.s(["f",0,a])},251533,e=>{var t=e.i(391398),o=e.i(145246);e.i(191788);let n=new String("img.avatar.jsx-c40b437ef3e45d92{border:1px solid;border-color:var(--blue-border);background-color:var(--grey-background);object-fit:cover;border-radius:100%;width:32px;height:32px;margin-right:8px;display:block}@media (width<=575px){img.avatar.jsx-c40b437ef3e45d92:not(.no-scale){width:28px!important;height:28px!important}}");n.__hash="c40b437ef3e45d92",e.s(["f",0,({src:e,alt:r="User not exist",profile:a="",width:s="32px",height:i="32px",noBorder:l=!1,noScale:d=!1,userColor:u="var(--blue-border)"})=>(0,t.jsxs)("a",{target:"_blank",href:a,rel:"noreferrer",className:`jsx-${n.__hash}`,children:[(0,t.jsx)("img",{style:{minWidth:s,minHeight:i,border:`${l?"0px solid":`1px solid ${u}`}`},src:e||"https://tinhte.vn/styles/uiflex/xenforo/avatars/avatar_m.png",alt:r,className:`jsx-${n.__hash} `+((d?"avatar no-scale":"avatar")||"")}),(0,t.jsx)(o.default,{id:n.__hash,children:n})]})],251533)},501584,e=>{var t=e.i(391398),o=e.i(191788),n=e.i(145246);let r=new String(".error-banner.jsx-5dfb16695906b90d{background:var(--color-warning-soft);padding:5px 10px}");r.__hash="5dfb16695906b90d";let a=({errorMsg:e})=>(0,t.jsxs)("div",{className:`jsx-${r.__hash} error-banner`,children:[(0,t.jsxs)("p",{className:`jsx-${r.__hash}`,children:[e||"Có gì đó sai sai",". Nhờ anh em báo lại mod để fix nha :("]}),(0,t.jsx)(n.default,{id:r.__hash,children:r})]});class s extends o.default.Component{constructor(e){super(e),this.state={hasError:!1}}componentDidCatch(e,t){console.log(e),console.log(t),this.setState({hasError:!0})}render(){let{errorMsg:e}=this.props,{hasError:o}=this.state;return o?(0,t.jsx)(a,{errorMsg:e}):this.props.children}}e.s(["f",0,(e,{errorMsg:o}={})=>{let n=n=>(0,t.jsx)(s,{errorMsg:o,children:(0,t.jsx)(e,{...n})});return n.displayName=n.name,n}],501584)},554035,e=>{e.s(["y",0,"dark","f",0,"light","z",0,"system","K",0,"tinhte-theme","L",0,"theme-version","u",0,16/9])},741309,e=>{e.s(["f",0,{forum_title:"Không tìm thấy",links:{permalink:""},forum_thread_count:0,forum_post_count:0,forum_thumbnail_url:"https://photo2.tinhte.vn/data/attachment-files/2018/12/4526442_tag.jpg",forum_prefixes:[]}])},571609,e=>{e.s(["f",0,{poster_avatar:"",post_body:"",post_body_html:"",post_body_plain_text:"",links:{permalink:""},permissions:{edit:!1,view:!0,delete:!1,reply:!1,report:!1,upload_attachment:!1},poster_rank:{rank_level:"1",rank_name:"Trứng",rank_points:0},post_reaction_total:0,post_reactions:{1:0,2:0,6:0,3:0,4:0,5:0},post_visitor_reaction_id:0,post_attachment_count:0}])},438467,e=>{var t=e.i(319591),o=e.i(741309);let n={thread_title:"",thread_thumbnail:{link:""},thread_image:{link:""},links:{permalink:"",first_poster_avatar:"",posts:""},first_post:e.i(571609).f,thread_create_date:t.f,thread_update_date:t.f,creator_username:"",creator_has_verified_badge:!1,thread_post_count:0,thread_view_count:0,forum:o.f,posts:[],rating_total:0,rating_count:0,thread_is_followed:!1,tinhte_dashboards:null,thread_tags:null,is_draft:!1};e.s(["f",0,n])},566573,e=>{e.s(["f",0,e=>{let{message:t=null}=e||{};return{message:t}}])},913083,661655,800450,e=>{var t=e.i(33989),o=e.i(758568),n=e.i(668564),r=e.i(14313),a=e.i(571609),s=e.i(438467);let i=Object.freeze({XeForumIds:[544,545,628],AudioForumIds:[702,704,703,744,734,709,713,708,710,711,707,761,718,717]});var l=e.i(151439);let d="/static/images/default.png",u={filename:"(Trống)",links:{data:d,permalink:d,thumbnail:d},permissions:{view:!0,delete:!1}},p=e=>(0,t.default)({},e,u),c=e=>{let t=e;return(t=(t=(t=t.replace(/(^\s*)|(\s*$)/gi,"")).replace(/[ ]{2,}/gi," ")).replace(/\n /,"\n")).split(" ").length},f=(e,n)=>{var s,i;let d,u=(0,t.default)({},e,a.f),f=(s=u.post_body_html||"",d=0,s&&(d=(s.match(/
/g)||[]).length),Math.floor(d/2)),h=c(u.post_body_plain_text||""),_=u.post_body_html,m=u.post_body_plain_text,g=!1,v="";if(_.includes('class="metaBbCode meta-threadbackgroundurl"')){g=!0;let e=/(.*?)<\/span>/g.exec(_);e&&e.length>0&&((v=e[1]).includes("")&&(v=/(.*?)<\/a>/g.exec(v)[1]),m=m.replace(v,""))}else n.background&&n.background.links&&(g=!0,v=n.background.links.image_url);if(_=(_=(_=(_=(_=(_=_.replace(':)',":)")).replace(/(:\)\))/g,"😆")).replace(/(:\))/g,"😃")).replace(/:D/,"😁")).replace(/:\(/,"😔")).replace(/:-\?/,"🤔"),u.post_is_first_post&&n&&!n.isDeepTalkArticle&&n&&n.thread_title&&!n.thread_title.includes("[QC]")){let e=_.split("
");f>=10&&h>=200&&(e.forEach((t,o)=>{o>=0&&(8===o||24===o||36===o)&&(e[o]=`${t} {{ tinhtep_placeholder }}`)}),_=e.join("
"))}let b=null;if(u&&u&&u.attachments&&u.attachments.length>0){let e,[t]=u.attachments;i=t.filename,e=!1,["mov","mp4","m4v"].forEach(t=>{i.toLowerCase().includes(t)&&(e=!0)}),(e||t.links&&t.links.video_url)&&(b=t)}let y=1===u.user_is_admin||!0===u.user_is_admin,k=1===u.user_is_moderator||!0===u.user_is_moderator,w=u.user_is_moderator_content,O=u.user_is_moderator_honor,C=u.user_is_moderator_news;return{id:u.post_id,link:u.links.permalink,excerpt:(0,l.f)(u.post_body_plain_text,150),body:u.post_body,bodyPlain:m,bodyHtml:_,since:u.post_create_date,loadMore:u.post_replies&&u.post_replies[0]&&u.post_replies[0].post_reply_count?u.post_replies[0]:null,author:{id:u.poster_user_id,name:u.poster_username,avatar:u.links.poster_avatar?u.links.poster_avatar:"https://tinhte.vn/styles/uiflex/xenforo/avatars/avatar_l.png",verified_badge:u.poster_has_verified_badge,link:`/profile/${(0,r.f)(u.poster_username)}.${u.poster_user_id}/`,rank:u.poster_rank?u.poster_rank.rank_name:"",isModeratorContent:w,isMod:k,isAdmin:y,isModHonor:O,isModNews:C},stats:{like:u.post_like_count?u.post_like_count:0,paragraphCount:f},likeUsers:u.like_users,isLiked:!!u.post_is_liked&&u.post_is_liked,isFirstPost:u.post_is_first_post,isDeleted:!!u.post_is_deleted&&u.post_is_deleted,isIgnored:!!u.user_is_ignored&&u.user_is_ignored,postReplies:u.post_replies_found?u.post_replies_found:u.post_replies?u.post_replies:[],postRepliesDetail:u.post_replies_found?u.post_replies_found:u.post_replies?u.post_replies:[],postReplyTo:u.post_reply_to,permissions:u.permissions,stickers:u.stickers,attachments:(u.attachments||[]).map(p),thread:{id:(0,o.default)(n,"id",(0,o.default)(n,"thread_id")),forumId:(0,o.default)(n,"forumId",(0,o.default)(n,"forum_id"))},posterRank:{rankLevel:u.poster_rank?u.poster_rank.rank_level:"",rankName:u.poster_rank?u.poster_rank.rank_name:"Trứng",rankPoints:u.poster_rank?Math.trunc(u.poster_rank.rank_points):0},isThreadBackground:g,threadBackgroundUrl:v,videoAttachment:b,reaction:{total:u.post_reaction_total,postReactions:u.post_reactions||[],userReactionId:u.post_visitor_reaction_id},attachmentCount:u.post_attachment_count}};e.s(["U",0,f,"e",0,(e,t)=>{let o=t.slice(),n=o.filter(t=>t.postReplyTo===e.firstPostId||!t.postReplyTo),r=o.filter(t=>t.postReplyTo&&t.postReplyTo!==e.firstPostId&&!t.isFirstPost);return(n=n.map(e=>{let t=e.postReplies.map(e=>e.post_id?r.find(t=>t.id===e.post_id):e.from&&e.to?e:null);return t=t.filter(e=>e),{...e,postRepliesDetail:t}})).sort((e,t)=>t.id-e.id)}],661655);let h=(e,t)=>{let o=[],n=[];return e.map(r=>(r.post_replies&&r.post_replies.length>0&&(r.post_replies_found=[],r.post_replies.map(n=>{if(n.post_id)for(let a=0;ae.post_id===r.post_reply_to)&&o.push(r.post_id),n)),o.map(e=>(n=n.filter(t=>t.id!==e),null)),n};e.s(["f",0,h],800450);var _=e.i(340749);let m=e=>new Date(1e3*e).toISOString(),g=[{tag:"ifa18",overlayImgUrl:"https://photo2.tinhte.vn/data/attachment-files/2018/08/4414281_ifa_overlay.png"}],v=e=>{let t=[];if(e)try{let o=Object.keys(e),n=Object.values(e);o.map((e,o)=>{let a=`/tag/${(0,r.f)(n[o])}/`;return t.push({tagId:parseInt(e,10),tag:n[o],link:a}),null})}catch(e){console.error("Error in converting tag",e)}return t},b=(e="",t=[])=>{let o=["thread_id","thread_title","first_post.post_body_plain_text","first_post.post_id","first_post.post_is_liked","first_post.post_like_count","first_post.poster_rank","first_post.poster_has_verified_badge","first_post.post_body","first_post.attachments","first_post.post_body_html","first_post.post_reaction_total","first_post.post_reactions","first_post.post_visitor_reaction_id","first_post.user_is_admin","first_post.user_is_moderator","first_post.user_is_moderator_content","first_post.user_is_moderator_honor","first_post.user_is_moderator_news","thread_image.link","thread_thumbnail.link","links.permalink","links.posts","thread_create_date","creator_user_id","creator_username","creator_is_mod","creator_has_verified_badge","links.first_poster_avatar","thread_post_count","thread_view_count","forum.forum_id","forum.forum_title","forum.links.permalink","thread_tags","permissions","user_is_ignored","latest_posts","thread_is_bookmark","thread_prefixes","background","bdContentList_promote_item","thread_is_embed_video"];return t.forEach(e=>o.push(e)),o.map(t=>e+t).join(",")},y=(e="",t=[])=>{let o=["thread_id","thread_title","thread_image.link","thread_thumbnail.link","links.permalink","links.posts","thread_create_date","creator_user_id","creator_username","creator_has_verified_badge","links.first_poster_avatar","thread_post_count","thread_view_count","thread_prefixes","first_post.post_id","first_post.post_body_plain_text","first_post.user_is_admin","first_post.user_is_moderator","first_post.user_is_moderator_content","first_post.user_is_moderator_honor","first_post.user_is_moderator_news"];return t.forEach(e=>o.push(e)),o.map(t=>e+t).join(",")},k=`lists/5/threads?limit=20&fields_include=list_item,${b("content.")}&_bdImageApiThreadThumbnailWidth=312&_bdImageApiThreadThumbnailHeight=193`,w=`lists/9/threads?limit=24&fields_include=list_item,${b("content.")}&_bdImageApiThreadThumbnailWidth=312&_bdImageApiThreadThumbnailHeight=193`,O=`lists/6/threads?limit=24&fields_include=list_item,${b("content.")}&_bdImageApiThreadThumbnailWidth=312&_bdImageApiThreadThumbnailHeight=193`,C=`lists/5/threads?limit=4&fields_include=list_item,${y("content.")}&_bdImageApiThreadThumbnailWidth=312&_bdImageApiThreadThumbnailHeight=193`,x=`lists/9/threads?limit=4&fields_include=list_item,${y("content.")}&_bdImageApiThreadThumbnailWidth=312&_bdImageApiThreadThumbnailHeight=193`;y("content.");let T=`threads/promoted?limit=18&fields_include=list_item,user_is_ignored,${b("content.")}&_bdImageApiThreadThumbnailWidth=460&_bdImageApiThreadThumbnailHeight=sw`;b("content."),y("content.");let S=`lists/10/threads?limit=1&fields_include=list_item,${b("content.")}&order=natural_reverse&_bdImageApiThreadThumbnailWidth=460&_bdImageApiThreadThumbnailHeight=sw`;e.s(["U",0,(e,d=0)=>{var u;let p,b,y,k=(0,t.default)({},e,s.f),{pagination:w,links:O}=k,C=O.permalink,x=O.permalink,T=`/thread/${k.thread_id}`,S=(0,n.f)(),j=v(k.thread_tags),A=!1,E=!1,M=!1,I=!1,P=!1,U=!1,D=!1,R="",N=!1,F=!1;j.forEach(e=>{"tinhtefact"===e.tag&&(A=!0),"deeptalk"===e.tag&&(E=!0),"tinhtelookback"===e.tag&&(M=!0),("bhtq22"===e.tag||"ttbcsponsors"===e.tag)&&(I=!0),"ttbcingodwetrust24"===e.tag&&(P=!0),"ttbc25sponsors"===e.tag&&(U=!0),"review"===e.tag&&(D=!0),e.tag&&(R+=`${e.tag}, `),"livestreamgame"===e.tag&&(N=!0)}),j.map(e=>{let t=g.find(t=>t.tag===e.tag);t&&(p=t)}),k.isDeepTalkArticle=E,k.isLookBackArticle=M,k.isTTBC=I,k.isTTBC24=P,k.isTTBC25=U,k.isReviewArticle=D;let L=(0,o.default)(k,"forum_id",(0,o.default)(k,"forum.forum_id","")),W=null;i.XeForumIds.includes(L)&&(W="xe"),i.AudioForumIds.includes(L)&&(W="audio");let $=null,H=a.f;k&&k.first_post&&k.first_post.post_id?H=k.first_post:k&&k.posts[0]&&(H=k.posts[0]),H&&H.attachments&&H.attachments.length>0&&($=H.attachments[0].links.thumbnail,F=H.attachments[0].attachment_is_video);let B=k&&k.posts&&k.posts[0]&&k.posts[0].post_is_first_post&&k.posts[0].post_body?k.posts[0].post_body:"",q=1===(0,o.default)(H,"user_is_admin",0)||!0===(0,o.default)(H,"user_is_admin",!1),V=1===(0,o.default)(H,"user_is_moderator",0)||!0===(0,o.default)(H,"user_is_moderator",!1),K=(0,o.default)(H,"user_is_moderator_content",!1),z=(0,o.default)(H,"user_is_moderator_honor",!1),Y=(0,o.default)(H,"user_is_moderator_news",!1);return{id:k.thread_id||-1*d,creatorIsMod:(0,o.default)(k,"creator_is_mod",!1),title:(0,o.default)(k,"list_item.item_title","")||k.thread_title,promoteItem:(0,o.default)(k,"bdContentList_promote_item",null),title_short:(0,l.f)((0,o.default)(k,"list_item.item_title","")||k.thread_title,85),description:H.post_body_plain_text&&H.post_body_plain_text.substring(0,150),tinhteAdsenseIsBlocked:k.tinhte_adsense_is_blocked,tinhteseoNoindex:(0,o.default)(k,"tinhte_seo.noindex",!1),excerpt:(0,l.f)(H.post_body_plain_text,200),summary:(0,l.f)(H.post_body_plain_text,500),wordCount:c(H.post_body_plain_text||""),image:k.thread_image&&k.thread_image.link,imageDetail:k.thread_image?k.thread_image:null,isCover:k.thread_image.display_mode&&"cover"===k.thread_image.display_mode,thumbnail:k.thread_thumbnail.link||S||k.links.first_poster_avatar||"",videoThumbnail:$||null,link:C,newThreadLink:x,newThreadLinkIdOnly:T,since:(0,o.default)(k,"list_item.item_date",k.thread_create_date),since_date:(0,_.f)((0,o.default)(k,"list_item.item_date",k.thread_create_date)),sinceDateDb:m((0,o.default)(k,"list_item.item_date",k.thread_create_date)),isEmbedVideo:(0,o.default)(k,"thread_is_embed_video",k.thread_is_embed_video),updated:(0,o.default)(k,"list_item.item_date",k.thread_update_date),updatedDate:(0,_.f)((0,o.default)(k,"list_item.item_date",k.thread_update_date)),updatedDateDb:m((0,o.default)(k,"list_item.item_date",k.thread_update_date)),tableOfContent:(e=>{if(!e)return null;let t=e.match(/\[(H2|H3)\](.*?)\[\/(H2|H3)\]/g);if(!t)return null;let o=[],n=0;for(let e=0;e-1&&(a.type="H3"),n+=1,a.heading=r.replace(/\[(.*?)\]/g,"").replace(/\[\/(.*?)\]/g,""),o.push(a)}return n>2?o:null})(B),author:{id:k.creator_user_id,name:k.creator_username,avatar:k.links.first_poster_avatar?k.links.first_poster_avatar:"https://tinhte.vn/styles/uiflex/xenforo/avatars/avatar_male_m.png",verified_badge:k.creator_has_verified_badge,link:`https://tinhte.vn/profile/${(0,r.f)(k.creator_username)}.${k.creator_user_id}/`,rank:H.poster_rank?H.poster_rank.rank_name:"",isFollowed:!!k.user_is_followed&&k.user_is_followed,threadCount:k.user_thread_count||0,followCount:k.user_follower_count||0,intro:k.user_about_plain_text||"",isModeratorContent:K,isMod:V,isAdmin:q,isModHonor:z,isModNews:Y},scoring:{value:k.points,status:k.status},stats:{comment:k.thread_post_count-1,view:k.thread_view_count||0,like:k.user_like_count||0,rating:{total:(0,o.default)(k,"rating_total",0)?(0,o.default)(k,"rating_total",0):0,count:(0,o.default)(k,"rating_count",0)?(0,o.default)(k,"rating_count",0):0}},forum:{id:L,title:k.forum?k.forum.forum_title:"",link:k.forum?k.forum.links.permalink:""},forumId:L,tinhteContentBrand:W,userIsIgnored:!!k.user_is_ignored&&k.user_is_ignored,isDeleted:!!k.thread_is_deleted&&k.thread_is_deleted,firstPostId:H.post_id||null,firstPost:{...f(H||{},k),isFirstPost:!0,excerpt:(0,l.f)(H.post_body_plain_text,200),postBody:H.post_body},posts:h(k.posts||[],k)||[],latestPosts:h(k.latest_posts||[],k).sort((e,t)=>t.id-e.id)||[],tags:j,tagString:R,overlayImgUrl:p?p.overlayImgUrl:null,permissions:k.permissions?k.permissions:{},fpPermissions:k.fp_permissions?k.fp_permissions:[],postLink:k.links.posts,isTinhteFact:A,isLiveStreamGame:N,isDeepTalkArticle:E,isLookBackArticle:M,isTTBC:I,isTTBC24:P,isTTBC25:U,isReviewArticle:D,isSticky:!1,isFollowed:k.thread_is_followed||!1,isBookmarked:k.thread_is_bookmark||!1,isPublished:k.thread_is_published||!1,dashboards:k.tinhte_dashboards||null,prefixes:k.thread_prefixes?k.thread_prefixes:[],isModerated:k.thread_is_moderated||!1,isDraft:k.is_draft||!1,reviewExtraData:k.review_extra_data||null,pagination:{next:w&&w.next?w.next:"",page:w&&w.page?w.page:1,pages:w&&w.pages?w.pages:1},livestream:(u=(0,o.default)(k,"tinhtemods_livestream",null))?{since:(0,o.default)(u,"stream_start_date",0),created:(0,o.default)(u,"stream_create_date",0),end:(0,o.default)(u,"stream_end_date",0),socketJoinToken:(0,o.default)(u,"stream_socket_join_token",""),socketUrl:(0,o.default)(u,"links.socket_url",""),embedUrl:(0,o.default)(u,"links.embed_url:",""),manifestUrl:(0,o.default)(u,"links.manifest_url",""),thumbnail:(0,o.default)(u,"links.thumbnail_url",""),youtube:(0,o.default)(u,"links.youtube","")}:null,isVideoFact:F,threadLayout:(b="text-only",y=v(k.thread_tags),k.first_post.attachments&&k.first_post.attachments.length>0&&(b="text-image"),k.first_post.attachments&&k.first_post.attachments.length>=3&&(b="text-3-images"),y.includes("tinhtelink")&&(b="text-link"),b),background:{id:(0,o.default)(k,"background.background_id",null),url:(0,o.default)(k,"background.links.image_url",""),thumbnailUrl:(0,o.default)(k,"background.links.thumbnail_url","")},threadHasPoll:k.thread_has_poll||!1}},"X",0,b,"Y",0,y,"i",0,e=>`lists/${e&&e>0?e:7}/threads?limit=15&fields_include=list_item,${b("content.")}&order=natural_reverse&_bdImageApiThreadThumbnailWidth=216&_bdImageApiThreadThumbnailHeight=sw`,"Z",0,S,"z",0,"/tinhte/threads/thread-reads","e",0,x,"$",0,w,"I",0,O,"V",0,"tinhte-creator/top-rating-threads?limit=10&fields_include=content.thread_id,content.thread_title,content.thread_image.link,content.thread_thumbnail.link,content.links.permalink,content.creator_user_id,content.creator_username&_bdImageApiThreadThumbnailWidth=216&_bdImageApiThreadThumbnailHeight=sw","k",0,"tinhte-creator/threads-score?limit=20&fields_include=content.thread_id,content.thread_title,content.first_post.post_body_plain_text,content.first_post.post_id,content.thread_image.link,content.thread_thumbnail.link,content.links.permalink,content.creator_user_id,content.creator_username,content.links.first_poster_avatar,content.forum.forum_id,content.forum.forum_title,content.thread_is_bookmark&_bdImageApiThreadThumbnailWidth=460&_bdImageApiThreadThumbnailHeight=sw","a",0,T,"Q",0,(e=8)=>`lists/21140/threads?limit=${e}&fields_include=list_item,${y("content.")}&_bdImageApiThreadThumbnailWidth=312&_bdImageApiThreadThumbnailHeight=193`,"P",0,C,"G",0,k],913083)},340749,e=>{e.s(["f",0,e=>{let t=new Date(1e3*e),o=t.getFullYear(),n=t.getMonth()+1,r=t.getDate();return`${r}/${n}/${o}`}])},151439,e=>{var t=e.i(561696);let o=[".",","," "];e.s(["f",0,(e,n)=>{let r=t.default.decode(e).slice(0,n+50);r=(r=r.replace("[ATTACH]","")).trim();for(let e=0;e<3;e+=1){let t=o[e],a=r.lastIndexOf(t);if(a>n){let e="."===t?t:"…";return`${r.slice(0,a)}${e}`}}return r}])},248972,e=>{e.s(["b",0,(e,t)=>{let o=firebase.analytics();t?o.logEvent(e,t):o.logEvent(e)},"U",0,e=>{firebase.analytics().setUserId(e)},"n",0,"news_feed_visit"])},668564,14313,e=>{var t=e.i(861967);e.s(["f",0,()=>(0,t.default)(["https://photo2.tinhte.vn/data/attachment-files/2019/07/4728696_1.jpg","https://photo2.tinhte.vn/data/attachment-files/2019/07/4728697_2.jpg","https://photo2.tinhte.vn/data/attachment-files/2019/07/4728698_3.jpg","https://photo2.tinhte.vn/data/attachment-files/2019/07/4728699_4.jpg","https://photo2.tinhte.vn/data/attachment-files/2019/07/4728700_5.jpg","https://photo2.tinhte.vn/data/attachment-files/2019/07/4728701_6.jpg","https://photo2.tinhte.vn/data/attachment-files/2019/07/4728702_7.jpg","https://photo2.tinhte.vn/data/attachment-files/2019/07/4728703_8.jpg","https://photo2.tinhte.vn/data/attachment-files/2019/07/4728704_9.jpg","https://photo2.tinhte.vn/data/attachment-files/2019/07/4728705_10.jpg","https://photo2.tinhte.vn/data/attachment-files/2019/07/4733055_12.jpg","https://photo2.tinhte.vn/data/attachment-files/2019/07/4733056_13.jpg","https://photo2.tinhte.vn/data/attachment-files/2019/07/4733057_14.jpg","https://photo2.tinhte.vn/data/attachment-files/2019/07/4733058_15.jpg","https://photo2.tinhte.vn/data/attachment-files/2019/07/4733059_16.jpg","https://photo2.tinhte.vn/data/attachment-files/2019/07/4733060_17.jpg","https://photo2.tinhte.vn/data/attachment-files/2019/07/4733061_18.jpg","https://photo2.tinhte.vn/data/attachment-files/2019/07/4733062_19.jpg","https://photo2.tinhte.vn/data/attachment-files/2019/07/4733063_20.jpg"])[0]],668564),e.s(["f",0,e=>{if(!e)return"";let t=e.toLowerCase();return t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/\n/gi,"-")).replace(/á|à|ả|ạ|ã|ă|ắ|ằ|ẳ|ẵ|ặ|â|ấ|ầ|ẩ|ẫ|ậ/gi,"a")).replace(/é|è|ẻ|ẽ|ẹ|ê|ế|ề|ể|ễ|ệ/gi,"e")).replace(/i|í|ì|ỉ|ĩ|ị/gi,"i")).replace(/ó|ò|ỏ|õ|ọ|ô|ố|ồ|ổ|ỗ|ộ|ơ|ớ|ờ|ở|ỡ|ợ/gi,"o")).replace(/ú|ù|ủ|ũ|ụ|ư|ứ|ừ|ử|ữ|ự/gi,"u")).replace(/ý|ỳ|ỷ|ỹ|ỵ/gi,"y")).replace(/đ/gi,"d")).replace(/\`|\~|\!|\@|\#|\||\$|\%|\^|\&|\*|\(|\)|\+|\=|\,|\.|\/|\?|\>|\<|\'|\"|\:|\;|_/gi,"")).replace(/ /gi,"-")).replace(/\-\-\-\-\-/gi,"-")).replace(/\-\-\-\-/gi,"-")).replace(/\-\-\-/gi,"-")).replace(/\-\-/gi,"-"),t=(t=`@${t}@`).replace(/\@\-|\-\@|\@/gi,"")}],14313)},574186,659497,e=>{var t=e.i(560439);e.i(304617);let o=Object.freeze({HOME:"home",TinhteFact_Detail:"tinhtefact_detail",ThreadView_Detail:"threadview_detail",ForU:"foru",BIRTHDAY:"tinhte_birthday",Community_Detail:"community_detail",Tinhte_App_Landing_Page:"tinhte_app_landing_page",Tag_Content_Listing:"tag_content_listing"});e.s(["f",0,o],659497);class n{constructor(e){this.api=e,this.clientId=e.getClientId(),this.apiUrl=`${e.getApiRoot()}?tinhte-analytics/log`,this.session=null}generateSignature(e){let o=this.clientId,n=JSON.stringify(e),r=Date.now(),a=`${n}${o}${r}`,s=(0,t.default)(a);return`${s}.${r}`}getBrowserInfo(){let e,t,o,n,r,a,s=null;return window&&(e=window.location.href,t=navigator.userAgent,o=document.referrer,n=window.screen.availHeight,r=window.screen.availWidth,a=window.innerWidth,s=window.innerWidth),{browser_height:a,browser_width:s,screen_height:n,screen_width:r,referrer:o,user_agent:t,url:e}}getUtmInfo(){let e=new URLSearchParams(window.location.search),t=e.get("utm_medium");return{source:e.get("utm_source"),medium:t,name:e.get("utm_campaign")}}preparePayload(e,t,o,n){let r=Date.now(),a={id:this.session.getSessionId(),event_name:e,event_timestamp:r,platform:t,web_info:this.getBrowserInfo(),traffic_source:this.getUtmInfo()};return o&&(a.attributes=o),n?a.user_id=n:this.api.onAuthenticated(()=>{a.user_id=this.api.getUserId()}),a}submitData(e){let t=this.generateSignature(e),o=this.apiUrl;o+=`&data=${encodeURIComponent(JSON.stringify(e))}`,o+=`&signature=${t}`,o+=`&oauth_token=${this.api.getOtt()}`,navigator.sendBeacon(o)}trackEvent(e,t=null,o=null,n="web"){}trackPageView(e,t,o,n=""){let r=[{key:"page_name",value:e}];n&&(r=[...r,{key:"from_block",value:n}]),o&&(r=[...r,...o]),this.trackEvent("page_view",t,r,"web")}}e.s(["R",0,(e,t)=>{let{taAttributes:r,taFromBlock:a}=t;e.onAuthenticated(()=>{new n(e).trackPageView(t.taPageName||o.ThreadView_Detail,e.getUserId(),r,a)})},"U",0,n],574186)}],454416,(e,t,o)=>{!function(){"use strict";var o=!!("u">typeof window&&window.document&&window.document.createElement),n={canUseDOM:o,canUseWorkers:"u">typeof Worker,canUseEventListeners:o&&!!(window.addEventListener||window.attachEvent),canUseViewport:o&&!!window.screen};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)e.r,void 0!==n&&e.v(n);else t.exports?t.exports=n:window.ExecutionEnvironment=n}()},207487,(e,t,o)=>{var n=e.r(262634),r=e.r(338402),a=e.r(640535);t.exports=function(e,t){return a(r(e),n(t,0,e.length))}},262634,(e,t,o)=>{t.exports=function(e,t,o){return e==e&&(void 0!==o&&(e=e<=o?e:o),void 0!==t&&(e=e>=t?e:t)),e}},758629,(e,t,o)=>{var n=e.r(734274),r=e.r(517059),a=Object.prototype.hasOwnProperty;t.exports=function(e){if(!n(e))return r(e);var t=[];for(var o in Object(e))a.call(e,o)&&"constructor"!=o&&t.push(o);return t}},483722,(e,t,o)=>{var n=Math.floor,r=Math.random;t.exports=function(e,t){return e+n(r()*(t-e+1))}},864618,(e,t,o)=>{var n=e.r(262634),r=e.r(640535),a=e.r(636890);t.exports=function(e,t){var o=a(e);return r(o,n(t,0,o.length))}},428772,(e,t,o)=>{var n=e.r(648346);t.exports=function(e,t){return n(t,function(t){return e[t]})}},517059,(e,t,o)=>{t.exports=e.r(358705)(Object.keys,Object)},640535,(e,t,o)=>{var n=e.r(483722);t.exports=function(e,t){var o=-1,r=e.length,a=r-1;for(t=void 0===t?r:t;++o{var n=e.r(419188),r=e.r(758629),a=e.r(379858);t.exports=function(e){return a(e)?n(e):r(e)}},861967,(e,t,o)=>{var n=e.r(207487),r=e.r(864618),a=e.r(448684),s=e.r(622986),i=e.r(372285);t.exports=function(e,t,o){return t=(o?s(e,t,o):void 0===t)?1:i(t),(a(e)?n:r)(e,t)}},35190,(e,t,o)=>{var n=e.r(292921);t.exports=function(e){return e?1/0===(e=n(e))||-1/0===e?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},372285,(e,t,o)=>{var n=e.r(35190);t.exports=function(e){var t=n(e),o=t%1;return t==t?o?t-o:t:0}},636890,(e,t,o)=>{var n=e.r(428772),r=e.r(622335);t.exports=function(e){return null==e?[]:n(e,r(e))}}]);