1 line
102 KiB
Plaintext
1 line
102 KiB
Plaintext
(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["93354"],{288578:function(e,t,l){"use strict";l.d(t,{Z:function(){return a}});var i=l("101199"),o=l("195195"),n=l.n(o),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n(),l=(0,i.useRef)(e),o=t(l.current,e);return(0,i.useEffect)(function(){!o&&(l.current=e)}),o?l.current:e},a=function(){var e=arguments[0],t=arguments[1],l=arguments[2];2==arguments.length&&(l=t,t=void 0);var o=r(l,t);(0,i.useEffect)(function(){e()},[o])}},340900:function(e){"use strict";e.exports=e=>{if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},231886:function(e){e.exports=function(e,t,l){return e==e&&(void 0!==l&&(e=e<=l?e:l),void 0!==t&&(e=e>=t?e:t)),e}},886299:function(e,t,l){var i=l(231886),o=l(724521);e.exports=function(e,t,l){return void 0===l&&(l=t,t=void 0),void 0!==l&&(l=(l=o(l))==l?l:0),void 0!==t&&(t=(t=o(t))==t?t:0),i(o(e),t,l)}},402729:function(e,t,l){"use strict";l.d(t,{J:function(){return o},K:function(){return i}}),l(679308),l(76375);let i=e=>new Promise(t=>setTimeout(t,e));async function o(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500;for(let n=0;n<l;n++)try{let l=await e();if(t(l)){await i(o);continue}return l}catch(e){await i(o);continue}throw Error(`${l} retry times failed`)}},579511:function(e,t,l){"use strict";l.r(t),l.d(t,{default:function(){return ou}});var i=l("629686"),o=l("402748"),n=l("811603");l("490629"),l("968336");var r=l("320165"),a=l("101199"),s=l("68901"),d=l("339808"),u=l("116537"),c=l("506887"),f=l("75879"),v=l.n(f),h=l("469935"),m=l.n(h),p=l("414644"),_=l("265018"),w=l("785701"),g=l("746517"),x=l("395677"),j=l("242875"),y=l("590555"),C=l("528937"),I=l("66948"),k=l("333047"),L=l("855357"),S=l("939165"),b=l("778018"),N=l("195655"),E=l("523784"),P=l("618759"),T=l("499059"),R=l("636090"),F=l("687581"),M=l("414061"),A=l("297719"),O=l("661444"),D=l("160843"),V=l("295613"),H=l("941976"),U=l("544642"),z=l("538220"),Z=l("359141");l("932651");var B=l("72430"),W=l("540129"),$=l("379745"),q=l("594942"),J=l("375209"),Y=l("995898"),K=l("249478"),G=l("335948"),X=l("889429"),Q=l("649310"),ee=l("365169"),et=l("407686"),el=l("57449"),ei=l("70864"),eo=l("755890"),en=l("713507"),er=l("388414"),ea=l("191825"),es=l("996473"),ed=l("201691"),eu=l("96296"),ec=l("587512"),ef=l("588246"),ev=l("721968"),eh=l("900203"),em=l("761059"),ep=l("198969"),e_=l("203404"),ew=l("733900"),eg=l("678817"),ex=l("951115"),ej=l("82430"),ey=l("838468"),eC=l("351105"),eI=l("817567"),ek=l("314946"),eL=l("65229"),eS=l("760574"),eb=l("103978"),eN=l("186738"),eE=l("423830"),eP=l("495455"),eT=l("977240"),eR=l("488977"),eF=l("992189"),eM=l("797618"),eA=l("140268"),eO=l("893392"),eD=l("843452"),eV=l("911750"),eH=l("484571"),eU=l("991530"),ez=l("943660"),eZ=l("674918"),eB=l("758137");l("374954");var eW=l("38578"),e$=l("48795"),eq=l("257130"),eJ=l("624508"),eY=new eJ.h({followEndPageShow:{eventName:"follow_end_page_show",params:{}},followEndPageClick:{eventName:"follow_end_page_click",params:{}}}),eK=l("948314"),eG=l("63601"),eX=l("176449");let eQ=e=>{var t,l;let{awemeInfo:i,isActive:o}=e,n=(0,eG.n)(),s=(0,eW.k)(),[d,u]=(0,a.useState)(!1),c=(0,a.useCallback)(()=>{u(!1)},[]),f=(0,a.useCallback)(()=>{s.push("/"),eY.sendLog("followEndPageClick",{})},[]);return(0,a.useEffect)(()=>{if(o){var e;if(i.lastView&&!(null===(e=i.lastView)||void 0===e?void 0:e.isAlreadyClosed))return eY.sendLog("followEndPageShow",{}),u(!0),i.lastView.isAlreadyClosed=!0,()=>{u(!1)}}},[o]),(0,a.useEffect)(()=>{if(d&&n){var e;let t=n.getPlugin("AutoPlaySettingPlugin");if(null==t?void 0:null===(e=t.config)||void 0===e?void 0:e.nextAutoPlay)return t.config.nextAutoPlay=!1,()=>{t.config.nextAutoPlay=!0}}},[d]),d&&(null==i?void 0:i.lastView)?(0,r.jsx)("div",{className:m()(eK.default.sevenDayMask),onClick:c,children:(0,r.jsxs)("div",{className:eK.default.tipWrapper,children:[(0,r.jsx)("span",{className:eK.default.tip,children:null==i?void 0:null===(t=i.lastView)||void 0===t?void 0:t.empty_msg}),(0,r.jsxs)(e$.Button,{theme:"solid",className:eK.default.button,onClick:f,children:[(0,r.jsx)(eX.Z,{src:eq.Z,viewBox:"0 0 17 12"}),(0,r.jsx)("span",{children:null==i?void 0:null===(l=i.lastView)||void 0===l?void 0:l.empty_button_msg})]})]})}):null};var e0=l("467359"),e1=l("194771"),e2=l("250195"),e3=l("342309"),e8=l("730430"),e5=l("581841"),e6=l("433766"),e4=l("626117"),e7=l("997082"),e9=l("541053"),te=l("96104"),tt=l("927435"),tl=l("794016"),ti=l("154607"),to=l("12041"),tn=l("910978"),tr=l("197399"),ta=l("631431"),ts=l("59412"),td=l("13994"),tu=l("307323"),tc=l("869066"),tf=l("766353"),tv=l("632887"),th=l("723349"),tm=l("241891"),tp=l("814129"),t_=l("137375"),tw=l("176060"),tg=l("181137"),tx=l("253149"),tj=l("94109"),ty=l("14105");l("838368"),l("225293");var tC=l("184610"),tI=l("316223"),tk=l("646451"),tL=l("992928"),tS=l("988215"),tb=l("912113"),tN=l("880323"),tE=l("874688"),tP=l("387382"),tT=l("37749"),tR=l("800513"),tF=l("281934");let tM=(0,a.forwardRef)((e,t)=>{var l,o,n,s,d,c,f,v,h,p,_,w,g,x,j,y,C,I;let{isActive:k,isNext:S,isPrev:N,isFirst:E,isLast:T,awemeInfo:R,nextAwemeInfo:F,prevAwemeInfo:M,playNextFunc:A,abtestData:O,deleteCurrentSwiper:D,toggleComment:V,onAvatarClick:H,onAiCardClick:U,fullScreenTarget:z,logParams:Z,videoToast:eW,followHandler:e$,playPrevFunc:eq,userInfo:eJ,dispatch:eY,isShowCssFullScreenGuide:eK,isAuthorCardShow:eG,children:eX,videoHashtagClassName:tM,videoTags:tA,isShowRelatedCard:tO,actionFollow:tD,actionUnFollow:tV,moreBoxShowList:tH,onActivityCardClick:tU=()=>{},onShopAnchorClick:tz=()=>{},onGameAnchorClick:tZ=()=>{},onShopAnchorMouseEnter:tB=()=>{},onShopAnchorMouseLeave:tW=()=>{},onRelatedClick:t$,LiveSliderCard:tq,showPlaySwitch:tJ=!0,shortCutFiltered:tY,positionBoxClassName:tK,isInnerFeed:tG,onCooperationAuthorClick:tX,isShowCooperation:tQ,sideBarShow:t0,slardarInstance:t1,defaultIsPageFullScreen:t2,avatarTipText:t3,onDislike:t8,index:t5,isMultiInstanceScene:t6,onDouPlusClick:t4,onSodaClick:t7,chapterProps:t9,recommendTagProps:le,canShowListenVideo:lt=!1,listenFeedPrevAwemeInfo:ll,listenFeedNextAwemeInfo:li,getAwemeInfoList:lo,aiNoteProps:ln,isShowAiCard:lr,sideCardContext:la}=e,{isMainland:ls,isWebMiniWin:ld,pipWindow:lu,supportDocumentPip:lc,isListenVideoMiniWin:lf}=(0,ee.Iq)(e=>{let{isMainland:t,isWebMiniWin:l,pipWindow:i,supportDocumentPip:o,isListenVideoMiniWin:n}=e;return{isMainland:t,isWebMiniWin:l,pipWindow:i,supportDocumentPip:o,isListenVideoMiniWin:n}}),lv=(0,Y.Nr)(location.pathname),lh=(0,a.useRef)(null),{isClientMiniWin:lm,isCssFullScreen:lp,isFullScreen:l_}=(0,a.useContext)(Q.C),{hasChapterBar:lw}=(0,tc.W)(O,R,null===(l=lh.current)||void 0===l?void 0:l.player),{infoStyle:lg,renderHighlightBar:lx,setIsHighlightBarShow:lj}=(0,tf.t)(O,R),ly=(0,P.DT)(),{noPaidVideo:lC}=(0,e4.B)({awemeInfo:R});(0,e7.u)({awemeInfo:R,player:null===(o=lh.current)||void 0===o?void 0:o.player});let lI=(0,a.useMemo)(()=>ld||lm||lf,[ld,lm,lf]),{enablePip:lk}=(0,e9.$)({abtestData:O,awemeInfo:R}),lL=(0,K.D)(R),{isDanmuIcon:lS,isChapterIcon:lb,chapterMaxWidth:lN,isAiNoteIcon:lE,hideList:lP}=(0,te.l0)({isActive:k,abtestData:O,player:null===(n=lh.current)||void 0===n?void 0:n.player,isMiniWin:lI,isInnerFeed:tG,awemeInfo:R});(0,u.C)(b.w3.components.follow_video),(0,tt._)({awemeInfo:R,prevAwemeInfo:M,isInnerFeedModel:tG&&k}),(0,a.useEffect)(()=>{var e,t;let l=null===(e=lh.current)||void 0===e?void 0:e.getPlayer();lv&&null!==l&&E&&(null===(t=l.pause)||void 0===t||t.call(l),l.config.autoplay=!1,l.autoplay=!1)},[lh.current]),(0,tL.g)({player:null==lh?void 0:null===(s=lh.current)||void 0===s?void 0:s.player,awemeInfo:R}),(0,a.useImperativeHandle)(t,()=>({getPlayer:()=>lh.current.getPlayer()}),[]),(0,tl.j)({player:null==lh?void 0:null===(d=lh.current)||void 0===d?void 0:d.player,isActive:k,abValue:O}),(0,ti.V)({awemeInfo:R}),(0,to.k)({awemeInfo:R,abtestData:O,isActive:k,shouldRender:!0}),(0,tn.D)({awemeInfo:R,isActive:k});let{isShowGuideDownload:lT}=(0,tr.m)({abtestData:O,awemeInfo:R,isActive:k,isLogin:null==eJ?void 0:eJ.isLogin,player:null===(c=lh.current)||void 0===c?void 0:c.player}),lR=(0,a.useMemo)(()=>{var e,t;let l={},i=(0,tv.YO)({abtestData:O,awemeInfo:R,isInnerFeed:tG,scene:B.lT.Follow});return Object.assign(l,(0,tu.k)({awemeInfo:R,abtestData:O,enableSr:i}),(0,th.QF)({awemeInfo:R,abtestData:O,enableSr:i})),(null==O?void 0:null===(e=O.bitratePlaylist)||void 0===e?void 0:e.enable)&&(null==l?void 0:l.BitrateSelector)&&Object.assign(l.BitrateSelector,{playlist_info:(0,tm.Um)({awemeInfo:R,awemeInfoList:null==lo?void 0:lo(!0),isInnerFeed:tG,abtestData:O,scene:B.lT.Follow}),playlist_select_bitrate:(null==O?void 0:null===(t=O.bitratePlaylist)||void 0===t?void 0:t.playlistSelectBitrate)||{}}),(0,tp.Zf)({config:l,awemeInfo:R,abtestData:O}),(0,t_.LX)({config:l,awemeInfo:R,abtestData:O,isMultiInstanceScene:t6}),l.startTime=(0,eo.v)(R.awemeId),l.pip&&(l.pip.showIcon=lk),l},[R,O,lk]),lF=(0,a.useMemo)(()=>{var e;return[...(null==tH?void 0:tH.notInterestingIcon)?[]:[null===(e=W.getShortcut().dislike)||void 0===e?void 0:e.badgeText],...tY||[]]},[null==tH?void 0:tH.notInterestingIcon,tY]);(0,ta.w)({player:null===(f=lh.current)||void 0===f?void 0:f.player,isActive:k,awemeInfo:R,abtestData:O,isInnerFeed:tG}),(0,ts.Q)({player:null===(v=lh.current)||void 0===v?void 0:v.player,isActive:k,abtestData:O,isSliderVideo:!0,isKeyWorkCancalLike:!0,awemeInfo:R,isClientMiniWin:lm,pipWindow:lu,isLogin:null==eJ?void 0:eJ.isLogin}),(0,tC.b)({isActive:k,player:null===(h=lh.current)||void 0===h?void 0:h.player}),(0,tw.P)({player:null===(p=lh.current)||void 0===p?void 0:p.player}),(0,td.U)({config:lR,isActive:k,awemeInfo:R,player:null===(_=lh.current)||void 0===_?void 0:_.player});let lM={scene:B.lT.Follow,awemeInfo:R,abtestData:O,userInfo:eJ,isMiniWin:lI,isActive:k,isInnerFeed:tG,player:null==lh?void 0:null===(w=lh.current)||void 0===w?void 0:w.player,fullScreenTarget:z},lA=(0,a.useRef)(!1),lO=(0,a.useMemo)(()=>k||S||N,[k,N,S]);lA.current=lO;let lD=(0,G.x)(),{anchorList:lV,hasJingxuanActivity:lH}=(0,tN.e)({abtestData:O,awemeInfo:R}),lU=!lH&&(0,tP.$)({abTestData:O,awemeInfo:R}),{listenVideoDisablePrev:lz,listenVideoDisableNext:lZ}=(0,tS.T)({isAuthorCardShow:eG,isFirst:E,isLast:T,isShowRelatedCard:tO,canUseListenFeed:!1,prevAwemeInfo:M,nextAwemeInfo:F,listenFeedPrevAwemeInfo:ll,listenFeedNextAwemeInfo:li,isInnerFeed:tG,isActive:k});return(0,tF.O)({abtestData:O,player:null==lh?void 0:null===(g=lh.current)||void 0===g?void 0:g.player,awemeInfo:R,isActive:k}),(0,r.jsxs)(r.Fragment,{children:[(lp||l_)&&!lI&&k&&(0,r.jsx)(tk.default,(0,i._)({},lM)),(0,r.jsxs)(el.f,{xgplayerConfig:lR,isInitPlayer:lO,style:(0,i._)({height:"100%",width:"100%"},lf?{display:"none"}:{}),className:m()(et.default.container,"chapterPlayerStyle","lowPopup"),ref:lh,slardarInstance:t1,children:[(0,r.jsx)(en.p,{onRegisterSuccess:()=>{k&&(0,tg.g)(lh.current.player)},isActive:k,scene:B.lT.Follow}),(0,r.jsx)(eo.t,{awemeInfo:R,player:null===(x=lh.current)||void 0===x?void 0:x.player,isActive:k}),(0,r.jsxs)(er.n,{isActive:k,controlHeight:B.fp.MidHigh,position:"right",awemeInfo:R,className:tK,abtestData:O,children:[(tJ&&!lm||ld)&&(0,r.jsx)(ea.I,{playNextFunc:A,playPrevFunc:eq,disablePrev:E&&!(eG||tO)||(eG||tO)&&!M,disableNext:T&&!(eG||tO)||(eG||tO)&&!F,className:m()(et.default.playSwitchContainer,"filter-bg","is-follow-scene")}),k&&!lm&&(0,r.jsx)(es.Interaction,{canShowListenVideo:lt,playPrevFunc:eq,playNextFunc:A,listenVideoDisableNext:lZ,listenVideoDisablePrev:lz,actionFollow:tD,actionUnFollow:tV,awemeInfo:R,toggleComment:V,loginUserInfo:eJ,loginDispatch:eY,deleteCurrentSwiper:D,fullScreenTarget:z,onAvatarClick:H,onAiCardClick:U,abtestData:O,videoToast:eW,isActive:k,followHandler:e$,onRelatedClick:t$,onDouPlusClick:t4,reportExtraParams:Z,moreBoxShowList:(0,i._)({notInterestingIcon:!0,unfollow:!0,report:!0,shortcutList:!0},tH),from:B.lT.Follow,LiveSliderCard:tq,avatarTipText:t3,onDislike:t8,isInnerFeed:tG,isShowAiCard:lr,scene:"aweme_follow_pc",recommendTriggered:null==le?void 0:le.recommended,showRecommendToFriend:!!le})]}),(0,r.jsx)(ed._,{awemeInfo:R,controlHeight:B.fp.MidHigh,showImg:!(0,X.G6)(),isActive:k,abtestData:O}),(0,r.jsx)(eu.V,{awemeInfo:R,isActive:k}),(null==R?void 0:null===(j=R.chargeInfo)||void 0===j?void 0:j.is_charge_content)&&(0,r.jsx)(ec.V,{awemeInfo:R,isActive:k,isMiniWin:lI,isShowReplay:!lI}),tG||lC?null:(0,r.jsx)(ef.kL,{isActive:k,awemeInfo:R,playNextFunc:A,ablePlayNext:!(T&&!(eG||tO)||(eG||tO)&&!F),shortcutDisabled:!1}),tG&&!lC?(0,r.jsx)(ev.Ot,{isActive:k,awemeInfo:R,playPrevFunc:eq,playNextFunc:A,ablePlayPrev:!((eG||tO)&&!M),ablePlayNext:!((eG||tO)&&!F),abtestData:O}):null,!lC&&(0,r.jsx)(eh.SD,{isActive:k,awemeInfo:R,abtestData:O,isInnerFeed:tG,isOutFeed:!tG}),(0,r.jsx)(em.SE,{isActive:k,awemeInfo:R,abtestData:O}),(null==R?void 0:null===(y=R.video)||void 0===y?void 0:y.duration)>18e4&&(0,r.jsx)(ep.S,{awemeInfo:R,isActive:k,isLogin:null==eJ?void 0:eJ.isLogin,isMiniWin:lI}),ly&&(0,r.jsx)(tI.zm,{isActive:k,awemeInfo:R,isInnerFeed:tG,abtestData:O}),(0,r.jsx)(e_.k,{isActive:k,onVolumeShortCutChange:()=>{var e;(0,tx.t)(null===(e=lh.current)||void 0===e?void 0:e.player)}}),(0,r.jsx)(ew.g,{isActive:k,abtestData:O,awemeInfo:R}),(0,r.jsx)(eg.b,{isActive:k}),(0,r.jsx)(ex.h,{isActive:k}),!(0,tj.GP)(R)&&(0,r.jsx)(ej.Z,{awemeInfo:R,userInfo:eJ,isActive:k,isNext:S,isPrev:N,logParams:Z,abtestData:O}),(0,r.jsx)(ey.L,{awemeInfo:R,isActive:k,abtestData:O,suspendWhenMetaIsUndefined:!0}),(0,r.jsx)(eC.P,{isActive:k,awemeInfo:R,abtestData:O,userInfo:eJ,enablePip:lk}),(0,r.jsx)(eI.E,{isActive:k,awemeInfo:R,abtestData:O,userInfo:eJ,deleteCurrentSwiper:D,config:lR,isNext:S,currentIndex:t5}),lL&&(0,r.jsx)(ek.vq,{isActive:k,awemeInfo:R,isLogin:null==eJ?void 0:eJ.isLogin,loginDispatch:eY,userInfo:null==eJ?void 0:eJ.info,toast:eW,logParams:Z,abtest:O}),lk&&(0,r.jsx)(eL._,{isActive:k,awemeInfo:R,abtestData:O}),(0,r.jsx)(eS.F,{isActive:k,awemeInfo:R,isLogin:null==eJ?void 0:eJ.isLogin,loginDispatch:eY,abtestData:O,from:B.lT.Follow,logParams:Z,isMiniWin:lI}),(0,r.jsx)(eb.o,{isActive:k,awemeInfo:R}),(null==R?void 0:R.awemeType)===L.e.Note?(0,r.jsx)(eN.PictureMode,{isActive:k,awemeInfo:R,logParams:Z,abTestData:O,playNextFunc:A,ablePlayNext:!(T&&!eG||eG&&!F),playPrevFunc:eq,ablePlayPrev:!!M,isClientMiniWin:lm,isShowSideBar:t0}):null,(0,r.jsx)(eE.q,{isActive:k,abtestData:O,awemeInfo:R,isInnerFeed:tG,scene:B.lT.Follow,getAwemeInfoList:lo}),(0,r.jsx)(eP.ZL,{isActive:k,userInfo:eJ,dispatch:eY,abtestData:O,awemeInfo:R,isInnerFeed:tG}),(0,r.jsx)(eT.PlayBackSetting,{isActive:k,awemeInfo:R,logParams:Z,speedType:(0,X.G6)()?$.$.Safari:$.$.Normal}),eX,(!lI||lD)&&(0,r.jsx)(eR.I,{isActive:k,fullScreenTarget:z,disableHook:!0}),!lI&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eF.Danmaku,{isActive:k,awemeInfo:R,userInfo:eJ,loginDispatch:eY,abtestData:O,isDanmuIcon:lS}),(0,r.jsx)(eM.e,{isActive:k,awemeInfo:R,abtestData:O,aiNoteProps:ln,isAiNoteIcon:lE}),lw?(0,r.jsx)(eA.WC,{isActive:k,awemeInfo:R,userInfo:eJ,loginDispatch:eY,abtestData:O,isChapterIcon:lb,chapterProps:t9,logParams:Z,chapterMaxWidth:lN}):null,(0,r.jsx)(eO.Vw,{awemeInfo:R,isShowGuide:eK,logParams:Z,isActive:k,defaultIsPageFullScreen:t2,abtestData:O}),(0,r.jsxs)(eD.r,{isActive:k,controlHeight:B.fp.MidHigh,isClientMiniWin:lm,position:"bottom",awemeInfo:R,abtestData:O,style:lg,children:[lU&&!(null==le?void 0:le.recommendTagType)&&(0,r.jsx)(tP.n,{scene:"player",awemeInfo:R}),(0,r.jsx)(ei.s,{awemeInfo:R,isActive:k,userInfo:eJ,loginDispatch:eY}),!(0,tR.$m)(R)&&(null==le?void 0:le.recommendTagType)&&!(null==le?void 0:le.isShowVideoInfoSideCard)&&(0,r.jsx)(tT.B,(0,i._)({userInfo:eJ,awemeInfo:R,player:null==lh?void 0:null===(C=lh.current)||void 0===C?void 0:C.player,abTestData:O},le)),lV.length>0&&(0,r.jsx)(tE.E,{awemeInfo:R,anchorList:lV,openActivityCard:tU,abtestData:O}),(0,q._Q)(R,O)&&(0,r.jsx)(eV.k,{awemeInfo:R,onClick:tZ,isActive:k}),ls&&(0,J.n)(R)&&(0,r.jsx)(eH.n,{awemeInfo:R,onClick:tz,isActive:k,onMouseEnter:tB,onMouseLeave:tW}),(0,r.jsx)(eU.VideoInfo,{isActive:k,awemeInfo:R,userInfo:eJ,isTopicLinkSearchResult:!0,videoTags:tA||[],scene:B.lT.Follow,videoHashtagClassName:tM,abTestData:O,isShowCreateTime:!0,onCooperationAuthorClick:tX,canMixListen:!tG,onSodaClick:t7,isShowCooperation:tQ,showSideBar:t0,loginUserInfo:eJ,loginDispatch:eY,fullScreenTarget:z,reportExtraParams:Z,showGuideDownloadClient:lT,sideCardContext:la,showExpandButtonInner:!0})]}),(0,r.jsx)(ez.x,{isActive:k,awemeInfo:R,abtestData:O,scene:"follow"}),(0,r.jsx)(eZ.h,{awemeInfo:R,isActive:k,userInfo:eJ,abtestData:O}),(0,r.jsx)(eB.MenuList,{isActive:k,abtestData:O,isSliderVideo:!0,isKeyWorkCancalLike:!0,awemeInfo:R,showEnterDetail:!0,shortCutFiltered:lF,userInfo:eJ,showRecommendToFriend:!!le}),(0,r.jsx)(eQ,{isActive:k,awemeInfo:R}),(0,r.jsx)(e0.B,{awemeInfo:R,abtestData:O,isActive:k}),lT?(0,r.jsx)(e1.PostGuideDownload,{isActive:k,awemeInfo:R,userInfo:eJ,abtestData:O,player:null==lh?void 0:null===(I=lh.current)||void 0===I?void 0:I.player}):null,(null==lP?void 0:lP.length)>0&&(0,r.jsx)(e2.SettingList,{isActive:k,awemeInfo:R,hideList:lP,dispatch:eY,abtestData:O,userInfo:eJ}),(0,r.jsx)(e3.I,{abtestData:O,isActive:k,awemeInfo:R,logParams:Z,isChapterScene:!0}),lx?(0,r.jsx)(e8.I,{awemeInfo:R,isActive:k,abtestData:O,onShowChange:lj}):null,(0,r.jsx)(tb.P,{abtestData:O,isActive:k,controlHeight:B.fp.MidHigh})]}),ld&&(0,r.jsx)(ty.U,{awemeInfo:R}),lm&&(0,r.jsxs)(r.Fragment,{children:[k&&(0,r.jsx)(e5.MiniWinMask,{isActive:k,awemeInfo:R,abtestData:O,playPrevFunc:eq,playNextFunc:A,disablePrev:E&&!(eG||tO)||(eG||tO)&&!M,disableNext:T&&!(eG||tO)||(eG||tO)&&!F,ablePlayNext:!(T&&!(eG||tO)||(eG||tO)&&!F),loginUserInfo:eJ,loginDispatch:eY,fullScreenTarget:z,reportExtraParams:Z,recordPreferVideoSwitch:!0}),k&&!lD&&(0,r.jsx)(e6.N,{awemeInfo:R})]})]})]})});var tA=l("797486"),tO=l("87897"),tD=l("36897"),tV=l("489113"),tH=l("931334");l("362051"),l("706056"),l("679308");var tU=l("30995"),tz=l("732199"),tZ=l("988805"),tB=l("494729");let{COMMON_SEARCH_PARAMS:tW}=tU;async function t$(e){let{cursor:t,level:l,count:n=20,pull_type:r,customConfig:a={},awemeIds:s=[],roomIds:d=[],refresh_type:u}=e,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{json:f,result:v}=await (0,tB.g8)("/aweme/v1/web/follow/feed/",(0,o._)((0,i._)({},tW),{cursor:t,level:l,count:n,pull_type:r,refresh_type:u,aweme_ids:s.join(","),room_ids:d.join(",")}),c,e=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{data:l=[],status_code:n,log_pb:r,has_more:a,cursor:s,level:d,last_view:u}=e,c=null==l?void 0:l.map(e=>{var t,l;if(3===e.feed_type){;return(t=e).aweme={},t.aweme.cell_room=null==t?void 0:t.cell_room,t.aweme.aweme_type=101,t.aweme.is_from_sort=null==t?void 0:t.is_from_sort,(e=t).aweme.logPb=r&&JSON.stringify(r),null==e?void 0:e.aweme}{;let t=null!==(l=null==e?void 0:e.aweme)&&void 0!==l?l:{};return(0,o._)((0,i._)({},t),{is_from_sort:e.is_from_sort})}});return{statusCode:n,hasMore:1===a,awemeList:(0,tz.TN)({awemeList:c||[],config:t,logPb:r&&JSON.stringify(r)}),logPb:r&&JSON.stringify(r),cursor:s,level:d,lastView:u}})(e,a),{},e=>{var t;return 0===e.statusCode&&(null===(t=e.awemeList)||void 0===t?void 0:t.length)===0&&!!e.hasMore});try{var h;let e=e=>[tZ.$u.FollowEach,tZ.$u.Followed].includes(e),t=null==v?void 0:null===(h=v.awemeList)||void 0===h?void 0:h.map(t=>{var l,n,r,a;if(!(null==t?void 0:t.cooperationInfo))return t;if(!e(null==t?void 0:null===(l=t.authorInfo)||void 0===l?void 0:l.followStatus)){let l=null===(a=t.cooperationInfo)||void 0===a?void 0:null===(r=a.cooperationCreators)||void 0===r?void 0:null===(n=r.filter(t=>e(null==t?void 0:t.followStatus)))||void 0===n?void 0:n[0];if(l)return(0,o._)((0,i._)({},t),{authorInfo:l})}return t});t&&(v.awemeList=t)}catch(e){}return v}var tq=l("240952"),tJ=l("661063"),tY=l("98590"),tK=l("316914"),tG={swiper:"Zal3if9O",sevenDayMask:"_kh59Jnp",tipWrapper:"TovkhAc1",tip:"bOMEtJ4E",button:"U8nNwo0i",swiperItem:"kY48Z1d8",content:"dC20kVxI",isFullScreen:"mKjeLqy9",upperSpace:"ESR7MwHs",noSelect:"TWEJxOBE",loadingCt:"fjIYo2nk",loading:"VyangHx9",bottomDesc:"kL4Ki7mc",liveWindow:"N8VrEP8S",expand:"XMW4ajS_",collapse:"K557ORB2",hidden:"ocWl3MQ0",followSideList:"gjJ7uPFD",followSkylight:"Qu_5HrBq",outsideSwitchButton:"C7wuBuB3"},tX=l("813458"),tQ=l("897471"),t0=l.n(tQ),t1=l("197393"),t2=l("103808");let t3=()=>(0,tO._)();var t8={recommend:4,4:"recommend",latest:1,1:"latest",earliest:3,3:"earliest"};let t5=e=>{let{enable:t}=e,[l,i]=(0,a.useState)([]);return(0,S.o)(()=>{if(!!t)return M.listen(M.EVENT.syncInteractionStatus,e=>{let{action:t,toUserId:l}=e;if(!!l)"follow"===t?i(e=>e.filter(e=>e!==l)):"unFollow"===t&&i(e=>[...e,l])})},[t]),{unFollowList:l,setUnFollowList:i}},t6=e=>{let{enable:t,loadLiveData:l,setChoiceFollowingList:i,followingCount:o,setIsListCollapse:n,setUnFollowList:r,setHasMoreChoice:a}=e,s=(0,tO._)();(0,S.o)(()=>{if(!!t)return M.listen(M.EVENT.refreshPage,()=>{r([]),l(),a(!0),i([])})},[l,o,n,i,r,a,t]),(0,S.o)(()=>M.listen(M.EVENT.RefreshFeedList,()=>{r([]),l(),a(!0),i([])}),[l,o,n,i,r,a,s]),(0,S.o)(()=>M.listen(M.EVENT.RefreshFeedListOnly,()=>{l()}),[l,o,n,i,r,a,s])},t4=e=>{let{loadLiveData:t,enable:l,unFollowList:i,liveList:o}=e,[n,r]=(0,a.useState)([]),[s,d]=(0,a.useState)([]),[u,c]=(0,a.useState)([]),f=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if(!!l&&!f.current)t(),f.current=!0},[l,t]),(0,a.useEffect)(()=>{c(n.filter(e=>!i.includes(e.uid))),d(o.filter(e=>!i.includes(e.anchorId||"")))},[i,o,n]),{choiceFollowingList:n,choiceListFilter:u,setChoiceFollowingList:r,liveListFilter:s}},t7=e=>{let{isListShow:t,followingCount:l=-1,enable:i=!1}=e,o=(0,a.useRef)(!1),n=l>=0&&l<=t2.BO,[r,s]=(0,a.useState)(n),[d,u]=(0,a.useState)(n?72:208),{awemeFeed:c}=(0,tD.j)();return(0,a.useEffect)(()=>{!o.current&&l>=0&&(o.current=!0,s(l<=t2.BO))},[l]),(0,a.useEffect)(()=>{if(!!i){if(r){u(72);return}u(208)}},[t,r,i]),(0,a.useEffect)(()=>{if(t){let e=c.subscribe("modalAwemeInfo",e=>{e?u(0):u(r?72:208)});return()=>{e()}}},[t,r]),{isListCollapse:r,setIsListCollapse:s,listWidth:d}},t9=()=>{let[e,t]=(0,a.useState)([]),[l,i]=(0,a.useState)(!1),[o,n]=(0,a.useState)(""),[r,s]=(0,a.useState)(!1),d=(0,a.useRef)(!1),u=(0,a.useRef)(0),c=t3(),f=!!(null==c?void 0:c.pcFollowtopPagesize),{setFollowListRoomData:v}=(0,ee.Iq)(e=>{let{setFollowListRoomData:t}=e;return{setFollowListRoomData:t}}),h=(0,a.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!d.current&&(!e||!!f&&!!l)){if(d.current=!0,f){let l=e?u.current:0;s(!1);try{let{data:o,hasMore:r,statusCode:a=0,logId:d,followSessionId:c}=await (0,t1.PK)({follow_session_id:l});n(d),0===a?(t(t=>e?t0()([...t,...o],"anchorId"):o),i(r),u.current=c||0,!e&&v(o)):s(!0)}catch(e){s(!0)}}else{!e&&(t([]),i(!0));let{data:l,statusCode:o=0,logId:r}=await (0,t1.yQ)({});i(!1),n(r),0===o&&(t(l),v(l))}d.current=!1}},[l,f]);return{liveList:e,hasMoreLive:l,loadLiveData:h,requestId:o,setLiveList:t,isLiveError:r}},le=e=>{var t;let{userInfo:l,enable:n=!1}=e,r=null!==(t=null==l?void 0:l.followingCount)&&void 0!==t?t:-1,{liveList:s,hasMoreLive:d,loadLiveData:u,requestId:c,setLiveList:f,isLiveError:v}=t9(),{unFollowList:h,setUnFollowList:m}=t5({enable:n}),[p,_]=(0,a.useState)(n&&0!==r),w=(0,a.useRef)(!1),g=t7({followingCount:r,enable:n,isListShow:p}),[x,j]=(0,a.useState)(!0),[y,C]=(0,a.useState)(t8.recommend),[I,k]=(0,a.useState)(!1),{choiceFollowingList:L,liveListFilter:S,choiceListFilter:b,setChoiceFollowingList:N}=t4({loadLiveData:u,liveList:s,unFollowList:h,enable:n}),[E,P]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{!w.current&&r>=0&&(w.current=!0,_(n&&r>0))},[r,n]),t6({enable:n&&p,followingCount:r,loadLiveData:u,setChoiceFollowingList:N,setIsListCollapse:g.setIsListCollapse,setUnFollowList:m,setHasMoreChoice:j}),(0,a.useEffect)(()=>{if(!n||!w.current)return;let e=!d&&0===s.length,t=!x&&0===L.length,l=s.length+L.length,i=l>0&&h.length===l,o=0===r||i||e&&t;_(!o),P(0===l||o)},[s,L,h,r,d,x]),(0,o._)((0,i._)({isListShow:n&&p,setIsListShow:_,isListEmpty:E,setIsListEmpty:P,choiceFollowingList:b,liveList:S,setChoiceFollowingList:N,hasMoreChoice:x,setHasMoreChoice:j},g),{followingCount:r,requestId:c,setLiveList:f,sortType:y,setSortType:C,isSortTypeChangeLoading:I,setIsSortTypeChangeLoading:k,hasMoreLive:d,loadLiveData:u,isLiveError:v})};var lt=l("859278");let ll=e=>{let{isFollowSideListShow:t,followSideListWidth:l}=null!=e?e:{};(0,tO._)();let{isAiSearchShow:o}=(0,lt.E)(),{removeSlideListButton:n}=(0,ee.Iq)(e=>{let{removeSlideListButton:t}=e;return{removeSlideListButton:t}}),r=(0,a.useMemo)(()=>{let e={};return t&&(e={left:`${l}px`,width:`calc(100% - ${l}px)`}),(0,i._)({},e,{paddingLeft:0,paddingRight:o?312:n?12:68})},[l,t,o,n]),[s,d]=(0,a.useState)({});return(0,S.o)(()=>M.listen(M.EVENT.changeMinWindows,e=>{let{isMiniWin:t}=e;d(t?{minWidth:"auto"}:{})}),[]),{swiperStyle:r,slideHeight:(0,a.useMemo)(()=>({cardBetween:12,upperSpace:t?0:12,nextSwiperHeaderHeight:0}),[t]),swiperItemStyle:s}};var li=l("392430");let lo=e=>{let{isFollowSideListShow:t}=e,[l,i]=(0,a.useState)(!1),[o,n]=(0,a.useState)("");return(0,S.o)(()=>{let e=M.listen(M.EVENT.changeVideoSideBar,e=>{let{isShowRelatedCard:t=!1}=e;"Boolean"===(0,li.tQ)(t)&&i(t)});return()=>e()},[]),(0,a.useEffect)(()=>{t&&n(l?"sideCardShow":"sideCardClose")},[t,l]),{outSwitchClassName:o}};var ln=l("645062"),lr=l("335924"),la=l("581999");let ls=e=>{let{swiper:t,setAwemeInfoList:l,awemeInfoList:i}=e,{Context:o}=tH||{},{userInfo:n}=(0,la.useUserInfoContext)()||{},{isLogin:r}=n;return(0,S.o)(()=>{if(void 0!==r&&!r){let e=(0,lr.Rs)("enter_method");return(0,g.showAccountPage)({success:()=>{window.location.reload()},headerText:"登录后即可关注",enterMethod:e||"follow_tab"}),()=>{(0,w.a)(),M.emit(M.EVENT.hideModal),g.loginPanelInfo.isShowingAccount=!1,g.loginPanelInfo.isInAccountPage=!1}}},[r]),(0,S.o)(()=>{if(t){let e=ln.a.addCb(e=>{let{actionUid:o,action:n}=e;if("unFollow"!==n)return;let r=t.activeIndex-i.slice(0,t.activeIndex).filter(e=>(null==e?void 0:e.authorInfo.uid)===o).length;l(i.filter(e=>{var t,l,i,n;return(null==e?void 0:null===(t=e.cellRoom)||void 0===t?void 0:t.rawdata)?(null==e?void 0:null===(n=e.cellRoom)||void 0===n?void 0:null===(i=n.rawdata)||void 0===i?void 0:null===(l=i.owner)||void 0===l?void 0:l.id_str)!==o:(null==e?void 0:e.authorInfo.uid)!==o}));try{t.slideTo(r,0)}catch(e){}});return()=>{null==e||e()}}},[t,i]),null};var ld=l("304036"),lu="a2Vhn5ex";let lc=e=>(0,r.jsx)("div",{className:lu,children:(0,r.jsx)(ld.Z,{})});var lf=l("473228"),lv=l("429718"),lh=l("799155");let lm=(0,a.createContext)(null),lp=()=>(0,a.useContext)(lm);var l_="ZTUj1jdk",lw="mYJY2tEm",lg="qsfxB2M9",lx="sQW5LXKT",lj="VRnLiYTN",ly="C6Rv03TZ";let lC=e=>{let{isListCollapse:t}=e;return(0,r.jsxs)("div",{className:m()(lx,{[lw]:t}),children:[(0,r.jsx)("div",{className:lj}),(0,r.jsx)("div",{className:ly})]})};var lI=l("933524"),lk=l("288578"),lL=l("280647"),lS=l("966473"),lb=l("983218");let lN=(0,a.forwardRef)((e,t)=>(0,r.jsxs)("svg",(0,o._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,r.jsx)("path",{d:"M8 16h11v-1.5H8V16zm0-5.25h11v-1.5H8v1.5zM8 5.5h11V4H8v1.5z",fill:"#fff",fillOpacity:".5"}),(0,r.jsx)("path",{d:"M4.383 14.526L1.04 10.322a.52.52 0 0 1 0-.644l3.343-4.204",stroke:"#fff",strokeOpacity:".5",strokeWidth:1.5})]}))),lE=(0,a.forwardRef)((e,t)=>(0,r.jsxs)("svg",(0,o._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,r.jsx)("path",{d:"M12 16H1v-1.5h11V16zm0-5.25H1v-1.5h11v1.5zm0-5.25H1V4h11v1.5z",fill:"#fff"}),(0,r.jsx)("path",{d:"M15.617 14.526l3.343-4.204a.52.52 0 0 0 0-.644l-3.343-4.204",stroke:"#fff",strokeWidth:1.5})]})));var lP=l("316213"),lT=l("206698");let lR={},lF=()=>{lR={}},lM=e=>{var t,l;return null!==(l=null===(t=lR[e])||void 0===t?void 0:t.length)&&void 0!==l?l:0},lA=e=>{var t;return null!==(t=lR[e])&&void 0!==t?t:[]},lO=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach(e=>{var t;e.secUid&&!lR[e.secUid]&&(null==e?void 0:null===(t=e.notSeenItemList)||void 0===t?void 0:t.length)>0&&(lR[e.secUid]=null==e?void 0:e.notSeenItemList)})},lD=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&t){var i;lR[e]=l?[]:(null!==(i=lR[e])&&void 0!==i?i:[]).filter(e=>e!==t)}},lV=e=>{lR[e]&&(lR[e]=[])},lH=e=>{var t;let l={},i=null!==(t=lA(e.secUid))&&void 0!==t?t:[];null==i||i.forEach(e=>l[e]={status:B.Pl.UnLook,countOnce:1,scene:lT.a.FollowAuthorModal}),T.Le.setConfig(T.gI.UnLookVideos,l)},lU=function(){let{onModalShow:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,a.useRef)(null),l=(0,a.useRef)(""),i=(0,a.useRef)(""),[o,n]=(0,a.useState)(!1),[r,s]=(0,a.useState)([]),d=(0,a.useCallback)(r=>{var a,d,u;if(o)return;let c=null!==(a=lA(r.secUid))&&void 0!==a?a:[];s(c);let f=null!==(d=null==c?void 0:c[0])&&void 0!==d?d:"",v=null!==(u=null==r?void 0:r.secUid)&&void 0!==u?u:"",h=null==r?void 0:r.awemeInfo;if(!!h||!!f||!!v){if(M.emit(M.EVENT.videoPause,"FollowAuthorModal_onFollowItemClick"),h){t.current=h,i.current=v,n(!0),null==e||e();return}if(f){l.current=f,i.current=v,n(!0),null==e||e(),lH(r);return}v&&(i.current=v,n(!0),n(!0),null==e||e())}},[e,o]),u=(0,a.useCallback)(()=>{n(!1),l.current="",i.current="",t.current=null},[]);return{awemeInfoRef:t,targetAwemeIdRef:l,targetAuthorSecUidRef:i,isModalShow:o,setIsModalShow:n,closeFollowUpdateModal:u,onFollowItemClick:d,logParams:(0,a.useMemo)(()=>({enter_from:"follow",enter_from_merge:"follow",enter_method:"click_follow_head_show"}),[]),notSeenItemList:r}};var lz=l("508638");l("374285"),l("566071"),l("759943"),l("414931");var lZ=l("350856"),lB=l.n(lZ),lW=l("264104");let l$=(e,t,l)=>{if(!t||!e)return null;let{index:i}=t,o=(null==l?void 0:l.length)||0;return 0!==i?[e.slice(0,i),t[0],e.slice(i+o)].filter(e=>""!==e):o===e.length?[t[0]]:[t[0],e.slice(o)]},lq=e=>{let{enableSearch:t=!1}=e,[l,n]=(0,a.useState)([]),[r,s]=(0,a.useState)([]),[d,u]=(0,a.useState)(!1),[c,f]=(0,a.useState)(""),v=t3(),h=!!(null==v?void 0:v.pcFollowtopSearch),m=(0,a.useCallback)(lB()(async e=>{try{if(u(!0),h){let[t,l]=await Promise.all([(0,t1.yQ)({keyword:e}),(0,lW.nf)({count:100,business_id:90062,query:e})]),r=new Set;if(null==t?void 0:t.data){let l=RegExp(e,"i"),n=t.data.map(t=>{let n=null==t?void 0:t.userName,a=(null==t?void 0:t.uniqueId)||"";(null==t?void 0:t.anchorId)&&r.add(t.anchorId);let s=n?l.exec(n):null,d=l$(n,s,e),u=a?l.exec(a):null,c=l$(a,u,e);return(0,o._)((0,i._)({},t),{selectedName:d,selectedUniqueId:c})});s(n)}else s([]);if(null==l?void 0:l.userList){let t=l.userList.filter(e=>{let t=[tZ.$u.Followed,tZ.$u.FollowEach].includes(e.followStatus),l=!r.has(null==e?void 0:e.uid);return t&&l}).map(t=>{let l=null==t?void 0:t.nickname,n=RegExp(e,"i"),r=n.exec(l),a=l$(l,r,e),s=n.exec(null==t?void 0:t.uniqueId),d=l$((null==t?void 0:t.uniqueId)||"",s,e);return(0,o._)((0,i._)({},t),{selectedName:a,selectedUniqueId:d})});n(t)}else n([])}else{let t=await (0,lW.nf)({count:100,business_id:90062,query:e});if(null==t?void 0:t.userList){let l=null==t?void 0:t.userList.filter(e=>[tZ.$u.Followed,tZ.$u.FollowEach].includes(e.followStatus)).map(t=>{let l=null==t?void 0:t.nickname,n=RegExp(e,"i"),r=n.exec(l),a=l$(l,r,e),s=n.exec(null==t?void 0:t.uniqueId),d=l$((null==t?void 0:t.uniqueId)||"",s,e);return(0,o._)((0,i._)({},t),{selectedName:a,selectedUniqueId:d})});n(l),s([])}else n([]),s([])}u(!1)}catch(e){u(!1)}},600,{trailing:!0}),[h]);return(0,a.useEffect)(()=>{t&&(c?(u(!0),m(c)):(n([]),s([])))},[t,c,m]),{searchVal:c,setSearchVal:f,searchList:l,searchLiveList:r,searchIsLoading:d,setSearchList:n,setSearchLiveList:s}};l("88856");var lJ=l("908219"),lY=l.n(lJ),lK=l("59850");l("14275");var lG=l("386206");let{COMMON_SEARCH_PARAMS:lX}=tU;async function lQ(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,l=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,{json:n,result:r}=await (0,tB.g8)(l,(0,i._)({},lX,e),t,o);return r}async function l0(e){let{user_id:t,sec_user_id:l,offset:i=0,min_time:o=0,max_time:n=0,count:r=20,source_type:a=2,gps_access:s=0,address_book_access:d=0,is_top:u=1}=e,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return lQ({user_id:t,sec_user_id:l,offset:i,min_time:o,max_time:n,count:r,source_type:a,gps_access:s,address_book_access:d,is_top:u},c,"/aweme/v1/web/user/following/list/",e=>(function(e,t){var l,i;let{has_more:o,hotsoon_has_more:n,hotsoon_text:r,log_pb:a,min_time:s,offset:d,status_code:u,rec_has_more:c,status_msg:f,max_time:v}=e;return{followList:(l=e[t],i=t,l?l.map(e=>{var t,l,o;let{sec_uid:n,uid:r,nickname:a,custom_verify:s,enterprise_verify_reason:d,avatar_uri:u,signature:c,follow_status:f,follower_status:v,secret:h,room_data:m,room_id:p,following_list_secondary_information_struct:_,not_seen_item_id_list_v2:w,not_seen_item_id_list:g,live_status:x,aweme_count:j=0,user_not_see:y=0,is_not_show:C=!1,app_id:I,account_cert_info:k,avatar_medium:L={},unique_id:S,short_id:b}=e;return{secUid:n,uid:r,nickname:a,customVerify:s,enterpriseVerifyReason:d,avatarUri:u||(null==L?void 0:null===(l=L.url_list)||void 0===l?void 0:null===(t=l.find)||void 0===t?void 0:t.call(l,e=>/\.jp(e)?g|\.png/.test(e)))||"",desc:c,followStatus:f,followerStatus:v,secret:h,roomData:m&&("followings"===i||"followers"===i)?JSON.parse(m):{},roomId:p,infoStruct:{priority:null==_?void 0:_.secondary_information_priority,text:null==_?void 0:_.secondary_information_text,textType:null==_?void 0:_.secondary_information_text_type},notSeenItemList:null!==(o=null!=w?w:g)&&void 0!==o?o:[],liveStatus:x,awemeCount:j,userNotSee:y,isNotShow:C,following_app_id:I,accountCertInfo:k?(0,tz.FB)((0,lG.As)(k)):{},uniqueId:S||b}}):[]),hasMore:o,hotsoonHasMore:n,hotsoonText:r,logPb:a,minTime:s,maxTime:v,offset:d,statusCode:u,recHasMore:c,statusMsg:f}})(e,"followings"))}let l1=()=>{var e;let{setChoiceFollowingList:t,hasMoreChoice:l,setHasMoreChoice:i,sortType:o,setIsListEmpty:n,setIsSortTypeChangeLoading:r}=lp(),{userInfo:s}=(0,tH.useUserContext)(),{uid:d="",secUid:u=""}=null!==(e=null==s?void 0:s.info)&&void 0!==e?e:{},c=(0,a.useRef)(!0),f=(0,a.useRef)(0),v=(0,a.useRef)(0),h=(0,a.useRef)(0),m=(0,y.d)(o),p=(0,a.useCallback)(async()=>c.current?await l0({user_id:d,sec_user_id:u,offset:f.current,max_time:v.current,min_time:h.current,source_type:null==m?void 0:m.current}):null,[d,u]),_=(0,a.useCallback)((e,l)=>{let{followList:o=[],statusCode:n=-1,hasMore:r=!1,offset:a,maxTime:s,minTime:d}=e;if(0!==n){i(!1),c.current=!1;return}1===m.current&&(v.current=d||0),3===m.current&&(h.current=s||0),f.current=a||0;let u=o.filter(e=>{var t;return![1,2,5,7].includes(null!==(t=null==e?void 0:e.liveStatus)&&void 0!==t?t:0)&&1!==e.userNotSee&&!e.isNotShow});i(r),c.current=r,t(e=>t0()(l?u:[...e,...u],e=>e.uid))},[]);return(0,lL.Z)(()=>{n(!1),i(!0),m.current=o,c.current=!0,f.current=0,v.current=0,h.current=0,r(!0),p().then(e=>{e&&_(e,!0)}).finally(()=>r(!1))},[o]),{loadData:p,packData:_,hasMore:l}},l2=()=>{let{choiceFollowingList:e}=lp();(0,a.useEffect)(()=>{lO(e)},[e]),(0,a.useEffect)(()=>M.listen(M.EVENT.syncInteractionStatus,e=>{let{action:t,awemeId:l,fromUserId:i,extraAwemeInfo:o}=e;if("lookVideo"===t){let{isFromSort:e=!0}=null!=o?o:{};i&&l&&e&&(lD(i,l),(0,lW.qA)({item_id_list:l,type:1}))}}),[]),(0,a.useEffect)(()=>()=>{lF()},[])},l3=()=>{let{choiceFollowingList:e,hasMoreChoice:t}=lp(),{loadData:l,packData:i}=l1(),[o,n]=(0,a.useState)(null),[r,s]=(0,a.useState)(null),d=(0,a.useRef)(!1),u=(0,lK.Z)(()=>{if(!r||!o)return t;let e=r.getBoundingClientRect().top,l=o.scrollTop+o.clientHeight;return!!(e-100<l)&&t});return(0,S.o)(()=>{let e=!0;if(!!(!d.current||u()))return l().then(t=>{t&&e&&(i(t),d.current=!0)}),()=>{e=!1}},[i,l,e]),(0,a.useEffect)(()=>{if(!o)return;let e=!0,t=lY()(()=>{M.emit(M.EVENT.followListScroll),u()&&l().then(t=>{t&&e&&(i(t),d.current=!0)})},200);return o.addEventListener("scroll",t),()=>{e=!1,o.removeEventListener("scroll",t)}},[u,i,l,o]),l2(),{scrollEl:o,setScrollEl:n,setLoadingEl:s,hasMore:t}};var l8={Live:"live",Choice:"choice"};let l5=["live","choice"],l6=e=>{let{scrollEl:t,hasMore:l,searchVal:i}=e,{liveList:o,choiceFollowingList:n,isListCollapse:r,followingCount:s}=lp(),[d,u]=(0,a.useState)(null),[c,f]=(0,a.useState)(null),[v,h]=(0,a.useState)(""),[m,p]=(0,a.useState)(),[_,w]=(0,a.useState)(s),g=e=>{let t="live";return l5.forEach(l=>{let{titleEl:i,key:o,canShow:n}=e[l];if(!!n&&!!i)i.getBoundingClientRect().top<165&&(t=o)}),e[t]},x=(0,a.useMemo)(()=>({live:{key:"live",titleEl:d,canShow:(null==o?void 0:o.length)>0,text:`正在直播(${null==o?void 0:o.length})`},choice:{key:"choice",titleEl:c,canShow:(null==n?void 0:n.length)>0,text:`我的关注(${(0,lG.qe)(_)})`}}),[o,n,d,c,l,r,_]);return(0,a.useEffect)(()=>{if(!i&&!!t){if(0===t.scrollTop)for(let t=0;t<l5.length;t++){var e;if(null===(e=x[l5[t]])||void 0===e?void 0:e.canShow){h(x[l5[t]].text),p(x[l5[t]].key);break}}}},[x,t,i]),(0,a.useEffect)(()=>{if(!i)r?(h(""),p(void 0)):(h(g(x).text),p(g(x).key))},[r,i]),(0,a.useEffect)(()=>M.listen(M.EVENT.syncInteractionStatus,e=>{let{action:t}=e;"follow"===t?w(e=>e+1):"unFollow"===t&&w(e=>e-1)}),[]),(0,a.useEffect)(()=>{if(r||i||!t)return;let e=lY()(()=>{h(g(x).text),p(g(x).key)},200);return t.addEventListener("scroll",e),()=>{t.removeEventListener("scroll",e)}},[x,t,r,i]),{isPartEmpty:0===l5.filter(e=>x[e].canShow).length,topTitleText:r?"":v,currentPartKey:m,partMap:x,setLiveTitleEl:u,setChoiceTitleEl:f}},l4=e=>{let{enable:t}=e,{liveList:l}=lp(),[i,o]=(0,a.useState)(null),n=(0,a.useRef)(!1),r=(0,a.useRef)("none"),[s,d]=(0,a.useState)("none"),u=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if(!l.length||!i||!t)return;let e=new IntersectionObserver(e=>{let t=e[0].intersectionRatio>0;!u.current&&(u.current=!0,n.current=t,r.current=t?"none":"in",d(t?"none":"in")),t&&"in"===r.current&&(r.current="out",d("out"))});return e.observe(i),()=>{e.disconnect()}},[i,l,t]),(0,a.useEffect)(()=>{if("out"!==s)return;let e=null;return e=setTimeout(()=>{e&&d("none")},2e3),()=>{e&&(clearTimeout(e),e=null)}},[s]),{setChoiceUlEl:o,showPopupTip:s}};var l7=l("886299"),l9=l.n(l7);let ie=e=>{let{scrollEl:t,titleEl:l}=e,[i,o]=(0,a.useState)(0);return(0,a.useEffect)(()=>{if(!t)return;let e=t.clientHeight,i=0;if(l){var n;let t=null!==(n=null==l?void 0:l.offsetTop)&&void 0!==n?n:0;i=l9()(e-t,0,48)}o(Math.round((e-i-0)/52))},[t,l]),{firstPageCount:i}},it=()=>{let{setIsListCollapse:e,followingCount:t}=lp(),[l,i]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(!l)return M.listen(M.EVENT.sideCardShowChange,l=>{let{isModalAwemeShow:i,isShow:o=!1,isUpperFeed:n}=l;!i&&!n&&t>t2.BO&&(null==e||e(o))})},[e,t,l]),{setHasClickedCollapse:i}};var il={container:"Mr9AsbEL",followingList:"MkTWFeTR",isFollowOptimize:"BwsMCaPk",followingListCollapse:"KOoo8QWs",liveList:"rL2SzKFO",choiceList:"VifoXYqW",searchInput:"DnuX01iM",topTitle:"MoYDlnmh",operateIcon:"sSvTj0rn",text:"hxyaoGhH",positionLeft:"KYcbnmMW",iconSvg:"srxHWeR8",tip:"XU7xbkob",tipText:"UlwfHmPU",sortIcon:"YrR8YBi9",listTitle:"_JJOXMVY",followTitle:"B_COm2qs",title:"IMBkBjL8",listFollowTitle:"ojNnuhqe",authorDescriptionCt:"lEYk5unc",notSeenTag:"B7oGAXb4",authorInfo:"iWl6M_xW",authorName:"_ipzNXe1",accountCertBadge:"EWh32V12",badgeIcon:"OmV33ydt",listItem:"IFVkVsuN",optimizeItem:"S0X63GVw",ellipsisIcon:"LFR85Wzk",isCollapse:"N7tk0_js",sidebarItemHover:"CbIQHatG",item:"UezcTV1S",hidden:"KmlDHqAt",avatarLive:"t04kWPoK",newLiveList:"SMog7kc4",optimizeLiveItem:"OlaKCPgb",avatarBadgeCt:"DIpglLai",collapseList:"I2VYiSyJ",unreadTag:"_2tNDcL3U",redPackWrap:"gkxuCqU2",redPackImg:"HZ5JkAqm",redPackText:"JkjvsA9r",errorTip:"jujcVBX2",retry:"YvbZbm4k",redColor:"PJVUF9LU",uniqueIdBox:"j7CP9jvq",popover:"EdElFY2f"};l("228983");var ii=l("622063"),io=l("638183"),ir=l("81683"),ia=l("706869"),is=l("46892"),id=l("205030"),iu=l("715360"),ic=l("589864"),iv=l("692685"),ih=l("332009");let im=function(){var e,t,l;let n,s;let{isPreCreated:d,abtestData:u,liveInfo:c,liveShowCountInFirstScreen:f=0,logParams:v,listIndex:h=0,liveList:p=[],onClick:_,isFirstPage:w=!1,rank:g="15+",hidden:j=!1,ifFoldLive:y,awemeInfo:C,from:I,fixLeft:k,scene:L,className:S,searchVal:b}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{anchorId:N="",roomId:E="",gameName:T="",streamType:R,episodeExtra:F,paidLiveData:A,webRid:O="",coverSrc:D,userName:V,isEcomLive:H=!1,__fakeAwemeInfo:U={},selectedName:z,selectedUniqueId:Z}=null!=c?c:{},W=`fo_lh_${O}`,[$,q]=(0,a.useState)(!1),{seasonIds:J}=(0,iu.b)(),Y=(0,a.useRef)(!1),{isFullscreen:K}=(0,x.O)(),G=(0,a.useMemo)(()=>({enter_method:"web_live_head",enter_from_merge:null==v?void 0:v.enter_from_merge,request_id:(null==v?void 0:v.request_id)||""}),[v]),Q=(0,a.useCallback)(e=>(0,o._)((0,i._)({},G),{show_rank:`${e+1}`,show_cnt:f}),[G,f]),ee=(0,lS.x)(()=>{lz.Z.sendLog("followHeadShow",{room_id:E,author_id:N,if_first_page:w?1:0,if_fold_live:y?1:0,rank:g})});(0,a.useEffect)(()=>{var e;if(!Y.current)Y.current=!0,(0,ic.JW)((0,o._)((0,i._)({anchor_id:N,room_id:E,is_aweme_tied:(null==v?void 0:v.is_aweme_tied)||ic.Xk.LOGIN,game_name:T,stream_type:id.PY[R]},Q(h),(0,ic.d3)(A),(0,ic.Ne)(F)),{is_viplive:(null===(e=(0,iv.Rk)(A))||void 0===e?void 0:e.isVipLive)?1:0,live_status:ih.s.getIsPageFullscreen()?"web_full":K?"full":"normal",is_comments_fold:0}))},[h,v,K,ih.s]);let et=()=>{let e=(0,is.cc)({web_rid:O,enter_from_merge:"web_homepage_follow",enter_method:"web_live_head",action_type:"click",room_id:E,anchor_id:N,is_livehead_preview_mini_window_show:"0",mini_window_show_type:ei?"mouse_hover":"",request_id:null==v?void 0:v.request_id,live_position:Number(h)+1});if(I===B.lT.Follow){let t=e.split("?")[1],l=`/follow/live/${O}`;return{isChildRoute:!0,finalHref:`${l}?${t}`,targetPath:l,liveRoomUrl:e}}return{isChildRoute:!1,liveRoomUrl:e}},el=(0,a.useRef)(),[ei,eo]=(0,a.useState)(!1),en=a.useMemo(()=>{var e,t,l;return(null==C?void 0:null===(l=C.authorInfo)||void 0===l?void 0:null===(t=l.roomData)||void 0===t?void 0:null===(e=t.others)||void 0===e?void 0:e.web_enter_benefit_point_data)||{has_ongoing_lottery:!1,has_ongoing_lucky_money:!1}},[C]),er=(0,io.gE)(u,en.has_ongoing_lottery,en.has_ongoing_lucky_money,!0),ea=(0,is.cc)({web_rid:O,enter_from_merge:"web_homepage_follow",enter_method:"web_live_head",action_type:"click",room_id:E,is_livehead_preview_mini_window_show:"0",mini_window_show_type:ei?"mouse_hover":"",request_id:null==v?void 0:v.request_id,live_position:Number(h)+1});let es=(0,r.jsxs)("div",{className:m()(il.listItem,il.item,S,{[il.hidden]:j}),onClick:(n=c,s=h,e=>{var t,l,i,o,r,a,d,c,f,v,h,m,p,x,j,C,k;let L=Object.values((null==n?void 0:null===(o=n.__fakeAwemeInfo)||void 0===o?void 0:null===(i=o.authorInfo)||void 0===i?void 0:null===(l=i.roomData)||void 0===l?void 0:null===(t=l.stream_url)||void 0===t?void 0:t.pull_datas)||{}).length>0&&!(0,X.G6)(),S="number"==typeof(null==n?void 0:null===(r=n.paidLiveData)||void 0===r?void 0:r.paid_type)&&(null==n?void 0:null===(a=n.paidLiveData)||void 0===a?void 0:a.paid_type)!==0;if(!L&&!S){let e=null==n?void 0:null===(c=n.__fakeAwemeInfo)||void 0===c?void 0:null===(d=c.authorInfo)||void 0===d?void 0:d.roomData;null===ii.Z||void 0===ii.Z||null===(j=ii.Z.preLoadStream)||void 0===j||j.call(ii.Z,{h264PullData:null==e?void 0:null===(v=e.stream_url)||void 0===v?void 0:null===(f=v.live_core_sdk_data)||void 0===f?void 0:f.pull_data,h265PullData:null==e?void 0:null===(x=e.others)||void 0===x?void 0:null===(p=x.web_data)||void 0===p?void 0:null===(m=p.additional_stream_url)||void 0===m?void 0:null===(h=m.live_core_sdk_data)||void 0===h?void 0:h.pull_data})}lz.Z.sendLog("followHeadClick",{room_id:E,author_id:N,if_first_page:w?1:0,if_fold_live:y?1:0,live_head_rank:g,rank:g}),null==_||_(n,s),null==e||e.preventDefault(),M.emit(M.EVENT.videoPause,"LiveItem_genEnterRoomFn");let{liveRoomUrl:b,finalHref:P,isChildRoute:T}=et();if(T)(0,ia.X)({href:P,reusePlayer:$?1:0,webRid:O,abtestData:u,reuseId:W,roomId:E,from:I,_reusePlayer:0,usePreCreate:!0});else{;null===(k=window)||void 0===k||null===(C=k.open)||void 0===C||C.call(k,b,"_blank")}}),onMouseEnter:e=>{var t;null===(t=el.current)||void 0===t||t.mouseEnterHandler(e)},onMouseLeave:e=>{var t;null===(t=el.current)||void 0===t||t.mouseLeaveHandler(e)},"data-e2e":"follow-slide-avatar",children:[(0,r.jsx)(io.nh,{className:il.avatarLive,type:"extra-small",src:D,alt:V,uid:N,liveRoomUrl:ea,liveRoomParam:{logId:null==v?void 0:v.request_id},isShow:!1,logParams:{small_window_enter_method:"web_live_head_hover",request_id:null==v?void 0:v.request_id,live_position:h},onClick:e=>{var t;null===(t=e.preventDefault)||void 0===t||t.call(e)},isNeedSendLog:!0,isFirstLive:(null==F?void 0:null===(e=F.mod)||void 0===e?void 0:e.episode_stage)===2,isEcomLive:H,awemeInfo:C,from:I,position:"right",fixLeft:k||0,handlerRef:el,disableSelfEvent:!0,onShowChange:e=>{e&&eo(e)},useRedPack:!1,scene:L,abtestData:u}),(0,r.jsxs)("div",{className:il.authorDescriptionCt,children:[(0,r.jsx)("div",{className:il.authorInfo,children:z?(0,r.jsx)("div",{className:il.authorName,children:null==z?void 0:null===(t=z.map)||void 0===t?void 0:t.call(z,(e,t)=>{var l,i;return(0,r.jsx)(ir.Z,{text:e,className:m()({[il.redColor]:(null==e?void 0:null===(l=e.toLowerCase)||void 0===l?void 0:l.call(e))===(null==b?void 0:null===(i=b.toLowerCase)||void 0===i?void 0:i.call(b))})},t)})}):(0,r.jsx)(ir.Z,{text:V,className:il.authorName})}),Z&&Z.length>1&&(0,r.jsxs)("div",{className:il.uniqueIdBox,children:["抖音号:",null==Z?void 0:null===(l=Z.map)||void 0===l?void 0:l.call(Z,(e,t)=>{var l,i;return(0,r.jsx)("span",{className:m()({[il.redColor]:(null==e?void 0:null===(l=e.toLowerCase)||void 0===l?void 0:l.call(e))===(null==b?void 0:null===(i=b.toLowerCase)||void 0===i?void 0:i.call(b))}),children:e},t)})]}),er.icon&&(0,r.jsxs)("div",{className:il.redPackWrap,children:[(0,r.jsx)("img",{src:er.icon,className:il.redPackImg}),(0,r.jsx)("span",{className:il.redPackText,children:er.text})]})]})]});return(0,r.jsx)("li",{ref:ee,style:{position:"relative"},children:(0,P.DT)()?(0,r.jsx)(r.Fragment,{children:es}):(0,r.jsx)("a",{href:ea,children:es})})};var ip=l("36973"),i_=l("585271");function iw(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.indexOf("//");return t<0?`//p11.douyinpic.com/aweme/100x100/${e}`:0>e.indexOf("://")?e:e.substring(t)}let ig=(0,a.forwardRef)((e,t)=>(0,r.jsxs)("svg",(0,o._)((0,i._)({width:23,height:10,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,r.jsxs)("g",{clipPath:"url(#unread_svg__clip0_9359_84080)",children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.325 4.385c-.576 1.922-1.337 3.505-2.412 4.39-.943.778-1.127.777-5.87.763l-2.15-.005h-.221c-7.003-.008-7.014-.008-8.164-.757-.985-.643-1.881-2.063-2.58-3.848C3.923 2.371 7.87.822 12.255.822c3.758 0 7.268 1.331 10.07 3.563z",fill:"#41424C"}),(0,r.jsx)("path",{d:"M7.682 3.092h.636v.756h1.992v.612H8.318v.87h2.31v.612H8.822c.396.684 1.05 1.296 1.956 1.836l-.444.564c-.948-.72-1.614-1.524-2.004-2.4h-.012v2.67h-.636v-2.67h-.006c-.426.972-1.116 1.776-2.07 2.406l-.36-.594c.864-.48 1.512-1.08 1.932-1.812H5.372V5.33h2.31v-.87h-1.95v-.612h1.95v-.756zm5.014 1.02h1.884l.114-.252c-.558.024-1.158.042-1.794.042l-.168-.51c1.686 0 3.114-.114 4.284-.336l.288.492c-.576.12-1.242.21-2.004.27-.036.102-.072.198-.108.294h2.136v.528h-2.382l-.144.258h2.874v.552H14.43c-.072.09-.138.174-.204.252h2.892v2.934h-.594v-.222h-2.55v.222h-.594V6.554c-.264.222-.54.432-.828.636l-.336-.54a8.672 8.672 0 0 0 1.44-1.2h-1.284v-.552h1.734c.06-.084.12-.174.18-.258h-1.59v-.528zm1.278 2.814v.246h2.55v-.246h-2.55zm2.55-.468v-.252h-2.55v.252h2.55zm-2.55 1.182v.27h2.55v-.27h-2.55z",fill:"#fff"})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"unread_svg__clip0_9359_84080",children:(0,r.jsx)("path",{fill:"#fff",transform:"translate(.927 .822)",d:"M0 0h21.398v8.719H0z"})})})]}))),ix=(0,a.forwardRef)((e,t)=>(0,r.jsx)("svg",(0,o._)((0,i._)({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,r.jsx)("path",{d:"M9.267 7.983a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0zM15 7.983a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0zM3.5 7.983a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0z",fill:"#fff",fillOpacity:".5"})})));var ij=l("431493"),iy=l("396868");let iC=(0,a.forwardRef)((e,t)=>(0,r.jsxs)("svg",(0,o._)((0,i._)({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4a2 2 0 0 1 2-2h5.6a2 2 0 0 1 2 2v5.6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4zm2-.8h5.6a.8.8 0 0 1 .8.8v5.6a.8.8 0 0 1-.8.8H4a.8.8 0 0 1-.8-.8V4a.8.8 0 0 1 .8-.8z",fill:"#fff",fillOpacity:".5"}),(0,r.jsx)("path",{d:"M6.4 14a1.999 1.999 0 0 1-1.69-.93c-.077-.122.018-.27.162-.27H12a.8.8 0 0 0 .8-.8V4.872c0-.144.148-.24.27-.162.559.354.93.979.93 1.69V12a2 2 0 0 1-2 2H6.4z",fill:"#fff",fillOpacity:".5"})]}))),iI=(0,a.forwardRef)((e,t)=>(0,r.jsx)("svg",(0,o._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,r.jsx)("path",{d:"M18.333 10a8.333 8.333 0 1 1-16.666 0 8.333 8.333 0 0 1 16.666 0zM6.7 9.1a.9.9 0 1 0 0 1.8h6.6a.9.9 0 0 0 0-1.8H6.7z",fill:"#FE2C55"})}))),ik=(0,a.forwardRef)((e,t)=>(0,r.jsx)("svg",(0,o._)((0,i._)({width:36,height:36,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,r.jsx)("path",{d:"M22.4 12.4a.849.849 0 1 1 1.2 1.2L19.202 18l4.4 4.4a.849.849 0 1 1-1.202 1.2L18 19.202l-4.4 4.4a.849.849 0 1 1-1.2-1.202L16.798 18l-4.4-4.4a.849.849 0 1 1 1.202-1.2L18 16.798l4.4-4.4z",fill:"#fff",fillOpacity:".5"})})));var iL={userPannel:"Yb8VJBLr",close:"CpV_1xyI",header:"lx0Apf0w",nickname:"gWuZHptw",uniqueId:"UDPbT_eH",copyIcon:"WvTVjNds",operation:"boRF0j5X",cancleFollow:"BAnuErfx",text:"_zP2Pqh9",icon:"zIwAvMYD",followConfirmModal:"whac5Wzo",mask:"F3bXow5W",positionCenter:"KANmJYj0"},iS=l("119778"),ib=l("782166"),iN=l("771410");let iE=e=>{let{followingInfo:t,onClose:l,onCancle:i,onUnFollowSuccess:o,onClickUnFollow:n}=e,s=(0,a.useRef)(null),{secUid:d="",nickname:u,uid:c="",uniqueId:f,followStatus:v,followerStatus:h}=t||{},{userInfo:m,dispatch:p}=(0,la.useUserInfoContext)()||{},{isLogin:_,info:w}=m||{},{unFollow:g}=(0,ij.OM)({selfUid:null==w?void 0:w.uid,actionUid:c,defaultFollowerStatus:h,defaultFollowStatus:v,isLogin:_,onLoginSuccess:()=>null==p?void 0:p({type:"updateUserInfo"}),success:e=>{let{action:t}=e;"unFollow"===t&&(null==o||o(),iy.F.info("已取消关注"))},fail:ij.GH}),x=(0,lS.Y)(()=>{iN.Z.report("follow_head_more_copy_button_show",{enter_from:"follow"})}),j=(0,lS.Y)(()=>{iN.Z.report("follow_head_more_cancel_follow_show",{enter_from:"follow"})}),y=e=>{iN.Z.report("follow_cancel_confirm_pop_show",{enter_from:"follow",position:"follow_more"}),e$.Modal.confirm({className:iL.followConfirmModal,title:"确认取消关注?",content:e||"取消关注后,对方将从关注列表内移除。",okText:"取消关注",cancelText:"返回",centered:!0,icon:null,zIndex:1e5,closable:!1,maskClosable:!1,getPopupContainer:()=>document.body,onOk:()=>{g(),iN.Z.report("follow_cancel_confirm_pop_click",{enter_from:"follow",position:"follow_more",button_name:"取消关注"})},onCancel:()=>{null==i||i(),iN.Z.report("follow_cancel_confirm_pop_click",{enter_from:"follow",position:"follow_more",button_name:"返回"})}})},C=async()=>{null==n||n(),iN.Z.report("follow_head_more_cancel_follow_click",{enter_from:"follow"});let e=null==t?void 0:t.secret;if(void 0===e){let t=await (0,iS.fetchUserProfile)(d);if((null==t?void 0:t.statusCode)===0){var l;e=null==t?void 0:null===(l=t.user)||void 0===l?void 0:l.secret}}y(e?"对方为私密账号,再次关注时需等待批准。":"取消关注后,对方将从关注列表内移除。")};return(0,a.useEffect)(()=>{if(s.current){var e,t,l,i,o,n,r,a;let d=null==s?void 0:null===(t=s.current)||void 0===t?void 0:null===(e=t.closest)||void 0===e?void 0:e.call(t,".semi-portal"),u=null==s?void 0:null===(i=s.current)||void 0===i?void 0:null===(l=i.closest)||void 0===l?void 0:l.call(i,".semi-portal-inner");d&&(null==d||null===(n=d.classList)||void 0===n||null===(o=n.add)||void 0===o||o.call(n,iL.mask)),u&&(null==u||null===(a=u.classList)||void 0===a||null===(r=a.add)||void 0===r||r.call(a,iL.positionCenter))}},[]),(0,r.jsxs)("div",{className:iL.userPannel,ref:s,children:[(0,r.jsxs)("div",{className:iL.header,children:[(0,r.jsx)("div",{className:iL.nickname,children:u}),(0,r.jsxs)("div",{className:iL.uniqueId,children:[(0,r.jsxs)("div",{children:["抖音号:",f]}),(0,r.jsx)("div",{ref:x,children:(0,r.jsx)(eX.Z,{onClick:()=>{iN.Z.report("follow_head_more_copy_button_click",{enter_from:"follow"});try{(0,ib.J)(f||""),iy.F.info("已复制")}catch(e){iy.F.info("复制失败,请重试")}},className:iL.copyIcon,src:iC,width:16,height:16,viewBox:"0 0 16 16"})})]})]}),(0,r.jsx)("div",{className:iL.operation,children:(0,r.jsxs)("div",{className:iL.cancleFollow,children:[(0,r.jsx)("span",{onClick:C,className:iL.text,children:"取消关注"}),(0,r.jsx)("div",{ref:j,children:(0,r.jsx)(eX.Z,{onClick:C,className:iL.icon,src:iI,width:20,height:20,viewBox:"0 0 20 20"})})]})}),(0,r.jsx)("div",{className:iL.close,onClick:l,children:(0,r.jsx)(eX.Z,{src:ik,width:36,height:36,viewBox:"0 0 36 36"})})]})},iP=function(){var e,t;let{followingInfo:l,isListCollapse:i=!1,onClickHandler:o,needUnReadTag:n=!1,isFirstPage:s=!1,ifFoldLive:d=!1,rank:u="15+",listRank:c="15+",searchVal:f,updateUserList:v}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{secUid:h="",avatarUri:p,customVerify:_="",enterpriseVerifyReason:w="",nickname:g,uid:x="",accountCertInfo:j,selectedName:y,selectedUniqueId:C}=l||{},I=lM(h),k=(0,tO._)(),L=I>0&&n,[S,b]=(0,a.useState)(!1),N=(0,lS.x)(()=>{lz.Z.sendLog("followHeadShow",{author_id:x,if_new_post:L?1:0,if_first_page:s?1:0,if_fold_live:0,rank:u})});return(0,a.useEffect)(()=>{if(S)return M.listen(M.EVENT.followListScroll,()=>{b(!1)})},[S]),(0,r.jsxs)("li",{className:m()(il.listItem,il.item,il.optimizeItem,{[il.sidebarItemHover]:!!k.sidebarItemHover,[il.isCollapse]:i}),onClick:()=>{lz.Z.sendLog("followHeadClick",{author_id:x,if_new_post:L?1:0,if_first_page:s?1:0,if_fold_live:0,rank:u,follow_head_rank:c}),null==o||o()},ref:N,onMouseEnter:()=>{iN.Z.report("follow_head_more_button_show",{enter_from:"follow"})},children:[(0,r.jsxs)("div",{className:il.avatarBadgeCt,children:[(0,r.jsx)(i_.q,{type:"extraExtraSmall",src:iw(p)}),i&&L&&(0,r.jsx)(eX.Z,{width:36,height:36,src:ig,className:il.unreadTag})]}),!i&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:il.authorDescriptionCt,children:[(0,r.jsxs)("div",{className:il.authorInfo,children:[y?(0,r.jsx)("div",{className:il.authorName,children:null==y?void 0:null===(e=y.map)||void 0===e?void 0:e.call(y,(e,t)=>{var l,i;return(0,r.jsx)(ir.Z,{text:e,className:m()({[il.redColor]:(null==e?void 0:null===(l=e.toLowerCase)||void 0===l?void 0:l.call(e))===(null==f?void 0:null===(i=f.toLowerCase)||void 0===i?void 0:i.call(f))})},t)})}):(0,r.jsx)(ir.Z,{text:g,className:il.authorName}),j&&(0,r.jsx)(ip.C,{iconClassName:il.badgeIcon,accountCertInfo:j,className:il.accountCertBadge,isRoleNameShow:!1})]}),C&&(0,r.jsxs)("div",{className:il.uniqueIdBox,children:["抖音号:",null==C?void 0:null===(t=C.map)||void 0===t?void 0:t.call(C,(e,t)=>{var l,i;return(0,r.jsx)("span",{className:m()({[il.redColor]:(null==e?void 0:null===(l=e.toLowerCase)||void 0===l?void 0:l.call(e))===(null==f?void 0:null===(i=f.toLowerCase)||void 0===i?void 0:i.call(f))}),children:e},t)})]}),L&&(0,r.jsx)("div",{className:il.notSeenTag,children:(0,r.jsxs)("span",{children:[I>=99?"99":I,"个作品未看"]})})]}),(0,r.jsx)(e$.Popover,{className:il.popover,trigger:"custom",visible:S,showArrow:!1,content:(0,r.jsx)(iE,{followingInfo:l,onClose:()=>b(!1),onUnFollowSuccess:()=>{b(!1),null==v||v(e=>e.filter(e=>e.uid!==x))},onCancle:()=>b(!0),onClickUnFollow:()=>{b(!1)}}),stopPropagation:!0,onClickOutSide:()=>b(!1),children:(0,r.jsx)("div",{className:il.ellipsisIcon,onClick:e=>{e.stopPropagation(),e.preventDefault(),b(!0),iN.Z.report("follow_head_more_button_click",{enter_from:"follow"})},children:(0,r.jsx)(eX.Z,{width:16,height:16,viewBox:"0 0 16 16",src:ix})})})]})]})};var iT=l("855436"),iR=l("593124"),iF=l("600767"),iM=l("277764"),iA=l("37821");let iO=(0,iT.ZP)(()=>Promise.all([l.e("23634"),l.e("73286"),l.e("41162"),l.e("42422"),l.e("15799"),l.e("21133"),l.e("28161"),l.e("73356"),l.e("69855"),l.e("5974"),l.e("42794"),l.e("15915"),l.e("72230"),l.e("68055"),l.e("44077"),l.e("51705"),l.e("24882"),l.e("73481"),l.e("10771"),l.e("6593"),l.e("6757"),l.e("44882"),l.e("64942"),l.e("26973"),l.e("74352"),l.e("90597")]).then(l.bind(l,604467)),{ssr:!1}),iD="暂无可看内容,去看看其他作者的作品吧",iV="服务异常,请稍后再试",iH=e=>{let{targetAwemeId:t,targetAuthorSecUid:l,setAwemeInfoList:i,setCurrentNumber:o,close:n,currentAwemeInfo:r,notSeenItemList:s}=e,d=(0,a.useRef)({});return(0,a.useEffect)(()=>{let e=!1;if(!t&&!l){null==n||n(),iy.F.info(iV);return}let r=()=>(0,iS.fetchUserPost)({userId:l}).then(t=>{if(e)return;let{statusCode:r=-1,data:a=[]}=t;if(0!==r){null==n||n(),iy.F.info(iV);return}if((null==a?void 0:a.length)===0){null==n||n(),iy.F.info(iD),lV(l);return}i(a),o(a.filter(e=>e.tag.isTop).length)});return t?(0,iF.m_)({awemeId:t,originType:iA.F.FollowModal}).then(a=>{if(e)return;let{statusCode:s,detail:d,isUnknownAweme:u}=a;if(0===s){i([d]),o(0);return}if(u){if(lD(l,t),l)return r(),()=>{e=!0};null==n||n(),iy.F.info(iD),lV(l);return}null==n||n(),iy.F.info(iV)}):l&&r(),()=>{e=!0}},[]),(0,a.useEffect)(()=>{var e;(null==r?void 0:r.awemeId)&&!d.current[null==r?void 0:r.awemeId]&&(null==r?void 0:r.awemeId)&&(null==s?void 0:s.length)>0&&(null==s?void 0:null===(e=s.includes)||void 0===e?void 0:e.call(s,null==r?void 0:r.awemeId))&&(d.current[null==r?void 0:r.awemeId]=!0,(0,iM.O)({awemeInfo:r}))},[r,s]),{defaultTab:iR.L.Author,isTabFeed:!0}};var iU=function(){let{targetAuthorSecUidRef:e,targetAwemeIdRef:t,awemeInfoRef:l,closeFollowUpdateModal:i,notSeenItemList:o=[],logParams:n={enter_from:"follow",enter_from_merge:"follow"}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=(0,tO._)()||{},s=(0,la.useUserInfoContext)()||{};return(0,r.jsx)(iO,{isUseChannelFeed:!1,modalInnerFeedCard:"author_card",userContext:s,abtestData:a,notSeenItemList:o,targetAwemeId:null==t?void 0:t.current,targetAuthorSecUid:null==e?void 0:e.current,modalEnterFrom:lT.a.FollowAuthorModal,close:i,anyHooks:iH,scene:lT.a.FollowAuthorModal,logParams:n,isSelfMetaProvider:!0})},iz=l("145204");l("112459");var iZ=l("250532"),iB={container:"UALN4ePF",inputContent:"Gr2Jdser",isFocus:"umrDQD4y",input:"fiGlI1Bq",search:"Jc5h2FK7",clear:"eWncODkk",isMiniType:"YFjTFDIT"};let iW=(0,a.forwardRef)((e,t)=>(0,r.jsx)("svg",(0,o._)((0,i._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 5.333a5.667 5.667 0 1 0 3.237 10.319l2.723 2.722a1 1 0 0 0 1.414-1.415l-2.722-2.722A5.667 5.667 0 0 0 11 5.333zM7.333 11a3.667 3.667 0 1 1 7.334 0 3.667 3.667 0 0 1-7.334 0z",fill:"#2F3035",fillOpacity:".4"})}))),i$=(0,a.forwardRef)((e,t)=>(0,r.jsxs)("svg",(0,o._)((0,i._)({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,r.jsx)("g",{clipPath:"url(#semi-icons-clear_svg__clip0_1278_30228)",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 15.333A7.333 7.333 0 1 0 8 .667a7.333 7.333 0 0 0 0 14.666zm3.357-4.091a1 1 0 0 1-1.414.024L8.025 9.414l-1.853 1.918a1 1 0 1 1-1.439-1.39l1.853-1.917-1.918-1.853a1 1 0 0 1 1.389-1.438l1.918 1.852 1.853-1.918a1 1 0 0 1 1.438 1.39L9.414 7.974l1.918 1.853a1 1 0 0 1 .025 1.414z",fill:"#2F3035",fillOpacity:".7"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"semi-icons-clear_svg__clip0_1278_30228",children:(0,r.jsx)("path",{fill:"#fff",d:"M0 0h16v16H0z"})})})]}))),iq=e=>{let{className:t,value:l,placeholder:i,isMiniType:o=!1,onClickMiniIcon:n,onChange:s}=e,[d,u]=(0,a.useState)(!1),c=(0,lS.Y)(()=>{iN.Z.report("follow_head_search_input_show",{enter_from:"follow"})}),f=(0,lS.Y)(()=>{iN.Z.report("follow_head_search_remove_show",{enter_from:"follow"})});return(0,a.useEffect)(()=>{d?(0,iZ.o)({pauseCustomShortcut:!0,pauseGlobalShortcut:!0,pausePlayControlShortcut:!0},"follow/searchInput"):(0,iZ.m)("follow/searchInput")},[d]),(0,a.useEffect)(()=>()=>{(0,iZ.m)("follow/searchInput")},[]),(0,r.jsx)("div",{ref:c,className:m()(iB.container,{[iB.isMiniType]:o},t),onClick:()=>{iN.Z.report("follow_head_search_input_click",{enter_from:"follow"})},children:(0,r.jsx)("div",{className:m()(iB.inputContent,{[iB.isFocus]:d}),children:o?(0,r.jsx)(eX.Z,{width:24,height:24,viewBox:"0 0 24 24",src:iW,className:iB.search,onClick:()=>{null==n||n()}}):(0,r.jsx)(e$.Input,{className:iB.input,placeholder:i,value:l,onKeyDown:e=>{var t;null==e||null===(t=e.stopPropagation)||void 0===t||t.call(e)},onChange:e=>{s(e)},onBlur:()=>{u(!1)},onFocus:()=>{u(!0)},prefix:(0,r.jsx)(eX.Z,{width:24,height:24,viewBox:"0 0 24 24",src:iW,className:iB.search}),showClear:!0,onClear:()=>{iN.Z.report("follow_head_search_remove_click",{enter_from:"follow"})},clearIcon:(0,r.jsx)("span",{ref:f,children:(0,r.jsx)(eX.Z,{width:16,height:16,viewBox:"0 0 16 16",src:i$,className:iB.clear,onClick:()=>{s("")}})})})})})};var iJ=l("39765"),iY=l("767666"),iK={searchList:"yBcdomE8",searchListCollapse:"u7Y_SWcO",searchListNotCollapse:"kYVNNWt9",optimizeLiveItem:"P4yR5K9j",section:"W8XEhYUN",listTitle:"UQIXW94l",liveList:"wHilrvON",choiceList:"FrW0Y5jG",newLiveList:"hZD1mRH6"};let iG=e=>`${e<15?e:"15+"}`,iX=e=>{var t;let{searchVal:l,searchList:i=[],searchLiveList:o=[],searchIsLoading:n,isListCollapse:a,onClickHandler:s,setSearchList:d,liveList:u=[],onLiveItemClick:c,logParams:f,abtestData:v,userInfo:h,firstPageCount:p=0}=e,_=!!(null==v?void 0:v.pcFollowtopSearch);return(0,r.jsxs)("div",{className:m()(iK.searchList,{[iK.searchListCollapse]:a,[iK.searchListNotCollapse]:!a}),children:[_?(0,r.jsxs)(r.Fragment,{children:[!a&&!n&&(null==o?void 0:o.length)===0&&(null==i?void 0:i.length)===0&&(0,r.jsx)(iJ.H,{desc:"没有搜索到相关的内容",title:"搜索结果为空",icon:(0,r.jsx)(iY.Z,{})}),!n&&(null==o?void 0:o.length)>0&&(0,r.jsxs)("div",{className:iK.section,children:[!a&&(0,r.jsxs)("div",{className:iK.listTitle,children:["正在直播(",o.length,")"]}),(0,r.jsx)("ul",{className:m()(iK.liveList,iK.newLiveList),children:o.map((e,t)=>(0,r.jsx)(im,{onClick:c,isPreCreated:!1,liveInfo:e,logParams:f,listIndex:t,liveList:o,abtestData:v,liveShowCountInFirstScreen:0,awemeInfo:e.__fakeAwemeInfo,from:"follow",fixLeft:a?8:144,ifFoldLive:!1,isFirstPage:!0,hidden:!1,rank:iG(t),isLogin:null==h?void 0:h.isLogin,className:m()(iK.optimizeLiveItem),searchVal:l},e.anchorId))})]}),!n&&(null==i?void 0:i.length)>0&&(0,r.jsxs)("div",{className:iK.section,children:[!a&&(0,r.jsxs)("div",{className:iK.listTitle,children:["我的关注(",i.length,")"]}),(0,r.jsx)("ul",{className:iK.choiceList,children:i.map((e,t)=>(0,r.jsx)(iP,{followingInfo:e,isListCollapse:a,onClickHandler:()=>s(e),needUnReadTag:!1,rank:iG(t),listRank:iG(t),isFirstPage:!0,ifFoldLive:!1,searchVal:l,updateUserList:d},e.uid))})]})]}):(0,r.jsxs)(r.Fragment,{children:[!a&&!n&&(null==i?void 0:i.length)===0&&(0,r.jsx)(iJ.H,{desc:"没有搜索到相关的内容",title:"搜索结果为空",icon:(0,r.jsx)(iY.Z,{})}),!n&&(null==i?void 0:i.length)>0&&(null==i?void 0:null===(t=i.map)||void 0===t?void 0:t.call(i,(e,t)=>{let i=u.findIndex(t=>t.anchorId===e.uid),o=u[i];return o?(0,r.jsx)(im,{onClick:c,isPreCreated:!1,liveInfo:o,logParams:f,listIndex:i,liveList:u,abtestData:v,liveShowCountInFirstScreen:0,awemeInfo:o.__fakeAwemeInfo,from:"follow",fixLeft:a?8:144,ifFoldLive:!1,isFirstPage:!0,hidden:!1,rank:iG(t),isLogin:null==h?void 0:h.isLogin,className:m()(iK.optimizeLiveItem),searchVal:l},o.anchorId):(0,r.jsx)(iP,{followingInfo:e,isListCollapse:a,onClickHandler:()=>s(e),needUnReadTag:!1,rank:iG(t),listRank:iG(t),isFirstPage:!0,ifFoldLive:!1,searchVal:l,updateUserList:d},e.uid)}))]}),n&&(0,r.jsx)(lb.gb,{className:"",text:""})]})};l("117232");let iQ=(0,a.forwardRef)((e,t)=>(0,r.jsxs)("svg",(0,o._)((0,i._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,r.jsx)("path",{d:"M3 16h5v-1.5H3V16zm0-5.25h5v-1.5H3v1.5zM3 5.5h14V4H3v1.5z",fill:"#fff",fillOpacity:".5"}),(0,r.jsx)("path",{d:"M9.5 11.062l1.621-2.133c.289-.38.88-.17.88.313v7.031M17.5 13.5l-1.635 1.963c-.297.357-.865.14-.865-.331V8",stroke:"#fff",strokeOpacity:".5",strokeWidth:1.5})]})));var i0="rL5ewmrv",i1="l94ODOPF",i2="fd4BDidz",i3="wLUGDgWw",i8="gA3QxE8z",i5="Rte3kpIx";function i6(e){let{className:t,sortType:l,setSortType:i,onClickItem:o}=e,n=e=>{if(null==o||o(e),e!==l)i(e)},a=[{title:"综合排序",id:"recommend",onclick:()=>n(t8.recommend)},{title:"最近关注",id:"latest",onclick:()=>n(t8.latest)},{title:"最早关注",id:"earliest",onclick:()=>n(t8.earliest)}];return(0,r.jsx)("ul",{className:t,children:a.map(e=>(0,r.jsx)("li",{className:m()({[i5]:t8[l]===e.id}),children:(0,r.jsx)("a",{id:e.id,onClick:e.onclick,children:e.title})},e.title))})}function i4(e){let{sortType:t,setSortType:l,className:i}=e,[o,n]=(0,a.useState)(!1),s={[t8.earliest]:"最早关注",[t8.latest]:"最近关注",[t8.recommend]:"综合排序"},d=(0,lS.Y)(()=>{iN.Z.report("follow_head_sort_button_show",{button_list:"最早关注,最近关注,综合排序",enter_from:"follow"})});return(0,r.jsx)(e$.Popover,{spacing:6,className:i8,showArrow:!1,position:"bottomLeft",content:(0,r.jsx)(i6,{onClickItem:e=>{iN.Z.report("follow_head_sort_button_click",{button_list:"最早关注,最近关注,综合排序",enter_from:"follow",button_name:s[e]})},sortType:t,setSortType:l}),onVisibleChange:e=>{n(e)},children:(0,r.jsxs)("div",{ref:d,className:m()(i0,i,{[i3]:o}),children:[(0,r.jsx)(ir.Z,{className:i1,text:s[t]}),(0,r.jsx)(iQ,{className:i2})]})})}let i7=e=>`${e<15?e:"15+"}`,i9=()=>{let e=(0,tO._)()||{},t=tH.useUserContext(),{liveList:l,isListCollapse:o,setIsListCollapse:n,choiceFollowingList:s,setChoiceFollowingList:d,logParams:c,hasMoreChoice:f,setLiveList:v,sortType:h,setSortType:p,isSortTypeChangeLoading:_,hasMoreLive:w,loadLiveData:g,isLiveError:x}=lp(),{searchVal:y,setSearchVal:C,searchList:I,searchLiveList:k,searchIsLoading:L,setSearchList:S}=lq({enableSearch:!0}),{scrollEl:N,setScrollEl:E,setLoadingEl:T}=l3(),{isMobile:R,isiPad:F}=(0,j.X)(),{setLiveTitleEl:A,setChoiceTitleEl:O,partMap:D,isPartEmpty:V,topTitleText:H,currentPartKey:U}=l6({scrollEl:N,hasMore:f,searchVal:y});(0,a.useEffect)(()=>{D[l8.Live].canShow&&iN.Z.report("fold_live_head_show",{enter_from:"follow",live_count:l.length})},[D[l8.Live].canShow]);let z=(0,lS.Y)(()=>{iN.Z.report("follow_head_title_show",{enter_from:"follow",follow_count:null==s?void 0:s.length})}),{setChoiceUlEl:Z,showPopupTip:B}=l4({enable:!0}),{firstPageCount:W}=ie({scrollEl:N,titleEl:D[l8.Choice].titleEl}),{setHasClickedCollapse:$}=it(),q=lU(),[J,Y]=(0,a.useState)(!1),[K,G]=(0,a.useState)(-1),[X,Q]=(0,a.useState)(-1e3),ee=(0,a.useRef)(null),et=(0,P.DT)()?2:1,el=1===et,ei=2===et,eo=!!(null==e?void 0:e.pcFollowtopPagesize),[en,er]=(0,lI.Z)();(0,a.useEffect)(()=>{er&&g&&g(!0)},[er,g]),(0,u.C)(b.w3.components.follow_side_list),(0,lk.Z)(()=>{M.listen(M.EVENT.exitChildRoute,async()=>{try{if(l.length>0){let t=await (0,iz.runClientAITask)(l,e);Number.isInteger(null==t?void 0:t.maxProbIdx)&&Q(null==t?void 0:t.maxProbIdx)}}catch(e){}}),(async()=>{try{if(l.length>0){(0,iz.reportClientAIData)(l.length);let t=await (0,iz.runClientAITask)(l,e);Number.isInteger(null==t?void 0:t.maxProbIdx)&&Q(null==t?void 0:t.maxProbIdx)}}catch(e){}})()},[l]),(0,lL.Z)(()=>{C("")},[h]);let ea=(e,t)=>{try{(0,iz.updateClientAICounterOnClick)(`${t}`),(0,iz.updateStorageFeatureOnClick)(t,e,K),G(t)}catch(e){}};return V?null:(0,r.jsxs)("div",{className:m()(il.container,{[il.collapseList]:o}),children:[(0,r.jsxs)("div",{className:il.topTitle,children:[(0,r.jsxs)("div",{className:m()(il.operateIcon,il.positionLeft),children:[(0,r.jsx)(e$.Tooltip,{className:il.tip,position:"bottom",content:(0,r.jsx)("span",{className:il.tipText,children:o?"展开":"收起"}),trigger:"custom",visible:!R&&!F&&J,children:(0,r.jsx)("div",{ref:ee,style:{position:"relative"},onMouseEnter:()=>Y(!0),onMouseLeave:()=>Y(!1),onClick:()=>{Y(!1),$(!0),null==n||n(e=>!e),lz.Z.sendLog(o?"followCoverOpen":"followCoverClose")},children:(0,r.jsx)(lP.z,{className:il.iconSvg,svg:o?(0,r.jsx)(lE,{}):(0,r.jsx)(lN,{})})})}),!o&&(0,r.jsx)("div",{className:il.text,children:"列表"})]}),!o&&(0,r.jsx)(i4,{className:il.sortIcon,sortType:h,setSortType:p})]}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(iq,{className:il.searchInput,value:y,placeholder:"搜索用户名或抖音号",onChange:C,isMiniType:o,onClickMiniIcon:()=>{null==n||n(!1)}}),!o&&""===y&&(0,r.jsx)("div",{className:m()(il.followTitle,il.topTitle),children:(0,r.jsx)("div",{className:il.title,children:H})})]}),(0,r.jsxs)("div",{className:m()(il.followingList,il.isFollowOptimize,{[il.followingListCollapse]:o}),ref:E,children:[(0,r.jsxs)("div",{className:m()({[il.hidden]:""!==y}),children:[D[l8.Live].canShow&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:m()(il.listTitle),ref:A,children:D[l8.Live].text}),(0,r.jsx)("ul",{className:m()(il.liveList,il.newLiveList),children:l.map((i,n)=>{var a;let s=!1;return el&&(s=X===n),ei&&(s=n<4),(0,r.jsx)(im,{onClick:ea,isPreCreated:s,liveInfo:i,logParams:c,listIndex:n,liveList:l,abtestData:e,liveShowCountInFirstScreen:0,awemeInfo:i.__fakeAwemeInfo,from:"follow",isLogin:null===(a=t.userInfo)||void 0===a?void 0:a.isLogin,fixLeft:o?8:144,ifFoldLive:!1,isFirstPage:n<=W,hidden:!1,rank:i7(n),className:m()(il.optimizeLiveItem)},i.anchorId)})}),eo&&w&&!x&&(0,r.jsx)("div",{ref:en,children:(0,r.jsx)(lb.gb,{})}),eo&&x&&(0,r.jsxs)("div",{className:il.errorTip,children:["服务异常,请",(0,r.jsx)("span",{className:il.retry,onClick:()=>null==g?void 0:g(!0),children:"重试"})]})]}),D[l8.Choice].canShow&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{ref:z,className:m()(il.listTitle,il.listFollowTitle),children:(0,r.jsx)("div",{ref:O,className:il.title,children:D[l8.Choice].text})}),(0,r.jsx)("ul",{ref:Z,className:il.choiceList,children:!_&&s.map((e,t)=>{var i;let n=t+l.length,a=t+l.length<W;return(0,r.jsx)(iP,{followingInfo:e,isListCollapse:o,onClickHandler:()=>q.onFollowItemClick(e),needUnReadTag:(null===(i=e.notSeenItemList)||void 0===i?void 0:i.length)>0,rank:i7(n),listRank:i7(t),isFirstPage:a,ifFoldLive:!1,searchVal:y,updateUserList:d},e.uid)})})]}),f&&!w&&(0,r.jsx)("div",{ref:T,children:(0,r.jsx)(lb.gb,{})}),q.isModalShow&&(0,r.jsx)(iU,(0,i._)({},q)),(0,r.jsx)(tV.IsLivingPluginFollowList,{liveList:l,setLiveList:v}),(0,r.jsx)(tV.IsLivingPluginAnchorList,{dataList:s})]}),""!==y&&(0,r.jsx)(iX,{searchVal:y,searchList:I,searchLiveList:k,searchIsLoading:L,isListCollapse:o,onClickHandler:q.onFollowItemClick,setSearchList:S,liveList:l,onLiveItemClick:ea,logParams:c,abtestData:e,firstPageCount:W,userInfo:t.userInfo})]})]})};var oe=()=>{let{isListEmpty:e,isListCollapse:t}=lp(),[l,i]=(0,a.useState)(!0),o=(0,tO._)();return(0,a.useEffect)(()=>{!l&&setTimeout(()=>{i(!0)},0)},[l]),(0,S.o)(()=>M.listen(M.EVENT.RefreshFeedList,()=>{i(!1)}),[o]),(0,r.jsxs)(r.Fragment,{children:[l&&(0,r.jsx)(i9,{}),e&&(0,r.jsx)(lC,{isListCollapse:t})]})};let ot=a.memo(e=>{let{isListShow:t,setIsListShow:l}=e,a=(0,tD.j)(),{awemeFeed:s}=a,d=(0,n._)(a,["awemeFeed"]),{isVideoFold:u}=(0,lv.p0)();return t?(0,r.jsx)(lf.SV,{Slardar:lh.oe,onError:e=>{l(!1)},children:(0,r.jsx)(tD.b,{context:(0,o._)((0,i._)({},d),{metaCtxId:"followAuthorModal"}),children:(0,r.jsx)("div",{"data-bytereplay-mask":"strict",className:m()(l_,{[lw]:e.isListCollapse,[lg]:u}),children:(0,r.jsx)(lm.Provider,{value:e,children:(0,r.jsx)(oe,{})})})})}):null},(e,t)=>{let l=T.Le.getConfig(T.gI.AbtestData);if(!(null==l?void 0:l.enableZustand))return!1;for(let l in e)if(e[l]!==t[l])return!1;return!0});var ol=l("624386");let oi=(0,a.forwardRef)((e,t)=>(0,r.jsxs)("svg",(0,o._)((0,i._)({width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,r.jsx)("rect",{x:"-.001",width:32,height:32,rx:16,fill:"url(#avatar1_svg__paint0_linear_1054_3037)"}),(0,r.jsx)("g",{clipPath:"url(#avatar1_svg__clip0_1054_3037)",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 18.89c2.945 0 5.333-2.587 5.333-5.778 0-3.191-2.388-5.778-5.333-5.778-2.946 0-5.334 2.587-5.334 5.778 0 3.19 2.388 5.778 5.334 5.778zm0 19.883c7.061 0 12.785-3.98 12.785-8.89 0-4.908-5.724-8.888-12.785-8.888-7.062 0-12.786 3.98-12.786 8.889 0 4.91 5.724 8.889 12.786 8.889z",fill:"#fff",fillOpacity:".75"})}),(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"avatar1_svg__paint0_linear_1054_3037",x1:15.999,y1:0,x2:15.999,y2:32,gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#FF4D4D"}),(0,r.jsx)("stop",{offset:1,stopColor:"#FF52CE"})]}),(0,r.jsx)("clipPath",{id:"avatar1_svg__clip0_1054_3037",children:(0,r.jsx)("path",{d:"M0 16C0 7.163 7.163 0 16 0c8.836 0 16 7.163 16 16s-7.164 16-16 16C7.162 32 0 24.837 0 16z",fill:"#fff"})})]})]}))),oo=(0,a.forwardRef)((e,t)=>(0,r.jsxs)("svg",(0,o._)((0,i._)({width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,r.jsx)("rect",{width:32,height:32,rx:16,fill:"url(#avatar2_svg__paint0_linear_1054_3082)"}),(0,r.jsx)("g",{clipPath:"url(#avatar2_svg__clip0_1054_3082)",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 18.89c2.946 0 5.333-2.587 5.333-5.778 0-3.191-2.387-5.778-5.333-5.778-2.945 0-5.333 2.587-5.333 5.778 0 3.19 2.388 5.778 5.333 5.778zm0 19.883c7.061 0 12.786-3.98 12.786-8.89 0-4.908-5.725-8.888-12.786-8.888s-12.786 3.98-12.786 8.889c0 4.91 5.725 8.889 12.786 8.889z",fill:"#fff",fillOpacity:".75"})}),(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"avatar2_svg__paint0_linear_1054_3082",x1:16,y1:0,x2:16,y2:32,gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#FF922D"}),(0,r.jsx)("stop",{offset:1,stopColor:"#FF6767"}),(0,r.jsx)("stop",{offset:1,stopColor:"#F44"})]}),(0,r.jsx)("clipPath",{id:"avatar2_svg__clip0_1054_3082",children:(0,r.jsx)("path",{d:"M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16z",fill:"#fff"})})]})]}))),on=(0,a.forwardRef)((e,t)=>(0,r.jsxs)("svg",(0,o._)((0,i._)({width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,r.jsx)("rect",{width:32,height:32,rx:16,fill:"url(#avatar3_svg__paint0_linear_1054_3126)"}),(0,r.jsx)("g",{clipPath:"url(#avatar3_svg__clip0_1054_3126)",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 18.89c2.946 0 5.333-2.587 5.333-5.778 0-3.191-2.387-5.778-5.333-5.778-2.945 0-5.333 2.587-5.333 5.778 0 3.19 2.388 5.778 5.333 5.778zm0 19.883c7.061 0 12.786-3.98 12.786-8.89 0-4.908-5.725-8.888-12.786-8.888s-12.786 3.98-12.786 8.889c0 4.91 5.725 8.889 12.786 8.889z",fill:"#fff",fillOpacity:".75"})}),(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"avatar3_svg__paint0_linear_1054_3126",x1:16,y1:0,x2:16,y2:32,gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#4B93FF"}),(0,r.jsx)("stop",{offset:1,stopColor:"#63D0FF"})]}),(0,r.jsx)("clipPath",{id:"avatar3_svg__clip0_1054_3126",children:(0,r.jsx)("path",{d:"M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16z",fill:"#fff"})})]})]}))),or=(0,a.forwardRef)((e,t)=>(0,r.jsxs)("svg",(0,o._)((0,i._)({width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,r.jsx)("rect",{width:32,height:32,rx:16,fill:"url(#avatar4_svg__paint0_linear_1054_3171)"}),(0,r.jsx)("g",{clipPath:"url(#avatar4_svg__clip0_1054_3171)",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 18.89c2.946 0 5.333-2.587 5.333-5.778 0-3.191-2.387-5.778-5.333-5.778-2.945 0-5.333 2.587-5.333 5.778 0 3.19 2.388 5.778 5.333 5.778zm0 19.883c7.061 0 12.786-3.98 12.786-8.89 0-4.908-5.725-8.888-12.786-8.888s-12.786 3.98-12.786 8.889c0 4.91 5.725 8.889 12.786 8.889z",fill:"#fff",fillOpacity:".75"})}),(0,r.jsxs)("defs",{children:[(0,r.jsxs)("linearGradient",{id:"avatar4_svg__paint0_linear_1054_3171",x1:16,y1:0,x2:16,y2:32,gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#39CF87"}),(0,r.jsx)("stop",{offset:1,stopColor:"#349CC8"})]}),(0,r.jsx)("clipPath",{id:"avatar4_svg__clip0_1054_3171",children:(0,r.jsx)("path",{d:"M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16z",fill:"#fff"})})]})]}))),oa=e=>{let{isShowGuide:t,onCloseGuide:l}=(0,ol.e)({type:"follow"}),i=(0,a.useRef)(!1),{isClientMiniWin:o,awemeInfoList:n,setAwemeInfoList:r,liveList:s,updateList:d}=e,u=e=>{let t=lM(e.secUid);return`${t>=99?"99":t}个作品未看`},c=()=>{let e=[];return s.forEach((t,l)=>{l<3&&e.push({isLive:!0,userName:t.userName,avatarImg:t.coverSrc,userLabel:"直播中"})}),d.filter(e=>{var t;return(null===(t=e.notSeenItemList)||void 0===t?void 0:t.length)>0}).forEach((t,l)=>{l<2&&e.push({isLive:!1,userName:t.nickname,avatarImg:iw(t.avatarUri),userLabel:u(t)})}),[...e,{userName:"用户小A",isLive:!0,userLabel:"直播中",avatarSvg:oi},{userName:"用户小B",isLive:!0,userLabel:"直播中",avatarSvg:oo},{userName:"用户小C",isLive:!0,userLabel:"直播中",avatarSvg:on},{userName:"用户小D",isLive:!1,userLabel:"7个作品未看",avatarSvg:or},{userName:"用户小E",isLive:!1,userLabel:"3个作品未看",avatarSvg:oi}].slice(0,5)};return(0,a.useEffect)(()=>{if(t&&n.length&&!i.current){let e=[...n];e.splice(1,0,{awemeType:L.e.FollowWidgetCard,infoList:c()}),r(e),i.current=!0}else if(t&&n.length&&i.current){let e=n.findIndex(e=>e.awemeType===L.e.FollowWidgetCard);-1!==e&&(n[e].infoList=c())}},[s,d,t,n,r]),(0,a.useEffect)(()=>{if(t&&n.length&&i.current&&o){let e=n.findIndex(e=>e.awemeType===L.e.FollowWidgetCard);if(-1!==e){let t=[...n];t.splice(e,1),r(t)}}},[o,n,r]),{onCloseGuide:l}};var os=l("402729"),od=l("994185"),ou=(0,E.C)(function(e){let{insertVid:t,insertRoomId:l}=e,{Context:f}=tH||{},{userInfo:h}=(0,la.useUserInfoContext)()||{},{isLogin:E}=h,O=(0,tO._)()||{},[B,W]=(0,a.useState)([]),[$,q]=(0,a.useState)(null),[J,K]=(0,a.useState)(0),[G,X]=(0,a.useState)(!0),[Q,et]=(0,a.useState)(0),el=(0,a.useRef)(Q),ei=(0,a.useRef)(0),eo=(0,a.useRef)(1),en=(0,a.useRef)(1),er=(0,a.useRef)(()=>{}),ea=(0,a.useRef)(null),es=(0,a.useRef)(null),ed=(0,a.useRef)("");(0,u.C)(b.w3.components.follow_page);let eu=(0,a.useRef)(!0),{isFullscreen:ec}=(0,x.O)(),{isMobile:ef,isiPad:ev}=(0,j.X)();!function(){let{awemeFeed:e}=(0,tD.j)(),t=(0,a.useRef)(!1);(0,tX.w)(()=>{e.getValue("modalAwemeInfo")&&((0,Y.Nr)(location.pathname)?t.current=!0:e.dispatch({modalAwemeInfo:null,nextAwemeInfo:null,prevAwemeInfo:null}))},[]),(0,a.useLayoutEffect)(()=>M.listen(M.EVENT.exitChildRoute,()=>{"/follow"!==location.pathname&&t.current&&(t.current=!1,e.dispatch({modalAwemeInfo:null,nextAwemeInfo:null,prevAwemeInfo:null}))}),[])}();let eh=(0,d.a)(),em="/follow"===eh.pathname||eh.pathname.startsWith("/follow/live");(0,V.g)({swiper:$,setAwemeInfoList:W,awemeInfoList:B,refMixPlayer:ea,liveCardDisable:(0,P.DT)(),enterFrom:tq.x_.follow});let ep=()=>{T.Le.setConfig(T.gI.VideoFeedList,{autoPlayCount:1})},e_=(0,y.d)(B),ew=(0,a.useCallback)(function(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(null!==(e=e_.current)&&void 0!==e?e:[]).slice(t?el.current:0)},[]);(0,od.t)({landingMode:null==e?void 0:e.landingMode,landingReason:null==e?void 0:e.landingReason,isSelectPreferUser:null==e?void 0:e.isSelectPreferUser});let eg=(0,a.useCallback)(async e=>{let i,{mode:o="refresh",pull_type:n,refresh_type:r}=e;switch(o){case"reload":ei.current=0,eo.current=1,i=1,en.current=1;break;case"loadmore":i=2;break;case"refresh":i=0,en.current=1;break;default:i=0}let a={},s=await C.get({key:I.TccKey.RateSetting,defaultValue:I.TCC_DEFAULT_VALUE_MAP.get(I.TccKey.RateSetting)});c.z.markStart("follow_csr_fetch_data",{once:!0});try{a=await (0,os.J)(()=>t$({cursor:ei.current,level:eo.current,pull_type:n||i,refresh_type:r,customConfig:{rateSetting:s},awemeIds:eu.current?[t]:[],roomIds:eu.current?[l]:[]}),e=>{var t;return!!e.hasMore&&(null===(t=e.awemeList)||void 0===t?!void 0:!t.length)&&!0})}catch(e){return K(k.ERROR_CODE.ERROR_SERVICE_INTERNAL),{statusCode:k.ERROR_CODE.ERROR_SERVICE_INTERNAL,hasMore:!1,data:[],logPb:{}}}c.z.markEnd("follow_csr_fetch_data",{once:!0});let{statusCode:d,hasMore:u,awemeList:f,logPb:v,cursor:h,level:m=3,lastView:p}=a;if(p&&-1!==p.index)try{f[p.index].lastView=p}catch(e){}let _=f.filter(e=>{var t,l;return!((null==e?void 0:e.awemeType)===L.e.LiveCard&&(null==e?void 0:null===(l=e.cellRoom)||void 0===l?void 0:null===(t=l.rawdata)||void 0===t?void 0:t.status)!==2)}).filter(e=>e.awemeType===L.e.LiveCard||(!e.video.bitRateList.every(e=>0!==e.isH265)||!!(0,R.E)())&&!0);return en.current=u,ei.current=h,eo.current=m,X(u),K(d),ed.current=v,eu.current=!1,{statusCode:d,hasMore:u,data:_,logPb:v}},[G,t,l]);(0,a.useEffect)(()=>{let e=!1;return!eu.current&&0===B.length&&G&&(async()=>{let t=await eg({mode:"loadmore"});if(!e)0===t.statusCode&&t.data&&W(t.data)})(),()=>{e=!0}},[B]),(0,N.M)();let{deleteCurrentSwiper:ex,nextPageFunc:ej,lastPageFunc:ey}=(0,H.zg)({swiper:$,awemeInfoList:B,setAwemeInfoList:W,fetchSlideList:eg,swiperCallBack:ep,fromTab:U.B.FOLLOW,abTestData:O}),eC=le({userInfo:null==h?void 0:h.info,enable:!!E}),{isListShow:eI,isListCollapse:ek,listWidth:eL,requestId:eS}=eC,{swiperStyle:eb,slideHeight:eN,swiperItemStyle:eE}=ll({isFollowSideListShow:eI,followSideListWidth:eL}),{outSwitchClassName:eP}=lo({isFollowSideListShow:eI}),eT=(0,a.useMemo)(()=>J&&J!==k.ERROR_CODE.ERROR_USER_UNLOGIN&&0===B.length?(F.oe.event.error({name:F.Mo.FeedServerError,report:{tab:"follow",statusCode:J,logId:ed.current}}),(0,r.jsx)(p.nl,{title:"服务器出现问题",desc:"请稍后重试",slot:z.t6.OCCUPATION})):0===B.length&&!G&&E?(F.oe.event.info({name:F.Mo.FollowFeedNoMoreAndEmpty,report:{logId:ed.current,statusCode:J}}),(0,r.jsx)(p.p5,{desc:"可以在搜索或在推荐关注你感兴趣的人",slot:z.t6.OCCUPATION})):null,[J,B,G,E]),eR=(0,_.Z)(),{updateActiveIndex:eF}=(0,tA.Z)({swiper:$,awemeInfoList:B,fetchSlideList:eg,setAwemeInfoList:W}),{onCloseGuide:eM}=oa({swiper:$,isClientMiniWin:eR,setAwemeInfoList:W,awemeInfoList:B,liveList:eC.liveList,updateList:eC.choiceFollowingList});(0,a.useEffect)(()=>M.listen(M.EVENT.refreshPage,()=>{J&&(eo.current=1),eF(0,!0),X(!0),(0,H.JA)({refCancelTabFeedFunc:er,setAwemeInfoList:W,fetchSlideList:eg,fromTab:U.B.FOLLOW}),K(0)}),[eg]),(0,S.o)(()=>{ep();let e=s.history.listen(()=>{(0,w.a)(),g.loginPanelInfo.isShowingAccount=!1,g.loginPanelInfo.isInAccountPage=!1});return()=>{null==e||e(),ep()}},[]);let eA=(0,a.useRef)({}),[eO,eD]=(0,a.useState)(!0),eV=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(!eV.current){if("/follow"!==eh.pathname)eD(!1);else if("/follow"===eh.pathname)return eD(!0),()=>{"/follow"!==eh.pathname&&!eV.current&&eD(!1)}}},[eh.pathname]),(0,S.o)(()=>{(0,A.J)({title:"抖音-记录美好生活",description:"抖音-记录美好生活的视频平台",keywords:"抖音,抖音音乐,抖音短视频,抖音官网,amemv,抖音app,抖音app下载"})},[]);let eH=(0,a.useMemo)(()=>({is_aweme_tied:(null==h?void 0:h.isLogin)?1:0,enter_from_merge:"web_homepage_follow",request_id:eS}),[h,eS]),eU=(0,tD.j)(),{awemeFeed:ez}=eU,eZ=(0,n._)(eU,["awemeFeed"]),{removeSlideListButton:eB}=(0,ee.Iq)(e=>{let{removeSlideListButton:t}=e;return{removeSlideListButton:t}});return J===k.ERROR_CODE.ERROR_NO_NETWORK&&0===B.length?(0,r.jsx)(p.oO,{}):eO?(0,r.jsxs)(tD.b,{context:(0,o._)((0,i._)({},eZ),{metaCtxId:"follow"}),children:[(0,r.jsxs)(tK.Z,{children:[(0,r.jsx)("title",{children:"抖音-记录美好生活"}),(0,r.jsx)("meta",{name:"description",content:"抖音-记录美好生活的视频平台"}),(0,r.jsx)("meta",{name:"keywords",content:"抖音,抖音音乐,抖音短视频,抖音官网,amemv,抖音app,抖音app下载"}),(0,r.jsx)("link",{rel:"canonical",href:"https://www.douyin.com/"})]}),(0,r.jsx)(v(),{title:"抖音-记录美好生活",description:"抖音-记录美好生活的视频平台",keywords:["抖音","抖音音乐","抖音短视频","抖音官网","amemv","抖音app","抖音app下载"],enableRemoteTDK:!0,site:"www.douyin.com",path:"/follow"}),(0,r.jsxs)(Z.ZP,{onSwiper:q,abTestData:O,swiperStyle:eb,cardBetween:eN.cardBetween,nextSwiperHeaderHeight:eN.nextSwiperHeaderHeight,upperSpace:eN.upperSpace,data:B,scene:z.R5.Follow,swiperClassName:tG.swiper,children:[!E&&(0,r.jsx)(ls,{slot:z.t6.OCCUPATION}),eT,(0,r.jsx)(D.o,{"data-e2e":"feed-item",className:m()(tG.swiperItem,"page-recommend-container",{[tG.noSelect]:!!(null==O?void 0:O.shitCardCss)}),slot:z.t6.INSIDE,style:eE,children:e=>{let{slideData:t,activeIndex:l,currentIndex:i}=e;if(eF(l),et(l),el.current=l,!(1>=Math.abs(l-i)))return null;{if("/follow"===eh.pathname&&(eV.current=!0),!eV.current)return null;let e=l===i&&!((null==t?void 0:t.awemeType)===L.e.LiveCard&&!em),o=l-1===i,n=l+1===i,a=null==t?void 0:t.awemeId;return e&&!eA.current[a]&&(eA.current[a]=!0,T.Le.setConfig(T.gI.FeedLatestViewedAweme,{awemeId:a})),(0,r.jsx)(tJ.ce,{InnerPlayer:tM,videoRef:e?ea:es,className:m()(tG.content),isFullScreen:ec,item:t,deleteCurrentSwiper:ex,playNextFunc:ej,playPrevFunc:ey,isActive:e,isFirst:0===i,isNext:n,isPrev:o,isLast:i===B.length-1,index:i,from:tq.x_.follow,tab:tq.x_.follow,swiper:$,isClientMiniWin:eR,getAwemeInfoList:ew})}}}),0===B.length&&J!==k.ERROR_CODE.ERROR_NO_NETWORK&&(0,r.jsx)(lc,{slot:z.t6.INSIDE}),B.length>0&&(0,r.jsx)("div",{slot:"wrapper-end",className:tG.bottomDesc,children:"暂时没有更多了"}),(0,r.jsx)(ot,(0,o._)((0,i._)({},eC),{slot:z.t6.OUTOFCONTAINER,logParams:eH})),!ef&&!ev&&!eB&&(0,r.jsx)(tY.z,{show:!ec,playNextFunc:()=>{var e;(null===(e=B[$.activeIndex])||void 0===e?void 0:e.awemeType)===L.e.FollowWidgetCard?(ex(),eM()):ej({from:"click_button"})},playPrevFunc:()=>{var e;(null===(e=B[$.activeIndex])||void 0===e?void 0:e.awemeType)===L.e.FollowWidgetCard&&(ex(),eM()),ey({from:"click_button"})},swiper:$,className:m()("recommend-out-switch-btn",tG.outsideSwitchButton,{[tG.sideCardShow]:"sideCardShow"===eP,[tG.sideCardClose]:"sideCardClose"===eP,[tG.followSideListExpand]:eI&&!ek,[tG.followSideListCollapse]:eI&&ek}),awemeInfoList:B,slot:z.t6.WRAPPERRIGHT,defaultCssHidden:!1,from:tq.x_.follow})]}),(0,r.jsx)(tV.IsLivingPlugin,{activeIndex:Q,dataList:B,setDataList:W,scene:"follow"})]}):(0,r.jsx)(r.Fragment,{})},e=>(0,O.i8)(e))},145204:function(e,t,l){"use strict";l.r(t),l.d(t,{getPeriodCounter:function(){return h},reportClientAIData:function(){return w},runClientAITask:function(){return m},updateClientAICounterOnClick:function(){return p},updateStorageFeatureOnClick:function(){return _}});var i=l(629686),o=l(402748);l(591964),l(374954);var n=l(508638),r=l(757291),a=l(103808),s=l(710675);let d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),t=new Date(e);return t.setMilliseconds(0),t.setSeconds(0),t.setMinutes(0),t.setHours(0),t.getTime()},u=()=>(0,s.m)(a.RT,{counterL10:{},periodCounter:{},version:"v1"},e=>"v1"===e.version),c=e=>{let t=null==e?void 0:e.slice(0,a.ue);return t&&t.length===a.ue?t.reduce((e,t)=>e+t,0)/t.length:-1},f=(e,t)=>{if(!e)return;let l=d(),i=e[e.length-1];l-i.timestamp==0?i[t]=i[t]+1:e.push({timestamp:l,show_times:1,click_times:0}),e.length>a.jj+1&&e.shift()},v=(e,t,l)=>{let i=(l||u()).periodCounter[e];if(!i)return{clickTimes:0,showTimes:0,clickRate:-1};{let e=i.find(e=>e.timestamp===t),l=e?Math.min(e.click_times/e.show_times,1):-1;return{clickTimes:(null==e?void 0:e.click_times)||0,showTimes:(null==e?void 0:e.show_times)||0,clickRate:l}}},h=(e,t,l)=>{try{let i=l||u(),o={};for(let l=1;l<=a._8;l++){let n=t-a.jj*l,{clickRate:r}=v(e,n,i);o[`r_d${l}`]=r}return o}catch(t){let e={funcName:"getPeriodCounter",stack:t.stack};return n.Z.sendLog("liveHeadClientAIError",e),{}}},m=async(e,t)=>{let l=-1,m=-1;try{let t=(0,s.m)(a.cq),n=u(),x=d(),j={0:{threshold:.5,model_cdn:"https://lf3-static.bytednsdoc.com/obj/eden-cn/ph-auvym/ljhwZthlaukjlkulzlp/douyin-pc/livehead/pos1/params_extra_1723628400.027769.json"},1:{threshold:.5,model_cdn:"https://lf3-static.bytednsdoc.com/obj/eden-cn/ph-auvym/ljhwZthlaukjlkulzlp/douyin-pc/livehead/pos2/params_extra_1724123885.796959.json"}},y=e.slice(0,a.A5);for(let e in y){var p,_,w,g;let s=y[e],d=(null===(g=s.__fakeAwemeInfo)||void 0===g?void 0:null===(w=g.authorInfo)||void 0===w?void 0:null===(_=w.roomData)||void 0===_?void 0:null===(p=_.room_view_stats)||void 0===p?void 0:p.display_value)||0,u={time_stamp:Date.now(),hour:new Date().getHours(),has_clicked_window:!1,time_on_page_click:0,anchor_id:s.anchorId||"",room_id:s.roomId||"",link_order:e,room_viewer_cnt:d,last_click_idx:-1,predict_enabled:!1},C=n.periodCounter[e];(!C||0===C.length)&&(n.periodCounter[e]=[{timestamp:x,show_times:0,click_times:0}]),f(n.periodCounter[e],"show_times"),n.counterL10=n.counterL10||{};let I=n.counterL10[e];I&&0!==I.length?(n.counterL10[e]=I.slice(-a.ue),n.counterL10[e].push(0)):n.counterL10[e]=[0];let k=j[e],L=h(e,x,n),S=v(e,x,n),b=c(n.counterL10[e]);if(k){let t=new r.SimpleNN;await t.initNetwork(k.model_cdn,e);let n=(0,o._)((0,i._)({},u,L,S),{click_rate_l10:b}),a=t.inference(n,k.threshold);a.predictResult&&a.predictProb>l&&(l=a.predictProb,m=Number(e)),u.predict_enabled=!0,u.predict_has_error=a.hasError,u.predict_prob=a.predictProb,u.predict_result=a.predictResult,u.predict_time=Date.now(),u.predict_threshold=k.threshold}t[e]=u}return(0,s.t)(a.cq,t),(0,s.t)(a.RT,n),{hasError:!1,maxProb:l,maxProbIdx:m}}catch(t){let e={funcName:"runClientAITask",stack:t.stack};return n.Z.sendLog("liveHeadClientAIError",e),{hasError:!0,maxProb:l,maxProbIdx:m}}},p=e=>{try{var t,l;let i=u();f(null===(t=i.periodCounter)||void 0===t?void 0:t[e],"click_times");let o=null===(l=i.counterL10)||void 0===l?void 0:l[e];o&&o.length>0&&(o[o.length-1]=1),(0,s.t)(a.RT,i)}catch(t){let e={funcName:"updateClientAICounterOnClick",stack:t.stack};n.Z.sendLog("liveHeadClientAIError",e)}},_=(e,t,l)=>{try{var i,o,r,d;if(e>=a.A5)return;let n=(0,s.m)(a.cq),u=(null===(d=t.__fakeAwemeInfo)||void 0===d?void 0:null===(r=d.authorInfo)||void 0===r?void 0:null===(o=r.roomData)||void 0===o?void 0:null===(i=o.room_view_stats)||void 0===i?void 0:i.display_value)||0;n[`${e}`]?(n[`${e}`].hour=Date.now(),n[`${e}`].has_clicked_window=!0,n[`${e}`].time_on_page_click=(Date.now()-n[`${e}`].time_stamp)/1e3,n[`${e}`].room_viewer_cnt=u,n[`${e}`].last_click_idx=l):n[`${e}`]={time_stamp:Date.now(),hour:new Date().getHours(),has_clicked_window:!0,time_on_page_click:0,anchor_id:t.anchorId||"",room_id:t.roomId||"",link_order:e,room_viewer_cnt:u,last_click_idx:l,predict_enabled:!1},(0,s.t)(a.cq,n)}catch(t){let e={funcName:"updateStorageFeatureOnClick",stack:t.stack};n.Z.sendLog("liveHeadClientAIError",e)}},w=e=>{try{let l=Math.min(e,a.A5),r=d(),f=u();for(let e=0;e<l;e++){var t;let l=(0,s.m)(a.cq)[`${e}`];if(!l)continue;let u=d(l.time_stamp),m=h(`${e}`,u,f),p=v(`${e}`,r,f),_=c(null===(t=f.counterL10)||void 0===t?void 0:t[`${e}`]),w=(0,o._)((0,i._)({},l,m,p),{click_rate_l10:_});w.predict_enabled&&(w.predict_correct=w.has_clicked_window===w.predict_result),n.Z.sendLog("liveHeadClientAI",w)}}catch(t){let e={funcName:"reportClientAIData",stack:t.stack};n.Z.sendLog("liveHeadClientAIError",e)}}},757291:function(e,t,l){"use strict";l.r(t),l.d(t,{SimpleNN:function(){return n},predictor:function(){return r}});var i=l(480333);l(679308),l(76375),l(117232),l(374954),l(490629),l(591964);var o=l(710675);class n{async fetchModel(e,t){let l=(0,o.m)(`live_head_client_ai_model_params_${t}`),i={raw:null==l?void 0:l.raw,date:null==l?void 0:l.date,url:null==l?void 0:l.url};if(!l||l.date!==new Date().toLocaleDateString()||l.url!==e)try{i={raw:await (await fetch(e)).json(),date:new Date().toLocaleDateString(),url:e},(0,o.t)(`live_head_client_ai_model_params_${t}`,i)}catch(e){throw Error(`fetch model failed. ${e.message}`)}return i}isInit(){return this.network.length>0&&this.normalizationParams.length>0}async initNetwork(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(this.isInit())return;let l=await this.fetchModel(e,t),i=[],{model:o,normalizationParams:n}=l.raw;Object.keys(o).sort().forEach(e=>{let t=o[e],l=[];for(let e of t){let t={weights:e[0],bias:e[1]};l.push(t)}i.push(l)}),this.network=i,this.normalizationParams=Object.entries(n).sort((e,t)=>e[1].idx-t[1].idx)}activate(e,t){let{weights:l,bias:i}=e;return l.reduce((e,l,i)=>e+l*t[i],i)}sigmoid(e){return 1/(1+Math.exp(-e))}relu(e){return Math.max(0,e)}forwardPropagate(e){let t=e;return this.network.forEach((e,l)=>{let i=[];e.forEach(e=>{let o=this.activate(e,t),n=0;n=l!==this.network.length-1?this.relu(o):this.sigmoid(o),e.output=n,i.push(n)}),t=i}),t}normalization(e){let t=[];return this.normalizationParams.forEach(l=>{let[i,o]=l,n=e[i];if(void 0===n)throw Error(`${i} not found in features`);if(null==o?void 0:o.enumValues){let e=o.enumValues.indexOf(n);n=-1===e?o.default:e}let r=o.min,a=o.max;if(n<r||n>a)throw Error(`${i} normalize out of range.`);if(Number.isNaN(n=r===a?n:(n-r)/(a-r)))throw Error(`${i} normalize error`);t.push(n)}),t}predict(e){return this.forwardPropagate(e)}inference(e,t){let l={hasError:!1,predictProb:0,predictResult:!1};try{if(this.isInit()){let i=this.normalization(e),o=this.predict(i)[0];l.hasError=!1,l.predictProb=o,l.predictResult=o>t}}catch(e){l.hasError=!0,l.predictResult=!1}return l}constructor(){(0,i._)(this,"network",[]),(0,i._)(this,"normalizationParams",[])}}let r=new n},103808:function(e,t,l){"use strict";l.d(t,{A5:function(){return o},BO:function(){return i},RT:function(){return r},_8:function(){return a},cq:function(){return n},jj:function(){return s},ue:function(){return d}});let i=5,o=3,n="client_ai_live_follow_list_feature_data",r="client_ai_live_follow_list_counter_data",a=7,s=864e5,d=10},508638:function(e,t,l){"use strict";var i=l(624508);t.Z=new i.h({clickPreviousVideo:{eventName:"click_previous_video",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",click_from:"click_button",play_material:"video"}},clickNextVideo:{eventName:"click_next_video",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",click_from:"click_button",play_material:"video"}},followEndPageShow:{eventName:"follow_end_page_show",params:{}},followEndPageClick:{eventName:"follow_end_page_click",params:{}},followCoverOpen:{eventName:"follow_cover_open",params:{}},followCoverClose:{eventName:"follow_cover_close",params:{}},followHeadShow:{eventName:"follow_head_show",params:{room_id:"",author_id:"",if_new_post:0,if_first_page:0,if_fold_live:0,rank:"15+"}},followHeadClick:{eventName:"follow_head_click",params:{room_id:"",author_id:"",if_new_post:0,if_first_page:0,if_fold_live:0,rank:"15+",live_head_rank:void 0,follow_head_rank:void 0}},followViewMoreShow:{eventName:"follow_view_more_show",params:{}},followSlideButtonClick:{eventName:"follow_slide_button_click",params:{direction:"right",if_view_more:0}},foldLiveHeadShow:{eventName:"fold_live_head_show",params:{}},foldLiveHeadClick:{eventName:"fold_live_head_click",params:{type:"unfold"}},pcFollowAuthorPreload:{eventName:"pc_follow_author_preload",params:{rate:0}},liveHeadClientAI:{eventName:"pc_follow_live_head_client_ai",params:{}},liveHeadClientAIError:{eventName:"pc_follow_live_head_client_ai_error",params:{}}})},710675:function(e,t,l){"use strict";l.d(t,{m:function(){return i},t:function(){return o}}),l(362051);let i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0,i=localStorage.getItem(e);if(i)try{let e=JSON.parse(i);if(!l||(null==l?void 0:l(e)))return e}catch(e){}return t},o=(e,t)=>{localStorage.setItem(e,JSON.stringify(t))}},715360:function(e,t,l){"use strict";l.d(t,{b:function(){return a}}),l(490629);var i=l(101199),o=l(528937),n=l(66948),r=l(499059);let a=()=>{let[e,t]=(0,i.useState)(r.Le.getConfig(r.gI.AsiangameSeasonIds)||[]);return(0,i.useEffect)(()=>{0===e.length&&(async()=>{let e=await o.get({key:n.TccKey.AsiangameSeasonIds,defaultValue:[]});r.Le.setConfig(r.gI.AsiangameSeasonIds,e),t(e)})()},[]),{seasonIds:e}}},75879:function(e,t,l){"use strict";l(932651),l(313036),l(228983),l(759943),l(362051);var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,l=1,i=arguments.length;l<i;l++)for(var o in t=arguments[l],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,l=arguments.length;t<l;t++)e+=arguments[t].length;for(var i=Array(e),o=0,t=0;t<l;t++)for(var n=arguments[t],r=0,a=n.length;r<a;r++,o++)i[o]=n[r];return i},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setGlobal=void 0;var r=n(l(101199)),a=l(343475),s=l(28493),d={keywords:[],robots:"index, follow"};t.default=function(e){var t=e.keywords,l=e.description,i=e.title,n=e.videoObject,u=e.languages,c=e.robots,f=e.canonical,v=e.enableRemoteTDK,h=e.site,m=e.path,p=e.params,_=e.flushTdkTemplateMs,w=e.isBoe,g=e.children;if(!function(){try{if(window&&document&&location&&alert)return!1;return!0}catch(e){return!0}}())return null;var x=[],j="",y="";if(void 0!==v&&v){var C=s.buildTdk({keywords:t.join(","),description:l,title:i},h,m,void 0===p?{}:p,void 0!==w&&w,void 0===_?36e5:_);x=C.keywords.split(","),j=C.description,y=C.title}else x=t,j=l,y=i;var I=n?"video":"",k=n?Array.isArray(n)?n:[n]:[];return r.default.createElement(r.default.Fragment,null,r.default.createElement(a.Helmet,null,y?r.default.createElement("title",null,y):null,r.default.createElement("meta",{name:"robots",content:c||d.robots}),j?r.default.createElement("meta",{name:"description",content:j}):null,r.default.createElement("meta",{name:"keywords",content:o(x,d.keywords).filter(function(e){return e}).join(",")}),f?r.default.createElement("link",{rel:"canonical",href:f}):null,n?r.default.createElement("script",{type:"application/ld+json"},JSON.stringify(k.map(function(e){return{"@context":"https://schema.org","@type":"VideoObject",name:e.name,description:e.description,thumbnailUrl:e.thumbnailUrl,uploadDate:e.uploadDate,duration:"PT1M54S",contentUrl:e.contentUrl,embedUrl:e.embedUrl,interactionStatistic:e.interactionStatistic}}))):null,(void 0===u?[]:u).map(function(e){return r.default.createElement("link",{key:e.hrefLanguage,rel:"alternate",hrefLang:e.hrefLanguage,href:e.href})})),"video"===I?r.default.createElement(a.Helmet,null,r.default.createElement("meta",{property:"og:type",content:"video"}),r.default.createElement("meta",{property:"og:title",content:i}),r.default.createElement("meta",{property:"og:image",content:k[0].thumbnailUrl[0]}),r.default.createElement("meta",{property:"og:url",content:k[0].contentUrl||k[0].embedUrl})):null,r.default.createElement(a.Helmet,null,g))},t.setGlobal=function(e){d=i(i({},d),e)}},28493:function(e,t,l){"use strict";l(679308),l(313036),l(490629),l(76375),l(374954),l(683656),l(759943),l(414931),l(362051);var i=this&&this.__awaiter||function(e,t,l,i){return new(l||(l=Promise))(function(o,n){function r(e){try{s(i.next(e))}catch(e){n(e)}}function a(e){try{s(i.throw(e))}catch(e){n(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof l?t:new l(function(e){e(t)})).then(r,a)}s((i=i.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var l,i,o,n,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(l)throw TypeError("Generator is already executing.");for(;r;)try{if(l=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return r.label++,{value:n[1],done:!1};case 5:r.label++,i=n[1],n=[0];continue;case 7:n=r.ops.pop(),r.trys.pop();continue;default:if(!(o=(o=r.trys).length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){r=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){r.label=n[1];break}if(6===n[0]&&r.label<o[1]){r.label=o[1],o=n;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(n);break}o[2]&&r.ops.pop(),r.trys.pop();continue}n=t.call(e,r)}catch(e){n=[6,e],i=0}finally{l=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setTdkTemplateList=t.getTdkTemplateList=t.buildTdk=t.fillTemplateParams=void 0;var r=n(l(183652)),a=l(121153),s=l(501061),d=l(10701),u=[],c=null,f=!1;function v(e){return i(this,void 0,void 0,function(){var t,l,i,n;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,r.default.request({url:"https://ug-seo-demo"+(f?"-boe":"")+".bytedance."+(f?"net":"com")+"/open-api/tdk/query",method:"post",data:{site:e}})];case 1:if(l=(t=o.sent()).data,(i=t.status)>=400)throw Error("获取 TDK 失败,status code: "+i);if(l.errno)throw Error("获取 TDK 失败,errno: "+l.errno+",message: "+l.message);return p(l.data),[3,3];case 2:return o.sent(),[3,3];case 3:return[2]}})})}function h(e,t){var l=e.replace(/\{\{\s*(\w+)\s*\}\}/g,"{{$1}}");for(var i in t){for(var o=l.replace("{{"+i+"}}",t[i]);o!=l;)o=(l=o).replace("{{"+i+"}}",t[i])}return l.replace(/{{([\s\S]+?)}}/g,"")}t.fillTemplateParams=h;function m(e){return!e.title&&!e.description&&!e.keywords}t.buildTdk=function(e,t,l,i,o,n){void 0===o&&(o=!1),void 0===n&&(n=36e5),f=o;var r,p,_,w,g,x={title:"",description:"",keywords:""};try{;if("string"!=typeof t||"string"!=typeof l)throw Error("由模板构建 TDK 时,必须要传入合法 site 和 path,当前 site="+t+",path="+l);if(r=l,p=i,x=(_=function(e,t){for(var l=0;l<t.length;l++){var i=t[l];if(a.isMatch(e,i.path))return i}}(r,u))?{title:h(_.title,p),description:h(_.description,p),keywords:h(_.keywords,p)}:{title:"",description:"",keywords:""},d.isSsrServer()){;w=n,g=t,w<3e5&&(w=3e5),c||(c=setInterval(function(){v(g)},w*(1+(Math.random()-.5)*.1)),v(g)),s.metricsEmitCounter("tdk.build",1,"toutiao.growth.seo_platform",{site:t||"empty",path:l||"empty",fallback:+m(x),tdkTemplateListLength:u.length,errMsg:"success"})}}catch(e){d.isSsrServer()&&s.metricsEmitCounter("tdk.build",1,"toutiao.growth.seo_platform",{site:t||"empty",path:l||"empty",fallback:+m(x),tdkTemplateListLength:u.length,errMsg:e.toString()})}return m(x)?e:x};function p(e){u=JSON.parse(JSON.stringify(e))}t.getTdkTemplateList=function(){return JSON.parse(JSON.stringify(u))},t.setTdkTemplateList=p},501061:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.metricsEmitCounter=void 0;t.metricsEmitCounter=function(e,t,l,i){}},10701:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSsrServer=void 0;t.isSsrServer=function(){try{if(window&&document&&location&&alert)return!1;return!0}catch(e){return!0}}},121153:function(e,t,l){"use strict";var i=l(629686);l(490629),l(362051),l(683656),l(759943),l(374285),l(566071),l(414931),l(76375),l(14275),l(374954);let o=l(340900),n=new Map;function r(e,t){let l=e+JSON.stringify(t=i._({caseSensitive:!1},t));if(n.has(l))return n.get(l);let r="!"===e[0];r&&(e=e.slice(1)),e=o(e).replace(/\\\*/g,"[\\s\\S]*");let a=RegExp(`^${e}$`,t.caseSensitive?"":"i");return a.negated=r,n.set(l,a),a}e.exports=(e,t,l)=>{if(!(Array.isArray(e)&&Array.isArray(t)))throw TypeError(`Expected two arrays, got ${typeof e} ${typeof t}`);if(0===t.length)return e;let i="!"===t[0][0];t=t.map(e=>r(e,l));let o=[];for(let l of e){let e=i;for(let i of t)i.test(l)&&(e=!i.negated);e&&o.push(l)}return o},e.exports.isMatch=(e,t,l)=>{let i=Array.isArray(e)?e:[e],o=Array.isArray(t)?t:[t];return i.some(e=>o.every(t=>{let i=r(t,l),o=i.test(e);return i.negated?!o:o}))}},257130:function(e,t,l){"use strict";var i=l(629686),o=l(402748),n=l(320165),r=l(101199);let a=(0,r.forwardRef)((e,t)=>(0,n.jsx)("svg",(0,o._)((0,i._)({width:18,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,n.jsx)("path",{d:"M7.158 11.693c-.41.41-1.073.41-1.482 0l-4.81-4.81a1.248 1.248 0 0 1 0-1.765L5.676.307a1.048 1.048 0 1 1 1.482 1.482L3.995 4.953h11.982a1.048 1.048 0 1 1 0 2.095H3.996l3.162 3.163c.41.41.41 1.073 0 1.482z",fill:"#2F3035"})})));t.Z=a}}]); |