/*! For license information please see client-entry~5.6243908e.js.LICENSE.txt */ !function(e,t){"object"==typeof module&&"object"==typeof module.exports?t():"function"==typeof define&&define.amd?define([],t):(e="undefined"!=typeof globalThis?globalThis:e||self)&&t()}(this,function(){"use strict";"object"==typeof window&&(window.openRedirect={version:"1.2.20",webpackPluginVersion:"3.4.22",reportOnly:!1})}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).xss={})}(this,function(e){"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,i=1,n=arguments.length;i/g,a=/&#([a-zA-Z0-9]*);?/gim,l=/"/g,s=/:?/gim,u=/&newline;?/gim,d=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,c=/u\s*r\s*l\s*\(.*/gi,f=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,h=/"/g,v=function(e){return e.replace(r,"<").replace(o,">")},_={indexOf:function(e,t){var i,n;for(i=0,n=e.length;i127&&n<2048?t+=String.fromCharCode(n>>6|192)+String.fromCharCode(63&n|128):t+=String.fromCharCode(n>>12|224)+String.fromCharCode(n>>6&63|128)+String.fromCharCode(63&n|128)}return t}(e);d>2,o=(3&t)<<4|(i=e.charCodeAt(d++))>>4,a=(15&i)<<2|(n=e.charCodeAt(d++))>>6,l=63&n,isNaN(i)?a=l=64:isNaN(n)&&(l=64),u=u+s.charAt(r)+s.charAt(o)+s.charAt(a)+s.charAt(l);return u}function y(e){var t,i,n,r,o,a,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="",u=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");u>4,i=(15&r)<<4|(o=l.indexOf(e.charAt(u++)))>>2,n=(3&o)<<6|(a=l.indexOf(e.charAt(u++))),s+=String.fromCharCode(t),64!==o&&(s+=String.fromCharCode(i)),64!==a&&(s+=String.fromCharCode(n));return function(e){for(var t="",i=0,n=0,r=0,o=0;i191&&n<224?(t+=String.fromCharCode((31&n)<<6|63&(o=e.charCodeAt(i+1))),i+=2):(o=e.charCodeAt(i+1),t+=String.fromCharCode((15&n)<<12|(63&o)<<6|63&(r=e.charCodeAt(i+2))),i+=3);return t}(s)}function w(e,t,i){var n="",r=0,o=!1,a=!1,l=0,s=e.length,u="",d="";e:for(l=0;l"===c||l===s-1){n+=i(e.slice(r,o)),u=function(e){var t,i=_.spaceIndex(e);return t=-1===i?e.slice(1,-1):e.slice(1,i+1),"/"===(t=_.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}(d=e.slice(o,l+1)),n+=t(o,n.length,u,d,"0;t--){var i=e[t];if(" "!==i)return"="===i?t:-1}return -1}(e,u-1))){s(a,p(_.trim(e.slice(i,u)))),a=!1,i=u+1;continue}}}else{if(-1===(c=e.indexOf(d,u+1)))break;s(a,_.trim(e.slice(r+1,c))),a=!1,i=(u=c)+1}}else a=e.slice(i,u),i=u+1,r='"'===e.charAt(i)||"'"===e.charAt(i)?i:function(e,t){for(;te.charCodeAt(i)?" ":e.charAt(i);return _.trim(t)}(e=(e=(e=e.replace(l,'"')).replace(a,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})).replace(s,":").replace(u," "))}(i),"href"===t||"src"===t){if("#"===(i=_.trim(i)))return"#";if("http://"!==i.substr(0,7)&&"https://"!==i.substr(0,8)&&"mailto:"!==i.substr(0,7)&&"tel:"!==i.substr(0,4)&&"data:image/"!==i.substr(0,11)&&"ftp://"!==i.substr(0,6)&&"./"!==i.substr(0,2)&&"../"!==i.substr(0,3)&&"#"!==i[0]&&"/"!==i[0])return""}else if("background"===t){if(d.lastIndex=0,d.test(i))return""}else if("style"===t&&(f.lastIndex=0,f.test(i)||(c.lastIndex=0,c.test(i)&&(d.lastIndex=0,d.test(i)))))return"";return i=function(e){return e=v(e=e.replace(h,"""))}(i)}var S=function(e){return"string"==typeof e?e.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},k=function(){function e(e){var t=function(e){var t={};for(var i in e)t[i]=e[i];return t}(e||{});t.stripIgnoreTag&&(t.onIgnoreTag,t.onIgnoreTag=function(){return""}),t.whiteList={},t.onTag=function(){},t.onTagAttr=function(){},t.onIgnoreTag=function(){},t.onIgnoreTagAttr=function(){},t.safeAttrValue=C,t.escapeHtml=v,this.options=Object.assign(t,e)}return e.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t,i,n,r,o,a,l=this.options,s=l.whiteList,u=l.onTag,d=l.onIgnoreTag,c=l.onTagAttr,f=l.onIgnoreTagAttr,h=l.safeAttrValue,v=l.escapeHtml;l.stripBlankChar&&(e=(t=(t=e.split("")).filter(function(e){var t=e.charCodeAt(0);return!(127===t||t<=31&&10!==t&&13!==t)})).join("")),l.allowCommentTag||(e=function(e){for(var t="",i=0;i");var l=function(e){var t=_.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var i="/"===(e=_.trim(e.slice(t+1,-1)))[e.length-1];return i&&(e=_.trim(e.slice(0,-1))),{html:e,closing:i}}(n),m=s[i],p=b(l.html,function(e,t){var n=-1!==_.indexOf(m,e),r=c(i,e,t,n);return null==r?n?(t=h(i,e,t,null))?"".concat(e,'="').concat(t,'"'):e:null==(r=f(i,e,t,n))?void 0:r:r});return n="<".concat(i),p&&(n+=" ".concat(p)),l.closing&&(n+=" /"),n+=">"}return null==(a=d(i,n,o))?v(n):a},v);return m&&(p=m.remove(p)),p},e}(),x=Function("\nvar _checkXSS = function (it) {\n return it && it.Math == Math && it;\n};\nreturn _checkXSS(typeof globalThis === 'object' && globalThis) ||\n_checkXSS(typeof window === 'object' && window) ||\n_checkXSS(typeof self === 'object' && self) ||\n_checkXSS(typeof global === 'object' && global) ||\nFunction('return this')();\n")(),I=new(function(){function e(){var e=this;this.batchData=[],this.uniqKeys=new Set,this.timeout=2e3,this.lock=!1,this.getSlardarBid=function(){var t,i,n="douyin_web";if(!_.includes(n,"bid"))return n;if(e.config&&e.config.bid)return e.config.bid;if(x&&x._xssBid)return x._xssBid;if(x&&x.slardar&&"function"==typeof x.slardar.config){var r=(x.slardar.config()||{}).bid;if(r)return r}if(x&&x.Slardar&&"function"==typeof x.Slardar.config){var o=(x.Slardar.config()||{}).bid;if(o)return o}return(null===(i=null===(t=null==x?void 0:x.Slardar)||void 0===t?void 0:t._baseParams)||void 0===i?void 0:i.bid)||"argus"},this.getConfigRegion=function(){var t;return _.includes("cn","region")?e.config&&e.config.region?e.config.region:((null===(t=null==x?void 0:x.gfdatav1)||void 0===t?void 0:t.region)||"cn").toLowerCase():"cn"},this.gerReportUrl=function(){var t={cn:y("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boe:y("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),ttp:y("aHR0cHM6Ly9tb24udXMudGlrdG9rdi5jb20vbW9uaXRvcl9icm93c2VyL2NvbGxlY3QvYmF0Y2gvc2VjdXJpdHkvP2JpZD0="),va:y("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),maliva:y("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),sg:y("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boei18n:y("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9")}[e.getConfigRegion()];if(t)return t+e.getSlardarBid()}}return e.prototype.setConfig=function(e){this.config=e},e.prototype.upload=function(){var e=this,t=this.gerReportUrl();!this.lock&&t&&0!==this.batchData.length&&(this.lock=!0,setTimeout(function(){var i=e.batchData.slice(0,100);e.batchData=e.batchData.slice(100),x.fetch(t,{method:"post",body:JSON.stringify(i),headers:{"Content-Type":"application/json"}}).catch(function(e){}),e.lock=!1,e.upload()},this.timeout))},e.prototype.generateKey=function(e){return e.collectKey?[e.collectMode,e.collectKey].join("___"):""},e.prototype.push=function(e){this.batchData.push(e),this.upload()},e.prototype.report=function(e){var t=this.generateKey(e);if(x.fetch&&e.collectKey){var i="object"==typeof window?window.location.href:"SSR";e.documentUrl=i;var n={age:Math.floor(Date.now()),type:"xss",url:i,body:e,"user-agent":""};"enforce"===e.disposition&&"SSR"!==i||(n.url=t),"SSR"===i&&(n.url="SSR___".concat(n.url),n.body.ssr=!0),this.push(n)}},e}()),L=function(e){for(var t=0,i=function(i){Array.isArray(e[i])?0===e[i].length?delete e[i]:(e[i]=_.from(_.uniq(e[i])),t+=e[i].length):0===_.keys(e[i]).length?delete e[i]:_.keys(e[i]).forEach(function(n){e[i][n]=_.from(_.uniq(e[i][n])),t+=e[i][n].length})},n=0,r=_.keys(e);n0)return t&&t("javascript:"),!1;if(/^javascript:/i.test(e)){var r=e.slice(11).replace(/\s/g,"").trim();return!!_.some(["void","void(0)","void0","false","undefined",";"],function(e){return e===r})||(t&&t("javascript:"),!1)}return!0}var R=function(e,t){var i,n,r="<%= isSaveValidUrl =>";if("string"!=typeof e||(n=Number("<%= urlLimit =>"),void 0!==i&&(n=i),"NaN"!==e.toString()&&-1!==n&&e.length>=n)||N(e,t))return e;try{if(!0===(r=JSON.parse(r))||"true"===r){var o=new URL(e);return o.origin+o.pathname}}catch(e){}return"#"};function A(e,t,n){if(void 0===e&&(e=""),void 0===t&&(t=[]),"string"!=typeof e)return!0;if(!N(e=P(e)))return!1;var r,o={url:(r=e.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/)||[])[0],scheme:r[1],slash:r[2],host:r[3],port:r[4],path:r[5],query:r[6],hash:r[7]},a=o.scheme,l=o.host;return n?!!n(e):!(!a||!l)&&(!_.includes(["http","https","file"],a)||("object"==typeof window&&window&&(t=i(i([],t,!0),[location.host],!1)),_.some(t,function(e){return!!(e instanceof RegExp&&e.test(l))||e===l})))}var M={a:["target","title","spellcheck","rel"],canvas:[],abbr:["title"],address:[],area:["shape","coords","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:["dir"],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["alt","title","width","height","decoding"],ins:["datetime"],li:[],mark:[],nav:[],ol:["start"],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],delete:[],form:[],strong:[],mask:["maskunits","x","y","width","height","fill"],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],wbr:[],video:["autoplay","controls","loop","preload","height","width"],svg:["viewBox","version","xmlns","fill","width","height","stroke","stroke-width","style"],path:["d","fill","opacity","stroke","p-id","fill-rule","clip-rule","stroke-width","stroke-linecap","stroke-linejoin","fill-opacity","mask"],rect:["x","y","width","height","fill","stroke","rx"],g:[]},D={collect:null,initCollect:function(){this.collect={whiteList:{},filterProtocol:[]}},removeCollect:function(){var e=L(this.collect),t=e.count,i=e.ret;return this.collect=null,{collectKey:0===t?null:JSON.stringify(i),collectMode:"white"}},onIgnoreTagAttr:function(e,t,n){return e&&_.indexOf(["href","src"],t)>-1?D.domainWhiteList&&Array.isArray(D.domainWhiteList)&&D.domainWhiteList.length>0&&!A(n,i([],D.domainWhiteList,!0))?"":"".concat(t,'="').concat(R(n,function(e){var t;null===(t=D.collect)||void 0===t||t.filterProtocol.push(e)}),'"'):e&&(_.indexOf(["style","class","id"],t)>-1||t.indexOf("data-")>-1)?"".concat(t,'="').concat(n,'"'):(D.collect.whiteList[e]=D.collect.whiteList[e]||[],void D.collect.whiteList[e].push(t))},onIgnoreTag:function(e,t){if("style"===e)return t;w(t,function(e,t,i,n){b(T(n).html.replace("/",""),function(e){D.collect.whiteList[i]=D.collect.whiteList[i]||[],D.collect.whiteList[i].push(e)})},v)},whiteList:M,mergeWhiteList:function(e){for(var t,i={},n=0,r=_.keys(M);n");var o=T(n),a=b(o.html,function(e,t){var n,r=0;if(V.blackList[i]&&_.includes(V.blackList[i],e)&&(W.collect.blackList[i]=W.collect.blackList[i]||[],W.collect.blackList[i].push(e),r++),V.blackAttrRegExps.length&&V.blackAttrRegExps.some(function(t){return t.test(e)})&&_.forEach(V.blackAttrRegExps,function(t){t.test(e)&&(W.collect.blackAttrRegExps.push("".concat(t.toString(),"->").concat(e)),r++)}),V.blackAttrs.length&&_.includes(V.blackAttrs,e)&&(V.blackAttrs.push(e),r++),!r){if(V.filterList&&V.filterList[i]&&_.includes(V.filterList[i],e)){var o=R(t,function(e){var t;null===(t=W.collect)||void 0===t||t.filterProtocol.push(e)});return o!==t&&(W.collect.filterList[i]=W.collect.filterList[i]||[],W.collect.filterList[i].push(e)),t?"".concat(e,"='").concat(o,"'"):e}return V.filterAttrs&&_.includes(V.filterAttrs,e)?((o=R(t,function(e){var t;null===(t=W.collect)||void 0===t||t.filterProtocol.push(e)}))!==t&&(null===(n=W.collect)||void 0===n||n.filterAttrs.push(e)),t?"".concat(e,"='").concat(o,"'"):e):t?"".concat(e,"='").concat(t,"'"):e}});return n="<".concat(i),a&&(n+=" ".concat(a)),o.closing&&(n+=" /"),n+=">"},v);null===(i=W.collect)||void 0===i||i.blackTags.push(e)}},H=function(e){var t=e.reportOnly,i=void 0===t||t,n=e.block;return i&&"all"===i?"report":("string"==typeof i&&("true"===i&&(i=!0),"false"===i&&(i=!1)),n?"enforce":i?"report":"enforce")},G=function(e){return function(i,n,r){if(!i||"string"!=typeof i)return i;var o=n;e===E&&(o=D).initCollect();var a=e(i,o);if(S(a)===S(i))return i;if(!r)return a;var l=r.logType,s=H(r),u=o.removeCollect();return I.report(t(t({type:l,disposition:s},u),{sourceText:g(i),filterText:g(a)})),"enforce"===s?a:i}},K=G(function(e,t){return void 0===t&&(t={}),t&&t.whiteList||(t.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}),new k(t).process(e)}),q=G(E),Z=function(e,t,i){var n=[],r=R(e,function(e){n.push(e)});if(r===e)return e;n=_.from(_.uniq(n));var o=t||i||{};if(!o)return r;var a=o.logType,l=H(i);return I.report({type:a,disposition:l,collectKey:n.join("___"),collectData:JSON.stringify(n),collectMode:"black",sourceText:g(e),filterText:g(r)}),"enforce"===l?r:e},z=x._xssProject||{},Q=x.xssNamespace||{},Y="3.0.26",$={FilterXSS:k,version:Y,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:K,_filterXSS:q,filterUrl:Z,Config:D,BlackConfig:W,project:z,setProjectName:function(e){z[e]=this,x._xssProjectName=e}};Q.douyin_web=$,x.xssNamespace=Q,x.Math&&!x.Math.xssNamespace&&(x.Math.xssNamespace=Q),z[Y]=$,x.globalThis=x,x.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:$},x.xss=$,x.isSafeUrl=A,x.isSafeDomain=A,x.isSafeProtocol=N,x._xssProject=z,x._xssProjectName&&(z[x._xssProjectName]=$);var J=$.setProjectName.bind($);e.BlackConfig=W,e.Config=D,e.FilterXSS=k,e._filterXSS=q,e.filterUrl=Z,e.filterXSS=K,e.isSafeDomain=A,e.isSafeProtocol=N,e.isSafeUrl=A,e.project=z,e.setProjectName=J,e.setXssNamespace=function(e){var t=e.appId,i=e.bid,n=e.region;Q[t]=$;D.bid=i,D.region=n,D.enabled=!0},e.xssNamespace=Q,Object.defineProperty(e,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["94340"],{777916:function(e,t,i){"use strict";i.r(t),t.default={coreContent:"dQoEKzW8",playerContainer:"fA3pwfX5",removeSlideListButton:"s9UPzVYq",sideBar:"nS_sDsY7",switch:"td_lZvi7",feedback:"_I6erU3P",videoContainer:"fUnbTNrt",skeletonOptimized:"coNGAkZd",bgImage:"RV_epuj8",loading:"L2tZWQ9U",upperLayerLoading:"clQvDDA_"}},584465:function(e,t,i){"use strict";i.r(t),t.default={logoWap:"oyfoOh0v",logo:"mHOpWGXb",logoMin:"iqNYByWR",grey:"NbHF2q0o",white:"F8JSyyL4",isLogoHide:"KIZzxPGF",DYheaderWap:"F_Ruy35W",headerContent:"vEl_oWhX",headerContentRight:"Tila1Qnw",iconMenuWap:"xNOeayFY",iconMenu:"af5wLzOU",iconMenuListWap:"UBFnWa3i",iconMenuList:"I3Q4n9Fp",postVideoBtn:"SHXJlmHE",iconMenuListWapAction:"cfGdHh0o",headerContentSearch:"ugI85t6d",showBorderBot:"ypEyyTAW"}},299878:function(e,t,i){"use strict";i.r(t),t.default={menuWap:"jrQQPpbz",dropDownWap:"GVUqfBRZ",title:"FB_YW6Iu",dropDown:"qOX39ZQo",menuItem:"Gnie_Tni",dropDownHide:"QplQNxJd",dropList:"cKFzZ42W",postVideoBtn:"S1eXcgk3"}},326673:function(e,t,i){"use strict";i.r(t),t.default={button:"Xc4zzQLZ",newStyle:"wnaVEUq1",small:"sTauOb4K",fixed:"kmfa2a02",normal:"k_CsJkgB",large:"Ffv3VFz5",primary:"L5S44O41",border:"T3GvTmC6",secondary:"nFwVmOkH",ghost:"agkYDIOt"}},425214:function(e,t,i){"use strict";i.r(t),t.default={upperLayer:"VIdM7bYW",container:"QIwyGYcL",loading:"DYLM7cqM",text:"kOYCHYjj"}},913950:function(e,t,i){"use strict";i.r(t),t.default={quickJumper:"icc1yhcI"}},994336:function(e,t,i){"use strict";i.r(t),t.default={tooltipWrapper:"T2zuHdxg",tooltip:"cvTBc4dV"}},201981:function(e,t,i){"use strict";i.r(t),t.default={select:"gsEyc31G",selectList:"ff8AhE9Q",show:"oEgR9tXf"}},83046:function(e,t,i){"use strict";i.r(t),t.default={tag:"_VqKLvXt",tagSmall:"wWl1lbh3",label:"XHUqm3v3",live:"XHxjQ7DP",hot:"vTgcnIi0",coupon:"iQ737id5",collection:"BUSBIcMU",default:"_D4zw5sA",top:"wDoMjdqd",followTag:"Oo1oCX98"}},627806:function(e,t,i){"use strict";i.r(t),t.default={liveCardPlayer:"neswPO4f",coverWrapper:"Z3Vkre5R",playerContainerUnsupportText:"l2EH7GGr",player:"gPXvqI0y",hide:"CoKxCZSe"}},558788:function(e,t,i){"use strict";i.r(t),t.default={show:"lTJFDwzB",showUp:"vFlycZBq",hide:"CfCZiB3l",showDown:"SRjdGqKk",eggRightWave:"iZNO5u_P",eggRightProgress:"ipqT2yWP"}},939626:function(e,t,i){"use strict";i.r(t),t.default={waterText:"o35yFlpX"}},40320:function(e,t,i){"use strict";i.r(t),t.default={coverWrap:"JqOwr3s3",cover:"ATkcYY81",followTag:"uy2I6Ou3",highlightfollowTag:"KieA830r",wrap:"BRdxRRoj",video:"xQb7tktT",bottom:"SzU_Tnfq",title:"l8jYL8OU",nickNameWrap:"M10Ej_Uu",nickName:"Rb2uov8S",loading:"KfY3LEqc",enter:"lRyK09Qu",tag:"brLvnI9W",liveDivide:"tNS5U83i",textContent:"kKVE1wgA",textContainer:"M9MIl5as",hidden:"FT7Nb1gj",liveEnd:"m3OVuhxq",liveEndTitle:"U8cy_PjC",liveEndBg:"thwDG3ZI",mask:"eWgR92PR",liveTag:"S16Jk0N1"}},104940:function(e,t,i){"use strict";i.r(t),t.default={liveInfo:"M75Esnzh",userInfo:"cLUgIa7f",userName:"Q6dCVD55",badge:"yI2Mb9AZ",description:"qgDVR680"}},254127:function(e,t,i){"use strict";i.r(t),t.default={submit:"yG9zExNp",jumpText:"PqEVAfuu",jumpTextFooter:"INAiGffD",zoomIn:"Lr8RuJIx",zoomOut:"r3IAC0km"}},428584:function(e,t,i){"use strict";i.r(t),t.default={button:"g6WmRA3z",small:"fuxdHthi",fixed:"UGPMuI2R",normal:"BJ4uKBAY",large:"tEh3h_gD",primary:"ZdyvWkbi",border:"kvc0wxU8",secondary:"MEwNFpYu",ghost:"J13HqtDT"}},461523:function(e,t,i){"use strict";i.r(t),t.default={container:"R3XFJ08F",radio:"o2MIfCrt"}},863822:function(e,t,i){"use strict";i.r(t),t.default={container:"dy6i4Kjn",text:"I_EeXfIX",icon:"EnNG4aUZ"}},818439:function(e,t,i){"use strict";i.r(t),t.default={textareaContainer:"MIsQSQFl",textarea:"ey0viGMM",count:"i1GpQKIs",overflow:"zM54N1Vt"}},55016:function(e,t,i){"use strict";i.r(t),t.default={tooltipWrapper:"AaZHOrYq",tooltip:"WfnCJEok",icon:"YAbOhNdH",left:"nkugymzO",right:"kZUMzply",top:"J4xXbpta",bottom:"gUAGsFCG"}},561440:function(e,t,i){"use strict";i.r(t),t.default={aLink:"RZuwF26I"}},744072:function(e,t,i){"use strict";i.r(t),t.default={aiSearchBarContainer:"oulqJFvD",searchBarContainerHeightLight:"jvQSOM8N",searchBarExtraButtons:"FlfqLmyF",previewImageContainer:"rfME8F4q",aiBorderInput:"rfQX2fQl",searchBarContainerFullPage:"prIemCf8",searchBarContainerHeightLightFullPage:"eakm3_Y_",searchBarContainerModal:"yPZGO1DZ",searchBarContainerHeightLightModal:"ccqwGz0t",searchBarContainerHeightLightGrayscale:"lvOLURfD",aiSearchBar:"awv5EdJC",buttonIcon:"n9qU1nie",aiInput:"mMtvbRxe",transparentBg:"vzYGGcHO",searchLightActivity:"I394ylA2",aiSearchBarInputForm:"T4VR2kew",searchIcon:"OFyiDQ8J",inputLanternIcon:"dTYBuOz6",searchBarHotIcon:"Z9pBxdCG",searchBarGuessTextWrapper:"i0tRrsey",searchBarGuessText:"OZGfZFlf",isActivity:"yljSUifU",activityIcon:"lqNwR03T",inputClearButton:"Zh985cI5",iconClose:"qFIv6vxD",searchBarInsideWord:"dJ9RAjeu",blur:"BD_Y4CBW",button:"eIQzJ3Y6",buttonWeak:"zE5TRT1H",inputWithClearButton:"rp48BTy0",borderInputSpec:"jveYjJtn",holdDarkMode:"Ph7FmEmU",suggestion:"sTvtvD2y",aiSearchMiddlePage:"DBhbTKCW",aiSearchSugList:"PpawNipO"}},945205:function(e,t,i){"use strict";i.r(t),t.default={collapse:"E7P9Cy6P",expand:"NZTFedFb",badge:"n6CGMYnp",wrapper:"fFebT0oV",cardHeaderExpand:"yA3UyNQI",lookMergeAuthor:"iu9OTRV3",monthlyRecommendUserTag:"FKtDzZmp",authorInfoDetail:"KbOekx3g",innerAvatar:"fEQfEL5J",atIcon:"YjSuu2mm",actionAbleText:"RAIxKXvL",stats:"QQ3NlUMp",authorInfoContainer:"urGINLgi",title:"AKrT7Mxl",avatar:"IlUzXgcp",operateContainer:"LsoK0SUn",icons:"_6Hgo5qo",avatarHide:"nyky60Cy",authorHeaderContainer:"G2knj3vV",liveReplayEntry:"OzV9zZRz",authorHeaderCollectionContainer:"HjZ3aedR",authorHeaderCollection:"KX3Lee7u",collectionItem:"BvdqXHdD",icon:"yEv93Uu6",mixIcon:"O4rx3vl4",seriesIcon:"g6LRF3kX",collectionLeft:"gC8ZugKI",collectionRight:"WcdGZViM",authorHeaderCollectionMask:"rCcXQZIz",authorHeaderCollectionMaskRight:"e3GnZjmo",authorHeaderCollectionMaskLeft:"g26MRl_w",cardHeaderCollapse:"JqtJDJ88",hidden:"eCwnLVPO",follow:"cLeFN88x",cardBody:"PRZrWXoK",enterUserPageTip:"d8NdSouf",delta:"fvTGqxa5",hasTag:"PciKsvVq",foloowBtn:"ij4hRbA2",foloowedBtn:"xoy9pntu",cardBodyMarginExpand:"TNlYJy1R",shadowChange:"ii2OAQVv",overflowChange:"WetSN6jb",conversationDtailAnimationKeyframes:"fKzohRIo"}},969255:function(e,t,i){"use strict";i.r(t),t.default={hideScrollbar:"jLooKxFe",loading:"WCp2KjTW",container:"omga_nWT",avatarItem:"err91ayf",more:"TDuBVPjs",longList:"Nn62HLKt"}},344958:function(e,t,i){"use strict";i.r(t),t.default={role:"SRiu8vXk",roleName:"LMOLjKDi",svgSize:"y5K2vbeI",IcVerifyYellowFilled:"gUS9pjHq",IcVerifyYellowOutlined:"IRmlvwRT",IcVerifyBlueFilled:"qlxY9plq",IcVerifyBlueOutlined:"O1dS5uS3",IcColorPersonal:"bP4Hvmgc",IcColorEnterprise:"dkf7nRQq",IcVerifyRedFilled:"EQWy733I",badgeBox:"AASrBFVb"}},717248:function(e,t,i){"use strict";i.r(t),t.default={chatWhilePlayEntry:"pjGLDod0",chatIcon:"RGD9if0m",chatLabel:"OUno8ixv",collideShifted:"pw9UiGZx"}},280676:function(e,t,i){"use strict";i.r(t),t.default={wrap:"uwFic8ht",left:"h2ngflVe",text:"JFt3eDWO",openBtn:"aiSZvjzf",closeBtn:"YDqWqcxF"}},18199:function(e,t,i){"use strict";i.r(t),t.default={container:"FTrRG6zW",textContainer:"zeQWyG26",loginText:"KWtCMTrT"}},985180:function(e,t,i){"use strict";i.r(t),t.default={downloadBarContainer:"wzAbtvDd",hintText:"rnhyNM2u"}},223958:function(e,t,i){"use strict";i.r(t),t.default={favBtn:"c34IScs4",icon:"JMttDIAz",rotate:"dBmbdPlm"}},528774:function(e,t,i){"use strict";i.r(t),t.default={tip:"xvN9gP1Q",card:"OlxToPIh",avatarWrap:"ui6hc_bK",info:"ipQHe_cs","wrap-text":"CDvfZXC4",desc:"ceyzKypd",nameInfo:"YLXK4JHE",nickname:"Zce7SWd3",badge:"SMrIQYX0",extra:"ZNUhyd0y",showTip:"rvmrhfJV",redColor:"tspg4cqE",uniqueIdBox:"L4xm64ot"}},346674:function(e,t,i){"use strict";i.r(t),t.default={footerWrapper:"IRvWiuKO",linkItems:"dJ35HJ5p",linkItem:"D8jsP5Kr",subLinkItems:"hocHSw7q",subLinkItem:"ZjrfXzOD",icon:"yd6I5uaz",innerLinkContainer:"gsF4XxDR",divide:"EZftqF2h",innerLinkTitle:"xUn5XxKU",innerLinkItem:"MrBvUpmZ"}},283172:function(e,t,i){"use strict";i.r(t),t.default={searchCt:"iJZiHu48",hidden:"fYyuM7U8",extraTL:"HlVWgVN0",clientHomeStyleWrap:"fiE6zHNB",extraShow:"juL07Kl4"}},685018:function(e,t,i){"use strict";i.r(t),t.default={container:"NPhU76gH",hoverSpace:"PW6_PnuN",isShow:"vFOzxgUQ",qrCodeContainer:"LE1ReDqL",originSize:"e5j3CGoD",qrCodePanel:"LX_kdIpD",qrCodeImg:"c6gcah2Q",smallBtnGrayContainer:"eFZcaniu",reloadBtn:"CtdOpZtz",refresh:"WqJFSXPD"}},562823:function(e,t,i){"use strict";i.r(t),t.default={outerContainer:"pnB7pvOc",shadowChange:"OgszxTVh",overflowChange:"HCgyTHa8",container:"R9jqwWNk",dropDownListInCenterChange:"uxjdfJxH",top:"RhCNSmgY",subTitle:"NfKMAybN",title:"j7r4jiUd",tip:"wIMUURQn",bottom:"_spNoSnB",conversationDtailAnimationKeyframes:"rSLrm_YL",dropDownListInNoCenterChange:"nnIozLns",showDeleteAllMessageModal:"bii45hdd",dropDownListInNoCenterLeftTopChange:"vLRjf3ua",dropDownListOutChange:"hTbxS_z_"}},930863:function(e,t,i){"use strict";i.r(t),t.default={container:"tBkvD3H8",text:"gXZOQV9u"}},39498:function(e,t,i){"use strict";i.r(t),t.default={dropdownContainer:"xc0WZLe3",shadowChange:"_SR_jY6Y",overflowChange:"AxtuLm04",imageMargin:"v2pZJo0S",isMini:"VMcfQEwZ",container:"zh68cnrO",dropDownListInCenterChange:"MMZ6qGVy",hidden:"G6BhI383",closeIcon:"g_9qPuku",bgImg:"ZsAhD7Oh",titleBox:"wGXa5bY3",mainTitle:"rTrb5VKN",subTitle:"Wn8MYbOk",bottomBox:"W3LeelQz",download:"tu2nQH9h",aDownloadLink:"W113F1r9",downloadButton:"mHFFKrRQ",dot:"uv5qlPsx",dotKeyframes:"qDR9iybM",finger:"lk1XuUtE",fingerKeyframes:"NikMAJDj",conversationDtailAnimationKeyframes:"czPvassU",dropDownListInNoCenterChange:"XCWUJJz6",showDeleteAllMessageModal:"Nw6pSO9y",dropDownListInNoCenterLeftTopChange:"G92zfGom",dropDownListOutChange:"v9oigyFS"}},593409:function(e,t,i){"use strict";i.r(t),t.default={container:"FreH_hbD",icon:"L2ESL8lx",desc:"dr6TG5tM"}},746994:function(e,t,i){"use strict";i.r(t),t.default={container:"cIKBcjbT",isVsHeader:"ta0oKJlP",isVsHeaderTransmode:"DZbPoeLw",header:"FJclIVL4",rightContentInner:"Tx2HHA7o",allowNoDrag:"bxA6zgj0",searchCt:"GjgTnTzB",electronDrag:"rkJju1sY",fixed:"oJj2v8B4",splashAdFullscreen:"e3ye4jN7",isSplashTransitionEnd:"Y_wSQoIR",pushMessageEntry:"rLHRJJdZ",inLynxWindow:"jidikRno",searchLightActivity:"vPjYs2Ia",searchLightActivityInVs:"a42oTjgw",isWebSearchSpaWithoutNavigation:"X77jrxBl",clientSpaMainWinBtn:"bXkCQMZn",searchBarCenterPlayer:"oW3GkKET",logoCt:"i8BvREYh",logo:"iMH6cLtU",transparentLogo:"lInPrEfj",foldWrap:"HRcgDyvc",expandIcon:"PLhOGoVD",searchBar:"ov6B8lHR",aiSearchBar:"g7sZUR2l",searchBlank:"aRMXmTKL",menuCt:"U56RN3ij",floatRight:"K9oPgidp",rightContent:"ztm3KRqq",basicHeight:"g6irw56C",clientRightContent:"SF3OWXcO",removePadd:"SRZUy5jj",popMode:"IoxFlEwB",pwaDivider:"eSXfBTGO",imModalVideo:"uiVf7w3r",activity:"IXlL5oSu",transparent:"qeWNNlsD",borderNone:"R1Nt9Jnw",enlargeLivingPadding:"D7mUo_WM",isFixed:"xn1OuVON",isSearchHeader:"_dYmKcWH",isSearchSpa:"m56pfVTJ",isInMultitaskWindow:"Nmx3V_q1",clientHomeStyleV2:"R4s_YG6K",isSearchSpaMac:"X0FWa3ZN",isCleanPopupMode:"eYoQitGW",isCleanPopupModeInMac:"EXwgKbhF",isWebSearchSpa:"hnrQp1Re",isWebSearchSpaWithNavigation:"cFANG7Kq",isWithAiSearch:"qzBKShgr",grayscale:"kL0hsLzG",rightContentInnerNew:"ohQ_Zt2d",foldable:"c8vFyC3e",searchBarCenterWebPlayer:"_qSJ0i2s",searchBarCenterPlayerWeak:"eQRMzuN8",douyinLivePage:"FItmzNUw",searchCtForOversea:"P5SUo7DW",searchBarCenterMacClientPlayer:"jmT_g4JG",searchBarCenterWinsClientPlayer:"XxZnAniK",clientHomeStyleV2WinsWidth:"LFDR1s2K",bkgImg:"Ofq1uGRH",noBackground:"O5jkVSNY",clientDouyinLivePage:"WRq1jKf7",leftBottomBkg:"vGSOqzV9",hidden:"TWDuw7CM",aiSearchBtnWrap:"jgZVYyxq",fadeOut:"_8jmMVRP",dyLogo:"H1Jalu1J",hideInChildRoute:"T7G5YdsG",jxLogo:"Zi4XWSWO",AiModalVideo:"DWdVZuJG",popupDyLogo:"zyOgmmzv",fadeIn:"POETJLT1"}},692353:function(e,t,i){"use strict";i.r(t),t.default={mask:"LuvWdQDi",maskContainer:"QfqBKlQE",maskContainerDiv:"S5bJTfRI",halfOpacityModalInChange:"pCWA6oUD",hidden:"MeOLBSv3",historyContainer:"R7ACbsnp",zoomIn:"ebnrwTGY",loginWindowModalInScaleChange:"kv7gGK1f",loginWindowModalInOpacityChange:"kvJadXun",fadeOut:"HcvGpxyx",zoomOut:"OElDgXhV",header:"CBbmMYBi",tabber:"urErosW1",icons:"VdpBlG2f",tip:"Zeo9Uuww",clearDisplay:"sHA23Mr4",dropDownListInNoCenterChange:"x83EygTx",icon:"BVm1kaiq",date:"DjyK5I3y",content:"V3ZX8AJl",tipWrapper:"ZaHNF2l4",tipIcon:"bXGMeGnJ",delta:"kkkwqzKL",close:"SU6Bk9B6",displayTip:"KRjF9N5k",emptyContainer:"uXD0z7M8",videos:"Og1Voeqv",videoWrapper:"lAiCbUAD",videoItemWrapper:"gQvsZ8mz",vsRecordContainer:"f3838EoA",vsRecordItem:"vVGYOH5c",transparent:"dIrjBgE0",vsRecordEmpty:"ZD0tw_VM",shadowChange:"mZdETiPZ",overflowChange:"pGGMxliV",conversationDtailAnimationKeyframes:"DOYJV1RJ",dropDownListInCenterChange:"Y4xdLKMy",showDeleteAllMessageModal:"pU3fLJL0",dropDownListInNoCenterLeftTopChange:"iDivwCF4",dropDownListOutChange:"kOo0Vajb",popWindowModalOutChange:"fjsNKaqm"}},525033:function(e,t,i){"use strict";i.r(t),t.default={container:"aDfCozM5",tip:"C_MGAxGc",leftArrow:"DkSlwbKc"}},845765:function(e,t,i){"use strict";i.r(t),t.default={dialog:"ClXtNICW",title:"UQIrPfm3",divider:"cqwSHLZK",mainContent:"eTc_AMLy",closeIcon:"_uRMcC3l",houseIcon:"mPGxkgZf"}},881443:function(e,t,i){"use strict";i.r(t),t.default={previewWrapper:"Nl5M3iBG",video:"ZTfO8LVY",isOnlyPreview:"K3WeNQP9",controlContainer:"o61tz4Ui",progressWrapper:"YPdA7l_m",changTimebtn:"YuXxgbar",currentTimeContainer:"rZk8Uyx1",volumeBox:"pqXRY1Zg",mute:"QRoeX8YA",progress:"MNMuVnQt"}},939456:function(e,t,i){"use strict";i.r(t),t.default={switch:"iVGxtHOS",switchInner:"PN29iEyn",switchChecked:"NDONY0o6"}},364404:function(e,t,i){"use strict";i.r(t),t.default={liveReplayEntryContainer:"Fb9QG84G",liveReplayEntryLeft:"vrza29K4",liveReplayEntryTitle:"vyfxiR8y",autoSize:"BVYC0EwT",tvIcon:"LzNquNu8",rightIcon:"B5Pa7wI_"}},870038:function(e,t,i){"use strict";i.r(t),t.default={container:"rRS24iwQ",loading:"dwhiqow7",loadingV2:"pMaMUz51","step-img":"C81utZeu",loading2:"EZ5nQqDe",text:"Ka8ituyY"}},839042:function(e,t,i){"use strict";i.r(t),t.default={container:"P4WY9yCg",block:"FDRdfGpq",list:"yDGM_Usj",allAuthorBtn:"k20LBwWT",errorText:"Do48hmGM",opBtn:"ckrXAEUb",loadingWrap:"dcxHi0e6"}},962178:function(e,t,i){"use strict";i.r(t),t.default={PlaceholderCard:"BgcjStLT",icon:"BrcmzmkA",imgBox:"F4Ka8Nso",imgContainer:"wBPkKv8i",infoBox:"Bp2l6LwM",rect:"yyoW2Ifx",third:"qo4wyweu",newIcon:"KtyINACN",dark:"LFNPemfg",isDark:"enHxaP8Y",isLight:"uFW_gNUt"}},653183:function(e,t,i){"use strict";i.r(t),t.default={dark:"AOciuNVt",collectBtn:"xYC9BwDM",collectd:"C6Rw9n0O",fetchingBg:"eaP0f9Yx",collectBtnBox:"GgWGRNBT"}},153082:function(e,t,i){"use strict";i.r(t),t.default={playerCommentWrapper:"EVUB1ilq",sideBar:"CdRTJmmu",middle:"QcYK7C8C",sideBarDefaultWidth:"Daocmya_",acAndCommentSideBarWidth:"yT4i3jgV",acCollapseSideBarWidth:"YNPvpi0R",acAndComment2singleCard:"vF3cZE14",lookRelatedRound:"TvGUilXW",smallSidebarCard:"djR8rXWq",sideBarCommentWrapper:"_ubp9Xwp",sideBarInnerHidden:"UVluiRVc","ani-single-card-hide":"mG18RC7p",hiddenWithBigCard:"ixX40Ybi","ani-comment-hide-with-single-card":"jrtMxn9_",smallCardHideWithComment:"cP6kGXTr",sideBarInnerWrapper:"vdvIiMjZ",authorCard:"hW7omZEu",authorCardCollapse:"O5XSIwtT",relatedCard:"ToMwi_2x","ani-small-card-hide-with-comment":"FtUvjNrn",commentWithCollapse:"lLRZ9fs8",sideBarHidden:"LBTimlRS",noTransition:"RsTUatqk",sideBarBackground:"U_ZTM83G",playerContainer:"BsyS087s",isSafari:"oG3xohZK",videoImage:"qt0p5aW6",isHavePlayer:"dZDjmL5H",playerWrap:"bQyUloJJ",electronDrag:"KFyCBigu",backgroundImg:"mvf8x9Jy",backgroundMask:"_EIwBOu1",backgroundImgSarari:"roK2EqFa",videoInfoContainer:"_V1chRsh",title:"xB7VsIQ0",infoContainer:"BDO3sGuz",time:"k7Pn690K",reportTool:"fZk4dgqw",report:"HdNTnYpz",publishTime:"xeh8LRxb",statsContainer:"maxpvKOJ",count:"dLZGUbQf",statsItem:"lA_AwkzB",share:"ynNJn1KH",active:"DKWUKnVe",iconSvg:"v4uJYxS4",shareContainer:"iXXz83eJ",shareBox:"GAknvcTy",shareBoxHidden:"WqInlc1v",miniScreenBtn:"tBqF0P2H",hidden:"XtCau6DN",imgPlaceHolder:"V0getr8E",programCardHidden:"dHFNbKkG",linkHashTag:"rK7LOQ8V",relatedSearch:"aOpUipJf",rankHot:"PJssziIs",mix:"sIc3v3XO",related:"Qg3W_w72",hot:"zzlXiqmw",chapterTag:"rw8WSJW2",rankHotText:"duJ1TjY1",minWidth:"RA8wnZ2q",hotText:"c5Vf9DuU",relatedText:"MExnUUCj",relatedSearchText:"JwHBek8k",mixText:"hMO7jkkW",lvVideoTagItem:"NtFVgJEK",lvVideoTagTitle:"dsvrg2Do",btn:"hdPF8DZn",putBtn:"YUwnyq6P",openBtn:"XrgQwIaH",hide:"pilwejHb",defaultImg:"wZHkBBjj",collapse:"tw9LAWh7",expand:"HGiVNFsi",divider:"n4hQNiqC",loginMask:"REFEob7k",cardBody:"K0lV7PsN",hasLogin:"bbWq1_8H",mixHeader:"pKWvzeCp",hasPadding:"t93bhFV1",commentHide:"lrOPkqx9",listBox:"VBFxFTeG",commentInSmallCard:"Y6oFBSm8",authorCardHeader:"d0HV6Gl2",tabStyle:"p_NwoHAf","ani-comment-change-pos-with-small-card-hide":"q9GlY6aw"}},664772:function(e,t,i){"use strict";i.r(t),t.default={titleView:"Bqazwvn3",titleViewText:"a9TwAgEw",hotBoardTitleViewText:"ulD0SowR",newTitle:"qAK5TRs8",hotListItem:"LAok0oMY",keyboardSelected:"meKmuDn2",hotListItemBg:"I9kl6HKT",hotListItemWithNum:"ozPIQqMz",hotListItemText:"gsjLIxlq",hotListItemIcon:"NW26YBTf",hotListItemNumberIcon:"wQyQTth9",newHotListItem:"rjLRxj9f",leftContent:"gQHdTEA7",hotValue:"JTBCNKyY",hotListItemNum:"PzQssXYz",newHotListItemText:"o0RmDjHW",tagIcon:"J8c5P2_o",hotListLabelIcon:"hHPagq1e"}},231427:function(e,t,i){"use strict";i.r(t),t.default={container:"blzrWjUC",icon:"wpoMqSz1"}},926989:function(e,t,i){"use strict";i.r(t),t.default={containerBox:"VKJBpcvY",container:"NAqXqooj",heartBeat:"i9nE3TJ1"}},747347:function(e,t,i){"use strict";i.r(t),t.default={baseInfo:"Gam6ilyl",avatar:"ZoEkO3dA",nameInfo:"dtu8Fz9z",nickName:"KPKylOch",badge:"YGOXdUk6",roleName:"fZ4vv0lP",badgeIcon:"N4gKWo7_",followBtn:"XZ_m2xTC"}},625197:function(e,t,i){"use strict";i.r(t),t.default={userInfo:"o6AaMMEg",avatarInfo:"HkKYnrEL",avatar:"c5yznBpQ",onlineIcon:"DghMDMvU",display:"HIHqRC3I",tips:"DjcztPv8",activeTip:"sg6iw4hm",activeShow:"WnBGIw86",list:"qhrVqIgF",item:"GuOPuFbb",disabled:"LoGbm1wF",radioLabel:"Wiyhztip",radioText:"AL_5Er0B",radioExtraText:"WSsykDP4"}},365184:function(e,t,i){"use strict";i.r(t),t.default={userVideo:"C2yVTGmh",userCardInfo:"o0p7nZTM",bgChange:"KPQP6uFG",hoverNoOverflow:"M5iqnZlO",wrapper:"GGxeUe0C",imageContainer:"CFpgFEy8",canAnimation:"tw2Y8F5f",animationScaleOne:"miaCjDcd",videoImg:"wzoPLIem",containBlur:"WNxh4B7g",look:"uisWh9jZ",text:"fYgFUWOw",needScale:"bfooKzxA",title:"frUrWD64",paidTag:"z3U1a7mn",tag:"CS8d48Zf",rightTag:"KYz63dBb",historyProgressRate:"tx5iLgzN",bg:"iozibbaU",pictureIconTag:"D8Q2VwYJ",tags:"QtX8XlpE",topLeft:"zUAXRxdz",topRight:"bRR_cKxS",topRightLongArticle:"Ttaq8eUD",likeCount:"HycZGr_s",playCount:"jXmtohcJ",playPermission:"AOPptQBn",countText:"BP1CQkLg",mask:"LrTtTciX",hidden:"EB3BkdQ8",single:"RpuhoKEt",previewContainer:"zK28b0xi",previewContainerWithTitle:"E3oYQ7f6",invisible:"MgdVwF0Y",isSafari:"dkJ9REQe",jingxuanTag:"ZrbvE9g3",shadowChange:"PKS5IhI_",overflowChange:"W04a98Tr",conversationDtailAnimationKeyframes:"To73L70P"}},248361:function(e,t,i){"use strict";i.r(t),t.default={outerContainer:"kS3bY4yR",player:"YFPOm7pv",videoImage:"F2_v83d1",hidden:"pJuZfr68",imgPlaceHolder:"FfKfWHSu"}},416545:function(e,t,i){"use strict";i.r(t),t.default={chatflyEntryIcon:"XtD4g00Z"}},168792:function(e,t,i){"use strict";i.r(t),t.default={entryContent:"KOVDZ4Gs"}},801589:function(e,t,i){"use strict";i.r(t),t.default={noticeContainer:"oJEfvupV",noticeInfo:"b4smN9u3",mainInfo:"EK_vq78l",hint:"tANYclGh",awemeCover:"v1cjfrg4"}},506924:function(e,t,i){"use strict";i.r(t),t.default={chapterContainer:"jscK_MMV",displayIcon:"WdUZynpI",chapterBar:"KFSQslvd",dividerSmall:"VsR384Nq",chapterTitle:"uFXHP80U",line:"EI5gQmnG",chapterIcon:"pWTItyVA",xgTips:"bDHysY4u"}},239845:function(e,t,i){"use strict";i.r(t),t.default={peopleCount:"bZ9gfo9U",tagStyle:"mEZuXIVa",svg:"QzxRkCdT",text:"UgydPHtK"}},521890:function(e,t,i){"use strict";i.r(t),t.default={card:"KYQDA00s",tip:"QjS4CwbG",avatarWrap:"kEmaWO7T",info:"_w4BESU9","wrap-text":"Vv1X4_uS",desc:"EapbBODY",nameInfo:"AhyLcoKB",nickname:"vUyGhAvK",roleTitle:"trATRptt",badge:"iecAfkzl",showTip:"DEBu98ew",divider:"O_ZjuRZD"}},763718:function(e,t,i){"use strict";i.r(t),t.default={inPicture:"ONq6CiJx",douyinTips:"U9QowXVB",shortcutKey:"SqiBmBSU"}},124466:function(e,t,i){"use strict";i.r(t),t.default={innerAutoplay:"f9aRpObf",itemContainer:"P_ffKZla",iconBox:"GueFrnRa",innerItem:"tXXAiznc",outerContent:"mC3S_maV",selected:"vrdp5DKR",label:"uos9emaA",innerContainer:"CpaoTBQ2"}},705457:function(e,t,i){"use strict";i.r(t),t.default={videoInteractionWrapper:"Pml3Jr4p",qq:"QawHfOQl",disableFilter:"HzmJEZDu",avatarItem:"_9FTaP7RK",shareWrap:"DELMhvIH",shareBox:"tm0K6PuH",shareCode:"zbRS1s9x",relate:"MT5y69jN",interactionToastWrap:"vxi8vQbJ",tooltip:"Vn3lEBsd",icon:"tylxKhGV",shortcutTipPopover:"jRkbz5KC",shortcutTip:"GZ2FRBb5",tipKey:"HCqmV1l6",shortcutTipWrapPopover:"hQaM4C6Q",shortcutTipWrapPopoverCard:"lwafuXIi",shortcutTipWrap:"Szp0yRm0",newDislikeTip:"bBEfjwJx",shareVideoDownload:"jrs6azNm",dislikeTipContainer:"Bpt64xE3",avatarBox:"KykiPvhD",avatarWrap:"awD9sSYp",count:"dnogvaaN",interactionWrapper:"edI8T_c3",more:"JWWKYT75",videoDownloadGuideTip:"eSL3LoBu",hideTip:"gYM9Ienp",guideTipText:"puRZvhVJ",guideTipBtn:"TRErrjlw",downloadIcon:"QdxbHnVk",videoDownloadGudieIcon:"uBY7zCO_",show:"uDu59bjK"}},838089:function(e,t,i){"use strict";i.r(t),t.default={left:"yUDJVYif",volumeContainer:"se_YxgXw",bgSize:"bUYbfgxI",space:"HB0r9eHZ",volumeSlider:"ygrV3IsB",show:"Xfi3Jyui",volumeProgress:"GdkwVPRk",volumeInner:"EbE5sLoJ",dot:"_Lcmxsn8",volumeLabel:"WQB9unNG",playRateContainer:"WcKneKsF",playbackRate:"QQnFkdlL",item:"KPYp1wHG",active:"ISseffvg",backContaienr:"wkaWI3Ea",bigSize:"XjsYQ8kD",tip:"oSQ0c7YG",tipArrow:"qypzwelG",playOrderContainer:"buhGHiJp",right:"EXooOHPk",noramlIcon:"GQA8x808"}},412971:function(e,t,i){"use strict";i.r(t),t.default={container:"aVQfxICQ",header:"sBUsxosf",bigSize:"lp0fMjLi",noramlIcon:"_kFNmDTH",playerInfo:"T6U7Gu6B",midSize:"l3zCpt5G",desc:"n4YWSuiG",title:"YNH2KUpD",defaultImg:"KQgvQBjG",cover:"yNuINbrX",nickname:"lxcgE9EN",playerProgress:"tiRiz1Ar",control:"MJsFTq6w"}},38753:function(e,t,i){"use strict";i.r(t),t.default={container:"W3Etz4om",conatienr:"jFSd08Yo"}},538710:function(e,t,i){"use strict";i.r(t),t.default={switchBox:"bkZbw2Xe",disable:"rizAKFhv",select:"yBg2kl8N",switchLabel:"Bu3QsdhU",textSelect:"tia2xSoz",loginBtn:"S5MUDb7z"}},841249:function(e,t,i){"use strict";i.r(t),t.default={item:"u5r53Yfy",text:"eepdTflA",button:"gvZTITSh",close:"Jk3sqx5b",down:"a3R_MVZC"}},706918:function(e,t,i){"use strict";i.r(t),t.default={singleLineAdCard:"FPOx1LCT",easeIn:"bYlwKwB_",adInfo:"hCd3ORc7",adIcon:"wi2A79fp",swiperContainer:"PqcXch5f",btnBox:"XEf3FvaW",text:"hrLoMuqJ",icon:"jkqGK6lO"}},565603:function(e,t,i){"use strict";i.r(t),t.default={container:"dI4lrUxq",close:"qqXvJdTV"}},981182:function(e,t,i){"use strict";i.r(t),t.default={container:"GyhQjXth",easeIn:"E1a5itxi"}},902676:function(e,t,i){"use strict";i.r(t),t.default={adWrapper:"OtLx6PPx",show:"_2LipSxF_",easeIn:"ANkiZNXu",brandImg:"NtI_jWKz",adButton:"nNnVhhMR",close:"_RwemYGk",tapIcon:"pgX1r7y5",adIcon:"bPIovZ2V"}},56497:function(e,t,i){"use strict";i.r(t),t.default={adWrapper:"yYeG8u_P",adButton:"Y0Uldwc7"}},950264:function(e,t,i){"use strict";i.r(t),t.default={gameVideoWeakAdCard1:"SobxTJQe",btnBox:"VVofAGkS",text:"XvWbDHCz",icon:"GJ7kaP1W",easeIn:"N9t6YbMX"}},191450:function(e,t,i){"use strict";i.r(t),t.default={articleMode:"OcvJ6MqL",icon:"F1l853jy",title:"QIu3ift6",desc:"GtGCMLAK",viewBtn:"Huuoxv8K"}},56568:function(e,t,i){"use strict";i.r(t),t.default={container:"p9sQWW6T",count:"x6d7guxH",lessFontWeight:"cipURsys",iconWrap:"r3vo9FkY",commentIcon:"PwfwwkFy",animation4:"iYydV9CZ",ableMiniType:"XWM3GZvM"}},669774:function(e,t,i){"use strict";i.r(t),t.default={container:"eg2gPKAx",avatar:"NWE0W5GY",name:"YxzGTNJG",character:"rAfuVgrb"}},150877:function(e,t,i){"use strict";i.r(t),t.default={buttonsWrap:"ZCbEONss",hidden:"tkusYazJ",showConfirm:"amX4Ii3b",follow:"WyoFXBbV",removeWrap:"mbZcmwOs",remove:"FKj8ba1s",confirmWrap:"kfga2h3Y",contentBlock:"Kybe5bJ3",confirm:"nlMUuGs9",divider:"QnE7jupF",cancel:"tmWchLdM",following:"qqnGb71w"}},665054:function(e,t,i){"use strict";i.r(t),t.default={danmakuContainer:"uko7pE_d",container:"x6QYrwaa",interaction:"ntlxAYR5",containerTop:"PEIYjnCh"}},152525:function(e,t,i){"use strict";i.r(t),t.default={toggleFakeScreenWrap:"EC78eSzX",toggleFakeScreenButton:"PAtki1Zj",isActive:"JtBmdF6V",hide:"d3RKwPTR"}},754386:function(e,t,i){"use strict";i.r(t),t.default={innerAutoplay:"whHQ3xRB",itemContainer:"KFyQSXU4",iconBox:"uHZLzlvt",innerItem:"aK5JmtQ3",outerContent:"l8XTv41U",selected:"lCywRuCI",label:"Tmy5bNgg"}},768114:function(e,t,i){"use strict";i.r(t),t.default={videoInteractionWrapper:"rDq18SJg",aiMainEntry:"hIggMSNH",qq:"MGZvvFXt",disableFilter:"u2fLWcyV",avatarItem:"tbuuvNip",shareWrap:"TklbXo3X",shareBox:"n4FTI10b",shareCode:"fhcinv5A",relate:"I3rniwAM",interactionToastWrap:"kbAPMHUk",tooltip:"VQH686Y1",icon:"KWIsU07h",shortcutTipPopover:"vEhZhaRw",shortcutTip:"jalx9Muz",tipKey:"ZIbADYYv",shortcutTipWrapPopover:"_DAJTqO2",shortcutTipWrapPopoverCard:"oH7QVJ_8",shortcutTipWrap:"tCaE4uli",askAiTip:"IgNSS4wg",newDislikeTip:"cu07n_cv",shareVideoDownload:"yQFQACg_",aiDouyinShortcutTipWrap:"WcYos3_X",dislikeTipContainer:"fmHWfxzm",avatarBox:"v04zfJ9C",avatarWrap:"_JTBBCQV",count:"VQDg42Eu",interactionWrapper:"mplUvfr7",more:"CZH8MD5z",videoDownloadGuideTip:"D5Je8Dgz",hideTip:"zr8UpHG_",guideTipText:"MUAkp6aq",guideTipBtn:"wzT0iPF7",downloadIcon:"zDu9Pyyn",videoDownloadGudieIcon:"d3dEkuLo",show:"ico7dHyS",avatarWrapContent:"sI0sbay8",container:"D0ZulesG",dropShadowFilter:"ej8hl0s8"}},168098:function(e,t,i){"use strict";i.r(t),t.default={modal:"lT4TmIPg",mask:"sY7a2yIW",close:"CP4vk4Bk",slideGuideCt:"eXrQK3L2",guideTitle:"CFJpMWZc",appButtton:"SmjgQ7TD",pcButtton:"xBY9LRgk",openInPCCt:"OMz381ux",imgCt:"M08DiGK3"}},534739:function(e,t,i){"use strict";i.r(t),t.default={arrow:"tlJ7vE2d",hide:"cmlrOvnf",disabled:"F3vvSR8B",leftArrow:"y0N4711_",inSideBar:"ARfdQaKg",inSearch:"IKP7P3Fl",rightArrow:"BEfisH1h",swiperContainer:"isMrNC6d",mask:"puwYnuKX",inactive:"zCZooovv",pictureFeed:"PJCBkr5M"}},526932:function(e,t,i){"use strict";i.r(t),t.default={element:"ee2_Sonb",slideFadeInRight:"gsPhQFrw",container:"y4Lkd25l",question:"niXzYNpA",answer:"_w4xWQs7",icons:"WfgFXQbI"}},601109:function(e,t,i){"use strict";i.r(t),t.default={container:"rsKpEN2a",btn:"bfPkqTEf"}},511378:function(e,t,i){"use strict";i.r(t),t.default={miniScreenBtn:"CnmbdHxh",active:"c7eo1WdG"}},407866:function(e,t,i){"use strict";i.r(t),t.default={switchBox:"l1QBvnjt",disable:"uAOc_8p8",select:"MbIo_T8X",switchLabel:"ZHEQYeuF",textSelect:"tGPmzRow",loginBtn:"oa5T4SKD",langbox:"guUhsDwK",show:"TrvSwKPQ",langboxItem:"Xp94Mtea",selected:"tpzsH99A",subtitlesBox:"rA6CisF2",volume:"YLIzINd0",label:"fSumZBEp",slider:"hVaMzzW0"}},794676:function(e,t,i){"use strict";i.r(t),t.default={badge:"SjuMU_m5",button:"Y2Kcfa1Y",expandButton:"PNEoL4em",hashTagSpan:"agfpNsj2",linkHashTag:"Am_YeijZ",userText:"Ldy7nwP6",videoTitleWrapper:"DSxVbsDr",videoTitle:"UR5VrIl6",aloneVideoTitle:"vTNbwQF8",brandAd:"Ijysjjcs",adaptive:"LEU7mBfC",adTagWrap:"t_zg60wv",adTag:"Grd6K9IZ",adTagRight:"wupwiI3o",notChrome:"QsJb1lwJ",infoContainer:"MZKmraak",pictureStyle:"_scWcncW",hide:"_EiLTiZy",underTitleTagContainer:"EhWDrrpM",rsBarOpt:"eq4w_mge",videoTagHide:"kxPI2Bf2",videoTagContainer:"ofaQHt3A",friendIcon:"WxKEShh9",marginTop:"d4U78Bp2",oneLineText:"kYUaBkhh",nicknameWrapper:"uZTC7KeV",maxWidth100:"JgRdomUm",aiMentionTag:"q52ChW5J",aiMentionText:"vGDIYNfx",tagMgrRight12:"xQ4346Bm"}},407686:function(e,t,i){"use strict";i.r(t),t.default={swiperVideo:"Bcg7RudA",container:"zui6s5eC",hidden:"oxHd3xYl",playSwitchContainer:"CzCTUD2z"}},489862:function(e,t,i){"use strict";i.r(t),t.default={swiperVideo:"tD07RAEg",container:"lmY8kCle",playSwitchContainer:"NTuQMDXu",playSwitchContainerHidden:"amqA5tfg",hidden:"FnwMmc0k",feedVideoGameAdBelowTitle:"RwkURNaQ"}},10907:function(e,t,i){"use strict";i.r(t),t.default={container:"tYps0TGV",searchShopAnchor:"AVnFSxO4",withoutTitle:"vR5eUXZa",searchPlayer:"SEOXPjcL",searchVideoPay:"xnf2RREK",fakeScreenWrap:"hHEBqxP8",v1:"ttR2G8vU",v2:"be2_5WnH"}},901228:function(e,t,i){"use strict";i.r(t),t.default={ShortcutTooltip:"pKP3m1aB"}},879213:function(e,t,i){"use strict";i.r(t),t.default={Overlays:"gu4nQ0BS",Indicator:"q0SklkTG",Indicator_pip:"oUXT4fYn",Indicator_error:"HmBXu5H_",Indicator_spinner:"y09TyrZ4",Indicator_close:"xLu_vHW2",Indicator_toast:"tKfRUqwK",DynamicBg:"lNlhcmVU",PaidMask:"zbRhPOA9",PaidMask_replay:"PLE7_SRn"}},180281:function(){},130604:function(e,t,i){"use strict";i.r(t)},393141:function(e,t,i){"use strict";i.r(t)},878161:function(e,t,i){"use strict";i.r(t)},713357:function(e,t,i){"use strict";i.r(t)},315422:function(e,t,i){"use strict";i.r(t)},490302:function(e,t,i){"use strict";i.r(t)},248062:function(e,t,i){"use strict";i.r(t)},377147:function(e,t,i){"use strict";i.r(t)},499824:function(e,t,i){"use strict";i.r(t)},832747:function(e,t,i){"use strict";i.r(t)},515353:function(e,t,i){"use strict";i.r(t)},483937:function(e,t,i){"use strict";i.r(t)},285728:function(e,t,i){"use strict";i.r(t)},172479:function(e,t,i){"use strict";e.exports=i.p+"media/download-guide-black.bf2b8ad8a44c81ce.png"},578501:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(101199);function r(e){let{userCtx:t,envService:i=""}=e,{dispatch:r}=t;(0,n.useLayoutEffect)(()=>{window.updateUserInfo=()=>{r({type:"updateUserInfo"})}},[r])}},660905:function(e,t,i){"use strict";i.d(t,{JU:function(){return n},xe:function(){return r}});let n=356,r="layout-side-area-expanded"},192110:function(e,t,i){"use strict";i.r(t),i.d(t,{ClientUseData:function(){return r}}),i(362051);var n=i(320165);i(101199);let r=e=>{let{awemeList:t,removeSlideListButton:i=!0,isFromLynx:r=!1,nonce:o="argus-csp-token"}=e;return(0,n.jsxs)(n.Fragment,{children:[(null==t?void 0:t[0])&&(0,n.jsx)("script",{nonce:o,dangerouslySetInnerHTML:{__html:` try { if (window.__QUICK_PLAYER && window.__QUICK_PLAYER.createQuickPlayer) { window.__QUICK_PLAYER.createQuickPlayer(${JSON.stringify({removeSlideListButton:i,isFromLynx:r,awemeList:t,fromPreRequest:!0})}); } } catch (e) { console.log('createQuickPlayer error', e); if (window.__pace_load_deferred_scripts) { window.__pace_load_deferred_scripts(); } } `}}),(0,n.jsx)("script",{nonce:o,dangerouslySetInnerHTML:{__html:` try { if (window.__pace_load_deferred_scripts) { window.__pace_load_deferred_scripts(); } } catch (e) {} `}})]})}},646888:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}});var n=i("320165"),r=i("101199"),o=i("473228"),a=i("891894"),l=i("778047"),s=i("799155"),u=i("38375"),d=i("407135"),c=i("17943"),f=i("455626"),h=i("274287"),v=i("742841"),_=i("618759"),m=i("499059"),p=i("845285");let g=e=>{let{abTestData:t}=e;(0,r.useEffect)(()=>{if(!(0,_.DT)()||!(null==t?void 0:t.jxCachePerfV2))return;let e=()=>{try{var e;(null===(e=m.Le.getConfig(m.gI.userSettingInfo))||void 0===e?void 0:e.landingMode)===p.Fd.Discover&&(0,v.a)()}catch(e){}};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[null==t?void 0:t.jxCachePerfV2])};var y=function(e){let{isSpider:t,ua:i,userInfo:r,dispatch:v,abtest:_,nowPathName:m,isClient:p,isiPad:y,isMobile:w,osInfo:b,redirectFrom:C,landingPage:S,tccConfig:k,videoDetail:x,preloadAwemeList:I,version:L,headerLoginPopupStatus:E,lazyLoadConfig:T,isShowNavigator:P,isDark:N,adminConfig:R,isMainland:A,isOverSea:M,isMobileSite:D,specTheme:O,isSearchPage:j,isPreRender:B,showChildren:V,disablePausePop:F,children:U}=e;return g({abTestData:_}),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z,{isSpider:t,ua:i}),(0,n.jsxs)(d.Z,{isSpider:t,ua:i,nowPathName:m,abtest:_,isClient:p,isiPad:y,isMobile:w,osInfo:b,redirectFrom:C,userInfo:r,landingPage:S,tccConfig:k,videoDetail:x,dispatch:v,version:L,headerLoginPopupStatus:E,lazyLoadConfig:T,isShowNavigator:P,isDark:N,isShowHeader:V,adminConfig:R,isMainland:A,isOverSea:M,isMobileSite:D,specTheme:O,isSearchPage:j,children:[B&&(0,n.jsx)("div",{id:"lazyChildren",style:{display:"none"}}),V&&(0,n.jsx)(h.Z,{abtest:_,isClient:p,userInfo:r,children:U})]}),(0,n.jsx)(u.V,{videoDetail:x,userInfo:r,dispatch:v,abtest:_,preloadAwemeList:I}),(0,n.jsx)(o.SV,{children:P&&!j&&(0,n.jsx)(f.Z,{abTestData:_,version:L,nowPathName:m,SlardarInstance:s.oe,landingPage:S})}),!F&&(0,n.jsx)(l.Z,{islandMode:"event",islandName:"PausePop",islandTimeout:1e4,abTestData:_,SlardarInstance:s.oe}),(0,n.jsx)(a.Z,{})]})}},694682:function(e,t,i){"use strict";i.d(t,{d:function(){return d}}),i(112459),i(759943);var n=i(320165),r=i(101199),o=i(995898),a=i(391302),l=i(339808),s=i(700182);let u="lynxMainWindowWrap";function d(e){let{pathname:t,search:i}=(0,l.a)(),d=(0,o.Nr)(t),c=(0,a.sF)(i),f=c&&!d;return((0,r.useEffect)(()=>{if(c){let e=document.getElementById(u),t=f?s.Z.lynxMainWindow:s.Z.defaultWrap;e&&e.className!==t&&(e.className=t)}},[]),c)?(0,n.jsx)("div",{className:f?s.Z.lynxMainWindow:s.Z.defaultWrap,id:u,children:e.children}):e.children}},549271:function(e,t,i){"use strict";i.d(t,{A:function(){return o}}),i(490629);var n=i(101199),r=i(618759);let o=()=>{(0,n.useEffect)(()=>{if((0,r.DT)()&&"serviceWorker"in navigator){var e,t,i;null===(i=navigator)||void 0===i||null===(t=i.serviceWorker)||void 0===t||null===(e=t.getRegistrations())||void 0===e||e.then(e=>{for(let t of e)t.unregister()}).catch(e=>{})}},[])}},400541:function(e,t,i){"use strict";i.d(t,{j:function(){return r}});var n=i(101199);let r=()=>{(0,n.useEffect)(()=>{if("windowControlsOverlay"in navigator){let e=document.documentElement;navigator.windowControlsOverlay.visible&&e.setAttribute("window-overlay","true");let t=()=>{navigator.windowControlsOverlay.visible?e.setAttribute("window-overlay","true"):e.removeAttribute("window-overlay")};return navigator.windowControlsOverlay.addEventListener("geometrychange",t),()=>{navigator.windowControlsOverlay.removeEventListener("geometrychange",t)}}},[])}},102541:function(e,t,i){"use strict";i.d(t,{A:function(){return b}}),i(14275),i(759943),i(374285),i(566071),i(414931);var n=i(255436),r=i(101199),o=i(332009),a=i(759894),l=i(335924),s=i(499059),u=i(650887),d=i(486463),c=i(414061),f=i(964575),h=i(919369);let v=[/\/video\/.*/i,/\/lvdetail\/.*/i,/\/vsdetail\/.*/i],_=/^\/$/i,m=/^\/follow$/i,p=/^\/friend$/i,g=e=>[_,m,p].some(t=>t.test(e)),y=(e,t)=>!(23===t.getHours()&&t.getMinutes()>45||t.getFullYear()>e.getFullYear()||t.getMonth()>e.getMonth()||t.getDate()>e.getDate())&&!0,w=(e,t)=>!(!e.paused||!e.canCheckNotUse||t.effectivePage&&!new RegExp(t.effectivePage).test((0,a.mo)())||t.disableWhenFullscreen&&(o.s.getIsPageFullscreen()||e.fullscreen))&&!0,b=e=>{(0,r.useEffect)(()=>{var t,i;let r;if(!(null==e?void 0:null===(t=e.refreshForNotUse)||void 0===t?void 0:t.open))return;let a=!!(0,l.Rs)(f.REFRESH_FOR_NOT_USE);if(a){let e=(0,l.Rs)(f.VID)||(0,l.Rs)(f.MODAL_ID),t=Number((0,l.Rs)(f.SEEK_TIME)),i=!!(0,l.Rs)(f.REFRESH_IMMERSIVE_SWITCH),n=(0,l.Rs)(f.REFRESH_VIDEO_TAB);s.Le.setConfig(s.gI.PlayerStateBeforeRefeshForNotUse,{vid:e,seekTime:t,immersiveSwitch:i,videoTab:n});let r=(0,u.q)([f.REFRESH_FOR_NOT_USE,f.VID,f.SEEK_TIME,f.REFRESH_IMMERSIVE_SWITCH,f.REFRESH_VIDEO_TAB],location.href);history.replaceState({},"",r)}let _=a&&document.hidden,m=null,p=1e3*((null===(i=e.refreshForNotUse)||void 0===i?void 0:i.threshold)||1800),b=new Date,C=()=>{if(document.hidden&&"hidden"===document.visibilityState){if(_||v.some(e=>e.test(location.pathname)))return;let l=(0,d.OB)()||"";if(!!(m=o.s.getPlayer(l))){if(w(m,e.refreshForNotUse)){n.Z.clearTimeoutWarp(r);let o="";if(g(location.pathname)){var t,i,a;let e=null!==(t=document.getElementsByClassName("immersive-switch")[0])&&void 0!==t&&!!t.getElementsByClassName("xg-switch-checked")[0]||"",n=(null===(i=s.Le.getConfig(s.gI.PlayerCardInfo))||void 0===i?void 0:i.expandCardType)||(null===(a=s.Le.getConfig(s.gI.PlayerCardInfo))||void 0===a?void 0:a.videoCardType);o=`https://www.douyin.com${location.pathname}?${f.REFRESH_FOR_NOT_USE}=1&${f.VID}=${m.config.vid}&${f.REFRESH_IMMERSIVE_SWITCH}=${e}&${f.REFRESH_VIDEO_TAB}=${n}`}else o=`https://www.douyin.com${location.pathname}?${f.REFRESH_FOR_NOT_USE}=1&${f.MODAL_ID}=${m.config.vid}`;r=n.Z.setTimeoutWarp(()=>{document.hidden&&"hidden"===document.visibilityState&&y(b,new Date)&&m&&w(m,e.refreshForNotUse)&&o&&navigator.onLine&&(o+=`&${f.SEEK_TIME}=${m.currentTime}`,h.Z.sendLog("refreshForNotUse",{},!1),location.href=o)},p)}}}else _=!1,n.Z.clearTimeoutWarp(r)};return c.listen(c.EVENT.ReportToTea,e=>{(null==e?void 0:e.eventName)==="pageView"&&(b=new Date)}),document.addEventListener("visibilitychange",C),()=>{document.removeEventListener("visibilitychange",C),n.Z.clearTimeoutWarp(r)}},[e])}},425290:function(e,t,i){"use strict";i.d(t,{y:function(){return l}});var n=i(101199),r=i(426038),o=i(709705),a=i(919369);function l(){(0,n.useEffect)(()=>{try{let e;let t=document.createElement("canvas"),i=t.getContext("webgl")||t.getContext("experimental-webgl"),n=document.createElement("canvas").getContext("webgl2");(0,o.$o)(r.LocalStorageKeys.videoCanPlayType)?e=(0,o.$o)(r.LocalStorageKeys.videoCanPlayType):(e=document.createElement("video").canPlayType("video/mp4"),(0,o.qQ)(r.LocalStorageKeys.videoCanPlayType,e)),a.Z.sendLog("webglSupport",{is_webgl1_support:i?1:0,is_webgl2_support:n?1:0,video_can_play_type:e})}catch(e){}},[])}},798873:function(e,t,i){"use strict";var n=i(512423),r=i(618759),o=i(795653),a=i(489002);t.Z=e=>{var t,i,l,s;let{ctx:u}=e,d=(0,n.i)(u),c=(0,r.DT)(u),f=(0,o.fV)(u),h=(0,r._Q)(u),v=(0,a.a)(void 0),_=null===(i=window)||void 0===i?void 0:null===(t=i.location)||void 0===t?void 0:t.pathname;return{ua:d,isClient:c,osInfo:f,isSpider:h,pathname:_,redirectFrom:v,clientVersion:(null==u?void 0:null===(s=u.request)||void 0===s?void 0:null===(l=s.header)||void 0===l?void 0:l["x-aweme-clientversion"])||(0,r.FJ)(u).awemePcClient}}},638891:function(e,t,i){"use strict";i.d(t,{X:function(){return x}}),i(490629),i(112459),i(759943),i(679308),i(240148),i(374285),i(566071),i(414931),i(706056),i(992871);var n=i(101199),r=i(59850),o=i(121998),a=i(506887),l=i(205082),s=i(939165),u=i(963964),d=i(885114),c=i(356336),f=i(690301),h=i(222460),v=i(366571),_=i(551975),m=i(326128),p=i(530310),g=i(778018),y=i(995898),w=i(759894),b=i(810069),C=i(414061),S=i(919369);let{disableAutoLoginPromptReg:k}=l;function x(e){let{userCtx:t,abTestData:i,isSpider:l=!1,splashAdStatus:x,pathName:I="",isMainland:L=!0}=e,{dispatch:E,userInfo:T}=t,P=null==T?void 0:T.isLogin,[N,R]=(0,n.useState)(v.T.Unknown),A=(0,n.useRef)(!1),M=(0,n.useRef)(!1),D=(0,n.useRef)();(0,s.o)(()=>{D.current&&(D.current(),D.current=void 0)},[]);let{attemptOpen:O,executeClose:j}=(0,u.B)({popName:"登录冷启动弹窗",onOpen:()=>{},onClose:()=>{}}),B=(0,r.Z)(()=>{!A.current&&(0,_.C)(P,i,O,j,L),d.exposureColdStart();let e=async()=>{var e;a.z.markOnce(g.w3.custom.show_account_start);let t=await d.getColdStart(["video_detail"],i,L),r=Number(null===(e=(0,o.parse)(location.search))||void 0===e?void 0:e.open_login_ab)||0,l=1===r||2===r,s=1===r?"登录后抖音更懂你":"登录后免费畅享高清视频";async function u(){if(l){var e,i;(0,m.ZP)({success:async()=>{var e,t;E({type:"updateUserInfo"}),null===(t=window)||void 0===t||null===(e=t.location)||void 0===e||e.reload()},next:`https://${null===(i=window)||void 0===i?void 0:null===(e=i.location)||void 0===e?void 0:e.host}`,headerText:s,enterMethod:"click_push",teaEvtParams:{enter_from:"push"}}),R(v.T.Off);return}(null==t?void 0:t.shouldShow)?(null==t?void 0:t.type)!==d.LoginPanelType.FULL_LOGIN||A.current?(0,n.startTransition)(()=>{R(v.T.On)}):O({afterCallback:()=>{var e,i,r;(0,m.ZP)({success:async()=>{var e,t;E({type:"updateUserInfo"}),null===(t=window)||void 0===t||null===(e=t.location)||void 0===e||e.reload()},next:`https://${null===(i=window)||void 0===i?void 0:null===(e=i.location)||void 0===e?void 0:e.host}`,isCanClose:(null==t?void 0:null===(r=t.extra)||void 0===r?void 0:r.intensity)!==d.LoginIntensityType.FORCE,isGuide:!0,enterMethod:"cold_start_full",onClose:()=>{j()}}),(0,n.startTransition)(()=>{R(v.T.Off)})}}):(0,n.startTransition)(()=>{R(v.T.Off)})}(0,y.Nr)(location.pathname)?D.current=u:u()};!1!==P||A.current?void 0!==P&&(0,n.startTransition)(()=>{R(v.T.Off)}):e()}),V=(0,r.Z)(()=>{var e,t;let r=null===(t=window)||void 0===t?void 0:null===(e=t.location)||void 0===e?void 0:e.pathname;!(null==r?void 0:r.match(new RegExp(k)))||(null==r?void 0:r.match(/^\/shipin\/*?/))&&![c.SeoShipinLoginModal.A1,c.SeoShipinLoginModal.A2].includes(null==i?void 0:i.seoShipinLoginModal)?B():r&&(0,n.startTransition)(()=>{R(v.T.Off)})});return(0,n.useEffect)(()=>{var e;if(l)return;let t=d.getColdStartMax();S.Z.sendLog("enterColdStart",{enter_from:(0,w.vM)()||"",params_for_special:"uc_login",notify_times:d.getColdStartCount(),notify_limit:t>=100?-1:t}),S.Z.sendLog("ucWebIdNotify",{webid:(null===(e=(0,b.Es)())||void 0===e?void 0:e.user_unique_id)||"unknown"});let i=C.listen(C.EVENT.changeMinWindows,e=>{let{isMiniWin:t}=e;A.current=t}),n=C.listen(C.EVENT.shipinColdStartLogin,()=>{B()});return()=>{if(!l)i(),n()}},[!1]),(0,n.useEffect)(()=>{if(l)return;x===f.QB.Fullscreen&&(R(v.T.Off),M.current=!0);let e=new URLSearchParams(window.location.search);void 0!==P&&x!==f.QB.Unknown&&!M.current&&"1"!==e.get("open_mini_window")&&V()},[!1,P,x]),(0,n.useEffect)(()=>{P&&(L&&(0,p.oo)(T),(0,h.tokenBeatInit)({onDrop:()=>{E({type:"updateUserInfo"})}}))},[P]),{headerLoginPopupStatus:N}}},48138:function(e,t,i){"use strict";var n=i(320165);i(101199);var r=i(958396),o=i(48625),a=i(381795);t.Z=()=>{let e=(0,r.d)();return(null==e?void 0:e.fpr)?(0,n.jsx)(o.Z,{}):(0,n.jsx)(a.default,{})}},102396:function(e,t,i){"use strict";i.d(t,{Aj:function(){return c},VG:function(){return h},h$:function(){return d}});var n=i(629686),r=i(402748);i(362051),i(679308);var o=i(30995),a=i(732199),l=i(494729);let{COMMON_SEARCH_PARAMS:s}=o;function u(e){let{aweme_list:t=[],status_code:i,log_pb:n}=e;return{statusCode:i,hasMore:!0,awemeList:(0,a.TN)({awemeList:t||[],logPb:n&&JSON.stringify(n)}),logPb:n&&JSON.stringify(n)}}async function d(e){let{sentenceId:t,hotWord:i="",offest:o=0,count:a=1}=e,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{result:c}=await (0,l.g8)("/aweme/v1/web/hot/search/video/list/",(0,r._)((0,n._)({},s),{hotword:i,sentence_id:t,offest:o,count:a,entry_name:"pc_web"}),d,u);return c}async function c(){let{tagId:e="",count:t=10,channelId:i=99,seoFlag:o=0,options:a={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{result:c}=await (0,l.g8)("/aweme/v1/web/channel/hotspot",(0,r._)((0,n._)({},s),{tag_id:e,count:t,"Seo-Flag":o,channel_id:i}),d,u,{options:a},e=>{var t;return 0===e.statusCode&&(null===(t=e.awemeList)||void 0===t?void 0:t.length)===0});return c}function f(e){var t;let{data:i,status_code:n,log_pb:r}=e,{word_list:o=[],trending_list:a=[]}=i||{};return{logPb:r&&JSON.stringify(r),statusCode:n,wordList:null==o?void 0:null===(t=o.map)||void 0===t?void 0:t.call(o,e=>({awemeInfos:e.aweme_infos,challengeId:e.challenge_id,discussVideoCount:e.discuss_video_count,driftInfo:e.drift_info,eventTime:e.event_time,groupId:e.group_id,hotValue:e.hot_value,hotlistParam:e.hotlist_param,label:e.label,position:e.position,relatedWords:e.related_words,roomCount:e.room_count,sentenceId:e.sentence_id,sentenceTag:e.sentence_tag,videoCount:e.video_count,viewCount:e.view_count,word:e.word,wordCover:e.word_cover,wordSubBoard:e.word_sub_board,wordType:e.word_type})),trendingList:a.map(e=>({word:e.word}))}}async function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0,{result:o}=await (0,l.g8)("/aweme/v1/web/hot/search/list/",(0,r._)((0,n._)({},s),{detail_list:1,source:6}),t,f,{options:e},void 0,i);return o}},978481:function(e,t,i){"use strict";i.d(t,{W:function(){return l}});var n=i(320165);i(101199);var r=i(469935),o=i.n(r),a=i(863081);let l=e=>{let{collapse:t=!0,className:i,children:r}=e;return(0,n.jsx)("div",{className:o()(a.default.navigation,{[a.default.navigationType]:!t},i),children:r})}},618530:function(e,t,i){"use strict";i.d(t,{h:function(){return u}}),i(490629);var n=i(101199),r=i(890710),o=i(754810),a=i(880327),l=i(642613);let s=e=>{let t;return("string"==typeof e&&(t=document.querySelector(e)),"function"==typeof e&&(t=e()),"object"==typeof e&&e instanceof window.HTMLElement&&(t=e),t)?t:(0,a.r)()?(0,l.W)():document.body},u=(0,n.memo)((0,n.forwardRef)((e,t)=>{let{getContainer:i=!1,children:a,className:l=""}=e,[u,d]=(0,n.useMemo)(()=>{let e=s(i);if(e){let t=document.createElement("div");return l&&(0,o.IB)(t,l),e.appendChild(t),[e,t]}return[null,null]},[i]);return(0,n.useEffect)(()=>()=>{u&&d&&u.removeChild(d)},[u,d]),(0,n.useImperativeHandle)(t,()=>d,[d]),d?(0,r.createPortal)(a,d):null}))},719981:function(e,t,i){"use strict";i.d(t,{aR:function(){return l},vw:function(){return s}});var n=i(101199),r=i(502615);let o="disableReport",a=e=>{let{disableLogger:t,updateExt:i}=e;(0,n.useEffect)(()=>{i({[o]:!!t})},[t,i])},l=e=>{let{disableLogger:t}=e,{loggerRef:i}=(0,n.useContext)(r.ET);return a({disableLogger:t,updateExt:(0,n.useCallback)(e=>{var t,n,r;null==i||null===(r=i.current)||void 0===r||null===(n=r.logger)||void 0===n||null===(t=n.updateExt)||void 0===t||t.call(n,e)},[null==i?void 0:i.current])}),null},s=(e,t)=>!!(null==t?void 0:t[o])},9672:function(e,t,i){"use strict";i.d(t,{k:function(){return d}});var n=i(629686),r=i(811603);i(932651);var o=i(858651),a=i(690193),l=i(502615),s=i(806217),u=i(101199);let d=(0,u.memo)(()=>{let e=(0,o.useGetLiveVolumeBalanceConfig)()||{enable:0},{enable:t,initDelayTime:i=2e3}=e,d=(0,r._)(e,["enable","initDelayTime"]),c=(0,u.useContext)(l.ET),f=(0,s.Z)(()=>{var e;let i=c.playerRef.current;if(!i||!t)return;let r=Object.assign({},null===(e=i.baseConfig)||void 0===e?void 0:e.mediaInfo,{volumebalance:(0,n._)({debugger:(0,a.nj)()},d)});i.updateConfig({baseConfig:{mediaInfo:r}})});return(0,u.useEffect)(()=>{if(!t)return;let e=setTimeout(()=>f(),i);return()=>{clearTimeout(e)}},[t]),null})},489113:function(e,t,i){"use strict";i.r(t),i.d(t,{IsLivingPluginFollowListImpl:function(){return F},IsLivingPluginAnchorList:function(){return H},IsLivingPluginFollowList:function(){return W},IsLivingPlugin:function(){return U},IsLivingPluginImpl:function(){return V}});var n=i("629686");i("490629"),i("374954"),i("414931");var r=i("320165"),o=i("101199"),a=i("480333");i("362051"),i("228983"),i("759943"),i("683656"),i("591964");var l=i("637141"),s=i("392982"),u=i("35565"),d=i("653770"),c=i("810069"),f=i("318966"),h=i("757986"),v=i.n(h),_=i("858651"),m={aweme_video_feed:253,253:"aweme_video_feed",aweme_video_head:2,2:"aweme_video_head",aweme_follow_top:268,268:"aweme_follow_top",aweme_follow_below:254,254:"aweme_follow_below",aweme_follow_below_head:21,21:"aweme_follow_below_head",aweme_jingxuan_card:255,255:"aweme_jingxuan_card",aweme_jingxuan_feed:256,256:"aweme_jingxuan_feed",aweme_follow_list:208,208:"aweme_follow_list"};let p=e=>{let t=(0,f.OK)();null==t||t.sendEvent(e)},g=e=>{let{room_id:t="",user_unique_id:i="",im_path:n="",type:r=""}=e;p({name:"byte-link-start",categories:{data:JSON.stringify({room_id:t,user_unique_id:i,im_path:n,type:r})}})};class y extends l.TQ{setImRequestPath(e){this.polling.props.im_path=e}setWebsocketKey(e){this.polling.props.websocket_key=e}setInsertKey(e,t){this.insertData={insert_task_id:e,live_reason:t}}subscribe(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===i){let i=e.split(",").map(e=>this.on(e.replace(s.nl,""),t));return()=>{i.forEach(e=>e())}}let n=e=>t([e]);this.cachedHandler.set(t,n);let r=e.split(",").map(e=>this.syncOn(e.replace(s.nl,""),n));return()=>{this.cachedHandler.delete(t),r.forEach(e=>e())}}unsubscribe(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===i){e.split(",").forEach(e=>this.off(e.replace(s.nl,""),t));return}let n=this.cachedHandler.get(t);this.cachedHandler.delete(t),e.split(",").forEach(e=>this.syncOff(e.replace(s.nl,""),n))}start(){try{super.start({})}catch(i){try{var e,t;(0,f.OK)().report({ev_type:"custom",payload:{name:"byte-link-error",categories:{message:null==i?void 0:i.message,stack:null==i?void 0:null===(t=i.stack)||void 0===t?void 0:null===(e=t.toString)||void 0===e?void 0:e.call(t)},level:"warn",type:"log"}})}catch(e){}}}register(e,t){e=e.reduce((e,t)=>{let i=e.find(e=>Number(e.scene)===Number(t.scene));return i?(i.info=i.info.concat(t.info),e):e.concat(t)},[]);let i=[],n=new Date().getTime();if(e.forEach(e=>{let{scene:t,info:r,page:o}=e,a=[];r.forEach(e=>{let{anchorId:r,roomId:o}=e,l={publisher_id:r,user_id:r,distribution_scene:t,feed_time_ms:n,client_visible_room_id:o||0};i.push(l),a.push(l),this.registerList[t]=a})}),0===i.length)return;let r=Object.keys(this.registerList).filter(t=>e.every(e=>Number(e.scene)!==Number(t))).map(e=>this.registerList[e]).filter(e=>e&&(null==e?void 0:e.length)>0),o={publisher_info_list:i=i.concat(v()(r)).filter(e=>!!e),trigger_reason:"page_window_slide",from_page:t,update_time_ms:n};this.registerPublisher("live_status",o)}onDistributionStatusMessage(e){return this.on("DistributionStatusMessage",e)}unregister(){}constructor(){var e;super(d.Cp.instance,{host:"https://live.douyin.com",aid:"6383",live_id:1,app_name:"douyin_web",did_rule:3,endpoint:"live_pc",support_wrds:1,user_unique_id:null===(e=(0,c.Es)())||void 0===e?void 0:e.user_unique_id,im_path:"/bytelink/fetch/v1/",websocket_key:[],pushServer:"wss://bytelink100-ws.douyin.com/bytelink/wss/v1/"},[],{emitter:new u.Q,get backdropWhenHidden(){if("undefined"==typeof window||(0,_.getInLiveMsgFetchOpt)())return[];return["ChatMessage","GiftMessage","LikeMessage"]},wrdsV1:["WebcastPaidLiveTypeModifyMessage"],reporter:g}),(0,a._)(this,"registerList",{}),(0,a._)(this,"offListener",()=>{}),(0,a._)(this,"insertData",{insert_task_id:"",live_reason:""}),(0,a._)(this,"cachedHandler",new Map),this.systemEmitter.on("downgrade",e=>{var t,i,n,r,o,a;this.downgrade(e),(0,f.OK)().report({ev_type:"custom",payload:{name:"byte-link-star-downgrade",metrics:{downgrade:1},categories:{userId:null===(n=window.INITIAL_STATE)||void 0===n?void 0:null===(i=n.userStore)||void 0===i?void 0:null===(t=i.userInfo)||void 0===t?void 0:t.id_str,roomId:null===(a=window.INITIAL_STATE)||void 0===a?void 0:null===(o=a.roomStore)||void 0===o?void 0:null===(r=o.roomInfo)||void 0===r?void 0:r.roomId},type:"event"}})}),this.systemEmitter.on("error",(e,t)=>{var i,n,r,o,a,l;(0,f.OK)().report({ev_type:"custom",payload:{name:"byte-link-error",metrics:{[e]:1},categories:{type:e,userId:null===(r=window.INITIAL_STATE)||void 0===r?void 0:null===(n=r.userStore)||void 0===n?void 0:null===(i=n.userInfo)||void 0===i?void 0:i.id_str,roomId:null===(l=window.INITIAL_STATE)||void 0===l?void 0:null===(a=l.roomStore)||void 0===a?void 0:null===(o=a.roomInfo)||void 0===o?void 0:o.roomId},content:`${t}`,level:"warn",type:"log"}})}),this.start()}}let w=!1,b=null,C=()=>(!w&&(w=!0,b=new y),b);var S=i("414061"),k=i("855500"),x=i("995898"),I=i("991879"),L=i("536793"),E=i("202613"),T=i("732199"),P=i("913285"),N=i("59850"),R=i("339808"),A=i("616837"),M=i("752150");let D=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"recommend"===e?t?m.aweme_video_head:m.aweme_video_feed:"follow"===e?t?m.aweme_follow_below_head:m.aweme_follow_below:"jingxuan_card"===e||"jingxuan_feed"===e?t?m.aweme_video_head:m.aweme_video_feed:"aweme_follow_list"===e?m.aweme_follow_list:m.aweme_follow_top},O=e=>{let t={recommend:{scene:m.aweme_video_feed},follow:{scene:m.aweme_follow_below},jingxuan_card:{scene:m.aweme_jingxuan_card},jingxuan_feed:{scene:m.aweme_jingxuan_feed}};return t[e]||t.follow},j={recommend:"homepage_hot",follow:"homepage_follow",followList:"homepage_follow",jingxuan_card:"homepage_jingxuan",jingxuan_feed:"homepage_jingxuan"},B=e=>{let{enableWindowLimit:t=!0,dataList:i,activeIndex:n,start:r,end:o}=e;if(!i||!i.length)return[0,0];if(void 0===r||void 0===o||void 0===n)return[0,i.length];if(!t||i.length<=10)return[0,i.length-1];if(n===o-2){let e=Math.max(0,n-2),t=Math.min(e+10,i.length-1);return[e,t]}if(n===r+2){let e=Math.max(0,n-8),t=Math.min(e+10,i.length-1);return[e,t]}if(no){let e=Math.max(0,n-6),t=Math.min(e+10,i.length-1);return[e,t]}return[r,o]},V=e=>{let{activeIndex:t,scene:i,dataList:n,setDataList:r}=e,a=(0,o.useRef)(t),l=(0,o.useRef)(n),s=(0,o.useRef)(0),u=(0,o.useRef)(0),d=C();(0,L.T)(),(0,o.useEffect)(()=>{a.current=t,l.current=n},[t,n]),(0,o.useEffect)(()=>{if(!!d){if(n&&(null==n?void 0:n.length)>0){let[e,r]=B({activeIndex:t,scene:i,dataList:n,start:s.current,end:u.current,enableWindowLimit:"jingxuan_card"!==i});if(e!==s.current||r!==u.current){let t=n.slice(e,r);s.current=e,u.current=r;let o=t.filter(e=>{var t;return!!(null==e?void 0:null===(t=e.cellRoom)||void 0===t?void 0:t.rawdata)}),a=[];a.push({scene:D(i),page:j[i],info:o.map(e=>{var t,i,n,r,o;return{anchorId:null==e?void 0:null===(n=e.cellRoom)||void 0===n?void 0:null===(i=n.rawdata)||void 0===i?void 0:null===(t=i.owner)||void 0===t?void 0:t.id_str,roomId:null===(o=e.cellRoom)||void 0===o?void 0:null===(r=o.rawdata)||void 0===r?void 0:r.id_str}})}),a.push({scene:D(i,!0),page:j[i],info:t.map(e=>{var t,i,n,r;return{anchorId:null==e?void 0:null===(t=e.authorInfo)||void 0===t?void 0:t.uid,roomId:(null===(r=e.authorInfo)||void 0===r?void 0:null===(n=r.roomId)||void 0===n?void 0:null===(i=n.toString)||void 0===i?void 0:i.call(n))||0}})}),null==d||d.register(a,j[i])}}}},[t,i,n,d]),(0,o.useEffect)(()=>{if(!d)return;let e=null==d?void 0:d.onDistributionStatusMessage(e=>{null==e||e.forEach(e=>{var t,n,r,o;if(0===Number(null==e?void 0:null===(t=e.payload)||void 0===t?void 0:t.distribution_status)){let{room_id:t,anchor_uid:n}=e.payload;null===(r=l.current)||void 0===r||r.forEach(async(e,r)=>{var o,l,s,u,d,c,f,h,v,_,m;let p=(null==e?void 0:null===(s=e.cellRoom)||void 0===s?void 0:null===(l=s.rawdata)||void 0===l?void 0:null===(o=l.owner)||void 0===o?void 0:o.id_str)===n||(null===(d=e.cellRoom)||void 0===d?void 0:null===(u=d.rawdata)||void 0===u?void 0:u.id_str)===t,g=(null==e?void 0:null===(c=e.authorInfo)||void 0===c?void 0:c.uid)===n||(null===(v=e.authorInfo)||void 0===v?void 0:null===(h=v.roomId)||void 0===h?void 0:null===(f=h.toString)||void 0===f?void 0:f.call(h))===t;if(p&&r>a.current){let e=O(i),r=await (0,I.QW)({room_ids:t,scene:e.scene});((null==r?void 0:null===(m=r.data)||void 0===m?void 0:null===(_=m.data)||void 0===_?void 0:_.liverooms)||[]).forEach(e=>{S.emit(S.EVENT.LiveEndReplaceFeed,{source:i,roomId:t,anchorId:n,data:e})})}else g?S.emit(S.EVENT.LiveEndReplaceLiveHead,{source:"feed",roomId:t,anchorId:n}):p})}else 1===Number(null==e?void 0:null===(n=e.payload)||void 0===n?void 0:n.distribution_status)&&(null===(o=l.current)||void 0===o||o.forEach(async(t,i)=>{var n,r,o,a,l;let{room_id:s,anchor_uid:u}=e.payload;if((null==t?void 0:null===(n=t.authorInfo)||void 0===n?void 0:n.uid)===u){let e=(0,k.a)(),t=await (0,I.aL)({room_id:s,channel:"channel_pc_web",region:"cn",device_id:null===(r=(0,c.Es)())||void 0===r?void 0:r.user_unique_id,device_type:null==e?void 0:e.device_type,os_version:null==e?void 0:e.os,version_code:null==e?void 0:e.version_code,webcast_sdk_version:2450,scene:"aweme_video_feed_pc"});S.emit(S.EVENT.LiveStartReplaceLiveHead,{source:"recommend",data:null==t?void 0:null===(o=t.data)||void 0===o?void 0:o.data,roomId:null==t?void 0:null===(l=t.data)||void 0===l?void 0:null===(a=l.data)||void 0===a?void 0:a.id_str,anchorId:u})}}))})});return()=>{null==e||e()}},[d]);let f=(0,N.Z)(e=>{let{roomId:t,anchorId:n,data:o,source:a}=e;if(a===i)setTimeout(()=>{let e=[].concat(l.current||[]),a=[],s=(0,T.s0)(o);"jingxuan_feed"===i&&(s=(0,A.K)(s)),s.awemeType=E.AwemeType.LiveCard,s.__is_replaced_live__="1";let u=e.findIndex(e=>{var i,r,o,a,l;return(null==e?void 0:null===(o=e.cellRoom)||void 0===o?void 0:null===(r=o.rawdata)||void 0===r?void 0:null===(i=r.owner)||void 0===i?void 0:i.id_str)===n||(null===(l=e.cellRoom)||void 0===l?void 0:null===(a=l.rawdata)||void 0===a?void 0:a.id_str)===t});if(!(u<0)){for(let t=u;t1)for(let t=0;t{let e=S.listen(S.EVENT.LiveEndReplaceFeed,f),t=S.listen(S.EVENT.LiveEndReplaceLiveHead,e=>{let{anchorId:t}=e,i=[...l.current||[]].map(e=>{var i;return(null==e?void 0:e.authorInfo)&&(null==e?void 0:null===(i=e.authorInfo)||void 0===i?void 0:i.uid)===t&&(e.authorInfo.roomData=null,e.authorInfo.roomId=null,e.__is_replaced_live__=""),e});null==r||r(i)}),i=S.listen(S.EVENT.LiveStartReplaceLiveHead,e=>{let{anchorId:t,data:i,roomId:n}=e||{},o=[...l.current||[]],a=null==o?void 0:o.map(e=>{try{var r;(null==e?void 0:e.authorInfo)&&(null==e?void 0:null===(r=e.authorInfo)||void 0===r?void 0:r.uid)===t&&(e.__is_replaced_live__="1",e.authorInfo.roomData=i,e.authorInfo.roomId=n,e.authorInfo.roomData.__is_replaced_live__="1")}catch(e){}return e});null==r||r(a||[])});return()=>{null==e||e(),null==t||t(),null==i||i()}},[r,i,f]),null},F=e=>{let t=C(),{liveList:i,setLiveList:n}=e,r=(0,o.useRef)(i);r.current=i,(0,o.useEffect)(()=>{if(!!t){if((null==i?void 0:i.length)>0){let e=[{scene:D("followList"),page:j.followList,info:i.map(e=>({anchorId:null==e?void 0:e.anchorId,roomId:e.roomId}))}];null==t||t.register(e,j.followList)}}},[i,t]),(0,o.useEffect)(()=>{if(!t)return;let e=null==t?void 0:t.onDistributionStatusMessage(e=>{null==e||e.forEach(e=>{var t,i,n;if(0===Number(null==e?void 0:null===(t=e.payload)||void 0===t?void 0:t.distribution_status)){let{room_id:t,anchor_uid:o}=e.payload;null===(n=r.current)||void 0===n||null===(i=n.forEach)||void 0===i||i.call(n,(e,i)=>{((null==e?void 0:e.anchorId)===o||e.roomId===t)&&S.emit(S.EVENT.LiveEndReplaceLiveHead,{source:"follow",roomId:t,anchorId:o})})}})});return()=>{null==e||e()}},[t]);let a=(0,N.Z)(n);return(0,o.useEffect)(()=>S.listen(S.EVENT.LiveEndReplaceLiveHead,e=>{let{source:t,roomId:i,anchorId:n}=e;if("follow"!==t)return;let o=r.current.findIndex(e=>(null==e?void 0:e.anchorId)===n||e.roomId===i),l=[].concat(r.current||[]);l.splice(o,1),a(l)}),[a]),null},U=e=>{(0,L.T)();let t=(0,R.a)();return(0,x.Nr)(t.pathname)?null:(0,r.jsx)(P.k,{componentName:"IsLivingPluginImpl",children:(0,r.jsx)(V,(0,n._)({},e))})},W=e=>{(0,L.T)();let t=(0,R.a)();return(0,x.Nr)(t.pathname)?null:(0,r.jsx)(P.k,{componentName:"IsLivingPluginFollowListImpl",children:(0,r.jsx)(F,(0,n._)({},e))})},H=e=>{let{dataList:t=[]}=e;(0,o.useRef)(t).current=t,C(),(0,L.T)();let i=(0,x.Nr)(location.pathname),n=(0,o.useRef)(),[r,a]=o.useState();(0,o.useEffect)(()=>{if(!i&&r){let e=Number(r["webcast/web/feed/follow"])||12e4;return clearInterval(n.current),n.current=setInterval(()=>{S.emit(S.EVENT.RefreshFeedListOnly)},e),()=>{clearInterval(n.current)}}},[i,r]);let l=(0,N.Z)(async()=>{a(await (0,M.ZP)({service_name:"webcast.douyin.live_pc",key:"polling_frequency"}))});return(0,o.useEffect)(()=>{l()},[]),null}},637226:function(e,t,i){"use strict";i.d(t,{Fg:function(){return o},Hq:function(){return a},fC:function(){return r},qo:function(){return n}});let n="short_touch_click",r="apply_link_invite",o="apply_open_camera",a="show_vip_boundry"},631979:function(e,t,i){"use strict";i.d(t,{Cw:function(){return n},Xy:function(){return o},kx:function(){return r},nk:function(){return a}});var n={REPORT:"report",REFRESH:"refresh",DANMAKU_CHANGE:"danmaku_change"};let r={NONE:"",ANCHOR_BAN:"主播离开一会,请耐心等待",LIVE_FINISH:"直播已结束",BLOCK:"你被关进小黑屋,暂时无法操作",KICK_OUT:"账号已在其他地方进入直播间",NOT_SUPPORT:"当前平台不支持该玩法,请在手机端参与",PRIVATE_ACCOUNT:"无法观看私密直播间"},o={NONE:"",ANCHOR_BAN:"当前网络不佳 请尝试刷新页面",LIVE_FINISH:"当前直播已结束,休息一下吧",BLOCK:"你被关进小黑屋,暂时无法操作",KICK_OUT:"账号已在其他地方进入直播间",NOT_SUPPORT:"当前平台不支持该玩法,请在手机端参与",NOT_AREA:"您所在的地区不支持观看"},a="DISABLE_PLAYER_LOCK_CLASSNAME"},380599:function(e,t,i){"use strict";i.d(t,{Co:function(){return k},FO:function(){return w},G$:function(){return l},I4:function(){return y},JC:function(){return C},Kt:function(){return v},Mi:function(){return c},Od:function(){return p},QX:function(){return d},R5:function(){return s},VA:function(){return b},_K:function(){return h},i7:function(){return I},iT:function(){return u},jL:function(){return m},k4:function(){return g},kV:function(){return f},r6:function(){return S},v:function(){return x},wq:function(){return _}});var n=i(950257),r=i(788287),o=i(171600),a=i(997288),l={SCREEN:"screen",ROOM:"live_room"},s={STREAM:"stream",QRCODE:"qrcode",VERTICAL:"vertical",HORIZONTAL:"horizontal"},u={SHARE_LINK:"share_link",OTHERS_HOMEPAGE:"others_homepage",LIVE_TAB:"web_live",WEB_RELATED_PAGE:"web_related_page",WEB_CLOSED_PAGE:"web_closed_page",WEB_PUSH:"push",GAO_KAO:"gaokao",LIVE_DETAIL:"live_detail"},d={SHARE_LINK:"share_link",VIDEO_HEAD:"video_head",CARD:"web_card",PUSH:"push",RELATED_CONTENT:"related_content",WEB_BANNER:"web_banner"},c={BLUE_RAY:"blu_ray",ULTRA_CLEAR:"ultra_clear",HD:"HD",SD:"SD",AUTO:"automatic",ORIGIN:"origin",TYPE_4K:"4k"};let f={[typeof n.yP]:"",[n.yP.VIDEO_6V6]:"room_grouppk"},h={[typeof r.Hj]:"",[r.Hj.LinkmicTeamfightStatus_PLAYING]:"processing",[r.Hj.LinkmicTeamfightStatus_PUNISHING]:"punish",[r.Hj.LinkmicTeamfightStatus_FINISHED]:"punish_finish",[r.Hj.LinkmicTeamfightStatus_SHOWING]:"punish_finish"},v={[o.tG.auto]:"automatic",[o.tG.origin]:"origin",[o.tG.uhd]:"blu_ray",[o.tG.hd]:"ultra_clear",[o.tG.sd]:"HD",[o.tG.ld]:"SD"};var _={NORMAL:"non_full_screen",THEATER:"webpage_full_screen",FULL_SCREEN:"full_screen"},m={UNK_NOWN:0,0:"UNK_NOWN",LIVE:1,1:"LIVE",FIRST_LIVE:2,2:"FIRST_LIVE",RECORD_LIVE:3,3:"RECORD_LIVE"};let p={1:1,2:0},g={1:0,2:1},y={1:0,2:1},w={1:"vertical",2:"horizontal"};var b={ANCHOR:"anchor",AUDIENCE:"audience"},C={PERSONAL_PROFILE:"personal_profile",SINGLE_ROOM_RANK:"single_room_rank",FANS_CLUB_MEMBER:"fans_club_mermber_list",LIVE_OPEN_TOP_LEFT_ANCHOR:"live_open_top_left_anchor",REQUEST_SONG_LIST:"request_song_list"},S={AUTO:"auto",MANUAL:"manual"};let k={1:"game","3_10000":"entertainment","3_10001":"technology_culture"},x={[a.V0.LinkmicPlayMode_Teamfight]:"grouppk",[a.V0.LinkmicPlayMode_RoomBattle]:"room_grouppk",[a.V0.LinkmicPlayMode_GuestBattle]:"boom",[a.V0.LinkmicPlayMode_KTVSingingChallenge]:"sing_challenge",[a.V0.LinkmicPlayMode_NormalPaidLinkmic]:"rechargeable_normal",[a.V0.LinkmicPlayMode_OrderSing]:"request_song"},I={[typeof n.yP]:"",[n.yP.VIDEO_GRID]:"party_normal",[n.yP.VIDEO_1V8]:"party_normal",[n.yP.VIDEO_1_V_8]:"party_normal",[n.yP.VIDEO_DYNAMIC]:"party_fit",[n.yP.VIDEO_DYNAMIC_FLOAT]:"video_fit",[n.yP.VIDEO_1V6]:"video_normal",[n.yP.VIDEO_2V4V4]:"double_normal",[n.yP.AUDIO_DOUBLE_C]:"double_normal"}},442878:function(e,t,i){"use strict";let n;i.d(t,{p:function(){return a}});var r=i(480333);i(362051);class o{getCounters(){try{let e=localStorage.getItem(this.storageKey),t=e?JSON.parse(e):{},i=Date.now();return Object.keys(t).forEach(e=>{i>t[e].resetTime&&delete t[e]}),t}catch(e){return{}}}saveCounters(e){try{Object.keys(e).length>0?localStorage.setItem(this.storageKey,JSON.stringify(e)):localStorage.removeItem(this.storageKey)}catch(e){}}recordAccess(){try{let e=this.getCounters(),t=Date.now();this.rules.forEach(i=>{let{name:n,duration:r}=i,o=e[n];!o||t>o.resetTime?e[n]={count:1,resetTime:t+r}:o.count+=1}),this.saveCounters(e)}catch(e){}}isFraudulent(){try{let e=this.getCounters();return this.rules.some(t=>{var i,n;let{name:r,maxCount:o}=t;return(null!==(n=null===(i=e[r])||void 0===i?void 0:i.count)&&void 0!==n?n:0)>o})}catch(e){return!1}}constructor(e){(0,r._)(this,"rules",void 0),(0,r._)(this,"storageKey","fraud_counter"),this.rules=null!=e?e:[{name:"5min_rule",duration:3e5,maxCount:20},{name:"1h_rule",duration:36e5,maxCount:100},{name:"1day_rule",duration:864e5,maxCount:300}]}}let a=()=>(!n&&(n=new o),n)},28336:function(e,t,i){"use strict";i.d(t,{K:function(){return a},X:function(){return l}});var n=i(629686);i(932651);var r=i(247167),o=i(169631);function a(e){try{var t,i,n;let r,o,a;if(!e)return{};let l=null==e?void 0:e.video;if(!l)return{};let s=l.buffered,u=null!==(n=null==s?void 0:s.length)&&void 0!==n?n:0,d=l.currentTime;try{if(u>0){r=s.start(0),o=s.end(u-1);for(let e=0;e=t&&d<=i){a=i-d;break}}}}catch(e){}let c="function"==typeof(null==l?void 0:l.getVideoPlaybackQuality)?l.getVideoPlaybackQuality():void 0;return{live_video_current_time:d,live_video_duration:l.duration,live_video_paused:l.paused,live_video_ended:l.ended,live_video_seeking:l.seeking,live_video_muted:l.muted,live_video_volume:l.volume,live_video_playback_rate:l.playbackRate,live_video_ready_state:l.readyState,live_video_network_state:l.networkState,live_video_width:l.videoWidth,live_video_height:l.videoHeight,live_video_buffered_length:u,live_video_buffered_start:r,live_video_buffered_end:o,live_video_buffered_ahead:a,live_video_error_code:null===(t=l.error)||void 0===t?void 0:t.code,live_video_error_message:null===(i=l.error)||void 0===i?void 0:i.message,live_video_dropped_frames:null==c?void 0:c.droppedVideoFrames,live_video_total_frames:null==c?void 0:c.totalVideoFrames,live_video_corrupted_frames:null==c?void 0:c.corruptedVideoFrames,live_video_webkit_decoded_frame_count:null==l?void 0:l.webkitDecodedFrameCount,live_video_webkit_dropped_frame_count:null==l?void 0:l.webkitDroppedFrameCount}}catch(e){return{}}}let l=(e,t,i)=>{var l,s,u,d,c;if("undefined"==typeof window)return;let f=`livesdk_player_${e}`,h=(0,r.getPerfCommonParams)(),v=Object.assign({},t);i&&(v.biz_player_src=null==i?void 0:i.src,v.biz_player_baseUrl=null==i?void 0:null===(u=i.baseConfig)||void 0===u?void 0:u.url,v.biz_decryption_key=null==i?void 0:null===(c=i.baseConfig)||void 0===c?void 0:null===(d=c.decryption)||void 0===d?void 0:d.keyStr);let _=null==v?void 0:v.cdn_play_url;if(_)try{let e=(0,o.TN)(_),t=(0,o.x_)(_);e&&(v.biz_file_type=e.fileType,v.biz_file_name=e.fileName,v.biz_file_tag=e.qualityTag),t&&(v.biz_quality=t),v.biz_is_h265=(0,o.aN)(_)}catch(e){}Object.keys(h).forEach(e=>{v[`biz_${e}`]=h[e]}),null===(l=(s=window).collectEvent)||void 0===l||l.call(s,f,(0,n._)({},v,a(i)))}},536793:function(e,t,i){"use strict";i.d(t,{T:function(){return r}}),i(101199);var n=i(87897);let r=()=>(0,n._)()},913655:function(e,t,i){"use strict";i.d(t,{qd:function(){return w},Lj:function(){return y}});var n=i("629686"),r=i("402748"),o=i("330548"),a=i("101199"),l=i("245401"),s=i("627443"),u=i("631979"),d=i("380599"),c=(e,t,i)=>({position:{x:0,y:0},playerCoverText:u.kx.NONE,setPlayerCoverText:t=>e(()=>({playerCoverText:t})),setPosition:t=>e(()=>({position:t})),pauseReason:s.g.DEFAULT,setPauseReason:t=>e(()=>({pauseReason:t})),isTheaterOn:!1,setIsTheaterOn:t=>e(()=>({isTheaterOn:t})),isEffectSwitch:!0,setIsEffectSwitch:t=>e(()=>({isEffectSwitch:t})),emojiList:[],emojiReflex:{},setEmojiList:t=>e(()=>({emojiList:t})),setEmojiReflex:t=>e(()=>({emojiReflex:t})),marginControls:!0,setMarginControls:t=>e(()=>({marginControls:t})),screenMode:d.wq.NORMAL,setScreenMode:t=>e(()=>({screenMode:t})),playLoggerExt:{},setPlayLoggerExt:t=>e(()=>({playLoggerExt:t})),hasPlay:!1,setHasPlay:t=>e(()=>({hasPlay:t})),videoInit:!1,setVideoInit:t=>e(()=>({videoInit:t})),isEditComment:!1,setIsEditComment:t=>e(()=>({isEditComment:t})),isFullScreen:!1,setIsFullScreen:t=>e({isFullScreen:t}),fullScreenRoot:null,setFullScreenRoot:t=>e({fullScreenRoot:t})}),f=i("495408"),h=i("372634"),v=i("352866"),_=i("113275"),m=i("915335"),p=i("97534"),g=i("553145");let y=e=>()=>(0,o.ZP)((t,i,o)=>(0,r._)((0,n._)({},(0,l.Z)(t,i,o),c(t,i,o),(0,f.Z)(t,i,o),(0,h.Z)(t,i,o),(0,h.Z)(t,i,o),(0,v.Z)(t,i,o),(0,_.Z)(t,i,o),(0,m.Z)(t,i,o),(0,p.Z)(t,i,o)),{destroy:()=>{o.destroy()},initByFeed:e=>{let t=i();null==t||t.initStream(e.stream_url),null==t||t.initUrl()},initByEnter:function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=i();if((null==e?void 0:e.status_code)===0){let{data:i}=e,r=null==i?void 0:i.data[0];t&&(null==n||n.initStream(i.web_stream_url,s.jx.H265),null==n||n.initStream(null==r?void 0:r.stream_url,s.jx.H264),null==n||n.initUrl()),null==n||n.initRoom(i),null==n||n.initEcommerce(i),null==n||n.initLinkMick(i)}},loading:!0,webRid:e,messageInstance:new g.v0C,setMessageInstance:e=>t(t=>({messageInstance:e})),teaCommonParams:{},setTeaCommonParams:e=>t(t=>({teaCommonParams:e})),isActive:!1,setIsActive:e=>t(t=>({isActive:e}))})),w=(0,a.createContext)({})},959538:function(e,t,i){"use strict";i.d(t,{C7:function(){return r},of:function(){return n}});let n={TOOLBAR:"WebcastToolBarControlMessage",LIVE_SHOPPING:"WebcastLiveShoppingMessage"};var r={ASYNC:0,0:"ASYNC",SYNC:1,1:"SYNC"}},744448:function(e,t,i){"use strict";i.d(t,{$I:function(){return u},iz:function(){return a},ue:function(){return l},ws:function(){return s}});var n=i(397176),r=i(618759),o=i(403622);let a=()=>{if(n.s)return!1;try{var e,t;return(null===(e=MediaSource)||void 0===e?void 0:e.isTypeSupported('video/mp4; codecs="hev1.1.6.L153.B0"'))&&(null===(t=MediaSource)||void 0===t?void 0:t.isTypeSupported('video/mp4; codecs="hev1.2.4.L153.B0"'))}catch(e){return!1}},l=()=>{if(n.s)return!1;try{var e;return(0,r.DT)()&&(null===(e=MediaSource)||void 0===e?void 0:e.isTypeSupported('video/mp4; codecs="vvc1.1.6.L93.B0"'))}catch(e){return!1}},s=()=>{if(n.s)return!1;try{return"true"===(0,o.b)("hasAvx2")}catch(e){return!1}},u=()=>{if(n.s)return"";try{return window.localStorage.getItem("h265ErrorNumNew")||window.localStorage.getItem("h265ErrorNum")||""}catch(e){return""}}},621666:function(e,t,i){"use strict";i.d(t,{d:function(){return E}});var n=i(480333),r=i(629686),o=i(402748);i(490629),i(706056);var a=i(299690),l=i(927061),s=i(169631),u=i(690193),d=i(192866),c=i(680065),f=i(444326),h=i(968937),v=i(797885),_=i(259610),m=i(254486),p=i(858651),g=i(233616),y=i(350856),w=i.n(y),b=i(273163),C=i(535303),S=i(322633),k=i(754730),x=i(104847),I=i(226043);let L=()=>({isRTMError:!1,isH265Error:!1,useBackup:!1,manulQuality:void 0});class E extends a.Sy{get on(){return this.eventBus.on}get dispatch(){return this.eventBus.emit}get off(){return this.eventBus.off}get enableAbr(){var e;return null===(e=this._config)||void 0===e?void 0:e.enableAbr}configDidUpdate(e,t){let i=(0,f.Bk)(t),n=(0,f.Bk)(e);if((null==n?void 0:n.enable)&&this.checkAndInit(),i!==n&&i&&n){let e=!(0,b.i)(i,n,["streamData","qualityLimit","forceUseMaxQuality","RTMConfig"]);(null==i?void 0:i.enable)!==(null==n?void 0:n.enable)&&(0,u.qu)("StreamPlugin_configDidUpdate_enable",{originEnable:null==i?void 0:i.enable,newEnable:null==n?void 0:n.enable}),e&&((0,k.LW)({originStreamConfig:i,newStreamConfig:n})&&this.setState({useBackup:!1}),(0,u.qu)("StreamPlugin_configDidUpdate_streamData",{}),this.debouncedUpdateUrl(),this.updateAbrConfig(),this.dispatchQualityInfoChanged()),(null==n?void 0:n.enableAbr)&&!(null==i?void 0:i.enableAbr)&&((0,u.qu)("StreamPlugin_configDidUpdate_enableAbr",{}),this.setState({isAbrOpen:(0,g.RE)()}))}}constructor(...e){var t;super(...e),t=this,(0,n._)(this,"eventBus",(0,m.Z)()),(0,n._)(this,"tempChangeQualityCallback",void 0),(0,n._)(this,"state",L()),(0,n._)(this,"hasDestroyed",!1),(0,n._)(this,"getCommonTrackParams",()=>({is_backup:this.state.useBackup?1:0,is_rtm_error:this.state.isRTMError?1:0,is_h265_error:this.state.isH265Error?1:0})),(0,n._)(this,"isOnlyCanUseH264",(0,S.w)(()=>{let{isH265Error:e}=this.state,t=(0,d.e)(),i=e||!t;return(0,u.qu)("StreamPlugin_isOnlyCanUseH264",{canUseH265:t,onlyCanUseH264:i,isH265Error:e}),i},()=>[this.state.isH265Error])),(0,n._)(this,"getPullData",(0,S.w)(()=>{var e;let{h264PullData:t,h265PullData:i}=(null===(e=this._config)||void 0===e?void 0:e.streamData)||{};return this.isOnlyCanUseH264()?[t,i].find(e=>e&&(0,l.Ub)({pullData:e})):i||t},()=>{var e,t,i,n;return[this.state.isH265Error,null===(t=this._config)||void 0===t?void 0:null===(e=t.streamData)||void 0===e?void 0:e.h264PullData,null===(n=this._config)||void 0===n?void 0:null===(i=n.streamData)||void 0===i?void 0:i.h265PullData]})),(0,n._)(this,"getCurrentQuality",()=>{var e,t,i;return this.state.manulQuality||(0,_.AU)({pullData:this.getPullData(),forceUseMaxQuality:null===(e=this._config)||void 0===e?void 0:e.forceUseMaxQuality,qualityLimit:null===(t=this._config)||void 0===t?void 0:t.qualityLimit,useLocalQuality:null===(i=this._config)||void 0===i?void 0:i.useLocalQuality})}),(0,n._)(this,"getQualityInfo",()=>{var e;return(0,o._)((0,r._)({manulQuality:this.getCurrentQuality(),isAbrOpen:this.state.isAbrOpen},(0,_.Q$)(this.getPullData())),{realCurrentQuality:(0,s.x_)(null===(e=this._player)||void 0===e?void 0:e.src)})}),(0,n._)(this,"getProtocol",()=>{let{isRTMError:e}=this.state,{RTMConfig:t}=this._config;return(0,l.rr)({playerCoreType:this._player.baseConfig.coreType,pullData:this.getPullData(),RTMConfig:(0,o._)((0,r._)({},t),{enable:(null==t?void 0:t.enable)&&!e})})}),(0,n._)(this,"dispatchQualityInfoChanged",w()(()=>{this.dispatch("qualityInfoChanged",this.getQualityInfo())},100,{leading:!0,trailing:!0})),(0,n._)(this,"handleChangeQuality",(e,t)=>{if(this.tempChangeQualityCallback=t,this.state.manulQuality===e){this.execAndClearTempChangeQualityCallback({success:!0,sameQuality:!0}),this.state.isAbrOpen&&this.setState({isAbrOpen:!1});return}this.setState({manulQuality:e,isAbrOpen:!1})}),(0,n._)(this,"execAndClearTempChangeQualityCallback",e=>{var t;null===(t=this.tempChangeQualityCallback)||void 0===t||t.call(this,e),this.tempChangeQualityCallback=void 0}),(0,n._)(this,"updateUrl",()=>{try{var e,t,i,n,a;let{useBackup:d}=this.state,{RTMConfig:c}=this._config,f=this.getPullData(),h=this.getProtocol(),_=this.getCurrentQuality(),m=(0,l.iv)({pullData:f}),p=(0,l.WE)({pullData:f,defaultQuality:_,protocol:h,useBackup:d,needAddBizParams:!0,RTMExtraQuery:(null==c?void 0:c.extraQuery)||{},onlyH264:this.isOnlyCanUseH264(),useLowerQualityFallback:!0}),g=p?v.$.get302result(p):null,y=g||p,w=this._player.src,b=null===(t=this._player)||void 0===t?void 0:null===(e=t.baseConfig)||void 0===e?void 0:e.url,C=!!y&&(!(0,s.$R)(y,w,!0)||!b||!(0,s.$R)(y,b,!0)),S=(null===(i=this._player)||void 0===i?void 0:i.paused)||C;return(0,u.qu)("StreamPlugin_updateUrl",{url:p,pre302Url:g,finalUrl:y,originUrl:w,needRealUpdate:S,urlChanged:C,paused:null===(n=this._player)||void 0===n?void 0:n.paused,decryption:m}),S&&y&&((0,I.rA)({player:this._player,params:(0,o._)((0,r._)({},this.getCommonTrackParams()),{origin_url:w,target_url:y||"",origin_protocol:w?String((0,l.f9)(w)):"",target_protocol:String((0,l.A5)(h)),origin_definition:String((0,s.x_)(w)||""),target_definition:String(_||""),need_real_update:1,url_changed:C?1:0})}),null===(a=this._player)||void 0===a||a.updateConfig({baseConfig:{url:y,protocol:(0,l.A5)(h),decryption:m}}),this.dispatchQualityInfoChanged()),{needRealUpdate:S}}catch(e){(0,u.WH)("StreamPlugin_updateUrl error",{error:e,msg:null==e?void 0:e.message})}}),(0,n._)(this,"debouncedUpdateUrl",w()(()=>{this.updateUrl()},10,{leading:!0,trailing:!0})),(0,n._)(this,"checkPlayerInUseWebcodecCore",()=>(0,C.VK)(this._player)),(0,n._)(this,"updateCore",()=>{if(this.checkPlayerInUseWebcodecCore()){var e,t,i,n,r;let o=(0,C.KE)();(0,u.qu)("StreamPlugin_updateCore",{core:o}),null===(r=this._player)||void 0===r||null===(n=r.changeCore)||void 0===n||n.call(r,o,{baseConfig:null===(e=this._player)||void 0===e?void 0:e.baseConfig,pluginsConfig:null===(t=this._player)||void 0===t?void 0:t.pluginsConfig,shared:null===(i=this._player)||void 0===i?void 0:i.shared})}}),(0,n._)(this,"updateAbrConfig",(()=>{let e;let t=w()(()=>{var e,t,i,n;let a=!!this.state.isAbrOpen,l=null===(t=this._player)||void 0===t?void 0:null===(e=t.baseConfig)||void 0===e?void 0:e.preProcessUrl,s=a?(0,g.i3)({pullData:this.getPullData(),protocol:this.getProtocol(),useBackup:this.state.useBackup,qualityLimit:null===(i=this._config)||void 0===i?void 0:i.qualityLimit,currentUrl:this._player.src,preProcessUrl:l}):{},u=this._player;u.updateConfig({baseConfig:(0,o._)((0,r._)({},null==u?void 0:null===(n=u.config)||void 0===n?void 0:n.baseConfig),{useAbr:!(0,p.getDisableAbrWhenDegrade)(),abr:(0,r._)({open:a},s)})})},100,{leading:!0,trailing:!0});return()=>{clearTimeout(e);let i=(0,p.getAbrQualityInitDelayTime)(),n=!!this.state.isAbrOpen;this._player.baseConfig.abr?t():n&&(e=setTimeout(()=>{t()},i||0))}})()),(0,n._)(this,"switchAbr",e=>{this.setState({isAbrOpen:e})}),(0,n._)(this,"setState",function(e){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,r._)({},t.state),o=(0,r._)({},t.state,e);if(o.manulQuality&&o.manulQuality!==n.manulQuality&&(o.useBackup=!1),t.state=o,i||n.isH265Error!==o.isH265Error||n.isRTMError!==o.isRTMError||n.useBackup!==o.useBackup||n.manulQuality!==o.manulQuality){var a;let e=null===(a=t.updateUrl())||void 0===a?void 0:a.needRealUpdate;n.manulQuality!==o.manulQuality&&!e&&(t.execAndClearTempChangeQualityCallback({success:!0,sameQuality:!1}),t.dispatchQualityInfoChanged())}!!o.isAbrOpen!=!!n.isAbrOpen&&(t.updateAbrConfig(),t.dispatchQualityInfoChanged())}),(0,n._)(this,"retryIndex",0),(0,n._)(this,"retryTimer",void 0),(0,n._)(this,"resetRetryStatus",e=>{e&&(this.retryIndex=0),this.retryTimer&&clearTimeout(this.retryTimer)}),(0,n._)(this,"handleUnablePlay",()=>{var e,t;let{retryIndex:i}=this,n=[0,3e3,5e3][i];if("number"==typeof n){(0,I.OJ)({player:this._player,params:(0,o._)((0,r._)({},this.getCommonTrackParams()),{retry_index:i,retry_delay_time:n})}),this.retryIndex++,this.resetRetryStatus(!1),this.retryTimer=setTimeout(()=>{var e,t;(0,u.qu)("StreamPlugin_handleUnablePlay_retry",{retryIndex:this.retryIndex,retryDelayTime:n}),null===(t=this._player)||void 0===t||null===(e=t.retry)||void 0===e||e.call(t)},n);return}(0,u.qu)("StreamPlugin_handleUnablePlay_onUnablePlay"),(0,I.uR)({player:this._player,params:(0,o._)((0,r._)({},this.getCommonTrackParams()),{retry_count:i})}),null===(e=(t=this._config).onUnablePlay)||void 0===e||e.call(t),this.execAndClearTempChangeQualityCallback({success:!1})}),(0,n._)(this,"handleDegrade",(e,t)=>{let i=this._player;if(!i)return;let n={[x.f8.RTMDegrade]:{condition:()=>(0,l.HD)(null==i?void 0:i.src),handler:()=>{this.setState({isRTMError:!0})}},[x.f8.PlayerCoreDegrade]:{condition:()=>this.checkPlayerInUseWebcodecCore(),handler:()=>{this.updateCore()}},[x.f8.H265Degrade]:{condition:()=>(0,s.aN)(null==i?void 0:i.src),handler:()=>{this.setState({isH265Error:!0}),d.Gq.addH265ErrorNum()}},[x.f8.BackupDegrade]:{condition:()=>{var e;return!(null===(e=this.state)||void 0===e?void 0:e.useBackup)},handler:()=>{this.setState({useBackup:!0})}}};for(let[a,l]of e.entries()){let{condition:s,handler:d}=n[l];if(s()){(0,u.WH)("StreamPlugin_handleDegrade_type",(0,r._)({type:l},t)),(0,I.cL)({player:i,params:(0,o._)((0,r._)({},this.getCommonTrackParams()),{error_code:null==t?void 0:t.code,video_error_code:null==t?void 0:t.videoErrorCode,degrade_type:l,degrade_order_index:a,degrade_sort:e.join(",")})}),d();return}}(0,u.WH)("StreamPlugin_handleDegrade_type",(0,r._)({type:"UnablePlay"},t)),this.handleUnablePlay()}),(0,n._)(this,"handlePlayerError",e=>{var t,i,n,a,l,s,d,c;let{code:f=-1}=e,h=e.player||this._player;if((0,I.$f)({player:h,params:(0,o._)((0,r._)({},this.getCommonTrackParams()),{error_code:f})}),(0,u.WH)("StreamPlugin_handleError",{code:f,err:e,src:null==h?void 0:h.src,player:h,errMsg:null==e?void 0:e.message,videoErrorCode:null==h?void 0:null===(i=h.video)||void 0===i?void 0:null===(t=i.error)||void 0===t?void 0:t.code,videoErrorMsg:null==h?void 0:null===(a=h.video)||void 0===a?void 0:null===(n=a.error)||void 0===n?void 0:n.message},!0),!h||(null===(s=this._config)||void 0===s?void 0:null===(l=s.checkShouldIgnoreError)||void 0===l?void 0:l.call(s)))return;let v={code:f,videoErrorCode:null==h?void 0:null===(c=h.video)||void 0===c?void 0:null===(d=c.error)||void 0===d?void 0:d.code},_=(0,x.yF)({err:e,currentPlayer:h});if(null==_?void 0:_.length){this.handleDegrade(_,v);return}if([1e3,1001,2100,2101].includes(f)){if(f){this.handleDegrade([x.f8.RTMDegrade,x.f8.PlayerCoreDegrade,x.f8.H265Degrade,x.f8.BackupDegrade]);return}this.handleDegrade([x.f8.RTMDegrade,x.f8.H265Degrade,x.f8.BackupDegrade])}else[3e3].includes(f)?this.handleDegrade([x.f8.H265Degrade,x.f8.BackupDegrade],v):([3001,3002,3003,3004,3005,3006,4e3,5e3,5001,5002,5003,5004,6001].includes(f)||[1002,9007,9008,9100,9101,9102,9103].includes(f),this.handleDegrade([x.f8.RTMDegrade,x.f8.PlayerCoreDegrade,x.f8.H265Degrade,x.f8.BackupDegrade],v))}),(0,n._)(this,"handleCanplay",()=>{var e;this.execAndClearTempChangeQualityCallback({success:!0}),(0,s.aN)(null===(e=this._player)||void 0===e?void 0:e.src)&&d.Gq.resetH265ErrorNum(),this.resetRetryStatus(!0)}),(0,n._)(this,"handleWaiting",()=>{(0,I.uF)({player:this._player,params:(0,r._)({},this.getCommonTrackParams())})}),(0,n._)(this,"handleSwitchCompleted",()=>{var e,t;if((0,u.qu)("StreamPlugin_handleSwitchCompleted",{src:null===(e=this._player)||void 0===e?void 0:e.src}),null===(t=this._player.baseConfig.abr)||void 0===t?void 0:t.open){let e=(0,s.x_)(this._player.src);e&&this.setState({manulQuality:e}),this.dispatchQualityInfoChanged()}}),(0,n._)(this,"checkAndInit",(()=>{let e=!1;return()=>{var t,i;if(!!(null===(t=this._config)||void 0===t?void 0:t.enable)&&!this.hasDestroyed&&!e)e=!0,(0,u.qu)("StreamPlugin_afterPlayerInit",{config:this._config}),this._player.on("error",this.handlePlayerError),this._player.on("canplay",this.handleCanplay),this._player.on("waiting",this.handleWaiting),this._player.on("switch_completed",this.handleSwitchCompleted),this.setState({isRTMError:!1,isH265Error:!1,useBackup:!1,isAbrOpen:(null===(i=this._config)||void 0===i?void 0:i.enableAbr)&&(0,g.RE)()},!0)}})()),(0,n._)(this,"afterPlayerInit",()=>{this.checkAndInit()}),(0,n._)(this,"beforeDestroy",()=>{this.switchAbr(!1),this.hasDestroyed=!0,this._player.off("error",this.handlePlayerError),this._player.off("canplay",this.handleCanplay),this._player.off("waiting",this.handleWaiting),this._player.off("switch_completed",this.handleSwitchCompleted),this.eventBus.all.clear()})}}(0,n._)(E,"pluginName",c.Y),(0,n._)(E,"getInitUrlByStreamPluginConfig",h.r)},476023:function(e,t,i){"use strict";i.d(t,{f:function(){return r}});var n=i(629686);i(490629);function r(e){if(!!e)return(0,n._)({rtm_main_thread_connect:!!e.rtmMainThreadConnect,rtm_early_decoder_init:!!e.rtmEarlyDecoderInit,enable_aac_codecs:!!e.enableAACCodecs,enable_fast_sync:!!e.enableFastSync},function(e){let t={};for(let[i,n]of Object.entries(e))"number"==typeof n&&Number.isFinite(n)&&(t[i]=n);return t}({rtm_preload_refresh_interval:e.rtmPreloadInterval,webts_chase_check_interval_ms:e.webtsChaseCheckIntervalMs,webts_chase_min_buffer_ms:e.webtsChaseMinBufferMs,webts_chase_max_buffer_ms:e.webtsChaseMaxBufferMs,webts_max_reconnect_count:e.webtsMaxReconnectCount}))}},233616:function(e,t,i){"use strict";i.d(t,{RE:function(){return f},i3:function(){return u},t4:function(){return c}}),i(591964),i(490629),i(76375),i(932651),i(228983),i(759943);var n=i(858651),r=i(121422),o=i(690193),a=i(169631),l=i(927061),s=i(526226);let u=e=>{let{pullData:t,qualityLimit:i,useBackup:u,preProcessUrl:d=e=>e,protocol:c=s.c.FLV,currentUrl:f}=e;try{var h,v,_;let{data:e={}}=(0,l.fU)({pullData:t})||{},m=s.W[c].streamObjKey,p=(0,a.aN)(f),g=Object.entries(e||{}).reduce((e,t)=>{var n;let[o,l]=t;if(i&&(0,a.gW)({qualityA:o,qualityB:i,equalResult:!0}))return e;let{main:s,backup:c}=l,f=(u?[c,s]:[s,c]).find(e=>null==e?void 0:e[m]),h=(0,r.uC)(d((null==f?void 0:f[m])||"")),v=null===(n=JSON.parse((null==f?void 0:f.sdk_params)||"{}"))||void 0===n?void 0:n.vbitrate;return h&&v&&(0,a.aN)(h)===p&&(e[v]=h),e},{}),y=f&&(0,a.x_)(f),w=y&&(null===(h=JSON.parse((null===(_=e[y])||void 0===_?void 0:null===(v=_.main)||void 0===v?void 0:v.sdk_params)||"{}"))||void 0===h?void 0:h.vbitrate);if(w&&(g[w]=f),0===Object.keys(g).length)throw Error("abr urls is empty");let b={urls:g,bitrate:w,debug:(0,o.nj)()},{down_thresh:C,start_limit:S,enable:k}=(0,n.getAbrQualityABParams)()||{};return k&&Object.assign(b,{start_limit:S,down_thresh:C}),b}catch(e){return(0,o.WH)("getAbrConfigFromPullData_error",{pullData:t,qualityLimit:i,useBackup:u,preProcessUrl:d,protocol:c,error:e,message:null==e?void 0:e.message}),{urls:{},debug:(0,o.nj)(),open:!1}}},d="undefined"==typeof window,c=(()=>{let e="live_local_quality";return{key:e,get(){if(d)return"";for(let t of document.cookie.split(";")){let[i,n]=t.split("=");if(i.trim()===e)return(0,o.WH)("abrQualityManager_get",{quality:n}),n}return""},set(t){if(d)return;(0,o.WH)("abrQualityManager_set",{quality:t});let i=new Date,n=new Date(i.getFullYear(),i.getMonth(),i.getDate(),23,59,59).toUTCString();document.cookie=`${e}=${t}; expires=${n}; path=/;domain=.douyin.com`},clear(){if(!d)(0,o.WH)("abrQualityManager_clear"),document.cookie=`${e}=; max-age=0; path=/;domain=.douyin.com`}}})();function f(){return(0,n.getAbrQualityAB)()&&!c.get()}},887455:function(e,t,i){"use strict";i.d(t,{d:function(){return c}}),i(228983),i(759943);let n=e=>e?e.length<=1e3?e:`${e.slice(0,997)}...`:"",r=e=>{var t,i,n,r;let o=null==e?void 0:null===(i=e.response)||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:t.status_code,a=null==e?void 0:null===(n=e.response)||void 0===n?void 0:n.status,l=null!==(r=null!=o?o:a)&&void 0!==r?r:null==e?void 0:e.code;return null==l?"":String(l)},o=e=>{var t,i,n,r,o,a,l;let s=null!==(l=null!==(a=null==e?void 0:null===(i=e.response)||void 0===i?void 0:null===(t=i.headers)||void 0===t?void 0:t["x-tt-logid"])&&void 0!==a?a:null==e?void 0:null===(o=e.response)||void 0===o?void 0:null===(r=o.headers)||void 0===r?void 0:null===(n=r.get)||void 0===n?void 0:n.call(r,"x-tt-logid"))&&void 0!==l?l:null==e?void 0:e.logId;return null==s?"":String(s)},a=e=>{var t,i,n,r,o;return(null==e?void 0:null===(t=e.config)||void 0===t?void 0:t.url)||(null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(i=n.config)||void 0===i?void 0:i.url)||(null==e?void 0:null===(r=e.request)||void 0===r?void 0:r._url)||(null==e?void 0:null===(o=e.request)||void 0===o?void 0:o._byted_url)||""},l=e=>{var t;return n(String((null==e?void 0:e.stack)||(null==e?void 0:null===(t=e.reason)||void 0===t?void 0:t.stack)||"").slice(0,400))},s=(e,t)=>{var i;let r=String((null==e?void 0:e.stack)||(null==e?void 0:null===(i=e.reason)||void 0===i?void 0:i.stack)||"").split("\n").map(e=>e.trim()).find((e,t)=>t>0&&e);return n((null==e?void 0:e.fileName)||(null==e?void 0:e.filename)||(null==e?void 0:e.sourceURL)||r||t)},u=(e,t)=>{var i,r,o,a,l,s,u,d,c,f,h,v,_,m,p,g,y,w;return n([t?`requestUrl:${t}`:"",`method:${(null==e?void 0:null===(i=e.config)||void 0===i?void 0:i.method)||(null==e?void 0:null===(o=e.response)||void 0===o?void 0:null===(r=o.config)||void 0===r?void 0:r.method)||""}`,`status:${null!==(y=null==e?void 0:null===(a=e.response)||void 0===a?void 0:a.status)&&void 0!==y?y:""}`,`status_code:${null!==(w=null==e?void 0:null===(s=e.response)||void 0===s?void 0:null===(l=s.data)||void 0===l?void 0:l.status_code)&&void 0!==w?w:""}`,`message:${(null==e?void 0:null===(c=e.response)||void 0===c?void 0:null===(d=c.data)||void 0===d?void 0:null===(u=d.data)||void 0===u?void 0:u.message)||(null==e?void 0:null===(h=e.response)||void 0===h?void 0:null===(f=h.data)||void 0===f?void 0:f.message)||""}`,`prompts:${(null==e?void 0:null===(m=e.response)||void 0===m?void 0:null===(_=m.data)||void 0===_?void 0:null===(v=_.data)||void 0===v?void 0:v.prompts)||(null==e?void 0:null===(g=e.response)||void 0===g?void 0:null===(p=g.data)||void 0===p?void 0:p.prompts)||""}`].filter(Boolean).join(" | "))},d=(e,t)=>n([`runtimeSource:${s(e,t)}`,`runtimeStack:${l(e)}`].filter(Boolean).join(" | ")),c=(e,t)=>{let{stage:i,source:l,prompt:c="服务异常,请稍后再试!"}=t;try{var f,h;let t=a(e),v=(null==e?void 0:e.message)||c,_=r(e),m=o(e),p=!!t,g=p?l:s(e,l),y=p?u(e,t):d(e,l);null===(f=(h=window).collectEvent)||void 0===f||f.call(h,"livesdk_toast_error",{error_message:n(String(v)),stage:i,source:g,error_desc:y,prompt:c,url:"undefined"!=typeof location?location.href:"",code:_,logids:m})}catch(e){}}},842621:function(e,t,i){"use strict";i.d(t,{HJ:function(){return w},Jm:function(){return C},_o:function(){return b}}),i(683656),i(759943),i(228983),i(374954),i(14275);let n="__LIVE_TOOLTIP_ERROR_CONTEXT__",r="__LIVE_TOOLTIP_ERROR_MONITOR_ATTACHED__",o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return e?e.length<=t?e:`${e.slice(0,Math.max(t-3,0))}...`:""},a=e=>{var t,i,n,r,o;return[null==e?void 0:null===(i=e.payload)||void 0===i?void 0:null===(t=i.error)||void 0===t?void 0:t.message,null==e?void 0:null===(r=e.payload)||void 0===r?void 0:null===(n=r.error)||void 0===n?void 0:n.value,null==e?void 0:null===(o=e.payload)||void 0===o?void 0:o.message].filter(Boolean).join(" ")},l=e=>{var t,i,n;return o([null==e?void 0:null===(i=e.payload)||void 0===i?void 0:null===(t=i.error)||void 0===t?void 0:t.stack,null==e?void 0:null===(n=e.payload)||void 0===n?void 0:n.stack].filter(Boolean).join(" "),512)},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:120,i=(e||"").replace(/\s+/g," ").trim();return i?i.length<=t?i:`${i.slice(0,Math.max(t-3,0))}...`:""},u=e=>"undefined"!=typeof HTMLElement&&e instanceof HTMLElement,d=e=>{let t=[],i=e,n=0;for(;i&&n<4;){let e=i.tagName.toLowerCase(),r=i.id?`#${i.id}`:"",o=s(i.className,60).split(" ").filter(Boolean).slice(0,2).map(e=>`.${e}`).join("");t.push(`${e}${r}${o}`),i=i.parentElement,n+=1}return t.join(" > ")},c=e=>s(Array.from(e.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE).map(e=>e.textContent||"").join(" "),48),f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:120,i=c(e);return i?s(i,t):s(e.innerText||e.textContent,t)},h=e=>!!(e.getAttribute("aria-label")||e.getAttribute("title")||e.getAttribute("data-testid")||e.getAttribute("data-tooltip-source")||e.getAttribute("data-tooltip-scene")||e.getAttribute("href")||e.getAttribute("role")||"BUTTON"===e.tagName||"A"===e.tagName),v=e=>(e.innerText||e.textContent||"").replace(/\s+/g," ").trim().length>240&&e.children.length>3,_=e=>{if(!e)return"";let t=f(e),i=s(e.getAttribute("aria-label")),n=s(e.getAttribute("title")),r=s(e.getAttribute("data-testid")),o=s(e.getAttribute("role")),a=s(e.getAttribute("href")),l=s(e.getAttribute("data-tooltip-source")),u=s(e.getAttribute("data-tooltip-scene")),c=s(e.className,80),h=t||(v(e)?`textLength:${(e.innerText||e.textContent||"").trim().length}`:"");return[h?`text:${h}`:"",i?`aria:${i}`:"",n?`title:${n}`:"",r?`testid:${r}`:"",o?`role:${o}`:"",a?`href:${a}`:"",l?`source:${l}`:"",u?`scene:${u}`:"",c?`class:${c}`:"",`path:${d(e)}`].filter(Boolean).join(", ")},m=()=>"undefined"==typeof document?"":Array.from(document.querySelectorAll('.semi-tooltip,.semi-popover,.semi-dropdown,.semi-dropdown-menu,[role="tooltip"]')).filter(e=>{let t=e.getBoundingClientRect(),i=window.getComputedStyle(e);return t.width>0&&t.height>0&&"none"!==i.display&&"hidden"!==i.visibility}).slice(0,3).map((e,t)=>`overlay${t+1}:{${_(e)}}`).join(" ; "),p=e=>{if(!u(e))return null;let t=e,i=e,n=0;for(;t&&n<4;){if(h(t))return t;!v(t)&&(i=t),t=t.parentElement,n+=1}return i},g=e=>{let t=p(e.target);if(!!t)window[n]={time:Date.now(),type:e.type,trigger:_(t)}},y=()=>{let e=[],t=window[n];t&&Date.now()-Number(t.time||0)<=1e4&&(e.push(`triggerType:${t.type||""}`),e.push(`trigger:{${t.trigger||""}}`)),u(document.activeElement)&&e.push(`active:{${_(document.activeElement)}}`);let i=m();return i&&e.push(i),e.filter(Boolean).join(" | ")},w=()=>{if("undefined"!=typeof document&&!window[r])["pointerdown","click","mouseover","focusin"].forEach(e=>{document.addEventListener(e,g,!0)}),window[r]=!0},b=e=>{if((null==e?void 0:e.ev_type)!=="js_error")return!1;let t=a(e),i=l(e);return/contains is not a function/i.test(`${t} ${i}`)},C=e=>{var t,i,n,r,s,u;let d=o(a(e)||"contains is not a function"),c=o([(null==e?void 0:null===(i=e.payload)||void 0===i?void 0:null===(t=i.error)||void 0===t?void 0:t.filename)||(null==e?void 0:null===(n=e.payload)||void 0===n?void 0:n.filename)||"",l(e)].filter(Boolean).join(" | ")),f=o([(null==e?void 0:null===(r=e.common)||void 0===r?void 0:r.pid)?`pid:${e.common.pid}`:"","undefined"!=typeof location?location.href:"",y()].filter(Boolean).join(" | "));null===(s=(u=window).collectEvent)||void 0===s||s.call(u,"tooltip_error",{errorInfo:d,errorDesc:f,error_reason:c})}},273514:function(e,t,i){"use strict";i.d(t,{T:function(){return _}}),i(490629),i(679308),i(992871),i(112459),i(759943);var n=i(732979),r=i.n(n),o=i(101199),a=i(528937),l=i(66948),s=i(426038),u=i(499059),d=i(414061),c=i(409250),f=i(335924);async function h(e){let{key:t,value:i}=e;for(let e of(await a.get({key:l.TccKey.UgClientDownloadUrlList,defaultValue:l.TCC_DEFAULT_VALUE_MAP.get(l.TccKey.UgClientDownloadUrlList)})))if(e[t]===i)return e;return!1}let v=async e=>{u.Le.setConfig(u.gI.WebUgChannelId,e),d.emit(d.EVENT.SetWebUgSource),c.Q.setItem(s.CookieKeys.WebUgChannelId,e,new Date(r()().add(90,"day").valueOf()))};function _(e){let{ttwidCreateTime:t}=e;(0,o.useEffect)(()=>{(async()=>{let e=c.Q.getItem({sKey:s.CookieKeys.WebUgChannelId});if(e){v(e);return}let i=new URLSearchParams(window.location.search).get("ug_source")||(0,f.Rs)("ug_source")||"";if(!!i){if(0===t||t>=r()().subtract(5,"minute").unix()){let e=await h({key:"source",value:i});if(!1===e)return;v(e.channel_id);return}}})()},[t])}},679227:function(e,t,i){"use strict";var n=i(624508);let r={pageClick:{eventName:"page_click",params:{click_position:"",enter_from:""}},pageView:{eventName:"page_view",params:{url:"",url_path:"",enter_from:"",link_from:"",is_from_share_link:0,tab_name:"",enter_method:"",aweme_type:0,theme:"light",is_topknot:0,abtest:"",ischange:"",old_ttwid:"",enter_by_tab:0,browser_height:0,browser_width:0,browser_ratio:0,redirect_from:"",from_push:0,seo_vids:"",url_source:"",url_source_method:"",word_strategy:"",physical_screen_num:0,physical_screen_info:"",match_id:"",enter_from_merge:"",is_small_window:0,is_mobile:0,is_ipad:0,is_apad:0,if_from_widget:0,theme_raw_value:"",reason:"",open_from_page:"",multi_window_order:"",multi_window_open_from:"",is_child_route:!1,is_support_wasm:!1,sidebar_status:"open"}},pageViewV2:{eventName:"page_view_v2",params:{url:"",url_path:"",enter_from:"",link_from:"",is_from_share_link:0,tab_name:"",enter_method:"",aweme_type:0,theme:"light",is_topknot:0,abtest:"",ischange:"",old_ttwid:"",enter_by_tab:0,browser_height:0,browser_width:0,browser_ratio:0,redirect_from:"",from_push:0,seo_vids:"",url_source:"",url_source_method:"",word_strategy:"",physical_screen_num:0,physical_screen_info:"",match_id:"",enter_from_merge:"",is_small_window:0,is_mobile:0,is_ipad:0,is_apad:0,if_from_widget:0,theme_raw_value:"",reason:"",open_from_page:"",multi_window_order:"",multi_window_open_from:"",is_child_route:!1,is_support_wasm:!1}},pageViewError:{eventName:"page_view_error",params:{url:"",enter_from:"",uid:"",uuid:""}},pageViewMonitor:{eventName:"page_view_monitor",params:{url:"",enter_from:"",uid:"",uuid:""}},pageViewMonitorTest:{eventName:"page_view_monitor_test",params:{url:""}},pageStayTime:{eventName:"page_stay_time",params:{url:"",url_path:"",enter_from:"",enter_from_merge:"",previous_page:"",enter_method:"",duration:0,is_visible:1,link_from:"",tab_name:"",aweme_type:0,player_paused:0,player_muted:0,reason:"",sidebar_status:"open",is_child_route:!1}},webOnlineTime:{eventName:"web_online_time",params:{is_visible:"1"}},topknotWearShow:{eventName:"topknot_waer_show",params:{}},webPushVerify:{eventName:"web_push_verify",params:{browser:"",can_use_notification_api:"0",can_use_push_api:"0",can_use_sw_api:"0",can_use_all_api:"0",user_agant:""}},addToDesktopShow:{eventName:"add_to_desktop_show",params:{enter_from:"",type:"top_bar_hover",is_full_screen:"0",platform:"",guide_type:"",channel_id:"",if_reddot:-1,ug_channel_id:""}},addToDesktopClick:{eventName:"add_to_desktop_click",params:{enter_from:"",type:"top_bar_icon",is_full_screen:"0",platform:"",guide_type:"",channel_id:"",if_reddot:-1,ug_channel_id:""}},addToDesktopGuideClose:{eventName:"add_to_desktop_guide_close",params:{enter_from:"",is_full_screen:"0"}},installNativePanelShow:{eventName:"install_native_panel_show",params:{}},installNativePanelClick:{eventName:"install_native_panel_click",params:{action:"cancel"}},personalPanelShow:{eventName:"personal_panel_show",params:{enter_from:""}},personalPanelClick:{eventName:"personal_panel_click",params:{enter_from:"",click_position:"post",menu:"",is_personal_panel_video:0}},clickLogOut:{eventName:"click_log_out",params:{enter_from:""}},newImShow:{eventName:"new_im_show",params:{is_new:"",enter_from:(0,i(601034).yW)()}},clickPreviousPage:{eventName:"click_previous_page",params:{enter_from:""}},clickMainPage:{eventName:"click_main_page",params:{enter_from:""}},clientSettingHover:{eventName:"client_setting_hover",params:{badge:1}},clientSettingClick:{eventName:"client_setting_click",params:{position:"",badge:1}},from360:{eventName:"from_360",params:{qhclickid:"",uuid:""}},cooperatePanelShow:{eventName:"cooperate_panel_show",params:{enter_from:""}},publishPanelShow:{eventName:"publish_panel_show",params:{enter_from:"",is_badge:0}},downloadPanelShow:{eventName:"download_panel_show",params:{enter_from:""}},downloadPanelClick:{eventName:"download_panel_click",params:{enter_from:""}},feedClick:{eventName:"feed_click",params:{enter_from:""}},clickReturnPage:{eventName:"click_return_page",params:{enter_from:""}},addToDesktopBadgeShow:{eventName:"add_to_desktop_badge_show",params:{enter_from:""}},clientSettingBadgeShow:{eventName:"client_setting_badge_show",params:{}},hevcInfo:{eventName:"hevc_info",params:{support:-1,total_frames:-1,dropped_frames:-1,dropped_rate:-1}},addToDesktopClose:{eventName:"add_to_desktop_close",params:{enter_from:"",type:"",click_method:""}},downloadExtension:{eventName:"download_extension",params:{available:0}},webCollectNotify:{eventName:"web_collect_notify",params:{enter_from:"",enter_method:"hover"}},webCollectClick:{eventName:"web_collect_click",params:{enter_from:"",enter_method:"hover"}},publishNotifyShow:{eventName:"publish_notify_show",params:{}},clickPublish:{eventName:"click_publish",params:{enter_from:"",is_badge:0}},webDesktopNotify:{eventName:"web_desktop_notify",params:{enter_from:""}},webDesktopClick:{eventName:"web_desktop_click",params:{enter_from:""}},jianying_publish_entrance_show:{eventName:"jianying_publish_entrance_show",params:{badge:0}},jianying_publish_entrance_click:{eventName:"jianying_publish_entrance_click",params:{badge:0}},clickMyEcomOrder:{eventName:"click_my_ecom_order",params:{enter_from:""}},clientDriverCheckShow:{eventName:"client_driver_check_show",params:{}},clientDriverCheckClick:{eventName:"client_driver_check_click",params:{enter_from:""}},settingPanelClick:{eventName:"setting_panel_click",params:{enter_from:"",menu:"",theme_color:void 0,if_reddot:void 0}},flowFrontierError:{eventName:"flow_frontier_error",params:{code:0,reason:""}},multiWindowAddToastShow:{eventName:"multi_window_add_toast_show",params:{}},webPerfTiming:{eventName:"web_perf_timing",params:{enter_from:"",page_view_report:0}}};t.Z=new n.h(r)},503016:function(e,t,i){"use strict";i.d(t,{wJ:function(){return o}});var n=i(320165);let r=(0,i(101199).createContext)(""),o=e=>{let{children:t,nonce:i}=e;return(0,n.jsx)(r.Provider,{value:i,children:t})}},659012:function(e,t,i){"use strict";let n;i.d(t,{LX:function(){return L},hG:function(){return k},me:function(){return E},qJ:function(){return T},rR:function(){return x}});var r=i(629686);i(706056),i(374285),i(566071),i(759943),i(414931),i(14275),i(932651),i(490629);var o=i(650047),a=i(885112),l=i(356336),s=i(855357),u=i(889429),d=i(759894),c=i(601034),f=i(618759),h=i(392430),v=i(661444),_=i(265886),m=i(499059),p=i(857800),g=i(215580),y=i(762122);let w=(0,u.Lq)().browser_version,b=e=>{var t,i,n;let r=(null==e?void 0:null===(t=e.fixEdgeDoubleVideo)||void 0===t?void 0:t.version)||[],o=(null==e?void 0:null===(i=e.fixEdgeDoubleVideo)||void 0===i?void 0:i.blackList)||[];return(null==e?void 0:null===(n=e.fixEdgeDoubleVideo)||void 0===n?void 0:n.open)&&(0,u.un)()&&r.includes(w)&&!o.includes((0,d.mo)())},C=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{forceMseServer:i,forceMsePageServer:n}=e;if(!i)return!1;if("recommend"===(0,c.yW)())return!0;if(!t)return!1;if(i===l.ForceMseServer.Both||i===l.ForceMseServer.Web&&!(0,f.DT)()||i===l.ForceMseServer.Client&&(0,f.DT)())return!n||new RegExp(n).test((0,d.mo)());return!1},S=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!!((null==e?void 0:e.allMse)||b(e))||!!(0,h.Kn)(e)&&(!!C(e,t)||!!e.forceMse&&("recommend"===(0,c.yW)()||!!t&&(!e.forceMsePage||new RegExp(e.forceMsePage).test((0,d.mo)()))))},k=e=>{let{abtestData:t}=e;if((0,v.En)()){var i;return null===(i=(0,_.P)(t))||void 0===i?void 0:i.videoPreloadConfig}let n={};return((null==t?void 0:t.videoPreloadConfigApplySideServer)==="both"||(0,f.DT)()&&(null==t?void 0:t.videoPreloadConfigApplySideServer)==="client"||!(0,f.DT)()&&(null==t?void 0:t.videoPreloadConfigApplySideServer)==="web")&&(n=null==t?void 0:t.videoPreloadConfigServer),Object.assign({},null==t?void 0:t.videoPreloadConfig,n)},x=e=>{var t,i,n,a,l,s;let{abtestData:d,isMultiInstanceScene:c,awemeInfo:h}=e,v=(0,g.Ni)(h),_=(0,r._)({preloadTime:5,isDegrade:!1,waitingTimeOut:5e3,preloadCacheType:1,needAutoBitrate:!0,startPreloadMinBuffer:5,maxBufferLength:60,minBufferLength:5,removeBufferLen:60,preloadMaxCacheCount:10,resumePlayWaterLevel:2,xhrSetup:()=>{},onProcessMinLen:0,needPreloadCheck:!v,forceVideoPlay:!1,segmentMinDuration:5,tickInSeconds:.2,fixEditListOffset:!!(null==d?void 0:d.fixEditListOffset),audioGroupingStrategy:1,memoryOpt:!!(null==d?void 0:d.mseMemoryOpt),switchBitRateWay:(null==d?void 0:d.smoothSwitchClarify)>=1,loadFirstGopData:(null==d?void 0:d.smoothSwitchClarify)===2,noPreloadAddBufferLen:0,removeBufferAtSeek:!0},(0,y.g)({abTestData:d})),p=Object.assign({},k({abtestData:d}));S(d,c)&&(p.needPreloadCheck=!1),d.mseReferrer&&(p.reqOptions={referrerPolicy:"strict-origin-when-cross-origin"});let w=m.Le.getConfig(m.gI.ServerTimeOffset);(null==d?void 0:d.checkUrlTime)&&w<=6e4&&(p.enableCusExpiryCheck=!0),(null==d?void 0:d.checkSeek)&&(p.waitingRetrySeekTimes=null==d?void 0:null===(t=d.checkSeek)||void 0===t?void 0:t.waitingRetrySeekTimes,p.waitingRetryDuration=null==d?void 0:null===(i=d.checkSeek)||void 0===i?void 0:i.waitingRetryDuration,p.disableInactiveWaitingCheck=null==d?void 0:null===(n=d.checkSeek)||void 0===n?void 0:n.disableInactiveWaitingCheck),v&&(_.secretKey=null==h?void 0:null===(s=h.video)||void 0===s?void 0:null===(l=s.bitRateList)||void 0===l?void 0:null===(a=l[0])||void 0===a?void 0:a.playerAccessKey,((0,u.vU)()||(0,u.G6)())&&(_.useEME=o.default.isEMESupported()));let b=(null==d?void 0:d.runLoadRangeType)||((0,f.DT)()?null==d?void 0:d.runLoadrangeTypeClientServer:null==d?void 0:d.runLoadrangeTypeWebServer);return b&&(p.loadRangeType=b),Object.assign({},_,p)},I=e=>{let{awemeInfo:t,abtestData:i}=e;return!!(0,g.Ni)(t)||!!(m.Le.getConfig(m.gI.isVideoPlayed)||(null==i?void 0:i.enableFirstMse)||(0,p.B)()||(null==i?void 0:i.enableFirstMseOnlyRecommend)&&"recommend"===(0,c.yW)()||b(i))&&(null==t?void 0:t.awemeType)!==s.e.Note&&((null==t?void 0:t.awemeType)===s.e.Normal||(null==i?!!void 0:!!i.mergeOptimization))&&(void 0===n&&(n=o.default.isSupported()),n)},L=e=>{var t;let{config:i,awemeInfo:n,abtestData:r,isMultiInstanceScene:l}=e,s=null==i?void 0:null===(t=i.plugins)||void 0===t?void 0:t.includes(a.default);I({awemeInfo:n,abtestData:r})&&!s&&(i.plugins=[...i.plugins||[],o.default],i.mp4encryptplayer=x({awemeInfo:n,abtestData:r,isMultiInstanceScene:l}),"h265soft"===i.initCodecType&&(i.mp4encryptplayer.fixEditListOffset=!1))},E=e=>{var t,i,n,r,o,a;let l=!!(null==e?void 0:null===(t=e.config)||void 0===t?void 0:t.mp4encryptplayer)||!!(null==e?void 0:null===(i=e.plugins)||void 0===i?void 0:i.dashplugin),s=!!((null==e?void 0:null===(n=e.preLoadData)||void 0===n?void 0:n.byteLength)||(null==e?void 0:null===(a=e.plugins)||void 0===a?void 0:null===(o=a.mp4encryptplayer)||void 0===o?void 0:null===(r=o.preLoadData)||void 0===r?void 0:r.byteLength));return l&&s},T=e=>{var t,i,n,r,o,a;let l=null===(t=window)||void 0===t?void 0:t.playerPreloader;if(!l)return 0;{let t=l.getPreloadMetaByVid(null==e?void 0:null===(i=e.config)||void 0===i?void 0:i.vid),s=!!((null==e?void 0:null===(n=e.preLoadData)||void 0===n?void 0:n.byteLength)||(null==e?void 0:null===(a=e.plugins)||void 0===a?void 0:null===(o=a.mp4encryptplayer)||void 0===o?void 0:null===(r=o.preLoadData)||void 0===r?void 0:r.byteLength));return t&&s?1:2}}},215580:function(e,t,i){"use strict";i.d(t,{GP:function(){return o},Ni:function(){return r}});var n=i(32359);let r=e=>{var t,i,n,r,o,a;return(null==e?void 0:null===(n=e.video)||void 0===n?void 0:null===(i=n.bitRateList)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.format)==="mp4"&&(null==e?void 0:null===(a=e.video)||void 0===a?void 0:null===(o=a.bitRateList)||void 0===o?void 0:null===(r=o[0])||void 0===r?void 0:r.playerAccessKey)},o=e=>{var t,i,r,o;if(!e)return!1;let a=null==e?void 0:null===(t=e.chargeInfo)||void 0===t?void 0:t.is_charge_content,l=null==e?void 0:null===(r=e.chargeInfo)||void 0===r?void 0:null===(i=r.preview_config)||void 0===i?void 0:i.is_preview,s=null==e?void 0:null===(o=e.chargeInfo)||void 0===o?void 0:o.has_paid,u=(0,n.$m)(e);return a&&!l&&!s&&"limited"!==u}},606169:function(e,t,i){"use strict";var n=i(841434),r=i(932512),o=i(618759),a=i(103680),l=i(953123),s=i(740197),u=i(823470);t.Z=()=>{let e=async(e,t)=>{let{gameId:i,urlSchema:r,isHorizontal:u,logParams:d}=t;if(!(0,o.DT)())return s.p.open({logParams:d,clientSchemaUrl:`${r}&isHorizontal=${u||0}&is_from_web=1`,onClose:()=>{s.p.close()}}),(0,n.Vp)(void 0,"success");try{let e=await a.invoke("createGameWindow",{urlSchema:(0,l.H7)(r,{is_from_web:0}),isHorizontal:u||0,gameId:i||""}),{reason:t,message:o,windowCount:s}=(null==e?void 0:e.data)||{};if("SUCCESS"!==t)return(0,n.bG)(n.MU.FAIL,o||"",{reason:t||"",message:o||"",windowCount:s||0});return(0,n.Vp)(e.data,"success")}catch(e){return(0,n.bG)(n.MU.FAIL,"创建窗口失败")}};(0,r.z)(u.w.CreateGameWindow,e)}},737635:function(e,t,i){"use strict";var n=i(841434),r=i(932512),o=i(759894),a=i(823470);t.Z=()=>{(0,r.z)(a.w.GetEnterFrom,(e,t)=>{try{let e=(0,o.vM)();return(0,n.Vp)(e,"success")}catch(e){return(0,n.bG)(n.MU.FAIL)}})}},652039:function(e,t,i){"use strict";var n=i(841434),r=i(932512),o=i(356336),a=i(823470);t.Z=()=>{(0,r.z)(a.w.GetUtilsABVal,(e,t)=>{try{return(0,n.Vp)(o,"success")}catch(e){return(0,n.bG)(n.MU.FAIL)}})}},980928:function(e,t,i){"use strict";var n=i(841434),r=i(932512),o=i(823398),a=i(823470);t.Z=()=>{(0,r.z)(a.w.GetUtilsHooks,(e,t)=>{try{return(0,n.Vp)(o,"success")}catch(e){return(0,n.bG)(n.MU.FAIL)}})}},771718:function(e,t,i){"use strict";i.d(t,{HO:function(){return l},d6:function(){return s}});var n=i(841434),r=i(932512),o=i(414061),a=i(823470);let l=(e,t)=>{try{let{imgList:e,imgIndex:i}=t||{};if(Array.isArray(e)&&(null==e?void 0:e.length)>0)return o.emit(o.EVENT.openImagePreviewViewer,{imgs:e.map(e=>e.url),imgIndex:i||0}),(0,n.Vp)(void 0,"success");return(0,n.bG)(n.MU.FAIL,"invalid params",t)}catch(e){return(0,n.bG)(n.MU.FAIL)}},s=(e,t)=>{var i;return l(e,{imgList:null===(i=(null==t?void 0:t.imageUrlList)||(null==t?void 0:t.thumbImageUrlList)||[])||void 0===i?void 0:i.map(e=>({url:e})),imgIndex:(null==t?void 0:t.position)||0})};t.ZP=()=>{(0,r.z)(a.w.OpenImagePreviewViewer,l),(0,r.z)(a.w.GamecpPreviewImages,s)}},866603:function(e,t,i){"use strict";i(706056);var n=i(841434),r=i(190503),o=i(932512),a=i(823470);t.Z=()=>{let e=async(e,t)=>{try{let{type:e,args:i}=t||{};if(["follow","unfollow"].includes(e)&&(null==i?void 0:i.user_id)){let t=await (0,r.Z)(null==i?void 0:i.user_id,"follow"===e?1:0);if(0!==t.statusCode)return(0,n.bG)(n.MU.FAIL,null==t?void 0:t.errMsg);{let t={type:"follow",args:{user_id:null==i?void 0:i.user_id,follow_status:"follow"===e?1:2}};return(0,n.broadcastEvent)("H5_userStatusChange",t),(0,n.Vp)()}}return(0,n.bG)(n.MU.FAIL,"invalid params",t)}catch(e){return(0,n.bG)(n.MU.FAIL)}};(0,o.z)(a.w.UserAction,e)}},402824:function(e,t,i){"use strict";i.d(t,{M:function(){return a}});var n=i(841434),r=i(932512),o=i(823470);let a=(e,t)=>{try{if(!(null==t?void 0:t.url))return(0,n.bG)(n.MU.FAIL,"invalid params",t);return window.open(null==t?void 0:t.url,"_blank","noopener"),(0,n.Vp)()}catch(e){return(0,n.bG)(n.MU.FAIL)}};t.Z=()=>{(0,r.z)(o.w.WindowOpen,a)}},870105:function(e,t,i){"use strict";i.d(t,{_i:function(){return o},o5:function(){return r},s0:function(){return a}}),i(490629),i(374954),i(362051);let n={},r=(e,t)=>{var i;for(let r of(null!==(i=n[e])&&void 0!==i||(n[e]=[]),n[e]))if(r.containerID===t.containerID)return;n[e].push(t)},o=(e,t)=>{var i;if(!!(null===(i=n[e])||void 0===i?void 0:i.length))n[e]=(n[e]||[]).filter(e=>e.containerID!==t)},a=(e,t)=>{var i,r;if(!!(null===(i=n[e])||void 0===i?void 0:i.length)||!!(null===(r=n["*"])||void 0===r?void 0:r.length))n[e]&&(n[e]=n[e].filter(i=>(i.sendEvent(e,t),!i.once))),n["*"]&&(n["*"]=n["*"].filter(i=>(i.sendEvent(e,t),!i.once)))}},495131:function(e,t,i){"use strict";i.d(t,{O7:function(){return o}}),i(706056);let n=["video","aweme_mix","douyin_playlet_v1","douyin_game_gonglue","douyin_medical_answer","baike_wiki_doc","user","music","aladdin_music","tv","tv_series","movie_new","movie_new_series","cartoon","cartoon_series","documentary","documentary_series","variety","variety_series","related_word","douyin_ai_card","douyin_ai_card_offline","douyin_lightgame2","douyin_lightgamebox","douyin_game"],r=["douyin.doctype_aweme_image","douyin.doctype_aweme_video"],o=(e,t,i)=>t&&!e?r.includes(t):n.includes(e)},765962:function(e,t,i){"use strict";let n;i.d(t,{C:function(){return h}}),i(679308);var r=i(885114),o=i(36757),a=i(499059),l=i(618759),s=i(395823),u=i(587734),d=i(746517),c=i(699651);let f="AUTO_LOGIN_PROMPT_TIMESTAMP";async function h(e,t,i,h){var v;if(void 0===e)return;let _=Number(null===(v=window)||void 0===v?void 0:v.localStorage.getItem("__SELF_AUTO_LOGIN_PROMPT_DELAY"))||3e5;let m=()=>new Date().toDateString();if(e)clearTimeout(n);else if(window.localStorage.getItem(f)!==m()&&!n){if(await (0,o.isHideLoginGuide)(t))return;n=setTimeout(async()=>{let e=m();if(!(a.Le.getConfig(a.gI.IsMiniWin)||(0,l.tq)()&&(0,c.lJ)()&&(null==t?void 0:t.overseaLandingRecommend)||(0,l.tq)()&&(null==t?void 0:t.overseaLandingRecommend)||(0,r.calcExclusive)("auto"))){if(window.localStorage.getItem(f)!==e){if((await (0,s.b)()).isLogin)return;"visible"===document.visibilityState?i({afterCallback:()=>(0,d.default)({success:()=>{null==h||h(),window.location.reload()},enterMethod:"auto",isActive:"0",next:(0,u.pL)(),onClose:h})}):document.addEventListener("visibilitychange",()=>{setTimeout(()=>{i({afterCallback:()=>(0,d.default)({success:()=>{null==h||h(),window.location.reload()},enterMethod:"auto",isActive:"0",next:(0,u.pL)(),onClose:h})})},500)},{once:!0})}(0,r.recordLastLoginGuide)("auto"),window.localStorage.setItem(f,e)}},_)}}},911997:function(e,t,i){"use strict";i.d(t,{R:function(){return C}});var n=i(629686);i(490629),i(362051),i(414931);var r=i(320165),o=i(101199),a=i(469935),l=i.n(a),s=i(48795),u=i(715858),d=i(966473),c=i(638052),f=i(601034),h=i(243225),v=i(365169),_=i(343235),m=i(216699),p=i(176449),g=i(635065),y=i(448458),w=i(987134);let b=e=>{let{item:t,index:i,onHistoryItemClick:n,abTestData:a,supportAiTop1:s,onDeleteHistoryItem:u}=e,[d,c]=(0,o.useState)(!1);return(0,r.jsxs)("div",{"data-text":t.text,"data-uri":t.uri,"data-url":t.url,"data-image-width":t.imageWidth,"data-image-height":t.imageHeight,"data-index":i,"data-forceuseai":t.forceUseAi,"data-boxdetection":JSON.stringify(t.boxDetection),onClick:e=>{n(e)},className:l()(_.default.historyCapsuleItem),children:[(0,r.jsx)("div",{children:(0,r.jsx)(m.Z,{})}),!!(null==a?void 0:a.aiSearchAiInput)&&s&&t.url&&!d&&(0,r.jsx)("img",{src:t.url,alt:"",className:_.default.historyCapsuleItemImage,onError:()=>{c(!0)}}),(0,r.jsx)("span",{className:_.default.historyCapsuleItemText,children:t.text}),(0,r.jsx)("div",{className:l()(_.default.historyCapsuleDeleteButton),"data-text":t.text,onClick:u,children:(0,r.jsx)(g.Z,{})})]},t.text)},C=e=>{let{history:t=[],onHistoryItemClick:i,onDeleteHistoryItem:a,clearHistory:m,customProps:g,abTestData:C}=e,[S,k]=(0,o.useState)(t.length>5),x=S?5:t.length,{supportAiTop1:I}=(0,v.Iq)(e=>{let{supportAiTop1:t}=e;return{supportAiTop1:t}}),L=(0,o.useMemo)(()=>(0,u.y$)(w.nT),[]),E=(0,o.useCallback)(()=>g.isModalVideo?"modal_entrance":g.isInnerUpper||g.isSmoothInnerFeed?"video_detail":(0,f.yW)(),[g.isModalVideo,g.isInnerUpper,g.isSmoothInnerFeed]),T=g.isModalVideo||g.isFullScreenShow||g.isInnerUpper||g.isSmoothInnerFeed?"internal_flow_search_topbar":"search_topbar",P=(0,d.x)(()=>{c.logInstance.sendLog("searchBarElementShow",{enter_from:E(),page_name:(0,f.yW)(),element_name:"history_words_clean_all_button",search_position:T,button_type:"history_words_clean_all"})}),N=(0,d.x)(()=>{c.logInstance.sendLog("searchBarElementShow",{enter_from:E(),page_name:(0,f.yW)(),element_name:"history_words_expand_all_button",search_position:T,button_type:"history_words_expand_all"})});(0,o.useEffect)(()=>{t.length>0&&t.slice(0,x).forEach((e,t)=>{L("historyShow",(0,n._)({enter_from:E(),page_name:(0,f.yW)(),element_name:"history_words_button",words_num:x.toString(),words_position:t,words_content:null==e?void 0:e.text},(null==g?void 0:g.logParams)||{}))})},[x]);let R=()=>{k(!1)};return 0===t.length?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:_.default.titleView,children:[(0,r.jsx)("span",{className:l()(_.default.titleViewText),children:"搜索历史"}),(0,r.jsxs)("div",{ref:P,className:l()(_.default.clearButtonView,_.default.newClearBtnView),onClick:()=>{c.logInstance.sendLog("searchBarElementClick",{enter_from:E(),page_name:(0,f.yW)(),element_name:"history_words_clean_all_button",search_position:T,button_type:"history_words_clean_all"}),m()},children:[(0,r.jsx)(p.Z,{src:h.Z,width:12,height:12,viewBox:"0 0 14 14"}),(0,r.jsx)("span",{className:_.default.clearButton,children:"清除全部"})]})]}),(0,r.jsx)("div",{className:_.default.historyCapsuleContainer,style:{overflowY:S?"unset":"auto"},"data-e2e":"search-history-container",children:t.slice(0,x).map((e,t)=>(0,r.jsx)(b,{item:e,index:t,onHistoryItemClick:i,supportAiTop1:I,abTestData:C,onDeleteHistoryItem:a},`${e.text}_${t}`))}),S&&(0,r.jsx)("div",{className:_.default.dividerView,ref:N,children:(0,r.jsx)(s.Divider,{className:_.default.divider,children:(0,r.jsxs)("div",{className:_.default.dividerText,onClick:()=>{c.logInstance.sendLog("searchBarElementClick",{enter_from:E(),page_name:(0,f.yW)(),element_name:"history_words_expand_all_button",search_position:T,button_type:"history_words_expand_all"}),R()},children:["展开全部 ",(0,r.jsx)(y.Z,{})]})})})]})}},656266:function(e,t,i){"use strict";i.d(t,{q:function(){return u}}),i(490629);var n=i(320165),r=i(101199),o=i(469935),a=i.n(o),l=i(48795),s=i(783198);function u(e){let{type:t="default",src:i,alt:o="",isSpider:u=!1,isSelf:d=!1,showImageInSSR:c=!1,className:f,defaultClassName:h,imgClassName:v,maskConf:_,onMouseEnter:m,onMouseLeave:p,onClick:g,children:y}=e,[w,b]=(0,r.useState)(0),C=i&&(1===w||u||c),{showMask:S,MaskItem:k,className:x}=_||{},I=()=>b(1);return(0,r.useEffect)(()=>{let e=!1,t=new Image;t.onload=function(){if(!e)e=!0,I(),t=null},t.onerror=function(){if(!e)e=!0,b(-1),t=null};let n=setTimeout(()=>{e=!0,I()},3e3);return t.src=i,()=>{t&&(t.onload=null,t.onerror=null),clearTimeout(n)}},[i]),(0,n.jsxs)(l.Avatar,{className:a()(s.default.avatar,s.default[t],"avatar-component-avatar-container",{[f]:f,[s.default.self]:d}),onMouseEnter:m,onMouseLeave:p,"data-e2e":"live-avatar",onClick:g,style:{backgroundColor:"transparent"},hoverMask:S?(0,n.jsx)(k,{className:x}):null,children:[C?(0,n.jsx)("img",{src:i,alt:o,className:a()(s.default.image,v),onError:()=>b(-1),onLoad:I}):(0,n.jsx)("div",{className:a()(s.default[t],s.default.avatarIcon,{[f]:h})}),y]})}},124317:function(e,t,i){"use strict";i.r(t),i.d(t,{DownloadJXEntranceStyle:function(){return j},default:function(){return V}}),i("706056"),i("313036");var n=i("320165"),r=i("101199"),o=i("469935"),a=i.n(o),l=i("339808"),s=i("118616"),u=i("414061"),d=i("601034"),c=i("31992"),f=i("367166"),h=i("5537"),v=i("924223"),_=i("553627"),m=i("776159"),p=i("5026"),g=i("242163"),y=i.p+"media/jxWeakBtnHoverLightBg.e31ce72d119a7941.png",w=i("987686"),b=i("383565"),C=i("251322"),S=i("42261"),k=i("933163"),x=i("827861"),I=i("38058"),L=i("447798"),E=i("46651"),T=i("508250"),P=i("544655"),N=i("229456"),R=i("922232"),A=i("173116"),M=i("892603"),D=i("176621"),O=i("217938"),j={strongV1:"strongV1",strongV2:"strongV2",strongV3:"strongV3",weakV1:"weakV1",weakV2:"weakV2"};let B={strongV1:{bg:w,lightBg:k,hoverBg:L,hoverLightBg:P},strongV2:{bg:b,lightBg:x,hoverBg:E,hoverLightBg:N},strongV3:{bg:C,lightBg:I,hoverBg:T,hoverLightBg:R}};function V(e){let{className:t,uiStyle:i,onClickDownload:o,onClose:w}=e,{pathname:b}=(0,l.a)(),C=()=>{u.emit(u.EVENT.OpenJXModal,{source:"discover_download_entry"}),O.Z.sendLog("discoverDownloadClick",{tab_name:(0,c.zD)(),position:"tab",enter_from_merge:(0,d.yW)()}),null==o||o()};(0,r.useEffect)(()=>{O.Z.sendLog("discoverDownloadShow",{tab_name:(0,c.zD)(),position:"tab",enter_from_merge:(0,d.yW)()})},[b]);let k=e=>{null==e||e.stopPropagation(),null==w||w()};if(["weakV1","weakV2"].includes(i))return(0,n.jsxs)("div",{className:a()(f.default.weakStyle,t,{[f.default.weakStyleV2]:"weakV2"===i}),onClick:C,children:[(0,n.jsx)("img",{src:m,className:f.default.weakBtnBg,draggable:!1},m),(0,n.jsx)("img",{src:p,className:f.default.weakBtnLightBg,draggable:!1},p),(0,n.jsx)("img",{src:g,className:f.default.weakBtnHoverBg,draggable:!1},g),(0,n.jsx)("img",{src:y,className:f.default.weakBtnHoverLightBg,draggable:!1},y),(0,n.jsxs)("div",{className:f.default.header,children:["weakV1"===i&&(0,n.jsx)("img",{className:f.default.logo,src:h,draggable:!1}),(0,n.jsx)("div",{className:f.default.title,children:"下载抖音精选"}),"weakV2"===i&&(0,n.jsx)("div",{className:f.default.arrowContainer,children:(0,n.jsx)(s.Z,{className:f.default.arrow,src:M.Z,width:21,height:21,viewBox:"0 0 21 21"})})]}),(0,n.jsx)(s.Z,{className:f.default.close,onClick:k,src:A.Z,width:18,height:18,viewBox:"0 0 18 18"}),(0,n.jsx)(s.Z,{className:f.default.lightClose,onClick:k,src:D.Z,width:18,height:18,viewBox:"0 0 18 18"})]});if("strongV3"===i){let e=B.strongV3;return(0,n.jsxs)("div",{className:a()(f.default.strongStyle,f.default.strongStyleV3,t),children:[(0,n.jsx)("img",{src:S,className:f.default.strongDesc,draggable:!1},S),(0,n.jsx)("img",{src:e.bg,className:f.default.strongBtnBg,draggable:!1},e.bg),(0,n.jsx)("img",{src:e.lightBg,className:f.default.strongBtnLightBg,draggable:!1},e.lightBg),(0,n.jsx)("img",{src:e.hoverBg,className:f.default.strongBtnHoverBg,draggable:!1},e.hoverBg),(0,n.jsx)("img",{src:e.hoverLightBg,className:f.default.strongBtnHoverLightBg,draggable:!1},e.hoverLightBg),(0,n.jsx)("div",{className:f.default.description,children:"抖音精选看宝藏视频"}),(0,n.jsx)("div",{className:f.default.clickArea,onClick:C,children:(0,n.jsx)("div",{className:f.default.downloadBtn,children:"下载 APP"})}),(0,n.jsx)("div",{className:f.default.close,onClick:k,children:(0,n.jsx)(s.Z,{src:A.Z,width:18,height:18,viewBox:"0 0 18 18"})}),(0,n.jsx)("div",{className:f.default.lightClose,onClick:k,children:(0,n.jsx)(s.Z,{src:D.Z,width:18,height:18,viewBox:"0 0 18 18"})})]})}let x=B[i]||B.strongV1;return(0,n.jsxs)("div",{className:a()(f.default.strongStyle,t,{[f.default.strongStyleV2]:"strongV2"===i}),children:[(0,n.jsx)("img",{src:x.bg,className:f.default.strongBtnBg,draggable:!1},x.bg),(0,n.jsx)("img",{src:x.lightBg,className:f.default.strongBtnLightBg,draggable:!1},x.lightBg),(0,n.jsx)("img",{src:x.hoverBg,className:f.default.strongBtnHoverBg,draggable:!1},x.hoverBg),(0,n.jsx)("img",{src:x.hoverLightBg,className:f.default.strongBtnHoverLightBg,draggable:!1},x.hoverLightBg),(0,n.jsxs)("div",{className:f.default.header,children:[(0,n.jsx)("img",{className:f.default.logo,src:h,draggable:!1}),(0,n.jsxs)("div",{className:f.default.headerDesc,children:[(0,n.jsx)(s.Z,{className:f.default.title,src:v.Z,width:60,height:14,viewBox:"0 0 58 14"}),(0,n.jsx)(s.Z,{className:f.default.lightTitle,src:_.Z,width:60,height:14,viewBox:"0 0 58 14"})]})]}),(0,n.jsx)("div",{className:f.default.description,children:"手机随时看更方便"}),(0,n.jsx)("div",{className:f.default.clickArea,onClick:C,children:(0,n.jsx)("div",{className:f.default.downloadBtn,children:"下载 APP"})}),(0,n.jsx)("div",{className:f.default.close,onClick:k,children:(0,n.jsx)(s.Z,{src:A.Z,width:18,height:18,viewBox:"0 0 18 18"})}),(0,n.jsx)("div",{className:f.default.lightClose,onClick:k,children:(0,n.jsx)(s.Z,{src:D.Z,width:18,height:18,viewBox:"0 0 18 18"})})]})}},373647:function(e,t,i){"use strict";var n=i(629686),r=i(402748);i(490629);var o=i(320165),a=i(101199),l=i(4221),s=i(176449),u=i(574813);t.Z=function(e){let{onClick:t,position:i}=e,[d,c]=(0,a.useState)(!0);return(0,o.jsxs)("div",{className:l.default.fingerPointContainer,onClick:t,onClickCapture:t,style:(0,r._)((0,n._)({},i),{display:d?"block":"none"}),children:[(0,o.jsx)("div",{className:l.default.dot}),(0,o.jsx)("div",{className:l.default.finger,onAnimationEnd:()=>{c(!1)},children:(0,o.jsx)(s.Z,{src:u.Z,width:24,height:24,viewBox:"0 0 24 24"})})]})}},797705:function(e,t,i){"use strict";i.d(t,{ER:function(){return o},Hs:function(){return r},OK:function(){return n}});var n={following:0,0:"following",follower:1,1:"follower"},r={HomePage:0,0:"HomePage",PersonalPanel:1,1:"PersonalPanel"},o={recommend:4,4:"recommend",latest:1,1:"latest",earliest:3,3:"earliest"}},587098:function(e,t,i){"use strict";i(490629);var n=i(320165),r=i(101199),o=i(469935),a=i.n(o),l=i(383280),s=i(118616),u=i(600767),d=i(469308),c=i(685018);let f=(0,r.memo)(e=>{let{className:t,isShowProps:i,secUid:o,onMouseEnter:f,onMouseLeave:h,isOriginSize:v}=e,[_,m]=(0,r.useState)(""),[p,g]=(0,r.useState)(void 0),y=(0,r.useCallback)(async()=>{g(void 0);let e="douyin_pc",t=await (0,u.ep)(e,{schema:`object_id=${e}&schema_type=56&share_scene=aweme_user_order_list&enter_from=douyin_pc`});if((null==t?void 0:t.statusCode)===0){let{qrcodeUrl:e}=t||{};m(e),g(!1)}else g(!0)},[o]),w=(0,r.useCallback)(()=>{g(!0)},[]);return(0,r.useEffect)(()=>{!_&&i&&y()},[i,_]),(0,n.jsx)("div",{className:a()(t,c.default.container,{[c.default.isShow]:i}),onMouseEnter:f,onMouseLeave:h,children:(0,n.jsx)("div",{className:a()(c.default.qrCodeContainer,{[c.default.originSize]:v}),children:(0,n.jsxs)("div",{className:c.default.qrCodePanel,children:[void 0===p&&(0,n.jsx)(l.g,{}),p&&(0,n.jsxs)("div",{className:a()(c.default.reloadBtn,c.default.smallBtnGrayContainer,c.default.qrCodePanel),onClick:()=>{y()},children:[(0,n.jsx)("span",{children:"抖音码获取失败"}),(0,n.jsxs)("div",{className:c.default.refresh,children:[(0,n.jsx)(s.Z,{src:d.Z,width:13,height:12,viewBox:"0 0 14 13"}),"刷新"]})]}),!p&&_&&(0,n.jsx)("img",{className:c.default.qrCodeImg,src:_,onError:w})]})})})});t.Z=f},418160:function(e,t,i){"use strict";i.d(t,{E:function(){return v}}),i(490629),i(679308);var n=i(101199),r=i(528937),o=i(66948),a=i(638052),l=i(995898),s=i(601034),u=i(414061),d=i(967641),c=i(579827),f=i(87897);let h=e=>{var t,i,n,r,o,a,l,s,u,d,f;return e&&(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.webRid)?{avatar:null===(r=e.data)||void 0===r?void 0:null===(n=r.avatar)||void 0===n?void 0:null===(i=n.url_list)||void 0===i?void 0:i[0],cover:null===(l=e.data)||void 0===l?void 0:null===(a=l.cover)||void 0===a?void 0:null===(o=a.url_list)||void 0===o?void 0:o[0],title:null===(s=e.data)||void 0===s?void 0:s.title,roomId:null===(u=e.data)||void 0===u?void 0:u.webRid,type:c.i.CarnivalPushLive,anchorId:null===(d=e.data)||void 0===d?void 0:d.userId,text:(null==e?void 0:null===(f=e.data)||void 0===f?void 0:f.subTitle)||"正在播出"}:null},v=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,f._)();let[t,i]=(0,n.useState)(null),c=(0,n.useRef)(!0),v=(0,n.useRef)(),_=(0,n.useRef)(),m=(0,n.useRef)(),p=(0,n.useRef)(),g=async()=>{let t=await r.get({key:o.TccKey.CarnivalConfig,defaultValue:o.TCC_DEFAULT_VALUE_MAP.get(o.TccKey.CarnivalConfig)});(null==t?void 0:t.isOpenCarnival)&&e&&(clearTimeout(v.current),v.current=setTimeout(()=>{w((null==t?void 0:t.loopDuration)||9e5)},(null==t?void 0:t.delayDuration)||3e4))},y=()=>"live.douyin.com"===location.host&&location.pathname&&"/"!==location.pathname,w=async function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:9e5;if(!y()&&!(0,l.yk)(location.pathname)){var n;e=await (0,d.wn)(),c.current&&(null==e?void 0:e.statusCode)===0&&(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.webRid)&&i(e)}if(clearTimeout(_.current),(null==e?void 0:e.pushControlCode)!==1)_.current=setTimeout(()=>{w(t)},t)};(0,n.useEffect)(()=>(c.current=!0,g(),()=>{clearTimeout(_.current),clearTimeout(v.current),c.current=!1}),[e]);let b=(0,n.useCallback)(()=>{var e;if(!t||m.current)return;m.current=!0,p.current=!1;let{roomId:i,userId:n}=(null==t?void 0:t.data)||{};a.logInstance.sendLog("innerPushShow",{enter_from:(0,s.yW)(),room_id:i,anchor_id:n,push_id:"imc",type:"carnival"}),(0,d.IP)({anchorId:null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.userId,pushEvent:"show"})},[t]),C=(0,n.useCallback)(()=>{i(null),m.current=!1;let{roomId:e,userId:n}=(null==t?void 0:t.data)||{};n&&!p.current&&((0,d.IP)({anchorId:n,pushEvent:"close"}),a.logInstance.sendLog("innerPushClose",{enter_from:(0,s.yW)(),room_id:e,anchor_id:n,push_id:"imc",type:"carnival"}))},[t]),S=(0,n.useCallback)(()=>{var e,i;if(!(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.webRid))return;m.current=!1,p.current=!0;let{roomId:n,userId:r}=(null==t?void 0:t.data)||{},o=(0,s.yW)();a.logInstance.sendLog("innerPushClick",{enter_from:o,room_id:n,anchor_id:r,click_position:"watch",push_id:"imc",type:"carnival"}),(0,d.IP)({anchorId:r,pushEvent:"enter"}),u.emit(u.EVENT.videoPause,"CarnivalPushLive_handleClick"),window.open(`https://live.douyin.com/${null==t?void 0:null===(i=t.data)||void 0===i?void 0:i.webRid}?enter_from_merge=web_push&enter_method=in_push&push_id=imc`)},[t]);return{liveInfo:(0,n.useMemo)(()=>h(t),[t]),onShow:b,onClose:C,onClick:S}}},325268:function(e,t,i){"use strict";i.d(t,{U:function(){return p}});var n=i(629686),r=i(402748);i(490629),i(14275),i(759943);var o=i(101199),a=i(771410),l=i(601034),s=i(499059),u=i(103680),d=i(618759),c=i(332009),f=i(963964),h=i(612582),v=i(396868),_=i(959518);let m=(e,t)=>{let i=(0,_.G)(e);if(a.Z.report("continued_broadcast_receive_sync_message",{scene:null==i?void 0:i.scene,stage:"receive_message",is_start:1,enter_from:(0,l.yW)(),sync_play_src:"lan",room_id:null==i?void 0:i.roomId,app_room_id:null==i?void 0:i.appRoomId,u_display_id:null==i?void 0:i.uDisplayId,message_from:null==i?void 0:i.messageFrom,enter_method:null==i?void 0:i.enterMethod,enter_from_merge:null==i?void 0:i.enterFromMerge,previous_page:null==i?void 0:i.previousPage,enter_from_on_cellphone:null==i?void 0:i.enterFromOnCellphone,previous_page_on_cellphone:null==i?void 0:i.previousPageOnCellphone,is_landscape_status_on_cellphone:null==i?void 0:i.isLandscapeStatusOnCellphone,enter_method_on_cellphone:null==i?void 0:i.enterMethodOnCellphone,from_user_id:null==i?void 0:i.fromUserId,from_device_id:null==i?void 0:i.fromDeviceId,from_app_id:null==i?void 0:i.fromAppId,episode_id:null==i?void 0:i.episodeId,item_id:null==i?void 0:i.itemId,play_time:null==i?void 0:i.playTime,record_type:null==i?void 0:i.recordType,item_duration:null==i?void 0:i.itemDuration,item_type:null==i?void 0:i.itemType,url_source:null==i?void 0:i.urlSource,from_verify_code:t?1:0}),!!i)(0,_.h)(i)},p=()=>{let[e,t]=(0,o.useState)(null),i=(0,o.useRef)(null),{attemptOpen:p,executeClose:g}=(0,f.B)({popName:"局域网续播验证",onOpen:()=>{var e;let r=c.s.getIsPageFullscreen(),o=(null===(e=s.Le.getConfig(s.gI.IsInModalVideo))||void 0===e?void 0:e.isInModal)||!1;(r||o)&&v.F.info("请先退出全屏再输入验证码"),t((0,n._)({},i.current)),h.YY.replaceCurrentTask({priority:h.T0.LanMulticastVerifyPriority,callback:()=>{}},{replaceEvenAlreadyExist:!0,removeIfAlreadyInQueue:!0})},onClose:()=>{}}),y=(0,o.useCallback)(e=>{var r;let{from:o}=e;if(!i.current)return;let s="success"===o;t(null),u.invoke("sendMulticastResult",(0,n._)({message:o},s?{schema:null===(r=i.current)||void 0===r?void 0:r.schema}:{},i.current)),i.current=null,a.Z.report("pc_continued_broadcast_verification_code_input_result",{enter_from:(0,l.yW)(),rusult_type:s?"1":"0",fail_reason:s?void 0:o}),g()},[g]);return(0,o.useEffect)(()=>()=>{i.current&&y({from:"pageUnload"})},[]),(0,o.useEffect)(()=>(0,d.DT)()?u.on("showLanMulticastPrompt",(e,t)=>{let o=(0,_.G)(t.schema);if(!o)return;i.current&&y({from:"replaced"});let a=/iphone/i.test((null==t?void 0:t.fromDeviceModel)||"");i.current=(0,r._)((0,n._)({},t),{deviceName:t.fromDeviceName,deviceModel:t.fromDeviceModel,playProgress:o.playTime,duration:a?Math.floor(o.itemDuration/1e3):o.itemDuration,scene:o.scene}),p()}):()=>{},[p,y]),(0,o.useEffect)(()=>{var e;return(0,d.DT)()&&(null===(e=window.TTE_ENV)||void 0===e?void 0:e.windowName)==="MAIN_WINDOW"?u.on("handleLanMulticast",(e,t)=>{i.current&&y({from:"interrupted"}),document.activeElement instanceof HTMLElement&&document.activeElement.blur(),m(null==t?void 0:t.schema,null==t?void 0:t.fromVerifyCode)}):()=>{}},[]),{lanVerifyInfo:e,onClose:y}}},422870:function(e,t,i){"use strict";i.d(t,{H:function(){return c}});var n=i(629686),r=i(402748);i(490629);var o=i(101199),a=i(414061),l=i(601034),s=i(638052),u=i(579827);let d=e=>e?(0,r._)((0,n._)({},e),{type:u.i.NoticePush}):null,c=()=>{let[e,t]=(0,o.useState)();(0,o.useEffect)(()=>{let e=a.listen(a.EVENT.webNoticePushMessage,e=>{t(e)});return()=>{e()}},[]);let i=(0,o.useCallback)(()=>{let{awemeId:t,fromUserId:i,groupId:n}=e||{},r=(0,l.yW)();s.logInstance.sendLog("innerPushShow",{enter_from:r,push_id:n,author_id:i,group_id:t,type:"select_recom"})},[e]),n=(0,o.useCallback)(()=>{let{awemeId:t,fromUserId:i,groupId:n,followStatus:r}=e||{},o=(0,l.yW)();s.logInstance.sendLog("innerPushClick",{enter_from:o,push_id:n,author_id:i,group_id:t,type:"select_recom"}),a.emit(a.EVENT.openNoticeAwemeModal,{awemeId:t,logParams:{enter_from:o,personal_relation:String(r),interact_type:"recommend_video"}})},[e]),r=(0,o.useCallback)(()=>{let{awemeId:i,fromUserId:n,groupId:r}=e||{},o=(0,l.yW)();s.logInstance.sendLog("innerPushClose",{enter_from:o,push_id:r,author_id:n,group_id:i,type:"select_recom"}),t(null)},[e]);return{noticeInfo:(0,o.useMemo)(()=>d(e),[e]),onShow:i,onClick:n,onClose:r}}},51664:function(e,t,i){"use strict";i.d(t,{v:function(){return _}});var n=i(629686),r=i(402748);i(490629);var o=i(101199),a=i(121998),l=i(414061),s=i(601034),u=i(326367),d=i(638052),c=i(967641),f=i(823093),h=i(579827);let v=e=>e?(0,r._)((0,n._)({},e),{avatar:e.imageUrl,type:h.i.RecommendLivePush}):null,_=()=>{let[e,t]=(0,o.useState)(null);(0,o.useEffect)(()=>{let e=l.listen(l.EVENT.RecommendLivePushRequest,async()=>{let e=await (0,c.Ak)();0===e.statusCode&&e.data&&e.data.openUrl&&t(e.data)});return()=>{e()}},[]);let i=(0,o.useCallback)(()=>{let{groupId:t,id:i,extra:n}=e||{},r=(0,s.yW)();d.logInstance.sendLog("appointmentPushShow",{enter_from:r,room_id:null==n?void 0:n.room_id,anchor_id:null==n?void 0:n.author_id}),(0,f.on)({rid64:i,group_id_str:String(t)})},[e]),n=(0,o.useCallback)(()=>{let{extra:t,openUrl:i,groupId:n,id:r}=e||{},o=(0,s.yW)();d.logInstance.sendLog("appointmentPushClick",{enter_from:o,room_id:null==t?void 0:t.room_id,anchor_id:null==t?void 0:t.author_id}),l.emit(l.EVENT.videoPause,"RecommendPushLive_handleClick"),(0,f.Mr)({rid64:r,group_id_str:n});let c=a.stringifyUrl({url:i||"",query:{enter_from_merge:"push",enter_method:"inner_push"}});window.open(c,(0,u.f)()?"_self":"_blank")},[e]),r=(0,o.useCallback)(()=>{t(null)},[]);return{recommendLiveInfo:(0,o.useMemo)(()=>v(e),[e]),onShow:i,onClick:n,onClose:r}}},789914:function(e,t,i){"use strict";i.d(t,{a:function(){return f}}),i(490629);var n=i(320165),r=i(101199),o=i(59850),a=i(14327),l=i(280647),s=i(601034),u=i(414061),d=i(350746),c=i(276604);function f(e){let{pathname:t,isAiSearchShowContext:i,setAiSearchShowContext:f,abTestData:h,isDark:v,userInfo:_,userDispatch:m}=e,[p,g]=(0,r.useState)(!1),y=f?i:p,w=(0,r.useRef)(""),b=(0,r.useRef)(Date.now()),[C,S]=(0,r.useState)(!1),[k,x]=(0,r.useState)([]),[I,L]=(0,r.useState)(0),E=(0,o.Z)(e=>{if(y){let t="visible"===document.visibilityState;e&&(t=!t);let i=Date.now()-b.current;d.Z.sendLog("aiSearchDuration",{enter_from_merge:(0,s.yW)(),is_visible:t?"1":"0",duration:i}),d.Z.sendLog("searchAiPageStay",{duration:i,enter_from:(0,s.yW)(),enter_from_second:"right_search",page_name:"ai_chat",enter_type:"full_screen"})}}),{run:T,cancel:P}=(0,a.Z)(E,1e4,!1),N=e=>{f?f(e):g(e),e?T():(E(),P()),e&&y&&u.emit(u.EVENT.requestAiSearchGlobalHighlight)};(0,l.Z)(()=>{y?(d.Z.sendLog("aiSearchSidebarShow",{enter_from_merge:(0,s.yW)()}),d.Z.sendLog("searchAiPageShow",{enter_from:(0,s.yW)(),enter_from_second:"right_search",page_name:"ai_chat",enter_type:"full_screen"}),b.current=Date.now()):(d.Z.sendLog("aiSearchSidebarClose",{enter_from_merge:(0,s.yW)(),close_method:w.current}),d.Z.sendLog("aiSearchDuration",{enter_from_merge:(0,s.yW)(),is_visible:"1",duration:Date.now()-b.current}))},[y]),(0,r.useEffect)(()=>{let e=()=>{E()},t=()=>{E(!0),b.current=Date.now()};return window.addEventListener("beforeunload",e),document.addEventListener("visibilitychange",t),()=>{window.removeEventListener("beforeunload",e),document.removeEventListener("visibilitychange",t)}},[]),(0,l.Z)(()=>{N(!1),w.current="click_channel"},[t]),(0,r.useEffect)(()=>{let e=u.listen(u.EVENT.openImageViewer,e=>{let{imgs:t,imgIndex:i}=e;S(!0),x(t),L(i||0)});return()=>{e()}},[]);let R=k.map(e=>({imageList:[{originUrl:{urlList:[e]}}]}));return{isAiSearchShow:y,setAiSearchShow:N,aiSearchImageViewer:C&&(0,n.jsx)(c.O,{hitCommentExperience:!0,commentList:R,onClose:()=>{S(!1)},originUrl:R[I].imageList[0].originUrl.urlList})}}},239183:function(e,t,i){"use strict";i.d(t,{Qj:function(){return C},sv:function(){return k},uV:function(){return S}});var n=i(320165),r=i(101199),o=i(469935),a=i.n(o),l=i(426038),s=i(391302),u=i(46892),d=i(103680),c=i(414061),f=i(759894),h=i(8013),v=i(896138),_=i(409250),m=i(492593),p=i(223663),g=i(176449),y=i(234150),w=i(124305),b=i(350746);function C(e){let{iconSvg:t,text:i,url:r,onMouseEnter:o,onMouseLeave:l,className:s,onClick:u}=e;return(0,n.jsxs)(y.a,{rel:"noopener noreferrer",href:r,className:a()(s,m.default.actionButtonContainer),target:"_blank",onMouseEnter:o,onMouseLeave:l,onClick:e=>{!r&&e.preventDefault(),null==u||u(e)},children:[(0,n.jsx)(g.Z,{width:24,height:24,src:t,viewBox:"0 0 24 24"}),(0,n.jsx)("p",{children:i})]})}function S(e){let{children:t,isSpa:i,className:r,hide:o}=e,a=(0,s.sF)();return(0,n.jsx)(y.a,{target:"_self",className:r,rel:"noopener noreferrer",href:a?"javascript:void(0)":(0,u.HC)("self","enter_method=personal_panel"),spa:i,onClick:e=>{if(null==o||o(),a){var t;return null==e||null===(t=e.preventDefault)||void 0===t||t.call(e),d.asyncCall("navigate",{url:"https:"+(0,u.HC)("self","showTab=post&enter_method=personal_panel")})}i&&c.emit(c.EVENT.userChangeTab,{tab:"post"})},children:t})}function k(e){let{hide:t,abtest:i}=e,o=(0,r.useCallback)(()=>{null==t||t(),(0,w.f)(()=>{b.Z.sendLog("clickLogOut",{enter_from:(0,f.vM)()}),b.Z.sendLog("personalPanelClick",{enter_from:(0,f.vM)(),menu:"退出登录"}),(0,h.t_)(l.SessionStorageKeys.PlayerPlaybackratio,1),(0,v.JB)(),(0,v.kc)(location.href),_.Q.setItem("login_time",Date.now(),1/0)})},[t,i]);return(0,n.jsxs)("div",{className:a()(m.default.actionButtonContainer,m.default.logoutBtn),onClick:o,children:[(0,n.jsx)(g.Z,{width:24,height:24,src:p.Z,viewBox:"0 0 24 24"}),(0,n.jsx)("p",{children:"退出登录"})]})}},856165:function(e,t,i){"use strict";i.d(t,{Q:function(){return l}}),i(706056);var n=i(806217),r=i(339808),o=i(335924),a=i(103680);function l(e){let t=(0,r.u)(),i=Number((0,o.Rs)("is_flip"));return(0,n.Z)(()=>{var n,r;if(document.referrer.includes("/live/")||1===i){a.invoke("MAIN_WINDOW_MOVE_TOP");return}if((null==e?void 0:e.liveInnerFeed)&&(null===(n=window)||void 0===n?void 0:n.__LIVE_INNER_FEED_SLIDE__)){isInLiveChildRoute(null===(r=location)||void 0===r?void 0:r.pathname)?t(-1):a.invoke("MAIN_WINDOW_MOVE_TOP");try{window.__LIVE_INNER_FEED_SLIDE__=!1}catch(e){}return}a.invoke("NAVIGATION_GO_BACK")})}},362198:function(e,t,i){"use strict";var n=i(624508);t.Z=new n.h({clickSmallWindowEntrance:{eventName:"click_small_window_entrance",params:{enter_from:"",enter_from_merge:"",action:0,group_id:"",click_method:"",player_display_mode:""}},smallWindowModel:{eventName:"small_window_model",params:{enter_from:"",enter_method:0,group_id:"",player_display_mode:""}},wallpaperNotifyShow:{eventName:"wallpaper_notify_show",params:{}},lagNotifyShow:{eventName:"lag_notify_show",params:{}},enter_wallpaper_setting:{eventName:"enter_wallpaper_setting",params:{enter_from:"",enter_method:""}},wallpaper_board_show:{eventName:"wallpaper_board_show",params:{}},add_to_desktop_show:{eventName:"add_to_desktop_show",params:{enter_from:"",type:"",channel_id:"",ug_channel_id:""}},add_to_desktop_click:{eventName:"add_to_desktop_click",params:{enter_from:"",type:"",channel_id:"",ug_channel_id:""}},add_to_desktop_close:{eventName:"add_to_desktop_close",params:{type:""}},minimize_small_window_panel_click:{eventName:"minimize_small_window_panel_click",params:{enter_from:"",action:0}},general_window_ops:{eventName:"general_window_ops",params:{enter_from:"",action:""}},minimize_app:{eventName:"minimize_app",params:{action:""}},view_more_wallpaper_show:{eventName:"view_more_wallpaper_show",params:{}},view_more_wallpaper_click:{eventName:"view_more_wallpaper_click",params:{}},wallpaper_click:{eventName:"wallpaper_click",params:{aweme_type:0,enter_from:"",tab_name:""}}})},626994:function(e,t,i){"use strict";i.d(t,{d:function(){return v}}),i(14275),i(759943),i(706056);var n=i(101199),r=i(423629),o=i(335924),a=i(414061),l=i(495394),s=i(352871);let u={PLAY_PROGRESS:30,CONTINUE_ALLOW:600,VIDEO_FILTER:[[60,300,60],[300,600,100],[600,-1,150]]},d=()=>Math.floor(Date.now()/1e3),c=()=>"insert"===(0,o.Rs)("feed_operation"),f=e=>{var t;let{awemeInfo:i}=e;i.continationInfo={playProgress:e.playProgress,urlSource:"pc_continued"},a.emit(a.EVENT.webFeedPushMessage,{userId:null===(t=i.authorInfo)||void 0===t?void 0:t.uid,itemId:i.awemeId,itemType:i.awemeType,playTime:e.playProgress,cover:i.video.cover,fromDeviceId:"",fromDeviceType:e.toClient,recordType:e.recordType,awemeInfo:i})},h=e=>/(live\.douyin\.com\/\d+|douyin\.com\/root\/live\/\d+)/.test(e);function v(e){let{userInfo:t}=e,i=(0,s.U7)(),o=(0,n.useCallback)(async()=>{var e,n,o,a,c,v;if(!i||![r.b.Default,r.b.Open].includes(null!==(o=null==t?void 0:null===(e=t.info)||void 0===e?void 0:e.continuationState)&&void 0!==o?o:0))return;let _=await (0,l.mZ)();if(_.liveMulticastInfo){if(h(location.href))return;let{recordType:e,createTime:i}=_.liveMulticastInfo,n=(0,s.Ci)({uid:t.info.uid});if(e===Number(r.ns.manual)){f({awemeInfo:_.liveMulticastInfo.awemeInfo,recordType:_.liveMulticastInfo.recordType});return}if(e===Number(r.ns.auto)&&n&&(f({awemeInfo:_.liveMulticastInfo.awemeInfo,recordType:_.liveMulticastInfo.recordType}),1))return}if(0===_.statusCode&&(null===(n=_.multicastList)||void 0===n?void 0:n.length)>0){let e=_.multicastList,i=_.multicastList[0];if(i.recordType===Number(r.ns.manual)&&(null==i?void 0:null===(c=i.awemeInfo)||void 0===c?void 0:null===(a=c.chargeInfo)||void 0===a?void 0:a.is_charge_content)){f(i);return}if(i=null,!(0,s.Ci)({uid:null==t?void 0:null===(v=t.info)||void 0===v?void 0:v.uid}))return;e.forEach(e=>{var t,n,o,a,l;if(i||e.recordType!==Number(r.ns.auto)||(null==e?void 0:null===(n=e.awemeInfo)||void 0===n?void 0:null===(t=n.chargeInfo)||void 0===t?void 0:t.is_charge_content)||(null!==(l=null==e?void 0:e.playProgress)&&void 0!==l?l:0)=u.CONTINUE_ALLOW)return;let s=Math.floor((null==e?void 0:null===(a=e.awemeInfo)||void 0===a?void 0:null===(o=a.video)||void 0===o?void 0:o.duration)/1e3);if(!(s>0))return;let c=s-e.playProgress;u.VIDEO_FILTER.forEach(t=>{(-1===t[0]||s>t[0])&&(-1===t[1]||s<=t[1])&&(-1===t[2]||c>t[2])&&(i=e)})}),i&&f(i)}},[i,i,t]);(0,n.useEffect)(()=>{t.isLogin&&!c()&&o()},[t.isLogin])}},162978:function(e,t,i){"use strict";i.d(t,{a:function(){return u}}),i(490629);var n=i(101199),r=i(390063),o=i.n(r),a=i(618759),l=i(915821),s=i(103680);function u(){let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{(async()=>{var e;let i=null!==(e=(0,a.FJ)().awemePcClient)&&void 0!==e?e:"";if((0,l.y)(i,">=","1.7.0")){let{data:e}=await s.invoke("WINDOW_IS_FULL");t(e)}})()},[]),(0,n.useEffect)(()=>{let e=s.on("ON_MAXIMIZE_CHANGE",(e,i)=>{let{data:n}=i;t(n)});return()=>{o()(e)&&(null==e||e())}},[]),{isMaximized:e}}},443240:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}}),i(490629),i(228983),i(759943),i(679308),i(431723);var n=i(101199),r=i(426038),o=i(803885),a=i(409250),l=i(440863),s=i(265950),u=i(350746),d=i(444631);let c=()=>{let e=a.Q.getItem({sKey:r.CookieKeys.PublishBadgeShowInfo});!e&&(e=`0,0,0,${Date.now()}`,a.Q.setItem(r.CookieKeys.PublishBadgeShowInfo,e));let[t,i,n,o]=e.split(",");return{isPublishHovered:t,isNewVideoClicked:i,isPostDataClicked:n,publishGuideInitTime:o}},f=async()=>{let e=[(0,o.Vk)({highlight_type:s.WebGuideToCreatorScene.PublishAndNewVideo}),(0,o.Vk)({highlight_type:s.WebGuideToCreatorScene.PublishAndPost})],[t,i]=await Promise.allSettled(e),n="fulfilled"===t.status&&t.value.isHighlight;return{publishAndNewVideoHighlight:n,publishAndPostlight:"fulfilled"===i.status&&i.value.isHighlight}};function h(e){let{isLogin:t}=e,[i,o]=(0,n.useState)(!1),[s,h]=(0,n.useState)(!1),[v,_]=(0,n.useState)(!1),[m,p]=(0,n.useState)(!1),g=(0,n.useRef)({isPublishGuideShow:!0,isNewVideoGuideShow:!0,isPostDataGuideShow:!0});(0,n.useEffect)(()=>{!(0,d.D)()&&p(!0!==a.Q.getItem({sKey:r.CookieKeys.PostDropdownItemsCapcut}))},[]),(0,n.useEffect)(()=>{if(!t)return;let{isPublishHovered:e,isNewVideoClicked:i,isPostDataClicked:n,publishGuideInitTime:r}=c(),a=!!r&&Date.now()-Number(r)>=2592e5;if((Number(e)||a)&&Number(i)&&Number(n))return;(Number(e)||a)&&(g.current.isPublishGuideShow=!1),Number(i)&&(g.current.isNewVideoGuideShow=!1),Number(n)&&(g.current.isPostDataGuideShow=!1);let s=!1;return l.H(()=>{(async()=>{let{publishAndNewVideoHighlight:e,publishAndPostlight:t}=await f()||{};!s&&(o(g.current.isPublishGuideShow&&(e||t)),h(g.current.isNewVideoGuideShow&&e),_(g.current.isPostDataGuideShow&&t))})()}),()=>{s=!0}},[t]);let y=(0,n.useCallback)(()=>{var e;if(!i)return;o(!1);let t=null!==(e=a.Q.getItem({sKey:r.CookieKeys.PublishBadgeShowInfo}))&&void 0!==e?e:"0,0,0,0";a.Q.setItem(r.CookieKeys.PublishBadgeShowInfo,`1,${t.slice(2)}`)},[i]),w=(0,n.useCallback)(()=>{var e;if(!s)return;h(!1);let t=null!==(e=a.Q.getItem({sKey:r.CookieKeys.PublishBadgeShowInfo}))&&void 0!==e?e:"0,0,0,0";a.Q.setItem(r.CookieKeys.PublishBadgeShowInfo,`${t.slice(0,1)},1,${t.slice(4)}`)},[s]),b=(0,n.useCallback)(()=>{var e;if(!v)return;_(!1);let t=null!==(e=a.Q.getItem({sKey:r.CookieKeys.PublishBadgeShowInfo}))&&void 0!==e?e:"0,0,0,0";a.Q.setItem(r.CookieKeys.PublishBadgeShowInfo,`${t.slice(0,3)},1,${t.slice(6)}`)},[v]),C=(0,n.useCallback)(()=>{u.Z.sendLog("jianying_publish_entrance_click",{badge:m?1:0}),a.Q.setItem(r.CookieKeys.PostDropdownItemsCapcut,!0,1/0),p(!1)},[m]);return(0,n.useEffect)(()=>{if(i){var e;let t=null!==(e=a.Q.getItem({sKey:r.CookieKeys.PublishBadgeShowInfo}))&&void 0!==e?e:"0,0,0,0";a.Q.setItem(r.CookieKeys.PublishBadgeShowInfo,`${t.slice(0,5)},${Date.now()}`),u.Z.sendLog("publishNotifyShow",{})}},[i]),{isPublishGuideShow:i,isNewVideoGuideShow:s,isPostDataGuideShow:v,isCapcutGuideShow:m,handlePublishHovered:y,handleNewVideoClicked:w,handlePostDataClick:b,handleCapcutClick:C}}},764096:function(e,t,i){"use strict";i.d(t,{T:function(){return z}});var n=i("629686"),r=i("402748");i("490629"),i("374285"),i("566071"),i("759943"),i("414931"),i("14275"),i("240148"),i("968336"),i("706056"),i("112459"),i("228983");var o=i("121998"),a=i("101199"),l=i("38578"),s=i("656245"),u=i("205082"),d=i("231196"),c=i("56924"),f=i("139402"),h=i("295207"),v=i("655304"),_=i("55938"),m=i("515730"),p=i("335924"),g=i("810069"),y=i("618759"),w=i("995898"),b=i("601034"),C=i("499059"),S=i("409250"),k=i("442022"),x=i("19277"),I=i("449716"),L=i("661444"),E=i("237869"),T=i("991742"),P=i("414061"),N=i("532375"),R=i("426038"),A=i("603018"),M=i("326367");let D=(e,t)=>{let i=window.__test_yestoday__;return e=i?new Date(i):e,t.getFullYear()>e.getFullYear()||t.getMonth()>e.getMonth()||t.getDate()>e.getDate()},O=(e,t,i)=>{var n,r,o;let a=null!==(r=null!==(n=(0,p.Rs)("enter_method"))&&void 0!==n?n:t&&!i?"default_landing":void 0)&&void 0!==r?r:"other";return"personal_homepage"===e&&(a=["personal_panel","left_entrance","top_bar","personal_homepage_like","personal_homepage_collect","personal_homepage_history"].includes(a)?a:""),"ai_search"===e&&(a=(null===(o=location.search)||void 0===o?void 0:o.includes("isPopup"))?"click_search_window":"tab_click"),a};var j=i("705401"),B=i("114544"),V=i("192414"),F=i("350746"),U=i("536065"),W=i("193143"),H=i("911159"),G=i("853344");let K=!1,{pageNameMap:q,ocpcReportReg:Z}=u,z=e=>{let{userInfo:t,redirectFrom:i,banUseCopyLog:u=!1,abTestData:z,pageLogId:Q}=e,[Y,$]=(0,V.x)({banUseCopyLog:u}),J=(0,a.useRef)(t),X=(0,l.k)(),ee=(0,a.useRef)(""),et=(0,a.useRef)(!1),ei=(0,a.useRef)(!1),{id:en}=(null===s.U||void 0===s.U?void 0:(0,s.U)())||{};(0,d.s)(),(0,B.Z)();let er=(0,a.useCallback)(()=>{let{url:e,query:t}=o.parseUrl(location.href),i=t||{},n=(0,p.Rs)("sourceid")||(null==i?void 0:i.sourceid);if(n&&!et.current){var r,a,l;let t=null===(r=(0,g.Es)())||void 0===r?void 0:r.user_unique_id;if((0,p.U$)(["sourceid"]),null==i?void 0:i.sourceid){delete i.sourceid;let t=(0,o.stringify)(i);null===(l=window)||void 0===l||null===(a=l.history)||void 0===a||a.replaceState({},"",t?[e,t].join("?"):e)}et.current=!0,F.Z.sendLog("from360",{qhclickid:n||"",uuid:t}),(0,m.N)({qhclickid:n,trans_id:(0,A.H)(t)})}},[]),eo=(0,a.useRef)({enterChildRouteTime:0});(0,c.C)(()=>{ei.current="handoff"===(0,p.Rs)("sync_play_src"),ei.current&&(0,j.SD)()},[]);let ea=(0,a.useCallback)(async(e,a,l)=>{var s,u,d,c,m,A;let B;F.Z.sendLog("pageViewMonitorTest",{url:location.href},!1),((null===(u=location)||void 0===u?void 0:null===(s=u.host)||void 0===s?void 0:s.indexOf("live"))!==-1||new RegExp(Z).test(null===(d=location)||void 0===d?void 0:d.pathname)&&!(0,y._Q)())&&er();let{info:V}=t||{},z=null===(c=(0,g.Es)())||void 0===c?void 0:c.user_unique_id,Y=(0,p.Rs)("previous_page")||"";for(let e of Object.keys(q))if(location.pathname.match(new RegExp(e))){-1===location.host.indexOf("live")?B=q[e]:B="/"===location.pathname?"live":q[e],("search_result"!==B||(0,w.Nr)(location.pathname))&&(0,b.TU)(B);break}"live_detail"===(0,b.yW)()&&(B="live_detail");let $={app_code_link:"app_code",web_code_link:"web_code",jianying_publish:"jianying_publish",jianying_profile:"jianying_profile",screen_share_to_pc:"screen_share_to_pc",local_player:"local_player"},J=0;if(location.pathname.startsWith("/note")?J=68:location.pathname.startsWith("/article")&&(J=163),F.Z.sendLog("pageViewMonitor",{enter_from:B||"",url:location.href,uid:null==V?void 0:V.uid,uuid:z}),(0,f.L)(),B&&((null==V?void 0:V.uid)||z)){let{isRecommendLandingDiscover:t,defaultLandingDiscover:s}=C.Le.getConfig(C.gI.LandingPageGuideInfo)||{},u=O(B,t,K),d="/hot"===location.pathname?"trend":location.pathname.includes("activity")?"专题页":"",c=(0,p.Rs)("match_id"),f="special_subject"===B?en:"",v="playlet"===B?B:"special_subject"===B?`special_subject_${f}`:(0,p.Rs)("enter_from_merge"),g=!!((null===(m=location.search)||void 0===m?void 0:m.includes("open_mini_window"))||C.Le.getConfig(C.gI.IsMiniWinFromWidget))&&"/"===location.pathname,q=S.Q.getItem({sKey:R.CookieKeys.Theme}),Z=await (0,E.Re)(),X=new Date,et=(0,w.Nr)(location.pathname),er=location.href,el=location.pathname,{query:es}=o.parseUrl(location.href),eu=el.includes("jingxuan"),ed=eu?null!==(A=el.split("/jingxuan/")[1])&&void 0!==A?A:"all":"",ec=eu?C.Le.getConfig(C.gI.DiscoverTabList):"",ef=C.Le.getConfig(C.gI.JingXuanVisitId);"discover"===B&&!ef&&(C.Le.setConfig(C.gI.JingXuanVisitId,String(Date.now())),ef=C.Le.getConfig(C.gI.JingXuanVisitId));let eh="discover"===B&&"course"===ed?C.Le.getConfig(C.gI.JxCourseFilterList):"",ev={is_video_syncplay:0};ei.current&&(ei.current=!1,ev=(0,j.vB)());if(et)!eo.current.enterChildRouteTime&&(eo.current.enterChildRouteTime=Date.now());else{if(eo.current.enterChildRouteTime){let e=Date.now()-eo.current.enterChildRouteTime;F.Z.sendLog("pageStayTime",(0,r._)((0,n._)({},eo.current,(0,E.Wc)(E.rh.PAGE_VIEW)),{duration:e,reason:"exit_child_route",is_visible:0,sidebar_status:(0,T.GE)(),is_recommend:"default_landing"===u?Number(s):void 0,visit_id:ef,is_small_window:(0,W.A)()?"1":"0",is_ting_window:_.e.activeScene===h.d.ListenVideo?1:0,small_window_scene:(0,W.A)()?H.w_.getState().smallWindowScene:"",is_from_aweme_search_engine:(0,G.V)()?1:0}),!1)}eo.current={enter_from:(0,b.yW)(),enter_method:u,enter_from_merge:(0,b.yW)(),previous_page:Y,url:er,url_path:el,link_from:(0,M.f)()?"pwa":$[Y]||"",tab_name:d,aweme_type:J,enterChildRouteTime:0}}(()=>{var t,o,f,h,_,m,p,w,b;X=new Date,(0,k.B1)({tag:"page_view_report"});let C=(0,n._)((0,r._)((0,n._)((0,r._)((0,n._)({page_log_id:Q,enter_from:B,url:er,url_path:el,link_from:a||((0,M.f)()?"pwa":$[Y]||""),enter_method:u,is_recommend:"default_landing"===u?Number(s):void 0,tab_name:d,aweme_type:J,theme_raw_value:q||"default",theme:(0,x.bS)(q),enter_by_tab:(0,U.S)(),browser_height:window.innerHeight,browser_width:window.innerWidth,browser_ratio:window.innerHeight/window.innerWidth,redirect_from:i,from_push:S.Q.getItem({sKey:R.CookieKeys.FromClientPush})?1:0,seo_vids:I.t("seo_vids")||"",url_source:null!==(w=null===(t=(0,L.pf)(location.href))||void 0===t?void 0:t.urlSource)&&void 0!==w?w:"",url_source_method:null!==(b=null===(o=(0,L.pf)(location.href))||void 0===o?void 0:o.urlSourceMethod)&&void 0!==b?b:"",word_strategy:null===(f=window)||void 0===f?void 0:f.word_strategy,physical_screen_num:Z.physical_screen_num,physical_screen_info:Z.physical_screen_info,match_id:c,enter_from_merge:v,is_small_window:g?1:0,small_window_scene:g?H.w_.getState().smallWindowScene:"",is_mobile:(0,y.tq)()?1:0,is_ipad:(0,y._1)()?1:0,is_apad:(0,y.iO)()?1:0,reason:l},(0,E.Wc)(E.rh.PAGE_VIEW)),{is_child_route:et?1:0,sidebar_status:(0,T.GE)(),is_support_wasm:void 0!==window.WebAssembly,was_discarded:void 0===document.wasDiscarded?-1:Number(document.wasDiscarded)}),eu?{sub_tab_name:ed}:{},eu?{sub_tab_list:ec}:{}),{visit_id:ef,landing_reason:null===(_=window)||void 0===_?void 0:null===(h=_.EXPOSE_DATA)||void 0===h?void 0:h.landingReason,is_auto_landing:(null===(p=window)||void 0===p?void 0:null===(m=p.EXPOSE_DATA)||void 0===m?void 0:m.landingReason)==="user_setting_landing_channel"?0:1,filter_list:eh,is_from_aweme_search_engine:(0,G.V)()?1:0}),ev);F.Z.sendLog("pageView",C,e),F.Z.sendLog("pageViewV2",C,e)})(),t&&C.Le.setConfig(C.gI.LandingPageGuideInfo,{isRecommendLandingDiscover:void 0},!0),P.emit(P.EVENT.ReportToTea,{eventName:"pageView"}),(0,N.xC)(ee.current),ee.current=el,(0,N.vP)({key:el,event:(e,t,i)=>{var o,a,l,c;t>0&&(0,b.yW)()&&F.Z.sendLog("pageStayTime",(0,r._)((0,n._)({},(0,E.Wc)(E.rh.PAGE_VIEW)),{enter_from:(0,b.yW)(),enter_method:u,enter_from_merge:"special_subject"===(0,b.yW)()?`special_subject_${f}`:(0,b.yW)(),previous_page:Y,url:er,url_path:el,duration:t,is_visible:Number(e),link_from:(0,M.f)()?"pwa":$[Y]||"",tab_name:d,aweme_type:J,player_paused:Number(null!==(l=null===(o=window.player)||void 0===o?void 0:o.paused)&&void 0!==l?l:1),player_muted:Number(null!==(c=null===(a=window.player)||void 0===a?void 0:a.muted)&&void 0!==c?c:1),reason:i,is_child_route:et?1:0,sidebar_status:(0,T.GE)(),is_recommend:"default_landing"===u?Number(s):void 0,visit_id:ef,is_small_window:(0,W.A)()?"1":"0",is_ting_window:_.e.activeScene===h.d.ListenVideo?1:0,small_window_scene:(0,W.A)()?H.w_.getState().smallWindowScene:"",is_from_aweme_search_engine:(0,G.V)()?1:0}),!1);let v=(0,w.Nr)(location.pathname)&&"page_unload"===i&&eo.current.enterChildRouteTime;v&&F.Z.sendLog("pageStayTime",(0,r._)((0,n._)({},eo.current,(0,E.Wc)(E.rh.PAGE_VIEW)),{duration:Date.now()-eo.current.enterChildRouteTime,reason:"exit_child_route_page_unload",is_visible:0,is_child_route:et?1:0,sidebar_status:(0,T.GE)(),is_recommend:"default_landing"===u?Number(s):void 0,is_small_window:(0,W.A)()?"1":"0",is_ting_window:_.e.activeScene===h.d.ListenVideo?1:0,small_window_scene:(0,W.A)()?H.w_.getState().smallWindowScene:"",is_from_aweme_search_engine:(0,G.V)()?1:0}),!1),e&&D(X,new Date)?ea(!1,"next_day",i):F.Z.sendLog("pageViewError",{enter_from:B||"",url:location.href,uid:null==V?void 0:V.uid,uuid:z,reason:v?"exit_child_route_page_unload":i})}})}else F.Z.sendLog("pageViewError",{enter_from:B||"",url:location.href,uid:null==V?void 0:V.uid,uuid:z,reason:"no_info"});(0,v.DC)()},[t,er,i,en]);(0,a.useEffect)(()=>{!K&&(ea(),K=!0);let e=X.listen(()=>{if("/LynxLoading"!==C.Le.getConfig(C.gI.MarkFirstLoadUrl)&&(C.Le.setConfig(C.gI.MarkFirstEnter,null),C.Le.setConfig(C.gI.isVideoPlayed,null)),C.Le.setConfig(C.gI.MarkFirstLoadUrl,""),ee.current){try{(0,N.wq)(void 0,"page_history_change")}catch(e){}(0,N.xC)(ee.current)}ea()});return()=>{null==e||e()}},[]),(0,a.useEffect)(()=>{var e;let i=J.current;J.current=t;let n=null==t?void 0:t.info;(null==i?void 0:null===(e=i.info)||void 0===e?void 0:e.uid)!==(null==n?void 0:n.uid)&&(null==i?void 0:i.isLogin)!==void 0&&ea()},[t]),(0,a.useEffect)(()=>{let e=new Date;return(0,N.vP)({key:"PAGE_VIEW_EVENTS_TRACKING_UPDATE_ACROSS_DAY",event:()=>{let t="visible"===document.visibilityState,i=new Date;if(!t){e=i;return}D(e,i)&&(ea(!0,"next_day"),e=i)}}),()=>(0,N.xC)("PAGE_VIEW_EVENTS_TRACKING_UPDATE_ACROSS_DAY")},[])}},405244:function(e,t,i){"use strict";i.d(t,{C:function(){return a}}),i(112459),i(759943);var n=i(101199),r=i(121998),o=i(499059);let a=()=>{(0,n.useEffect)(()=>{let{open_im:e,open_notice:t}=r.parse(window.location.search);e&&("null"===e?o.Le.setConfig(o.gI.IMStatusStore,{enterMethod:""}):"string"==typeof e&&o.Le.setConfig(o.gI.IMStatusStore,{conversationId:e,enterMethod:""})),t&&o.Le.setConfig(o.gI.NoticeStatusStore,{autoOpen:!0,enterMethod:""})},[])}},417194:function(e,t,i){"use strict";i.d(t,{d:function(){return m}}),i(679308),i(112459),i(759943);var n=i(101199),r=i(350856),o=i.n(r),a=i(638052),l=i(409250),s=i(414061),u=i(499059),d=i(772227),c=i(426038),f=i(823093);let h=()=>"visible"===document.visibilityState,v=e=>e>0?`https://p-pc-weboff.byteimg.com/tos-cn-i-9r5gewecjs/favicon/${Math.min(e,10)}.png`:"https://p-pc-weboff.byteimg.com/tos-cn-i-9r5gewecjs/favicon.png",_=()=>{var e,t,i;let n=document.createElement("link");return n.type="image/x-icon",n.rel="shortcut icon",null===(i=document.getElementsByTagName("head"))||void 0===i||null===(t=i[0])||void 0===t||null===(e=t.appendChild)||void 0===e||e.call(t,n),n},m=e=>{let{isOn:t=!1}=e,i=(0,n.useRef)(!1),r=(0,n.useRef)(0),m=(0,n.useRef)(null),p=(0,n.useCallback)(e=>new Promise((t,i)=>{let n=new Image;n.src=e,n.onload=function(){t(!0),n.onload=null,n.onerror=null,n=null},n.onerror=function(e){i(e),n.onerror=null,n.onload=null,n=null}}),[]),g=(0,n.useCallback)(async e=>{let t=v(e);if(!m.current){let e=document.querySelector('link[type="image/x-icon"]');m.current=e,!e&&(m.current=_())}let i=await p(t),n=m.current;return i&&n&&(n.href=t),i&&n},[p]),y=(0,n.useCallback)(async e=>{let t=async()=>{let t=setTimeout(()=>{g(0).then(i=>{if(!i){clearTimeout(t);return}let n=setTimeout(()=>{g(e),clearTimeout(n),clearTimeout(t)},500)})},500)};l.Q.getItem({sKey:c.CookieKeys.IsDouyinActive})||0===e?g(e):await g(e)&&t()},[g]),w=(0,n.useCallback)(()=>{g(0),i.current=!1},[g]);(0,n.useEffect)(()=>{let e=s.listen(s.EVENT.updateUnReadCount,o()(e=>{let n=l.Q.getItem({sKey:c.CookieKeys.HideTitleNotice}),o=l.Q.getItem({sKey:c.CookieKeys.IsDouyinActive}),{im:s=0,notice:d=0}=u.Le.getConfig(u.gI.UnReadCount)||{},f=s+d;if(!!e&&!!t&&!n&&(!!i.current||!o)&&f!==r.current)r.current=f,y(f),i.current=f>0,f>0&&a.logInstance.sendLog("webRedDotShow")},1e3));return()=>{null==e||e()}},[t,y]),(0,n.useEffect)(()=>{let e=()=>{if(h()){a.logInstance.sendLog("webIconClick",{red_dot:i.current?1:0});let e=setTimeout(()=>{l.Q.setItem(c.CookieKeys.IsDouyinActive,!0),clearTimeout(e)},500)}else l.Q.setItem(c.CookieKeys.IsDouyinActive,!1)},t=()=>l.Q.setItem(c.CookieKeys.IsDouyinActive,!0),n=()=>l.Q.setItem(c.CookieKeys.IsDouyinActive,!1);return!l.Q.getItem({sKey:c.CookieKeys.IsDouyinActive})&&l.Q.setItem(c.CookieKeys.IsDouyinActive,h()),document.addEventListener("visibilitychange",e),document.addEventListener("focus",t),window.addEventListener("beforeunload",n),()=>{document.removeEventListener("visibilitychange",e),document.removeEventListener("focus",t),window.removeEventListener("beforeunload",n)}},[]),(0,n.useEffect)(()=>{let e=null;return t?(e&&clearInterval(e),e=setInterval(()=>{l.Q.getItem({sKey:c.CookieKeys.HideTitleNotice})&&i.current&&w()},5e3)):(clearInterval(e),e=null),()=>{var t;e&&(null===(t=u.Le.getConfig(u.gI.AbtestData))||void 0===t?void 0:t.enableMemoryLeakFix)&&(clearInterval(e),e=null)}},[t,w]),(0,n.useEffect)(()=>{let e=(0,d.D)(location.search),t=e.message_tag,n=e.groupId,r=e.rid;t&&a.logInstance.sendLog("webIconClick",{open_from:"push",message_tag:e.message_tag,red_dot:i.current?1:0}),t&&(0,f.Mr)({rid64:r,group_id_str:n})},[])}},141100:function(e,t,i){"use strict";i(490629);var n=i(320165);i(101199);var r=i(469935),o=i.n(r),a=i(376946),l=i(411984),s=i(639514),u=i(234150),d=i(176449);t.Z=e=>{let{value:t,spa:i,href:r,label:c,target:f,handleTabClick:h,className:v,showYellowPoint:_=!1,showDotRedPoint:m=!1,showLiveRedPoint:p=!1,showNumberYellowPoint:g=!1,showLiveRedCnPoint:y=!1,numberYellowPointCount:w=0,numberYellowClassName:b,showNumberRedPoint:C,numberRedPointCount:S,active:k,renderLabel:x,onMouseLeave:I,onMouseEnter:L}=e,E=new Map([]);return(0,n.jsx)("div",{className:o()(`tab-${t}`,s.default.tab,v),onMouseLeave:I,onMouseEnter:L,children:(0,n.jsx)(u.a,{className:s.default.itemLink,spa:i,href:r,target:f,onClick:h,title:c,children:(0,n.jsxs)("div",{className:o()(s.default.imgBox,E.get(t)),children:[_&&(0,n.jsx)("div",{className:s.default.yellowPoint}),m&&(0,n.jsx)("div",{className:s.default.redPoint}),p&&(0,n.jsx)("div",{className:s.default.liveRedPoint,children:(0,n.jsx)(d.Z,{src:a.Z,viewBox:"0 0 19 7",height:7,width:19})}),g&&(0,n.jsx)("div",{className:o()(b,{[s.default.digitsNumberYellowPoint]:w<10,[s.default.numberYellowPoint]:w>=10}),children:w>99?"99+":w}),C&&(0,n.jsx)("div",{className:o()(b,{[s.default.digitsNumberRedPoint]:S<10,[s.default.numberRedPoint]:S>=10}),children:S>99?"99+":S}),y&&(0,n.jsx)("div",{className:s.default.liveRedCnPoint,children:(0,n.jsx)(d.Z,{src:l.Z,viewBox:"0 0 44 20",height:20,width:44})}),null==x?void 0:x({active:k})]})})})}},899286:function(e,t,i){"use strict";var n=i(624508);t.Z=new n.h({navEnterDuration:{eventName:"nav_enter_duration",params:{duration:0,tab_name:"",type:""}},videoTabHoverTime:{eventName:"video_tab_hover_time",params:{tab_name:"",enter_from:"",duration:0}},videoTabHover:{eventName:"video_tab_hover",params:{tab_name:"",enter_from:""}}})},165010:function(e,t,i){"use strict";i.d(t,{R:function(){return s}}),i(490629);var n=i(320165),r=i(101199),o=i(469935),a=i.n(o),l=i(28292);let s=e=>{let{text:t,className:i,textClassName:o,gap:s,duration:u}=e||{},[d,c]=(0,r.useState)(!1);return(0,n.jsx)("div",{className:a()(l.default.wrapper,i),children:(0,n.jsx)("div",{ref:e=>{var t;if(!!e)e.clientWidth>(null===(t=e.parentElement)||void 0===t?void 0:t.clientWidth)&&c(!0)},className:a()(o,{[l.default.text]:d}),style:{"--marquee-gap":`${s||20}px`,"--marquee-duration":`${u||15}s`},"data-text":t,children:t})})}},250146:function(e,t,i){"use strict";let n,r;i.d(t,{Ci:function(){return P},n5:function(){return R}});var o=i(629686),a=i(402748);i(706056),i(490629),i(374954);var l=i(320165),s=i(101199),u=i(350856),d=i.n(u),c=i(689222),f=i(414061),h=i(250532),v=i(601034),_=i(499059),m=i(367514),p=i(745285),g=i(889429),y=i(477667),w=i(221392),b=i(18638),C=i(25779),S=i(176449),k=i(163896),x=i(9602),I=i(540129),L=i(173416);let E=e=>{let{shortcutList:t,logParams:i,enter_from:n}=e,r=s.useRef(null),o=s.useRef(null),a=s.useRef(!1),u=s.useRef(!1),m=()=>{f.emit(f.EVENT.shortcutListModalVisibleChange,!1),k.Uq.destroy()};return s.useEffect(()=>{let e="shortcutList";return(0,h.o)({pausePlayControlShortcut:!0,pauseCustomShortcut:!0,pauseGlobalShortcut:!0},e),()=>{(0,h.m)(e)}},[]),s.useEffect(()=>{f.emit(f.EVENT.shortcutListModalVisibleChange,!0);let e=n||(0,v.yW)();return b.Z.sendLog("hotKeyListShow",{enter_from:e,click_method:null==i?void 0:i.clickMethod}),()=>{b.Z.sendLog("hotKeyListExit",{enter_from:e})}},[]),s.useEffect(()=>{var e,t,i,n;let r=d()(()=>{u.current=!1,a.current&&m()},100),l=e=>{e.stopPropagation(),u.current=!0,a.current&&e.preventDefault()};return null===(t=o.current)||void 0===t||null===(e=t.addEventListener)||void 0===e||e.call(t,"wheel",r),null===(n=o.current)||void 0===n||null===(i=n.addEventListener)||void 0===i||i.call(n,"wheel",l),_.Le.setConfig(_.gI.DisableExit,!0),()=>{var e,t,i,n;null===(t=o.current)||void 0===t||null===(e=t.removeEventListener)||void 0===e||e.call(t,"wheel",r),null===(n=o.current)||void 0===n||null===(i=n.removeEventListener)||void 0===i||i.call(n,"wheel",l),_.Le.setConfig(_.gI.DisableExit,!1)}},[]),s.useEffect(()=>{let e=e=>{if(e.stopPropagation(),!e.shiftKey&&!e.metaKey&&!e.ctrlKey)(null==e?void 0:e.code)==="Escape"&&(a.current=!0,!u.current&&m())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[]),(0,l.jsxs)("div",{className:w.default.shortcutList,ref:o,children:[(0,l.jsx)("div",{className:w.default.title,children:"快捷键列表"}),(0,l.jsx)(S.Z,{className:w.default.close,width:36,height:36,src:y.Z,color:"#A9AAB7",onClick:m}),(0,l.jsx)(c.i,{className:w.default.divider}),(0,l.jsx)("div",{className:w.default.container,ref:r,children:t.map(e=>(0,l.jsxs)("div",{className:w.default.line,children:[(0,l.jsx)("span",{className:w.default.action,children:e.action}),(0,l.jsx)("span",{className:w.default.key,children:e.key})]},e.action))})]})},T=async e=>{let{rmShortcutKeyList:t}=e;try{(null==t?void 0:t.length)&&t.forEach(e=>{var t;I.SHORTCUT_KEY[e]&&(null===(t=I.SHORTCUT_KEY[e])||void 0===t?void 0:t.code)&&(I.SHORTCUT_KEY[e].code=null,I.SHORTCUT_KEY[e].badgeText="")});let e=Object.keys(L.A).map(e=>(0,o._)({key:e},L.A[e])).filter(e=>{var i;return!(null==t?void 0:null===(i=t.includes)||void 0===i?void 0:i.call(t,e.key))}),{data:i}=await (0,x.uf)();i&&Object.keys(i).length>0?(Object.keys(i).forEach(t=>{var n;e.find(e=>{var n;return!i[e.key]&&e.key!==t&&e.hotKey===(null===(n=i[t])||void 0===n?void 0:n.hotKey)})&&L.A[t].hotKey&&(i[t].hotKey=L.A[t].hotKey);let r=null===(n=i[t])||void 0===n?void 0:n.hotKey;I.SHORTCUT_KEY[t]&&(I.SHORTCUT_KEY[t].code=r?`Key${r}`:null,I.SHORTCUT_KEY[t].badgeText=r)}),n=i):n={}}catch(e){}},P=async e=>{let{rmShortcutKeyList:t}=e;try{if(r){await r;return}r=T({rmShortcutKeyList:t}),await r}catch(e){}},N=e=>{n=e||{}},R=async e=>{let{shortcutList:t,abTestData:i,userInfo:r}=e||{},s=!!(null==i?void 0:i.useShortcutKeyEdit),u=[...(null==i?void 0:i.rmShortcutKeyList)||[]],d=null!=t?t:(0,m.v)(i);s&&!n&&(null==r?void 0:r.isLogin)&&(!((0,p.ZV)()&&!(0,g.NN)())&&u.push("pip"),await P({rmShortcutKeyList:u})),k.Uq.render({children:s?(0,l.jsx)(C.d,(0,a._)((0,o._)({},e),{shortcutList:Object.keys(n||{}).length>0?n:void 0,updateShortcutList:N})):(0,l.jsx)(E,(0,a._)((0,o._)({},e),{shortcutList:d})),className:w.default.mask,onMaskClick:()=>{if(!s)k.Uq.destroy(),f.emit(f.EVENT.shortcutListModalVisibleChange,!1)}})}},18638:function(e,t,i){"use strict";var n=i(624508);t.Z=new n.h({hotKeyListShow:{eventName:"hot_key_list_show",params:{enter_from:"",click_method:""}},hotKeyListExit:{eventName:"hot_key_list_exit",params:{enter_from:""}}})},538220:function(e,t,i){"use strict";i.d(t,{R5:function(){return n},qF:function(){return o},t6:function(){return r}});var n={Recommend:0,0:"Recommend",Follow:1,1:"Follow",Friend:2,2:"Friend",Modal:3,3:"Modal",Topic:4,4:"Topic"},r={OUTSIDE:"outside",OUTOFCONTAINER:"out-of-container",INSIDE:"inside",OCCUPATION:"occupation",CONTAINERSTART:"container-start",CONTAINEREND:"container-end",WRAPPERSTART:"wrapper-start",WRAPPEREND:"wrapper-end",WRAPPERRIGHT:"wrapper-right"};let o={nextSwiperHeaderHeight:30,cardBetween:24,upperSpace:24}},747909:function(e,t,i){"use strict";i.d(t,{h:function(){return u}}),i(679308),i(76375);var n=i(486463),r=i(687581),o=i(332009),a=i(55938),l=i(396868),s=i(331535);function u(e){let{onConfirm:t,onCancel:i,onSelectionShow:u,fullScreenTarget:d}=e;return new Promise((e,c)=>{var f;let h=(0,n.OB)(),v=o.s.getPlayer(h),_=a.e.getActivePipWindow();if(!(null==v?void 0:null===(f=v.config)||void 0===f?void 0:f.screenShot)||_){c(Error("screenshot not supported"));return}s.L.open({getPlayer:()=>v,onConfirm:i=>{null==t||t(i),e(i)},onCancel:()=>{null==i||i()},onSelectionShow:()=>{null==u||u()},onError:e=>{l.F.info("截图失败,请重试"),r.oe.event.error({name:r.Mo.SearchBarScreenShotFailed,report:{errorMsg:e.message}}),c(e)},fullScreenTarget:d})})}},881055:function(e,t,i){"use strict";i.d(t,{N:function(){return f}});var n=i(480333),r=i(629686),o=i(402748);i(679308),i(88856),i(76375);var a=i(426038),l=i(499059),s=i(709705),u=i(414061),d=i(917196),c=i(845285);let f=new class e{async getUserSettingInfo(){return!this._getUserSettingReqPromise&&(this._getUserSettingReqPromise=(0,d.WH)()),await new Promise((e,t)=>{this._getUserSettingReqPromise.then(i=>{if((null==i?void 0:i.statusCode)===0){var n;e(i),this._setInfo=(0,r._)({},this._setInfo,i.setInfo),this._showUserLandingWindow=null==i?void 0:i.showUserLandingWindow,this._landingReason=null==i?void 0:i.landingReason,this._isShowToday=(null==i?void 0:null===(n=i.extraInfo)||void 0===n?void 0:n.is_show_today)==="1",l.Le.setConfig(l.gI.userSettingInfo,this._setInfo)}else t(i)}).catch(e=>{t(e)}).finally(()=>{this._getUserSettingReqPromise=null})})}async setUserSettingInfo(e){if(e.setType===c.y.AiEntryClose){this._setInfo.aiEntryClosed=e.aiEntryClosed,l.Le.setConfig(l.gI.userSettingInfo,this._setInfo);return}let t=await (0,d.If)(e);if((null==t?void 0:t.statusCode)===0)e.setType===c.y.LandingMode&&(this._setInfo.landingMode=e.landingMode,l.Le.setConfig(l.gI.userSettingInfo,this._setInfo));else throw Error(null==t?void 0:t.statusMsg)}async initUserCommonSetting(){let e=await (0,d.Pk)();if((null==e?void 0:e.statusCode)===0){var t,i,n;this._setInfo=(0,o._)((0,r._)({},this._setInfo),{aiEntryClosed:(null===(t=e.setInfo)||void 0===t?void 0:t.aiEntryClosed)||0}),l.Le.setConfig(l.gI.userSettingInfo,this._setInfo);(0,s.qQ)(a.LocalStorageKeys.aiEntryClose,Number((null===(i=e.setInfo)||void 0===i?void 0:i.aiEntryClosed)||0)),u.emit(u.EVENT.aiEntrySwitchChange,{isClose:!!(null===(n=e.setInfo)||void 0===n?void 0:n.aiEntryClosed)})}}async intConfig(){!this._hasInit&&(await this.getUserSettingInfo(),this._hasInit=!0)}get realHasInit(){return this._hasInit}get userSettingInfo(){return this._setInfo}get showUserLandingWindow(){return this._showUserLandingWindow}get landingReason(){return this._landingReason}get isShowToday(){return this._isShowToday}constructor(){(0,n._)(this,"_setInfo",{}),(0,n._)(this,"_hasInit",!1),(0,n._)(this,"_getUserSettingReqPromise",null),(0,n._)(this,"_showUserLandingWindow",void 0),(0,n._)(this,"_landingReason",void 0),(0,n._)(this,"_isShowToday",void 0)}}},670432:function(e,t,i){"use strict";i.d(t,{I:function(){return o}}),i(76375),i(490629);var n=i(101199);let r=e=>(t,i)=>{if(!e[i.type])throw Error(`No Action Handler:${i.type}`);return e[i.type](t,i.payload)};function o(e,t){let{reducer:i,initialData:o,effect:a}=e,[l,s]=(0,n.useReducer)(r(i),t||o),u=(0,n.useCallback)(async e=>{if(!a[e.type])throw Error(`No Effect Handler:${e.type}`);return a[e.type](e,s,l)},[l]);return[l,u]}},786618:function(e,t,i){"use strict";i.d(t,{T:function(){return l}}),i(679308);var n=i(557839),r=i(707246);let o=()=>new Promise(e=>{let t=new Image;t.onload=()=>e(t.width>0&&t.height>0),t.onerror=()=>e(!1),t.src="data:image/webp;base64,UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA=="}),a=()=>{try{let e=document.createElement("canvas");if(e.toDataURL){let t=e.toDataURL("image/heic");return 0===t.indexOf("data:image/heic")}return!1}catch(e){return!1}},l=e=>{let t=(0,r.s6)(e=>e.setIsSupportWebp),i=(0,r.s6)(e=>e.setIsSupportHeic);(0,n.O)(!0,()=>{if("undefined"!=typeof window)o().then(e=>{t(e)}),i(a())})}},684103:function(e,t,i){"use strict";i.d(t,{u:function(){return l}}),i(490629);var n=i(101199),r=i(66948),o=i(528937),a=i(499059);function l(){var e;let{defaultValue:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.TCC_DEFAULT_VALUE_MAP.get(r.TccKey.SiteFooter),l=t||(null===(e=a.Le.getConfig(a.gI.TccData))||void 0===e?void 0:e[r.TccKey.SiteFooter]),[s,u]=(0,n.useState)(l||i);return(0,n.useEffect)(()=>{let e=!1;return(async()=>{if(l)return;let i=await o.get({key:r.TccKey.SiteFooter,defaultValue:t});!e&&u(i)})(),()=>{e=!0}},[]),s}},598444:function(e,t,i){"use strict";i.d(t,{F:function(){return n}}),i(76375);let n=e=>{let t="function"==typeof e?e():e;return(null==t?void 0:t.then)?t.then(e=>[null,e]).catch(e=>[e||Error("err"),void 0]):[Error("not promise or function"),void 0]};t.Z=n},752865:function(e,t,i){"use strict";i.d(t,{B:function(){return r},i:function(){return o}});let n=null,r=e=>{n=e},o=()=>n},108379:function(e,t,i){"use strict";i.d(t,{l:function(){return l},y:function(){return a}}),i(679308);var n=i(486463),r=i(332009),o=i(855357);function a(){var e,t,i,a,l,s,u,d,c,f;let h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.92,v=arguments.length>1?arguments[1]:void 0,_=(0,n.OB)(),m=v?v():r.s.getPlayer(_);if((null==m?void 0:null===(e=m.config)||void 0===e?void 0:e.awemeType)===o.e.Note)return Promise.reject("不支持非视频场景截图");if(null==m?void 0:null===(a=m.config)||void 0===a?void 0:null===(i=a.awemeInfo)||void 0===i?void 0:null===(t=i.chargeInfo)||void 0===t?void 0:t.is_charge_content)return Promise.reject("付费视频不支持截图");if(null==m?void 0:null===(c=m.config)||void 0===c?void 0:null===(d=c.awemeInfo)||void 0===d?void 0:null===(u=d.video)||void 0===u?void 0:null===(s=u.bitRateList)||void 0===s?void 0:null===(l=s[0])||void 0===l?void 0:l.playerAccessKey)return Promise.reject("加密视频不支持截图");if(m){let{width:e,height:t}=function(e){let t,i;let n=e.videoWidth,r=e.videoHeight;if(!n||!r)return{width:0,height:0};let o=e.clientWidth,a=e.clientHeight,l=getComputedStyle(e).objectFit||"fill",s=n/r,u=o/a;switch(l){case"fill":default:t=o,i=a;break;case"contain":s>=u?(t=o,i=o/s):(i=a,t=a*s);break;case"cover":s>=u?(i=a,t=a*s):(t=o,i=o/s);break;case"none":t=n,i=r;break;case"scale-down":t=Math.min(n,s>=u?o:a*s),i=Math.min(r,s>=u?o/s:a)}return{width:Math.round(t),height:Math.round(i)}}(m.video),i=m.getPlugin("screenshot")||(null===(f=m.plugins)||void 0===f?void 0:f.screenshot);return i?i.shot(e,t,{type:"image/jpeg",quality:h}):Promise.reject("screenshot plugin not found")}return Promise.reject("failed")}function l(e){let{x:t,y:i,width:n,height:r,quality:o,player:a}=e;if(a){var l;let e=a.getPlugin("screenshot")||(null===(l=a.plugins)||void 0===l?void 0:l.screenshot);return e?e.shotArea(t,i,n,r,{type:"image/jpeg",quality:o}):Promise.reject("screenshot plugin not found")}return Promise.reject("not found active player")}},762844:function(e,t,i){"use strict";i.d(t,{c:function(){return n}});var n={Shift:0,0:"Shift",Ctrl:1,1:"Ctrl",Meta:2,2:"Meta"}},633587:function(e,t,i){"use strict";i.d(t,{h:function(){return n}});let n=()=>({preloadTime:5,preloadCacheType:1,preloadMaxCacheCount:10,needPreloadCheck:!1})},33095:function(e,t,i){"use strict";i.d(t,{E:function(){return o}});var n=i(283791),r=i.n(n);let o=i(101199).createContext({player:{},slardarInstance:null,contextEvent:new(r()),isDouyinPlayer:!1})},332911:function(e,t,i){"use strict";var n=i(855357),r=i(624508);let o={byteBenchTask:{eventName:"bytebench.bytebench_task",params:{task_group_id:0,sdk_version:0,result:"",extra_info:{}}},videoPlayQuality:{eventName:"video_play_quality",params:{group_id:"",previous_page:"",tab_name:"",bitrate_set:"",enter_from:"",codec_format:"",duration:0,cache_size:0,video_quality:"",video_format:"",video_bitrate:"",vduration:"",internet_speed:0,player_type:"xgplayer",player_version:"",internet_speed_dl:0,preload_time:0,preload_size:0,preload_type:1,cpu_core:0,memory_size:0,UA_info:"",host:"",vtype:"",player_first_frame:0,current_low_decode_count:0,decoder_mode:0,h265_failure_rate:-1,play_order:0,general_search_duration:0}},prfVolumeChange:{eventName:"prf_volume_change",params:{down:0,enter_from:"",search_params:void 0,click_method:"click",is_mute:"0",is_small_window:"0"}},videoBlock:{eventName:"video_block",params:{group_id:"",previous_page:"",tab_name:"",enter_from:"",codec_format:"",duration:0,cache_size:0,video_quality:"",video_format:"",video_bitrate:"",vduration:"",block_type:"",internet_speed_dl:0,internet_speed:0,player_type:"xgplayer",player_version:"",cpu_core:0,memory_size:0,UA_info:"",host:"",vtype:"",play_order:0}},videoBlockCount:{eventName:"video_block_count",params:{enter_from:"",UA_info:"",block_count:0,differ_count:0}},videoPlayEnd:{eventName:"video_play_end",params:{group_id:"",previous_page:"",tab_name:"",enter_from:"",codec_format:"",duration:0,is_success:0,vduration:"",internet_speed:0,player_type:"xgplayer",player_version:"",video_quality:"",video_format:"",video_bitrate:"",internet_speed_dl:0,preload_time:0,preload_size:0,preload_type:1,cpu_core:0,memory_size:0,UA_info:"",host:"",vtype:"",current_low_decode_count:0,decoder_mode:0,is_bytevc1:0,play_order:0,decode_fps:0,cdn_size_video:0,pcdn_size_video:0,play_size:0,loop_cnt:0,seek_cnt:0,seek_time:0,play_leave_position:0,play_duration_clean:0,fid:"",trace_id:"",uri:"",cache_duration:0,cache_size:0,data_player_type:2,is_cache_video:0}},videoPlayFailed:{eventName:"video_play_failed",params:{group_id:"",previous_page:"",tab_name:"",enter_from:"",cache_size:0,errorCode:0,errorDesc:"",is_cdn_expired:0,vduration:"",internet_speed:"",player_type:"xgplayer",player_version:"",internet_speed_dl:0,is_video_support:0,cpu_core:0,memory_size:0,UA_info:"",host:"",vtype:"",h265_failure_rate:-1,play_order:0}},videoDegrade:{eventName:"video_degrade",params:{group_id:"",previous_page:"",tab_name:"",enter_from:"",cache_size:0,errorCode:0,errorDesc:"",is_cdn_expired:0,vduration:"",internet_speed:"",player_type:"xgplayer",player_version:"",internet_speed_dl:0,is_video_support:0,cpu_core:0,memory_size:0,UA_info:"",host:"",vtype:"",h265_failure_rate:-1,play_order:0}},videoInit:{eventName:"video_init",params:{group_id:"",previous_page:"",tab_name:"",enter_from:"",video_quality:"",video_format:"",internet_speed:0,is_csr:1,compilation_id:"",cpu_core:0,memory_size:0,UA_info:"",host:"",vtype:"",play_order:0,is_have_pcdn:0}},videoRequest:{eventName:"video_request",params:{group_id:"",previous_page:"",tab_name:"",enter_from:"",video_quality:"",video_format:"",internet_speed:0,is_csr:1,compilation_id:"",cpu_core:0,memory_size:0,UA_info:"",host:"",vtype:"",play_order:0,is_have_pcdn:0}},videoRequestResponse:{eventName:"video_request_response",params:{group_id:"",enter_from:"",previous_page:"",tab_name:"",video_quality:"",video_format:"",vduration:"",duration:"",is_success:0,internet_speed:0,is_csr:1,compilation_id:"",internet_speed_dl:0,cpu_core:0,memory_size:0,UA_info:"",host:"",vtype:"",play_order:0}},videoPlay:{eventName:"video_play",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",enter_from_merge:"",previous_page:"",is_visible:"1",compilation_id:"",playlet_id:"",is_auto_play:"0",impression_data:"",is_highlight_show:0,video_detail_enter_from:"web_link",tab_name:"",speed:"1",auto_cnt:1,is_full_screen:"0",trending_topic:"",enter_method:"",from_follow_list:"0",is_mute:"0",mute_type:"",from_academy:0,is_small_window:"0",is_offline:0,clarity:"",first_tag_name:"",top:0,video_time:0,from_push:0,is_from_ad:0,url_source:"",latest_group_id:"",expand_video_card_type:"",if_continued_play:"",rate:"",if_first_big_card:0,sidebar_status:"open",open_from_page:"",multi_window_order:"",if_new_open_dup:0,visit_id:"",gid_rank:0,is_first_screen:0,is_outflow:0,from_gid:"",item_rank:0}},videoPlayFinish:{eventName:"video_play_finish",params:{author_id:"",group_id:"",log_pb:"",is_visible:"1",enter_from:"",enter_from_merge:"",compilation_id:"",playlet_id:"",previous_page:"",tab_name:"",from_follow_list:"0",is_mute:"0",mute_type:"",trending_topic:"",is_small_window:"0",first_tag_name:"",top:0,video_time:0,from_push:0,is_from_ad:0,url_source:"",if_first_big_card:0,open_from_page:"",multi_window_order:"",visit_id:"",gid_rank:0,is_first_screen:0,is_outflow:0,from_gid:"",item_rank:0}},playTime:{eventName:"play_time",params:{play_start_time:0,play_end_time:0,author_id:"",group_id:"",log_pb:"",enter_from:"",enter_from_merge:"",compilation_id:"",playlet_id:"",previous_page:"",is_auto_play:"0",is_visible:"1",duration:0,from_percent:0,to_percent:0,video_detail_enter_from:"web_link",tab_name:"",speed:"",is_full_screen:"0",is_highlight_show:0,trending_topic:"",enter_method:"",from_follow_list:"0",is_mute:"0",mute_type:"",is_small_window:"0",small_window_scene:"",is_offline:0,clarity:"",first_tag_name:"",top:0,video_time:0,from_push:0,is_insert_wallpaper:0,is_from_ad:0,latest_group_id:"",url_source:"",if_continued_play:"",rate:"",if_first_big_card:0,sidebar_status:"open",visit_id:"",gid_rank:0,is_first_screen:0,is_outflow:0,from_gid:"",item_rank:0}},videoPlayCheckPoint:{eventName:"video_play_check_point",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",enter_from_merge:"",previous_page:"",compilation_id:"",order:0,tab_name:"",trending_topic:"",first_tag_name:"",top:0}},clickPreviousVideo:{eventName:"click_previous_video",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",tab_name:"",click_from:"",is_small_window:"0",trending_topic:"",first_tag_name:"",top:0,play_material:"video"}},clickNextVideo:{eventName:"click_next_video",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",click_from:"",tab_name:"",is_small_window:"0",trending_topic:"",first_tag_name:"",top:0,play_material:"video"}},clickAutoPlay:{eventName:"click_auto_play",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",status:"",play_material:"video",is_small_window:"0",player_display_mode:""}},clickVideoSpeed:{eventName:"click_video_speed",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",speed:"",item_duration_ms:0,is_small_window:"0",player_display_mode:""}},enterFullScreen:{eventName:"enter_full_screen",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",is_small_window:"0",click_from:"",item_duration_ms:0,player_display_mode:""}},exitFullScreen:{eventName:"exit_full_screen",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",is_small_window:"0",click_from:"",player_display_mode:""}},clickScreenMode:{eventName:"click_screen_mode",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",status:""}},clickVolume:{eventName:"click_volume",params:{enter_from:"",mute_remind:"none",status:"0",player_display_mode:"",group_id:""}},pauseVideo:{eventName:"pause_video",params:{enter_from:"",mute_remind:"none",click_method:"click",is_small_window:"0",player_display_mode:"",group_id:""}},startVideo:{eventName:"start_video",params:{enter_from:"",mute_remind:"none",click_method:"click",player_display_mode:"",group_id:""}},openPureMode:{eventName:"open_pure_mode",params:{enter_from:"",enter_method:"",enter_from_merge:"",group_id:"",is_full_screen:"0",is_full_webscreen:"0",item_duration_ms:0,player_display_mode:""}},closePureMode:{eventName:"close_pure_mode",params:{enter_from:"",enter_method:"",group_id:"",player_display_mode:""}},progressClick:{eventName:"progress_click",params:{position:0,enter_from:"",enter_from_merge:"",tab_name:"",group_id:"",click_method:"hot_key",rate:-1,action:"",is_small_window:"0",chapter_index:0,is_chapter_bar:0,before_rate:0,if_continued_play:"",player_display_mode:"",play_current_time:0}},prfFirstFeedShow:{eventName:"prf_first_feed_show",params:{feed_total_duration:0,menu_total_duration:0,landing_page:"",is_landscape:0,group_id:"",vduration:0,if_invisible:"0",is_small_window:"0",small_window_scene:"",real_index:0,is_cache_video:0,aweme_type:n.e.Normal,is_quick_player:0}},pcColdStartPrfRecord:{eventName:"pc_cold_start_prf_record",params:{feed_total_duration:0,menu_total_duration:0,landing_page:"",is_landscape:0,group_id:"",vduration:0,if_invisible:"0",is_small_window:"0",real_index:0,is_cache_video:0,aweme_type:n.e.Normal}},prfFirstFeedFirstFrameShow:{eventName:"prf_first_feed_first_frame_show",params:{feed_total_duration:0,landing_page:"",is_landscape:0,group_id:"",real_index:0,is_cache_video:0,aweme_type:n.e.Normal,is_quick_player:0}},prfFirstFeedCoverShow:{eventName:"prf_first_feed_cover_show",params:{landing_page:"",duration:0,duration_from_rs:0,duration_from_re:0,duration_from_hs:0,duration_from_bs:0,duration_from_ae:0,duration_from_ar:0,duration_from_ps:0}},videoTransform:{eventName:"video_transform",params:{x:0,y:0,width:0,height:0,top:0,left:0,right:0,bottom:0}},prfTaskDataSize:{eventName:"prf_task_data_size",params:{user_unique_id:"",group_id:"",task_type:1,cdn_size:0,pcdn_size:0,cdn_speed:0,pcdn_speed:0,load_dur:0,buffer_dur:0,force_set_min:0,trace_id:"",vduration:0,enter_from:""}},linkPlayFailed:{eventName:"link_play_failed",params:{user_unique_id:"",group_id:"",is_pcdn:0,host:"",aweme_type:0,enter_from:""}},prfLastPreloadDataSize:{eventName:"prf_last_preload_data_size",params:{enter_from:"",group_id:"",preload_size:0,preload_size_cdn:0,preload_size_pcdn:0,preload_time:0,video_bitrate:0,video_quality:"",data_player_type:0,type:0,duration:0,vtype:""}},fpsStuck:{eventName:"fps_stuck",params:{enter_from:"",group_id:""}},srDegrade:{eventName:"sr_degrade",params:{code:"",enter_from:"",group_id:"",vtype:"",quality_type:"",gear_name:"",definition:"",is_bytevc1:0,current_time:""}},videoEditListOffsetTime:{eventName:"video_edit_list_offset_time",params:{duration:0,fix_edit_list_offset:0}},videoPreloadInfo:{eventName:"video_preload_info",params:{buffer:"",currentTime:0,minBufferLength:0,pid:"",startPreloadControl:!1,startPreloadMinBuffer:0,startPreloadMinPosTime:0,vid:""}},videoPreloadCancelInfo:{eventName:"video_preload_cancel_info",params:{buffer:"",currentTime:0,minBufferLength:0,pid:"",startPreloadControl:!1,startPreloadMinBuffer:0,startPreloadMinPosTime:0,vid:""}},hover_speed_cell:{eventName:"hover_speed_cell",params:{enter_from:"",group_id:"",player_display_mode:""}},hover_enter_full_webscreen:{eventName:"hover_enter_full_webscreen",params:{enter_from:"",group_id:"",player_display_mode:""}},hover_exit_full_screen:{eventName:"hover_exit_full_screen",params:{enter_from:"",group_id:"",player_display_mode:""}},hover_pure_mode:{eventName:"hover_pure_mode",params:{enter_from:"",group_id:"",player_display_mode:""}},hover_volume:{eventName:"hover_volume",params:{enter_from:"",group_id:"",player_display_mode:""}},hover_clarity_cell:{eventName:"hover_clarity_cell",params:{enter_from:"",group_id:"",player_display_mode:""}},hover_auto_play_mode:{eventName:"hover_auto_play_mode",params:{enter_from:""}},hover_progress:{eventName:"hover_progress",params:{enter_from:"",player_display_mode:"",group_id:""}},hover_watch_later_add:{eventName:"hover_watch_later_add",params:{enter_from:""}},clickSmallWindowEntrance:{eventName:"click_small_window_entrance",params:{enter_from:"",click_method:"",is_manual:"0",sub_tab_name:"",filter_name:"",is_first_large_card_outflow:"0",player_display_mode:"",group_id:""}},pcAiAskPageTimestampDuration:{eventName:"pc_ai_ask_page_timestamp_duration",params:{group_id:"",enter_from:"",type:"",timestamp_title:"",duration:0}}};t.Z=new r.h(o)},838468:function(e,t,i){"use strict";i.d(t,{L:function(){return F},QU:function(){return B}});var n,r=i(629686);i(374954),i(679308),i(490629),i(932651),i(780582),i(362051);var o=i(320165),a=i(942155),l=i.n(a),s=i(101199),u=i(734123),d=i(85079),c=i.n(d),f=i(356336),h=i(528937),v=i(66948),_=i(939165),m=i(499059),p=i(889429),g=i(414061),y=i(369431),w=i(415872),b=i(25921),C=i(42442),S=i(829219),k=i(52834),x=i(902622),I=i(799439),L=i(187456),E=i(995712),T=i(63601),P=i(310383),N=i(122090),R=i(913285),A=i(174278);let M=[{audioCtx:null,effectNode:null,analyser:null,currentMeta:null,volumeEvent:null,currentSourceNodeCount:0,currentActiveNodeCount:0,maxDb:[],hasAnalyser:!1,canSuspend:!1,useMammonWorkletProcessorV3:!1,useMammonWorkletProcessorV3Wasm:!1}],D=[new(l())];window.globalCtx={audioCtxArr:M,volumeCtxArr:D};async function O(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(let t=0;t{try{var e;let t=null===(e=m.Le.getConfig(m.gI.AbtestData))||void 0===e?void 0:e.volumeblanceOpt,i=m.Le.getConfig(m.gI.GlobalCtx),n=(null==i?void 0:i.audioCtx)&&(null==i?void 0:i.effectNode);if(t&&i&&n)return!0}catch(e){}return!1};(null===(n=window)||void 0===n?void 0:n.newVolumeBalanceOpt)?(0,w.v)():(!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(let t=0;t{var e;if(null===(e=m.Le.getConfig(m.gI.AbtestData)||{})||void 0===e?void 0:e.volumeblanceOpt){let e=m.Le.getConfig(m.gI.GlobalCtx);(0,b.s0)(e,!0,{timing:E.iE.liveActive})}M.forEach(e=>{(0,b.s0)(e,!0,{timing:E.iE.liveActive})})},V=e=>{var t;let{index:i=0,awemeInfo:n,isActive:r,abtestData:o,suspendWhenMetaIsUndefined:a=!1,isTopCard:l}=e||{},{isCloseVolumeBalance:d}=(0,L.M)(),[y,w]=(0,s.useState)(),P=(0,T.n)(),R=(0,s.useRef)(),O=(0,s.useRef)(!1),B=(0,s.useRef)(j()?m.Le.getConfig(m.gI.GlobalCtx):M[i%M.length]||M[0]),V=(0,s.useRef)(j()?null===(t=m.Le.getConfig(m.gI.GlobalCtx))||void 0===t?void 0:t.volumeEvent:D[i%D.length]||D[0]),F=(0,s.useMemo)(()=>(null==o?!!void 0:!!o.volumeBalanceControl)&&d,[d]);O.current=r;let U=a&&(0,C.c)(n,B.current,o),W=!(0,p.G6)()&&!l&&(null==o?void 0:o.volumeBalance)===f.VolumeBalance.On&&!U;(0,s.useEffect)(()=>{if(F)return;let e=B.current,t=(null==e?void 0:e.volumeEvent)||V.current;if(P&&P.video){if(e.audioCtx&&e.effectNode&&W){var i,n,r;if((null==P?void 0:null===(i=P.config)||void 0===i?void 0:i.initCodecType)!=="h265soft"){let i;(null===(n=P.video)||void 0===n?void 0:n.sourceNode)?(i=null===(r=P.video)||void 0===r?void 0:r.sourceNode).connect(e.effectNode):i=(0,S.x)(e,P,P.video),R.current=i,P.video.sourceNode=i,P.volumeBalanceState=A.l.On;let a=()=>{if(P.volumeBalanceState===A.l.On)try{i.disconnect(e.effectNode)}catch(e){}P.volumeBalanceState=A.l.Error,i.connect(e.audioCtx.destination)};t.once(x.sc,a),(0,b.r2)(e);let l=(0,S.c)({globalCtx:e,player:P,abtestData:o});return()=>{if(l(),(0,b.XG)(e,!(null==o?void 0:o.volumeBalanceControl)),t.off(x.sc,a),P.volumeBalanceState===A.l.On){P.volumeBalanceState=A.l.Off;try{R.current.disconnect(e.effectNode)}catch(e){}}R.current=null,i=null}}{let i;let n=()=>{var t,n,r,o,a,l,s,u;if(!(null==e?void 0:e.effectNode)){try{null===(r=(null===(o=P.video)||void 0===o?void 0:o.sourceNode)||(null===(l=P.video)||void 0===l?void 0:null===(a=l.audioMedia)||void 0===a?void 0:a.sourceNode))||void 0===r||null===(n=r.connect)||void 0===n||n.call(r,e.audioCtx.destination)}catch(e){}return}null==i||null===(t=i.disconnect)||void 0===t||t.call(i,e.effectNode),P.video instanceof HTMLVideoElement?(null===(s=P.video)||void 0===s?void 0:s.sourceNode)?(i=P.video.sourceNode).connect(e.effectNode):(i=(0,S.x)(e,P,P.video),P.video.sourceNode=i):P.video.audioMedia.sourceNode?(i=P.video.audioMedia.sourceNode).connect(e.effectNode):(i=(0,S.x)(e,P,null===(u=P.video)||void 0===u?void 0:u.audioMedia),P.video.audioMedia.sourceNode=i),w(i),(0,b.r2)(e)};P.on(u.Events.LOADED_DATA,n),P.volumeBalanceState=A.l.On;let r=()=>{var t,i,n;let r=(null===(t=P.video)||void 0===t?void 0:t.sourceNode)||(null===(n=P.video)||void 0===n?void 0:null===(i=n.audioMedia)||void 0===i?void 0:i.sourceNode);if(P.volumeBalanceState===A.l.On)try{null==r||r.disconnect(e.effectNode)}catch(e){}P.volumeBalanceState=A.l.Error,null==r||r.connect(e.audioCtx.destination)};t.once(x.sc,r);let a=()=>{if(P.volumeBalanceState===A.l.On){var t;null==i||null===(t=i.disconnect)||void 0===t||t.call(i,e.effectNode)}i=null,(0,b.XG)(e,!(null==o?void 0:o.volumeBalanceControl))},l=(0,S.c)({globalCtx:e,player:P,abtestData:o});return P.once(u.Events.DESTROY,a),()=>{l(),P.off(u.Events.LOADED_DATA,n),t.off(x.sc,r),P.off(u.Events.DESTROY,a),i=null}}}P.equalizeVolumeState="origin"}},[P,F]),(0,s.useEffect)(()=>{if(F)return;let e=B.current;if(P){var t,i,n;!(((null===(t=P.video)||void 0===t?void 0:t.sourceNode)||(null===(n=P.video)||void 0===n?void 0:null===(i=n.audioMedia)||void 0===i?void 0:i.sourceNode))&&e.audioCtx&&e.effectNode)&&U&&r&&(0,b.s0)(e,!0,{timing:E.iE.noKeyParams})}let o=m.Le.getConfig(m.gI.AbtestData);r&&P&&B.current&&!(null==o?void 0:o.volumeblanceOpt)&&M.forEach(t=>{t!==e&&(0,b.s0)(t,!0)})},[r,P,F]);let[H,G]=(0,s.useState)({year:2026,days:[]});(0,s.useEffect)(()=>{var e;if(!(null==o?void 0:null===(e=o.baseOnSourceLoudnessAdjust)||void 0===e?void 0:e.enableSmartVolumeStrategy))return;let t=!1;try{(async()=>{let e=await h.get({key:v.TccKey.WorkDays,defaultValue:v.TCC_DEFAULT_VALUE_MAP.get(v.TccKey.WorkDays)});!t&&G(e)})()}catch(e){}return()=>{t=!0}},[o]);let K=(0,s.useMemo)(()=>{var e,t,i,r,a,l;if(c()(n)||c()(o))return null;let{needChangeTargetLufs:s,playerVolumeLoudUnityExp:u}=(0,k.e7)(n,o,P,H),d=0;d=s&&u||x.G7;let f=JSON.parse((null==n?void 0:null===(t=n.video)||void 0===t?void 0:null===(e=t.meta)||void 0===e?void 0:e.volume_info)||"{}");return Object.assign({peak:parseFloat((null==n?void 0:null===(r=n.video)||void 0===r?void 0:null===(i=r.meta)||void 0===i?void 0:i.peak)||(null==f?void 0:f.Peak))||0,loudness:parseFloat((null==n?void 0:null===(l=n.video)||void 0===l?void 0:null===(a=l.meta)||void 0===a?void 0:a.loudness)||(null==f?void 0:f.Loudness))||0,targetLufs:d},{duration:0,metaData:"",libraData:""})},[n,o,P,r,H]),q=(0,s.useCallback)(e=>{var t,i,n;let r=B.current,o=m.Le.getConfig(m.gI.AbtestData);if((null==r?void 0:null===(t=r.currentMeta)||void 0===t?void 0:t.peak)===(null==e?void 0:e.peak)&&(null==r?void 0:null===(i=r.currentMeta)||void 0===i?void 0:i.loudness)===(null==e?void 0:e.loudness)){if(null==o||!o.volumeblanceOpt)return;if((null==r?void 0:null===(n=r.currentMeta)||void 0===n?void 0:n.targetLufs)===(null==e?void 0:e.targetLufs))return}if(r.currentMeta=e,r.audioCtx&&r.effectNode){let t=(0,I.Q)(r,e);r.effectNode.port.postMessage({type:"UPDATE",param:t})}},[]),Z=e=>{let t=B.current,i=m.Le.getConfig(m.gI.AbtestData);!((null==i?void 0:i.volumeblanceOpt)&&e)&&(t.currentMeta=null);let r=()=>{if(!!O.current||!!e)q(K)};P.crossOrigin=(0,N.S)(n)?"use-credentials":"anonymous",P.effectNodeConsumeTime={longest:t.getRecentLongestConsumeTimePackRes.getRecentLongestConsumeTime(),shortest:t.getRecentLongestConsumeTimePackRes.getRecentShortestTime()},P.lufs=null==K?void 0:K.targetLufs;let o=g.listen(g.EVENT.syncInteraction,()=>{if(!!O.current||!!e)P.isUserActive&&q(K)});return P.once(u.Events.TIME_UPDATE,r),!(0,p.vU)()&&(P.once(u.Events.AUTOPLAY_STARTED,r),P.once(u.Events.PLAY,r),P.once("immediatePlay",r)),()=>{o(),P.off(u.Events.TIME_UPDATE,r),P.off(u.Events.AUTOPLAY_STARTED,r),P.off(u.Events.PLAY,r),P.off("immediatePlay",r)}};return(0,_.o)(()=>{if(P&&R.current&&r&&!P.preplayStat)return Z()},[K,P,r]),(0,_.o)(()=>{if(P&&y&&r)return Z()},[K,y,r]),(0,s.useEffect)(()=>{if(P&&R.current){let e;let t=t=>{var i;if((null==P?void 0:null===(i=P.config)||void 0===i?void 0:i.vid)===t){let t=m.Le.getConfig(m.gI.AbtestData);(null==t?void 0:t.volumeblanceOpt)&&q(K),e=Z(!0)}};return P.on("preplay",t),()=>{P.off("preplay",t),null==e||e()}}},[P,K]),(0,s.useEffect)(()=>{if(P&&y){let e;let t=t=>{var i;(null==P?void 0:null===(i=P.config)||void 0===i?void 0:i.vid)===t&&(e=Z(!0))};return P.on("preplay",t),()=>{P.off("preplay",t),null==e||e()}}},[P,K,y]),(0,s.useEffect)(()=>{if(!!F)try{var e,t,i,n,r,o;let a=B.current;null===(i=(null===(n=P.video)||void 0===n?void 0:n.sourceNode)||(null===(o=P.video)||void 0===o?void 0:null===(r=o.audioMedia)||void 0===r?void 0:r.sourceNode))||void 0===i||null===(t=i.connect)||void 0===t||t.call(i,null==a?void 0:null===(e=a.audioCtx)||void 0===e?void 0:e.destination),P.volumeBalanceState=A.l.Off}catch(e){}},[P,F]),null},F=e=>{let t=(0,P.N)();return(0,o.jsx)(R.k,{componentName:"VolumeBalance",Slardar:t,children:(0,o.jsx)(V,(0,r._)({},e))})}},977240:function(e,t,i){"use strict";i.r(t),i.d(t,{PlayBackSetting:function(){return F},PlayBackSettingInner:function(){return V},SELECT_LIST:function(){return A},SELECT_LIST_MAP:function(){return M}});var n=i(480333),r=i(629686);i(490629),i(932651),i(104882);var o=i(320165),a=i(358986),l=i(734123),s=i(502615),u=i(101199),d=i(469935),c=i.n(d),f=i(379745),h=i(426038),v=i(939165),_=i(911159),m=i(414061),p=i(995270),g=i(601034),y=i(499059),w=i(8013),b=i(749113),C=i(759894),S=i(794645),k=i(913285),x=i(746517);i(608956);var I=i(63601),L=i(124834),E=i(310383),T=i(37285),P=i(44599),N=i(40137),R=i(193143);let A=["0.75","1.0","1.25","1.5","2.0"],M={[f.$.Normal]:["0.75","1.0","1.25","1.5","1.75","2.0","3.0"],[f.$.Safari]:["0.75","1.0","1.25","1.5","1.75","2.0"]},D=!1;function O(e){let{playbackRate:t,xgCase:i,hasSelect:n,disable:r,player:s,loginBlock:d,loginDispatch:v,isActive:_,showTip:C=!1,speedType:k=f.$.Normal,abtest:I,playBackRatioChanged:L,isDyPlayer:E}=e,P=(0,N.H)("speed"),[R,A]=(0,u.useState)(!1),O=E?"douyin-player":"xgplayer";(0,u.useEffect)(()=>{let e=e=>{let{rate:t,click_method:n}=e;i.onPlayratioClick({rate:t,click_method:n}),s.emit(l.Events.USER_ACTION,{action:"speed_change",pluginName:"PlayBackSettingPlugin",rate:t})};if(s)return null==s||s.on(T.B.UpdateRadio,e),()=>{null==s||s.off(T.B.UpdateRadio,e)}},[s,i]);let j=(0,u.useCallback)(e=>{var t,i,n;null==e||null===(t=e.stopPropagation)||void 0===t||t.call(e),m.emit(m.EVENT.videoStopPlayNext),((0,p.QD)()||document.querySelector(".isMiniWindow"))&&m.emit(m.EVENT.changeMinWindows,{event:"close",isMiniWin:!1,clickMethod:"control_speed_block"}),S.Z.sendLog("clickHoverLogin",{enter_method:"speed_up",enter_from:(0,g.yW)(),params_for_special:"uc_login"}),(0,x.default)({headerText:"登录后即可切换倍速",success:async()=>{null==v||v({type:"updateUserInfo"}),m.emit(m.EVENT.videoRemoveStopPlayNext),y.Le.setConfig(y.gI.disableSpeed,!1),A(!1),(null==e?void 0:e.callback)?null==e||e.callback():D=!0},next:`https://${null===(n=window)||void 0===n?void 0:null===(i=n.location)||void 0===i?void 0:i.host}`,enterMethod:"speed_up",onClose:()=>{m.emit(m.EVENT.videoRemoveStopPlayNext)}})},[d,v,I]);return((0,u.useEffect)(()=>{C&&(D=!1,a.Util.addClass(i.root,"login-slide-show"),setTimeout(()=>{a.Util.removeClass(i.root,"login-slide-show")},3e3))},[C]),(0,u.useEffect)(()=>{if(s&&_){let e=m.listen(m.EVENT.loginBlockKeyBoard,e=>{let{speed:t,callback:i}=e;t&&s.isUserActive&&j({callback:i})});return()=>e()}},[j,s,_]),(0,u.useEffect)(()=>{s&&_&&(d?(A(!0),y.Le.setConfig(y.gI.disableSpeed,!0)):(A(!1),y.Le.setConfig(y.gI.disableSpeed,!1)))},[d,s,_]),(0,u.useEffect)(()=>{if(s&&_){let e=()=>{let e=s.playbackRate;e>3&&(e=1,s.playbackRate=e,(0,w.t_)(h.SessionStorageKeys.PlayerPlaybackratio,e))};return s.on(l.Events.RATE_CHANGE,e),()=>{s.off(l.Events.RATE_CHANGE,e)}}},[s,_]),(0,u.useEffect)(()=>{s&&_&&void 0===M[k].find(e=>Number(e)===Number(t))&&(s.playbackRate=1)},[t,k,s,_]),r)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:`${O}-setting-playbackRatio disabled`,children:"倍速"}),(0,o.jsx)("div",{className:"xgTips",children:"广告视频不支持倍速功能"})]}):R?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{onClick:j,className:`${O}-setting-playbackRatio`,children:b.a.t("double_speed",{},"倍速")}),(0,o.jsx)("div",{className:c()("xgTips",{showTip:!0}),children:(0,o.jsxs)("div",{className:c()("blockLoginText"),children:["登录后即可切换倍速",(0,o.jsx)("span",{className:"blockLoginBtn",onClick:j,children:"立即登录"})]})})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:P,className:`${O}-setting-playbackRatio`,children:i.getIconText(t,n,k,L)}),(0,o.jsx)("div",{className:`${O}-slider ${O}-box-douyin`,children:(0,o.jsx)("div",{className:`${O}-setting-content`,children:(0,o.jsx)("div",{className:`${O}-playratio-wrap`,children:M[k].map(e=>(0,o.jsxs)("div",{"data-id":e,className:c()({select:Number(t)===Number(e)},`${O}-playratio-item`),onClick:()=>{i.onPlayratioClick({rate:e}),s.emit(l.Events.USER_ACTION,{action:"speed_change",pluginName:"PlayBackSettingPlugin",rate:e})},children:[e,"x"]},e))})})})]})}class j extends l.Plugin{static get pluginName(){return"PlayBackSettingPlugin"}static get defaultConfig(){return{position:a.POSITIONS.CONTROLS_RIGHT,index:6.5,className:"xgplayer-playback-setting"}}afterCreate(){if(this.config.disable){this.onPlayRatioChange(1),this.bind("mouseenter",this.onMouseenter),this.bind(["blur","mouseleave"],this.onMouseleave);return}this.bind("mouseenter",this.onMouseenter),this.bind(["blur","mouseleave"],this.onMouseleave),this.player.on("updatePlayBackRatio",this.updatePlayBackRatio),this.updatePlayBackRatio()}onPlayratioClick(e){var t,i;let{rate:n,click_method:r,notStorage:o}=e;if(Number(n)===Number(this.player.playbackRate))return!1;null===(t=(i=this.config).onRatioClick)||void 0===t||t.call(i,{rate:n,click_method:r,notStorage:o}),this.onPlayRatioChange(n),m.emit(m.EVENT.playbackRateClick)}onPlayRatioChange(e){this.player&&(this.player.config.defaultPlaybackRate=Number(e),this.player.playbackRate=Number(e)),this.config.playBackRatio=Number(e),this.renderRoot(),a.Util.removeClass(this.root,"slide-show")}getIconText(e,t,i,n){let r=M[i].find(t=>Number(t)===Number(e));return n?`${r}x`:t&&void 0!==r?`${r}x`:b.a.t("double_speed",{},"倍速")}destroy(){this.player.playbackRate=1,this.player.config.defaultPlaybackRate=1,this.unbind("mouseenter",this.onMouseenter),this.unbind(["blur","mouseleave"],this.onMouseleave),this.player.off("updatePlayBackRatio",this.updatePlayBackRatio),(0,P.v)(this)}updateConfig(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.config=(0,r._)({},this.config,e),this.renderRoot()}renderRoot(){var e;let t=this.config.playBackRatio||1,{disable:i,loginBlock:n,loginDispatch:r,isActive:a,speedType:l,abtest:s}=this.config,{playerPermanentlyShowInfo:u}=(null===(e=this.player)||void 0===e?void 0:e.config)||{};if(this.root){let e=(0,o.jsx)(O,{hasSelect:null!==(0,w.G)(h.SessionStorageKeys.PlayerPlaybackratio),playBackRatioChanged:this.config.playBackRatioChanged,playbackRate:t,playerPermanentlyShowInfo:u,onMouseEnter:this.onMouseenter,onMouseLeave:this.onMouseleave,xgCase:this,disable:i,player:this.player,loginBlock:n,loginDispatch:r,isActive:a,showTip:D,speedType:l,abtest:s});(0,P.s)(this,e)}}render(){return` `}constructor(...e){super(...e),(0,n._)(this,"timeoutId",void 0),(0,n._)(this,"updatePlayBackRatio",()=>{var e;if(this.config.disable){this.onPlayRatioChange(1);return}let t=(0,w.G)(h.SessionStorageKeys.PlayerPlaybackratio)||1;null===this||void 0===this||null===(e=this.onPlayRatioChange)||void 0===e||e.call(this,t)}),(0,n._)(this,"onLongPressCallback",(e,t)=>{Number(e)!==Number(this.player.playbackRate)&&(this.config.playBackRatioChanged=e,this.onPlayRatioChange(e),!t&&(0,w.t_)(h.SessionStorageKeys.PlayerPlaybackratio,Number(e)))}),(0,n._)(this,"onMouseleave",()=>{if(!this.config.disable)a.Util.removeClass(this.root,"slide-show"),this.emit("icon_mouseleave",{pluginName:this.pluginName})}),(0,n._)(this,"onMouseenter",()=>{if(!this.config.disable)this.emit("icon_mouseenter",{pluginName:this.pluginName}),this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),a.Util.addClass(this.root,"slide-show"),this.player.emit("playRatioPanelShow",this.player.playbackRate)})}}class B extends s.di{static get pluginName(){return"PlayBackSettingPlugin"}static get defaultConfig(){return{position:s.PZ.CONTROL_RIGHT,index:6}}afterPlayerInit(){this.el.addEventListener("blur",this.onMouseleave),this.el.addEventListener("mouseenter",this.onMouseenter),this.el.addEventListener("mouseleave",this.onMouseleave),this.updatePlayBackRatio(),this.renderRoot()}configDidUpdate(){this.renderRoot()}onPlayratioClick(e){var t,i;let{rate:n,click_method:r,notStorage:o}=e;if(Number(n)===Number(this._player.playbackRate))return!1;null===(t=(i=this._config).onRatioClick)||void 0===t||t.call(i,{rate:n,click_method:r,notStorage:o}),this.onPlayRatioChange(n),m.emit(m.EVENT.playbackRateClick)}onPlayRatioChange(e){this._player.updateConfig({baseConfig:{defaultPlaybackRate:Number(e)}}),this._player.playbackRate=Number(e),this._config.playBackRatio=Number(e),this.renderRoot(),a.Util.removeClass(this.el,"slide-show")}getIconText(e,t,i,n){let r=M[i].find(t=>Number(t)===Number(e));return n?`${r}x`:t&&void 0!==r?`${r}x`:b.a.t("double_speed",{},"倍速")}beforeDestroy(){this.el.removeEventListener("mouseenter",this.onMouseenter),this.el.removeEventListener("mouseleave",this.onMouseleave),this.el.removeEventListener("blur",this.onMouseleave),(0,P.v)(this)}updateConfig(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.assign(this._config,e),this.renderRoot()}renderRoot(){let e=this._config.playBackRatio||1,{disable:t,loginBlock:i,loginDispatch:n,isActive:r,speedType:a,abtest:l}=this._config;if(this.el){let s=(0,o.jsx)(O,{hasSelect:null!==(0,w.G)(h.SessionStorageKeys.PlayerPlaybackratio),playBackRatioChanged:this._config.playBackRatioChanged,playbackRate:e,onMouseEnter:this.onMouseenter,onMouseLeave:this.onMouseleave,xgCase:this,disable:t,player:this._player,loginBlock:i,loginDispatch:n,isActive:r,showTip:D,speedType:a,abtest:l,isDyPlayer:!0});(0,P.s)(this,s)}}render(){return''}constructor(...e){super(...e),(0,n._)(this,"timeoutId",void 0),(0,n._)(this,"updatePlayBackRatio",e=>{var t;if(this._config.disable){this.onPlayRatioChange(1);return}let i=e||(0,w.G)(h.SessionStorageKeys.PlayerPlaybackratio)||1;e&&(0,w.t_)(h.SessionStorageKeys.PlayerPlaybackratio,Number(i)),null===this||void 0===this||null===(t=this.onPlayRatioChange)||void 0===t||t.call(this,i)}),(0,n._)(this,"onLongPressCallback",(e,t)=>{Number(e)!==Number(this._player.playbackRate)&&(this._config.playBackRatioChanged=e,this.onPlayRatioChange(e),!t&&(0,w.t_)(h.SessionStorageKeys.PlayerPlaybackratio,Number(e)))}),(0,n._)(this,"onMouseleave",()=>{if(!this._config.disable)a.Util.removeClass(this.el,"slide-show")}),(0,n._)(this,"onMouseenter",()=>{if(!this._config.disable)this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),a.Util.addClass(this.el,"slide-show"),this._player.emit("playRatioPanelShow",this._player.playbackRate)})}}let V=e=>{let{awemeInfo:t,logParams:i,isActive:n,disable:o,loginBlock:a,loginDispatch:l,speedType:s,abtest:d}=e,c=(0,I.n)(),f=(0,I.g)(),p=(0,u.useRef)(null);p.current=(0,u.useCallback)(e=>{var n,o;let{rate:a,click_method:l,notStorage:s}=e;"longPress"!==l&&S.Z.sendLog("clickVideoSpeed",(0,r._)({urlParamList:["previous_page"],author_id:null==t?void 0:null===(n=t.authorInfo)||void 0===n?void 0:n.uid,group_id:null==t?void 0:t.awemeId,log_pb:null==t?void 0:t.logPb,item_duration_ms:(null==t?void 0:null===(o=t.video)||void 0===o?void 0:o.duration)||0,enter_from:(0,g.yW)(),speed:Number(a).toFixed(2),is_small_window:(0,R.f)()?"1":"0",small_window_scene:(0,R.f)()?_.w_.getState().smallWindowScene:"",click_method:l,player_display_mode:(0,C.Ok)()},i)),!s&&(0,w.t_)(h.SessionStorageKeys.PlayerPlaybackratio,Number(a))},[i,t]);let y=(0,u.useMemo)(()=>f?B:j,[f]),b=(0,u.useMemo)(()=>(null==t?void 0:t.awemeType)===68,[t]);return(0,v.o)(()=>{if(c&&!b){var e;if(2===c.config.reuse&&(null==c?void 0:null===(e=c.getPlugin)||void 0===e?void 0:e.call(c,"PlayBackSettingPlugin")))return()=>{};let t={abtest:d,onRatioClick:function(){for(var e=arguments.length,t=Array(e),i=0;i{var e;(null==c?void 0:null===(e=c.getPlugin)||void 0===e?void 0:e.call(c,"PlayBackSettingPlugin"))&&2!==c.config.reuse&&c.unRegisterPlugin("PlayBackSettingPlugin",!0)}}},[c,b,d,f,t]),(0,v.o)(()=>{var e;c&&2===c.config.reuse&&(null==t?void 0:t.awemeType)===68&&(null==c?void 0:null===(e=c.getPlugin)||void 0===e?void 0:e.call(c,"PlayBackSettingPlugin"))&&c.unRegisterPlugin("PlayBackSettingPlugin",!0)},[c,t,d]),(0,v.o)(()=>{let e=null==c?void 0:c.getPlugin("PlayBackSettingPlugin");e&&(e.updateConfig({isActive:n,disable:o,loginBlock:a,loginDispatch:l,abtest:d}),e.updatePlayBackRatio(),m.emit(m.EVENT.controlAdapt))},[c,n,o,d,a,l,t]),(0,u.useEffect)(()=>{if(c&&n){var e;let t=null==c?void 0:null===(e=c.getPlugin)||void 0===e?void 0:e.call(c,"PlayBackSettingPlugin");t&&!o&&!a&&(null==t||t.updatePlayBackRatio());let i=m.listen(m.EVENT.syncInteraction,()=>{t&&(null==t||t.updatePlayBackRatio())});return()=>{i()}}},[n,c,o,a]),(0,u.useEffect)(()=>{if(c){var e;let t=null==c?void 0:null===(e=c.getPlugin)||void 0===e?void 0:e.call(c,"PlayBackSettingPlugin");t&&!o&&!a&&(null==t||t.updatePlayBackRatio());let i=m.listen(m.EVENT.playbackRateClick,()=>{t&&(null==t||t.updatePlayBackRatio())});return()=>{i()}}},[c,o,a]),(0,L.u)(c,T.B.ChangePlayRate,e=>{let{rate:t,notStorage:i,click_method:r}=e;if(c&&n){var o;let e=null==c?void 0:null===(o=c.getPlugin)||void 0===o?void 0:o.call(c,"PlayBackSettingPlugin");e&&(null==e||e.onLongPressCallback(t,i))}}),null},F=e=>{let t=(0,E.N)();return(0,o.jsx)(k.k,{componentName:"PlayBackSetting",Slardar:t,children:(0,o.jsx)(V,(0,r._)({},e))})}},315933:function(e,t,i){"use strict";i.d(t,{K:function(){return a}});var n=i(356336),r=i(618759),o=i(428658);let a=e=>{var t,i,a;let{awemeInfo:l,abtestData:s}=e;return!!(0,r.DT)()&&(!!((null==l?void 0:null===(a=l.video)||void 0===a?void 0:null===(i=a.bitRateList)||void 0===i?void 0:null===(t=i.some)||void 0===t?void 0:t.call(i,e=>2===e.isH265))&&(0,o.Yk)())&&(null==s?void 0:s.useClientH266)===n.UseClientH266.On||!1)}},632887:function(e,t,i){"use strict";let n;i.d(t,{YO:function(){return b},nq:function(){return C}}),i(706056),i(490629),i(228983),i(759943),i(932651);var r=i(648711),o=i(190516),a=i(231834),l=i(855357),s=i(426038),u=i(206698),d=i(601034),c=i(618759),f=i(428658),h=i(709705),v=i(499059),_=i(703259),m=i(94109),p=i(767192),g=i(714175),y=i(819765);let w=()=>void 0!==n?n:((0,r.Gb)()&&(n=1),n),b=e=>{var t,i,n,r,o,a,b;let{abtestData:C,awemeInfo:S,isInnerFeed:k,isModalVideo:x,modalEnterFrom:I,scene:L,missReasonCb:E}=e;null==S||S.awemeId;let T=e=>(null==E||E(e),!1);if(!(null==C?void 0:null===(t=C.SR)||void 0===t?void 0:t.isOpen))return T(g.P$.AbClosed);if((null==S?void 0:S.awemeType)!==l.e.Normal)return T(g.P$.NotNormalVideo);let P=(0,p.G)();if("recommend"===(0,d.yW)()&&P<(null!==(n=null==C?void 0:null===(i=C.SR)||void 0===i?void 0:i.effectOrder)&&void 0!==n?n:3))return T(g.P$.RecommendEffectOrderBlocked);if((0,m.Ni)(S))return T(g.P$.SecretMp4);if((0,c.DT)()){if(!(0,f.b4)()||!(0,f._u)())return T(g.P$.ClientHardwareNotSupported)}else{if((0,y.i)())return T(g.P$.WebDegradePermanently);if(!(0,h.$o)(s.LocalStorageKeys.PowerEfficient)&&!(null==C?void 0:null===(b=C.srRestrictionEasing)||void 0===b?void 0:b.no_power_efficient))return T(g.P$.PowerEfficientUnsupported);if(!w())return(0,y.l)(1),T(g.P$.PureSrUnsupported);if((0,c.tq)())return(0,y.l)(1),T(g.P$.MobileUnsupported);if(null==S?void 0:S.isPrivate)return T(g.P$.PrivateVideo);if(x&&![u.a.WaterFall,u.a.UserCollection,u.a.UserLike,u.a.UserPost,u.a.UserRecord].includes(I))return T(`${g.P$.ModalEnterFromUnsupported}__${String(I)}`);if(k&&!(null==C?void 0:null===(r=C.SR)||void 0===r?void 0:r.enableInnerFeed))return T(g.P$.InnerFeedDisabled);if(!(null==C?void 0:null===(a=C.SR)||void 0===a?void 0:null===(o=a.applyPage)||void 0===o?void 0:o.includes((0,d.yW)())))return T(g.P$.PageNotSupported);if(v.Le.getConfig(v.gI.SrDegrade))return T(g.P$.VisitDegrade);if((0,_.if)({abtestData:C,awemeInfo:S}))return T(g.P$.WebSoftDecodeUnsupported)}return!0},C=e=>{var t;let{config:i={},enableSr:n,abtestData:r}=e;if(i.enableSr=n,!n||(0,c.DT)())return;i.plugins=[...i.plugins||[],o.o];let l=a.i.split(".").join("_"),s={wasmUrl:`https://lf-douyin-pc-web.douyinstatic.com/obj/douyin-pc-web/super_resolution_${l}.wasm`,isSingle:!0,useDelayedSR:!0,maxWidth:1920,maxHeight:1920,sizeChangeDelayRender:!1,sizeChangeDelayRenderCount:3};i.srplugin=Object.assign({},s,null==r?void 0:null===(t=r.SR)||void 0===t?void 0:t.pluginConfig)}},677001:function(e,t,i){"use strict";i.d(t,{_:function(){return d},m:function(){return u}});var n=i(426038),r=i(237869),o=i(103680),a=i(19277),l=i(409250),s=i(915821);let u=async()=>{var e,t;if(!(null===(e=window.TTE_ENV)||void 0===e?void 0:e.isElectron)||!(0,r.XG)())return{};let i=(await o.invoke("GET_CHANNEL_ID")).data,s=(await o.invoke("getWebId")).data,u=null===(t=(await o.invoke("GET_VERSION")).data)||void 0===t?void 0:t.version;return{webcast_sdk_version:0,device_id:s,os_version:window.TTE_ENV.osVersion,device_platform:"pc_mas",package:"com.bytedance.douyin.desktop",app_version:u,aid:6383,ac:"wifi",appTheme:(0,a.Dr)(l.Q.getItem({sKey:n.CookieKeys.Theme})),js_sdk_version:"2.4.1",version_code:u,channel:i,need_personal_recommend:1,device_type:"mas",build_number:"12173395",screen_width:window.screen.width,language:document.documentElement.lang}},d=async()=>{var e,t,i;if(!(0,r.XG)()||!(null===(e=await o.invoke("isIapReady"))||void 0===e?void 0:e.data))return!1;let n=null===(i=await o.invoke("GET_VERSION"))||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:t.version;return(0,s.y)(n,">=","5.0.0")}},960496:function(e,t,i){"use strict";i.d(t,{k4:function(){return c},tJ:function(){return u},uZ:function(){return a}}),i(14275),i(759943);var n=i(397176),r=i(777296);let o=!1,a=o=n.s?"boe"===r.env.TCE_HOST_ENV:/boe/.test(window.location.host),l="https://",s="http://",u=a?s:l,d={prod:{sso:`${l}sso.douyin.com`,next:`${l}www.douyin.com/`},boe:{sso:`${s}sso-boe.douyin.com`,next:`${s}www-boe.douyin.com/`}},c=a?d.boe:d.prod},414800:function(e,t,i){"use strict";i.d(t,{y:function(){return n}});var n={DetectHevcFrame:"DetectHevcFrame",ModalVideo:"ModalVideo",DownloadDirSelectionPanel:"DownloadDirSelectionPanel",MoreBtn:"MoreBtn",ImEntry:"ImEntry",ImEntryOld:"ImEntryOld",ImEntryVmok:"ImEntryVmok",NoticeEntry:"NoticeEntry",NoticeEntryOld:"NoticeEntryOld",WindowToolBar:"WindowToolBar",RechargeBtn:"RechargeBtn",NewWallpaper:"NewWallpaper",SearchBar:"SearchBar",SearchBarhopDetailSideCard:"ShopDetailSideCard",AiSideCard:"AiSideCard",AiCard:"AiCard",App:"App",VideoDetail:"VideoDetail",ShareModal:"ShareModal",ShopDetailSideCard:"ShopDetailSideCard",AiHelper:"AiHelper",OutsideSwitchButton:"OutsideSwitchButton",SettingsPanelFragment:"SettingsPanelFragment",VideoTag:"VideoTag"}},345991:function(e,t,i){"use strict";i.d(t,{JO:function(){return o},PH:function(){return l},g9:function(){return u},jZ:function(){return a},k6:function(){return d},lp:function(){return n},p4:function(){return s},sN:function(){return r}});let n={"^/aisearch/share":"ai_search_share","/search/.*":"search_result","/preload-living":"preload_living","/live/.*":"live_detail","^/channel/.*|^/live$":"main_page","^/activity/.*":"special_subject","^/aisearch.*":"ai_search","^/jingxuan.*":"discover","^/hot$":"hot","^/$":"recommend","^/follow/?$":"follow","^/video/.*|^/collection/.*":"video_detail","^/article/.*":"article_detail","^/category/.*":"main_category_page","^/hot_live/?$":"hot_live_page","^/movie/.*":"movie","^/vs/?$":"vs","^/vsdetail/.*":"replay_detail","^/lvdetail/.*":"vs_detail","^/htmlmap/*":"sitemap","^/hashtag/*":"tag_detail","^/music/*":"music_detail","^/downloadpage(/.*)?":"download","^/friend":"friend","^/vschannel/.*":"vschannel","^/light/.*":"lark","^/musicplaylist/*":"musicplaylist","^/topic/?$":"keywords_list_new","^/topic/[0-9]+":"keywords_expansion_new","^/zhuanti/?$":"keywords_list","^/zhuanti/[0-9]+":"keywords_expansion","^/mall/item/.*":"product_detail","^/help":"help","^/note/.*":"note_detail","^/user/self":"personal_homepage","^/wallpaper":"wallpaper_setting","^/shipin/?$":"shipin_home","^/shipin/[0-9]+":"shipin_detail","^/shipin/fenlei/.*":"shipin_list","^/series/?$":"playlet","^/creatorvideo/.*":"creator_center","^/chat(\\/[^/]*|\\?.*)?$":"chat","^/microgame$":"microgame","^/gameactivitydetail$":"gameactivitydetail"},r="/$|^/jingxuan.*|^/vs/?$|^/hot$|^/channel/.*|^/search/.*",o="^/$|^/activity/[a-zA-Z0-9]{1,}.*|^/channel/[a-zA-Z0-9]{1,}.*|^/hot/?$|^/live$|^/hot_live/?$|^/category/.*|^/categorynew/.*|^/aisearch(/.*)?$|^/recommend(/.*)?$|^/follow(/.*)?$|^/jingxuan(/.*)?$|^/vs(/.*)?$|^/htmlmap/*|^/friend(/.*)?$|^/zhuanti/*?|^/topic/*?|^/user/self/?$|^/asiangames/?$|^/olympics/?$|^/root/search/.*?$|^/follow/live/.*?$|^/root/live/.*?$|^/series(/.*)?$|^/chat(/.*)?$|^/microgame(/.*)?$",a="^/$|^/activity/[a-zA-Z0-9]{1,}.*|^/channel/[a-zA-Z0-9]{1,}.*|^/hot/?$|^/live$|^/hot_live/?$|^/category/.*|^/categorynew/.*|^/aisearch(/.*)?$|^/recommend(/.*)?$|^/follow(/.*)?$|^/jingxuan(/.*)?$|^/vs(/.*)?$|^/htmlmap/*|^/friend(/.*)?$|^/zhuanti/*?|^/topic/*?|^/user/.*?$|^/video/.*?$|^/note/.*?$|^/vsdetail/.*?$|^/lvdetail/.*?$|^/vschannel/.*?$|^/hashtag/.*?$|^/music/.*?$|^/mall/item/.*?$|^/wallpaper/*?|^/search/.*?|^/shipin/*?|^/asiangames/?$|^/olympics/?$|^/root/search/.*?$|^/follow/live/.*?$|^/root/live/.*?$|^/series(/.*)?$|^/chat(/.*)?$|^/microgame(/.*)?$|^/article/.*?$",l="video_detail|note_detail|article_detail|vschannel|vsdetail|vs_detail|tag_detail|music_detail|keywords_expansion|product_detail|others_homepage|personal_homepage",s="^/downloadpage(/.*)?",u="^/help|^/downloadpage(/.*)?|^/follow/?$|^/light/.*|^/friend/?$|^/htmlmap/*|^/link$|^/zhuanti/*?|^/topic/*?|^/shipin/*?|^/user/self/?$|^/aisearch/share/?$|^/gameactivitydetail/?$",d=["/LynxLogin","/LynxRiskControl","/LynxImEntry","/LynxPostDropdown","/LynxUserMenuPanel","/LynxWallpaper","/LynxNoticeEntry","/LynxRecharge","/LynxSettingsPanel","/LynxReport"]},171119:function(e,t,i){"use strict";i.d(t,{YY:function(){return n},bu:function(){return r},lf:function(){return o}});var n={Push:"push",Tray:"tray"},r={Auto:"auto",IM:"im",Interact:"interact",IMSend:"im_send",Comment:"comment",CommentMentioned:"comment_mentioned",ShareBoard:"share_board",FriendTab:"friend_tab",Follow:"follow"};let o={push:{im:{count:5,closeCount:3,showTime:3,pushKeyList:["IMNotification"]},interact:{storeKey:"im",count:5,closeCount:3,showTime:3,pushKeyList:["DiggNotice","CommentNotice","AtNotice"]},share_board:{storeKey:"im",count:5,closeCount:3,showTime:3,pushKeyList:["IMNotification"]},im_send:{count:5,closeCount:0,showTime:3,pushKeyList:["IMNotification"]},comment:{count:5,closeCount:3,showTime:3,pushKeyList:["CommentNotice"]},comment_mentioned:{storeKey:"comment",count:5,closeCount:3,showTime:3,pushKeyList:["AtNotice"]},friend_tab:{count:5,closeCount:2,showTime:7,pushKeyList:["IMNotification","DiggNotice","CommentNotice","AtNotice"]},follow:{count:5,closeCount:2,showTime:7,pushKeyList:["LiveNotification"]}},tray:{auto:{count:3,closeCount:3,showTime:7},im:{count:5,closeCount:3,showTime:3},interact:{storeKey:"im",count:5,closeCount:3,showTime:3},share_board:{storeKey:"im",count:5,closeCount:3,showTime:3},im_send:{count:5,closeCount:0,showTime:3},comment:{count:5,closeCount:3,showTime:3},comment_mentioned:{storeKey:"comment",count:5,closeCount:3,showTime:3},friend_tab:{count:5,closeCount:2,showTime:7}}}},8996:function(e,t,i){"use strict";i.r(t),i.d(t,{ENTER_FROM:function(){return o},LOG_PASS_THROW_PARAMS:function(){return n},PREVIOUS_PAGE:function(){return r}});let n="extra_params",r="previous_page",o="enter_from"},987826:function(e,t,i){"use strict";i.r(t),i.d(t,{APPNAME:function(){return f},APP_ID:function(){return o},AWEME_IM_RESOURCE_TYPE:function(){return b},AWEME_PC_RESOURCE_TYPE:function(){return w},AppID2AppName:function(){return y},BASE_NAME:function(){return s},BIDID:function(){return c},CLIENT_APPNAME:function(){return h},CLIENT_APP_ID:function(){return a},FEEDBACK_Z_INDEX:function(){return v},FEELGOOD_APP_KEY:function(){return u},IMAGEX_AVATAR_SERVER_ID:function(){return _},IMAGEX_SEARCH_SERVER_ID:function(){return m},OTHER_APP_ID:function(){return g},SDKURL:function(){return d},SLARDAR_BID:function(){return l},TEA_PROJECT_ID:function(){return p}});var n=i(960496);let r=n.uZ?"http://":"https://",o=6383,a=338523,l="douyin_website",s="",u="cbae2a42b075f1dfc39b9e7df764637c821e7bf2",d=`${r}${n.uZ?"helpdesk-boe":"helpdesk"}.bytedance.com/sites/standalone/helpcenter_pc/`,c="23",f="aweme",h="aweme_client",v=9999,_="c9aec8xkvj",m="1im5hsdavd",p=306472,g={DOUYIN_APP:1128,DOUYIN_SELECT:568863,DOUYIN_HOTSOON:8663,DOUYIN_LITE:2329},y={1128:"aweme",568863:"select",8663:"hootsoon",2329:"aweme_lite"},w=600,b=3},495800:function(e,t,i){"use strict";i.d(t,{$:function(){return o}});var n=i(480333);i(374954),i(490629);var r=i(806904);class o{_init(){this.messageQueue.push(...this.config.defaultMessage)}work(){this.cancel=(0,r.l)(()=>{if(this.messageQueue.length>0){let e=this.messageQueue.shift();this.consume(e),this.work()}else this.status="stop"})}start(){"stop"===this.status&&(this.status="processing",this.work())}stop(){if("processing"===this.status){var e;this.status="stop",null===this||void 0===this||null===(e=this.cancel)||void 0===e||e.call(this)}}publish(e){this.messageQueue.push(e),this.start()}consume(e){var t,i;null===(i=this.config)||void 0===i||null===(t=i.consumeHandler)||void 0===t||t.call(i,e)}destory(){this.stop(),this.cancel=null,this.messageQueue=[],this.config=null}constructor(e){(0,n._)(this,"messageQueue",[]),(0,n._)(this,"config",void 0),(0,n._)(this,"status",void 0),(0,n._)(this,"cancel",void 0),this.config=e,this.status="stop",this._init()}}},779280:function(e,t,i){"use strict";i.d(t,{HP:function(){return s},PD:function(){return u},lH:function(){return d}}),i(591964),i(490629),i(117232);var n=i(267252),r=i(382964),o=i(926452),a=i(734558),l=i(154370),s={avg:"avg",sum:"sum",max:"max",min:"min",count:"count",mid:"mid"};let u={avg:e=>0===e.length?0:e.reduce((e,t)=>Number(e)+Number(t),0)/e.length,count:e=>(null==e?void 0:e.length)||0,max:e=>0===e.length?0:Math.max(...e),mid:e=>{if(0===e.length)return 0;e.sort((e,t)=>e-t);let t=Math.floor(e.length/2);return(null==e?void 0:e[t])||0},min:e=>0===e.length?0:Math.min(...e),sum:e=>0===e.length?0:e.reduce((e,t)=>Number(e)+Number(t),0)},d={[n.X.play_time]:["avg","sum","max","min","mid"],[n.X.download_cnt]:["sum"],[n.X.favorite_cnt]:["sum"],[n.X.like_cnt]:["sum"],[n.X.play_cnt]:["sum"],[n.X.share_cnt]:["sum"],[n.X.comment_cnt]:["sum"],[n.X.play_finish]:["sum"],[r.w.click_like_cnt]:["sum"],[r.w.like]:[],[r.w.author_head]:[],[r.w.author_head_cnt]:["sum"],[r.w.cancel_favorite_cnt]:["sum"],[r.w.cancel_follow_cnt]:["sum"],[r.w.dislike]:[],[r.w.click_dislike_cnt]:["sum"],[r.w.favorite]:[],[r.w.click_favorite_cnt]:["sum"],[r.w.input_danmu_cnt]:["sum"],[r.w.post_danmu_cnt]:["sum"],[r.w.click_share_cnt]:["sum"],[r.w.click_report_cnt]:["sum"],[r.w.follow]:[],[r.w.click_follow_cnt]:["sum"],[o.R.post_comment_cnt]:["sum"],[o.R.click_comment_cnt]:["sum"],[a.l.modal_play_time]:["avg","sum","max","min","mid"],[l.z.hover_play_time]:["avg","sum","max","min","mid"]}},702515:function(e,t,i){"use strict";i.d(t,{P:function(){return g}});var n=i(480333),r=i(629686),o=i(402748);i(591964);var a=i(229757),l=i.n(a),s=i(390063),u=i.n(s),d=i(285406),c=i.n(d),f=i(72137),h=i.n(f),v=i(460776),_=i(216438),m=i(34632);let p=(0,_.fF)("FeartureStorage");class g{destory(){this.id=null,this.feartues=null}modFeature(e,t,i){var n,r;!(null===(n=this.feartues)||void 0===n?void 0:n[i])&&(this.feartues[i]={}),!(null===(r=this.feartues[i])||void 0===r?void 0:r[e])&&(this.feartues[i][e]=0),this.feartues[i][e]=u()(t)?t(this.feartues[i][e]):t,p(`modFeature key:${e} value:${this.feartues[i][e]} sort:${i}`),this.debug()}addFeature(e,t,i){var n;!(null===(n=this.feartues)||void 0===n?void 0:n[i])&&(this.feartues[i]={}),this.feartues[i][e]=t,p(`addFeature key:${e} value:${t} sort:${i}`),this.debug()}debug(){p("result:",l()(this.feartues))}getFeature(e,t){var i,n;return null===(n=this.feartues)||void 0===n?void 0:null===(i=n[t])||void 0===i?void 0:i[e]}getFeaturesBySort(e){var t;return null===(t=this.feartues)||void 0===t?void 0:t[e]}deleteFeature(e,t){var i,n;null===(n=this.feartues)||void 0===n||null===(i=n[t])||void 0===i||delete i[e]}getAllFeature(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e){var t,i;return(0,o._)((0,r._)({},this.feartues),{[v.yY.VideoPortrait]:null===(i=this.feartues)||void 0===i?void 0:null===(t=i[v.yY.VideoPortrait])||void 0===t?void 0:t[null===m.i||void 0===m.i?void 0:m.i.__video_portrait__]})}return this.feartues}getInferenceFeatures(){var e;return(null===(e=this.feartues)||void 0===e?void 0:e[v.yY.Inference])||{}}getNotInferenceFeatures(){return c()(this.feartues,v.yY.Inference)||{}}getPartialFeature(e){return Object.values(h()(this.feartues,e)||[]).reduce((e,t)=>(0,r._)({},e,t),{})}getId(){return this.id}getEnterFrom(){return this.enterFrom}getIsAd(){return this.isAd}getIsInModal(){return this.isInModal}getAwemeInfo(){return this.awemeInfo}setAwemeInfo(e){this.awemeInfo=e}getUniqueKey(){return`${this.id}_${this.timestamp}`}constructor({id:e,awemeInfo:t,enterFrom:i,isInModal:r}){(0,n._)(this,"awemeInfo",void 0),(0,n._)(this,"id",void 0),(0,n._)(this,"feartues",{}),(0,n._)(this,"enterFrom",void 0),(0,n._)(this,"isInModal",void 0),(0,n._)(this,"isAd",void 0),(0,n._)(this,"timestamp",void 0),this.id=e,this.timestamp=Date.now(),this.awemeInfo=t,this.enterFrom=i,this.isInModal=r||!1,this.isAd=!!(null==t?void 0:t.isAds)}}},267252:function(e,t,i){"use strict";i.d(t,{X:function(){return n}});var n={video_type_live:"video_type_live",video_type_long:"video_type_long",video_type_ad:"video_type_ad",play_time:"play_time",video_time:"video_time",play_finish:"play_finish",like_cnt:"like_cnt",follow_cnt:"follow_cnt",share_cnt:"share_cnt",favorite_cnt:"favorite_cnt",download_cnt:"download_cnt",play_cnt:"play_cnt",comment_cnt:"comment_cnt"}},472263:function(e,t,i){"use strict";i.d(t,{n:function(){return C}});var n=i("480333"),r=i("629686"),o=i("402748"),a=i("460776"),l=i("238844");class s extends l.d{_listener(e){}constructor(e){super((0,o._)((0,r._)({},e),{eventNames:[],features:[]})),(0,n._)(this,"featureCollectorType",a.yY.Feed)}}var u=i("358799"),d=i("971149"),c=i("739870"),f=i("344147"),h=i("621297"),v=i("434441"),_=i("154370");let m={[v.N.video_cover_click]:e=>{let{data:t,id:i,collector:n,featureStorageManager:r}=e;n.modFeature({id:i,key:_.z.video_cover_click,value:1}),n.modFeature({id:i,key:_.z.video_cover_click_cnt,value:e=>e+1})},[v.N.hover_play_time]:e=>{let{data:t,id:i,collector:n}=e;n.modFeature({id:i,key:_.z.hover_play_time,value:e=>e+((null==t?void 0:t.duration)||0)})}},p={};class g extends l.d{_listener(e){let{eventName:t,data:i,sessionId:n}=e,r=null==i?void 0:i.group_id;(0,m[t])({data:i,id:r,collector:this,featureStorageManager:this.feartureStorageManager})}initFeature(e){let{id:t,awemeInfo:i}=e;Object.values(_.z).forEach(e=>{let n=null==p?void 0:p[e],r=n?n({awemeInfo:i}):0;this.addFeatureImmediate({id:t,key:e,value:r})})}constructor(e){super((0,o._)((0,r._)({},e),{eventNames:Object.keys(m),features:Object.values(_.z)})),(0,n._)(this,"featureCollectorType",a.yY.Waterfall)}}i("374954"),i("591964");var y=i("134879");class w extends l.d{destory(){super.destory(),null!==this.cleanTimer&&(window.clearInterval(this.cleanTimer),this.cleanTimer=null)}_listener(e){let{eventName:t,data:i}=e;t===v.N.livesdk_perf_live_stall&&this.handleLiveStall(i)}handleLiveStall(e){let t={fps_drop:(null==e?void 0:e.stall_fps_drop_rate)||0,stream_rate:(null==e?void 0:e.stall_stream_rate)||0,fit_rate:(null==e?void 0:e.stall_fit_rate)||0,memory_limit:(null==e?void 0:e.memory_limit)||0,memory_total_size:(null==e?void 0:e.memory_total_size)||0,memory_used_size:(null==e?void 0:e.memory_used_size)||0,memory_device_memory:(null==e?void 0:e.memory_device_memory)||0,net_downlink:(null==e?void 0:e.net_downlink)||0,net_rtt:(null==e?void 0:e.net_rtt)||0,net_effective_type:(null==e?void 0:e.net_effective_type)||"",fps:(null==e?void 0:e.fps)||0,timestamp:Date.now()};this.mixFeatures[y.Pz.memory_limit]=t.memory_limit,this.mixFeatures[y.Pz.memory_total_size]=t.memory_total_size,this.mixFeatures[y.Pz.memory_used_size]=t.memory_used_size,this.mixFeatures[y.Pz.memory_device_memory]=t.memory_device_memory,this.mixFeatures[y.Pz.net_downlink]=t.net_downlink,this.mixFeatures[y.Pz.net_rtt]=t.net_rtt,this.mixFeatures[y.Pz.net_effective_type]=t.net_effective_type,this.mixFeatures[y.Pz.fps]=t.fps,this.stallHistory.push(t);let i=Date.now();this.stallHistory=this.stallHistory.filter(e=>i-e.timestamp<=21e3),this.calculateAndAddFeatures(this.stallHistory)}calculateAndAddFeatures(e){let t=Date.now();y.pu.forEach(i=>{let n=e.filter(e=>t-e.timestamp<=1e3*i+500);if(0===n.length)return;let r=n.reduce((e,t)=>e+t.fps_drop,0)/n.length,o=n.reduce((e,t)=>e+t.stream_rate,0)/n.length,a=n.reduce((e,t)=>e+t.fit_rate,0)/n.length;this.mixFeatures[`${y.nN.stall_fps_drop_rate}_${i}s`]=r,this.mixFeatures[`${y.nN.stall_stream_rate}_${i}s`]=o,this.mixFeatures[`${y.nN.stall_fit_rate}_${i}s`]=a})}constructor(e){super((0,o._)((0,r._)({},e),{eventNames:[v.N.livesdk_perf_live_stall],features:Object.values(y.Pz)})),(0,n._)(this,"featureCollectorType",a.yY.Performance),(0,n._)(this,"stallHistory",[]),(0,n._)(this,"cleanTimer",null)}}var b=i("781093");let C=e=>e===a.yY.Feed?s:e===a.yY.Video?u.U:e===a.yY.Comment?d.T:e===a.yY.Interactive?c.v:e===a.yY.User?f.N:e===a.yY.Modal?h.c:e===a.yY.Waterfall?g:e===a.yY.Performance?w:e===a.yY.VideoPortrait?b.R:null},59945:function(e,t,i){"use strict";i.d(t,{V:function(){return w}});var n=i(480333),r=i(629686),o=i(402748);i(490629),i(679308),i(104882),i(362051);var a=i(72137),l=i.n(a),s=i(25854),u=i(460776),d=i(304033),c=i(267252),f=i(926452),h=i(382964),v=i(434441),_=i(216438),m=i(520850),p=i(344916),g=i(120701),y=i(779280);class w extends m.E{realFeaturesFilter(e){let t=l()(e,p.Jq.authorCardPreload.real),i={};return Object.keys(t).forEach(e=>{i[`${e}_0`]=t[e]}),{reportData:i,inferenceValue:e.author_head}}predictFeaturesFilter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=l()(e,p.Jq.authorCardPreload.predict),n={};Object.keys(i).forEach(e=>{n[`${e}_${t}`]=i[e]});let r=[null==i?void 0:i.r_1,null==i?void 0:i.r_2,null==i?void 0:i.r_3,null==i?void 0:i.r_4,null==i?void 0:i.r_6,null==i?void 0:i.r_7,null==i?void 0:i.r_8,null==i?void 0:i.r_9,null==i?void 0:i.r_10,null==i?void 0:i.r_11];return{reportData:n,inferenetData:[i.video_time,i.play_time,i.like,i.play_finish,i.post_comment_cnt,i.click_comment,i.follow,i.ex_follow,i.author_head,i.video_type_long,i.video_type_ad,i.like_cnt,i.share_cnt,i.comment_cnt,i.download_cnt,...r].map(e=>e||0)}}getMixFeaturesBySingleFeatures(e){let t=this.getMixFeatursMap(),i={};Object.keys(t).forEach(n=>{let r=t[n],o=e.map(e=>e[n]);r.forEach(e=>{let t=y.PD[e](o);i[`${n}_${e}`]=t})});let n=[null==i?void 0:i.play_time_avg,null==i?void 0:i.play_time_min,null==i?void 0:i.play_time_max,null==i?void 0:i.click_comment_cnt_sum,null==i?void 0:i.play_finish_sum,null==i?void 0:i.author_head_cnt_sum,null==i?void 0:i.author_head_sum,null==i?void 0:i.click_follow_cnt_sum];return{reportData:i,inferenetData:n}}getInputFeatures(e){let t={},i=[],n=e.map(e=>(0,_.yb)(e));n.forEach((e,n)=>{let o=this.predictFeaturesFilter(e,n);t=(0,r._)({},t,o.reportData),i=[...i,...o.inferenetData]});let o=this.getMixFeaturesBySingleFeatures(n.slice(0,-1));return t=(0,r._)({},t,o.reportData),i=[...i,...o.inferenetData],{reportData:t,inferenetData:i}}async inference(e){var t,i,n;let a;if(!this.featureStorageManager)return Promise.resolve(void 0);let l=this.featureStorageManager.getAllFeatureStorages().filter(e=>"recommend"===e.getEnterFrom()).slice(-this.config.range);if((null==l?void 0:l.length)t.getId()===e),u=null==s?void 0:s.getUniqueKey(),d=l.map(e=>e.getAllFeature(!0)),c=this.getInputFeatures(d),f={};if(this.enableInference&&l.length>=this.coldStartCount){if(this.modelUrl){let e=(null==c?void 0:c.inferenetData)||[];try{let t=await this.initInferenceEngine();if(t){let i=t.inference(e),r=(null===(n=this.abTestData.authorCardPreload)||void 0===n?void 0:n.threshold)||.8,o=i>=r?1:0;this.debuglogger(`预测执行成功 score:${i}; thresholdValue:${r};inferenceResult:${o}`),0>Number(i)?(f={inferenceStatus:p.vS.fail},a=0):(f={inferenceStatus:p.vS.success,inferenceScore:i.toFixed(4),inferenceThreshold:r,inferenceResult:o},a=o)}}catch(e){f={inferenceStatus:p.vS.fail},a=void 0,this.debuglogger(`预测失败 错误信息:${e||"未知错误"}`)}}else a=0}return this.featuresMap[u]=(0,o._)((0,r._)({},c),{inferenceData:f}),this.debuglogger("Predict值记录:",null===(i=this.featuresMap)||void 0===i?void 0:null===(t=i[u])||void 0===t?void 0:t.reportData),a}listener(e){var t,i,n,a,l;let{id:s}=e;this.debuglogger(s,"采集完成");let u=null===(t=this.featureStorageManager)||void 0===t?void 0:t.getAllFeatureStorages(),d=null==u?void 0:u.find(e=>e.getId()===s&&"recommend"===e.getEnterFrom());if(!d)return;let c=null==d?void 0:d.getUniqueKey();if(null===(i=this.featuresMap)||void 0===i?void 0:i[c]){let e;let t=(0,_.yb)(null==d?void 0:d.getAllFeature(!0)),i=this.realFeaturesFilter(t);this.debuglogger("Real值记录:",i.reportData);let u=this.featuresMap[c],f=this.featureStorageManager.getUserFeature();if(this.enableInference){if((null==u?void 0:null===(a=u.inferenceData)||void 0===a?void 0:a.inferenceStatus)===p.vS.success){let t=Number(null==i?void 0:i.inferenceValue)===Number(null==u?void 0:null===(l=u.inferenceData)||void 0===l?void 0:l.inferenceResult);this.debuglogger(`本次预测值为:${u.inferenceData.inferenceResult},真实值为:${i.inferenceValue},预测结果${t?"正确":"错误"}`),e=(0,o._)((0,r._)({},null==u?void 0:u.inferenceData),{inferenceAccuracy:t})}else e=u.inferenceData}else e={inferenceStatus:p.vS.notWork};this.sendReport({real:JSON.stringify(null==i?void 0:i.reportData),predict:JSON.stringify(null==u?void 0:u.reportData),user:JSON.stringify(f),scene:this.config.scene,run_cnt:this.sendDataCnt,run_key:s,enter_from:this.config.enter_from,inference_status:null==e?void 0:e.inferenceStatus,inference_score:null==e?void 0:e.inferenceScore,inference_result:null==e?void 0:e.inferenceResult,inference_accuracy:null==e?void 0:e.inferenceAccuracy,inference_threshold:null==e?void 0:e.inferenceThreshold}),null===(n=this.featuresMap)||void 0===n||delete n[c],this.sendDataCnt++}}init(e){this.featureStorageManager=e,this.featureStorageManager.on(d.ED.featureStorageCollectorFinish,this.listener)}constructor(e){var t,i,r,o;super(e),(0,n._)(this,"createStorageReportNames",[v.H.video_request]),(0,n._)(this,"coldStartCount",2),(0,n._)(this,"mixFeatursMap",{[c.X.play_time]:[y.HP.avg,y.HP.min,y.HP.max],[f.R.click_comment_cnt]:[y.HP.sum],[c.X.play_finish]:[y.HP.sum],[h.w.author_head_cnt]:[y.HP.sum],[h.w.author_head]:[y.HP.sum],[h.w.click_follow_cnt]:[y.HP.sum]}),(0,n._)(this,"customFeatureCollectors",[u.yY.Video,u.yY.Interactive,u.yY.Comment,u.yY.VideoPortrait]),(0,n._)(this,"sceneName",g.P.AUTHOR_CARD_PRELOAD),(0,n._)(this,"featuresMap",{}),this.modelUrl=(null===(i=this.abTestData)||void 0===i?void 0:null===(t=i.authorCardPreload)||void 0===t?void 0:t.model_url)||"",this.coldStartCount=(null===(o=this.abTestData)||void 0===o?void 0:null===(r=o.authorCardPreload)||void 0===r?void 0:r.cold_start_count)||2,this.Ebiz=s.$_.DOUYIN_WEB_RECOMMEND,this.listener=this.listener.bind(this),this.initInferenceEngine()}}},103680:function(e,t,i){"use strict";let n;i.r(t),i.d(t,{AsyncCallMethod:function(){return a},ErrorCode:function(){return o.jK},addEventCenterListener:function(){return d},asyncCall:function(){return u},checkInClient:function(){return l},checkInSubWindow:function(){return h},invoke:function(){return f},on:function(){return v}}),i(679308),i(490629),i(706056);var r=i(608380),o=i(50331);let a={XHideLoading:"x.hideLoading",XResize:"x.resize",XRequestFullScreen:"x.requestFullScreen",XHide:"x.hide",XExitFullScreen:"x.exitFullScreen"},l=()=>{var e,t;return void 0!==(null===(t=window)||void 0===t?void 0:null===(e=t.TTE_ENV)||void 0===e?void 0:e.bridge)},s=e=>{var t,i,n,r;return!!l()&&(null===(r=window)||void 0===r?void 0:null===(n=r.TTE_ENV)||void 0===n?void 0:null===(i=n.bridge)||void 0===i?void 0:null===(t=i.EVENTS)||void 0===t?void 0:t.TO_MAIN_EVENT_TYPES[e])!==void 0},u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l()?(0,r.Zk)(e,t,{namespace:"@annie/electron"}):Promise.resolve({data:null,code:o.jK.EnvError,msg:"method not available"})},d=(e,t)=>l()?(0,r.wV)(e,t):()=>!1,c=["GET_MEDIA_ACCESS_STATUS","ASK_FOR_MEDIA_ACCESS","SET_ALWAYS_ON_TOP","SET_FULL_SCREENABLE","SET_FULL_SCREEN","setDesktopFollowWidgetState","changeMiniWindowHideMode","EXEC_BY_CLIENT"],f=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{if(!s(e))return{data:null,code:o.jK.EnvError,msg:"method not available"};if(!n&&(await Promise.race([new Promise(e=>{setTimeout(()=>{e(!0)},200)}),new Promise(async e=>{let t=await u("x.getAllJSB",{}).then(e=>{var t;return null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.methods}).catch(()=>[]);(null==t?void 0:t.length)>0&&(n=t),e(!0)})]),n=n||[]),n.includes(e))return u(e,t)}catch(e){}try{var i;let n=await window.TTE_ENV.bridge.invoke(e,c.includes(e)?null==t?void 0:t.data:t);return{msg:null!==(i=null==n?void 0:n.msg)&&void 0!==i?i:"success",data:n,code:o.jK.Success}}catch(e){return{data:null,code:o.jK.Failure,msg:"JSBridge invoke failed."}}},h=()=>{var e;return l()&&(null===(e=window.TTE_ENV)||void 0===e?void 0:e.windowName)==="SUB_WINDOW"},v=(e,t)=>{try{if(l())return window.TTE_ENV.bridge.on(e,t);return()=>!1}catch(e){return()=>!1}}},619067:function(e,t,i){"use strict";i.d(t,{r:function(){return r}}),i(374954),i(490629);let n=e=>{let t=[],i=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";for(let r in e){let o;let a=n?`${n}.${r}`:r,l=e[r];if(Array.isArray(l))l=l.join(","),o="array";else if("number"==typeof l)o="int";else if("string"==typeof l)o="string";else if("boolean"==typeof l)o="bool";else if(null===l)l="null",o="null";else if("object"==typeof l&&null!==l){i(l,a);continue}t.push({key:a,value:l,type:o})}};return i(e),t},r=(e,t)=>{let i=[],r={};t.forEach(t=>{r[t]=e[t]||{}});let o=n(r);return(null==o?void 0:o.length)&&i.push(...o),i}},35845:function(e,t,i){"use strict";i.d(t,{P$:function(){return l},eB:function(){return a},g0:function(){return s},gi:function(){return r},l3:function(){return o}});var n=i(855357);let r=e=>(null==e?void 0:e.awemeType)===n.e.Note,o=e=>(null==e?void 0:e.awemeType)===n.e.XgVideo,a=e=>(null==e?void 0:e.awemeType)===n.e.Playback,l=e=>(null==e?void 0:e.awemeType)===n.e.NoLoginVideoGuide,s=e=>(null==e?void 0:e.awemeType)===n.e.Article},49242:function(e,t,i){"use strict";function n(e){var t,i,n,r,o,a;let l=-1,s=null==e?void 0:null===(i=e.video)||void 0===i?void 0:null===(t=i.meta)||void 0===t?void 0:t.title_info;if("string"==typeof s){let e=null===(o=JSON.parse(s))||void 0===o?void 0:o.avg_br_pc;"number"==typeof e&&(l=e)}return{brightness_bl:l,brightness:Number(null!==(a=null==e?void 0:null===(r=e.video)||void 0===r?void 0:null===(n=r.meta)||void 0===n?void 0:n.brightness_mean)&&void 0!==a?a:-1)}}i.d(t,{v:function(){return n}})},690343:function(e,t,i){"use strict";i.d(t,{U:function(){return n}});let n=e=>{try{return JSON.parse((null==e?void 0:e.logPb)||"{}")}catch(e){return{}}}},853344:function(e,t,i){"use strict";i.d(t,{V:function(){return l}}),i(968336);var n=i(889429),r=i(601034),o=i(335924),a=i(958396);let l=e=>{let{pageName:t}=e||{};(0,a.d)();let i=!1,l=!1,s=!1;{i=(0,n.G6)();let e=(0,r.yW)();l="video_detail"===e||"note_detail"===e,s="1"===(0,o.Rs)("is_from_aweme_search_engine")}return i&&s&&l}},970149:function(e,t,i){"use strict";i.d(t,{R:function(){return r}});let n=null,r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,{size:i=14,family:r='"PingFang SC", "DFPKingGothicGB-Regular", sans-serif'}=t||{};null===n&&(n=document.createElement("canvas"));let o=n.getContext("2d");o.font=`${i}px ${r}`;let a=o.measureText(e||""),l=Math.abs(a.actualBoundingBoxLeft)+Math.abs(a.actualBoundingBoxRight);return Math.max(a.width,l)}},570269:function(e,t,i){"use strict";i.d(t,{w:function(){return o}});var n=i(480333),r=i(773453);let o=new class e{createFpsTask(e){this.fpsData[e]={}}calculateFpsBasedOnDuration(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e3,o=()=>{if(this.fpsData[e].frameCount+=1,performance.now()-this.fpsData[e].startTime>=n||this.fpsData[e].ended){this.fpsData[e].endTime=performance.now(),this.fpsData[e].duration=this.fpsData[e].endTime-this.fpsData[e].startTime,this.fpsData[e].fps=this.fpsData[e].frameCount/(this.fpsData[e].duration/1e3),r.i.sendLog("slidesFPS",{order:e,fps:this.fpsData[e].fps,duration:this.fpsData[e].duration,from:this.fpsData[e].from,to:this.fpsData[e].to});return}requestAnimationFrame(o)};this.fpsData[e]={frameCount:0,startTime:performance.now(),from:t,to:i},o()}calculateFpsBasedOnFrameCount(e,t){let i=()=>{if(this.fpsData[e].frameCount+=1,this.fpsData[e].frameCount>=t||this.fpsData[e].ended){this.fpsData[e].endTime=performance.now(),this.fpsData[e].duration=this.fpsData[e].endTime-this.fpsData[e].startTime,this.fpsData[e].fps=this.fpsData[e].frameCount/(this.fpsData[e].duration/1e3);return}requestAnimationFrame(i)};this.fpsData[e]={frameCount:0,startTime:performance.now()},i()}stop(e){this.fpsData[e].ended=!0}constructor(){(0,n._)(this,"fpsData",void 0),this.fpsData={}}}},335948:function(e,t,i){"use strict";i.d(t,{J:function(){return a},x:function(){return o}});var n=i(618759),r=i(915821);let o=()=>{var e;if(!(0,n.DT)())return!1;let t=null!==(e=(0,n.FJ)().awemePcClient)&&void 0!==e?e:"";return!!(0,r.y)(t,">=","4.3.0")||!1},a=()=>(0,n.DT)()?1:0},882831:function(e,t,i){"use strict";i.d(t,{U:function(){return a}}),i(14275),i(759943),i(706056);var n=i(121998),r=i(162164),o=i(335924);function a(e){let t=[],i=!1,a="";if(e&&Array.isArray(e))t=e;else if(e&&"object"==typeof e){var l,s,u;t=null!==(l=e.passParamKeys)&&void 0!==l?l:[],i=null!==(s=e.isRecordFirPage)&&void 0!==s&&s,a=null!==(u=e.isRecordFirPage)&&void 0!==u?u:""}let d=Object.keys((0,n.parse)((0,o.ht)())),c={},f=e=>{let t=(0,o.Rs)(e);c[e]=t};if(d.forEach(e=>{/^_transparent_/.test(e)&&f(e),t.includes(e)&&f(e)}),(0,o.Rs)("ug_source")&&f("ug_source"),(0,o.Rs)("sem_keyword")&&f("sem_keyword"),i){let e=(0,r.z)(a);e&&(c.fir_previous_page=e)}return c}},4804:function(e,t,i){"use strict";i.d(t,{m:function(){return n}}),i(706056);let n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventType:t,pluginName:i}=e;return i?["pc"].includes(i)?t||"click":i:"click"}},685902:function(e,t,i){"use strict";function n(e){let t=[new URL(e.flv_pull_url.SD1||e.flv_pull_url.SD2||e.flv_pull_url.HD1||e.flv_pull_url.FULL_HD1).hostname];return e.hls_pull_url&&t.push(new URL(e.hls_pull_url).hostname),t}i.d(t,{H:function(){return n}}),i(656562),i(992871),i(490629),i(374954)},414061:function(e,t,i){"use strict";let n;i.r(t),i.d(t,{EVENT:function(){return u},EventScope:function(){return c},ImPopupMode:function(){return d},Order:function(){return s},commonEvent:function(){return S},emit:function(){return y},emitAfterListen:function(){return w},emitter:function(){return l},emitterListen:function(){return k},getCurrentPageScope:function(){return _},getPageScope:function(){return v},listen:function(){return g},listenOnce:function(){return C},removeCacheEmit:function(){return b},setCurrentPageScope:function(){return h}}),i(706056);var r=i(283791),o=i.n(r),a=i(995898);let l=new(o());l.setMaxListeners(50);var s={Nomal:0,0:"Nomal",Reverse:1,1:"Reverse",Cycle:2,2:"Cycle"},u={prefetchLoadMoreFinish:"prefetchLoadMoreFinish",volumeBalanceSwitchChange:"volumeBalanceSwitchChange",syncVolumeChange:"syncVolumeChange",ImmersiveSwitchMount:"ImmersiveSwitchMount",mergeAuthorContainerMount:"mergeAuthorContainerMount",searchBarMouseEnter:"searchBarMouseEnter",syncDefination:"syncDefination",syncAutoPlaySetting:"syncAutoPlaySetting",showWindowByWebWhenLynx:"showWindowByWebWhenLynx",changeLynxAwemeList:"changeLynxAwemeList",changeLynxDiscoverAwemeList:"changeLynxDiscoverAwemeList",changeLynxDiscoverAwemeModal:"changeLynxDiscoverAwemeModal",changeLynxSwiperIndex:"changeLynxSwiperIndex",LynxSwiperFinish:"LynxSwiperFinish",LynxPlayReady:"LynxPlayReady",showDouyinWindow:"showDouyinWindow",closeLynxWindow:"closeLynxWindow",childRouteRender:"childRouteRender",followModalVisibleChange:"followModalVisibleChange",controlAdapt:"controlAdapt",abTestDataChange:"abTestDataChange",firstLoadMore:"firstLoadMore",adBlockTipShow:"adBlockTipShow",CheckAllowPlay:"CheckAllowPlay",RecommendGuideClose:"RecommendGuideClose",PlayerCreated:"PlayerCreated",enterModalVideo:"enterModalVideo",exitModalVideo:"exitModalVideo",bufferedLoadMore:"bufferedLoadMore",fakeScreenChange:"fakeScreenChange",swiperSlideNextPrevented:"swiperSlideNextPrevented",sideCardShowChange:"sideCardShowChange",videoStopPlayNext:"videoStopPlayNext",videoRemoveStopPlayNext:"videoRemoveStopPlayNext",feedVideoCardLocateCurrentVideo:"feedVideoCardLocateCurrentVideo",hideFakeScreen:"hideFakeScreen",showAuthorCard:"showAuthorCard",InnerFeedReady:"innerFeedReady",InnerFeedExit:"InnerFeedExit",sodaPlayPause:"sodaPlayPause",WatchLaterProgressChange:"watchLaterProgressChange",VideoDetailTabChange:"VideoDetailTabChange",VideoDetailCurrentTab:"VideoDetailCurrentTab",VideoDetailSetNextVideo:"VideoDetailSetNextVideo",VideoDetailSetPrevVideo:"VideoDetailSetPrevVideo",promotePreload:"promotePreload",guide:"guide",videoTitleClick:"videoTitleClick",selfPageCountUpdate:"selfPageCountUpdate",changeTheme:"changeTheme",userBlockEvent:"userBlockEvent",videoPause:"videoPause",feelgoodReady:"feelgoodReady",showFeedback:"showFeedback",showFeedbackOnline:"showFeedbackOnline",loginShowFeedback:"loginShowFeedback",feedbackVisibleChange:"feedbackVisibleChange",changeShortcutTip:"changeShortcutTip",commentFocus:"commentFocus",isShowUp:"isShowUp",videoChange:"videoChange",showLoginPanel:"showLoginPanel",exitClientFullscreen:"exitClientFullscreen",livePause:"livePause",showModalVideoSidebar:"showModalVideoSidebar",initImSDK:"initImSDK",initNoticeSDK:"initNoticeSDK",initIMNoticeSDK:"initIMNoticeSDK",imChatViewReady:"imChatViewReady",showHeaderPopUp:"showHeaderPopUp",startLiving:"startLiving",headerGradient:"headerGradient",fetchRelatedFeedDone:"fetchRelatedFeedDone",playerHeight:"playerHeight",sendImUserMsg:"sendImUserMsg",globalScrollEl:"globalScrollEl",postCurVideoInfo:"postCurVideoInfo",livePlayerEndCoverShow:"livePlayerEndCoverShow",musicPause:"musicPause",triggerModalPlayerClose:"triggerModalPlayerClose",openImAwemeModal:"openImAwemeModal",openNoticeAwemeModal:"openNoticeAwemeModal",openAiSearchAwemeModal:"openAiSearchAwemeModal",openActivityAwemeModal:"openActivityAwemeModal",openAiExtensionAwemeModal:"openAiExtensionAwemeModal",changeVideoListContext:"changeVideoListContext",showPushList:"showPushList",clickPush:"clickPush",navFold:"navFold",openImConversation:"openImConversation",closeImConversation:"closeImConversation",openNoticeList:"openNoticeList",changeMinWindows:"changeMinWindows",changeMinWinWeb:"changeMinWinWeb",changeMinWinListen:"changeMinWinListen",openWidgetMiniWindows:"openWidgetMiniWindows",resizeWindowToMiniWin:"resizeWindowToMiniWin",miniWindowTip:"miniWindowTip",wallpaperTip:"wallpaperTip",searchBarFocus:"searchBarFocus",searchBarBlur:"searchBarBlur",searchMusicPlay:"searchMusicPlay",searchMusicPause:"searchMusicPause",searchWaterfallFullCardPause:"searchWaterfallFullCardPause",searchWaterfallFullCardUnmute:"searchWaterfallFullCardUnmute",searchModalToggle:"searchModalToggle",closeSearchSelect:"closeSearchSelect",changeVideoSideBar:"changeVideoSideBar",toggleLayoutSideArea:"toggleLayoutSideArea",clarityRel:"clarityRel",imAwemeRecall:"imAwemeRecall",fullScreen:"fullScreen",pageFullScreen:"pageFullScreen",searchPerformanceCollected:"searchPerformanceCollected",swiperVideo:"swiperVideo",changePlayRate:"changePlayRate",focusSearch:"focusSearch",tabContainerScroll:"tabContainerScroll",switchTab:"switchTab",syncInteraction:"syncInteraction",feedVideoCardLocate:"feedVideoCardLocate",syncAwemeList:"syncAwemeList",relatedCardLoadList:"relatedCardLoadList",headerPopupRequest:"headerPopupRequest",headerPopupInform:"headerPopupInform",syncInteractionStatus:"syncInterfaceStatus",menuRecommend:"menuRecommend",userHasLook:"userHasLook",changeInteractionStyle:"changeInteractionStyle",toggleTheme:"toggleTheme",changeNavBarBlur:"changeNavBarBlur",openAdSideCard:"openAdSideCard",changeAiSideCard:"changeAiSideCard",updateAiSideCardContent:"updateAiSideCardContent",openAiCard:"openAiCard",toggleAiCard:"toggleAiCard",renderAiCard:"renderAiCard",aiSearchShotScreen:"aiSearchShotScreen",aiSearchInputWord:"aiSearchInputWord",aiSearchSendQuestion:"aiSearchSendQuestion",aiSearchOpenFeedHistoryModal:"aiSearchOpenFeedHistoryModal",aiSearchCreateNewConversation:"aiSearchCreateNewConversation",aiSearchCallExitShareMode:"aiSearchCallExitShareMode",aiSearchCallEnterShareMode:"aiSearchCallEnterShareMode",aiSearchCallExitHistoryModal:"aiSearchCallExitHistoryModal",aiSearchCallNewChatDisabled:"aiSearchCallNewChatDisabled",aiSearchOnExitShareMode:"aiSearchOnExitShareMode",aiSearchPageLoad:"aiSearchPageLoad",aiSearchInColdStart:"aiSearchInColdStart",wallPaperInsert:"wallPaperInsert",updateTrustSwitch:"updateTrustSwitch",trustMenuShow:"trustMenuShow",trustDialogShow:"trustDialogShow",hoverIcon:"hoverIcon",videoPlay:"videoPlay",videoPlayPrevent:"videoPlayPrevent",recommendUpdateWindow:"recommendUpdateWindow",reportPlayNext:"reportPlayNext",reportPlayPrev:"reportPlayPrev",webLivePushMessage:"webLivePushMessage",showFlashbackTip:"showFlashbackTip",closeOtherTip:"closeOtherTip",activePlayerBufferReady:"activePlayerBufferReady",activePlayerCanCreate:"activePlayerCanCreate",firstFrameReady:"firstFrameReady",quitInnerFeed:"quitInnerFeed",firstFrame:"firstFrame",lvClarityGuide:"lvClarityGuide",globalEventPrevented:"globalEventPrevented",downloadGuideInformPWA2Guide:"downloadGuideInformPWA2Guide",hideModal:"hideModal",refreshPage:"refreshPage",showUpIconScrollY:"showUpIconScrollY",sideBarShow:"sideBarShow",NCEEDanmuSend:"NCEEDanmuSend",afterVideoInit:"afterVideoInit",afterOperationInit:"afterOperationInit",afterVideoPlayed:"afterVideoPlayed",webFeedPushMessage:"webFeedPushMessage",firstEnterVideoPlay:"firstEnterVideoPlay",discoverInsertVideo:"discoverInsertVideo",recommendInsertVideo:"recommendInsertVideo",fwsExampleInit:"fwsExampleInit",changeTab:"changeTab",sendPullMessage:"sendPullMessage",liveModalShow:"liveModalShow",liveModalClose:"liveModalClose",liveModalPreload:"liveModalPreload",liveModalPlayerPause:"liveModalPlayerPause",lvTabAnime:"lvTabAnime ",headerTransparent:"headerTransparent",headerAbleTransparent:"headerAbleTransparent",showTrayPushGuide:"showTrayPushGuide",showClientDownloadGuide:"showClientDownloadGuide",pageFirstFrameLoadStart:"pageFirstFrameLoadStart",pageFirstFrameLoaded:"pageFirstFrameLoaded",loginBlockKeyBoard:"loginBlockKeyBoard",changeInnerAutoPlay:"changeInnerAutoPlay",checkSafeAwemeList:"checkSafeAwemeList",headerHeightChange:"headerHeightChange",syncLiveMemoryState:"syncLiveMemoryState",downloadVideo:"downloadVideo",continueDownloadVideo:"continueDownloadVideo",openDownloadDirPanel:"openDownloadDirPanel",retryDownloadVideo:"retryDownloadVideo",vsBannerReady:"vsBannerReady",liveDanmakuSettingChange:"liveDanmakuSettingChange",paidLiveDuration:"paidLiveDuration",paidLiveInitTime:"paidLiveInitTime",hideDownloadNewBadge:"hideDownloadNewBadge",updateUnReadCount:"updateUnReadCount",discoverPageLcp:"discoverPageLcp",homeLoadMoreReach:"homeLoadMoreReach",getHotList:"getHotList",updateAbVids:"updateAbVids",notevideo:"notevideo",openClientDriverCheck:"openClientDriverCheck",userChangeTab:"userChangeTab",openUserModal:"openUserModal",searchPageHydrate:"searchPageHydrate",searchVideoLoadStart:"searchVideoLoadStart",searchVideoLoaded:"searchVideoLoaded",searchFilterSettingsLoaded:"searchFilterSettingsLoaded",yellowCartClick:"yellowCartClick",promotionPop:"promotionPop",longTouchLoadReady:"longTouchLoadReady",searchPlayerActive:"searchPlayerActive",headerMouseEnter:"headerMouseEnter",headerMouseLeave:"headerMouseLeave",roomBack:"roomBack",openGiftPanel:"openGiftPanel",openRechargePanel:"openRechargePanel",redPacketNotification:"redPacketNotification",generalSearchVideoPlay:"generalSearchVideoPlay",activitySyncVideoPlay:"activitySyncVideoPlay",ControlLiveFullscreenByClient:"ControlLiveFullscreenByClient",ReportToTea:"ReportToTea",RechargeAutoSuccess:"RechargeAutoSuccess",RefreshFeedList:"RefreshFeedList",CloseMobileBottomCard:"CloseMobileBottomCard",VipRechargeSuccess:"VipRechargeSuccess",JoinVip:"JoinVip",CloseWallpaperGuide:"CloseWallpaperGuide",RecommendLivePushRequest:"RecommendLivePushRequest",changeRoute:"changeRoute",searchSpa:"searchSpa",beforeSearchSpaJump:"beforeSearchSpaJump",UpdateActiveAbstract:"UpdateActiveAbstract",shipinColdStartLogin:"shipinColdStartLogin",ImQuitGroup:"ImQuitGroup",StickerCollect:"StickerCollect",NewCollection:"NewCollection",JingxuanTopCard:"JingxuanTopCard",FeedUpdateItemIndex:"FeedUpdateItemIndex",searchTriggered:"searchTriggered",searchPrerenderFinished:"searchPrerenderFinished",ShowPreviewPaidMask:"showSeriesPaidMask",VideoDetailRefresh:"videoDetailRefresh",localStorageChange:"localStorageChange",silentStatusChange:"silentStatusChange",enterChildRoute:"enterChildRoute",exitChildRoute:"exitChildRoute",routePageScroll:"routePageScroll",RefreshSeriesPage:"RefreshSeriesPage",RefreshLive:"RefreshLive",LiveChannelCardEnterRoom:"LiveChannelCardEnterRoom",KicKOutLive:"KicKOutLive",DisableLeaveCountDown:"DisableLeaveCountDown",LivePreviewLoginSuccess:"LivePreviewLoginSuccess",ForceUpdateOlympics:"ForceUpdateOlympics",LivePreviewError:"LivePreviewError",UpdateSelfPageFollowCount:"UpdateSelfPageFollowCount",SetWebUgSource:"SetWebUgSource",MountPausePopover:"MountPausePopover",ImmersiveSwitch:"ImmersiveSwitch",LivePreviewEnd:"LivePreviewEnd",RelatedAwemeListUpdate:"RelatedAwemeListUpdate",LynxAutoEnterLiveSuccess:"LynxAutoEnterLiveSuccess",LynxAutoEnterLive:"LynxAutoEnterLive",RecommendLoginResume:"RecommendLoginResume",RecommendLoginResumeSuccess:"RecommendLoginResumeSuccess",PageCacheDisposed:"PageCacheDisposed",triggerModalPlayerCloseForCachePages:"triggerModalPlayerCloseForCachePages",RecommendFeedBeforeSkeletonHide:"RecommendFeedBeforeSkeletonHide",LiveHeadLiveEnd:"LiveHeadLiveEnd",OpenRelatedCard:"OpenRelatedCard",CloseRelatedCard:"CloseRelatedCard",AiSearchMiniEntranceOpen:"AiSearchMiniEntranceOpen",LivePreviewEnterStatus:"LivePreviewEnterStatus",ClickOverseaItem:"click_oversea_item",selectDuration:"selectDuration",requestGeneralSearchAiSearchOpen:"requestGeneralSearchAiSearchOpen",requestAiSearchGlobalHighlight:"requestAiSearchGlobalHighlight",openImageViewer:"openImageViewer",showAiNegativeFeedback:"showAiNegativeFeedback",LiveInnerEnterRoomDone:"LiveInnerEnterRoomDone",LiveInnerFeedSlide:"LiveInnerFeedSlide",LiveInnerFeedRoomEnd:"LiveInnerFeedRoomEnd",LiveInnerFeedAppOnly:"LiveInnerFeedAppOnly",LiveInnerFeedFindCurrentIndex:"LiveInnerFeedFindCurrentIndex",LiveMaxMemberLimit:"LiveMaxMemberLimit",selectGroupLiveAnchor:"selectGroupLiveAnchor",AudioStageUpdate:"audioStageUpdate",DragProgress:"dragProgress",openVideoInfoSideCard:"openVideoInfoSideCard",closeVideoInfoSideCard:"closeVideoInfoSideCard",TopicPageForceDark:"TopicPageForceDark",batchToolBarCheckAllChanged:"batchToolBarCheckAllChanged",NavCloseOtherLandingConfigPannel:"NavCloseOtherLandingConfigPannel",SyncLandingMode:"SyncLandingMode",AiSearchInput:"AiSearchInput",AiSearchDocumentClick:"AiSearchDocumentClick",AiSearchSSRResultLoadSuccess:"AiSearchSSRResultLoadSuccess",OpenJXModal:"OpenJXMModal",OpenIframeModal:"OpenIframeModal",InteractionWidthChange:"InteractionWidthChange",HideHorizontalTabsLoading:"HideHorizontalTabsLoading",ListenVideoPipWindowStatusSync:"ListenVideoPipWindowStatusSync",ListenVideoPipWindowClose:"ListenVideoPipWindowClose",PipBackToTab:"PipBackToTab",LiveEndReplaceFeed:"LiveEndReplaceFeed",LiveStartReplaceLiveHead:"LiveStartReplaceLiveHead",LiveEndReplaceLiveHead:"LiveEndReplaceLiveHead",RefreshFeedListOnly:"RefreshFeedListOnly",playbackRateClick:"playbackRateClick",privacyModalVisibleChange:"privacyModalVisibleChange",closePrivacyModal:"closePrivacyModal",shortcutListModalVisibleChange:"shortcutListModalVisibleChange",UpdateRecentSendGift:"UpdateRecentSendGift",LynxEffectPlayDone:"LynxEffectPlayDone",xOpen:"xOpen",xClose:"xClose",openShareModal:"openShareModal",closeShareModal:"closeShareModal",LoadChatSuccess:"LoadChatSuccess",IMInstanceReady:"IMInstanceReady",GiftPanelGiftSend:"giftPanelGiftSend",triggerSearchWaterfallRenderList:"triggerSearchWaterfallRenderList",aiSearchToogleShotScreenDisable:"aiSearchToogleShotScreenDisable",aiSearchEntranceVisibleChange:"aiSearchEntranceVisibleChange",OpenLiveVipLandPage:"OpenLiveVipLandPage",aiEntrySwitchChange:"aiEntrySwitchChange",VipLiveFreePreviewPause:"VipLiveFreePreviewPause",VipLiveFreePreviewRecoverPlay:"VipLiveFreePreviewRecoverPlay",VipLiveUpdateCountDown:"VipLiveUpdateCountDown",VipLivePreviewEnd:"VipLivePreviewEnd",updateRechargeAutoNext:"updateRechargeAutoNext",webNoticePushMessage:"webNoticePushMessage",openAiNoteCard:"openAiNoteCard",toggleAiNoteCard:"toggleAiNoteCard",closeAiNoteCard:"closeAiNoteCard",openAiSearchCard:"openAiSearchCard",toggleAiSearchCard:"toggleAiSearchCard",renderAiSearchCard:"renderAiSearchCard",coldStartLoginClose:"coldStartLoginClose",linkmicWebAction:"linkmicWebAction",UpdateJxOuterProgress:"UpdateJxOuterProgress",hightLightVolumeSync:"hightLightVolumeSync",hiddenRecommendFakeVideo:"hiddenRecommendFakeVideo",followListScroll:"followListScroll",openImagePreviewViewer:"openImagePreviewViewer",closeImagePreviewViewer:"closeImagePreviewViewer",BigGameCloseCardForSubBiz:"game_close_card_for_sub_biz",AnniexClose:"anniexClose",changeWatchLaterPipVideo:"changeWatchLaterPipVideo",fetchMoreWatchLaterPipData:"fetchMoreWatchLaterPipData",updateWatchLaterPipData:"updateWatchLaterPipData",resetWatchLaterPipData:"resetWatchLaterPipData",openWebMinWinInPlayer:"openWebMinWinInPlayer",closeWatchLaterPip:"closeWatchLaterPip",watchLaterPipNewAddListChange:"watchLaterPipNewAddListChange",flyToWatchLater:"flyToWatchLater",cancelWatchLaterPipItem:"cancelWatchLaterPipItem",hiddenJxVideoCardPlaying:"hiddenJxVideoCardPlaying",closeUserProfile:"closeUserProfile"},d={Default:"default",VideoEntry:"videoEntry"},c={App:0,0:"App",Page:1,1:"Page"};let f=["syncInteraction","changeTab","innerFeedReady","pageFullScreen","triggerModalPlayerClose","changeVideoSideBar","changeNext","changePrev","RefreshFeedList","refreshPage","exitChildRoute","openVideoInfoSideCard","closeVideoInfoSideCard","aiSearchShotScreen","aiSearchInputWord","aiSearchSendQuestion","aiSearchOpenFeedHistoryModal","aiSearchCreateNewConversation","aiSearchCallExitShareMode","aiSearchCallEnterShareMode","aiSearchCallExitHistoryModal","aiSearchCallNewChatDisabled","aiSearchOnExitShareMode","aiSearchPageLoad","aiSearchInColdStart"],h=e=>{n=e},v=e=>{let{pathname:t}=location,i=e||t;return(0,a.Nr)(i)?"child_route":"/"===i?"recommend":"/follow"===i?"follow":"/friend"===i?"friend":"main"},_=()=>n,m=(e,t)=>{let i=t||n;return f.includes(e)&&i?{eventKey:`${i}_${e}`,globalEventKey:e}:{eventKey:e}},p={};function g(e,t,i){let{eventKey:n}=m(e,i);return Object.prototype.hasOwnProperty.call(p,n)&&(t&&t(p[n]),delete p[n]),t&&l.on(n,t),()=>{t&&l.off(n,t)}}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0,{eventKey:n,globalEventKey:r}=m(e,i);l.emit(n,t),r&&l.emit(r,t)}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{eventKey:i}=m(e);l.listenerCount(i)?l.emit(i,t):p[i]=t}function b(e){let{eventKey:t}=m(e);delete p[t]}function C(e,t){let{eventKey:i}=m(e);return t&&l.once(i,t),()=>{t&&l.off(i,t)}}let S={emit:y,on:g,off:function(e,t){let{eventKey:i}=m(e);l.off(i,t)},once:C},k=(e,t,i)=>e===S?g(t,i):(e.on(t,i),()=>{e.off(t,i)})},631407:function(e,t,i){"use strict";i.d(t,{R:function(){return o}});var n=i(426038),r=i(709705);function o(e){let t=Number(new Date),i=(0,r.$o)(n.LocalStorageKeys.ExitTimestamp);return t-i>e}},219005:function(e,t,i){"use strict";i.d(t,{R:function(){return n}}),i(679308);let n=e=>e?new Promise(t=>{window.jsonCallBack=e=>{t(e)};let i=document.createElement("script");i.type="text/javascript",i.src=`${e}&callback=jsonCallBack`,document.getElementsByTagName("head")[0].appendChild(i),setTimeout(()=>{document.getElementsByTagName("head")[0].removeChild(i)},500)}):null},656199:function(e,t,i){"use strict";i.d(t,{j:function(){return n.j}});var n=i(316954)},316954:function(e,t,i){"use strict";i.d(t,{j:function(){return n}});let n=(e,t)=>"Escape"===e||27===t},461014:function(e,t,i){"use strict";i.d(t,{m:function(){return a}});var n=i(299690),r=i(618759),o=i(264034);let a=i.n(o)()(()=>!((0,r.DT)()||(0,r.tq)())&&"undefined"!=typeof WebTransport&&"undefined"!=typeof AudioWorkletNode&&(0,n.Eo)())},274046:function(e,t,i){"use strict";i.d(t,{j:function(){return h},q:function(){return v}});var n=i(629686);i(706056),i(968336),i(683656),i(759943),i(362051);var r=i(183652),o=i.n(r),a=i(406532),l=i.n(a),s=i(301023);let u=o().create(),d=()=>{if(location.pathname.includes("/search/"))return"/search";let e=["/user","/video","/collection","/hot/detail","/vsdetail","lvdetail","/search"].find(e=>location.pathname.startsWith(e));return null!=e?e:location.pathname},c=e=>JSON.stringify(l()(e,(e,t,i)=>{if(!["status_msg","log_id","params","body"].includes(i)){let n="string"==typeof t?t:String(t);e[i]=n.replace(" ","-")}},{})),f=(e,t)=>{var i,r;if((null===(r=window)||void 0===r?void 0:null===(i=r.location)||void 0===i?void 0:i.hostname)!=="www.douyin.com")return;let o=(0,s.f)(),a={common_url:d(),common_browser_platform:o.browser_platform,common_browser_name:o.browser_name,common_browser_version:o.browser_version,coomon_platform:o.platform};try{u({url:"/aweme/v1/web/client/monitor/",method:"GET",params:{monitor_name:"fe_invoke_interface",monitor_params:c((0,n._)({event:e},t,a))},withCredentials:!0})}catch(e){}};var h={InvokeServerInterface:"invoke_server_interface",UserEmpty:"user_empty",UserCanceled:"user_canceled",FeedBackSubmit:"feedback_submit",WhaleCheckCode:"whale_check_code",WhaleCheckCaptcha:"whale_check_captcha",BlankScreen:"blank_screen",BlankScreenVs:"blank_screen_vs"};let v={api:{emit:e=>{f("invoke_server_interface",e)}},custom:{emit:(e,t)=>{f(e,t)}}}},509619:function(e,t,i){"use strict";i.d(t,{$S:function(){return a},Pt:function(){return s},br:function(){return u}});var n=i(426038),r=i(409250),o=i(709705),a={None:0,0:"None",FirstTab:1,1:"FirstTab",Reversion:2,2:"Reversion"};let l=0,s=e=>{var t;l=null!=e?e:2;let i=0;(0,o.$o)(n.LocalStorageKeys.MyTabRedDotShow)&&(i=1);let a=null!==(t=r.Q.getItem({sKey:n.CookieKeys.MyTabRedDotShowed}))&&void 0!==t?t:i;return a===e||2===a},u=e=>r.Q.setItem(n.CookieKeys.MyTabRedDotShowed,e?l:0,1/0)},991742:function(e,t,i){"use strict";i.d(t,{GE:function(){return a},S7:function(){return r},ur:function(){return o}});var n=i(499059);let r=()=>n.Le.getConfig(n.gI.DocumentClientWidth)>=1240&&"true"!==document.body.getAttribute("nav-fold"),o=()=>1240>n.Le.getConfig(n.gI.DocumentClientWidth)||"true"===document.body.getAttribute("nav-fold"),a=()=>o()?"close":"open"},550506:function(e,t,i){"use strict";function n(e){try{if(!e||"number"!=typeof e)return 0;return Math.round(e/8)}catch(e){return 0}}function r(e){return e&&"number"==typeof e?1e3*e:0}i.d(t,{N:function(){return r},e:function(){return n}})},486463:function(e,t,i){"use strict";i.d(t,{OB:function(){return s},tw:function(){return u},wS:function(){return l}}),i(968336);var n=i(734123),r=i.n(n),o=i(502615),a=i(499059);let l=function(e){var t,i;let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!!e)e.startsWith("douyin-player")?(null===(t=o.J5.instManager)||void 0===t||t.setActive(e,n),n&&a.Le.setConfig(a.gI.CurrentActivePlayerType,"douyinplayer")):(null===(i=r().instManager)||void 0===i||i.setActive(e,n),n&&a.Le.setConfig(a.gI.CurrentActivePlayerType,"xgplayer"))},s=e=>{var t,i,n,l;let s=e;return(!e&&(s=a.Le.getConfig(a.gI.CurrentActivePlayerType)),"douyinplayer"===s)?null===(i=o.J5.instManager)||void 0===i?void 0:null===(t=i.getActiveId)||void 0===t?void 0:t.call(i):null===(l=r().instManager)||void 0===l?void 0:null===(n=l.getActiveId)||void 0===n?void 0:n.call(l)},u=function(e){var t,i,n,a;let l=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e?e.startsWith("douyin-player")?null===(i=o.J5.instManager)||void 0===i?void 0:null===(t=i.setNext)||void 0===t?void 0:t.call(i,e,l):null===(a=r().instManager)||void 0===a?void 0:null===(n=a.setNext)||void 0===n?void 0:n.call(a,e,l):void 0}},465117:function(e,t,i){"use strict";i.d(t,{O:function(){return r}});var n=i(513565);let r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:"",defaultTitle:n.SITE_DEFAULT_TITLE},{from:t,defaultTitle:i}=e;return t&&n.SITE_NAME_MAP.get(t)||i}},323505:function(e,t,i){i(76375),i(706056),i(374954),i(932651),i(679308),i(834923),i(490629),!function(){var e=["user-blocking","user-visible","background"];class t{queueCallback(e){var t=this.nextMessageHandle_++;return this.messages_[t]=e,this.sendPort_.postMessage(t),t}cancelCallback(e){delete this.messages_[e]}onMessageReceived_(e){var t=e.data;if(t in this.messages_){var i=this.messages_[t];delete this.messages_[t],i()}}constructor(){this.channel_=new MessageChannel,this.sendPort_=this.channel_.port2,this.messages_={},this.nextMessageHandle_=1,this.channel_.port1.onmessage=e=>this.onMessageReceived_(e)}}function i(){return i.instance_||(i.instance_=new t),i.instance_}class n{isIdleCallback(){return 0===this.callbackType_}isMessageChannelCallback(){return 2===this.callbackType_}cancel(){if(!this.canceled_)switch(this.canceled_=!0,this.callbackType_){case 0:cancelIdleCallback(this.handle_);break;case 1:clearTimeout(this.handle_);break;case 2:i().cancelCallback(this.handle_);break;default:throw TypeError("Unknown CallbackType")}}schedule_(t,n){if(n&&n>0)return this.callbackType_=1,void(this.handle_=setTimeout(()=>{this.runCallback_()},n));if(!e.includes(t))throw TypeError("Invalid task priority : "+t);return"background"===t&&"function"==typeof requestIdleCallback?(this.callbackType_=0,void(this.handle_=requestIdleCallback(()=>{this.runCallback_()}))):"function"==typeof MessageChannel?(this.callbackType_=2,void(this.handle_=i().queueCallback(()=>{this.runCallback_()}))):(this.callbackType_=1,void(this.handle_=setTimeout(()=>{this.runCallback_()})))}runCallback_(){this.canceled_||this.callback_()}constructor(e,t,i){void 0===i&&(i=0),this.callback_=e,this.callbackType_=null,this.handle_=null,this.canceled_=!1,this.schedule_(t,i)}}var r=0;class o{isEmpty(){return null==this.head_}push(e){if("object"!=typeof e)throw TypeError("Task must be an Object");e.tq_sequence_=r++,this.isEmpty()?(e.tq_prev_=null,this.head_=e):(e.tq_prev_=this.tail_,this.tail_.tq_next_=e),e.tq_next_=null,this.tail_=e}takeNextTask(){if(this.isEmpty())return null;var e=this.head_;return this.remove_(e),e}merge(e,t){if("function"!=typeof t)throw TypeError("Must provide a selector function.");if(null==e)throw Error("sourceQueue cannot be null");for(var i=this.head_,n=null,r=e.head_;r;){var o=r;if(r=r.tq_next_,t(o)){for(e.remove_(o);i&&i.tq_sequence_{n.resolve=e,n.reject=t});return this.schedule_(n),r}schedule_(e){var t=e.options.signal;if(t){if(t.aborted)return void e.reject(t.reason);e.abortCallback=()=>{e.onTaskAborted()},t.addEventListener("abort",e.abortCallback)}e.options.delay>0?e.hostCallback=new n(()=>{e.hostCallback=null,this.onTaskDelayExpired_(e)},null,e.options.delay):(this.pushTask_(e),this.scheduleHostCallbackIfNeeded_())}onTaskDelayExpired_(e){this.pushTask_(e),this.pendingHostCallback_&&(this.pendingHostCallback_.cancel(),this.pendingHostCallback_=null),this.schedulerEntryCallback_()}onPriorityChange_(e){var t=this.signals_.get(e);if(void 0===t)throw Error("Attempting to change priority on an unregistered signal");t!==e.priority&&(this.queues_[e.priority].merge(this.queues_[t],t=>t.options.signal===e),this.signals_.set(e,e.priority))}schedulerEntryCallback_(){this.pendingHostCallback_=null,this.runNextTask_(),this.scheduleHostCallbackIfNeeded_()}scheduleHostCallbackIfNeeded_(){var e=this.nextTaskPriority_();null!=e&&("background"!==e&&this.pendingHostCallback_&&this.pendingHostCallback_.isIdleCallback()&&(this.pendingHostCallback_.cancel(),this.pendingHostCallback_=null),this.pendingHostCallback_||(this.pendingHostCallback_=new n(()=>{this.schedulerEntryCallback_()},e,0)))}pushTask_(t){var i;if(!e.includes(i=t.options.priority?t.options.priority:t.options.signal&&t.options.signal.priority?t.options.signal.priority:"user-visible"))throw TypeError("Invalid task priority: "+i);if(t.options.signal&&t.options.signal.priority){var n=t.options.signal;this.signals_.has(n)||(n.addEventListener("prioritychange",()=>{this.onPriorityChange_(n)}),this.signals_.set(n,n.priority))}this.queues_[i].push(t)}runNextTask_(){var e=null;do{var t=this.nextTaskPriority_();if(null==t)return;e=this.queues_[t].takeNextTask()}while(e.isAborted());try{var i=e.callback();e.resolve(i)}catch(t){e.reject(t)}finally{e.onTaskCompleted()}}nextTaskPriority_(){for(var t=0;t{this.queues_[e]=new o}),this.pendingHostCallback_=null,this.signals_=new WeakMap}},self.TaskPriorityChangeEvent=a)}()},929898:function(e,t,i){"use strict";i.d(t,{d:function(){return function e(t,i,o,a,l){let{x:s,y:u}=(0,n.F)(t),d=u-i,c=(a=null!=a?a:o)/10,f=(a-o)/10+1,h=(l=null!=l?l:d)/(Math.log(.5)-Math.log(.05));o<=0?(0,r.X)({top:i,left:s},t):100>Math.abs(d)?(0,r.X)({top:i,left:s,behavior:"smooth"},t):((0,r.X)({top:u-h/(f/c*.45+.05)*(.45/c),left:s},t),setTimeout(()=>{e(t,i,o-10,a,l)},10))}}});var n=i(912586),r=i(235586)},801769:function(e,t,i){"use strict";i.d(t,{v:function(){return n}}),i(591964),i(683656),i(759943);let n=e=>{let{ctx:t,linksFromDy:i,linksFromOther:n}=e,r=(null==i?void 0:i.reduce((e,t)=>e.concat((null==t?void 0:t.links)||[]),[])).map(e=>{var t;return(null==e?void 0:null===(t=e.url)||void 0===t?void 0:t.replace("https://www.douyin.com",""))||""}).join(","),o=(null==n?void 0:n.reduce((e,t)=>e.concat((null==t?void 0:t.links)||[]),[])).map(e=>(null==e?void 0:e.url)||"").join(",");t&&(t.contentUrlListInFooter=[{type:"footer_inner_dy_links",urls:r},{type:"footer_inner_other_links",urls:o}])}},191785:function(e,t,i){"use strict";i.d(t,{k:function(){return r},q:function(){return n}}),i(374285),i(566071),i(759943),i(414931),i(240148),i(527553),i(228983),i(656562),i(992871),i(490629),i(968336);let n=e=>{if(!e||"string"!=typeof e)return 0;let t=0;try{let i=RegExp("(\\?|&)x-tos-expires=([^&]*)(&|$)"),n=e.match(i);if(null!==n)t=parseInt(n[2],10);else{let i=e.split("/");i.length>5&&8===i[4].length&&(t=parseInt(i[4],16))}if(t>0){let e=Math.round(Date.now()/1e3);return t{if(!e||"string"!=typeof e)return!1;try{let{host:t,pathname:i}=new URL(e);if("www.douyin.com"===t&&!i.startsWith("/search/"))return!0;return!1}catch(e){return!1}}},953123:function(e,t,i){"use strict";i.d(t,{DI:function(){return l},G7:function(){return a},H7:function(){return o},cT:function(){return u},nr:function(){return s}});var n=i(629686);i(490629),i(228983),i(759943),i(992871),i(414931),i(932651),i(656562),i(112459);var r=i(772227);function o(e,t){if(!t||"object"!=typeof t)return e;let[i,n]=e.split("?"),r=new URLSearchParams(n||"");Object.entries(t).forEach(e=>{let[t,i]=e;null!=i&&r.set(t,String(i))});let o=r.toString();return o?`${i}?${o}`:i}function a(e,t){var i,o,a,l,s;if(!e||!Object.keys(e).length)return t;let u=t,d=(0,n._)({},e);(null==u?void 0:null===(i=u.indexOf)||void 0===i?void 0:i.call(u,"?"))>-1&&(d=Object.assign({},(0,n._)({},(0,r.D)(null!==(l=null===(o=u.split("?"))||void 0===o?void 0:o[1])&&void 0!==l?l:""),d)),u=null!==(s=null==u?void 0:null===(a=u.split("?"))||void 0===a?void 0:a[0])&&void 0!==s?s:"");let c="?";return Object.keys(d).forEach(e=>{void 0!==d[e]&&null!==d[e]&&(c+=`${e}=${d[e]}&`)}),`${u}${c.slice(0,-1)}`}function l(e,t){try{let i=new URL(e),{searchParams:n}=i;for(let e in t)n.set(e,String(t[e]));return i.href}catch(t){return e}}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{let t=new URL(e);return t.search="",t.href}catch(t){return e}}function u(e,t){try{let i=new URLSearchParams(e);for(let[e,n]of Object.entries(t))i.set(e,String(n));let n=i.toString();return n?`?${n}`:""}catch(t){return e}}},984550:function(e,t,i){"use strict";let n;i.d(t,{p:function(){return r}}),i(706056);let r=()=>{let e;if(void 0!==n)return n;try{let t=(e=document.createElement("canvas")).getContext("webgl"),i=t.getExtension("WEBGL_debug_renderer_info"),r=t.getParameter(i.UNMASKED_RENDERER_WEBGL);if(!r)return!0;return n=r.includes("SwiftShader")}catch(e){return!0}finally{e=null}}},566118:function(e,t,i){"use strict";i.d(t,{i:function(){return n}});let n=e=>{var t;return(null==e?void 0:null===(t=e.seriesInfo)||void 0===t?void 0:t.contentSubType)===2||(null==e?void 0:e.entertainmentVideoType)===4}},823398:function(e,t,i){"use strict";i.r(t),i.d(t,{useIsFullscreen:function(){return Z.h},useTimeoutInterval:function(){return I.I},ChannelEvent:function(){return w.gQ},useRouteFullscreen:function(){return B.$},operationData:function(){return a.NW},useArgusRuntimeGuard:function(){return V.t},useThrottleFn:function(){return p.v},useBetaTestLog:function(){return y.p},useIdleLoadableModule:function(){return E.u},useStateWithDeps:function(){return v.I},useEcomDetailPrefetchApiV2:function(){return T._t},useDebounceFn:function(){return g.D},clearScrollDuration:function(){return a.QJ},useSlidePerfReport:function(){return H._},useMergedState:function(){return S.C},useShow:function(){return r.x},useSendMessageChannel:function(){return w.Em},useInvisibleStatus:function(){return q.A},useGlobalBackground:function(){return N.T},useIsCurrentRouteEnterChildRoute:function(){return D.o},getAntiParams:function(){return a.be},useDocumentClientWidth:function(){return W.r},useFullscreen:function(){return f.O},useLatest:function(){return h.d},useLotteryUserChechPrefetchApi:function(){return T.YM},useMobileOS:function(){return U.w},useSystemResourceInfo:function(){return A.$},useImTrayPushGuide:function(){return L.o},useSearchHistory:function(){return l.u},useClearSelfCollectionRedDotTimer:function(){return j.L},useForceUpdate:function(){return F.N},useRegisterPrefetchCallback:function(){return P.z},usePageVisible:function(){return o.s},useRankPrefetchApiV2:function(){return T.hc},prefetchStore:function(){return T.U_},useAiSearchHistory:function(){return s.H},useMobile:function(){return m.X},useBrowserLayoutEffect:function(){return C.C},useInitMessageChannel:function(){return w.YG},useHitLandingStrategy:function(){return z.t},useAsyncEffect:function(){return b.b},usePageEffect:function(){return O.o},useAfterLCPOrVideoPlay:function(){return c.O},useSingleUserActiveStatus:function(){return k.V},useUserActiveStatus:function(){return k.y},useGuideSearchModel:function(){return u.E},useFingerPrint:function(){return d.Z},useDelayHoverCallback:function(){return M.U},recordClick:function(){return a.fh},useClientGameWidget:function(){return Q.u},useShowCallbackOnce:function(){return r.Y},useOperationModel:function(){return a.al},useUserActiveConfig:function(){return x.K},useColNum:function(){return K.Z},useMarqueeTitle:function(){return R.N},useLoadMore:function(){return _.B},migrateOldHistory:function(){return l.z},useRequest:function(){return v.Q},useSearchParamsModel:function(){return n.w},getFilteredLocal:function(){return s.t},useAiAndSearchParamsModel:function(){return G.N},MobileOSType:function(){return U.f}});var n=i("624860"),r=i("966473"),o=i("231196"),a=i("587461"),l=i("830283"),s=i("318360"),u=i("795001"),d=i("651660"),c=i("557839"),f=i("395677"),h=i("590555"),v=i("349999"),_=i("408112"),m=i("242875"),p=i("346632"),g=i("466442"),y=i("449824"),w=i("767661"),b=i("476595"),C=i("56924"),S=i("863005"),k=i("785413"),x=i("35863"),I=i("954492"),L=i("201497"),E=i("499889"),T=i("905010"),P=i("933882"),N=i("816759"),R=i("705787"),A=i("552337"),M=i("177683"),D=i("892561"),O=i("576139"),j=i("582150"),B=i("712909"),V=i("644212"),F=i("314738"),U=i("900596"),W=i("863308"),H=i("538108"),G=i("562297"),K=i("632353"),q=i("568109"),Z=i("770146"),z=i("994185"),Q=i("568955")},557839:function(e,t,i){"use strict";i.d(t,{O:function(){return o}});var n=i(101199),r=i(4270);function o(e,t){let i=(0,n.useRef)(t);return i.current=t,(0,n.useEffect)(()=>{if(void 0!==e)return(0,r.N)(()=>{var e;null===(e=i.current)||void 0===e||e.call(i)},!e)},[e]),null}},582150:function(e,t,i){"use strict";i.d(t,{L:function(){return o}});var n=i(101199),r=i(499059);let o=()=>{(0,n.useEffect)(()=>()=>{let e=r.Le.getConfig(r.gI.SelfCollectionRedDotUpdateTimer);e&&(clearTimeout(e),r.Le.setConfig(r.gI.SelfCollectionRedDotUpdateTimer,null))},[])}},177683:function(e,t,i){"use strict";i.d(t,{U:function(){return o}});var n=i(59850),r=i(101199);function o(e){let{enterDelay:t=0,leaveDelay:i=200,onMouseEnter:o,onMouseLeave:a}=e,l=(0,r.useRef)(),s=(0,n.Z)(function(e){let{immediate:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{immediate:!1};if(window.clearTimeout(l.current),i||0===t){o(e);return}l.current=window.setTimeout(()=>{o(e)},t)}),u=(0,n.Z)(function(e){let{immediate:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{immediate:!1};window.clearTimeout(l.current),(t||0===i)&&(null==a||a(e)),l.current=window.setTimeout(()=>{null==a||a(e)},i)});return(0,r.useEffect)(()=>()=>{window.clearTimeout(l.current)},[]),{onMouseEnter:s,onMouseLeave:u}}},590555:function(e,t,i){"use strict";i.d(t,{d:function(){return r}});var n=i(101199);function r(e){let t=(0,n.useRef)(e);return t.current=e,t}},576742:function(e,t,i){"use strict";i.d(t,{X:function(){return s}}),i(490629);var n=i(101199),r=i(394471),o=i(638052),a=i(618759),l=i(103680);let s=e=>{let{abTestData:t,ttwidCreateTime:i,from:s}=e,[u,d]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=localStorage.getItem("RemoveSlideButtonTtwidCreateTime"),t=e?Number(e):i,n=!!t&&1e3*t{let t;0===e.userSwitch&&n?(d(!0),t="HIDE",o.logInstance.sendLog("removeSlideButton",{})):(d(!1),t="SHOW"),(0,a.DT)()&&"main"===s&&t&&l.invoke("setVideoSideBarStatus",{value:t})})},[i,d]),{removeSlideListButton:u,setRemoveSlideListButton:d}}},61109:function(e,t,i){"use strict";i.d(t,{P:function(){return s}}),i(706056);var n=i(101199),r=i(528937),o=i(66948),a=i(661444),l=i(995898);let s=()=>{(0,n.useEffect)(()=>{(async()=>{var e;let{searchScmVersion:t=[],mainScmVersion:i=[],liveScmVersion:n=[],scriptUrl:s=""}=await r.get({key:o.TccKey.SafeFixScript,defaultValue:o.TCC_DEFAULT_VALUE_MAP.get(o.TccKey.SafeFixScript)})||{},u=null===(e=window)||void 0===e?void 0:e.version,d=!1;if(t.includes(u)&&(0,a.En)()&&!(0,l.Nr)(location.pathname)&&(d=!0),i.includes(u)&&((0,l.Nr)(location.pathname)||(0,a.DX)())&&(d=!0),n.includes(u)&&(0,a._O)()&&(d=!0),s&&d){let e=document.createElement("script");e.src=s,e.async=!0,e.onload=()=>{},e.onerror=()=>{},document.head.appendChild(e)}})()},[])}},624860:function(e,t,i){"use strict";i.d(t,{w:function(){return d}}),i(490629);var n=i(101199),r=i(333289),o=i(401918),a=i(414061),l=i(1028),s=i(312987),u=i(743698);let d=(0,r.createModel)(function(){let e=(0,s.RM)((0,s.jv)()),[t,i]=(0,n.useState)(e),r=(0,n.useCallback)(e=>{let{keyword:t,tab:i,source:n,changeReason:r}=e;a.emit(a.EVENT.searchTriggered,{keyword:t,tab:i,source:n,changeReason:r,time:performance.now(),searchParams:e})},[a]),d=(0,n.useCallback)(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};i((0,u.Uy)(i=>{i.keyword=e,i.changeReason="keyword",i.source=t,i.anti_id=n,i.from_group_id="",i.author_id="",i.is_n1=a,i.tabs=(0,s.oc)().map((e,t)=>e),i.visionSearchConversationId=l.conversationId||(0,o.Z)(),i.generalContinueAskParams=l.generalContinueAskParams,i.imageUri=l.imageUri||"",i.forceUseAi=!!l.forceUseAi,i.boxDetection=l.boxDetection||void 0,i.fromForceLogin=!!l.fromForceLogin,r((0,u.Vk)(i))}))},[i,r]),c=(0,n.useCallback)(()=>{i((0,u.Uy)(e=>{e.changeReason="correct",e.source="correct_word",e.anti_id="",e.from_group_id="",e.author_id="",e.tabs=(0,s.oc)().map((t,i)=>(t.correctType=i===e.tabIndex?"0":"1",t)),e.fromForceLogin=!1,r((0,u.Vk)(e))}))},[i,r]),f=(0,n.useCallback)(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,s.np)(e);i((0,u.Uy)(e=>{e.tabIndex=o,e.tab=l.NY[o].tab,e.changeReason="tab",e.source=t||"switch_tab",e.anti_id="",e.tabs[o].showFilter=!1,e.imageUri=n.imageUri||"",e.fromForceLogin=!1,r((0,u.Vk)(e))}))},[i,r]),h=(0,n.useCallback)((e,t)=>{i((0,u.Uy)(i=>{i.tabs[i.tabIndex].filterIndex[e]=t,i.tabs[i.tabIndex].isFiltered=!0,i.changeReason="filter",i.source="tab_search",i.anti_id="",i.fromForceLogin=!1,r((0,u.Vk)(i))}))},[i,r]),v=(0,n.useCallback)(()=>{i((0,u.Uy)(e=>{e.tabs[e.tabIndex].filterIndex=(0,s.oc)()[e.tabIndex].filterIndex,e.tabs[e.tabIndex].isFiltered=!1,e.changeReason="filter",e.source="tab_search",e.fromForceLogin=!1,r((0,u.Vk)(e))}))},[i,r]),_=(0,n.useCallback)(()=>{i((0,u.Uy)(e=>{e.tabs[e.tabIndex].showFilter=!e.tabs[e.tabIndex].showFilter,e.changeReason="toggleShowFilter"}))},[i]),m=(0,n.useCallback)(()=>{i((0,u.Uy)(e=>{e.tabs[e.tabIndex].showFilter=!1,e.changeReason="closeFilter"}))},[i]),p=(0,n.useCallback)(e=>{i((0,u.Uy)(t=>{t.tabs[t.tabIndex].guideSearchIndex=e,t.source="guide_search",t.changeReason="guideSearch",t.fromForceLogin=!1,r((0,u.Vk)(t))}))},[i,r]),g=(0,n.useCallback)(()=>{i((0,u.Uy)(e=>{e.changeReason="resetUrlTransParams",e.urlTransParams={}}))},[i]);return{searchParams:t,changeKeyword:d,changeCorrect:c,changTab:f,changeIndex:h,resetFilter:v,toggleShowFilter:_,closeFilter:m,changeGuideSearchIndex:p,resetUrlTransParams:g,resetSearchParams:(0,n.useCallback)((e,t)=>{let n=(0,s.RM)((0,s.jv)(),{urlParams:t});i((0,u.Uy)(t=>{t.keyword=e,t.inited=n.inited,t.tabIndex=n.tabIndex,t.tab=n.tab,t.tabs=n.tabs,t.anti_id=n.anti_id,t.from_group_id=n.from_group_id,t.author_id=n.author_id,t.source=n.source,t.changeReason=n.changeReason,t.urlTransParams=n.urlTransParams,t.is_n1=n.is_n1,t.visionSearchConversationId=n.visionSearchConversationId,t.generalContinueAskParams=n.generalContinueAskParams,t.imageUri=n.imageUri,t.boxDetection=n.boxDetection,t.forceUseAi=n.forceUseAi,t.searchSessionId=n.searchSessionId,t.fromForceLogin=n.fromForceLogin}))},[i]),initSearchParams:e}})},830283:function(e,t,i){"use strict";i.d(t,{u:function(){return d},z:function(){return u}}),i(490629),i(362051),i(374954),i(559352);var n=i(101199),r=i(103680),o=i(50331),a=i(897471),l=i.n(a),s=i(242727);function u(e){try{var t,i,n,a,u,d,c,f;let h=(0,s.pe)((null===(i=window.localStorage)||void 0===i?void 0:null===(t=i.getItem)||void 0===t?void 0:t.call(i,s.Af+e))||"")||"[]",v=JSON.parse(h).filter(e=>{var t,i,n,r,o;return(null==e?void 0:null===(i=e.trim)||void 0===i?void 0:null===(t=i.call(e))||void 0===t?void 0:t.length)>0||(null==e?void 0:null===(o=e.text)||void 0===o?void 0:null===(r=o.trim)||void 0===r?void 0:null===(n=r.call(o))||void 0===n?void 0:n.length)>0}),_=(0,s.tq)(e);if(Array.isArray(v)&&v.length>0){let t=v.map(e=>({text:e,uri:"",forceUseAi:0})),i=l()([..._,...t],e=>e.text),h=(0,s.HI)(JSON.stringify(i));null===(a=window.localStorage)||void 0===a||null===(n=a.setItem)||void 0===n||n.call(a,s.OO+e,h);let m=(0,s.HI)(JSON.stringify([]));if(s.s0){let t=(0,s.HI)(JSON.stringify(i.map(e=>e.text)));r.invoke(o.gl.SET_APP_CONFIG_ITEM,{data:{key:s.Af+e,value:t}}),null===(f=window.localStorage)||void 0===f||null===(c=f.setItem)||void 0===c||c.call(f,`${s.Af+e}_updateTime`,`${Date.now()}`)}null===(d=window.localStorage)||void 0===d||null===(u=d.setItem)||void 0===u||u.call(d,s.Af+e,m)}}catch(e){}}function d(e,t){let{history:i,setHistory:a}=function(){let[e,t]=(0,n.useState)([]);return{history:e,setHistory:function(e){t(e.map(e=>e.text))}}}(),l=e||s.Ju,d=(0,n.useRef)(l);d.current=l;let c=t||s.OO,f=(0,n.useRef)(!1);!f.current&&(u(d.current),f.current=!0);let h=(0,n.useCallback)(e=>{var t,i,n,a;let l=(0,s.HI)(JSON.stringify(e));if(s.s0){let t=(0,s.HI)(JSON.stringify(e.map(e=>e.text)));r.invoke(o.gl.SET_APP_CONFIG_ITEM,{data:{key:s.Af+d.current,value:t}}),null===(a=window.localStorage)||void 0===a||null===(n=a.setItem)||void 0===n||n.call(a,`${s.Af+d.current}_updateTime`,`${Date.now()}`)}null===(i=window.localStorage)||void 0===i||null===(t=i.setItem)||void 0===t||t.call(i,c+d.current,l)},[]),v=(0,n.useCallback)(()=>{try{var e,t;let i=(0,s.pe)((null===(t=window.localStorage)||void 0===t?void 0:null===(e=t.getItem)||void 0===e?void 0:e.call(t,c+d.current))||"");return JSON.parse(i).filter(e=>{var t,i,n,r,o;return(null==e?void 0:null===(i=e.trim)||void 0===i?void 0:null===(t=i.call(e))||void 0===t?void 0:t.length)>0||(null==e?void 0:null===(o=e.text)||void 0===o?void 0:null===(r=o.trim)||void 0===r?void 0:null===(n=r.call(o))||void 0===n?void 0:n.length)>0})}catch(e){return h([]),[]}},[]),_=(0,n.useCallback)(async()=>{var e,t,i,n,a,l;let u=(null===(t=window.localStorage)||void 0===t?void 0:null===(e=t.getItem)||void 0===e?void 0:e.call(t,c+d.current))||"";if(s.s0)try{let e=null===(n=window.localStorage)||void 0===n?void 0:null===(i=n.getItem)||void 0===i?void 0:i.call(n,`${s.Af+d.current}_updateTime`),{data:t}=await r.invoke(o.gl.GET_APP_CONFIG_ITEM,{data:{key:"widgetUpdateTime",parse:!0}});if(Number(t)>Number(e)){let e=(await r.invoke(o.gl.GET_APP_CONFIG_ITEM,{data:{key:s.Af+d.current,parse:!1}})).data,t=JSON.parse((0,s.pe)(u)),i=JSON.parse((0,s.pe)(e)),n=[];i.forEach(e=>{let i=t.find(t=>t.text===e);i?n.push({text:e,uri:i.uri,url:i.url,forceUseAi:i.forceUseAi,boxDetection:i.boxDetection}):n.push({text:e,uri:"",url:"",forceUseAi:0,boxDetection:null})});let f=(0,s.HI)(JSON.stringify(n));null===(l=window.localStorage)||void 0===l||null===(a=l.setItem)||void 0===a||a.call(l,c+d.current,f),u=f}}catch(e){return[]}try{let e=(0,s.pe)(u);return JSON.parse(e).filter(e=>{var t,i,n;return(null==e?void 0:null===(n=e.text)||void 0===n?void 0:null===(i=n.trim)||void 0===i?void 0:null===(t=i.call(n))||void 0===t?void 0:t.length)>0})}catch(e){return h([]),[]}},[]),m=(0,n.useCallback)(()=>{_().then(e=>a(e))},[]);(0,n.useEffect)(()=>{_().then(e=>a(e))},[d.current]);let p=(0,n.useCallback)(()=>{a([]),h([])},[]),g=(0,n.useCallback)(e=>{let t=v();Array.isArray(t)&&(a(t=t.filter(t=>t.text!==e)),h(t))},[]),y=(0,n.useCallback)(e=>{var t;let i=v();Array.isArray(i)&&(null==e?void 0:null===(t=e.trim())||void 0===t?void 0:t.length)>0&&((i=i.filter(t=>t.text!==e)).unshift({text:e,uri:"",forceUseAi:0}),a(i=i.slice(0,s.WR)),h(i))},[]);return{history:i,updateHistory:m,getLocal:v,clearAll:p,deleteWord:g,unshiftWord:y}}},403622:function(e,t,i){"use strict";function n(){for(var e=arguments.length,t=Array(e),i=0;i{switch(typeof e){case"object":return JSON.stringify(e);case"string":case"number":case"bigint":case"boolean":return`${e}`;default:return}}).filter(e=>e).join(",")}i.d(t,{F:function(){return o},b:function(){return r}}),i(362051);function r(e){for(var t=arguments.length,i=Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:document;return e.querySelector("source").execute("getMediaInfo","")}(i[0]):"isActive"===e?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.querySelector("source").execute("isActive","")}(i[0]):window.TTCommon.execute(e,n(i)):"null"}},885114:function(e,t,i){"use strict";i.r(t),i.d(t,{recordLastLoginGuide:function(){return y},exposureColdStart:function(){return p},getColdStartCount:function(){return S},getColdStart:function(){return _},LoginPanelType:function(){return f},getColdStartMax:function(){return C},getComment:function(){return m},LoginIntensityType:function(){return h},calcExclusive:function(){return w},getGlobalExtra:function(){return g},getRelatedVideoCard:function(){return b},loginStrategyUtils:function(){return s},LoginSense:function(){return v}});var n=i("629686");i("679308"),i("490629"),i("706056");var r=i("618759"),o=i("759894"),a=i("763650"),l=i("561710"),s=i("36757");let u="__LAST_LOGIN_GUIDE_RECORD";var d=i("593124");let c=new a.Z({aid:6383,request:l.O}),f={FULL_LOGIN:"full_login_panel",SCAN_CODE:"scan_code_panel",LOGIN_GUIDE_PANEL:"login_guide_panel"},h={FORCE:"force_login",GUIDE:"guide_login"},v={COLD_START:"cold_start",AUTHOR_CARD:"author_card",COMMENT_FEED:"comment_feed",COMMENT_DETAIL:"comment_detail",AUTO_PANEL:"auto",RELATED_VIDEO:"related_video"},_=async function(){var e,t;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if((null==a?void 0:a.overseaLandingRecommend)&&!1===l&&(0,r.tq)()||(0,r.tq)()&&!(0,r.iO)()&&!(0,r._1)()||await (0,s.isHideLoginGuide)(a))return{shouldShow:!1,type:"normal"};let u=await Promise.all([c.shouldShowLogin(f.FULL_LOGIN,v.COLD_START),c.shouldShowLogin(f.SCAN_CODE,v.COLD_START),c.getGlobalExtra()]);if("v1"===u[2]&&i.includes((0,o.vM)()))return{shouldShow:!1,type:"normal"};if(null==u?void 0:null===(e=u[0])||void 0===e?void 0:e.shouldShow)return"v3"===u[2]&&i.includes((0,o.vM)())?(0,n._)({type:f.SCAN_CODE},u[0]):(0,n._)({type:f.FULL_LOGIN},u[0]);return(null==u?void 0:null===(t=u[1])||void 0===t?void 0:t.shouldShow)?(0,n._)({type:f.SCAN_CODE},u[1]):{shouldShow:!1,type:"normal"}},m=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(await (0,s.isHideLoginGuide)(t))return{shouldShow:!1,type:f.LOGIN_GUIDE_PANEL};let i=await c.shouldShowLogin(f.LOGIN_GUIDE_PANEL,e);return(0,n._)({type:f.LOGIN_GUIDE_PANEL},i)},p=()=>{c.exposure()},g=()=>{var e;let t=null===(e=(0,s.getLocalStorage)("LoginGuidingStrategy"))||void 0===e?void 0:e.login_methods,i="v0";return t&&Object.values(f).forEach(e=>{var n,r,o;if((null==t?void 0:t[e])&&(null===(n=t[e])||void 0===n?void 0:n.extra)&&(null===(o=t[e])||void 0===o?void 0:null===(r=o.extra)||void 0===r?void 0:r.version_tag))return i=t[e].extra.version_tag,t[e].extra.version_tag}),i},y=e=>{let t=new Date().getTime()/1e3;(0,s.setLocalStorage)(u,{scene:e,time:t})},w=e=>{let t={auto:{scene:["related_video","login_guide_dialog"],interval:{related_video:180,login_guide_dialog:1440}},related_video:{scene:["auto"],interval:{auto:180}},login_guide_dialog:{scene:["auto"],interval:{auto:1440}}},i=null==t?void 0:t[e],n=(0,s.getLocalStorage)(u);if(!i||!n)return!1;let{scene:r=[],interval:o}=i,a=new Date().getTime()/1e3;return!!r.includes(null==n?void 0:n.scene)&&!!(a-(null==n?void 0:n.time)<(null==o?void 0:o[null==n?void 0:n.scene])*60)||!1},b=async function(e){var t,i;let r=!(arguments.length>1)||void 0===arguments[1]||arguments[1],o=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;if(await (0,s.isHideLoginGuide)(o)||a===d.L.Author&&(null==o?void 0:null===(t=o.authorBlock)||void 0===t?void 0:t.type)||a===d.L.Comment&&(null==o?void 0:null===(i=o.commentBlock)||void 0===i?void 0:i.type)||w("related_video"))return{shouldShow:!1,type:f.LOGIN_GUIDE_PANEL};let l=await c.shouldShowLogin(f.LOGIN_GUIDE_PANEL,e,r);return(0,n._)({type:f.LOGIN_GUIDE_PANEL},l)},C=()=>{var e,t,i,n,r,o;return(null===(o=(0,s.getLocalStorage)("LoginGuidingStrategy"))||void 0===o?void 0:null===(r=o.login_methods)||void 0===r?void 0:null===(n=r.full_login_panel)||void 0===n?void 0:null===(i=n.scenes)||void 0===i?void 0:null===(t=i.cold_start)||void 0===t?void 0:null===(e=t.frequency_control)||void 0===e?void 0:e.max_time_in_range)||0},S=()=>{var e,t,i;return(null===(i=(0,s.getLocalStorage)("LoginGuidingStrategyCounter"))||void 0===i?void 0:null===(t=i.full_login_panel)||void 0===t?void 0:null===(e=t.cold_start)||void 0===e?void 0:e.counts)||0}},813458:function(e,t,i){"use strict";i.d(t,{w:function(){return n}});let n=(0,i(285229).A)(!1)},440262:function(e,t,i){"use strict";i.d(t,{i:function(){return l}});var n=i(101199),r=i(293923),o=i(631075),a=i(181406);let l=()=>{let e=(0,n.useContext)(r.I),t=(0,n.useRef)();return e&&(t.current=e.routeModel),!t.current&&(t.current=new o.T(!0)),(0,a.m)(e=>{t.current&&t.current.setActive(e)}),t.current}},135268:function(e,t,i){"use strict";i.d(t,{By:function(){return l},Ck:function(){return u},U0:function(){return c},gS:function(){return o},k4:function(){return d},qQ:function(){return s},ws:function(){return a}});var n=i(480333);i(76375),i(679308),i(490629);var r=i(857687);let o=new class e{register(e){if(!(null==e?void 0:e.namespace))throw Error("Prefetch definition namespace is required");if("function"!=typeof e.fetcher)throw Error(`Prefetch definition fetcher is required for namespace "${e.namespace}"`);return this.registry.set(e.namespace,e),this}registerMany(e){return e.forEach(e=>this.register(e)),this}getDefinition(e){return this.registry.get(e)}registerCallback(e,t){if(!e)throw Error("Prefetch callback namespace is required");if("function"!=typeof t)throw Error(`Prefetch callback is required for namespace "${e}"`);return this.callbackRegistry.set(e,t),()=>this.unregisterCallback(e,t)}unregisterCallback(e,t){if(!t||this.callbackRegistry.get(e)===t)this.callbackRegistry.delete(e)}getCallback(e){return this.callbackRegistry.get(e)}async triggerCallback(e,t){return this.getRequiredCallback(e)(t)}upsert(e,t,i){return r.U.getState().upsertEntry(e,t,i)}get(e,t,i){let n=r.U.getState().getEntry(e,t);if(!!n){if(!(null==i?void 0:i.allowExpired)&&this.isExpired(n)){r.U.getState().removeEntry(e,t);return}return n}}getData(e,t){var i;return null===(i=this.get(e,t))||void 0===i?void 0:i.data}remove(e,t){r.U.getState().removeEntry(e,t)}clearNamespace(e){r.U.getState().clearNamespace(e)}gc(e){r.U.getState().gc(e)}getJsbSnapshot(e,t){let i=this.get(e,t);return i?{namespace:e,id:t,status:i.status,data:i.data,updatedAt:i.updatedAt,expiredAt:i.expiredAt}:null}getRequiredCallback(e){let t=this.callbackRegistry.get(e);if(!t)throw Error(`Prefetch callback for namespace "${e}" is not registered`);return t}isExpired(e){return"number"==typeof e.expiredAt&&e.expiredAt<=Date.now()}constructor(){(0,n._)(this,"registry",new Map),(0,n._)(this,"callbackRegistry",new Map)}},a=e=>o.register(e),l=e=>o.registerMany(e),s=(e,t)=>o.registerCallback(e,t),u=(e,t)=>o.triggerCallback(e,t),d=(e,t,i)=>o.get(e,t,i),c=(e,t)=>o.getData(e,t)},62575:function(e,t,i){"use strict";i.d(t,{O:function(){return n},c:function(){return r}}),i(706056);var n={Default:"default",GameAnchor:"gameAnchor"};let r=e=>!!(e&&Object.values(n).includes(e))},624508:function(e,t,i){"use strict";let n;i.d(t,{h:function(){return p}});var r=i(480333),o=i(629686),a=i(402748);i(591964),i(706056),i(374954);var l=i(8996),s=i(857800),u=i(806904),d=i(618759),c=i(601034),f=i(874973),h=i(810069),v=i(499059),_=i(335924),m=i(600586);class p{registerEvent(){if(!(0,s.B)()||this.hasShowOnce){this.hasShowOnce=!0;return}let e=()=>{"hidden"!==document.visibilityState&&(this.hasShowOnce=!0,document.removeEventListener("visibilitychange",e),this.sendCacheLog())};document.addEventListener("visibilitychange",e)}initFirstVisibleTime(){if(n)return;if("hidden"!==document.visibilityState&&!n){n=Date.now();return}let e=()=>{"hidden"!==document.visibilityState&&(!n&&(n=Date.now()),document.removeEventListener("visibilitychange",e))};document.addEventListener("visibilitychange",e)}isCacheLog(){return!this.hasShowOnce&&!0}sendCacheLog(){!1===p.isInIdleCallback&&(p.isInIdleCallback=!0,(0,u.l)(()=>{for(;0!==p.pendingSendStore.length;){var e,t;null===(e=(t=window).collectEvent)||void 0===e||e.call(t,p.pendingSendStore.splice(0,50))}p.isInIdleCallback=!1},{timeout:300}))}sendLog(e){var t,i;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=null===(t=this.config[e])||void 0===t?void 0:t.eventName,l=null===(i=this.config[e])||void 0===i?void 0:i.params;this._sendLog(a,(0,o._)({},l,n),r)}report(e,t){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];this._sendLog(e,t,i)}_sendLog(e,t){var i,r,s,_,g,y,w,b,C;let S=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if((0,d._Q)())return;let{urlParamList:k,defaultParam:x={}}=t||{},I={};try{I=(k||[]).reduce((e,t)=>t===l.LOG_PASS_THROW_PARAMS?e:(!e[t]&&(e[t]=this._setpUrlParam(t),!this._setpUrlParam(t)&&delete e[t]),e),{})}catch(e){I={}}let L={};try{L=JSON.parse(this._setpUrlParam(l.LOG_PASS_THROW_PARAMS))}catch(e){}delete t.urlParamList,delete t.defaultParam;let E=(0,a._)((0,o._)({},x,L,I,t||{}),{x_timestamp:Date.now(),x_event_tirgger_duration:n?Date.now()-n:-1});if((null===(i=location)||void 0===i?void 0:i.host)==="www.douyin.com"&&"video_detail"===(0,c.yW)()&&""===E.previous_page&&(E.previous_page="web_link"),(0,f.r)(e,E),m.Z.includes(e)&&(null===(r=(0,h.Es)())||void 0===r?void 0:r.globalwid)){let t=`Gwid.${e}`;if(this.isCacheLog()){p.pendingSendStore.push([e,E]);return}null===(s=(_=window).collectEvent)||void 0===s||s.call(_,t,E)}if(this.isCacheLog()){p.pendingSendStore.push([e,E]);return}if(!S){null===(g=(y=window).collectEvent)||void 0===g||g.call(y,e,E);return}if(window.TeaWorker){let t=v.Le.getConfig(v.gI.AbtestData);if(((null==t?void 0:null===(b=t.teaWorker)||void 0===b?void 0:null===(w=b.coreEvents)||void 0===w?void 0:w.length)>0?null==t?void 0:null===(C=t.teaWorker)||void 0===C?void 0:C.coreEvents:m.o).includes(e)){p.pendingSendStore.push([e,E]),!1===p.isInIdleCallback&&(p.isInIdleCallback=!0,(0,u.l)(()=>{for(;0!==p.pendingSendStore.length;)window.TeaWorker.port.postMessage({type:"events",data:p.pendingSendStore.splice(0,50)});p.isInIdleCallback=!1},{timeout:300}));return}}p.pendingSendStore.push([e,E]),!1===p.isInIdleCallback&&(p.isInIdleCallback=!0,(0,u.l)(()=>{for(;0!==p.pendingSendStore.length;){var e,t;null===(e=(t=window).collectEvent)||void 0===e||e.call(t,p.pendingSendStore.splice(0,50))}p.isInIdleCallback=!1},{timeout:300}))}_setpUrlParam(e){return(0,_.Rs)(e)}_initLog(e){this.config=e}constructor(e){(0,r._)(this,"config",{}),(0,r._)(this,"teaConfig",{}),(0,r._)(this,"hasShowOnce",void 0),this._initLog(e),this.registerEvent(),this.initFirstVisibleTime()}}(0,r._)(p,"logTrace",[]),(0,r._)(p,"pendingSendStore",[]),(0,r._)(p,"isInIdleCallback",!1)},332525:function(e,t,i){"use strict";i.d(t,{c:function(){return n}});let n={livesdkJianianhuaSwitch:{eventName:"livesdk_jianianhua_switch",params:{action_type:""}},livesdkLiveShowJianianhua:{eventName:"livesdk_live_show_jianianhua",params:{enter_from_merge:"",enter_method:"",anchor_id:"",room_id:"",stream_type:""}},livesdkLivePlayJianianhua:{eventName:"livesdk_live_play_jianianhua",params:{enter_from_merge:"",enter_method:"",anchor_id:"",room_id:"",stream_type:""}},livesdkJianianhuaSwicthList:{eventName:"livesdk_jianianhua_switch_list",params:{enter_from_merge:"",enter_method:"",anchor_id:"",room_id:"",stream_type:""}},livesdkJianianhuaAnchorList:{eventName:"livesdk_jianianhua_anchor_list",params:{anchor_id:"",if_living:0}},livesdkJianianhuaSwitchList:{eventName:"livesdk_jianianhua_switch_list",params:{}}}},676782:function(e,t,i){"use strict";i.d(t,{J:function(){return n}});let n={livesdkHoverLivePlay:{eventName:"livesdk_hover_live_play",params:{anchor_id:"",room_id:"",enter_from_merge:"",request_id:""}},coverMouseover:{eventName:"cover_mouseover",params:{group_id:"",aweme_type:0,anchor_id:"",room_id:"",enter_from_merge:"",request_id:"",content_sdk:""}},hoverPauseClick:{eventName:"hover_pause_click",params:{anchor_id:"",room_id:"",enter_from_merge:"",request_id:"",content_sdk:"",click_type:"",aweme_type:0,group_id:"",if_first_big_card:0,sub_tab_name:"",visit_id:"",gid_rank:0,is_first_screen:0}},livesdkHoverLiveDuration:{eventName:"livesdk_hover_live_duration",params:{anchor_id:"",room_id:"",enter_from_merge:"",request_id:"",duration:0}},livesdkHoverLiveDurationNew:{eventName:"livesdk_hover_live_duration_new",params:{anchor_id:"",room_id:"",enter_from_merge:"",request_id:"",duration:0}},livesdkLiveDislikeSortShow:{eventName:"livesdk_live_dislike_sort_show",params:{enter_from_merge:"",enter_method:"",anchor_id:"0",room_id:"",action_type:"",request_id:"",log_pb:"",video_id:"",request_location:"live_view"}},livesdkLiveDislikeSortClick:{eventName:"livesdk_live_dislike_sort_click",params:{enter_from_merge:"",enter_method:"",anchor_id:"0",room_id:"",action_type:"",request_id:"",log_pb:"",video_id:"",request_location:"live_view",dislike_type:"dislike_content"}},livesdkDislike:{eventName:"livesdk_dislike",params:{enter_from_merge:"",enter_method:"",anchor_id:"0",room_id:"",action_type:"",request_id:"",log_pb:"",video_id:"",request_location:"live_view",dislike_type:"dislike_content",is_paidlive:"0",watch_paidlive_status:"",entrance_form:"",play_position:""}},livesdkReportButtonClick:{eventName:"livesdk_report_button_click",params:{room_id:"",live_type:"",game_name:"",more_detail:"",web_live_tab:"",enter_from_merge:"",game_live_source:"",url_path:"",anchor_id:"",url:"",is_aweme_tied:"",enter_method:"",web_live_page:"",request_location:"",play_position:""}},livesdkLiveShow:{eventName:"livesdk_live_show",params:{enter_from_merge:"",enter_method:"web_video_head",action_type:"",request_id:"",is_vs:0,vs_episode_id:"",vs_ep_group_id:"",vs_season_id:"",vs_episode_stage:"",anchor_id:"",room_id:"",video_id:"",cid:0,if_qianchuan_ad:0,ad_type:-1,stream_type:""}},livesdkRecLivePlay:{eventName:"livesdk_rec_live_play",params:{anchor_id:"",room_id:"",enter_from_merge:"",enter_method:"web_video_head",game_name:"",live_type:"",is_aweme_tied:0,game_live_source:"",url:"",url_path:"",action_type:"click",request_id:"",is_vs:0,vs_episode_id:"",vs_ep_group_id:"",vs_season_id:"",vs_episode_stage:"",cid:0,if_qianchuan_ad:0,ad_type:-1,stream_type:""}}}},173379:function(e,t,i){"use strict";i.d(t,{m:function(){return d}});var n=i(480333),r=i(629686);i(679308),i(362051),i(591964),i(490629),i(374954);var o=i(232443),a=i(426038),l=i(350856),s=i.n(l);let u=36e5,d=new class e{reportOnline(){if("visible"===document.visibilityState)(0,o.tY)({}).then(()=>{}).catch(()=>{})}startRefreshInterval(){this.stopRefreshingInterval(),this.refreshIntervalTimer=setInterval(()=>{this.refreshDebounced()},this.refreshInterval)}stopRefreshingInterval(){this.refreshIntervalTimer&&clearInterval(this.refreshIntervalTimer)}startReportInterval(){this.stopReportInterval(),this.reportOnline(),this.reportIntervalTimer=setInterval(()=>{this.reportOnline()},this.reportHeartbeat)}stopReportInterval(){this.reportIntervalTimer&&clearInterval(this.reportIntervalTimer)}async refreshConfig(){let e=await (0,o.Md)({});if(0===e.status_code){var t;this.userConfig.invisible_list=Array.isArray(e.invisible_list)?e.invisible_list:[],this.userConfig.visible_list=Array.isArray(e.visible_list)?e.visible_list:[];let i=null!==(t=e.status_switch)&&void 0!==t?t:o.fJ.CLOSE_ACTIVE_STATUS;this.userConfig.status_switch!==i&&(this.userConfig.status_switch=i,this.userConfig.online_config&&this.refreshDebounced({force:!0})),this.userConfig.online_config=!0}return e}async setConfig(e){let{user_list:t}=e;return!Array.isArray(t)&&(e.status_switch===o.fJ.PART_FRIEND_CAN_SEE?t=this.userConfig.visible_list:e.status_switch===o.fJ.PART_FRIEND_CAN_NOT_SEE&&(t=this.userConfig.invisible_list)),await (0,o.j7)({status_switch:e.status_switch,user_list:t}),await this.refreshConfig()}startInterval(){this.refreshConfig(),this.startRefreshInterval(),this.startReportInterval()}stopInterval(){this.stopReportInterval(),this.stopRefreshingInterval()}getTodayStartTimeMillis(){let e=new Date;return e.setHours(0,0,0,0),e.getTime()}getYesterdayStartTimeMillis(){let e=new Date;return e.setHours(0,0,0,0),e.getTime()-24*u}getDisplayFormat(e){let t=Math.max(0,new Date().getTime()-e-this.activeDelay),i=Math.floor(t/6e4),n=Math.floor(t/u),r=this.getTodayStartTimeMillis(),o=this.getYesterdayStartTimeMillis(),a="",l="not_online",s=!1;return t<=0?(a="在线",l="online",s=!0):t>=252e5?e=0&&i<=59?(a=`${Math.max(1,i)}分钟前在线`,l="min"):n>=0&&n<7&&(a=`${Math.max(1,n)}小时前在线`,l="hour"),{isOnline:s,lastActiveText:a,lastActiveLogValue:l}}callSubscriber(){for(let e=0;e{this.lastUpdateTime[e]=a}),null!==(i=null==r?void 0:null===(t=r.data)||void 0===t?void 0:t.reduce((e,t)=>{let i=1e3*t.last_active_time,{isOnline:n,lastActiveText:r,lastActiveLogValue:o}=this.getDisplayFormat(i);return e[t.sec_user_id]={isOnline:n,lastActiveTime:i,lastActiveText:r,lastUpdateTime:a,lastActiveLogValue:o},e},{}))&&void 0!==i?i:{}}updateStatusStoreText(){let e={};Object.keys(this.statusStore).forEach(t=>{let i=this.statusStore[t];e[t]=(0,r._)({},i,this.getDisplayFormat(i.lastActiveTime))}),this.mergeStatusStore(e)}refresh(){let{force:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.subscribers.reduce((t,i)=>{let n=Date.now();return i.watchedUids.forEach(i=>{(e||!this.lastUpdateTime[i]||this.lastUpdateTime[i]{this.mergeStatusStore(e),this.updateStatusStoreText(),this.callSubscriber()}):(this.updateStatusStoreText(),this.callSubscriber())}subscribeUserActiveStatus(e){let{secUids:t,callback:i}=e;return this.subscribers.push({callback:i,watchedUids:new Set(t)}),i({infoDict:this.statusStore}),this.refreshDebounced(),{data:this.statusStore,unsubscribe:()=>{this.subscribers=this.subscribers.filter(e=>e.callback!==i)}}}isUserEnableActiveStatus(){return this.userConfig.status_switch!==o.fJ.CLOSE_ACTIVE_STATUS}constructor(){(0,n._)(this,"activeDelay",6e5),(0,n._)(this,"reportHeartbeat",18e4),(0,n._)(this,"refreshInterval",Number(6e4)),(0,n._)(this,"infoObsoleteDuration",3e5),(0,n._)(this,"statusStore",{}),(0,n._)(this,"lastUpdateTime",{}),(0,n._)(this,"subscribers",[]),(0,n._)(this,"refreshIntervalTimer",void 0),(0,n._)(this,"reportIntervalTimer",void 0),(0,n._)(this,"userConfig",{status_switch:o.fJ.CLOSE_ACTIVE_STATUS,invisible_list:[],visible_list:[],online_config:!1}),(0,n._)(this,"refreshDebounced",s()(this.refresh,500))}}},623594:function(e,t,i){"use strict";let n;i.d(t,{NE:function(){return I},Ol:function(){return C},Ox:function(){return L},P_:function(){return S},RK:function(){return b},bF:function(){return x},et:function(){return E},v5:function(){return k}});var r=i(629686),o=i(402748);i(362051),i(679308),i(374954);var a=i(30995),l=i(333047),s=i(513565),u=i(911429),d=i(811277),c=i(337793),f=i.n(c),h=i(277361),v=i.n(h);let{COMMON_SEARCH_PARAMS:_,DISABLE_SECRET_VIDEO_PARAMS:m,CHANNEL_PC_WEB:p}=a||{},{ERROR_CODE:g}=l||{};async function y(e){let{sec_user_ids:t}=e;return(arguments.length>1&&void 0!==arguments[1]&&arguments[1],t&&0!==t.length)?await (0,u.v_)("/aweme/v1/web/im/user/info/",(0,r._)({},_),{sec_user_ids:JSON.stringify(t)}):{statusCode:g.ERROR_INVALID_PARAM}}s.HOME_DOMAIN;let w=new d.n({max:40,timeWait:100,runOperation:e=>{let t=[];f()(e,e=>{let{param:i}=e;t.push(i)}),y({sec_user_ids:v()(t)}).then(t=>{let i=null==t?void 0:t.data;if((null==t?void 0:t.status_code)===0&&(null==i?void 0:i.length)){let t={};f()(i,(e,i)=>{let n=null==e?void 0:e.sec_uid;n&&(t[n]=e)}),f()(e,e=>{var i,n;let r=null==e?void 0:e.param;r&&t[r]?null==e||null===(i=e.resolve)||void 0===i||i.call(e,t[r]):null==e||null===(n=e.reject)||void 0===n||n.call(e,"error")})}else(0,d.h)(e,"")}).catch(t=>{(0,d.h)(e,t)})}});async function b(e){return w.add(e)}var C={follow:1,1:"follow",unfollow:0,0:"unfollow"};async function S(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return await (0,u.v_)("/aweme/v1/web/commit/follow/user/",(0,r._)({},_),{user_id:e,type:t})}async function k(e){let{count:t=50,max_time:i=Date.now(),min_time:a=0,with_fstatus:l=1,source:s="coldup"}=e;arguments.length>1&&void 0!==arguments[1]&&arguments[1];let d=n||a,c=await (0,u.U2)("/aweme/v1/web/im/spotlight/relation/",(0,o._)((0,r._)({},_),{count:t,source:s,max_time:i,min_time:d,need_remove_share_panel:!0,need_sorted_info:!0,with_fstatus:l}));return n=null==c?void 0:c.min_time,c}var x={block:1,1:"block",unblock:0,0:"unblock"},I={block:0,0:"block",allowOtherSee:1,1:"allowOtherSee",unSeeOther:2,2:"unSeeOther"};async function L(e,t,i,n){return await (0,u.v_)("/aweme/v1/web/user/block/",(0,r._)({},_),{user_id:e,sec_user_id:t,block_type:i,source:n})}async function E(e){return await (0,u.U2)("/aweme/v1/web/user/profile/other/",(0,o._)((0,r._)({},_),{source:p,sec_user_id:e}),{},void 0)}},672693:function(e,t,i){"use strict";i.d(t,{hs:function(){return f},kQ:function(){return h},xO:function(){return d}});var n=i(629686),r=i(402748);i(679308);var o=i(911429),a=i(30995),l=i(732199);let{COMMON_SEARCH_PARAMS:s}=a||{},u=e=>{var t;let{status_code:i,knowledge_list:n=[]}=e;return{statusCode:i,knowledgeList:null==n?void 0:null===(t=n.map)||void 0===t?void 0:t.call(n,e=>({knowledge:e.knowledge,startTime:e.start_time,endTime:e.end_time}))}},d=[{title:"你可能感兴趣",content:"帮我快速总结当前视频主要内容"},{title:"视频相关 AI 搜",content:"该视频涉及到哪些关键知识点"},{title:"让 AI 帮我答",content:"学完该视频课程后,该看什么进阶内容"}],c=e=>{var t;let{status_code:i,version:n,question_list:r=[]}=e;return{statusCode:i,version:n,questionList:null==r?void 0:null===(t=r.map)||void 0===t?void 0:t.call(r,e=>({content:e.content,title:e.title,context:e.context,icon:e.icon,iconDark:e.icon_dark,type:e.type,subType:e.sub_type,startTime:e.start_time,endTime:e.end_time,score:e.score}))}};async function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{awemeId:i}=e||{},a=await (0,o.U2)("/douyin/select/study/ai_assistant/watch/current_mention/get",(0,r._)((0,n._)({},s),{item_id:i}),{},void 0,t);return(0,l.RL)(a,u)}async function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{awemeId:i,imageUri:a}=e||{},u=await (0,o.U2)("/douyin/select/study/ai_assistant/watch/sug/get",(0,r._)((0,n._)({},s),{item_id:i,image_uri:a}),{},void 0,t);return(0,l.RL)(u,c)}},190503:function(e,t,i){"use strict";i.d(t,{Z:function(){return l}});var n=i(629686);i(362051),i(679308);var r=i(30995),o=i(911429);let{COMMON_SEARCH_PARAMS:a}=r;async function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=await (0,o.v_)("/aweme/v1/web/commit/follow/user/",(0,n._)({},a),{user_id:e,type:Number(!!t)}),r=i.log_pb&&JSON.stringify(i.log_pb),l=i.status_code;return 0===i.status_code&&void 0===i.follow_status&&(l=-1),{logPb:r,statusCode:l,followStatus:i.follow_status,errMsg:0===l||i.status_msg?i.status_msg:"啊哦,服务器打瞌睡了"}}},495394:function(e,t,i){"use strict";i.d(t,{Dn:function(){return d},mZ:function(){return u},wU:function(){return c}});var n=i(629686);i(679308);var r=i(30995),o=i(732199),a=i(911429);let{COMMON_SEARCH_PARAMS:l,CHANNEL_PC_WEB:s}=r||{};async function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=await (0,a.U2)("/aweme/v1/web/multicast/query/",(0,n._)({},l),{},void 0,t,{});return(0,o.B)(i)}async function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=await (0,a.U2)("/aweme/v1/web/mobile/ab/params/",(0,n._)({},l),{},void 0,e,{});return(0,o.N7)(t)}async function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=await (0,a.v_)("/aweme/v1/web/multicast/record/",(0,n._)({},l),e,void 0,t);return(0,o.jq)(i)}},263082:function(e,t,i){"use strict";i.d(t,{m:function(){return l}});var n=i(629686);i(679308);var r=i(30995),o=i(911429);let{COMMON_SEARCH_PARAMS:a}=r;async function l(e){var t;let{sec_user_id:i}=e;return{statusCode:(t=await (0,o.v_)("/aweme/v1/web/remove/follower/",(0,n._)({sec_user_id:i},a))).status_code,logPb:t.log_pb,statusMsg:t.status_msg}}},48094:function(e,t,i){"use strict";i.d(t,{OY:function(){return c},Rc:function(){return u},vg:function(){return d}});var n=i(629686),r=i(402748);i(679308);var o=i(30995),a=i(732199),l=i(911429);let{COMMON_SEARCH_PARAMS:s}=o||{};async function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=await (0,l.U2)("/aweme/v1/web/web_shorten/",(0,n._)({target:e,belong:"aweme",persist:1},s),{},void 0,t,{});return(0,a.RL)(i,a.Vk)}async function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=await (0,l.U2)("/aweme/v2/platform/share/command/gen",(0,r._)((0,n._)({schema:e,belong:"aweme",persist:1},s),{schema_type:4,copy_type:"auto",object_id:t}),{},void 0,null,{});return(0,a.RL)(i,a.Vk)}async function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{target:i}=e;return await (0,l.U2)("/aweme/v1/web/web_shorten/",(0,n._)({target:i,belong:"chengzijianzhan",persist:1},s),{},void 0,t,{})}},288771:function(e,t,i){"use strict";i.d(t,{YG:function(){return g},c6:function(){return m},pr:function(){return p}});var n=i(320165),r=i(101199),o=i(707246),a=i(742289),l=i(278922),s=i(911159),u=i(441322),d=i(788591),c=i(344780),f=i(234063),h=i(255764),v=i(414986),_=i(232935);let m=e=>{let{children:t}=e,i=(0,r.useMemo)(()=>(0,v.Ws)([(0,o.jk)(),(0,a.KY)(),(0,l.ak)(),(0,s.Yn)(),(0,u.Jh)(),(0,d.hf)(),(0,c.q7)(),(0,f.KT)(),(0,h.VQ)(),(0,_.YK)()]),[]);return(0,n.jsx)(v.xf.Provider,{value:i,children:t})},p=e=>{let{children:t}=e,i=(0,r.useMemo)(()=>(0,v.Ws)([(0,o.jk)(),(0,a.KY)(),(0,l.ak)(),(0,d.hf)(),(0,c.q7)(),(0,f.KT)(),(0,h.VQ)(),(0,_.YK)()]),[]);return(0,n.jsx)(v.xf.Provider,{value:i,children:t})},g=e=>{let{children:t}=e,i=(0,r.useMemo)(()=>(0,v.Ws)([(0,o.jk)(),(0,a.KY)(),(0,l.ak)(),(0,f.KT)(),(0,c.q7)(),(0,h.VQ)(),(0,_.YK)(),(0,s.Yn)()]),[]);return(0,n.jsx)(v.xf.Provider,{value:i,children:t})}},20113:function(e,t,i){"use strict";i.d(t,{W:function(){return r},x:function(){return n.x}});var n=i(544887),r={Unknown:0,0:"Unknown",Live:1,1:"Live",FirstLive:2,2:"FirstLive",RecordLive:3,3:"RecordLive"}},263832:function(e,t,i){"use strict";i.d(t,{DD:function(){return o},LH:function(){return w},NJ:function(){return a},TP:function(){return _},VZ:function(){return h},Zh:function(){return y},_6:function(){return d},as:function(){return v},cS:function(){return l},ed:function(){return n.e},f_:function(){return s},gQ:function(){return u},jD:function(){return g},mI:function(){return p},pj:function(){return f},qG:function(){return m},uN:function(){return c},yp:function(){return r}});var n=i(855357),r={CN:"CN"},o={UNKNOW:0,0:"UNKNOW",NOTE:2,2:"NOTE",VIDEO:4,4:"VIDEO",STORY:11,11:"STORY",VR:12,12:"VR",ARTICLE:43,43:"ARTICLE",SLIDES:42,42:"SLIDES"},a={Picture:2,2:"Picture",Video:4,4:"Video",LivePhoto:5,5:"LivePhoto"},l={ListFromTrend:0,0:"ListFromTrend",Trending:2,2:"Trending"},s={NoLabel:0,0:"NoLabel",LabelYellow:1,1:"LabelYellow",LabelBlue:2,2:"LabelBlue",LabelLinearYellowV:3,3:"LabelLinearYellowV",LabelBlackGoldV:4,4:"LabelBlackGoldV",LabelLinearBlueV:5,5:"LabelLinearBlueV",LabelBlackBlueV:6,6:"LabelBlackBlueV",LabelRedV:7,7:"LabelRedV"},u={CommentTopRec:"comment_top_rec",FeedBottomRec:"feed_bottom_rec",SearchIconRec:"search_icon_rec",SearchBarInboxRec:"detail_inbox_rex"},d={Normal:0,0:"Normal",Ad:1,1:"Ad"},c={UnknownBiz:0,0:"UnknownBiz",Live:1,1:"Live",ShortVideo:2,2:"ShortVideo",LongVideo:3,3:"LongVideo",ShortDrama:4,4:"ShortDrama",Collection:5,5:"Collection"},f={Updating:1,1:"Updating",End:2,2:"End"},h={All:0,0:"All",Movie:1,1:"Movie",TvShow:2,2:"TvShow",Cartoon:3,3:"Cartoon",Vs:4,4:"Vs",Documentary:5,5:"Documentary",Child:13,13:"Child"},v={POI:2,2:"POI",AnchorShop:3,3:"AnchorShop",AnchorGame:13017,13017:"AnchorGame"},_={HideAll:0,0:"HideAll",ShowSideCarOnly:1,1:"ShowSideCarOnly"},m={Normal:0,0:"Normal",Xigua:1,1:"Xigua"},p={All:0,0:"All",Part:1,1:"Part",Friend:2,2:"Friend"},g={RoomId:0,0:"RoomId",TicketId:1,1:"TicketId",AnchorId:3,3:"AnchorId"},y={LiveTryWatchStart:1,1:"LiveTryWatchStart",LiveTimedReport:2,2:"LiveTimedReport",LiveTryWatchEnd:3,3:"LiveTryWatchEnd",ReplayAuth:4,4:"ReplayAuth",ReplayDelivery:5,5:"ReplayDelivery",LiveDelivery:6,6:"LiveDelivery",LiveAuth:7,7:"LiveAuth",SeatAuth:8,8:"SeatAuth",SeatDelivery:9,9:"SeatDelivery"},w={PrivilegeLive:6,6:"PrivilegeLive",MemberLive:101,101:"MemberLive"}},187087:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsxs)("svg",(0,r._)((0,n._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,o.jsx)("rect",{x:6,y:5,width:10,height:1.5,rx:".75",fill:"#4F5168"}),(0,o.jsx)("rect",{x:7.061,y:5,width:16,height:1.5,rx:".75",transform:"rotate(45 7.06 5)",fill:"#4F5168"}),(0,o.jsx)("rect",{x:7.5,y:5,width:10,height:1.5,rx:".75",transform:"rotate(90 7.5 5)",fill:"#4F5168"})]})));t.Z=l},934134:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsxs)("svg",(0,r._)((0,n._)({width:12,height:13,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,o.jsx)("rect",{y:11.907,width:15.428,height:1.543,rx:".771",transform:"rotate(-45 0 11.907)",fill:"#2F3035"}),(0,o.jsx)("rect",{x:1.09,y:".998",width:15.428,height:1.543,rx:".771",transform:"rotate(45 1.09 .998)",fill:"#2F3035"})]})));t.Z=l},50065:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsxs)("svg",(0,r._)((0,n._)({width:17,height:17,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,o.jsx)("path",{d:"M7.999 1.246a1.6 1.6 0 0 1 1.6 0l5.328 3.076c.495.286.8.814.8 1.386v6.152a1.6 1.6 0 0 1-.8 1.386L9.6 16.322a1.6 1.6 0 0 1-1.601 0l-5.328-3.076a1.6 1.6 0 0 1-.8-1.386V5.708c0-.572.305-1.1.8-1.386L8 1.246z",fill:"url(#hot-top3_svg__paint0_linear_2723_113260)"}),(0,o.jsx)("g",{filter:"url(#hot-top3_svg__filter0_d_2723_113260)",children:(0,o.jsx)("path",{d:"M6.26 10.234c0-.067.034-.107.1-.12l1.31-.21c.067-.014.1.013.1.08.014.173.07.313.17.42.1.107.25.16.45.16a.74.74 0 0 0 .6-.28c.16-.194.24-.427.24-.7 0-.2-.056-.354-.17-.46-.113-.114-.273-.17-.48-.17h-.27c-.066 0-.093-.034-.08-.1l.19-1.12c.02-.067.06-.1.12-.1h.25c.24 0 .437-.087.59-.26a.945.945 0 0 0 .23-.65.536.536 0 0 0-.13-.38c-.086-.094-.21-.14-.37-.14a.676.676 0 0 0-.45.16c-.12.1-.216.236-.29.41-.026.06-.066.086-.12.08L7 6.654c-.053-.014-.07-.054-.05-.12.08-.24.197-.46.35-.66a2.395 2.395 0 0 1 1.26-.88 2.8 2.8 0 0 1 .87-.13c.3 0 .564.04.79.12.227.073.417.176.57.31.154.133.267.293.34.48.08.18.12.38.12.6a1.997 1.997 0 0 1-1.02 1.77v.02c.16.093.3.24.42.44.127.193.19.45.19.77 0 .373-.07.716-.21 1.03a2.485 2.485 0 0 1-.55.8 2.58 2.58 0 0 1-.83.52c-.32.12-.663.18-1.03.18-.306 0-.583-.04-.83-.12-.24-.08-.446-.19-.62-.33a1.543 1.543 0 0 1-.39-.53 1.653 1.653 0 0 1-.12-.69z",fill:"#fff"})}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("filter",{id:"hot-top3_svg__filter0_d_2723_113260",x:6.251,y:4.864,width:5,height:7.84,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,o.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,o.jsx)("feOffset",{dy:".8"}),(0,o.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,o.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,o.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_2723_113260"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_2723_113260",result:"shape"})]}),(0,o.jsxs)("linearGradient",{id:"hot-top3_svg__paint0_linear_2723_113260",x1:11.599,y1:15.184,x2:6.799,y2:1.984,gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{offset:".167",stopColor:"#D67F66"}),(0,o.jsx)("stop",{offset:1,stopColor:"#FEC9B9"})]})]})]})));t.Z=l},526948:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsxs)("svg",(0,r._)((0,n._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,o.jsx)("mask",{id:"hot2_svg__a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:2,y:0,width:16,height:20,children:(0,o.jsx)("path",{d:"M14.457 4.994c-3.353-2.95-2.36-4.522-2.636-4.73-.277-.207-1.814.78-2.807 1.77-.992.991-1.483 1.945-1.717 2.655-.228.689-.382 1.513-.319 2.92.003.061-.055.108-.113.088-.763-.262-1.45-1.016-1.804-2.08-.033-.097-.152-.135-.23-.07-2.414 2.032-2.896 5.375-2.47 7.929.436 2.611 3.183 6.28 7.525 6.28 4.342 0 7.304-3.3 7.754-6.28C18.315 9 16.396 6.7 14.457 4.994z",fill:"url(#hot2_svg__paint0_linear_20455_77271)"})}),(0,o.jsxs)("g",{mask:"url(#hot2_svg__a)",children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.789 5.21c-1.595 1.96-3.191 4.347-3.191 6.666 0 4.42 4.143 8.5 10.254 8.5 4.823 0 6.856.295 4.59-6.044-.035-.1.164-.376-.241-.206-1.579-.405-4.058-1.86-6.308-3.727C7.82 8.68 5.933 6.592 5.346 5.172c-.158-.141-.427-.123-.557.037z",fill:"url(#hot2_svg__paint1_linear_20455_77271)"}),(0,o.jsx)("mask",{id:"hot2_svg__b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:2,y:4,width:15,height:16,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.903 4.74a10.984 10.984 0 0 0-2.193 6.584c0 4.427 3.797 8.514 9.397 8.514 4.42 0 5.551.389 3.475-5.96a.32.32 0 0 0-.221-.206c-1.447-.406-3.984-1.664-6.046-3.533-1.899-1.72-3.363-4.013-3.901-5.435a.345.345 0 0 0-.51.037z",fill:"#fff"})}),(0,o.jsx)("g",{mask:"url(#hot2_svg__b)",children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.758.837a10.984 10.984 0 0 0-2.193 6.584c0 4.427 3.797 8.513 9.396 8.513 4.42 0 5.552.39 3.475-5.96a.32.32 0 0 0-.22-.206c-1.447-.405-3.985-1.663-6.047-3.532C9.271 4.515 7.807 2.222 7.27.8a.345.345 0 0 0-.511.036z",fill:"url(#hot2_svg__paint2_linear_20455_77271)"})}),(0,o.jsx)("g",{filter:"url(#hot2_svg__filter0_i_20455_77271)",children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.122-1.284c-.01-.224-.235-.566-.703-.234C7.906.667 6.844 3.83 6.891 6.522c.1 2.776 1.674 4.402 4.294 6.87 2.488 2.282 2.202 4.776.702 6.559-.174.207.007.49.312.485 5.174-.09 7.885-1.3 7.652-7.407-.119-2.763-1.156-5.986-4.684-8.926-2.343-1.952-3-4.225-3.045-5.387z",fill:"url(#hot2_svg__paint3_linear_20455_77271)"})}),(0,o.jsx)("mask",{id:"hot2_svg__c",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:6,y:-1,width:16,height:24,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.937-.056c-.01-.246-.295-.4-.539-.291-3.57 1.6-4.582 3.865-4.53 6.815.104 3.041 1.479 5.861 4.103 8.572 2.492 2.503 2.167 4.773.67 6.724-.175.227.007.537.312.532 5.173-.09 9.337-2.365 9.093-9.058-.123-3.028-2.392-5.196-6.62-8.585-2.478-2.106-2.442-3.436-2.49-4.709z",fill:"#fff"})}),(0,o.jsx)("g",{mask:"url(#hot2_svg__c)",children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.732-1.969s.287 2.003 1.849 3.378c1.562 1.374 6.018 4.297 6.57 8.63.55 4.334-1.61 9.163-5.683 9.515 1.52-3.2-2.237-7.516-2.237-7.516s-3.215-3.583-3.724-7.365C9.984.56 13.732-1.969 13.732-1.969z",fill:"url(#hot2_svg__paint4_linear_20455_77271)"})})]}),(0,o.jsx)("g",{filter:"url(#hot2_svg__filter1_d_20455_77271)",children:(0,o.jsx)("path",{d:"M9.165 10.13v-.561a.79.79 0 0 1 .805-.799c.464 0 .792.316.792.755 0 .421-.235.793-.904 1.437l-2.922 2.83v1.59h6.495v-2.005h-3.028v-.1l1.337-1.312c1.195-1.17 1.554-1.802 1.554-2.718 0-1.468-1.281-2.452-3.188-2.452-1.932 0-3.356 1.183-3.356 2.799v.535h2.415z",fill:"#2F3035",fillOpacity:".7"})}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("filter",{id:"hot2_svg__filter0_i_20455_77271",x:6.89,y:-1.656,width:12.975,height:22.092,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,o.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,o.jsx)("feOffset",{dx:-1.445,dy:4.336}),(0,o.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:-1,k3:1}),(0,o.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.197917 0"}),(0,o.jsx)("feBlend",{in2:"shape",result:"effect1_innerShadow_20455_77271"})]}),(0,o.jsxs)("filter",{id:"hot2_svg__filter1_d_20455_77271",x:6.75,y:6.795,width:7.223,height:9.13,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,o.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,o.jsx)("feOffset",{dx:".542",dy:".542"}),(0,o.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"}),(0,o.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_20455_77271"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_20455_77271",result:"shape"})]}),(0,o.jsxs)("linearGradient",{id:"hot2_svg__paint0_linear_20455_77271",x1:13.211,y1:6.785,x2:6.331,y2:15.78,gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#FFDF5A"}),(0,o.jsx)("stop",{offset:1,stopColor:"#FFBD0B"})]}),(0,o.jsxs)("linearGradient",{id:"hot2_svg__paint1_linear_20455_77271",x1:17.539,y1:5.077,x2:17.539,y2:20.287,gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#A8A4B3"}),(0,o.jsx)("stop",{offset:1,stopColor:"#9393A3"})]}),(0,o.jsxs)("linearGradient",{id:"hot2_svg__paint2_linear_20455_77271",x1:15.907,y1:6.269,x2:15.907,y2:15.939,gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#fff",stopOpacity:".319"}),(0,o.jsx)("stop",{offset:1,stopColor:"#fff",stopOpacity:".01"})]}),(0,o.jsxs)("linearGradient",{id:"hot2_svg__paint3_linear_20455_77271",x1:6.056,y1:19.764,x2:5.695,y2:"-.93",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#9694A3"}),(0,o.jsx)("stop",{offset:1,stopColor:"#E5E3EB"})]}),(0,o.jsxs)("linearGradient",{id:"hot2_svg__paint4_linear_20455_77271",x1:20.565,y1:-2.573,x2:22.476,y2:19.023,gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#fff",stopOpacity:".301"}),(0,o.jsx)("stop",{offset:1,stopColor:"#fff",stopOpacity:".199"})]})]})]})));t.Z=l},873877:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsxs)("svg",(0,r._)((0,n._)({width:20,height:20,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,o.jsx)("rect",{x:4.5,y:3,width:11,height:1.833,rx:".917",fill:"#FACE15"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.083 8.867l-2.358 2.36A.917.917 0 1 1 5.428 9.93L9.34 6.018a.914.914 0 0 1 .666-.268.914.914 0 0 1 .643.269l3.908 3.908a.917.917 0 0 1-1.296 1.297l-2.345-2.345v6.954a.917.917 0 0 1-1.833 0V8.867z",fill:"#FACE15"})]})));t.Z=l},245421:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsx)("svg",(0,r._)((0,n._)({width:48,height:48,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,o.jsx)("path",{d:"M32.801 32.801c-.71.71-1.86.71-2.569 0l-5.565-5.566-5.566 5.566a1.817 1.817 0 0 1-2.569-2.569l5.566-5.566-5.566-5.565a1.817 1.817 0 0 1 2.569-2.57l5.566 5.567 5.566-5.566A1.816 1.816 0 1 1 32.8 19.1l-5.566 5.565 5.566 5.566c.71.71.71 1.86 0 2.57z",fill:"#fff",fillOpacity:".8"})})));t.Z=l},718587:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsx)("svg",(0,r._)((0,n._)({width:18,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.875 1.5a6.375 6.375 0 1 0 3.642 11.608l3.063 3.063a1.125 1.125 0 0 0 1.59-1.591l-3.062-3.063A6.375 6.375 0 0 0 7.875 1.5zM3.75 7.875a4.125 4.125 0 1 1 8.25 0 4.125 4.125 0 0 1-8.25 0z",fill:"#4F5168"})})));t.Z=l},62525:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsx)("svg",(0,r._)((0,n._)({width:16,height:14,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,o.jsx)("path",{d:"M.894 12.648H8.48a.812.812 0 0 0 .785-.816.806.806 0 0 0-.785-.785H.894a.798.798 0 0 0-.815.785.798.798 0 0 0 .785.816h.03zm0-4.934H8.48a.796.796 0 0 0 .785-.806.806.806 0 0 0-.785-.785H.894a.796.796 0 0 0-.02 1.59h.02zm0-4.935H8.48a.796.796 0 0 0 .785-.805.806.806 0 0 0-.785-.785H.894a.796.796 0 0 0 0 1.59zm11.948-1.437a.796.796 0 0 0-1.59 0v11.153a.793.793 0 0 0 1.264.642l3.059-2.232a.8.8 0 0 0 .193-1.112.8.8 0 0 0-1.111-.193c-.01 0-.01.01-.02.01l-1.795 1.305V1.342z",fill:"#2F3035",fillOpacity:".9"})})));t.Z=l},593640:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsxs)("svg",(0,r._)((0,n._)({width:14,height:14,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,o.jsx)("path",{d:"M7.583 9.45a.583.583 0 1 1-1.166 0V6.534a.583.583 0 1 1 1.166 0V9.45zM7 4.084a.642.642 0 1 0 0 1.283.642.642 0 0 0 0-1.283z",fill:"currentColor",fillOpacity:".75"}),(0,o.jsx)("path",{d:"M7 12.834A5.833 5.833 0 1 0 7 1.167a5.833 5.833 0 0 0 0 11.667zm0-1.167a4.667 4.667 0 1 1 0-9.333 4.667 4.667 0 0 1 0 9.333z",fill:"currentColor",fillOpacity:".75"})]})));t.Z=l},158580:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsxs)("svg",(0,r._)((0,n._)({xmlns:"http://www.w3.org/2000/svg",width:21,height:20,fill:"none",ref:t},e),{children:[(0,o.jsx)("path",{opacity:".1",d:"M.5 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10z",fill:"#FE2C55"}),(0,o.jsx)("path",{d:"M3.833 12.301v.91c0 .22.18.4.4.4h1.41a.4.4 0 0 0 .4-.4v-2.287H7.653v2.287c0 .22.18.4.4.4h1.41a.4.4 0 0 0 .4-.4V7.699v-.91a.4.4 0 0 0-.4-.4h-1.41a.4.4 0 0 0-.4.4v2.16H6.043v-1.25-.91a.4.4 0 0 0-.4-.4h-1.41a.4.4 0 0 0-.4.4V12.3z",fill:"url(#hd_svg__paint0_linear_5119_431964)"}),(0,o.jsx)("path",{d:"M11.316 11.097v2.114c0 .221.18.4.4.4h2.578c1.294 0 2.273-.52 2.652-1.678.168-.52.22-.945.22-1.933 0-.988-.052-1.413-.22-1.933-.379-1.158-1.358-1.678-2.652-1.678h-2.578a.4.4 0 0 0-.4.4v4.308zm2.21.538v-3.27h.316c.568 0 .863.127 1 .551.073.223.094.415.094 1.084s-.021.86-.095 1.083c-.136.425-.431.552-1 .552h-.315z",fill:"url(#hd_svg__paint1_linear_5119_431964)"}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("linearGradient",{id:"hd_svg__paint0_linear_5119_431964",x1:3.833,y1:6.389,x2:9.957,y2:17.562,gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#FF1764"}),(0,o.jsx)("stop",{offset:1,stopColor:"#ED3495"})]}),(0,o.jsxs)("linearGradient",{id:"hd_svg__paint1_linear_5119_431964",x1:3.833,y1:6.389,x2:9.957,y2:17.562,gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#FF1764"}),(0,o.jsx)("stop",{offset:1,stopColor:"#ED3495"})]})]})]})));t.Z=l},945023:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsx)("svg",(0,r._)((0,n._)({width:9,height:9,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,o.jsx)("path",{clipRule:"evenodd",d:"M1.2 4.024c0-1.375 1.05-2.426 2.426-2.426 1.217 0 2.269 1.051 2.269 2.426 0 1.218-1.051 2.269-2.27 2.269-1.374 0-2.425-1.051-2.425-2.269zM3.626.398C1.588.398 0 1.987 0 4.024 0 5.96 1.645 7.493 3.626 7.493c.729 0 1.414-.239 1.98-.64l1.57 1.57a.6.6 0 0 0 .848-.85l-1.57-1.57c.402-.565.64-1.25.64-1.979 0-1.98-1.533-3.626-3.468-3.626z"})})));t.Z=l},909126:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsxs)("svg",(0,r._)((0,n._)({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,o.jsx)("g",{filter:"url(#scissorsShadow_svg__filter0_d_3249_16227)",children:(0,o.jsx)("path",{d:"M4.227 2.579a.6.6 0 1 0-.848.848L7.152 7.2 5.687 8.664a.61.61 0 0 0-.03.032 2.8 2.8 0 1 0 .935.76L8 8.05 9.41 9.457a2.8 2.8 0 1 0 .935-.76.602.602 0 0 0-.031-.033L8.849 7.2l3.773-3.773a.6.6 0 0 0-.849-.848L8 6.352 4.227 2.579zM10 11.2a1.6 1.6 0 1 1 3.2 0 1.6 1.6 0 0 1-3.2 0zm-4-.002a1.6 1.6 0 1 1-3.2 0 1.6 1.6 0 0 1 3.2 0z",fill:"#fff",fillOpacity:".9",shapeRendering:"crispEdges"})}),(0,o.jsx)("defs",{children:(0,o.jsxs)("filter",{id:"scissorsShadow_svg__filter0_d_3249_16227",x:".6",y:2.403,width:14.8,height:13.597,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,o.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,o.jsx)("feOffset",{dy:1}),(0,o.jsx)("feGaussianBlur",{stdDeviation:".5"}),(0,o.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,o.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),(0,o.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_3249_16227"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_3249_16227",result:"shape"})]})})]})));t.Z=l},919895:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsxs)("svg",(0,r._)((0,n._)({width:18,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,o.jsxs)("g",{filter:"url(#searchIcon2Shadow_svg__filter0_d_3249_15877)",children:[(0,o.jsx)("path",{d:"M8.074.5a6.574 6.574 0 1 0 4.022 11.775l2.981 2.98a.833.833 0 1 0 1.179-1.178l-2.981-2.98A6.574 6.574 0 0 0 8.075.5zM3.167 7.074a4.907 4.907 0 1 1 9.814 0 4.907 4.907 0 0 1-9.814 0z",fill:"#fff"}),(0,o.jsx)("path",{d:"M8.074.375c3.7 0 6.7 3 6.7 6.7 0 1.503-.499 2.89-1.335 4.008l2.906 2.906a.959.959 0 0 1-1.356 1.356l-2.906-2.907a6.667 6.667 0 0 1-4.009 1.335 6.7 6.7 0 0 1 0-13.398zm0 1.917a4.782 4.782 0 1 0 0 9.564 4.782 4.782 0 0 0 0-9.564z",stroke:"#fff",strokeWidth:".25",strokeLinecap:"round"})]}),(0,o.jsx)("defs",{children:(0,o.jsxs)("filter",{id:"searchIcon2Shadow_svg__filter0_d_3249_15877",x:".25",y:".25",width:17.5,height:17.5,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,o.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,o.jsx)("feOffset",{dy:1}),(0,o.jsx)("feGaussianBlur",{stdDeviation:".5"}),(0,o.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,o.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.45 0"}),(0,o.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_3249_15877"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_3249_15877",result:"shape"})]})})]})));t.Z=l},944728:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsxs)("svg",(0,r._)((0,n._)({width:16,height:17,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,o.jsx)("g",{filter:"url(#searchIconShadow_svg__filter0_d_3249_16232)",children:(0,o.jsx)("path",{d:"M7.167 1.25a5.917 5.917 0 1 0 3.62 10.597l2.683 2.683a.75.75 0 1 0 1.06-1.06l-2.683-2.684a5.917 5.917 0 0 0-4.68-9.537zM2.75 7.167a4.417 4.417 0 1 1 8.833 0 4.417 4.417 0 0 1-8.833 0z",fill:"#fff",fillOpacity:".6"})}),(0,o.jsx)("defs",{children:(0,o.jsxs)("filter",{id:"searchIconShadow_svg__filter0_d_3249_16232",x:-1,y:0,width:18,height:18,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,o.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,o.jsx)("feOffset",{dy:1}),(0,o.jsx)("feGaussianBlur",{stdDeviation:".5"}),(0,o.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,o.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),(0,o.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_3249_16232"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_3249_16232",result:"shape"})]})})]})));t.Z=l},762086:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsx)("svg",(0,r._)((0,n._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.922 4.744a.833.833 0 0 0-1.178 0l-6.667 6.667a.833.833 0 0 0 0 1.178l6.667 6.667a.833.833 0 1 0 1.178-1.179L9.845 12l6.077-6.077a.833.833 0 0 0 0-1.179z",fill:"currentColor",fillOpacity:".9"})})));t.Z=l},933292:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsx)("svg",(0,r._)((0,n._)({width:12,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.512 4.61a.482.482 0 0 0-.645 0L6.5 6.745V1.008a.508.508 0 0 0-1.017 0v5.737L3.116 4.61a.482.482 0 1 0-.645.716l3.16 2.85a.538.538 0 0 0 .72 0l3.161-2.85a.482.482 0 0 0 0-.716zM1.958 9.667a.458.458 0 0 0 0 .916h8.084a.458.458 0 0 0 0-.916H1.958z",fill:"#fff"})})));t.Z=l},864912:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsx)("svg",(0,r._)((0,n._)({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.337 11.468a.857.857 0 0 0 1.212-1.213L9.292 8l2.257-2.256a.857.857 0 0 0-1.212-1.212L8.012 6.856 5.686 4.53a.857.857 0 1 0-1.212 1.212l2.257 2.256-2.257 2.256a.857.857 0 1 0 1.212 1.213l2.326-2.325 2.325 2.325z",fill:"#fff"})})));t.Z=l},401021:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsx)("svg",(0,r._)((0,n._)({width:17,height:22,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,o.jsx)("path",{opacity:".7",d:"M.043 4.28v13.66c0 1.749 0 2.624.363 3.093a1.74 1.74 0 0 0 1.314.675c.593.022 1.304-.488 2.726-1.506l9.757-6.989c1.087-.778 1.63-1.168 1.818-1.648a1.74 1.74 0 0 0-.014-1.303c-.198-.475-.75-.853-1.854-1.608l-9.756-6.67C2.985 1.019 2.28.536 1.693.567A1.74 1.74 0 0 0 .4 1.249C.043 1.716.043 2.571.043 4.281z",fill:"#fff",fillOpacity:".9"})})));t.Z=l},477389:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsxs)("svg",(0,r._)((0,n._)({width:50,height:51,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:[(0,o.jsx)("rect",{x:2,width:48,height:48,rx:10.667,fill:"#000"}),(0,o.jsx)("rect",{x:2.25,y:".25",width:47.5,height:47.5,rx:10.417,stroke:"#fff",strokeOpacity:".3",strokeWidth:".5"}),(0,o.jsx)("path",{d:"M23.485 19.383v-1.33a11.694 11.694 0 0 0-1.404-.092c-5.727 0-10.401 4.653-10.401 10.396 0 3.508 1.755 6.629 4.434 8.512a10.322 10.322 0 0 1-2.79-7.072c.018-5.669 4.545-10.285 10.161-10.414z",fill:"#00FAF0"}),(0,o.jsx)("path",{d:"M23.726 34.504a4.742 4.742 0 0 0 4.73-4.56V7.323h4.138a7.328 7.328 0 0 1-.13-1.441h-5.653v22.62a4.742 4.742 0 0 1-4.73 4.56 4.623 4.623 0 0 1-2.198-.553 4.71 4.71 0 0 0 3.843 1.994zM40.333 15.006v-1.255a7.792 7.792 0 0 1-4.286-1.274 8.029 8.029 0 0 0 4.286 2.53z",fill:"#00FAF0"}),(0,o.jsx)("path",{d:"M36.064 12.472a7.83 7.83 0 0 1-1.94-5.152H32.61a7.946 7.946 0 0 0 3.455 5.152zM22.084 23.593a4.745 4.745 0 0 0-4.748 4.745 4.723 4.723 0 0 0 2.55 4.192 4.774 4.774 0 0 1-.906-2.77 4.745 4.745 0 0 1 4.748-4.745c.48 0 .961.074 1.404.221v-5.76a11.694 11.694 0 0 0-1.404-.093h-.24v4.431a4.386 4.386 0 0 0-1.404-.221z",fill:"#FE2C55"}),(0,o.jsx)("path",{d:"M40.335 15.008v4.395c-2.937 0-5.635-.942-7.852-2.53V28.34c0 5.724-4.655 10.396-10.401 10.396-2.217 0-4.268-.702-5.95-1.884 1.904 2.032 4.601 3.324 7.613 3.324 5.727 0 10.401-4.653 10.401-10.396V18.313a13.457 13.457 0 0 0 7.852 2.53v-5.65a9.755 9.755 0 0 1-1.663-.185z",fill:"#FE2C55"}),(0,o.jsx)("path",{d:"M32.481 28.334V16.867a13.457 13.457 0 0 0 7.852 2.53v-4.395a7.961 7.961 0 0 1-4.286-2.53 7.77 7.77 0 0 1-3.436-5.152h-4.139v22.62a4.742 4.742 0 0 1-4.73 4.561 4.691 4.691 0 0 1-3.842-1.975 4.744 4.744 0 0 1-2.55-4.192 4.745 4.745 0 0 1 4.748-4.746c.48 0 .96.074 1.404.222v-4.432c-5.616.13-10.143 4.746-10.143 10.378 0 2.733 1.053 5.225 2.79 7.072a10.356 10.356 0 0 0 5.95 1.883c5.708.019 10.382-4.653 10.382-10.377z",fill:"#fff"}),(0,o.jsxs)("g",{filter:"url(#dy_svg__filter0_d_3174_122649)",children:[(0,o.jsx)("path",{d:"M6.433 38.133c-2.065 2.655-3.011 6.874-3.097 8.534 1.445-3.034 4.387-5.531 5.677-6.4l2.323 1.896V36H4.368l2.065 2.133z",fill:"#2C2D31"}),(0,o.jsx)("path",{d:"M8.989 40.966l1.994 1.629a.558.558 0 0 0 .91-.432V36a.558.558 0 0 0-.557-.557H4.368a.557.557 0 0 0-.4.945l1.736 1.794c-.939 1.332-1.624 2.944-2.093 4.423-.516 1.627-.786 3.144-.832 4.033a.558.558 0 0 0 1.06.268c1.272-2.67 3.781-4.936 5.15-5.94z",stroke:"#fff",strokeWidth:1.115,strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,o.jsx)("defs",{children:(0,o.jsxs)("filter",{id:"dy_svg__filter0_d_3174_122649",x:".546",y:33.768,width:13.58,height:16.244,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,o.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,o.jsx)("feOffset",{dy:".558"}),(0,o.jsx)("feGaussianBlur",{stdDeviation:".836"}),(0,o.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,o.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),(0,o.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_3174_122649"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_3174_122649",result:"shape"})]})})]})));t.Z=l},531156:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsxs)("svg",(0,r._)((0,n._)({xmlns:"http://www.w3.org/2000/svg",width:18,height:18,fill:"none",ref:t},e),{children:[(0,o.jsx)("path",{d:"M7.836 10.497c.069.034.178.077.324.117.554.15 1.215.15 1.945-.093a.437.437 0 0 0-.276-.83c-.56.187-1.046.186-1.439.08a1.07 1.07 0 0 1-.163-.056.437.437 0 1 0-.39.782z",fill:"#FFEAEE",stroke:"#FFEAEE",strokeWidth:".1"}),(0,o.jsx)("path",{opacity:".1",d:"M0 9a9 9 0 1 1 18 0A9 9 0 0 1 0 9z",fill:"#FE2C55"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 4.25c-2.485 0-4.5 1.894-4.5 4.237 0 1.206.54 2.297 1.391 3.073.043.038-.06 1.099.016 1.419a.35.35 0 0 0 .47.243c.303-.102.798-.269 1.09-.333C7.91 12.787 9 12.723 9 12.723c2.485 0 4.5-1.894 4.5-4.236 0-2.343-2.015-4.237-4.5-4.237z",fill:"#FF1764"}),(0,o.jsx)("path",{d:"M7.836 10.497c.069.034.178.077.324.117.554.15 1.215.15 1.945-.093a.437.437 0 0 0-.276-.83c-.56.187-1.046.186-1.439.08a1.07 1.07 0 0 1-.163-.056.437.437 0 1 0-.39.782z",fill:"#FFEAEE",stroke:"#FFEAEE",strokeWidth:".1"})]})));t.Z=l},185271:function(e,t,i){"use strict";var n=i(629686),r=i(402748),o=i(320165),a=i(101199);let l=(0,a.forwardRef)((e,t)=>(0,o.jsx)("svg",(0,r._)((0,n._)({width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,o.jsx)("path",{d:"M9 19L19 9M19 19L9 9",stroke:"#FF635B",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})));t.Z=l}}]);