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

6 lines
52 KiB
Plaintext

(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["465"],{455531:function(e,t,r){var n=r(443840),i=(function(){return this?this:"undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:Function("return this")()}).call(null);n.exportSymbol("proto.live.HotAtmosphere",null,i),proto.live.HotAtmosphere=function(e){n.Message.initialize(this,e,0,-1,proto.live.HotAtmosphere.repeatedFields_,null)},n.inherits(proto.live.HotAtmosphere,n.Message),n.DEBUG&&!COMPILED&&(proto.live.HotAtmosphere.displayName="proto.live.HotAtmosphere"),proto.live.HotAtmosphere.repeatedFields_=[9,10],n.Message.GENERATE_TO_OBJECT&&(proto.live.HotAtmosphere.prototype.toObject=function(e){return proto.live.HotAtmosphere.toObject(e,this)},proto.live.HotAtmosphere.toObject=function(e,t){var r,i={img:n.Message.getFieldWithDefault(t,1,""),saleNum:n.Message.getFieldWithDefault(t,2,""),type:n.Message.getFieldWithDefault(t,3,"0"),num:n.Message.getFieldWithDefault(t,4,""),bgColor:n.Message.getFieldWithDefault(t,5,""),borderColor:n.Message.getFieldWithDefault(t,6,""),leftMargin:n.Message.getFieldWithDefault(t,7,"0"),uiType:n.Message.getFieldWithDefault(t,8,"0"),bgColorsList:null==(r=n.Message.getRepeatedField(t,9))?void 0:r,borderColorsList:null==(r=n.Message.getRepeatedField(t,10))?void 0:r,topImg:n.Message.getFieldWithDefault(t,11,"")};return e&&(i.$jspbMessageInstance=t),i}),proto.live.HotAtmosphere.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.live.HotAtmosphere;return proto.live.HotAtmosphere.deserializeBinaryFromReader(r,t)},proto.live.HotAtmosphere.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){;switch(t.getFieldNumber()){case 1:var r=t.readString();e.setImg(r);break;case 2:var r=t.readString();e.setSaleNum(r);break;case 3:var r=t.readInt64String();e.setType(r);break;case 4:var r=t.readString();e.setNum(r);break;case 5:var r=t.readString();e.setBgColor(r);break;case 6:var r=t.readString();e.setBorderColor(r);break;case 7:var r=t.readInt64String();e.setLeftMargin(r);break;case 8:var r=t.readInt64String();e.setUiType(r);break;case 9:var r=t.readString();e.addBgColors(r);break;case 10:var r=t.readString();e.addBorderColors(r);break;case 11:var r=t.readString();e.setTopImg(r);break;default:t.skipField()}}return e},proto.live.HotAtmosphere.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.live.HotAtmosphere.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.live.HotAtmosphere.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getImg()).length>0&&t.writeString(1,r),(r=e.getSaleNum()).length>0&&t.writeString(2,r),0!==parseInt(r=e.getType(),10)&&t.writeInt64String(3,r),(r=e.getNum()).length>0&&t.writeString(4,r),(r=e.getBgColor()).length>0&&t.writeString(5,r),(r=e.getBorderColor()).length>0&&t.writeString(6,r),0!==parseInt(r=e.getLeftMargin(),10)&&t.writeInt64String(7,r),0!==parseInt(r=e.getUiType(),10)&&t.writeInt64String(8,r),(r=e.getBgColorsList()).length>0&&t.writeRepeatedString(9,r),(r=e.getBorderColorsList()).length>0&&t.writeRepeatedString(10,r),(r=e.getTopImg()).length>0&&t.writeString(11,r)},proto.live.HotAtmosphere.prototype.getImg=function(){return n.Message.getFieldWithDefault(this,1,"")},proto.live.HotAtmosphere.prototype.setImg=function(e){return n.Message.setProto3StringField(this,1,e)},proto.live.HotAtmosphere.prototype.getSaleNum=function(){return n.Message.getFieldWithDefault(this,2,"")},proto.live.HotAtmosphere.prototype.setSaleNum=function(e){return n.Message.setProto3StringField(this,2,e)},proto.live.HotAtmosphere.prototype.getType=function(){return n.Message.getFieldWithDefault(this,3,"0")},proto.live.HotAtmosphere.prototype.setType=function(e){return n.Message.setProto3StringIntField(this,3,e)},proto.live.HotAtmosphere.prototype.getNum=function(){return n.Message.getFieldWithDefault(this,4,"")},proto.live.HotAtmosphere.prototype.setNum=function(e){return n.Message.setProto3StringField(this,4,e)},proto.live.HotAtmosphere.prototype.getBgColor=function(){return n.Message.getFieldWithDefault(this,5,"")},proto.live.HotAtmosphere.prototype.setBgColor=function(e){return n.Message.setProto3StringField(this,5,e)},proto.live.HotAtmosphere.prototype.getBorderColor=function(){return n.Message.getFieldWithDefault(this,6,"")},proto.live.HotAtmosphere.prototype.setBorderColor=function(e){return n.Message.setProto3StringField(this,6,e)},proto.live.HotAtmosphere.prototype.getLeftMargin=function(){return n.Message.getFieldWithDefault(this,7,"0")},proto.live.HotAtmosphere.prototype.setLeftMargin=function(e){return n.Message.setProto3StringIntField(this,7,e)},proto.live.HotAtmosphere.prototype.getUiType=function(){return n.Message.getFieldWithDefault(this,8,"0")},proto.live.HotAtmosphere.prototype.setUiType=function(e){return n.Message.setProto3StringIntField(this,8,e)},proto.live.HotAtmosphere.prototype.getBgColorsList=function(){return n.Message.getRepeatedField(this,9)},proto.live.HotAtmosphere.prototype.setBgColorsList=function(e){return n.Message.setField(this,9,e||[])},proto.live.HotAtmosphere.prototype.addBgColors=function(e,t){return n.Message.addToRepeatedField(this,9,e,t)},proto.live.HotAtmosphere.prototype.clearBgColorsList=function(){return this.setBgColorsList([])},proto.live.HotAtmosphere.prototype.getBorderColorsList=function(){return n.Message.getRepeatedField(this,10)},proto.live.HotAtmosphere.prototype.setBorderColorsList=function(e){return n.Message.setField(this,10,e||[])},proto.live.HotAtmosphere.prototype.addBorderColors=function(e,t){return n.Message.addToRepeatedField(this,10,e,t)},proto.live.HotAtmosphere.prototype.clearBorderColorsList=function(){return this.setBorderColorsList([])},proto.live.HotAtmosphere.prototype.getTopImg=function(){return n.Message.getFieldWithDefault(this,11,"")},proto.live.HotAtmosphere.prototype.setTopImg=function(e){return n.Message.setProto3StringField(this,11,e)},n.object.extend(t,proto.live)},166967:function(e,t,r){var n=r(443840),i=(function(){return this?this:"undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:Function("return this")()}).call(null),o=r(455531);n.object.extend(proto,o),n.exportSymbol("proto.live.LivePopMessage",null,i),n.exportSymbol("proto.live.LivePopMessage.BubbleType",null,i),n.exportSymbol("proto.live.LivePopMessage.MsgType",null,i),proto.live.LivePopMessage=function(e){n.Message.initialize(this,e,0,-1,null,null)},n.inherits(proto.live.LivePopMessage,n.Message),n.DEBUG&&!COMPILED&&(proto.live.LivePopMessage.displayName="proto.live.LivePopMessage"),n.Message.GENERATE_TO_OBJECT&&(proto.live.LivePopMessage.prototype.toObject=function(e){return proto.live.LivePopMessage.toObject(e,this)},proto.live.LivePopMessage.toObject=function(e,t){var r,i={msgType:n.Message.getFieldWithDefault(t,1,0),bubbleType:n.Message.getFieldWithDefault(t,2,0),promotionId:n.Message.getFieldWithDefault(t,3,"0"),hotAtmosphere:(r=t.getHotAtmosphere())&&o.HotAtmosphere.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),proto.live.LivePopMessage.deserializeBinary=function(e){var t=new n.BinaryReader(e),r=new proto.live.LivePopMessage;return proto.live.LivePopMessage.deserializeBinaryFromReader(r,t)},proto.live.LivePopMessage.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){;switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setMsgType(r);break;case 2:var r=t.readEnum();e.setBubbleType(r);break;case 3:var r=t.readInt64String();e.setPromotionId(r);break;case 4:var r=new o.HotAtmosphere;t.readMessage(r,o.HotAtmosphere.deserializeBinaryFromReader),e.setHotAtmosphere(r);break;default:t.skipField()}}return e},proto.live.LivePopMessage.prototype.serializeBinary=function(){var e=new n.BinaryWriter;return proto.live.LivePopMessage.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.live.LivePopMessage.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getMsgType())&&t.writeEnum(1,r),0!==(r=e.getBubbleType())&&t.writeEnum(2,r),0!==parseInt(r=e.getPromotionId(),10)&&t.writeInt64String(3,r),null!=(r=e.getHotAtmosphere())&&t.writeMessage(4,r,o.HotAtmosphere.serializeBinaryToWriter)},proto.live.LivePopMessage.MsgType={POP_APPEAR:0,POP_DISAPPEAR:1,PART_FLASH:2},proto.live.LivePopMessage.BubbleType={NORMAL:0,ALL_FLASH:1},proto.live.LivePopMessage.prototype.getMsgType=function(){return n.Message.getFieldWithDefault(this,1,0)},proto.live.LivePopMessage.prototype.setMsgType=function(e){return n.Message.setProto3EnumField(this,1,e)},proto.live.LivePopMessage.prototype.getBubbleType=function(){return n.Message.getFieldWithDefault(this,2,0)},proto.live.LivePopMessage.prototype.setBubbleType=function(e){return n.Message.setProto3EnumField(this,2,e)},proto.live.LivePopMessage.prototype.getPromotionId=function(){return n.Message.getFieldWithDefault(this,3,"0")},proto.live.LivePopMessage.prototype.setPromotionId=function(e){return n.Message.setProto3StringIntField(this,3,e)},proto.live.LivePopMessage.prototype.getHotAtmosphere=function(){return n.Message.getWrapperField(this,o.HotAtmosphere,4)},proto.live.LivePopMessage.prototype.setHotAtmosphere=function(e){return n.Message.setWrapperField(this,4,e)},proto.live.LivePopMessage.prototype.clearHotAtmosphere=function(){return this.setHotAtmosphere(void 0)},proto.live.LivePopMessage.prototype.hasHotAtmosphere=function(){return null!=n.Message.getField(this,4)},n.object.extend(t,proto.live)},50855:function(e,t,r){"use strict";r.d(t,{O:function(){return f}});var n=r(320165),i=r(101199),o=r(469935),s=r.n(o),l=r(418312),a=r(959360),u=r(651928),c=r(122061),d=r(51262);function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n,i,o;n=e,i=t,o=r[t],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})}return e}let f=e=>{let{player:t,uiLayout:r,renderMicSeat:o,uiLayoutConfig:f,linkerList:g=[],playerType:h=u.$R.xg,layoutCalculateType:v=u.NT.horizontal,containerClassName:m,contentClassName:C,adjustPlayerPosition:y=!0,children:E,regionClassName:x}=e,b=(0,a.O)(t,h);(0,i.useEffect)(()=>{if(!!y){if(l.w1.includes(v)){let{h:e,y:r}=(0,c.tD)(f);t.position({y:r,h:e})}else t.position({y:0,h:1});return()=>{y&&t.position({y:0,h:1})}}},[t,f,v,y]);let w=(0,i.useMemo)(()=>(0,c.fG)(f,v,b),[v,f,b]);return(0,n.jsx)(n.Fragment,{children:r&&f?(0,n.jsx)("div",{className:s()(d.Z.dynamicLayoutContainer,m),children:(0,n.jsxs)("div",{className:s()(C),style:p({},w),children:[(()=>{if(!f||!(null==g?void 0:g.length))return null;let{regions:e}=f,t=(0,c.B9)(r,e,g);return null==t?void 0:t.map((e,i)=>{let{p:l}=e,a=(0,c.ue)(f,e),d=(0,c.XZ)(r,f,e,t),h=g.find(e=>e.p===l)||{p:l,linkType:u.Zd.PLACEHOLDER};return(0,n.jsx)("div",{style:p({},a,d),className:s()(x),children:o&&o(i,h)},i)})})(),E||null]})}):null})}},51262:function(e,t,r){"use strict";r(910461),t.Z={dynamicLayoutContainer:"dynamicLayoutContainer_77b13"}},418312:function(e,t,r){"use strict";r.d(t,{AO:function(){return s},Fq:function(){return l},Hd:function(){return i},Ro:function(){return u},w1:function(){return a}});var n,i,o=r(651928);let s={CUSTOM_CSS_FULLSCREEN_CHANGE:"PREVIEW_ENTERROOM_CSS_FULL",FULLSCREEN_CHANGE:"fullscreen_change",VIDEO_RESIZE:"video_resize"},l={CUSTOM_CSS_FULLSCREEN_CHANGE:"PREVIEW_ENTERROOM_CSS_FULL",FULLSCREEN_CHANGE:"fullscreenchange",VIDEO_RESIZE:"video_resize"},a=[o.NT.horizontal],u=16/9;(n=i||(i={}))[n.VideoChat_DynamicLayout1V6=7]="VideoChat_DynamicLayout1V6",n[n.LinkMicUiLayout_Live_Partner_Dynamic=25]="LinkMicUiLayout_Live_Partner_Dynamic"},959360:function(e,t,r){"use strict";r.d(t,{O:function(){return s}});var n=r(101199),i=r(418312),o=r(651928);let s=(e,t)=>{let[r,s]=(0,n.useState)(i.Ro),l=n.useRef(),a=(0,n.useCallback)(()=>{var t,r;let n=null==e?void 0:null===(t=e.root)||void 0===t?void 0:t.clientWidth,o=null==e?void 0:null===(r=e.root)||void 0===r?void 0:r.clientHeight;return n&&o?n/o:i.Ro},[]),u=n.useCallback(()=>{clearTimeout(l.current),l.current=setTimeout(()=>{s(a())},50)},[]),c=(0,n.useMemo)(()=>t===o.$R.xg?Object.values(i.AO):Object.values(i.Fq),[t]);(0,n.useEffect)(()=>(c.forEach(t=>{null==e||e.on(t,u)}),()=>{c.forEach(t=>{null==e||e.off(t,u)})}),[e,c,u]);let d=n.useCallback(()=>{u()},[]);return n.useEffect(()=>(window.addEventListener("resize",d),()=>{window.removeEventListener("resize",d)}),[]),n.useEffect(()=>{u()},[]),r}},651928:function(e,t,r){"use strict";var n,i,o,s,l,a;r.d(t,{$R:function(){return i},NT:function(){return o},Zd:function(){return n}}),(s=n||(n={}))[s.PLACEHOLDER=-1]="PLACEHOLDER",s[s.VIDEO=1]="VIDEO",s[s.AUDIO=2]="AUDIO",(l=i||(i={}))[l.xg=1]="xg",l[l.ies=2]="ies",(a=o||(o={}))[a.horizontal=1]="horizontal",a[a.portrait=2]="portrait"},122061:function(e,t,r){"use strict";r.d(t,{B9:function(){return u},XZ:function(){return d},fG:function(){return a},tD:function(){return o},ue:function(){return c}});var n=r(418312),i=r(651928);let o=e=>{let{canvas:t,content:r}=e,n=t.h;return{h:r.h/n,y:r.y/n}},s=(e,t=!0)=>`${(100*e).toFixed(4)}${t?"%":""}`,l=e=>{let{content:t}=e,r=t.h*n.Ro;return t.w/r},a=(e,t,r)=>{if(!e)return{};if(t===i.NT.portrait){let t=s(e.content.w/e.canvas.w),r=s(e.content.h/e.canvas.h),n=s(e.content.y/e.canvas.h);return{position:"absolute",width:t,height:r,top:n,left:s(e.content.x/e.canvas.w)}}if(t===i.NT.horizontal){let t=s(l(e)*(n.Ro/r));return{position:"relative",width:t,height:"100%"}}return{}},u=(e,t,r)=>{if([n.Hd.LinkMicUiLayout_Live_Partner_Dynamic,n.Hd.VideoChat_DynamicLayout1V6].includes(e))return(null==r?void 0:r.length)&&!((null==r?void 0:r.length)<=2)?t.slice(0,r.length):t.slice(0,2);return t},c=(e,t,r=!0)=>{let{content:n}=e,{w:i,h:o}=n,{x:l,y:a,w:u,h:c}=t;return{position:"absolute",left:s(l/i,r),top:s(a/o,r),width:s(u/i,r),height:s(c/o,r),display:"flex",justifyContent:"center",alignItems:"center"}},d=(e,t,r,i)=>{let{p:o}=r,s=[],l="";if(e===n.Hd.VideoChat_DynamicLayout1V6&&0===o){if(null==i||i.forEach(e=>{if(0!==e.p){let{width:r,height:n,left:i,top:o}=c(t,e,!1);s.push(`M${i},${o} h${r} v${n} h-${r} z`)}}),s.length){let e=["M0,0 h100 v100 h-100 z",...s].join(" "),t=document.createElementNS("http://www.w3.org/2000/svg","path");t.setAttribute("fill-rule","evenodd"),t.setAttribute("d",e);let r=`data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none" width="100%" height="100%" viewBox="0 0 100 100">${t.outerHTML}</svg>`;l=`url('${r}')`}}return{maskImage:l}}},147693:function(e,t,r){"use strict";var n=r(954090),i=r(732979),o=r.n(i),s=r(101199),l=r(918956),a=r(475089),u=function(e){if(!e)return 0;var t=o()(e).valueOf()-Date.now();return t<0?0:t};t.Z=function(e){void 0===e&&(e={});var t=e||{},r=t.leftTime,i=t.targetDate,o=t.interval,c=void 0===o?1e3:o,d=t.onEnd,p=(0,s.useMemo)(function(){return(0,a.hj)(r)&&r>0?Date.now()+r:void 0},[r]),f="leftTime"in e?p:i,g=(0,n.CR)((0,s.useState)(function(){return u(f)}),2),h=g[0],v=g[1],m=(0,l.Z)(d);(0,s.useEffect)(function(){if(!f){v(0);return}v(u(f));var e=setInterval(function(){var t,r=u(f);v(r),0===r&&(clearInterval(e),null===(t=m.current)||void 0===t||t.call(m))},c);return function(){return clearInterval(e)}},[f,c]);var C=(0,s.useMemo)(function(){var e;return{days:Math.floor((e=h)/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},[h]);return[h,C]}},73203:function(e,t,r){"use strict";var n=r(954090),i=r(350856),o=r.n(i),s=r(101199),l=r(918956),a=r(287964),u=r(475089),c=r(205859);t.Z=function(e,t){c.Z&&(0,u.mf)(e);var r,i=(0,l.Z)(e),d=null!==(r=null==t?void 0:t.wait)&&void 0!==r?r:1e3,p=(0,s.useMemo)(function(){return o()(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.current.apply(i,(0,n.ev)([],(0,n.CR)(e),!1))},d,t)},[]);return(0,a.Z)(function(){p.cancel()}),{run:p,cancel:p.cancel,flush:p.flush}}},695506:function(e,t,r){"use strict";var n=r(101199),i=r(806217),o=r(475089);t.Z=function(e,t,r){void 0===r&&(r={});var s=(0,i.Z)(e),l=(0,n.useRef)(null),a=(0,n.useCallback)(function(){l.current&&clearInterval(l.current)},[]);return(0,n.useEffect)(function(){if(!!(0,o.hj)(t)&&!(t<0))return r.immediate&&s(),l.current=setInterval(s,t),a},[t,r.immediate]),a}},494842:function(e,t,r){"use strict";var n=r(954090),i=r(101199);t.Z=function(e){var t=this,r=(0,i.useRef)(!1);return(0,i.useCallback)(function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return(0,n.mG)(t,void 0,void 0,function(){return(0,n.Jh)(this,function(t){switch(t.label){case 0:if(r.current)return[2];r.current=!0,t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,e.apply(void 0,(0,n.ev)([],(0,n.CR)(i),!1))];case 2:return[2,t.sent()];case 3:throw t.sent();case 4:return r.current=!1,[7];case 5:return[2]}})})},[e])}},500982:function(e){e.exports=function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}},156674:function(e,t,r){var n=r(857513),i=r(987132),o=r(867924),s=r(293137),l=r(22186),a=r(500982),u=r(896833),c=r(98795),d=r(945068),p=r(347752),f=n?n.iterator:void 0;e.exports=function(e){if(!e)return[];if(s(e))return l(e)?d(e):i(e);if(f&&e[f])return a(e[f]());var t=o(e);return("[object Map]"==t?u:"[object Set]"==t?c:p)(e)}},846613:function(e,t,r){"use strict";r.d(t,{ZP:function(){return l}});var n=r(101199);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var o=function(e){var t=(0,n.useRef)(e);return t.current=e,t},s=function(e,t){var r="",n=-1;return Object.keys(e).forEach(function(i){var o=e[i];t>=o&&o>n&&(r=i,n=o)}),r},l=function(e){var t=void 0===e?{}:e,r=t.useBorderBoxSize,l=t.breakpoints,a=t.updateOnBreakpointChange,u=t.shouldUpdate,c=t.onResize,d=t.polyfill,p=(0,n.useState)({currentBreakpoint:"",width:null,height:null}),f=p[0],g=p[1],h=(0,n.useRef)({}),v=(0,n.useRef)(),m=(0,n.useRef)(),C=(0,n.useRef)(!1),y=(0,n.useRef)(),E=o(c),x=o(u),b=(0,n.useCallback)(function(){m.current&&m.current.disconnect()},[]),w=(0,n.useCallback)(function(e){e&&e!==y.current&&(b(),y.current=e,g({currentBreakpoint:"",width:e.clientWidth,height:e.clientHeight})),m.current&&y.current&&m.current.observe(y.current)},[b]);return(0,n.useEffect)(function(){if((!("ResizeObserver"in window)||!("ResizeObserverEntry"in window))&&!d)return function(){return null};var e=null;return m.current=new(d||ResizeObserver)(function(t){var n=t[0];e=requestAnimationFrame(function(){var e=n.contentBoxSize,t=n.borderBoxSize,i=n.contentRect,o=e;r&&(t?o=t:!C.current&&(C.current=!0));var u=(o=Array.isArray(o)?o[0]:o)?o.inlineSize:i.width,c=o?o.blockSize:i.height;if(u!==h.current.width||c!==h.current.height){h.current={width:u,height:c};var d={currentBreakpoint:"",width:u,height:c,entry:n,observe:w,unobserve:b};l?(d.currentBreakpoint=s(l,u),d.currentBreakpoint!==v.current&&(E.current&&E.current(d),v.current=d.currentBreakpoint)):E.current&&E.current(d);var p={currentBreakpoint:d.currentBreakpoint,width:u,height:c,entry:n};if(!x.current||x.current(p)){if(!x.current&&l&&a){g(function(e){return e.currentBreakpoint!==p.currentBreakpoint?p:e});return}g(p)}}})}),w(),function(){b(),e&&cancelAnimationFrame(e)}},[JSON.stringify(l),r,w,b,a]),i({},f,{observe:w,unobserve:b})}},406372:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r("900121"),i=r("611778"),o=r("771765");function s(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var l=r("101199"),a=r("956785"),u=r("889859"),c=function(e,t){return e&&t&&t.split(" ").forEach(function(t){var r,n;return r=e,n=t,void(r.classList?r.classList.remove(n):"string"==typeof r.className?r.className=s(r.className,n):r.setAttribute("class",s(r.className&&r.className.baseVal||"",n)))})},d=function(e){function t(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,r){var n=t.resolveArguments(e,r),i=n[0],o=n[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.resolveArguments(e,r),i=n[0],o=n[1];t.addClass(i,o?"appear":"enter","active"),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.resolveArguments(e,r),i=n[0],o=n[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"appear"),t.removeClasses(r,"enter"),t.addClass(r,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.resolveArguments(e)[0];t.addClass(r,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"exit"),t.addClass(r,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,r){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,r]},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,i=n&&r?r+"-":"",o=n?""+i+e:r[e],s=n?o+"-active":r[e+"Active"],l=n?o+"-done":r[e+"Done"];return{baseClassName:o,activeClassName:s,doneClassName:l}},t}(0,o.Z)(t,e);var r=t.prototype;return r.addClass=function(e,t,r){var n,i,o=this.getClassNames(t)[r+"ClassName"],s=this.getClassNames("enter").doneClassName;if("appear"===t&&"done"===r&&s&&(o+=" "+s),"active"===r&&e&&(0,u.Q)(e),o){;this.appliedClasses[t][r]=o,n=e,i=o,n&&i&&i.split(" ").forEach(function(e){return function(e,t){if(e.classList)e.classList.add(t);else{var r,n;if(r=e,n=t,r.classList?!(!!n&&r.classList.contains(n)):-1===(" "+(r.className.baseVal||r.className)+" ").indexOf(" "+n+" "))"string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t)}}(n,e)})}},r.removeClasses=function(e,t){var r=this.appliedClasses[t],n=r.base,i=r.active,o=r.done;this.appliedClasses[t]={},n&&c(e,n),i&&c(e,i),o&&c(e,o)},r.render=function(){var e=this.props,t=(e.classNames,(0,i.Z)(e,["classNames"]));return l.createElement(a.ZP,(0,n.Z)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l.Component);d.defaultProps={classNames:""},d.propTypes={};var p=d},956785:function(e,t,r){"use strict";r.d(t,{ZP:function(){return m},cn:function(){return f},d0:function(){return p},Ix:function(){return g}});var n=r("611778"),i=r("771765"),o=r("101199"),s=r("890710"),l={disabled:!1},a=r("373201"),u=r("889859"),c="unmounted",d="exited",p="entering",f="entered",g="exiting",h=function(e){function t(t,r){n=e.call(this,t,r)||this;var n,i,o=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?o?(i=d,n.appearStatus=p):i=f:i=t.unmountOnExit||t.mountOnEnter?c:d,n.state={status:i},n.nextCallback=null,n}(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:d}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==p&&r!==f&&(t=p):(r===p||r===f)&&(t=g)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===p){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this);r&&(0,u.Q)(r)}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:c})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[s.findDOMNode(this),n],o=i[0],a=i[1],u=this.getTimeouts(),c=n?u.appear:u.enter;if(!e&&!r||l.disabled){this.safeSetState({status:f},function(){t.props.onEntered(o)});return}this.props.onEnter(o,a),this.safeSetState({status:p},function(){t.props.onEntering(o,a),t.onTransitionEnd(c,function(){t.safeSetState({status:f},function(){t.props.onEntered(o,a)})})})},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:s.findDOMNode(this);if(!t||l.disabled){this.safeSetState({status:d},function(){e.props.onExited(n)});return}this.props.onExit(n),this.safeSetState({status:g},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:d},function(){e.props.onExited(n)})})})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],o=i[0],l=i[1];this.props.addEndListener(o,l)}null!=e&&setTimeout(this.nextCallback,e)},r.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,r=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,n.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.createElement(a.Z.Provider,{value:null},"function"==typeof r?r(e,i):o.cloneElement(o.Children.only(r),i))},t}(o.Component);function v(){}h.contextType=a.Z,h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v,onEntering:v,onEntered:v,onExit:v,onExiting:v,onExited:v},h.UNMOUNTED=c,h.EXITED=d,h.ENTERING=p,h.ENTERED=f,h.EXITING=g;var m=h},373201:function(e,t,r){"use strict";var n=r(101199);t.Z=n.createContext(null)},889859:function(e,t,r){"use strict";r.d(t,{Q:function(){return n}});var n=function(e){return e.scrollTop}},382332:function(e,t,r){"use strict";r.r(t);var n=r(629686);r(490629);var i=r(320165),o=r(431987),s=r.n(o),l=r(101199);let a=l.forwardRef((e,t)=>{let{data:r,className:o,loop:a,autoplay:u=!0,onLoopComplete:c,onComplete:d,onInit:p,hidden:f,rendererSettings:g,assetsPath:h}=e,v=l.useRef(),m=l.useRef(),[C,y]=l.useState(!1);return l.useEffect(()=>{if(m.current&&C&&d){let e=m.current;return null==e||e.addEventListener("complete",d),()=>{null==e||e.removeEventListener("complete",d)}}},[C,d]),l.useEffect(()=>{if(m.current&&C&&c){let e=m.current;return e.addEventListener("loopComplete",c),()=>{e.removeEventListener("loopComplete",c)}}},[C,c]),l.useEffect(()=>{if(m.current&&C&&p){let e=m.current;return null==e||e.addEventListener("DOMLoaded",p),()=>{null==e||e.removeEventListener("DOMLoaded",p)}}},[C,p]),l.useLayoutEffect(()=>{if(v.current&&s()&&!m.current){var e;m.current=null===s()||void 0===s()?void 0:null===(e=s().loadAnimation)||void 0===e?void 0:e.call(s(),{container:v.current,renderer:"svg",animationData:r,loop:a,autoplay:u,rendererSettings:(0,n._)({runExpressions:!1},g),assetsPath:h}),y(!0)}},[]),l.useEffect(()=>()=>{var e,t;null===(t=m.current)||void 0===t||null===(e=t.destroy)||void 0===e||e.call(t)},[]),l.useImperativeHandle(t,()=>({getLottieInstance:()=>m.current})),(0,i.jsx)("div",{hidden:f,ref:v,className:o})});t.default=l.memo(a)},942645:function(e,t,r){"use strict";r.r(t);var n=r(382332);t.default=n.default},295102:function(e,t,r){"use strict";r.d(t,{P:function(){return m}});var n=r("320165"),i=r("101199"),o=r("469935"),s=r.n(o),l=r("618759"),a=r("915821"),u=r("879802"),c=r("176449"),d=r("316213"),p=r("629686"),f=r("402748");let g=(0,i.forwardRef)((e,t)=>(0,n.jsx)("svg",(0,f._)((0,p._)({width:18,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,n.jsx)("path",{d:"M17.448 17.448a1.886 1.886 0 0 1-2.668 0L9 11.668l-5.78 5.78A1.886 1.886 0 1 1 .552 14.78L6.332 9 .552 3.22A1.886 1.886 0 1 1 3.22.552L9 6.332l5.78-5.78a1.886 1.886 0 1 1 2.668 2.668L11.668 9l5.78 5.78a1.886 1.886 0 0 1 0 2.668z",fill:"#fff"})}))),h=(0,i.forwardRef)((e,t)=>(0,n.jsx)("svg",(0,f._)((0,p._)({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,n.jsx)("path",{d:"M16 4l-8 8.14L16 20",stroke:"#fff",strokeOpacity:".7",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",shapeRendering:"crispEdges"})})));var v=r("529840");let m=e=>{let{onClick:t,isClientMiniWin:r,isBackSvg:i=!1}=e,o=(0,l.DT)()&&(0,a.y)((0,l.FJ)().awemePcClient,">=","5.4.0"),p=!(i||o);return(0,n.jsxs)("div",{className:s()(v.default.container,"isDark",{[v.default.hide]:r},o&&v.default.clientHomeStyleWrap),onClick:t,children:[(0,n.jsx)("div",{className:v.default.circle}),o&&(0,n.jsx)(d.z,{className:s()(v.default.back),svg:(0,n.jsx)(u.Z,{style:{fontSize:"24px"}})}),i&&!o&&(0,n.jsx)(c.Z,{src:h,className:v.default.back,viewBox:"0 0 24 24"}),p&&(0,n.jsx)(c.Z,{src:g,className:v.default.close,viewBox:"0 0 18 18"})]})}},701412:function(e,t,r){"use strict";r.d(t,{X:function(){return l}});var n=r(629686),i=r(811603),o=r(320165),s=r(670556);function l(e){return function(t){let{isRenderInSSR:r}=t,l=(0,i._)(t,["isRenderInSSR"]),a=(0,o.jsx)(e,(0,n._)({},l));return r?(0,o.jsx)(s.NoSSR,{children:a}):a}}r(101199)},249449:function(e,t,r){"use strict";r(490629);var n=r(320165),i=r(101199),o=r(978846),s=r(298202),l=r(251778),a=r(740560),u=r(469935),c=r.n(u),d=r(899152);r(459903),l.Z.use([a.Z]);t.Z=e=>{let{slideItems:t,className:r,width:l,height:a=20,isStartPlay:u=!1}=e,[p,f]=(0,i.useState)(),g=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(p&&u&&(null==t?void 0:t.length)>1){if(!g.current){var e;null==p||null===(e=p.slideNext)||void 0===e||e.call(p),g.current=setInterval(()=>{var e;null==p||null===(e=p.slideNext)||void 0===e||e.call(p)},3e3)}}else g.current&&clearInterval(g.current),g.current=null},[u,t,p]),(0,i.useEffect)(()=>()=>{g.current&&clearInterval(g.current),g.current=null},[]),(0,n.jsx)("div",{className:c()(d.default.adSwiper,r),children:(0,n.jsx)(o.t,{allowTouchMove:!1,direction:"vertical",slidesPerView:1,spaceBetween:0,loop:!0,onInit:f,width:l,height:a,autoplay:!1,children:t.map((e,t)=>(0,n.jsx)(s.o,{children:(0,n.jsx)("div",{className:d.default.slideContent,children:e})},t))})})}},686060:function(e,t,r){"use strict";var n=r(320165);r(101199);var i=r(469935),o=r.n(i),s=r(894306);t.Z=e=>{let{className:t,children:r,style:i,onClick:l}=e;return(0,n.jsx)("span",{style:i,className:o()(s.default.adTag,t),onClick:l,children:r})}},380583:function(e,t,r){"use strict";var n=r(320165);r(101199);var i=r(469935),o=r.n(i),s=r(72878),l=r(256855),a=r(249449),u=r(227831),c=r(290397);t.Z=e=>{let{className:t,title:r,imageUrl:i,isBackupImgUrl:d=!1,slideItems:p,buttonText:f,buttonBgColor:g=s.DEFAULT_BUTTON_COLOR,onClick:h,isStartPlay:v}=e;return(0,n.jsxs)("div",{className:o()(l.default.doubleLineAdCard,t),onClick:e=>h(e,{refer:c.tU.Blank}),children:[(0,n.jsxs)("div",{className:l.default.adInfo,children:[(0,n.jsx)("div",{onClick:e=>h(e,{refer:c.tU.Photo,click_type:d?c.Kw.AdBackupProduct:c.Kw.AdProduct}),children:(0,n.jsx)(u.Q,{src:i,iconHeight:40,iconWidth:40,className:l.default.adIcon})}),(0,n.jsxs)("div",{className:l.default.detail,children:[(0,n.jsx)("div",{className:l.default.title,onClick:e=>h(e,{refer:c.tU.Name}),children:r}),(0,n.jsx)(a.Z,{isStartPlay:v,className:l.default.swiperContainer,width:108,slideItems:p})]})]}),(0,n.jsx)("div",{className:l.default.adButton,onClick:e=>h(e,{refer:c.tU.Button}),style:{background:g},children:f})]})}},118504:function(e,t,r){"use strict";var n=r(320165);r(101199);var i=r(469935),o=r.n(i),s=r(330224),l=r(830500),a=r(249449),u=r(227831),c=r(290397),d=r(316213);t.Z=e=>{let{className:t,imageUrl:r,isBackupImgUrl:i=!1,slideItems:p,buttonText:f,onClick:g,isStartPlay:h}=e;return(0,n.jsxs)("div",{className:o()(l.default.singleLineAdCard,t),onClick:e=>g(e,{refer:c.tU.Blank}),children:[(0,n.jsxs)("div",{className:l.default.adInfo,children:[(0,n.jsx)("div",{onClick:e=>g(e,{refer:c.tU.Photo,click_type:i?c.Kw.AdBackupProduct:c.Kw.AdProduct}),children:(0,n.jsx)(u.Q,{src:r,iconHeight:28,iconWidth:28,className:l.default.adIcon})}),(0,n.jsx)("div",{onClick:e=>g(e,{refer:c.tU.Name}),children:(0,n.jsx)(a.Z,{isStartPlay:h,className:l.default.swiperContainer,width:136,slideItems:p})})]}),(0,n.jsxs)("div",{className:l.default.btnBox,onClick:e=>g(e,{refer:c.tU.Button}),children:[(0,n.jsx)("span",{className:l.default.text,children:f}),(0,n.jsx)(d.z,{svg:(0,n.jsx)(s.Z,{}),className:l.default.icon})]})]})}},373805:function(e,t,r){"use strict";var n=r(320165);r(101199);var i=r(469935),o=r.n(i),s=r(72878),l=r(153612),a=r(249449),u=r(227831),c=r(686060),d=r(290397);t.Z=e=>{var t;let{className:r,title:i,imageUrl:p,isBackupImgUrl:f=!1,slideItems:g,buttonText:h,buttonBgColor:v=s.DEFAULT_BUTTON_COLOR,tags:m=[],onClick:C,isStartPlay:y}=e;return(0,n.jsxs)("div",{className:o()(l.default.strongStyleAdCard,r),onClick:e=>C(e,{refer:d.tU.Blank}),children:[(0,n.jsxs)("div",{className:l.default.adInfo,children:[(0,n.jsx)("div",{onClick:e=>C(e,{refer:d.tU.Photo,click_type:f?d.Kw.AdBackupProduct:d.Kw.AdProduct}),children:(0,n.jsx)(u.Q,{src:p,iconHeight:72,iconWidth:72,className:l.default.adIcon})}),(0,n.jsxs)("div",{className:l.default.detail,children:[(0,n.jsx)("div",{className:l.default.title,onClick:e=>C(e,{refer:d.tU.Name}),children:i}),(null==m?void 0:m.length)>0&&(0,n.jsx)("div",{className:l.default.tagLine,children:null==m?void 0:null===(t=m.slice(0,2))||void 0===t?void 0:t.map((e,t)=>(0,n.jsx)(c.Z,{className:l.default.tag,onClick:t=>C(t,{refer:d.tU.Pull,product_tags:e}),children:e},t))}),(0,n.jsx)(a.Z,{isStartPlay:y,className:l.default.swiperContainer,width:156,slideItems:g})]})]}),(0,n.jsx)("div",{className:l.default.adButton,style:{background:v},onClick:e=>C(e,{refer:d.tU.Button}),children:h})]})}},866574:function(e,t,r){"use strict";r.d(t,{VD:function(){return n},Wc:function(){return l},_u:function(){return a},k1:function(){return i},lg:function(){return o},vv:function(){return s}});let n=["不容错过的优品","值得买的好物","优选心仪好物","精选超值好货"],i=["人气热卖","优选好物"],o=["优选好物"],s=5,l=7,a=8},713507:function(e,t,r){"use strict";r.d(t,{p:function(){return p}});var n=r("629686"),i=r("320165"),o=r("101199"),s=r("63601"),l=r("332009");let a=e=>{let{player:t,scene:r,onRegisterSuccess:n,isActive:i}=e;(0,o.useEffect)(()=>{let e;if(t&&r&&i){let i=l.s.register({player:t,scene:r});e=i,void 0!==i&&(null==n||n({scene:r,playerId:i}))}return()=>{l.s.unRegister({id:e})}},[t,r,i])};var u=r("310383"),c=r("913285");r("838368");let d=e=>{let t=(0,s.n)(),{scene:r,onRegisterSuccess:n,isActive:i}=e;return a({player:t,scene:r,onRegisterSuccess:n,isActive:i}),null},p=e=>{let t=(0,u.N)();return(0,i.jsx)(c.k,{componentName:"MultiPlayer",Slardar:t,children:(0,i.jsx)(d,(0,n._)({},e))})}},829248:function(e,t,r){"use strict";r.d(t,{I:function(){return C},V:function(){return v}}),r(313036);var n=r(320165),i=r(358986),o=r(734123),s=r(101199),l=r(48795),a=r(59850),u=r(147597),c=r(132027),d=r(414061),p=r(253408),f=r(316213),g=r(63601);let h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.useRef)(e);return(0,s.useEffect)(()=>{t.current=e},[e]),t};function v(e){let{onOpen:t,onClose:r,description:i}=e,o=(0,a.Z)(r),h=(0,g.n)();return(0,s.useEffect)(()=>{d.emit(d.EVENT.closeOtherTip,"SoundGuideTooltip");let e=e=>{let{pluginName:t}=e;"volume"===t&&(null==o||o())};return h.on("icon_mouseenter",e),()=>{h.off("icon_mouseenter",e)}},[h]),(0,s.useEffect)(()=>{let e=d.listen(d.EVENT.closeOtherTip,e=>{"SoundGuideTooltip"!==e&&(null==o||o())});return()=>e()},[r]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:p.default.item,children:[(0,n.jsx)("span",{className:p.default.text,children:i}),(0,n.jsx)(l.Button,{type:"primary",size:"small",theme:"solid",onClick:t,className:p.default.button,children:"打开声音"}),(0,n.jsx)(f.z,{svg:(0,n.jsx)(u.Z,{}),onClick:r,className:p.default.close}),(0,n.jsx)(f.z,{svg:(0,n.jsx)(c.Z,{}),className:p.default.down})]})})}class m extends o.Plugin{static get pluginName(){return"SoundGuideTooltipPlugin"}static get defaultConfig(){return{position:i.POSITIONS.CONTROLS_RIGHT,index:.99,className:"xgplayer-sound-guide"}}afterCreate(){if(this.config.disable)return}destroy(){}render(){return`
<xg-icon class="xgplayer-sound-guide" data-state="normal">
</xg-icon>`}}let C=e=>{let{isActive:t,disable:r,logParams:n,abtestData:i}=e,o=(0,g.n)(),l=h(n);return(0,s.useEffect)(()=>{if(o)return 2===o.config.reuse&&o.getPlugin("SoundGuideTooltipPlugin")?()=>{}:(o.registerPlugin(m,{disable:r,isActive:!0,player:o,logParams:l.current}),()=>{o.getPlugin("SoundGuideTooltipPlugin")&&2!==o.config.reuse&&o.unRegisterPlugin("SoundGuideTooltipPlugin",!0)})},[o,r,i]),null}},893392:function(e,t,r){"use strict";r.d(t,{rl:function(){return B},Vw:function(){return Z}});var n=r("480333"),i=r("629686");r("490629"),r("706056");var o=r("320165"),s=r("101199"),l=r("734123"),a=r("358986"),u=r("469935"),c=r.n(u),d=r("280647"),p=r("242875"),f=r("72430"),g=r("426038"),h=r("426112"),v=r("762167"),m=r("206698"),C=r("708003"),y=r("414061"),E=r("709705"),x=r("618759"),b=r("749113"),w=r("759894"),S=r("947383"),M=r("880327"),P=r("499059"),N=r("649310"),L=r("532338"),_=r("157546"),H=r("624508"),F=new H.h({fullscreenBubbleShow:{eventName:"fullscreen_bubble_show",params:{author_id:"",group_id:"",enter_from:"recommend"}},enterFullWebscreen:{eventName:"enter_full_webscreen",params:{author_id:"",group_id:"",enter_from:"recommend",enter_from_merge:"",item_duration_ms:0,click_from:"",player_display_mode:""}},exitFullWebscreen:{eventName:"exit_full_webscreen",params:{author_id:"",group_id:"",enter_from:"recommend",click_from:"",player_display_mode:""}}}),T=r("913285"),I=r("63601"),O=r("310383"),R=r("332009"),j=r("44599");r("976261");var A=r("36897"),k=r("540129");function B(e){let{player:t,isCtxCssFullScreen:r}=e,{isMobile:n,isiPad:i}=(0,p.X)(),[a,u]=(0,s.useState)(R.s.getPlayerScene(null==t?void 0:t.playerId)===f.lT.Modal?R.s.getPlayerIsPageFullscreen(null==t?void 0:t.playerId):R.s.getIsPageFullscreen()||r);return t&&(t.isPageFullScreen=a),(0,s.useEffect)(()=>{if(!t)return;let e=y.listen(y.EVENT.pageFullScreen,e=>{let{playerId:r,fullScreen:n}=e||{};R.s.getPlayerScene(null==t?void 0:t.playerId)===f.lT.Modal?r===(null==t?void 0:t.playerId)&&(u(n),R.s.setPageFullscreen({playerId:t.playerId,isPageFullscreen:n})):(u(n),R.s.setPageFullscreen({playerId:t.playerId,isPageFullscreen:n}))});return()=>{e()}},[t]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{onMouseEnter:()=>{(0,E.qQ)(g.LocalStorageKeys.ShowPageFullScreenGuide,!0)},onClick:()=>{var e;if(null==t?void 0:null===(e=t.openGeneralSearchModalSlide)||void 0===e?void 0:e.call(t,{from:"pageFullscreen"}))return;let r=R.s.getPlayerIsPageFullscreen(null==t?void 0:t.playerId);u(!r),R.s.setPageFullscreen({playerId:t.playerId,isPageFullscreen:!r}),y.emit(y.EVENT.pageFullScreen,{clickMethod:"icon",fullScreen:!r,playerId:t.playerId}),t.emit(l.Events.USER_ACTION,{action:"page_fullscreen_change"})},className:"xgplayer-icon",children:a?(0,o.jsx)(L.Z,{width:32,height:32,color:"#fff"}):(0,o.jsx)(_.Z,{width:32,height:32})}),!n&&!i&&(0,o.jsxs)("div",{className:c()("xgTips"),children:[!!(!(0,x.DT)()&&a)&&(0,o.jsx)("span",{children:b.a.t("webpage_full_screen_exit",{},"退出网页全屏")}),!!(!(0,x.DT)()&&!a)&&(0,o.jsx)("span",{children:b.a.t("webpage_full_screen",{},"网页全屏")}),!!((0,x.DT)()&&a)&&(0,o.jsx)("span",{children:"退出窗口全屏"}),!!((0,x.DT)()&&!a)&&(0,o.jsx)("span",{children:"窗口全屏"}),!!k.SHORTCUT_KEY.pageFullScreen.badgeText&&(0,o.jsx)("span",{className:"shortcutKey",children:k.SHORTCUT_KEY.pageFullScreen.badgeText})]})]})}class D extends l.Plugin{static get pluginName(){return"PageFullScreenPlugin"}static get defaultConfig(){return{position:a.POSITIONS.CONTROLS_RIGHT,index:.8,className:"xgplayer-page-full-screen"}}updateConfig(e){this.config=e,this.renderRoot()}afterCreate(){this.bind("mouseenter",this.onMouseenter),this.bind("mouseleave",this.onMouseLeave),this.renderRoot()}destroy(){this.unbind("mouseenter",this.onMouseenter),this.unbind("mouseleave",this.onMouseLeave),(0,j.v)(this)}renderRoot(){let e=(0,o.jsx)(B,{player:this.config.player,isCtxCssFullScreen:this.config.isCtxCssFullScreen,abtestData:this.config.abtestData});(0,j.s)(this,e)}render(){return`
<xg-icon class="xgplayer-page-full-screen" data-state="normal" data-e2e="xgplayer-page-full-screen">
</xg-icon>`}constructor(...e){super(...e),(0,n._)(this,"onMouseenter",()=>{this.emit("icon_mouseenter",{pluginName:this.pluginName})}),(0,n._)(this,"onMouseLeave",()=>{this.emit("icon_mouseleave",{pluginName:this.pluginName})})}}let V=e=>{let{awemeInfo:t,logParams:r,isActive:n,defaultIsPageFullScreen:i,modalEnterFrom:o,abtestData:a}=e,u=(0,s.useRef)(),{isCssFullScreen:c}=(0,s.useContext)(N.C)||{},p=(0,I.n)(),{awemeFeed:g}=(0,A.j)();return(0,s.useEffect)(()=>{p&&n&&(null!=i?i:c)&&R.s.setPageFullscreen({playerId:p.playerId,isPageFullscreen:null!=i?i:c})},[p,n]),(0,s.useEffect)(()=>{if(p&&n)return 2===p.config.reuse&&p.getPlugin("PageFullScreenPlugin")?()=>{}:(p.registerPlugin(D,{player:p,isCtxCssFullScreen:c,abtestData:a}),()=>{p.getPlugin("PageFullScreenPlugin")&&2!==p.config.reuse&&(null==p||p.unRegisterPlugin("PageFullScreenPlugin"))})},[p,n]),(0,s.useEffect)(()=>{if(p&&n){let e=p.getPlugin("PageFullScreenPlugin");e&&[f.lT.Follow,f.lT.Friend,f.lT.Recommend,f.lT.Topic].includes(R.s.getPlayerScene(p.playerId))&&e.updateConfig({player:p,isCtxCssFullScreen:c,abtestData:a})}},[c,a]),(0,s.useEffect)(()=>{if(t&&p&&n){let e=y.listen(y.EVENT.pageFullScreen,e=>{var n,i;let{clickMethod:s,fullScreen:l,oldFullScreen:a}=e||{},u=null!==(i=null!=a?a:R.s.getIsPageFullscreen())&&void 0!==i&&i,c=null!=l?l:!u,d={author_id:null==t?void 0:t.authorUserId,group_id:null==t?void 0:t.groupId,enter_from:null==r?void 0:r.enter_from,enter_from_merge:null==r?void 0:r.enter_from_merge,item_duration_ms:(null==t?void 0:null===(n=t.video)||void 0===n?void 0:n.duration)||0,click_from:s,player_display_mode:(0,w.Ok)()};if(c){if("inner_player"!==s&&F.sendLog("enterFullWebscreen",d),(0,h.Jt)(t)){let e=(0,h.Rx)(t);(0,v.E)("full_screen",{tag:(0,S.f)(),value:e.creative_id,log_extra:e.log_extra,player_form:"web_full"})}}else if(!1!==u&&(F.sendLog("exitFullWebscreen",d),(0,h.Jt)(t))){let e=(0,h.Rx)(t);(0,v.E)("full_screen",{tag:(0,S.f)(),value:e.creative_id,log_extra:e.log_extra,player_form:"normal"})}if((0,M.r)()&&c){if(R.s.getPlayersByScene(f.lT.Modal).length>0&&o!==m.a.RecommendUpdateWindow)return;p.exitFullscreen(),p.emit("switch_fullscreen",{fullscreen:!0,cssFullScreen:!0})}P.Le.setConfig(P.gI.IsPageFullScreen,{type:c})});return()=>{null==e||e()}}},[r,p,t,n,o]),(0,s.useEffect)(()=>{if(p&&n){let e=e=>{e&&R.s.getIsPageFullscreen()&&(R.s.setPageFullscreen({playerId:p.playerId,isPageFullscreen:!1}),!g.getValue("modalAwemeInfo")&&y.emit(y.EVENT.pageFullScreen,{clickMethod:"fullscreen",fullScreen:!1,playerId:p.playerId}))};return p.on(l.Events.FULLSCREEN_CHANGE,e),()=>{null==p||p.off(l.Events.FULLSCREEN_CHANGE,e)}}},[p,n]),(0,s.useEffect)(()=>{let e=e=>{if(e.shiftKey||e.metaKey||e.ctrlKey)return;let t=P.Le.getConfig(P.gI.DisableExit);"Escape"===e.code&&R.s.getPlayerIsPageFullscreen(null==p?void 0:p.playerId)&&p.isUserActive&&!t&&(R.s.setPageFullscreen({playerId:p.playerId,isPageFullscreen:!1}),setTimeout(()=>{g.dispatch("modalAwemeInfo",null)},100),y.emit(y.EVENT.pageFullScreen,{clickMethod:"esc",fullScreen:!1,playerId:p.playerId}))};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[p]),(0,d.Z)(()=>{if(n){var e,t;let r=null===(e=P.Le.getConfig(P.gI.IsInLookMiniModal))||void 0===e?void 0:e.isInMiniModal;if(c){if(!r&&!g.getValue("modalAwemeInfo")){let e=k.SHORTCUT_KEY.pageFullScreen.badgeText;u.current=C.F.info({text:`ESC${e?`或${e}`:""}可退出网页全屏`,zIndex:1e4})}}else null===(t=u.current)||void 0===t||t.call(u)}},[c]),null},Z=e=>{let t=(0,O.N)();return(0,o.jsx)(T.k,{componentName:"PageFullScreen",Slardar:t,children:(0,o.jsx)(V,(0,i._)({},e))})}},532338:function(e,t,r){"use strict";r(932651);var n=r(101199);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let o=n.forwardRef(function(e,t){return n.createElement("svg",i({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,ref:t},e),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.75 8H14.6961H14.696C13.3374 7.99999 12.2417 7.99997 11.3626 8.0894C10.4552 8.18171 9.66829 8.3775 8.97215 8.84265C8.4262 9.20745 7.95745 9.6762 7.59265 10.2222C7.12751 10.9183 6.93171 11.7052 6.8394 12.6126C6.74997 13.4917 6.74999 14.5874 6.75 15.946V15.9461V16V16.0539V16.054C6.74999 17.4126 6.74997 18.5083 6.8394 19.3874C6.93171 20.2948 7.12751 21.0817 7.59265 21.7779C7.95745 22.3238 8.4262 22.7926 8.97215 23.1573C9.66829 23.6225 10.4552 23.8183 11.3626 23.9106C12.2417 24 13.3374 24 14.696 24H14.696H14.75H17.25H17.304H17.304C18.6626 24 19.7583 24 20.6374 23.9106C21.5448 23.8183 22.3317 23.6225 23.0279 23.1573C23.5738 22.7926 24.0426 22.3238 24.4073 21.7779C24.8725 21.0817 25.0683 20.2948 25.1606 19.3874C25.25 18.5083 25.25 17.4126 25.25 16.054V16.054V16V15.946V15.946C25.25 14.5874 25.25 13.4917 25.1606 12.6126C25.0683 11.7052 24.8725 10.9183 24.4073 10.2222C24.0426 9.6762 23.5738 9.20745 23.0279 8.84265C22.3317 8.3775 21.5448 8.18171 20.6374 8.0894C19.7583 7.99997 18.6626 7.99999 17.304 8H17.3039H17.25H14.75ZM10.0833 10.5056C10.396 10.2966 10.8158 10.1554 11.5651 10.0791C12.331 10.0012 13.3247 10 14.75 10H17.25C18.6753 10 19.669 10.0012 20.4349 10.0791C21.1842 10.1554 21.604 10.2966 21.9167 10.5056C22.2443 10.7245 22.5255 11.0057 22.7444 11.3333C22.9534 11.646 23.0946 12.0658 23.1709 12.8151C23.2488 13.581 23.25 14.5747 23.25 16C23.25 17.4253 23.2488 18.419 23.1709 19.1849C23.0946 19.9342 22.9534 20.354 22.7444 20.6667C22.5255 20.9943 22.2443 21.2755 21.9167 21.4944C21.604 21.7034 21.1842 21.8446 20.4349 21.9209C19.669 21.9988 18.6753 22 17.25 22H14.75C13.3247 22 12.331 21.9988 11.5651 21.9209C10.8158 21.8446 10.396 21.7034 10.0833 21.4944C9.75572 21.2755 9.47447 20.9943 9.25559 20.6667C9.04662 20.354 8.90535 19.9342 8.82913 19.1849C8.75121 18.419 8.75 17.4253 8.75 16C8.75 14.5747 8.75121 13.581 8.82913 12.8151C8.90535 12.0658 9.04662 11.646 9.25559 11.3333C9.47447 11.0057 9.75572 10.7245 10.0833 10.5056ZM15.45 14.1999C15.45 15.3045 14.5546 16.1999 13.45 16.1999H12.25H11.25V14.1999H12.25H13.45V12.9999V11.9999H15.45V12.9999V14.1999ZM16.55 17.8C16.55 16.6954 17.4454 15.8 18.55 15.8H19.75H20.75V17.8H19.75H18.55V19V20H16.55V19V17.8Z",fill:"currentColor"}))});o.elementType="Icon",t.Z=o},157546:function(e,t,r){"use strict";r(932651);var n=r(101199);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let o=n.forwardRef(function(e,t){return n.createElement("svg",i({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,ref:t},e),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.75 8H14.6961H14.696C13.3374 7.99999 12.2417 7.99997 11.3626 8.0894C10.4552 8.18171 9.66829 8.3775 8.97215 8.84265C8.4262 9.20745 7.95745 9.6762 7.59265 10.2222C7.12751 10.9183 6.93171 11.7052 6.8394 12.6126C6.74997 13.4917 6.74999 14.5874 6.75 15.946V15.9461V16V16.0539V16.054C6.74999 17.4126 6.74997 18.5083 6.8394 19.3874C6.93171 20.2948 7.12751 21.0817 7.59265 21.7779C7.95745 22.3238 8.4262 22.7926 8.97215 23.1573C9.66829 23.6225 10.4552 23.8183 11.3626 23.9106C12.2417 24 13.3374 24 14.696 24H14.696H14.75H17.25H17.304H17.304C18.6626 24 19.7583 24 20.6374 23.9106C21.5448 23.8183 22.3317 23.6225 23.0279 23.1573C23.5738 22.7926 24.0426 22.3238 24.4073 21.7779C24.8725 21.0817 25.0683 20.2948 25.1606 19.3874C25.25 18.5083 25.25 17.4126 25.25 16.054V16.054V16V15.946V15.946C25.25 14.5874 25.25 13.4917 25.1606 12.6126C25.0683 11.7052 24.8725 10.9183 24.4073 10.2222C24.0426 9.6762 23.5738 9.20745 23.0279 8.84265C22.3317 8.3775 21.5448 8.18171 20.6374 8.0894C19.7583 7.99997 18.6626 7.99999 17.304 8H17.3039H17.25H14.75ZM10.0833 10.5056C10.396 10.2966 10.8158 10.1554 11.5651 10.0791C12.331 10.0012 13.3247 10 14.75 10H17.25C18.6753 10 19.669 10.0012 20.4349 10.0791C21.1842 10.1554 21.604 10.2966 21.9167 10.5056C22.2443 10.7245 22.5255 11.0057 22.7444 11.3333C22.9534 11.646 23.0946 12.0658 23.1709 12.8151C23.2488 13.581 23.25 14.5747 23.25 16C23.25 17.4253 23.2488 18.419 23.1709 19.1849C23.0946 19.9342 22.9534 20.354 22.7444 20.6667C22.5255 20.9943 22.2443 21.2755 21.9167 21.4944C21.604 21.7034 21.1842 21.8446 20.4349 21.9209C19.669 21.9988 18.6753 22 17.25 22H14.75C13.3247 22 12.331 21.9988 11.5651 21.9209C10.8158 21.8446 10.396 21.7034 10.0833 21.4944C9.75572 21.2755 9.47447 20.9943 9.25559 20.6667C9.04662 20.354 8.90535 19.9342 8.82913 19.1849C8.75121 18.419 8.75 17.4253 8.75 16C8.75 14.5747 8.75121 13.581 8.82913 12.8151C8.90535 12.0658 9.04662 11.646 9.25559 11.3333C9.47447 11.0057 9.75572 10.7245 10.0833 10.5056ZM10.75 14C10.75 12.8954 11.6454 12 12.75 12H13.95H14.95V14H13.95H12.75V15.2V16.2H10.75V15.2V14ZM21.25 18C21.25 19.1046 20.3546 20 19.25 20H18.05H17.05V18H18.05H19.25V16.8V15.8H21.25V16.8V18Z",fill:"currentColor"}))});o.elementType="Icon",t.Z=o},328324:function(e,t,r){"use strict";r(932651);var n=r(101199);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let o=n.forwardRef(function(e,t){return n.createElement("svg",i({viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,ref:t},e),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 38C20 32.4772 24.4772 28 30 28H90C95.5229 28 100 32.4772 100 38V74C100 79.5229 95.5229 84 90 84H72V91L82.5231 95.3846C83.4174 95.7573 84 96.6311 84 97.6C84 98.9255 82.9255 100 81.6 100H72H48H38.4C37.0745 100 36 98.9255 36 97.6C36 96.6311 36.5826 95.7573 37.4769 95.3846L48 91V84H30C24.4772 84 20 79.5228 20 74V38ZM70.2929 58.7071L60.7071 68.2929C60.3166 68.6834 59.6834 68.6834 59.2929 68.2929L49.7071 58.7071C49.0771 58.0771 49.5233 57 50.4142 57H55L55 46C55 45.4477 55.4477 45 56 45L64 45C64.5523 45 65 45.4477 65 46L65 57H69.5858C70.4767 57 70.9229 58.0771 70.2929 58.7071Z",fill:"currentColor"}))});o.elementType="Icon",t.Z=o},540075:function(e,t,r){"use strict";var n=r(629686),i=r(402748),o=r(320165),s=r(101199);let l=(0,s.forwardRef)((e,t)=>(0,o.jsx)("svg",(0,i._)((0,n._)({width:36,height:36,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),{children:(0,o.jsx)("path",{d:"M13.556 17.778a1.778 1.778 0 1 1-3.556 0 1.778 1.778 0 0 1 3.556 0zM19.778 17.778a1.778 1.778 0 1 1-3.556 0 1.778 1.778 0 0 1 3.556 0zM24.222 19.556a1.778 1.778 0 1 0 0-3.556 1.778 1.778 0 0 0 0 3.556z",fill:"#fff"})})));t.Z=l},312923:function(e,t,r){"use strict";r.d(t,{ZP:function(){return d}});let n=(e,t,r,n)=>{if("length"===r||"prototype"===r||"arguments"===r||"caller"===r)return;let o=Object.getOwnPropertyDescriptor(e,r),s=Object.getOwnPropertyDescriptor(t,r);if(!!i(o,s)||!n)Object.defineProperty(e,r,s)},i=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},o=(e,t)=>{let r=Object.getPrototypeOf(t);if(r!==Object.getPrototypeOf(e))Object.setPrototypeOf(e,r)},s=(e,t)=>`/* Wrapped ${e}*/
${t}`,l=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),a=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),u=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=s.bind(null,n,t.toString());Object.defineProperty(i,"name",a),Object.defineProperty(e,"toString",{...l,value:i})},c=new WeakMap;function d(e,{cacheKey:t=([e])=>e,cache:r=new Map}={}){let i=new Map,s=function(...n){let o=t(n);if(i.has(o))return i.get(o);let s=(async()=>{try{if(r&&await r.has(o))return await r.get(o);let t=e.apply(this,n),i=await t;try{return i}finally{r&&await r.set(o,i)}}finally{i.delete(o)}})();return i.set(o,s),s};return!function(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:i}=e;for(let i of Reflect.ownKeys(t))n(e,t,i,r);o(e,t),u(e,t,i)}(s,e,{ignoreNonConfigurable:!0}),c.set(s,r),s}}}]);