/* sohutv 2025-04-16 15:51:05 */ var f=(e,o,t)=>new Promise((n,s)=>{var r=a=>{try{c(t.next(a))}catch(d){s(d)}},i=a=>{try{c(t.throw(a))}catch(d){s(d)}},c=a=>a.done?n(a.value):Promise.resolve(a.value).then(r,i);c((t=t.apply(e,o)).next())});import{N as x,E as Q,r as h,d as X,o as we,b as T,v as Y,n as Z,f as D,e as ye,w as P,h as be,i as H,m as A,O as J,t as _e,K as R,x as Ie}from"./vendor-C7CT9tic.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function t(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(s){if(s.ep)return;s.ep=!0;const r=t(s);fetch(s.href,r)}})();var Ce={regex:/([^.]+)$/,browser:function(){var e=navigator.userAgent,o={},t=e.match(/WebKit\/([\d.]+)/),n=e.match(/Chrome\/([\d.]+)/)||e.match(/CriOS\/([\d.]+)/),s=e.match(/Firefox\/([\d.]+)/),r=e.match(/Version\/([\d.]+).*Safari/),i=e.match(/Edg\/([\d.]+)/);return t&&(o.webkit=parseFloat(t[1])),n&&(o.chrome=parseFloat(n[1])),s&&(o.firefox=parseFloat(s[1])),r&&(o.safari=parseFloat(r[1])),i&&(o.edg=parseFloat(i[1])),o}(),canUseWebp:function(){var e=this.browser;return e.chrome&&e.chrome>=32||e.safari&&e.safari>=16||e.firefox&&e.firefox>=65},canUseAvif:function(){var e=this.browser;return e.chrome&&!e.edg&&e.chrome>=85||e.safari&&e.safari>=16.4||e.firefox&&e.firefox>=93||e.edg&&e.edg>120},convertFormat:function(e){return/(photocdn\.tv\.sohu\.com)|((e3f49eaa46b57|00cdc5c2e0ddc)\.cdn\.sohucs\.com)/.test(e)&&(!/\b(c|q|w|h|blur)_/.test(e)&&!/(\.gif)$/.test(e)&&this.canUseAvif()?e=e.replace(this.regex,"avif"):this.canUseWebp()&&(e=e.replace(this.regex,"webp"))),e}};const C={getUrlParam(e){const o=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),t=window.location.search.substring(1).match(o);return t!=null?decodeURIComponent(t[2]):null},stringify(e){return e?Object.keys(e).map(function(o){var t=e[o];return Array.isArray(t)?t.map(function(n){return encodeURIComponent(o)+"="+encodeURIComponent(n)}).join("&"):encodeURIComponent(o)+"="+encodeURIComponent(t)}).join("&"):""},parse(e){return typeof e!="string"?{}:(e=e.trim().replace(/^\?/,""),e?e.trim().split("&").reduce(function(o,t){var n=t.replace(/\+/g," ").split("="),s=n[0],r=n[1];return s=decodeURIComponent(s),r=r===void 0?null:decodeURIComponent(r),o.hasOwnProperty(s)?Array.isArray(o[s])?o[s].push(r):o[s]=[o[s],r]:o[s]=r,o},{}):{})},push(e,o){let t=this.parse(window.location.search);o?t[e]=o:delete t[e];let n=this.stringify(t);try{history.pushState({},"",window.location.pathname+"?"+n+window.location.hash)}catch(s){}}},L="https:/s/follow",xe={makeVideoUrl(e,o={}){const{site:t,vid:n,pugc_video_type:s}=e.content_video,{uid:r}=o;let i=`https://m.tv.sohu.com/v${n}.shtml`;return t==2&&(s&&s=="20"?i=`https://m.tv.sohu.com/sugs/sv${n}.shtml`:i=`https://m.tv.sohu.com/phone_play_ugc_wx?vid=${n}`),i},makeVideoUrlPC(e){var c;let o,t=e.content_video;if(e.content_broadlist&&(o=e.content_broadlist.bid,t=(c=e.content_broadlist)==null?void 0:c.content_video),!t)return"";const{site:n,vid:s,pugc_video_type:r}=t;let i=`https://m.tv.sohu.com/v${s}.shtml`;if(n=="2"){let a=r=="20"?"/a":"",d={channeled:window.channeled||"",page_transition:1};o&&(d.bid=o),i="/v/"+window.btoa(`us${a}/0/${s}.shtml`)+".html?"+C.stringify(d)}return i},makeBroadUrl(e){const{bid:o,content_video:t}=e.content_broadlist,n=t&&t.vid||"";return n?`https://m.tv.sohu.com/u/vw/${n}.shtml?bid=${o}`:""},makeLiveUrl(e){const{roomId:o,course:t,courseId:n,streamName:s}=e.content_live;let r,i={roomId:o,channeled:window.channeled||"",page_transition:1};return t==1?(i.courseId=n,r=`https://m.tv.sohu.com/upload/h5/xiaoke/course.html?${C.stringify(i)}`):(s&&(i.streamName=s),C.getUrlParam("qftest")?(i.qftest=1,r=`https:/s/m/special/sohulive/index.html?${C.stringify(i)}`):r=`https:/sohulive/index.shtml?${C.stringify(i)}`),r},makeLiveScheduleUrl(e,o){let{scheduleId:t,uid:n}=e;return o&&(n=o.uid),`${L}/liveschedule.html?scheduleId=${t}&uid=${n}`},makeTopicUrl(e){return`${L}/topic.html?tid=${e.id}`},makeAuthorHomeUrl(e){const{uid:o}=e;return`${L}/authorHome.html?uid=${o}`}};var m=function(){this.logoutTimes=0,this.loginTimes=0};m.prototype={getAppid:function(){return this.getInfo().appid||""},getPassport:function(){return this.getInfo().userid||""},getUid:function(){return this.getInfo().uid||""},getUUID:function(){return this.getInfo().uuid||""},getQname:function(){return this.getInfo().uniqname||""}};m.prototype.b64_423=function(e){for(var o=new Array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","-","_"),t="",n=0;n>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:o[n++]=e.charAt(t-1);break;case 12:case 13:i=e.charCodeAt(t++),o[n++]=String.fromCharCode((r&31)<<6|i&63);break;case 14:i=e.charCodeAt(t++),c=e.charCodeAt(t++),o[n++]=String.fromCharCode((r&15)<<12|(i&63)<<6|c&63);break;case 15:switch(r&15){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:i=e.charCodeAt(t++),c=e.charCodeAt(t++),a=e.charCodeAt(t++),d=(r&7)<<18|(i&63)<<12|(c&63)<<6|(a&63)-65536,0<=d&&d<=1048575?o[n]=String.fromCharCode(d>>>10&1023|55296,d&1023|56320):o[n]="?";break;case 8:case 9:case 10:case 11:t+=4,o[n]="?";break;case 12:case 13:t+=5,o[n]="?";break}}n++}return o.join("")};m.prototype.selectInfo=function(){var e=["ppinf","ppinfo","passport"],o,t,n;for(o=0,t=e.length;o1&&(o[s[0]]=s[2])}catch(r){}return o};m.prototype.getInfo=function(){return this.analyzeInfo(this.decodeInfo(this.selectInfo()))};const _=new m;let Ee=0;function Ne(e,o={},t="callback"){return new Promise((n,s)=>{const r=`jsonp_${Date.now()}_${Ee++}`,i=document.createElement("script"),c=()=>{delete window[r],document.body.removeChild(i)};window[r]=b=>{c(),n(b)};const a=Object.keys(o).map(b=>`${b}=${encodeURIComponent(o[b])}`).join("&"),d=e.includes("?")?"&":"?";let v=`${e}${d}${t}=${r}&${a}`;/platform_source=/.test(v)||(v+="&platform_source=pc"),i.src=v,i.onerror=()=>{c(),s(new Error("JSONP request failed"))},document.body.appendChild(i)})}x.defaults.withCredentials=!0;_.getUid(),_.getPassport();x.defaults.paramsSerializer=e=>new URLSearchParams(e).toString();function U(e,o){return f(this,null,function*(){let t=null,n=null,s=null;try{t=yield x.get(e,{params:o||{}}),t.status===200?s=t.data:n=t}catch(r){n=r}return{data:s,error:n}})}function Se(e,o){return f(this,null,function*(){let t=null,n=null,s=null;try{t=yield x.post(e,o||{}),t.status===200?s=t.data:n=t}catch(r){n=r}return{data:s,error:n}})}function Re(e,o){return f(this,null,function*(){let t=null,n=null,s=null;try{t=yield x.post(e,o||{},{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),t.status===200?s=t.data:n=t}catch(r){n=r}return{data:s,error:n}})}function F(e,o){return f(this,null,function*(){let t=null,n=null,s=null;try{t=yield Ne(e,o||{}),s=t}catch(r){n=r}return{data:s,error:n}})}const W="//my.tv.sohu.com",ee={getVipInfo(){return U("https://film.sohu.com/getlogininfo.json")},getUserInfo(){return U(`${W}/user/a/profile/currinfo.do?appid=1074`)},getOwnerInfo(e){return U(`${W}/user/a/media/pcver/basicinfo.do`,e)}},te=Q("user",()=>{const e=()=>_.getPassport(),o=h(e()),t=a=>{o.value=a},n=h(null),s=a=>{n.value=a};let r=!1;function i(){return f(this,null,function*(){return new Promise(a=>f(this,null,function*(){if(r){const d=setInterval(()=>{r||(a(n.value),clearInterval(d))},100)}else try{r=!0;const{data:d}=yield ee.getUserInfo();d.status===1?(t(!0),s(d.data)):(t(!1),s({})),a(n.value)}finally{r=!1}}))})}return{isLogin:o,updateLogin:t,userInfo:n,getUserInfo:()=>f(void 0,null,function*(){return e()?(n.value||(yield i()),n.value):!1}),updateUserInfo:s}}),We=Q("scene",()=>{const e=h(0);return{scene:e,updateScene:t=>{e.value=t}}}),ke="//score.my.tv.sohu.com",oe=e=>Se(ke+"/digg/api/outer/v1/pc/up",e),j="//push.my.tv.sohu.com",Ae=e=>F(j+"/user/a/fo/batchadd.do",e),Le=(e,o)=>F(`${j}/user/a/fo/batchJudge.do?uids=${e}&passport=${o}`),Ue=e=>F(j+"/user/a/fo/batchcancel.do",e),se=e=>({1:{type:"9001"},4:{type:"9006"},8:{type:"9001",subType:"1001"},9:{type:"9001",subType:"1002"},17:{type:"9031"},19:{type:"9007"}})[e.type]||{};var w=(e=>(e[e.CHANNELED1000029150=1]="CHANNELED1000029150",e[e.CHANNELED1000051000=2]="CHANNELED1000051000",e[e.CHANNELED1000062000=3]="CHANNELED1000062000",e[e.CHANNELED1000060026=4]="CHANNELED1000060026",e[e.CHANNELED1000030002=5]="CHANNELED1000030002",e))(w||{});const Qe=e=>{const o={type:"click",txid:"user_digg_suc",channeled:window.channeled,vid:"",memo:{}},t={1:{source_type:"1",content_form:"0",from:w["CHANNELED"+window.channeled]},4:{source_type:"2",from:w["CHANNELED"+window.channeled]},8:{source_type:"3",from:w["CHANNELED"+window.channeled]},9:{source_type:"1",content_form:"0",from:w["CHANNELED"+window.channeled]},17:{source_type:"5",from:w["CHANNELED"+window.channeled],broadListId:e.id},19:{source_type:"4",from:w["CHANNELED"+window.channeled]}};return o.memo=t[e.type]||{},(e.type==1||e.type==9)&&(o.vid=e.id),o},$e=e=>{const o=document.cookie.split("; ");for(const t of o){const[n,s]=t.split("=");if(n===e)return decodeURIComponent(s)}return null},Xe=()=>{const t=1e3+Math.pow(10,7);let n=Math.random();n=n<.1?n+.1:n;const s=Math.floor(1e3+n*t);return new Date().getTime().toString()+s.toString()},ne={uid:$e("SUV")||""},Ye=e=>{const o=se({type:e.type}),t=Object.assign({},ne,e,o);return t.isUp=1,oe(t)},Ze=e=>{const o=se({type:e.type}),t=Object.assign({},ne,e,o);return t.isUp=0,oe(t)},re=(e,o)=>{const t=e.__vccOpts||e;for(const[n,s]of o)t[n]=s;return t},Te={class:"avatar"},De=["alt"],Pe=["src"],He=X({__name:"Avatar",props:{info:{}},setup(e){const o=e,t=h(null),n=()=>{window.kao("userInfoExt",()=>{t.value=sohuHD.userInfoUtil.userInfoExt(o.info)})},s=r=>r!=null&&r.colors?{background:`linear-gradient(141deg, ${r.colors[0]} 0%, ${r.colors[1]} 100%)`}:"";return we(()=>f(this,null,function*(){n()})),(r,i)=>{var a,d;const c=be("lazyload");return H(),T("a",{class:Z(["pic-head",{"pic-head-color":(a=t.value)==null?void 0:a.colors}]),style:Y(s(t.value))},[D("div",Te,[P(D("img",{src:"//photocdn.tv.sohu.com/img/20250320/pic_org_89c25496-d9cc-4c85-bd8f-af973981f66e.png",alt:o.info.nickname},null,8,De),[[c,o.info.smallphoto]])]),(d=t.value)!=null&&d.v_icon?(H(),T("img",{key:0,class:"media_icon",src:t.value.v_icon},null,8,Pe)):ye("",!0)],6)}}}),et=re(He,[["__scopeId","data-v-8c1d9870"]]),Oe=e=>{window.kao("login",function(){window.sohuHD.initLogin(),window.sohuHD.showLoginWinbox(function(o){ee.getUserInfo().then(t=>{const n=t.data;if(n.status===1){const s=te();s.updateUserInfo(n&&n.data),s.updateLogin(!0),e&&e()}else window.location.href="https://tv.sohu.com"}).catch(t=>{window.location.href="https://tv.sohu.com"})})})},Fe={target:document.body,message:"",duration:3e3},g=e=>new Promise(o=>{e=Object.assign({},Fe,e);const t=document.createElement("div");t.classList.add("toast"),e.target.tagName.toLowerCase()==="body"&&t.classList.add("toast-fix"),t.innerText=e.message,e.target.appendChild(t),setTimeout(()=>{t.remove(),o()},e.duration)}),y=[],O=new IntersectionObserver(e=>{for(const o of e)if(o.isIntersecting)o.target.dataset.pbImpressTimeout=setTimeout(()=>{delete o.target.dataset.pbImpressTimeout,O.unobserve(o.target),o.target.dataset.pbTxid&&je(o.target.dataset.pbTxid,JSON.parse(o.target.dataset.pbData))},1e3);else{const t=o.target.dataset.pbImpressTimeout;delete o.target.dataset.pbImpressTimeout,t&&clearTimeout(t)}});function $(e,o){const t={type:"click",txid:e};o.memo&&(t.memo=o.memo),o.vid&&(t.vid=o.vid);const n=o.channeled||window.channeled;n&&(t.channeled=n),y.push(t),ae()}function je(e,o){const t={type:"impress",txid:e};o.memo&&(t.memo=o.memo),o.vid&&(t.vid=o.vid);const n=o.channeled||window.channeled;n&&(t.channeled=n),y.push(t),ae()}const Be=5,qe=1e3;let E=null;function ae(){if(E)return;function e(){if(y.length&&window.messagebus)for(let o=0;o{e(),y.length===0&&(clearTimeout(E),E=null)},qe))}function Ve(e){let o="";if(e&&typeof e=="object")for(const t in e)Object.prototype.hasOwnProperty.bind(e,t)&&(o&&(o+=";"),o+=`${t}=${e[t]}`);return encodeURIComponent(o)}const ze={mounted(e,o){o.modifiers.impress&&(o.value&&typeof o.value=="object"&&(e.dataset.pbData=JSON.stringify(o.value)),O.observe(e)),o.modifiers.click?e.addEventListener("click",()=>{e.dataset.pbTxid&&$(e.dataset.pbTxid,o.value)}):o.modifiers.clickCapture&&e.addEventListener("click",()=>{e.dataset.pbTxid&&$(e.dataset.pbTxid,o.value)},!0)},beforeUnmount(e,o){o.modifiers.impress&&O.unobserve(e)},shangBaoClick:$},Ke=X({__name:"FollowButton",props:{type:{default:"hollow"},uid:{},followStatus:{},isFollow:{type:[Number,Boolean]},styleObject:{},from:{}},emits:["on-follow"],setup(e,{emit:o}){const t=o,n=te(),s=e,r=A(()=>!n.isLogin||n.userInfo&&n.userInfo.id!=s.uid),i=A(()=>n.isLogin),c={1:"鍏虫敞",2:"浜掔浉鍏虫敞",3:"宸插叧娉",4:"鍏虫敞",5:"鍘荤湅鐪",6:"鍙栨秷鍏虫敞"},a=h(1);J(()=>{i.value?s.followStatus==0?a.value=2:s.followStatus==1?a.value=3:s.followStatus==-1?a.value=4:s.isFollow?s.type=="solid"?a.value=5:a.value=3:a.value=4:a.value=1});const d=()=>{V(()=>{var l;a.value=(l=N.find(u=>u.type==s.type))==null?void 0:l.followed})},v=()=>{ge(()=>{var l;a.value=(l=N.find(u=>u.type==s.type))==null?void 0:l.cancel})},b=()=>{const l=xe.makeAuthorHomeUrl({uid:s.uid});window.open(l)},ie=()=>{Oe(()=>{fe()})},B=[{statu:1,text:c[1],action:ie},{statu:2,text:c[2],action:()=>{s.type=="common"&&v()}},{statu:3,text:c[3],action:v},{statu:4,text:c[4],action:d},{statu:5,text:c[5],action:b},{statu:6,text:c[6],action:v}],I=h();J(()=>{var l;I.value=(l=B.find(u=>u.statu==a.value))==null?void 0:l.text});const N=[{type:"solid",class:"solid",followed:5,cancel:4},{type:"hollow",class:"hollow",followed:3,cancel:4},{type:"add",class:"add",followed:3,cancel:4},{type:"hollowadd",class:"hollowadd",followed:3,cancel:4},{type:"common",class:"commondefult",followed:3,cancel:4}],ce=A(()=>{var l;return(l=N.find(u=>u.type==s.type))==null?void 0:l.class}),le=()=>s.type=="solid"&&a.value!=1&&a.value!=4?"isfollow":s.type=="hollow"&&a.value==2?"setGrey":s.type=="add"&&a.value==3||s.type=="hollowadd"&&a.value==2?"delIcon":s.type=="common"&&a.value==2?"common":s.type=="common"&&a.value==3?"common2":"",ue=()=>s.type=="solid"||s.type=="hollow"&&(a.value==1||a.value==2)||s.type=="add"||s.type=="hollowadd"&&a.value!=3||s.type=="common",de=()=>{var l;(l=B.find(u=>u.statu==a.value))==null||l.action()},fe=()=>{V(()=>{const l=setTimeout(()=>{clearTimeout(l),window.location.reload()},600)})},S=h(),pe=()=>{s.type=="common"&&I.value!=c[4]&&(I.value=c[6],S.value="common")},q=Ie("feedInfo",""),me=()=>{var l,u,K,M,G;if(q){const p=q;return{id:p.type!=11?(l=p==null?void 0:p.commentDigg)==null?void 0:l.id:(K=(u=p.content)==null?void 0:u.forward_source_info)==null?void 0:K.commentDigg.id,type:p.type!=11?p==null?void 0:p.type:(G=(M=p.content)==null?void 0:M.forward_source_info)==null?void 0:G.type}}},he=()=>{const l={txid:"user_follow_suc",channeled:window.channeled,memo:{passportid:s.uid,from:s.from}},u=me();u&&u.type==17&&(l.memo.broadListId=u.id),ze.shangBaoClick(l.txid,{channeled:l.channeled,memo:l.memo})},ve=()=>{s.type=="common"&&(I.value=c[a.value],S.value="")},k=h(),V=l=>f(this,null,function*(){s.uid||g({message:"鏈幏鍙栧埌鐢ㄦ埛淇℃伅",duration:2e3}),yield z(),Ae({uids:s.uid,passport:_.getPassport(),sigKey:k.value}).then(u=>{u.data.status==1?(he(),l(),t("on-follow",!0),g({message:"鍏虫敞鎴愬姛",duration:2e3})):g({message:"鍏虫敞澶辫触",duration:2e3})}).catch(u=>{g({message:"鏈嶅姟寮傚父锛屽叧娉ㄥけ璐",duration:2e3})})}),ge=l=>f(this,null,function*(){yield z(),Ue({uids:s.uid,passport:_.getPassport(),sigKey:k.value}).then(u=>{u.data.status==1?(l(),t("on-follow",!1),g({message:"鍙栨秷鎴愬姛",duration:2e3})):g({message:"鍙栨秷澶辫触",duration:2e3})}).catch(u=>{g({message:"鏈嶅姟寮傚父锛屽彇娑堝け璐",duration:2e3})})}),z=()=>f(this,null,function*(){const u=(yield Le(s.uid,_.getPassport())).data;k.value=u.sigKey});return(l,u)=>P((H(),T("div",null,[P(D("button",{style:Y(l.styleObject),class:Z(["follow-btn",[ce.value,le(),S.value]]),onClick:de,onMouseenter:pe,onMouseleave:ve},_e(I.value),39),[[R,ue()]])],512)),[[R,r.value]])}}),tt=re(Ke,[["__scopeId","data-v-234ebd8f"]]),ot={beforeMount(e,o,t){let n=o.value;if(!n)return;n="svg-sprite__"+n;let s=document.querySelector("#svg-sprite");if(s||(s=document.createElementNS("http://www.w3.org/2000/svg","svg"),s.setAttribute("id","svg-sprite"),s.style.cssText="position:absolute;width:0;height:0;overflow:hidden",document.body.prepend(s)),s.querySelector("#"+n))e.replaceChildren();else{const c=document.createElementNS("http://www.w3.org/2000/svg","symbol");c.setAttribute("id",n),c.append(...e.children),s.append(c)}const r=document.createElementNS("http://www.w3.org/2000/svg","use");r.setAttribute("href","#"+n),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+n);const i=["width","height"];for(const c of e.attributes)i.includes(c.name)&&r.setAttribute(c.name,c.value);e.append(r)}},Me=(e,o)=>{const t=new IntersectionObserver(n=>{n.forEach(s=>{s.isIntersecting&&(o(s.target),t.unobserve(s.target))})});t.observe(e)},st={mounted(e,o){Me(e,t=>{const n=o.value;if(n){const s=Ce.convertFormat(n);t.src=s.replace(/^http(s?):/,""),/\.(webp|avif)/.test(s)&&t.addEventListener("error",()=>t.src=n,{once:!0})}})}};export{et as A,tt as F,xe as L,re as _,We as a,U as b,Xe as c,ze as d,ee as e,Ce as f,$e as g,Ye as h,st as i,F as j,Ze as k,Oe as l,g as m,Se as n,Re as o,_ as p,C as q,Qe as r,ot as s,te as u};