/* sohutv 2025-07-10 17:46:29 */ var d=(e,t,r)=>new Promise((s,o)=>{var n=c=>{try{i(r.next(c))}catch(u){o(u)}},a=c=>{try{i(r.throw(c))}catch(u){o(u)}},i=c=>c.done?s(c.value):Promise.resolve(c.value).then(n,a);i((r=r.apply(e,t)).next())});import{P as g,B as A,r as k}from"./vendor-BpqvFnA1.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const n of o)if(n.type==="childList")for(const a of n.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const n={};return o.integrity&&(n.integrity=o.integrity),o.referrerPolicy&&(n.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?n.credentials="include":o.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function s(o){if(o.ep)return;o.ep=!0;const n=r(o);fetch(o.href,n)}})();var T={regex:/([^.]+)$/,browser:function(){var e=navigator.userAgent,t={},r=e.match(/WebKit\/([\d.]+)/),s=e.match(/Chrome\/([\d.]+)/)||e.match(/CriOS\/([\d.]+)/),o=e.match(/Firefox\/([\d.]+)/),n=e.match(/Version\/([\d.]+).*Safari/),a=e.match(/Edg\/([\d.]+)/);return r&&(t.webkit=parseFloat(r[1])),s&&(t.chrome=parseFloat(s[1])),o&&(t.firefox=parseFloat(o[1])),n&&(t.safari=parseFloat(n[1])),a&&(t.edg=parseFloat(a[1])),t}(),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 m={getUrlParam(e){const t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),r=window.location.search.substring(1).match(t);return r!=null?decodeURIComponent(r[2]):null},stringify(e){return e?Object.keys(e).map(function(t){var r=e[t];return Array.isArray(r)?r.map(function(s){return encodeURIComponent(t)+"="+encodeURIComponent(s)}).join("&"):encodeURIComponent(t)+"="+encodeURIComponent(r)}).join("&"):""},parse(e){return typeof e!="string"?{}:(e=e.trim().replace(/^\?/,""),e?e.trim().split("&").reduce(function(t,r){var s=r.replace(/\+/g," ").split("="),o=s[0],n=s[1];return o=decodeURIComponent(o),n=n===void 0?null:decodeURIComponent(n),t.hasOwnProperty(o)?Array.isArray(t[o])?t[o].push(n):t[o]=[t[o],n]:t[o]=n,t},{}):{})},push(e,t){let r=this.parse(window.location.search);t?r[e]=t:delete r[e];let s=this.stringify(r);try{history.pushState({},"",window.location.pathname+"?"+s+window.location.hash)}catch(o){}}},p=location.origin+"/s/follow",M={makeVideoUrl(e,t={}){let r=e.content_video;!r&&e.items&&e.items.length>0&&(r=e.items[0]);const{site:s,vid:o,pugc_video_type:n}=r,{uid:a}=t;let i=`https://m.tv.sohu.com/v${o}.shtml`;return s==2&&(n&&n=="20"?i=`https://m.tv.sohu.com/sugs/sv${o}.shtml`:i=`https://m.tv.sohu.com/phone_play_ugc_wx?vid=${o}`),i},makeVideoUrlPC(e){var c;let t,r=e.content_video;if(e.content_broadlist&&(t=e.content_broadlist.bid,r=(c=e.content_broadlist)==null?void 0:c.content_video),!r)return"";const{site:s,vid:o,pugc_video_type:n}=r;let a=`https://m.tv.sohu.com/v${o}.shtml`,i={channeled:window.channeled||"",page_transition:1};if(s=="2"){let u=n=="20"?"/a":"";t&&(i.bid=t),a="/v/"+window.btoa(`us${u}/0/${o}.shtml`)+".html"}else r.cid=="1"&&r.aid&&r.fee=="2"&&(a=`https://film.sohu.com/album/${r.aid}.html`);return a+`?${m.stringify(i)}`},makeBroadUrl(e){const{bid:t,content_video:r}=e.content_broadlist,s=r&&r.vid||"";return s?`https://m.tv.sohu.com/u/vw/${s}.shtml?bid=${t}`:""},makeLiveUrl(e){const{roomId:t,course:r,courseId:s,streamName:o}=e.content_live;let n,a={roomId:t,channeled:window.channeled||"",page_transition:1};return r==1?(a.courseId=s,n=`https://m.tv.sohu.com/upload/h5/xiaoke/course.html?${m.stringify(a)}`):(o&&(a.streamName=o),m.getUrlParam("qftest")?(a.qftest=1,n=`https:/s/m/special/sohulive/index.html?${m.stringify(a)}`):n=`https:/sohulive/index.shtml?${m.stringify(a)}`),n},makeLiveScheduleUrl(e,t){let{scheduleId:r,uid:s}=e;return t&&(s=t.uid),`${p}/liveschedule.html?scheduleId=${r}&uid=${s}`},makeTopicUrl(e){return`${p}/topic.html?tid=${e.id}`},makeAuthorHomeUrl(e){const{uid:t}=e;return`${p}/authorHome.html?uid=${t}`},makePugcRankUrl(e){return`${p}/pugcrank.html?rankFileId=${e}`},makeVrsRankUrl(e){return`${p}/vrsrank.html?cate_code=${e}`},makeShareLinkUrl(e){return`${p}/shareLink.html?id=${e.id}`},makeVrsListUrl(e){return`https://m.tv.sohu.com/vpf/f${e.id}.shtml`},makeForwardUrl(e){return`https://m.tv.sohu.com/ses/f${e}.shtml`},makeZpjUrl(e){return`https://m.tv.sohu.com/spl/p${e}`}};var l=function(){this.logoutTimes=0,this.loginTimes=0};l.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||""}};l.prototype.b64_423=function(e){for(var t=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","-","_"),r="",s=0;s>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t[s++]=e.charAt(r-1);break;case 12:case 13:a=e.charCodeAt(r++),t[s++]=String.fromCharCode((n&31)<<6|a&63);break;case 14:a=e.charCodeAt(r++),i=e.charCodeAt(r++),t[s++]=String.fromCharCode((n&15)<<12|(a&63)<<6|i&63);break;case 15:switch(n&15){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:a=e.charCodeAt(r++),i=e.charCodeAt(r++),c=e.charCodeAt(r++),u=(n&7)<<18|(a&63)<<12|(i&63)<<6|(c&63)-65536,0<=u&&u<=1048575?t[s]=String.fromCharCode(u>>>10&1023|55296,u&1023|56320):t[s]="?";break;case 8:case 9:case 10:case 11:r+=4,t[s]="?";break;case 12:case 13:r+=5,t[s]="?";break}}s++}return t.join("")};l.prototype.selectInfo=function(){var e=["ppinf","ppinfo","passport"],t,r,s;for(t=0,r=e.length;t1&&(t[o[0]]=o[2])}catch(n){}return t};l.prototype.getInfo=function(){return this.analyzeInfo(this.decodeInfo(this.selectInfo()))};const $=new l;let O=0;function E(e,t={},r="callback"){return new Promise((s,o)=>{const n=`jsonp_${Date.now()}_${O++}`,a=document.createElement("script"),i=()=>{delete window[n],document.body.removeChild(a)};window[n]=v=>{i(),s(v)};const c=Object.keys(t).map(v=>`${v}=${encodeURIComponent(t[v])}`).join("&"),u=e.includes("?")?"&":"?";let I=`${e}${u}${r}=${n}&${c}`;/platform_source=/.test(I)||(I+="&platform_source=pc"),a.src=I,a.onerror=()=>{i(),o(new Error("JSONP request failed"))},document.body.appendChild(a)})}g.defaults.withCredentials=!0;$.getUid(),$.getPassport();g.defaults.paramsSerializer=e=>new URLSearchParams(e).toString();function w(e,t,r){return d(this,null,function*(){let s=null,o=null,n=null;try{s=yield g.get(e,{params:t||{},headers:r||{}}),s.status===200?n=s.data:o=s}catch(a){o=a}return{data:n,error:o}})}function N(e,t){return d(this,null,function*(){let r=null,s=null,o=null;try{r=yield g.post(e,t||{}),r.status===200?o=r.data:s=r}catch(n){s=n}return{data:o,error:s}})}function W(e,t){return d(this,null,function*(){let r=null,s=null,o=null;try{r=yield g.post(e,t||{},{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),r.status===200?o=r.data:s=r}catch(n){s=n}return{data:o,error:s}})}function y(e,t){return d(this,null,function*(){let r=null,s=null,o=null;try{r=yield E(e,t||{}),o=r}catch(n){s=n}return{data:o,error:s}})}const _="//my.tv.sohu.com",F="//hd.my.tv.sohu.com",L={getVipInfo(){return w("https://film.sohu.com/getlogininfo.json")},getUserInfo(){return w(`${_}/user/a/profile/currinfo.do?appid=1074`)},getOwnerInfo(e){return w(`${_}/user/a/media/pcver/basicinfo.do`,e)},getRecentAtList(){return d(this,null,function*(){return w(`${F}/aggregation/h5/v1/getRecentAtList`)})},searchUser(e){const t={uid:"pcguanzhuliu",key:"",plat:-1,time:Date.now()};return y("https://m.so.tv.sohu.com/search/suc",Object.assign(t,e))}},R=A("user",()=>{const e=()=>$.getPassport(),t=k(e()),r=c=>{t.value=c},s=k(null),o=c=>{s.value=c};let n=!1;function a(){return d(this,null,function*(){return new Promise(c=>d(this,null,function*(){if(n){const u=setInterval(()=>{n||(c(s.value),clearInterval(u))},100)}else try{n=!0;const{data:u}=yield L.getUserInfo();u.status===1?(r(!0),o(u.data)):(r(!1),o({})),c(s.value)}finally{n=!1}}))})}return{isLogin:t,updateLogin:r,userInfo:s,getUserInfo:()=>d(void 0,null,function*(){return e()?(s.value||(yield a()),s.value):!1}),updateUserInfo:o}}),K=A("scene",()=>{const e=k(0);return{scene:e,updateScene:r=>{e.value=r}}}),j="//score.my.tv.sohu.com",Q=e=>N(j+"/digg/api/outer/v1/pc/up",e),U="//push.my.tv.sohu.com",Z=e=>y(U+"/user/a/fo/batchadd.do",e),X=(e,t)=>y(`${U}/user/a/fo/batchJudge.do?uids=${e}&passport=${t}`),Y=e=>y(U+"/user/a/fo/batchcancel.do",e),ee=(e,t)=>{const r=e.__vccOpts||e;for(const[s,o]of t)r[s]=o;return r},te=e=>{window.kao("login",function(){window.sohuHD.initLogin(),window.sohuHD.showLoginWinbox(function(t){L.getUserInfo().then(r=>{const s=r.data;if(s.status===1){const o=R();o.updateUserInfo(s&&s.data),o.updateLogin(!0),e&&e()}else window.location.href="https://tv.sohu.com"}).catch(r=>{window.location.href="https://tv.sohu.com"})})})},D={target:document.body,message:"",duration:3e3},re=e=>new Promise(t=>{e=Object.assign({},D,e);const r=document.createElement("div");r.classList.add("toast"),e.target.tagName.toLowerCase()==="body"&&r.classList.add("toast-fix"),r.innerText=e.message,e.target.appendChild(r),setTimeout(()=>{r.remove(),t()},e.duration)}),f=[];function h(e,t){if(!e)return;const r={type:"click",txid:e};t.memo&&(r.memo=t.memo),t.vid&&(r.vid=t.vid);const s=t.channeled||window.channeled;s&&(r.channeled=s),f.push(r),P()}function S(e,t){if(!e)return;const r={type:"impress",txid:e};t.memo&&(r.memo=t.memo),t.vid&&(r.vid=t.vid);const s=t.channeled||window.channeled;s&&(r.channeled=s),f.push(r),P()}const q=5,G=1e3;let b=null;function V(){if(f.length&&window.messagebus)for(let e=0;e{window.messagebus.publish("statV2.ping.GuanZhuLiu",{type:t.type,txid:t.txid,vid:t.vid||void 0,channeled:t.channeled||void 0,memo:B(t.memo)||void 0})})}}function P(){b||f.length&&(b=setInterval(()=>{V(),f.length===0&&(clearTimeout(b),b=null)},G))}function B(e){let t="";if(e&&typeof e=="object")for(const r in e)Object.prototype.hasOwnProperty.bind(e,r)&&(t&&(t+=";"),t+=`${r}=${e[r]}`);return encodeURIComponent(t)}const C=new Set,x=new IntersectionObserver(e=>{for(const t of e)if(t.isIntersecting)t.target.dataset.pbImpressTimeout=setTimeout(()=>{delete t.target.dataset.pbImpressTimeout,x.unobserve(t.target);let r=t.target.dataset.impressPbTxid||t.target.dataset.pbTxid||"";r&&(t.target.dataset.pbImpressGroup?C.has(t.target.dataset.pbImpressGroup)||(C.add(t.target.dataset.pbImpressGroup),S(r,JSON.parse(t.target.dataset.pbData))):S(r,JSON.parse(t.target.dataset.pbData)))},1e3);else{const r=t.target.dataset.pbImpressTimeout;delete t.target.dataset.pbImpressTimeout,r&&clearTimeout(r)}}),se={mounted(e,t){t.modifiers.impress&&(t.value&&typeof t.value=="object"&&(e.dataset.pbData=JSON.stringify(t.value)),x.observe(e)),t.modifiers.click?e.addEventListener("click",()=>{e.dataset.clickPbTxid?h(e.dataset.clickPbTxid,t.value):e.dataset.pbTxid&&h(e.dataset.pbTxid,t.value)}):t.modifiers.clickCapture&&e.addEventListener("click",()=>{e.dataset.clickPbTxid?h(e.dataset.clickPbTxid,t.value):e.dataset.pbTxid&&h(e.dataset.pbTxid,t.value)},!0)},beforeUnmount(e,t){t.modifiers.impress&&x.unobserve(e)},shangBaoClick:h},oe={beforeMount(e,t,r){let s=t.value;if(!s)return;s="svg-sprite__"+s;let o=document.querySelector("#svg-sprite");if(o||(o=document.createElementNS("http://www.w3.org/2000/svg","svg"),o.setAttribute("id","svg-sprite"),o.style.cssText="position:absolute;width:0;height:0;overflow:hidden",document.body.prepend(o)),o.querySelector("#"+s))e.replaceChildren();else{const i=document.createElementNS("http://www.w3.org/2000/svg","symbol");i.setAttribute("id",s),i.append(...e.children),o.append(i)}const n=document.createElementNS("http://www.w3.org/2000/svg","use");n.setAttribute("href","#"+s),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+s);const a=["width","height"];for(const i of e.attributes)a.includes(i.name)&&n.setAttribute(i.name,i.value);e.append(n)}},H=(e,t)=>{const r=new IntersectionObserver(s=>{s.forEach(o=>{o.isIntersecting&&(t(o.target),r.unobserve(o.target))})});r.observe(e)},ne={mounted(e,t){H(e,r=>{const s=t.value;if(s){const o=T.convertFormat(s);r.src=o.replace(/^http(s?):/,""),/\.(webp|avif)/.test(o)&&r.addEventListener("error",()=>r.src=s,{once:!0})}})}};export{L as A,M as L,ee as _,K as a,w as b,se as c,re as d,W as e,N as f,te as g,T as h,ne as i,y as j,Z as k,Y as l,X as m,Q as n,$ as p,m as q,oe as s,R as u};