(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{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,${t.outerHTML}`;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=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{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` `}}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` `}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(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}}}]);