douxiaoyun.js/profiles/douyin-profile/Default/Cache/Cache_Data/f_0000a1
2026-07-17 22:23:39 +08:00

2 lines
485 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see routes-route.bdffb8b1.js.LICENSE.txt */
(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["71242"],{5128:function(e,t,i){"use strict";var l=i(177405);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=l(i(370991));function n(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0,n=(0,o.default)(t,i,l),r=n.os,a=n.browser;return(e=(t=t.toLowerCase()).match(/newsarticle\/([\d.]+)/))&&(a.toutiao=!0,a.version=e[1]),{browser:a,os:r}}n.default=n;t.default=n,e.exports=t.default},317497:function(e,t,i){"use strict";var l=i(177405);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=l(i(499573));function n(e,t){void 0===t&&(t="undefined"!=typeof window?window.location&&window.location.search.substr(1):"");var i={};return t&&t.split("&").forEach(function(e){if(""!==e){var t=e.split("="),l=(0,o.default)(t),n=l[0],r=l.slice(1),a=decodeURIComponent(n),d=decodeURIComponent(r.join("="));if(a.match(/\[\]$/)){var u=a.replace(/\[\]$/,"");i[u]&&i[u]instanceof Array?i[u].push(d):i[u]=[d]}else i[a]=d}}),e?i[e]:i}n.default=n;t.default=n,e.exports=t.default},4333:function(e,t,i){"use strict";var l=i(177405);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=l(i(67344)),n=l(i(108560)),r=l(i(317497)),a=l(i(982693));function d(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,l)}return i}function u(e,t,i){if(void 0===t||0===Object.keys(t).length)return e;var l,u,s=!1;"boolean"==typeof i||void 0===i?l=!!i:(l=!!i.encodeList,s=i.stable);var c=e.split("?"),v=(0,n.default)(c,2),f=v[0],m=v[1],p=void 0===m?"":m;if(p){var _=p.split("#"),g=(0,n.default)(_,2);p=g[0];var h=g[1];u=void 0===h?"":h}else{var y=e.split("#"),w=(0,n.default)(y,2);f=w[0];var x=w[1];u=void 0===x?"":x}var I=(0,r.default)(void 0,p);return I=Object.assign(I,t),s&&(I=Object.keys(I).sort(function(e,t){return e>t?1:-1}).reduce(function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?d(Object(i),!0).forEach(function(t){(0,o.default)(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}({},e,(0,o.default)({},t,I[t]))},{})),p=(p=(0,a.default)(I,l))&&"?".concat(p),u=u&&"#".concat(u),"".concat(f).concat(p).concat(u)}u.default=u;t.default=u,e.exports=t.default},370991:function(e,t){"use strict";function i(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0;t=t.toLowerCase();var o={},n={};return(e=t.match(/android;?[\s/]+([\d.]+)?/))?(o.android=!0,e[1]&&(o.version=e[1])):((e=t.match(/ipod(?:.*os\s([\d_]+))?/))?(o.ipod=!0,e[1]&&(o.version=e[1].split("_").join("."))):(e=t.match(/ipad.*os\s([\d_]+)/))?(o.ipad=!0,o.version=e[1].split("_").join(".")):"MacIntel"===i&&l>1&&(e=t.match(/version\/([\d.]+)/))?(o.ipad=!0,o.version=e[1]):(e=t.match(/iphone\sos\s([\d_]+)/))&&(o.iphone=!0,o.version=e[1].split("_").join(".")),o.ios=o.ipad||o.iphone||o.ipod),(e=t.match(/micromessenger[\s/]+([\d.]+)/))?(n.weixin=!0,n.version=e[1]):(e=t.match(/\sqq[\s/]+([\d.]+)/))?(n.qq=!0,n.version=e[1]):(e=t.match(/weibo[\s_]+([\d.]+)/))&&(n.weibo=!0,n.version=e[1]),{browser:n,os:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i.default=i;t.default=i,e.exports=t.default},301555:function(e,t,i){"use strict";var l=i(177405);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=l(i(511062)),n=function(e){var t;return(t=Array.isArray(e[0])?e[0]:e).reduce(function(e,t){return[].concat((0,o.default)(e),(0,o.default)((t+"").replace(/\[['"]/g,"[").replace(/\]|['"](?=\])/g,"").split(/[.[]/)))},[])};function r(e){for(var t=arguments.length,i=Array(t>1?t-1:0),l=1;l<t;l++)i[l-1]=arguments[l];var o=e;return o&&0!==i.length?((i=n(i)).every(function(e){return null!=(o=o[e])}),o):o}r.default=r;t.default=r,e.exports=t.default},982693:function(e,t,i){"use strict";var l=i(177405);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=l(i(321669));function n(e,t){var i=[];return Object.keys(e).forEach(function(l){var n=e[l];null!=n&&("object"===(0,o.default)(n)?t&&n instanceof Array&&n.every(function(e){return"object"!==(0,o.default)(e)})?n.forEach(function(e){i.push("".concat(encodeURIComponent(l),"[]=").concat(encodeURIComponent(e)))}):i.push("".concat(encodeURIComponent(l),"=").concat(encodeURIComponent(JSON.stringify(n)))):i.push("".concat(encodeURIComponent(l),"=").concat(encodeURIComponent(n))))}),i.join("&")}n.default=n;t.default=n,e.exports=t.default},637240:function(e,t,i){"use strict";var l=i(177405);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=l(i(5128)),n=l(i(166926)),r=i(639763),a=new n.default;function d(){var e,t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,d=arguments.length>3?arguments[3]:void 0,u=(0,o.default)(i,l,d),s=u.os,c=u.browser;return i=i.toLowerCase(),l=l.toLowerCase(),!s.ios&&!s.android&&((e=i.match(/windows phone ([\d.]+)/))?(s.wp=!0,s.version=e[1]):(e=i.match(/(?:web|hpw)os[\s/]([\d.]+)/))?(s.webos=!0,s.version=e[1],i.match(/touchpad/)&&(s.touchpad=!0)):(e=i.match(/blackberry.*version\/([\d.]+)/))?(s.blackberry=!0,s.version=e[1]):(e=i.match(/bb10.*version\/([\d.]+)/))?(s.bb10=!0,s.version=e[1]):(e=i.match(/rim\stablet\sos\s([\d.]+)/))?(s.rimtabletos=!0,s.version=e[1]):(e=i.match(/kindle\/([\d.]+)/))?(s.kindle=!0,s.version=e[1]):(e=i.match(/(?:mobile|tablet); rv:([\d.]+).*firefox\/[\d.]+/))&&(s.firefoxos=!0,s.version=e[1])),(e=i.match(/webkit\/?([\d.]+)/))&&(c.webkit=!0,c.version=e[1]),(e=i.match(/(?:chrome|crios)\/([\d.]+)/))?(c.chrome=!0,c.version=e[1]):(e=i.match(/(?:msie\s|trident\/\d(?=[^?]+).*rv:)([\d.]+)/))?(c.ie=!0,c.version=e[1]):(e=i.match(/firefox\/([\d.]+)/))?(c.firefox=!0,c.version=e[1]):i.match(/playbook/)&&(c.playbook=!0),i.match(/ucbrowser/)?c.ucbrowser=!0:i.match(/qqbrowser/)&&(c.qqbrowser=!0),!c.chrome&&i.match(/ip(?:one|od|ad).*applewebkit(?!.*safari)/)&&(c.webview=!0),(e=i.match(/silk\/([\d._]+)/))&&(c.silk=!0,c.version=e[1]),s.android&&i.match(/kindle fire/)&&(c.silk=!0),(c.webview||(e=i.match(/version\/([\d.]+)(?:[^m]*mobile)?[^s]*safari/)))&&(i.match(/macintosh; intel/)||s.ios||/win(?:\d{2}|dows)/.test(l))&&(c.safari=!0,!s.ios&&(c.version=e[1])),!(c.weixin||c.qq||c.weibo)&&((e=i.match(/fbav\/([\d.]+)/))?(c.facebook=!0,c.version=e[1],(e=i.match(/fbsn\/ios;fbsv\/([\d.]+)/))&&(s.ios=!0,s.version=e[1])):Object.keys(t=a.parse(i)).length?r(c,t):n&&(c.robot=RegExp("\\+https:\\/\\/developers.google.com\\/\\+\\/web\\/snippet\\/|ad\\smonitoring|adsbot|baiduspider|bingbot|cloudflare|crawler|curl|embedly|exabot|facebookexternalhit|google|googlebot|gurujibot|heritrix|linkedinbot|msnbot|phantomjs|phantom\\.js|pingdom|python|rtlnieuws|slackbot|slurp|spbot|telegrambot|test\\scertificate|testing|tiabot|tumblr |twitterbot|web\\sscraper|wget|yandexbot|apex|applebot|duckduckbot|facebot|flipboard|gsa-crawler|ia_archiver|pinterest|skypeuripreview|odklbot|archive.org_bot|ltx71|guzzlehttp|vkshare|discordbot|whatsapp").test(i))),c.livestream_all=c.livestream||c.livestream_pro||c.virgo||c.livestream_lite,s.tablet=s.ipad||c.playbook||s.android&&!i.match(/mobile/)||c.firefox&&!!i.match(/tablet/)||c.ie&&!i.match(/phone/)&&!!i.match(/touch/),s.phone=!s.tablet&&!s.ipod&&(s.android||s.iphone||s.webos||s.blackberry||s.bb10||c.chrome&&!!i.match(/android|crios\/[\d.]+/)||c.firefox&&!!i.match(/mobile/)||c.ie&&!!i.match(/touch/)),{browser:c,os:s}}a.add(Object.keys(n.default.strategies)),d.default=d;t.default=d,e.exports=t.default},166926:function(e,t,i){"use strict";var l=i(177405);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=l(i(624266)),n=l(i(212388)),r=l(i(67344)),a=function(e){if(e.match(/^\d+$/))return 6===e.length?e.match(/\d{2}/g).map(function(e){return+e}).join("."):e.split("").join(".");return e},d=function(){function e(){(0,o.default)(this,e),(0,r.default)(this,"cache",void 0),this.cache=[]}return(0,n.default)(e,[{key:"add",value:function(t){var i=this;t.forEach(function(t){var l;if("string"==typeof t){if(!e.strategies[t])return;l=e.strategies[t]}else l=t;i.cache.push(l)})}},{key:"parse",value:function(e){e=e.toLowerCase();for(var t=0,i=this.cache.length;t<i;++t){var l=this.cache[t](e);if(l)return l}return{}}}]),e}();(0,r.default)(d,"strategies",{livestream:function(e){var t=e.match(/live_stream_([\d.]+)/);if(t)return{livestream:!0,version:a(t[1]||"")}},livestream_pro:function(e){var t=e.match(/live_stream_pro_([\d.]+)/);if(t)return{livestream_pro:!0,version:a(t[1]||"")}},livestream_lite:function(e){var t=e.match(/live_stream_lite_([\d.]+)/);if(t)return{livestream_lite:!0,version:a(t[1]||"")}},virgo:function(e){var t=e.match(/live_i18n_([\d.]+)/);if(t){var i=t[1];return i.match(/^\d+$/)&&(i=i.split("").join(".")),{virgo:!0,version:i}}},aweme:function(e){var t=e.match(/aweme_([\d.]+)/);if(t)return{aweme:!0,version:a(t[1]||"")}},aweme_lite:function(e){var t=e.match(/(?:aweme|douyin)_lite_([\d.]+)/);if(t)return{aweme_lite:!0,version:a(t[1]||"")}},aweme_hotsoon:function(e){var t=e.match(/aweme_hotsoon_([\d.]+)/);if(t)return{aweme_hotsoon:!0,version:a(t[1]||"")}},tiktok:function(e){var t=e.match(/(?:trill|musical_ly)_([\d.]+)/);if(t){var i=t[1];return i.match(/^\d+$/)&&(i=i.split("").join(".")),{tiktok:!0,version:i}}},dcd:function(e){var t=e.match(/automobile.([\d.]+)/);if(t)return{dcd:!0,version:t[1]}},xigua:function(e){var t=e.match(/videoarticle\/([\d.]+)/);if(t)return{xigua:!0,version:t[1]}},manyhouse:function(e){var t=e.match(/manyhouse\/([\d.]+)/);if(t)return{manyhouse:!0,version:t[1]}},dragon:function(e){var t=e.match(/dragon\/([\d.]+)/);if(t)return{dragon:!0,version:t[1]}},toutiao:function(e){var t=e.match(/newsarticle\/([\d.]+)/);if(t){var i={toutiao:!0,version:t[1]};return e.match(/newslite(?:inhouse)?/)&&(i.toutiao_lite=!0),e.match(/mode\/basic/)&&(i.toutiao_basic=!0),i}},lark:function(e){if(e.match(/lark/))return{lark:!0}},topbuzz:function(e){if(e.match(/topbuzz/))return{topbuzz:!0}},ulike:function(e){var t=e.match(/ulike\/([\d.]+)/);if(t)return{ulike:!0,version:t[1]}},faceu:function(e){var t=e.match(/faceu\/([\d.]+)/);if(t)return{faceu:!0,version:t[1]}},maya:function(e){var t=e.match(/maya\/([\d.]+)/);if(t)return{maya:!0,version:t[1]}},flipchat:function(e){var t=e.match(/flipchat\/([\d.]+)/);if(t)return{flipchat:!0,version:t[1]}}}),d.default=d;t.default=d,e.exports=t.default},230294:function(e,t,i){"use strict";var l=i(346286),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var i,n,r,a,d,u,s,c,v=!1;!t&&(t={}),t.debug;try{if(d=l(),u=document.createRange(),s=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(i){if(i.stopPropagation(),t.format){if(i.preventDefault(),void 0===i.clipboardData){window.clipboardData.clearData();var l=o[t.format]||o.default;window.clipboardData.setData(l,e)}else i.clipboardData.clearData(),i.clipboardData.setData(t.format,e)}t.onCopy&&(i.preventDefault(),t.onCopy(i.clipboardData))}),document.body.appendChild(c),u.selectNodeContents(c),s.addRange(u),!document.execCommand("copy"))throw Error("copy command was unsuccessful");v=!0}catch(l){try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),v=!0}catch(l){;i="message"in t?t.message:"Copy to clipboard: #{key}, Enter",n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",a=i.replace(/#{\s*key\s*}/g,n),window.prompt(a,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(u):s.removeAllRanges()),c&&document.body.removeChild(c),d()}return v}},19484:function(e,t,i){"use strict";let l,o,n,r;i.r(t),i.d(t,{default:function(){return c6}}),i("490629");var a,d,u,s,c=i("320165"),v=i("101199"),f=i("469935"),m=i.n(f),p=i("670556"),_=i("855357"),g=i("426112"),h=i("395677"),y=i("690301"),w=i("333047"),x=i("499059"),I=i("330258"),C=i("377381"),b=i("629686");i("968336"),i("374954"),i("228983"),i("759943");var E=i("121998"),S=i("732979"),k=i.n(S),T=i("426038"),L=i("780946"),A=i("335924"),R=i("578272"),N=i("810069"),P=i("409250"),M=i("857800"),j=i("709705"),D=i("618759"),F=i("454604"),V=i("365169"),B=i("701650"),O=i("639249").Z;i("117232"),i("527553");let U=()=>{let e=x.Le.getConfig(x.gI.itemIdToVideoPreferData)||{},t=Object.keys(e).sort((t,i)=>{var l,o;return(null===(l=e[i])||void 0===l?void 0:l.timestamp)-(null===(o=e[t])||void 0===o?void 0:o.timestamp)}).slice(0,50),i={fsn:[],lk:[],halfMin:[],min:[],show:[],skip:[],head:[]};return t.forEach(t=>{Object.keys(e[t].interaction).forEach(l=>{var o,n,r,a,d,u;"dislike"===l&&i.skip.push({[t]:{user_act:H(e[t].interaction),s_ts:(null===(o=e[t].player)||void 0===o?void 0:o.playTimestamp)||0,p_t_a:(null===(n=e[t].player)||void 0===n?void 0:n.overallPlayTime)||0,aid:e[t].aid,v_t:e[t].v_t,timestamp:e[t].interaction.dislike||0}}),"follow"===l&&i.head.push({[t]:{user_act:H(e[t].interaction),s_ts:(null===(r=e[t].player)||void 0===r?void 0:r.playTimestamp)||0,p_t_a:(null===(a=e[t].player)||void 0===a?void 0:a.overallPlayTime)||0,aid:e[t].aid,v_t:e[t].v_t,timestamp:e[t].interaction.follow||0}}),e[t].interaction[l]&&i[l]&&i[l].push({[t]:{user_act:H(e[t].interaction),s_ts:(null===(d=e[t].player)||void 0===d?void 0:d.playTimestamp)||0,p_t_a:(null===(u=e[t].player)||void 0===u?void 0:u.overallPlayTime)||0,aid:e[t].aid,v_t:e[t].v_t,timestamp:e[t].interaction[l]}})})}),Object.keys(i).forEach(e=>{i[e].sort((e,t)=>{var i,l,o,n;let r=(null===(l=Object.values(e))||void 0===l?void 0:null===(i=l[0])||void 0===i?void 0:i.timestamp)||0;return((null===(n=Object.values(t))||void 0===n?void 0:null===(o=n[0])||void 0===o?void 0:o.timestamp)||0)-r})}),i},H=e=>parseInt([Number(!!e.dislike)||0,Number(!!e.clickComment)||0,Number(!!e.fav)||0,Number(!!e.click)||0,Number(!!e.head)||0,Number(!!e.follow)||0,Number(!!e.share)||0,Number(!!e.comment)||0,Number(!!e.like)||0,Number(!!e.fsn)||0].join(""),2),W=()=>x.Le.getConfig(x.gI.PlayerStatus);var G=i("402748"),z=i("116537"),Z=i("967139"),q=i("649310"),$=i("799155"),K=i("931334"),Y={recommend:"recommend"};let Q=new Map([["recommend","recommend"],["follow","follow"],["friend","friend"],["topic","topic"]]);var J=i("59677"),X=i("164814"),ee=i("535440"),et=i("778018");i("706056");var ei=i("280647"),el=i("243960"),eo=i("339808"),en=i("734123"),er=i.n(en),ea=i("72430"),ed=i("638052"),eu=i("593124"),es=i("939165"),ec=i("206698"),ev=i("405368"),ef=i("905010"),em=i("988736"),ep=i("540129"),e_=i("759894"),eg=i("414061"),eh=i("995898"),ey=i("880327"),ew=i("474221"),ex=i("988381"),eI=i("889429"),eC=i("31992"),eb=i("636081"),eE=i("558337"),eS={playerContainer:"GDqYF8ln",miniModalContainer:"v4jJ7GNA",miniModalFullScreen:"Va5Zr16z",playerCommentWrapper:"cIdYdk4Z",transparent:"AbMjMDj4",hiddenFeedPlayer:"tPEeN_KP",adapterMiniHeight:"GG03reCn",adapterMiniHeight455:"HGI8LBun",adapterMiniHeightWithDislikeBtn:"scyfhFea",isFullScreen:"GrSfnIkH",searchFit:"zhCkrTpx",sideBar:"SnIRhBII",shopSidebar:"W6AQqTho",sideBarDefaultWidth:"Xn0pwrDr",force300pxWidth:"RXWuteO0",bgColorDarken1:"G3EWAYAO",bgColorDarken2:"Y4dF4HX7",middle:"V6X1dawp",sideBarInnerWrapper:"yjCQ8ULE",sideBarInnerHidden:"jTHSqTtS",relatedVertical:"uUWWLay_",inFullScreen:"RyovDEna",sideBarHidden:"qAiV_N36",noTransition:"doBOZ2vd",sideBarInBottomLayer:"See9l7Bd",sideBarInUnderLayer:"h2jZ8WEh",sideBarInTopLayer:"asOoqyxI",chapterSideBarInTopLayer:"LQGTBhJg",displayNone:"NWm9k8FY",forFixedLayer:"ovSpAZLq",showSideBar:"HXD5OcfU",interactionPos:"XvUuNhor",removeSlideRelatedButton:"GNw3ynVy",isSafari:"m4IkeWgA",videoImage:"g4ETMEUx",isHavePlayer:"zQbAwUSW",playerWrap:"L14GCOtZ",electronDrag:"DUYOSQh0",playerWrapZIndex:"PXnwcp1B",isMiniWindowActive:"ZmdBOQSY",btn:"UbL95Ovg",openBtn:"ziOlqCV4",putBtn:"B1rYRHeD",backgroundImg:"GzfJ2UjS",backgroundMask:"WIUgeXWD",backgroundImgSarari:"_nHaEbwe",videoInfoContainer:"y9WbMzcW",title:"QmmIKd4O",infoContainer:"NmltjGmv",time:"f3xONhAE",reportTool:"qb2xj4Hc",report:"Hi3sd2A2",publishTime:"lo_pmYac",statsContainer:"oSuRYa7N",count:"eObsoZQe",statsItem:"FB0OHNpX",share:"t0W2CXzT",active:"ffK9EcQv",iconSvg:"cHwLp1Mc",shareContainer:"XVfMOBdO",shareBox:"UBZlByF1",shareBoxHidden:"ILrNiP9n",miniScreenBtn:"ds3y4_TH",hidden:"vu4S7yCf",imgPlaceHolder:"ZX20inB4",programCardHidden:"Wze8DKjY",linkHashTag:"ARVkVeDZ",hide:"Hsd9txGb",inOutFeed:"PaAs1g02",shopCard:"Ccq0v2G5",adapterSeventh:"aU97GbTL",playSwitch:"l6BAwUzr",maskBackgroundHidden:"L1ABi7tG",posTransition:"ip0cQxEm"};let ek=e=>{let{children:t,fallback:i}=e,[l,o]=v.useState(!1);return(v.useEffect(()=>o(!0),[]),l)?t:null!=i?i:(0,c.jsx)(c.Fragment,{})};i("679308");var eT=i("890710"),eL=i("782166"),eA=i("392430"),eR={panelWrapper:"IfQddDc3",panel:"cAiXCGBj",buttonWraper:"C6whzuUb",button:"kwGLvYz_",right:"e_3kYdnI",opacityAnimation:"nliYqmkn"};let eN=null,eP=!1;function eM(e){let{text:t,style:i}=e;async function l(){(0,eL.J)(null==eN?void 0:eN.innerText),L.F.info({text:"已复制",duration:1e3})}return(0,c.jsx)("div",{className:eR.panel,style:{height:i.height,width:i.width},onDoubleClick:l,children:t})}function ej(e){let{name:t,text:i,showPanelRightside:l}=e;return(0,c.jsx)("div",{className:eR.button,onClick:function(e){eP?(eN.style="display: none;",eP=!1):(!function(e,t){if(eN){let e=`top:${t.top}px; left:${t.left}px;`;0===t.right&&(e=`top:${t.top}px; right:0px;`),eN.style=e}else{let e=`top:${t.top}px; left:${t.left}px;`;0===t.right&&(e=`top:${t.top}px; right:0px;`),(eN=document.createElement("div")).className=eR.panelWrapper,eN.id="panelContainer",eN.style=e,document.body.appendChild(eN)}eT.render((0,c.jsx)(eM,{text:e,style:t}),eN)}(i,function(e,t){let i={width:300,height:600,top:0,left:0,right:""},l=t.target.getBoundingClientRect(),o=document.documentElement.scrollTop,n=document.documentElement.clientWidth;return i.right=l.right+4+300>n?0:"unset",i.top=l.bottom+4+o,e?i.left=l.right+4:i.left=l.left-i.width-4,i}(l,e)),eP=!0),e.stopPropagation(),e.preventDefault()},children:t})}function eD(e){let{req:t=null,video:i,isLeft:l=!0,showPanelRightside:o=!1,size:n=null,gear:r}=e;return(0,v.useEffect)(()=>()=>void(eN&&(document.body.removeChild(eN),eN=null,eP=!1)),[]),(0,c.jsxs)("div",{className:m()(eR.buttonWraper,eR.opacityAnimation,{[eR.right]:!l}),children:[t&&(0,c.jsx)(ej,{name:"请求",text:t,showPanelRightside:o}),i&&(0,c.jsx)(ej,{name:"视频",text:function(e,t,i){if("String"!==(0,eA.tQ)(e))return"";let l=e.split("\r\n");if(t){let e=`播放分辨率: ${t.height},${t.width}`;l.splice(2,0,e)}if(i){let e=`播放档位: ${i}`;l.splice(2,0,e)}return l.join("\r\n")}(i,n,r),showPanelRightside:o})]})}var eF=i("624508"),eV=i("205030"),eB=new eF.h({clickAuthorHead:{eventName:"click_author_head",params:{click_from:"",action:"open",author_id:"",group_id:"",enter_from:"",previous_page:"",is_full_screen:"0",is_full_webscreen:"",log_pb:"",from_follow_list:"0",from_xigua:0,music_id:"",aweme_type:"",clarity:"",is_auto:1,to_user_id:"",is_co_publish:0,co_publish_author_list:void 0}},clickCommentButton:{eventName:"click_comment_button",params:{action:"",author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",is_full_screen:"0",from_follow_list:"0",relation:"",clarity:"",aweme_type:"",click_from:"",item_duration_ms:0}},follow:{eventName:"follow",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",is_full_screen:"0",tab_name:"",click_method:"",from_xigua:0,relation:"",from_group_id:"",music_id:"",compilation_id:"",aweme_type:"",is_pure:""}},followCancel:{eventName:"follow_cancel",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",is_full_screen:"0",tab_name:"",click_method:"",relation:"",from_group_id:"",music_id:"",compilation_id:""}},volumeNormReady:{eventName:"volume_norm_ready",params:{state:"",isReady:void 0,muted:void 0,volume:void 0,enter_from:"",peak:void 0,loudness:void 0,vid:""}},volumeNormError:{eventName:"volume_norm_error",params:{state:"",error:"",muted:void 0,volume:void 0,currentTime:void 0,enter_from:"",peak:void 0,loudness:void 0,vid:""}},videoAnchorShow:{eventName:"video_anchor_show",params:{group_id:"",author_id:"",enter_from:"",type:""}},videoAnchorClick:{eventName:"video_anchor_click",params:{group_id:"",author_id:"",enter_from:"",type:""}},vsVideoShow:{eventName:"vs_video_show",params:{enter_from_merge:"",enter_method:"",previous_page:"",action_type:"",is_vs:1,vs_season_id:"",vs_episode_id:"",room_id:"",vs_ep_group_id:"",vs_episode_stage:"",vs_episode_type:"",vs_episode_sub_type:"",vs_play_status:"",vs_is_portraid_content:""}},clickPreviousVideo:{eventName:"click_previous_video",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",click_from:"scroll",compilation_id:"",is_card_expand:"",is_small_window:"0",is_update:"",is_seen:"",play_material:"video"}},clickNextVideo:{eventName:"click_next_video",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",click_from:"scroll",compilation_id:"",is_card_expand:"",is_small_window:"0",is_update:"",is_seen:"",play_material:"video"}},clickMainPage:{eventName:"click_main_page",params:{enter_from:""}},closePlayer:{eventName:"close_player",params:{click_method:"",enter_from:""}},dislikeRecallShow:{eventName:"dislike_recall_show",params:{}},dislikeRecallClick:{eventName:"dislike_recall_click",params:{}}});let eO=e=>{var t,i,l,o,n;let r={to_user_id:null==e?void 0:null===(t=e.authorInfo)||void 0===t?void 0:t.uid,is_co_publish:0,co_publish_author_list:void 0};if((null==e?void 0:null===(l=e.cooperationInfo)||void 0===l?void 0:null===(i=l.cooperationCreators)||void 0===i?void 0:i.length)>1){r.is_co_publish=1;let t=null==e?void 0:null===(n=e.cooperationInfo)||void 0===n?void 0:null===(o=n.cooperationCreators)||void 0===o?void 0:o.filter(e=>e.roleId!==eV.iG.Author);(null==t?void 0:t.length)&&(r.co_publish_author_list=t.map(e=>`${e.uid}_${null==e?void 0:e.roleId}`))}return r},eU=e=>{let{player:t,abTestData:i,awemeInfo:l,chapterScrollElRef:o,topLevelSidebar:n,activateCard:r,resetClosingShopRef:a,isActive:d,isInnerFeed:u}=e,[s,c]=(0,v.useState)(-1),[f,m]=(0,v.useState)(!1),p=(0,v.useRef)(""),_=(0,v.useRef)(!0),g=null==l?void 0:l.chapterInfo,h=e=>{null==e||e.stopPropagation()};return(0,v.useEffect)(()=>{if(t&&(null==g?void 0:g.status)){let e=e=>{var t;let i=(null!==(t=e.currentTime)&&void 0!==t?t:0)*1e3,{list:l}=g,o=l.map(e=>e.timestamp),n=-1;for(let e=0;e<o.length;e++)i>=o[e]&&(n=e);c(n)};return t.on("timeupdate",e),()=>{t.off("timeupdate",e)}}},[t,i,g]),(0,v.useEffect)(()=>{let e=u&&p.current!==(null==l?void 0:l.awemeId);if(o.current||e){var t;return null===(t=o.current)||void 0===t||t.addEventListener("wheel",h),()=>{var e;null===(e=o.current)||void 0===e||e.removeEventListener("wheel",h)}}},[o,d,l,u]),(0,v.useEffect)(()=>{if(u&&p.current!==(null==l?void 0:l.awemeId)){var e;m(!1),p.current=null!==(e=null==l?void 0:l.awemeId)&&void 0!==e?e:""}},[l,u]),{chapterProgress:s,chapterSliderShow:f,setChapterSliderShow:m,triggerChapterSliderShow:()=>{if(!!_.current){if(_.current=!1,setTimeout(()=>{_.current=!0},500),f&&"sidebar"===n){r("chapterSidebar");return}!f&&a(),m(!f)}}}};var eH=i("285406"),eW=i.n(eH),eG=i("229757"),ez=i.n(eG),eZ=i("59850"),eq=i("953851"),e$=i("119778"),eK=i("190503"),eY=i("326128");let eQ=async e=>{var t,i;let{secUid:l,uid:o}=e,n=await (0,e$.fetchUserProfile)(l),r=null==n?void 0:null===(t=n.user)||void 0===t?void 0:t.followStatus,a=null==n?void 0:null===(i=n.user)||void 0===i?void 0:i.followerStatus,d=x.Le.getConfig(x.gI.FollowStatusCache)||{};d[o]={followerStatus:a,followStatus:r},x.Le.setConfig(x.gI.FollowStatusCache,d),eg.emit(eg.EVENT.syncInteractionStatus,{action:"follow",toUserId:o})},eJ=()=>(!x.Le.getConfig(x.gI.FollowStatusCache)&&x.Le.setConfig(x.gI.FollowStatusCache,{}),x.Le.getConfig(x.gI.FollowStatusCache)),eX=e=>{let{actionUid:t,followStatus:i,followerStatus:l}=e,o=ez()(eJ());o[t]={followerStatus:l,followStatus:i},x.Le.setConfig(x.gI.FollowStatusCache,o)},e0=e=>{let{selfUid:t,actionUid:i,defaultFollowStatus:l,onLoginSuccess:o,isLogin:n,logExtraParams:r={},accountParentEl:a=document.body,fail:d,success:u,complete:s,defaultFollowerStatus:c,preventReport:f=!1,scene:m,from:p}=e,_=(0,v.useRef)(!1),g=(0,v.useRef)(0),h=(0,eZ.Z)(async e=>{let{action:o,clickFrom:n="icon"}=e,a="",v=0;try{let{statusCode:e,followStatus:s,errMsg:m,logPb:_}=await (0,eK.Z)(i,"follow"===o?1:0);a=_,v=e,e?null==d||d({action:o,errMsg:m,statusCode:e,logPb:a,clickFrom:n}):(null==u||u({action:o,followStatus:s,beforeFollowStatus:l,logPb:a,clickFrom:n}),"follow"===o&&(eq.a.TrayPushGuideManager.emitFollowEvent(),eg.emit(eg.EVENT.showClientDownloadGuide,{isShow:!0,type:"follow",text:"及时接收「关注的人」开播提醒",from:p})),!f&&("follow"===o?ed.logInstance.sendLog("follow",(0,b._)({urlParamList:["previous_page"],log_pb:a,enter_from:(0,e_.mo)(),is_full_screen:(0,ey.r)()?"1":"0",tab_name:(0,eC.zD)()||(0,A.Rs)("tab_name")||"",click_method:n,relation:String(l)},r)):ed.logInstance.sendLog("followCancel",(0,b._)({urlParamList:["previous_page"],log_pb:a,enter_from:(0,e_.mo)(),is_full_screen:(0,ey.r)()?"1":"0",tab_name:(0,eC.zD)()||(0,A.Rs)("tab_name")||"",click_method:n,relation:String(l)},r))),eX({actionUid:i,followerStatus:c,followStatus:s}),eg.emit(eg.EVENT.syncInteractionStatus,{action:o,fromUserId:t,toUserId:i}))}catch(e){null==d||d({action:o,logPb:a,clickFrom:n})}return null==s||s({action:o,logPb:a,clickFrom:n}),{statusCode:v}}),y=(0,eZ.Z)(async e=>{var t,i;let{clickFrom:l,noLoginCb:n,loginPanelTarget:r}=e||{};(0,eY.ZP)({success:async()=>{_.current=!0,await (null==o?void 0:o());let{statusCode:e}=await h({action:"follow",clickFrom:l})||{};_.current=!1,g.current=e,g.current===w.ERROR_CODE.ERROR_USER_UNLOGIN&&(null==n||n())},headerText:"登录后即可关注",enterMethod:"follow",next:`https://${null===(i=window)||void 0===i?void 0:null===(t=i.location)||void 0===t?void 0:t.host}`},a instanceof HTMLElement?a:a.current)}),x=(0,eZ.Z)(async e=>{let{clickFrom:t="icon",loginPanelTarget:l}=e||{};if(ed.logInstance.sendLog("clickFollow",(0,b._)({enter_from:(0,e_.mo)(),click_method:(null==r?void 0:r.clickFrom)||t||"icon",tab_name:(0,eC.zD)()||(0,A.Rs)("tab_name")||""},eW()(r,["parentEle","clickFrom"]))),!_.current&&!!i)n?(_.current=!0,await h({action:"follow",clickFrom:t}),eg.emit(eg.EVENT.userBlockEvent,{uid:i,isBlock:!1,action:"follow"}),_.current=!1):y({clickFrom:t,noLoginCb:()=>{setTimeout(()=>{y({clickFrom:t,noLoginCb:void 0,loginPanelTarget:l})},1e3)},loginPanelTarget:l})});return{unFollow:(0,eZ.Z)(async e=>{let{clickFrom:t="icon",loginPanelTarget:l}=e||{};if(n){if(_.current||!i)return;_.current=!0,await h({action:"unFollow",clickFrom:t}),_.current=!1}else{var r,d;(0,eY.ZP)({success:async()=>{await (null==o?void 0:o()),await h({action:"unFollow",clickFrom:t})},headerText:"登录后即可关注",enterMethod:"follow",next:`https://${null===(d=window)||void 0===d?void 0:null===(r=d.location)||void 0===r?void 0:r.host}`},a instanceof HTMLElement?a:a.current)}}),follow:x}};var e1=i("988805"),e2=i("480333");let e3=new class e{removeCb(e){let t=this.cbList.findIndex(t=>t===e);t>-1&&this.cbList.splice(t,1)}addCb(e){return this.cbList.push(e),()=>{this.removeCb(e)}}destroyCenter(){var e;null===(e=this.destroy)||void 0===e||e.call(this)}constructor(){(0,e2._)(this,"destroy",void 0),(0,e2._)(this,"cbList",[]);this.destroy=eg.listen(eg.EVENT.syncInteractionStatus,e=>{var t,i,l,o,n,r;let a,d;let{action:u,fromUserId:s,toUserId:c,awemeId:v,mixId:f,musicId:m,seriesId:p}=e,_=null===(t=x.Le.getConfig(x.gI.FollowStatusCache))||void 0===t?void 0:t[c];(null==_?void 0:_.followStatus)===e1.$u.Followed?(a=e1.vc.Followed,d=e1.TT.Inactive):(null==_?void 0:_.followStatus)===e1.$u.FollowEach?(a=e1.vc.FollowEach,d=e1.TT.Inactive):(null==_?void 0:_.followStatus)===e1.$u.Requested?(a=e1.vc.Requested,d=e1.TT.Inactive):((null==_?void 0:_.followerStatus)>e1.z5.UnFollow?(d=e1.vc.FollowByOther,a=e1.vc.FollowByOther):a=e1.vc.UnFollow,d=e1.TT.Active);let g=null===(i=x.Le.getConfig(x.gI.DiggStatusCache))||void 0===i?void 0:i[v],h=null===(l=x.Le.getConfig(x.gI.CollectStatusCache))||void 0===l?void 0:l[v],y=null===(o=x.Le.getConfig(x.gI.CollectMixStatusCache))||void 0===o?void 0:o[f],w=null===(n=x.Le.getConfig(x.gI.CollectSeriesStatusCache))||void 0===n?void 0:n[p],I=null===(r=x.Le.getConfig(x.gI.CollectMusicStatusCache))||void 0===r?void 0:r[m];try{this.cbList.forEach(e=>{e&&e({followStatus:null==_?void 0:_.followStatus,followButtonText:a,followButtonType:d,awemeId:v,selfUid:s,action:u,actionUid:c,mixId:f,seriesId:p,musicId:m,diggCount:null==g?void 0:g.count,diggStatus:null==g?void 0:g.diggStatus,collectCount:null==h?void 0:h.count,collectStatus:null==h?void 0:h.collectStatus,collectMixStatus:null==y?void 0:y.collectStatus,collectSeriesStatus:null==w?void 0:w.collectStatus,collectMusicStatus:null==I?void 0:I.collectStatus})})}catch(e){}})}},e6=e=>{let{followStatus:t,followerStatus:i}=e,l=e1.vc.UnFollow,o=e1.TT.Active;return t===e1.$u.Followed?(l=e1.vc.Followed,o=e1.TT.Inactive):t===e1.$u.FollowEach?(l=e1.vc.FollowEach,o=e1.TT.Inactive):t===e1.$u.Requested?(l=e1.vc.Requested,o=e1.TT.Inactive):(l=i>e1.z5.UnFollow?e1.vc.FollowByOther:e1.vc.UnFollow,o=e1.TT.Active),{text:l,buttonType:o}},e5=e=>{var t,i,l;let{selfUid:o,defaultFollowStatus:n=e1.$u.UnFollow,defaultFollowerStatus:r=e1.z5.UnFollow,actionUid:a}=e,d=null===(t=x.Le.getConfig(x.gI.FollowStatusCache))||void 0===t?void 0:t[a],u=null!==(i=null==d?void 0:d.followStatus)&&void 0!==i?i:n,s=null!==(l=null==d?void 0:d.followerStatus)&&void 0!==l?l:r,[c,f]=(0,v.useState)(e6({followStatus:u,followerStatus:s}).text),[m,p]=(0,v.useState)(e6({followStatus:u,followerStatus:s}).buttonType);return(0,v.useEffect)(()=>{let{text:e,buttonType:t}=e6({followStatus:u,followerStatus:s});f(e),p(t)},[n,r]),(0,v.useEffect)(()=>{let e=e3.addCb(e=>{let{selfUid:t,actionUid:i,action:l}=e,n=t===o,r=void 0===t||void 0===o;if((n||r)&&i===a&&("follow"===l||"unFollow"===l)){var d,u;let{text:e,buttonType:t}=e6({followStatus:null===(u=x.Le.getConfig(x.gI.FollowStatusCache))||void 0===u?void 0:null===(d=u[a])||void 0===d?void 0:d.followStatus,followerStatus:s});f(e),p(t)}});return()=>{null==e||e()}},[o,a,s]),{text:c,buttonType:m,followStatus:u}};var e4=i("832602"),e8={container:"uVnXaLq2",loading:"MdpzGOQW",text:"VKJXPY1j"};function e7(e){let{className:t,text:i,textClassName:l,style:o}=e;return(0,c.jsxs)("div",{className:m()(e8.container,t,"HideInLynxClassName"),style:o,children:[(0,c.jsx)("div",{className:e8.loading}),i&&(0,c.jsx)("div",{className:m()(e8.text,l),children:i})]})}var e9=i("537158");let te=e=>{let t=(0,e9.n)(),{onPlayer:i}=e;return(0,v.useEffect)(()=>{t&&(null==i||i(t))},[t]),null};var tt=i("350856"),ti=i.n(tt),tl=i("5784"),to=i.n(tl),tn=i("311507");i("414931"),i("112459");var tr=i("528937"),ta=i("66948");let td=function(){let e={};return{setPreloadCache:(t,i)=>{e[t]=i},getPreloadCache:t=>{if(t in e)return e[t]}}}(),tu=new Map;var ts={COMMENT_BTN_CLICKED:"commentBtnClicked"},tc={COMMENT_PRELOAD:"commentPreload"};let tv=async e=>{try{return await tr.get({key:e,defaultValue:ta.TCC_DEFAULT_VALUE_MAP.get(e)})}catch(e){return null}};async function tf(e){let t=tu.get(e);if(t)return t;let i=await tv(e);return tu.set(e,i),i}let tm=function(e,t,i,l,o){let n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],r=arguments.length>6?arguments[6]:void 0,a=arguments.length>7?arguments[7]:void 0,d="commentPreload"===i,u=d?"commentInferenceResult":"profileInferenceResult",s=td.getPreloadCache(u)||{};s={scene:d?"comment_preload_ml":"profile_preload_ml",model_name:l,s_result:String(t),f_result:e,threshold:o,with_feature:n.toString(),is_ad:r,vid:a},td.setPreloadCache(u,s)},tp=()=>{let e=td.getPreloadCache("commentInferenceResult")||{};if(e&&Object.keys(e).length>0){let t=td.getPreloadCache("commentBtnClicked"),i=(0,G._)((0,b._)({},e),{s_real:String(t),f_real:t?1:0});ed.logInstance.sendLog("aiPreloadResult",i)}t_()},t_=()=>{td.setPreloadCache("commentInferenceResult",{}),td.setPreloadCache("profileInferenceResult",{}),td.setPreloadCache("commentBtnClicked",!1),td.setPreloadCache("profileBtnClicked",!1)},tg=e=>{td.setPreloadCache(e,!0)},th=(e,t)=>{let i=e.indexOf(t);return i>-1&&e.splice(i,1),i};class ty{getValue(e){return void 0!==e?this.storage[e]:this.storage}anyValue(e,t){return new Promise(i=>{if(e in this.storage)t(this.storage[e]),i(this.storage[e]);else{let l=this.subscribe(e,e=>{l(),t(e),i(e)})}})}useValue(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=()=>"function"==typeof e?e(this.storage):t?t(this.storage[e]):this.storage[e],[o,n]=(0,v.useState)(l);return(0,v.useLayoutEffect)(()=>(n(l()),"function"==typeof e)?this.subscribe(()=>n(e(this.storage))):t?this.subscribe(e,e=>n(t(e))):this.subscribe(e,n),i),o}subscribe(e,t){switch(typeof e){case"string":case"number":case"symbol":return!(e in this.subscribers)&&(this.subscribers[e]=[]),this.subscribers[e].push(t),()=>{th(this.subscribers[e],t)};default:return this.subscriberList.push(e),()=>{th(this.subscriberList,e)}}}bootstrap(e,t){return e in this.storage&&t(this.storage[e]),this.subscribe(e,t)}dispatch(e,t){if("object"==typeof e)return Object.entries(e).forEach(e=>{let[t,i]=e;return this.dispatch(t,i)});if(this.storage[e]!==(this.storage[e]="function"==typeof t?t(this.storage[e]):t)){for(let t of this.subscriberList.slice())try{t(e,this.storage[e])}catch(e){}if(this.subscribers[e])for(let t of this.subscribers[e].slice())try{t(this.storage[e])}catch(e){}}}constructor(e={}){(0,e2._)(this,"subscribers",{}),(0,e2._)(this,"subscriberList",[]),(0,e2._)(this,"storage",void 0),this.storage=e}}let tw=(0,v.createContext)({awemeFeed:new ty({modalAwemeInfo:null,nextAwemeInfo:null,prevAwemeInfo:null,activeIndex:0}),metaCtxId:""}),tx=()=>(0,v.useContext)(tw),tI=e=>{var t;let{originAwemeInfo:i,player:l,toast:o,isActive:n,isLast:r,modalEnterFrom:a,handleNextOnLast:d,handleOuterPlayNext:u,handleOuterPlayPrev:s,handlePrev:c,handleNext:f,isInnerFeedCondition:m,scene:p}=e,[_,g]=(0,v.useState)(i),{awemeFeed:h}=tx(),y=h.useValue("prevAwemeInfo"),w=h.useValue("nextAwemeInfo"),[I,C]=(0,v.useState)((null==i?void 0:null===(t=i.logParams)||void 0===t?void 0:t.enter_from)||""),b=(0,v.useRef)({});(0,v.useEffect)(()=>{g(i)},[i,m]);let E=null!=m?m:i.awemeId!==_.awemeId,S=(0,v.useCallback)(e=>{var t,l,o,r;let{inComingAwemeInfo:d,card:u}=e;if(u){let e=x.Le.getConfig(x.gI.PlayerCardInfo);x.Le.setConfig(x.gI.PlayerCardInfo,{isActive:(null==d?void 0:d.awemeId)===(null==i?void 0:i.awemeId)||n,videoCardType:u!==eu.L.Comment?u:null==e?void 0:e.videoCardType,expandCardType:"chat"===u?null==e?void 0:e.expandCardType:u})}if((null==d?void 0:d.awemeId)!==(null==_?void 0:_.awemeId)||(null==d?void 0:null===(t=d.seriesInfo)||void 0===t?void 0:t.seriesId)!==(null==_?void 0:null===(l=_.seriesInfo)||void 0===l?void 0:l.seriesId)||(null==d?void 0:null===(o=d.authorInfo)||void 0===o?void 0:o.uid)!==(null==_?void 0:null===(r=_.authorInfo)||void 0===r?void 0:r.uid)||"im"===a)to()(d,"logPb",(null==d?void 0:d.scrollLogPb)||(null==d?void 0:d.logPb)),g(e=>(C(t=>{var i,l,o,n,r;return(null===(i=d.logParams)||void 0===i?void 0:i.enter_from)?d.logParams.enter_from:"author_compilation_card"===t&&(null===(l=e.mixInfo)||void 0===l?void 0:l.mixId)!==(null===(o=d.mixInfo)||void 0===o?void 0:o.mixId)||"author_playlet_card"===t&&(null===(n=e.seriesInfo)||void 0===n?void 0:n.seriesId)!==(null===(r=d.seriesInfo)||void 0===r?void 0:r.seriesId)?"":t}),d)),setTimeout(()=>{eg.emit(eg.EVENT.feedVideoCardLocateCurrentVideo)})},[_,null==i?void 0:i.awemeId,l]);(0,ei.Z)(()=>{n&&eg.emit(eg.EVENT.videoChange)},[_,n]),(0,ei.Z)(()=>{n&&l&&(l.replayed=!1,p===ea.lT.Recommend&&!m&&tp())},[_,n,l]);let k=(0,v.useCallback)(ti()(e=>{if(!n||el.ZP.instManager.getActiveId()!==(null==l?void 0:l.playerId))return;let t=null==e?void 0:e.from;(0,tn.Y3)(t);if(E||p===ea.lT.Search){var i;let e=null===(i=x.Le.getConfig(x.gI.PlayerCardInfo))||void 0===i?void 0:i.videoCardType,n=new Map([[eu.L.Related,"该视频暂无更多相关作品"],[eu.L.Music,"该音乐暂无更多相关作品"],[eu.L.Topic,"该话题暂无更多相关作品"],[eu.L.Mix,"暂无更多作品"],[eu.L.Author,"该作者已无更多作品"],[eu.L.Comment,"暂无更多作品"],[eu.L.CollectFolder,"暂无更多作品"],[eu.L.Search,"暂无更多搜索结果"],[eu.L.Like,"暂无更多作品"],[eu.L.Collection,"暂无更多作品"],[eu.L.Record,"暂无更多作品"]]),r=new Map([[eu.L.Related,"暂时无法切换,可查看其他相关视频"],[eu.L.Music,"暂时无法切换,可查看其他音乐视频"],[eu.L.Topic,"暂时无法切换,可查看其他话题视频"],[eu.L.Mix,"暂无无法切换"],[eu.L.Author,"暂时无法切换,可查看作者的其他视频"],[eu.L.Comment,"暂无无法切换"],[eu.L.CollectFolder,"暂无无法切换"],[eu.L.Search,"暂无无法切换,请在「搜索结果」中选择"],[eu.L.Like,"暂无无法切换"],[eu.L.Collection,"暂无无法切换"],[eu.L.Record,"暂无无法切换"]]);if(w)S({inComingAwemeInfo:w,card:e}),("scroll"===t||"keyboard"===t||"auto"===t)&&eg.emit(eg.EVENT.reportPlayNext,{clickFrom:t});else if("auto"===t)l&&(l.isReplay=!0,l.replay(),l.replayed=!0);else if(null===w){let t=r.get(e);t&&o(t)}else{let t=n.get(e);t&&o(t)}}else r&&(null==d||d()),u(e),r&&(null==e?void 0:e.from)==="auto"&&l&&(l.isReplay=!0,l.replay(),l.replayed=!0);null==f||f()},400,{leading:!0,trailing:!1}),[w,l,n,d,E,r,u]),T=(0,v.useCallback)(ti()(e=>{if(!n)return;let t=null==e?void 0:e.from;if((0,tn.Y3)(t),E){var i;let e=null===(i=x.Le.getConfig(x.gI.PlayerCardInfo))||void 0===i?void 0:i.videoCardType,l=new Map([[eu.L.Related,"暂时无法切换,可查看其他相关视频"],[eu.L.Music,"暂时无法切换,可查看其他音乐视频"],[eu.L.Topic,"暂时无法切换,可查看其他话题视频"],[eu.L.Mix,"暂无无法切换"],[eu.L.Author,"暂时无法切换,可查看作者的其他视频"],[eu.L.Search,"暂无无法切换"]]);if(y)S({inComingAwemeInfo:y,card:e}),("scroll"===t||"keyboard"===t||"auto"===t)&&eg.emit(eg.EVENT.reportPlayPrev,{clickFrom:t});else if(null===y){let t=l.get(e);t&&o(t)}}else setTimeout(()=>null==s?void 0:s(e),0);null==c||c()},400,{leading:!0,trailing:!1}),[y,n,E,s]);return{awemeInfo:_,enterFrom:I,updateAwemeInfo:S,changePrevVideo:T,changeNextVideo:k,nextAwemeInfo:w,prevAwemeInfo:y,isInnerFeed:E,updateLogParams:(0,v.useCallback)(e=>{let{logParams:t}=e;b.current=t},[])}};i("559352");var tC=i("263832"),tb=i("202613"),tE=i("488721"),tS=i("728810"),tk=i("56554"),tT=i("816565");let tL=e=>{var t,i;let{showRelateVideo:l=tC.TP.ShowSideCarOnly}=(null==e?void 0:null===(i=e.webRawData)||void 0===i?void 0:null===(t=i.CTR)||void 0===t?void 0:t.recommendScore)||{};return l===tC.TP.ShowSideCarOnly},tA=e=>{let{awemeInfo:t,scene:i,modalEnterFrom:l,filterData:o,currentVideoFeedRef:n,lastVideoFeedAwemeRef:r,outFeedItem:a,isInnerFeed:d,abtestData:u}=e,s=[],{normalList:c,relatedBlockedByRecommendScore:f}=(0,v.useMemo)(()=>{var e,o,u,s,c,v,f,m;let p=[eu.L.Comment],h=!1;if((null==t?void 0:t.awemeType)!==(null==tb?void 0:_.e.XgVideo)&&!(0,g.Jt)(t)&&!(0,g.gc)(t)&&p.unshift(eu.L.Author),"collection_folder"===l)p.unshift(eu.L.CollectFolder);let y=[ea.lT.Recommend,ea.lT.Follow,ea.lT.Topic].includes(i),w=i===ea.lT.Modal&&![ec.a.Im,ec.a.Search,ec.a.GeneralSearch].includes(l),x=[g.Jt,g.gc,g.Kf,tE.L,tS.A,tk.u,Z.p,tT.hj,ev.o4];return(y||w)&&x.every(e=>!e(t))&&(!d||(null==a?void 0:a.awemeId)===t.awemeId&&x.every(e=>!e(a))||(null===(o=r.current)||void 0===o?void 0:null===(e=o[eu.t.Related])||void 0===e?void 0:e.awemeId)===t.awemeId||n.current===eu.t.Related)&&(tL(d?a:t)?p.push(eu.L.Related):h=!0),(null==t?void 0:null===(u=t.mixInfo)||void 0===u?void 0:u.mixId)&&!(null==t?void 0:null===(s=t.seriesInfo)||void 0===s?void 0:s.seriesId)&&p.push(eu.L.Mix),(null==t?void 0:null===(c=t.seriesInfo)||void 0===c?void 0:c.seriesId)&&p.push(eu.L.Series),(null==t?void 0:t.hotList)&&(null==t?void 0:null===(v=t.hotList)||void 0===v?void 0:v.rank)!==51&&(null==t?void 0:null===(f=t.hotList)||void 0===f?void 0:f.type)!==2&&p.push(eu.L.Hot),(null==t?void 0:t.videoAbstract)&&[2,3].includes(null==t?void 0:null===(m=t.videoAbstract)||void 0===m?void 0:m.displayType)&&(i===ea.lT.Search||ea.lT.Modal===i&&[ec.a.GeneralSearch,ec.a.Search].includes(l)&&!d)&&p.push(eu.L.AbstractList),{normalList:p,relatedBlockedByRecommendScore:h}},[t,l,i,n.current,a,d,r.current]);return[ea.lT.Recommend,ea.lT.Follow,ea.lT.Friend,ea.lT.Modal,ea.lT.Topic,ea.lT.Search].includes(i)&&(s=c),{showRelatedTabList:(0,v.useMemo)(()=>o?o(s):s,[s.join(","),o]),relatedBlockedByRecommendScore:f}};var tR={relatedSearch:"mYr8kZQx",rankHot:"c8f5GTSs",mix:"HKKuChFt",hot:"lNItPzYl",rankHotText:"nBKJSY4v",hotText:"nhN6hPzB",relatedSearchText:"IwkaQw_2",mixText:"VfjEwitb"};let tN=(e,t)=>{var i;let{needFoldText:l=!1}=t||{},o=null==e?void 0:null===(i=e.suggestWords)||void 0===i?void 0:i.find(e=>e.scene===tC.gQ.FeedBottomRec);if(o){let{words:e=[],hintText:t}=o,i=(null==e?void 0:e.length)||0;return e.map((e,o)=>{let{word:n}=e;return n?{index:o,type:ea.WZ.RelatedSearch,title:l?`${t}`:`${t}${n}`,word:n,hintText:t,searchWord:e,wordsNum:i,itemClassName:m()(tR.relatedSearch),textClassName:m()(tR.relatedSearchText)}:null})}return[]},tP=e=>{var t,i;let{useCTR:l,awemeInfo:o,scene:n,showRelatedTabList:r,isActive:a,abtestData:d,recommendScore:u={}}=e,{showHot:s,showMix:c,showRelateSearch:v}=u||{};return[{isShow:(!l||(null==d?void 0:d.searchUseCtr)!==1||c)&&(null==o?void 0:null===(t=o.seriesInfo)||void 0===t?void 0:t.seriesId),cardTab:eu.L.Series,feedBarTag:ea.WZ.Series},{isShow:!l||c,cardTab:eu.L.Mix,feedBarTag:ea.WZ.Mix},{isShow:!l||s,cardTab:eu.L.Hot,feedBarTag:ea.WZ.Hot},{isShow:(!l||(null==d?void 0:d.searchUseCtr)!==1||v)&&(null===(i=tN(o))||void 0===i?void 0:i.length),feedBarTag:ea.WZ.RelatedSearch}].filter(e=>{let{cardTab:t,feedBarTag:i,isShow:l}=e;return l&&(r.includes(t)||i===ea.WZ.RelatedSearch)}).map(e=>{let{feedBarTag:t}=e;return t})},tM=e=>{var t,i,l;let{clickedCard:o,showRelatedTabList:n,awemeInfo:r,scene:a,isActive:d,abtestData:u}=e||{},s=(null==r?void 0:null===(i=r.webRawData)||void 0===i?void 0:null===(t=i.CTR)||void 0===t?void 0:t.recommendScore)||{},{showRelateSearch:c}=a===ea.lT.Friend?{showRelateSearch:!0}:s,v={defaultCard:o||eu.L.Author,videoTag:[]};return a===ea.lT.Recommend?r.awemeType===_.e.XgVideo?v.defaultCard=eu.L.Related:v.videoTag=tP({useCTR:!0,awemeInfo:r,scene:a,showRelatedTabList:n,isActive:d,abtestData:u,recommendScore:s}):r.awemeType===_.e.XgVideo?v.defaultCard=eu.L.Related:r.awemeType===_.e.Normal?v.videoTag=tP({useCTR:!0,awemeInfo:r,scene:a,showRelatedTabList:n,isActive:d,abtestData:u,recommendScore:s}):r.awemeType===_.e.Note&&!((null==u?void 0:u.searchUseCtr)===1&&!c)&&(null===(l=tN(r))||void 0===l?void 0:l.length)&&(v.videoTag=[ea.WZ.RelatedSearch]),v},tj=e=>{let{clickedCard:t,showRelatedTabList:i,awemeInfo:l,scene:o,isActive:n,abtestData:r}=e||{},a={defaultCard:t||eu.L.Author,videoTag:[]};if(o===ea.lT.Recommend)![_.e.XgVideo].includes(l.awemeType)&&(a.videoTag=tP({useCTR:!1,awemeInfo:l,scene:o,showRelatedTabList:i,isActive:n,abtestData:r}));else if(l.awemeType===_.e.Normal)a.videoTag=tP({useCTR:!1,awemeInfo:l,scene:o,showRelatedTabList:i,isActive:n,abtestData:r});else if(l.awemeType===_.e.Note){var d;(null===(d=tN(l))||void 0===d?void 0:d.length)&&(a.videoTag=[ea.WZ.RelatedSearch])}return a},tD=e=>{let{awemeInfo:t,showRelatedTabList:i=[],clickedCard:l,isActive:o,useCTR:n=!0,scene:r,abtestData:a}=e;(0,v.useEffect)(()=>{let e=x.Le.getConfig(x.gI.PlayerCardInfo);return l&&x.Le.setConfig(x.gI.PlayerCardInfo,{isActive:o,videoCardType:l!==eu.L.Comment?l:null==e?void 0:e.videoCardType,expandCardType:l}),()=>{x.Le.setConfig(x.gI.PlayerCardInfo,null)}},[]);let d={defaultCard:l||eu.L.Author,videoTag:[]},u=(0,v.useMemo)(()=>n?tM({showRelatedTabList:i,awemeInfo:t,clickedCard:l,scene:r,isActive:o,abtestData:a}):tj({showRelatedTabList:i,awemeInfo:t,clickedCard:l,scene:r,isActive:o,abtestData:a}),[t,i,n,l,r,o,a]);return t?l?{defaultCard:l,videoTag:u.videoTag}:u:d},tF=e=>{let{isShow:t,player:i,isActive:l,awemeInfo:o,abtestData:n}=e,r=(0,v.useRef)(!1),a=(0,v.useRef)(()=>{});a.current=(0,v.useCallback)(()=>{r.current&&(setTimeout(()=>{eg.emit(eg.EVENT.videoRemoveStopPlayNext)}),r.current=!1)},[i]);let d=(0,eZ.Z)(()=>{i&&l&&i.duration-i.currentTime>0&&i.duration-i.currentTime<=5&&!r.current&&t&&(null==o?void 0:o.awemeType)!==_.e.Note&&(eg.emit(eg.EVENT.videoStopPlayNext),r.current=!0,i.once(en.Events.ENDED,a.current))});return(0,v.useEffect)(()=>{if(t)return()=>{a.current()}},[t]),(0,v.useEffect)(()=>{if(o)return()=>{a.current()}},[o]),{stopAutoPlay:d}};var tV=i("448214"),tB=i("332009");let tO=e=>({[eu.L.Author]:eu.t.Author,[eu.L.Mix]:eu.t.Mix,[eu.L.Series]:eu.t.Series,[eu.L.Search]:eu.t.Search,[eu.L.CollectFolder]:eu.t.CollectFolder,[eu.L.Collection]:eu.t.Collection,[eu.L.Hot]:eu.t.Hot,[eu.L.Related]:eu.t.Related,[eu.L.Search]:eu.t.Search,[eu.L.Record]:eu.t.Record,[eu.L.Like]:eu.t.Like})[e],tU=e=>({[eu.t.Author]:eu.L.Author,[eu.t.Mix]:eu.L.Mix,[eu.t.Series]:eu.L.Series,[eu.t.Search]:eu.L.Search,[eu.t.CollectFolder]:eu.L.CollectFolder,[eu.t.Collection]:eu.L.Collection,[eu.t.Hot]:eu.L.Hot,[eu.t.Related]:eu.L.Related,[eu.t.Like]:eu.L.Like,[eu.t.Record]:eu.L.Record})[e],tH=e=>{let{defaultTab:t,isActive:i,stopAutoPlay:l,awemeInfo:o}=e,{awemeFeed:n}=tx(),[r,a]=(0,v.useState)(t),[d,u]=(0,v.useState)(tO(r)),[s,c]=(0,v.useState)(()=>{if(tO(r))return{[tO(r)]:o}}),f=(0,v.useRef)(t),m=(0,v.useRef)(!1);f.current=r;let p=(0,v.useCallback)(e=>{let{tab:t,from:i}=e;if(n.dispatch("cardType",t),void 0!==tO(t)&&n.dispatch("feedType",t),a(e=>{var o;return null===(o=x.Le.getConfig(x.gI.IsInLookMiniModal))||void 0===o||o.isInMiniModal,e!==t&&"auto"!==i&&(null==l||l()),t}),t!==eu.L.Comment&&eg.emit(eg.EVENT.changeTab,t),t){let e=x.Le.getConfig(x.gI.PlayerCardInfo);x.Le.setConfig(x.gI.PlayerCardInfo,{isActive:!0,videoCardType:t!==eu.L.Comment?t:null==e?void 0:e.videoCardType,expandCardType:t})}},[l]);return(0,v.useEffect)(()=>{i&&t&&a(t)},[i]),(0,v.useEffect)(()=>{r&&u(e=>{if(r===eu.L.Comment)return c(t=>(0,G._)((0,b._)({},t),{[e]:o})),e;let t=tO(r);return t!==e?t:(c(t=>(0,G._)((0,b._)({},t),{[e]:o})),e)})},[r,o]),(0,v.useEffect)(()=>{var e;let t=null===(e=x.Le.getConfig(x.gI.IsInLookMiniModal))||void 0===e?void 0:e.isInMiniModal;t&&(m.current=t),i&&x.Le.setConfig(x.gI.IsInMixCard,!1)},[r,i]),{curTab:r,changeTab:p,curVideoFeed:tO(r)||d,lastVideoFeedAweme:s}},tW=e=>{let{awemeInfo:t,onAwemeInfoChange:i}=e;(0,v.useEffect)(()=>{var e;(null===(e=x.Le.getConfig(x.gI.IsInModalVideo))||void 0===e?void 0:e.isInModal)&&eg.emit(eg.EVENT.livePause)},[]),(0,v.useEffect)(()=>{null==i||i({awemeInfo:t})},[t])},tG=e=>{let{curTab:t,awemeInfo:i,isActive:l,abtestData:o,modalAwemeInfo:n}=e,{setSlideVideoTab:r}=(0,v.useContext)(q.C);(0,v.useEffect)(()=>{l&&(null==r||r(t))},[t,l,null==n?void 0:n.awemeId])},tz=e=>{let{onChangeAwemeInfo:t}=e,i=(0,eZ.Z)(function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eu.L.Author;return t({inComingAwemeInfo:e,card:i})});return{handleAuthorVideoChange:i,handleOtherVideoChange:(0,v.useCallback)(function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eu.L.Related;t({inComingAwemeInfo:e,card:i})},[t])}};var tZ=i("811603"),tq=i("264104");let t$="",tK=null,tY=e=>{var t;let{awemeInfo:i,enablePreload:l,player:o}=e,[n,r]=(0,v.useState)((null==i?void 0:null===(t=i.stats)||void 0===t?void 0:t.commentCount)||0);(0,v.useEffect)(()=>{var e;r((null==i?void 0:null===(e=i.stats)||void 0===e?void 0:e.commentCount)||0)},[i]);let a=(0,v.useCallback)(async function(e,t,l,o,n,r){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],d=null==i?void 0:i.awemeId,u=`${d}-0-${t}-${e}-${n}-${l}`;if(t$===u&&tK)return tK;let s=await (0,tq.iq)({awemeId:null==i?void 0:i.awemeId,cursor:e,count:t,itemType:(null==i?void 0:i.awemeType)===_.e.XgVideo?1:0,fetchType:l,cancleFunc:o,cid:n,whaleCutToken:r});return a&&s&&(t$=u,tK=s),s},[null==i?void 0:i.awemeId]),d=(0,v.useCallback)((e,t,l,o)=>(0,tq.rs)({awemeId:null==i?void 0:i.awemeId,commentId:e,cursor:t,count:l,itemType:(null==i?void 0:i.awemeType)===_.e.XgVideo?1:0,whaleCutToken:o}),[null==i?void 0:i.awemeId]),u=(0,v.useCallback)(function(){let{cursor:e=0,count:t,needPage:l=!0,ctx:o=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,tq.Yp)({cursor:e,count:t,needPage:l,ctx:o,groupId:null==i?void 0:i.awemeId})},[null==i?void 0:i.awemeId]),s=(0,v.useCallback)(function(){let{cid:e,diggType:t,level:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,tq.y6)({awemeId:null==i?void 0:i.awemeId,cid:e,diggType:t,itemType:(null==i?void 0:i.awemeType)===_.e.XgVideo?1:0,level:l})},[null==i?void 0:i.awemeId]),c=(0,v.useCallback)(function(){let{cid:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,tq.YF)({cid:e})},[]);return{globalCommentCount:n,updateGlobalCommentCount:r,fetchComment:a,fetchReply:d,fetchCommentMention:u,publishCommentItem:(0,v.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var{text:t,textExtra:l,replyId:n,replyToReplyId:r,commentSendCelltime:a,commentVideoCelltime:d}=e,u=(0,tZ._)(e,["text","textExtra","replyId","replyToReplyId","commentSendCelltime","commentVideoCelltime"]);let s=await (0,tq.uo)((0,b._)({awemeId:null==i?void 0:i.awemeId,text:t,textExtra:l,replyId:n,replyToReplyId:r,commentVideoCelltime:d,commentSendCelltime:a},u));return!s.statusCode&&(eg.emit(eg.EVENT.showClientDownloadGuide,{isShow:!0,type:"comment",text:"及时接收互动消息通知"}),null==o||o.emit(en.Events.USER_ACTION,{action:"comment"})),s},[null==i?void 0:i.awemeId,o]),deleteCommentItem:c,diggCommentItem:s}};var tQ=i("476595"),tJ=i("356336");let tX=(a=0,function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];try{window.location.search.indexOf("pylon-debug")}catch(e){}}),t0=[tJ.CommentAIPreloadStatus.CommentPreloadHighThreshold,tJ.CommentAIPreloadStatus.CommentPreloadLowThreshold,tJ.CommentAIPreloadStatus.CommentPreloadAll],t1=e=>{let{isModal:t,awemeInfo:l,isActive:o,fetchComment:n,player:r,commentpreloadAbStatus:a,adCommentpreloadAbStatus:d,scene:u,showSideCard:s,abtestData:c,abUseSimpleNN:v,abVid:f}=e;(0,tQ.b)(async()=>{if(!!(t0.includes(a)&&u===ea.lT.Recommend&&!1===t&&!0===o&&(null==r?void 0:r.currentTime)>=0&&!1===s)&&((null==l?void 0:l.isAds)!==!0||!![tJ.AdCommentAIPreloadStatus.AdCommentPreloadHighThreshold,tJ.AdCommentAIPreloadStatus.AdCommentPreloadLowThreshold].includes(d))&&"undefined"!=typeof WebAssembly)try{let e=()=>{let e=(null==c?void 0:c.commentRenderOptimize)===2?10:20;n(0,e,"user",{current:null},"",void 0,!0)},t=!(null==l?void 0:l.isAds)&&v,{Pylon:o,EScene:u,EBiz:s}=await i.e("52543").then(i.bind(i,831626)),m=new o({biz:s.DOUYIN_WEB_RECOMMEND}),p=a===tJ.CommentAIPreloadStatus.CommentPreloadHighThreshold?ta.TccKey.CommentPreloadHighThreshold:ta.TccKey.CommentPreloadLowThreshold;d===tJ.AdCommentAIPreloadStatus.AdCommentPreloadHighThreshold?p=ta.TccKey.AdCommentPreloadHighThreshold:d===tJ.AdCommentAIPreloadStatus.AdCommentPreloadLowThreshold&&(p=ta.TccKey.AdCommentPreloadLowThreshold),t&&(p=ta.TccKey.clientAIOptimizeConfig);let _=await tf(p),g=m.createStrategyEngine({abConfig:_,scene:u.COMMENT});g.setThresholdCallback(async()=>{var i,o,n,a,d,s,c,v;if(td.getPreloadCache(ts.COMMENT_BTN_CLICKED))return;let{package:p="",engine_config:h={}}=null!==(c=_.preload_ml)&&void 0!==c?c:{},y=await m.createEngine({scene:u.COMMENT,modelUrl:p,inputs:null==h?void 0:h.inputs,outputs:null==h?void 0:h.outputs,runTime:t?"simplenn":"bytenn"}),w=1e3*((null==r?void 0:r.currentTime)||0),x=y.inference({features:{videoPlayTime:w}}),I=g.hitThresholdValue(x),C=null==_?void 0:null===(i=_.preload_ml)||void 0===i?void 0:i.package,b=null==_?void 0:null===(d=_.preload_ml)||void 0===d?void 0:null===(a=d.output)||void 0===a?void 0:null===(n=a[0])||void 0===n?void 0:null===(o=n.args)||void 0===o?void 0:o[0],E=null!==(v=y.getFeatureVector({features:{scene:u.COMMENT,videoPlayTime:w}}))&&void 0!==v?v:[];if(tm(x,I,tc.COMMENT_PRELOAD,C,b,E,0,f),tX("comment-ret:",x,",hit:",I,", nickname:",null==l?void 0:null===(s=l.authorInfo)||void 0===s?void 0:s.nickname,", playTime: ",w),I){e();return}})}catch(e){tX("comment inference error: ",e)}},[o,r])};var t2=i("375209"),t3=i("72878"),t6=i("601034"),t5=i("386206");let t4=(e,t,i)=>{if(["douyin_dcd_model","douyin_disease","xiaohe_disease","baikemy_disease","medicines_baikemy"].includes(i)||!e)return"search_related_card";switch(e){case"user":return"author_card";case"mix":var l;return(null==t?void 0:null===(l=t.seriesInfo)||void 0===l?void 0:l.seriesId)?"playlet_card":"compilation_card";case"hot":return"hot_card";default:return"general_search"}};var t8=i("32359");let t7=e=>{let{awemeInfo:t,logParams:i={},originAwemeInfo:l,tagId:o,expandCard:n,curCard:r="",isInnerFeedCondition:a=!1,searchSideCardProps:d,modalEnterFrom:u}=e,s=(0,v.useRef)(i),c=(0,v.useMemo)(()=>{var e,i,l;return null!==(l=null===(i=x.Le.getConfig(x.gI.UnLookVideos))||void 0===i?void 0:null===(e=i[null==t?void 0:t.awemeId])||void 0===e?void 0:e.status)&&void 0!==l?l:""},[t]);return(0,v.useEffect)(()=>{var e,v,f,m,p,h,w,I,C,E,S,k,T,L,R,N,P,M,j,D,F,V,B,O,U,H,W,z,Z,q;let $=null==i?void 0:i.enter_from,K="";""!==r&&(K=r===n&&"comment"!==r?"1":"0");let Y={};if((0,t2.n)(t)){let e=(null==t?void 0:null===(U=t.anchorInfo)||void 0===U?void 0:null===(O=U.extra)||void 0===O?void 0:O[0])||{};Y={anchor_product_comment_cnt:e.comment_count,anchor_product_category_id:e.front_category_id,anchor_product_price:e.price,anchor_product_sales:e.sales}}let Q=(0,G._)((0,b._)((0,G._)((0,b._)((0,G._)((0,b._)({enter_from:null!==(H=i.enter_from)&&void 0!==H?H:(0,t6.yW)(),web_rid:null==t?void 0:null===(f=t.authorInfo)||void 0===f?void 0:null===(v=f.roomData)||void 0===v?void 0:null===(e=v.owner)||void 0===e?void 0:e.web_rid},i),{is_card_expand:K,from_group_id:null!==(W=i.from_group_id)&&void 0!==W?W:null==l?void 0:l.awemeId,music_id:null==t?void 0:null===(m=t.music)||void 0===m?void 0:m.mid,compilation_id:null==t?void 0:null===(p=t.mixInfo)||void 0===p?void 0:p.mixId,tag_id:o,from_xigua:(null==t?void 0:t.awemeType)===_.e.XgVideo?1:0,insert_task_id:(null==t?void 0:t.libfinsertTaskId)||"0",enter_from_merge:null!==(z=i.enter_from_merge)&&void 0!==z?z:(0,t6.yW)(),search_params:null==t?void 0:t.searchLogParams,from_video_id:x.Le.getConfig(x.gI.PageEnterFromVideoID),is_seen:u===ec.a.FollowAuthorModal&&""===c?1:c,is_update:(null===(h=x.Le.getConfig(x.gI.UnLookVideos))||void 0===h?void 0:h[null==t?void 0:t.awemeId])?1:0,post_time:(0,t5.MH)(1e3*t.createTime),is_from_skylight:null!==(Z=null==i?void 0:i.is_from_skylight)&&void 0!==Z?Z:0}),(0,ew.t)()),{is_co_publish:(null==t?void 0:null===(I=t.cooperationInfo)||void 0===I?void 0:null===(w=I.cooperationCreators)||void 0===w?void 0:w.length)>1?1:0,co_publish_author_list:null==t?void 0:null===(S=t.cooperationInfo)||void 0===S?void 0:null===(E=S.cooperationCreators)||void 0===E?void 0:null===(C=E.filter(e=>e.roleId!==eV.iG.Author))||void 0===C?void 0:C.map(e=>`${e.uid}_${null==e?void 0:e.roleId}`),cid:null===(k=(0,g.Rx)(t))||void 0===k?void 0:k.creative_id,if_qianchuan_ad:(0,g.nT)(t)===y.Z9.Live||(0,g.nT)(t)===y.Z9.ShopVideo?1:0,ad_type:(0,g.nT)(t),brand_ad_type:t3.AD_LOG_MAP[null==t?void 0:null===(L=t.webRawData)||void 0===L?void 0:null===(T=L.brandAd)||void 0===T?void 0:T.brand_type]}),(null==t?void 0:t.logParams)||{},Y),{playlet_id:null==t?void 0:null===(R=t.seriesInfo)||void 0===R?void 0:R.seriesId,is_trailer:(null==t?void 0:null===(P=t.chargeInfo)||void 0===P?void 0:null===(N=P.preview_config)||void 0===N?void 0:N.is_preview)?1:0,module:decodeURIComponent((0,A.Rs)("module")||""),payment_status:(0,t8.wQ)(t),episode_rank:(null==t?void 0:null===(M=t.seriesInfo)||void 0===M?void 0:M.currentEpisode)||(null==t?void 0:null===(j=t.mixInfo)||void 0===j?void 0:j.currentEpisode)||0,episode_id:String((null==t?void 0:null===(D=t.seriesInfo)||void 0===D?void 0:D.currentEpisode)||(null==t?void 0:null===(F=t.mixInfo)||void 0===F?void 0:F.currentEpisode)||0),is_charge_content:(null==t?void 0:null===(V=t.chargeInfo)||void 0===V?void 0:V.is_charge_content)?1:0,is_hard_ad:(0,g.Jt)(t)?(0,g.Gu)(t)?1:0:void 0}),J=[eu.L.Author,eu.L.Hot,eu.L.Mix,eu.L.Music,eu.L.Related,eu.L.Topic,eu.L.AwemeRelated,eu.L.Search,eu.L.History,eu.L.Like,eu.L.CollectFolder,eu.L.Collection,eu.L.Handpick];if(null!=a?a:(null==l?void 0:l.awemeId)!==(null==t?void 0:t.awemeId)){if(J.includes(r))$=r;else{if(r===eu.L.Comment){let e=x.Le.getConfig(x.gI.PlayerCardInfo),t=x.Le.getConfig(x.gI.CurLookCard);$=(null==t?void 0:t.curCard)?null==t?void 0:t.curCard:(null==e?void 0:e.isActive)&&(null==e?void 0:e.videoCardType)?null==e?void 0:e.videoCardType:null==i?void 0:i.enter_from}s.current=(0,b._)({},Q)}}(null==d?void 0:d.scene)&&(null==l?void 0:l.awemeId)!==(null==t?void 0:t.awemeId)&&!a&&($=t4(null==d?void 0:d.scene,t,null==i?void 0:null===(q=i.search_params)||void 0===q?void 0:q.token_type),x.Le.setConfig(x.gI.PlayerCardInfo,{videoCardType:$,expandCardType:$,isActive:!0})),(null==t?void 0:null===(B=t.logParams)||void 0===B?void 0:B.enter_from)?s.current=(0,G._)((0,b._)({},Q),{enter_from:t.logParams.enter_from}):$?s.current=(0,G._)((0,b._)({},Q),{enter_from:$}):s.current=(0,b._)({},Q)},[i,r,n,t,l,o,c,a]),{reportParams:s.current}},t9=e=>{let{isActive:t,player:i,showSideCard:l}=e,[o,n]=(0,v.useState)(!1),r=(0,v.useRef)(!1);return(0,v.useEffect)(()=>{var e;let o;r.current?t&&l&&n(!0):o=setTimeout(()=>{t&&l&&n(!0)},3e3);let a=()=>{r.current=!0,clearTimeout(o),l&&n(!0)};return null==i||null===(e=i.on)||void 0===e||e.call(i,en.Events.CANPLAY,a),()=>{var e;null==i||null===(e=i.off)||void 0===e||e.call(i,en.Events.CANPLAY,a),clearTimeout(o)}},[i,t,l]),{hasRelatedCardShown:o}};var ie=i("762167"),it=i("683079"),ii=i("947383"),il=i("326367");let io=e=>{let{awemeInfo:t,userInfo:i,onOpenCard:l,isActive:o,onCloseAdCard:n,abtestData:r,toast:a,isFirst:d,isUpperFeed:u,changeSplashAdStatus:s}=e,c=(0,v.useRef)(ta.TCC_DEFAULT_VALUE_MAP.get(ta.TccKey.AdConfig)),[f,m]=(0,v.useState)(!1),p=(0,v.useRef)(!1),_=(0,v.useRef)(!1);(0,v.useEffect)(()=>{p.current=!1,_.current=!1,m(!1)},[t]),(0,v.useEffect)(()=>{let e=!1;return(async()=>{let t=await tr.get({key:ta.TccKey.AdConfig,defaultValue:ta.TCC_DEFAULT_VALUE_MAP.get(ta.TccKey.AdConfig)});!e&&(c.current=t)})(),()=>{e=!0}},[]);let h=(0,v.useCallback)(e=>{let{from:t}=e||{};"closeIcon"===t&&(p.current=!0),_.current&&(_.current=!1,eg.emit(eg.EVENT.videoRemoveStopPlayNext,{openSideCard:!0})),m(!1),null==n||n()},[n]),w=(0,v.useCallback)(e=>{var o,n,r,d;let{from:u}=e||{},s=(0,g.Rx)(t),v=(0,g.BD)(t);if("automatic"!==u&&!_.current&&(_.current=!0,eg.emit(eg.EVENT.videoStopPlayNext,{openSideCard:!0})),"keyboard"===u&&(0,ie.E)("realtime_click",{tag:(0,ii.f)(),value:null==s?void 0:s.creative_id,log_extra:null==s?void 0:s.log_extra,refer:"enter"}),(0,ev.o4)(t))return;if((0,tT.hj)(t)){if(eg.emit(eg.EVENT.videoPause),(null==v?void 0:null===(n=v.lynx_raw_data)||void 0===n?void 0:n.open_url)||(null==s?void 0:s.open_url)){let e=(0,tT.at)({rawAdData:s,extraParams:{enter_from_merge:"web_homepage_hot",enter_method:"web_video_commercialize",action_type:"click",group_id:t.awemeId,request_id:t.logPb}});window.open(e,(0,il.f)()?"_self":"_blank")}else a?a("广告链接获取失败,请跳过"):L.F.info("广告链接获取失败,请跳过"),(0,ie.E)("load_failed",{tag:(0,ii.f)(),value:s.creative_id,log_extra:s.log_extra});return}if((0,tE.L)(t)||(0,tk.u)(t)){(null==v?void 0:null===(r=v.lynx_raw_data)||void 0===r?void 0:r.web_url)?(m(!0),null==l||l({isAuto:"automatic"===u}),(0,ie.E)("detail_show",{tag:"landing_ad",value:s.creative_id,log_extra:s.log_extra})):(a?a("广告链接获取失败,请跳过"):L.F.info("广告链接获取失败,请跳过"),(0,ie.E)("load_failed",{tag:(0,ii.f)(),value:null==s?void 0:s.creative_id,log_extra:null==s?void 0:s.log_extra}));return}let f=!1;if(null==v?void 0:null===(o=v.lynx_raw_data)||void 0===o?void 0:o.web_url){if(!(null===(d=c.current)||void 0===d?void 0:d.openInSidebarCondition.siteTypes.includes(s.site_type))||(0,D.DT)()){if("automatic"!==u){let e=(0,it.J2)({awemeInfo:t,userInfo:i});f=!0,window.open(e,(0,il.f)()?"_self":"_blank")}}else m(!0),f=!0,null==l||l({isAuto:"automatic"===u})}else a?a("广告链接获取失败,请跳过"):L.F.info("广告链接获取失败,请跳过"),(0,ie.E)("load_failed",{tag:(0,ii.f)(),value:null==s?void 0:s.creative_id,log_extra:null==s?void 0:s.log_extra});f&&(0,ie.E)("detail_show",{tag:"landing_ad",value:s.creative_id,log_extra:s.log_extra})},[t,i,l,r]);return(0,es.o)(()=>eg.listen(eg.EVENT.openAdSideCard,e=>{if(o){(null==e?void 0:e.from)==="automatic"&&p.current||w({from:null==e?void 0:e.from});let i=(0,g.Rx)(t);(null==e?void 0:e.from)==="keyboard"&&(0,ie.E)("slide",{tag:(0,ii.f)(),value:i.creative_id,log_extra:i.log_extra})}}),[o,w,t]),(0,v.useEffect)(()=>{d&&!u&&o&&(null==s||s((0,Z.p)(t)?y.QB.Fullscreen:y.QB.Normal))},[]),(0,v.useEffect)(()=>{o?(!d&&(null==s||s(y.QB.Normal)),_.current=!1):m(!1)},[o]),{closeAdCard:h,openAdCard:w,isShowAdCard:f,isAdAweme:(0,g.Jt)(t)}},ir=e=>{let{awemeInfo:t,isActive:i,abtestData:l,toast:o,isLogin:n,onLoginSuccess:r,accountParentEl:a,onOpenCard:d}=e,[u,s]=(0,v.useState)(!1),[c,f]=(0,v.useState)(!1),[m,p]=(0,v.useState)(""),_=e=>{let{from:t}=e;s(!0)};return(0,es.o)(()=>{let e=eg.listen(eg.EVENT.openAiCard,e=>{if((null==e?void 0:e.awemeId)===(null==t?void 0:t.awemeId)&&!!i)if(n)u();else{var l,o;(0,eY.ZP)({success:async()=>{null==r||r(),u()},headerText:"登录后即可使用 AI 抖音",enterMethod:"ai_search_card_click",next:`https://${null===(o=window)||void 0===o?void 0:null===(l=o.location)||void 0===l?void 0:l.host}`},a)}function u(){p(null==e?void 0:e.word),d(),_({from:null==e?void 0:e.from})}}),l=eg.listen(eg.EVENT.renderAiCard,e=>{if((null==e?void 0:e.awemeId)===(null==t?void 0:t.awemeId)&&!!i)f(!0)});return()=>{e(),l()}},[i,_,t,n,r,a,d]),(0,v.useEffect)(()=>{!i&&s(!1)},[i]),{isShowAiSearchCard:u,closeAiSearchCard:()=>{s(!1)},word:m,renderAiSearchSideCard:c}};var ia=i("708003"),id=i("442022");let iu=e=>{let{isActive:t,onOpenCard:i,isLogin:l,accountParentEl:o,awemeInfo:n,onLoginSuccess:r,onCloseCard:a,abtestData:d,toast:u}=e,[s,c]=(0,v.useState)(!1),f=(0,v.useRef)(!1),m=(0,v.useMemo)(()=>(0,ev.o4)(n),[n]),p=(0,v.useMemo)(()=>(0,g.Rx)(n),[n]),[_,h]=(0,v.useState)(!1),y=(0,v.useRef)(!1),w=(0,v.useRef)(!0),x=(0,v.useCallback)(e=>{let{from:t}=e||{};h("automatic"===t),!y.current&&"automatic"!==t&&(y.current=!0,eg.emit(eg.EVENT.videoStopPlayNext,{openSideCard:!0}));let n=()=>{c(!0),(0,id.B1)({tag:"ecom_load_start"}),null==i||i(),m&&(0,ie.E)("detail_show",{tag:"landing_ad",value:p.creative_id,log_extra:p.log_extra})};if(l)n();else{var a,d;(0,eY.ZP)({success:async()=>{null==r||r(),n()},headerText:"登录后即可查看商品详情",enterMethod:"product_entrance_click",next:`https://${null===(d=window)||void 0===d?void 0:null===(a=d.location)||void 0===a?void 0:a.host}`},o)}},[c,l,o,i,p,m]);(0,es.o)(()=>{let e=eg.listen(eg.EVENT.openAdSideCard,e=>{let i=(null==e?void 0:e.from)!=="automatic"||!f.current;if(t&&m&&i){var l,o;let t=null==p?void 0:null===(l=p.lynx_components)||void 0===l?void 0:l.find(e=>(null==e?void 0:e.lynx_type)===t3.AD_FEED_TYPE);if(!(null==t?void 0:null===(o=t.lynx_raw_data)||void 0===o?void 0:o.open_url)&&!(null==p?void 0:p.open_url)&&(0,g.Gu)(n)){u?u("广告链接获取失败,请跳过"):ia.F.info("广告链接获取失败,请跳过"),(0,ie.E)("load_failed",{tag:(0,ii.f)(),value:p.creative_id,log_extra:p.log_extra});return}x({from:null==e?void 0:e.from}),(null==e?void 0:e.from)==="automatic"&&(0,ie.E)("realtime_click",{tag:(0,ii.f)(),value:null==p?void 0:p.creative_id,log_extra:null==p?void 0:p.log_extra,refer:"enter"})}});return()=>e()},[t,n,l,x,p,m]);let I=(0,v.useCallback)(e=>{let{action:t}=e||{};"manual"===t&&(f.current=!0),c(!1),w.current=!1,y.current&&(y.current=!1,eg.emit(eg.EVENT.videoRemoveStopPlayNext,{openSideCard:!0})),m&&(0,ie.E)("close",{tag:(0,ii.f)(),value:p.creative_id,log_extra:p.log_extra,content:"ad_detail"}),null==a||a()},[c,m,p,a]);return(0,v.useEffect)(()=>{!t&&s&&I()},[t]),(0,v.useEffect)(()=>{!(0,t2.n)(n)&&s&&I()},[n]),{isShowShopDetailSideCard:s,isAutoOpen:_,closeShopDetailCard:I,openShopDetailCard:x,isFirstLoad:w.current}},is=e=>{let{showSideCard:t,isActive:i,originAwemeInfo:l,showRelatedTabList:o,slideVideoTab:n,changeTab:r,isUpperFeed:a,defaultLandingTab:d,handleShowSidebar:u,logParams:s,searchFrom:c}=e,f=(0,v.useRef)(!d),m=(0,v.useRef)(!1),p=(0,v.useMemo)(()=>{if(i){if(t){var e;return(null==o?void 0:null===(e=o.includes)||void 0===e?void 0:e.call(o,n))?n:o[0]}if(d)return o[0]}},[i,t,d,o[0],o[1],o[2],o[3],o[4]]);return(0,es.o)(()=>{!m.current&&!(0,g.Jt)(l)&&i&&p&&!a&&!f.current&&d&&(setTimeout(()=>{if(u(!0,{from:"auto"}),r({tab:d,from:"auto"}),d===eu.L.AbstractList){var e;ed.logInstance.sendLog("enterVideoCardTab",{type:d,enter_method:"video_abstract_text"===c?"click_video_abstract":"click_card_entrance",enter_from_merge:(0,e_.vM)(),enter_from:null!==(e=null==s?void 0:s.enter_from)&&void 0!==e?e:(0,e_.mo)(),tab_name:(null==s?void 0:s.tab_name)||(0,eC.zD)(),module_name:null==s?void 0:s.module_name})}}),f.current=!0)},[p,l,i,s,c]),{openSpecificTab:(0,v.useCallback)(e=>{m.current=!0,u(!0),r({tab:e});let t=setTimeout(()=>{m.current=!1,clearTimeout(t)},3e3)},[u,r])}};i("121926"),i("683656");let ic=e=>{var t,i,l,o,n,r,a,d,u,s,c,v,f,m;let p=null!==(d=null==e?void 0:null===(t=e.hotList)||void 0===t?void 0:t.schema)&&void 0!==d?d:"",_=NaN,g="";return p&&(_=p.startsWith("aweme://")?Number(/\"board_type\":([\w|_]*)&/.exec(p)):Number(null===(u=/board_type=([\w|_]*)&/.exec(p))||void 0===u?void 0:u[1]),g=null!==(m=p.startsWith("aweme://")?null===(v=/\"board_sub_type\":([\w|_\"]*)\,/.exec(p))||void 0===v?void 0:null===(c=v[1])||void 0===c?void 0:null===(s=c.replaceAll)||void 0===s?void 0:s.call(c,'"',""):null===(f=/board_sub_type=([\w|_]*)&/.exec(p))||void 0===f?void 0:f[1])&&void 0!==m?m:""),{boardType:_,boardSubType:g,sentence:(null==e?void 0:null===(i=e.hotList)||void 0===i?void 0:i.sentence)||"",sentenceId:(null==e?void 0:null===(l=e.hotList)||void 0===l?void 0:l.sentenceId)||"",footer:null==e?void 0:null===(o=e.hotList)||void 0===o?void 0:o.footer,rank:null==e?void 0:null===(n=e.hotList)||void 0===n?void 0:n.rank,type:null==e?void 0:null===(r=e.hotList)||void 0===r?void 0:r.type,hotName:null==e?void 0:null===(a=e.hotList)||void 0===a?void 0:a.header}},iv=e=>{let{awemeInfo:t}=e,[i,l]=(0,v.useState)(ic(t));return(0,v.useEffect)(()=>{l(ic(t))},[t]),{hotData:i}},im=e=>{let{player:t,isActive:i,isNext:l,showSideCard:o,abtestData:n}=e,[r,a]=(0,v.useState)(!1),d=(0,v.useRef)(!1);return(0,v.useEffect)(()=>{if(o){if(i&&t){if(t.isPlaying)a(!0),d.current=!0;else{let e=setTimeout(()=>{a(!0),d.current=!0},3e3),i=()=>{clearTimeout(e),a(!0),d.current=!0};return t.once(en.Events.AUTOPLAY_STARTED,i),()=>{t.off(en.Events.AUTOPLAY_STARTED,i),clearTimeout(e)}}}else!i&&r?a(!1):!r&&a(!0)}},[t,i,n,o]),r},ip=e=>{let{scene:t,originAwemeInfo:i,awemeInfo:l,videoTag:o,toast:n,player:r,reportParams:a={},canShowMixCard:d=!1,canShowSeriesCard:u=!1,canShowRelatedCard:s=!1,canShowRelatedSearchFeedBar:c=!1,canShowChapterFeedbar:f=!1,curCard:p,handleAvatarClick:h,handleMixClick:y,handleSeriesClick:w,handleRelatedClick:I,handleHotClick:C,isShowSideBar:E,isInnerFeed:S,abtestData:k,showRelatedTabList:T,chapterProgress:A,triggerChapterSliderShow:R}=e,N=(0,v.useRef)(null!=o?o:[]),P=(0,v.useCallback)((e,i)=>{var o,r,d,u,s,c,v,f;let{to_user_id:m,is_co_publish:y,co_publish_author_list:w}=eO(l)||{};if((null==l?void 0:l.awemeType)===_.e.XgVideo){eB.sendLog("clickAuthorHead",(0,b._)({click_from:(null==i?void 0:i.clickMethod)||"head",action:"",urlParamList:["previous_page"],author_id:null==l?void 0:null===(u=l.authorInfo)||void 0===u?void 0:u.uid,group_id:null==l?void 0:l.awemeId,log_pb:null==l?void 0:l.logPb,enter_from:(0,e_.mo)(),is_full_screen:(0,ey.r)()?"1":"0",from_follow_list:(null===(s=x.Le.getConfig(x.gI.FromFollowList))||void 0===s?void 0:s.tag)?"1":"0"},(0,ew.t)(),a)),(null==l?void 0:l.awemeType)===_.e.XgVideo&&eg.emit(eg.EVENT.videoPause);return}if((0,g.Jt)(l)){if(t!==ea.lT.Recommend){if((0,g.gc)(l)){null==e||null===(c=e.preventDefault)||void 0===c||c.call(e),n?n("广告视频不支持此功能"):L.F.info("广告视频不支持此功能");return}}else{null==e||null===(v=e.preventDefault)||void 0===v||v.call(e),eg.emit(eg.EVENT.openAdSideCard);let t=(0,g.Rx)(l);(0,ie.E)("realtime_click",{tag:(0,ii.f)(),value:null==t?void 0:t.creative_id,log_extra:null==t?void 0:t.log_extra,refer:"source"});return}}if((0,g.gc)(l)){null==e||null===(f=e.preventDefault)||void 0===f||f.call(e),L.F.info("广告视频不支持此功能");return}return null==e||null===(o=e.preventDefault)||void 0===o||o.call(e),eB.sendLog("clickAuthorHead",(0,G._)((0,b._)((0,G._)((0,b._)({click_from:(null==i?void 0:i.clickMethod)||"head",urlParamList:["previous_page"],author_id:null==l?void 0:null===(r=l.authorInfo)||void 0===r?void 0:r.uid,group_id:null==l?void 0:l.awemeId,log_pb:null==l?void 0:l.logPb,enter_from:(0,e_.mo)(),is_full_screen:(0,ey.r)()?"1":"0",from_follow_list:(null===(d=x.Le.getConfig(x.gI.FromFollowList))||void 0===d?void 0:d.tag)?"1":"0"},a),{action:E&&p===eu.L.Author?"close":"open"}),(0,ew.t)()),{to_user_id:m,is_co_publish:y,co_publish_author_list:w})),null==h||h(i),!0},[l,a,p,h,E]),M=(0,v.useCallback)(()=>{null==C||C()},[C]),j=(0,v.useCallback)((e,t)=>{if(!T.includes(eu.L.Related)){var i;return null==e||null===(i=e.preventDefault)||void 0===i||i.call(e),n?n("暂无相关推荐"):L.F.info("暂无相关推荐"),!1}return I(t),!0},[I,T,n]);return(0,v.useEffect)(()=>{o&&i.awemeId===l.awemeId&&(N.current=o)},[o]),{videoInfoTags:(0,v.useMemo)(()=>{var e,t,i,o,n,r,a,s,v,f,p,_,g,h,x,I,C;let b=[];if(d&&(null==l?void 0:null===(e=l.mixInfo)||void 0===e?void 0:e.status)!==-1){let e=`合集:${null==l?void 0:null===(r=l.mixInfo)||void 0===r?void 0:r.mixName}`;b.push({type:ea.WZ.Mix,title:e,onClick:e=>null==y?void 0:y(e),itemClassName:m()(tR.mix),textClassName:m()(tR.mixText)})}if(u&&(null==l?void 0:null===(t=l.seriesInfo)||void 0===t?void 0:t.status)!==-1&&b.push({type:ea.WZ.Series,title:(null==l?void 0:null===(a=l.seriesInfo)||void 0===a?void 0:a.seriesName)||"",onClick:e=>null==w?void 0:w(e),itemClassName:m()(tR.mix),textClassName:m()(tR.mixText)}),(null==l?void 0:null===(i=l.hotList)||void 0===i?void 0:i.title)&&(null==l?void 0:null===(o=l.hotList)||void 0===o?void 0:o.rank)!==51&&(null==l?void 0:null===(n=l.hotList)||void 0===n?void 0:n.type)!==2){let e=(null==l?void 0:null===(s=l.hotList)||void 0===s?void 0:s.rank)?`${null==l?void 0:null===(v=l.hotList)||void 0===v?void 0:v.header}TOP${null==l?void 0:null===(f=l.hotList)||void 0===f?void 0:f.rank} ${null==l?void 0:null===(p=l.hotList)||void 0===p?void 0:p.title}`:`置顶热榜:${null==l?void 0:null===(_=l.hotList)||void 0===_?void 0:_.title}`;b.push({type:ea.WZ.Hot,title:e,customProps:{trending_topic:null==l?void 0:null===(g=l.hotList)||void 0===g?void 0:g.title,first_tag_name:null==l?void 0:null===(h=l.hotList)||void 0===h?void 0:h.header,top:null==l?void 0:null===(x=l.hotList)||void 0===x?void 0:x.rank},onClick:M,itemClassName:(null==l?void 0:null===(I=l.hotList)||void 0===I?void 0:I.rank)?m()(tR.rankHot):m()(tR.hot),textClassName:(null==l?void 0:null===(C=l.hotList)||void 0===C?void 0:C.rank)?m()(tR.rankHotText):m()(tR.hotText)})}if(c){let e=tN(l,{needFoldText:!1});b.push(...e)}if(S)return b.filter(e=>e.type===ea.WZ.RelatedSearch);let E=N.current,k=b.filter(e=>{let{type:t}=e;return E.includes(t)}).sort((e,t)=>E.indexOf(e.type)-E.indexOf(t.type));return k.forEach((e,t)=>{e.idx=t}),k},[y,d,l,M,s,i,I,c,E,S]),onAvatarClick:P,onRelatedClick:j}},i_=e=>{let{player:t,isActive:i,isOuter:l,scene:o}=e;(0,v.useEffect)(()=>{let e;return t&&i&&o===ea.lT.Recommend&&(()=>{if(l){var e;(null===(e=x.Le.getConfig(x.gI.IsInLookMiniModal))||void 0===e?void 0:e.isInMiniModal)&&setTimeout(()=>{var e;null===(e=t.pause)||void 0===e||e.call(t),t.config.autoplay=!1,t.autoplay=!1},20)}})(),()=>{clearTimeout(e)}},[t,i])};var ig=i("712909"),ih=i("202206");let iy=e=>{let{isUpperFeed:t,awemeInfo:i,scrollElRef:l,swiper:o,isActive:n,changeNextVideo:r,changePrevVideo:a,player:d,onFullScreen:u,onCssFullScreen:s,onFullScreenrestore:c,onChangeMinWindows:f,onCanPlay:m,onPlay:p,onEnterVideo:_,onLeaveVideo:g,onVideoTitleClick:h,feedCssFullScreen:y}=e,w=(0,eZ.Z)(e.onTriggerModalPlayerClose),[x,I]=(0,v.useState)(!1),C=null!=y?y:x,[b,E]=(0,v.useState)(!1),{isFullscreen:S}=(0,ig.$)(),k=(0,v.useRef)(s);k.current=s,(0,v.useEffect)(()=>{let e=e=>{null==e||e.stopPropagation(),eg.emit(eg.EVENT.globalEventPrevented)},t=e=>{null==e||e.stopPropagation(),eg.emit(eg.EVENT.globalEventPrevented)};if(l.current){var i,o,r,a;null===(i=l.current)||void 0===i||i.addEventListener("wheel",e),null===(o=l.current)||void 0===o||o.addEventListener("mousedown",t),null===(r=l.current)||void 0===r||r.addEventListener("pointerdown",t),null===(a=l.current)||void 0===a||a.addEventListener("touchstart",t)}let d=eg.listen(eg.EVENT.pageFullScreen,e=>{if(!n)return;let{fullScreen:t}=e;I(e=>null!=t?t:!e)});return()=>{var i,o,n,r;null===(i=l.current)||void 0===i||i.removeEventListener("wheel",e),null===(o=l.current)||void 0===o||o.removeEventListener("mousedown",t),null===(n=l.current)||void 0===n||n.removeEventListener("pointerdown",t),null===(r=l.current)||void 0===r||r.removeEventListener("touchstart",t),null==d||d()}},[l,d,n]),(0,es.o)(()=>{if(n&&o){let e=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];(0,ih.i0)(ih.CK.User),r(...t)},t=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];(0,ih.i0)(ih.CK.User),a(...t)};try{null==o||o.on("changeNext",e),null==o||o.on("changePrev",t)}catch(e){}return()=>{var i,l;null==o||null===(i=o.off)||void 0===i||i.call(o,"changeNext",e),null==o||null===(l=o.off)||void 0===l||l.call(o,"changePrev",t)}}},[n,o,r,a]),(0,ei.Z)(()=>{n&&!(C||S)&&(null==c||c())},[S,C]),(0,ei.Z)(()=>{n&&(S?null==u||u(!0):null==u||u(!1))},[S]),(0,ei.Z)(()=>{if(n){var e,t;C?null===(e=k.current)||void 0===e||e.call(k,!0):null===(t=k.current)||void 0===t||t.call(k,!1)}},[C]),(0,v.useEffect)(()=>{let e=eg.listen(eg.EVENT.triggerModalPlayerClose,w);return()=>{null==e||e()}},[w]),(0,es.o)(()=>{let e=eg.listen(eg.EVENT.changeMinWindows,e=>{let t=tB.s.getPlayersByScene(ea.lT.Modal).length>0;if(tB.s.getPlayerScene(null==d?void 0:d.playerId)!==ea.lT.Modal&&t)return;let{isMiniWin:i}=e||{};E(i),null==f||f(i)});return()=>e()},[f,d]);let T=(0,v.useRef)(m);T.current=m,(0,v.useEffect)(()=>{if(d&&n){let e=()=>{var e;null===(e=T.current)||void 0===e||e.call(T)};return d.once("canplay",e),()=>{d.off("canplay",e)}}},[d,n,t]);let L=(0,v.useRef)(p);return L.current=p,(0,v.useEffect)(()=>{if(d){let e=()=>{var e;null===(e=L.current)||void 0===e||e.call(L)};return d.on("play",e),()=>{d.off("play",e)}}},[d]),(0,ei.Z)(()=>{n&&(null==_||_()),!n&&(null==g||g())},[n]),(0,v.useEffect)(()=>{let e=eg.listen(eg.EVENT.videoTitleClick,e=>{let{awemeId:t,playerId:l}=e;if((null==i?void 0:i.awemeId)===t&&(null==d?void 0:d.playerId)===l)null==h||h()});return()=>{null==e||e()}},[i,d,h]),{isCssFullScreen:C,isFullScreen:S,isMiniWin:b}};var iw=i("980114"),ix=i("853552");let iI=e=>{let{isActive:t,awemeInfo:i,isNext:l,scene:o,isUpperFeed:n=!1,smoothInner:r=!1,modalEnterFrom:a}=e,d=(0,iw.t)();(0,ix.t)(function(){var e;let l=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(!l)t&&!(null==d?void 0:null===(e=d.current)||void 0===e?void 0:e.isRecoveryFromChild)&&eg.emit(eg.EVENT.postCurVideoInfo,{awemeId:null==i?void 0:i.awemeId,groupId:null==i?void 0:i.groupId,scene:o,suggestWords:null==i?void 0:i.suggestWords,modalEnterFrom:a,isRecovery:!0})}),(0,v.useEffect)(()=>{if(i&&o!==ea.lT.Search){if(!n||!!r)t?(eg.emit(eg.EVENT.postCurVideoInfo,{awemeId:null==i?void 0:i.awemeId,groupId:null==i?void 0:i.groupId,scene:o,suggestWords:null==i?void 0:i.suggestWords,modalEnterFrom:a}),!x.Le.getConfig(x.gI.FirstFeedVideoSearchInfo)&&x.Le.setConfig(x.gI.FirstFeedVideoSearchInfo,{awemeId:null==i?void 0:i.awemeId,groupId:null==i?void 0:i.groupId,scene:o,suggestWords:null==i?void 0:i.suggestWords,modalEnterFrom:a})):l&&eg.emit(eg.EVENT.postCurVideoInfo,{awemeId:null==i?void 0:i.awemeId,groupId:null==i?void 0:i.groupId,scene:o,suggestWords:null==i?void 0:i.suggestWords,preload:!0,modalEnterFrom:a})}},[i,t,o,l])},iC=e=>{let{awemeInfo:t,customProps:i,reportParams:l,fullScreenTarget:o,tab:n,showSideCard:r,player:a,scrollElRef:d,followStatus:u,handleCommentClick:s,isShowRelatedCard:c,isActive:f,isUpperFeed:m=!1,globalIsCommentTrayPushGuideShow:p,globalCommentTrayPushGuideType:_,setCommentTrayPushGuideTypeFunc:g,setIsCommentTrayPushGuideShowFunc:h,onSearchTextClick:y,scene:w}=e,{abtestData:I,userContext:C,insertCommentId:E,tab:S}=i||{},{userInfo:k,dispatch:T}=C||{};(0,v.useEffect)(()=>{var e,t;let i;if(!f)return;c&&(i=setTimeout(()=>eg.emit(eg.EVENT.feedVideoCardLocateCurrentVideo),0));let{isShow:l,isModal:o,tab:r}=x.Le.getConfig(x.gI.IsSidebarShow)||{},a=(null===(e=x.Le.getConfig(x.gI.IsInLookMiniModal))||void 0===e?void 0:e.isInMiniModal)||!1,d=(null===(t=x.Le.getConfig(x.gI.IsInModalVideo))||void 0===t?void 0:t.isInModal)||!1,u=o!==(d||a)?{tab:r,isShow:void 0}:{tab:r,isShow:l};return x.Le.setConfig(x.gI.IsSidebarShow,{isShow:c,tab:n,isModal:d||a,lastStatus:(0,G._)((0,b._)({},u),{isModal:o})}),eg.emit(eg.EVENT.changeVideoSideBar,{isShowRelatedCard:c,isShowComment:n===eu.L.Comment,lastStatus:u}),()=>{clearTimeout(i)}},[c,n]);let L=(0,v.useMemo)(()=>({awemeInfo:t,sense:"slider_video",onCloseClick:()=>{},onCollapseClick:()=>{},userContext:C,abtestData:I,changeLoginStatus:()=>{T({type:"updateUserInfo"})},logParams:l}),[t,C,T,l,I]),{fetchComment:A,fetchReply:R,fetchCommentMention:N,deleteCommentItem:P,publishCommentItem:M,diggCommentItem:j}=tY({awemeInfo:t,player:a});return{authorConfig:L,commentConfig:{abtestData:I,fullScreenTarget:o,isDetail:!1,isShowComment:n===eu.L.Comment&&r,total:0,onCloseCommentClick:s,awemeInfo:t,awemelogPb:null==t?void 0:t.logPb,userInfo:k,scrollContainerEl:null==d?void 0:d.current,player:a,shortcutMode:null==I?void 0:I.shortcutMode,fetchComment:A,fetchReply:R,fetchEmoticonGif:tq.D2,fetchCommentMetionList:N,diggCommentItem:j,deleteCommentItem:P,puhlishCommentItem:M,count:(null==I?void 0:I.commentRenderOptimize)===2?10:20,defaultommentList:[],defaultCursor:0,defaultHotsoonHasMoreRef:0,defaultHasMore:!0,defaultStatusCode:0,defaultCommentId:m?"":E,isNeedCommentInput:!0,changeLoginStatus:()=>{T({type:"updateUserInfo"})},reportExtraParams:(0,G._)((0,b._)({},l),{relation:String(u)}),dispatch:T,globalIsCommentTrayPushGuideShow:p,globalCommentTrayPushGuideType:_,setCommentTrayPushGuideTypeFunc:g,setIsCommentTrayPushGuideShowFunc:h,tab:S,onSearchTextClick:y,isSearch:w===ea.lT.Search}}},ib=e=>{let{isActive:t,isUpperFeed:i,modalAwemeInfo:l,showSideCard:o,isShowAdCard:n,isShowAiSearchCard:r,isShowShopDetailSideCard:a,abtestData:d,scene:u}=e,s=(0,v.useRef)(!0);(0,v.useEffect)(()=>{if(s.current){s.current=!1;return}t&&eg.emit(eg.EVENT.sideCardShowChange,{isUpperFeed:i,isModalAwemeShow:!!l,isShow:o||n||a||r})},[o,n,i,a,t,null==l?void 0:l.awemeId,r])},iE=e=>{let{curTab:t,awemeInfo:i,handleChangeVideo:l,handleCooperationAvatarClick:o,reportParams:n,isShowVideoCard:r}=e,a=(0,v.useRef)(!1),d=(0,v.useCallback)(e=>{var l,d;a.current=!0,null==o||o(e);let{to_user_id:u,is_co_publish:s,co_publish_author_list:c}=eO(e)||{};eB.sendLog("clickAuthorHead",(0,G._)((0,b._)((0,G._)((0,b._)({click_from:"click_co_author_head",urlParamList:["previous_page"],author_id:null==e?void 0:null===(l=e.authorInfo)||void 0===l?void 0:l.uid,group_id:null==i?void 0:i.awemeId,log_pb:null==i?void 0:i.logPb,is_full_screen:(0,ey.r)()?"1":"0",from_follow_list:(null===(d=x.Le.getConfig(x.gI.FromFollowList))||void 0===d?void 0:d.tag)?"1":"0"},n),{action:r&&t===eu.L.Author?"close":"open"}),(0,ew.t)()),{to_user_id:u,is_co_publish:s,co_publish_author_list:c})),eg.emit(eg.EVENT.feedVideoCardLocateCurrentVideo,{offsetHeight:0,scrollBehavior:"smooth"})},[o,i,t,r,n]);return(0,v.useEffect)(()=>{if(void 0!==i.authorInfo.roleId&&i.authorInfo.roleId!==eV.iG.Author&&[eu.L.Mix,eu.L.Hot].includes(t)){var e,o;let t=ez()(i),n=null==t?void 0:null===(o=t.cooperationInfo)||void 0===o?void 0:null===(e=o.cooperationCreators)||void 0===e?void 0:e.filter(e=>e.roleId===eV.iG.Author)[0];n&&(t.authorInfo=n),null==l||l(t)}},[t]),{onCooperationAvatarClick:d,changeIsInCooperation:e=>{a.current=e},isInCooperation:a.current}};i("240148");var iS=i("585215"),ik=i("798357"),iT=i("661444"),iL="hmlbuVsA",iA="H8xeZ1oR",iR="IdizNQOf",iN="EaA_fj9q",iP=i("48795"),iM=i("749113"),ij=i("915821"),iD=i("928314"),iF=i("879802"),iV={container:"XrBVDTYx",fixed:"GiFjrCdt",circle:"Ln3JrnPm",return:"vZhlji3W",clientHomeStyleWrap:"a0EcNCg4",back:"wr_RCAOT"},iB=i("7825");let iO=new Map([[eu.L.Related,`${iM.a.t("related",{},"相关推荐")}`],[eu.L.AwemeRelated,`${iM.a.t("related",{},"相关推荐")}`],[eu.L.Music,`${iM.a.t("music",{},"音乐")}`],[eu.L.Topic,`${iM.a.t("topic",{},"话题")}`],[eu.L.Mix,`${iM.a.t("mix",{},"合集")}`],[eu.L.Series,`${iM.a.t("series",{},"短剧")}`],[eu.L.Comment,`${iM.a.t("comment",{},"评论")}`],[eu.L.Hot,`${iM.a.t("hot",{},"热点")}`],[eu.L.Author,`${iM.a.t("ta_s_works",{},"TA的作品")}`],[eu.L.Handpick,`${iM.a.t("handplick",{},"编辑精选")}`],[eu.L.Search,"搜索结果"],[eu.L.History,`${iM.a.t("history",{},"历史记录")}`],[eu.L.Like,"TA的喜欢"],[eu.L.Collection,"TA的收藏"],[eu.L.CollectFolder,`${iM.a.t("collect_folder",{},"收藏夹")}`],[eu.L.AbstractList,`${iM.a.t("abstract_list",{},"摘要")}`],[eu.L.Record,`${iM.a.t("record",{},"观看历史")}`]]),iU=e=>{let{exitTextProps:t,onHandleReturn:i,positionFixed:l}=e,o=iH(t),n=(0,v.useRef)(),r=(0,D.DT)()&&(0,ij.y)((0,D.FJ)().awemePcClient,">=","5.4.0");return(0,c.jsx)("div",{className:m()("isDark",iV.container,l&&iV.fixed,r&&iV.clientHomeStyleWrap),children:(0,c.jsx)(iP.Tooltip,{getPopupContainer:()=>n.current||document.body,position:"bottom",content:o,children:(0,c.jsxs)("div",{className:iV.circle,onClick:i,ref:n,children:[!r&&(0,c.jsx)(iB.z,{size:"large",svg:(0,c.jsx)(iD.Z,{}),className:iV.return}),r&&(0,c.jsx)(iB.z,{svg:(0,c.jsx)(iF.Z,{style:{fontSize:"24px"}}),className:m()(iV.back)})]})})})},iH=e=>{let{getCurrentTab:t,modalEnterFrom:i,isSelf:l,uidEquals:o,awemeInfo:n}=e,[r,a]=(0,v.useState)("");return(0,v.useEffect)(()=>{var e;let r=null==t?void 0:t();if(r===eu.L.Comment)return;let d=iO.has(r);r===iO[eu.L.Series]&&(null==n?void 0:null===(e=n.seriesInfo)||void 0===e?void 0:e.isSeries2Mix)&&(d=iO[eu.L.Mix]);let u=d?`退出${d}`:"";switch(r){case eu.L.Like:"userLike"===i&&l&&(u=u.replace("TA","我"));break;case eu.L.Collection:"userCollection"===i&&l&&(u=u.replace("TA","我"));break;case eu.L.Author:"userPost"===i&&o&&l&&(u=u.replace("TA","我"))}a(u||"退出")},[t,i,l,o]),(0,v.useEffect)(()=>eg.listen(eg.EVENT.changeTab,e=>{let t=iO.has(e)?`退出${iO.get(e)}`:"";t&&a(t)}),[]),r};var iW=i("970778"),iG=i("908219"),iz=i.n(iG),iZ=i("687875"),iq=i("509523");let i$=e=>{let{EventListener:t,refContainerStatus:i,isClientMiniWin:l}=e,o=(0,v.useRef)(!1),n=(0,v.useRef)(null),r=(0,v.useRef)([]),a=(0,v.useRef)(null),d=(0,v.useRef)(null),u=(0,v.useRef)((0,eI.vU)()?120:0),s=(0,v.useCallback)((e,t)=>{let i=0,l=e.slice(Math.max(e.length-t,1));for(let e=0;e<l.length;e++)i+=l[e];return Math.ceil(i/t)},[]),c=(0,v.useCallback)(()=>{eg.emit(eg.EVENT.swiperVideo)},[]),f=(0,v.useCallback)(e=>{var i;c(),null==e||null===(i=e.preventDefault)||void 0===i||i.call(e),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{r.current=[]},400);let l=new Date().getTime(),o=e.wheelDelta||-e.deltaY||-e.detail,v=Math.max(-1,Math.min(1,o)),f=void 0!==e.wheelDeltaX||void 0!==e.deltaX,m=Math.abs(e.wheelDeltaX)<Math.abs(e.wheelDelta)||Math.abs(e.deltaX)<Math.abs(e.deltaY)||!f;r.current=[...r.current,u.current+Math.abs(o)];let p=l-a.current;a.current=l,p>400&&1===r.current.length&&(r.current=[,,].fill(r.current[0]),d.current=!1);let _=s(r.current,20),g=_>s(r.current,40);g&&!d.current&&m&&((0,x.Vv)(eV.CJ.scroll),v<0?t.emit("changeNext",{from:"scroll"}):t.emit("changePrev",{from:"scroll"}),d.current=!0),!g&&d.current&&m&&(d.current=!1)},[t]);return(0,v.useEffect)(()=>{if(t)return null==t||t.on("sliderMove",c),()=>{null==t||t.off("sliderMove",c)}},[t]),(0,v.useEffect)(()=>{if(i)return null==i||i.addEventListener("wheel",f),()=>{null==i||i.removeEventListener("wheel",f)}},[i,f]),(0,es.o)(()=>{let e=l?[iZ.bf.ArrowUp.keyCode]:[iZ.bf.ArrowUp.keyCode,iZ.bf.W.keyCode],i=l?[iZ.bf.ArrowDown.keyCode]:[iZ.bf.ArrowDown.keyCode,iZ.bf.S.keyCode],n=iz()(l=>{var n,r,a,d;if(l.nativeEvent||(null===(n=x.Le.getConfig(x.gI.IsInModalVideo))||void 0===n?void 0:n.isInModal)||(null===(r=x.Le.getConfig(x.gI.PlayerShortcutConf))||void 0===r?void 0:r.pausePlayControlShortcut)||o.current)return;let u=x.Le.getConfig(x.gI.DisableNextPre);!e.includes(l.keyCode)||l.shiftKey||u&&l.keyCode===iZ.bf.ArrowUp.keyCode?i.includes(l.keyCode)&&!l.shiftKey&&(!u||l.keyCode!==iZ.bf.ArrowDown.keyCode)&&((0,x.Vv)(eV.CJ.hotkey),iq.p.postTask({task:()=>{t.emit("changeNext",{from:"keyboard"})},priority:"user-blocking",immediate:(null===(d=x.Le.getConfig(x.gI.AbtestData))||void 0===d?void 0:d.longtask)!==1})):((0,x.Vv)(eV.CJ.hotkey),iq.p.postTask({task:()=>{t.emit("changePrev",{from:"keyboard"})},priority:"user-blocking",immediate:(null===(a=x.Le.getConfig(x.gI.AbtestData))||void 0===a?void 0:a.longtask)!==1}))},500,{leading:!0,trailing:!1});document.addEventListener("keydown",n);let r=eg.listen(eg.EVENT.showLoginPanel,e=>{o.current=e});return()=>{document.removeEventListener("keydown",n),r()}},[l,t]),null},iK="undefined"!=typeof window?v.useLayoutEffect:v.useEffect,iY="slide-mode-0",iQ=()=>{let e=parseInt(iY.match(/\d+$/)[0]);e++,iY=iY.replace(/\d+$/,e)},iJ=()=>{let e=parseInt(iY.match(/\d+$/)[0]);e--,iY=iY.replace(/\d+$/,e)},iX=e=>{var t,i,l;let{close:o,clickedCard:n,customProps:r,isEnterByFullScreen:a=!1,modalEnterFrom:d,currentAwemeInfo:u,isClientMiniWin:s,relatedSmooth:f}=e,{tab:p,userContext:_}=r||{},{userInfo:g}=_,[h,y]=(0,v.useState)({}),{isCssFullScreen:w,isFullScreen:I,isSelf:C}=(0,v.useContext)(q.C),[E,S]=(0,v.useState)(!1),k=(0,v.useRef)(iY),L=(0,v.useRef)(null),A=(0,v.useRef)(null),R=(0,v.useRef)(null),N=(0,v.useRef)("click_screen");(0,v.useEffect)(()=>(eg.emit(eg.EVENT.InnerFeedReady,k.current),iQ(),()=>{eg.emit(eg.EVENT.InnerFeedExit,k.current),iJ()}),[]);let P=(0,v.useCallback)(e=>{e.target===L.current&&(N.current="click_screen",S(!0))},[]),M=(0,v.useCallback)(()=>{y({width:"100%",height:"100%"})},[]);return((0,v.useEffect)(()=>{var e,t,i;M();let l=null===er()||void 0===er()?void 0:null===(e=er().getCurrentUserActivePlayerId)||void 0===e?void 0:e.call(er()),o=tB.s.getPlayer(l);return null==o||null===(t=o.pause)||void 0===t||t.call(o),null===er()||void 0===er()||null===(i=er().instManager)||void 0===i||i.setActive(l,!1),()=>{var e;if(null===(e=er().instManager)||void 0===e||e.setActive(l,!0),setTimeout(()=>{var e;eg.emit(eg.EVENT.syncInteraction),null==o||null===(e=o.play)||void 0===e||e.call(o)}),x.Le.getConfig(x.gI.IsInMixCard)){let e=Number((0,j.$o)(T.LocalStorageKeys.PLAYER_NEXT_AUTOPLAY)),t=x.Le.getConfig(x.gI.AutoPlayChanged);!(null==t?void 0:t.changed)&&(null==t?void 0:t.autoEmit)&&e&&((0,j.qQ)(T.LocalStorageKeys.PLAYER_NEXT_AUTOPLAY,"0"),eg.emit(eg.EVENT.changeInnerAutoPlay,2),x.Le.setConfig(x.gI.InnerAutoPlay,null),x.Le.setConfig(x.gI.AutoPlayChanged,{autoEmit:!1})),x.Le.setConfig(x.gI.IsInMixCard,!1)}}},[M]),iK(()=>(x.Le.setConfig(x.gI.SlideStartTime,{slideStartTime:0}),x.Le.setConfig(x.gI.IsInLookMiniModal,{isInMiniModal:!0}),()=>{x.Le.setConfig(x.gI.IsInLookMiniModal,{isInMiniModal:!1})}),[]),(0,v.useEffect)(()=>{let e=()=>{if(E){var t,i,l;null==o||o(N.current,null===(i=R.current)||void 0===i?void 0:null===(t=i.getCurTab)||void 0===t?void 0:t.call(i)),null===(l=A.current)||void 0===l||l.removeEventListener("animationend",e)}};if(E){var t,i;null==o||o(N.current,null===(i=R.current)||void 0===i?void 0:null===(t=i.getCurTab)||void 0===t?void 0:t.call(i))}let l=eg.listen(eg.EVENT.sendImUserMsg,()=>{var e,t;null==o||o(N.current,null===(t=R.current)||void 0===t?void 0:null===(e=t.getCurTab)||void 0===e?void 0:e.call(t))}),n=A.current;return n.addEventListener("animationend",e),()=>{n.removeEventListener("animationend",e),l()}},[w,I,E,o,s]),(0,es.o)(()=>{let e=e=>{if(e.shiftKey||e.metaKey||e.ctrlKey)return;let t=x.Le.getConfig(x.gI.DisableExit);if("Escape"===e.code&&(!w||p===ea.lT.Modal)&&!I&&!s&&!t){var i,l;return e.preventDefault(),e.returnValue=!1,null==o||o("esc",null===(l=R.current)||void 0===l?void 0:null===(i=l.getCurTab)||void 0===i?void 0:i.call(l)),!1}};return iS.k.bind("Escape",e),()=>{iS.k.remove("Escape",e)}},[w,I,s,o]),(0,v.useEffect)(()=>{if(w)return y({}),()=>{M()}},[w]),(0,v.useEffect)(()=>{if(I)return y({}),()=>{M()}},[I]),(0,v.useEffect)(()=>{if(s)return y({}),()=>{M()}},[s]),(0,v.useEffect)(()=>{if(!a&&p!==ea.lT.Modal){var e,t,i;eg.emit(eg.EVENT.pageFullScreen,{fullScreen:!0,playerId:null===(i=R.current)||void 0===i?void 0:null===(t=i.getPlayer)||void 0===t?void 0:null===(e=t.call(i))||void 0===e?void 0:e.playerId,clickMethod:"inner_player",fromAuthorCard:!0})}},[]),f)?null:(0,c.jsxs)(iW.T6,{onMaskClick:()=>{N.current="click_screen",S(!0)},className:m()(iN),children:[(0,c.jsxs)("div",{className:iA,ref:L,onClick:P,children:[!s&&(0,c.jsx)(iU,{positionFixed:!0,exitTextProps:{getCurrentTab:()=>{var e,t;return(null==R?void 0:null===(t=R.current)||void 0===t?void 0:null===(e=t.getCurTab)||void 0===e?void 0:e.call(t))||n},modalEnterFrom:d,isSelf:C,uidEquals:(null==u?void 0:null===(t=u.authorInfo)||void 0===t?void 0:t.uid)===(null==g?void 0:null===(i=g.info)||void 0===i?void 0:i.uid),awemeInfo:u},onHandleReturn:()=>{var e,t;N.current="click_button",null==o||o(N.current,null===(t=R.current)||void 0===t?void 0:null===(e=t.getCurTab)||void 0===e?void 0:e.call(t))}}),(0,c.jsx)("div",{className:iR,ref:A,style:{height:"100%"},children:(0,c.jsx)(lL,(0,G._)((0,b._)({},e),{style:h,isUpperFeed:!0,isMultiInstanceScene:!1,className:iL,close:o,ref:R,swiper:null!==(l=null==e?void 0:e.swiper)&&void 0!==l?l:eg.commonEvent}))})]}),p===ea.lT.Search&&L.current&&(0,c.jsx)(i$,{EventListener:eg.commonEvent,refContainerStatus:L.current})]})},i0=e=>{let t=(0,v.useRef)(document.createElement("div")),i=(0,v.useRef)(!1);return(0,v.useEffect)(()=>{let e=Array.from(document.querySelectorAll('.sliderVideo[data-e2e="feed-active-video"]')),l=e[e.length-1]||document.body,o=document.querySelector(".searchUpperFeedContainer")||l,n=document.getElementById("upperFeedContainer")||(0,ik.t)()||l,r=(0,iT.En)()?o:n;return null==r||r.appendChild(t.current),()=>{var e,l,o;(null===(e=t.current)||void 0===e?void 0:e.parentNode)&&(null===(o=t.current)||void 0===o||null===(l=o.remove)||void 0===l||l.call(o)),t.current=null,i.current=!0}},[]),(0,eT.createPortal)((0,c.jsx)(iX,(0,G._)((0,b._)({},e),{close:function(){for(var l,o,n,r,a,d=arguments.length,u=Array(d),s=0;s<d;s++)u[s]=arguments[s];(null===(l=t.current)||void 0===l?void 0:l.parentNode)&&(null===(a=t.current)||void 0===a||a.remove()),null==e||null===(o=e.close)||void 0===o||o.call(e,...u),eg.emit(null==eg?void 0:null===(n=eg.EVENT)||void 0===n?void 0:n.clarityRel,{exitInner:!0}),eg.emit(null==eg?void 0:null===(r=eg.EVENT)||void 0===r?void 0:r.quitInnerFeed,!0),i.current=!0}})),t.current)};var i1=e=>((0,v.useEffect)(()=>()=>{},[]),(0,c.jsx)(i0,(0,b._)({},e)));function i2(e){let{player:t,isActive:i}=e,[l,o]=(0,v.useState)(void 0);return(0,v.useEffect)(()=>{if(t&&i){let e=e=>{"boolean"==typeof(null==e?void 0:e.isOn)&&o(e.isOn)};return t.on(tV.B.ImmersiveSwitchChange,e),()=>{t.off(tV.B.ImmersiveSwitchChange,e)}}!i&&t&&o(!1)},[t,i]),{inImmersive:l}}var i3="ou2C98yw",i6="Hi3yZs0T",i5="vMtPF9v4",i4="CIhXA41A",i8="oyf5TzU9";let i7=(0,v.forwardRef)((e,t)=>(0,c.jsxs)("svg",(0,G._)((0,b._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,c.jsx)("path",{d:"M7.978 8.5H14a4.5 4.5 0 0 1 4.5 4.5v0a4.5 4.5 0 0 1-4.5 4.5H7.5",stroke:"#222",strokeWidth:2,strokeLinecap:"round"}),(0,c.jsx)("path",{d:"M8.5 5.5l-3 3 3 3",stroke:"#222",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})));var i9=i("84126"),le=i("548340"),lt=i("268632"),li=i("782942");let ll=e=>{let{src:t,width:i,height:l,id:o,viewBox:n,className:r,onClick:a,isSpider:d=!1,color:u,notJudgeIsUse:s=!1}=e,f=(0,v.useContext)(li.P),m=(0,v.useRef)(f);m.current=f;let p=(0,v.useRef)((0,i9.o)()),_=(0,v.useRef)();(0,v.useEffect)(()=>{let e=m.current;if(e&&_.current!==o){_.current=o;let t=(e.usedIconMap[o]||[]).concat([]);t.push({id:p.current,width:Number(i),height:Number(l)}),(0,le.L)(()=>{e.setUsedIconMap((0,G._)((0,b._)({},e.usedIconMap),{[o]:t}))})}return()=>{let e=m.current;if(e){let i=e.usedIconMap[o]||[],l=i.findIndex(e=>e.id===p.current);if(l>-1){var t;i.splice(l,1),e.usedIconMap[o]=i,null===(t=e.setUsedIconMap)||void 0===t||t.call(e,(0,b._)({},e.usedIconMap))}}}},[o]);let g=(0,v.useMemo)(()=>{if(s)return!1;if(f){var e,t;let i=f.usedIconMap[o]||[];return(null===(e=i[0])||void 0===e?void 0:e.id)&&(null===(t=i[0])||void 0===t?void 0:t.id)!==p.current}return!1},[o,null==f?void 0:f.usedIconMap]);return d?null:g?(0,c.jsx)("svg",{onClick:a,width:Number(i),height:Number(l),viewBox:`0 0 ${i} ${l}`,className:r,children:(0,c.jsx)("use",{xlinkHref:`#${o}`})}):(0,c.jsx)(lt.Z,{onClick:a,src:t,width:Number(i),height:Number(l),viewBox:n,id:o,className:r,color:u})},lo=e=>{let{width:t=24,height:i=24,className:l}=e;return(0,c.jsx)(ll,(0,G._)((0,b._)({},e),{width:t,height:i,src:i7,id:"svg_icon_revoke",defaultWidth:24,defaultHeight:24,viewBox:"0 0 24 24",className:l}))},ln=e=>{let{onRevokeDislike:t,isActive:i=!1}=e;return(0,v.useEffect)(()=>{i&&eB.sendLog("dislikeRecallShow")},[i]),(0,c.jsxs)("div",{className:i3,children:[(0,c.jsx)("span",{className:i6,children:"你已对该视频不感兴趣"}),(0,c.jsxs)("div",{className:i5,onClick:()=>{null==t||t(),eB.sendLog("dislikeRecallClick")},children:[(0,c.jsx)(lo,{className:i4}),(0,c.jsx)("span",{className:i8,children:"撤销"})]})]})};var lr=i("265886"),la=i("909723"),ld={staticImgBackground:"allxi8Ip",videoCover:"ElQEWI7p",blackVideoCover:"z9fiuShz",playerImgBackground:"hwGy15kM",inactive:"nbYUX8lW"},lu={backgroundImg:"vlFpbJU3",isError:"Ua8N99Xp",hideFilterBlur:"i9yR6gv2",backgroundMask:"L1IijZas",backgroundImgSarari:"Uzs9acK0",backgroundImgQq:"r_pw5k3m",backgroundImgFirefox:"Kzck3yUB"};let ls=e=>{var t,i,l,o,n,r,a,d,u;let s;let{awemeInfo:f,useServerFilterCover:p=(0,eI.b_)()||(0,eI.Sb)()||(0,D.tq)(),className:_,maskClassName:g,abtestData:h,priorityServerBackupBg:y}=e,w=(0,tZ._)(e,["awemeInfo","useServerFilterCover","className","maskClassName","abtestData","priorityServerBackupBg"]),x=!1,I=!1,C=!!(null==f?void 0:null===(t=f.video)||void 0===t?void 0:t.gaussianCover);p||(0,eI.G6)()?C&&!(0,eI.G6)()?(x=!0,s="low"):I=!0:y&&C&&(x=!0,s="low");let E=(0,eI.GP)(),S=!1,k=(null==f?void 0:null===(i=f.video)||void 0===i?void 0:i.originCover)||(null==f?void 0:null===(r=f.cellRoom)||void 0===r?void 0:null===(n=r.rawdata)||void 0===n?void 0:null===(o=n.cover)||void 0===o?void 0:null===(l=o.url_list)||void 0===l?void 0:l[0])||(null==f?void 0:null===(u=f.varietyVideo)||void 0===u?void 0:null===(d=u.cover)||void 0===d?void 0:null===(a=d.url_list)||void 0===a?void 0:a[0]);I?k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABQAAAALQAQMAAAD1s08VAAAAA1BMVEUAAACnej3aAAAAlElEQVR42uzBgQAAAACAoP2pF6kCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOD24JAAAAAAQND/154wAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAqwDE3wABfajOdgAAAABJRU5ErkJggg==":x&&C&&(k=f.video.gaussianCover,S=!0);let[T,L]=(0,v.useState)(!1);return(0,c.jsxs)("div",{className:m()(_,{[lu.backgroundImg]:!I,[lu.backgroundImgSarari]:I,[lu.backgroundImgQq]:E,[lu.backgroundImgFirefox]:(0,eI.vU)(),[lu.hideFilterBlur]:S&&C,[lu.isError]:T}),children:[(0,c.jsx)("img",(0,G._)((0,b._)({},w),{fetchPriority:(null==w?void 0:w.fetchPriority)||s,src:k,onError:()=>L(!0)})),(0,c.jsx)(v.Fragment,{children:!I&&(0,c.jsx)("div",{className:m()(lu.backgroundMask,g)})})]})},lc=e=>{let{isActive:t,isRenderInSSR:i,awemeInfo:l,abtestData:o,className:n}=e,r=(0,v.useMemo)(()=>{var e,t,i,n;return o.searchSuspenseFetch===tJ.SearchSuspenseFetch.StreamWithBlackBg?la:l.awemeType===_.e.Note?null===(n=l.images)||void 0===n?void 0:null===(i=n[0])||void 0===i?void 0:null===(t=i.urlList)||void 0===t?void 0:t[0]:null===(e=l.video)||void 0===e?void 0:e.originCover},[l,o]),a=(0,v.useMemo)(()=>{var e;return(null===(e=(0,lr.P)(o))||void 0===e?void 0:e.multiPlayer)&&!t?ld.inactive:""},[o,t]);return(0,c.jsxs)("div",{className:m()(ld.staticImgBackground,n,a,"HideInLynxClassName"),children:[(0,c.jsx)("img",{src:r,className:m()(ld.videoCover,{[ld.blackVideoCover]:o.searchSuspenseFetch===tJ.SearchSuspenseFetch.StreamWithBlackBg})}),(0,c.jsx)(ls,{className:ld.playerImgBackground,isRenderInSSR:i,awemeInfo:l,elementtiming:"lcp_ele",abtestData:o,fetchPriority:"auto",priorityServerBackupBg:!1})]})};var lv=i("297738"),lf=i.n(lv),lm=i("236758"),lp={staticControls:"V7AMgkTG",progress:"Adf5rVax",innerControls:"XOBWUSpx",leftGrid:"d2FB__Q_",time:"nvKwQnon",timeSeparator:"fA3DvJvN",rightGrid:"RweXkAMh",desc:"E8DHvpRN",detailSvg:"qzEfKFVC",inactive:"hBtDyzHI"};let l_=(0,v.forwardRef)((e,t)=>(0,c.jsx)("svg",(0,G._)((0,b._)({width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,c.jsx)("path",{d:"M23.5 15.134a1 1 0 0 1 0 1.732l-11.25 6.495a1 1 0 0 1-1.5-.866V9.505a1 1 0 0 1 1.5-.866l11.25 6.495z",fill:"#fff"})})));k().extend(lf());let lg=e=>{let{isActive:t,time:i,abtestData:l,enableEnterDetail:o}=e,n=(0,v.useMemo)(()=>k().duration(Math.round(i/1e3),"seconds").format("mm:ss"),[i]),r=(0,v.useMemo)(()=>{var e;return(null===(e=(0,lr.P)(l))||void 0===e?void 0:e.multiPlayer)&&!t?lp.inactive:""},[l,t]);return(0,c.jsxs)("div",{className:m()(lp.staticControls,r),children:[(0,c.jsx)("div",{className:lp.progress}),(0,c.jsxs)("div",{className:lp.innerControls,children:[(0,c.jsxs)("div",{className:lp.leftGrid,children:[(0,c.jsx)(l_,{}),i>0&&(0,c.jsxs)("div",{className:lp.time,children:[(0,c.jsx)("span",{children:"00:00"}),(0,c.jsx)("span",{className:lp.timeSeparator,children:"/"}),(0,c.jsx)("span",{children:n})]})]}),o&&(0,c.jsxs)("div",{className:lp.rightGrid,children:[(0,c.jsx)("div",{className:lp.desc,children:"详情"}),(0,c.jsx)("div",{className:lp.detailSvg,children:(0,c.jsx)(lm.Z,{width:6,height:9,viewBox:"0 0 6 9"})})]})]})]})},lh=e=>{var t;let{isActive:i,isRenderInSSR:l,awemeInfo:o,player:n,abtestData:r,className:a}=e,[d,u]=(0,v.useState)(!1);(0,v.useEffect)(()=>{u(!0)},[]);let s=!d||(null===(t=(0,lr.P)(r))||void 0===t?void 0:t.multiPlayer)&&!i;return(0,c.jsxs)(c.Fragment,{children:[s&&(0,c.jsx)(lc,{isActive:i,isRenderInSSR:l,awemeInfo:o,abtestData:r,className:a}),(!n||!i)&&(0,c.jsx)(lg,{isActive:i,time:o.video.duration,abtestData:r})]})};var ly=i("442556");let lw=L.F.info.bind(L.F),lx=e=>{let{awemeInfo:t,reportExtraParams:i,onDislikeSuccess:l,onDislikeError:o,initIsDislike:n,toast:r=lw,player:a}=e,[d,u]=(0,v.useState)(null!=n&&n);(0,v.useLayoutEffect)(()=>{void 0!==n&&u(n)},[n]);let s=(0,v.useRef)(),c=(0,eZ.Z)(async function(){var e,n,d,c;let{clickMethod:v,reportExtraParams:f}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{clickMethod:"icon"};if((0,g.Jt)(t)){null==a||a.emit(tV.B.AdDislike,{onAddDislikeSuccess:()=>{null==l||l(),s.current=setTimeout(()=>{u(!0)},2500)}});return}let{statusCode:m,errMsg:p}=await (0,ly.w)(null==t?void 0:t.awemeId),_=(null===(e=x.Le.getConfig(x.gI.WallPaperIds))||void 0===e?void 0:e.includes(null==t?void 0:t.awemeId))?1:0;0===m?(null==r||r("操作成功,将减少此类视频出现"),ed.logInstance.sendLog("dislike",(0,b._)({urlParamList:["previous_page"],enter_from:(0,e_.mo)(),author_id:null==t?void 0:null===(n=t.authorInfo)||void 0===n?void 0:n.uid,group_id:null==t?void 0:t.awemeId,log_pb:null==t?void 0:t.logPb,is_full_screen:(0,ey.r)()?"1":"0",tab_name:(0,eC.zD)()||(0,A.Rs)("tab_name")||"",click_method:v,from_follow_list:(null===(d=x.Le.getConfig(x.gI.FromFollowList))||void 0===d?void 0:d.tag)?"1":"0",aweme_type:null==t?void 0:t.awemeType,is_insert_wallpaper:_,item_duration_ms:(null==t?void 0:null===(c=t.video)||void 0===c?void 0:c.duration)||0},f,i)),null==l||l(),s.current=setTimeout(()=>{u(!0)},2500)):(null==r||r(p),null==o||o(p)),_&&(0,j.qQ)(T.LocalStorageKeys.WallPaper,{disappear:!0})}),f=(0,eZ.Z)(async()=>{let{statusCode:e}=await (0,ly.m)(null==t?void 0:t.awemeId);0===e&&u(!1)});return(0,v.useEffect)(()=>()=>{clearTimeout(s.current)},[]),{dislike:c,revokeDislike:f,isDislike:d}},lI=e=>{let{abtestData:t,scene:i,isModal:l,awemeInfo:o,dislikeIdList:n=new Set,deleteCurrentSwiper:r,videoToast:a,uuid:d,player:u}=e,{dislike:s,revokeDislike:c}=lx({awemeInfo:o,toast:e=>{a(e)},onDislikeSuccess:()=>{null==r||r()},initIsDislike:n.has(o.awemeId),player:u});return{isDislikePanelVisible:!1,dislike:s,revokeDislike:c,isPermanentDislikeBtn:!1,disableShortCut:!1,isAdapterMiniHeightWithDislikeBtn:!1}},lC=new eF.h({prf_slider_modal_video:{eventName:"prf_slider_modal_video",params:{fps:0,duration:0,scene:"",jank:0,jank_duration:0,bjank:0,bjank_duration:0,tab:""}}}),lb=1e3/24*2,lE=1e3/24*3,lS=()=>{var e,t;return(null===(t=performance)||void 0===t?void 0:null===(e=t.now)||void 0===e?void 0:e.call(t))||Date.now()||0},lk=function(){},lT=e=>{let{sidebarHidden:t,chapterSidebarHidden:i,bottomLevelSidebar:l,setBottomLevelSidebar:o,topLevelSidebar:n,setTopLevelSidebar:r}=e;return(0,v.useEffect)(()=>{if(t&&i){o(void 0),r(void 0);return}t||i?(r(void 0),o(t?"chapterSidebar":"sidebar")):r("sidebar"===l?"chapterSidebar":"sidebar")},[t,i]),{isTopLevelSidebar:"sidebar"===n,isTopLevelChapterSidebar:"chapterSidebar"===n,isBottomLevelSidebar:"sidebar"===l,isBottomLevelChapterSidebar:"chapterSidebar"===l}},lL=(0,v.forwardRef)(function(e,t){var i,l,o,n,r,a,d,u,s,f,p,h,w,I,C,E,S,k,T,A,R,P,M,j,F,V,B,O,U,H,W,z,$,K;let{item:Y,playPrevFunc:Q,playNextFunc:J,deleteCurrentSwiper:X,fullScreenTarget:ee,isActive:et,isNext:er,swiper:eT,children:eL,customProps:eA,isLast:eR,handleNextOnLast:eN,slideListInsideFunc:eP,InnerPlayer:eM,className:ej,isShowGuide:eF,isClientMiniWin:eV,style:eO,close:eH,hotDefaultList:eW,mixDefault:eG,seriesDefault:ez,relatedDefault:eZ,currentAwemeInfo:eq,onAwemeInfoChange:e$,clickedCard:eK,moreBoxShowList:eY,getCurrentTime:eQ,modalInnerFeedCard:eJ,modalEnterFrom:eX,defaultCommentShow:e1,startTime:e2,splashAdStatus:e3,changeSplashAdStatus:e6,isSplashTransitionEnd:e8,isFirst:e9,needStaticContainer:tt,searchSideCardProps:ti,onSearchTextClick:tl,searchListType:to,hideSidebarSwitch:tn,searchFrom:tr}=e,{abtestData:ta={},tab:td,userContext:tu,logParams:tc}=eA||{},tv=(0,v.useRef)(0),tf=(0,v.useMemo)(()=>({Feed:[ea.lT.Recommend,ea.lT.Follow,ea.lT.Friend,ea.lT.Topic],Whole:[ea.lT.Recommend,ea.lT.Follow,ea.lT.Friend,ea.lT.Topic,ea.lT.Modal]}),[]),tm=(0,v.useMemo)(()=>(null==ta?void 0:ta.relatedSmooth)===1?tf.Feed.includes(td):(null==ta?void 0:ta.relatedSmooth)===2?ea.lT.Modal===td:(null==ta?void 0:ta.relatedSmooth)===3&&tf.Whole.includes(td),[null==ta?void 0:ta.relatedSmooth,td,tf]),tp=tm?null==ta?void 0:ta.relatedSmooth:0,t_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"inner_player",t=arguments.length>1?arguments[1]:void 0;if(!tp&&tX)return null==eH?void 0:eH(e,t);eB.sendLog("closePlayer",{click_method:e,enter_from:t});let i=e;"click_screen"===e&&(i="click_blank"),ed.logInstance.sendLog("closeVideoCard",{enter_method:i,type:t,enter_from_merge:(0,e_.vM)()}),tK.dispatch("modalAwemeInfo",null),!iS.current&&eg.emit(eg.EVENT.pageFullScreen,{fullScreen:!1,playerId:null==tq?void 0:tq.playerId,oldFullScreen:!0,clickMethod:"inner_player"}),eJ&&setTimeout(()=>{null==eH||eH()})},th=(0,v.useRef)(null),{userInfo:ty,dispatch:tw}=tu||{},{isLogin:tC}=ty||{},{globalIsSideBarShow:tb,setIsSideBarShowFunc:tE,isFullScreen:tS,isCssFullScreen:tk,setTargetVideoRef:tT=()=>{},slideVideoTab:tL,setSlideVideoTab:tR,videoToast:tN=e=>L.F.info(e,th.current),dislikeIdList:tP,globalIsCommentTrayPushGuideShow:tM,globalCommentTrayPushGuideType:tj,setCommentTrayPushGuideTypeFunc:tV,setIsCommentTrayPushGuideShowFunc:tB}=(0,v.useContext)(q.C),[tO,tZ]=(0,v.useState)(!0),[tq,t$]=(0,v.useState)(null),{awemeFeed:tK,metaCtxId:tQ}=tx(),tJ=tK.useValue("modalAwemeInfo"),tX=e.isUpperFeed||!!(tp&&tJ),{pathname:t0}=(0,eo.a)(),t2=(0,v.useRef)(t0),t3=(0,v.useRef)(t0);!(0,eh.Nr)(t0)&&(t3.current=t0);let[t5,t8]=(0,v.useState)(!1),[ie,it]=(0,v.useState)(eu.L.Author),[ii,il]=(0,v.useState)(!1),[ia,id]=(0,v.useState)(),[ic,ig]=(0,v.useState)(),ih=tE||t8,iw=tR?tL:eu.L.AbstractList,ix=tR||it,iS=(0,v.useRef)(!1);(0,v.useEffect)(()=>{if(tq&&et&&tX&&tp){!tq.fullscreen&&eg.emit(eg.EVENT.pageFullScreen,{clickMethod:"inner_feed",fullScreen:!0,playerId:tq.playerId});let e=e=>{eg.emit(eg.EVENT.pageFullScreen,{clickMethod:"inner_feed",fullScreen:!e,playerId:tq.playerId})};return null==tq||tq.on(en.Events.FULLSCREEN_CHANGE,e),()=>{null==tq||tq.off(en.Events.FULLSCREEN_CHANGE,e),eg.emit(eg.EVENT.pageFullScreen,{clickMethod:"inner_feed",fullScreen:!1,playerId:tq.playerId})}}},[tX,tp]);let ik=(0,v.useRef)(!1),iT=(0,v.useRef)(!1),iL=(0,v.useRef)(!1),iA=(0,v.useRef)(null),iR=(0,v.useRef)(null),iN=(0,v.useRef)(null),iP=(0,v.useRef)(null),iM=(0,v.useRef)(null),ij=(0,v.useRef)(),iD=(0,v.useRef)(null),iF=(0,v.useMemo)(()=>"string"==typeof tr&&tr.startsWith("video_abstract"),[tr]),iV=tX?tO:(!(0,g.Jt)(Y)||iw===eu.L.Comment)&&(tE?tb:t5),iB=(0,v.useCallback)(L.F.infoInModalVideo.bind(L.F),[]),iO=tX||td===ea.lT.Modal?iB:tN;(0,v.useEffect)(()=>{if(!tp)return;let e=tK.subscribe("modalAwemeInfo",e=>{let t=document.querySelector('[data-e2e="recommend-guide-mask"]');t&&e&&eg.emit(eg.EVENT.RecommendGuideClose),t=null,tq&&!eJ&&e&&tq.isActive&&tq.paused&&tq.play()});return()=>{e()}},[tp,tq,eJ]);let{changeNextVideo:iU,changePrevVideo:iH,awemeInfo:iW,updateAwemeInfo:iG,prevAwemeInfo:iz,nextAwemeInfo:iZ,isInnerFeed:iq,enterFrom:i$,updateLogParams:iK}=tI({player:tq,originAwemeInfo:tp&&tJ||eq||Y,isActive:et,isLast:eR,toast:iO,modalEnterFrom:eX,handleNextOnLast:eN,handleOuterPlayNext:J,handleOuterPlayPrev:Q,isInnerFeedCondition:tX,scene:td});(0,v.useEffect)(()=>{null==e$||e$(iW)},[iW]),(0,v.useEffect)(()=>{let e=tK.getValue("activeIndex");return tK.subscribe("activeIndex",t=>{tp&&tK.getValue("modalAwemeInfo")&&(t>e?iU():t<e&&iH(),e=t)})},[iU,iH]),(0,v.useEffect)(()=>{if(tJ&&et)return tp&&(tZ(!0),tq&&(tv.current=tq.currentTime,tJ.awemeId===iW.awemeId&&setTimeout(()=>{null==tq||tq.emit("enter_inner_feed")}))),()=>{var e,i,l,o;tp&&(null==tq||tq.emit("exit_inner_feed",iW.awemeId),(null===(o=t.current)||void 0===o?void 0:null===(l=o.getCurrAweme)||void 0===l?void 0:null===(i=l.call(o))||void 0===i?void 0:i.awemeId)===iW.awemeId&&(tv.current=0)),eg.emit(null==eg?void 0:null===(e=eg.EVENT)||void 0===e?void 0:e.quitInnerFeed,!0),tK.dispatch("modalAwemeInfo",null)}},[!tJ,tp]);let iY=(0,v.useMemo)(()=>!(0,Z.p)(iW)||e3===y.QB.Fullscreen||e3===y.QB.Normal,[iW,e3,e8]),{showRelatedTabList:iQ,relatedBlockedByRecommendScore:iJ}=tA({awemeInfo:iW,currentVideoFeedRef:iA,lastVideoFeedAwemeRef:iR,outFeedItem:Y,scene:td,modalEnterFrom:eX,abtestData:ta,isInnerFeed:iq}),{defaultCard:iX,videoTag:i0}=tD({abtestData:ta,isActive:et,awemeInfo:iW,showRelatedTabList:iQ,clickedCard:null!=eK?eK:iw===eu.L.Comment?eu.L.Comment:void 0,useCTR:td===ea.lT.Recommend,scene:td}),i3=(0,v.useMemo)(()=>iF?eu.L.AbstractList:(null==iW?void 0:iW.awemeType)!==_.e.XgVideo||[eu.L.CollectFolder].includes(iX)?iX:eu.L.Comment,[iX,iW,iw,iF]),{stopAutoPlay:i6}=tF({isShow:iV||ii||iT.current,player:tq,isActive:et,awemeInfo:iW,abtestData:ta}),{curTab:i5,curVideoFeed:i4,changeTab:i8,lastVideoFeedAweme:i7}=tH({defaultTab:i3,isActive:et,stopAutoPlay:i6,awemeInfo:iW,abtestData:ta});iA.current=i4,iR.current=i7,tW({originAwemeInfo:Y,awemeInfo:iW}),tG({awemeInfo:iW,curTab:i5,isActive:et,abtestData:ta,isUpperFeed:tX,modalAwemeInfo:tJ});let{handleAuthorVideoChange:i9,handleOtherVideoChange:le}=tz({onChangeAwemeInfo:e=>{tX?iG(e):(null==e?void 0:e.inComingAwemeInfo)&&tK.dispatch("modalAwemeInfo",e.inComingAwemeInfo),(null==e?void 0:e.card)&&i8({tab:e.card})}}),{globalCommentCount:lt,updateGlobalCommentCount:li,fetchComment:ll}=tY({awemeInfo:iW});t1({isModal:tX,awemeInfo:iW,isActive:et,fetchComment:ll,player:tq,showSideCard:iV,commentpreloadAbStatus:null==ta?void 0:ta.commentAiPreloadStatus,adCommentpreloadAbStatus:null==ta?void 0:ta.adCommentAiPreloadStatus,scene:td,abUseSimpleNN:null==ta?void 0:ta.useSimpleNN,abVid:null==ta?void 0:ta.commentAiVid});let{reportParams:lo}=t7({originAwemeInfo:Y,awemeInfo:iW,logParams:tc,curCard:i5,expandCard:iV?i5:"",isSideBarShow:iV,isInnerFeedCondition:tX,searchSideCardProps:ti,modalEnterFrom:eX}),{hasRelatedCardShown:lr}=t9({isActive:et,player:tq,showSideCard:iV});(0,v.useEffect)(()=>{iK({logParams:lo})},[lo]);let la=(0,v.useCallback)(e=>{let t="chapterSidebar"===e;id(t?"sidebar":"chapterSidebar"),ig(t?"chapterSidebar":"sidebar")},[]),ld=(0,v.useCallback)(e=>{var t,i;let{tab:l,clickMethod:o="",awemeInfo:n=iW,isFromUserPersonalPannel:r=!1,preventCloseOnSameTab:a}=e;lf();let d="chapterSidebar"===ic;if(d&&la("sidebar"),l!==eu.L.Comment){if(tX){if(l===i5&&!d)return t_()}else{ix(l),i8({tab:l}),tK.dispatch({modalAwemeInfo:n,nextAwemeInfo:null,prevAwemeInfo:null}),ed.logInstance.sendLog("enterVideoCardTab",{from_group_id:null==n?void 0:n.awemeId,type:l,enter_method:o,enter_from_merge:(0,e_.vM)(),enter_from:null!==(t=null==tc?void 0:tc.enter_from)&&void 0!==t?t:(0,e_.mo)(),tab_name:(null==tc?void 0:tc.tab_name)||(0,eC.zD)(),module_name:null==tc?void 0:tc.module_name});return}}if(iV&&l===i5&&!d){if(a)return;lD(!1,{from:o}),ed.logInstance.sendLog("closeVideoCard",{type:l,enter_method:o,enter_from_merge:(0,e_.vM)()})}else i8({tab:l}),ix(l),lD(!0,{from:o}),ed.logInstance.sendLog("enterVideoCardTab",{from_group_id:null==n?void 0:n.awemeId,type:l,enter_method:o,enter_from_merge:(0,e_.vM)(),enter_from:null!==(i=null==tc?void 0:tc.enter_from)&&void 0!==i?i:(0,e_.mo)(),tab_name:(null==tc?void 0:tc.tab_name)||(0,eC.zD)(),module_name:null==tc?void 0:tc.module_name})},[iV,iW,tX,i5,eH,ta,tk,ic,la]);(0,es.o)(()=>eg.listen(eg.EVENT.OpenRelatedCard,e=>{ld(e)}),[ta]),(0,v.useEffect)(()=>{if(!tX&&et&&eJ){let e;let t="auto";"mix"===eJ?e=eu.L.Mix:"author_card"===eJ?(e=eu.L.Author,eX===ec.a.FollowAuthorModal&&(t="click_follow_head_show")):"series"===eJ?e=eu.L.Series:"collect_folder"===eJ&&(e=eu.L.CollectFolder),e&&setTimeout(()=>{ld({tab:e,clickMethod:t})})}},[tX,eJ,ld,eX]),(0,v.useEffect)(()=>{if(tq&&tJ&&!tp&&et&&!tX){let e=tq.playerId;if(el.ZP.instManager.getActiveId()===e||!tq.paused)return el.ZP.instManager.setActive(e,!1),tq.pause(),()=>{el.ZP.instManager.setActive(e,!0),setTimeout(()=>{tq.play()})}}},[tq,tJ,et,tp,tX]),(0,v.useEffect)(()=>{if(et){let e=iV&&i5===eu.L.Comment;x.Le.setConfig(x.gI.IsCommetTab,e)}},[et,iV,i5]);let{closeAdCard:lu,isShowAdCard:lc,isAdAweme:lv}=io({awemeInfo:iW,userInfo:ty,isActive:et,abtestData:ta,toast:iO,isFirst:e9,isUpperFeed:tX,changeSplashAdStatus:e6}),{closeAiSearchCard:lf,isShowAiSearchCard:lm,word:lp,renderAiSearchSideCard:l_}=ir({awemeInfo:iW,isActive:et,onOpenCard:()=>{lc&&lu(),ly&&lw(),!oi&&lH()},abtestData:ta,toast:iO,isLogin:tC,accountParentEl:(0,ey.r)()&&ee,onLoginSuccess:()=>{null==tw||tw({type:"updateUserInfo"})}});(0,ei.Z)(()=>{lf()},[null==iW?void 0:iW.awemeId]);let{openShopDetailCard:lg,isShowShopDetailSideCard:ly,closeShopDetailCard:lw,isFirstLoad:lx,isAutoOpen:lL}=iu({awemeInfo:iW,isActive:et,onOpenCard:()=>{lc&&lu(),lm&&lf()},isLogin:tC,accountParentEl:(0,ey.r)()&&ee,onLoginSuccess:()=>{null==tw||tw({type:"updateUserInfo"})},onCloseCard:()=>{iL.current=!0},abtestData:ta,toast:iO}),lA=(0,v.useMemo)(()=>(0,ev.o4)(iW),[iW]),lR=lA?(0,ev.ZO)({rawAdData:(0,g.Rx)(iW)}):{},lN=lA?{promotion_id:lR.promotion_id,product_id:lR.product_id,shop_info:{author_id:null==iW?void 0:null===(i=iW.authorInfo)||void 0===i?void 0:i.uid}}:(null==iW?void 0:null===(o=iW.anchorInfo)||void 0===o?void 0:null===(l=o.extra)||void 0===l?void 0:l[0])||{},{sendPrefetch:lP,cancelPrefetch:lM}=(0,ef._t)(()=>{var e;return(0,em.L)({promotionId:null==lN?void 0:lN.promotion_id,originType:638302,secAuthorId:null==iW?void 0:null===(e=iW.authorInfo)||void 0===e?void 0:e.secUid,roomId:"",itemId:null==iW?void 0:iW.awemeId})}),lj=(0,v.useCallback)(e=>{let{clickMethod:t}=e||{};return("hot_key"===t||"click_icon"===t)&&iV&&i5===eu.L.Comment&&(ly||lc||lm)?(!ik.current&&(ik.current=!0,eg.emit(eg.EVENT.videoStopPlayNext,{openSideCard:!0})),lw(),lu(),lf(),!0):(ld({tab:eu.L.Comment,clickMethod:t||"click_icon"}),(!iV||i5!==eu.L.Comment)&&(!!iV&&i5!==eu.L.Comment||!0))},[iV,ld,i5,ly,lc,lm]);(0,ei.Z)(()=>{iT.current=ly},[ly]);let lD=(e,t)=>{let{from:i}=t||{};!ik.current&&e&&"auto"!==i&&(ik.current=!0,eg.emit(eg.EVENT.videoStopPlayNext,{openSideCard:!0})),ik.current&&!e&&(ik.current=!1,eg.emit(eg.EVENT.videoRemoveStopPlayNext,{openSideCard:!0})),tX?(tZ(e),e&&!iV&&(lw(),lf())):(null==ih||ih(e),e&&(lu(),lf(),lw(),tg(ts.COMMENT_BTN_CLICKED)))},{openSpecificTab:lF}=is({showSideCard:iV,isActive:et,originAwemeInfo:Y,showRelatedTabList:iQ,slideVideoTab:iw,abtestData:ta,changeTab:i8,isUpperFeed:tX,defaultLandingTab:(0,v.useMemo)(()=>iF?eu.L.AbstractList:e1?eu.L.Comment:void 0,[e1,iF]),handleShowSidebar:lD,logParams:tc,searchFrom:tr}),{hotData:lV}=iv({awemeInfo:iW}),lB=im({isActive:et,isNext:er,player:tq,showSideCard:iV,abtestData:ta}),{chapterProgress:lO,chapterSliderShow:lU,triggerChapterSliderShow:lH}=eU({player:tq,awemeInfo:iW,abTestData:ta,chapterScrollElRef:iP,topLevelSidebar:ic,activateCard:la,resetClosingShopRef:()=>{iL.current=!1},isActive:et,isInnerFeed:iq}),{onAvatarClick:lW,onRelatedClick:lG,videoInfoTags:lz}=ip({videoTag:i0,scene:td,reportParams:lo,originAwemeInfo:Y,isInnerFeed:iq,player:tq,awemeInfo:iW,canShowMixCard:!0,canShowSeriesCard:!0,canShowRelatedCard:!0,canShowRelatedSearchFeedBar:!0,canShowChapterFeedbar:!0,updateVideoInfo:iG,curCard:i5,toast:iO,showRelatedTabList:iQ,handleAvatarClick:e=>{let{clickMethod:t,awemeInfo:i}=e||{};ld({tab:eu.L.Author,clickMethod:t||"click_icon",awemeInfo:i})},handleMixClick:e=>{let{clickMethod:t,awemeInfo:i}=e||{};ld({tab:eu.L.Mix,clickMethod:null!=t?t:"click_feed_bar",awemeInfo:i})},handleSeriesClick:e=>{let{clickMethod:t,awemeInfo:i}=e||{};ld({tab:eu.L.Series,clickMethod:null!=t?t:"click_feed_bar",awemeInfo:i})},handleHotClick:()=>{ld({tab:eu.L.Hot,clickMethod:"click_feed_bar"})},handleRelatedClick:e=>{ld({tab:eu.L.Related,clickMethod:(null==e?void 0:e.clickMethod)||"click_feed_bar",awemeInfo:null==e?void 0:e.awemeInfo})},isShowSideBar:lc||lm||iV||ly,abtestData:ta,chapterProgress:lO,triggerChapterSliderShow:()=>{lf(),lH()}}),{inImmersive:lZ}=i2({player:tq,isActive:et}),{follow:lq,unFollow:l$}=e0({selfUid:null==ty?void 0:null===(n=ty.info)||void 0===n?void 0:n.uid,actionUid:null==iW?void 0:null===(r=iW.authorInfo)||void 0===r?void 0:r.uid,defaultFollowerStatus:null==iW?void 0:null===(a=iW.authorInfo)||void 0===a?void 0:a.followerStatus,defaultFollowStatus:null==iW?void 0:null===(d=iW.authorInfo)||void 0===d?void 0:d.followStatus,logExtraParams:(0,b._)({author_id:null==iW?void 0:null===(u=iW.authorInfo)||void 0===u?void 0:u.uid,group_id:null==iW?void 0:iW.awemeId,from_group_id:null==Y?void 0:Y.awemeId,music_id:null==iW?void 0:null===(s=iW.music)||void 0===s?void 0:s.mid,compilation_id:null==iW?void 0:null===(f=iW.mixInfo)||void 0===f?void 0:f.mixId,aweme_type:null==iW?void 0:iW.awemeType,is_pure:lZ?"1":"0",to_user_id:null==iW?void 0:null===(p=iW.authorInfo)||void 0===p?void 0:p.uid,item_duration_ms:(null==iW?void 0:null===(h=iW.video)||void 0===h?void 0:h.duration)||0},lo),isLogin:tC,accountParentEl:(0,ey.r)()&&ee,onLoginSuccess:()=>{null==tw||tw({type:"updateUserInfo"})}}),{followStatus:lK}=e5({selfUid:null==ty?void 0:null===(w=ty.info)||void 0===w?void 0:w.uid,actionUid:null==iW?void 0:null===(I=iW.authorInfo)||void 0===I?void 0:I.uid,defaultFollowerStatus:null==iW?void 0:null===(C=iW.authorInfo)||void 0===C?void 0:C.followerStatus,defaultFollowStatus:null==iW?void 0:null===(E=iW.authorInfo)||void 0===E?void 0:E.followStatus});i_({scene:td,isOuter:!tX,isActive:et,player:tq});let{isMiniWin:lY}=iy({scene:td,awemeInfo:iW,scrollElRef:iN,changeNextVideo:iU,changePrevVideo:iH,isUpperFeed:tX,swiper:eT,isActive:et&&!tJ||tX,feedCssFullScreen:tk,player:tq,onFullScreen:e=>{e&&lD(iq,{from:"auto"}),tX&&!tp&&!e&&eg.emit(eg.EVENT.pageFullScreen,{fullScreen:!0,playerId:null==tq?void 0:tq.playerId,clickMethod:"inner_player"})},onCssFullScreen:e=>{e&&lD(iq,{from:"auto"}),tX&&!e&&!(tS||(0,ey.r)())&&t_()},onFullScreenrestore:()=>{lD(iq,{from:"auto"})},onTriggerModalPlayerClose:()=>{tX&&t_("click_button",i5)},onCanPlay:()=>{let e=()=>{tq.seek(e2,"play"),x.Le.setConfig(x.gI.PreviewPlayInfoRecord,{awemeId:"",recordPlayTime:0})};if(tX){let t=null==eQ?void 0:eQ();t&&tq.seek(t,"play"),eJ&&e()}else if(tv.current)tq.seek(tv.current,"play"),tv.current=0;else if(e2)e();else{let{continationInfo:e}=iW;(null==e?void 0:e.playProgress)&&(tq.seek(null==e?void 0:e.playProgress,"play"),delete e.playProgress)}},onPlay:()=>{!tX&&tK.getValue("modalAwemeInfo")&&!tp&&setTimeout(()=>{var e;return null===(e=tq.pause)||void 0===e?void 0:e.call(tq)})},onVideoTitleClick:()=>{var e,t;ld({tab:eu.L.Author,clickMethod:"click_title"}),eB.sendLog("clickAuthorHead",(0,b._)((0,G._)((0,b._)({click_from:"title",urlParamList:["previous_page"],author_id:null==iW?void 0:null===(e=iW.authorInfo)||void 0===e?void 0:e.uid,group_id:null==iW?void 0:iW.awemeId,log_pb:null==iW?void 0:iW.logPb,enter_from:(0,e_.mo)(),is_full_screen:(0,ey.r)()?"1":"0",from_follow_list:(null===(t=x.Le.getConfig(x.gI.FromFollowList))||void 0===t?void 0:t.tag)?"1":"0"},lo),{action:iV?"close":"open"}),(0,ew.t)()))}});iI({scene:td,awemeInfo:iW,isActive:et,isNext:er,isUpperFeed:tX,modalEnterFrom:eX,smoothInner:tm&&iq});let{authorConfig:lQ,commentConfig:lJ}=iC({awemeInfo:iW,customProps:eA,reportParams:lo,fullScreenTarget:ee,tab:i5,showSideCard:iV,isShowRelatedCard:iV,player:tq,scrollElRef:iN,followStatus:lK,handleCommentClick:e=>lj(e),isActive:et,isUpperFeed:tX,globalIsCommentTrayPushGuideShow:tM,globalCommentTrayPushGuideType:tj,setCommentTrayPushGuideTypeFunc:tV,setIsCommentTrayPushGuideShowFunc:tB,onSearchTextClick:tl,scene:td});ib({isActive:et,isUpperFeed:tX,modalAwemeInfo:tJ,showSideCard:iV,isShowAdCard:lc,isShowAiSearchCard:lm,isShowShopDetailSideCard:ly,abtestData:ta,scene:td}),(0,v.useImperativeHandle)(t,()=>({getPlayer:()=>tq,setIsAuthorCardShow:lD,setIsShowRelatedCard:lD,getCurTab:()=>i5,getCurrAweme:()=>iW,player:tq}),[et,i5,tq,iW]);let{onCooperationAvatarClick:lX,isInCooperation:l0,changeIsInCooperation:l1}=iE({curTab:i5,awemeInfo:iW,handleChangeVideo:e=>{iG({inComingAwemeInfo:e})},handleCooperationAvatarClick:e=>{var t;tX?(i8({tab:eu.L.Author}),lD(!0,{from:"auto"}),iG({inComingAwemeInfo:e})):(tK.dispatch({modalAwemeInfo:e,nextAwemeInfo:null,prevAwemeInfo:null}),i8({tab:eu.L.Author})),ed.logInstance.sendLog("enterVideoCardTab",{from_group_id:e.awemeId,type:eu.L.Author,enter_method:"click_co_author_head",enter_from:null!==(t=null==tc?void 0:tc.enter_from)&&void 0!==t?t:(0,e_.mo)(),enter_from_merge:(0,e_.vM)(),tab_name:(null==tc?void 0:tc.tab_name)||(0,eC.zD)(),module_name:null==tc?void 0:tc.module_name})},reportParams:lo,isShowVideoCard:iV});(0,ei.Z)(()=>{!tJ&&et&&(l1(!1),(tS||tk)&&lD(!1,{from:"auto"}))},[null==tJ?void 0:tJ.awemeId]);let{isPermanentDislikeBtn:l2,isDislikePanelVisible:l3,dislike:l6,revokeDislike:l5,disableShortCut:l4,isAdapterMiniHeightWithDislikeBtn:l8}=lI({awemeInfo:iW,scene:td,deleteCurrentSwiper:X,isModal:tX,videoToast:iO,abtestData:ta,dislikeIdList:tP,uuid:null===(S=(0,N.Es)())||void 0===S?void 0:S.user_unique_id,player:tq}),l7=(0,v.useMemo)(()=>"waterFall"===eX&&(null==tJ?void 0:tJ.awemeId)?(0,G._)((0,b._)({},tc),{from_group_id:null==tJ?void 0:tJ.awemeId}):tc,[tc,null==tJ?void 0:tJ.awemeId,eX]),l9=(0,v.useMemo)(()=>{if(!(null==ti?void 0:ti.scene))return{};let{awemeId:e,desc:t}=iW,i={aladdin_words:t,list_item_id:e};return!(null==ti?void 0:ti.removeThirdItemId)&&(i.search_third_item_id=e),i},[null==ti?void 0:ti.scene,iW]),oe=(0,v.useMemo)(()=>{if(null==ti?void 0:ti.toggleButtonText)return null==ti?void 0:ti.toggleButtonText;switch(null==ti?void 0:ti.scene){case"mix":var e,t;if(null==iW?void 0:null===(e=iW.seriesInfo)||void 0===e?void 0:e.seriesId)return(null==iW?void 0:null===(t=iW.seriesInfo)||void 0===t?void 0:t.isSeries2Mix)?"合集":"短剧";return"合集";case"user":return"相关作品";default:return""}},[ti]),ot=!iV||ly||lc||lm||td===ea.lT.Search&&!et,oi=!lU||!et||ly||lc||lm,{isTopLevelSidebar:ol,isTopLevelChapterSidebar:oo,isBottomLevelSidebar:on,isBottomLevelChapterSidebar:or}=lT({sidebarHidden:ot,chapterSidebarHidden:oi,bottomLevelSidebar:ia,setBottomLevelSidebar:id,topLevelSidebar:ic,setTopLevelSidebar:ig}),oa=(0,v.useMemo)(()=>({showSideCard:!ot,curTab:iw,setSideCard:lD,setCurTab:ix}),[ot,iw,lD,ix]),od=(0,G._)((0,b._)({},l9,null==tc?void 0:tc.search_params,null==lo?void 0:lo.search_params),{item_rank:((null===(T=ij.current)||void 0===T?void 0:null===(k=T.getCurIndex)||void 0===k?void 0:k.call(T))||0)+1});(0,v.useEffect)(()=>{(null==eA?void 0:eA.tab)===ea.lT.Search&&(iW.searchLogParams=od)},[od]);let ou=i$&&[eu.t.Mix,eu.t.Series].includes(i4)?"author_":"";!function(e){let{awemeInfo:t,curTab:i}=e,l=(0,v.useRef)(null);(0,v.useEffect)(()=>{t?l.current=function(e){var t;if(!(null===(t=window)||void 0===t?void 0:t.requestAnimationFrame))return lk;let{timeout:i=1e4}=e,l={fps:0,duration:0,scene:(0,t6.yW)(),jank:0,jank_duration:0,bjank:0,bjank_duration:0,tab:e.curTab},o=0,n=lS(),r=n,a=null,d=null;return!function e(){a=requestAnimationFrame(function(){o++;let t=lS(),i=t-r;r=t,i>lb&&(l.jank++,l.jank_duration+=i),i>lE&&(l.bjank++,l.bjank_duration+=i),e()})}(),d=setTimeout(()=>{a&&cancelAnimationFrame(a)},i),function(){a&&cancelAnimationFrame(a),d&&clearTimeout(d);let e=lS()-n;l.fps=Math.min(Math.round(1e3*o/e),60),l.duration=Math.round(e),lC.sendLog("prf_slider_modal_video",l)}}({awemeInfo:t,curTab:i}):l.current=null},[t]),(0,v.useLayoutEffect)(()=>{let e=eg.listen(eg.EVENT.firstFrameReady,()=>{if(l.current){var e;null===(e=l.current)||void 0===e||e.call(l),l.current=null}});return()=>{e()}})}({awemeInfo:tJ,curTab:i5});let os=tX&&et?"slideMode":"sliderVideo",oc=(0,v.useMemo)(()=>({playerScene:td,globalCommentCount:lt,setGlobalCommentCount:li,authorVideoCardClick:i9,modalEnterFrom:eX,player:tq,stopAutoPlay:i6}),[td,lt,li,i9,tq,eX,i6]),ov=!ex._.isRenderOnActive(ta)||et;return et&&(null==iW||null===(A=iW.chapterInfo)||void 0===A||A.status),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(eb.v.Provider,{value:oc,children:(0,c.jsx)(e4.k,{componentName:"Container3",children:(0,c.jsxs)("div",{"data-e2e":et?"feed-active-video":"feed-video","data-e2e-vid":null==iW?void 0:iW.awemeId,id:os,className:m()(eS.playerCommentWrapper,"isDark isDeepDark",`video_${iW.awemeId}`,os,ej,{isMiniWindow:eV,[eS.isMiniWindowActive]:et&&eV,[eS.flex]:!lB,[eS.isFullScreen]:tS,[eS.inOutFeed]:!tX,[eS.miniWidth]:iV,[eS.adapterSeventh]:!ly,[eS.shopCard]:ly,[eS.adapterMiniHeight]:tX,[eS.adapterMiniHeight455]:tX&&td===ea.lT.Recommend,[eS.adapterMiniHeightWithDislikeBtn]:l8,[eS.searchFit]:td===ea.lT.Search,relatedUiAdapter:!(td===ea.lT.Search&&!tX),[eS.transparent]:(0,Z.p)(iW)&&!e8,upperFeedClass:tX,[eS.forFixedLayer]:eX===ec.a.Im&&et}),style:eO,ref:iM,children:[(0,c.jsxs)("div",{className:m()(eS.playerContainer,"playerContainer",eE.z,{[eS.isHavePlayer]:iW,[eS.isSafari]:(0,eI.G6)(),[eS.showSideBar]:ly||lc||lm||iV||lU,[eS.noTransition]:!iV&&!lU||ly||iL.current}),children:[eL,(0,c.jsxs)("div",{className:m()(eS.playerWrap,"slider-video",{isVertical:(null==iW?void 0:null===(R=iW.video)||void 0===R?void 0:R.height)>(null==iW?void 0:null===(P=iW.video)||void 0===P?void 0:P.width)}),ref:e=>{et?!th.current&&!tX&&(th.current=e,tT(th)):th.current=null},children:[td===ea.lT.Modal&&(0,D.DT)()&&!tJ&&(0,c.jsx)("div",{className:eS.electronDrag}),(null==iW?void 0:iW.debugInfo)&&(0,c.jsx)(eD,{req:null==iW?void 0:null===(M=iW.debugInfo)||void 0===M?void 0:M.web_debug_req,video:null==iW?void 0:null===(j=iW.debugInfo)||void 0===j?void 0:j.client_rec_debug_info,size:{height:null==tq?void 0:tq._videoHeight,width:null==tq?void 0:tq._videoWidth},gear:null==iW?void 0:null===(B=iW.video)||void 0===B?void 0:null===(V=B.bitRateList)||void 0===V?void 0:null===(F=V[0])||void 0===F?void 0:F.gearName,showPanelRightside:!0}),(0,c.jsx)(ek,{children:(0,c.jsx)(eM,(0,G._)((0,b._)({},e),{actionFollow:lq,actionUnFollow:l$,isClientMiniWin:eV,userInfo:ty,dispatch:tw,awemeInfo:iW,nextAwemeInfo:iZ,prevAwemeInfo:iz,videoTags:lz,isInnerFeed:iq,playNextFunc:iU,playPrevFunc:iH,deleteCurrentSwiper:X,toggleComment:e=>lj(e),onCooperationAuthorClick:lX,isShowCooperation:!0,onAvatarClick:lW,avatarTipText:tX&&i5===eu.L.Author?"退出作者主页":void 0,logParams:(0,G._)((0,b._)({},lo,iW.logParams),{relation:String(lK),is_click_cover:Number(tX||Y!==iW),enter_from:`${ou}${tX?tU(i4):null==lo?void 0:lo.enter_from}`,search_params:od}),videoToast:iO,abtestData:ta,openSpecificTab:lF,abTestData:ta,isFullScreen:tS,isAuthorCardShow:!1,slideListInsideFunc:eP,sideBarShow:iV,onRelatedClick:iQ.includes(eu.L.Related)||iJ?lG:void 0,isShowRelatedCard:tX,isShowGuide:eF,showPlaySwitch:tk||tS||!1,moreBoxShowList:(0,G._)((0,b._)({},eY),{notInterestingIcon:tX?!iq&&(null==Y?void 0:Y.awemeId)===(null==iW?void 0:iW.awemeId):null===(z=null==eY?void 0:eY.notInterestingIcon)||void 0===z||z,unfollow:!tX||null===($=null==eY?void 0:eY.unfollow)||void 0===$||$,report:!tX||null===(K=null==eY?void 0:eY.report)||void 0===K||K}),shortCutFiltered:(null==Y?void 0:Y.awemeId)!==(null==iW?void 0:iW.awemeId)||tX?[ep.getShortcut().dislike.badgeText]:[],positionBoxClassName:{right:m()(eS.posTransition,iV||lc||lm||ly||lU?null:eS.interactionPos,eS.removeSlideRelatedButton)},isAdShortCut:!iV,isShowAdCard:lc,isShowAiSearchCard:lm,isShowShopSideCard:ly,onShopAnchorClick:()=>{ly?lw():(lg(),lM())},onShopAnchorMouseEnter:()=>{!ly&&lP({reqKey:null==lN?void 0:lN.promotion_id})},onShopAnchorMouseLeave:()=>{!ly&&lM()},defaultIsPageFullScreen:!tS&&!!tX&&!tp||void 0,onDislike:l6,isPermanentDislikeBtn:l2,disableShortCut:l4,isDislike:l3,splashAdStatus:e3,fullScreenTarget:null!=ee?ee:iM.current,horizontalToggleProps:{showHorizontalToggle:!!(null==ti?void 0:ti.scene)&&!(ii||iV||lc||lm||ly),onClick:()=>{var e;il(!0),ed.logInstance.sendLog("enterVideoCardTab",{enter_from:"general_search",enter_from_merge:"general_search",enter_method:"click_card_entrance",type:t4(null==ti?void 0:ti.scene,iW,null==tc?void 0:null===(e=tc.search_params)||void 0===e?void 0:e.token_type)})},buttonText:oe,buttonClassName:"",scene:null==ti?void 0:ti.scene},enableAutoPlayPlugin:!!(null==ti?void 0:ti.scene)||tX,isUpperFeed:tX,sideCardContext:oa,searchListType:to,disableFullScreenSearchBar:!1,chapterProps:{chapterProgress:lO,triggerChapterSliderShow:()=>{lf(),lH()}},children:(0,c.jsx)(te,{onPlayer:t$})}))})]})]}),ov&&(0,c.jsx)("div",{id:"videoSideCard",className:m()(eS.sideBar,eS.sideBarDefaultWidth,"isDark",{[eS.sideBarHidden]:ot,[eS.noTransition]:!iV,[eS.middle]:!lB,[eS.force300pxWidth]:td===ea.lT.Search&&!tX&&!ot,[eS.displayNone]:eV,[eS.sideBarInBottomLayer]:on,[eS.sideBarInUnderLayer]:oo,[eS.sideBarInTopLayer]:ol}),style:{position:or?"absolute":void 0},onWheel:e=>e.stopPropagation(),ref:iN,children:ex._.isHideSiderLoading(ta)?null:!lB&&iV&&(0,c.jsx)(e7,{})}),iY&&(0,c.jsx)(ls,{awemeInfo:iW,elementtiming:"lcp_ele",maskClassName:m()({[eS.maskBackgroundHidden]:(0,Z.p)(iW)&&!e8}),fetchPriority:e9?"auto":void 0,abtestData:ta,priorityServerBackupBg:!1}),l3&&!eV&&(0,c.jsx)(ln,{onRevokeDislike:l5,isActive:et}),tt&&!eV&&(0,c.jsx)(lh,{isActive:et,awemeInfo:iW,player:tq,abtestData:ta})]})})}),tJ&&!tX&&et&&((null==t2?void 0:t2.current)===t0||(null==t2?void 0:t2.current)===(null==t3?void 0:t3.current))&&(0,c.jsx)(i1,(0,G._)((0,b._)({},e,{abtestData:ta,logParams:l7,customProps:(0,G._)((0,b._)({},e.customProps),{logParams:l7}),close:t_,getCurrentTime:()=>tJ.awemeId===Y.awemeId?null==tq?void 0:tq.currentTime:null,clickedCard:l0?eu.L.Author:i5,hotDefaultList:i5===eu.L.Hot?null==iD?void 0:null===(O=iD.current)||void 0===O?void 0:O.getHotDefaultList():null,mixDefault:i5===eu.L.Mix?null==iD?void 0:null===(U=iD.current)||void 0===U?void 0:U.getMixDefaultParam():null,seriesDefault:i5===eu.L.Series?null==iD?void 0:null===(H=iD.current)||void 0===H?void 0:H.getSeriesDefaultParam():null,relatedDefault:i5===eu.L.Related?((e,t,i)=>{if(i&&!e.find(e=>e.awemeId===i.awemeId)){var l;e=e.concat(i);let t=null===(l=i.relatedRecommend)||void 0===l?void 0:l.popoverAwemeInfo;t&&!e.find(e=>e.awemeId===t.awemeId)&&(e=e.concat(t))}return t&&!e.find(e=>e.awemeId===t.awemeId)&&(e=[t,...e]),e})((null==iD?void 0:null===(W=iD.current)||void 0===W?void 0:W.getRelatedDefaultList())||[],iW,tJ):null,currentAwemeInfo:tJ,isActive:!0,isEnterByCssFullScreen:tk,isEnterByFullScreen:tS,changeSplashAdStatus:e6,fullScreenTarget:null!=ee?ee:iM.current}),{isClientMiniWin:eV,hasPlaceholder:!0,relatedSmooth:tp}))]})}),lA=!1,lR=e=>{(0,v.useEffect)(()=>{let e=eg.listen(eg.EVENT.changeVideoSideBar,e=>{let{isShowRelatedCard:t,isShowComment:i,lastStatus:l}=e;(i&&t)===!((null==l?void 0:l.isShow)&&(null==l?void 0:l.tab)===eu.L.Comment)});return()=>{null==e||e()}},[e])};var lN=(0,v.forwardRef)((e,t)=>{let{customProps:i,modalEnterFrom:l}=e,{tab:o}=i||{},n=(0,v.useRef)(null);return(0,v.useImperativeHandle)(t,()=>{var e,t;return{getPlayer:()=>{var e;return null===(e=n.current)||void 0===e?void 0:e.player},setIsAuthorCardShow:null===(e=n.current)||void 0===e?void 0:e.setIsAuthorCardShow,setIsShowRelatedCard:null===(t=n.current)||void 0===t?void 0:t.setIsShowRelatedCard,setTab:e=>{var t,i;null===(i=n.current)||void 0===i||null===(t=i.setTab)||void 0===t||t.call(i,e)},getCurTab:()=>{var e,t;return null===(t=n.current)||void 0===t?void 0:null===(e=t.getCurTab)||void 0===e?void 0:e.call(t)},getCurrAweme:()=>{var e,t;return null===(t=n.current)||void 0===t?void 0:null===(e=t.getCurrAweme)||void 0===e?void 0:e.call(t)}}},[n.current]),lR(!0),(0,c.jsx)(lL,(0,b._)({ref:n},e))});let lP=(0,v.memo)(e=>{let t=(0,v.useContext)(I.C),i=(0,v.useContext)(K.Context),{from:l,videoRef:o,InnerPlayer:n,item:r}=e;return(0,c.jsx)(lN,(0,G._)((0,b._)({},e),{isMultiInstanceScene:!0,ref:o,InnerPlayer:n,slardarInstance:$.oe,customProps:{userContext:i,abtestData:t,logParams:{video_mode:"landscape",enter_from:Q.get(l),tab_name:Q.get(l)},showRelatedCardEntry:!1,showRelatedCardGuide:!1,showTopicAndMusicCard:!1,showMixCard:!1,showMixCardEntry:!1,tab:Q.get(l)}}))}),lM=e=>{let{fullScreenTarget:t}=(0,v.useContext)(q.C),{changeSplashAdStatus:i}=(0,v.useContext)(C.r),{item:l,isActive:o,isFirst:n,isNext:r}=e;(0,z.C)(et.w3.components.mixplayer),(0,v.useLayoutEffect)(()=>{n&&(l.awemeType!==_.e.Normal||!(0,Z.p)(l))&&(null==i||i(y.QB.Normal))},[n,l]),(0,J.I)({isActive:o,awemeInfo:l}),(0,X.u)({isActive:o,awemeInfo:l,index:null==e?void 0:e.index}),(0,ee.J)({index:null==e?void 0:e.index});let a=(0,G._)((0,b._)({},e),{fullScreenTarget:t});return v.createElement(lP,a)},lj=e=>(0,c.jsx)(e4.k,{componentName:"MixPlayer",children:(0,c.jsx)(lM,(0,b._)({},e))}),lD=()=>{let[e,t]=(0,v.useState)(!1);return(0,v.useEffect)(()=>{let e=eg.listen(eg.EVENT.videoPlay,()=>{t(!0)});return()=>{e()}},[]),{isFirstScreenFrame:e}};var lF=JSON.parse('{"v":"5.9.4","fr":30,"ip":0,"op":60,"w":280,"h":280,"nm":"finger_swipe_up_Low","ddd":0,"assets":[{"id":"image_0","w":280,"h":280,"u":"images/","p":"img_0.png","e":0},{"id":"comp_0","nm":"Swipe Hand_Up","fr":30,"layers":[{"ddd":0,"ind":1,"ty":3,"nm":"Null 3","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.2,"y":1},"o":{"x":0.16,"y":0},"t":8,"s":[172,232,0],"e":[346,232,0],"to":[0,0,0],"ti":[0,0,0]},{"t":40}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.2,0.2,0.2],"y":[1,1,1]},"o":{"x":[0.001,0.001,0.001],"y":[0,0,0]},"t":0,"s":[100,100,100],"e":[85,85,100]},{"t":8}],"ix":6,"l":2}},"ao":0,"ip":0,"op":60,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":2,"nm":"Hand-Output.png","cl":"png","parent":1,"refId":"image_0","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.2],"y":[1]},"o":{"x":[0.001],"y":[0]},"t":0,"s":[0],"e":[100]},{"t":8}],"ix":11},"r":{"a":0,"k":32,"ix":10},"p":{"a":0,"k":[-60,-121.765,0],"ix":2,"l":2},"a":{"a":0,"k":[36.666,47.192,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"ip":0,"op":150,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"mask","parent":1,"td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[-204.706,-37.647,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[117.647,117.647,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"rc","d":1,"s":{"a":0,"k":[327.581,123.705],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":0,"ix":4},"nm":"Rectangle Path 1","mn":"ADBE Vector Shape - Rect","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[283.773,-62.8],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Rectangle 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":60,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"line","tt":2,"sr":1,"ks":{"o":{"a":0,"k":60,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[192,139,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[125,-12.5],[125,15],[-125,10],[-125,-7.5]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,1,1,1,0.5,1,1,1,1,1,1,1,0,1,0.5,0.5,1,0],"ix":9}},"s":{"a":0,"k":[125.95,0],"ix":5},"e":{"a":0,"k":[-64,0],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Rectangle 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":60,"st":0,"ct":1,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":3,"nm":"main controller","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":-90,"ix":10},"p":{"a":0,"k":[140,178,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[80,80,100],"ix":6,"l":2}},"ao":0,"ip":0,"op":60,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":3,"nm":"move controller","parent":1,"sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.2,"y":1},"o":{"x":0.16,"y":0},"t":8,"s":[-20,32,0],"e":[154,32,0],"to":[0,0,0],"ti":[0,0,0]},{"t":40}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.2,0.2,0.2],"y":[1,1,1]},"o":{"x":[0.001,0.001,0.001],"y":[0,0,0]},"t":0,"s":[100,100,100],"e":[85,85,100]},{"t":8}],"ix":6,"l":2}},"ao":0,"ip":0,"op":60,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":0,"nm":"Swipe Hand_Up","parent":1,"refId":"comp_0","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":40,"s":[100],"e":[0]},{"t":48}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,0,0],"ix":2,"l":2},"a":{"a":0,"k":[200,200,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"w":400,"h":400,"ip":0,"op":60,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":3,"nm":"wave controller","parent":2,"sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[-63.529,-111.882,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[117.647,117.647,100],"ix":6,"l":2}},"ao":0,"ip":0,"op":90,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":3,"nm":"Null 1","parent":4,"sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,0,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"ip":7,"op":63,"st":7,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"tap circle 1","parent":7,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.2],"y":[1]},"o":{"x":[0.001],"y":[0]},"t":40,"s":[30],"e":[0]},{"t":48}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,0,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[110,110],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"gf","o":{"a":0,"k":100,"ix":10},"r":1,"bm":0,"g":{"p":3,"k":{"a":0,"k":[0,1,1,1,0.5,1,1,1,1,1,1,1,0,1,0.5,0.5,1,0],"ix":9}},"s":{"a":0,"k":[0,-55],"ix":5},"e":{"a":0,"k":[0,55],"ix":6},"t":1,"nm":"Gradient Fill 1","mn":"ADBE Vector Graphic - G-Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":7,"op":63,"st":7,"ct":1,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"tap ring 1","parent":5,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.2],"y":[1]},"o":{"x":[0.001],"y":[0]},"t":40,"s":[50],"e":[0]},{"t":48}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,0,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":1,"k":[{"i":{"x":[0.2,0.2,0.2],"y":[1,1,1]},"o":{"x":[0.001,0.001,0.001],"y":[0,0,0]},"t":7,"s":[0,0,100],"e":[70,70,100]},{"t":17}],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[140,140],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":30,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":7,"op":63,"st":7,"ct":1,"bm":0}],"markers":[]}'),lV=i("99471").default,lB={Recommend:0,0:"Recommend",Follow:1,1:"Follow",Friend:2,2:"Friend",Modal:3,3:"Modal",Topic:4,4:"Topic"},lO={OUTSIDE:"outside",OUTOFCONTAINER:"out-of-container",INSIDE:"inside",OCCUPATION:"occupation",CONTAINERSTART:"container-start",CONTAINEREND:"container-end",WRAPPERSTART:"wrapper-start",WRAPPEREND:"wrapper-end",WRAPPERRIGHT:"wrapper-right"};let lU=30,lH=24,lW=24;var lG={mobileSlideList:"NtiC34zp",border:"SdnjeAGW",xgControlsNew:"j46fgHqJ",xgControlsNewV2:"ECG0ab2X",swipeUpLottieContainer:"oJzlDPN6",show:"LHjXk32D",swipeUpLottie:"Reysct2T",swipeUpLottieDesc:"Tj4G2UkF"};let lz=()=>{let[e,t]=(0,v.useState)(!1);return(0,v.useEffect)(()=>{if(!(0,j.$o)(T.LocalStorageKeys.MobileFirstGuide)){let e=new Image;e.src="https://lf-douyin-pc-web.douyinstatic.com/obj/douyin-pc-web/mobile/images/img_0.png",e.onload=()=>t(!0),e.onerror=()=>t(!1)}},[]),e},lZ=()=>{let[e,t]=(0,v.useState)(!(0,j.$o)(T.LocalStorageKeys.MobileFirstGuide));(0,v.useEffect)(()=>{(0,j.qQ)(T.LocalStorageKeys.MobileFirstGuide,1);let e=setTimeout(()=>{t(!1)},5e3);return()=>clearTimeout(e)},[]);let i=()=>{t(!1)};return(0,c.jsxs)("div",{className:m()(lG.swipeUpLottieContainer,e&&lG.show),slot:lO.INSIDE,onClick:i,onTouchStart:i,children:[(0,c.jsx)(lV,{className:m()(lG.swipeUpLottie),data:lF,loop:!0,autoplay:!0,assetsPath:"//lf-douyin-pc-web.douyinstatic.com/obj/douyin-pc-web/mobile/images/"}),(0,c.jsx)("div",{className:m()(lG.swipeUpLottieDesc),children:"上滑查看更多"})]})};i("932651");var lq=i("8013"),l$={container:"jiUjlYaG",closeButton:"kl_cLIDf",splashAdComponent:"tuFXwzEA",videoInfo:"oIBUPjo0",rightPositionBox:"cIlmx0I2"},lK=i("812468"),lY=i("473228"),lQ=i("687581"),lJ=e=>{let{shouldRender:t=!1,disable:l=!1}=e||{},o=!l,n=(0,v.useMemo)(()=>({}),[o,t]),r=(0,v.useMemo)(()=>({PictureMode:o?function(e){let{fallback:t=(0,c.jsx)(v.Fragment,{}),Component:i=v.Fragment,shouldRender:l=!1,componentName:o,pageName:n}=e;return function(e){let r=(0,v.useCallback)((e,t)=>{var i;lQ.oe.event.error({name:lQ.Mo.LazyErrorBoundary,report:{message:e.message,stack:null!==(i=e.stack)&&void 0!==i?i:"",componentStack:t.toString(),componentName:o,pageName:n}})},[]);return(0,c.jsx)(ek,{fallback:t,children:l?(0,c.jsx)(lY.SV,{fallback:(0,c.jsx)(v.Fragment,{}),onError:r,Slardar:lQ.oe.getSlardarInstance(),children:(0,c.jsx)(v.Suspense,{fallback:t,children:(0,c.jsx)(i,(0,b._)({},e))})}):t})}}({Component:(0,v.lazy)(()=>Promise.all([i.e("52170"),i.e("85623")]).then(i.bind(i,812468)).then(e=>({default:e.PictureMode}))),shouldRender:!0,componentName:"PictureMode",pageName:"recommend"}):lK.PictureMode}),[o]);return(0,b._)({},n,r)},lX=i("283791"),l0=i.n(lX),l1=i("795653"),l2="ZVm2NSUC",l3=i("486856"),l6=i("428658");let l5=!1;if(!l5){l5=!0;let e=0;try{e=(null===(d=window)||void 0===d?void 0:d.MediaSource)&&(null===(s=window)||void 0===s?void 0:null===(u=s.MediaSource)||void 0===u?void 0:u.isTypeSupported)?1:0}catch(e){}if((0,D.DT)())ed.logInstance.sendLog("hardParseSupported",{is_supported_hevc1:(0,l6._u)()?1:0,is_supported_264:(0,l6.b4)()?1:0,is_enable_mse:e});else try{er().probeConfigSupported({type:"file",video:{contentType:'video/mp4;codecs="hev1.1.6.L120.90"',width:1920,height:1080,bitrate:2e6,framerate:30}}).then(t=>{let i=(null==t?void 0:t.powerEfficient)?1:0;(0,j.qQ)(T.LocalStorageKeys.PowerEfficient,i),ed.logInstance.sendLog("hardParseSupported",{is_supported_hevc1:er().isHevcSupported()?1:0,powerEfficient:i,smooth:(null==t?void 0:t.smooth)?1:0,supported:(null==t?void 0:t.supported)?1:0,is_enable_mse:e})})}catch(e){}}var l4={PlayerCreated:"PlayerCreated",PlayerBeforeCreate:"PlayerBeforeCreate"};i("849280");var l8=i("215580");let l7=new class e{getReusePlayer(e,t,i){var l,o,n,r;let{scene:a,reuseId:d,autoCreate:u}=e||{},s=null==t?void 0:t.awemeInfo;if(!a||!d||!(null==s?void 0:s.awemeId)||d!==(null==s?void 0:s.awemeId)||(0,l8.GP)(s))return null;let c=null===(o=this.reusePlayers)||void 0===o?void 0:null===(l=o[a])||void 0===l?void 0:l[d];if(c)return null===(r=this.playerReuseable)||void 0===r||null===(n=r[a])||void 0===n||delete n[d],i.firstChild?i.insertBefore(c.root,i.firstChild):i.appendChild(null==c?void 0:c.root),c;if(u){let e=document.createElement("div");i.appendChild(e),c=new(er())((0,b._)({el:e,width:"100%",height:"100%",closeFocusVideoFocus:!0},t)),!this.reusePlayers[a]&&(this.reusePlayers[a]={}),this.reusePlayers[a][d]=c}return c}setPlayerReuseAble(e,t){var i,l,o;(null===(l=this.reusePlayers)||void 0===l?void 0:null===(i=l[e])||void 0===i?void 0:i[t])&&(!(null===(o=this.playerReuseable)||void 0===o?void 0:o[e])&&(this.playerReuseable[e]={}),this.playerReuseable[e][t]=!0)}checkPlayerReuseAble(e,t){var i,l;return(null===(l=this.playerReuseable)||void 0===l?void 0:null===(i=l[e])||void 0===i?void 0:i[t])||!1}checkIsReusePlayer(e,t,i){var l,o;let n=null===this||void 0===this?void 0:null===(o=this.reusePlayers)||void 0===o?void 0:null===(l=o[e])||void 0===l?void 0:l[t];return!!(i&&n&&(null==i?void 0:i.playerId)===(null==n?void 0:n.playerId))}recyclePlayer(e,t){if(!this.checkPlayerReuseAble(e,t)){var i,l,o,n,r,a;null===(n=this.reusePlayers)||void 0===n||null===(o=n[e])||void 0===o||null===(l=o[t])||void 0===l||null===(i=l.destroy)||void 0===i||i.call(l),null===(a=this.reusePlayers)||void 0===a||null===(r=a[e])||void 0===r||delete r[t]}}constructor(){(0,e2._)(this,"reusePlayers",{}),(0,e2._)(this,"playerReuseable",{})}},l9=(0,v.forwardRef)(function(e,t){let{isPrev:i,isActive:l,isNext:o,className:n,style:r,children:a,xgplayerConfig:d,isInitPlayer:u,onReady:s,onClick:f,slardarInstance:p,id:g,playerDOMRef:h,awemeInfo:y,reuseConfig:w={}}=e,[x,I]=(0,v.useState)(null),C=h||(0,v.useRef)(null),E=(0,v.useRef)();!E.current&&(E.current=new(l0())),(0,v.useEffect)(()=>{if(u){var e,t;let i;let l=C.current;(null===(e=(0,id.bE)("new_player"))||void 0===e?void 0:e.length)<1&&(0,id.B1)({tag:"new_player"});let o=null==d?void 0:d.awemeInfo;(null==o?void 0:o.awemeType)===_.e.Note&&Object.assign(d,{startTime:Math.max(d.startTime||0,(null==o?void 0:null===(t=o.imageAlbumMusicInfo)||void 0===t?void 0:t.beginTime)/1e3||0)}),(0,l1.O)()&&Object.assign(d,{domEventType:"compatible"}),E.current.emit(l4.PlayerBeforeCreate,i);let n=l7.getReusePlayer(w,d,l),{scene:r,reuseId:a}=w||{};i=n?n:new(er())((0,b._)({el:l,width:"100%",height:"100%",closeFocusVideoFocus:!0},d)),E.current.emit(l4.PlayerCreated,i),i.dyLogStat=i.dyLogStat||{},I(i);let u=()=>{null==s||s(i)};return null==i||i.on(en.Events.READY,u),()=>{var e;null==i||i.off(en.Events.READY,u),null==i||i.emit(tV.B.BeforeDestroy),I(null),n?l7.recyclePlayer(r,a):(null==i||null===(e=i.destroy)||void 0===e||e.call(i),i.dyLogStat=null)}}},[u]),(0,v.useImperativeHandle)(t,()=>({getPlayer:()=>x,player:x,getPlayerRoot:()=>C.current,root:C.current}),[x]);let S=(0,v.useMemo)(()=>({player:x,slardarInstance:p,contextEvent:E.current}),[x]);return(0,c.jsx)("div",{onClick:f,className:m()(l2,"basePlayerContainer",n),style:r,id:g,ref:C,children:(0,c.jsx)(l3.E.Provider,{value:S,children:a})})}),oe=e=>{if("undefined"==typeof location)return 0;let t=(x.Le.getConfig(x.gI.PlayRecord)||[]).filter(t=>t.awemeId===e&&t.scene===location.pathname&&t.recordTime+864e5>Date.now());return t.length>0?t[0].time:0};var ot={videoInteractionWrapper:"MzxpSUxn",mobileAvatar:"TSVESLmN"},oi=new eF.h({clickLike:{eventName:"click_like",params:{enter_from:"",enter_from_merge:"",group_id:""}},clickCommentButton:{eventName:"click_comment_icon",params:{enter_from:"",enter_from_merge:"",group_id:""}},clickFollow:{eventName:"click_follow",params:{enter_from:"",enter_from_merge:"",group_id:""}},clickAuthorHead:{eventName:"click_author_head",params:{enter_from:"",enter_from_merge:"",group_id:""}},clickFavoriteVideo:{eventName:"click_favorite_video",params:{enter_from:"",enter_from_merge:"",group_id:""}},clickCancelFavoriteVideo:{eventName:"click_cancel_favorite_video",params:{enter_from:"",enter_from_merge:"",group_id:""}},openDouyinPanelShow:{eventName:"open_douyin_panel_show",params:{}}}),ol=i("639362"),oo={digg:"imMPw7hh",lottieWraper:"sKyVv5ud",diggSvg:"kpiBIxER",isDigg:"k475RoLI",diggIcon:"tHYNfvJ1",count:"uZmG0Ji9",lessFontWeight:"eHXLozMs",animation4:"r69mINJP",ableMiniType:"Ce5JfRQg",comment:"Zz7MR5Ei",iconWrap:"GbYkABrv",commentIcon:"rYoFfmw4",collect:"CbNpVomf",collectSvg:"SMHDi9kF",active:"NqZoNH0V",goPC:"sHbFh1EB",appGuideCt:"GCoYUbHp",appLogo:"rSkHEr8U",appGuideText:"h9J1izJY",title:"hG24sO3z",subTitle:"fdeZExXk",appGuideBtn:"_4gU7kiuw",pcGuideCt:"SBPKAKRx",pcLogo:"Gkjev5wD",pcGuideText:"FkPAyc9U",pcGuideImgCt:"C_pZhNMi",pcGuideImg:"Rbzizcza"};let on=()=>{(0,ol.ZP)({link:"https://z.douyin.com/JREXg",scheme:"snssdk1128://",schemeWaitTime:1500,debug:!0})},or=()=>(0,c.jsxs)("div",{className:oo.goPC,children:[(0,c.jsxs)("div",{className:oo.appGuideCt,children:[(0,c.jsx)("div",{className:oo.appLogo}),(0,c.jsxs)("div",{className:oo.appGuideText,children:[(0,c.jsx)("span",{className:oo.title,children:"抖音App"}),(0,c.jsx)("span",{className:oo.subTitle,children:"记录美好生活"})]}),(0,c.jsx)(iP.Button,{theme:"solid",onClick:on,className:oo.appGuideBtn,children:"打开"})]}),(0,c.jsxs)("div",{className:oo.pcGuideCt,children:[(0,c.jsx)("div",{className:oo.pcLogo}),(0,c.jsxs)("div",{className:oo.pcGuideText,children:[(0,c.jsx)("span",{className:oo.title,children:"电脑访问douyin.com"}),(0,c.jsx)("span",{className:oo.subTitle,children:"大屏观看更清晰"})]})]}),(0,c.jsx)("div",{className:oo.pcGuideImgCt,children:(0,c.jsx)("div",{className:oo.pcGuideImg})})]});var oa=i("604785"),od=i("960056");let ou=e=>{let{count:t,displayWord:i}=e;return 0===Number(t)?i:(0,t5.qe)(Number(t))},os=e=>{var t,i,l;let{awemeId:o,defaultCount:n,selfUid:r,defaultDiggStatus:a}=e,d=null===(t=x.Le.getConfig(x.gI.DiggStatusCache))||void 0===t?void 0:t[o],[u,s]=(0,v.useState)(null!==(i=null==d?void 0:d.count)&&void 0!==i?i:n),[c,f]=(0,v.useState)(null!==(l=null==d?void 0:d.diggStatus)&&void 0!==l?l:a);return(0,v.useEffect)(()=>{var e,t;s(null!==(e=null==d?void 0:d.count)&&void 0!==e?e:n),f(null!==(t=null==d?void 0:d.diggStatus)&&void 0!==t?t:a)},[a,n,o]),(0,v.useEffect)(()=>{let e=e3.addCb(e=>{let{selfUid:t,awemeId:i,action:l}=e,d=t===r,u=void 0===t||void 0===r;if((d||u)&&i===o&&("digg"===l||"unDigg"===l)){var c,v,m;let e=null===(c=x.Le.getConfig(x.gI.DiggStatusCache))||void 0===c?void 0:c[o];s(null!==(v=null==e?void 0:e.count)&&void 0!==v?v:n),f(null!==(m=null==e?void 0:e.diggStatus)&&void 0!==m?m:a)}});return()=>{e()}},[r,o,n,a]),{count:Math.max(u,0),diggStatus:c}};i("362051");var oc=i("775619"),ov=i("921035");let of=e=>{let{errMsg:t,statusCode:i}=e;if(i!==w.ERROR_CODE.ERROR_USER_UNLOGIN)L.F.info(null!=t?t:e1.Qr.FollowFail)},om=()=>(!x.Le.getConfig(x.gI.DiggStatusCache)&&x.Le.setConfig(x.gI.DiggStatusCache,{}),x.Le.getConfig(x.gI.DiggStatusCache)),op=e=>{let{awemeId:t,diggStatus:i,count:l}=e,o=ez()(om());o[t]={diggStatus:i,count:l,lastDiggTime:new Date().getTime()},x.Le.setConfig(x.gI.DiggStatusCache,o)},o_=e=>{let{defaultDiggStatus:t,selfUid:i,awemeInfo:l,isMobileOversea:o,fail:n=of,success:r,complete:a,isLogin:d,onLoginSuccess:u,accountParentEl:s,reportExtraParams:c,loginPanelTarget:f,otherLoginMethod:m,scene:p,teaEvtParams:h={}}=e,y=(0,v.useRef)(!1),I=(0,v.useRef)(0),C=(0,v.useCallback)(async e=>{let{action:t,clickMethod:o}=e,d=null==l?void 0:l.awemeId,u="",s=0;try{let{statusCode:e,errMsg:a,logPb:S}=await (0,oc.s)(d,"digg"===t?1:0,l.awemeType===_.e.XgVideo?1:0);if(u=JSON.stringify(S),s=e,e)null==n||n({logPb:u,errMsg:a,statusCode:e,action:t});else{var v,f,m,p,h,y,w,I,C,E;if("digg"===t){if(ed.logInstance.sendLog("like",(0,G._)((0,b._)({urlParamList:["previous_page"],author_id:null==l?void 0:null===(f=l.authorInfo)||void 0===f?void 0:f.uid,group_id:null==l?void 0:l.awemeId,log_pb:u,enter_from:(0,e_.mo)(),tab_name:(0,eC.zD)()||(0,A.Rs)("tab_name")||"",is_full_screen:(0,ey.r)()?"1":"0",is_full_webscreen:tB.s.getIsPageFullscreen()?"1":"0",click_method:o||"icon",from_follow_list:(null===(m=x.Le.getConfig(x.gI.FromFollowList))||void 0===m?void 0:m.tag)?"1":"0",trending_topic:null==l?void 0:null===(p=l.hotList)||void 0===p?void 0:p.sentence,first_tag_name:null==l?void 0:null===(h=l.hotList)||void 0===h?void 0:h.header,top:null==l?void 0:null===(y=l.hotList)||void 0===y?void 0:y.rank,aweme_type:`${null==l?void 0:l.awemeType}`,item_duration_ms:(null==l?void 0:null===(w=l.video)||void 0===w?void 0:w.duration)||0},c),{clarity:(null===(I=x.Le.getConfig(x.gI.Clarity))||void 0===I?void 0:I.logValue)||"",from_push:P.Q.getItem({sKey:T.CookieKeys.FromClientPush})?1:0})),(0,g.Jt)(l)){let e=(0,g.Rx)(l);(0,ie.E)("like",{tag:(0,ii.f)(),value:e.creative_id,log_extra:e.log_extra})}}else if(ed.logInstance.sendLog("cancelLike",(0,b._)({urlParamList:["previous_page"],author_id:null==l?void 0:null===(C=l.authorInfo)||void 0===C?void 0:C.uid,group_id:null==l?void 0:l.awemeId,log_pb:u,enter_from:(0,e_.mo)(),tab_name:(0,eC.zD)()||(0,A.Rs)("tab_name")||"",is_full_screen:(0,ey.r)()?"1":"0",aweme_type:`${null==l?void 0:l.awemeType}`,item_duration_ms:(null==l?void 0:null===(E=l.video)||void 0===E?void 0:E.duration)||0},c)),(0,g.Jt)(l)){let e=(0,g.Rx)(l);(0,ie.E)("like_cancel",{tag:(0,ii.f)(),value:e.creative_id,log_extra:e.log_extra})}let e="digg"===t?e1.gZ.Digged:e1.gZ.UnDigg,n=(null==l?void 0:null===(v=l.stats)||void 0===v?void 0:v.diggCount)-Number(l.userDigged)+Number(e);op({awemeId:d,diggStatus:e,count:n}),eg.emit(eg.EVENT.syncInteractionStatus,{fromUserId:i,awemeId:l.awemeId,action:t}),null==r||r({logPb:u,action:t,diggStatus:e})}}catch(e){null==n||n({logPb:u,action:t})}return null==a||a({logPb:u,action:t}),{statusCode:s}},[l,r,n,a,c,i]),E=(0,v.useCallback)(async e=>{var t,i;let{clickMethod:l,noLoginCb:o}=e||{};(0,eY.ZP)({success:async()=>{y.current=!0,await (null==u?void 0:u());let{statusCode:e}=await C({action:"digg",clickMethod:l})||{};y.current=!1,I.current=e,I.current===w.ERROR_CODE.ERROR_USER_UNLOGIN&&(null==o||o())},headerText:"登录后即可点赞",enterMethod:"digg",next:`https://${null===(i=window)||void 0===i?void 0:null===(t=i.location)||void 0===t?void 0:t.host}`,teaEvtParams:h},s)},[u,s,C,f,p,h]),S=(0,v.useCallback)(async e=>{var t,i,n,r;let{clickMethod:a}=e||{};if(ed.logInstance.sendLog("clickLike",(0,b._)({urlParamList:["previous_page"],author_id:null==l?void 0:null===(t=l.authorInfo)||void 0===t?void 0:t.uid,group_id:null==l?void 0:l.awemeId,enter_from:(0,e_.mo)(),tab_name:(0,eC.zD)()||(0,A.Rs)("tab_name")||"",is_full_screen:(0,ey.r)()?"1":"0",click_method:a||"icon",from_follow_list:(null===(i=x.Le.getConfig(x.gI.FromFollowList))||void 0===i?void 0:i.tag)?"1":"0"},c)),!y.current)d?(y.current=!0,await C({action:"digg",clickMethod:a}),y.current=!1):o?(0,ov.Z)({success:async()=>{window.location.reload()},enterMethod:"digg",next:`https://${null===(r=window)||void 0===r?void 0:null===(n=r.location)||void 0===n?void 0:n.host}`,headerText:"登录后即可点赞"}):m?m():E({clickMethod:a,noLoginCb:()=>{setTimeout(()=>{E({clickMethod:a})},1e3)}})},[l,d,s,u,i,C,c,E,t,m]),k=(0,v.useCallback)(async e=>{let{clickMethod:t}=e||{};if(d){if(y.current)return;y.current=!0,await C({action:"unDigg",clickMethod:t}),y.current=!1}else{var i,l;(0,eY.ZP)({success:async()=>{await (null==u?void 0:u()),await C({action:"unDigg",clickMethod:t})},headerText:"登录后即可点赞喜欢的内容",enterMethod:"digg",next:`https://${null===(l=window)||void 0===l?void 0:null===(i=l.location)||void 0===i?void 0:i.host}`},s)}},[l,i,C,p]);return{digg:S,unDigg:k,hoverDigg:(0,v.useCallback)(()=>{ed.logInstance.sendLog("hover_like_icon",{enter_from:(0,e_.mo)()})},[])}};var og=i("554469");let oh=e=>{var t,i,l;let{awemeInfo:o,loginUserInfo:n,isLogin:r,abtestData:a,fullScreenTarget:d,isMobileOversea:u,reportExtraParams:s,loginPanelTarget:f,recordPreferVideoSwitch:p,loginDispatch:_,onDiggSuccessCb:g}=e||{},h=(0,e9.n)(),y=(0,v.useRef)(!1),{count:w,diggStatus:I}=os({selfUid:null==n?void 0:null===(t=n.info)||void 0===t?void 0:t.uid,awemeId:null==o?void 0:o.awemeId,defaultCount:null==o?void 0:null===(i=o.stats)||void 0===i?void 0:i.diggCount,defaultDiggStatus:(null==o?void 0:o.userDigged)?e1.gZ.Digged:e1.gZ.UnDigg}),{digg:C,unDigg:b}=o_({selfUid:null==n?void 0:null===(l=n.info)||void 0===l?void 0:l.uid,isLogin:r,awemeInfo:o,isMobileOversea:u,onLoginSuccess:async()=>{if(await (null==_?void 0:_({type:"updateUserInfo"})),"video_detail"===(0,e_.vM)()){var e,t;await eQ({secUid:null==o?void 0:null===(e=o.authorInfo)||void 0===e?void 0:e.secUid,uid:null==o?void 0:null===(t=o.authorInfo)||void 0===t?void 0:t.uid})}},reportExtraParams:s,accountParentEl:(0,ey.r)()&&d,defaultDiggStatus:(null==o?void 0:o.userDigged)?e1.gZ.Digged:e1.gZ.UnDigg,success:g,loginPanelTarget:f,scene:tB.s.getPlayerScene(null==h?void 0:h.playerId),teaEvtParams:{is_small_window:0}}),E=(0,v.useCallback)(e=>{if(y.current=!0,p){var t;let e=x.Le.getConfig(x.gI.AwemePcRecRawData)||{videoPrefer:{fsn:[],like:[],halfMin:[],min:[]}},i=e.videoPrefer.like;i.filter((e,t)=>t%2==0).includes(null==o?void 0:o.groupId)||i.push(null==o?void 0:o.groupId,null==o?void 0:null===(t=o.authorInfo)||void 0===t?void 0:t.uid),x.Le.setConfig(x.gI.AwemePcRecRawData,e)}I===e1.gZ.Digged?b({clickMethod:e}):C({clickMethod:e}),h.emit(en.Events.USER_ACTION,{action:"digg",status:I===e1.gZ.Digged?"close":"open"}),(0,oa.VY)({info:{[og.BW.Favorite]:I!==e1.gZ.Digged},awemeId:null==o?void 0:o.awemeId,abData:null==a?void 0:a.discoverRelatedRecommend})},[I,C,b,p]);return(0,c.jsxs)("div",{className:m()(oo.digg,oo.animation4,oo.ableMiniType),onClick:()=>{null==E||E()},"data-e2e-state":"video-player-no-digged","data-e2e":"video-player-digg",children:[(0,c.jsx)("div",{className:oo.lottieWraper,children:(0,c.jsx)(iB.z,{svg:(0,c.jsx)(od.Z,{}),className:m()(oo.diggSvg,{[oo.isDigg]:I})})}),(0,c.jsx)("div",{className:m()(oo.count,oo.diggIcon,oo.lessFontWeight),children:ou({count:w,displayWord:"赞"})})]})};var oy=i("569982");let ow=e=>{let{count:t,className:i,textClassName:l,ableMiniType:o,onComment:n,awemeInfo:r}=e,a=(0,v.useCallback)(()=>{null==n||n(),oi.sendLog("clickCommentButton",{enter_from_merge:(0,t6.yW)(),enter_from:(0,t6.yW)(),group_id:null==r?void 0:r.awemeId})},[n,r]);return(0,c.jsxs)("div",{className:m()(oo.comment,i,{[oo.ableMiniType]:o,[oo.animation4]:!0}),"data-e2e":"feed-comment-icon",onClick:()=>a(),children:[(0,c.jsx)("div",{className:oo.iconWrap,children:(0,c.jsx)(iB.z,{svg:(0,c.jsx)(oy.Z,{}),className:oo.commentIcon})}),!!t&&(0,c.jsx)("div",{className:m()(oo.count,l,oo.lessFontWeight),children:t})]})};var ox=i("991798"),oI=i("78209"),oC=i("853344");let ob=e=>{let{errMsg:t,statusCode:i}=e;if(i!==w.ERROR_CODE.ERROR_USER_UNLOGIN)L.F.info(null!=t?t:e1.Qr.FollowFail)},oE=()=>(!x.Le.getConfig(x.gI.CollectStatusCache)&&x.Le.setConfig(x.gI.CollectStatusCache,{}),x.Le.getConfig(x.gI.CollectStatusCache)),oS=e=>{let{awemeId:t,collectStatus:i,count:l}=e,o=ez()(oE());o[t]={collectStatus:i,count:l},x.Le.setConfig(x.gI.CollectStatusCache,o)},ok=e=>{let{selfUid:t,awemeInfo:i,fail:l=ob,success:o,complete:n,isLogin:r,onLoginSuccess:a,accountParentEl:d,reportExtraParams:u,loginPanelTarget:s,otherLoginMethod:c,scene:f,teaEvtParams:m={},isMobileOversea:p}=e,g=(0,v.useRef)(!1),h=(0,v.useRef)(0),y=(0,v.useCallback)(async e=>{let{action:r,clickMethod:a,nextFunc:d,logParams:s}=e,c=null==i?void 0:i.awemeId,v="",f=0;try{var m,p,g,h,y,w,I;let{statusCode:e,logPb:n,statusMsg:C}=await (0,oI.KM)({awemeId:c,collectAction:"collect"===r?1:0,awemeType:i.awemeType});if(v=JSON.stringify(n),f=e,e)ed.logInstance.sendLog("favoriteVideoFailed",(0,b._)({click_from:null!=a?a:"icon",err_code:e,urlParamList:["previous_page"],author_id:null==i?void 0:null===(m=i.authorInfo)||void 0===m?void 0:m.uid,group_id:null==i?void 0:i.awemeId,log_pb:v,enter_from:(0,e_.mo)(),is_full_screen:(0,ey.r)()?"1":"0",aweme_type:`${null==i?void 0:i.awemeType}`},u,s)),null==l||l({logPb:v,errMsg:C,statusCode:e,action:r});else{"collect"===r?ed.logInstance.sendLog("favoriteVideo",(0,b._)({click_from:"icon",urlParamList:["previous_page","enter_method"],author_id:null==i?void 0:null===(g=i.authorInfo)||void 0===g?void 0:g.uid,group_id:null==i?void 0:i.awemeId,log_pb:v,enter_from:(0,e_.mo)(),is_full_screen:(0,ey.r)()?"1":"0",is_full_webscreen:tB.s.getIsPageFullscreen()?"1":"0",click_method:a,from_xigua:(null==i?void 0:i.awemeType)===_.e.XgVideo?1:0,clarity:(null===(h=x.Le.getConfig(x.gI.Clarity))||void 0===h?void 0:h.logValue)||"",tab_name:(0,eC.zD)()||(0,A.Rs)("tab_name")||"",item_duration_ms:(null==i?void 0:null===(y=i.video)||void 0===y?void 0:y.duration)||0,is_from_aweme_search_engine:(0,oC.V)()?1:0},u,s)):ed.logInstance.sendLog("cancelFavoriteVideo",(0,b._)({click_from:null!=a?a:"icon",urlParamList:["previous_page"],author_id:null==i?void 0:null===(w=i.authorInfo)||void 0===w?void 0:w.uid,group_id:null==i?void 0:i.awemeId,log_pb:v,enter_from:(0,e_.mo)(),is_full_screen:(0,ey.r)()?"1":"0",tab_name:(0,eC.zD)()||(0,A.Rs)("tab_name")||"",item_duration_ms:(null==i?void 0:null===(I=i.video)||void 0===I?void 0:I.duration)||0},u,s));let e=await (null==d?void 0:d()),l="collect"===r?e1.c.Collected:e1.c.Uncollected,n=(null==i?void 0:null===(p=i.stats)||void 0===p?void 0:p.collectCount)-Number(i.userCollected)+Number(l);oS({awemeId:c,collectStatus:l,count:n}),eg.emit(eg.EVENT.syncInteractionStatus,{fromUserId:t,awemeId:i.awemeId,action:r}),null==o||o({logPb:v,action:r,collectStatus:l,successMsg:null==e?void 0:e.successMsg})}}catch(e){null==l||l({logPb:v,action:r})}return null==n||n({logPb:v,action:r}),{statusCode:f}},[i,o,l,n,u,t]),I=(0,v.useCallback)(async e=>{var t,i;let{clickMethod:l,noLoginCb:o,nextFunc:n,logParams:r}=e||{};(0,eY.ZP)({success:async()=>{g.current=!0,await (null==a?void 0:a());let{statusCode:e}=await y({action:"collect",clickMethod:l,nextFunc:n,logParams:r})||{};g.current=!1,h.current=e,h.current===w.ERROR_CODE.ERROR_USER_UNLOGIN&&(null==o||o())},headerText:"登录后即可收藏",enterMethod:"favorite_video",next:`https://${null===(i=window)||void 0===i?void 0:null===(t=i.location)||void 0===t?void 0:t.host}`,teaEvtParams:m},d)},[a,d,y,s,f,m]),C=(0,v.useCallback)(async e=>{let{clickMethod:t,nextFunc:i,logParams:l}=e||{};if(!g.current)if(r)g.current=!0,await y({action:"collect",clickMethod:t,nextFunc:i,logParams:l}),g.current=!1;else if(p){var o,n;(0,ov.Z)({success:async()=>{window.location.reload()},enterMethod:"favorite_video",next:`https://${null===(n=window)||void 0===n?void 0:null===(o=n.location)||void 0===o?void 0:o.host}`,headerText:"登录后即可收藏"})}else c?c():I({clickMethod:t,logParams:l,noLoginCb:()=>{setTimeout(()=>{I({clickMethod:t,nextFunc:i})},1e3)}})},[i,r,d,a,t,y,u,I]);return{collect:C,unCollect:(0,v.useCallback)(async e=>{let{clickMethod:t,nextFunc:i,logParams:l}=e||{};if(!g.current)if(r)g.current=!0,await y({action:"unCollect",clickMethod:t,nextFunc:i,logParams:l}),g.current=!1;else{var o,n;(0,eY.ZP)({success:async()=>{await (null==a?void 0:a()),await y({action:"unCollect",clickMethod:t,nextFunc:i,logParams:l})},headerText:"登录后即可收藏",enterMethod:"favorite_video",next:`https://${null===(n=window)||void 0===n?void 0:null===(o=n.location)||void 0===o?void 0:o.host}`},d)}},[i,t,y,f])}},oT=e=>{var t,i,l,o;let{awemeId:n,defaultCount:r,selfUid:a,defaultCollectStatus:d}=e,u=x.Le.getConfig(x.gI.CollectStatusCache),[s,c]=(0,v.useState)(null!==(l=null==u?void 0:null===(t=u[n])||void 0===t?void 0:t.count)&&void 0!==l?l:r),[f,m]=(0,v.useState)(null!==(o=null==u?void 0:null===(i=u[n])||void 0===i?void 0:i.collectStatus)&&void 0!==o?o:d);return(0,v.useEffect)(()=>{var e,t,i,l;c(null!==(i=null==u?void 0:null===(e=u[n])||void 0===e?void 0:e.count)&&void 0!==i?i:r),m(null!==(l=null==u?void 0:null===(t=u[n])||void 0===t?void 0:t.collectStatus)&&void 0!==l?l:d)},[d,r,n]),(0,v.useEffect)(()=>{let e=e3.addCb(e=>{let{selfUid:t,awemeId:i,action:l}=e,o=t===a,u=void 0===t||void 0===a;if((o||u)&&i===n&&("collect"===l||"unCollect"===l)){var s,v,f;let e=null===(s=x.Le.getConfig(x.gI.CollectStatusCache))||void 0===s?void 0:s[n];c(null!==(v=null==e?void 0:e.count)&&void 0!==v?v:r),m(null!==(f=null==e?void 0:e.collectStatus)&&void 0!==f?f:d)}});return()=>{e()}},[a,n,r,d]),{count:Math.max(s,0),collectStatus:f}};function oL(e){var t,i,l;let{awemeInfo:o,isLogin:n,loginUserInfo:r,loginDispatch:a,fullScreenTarget:d,ableMiniType:u=!1,reportExtraParams:s={},abtestData:f,loginPanelTarget:p,isMobileOversea:_}=e,g=(0,v.useRef)(null),h=(0,e9.n)(),y=(0,ey.r)()&&d,x=tB.s.getPlayerScene(null==h?void 0:h.playerId),I=e=>{L.F.info(e)},C=async()=>{if(null==a||a({type:"updateUserInfo"}),"video_detail"===(0,e_.vM)()){var e,t;await eQ({secUid:null==o?void 0:null===(e=o.authorInfo)||void 0===e?void 0:e.secUid,uid:null==o?void 0:null===(t=o.authorInfo)||void 0===t?void 0:t.uid})}},{unCollect:E,collect:S}=ok({isMobileOversea:_,selfUid:null==r?void 0:null===(t=r.info)||void 0===t?void 0:t.uid,awemeInfo:o,defaultCollectStatus:(null==o?void 0:o.userCollected)?e1.c.Collected:e1.c.Uncollected,isLogin:n,accountParentEl:y,loginPanelTarget:p,reportExtraParams:s,scene:x,onLoginSuccess:C,success:e=>{let{action:t,successMsg:i}=e;"collect"===t&&I(i||e1.a$.CollectSuccess),null==h||h.emit(en.Events.USER_ACTION,{action:"collect",status:"collect"===t?"on":"off"})},fail:e=>{switch(e.statusCode){case w.ERROR_CODE.ERROR_USER_UNLOGIN:return;case w.ERROR_CODE.ERROR_COLLECT_TOO_FAST:I(e1.a$.TooFast);return;case w.ERROR_CODE.ERROR_COLLECT_RESTRICTED:I(e1.a$.CollectBan);return;default:I(e1.a$.CollectFail);return}},teaEvtParams:{is_small_window:0}}),k=(0,v.useCallback)(function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];E(...t),(0,oa.VY)({info:{[og.BW.Collect]:!1},awemeId:null==o?void 0:o.awemeId,abData:null==f?void 0:f.discoverRelatedRecommend})},[E]),T=(0,v.useCallback)(function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];S(...t),(0,oa.VY)({info:{[og.BW.Collect]:!0},awemeId:null==o?void 0:o.awemeId,abData:null==f?void 0:f.discoverRelatedRecommend})},[S]),{collectStatus:A,count:R}=oT({selfUid:null==r?void 0:null===(i=r.info)||void 0===i?void 0:i.uid,awemeId:null==o?void 0:o.awemeId,defaultCollectStatus:(null==o?void 0:o.userCollected)?e1.c.Collected:e1.c.Uncollected,defaultCount:null==o?void 0:null===(l=o.stats)||void 0===l?void 0:l.collectCount}),N=e=>{var t,i;let{clickMethod:l="icon"}=e||{};A===e1.c.Collected?oi.sendLog("clickCancelFavoriteVideo",(0,b._)({click_from:"icon",urlParamList:["previous_page"],author_id:null==o?void 0:null===(t=o.authorInfo)||void 0===t?void 0:t.uid,group_id:null==o?void 0:o.awemeId,log_pb:null==o?void 0:o.logPb,enter_from:(0,e_.mo)(),is_full_screen:(0,ey.r)()?"1":"0",tab_name:(0,eC.zD)()||getRouteParams("tab_name")||""},s)):oi.sendLog("clickFavoriteVideo",(0,b._)({click_from:"icon",urlParamList:["previous_page"],author_id:null==o?void 0:null===(i=o.authorInfo)||void 0===i?void 0:i.uid,group_id:null==o?void 0:o.awemeId,log_pb:null==o?void 0:o.logPb,enter_from:(0,e_.mo)(),is_full_screen:(0,ey.r)()?"1":"0",click_method:l,tab_name:(0,eC.zD)()||getRouteParams("tab_name")||""},s)),null==h||h.emit("shortcutTopic"),A===e1.c.Collected?k({clickMethod:l}):T({clickMethod:l})};return(0,c.jsxs)("div",{className:m()(oo.collect,{[oo.ableMiniType]:u,[oo.animation4]:!0}),onClick:()=>N(),ref:g,"data-e2e-state":A?"video-player-is-collected":"video-player-no-collect","data-e2e":"video-player-collect",children:[(0,c.jsx)("div",{className:oo.lottieWraper,children:(0,c.jsx)(iB.z,{svg:(0,c.jsx)(ox.Z,{}),className:m()(oo.collectSvg,{[oo.active]:A})})}),(0,c.jsx)("div",{className:m()(oo.count,oo.lessFontWeight),children:ou({count:R,displayWord:"收藏"})})]})}var oA=i("46892"),oR={avatarWrap:"XkH75C2I",followIcon:"ZU4K3e_I",followIconLow:"OpJ9rP5u",hideFollowedLottie:"QcqMNLpX",imIcon:"SifIBs5s",avatar:"J5guOEsg",shortcutTip:"TFQkSnHN",tipKey:"dTo23LwF",shortcutTipWrap:"bNf2M63d",keyTip:"vFGOnx4v",followWrap:"Twac0Nnc",followWrapMobile:"leD6s6dQ",avatarBothWrap:"k1L4Huiq",liveTip:"_2B82Epl",liveWrap:"XBvzdVqw",liveLottie:"NCCm3kSc",liveText:"nCskzX8P",animation:"_5We5cY0C",avatarImageWrap:"hy9Qotab",followWrapBox:"ELxPm49K",disableTransition:"aAPS6Kgt",xgTip:"pU14BDDV",xgIcon:"iWFiClpN",ableMiniType:"U1MFgjKp",tipStyle:"MgRMjbQg",hidden:"kYq720h3",cooperAvatar:"MF9d_7ud"},oN=i("855436"),oP=i("394408"),oM=i("244297"),oj=new eF.h({hover_author_head:{eventName:"hover_author_head",params:{enter_from:"",click_from:""}},hover_follow_icon:{eventName:"hover_follow_icon",params:{enter_from:""}},livesdkLiveShow:{eventName:"livesdk_live_show",params:{enter_from_merge:"",enter_method:"web_video_head",action_type:"",request_id:"",is_vs:0,vs_episode_id:"",vs_ep_group_id:"",vs_season_id:"",vs_episode_stage:"",anchor_id:"",room_id:"",is_paidlive:"",watch_paidlive_status:""}},livesdkRecLivePlay:{eventName:"livesdk_rec_live_play",params:{anchor_id:"",room_id:"",enter_from_merge:"web_others_homepage",enter_method:"web_video_head",game_name:"",live_type:"",is_aweme_tied:0,game_live_source:"",url:"",url_path:"",action_type:"click",request_id:"",stream_type:"",is_vs:0,vs_episode_id:"",vs_ep_group_id:"",vs_season_id:"",vs_episode_stage:"",is_paidlive:0,watch_paidlive_status:""}},livesdkMiniWindowPlay:{eventName:"livesdk_mini_window_preview_play",params:{anchor_id:"",room_id:"",enter_from_merge:"web_others_homepage",enter_method:"web_video_head",game_name:"",live_type:"",is_aweme_tied:0,game_live_source:"",url:"",url_path:"",action_type:"click",request_id:"",is_click_mini_window:"0"}},follow:{eventName:"follow",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",is_full_screen:"0",tab_name:"",click_method:"",aweme_type:"",from_xigua:0,relation:""}},followCancel:{eventName:"follow_cancel",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",is_full_screen:"0",tab_name:""}},topknotLoginShow:{eventName:"topknot_login_show",params:{group_id:"",relation:0}},chatIconHover:{eventName:"chat_icon_hover",params:{}},chatIconClick:{eventName:"chat_icon_click",params:{}}}),oD=i("769591"),oF=i("882831"),oV={aLink:"e8dImg_p"};function oB(e){var{href:t="",children:i,style:l,className:o,passParamKeys:n=[],spa:r,isNeedSeoOpt:a=!0,tabSSRHrefEnhance:d=!1,refEl:u}=e,s=(0,tZ._)(e,["href","children","style","className","passParamKeys","spa","isNeedSeoOpt","tabSSRHrefEnhance","refEl"]);let[f,p]=(0,v.useState)(""),_=(0,v.useRef)(null);(0,v.useEffect)(()=>{let e=(0,oF.U)({passParamKeys:n});p((0,E.stringify)(e))},[]);let g=(0,v.useMemo)(()=>{let e,i;if(!t)return;let l=t.indexOf("#");-1!==l?(e=t.slice(0,l),i=t.slice(l+1)):(e=t,i="");let o=e.indexOf("?"),[n,r]=["",""];-1!==o?(n=e.slice(0,o),r=e.slice(o+1)):(n=e,r="");let a=[];return(f&&a.push(f),r&&a.push(r),a.length>0)?[n,a.join("&")].join("?")+(i&&`#${i}`):n+(i&&`#${i}`)},[f,t]),h=g,y="",w="";return a&&!r&&h&&([h,w]=h.split("#"),[h,y]=h.split("?"),d&&(null==y?void 0:y.includes("recommend=1"))&&(h=`${h}?recommend=1`)),r?(0,c.jsx)(oD.Link,(0,G._)((0,b._)({to:g,className:m()(oV.aLink,o),style:l},s),{suppressHydrationWarning:!0,children:i})):(0,c.jsx)("a",(0,G._)((0,b._)({suppressHydrationWarning:!0,href:h,className:m()(oV.aLink,o),style:l,ref:e=>{_.current=e,u&&(u.current=e)}},s),{target:(0,il.f)()?"_self":s.target,onClick:e=>{try{var t;_.current.href=g,null==s||null===(t=s.onClick)||void 0===t||t.call(s,e),(0,il.f)()&&!(null==s?void 0:s.onClick)&&(e.preventDefault(),window.open(h,"_self"))}catch(e){}},children:i}))}function oO(e){var t;let{awemeInfo:i,ableMiniType:l,followStatus:o,logParams:n}=e,r=(0,v.useRef)(null);return(0,c.jsx)(iP.Tooltip,{className:m()(oR.xgTip,{[oR.ableMiniType]:l}),position:"left",content:(0,c.jsx)(c.Fragment,{children:"前往西瓜视频关注该作者"}),getPopupContainer:()=>r.current||document.body,children:(0,c.jsx)("div",{ref:r,children:(0,c.jsx)(oB,{id:"xgIcon",href:(0,oA.GN)(null==i?void 0:null===(t=i.authorInfo)||void 0===t?void 0:t.uid),target:"_blank",rel:"noopener noreferrer",className:oR.xgIcon,onClick:()=>{var e;eg.emit(eg.EVENT.videoPause),oj.sendLog("follow",(0,b._)({urlParamList:["previous_page"],author_id:null==i?void 0:null===(e=i.authorInfo)||void 0===e?void 0:e.uid,group_id:null==i?void 0:i.awemeId,enter_from:(0,e_.mo)(),is_full_screen:(0,ey.r)()?"1":"0",tab_name:(0,eC.zD)()||(0,A.Rs)("tab_name")||"",aweme_type:null==i?void 0:i.awemeType,from_xigua:1,relation:String(o)},n))}})})})}var oU=JSON.parse('{"v":"5.7.1","fr":60,"ip":0,"op":91,"w":90,"h":90,"nm":"合成 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"形状图层 2","parent":2,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":80,"s":[100],"e":[0]},{"t":90}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,0,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.8,"y":0.66},"o":{"x":0.4,"y":0},"t":2,"s":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-13.5,0],[13.562,0]],"c":true}],"e":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-13.5,0],[13.562,0]],"c":true}]},{"i":{"x":0.6,"y":1},"o":{"x":0.2,"y":0.34},"t":7,"s":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-13.5,0],[13.562,0]],"c":true}],"e":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-7.224,-14.544],[10.21,2.806]],"c":true}]},{"t":13}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":2,"s":[1,1,1,1],"e":[0.996078431606,0.172549024224,0.333333343267,1]},{"t":13}],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":6,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":90,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.8,"y":0.68},"o":{"x":0.4,"y":0},"t":2,"s":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-13.5,0],[13.562,0]],"c":true}],"e":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-0.062,9.062],[0.021,-8.958]],"c":true}]},{"i":{"x":0.6,"y":1},"o":{"x":0.2,"y":0.32},"t":7,"s":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-0.062,9.062],[0.021,-8.958]],"c":true}],"e":[{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-2.81,10.208],[-12.518,0.573]],"c":true}]},{"t":13}],"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":2,"s":[1,1,1,1],"e":[0.996078431606,0.172549024224,0.333333343267,1]},{"t":13}],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":6,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状 1","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"形状图层 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[1],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":19,"s":[100],"e":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.4],"y":[0]},"t":80,"s":[100],"e":[0]},{"t":90}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[45,45,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.6,0.6,0.833],"y":[1,1,5.167]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,3.333]},"t":0,"s":[100,100,100],"e":[60,60,100]},{"i":{"x":[0.6,0.6,0.833],"y":[1,1,1]},"o":{"x":[0.4,0.4,0.167],"y":[0,0,5.682]},"t":2,"s":[60,60,100],"e":[115,115,100]},{"i":{"x":[0.6,0.6,0.833],"y":[1,1,1]},"o":{"x":[0.4,0.4,0.167],"y":[0,0,0]},"t":13,"s":[115,115,100],"e":[95,95,100]},{"i":{"x":[0.6,0.6,0.564],"y":[1,1,1]},"o":{"x":[0.314,0.314,0.206],"y":[0,0,0]},"t":19,"s":[95,95,100],"e":[100,100,100]},{"i":{"x":[1,1,0.839],"y":[1,1,1]},"o":{"x":[0.4,0.4,0.304],"y":[0,0,0]},"t":25,"s":[100,100,100],"e":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,14.333]},"o":{"x":[0.4,0.4,0.167],"y":[0,0,-13.333]},"t":80,"s":[100,100,100],"e":[20,20,100]},{"t":90}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-19.882,0],[0,-19.882],[19.882,0],[0,19.882]],"o":[[19.882,0],[0,19.882],[-19.882,0],[0,-19.882]],"v":[[0,-36],[36,0],[0,36],[-36,0]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":2,"s":[0.996078431606,0.172549024224,0.333333343267,1],"e":[1,1,1,1]},{"t":13}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0}],"markers":[]}'),oH=JSON.parse('{"v":"5.7.1","fr":60,"ip":0,"op":11,"w":90,"h":90,"nm":"合成 2","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"形状图层 2","parent":2,"sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0],"e":[100]},{"t":10}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,0,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-13.5,0],[13.562,0]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":6,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":90,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状 2","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-13.5,0],[13.562,0]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":6,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"描边 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"形状 1","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"形状图层 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.412],"y":[1]},"o":{"x":[0],"y":[0]},"t":0,"s":[0],"e":[100]},{"t":10}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[45,45,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.392,0.392,0.839],"y":[1,1,1]},"o":{"x":[0,0,0.167],"y":[0,0,13.333]},"t":0,"s":[20,20,100],"e":[100,100,100]},{"t":10}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-19.882,0],[0,-19.882],[19.882,0],[0,19.882]],"o":[[19.882,0],[0,19.882],[-19.882,0],[0,-19.882]],"v":[[0,-36],[36,0],[0,36],[-36,0]],"c":true},"ix":2},"nm":"路径 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.996078431606,0.172549024224,0.333333343267,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"填充 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"变换"}],"nm":"椭圆 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":120,"st":0,"bm":0}],"markers":[]}');let oW=(0,oN.ZP)(()=>Promise.resolve().then(i.bind(i,99471)),{ssr:!1}),oG=(0,eI.b_)();function oz(e){var t,i,l,o,n,r,a;let{awemeInfo:d={},loginUserInfo:u,shortcut:s={},isShowKeyHotTip:f,ableMiniType:p=!1,followBtnMouseEnter:_,followBtnMouseLeave:h,isXgVideo:y,isFollowClickedRef:w,actionFollow:x,actionUnFollow:I,showImBtn:C,player:b,isMobileOversea:E,onCooperAitonClick:S,loginPanelTarget:k,toast:T,abtestData:A,onFollowBtnClick:R,isLogin:N}=e,P=(0,v.useRef)(null),M=(0,v.useRef)(!1),j=(0,v.useRef)(null),[F,V]=(0,v.useState)(!1),[B,O]=(0,v.useState)(!0),[U,H]=(0,v.useState)(!1),W=null==A?void 0:A.reduceLottie,G=(0,v.useRef)(null),z=(0,v.useRef)(null),{followStatus:Z}=e5({selfUid:null==u?void 0:null===(t=u.info)||void 0===t?void 0:t.uid,actionUid:null==d?void 0:null===(i=d.authorInfo)||void 0===i?void 0:i.uid,defaultFollowerStatus:null==d?void 0:null===(l=d.authorInfo)||void 0===l?void 0:l.followerStatus,defaultFollowStatus:null==d?void 0:null===(o=d.authorInfo)||void 0===o?void 0:o.followStatus}),q=()=>{var e,t,i,l;let o=null===(t=G.current)||void 0===t?void 0:null===(e=t.getLottieInstance)||void 0===e?void 0:e.call(t),n=null===(l=z.current)||void 0===l?void 0:null===(i=l.getLottieInstance)||void 0===i?void 0:i.call(l),r=()=>{var e;null==o||null===(e=o.goToAndStop)||void 0===e||e.call(o,0),V(!1),O(!0)},a=()=>{var e;null==n||null===(e=n.goToAndStop)||void 0===e||e.call(n,0),V(!0),O(!1)},d=()=>{r(),M.current=!1},u=()=>{a(),M.current=!1};return{follow:()=>{r(),setTimeout(()=>{var e;null==o||null===(e=o.play)||void 0===e||e.call(o),oG&&d()}),!C&&(M.current=!0),w.current=!1},unfollow:()=>{a(),setTimeout(()=>{var e;null==n||null===(e=n.play)||void 0===e||e.call(n),oG&&u()}),!C&&(M.current=!0),w.current=!1},followEnd:d,unfollowEnd:u,setFollowStatus:a,setUnFollowStatus:r}};(0,v.useEffect)(()=>{var e,t,i;M.current=!1,(null===(t=P.current)||void 0===t?void 0:null===(e=t.authorInfo)||void 0===e?void 0:e.uid)!==(null==d?void 0:null===(i=d.authorInfo)||void 0===i?void 0:i.uid)?Z===e1.$u.UnFollow?q().setUnFollowStatus():q().setFollowStatus():((0,oP.F)(Z)?q().follow():q().unfollow(),W&&H(!0)),P.current=d},[Z]);let $=(0,v.useCallback)(async()=>{if(y){var e;eg.emit(eg.EVENT.videoPause),window.open((0,oA.GN)(null==d?void 0:null===(e=d.authorInfo)||void 0===e?void 0:e.uid),(0,il.f)()?"_self":"_blank");return}if((0,g.gc)(d)){T?T("广告视频不支持此功能"):L.F.info("广告视频不支持此功能");return}if(S)return;w.current=!0;let t=(0,oP.V)(Z);!M.current&&(t?null==I||I({clickFrom:"hot_key",loginPanelTarget:k}):null==x||x({clickFrom:"hot_key",loginPanelTarget:k}),C&&(M.current=!1),(0,oa.VY)({info:{[og.BW.Follow]:!t},awemeId:null==d?void 0:d.awemeId,abData:0}))},[d,I,x,Z,y,S,w,C,k]);(0,v.useEffect)(()=>{if(b)return null==b||b.on("onFollow",$),()=>{null==b||b.off("onFollow",$)}},[b,$]);let{inImmersive:K}=i2({player:b,isActive:!0});return(0,c.jsx)(iP.Tooltip,{position:"left",style:!f||F||y||E?{display:"none"}:{},className:oR.tipStyle,content:(0,c.jsx)("div",{className:oR.shortcutTip,children:(0,c.jsxs)(c.Fragment,{children:["关注",(null==s?void 0:null===(n=s.follow)||void 0===n?void 0:n.badgeText)&&(0,c.jsx)("span",{className:oR.tipKey,children:s.follow.badgeText})]})}),getPopupContainer:()=>j.current||document.body,children:(0,c.jsx)("div",{ref:j,className:m()(oR.followWrap,{[oR.followWrapMobile]:(0,D.tq)()}),"data-e2e":"feed-follow-icon",children:(0,c.jsxs)("div",{onMouseEnter:e=>{!F&&(null==_||_(e))},onMouseLeave:e=>{oj.sendLog("hover_follow_icon",{enter_from:(0,e_.mo)()}),!F&&(null==h||h(e))},onClick:e=>{var t,i,l,o;if(E&&e.stopPropagation(),!N&&E){(0,ov.Z)({success:async()=>{window.location.reload()},enterMethod:"comment",next:`https://${null===(l=window)||void 0===l?void 0:null===(i=l.location)||void 0===i?void 0:i.host}`,headerText:"登录抖音"});return}if(null==b||b.emit("shortcutTopic"),(null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.id)==="xgIcon")return;if(y){eg.emit(eg.EVENT.videoPause),window.open((0,oA.GN)(null==d?void 0:null===(o=d.authorInfo)||void 0===o?void 0:o.uid),(0,il.f)()?"_self":"_blank");return}w.current=!0,null==R||R();let n=(0,oP.V)(Z);(!M.current&&!F||oG)&&(n?null==I||I({clickFrom:void 0,loginPanelTarget:k}):null==x||x({clickFrom:void 0,loginPanelTarget:k}),(0,oa.VY)({info:{[og.BW.Follow]:!n},awemeId:null==d?void 0:d.awemeId,abData:0}))},className:m()(oR.followWrapBox),children:[y&&(0,c.jsx)(oO,{awemeInfo:d,ableMiniType:p,followStatus:Z,logParams:{is_pure:K?"1":"0"}}),!y&&!oG&&(U||!W?(null==d?void 0:null===(r=d.authorInfo)||void 0===r?void 0:r.uid)!==(null==u?void 0:null===(a=u.info)||void 0===a?void 0:a.uid)&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(oW,{hidden:F,onComplete:()=>q().unfollowEnd(),className:oR.followIcon,data:oU,ref:G,loop:!1,autoplay:!1,onInit:()=>{W&&((0,oP.F)(Z)?q().follow():q().unfollow())}}),(0,c.jsx)(oW,{hidden:B,onComplete:()=>q().followEnd(),className:m()(oR.followIcon,{[oR.hideFollowedLottie]:E&&F}),data:oH,ref:z,loop:!1,autoplay:!1})]}):(0,c.jsx)(iB.z,{svg:(0,c.jsx)(oM.Z,{}),className:m()(oR.followIcon,oR.followIconLow,{[oR.hidden]:(0,oP.V)(Z)})})),!y&&oG&&(0,c.jsx)(iB.z,{svg:(0,c.jsx)(oM.Z,{}),className:m()(oR.followIcon,oR.followIconLow,{[oR.hidden]:(0,oP.V)(Z)})})]})})})}var oZ=i("952379");function oq(e){let{onAvatarClick:t,preventAvatarDefaultHandle:i,handleAvatarClick:l,player:o,toast:n}=e,r=(0,v.useCallback)(()=>{n?n("广告视频不支持此功能"):L.F.info("广告视频不支持此功能")},[]);return(0,v.useEffect)(()=>{if(o)return null==o||o.on("onFollow",r),()=>{null==o||o.off("onFollow",r)}},[o,r]),(0,c.jsx)("div",{className:m()(oR.followWrap),children:(0,c.jsx)("div",{className:m()(oR.followWrapBox),onClick:e=>{null==t||t(e,{clickMethod:"click_icon"}),i||null==l||l()},children:(0,c.jsx)(iB.z,{className:oR.followIcon,svg:(0,c.jsx)(oZ.Z,{style:{fontSize:"24px"}})})})})}let o$=(0,v.forwardRef)((e,t)=>(0,c.jsxs)("svg",(0,G._)((0,b._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 20c5.523 0 10-4.477 10-10S15.523 0 10 0 0 4.477 0 10s4.477 10 10 10z",fill:"#fff"}),(0,c.jsx)("path",{d:"M4.876 8.407l8.918-3.185a.9.9 0 0 1 1.15 1.15l-3.185 8.919a.9.9 0 0 1-1.62.16l-1.431-2.387a.72.72 0 0 1 .071-.84l4.327-5.037c.072-.084-.043-.199-.127-.126l-5.037 4.326a.72.72 0 0 1-.84.072l-2.387-1.432a.9.9 0 0 1 .16-1.62z",fill:"#FE2C55"})]})));function oK(e){var t,i;let{isShowKeyHotTip:l,imBtnMouseEnter:o,imBtnMouseLeave:n,awemeInfo:r,player:a,loginUserInfo:d,abtestData:u}=e,s=v.useRef(null);return(0,c.jsx)(iP.Tooltip,{position:"left",style:l?{}:{display:"none"},className:oR.tipStyle,content:(0,c.jsx)("div",{className:oR.shortcutTip,children:"私信"}),getPopupContainer:()=>s.current||document.body,children:(0,c.jsx)("div",{ref:s,className:m()(oR.followWrap),children:(0,c.jsx)("div",{onMouseEnter:e=>{null==o||o(e),oj.sendLog("chatIconHover")},onMouseLeave:e=>null==n?void 0:n(e),onClick:()=>{var e,t;oj.sendLog("chatIconClick"),eg.emit(eg.EVENT.sendImUserMsg,{uid:null==r?void 0:null===(e=r.authorInfo)||void 0===e?void 0:e.uid,enterMethod:"friend_im_icon"}),null==a||null===(t=a.exitFullscreen)||void 0===t||t.call(a),eg.emit(eg.EVENT.pageFullScreen,{fullScreen:!1,playerId:null==a?void 0:a.playerId})},className:m()(oR.followWrapBox),children:(null==r?void 0:null===(t=r.authorInfo)||void 0===t?void 0:t.uid)!==(null==d?void 0:null===(i=d.info)||void 0===i?void 0:i.uid)&&(0,c.jsx)(lt.Z,{className:m()(oR.followIcon,oR.imIcon),src:o$,width:20,height:20,viewBox:"0 0 20 20"})})})})}var oY=i("628077"),oQ={avatarIcon:"m8Qnxb7Q",avatar:"fghPKaLl",image:"MFaae4QB",live:"fTO_Ywx7",extraExtraExtraSmall:"kmA9Amlm",extraExtraSmall:"BVCwWue3",extraSmall:"_8x0D6KRR",small:"MXLpCQMO",middle:"NyEXxOwf",default:"gfDhM2rx",showOverflow:"Ek8Giu0q",self:"fGyCHwiv",pendant:"vqG82HOe"};function oJ(e){let{type:t="default",src:i,alt:l="",isSpider:o=!1,isSelf:n=!1,showImageInSSR:r=!1,className:a,defaultClassName:d,imgClassName:u,maskConf:s,onMouseEnter:f,onMouseLeave:p,onClick:_,children:g}=e,[h,y]=(0,v.useState)(0),w=i&&(1===h||o||r),{showMask:x,MaskItem:I,className:C}=s||{},b=()=>y(1);return(0,v.useEffect)(()=>{let e=!1,t=new Image;t.onload=function(){if(!e)e=!0,b(),t=null},t.onerror=function(){if(!e)e=!0,y(-1),t=null};let l=setTimeout(()=>{e=!0,b()},3e3);return t.src=i,()=>{t&&(t.onload=null,t.onerror=null),clearTimeout(l)}},[i]),(0,c.jsxs)(iP.Avatar,{className:m()(oQ.avatar,oQ[t],"avatar-component-avatar-container",{[a]:a,[oQ.self]:n}),onMouseEnter:f,onMouseLeave:p,"data-e2e":"live-avatar",onClick:_,style:{backgroundColor:"transparent"},hoverMask:x?(0,c.jsx)(I,{className:C}):null,children:[w?(0,c.jsx)("img",{src:i,alt:l,className:m()(oQ.image,u),onError:()=>y(-1),onLoad:b}):(0,c.jsx)("div",{className:m()(oQ[t],oQ.avatarIcon,{[a]:d})}),g]})}function oX(e){var t,i,l;let{player:o,awemeInfo:n={},customHrefParams:r={},shortcut:a={},onAvatarClick:d=null,preventAvatarDefaultHandle:u=!0,ableMiniType:s=!1,showFollowBtn:f=!0,showImBtn:p=!1,showAdBtn:h=!1,onCooperAitonClick:y,loginUserInfo:w,isShowKeyHotTip:I,isFollowClickedRef:C,loginPanelTarget:S,actionFollow:k,actionUnFollow:T,followBtnMouseEnter:A,followBtnMouseLeave:R,imBtnMouseEnter:N,imBtnMouseLeave:P,isMobileOversea:M,className:j,avatarClassName:D,toast:F,abtestData:V,onFollowBtnClick:B,onAvatarRef:O,avatarType:U="extraSmall",isLogin:H}=e,[W,z]=(0,v.useState)(!1),Z=(0,v.useCallback)(()=>{var e;return null==o?void 0:null===(e=o.pause)||void 0===e?void 0:e.call(o)},[o]),q=(0,v.useRef)(null),$=(0,v.useRef)(null),K=(0,v.useMemo)(()=>{var e,t;return(null==n?void 0:n.awemeType)===_.e.XgVideo?(0,oA.GN)(null==n?void 0:null===(e=n.authorInfo)||void 0===e?void 0:e.uid):(0,oA.HC)(null==n?void 0:null===(t=n.authorInfo)||void 0===t?void 0:t.secUid,(0,E.stringify)((0,b._)({is_full_screen:(0,ey.r)()?"1":"0",enter_method:"video_title",from_gid:n.groupId,vid:null==n?void 0:n.awemeId},r)))},[n,r]),Y=(0,v.useMemo)(()=>(0,c.jsx)("div",{className:oR.shortcutTip,children:"前往西瓜视频访问作者主页"}),[]),Q=null==n?void 0:null===(t=n.authorInfo)||void 0===t?void 0:t.avatarUri,J=(null==n?void 0:n.awemeType)===_.e.XgVideo;!function(e){let{awemeInfo:t,onAvatarClick:i,preventAvatarDefaultHandle:l,onCooperAitonClick:o,handleAvatarClick:n,userHref:r,player:a,toast:d,abtestData:u}=e,s=(0,v.useCallback)(e=>{var s;let{isInModal:c}=null!==(s=x.Le.getConfig(x.gI.IsInModalVideo))&&void 0!==s?s:{};if(c||tB.s.getPlayerScene(null==a?void 0:a.playerId)===ea.lT.Detail){if((0,g.gc)(t)){d?d("广告视频暂不支持此快捷方式"):L.F.info("广告视频暂不支持此快捷方式");return}}else if((0,g.Jt)(t)&&(0,g.Gu)(t)){d?d("广告视频暂不支持此快捷方式"):L.F.info("广告视频暂不支持此快捷方式");return}if(o)return;let v=null==i?void 0:i(e,{clickMethod:"hot_key"});if(!(0,g.Jt)(t)||!!(0,g.Gu)(t))l||n(),!v&&((0,oY.$)(u,t)?eg.emit(eg.EVENT.changeRoute,{to:r}):window.open(r,(0,il.f)()?"_self":"_blank"))},[t,i,n,l,r,o,a,u,d]),c=(0,v.useCallback)(()=>{var e;let{isInModal:i}=null!==(e=x.Le.getConfig(x.gI.IsInModalVideo))&&void 0!==e?e:{};if((i||tB.s.getPlayerScene(null==a?void 0:a.playerId)===ea.lT.Detail)&&(0,g.gc)(t)){d?d("广告视频不支持此功能"):L.F.info("广告视频不支持此功能");return}},[t]);(0,v.useEffect)(()=>{if(a)return null==a||a.on("onAvatar",s),null==a||a.on("onFollow",c),()=>{null==a||a.off("onAvatar",s),null==a||a.off("onFollow",c)}},[a,s,c])}({awemeInfo:n,onAvatarClick:d,preventAvatarDefaultHandle:u,onCooperAitonClick:y,handleAvatarClick:Z,userHref:K,player:o,toast:F,abtestData:V});let X=(0,v.useCallback)(()=>{oj.sendLog("hover_author_head",{enter_from:(0,e_.mo)(),click_from:"click_icon"})},[]);return(0,c.jsxs)("div",{className:m()(oR.avatarWrap,oR.animation,{[oR.ableMiniType]:s,[oR.cooperAvatar]:y},j),ref:q,children:[(0,c.jsx)(oB,{className:oR.avatar,"data-e2e":"video-avatar",onMouseEnter:X,onClick:e=>{if(!M){if(y){e.preventDefault(),null==y||y();return}null==o||o.emit("shortcutTopic"),null==d||d(e,{clickMethod:"click_icon"}),u||Z()}},href:K,target:"_blank",rel:"noopener noreferrer",children:(0,c.jsx)(iP.Tooltip,{position:"left",className:oR.shortcutTipWrap,style:J?{}:{display:"none"},content:Y,getPopupContainer:()=>(null==$?void 0:$.current)||document.body,children:(0,c.jsx)("div",{ref:e=>{$.current=e,null==O||O(e)},children:(0,c.jsx)(oJ,{src:Q,type:"extraSmall",className:m()(oR.horizontalAvatar,oR.avatarImageWrap,D)})})})}),f&&(null==n?void 0:null===(i=n.authorInfo)||void 0===i?void 0:i.uid)!==(null==w?void 0:null===(l=w.info)||void 0===l?void 0:l.uid)&&(0,c.jsx)(oz,{isLogin:H,awemeInfo:n,loginUserInfo:w,shortcut:a,isMobileOversea:M,isShowKeyHotTip:I,ableMiniType:s,followBtnMouseEnter:A,followBtnMouseLeave:R,setShowAvatarTip:z,showAvatarTip:W,isXgVideo:J,isFollowClickedRef:C,actionFollow:k,actionUnFollow:T,showImBtn:p,player:o,onCooperAitonClick:y,loginPanelTarget:S,abtestData:V,onFollowBtnClick:B}),p&&(0,c.jsx)(oK,{isShowKeyHotTip:I,showAvatarTip:W,setShowAvatarTip:z,imBtnMouseEnter:N,imBtnMouseLeave:P,awemeInfo:n,player:o,loginUserInfo:w,abtestData:V}),h&&(0,c.jsx)(oq,(0,G._)((0,b._)({},e),{player:o}))]})}var o0=i("111482"),o1=i("391948"),o2=i("934134"),o3={mask:"QW5cQQGM",bottomCardCt:"FiTYmIcH",show:"QnBSlSM7",bottomTitleCt:"hxglmUd9",bottomCardTitle:"ZlPXKpcI",closeIcon:"_cnJtqtM"};let o6=e=>{var t;let{close:i,title:l,renderItem:o}=e||{},[n,r]=(0,v.useState)(!1),a=(0,v.useRef)(null===(t=window.player)||void 0===t?void 0:t.paused),d=()=>{var e,t;r(!1),a.current||null===(t=window.player)||void 0===t||null===(e=t.play)||void 0===e||e.call(t),setTimeout(()=>{null==i||i()},300)};return(0,v.useEffect)(()=>{setTimeout(()=>r(!0))},[]),(0,v.useEffect)(()=>{let e=eg.listen(eg.EVENT.CloseMobileBottomCard,e=>{let{title:t}=e;l===t&&d()});return()=>{null==e||e()}},[]),(0,c.jsxs)(c.Fragment,{children:[n&&(0,c.jsx)("div",{className:o3.mask,onClick:d}),(0,c.jsxs)("div",{className:m()(o3.bottomCardCt,{[o3.show]:n}),children:[(0,c.jsxs)("div",{className:o3.bottomTitleCt,children:[l&&(0,c.jsx)("span",{className:o3.bottomCardTitle,children:l}),o&&(0,c.jsx)(lt.Z,{onClick:d,className:o3.closeIcon,src:o2.Z,width:16,height:16,viewBox:"0 0 16 16"})]}),null==o?void 0:o()]})]})},o5=(0,oN.ZP)(()=>Promise.all([i.e("29696"),i.e("68651")]).then(i.bind(i,495871))),o4="undefined"==typeof window,o8=(e,t)=>{if(!!t)oi.sendLog("openDouyinPanelShow"),!function(e){let{parent:t}=e||{},i=document.createElement("div"),l=document.fullscreenElement||document.body;t?(l=t,null==t||t.appendChild(i)):null==l||l.appendChild(i);let o=(0,o1.createRoot)(i);o.render((0,c.jsx)(o6,(0,G._)((0,b._)({},e),{close:()=>{var t;o.unmount(),i.remove(),null==e||null===(t=e.close)||void 0===t||t.call(e)},container:i})))}({renderItem:or,title:e})},o7=e=>{var t,i,l,o,n,r;let{awemeInfo:a,loginUserInfo:d,loginDispatch:u,fullScreenTarget:s,onAvatarClick:f,abtestData:p,moreBoxShowList:_,reportExtraParams:g={},shortcutKeyDisable:h,canShowAvatarFollowBtn:y=!0,canShowAvatarImBtn:w=!1,className:x,actionFollow:I,actionUnFollow:C,isActive:E,toast:S,isMainland:k=!0}=e,{isLogin:T}=d,L=(0,v.useRef)(!1),A=(0,v.useRef)(null),R=(0,v.useRef)(null),N=(0,e9.n)();(0,v.useRef)(N).current=N;let{globalCommentCount:P}=(0,v.useContext)(eb.v)||{},[M,j]=(0,v.useState)(!1),{followStatus:D,text:F}=e5({selfUid:null==d?void 0:null===(t=d.info)||void 0===t?void 0:t.uid,actionUid:null==a?void 0:null===(i=a.authorInfo)||void 0===i?void 0:i.uid,defaultFollowerStatus:null==a?void 0:null===(l=a.authorInfo)||void 0===l?void 0:l.followerStatus,defaultFollowStatus:null==a?void 0:null===(o=a.authorInfo)||void 0===o?void 0:o.followStatus}),V=(0,v.useMemo)(()=>["related"],[]),B=ep.getShortcut({disable:h,exclude:V}),O=(0,v.useCallback)(()=>{oi.sendLog("clickAuthorHead",{enter_from:(0,t6.yW)(),enter_from_merge:(0,t6.yW)(),group_id:null==a?void 0:a.awemeId}),o8("前往抖音app/电脑端看更多内容",k)},[a]),U=(0,v.useCallback)(()=>{if(k){o8("前往抖音app/电脑端查看、发布评论",k);return}j(!0)},[k]);return(0,v.useCallback)(()=>o8("前往抖音app/电脑端进行收藏"),[]),(0,c.jsxs)("div",{className:m()(ot.videoInteractionWrapper,x),ref:A,children:[(0,c.jsx)("div",{onClick:O,children:(0,c.jsx)(oX,{player:N,loginUserInfo:d,actionFollow:I,actionUnFollow:C,awemeInfo:a,isLogin:T,isMobileOversea:!0,loginDispatch:u,fullScreenTarget:s,isFollowClickedRef:L,onAvatarClick:f,shortcut:B,reportExtraParams:g,ableMiniType:!0,isShowTip:!0,isShowKeyHotTip:!0,followStatus:D,followBtnMouseEnter:()=>null,followBtnMouseLeave:()=>null,imBtnMouseEnter:()=>null,imBtnMouseLeave:()=>null,showImBtn:w,showFollowBtn:y,showAdBtn:!1,loginPanelTarget:R.current,toast:S,abtestData:p,avatarClassName:ot.mobileAvatar,className:ot.mobileAvatarWrap,isActive:E})}),(0,c.jsx)(oh,{loginPanelTarget:R.current,awemeInfo:a,isMobileOversea:!0,isLogin:T,loginUserInfo:d,loginDispatch:u,fullScreenTarget:s,reportExtraParams:(0,G._)((0,b._)({},g),{relation:null!==(n=null==g?void 0:g.relation)&&void 0!==n?n:String(D)}),ableMiniType:!0,onDiggSuccessCb:e=>{if((null==e?void 0:e.action)!=="digg")return},abtestData:p}),(0,c.jsx)(ow,{awemeInfo:a,count:ou({count:Number(P||0),displayWord:"抢首评"}),ableMiniType:!0,onComment:U}),(0,c.jsx)(oL,{loginPanelTarget:R.current,awemeInfo:a,isLogin:T,isMobileOversea:!0,loginUserInfo:d,loginDispatch:u,fullScreenTarget:s,shortcut:B,ableMiniType:!0,reportExtraParams:(0,G._)((0,b._)({},g),{relation:null!==(r=null==g?void 0:g.relation)&&void 0!==r?r:String(D)}),abtestData:p}),!o4&&(0,c.jsx)(o5,{awemeId:null==a?void 0:a.awemeId,visible:M,isLogin:T,onClose:()=>j(!1),onCommentItemClick:()=>void 0,popupContentstyle:{height:"70vh"},contextData:{awemeId:null==a?void 0:a.awemeId,loginUserInfo:d,isMainland:k,awemeInfo:a}})]})},o9=e=>{let t=(0,o0.N)();return(0,c.jsx)(e4.k,{componentName:"Interaction",Slardar:t,children:(0,c.jsx)(o7,(0,b._)({},e))})};var ne=i("273372"),nt="fSDqGGYa",ni="H2tKp5u2",nl="bXXw6jmu";let no={isHideChangeGlobal:!1,newMiniAvatarGlobal:!1,newMiniFontSizeGlobal:!1,newMiniSpacingGlobal:!1,newMiniIconGlobal:!1,initializated:!1},nn=e=>{let[t,i]=(0,v.useState)(!1),{children:o,awemeInfo:n,style:r={},className:a,isClientMiniWin:d=!1,abtestData:u,from:s,immediatelyResize:f=!1}=e,[p,_]=(0,v.useState)(null==no?void 0:no.newMiniIconGlobal),[g,h]=(0,v.useState)(null==no?void 0:no.newMiniAvatarGlobal),[y,w]=(0,v.useState)(null==no?void 0:no.newMiniFontSizeGlobal),[x,I]=(0,v.useState)(null==no?void 0:no.newMiniSpacingGlobal),[C,E]=(0,v.useState)(null==no?void 0:no.newMiniIconGlobal),S=(0,e9.n)(),[k,T]=(0,v.useState)({}),L=(0,v.useRef)(),A=e=>{var t,i,l;let{contentRect:o}=(null==e?void 0:e[0])||{},n=(null==o?void 0:o.height)||(null==S?void 0:null===(t=S.root)||void 0===t?void 0:t.offsetHeight)||(null===(l=L.current)||void 0===l?void 0:null===(i=l.parentNode)||void 0===i?void 0:i.offsetHeight);if(!n)return;let{MaxHeight:r,MiniAvatar:a,MiniText:d,MiniPadding:u,MiniIocn:s,OldHideChangeVideo:c}=ea.nl;T({transformOrigin:"bottom",transform:`scale(${n>r?n/2/425:1})`});let f=72,m=n<c+72,p=n<=a+72,g=n<=d+72,y=n<=u+72,x=n<=s+72;(0,v.startTransition)(()=>{_(m),h(p),w(g),I(y),E(x)}),no={isHideChangeGlobal:m,newMiniAvatarGlobal:p,newMiniFontSizeGlobal:g,newMiniSpacingGlobal:y,newMiniIconGlobal:x,initializated:!0}};return(0,v.useLayoutEffect)(()=>{var e;let t=(null==S?void 0:S.root)||(null===(e=L.current)||void 0===e?void 0:e.parentNode);if((f||!(null==no?void 0:no.initializated)&&S)&&A(t),t&&!d){let e=ne.Z.bind(t,A);return()=>{e&&(null==e||e())}}},[S,d,null==u?void 0:u.feedFlowEntrance,s,f]),(0,v.useEffect)(()=>{if(void 0===l&&(l=(0,eI.vU)()),l&&S)return S.on(en.Events.FULLSCREEN_CHANGE,i),()=>{S.off(en.Events.FULLSCREEN_CHANGE,i)}},[S]),(0,c.jsx)("div",{className:m()(nt,null==a?void 0:a.right,"positionBox",{[ni]:l&&!t&&(null==n?void 0:n.awemeType)!==68,hideChangeVideo:p,newMiniAvatar:g,newMiniFontSize:y,newMiniSpacing:x,newMiniIcon:C}),style:(0,b._)({},r,k),ref:L,children:o})},nr=e=>{let t=(0,o0.N)();return(0,c.jsx)(e4.k,{componentName:"PositionBoxRight",Slardar:t,children:(0,c.jsx)(nn,(0,b._)({},e))})};var na=i("995270");let nd=e=>{let t=(0,e9.n)(),{isActive:i,fullScreenTarget:l,loginDispatch:o,scene:n,disableHook:r,isLogin:a}=e;return(0,v.useEffect)(()=>{t&&(t.config&&t.config.fullscreenTarget!==l&&(t.config.fullscreenTarget=l,"detail"===n&&(t.config.fullscreenTarget=document.documentElement)),i&&(0,ey.r)()&&(t.getFullscreen(l),"detail"===n&&t.getFullscreen(document.documentElement)))},[t,i,l]),(0,v.useEffect)(()=>{if(t&&i){let e=eg.listen(eg.EVENT.fullScreen,e=>{let{fullScreen:i}=e;!i&&t.exitFullscreen()});return()=>{e()}}},[t,i]),(0,v.useEffect)(()=>{t&&t.usePluginHooks("fullscreen","fullscreen_change",()=>((0,na.QD)()&&eg.emit(eg.EVENT.changeMinWindows,{event:"close",isMiniWin:!1,clickMethod:"click_fullScreen"}),!0))},[t,i,r]),(0,v.useEffect)(()=>{if(i&&t)return eg.listen(eg.EVENT.syncInteraction,()=>{(0,ey.r)()&&t.isUserActive&&t.getFullscreen()})},[t,i]),null},nu=e=>{let t=(0,o0.N)();return(0,c.jsx)(e4.k,{componentName:"FullScrren",Slardar:t,children:(0,c.jsx)(nd,(0,b._)({},e))})};var ns=i("676738"),nc={imgBackground:"YKi0d62m",baseWidth:"mbE5QyZS",baseHeight:"Bjty2sNv",playerShowInfo:"uASLYIMO",splashAd:"cqHBhOfR",backgroundImg:"l9QzUbkX",backgroundMask:"qhmJqtlW",backgroundImgFirefox:"lY_dGd23",imgPlaceHolder:"ta4zikIZ",isHide:"x0DrC_9g",isFirefox:"zVFwJwHY",displayNone:"R3KTVspy"};let nv=()=>{let{contextEvent:e}=(0,v.useContext)(l3.E);return e},nf=e=>{var t,i,l,o,n,r;let{isActive:a,awemeInfo:d,className:u,imgPlaceHolderClassName:s,showImg:f=!0,isPlaying:p=!1,controlHeight:g,abtestData:h}=e,y=(0,e9.n)(),[w,x]=(0,v.useState)(!0),[I,C]=(0,v.useState)(!1),[b,E]=(0,v.useState)(p),[S,k]=(0,v.useState)(null),T=(0,v.useRef)(0),L=(0,eI.vU)();T.current=(null==d?void 0:null===(t=d.video)||void 0===t?void 0:t.width)/(null==d?void 0:null===(i=d.video)||void 0===i?void 0:i.height);let[A,R]=(0,v.useState)(!1);(0,ns.Z)(()=>{R(!0)},[d]);let N=(0,v.useCallback)(()=>{R(!1),S&&T.current&&(S.offsetWidth/T.current>=S.offsetHeight-(null!=g?g:ea.fp.Default)?x(!0):x(!1))},[S,g]),P=(0,v.useCallback)(()=>{I||C(!0)},[I]);(0,v.useEffect)(()=>{if(S&&N){let e=ne.Z.bind(S,N);return()=>{e&&e()}}},[S,N]),(0,v.useEffect)(()=>{!a&&E(!1)},[a]);let M=nv();return(0,v.useEffect)(()=>{var e,t,i;let l=()=>{E(!0)};if(y)return null===(e=y.on)||void 0===e||e.call(y,en.Events.CANPLAY,l),null===(t=y.once)||void 0===t||t.call(y,en.Events.TIME_UPDATE,l),()=>{var e,t;null===(e=y.off)||void 0===e||e.call(y,en.Events.CANPLAY,l),null===(t=y.off)||void 0===t||t.call(y,en.Events.TIME_UPDATE,l)};{let e=e=>{e.once(en.Events.CANPLAY,l)};return null==M||null===(i=M.on)||void 0===i||i.call(M,l4.PlayerCreated,e),()=>{var t;null==M||null===(t=M.off)||void 0===t||t.call(M,l4.PlayerCreated,e)}}},[y]),(0,ei.Z)(()=>{C(!1),E(!1)},[d]),(0,c.jsxs)("div",{className:m()(u,nc.imgBackground,nc.playerShowInfo,{[nc.isFirefox]:L,hiddenImgbackgroundPlugin:a&&b&&!(0,l8.GP)(d),[nc.displayNone]:(null==d?void 0:d.awemeType)===_.e.Note&&f,inlinePlayerImgbackgroundPlugin:!1},"imgBackground"),ref:k,children:[!I&&f&&(0,c.jsx)("img",{src:(null==d?void 0:null===(l=d.video)||void 0===l?void 0:l.originCover)||(null==d?void 0:null===(r=d.varietyVideo)||void 0===r?void 0:null===(n=r.cover)||void 0===n?void 0:null===(o=n.url_list)||void 0===o?void 0:o[0]),className:m()("backgroundCover",{[nc.baseWidth]:!w,[nc.baseHeight]:w,[nc.isHide]:A,[nc.splashAd]:(0,Z.p)(d)},nc.imgPlaceHolder,s),onLoad:N,onError:P}),(0,c.jsx)(ls,{className:m()(nc.backgroundImg,"background",{[nc.backgroundImgFirefox]:L}),maskClassName:nc.backgroundMask,awemeInfo:d,abtestData:h,priorityServerBackupBg:!1})]})};var nm=i("349206"),np={container:"z7KswCmb",damaIcon:"crcWJhsN",damaText:"gipmULjN",damaTime:"n2MSwK5K",nums:"IfNYFTMw"},n_=new eF.h({checkVideoUnsafe:{eventName:"check_video_unsafe",params:{aweme_ids:[],counts:0}},checkVideoUnsafeModal:{eventName:"check_video_unsafe_modal",params:{aweme_id:""}}});let ng={},nh=48e4;{let e=localStorage.getItem("check_safe_time");nh=e?Number(e):nh}let ny=e=>{let{awemeInfo:t,isActive:i,isUseOneCheck:l,playPrevFunc:o,playNextFunc:n,deleteCurrentSwiper:r}=e,a=(0,e9.n)(),[d,u]=(0,v.useState)(!1),[s,f]=(0,v.useState)(5),m=(0,eZ.Z)(async()=>{if(Date.now()-1e3*Number(t.dyQ)>nh){let e=t.awemeId,i=[{item_id:e,dy_q:t.dyQ,tag:t.isAds?2:0,potential_risk_level:0,authentication_token:""}],l=await (0,nm.Y)(i);0===l.statusCode&&(ng[e]=Date.now(),l.result.find(t=>t.item_id===e)&&(a.pause(),u(!0),n_.sendLog("checkVideoUnsafe",{aweme_ids:[t.awemeId],counts:1}),n_.sendLog("checkVideoUnsafeModal",{aweme_id:t.awemeId})));return}}),p=(0,v.useCallback)(async()=>{var e;let i=t.awemeId,l=null!==(e=x.Le.getConfig(x.gI.CheckAwemeList))&&void 0!==e?e:[],o=l.findIndex(e=>e.vid===i);if(-1!==o&&Date.now()-l[o].time>nh){let e=l.slice(o,o+6).map(e=>({item_id:e.vid,dy_q:e.dy_q,tag:e.tag,potential_risk_level:0,authentication_token:""})),n=await (0,nm.Y)(e);if(0===n.statusCode){let e=l.length;for(let t=o;t<Math.min(o+6,e);t++){let e=n.result.find(e=>e.item_id===l[t].vid);l[t].time=Date.now(),l[t].hasCheck=(null==e?void 0:e.safety_code)===0}x.Le.setConfig(x.gI.CheckAwemeList,l),n.result.find(e=>e.item_id===i)&&(a.pause(),u(!0),n_.sendLog("checkVideoUnsafeModal",{aweme_id:t.awemeId}));let r=n.result.filter(e=>e.item_id!==i&&1===e.safety_code).map(e=>e.item_id);eg.emit(eg.EVENT.checkSafeAwemeList,r),n_.sendLog("checkVideoUnsafe",{aweme_ids:n.result.map(e=>e.item_id),counts:n.result.length})}}},[a,t]),_=(0,v.useCallback)(async e=>{if(!e||"firstFrame"===e.eventType)l?m():p()},[l,m,p]);return(0,ix.t)(e=>{!e&&i&&a&&m()}),(0,v.useEffect)(()=>{if(d&&s>0){a.pause();let e=setTimeout(()=>{f(s-1)},1e3);return()=>clearTimeout(e)}},[d,s]),(0,v.useEffect)(()=>{if(d&&0===s&&r){if(l){if("reverse"===x.Le.getConfig(x.gI.InnerAutoPlay).mode){o();return}n();return}r()}},[d,s,l,r]),(0,v.useEffect)(()=>{l&&(f(5),u(!1))},[l,t]),(0,v.useEffect)(()=>{if(a&&i)return a.on(en.Events.XGLOG,_),a.on(en.Events.REPLAY,_),()=>{a.off(en.Events.XGLOG,_),a.off(en.Events.REPLAY,_)}},[a,i,_]),d&&(0,c.jsxs)("div",{className:np.container,children:[(0,c.jsx)("div",{className:np.damaIcon}),(0,c.jsx)("div",{className:np.damaText,children:"当前视频出现问题,无法播放"}),(0,c.jsxs)("div",{className:np.damaTime,children:[(0,c.jsx)("span",{className:np.nums,children:s}),(0,c.jsx)("span",{children:"秒后自动切换至下一个内容"})]})]})};var nw=i("68608"),nx=i("316061");let nI=e=>{let{isActive:t,abtestData:i}=e,l=(0,e9.n)(),o=(0,nw.U)();return(0,v.useEffect)(()=>{if(l&&t){let e=e=>{if((null==e?void 0:e.isInternalOp)!==!0)0===(0,j.$o)(T.LocalStorageKeys.PLAYER_IS_MUTE)&&l.muted&&(0,j.qQ)(T.LocalStorageKeys.PREVIEW_IS_MUTE,1),(0,j.qQ)(T.LocalStorageKeys.PLAYER_VOLUME,l.volume),(0,j.qQ)(T.LocalStorageKeys.PLAYER_IS_MUTE,l.muted?1:0),(0,nx.c)({isMute:l.muted,volume:l.volume})};new Promise((e,t)=>{let{volume:o,autoplayMuted:n}=(0,nx.J)(i);try{var r;null===(0,j.$o)(T.LocalStorageKeys.PLAYER_VOLUME)&&(0,j.qQ)(T.LocalStorageKeys.PLAYER_VOLUME,o),null===(0,j.$o)(T.LocalStorageKeys.PLAYER_IS_MUTE)&&(0,j.qQ)(T.LocalStorageKeys.PLAYER_IS_MUTE,0),l.video.volume=o,!(l.__isInlinePlayer&&!l.paused)&&(l.video.muted=n),null===(r=l.getPlugin("volume"))||void 0===r||r.onVolumeChange(),!P.Q.getItem({sKey:T.CookieKeys.VolumeInfo})&&P.Q.setItem(T.CookieKeys.VolumeInfo,{isUserMute:!1,isMute:l.video.muted,volume:l.video.volume}),e(0)}catch(e){l.volume=o,!(l.__isInlinePlayer&&!l.paused)&&(l.video.muted=n),t(e)}}).then(()=>{null==l||l.on(en.Events.VOLUME_CHANGE,e)}).catch(e=>{});let t=eg.listen(eg.EVENT.syncInteraction,()=>{if(null==l?void 0:l.video){let{volume:e,autoplayMuted:t}=(0,nx.J)(i);l.video.volume=e,l.video.muted=t}});return()=>{null==l||l.off(en.Events.VOLUME_CHANGE,e),t()}}},[l,t,i,o]),(0,v.useEffect)(()=>{if(t&&l&&[tJ.SyncVolume.PreventTip,tJ.SyncVolume.PreventTipAndSyncVolume].includes(null==i?void 0:i.syncVolume)){let e=e=>{((null==e?void 0:e.action)==="change_muted"||(null==e?void 0:e.action)==="change_volume")&&setTimeout(()=>{(0,nx.c)({isUserMute:!0===l.muted||0===l.volume,isMute:l.muted,volume:l.volume})})};return l.on(en.Events.USER_ACTION,e),()=>{l.off(en.Events.USER_ACTION,e)}}},[l,i,t]),(0,v.useEffect)(()=>{if(t&&l&&[tJ.SyncVolume.PreventTip,tJ.SyncVolume.PreventTipAndSyncVolume].includes(null==i?void 0:i.syncVolume)){let e=e=>{("volumeDown"===e.action||"volumeUp"===e.action)&&setTimeout(()=>{(0,nx.c)({isUserMute:0===l.volume,isMute:l.muted,volume:l.volume})})};return l.on(tV.B.CustomShortCut,e),()=>{l.off(tV.B.CustomShortCut,e)}}},[l,i,t]),null},nC=e=>{let{isActive:t,abtestData:i,awemeInfo:l,scene:o="",toast:n}=e,r=(0,e9.n)();return(0,v.useEffect)(()=>{if(r&&t){let e=setTimeout(()=>{var e,t,i;r.muted=!0,r.volume=0,r.musicMute=!0,null===(i=r.plugins)||void 0===i||null===(t=i.volume)||void 0===t||null===(e=t.disable)||void 0===e||e.call(t)});return()=>{var t,i,l;clearTimeout(e),r.musicMute=!1,null===(l=r.plugins)||void 0===l||null===(i=l.volume)||void 0===i||null===(t=i.enable)||void 0===t||t.call(i)}}},[r,t]),(0,v.useEffect)(()=>{if(r&&t&&["modal","detail"].includes(o)){if(n){n("该声音不可用");return}L.F.info("该声音不可用")}},[r,t,o]),null},nb=e=>{var t,i;let l=(0,o0.N)(),{awemeInfo:o}=e;return(null==o?void 0:null===(i=o.status)||void 0===i?void 0:null===(t=i.videoMute)||void 0===t?void 0:t.isMute)?(0,c.jsx)(nC,(0,b._)({},e)):(0,c.jsx)(e4.k,{componentName:"VolumePlugin",Slardar:l,children:(0,c.jsx)(nI,(0,b._)({},e))})},nE=e=>{var t,i,l;let{isActive:o}=e||{},n=(0,e9.n)(),r=(0,l1.O)()?null==n?void 0:null===(t=n.getPlugin("progress"))||void 0===t?void 0:t.parent:null==n?void 0:null===(i=n.getPlugin("progress"))||void 0===i?void 0:i.outer,a=null==n?void 0:null===(l=n.getPlugin("volume"))||void 0===l?void 0:l.root;return(0,v.useEffect)(()=>{let e=e=>{null==e||e.stopPropagation()};return null==r||r.addEventListener("pointerdown",e),null==r||r.addEventListener("touchstart",e),null==a||a.addEventListener("pointerdown",e),null==a||a.addEventListener("touchstart",e),()=>{null==r||r.removeEventListener("pointerdown",e),null==r||r.removeEventListener("touchstart",e),null==a||a.removeEventListener("pointerdown",e),null==a||a.removeEventListener("touchstart",e)}},[r,a]),(0,v.useEffect)(()=>{if(n&&o){n.addClass("hide-loading");let e=setTimeout(()=>{n.removeClass("hide-loading")},2e3),t=()=>{n.removeClass("hide-loading"),clearTimeout(e)};return n.once("playing",t),()=>{clearTimeout(e),n.off("playing",t)}}},[o,n]),null},nS=e=>{let t=(0,o0.N)();return(0,c.jsx)(e4.k,{componentName:"SwiperFitPlugin",Slardar:t,children:(0,c.jsx)(nE,(0,b._)({},e))})};var nk=i("409159"),nT=i.n(nk),nL=i("574911"),nA=i("992378"),nR=i("636090"),nN=i("984550");i("591964");var nP=i("767192");let nM=e=>{var t,i;if((0,eI.G6)())return(null!==(t=(0,lq.G)(T.SessionStorageKeys.DecodeError))&&void 0!==t?t:0)>=2;if(!(0,eI.un)())return!1;if((0,eI.un)()&&(0,eI.Lq)().browser_version<"124.0.0.0")return!0;let l=(0,j.$o)(T.LocalStorageKeys.IsSupportHevc);if(!l||l.has_detect&&!1===l.is_support||3>(0,nP.G)())return!0;let o=null!==(i=(0,j.$o)(T.LocalStorageKeys.FrameInfoList))&&void 0!==i?i:[],n=o.filter(e=>0===e.isH265),r=o.filter(e=>1===e.isH265);if(r.length>=2&&r.every(e=>0===e.total))return ed.logInstance.sendLog("hevcFrameList",{type:"fail",h264_list:n,h265_list:r}),(0,j.qQ)(T.LocalStorageKeys.IsSupportHevc,{has_detect:!0,is_support:!1,pure_support:!0}),!0;let a=n.filter(e=>e.total>20),d=r.filter(e=>e.total>20),u=a.reduce((e,t)=>e+t.rate,0)/a.length,s=d.reduce((e,t)=>e+t.rate,0)/d.length;return!!(d.length>=2)&&!!(s-u>=10)&&(ed.logInstance.sendLog("hevcFrameList",{type:"drop",h264_list:n,h265_list:r,h264_drop:u,h265_drop:s}),(0,j.qQ)(T.LocalStorageKeys.IsSupportHevc,{has_detect:!0,is_support:!1,pure_support:!0}),!0)},nj=e=>{var t,i,l;let{awemeInfo:o,abtestData:n}=e;return!!(0,D.DT)()&&(!!((null==o?void 0:null===(l=o.video)||void 0===l?void 0:null===(i=l.bitRateList)||void 0===i?void 0:null===(t=i.some)||void 0===t?void 0:t.call(i,e=>2===e.isH265))&&(0,l6.Yk)())&&(null==n?void 0:n.useClientH266)===tJ.UseClientH266.On||!1)},nD=!1,nF=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(nD)return!0;let t=(0,b._)({preloadDecoder:"h265",wasmFallbackToAsm:!1,evaluateVVCount:1,disabledByLowdecodePrecent:1,reuseMseForAudio:!0,preciseSeek:1/0,offscreenCanvas:!0,lowDecodeFpsDelta:10,lowDecodeThreshold:75},e);nL.Z.setDecodeCapacity(t),nD=!0},nV=()=>nL.Z.isSupported(),nB=()=>{let{simd:e,thread:t,nbCpu:i}=nL.Z.getDeviceCapacity();return e&&i>=8||t&&i>8},nO=e=>{var t,i,l,o,n,r,a;if((0,D.DT)()||(null==e?void 0:null===(t=e.abtestData)||void 0===t?void 0:t.use265Web)!==tJ.Use265Web.On)return!1;let{awemeInfo:d,abtestData:u}=e,{isInMiniModal:s}=null!==(a=x.Le.getConfig(x.gI.IsInLookMiniModal))&&void 0!==a?a:{},c=null==d?void 0:null===(o=d.video)||void 0===o?void 0:null===(l=o.bitRateList)||void 0===l?void 0:null===(i=l.some)||void 0===i?void 0:i.call(l,e=>1===e.isH265),v="recommend"===(0,t6.yW)();return!!(c&&v&&!s&&x.Le.getConfig(x.gI.isVideoPlayed)&&(null===(n=(0,nA.$h)())||void 0===n?void 0:n.score)>(null==u?void 0:null===(r=u.xgvideoOptions)||void 0===r?void 0:r.score)&&(null==d?void 0:d.awemeType)===_.e.Normal&&nV()&&nB())&&(nF(null==u?void 0:u.xgvideoOptions),!0)},nU=e=>{var t,i,l,o;if((0,D.DT)())return!1;let{awemeInfo:n,abtestData:r,bitRateList:a}=e;return!nM(null==e?void 0:e.abtestData)&&((null==r?!void 0:!r.noStartedDowngrade)||!!(null===(t=(0,j.$o)(T.LocalStorageKeys.IsSupportHevc))||void 0===t?void 0:t.pure_support))&&(!!((null==n?void 0:null===(o=n.video)||void 0===o?void 0:null===(l=o.bitRateList)||void 0===l?void 0:null===(i=l.some)||void 0===i?void 0:i.call(l,e=>1===e.isH265))&&(null==r?void 0:r.use265HardParse)===tJ.Use265HardParse.On&&(0,nR.E)())&&!(0,nN.p)()||!1)},nH=e=>{var t,i;let{awemeInfo:l}=e;if(!(0,D.DT)()||!(null==l?void 0:null===(t=l.video)||void 0===t?void 0:t.bitRateList.some(e=>1===e.isH265))||!(0,l6.Ko)())return!1;let o=null===(i=navigator)||void 0===i?void 0:i.hardwareConcurrency;if(o&&o>=8)return!0;if((0,l6._u)())return!0;if((0,l6.b4)())return!1;if(o<=4)return!1;else return!0},nW=e=>{var t,i,l,o;let{player:n}=e;if(null==n?void 0:null===(t=n.curDefinition)||void 0===t?void 0:t.isH265)return(null==n?void 0:null===(o=n.currentSrc)||void 0===o?void 0:null===(l=o.includes)||void 0===l?void 0:l.call(o,"downgrade_264"))?0:1;return(null==n?void 0:null===(i=n.curDefinition)||void 0===i?void 0:i.isH265)===0?0:nH(e)||nO(e)?1:0},nG=e=>{let{player:t}=e;return(null==t?void 0:t.curDefinition)?!(2!==t.curDefinition.isH265):!!nj(e)||!1},nz=e=>{var t,i,l;let{player:o}=e;return(null==o?void 0:null===(t=o.curDefinition)||void 0===t?void 0:t.isH265)&&(null==o?void 0:null===(l=o.currentSrc)||void 0===l?void 0:null===(i=l.includes)||void 0===i?void 0:i.call(l,"downgrade_264"))?1:0},nZ=e=>(0,D.DT)()||1!==nz(e)?0:1,nq=e=>(0,D.DT)()&&1===nz(e)?1:0,n$=!1,nK=async()=>{var e,t;if(!(0,D.DT)())return 0;if((null===(e=(0,l1.fV)())||void 0===e?void 0:e.os)!=="Windows")return(0,l6.$n)();{let e=await (null===nT()||void 0===nT()?void 0:null===(t=nT().app)||void 0===t?void 0:t.getHardwareDecodeState());return(null==e?void 0:e.code)===0&&(null==e?void 0:e.data)===1?1:0}},nY=e=>{var t,i,l,o,n,r,a,d,u,s,c,v,f,m,p,_,g,h,y,w,x,I,C,b,E,S;return{author_id:null==e?void 0:null===(t=e.authorInfo)||void 0===t?void 0:t.uid,group_id:null==e?void 0:e.awemeId,log_pb:null==e?void 0:e.logPb,compilation_id:null==e?void 0:null===(i=e.mixInfo)||void 0===i?void 0:i.mixId,playlet_id:null==e?void 0:null===(l=e.seriesInfo)||void 0===l?void 0:l.seriesId,impressionData:null==e?void 0:e.impressionData,awemeId:null==e?void 0:e.awemeId,vduration:null==e?void 0:null===(o=e.video)||void 0===o?void 0:o.duration,qualityType:(null==e?void 0:null===(a=e.video)||void 0===a?void 0:null===(r=a.bitRateList)||void 0===r?void 0:null===(n=r[0])||void 0===n?void 0:n.qualityType)||(null==e?void 0:null===(d=e.video)||void 0===d?void 0:d.qualityType),bitRate:(null==e?void 0:null===(c=e.video)||void 0===c?void 0:null===(s=c.bitRateList)||void 0===s?void 0:null===(u=s[0])||void 0===u?void 0:u.bitRate)||(null==e?void 0:null===(v=e.video)||void 0===v?void 0:v.bitRate),gearName:(null==e?void 0:null===(p=e.video)||void 0===p?void 0:null===(m=p.bitRateList)||void 0===m?void 0:null===(f=m[0])||void 0===f?void 0:f.gearName)||"",bitrate_set:null==e?void 0:null===(g=e.video)||void 0===g?void 0:null===(_=g.bitRateList)||void 0===_?void 0:_.map(e=>null==e?void 0:e.gearName),quality_bitrate:null==e?void 0:null===(y=e.video)||void 0===y?void 0:null===(h=y.bitRateList)||void 0===h?void 0:h.map(e=>`${null==e?void 0:e.qualityType}:${null==e?void 0:e.bitRate}`),aweme_type:null==e?void 0:e.awemeType,pic_cnt:null!==(S=null==e?void 0:null===(w=e.images)||void 0===w?void 0:w.length)&&void 0!==S?S:0,trending_topic:null==e?void 0:null===(x=e.hotList)||void 0===x?void 0:x.header,first_tag_name:null==e?void 0:null===(I=e.hotList)||void 0===I?void 0:I.sentence,top:null==e?void 0:null===(C=e.hotList)||void 0===C?void 0:C.rank,awemeRequestTime:null==e?void 0:e.requestTime,is_landscape:(null==e?void 0:null===(b=e.video)||void 0===b?void 0:b.width)>(null==e?void 0:null===(E=e.video)||void 0===E?void 0:E.height)?1:0}},nQ={videoPlay:["is_click_cover"],playTime:["is_click_cover"],videoPlayFinish:["is_click_cover"]};var nJ=i("545467"),nX=i("384884");let n0=e=>{eg.emit(eg.EVENT.syncInteractionStatus,{action:"lookVideo",awemeId:e.awemeId,fromUserId:e.authorInfo.secUid,extraAwemeInfo:{isFromSort:e.isFromSort}})},n1=e=>{var t;let{awemeInfo:i}=e,l=x.Le.getConfig(x.gI.UnLookVideos);if(!!l)(null===(t=l[null==i?void 0:i.awemeId])||void 0===t?void 0:t.status)===ea.Pl.UnLook&&(l[null==i?void 0:i.awemeId].status=ea.Pl.Looked,n0(i))};function n2(e){let{networkSpeed:t}=(null==e?void 0:e.curDefinition)||{};return null!=o?o:t?Math.floor(t/1e3):0}var n3=i("332911"),n6=i("626787"),n5=i("857609");let n4={disable:!1,used:!1,player:null,firstFrame:{used:!1,data:null,perfTime:0},autoplayStarted:{used:!1,data:null,perfTime:0},loadstart:{used:!1,data:null,perfTime:0},loadeddata:{used:!1,data:null,perfTime:0},playtime:{used:!1,data:null,perfTime:0},playfinish:{used:!1,data:null},prfFirstFeedShow:{used:!1,data:null},prfFirstFrameStart:{used:!1,data:null}},n8=ez()(n4),n7=()=>(!window.__INLINE_PLAYER_DATA__&&(window.__INLINE_PLAYER_DATA__=n4),window.__INLINE_PLAYER_DATA__.disable)?n8:window.__INLINE_PLAYER_DATA__;var n9=i("448602");let re=e=>{let{getLogInfo:t,clickFrom:i}=e,{author_id:l,group_id:o,log_pb:n,extraParams:r,isMini:a,trending_topic:d,first_tag_name:u,top:s}=t();return(0,G._)((0,b._)({urlParamList:["previous_page"],author_id:l,group_id:o,log_pb:n,enter_from:(0,e_.mo)(),click_from:i,tab_name:(0,eC.zD)()||(0,A.Rs)("tab_name")||"",trending_topic:d,first_tag_name:u,top:s},r),{is_small_window:(0,na.QD)()?"1":"0"})},rt=e=>{let{getLogInfo:t,isAutoPlay:i,customParams:l}=e,{author_id:o,group_id:n,log_pb:r,extraParams:a}=t();return(0,G._)((0,b._)({urlParamList:["previous_page"],author_id:o,group_id:n,log_pb:r,enter_from:(0,t6.yW)(),status:i?"on":"off"},a,l),{is_small_window:(0,na.QD)()?"1":"0"})};i("76375");let ri={click:"click_button",dblclick:"double_click"},rl=e=>{let{getLogInfo:t,clickFrom:i}=e,{author_id:l,group_id:o,log_pb:n,extraParams:r}=t();return(0,b._)({urlParamList:["previous_page"],author_id:l,group_id:o,log_pb:n,enter_from:(0,t6.yW)(),click_from:i,is_small_window:(0,na.QD)()?"1":"0",player_display_mode:(0,e_.Ok)()},r)};i("104882");var ro=i("570831"),rn=i("558878");let rr={playbacksettingplugin:"hover_speed_cell",immersiveswitchsettingplugin:"hover_pure_mode",volume:"hover_volume",playclaritysettingplugin:"hover_clarity_cell",innerautoplayplugin:"hover_auto_play_mode",watchlaterplugin:"hover_watch_later_add"};var ra=i("550506"),rd=i("632062"),ru=i("766511"),rs=i("267133"),rc=i("108954"),rv=i("889094"),rf=i("196982"),rm=i("484606"),rp=i("792903"),r_=i("908750");let rg=e=>{let t=(0,x.YR)(e);return t?{is_cut:t.isCut,cut_protect_type:t.cutProtectType}:{}};var rh=i("153688"),ry=i("32712"),rw=i("659012");let rx=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object.keys(e).length>0){var t,i;return{ufq_src:e.src,ufq_enh:e.enh,ufq_trans:e.trans,ufq_playback_ori:null===(t=e.playback)||void 0===t?void 0:t.ori,ufq_playback_srv1:null===(i=e.playback)||void 0===i?void 0:i.srv1}}return{}},rI=e=>{var t,i;return(null==e?void 0:null===(t=e.video)||void 0===t?void 0:t.seeking)?"seeking":(null==e?void 0:null===(i=e.video)||void 0===i?void 0:i.ended)?"end":"playing"},rC=(e,t)=>{var i,l,o,n;let{group_id:r,vduration:a,bitRate:d,qualityType:u,extraParams:s,bitrate_set:c,quality_bitrate:v,action_type:f,aweme_type:m,video_play_mode:p,is_landscape:_,bitrate_set_client:g}=t,{bitrate:h}=(null==e?void 0:e.curDefinition)||{};return(0,b._)((0,G._)((0,b._)({group_id:r},rg(r)),{vduration:a,bitrate_set:c,quality_bitrate:v,video_play_mode:p,is_landscape:_,aweme_type:m,action_type:"click"===f?"click":"up"===f?"down":"up",video_quality:(0,rh.S)({player:e,qualityType:u}),video_bitrate:h||d,audio_bitrate:(null===(l=e.curDefinition)||void 0===l?void 0:null===(i=l.audioDefinition)||void 0===i?void 0:i.bitrate)||0,real_bitrate:(null===(o=e.curDefinition)||void 0===o?void 0:o.realBitrate)||0,feature_id:null===(n=e.curDefinition)||void 0===n?void 0:n.featureId,bitrate_set_client:g}),s)},rb=e=>{let t=x.Le.getConfig(x.gI.PagingType),i=x.Le.getConfig(x.gI.FastSlowSlide);return{paging_type:e?null==t?void 0:t.current:null==t?void 0:t.pre,slide_speed:i}},rE=(e,t)=>{var i,l,o,n,r,a,d,u,s,c,v,f,m,p,_,h,y,w;let{codecFormat:I,isH265:C,videoFormat:b}=(0,ry.Z)({awemeInfo:t,player:e}),{currentLowDecodeCount:E=0,decoderMode:S=0,lowdecodeVV:k=0,vv:T=0,fps:L=0,currentState:A=0}=(null===(l=e.video)||void 0===l?void 0:null===(i=l.getStats)||void 0===i?void 0:i.call(l))||{},R=null===(o=e.videoFrameInfo)||void 0===o?void 0:o.dropped,N=null===(n=e.videoFrameInfo)||void 0===n?void 0:n.droppedRate;try{if(null==e?void 0:null===(_=e.plugins)||void 0===_?void 0:null===(p=_.srplugin)||void 0===p?void 0:null===(m=p.getStat())||void 0===m?void 0:m.usingSR){let{totalFrames:t,droppedRate:i}=(null==e?void 0:null===(y=e.plugins)||void 0===y?void 0:null===(h=y.srplugin)||void 0===h?void 0:h.getStat())||{};N=i,R=Math.floor(t*i)}}catch(e){}return{duration:e.cumulateTime?e.cumulateTime:0,player_version:e.version,codec_format:I,video_format:b,video_fps:null==e?void 0:null===(r=e.curDefinition)||void 0===r?void 0:r.fps,is_over_rect:(null==e?void 0:null===(a=e.config)||void 0===a?void 0:a.isOverRect)?1:0,internet_speed:n2(e),drop_frame:null===(d=e.videoFrameInfo)||void 0===d?void 0:d.dropped,drop_frame_sr:R,total_play_frame:null===(u=e.videoFrameInfo)||void 0===u?void 0:u.total,drop_frame_rate_sr:N,drop_frame_rate:null===(s=e.videoFrameInfo)||void 0===s?void 0:s.droppedRate,drop_frame_duration:null===(c=e.videoFrameInfo)||void 0===c?void 0:c.droppedDuration,end_status:rI(e),is_bytevc1:C,current_low_decode_count:E,decoder_mode:S,h265_failure_rate:10===T?k/T:-1,decode_fps:null!==(w=null===(v=e.video)||void 0===v?void 0:v.decodeFps)&&void 0!==w?w:0,is_supported_265:nB()?1:0,is_265_degrade_client:nq({player:e}),is_265_degrade_web:nZ({player:e}),frame_rate:L,current_state:A,is_ad:(0,g.Jt)(t)?1:0,is_compilation:(null==t?void 0:null===(f=t.mixInfo)||void 0===f?void 0:f.mixId)?1:0,is_full_screen:(0,ey.r)(),is_show_comment:x.Le.getConfig(x.gI.IsCommetTab)?1:0,is_visible:"visible"===document.visibilityState?1:0}};var rS=i("162164"),rk=i("226846"),rT=i("237869"),rL=i("265950"),rA=i("74639"),rR=i("923440"),rN=i("449716"),rP=i("672734"),rM=i("532375"),rj=i("958395");let rD=(e,t)=>{let i=n7();if(i.playtime.used=!0,i.playtime.data){let e=i.playtime.data;return i.playtime.data=null,e}return e?e:t.paused?0:Date.now()};var rF=i("272726"),rV=i("191785");i("656562"),i("992871");let rB=(e,t)=>{if("string"!=typeof e||!Array.isArray(t))return{pcdnSrcIndex:-1,isPcdnSource:!1};let i=t.findIndex(e=>!!(e.src&&e.ispcdn));if(i>-1){let l=t[i].src,o=new URL(e.startsWith("https:")?e:`https:${e}`),n=new URL(l.startsWith("https:")?l:`https:${l}`),r=o.host===n.host;return{isPcdnSource:r,pcdnSrcIndex:r?i:-1}}return{pcdnSrcIndex:i,isPcdnSource:!1}};var rO=i("72137"),rU=i.n(rO),rH=i("631407"),rW=i("18177"),rG=i("256033");let rz=e=>{try{var t;if(!window)return;(null===(t=window.videoPlayQuality)||void 0===t?void 0:t.length)?window.videoPlayQuality.push(e):window.videoPlayQuality=[e]}catch(e){}},rZ=()=>{let e=x.Le.getConfig(x.gI.ModalStartOpenTime);return e?(x.Le.setConfig(x.gI.ModalStartOpenTime,0),Date.now()-e):-1},rq=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object.keys(e).length>0){var t,i;return{ufq_src:e.src,ufq_enh:e.enh,ufq_trans:e.trans,ufq_playback_ori:null===(t=e.playback)||void 0===t?void 0:t.ori,ufq_playback_srv1:null===(i=e.playback)||void 0===i?void 0:i.srv1}}return{}};var r$=i("600767"),rK=i("47014"),rY=e=>{let{player:t,awemeInfo:i,isActive:l,getLogInfo:o}=e;(0,v.useEffect)(()=>{var e,n,r;if(!t||!i||!l||(null===(e=x.Le.getConfig(x.gI.AbtestData))||void 0===e?void 0:e.longtask))return;let{group_id:a,vduration:d,extraParams:u,bitrate_set:s,bitrate_set_client:c,quality_bitrate:v,action_type:f,aweme_type:m,video_play_mode:p,is_landscape:_}=o(),{codecFormat:h,isH265:y,videoFormat:w}=(0,ry.Z)({awemeInfo:i,player:t}),{battery:I={},memory:C={}}=(0,rR.J)();n3.Z.sendLog("videoInit",(0,G._)((0,b._)((0,G._)((0,b._)({urlParamList:["previous_page","tab_name"]},(0,rp.Z)(t)),{group_id:a,bitrate_set:s,bitrate_set_client:c,vduration:d,player_version:t.version,video_format:w,codec_format:h,is_mute:(null==t?void 0:t.muted)?"1":"0",player_volume:null==t?void 0:t.volume,local_mute:(0,j.$o)(T.LocalStorageKeys.PLAYER_IS_MUTE),local_volume:(0,j.$o)(T.LocalStorageKeys.PLAYER_VOLUME),is_video_support:Number((0,rF.k)().isSupport),quality_bitrate:v,action_type:f,is_ad:(0,g.Jt)(i)?1:0,is_compilation:(null==i?void 0:null===(n=i.mixInfo)||void 0===n?void 0:n.mixId)?1:0,aweme_type:m,is_bytevc1:y,video_play_mode:p,is_landscape:_,play_order:(0,nP.G)()}),u),{buffer_duration:(0,ru.U)(t,null==i?void 0:null===(r=i.video)||void 0===r?void 0:r.duration),battery_charging:I.charging,battery_level:I.level,memory_js_heap_size_limit:C.jsHeapSizeLimit,memory_free_js_heap_size:C.freeJSHeapSize,memory_free_level:C.freeLevel,memory_used_js_heap_size:C.usedJSHeapSize}))},[t,i,l])},rQ=i("190516");let rJ=0,rX=e=>{var t,i,l,o,n,r,a,d,u,s;if(!Array.isArray(null==e?void 0:null===(n=e.plugins)||void 0===n?void 0:null===(o=n.mp4encryptplayer)||void 0===o?void 0:null===(l=o.mp4)||void 0===l?void 0:null===(i=l.meta)||void 0===i?void 0:null===(t=i.moov)||void 0===t?void 0:t.trak))return{mediaTime:0,fixEditListOffset:!1};let c=e.plugins.mp4encryptplayer.mp4.meta.moov.trak.find(e=>{var t,i;return(null===(i=e.mdia)||void 0===i?void 0:null===(t=i.hdlr)||void 0===t?void 0:t.handlerType)==="vide"});if(!c)return{mediaTime:0,fixEditListOffset:!1};let v=null===(a=c.edts)||void 0===a?void 0:null===(r=a.elst)||void 0===r?void 0:r.entries,f=null===(u=c.mdia)||void 0===u?void 0:null===(d=u.mdhd)||void 0===d?void 0:d.timescale;if(Array.isArray(v)&&v.length>0&&f>0){let t=v[0].media_time;if(t>0)return{mediaTime:t/f,fixEditListOffset:null===(s=e.plugins.mp4encryptplayer.config)||void 0===s?void 0:s.fixEditListOffset}}return{mediaTime:0,fixEditListOffset:!1}},r0=["MP4_MSE","DASH","MP4_MSE_SOFT"],r1=e=>{let{isNext:t,player:i,awemeInfo:l,getLogInfo:o,isActive:n}=e;(0,v.useEffect)(()=>{if(t&&i&&l){let e=(0,t6.yW)(),t=()=>{var t,n,r,a,d,u;if(r0.includes(i.vtype.toUpperCase()))return;let{awemeId:s}=l,c=(null===(t=i.curDefinition)||void 0===t?void 0:t.bitrate)||0,v=(0,ru.U)(i,null==l?void 0:null===(n=l.video)||void 0===n?void 0:n.duration),f=(0,ra.e)(v*c),m=(0,rs.A)(i),{qualityType:p}=o(),_={user_unique_id:null===(r=(0,N.Es)())||void 0===r?void 0:r.user_unique_id,enter_from:e,group_id:s,preload_size:f,preload_time:v,video_bitrate:c,audio_bitrate:(null===(d=i.curDefinition)||void 0===d?void 0:null===(a=d.audioDefinition)||void 0===a?void 0:a.bitrate)||0,real_bitrate:(null===(u=i.curDefinition)||void 0===u?void 0:u.realBitrate)||0,video_quality:(0,rh.S)({player:i,qualityType:p}),data_player_type:m,vtype:i.vtype,duration:i.duration,type:0};n3.Z.sendLog("prfLastPreloadDataSize",_,!1)};return i.on(tV.B.BeforeDestroy,t),window.addEventListener("beforeunload",t),()=>{i.off(tV.B.BeforeDestroy,t),window.removeEventListener("beforeunload",t)}}},[i,l,t])},r2=e=>{let{awemeInfo:t,isActive:i,isNext:l,isPrev:n,logParams:r,userInfo:a,isClientMiniWin:d,isFirst:u,index:s}=e||{},c=(0,e9.n)(),{getH265DegradeReportFlag:f,getSupportHwClientFlag:m}=function(e){let{awemeInfo:t,isActive:i}=e,l=(0,v.useRef)(!1),o=(0,v.useRef)((0,l6.$n)());l.current=(0,v.useMemo)(()=>!n$&&!nV()&&(n$=!0,!0),[t]),(0,v.useEffect)(()=>{(async()=>{i&&(o.current=await nK())})()},[t,i]);let n=(0,v.useCallback)(()=>o.current,[]);return{getH265DegradeReportFlag:(0,v.useCallback)(()=>l.current?1:0,[]),getSupportHwClientFlag:n}}({awemeInfo:t,isActive:i}),{getActionType:p,getIsChangingVideoSrc:h}=function(e){let{awemeInfo:t}=e,{isNext:i,isPrev:l,isActive:o}=e,n=(0,v.useRef)(null),r=(0,v.useRef)("click"),a=(0,v.useRef)(!1),d=(0,v.useRef)();i?r.current="down":l&&(r.current="up"),n.current&&(null==t?void 0:t.awemeId)&&(null==t?void 0:t.awemeId)!==n.current&&(o&&d.current?(a.current=!0,r.current="click"):a.current=!1),d.current=o,n.current=null==t?void 0:t.awemeId;let u=(0,v.useCallback)(()=>r.current,[]);return{getActionType:u,getIsChangingVideoSrc:(0,v.useCallback)(()=>a.current,[])}}({awemeInfo:t,isNext:l,isPrev:n,isActive:i}),{getLogInfo:y}=function(e){let{awemeInfo:t,player:i,isActive:l}=e,{isFirst:o,isClientMiniWin:n,specialParams:r,logParams:a}=e,{getActionType:d}=e,{inImmersive:u}=i2({player:i,isActive:l});(0,v.useEffect)(()=>{if(!i||!l)return;let e=e=>{let t=(null==e?void 0:e.from)||(null==e?void 0:e.clickFrom),i="auto";["click_button","scroll"].includes(t)?i="manual":"auto"===t&&(i="auto_play_open"),x.Le.setConfig(x.gI.VideoPlayMethod,i)},t=eg.listen(eg.EVENT.reportPlayNext,e),o=eg.listen(eg.EVENT.reportPlayPrev,e);return()=>{o(),t()}},[i,t,l]);let s=(0,v.useRef)(null);return s.current=(0,v.useMemo)(()=>{var e,l,s,c,v,f,m,p,_,g,h,y;let w=(0,G._)((0,b._)({item_duration_ms:(null==t?void 0:null===(e=t.video)||void 0===e?void 0:e.duration)||0},a),{log_pb:null==t?void 0:t.logPb});Object.keys(r).forEach(e=>{r[e].forEach(e=>{delete w[e]})});let I={is_click_cover:o?1:0,action_type:d(),is_pure:u?"1":"0",extraParams:w,isMini:n,video_play_mode:(null===(l=P.Q.getItem({sKey:T.CookieKeys.VideoFilterMemoSelect,refresh:!1}))||void 0===l?void 0:l.type)===1?"landscape":"all",is_insert_wallpaper:(null===(s=x.Le.getConfig(x.gI.WallPaperIds))||void 0===s?void 0:s.includes(null==t?void 0:t.awemeId))?1:0,latest_group_id:null===(c=x.Le.getConfig(x.gI.FeedLatestViewedAweme))||void 0===c?void 0:c.awemeId,if_first_big_card:a.if_first_big_card||0};return(0,G._)((0,b._)({},nY(t),I),{isFromNextAutoPlay:(null==i?void 0:null===(m=i.plugins)||void 0===m?void 0:null===(f=m.autoplaysettingplugin)||void 0===f?void 0:null===(v=f.config)||void 0===v?void 0:v.nextAutoPlay)||(null==i?void 0:null===(g=i.plugins)||void 0===g?void 0:null===(_=g.searchautoplaysettingplugin)||void 0===_?void 0:null===(p=_.config)||void 0===p?void 0:p.nextAutoPlay),bitrate_set_client:null==i?void 0:null===(h=i.definitionList)||void 0===h?void 0:h.map(e=>null==e?void 0:e.gearName),quality_bitrate_client:null==i?void 0:null===(y=i.definitionList)||void 0===y?void 0:y.map(e=>`${e.qualityType}:${e.bitrate}`)})},[t,a,o,n,u,i,d]),{getLogInfo:(0,v.useCallback)(()=>s.current,[])}}({awemeInfo:t,player:c,specialParams:nQ,logParams:r,isFirst:u,isClientMiniWin:d,isActive:i,getActionType:p}),{getSpecialParams:w}=function(e){let{getLogInfo:t}=e,i=t(),l=(0,v.useRef)(null);return l.current=(0,v.useMemo)(()=>{let e={};return Object.keys(nQ).forEach(t=>{let l={};nQ[t].forEach(e=>{l[e]=i[e]}),e[t]=l}),e},[i]),{getSpecialParams:(0,v.useCallback)(()=>l.current,[])}}({getLogInfo:y});return!function(e){let{player:t}=e;(0,v.useEffect)(()=>{if(!t)return;let e=()=>{t.emit("focus")};return!t.paused&&e(),t.on("autoplay_started",e),()=>{t.off("autoplay_started",e)}},[t]),(0,v.useEffect)(()=>{if(!t||(0,j.$o)(T.LocalStorageKeys.MobileFirstGuide))return;let e=i=>{let{currentTime:l}=i;l>.5&&(eg.emit(eg.EVENT.videoPlay),t.off(en.Events.TIME_UPDATE,e))};return null==t||t.on(en.Events.TIME_UPDATE,e),()=>{t.off(en.Events.TIME_UPDATE,e)}},[t])}({player:c}),!function(e){let{player:t,awemeInfo:i,userInfo:l,isActive:o}=e,n=(0,v.useRef)(!1),r=(0,v.useRef)({});(0,v.useEffect)(()=>{if(i&&o)return()=>{let{awemeId:e,progress:t}=r.current;x.Le.setConfig(x.gI.PreAwemeSeenStatus,{id:e,seen:t>=95?1:0})}},[o,i]),(0,v.useEffect)(()=>{n.current=!1},[i.awemeId]),(0,v.useEffect)(()=>{if(!t||!i)return;let e=()=>{var e,t,o;if(!n.current){if(n.current=!0,(null==l?void 0:l.isLogin)&&(null==i?void 0:i.awemeId)){let{id:e,seen:t}=x.Le.getConfig(x.gI.PreAwemeSeenStatus)||{};(0,nJ.w6)({awemeId:null==i?void 0:i.awemeId,authorId:null==i?void 0:null===(o=i.authorInfo)||void 0===o?void 0:o.uid,preItemId:e,preItemSeen:t})}n0(i),(null===(t=x.Le.getConfig(x.gI.UnLookVideos))||void 0===t?void 0:null===(e=t[null==i?void 0:i.awemeId])||void 0===e?void 0:e.status)===ea.Pl.UnLook&&((0,nX.fetchHomeImpression)({awemeIds:i.awemeId}),n1({awemeInfo:i}))}},o=e=>{let l=0;if((null==i?void 0:i.awemeType)===_.e.Note){var o;let e=null==t?void 0:null===(o=t.getPlugin)||void 0===o?void 0:o.call(t,"pictureProgress");l=100*((null==e?void 0:e.percent)||0)}else l=(null==e?void 0:e.currentTime)/(null==e?void 0:e.duration)*100;let n=null==i?void 0:i.awemeId,{awemeId:a,progress:d}=r.current;if(n!==a||!(l<d))r.current={awemeId:n,progress:l}};return t.on("timeupdate",o),t.once("timeupdate",e),()=>{t.off("timeupdate",o),t.off("timeupdate",e)}},[t,i,l,o])}({player:c,awemeInfo:t,userInfo:a,isActive:i}),!function(e){let{player:t}=e;(0,v.useEffect)(()=>{if(!t)return;let e=e=>{let{speed:t}=e;o=t,x.Le.setConfig(x.gI.NetworkSpeed,t)};return t.on("download_speed_change",e),()=>{t.off("download_speed_change",e)}},[t])}({player:c}),!function(e){let{awemeInfo:t,player:i,isActive:l,isNext:o,index:n}=e,{getIsChangingVideoSrc:r,getLogInfo:a,getH265DegradeReportFlag:d,getSpecialParams:u,getReportNetworkSpeed:s,getSupportHwClientFlag:c}=e;!function(e){let{player:t,awemeInfo:i}=e,{getLogInfo:l}=e;(0,v.useEffect)(()=>{if(!t)return;let e=!1,i=()=>{e=!0},o=()=>{e=!1},n=1,r=setInterval(()=>{if(!e)return;let{author_id:t,group_id:i,log_pb:o,compilation_id:r,extraParams:a,trending_topic:d,first_tag_name:u,top:s}=l(),c=0;try{var v,f,m;let e=null===(m=window)||void 0===m?void 0:null===(f=m.__LIVE_PLAYER__)||void 0===f?void 0:null===(v=f.getPlayer)||void 0===v?void 0:v.call(f);c=(null==e?void 0:e.paused)===!1&&(null==e?void 0:e.muted)===!1?1:0}catch(e){}n3.Z.sendLog("videoPlayCheckPoint",(0,b._)({urlParamList:["previous_page"],author_id:t,group_id:i,log_pb:o,enter_from:(0,e_.mo)(),compilation_id:r,order:n++,tab_name:(0,eC.zD)()||(0,A.Rs)("tab_name")||"",trending_topic:d,first_tag_name:u,top:s,is_live_playing:c},a))},6e4);return!t.paused&&i(),t.on("autoplay_started",i),t.on("play",i),t.on("pause",o),()=>{r&&clearInterval(r),t.off("autoplay_started",i),t.off("play",i),t.off("pause",o)}},[t,i,l])}({awemeInfo:t,player:i,getLogInfo:a}),!function(e){let{awemeInfo:t,player:i,isActive:l}=e,{getLogInfo:o,getH265DegradeReportFlag:n,getSupportHwClientFlag:r}=e,a=(0,v.useRef)(null),d=(0,v.useRef)(null),u=nv(),s=()=>{var e,i;let l=x.Le.getConfig(x.gI.LynxInfo);return(!(0,M.r)()||(null==l?void 0:l.swiperIndex)===void 0||!((null==l?void 0:null===(e=l.awemeList)||void 0===e?void 0:e.length)>0)||(null===(i=l.awemeList[null==l?void 0:l.swiperIndex])||void 0===i?void 0:i.aweme_id)!==t.awemeId)&&(x.Le.setConfig(x.gI.hasReportVideoRequest,!0),!0)};(0,v.useEffect)(()=>{var e,c;let v;(a.current&&(null===(e=a.current)||void 0===e?void 0:e.awemeId)!==(null==t?void 0:t.awemeId)||!l||!t)&&(a.current=null,d.current=null);let f=i,m=()=>{a.current&&!a.current.isReport&&(a.current.isReport=!0,s()&&(0,n6.Z)(a.current.data))},p=()=>{f&&(f.loadstart=1,f.firstfame=0),l&&m()},_=()=>{if(d.current&&!d.current.isReport){var e,t;(0,n5.Z)(d.current.data),(null===(t=d.current)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.is_success)&&(d.current.isReport=!0)}},g=()=>{f&&(f.loadeddata=1),l&&_()},h=e=>{var i,l;let d=o(),{awemeId:u,vduration:s,compilation_id:c,qualityType:v,extraParams:m}=d,p=(null===(i=a.current)||void 0===i?void 0:i.duration)?new Date().getTime()-a.current.duration:0;return{awemeId:t.awemeId,isReport:!1,data:{group_id:u,extraParams:m,duration:p,vduration:s,compilation_id:c,videoQuality:(null==f?void 0:null===(l=f.curDefinition)||void 0===l?void 0:l.qualityType)||v,is_success:e,logInfo:d,player:f,awemeInfo:t,h265DeGrade:n(),supportHw:r(),vtype:null==f?void 0:f.vtype}}},y=e=>{let i=o(),{awemeId:l,extraParams:a}=i;return{awemeId:t.awemeId,duration:new Date().getTime(),data:{group_id:l,extraParams:a,logInfo:i,player:f,awemeInfo:t,h265DeGrade:n(),supportHw:r(),host:null==e?void 0:e.host,fetchExpired:null==t?void 0:t.fetchExpired,vtype:null==f?void 0:f.vtype},isReport:!1}},w=e=>{var t,i;if("loadstart"===e.eventType){let i=x.Le.getConfig(x.gI.SearchVideoPlayMethod);i&&x.Le.setConfig(x.gI.VideoPlayMethod,i),a.current?!(null===(t=d.current)||void 0===t?void 0:t.isReport)&&(d.current=h(0),a.current.duration=new Date().getTime(),g()):(a.current=y(e),p())}else"loadeddata"===e.eventType&&(!(null===(i=d.current)||void 0===i?void 0:i.isReport)&&(d.current=h(1)),g())};t&&(p(),g(),f&&f.on(en.Events.XGLOG,w));let I=e=>{if(t){var i,l;(f=e).dyLogStat&&f.dyLogStat.loadstart&&((null===(i=f.dyLogStat.loadstart.awemeInfo)||void 0===i?void 0:i.awemeId)===t.awemeId&&w(f.dyLogStat.loadstart.data),f.dyLogStat.loadstart=null);let o=n7();o.loadstart.used=!0,o.loadstart.data&&(w(o.loadstart.data),o.loadstart.data=null),f.dyLogStat&&f.dyLogStat.loadeddata&&((null===(l=f.dyLogStat.loadeddata.awemeInfo)||void 0===l?void 0:l.awemeId)===t.awemeId&&w(f.dyLogStat.loadeddata.data),f.dyLogStat.loadeddata=null),o.loadeddata.used=!0,o.loadeddata.data&&(w(o.loadeddata.data),o.loadstart.data=null),f.on(en.Events.XGLOG,w),v=()=>{f.off(en.Events.XGLOG,w)}}};return null==u||null===(c=u.on)||void 0===c||c.call(u,l4.PlayerCreated,I),()=>{var e;null==v||v(),null==f||f.off(en.Events.XGLOG,w),null==u||null===(e=u.off)||void 0===e||e.call(u,l4.PlayerCreated,I)}},[t,l])}({awemeInfo:t,player:i,isActive:l,getLogInfo:a,getH265DegradeReportFlag:d,getSupportHwClientFlag:c}),!function(e){let{player:t,getLogInfo:i,awemeInfo:l}=e,o=(0,v.useRef)(-1);(0,v.useEffect)(()=>{if(!t)return;let e=null,n=n=>{"change_volume"===n.action&&(-1===o.current&&(o.current=n.volume),e&&clearTimeout(e),e=setTimeout(()=>{var e,r;if(!(null===(e=n.props)||void 0===e?void 0:e.volume))return;let{to:a}=null===(r=n.props)||void 0===r?void 0:r.volume,d=o.current;o.current=-1;let u=d>a,{extraParams:s}=i();n3.Z.sendLog("prfVolumeChange",(0,b._)((0,G._)((0,b._)({down:u?1:0,enter_from:(0,e_.vM)(),group_id:null==s?void 0:s.from_group_id},s,null==n?void 0:n.logData),{is_mute:0===a?"1":"0",pre_player_volume:d,cur_player_volume:a,play_order:(0,nP.G)(),is_small_window:(0,na.QD)()?"1":"0",listen_device:(0,e_.nj)()}),(0,n9.$)({player:t,awemeInfo:l})))},500))};return t.on("user_action",n),()=>{t.off("user_action",n)}},[t])}({player:i,getLogInfo:a,awemeInfo:t}),!function(e){let{player:t,awemeInfo:i,isActive:l,getH265DegradeReportFlag:o,getLogInfo:n,getSupportHwClientFlag:r}=e,a=(0,v.useRef)(0),d=(0,v.useRef)(0),u=(0,v.useRef)(0);(0,v.useEffect)(()=>{var e;if(!t||!l)return;let s=!1,c="",v="",f=-1,m=0,p=(null===(e=x.Le.getConfig(x.gI.IsInModalVideo))||void 0===e?void 0:e.isInModal)||!1,_=e=>{c=null==e?void 0:e.host,v=null==e?void 0:e.vtype,t.removedBuffer=0},g=()=>{m=1},h=e=>{"firstFrame"===e.eventType&&(f=Date.now())},y=()=>{a.current++},w=e=>{let{eventType:t,pluginName:i,action:l,currentTime:o,prePlayTime:n}=e||{},r=()=>{d.current++,u.current=n-o};if("progress"===i)switch(t){case"click":r();break;case"drag":"dragend"===l&&r()}else l===tV.B.DyUserSeek&&r()},I=()=>{var e,l,_,g,h,y,w,x,I,C,E,S,k,T,L,A,R,N,P,M,j,D,F,V,B,O;if(s)return;s=!0;let U=(null==i?void 0:null===(_=i.video)||void 0===_?void 0:null===(l=_.playApi)||void 0===l?void 0:null===(e=l.startsWith)||void 0===e?void 0:e.call(l,"blob"))?1:0,{preloadTime:H,preloadSize:W,startBuffer:z,audioDuration:Z,minDuration:q}=(0,rc.P)(t),$=null==i?void 0:null===(h=i.video)||void 0===h?void 0:null===(g=h.bitRateList)||void 0===g?void 0:g.find(e=>{var i;return e.qualityType===(null==t?void 0:null===(i=t.curDefinition)||void 0===i?void 0:i.qualityType)}),K=(0,G._)((0,b._)({preload_time:(0,ra.N)(H),preload_time_audio:Z,preload_time_min:q,preload_size:W||0,preload_type:(0,rw.me)(t)?2:1,hit_preload:(0,rw.qJ)(t),is_mute:(null==t?void 0:t.muted)?"1":"0",player_volume:null==t?void 0:t.volume,video_mute:(null==t?void 0:null===(y=t.video)||void 0===y?void 0:y.muted)?"1":"0",video_volume:null==t?void 0:null===(w=t.video)||void 0===w?void 0:w.volume,equalize_state:null!==(M=null==t?void 0:t.equalizeVolumeState)&&void 0!==M?M:0,use_new_mammon_worklet_processor:null!==(j=null==t?void 0:t.useMammonWorkletProcessorV3)&&void 0!==j&&j,use_new_mammon_worklet_processor_with_wasm:null!==(D=null==t?void 0:t.useMammonWorkletProcessorV3Wasm)&&void 0!==D&&D,hit_new_mammon_worklet_processor:null!==(F=null==t?void 0:t.hitMammonWorkletProcessorV3)&&void 0!==F&&F,volume_balance_longtest_consume_time:null!==(V=null==t?void 0:null===(x=t.effectNodeConsumeTime)||void 0===x?void 0:x.longest)&&void 0!==V?V:-2,volume_balance_shortest_consume_time:null!==(B=null==t?void 0:null===(I=t.effectNodeConsumeTime)||void 0===I?void 0:I.shortest)&&void 0!==B?B:-2,is_in_modal:p},(0,n9.$)({player:t,awemeInfo:i}),(()=>{try{var e,l,o,n;let{cdn:r,pcdn:s}=(null==t?void 0:t.bandwidth)||(null==t?void 0:t.bandWidth)||{},{size:c}=r||{},{size:v,trace_id:f,uri:m,fid:p}=s||{},_=u.current,g=d.current,h=(0,rd.a)(t,a.current),y=(null==t?void 0:null===(e=t.curDefinition)||void 0===e?void 0:e.realBitrate)||(null==t?void 0:null===(l=t.curDefinition)||void 0===l?void 0:l.bitrate)||0,w=(0,ru.U)(t,null==i?void 0:null===(o=i.video)||void 0===o?void 0:o.duration),x=(0,ra.e)(w*y),I=(0,rs.A)(t);if(U){let e=t.duration?(h>0?t.duration:t.currentTime)/t.duration:0;x*=e}let{pcdn_tracker_request_cnt:C,pcdn_tracker_failed_cnt:b,pcdn_download_request_cnt:E,pcdn_download_failed_cnt:S}=(null==t?void 0:t.pcdnReq)||(null==t?void 0:null===(n=t.config)||void 0===n?void 0:n.pcdnReq)||{};return{fid:p,trace_id:f,uri:m,pcdn_size_video:v||0,cdn_size_video:c||0,play_size:(0,rd.L)(t),loop_cnt:h,seek_cnt:g,seek_time:(0,ra.N)(_),play_leave_position:(0,ra.N)(t.currentTime),play_duration_clean:(0,ra.N)(h>0?t.duration:t.currentTime),cache_size:x,cache_duration:(0,ra.N)(w),data_player_type:I,pcdn_tracker_request_cnt:C,pcdn_tracker_failed_cnt:b,pcdn_download_request_cnt:E,pcdn_download_failed_cnt:S}}catch(e){return{}}})(),(0,rv.m)({player:t}),(0,rv.B)({player:t}),(null==t?void 0:t.superResolution)||{},(null==$?void 0:$.mvmaf)||{},rx(null==$?void 0:$.ufq)),{urlParamList:["previous_page","tab_name"],is_success:m||(null==t?void 0:null===(C=t.video)||void 0===C?void 0:C.readyState)>=2?1:0,host:c,vtype:v,play_order:(0,nP.G)(),is_265_degrade:o(),from_start_duration:-1===f?-1:Date.now()-f,is_support_hw:r(),is_hw:(null==t?void 0:null===(E=t.config)||void 0===E?void 0:E.mediaType)==="video"?1:0,is_supported_hevc1_hw:(0,l6._u)()?1:0,is_supported_264_hw:(0,l6.b4)()?1:0,is_hw_client:(0,rf.N)(t),is_gear_down:null!==(O=null==t?void 0:null===(S=t.curDefinition)||void 0===S?void 0:S.orgDefinition)&&void 0!==O?O:0,definition:null==t?void 0:null===(k=t.curDefinition)||void 0===k?void 0:k.definition,start_buffer:z,if_invisible:(0,na.Vr)()?"1":"0",is_small_window:(0,na.QD)()?"1":"0",buffer:(null==t?void 0:null===(T=t.bufferedPoint)||void 0===T?void 0:T.end)-(null==t?void 0:null===(L=t.bufferedPoint)||void 0===L?void 0:L.start)||0,has_down_definition:t.definitionList.find(e=>{var i;return(null==e?void 0:e.definition)===(null==t?void 0:null===(i=t.curDefinition)||void 0===i?void 0:i.definition)+1})?1:0});(0,rm.O)(t);let Y=(null==t?void 0:null===(A=t.getSwitchDefinationInfos)||void 0===A?void 0:A.call(t))||{};n3.Z.sendLog("videoPlayEnd",(0,b._)((0,G._)((0,b._)({},rb(!1),K,(0,rp.Z)(t),(0,r_.Z)(),rE(t,i),rC(t,n()),(null==t?void 0:t.pcdnVVStat)||{},(null==t?void 0:null===(P=t.plugins)||void 0===P?void 0:null===(N=P.srplugin)||void 0===N?void 0:null===(R=N.getStat)||void 0===R?void 0:R.call(N))||{},(null==t?void 0:t.novv)||{}),{firstframed:t.firstfame?1:0,is_cache_video:U,listen_device:(0,e_.nj)(),abr_upper_count:t.upperCount||0,abr_lower_count:t.lowerCount||0,abr_total_count:t.abrCount||0,abr_change_count:t.abrChangeCount||0,abr_change_upper_count:t.upperAbrChangeCount||0,abr_change_lower_count:t.lowerAbrChangeCount||0,video_play_speed:t.playbackRate}),Y),!1),t.removedBuffer=0,t.preplayStat=0,t.prepauseStat=0,t.superResolution={},t.upperCount=0,t.lowerCount=0,t.abrCount=0,t.abrChangeCount=0,t.upperAbrChangeCount=0,t.lowerAbrChangeCount=0,t.bandWidth=null},C=e=>{t.removedBuffer+=e.removeDur};return t.on("removeBuffer",C),t.on(en.Events.XGLOG,h),t.on(en.Events.PLAY,_),t.once(en.Events.LOADED_DATA,g),t.on(en.Events.USER_ACTION,w),t.on(en.Events.ENDED,y),window.addEventListener("beforeunload",I),t.once(tV.B.BeforeDestroy,I),()=>{I(),t.off(tV.B.BeforeDestroy,I),t.off(en.Events.XGLOG,h),t.off(en.Events.PLAY,_),t.off(en.Events.LOADED_DATA,g),t.off(en.Events.USER_ACTION,w),t.off(en.Events.ENDED,y),t.off("removeBuffer",C),window.removeEventListener("beforeunload",I)}},[t,i,l]),(0,v.useEffect)(()=>{a.current=0,d.current=0,u.current=0},[i,l])}({player:i,awemeInfo:t,isActive:l,getLogInfo:a,getH265DegradeReportFlag:d,getSupportHwClientFlag:c}),!function(e){let{player:t,awemeInfo:i,isActive:l,index:o}=e,{getLogInfo:n,getSpecialParams:r}=e;(0,v.useEffect)(()=>{if(!t||!l||(null==i?void 0:i.awemeType)===68)return;let e=r(),a=()=>{var l,r,a,d,u,s,c,v,f,m,p;let{author_id:_,group_id:h,log_pb:y,compilation_id:w,playlet_id:I,extraParams:C,aweme_type:E,isMini:S,trending_topic:k,first_tag_name:L,top:R,is_click_cover:N,is_pure:M,is_insert_wallpaper:j,if_first_big_card:D}=n(),{isH265:F}=(0,ry.Z)({awemeInfo:i,player:t}),V=!1,B=(0,lq.G)(T.SessionStorageKeys.CacheRecommendActiveAwemeID);B&&B===h&&(V=!0),n3.Z.sendLog("videoPlayFinish",(0,G._)((0,b._)((0,G._)((0,b._)((0,G._)((0,b._)({is_click_cover:N,urlParamList:["trending_topic","previous_page"],enter_from:(0,e_.mo)(),enter_from_merge:(0,rS.z)(""),enter_method:(0,A.Rs)("enter_method")||"",author_id:_,group_id:h,log_pb:y,compilation_id:w,playlet_id:I,is_insert_wallpaper:j,tab_name:(0,eC.zD)()||(0,A.Rs)("tab_name")||"",is_full_screen:(0,ey.r)()?"1":"0",is_full_webscreen:tB.s.getIsPageFullscreen()?"1":"0",is_visible:String("visible"===document.visibilityState?1:0),is_author_card_expand:(null===(l=x.Le.getConfig(x.gI.IsCollapseAuthorCard))||void 0===l?void 0:l.isCollapseAuthorCard)?0:1,from_follow_list:(null===(r=x.Le.getConfig(x.gI.FromFollowList))||void 0===r?void 0:r.tag)?"1":"0",is_mute:(null==t?void 0:t.muted)?"1":"0"},(0,ew.t)()),{mute_type:null===(a=x.Le.getConfig(x.gI.ForceMuted))||void 0===a?void 0:a.currentMuteType,is_force:(null===(d=x.Le.getConfig(x.gI.ForceMuted))||void 0===d?void 0:d.currentMuteType)==="browser"?"1":"0",aweme_type:E,trending_topic:k,first_tag_name:L,top:R,is_pure:M,from_push:P.Q.getItem({sKey:T.CookieKeys.FromClientPush})?1:0}),C,e.videoPlayFinish||{}),{is_bytevc1:F,video_time:(0,rk.n)(null==i?void 0:null===(u=i.video)||void 0===u?void 0:u.duration),is_from_ad:(0,g.Jt)(i)?1:0,auto_play_mode:null===(s=x.Le.getConfig(x.gI.InnerAutoPlay))||void 0===s?void 0:s.mode,is_supported_hevc1_hw:(0,l6._u)()?1:0,is_supported_264_hw:(0,l6.b4)()?1:0,video_play_method:null!==(f=x.Le.getConfig(x.gI.VideoPlayMethod))&&void 0!==f?f:"auto",is_small_window:(0,na.QD)()?"1":"0",is_hw_client:(0,rf.N)(t),from_click_group_id:null!==(m=null==i?void 0:i.insertId)&&void 0!==m?m:"",url_source:null!==(p=null==i?void 0:null===(c=i.continationInfo)||void 0===c?void 0:c.urlSource)&&void 0!==p?p:["recommend","personal_homepage"].includes((0,e_.vM)())?P.Q.getItem({sKey:T.CookieKeys.UrlSourceForBrowserPlugin}):"",is_cache_video:V,is_first_video:!o,column_type:(null==C?void 0:C.column_type)||(null==C?void 0:null===(v=C.search_params)||void 0===v?void 0:v.column_type),if_first_big_card:D}),(0,rT.Wc)()),{is_selected_label:(null==i?void 0:i.weeklyRecommend)?1:0}));let O=x.Le.getConfig(x.gI.SearchVideoPlayMethod);O&&x.Le.setConfig(x.gI.VideoPlayMethod,O)},d=n7();return d.playfinish.used=!0,d.playfinish.data?(a(),d.playfinish.data=null):t.once(en.Events.ENDED,a),()=>{t.off(en.Events.ENDED,a)}},[t,i,l])}({player:i,awemeInfo:t,isActive:l,getLogInfo:a,getSpecialParams:u,index:n}),!function(e){let{player:t,awemeInfo:i,isActive:l}=e,{getLogInfo:o}=e;(0,v.useEffect)(()=>{if(!t||!l)return;let e=e=>{n3.Z.sendLog("clickPreviousVideo",re({getLogInfo:o,clickFrom:e}))},n=e=>{n3.Z.sendLog("clickNextVideo",re({getLogInfo:o,clickFrom:e}))},r=()=>{var e,o;if(!l||!i||i&&(null==i?void 0:i.cell_room))return!1;let n=tB.s.getPlayerScene(t.playerId),r=tB.s.getPlayersByScene(ea.lT.Modal)||[],a=null===(e=x.Le.getConfig(x.gI.IsInLookMiniModal))||void 0===e?void 0:e.isInMiniModal,d=null===(o=er().instManager)||void 0===o?void 0:o.getActiveId();return(n===ea.lT.Modal||!(r.length>0))&&(!a||t.playerId===d)&&!0},a=eg.listen(eg.EVENT.reportPlayNext,e=>{let{clickFrom:t}=e;if(!!r())n(t)}),d=eg.listen(eg.EVENT.reportPlayPrev,t=>{let{clickFrom:i}=t;if(!!r())e(i)});return()=>{a(),d()}},[t,i,l])}({player:i,awemeInfo:t,isActive:l,getLogInfo:a}),!function(e){let{player:t,awemeInfo:i,isActive:l}=e,{getLogInfo:o}=e;(0,v.useEffect)(()=>{if(!t||!l)return;let e=e=>{if((null==e?void 0:e.isInnerReset)===!0)return;let t=null==e?void 0:e.isOn;n3.Z.sendLog("clickAutoPlay",rt({getLogInfo:o,isAutoPlay:t,customParams:"object"==typeof(null==e?void 0:e.logParams)?null==e?void 0:e.logParams:{}}))};return t.on(tV.B.AutoPlaySwitchChange,e),()=>{t.off(tV.B.AutoPlaySwitchChange,e)}},[t,i,l])}({player:i,awemeInfo:t,isActive:l,getLogInfo:a}),!function(e){let{player:t,awemeInfo:i,isActive:l}=e,{getLogInfo:o}=e;(0,v.useEffect)(()=>{if(!t||!l)return;let e=e=>{if((0,g.Jt)(i)){let t=(0,g.Rx)(i);(0,ie.E)("full_screen",{tag:(0,ii.f)(),value:t.creative_id,log_extra:t.log_extra,player_form:e})}},n=t=>{n3.Z.sendLog("enterFullScreen",rl({getLogInfo:o,clickFrom:t})),e("browser_full")},r=t=>{n3.Z.sendLog("exitFullScreen",(0,G._)((0,b._)({},rl({getLogInfo:o,clickFrom:t})),{stack_trace:"click_button"!==t?Error().stack:""})),e("normal")},a=(e,t)=>{e?r(t):n(t)},d=e=>{if("switch_fullscreen"===e.action){let t=ri[e.eventType]||"keyboard";a(e.fullscreen||"system"===e.eventType,t)}},u=e=>{a(!e.fullscreen,"hot_key")};return t.on(en.Events.USER_ACTION,d),t.on(tV.B.SwitchFullScreen,u),()=>{t.off(en.Events.USER_ACTION,d),t.off(tV.B.SwitchFullScreen,u)}},[t,i,l])}({player:i,awemeInfo:t,isActive:l,getLogInfo:a}),!function(e){let{player:t,awemeInfo:i,isActive:l}=e,{getLogInfo:o,getSpecialParams:n}=e,r=(0,v.useRef)(0),a=(0,v.useRef)(!0);a.current=(0,nw.U)(),(0,v.useEffect)(()=>{if(t&&l){var e,d,u,s,c;let l=0,v=0,f=rD(r.current,t),m=0,p=0,_=0,h=!1,y=!1,w=!1,{vtype:I}=t,C="init",S="init",k=(null===(e=x.Le.getConfig(x.gI.IsInLookMiniModal))||void 0===e?void 0:e.isInMiniModal)||tB.s.getPlayerScene(null==t?void 0:t.playerId)===ea.lT.Modal,L=null!==(c=null===(d=window)||void 0===d?void 0:d.ROUTE_PARAMS)&&void 0!==c?c:(0,E.parse)(null===(s=window)||void 0===s?void 0:null===(u=s.location)||void 0===u?void 0:u.search),R=(0,eC.zD)()||(null==L?void 0:L.tab_name)||(0,A.Rs)("tab_name")||"",N={startTime:0,acc:0},M=e=>{if(f=Date.now(),y=!1,k&&!(null==t?void 0:t.paused)&&(h=!1),!!(null==t?void 0:t.video))v=t.currentTime,I=t.vtype,C="string"==typeof e?e:"play"},j=()=>{k&&(h=!1),p=1},D=(e,r)=>{var a,d,u,s,c,h,y,w,E,k,L,M,j,D,F,V,B,O,U,H,W,z,Z,q,$,K,Y,Q,J,X,ee,et;let{author_id:ei,group_id:el,playlet_id:eo,log_pb:en,isFromNextAutoPlay:er,vduration:ea,extraParams:ed,pic_cnt:eu,aweme_type:es,isMini:ec,trending_topic:ev,first_tag_name:ef,top:em,is_click_cover:ep,is_pure:eg,is_insert_wallpaper:eh,is_landscape:ex,bitRate:eC,latest_group_id:eb,if_first_big_card:eE}=o(),eS=n(),ek=Date.now()-f,eT=t.cumulateTime-m;if(x.Le.getConfig(x.gI.IsSearchOuterAsync)){x.Le.setConfig(x.gI.IsSearchOuterAsync,!1);return}if(!f||!t||!el||Date.now()-_<100||ek<100)return;let eL=0;((0,A.Rs)("modeFrom")===rL.MODE_FROM||(0,A.Rs)("modeFrom")===rL.MODE_FROM_SEARCH)&&(eL=1);let eA=(0,A.Rs)("if_from_widget"),eR=l>0?f-l:0;l=0;let{isH265:eN}=(0,ry.Z)({awemeInfo:i,player:t}),eP=(null==t?void 0:null===(a=t.curDefinition)||void 0===a?void 0:a.bitrate)||eC||0,eM=(null===(d=t.curDefinition)||void 0===d?void 0:d.realBitrate)||0,ej=(0,ra.e)(ek/1e3*eM),eD=(null==t?void 0:null===(c=t.plugins)||void 0===c?void 0:null===(s=c.autoplaysettingplugin)||void 0===s?void 0:null===(u=s.config)||void 0===u?void 0:u.nextAutoPlay)||(null==t?void 0:null===(w=t.plugins)||void 0===w?void 0:null===(y=w.searchautoplaysettingplugin)||void 0===y?void 0:null===(h=y.config)||void 0===h?void 0:h.nextAutoPlay),eF=String(void 0===eD?null!=er?er:0:eD),{memory:eV={},battery:eB}=(0,rR.J)()||{};N.startTime&&(N.acc+=Date.now()-N.startTime,N.startTime=0);let eO=(null===(E=window.EXPOSE_DATA)||void 0===E?void 0:E.landingPage)==="discover",eU=(null===(k=window.EXPOSE_DATA)||void 0===k?void 0:k.landingPage)==="follow",eH=eO&&(null===(L=window.EXPOSE_DATA)||void 0===L?void 0:L.landingMode)!==2&&(null===(M=window.EXPOSE_DATA)||void 0===M?void 0:M.landingMode)!==3,eW=null!==(J=null!==(Q=(0,A.Rs)("enter_method"))&&void 0!==Q?Q:eO||eU?"default_landing":void 0)&&void 0!==J?J:"other";n3.Z.sendLog("playTime",(0,G._)((0,b._)((0,G._)((0,b._)((0,G._)((0,b._)((0,G._)((0,b._)((0,G._)((0,b._)({is_click_cover:ep,is_insert_wallpaper:eh,is_visible:String(e?1:0),duration:ek,duration_moving:eT,duration_waiting:N.acc,report_reason:r,duration_error:eR,play_time:f,from_percent:1e3*v/ea,to_percent:(null==t?void 0:t.currentTime)*1e3/ea,percentage:(null==t?void 0:t.currentTime)*1e3/ea,is_auto_play:eF,urlParamList:["trending_topic","previous_page"],enter_method:eW,tab_name:R,author_id:ei,enter_from:(0,e_.mo)(),enter_from_merge:(0,rS.z)(""),group_id:el,playlet_id:eo,log_pb:en,video_detail_enter_from:(0,rS.z)("web_link"),speed:String(null==t?void 0:t.playbackRate),is_loop:String(p),is_full_screen:(0,ey.r)()?"1":"0",is_full_webscreen:tB.s.getIsPageFullscreen()?"1":"0",is_author_card_expand:(null===(j=x.Le.getConfig(x.gI.IsCollapseAuthorCard))||void 0===j?void 0:j.isCollapseAuthorCard)?0:1,from_follow_list:(null===(D=x.Le.getConfig(x.gI.FromFollowList))||void 0===D?void 0:D.tag)?"1":"0",from_push:P.Q.getItem({sKey:T.CookieKeys.FromClientPush})?1:0,is_mute:(null==t?void 0:t.muted)?"1":"0"},(0,ew.t)()),{mute_type:null===(F=x.Le.getConfig(x.gI.ForceMuted))||void 0===F?void 0:F.currentMuteType,from_academy:eL,pic_cnt:eu,aweme_type:es,trending_topic:ev,first_tag_name:ef,top:em,is_pure:eg,is_from_ad:(0,g.Jt)(i)?1:0,is_bytevc1:eN,browser_height:(0,eI.P6)(),browser_width:(0,eI.wi)(),browser_ratio:(0,eI.P6)()/(0,eI.wi)(),is_landscape:ex,stage:`${C}-${S}`}),(0,r_.Z)(),ed,eS.playTime||{}),{is_force:(null===(V=x.Le.getConfig(x.gI.ForceMuted))||void 0===V?void 0:V.currentMuteType)==="browser"?"1":"0",video_time:(0,rk.n)(null==i?void 0:null===(B=i.video)||void 0===B?void 0:B.duration),auto_play_mode:null===(O=x.Le.getConfig(x.gI.InnerAutoPlay))||void 0===O?void 0:O.mode,seo_vids:rN.t("seo_vids")||"",video_play_method:null!==(X=x.Le.getConfig(x.gI.VideoPlayMethod))&&void 0!==X?X:"auto",if_invisible:(0,na.Vr)()?"1":"0",is_small_window:(0,na.QD)()?"1":"0",is_top:(0,na.k)()?"1":"0",url_source:null!==(ee=null==i?void 0:null===(U=i.continationInfo)||void 0===U?void 0:U.urlSource)&&void 0!==ee?ee:["recommend","personal_homepage"].includes((0,e_.vM)())?P.Q.getItem({sKey:T.CookieKeys.UrlSourceForBrowserPlugin}):"",play_order:(0,nP.G)(),play_size:ej,video_bitrate:eP,audio_bitrate:(null===(W=t.curDefinition)||void 0===W?void 0:null===(H=W.audioDefinition)||void 0===H?void 0:H.bitrate)||0,real_bitrate:eM,latest_group_id:eb,vduration:ea,vtype:I}),(null==t?void 0:null===(q=t.plugins)||void 0===q?void 0:null===(Z=q.srplugin)||void 0===Z?void 0:null===(z=Z.getStat)||void 0===z?void 0:z.call(Z))||{}),{video_quality:null==t?void 0:null===($=t.curDefinition)||void 0===$?void 0:$.qualityType,gear_name:null==t?void 0:null===(K=t.curDefinition)||void 0===K?void 0:K.gearName,if_continued_play:x.Le.getConfig(x.gI.PlayRecord)?oe(i.awemeId)?1:0:"",rate:x.Le.getConfig(x.gI.PlayRecord)?(null==t?void 0:t.currentTime)/(null==t?void 0:t.duration):""}),(0,rv.m)({player:t}),(0,rv.B)({player:t}),(0,rA.K)(i)),{if_from_widget:eA?1:0,from_click_group_id:null!==(et=null==i?void 0:i.insertId)&&void 0!==et?et:"",column_type:(null==ed?void 0:ed.column_type)||(null==ed?void 0:null===(Y=ed.search_params)||void 0===Y?void 0:Y.column_type),memory_js_heap_size_limit:eV.jsHeapSizeLimit,memory_used_js_heap_size:eV.usedJSHeapSize,memory_total_js_heap_size:eV.totalJSHeapSize,memory_free_js_heap_size:eV.freeJSHeapSize,memory_free_level:eV.freeLevel,memory_use_level:eV.usedLevel,battery_charging:null==eB?void 0:eB.charging,battery_level:null==eB?void 0:eB.level,if_first_big_card:eE}),(0,rT.Wc)()),{is_recommend:"default_landing"===eW?Number(eH):void 0,is_selected_label:(null==i?void 0:i.weeklyRecommend)?1:0}),!1),"seeking"!==r&&(0,rP.y)((e,t)=>n3.Z.sendLog(e,t,!1)),f=Date.now(),_=Date.now(),m=t.cumulateTime,I=t.vtype,C="reported",(0,rj.y)(t,p,i),N.acc=0},F=ti()(()=>{if(!w&&(null==t?!void 0:!t.paused))S="seeking",D("visible"===document.visibilityState,"seeking")},500,{leading:!0,trailing:!1}),V=ti()(()=>{M("seeked"),w=!1},500,{leading:!1,trailing:!0}),B=e=>{S=e,D("visible"===document.visibilityState,e),M(e)},O=()=>{if(k&&(h=!0),!a.current&&!(0,eh.Nr)(location.pathname)){y=!0;return}B("pause"),y=!0},U=()=>{k&&!h&&B("destroy")},H=e=>{t.video&&!(null==t?void 0:t.paused)&&(S="changetab",D(e,"page_visibility_change"),M("changetab"))},W=()=>{if(!y&&!t.isSeeking)B("degrade")},z=()=>{if(!t.paused)B("changeurl"),w=!0},Z=()=>{l=Date.now()},q=()=>{if(!t.isSeeking&&!t.paused)N.startTime=Date.now()},$=()=>{N.startTime&&(N.acc+=Date.now()-N.startTime,N.startTime=0)};return t.on("error",Z),t.on("seeked",V),t.on("play",M),t.on("replay",j),t.on("seeking",F),t.on("pause",O),t.on("degrade",W),t.on("urlchange",z),(0,rM.vP)(H),t.once("destroy",U),t.on(en.Events.WAITING,q),t.on(en.Events.PLAYING,$),t.on(en.Events.TIME_UPDATE,$),()=>{t.off("error",Z),t.off("seeked",V),t.off("seeking",F),t.off("play",M),t.off("replay",j),t.off("pause",O),t.off("destroy",U),t.off("degrade",W),t.off("urlchange",z),t.off(en.Events.WAITING,q),t.off(en.Events.PLAYING,$),t.off(en.Events.TIME_UPDATE,$),!y&&B("unmount"),(0,rM.xC)(H),r.current=0}}},[i,t,l]),(0,v.useEffect)(()=>{if(t){let e=()=>{t.errored=0,!r.current&&(r.current=Date.now())};return t.on(en.Events.PLAY,e),()=>{t.off(en.Events.PLAY,e)}}},[t])}({player:i,awemeInfo:t,isActive:l,getLogInfo:a,getSpecialParams:u}),!function(e){let{player:t,awemeInfo:i,isActive:l}=e,{getLogInfo:o}=e;(0,v.useEffect)(()=>{if(!t||!l)return;let e=e=>{let{author_id:t,group_id:i,log_pb:l,extraParams:n}=o();n3.Z.sendLog("clickVideoSpeed",(0,b._)({urlParamList:["previous_page"],author_id:t,group_id:i,log_pb:l,enter_from:(0,t6.yW)(),speed:Number(e).toFixed(2),is_small_window:(0,na.QD)()?"1":"0",player_display_mode:(0,e_.Ok)()},n))};return t.on(tV.B.PlayRatioChange,e),()=>{t.off(tV.B.PlayRatioChange,e)}},[t,i,l])}({player:i,awemeInfo:t,isActive:l,getLogInfo:a}),!function(e){let{player:t,awemeInfo:i,isActive:l}=e,{getLogInfo:o}=e;(0,v.useEffect)(()=>{if(!t||!l)return;let e=e=>{if((null==e?void 0:e.action)==="switch_play_pause"){var t;let l="pauseVideo";l=e.paused?"startVideo":"pauseVideo";let n=null!==(t=e.pluginName)&&void 0!==t?t:"click",{extraParams:r,isMini:a}=o();n3.Z.sendLog(l,(0,G._)((0,b._)({enter_from:(0,t6.yW)(),click_method:n},r),{is_small_window:(0,na.QD)()?"1":"0",player_display_mode:(0,e_.Ok)(),group_id:i.awemeId||""}))}};return t.on(en.Events.USER_ACTION,e),()=>{t.off(en.Events.USER_ACTION,e)}},[t,i,l])}({player:i,awemeInfo:t,isActive:l,getLogInfo:a}),!function(e){let{player:t,awemeInfo:i,isActive:l}=e,{getLogInfo:o}=e;(0,v.useEffect)(()=>{if(!t||!l)return;let e=e=>{if((null==e?void 0:e.action)==="change_muted"||(null==e?void 0:e.action)==="change_volume"){let l=!1,{extraParams:n}=o();(null==e?void 0:e.action)==="change_muted"?(n3.Z.sendLog("clickVolume",(0,b._)({enter_from:(0,t6.yW)(),status:e.muted?"1":"0",player_display_mode:(0,e_.Ok)(),group_id:null==i?void 0:i.id},n)),(null==e?void 0:e.muted)&&(l=!0)):e.volume>0&&(l=!0),l&&(null==t||t.emit("openVolume"))}};return t.on(en.Events.USER_ACTION,e),()=>{t.off(en.Events.USER_ACTION,e)}},[t,i,l])}({player:i,awemeInfo:t,isActive:l,getLogInfo:a}),!function(e){let{player:t,awemeInfo:i,isActive:l}=e;(0,v.useRef)({isDrag:!1}),(0,v.useEffect)(()=>{if(!t||!l)return;let e=e=>{var l,o,n,r;return{position:(null==t?void 0:t.currentTime)||0,enter_from:(0,e_.mo)(),enter_from_merge:(0,e_.vM)(),tab_name:(0,eC.zD)()||(0,A.Rs)("tab_name")||"",rate:e.percent,action:e.currentTime>e.prePlayTime?"forward":"rewind",is_small_window:(0,na.QD)()?"1":"0",is_chapter_bar:(null==i?void 0:null===(l=i.chapterInfo)||void 0===l?void 0:l.status)?1:0,chapter_index:(0,ro.P)({awemeInfo:i,currentTime:e.currentTime}),group_id:null==i?void 0:i.awemeId,author_id:null==i?void 0:null===(o=i.authorInfo)||void 0===o?void 0:o.uid,vduration:null==i?void 0:null===(n=i.video)||void 0===n?void 0:n.duration,if_continued_play:x.Le.getConfig(x.gI.PlayRecord)?oe(i.awemeId)?1:0:"",before_rate:1e3*e.prePlayTime/(null==i?void 0:null===(r=i.video)||void 0===r?void 0:r.duration),before_position:e.prePlayTime,player_display_mode:(0,e_.Ok)()}},o=t=>{(null==t?void 0:t.action)==="click"&&n3.Z.sendLog("progressClick",(0,G._)((0,b._)({},e(t)),{click_method:"click"}))};t.on(en.Events.USER_ACTION,o);let n=t.getPlugin("progress"),r=t=>{n3.Z.sendLog("progressClick",(0,G._)((0,b._)({},e(t)),{click_method:"drag"}))};return n.addCallBack("dragend",r),()=>{t.off(en.Events.USER_ACTION,o),n.removeCallBack("dragend",r)}},[t,i,l])}({player:i,awemeInfo:t,isActive:l}),!function(e){let{player:t,awemeInfo:i,isActive:l}=e,{getLogInfo:o}=e;(0,v.useEffect)(()=>{if(!t||!l)return;let e=e=>{let{getEnterFromDynamic:t,extraParams:l}=o();if(e.isInnerReset)return;let n=(null==t?void 0:t())||(0,e_.mo)(),r=(0,G._)((0,b._)({enter_from:n},l,e.logParams||{}),{group_id:null==i?void 0:i.awemeId,is_full_screen:(0,ey.r)()?"1":"0",is_full_webscreen:tB.s.getIsPageFullscreen()?"1":"0",player_display_mode:(0,e_.Ok)()});e.isOn&&n3.Z.sendLog("openPureMode",r),e.isOn||n3.Z.sendLog("closePureMode",r)};return t.on(tV.B.ImmersiveSwitchChange,e),()=>{t.off(tV.B.ImmersiveSwitchChange,e)}},[t,i,l])}({player:i,awemeInfo:t,isActive:l,getLogInfo:a}),!function(e){let{player:t,awemeInfo:i,isActive:l}=e,{getLogInfo:o,getH265DegradeReportFlag:n,getSupportHwClientFlag:r}=e,a=(0,v.useRef)([]),d=(0,v.useRef)(0),u=(0,v.useRef)(""),s=(0,v.useRef)([]),c=nv();(0,v.useEffect)(()=>{var e;let v;(u.current!==(null==i?void 0:i.awemeId)||!l||!i)&&(u.current=null==i?void 0:i.awemeId,a.current=[],d.current=0);let f=t,m=()=>{let e=a.current.length;if(e){let t=a.current[e-1];n3.Z.sendLog("videoPlayFailed",t),lQ.oe.event.info({name:lQ.Mo.VideoPlayFailed,report:t})}a.current=[],s.current.forEach(e=>{n3.Z.sendLog("linkPlayFailed",e)}),s.current=[]},p=()=>{l&&m()},_=e=>{var t,u,s,c,v,m,_,h,y,w;let{group_id:I,vduration:C,extraParams:E,action_type:S,aweme_type:k,awemeRequestTime:L,qualityType:A,log_pb:R,bitrate_set_client:N}=o(),{isH265:P,codecFormat:M,videoFormat:j}=(0,ry.Z)({awemeInfo:i,player:f}),D=(0,b._)((0,G._)((0,b._)({urlParamList:["previous_page","tab_name"]},(0,rp.Z)(f),(0,r_.Z)()),{group_id:I,errorCode:(null==e?void 0:null===(t=e.mediaError)||void 0===t?void 0:t.code)||(null==e?void 0:e.errorCode)||"",errorDesc:(null==e?void 0:null===(u=e.mediaError)||void 0===u?void 0:u.message)||(null==e?void 0:e.errorMessage)||"",vduration:C,video_quality:(0,rh.S)({player:f,qualityType:A}),player_version:f.version,current_position:1e3*f.currentTime,is_video_support:Number((0,rF.k)().isSupport),host:null==e?void 0:e.host,vtype:(null==e?void 0:e.vtype)||(null==f?void 0:f.vtype),action_type:S,bitrate_set_client:N,is_ad:(0,g.Jt)(i)?1:0,is_compilation:(null==i?void 0:null===(s=i.mixInfo)||void 0===s?void 0:s.mixId)?1:0,is_full_screen:(0,ey.r)(),is_show_comment:x.Le.getConfig(x.gI.IsCommetTab)?1:0,is_active:1,is_cdn_expired:1===(0,rV.q)(f.currentSrc)?1:0,is_bytevc1:P,aweme_type:k,log_pb:R,codec_format:M,video_format:j,play_order:(0,nP.G)(),is_supported_265:nB()?1:0,is_265_degrade:n(),has_report:d.current++,is_265_degrade_client:nq({player:f}),is_support_hw:r(),is_hw:(null==f?void 0:null===(c=f.config)||void 0===c?void 0:c.mediaType)==="video"?1:0,if_invisible:(0,na.Vr)()?"1":"0",is_small_window:(0,na.QD)()?"1":"0",feature_id:null==f?void 0:null===(v=f.curDefinition)||void 0===v?void 0:v.featureId,clarity_now:null==f?void 0:null===(m=f.getClarity)||void 0===m?void 0:m.call(f,!1)}),(0,rv.m)({player:f}),(0,rv.B)({player:f}),E);if((null==e?void 0:null===(_=e.mediaError)||void 0===_?void 0:_.code)===6&&(D.aweme_info=null==f?void 0:null===(y=f.config)||void 0===y?void 0:y.url),l){if(null==f?void 0:f.errored)return;f.errored=1,n3.Z.sendLog("videoPlayFailed",D),lQ.oe.event.info({name:lQ.Mo.VideoPlayFailed,report:D})}else a.current.push(D),p();if((0,eI.G6)()&&(null==e?void 0:null===(h=e.mediaError)||void 0===h?void 0:h.code)===3&&1===P){let e=null!==(w=(0,lq.G)(T.SessionStorageKeys.DecodeError))&&void 0!==w?w:0;(0,lq.t_)(T.SessionStorageKeys.DecodeError,e+1)}},h=e=>{var t,n,r,a,d,u,c,v,m,_,g;let{group_id:h,aweme_type:y}=o(),{isH265:w,codecFormat:x,videoFormat:I}=(0,ry.Z)({awemeInfo:i,player:f}),C=rB(e.src,f.config.url).isPcdnSource,b={group_id:h,aweme_type:y,host:null==e?void 0:e.host,enter_from:(0,t6.yW)(),is_pcdn:Number(C),user_unique_id:null===(t=(0,N.Es)())||void 0===t?void 0:t.user_unique_id,src:null==e?void 0:e.src,errorDesc:null!==(m=null==e?void 0:null===(n=e.mediaError)||void 0===n?void 0:n.message)&&void 0!==m?m:null==e?void 0:e.message,errorCode:null!==(_=null==e?void 0:null===(r=e.mediaError)||void 0===r?void 0:r.code)&&void 0!==_?_:null==e?void 0:e.errorCode,vtype:null!==(g=null==e?void 0:e.vtype)&&void 0!==g?g:null==f?void 0:f.vtype,range:null==e?void 0:e.range,content_length:null==e?void 0:null===(a=e.headers)||void 0===a?void 0:a["content-length"],content_range:null==e?void 0:null===(d=e.headers)||void 0===d?void 0:d["content-range"],content_type:null==e?void 0:null===(u=e.headers)||void 0===u?void 0:u["content-type"],server_ip:null==e?void 0:null===(c=e.headers)||void 0===c?void 0:c.server_ip,x_response_cinfo:null==e?void 0:null===(v=e.headers)||void 0===v?void 0:v["x-response-cinfo"],is_bytevc1:w,codec_format:x,video_format:I,current_position:null==f?void 0:f.currentTime};l?n3.Z.sendLog("linkPlayFailed",b):(s.current.push(b),p())};i&&(p(),f&&(f.on(en.Events.ERROR,_),f.on(en.Events.SOURCE_ERROR,h)));let y=e=>{(f=e).on(en.Events.ERROR,_),f.on(en.Events.SOURCE_ERROR,h),v=()=>{f.off(en.Events.ERROR,_),f.off(en.Events.SOURCE_ERROR,h)}};return null==c||null===(e=c.on)||void 0===e||e.call(c,l4.PlayerCreated,y),()=>{var e;null==v||v(),null==f||f.off(en.Events.ERROR,_),null==f||f.off(en.Events.SOURCE_ERROR,h),null==c||null===(e=c.off)||void 0===e||e.call(c,l4.PlayerCreated,y)}},[i,l])}({player:i,awemeInfo:t,isActive:l,getLogInfo:a,getH265DegradeReportFlag:d,getSupportHwClientFlag:c}),!function(e){let{player:t,awemeInfo:i,isActive:l}=e,{getLogInfo:o,getReportNetworkSpeed:n,getH265DegradeReportFlag:r,getIsChangingVideoSrc:a,getSupportHwClientFlag:d}=e;(0,v.useEffect)(()=>{var e;if(!t||!i||!l)return;let u=0,s=0,c=0,v=!0,f={},m=(null===(e=x.Le.getConfig(x.gI.IsInModalVideo))||void 0===e?void 0:e.isInModal)||!1,p=e=>{var p,_,h,y,w,I,C,E,S,k,T,L,A,R,N,P;let{group_id:M,vduration:j,bitRate:D,qualityType:F,extraParams:V,action_type:B,aweme_type:O,video_play_mode:U,is_landscape:H,bitrate_set_client:W}=o(),{codecFormat:z,isH265:Z,videoFormat:q}=(0,ry.Z)({awemeInfo:i,player:t}),{bitrate:$}=(null==t?void 0:t.curDefinition)||{},K=(0,G._)((0,b._)((0,G._)((0,b._)((0,G._)((0,b._)((0,G._)((0,b._)({urlParamList:["previous_page","tab_name"],group_id:M,duration:e.costTime,duration_origin:e.fixedCostTime,interval:e.interval,diff_start:e.diffStart,diff_end:e.diffEnd,vduration:j,player_version:t.version,video_quality:(0,rh.S)({player:t,qualityType:F})},(0,rv.m)({player:t}),(0,rv.B)({player:t})),{video_format:q,video_fps:null==t?void 0:null===(p=t.curDefinition)||void 0===p?void 0:p.fps,video_bitrate:$||D,audio_bitrate:(null===(h=t.curDefinition)||void 0===h?void 0:null===(_=h.audioDefinition)||void 0===_?void 0:_.bitrate)||0,real_bitrate:(null===(y=t.curDefinition)||void 0===y?void 0:y.realBitrate)||0,feature_id:null===(w=t.curDefinition)||void 0===w?void 0:w.featureId,codec_format:z,internet_speed:n(t),current_position:1e3*t.currentTime,percentage_position:1e3*t.currentTime/j*100,video_play_speed:t.playbackRate,is_ad:(0,g.Jt)(i)?1:0,is_compilation:(null==i?void 0:null===(I=i.mixInfo)||void 0===I?void 0:I.mixId)?1:0,is_full_screen:(0,ey.r)(),is_show_comment:x.Le.getConfig(x.gI.IsCommetTab)?1:0,buffer_time:(0,ru._)(t),bitrate_set_client:W,is_visible:Number(!document.hidden),is_visible_when_block_start:Number(v),block_type:null==e?void 0:e.type,end_type:null==e?void 0:e.endType,host:null==e?void 0:e.host,vtype:(null==e?void 0:e.vtype)||(null==t?void 0:t.vtype),action_type:B,aweme_type:O,drop_frame:null===(C=t.videoFrameInfo)||void 0===C?void 0:C.dropped,total_play_frame:null===(E=t.videoFrameInfo)||void 0===E?void 0:E.total,drop_frame_rate:null===(S=t.videoFrameInfo)||void 0===S?void 0:S.droppedRate,drop_frame_duration:null===(k=t.videoFrameInfo)||void 0===k?void 0:k.droppedDuration,is_bytevc1:Z,video_play_mode:U,is_landscape:H,play_order:(0,nP.G)(),is_supported_265:nB()?1:0,is_265_degrade:r(),is_support_hw:d(),is_hw:(null==t?void 0:null===(T=t.config)||void 0===T?void 0:T.mediaType)==="video"?1:0,is_supported_hevc1_hw:(0,l6._u)()?1:0,is_supported_264_hw:(0,l6.b4)()?1:0,is_hw_client:(0,rf.N)(t),if_invisible:(0,na.Vr)()?"1":"0",is_small_window:(0,na.QD)()?"1":"0"}),(0,rp.Z)(t),(0,r_.Z)(),V),{preload_type:(0,rw.me)(t)?2:1,hit_preload:(0,rw.qJ)(t)}),(null==t?void 0:null===(R=t.plugins)||void 0===R?void 0:null===(A=R.srplugin)||void 0===A?void 0:null===(L=A.getStat)||void 0===L?void 0:L.call(A))||{}),{battery_charging_when_block_start:null==f?void 0:f.charging,battery_level_when_block_start:null==f?void 0:f.level}),(null==t?void 0:t.novv)||{}),{firstframed:t.firstfame?1:0,is_in_modal:m,clarity_now:null==t?void 0:null===(N=t.getClarity)||void 0===N?void 0:N.call(t,!1),is_switch:null==t?void 0:null===(P=t.getIsInSwitching)||void 0===P?void 0:P.call(t)});if("waitingEnd"===e.eventType&&1===e.type){if(!1===l)K.duration=0,K.duration_origin=0;else{let{slideStartTime:t}=x.Le.getConfig(x.gI.SlideStartTime)||{},i=a()||!t?null==e?void 0:e.costTime:Date.now()-t>(null==e?void 0:e.costTime)?null==e?void 0:e.costTime:Date.now()-t,l=a()||!t||Date.now()-t>(null==e?void 0:e.fixedCostTime)?null==e?void 0:e.fixedCostTime:Date.now()-t;K.duration=i,K.duration_origin=l}n3.Z.sendLog("videoBlock",K),lQ.oe.event.warn({name:lQ.Mo.VideoPlayBlock,report:rU()(K,["player_version","video_quality","block_type","end_type","host","vtype","duration"])})}if("waitingStart"===e.eventType){u=Date.now(),s+=1,t.config.blockCount=s,v="visible"===document.visibilityState;let{battery:e}=(0,rR.J)()||{};f=e}if("waitingEnd"===e.eventType){if(c+=1,0===u||(null==e?void 0:e.type)===1)return;n3.Z.sendLog("videoBlock",K),lQ.oe.event.warn({name:lQ.Mo.VideoPlayBlock,report:rU()(K,["player_version","video_quality","block_type","end_type","host","vtype","duration"])}),u=0}},_=()=>{var e,i,l,n,r,a,d;if(null===(e=x.Le.getConfig(x.gI.AbtestData))||void 0===e?void 0:e.longtask)return;let{extraParams:u}=null!==(d=o())&&void 0!==d?d:{};n3.Z.sendLog("videoBlockCount",(0,b._)({block_count:s,differ_count:s-c,player_version:t.version,drop_frame:null===(i=t.videoFrameInfo)||void 0===i?void 0:i.dropped,total_play_frame:null===(l=t.videoFrameInfo)||void 0===l?void 0:l.total,drop_frame_rate:null===(n=t.videoFrameInfo)||void 0===n?void 0:n.droppedRate,drop_frame_duration:null===(r=t.videoFrameInfo)||void 0===r?void 0:r.droppedDuration,is_bytevc1:null==t?void 0:null===(a=t.curDefinition)||void 0===a?void 0:a.isH265,play_order:(0,nP.G)(),is_in_modal:m},(0,rp.Z)(t),u))};return t.on(en.Events.XGLOG,p),window.addEventListener("beforeunload",_),()=>{_(),t.off(en.Events.XGLOG,p),window.removeEventListener("beforeunload",_)}},[t,i,l])}({player:i,awemeInfo:t,isActive:l,getLogInfo:a,getReportNetworkSpeed:s,getH265DegradeReportFlag:d,getIsChangingVideoSrc:r,getSupportHwClientFlag:c}),!function(e){let{player:t,awemeInfo:i,isActive:l}=e,{getLogInfo:o,getReportNetworkSpeed:n,getH265DegradeReportFlag:r,getIsChangingVideoSrc:a,getSupportHwClientFlag:d}=e,u=nv(),s=(0,v.useRef)(!1),c=(0,v.useRef)(""),f=()=>{var e,t,l;let o=x.Le.getConfig(x.gI.LynxInfo);return(!!x.Le.getConfig(x.gI.hasReportVideoRequest)||(null==o?void 0:o.swiperIndex)===void 0||!((null==o?void 0:null===(e=o.awemeList)||void 0===e?void 0:e.length)>0)||!((null===(t=o.progressBarInfo)||void 0===t?void 0:t.timeCurrent)>0)||(null===(l=o.awemeList[null==o?void 0:o.swiperIndex])||void 0===l?void 0:l.aweme_id)!==i.awemeId)&&!0};(0,v.useEffect)(()=>{if(!l&&(s.current=!1),l){var e,i,o,n,r,a;c.current="";let l=null==t?void 0:null===(o=t.plugins)||void 0===o?void 0:null===(i=o.mp4encryptplayer)||void 0===i?void 0:null===(e=i.states)||void 0===e?void 0:e.length;l>0&&(c.current=(null==t?void 0:null===(a=t.plugins)||void 0===a?void 0:null===(r=a.mp4encryptplayer)||void 0===r?void 0:null===(n=r.states[l-1])||void 0===n?void 0:n.state)||"")}},[l]),(0,v.useEffect)(()=>{s.current=!1;let e=t,l=t=>{if("firstFrame"===t.eventType&&!s.current){var l,u,v,m,p,_,h,y,w,I,C,E,S,k,L,A,R,N,P,M,D,F,V,B,O,U,H,W,z,Z,q,$,K,Y,Q,J,X,ee,et,ei,el,eo,er,ea,ed,eu,es,ec,ev,ef,em,ep,eh,ew;s.current=!0;let{group_id:ex,vduration:eI,bitRate:eC,qualityType:eb,extraParams:eE,bitrate_set:eS,bitrate_set_client:ek,quality_bitrate:eT,action_type:eL,aweme_type:eA,video_play_mode:eR,is_landscape:eN}=o(),{codecFormat:eP,isH265:eM,videoFormat:ej}=(0,ry.Z)({awemeInfo:i,player:e});e.firstfame=1;let{preloadTime:eD,preloadSize:eF,startBuffer:eV,audioDuration:eB,minDuration:eO}=(0,rc.P)(e),{bitrate:eU}=(null==e?void 0:e.curDefinition)||{},{slideStartTime:eH}=x.Le.getConfig(x.gI.SlideStartTime)||{},eW=null==i?void 0:null===(u=i.video)||void 0===u?void 0:null===(l=u.bitRateList)||void 0===l?void 0:l.find(t=>{var i;return t.qualityType===(null==e?void 0:null===(i=e.curDefinition)||void 0===i?void 0:i.qualityType)}),{currentLowDecodeCount:eG=0,decoderMode:ez=0,lowdecodeVV:eZ=0,vv:eq=0}=(null===(m=e.video)||void 0===m?void 0:null===(v=m.getStats)||void 0===v?void 0:v.call(m))||{},e$=a(),eK=Date.now(),eY=e$||!eH?null==t?void 0:t.costTime:eK-eH;if(performance&&ex)try{let e="@@first_frame_duration_"+ex,t="@@first_frame_start"+ex;(null===(X=(ee=performance).getEntriesByName)||void 0===X?void 0:X.call(ee,t,"mark").length)>0&&(null===(et=(ei=performance).measure)||void 0===et||et.call(ei,e,t),null===(el=(eo=performance).clearMarks)||void 0===el||el.call(eo,t),null===(er=(ea=performance).clearMeasures)||void 0===er||er.call(ea,e))}catch(e){}let eQ=x.Le.getConfig(x.gI.StartPlayTime),eJ=!e$&&eH&&eQ?eQ-eH:-1,eX=null==e?void 0:e.video,e0={},e1=-1;!(null===(p=x.Le.getConfig(x.gI.AbtestData))||void 0===p?void 0:p.longtask)&&(e1=Number(!!(null==eX?void 0:eX.parentNode)),e0=null==eX?void 0:eX.getBoundingClientRect());let e2=0,e3=x.Le.getConfig(x.gI.GeneralSearchVideoSlideIntoVisionTime);"general_search"===(0,t6.yW)()&&0!==e3&&(e2=Date.now()-e3);let e6=x.Le.getConfig(x.gI.MenuClick)||0,e5=0;e6&&(x.Le.setConfig(x.gI.MenuClick,0),e5=eK-e6);try{let i=(null==t?void 0:t.vtype)||(null==e?void 0:e.vtype),l=x.Le.getConfig(x.gI.recentVtypes)||[];l.push(i),x.Le.setConfig(x.gI.recentVtypes,l.slice(0,5))}catch(e){}let e4=(0,G._)((0,b._)((0,G._)((0,b._)((0,G._)((0,b._)((0,G._)((0,b._)((0,G._)((0,b._)({},rb(!0)),{urlParamList:["previous_page","tab_name"]}),(0,rp.Z)(e),(0,r_.Z)()),{group_id:ex}),rg(ex)),{bitrate_set:eS,bitrate_set_client:ek,menu_total_duration:e5,player_first_frame:null==t?void 0:t.costTime,buffer:null==t?void 0:t.buffer,duration:eY,vduration:eI,video_width:null==eX?void 0:eX.videoWidth,video_height:null==eX?void 0:eX.videoHeight,video_ratio:(null==eX?void 0:eX.videoWidth)/(null==eX?void 0:eX.videoHeight),video_rect_width:null==e0?void 0:e0.width,video_rect_height:null==e0?void 0:e0.height,is_over_gear:(0,rW.E)(e),is_over_rect:(null==e?void 0:null===(_=e.config)||void 0===_?void 0:_.isOverRect)?1:0,device_ratio:null!==(ed=window.devicePixelRatio)&&void 0!==ed?ed:-1,has_pkt_offset:(null==e?void 0:null===(w=e.curDefinition)||void 0===w?void 0:null===(y=w.pktOffsetMap)||void 0===y?void 0:null===(h=y.find)||void 0===h?void 0:h.call(y,e=>(null==e?void 0:e.time)===5))?1:0,has_first_segment_range:(null==e?void 0:null===(I=e.curDefinition)||void 0===I?void 0:I.first_segment_range)?1:0,feature_id:null==e?void 0:null===(C=e.curDefinition)||void 0===C?void 0:C.featureId,player_version:e.version,video_quality:(0,rh.S)({player:e,qualityType:eb}),video_size:null==e?void 0:null===(E=e.curDefinition)||void 0===E?void 0:E.size,video_fps:null==e?void 0:null===(S=e.curDefinition)||void 0===S?void 0:S.fps,definition:null===(k=e.curDefinition)||void 0===k?void 0:k.definition,video_format:ej,video_bitrate:eU||eC,audio_bitrate:(null===(A=e.curDefinition)||void 0===A?void 0:null===(L=A.audioDefinition)||void 0===L?void 0:L.bitrate)||0,real_bitrate:(null===(R=e.curDefinition)||void 0===R?void 0:R.realBitrate)||0,codec_format:eP,internet_speed:n(e),if_invisible:(0,na.Vr)()?"1":"0",is_small_window:(0,na.QD)()?"1":"0",preload_time:(0,ra.N)(eD),preload_time_audio:eB,preload_time_min:eO,preload_size:eF||0,preload_type:(0,rw.me)(e)?2:1,hit_preload:(0,rw.qJ)(e),start_buffer:eV,is_mute:(null==e?void 0:e.muted)?"1":"0",player_volume:null==e?void 0:e.volume,video_mute:(null==e?void 0:null===(N=e.video)||void 0===N?void 0:N.muted)?"1":"0",video_volume:null==e?void 0:null===(P=e.video)||void 0===P?void 0:P.volume,local_mute:(0,j.$o)(T.LocalStorageKeys.PLAYER_IS_MUTE),local_volume:(0,j.$o)(T.LocalStorageKeys.PLAYER_VOLUME),equalize_state:null!==(eu=null==e?void 0:e.equalizeVolumeState)&&void 0!==eu?eu:0,lufs:null!==(es=null==e?void 0:e.lufs)&&void 0!==es?es:-12,use_new_mammon_worklet_processor:null!==(ec=null==e?void 0:e.useMammonWorkletProcessorV3)&&void 0!==ec&&ec,use_new_mammon_worklet_processor_with_wasm:null!==(ev=null==e?void 0:e.useMammonWorkletProcessorV3Wasm)&&void 0!==ev&&ev,hit_new_mammon_worklet_processor:null!==(ef=null==e?void 0:e.hitMammonWorkletProcessorV3)&&void 0!==ef&&ef,volume_balance_longtest_consume_time:null!==(em=null==e?void 0:null===(M=e.effectNodeConsumeTime)||void 0===M?void 0:M.longest)&&void 0!==em?em:-2,volume_balance_shortest_consume_time:null!==(ep=null==e?void 0:null===(D=e.effectNodeConsumeTime)||void 0===D?void 0:D.shortest)&&void 0!==ep?ep:-2,is_in_modal:(null===(F=x.Le.getConfig(x.gI.IsInModalVideo))||void 0===F?void 0:F.isInModal)||!1,host:null==t?void 0:t.host,vtype:(null==t?void 0:t.vtype)||(null==e?void 0:e.vtype),is_video_support:Number((0,rF.k)().isSupport),quality_bitrate:eT,action_type:eL,is_ad:(0,g.Jt)(i)?1:0,is_compilation:(null==i?void 0:null===(V=i.mixInfo)||void 0===V?void 0:V.mixId)?1:0,web_rid:null==i?void 0:null===(U=i.authorInfo)||void 0===U?void 0:null===(O=U.roomData)||void 0===O?void 0:null===(B=O.owner)||void 0===B?void 0:B.web_rid,is_full_screen:(0,ey.r)(),is_show_comment:x.Le.getConfig(x.gI.IsCommetTab)?1:0,aweme_type:eA,is_bytevc1:eM,is_hevc_error_down:null!==(eh=null==e?void 0:e.isHevcErrorDown)&&void 0!==eh?eh:0,video_play_mode:eR,is_landscape:eN,current_low_decode_count:eG,decoder_mode:ez,h265_failure_rate:10===eq?eZ/eq:-1,play_order:(0,nP.G)(),first_video_after_cold_start:(0,rH.R)(0)&&1===(0,nP.G)(),is_supported_265:nB()?1:0,is_265_degrade:r(),is_265_degrade_client:nq({player:e}),is_265_degrade_web:nZ({player:e}),is_support_hw:d(),is_hw:(null==e?void 0:null===(H=e.config)||void 0===H?void 0:H.mediaType)==="video"?1:0,is_supported_hevc1_hw:(0,l6._u)()?1:0,is_supported_264_hw:(0,l6.b4)()?1:0,is_hw_client:(0,rf.N)(e),is_support_hdr:en.Sniffer.isHdrSupported(),is_support_dolby_hdr:en.Sniffer.isDolbyHdrSupported(),active_stage:c.current,slide_start_to_play:eJ,play_to_first_frame:eQ?eK-eQ:-1,click_to_modal_first_frame:rZ(),gear_name:null==e?void 0:null===(W=e.curDefinition)||void 0===W?void 0:W.gearName,media_type:null==e?void 0:null===(z=e.config)||void 0===z?void 0:z.mediaType,is_video_in_dom:e1,is_multiple:(null==e?void 0:e.isMultiple)?1:0,buffered_before_active:Math.floor(null==e?void 0:e.bufferedBeforeActive),loadstart_before_active:null==e?void 0:e.loadstartBeforeActive,loadeddata_before_active:null==e?void 0:e.loadeddataBeforeActive,load_range_type:null==e?void 0:null===($=e.plugins)||void 0===$?void 0:null===(q=$.mp4encryptplayer)||void 0===q?void 0:null===(Z=q.config)||void 0===Z?void 0:Z.loadRangeType,load_range_type_preloader:null===(Q=window)||void 0===Q?void 0:null===(Y=Q.playerPreloader)||void 0===Y?void 0:null===(K=Y._config)||void 0===K?void 0:K.loadRangeType}),(0,n9.$)({player:e,awemeInfo:i}),(0,rG.D)({isChangeVideoSrc:e$,player:e,data:t,slideStartTime:eH}),(0,rv.m)({player:e}),(0,rv.B)({player:e}),eE),{general_search_duration:e2}),(null==e?void 0:e.novv)||{},(null==e?void 0:null===(J=e.stat)||void 0===J?void 0:J.stage)||{},(null==eW?void 0:eW.mvmaf)||{},rq(null==eW?void 0:eW.ufq)),{preplay_stat:(null==e?void 0:e.preplayStat)?1:0,prepause_stat:(null==e?void 0:e.prepauseStat)?1:0,end_type:null==t?void 0:t.endType});f()&&n3.Z.sendLog("videoPlayQuality",(0,G._)((0,b._)({},e4),{listen_device:(0,e_.nj)(),start_play_clarity_type:null==e?void 0:null===(ew=e.getClarity)||void 0===ew?void 0:ew.call(e,!0)})),rz(e4),eg.emit(eg.EVENT.firstFrame)}};if(!e){let t;let o=o=>{if(i){if((e=o).dyLogStat&&e.dyLogStat.firstFrame){var n;(null===(n=e.dyLogStat.firstFrame.awemeInfo)||void 0===n?void 0:n.awemeId)===i.awemeId&&(e.dyLogStat.firstFrame.data&&e.isReusePlayer&&(e.dyLogStat.firstFrame.data.costTime=0),l(e.dyLogStat.firstFrame.data)),e.dyLogStat.firstFrame=null}let r=n7();r.firstFrame.used=!0,r.firstFrame.data&&(l(r.firstFrame.data),r.firstFrame.data=null),e.on(en.Events.XGLOG,l),t=()=>{e.off(en.Events.XGLOG,l)}}};return u.on(l4.PlayerCreated,o),()=>{null==t||t(),u.off(l4.PlayerCreated,o)}}return e.on(en.Events.XGLOG,l),()=>{e.off(en.Events.XGLOG,l)}},[i])}({player:i,awemeInfo:t,isActive:l,getLogInfo:a,getReportNetworkSpeed:s,getH265DegradeReportFlag:d,getIsChangingVideoSrc:r,getSupportHwClientFlag:c}),!function(e){let{player:t,awemeInfo:i,isActive:l,index:o}=e,n=(0,v.useRef)(!1);(0,v.useEffect)(()=>{var e,r;let a;if(!t||!i||!l)return;let d=()=>{eg.emit(eg.EVENT.pageFirstFrameLoadStart)},u=()=>{if(x.Le.setConfig(x.gI.isVideoPlayed,!0),eg.emit(eg.EVENT.pageFirstFrameLoaded),n.current=!0,(0,M.B)())return;let e=a||Date.now();try{if(x.Le.getConfig(x.gI.MarkFirstEnter)){var t,l,r,d,u,s,c,v,f,m,p,_,g,h,y,w,I,C,b,E;x.Le.setConfig(x.gI.MarkFirstEnter,null);let n=(null==i?void 0:null===(r=i.video)||void 0===r?void 0:null===(l=r.playApi)||void 0===l?void 0:null===(t=l.startsWith)||void 0===t?void 0:t.call(l,"blob"))?1:0;(0,D.DT)()?(0,rn.sE)(i,o):(null===(u=performance)||void 0===u?void 0:null===(d=u.timing)||void 0===d?void 0:d.fetchStart)&&n3.Z.sendLog("prfFirstFeedShow",{feed_total_duration:e-(null===(c=performance)||void 0===c?void 0:null===(s=c.timing)||void 0===s?void 0:s.fetchStart),is_landscape:(null==i?void 0:null===(v=i.video)||void 0===v?void 0:v.width)>(null==i?void 0:null===(f=i.video)||void 0===f?void 0:f.height)?1:0,group_id:null==i?void 0:i.awemeId,landing_page:(0,t6.yW)(),vduration:null==i?void 0:null===(m=i.video)||void 0===m?void 0:m.duration,if_invisible:(0,na.Vr)()?"1":"0",is_small_window:(0,na.QD)()?"1":"0",real_index:o,is_cache_video:n,aweme_type:null==i?void 0:i.awemeType,is_quick_player:(null===(_=window)||void 0===_?void 0:null===(p=_.__QUICK_PLAYER)||void 0===p?void 0:p.firstLoadDataTimeStamp)?1:0});try{n3.Z.sendLog("prfFirstFeedFirstFrameShow",{feed_total_duration:e-(null===(h=performance)||void 0===h?void 0:null===(g=h.timing)||void 0===g?void 0:g.fetchStart),is_landscape:(null==i?void 0:null===(y=i.video)||void 0===y?void 0:y.width)>(null==i?void 0:null===(w=i.video)||void 0===w?void 0:w.height)?1:0,group_id:null==i?void 0:i.awemeId,landing_page:(0,t6.yW)(),real_index:o,is_cache_video:n,aweme_type:null==i?void 0:i.awemeType,is_quick_player:(null===(C=window)||void 0===C?void 0:null===(I=C.__QUICK_PLAYER)||void 0===I?void 0:I.firstLoadDataTimeStamp)?1:0}),((null===(b=x.Le.getConfig(x.gI.AbtestData))||void 0===b?void 0:b.prefetchFirst)||(null===(E=x.Le.getConfig(x.gI.AbtestData))||void 0===E?void 0:E.prefetchFirstServer))&&eg.emit(eg.EVENT.firstLoadMore)}catch(e){}}"recommend"===(0,t6.yW)()&&x.Le.getConfig(x.gI.FirstEnterRecommend)&&(x.Le.setConfig(x.gI.FirstEnterRecommend,!1),eg.emit(eg.EVENT.firstEnterVideoPlay))}catch(e){}},s=()=>{if(x.Le.setConfig(x.gI.isVideoPlayed,!0),!(0,M.B)()&&!!n.current)u()},c=n7();c.prfFirstFeedShow&&!c.prfFirstFeedShow.used&&c.prfFirstFeedShow.data&&(a=c.prfFirstFeedShow.data,u(),c.prfFirstFeedShow.used=!0),c.prfFirstFrameStart&&!c.prfFirstFrameStart.used&&c.prfFirstFrameStart.data&&(d(),c.prfFirstFrameStart.used=!0);let v=null===(r=window)||void 0===r?void 0:null===(e=r.__QUICK_PLAYER)||void 0===e?void 0:e.firstLoadDataTimeStamp;return v&&(a=v,u()),t.on(en.Events.PLAY,s),t.on(en.Events.LOADED_DATA,u),t.on(en.Events.LOAD_START,d),()=>{t.off(en.Events.PLAY,s),t.off(en.Events.LOADED_DATA,u),t.off(en.Events.LOAD_START,d)}},[t,i,l,o])}({player:i,awemeInfo:t,isActive:l,index:n}),!function(e){let{player:t,awemeInfo:i,isActive:l,index:o}=e,{getLogInfo:n,getSpecialParams:r}=e,a=nv(),d=(0,v.useRef)(""),u=(0,v.useRef)(null),s=(0,v.useRef)(!1);(0,v.useEffect)(()=>{!l&&(d.current="")},[l]),(0,v.useEffect)(()=>{i.awemeId!==d.current&&(d.current="");let e=t,l=()=>{var t,l,a,c,v,f,m,p,_,h,y,w,I,C,E,S,k,L,R,N,M,j,D,F,V,B,O,U,H,W;if(d.current)return;d.current=i.awemeId;let{author_id:z,group_id:Z,log_pb:q,compilation_id:$,playlet_id:K,impressionData:Y,extraParams:Q,aweme_type:J,pic_cnt:X,trending_topic:ee,first_tag_name:et,top:ei,is_pure:el,is_click_cover:eo,is_insert_wallpaper:en,isMini:er,latest_group_id:ea,if_first_big_card:ed}=n(),{isH265:eu}=(0,ry.Z)({awemeInfo:i,player:e}),es=x.Le.getConfig(x.gI.VideoFeedList),ec=(null==es?void 0:es.autoPlayCount)||1,ev=(0,A.Rs)("if_from_widget"),ef=0;((0,A.Rs)("modeFrom")===rL.MODE_FROM||(0,A.Rs)("modeFrom")===rL.MODE_FROM_SEARCH)&&(ef=1);let em=!1,ep=(0,lq.G)(T.SessionStorageKeys.CacheRecommendActiveAwemeID);ep&&ep===Z&&(em=!0);let eg=(null===(t=window.EXPOSE_DATA)||void 0===t?void 0:t.landingPage)==="discover",eh=(null===(l=window.EXPOSE_DATA)||void 0===l?void 0:l.landingPage)==="follow",ex=eg&&(null===(a=window.EXPOSE_DATA)||void 0===a?void 0:a.landingMode)!==2&&(null===(c=window.EXPOSE_DATA)||void 0===c?void 0:c.landingMode)!==3,eb=null!==(V=null!==(F=(0,A.Rs)("enter_method"))&&void 0!==F?F:eg||eh?"default_landing":void 0)&&void 0!==V?V:"other",eE=(null==i?void 0:i.weeklyRecommend)?1:0,eS="";try{eS=(null==i?void 0:null===(B=i.logPb)||void 0===B?void 0:B.includes("impr_id"))?JSON.parse(null==i?void 0:i.logPb).impr_id:null==i?void 0:i.logPb}catch(e){}n3.Z.sendLog("videoPlay",(0,G._)((0,b._)((0,G._)((0,b._)((0,G._)((0,b._)((0,G._)((0,b._)((0,G._)((0,b._)({is_click_cover:eo,is_insert_wallpaper:en,urlParamList:["trending_topic","previous_page","keywords_index","keywords_content"],enter_method:eb,author_id:z,enter_from:(0,e_.mo)(),enter_from_merge:(0,rS.z)(""),group_id:Z,log_pb:q,compilation_id:$,playlet_id:K,is_auto_play:String((null==e?void 0:null===(m=e.plugins)||void 0===m?void 0:null===(f=m.autoplaysettingplugin)||void 0===f?void 0:null===(v=f.config)||void 0===v?void 0:v.nextAutoPlay)||(null==e?void 0:null===(h=e.plugins)||void 0===h?void 0:null===(_=h.searchautoplaysettingplugin)||void 0===_?void 0:null===(p=_.config)||void 0===p?void 0:p.nextAutoPlay)?1:0),is_visible:String("visible"===document.visibilityState?1:0),impression_data:Y,speed:`${null==e?void 0:e.playbackRate}`,auto_cnt:ec,impr_id:eS,video_detail_enter_from:(0,rS.z)("web_link"),is_full_screen:(0,ey.r)()?"1":"0",is_full_webscreen:tB.s.getIsPageFullscreen()?"1":"0",tab_name:(0,eC.zD)()||(0,A.Rs)("tab_name")||"",from_follow_list:(null===(y=x.Le.getConfig(x.gI.FromFollowList))||void 0===y?void 0:y.tag)?"1":"0",is_mute:(null==e?void 0:e.muted)?"1":"0",mute_type:null===(w=x.Le.getConfig(x.gI.ForceMuted))||void 0===w?void 0:w.currentMuteType,is_pure:el},(0,ew.t)()),{from_academy:ef,aweme_type:(null==i?void 0:i.isSlides)?151:J,pic_cnt:X,trending_topic:ee,first_tag_name:et,top:ei,browser_height:(0,eI.P6)(),browser_width:(0,eI.wi)(),browser_ratio:(0,eI.P6)()/(0,eI.wi)(),is_from_ad:(0,g.Jt)(i)?1:0,is_ad:(0,g.Jt)(i)?1:0,is_compilation:(null==i?void 0:null===(I=i.mixInfo)||void 0===I?void 0:I.mixId)?1:0,is_bytevc1:eu,video_time:(0,rk.n)(null==i?void 0:null===(C=i.video)||void 0===C?void 0:C.duration),is_force:(null===(E=x.Le.getConfig(x.gI.ForceMuted))||void 0===E?void 0:E.currentMuteType)==="browser"?"1":"0",from_push:P.Q.getItem({sKey:T.CookieKeys.FromClientPush})?1:0,auto_play_mode:null===(S=x.Le.getConfig(x.gI.InnerAutoPlay))||void 0===S?void 0:S.mode,seo_vids:rN.t("seo_vids")||"",webdriver:navigator&&navigator.webdriver?1:0,vtype:null==e?void 0:e.vtype,is_long_not_use_refresh_vid:!!(null==e?void 0:null===(k=e.config)||void 0===k?void 0:k.notUseRefreshVid),is_supported_hevc1_hw:(0,l6._u)()?1:0,is_supported_264_hw:(0,l6.b4)()?1:0,is_hevc_error_down:null!==(O=null==e?void 0:e.isHevcErrorDown)&&void 0!==O?O:0}),(0,r_.Z)(),Q,(null===(L=r())||void 0===L?void 0:L.videoPlay)||{}),{video_play_method:null!==(U=x.Le.getConfig(x.gI.VideoPlayMethod))&&void 0!==U?U:"auto",if_invisible:(0,na.Vr)()?"1":"0",is_small_window:(0,na.QD)()?"1":"0",is_top:(0,na.k)()?"1":"0"}),en&&x.Le.getConfig(x.gI.WallPaperPosition)>0?{vv_sync:1}:{}),{url_source:null!==(H=null==i?void 0:null===(R=i.continationInfo)||void 0===R?void 0:R.urlSource)&&void 0!==H?H:["recommend","personal_homepage"].includes((0,e_.vM)())?P.Q.getItem({sKey:T.CookieKeys.UrlSourceForBrowserPlugin}):"",latest_group_id:ea,expand_video_card_type:(null===(N=x.Le.getConfig(x.gI.PlayerCardInfo))||void 0===N?void 0:N.isActive)?null===(M=x.Le.getConfig(x.gI.PlayerCardInfo))||void 0===M?void 0:M.expandCardType:"",if_continued_play:x.Le.getConfig(x.gI.PlayRecord)?oe(i.awemeId)?1:0:"",rate:x.Le.getConfig(x.gI.PlayRecord)?(null==e?void 0:e.currentTime)/(null==e?void 0:e.duration):""}),(0,rA.K)(i)),{if_from_widget:ev?1:0,from_click_group_id:null!==(W=null==i?void 0:i.insertId)&&void 0!==W?W:"",column_type:(null==Q?void 0:Q.column_type)||(null==Q?void 0:null===(j=Q.search_params)||void 0===j?void 0:j.column_type),is_cache_video:em,is_first_video:!o,if_first_big_card:ed,player_start_time:(null==e?void 0:null===(D=e.config)||void 0===D?void 0:D.startTime)||0,is_recommend:"default_landing"===eb?Number(ex):void 0}),(0,rT.Wc)(rT.rh.PLAY_START)),{is_selected_label:eE}));try{!s.current&&(0,rK.yr)()}catch(e){}u.current={aweme_type:J,item_id:Z,source:0,play_delta:1,operation_info:null==i?void 0:i.webOperationInfo},x.Le.getConfig(x.gI.TeaBlocked)},c=()=>{d.current="",l()},v=e=>{d.current=e};if(!e){let t;let o=o=>{if(i){e=o;let i=n7();i.autoplayStarted.used=!0,i.autoplayStarted.data&&(l(),i.autoplayStarted.data=null),e.on("enter_inner_feed",c),e.on("exit_inner_feed",v),e.on(en.Events.AUTOPLAY_STARTED,l),t=()=>{e.off("enter_inner_feed",c),e.off("exit_inner_feed",v),e.off(en.Events.AUTOPLAY_STARTED,l)}}};return a.on(l4.PlayerCreated,o),()=>{a.off(l4.PlayerCreated,o),null==t||t()}}return e.on("enter_inner_feed",c),e.on("exit_inner_feed",v),e.on(en.Events.AUTOPLAY_STARTED,l),()=>{e.off("enter_inner_feed",c),e.off("exit_inner_feed",v),e.off(en.Events.AUTOPLAY_STARTED,l)}},[i.awemeId,l]),(0,v.useEffect)(()=>{let e=()=>{(0,r$.x0)(u.current)};return l&&t?(t.once(en.Events.TIME_UPDATE,e),()=>{t.off(en.Events.TIME_UPDATE,e)}):()=>null},[l,t])}({player:i,awemeInfo:t,isActive:l,getLogInfo:a,getSpecialParams:u,index:n}),rY({player:i,awemeInfo:t,isActive:l,getLogInfo:a}),!function(e){let{player:t,awemeInfo:i,isActive:l}=e;(0,v.useEffect)(()=>{if(t){let e=e=>{var t,l;let{vid:o,force_set_min:n}=e||{};n3.Z.sendLog("prfTaskDataSize",(0,G._)((0,b._)({},e||{}),{user_unique_id:null===(t=(0,N.Es)())||void 0===t?void 0:t.user_unique_id,group_id:o,force_set_min:n?1:0,vduration:null==i?void 0:null===(l=i.video)||void 0===l?void 0:l.duration,enter_from:(0,t6.yW)()}))};return t.on("prf_data_size",e),()=>{t.off("prf_data_size",e)}}},[t,i])}({player:i,awemeInfo:t,isActive:l}),r1({isNext:o,player:i,awemeInfo:t,getLogInfo:a,isActive:l}),!function(e){let{player:t,awemeInfo:i,isActive:l}=e,{getLogInfo:o}=e;(0,v.useEffect)(()=>{if(t&&l)try{let e=e=>{try{var l,n,r,a;let{group_id:d,playlet_id:u,log_pb:s,extraParams:c,aweme_type:v,top:f,is_pure:m,bitRate:p,latest_group_id:_}=o(),{isH265:g}=(0,ry.Z)({awemeInfo:i,player:t}),h=(null===(l=t.curDefinition)||void 0===l?void 0:l.bitrate)||p||0;n3.Z.sendLog("fpsStuck",(0,G._)((0,b._)((0,G._)((0,b._)((0,G._)((0,b._)({},e),{enter_from:(0,e_.mo)(),group_id:d,playlet_id:u,log_pb:s,speed:String(null==t?void 0:t.playbackRate)}),(0,ew.t)()),{aweme_type:v,top:f,is_pure:m,is_bytevc1:g}),(0,r_.Z)(),c),{play_order:(0,nP.G)(),video_bitrate:h,audio_bitrate:(null===(r=t.curDefinition)||void 0===r?void 0:null===(n=r.audioDefinition)||void 0===n?void 0:n.bitrate)||0,real_bitrate:(null===(a=t.curDefinition)||void 0===a?void 0:a.realBitrate)||0,latest_group_id:_,current_position:t.currentTime,vtype:t.vtype}),!1)}catch(e){lQ.oe.event.error({name:lQ.Mo.FpsStuckReportError,report:{type:1}})}};return t.on(en.Events.FPS_STUCK,e),()=>{t.off(en.Events.FPS_STUCK,e)}}catch(e){lQ.oe.event.error({name:lQ.Mo.FpsStuckReportError,report:{type:0}})}},[t,i,l])}({player:i,awemeInfo:t,isActive:l,getLogInfo:a,getSpecialParams:u}),!function(e){let{player:t,awemeInfo:i,isActive:l}=e,{getLogInfo:o,getH265DegradeReportFlag:n,getSupportHwClientFlag:r}=e,a=(0,v.useRef)([]),d=(0,v.useRef)(0),u=(0,v.useRef)(""),s=nv();(0,v.useEffect)(()=>{let e;(u.current!==(null==i?void 0:i.awemeId)||!l||!i)&&(u.current=null==i?void 0:i.awemeId,a.current=[],d.current=0);let c=t,v=()=>{l&&(a.current.forEach(e=>{n3.Z.sendLog("videoDegrade",e)}),a.current=[])},f=e=>{var t,l;let{group_id:u,vduration:s,extraParams:f,action_type:m,aweme_type:p,awemeRequestTime:_,qualityType:h,log_pb:y,bitrate_set_client:w}=o(),{isH265:x,codecFormat:I,videoFormat:C}=(0,ry.Z)({awemeInfo:i,player:c}),E=(0,b._)((0,G._)((0,b._)({urlParamList:["previous_page","tab_name"]},(0,rp.Z)(c),(0,r_.Z)()),{group_id:u,errorCode:null==e?void 0:e.errc,errorDesc:null==e?void 0:e.err_msg,vduration:s,video_quality:(0,rh.S)({player:c,qualityType:h}),player_version:c.version,current_position:1e3*c.currentTime,is_video_support:Number((0,rF.k)().isSupport),host:null==e?void 0:e.host,vtype:(null==e?void 0:e.vtype)||(null==c?void 0:c.vtype),action_type:m,bitrate_set_client:w,is_ad:(0,g.Jt)(i)?1:0,is_compilation:(null==i?void 0:null===(t=i.mixInfo)||void 0===t?void 0:t.mixId)?1:0,is_active:1,is_cdn_expired:1===(0,rV.q)(c.currentSrc)?1:0,is_bytevc1:x,aweme_type:p,log_pb:y,codec_format:I,video_format:C,play_order:(0,nP.G)(),is_supported_265:nB()?1:0,is_265_degrade:n(),has_report:d.current++,is_265_degrade_client:nq({player:c}),is_support_hw:r(),is_hw:(null==c?void 0:null===(l=c.config)||void 0===l?void 0:l.mediaType)==="video"?1:0,hit_preload:(0,rw.qJ)(c)}),(0,rv.m)({player:c}),(0,rv.B)({player:c}),f);a.current.push(E),v()};i&&(v(),c&&c.on("degrade",f));let m=t=>{(c=t).on("degrade",f),e=()=>{c.on("degrade",f)}};if(!c){var p;null==s||null===(p=s.on)||void 0===p||p.call(s,l4.PlayerCreated,m)}return()=>{var t;null==e||e(),null==c||c.off("degrade",f),null==s||null===(t=s.off)||void 0===t||t.call(s,l4.PlayerCreated,m)}},[i,l])}({player:i,awemeInfo:t,isActive:l,getLogInfo:a,getH265DegradeReportFlag:d,getSupportHwClientFlag:c}),!function(e){let{player:t,isActive:i}=e;(0,v.useEffect)(()=>{if(t&&i){var e;let i=e=>{var i,l,o,n,r,a,d,u,s,c,v,f,m,p;let _=null==e?void 0:e.code;n3.Z.sendLog("srDegrade",(0,b._)({enter_from:(0,t6.yW)(),group_id:null==t?void 0:null===(i=t.config)||void 0===i?void 0:i.vid,vtype:null==t?void 0:t.vtype,quality_type:null==t?void 0:null===(l=t.curDefinition)||void 0===l?void 0:l.qualityType,gear_name:null==t?void 0:null===(o=t.curDefinition)||void 0===o?void 0:o.gearName,definition:null==t?void 0:null===(n=t.curDefinition)||void 0===n?void 0:n.definition,is_bytevc1:null==t?void 0:null===(r=t.curDefinition)||void 0===r?void 0:r.isH265,current_time:null==t?void 0:t.currentTime},(null==t?void 0:null===(u=t.plugins)||void 0===u?void 0:null===(d=u.srplugin)||void 0===d?void 0:null===(a=d.getStat)||void 0===a?void 0:a.call(d))||{},e||{},(0,rv.m)({player:t}))),x.Le.setConfig(x.gI.SrDegradeCode,null!=_?_:-1),(null==t?void 0:null===(f=t.plugins)||void 0===f?void 0:null===(v=f.srplugin)||void 0===v?void 0:null===(c=v.getStat)||void 0===c?void 0:null===(s=c.call(v))||void 0===s?void 0:s.renderDelta)>(null==e?void 0:e.defaultRenderDelta)&&rJ++;let g=null===(p=x.Le.getConfig(x.gI.AbtestData))||void 0===p?void 0:null===(m=p.SR)||void 0===m?void 0:m.renderDeltaAccumulate;rJ>g&&(0,j.qQ)(T.LocalStorageKeys.srDegradePermanently,1),[2,3,-300,-600].includes(_)&&(window.srDegradeFinally=!0,x.Le.setConfig(x.gI.SrDegrade,1)),[-300,-600].includes(_)&&(0,j.qQ)(T.LocalStorageKeys.srDegradePermanently,1)};return null==t||null===(e=t.on)||void 0===e||e.call(t,rQ.D.SR_DEGRADE,i),()=>{var e;null==t||null===(e=t.off)||void 0===e||e.call(t,rQ.D.SR_DEGRADE,i)}}},[t,i])}({player:i,isActive:l}),!function(e){let{player:t,awemeInfo:i,isActive:l}=e,{getLogInfo:o,getSpecialParams:n}=e;(0,v.useEffect)(()=>{if(!t||!l||(null==i?void 0:i.awemeType)===68)return;let e=n(),r=l=>{try{var n;let{author_id:r,group_id:a,log_pb:d,compilation_id:u,playlet_id:s,extraParams:c,aweme_type:v,trending_topic:f,first_tag_name:m,top:p,is_click_cover:_,is_pure:g,is_insert_wallpaper:h}=o(),{isH265:y}=(0,ry.Z)({awemeInfo:i,player:t}),{mediaTime:w,fixEditListOffset:x}=rX(t);n3.Z.sendLog("videoEditListOffsetTime",(0,G._)((0,b._)({duration:1e3*w,fix_edit_list_offset:Number(x),is_ended:null==l?void 0:l.ended,is_click_cover:_,urlParamList:["enter_method","trending_topic","previous_page"],enter_from:(0,e_.mo)(),author_id:r,group_id:a,log_pb:d,compilation_id:u,playlet_id:s,is_insert_wallpaper:h,is_visible:String("visible"===document.visibilityState?1:0),is_mute:(null==t?void 0:t.muted)?"1":"0",aweme_type:v,trending_topic:f,first_tag_name:m,top:p,is_pure:g},c,e.videoPlayFinish||{}),{is_bytevc1:y,video_time:(0,rk.n)(null==i?void 0:null===(n=i.video)||void 0===n?void 0:n.duration)}))}catch(e){}};return t.on(en.Events.ENDED,r),()=>{!t.ended&&r(),t.off(en.Events.ENDED,r)}},[t,i,l])}({player:i,isActive:l,awemeInfo:t,getLogInfo:a,getSpecialParams:u}),!function(e){let{player:t,getLogInfo:i}=e;(0,v.useEffect)(()=>{if(!t)return()=>{};let e=e=>{let t=rr[null==e?void 0:e.pluginName];if((null==e?void 0:e.pluginName)==="fullscreen"&&(t=(0,ey.r)()?"hover_exit_full_screen":"hover_enter_full_webscreen"),!t)return;let l=i();n3.Z.sendLog(t,{enter_from:(0,e_.mo)(),player_display_mode:(0,e_.Ok)(),group_id:(null==l?void 0:l.group_id)||""})};t.on("icon_mouseleave",e);let l=t.getPlugin("progress"),o=()=>{let e=i();n3.Z.sendLog("hover_progress",{enter_from:(0,e_.mo)(),player_display_mode:(0,e_.Ok)(),group_id:(null==e?void 0:e.group_id)||""})};return null==l||l.addCallBack("mouseleave",o),()=>{t.off("icon_mouseleave",e),null==l||l.removeCallBack("mouseleave",o)}},[t])}({player:i,getLogInfo:a})}({player:c,isActive:i,awemeInfo:t,getIsChangingVideoSrc:h,getLogInfo:y,getH265DegradeReportFlag:f,getSpecialParams:w,getReportNetworkSpeed:n2,getSupportHwClientFlag:m,isNext:l,index:s}),null};var r3=i("885112"),r6=i("650047"),r5=i("643752"),r4=i("75740"),r8=i("699679"),r7=i("808786");let r9={5:1,4:2,3:3,2:4,10:-1,20:-2},{quality_filter:ae,white_list:at}=(0,r7.E)(),ai=(e,t,i)=>{var l;let o=null!==(l=null==t?void 0:t.clarityMap)&&void 0!==l?l:tJ.ClarityMap,n=[],r=e.filter(e=>(null==e?void 0:e.videoFormat)==="dash"),a=(null==r?void 0:r.length)>0&&i?r:e;return(Object.keys(o).forEach(e=>{let t=o[e];for(let i=0;i<t.length;i++){let l=a.filter(e=>{var l;return null==e?void 0:null===(l=e.gearName)||void 0===l?void 0:l.includes(t[i])});if(null==l?void 0:l.length){let t=Object.assign({},l[0]);t.definition=r9[e],n.push(t);break}}}),n.length>0)?n:a},al=e=>{if(e&&e.core_cnt){var t;let i=null!==(t=navigator.hardwareConcurrency)&&void 0!==t?t:-1,[l,o]=e.core_cnt;return i>=l&&i<=o}return!0},ao=e=>{if(e&&e.memory){var t;let i=null!==(t=navigator.deviceMemory)&&void 0!==t?t:-1,[l,o]=e.memory;return i>=l&&i<=o}return!0},an=(e,t)=>{if(e&&e.video_screen_mode){var i;let{width:l,height:o}=null!==(i=null==t?void 0:t.video)&&void 0!==i?i:{};return"landscape"===e.video_screen_mode[0]&&l>o}return!0},ar=(e,t)=>!e||!e.encoder||e.encoder[0]===t,aa=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:at,l=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,r=i;if((0,l1.fR)()&&(r=r.concat(["adapt_lowest_1440_1","adapt_lowest_4_1"])),null==l?void 0:null===(e=l.BitrateSelector)||void 0===e?void 0:e.multiFactors){let e=l.BitrateSelector.multiFactors.find(e=>{let t=al(e.factor),i=ao(e.factor),l=ar(e.factor,n),r=an(e.factor,o);return t&&i&&l&&r});e&&e.config&&e.config.white_list&&(r=e.config.white_list)}let a=t.filter(e=>r.some(t=>{var i;return null==e?void 0:null===(i=e.gearName)||void 0===i?void 0:i.includes(t)}));return a.length>0?a:t},ad=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ae,l=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,r=i;if(null==l?void 0:null===(e=l.BitrateSelector)||void 0===e?void 0:e.multiFactors){let e=l.BitrateSelector.multiFactors.find(e=>{let t=al(e.factor),i=ao(e.factor),l=ar(e.factor,n),r=an(e.factor,o);return t&&i&&l&&r});e&&e.config&&e.config.quality_filter&&(r=e.config.quality_filter)}if(t.find(e=>[-1,-2].includes(e.definition)))return t;let a=t.filter(e=>{let t=!0;for(let[l,o]of Object.entries(r)){var i;if(null==e?void 0:null===(i=e.gearName)||void 0===i?void 0:i.includes(l)){let{lower:i,upper:l}=null!=o?o:{};(e.realBitrate<i||e.realBitrate>l)&&(t=!1)}}return t});if(0===a.length&&t.length>0){let e=t.reduce((e,t)=>e.realBitrate&&e.realBitrate<t.realBitrate?e:t,{});a.push(e)}return a},au=(e,t,i,l,o,n,r)=>{if((null==i?void 0:i.awemeType)===_.e.Note)return[];let a=null!=e?e:[],d=ai(a,t,n);if(d.length>0&&(a=d),o||r)!(0,l1.fR)()&&(a=(a=a.filter(e=>!e.gearName.includes("adapt_lowest_4_1"))).filter(e=>!e.gearName.includes("adapt_lowest_1440_1")));else{var u,s,c,v;let e=null!==(c=null==t?void 0:null===(u=t.BitrateSelector)||void 0===u?void 0:u.quality_filter)&&void 0!==c?c:ae;a=ad(a=aa(a,null!==(v=null==t?void 0:null===(s=t.BitrateSelector)||void 0===s?void 0:s.white_list)&&void 0!==v?v:at,t,i,l),e,t,i,l)}return a.map(e=>{var t,o;return{size:null==e?void 0:e.dataSize,uri:null==e?void 0:e.uri,url:[...(null==e?void 0:e.playAddr)||[],{src:null==e?void 0:e.playApi}],bitrate:null==e?void 0:e.bitRate,definition:(null==e?void 0:e.definition)||(null==e?void 0:e.qualityType),qualityType:null==e?void 0:e.qualityType,duration:(null==i?void 0:null===(t=i.video)||void 0===t?void 0:t.duration)/1e3,isH265:e.isH265,gearName:e.gearName,pktOffsetMap:(null==e?void 0:e.pktOffsetMap)||[],featureId:null==e?void 0:e.featureId,isH266:(null==e?void 0:e.isH265)===2?1:0,vtype:null==e?void 0:null===(o=e.videoFormat)||void 0===o?void 0:o.toUpperCase(),mediaType:"video",codecType:l,fps:null==e?void 0:e.fps,file_id:null==e?void 0:e.fileId,index_range:null==e?void 0:e.indexRange,init_range:null==e?void 0:e.initRange,audio_file_id:null==e?void 0:e.audioFileId,first_segment_range:null==e?void 0:e.firstSegmentRange,realBitrate:(null==e?void 0:e.realBitrate)||(null==e?void 0:e.bitRate),width:null==e?void 0:e.width,height:null==e?void 0:e.height}})},as=e=>{let{audioList:t,abtestData:i}=e;return t.map(e=>{let{bitrate:t,codecType:i,fileId:l,quality:o,size:n,indexRange:r,initRange:a,urlList:d,firstSegmentRange:u}=e;return{bitrate:t,quality:o,size:n,codecType:"bytevc1"===i?"h265":"h264",file_id:l,index_range:r,init_range:a,first_segment_range:u,vtype:r4.l0.DASH,fps:e.FPS,gearName:e.gear_name,mediaType:"audio",url:d}})};var ac=i("183019"),av=i("757309"),af=i.n(av);let am=e=>{var t,i,l,o;let n=new(af())().getResult(),r=null==n?void 0:null===(t=n.browser)||void 0===t?void 0:t.name,a=Number(null==n?void 0:null===(i=n.browser)||void 0===i?void 0:i.major),d="Chrome"===r&&a<=100||"MetaSr"===r,u=navigator.hardwareConcurrency,s=null!==(o=null===(l=(0,nA.$h)())||void 0===l?void 0:l.score)&&void 0!==o?o:-1,c={isBan1080:!1,isBan720:!1};return u>=8&&d&&(c.isBan1080=!0),u<8&&u>=4&&(d&&(c.isBan1080=!0),d&&s>0&&s<6&&(c.isBan720=!0)),u<4&&d&&(c.isBan1080=!0,c.isBan720=!0),c},ap={1:{width:1920,height:1080},2:{width:1280,height:720},3:{width:1024,height:576},4:{width:1024,height:576},"-1":{width:0,height:0},"-2":{width:0,height:0}},a_=()=>{if("general_search"===(0,e_.vM)())return{width:1114,height:660};let e=window.innerWidth>=1240?228:140,t=window.innerWidth-e;return{width:t,height:window.innerHeight-128}},ag=e=>{var t,i,l,o,n,r,a,d;let{awemeInfo:u,H264List:s,H265List:c,H266List:v,abtestData:f,userselection:m}=e;if(m||(0,ey.r)()||(null==f?void 0:f.disableOverRect)||(null==f?void 0:f.use265Web)||(null==f?void 0:f.revertOverRect)===1&&window.devicePixelRatio>1)return{};let p=x.Le.getConfig(x.gI.VideoRect);!p&&(p=a_(),x.Le.setConfig(x.gI.VideoRect,p));let g=null!==(n=x.Le.getConfig(x.gI.VideoRectList))&&void 0!==n?n:[],h=g.find(e=>e.id===u.awemeId);if(h&&h.rect.width!==(null==p?void 0:p.width))return h.config;let y=null!==(r=null!=v?v:c)&&void 0!==r?r:s,w=null==y?void 0:y.sort((e,t)=>(null==t?void 0:t.definition)-(null==e?void 0:e.definition)),I=(null==u?void 0:null===(t=u.video)||void 0===t?void 0:t.width)/(null==u?void 0:null===(i=u.video)||void 0===i?void 0:i.height),C=[],b={width:null==p?void 0:p.width,height:null==p?void 0:p.height};if((null==f?void 0:f.revertOverRect)===2&&window.devicePixelRatio>1&&(b.width=b.width*window.devicePixelRatio,b.height=b.height*window.devicePixelRatio),w&&I>1)for(let e=0;e<w.length;e++){let t=ap[null!==(a=w[e].definition)&&void 0!==a?a:1];if((null==b?void 0:b.width)>(null==t?void 0:t.width)&&(null==b?void 0:b.height)>(null==t?void 0:t.height)){C.push(w[e]);continue}C.push(w[e]);break}if(w&&I<1)for(let e=0;e<w.length;e++){let t=ap[null!==(d=w[e].definition)&&void 0!==d?d:1];if((null==b?void 0:b.width)>(null==t?void 0:t.height)&&(null==b?void 0:b.height)>(null==t?void 0:t.width)){C.push(w[e]);continue}C.push(w[e]);break}let E=w.find(e=>-1===e.definition),S=C.find(e=>-1===e.definition);E&&!S&&C.push(E);let k=w.find(e=>-2===e.definition),T=C.find(e=>-2===e.definition);if(k&&!T&&C.push(k),0===C.length)return{};let L={isOverRect:C.length!==y.length?1:0,defaultDefinition:(null==C?void 0:null===(l=C[0])||void 0===l?void 0:l.definition)||-1,defaultBitrate:(null==C?void 0:null===(o=C[0])||void 0===o?void 0:o.bitrate)||"",definition:{list:(null==u?void 0:u.awemeType)===_.e.Note?[]:C}};return h?(h.config=L,h.rect={width:null==p?void 0:p.width,height:null==p?void 0:p.height},L):(g.push({id:u.awemeId,config:L,rect:{width:null==p?void 0:p.width,height:null==p?void 0:p.height}}),x.Le.setConfig(x.gI.VideoRectList,g),L)};var ah=i("74964"),ay=i("463686"),aw=i("156627"),ax=i("987826");let aI={paramBf:.3,paramBp:.5,paramUpper:1.5,paramLower:.6,paramUpperBl:.7,paramVl1:.8,paramVl2:3,paramVlUpper:.9,paramVlLower:.7,bitrateUpper:2e6,bitrateLower:2e5,slidingWindowType:"by_weight",slidingWindowWeight:"size",slidingWindowWeightThreshold:2e7,slidingWindowCountThreshold:30,slidingWindowExtraction:"weighted_median",bitrateRange:[2e5,25e5],mode:"buffer-info",quality_filter:{}};var aC=i("462633"),ab=i("290913"),aE=i("386325"),aS=i("113907"),ak=i("660505"),aT=i("108751"),aL=i("801771"),aA=i("815478"),aR=i("173016"),aN=i("928035"),aP=i("430413"),aM=i("1390"),aj=i("762849"),aD=i("847440"),aF=i("827827");let aV={play:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(ab.Z,{style:{fontSize:"32px"}}),needRenderInSSR:!0}),pause:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(aE.Z,{style:{fontSize:"32px"}}),needRenderInSSR:!0}),startPlay:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(ab.Z,{}),needRenderInSSR:!0}),startPause:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(aE.Z,{}),needRenderInSSR:!0}),playNext:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(aS.Z,{style:{fontSize:"32px"}}),needRenderInSSR:!0}),mini:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(ak.Z,{style:{fontSize:"32px"}}),needRenderInSSR:!0}),volumeSmall:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(aT.Z,{style:{fontSize:"32px"}}),needRenderInSSR:!0}),volumeLarge:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(aL.Z,{style:{fontSize:"32px"}}),needRenderInSSR:!0}),volumeMuted:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(aA.Z,{style:{fontSize:"32px"}}),needRenderInSSR:!0}),fullscreen:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(aR.Z,{style:{fontSize:"32px"}}),needRenderInSSR:!0}),exitFullscreen:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(aN.Z,{style:{fontSize:"32px"}}),needRenderInSSR:!0}),loadingIcon:(0,aC.Y)(e7,{})},aB={play:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(ab.Z,{style:{fontSize:"32px"}}),needRenderInSSR:!0}),pause:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(aE.Z,{style:{fontSize:"32px"}}),needRenderInSSR:!0}),startPlay:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(ab.Z,{}),needRenderInSSR:!0}),startPause:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(aE.Z,{}),needRenderInSSR:!0}),playNext:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(aS.Z,{style:{fontSize:"32px"}}),needRenderInSSR:!0}),mini:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(ak.Z,{style:{fontSize:"32px"}}),needRenderInSSR:!0}),volumeSmall:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(aP.Z,{style:{fontSize:"32px"}}),needRenderInSSR:!0}),volumeLarge:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(aM.Z,{style:{fontSize:"32px"}}),needRenderInSSR:!0}),volumeMuted:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(aj.Z,{style:{fontSize:"32px"}}),needRenderInSSR:!0}),fullscreen:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(aD.Z,{style:{fontSize:"32px"}}),needRenderInSSR:!0}),exitFullscreen:(0,aC.Y)(iB.z,{svg:(0,c.jsx)(aF.Z,{style:{fontSize:"32px"}}),needRenderInSSR:!0}),loadingIcon:(0,aC.Y)(e7,{})},aO=e=>{let{player:t,abtestData:i,awemeInfo:l}=e;return nG({abtestData:i,awemeInfo:l,player:t})?2:nW({abtestData:i,awemeInfo:l,player:t})?1:0},aU=e=>{var t,i,l,o;return(null==e?void 0:null===(l=e.video)||void 0===l?void 0:null===(i=l.playAddr)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.src.includes("video-web-cn"))||(null==e?void 0:null===(o=e.status)||void 0===o?void 0:o.privateStatus)>0&&(null==e?void 0:e.awemeType)!==_.e.Note},aH=e=>{let{abtestData:t,enableSr:i}=e,l={isOpen:!1,type:"filter",filterKey:"definition",filterList:[{source:1,target:[2]},{source:2,target:[3]}],enable266:!0};if(i){var o,n;return(null==t?void 0:null===(o=t.SR)||void 0===o?void 0:o.improvePictureQuality)||(null==t?void 0:null===(n=t.SR)||void 0===n?void 0:n.targetDefinition)?Object.assign({},l,null==t?void 0:t.SR,{isOpen:!1}):Object.assign({},l,null==t?void 0:t.SR)}return l},aW=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=(0,D.DT)()?"client":"web",o=null===(e=navigator)||void 0===e?void 0:e.hardwareConcurrency,n=(0,b._)({},t),r=new Date().getHours();return i.forEach(e=>{if(e.browser_mode.includes(l)&&e.core_number[0]<=o&&e.core_number[1]>=o){if(!e.time_range||!!(e.time_range[0]<=r&&e.time_range[1]>=r))"object"==typeof e.scale&&Object.keys(e.scale).forEach(t=>{n[t]=n[t]*e.scale[t]}),"object"==typeof e.absolute&&Object.keys(e.absolute).forEach(t=>{n[t]=e.absolute[t]})}}),n},aG=e=>{let{abtestData:t}=e,i=(0,ac.DH)(t);return(null==i?void 0:i.open)?{bitrateKey:"realBitrate"}:{}},az=()=>(0,l1.fR)()?{bitrateUpper:2e7,bitrateRange:[2e5,25e6]}:{},aZ=e=>{var t;let{abtestData:i,enableSr:l}=e;if((null==i?void 0:null===(t=i.extraBitrateSelector)||void 0===t?void 0:t.length)>0){let e=null==i?void 0:i.extraBitrateSelector;return(0,G._)((0,b._)({},aI,aW(null==i?void 0:i.BitrateSelector,e),aG({abtestData:i}),az()),{overscore:aH({abtestData:i,enableSr:l})})}return(0,G._)((0,b._)({},aI,(null==i?void 0:i.BitrateSelector)||{},aG({abtestData:i}),az({abtestData:i})),{overscore:aH({abtestData:i,enableSr:l})})},aq=e=>{var t,i,l,o,n,r,a;let{awemeInfo:d={},abtestData:u={},enableSr:s}=e,c=aO({awemeInfo:d,abtestData:u}),{volume:v,autoplayMuted:f}=(0,nx.J)(),m=(0,Z.p)(d)?{closeVideoClick:!0}:{},p=(null==u?void 0:u.reduceLottie)?'<div class="xg-douyin-loading-v2" />':'<div class="xg-douyin-loading" />',g=(0,G._)((0,b._)({lang:"zh",inactive:2e3,leavePlayerTime:0,autoplay:!0,autoplayMuted:f,volume:v,loop:!1,closeFocusVideoFocus:!0,closeControlsBlur:!0,closePlayVideoFocus:!0,closeVideoPreventDefault:!0,closeVideoStopPropagation:!0,playbackRate:!1,cssFullscreen:!1,awemeType:d.awemeType,dynamicBg:{disable:!0,frameRate:10,filter:"blur(60px)",maskBg:"rgba(0,0,0,0.7)"},enter:{innerHtml:p},start:{disableAnimate:!0},ignores:["poster","definition","mobile"],progresspreview:{disable:!0},progress:!0,miniprogress:!1,miniscreen:{width:350,height:197,left:-1,top:-1,disableDrag:!0},vodLogOpts:{line_app_id:ax.APP_ID,line_user_id:(null===(t=(0,N.Es)())||void 0===t?void 0:t.user_unique_id)||"",vtype:"MP4",tag:(0,t6.yW)(),codec_type:2===c?"h266":1===c?"h265":"h264",drm_type:0,sendLocalCallback:(e,t)=>{},disableLocalCache:!0,channel:"cn",closeResolutionLog:!0,closeSeekLog:!0,maxQueueCount:5,isTask:!1,enableAbTest:!1,checkByInnerLog:!0,trackerWorker:window.TeaWorker},icons:(null==u?void 0:u.newControl)?aB:aV,closeVideoDblclick:!0,plugins:[ah.default,r5.Z,aw.Z],BitrateSelector:aZ({abtestData:u,enableSr:s}),controls:{mode:"normal",autoHide:!1,initShow:!0},marginControls:!(0,Z.p)(d)},m),{keyboard:{isGlobalTrigger:!0,disableRootTrigger:!0,keyCodeMap:{up:{disable:!0},down:{disable:!0}}},vtype:(null==d?void 0:d.awemeType)===_.e.Note?"MP3":"MP4",TestSpeed:{url:null===(i=(0,ay.preProcessUrl)(null!==(a=null==d?void 0:null===(n=d.video)||void 0===n?void 0:null===(o=n.playAddr)||void 0===o?void 0:null===(l=o[0])||void 0===l?void 0:l.src)&&void 0!==a?a:null==d?void 0:null===(r=d.video)||void 0===r?void 0:r.playApi))||void 0===i?void 0:i.url,openSpeed:!0,testCnt:2,addSpeedTypeList:["pcdn"],loadSize:204800,testTimeStep:5e3},videoConfig:{crossorigin:aU(d)?"use-credentials":"anonymous"},i18n:[{LANG:"zh",TEXT:{MEDIA_ERR_SRC_NOT_SUPPORTED:"不支持的音频/视频格式\n或\n设备无网络"}}],mobile:{gestureY:!1},enableContextmenu:!0,fpsdetect:{stuckCount:1},awemeInfo:d});return g.keyboard=(0,G._)((0,b._)({},g.keyboard),{seekStep:5}),g.volume={default:v,showValueLabel:!0},g.preProcessUrl=ay.preProcessUrl,g},a$=["normal_1440_0","normal_1080_0","normal_720_0","normal_540_0","normal_480_0","normal_360_0","lower_540_0"],aK=["low_1080_0","low_720_0","low_540_0","low_480_0","low_360_0","adapt_low_540_0"],aY=(e,t)=>{var i,l,o;let n=null==e?void 0:null===(i=e.filter)||void 0===i?void 0:i.call(e,e=>0===e.isH265),r=null==n?void 0:null===(l=n.filter)||void 0===l?void 0:l.call(n,e=>a$.some(t=>e.gearName.includes(t))),a=(null==r?void 0:r.length)>0?r:n,d=null==n?void 0:null===(o=n.filter)||void 0===o?void 0:o.call(n,e=>aK.some(t=>e.gearName.includes(t)));if(d&&d.length>0){let e=null==a?void 0:a.find(e=>e.gearName.includes("normal_1080_0"));e&&d.unshift(e)}return(null==d?void 0:d.length)>0?d:a},aQ=e=>{let{mixVtypeList:t,awemeInfo:i,abtestData:l,enableSr:o,userselection:n}=e,r=Array.from(new Set(null==t?void 0:t.map(e=>e.vtype)));if((null==r?void 0:r.length)>1){var a;let e=window.playerPreloader,r=null==e?void 0:e.getPreloadMetaByVid(null==i?void 0:i.awemeId),d=aZ({abtestData:l,enableSr:o}),u=(null==r?void 0:r.vtype)||(null===(a=r5.Z.getSuitableBitrate(t,n,d,0))||void 0===a?void 0:a.vtype),s=t.filter(e=>(null==e?void 0:e.vtype)===u)||[];return{vtype:u,pureVtypeList:s}}return{vtype:r[0],pureVtypeList:t}},aJ=e=>e===r4.l0.DASH,aX=e=>{let{url:t="",target:i}=e,l=t,[o,n]=t.split("?");try{if(t.includes("/aweme/v1/play")&&n){let e=(0,E.parse)(n);l=`${o}?${(0,E.stringify)((0,b._)({},e,(0,r8.F)({target:i})))}`}}catch(e){}return l},a0={},a1=e=>{var t,i,l,o,n,r,a,d,u,s,c,v,f,m,p,g,h,y,w,I,C,E,S,k,T,L,A,R,N,P,M,j,D,F,V,B,O,U,H;let W;let{awemeInfo:G,abtestData:z,userselection:Z,filter264InMix:q=!1,enableSr:$,enableDash:K=!0,disableBitRateFilter:Y=!1}=e,Q=ez()(G);if((null===(t=x.Le.getConfig(x.gI.AbtestData))||void 0===t?void 0:t.longtask)===2&&a0[null==Q?void 0:Q.awemeId]&&(null===(i=a0[null==Q?void 0:Q.awemeId])||void 0===i?void 0:i.userselection)===Z&&(null===(l=a0[null==Q?void 0:Q.awemeId])||void 0===l?void 0:l.enableSr)===$&&(null===(o=a0[null==Q?void 0:Q.awemeId])||void 0===o?void 0:o.enableDash)===K&&(null===(n=a0[null==Q?void 0:Q.awemeId])||void 0===n?void 0:n.disableBitRateFilter)===Y)return null===(k=a0[null==Q?void 0:Q.awemeId])||void 0===k?void 0:k.result;(null===(r=x.Le.getConfig(x.gI.RefetchAwemeInfo))||void 0===r?void 0:r[null==G?void 0:G.awemeId])&&(Q=ez()(x.Le.getConfig(x.gI.RefetchAwemeInfo)[null==G?void 0:G.awemeId]));let{video:J}=Q||{},{bitRateList:X=[],bitRateAudioList:ee=[]}=J||{},et=null==Q?void 0:null===(a=Q.video)||void 0===a?void 0:a.playAddr,ei=X.filter(e=>1!==e.manualOnly);(null==z?void 0:z.manualFilter)&&(ei=Z||Y?X:X.filter(e=>1!==e.manualOnly));let el=[];if(Array.isArray(et)&&(el=et.map(e=>({src:aX({url:e.src,target:null==Q?void 0:Q.awemeId})}))),null==Q?void 0:null===(d=Q.video)||void 0===d?void 0:d.playApi){let e={src:aX({url:null==Q?void 0:null===(T=Q.video)||void 0===T?void 0:T.playApi,target:null==Q?void 0:Q.awemeId})};el=[...el,e],W={src:`${e.src}&downgrade_264=1`}}let eo=au(aY(ei,z),z,Q,"h264",Z,!1,Y),en={},er={},ea=K&&(0,ac.yf)({abtestData:z,awemeInfo:Q});if(nU({awemeInfo:Q,bitRateList:ei,abtestData:z})){let e=au(null==ei?void 0:ei.filter(e=>1===e.isH265),z,Q,"h265",Z,ea,Y);el=[...Q.video.playAddrH265,{src:null==Q?void 0:null===(L=Q.video)||void 0===L?void 0:L.playApiH265}];let t=am(z);if(t.isBan1080){e=e.filter(e=>1!==e.definition);let t=eo.find(e=>1===e.definition);t&&e.push(t)}if(t.isBan720){e=e.filter(e=>2!==e.definition);let t=eo.find(e=>2===e.definition);t&&e.push(t)}let{vtype:i,pureVtypeList:l}=aQ({mixVtypeList:e,awemeInfo:Q,abtestData:z,enableSr:$,userselection:Z});e=[...l],!q&&!aJ(i)&&(null==e||e.map(e=>(Array.isArray(e.url)&&W&&e.url.push(W),e))),Object.assign(en,{defaultDefinition:(null==e?void 0:null===(A=e[0])||void 0===A?void 0:A.definition)||-1,defaultBitrate:(null==e?void 0:null===(R=e[0])||void 0===R?void 0:R.bitrate)||"",codecType:"h265",definition:{list:(null==Q?void 0:Q.awemeType)===_.e.Note?[]:e}})}else if(nO({awemeInfo:Q,abtestData:z})){let e=au(null==ei?void 0:ei.filter(e=>1===e.isH265),z,Q,"h265",Z,!1,Y);el=[...Q.video.playAddrH265,{src:null==Q?void 0:null===(N=Q.video)||void 0===N?void 0:N.playApiH265}],Object.assign(en,{H264DefinitionList:eo,codecType:"h265",mediaType:"xg-video",defaultDefinition:(null==e?void 0:null===(P=e[0])||void 0===P?void 0:P.definition)||-1,defaultBitrate:(null==e?void 0:null===(M=e[0])||void 0===M?void 0:M.bitrate)||"",definition:{list:(null==Q?void 0:Q.awemeType)===_.e.Note?[]:e},initCodecType:"h265soft"})}else if(nj({awemeInfo:Q,abtestData:z})){let e;let t=au(null==ei?void 0:ei.filter(e=>2===e.isH265),z,Q,"h266",Z,!1,Y);if(3===t.length){let i=au(null==ei?void 0:ei.filter(e=>1===e.isH265),z,Q,"h265",Z,ea,Y),l=i.find(e=>e.gearName.includes("adapt_lowest_1080_1")),o=i.find(e=>e.gearName.includes("adapt_lowest_1440_1")),n=i.find(e=>e.gearName.includes("adapt_lowest_4_1"));if(l||o||n){let i=aQ({mixVtypeList:[...t,l,o,n].filter(e=>e),awemeInfo:Q,abtestData:z,enableSr:$,userselection:Z});e=null==i?void 0:i.vtype,t=null==i?void 0:i.pureVtypeList}}if(!q&&!aJ(e)){let e={h264:"",h265:""};if(null==Q?void 0:null===(F=Q.video)||void 0===F?void 0:F.playApiH265){let t=aX({url:null==Q?void 0:null===(B=Q.video)||void 0===B?void 0:B.playApiH265,target:null==Q?void 0:Q.awemeId});e.h265=`${t}&is_h265=1`}if(null==Q?void 0:null===(V=Q.video)||void 0===V?void 0:V.playApi){let t=aX({url:null==Q?void 0:null===(O=Q.video)||void 0===O?void 0:O.playApi,target:null==Q?void 0:Q.awemeId});e.h264=`${t}&is_h264=1`}null==t||t.map(t=>(Array.isArray(t.url)&&(e.h265&&t.url.push({src:e.h265}),e.h264&&t.url.push({src:e.h264})),t))}Object.assign(er,{H264DefinitionList:eo,codecType:"h266",mediaType:"video",defaultDefinition:(null==t?void 0:null===(j=t[0])||void 0===j?void 0:j.definition)||-1,defaultBitrate:(null==t?void 0:null===(D=t[0])||void 0===D?void 0:D.bitrate)||"",definition:{list:(null==Q?void 0:Q.awemeType)===_.e.Note?[]:t}})}else if(nH({awemeInfo:Q})){let e=au(null==ei?void 0:ei.filter(e=>1===e.isH265),z,Q,"h265",Z,ea,Y),{vtype:t,pureVtypeList:i}=aQ({mixVtypeList:e,awemeInfo:Q,abtestData:z,enableSr:$,userselection:Z});e=[...i],!q&&!aJ(t)&&(null==e||e.map(e=>(Array.isArray(e.url)&&W&&e.url.push(W),e))),Object.assign(en,{H264DefinitionList:eo,codecType:"h265",mediaType:"video",defaultDefinition:(null==e?void 0:null===(U=e[0])||void 0===U?void 0:U.definition)||-1,defaultBitrate:(null==e?void 0:null===(H=e[0])||void 0===H?void 0:H.bitrate)||"",definition:{list:(null==Q?void 0:Q.awemeType)===_.e.Note?[]:e}})}let ed=Y?{}:ag({awemeInfo:Q,H264List:eo,H265List:null==en?void 0:null===(u=en.definition)||void 0===u?void 0:u.list,H266List:null==er?void 0:null===(s=er.definition)||void 0===s?void 0:s.list,abtestData:z,userselection:Z}),eu=(0,b._)({poster:null==Q?void 0:null===(c=Q.video)||void 0===c?void 0:c.cover,size:(null==Q?void 0:null===(v=Q.video)||void 0===v?void 0:v.dataSize)||0,uri:null==Q?void 0:null===(f=Q.video)||void 0===f?void 0:f.uri,vid:null==Q?void 0:Q.awemeId,authorId:null==Q?void 0:null===(m=Q.authorInfo)||void 0===m?void 0:m.uid,videoWidth:null==Q?void 0:null===(p=Q.video)||void 0===p?void 0:p.width,videHeight:null==Q?void 0:null===(g=Q.video)||void 0===g?void 0:g.height,defaultDefinition:(null==eo?void 0:null===(h=eo[0])||void 0===h?void 0:h.definition)||-1,defaultBitrate:(null==eo?void 0:null===(y=eo[0])||void 0===y?void 0:y.bitrate)||"",duration:(null==Q?void 0:null===(w=Q.video)||void 0===w?void 0:w.duration)/1e3||0,vtype:(null==Q?void 0:Q.awemeType)===_.e.Note?"MP3":"MP4",bizType:(null==Q?void 0:Q.isAds)?1:0,definition:{list:eo},bitrate:Math.floor((null==Q?void 0:null===(I=Q.video)||void 0===I?void 0:I.dataSize)*8/((null==Q?void 0:null===(C=Q.video)||void 0===C?void 0:C.duration)/1e3))||0,userSelectDefinition:Z,codecType:"h264",mediaType:"video",focusUserDefinition:!0,DASHPlugin:(0,ac.qs)(z),url:el,downgradeUrl:el},en,er,ed),es=null==eu?void 0:null===(E=eu.definition)||void 0===E?void 0:E.list;if(null==es?void 0:null===(S=es.find)||void 0===S?void 0:S.call(es,e=>aJ(null==e?void 0:e.vtype))){let e=as({audioList:ee,abtestData:z});eu.definition.list=[...es||[],...e||[]]}return a0[null==Q?void 0:Q.awemeId]={userselection:Z,enableSr:$,enableDash:K,disableBitRateFilter:Y,result:eu},eu},a2=e=>{let{isActive:t,awemeInfo:i,abtestData:l}=e,o=(0,e9.n)(),n=(0,v.useRef)(i||null);return(0,v.useEffect)(()=>{var e,r,a,d,u,s,c,v,f,m,p,_;if(o&&i&&n.current&&(null==i?void 0:i.awemeId)!==(null===(e=n.current)||void 0===e?void 0:e.awemeId)){!t&&o.pause();let e=Object.assign(aq({awemeInfo:i,abtestData:l}),a1({awemeInfo:i,abtestData:l,userselection:null===(r=(0,lq.G)(T.SessionStorageKeys.manualSwitch))||void 0===r?void 0:r.gearType}));(0,ac.Zf)({config:e}),(0,rw.LX)({config:e,awemeInfo:i,abtestData:l}),(0,l8.Ni)(i)&&(e.secretKey=null==i?void 0:null===(m=i.video)||void 0===m?void 0:null===(f=m.bitRateList)||void 0===f?void 0:null===(v=f[0])||void 0===v?void 0:v.playerAccessKey),(null==e?void 0:null===(a=e.plugins)||void 0===a?void 0:a.includes(r3.default))?(o.unRegisterPlugin(r6.default.pluginName,!0),!(null==o?void 0:null===(p=o.plugins)||void 0===p?void 0:p.dashplugin)&&o.registerPlugin(r3.default)):(null==e?void 0:null===(d=e.plugins)||void 0===d?void 0:d.includes(r6.default))?(o.unRegisterPlugin(r3.default.pluginName,!0),!(null==o?void 0:null===(_=o.plugins)||void 0===_?void 0:_.mp4encryptplayer)&&o.registerPlugin(r6.default)):(o.unRegisterPlugin(r3.default.pluginName,!0),o.unRegisterPlugin(r6.default.pluginName,!0)),null===(u=o.playNext)||void 0===u||u.call(o,(0,b._)((0,G._)((0,b._)({},e),{autoplay:t}),null==e?void 0:e.mp4encryptplayer)),null===(c=o.getPlugin)||void 0===c||null===(s=c.call(o,"PlayClaritySettingPlugin"))||void 0===s||s.updateConfig({awemeInfo:i}),o.crossOrigin=aU(i)?"use-credentials":"anonymous"}n.current=i},[o,t,i.awemeId,l]),null},a3=e=>{let t=(0,o0.N)();return(0,c.jsx)(e4.k,{componentName:"VideoSrcChange",Slardar:t,children:(0,c.jsx)(a2,(0,b._)({},e))})},a6=e=>{let{player:t,isActive:i}=e;(0,v.useEffect)(()=>{if(t&&i){let e=()=>{x.Le.setConfig(x.gI.VideoHasPrevent,!0)};return t.on("autoplay_was_prevented",e),()=>{t.off("autoplay_was_prevented",e)}}},[t,i])};var a5=i("37821");let a4=e=>{var t;let{player:i,isActive:l,awemeInfo:o,abtestData:n,startTime:r}=e;i.isPlaying=!1,i.resetState();let a=a1({awemeInfo:o,abtestData:n,userselection:null===(t=(0,lq.G)(T.SessionStorageKeys.manualSwitch))||void 0===t?void 0:t.gearType});return!!a.url.find(e=>!!e.src)&&(i.setConfig((0,b._)({autoplay:l},a)),l?(i.config.startTime=r,i.play()):i.start(),!0)},a8=()=>{ed.logInstance.sendLog("videoRetryError",{type:"retry_success"})},a7=()=>{ed.logInstance.sendLog("videoRetryError",{type:"retry_error"})},a9=e=>{e.off("error",a7),e.off("loadeddata",a8)},de=e=>{a9(e),e.once("error",a7),e.once("loadeddata",a8)},dt=e=>{let{player:t,isActive:i,awemeInfo:l,deleteCurrentSwiper:o,abtestData:n}=e,r=(0,v.useRef)(i);r.current=i;let a=(0,v.useRef)(null==l?void 0:l.awemeId);a.current=null==l?void 0:l.awemeId;let d=(0,v.useRef)(!1),u=(0,v.useRef)(!1),s=(0,v.useRef)(!1),c=(0,v.useRef)(0),f=(0,eZ.Z)(async(e,i,l)=>{if((i||Date.now()-c.current>6e4)&&(u.current=!1,s.current=!1),u.current&&s.current)return ed.logInstance.sendLog("videoRetryError",{type:"real_blank_screen",aweme_id:e}),!1;if(c.current=Date.now(),t.removeClass(en.STATE_CLASS.ERROR),t.addClass(en.STATE_CLASS.LOADING),de(t),u.current||6===l)u.current=!0;else{var v;if(u.current=!0,t.dash)return t.retry(),!0;let i=t.currentSrc&&1===(0,rV.q)(t.currentSrc),l=t.currentTime,o=t.config.url instanceof Array?null===(v=t.config.url)||void 0===v?void 0:v.find(e=>{var t;return null==e?void 0:null===(t=e.src)||void 0===t?void 0:t.includes("www.douyin.com")}):null;return!o&&ed.logInstance.sendLog("videoRetryError",{type:"retry_base_url_miss",aweme_id:e}),i&&o?(t.src=o.src,t.load(),t.currentTime=l):t.retry(),!0}ed.logInstance.sendLog("videoRetryError",{type:"retry_native",aweme_id:e});try{s.current=!0;let i=t.currentTime,l=await (0,r$.m_)({awemeId:e,originType:a5.F.PlayerRetry});if(!d.current&&a.current===e){let a=null;if(0===l.statusCode&&l.detail){if(a=l.detail,!a4({player:t,awemeInfo:l.detail,isActive:r.current,abtestData:n,startTime:i}))return t.addClass(en.STATE_CLASS.ERROR),t.removeClass(en.STATE_CLASS.LOADING),!1;ed.logInstance.sendLog("videoRetryError",{type:"retry_api_aweme_ok",aweme_id:e})}else{if(!l.isUnknownAweme)return t.addClass(en.STATE_CLASS.ERROR),t.removeClass(en.STATE_CLASS.LOADING),ed.logInstance.sendLog("videoRetryError",{type:"retry_api_statuscode_error",aweme_id:e}),!1;null==o||o(),r.current&&L.F.info("该视频已被删除"),ed.logInstance.sendLog("videoRetryError",{type:"retry_api_aweme_404",aweme_id:e})}x.Le.setConfig(x.gI.RefetchAwemeInfo,{[e]:a})}}catch(i){return t.addClass(en.STATE_CLASS.ERROR),t.removeClass(en.STATE_CLASS.LOADING),ed.logInstance.sendLog("videoRetryError",{type:"retry_api_catch",aweme_id:e}),!1}return!0});(0,v.useEffect)(()=>(d.current=!1,()=>{d.current=!0}),[]);let m=e=>{var i,o,n,r,a,d;let{isH265:u}=(0,ry.Z)({awemeInfo:l,player:t}),s=(0,G._)((0,b._)({urlParamList:["previous_page","tab_name"]},(0,rp.Z)(t)),{group_id:l.groupId,aweme_type:l.awemeType,player_type:"xgplayer",player_version:t.version,errorCode:(null==e?void 0:null===(i=e.mediaError)||void 0===i?void 0:i.code)||(null==e?void 0:e.errorCode)||"",errorDesc:(null==e?void 0:null===(o=e.mediaError)||void 0===o?void 0:o.message)||(null==e?void 0:e.errorMessage)||"",is_cdn_expired:1===(0,rV.q)(t.currentSrc)?1:0,vduration:null==l?void 0:null===(n=l.video)||void 0===n?void 0:n.duration,is_video_support:Number((0,rF.k)().isSupport),is_bytevc1:u,log_pb:null==l?void 0:l.logPb,video_play_mode:(null===(r=P.Q.getItem({sKey:T.CookieKeys.VideoFilterMemoSelect,refresh:!1}))||void 0===r?void 0:r.type)===1?"landscape":"all",is_landscape:(null==l?void 0:null===(a=l.video)||void 0===a?void 0:a.width)>(null==l?void 0:null===(d=l.video)||void 0===d?void 0:d.height)?1:0});ed.logInstance.sendLog("videoPlayError",s)};(0,v.useEffect)(()=>{var e;t&&(null==l?void 0:null===(e=l.video)||void 0===e?void 0:e.playApi)&&(t.usePluginHooks("error","errorHandler",(e,t)=>Promise.resolve().then(async()=>{let e=await f(l.awemeId,!1,null==t?void 0:t.errorCode);return!e&&m(t),!e})),t.usePluginHooks("error","errorRetry",()=>(f(l.awemeId,!0),ed.logInstance.sendLog("videoRetryError",{type:"user_click",aweme_id:null==l?void 0:l.awemeId}),!1)))},[t,l,n]),(0,v.useEffect)(()=>{i&&t&&t.isError&&l&&f(l.awemeId,!0)},[n,i,t,l,f]),(0,v.useEffect)(()=>()=>t&&t.off&&a9(t),[t])};var di=i("813458");let dl=e=>{var t;let{player:i,state:l}=e;to()(i,"config.autoplay",l),to()(i,"autoplay",l),to()(i,"preloadActive",l),null===(t=er().instManager)||void 0===t||t.setActive(i.playerId,l)},dn=e=>{var t,i,l,o,n,r;let{player:a,gearType:d,config:u,awemeInfo:s}=e;a.config.userSelectDefinition=d,a.config.definition=null==u?void 0:u.definition,a.config.DASHPlugin=null==u?void 0:u.DASHPlugin;try{(null==u?void 0:null===(l=u.plugins)||void 0===l?void 0:l.includes(r3.default))?(a.unRegisterPlugin(r6.default.pluginName,!0),!(null==a?void 0:null===(n=a.plugins)||void 0===n?void 0:n.dashplugin)&&a.registerPlugin(r3.default)):(null==u?void 0:null===(o=u.plugins)||void 0===o?void 0:o.includes(r6.default))?(a.unRegisterPlugin(r3.default.pluginName,!0),!(null==a?void 0:null===(r=a.plugins)||void 0===r?void 0:r.mp4encryptplayer)&&a.registerPlugin(r6.default)):(a.unRegisterPlugin(r3.default.pluginName,!0),a.unRegisterPlugin(r6.default.pluginName,!0))}catch(e){}null===(i=a.getPlugin)||void 0===i||null===(t=i.call(a,"PlayClaritySettingPlugin"))||void 0===t||t.updateConfig({awemeInfo:s})},dr=e=>{let{player:t}=e;dl({player:t,state:!1}),t.pause()},da=e=>{var t;let{player:i,config:l,awemeInfo:o}=e;dl({player:i,state:!0});let n=null===(t=(0,lq.G)(T.SessionStorageKeys.manualSwitch))||void 0===t?void 0:t.gearType,r=e=>{var t,l,o;let n=tB.s.getPlayerScene(i.playerId)===ea.lT.Modal||(null==i?void 0:null===(t=i.config)||void 0===t?void 0:t.isModal),r=tB.s.getPlayersByScene(ea.lT.Modal).length>0,a=!!(null===(l=(0,E.parse)(location.search))||void 0===l?void 0:l.webRid);if((!!n||!r)&&!a)x.Le.setConfig(x.gI.StartPlayTime,Date.now()),null==i||null===(o=i[e])||void 0===o||o.call(i,null)};i.isPlaying?(i.config.userSelectDefinition!==n&&dn({player:i,gearType:n,config:l,awemeInfo:o}),i.resetState(),i.isPlaying=!1,r("start")):i.config.userSelectDefinition!==n?(dn({player:i,gearType:n,config:l,awemeInfo:o}),i.resetState(),i.isPlaying=!1,r("start")):(r("play"),i.emit("immediatePlay"))},dd=e=>{let{player:t,isActive:i,awemeInfo:l,config:o,abtestData:n,currentIndex:r}=e,a=(0,v.useRef)(!1),d=()=>{t.pause()};(0,v.useEffect)(()=>{if(t){if(t.__isInlinePlayer&&i&&!t.isBlockedInlinePlayerRestart&&(t.isPlaying=!1,t.isBlockedInlinePlayerRestart=!0),i)da({player:t,config:o,awemeInfo:l});else if(!i)return t.__isInlinePlayer&&(a.current=!0),dr({player:t}),t.on(en.Events.TIME_UPDATE,d),()=>{t.off(en.Events.TIME_UPDATE,d)}}},[t,i]),(0,v.useEffect)(()=>{let e=null;if(t&&i){var l;e=window.player,window.player=t;let i=tB.s.getPlayersByScene(ea.lT.Modal).length>0&&tB.s.getPlayerScene(t.playerId)!==ea.lT.Modal;(null===(l=(0,E.parse)(location.search))||void 0===l?void 0:l.webRid)&&(t.pause(),t.config.autoplay=!1),!i&&(null==t||t.setUserActive(!0));let o=eg.listen(eg.EVENT.videoPause,()=>{t.pause(),t.config.autoplay=!1});return()=>{e&&(window.player=e),o()}}},[t,i]),(0,v.useEffect)(()=>{let e=()=>{t&&i&&tB.s.getPlayersByScene(ea.lT.Modal).length>0&&tB.s.getPlayerScene(t.playerId)!==ea.lT.Modal&&(t.pause(),t.config.autoplay=!1,t.autoplay=!1)};if(t&&i)return t.once("play",e),()=>{t.off("play",e)}},[t,i]),(0,di.w)(()=>{if(t&&i){t.pause();let e=()=>{t.pause()};return t.on(en.Events.PLAY,e),t.on(en.Events.TIME_UPDATE,e),()=>{t.off(en.Events.PLAY,e),t.off(en.Events.TIME_UPDATE,e)}}},[i,t])},du=e=>{let{player:t,isActive:i}=e;(0,v.useEffect)(()=>{if(t&&t.root.getElementsByClassName("xgplayer-start")[0]&&(t.root.getElementsByClassName("xgplayer-start")[0].className=`${t.root.getElementsByClassName("xgplayer-start")[0].className} douyinHide`,i)){let e=setTimeout(()=>{t.root.getElementsByClassName("xgplayer-start")[0]&&(t.root.getElementsByClassName("xgplayer-start")[0].className=t.root.getElementsByClassName("xgplayer-start")[0].className.split(" ").filter(e=>"douyinHide"!==e).join(" "))},1e3),i=()=>{clearTimeout(e),t.root.getElementsByClassName("xgplayer-start")[0]&&(t.root.getElementsByClassName("xgplayer-start")[0].className=t.root.getElementsByClassName("xgplayer-start")[0].className.split(" ").filter(e=>"douyinHide"!==e).join(" "))};return t.once(en.Events.AUTOPLAY_STARTED,i),()=>{t.off(en.Events.AUTOPLAY_STARTED,i),t.root.getElementsByClassName("xgplayer-start")[0]&&(t.root.getElementsByClassName("xgplayer-start")[0].className=`${t.root.getElementsByClassName("xgplayer-start")[0].className} douyinHide`)}}},[t,i])};var ds=i("431940"),dc=i.n(ds),dv=i("870127"),df=i.n(dv),dm=i("423629"),dp=i("495394");let d_=()=>{let[e,t]=(0,v.useState)(null==n||n);return(0,v.useEffect)(()=>{void 0===n&&(async()=>{let{enable:e=!0}=await tr.get({key:ta.TccKey.PhoneResumeConfig,defaultValue:ta.TCC_DEFAULT_VALUE_MAP.get(ta.TccKey.PhoneResumeConfig)})||{};n=e,t(e)})()},[]),e},dg=null,dh=async()=>{if(dg)return dg;try{let{data:e=null}=await (0,dp.Dn)();return null!=(dg=e)?dg:{}}catch(e){return{}}},dy=null,dw=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],[i,l]=(0,v.useState)({});return(0,v.useEffect)(()=>{t&&(async()=>{null===dy&&(dy=dh());let t=await dy;l(null==t?void 0:t[e])})()},[t,e]),i},dx=(e,t)=>{let i=[_.e.Normal,_.e.XgVideo].includes(null==e?void 0:e.awemeType),l=t.currentTime>=3&&t.duration-t.currentTime>=30;return i&&l},dI=e=>{var t,i;let{player:l,isActive:o,awemeInfo:n,scene:r,userInfo:a}=e,d=d_(),u=dw("multi_device_resume",null==a?void 0:a.isLogin),s=d&&(null==u?void 0:u.enable)===1&&(null==u?void 0:u.pc_auto_record)===1;(0,v.useEffect)(()=>{var e,t;if(l&&(null==a?void 0:null===(e=a.info)||void 0===e?void 0:e.uid)&&(null==n?void 0:null===(t=n.continationInfo)||void 0===t?void 0:t.continationVideoAlreadyConsume)===!1){let{fwsExample:e}=x.Le.getConfig(x.gI.fwsExample)||{},t=e=>{var t,i,l,o,r;let d={app_id:ax.APP_ID,message_type:new(df())(dm.Cs.ReplyConsume||"0"),user_id:new(df())(a.info.uid||"0"),device_id:new(df())((null===(t=(0,N.Es)())||void 0===t?void 0:t.user_unique_id)||"0"),to_device_type:new(df())(dm.Yi.Phone||"0"),to_device_id:new(df())((null==n?void 0:null===(i=n.continationInfo)||void 0===i?void 0:i.fromDeviceId)||"0"),continuation_info:{ItemId:new(df())(null==n?void 0:n.awemeId),RecordType:new(df())(null==n?void 0:null===(l=n.continationInfo)||void 0===l?void 0:l.recordType),EpisodeId:new(df())((null==n?void 0:null===(r=n.lvideoBrief)||void 0===r?void 0:null===(o=r.episodeInfo)||void 0===o?void 0:o.episodeId)||"0")}},u=dc().stringify(d);e.send(u,{service:dm.oU.Multicast,method:10}),to()(n,"continationInfo.continationVideoAlreadyConsume",!0)};if(e){let i=()=>{t(e)};if(!l.isPlaying)return l.once(en.Events.CANPLAY,i),()=>{l.off(en.Events.CANPLAY,i)};i()}else{let e=null,i=eg.listen(eg.EVENT.fwsExampleInit,i=>{l.isPlaying?t(i):(e=()=>{t(i)},l.once(en.Events.CANPLAY,e))});return()=>{i(),l.off(en.Events.CANPLAY,e)}}}},[l,n]),(0,v.useEffect)(()=>{var e;if(l&&o&&(null==a?void 0:null===(e=a.info)||void 0===e?void 0:e.uid))return eg.listen(eg.EVENT.sendPullMessage,e=>{if(l.isUserActive&&dx(n,l)){var t,i,o,r,d,u,s;let{toDeviceId:c,toDeviceType:v}=e||{},{fwsExample:f}=x.Le.getConfig(x.gI.fwsExample)||{},m={app_id:new(df())("6383"),message_type:2,user_id:new(df())((null==a?void 0:null===(t=a.info)||void 0===t?void 0:t.uid)||"0"),device_id:new(df())((null===(i=(0,N.Es)())||void 0===i?void 0:i.user_unique_id)||"0"),to_device_type:new(df())(v),to_device_id:new(df())(c),continuation_info:{UserId:new(df())((null==a?void 0:null===(o=a.info)||void 0===o?void 0:o.uid)||"0"),ItemId:new(df())((null==n?void 0:n.awemeId)||"0"),ItemType:new(df())((null==n?void 0:n.awemeType)||"0"),PlayTime:Math.floor(l.currentTime),Cover:(null==n?void 0:null===(r=n.video)||void 0===r?void 0:r.cover)||"",FromDeviceId:new(df())((null===(d=(0,N.Es)())||void 0===d?void 0:d.user_unique_id)||"0"),FromDeviceType:Number(dm.Yi.PC),RecordType:Number(dm.ns.auto),EpisodeId:new(df())((null==n?void 0:null===(s=n.lvideoBrief)||void 0===s?void 0:null===(u=s.episodeInfo)||void 0===u?void 0:u.episodeId)||"0")}},p=dc().stringify(m);f.send(p,{service:dm.oU.Multicast,method:10})}})},[l,o,null==a?void 0:null===(t=a.info)||void 0===t?void 0:t.uid]),(0,v.useEffect)(()=>{var e;if(l&&o&&[dm.b.Default,dm.b.Open].includes(null==a?void 0:null===(e=a.info)||void 0===e?void 0:e.continuationState)&&s){let e=()=>{"hidden"===document.visibilityState&&l.isUserActive&&dx(n,l)&&(0,dp.wU)({item_id:null==n?void 0:n.awemeId,item_type:null==n?void 0:n.awemeType,play_progress:Math.floor(l.currentTime),to_client:Number(dm.Yi.Phone),record_type:Number(dm.ns.auto)})},t=()=>{l.isUserActive&&dx(n,l)&&(0,dp.wU)({item_id:null==n?void 0:n.awemeId,item_type:null==n?void 0:n.awemeType,play_progress:Math.floor(l.currentTime),to_client:Number(dm.Yi.Phone),record_type:Number(dm.ns.auto)})};return window.addEventListener("beforeunload",t),document.addEventListener("visibilitychange",e),()=>{window.removeEventListener("beforeunload",t),document.removeEventListener("visibilitychange",e)}}},[l,o,null==a?void 0:null===(i=a.info)||void 0===i?void 0:i.uid,s])};var dC=i("223985");let db=e=>{let{awemeInfo:t,abtestData:i}=e;return(0,v.useCallback)(()=>{var e,l,o;let{control:n,nextBufferMin:r,nextStartPos:a,nextStartBuffer:d,scale:u,scaleAd:s}=null!==(o=null==i?void 0:i.nextBufferConfig)&&void 0!==o?o:{},c={control:n,nextBufferMin:r,nextStartPos:a,nextStartBuffer:d,scale:(null==t?void 0:t.isAds)&&s?s:u};null===(l=el.ZP.instManager)||void 0===l||null===(e=l.updateStrategyConfig)||void 0===e||e.call(l,dC.l,(0,b._)({},c||{}))},[t,i])},dE=e=>{let{player:t,isNext:i,awemeInfo:l,abtestData:o}=e,n=db({awemeInfo:l,abtestData:o});(0,v.useEffect)(()=>{if(t&&i){var e;null===(e=er().instManager)||void 0===e||e.setNext(null==t?void 0:t.playerId,!0),window.nextPlayer=t,t.isMultiple=1,n()}},[t,i])};var dS=new eF.h({hover_related_video_icon:{eventName:"hover_related_video_icon",params:{enter_from:""}},h265DownInfo:{eventName:"h265_down_info",params:{type:""}},relatedVideoClick:{eventName:"related_video_click",params:{enter_from:"",enter_from_merge:"",group_id:"",author_id:0}},bottomBarShow:{eventName:"bottom_bar_show",params:{playlet_id:"",compilation_id:"",group_id:"",enter_from:"recommend",enter_from_merge:"",bar_type:"",entrance_cnt:0,is_update:0,item_duration_ms:0,bar_tag_name:"",player_display_mode:""}},bottomBarClick:{eventName:"bottom_bar_click",params:{playlet_id:"",compilation_id:"",group_id:"",enter_from:"recommend",enter_from_merge:"",bar_type:"",entrance_cnt:0,is_update:0,item_duration_ms:0,bar_tag_name:"",action:"open",player_display_mode:""}},videoSwitchUrl:{eventName:"video_switch_url",params:{aweme_id:"",vduration:0,current_position:0,vtype:"",buffer:0,is_visible:0,host:""}},refreshNoMatchVid:{eventName:"refresh_no_match_vid",params:{vid:""}}});let dk=e=>{let{player:t,awemeInfo:i,abtestData:l}=e,o=nv();(0,v.useEffect)(()=>{var e;let t=()=>{let e=null==i?void 0:i.isAds;if(window.TTCommon){var t,l;null===(t=(l=window.TTCommon).execute)||void 0===t||t.call(l,"applyConfig",e?'{"gpu_use_single_video_decoder_texture":1}':'{"gpu_use_single_video_decoder_texture":0}')}};return null==o||null===(e=o.on)||void 0===e||e.call(o,l4.PlayerBeforeCreate,t),()=>{var e;null==o||null===(e=o.off)||void 0===e||e.call(o,l4.PlayerBeforeCreate,t)}},[i,l]),(0,v.useEffect)(()=>{if((null==l?void 0:l.checkUrlTime)&&t){let e=async e=>{var o,n,r,a,d,u,s;if((null==l?void 0:l.checkUrlTime)===2&&(null==i?void 0:null===(o=i.video)||void 0===o?void 0:o.duration)>=6e4||"MP4_MSE"===t.vtype||"MP4_MSE_SOFT"===t.vtype||0===t.currentTime)return;let{bitrate:c,gearName:v}=null!==(n=t.curDefinition)&&void 0!==n?n:{},f=await (0,r$.m_)({awemeId:i.awemeId,originType:a5.F.PlayerRetry});if((null==f?void 0:f.statusCode)===0&&(null==f?void 0:f.detail)){let e=(null!==(d=null==f?void 0:null===(a=f.detail)||void 0===a?void 0:null===(r=a.video)||void 0===r?void 0:r.bitRateList)&&void 0!==d?d:[]).find(e=>e.bitRate===c&&e.gearName===v);if(e){let l=[].concat(e.playAddr).concat([{src:e.playApi}]);null===(u=t.switchURL)||void 0===u||u.call(t,{url:l},{action:"UPDATE_URL"}),dS.sendLog("videoSwitchUrl",{aweme_id:null==i?void 0:i.awemeId,vduration:null==i?void 0:null===(s=i.video)||void 0===s?void 0:s.duration,current_position:(null==t?void 0:t.currentTime)*1e3,vtype:null==t?void 0:t.vtype,buffer:(0,ru._)(t),is_visible:Number(!document.hidden)})}}};return t.on("MEDIA_EXPIRED",e),()=>{t.off("MEDIA_EXPIRED",e)}}},[t,i,l])},dT=e=>{let t=(0,e9.n)(),{isActive:i,awemeInfo:l,deleteCurrentSwiper:o,config:n,abtestData:r,scene:a,userInfo:d,isNext:u,currentIndex:s}=e;return a6({player:t,isActive:i,awemeInfo:l}),dt({player:t,isActive:i,awemeInfo:l,deleteCurrentSwiper:o,abtestData:r}),dd({player:t,isActive:i,awemeInfo:l,config:n,abtestData:r,currentIndex:s}),du({player:t,isActive:i}),dI({player:t,isActive:i,awemeInfo:l,scene:a,userInfo:d}),dE({player:t,isNext:u,awemeInfo:l,abtestData:r}),dk({player:t,awemeInfo:l,abtestData:r}),null};var dL=i("85079"),dA=i.n(dL),dR=i("648711");let dN=()=>void 0!==r?r:((0,dR.Gb)()&&(r=1),r),dP=e=>{var t,i,l,o,n;let{abtestData:r,awemeInfo:a,isInnerFeed:d,isModalVideo:u,modalEnterFrom:s}=e;if(!(null==r?void 0:null===(t=r.SR)||void 0===t?void 0:t.isOpen)||(null==a?void 0:a.awemeType)!==_.e.Normal||(0,nP.G)()<(null!==(l=null==r?void 0:null===(i=r.SR)||void 0===i?void 0:i.effectOrder)&&void 0!==l?l:3)||(0,l8.Ni)(a))return!1;if((0,D.DT)()){if(!(0,l6.b4)()||!(0,l6._u)())return!1}else{if((0,j.$o)(T.LocalStorageKeys.srDegradePermanently)||!(0,j.$o)(T.LocalStorageKeys.PowerEfficient))return!1;if(!dN()||(0,D.tq)())return(0,j.qQ)(T.LocalStorageKeys.srDegradePermanently,1),!1;if((null==a?void 0:a.isPrivate)||u&&![ec.a.WaterFall,ec.a.UserCollection,ec.a.UserLike,ec.a.UserPost,ec.a.UserRecord].includes(s)||d||!(null==r?void 0:null===(n=r.SR)||void 0===n?void 0:null===(o=n.applyPage)||void 0===o?void 0:o.includes((0,t6.yW)()))||x.Le.getConfig(x.gI.SrDegrade)||nO({abtestData:r,awemeInfo:a}))return!1}return!0},dM=[_.e.Normal],dj=e=>{let{isActive:t,abtestData:i,awemeInfo:l,isInnerFeed:o,scene:n}=e||{},r=(0,e9.n)(),a=(0,v.useMemo)(()=>{if(!dA()(i))return(0,rw.hG)({abtestData:i})},[i]),d=(0,v.useCallback)(()=>{var e,t,n;let r=window.playerPreloader,d=x.Le.getConfig(x.gI.PreloadList)||[],u=null===(e=(0,lq.G)(T.SessionStorageKeys.manualSwitch))||void 0===e?void 0:e.gearType,s=null!==(t=null==a?void 0:a.preloadTime)&&void 0!==t?t:5,c=(null==i?void 0:i.payloadUrl)||(null==i?void 0:i.payloadUrlServer);if((null==d?void 0:d.length)>0){let e=dP({abtestData:i,awemeInfo:l,isInnerFeed:o}),t=d.filter(e=>{var t;return t=e,dM.includes(t.awemeType)}).map((t,l)=>{var o,n,r;let a=a1({awemeInfo:t,abtestData:i,userselection:u,filter264InMix:!0,enableSr:e}),d=null==a?void 0:null===(o=a.definition)||void 0===o?void 0:o.list;c&&!(null==d?void 0:d.length)&&(d=[{url:null==a?void 0:a.url,duration:(null==t?void 0:null===(n=t.video)||void 0===n?void 0:n.duration)/1e3,uri:null==t?void 0:null===(r=t.video)||void 0===r?void 0:r.uri,bitrate:null==a?void 0:a.bitrate,size:null==a?void 0:a.size}]);let v=(null==d?void 0:d.find(e=>(null==e?void 0:e.vtype)==="DASH"))?null==i?void 0:i.stepPreloadDashConfig:null==i?void 0:i.stepPreloadConfig;return{order:l,data:(0,b._)({codecType:null==a?void 0:a.codecType,vid:null==t?void 0:t.awemeId,payload:d,preloadTime:s,vtype:null==a?void 0:a.vtype,bizType:(null==t?void 0:t.isAds)?tC._6.Ad:tC._6.Normal},v)}});null===(n=r.addPreloadList)||void 0===n||n.call(r,t)}},[l,i,a]);return(0,v.useEffect)(()=>{let e=window.playerPreloader;r&&t&&e&&2!==i.longtask&&d()},[r,t,i]),(0,v.useEffect)(()=>{if(2===i.longtask){let e=window.playerPreloader;r&&t&&e&&iq.p.postTask({task:()=>d()})}},[r,t,i]),(0,v.useEffect)(()=>{let e=window.playerPreloader;if(r&&t&&e){var l,o;let t;let n=()=>{var i,l,o,a;((null==r?void 0:null===(i=r.plugins)||void 0===i?void 0:i.mp4encryptplayer)||(null==r?void 0:null===(l=r.plugins)||void 0===l?void 0:l.dashplugin))&&(null==e||null===(o=e.attachPlayer)||void 0===o||o.call(e,r),null==r||null===(a=r.off)||void 0===a||a.call(r,en.Events.TIME_UPDATE,n),clearTimeout(t))},a=(0,iT.En)()?null===(l=(0,lr.P)(i))||void 0===l?void 0:l.preloadAttachDelay:null==i?void 0:i.preloadAttachDelay;return a?t=setTimeout(n,a||3e3):null==r||null===(o=r.on)||void 0===o||o.call(r,en.Events.TIME_UPDATE,n),()=>{var i;clearTimeout(t),null==r||null===(i=r.off)||void 0===i||i.call(r,en.Events.TIME_UPDATE,n),null==e||e.detachPlayer(r)}}},[t,r,l]),null},dD=e=>{let t=(0,o0.N)();return(0,c.jsx)(e4.k,{componentName:"Preload",Slardar:t,children:(0,c.jsx)(dj,(0,b._)({},e))})},dF=e=>{let{awemeInfo:t,isActive:i,abTestData:l}=e,o=(0,e9.n)(),n=()=>{let e=x.Le.getConfig(x.gI.AwemePcRecRawData);return!e&&(e={videoPrefer:{fsn:[],like:[],halfMin:[],min:[]}},x.Le.setConfig(x.gI.AwemePcRecRawData,e)),e};return(0,v.useEffect)(()=>{if(o){let e=()=>{o.playTimestamp=new Date().getTime()};return null==o||o.on(en.Events.PLAY,e),()=>o.off(en.Events.PLAY,e)}},[o]),(0,v.useEffect)(()=>{if(o&&i){let e=()=>{var e;let{fsn:i}=n().videoPrefer;i.filter((e,t)=>t%2==0).includes(null==t?void 0:t.groupId)||i.push(null==t?void 0:t.groupId,null==t?void 0:null===(e=t.authorInfo)||void 0===e?void 0:e.uid),(0,x.xL)(t,o,"fsn")};return null==o||o.on(en.Events.ENDED,e),()=>null==o?void 0:o.off(en.Events.ENDED,e)}},[o,i,t]),(0,v.useEffect)(()=>{if(o&&i)return()=>{[3e4,6e4].filter(e=>o.cumulateTime>=e).map(e=>3e4===e?"halfMin":"min").map(e=>{var i;return{field:e,groupId:null==t?void 0:t.groupId,authorId:null==t?void 0:null===(i=t.authorInfo)||void 0===i?void 0:i.uid}}).forEach(e=>{let i=n().videoPrefer[e.field];i.filter((e,t)=>t%2==0).includes(null==t?void 0:t.groupId)||i.push(e.groupId,e.authorId),(0,x.xL)(t,o,e.field)}),o.cumulateTime<2e3&&(0,x.xL)(t,o,"skip"),o.overallPlayTime?o.overallPlayTime+=o.cumulateTime:o.overallPlayTime=o.cumulateTime}},[o,i,t]),null},dV=e=>{let t=(0,o0.N)();return(0,c.jsx)(e4.k,{componentName:"CumulativeTime",Slardar:t,children:(0,c.jsx)(dF,(0,b._)({},e))})},dB=e=>{let{children:t,style:i={},className:l}=e;return(0,c.jsx)("div",{className:m()(nl,null==l?void 0:l.bottom),style:i,children:t})},dO=e=>{let t=(0,o0.N)();return(0,c.jsx)(e4.k,{componentName:"PositionBoxBottom",Slardar:t,children:(0,c.jsx)(dB,(0,b._)({},e))})};var dU=i("966473"),dH={button:"Whp3KeI5",hashTagSpan:"MAfZHZib",linkHashTag:"bZyPiT16",userText:"k_LKAK0n",videoTitleWrapper:"ucI_eMsJ",videoTitle:"kagNLznt",brandAd:"RJRFPsuM",adaptive:"f6cQ7MQI",expandButton:"lLqhUstC",infoContainer:"CoBfqhb4",pictureStyle:"TkSLpE6p",hide:"dmSs4g55",underTitleTagContainer:"SdIsoOHq",rsBarOpt:"clzcbD1l",videoTagContainer:"Se7caAXC",friendIcon:"GIIH2IbS",marginTop:"mPT3gVu7",oneLineText:"DWqFKXlw"},dW=i("690343"),dG=new eF.h({clickTitleAt:{eventName:"click_title_at",params:{to_user_id:"",author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",is_full_screen:"0"}},clickVideoTitle:{eventName:"click_video_title",params:{action:"expand",author_id:"",group_id:"",enter_from:"",log_pb:"",previous_page:"",is_full_screen:"0",player_display_mode:""}},clickTitleHashtag:{eventName:"click_title_hashtag",params:{hashtag:"",author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",is_full_screen:"0",tag_id:"",status:"",player_display_mode:""}},xiguaAnchorShow:{eventName:"xigua_anchor_show",params:{author_id:"",group_id:""}},xiguaAnchorClick:{eventName:"xigua_anchor_click",params:{author_id:"",group_id:""}},clickAuthorHead:{eventName:"click_author_head",params:{author_id:"",group_id:"",enter_from:"",previous_page:"",is_full_screen:"0",log_pb:"",from_follow_list:"0",from_xigua:0,click_from:"",clarity:"",aweme_type:"",is_auto:1}},trendingShow:{eventName:"trending_show",params:{words_source:"related_search_anchor_v2",enter_from:"",words_num:0,enter_group_id:"",impr_id:""}},trendingWordsClick:{eventName:"trending_words_click",params:{words_source:"title_named_entity",enter_group_id:"",enter_group_type:"",group_id:"",search_position:"",words_content:"",words_position:0,impr_id:""}},trendingWordsShow:{eventName:"trending_words_show",params:{words_source:"title_named_entity",enter_group_id:"",enter_group_type:"",group_id:"",search_position:"",words_content:"",words_position:0,impr_id:""}}});let dz=e=>e<=1440?22:e>=1920?26:.015277777777777777*e,dZ=()=>{let[e,t]=(0,v.useState)(()=>window.innerWidth);return(0,v.useEffect)(()=>{let e=ti()(()=>{t(window.innerWidth)},100,{trailing:!0});return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e},dq=e=>{let t=dZ(),i=dz(t),[l,o]=(0,v.useState)(500),n=Math.floor((l-45-16)/i),r=t>=1920?1:2;return(0,v.useEffect)(()=>{if(x.Le.getConfig(x.gI.AbtestData).reduceRender)return()=>{};let t=window.setTimeout(()=>{var t;let i=(null==e?void 0:e.root)||(null===(t=window.player)||void 0===t?void 0:t.root);o(i&&parseInt(window.getComputedStyle(i,null).height,10)||800)},200);return()=>{window.clearTimeout(t)}},[]),{lineHeight:i,maxLine:n,videoLineCamp:r}};i("14275");var d$=i("89063"),dK=i("217913"),dY=i.n(dK),dQ=i("435587"),dJ=i("830283"),dX=i("715858"),d0=i("549912"),d1={actionableText:"tTJWonaC",twemojiText:"xPxUaQ1F",userText:"iXbxmrba",hashtagText:"hr_7Qi3g",searchText:"M4msYoM1",text:"NoLfRShh",icon:"sIdZJpH4",clarity:"flU8javl"};let d2={trendingShow:{eventName:"trending_show",params:{words_source:"title_named_entity",enter_group_id:"",enter_group_type:"",search_position:"",words_position:0,impr_id:""}}};var d3=i("208112");let d6=(0,d3.kv)(),d5=/(\[\S+?\])/g;var d4=v.memo(e=>{let{text:t,imgClassname:i,renderTextWithTag:l}=e,[o,n]=(0,v.useState)(d6);if((0,v.useEffect)(()=>{(async()=>{let{statusCode:e,data:t}=await (0,d3.zk)();0===e&&(d6=t,n(t))})()},[]),!t)return null;let r=t.split(d5).map((e,t)=>{var n;if(!e)return null;if(!o[e])return(0,c.jsx)("span",{children:l?l(e):e},`emoji-text-${t}`);return(0,c.jsx)("img",{className:i,src:null===(n=o[e])||void 0===n?void 0:n.img,alt:e,style:{margin:"0 4px",verticalAlign:"text-bottom"}},`emoji-text-${t}`)});return(0,c.jsx)("span",{children:r})});let d8=(0,v.forwardRef)((e,t)=>(0,c.jsx)("svg",(0,G._)((0,b._)({width:9,height:9,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,c.jsx)("path",{clipRule:"evenodd",d:"M1.2 4.024c0-1.375 1.05-2.426 2.426-2.426 1.217 0 2.269 1.051 2.269 2.426 0 1.218-1.051 2.269-2.27 2.269-1.374 0-2.425-1.051-2.425-2.269zM3.626.398C1.588.398 0 1.987 0 4.024 0 5.96 1.645 7.493 3.626 7.493c.729 0 1.414-.239 1.98-.64l1.57 1.57a.6.6 0 0 0 .848-.85l-1.57-1.57c.402-.565.64-1.25.64-1.979 0-1.98-1.533-3.626-3.468-3.626z"})})));var d7=i("624860"),d9="ROP0JNKf";i("559561");var ue=i("759385");let ut=(e,t)=>{let{pathname:i}=location,l=i.indexOf("/search/");return l>-1?`${i.slice(0,l)}/search/${e}?${t}`:"/"===i?`/root/search/${e}?${t}`:`${i.endsWith("/")?i.slice(0,-1):i}/search/${e}?${t}`},ui=(0,v.createContext)({});var ul=e=>{let{className:t,style:i,children:l,query:o,params:n,onClick:r,onMouseLeave:a,isAiSearch:d,onMouseEnter:u}=e,s=(0,v.useContext)(ui),{changeKeyword:f,resetSearchParams:p}=(0,d7.w)(),_=(0,v.useMemo)(()=>{let e={};if(!(0,D.DT)()&&!(0,iT.En)()&&(null==s?void 0:s.searchSpa)>0){let t=encodeURIComponent(o),i=(0,E.stringify)(n),l=(0,oA.Sp)(t,i);e.href=l}return e},[o,n,null==s?void 0:s.searchSpa]),g=e=>{e.stopPropagation(),e.nativeEvent.stopPropagation()};return(0,c.jsx)("a",(0,G._)((0,b._)({},_),{className:m()(d9,t),style:i,suppressHydrationWarning:!0,onClick:e=>{if(null==r||r(e),!e.defaultPrevented){let t=null==s?void 0:s.searchOpenCurrentTab,i=null==s?void 0:s.clientSpaV2;if(e.stopPropagation(),e.nativeEvent.stopPropagation(),!!function(e){var t,i;let l=null===(t=e.target)||void 0===t?void 0:t.target;return 0===e.button&&(!l||"_self"===l)&&!((i=e).metaKey||i.altKey||i.ctrlKey||i.shiftKey)}(e)){e.preventDefault();d||function(e,t,i,l,o,n,r){var a,d,u;let s=/firefox/i.test(navigator.userAgent),c=i&&!(0,D.DT)()&&((null===(a=window)||void 0===a?void 0:a.location.pathname)==="/"||(null===(d=window)||void 0===d?void 0:d.location.pathname.startsWith("/search/"))),v=(0,eh.j9)();if(n&&(0,iT.En)()&&(o||v)){eg.emit(eg.EVENT.triggerModalPlayerClose),n(e,t.source,"",t.is_n1);return}l&&c&&ue.H.save();let f=encodeURIComponent(e),m=(0,E.stringify)(t),p=(0,oA.Sp)(f,m);if(v){(0,id.B1)({tag:"search_triggered_by_search_action"});let i=ut(f,m);eg.emit(eg.EVENT.beforeSearchSpaJump,{query:e,params:t,toPath:i}),(0,ey.r)()?document.exitFullscreen().then(()=>{setTimeout(()=>{eg.emit(eg.EVENT.searchSpa,{to:i}),r(e,t)},120)}):(eg.emit(eg.EVENT.searchSpa,{to:i}),r(e,t));return}if(c)window.location.href=p;else if(s){let e=window.open("about:blank",(0,il.f)()?"_self":"_blank");e&&(e.location.href=p)}else{;if((0,eI.G6)()||(0,eI.i7)()&&70>parseInt(null===(u=(0,eI.Lq)().browser_version.split("."))||void 0===u?void 0:u[0],10))window.open(p,(0,il.f)()?"_self":"_blank");else window.open(p,(0,il.f)()?"_self":"_blank","noopener")}}(o,n,(null==t?void 0:t.open_current_tab)===1,(null==t?void 0:t.save_video)===1,i===tJ.CommonSwitch.On&&(0,D.DT)(),f,p)}}},onMouseEnter:u,onMouseLeave:a,onTouchStartCapture:g,onPointerDownCapture:g,onContextMenuCapture:g,children:l}))};let uo=(0,v.createContext)(null),un=v.memo(e=>{var t;let{searchQueryId:i,text:l,onSearchTextClick:o,onCloseVideoPlayer:n,href:r,className:a,onMounted:d,searchTextPos:u,isSpider:s,abTestData:f}=e,[p,_]=(0,v.useState)(""),{userInfo:g}=(0,v.useContext)(uo)||{},[h,y]=(0,v.useState)(""),w=(0,v.useCallback)(e=>{n&&n(),o&&o(l,i,u,e)},[i,u,l,o,n]);(0,v.useEffect)(()=>{let{uid:e}=JSON.parse(localStorage.getItem("user_info")||"{}");_(e)},[]);let x=(null==g?void 0:null===(t=g.info)||void 0===t?void 0:t.secUid)||p,{unshiftWord:I}=(0,dJ.u)(x),C=(0,v.useCallback)(e=>{let t=e.split("/");return decodeURIComponent(t[t.length-1].split("?")[0])},[]),b=(0,v.useMemo)(()=>{if(null==r?void 0:r.includes("/search/")){let e=C(r),t=(0,iT.pf)(r);return(0,c.jsxs)(ul,{className:m()(d1.searchText,a),onClick:e=>{w(e)},query:e,params:t,children:[(0,c.jsx)("span",{className:d1.text,children:l}),(0,c.jsx)(lt.Z,{className:d1.icon,width:9,height:9,viewBox:"0 0 9 9",src:d8})]})}return(0,c.jsxs)(oB,{className:m()(d1.searchText,a),onClick:w,href:r,target:"_blank",isNeedSeoOpt:!0,children:[(0,c.jsx)("span",{className:d1.text,children:l}),(0,c.jsx)(lt.Z,{className:d1.icon,width:9,height:9,viewBox:"0 0 9 9",src:d8})]})},[r,l,w]);(0,v.useEffect)(()=>{d&&d(l,i,u)},[i,l,u]);let E=!s||s&&!(0,d0.y2)(l,5);return(0,v.useEffect)(()=>{var e;y((null===(e=window)||void 0===e?void 0:e.location.href)||"")},[]),(0,c.jsx)(c.Fragment,{children:r&&E?b:(0,c.jsxs)("span",{className:m()(d1.searchText,a),onClick:w,children:[(0,c.jsx)("span",{className:d1.text,children:l}),(0,c.jsx)(lt.Z,{className:d1.icon,width:9,height:9,viewBox:"0 0 9 9",src:d8})]})})}),ur=(e,t,i)=>{try{return null==i?void 0:i(e,t)}catch(l){return null==i?void 0:i((0,t5.eC)(e),t)}};var ua="Od84oVm7",ud=e=>{let{text:t,href:i,className:l,style:o,searchQueryId:n,searchTextPos:r,abTestData:a,onMounted:d,onSearchTextClick:u}=e;(0,v.useEffect)(()=>{d&&d(t,n,r)},[n,t,r]);let s=(0,v.useCallback)(e=>{e.stopPropagation(),e.preventDefault(),u&&u(t,n,r,e)},[n,r,t,u]);return(0,c.jsx)(oB,{className:l,onClick:s,style:o,href:i,target:"_blank",isNeedSeoOpt:!0,children:(0,c.jsx)("span",{className:m()(ua),children:t})})};let uu=v.memo(e=>{var t;let{hashtagId:i,text:l,onClickHashtag:o,onCloseVideoPlayer:n,href:r,className:a,isCommerce:d,isSpider:u,abTestData:s}=e,{userInfo:f}=(0,v.useContext)(uo)||{},[p,_]=(0,v.useState)(""),g=(0,v.useCallback)(e=>{n&&n(),o&&o(i,l,d,e)},[i,o,n,l,d]),h=(0,v.useCallback)(e=>{let t=e.split("/");return decodeURIComponent(t[t.length-1].split("?")[0])},[]);(0,v.useEffect)(()=>{let{uid:e}=JSON.parse(localStorage.getItem("user_info")||"{}");_(e)},[]);let y=(null==f?void 0:null===(t=f.info)||void 0===t?void 0:t.secUid)||p,{unshiftWord:w}=(0,dJ.u)(y),x=(0,v.useCallback)(e=>{l.slice(1),g(e)},[l,w,g]),I=(0,v.useMemo)(()=>{if(null==r?void 0:r.includes("/search/")){let e=h(r),t=(0,iT.pf)(r);return(0,c.jsx)(ul,{className:m()(d1.hashtagText,a),onClick:x,query:e,params:t,children:(0,c.jsx)("span",{children:l})})}return(0,c.jsx)(oB,{className:m()(d1.hashtagText,a),onClick:g,href:r,target:"_blank",isNeedSeoOpt:!0,children:(0,c.jsx)("span",{children:l})})},[r,l,x]),C=!u||u&&!(0,d0.y2)(l,6);return(0,c.jsx)(c.Fragment,{children:r&&C?I:(0,c.jsx)("span",{className:m()(d1.hashtagText,a),onClick:x,children:(0,c.jsx)("span",{children:l})})})}),us=v.memo(e=>{let{userId:t,secUid:i,text:l,enterMethod:o,onClickUser:n,onCloseVideoPlayer:r,className:a,awemeInfo:d}=e,u=(0,v.useCallback)(e=>{r&&r(e),n&&n(t,e)},[t,n,r]),s=`enter_method=${o}&enter_from=${(0,e_.mo)()}&from_gid=${null==d?void 0:d.awemeId}`,f=i&&(0,oA.HC)(i,s);return(0,c.jsx)(oB,{onClick:e=>{u(e),!f&&e.preventDefault()},className:m()(d1.userText,a),href:f,target:"_blank",rel:"noreferrer",isNeedSeoOpt:!0,children:(0,c.jsx)("span",{id:l,children:l})})});function uc(e){let{text:t,isRemoveRowspan:i,renderTextWithTag:l,seoInfo:o}=e,n=t;i&&(n=(0,t5.LT)(n));let r=n.replaceAll("\\N","\n").split("\n");return(0,c.jsx)(c.Fragment,{children:r.map((e,t)=>(null==o?void 0:o.isSpider)&&(null==o?void 0:o.awemeId)&&e.trim()&&!/^#/.test(e.trim())?(0,c.jsx)("a",{href:(0,oA.JF)(null==o?void 0:o.awemeId),children:e},t):(null==o?void 0:o.isSpider)?(0,c.jsx)(c.Fragment,{children:e}):(0,c.jsxs)("span",{children:[(0,c.jsx)(d4,{text:e,imgClassname:d1.twemojiText,renderTextWithTag:l}),t<r.length-1?(0,c.jsx)("br",{}):""]},t))})}let uv={[dQ.w.User]:(e,t)=>{let{text:i,enterMethod:l,userTextClassName:o,onClickUser:n,onCloseVideoPlayer:r,awemeInfo:a}=e,{userId:d,secUid:u}=t;return(0,c.jsx)(us,{text:i,enterMethod:l,className:o,onClickUser:n,onCloseVideoPlayer:r,awemeInfo:a,userId:d,secUid:u})},[dQ.w.HashTag]:(e,t)=>{let{hashTagClassName:i,text:l,getHashTagHref:o,onClickHashtag:n,onCloseVideoPlayer:r,seoInfo:a,abTestData:d}=e,{hashtagId:u,isCommerce:s}=t;return(0,c.jsx)(uu,{className:i,href:ur((null==l?void 0:l.slice(1))||"",u||"",o),hashtagId:u,text:l,onClickHashtag:n,onCloseVideoPlayer:r,isCommerce:s,isSpider:null==a?void 0:a.isSpider,abTestData:d})},[dQ.w.Search]:(e,t)=>{let{text:i,onCloseVideoPlayer:l,onSearchTextClick:o,getSearchTextUrl:n,searchTextClass:r,showSearchHighlight:a,isRemoveRowspan:d,onSearchTextMounted:u,seoInfo:s,abTestData:v}=e,{searchQueryId:f,searchTextPos:m,searchText:p}=t;return a?(0,c.jsx)(un,{onCloseVideoPlayer:l,href:ur(i,f,n),text:i,onSearchTextClick:o,searchQueryId:f,className:r,onMounted:u,searchTextPos:m,isSpider:null==s?void 0:s.isSpider,abTestData:v}):(0,c.jsx)(ud,{text:i,abTestData:v,onSearchTextClick:o,searchQueryId:f,className:r,onMounted:u,searchTextPos:m,isSpider:null==s?void 0:s.isSpider})},[dQ.w.Unknown]:e=>{let{isRemoveRowspan:t,text:i,renderTextWithTag:l,seoInfo:o}=e;return(0,c.jsx)(uc,{isRemoveRowspan:t,text:i,renderTextWithTag:l,seoInfo:o})}};function uf(e,t){let i=uv[function(e){if(!e)return dQ.w.Unknown;let{type:t,userId:i,hashtagId:l}=e;return dY()(t)?i?dQ.w.User:l?dQ.w.HashTag:dQ.w.Unknown:t}(t)];return i?i(e,t):uv[dQ.w.Unknown](e)}var um=v.memo(function(e){let{text:t="",textExtra:i=null,onClick:l=null,children:o,type:n="",className:r,seoInfo:a,wrapperClassName:d,showSearchHighlight:u,awemeInfo:s}=e,f=(0,v.useRef)(null),p=(0,v.useRef)(0),g=t||"",h=[],y=(0,v.useMemo)(()=>(0,dX.y$)(d2),[]);if((0,v.useEffect)(()=>{p.current>0&&!u&&s&&(null==i?void 0:i.length)!==0&&y("trendingShow",{words_num:p.current,enter_group_id:s.awemeId,enter_group_type:s.awemeType===_.e.Note?"aweme_image":"aweme_video",search_position:(0,t6.yW)(),impr_id:(0,dW.U)(s).impr_id})},[s,u]),!i||Array.isArray(i)&&0===i.length)h.push(uf((0,G._)((0,b._)({},e),{text:g})));else{let t=0,l=function(e){if(!(e&&Array.isArray(e))||!(e.length>0))return e;{let t=[...e];return t.sort((e,t)=>e.start-t.start),t}}(i);l.some(e=>{let{type:t,start:i,end:l,hashtagName:o}=e;return t===dQ.w.HashTag&&`#${o}`.toLowerCase()!==g.slice(i,l).toLowerCase()||!1})&&(g=g.replace(/\s*\n/gi,"\n")),p.current=0,l.forEach(e=>{let{type:t,searchText:i}=e;if(t===dQ.w.Search){e.searchTextPos=p.current,p.current+=1;let t=g.indexOf(i);t>=0&&(e.start=t,e.end=t+i.length)}}),l.forEach(i=>{let{start:l,end:o}=i;t<l&&h.push(uf((0,G._)((0,b._)({},e),{text:g.slice(t,l)})));let n=g.slice(l,o);h.push(uf((0,G._)((0,b._)({},e),{text:n}),i)),t=o}),t<g.length&&h.push(uf((0,G._)((0,b._)({},e),{text:g.slice(t)})))}return(null==a?void 0:a.isSpider)?(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("span",{ref:f,className:d,children:(0,c.jsxs)("span",{className:m()(d1.actionableText,d1[n],r),onClick:l,children:[o||"",h.map((e,t)=>(0,c.jsx)(c.Fragment,{children:e})),(null==a?void 0:a.appendKeyword)&&(0,c.jsx)("h1",{children:a.appendKeyword})]})})}):(0,c.jsx)("span",{ref:f,className:d,children:(0,c.jsx)(d$.default,{noWrapper:!0,options:{className:d1.twemojiText,base:"//p-pc-weboff.byteimg.com/tos-cn-i-9r5gewecjs/twemoji/"},children:(0,c.jsxs)("span",{className:m()(d1.actionableText,d1[n],r),onClick:l,children:[o||"",h.map((e,t)=>(0,c.jsx)("span",{children:e},t)),(null==a?void 0:a.appendKeyword)&&(0,c.jsx)("h1",{children:a.appendKeyword})]})})})}),up=i("24894"),u_={wrapper:"lNhGeeK2",expandMask:"aGNfZWCh",isDetailSearch:"pGSTGG6Z",text:"OZW19JCe",showButton:"XrYCOi1p",expandText:"ZQiei8Ti",isMobile:"bCA2fQIN",isSafari:"WefkNaSZ",lowChome:"RFN13HMo",btn:"LbF9t5f_",btnWrap:"POqwclLo",btnShow:"ghrw3n2i",notChrome:"OGKpCBMd",isUnfold:"oe_FWpi7",isFixAfter:"FywuNlES"};let ug=(e,t)=>{var i;let l=(null==t?void 0:t.root)||(null===(i=window.player)||void 0===i?void 0:i.root);return Math.floor(((l&&parseInt(window.getComputedStyle(l,null).height,10)||800)-45-16)/e)};var uh=v.memo(e=>{let{children:t,lineClamp:i=2,btnClassName:l,onlyKey:o="",maxLine:n=999,btnOnClick:r,renderContent:a,lineHeight:d=20,renderButton:u,player:s,showExpandButton:f=!0,renderBeforeContent:p,isMobile:_,isActive:g}=e,[h,y]=(0,v.useState)(!1),[w,I]=(0,v.useState)(!1),[C,b]=(0,v.useState)(0),E=(0,v.useRef)(n);E.current=n;let[S,k]=(0,v.useState)(i),{isFullScreen:T,isCssFullScreen:L}=(0,v.useContext)(q.C),A=(0,v.useRef)(null),[R,N]=(0,v.useState)(!1),[P,M]=(0,v.useState)(!1),[j,D]=(0,v.useState)(()=>{let e=x.Le.getConfig(x.gI.IsInModalVideo),t=(null==e?void 0:e.isInModal)||!1;return"video_detail"===(0,e_.vM)()&&!T&&!L&&!t&&!0});(0,v.useEffect)(()=>{if(s){let e=e=>{let t=x.Le.getConfig(x.gI.IsInModalVideo),i=(null==t?void 0:t.isInModal)||!1;"video_detail"!==(0,e_.vM)()||e||L||i?D(!1):D(!0)};return s.on(en.Events.FULLSCREEN_CHANGE,e),()=>{s.off(en.Events.FULLSCREEN_CHANGE,e)}}},[]),(0,v.useEffect)(()=>{N((0,eI.i7)()&&!(0,eI.GP)())},[]);let F=(0,v.useCallback)(()=>{(0,v.startTransition)(()=>{if((null==A?void 0:A.current)&&!w){let{scrollHeight:e,clientHeight:t}=null==A?void 0:A.current;t>0&&(e-t>15||e>=d*i+15)?y(!0):y(!1)}})},[d,i,w]);return(0,v.useEffect)(()=>{if(!w){var e;null===(e=A.current)||void 0===e||e.scrollTo(0,0)}},[w]),(0,v.useEffect)(()=>{let e=null;return A.current&&(e=ne.Z.bind(A.current,F)),()=>{e&&(null==e||e())}},[F]),(0,v.useEffect)(()=>{I(!1),k(i),y(!1),F()},[o,i,d]),(0,v.useEffect)(()=>{!g&&(I(!1),k(i),y(!1),F())},[g,i]),(0,v.useEffect)(()=>{if(A.current&&w&&s){var e,t,i,l,o;let n=e=>{var t;null==e||null===(t=e.stopPropagation)||void 0===t||t.call(e)},r=e=>{var t,i;null==e||null===(t=e.stopPropagation)||void 0===t||t.call(e),(null==A?void 0:null===(i=A.current)||void 0===i?void 0:i.scrollTop)?M(!0):M(!1)},a=iz()(()=>{var e,t,i,l;b(((null==s?void 0:null===(l=s.config)||void 0===l?void 0:null===(i=l.el)||void 0===i?void 0:null===(t=i.getBoundingClientRect)||void 0===t?void 0:null===(e=t.call(i))||void 0===e?void 0:e.height)-48)/4)},200);return a(),null===(e=A.current)||void 0===e||e.addEventListener("wheel",n),null===(t=A.current)||void 0===t||t.addEventListener("scroll",r),null===(i=A.current)||void 0===i||i.addEventListener("mousedown",n),null===(l=A.current)||void 0===l||l.addEventListener("pointerdown",n),null===(o=A.current)||void 0===o||o.addEventListener("touchstart",n),window.addEventListener("resize",a),()=>{var e,t,i,l,o;null===(e=A.current)||void 0===e||e.removeEventListener("wheel",n),null===(t=A.current)||void 0===t||t.removeEventListener("scroll",r),null===(i=A.current)||void 0===i||i.removeEventListener("mousedown",n),null===(l=A.current)||void 0===l||l.removeEventListener("pointerdown",n),null===(o=A.current)||void 0===o||o.removeEventListener("touchstart",n),window.removeEventListener("resize",a)}}},[w,s]),(0,c.jsxs)("div",{className:m()(u_.wrapper,{[u_.notChrome]:!R,[u_.isDetailSearch]:j,[u_.isFixAfter]:!f,[u_.expandMask]:P}),children:[(0,c.jsxs)("div",{ref:A,className:m()(u_.text,{[u_.showButton]:h,[u_.expandText]:w,[u_.isMobile]:_,[u_.lowChome]:(0,eI.h5)("69.0"),[u_.isSafari]:(0,eI.G6)()}),style:{"--lineClamp":S,"--lineHeight":`${d}px`,"--maxHeight":`${d*S}px`,maxHeight:w?C:""},children:[p&&p(h),a&&a({isUnfold:w}),"function"==typeof t?t(h):t]}),(0,c.jsx)("div",{className:m()(u_.btnWrap,{[u_.btnShow]:h,[u_.isUnfold]:w}),style:{height:`${d-2}px`},children:f&&(0,c.jsx)("button",{type:"button",onClick:e=>{if(!w){let e=ug(d,s);e&&(E.current=e)}k(e=>e===i?E.current:i),I(e=>!e),r&&r(w),(null==e?void 0:e.target)&&e.target.blur()},className:m()(l,u_.btn),children:u?u(w):w?iM.a.t("fold",{},"收起"):iM.a.t("expand",{},"展开")})})]})}),uy=i("254457"),uw=new eF.h({hover_bottom_bar:{eventName:"hover_bottom_bar",params:{enter_from:"",bar_type:"",player_display_mode:""}},compilationEntranceShow:{eventName:"compilation_entrance_show",params:{enter_from:"recommend",group_id:"",author_id:"",compilation_id:"",entrance_cnt:1,is_update:0}},hotEntranceShow:{eventName:"hot_entrance_show",params:{enter_from:"recommend",group_id:"",author_id:"",trending_topic:"",first_tag_name:"",top:0,entrance_cnt:1}},compilationEntranceClick:{eventName:"compilation_entrance_click",params:{enter_from:"recommend",group_id:"",author_id:"",compilation_id:"",entrance_cnt:1,is_update:0}},hotEntranceClick:{eventName:"hot_entrance_click",params:{enter_from:"recommend",group_id:"",author_id:"",trending_topic:"",first_tag_name:"",top:0,entrance_cnt:1}},moreVideoEntranceShow:{eventName:"more_video_entrance_show",params:{enter_from:"recommend",group_id:"",author_id:"",entrance_cnt:1}},moreVideoEntranceClick:{eventName:"more_video_entrance_click",params:{enter_from:"recommend",group_id:"",author_id:"",entrance_cnt:1}},trendingWordsShow:{eventName:"trending_words_show",params:{words_source:"related_search_anchor_v2",enter_from:"",words_content:"",enter_group_id:"",words_position:0,entrance_cnt:1,words_num:0,group_id:"",impr_id:""}},trendingWordsClick:{eventName:"trending_words_click",params:{words_source:"related_search_anchor_v2",enter_from:"",words_content:"",enter_group_id:"",words_position:0,entrance_cnt:1,words_num:0,group_id:"",impr_id:""}},relatedVideoEntranceShow:{eventName:"related_video_entrance_show",params:{enter_from:"recommend",group_id:"",author_id:"",entrance_cnt:1}},relatedVideoEntranceClick:{eventName:"related_video_entrance_click",params:{enter_from:"recommend",group_id:"",author_id:"",entrance_cnt:1}},bottomBarShow:{eventName:"bottom_bar_show",params:{playlet_id:"",compilation_id:"",group_id:"",enter_from:"recommend",enter_from_merge:"",bar_type:"",entrance_cnt:0,is_update:0,item_duration_ms:0,bar_tag_name:"",player_display_mode:""}},bottomBarClick:{eventName:"bottom_bar_click",params:{playlet_id:"",compilation_id:"",group_id:"",enter_from:"recommend",enter_from_merge:"",bar_type:"",entrance_cnt:0,is_update:0,item_duration_ms:0,bar_tag_name:"",action:"open",player_display_mode:""}},relatedVideoClick:{eventName:"related_video_click",params:{enter_from:"",enter_from_merge:"",group_id:"",author_id:0}},compilationNextVideoShow:{eventName:"compilation_next_video_show",params:{enter_from:"",group_id:"",compilation_id:""}},compilationNextVideoHover:{eventName:"compilation_next_video_hover",params:{enter_from:"",group_id:"",compilation_id:""}},compilationNextVideoClick:{eventName:"compilation_next_video_click",params:{enter_from:"",group_id:"",compilation_id:""}},aiChatButtonShow:{eventName:"ai_chat_button_show",params:{enter_from:"",group_id:"",ai_chat_button_position:""}},aiChatButtonClick:{eventName:"ai_chat_button_click",params:{enter_from:"",group_id:"",ai_chat_button_position:""}}}),ux={root:"VJe6L_2N",tag:"tKwmljqJ",tagBg:"wXwaGZss",tagWithNextContainer:"w6ixkDPe",nextTag:"_y3BSNOT",tagText:"yKSJ5Gu5",nextMixIcon:"qCiQcOTm",tagIcon:"NjkYquYr",aiSearchIcon:"RPQkMxxJ",searchRelatedTag:"ewD0yw9d",text:"e5K969ee",hintText:"vwpTHhvm",titleWord:"EdS8pNUP",rsBarOpt:"z0H3spz2",enterIcon:"H9VHLs5r",searchIcon:"J0IgHNT2",updateTextContainer:"t5m1haVE",divide:"BFPJoiB9",updateText:"o50JHf8R"};let uI=(0,v.forwardRef)((e,t)=>(0,c.jsxs)("svg",(0,G._)((0,b._)({width:12,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,c.jsx)("path",{d:"M.678 3.845a.778.778 0 0 1 0-1.367L4.662.22a1.707 1.707 0 0 1 1.676 0l3.984 2.258a.778.778 0 0 1 0 1.367L6.338 6.103a1.707 1.707 0 0 1-1.676 0L.678 3.845z",fill:"#fff"}),(0,c.jsx)("path",{d:"M.076 5.273a.562.562 0 0 1 .753-.188l4.112 2.331c.345.195.773.195 1.118 0l4.112-2.33a.562.562 0 0 1 .753.187.518.518 0 0 1-.195.724l-4.112 2.33c-.69.39-1.545.39-2.234 0L.27 5.997a.518.518 0 0 1-.195-.724z",fill:"#fff"}),(0,c.jsx)("path",{d:"M.83 7.465a.562.562 0 0 0-.754.187.518.518 0 0 0 .195.724l4.112 2.331c.69.39 1.545.39 2.234 0l4.112-2.33a.518.518 0 0 0 .195-.725.562.562 0 0 0-.753-.187l-4.112 2.33a1.138 1.138 0 0 1-1.118 0L.83 7.466z",fill:"#fff"})]}))),uC=(0,v.forwardRef)((e,t)=>(0,c.jsxs)("svg",(0,G._)((0,b._)({width:14,height:14,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,c.jsx)("g",{filter:"url(#series_svg__filter0_d_1599_82712)",children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.09 2.49l9.505 5.515A5.2 5.2 0 0 0 6.457 2h-3.58c-.344 0-.643.2-.787.49zm9.165 6.719L9.077 7.945l-6.95 4.033a.877.877 0 0 0 .75.422h3.58a5.201 5.201 0 0 0 4.798-3.191zM2 10.65l3.066-1.78V5.618L2 3.838v6.813z",fill:"#fff"})}),(0,c.jsx)("defs",{children:(0,c.jsxs)("filter",{id:"series_svg__filter0_d_1599_82712",x:1,y:1,width:11.657,height:12.4,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,c.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,c.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,c.jsx)("feOffset",{}),(0,c.jsx)("feGaussianBlur",{stdDeviation:".5"}),(0,c.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,c.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0"}),(0,c.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1599_82712"}),(0,c.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1599_82712",result:"shape"})]})})]}))),ub=(0,v.forwardRef)((e,t)=>(0,c.jsxs)("svg",(0,G._)((0,b._)({width:10,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,c.jsx)("mask",{id:"hot_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:-2,width:10,height:14,children:(0,c.jsx)("path",{d:"M.5-1.05h9.208v8.234A4.516 4.516 0 0 1 5.192 11.7 4.692 4.692 0 0 1 .5 7.008V-1.05z",fill:"#C4C4C4"})}),(0,c.jsxs)("g",{mask:"url(#hot_svg__a)",children:[(0,c.jsx)("path",{d:"M8.393 3.553c.961 1.063 1.315 2.125 1.315 3.188 0 1.416-.067 1.796 0 1.77-1.858.738-5.122-.93-6.02-3.187-.899-2.257.38-4.25 2.353-5.312.078-.042.126.027.126.132 0 1.638 1.265 2.347 2.226 3.41z",fill:"url(#hot_svg__paint0_linear_23665_194053)"}),(0,c.jsx)("path",{d:"M9.545 8.872c.191-.348.557 1.057.164-1.226.354-1.967-1.142-2.745-2.125-2.322-1.645.709-2.48.709-3.542.355-.69-.23-1.638-.709-1.934-1.771-.329 1.416.66 4.065 2.157 4.964 1.497.899 5.09.348 5.28 0z",fill:"url(#hot_svg__paint1_linear_23665_194053)"}),(0,c.jsx)("path",{d:"M1.775 3.339C1.534 3.58.5 4.826.5 6.816c0 1.99 1.063 4.884 4.604 4.884 3.542 0 4.931-1.406 5.313-3.255-3.188 1.77-5.656 0-6.021-.354-.9-.872-2.125-2.412-2.338-4.604-.029-.302-.042-.39-.283-.148z",fill:"url(#hot_svg__paint2_linear_23665_194053)"})]}),(0,c.jsxs)("defs",{children:[(0,c.jsxs)("linearGradient",{id:"hot_svg__paint0_linear_23665_194053",x1:3.536,y1:".28",x2:7.934,y2:6.743,gradientUnits:"userSpaceOnUse",children:[(0,c.jsx)("stop",{offset:".021",stopColor:"#FADF32"}),(0,c.jsx)("stop",{offset:".451",stopColor:"#EB9B46"}),(0,c.jsx)("stop",{offset:".782",stopColor:"#EB5854"})]}),(0,c.jsxs)("linearGradient",{id:"hot_svg__paint1_linear_23665_194053",x1:2.616,y1:4.79,x2:10.598,y2:9.517,gradientUnits:"userSpaceOnUse",children:[(0,c.jsx)("stop",{stopColor:"#FFC533"}),(0,c.jsx)("stop",{offset:".436",stopColor:"#F26461"}),(0,c.jsx)("stop",{offset:".809",stopColor:"#FF0544"})]}),(0,c.jsxs)("linearGradient",{id:"hot_svg__paint2_linear_23665_194053",x1:8.195,y1:11.127,x2:".577",y2:4.974,gradientUnits:"userSpaceOnUse",children:[(0,c.jsx)("stop",{offset:".134",stopColor:"#FA0951"}),(0,c.jsx)("stop",{offset:".354",stopColor:"#FA3E65"}),(0,c.jsx)("stop",{offset:".881",stopColor:"#F2AE49"}),(0,c.jsx)("stop",{offset:".998",stopColor:"#FAC032"})]})]})]}))),uE=(0,v.forwardRef)((e,t)=>(0,c.jsxs)("svg",(0,G._)((0,b._)({width:14,height:14,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,c.jsx)("g",{filter:"url(#semi-icons-search_svg__filter0_d_2327_94143)",children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 2a4.25 4.25 0 1 0 2.428 7.739l2.042 2.041a.75.75 0 1 0 1.06-1.06L9.74 8.678A4.25 4.25 0 0 0 6.25 2zM3.5 6.25a2.75 2.75 0 1 1 5.5 0 2.75 2.75 0 0 1-5.5 0z",fill:"#fff"})}),(0,c.jsx)("defs",{children:(0,c.jsxs)("filter",{id:"semi-icons-search_svg__filter0_d_2327_94143",x:1,y:1,width:12,height:12,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,c.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,c.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,c.jsx)("feOffset",{}),(0,c.jsx)("feGaussianBlur",{stdDeviation:".5"}),(0,c.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,c.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0"}),(0,c.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2327_94143"}),(0,c.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2327_94143",result:"shape"})]})})]}))),uS=e=>{let{className:t}=e,i=(0,v.useMemo)(()=>`paint0_linear_29_${Math.random().toString(36).substring(2,15)}`,[]);return(0,c.jsxs)("svg",{className:t,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{d:"M11.4435 7.12305H10.0543V10.7496H11.4435V7.12305Z",fill:"#E8E8E9"}),(0,c.jsx)("path",{d:"M4.82377 10.7498L6.50665 7.00456L8.18954 10.7498H9.70893L7.158 5.25061H5.85518L3.30425 10.7498H4.82377Z",fill:"#E8E8E9"}),(0,c.jsx)("path",{d:"M10.7477 6.72761C11.1773 6.72761 11.5256 6.37935 11.5256 5.94974C11.5256 5.52014 11.1773 5.17188 10.7477 5.17188C10.3181 5.17188 9.96988 5.52014 9.96988 5.94974C9.96988 6.37935 10.3181 6.72761 10.7477 6.72761Z",fill:"#E8E8E9"}),(0,c.jsx)("path",{d:"M14.5081 12.853C13.9615 12.1176 12.9426 11.9194 12.163 12.4006C11.9047 12.5601 11.6713 12.6986 11.5304 12.77C10.3605 13.3634 9.01917 13.7863 7.9112 13.8161L7.89396 13.8167C4.79597 13.9707 2.15574 11.6839 2.00836 8.7192C1.838 5.29261 4.61037 2.36036 8.18847 2.18251C10.7992 2.05274 13.1632 3.92921 13.3529 6.42119C13.4769 8.04962 12.9506 9.28487 12.1247 10.1914C12.4603 10.527 12.7957 10.8625 13.1313 11.1981C14.3879 9.91548 14.9783 8.24709 14.7957 6.25458C14.5044 3.07528 11.7254 0.64138 8.12015 0.807995C3.78342 1.00846 0.425767 4.60317 0.633723 8.78752C0.818448 12.5046 4.09654 15.3739 7.94505 15.1917C7.94817 15.1917 7.95116 15.1916 7.95429 15.1915C7.95704 15.1913 7.95966 15.1915 7.96228 15.1912C9.50341 15.1485 11.2601 14.5513 12.8584 13.6115C13.0561 13.4952 13.3102 13.5482 13.447 13.7323L14.2622 14.8294L15.3669 14.0084L14.5082 12.8529L14.5081 12.853Z",fill:`url(#${i})`}),(0,c.jsx)("defs",{children:(0,c.jsxs)("linearGradient",{id:i,x1:"2.96063",y1:"3.01023",x2:"14.6635",y2:"14.7132",gradientUnits:"userSpaceOnUse",children:[(0,c.jsx)("stop",{stopColor:"#00E6F0"}),(0,c.jsx)("stop",{offset:"0.11",stopColor:"#05E3F0"}),(0,c.jsx)("stop",{offset:"0.24",stopColor:"#15DDF3"}),(0,c.jsx)("stop",{offset:"0.39",stopColor:"#2FD3F7"}),(0,c.jsx)("stop",{offset:"0.55",stopColor:"#52C4FC"}),(0,c.jsx)("stop",{offset:"0.61",stopColor:"#64BEFF"}),(0,c.jsx)("stop",{offset:"0.71",stopColor:"#4FADFF"}),(0,c.jsx)("stop",{offset:"0.92",stopColor:"#1B84FF"}),(0,c.jsx)("stop",{offset:"1",stopColor:"#0573FF"})]})})]})};var uk=i("614170");let uT={[ea.WZ.Mix]:"compilation",[ea.WZ.Series]:"playlet",[ea.WZ.Hot]:"trending_topic",[ea.WZ.RelatedSearch]:"related_search_anchor_v2"},uL=new Map([[ea.WZ.Mix,(0,c.jsx)(lt.Z,{src:uI,width:12,height:12,viewBox:"0 0 12 12"},ea.WZ.Mix)],[ea.WZ.Series,(0,c.jsx)(lt.Z,{src:uC,width:14,height:14,viewBox:"0 0 14 14"},ea.WZ.Series)],[ea.WZ.Hot,(0,c.jsx)(lt.Z,{src:ub,width:12,height:12,viewBox:"0 0 12 12"},ea.WZ.Hot)]]),uA=e=>{let{item:t,awemeInfo:i,feedbarCount:l,isShowUpdateText:o,player:n,reportExtraParams:r,onMouseLeave:a}=e,{awemeId:d,mixInfo:u,seriesInfo:s}=i,f=(0,v.useMemo)(()=>{let{totalEpisode:e,currentEpisode:t}=(null==i?void 0:i.mixInfo)||{};return o&&(null==i?void 0:i.mixInfo.mixId)?e===t?"已是最新集":`更新至第${e}集`:null},[o,i,null==i?void 0:i.mixInfo]),p=(0,v.useMemo)(()=>{let{totalEpisode:e,currentEpisode:t}=(null==i?void 0:i.seriesInfo)||{};return o&&(null==i?void 0:i.seriesInfo.seriesId)?e===t?"已是最新集":`更新至第${e}集`:null},[o,i,null==i?void 0:i.seriesInfo]),_=(0,dU.x)(()=>{var e,o,n,a,c,v,f,m;if(t.type===ea.WZ.Mix&&uw.sendLog("compilationEntranceShow",{enter_from:(0,t6.yW)(),group_id:d,author_id:null==i?void 0:null===(c=i.authorInfo)||void 0===c?void 0:c.uid,compilation_id:null==u?void 0:u.mixId,entrance_cnt:l,is_update:(null==i?void 0:null===(v=i.mixInfo)||void 0===v?void 0:v.totalEpisode)===(null==i?void 0:null===(f=i.mixInfo)||void 0===f?void 0:f.currentEpisode)?0:1}),t.type===ea.WZ.Hot){let{trending_topic:e,first_tag_name:o,top:n}=t.customProps||{};uw.sendLog("hotEntranceShow",{enter_from:(0,t6.yW)(),group_id:d,author_id:null==i?void 0:null===(m=i.authorInfo)||void 0===m?void 0:m.uid,trending_topic:e,first_tag_name:o,top:n,entrance_cnt:l})}let p=0;p=(null==s?void 0:s.seriesId)?(null==s?void 0:s.totalEpisode)===(null==s?void 0:s.currentEpisode)?0:1:(null==u?void 0:u.totalEpisode)===(null==u?void 0:u.currentEpisode)?0:1,uw.sendLog("bottomBarShow",(0,b._)({playlet_id:null==s?void 0:s.seriesId,compilation_id:null==u?void 0:u.mixId,group_id:d,enter_from:(0,t6.yW)(),enter_from_merge:(0,e_.vM)(),bar_type:uT[t.type],entrance_cnt:l,is_update:p,item_duration_ms:(null==i?void 0:null===(e=i.video)||void 0===e?void 0:e.duration)||0,bar_tag_name:null==i?void 0:null===(a=i.webRawData)||void 0===a?void 0:null===(n=a.CTR)||void 0===n?void 0:null===(o=n.recommendScore)||void 0===o?void 0:o.relateAiTag,player_display_mode:(0,e_.Ok)()},r||{}))}),g=e=>{var o,a,c,v,f,m,p,_;if(t.onClick({awemeInfo:e}),t.type===ea.WZ.Mix&&(uw.sendLog("compilationEntranceClick",{enter_from:(0,t6.yW)(),group_id:d,author_id:null==i?void 0:null===(f=i.authorInfo)||void 0===f?void 0:f.uid,compilation_id:u.mixId,entrance_cnt:l,is_update:(null==e?void 0:null===(m=e.mixInfo)||void 0===m?void 0:m.totalEpisode)===(null==e?void 0:null===(p=e.mixInfo)||void 0===p?void 0:p.currentEpisode)?0:1}),null==n||n.emit(en.Events.USER_ACTION,{action:"click_compilation"})),t.type===ea.WZ.Hot){let{trending_topic:e,first_tag_name:o,top:r}=(null==t?void 0:t.customProps)||{};uw.sendLog("hotEntranceClick",{enter_from:(0,t6.yW)(),group_id:d,author_id:null==i?void 0:null===(_=i.authorInfo)||void 0===_?void 0:_.uid,trending_topic:e,first_tag_name:o,top:r,entrance_cnt:l}),null==n||n.emit(en.Events.USER_ACTION,{action:"click_hot"})}t.type===ea.WZ.Series&&(null==n||n.emit(en.Events.USER_ACTION,{action:"click_series"}));let g=0;g=(null==s?void 0:s.seriesId)?(null==s?void 0:s.totalEpisode)===(null==s?void 0:s.currentEpisode)?0:1:(null==u?void 0:u.totalEpisode)===(null==u?void 0:u.currentEpisode)?0:1,uw.sendLog("bottomBarClick",(0,b._)({playlet_id:null==s?void 0:s.seriesId,compilation_id:null==u?void 0:u.mixId,group_id:d,enter_from:(0,t6.yW)(),enter_from_merge:(0,e_.vM)(),bar_type:uT[t.type],entrance_cnt:l,is_update:g,item_duration_ms:(null==e?void 0:null===(o=e.video)||void 0===o?void 0:o.duration)||0,bar_tag_name:null==e?void 0:null===(v=e.webRawData)||void 0===v?void 0:null===(c=v.CTR)||void 0===c?void 0:null===(a=c.recommendScore)||void 0===a?void 0:a.relateAiTag,player_display_mode:(0,e_.Ok)()},r||{}))},{isSeries2Mix:h,darkIconUrl:y}=null!=s?s:{},w=(0,c.jsxs)("div",{className:m()(t.itemClassName,ux.tag),ref:_,onClick:()=>g(i),onMouseLeave:a,children:[(0,c.jsx)("span",{className:m()(ux.tagBg)}),(0,c.jsx)("span",{className:m()(ux.tagIcon),children:h&&y&&t.type===ea.WZ.Series?(0,c.jsx)("img",{height:18,src:y}):uL.get(t.type)}),(0,c.jsx)("span",{className:m()(ux.tagText,t.textClassName),children:t.title}),t.type===ea.WZ.Mix&&o&&(0,c.jsxs)("div",{className:m()(ux.updateTextContainer),children:[(0,c.jsx)("div",{className:m()(ux.divide)}),(0,c.jsx)("div",{className:m()(ux.updateText),children:f})]}),t.type===ea.WZ.Series&&o&&(0,c.jsxs)("div",{className:m()(ux.updateTextContainer),children:[(0,c.jsx)("div",{className:m()(ux.divide)}),(0,c.jsx)("div",{className:m()(ux.updateText),children:p})]})]},t.type);return(0,D.tq)()||(0,D._1)()||(0,D.iO)()||"undefined"==typeof window||"/"!==window.location.pathname||(t.type!==ea.WZ.Mix||!(i.mixInfo.totalEpisode>i.mixInfo.currentEpisode))&&(t.type!==ea.WZ.Series||!(i.seriesInfo.totalEpisode>i.seriesInfo.currentEpisode))?w:(0,c.jsx)(uR,{item:t,awemeInfo:i,onClick:g,children:w})},uR=e=>{var t,i;let{item:l,children:o,awemeInfo:n}=e,r={enter_from:(0,t6.yW)(),group_id:n.awemeId,compilation_id:(null===(t=n.mixInfo)||void 0===t?void 0:t.mixId)||(null===(i=n.seriesInfo)||void 0===i?void 0:i.seriesId)};return(0,v.useEffect)(()=>{uw.sendLog("compilationNextVideoShow",r)},[]),(0,c.jsxs)("div",{className:ux.tagWithNextContainer,children:[o,(0,c.jsxs)("div",{className:m()(l.itemClassName,ux.tag,ux.nextTag),onMouseEnter:()=>{uw.sendLog("compilationNextVideoHover",r)},onClick:()=>{},children:[(0,c.jsx)("span",{className:m()(ux.tagBg)}),(0,c.jsx)("span",{className:m()(ux.tagText,l.textClassName),children:"下一集"}),(0,c.jsx)(lt.Z,{className:m()(ux.nextMixIcon),src:uy.Z,width:12,height:12,viewBox:"0 0 12 12"})]})]})},uN=e=>{var t;let{tag:i,awemeInfo:l,feedbarCount:o,isActive:n,player:r,reportExtraParams:a,userInfo:d,abTestData:u,onMouseLeave:s}=e,f=null==d?void 0:null===(t=d.info)||void 0===t?void 0:t.secUid,{unshiftWord:p}=(0,dJ.u)(f),{searchWord:_,index:g,itemClassName:h,textClassName:y,hintText:w,word:x,wordsNum:I}=i,{word:C,wordId:E}=_||{},S=function(e){var t;let i=null==e?void 0:null===(t=e.searchWord)||void 0===t?void 0:t.info;try{let e=JSON.parse(i);return(null==e?void 0:e.query_type)==="ai"}catch(e){return!1}}(i)||!!localStorage.getItem("isAiSearchForceTrue"),{awemeId:k,groupId:T}=l||{},L=(0,v.useMemo)(()=>(0,dW.U)(l).impr_id,[l]);(0,v.useEffect)(()=>{(void 0===n||n)&&(S?uw.sendLog("aiChatButtonShow",{enter_from:"homepage_hot",group_id:E,ai_chat_button_position:"bottom_bar"}):uw.sendLog("trendingWordsShow",(0,b._)({words_source:"related_search_anchor_v2",enter_from:(0,t6.yW)(),words_content:C,enter_group_id:k,words_position:g,entrance_cnt:o,words_num:I,group_id:E,impr_id:L},a||{},(null==a?void 0:a.search_params)||{})))},[C,k,g,n,E]);let A=(0,v.useMemo)(()=>({source:"related_search_anchor_v2",enter_from:(0,e_.vM)(),aweme_id:k,gid:T}),[k,T,e_.vM]);return(0,c.jsxs)(ul,{className:m()(h,ux.searchRelatedTag,ux.tag),query:C,params:A,onClick:()=>{var e;if(S){uw.sendLog("aiChatButtonClick",{enter_from:"homepage_hot",group_id:E,ai_chat_button_position:"bottom_bar"}),eg.emit(eg.EVENT.openAiCard,{from:"button",word:C,awemeId:k,tab:uk.X.Search});return}uw.sendLog("trendingWordsClick",(0,b._)({words_source:"related_search_anchor_v2",enter_from:(0,t6.yW)(),words_content:C,enter_group_id:k,words_position:g,entrance_cnt:o,words_num:I,group_id:E,impr_id:L},a||{},(null==a?void 0:a.search_params)||{}));let t=null==u?void 0:u.searchOpenCurrentTab;((null==t?void 0:t.save_status)!==1||(0,D.DT)()||(null===(e=window)||void 0===e?void 0:e.location.pathname)==="/")&&eg.emit(eg.EVENT.videoPause),null==r||r.emit(en.Events.USER_ACTION,{action:"click_related_search"})},onMouseEnter:()=>{eg.emit(eg.EVENT.renderAiCard,{awemeId:k})},onMouseLeave:s,isAiSearch:S,children:[(0,c.jsx)("span",{className:m()(ux.tagBg)}),S?(0,c.jsx)(uS,{className:m()(ux.searchIcon,ux.aiSearchIcon)}):(0,c.jsx)(lt.Z,{className:ux.searchIcon,src:uE,width:14,height:14,viewBox:"0 0 14 14"}),(0,c.jsx)("div",{className:m()(ux.text,y),children:w?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("span",{className:ux.hintText,children:[S?"AI":w,""]}),(0,c.jsx)("span",{className:m()(ux.titleWord,ux.rsBarOpt),children:x})]}):(0,c.jsx)("span",{className:m()(ux.titleWord,ux.rsBarOpt),children:C})}),S?null:(0,c.jsx)(lt.Z,{className:m()(ux.enterIcon),src:uy.Z,width:12,height:12,viewBox:"0 0 12 12"})]})},uP=e=>{let{tagList:t,awemeInfo:i,reportExtraParams:l,isShowUpdateText:o,isActive:n,player:r,userInfo:a,abTestData:d}=e,u=(0,v.useCallback)(e=>{let t=uT[e];if(!!t)uw.sendLog("hover_bottom_bar",{enter_from:(0,e_.mo)(),bar_type:t,player_display_mode:(0,e_.Ok)()})},[]);return(0,c.jsx)("div",{className:m()("feedbar-new-style","feedbar-new-style-adapter",ux.root,{feedbarHeight36:!0}),children:t.map(e=>e.type===ea.WZ.RelatedSearch?(0,c.jsx)(uN,{isActive:n,tag:e,awemeInfo:i,feedbarCount:t.length,player:r,reportExtraParams:l,userInfo:a,abTestData:d,onMouseLeave:()=>u(e.type)},e.type):(0,c.jsx)(uA,{item:e,awemeInfo:i,feedbarCount:t.length,isShowUpdateText:o,player:r,reportExtraParams:l,abTestData:d,onMouseLeave:()=>u(e.type)},e.type))})};var uM="V0nqPcl0",uj="l2XQoYAj";let uD=(0,v.forwardRef)((e,t)=>(0,c.jsxs)("svg",(0,G._)((0,b._)({width:12,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,c.jsx)("path",{d:"M1.455 0C.65 0 0 .651 0 1.455V8c0 .803.651 1.455 1.455 1.455H8c.803 0 1.455-.652 1.455-1.455V1.455C9.455.65 8.803 0 8 0H1.455z",fill:"#fff"}),(0,c.jsx)("path",{d:"M4 12a1.455 1.455 0 0 1-1.455-1.454h5.819a2.182 2.182 0 0 0 2.181-2.182V2.545C11.35 2.545 12 3.197 12 4v5.09A2.909 2.909 0 0 1 9.09 12H4z",fill:"#fff"})]}))),uF=e=>{let{className:t="",svgClassName:i=""}=e;return(0,c.jsxs)("div",{className:m()(uM,t),children:[(0,c.jsx)(lt.Z,{className:m()(uj,i),src:uD,width:12,height:12,viewBox:"0 0 12 12"}),"图文"]})};var uV=i("687073"),uB={container:"l4LbtBBu",avatarList:"BD2kXJrc",itemContainer:"fnBfTlE1",vertical:"vFNbH3Ot",nickNameContainer:"DkUcTF1E",nickName:"wqXw6m9g",avatarContainer:"wBTtHRAY",changeSize:"GKpkjOJz",moreBox:"ORQsLSb6",more:"vqfOgO2Z"};function uO(e){var t,i,l,o,n,r,a,d,u,s,f,p;let{loginUserInfo:_,loginDispatch:g,fullScreenTarget:h,reportExtraParams:y,authorItem:w,awemeInfo:x,onCooperationAuthorClick:I,showRoleTitle:C,showFollowBtn:E,loginPanelTarget:S,abTestData:k,isDetail:T}=e,{isLogin:L}=_||{};(0,v.useRef)();let A=(0,e9.n)(),[R,N]=(0,v.useState)(!1),P=(0,v.useRef)(!1),M=(0,v.useRef)(null),j=(0,v.useMemo)(()=>{let e=ez()(x);return e.authorInfo=w,e},[x,w]),{follow:D,unFollow:F}=e0({selfUid:null==_?void 0:null===(t=_.info)||void 0===t?void 0:t.uid,actionUid:null==j?void 0:null===(i=j.authorInfo)||void 0===i?void 0:i.uid,defaultFollowerStatus:null==j?void 0:null===(l=j.authorInfo)||void 0===l?void 0:l.followerStatus,defaultFollowStatus:null==j?void 0:null===(o=j.authorInfo)||void 0===o?void 0:o.followStatus,logExtraParams:(0,G._)((0,b._)({author_id:null==x?void 0:null===(n=x.authorInfo)||void 0===n?void 0:n.uid,group_id:null==x?void 0:x.awemeId,from_group_id:null==x?void 0:x.awemeId,music_id:null==x?void 0:null===(r=x.music)||void 0===r?void 0:r.mid,compilation_id:null==x?void 0:null===(a=x.mixInfo)||void 0===a?void 0:a.mixId,aweme_type:null==x?void 0:x.awemeType,to_user_id:null==j?void 0:null===(d=j.authorInfo)||void 0===d?void 0:d.uid},y),{is_co_publish:1,item_duration_ms:(null==x?void 0:null===(u=x.video)||void 0===u?void 0:u.duration)||0,co_publish_author_list:null==j?void 0:null===(p=j.cooperationInfo)||void 0===p?void 0:null===(f=p.cooperationCreators)||void 0===f?void 0:null===(s=f.filter(e=>e.roleId!==eV.iG.Author))||void 0===s?void 0:s.map(e=>`${e.uid}_${null==e?void 0:e.roleId}`),enter_method:"co_publish_entrance"}),isLogin:L,accountParentEl:(0,ey.r)()&&h,onLoginSuccess:()=>{null==g||g({type:"updateUserInfo"})}});return(0,c.jsxs)("li",{className:m()(uB.itemContainer,{[uB.vertical]:!C}),ref:M,"data-click-from":"click_icon",children:[(0,c.jsx)(oX,{player:A,loginUserInfo:_,actionFollow:D,actionUnFollow:F,awemeInfo:j,isLogin:L,loginDispatch:g,fullScreenTarget:h,isFollowClickedRef:P,onCooperAitonClick:()=>{null==I||I(j)},reportExtraParams:y,className:uB.avatarContainer,isShowTip:!0,isShowKeyHotTip:!1,followBtnMouseEnter(){},followBtnMouseLeave(){},imBtnMouseEnter(){},imBtnMouseLeave(){},showPendantTip:R,setShowPendantTip:N,showImBtn:!1,showFollowBtn:E,loginPanelTarget:S,abtestData:k}),(0,c.jsx)("div",{className:uB.nickNameContainer,children:(0,c.jsx)("span",{className:m()(uB.nickName,uB.changeSize),onClick:()=>{null==I||I(j)},children:w.nickname})})]})}function uU(e){let{authorList:t,onClickMore:i}=e,l=(0,tZ._)(e,["authorList","onClickMore"]),o=(0,v.useRef)(null),n=(0,v.useMemo)(()=>t.length>5,[t]);return(null==t?void 0:t.length)<=1?null:(0,c.jsxs)("div",{className:m()(uB.container,{videoCooperationHideTitleContainer:!0}),children:[(0,c.jsx)("ul",{className:uB.avatarList,children:t.map((e,t)=>n&&t>=4?null:(0,c.jsx)(uO,(0,G._)((0,b._)({},l),{authorItem:e,showFollowBtn:!0}),e.uid))}),n&&(0,c.jsx)("div",{className:uB.moreBox,children:(0,c.jsx)("div",{className:uB.more,onClick:i,children:(0,c.jsx)(iB.z,{svg:(0,c.jsx)(uV.Z,{})})})}),(0,c.jsx)("div",{className:"disturb-login-panel disturb-login-panel-related",ref:o})]})}var uH=i("142186"),uW="TUrwl8aM",uG="j_4KBjg9",uz="ElFIPMxj",uZ="e7iYLOvG",uq=e=>{let{authorList:t,isTag:i=!1,onClick:l,className:o="",num:n}=e,r=(0,v.useMemo)(()=>n>=1e4?"万":n>=1e3?"千":n>=100?"百":String(n),[n]);return t.length<=1?null:(0,c.jsxs)("div",{className:m()(uW,o,{[uG]:i}),onClick:l,children:[(0,c.jsx)(iB.z,{svg:(0,c.jsx)(uH.Z,{style:{fontSize:"12px"}}),className:uz}),(0,c.jsxs)("span",{className:uZ,children:[r,"人共创",!i&&" : "]})]})},u$=i("689222"),uK=i("250532"),uY=i("477667"),uQ="NZWdQ5f3",uJ="uNQG8dSQ",uX="wvp9SWbb",u0="mDH_hYST",u1="TkpjLpPt",u2="cDdV3m7z",u3="t4L51Yi3",u6=i("518278"),u5=i("585271"),u4={card:"S9CpC_hb",avatarWrap:"vrOGGbyV",info:"LAISXR5q",nameInfo:"a42E3UDl",nickname:"VVyxMyRg",roleTitle:"Dk1vHhxC",divider:"GFQznIFu"},u8="jm0IhNau",u7="KVl6lzQL",u9="tIuHe02Z",se="wlUS_aD9",st="g4D3WlKB";function si(e){var t,i,l,o,n,r,a,d,u;let{loginDispatch:s,userInfo:f,loginUserInfo:p,awemeInfo:_,reportExtraParams:g,isLogin:h,onLoginChange:y}=e,{followStatus:w,followerStatus:x,uid:I}=f||{},C=(0,v.useMemo)(()=>{var e;return(null==f?void 0:f.uid)===(null==p?void 0:null===(e=p.info)||void 0===e?void 0:e.uid)},[f,p]),{followStatus:E,text:S,buttonType:k}=e5({selfUid:null==p?void 0:null===(t=p.info)||void 0===t?void 0:t.uid,actionUid:I,defaultFollowerStatus:x,defaultFollowStatus:w}),{follow:T,unFollow:L}=e0({selfUid:null==p?void 0:null===(i=p.info)||void 0===i?void 0:i.uid,actionUid:I,defaultFollowerStatus:x,defaultFollowStatus:w,isLogin:h,onLoginSuccess:()=>{null==y||y(!0),null==s||s({type:"updateUserInfo"})},logExtraParams:(0,G._)((0,b._)({to_user_id:I,enter_from:(0,t6.yW)(),is_full_screen:(0,ey.r)()?"1":"0",author_id:null==_?void 0:null===(l=_.authorInfo)||void 0===l?void 0:l.uid,group_id:null==_?void 0:_.awemeId,tab_name:(0,eC.zD)()||(0,A.Rs)("tab_name")||"",from_group_id:null==_?void 0:_.awemeId,music_id:null==_?void 0:null===(o=_.music)||void 0===o?void 0:o.mid,compilation_id:null==_?void 0:null===(n=_.mixInfo)||void 0===n?void 0:n.mixId,aweme_type:null==_?void 0:_.awemeType,item_duration_ms:(null==_?void 0:null===(r=_.video)||void 0===r?void 0:r.duration)||0},g),{is_co_publish:1,co_publish_author_list:null==_?void 0:null===(u=_.cooperationInfo)||void 0===u?void 0:null===(d=u.cooperationCreators)||void 0===d?void 0:null===(a=d.filter(e=>e.roleId!==eV.iG.Author))||void 0===a?void 0:a.map(e=>`${e.uid}_${null==e?void 0:e.roleId}`),enter_method:"co_publish_panel"})});return(0,c.jsx)("div",{className:m()(u8,st,{[u7]:C}),children:(0,c.jsx)(iP.Button,{theme:"solid",className:u9,type:k===e1.TT.Active?"primary":"secondary",onClick:()=>{(0,oP.V)(E)?L():T()},size:"small",children:(0,c.jsx)("div",{className:se,children:S})})})}function sl(e){let{userInfo:t}=e,{avatarUri:i,nickname:l,secUid:o,roleTitle:n}=t;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:u4.card,children:[(0,c.jsx)("div",{className:u4.avatarWrap,children:(0,c.jsx)(u6.a,{isNeedSeoOpt:!1,href:(0,oA.HC)(o,"enter_method=cooperation_list"),target:"_blank",rel:"noopener noreferrer",onClick:()=>{eg.emit(eg.EVENT.videoPause)},children:(0,c.jsx)(u5.q,{src:i,alt:`${l}头像`,type:"extraSmall"})})}),(0,c.jsx)("div",{className:u4.info,children:(0,c.jsx)("div",{className:u4.nameInfo,children:(0,c.jsxs)("div",{className:u4.nickname,children:[(0,c.jsx)(u6.a,{isNeedSeoOpt:!1,href:(0,oA.HC)(o,"enter_method=cooperation_list"),target:"_blank",rel:"noopener noreferrer",onClick:()=>{eg.emit(eg.EVENT.videoPause)},children:(0,c.jsx)(um,{text:l})}),n&&(0,c.jsx)("div",{className:u4.roleTitle,children:n})]})})}),(0,c.jsx)(si,(0,b._)({},e))]}),(0,c.jsx)(u$.i,{className:u4.divider})]})}let so=e=>{let{showCooperationList:t,loginUserInfo:i,loginDispatch:l,awemeInfo:o,reportExtraParams:n}=e,r=v.useRef(null),[a,d]=(0,v.useState)(i.isLogin);return v.useEffect(()=>{let e="showCooperationList";return(0,uK.o)({pausePlayControlShortcut:!0,pauseCustomShortcut:!0,pauseGlobalShortcut:!0},e),()=>{(0,uK.m)(e)}},[]),v.useEffect(()=>{let e=r.current,t=e=>e.stopPropagation();return null==e||e.addEventListener("wheel",t),()=>{null==e||e.removeEventListener("wheel",t)}},[]),v.useEffect(()=>(ed.logInstance.sendLog("enterCoPublishPanel",{group_id:o.groupId,author_id:o.authorInfo.uid,enter_from_merge:"recommend",enter_from:(0,e_.mo)()}),eg.emit(eg.EVENT.videoStopPlayNext),()=>{eg.emit(eg.EVENT.videoRemoveStopPlayNext)}),[]),(0,c.jsxs)("div",{className:uJ,children:[(0,c.jsxs)("div",{className:uX,children:[(0,c.jsx)("div",{className:u0,children:`${null==t?void 0:t.length}人共同创作`}),(0,c.jsx)(lt.Z,{className:u1,width:36,height:36,src:uY.Z,color:"#A9AAB7",onClick:()=>{iW.Uq.destroy()}})]}),(0,c.jsx)(u$.i,{className:u2}),(0,c.jsx)("div",{className:u3,ref:r,children:t.map(e=>(0,c.jsx)(sl,{userInfo:e,loginDispatch:l,loginUserInfo:i,isLogin:a,onLoginChange:e=>{d(e)},awemeInfo:o,reportExtraParams:n},e.secUid))})]})},sn=e=>{iW.Uq.render({children:(0,c.jsx)(so,(0,b._)({},e)),className:uQ,onMaskClick:()=>iW.Uq.destroy()})};var sr=i("513894"),sa="eOXnqte_",sd="sB9y70dh",su=i("147597"),ss={adWrapper:"rTRcBEzz",show:"_3rEXANBy",brandImg:"Gq4OE8C8",adButton:"qkcPuVQU",close:"aM_fpvN2",tapIcon:"SWK6lf6R",adIcon:"H12E8bBY"};let sc=(0,v.forwardRef)((e,t)=>(0,c.jsxs)("svg",(0,G._)((0,b._)({width:30,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,c.jsx)("rect",{width:30,height:16,rx:2,fill:"#fff",fillOpacity:".08"}),(0,c.jsx)("path",{d:"M9.492 2.004L8.22 2.22c.216.336.408.72.588 1.128h-4.38v3.636c-.024 2.34-.348 4.176-.972 5.496l.96.852c.744-1.596 1.128-3.708 1.164-6.348V4.452h8.796V3.348h-4.308a16.717 16.717 0 0 0-.576-1.344zm15.564 6.672h-8.04v4.548h1.152v-.576h5.736v.576h1.152V8.676zm-6.888 2.904V9.756h5.736v1.824h-5.736zm-.276-6.732h2.688v1.656h-5.04V7.62h10.92V6.504h-4.74V4.848h3.828V3.756H21.72V2.148h-1.14v1.608h-2.016c.204-.408.372-.852.516-1.32l-1.128-.144c-.384 1.248-1.104 2.292-2.16 3.144l.684.9a8.301 8.301 0 0 0 1.416-1.488z",fill:"#fff",fillOpacity:".5"})]})));var sv=i.p+"media/db_tap.8a933afa9b7537ba.png",sf=i("795233"),sm=i.n(sf);let sp=(e,t,i)=>(v.useEffect(()=>i&&e?(null==e||e.on(t,i),()=>{null==e||e.off(t,i)}):sm(),[i,t,e]),null),s_=e=>{var t,i,l,o,n,r,a,d,u,s;let{awemeInfo:f,isActive:p,className:_,onBrandComponentShow:h,onBrandComponentClose:y,onImgError:w,brandAdComponentFloatTip:x,onBrandComponentHide:I}=e||{},[C,b]=(0,v.useState)(!1),[E,S]=(0,v.useState)(!1),k=(0,v.useRef)(!1),T=(0,v.useRef)(!1);!function(e){let{timerCb:t,isActive:i,awemeInfo:l,needInit:o=!0,stopBySeeking:n=!0}=e,r=(0,e9.n)(),a=(0,v.useRef)(!0),d=(0,v.useRef)(!1),u=(0,eZ.Z)(e=>{let{currentTime:i}=e||{};t({currentTime:i,isSeeking:!1})}),s=(0,eZ.Z)(e=>{let{currentTime:i}=e;if(0!==i){n&&(f(),a.current=!1),t({currentTime:i,isSeeking:!0});let e=(0,g.Rx)(l);(null==e?void 0:e.creative_id)&&(0,ie.E)("drag_bar",{tag:(0,ii.f)(),value:null==e?void 0:e.creative_id,log_extra:null==e?void 0:e.log_extra})}}),c=(0,eZ.Z)(()=>{if(!d.current){var e,t;null==r||null===(e=r.on)||void 0===e||e.call(r,tV.B.TimeUpdate,u),null==r||null===(t=r.on)||void 0===t||t.call(r,en.Events.SEEKING,s)}d.current=!0}),f=(0,eZ.Z)(()=>{if(d.current){var e,t;null==r||null===(e=r.off)||void 0===e||e.call(r,tV.B.TimeUpdate,u),null==r||null===(t=r.off)||void 0===t||t.call(r,en.Events.SEEKING,s)}d.current=!1}),m=(0,v.useCallback)(()=>{a.current=!0},[]),p=(0,v.useCallback)(()=>{o&&(m(),c()),t({currentTime:0,isSeeking:!0,isEnd:!0})},[o,m,c,t]);sp(r,tV.B.Ended,p),(0,ei.Z)(()=>{m()},[l]),(0,v.useEffect)(()=>{if(!!i){if(r&&a.current)return c(),()=>{f()}}},[r,l,i,c,f]),(0,v.useEffect)(()=>{(null==r?void 0:r.currentTime)&&u({currentTime:r.currentTime})},[r])}({timerCb:e=>{var t,i;if(k.current)return;let{currentTime:l,isEnd:o}=e,n=null!==(t=x.show_time)&&void 0!==t?t:3,r=null!==(i=x.show_time+.5)&&void 0!==i?i:3.5;l<n&&(b(!1),S(!1),null==I||I()),l>=n&&(!T.current&&(null==h||h(),T.current=!0),b(!0),null==h||h()),l>=r&&S(!0),o&&!k.current&&(!T.current&&(null==h||h(),T.current=!0),b(!0),S(!0),null==I||I())},stopBySeeking:!1,awemeInfo:f,isActive:p,needInit:!0});let L=iz()(e=>{var t,i;e.stopPropagation(),eg.emit(eg.EVENT.videoPause),ed.logInstance.sendLog("brandAdIconClick",{group_id:null==f?void 0:f.awemeId,brand_ad_type:t3.AD_LOG_MAP[null==f?void 0:null===(i=f.webRawData)||void 0===i?void 0:null===(t=i.brandAd)||void 0===t?void 0:t.brand_type],img_url:null==x?void 0:x.img_url,position:"lower_left",icon_type:"image"})},1e3,{leading:!0,trailing:!1}),A=(0,dU.x)(()=>{var e,t;ed.logInstance.sendLog("brandAdIconShow",{group_id:null==f?void 0:f.awemeId,brand_ad_type:t3.AD_LOG_MAP[null==f?void 0:null===(t=f.webRawData)||void 0===t?void 0:null===(e=t.brandAd)||void 0===e?void 0:e.brand_type],img_url:null==x?void 0:x.img_url,position:"lower_left",icon_type:"image"})});return(0,c.jsxs)("div",{className:m()(ss.adWrapper,_,{[ss.show]:C}),style:{width:null==x?void 0:null===(t=x.img_size)||void 0===t?void 0:t.width,height:null==x?void 0:null===(i=x.img_size)||void 0===i?void 0:i.height},ref:A,children:[(0,c.jsxs)(oB,{onClick:e=>L(e),className:ss.adButton,style:{width:null==x?void 0:null===(l=x.img_size)||void 0===l?void 0:l.width,height:null==x?void 0:null===(o=x.img_size)||void 0===o?void 0:o.height},target:"_blank",href:null==f?void 0:null===(r=f.webRawData)||void 0===r?void 0:null===(n=r.brandAd)||void 0===n?void 0:n.open_url,children:[(0,c.jsx)("img",{className:ss.brandImg,src:null==x?void 0:x.img_url,style:{width:null==x?void 0:null===(a=x.img_size)||void 0===a?void 0:a.width,height:null==x?void 0:null===(d=x.img_size)||void 0===d?void 0:d.height},onError:()=>{var e,t;null==w||w(),b(!1),k.current=!0,null==y||y(),lQ.oe.event.error({name:lQ.Mo.BrandComponentError,report:{type:"img"}}),ed.logInstance.sendLog("brandAdIconClose",{group_id:null==f?void 0:f.awemeId,brand_ad_type:t3.AD_LOG_MAP[null==f?void 0:null===(t=f.webRawData)||void 0===t?void 0:null===(e=t.brandAd)||void 0===e?void 0:e.brand_type]})}}),x.has_guide&&E&&(0,c.jsx)("img",{src:sv,className:ss.tapIcon}),(0,c.jsx)(lt.Z,{className:ss.adIcon,src:sc,width:30,height:16,viewBox:"0 0 30 16"})]}),x.has_close_btn&&(0,c.jsx)(iB.z,{className:ss.close,svg:(0,c.jsx)(su.Z,{}),style:{position:"absolute",bottom:`${null==x?void 0:null===(u=x.close_btn_position)||void 0===u?void 0:u.bottom}px`,right:`${null==x?void 0:null===(s=x.close_btn_position)||void 0===s?void 0:s.right}px`},onClick:e=>{var t,i;b(!1),k.current=!0,null==y||y(),ed.logInstance.sendLog("brandAdIconClose",{group_id:null==f?void 0:f.awemeId,brand_ad_type:t3.AD_LOG_MAP[null==f?void 0:null===(i=f.webRawData)||void 0===i?void 0:null===(t=i.brandAd)||void 0===t?void 0:t.brand_type]})}})]})},sg=e=>{var t,i,l,o,n,r,a,d;let{awemeInfo:u,className:s,isActive:f,onBrandComponentClose:p,onBrandComponentShow:_}=e||{},[g,h]=(0,v.useState)(!1),[w,x]=(0,v.useState)(!1),I=null==u?void 0:null===(t=u.webRawData)||void 0===t?void 0:t.brandAd,C=null==I?void 0:null===(o=I.biz_content)||void 0===o?void 0:null===(l=o.brand_ad_component_config)||void 0===l?void 0:null===(i=l.left)||void 0===i?void 0:i[0],b=(0,v.useRef)(!1),E=iz()(e=>{var t,i;e.stopPropagation(),eg.emit(eg.EVENT.videoPause),ed.logInstance.sendLog("brandAdIconClick",{group_id:null==u?void 0:u.awemeId,brand_ad_type:t3.AD_LOG_MAP[null==u?void 0:null===(i=u.webRawData)||void 0===i?void 0:null===(t=i.brandAd)||void 0===t?void 0:t.brand_type],position:"lower_left",icon_type:"button"})},1e3,{leading:!0,trailing:!1}),S=!g&&(null==C?void 0:C.brand_ad_component_type)===y.Wy.Img&&!w;return((0,v.useEffect)(()=>{if(!S&&!b.current){var e,t;ed.logInstance.sendLog("brandAdIconShow",{group_id:null==u?void 0:u.awemeId,brand_ad_type:t3.AD_LOG_MAP[null==u?void 0:null===(t=u.webRawData)||void 0===t?void 0:null===(e=t.brandAd)||void 0===e?void 0:e.brand_type],position:"lower_left",icon_type:"button"}),b.current=!0}},[S]),S)?(0,c.jsx)(s_,{awemeInfo:u,isActive:f,onBrandComponentClose:()=>{null==p||p(),x(!0)},onBrandComponentHide:()=>{null==p||p()},onBrandComponentShow:_,onImgError:()=>{h(!0)},brandAdComponentFloatTip:null==C?void 0:C.brand_ad_component_float_tip}):(0,c.jsx)("div",{className:m()(sa,s),id:sa,children:(0,c.jsxs)(oB,{onClick:e=>E(e),className:sd,target:"_blank",href:null==u?void 0:null===(r=u.webRawData)||void 0===r?void 0:null===(n=r.brandAd)||void 0===n?void 0:n.open_url,children:[(0,c.jsx)("span",{children:(null==u?void 0:null===(d=u.webRawData)||void 0===d?void 0:null===(a=d.brandAd)||void 0===a?void 0:a.brand_title)||"查看详情"}),(0,c.jsx)(iB.z,{svg:(0,c.jsx)(sr.Z,{}),style:{color:"#ffffff"}})]})})};function sh(e){var t,i,l,o;let{awemeInfo:n}=e||{},r=(0,g.Kf)(n),a=null==n?void 0:null===(t=n.webRawData)||void 0===t?void 0:t.brandAd,d=null==a?void 0:a.open_url;return r&&d&&(null==a?void 0:null===(o=a.biz_content)||void 0===o?void 0:null===(l=o.brand_ad_component_config)||void 0===l?void 0:null===(i=l.left)||void 0===i?void 0:i.length)>0?(0,c.jsx)(sg,(0,b._)({},e)):null}let sy=e=>{let t=(0,o0.N)();return(0,c.jsx)(e4.k,{componentName:"FeedBrandAd",Slardar:t,children:(0,c.jsx)(sh,(0,b._)({},e))})};var sw=i("562963"),sx={bar:"Pvue2IXG",barDetail:"a0PRyH0b",hasUrl:"li3jsgfr",content:"pgFkgbZo",icon:"Hf_NcrOp",iconImage:"B8zhcLpj",rightIcon:"fsc92I8Z"},sI=new eF.h({videoRiskRemindBarShow:{eventName:"video_risk_remind_bar_show",params:{enter_from:"",warn_type:"",is_skip:!1,group_id:"",author_id:""}},videoRiskRemindBarClick:{eventName:"video_risk_remind_bar_click",params:{enter_from:"",warn_type:"",is_skip:!1,group_id:"",author_id:""}}});let sC=(e,t)=>!!((null==e?void 0:e.content)&&!(null==e?void 0:e.url));var sb=e=>{let{risk:t,awemeInfo:i,isDetail:l,className:o}=e,{content:n,type:r,icon_url:a,url:d}=t,u=(0,dU.Y)((()=>{var e;sI.sendLog("videoRiskRemindBarShow",{enter_from:(0,e_.vM)(),warn_type:String(r),is_skip:!!d,group_id:null==i?void 0:i.awemeId,author_id:null==i?void 0:null===(e=i.authorInfo)||void 0===e?void 0:e.uid})}).bind(null));return(0,c.jsx)("div",{ref:u,className:o,children:(0,c.jsxs)(oB,{href:decodeURIComponent(d),target:"_blank",onClick:e=>{if(d){var t;eg.emit(eg.EVENT.videoPause),sI.sendLog("videoRiskRemindBarClick",{enter_from:(0,e_.vM)(),warn_type:String(r),is_skip:!!d,group_id:null==i?void 0:i.awemeId,author_id:null==i?void 0:null===(t=i.authorInfo)||void 0===t?void 0:t.uid})}else null==e||e.preventDefault()},className:m()("safetyBar",sx.bar,{[sx.barDetail]:l,[sx.hasUrl]:!!d}),children:[a?(0,c.jsx)("img",{src:a,className:sx.iconImage}):(0,c.jsx)(iB.z,{svg:(0,c.jsx)(sw.Z,{}),className:sx.icon}),(0,c.jsx)("div",{className:sx.content,children:n}),d&&(0,c.jsx)(iB.z,{svg:(0,c.jsx)(sr.Z,{style:{fontSize:"14px"}}),className:sx.rightIcon})]})})},sE=i("899429");let sS=(0,v.createContext)(null),sk=()=>(0,v.useContext)(sS);var sT={wrapper:"aGpuVkB3",hide:"IXXvCp_h",tagPlugin:"jeHLdLPt",left:"uJANKfCX",text:"fpaxT4SJ"};let sL=(0,v.forwardRef)((e,t)=>(0,c.jsx)("svg",(0,G._)((0,b._)({width:12,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,c.jsx)("path",{d:"M4 1l5 5-5 5",stroke:"#000",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}))),sA=(0,v.forwardRef)((e,t)=>(0,c.jsx)("svg",(0,G._)((0,b._)({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.67 2.957a.5.5 0 0 1 .396-.12L8 3.496l4.934-.657a.5.5 0 0 1 .566.496v9a.5.5 0 0 1-.434.495l-5 .666a.496.496 0 0 1-.132 0l-5-.666a.5.5 0 0 1-.434-.496v-9a.5.5 0 0 1 .17-.376zM7.5 6v4.667h1V6h-1z",fill:"#000"})}))),sR=(0,v.forwardRef)((e,t)=>(0,c.jsx)("svg",(0,G._)((0,b._)({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,c.jsx)("path",{d:"M6.667 2.167A3.167 3.167 0 0 0 3.5 5.333h6.333a3.167 3.167 0 0 0-3.166-3.166zM2.167 6.167h11.666v.5c0 1.823-.074 3.702-.853 5.121a4.14 4.14 0 0 1-1.813 1.75c-.824.413-1.864.629-3.167.629-1.303 0-2.344-.216-3.167-.63a4.14 4.14 0 0 1-1.813-1.749c-.78-1.419-.853-3.298-.853-5.121v-.5zM12.333 5.333h-1.666c0-.87-.278-1.675-.75-2.331L10 3a2.333 2.333 0 0 1 2.333 2.333z",fill:"#000"})}))),sN=(0,v.forwardRef)((e,t)=>(0,c.jsx)("svg",(0,G._)((0,b._)({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.038 2.833c1.225 0 2.195 0 2.955.102.781.105 1.414.327 1.913.826.499.499.72 1.131.825 1.913.102.76.102 1.73.102 2.955v.188c0 .978 0 1.77-.088 2.362-.09.606-.291 1.148-.82 1.457-.528.309-1.099.219-1.671 0-.56-.214-1.25-.602-2.102-1.081L8 10.907l-1.152.648c-.852.48-1.542.867-2.102 1.081-.572.219-1.143.309-1.672 0-.528-.309-.73-.85-.82-1.457-.087-.593-.087-1.384-.087-2.362V8.63c0-1.225 0-2.196.102-2.955.105-.782.326-1.414.825-1.913.499-.5 1.132-.72 1.913-.826.76-.102 1.73-.102 2.955-.102h.076zm2.776 4.29a.876.876 0 1 1-1.753 0 .876.876 0 0 1 1.753 0zm-3.961-.83H5.186V7.96h1.667V6.293z",fill:"#000"})}))),sP=(0,v.forwardRef)((e,t)=>(0,c.jsx)("svg",(0,G._)((0,b._)({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 2.167a5.167 5.167 0 0 0-5.167 5.166v4.784a1.36 1.36 0 0 0 2.08 1.152l.945-.59.04-.026.009-.005a.167.167 0 0 1 .172.009l.039.026.874.59c.165.112.32.217.46.29.158.083.336.15.548.15.212 0 .39-.067.547-.15.14-.073.296-.178.46-.29l.896-.604.018-.012.009-.006a.167.167 0 0 1 .172.002l.04.025.945.591a1.36 1.36 0 0 0 2.08-1.152V7.333A5.167 5.167 0 0 0 8 2.167zm0 6c-.269 0-.472-.082-.604-.203-.124-.115-.23-.308-.23-.63h-1c0 .56.194 1.034.552 1.365.351.324.815.468 1.282.468.467 0 .93-.144 1.282-.468.358-.33.551-.805.551-1.366h-1c0 .323-.105.516-.23.631-.13.121-.334.203-.603.203z",fill:"#000"})}))),sM=(0,v.forwardRef)((e,t)=>(0,c.jsx)("svg",(0,G._)((0,b._)({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,c.jsx)("path",{d:"M11.26 4.119c-.374.007-.87.085-1.603.202l-2.285.366c-.549.087-.914.147-1.185.226-.258.075-.368.15-.44.235-.073.085-.13.206-.164.472-.035.28-.036.65-.036 1.206v4.841a2.024 2.024 0 1 1-1-1.746V6.795c0-.516 0-.95.044-1.299.046-.37.148-.707.395-.996.246-.29.563-.443.921-.547.338-.099.766-.167 1.276-.249l2.354-.376c.685-.11 1.252-.2 1.705-.209.474-.008.914.07 1.28.383.367.312.514.734.58 1.204.064.448.064 1.022.064 1.717v4.167a2.024 2.024 0 1 1-1-1.746V6.46c0-.741 0-1.244-.053-1.614-.05-.355-.137-.496-.24-.583-.101-.087-.254-.15-.614-.144z",fill:"#000"})}))),sj={300203:sA,300204:sR,300205:sN,300206:sP,300209:sM},sD=()=>{let e=sk();return e.state.ab.hitType1?(0,c.jsx)("div",{className:m()([sT.wrapper,!e.state.show&&sT.hide]),children:(0,c.jsxs)("div",{className:sT.tagPlugin,onClick:e.action.goChannel,children:[(0,c.jsxs)("div",{className:sT.left,children:[sj[e.state.awemeChannelId]&&(0,c.jsx)(lt.Z,{className:sT.leftIcon,width:16,height:16,viewBox:"0 0 16 16",src:sj[e.state.awemeChannelId]}),(0,c.jsxs)("p",{className:sT.text,children:["去",e.state.text,",浏览更多相似内容"]})]}),(0,c.jsx)(lt.Z,{className:sT.rightIcon,width:12,height:12,viewBox:"0 0 12 12",src:sL})]})}):null},sF=()=>{let e=(0,o0.N)();return sk()?(0,c.jsx)(e4.k,{componentName:"TagPlugin",Slardar:e,children:(0,c.jsx)(sD,{})}):null},sV=(0,v.forwardRef)((e,t)=>(0,c.jsxs)("svg",(0,G._)((0,b._)({width:30,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,c.jsx)("rect",{width:30,height:16,rx:2,fill:"#fff",fillOpacity:".08"}),(0,c.jsx)("path",{d:"M9.492 2.004L8.22 2.22c.216.336.408.72.588 1.128h-4.38v3.636c-.024 2.34-.348 4.176-.972 5.496l.96.852c.744-1.596 1.128-3.708 1.164-6.348V4.452h8.796V3.348h-4.308a16.717 16.717 0 0 0-.576-1.344zm15.564 6.672h-8.04v4.548h1.152v-.576h5.736v.576h1.152V8.676zm-6.888 2.904V9.756h5.736v1.824h-5.736zm-.276-6.732h2.688v1.656h-5.04V7.62h10.92V6.504h-4.74V4.848h3.828V3.756H21.72V2.148h-1.14v1.608h-2.016c.204-.408.372-.852.516-1.32l-1.128-.144c-.384 1.248-1.104 2.292-2.16 3.144l.684.9a8.301 8.301 0 0 0 1.416-1.488z",fill:"#fff",fillOpacity:".5"})]})));i("313036");let sB="function"==typeof Symbol&&Symbol.for?Symbol.for("react.memo"):"function"==typeof v.memo&&(0,v.memo)(e=>null).$$typeof;var sO=i("718570"),sU=i("383280"),sH=i("590555"),sW=i("911429");let sG=(0,v.forwardRef)((e,t)=>(0,c.jsx)("svg",(0,G._)((0,b._)({width:28,height:28,xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,c.jsx)("path",{d:"M19.59 9.59a.833.833 0 1 0-1.18-1.18L14 12.823 9.59 8.41a.833.833 0 1 0-1.18 1.178L12.822 14l-4.41 4.41a.833.833 0 0 0 1.178 1.18L14 15.177l4.41 4.411a.833.833 0 0 0 1.18-1.178L15.177 14l4.411-4.41z"})})));var sz={mask:"nFQelNiN",container:"hqm1Fn6U",header:"oT7dWBFQ",content:"vrmwr7En",close:"IpA658Kv","significant-authors":"hjqV7etW","significant-authors__small":"eAvuyxSy","common-authors":"pO8EJ9Lr","loading-container":"yPRyUD9e",refresh:"Focfc_Nx"},sZ={container:"Tu8Y34Dx",avatar:"DlvbwIZs",small:"KSHAeBbS",name:"_nytZeI8",role:"OGMS6rCf","role-prename":"XPkxPQI6","role-name":"EkRkWyvP"};let sq=e=>e.map(e=>({avatarUri:e.avatar_thumb.url_list[0],nickname:e.nickname,uid:e.uid,followStatus:e.follow_status,followerCount:e.follower_count,followerStatus:e.follower_status,roleId:e.role_id,roleTitle:e.role_title,secUid:e.sec_uid})),s$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fontSize:14},i=t.fontSize<12?12:t.fontSize,l=t.fontSize<12?t.fontSize/12:1,o=document.createElement("div");o.innerText=e,o.style.fontSize=`${i}px`,o.style.position="fixed",o.style.zIndex="-999",document.body.appendChild(o);let n=o.offsetWidth;return document.body.removeChild(o),n*l};var sK=e=>{let{size:t,prename:i,roleTitle:l,author:o}=e,{secUid:n}=o,[r,a]=(0,v.useState)();return(0,v.useLayoutEffect)(()=>{a(s$(l,{fontSize:12}))},[l]),(0,c.jsxs)(u6.a,{className:sZ.container,isNeedSeoOpt:!1,href:(0,oA.HC)(n,"enter_method=cooperation_list"),target:"_blank",rel:"noopener noreferrer",onClick:()=>{eg.emit(eg.EVENT.videoPause)},children:[(0,c.jsx)("img",{src:o.avatarUri,alt:"",className:m()(sZ.avatar,"small"===t&&sZ.small)}),(0,c.jsx)("div",{className:sZ.name,children:o.nickname}),(0,c.jsxs)("div",{className:sZ.role,children:[(0,c.jsx)("div",{className:sZ["role-prename"],children:(0,c.jsx)("span",{children:i})}),(0,c.jsx)("div",{className:sZ["role-name"],children:(0,c.jsx)("span",{style:{width:r},children:l})})]})]})},sY="AENmHI9k",sQ="hUKDwB7O",sJ="MV_A0ok6",sX="wqWnWHKV",s0=e=>{let{author:t,roleTitle:i}=e,{secUid:l}=t;return(0,c.jsxs)(u6.a,{className:sY,isNeedSeoOpt:!1,href:(0,oA.HC)(l,"enter_method=cooperation_list"),target:"_blank",rel:"noopener noreferrer",onClick:()=>{eg.emit(eg.EVENT.videoPause)},children:[(0,c.jsx)("img",{src:t.avatarUri,alt:"",className:sQ}),(0,c.jsx)("div",{className:sJ,children:t.nickname}),(0,c.jsx)("div",{className:sX,children:i})]})};let s1=e=>{let{totalNum:t,cursor:i,authorList:l,extra:o,awemeInfo:n,userInfo:r}=e,{significant_uid_list:a,custom_role_prename_map:d}=o;(0,v.useEffect)(()=>{let e="showCooperationList";return(0,uK.o)({pausePlayControlShortcut:!0,pauseCustomShortcut:!0,pauseGlobalShortcut:!0},e),()=>{(0,uK.m)(e)}},[]);let u=(0,v.useRef)(null);(0,v.useEffect)(()=>{let e=u.current,t=e=>e.stopPropagation();return null==e||e.addEventListener("wheel",t),()=>{null==e||e.removeEventListener("wheel",t)}},[]),(0,v.useEffect)(()=>(ed.logInstance.sendLog("enterCoPublishPanel",{group_id:n.groupId,author_id:n.authorInfo.uid,enter_from_merge:"recommend",enter_from:(0,e_.mo)()}),eg.emit(eg.EVENT.videoStopPlayNext),()=>{eg.emit(eg.EVENT.videoRemoveStopPlayNext)}),[]);let s=(0,v.useRef)((0,v.useMemo)(()=>new Set(l.map(e=>e.uid)),[])),f=(0,v.useMemo)(()=>l.find(e=>e.roleId===eV.iG.Author),[]),p=(0,v.useMemo)(()=>(null==a?void 0:a.length)?a.map(e=>l.find(t=>t.uid===e)):[],[]),_=(0,v.useRef)(!1);(0,v.useEffect)(()=>()=>{_.current=!0},[]);let[g,h]=(0,v.useState)(()=>l.filter(e=>!p.includes(e)).sort((e,t)=>{var i,l;return t.roleId===eV.iG.Author||t.uid===(null===(i=r.info)||void 0===i?void 0:i.uid)?1:e.roleId===eV.iG.Author||e.uid===(null===(l=r.info)||void 0===l?void 0:l.uid)?-1:0})),y=(0,v.useRef)(i),[w,x]=(0,v.useState)(!1),[I,C]=(0,v.useState)(!0),[b,E]=(0,v.useState)(t>l.length),{ref:S,inView:k}=(0,sO.useInView)(),T=(0,sH.d)(k),L=(0,sH.d)(async()=>{if(!b||w||_.current)return;x(!0),C(!1);let e=await (0,sW.U2)("/aweme/v1/co/cocreator/list/",{item_id:n.awemeId,index:y.current+1}).catch(e=>{throw C(!0),x(!1),e});if(_.current)return;let{user_info_list:t,has_more:i,status_code:l}=e;if(l&&l<0){C(!0),x(!1);return}let o=y.current,r=t.filter(e=>{let t=s.current.has(e.uid);return s.current.add(e.uid),o=e.index,!t});h(e=>[...e,...sq(r)]),E(i),x(!1),y.current=o,setTimeout(()=>{T.current&&L.current()},50)});return(0,v.useEffect)(()=>{k&&L.current()},[k]),(0,c.jsxs)("div",{className:sz.container,children:[(0,c.jsxs)("div",{className:sz.header,children:[(0,c.jsxs)("span",{children:[t,"人共同创作"]}),(0,c.jsx)(sG,{className:sz.close,onClick:()=>{iW.Uq.destroy()}})]}),(0,c.jsxs)("div",{className:sz.content,ref:u,children:[p.length>0&&(0,c.jsx)("div",{className:m()(sz["significant-authors"],p.length>2&&sz["significant-authors__small"]),children:p.map(e=>(0,c.jsx)(sK,{author:e,prename:d[e.uid],roleTitle:e.uid===(null==f?void 0:f.uid)&&o.author_role_name?o.author_role_name:e.roleTitle,size:p.length>2?"small":"normal"},e.uid))}),(0,c.jsx)("div",{className:sz["common-authors"],children:g.map(e=>(0,c.jsx)(s0,{author:e,roleTitle:e.uid===(null==f?void 0:f.uid)&&o.author_role_name?o.author_role_name:e.roleTitle},e.uid))}),(0,c.jsx)("div",{ref:S,className:sz["loading-container"],children:b?I?(0,c.jsxs)(c.Fragment,{children:["服务异常,重新",(0,c.jsx)("span",{onClick:L.current,className:sz.refresh,children:"刷新"}),"拉取数据"]}):(0,c.jsx)(sU.g,{text:"加载中"}):"没有更多数据"})]})]})},s2=e=>{iW.Uq.render({children:(0,c.jsx)(s1,(0,b._)({},e)),className:sz.mask,onMaskClick:()=>iW.Uq.destroy()})},s3=function(e){let t=sB&&e.$$typeof===sB?e:(0,v.memo)(e);return function(e){let{isActive:i=!1,forceDelayUpdate:l=!1}=e,o=(0,v.useDeferredValue)(e),n=!i||l?o:e;return(0,c.jsx)(t,(0,b._)({},n))}}(e=>{var t,i,l,o,n,r,a,d,u,s;let{abTestData:f}=e,{awemeInfo:p,scene:h,isTopicLinkSearchResult:y,videoHashtagClassName:w,isTopicLinkDetail:I,videoTags:C=[],isShowCreateTime:E=!1,userInfo:S,onClickUserName:k,className:A,children:R,loginUserInfo:N,loginDispatch:M,fullScreenTarget:j,reportExtraParams:F,onCooperationAuthorClick:V,isShowCooperation:B=!1,showSideBar:O=!1,isActive:U,canMixListen:H,toast:W,showFriendIcon:G,showAccountName:z=!0,showTitle:q=!0,isInnerFeed:$=!1,showGuideDownloadClient:K=!1,isShowBrandComponent:Y=!1,onBrandComponentHide:Q,onBrandComponentShow:J,handleMobileSiteClick:X,oneLineWarginig:ee,hideMixNextBtn:et=!1,modalEnterFrom:ei,openSpecificTab:el=()=>{},isDetail:en,isMainland:er}=e,{pathname:eu}=(0,eo.a)(),es=(0,e9.n)(),ev=sk(),[ef,em]=(0,v.useState)(!0),ep=(0,v.useRef)(null),eh=null===(t=x.Le.getConfig(x.gI.WallPaperIds))||void 0===t?void 0:t.includes(null==p?void 0:p.awemeId),{cooperationInfo:ex,awemeType:eC,awemeId:eb,authorInfo:eE,logPb:eS,desc:ek,textExtra:eT,mixInfo:eL,webRawData:eA}=p||{},[eR,eN]=(0,v.useState)(`${ek}${(null==eA?void 0:eA.targetTitle)?`\\N${null==eA?void 0:eA.targetTitle}`:""}`);(0,v.useEffect)(()=>{(null==eA?void 0:eA.targetTitle)?eN(`${ek}\\N${null==eA?void 0:eA.targetTitle}`):eN(ek)},[eA,ek]);let{cooperationCreators:eP,acceptedNums:eM=0,cursor:ej}=ex||{},eD=(0,v.useRef)(null);(0,v.useRef)();let eF=(0,v.useMemo)(()=>{if(!(null==eP?void 0:eP.length))return[];let e=[],t=eP.filter(t=>(t.roleId===eV.iG.Author&&e.push(t),t.roleId!==eV.iG.Author));return[...e,...t]},[eP]),eB=(0,v.useMemo)(()=>{if(!!(null==ex?void 0:ex.extra))return JSON.parse(ex.extra)},[null==ex?void 0:ex.extra]),eO=(null==eB?void 0:eB.is_large_co_activity)&&eM>=14,eU=eO?eM+1:eF.length||0;(0,v.useEffect)(()=>{var e,t;let i=P.Q.getItem({sKey:T.CookieKeys.DyI18n}),l=i&&"zh"!==i?i:(null===(t=navigator)||void 0===t?void 0:null===(e=t.language)||void 0===e?void 0:e.startsWith("zh"))||i?"":"en";!er&&l&&!eA.targetTitle&&(async()=>{let e=await (0,tq.O9)({sourceText:ek,targetLanguage:l});if(0===e.statusCode){var t,i;let l=null===(i=e.translation)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.translation;eN(`${ek}\\N${l}`)}})()},[eA,er,ek]);let eH=()=>{if("function"==typeof X){X();return}if(eO){s2({awemeInfo:p,authorList:eF,totalNum:eU,cursor:ej,extra:eB,userInfo:S});return}sn({logParams:{clickMethod:"more_button"},showCooperationList:eF,loginUserInfo:N,awemeInfo:p,reportExtraParams:F,loginDispatch:M})},{uid:eW,nickname:eG,remarkName:ez}=eE||{},eZ=x.Le.getConfig(x.gI.AbtestData),eq=(0,dU.Y)(()=>{ed.logInstance.sendLog("postTimeShow",{enter_from:(0,e_.mo)(),group_id:p.awemeId,post_time:(0,t5.MH)(1e3*p.createTime)})}),{lineHeight:e$,videoLineCamp:eK,maxLine:eY}=dq(es),{clickAuthorHeadLog:eQ,clickTitleHashtagLog:eJ,clickTitleAtLog:eX,clickVideoTitleLog:e0,titleNamedEntityWordsClickLog:e1,titleNamedEntityWordsShowLog:e2}=function(e){let{awemeInfo:t,videoTags:i,onClickUserName:l,authorId:o,awemeType:n,logPb:r,awemeId:a,player:d}=e;(0,v.useEffect)(()=>{let e=i.filter(e=>e.type===ea.WZ.RelatedSearch);e.length&&dG.sendLog("trendingShow",{words_source:"related_search_anchor_v2",enter_from:(0,t6.yW)(),words_num:e.length,enter_group_id:t.awemeId,impr_id:(0,dW.U)(t).impr_id})},[i]);let u=(0,v.useCallback)(()=>{var e;dG.sendLog("clickAuthorHead",(0,b._)({click_from:"title",urlParamList:["previous_page"],author_id:o,group_id:a,log_pb:r,enter_from:(0,t6.yW)(),is_full_screen:(0,ey.r)()?"1":"0",from_follow_list:(null===(e=x.Le.getConfig(x.gI.FromFollowList))||void 0===e?void 0:e.tag)?"1":"0",from_xigua:n===_.e.XgVideo?1:0,aweme_type:n},(0,ew.t)())),eg.emit(eg.EVENT.videoPause),window.open((0,oA.GN)(o),(0,il.f)()?"_self":"_blank")},[o,n,r,a]),s=(0,v.useCallback)(()=>dG.sendLog("xiguaAnchorClick",{author_id:o,group_id:a}),[o,a]),c=(0,v.useCallback)(()=>dG.sendLog("xiguaAnchorShow",{author_id:o,group_id:a}),[o,a]),f=(0,v.useCallback)((e,t,i)=>{dG.sendLog("clickTitleHashtag",{hashtag:t.slice(1),urlParamList:["previous_page"],author_id:o,group_id:a,log_pb:r,enter_from:(0,t6.yW)(),is_full_screen:(0,ey.r)()?"1":"0",tag_id:e,status:"on",player_display_mode:(0,e_.Ok)()})},[o,a,r]),m=(0,v.useCallback)(e=>{dG.sendLog("clickTitleAt",{to_user_id:e,urlParamList:["previous_page"],author_id:o,group_id:a,log_pb:r,enter_from:(0,t6.yW)(),is_full_screen:(0,ey.r)()?"1":"0"})},[a,o,r]),p=(0,v.useCallback)(e=>{dG.sendLog("clickVideoTitle",{action:e?"fold":"expand",urlParamList:["previous_page"],author_id:o,group_id:a,log_pb:r,enter_from:(0,t6.yW)(),is_full_screen:(0,ey.r)()?"1":"0",player_display_mode:(0,e_.Ok)()})},[a,o,r,d]),g=(0,v.useCallback)((e,i,l)=>{dG.sendLog("trendingWordsClick",{enter_group_id:a,enter_group_type:n===_.e.Note?"aweme_image":"aweme_video",group_id:i,search_position:(0,t6.yW)(),words_content:e,words_position:l,impr_id:(0,dW.U)(t).impr_id})},[a,n,t]);return{clickAuthorHeadLog:u,xiguaAnchorClickLog:s,xiguaAnchorShowLog:c,clickTitleHashtagLog:f,clickTitleAtLog:m,clickVideoTitleLog:p,titleNamedEntityWordsClickLog:g,titleNamedEntityWordsShowLog:(0,v.useCallback)((e,i,l)=>{dG.sendLog("trendingWordsShow",{enter_group_id:a,enter_group_type:n===_.e.Note?"aweme_image":"aweme_video",group_id:i,search_position:(0,t6.yW)(),words_content:e,words_position:l,impr_id:(0,dW.U)(t).impr_id})},[a,n,t])}}({awemeInfo:p,videoTags:C,onClickUserName:k,authorId:eW,awemeType:eC,logPb:eS,awemeId:eb,player:es}),e3=(0,v.useCallback)(()=>{if("function"==typeof X){X();return}if(null==k||k(),(0,g.Jt)(p)){if(h!==ea.lT.Recommend){if((0,g.gc)(p)){W?W("广告视频不支持此功能"):L.F.info("广告视频不支持此功能");return}}else{eg.emit(eg.EVENT.openAdSideCard);let e=(0,g.Rx)(p);(0,ie.E)("realtime_click",{tag:(0,ii.f)(),value:null==e?void 0:e.creative_id,log_extra:null==e?void 0:e.log_extra,refer:"title",ad_extra_data:(0,b._)({},(0,g.f6)(p))});return}}if((0,g.gc)(p)){W?W("广告视频不支持此功能"):L.F.info("广告视频不支持此功能");return}eC===_.e.XgVideo?eQ():eg.emit(eg.EVENT.videoTitleClick,{awemeId:eb,playerId:null==es?void 0:es.playerId})},[eW,eC,eS,eb,k,es,eQ,X]),e6=(0,v.useCallback)((e,t,i)=>{var l;let o=null==f?void 0:f.searchOpenCurrentTab;((null==o?void 0:o.save_status)!==1||(0,D.DT)()||(null===(l=window)||void 0===l?void 0:l.location.pathname)!=="/")&&y&&eg.emit(eg.EVENT.videoPause),eJ(e,t,i)},[y,eJ,X]),e5=(0,v.useCallback)((e,t,i,l)=>{var o;let n=null==f?void 0:f.searchOpenCurrentTab;((null==n?void 0:n.save_status)!==1||(0,D.DT)()||(null===(o=window)||void 0===o?void 0:o.location.pathname)!=="/")&&eg.emit(eg.EVENT.videoPause),null==e1||e1(e,t,i)},[e1]),e4=(0,v.useCallback)(e=>{eg.emit(eg.EVENT.videoPause),eX(e)},[eX,X]),e8=(0,v.useCallback)(e=>{var t;eg.emit(eg.EVENT.hideFakeScreen,!1),null==es||null===(t=es.emit)||void 0===t||t.call(es,"titleIsFold",e),e0(e),em(e)},[es,e0]);(0,v.useEffect)(()=>{em(!0)},[eb]);let e7=(0,v.useMemo)(()=>(0,g.Jt)(p),[p]),te=(0,v.useMemo)(()=>(0,g.Kf)(p),[p]),tt=(0,g.Kf)(p),ti=(0,v.useCallback)(e=>{let{isUnfold:t}=e;return(0,c.jsx)(um,{wrapperClassName:dH.videoTitleWrapper,className:m()(dH.videoTitle,dH.adaptive),userTextClassName:m()(dH.hashTagSpan,dH.userText),hashTagClassName:m()({[dH.linkHashTag]:y},w),getHashTagHref:(e,t)=>y?`https://www.douyin.com/search/${encodeURIComponent(e)}?source=pc_click_hashtag_feed&enter_from=${(0,e_.vM)()}&aweme_id=${p.awemeId}&gid=${p.groupId}`:I?(0,oA.bP)(t):"",text:eR,getSearchTextUrl:(e,t)=>`https://www.douyin.com/search/${encodeURIComponent(e)}?source=title_named_entity&enter_from=${(0,e_.vM)()}&aweme_id=${p.awemeId}&gid=${p.groupId}`,isRemoveRowspan:!t,textExtra:eT,awemeInfo:p,onClickHashtag:X||e6,onClickUser:X||e4,onSearchTextClick:X||e5,onSearchTextMounted:e2,enterMethod:"video_title_at",searchWordsType:up.L.VideoInfoTitle,abTestData:f,player:es,children:(null==eL?void 0:eL.currentEpisode)&&(0,c.jsxs)("span",{children:["第",null==eL?void 0:eL.currentEpisode,"集:"]})})},[p,eR]),tl=(0,v.useCallback)(()=>{ed.logInstance.sendLog("hover_author_head",{enter_from:(0,e_.mo)(),click_from:"title"})},[]),to=(0,v.useMemo)(()=>C.slice(0,1),[C]);if(!(null==es?void 0:es.video))return null;let tn=C.length>0,tr=(null==ev?void 0:ev.state.ab.hitType1)&&(null==ev?void 0:ev.state.show);return(0,c.jsxs)("div",{id:"video-info-wrap",className:m()("xgplayer-video-info-wrap xgplayer-video-info-wrap-new",dH.infoContainer,{fullscreen:!ef,[dH.hide]:(null==ev?void 0:ev.state.ab.hitType2)&&(null==ev?void 0:ev.state.show)}),"data-state":"normal",children:[R,(0,c.jsxs)("div",{className:m()("video-info-detail",{isFireFox:(0,eI.vU)(),wallpaperTitle:(null===(i=x.Le.getConfig(x.gI.WallPaperIds))||void 0===i?void 0:i.includes(null==p?void 0:p.awemeId))||K,wallpaperClientTile:(null===(l=x.Le.getConfig(x.gI.WallPaperIds))||void 0===l?void 0:l.includes(null==p?void 0:p.awemeId))&&(0,D.DT)()},A),"data-e2e":"video-info","data-e2e-aweme-id":p.awemeId,children:[!Y&&z&&(0,c.jsxs)("div",{className:m()("account"),children:[(0,c.jsx)("div",{className:m()("account-name",{userAccountTextHover:1===f.textHoverStatus,userAccountTextHover2:2===f.textHoverStatus}),"data-e2e":"feed-video-nickname",onMouseEnter:tl,ref:eD,"data-click-from":"title",children:(0,c.jsx)("span",{onClick:e3,children:(0,c.jsx)(um,{className:m()(dH.userText,dH.adaptive),text:`@${ez||eG}`})})}),(0,c.jsx)("div",{className:"video-create-time",children:E&&(0,c.jsx)("span",{ref:eq,className:"time",children:`\xb7 ${(0,t5.MH)(1e3*p.createTime)}`})}),!$&&(e7&&(0,g.Gu)(p)||te)&&(0,c.jsx)(lt.Z,{src:sV,width:30,height:16,viewBox:"0 0 30 16",style:{marginLeft:4}}),eC===_.e.Note&&!(null==p?void 0:p.isSlides)&&(0,c.jsx)("div",{className:"account-card",children:(0,c.jsx)(uF,{className:dH.pictureStyle})}),!!((null==p?void 0:null===(n=p.authorInfo)||void 0===n?void 0:null===(o=n.relationLabel)||void 0===o?void 0:o.label_info)&&G)&&(0,c.jsx)("div",{className:"account-card",children:(0,c.jsx)("span",{className:dH.friendIcon,children:null==p?void 0:null===(a=p.authorInfo)||void 0===a?void 0:null===(r=a.relationLabel)||void 0===r?void 0:r.label_info})}),(null==eF?void 0:eF.length)>1&&B&&(0,c.jsx)(uq,{authorList:eF,num:eU,isTag:!0,onClick:eH})]}),!Y&&(null==eF?void 0:eF.length)>0&&B&&(0,c.jsx)(uU,{authorList:eF,loginUserInfo:N,loginDispatch:M,fullScreenTarget:j,reportExtraParams:F,awemeInfo:p,onCooperationAuthorClick:V,abTestData:f,showSideBar:O,onClickMore:eH,isDetail:en}),!Y&&q&&(0,c.jsx)("div",{className:m()("title",{notBideoTags:(tn||tr)&&!eh&&!K&&!Y}),"data-e2e":"video-desc",children:(0,c.jsx)(uh,{maxLine:eY,lineClamp:eK,btnClassName:m()(dH.button,dH.expandButton,dH.adaptive),onlyKey:eR,btnOnClick:e8,lineHeight:e$,renderContent:(null==eZ?void 0:eZ.reduceRender)?ti:e=>{let{isUnfold:t}=e;return(0,c.jsx)(um,{wrapperClassName:dH.videoTitleWrapper,className:m()(dH.videoTitle,dH.adaptive),userTextClassName:m()(dH.hashTagSpan,dH.userText),hashTagClassName:m()({[dH.linkHashTag]:y},w),getHashTagHref:(e,t)=>y?`https://www.douyin.com/search/${encodeURIComponent(e)}?source=pc_click_hashtag_feed&enter_from=${(0,e_.vM)()}&aweme_id=${p.awemeId}&gid=${p.groupId}`:I?(0,oA.bP)(t):"",text:eR,getSearchTextUrl:(e,t)=>`https://www.douyin.com/search/${encodeURIComponent(e)}?source=title_named_entity&enter_from=${(0,e_.vM)()}&aweme_id=${p.awemeId}&gid=${p.groupId}`,isRemoveRowspan:!t,textExtra:eT,awemeInfo:p,onClickHashtag:X||e6,onClickUser:X||e4,onSearchTextClick:X||e5,onSearchTextMounted:e2,enterMethod:"video_title_at",searchWordsType:up.L.VideoInfoTitle,abTestData:f,player:es,children:(null==eL?void 0:eL.currentEpisode)&&(0,c.jsxs)("span",{children:["第",null==eL?void 0:eL.currentEpisode,"集:"]})})},showExpandButton:!e7,player:es,isMobile:!0,isActive:U})}),(0,c.jsx)("div",{className:m()(dH.underTitleTagContainer,dH.rsBarOpt),onClickCapture:e=>null==X?void 0:X(e),ref:ep,children:er&&!eh&&!K&&!Y&&!tt&&(0,c.jsxs)(c.Fragment,{children:[(null==ev?void 0:ev.state.ab.hitType1)&&(0,c.jsx)(sF,{}),tn&&(0,c.jsx)("div",{className:m()("under-title-tag",dH.videoTagContainer),children:(0,c.jsx)(uP,{tagList:to,awemeInfo:p,userInfo:S,isActive:U,reportExtraParams:F,isShowUpdateText:!0,player:es,abTestData:f,containerRef:ep})})]})}),(0,g.Kf)(p)&&!$&&(0,c.jsx)(sy,{awemeInfo:p,isActive:U,className:dH.brandAd,onBrandComponentClose:()=>{null==Q||Q()},onBrandComponentShow:()=>{null==J||J()}}),sC(null==p?void 0:p.riskInfos,f)&&(0,c.jsx)(sb,{awemeInfo:p,risk:null==p?void 0:p.riskInfos,className:m()({[dH.marginTop]:tn&&!eh&&!K,[dH.oneLineText]:ee})}),h===ea.lT.Search&&!!p.videoAbstract&&(null===(d=p.videoAbstract)||void 0===d?void 0:d.displayType)===2&&(0,c.jsx)("div",{id:"video-abstract",style:{marginTop:"12px"},children:(0,c.jsx)(sE.r,{awemeInfo:p,isActive:U,player:es,logParams:F,isInnerFeed:$,isModal:void 0!==ei,openSpecificTab:el})}),h!==ea.lT.Search&&!$&&(ei===ec.a.GeneralSearch||ei===ec.a.Search)&&!!p.videoAbstract&&[2,3].includes(null===(u=p.videoAbstract)||void 0===u?void 0:u.displayType)&&(0,c.jsx)("div",{id:"video-abstract",style:{marginTop:"12px"},children:(0,c.jsx)(sE.r,{awemeInfo:p,isActive:U,player:es,logParams:F,isInnerFeed:$,isModal:void 0!==ei,openSpecificTab:el})})]}),(0,c.jsx)("div",{className:m()("mobile-video-info-mask",{"windows-client-flag":(null===(s=(0,l1.fV)())||void 0===s?void 0:s.os)==="Windows"&&(0,D.DT)(),"splash-brand":(0,Z.p)(p)&&!$})}),(0,c.jsx)("div",{className:"mini-progress-outer",children:(0,c.jsx)("div",{className:"mini-progress-inner"})})]})});var s6=i("254852");let s5=T.CookieKeys.StreamPlayerStatusParams,s4=e=>P.Q.setItem(s5,JSON.stringify(e)),s8=x.gI.PlayerStatus,s7=e=>x.Le.setConfig(s8,e),s9=()=>{let e=(0,e9.n)();return(0,v.useEffect)(()=>{if(!e)return()=>{};let t=()=>{let t=function(e){var t,i,l,o,n,r;let a={};return a.is_auto_play=(null===(l=e.plugins)||void 0===l?void 0:null===(i=l.autoplaysettingplugin)||void 0===i?void 0:null===(t=i.config)||void 0===t?void 0:t.nextAutoPlay)||(null==e?void 0:null===(r=e.plugins)||void 0===r?void 0:null===(n=r.searchautoplaysettingplugin)||void 0===n?void 0:null===(o=n.config)||void 0===o?void 0:o.nextAutoPlay)?1:0,a.is_full_screen=(0,ey.r)()?1:0,a.is_full_webscreen=tB.s.getIsPageFullscreen()?1:0,a.is_mute=e.muted?1:0,a.is_speed=e.playbackRate,a.is_visible=(0,s6.d)()?1:0,a}(e);s4(t),s7(t)};t();let i=[tV.B.AutoPlaySwitchChange,en.Events.FULLSCREEN_CHANGE,en.Events.VOLUME_CHANGE,en.Events.RATE_CHANGE],l=["visibilitychange"],o=[eg.EVENT.pageFullScreen];i.forEach(i=>e.on(i,t)),l.forEach(e=>document.addEventListener(e,t));let n=o.map(e=>eg.listen(e,t));return()=>{i.forEach(i=>e.off(i,t)),l.forEach(e=>document.removeEventListener(e,t)),n.forEach(e=>null==e?void 0:e())}},[e]),null},ce=e=>{let t=(0,o0.N)();return(0,c.jsx)(e4.k,{componentName:"RecRawDataCookiePlugin",Slardar:t,children:(0,c.jsx)(s9,(0,b._)({},e))})},ct=e=>{let{player:t,awemeId:i,showSideCard:l,curTab:o}=e;(0,v.useEffect)(()=>{if(!t)return()=>{};let e=()=>{ue.H.collect("currentTime",t.currentTime)},i=()=>{ue.H.collect("isPause",!0)},l=()=>{ue.H.collect("isPause",!1)};t.on(en.Events.TIME_UPDATE,e),t.on(en.Events.PAUSE,i),t.on(en.Events.PLAY,l);let o=eg.listen(eg.EVENT.pageFullScreen,e=>{ue.H.collect("isPageFullScreen",e.fullScreen)});return()=>{t.off(en.Events.TIME_UPDATE,e),t.off(en.Events.PAUSE,i),t.off(en.Events.PLAY,l),null==o||o()}},[t,i]),(0,v.useEffect)(()=>{ue.H.collect("showSideCard",l)},[l]),(0,v.useEffect)(()=>{ue.H.collect("curTab",o)},[o])},ci=e=>{let{player:t,awemeId:i,setSideCard:l,setCurTab:o}=e,n=(0,v.useRef)({setSideCard:l,setCurTab:o});n.current.setSideCard=l,n.current.setCurTab=o,(0,v.useEffect)(()=>{let e=ue.H.getCache();if(!t||!ue.H.needRollback||i!==(null==e?void 0:e.awemeId))return()=>{};ue.H.needRollback=!1,e.currentTime&&(t.currentTime=e.currentTime);let l=()=>{e.isPause&&t.pause()};return t.once(en.Events.PLAY,l),t.once(en.Events.AUTOPLAY_STARTED,l),e.isPageFullScreen&&eg.emit(eg.EVENT.pageFullScreen,{playerId:t.playerId,fullScreen:!0}),setTimeout(()=>{var t,i;void 0!==e.showSideCard&&(null===(t=n.current)||void 0===t||t.setSideCard(e.showSideCard)),void 0!==e.curTab&&(null===(i=n.current)||void 0===i||i.setCurTab(e.curTab))},1e3),()=>{t.off(en.Events.PLAY,l),t.off(en.Events.AUTOPLAY_STARTED,l)}},[t,i])},cl=e=>{let{awemeInfo:t,sideCardContext:i}=e,l=(0,e9.n)();return ct({player:l,awemeId:null==t?void 0:t.awemeId,showSideCard:i.showSideCard,curTab:i.curTab}),ci({player:l,awemeId:null==t?void 0:t.awemeId,setSideCard:i.setSideCard,setCurTab:i.setCurTab}),null},co=e=>{let t=(0,o0.N)();return(0,v.useEffect)(()=>{(e.needVideo||e.needState)&&(ue.H.setCache(),ue.H.collect("awemeId",e.awemeInfo.awemeId))},[e.needVideo,e.needState,e.awemeInfo,e.isActive]),(0,c.jsx)(e4.k,{componentName:"RecommendPageStatePlugin",Slardar:t,children:e.needState&&(0,c.jsx)(cl,(0,b._)({},e))})};var cn=i("730210");i("248385"),i("374285");var cr=i("674495"),ca={errorCode:cr.WE[cr.wb.NETWORK_FORBIDDEN],errorType:"network",errorMessage:"",httpCode:cr.WE[cr.wb.NETWORK_FORBIDDEN],mediaError:{code:cr.WE[cr.wb.NETWORK_FORBIDDEN],message:""}},cd=function(){try{return parseInt(performance.now().toString(),10)}catch(e){return new Date().getTime()}},cu=function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e||"String"!==(t=e,Object.prototype.toString.call(t).match(/([^\s.*]+)(?=]$)/g)[0]))return 0;var l=0;try{var o=RegExp("(\\?|&)x-tos-expires=([^&]*)(&|$)"),n=e.match(o);if(null!==n)l=parseInt(n[2],10);else{var r=e.split("/");r.length>5&&8===r[4].length&&(l=parseInt(r[4],16))}if(l>0){var a=parseInt(String(i&&"number"==typeof i?new Date().getTime()/1e3+i:new Date().getTime()/1e3),10);return l<a?1:2}return 0}catch(e){return 0}},cs=function(e){function t(e){var i;return(0,cn.PA)(this,t),(i=(0,cn.$w)(this,t,[e]))._handleExpiryCheck=function(){var e=i.config;if(!(i.player._customExpiryCheck||!e.enableExpiryCheck||cd()-i._lastCheckTime<1e3)){if(e.useCdnExpiryTime){i.handleUrlExpiryCheckByCdnPath(),i._lastCheckTime=cd();return}}},i._lastCheckTime=cd(),i.emitExpireTimestamp=null,i}return(0,cn.XW)(t,e),(0,cn.qH)(t,[{key:"beforePlayerInit",value:function(){var e=this.config,t=this.player;e.enableExpiryCheck&&!t._customExpiryCheck&&(this.on(en.Events.PLAY,this._handleExpiryCheck),this.on(en.Events.TIME_UPDATE,this._handleExpiryCheck),this.on(en.Events.LOAD_START,this._handleExpiryCheck),this.on(en.Events.LOADED_DATA,this._handleExpiryCheck),this.on(en.Events.SEEKING,this._handleExpiryCheck),this.on(en.Events.WAITING,this._handleExpiryCheck))}},{key:"handleUrlExpiryCheckByCdnPath",value:function(){var e,t=this.config,i=this.player;if(!i||!t)return;var l=(null===(e=i.curDefinition)||void 0===e?void 0:e.url)||i.config.url,o=Array.isArray(l)?l[0]:l;if(!o)return;var n="string"==typeof o?o:o.src;if(!!n)1===cu(n,t.expiryOffset)&&this._emitExpireEvent(ca)}},{key:"_emitExpireEvent",value:function(e){var t=this.player,i=new Date().getTime()/1e3;return this.emitExpireTimestamp?!!(i-this.emitExpireTimestamp>300)&&(this.emitExpireTimestamp=i,t.emit("MEDIA_EXPIRED",e),!0):(this.emitExpireTimestamp=i,t.emit("MEDIA_EXPIRED",e),!0)}},{key:"destroy",value:function(){this.config.enableExpiryCheck&&!this.player._customExpiryCheck&&(this.off(en.Events.PLAY,this._handleExpiryCheck),this.off(en.Events.TIME_UPDATE,this._handleExpiryCheck),this.off(en.Events.LOAD_START,this._handleExpiryCheck),this.off(en.Events.LOADED_DATA,this._handleExpiryCheck),this.off(en.Events.SEEKING,this._handleExpiryCheck),this.off(en.Events.WAITING,this._handleExpiryCheck))}}],[{key:"pluginName",get:function(){return"ExpiryCheck"}},{key:"defaultConfig",get:function(){return{enableExpiryCheck:!1,useCdnExpiryTime:!1,expiryOffset:30}}}])}(en.BasePlugin);let cc=e=>{let{config:t={},abtestData:i={}}=e,l=x.Le.getConfig(x.gI.ServerTimeOffset);i.checkUrlTime&&l<=6e4&&(t.plugins=[...t.plugins||[],cs],t.expirycheck={enableExpiryCheck:!0,useCdnExpiryTime:!0,expiryOffset:35})},cv=e=>{let{ref:t,player:i,awemeInfo:l,abtestData:o,isActive:n}=e;(0,v.useEffect)(()=>{if(i&&n){let e=()=>{var e,i,l;let o=null===(l=t.current)||void 0===l?void 0:null===(i=l.root)||void 0===i?void 0:null===(e=i.getBoundingClientRect)||void 0===e?void 0:e.call(i);o&&o.width&&o.height&&x.Le.setConfig(x.gI.VideoRect,{width:o.width,height:o.height-48})};return i.once(en.Events.TIME_UPDATE,e),()=>i.off(en.Events.TIME_UPDATE,e)}},[i,n,o])},cf=e=>{let{isActive:t,timeout:i=2e3,useIdleCallback:l=!1,immediately:o=!1,callback:n}=e,r=(0,v.useRef)();r.current=n,(0,v.useEffect)(()=>{if(o){var e;return null===(e=r.current)||void 0===e?void 0:e.call(r)}},[o]),(0,v.useEffect)(()=>{if(!o&&l&&t){var e,i;let t;let l=0,o=setTimeout(()=>{var e,i,o;t=null===(e=r.current)||void 0===e?void 0:e.call(r),null===(i=(o=window).cancelIdleCallback)||void 0===i||i.call(o,l)},200);return l=null===(e=(i=window).requestIdleCallback)||void 0===e?void 0:e.call(i,()=>{var e;t=null===(e=r.current)||void 0===e?void 0:e.call(r),clearTimeout(o)}),()=>{var e,i;clearTimeout(o),null===(e=(i=window).cancelIdleCallback)||void 0===e||e.call(i,l),null==t||t()}}},[o,l,t]),(0,v.useLayoutEffect)(()=>{let e;if(o||l||!t)return;let n=setTimeout(()=>{var t;null==a||a(),e=null===(t=r.current)||void 0===t?void 0:t.call(r)},i),a=eg.listen(eg.EVENT.firstFrameReady,()=>{var t;e=null===(t=r.current)||void 0===t?void 0:t.call(r),clearTimeout(n)});return()=>{a(),null==e||e(),clearTimeout(n)}},[t,o,i,l])},cm=e=>{let{immediately:t,once:i,delay:l}=e,[o,n]=(0,v.useState)(t);return cf((0,G._)((0,b._)({},e),{callback:()=>{let e;return!t&&l?e=setTimeout(()=>{n(!0)},l):n(!0),()=>{e&&clearTimeout(e),!t&&!i&&n(!1)}}})),{isShow:o}},cp=e=>{let{isActive:t,player:l,abtestData:o}=e,n=(0,v.useRef)(null);(0,tQ.b)(async()=>{if(!n.current)try{let{Pylon:e,EBiz:t}=await i.e("52543").then(i.bind(i,831626));n.current=new e({biz:t.DOUYIN_WEB_RECOMMEND})}catch(e){}},[]),(0,v.useEffect)(()=>{if(t&&n.current&&l)try{let e=null==o?void 0:o.slidePreloadConfig,t=n.current.strategyInference({scene:"feed_slide",abConfig:{slideStrategy:(null==e?void 0:e.slideConfig)||[6,12]}});x.Le.setConfig(x.gI.FastSlowSlide,t);let i=window.playerPreloader;if(!(null==e?void 0:e.open)||!window.playerPreloader)return;0===t?i.updateConfig(e.normal):2===t?i.updateConfig(e.slow):1===t&&i.updateConfig(e.fast)}catch(e){}},[t,l,null==o?void 0:o.slidePreloadConfig]),(0,v.useEffect)(()=>{if(l&&t){let e=iz()(()=>{let t=null==l?void 0:l.bufferedPoint,i=(null==t?void 0:t.end)-(null==l?void 0:l.currentTime)||0,n=Object.assign({},null==o?void 0:o.loadMore,null==o?void 0:o.loadMoreServer);i>(null==n?void 0:n.bufferEmit)&&(eg.emit(eg.EVENT.bufferedLoadMore),l.off(en.Events.TIME_UPDATE,e))},2e3);return l.on(en.Events.TIME_UPDATE,e),()=>{l.off(en.Events.TIME_UPDATE,e)}}},[t,l,o])},c_=e=>{let{prevAwemeInfo:t,awemeInfo:i,isInnerFeedModel:l}=e,o=(0,v.useRef)(i);(0,v.useEffect)(()=>{o.current=i},[i]),(0,v.useEffect)(()=>{let e=null==eg?void 0:eg.listen(null==eg?void 0:eg.EVENT.quitInnerFeed,e=>{e&&x.Le.setConfig(x.gI.PreAwemeId,"")});return()=>e()},[]),(0,v.useEffect)(()=>{let e=(0,j.$o)(T.LocalStorageKeys.HasUseFlashBack),i=(0,j.$o)(T.LocalStorageKeys.ShowFlashBackTipNum)||0;if(l&&!e&&i<3){var n;let e=x.Le.getConfig(x.gI.PreAwemeId);e&&e===(null===(n=o.current)||void 0===n?void 0:n.awemeId)?eg.emit(eg.EVENT.showFlashbackTip,!0):eg.emit(eg.EVENT.showFlashbackTip,!1),(null==t?void 0:t.awemeId)&&x.Le.setConfig(x.gI.PreAwemeId,null==t?void 0:t.awemeId)}},[t,l])},cg=e=>{let{isActive:t,once:i=!1}=e,[l,o]=(0,v.useState)(!1);return(0,v.useEffect)(()=>{if(t&&!l){var e,n;let t=0,l=setTimeout(()=>{var e,i;o(!0),null===(i=window)||void 0===i||null===(e=i.cancelIdleCallback)||void 0===e||e.call(i,t)},200);return t=null===(n=window)||void 0===n?void 0:null===(e=n.requestIdleCallback)||void 0===e?void 0:e.call(n,()=>{o(!0),clearTimeout(l)}),()=>{var e,n;!i&&o(!1),clearTimeout(l),null===(n=window)||void 0===n||null===(e=n.cancelIdleCallback)||void 0===e||e.call(n,t)}}},[t]),{idlCallBackFlag:l}},ch=e=>{let{isNext:t,positionIndex:i,abtestData:l}=e,[o,n]=(0,v.useState)(!1),r=(0,v.useRef)(!1);return(0,v.useEffect)(()=>eg.listen(eg.EVENT.firstFrameReady,()=>{r.current=!0}),[]),(0,v.useEffect)(()=>{if(t&&1===i&&(null==l?void 0:l.mergeOptimization)){if(!r.current)return eg.listen(eg.EVENT.firstFrameReady,()=>{n(!0)});n(!0)}},[null==l?void 0:l.firstFrameOptV3,null==l?void 0:l.mergeOptimization]),{flag:o}};var cy=i("650887"),cw=i("964575");let cx=!1,cI=()=>{if(cx)return null;cx=!0;let e=x.Le.getConfig(x.gI.PlayerStateBeforeRefeshForNotUse);if(e&&"object"==typeof e)return x.Le.setConfig(x.gI.PlayerStateBeforeRefeshForNotUse,null),e;if((0,A.Rs)(cw.REFRESH_FOR_NOT_USE)){let e=(0,A.Rs)(cw.VID)||(0,A.Rs)(cw.MODAL_ID),t=Number((0,A.Rs)(cw.SEEK_TIME)),i=!!(0,A.Rs)(cw.REFRESH_IMMERSIVE_SWITCH),l=(0,A.Rs)(cw.REFRESH_VIDEO_TAB);return Promise.resolve().then(()=>{let e=(0,cy.q)([cw.REFRESH_FOR_NOT_USE,cw.VID,cw.SEEK_TIME,cw.REFRESH_IMMERSIVE_SWITCH,cw.REFRESH_VIDEO_TAB],location.href);history.replaceState({},"",e)}),{vid:e,seekTime:t,immersiveSwitch:i,videoTab:l}}return null},cC=()=>{let e=x.Le.getConfig(x.gI.PlayerStateFromLynx);(null==e?void 0:e.vid)&&x.Le.setConfig(x.gI.PlayerStateFromLynx,(0,G._)((0,b._)({},e),{hasSeek:!0}))},cb=e=>{let{config:t,player:i,isActive:l,awemeInfo:o,setIsSideBarShowFunc:n,setSlideVideoTab:r,playerReady:a}=e,d=(0,v.useRef)(l),u=(0,v.useRef)(void 0),s=(0,v.useRef)(null);if((0,v.useEffect)(()=>{s.current&&s.current!==o.awemeId&&dS.sendLog("refreshNoMatchVid",{vid:s.current})},[]),!l)return t.autoplay=l,t.notUseRefreshVid=null,i&&(i.config.notUseRefreshVid=null),t.isOnByOuter=void 0,t;if((0,M.B)()||(0,M.r)())return t.autoplay=!1,t;let c=()=>{cC(),x.Le.setConfig(x.gI.PlayerStateFromLynx,void 0),i.off("seeked",c)},f=x.Le.getConfig(x.gI.PlayerStateFromLynx);if(f){let{vid:e,seekTime:n,paused:r,muted:a,hasSeek:u}=f;return l&&e&&(null==o?void 0:o.awemeId)&&e!==(null==o?void 0:o.awemeId)?(x.Le.setConfig(x.gI.PlayerStateFromLynx,void 0),t):(t.autoplay=!1,d.current=!1,t.notUseRefreshVid=o.awemeId,e===o.awemeId&&(t.autoplay=!r,t.startTime=n,i&&!u&&(i.seek(n,r?"pause":"play"),i.on("seeked",c))),i&&(i.muted=a),eg.emitAfterListen(eg.EVENT.CheckAllowPlay),t)}eg.emitAfterListen(eg.EVENT.CheckAllowPlay);let m=cI();if(m){let{vid:e,seekTime:i,immersiveSwitch:l,videoTab:a}=m;s.current=e,t.autoplay=!1,d.current=!1,t.notUseRefreshVid=o.awemeId,e===o.awemeId&&i&&document.hidden&&(t.startTime=i,l&&(u.current=!0),a&&(null==n||n(!0),null==r||r(a)))}return i&&i.config&&i.config.notUseRefreshVid!==o.awemeId&&(t.notUseRefreshVid=null,i.config.notUseRefreshVid=null,u.current=void 0),t.isOnByOuter=u.current,t.autoplay=d.current,t};i("225293");var cE=i("264034"),cS=i.n(cE);let ck=!1,cT=e=>{let{awemeInfo:t,isFirst:i,isActive:l,timeout:o=2e3}=e,n=(0,e9.n)();return(0,v.useEffect)(()=>{if(!l)return;let e=cS()(function(){let{isDown:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ck=!0,eg.emit(eg.EVENT.firstFrameReady,{firstFrameReadyPlayer:n,vid:null==t?void 0:t.awemeId,playerId:null==n?void 0:n.playerId,isFirst:i,isDown:!!e,isActive:l})});if((null==t?void 0:t.awemeType)!==_.e.Normal){setTimeout(()=>{e({isDown:!0})},0);return}if((null==t?void 0:t.awemeType)===_.e.Normal&&n){if(!1===i&&!ck||n.isPlaying||n.currentTime>0){setTimeout(()=>{e({isDown:!0})},0);return}n.on(en.Events.AUTOPLAY_STARTED,e),n.on(en.Events.AUTOPLAY_PREVENTED,e);let t=setTimeout(()=>{e({isDown:!0})},o);return()=>{n.off(en.Events.AUTOPLAY_STARTED,e),n.off(en.Events.AUTOPLAY_PREVENTED,e),clearTimeout(t)}}},[n,t,i,l,o]),null},cL=(0,v.forwardRef)((e,t)=>(0,c.jsx)("svg",(0,G._)((0,b._)({width:18,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,c.jsx)("path",{d:"M17.448 17.448a1.886 1.886 0 0 1-2.668 0L9 11.668l-5.78 5.78A1.886 1.886 0 1 1 .552 14.78L6.332 9 .552 3.22A1.886 1.886 0 1 1 3.22.552L9 6.332l5.78-5.78a1.886 1.886 0 1 1 2.668 2.668L11.668 9l5.78 5.78a1.886 1.886 0 0 1 0 2.668z",fill:"#fff"})})));var cA={container:"JNx9V0vF",hide:"bpJPY9ap",wrapper:"Ix3tqLHL",circle:"KDGOC5uE",close:"TAgcpRaG",back:"dKOYhiHY",clientHomeStyleWrap:"V9jMVVMh"};let cR=e=>{let{onClick:t,isClientMiniWin:i,className:l,isBackSvg:o=!1}=e,n=(0,D.DT)()&&(0,ij.y)((0,D.FJ)().awemePcClient,">=","5.4.0");return(0,c.jsx)("div",{className:m()(cA.container,"isDark",l,{[cA.hide]:i},n&&cA.clientHomeStyleWrap),onClick:t,children:(0,c.jsxs)("div",{className:cA.wrapper,children:[(0,c.jsx)("div",{className:cA.circle}),o||n?(0,c.jsx)(iB.z,{className:cA.back,svg:(0,c.jsx)(iF.Z,{style:{fontSize:"24px"}})}):(0,c.jsx)(lt.Z,{src:cL,className:cA.close,viewBox:"0 0 18 18"})]})})};var cN=i("550514");let cP=e=>{let{player:t,awemeInfo:i}=e,l=(0,v.useRef)(0);(0,v.useEffect)(()=>{if(t&&i){let{seriesInfo:o,awemeId:n}=i||{},{seriesId:r,currentEpisode:a}=o||{},d=!1,u=async e=>{let{currentTime:i}=e;if(!d&&r&&n&&l.current<5&&i>=5){d=!0;try{let e=await (0,cN.tJ)({episode:a,seriesId:r,awemeId:n});if((null==e?void 0:e.statusCode)===0){var o;null==t||null===(o=t.off)||void 0===o||o.call(t,en.Events.TIME_UPDATE,u)}else throw Error(null==e?void 0:e.statusMessage)}catch(e){l.current++}d=!1}};if(r){var e;return null==t||null===(e=t.on)||void 0===e||e.call(t,en.Events.TIME_UPDATE,u),()=>{var e;null==t||null===(e=t.off)||void 0===e||e.call(t,en.Events.TIME_UPDATE,u),l.current=0}}}},[t,i])};var cM={weeklyRecommendTagContainer:"flFdTiE4",weeklyRecommendTag:"Ei62mwR_",icon:"N4sD0xfI",text:"_MSqVsl3",player:"KZ9Y2VKG",videoCard:"GKkZPghh",titlePrefix:"GlzXu29f",dark:"_Yucz3EL",isDark:"MIGTCful"};let cj=e=>{let{abTestData:t,awemeInfo:i}=e||{},{weeklyRecommend:l}=i||{},{urlList:o,text:n}=l||{};return!!(l&&n&&o&&o.length>0)},cD=e=>{let{awemeInfo:t,scene:i="player",className:l}=e,{weeklyRecommend:o}=t||{},{urlList:n,text:r}=o||{},a=(0,e9.n)(),d=(0,dU.x)(()=>{ed.logInstance.sendLog("weeklySelectionShow",{enter_from:(0,t6.yW)(),group_id:null==t?void 0:t.awemeId})});return("player"!==i||(null==a?void 0:a.video))&&n&&n.length&&r?(0,c.jsx)("div",{ref:d,className:m()(cM.weeklyRecommendTagContainer,cM[i],l),children:(0,c.jsxs)("div",{className:m()(cM.weeklyRecommendTag),children:[(0,c.jsx)("img",{className:cM.icon,src:n[0],alt:""}),(0,c.jsx)("div",{className:cM.text,children:r})]})}):null},cF=(0,v.memo)((0,v.forwardRef)((e,t)=>{var i,l,o;let{isActive:n,isNext:r,isPrev:a,isFirst:d,isLast:u,index:s,awemeInfo:f,nextAwemeInfo:p,prevAwemeInfo:g,playNextFunc:h,abtestData:y,deleteCurrentSwiper:w,toggleComment:I,onAvatarClick:C,fullScreenTarget:E,logParams:S,videoToast:k,followHandler:L,playPrevFunc:A,userInfo:R,dispatch:N,isAuthorCardShow:P,isShowRelatedCard:M,children:j,videoHashtagClassName:D,videoTags:F,moreBoxShowList:B={notInterestingIcon:!0,unfollow:!0,report:!0},positionBoxClassName:O,actionFollow:U,actionUnFollow:H,isInnerFeed:W,onRelatedClick:q,onCooperationAuthorClick:$,isShowCooperation:K,sideBarShow:Y,slardarInstance:Q,avatarTipText:J,LiveSliderCard:X,onDislike:ee,disableShortCut:ei,onReady:el,sideCardContext:eo,isMultiInstanceScene:en}=e,{isMainland:er}=(0,v.useContext)(V.ko),ed=(0,v.useRef)(null),[eu,es]=(0,v.useState)(!1),{isShow:ec}=cm({useIdleCallback:!(0,eI.b_)(),isActive:n,timeout:5e3,delay:(0,eI.b_)()?1e3:0,once:!0,immediately:!(0,eI.b_)()}),{PictureMode:ev}=lJ({shouldRender:ec,disable:!(0,eI.b_)()});(0,v.useImperativeHandle)(t,()=>{var e;return{getPlayer:()=>ed.current.getPlayer(),player:null===(e=ed.current)||void 0===e?void 0:e.player}}),cP({player:null==ed?void 0:null===(i=ed.current)||void 0===i?void 0:i.player,awemeInfo:f}),(0,v.useEffect)(()=>{n&&!W&&x.Le.setConfig(x.gI.InnerAutoPlay,null)},[n,W,f]);let ef=(0,v.useMemo)(()=>{var e;let t={},i=dP({abtestData:y,awemeInfo:f,isInnerFeed:W});return Object.assign(t,aq({awemeInfo:f,abtestData:y,enableSr:i}),a1({awemeInfo:f,abtestData:y,userselection:null===(e=(0,lq.G)(T.SessionStorageKeys.manualSwitch))||void 0===e?void 0:e.gearType,enableSr:i})),cc({config:t,abtestData:y}),(0,ac.Zf)({config:t}),(0,rw.LX)({config:t,awemeInfo:f,abtestData:y,isMultiInstanceScene:en}),t.startTime=oe(f.awemeId),t.loop=!0,t.ignores=t.ignores.filter(e=>"mobile"!==e),t.closeDelayBlur=!0,t.mobile=(0,G._)((0,b._)({},t.mobile),{gestureX:!0}),t},[f,y]);cp({abtestData:y,isActive:n,player:null===(l=ed.current)||void 0===l?void 0:l.player}),c_({awemeInfo:f,prevAwemeInfo:g,isInnerFeedModel:W&&n});let{idlCallBackFlag:em}=cg({isActive:r,once:!0}),{flag:ep}=ch({isNext:r,positionIndex:s,abtestData:y}),e_=(0,v.useRef)(!1),eg=(0,v.useMemo)(()=>{var e;let t=null===(e=tB.s.getAllPlayer())||void 0===e?void 0:e.length;return!!e_.current||1===s&&(!!(t>1)||!!ep)||n||a||r&&em&&1!==s},[n,a,r,s,em,ep]);e_.current=eg;let eh=cj({abTestData:y,awemeInfo:f});(0,v.useEffect)(()=>{2===s&&x.Le.setConfig(x.gI.IsForceInsert,{isForceLive:!1})},[s]);(0,z.C)(et.w3.components.recommend_video),cv({ref:ed}),cb({config:ef,isActive:n,awemeInfo:f,player:null===(o=ed.current)||void 0===o?void 0:o.player});let ew=null==y?void 0:y.searchOpenCurrentTab,ex=(0,v.useCallback)(function(){for(var e,t,i,l,o=arguments.length,n=Array(o),r=0;r<o;r++)n[r]=arguments[r];let a=null==n?void 0:null===(t=n.slice)||void 0===t?void 0:null===(e=t.call(n,-1))||void 0===e?void 0:e[0];null==a||null===(i=a.preventDefault)||void 0===i||i.call(a),null==a||null===(l=a.stopPropagation)||void 0===l||l.call(a),o8("前往抖音app/电脑端看更多内容")},[]),eC=(0,v.useCallback)(()=>{document.exitFullscreen()},[]);return(0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(l9,{xgplayerConfig:ef,isInitPlayer:eg,style:{height:"100%",width:"100%"},className:m()(l$.container,"mobileRecommendVideo"),ref:ed,slardarInstance:Q,onReady:e=>{var t,i;null==el||el(),null==e||null===(t=e.focus)||void 0===t||t.call(e),(null===(i=(0,id.bE)("player_ready"))||void 0===i?void 0:i.length)<1&&(0,id.B1)({tag:"player_ready"})},children:[(0,c.jsx)(cT,{awemeInfo:f,isActive:n,timeout:(0,eI.b_)()?4e3:2e3,isFirst:d}),(0,c.jsx)("div",{className:l$.splashAdComponent,children:(0,c.jsx)(nr,{isActive:n,controlHeight:ea.fp.MidHigh,isClientMiniWin:!1,position:"right",awemeInfo:f,abtestData:y,from:ea.lT.Recommend,className:{right:l$.rightPositionBox},children:(0,c.jsx)(o9,{actionFollow:U,actionUnFollow:H,awemeInfo:f,toggleComment:I,loginUserInfo:R,loginDispatch:N,deleteCurrentSwiper:w,fullScreenTarget:E,onAvatarClick:C,abtestData:y,videoToast:k,isActive:n,followHandler:L,reportExtraParams:S,recordPreferVideoSwitch:!0,canShowAvatarFollowBtn:!0,canShowAvatarAdBtn:!1,canShowAvatarTip:!1,canShowDislikeTip:!1,moreBoxShowList:(0,b._)({shortcutList:!0},B),className:"immersive-player-switch-on-hide-interaction-area",avatarTipText:J,showMusicDetail:!0,from:ea.lT.Recommend,LiveSliderCard:X,onRelatedClick:q,videoTags:F,onDislike:ee,isInnerFeed:W,isMainland:er})})}),(0,ey.r)()&&(0,c.jsx)(cR,{onClick:eC,className:l$.closeButton}),(0,c.jsx)(nu,{isActive:n,fullScreenTarget:E,abtestData:y,isLogin:!!(null==R?void 0:R.isLogin),loginDispatch:N,disableHook:!0}),(0,c.jsx)(nf,{awemeInfo:f,isActive:n,controlHeight:(0,Z.p)(f)?ea.fp.SplashControls:ea.fp.MidHigh,useServerFilterCover:(0,eI.Sb)(),abtestData:y}),(0,c.jsx)(ny,{awemeInfo:f,isActive:n,isUseOneCheck:W,playPrevFunc:A,playNextFunc:h,deleteCurrentSwiper:w}),(0,c.jsx)(nb,{isActive:n,abtestData:y,awemeInfo:f}),(0,c.jsx)(nS,{isActive:n}),!(0,l8.GP)(f)&&(0,c.jsx)(r2,{awemeInfo:f,userInfo:R,isActive:n,isNext:r,isPrev:a,logParams:S,isClientMiniWin:!1}),(0,c.jsx)(a3,{isActive:n,awemeInfo:f,abtestData:y,userInfo:R}),(0,c.jsx)(dT,{isActive:n,awemeInfo:f,abtestData:y,userInfo:R,deleteCurrentSwiper:w,config:ef,scene:ea.lT.Recommend,isNext:r,currentIndex:s}),(0,c.jsx)(dD,{isActive:n,abtestData:y}),(null==f?void 0:f.awemeType)===_.e.Note?(0,c.jsx)(ev,{isActive:n,awemeInfo:f,abTestData:y,logParams:S,playNextFunc:h,playPrevFunc:A,isClientMiniWin:!1,ablePlayPrev:!((P||M)&&!g),ablePlayNext:!((P||M)&&!p),disableShortCut:ei,isShowSideBar:Y}):null,j,(0,c.jsx)(dV,{isActive:n,awemeInfo:f,abTestData:y}),(0,c.jsx)(dO,{isActive:n,controlHeight:ea.fp.MidHigh,position:"bottom",awemeInfo:f,children:(0,c.jsxs)("div",{className:l$.splashAdComponent,children:[eh&&(0,c.jsx)(cD,{scene:"player",awemeInfo:f}),(0,c.jsx)(s3,{className:l$.videoInfo,hideMixNextBtn:!0,isActive:n,awemeInfo:f,userInfo:R,isMainland:er,scene:ea.lT.Recommend,isTopicLinkSearchResult:!0,videoHashtagClassName:D,videoTags:F||[],abTestData:y,isShowCreateTime:!0,canMixListen:!W,isInnerFeed:W,showGuideDownloadClient:!1,loginUserInfo:R,loginDispatch:N,fullScreenTarget:E,reportExtraParams:S,handleMobileSiteClick:ex,onCooperationAuthorClick:ex,isShowCooperation:K,showSideBar:Y,isShowBrandComponent:eu,onBrandComponentHide:()=>{es(!1)},onBrandComponentShow:()=>{es(!0)},oneLineWarginig:!0})]})}),n&&(0,c.jsx)(ce,{}),eo&&n&&!(null==y?void 0:y.mergeOptimization)&&(0,c.jsx)(co,{sideCardContext:eo,awemeInfo:f,needVideo:(null==ew?void 0:ew.open_current_tab)===1&&(null==ew?void 0:ew.save_video)===1,needState:(null==ew?void 0:ew.open_current_tab)===1&&(null==ew?void 0:ew.save_video)===1&&(null==ew?void 0:ew.save_status)===1})]})})}));var cV=i("915825"),cB=i("806904"),cO=i("36757"),cU=new eF.h({clickPreviousVideo:{eventName:"click_previous_video",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",click_from:"click_button",is_small_window:"0",play_material:"video"}},clickNextVideo:{eventName:"click_next_video",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",click_from:"click_button",is_small_window:"0",play_material:"video"}},feedRequest:{eventName:"feed_request",params:{enter_from:"",is_first:0,is_click:0,is_auto_play:0,unread_feed_nums:0}},feedRequestResponse:{eventName:"feed_request_response",params:{enter_from:"",is_first:0,video_count:0,duration:0,is_success:0,is_click:0,is_auto_play:0,live_position:-1,unread_feed_nums:0}}}),cH={RECOMMEND:"recommend",FOLLOW:"follow",FRIEND:"friend",TOPIC:"topic"};function cW(){let e=(0,j.$o)(T.LocalStorageKeys.PLAYER_NEXT_AUTOPLAY);return Number(null!=e?e:0)}let cG=Object.keys(cH).map(e=>cH[e]),cz=e=>{let{swiper:t,awemeInfoList:i,setAwemeInfoList:l,swiperCallBack:o,fetchSlideList:n,fromTab:r,lastItemCb:a,abTestData:d={},initialRecommendAwemeList:u,initialRecommendAwemeListPromise:s,maxLimit:c}=e,f=(0,v.useRef)(!1);(0,v.useRef)(!1);let m=(0,v.useRef)([]),p=(0,v.useRef)(!1),g=(0,v.useRef)(0),h=(0,v.useCallback)((e,t)=>{let i=[];for(let l=0;l<t.length;l++)!e.find(e=>{var i,o,n,r,a,d;return(null==e?void 0:e.awemeType)!==_.e.LiveCard?(null==e?void 0:e.awemeId)===(null===(i=t[l])||void 0===i?void 0:i.awemeId):(null==e?void 0:null===(n=e.cellRoom)||void 0===n?void 0:null===(o=n.rawdata)||void 0===o?void 0:o.id_str)===(null===(d=t[l])||void 0===d?void 0:null===(a=d.cellRoom)||void 0===a?void 0:null===(r=a.rawdata)||void 0===r?void 0:r.id_str)})&&i.push(t[l]);return i},[]),y=(0,v.useCallback)(async()=>{f.current=!0;let e=0;cG.includes(r)&&(e=new Date().getTime(),cU.sendLog("feedRequest",{enter_from:(0,t6.yW)(),is_first:0,is_click:0,is_auto_play:cW(),unread_feed_nums:(null==i?void 0:i.length)-(null==t?void 0:t.activeIndex)}));let o=await n({mode:"loadmore"});if(cG.includes(r)){var a;cU.sendLog("feedRequestResponse",{enter_from:(0,t6.yW)(),is_first:0,video_count:null===(a=o.data)||void 0===a?void 0:a.length,duration:new Date().getTime()-e,is_success:0===o.statusCode?1:0,is_click:0,is_auto_play:cW(),unread_feed_nums:(null==i?void 0:i.length)-(null==t?void 0:t.activeIndex)})}0===o.statusCode?(g.current=0,l(e=>{let i=h(e,o.data),l=[...e,...i];if(c)for(let e=0;e<l.length;e++)if(e<(null==t?void 0:t.activeIndex)-c)l[e]=!1;else break;return f.current=!1,l})):f.current=!1},[n,h,t,c,l]),w=(0,v.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=Object.assign({},null==d?void 0:d.loadMore,null==d?void 0:d.loadMoreServer),o="recommend"===(0,t6.yW)()&&(null==l?void 0:l.defaultCount)||4;if(e||Math.abs((null==t?void 0:t.activeIndex)-i.length)<=o&&!f.current){if(f.current=!0,"recommend"!==(0,t6.yW)())(0,cB.l)(y,{timeout:3e3});else if(null==d?void 0:d.loadIdlecallbackDelay){var n;(0,cB.l)(y,{timeout:null!==(n=null==d?void 0:d.loadIdlecallbackDelay)&&void 0!==n?n:3e3})}else y()}},[t,i,d,y]);(0,v.useEffect)(()=>{let e=Object.assign({},null==d?void 0:d.loadMore,null==d?void 0:d.loadMoreServer),l=null==e?void 0:e.bufferEmitCount;if((null==e?void 0:e.bufferEmit)&&l){let e=eg.listen(eg.EVENT.bufferedLoadMore,()=>{Math.abs((null==t?void 0:t.activeIndex)-i.length)<=l&&!f.current&&y()});return()=>{null==e||e()}}},[t,y,i.length,d]);let I=(0,v.useCallback)(e=>{let i="number"==typeof e?e:t.activeIndex;l(e=>e.slice(0,i).concat(e.slice(i+1))),w()},[t,w]);(0,es.o)(()=>eg.listen(eg.EVENT.firstLoadMore,w),[w]);let C=(0,v.useCallback)(function(e,t){let{isFirst:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!i)null==o||o("prev"),e&&"click_button"!==e&&eg.emit(eg.EVENT.reportPlayPrev,{clickFrom:e})},[o]),b=(0,v.useCallback)(function(e,t){let{isLast:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(w(),i){null==a||a();return}let l=x.Le.getConfig(x.gI.VideoFeedList),n=(null==l?void 0:l.autoPlayCount)||1;"auto"===e?x.Le.setConfig(x.gI.VideoFeedList,{autoPlayCount:n+1}):null==o||o("next"),e&&"click_button"!==e&&eg.emit(eg.EVENT.reportPlayNext,{clickFrom:e})},[w,a,o]),E=(0,v.useCallback)(e=>{var l,o;if((null==t?void 0:t.destroyed)||!t)return;let{from:n}=e||{};x.Le.setConfig(x.gI.FeedBackInfo,{activeIndex:null!==(o=t.activeIndex+1)&&void 0!==o?o:-1}),b(n,i[t.activeIndex],{isLast:t.activeIndex===i.length-1}),null===(l=t.slideNext)||void 0===l||l.call(t)},[t,i,b]),S=(0,v.useCallback)(e=>{var l,o;if(!t||t.destroyed)return;x.Le.setConfig(x.gI.FeedBackInfo,{activeIndex:(o=t.activeIndex-1,o)});let{from:n}=e||{};C(n,i[t.activeIndex],{isFirst:0===t.activeIndex}),null===(l=t.slidePrev)||void 0===l||l.call(t)},[t,i,C]),k=(0,v.useCallback)(()=>{w(!0)},[w]);(0,v.useEffect)(()=>{(async()=>{var e,t,i;if(null==u?void 0:u.length)return;if(s instanceof Promise){let t=await s;if(null==t?void 0:null===(e=t.recommendAwemeList)||void 0===e?void 0:e.length){l(t.recommendAwemeList);return}}let o=(0,cO.getCookiesItem)(T.CookieKeys.DebugVids);if(o)try{let e=JSON.parse(o||"[]");if(!(null==e?void 0:e.length))return;let t=await (0,r$.c7)({itemIds:e,originType:a5.F.MobileSlideList,from:"useBasicSlideFunc.tsx"});l((null==t?void 0:t.detail)||[]);return}catch(e){}let a=0;cG.includes(r)&&(a=new Date().getTime(),cU.sendLog("feedRequest",{enter_from:(0,t6.yW)(),is_first:1,is_click:0,is_auto_play:cW()})),f.current=!0;let d=await n({mode:"refresh"});f.current=!1,cG.includes(r)&&cU.sendLog("feedRequestResponse",{enter_from:(0,t6.yW)(),is_first:1,video_count:null===(t=d.data)||void 0===t?void 0:t.length,duration:new Date().getTime()-a,is_success:0===d.statusCode?1:0,is_click:0,is_auto_play:cW(),live_position:null==d?void 0:null===(i=d.data)||void 0===i?void 0:i.findIndex(e=>(null==e?void 0:e.awemeType)===101)}),0===d.statusCode&&d.data&&l(e=>[...e||[],...h(e,d.data)||[]])})()},[u,s]),(0,es.o)(()=>{let e=eg.listen(eg.EVENT.wallPaperInsert,e=>{let t=(0,j.$o)(T.LocalStorageKeys.WallPaper);if((null==t?!void 0:!t.disappear)&&((null==t?!void 0:!t.timetamp)||new Date(Date.now()).toDateString()!==new Date(null==t?void 0:t.timetamp).toDateString()))l(t=>{var i;let l=t.findIndex(t=>t.awemeId===e);return l>-1&&(null===(i=m.current)||void 0===i?void 0:i.length)&&!p.current?(p.current=!0,(0,j.qQ)(T.LocalStorageKeys.WallPaper,{timetamp:Date.now()}),t.slice(0,l+1).concat(m.current,t.slice(l+1))):t})});return()=>{null==e||e()}},[]),(0,v.useEffect)(()=>{var e;let t=null!==(e=x.Le.getConfig(x.gI.CheckAwemeList))&&void 0!==e?e:[],l=i.filter(e=>e.awemeType!==_.e.LiveCard);if(l.length>0){if(0===t.length){let e=l.map(e=>({vid:e.awemeId,time:Date.now(),dy_q:Number(e.dyQ),tag:e.isAds?2:0}));x.Le.setConfig(x.gI.CheckAwemeList,e)}if(t.length>0){let e=t[t.length-1],i=l.findIndex(t=>t.awemeId===e.vid),o=l.slice(i+1).map(e=>({vid:e.awemeId,time:Date.now(),dy_q:Number(e.dyQ),tag:e.isAds?2:0}));x.Le.setConfig(x.gI.CheckAwemeList,t.concat(o))}}},[i]),(0,v.useEffect)(()=>{if(t){let e=-1,l=()=>{-1!==e&&(t.activeIndex>e?b:C)("drag",i[t.activeIndex])},o=()=>{e=t.activeIndex,t.once("slideChange",l)},n=()=>{setTimeout(()=>e=-1),(0,x.Vv)(eV.CJ.drag)},r=()=>{t.once("touchMove",o)};try{t.on("touchStart",r),t.on("touchEnd",n)}catch(e){}return()=>{try{t.off("touchMove",o),t.off("touchEnd",n),t.off("touchStart",r)}catch(e){}}}},[t,i]);let L=(0,v.useMemo)(()=>{let e={};return((null==d?void 0:d.preloadCountApplySideServer)==="both"||(0,D.DT)()&&(null==d?void 0:d.preloadCountApplySideServer)==="client"||!(0,D.DT)()&&(null==d?void 0:d.preloadCountApplySideServer)==="web")&&(e=null==d?void 0:d.preloadCountServer),Object.assign({},null==d?void 0:d.preloadCount,e)},[d]);return(0,v.useEffect)(()=>{if(t){if(0===t.activeIndex){let e=i.slice(1,2).filter(e=>!(0,l8.Ni)(e));x.Le.setConfig(x.gI.PreloadList,e)}let e=()=>{if(null==L?void 0:L.open){let e=t.activeIndex+2,l=(null==L?void 0:L.count)||1,o=i.slice(e).filter(e=>(null==e?void 0:e.awemeType)===_.e.Normal&&!(0,l8.Ni)(e)).slice(0,l);x.Le.setConfig(x.gI.PreloadList,o)}else{let e=i.slice(t.activeIndex+1,t.activeIndex+3).filter(e=>!(0,l8.Ni)(e));x.Le.setConfig(x.gI.PreloadList,e)}};try{t.on("slideChange",e)}catch(e){}return()=>{try{t.off("slideChange",e)}catch(e){}}}},[t,i,L]),(0,v.useEffect)(()=>{if(t&&(null==i?void 0:i.length)===0)try{t.slideTo(0,0)}catch(e){}},[t,i]),{deleteCurrentSwiper:I,nextPageFunc:E,lastPageFunc:S,retryFunc:k}},cZ=e=>{let{awemeInfoList:t,setAwemeInfoList:i}=e;(0,v.useEffect)(()=>{let e=eg.listen(eg.EVENT.checkSafeAwemeList,e=>{i(t.filter(t=>!e.includes(t.awemeId)))});return()=>e()},[t])};var cq=i("570269");let c$=e=>{let{containerEl:t,nextSwiperHeaderHeight:i,cardBetween:l,upperSpace:o}=e,n=(0,t5.U)(i)?0:100*i,r=(0,t5.U)(i)?i:0,a=t?(0,t5.U)(l)?0:100*l:0,d=(0,t5.U)(l)?l:t?0:24,u=(0,t5.U)(o)?0:100*o,s=(0,t5.U)(o)?o:0,c=`calc(${100-n-a-u}% - ${s+d+r}px)`,v=`calc(${u}% + ${s}px)`;return{swiperHeight:c,calcUpperSpace:v,calSpaceBetween:d||a/100*(null==t?void 0:t.offsetHeight),spacePixelSum:s+d+r}};var cK="jIx59Ir7",cY="IHBG8rLV",cQ="tsYdrcfy",cJ="wmr5pyMR",cX="FvMIh1Wh",c0=new eF.h({feedRequest:{eventName:"feed_request",params:{enter_from:"",is_first:0,is_click:0,is_auto_play:0,unread_feed_nums:0}},feedRequestResponse:{eventName:"feed_request_response",params:{enter_from:"",is_first:0,video_count:0,duration:0,is_success:0,is_click:0,is_auto_play:0,unread_feed_nums:0}},cssDroped:{eventName:"css_droped",params:{enter_from:""}},protobufParse:{eventName:"protobuf_parse",params:{path:"",duration:0,is_success:0}},protobufPackParse:{eventName:"protobuf_pack_parse",params:{duration:0}},protobufFeedRequest:{eventName:"protobu_feed_request",params:{duration:0,path:"",is_pb:!1}}}),c1=i("249782"),c2=function(e){var t,i;let{className:l,swiperClassName:o,abTestData:n={},cardBetween:r=lH,upperSpace:a=lW,nextSwiperHeaderHeight:d=lU,children:u,onSwiper:s,style:f={},swiperStyle:p={},isDefaultShowSideBar:_,customTop:g,data:h,scene:w,defaultCssFullScreen:I,initIndex:C,useWheelListener:E=!0,splashAdStatus:S,collectionFolderInfo:k,isVideoSupportMP4:T,pagingSpeed:A}=e,R=(0,v.useRef)(null),N=(0,v.useRef)(!1),[P,M]=(0,v.useState)(null),[j,D]=(0,v.useState)(null),[F,V]=(0,v.useState)(),[B,O]=(0,v.useState)(),[U,H]=(0,v.useState)(!1),[W,z]=(0,v.useState)(_),[Z,$]=(0,v.useState)(),[K,Y]=(0,v.useState)((0,ey.r)()),[Q,J]=(0,v.useState)(I),[X,ee]=(0,v.useState)(!1),[et,ei]=(0,v.useState)(!1),[el,eo]=(0,v.useState)(K),[en,er]=(0,v.useState)(eu.L.Author),ed=(0,v.useRef)(""),ec=(0,v.useRef)();R.current=j;let ev=()=>{var e;null===(e=R.current)||void 0===e||e.update()},{awemeFeed:ef}=tx();(0,v.useEffect)(()=>{z(_)},[_]);let em=(0,v.useRef)(null),ep=(0,v.useRef)(null),e_=(0,v.useCallback)(e=>{L.F.info({text:e},em.current)},[]);(0,v.useEffect)(()=>{let e=()=>{(0,ey.r)()?(eo(!0),(0,v.startTransition)(()=>{Y(!0)})):(eo(!1),Y(!1))};return document.addEventListener("fullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("msfullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("msfullscreenchange",e),x.Le.setConfig(x.gI.SlideStartTime,{slideStartTime:0})}},[]),(0,es.o)(()=>{let e=eg.listen(eg.EVENT.changeMinWindows,e=>{let{isMiniWin:t}=e;if(!(tB.s.getPlayersByScene(ea.lT.Modal).length>0)||w===lB.Modal)t&&(ed.current=document.body.style.minWidth),document.body.style.minWidth=t?"auto":ed.current,document.body.style.overflow=t?"hidden":"",N.current=!0,ee(t)});return()=>e()},[]);let[eh,ew]=(0,v.useState)(Q);(0,v.useEffect)(()=>{let e=eg.listen(eg.EVENT.pageFullScreen,e=>{let{fullScreen:t,fromAuthorCard:i}=e;0===tB.s.getPlayersByScene(ea.lT.Modal).length&&(J(e=>null!=t?t:!e),ew(e=>!e&&t&&i?e:null!=t?t:!e))});return()=>{null==e||e()}},[]),(0,v.useEffect)(()=>{let e=setTimeout(()=>{try{let e=(0,ik.t)();e instanceof Element&&"flex"!==getComputedStyle(e).display&&(lQ.oe.event.error({name:lQ.Mo.CssDroped}),c0.sendLog("cssDroped",{enter_from:(0,t6.yW)()}))}catch(e){}},5e3);return()=>{clearTimeout(e)}},[]);let ex=(0,v.useRef)(0);(0,v.useEffect)(()=>{if(j){let e=()=>{eg.emit(eg.EVENT.tabContainerScroll,{tab:"recommend",scrollType:j.activeIndex>ex.current?"down":"up"}),ex.current=j.activeIndex};return j.on("slideChange",e),()=>{j.off("slideChange",e)}}},[j]),(0,v.useEffect)(()=>{if(P){let e=ne.Z.bind(P,ev);return()=>{e&&(null==e||e())}}},[P]),(0,v.useEffect)(()=>{if(j){let e=x.Le.getConfig(x.gI.GlobalSwiper);return x.Le.setConfig(x.gI.GlobalSwiper,j),()=>{x.Le.setConfig(x.gI.GlobalSwiper,e)}}},[j]);let eI=X||K||el||eh,eC=(0,v.useMemo)(()=>{let e=d;return et&&(e-=30),{nextSwiperHeaderHeightIn:e>=0?e:0,cardBetweenIn:r,upperSpaceIn:a}},[et,d,r,a]),eb=(0,v.useMemo)(()=>{let{nextSwiperHeaderHeightIn:e,cardBetweenIn:t,upperSpaceIn:i}=eC,{calcUpperSpace:l,calSpaceBetween:o,swiperHeight:n}=c$({containerEl:P,nextSwiperHeaderHeight:e,cardBetween:t,upperSpace:i});return setTimeout(()=>null==j?void 0:j.update()),{upperSpace:eI?0:l,swiperHeight:eI||S===y.QB.Fullscreen?"100%":n,spaceBetween:eI?0:o}},[eC,P,eI,S]),eE=(0,v.useRef)(new Set),eS=(0,v.useMemo)(()=>({globalIsCommentShow:F,setIsCommentShowFunc:V,globalIsCommentTrayPushGuideShow:B,setIsCommentTrayPushGuideShowFunc:O,globalCommentTrayPushGuideType:U,setCommentTrayPushGuideTypeFunc:H,globalIsRelatedShow:Z,setIsRelatedShowFunc:$,globalIsSideBarShow:W,setIsSideBarShowFunc:z,setTargetVideoRef:e=>{ep.current=e.current},swiper:j,isFullScreen:K,isCssFullScreen:Q,isClientMiniWin:X,fullScreenTarget:P,videoToast:e_,slideVideoTab:en,setSlideVideoTab:er,dislikeIdList:eE.current,collectionFolderInfo:k}),[F,Z,W,j,K,Q,X,P,e_,en,B,U,k]),ek=(0,nw.U)(),eT=(0,v.useMemo)(()=>({position:"absolute",left:0,top:g||eb.upperSpace}),[g,eb]),eL=eI?0:null!==(t=null==p?void 0:p.paddingLeft)&&void 0!==t?t:30,eA=eI?0:null!==(i=null==p?void 0:p.paddingRight)&&void 0!==i?i:60,eR=S===y.QB.Fullscreen?`calc(100% + ${eA}px)`:"100%",eN=(0,v.useCallback)(()=>{if(window.nextPlayer){var e;let t=null===(e=window)||void 0===e?void 0:e.nextPlayer,i=null==t?void 0:t.buffered;(null==i?void 0:i.length)>0?t.bufferedBeforeActive=1e3*i.end(0):t.bufferedBeforeActive=0,t.loadstartBeforeActive=(null==t?void 0:t.loadstart)?1:0,t.loadeddataBeforeActive=(null==t?void 0:t.loadeddata)?1:0}},[]),eP=(0,v.useMemo)(()=>X?"unset":w===lB.Recommend?`${455}px`:"400px",[X,w]);return v.Children.toArray(u).some(e=>{var t;return(null==e?void 0:null===(t=e.props)||void 0===t?void 0:t.slot)===lO.OCCUPATION})?(0,c.jsx)(c.Fragment,{children:v.Children.toArray(u).map(e=>{var t;if((null==e?void 0:null===(t=e.props)||void 0===t?void 0:t.slot)===lO.OCCUPATION)return e})}):(0,c.jsxs)(q.C.Provider,{value:eS,children:[v.Children.toArray(u).map(e=>{var t;if((null==e?void 0:null===(t=e.props)||void 0===t?void 0:t.slot)===lO.OUTOFCONTAINER)return e}),(0,c.jsxs)("div",{id:"slidelist","data-active":ek,className:m()(cK,"slidelist",l,"fullscreen_capture_feedback",{[m()(cQ,"isCssFullScreen")]:eI,isMiniWindow:X}),ref:M,style:f,children:[v.Children.toArray(u).map(e=>{var t;if((null==e?void 0:null===(t=e.props)||void 0===t?void 0:t.slot)===lO.OUTSIDE)return e}),(0,c.jsx)(c1.t,{isDisabled:()=>!!ef.getValue("modalAwemeInfo"),onActiveIndexChange:e=>{x.Le.setConfig(x.gI.SlideStartTime,{slideStartTime:Date.now()}),cq.w.createFpsTask(e),cq.w.calculateFpsBasedOnDuration(e),eN()},direction:1,className:m()(cY,"fullscreen_capture_feedback",o,{[cX]:w===lB.Follow||S===y.QB.Fullscreen}),isVideoSupportMP4:T,style:(0,G._)((0,b._)((0,G._)((0,b._)({},eT),{width:eR,height:eb.swiperHeight,overflow:"visible"}),p),{paddingLeft:eL,paddingRight:eA,minHeight:eP}),data:h,spaceBetween:eb.spaceBetween,speed:null!=A?A:250,touchRatio:2,resistanceRatio:eI?0:.7,ref:ec,onSwiper:e=>{D(e),null==s||s(e)},slideKey:e=>{var t,i;return(null==e?void 0:e.awemeId)||(null==e?void 0:null===(i=e.cellRoom)||void 0===i?void 0:null===(t=i.rawdata)||void 0===t?void 0:t.id_str)},"data-e2e":"slideList","data-active":ek,initIndex:C,children:v.Children.toArray(u).map(e=>{var t;if([lO.INSIDE,lO.CONTAINERSTART,lO.CONTAINEREND,lO.WRAPPERSTART,lO.WRAPPEREND,lO.WRAPPERRIGHT].includes(null==e?void 0:null===(t=e.props)||void 0===t?void 0:t.slot))return e})}),(0,c.jsx)("div",{style:{marginLeft:eL,marginRight:eA},className:m()(cJ,"fullscreen_capture"),ref:em}),(0,c.jsx)("div",{id:"fullscreen_capture_feedback",children:(0,c.jsx)("div",{id:"fullscreen_capture"})}),E&&(0,c.jsx)(i$,{EventListener:j,refContainerStatus:P,isCssFullScreen:Q,isClientMiniWin:X})]})]})};let c3=e=>e.filter(e=>e.awemeType!==_.e.LiveCard).filter(e=>!e.libfinsertTaskId).filter(e=>!(0,g.Kf)(e)).filter(e=>!e.isAds);var c6=function(e){let{recommendAwemeList:t=[]}=e,i=(0,v.useMemo)(()=>c3(t),[t]),[l,o]=(0,v.useState)(i||[]),[n,r]=(0,v.useState)(null),a=(0,v.useRef)(()=>{}),d=(0,v.useRef)(null),u=(0,v.useRef)(()=>{}),s=(0,v.useContext)(I.C)||{},{modalVideoDetail:f,changeSplashAdStatus:g,splashAdStatus:S,isSplashTransitionEnd:H}=(0,v.useContext)(C.r),G=(0,v.useRef)({});lz();let{isFirstScreenFrame:z}=lD({awemeInfoList:l,abTestData:s}),Z=(0,v.useCallback)(()=>{x.Le.setConfig(x.gI.VideoFeedList,{autoPlayCount:1})},[]),q=(0,v.useCallback)(e=>{Array.isArray(e)?o(c3(e)):o(t=>c3(e(t)))},[]),{fetchSlideList:$,statusCode:K,refRefreshIndex:Q,isListError:J,setIsListError:X}=function(e){let{abTestData:t,isLogin:i,refCancelTabFeedFunc:l,retryFuncRef:o,initialRecommendAwemeList:n,initialRecommendAwemeListPromise:r}=e,[a,d]=(0,v.useState)(0),[u,s]=(0,v.useState)(!1),c=(0,v.useRef)((null==n?void 0:n.length)?2:1),f=(0,v.useRef)([]),m=(0,v.useRef)(""),{isMainland:p}=(0,v.useContext)(V.ko),g=(0,v.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;c.current=e},[]);return{fetchSlideList:(0,v.useCallback)(async e=>{var t,n,r,u,v,g,h,y;let I={},{mode:C,pull_type:S,refresh_type:V}=e,H=E.parse((0,A.ht)()),G=(null===(t=x.Le.getConfig(x.gI.FreeAdStatus))||void 0===t?void 0:t.status)||0,z=x.Le.getConfig(x.gI.RecommendReqCount)||0,Z=(0,D.DT)(),q=8===S,$={refreshIndex:q?1:R.B.prefetchFromClientUsed?++c.current:c.current++,count:q?1:10,tagId:"",cancelCb:l,awemePcRecRawData:{},globalwid:null===(n=(0,N.Es)())||void 0===n?void 0:n.globalwid,pullType:S||("loadmore"===C?2:0),refresh_type:V,minWindow:x.Le.getConfig(x.gI.IsMiniWin)||!1,plugBlock:(null===(r=x.Le.getConfig(x.gI.AdBlock))||void 0===r?void 0:r.needFilterAd)||!1,launchLiveFilters:null==f?void 0:f.current,freeRight:Number(1===G||2===G),useProtobuf:!1,usePassThrough:!1,viewCount:z},K=x.Le.getConfig(x.gI.AwemePcRecRawData)||{},Y={};Y=U(),K.newVideoPrefer=Y;let Q=W();K.is_client=(0,D.DT)(),K.ff_danmaku_status=1,K.danmaku_switch_status=0,K.is_dash_user=P.Q.getItem({sKey:T.CookieKeys.isDashUser})||0,K=(0,b._)({},K,Q),$.awemePcRecRawData=K,$.awemePcRecRawData.related_recommend=1,P.Q.getItem({sKey:T.CookieKeys.RechargeFlag})&&i?$.awemePcRecRawData.top_up_user=1:$.awemePcRecRawData.top_up_user=void 0,Z&&($.awemePcRecRawData.min_window=$.minWindow?1:0),!p&&!(null===(u=navigator)||void 0===u?void 0:u.language.startsWith("zh"))&&($.needTranslation=1),I=await (0,B.NN)($),x.Le.setConfig(x.gI.AwemePcRecRawData,{videoPrefer:{fsn:[],like:[],halfMin:[],min:[]},seo_info:document.referrer,ug_info:(0,A.Rs)("ug_source")});let{statusCode:J,hasMore:X,awemeList:ee=[],logPb:et}=I;if(0===ee.length?(O.sendLog("feedServerError",{status_code:a,log_id:et,refresh_index:c.current}),J!==w.ERROR_CODE.ERROR_CANCEL&&s(!0)):(!q&&x.Le.setConfig(x.gI.RecommendReqCount,z+ee.length),s(!1)),J===w.ERROR_CODE.ERROR_CANCEL)return{cancel:!0};d(J);let ei=(0,F._)(ee,i);if("refresh"===C&&H.vid&&H.vid!==(null===(v=ee[0])||void 0===v?void 0:v.awemeId)&&(L.F.info("视频无法查看,请浏览其他精彩内容"),(0,A.U$)(["vid","previous_page"])),m.current=et,(null==ei?void 0:ei.length)<3&&"refresh"===C&&!(0,M.B)()&&(null===(g=o.current)||void 0===g||g.call(o)),1===$.refreshIndex&&H.live_insert_type){let e=[];null==ei||ei.forEach(t=>{var i,l,o,n;(null==t?void 0:t.awemeType)===_.e.LiveCard&&(null==t?void 0:null===(l=t.cellRoom)||void 0===l?void 0:null===(i=l.rawdata)||void 0===i?void 0:i.id_str)&&e.push(null==t?void 0:null===(n=t.cellRoom)||void 0===n?void 0:null===(o=n.rawdata)||void 0===o?void 0:o.id_str)});let t=(0,j.$o)(T.LocalStorageKeys.LiveLandingIds),i=k()().format("YYYYMMDD");(null==t?void 0:t.date)===i?(0,j.qQ)(T.LocalStorageKeys.LiveLandingIds,{date:null==t?void 0:t.date,ids:(h=[...null===(y=t.ids)||void 0===y?void 0:y.split(","),...e],h.join(","))}):(0,j.qQ)(T.LocalStorageKeys.LiveLandingIds,{date:i,ids:null==e?void 0:e.join(",")}),(0,A.U$)(["live_insert_type"])}return{statusCode:J,hasMore:X,data:ei,logPb:et}},[t,i]),statusCode:a,refRefreshIndex:c,isListError:u,setIsListError:s,setRefreshIndex:g}}({abTestData:s,isLogin:!1,refCancelTabFeedFunc:a,retryFuncRef:u,initialRecommendAwemeList:i}),{nextPageFunc:ee,lastPageFunc:et,retryFunc:ei}=cz({swiper:n,awemeInfoList:l,setAwemeInfoList:q,fetchSlideList:$,swiperCallBack:Z,fromTab:cH.RECOMMEND,abTestData:s,initialRecommendAwemeList:i}),el=(0,v.useRef)(ee);el.current=ee;let eo=(0,v.useRef)(0);(0,v.useEffect)(()=>{l.length<=3&&eo.current<10&&(el.current(),eo.current+=1)},[l]),cZ({awemeInfoList:l,setAwemeInfoList:q});let en=(0,v.useCallback)(()=>null,[]),er=(0,v.useMemo)(()=>({paddingLeft:0,paddingRight:0}),[!1]),ea=(0,v.useMemo)(()=>({cardBetween:0,upperSpace:0,nextSwiperHeaderHeight:0}),[!1]),{isFullscreen:ed}=(0,h.O)();return(0,c.jsxs)(c2,{onSwiper:r,abTestData:s,isDefaultShowSideBar:!1,swiperStyle:er,cardBetween:ea.cardBetween,upperSpace:ea.upperSpace,nextSwiperHeaderHeight:ea.nextSwiperHeaderHeight,data:l,scene:lB.Recommend,splashAdStatus:S,useWheelListener:S===y.QB.Normal,className:m()(lG.mobileSlideList,{[lG.border]:!1,mobileBorder:!1}),children:[(0,c.jsx)(cV.o,{"data-e2e":"feed-item",className:m()(lG.swiperItem,"page-recommend-container",{[lG.noSelect]:!!(null==s?void 0:s.shitCardCss),[lG.xgControlsNew]:(null==s?void 0:s.newControl)===1,[lG.xgControlsNewV2]:(null==s?void 0:s.newControl)===2}),slot:lO.INSIDE,children:e=>{let{slideData:t,activeIndex:i,currentIndex:o}=e;if(!(t&&1>=Math.abs(i-o)))return null;{let e=i===o,r=null==t?void 0:t.awemeId;return e&&!G.current[r]&&(G.current[r]=!0,x.Le.setConfig(x.gI.FeedLatestViewedAweme,{awemeId:r})),(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(p.NoSSR,{children:(0,c.jsx)(lj,{InnerPlayer:cF,videoRef:d,className:m()(lG.content),isFullScreen:ed,item:t,deleteCurrentSwiper:en,playNextFunc:ee,playPrevFunc:et,isActive:e,isFirst:0===o,isNext:i+1===o,isPrev:i-1===o,isLast:o===l.length-1,index:o,from:Y.recommend,tab:Y.recommend,swiper:n,isClientMiniWin:!1,splashAdStatus:S,changeSplashAdStatus:g,hideSidebarSwitch:!0})})})}}}),0===l.length&&K!==w.ERROR_CODE.ERROR_NO_NETWORK&&(0,c.jsx)(e7,{className:lG.loading,text:"加载中",slot:lO.INSIDE}),z&&(0,c.jsx)(lZ,{slot:lO.INSIDE})]})}},919783:function(e,t,i){"use strict";i.r(t);var l=i(629686),o=i(320165);i(101199);var n=i(884051),r=i(726666),a=i(351373),d=i(579511);t.default=function(e){let{landingPage:t}=e;return((0,n.useServerProps)(),"discover"===t)?(0,o.jsx)(a.default,(0,l._)({},e)):"follow"===t?(0,o.jsx)(d.default,(0,l._)({},e)):(0,o.jsx)(r.p,(0,l._)({},e))}},99471:function(e,t,i){"use strict";i.r(t);var l=i(629686);i(490629);var o=i(320165),n=i(431987),r=i.n(n),a=i(101199);let d=a.forwardRef((e,t)=>{let{data:i,className:n,loop:d,autoplay:u=!0,onLoopComplete:s,onComplete:c,onInit:v,hidden:f,rendererSettings:m,assetsPath:p}=e,_=a.useRef(),g=a.useRef(),[h,y]=a.useState(!1);return a.useEffect(()=>{if(g.current&&h&&c){let e=g.current;return null==e||e.addEventListener("complete",c),()=>{null==e||e.removeEventListener("complete",c)}}},[h,c]),a.useEffect(()=>{if(g.current&&h&&s){let e=g.current;return e.addEventListener("loopComplete",s),()=>{e.removeEventListener("loopComplete",s)}}},[h,s]),a.useEffect(()=>{if(g.current&&h&&v){let e=g.current;return null==e||e.addEventListener("DOMLoaded",v),()=>{null==e||e.removeEventListener("DOMLoaded",v)}}},[h,v]),a.useLayoutEffect(()=>{if(_.current&&r()&&!g.current){var e;g.current=null===r()||void 0===r()?void 0:null===(e=r().loadAnimation)||void 0===e?void 0:e.call(r(),{container:_.current,renderer:"svg",animationData:i,loop:d,autoplay:u,rendererSettings:(0,l._)({runExpressions:!1},m),assetsPath:p}),y(!0)}},[]),a.useEffect(()=>()=>{var e,t;null===(t=g.current)||void 0===t||null===(e=t.destroy)||void 0===e||e.call(t)},[]),a.useImperativeHandle(t,()=>({getLottieInstance:()=>g.current})),(0,o.jsx)("div",{hidden:f,ref:_,className:n})});t.default=a.memo(d)},639362:function(e,t,i){"use strict";i.d(t,{ZP:function(){return S}}),i(313036),i(490629),i(76375),i(374954),i(679308),i(302356),i(240148),i(759943),i(932651),i(228983),i(656562),i(992871),i(414931),i(14275);var l,o=i(4333),n=i.n(o),r=i(301555),a=i.n(r),d=i(183652),u=i.n(d),s=i(637240),c=i.n(s),v=i(230294),f=i.n(v);i(101199);var m="undefined"!=typeof window&&"undefined"!=typeof navigator&&"undefined"!=typeof document?navigator.userAgent:"",p=c()(m);function _(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e,t){return e(t={exports:{}},t.exports),t.exports}var h=g(function(e){function t(i){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports});_(h);var y=g(function(e){var t=h.default;function i(){e.exports=i=function(){return o},e.exports.__esModule=!0,e.exports.default=e.exports;var l,o={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,i){e[t]=i.value},d="function"==typeof Symbol?Symbol:{},u=d.iterator||"@@iterator",s=d.asyncIterator||"@@asyncIterator",c=d.toStringTag||"@@toStringTag";function v(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{v({},"")}catch(e){v=function(e,t,i){return e[t]=i}}function f(e,t,i,o){var n=Object.create((t&&t.prototype instanceof y?t:y).prototype);return a(n,"_invoke",{value:function(e,t,i){var o=p;return function(n,r){if(o===_)throw Error("Generator is already running");if(o===g){if("throw"===n)throw r;return{value:l,done:!0}}for(i.method=n,i.arg=r;;){var a=i.delegate;if(a){var d=function e(t,i){var o=i.method,n=t.iterator[o];if(n===l)return i.delegate=null,"throw"===o&&t.iterator.return&&(i.method="return",i.arg=l,e(t,i),"throw"===i.method)||"return"!==o&&(i.method="throw",i.arg=TypeError("The iterator does not provide a '"+o+"' method")),h;var r=m(n,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,h;var a=r.arg;return a?a.done?(i[t.resultName]=a.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=l),i.delegate=null,h):a:(i.method="throw",i.arg=TypeError("iterator result is not an object"),i.delegate=null,h)}(a,i);if(d){if(d===h)continue;return d}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===p)throw o=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=_;var u=m(e,t,i);if("normal"===u.type){if(o=i.done?g:"suspendedYield",u.arg===h)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(o=g,i.method="throw",i.arg=u.arg)}}}(e,i,new A(o||[]))}),n}function m(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}o.wrap=f;var p="suspendedStart",_="executing",g="completed",h={};function y(){}function w(){}function x(){}var I={};v(I,u,function(){return this});var C=Object.getPrototypeOf,b=C&&C(C(R([])));b&&b!==n&&r.call(b,u)&&(I=b);var E=x.prototype=y.prototype=Object.create(I);function S(e){["next","throw","return"].forEach(function(t){v(e,t,function(e){return this._invoke(t,e)})})}function k(e,i){var l;a(this,"_invoke",{value:function(o,n){function a(){return new i(function(l,a){!function l(o,n,a,d){var u=m(e[o],e,n);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==t(c)&&r.call(c,"__await")?i.resolve(c.__await).then(function(e){l("next",e,a,d)},function(e){l("throw",e,a,d)}):i.resolve(c).then(function(e){s.value=e,a(s)},function(e){return l("throw",e,a,d)})}d(u.arg)}(o,n,l,a)})}return l=l?l.then(a,a):a()}})}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function R(e){if(e||""===e){var i=e[u];if(i)return i.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,n=function t(){for(;++o<e.length;)if(r.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=l,t.done=!0,t};return n.next=n}}throw TypeError(t(e)+" is not iterable")}return w.prototype=x,a(E,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:w,configurable:!0}),w.displayName=v(x,c,"GeneratorFunction"),o.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,v(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},o.awrap=function(e){return{__await:e}},S(k.prototype),v(k.prototype,s,function(){return this}),o.AsyncIterator=k,o.async=function(e,t,i,l,n){void 0===n&&(n=Promise);var r=new k(f(e,t,i,l),n);return o.isGeneratorFunction(t)?r:r.next().then(function(e){return e.done?e.value:r.next()})},S(E),v(E,c,"Generator"),v(E,u,function(){return this}),v(E,"toString",function(){return"[object Generator]"}),o.keys=function(e){var t=Object(e),i=[];for(var l in t)i.push(l);return i.reverse(),function e(){for(;i.length;){var l=i.pop();if(l in t)return e.value=l,e.done=!1,e}return e.done=!0,e}},o.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach(L),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=l)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(i,o){return a.type="throw",a.arg=e,t.next=i,o&&(t.method="next",t.arg=l),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o],a=n.completion;if("root"===n.tryLoc)return i("end");if(n.tryLoc<=this.prev){var d=r.call(n,"catchLoc"),u=r.call(n,"finallyLoc");if(d&&u){if(this.prev<n.catchLoc)return i(n.catchLoc,!0);if(this.prev<n.finallyLoc)return i(n.finallyLoc)}else if(d){if(this.prev<n.catchLoc)return i(n.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return i(n.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var l=this.tryEntries[i];if(l.tryLoc<=this.prev&&r.call(l,"finallyLoc")&&this.prev<l.finallyLoc){var o=l;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var n=o?o.completion:{};return n.type=e,n.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(n)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),L(i),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var l=i.completion;if("throw"===l.type){var o=l.arg;L(i)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:R(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=l),h}},o}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports});_(y);var w=y();try{regeneratorRuntime=w}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=w:Function("r","regeneratorRuntime = r")(w)}function x(e,t,i,l){return new(i||(i=Promise))(function(o,n){function r(e){try{d(l.next(e))}catch(e){n(e)}}function a(e){try{d(l.throw(e))}catch(e){n(e)}}function d(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}d((l=l.apply(e,t||[])).next())})}var I=function(e){(t=document.createElement("textArea")).value=e,document.body.appendChild(t),navigator.userAgent.match(/ipad|iphone/i)&&((i=document.createRange()).selectNodeContents(t),(l=window.getSelection()).removeAllRanges(),l.addRange(i),t.setSelectionRange(0,999999)),t.select();var t,i,l,o=document.execCommand("copy");return document.body.removeChild(t),o},C=function(e){return new Promise(function(t){setTimeout(function(){null==e||e(),t(void 0)},0)})},b=function(e){return x(void 0,void 0,void 0,w.mark(function t(){var i,l,o,n,r;return w.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.content,l=e.debug,o=e.useSetTimeout,n=!1,r=function(){if(i)try{f()(i,{message:null,debug:l}),n=!0}catch(e){try{n=I(i)}catch(e){n=!1}}},!o){t.next=8;break}return t.next=6,C(r);case 6:t.next=9;break;case 8:r();case 9:return t.abrupt("return",n);case 10:case"end":return t.stop()}},t)}))};var E=Number(p.os.version&&(null===(l=p.os.version)||void 0===l?void 0:l.split(".")[0]));function S(e){var t=e.link,i=e.scheme,l=e.schemeWaitTime,o=void 0===l?3e3:l,r=e.disableLinkLaunch,d=void 0!==r&&r,s=e.disableClipboard,c=void 0!==s&&s,v=e.disableLog,f=void 0!==v&&v,m=e.debug,_=void 0!==m&&m,g=e.zlinkData,h=e.timeout,y=function(e){return _&&void 0};if(!!t&&!!i){var I=0,C=function(e,i){if(!f){var l=new Image,r={sw:screen.width,sh:screen.height,link:t,scheme:e};l.src=n()("https://zlink.toutiao.com/api/click_event",r)}var s={zlink:t,zlink_click_time:Date.now()};g&&(s.zlink_data=g);var v=n()(e,s),m=n()(t,{scheme:v}),C=function(){setTimeout(function(){if(!d&&(p.os.ios&&E>=9||p.browser.weixin))y("iOS 9+, 使用 universal link 调起 :".concat(m)),window.location.href=m;else{y("使用 scheme 调起: ".concat(v)),window.location.href=v;var e=!0,t=function(){document.hidden&&(y("检测到页面隐藏"),e=!1)};document.addEventListener("visibilitychange",t),setTimeout(function(){if(e&&I>=S.length-1&&(y("未检测到页面隐藏,跳到下载: ".concat(m)),location.href=m),document.removeEventListener("visibilitychange",t),!!e)I++,i()},o||3e3)}},200)};u()({method:"POST",url:"https://zlink.toutiao.com/api/cb_e",data:{scheme:v},timeout:h||1e3}).then(function(e){var t;t={content:a()(e,"data.data"),disableClipboard:c,log:y,debug:_},x(void 0,void 0,void 0,w.mark(function e(){var i,l,o,n;return w.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.content,l=t.disableClipboard,o=t.log,n=!1,!(!l&&i&&"string"==typeof i)){e.next=13;break}return null==o||o("复制剪切板,内容:".concat(i)),null==o||o("第一次尝试写剪贴板"),e.next=7,b(t);case 7:if(n=e.sent){e.next=13;break}return null==o||o("第二次尝试写剪贴板使用setTimeout"),e.next=12,b(Object.assign(Object.assign({},t),{useSetTimeout:!0}));case 12:n=e.sent;case 13:return null==o||o(n?"写入剪切板成功":"写入剪切板失败"),e.abrupt("return",n);case 15:case"end":return e.stop()}},e)})),C()}).catch(function(e){C()})},S=Array.isArray(i)?i:[i];!function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t[i]&&C(t[i],function(){e(t,i+1)})}(S)}}var k=g(function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports});_(k);var T=g(function(e){e.exports=function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var l,o,n,r,a=[],d=!0,u=!1;try{if(n=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;d=!1}else for(;!(d=(l=n.call(i)).done)&&(a.push(l.value),a.length!==t);d=!0);}catch(e){u=!0,o=e}finally{try{if(!d&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(u)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports});_(T);var L=g(function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,l=Array(t);i<t;i++)l[i]=e[i];return l},e.exports.__esModule=!0,e.exports.default=e.exports});_(L);var A=g(function(e){e.exports=function(e,t){if(e){if("string"==typeof e)return L(e,t);var i=({}).toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?L(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports});_(A);var R=g(function(e){e.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports});_(R),_(g(function(e){e.exports=function(e,t){return k(e)||T(e,t)||A(e,t)||R()},e.exports.__esModule=!0,e.exports.default=e.exports}))},960056:function(e,t,i){"use strict";i(932651);var l=i(101199);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(e[l]=i[l])}return e}).apply(this,arguments)}let n=l.forwardRef(function(e,t){return l.createElement("svg",o({viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,ref:t},e),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.2148 9.39175C19.3131 7.82675 21.1165 7 23.1007 7C26.8794 7 30.0223 10.2782 30.0223 14.1753C30.0223 14.1755 30.0223 14.1757 30.0223 14.176C30.0225 14.1756 30.0227 14.1752 30.0229 14.1748C30.0229 14.2859 30.021 14.3701 30.0196 14.4319C30.0177 14.5169 30.0167 14.56 30.0229 14.5734C30.0086 15.3931 29.8671 16.0704 29.6157 16.9652C29.4731 17.1259 29.3406 17.4285 29.2086 17.7624C29.0003 18.0859 28.9215 18.2426 28.8014 18.5597C28.7275 18.6838 28.6508 18.8082 28.5715 18.9329C27.5275 20.5777 26.0694 22.2243 24.6208 23.6695C22.5352 25.7635 20.427 27.5014 19.5032 28.263C19.2448 28.476 19.079 28.6127 19.0323 28.6593C18.7066 28.9851 18.3808 28.9989 18.055 28.9995C18.0406 28.9998 18.026 29 18.0112 29C17.3308 29 16.9906 28.6598 16.6503 28.3196C16.6242 28.2935 16.5575 28.2384 16.4555 28.1568C15.4248 27.3969 13.1099 25.5454 10.9333 23.3118C9.26819 21.6181 7.66254 19.6741 6.78436 17.7732C6.44416 17.0928 6.0197 15.4728 6 14.5739C6.00724 14.5667 6.00612 14.5234 6.00388 14.437C6.00224 14.3737 6 14.2874 6 14.1753C6 10.2764 9.14114 7 12.9217 7C14.9023 7 16.7074 7.82675 18.2148 9.39175Z",fill:"currentColor"}))});n.elementType="Icon",t.Z=n},746332:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,l=Array(t);i<t;i++)l[i]=e[i];return l},e.exports.__esModule=!0,e.exports.default=e.exports},590821:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},304175:function(e,t,i){var l=i(746332);e.exports=function(e){if(Array.isArray(e))return l(e)},e.exports.__esModule=!0,e.exports.default=e.exports},624266:function(e){e.exports=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},212388:function(e,t,i){var l=i(458629);function o(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,l(o.key),o)}}e.exports=function(e,t,i){return t&&o(e.prototype,t),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},67344:function(e,t,i){var l=i(458629);e.exports=function(e,t,i){return(t=l(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},e.exports.__esModule=!0,e.exports.default=e.exports},726569:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},281771:function(e){e.exports=function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var l,o,n,r,a=[],d=!0,u=!1;try{if(n=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;d=!1}else for(;!(d=(l=n.call(i)).done)&&(a.push(l.value),a.length!==t);d=!0);}catch(e){u=!0,o=e}finally{try{if(!d&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(u)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},798319:function(e){e.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},918896:function(e){e.exports=function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},108560:function(e,t,i){var l=i(590821),o=i(281771),n=i(507550),r=i(798319);e.exports=function(e,t){return l(e)||o(e,t)||n(e,t)||r()},e.exports.__esModule=!0,e.exports.default=e.exports},499573:function(e,t,i){var l=i(590821),o=i(726569),n=i(507550),r=i(798319);e.exports=function(e){return l(e)||o(e)||n(e)||r()},e.exports.__esModule=!0,e.exports.default=e.exports},511062:function(e,t,i){var l=i(304175),o=i(726569),n=i(507550),r=i(918896);e.exports=function(e){return l(e)||o(e)||n(e)||r()},e.exports.__esModule=!0,e.exports.default=e.exports},326399:function(e,t,i){var l=i(321669).default;e.exports=function(e,t){if("object"!=l(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,t||"default");if("object"!=l(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},458629:function(e,t,i){var l=i(321669).default,o=i(326399);e.exports=function(e){var t=o(e,"string");return"symbol"==l(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},507550:function(e,t,i){var l=i(746332);e.exports=function(e,t){if(e){if("string"==typeof e)return l(e,t);var i=({}).toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}}]);