"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[8116],{74499:(e,t,o)=>{o.d(t,{A:()=>d});var i=o(24643),n=o(40099),l=o(84987);const a={id:"logo-dark-c4561408",use:"logo-dark-c4561408-usage",viewBox:"0 0 118 42",content:''};function d(e){const t=(0,n.useContext)(l.X);return(0,n.useLayoutEffect)((()=>(t.add(a),()=>{t.remove("logo-dark-c4561408")})),[]),(0,i.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,i.jsx)("use",{xlinkHref:"#logo-dark-c4561408"},void 0)}),void 0)}},46102:(e,t,o)=>{o.d(t,{A:()=>d});var i=o(24643),n=o(40099),l=o(84987);const a={id:"logo-light-0ca3c974",use:"logo-light-0ca3c974-usage",viewBox:"0 0 118 30",content:''};function d(e){const t=(0,n.useContext)(l.X);return(0,n.useLayoutEffect)((()=>(t.add(a),()=>{t.remove("logo-light-0ca3c974")})),[]),(0,i.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,i.jsx)("use",{xlinkHref:"#logo-light-0ca3c974"},void 0)}),void 0)}},75886:(e,t,o)=>{o.d(t,{A:()=>d});var i=o(24643),n=o(40099),l=o(84987);const a={id:"qr-code-wrapper-9e84af22",use:"qr-code-wrapper-9e84af22-usage",viewBox:"0 0 200 200",content:''};function d(e){const t=(0,n.useContext)(l.X);return(0,n.useLayoutEffect)((()=>(t.add(a),()=>{t.remove("qr-code-wrapper-9e84af22")})),[]),(0,i.jsx)("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor"},e,{children:(0,i.jsx)("use",{xlinkHref:"#qr-code-wrapper-9e84af22"},void 0)}),void 0)}},50190:(e,t,o)=>{o.d(t,{g:()=>_});var i=o(24643),n=o(47236),l=o(40099),a=o(47172),d=o(25616),r=o(49730),s=o(95868),c=o(29909),p=o(82715),h=o(23255),u=o(74499),g=o(46102),m=o(62186),v=o(67963);const f=(0,m.default)(v.N_,{target:"eih5y5d0"})({fontSize:0},"label:StyledLinkLogo;");f.defaultProps=Object.assign(Object.assign({},f.defaultProps),{"data-e2e":"tiktok-logo"});var x=o(21683);const b=(0,n.Ay)({resolved:{},chunkName:()=>"logo-muted-white.svg",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!o.m[t]},importAsync:()=>o.e(976).then(o.bind(o,6060)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return o(t)},resolve:()=>6060}),w=(0,n.Ay)({resolved:{},chunkName:()=>"logo-muted-black.svg",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!o.m[t]},importAsync:()=>o.e(4666).then(o.bind(o,90758)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return o(t)},resolve:()=>90758}),_=(0,l.memo)((function({isDark:e,isGrayFilter:t,style:o={}}){const n=(0,d.s)(),{pathname:m}=(0,a.useLocation)(),v=(0,c.sL)(),_=(0,x.YS)(),y=(0,r.E)(),k=(0,l.useCallback)((e=>{(0,s.tO)(m)&&(e.preventDefault(),v.resetRecommendList({}),y()),h.t.handleClickLogo()}),[m,v,y]),j=n("TikTok i18n title"),C=(0,l.useMemo)((()=>e?t?(0,i.jsx)(b,{height:42,width:118}):(0,i.jsx)(g.A,{alt:j,height:42,width:118}):t?(0,i.jsx)(w,{height:42,width:118}):(0,i.jsx)(u.A,{height:42,width:118,alt:j})),[e,t,j]);return(0,i.jsxs)(f,{to:p.OZ.home,onClick:k,style:Object.assign({position:"relative"},o),ariaLabel:n("accessibilityLabels_forYou_nav_tiktok_btn"),forceSSR:_,children:[C,(0,i.jsx)("strong",{children:j})]})}))},8585:(e,t,o)=>{o.d(t,{E:()=>s,y:()=>c});var i=o(40099),n=o(91498);let l=null,a=!1,d=!1;const r=()=>{var e,t,i,n;d&&a&&!l&&(e=void 0,t=void 0,n=function*(){const e=document.createElement("meta");e.setAttribute("http-equiv","origin-trial"),e.setAttribute("content","A7kLbZZF0sNV1Ncyw+UODqZel/HZ7YnQCMCa2Zz4XvT8uKV2Hp5maAbj5zsGZwUDmwt401QEhO8LNkGmAEh0hV4AAABoeyJvcmlnaW4iOiJodHRwczovL3Rpa3Rvay5jb206NDQzIiwiZmVhdHVyZSI6Im1zQWNxdWlzaXRpb25JbmZvIiwiZXhwaXJ5IjoxNzMzNTAzNjc5LCJpc1N1YmRvbWFpbiI6dHJ1ZX0="),document.head.appendChild(e);const t=(yield o.e(5269).then(o.bind(o,62779))).default;l=new t({ti:"187137935"})},new((i=void 0)||(i=Promise))((function(o,l){function a(e){try{r(n.next(e))}catch(e){l(e)}}function d(e){try{r(n.throw(e))}catch(e){l(e)}}function r(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,d)}r((n=n.apply(e,t||[])).next())})))},s=()=>{(0,i.useEffect)((()=>{"msft"===(0,n.o7)()&&(d=!0),r()}),[])},c=()=>(0,i.useCallback)((e=>{a=e,r()}),[])},30247:(e,t,o)=>{o.d(t,{ey:()=>p,Zh:()=>d,iU:()=>r,BS:()=>h,b_:()=>c});var i=o(40099),n=o(30023),l=o(68783),a=o(58305);const d=e=>!!e&&/^https?:\/\/.*\.mp4$/.test(e),r=e=>1===e,s=e=>11===e?{enter_from_merge:"homepage_follow",entrance_detail:"homepage_follow"}:{enter_from_merge:"homepage_hot",entrance_detail:"homepage_hot_live_head"};function c({item:e,author:t,pageType:o}){const a=(0,i.useMemo)((()=>(0,l.Jl)(e)?"live_head":"video_head"),[e]),c=(0,i.useMemo)((()=>{var t,i;return Object.assign(Object.assign({},s(o)),{enter_method:a,video_id:null==e?void 0:e.id,request_id:null==e?void 0:e.logId,is_highlight:d(null===(t=null==e?void 0:e.liveRoomInfo)||void 0===t?void 0:t.streamData)?"1":"0",is_landscape:r(null===(i=null==e?void 0:e.liveRoomInfo)||void 0===i?void 0:i.landscape)?"1":"0"})}),[o,e,a]);return{avatarShowParams:(0,i.useMemo)((()=>{var o,i,l,a,d,r;return Object.assign(Object.assign({},c),{room_id:null!==(o=null==t?void 0:t.roomId)&&void 0!==o?o:null===(i=null==e?void 0:e.liveRoomInfo)||void 0===i?void 0:i.roomID,anchor_id:null!==(l=null==t?void 0:t.id)&&void 0!==l?l:null===(d=null===(a=null==e?void 0:e.liveRoomInfo)||void 0===a?void 0:a.ownerInfo)||void 0===d?void 0:d.id,live_type:n.t9[Number(null===(r=null==e?void 0:e.liveRoomInfo)||void 0===r?void 0:r.mode)],play_mode:"one_column"})}),[e,t,c]),avatarLinkQuery:(0,i.useMemo)((()=>Object.assign(Object.assign({},c),{from_play_mode:"one_column"})),[c]),followClickQuery:(0,i.useMemo)((()=>{var o,i,l,a,d,r,s,p,h;return Object.assign(Object.assign({},c),{enter_method:"live_cell",live_type:n.t9[Number(null===(o=null==e?void 0:e.liveRoomInfo)||void 0===o?void 0:o.mode)],room_id:null!==(i=null==t?void 0:t.roomId)&&void 0!==i?i:null===(l=null==e?void 0:e.liveRoomInfo)||void 0===l?void 0:l.roomID,anchor_id:null!==(a=null==t?void 0:t.id)&&void 0!==a?a:null===(r=null===(d=null==e?void 0:e.liveRoomInfo)||void 0===d?void 0:d.ownerInfo)||void 0===r?void 0:r.id,to_user_id:null!==(s=null==t?void 0:t.id)&&void 0!==s?s:null===(h=null===(p=null==e?void 0:e.liveRoomInfo)||void 0===p?void 0:p.ownerInfo)||void 0===h?void 0:h.id,play_mode:"one_column"})}),[c,t,o,e])}}const p=()=>(0,a._S)("ENTER_ROOM_TIME_STAMP_STORAGE_KEY",""),h=e=>[3,-2].includes(e)},45266:(e,t,o)=>{o.d(t,{s:()=>l});var i=o(71281),n=o(57431);const l=()=>{var e,t;const{user:o}=(0,n.x)();return{showAds:"v2"===(null!==(e=(0,i.d)("enable_ads"))&&void 0!==e?e:"v1")&&!!o,showAboutThisAd:"v2"===(null!==(t=(0,i.d)("enable_about_this_ad"))&&void 0!==t?t:"v1")}}},89076:(e,t,o)=>{o.d(t,{K:()=>c});var i=o(67823),n=o(40099),l=o(243),a=o.n(l),d=o(4929),r=o(51391),s=o(5441);function c(){const{isElectronApp:e}=(0,s.B)();return(0,n.useCallback)((({lang:t,url:o,currentLang:n,isMobile:l})=>{!function({lang:e,url:t,currentLang:o,isMobile:n}){r.j.handleLanguageChange({language:o,to_language:e,enter_method:n?"top_bar":void 0}),i.A.remove(d.WU),i.A.set(d.WU,e,{secure:!0,expires:300,domain:".tiktok.com"}),window.location.replace(t)}({lang:t,url:o,currentLang:n,isMobile:l}),e&&a().app.langChange({lang:t})}),[e])}},39117:(e,t,o)=>{var i;o.d(t,{w4:()=>c}),function(e){e.Apple="apple",e.Amazon="amazon",e.Google="google",e.Download="download",e.Microsoft="microsoft"}(i||(i={}));const n=["ast","de","en","fr","it","ja","pt"],l="en",a=["microsoft","apple","amazon","google","download"],d={apple:"ios_app_store",google:"google_play",amazon:"amazon_store",download:"download_apk",microsoft:"microsoft_store"},r="officewebshare",s="normal";function c({lang:e,downloadLink:t={},isIOS:o=!1,isAndroid:i=!1}){var c;const p=e.split("-")[0],h=n.includes(p)&&!(null===(c=t.download)||void 0===c?void 0:c.visible)?p:l;return{iconLanguage:h,iconConfig:a.reduce(((e,n)=>{const l=t[n];return(null==l?void 0:l.visible)&&function({platform:e,isIOS:t,isAndroid:o}){switch(e){case"apple":return!o;case"google":case"download":case"amazon":return!t;default:return!0}}({platform:n,isAndroid:i,isIOS:o})&&e.push({platform:n,language:h,href:l[r]||l[s],alt:`${n}-store`,target:d[n]||n}),e}),[])}}},64046:(e,t,o)=>{o.d(t,{OS:()=>g,h5:()=>h,j5:()=>m,Rv:()=>v,ZR:()=>x});var i=o(62186),n=o(72153);const l=o.p+"25b0d4f3e6779acb114f.png",a=o.p+"1db62e2b736e1cc835a3.png",d=o.p+"f1596f39e85631c052c4.png",r=o.p+"b5b0c8fab7d18dff2e2a.png",s=o.p+"2097820e1be2c7a06bf8.png",c=o.p+"a028a67e740da091b89b.png",p=o.p+"0433f99adc0a040142f6.png",h=(0,i.default)("div",{target:"e1obx3ji0"})((({region:e})=>({marginTop:"US"===e?"40px":"16px",display:"flex",flexDirection:"row",width:"288px",flexWrap:"wrap",justifyContent:"space-between"})),"label:DivDownloadContainer;"),u={amazon:{backgroundPosition:"0 0"},apple:{backgroundPosition:"0 -43px"},google:{backgroundPosition:"0 -86px"}},g=(0,i.default)("a",{target:"e1obx3ji1"})({":nth-of-type(-n+2)":{marginBottom:"8px"}},"label:AIconContainer;"),m=(0,i.default)("img",{target:"e1obx3ji2"})((({platform:e,lang:t})=>function(e,t){return"download"===e?{backgroundImage:"url('https://p16-ttug-sg.tiktokcdn.com/img/ttfe-malisg/tiktok_web/store-badge/download.png~296x0.image')"}:"microsoft"!==e?Object.assign(Object.assign({},u[e]),{backgroundImage:`url(https://p16-ttug-sg.tiktokcdn.com/img/ttfe-malisg/tiktok_web/store-badge/${t}.png~296x0.image)`}):void 0}(e,t)),{width:"138px",height:"40px",backgroundSize:"138px",objectFit:"cover",borderRadius:"4px"},"label:ImgIcon;"),v=(0,i.default)("p",{target:"e1obx3ji3"})((({theme:e})=>(0,n.zy)({theme:e,typography:"P1",fontWeight:"semiBold"})),"label:PSubTitle;"),f={ast:l,de:a,en:d,fr:r,it:s,ja:c,pt:p},x=e=>f[e]},49730:(e,t,o)=>{o.d(t,{E:()=>v});var i=o(58632),n=o(40099),l=o(29909),a=o(97086),d=o(45266),r=o(30247),s=o(58305),c=o(60144),p=o(88920),h=o(34871),u=o(60484),g=o(49057);const m="ENABLED_FYP_CDN_CACHE";function v(e=void 0,t="",o=""){const{streamDeviceType:v}=(0,c.A)(),f=(0,l.sL)(),{abTestVersion:x}=(0,u.L$)((0,g.W)((()=>["abTestVersion"]),[])),b=(0,d.s)(),w=function(){var e;const{user:t,webIdCreatedTime:o}=null!==(e=(0,g.W)((()=>["user","webIdCreatedTime"]),[]))&&void 0!==e?e:{},i=Boolean(t),{inWebappFypCacheExperiment:n}=(0,p.Eg)(),l=(0,h.mv)(o);return n&&!i&&l&&!(0,a.fU)()}();return(0,n.useCallback)((()=>(0,i.__awaiter)(this,void 0,void 0,(function*(){var i,n;o&&f.setRecommendListById({list:[o]});const l=(0,a.fU)()?"":(0,r.ey)(),c=w&&!(0,s._S)(m,"")&&((0,s.AP)(m,"1"),!0),p=function(e,t,o,i){const n=(0,a.fU)()?"":(0,r.ey)();return{itemId:e,pullType:1,ttamParams:(0,d.s)(),fypFeederItemId:t,watchLiveLastTime:n,device_type:o,enableCDNCache:i}}(e,t,v,c),h={itemId:e,pullType:1,ttamParams:b,watchLiveLastTime:l,device_type:v,fypFeederItemId:t};console.debug("[useFYPRecommendListFirstPull]","originParams",h,"expParams",p,JSON.stringify(p)===JSON.stringify(h));const u="v2"!==(null===(n=null===(i=null==x?void 0:x.parameters)||void 0===i?void 0:i.foryou_prefetch)||void 0===n?void 0:n.vid)?h:p;yield f.getRecommendList(u)}))),[x,f,w,v,e,b,t,o])}},56421:(e,t,o)=>{o.d(t,{w:()=>ce});var i=o(24643),n=o(25616),l=o(60484),a=o(48615),d=o(50190),r=o(41271),s=o(40099),c=o(88091),p=o(50970),h=o(49057),u=o(39117),g=o(64046),m=o(57456),v=o(1452),f=o(93981),x=o(85997),b=o(62186),w=o(75886),_=o(72153);const y=(0,b.default)("div",{target:"e8cpz260"})({padding:"29px 26px 48px",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",borderBottom:"1px solid #979797",transition:"all .3s cubic-bezier"},(0,_.jJ)({max:c.f5[c.Om.Medium]-1,style:{padding:"48px 0",flexDirection:"column",alignItems:"center"}}),"label:DivContainer;"),k=(0,b.default)("div",{target:"e8cpz261"})({display:"flex",flexDirection:"column",alignItems:"center"},"label:DivWrapper;"),j=(0,b.default)("p",{target:"e8cpz262"})({fontSize:"24px",lineHeight:"24px",marginBottom:"16px"},(({theme:e})=>(0,_.zy)({theme:e,fontFamily:"TikTokDisplayFont",fontWeight:"semiBold"})),"label:PTitle;"),C=(0,b.default)("div",{target:"e8cpz263"})({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center"},(0,_.jJ)({max:c.f5[c.Om.Medium]-1,style:{flexDirection:"column"}}),"label:DivIconContainer;"),A=(0,b.default)("a",{target:"e8cpz264"})({margin:"0 4px",width:"170px",height:"50px",display:"flex",alignItems:"center",justifyContent:"center",textDecoration:"none",":active, :hover, :link, :visited":{textDecoration:"none"}},(({withBorder:e})=>e?{border:"1px solid rgba(255, 255, 255, .5)",borderRadius:"8px"}:null),(({theme:e})=>(0,_.zy)({theme:e,fontFamily:"TikTokDisplayFont",fontWeight:"bold",typography:"P1",color:"ConstTextInverse",isLink:!0})),(0,_.jJ)({max:c.f5[c.Om.Medium]-1,style:{marginBottom:"20px"}}),"label:AIconContainer;");var z;!function(e){e.Apple="apple",e.Amazon="amazon",e.Google="google",e.Download="download",e.Microsoft="microsoft"}(z||(z={}));const I={amazon:{backgroundPosition:"0 0"},apple:{backgroundPosition:"0 -53px"},google:{backgroundPosition:"0 -106px"}},E=(0,b.default)("div",{target:"e8cpz265"})({width:"170px",height:"48px",overflow:"hidden",borderRadius:"6px"},"label:DivMSContainer;"),D=(0,b.default)("img",{target:"e8cpz266"})((({platform:e,lang:t})=>function(e,t){return"download"===e?{backgroundImage:"url('https://p16-ttug-sg.tiktokcdn.com/img/ttfe-malisg/tiktok_web/store-badge/download.png~296x0.image')"}:"microsoft"!==e?Object.assign(Object.assign({},I[e]),{backgroundImage:`url(https://p16-ttug-sg.tiktokcdn.com/img/ttfe-malisg/tiktok_web/store-badge/${t}.png~296x0.image)`}):void 0}(e,t)),{width:"170px",height:"50px",backgroundSize:"170px",objectFit:"cover",backgroundRepeat:"no-repeat",boxSizing:"border-box",lineHeight:0,transform:"scale(1.01)"},"label:ImgIcon;"),M=(0,b.default)("img",{target:"e8cpz267"})({marginRight:"8px",width:"20px"},"label:ImgQRCode;"),O=(0,b.default)("p",{target:"e8cpz268"})({marginBottom:"60px",textAlign:"center"},(({theme:e})=>(0,_.zy)({theme:e,color:"TextPrimary",fontFamily:"TikTokDisplayFont",fontWeight:"bold",typography:"H3"})),"label:PQRTitle;"),L=(0,b.default)("div",{target:"e8cpz269"})({display:"flex",flexDirection:"column",alignItems:"center",padding:"80px 85px"},"label:DivBodyContainer;"),T=(0,b.default)(w.A,{target:"e8cpz2610"})({display:"block"},"label:StyledQrBg;"),F=(0,b.default)("div",{target:"e8cpz2611"})({position:"relative",width:"202px",height:"202px"},"label:DivQRCodeWrapper;"),S=(0,b.default)("img",{target:"e8cpz2612"})({width:"200px",position:"absolute",left:"1px",top:"1px",borderRadius:"8px",overflow:"hidden"},"label:ImgQRCodeDownload;"),R=function(e){const t=(0,n.s)(),o=(0,r.P)(p.L,{selector:e=>{var t;return"t"===(null===(t=e.appContext)||void 0===t?void 0:t.appType)?f:v},dependencies:[]}),l=(0,c.eb)({closeOnBackdropClick:!0,closeOnEsc:!0});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(A,{onClick:e=>{e.preventDefault(),l.open()},withBorder:!0,href:"#",children:[(0,i.jsx)(M,{src:"https://sf-static.tiktokcdn.com/obj/tiktok-web-common-sg/mtact/static/images/share/video/ic-qrcode.svg"}),(0,i.jsx)("span",{children:"QR CODE"})]}),(0,i.jsx)(c.nO,Object.assign(Object.assign({width:"Medium",height:"Compact",hasCloseButton:!0},l),{children:(0,i.jsxs)(L,{children:[(0,i.jsx)(O,{children:t("QR CODE Text")}),(0,i.jsxs)(F,{children:[(0,i.jsx)(T,{width:"202",height:"202"}),(0,i.jsx)(S,{src:o})]})]})}))]})},B=function(e){const t=(0,n.s)(),{language:o}=(0,l.L$)((0,h.W)((()=>["language"]),[])),d=(0,l.L$)((0,a.U)((()=>["downloadLink","isAndroid","isIOS"]),[])),{iconLanguage:r,iconConfig:c}=(0,s.useMemo)((()=>(0,u.w4)(Object.assign({lang:o},d))),[o,d]),p=(0,s.useCallback)((e=>{x.jA.handleClickAppStore(e)}),[]);return(0,i.jsx)(y,{children:(0,i.jsxs)(k,{children:[(0,i.jsx)(j,{children:t("pc_reflow_download")}),(0,i.jsxs)(C,{children:[(0,i.jsx)(R,{}),c.map((({alt:e,href:t,platform:o})=>(0,i.jsx)(A,{withBorder:"microsoft"===o,href:t,target:"_blank",rel:"nofollow noopener noreferrer",onClick:p.bind(null,o),children:"microsoft"===o?(0,i.jsx)(E,{children:(0,i.jsx)(D,{src:(0,g.ZR)(r),platform:o,alt:e,lang:r})}):(0,i.jsx)(D,{src:m,platform:o,alt:e,lang:r})},o)))]})]})})};var P=o(4474),N=o(47172),H=o(14178),W=o(89076),V=o(95868),J=o(4929),U=o(51391);const q=(0,b.default)("div",{target:"e1g150f60"})({boxSizing:"border-box",position:"relative",width:"172px",height:"36px",padding:"0 16px",display:"flex",border:"1px solid #8a8b91",borderRadius:"2px",alignItems:"center",justifyContent:"space-between",cursor:"pointer"},(({theme:e})=>[(0,_.zy)({theme:e,typography:"P2",fontFamily:"TikTokFont",fontWeight:"normal"}),(0,_.mp)({direction:e.direction,textAlign:"end"})]),"label:DivLangSelectionContainer;"),Z=(0,b.default)("p",{target:"e1g150f61"})({display:"block",lineHeight:"36px",fontSize:"14px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},"label:PLabel;"),G=(0,b.default)("select",{target:"e1g150f62"})({position:"absolute",left:0,right:0,top:0,width:"100%",height:"100%",opacity:0,color:"initial"},"label:SelectLangForm;"),Q=J.wX.map((e=>{const{label:t,value:o}=e;return(0,i.jsx)("option",{value:o,children:t},o)})),X=function(){const e=(0,r.P)(p.L,{selector:e=>{var t,o;return null!==(o=null===(t=e.appContext)||void 0===t?void 0:t.language)&&void 0!==o?o:"en"},dependencies:[]}),t=(0,s.useMemo)((()=>{var t;return null===(t=J.wX.find((({value:t})=>t===e)))||void 0===t?void 0:t.label}),[e]),{pathname:o,search:n}=(0,N.useLocation)(),l=(0,W.K)(),a=(0,s.useCallback)((t=>{const{value:i}=t.target;let a;a=(0,V.Iz)(o)?`/${i}`:(0,P.stringifyUrl)({url:o,query:Object.assign(Object.assign({},(0,P.parse)(n)),{lang:i})}),l({url:a,lang:i,currentLang:e,isMobile:!0})}),[e,o,l,n]),d=(0,s.useCallback)((()=>{U.j.handleLanguageClick({language:e})}),[e]);return(0,i.jsxs)(q,{children:[(0,i.jsx)(Z,{children:(0,i.jsx)("span",{children:t})}),(0,i.jsx)(H.A,{width:30,height:30,fill:"#B0B0B4"}),(0,i.jsx)(G,{value:e,onChange:a,onClick:d,children:Q})]})};var $=o(54888),Y=o(5441);const K=(0,b.default)("div",{target:"eks331y0"})((({theme:{direction:e,colors:t}})=>[{flex:"1 1 0%",maxWidth:"226px",color:t.ConstTextInverse},(0,_.mp)({direction:e,paddingEnd:"8px"}),(0,_.jJ)({max:c.f5[c.Om.Medium]-1,style:{flex:"auto",padding:0,marginTop:"32px"}})]),"label:DivContainer;"),ee=(0,b.default)("h4",{target:"eks331y1"})({fontSize:"14px",lineHeight:"28px",margin:0},(({theme:e})=>(0,_.zy)({theme:e,fontFamily:"TikTokDisplayFont",fontWeight:"bold"})),"label:H4Title;"),te=(0,b.default)("span",{target:"eks331y2"})({},"label:SpanContent;"),oe=(0,b.default)("a",{target:"eks331y3"})({display:"block",textDecoration:"none",position:"relative",[`:hover ${te}`]:{paddingBottom:"2px",borderBottom:"2px solid #ccc"},fontSize:"14px",lineHeight:"28px"},(({theme:e})=>[(0,_.zy)({theme:e,fontFamily:"TikTokDisplayFont",fontWeight:"medium",color:"ConstTextInverse3",isLink:!0}),{":link, :hover, :active, :visited":{textDecoration:"none",color:e.colors.ConstTextInverse3}}]),"label:ALink;"),ie=function(e){const t=(0,r.P)($.$,{selector:e=>{var t;const o=null===(t=e.bizContext)||void 0===t?void 0:t.navList;return(null!=o?o:[]).map((e=>{const t=Object.assign({},e);return t.children=t.children.filter((({placements:e=[]})=>0===e.length||e.includes("footer"))),t}))},dependencies:[]}),{isElectronApp:o}=(0,Y.B)();return(0,i.jsx)(i.Fragment,{children:t.map((({title:e,children:t})=>(0,i.jsx)(s.Fragment,{children:(0,i.jsxs)(K,{children:[(0,i.jsx)(ee,{children:e}),t.map((({title:e,href:t,newWindow:n=!1})=>(0,i.jsx)(oe,{href:t,target:n||o?"_blank":void 0,rel:"noreferrer",children:(0,i.jsx)(te,{children:e})},e)))]})},e)))})},ne=(0,b.default)("div",{target:"e1j0kpjo0"})((({theme:{colors:e}})=>({width:"100%",color:e.ConstTextInverse,backgroundColor:e.ConstBGInverse})),(({hasPaddingBottom:e})=>[{paddingBottom:e?"24px":0},(0,_.jJ)({max:c.f5[c.Om.Medium]-1,style:{paddingBottom:e?"80px":0,textAlign:"center"}})]),"label:DivFooterContainer;"),le=(0,b.default)("footer",{target:"e1j0kpjo1"})({position:"relative",display:"flex",flexDirection:"row",alignItems:"flex-start",paddingTop:"40px"},(({theme:{direction:e}})=>(0,_.mp)({direction:e,paddingStart:"378px"})),(0,_.jJ)({max:c.f5[c.Om.Medium]-1,style:{padding:"40px 0 0",flexDirection:"column",alignItems:"center"}}),"label:FooterWrapper;"),ae=(0,b.default)("div",{target:"e1j0kpjo2"})({display:"block",position:"absolute",top:"43px","& > strong":{visibility:"hidden",position:"absolute",left:0,top:0}},(({theme:{direction:e}})=>[(0,_.mp)({direction:e,start:"144px"}),(0,_.jJ)({max:c.f5[c.Om.Medium]-1,style:Object.assign({position:"relative",top:0},(0,_.mp)({direction:e,start:"0"}))})]),"label:DivLogoWrapper;"),de=(0,b.default)("div",{target:"e1j0kpjo3"})({padding:"0 144px",marginTop:"60px",display:"flex",flexDirection:"row",alignItems:"flex-end",justifyContent:"space-between"},(0,_.jJ)({max:c.f5[c.Om.Medium]-1,style:{padding:0,marginTop:"72px",flexDirection:"column",alignItems:"center",justifyContent:"flex-start"}}),"label:DivBottomWrapper;"),re=(0,b.default)("div",{target:"e1j0kpjo4"})((({theme:e})=>(0,_.zy)({theme:e,fontFamily:"TikTokDisplayFont",fontWeight:"medium",typography:"P3",color:"ConstTextInverse3"})),{lineHeight:"24px"},(0,_.jJ)({max:c.f5[c.Om.Medium]-1,style:{marginTop:"20px"}}),"label:DivCopyright;"),se=(new Date).getFullYear(),ce=function({hideContent:e,hideDownload:t,hideLanguageSelection:o}){const r=(0,n.s)(),{config:s}=(0,l.L$)((0,a.U)((()=>["config"]),[]));return(0,i.jsxs)(ne,{hasPaddingBottom:!e,children:[!t&&!(null==s?void 0:s.shouldBlock)&&(0,i.jsx)(B,{}),(0,i.jsxs)(le,{children:[(0,i.jsxs)(ae,{children:[(0,i.jsx)(d.g,{isDark:!0,isGrayFilter:null==s?void 0:s.isGrayFilter}),(0,i.jsx)("strong",{children:r("TikTok i18n title")})]}),(0,i.jsx)(ie,{})]}),(0,i.jsxs)(de,{children:[o?(0,i.jsx)("div",{}):(0,i.jsx)(X,{}),(0,i.jsxs)(re,{children:["© ",se," TikTok"]})]})]})}},85997:(e,t,o)=>{o.d(t,{jA:()=>d});var i,n,l,a=o(93608);!function(e){e.Apple="apple",e.Amazon="amazon",e.Google="google",e.Download="download",e.Microsoft="microsoft"}(i||(i={})),function(e){e.Notify="download_app_notify",e.Confirm="download_app_confirm",e.Dismiss="download_app_dismiss",e.ClickAppStore="click_app_store",e.SwipeUpGuideShow="swipe_up_guide_show",e.SwipeUpGuideClose="swipe_up_guide_close"}(n||(n={})),function(e){e.XClose="x_close",e.ClickMask="click_mask",e.NotNow="not_now"}(l||(l={}));const d={handleClickAppStore:e=>{a.f.sendEvent("click_app_store",{channel:e,enter_from:"webapp_download_modal"})},handleDownloadShow:e=>{a.f.sendEvent("download_app_notify",e)},handleDownloadConfirm:e=>{a.f.sendEvent("download_app_confirm",e)},handleDownloadDismiss:e=>{a.f.sendEvent("download_app_dismiss",e)},handleNewUserGuideShow:e=>{a.f.sendEvent("swipe_up_guide_show",e)},handleNewUserGuideClose:e=>{a.f.sendEvent("swipe_up_guide_close",e)},tapDownloadConfirm:e=>{a.f.event("tap",Object.assign(Object.assign({},e),{duration:performance.now()})),window.__COIN_ACTIVITY_TAP_PARAMS&&a.f.event("luckycat_click_download",window.__COIN_ACTIVITY_TAP_PARAMS)}}},51391:(e,t,o)=>{o.d(t,{j:()=>n});var i=o(93608);const n={handleLanguageClick:e=>{i.f.sendEvent("click_change_language",e)},handleLanguageChange:e=>{i.f.sendEvent("change_langauage",e)}}},23255:(e,t,o)=>{o.d(t,{t:()=>n});var i=o(93608);const n={handleClickLogo:()=>{i.f.sendEvent("click_logo")},handleClickNav:e=>{i.f.sendEvent("click_navigation_bar",e)},handleClickHamburgerMenu:()=>{i.f.sendEvent("click_hamburger_menu")},handleEntranceShow:e=>{i.f.sendEvent("eh_web_entrance_show",e)},handleClickEntrance:e=>{i.f.sendEvent("click_eh_web_entrance",e)},handleShowFollowingRedDot:()=>{i.f.sendEvent("red_dot_show")},handleRemoveFollowingRedDot:e=>{i.f.sendEvent("red_dot_exit",e)},handleShowNewLabel:()=>{i.f.sendEvent("new_label_show")},handleRemoveNewLabel:e=>{i.f.sendEvent("new_label_exit",e)}}},57456:(e,t,o)=>{e.exports=o.p+"d60c66b9f5dc9647f3a3.png"},1452:(e,t,o)=>{e.exports=o.p+"c287bca871661e22ee8a.png"},93981:(e,t,o)=>{e.exports=o.p+"47624c235266dedd8e4d.png"}}]);