"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[1168],{43280:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(24643),l=n(40099),r=n(84987);const s={id:"Music_Note-6c3c6885",use:"Music_Note-6c3c6885-usage",viewBox:"0 0 48 48",content:''};function i(e){const t=(0,l.useContext)(r.X);return(0,l.useLayoutEffect)((()=>(t.add(s),()=>{t.remove("Music_Note-6c3c6885")})),[]),(0,o.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,o.jsx)("use",{xlinkHref:"#Music_Note-6c3c6885"},void 0)}),void 0)}},51004:(e,t,n)=>{n.d(t,{n:()=>s});var o=n(18047),l=n(52837),r=n(40099),s=(0,l.r)((function(e){return r.createElement("svg",(0,o._)({},e,{viewBox:"0 0 48 48",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",className:e.className}),r.createElement("path",{d:"M0 5a5 5 0 0 1 5-5h38a5 5 0 0 1 5 5v38a5 5 0 0 1-5 5H5a5 5 0 0 1-5-5V5Z",fill:"#00C39B"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 40.5c.88 0 14-11.43 14-19.1 0-7.68-6.27-13.9-14-13.9s-14 6.22-14 13.9c0 7.67 13.13 19.1 14 19.1Zm0-14.76c2.9 0 5.25-2.34 5.25-5.21A5.23 5.23 0 0 0 24 15.32a5.23 5.23 0 0 0-5.25 5.2A5.23 5.23 0 0 0 24 25.75Z",fill:"#fff"}))}))},96110:(e,t,n)=>{n.d(t,{P:()=>s});var o=n(18047),l=n(52837),r=n(40099),s=(0,l.r)((function(e){return r.createElement("svg",(0,o._)({fill:"currentColor"},e,{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",className:e.className}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m24.56 7.82-5.09 10.96-12 1.46 8.86 8.18-2.04 11.16c5.35-1.38 10.4-4.14 14.86-7.38 4.5-3.27 8.73-7.26 11.7-11.98l-11.23-1.43-5.06-10.97Zm17.81 8.56c1.1-2.85.7-4.35.33-4.86-.46-.63-2.39-1.81-7.41-.83a30 30 0 0 0-4.42 1.26l1.45 3.15 10.05 1.28ZM20.88 41.53c-8.58 3.66-16.2 3.82-19.14-.24-2.75-3.78-.78-10.26 4.44-16.8L4.5 22.94c-1.95-1.8-2.92-2.7-3.04-3.55a2.4 2.4 0 0 1 .65-2c.6-.62 1.91-.78 4.55-1.09l9.27-1.1a58.75 58.75 0 0 1 1.22-.88l3.92-8.49c1.1-2.4 1.66-3.6 2.43-3.99a2.4 2.4 0 0 1 2.11 0c.77.38 1.33 1.58 2.44 4l.97 2.1c7.79-2.9 14.51-2.76 17.24 1 2.94 4.04.47 11.19-5.6 18.19a54.46 54.46 0 0 1-9.15 8.3 54.6 54.6 0 0 1-10.63 6.1Zm12.58 2.45c2.32 1.3 3.47 1.95 4.32 1.8a2.4 2.4 0 0 0 1.7-1.24c.4-.76.15-2.06-.37-4.66l-1.15-5.78a61.68 61.68 0 0 1-9.63 7l5.13 2.88ZM6.8 31.4c-2.5 4.48-1.96 6.68-1.5 7.3.37.52 1.7 1.4 4.87 1.19l1.82-10.01-2.57-2.38a30.12 30.12 0 0 0-2.62 3.9Z"}))}))},5545:(e,t,n)=>{n.d(t,{P:()=>u});var o=n(35626),l=n.n(o);const r="object"==typeof HTMLElement?function(e){return e instanceof HTMLElement}:function(e){return e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName},s=[],i=[];let a;function c(e,t){var n;let o;const{defaultView:l}=e.ownerDocument;let r=t;return(null==l?void 0:l.getComputedStyle)?(r=t.replace(/([A-Z])/g,"-$1").toLowerCase(),l.getComputedStyle(e,null).getPropertyValue(r)):e.currentStyle?(r=t.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()})),o=null===(n=e.currentStyle)||void 0===n?void 0:n[r],o):""}const u={bind:function(e,t){if(r(e))if("undefined"!=typeof ResizeObserver){const n=new ResizeObserver(t);n.observe(e),i.push({el:e,observer:n})}else{const n={el:e,callback:t,style:{width:c(e,"width"),height:c(e,"height")}};s.push(n),a||(a&&clearInterval(a),a=setInterval((function(){var e;for(const t of s){const n=t.el,o={width:c(n,"width"),height:c(n,"height")};l()(o,t.style)||(t.style={width:o.width,height:o.height},null===(e=t.callback)||void 0===e||e.call(t))}}),200))}},remove:function(e,t){if("undefined"==typeof ResizeObserver){for(let n=0;n{n.d(t,{V:()=>f});var o=n(24643),l=n(60484),r=n(95358),s=n(47172),i=n(11072),a=n(4474),c=n(97086),u=n(70539);function d({to:e,location:{search:t}={search:""}},n={}){var o;const l=null!==(o=(0,a.parse)(t).lang)&&void 0!==o?o:"",s=function(e){var t,n,o,l,s,i,d;let h=!1;if(!(0,c.fU)())return!1;try{const{seoAbtest:c,isSearchEngineBot:g,featureFlags:p}=(0,u.w)();if(!g)return!1;const v=null!==(n="string"==typeof e?null===(t=(0,a.parseUrl)(e))||void 0===t?void 0:t.url:null==e?void 0:e.pathname)&&void 0!==n?n:"",f=Boolean((null==p?void 0:p.music_canonical_url)&&(0,r.Iy)(v)),m=Boolean((null==p?void 0:p.user_canonical_url)&&(0,r.cj)(v)),y=Boolean((null==p?void 0:p.hashtag_canonical_url)&&(0,r.Ke)(v)),w=null==c?void 0:c.parameters,_=function(e){try{return new URL(e).pathname}catch(t){return e}}(null!==(o=null==c?void 0:c.canonical)&&void 0!==o?o:""),b=null!==(s=null===(l=null==w?void 0:w.kep_canonical_abtest)||void 0===l?void 0:l.vid)&&void 0!==s?s:"v0",k=null!==(d=null===(i=null==w?void 0:w.video_canonical_abtest)||void 0===i?void 0:i.vid)&&void 0!==d?d:"v0",C="v1"===b&&(0,r.pz)(_),x="v1"===k&&(0,r.Fj)(_);h=(f||m||y)&&!(x||C)}catch(e){console.error("Error: while geting Canonical Url Experiment get base bot/abtest result")}return h}(e);if("string"==typeof e){const{url:t,query:o}=(0,a.parseUrl)(e);return s?t:(0,a.stringifyUrl)({url:t,query:Object.assign({lang:l},o)},Object.assign({skipEmptyString:!0},n))}const{pathname:i="",search:d={},hash:h}=e,g=h?`#${h}`:"";return s?i:`${(0,a.stringifyUrl)({url:i,query:Object.assign({lang:l},d)},Object.assign({skipEmptyString:!0},n))}${g}`}const h={fontWeight:700},g={fontWeight:600},p={},v=(e,t,n={})=>(0,o.jsx)("span",{style:Object.assign({fontWeight:400},n),"data-e2e":"new-desc-span",children:e},e+t),f=e=>{var t,n;const{item:a,desc:c,textExtra:u,DuetComp:f,LinkComp:m,QuestionComp:y,shouldReport:w,reportParams:_,styleType:b,mode:k,useGetVideoPath:C,onSearchResultClick:x,onBrowserModeClose:L,onLinkClick:R}=e,{authorId:I,id:T}=(0,l.L$)(a),j=null!==(n=null!==(t=(0,i.ik)(T))&&void 0!==t?t:c)&&void 0!==n?n:"",E=(0,i.M)(T),M=(0,i.sX)(T),S=E&&M,B=(0,s.useLocation)(),N=C();if(!c)return null;let A=p;switch(b){case"kep":A=h;break;case"explore":A=g}if(!(null==u?void 0:u.length))return v(S?j:c,0,A);const D=[...u].sort(((e,t)=>e.start-t.start)).reduce(((t,n,l,s)=>{const{start:i,end:a,awemeId:u,userUniqueId:h,hashtagName:g,type:p,subType:C,userId:j,hashtagId:E,questionId:M="",questionContent:D=""}=n,O=0===l?0:s[l-1].end,P=i,q=c.substring(O,P);q&&!S&&t.push(v(q,t.length-1,A));const U=7===(V=C)||5===V;var V;const Z=c.substring(i,a);if(0===p&&U){const e=d({to:{pathname:(0,r.WD)({questionId:M,questionContent:D})},location:B});t.push((0,o.jsx)(y,{href:e,text:null!=h?h:"",index:t.length-1,id:M,type:"question",target:"_self",authorId:I,groupId:T,shouldReport:w,reportParams:_,styleType:"question",inline:"compact"===k,onLinkClick:R,onSearchResultClick:x},Z+l))}else if(0===p&&u){const n=d({to:{pathname:N({uniqueId:null!=h?h:"",videoId:u})},location:B});t.push((0,o.jsx)(f,{href:n,text:Z,index:t.length-1,id:u,type:"video",target:"_self",authorId:I,groupId:T,shouldReport:w,reportParams:_,styleType:"duet",onLinkClick:e.onLinkClick,onSearchResultClick:e.onSearchResultClick},Z+l))}else if(0===p&&j){const n=d({to:{pathname:(0,r.fJ)({uniqueId:null!=h?h:""})},location:B});t.push((0,o.jsx)(m,{href:n,text:Z,index:t.length-1,id:j,type:"user",target:"_self",authorId:I,groupId:T,shouldReport:w,reportParams:_,styleType:b,ariaLabel:`Watch more videos from user ${Z}`,onLinkClick:e.onLinkClick,onSearchResultClick:e.onSearchResultClick,onBrowserModeClose:e.onBrowserModeClose},Z+l))}else if(1===p&&g){const e=d({to:{pathname:(0,r.AT)({tagName:g})},location:B});t.push((0,o.jsx)(m,{href:e,text:Z,index:t.length-1,id:null!=E?E:"",type:"tag",target:"_self",authorId:I,groupId:T,shouldReport:w,reportParams:_,styleType:b,ariaLabel:`Watch more videos of the ${Z} category`,onLinkClick:R,onSearchResultClick:x,onBrowserModeClose:L},Z+l))}else S||t.push(v(Z,t.length-1,A));return l!==s.length-1||S||t.push(v(c.substring(a),t.length,A)),t}),[]);return S&&D.unshift(v(j,-1,A)),(0,o.jsx)(o.Fragment,{children:D})}},62696:(e,t,n)=>{n.d(t,{V:()=>i});var o=n(40099),l=n(11072),r=n(92502),s=n(60484);const i=({item:e})=>{const{imagePost:t,id:n=""}=(0,s.L$)(e),i=(0,l.RA)(n),a=(0,l.sX)(n),c=(0,l.xr)(),{selectedTranslationLanguage:u,isReady:d}=(0,r.RD)((e=>({selectedTranslationLanguage:e.selectedTranslationLanguage,isReady:e.isReady})));return(0,o.useEffect)((()=>{a&&d&&c.getPhotoTitleTranslation({target_lang:u,item_id:n})}),[a,n,c,u,d]),a?i:null==t?void 0:t.title}},24572:(e,t,n)=>{n.d(t,{G:()=>v});var o=n(24643),l=n(40099),r=n(77976),s=n(91257),i=n(11072),a=n(25616),c=n(93341),u=n(15936),d=n(62186),h=n(26290);const g=(0,d.default)(h.F.P1,{target:"ea6l3fv0"})({cursor:"pointer",":hover":{textDecoration:"underline"}},"label:StyledDescriptionTranslationToggleText;"),p=(0,r.w)(g),v=(0,l.memo)((({itemId:e,authorId:t})=>{var n;const r=s.Jr[null!==(n=(0,c.RT)())&&void 0!==n?n:-1],d=(0,i.xr)(),h=(0,i.sX)(e),g=(0,a.s)(),v=(0,l.useMemo)((()=>({group_id:e,author_id:t,play_mode:r})),[e,t,r]),f=g(h?"Web_buildVideoTranslations_seeOriginal":"Web_buildVideoTranslations_seeTrans"),m=(0,l.useCallback)((t=>{t.stopPropagation(),t.preventDefault(),d.setShowTranslation(e,!h)}),[h,e,d]),y=(0,u.B)(m);return(0,o.jsx)(p,{color:"UIText3",weight:"medium",onClick:m,onKeyDown:y,etClick:{etName:h?"click_see_original":"click_see_translation",etParams:v},children:f})}))}}]);