(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[130],{21580:function(t,e,n){"use strict";var i=n(52322),r=n(2784),u=n(13980),a=n.n(u),o=n(73680),c=n.n(o),s=n(56828),M=n.n(s),l=n(49101),j=n(81298),N=n(46811),d=n(22813),g=n(93955),y=n(5103),L=function(t){var e=t.buzz,n=t.className,u=void 0===n?"":n,a=t.isFloatingButtonsEnd,o=t.commentCount,s=(0,r.useState)(!1),L=s[0],T=s[1],p=(0,r.useState)(!1),m=p[0],z=p[1],f=(0,r.useState)(!1),I=f[0],D=f[1],x=(0,r.useState)(!1),b=x[0],h=x[1],O=(0,r.useState)(null),A=O[0],v=O[1],S=(0,r.useRef)(!0),w=(0,y.useTranslation)("common").t,_=(0,r.useContext)(l.Z),E=_.commentsEnabled,C=_.isCommentsPanelOpen,k=_.toggleCommentsPanel,Q=E&&!C&&!e.isShopping,U=(0,r.useCallback)((function(){(0,g.bC)(e,{item_name:"comment-cta",item_type:"button",action_value:"comment-cta",action_type:"navigate",unit_name:e.id,unit_type:"buzz_head",subunit_type:"component",subunit_name:"floating_comments"}),k(!0)}),[e,k]);return(0,r.useEffect)((function(){return!(0,N.Hd)()||(null===e||void 0===e?void 0:e.shouldHideBuzzSharing)||(null===e||void 0===e?void 0:e.isQuiz)||T(!0),S.current=!0,function(){S.current=!1}}),[e]),(0,r.useEffect)((function(){z(I&&!b)}),[I,b]),(0,r.useEffect)((function(){var t=function(){var t=window.pageYOffset||window.scrollY||0;if(D(t>20),null!=A){h(t-A>50)}},e=M()(t,100);return window.addEventListener("scroll",e),t(),function(){window.removeEventListener("scroll",e)}}),[A]),(0,r.useEffect)((function(){if(a&&S.current){var t=window.pageYOffset||window.scrollY||0;v(t)}}),[a]),(0,i.jsxs)("div",{className:"".concat(c().floatingButtonsWrapper," ").concat(u,"\n ").concat(m?c().visible:"","\n ").concat(I?"":c().inactive),children:[Q&&(0,i.jsxs)("button",{className:c().commentButton,onClick:U,"aria-label":w("comments"),children:[(0,i.jsx)(j.hi,{className:c().icon,color:"#5246f5"}),o>4?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{children:o}),(0,i.jsx)("span",{className:c().comments,children:w("comments")})]}):(0,i.jsx)("span",{className:c().comments,children:w("comment")})]}),L&&(0,i.jsx)("div",{className:c().nativeShare,children:(0,i.jsx)(d.Z,{type:"page_level",variant:"icon_only",includeShortTitle:!0,trackingData:{unit_type:"modal",unit_name:null===e||void 0===e?void 0:e.id,subunit_type:"component",subunit_name:"floating_share"}})})]})};L.propTypes={buzz:a().object.isRequired,commentCount:a().number,className:a().string,isFloatingButtonsEnd:a().bool},e.Z=L},83661:function(t,e,n){"use strict";n.d(e,{Z:function(){return rt}});var i={};n.r(i),n.d(i,{getComponent:function(){return F},getMaxSizes:function(){return V},getTemplate:function(){return H},getWireframeOptions:function(){return J},isInline:function(){return W},isWideInline:function(){return G}});var r=n(52322),u=n(2784),a=n(13980),o=n.n(a),c=n(35167),s=n(14007),M=n(6294),l=n(93002),j=n(89809),N=n(93176),d=n(21576),g=n(82984),y=n(50320),L=n(17481),T=n(3873),p=n(95466),m=n(21764),z=n(65104),f=n(76112),I=n(80226),D=n(65211),x=n(71049),b=n(22606),h=n(44399),O=n(54442),A=n(10918),v=n(66892),S=n(28403),w=n(53205),_=n(43517),E=n(23434),C=n(27363),k=n(9895),Q=n(12239);n(10759);N.lT.prototype.getEventId=function(){return"".concat(this.config.adPos,"-").concat(this.instanceId)};var U={AdAffiliatePixel:d.Z,AdAwareness:g.Z,AdBigstory:y.Z,AdBpageStory:L.Z,AdComment:T.Z,AdExBase:p.u,AdEx:p.S,AdExGrid:m.Z,AdGridStory:z.Z,AdInterstitial:f.Z,AdPromoInline:I.Z,AdSubbuzz:D.Z,AdToolbar:x.Z},Y={AdAffiliatePixel:b.Z,AdAwareness:h.Z,AdBigstory:O.Z,AdBpageStory:A.Z,AdComment:v.Z,AdEx:S.Z,AdExGrid:w.Z,AdGridStory:_.Z,AdInterstitial:E.Z,AdPromoInline:C.Z,AdSubbuzz:k.Z,AdToolbar:Q.Z};function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var f=n(70028),I=function(t){var e=t.className,n=void 0===e?"":e;return(0,i.jsx)("svg",{className:n,fill:"none",width:"26",height:"26",viewBox:"0 0 26 26",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M4.46875 8.78977C4.46875 7.07643 5.85769 5.6875 7.57102 5.6875H18.429C20.1423 5.6875 21.5312 7.07643 21.5312 8.78977L21.5312 14.9943C21.5313 16.7076 20.1423 18.0966 18.429 18.0966H16.8778V22.3622L9.89775 18.0966H7.57102C5.85768 18.0966 4.46875 16.7076 4.46875 14.9943C4.46875 12.9261 4.46875 10.8579 4.46875 8.78977Z",stroke:"#222222",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})};function D(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function x(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},u=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var b=function(t){var e=t.className,n=x(t,["className"]);return(0,i.jsx)("svg",function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);ne&&(t=(n=[e,t])[0],e=n[1]);return Math.floor(Math.random()*(e-t+1))+t},E=function(t){var e=t.className,n=void 0===e?"":e,u=t.emoji,a=void 0===u?"\ud83e\udd2f":u,o=t.onTransitionEndComplete,c=t.range,s=void 0===c?[10,15]:c,M=(0,r.useRef)(_.apply(void 0,w(s))),l=(0,r.useRef)(function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.degreeMax,i=void 0===n?45:n,r=e.degreeMin,u=void 0===r?-45:r,a=e.distributionFactor,o=void 0===a?1:a,c=[],s=i-u,M=0;M1&&void 0!==arguments[1]?arguments[1]:1;if(!t)return"0";var n={billion:"B",million:"M",thousand:"K"};return t>=1e9?(t/1e9).toFixed(e).replace(/\.0+$/,"")+n.billion:t>=1e6?(t/1e6).toFixed(e).replace(/\.0+$/,"")+n.million:t>=1e3?(t/1e3).toFixed(e).replace(/\.0+$/,"")+n.thousand:t.toString()},Z="user-entries",B=n(83816),R=n.n(B);function W(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=t.namespace,n=void 0===e?Z:e,i=t.limit,r=void 0===i?100:i;return{getAll:function(){try{return JSON.parse(window.localStorage.getItem(n))||[]}catch(t){return[]}},get:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)throw new Error("An `entry` value is required.");var e=this.getAll();return e.find((function(e){return e.startsWith(t)}))||""},set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!t)throw new Error("An `entry` value is required.");var e=this.getAll();e.includes(t)?e.splice(e.indexOf(t),1):e.unshift(t),r&&e.length>r&&(e=e.slice(0,r)),window.localStorage.setItem(n,JSON.stringify(e))}}}({namespace:"localUserEmojis"}),J=function(t){var e=t.name,n=t.localEmojiName,u=t.count,a=void 0===u?0:u,o=t.onClick,c=void 0===o?function(){}:o,s=t.isClicked,M=void 0!==s&&s,l=(0,r.useState)(!1),j=l[0],N=l[1];return(0,i.jsxs)("li",{className:"".concat(R().reactionsItem," ").concat(!M&&R().reactionsItemActive),children:[(0,i.jsx)("button",{className:R().reactionBtn,disabled:M,onClick:function(){V.set(n),c(e),N(!0)},children:e}),0!==a&&(0,i.jsx)("span",{className:R().count,children:P(a)}),j&&(0,i.jsx)(C,{className:R().confetti,emoji:e,onTransitionEndComplete:function(){return N(!1)}})]},e)};J.propTypes={count:c().number.isRequired,onClick:c().func.isRequired,name:c().string.isRequired,localEmojiName:c().string.isRequired};var q=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.className,n=void 0===e?"":e,u=t.contentId,a=t.contentType,o=void 0===a?"content-object":a,c=t.isSponsored,s=t.showTitle,M=void 0!==s&&s,l=(0,j.useTranslation)("common").t,N=(0,r.useState)(null),d=N[0],g=N[1],y=(0,r.useState)(null),L=y[0],T=y[1],p=(0,r.useState)(null),m=p[0],z=p[1],f=F(O.T).concat(F(O.n));(0,r.useEffect)((function(){var t=V.get("".concat(o,":").concat(u));if(t){var e=t.split(":").pop();(!c&&f.includes(e)||c&&O.T.includes(e))&&g(e)}}),[u,o]);var I=function(t){L||T(t.name),t.increment();var e=m.map((function(e){return e.name===t.name?e.count++:e.name===d&&e.count--,e}));z(e),g(t.name)},D=(0,r.useContext)(k.Z),x=D.buzz,b=void 0===x?{}:x,h=(0,Q.z)((0,Y.h)(b),!0),A=h.reactions,v=h.serverError;if(!A.length)return null;L&&L!=d&&A.forEach((function(t){t.name==L&&(t.count--,T(d))}));var S=[];A.forEach((function(t){t.displayPriority=O.n.includes(t.name)?1/(O.n.indexOf(t.name)+O.T.length+1):1/(O.T.indexOf(t.name)+1),c&&O.n.includes(t.name)||S.push(t)}));var w=S.sort((function(t,e){return e.count+e.displayPriority-(t.count+t.displayPriority)}));return(null===m||void 0===m?void 0:m.length)||z(w),(0,i.jsxs)("div",{className:"".concat(n," ").concat(R().reactions),children:[M&&(0,i.jsx)(U.Z,{id:"reactions-title",children:l("what_do_you_think")}),v&&(0,i.jsx)("p",{className:R().error,children:l("server_error")}),(0,i.jsx)("ul",{"aria-label":"Emoji Reactions","aria-controls":"dialog",className:"".concat(R().reactionsList," ").concat(A.some((function(t){return t.count>0}))&&R().hasReactions),children:m&&m.map((function(t){return(0,i.jsx)(J,H({isClicked:d==t.name,localEmojiName:"".concat(o,":").concat(u,":").concat(t.name),onClick:function(){I(t)}},t),t.name)}))})]})};q.propTypes={className:c().string,contentId:c().string,contentType:c().string};var K=q,X=n(28316),$=n(99404),tt=n(35167);function et(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nt(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:document.head;(0,u.s)()?Promise.reject("Cannot load Connatix player on server"):new Promise((function(e,n){window.cnx&&e(window.cnx),window.cnx={},window.cnx.cmd=[];var i="//cd.connatix.com/connatix.player.js?cid=".concat(a),r=document.createElement("script");r.onload=function(){return e(window.cnx)},r.onerror=function(){n("Script at url ".concat(i," failed to load"))},r.src=i,r.async=!0,r.type="text/javascript",t.appendChild(r)}))}()}),[]),(0,r.useEffect)((function(){V&&(0,c.HU)({gdpr:V}).then((function(t){_(t)}))}),[V]),(0,r.useEffect)((function(){if(F&&W&&!C.current&&w){if(C.current=!0,!x){var t="https://capi.connatix.com/tr/si?token=".concat(n,"&cid=").concat(s.k),e=new Image;e.src=t,b(e)}y.jQ.hasConsented("connatix").then((function(t){window.cnx.cmd.push((function(){var e={playerId:n,customParam1:w,settings:{disableAdvertising:!t,rendering:{insertPosition:window.cnx.configEnums.InsertPositionEnum.WithinContainer}}};["uk","gb","ie"].includes(W)&&(e.playlistId=d),window.cnx(e).render(K,(function(t,e){t?console.error("Player rendering failed:",t):v(e)}))}))}))}}),[F,W,n,K,x,w]);var X=A&&window.innerWidth<=1025&&(0,j.$0)(z)&&!k||!1;return function(t,e,n){var i=(0,r.useRef)(!1);(0,r.useEffect)((function(){if(!n)return null===t||void 0===t||t.disableFloatingMode(),void(i.current=!1);if(n&&e.current&&"function"===typeof t.enableFloatingMode&&"function"===typeof t.disableFloatingMode&&"undefined"!==typeof IntersectionObserver){var r=e.current;r&&(r.style.minHeight="100px");var u=new IntersectionObserver((function(e){e.forEach((function(e){var n=e.boundingClientRect,r=window.innerHeight||document.documentElement.clientHeight;!e.isIntersecting&&n.top<0&&!i.current?(t.enableFloatingMode(),i.current=!0):e.isIntersecting&&n.bottom<=r&&i.current&&(t.disableFloatingMode(),i.current=!1)}))}),{threshold:[0,.1],rootMargin:"0px"});return r&&u.observe(r),function(){r&&u.unobserve(r)}}}),[n,t,e])}(A,E,X),F&&W?(0,i.jsx)("div",{className:"bf-cnx-override ".concat(I?g().bfElementsWrapperQuiz:g().bfElementsWrapper),children:(0,i.jsx)("div",{id:K,ref:E,className:"bf-cnx-player ".concat(X?"":g().floatingDisabled)})}):""}},52592:function(t,e,n){"use strict";var i=n(52322),r=n(2784),u=n(88163),a=n(81550),o=n(93955),c=n(42719),s=n(36001),M=n(57673),l=n(24678);e.Z=(0,a.Z)((function(t){var e=t.buzz,n=(0,r.useRef)(),a=(0,u.Z)({once:!0,threshold:1}),l=a.isIntersecting,j=a.setObservable,N=(0,r.useContext)(s.Z).observeArticleBottom;return(0,r.useEffect)((function(){if(n.current&&l){var t=n.current.getBoundingClientRect().top;(0,o.Y3)(e,{pixel_depth:parseInt((0,M.l)()+t,10),marker:"content_bottom"})}}),[e,l]),(0,r.useEffect)((function(){N(n.current)}),[N]),(0,i.jsx)("div",{ref:(0,c.Z)(n,j),style:{width:"100%",height:"1px",clear:"both"}})}),{onError:l.Tb})},63871:function(t,e,n){"use strict";n.d(e,{n:function(){return M}});var i=n(52322),r=n(99550),u=n.n(r),a=n(99112),o=n(30353),c=n(24678);function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var M=function(t){var e=t.destination,n=t.children;c.YA("destination",e);var r=function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.useMemo)((function(){return{externalLink:function(n){(0,M.nz)(t,j({},e,n))},contentAction:function(n){(0,M.bC)(t,j({},e,n))}}}),[t,e])}(e,m),f=[s.MODERATED_COMMUNITY,s.UNMODERATED_COMMUNITY].includes(e.editorial_status);return e.isEnglish&&(e.isQuiz||f)?(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:a().footerCommunityBanner,children:[(0,i.jsxs)("div",{className:a().flexContainer,children:[(0,i.jsxs)("div",{className:a().flexContainerTitle,children:[(0,i.jsx)("p",{children:"Want to get your very own quizzes and posts featured on BuzzFeed\u2019s homepage and app?"}),(0,i.jsx)("p",{children:"Become a Community Contributor."})]}),(0,i.jsx)("div",{className:a().flexContainerImgWrapper,children:(0,i.jsx)("img",{className:a().flexContainerImg,src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/IjitWbeQi.png",alt:"promo"})})]}),(0,i.jsxs)("div",{className:a().buttonsContainer,children:[!u&&(0,i.jsx)("a",{className:a().loginBtn,role:"button",onClick:function(){return L(!0)},children:(0,i.jsx)("p",{children:"Sign up to get started"})}),(0,i.jsx)("a",{className:u?a().learnMoreBtn:a().promoLink,target:"_blank",href:"https://www.buzzfeed.com/community/about",rel:"noreferrer",ref:p,children:"Learn more about Community"})]})]}),(0,i.jsx)(o.f,{isOpen:y,onClose:function(){return L(!1)},track:z})]}):null}},14060:function(t,e,n){"use strict";n.d(e,{Z:function(){return O}});var i=n(52322),r=n(2784),u=n(13980),a=n.n(u),o=n(39252),c=n(64435),s=n(41332),M=n(36491),l=n(30729),j=n(76139),N=n.n(j),d=function(t){var e=t.dateline,n="https://img.buzzfeed.com/buzzfeed-static".concat(e.dateline_image);return(0,i.jsxs)("div",{className:N().dateline,children:[(0,i.jsx)(o.lS,{src:(0,l.Z)(n),className:N().dateline_map,alt:"Map of ".concat(e.name)}),(0,i.jsxs)("div",{className:"xs-flex-grow-1",children:[(0,i.jsx)("p",{className:N().datelineTitle,children:"Reporting From"}),(0,i.jsx)("strong",{className:N().datelineName,children:e.name})]})]})};d.propTypes={dateline:a().shape({name:a().string.isRequired,dateline_image:a().string.isRequired})};var g=d,y=n(50381),L=n.n(y),T=n(3695),p=n(27374),m=function(t){var e=t.className,n=t.title,r=void 0===n?"BuzzFeed":n;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:e,children:[(0,i.jsx)("title",{children:r}),(0,i.jsx)("path",{d:"M7.8125 15.625C12.1272 15.625 15.625 12.1272 15.625 7.8125C15.625 3.49778 12.1272 0 7.8125 0C3.49778 0 0 3.49778 0 7.8125C0 12.1272 3.49778 15.625 7.8125 15.625Z",fill:"#EE3322"}),(0,i.jsx)("path",{d:"M11.9931 7.18563L11.4857 3.67163L8.11553 4.9994L9.45134 5.7525L8.1895 7.88679L6.00389 6.65452L3.85059 10.2968L5.05667 10.9768L6.51362 8.51237L8.69923 9.74464L10.6574 6.43253L11.9931 7.18563Z",fill:"white"})]})},z=function(t){var e=t.className,n=t.title,r=void 0===n?"Community":n;return(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",className:e,children:[(0,i.jsx)("title",{children:r}),(0,i.jsx)("circle",{cx:"6",cy:"6",r:"6",fill:"#5246F5"}),(0,i.jsx)("path",{d:"M6.0002 1.19995L7.17389 4.38451L10.5653 4.51667L7.89927 6.617L8.82156 9.88323L6.0002 7.99675L3.17883 9.88323L4.10113 6.617L1.43512 4.51667L4.82651 4.38451L6.0002 1.19995Z",fill:"white"})]})},f=(0,M.Z)((function(){return n.e(33).then(n.bind(n,67740))}),{ssr:!1});function I(t){var e=t.byline,n=t.advertiserClass,u=t.index,a=t.isSingle,M=void 0!==a&&a,j=t.isModeratedCommunity,N=void 0!==j&&j,d=t.designUpdateEnabled,g=void 0!==d&&d,y=((0,r.useContext)(s.Z)||{}).buzz,p=void 0===y?{}:y,I="1"===(null===e||void 0===e?void 0:e.description_id),D="Community Creator"===(null===e||void 0===e?void 0:e.title),x=(0,T.G)(p)?"/author/".concat(null===e||void 0===e?void 0:e.username):"/".concat(null===e||void 0===e?void 0:e.username),b=(0,r.useMemo)((function(){return{eventCategory:"Header",eventAction:"link",eventLabel:x,unit_type:"buzz_head",unit_name:p.id,item_name:"byline",item_type:"profile",position_in_unit:u,target_content_type:"user",target_content_id:null===e||void 0===e?void 0:e.id}}),[p,null===e||void 0===e?void 0:e.id,x,u]),h=(0,c.R)(b),O=(0,r.useMemo)((function(){return(null===e||void 0===e?void 0:e.bio)||"2"===(null===e||void 0===e?void 0:e.description_id)?function(t){if(!t||"string"!==typeof t)return"";var e=t.match(/.+?[.!?]+(?=\s|$)/g)||[];return e.length?e[0].trim():t}(null===e||void 0===e?void 0:e.bio):""}),[null===e||void 0===e?void 0:e.description_id,null===e||void 0===e?void 0:e.bio]);return e?(0,i.jsxs)("div",{className:"".concat((0,T.G)(p)?L().newsByline:""," ").concat((0,T.G)(p)&&M?L().singleByline:""," ").concat(g?L().postHeadByline:""),children:[(0,i.jsx)("a",{ref:h,href:x,className:L().headlineByline,children:(0,i.jsxs)("div",{className:L().bylineContainer,children:[(0,i.jsx)(o.lS,{src:(0,l.Z)(e.avatar),className:"".concat(L().avatar," ").concat(n," embed-byline-avatar"),alt:e.display_name}),(0,i.jsxs)("div",{className:"".concat(L().bylineText," embed-byline-text"),children:[(0,i.jsx)("span",{className:"".concat(L().text," ").concat(n),children:"by "}),(0,i.jsx)("span",{className:"metadata-link ".concat(L().bylineName),dangerouslySetInnerHTML:{__html:e.display_name}}),g&&(0,i.jsxs)("span",{className:"".concat(L().text," ").concat(L().positionWithLogo),children:[D?(0,i.jsx)(z,{className:L().icon}):(0,i.jsx)(m,{className:L().icon}),e.title]}),!g&&(0,i.jsx)("p",{className:L().position,children:e.title}),g&&!!(null===O||void 0===O?void 0:O.length)&&(0,i.jsx)("p",{className:L().bio,children:O}),g&&N&&(0,i.jsx)("div",{className:L().communityDescription,children:(0,i.jsx)("p",{children:"Post approved and edited by BuzzFeed Community Team"})})]})]})}),I&&!g&&(0,i.jsx)("div",{className:L().internetPointsContainer,children:(0,i.jsx)("div",{className:L().internetPointsContainerInner,children:(0,i.jsx)(f,{className:L().desktopShow,userId:e.id})})})]}):null}function D(t){var e=t.byline,n=t.advertiserClass,u=t.isLastByline,a=t.index,M=t.designUpdateEnabled,j=void 0!==M&&M,N=((0,r.useContext)(s.Z)||{}).buzz,d=void 0===N?{}:N,g="Community Creator"===e.title,y=(0,r.useMemo)((function(){return{eventCategory:"Header",eventAction:"link",eventLabel:"/".concat(e.username),unit_type:"buzz_head",unit_name:d.id,item_name:"byline",item_type:"profile",position_in_unit:a,target_content_type:"user",target_content_id:e.id}}),[d,e.id,e.username,a]),T=(0,c.R)(y);return(0,i.jsxs)("a",{ref:T,href:"/".concat(e.username),className:"".concat(L().headlineByline," ").concat(L().twoAuthors," ").concat(j?L().postHeadByline:""),children:[(0,i.jsxs)("div",{className:L().bylineContainer,children:[(0,i.jsx)(o.lS,{src:(0,l.Z)(e.avatar),className:"".concat(L().avatar," ").concat(L().desktopShow," ").concat(n),alt:e.display_name}),(0,i.jsxs)("div",{className:L().bylineText,children:[(0,i.jsxs)("span",{className:"".concat(L().desktopShow," ").concat(L().text," ").concat(n),children:["by"," "]}),(0,i.jsx)("span",{className:"metadata-link ".concat(L().bylineName),dangerouslySetInnerHTML:{__html:e.display_name}}),j?(0,i.jsxs)("p",{className:"".concat(L().desktopShow," ").concat(L().text," ").concat(L().positionWithLogo),children:[g?(0,i.jsx)(z,{className:L().icon}):(0,i.jsx)(m,{className:L().icon}),e.title]}):(0,i.jsx)("p",{className:L().desktopShow,children:e.title})]})]}),!u&&(0,i.jsx)("span",{className:L().desktopHide,children:", "})]})}function x(){var t=((0,r.useContext)(s.Z)||{}).buzz,e=void 0===t?{}:t,n=(0,r.useMemo)((function(){return{eventCategory:"Header",eventAction:"link",eventLabel:"/community/about",unit_type:"buzz_head",unit_name:e.id,item_name:"byline",item_type:"profile",position_in_unit:1,target_content_type:"feed",target_content_id:"community_about"}}),[e.id]),u=(0,c.R)(n);return(0,i.jsx)("a",{ref:u,href:"/community/about",className:"".concat(L().headlineByline," ").concat(L().communityTeamByline),children:(0,i.jsxs)("div",{className:L().bylineContainer,children:[(0,i.jsx)(o.lS,{src:(0,l.Z)("https://img.buzzfeed.com/store-an-image-prod-us-east-1/p9aVli648.png"),className:"".concat(L().avatar," ").concat(L().desktopShow),alt:"BuzzFeed Community Team"}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("span",{className:"".concat(L().text," ").concat(L().communityTeamBy),children:["Approved and edited by"," "]}),(0,i.jsx)("span",{className:"metadata-link ".concat(L().bylineName),children:"BuzzFeed Community Team"})]})]})})}function b(t){var e=t.byline,n=t.className,u=void 0===n?"":n,a=t.isLastByline,o=t.index,M=((0,r.useContext)(s.Z)||{}).buzz,l=void 0===M?{}:M,j=(0,r.useMemo)((function(){return{eventCategory:"Header",eventAction:"link",eventLabel:"/".concat(e.username),unit_type:"buzz_head",unit_name:l.id,item_name:"byline",item_type:"profile",position_in_unit:o,target_content_type:"user",target_content_id:e.id}}),[l,e.id,e.username,o]),N=(0,c.R)(j);return(0,i.jsxs)("span",{className:"".concat(L().textByline," ").concat(u),children:[(0,i.jsx)("a",{className:L().headlineByline,ref:N,href:"/".concat(e.username),children:(0,i.jsx)("span",{className:"metadata-link ".concat(L().bylineName),dangerouslySetInnerHTML:{__html:e.display_name}})}),!a&&", "]})}function h(t){var e=t.bylines,n=void 0===e?[]:e,r=t.isAd,u=void 0!==r&&r,a=t.buzz,o=void 0===a?{}:a,c=t.designUpdateEnabled,s=void 0!==c&&c,M=u?L().isAdvertiser:"",l=o.isCommunity&&o.isModerated,j=o.datelines;if((0,p._)(o)){if("discuss"===(null===o||void 0===o?void 0:o.username))return null;var N=n[0];return(0,i.jsx)(b,{byline:N,className:L().discussionByline,isLastByline:!0,index:0},N.id)}return(0,T.G)(o)?(0,i.jsxs)("div",{className:"".concat(L().newsHeadlineByline," ").concat(1!==n.length||j.length?"":[L().singleHeadlineByline]," embed-byline"),children:[(0,i.jsx)("span",{className:L().text,children:"By "}),n.map((function(t,e){return(0,i.jsxs)("span",{className:L().bylineWrap,children:[(0,i.jsx)(I,{byline:t,advertiserClass:M,index:e,isSingle:1===n.length&&!j.length},t.id),e!==n.length-1&&(0,i.jsx)("span",{className:L().text,children:" and "})]},t.id)})),!!j.length&&j.map((function(t){return(0,i.jsx)(g,{dateline:t},t.name)}))]}):n.length>2?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"".concat(L().text," ").concat(s?L().postHeadText:""),children:"by "}),n.map((function(t,e){var r=n.length===e+1;return(0,i.jsx)(b,{byline:t,isLastByline:r,index:e,className:s?L().textPostHead:""},t.id)}))]}):2===n.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:"".concat(L().desktopHide," ").concat(L().text," ").concat(M),children:["by"," "]}),n.map((function(t,e){var n=1===e;return(0,i.jsx)(D,{byline:t,advertiserClass:M,isLastByline:n,index:e,designUpdateEnabled:s},t.id)}))]}):n.map((function(t,e){return(0,i.jsxs)("div",{className:L().adaptiveBylineContainer,children:[(0,i.jsx)(I,{byline:t,advertiserClass:M,index:e,isModeratedCommunity:l,designUpdateEnabled:s},t.id),l&&!s&&(0,i.jsx)(x,{})]},t.id)}))}h.propTypes={bylines:a().arrayOf(a().object).isRequired,isAd:a().bool.isRequired};var O=h},15185:function(t,e,n){"use strict";var i=n(52322),r=(n(2784),n(13980)),u=n.n(r),a=n(84225),o=n(5103),c=n(38362),s=n.n(c);function M(t){return new Date(1e3*t).toISOString()}function l(t){var e=t.className,n=t.timestampPublishedUnix,r=t.timestampUpdatedUnix,u=t.showUpdatedTimestampOnly,o=t.countryCode,c=t.t,l=t.destination;if(!n||!o)return null;var j,N,d,g,y="buzzfeed_news"===l,L=M(n),T=M(r);return y?(u||(j=(0,a.i$)(n,o,{month:"long",hour:"numeric",minute:"numeric"})).hasTimestampString||(j.formattedTimestamp=j.formattedTimestamp.replace(" AM"," am").replace(" PM"," pm")),(r||u)&&((N=(0,a.i$)(r||n,o,{month:"long",hour:"numeric",minute:"numeric"})).hasTimestampString||(N.formattedTimestamp=N.formattedTimestamp.replace(" AM"," am").replace(" PM"," pm")))):r>n?N=(0,a.i$)(r,o):j=(0,a.i$)(n,o),j&&(d=j.hasTimestampString?c("posted"):c("posted_on")),N&&(g=N.hasTimestampString?c("updated"):c("updated_on")),(0,i.jsxs)("span",{className:"".concat(y?s().timestampNews:s().timestamp," ").concat(e||""," embed-timestamp"),children:[!y&&N&&(0,i.jsxs)("time",{dateTime:T,children:[g," ",N.formattedTimestamp]}),!y&&j&&(0,i.jsxs)("time",{dateTime:L,children:[d," ",j.formattedTimestamp]}),y&&(0,i.jsx)("span",{className:"".concat(s().timestampNews," embed-timestamp"),children:(0,i.jsxs)("time",{dateTime:N?T:L,children:[N&&(0,i.jsxs)("span",{className:s().timeDisplay,children:[g," ",N.formattedTimestamp]}),j&&(0,i.jsxs)("span",{className:s().timeDisplay,children:[d," ",j.formattedTimestamp]})]})})]})}l.defaultProps={className:"",timestampPublishedUnix:0,timestampUpdatedUnix:0,showUpdatedTimestampOnly:!1,countryCode:"en-us",destination:"buzzfeed"},l.propTypes={className:u().string,timestampPublishedUnix:u().number.isRequired,timestampUpdatedUnix:u().number.isRequired,showUpdatedTimestampOnly:u().bool,countryCode:u().string.isRequired,destination:u().string},e.Z=(0,o.withTranslation)("common")(l)},9700:function(t,e,n){"use strict";n.d(e,{Z:function(){return Ze}});var i=n(52322),r=n(2784),u=n(13980),a=n.n(u),o=n(17320),c=n(81298),s=n(67654),M=n.n(s),l=n(64435),j=n(41332),N=n(3207),d=n(3695),g={comma:(0,i.jsxs)("span",{className:M().comma,"aria-hidden":"true",children:[","," "]}),caret:(0,i.jsx)(c.QU,{className:"caret-separator ".concat(M().caret),"aria-hidden":"true"}),midot:(0,i.jsx)("span",{className:"bold ".concat(M().midot),children:"\xb7"})};function y(t){var e=t.buzz,n=t.text,u=t.url,a=t.index,o=(0,r.useMemo)((function(){return{eventCategory:"Header",eventAction:"link",eventLabel:u,unit_type:"buzz_head",unit_name:e.id,item_name:(0,d.G)(e)?n:(0,N.z)(u),item_type:"text",position_in_unit:(0,d.G)(e)?null:a,position_in_subunit:(0,d.G)(e)?a:null,subunit_name:(0,d.G)(e)?"breadcrumbs":"",subunit_type:(0,d.G)(e)?"component":"",target_content_type:"feed",target_content_id:(0,N.z)(u)}}),[e.id,a,u]),c=(0,l.R)(o);return(0,i.jsx)("a",{ref:c,className:"metadata-link",href:u,children:n})}function L(t){var e=t.breadcrumbs,n=t.hasSecondaryBreadcrumbs,u=void 0!==n&&n,a=((0,r.useContext)(j.Z)||{}).buzz,o=void 0===a?{}:a,c=function(t){var e;switch(!0){case t.isNews:e="default";break;case t.isQuiz:e="midot";break;default:e="caret"}return g[e]}(o);return(0,i.jsx)(i.Fragment,{children:e.map((function(t,n){var r=e.length===n+1,a=o.isNews?M().breadcrumbNewsItem:M().breadcrumbItem;return(0,i.jsxs)("li",{className:a,children:[(0,i.jsx)(y,{buzz:o,text:t.text,url:t.url,index:n}),(!r||u)&&c]},"".concat(t,"--").concat(n))}))})}function T(t){var e=t.breadcrumbs,n=t.secondaryBreadcrumbs,r=void 0===n?[]:n,u=Boolean(r.length);return(0,i.jsxs)("ol",{children:[(0,i.jsx)(L,{breadcrumbs:e,hasSecondaryBreadcrumbs:u}),u&&(0,i.jsx)(L,{breadcrumbs:r})]})}T.propTypes={breadcrumbs:a().array.isRequired,secondaryBreadcrumbs:a().array};var p=n(15185),m=n(14060),z=n(5103),f=n(81677),I=n.n(f);var D=(0,z.withTranslation)("common")((function(t){var e=t.t,n=(0,r.useContext)(j.Z).buzz,u=void 0===n?{}:n,a=(0,r.useMemo)((function(){return{unit_type:"buzz_head",unit_name:u.id,item_name:"return_to_article",item_type:"text",target_content_type:"buzz",target_content_id:u.id}}),[u]),o=(0,l.R)(a);return(0,i.jsxs)("div",{className:I().headlineComments,children:[(0,i.jsxs)("a",{ref:o,href:u.canonical_url,className:"blue-link ".concat(I().returnLink),children:[(0,i.jsx)(c.BN,{className:I().returnIcon}),(0,i.jsx)("span",{children:e("return_to_article")})]}),(0,i.jsx)("div",{className:I().commentOn,children:e("comments_on")})]})}));var x=n(30353);function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n=5e4&&(0,i.jsxs)("div",{className:"".concat(k().trendingTitle," ").concat(k().trendingViewCount),children:[(0,S.x)(c)," ",a("views")]})]})]})}Y.propTypes={buzzId:a().string.isRequired,designUpdateEnabled:a().bool};var P=(0,z.withTranslation)("common")(Y),Z=n(39252),B=n(14257),R=n.n(B),W=n(89732),G=n.n(W),H=n(23679),F=n.n(H),V=n(71962),J=n.n(V),q=n(74756),K=n.n(q),X=n(58724),$=n.n(X),tt=n(24958),et=n.n(tt),nt=n(39751),it=n.n(nt),rt=n(84818),ut=n.n(rt),at=n(62660),ot=n.n(at),ct=n(63847),st=n.n(ct),Mt=n(99139),lt=n.n(Mt),jt=n(33175),Nt=n.n(jt),dt=n(37943),gt=n.n(dt),yt=n(55805),Lt=n.n(yt),Tt=n(24560),pt=n.n(Tt),mt=n(19519),zt=n.n(mt),ft=n(84006),It=n.n(ft),Dt=n(14446),xt=n.n(Dt),bt=n(63453),ht=n.n(bt),Ot=n(628),At=n.n(Ot),vt=n(12803),St=n.n(vt),wt=n(51326),_t=n.n(wt),Et=n(89089),Ct=n.n(Et),kt=n(49432),Qt=n.n(kt),Ut=n(2915),Yt=n.n(Ut),Pt=n(54116),Zt=n.n(Pt),Bt=n(33455),Rt=n.n(Bt),Wt=n(64742),Gt=n.n(Wt),Ht=n(40073),Ft=n.n(Ht),Vt=n(61623),Jt=n.n(Vt),qt=n(59922),Kt=n.n(qt),Xt=n(40583),$t=n.n(Xt),te=n(98217),ee=n.n(te),ne=n(8150),ie=n.n(ne),re=n(7870),ue=n.n(re),ae=n(15700),oe=n.n(ae),ce=n(64651),se=n.n(ce),Me=n(51716),le=n.n(Me),je=n(12371),Ne=n.n(je),de=n(60937),ge=n.n(de),ye=n(48061),Le=n.n(ye),Te=n(42340),pe=n.n(Te),me=n(87351),ze=n.n(me),fe=n(71529),Ie=n.n(fe),De=n(47756),xe=n.n(De),be={de:{cute:R(),fail:G(),lol:F(),omg:J(),win:K(),wtf:$()},en:{cute:et(),fail:it(),lol:ut(),omg:ot(),win:st(),wtf:lt()},es:{cute:Nt(),fail:gt(),lol:Lt(),omg:pt(),win:zt(),wtf:It()},"es-es":{cute:xt(),fail:ht(),lol:At(),omg:St(),win:_t(),wtf:Ct()},fr:{cute:Qt(),fail:Yt(),lol:Zt(),omg:Rt(),win:Gt(),wtf:Ft()},general:{fail:Kt(),quiz:Jt(),trending:$t(),viral:ee()},ja:{cute:ie(),fail:ue(),lol:oe(),omg:se(),win:le(),wtf:Ne()},pt:{cute:ge(),fail:Le(),lol:pe(),omg:ze(),win:Ie(),wtf:xe()}};function he(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Oe={Triggered:{priority:1},Editorial:{priority:2},Reaction:{priority:3},Others:{priority:4}},Ae=["cute","omg","win","fail","wtf","lol","trending","viral","quiz"],ve=["cute","omg","win","fail","wtf","lol"];function Se(t){var e=t.index,n=t.badge,u=t.buzzId,a=(0,r.useMemo)((function(){return{eventCategory:"Buzz:content",eventAction:n.badge_type,eventLabel:null,unit_type:"buzz_head",unit_name:u,item_name:n.link_to,item_type:"badge",position_in_unit:e,target_content_type:"feed",target_content_id:n.link_to}}),[n.badge_type,u,e]),o=(0,l.R)(a);return(0,i.jsx)("a",{ref:o,className:k().badge,href:"/badge/".concat(n.link_to),children:n.has_svg&&n.badge_language?(0,i.jsx)("img",{src:be[n.badge_language][n.badge_type],alt:"".concat(n.name," badge")}):(0,i.jsx)(Z.lS,{src:"".concat(x.image_service_url).concat(n.path),alt:"".concat(n.name," badge")})},e)}function we(t){var e=t.badges,n=t.countryCode,r=t.flags,u=t.buzzId,a=t.designUpdateEnabled;if(!e)return null;var o=e.find((function(t){return"trending"===t.badge_type})),c=e.filter((function(t){return!A.includes(t.badge_type)&&!function(t,e){var n=0===e.sensitive,i=0===e.sensitive&&0===e.nsfw&&1===e.brand_safe,r=["Editorial","Reaction"].includes(t.category),u=["Custom","Thematic"].includes(t.category),a=!t.path;return!n&&r||!i&&u||a}(t,r)&&(!o||o&&"viral"!==t.badge_type)})).map((function(t){var e=t.badge_type;return t.badge_language=ve.includes(e)?function(t){if("es-es"===t)return t;var e=h((t||"").split("-"),1)[0];return O.includes(e)?e:"en"}(n):"general",t.has_svg=Ae.includes(e),t.link_to=t.link_to||e,t.category in Oe||(t.category="Others"),function(t){for(var e=1;ee.priority?1:t.prioritye.price?1:t.price0&&void 0!==arguments[0]?arguments[0]:"";if(!(null===t||void 0===t?void 0:t.length))return"";var e=new window.DOMParser,n=e.parseFromString(t,"text/html"),i=0;function r(t){t.nodeType===Node.TEXT_NODE?t.textContent=t.textContent.replace(/"/g,(function(){return++i%2===1?"\u201c":"\u201d"})):t.nodeType===Node.ELEMENT_NODE&&t.childNodes.forEach(r)}return r(n.body),n.body.innerHTML},M=(0,r.useContext)(w.Z).destination,l=u.isCommentsPage,j=Number(u.published),N="edit_updated"in u?Number(u.edit_updated):0,g=u.tags.includes("--updated-timestamp-only"),y=1===u.flags.ad,L=u.country_code,z=(0,o.Z)(u,a),f=z.primary,I=z.secondary,x=u.bylines.some((function(t){return"6"===t.description_id}))&&"Japan"!==u.classification.edition,b=u.longform_custom_header&&!(0,d.G)(u)?u.longform_custom_header:u,h=b.title,O=b.description,A=n?s(h):h,v=n?s(O):O,S=!(0,d.G)(u)||(0,d.G)(u)&&(f.length||I.length)>0,_=u.longform_custom_header&&u.longform_custom_header.style&&u.longform_custom_header.style.text_over;if(u.hasQuizSharedResult){var E=a[0];return E.has_svg=!0,E.badge_language="general",(0,i.jsxs)("div",{className:Ce().sharedResultHeadlineWrapper,children:[(0,i.jsxs)("div",{className:Ce().sharedResultBadge,children:[(0,i.jsx)(Se,{index:0,badge:E,buzzId:u.buzzId}),(0,i.jsx)("p",{children:"Result from"})]}),(0,i.jsx)("h1",{className:Ce().sharedResultTitle,children:(0,i.jsx)("a",{href:u.canonical_url,children:u.title})})]})}var C=(0,i.jsxs)("div",{className:"".concat(Ce().container," embed-breadcrumbs"),children:[y?(0,i.jsx)("span",{className:Ce().paidPostBreadcrumb,children:c("paid_post")}):(0,i.jsxs)("nav",{"aria-label":"Breadcrumb",className:(0,d.G)(u)?Ce().breadcrumbContainerNews:Ce().breadcrumbContainer,children:[(0,i.jsx)(T,{breadcrumbs:f,secondaryBreadcrumbs:I}),"buzzfeed"===M&&!n&&0!==f.length&&j>0&&(0,i.jsx)("span",{className:"bold ".concat(Ce().middot),children:"\xb7"})]}),"buzzfeed"===M&&!n&&(0,i.jsx)(p.Z,{timestampPublishedUnix:j,timestampUpdatedUnix:N,countryCode:L,destination:M})]}),k={adDisclaimer:!l&&x,badges:!l&&!u.isAd&&"buzzfeed"===M,breadcrumbAboveTitle:!l&&S&&!n,breadcrumbBelowTitle:l&&S&&!n,byline:!l&&!n,commerceDisclaimer:!l,communityDisclaimer:!l&&!u.isModerated,timestamp:!l&&"buzzfeed_news"===M};return(0,i.jsxs)("div",{className:"".concat(Ce().headline," ").concat(Ce()[u.bfpTheme]||""," ").concat(Ce()[M]," ").concat(n?Ce().postHead:""," embed-buzz-header"),children:[n&&C,k.badges&&(0,i.jsx)("div",{className:"".concat(Ce().container," ").concat(n?Ce().postHeadBadges:""),children:(0,i.jsx)(_e,{badges:a,buzzId:u.id,countryCode:L,designUpdateEnabled:n,flags:u.flags})}),l&&!n&&(0,i.jsx)(D,{}),k.commerceDisclaimer&&!n&&(0,i.jsx)(Ye,{buzz:u}),k.communityDisclaimer&&(0,i.jsxs)("div",{className:"".concat(Ce().disclaimer," ").concat(Ce().container),children:[c("community_disclaimer"),(0,i.jsxs)("a",{className:"blue-link",href:"http://community.buzzfeed.com/",children:[" ",c("community_try")]})]}),k.adDisclaimer&&(0,i.jsx)("div",{className:"".concat(Ce().disclaimer," ").concat(Ce().container),children:c("ad_disclaimer")}),k.breadcrumbAboveTitle&&C,(0,i.jsxs)("div",{className:"".concat(Ce().container," ").concat(_?Ce().hideTitle:""," ").concat(n?Ce().postHeadTitleContainer:""," embed-headline"),children:[(0,i.jsx)("h1",{className:"".concat(Ce().title," embed-headline-title"),dangerouslySetInnerHTML:{__html:A}}),(0,i.jsx)("p",{className:"".concat(Ce().description," embed-headline-description"),dangerouslySetInnerHTML:{__html:v}})]}),k.breadcrumbBelowTitle&&C,k.byline&&(0,i.jsx)(m.Z,{bylines:u.bylines,isAd:y,buzz:u}),k.timestamp&&(0,i.jsx)(p.Z,{timestampPublishedUnix:j,timestampUpdatedUnix:N,showUpdatedTimestampOnly:g,countryCode:L,destination:M})]})}Pe.propTypes={buzz:a().object.isRequired,badges:a().array};var Ze=(0,ke.Z)((0,z.withTranslation)("common")(Pe),{onError:Qe.Tb})},54761:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var i=n(52322),r=n(2784),u=n(88163),a=n(41332);function o(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},u=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function c(t){var e=t.children,n=t.lazy,c=void 0===n||n,s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.preloadDistance,n=void 0===e?2:e,i=t.rootMargin,o=(0,r.useContext)(a.Z).id;if(void 0===i){var c="undefined"!==typeof document?document.documentElement.clientHeight:0;i="".concat(c*n,"px 0px")}var s=(0,u.Z)({rootMargin:i,once:!0,pageId:o}),M=s.isIntersecting,l=s.setObservable;return{canLoad:M,setObservable:l}}(o(t,["children","lazy"])),M=s.canLoad,l=s.setObservable;return(0,i.jsx)("div",{ref:c?l:null,children:!c||M?e:null})}},22813:function(t,e,n){"use strict";var i=n(94776),r=n.n(i),u=n(52322),a=n(13980),o=n.n(a),c=n(2784),s=n(6294),M=n(73931),l=n(81298),j=n(5103),N=n(41332),d=n(46811),g=n(93955),y=n(16179),L=n.n(y);function T(t,e,n,i,r,u,a){try{var o=t[u](a),c=o.value}catch(s){return void n(s)}o.done?e(c):Promise.resolve(c).then(i,r)}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"",e=document.createElement("div");return e.innerHTML=t,e.textContent};function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n3&&void 0!==y[3]&&y[3],o=u||t(i||"control"),c=null,e.prev=3,e.next=6,fetch(o,{});case 6:return s=e.sent,e.next=9,s.json();case 9:if(M=e.sent,l=M.results||[],j=[],a&&((j=l.filter((function(t){return Array.isArray(t.laser_tags)&&t.laser_tags.some((function(t){return"prime_day"===t.tag_name&&"bf_content_description"===t.namespace_name}))}))).length<6&&(N=6-j.length,d=l.filter((function(t){return!j.some((function(e){return e.id===t.id}))})),g=d.slice(-N),j=j.concat(g)),l=j),l.length){e.next=15;break}return e.abrupt("return",null);case 15:(c=n).package_id=l[0].id,c.results=l.map((function(t){var e=null===t||void 0===t?void 0:t.image,n=null===t||void 0===t?void 0:t.image_alt;if(Array.isArray(t.thumbnails)&&t.thumbnails.length){var i=t.thumbnails[0];if(Array.isArray(i.sizes)&&i.sizes.length){var u=i.sizes.find((function(t){return"big"===t.size}))||i.sizes[0];u&&(e=u.url,n=u.alt_text||"")}}return{author:"",canonical_path:t.canonical_path,created_at:"",data_source:t.data_source_name,data_source_name:t.data_source_name,description:z(t.description),id:t.id,image:e,image_alt_text:n,name:t.name,url:t.url?"".concat(t.url,"?origin=").concat(r):"https://www.buzzfeed.com".concat(t.canonical_path,"?origin=").concat(r)}})),c.cta&&c.cta.url&&(c.cta.url+="?origin=".concat(r)),e.next=24;break;case 21:e.prev=21,e.t0=e.catch(3),"dev"===T.CLUSTER&&console.log("error fetching data",e.t0);case 24:return e.abrupt("return",c);case 25:case"end":return e.stop()}}),e,null,[[3,21]])})),function(){var t=this,n=arguments;return new Promise((function(i,r){var u=e.apply(t,n);function a(t){I(u,i,r,a,o,"next",t)}function o(t){I(u,i,r,a,o,"throw",t)}a(void 0)}))});return function(t,e,n){return i.apply(this,arguments)}}();return{fetchData:i}}();function O(t){var e=t.buzz,n=(0,c.useState)(null),i=n[0],r=n[1],u=(0,c.useContext)(p.Z),a=u.getFeatureFlagValue,o=u.getExperimentValue,s=u.experiments,M=e.country_code,l=e.isUS,N=(e.classification.section||e.category).toLowerCase(),d=e.laser_tags&&e.laser_tags.bf_content_description&&e.laser_tags.bf_content_description.topic||[],g=b(e.tags.filter((function(t){return!t.includes("--")}))).concat(b(d.map((function(t){return t.tag_name}))));(0,c.useContext)(j.Z).base_url;return(0,c.useEffect)((function(){var t;if(s.loaded){var n=(null===e||void 0===e||null===(t=e.flags)||void 0===t?void 0:t.sensitive)||!1,i=e.isUS&&!e.isAd&&!n&&!g.includes("ai quiz")&&!e.shouldHideRecircSection,u=o("shopping-package-v4-ml-1499",{rejectErrors:!1}),c=a("prime-day-bpage-recirc")||!1,M="";if((i||("nifty"===N||"shopping"===N)&&l)&&(M="shopping"),l&&"shopping"===M)if(c){var j=A(M,N);h.fetchData(u,j,"https://weaver-api.buzzfeed.com/v1/feeds/shopping-package-prime-day",!0).then((function(t){t&&r(x({},t,{category:M}))}))}else{var d=A(M,N);h.fetchData(u,d).then((function(t){t&&r(x({},t,{category:M}))}))}}}),[e.tags,N,l,M,s]),i}function A(t,e){var n={shopping:{shopping:"bshp",nifty:"nifty_pkg_bpage"}};return n[t]&&n[t][e]?n[t][e]:{giftguide:"bgg"}[t]||"shp"}var v=n(39252),S=n(81298),w=n(52547),_=n(3207),E=n(90093),C=n(33859),k=n.n(C),Q=function(t){var e=t.className;return(0,r.jsxs)("svg",{role:"img","aria-label":"BuzzFeed Shopping logo",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 535.7 153.8",className:e,children:[(0,r.jsx)("title",{children:"Shopping on BuzzFeed"}),(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{d:"M85.4 33v-9.5C85.4 9.6 72.9.4 57.6 2.8S29.7 18.6 29.7 32.5v11.7",fill:"none",stroke:"#000",strokeWidth:4.92,strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{fill:"#fff",stroke:"#000",strokeWidth:4.92,strokeLinecap:"round",strokeLinejoin:"round",d:"M2.5 51.2L11.8 56.4 21.1 47.5 30.4 52.7 39.7 43.8 49 49 58.3 40 67.6 45.3 76.9 36.3 86.2 41.6 95.6 32.7 102.7 37.9 102.7 144.1 3.6 135.6z"}),(0,r.jsx)("path",{fill:"#f37a7b",stroke:"#000",strokeWidth:4.92,strokeLinecap:"round",strokeLinejoin:"round",d:"M129.2 38.9L121.7 43.5 118.8 35.9 112.6 40.8 108.8 32.7 102.7 37.4 102.7 144.1 129.2 134z"}),(0,r.jsx)("path",{id:"Arrow",d:"M85.4 90.4L81.1 60.1 52.7 71.6 64 78.1 53.3 96.5 35 85.9 16.8 117.3 27 123.1 39.2 101.9 57.6 112.5 74.1 83.9z"}),(0,r.jsx)("path",{d:"M155.6 80.9V38.1h19c7.4 0 12 4.5 12 10.9 0 5.4-3.6 9-7.5 9.8 4.6.7 8.3 5.4 8.3 10.5 0 6.9-4.6 11.5-12.4 11.5h-19.4zm25.5-31.1c0-3.8-2.6-6.9-7.4-6.9h-12.8v13.8h12.8c4.8-.1 7.4-3 7.4-6.9zm.8 18.9c0-3.9-2.7-7.4-8-7.4h-13.1V76H174c5 .1 7.9-2.7 7.9-7.3zM204.8 64.3V38.1h5.3v26c0 7.8 4.2 12.8 12.1 12.8 7.9 0 12.1-4.9 12.1-12.8v-26h5.3v26.1c0 10.6-5.8 17.4-17.4 17.4-11.6 0-17.4-6.8-17.4-17.3zM256.7 80.9v-4.4l24-33.6h-24v-4.7h30.8v4.4l-24 33.6H288v4.7h-31.3zM303.1 80.9v-4.4l24-33.6h-24v-4.7h30.8v4.4l-24 33.6h24.5v4.7h-31.3zM351.4 80.9V38.1h28v4.7h-22.7v13.8H379v4.7h-22.2v19.5h-5.4zM395.6 80.9V38.1h28v4.7h-22.7v13.8h22.2v4.7h-22.2V76h22.7v4.7h-28zM441 80.9V38.1h28v4.7h-22.7v13.8h22.2v4.7h-22.2V76H469v4.7h-28zM486.4 80.9V38.1H501c13.3 0 21.9 9.3 21.9 21.4 0 12.2-8.7 21.4-21.9 21.4h-14.6zm31-21.4c0-9.2-5.8-16.7-16.4-16.7h-9.3v33.3h9.3c10.4 0 16.4-7.4 16.4-16.6z"}),(0,r.jsx)("path",{d:"M154.5 129.3l4.9-6.9c3 3.1 7.7 5.8 13.6 5.8 5 0 7.4-2.3 7.4-4.7 0-7.6-24.6-2.4-24.6-18.5 0-7.1 6.2-13 16.2-13 6.8 0 12.4 2.1 16.7 6l-5.1 6.7c-3.5-3.2-8.1-4.7-12.4-4.7-3.9 0-6.1 1.7-6.1 4.3 0 6.8 24.6 2.2 24.6 18.2 0 7.8-5.6 13.7-17.1 13.7-8.3-.1-14.2-2.8-18.1-6.9zM232.2 135.4v-18H212v18h-9.1V92.6h9.1v16.8h20.2V92.6h9.2v42.8h-9.2zM254.7 114c0-12.9 9.4-22.1 22.3-22.1 13 0 22.4 9.2 22.4 22.1 0 12.9-9.4 22.1-22.4 22.1-12.8 0-22.3-9.2-22.3-22.1zm35.4 0c0-8-5.1-14-13-14s-13 6-13 14 5.1 14 13 14 13-6 13-14zM312.9 135.4V92.6h20c9.3 0 14.4 6.3 14.4 13.8 0 7.4-5.1 13.8-14.4 13.8H322v15.2h-9.1zm25.1-29c0-3.6-2.7-5.8-6.3-5.8H322v11.5h9.7c3.6.1 6.3-2.2 6.3-5.7zM360 135.4V92.6h20c9.3 0 14.4 6.3 14.4 13.8 0 7.4-5.1 13.8-14.4 13.8h-10.9v15.2H360zm25-29c0-3.6-2.7-5.8-6.3-5.8H369v11.5h9.7c3.6.1 6.3-2.2 6.3-5.7zM407 135.4V92.6h9.1v42.8H407zM461.1 135.4l-20.4-27.9v27.9h-9.1V92.6h9.4l19.8 26.9V92.6h9.1v42.8h-8.8zM483.4 114c0-13.5 10.3-22.1 22.8-22.1 8.9 0 14.5 4.5 17.7 9.6l-7.6 4.1c-1.9-3-5.6-5.6-10.1-5.6-7.8 0-13.4 6-13.4 14 0 8.1 5.6 14 13.4 14 3.8 0 7.4-1.7 9.1-3.3v-5.1H504v-8h20.4V128c-4.4 4.9-10.5 8.1-18.2 8.1-12.5.1-22.8-8.6-22.8-22.1z"})]})]})},U=function(t){var e=t.children;return(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:k().packageWrapper,children:[(0,r.jsx)("div",{className:k().heading,children:(0,r.jsx)(Q,{})}),e]})})},Y=function(t){var e=t.className;return(0,r.jsx)("svg",{className:e,width:"11",height:"10",viewBox:"0 0 11 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3146 4.99927L5.36504 0.0497586L4.12766 1.28714L7.84027 4.99976L4.12766 8.71237L5.36504 9.94975L10.3146 5.00024L10.3141 4.99976L10.3146 4.99927Z"})})};function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Dt(t){var e=t.isNewDesign,n=t.isShoppingDesign,i=void 0!==n&&n,u=t.variant,a=void 0===u?"":u,c=t.limitedItems,s=It(t,["isNewDesign","isShoppingDesign","variant","limitedItems"]);return(0,r.jsx)(o.Z,{children:e?(0,r.jsx)(mt,{isShoppingDesign:i,limitedItems:c,variant:a}):(0,r.jsx)(tt,ft({},s))})}Dt.propTypes={isNewDesign:a().bool,isShoppingDesign:a().bool,limitedItems:a().number,variant:a().string}},74809:function(t,e,n){"use strict";n.d(e,{Z:function(){return X}});var i=n(52322),r=n(88163),u=n(16938),a=n(21871),o=n(24678),c=n(13980),s=n.n(c),M=n(2784),l=n(83661),j=n(66962),N=n(52592),d=n(99112),g=n(21580),y=(n(87782),function(t){var e=t.className,n=t.title;return(0,i.jsxs)("svg",{className:e,width:"15",height:"20",viewBox:"0 0 15 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("title",{children:n}),(0,i.jsx)("path",{d:"M11.6364 6.90906H12.8182C13.1316 6.90906 13.4322 7.03357 13.6539 7.2552C13.8755 7.47684 14 7.77744 14 8.09088V17.5454C14 17.8589 13.8755 18.1595 13.6539 18.3811C13.4322 18.6027 13.1316 18.7272 12.8182 18.7272H2.18182C1.86838 18.7272 1.56778 18.6027 1.34615 18.3811C1.12451 18.1595 1 17.8589 1 17.5454V8.09088C1 7.77744 1.12451 7.47684 1.34615 7.2552C1.56778 7.03357 1.86838 6.90906 2.18182 6.90906H3.36364",stroke:"#5246F5",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M7.5 1V9.27273",stroke:"#5246F5",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M4.54541 3.95455L7.49996 1L10.4545 3.95455",stroke:"#5246F5",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}),L=n(29583),T=function(t){var e=t.className,n=void 0===e?"":e;return(0,i.jsx)("svg",{className:n,fill:"#EB5369",width:"15",height:"15",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M0 2.7907C0 1.24944 1.22104 0 2.72727 0H12.2727C13.779 0 15 1.24944 15 2.7907L15 8.37209C15 9.91335 13.779 11.1628 12.2727 11.1628H10.9091V15L4.77274 11.1628H2.72727C1.22104 11.1628 0 9.91335 0 8.37209C0 6.51163 0 4.65116 0 2.7907Z",fill:"#EB5369"})})},p=n(42494),m=n(43643),z=n(81298),f=n(30353),I=n(41332),D=n(64435),x=n(98195),b=n.n(x),h=function(t){var e,n=t.display_name,r=t.position,u=t.slug,a=(0,M.useContext)(I.Z).buzz,o=void 0===a?{}:a,c=(0,D.R)({unit_type:"top"===r?"buzz_head":"buzz_bottom",unit_name:o.id,item_type:"text",item_name:u,target_content_type:"feed",target_content_id:8}),s="".concat(null===(e=f.destinations.buzzfeed)||void 0===e?void 0:e.base_url,"/topic/").concat(u);return(0,i.jsx)("div",{className:"".concat(b().topicPageLink," ").concat(b()[r]),children:(0,i.jsxs)("a",{ref:c,href:s,children:[(0,i.jsx)(z.BN,{className:b().caret}),(0,i.jsxs)("div",{children:["Go Back to",(0,i.jsx)("span",{className:b().pageName,children:n})]})]})})},O=n(53407),A=n(93955),v=n(9100),S=n.n(v);function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t){for(var e=1;e0&&et.map((function(t,e){return(0,i.jsx)(Z,function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:1,n=parseInt(t.slice(1,3),16),i=parseInt(t.slice(3,5),16),r=parseInt(t.slice(5,7),16);return"rgba(".concat(n,",").concat(i,",").concat(r,",").concat(e,")")}(a,c)),e},ct={core_peach:ot({primaryColor:"#FFE3D4",subbuzzHeaderOpacity:1}),rose:ot({primaryColor:"#FFC0C5"}),watermelon:ot({primaryColor:"#F4A2A2"}),sand:ot({primaryColor:"#F7C597"}),hunter:ot({primaryColor:"#587E6F",textColor:"#fff"}),mint:ot({primaryColor:"#B4DBC8"}),periwinkle:ot({primaryColor:"#6772E5",textColor:"#fff",subbuzzHeaderBackgroundColor:"#8CA2E9"}),stone:ot({primaryColor:"#B0C1D1"}),black:ot({primaryColor:"#2B3249",textColor:"#fff"}),orange:ot({primaryColor:"#BB6719"})},st={6213166:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/2wr8eZ7PB.png",alt:"foo bar",caption:"Image caption here"},{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/mrut2VKAq.png",alt:"foo bar",caption:"Image caption here"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/2wr8eZ7PB.png",alt:"foo bar",caption:"Image caption here"}]},6318306:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/Kkep1TlKv.png",alt:": A woman in a vibrant floral suit and a woman in a mid-length lilac shirt dress",caption:"via Nordstrom"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/m4991T6wJ.png",alt:": A woman in a vibrant floral suit and a woman in a mid-length lilac shirt dress",caption:"via Nordstrom"}]},6317663:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/ojJJkGRzs.png",alt:"smiling young woman holding gift",caption:"via Nordstrom Rack"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/EFWAnH_vV.png",alt:"smiling young woman holding gift",caption:"via Nordstrom Rack"}]},6328731:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/_urLEETyh.png",alt:"GUESS Originals - Betty Boop Capsule",caption:"via GUESS Originals"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/Vnh84j7By.png",alt:"GUESS Originals - Betty Boop Capsule",caption:"via GUESS Originals"}]},6338670:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/YgB-ffkzG.png",alt:"woman wearing a purple suit jacket",caption:"via Express"},{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/QqTTkj6UI.png",alt:"two women wearing grey outfits",caption:"via Express"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/YgB-ffkzG.png",alt:"woman wearing a purple suit jacket",caption:"via Express"}]},6343747:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/_LYFS3vSe.png",alt:"Inga hosting a potluck party",caption:"Shannon Soule & Morgan Demeter / BuzzFeed"},{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/M3zC6OHNV.png",alt:"Jasmine hosting a cocktail party",caption:"Morgan Demeter / BuzzFeed"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/pMMRuj_bo.png",alt:"Inga hosting a potluck party",caption:"Shannon Soule / BuzzFeed"}]},6345368:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/DS46CxGjP.png",alt:"Elise sits on couch to wrap presents",caption:"BuzzFeed"},{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/bOUr4sHDm.png",alt:"Elise writes holiday cards",caption:"BuzzFeed"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/wmD5lwXnY.png",alt:"Elise sits on couch to wrap presents",caption:"BuzzFeed"}]},6345370:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/mVAhnRJRK.png",alt:"Rie puts flannels into boxes lined with tissue paper",caption:"BuzzFeed"},{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/Qsxen0jb1.png",alt:"Rie holds out ribbon above table with wrapping",caption:"BuzzFeed"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/AqNNrXv8f.png",alt:"Rie puts flannels into boxes lined with tissue paper",caption:"BuzzFeed"}]},6356153:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/BROOyjyP9.png",alt:"Krista wrapping a present",caption:"Shannon Soule / BuzzFeed"},{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/SpwcsDXYJ.png",alt:"Krista opening a present",caption:"Shannon Soule / BuzzFeed"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/vPCt23PGQ.png",alt:"Krista wrapping a present",caption:"Shannon Soule / BuzzFeed"}]},6356259:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/WALG2BALK.png",alt:"Woman models silver sequin one-shouldered top and skirt",caption:"Express"},{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/6addLd8V9.png",alt:"Woman walks down city crosswalk wearing long black sequin dress and open-toed black heels",caption:"Express"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/mKXQxIrY-.png",alt:"Woman models silver sequin one-shouldered top and skirt",caption:"Express"}]},7372811:{desktop:[{src:"https://img.buzzfeed.com/thumbnailer-prod-us-east-1/hive/binaries/491935.jpg",alt:"Models lounge in leggings, bras, shorts, and shirts from the Hanes Originals Collection",caption:"Hanes"},{src:"https://img.buzzfeed.com/thumbnailer-prod-us-east-1/hive/binaries/491939.jpg",alt:"Man wears boxers and tank while woman wears bra and underwear from the Hanes Originals Collection",caption:"Hanes"}],mobile:[{src:"https://img.buzzfeed.com/thumbnailer-prod-us-east-1/hive/binaries/491937.jpg",alt:"Models lounge in leggings, bras, shorts, and shirts from the Hanes Originals Collection",caption:"Hanes"}]},7538615:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/v6ckgPVfn.png",alt:"Two women dressed in fairy halloween costumes taking a selfie outside",caption:"Party City"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/v6ckgPVfn.png",alt:"Two women dressed in fairy halloween costumes taking a selfie outside",caption:"Party City"}]},7562607:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/DyHTTsHRn.png",alt:"Two dogs lying in front of a christmas tree and fireplace",caption:"Petsmart"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/DyHTTsHRn.png",alt:"Two dogs lying in front of a christmas tree and fireplace",caption:"Petsmart"}]},7633098:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/dl0YcJ-Rt.png",alt:"Two women standing in a field against a cloud back drop",caption:"via Walmart Canada"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/dl0YcJ-Rt.png",alt:"Two women standing in a field against a cloud back drop",caption:"via Walmart Canada"}]},7727906:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/8C5A6X2CW.png?output-format=jpg&output-quality=95",alt:'dog in front of a "happy halloween" sign, jack-o-lanterns and decorative bats.',caption:"via Getty Images"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/8C5A6X2CW.png?output-format=jpg&output-quality=95",alt:'dog in front of a "happy halloween" sign, jack-o-lanterns and decorative bats.',caption:"via Getty Images"}]},7757785:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/eA2VM7NFv.png?output-format=jpg&output-quality=95",alt:"Two kids opening presents from Dick's Sporting Good by a Christmas tree",caption:"DICK'S Sporting Goods"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/eA2VM7NFv.png?output-format=jpg&output-quality=95",alt:"Two kids opening presents from Dick's Sporting Good by a Christmas tree",caption:"DICK'S Sporting Goods"}]},7765663:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/GVKPPABas.png?output-format=jpg&output-quality=95",alt:"a tin of cookies, a vanilla scented candkle, and two holiday themed mugs",caption:"Walmart Canada"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/GVKPPABas.png?output-format=jpg&output-quality=95",alt:"a tin of cookies, a vanilla scented candkle, and two holiday themed mugs",caption:"Walmart Canada"}]},7765768:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/tONV_zSyk.png?output-format=jpg&output-quality=95",alt:'table setting with a champagne flute, and pink and green plates that say "noel" with cupcakes on it. table is decorated with a pink and green tree and a disco ball',caption:"Walmart Canada"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/tONV_zSyk.png?output-format=jpg&output-quality=95",alt:'table setting with a champagne flute, and pink and green plates that say "noel" with cupcakes on it. table is decorated with a pink and green tree and a disco ball',caption:"Walmart Canada"}]},7829855:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/Aay1XOftY.png?output-format=jpg&output-quality=95",alt:"one child and one woman in denim shorts",caption:"Walmart Canada"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/Aay1XOftY.png?output-format=jpg&output-quality=95",alt:"one child and one woman in denim shorts",caption:"Walmart Canada"}]},7838751:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/h71dtWwyX.png?output-format=jpg&output-quality=95",alt:"family sitting on a patio with patio furniture",caption:"Walmart Canada"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/h71dtWwyX.png?output-format=jpg&output-quality=95",alt:"family sitting on a patio with patio furniture",caption:"Walmart Canada"}]},7859887:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/A_3KF9JWS.png?output-format=jpg&output-quality=95",alt:"woman up against a sky background, wearing a denim skirt and top",caption:"Walmart Canada"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/A_3KF9JWS.png?output-format=jpg&output-quality=95",alt:"woman up against a sky background, wearing a denim skirt and top",caption:"Walmart Canada"}]},7907094:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/_27DACrNT.png?output-format=jpg&output-quality=95",alt:"kids smiling and walking against a pale background with lockers in the background",caption:"Walmart Canada"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/_27DACrNT.png?output-format=jpg&output-quality=95",alt:"kids smiling and walking against a pale background with lockers in the background",caption:"Walmart Canada"}]},7959270:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/PjPwH7gRt.png?output-format=jpg&output-quality=95",alt:"family around christmas tree in matching pajamas",caption:""}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/PjPwH7gRt.png?output-format=jpg&output-quality=95",alt:"family around christmas tree in matching pajamas",caption:""}]},7959319:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/8v8iwB3zT.png?output-format=jpg&output-quality=95",alt:"family around christmas tree in matching pajamas",caption:""}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/8v8iwB3zT.png?output-format=jpg&output-quality=95",alt:"family around christmas tree in matching pajamas",caption:""}]},7960947:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/VNh02DYtQ.png?output-format=jpg&output-quality=95",alt:"family around christmas tree in matching pajamas",caption:""}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/VNh02DYtQ.png?output-format=jpg&output-quality=95",alt:"family around christmas tree in matching pajamas",caption:""}]},8023865:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/_g8bCW1Bj.png?output-format=jpg&output-quality=95&resize=524:655",alt:"Woman in striped shirt and jacket",caption:"Walmart Canada"},{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/_f1QsrJml.png?output-format=jpg&output-quality=95&resize=600:655",alt:"Mom, son and daughter in matching blue spring outfits",caption:"Walmart Canada"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/_f1QsrJml.png?output-format=jpg&output-quality=95&resize=600:655",alt:"Mom, son and daughter in matching blue spring outfits",caption:"Walmart Canada"},{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/_g8bCW1Bj.png?output-format=jpg&output-quality=95&resize=524:655",alt:"Woman in striped shirt and jacket",caption:"Walmart Canada"}]},8024439:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/DGfDUN6bP.png?output-format=jpg&output-quality=95",alt:"woman sitting on patio furniture outside",caption:"Walmart Canada"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/DGfDUN6bP.png?output-format=jpg&output-quality=95",alt:"woman sitting on patio furniture outside",caption:"Walmart Canada"}]},8046947:{desktop:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/SvdooTdT_.png?output-format=jpg&output-quality=95",alt:"Walmart shopping bag filled with groceries",caption:"Walmart Canada"}],mobile:[{src:"https://img.buzzfeed.com/store-an-image-prod-us-east-1/SvdooTdT_.png?output-format=jpg&output-quality=95",alt:"Walmart shopping bag filled with groceries",caption:"Walmart Canada"}]}};function Mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t?"SP":"Desktop",i="taboola-below-article-thumbnails-".concat(t?"sp":"desktop").concat(e),r=1==e?"thumbnails-a":"alternating-thumbnails-a",u="\n window._taboola = window._taboola || [];\n if (publishedDate > firstDecDate) {\n // MG code\n _taboola.push({\n mode: '".concat(r,"',\n container: '").concat(i,"',\n placement: 'Below Article Thumbnails ").concat(n).concat(e,"',\n target_type: 'mix'\n });\n } else {\n //Rev share code\n _taboola.push({\n mode: '").concat(r,"',\n container: '").concat(i,"',\n placement: 'Below Article Thumbnails ").concat(n).concat(e," Past',\n target_type: 'mix'\n });\n }\n ");return{id:i,inline_js:u}}(e,i),n=t.id,r=t.inline_js;d(n),L(r)}),[e]);var I=!m.sensitive&&!m.nsfw&&!m.ad&&!f.includes("--noads")&&!z&&"Japan"===p.edition;return(0,u.useEffect)((function(){Rt.hi.getTCData().then((function(t){var e=t.tcData,n=e.gdprApplies,i=e.eventStatus;if(n&&!["useractioncomplete","tcloaded"].includes(i)||document.getElementById("tb_loader_script"))M||o||(Rt.hi.setTCFListener((function(t){var e=t.tcData;c("useractioncomplete"===e.eventStatus||"tcloaded"===e.eventStatus)})),l(!0));else{var r=document.createElement("script");r.type="text/javascript",r.innerHTML="\n window._taboola = window._taboola || [];\n _taboola.push({article:'auto'});\n !function (e, f, u, i) {\n if (!document.getElementById(i)){\n e.async = 1;\n e.src = u;\n e.id = i;\n f.parentNode.insertBefore(e, f);\n }\n }(document.createElement('script'),\n document.getElementsByTagName('script')[0],\n '//cdn.taboola.com/libtrc/buzzfeedjapan/loader.js',\n 'tb_loader_script');\n if(window.performance && typeof window.performance.mark == 'function')\n {window.performance.mark('tbl_ic');}\n",document.head.appendChild(r);var u=document.createElement("script");u.type="text/javascript",u.innerHTML="\n window._taboola = window._taboola || [];\n _taboola.push({flush: true});\n",document.body.appendChild(u),o||c(!0)}}))}),[M,o]),I&&(0,r.jsxs)("div",{className:Bt().taboolaWrapper,children:[1==i&&(0,r.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:'\n var docString = document.documentElement.innerHTML.toString();\n var arrPublished = docString.split("datePublished");\n var publishedDateString = arrPublished[1].split(\'"\')[2];\n var arrModified = docString.split("dateModified");\n var modifiedDateString = arrModified[1].split(\'"\')[2];\n if(modifiedDateString){\n // replacing publishedDate if dateModified has value\n publishedDateString = modifiedDateString;\n }\n var publishedDate = new Date(publishedDateString);\n var firstDecDate = new Date("12/01/2022");\n'}}),(0,r.jsx)("div",{id:N}),(0,r.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:y}})]})}Wt.propTypes={isMobile:o().bool,placement:o().number};var Gt=Wt,Ht=n(94200),Ft=n.n(Ht),Vt=n(84952),Jt=["IN","PH","SG","ID","MY","PK","HK","TH","KR","BD","VN","LK","TW","NP","KH","BN","PG","MO","LA","BT","TL","MN"];var qt=function(){var t=(0,u.useState)(),e=t[0],n=t[1],i=(0,u.useState)(),a=i[0],o=i[1],c=(0,u.useRef)(null),s=(0,u.useContext)(H.Z).buzz,M=s.classification,l=s.flags,j=s.isPreview,N=s.tags,d=!l.sensitive&&!l.nsfw&&!l.ad&&!N.includes("--noads")&&!j&&"Japan"!==M.edition&&-1!==Jt.indexOf((0,Vt.pP)());return(0,u.useEffect)((function(){d&&Rt.hi.getTCData().then((function(t){var i=t.tcData,r=i.gdprApplies,u=i.eventStatus;if(r&&!["useractioncomplete","tcloaded"].includes(u)||document.getElementById("tb_loader_script"))a||e||(Rt.hi.setTCFListener((function(t){var e=t.tcData;n("useractioncomplete"===e.eventStatus||"tcloaded"===e.eventStatus)})),o(!0));else{var s=document.createElement("script");s.type="text/javascript",s.innerHTML="\n window._taboola = window._taboola || [];\n _taboola.push({article:'auto'});\n !function (e, f, u, i) {\n if (!document.getElementById(i)){\n e.async = 1;\n e.src = u;\n e.id = i;\n f.parentNode.insertBefore(e, f);\n }\n }(document.createElement('script'),\n document.getElementsByTagName('script')[0],\n '//cdn.taboola.com/libtrc/buzzfeed-international/loader.js',\n 'tb_loader_script');\n if(window.performance && typeof window.performance.mark == 'function')\n {window.performance.mark('tbl_ic');}\n",document.head.appendChild(s);var M=document.createElement("script");M.type="text/javascript",M.innerHTML="\n window._taboola = window._taboola || [];\n _taboola.push({\n mode: 'alternating-thumbnails-a',\n container: 'taboola-below-article-thumbnails',\n placement: 'Below Article Thumbnails',\n target_type: 'mix'\n });\n",c.current.appendChild(M);var l=document.createElement("script");l.type="text/javascript",l.innerHTML="\n window._taboola = window._taboola || [];\n _taboola.push({flush: true});\n",document.body.appendChild(l),e||n(!0)}}))}),[a,e]),d&&(0,r.jsx)("div",{className:Ft().taboolaWrapper,ref:c,children:(0,r.jsx)("div",{id:"taboola-below-article-thumbnails"})})},Kt=n(46335),Xt=n.n(Kt),$t=["GB","IE","UK"];var te=function(){var t=(0,u.useState)(),e=t[0],n=t[1],i=(0,u.useState)(),a=i[0],o=i[1],c=(0,u.useRef)(null),s=(0,u.useContext)(H.Z).buzz,M=s.classification,l=s.flags,j=s.isPreview,N=s.tags,d=!l.sensitive&&!l.nsfw&&!l.ad&&!N.includes("--noads")&&!j&&"Japan"!==M.edition&&-1!==$t.indexOf((0,Vt.pP)());return(0,u.useEffect)((function(){d&&Rt.hi.getTCData().then((function(t){var i=t.tcData,r=i.gdprApplies,u=i.eventStatus;if(r&&!["useractioncomplete","tcloaded"].includes(u)||document.getElementById("tb_loader_script"))a||e||(Rt.hi.setTCFListener((function(t){var e=t.tcData;n("useractioncomplete"===e.eventStatus||"tcloaded"===e.eventStatus)})),o(!0));else{var s=document.createElement("script");s.type="text/javascript",s.innerHTML="\n window._taboola = window._taboola || [];\n _taboola.push({article:'auto'});\n !function (e, f, u, i) {\n if (!document.getElementById(i)){\n e.async = 1;\n e.src = u;\n e.id = i;\n f.parentNode.insertBefore(e, f);\n }\n }(document.createElement('script'),\n document.getElementsByTagName('script')[0],\n '//cdn.taboola.com/libtrc/esimedia-buzzfeeduk/loader.js',\n 'tb_loader_script');\n if(window.performance && typeof window.performance.mark == 'function')\n {window.performance.mark('tbl_ic');}\n",document.head.appendChild(s);var M=document.createElement("script");M.type="text/javascript",M.innerHTML="\n window._taboola = window._taboola || [];\n _taboola.push({\n mode: 'alternating-thumbnails-a',\n container: 'taboola-below-article-thumbnails',\n placement: 'Below Article Thumbnails',\n target_type: 'mix'\n });\n",c.current.appendChild(M);var l=document.createElement("script");l.type="text/javascript",l.innerHTML="\n window._taboola = window._taboola || [];\n _taboola.push({flush: true});\n",document.body.appendChild(l),e||n(!0)}}))}),[a,e,d]),d&&(0,r.jsx)("div",{className:Xt().taboolaWrapper,ref:c,children:(0,r.jsx)("div",{id:"taboola-below-article-thumbnails"})})},ee=n(31284),ne=n.n(ee),ie=n(64435),re=function(t){var e=t.topic,n=t.buzz,i=t.index,a=e.tag_name.replace(/_/g,"-"),o=(0,u.useMemo)((function(){return{item_type:"button",item_name:e.tag_display_name,subunit_name:"topic_in_article",subunit_type:"component",unit_type:"buzz_body",unit_name:n.id,target_content_type:"feed",target_content_id:"topic_".concat(a),position_in_subunit:i}}),[n.id,e.tag_name,i]),c=(0,ie.R)(o);return(0,r.jsx)("a",{ref:c,href:"/topic/".concat(a),children:e.tag_display_name})},ue=function(t){var e,n,i=t.buzz,u=(null===(e=i.laser_tags)||void 0===e||null===(n=e.bf_content_description)||void 0===n?void 0:n.topic)||[];return u.length?(0,r.jsxs)("div",{className:ne().topics,children:[(0,r.jsx)("h2",{className:ne().heading,children:"Topics in this article"}),(0,r.jsx)("ul",{children:u.slice(0,3).map((function(t,e){return(0,r.jsx)("li",{children:(0,r.jsx)(re,{topic:t,buzz:i,index:e})},e)}))})]}):null},ae=n(48121),oe=n.n(ae);function ce(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var se=function(t){return(0,r.jsx)("svg",function(t){for(var e=1;e1710959400),H=(0,u.useState)(!1),F=H[0],V=H[1],J=null===n||void 0===n||null===(e=n.metadata)||void 0===e?void 0:e.subbuzzId,$=!n.isQuiz||(0,Qe.l)({isBFN:(0,d.G)(n)}),tt=!(0,d.G)(n)&&"Advertising"!==n.editorial_status&&!n.isShopping&&!n.isQuiz&&("en-us"===n.country_code||"en-ca"===n.country_code);(0,u.useEffect)((function(){J&&V(!0)}),[]),(0,u.useEffect)((function(){(0,d.G)(n)&&(document.querySelector("body").style.overflowX="hidden")}),[n,n.format.page_width]),(0,u.useEffect)((function(){if(O&&O.loaded){var t=v("taboola_apac");E(t);var e=v("taboola_au");Q(e)}}),[O,v]);var et=(0,u.useCallback)((function(){c(!1)}),[c]),nt=function(){return(0,r.jsxs)(r.Fragment,{children:[_&&(0,r.jsx)(qt,{}),(0,r.jsx)(Ae.Z,{buzz:n}),!n.isShopping&&(0,r.jsxs)(r.Fragment,{children:[!G&&(W?(0,r.jsx)(At,{}):(0,r.jsx)(Dt,{})),(0,r.jsx)(te,{}),(0,r.jsx)(Z.Z,{buzz:n,commentCount:x,onCommentsLoaded:b,firstPage:100,repliesFirstPage:2,perPage:100,showEmojiReactions:G,commentsEnabled:f})]}),n.isShopping&&(0,r.jsx)(te,{}),k&&(0,r.jsx)(Ze,{}),!(0,d.G)(n)&&!n.isShopping&&$&&(0,r.jsx)(S.Z,{type:"story-bpage-desktop",pixiedust:{unit_type:"buzz_bottom",unit_name:n.id,position_in_unit:1},style:{marginTop:"-2rem"}}),(0,r.jsx)(gt.Z,{}),(0,r.jsx)(K.Z,{}),I&&$&&(0,r.jsx)(S.Z,{type:"bigstory",pixiedust:{unit_type:"buzz_bottom",unit_name:n.id,position_in_unit:1}})]})};return(0,r.jsxs)("main",{"aria-hidden":F,className:"".concat(T().main," ").concat(T()[z]," embed-content"),id:"buzz-content",ref:g,children:[(0,r.jsx)(ke,{buzz:n,isOpen:F,onRequestClose:function(){return V(!1)},subbuzzData:i,subbuzzId:J},"shared-modal-".concat(n.id)),n.longform_custom_header&&(0,r.jsx)(q,{data:n.longform_custom_header}),(0,r.jsx)("div",{className:"".concat(T().article," ").concat(T()[z]," ").concat(T().wide," ").concat(T()[n.bfpTheme]||""," embed-post"),children:(0,r.jsxs)("div",{className:T().content,children:[(0,r.jsxs)("article",{className:"featured-post",children:[n.lookbookPalette?(0,r.jsx)(Nt,{buzz:n,commentCount:x,showShareBar:Y}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(X.Z,{buzz:n,badges:a}),(0,r.jsx)(A,{buzz:n,commentCount:x,showShareBar:Y,destination:z,isFloatingButtonsEnd:L})]}),(0,r.jsx)(fe,{buzz:n,postRef:g}),(0,r.jsx)(Pt.ZP,{buzz:n,subbuzzData:i,pixiedust:{unit_type:"buzz_body",unit_name:n.id,position_in_unit:0}}),n.hasStudiosPromoUnit&&(0,r.jsx)(Yt,{buzz:n}),(0,d.G)(n)&&(0,r.jsx)(ue,{buzz:n}),(0,r.jsx)(P,{buzz:n}),(0,r.jsx)(B.Z,{buzz:n})]}),(0,r.jsxs)(j.Z,{onError:s.Tb,children:[(0,r.jsx)(S.Z,{type:"subbuzz",pixiedust:{unit_type:"buzz_bottom",unit_name:n.id,position_in_unit:0}}),"Japan"===n.classification.edition&&(0,r.jsx)(Gt,{isMobile:I}),"Japan"===n.classification.edition?(0,r.jsx)("div",{id:"taboola-split-01",children:nt()}):nt()]})]})}),(0,r.jsxs)(j.Z,{onError:s.Tb,children:[(0,r.jsx)(he,{}),"Japan"===n.classification.edition&&(0,r.jsx)(dt.Z,{children:(0,r.jsx)(Gt,{placement:2,isMobile:I})}),(0,r.jsx)(yt.Z,{style:{marginTop:I?"1rem":"-2rem",marginBottom:"3rem"},isNewDesign:!0,isShoppingDesign:!tt&&!(0,d.G)(n),variant:tt?"refreshed":""}),(0,r.jsx)(vt.d$,{listLayout:tt||n.isQuiz?"grid":"gridNarrow",className:tt||n.isQuiz?"refreshed":"",variant:tt?"wavesSection":"bottomUnit"}),(0,d.G)(n)&&(0,r.jsx)(N.Z,{jumpTo:"news-footer",className:"skipToFooter",label:"Skip to footer"}),(0,r.jsx)(vt.cM,{className:tt||n.isQuiz?"refreshed":""}),(0,r.jsx)("div",{ref:p})]}),o&&(0,r.jsx)(pt,{onOverlayClick:et})]})}Be.propTypes={buzz:o().object.isRequired,badges:o().array,subbuzzData:o().shape({assets:o().object,subbuzzes:o().array})};var Re=Be,We=n(53407),Ge=n(14125),He=n(35167);function Fe(t){var e=t.pixiedust;return(0,r.jsx)(S.Z,{config:{adType:"ex",adPos:"promo-inline-trending-ad-unit-slot",size:[He.J7.PROGRAMMATIC_SMARTPHONE_BANNER,He.J7.PROGRAMMATIC_MEDIUM_RECTANGLE,He.J7.PROGRAMMATIC_LEADERBOARD,He.J7.NATIVE,He.J7.FLUID],viewability:"high"},pixiedust:e})}var Ve=n(42235),Je=n(13607),qe=n(50946);var Ke=function(){var t=(0,u.useContext)(H.Z).buzz,e=(0,u.useContext)(Je.Z).tracking,n=e.consentValue,i=e.isConsentReady,a=!t.isAd&&"news"!==t.metavertical&&!t.flags.sensitive&&!t.flags.nsfw&&t.isUS&&-1!==qe.u.indexOf(t.category.toLowerCase());return(0,u.useEffect)((function(){a&&n&&i&&(0,Ve.v)("//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&adInstanceId=8e4d6210-350e-4d17-b9c5-70937cc906ff")}),[a,n,i]),a?(0,r.jsx)("div",{id:"amzn-assoc-ad-8e4d6210-350e-4d17-b9c5-70937cc906ff"}):null};var Xe=function(t){var e,n=t.buzz,i=(0,w.useTranslation)("common").t;return n.tags.forEach((function(t){t.includes("--commerce-seo-links-")&&(e=t.replace("--commerce-seo-links-",""))})),e&&""!==e&&"Choose"!==e&&["US"].some((function(t){return t===n.classification.edition}))&&["en"].some((function(t){return t===n.language}))?(0,r.jsx)("div",{className:"subbuzz subbuzz-text xs-mb4 xs-relative",children:(0,r.jsx)("h2",{dangerouslySetInnerHTML:{__html:i("COMMERCE_SEO_"+e.toUpperCase())}})}):null},$e=n(30353);var tn=function(){var t,e=(0,u.useContext)(H.Z).buzz,n=void 0===e?{}:e,i=(0,u.useContext)(c.$),a=null===i||void 0===i||null===(t=i.env)||void 0===t?void 0:t.userCountry,o=!(0,d.G)(n)&&"Japan"!==n.classification.edition&&!n.isAd&&("au"===a||"nz"===a),s="dev"!==$e.CLUSTER&&"stage"!==$e.CLUSTER,M="\n window.PubFeedHeader = true;\n var script = document.createElement('script');\n script.src = \"https://".concat(s?"pubfeed":"staging-pubfeed",".linkby.com/widget.js\";\n document.getElementsByTagName('head')[0].appendChild(script);\n ");if(!o)return"";if(o&&!window.PubFeedHeader){var l=document.createElement("script");l.type="text/javascript",l.innerHTML=M,document.head.appendChild(l)}return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"linkby-widget","data-type":"listicle"})})},en=n(99377),nn=n(95705),rn=n.n(nn);function un(t){var e=t.content,n=t.onClick,i=t.onClose,u=e.btnText;return(0,r.jsx)("div",{className:rn().container,children:(0,r.jsxs)("div",{className:rn().button,children:[(0,r.jsx)("div",{className:rn().link,onClick:function(){return n()},children:u}),(0,r.jsx)("div",{className:rn().close,onClick:function(){return i()},children:"\xd7"})]})})}var an=n(35346),on=n.n(an);function cn(t){var e=t.content,n=t.onClick,i=t.onClose,u=e.titleText,a=e.descText,o=e.btnText,c=e.closeText;return(0,r.jsxs)("div",{className:on().container,children:[(0,r.jsx)("div",{className:on().icon,children:(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 38 38",children:[(0,r.jsx)("title",{children:"BuzzFeed Trending Arrow"}),(0,r.jsx)("path",{d:"M19 38C8.5 38 0 29.5 0 19S8.5 0 19 0s19 8.5 19 19-8.5 19-19 19zm9.9-19.4l-1.3-9-8.4 3.4 3.3 1.9-3.1 5.4-5.4-3-5.4 9.3 3 1.7 3.6-6.3 5.4 3.1 4.9-8.5 3.4 2z"})]})}),(0,r.jsx)("div",{className:on().title,children:u}),(0,r.jsx)("div",{className:on().desc,children:a}),(0,r.jsx)("div",{className:on().button,onClick:function(){return n()},children:o}),(0,r.jsx)("div",{className:on().close,onClick:function(){return i()},children:c})]})}var sn={buzzfeed:{ios:"https://apps.apple.com/app/apple-store/id352969997?pt=329394&mt=8&ct=",android:"https://play.google.com/store/apps/details?id=com.buzzfeed.android&utm_source=buzzfeed&utm_campaign=",desktop:"https://www.buzzfeed.com/app?ct="},tasty:{ios:"https://apps.apple.com/app/apple-store/id1217456898?pt=329394&mt=8&ct=",android:"https://play.google.com/store/apps/details?id=com.buzzfeed.tasty&utm_source=buzzfeed&utm_medium=web&utm_campaign=",desktop:"https://www.tasty.co/download?ct="}},Mn=[{name:"tasty",enabled:!0,match:function(t){return"Tasty"===t.category},content:{promoType:"button",btnText:"7,500+ recipes, 1 free app",campaignId:"bftasty",storeLinks:sn.tasty,unit_name:"tasty",subunit_name:"tasty_mobile_app_promo"}},{name:"facebook",enabled:!1,match:function(t,e){return"facebook"==e},content:{promoType:"card",titleText:"Life is better in the app!",descText:"What\u2019s trending, funny tweets, quizzes, games, and more.",btnText:"Get the BuzzFeed app",closeText:"Not now",campaignId:"post-fb",storeLinks:sn.buzzfeed}},{name:"quiz",enabled:!0,match:function(t){return t.isQuiz},content:{promoType:"button",btnText:"More Quizzes in the App!",campaignId:"quiz",storeLinks:sn.buzzfeed}},{name:"default",enabled:!1,match:function(t){return!t.isQuiz},content:{promoType:"button",btnText:"Get the App!",campaignId:"post",storeLinks:sn.buzzfeed}},{name:"quiz-complete",enabled:!0,match:function(t){return t.isQuiz},content:{promoType:"card",titleText:"Quizzes are better in the app!",descText:"What\u2019s trending, funny tweets, quizzes, games, and more.",btnText:"Get the BuzzFeed app",closeText:"Not now",campaignId:"quiz-complete",storeLinks:sn.buzzfeed}}],ln=n(4471),jn=n(96547),Nn=n.n(jn);function dn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gn(t){for(var e=1;e=1)return"".concat(M," ").concat(s.label).concat(M>1?"s":""," ago")}}catch(l){u=!0,a=l}finally{try{r||null==c.return||c.return()}finally{if(u)throw a}}return"Just now"},vn=function(t){var e=t.article,n=t.index,i=(0,u.useMemo)((function(){return{unit_name:"trending_posts",unit_type:"buzz_bottom",item_type:"card",item_name:e.id,position_in_unit:n+1,target_content_url:e.url,target_content_type:"buzz",target_content_id:e.id,data_source_name:"recsys_api",eventCategory:"list:bottom-feed"}}),[e,n]),a=(0,ie.R)(i,!1,!1);return(0,r.jsx)("a",{href:"".concat(e.url,"?origin=btrend"),className:hn().link,ref:a,children:(0,r.jsxs)("div",{className:hn().cardWrapper,children:[(0,r.jsxs)("div",{className:hn().imageWrapper,children:[(0,r.jsx)("div",{className:hn().number,children:n+1}),(0,r.jsx)("img",{src:e.image,alt:e.title,className:hn().image})]}),(0,r.jsx)("div",{className:hn().timeAgo,children:An(e.created_at)}),(0,r.jsx)("div",{className:hn().category,children:"TVAndMovies"===e.category?"TV & MOVIES":e.category}),(0,r.jsx)("h2",{className:hn().title,children:e.name})]})})},Sn=function(){var t=(0,u.useContext)(R.Z).base_url,e=(0,u.useState)([]),n=e[0],i=e[1];return(0,u.useEffect)((function(){var e=new AbortController,n=function(){var n,r=(n=xn().mark((function n(){var r,u;return xn().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,fetch("".concat(t,"/site-component/v1/en-us/trending"),{signal:e.signal});case 3:return r=n.sent,n.next=6,r.json();case 6:u=n.sent,i(u.results||[]),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(0),e.signal.aborted||console.error("Fetch error:",n.t0);case 13:case"end":return n.stop()}}),n,null,[[0,10]])})),function(){var t=this,e=arguments;return new Promise((function(i,r){var u=n.apply(t,e);function a(t){On(u,i,r,a,o,"next",t)}function o(t){On(u,i,r,a,o,"throw",t)}a(void 0)}))});return function(){return r.apply(this,arguments)}}();return n(),function(){return e.abort()}}),[t]),n.length?(0,r.jsxs)("div",{className:hn().trending,children:[(0,r.jsx)("h1",{className:hn().header,children:"Trending on BuzzFeed"}),(0,r.jsx)("div",{className:hn().grid,children:n.slice(0,10).map((function(t,e){return(0,r.jsx)(vn,{article:t,index:e},t.id)}))})]}):null},wn=n(83335),_n=n.n(wn);var En=(0,F.Z)((function(t){var e=t.buzz,n=void 0===e?{}:e,i=(0,w.useTranslation)("common").t,u=n.table_of_contents,a="table-of-contents";return!u||"object"!==typeof u||!Array.isArray(u)||u.length<2?null:(0,r.jsx)("section",{className:_n().tableOfContents,"aria-labelledby":a,children:(0,r.jsxs)("div",{className:_n().contentWrapper,children:[(0,r.jsx)("h2",{id:a,className:"".concat(n.isShopping?_n().shoppingTitle:_n().title),children:i("table_of_contents")}),(0,r.jsx)("ul",{className:_n().tocList,children:u.map((function(t){return t.title?(0,r.jsx)("li",{className:_n().tocItem,children:(0,r.jsx)("a",{href:"#".concat(t.id),className:_n().tocLink,dangerouslySetInnerHTML:{__html:t.title}})},t.id):null}))})]})})}),{onError:s.Tb}),Cn=n(51340),kn=n(6277),Qn=function(t){var e=t.width,n=t.height;return(0,r.jsx)("svg",{width:e,height:n,viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M1 1L6 6L11 1",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Un=n(82536),Yn=n.n(Un),Pn=n(4042),Zn=n.n(Pn),Bn=120,Rn=200,Wn=function(t){var e=t.previousPath,n=(0,u.useState)(!1),i=n[0],a=n[1];return(0,r.jsxs)("button",{className:Yn().returnButton,type:"button",onMouseEnter:function(){return a(!0)},onMouseLeave:function(){return a(!1)},onClick:function(){e&&(window.location.href=e)},style:{display:"inline-flex",alignItems:"center"},children:[(0,r.jsx)("span",{className:Yn().returnButton__icon,style:{marginRight:"12px",display:"inline-flex",alignItems:"center",transform:i?"rotate(90deg)":"rotate(180deg)",transition:"transform 0.2s ease"},children:(0,r.jsx)(Qn,{width:16,height:16})}),(0,r.jsx)("span",{className:Yn().returnButton__text,children:"Return to Previous Article"})]})},Gn=function(t){var e=t.previousPath;return(0,r.jsx)("div",{style:{position:"relative",height:"".concat(Bn,"px")},children:(0,r.jsx)("div",{className:(0,kn.Z)(Yn().scrollCueBox,Yn().isReturning),style:{position:"relative",height:"".concat(Bn,"px"),backgroundImage:"url(".concat(Zn(),")")},children:(0,r.jsx)("div",{className:Yn().overlayHolder,children:(0,r.jsx)(Wn,{previousPath:e})})})})},Hn=function(t){var e=t.previousPath,n=void 0===e?null:e,i=t.onExpandComplete,a=void 0===i?function(){}:i,o=t.onOffscreenScrollDown,c=void 0===o?function(){}:o,s=(0,l.Z)("(max-width: 600px)")?1:3,M=/Safari/.test(navigator.userAgent)&&!/Chrome|Chromium|CriOS|FxiOS|Edg|OPR/.test(navigator.userAgent),j=(0,u.useRef)(null),N=(0,u.useRef)(null),d=(0,u.useRef)(!1),g=(0,u.useRef)(null),y=(0,u.useRef)(!1),L=(0,u.useState)(3),T=L[0],p=L[1],m=(0,u.useState)(!1),z=m[0],f=m[1],I=(0,u.useState)(!1),D=I[0],x=I[1],b=(0,u.useState)(!1),h=b[0],O=b[1],A=(0,u.useState)(Bn),v=A[0],S=A[1],w=(0,u.useState)(!1),_=w[0],E=w[1],C=function(){var t,e=null===(t=j.current)||void 0===t?void 0:t.getBoundingClientRect();E(e&&e.top>=0&&e.bottom<=window.innerHeight),e&&e.top<=40&&!D&&(S(Bn),p(3))},k=function(){var t=j.current;if(t&&!D){var e=t.getBoundingClientRect(),n=window.innerHeight-e.bottom,i=Math.min(1,n/1200);t.style.backgroundPosition="center ".concat(100-40*i,"%"),t.style.backgroundImage="url(".concat(Zn(),")"),e.bottom>-160?(M||window.scrollBy(0,15),g.current=requestAnimationFrame(k)):(cancelAnimationFrame(g.current),t.style.backgroundPosition="center top",t.style.height="".concat(Bn,"px"),setTimeout((function(){p(3),S(Bn),x(!0),O(!0),c()}),50))}};(0,u.useEffect)((function(){var t=null,e=function(t){y.current||(y.current=!0,function(t){var e=t>0;if(!(D||d.current&&e)){var n=t/(e?s:1);S((function(t){var i=e?Math.min(Rn,t+Math.abs(n)):Math.max(Bn,t-Math.abs(n));return p(i<140?1:i<180?2:3),!d.current&&i>=190&&(d.current=!0,f(!0),a(),requestAnimationFrame(k)),i}))}}(t),setTimeout((function(){y.current=!1}),16))},n=function(t){C(),_&&e(t.deltaY)},i=function(n){if(_&&1===n.touches.length){var i=n.touches[0].clientY;if(null!==t)e(t-i);t=i}},r=function(){t=null};return window.addEventListener("wheel",n,{passive:!0}),window.addEventListener("touchmove",i,{passive:!0}),window.addEventListener("touchend",r),window.addEventListener("touchcancel",r),window.addEventListener("scroll",C,{passive:!0}),function(){window.removeEventListener("wheel",n),window.removeEventListener("touchmove",i),window.removeEventListener("touchend",r),window.removeEventListener("touchcancel",r),window.removeEventListener("scroll",C)}}),[_,D]),(0,u.useEffect)((function(){D&&(S(Bn),p(3),f(!1),d.current=!1)}),[D]);var Q=(v-Bn)/80,U=40+20*Q,Y=(0,u.useMemo)((function(){return{position:"relative",height:"".concat(v,"px"),transition:"none",willChange:"height, background-position",backgroundImage:z||D?"url(".concat(Zn(),")"):"linear-gradient(rgba(140,162,233,0.9), rgba(140,162,233,0.9)), url(".concat(Zn(),")"),backgroundPosition:"center top",backgroundRepeat:"no-repeat"}}),[v,z,D]);return(0,r.jsx)("div",{ref:N,style:{position:"relative",height:"".concat(D?Bn:Rn,"px")},children:(0,r.jsxs)("div",{ref:j,tabIndex:0,className:(0,kn.Z)(Yn().scrollCueBox,h&&Yn().isReturning),style:Y,children:[!z&&!D&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:Yn().cueText,style:{position:"absolute",top:"".concat(U,"px")},children:"KEEP SCROLLING FOR NEXT ARTICLE"}),(0,r.jsx)("div",{className:Yn().cueArrows,children:[{width:36,height:62},{width:32,height:54},{width:24,height:42}].slice(0,T).map((function(t,e){var n=d.current?0:20*Q*e;return 0===n&&e>0?null:(0,r.jsx)("div",{className:Yn().cueArrowItem,style:{position:"absolute",left:"50%",transform:"translateX(-50%)",top:"".concat(U+24+n,"px"),zIndex:T-e},children:(0,r.jsx)(Qn,{width:t.width,height:t.height})},e)}))})]}),D&&(0,r.jsx)("div",{className:Yn().overlayHolder,children:(0,r.jsx)(Wn,{previousPath:n})})]})})},Fn=n(36503),Vn=n(84361),Jn=n(81374),qn=n(44381),Kn=n(50896),Xn=n(29572),$n=n(27354),ti=n(99151),ei=(0,F.Z)((function(t){var e=t.buzz,n=void 0===e?{}:e;return(0,Vn.k)(n),(0,Jn.L)(n),(0,qn.y)(n),(0,Kn.s)(n),(0,Xn.mH)(n.id),(0,$n.l)(n.id),(0,ti.Z)(n.id),null}),{onError:s.Tb}),ni={rootMargin:"100px 0px 0px 0px",threshold:0};function ii(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==c[1]?c[1]:"",t.prev=1,"string"===typeof e){t.next=5;break}return t.abrupt("return",null);case 5:return t.next=7,fetch("".concat(e,".json"));case 7:if((r=t.sent).ok){t.next=10;break}return t.abrupt("return",null);case 10:return t.next=12,r.json();case 12:if(u=t.sent,(null===(a=u.buzz||u)||void 0===a?void 0:a.id)&&(null===a||void 0===a||null===(i=a.metadata)||void 0===i?void 0:i.title)){t.next=16;break}return t.abrupt("return",null);case 16:return t.abrupt("return",{id:a.id,buzz:di({},a,{referrer:n}),subbuzzData:null!==(o=u.subbuzzes)&&void 0!==o?o:{subbuzzes:[],assets:{}},visible:!0,isActive:!1});case 20:return t.prev=20,t.t0=t.catch(1),t.abrupt("return",null);case 23:case"end":return t.stop()}}),t,null,[[1,20]])})));return function(e){return t.apply(this,arguments)}}(),[]),O=(0,u.useCallback)(li(xn().mark((function t(){var e,i,r,u,a,o;return xn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!m&&x.current){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,fetch("https://recsys-api.buzzfeed.com/web/shopping-package-internal?page_size=10");case 4:return e=t.sent,t.next=7,e.json();case 7:return i=t.sent,r=(i.results||[]).map((function(t){return t.url})).filter((function(t){return"string"===typeof t})),c(r.slice(1)),t.next=12,h(r[0],n);case 12:(u=t.sent)&&x.current&&(D((null===(a=u.buzz)||void 0===a?void 0:a.canonical_path)||(null===(o=u.buzz)||void 0===o?void 0:o.canonical_url)||""),g(u));case 14:case"end":return t.stop()}}),t)}))),[h,n,m]),A=(0,u.useCallback)(li(xn().mark((function t(){var e,n,i,r,u,a;return xn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==o.length){t.next=2;break}return t.abrupt("return");case 2:return e=gi(o),n=e[0],i=e.slice(1),x.current&&c(i),t.next=6,h(n,I);case 6:(r=t.sent)&&x.current&&(D((null===(u=r.buzz)||void 0===u?void 0:u.canonical_path)||(null===(a=r.buzz)||void 0===a?void 0:a.canonical_url)||""),g(r));case 8:case"end":return t.stop()}}),t)}))),[o,h,I]);(0,u.useEffect)((function(){if(d&&x.current){var t=requestAnimationFrame((function(){x.current&&(l((function(t){if(t.find((function(t){var e,n;return(null===(e=t.buzz)||void 0===e?void 0:e.id)===(null===(n=d.buzz)||void 0===n?void 0:n.id)})))return t;var e=yi(t);if(e[e.length-1]){var n=e[e.length-1];n.isActive=!1,e[e.length-1]=n}return d.isActive=!0,yi(e).concat([d])})),z(!0),g(null),b&&x.current&&!1===m&&requestAnimationFrame((function(){setTimeout((function(){var t=window.scrollY;(t<100||t>2*window.innerHeight)&&window.scrollTo({top:Math.min(400,.6*window.innerHeight),behavior:"auto"})}),100)})))}));return function(){return cancelAnimationFrame(t)}}}),[d,b,m]),(0,u.useEffect)((function(){li(xn().mark((function t(){return xn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,O();case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),console.error("loadInitial failed:",t.t0);case 8:case"end":return t.stop()}}),t,null,[[0,5]])})))()}),[O]);var v=function(t){l((function(e){if(t<0||t>=e.length)return e;var n=yi(e);return n[t]=di({},n[t],{visible:!1}),n}))},S=(0,u.useCallback)(function(){var t=li(xn().mark((function t(e){var n;return xn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=M[e],"function"===typeof i&&i(!0),b&&n&&x.current&&(T(di({},n,{previousPath:I})),v(e)),t.next=5,A();case 5:b&&x.current&&requestAnimationFrame((function(){setTimeout((function(){var t=document.querySelectorAll("[data-infinite-post]"),e=t[t.length-1];if(e){var n=e.getBoundingClientRect(),i=n.top+window.scrollY+Math.min(300,.2*n.height);window.scrollTo({top:i,behavior:"smooth"})}else window.scrollTo({top:Math.min(400,.6*window.innerHeight),behavior:"auto"})}),50)}));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[b,M,A,i,I]);return(0,u.useEffect)((function(){var t=Node.prototype.removeChild;return Node.prototype.removeChild=function(e){try{return this.contains&&this.contains(e)?t.call(this,e):this.parentNode&&this.parentNode.contains&&this.parentNode.contains(e)?this.parentNode.removeChild(e):e}catch(n){return e}},function(){Node.prototype.removeChild=t}}),[]),(0,r.jsxs)("div",{children:[L&&(0,r.jsx)(Gn,{previousPath:L.previousPath},"final-".concat(L.id)),M.map((function(t,e){var n,i;if(!t.visible)return null;var a="".concat(null===(n=t.buzz)||void 0===n?void 0:n.id,"-").concat((null===(i=t.buzz)||void 0===i?void 0:i.canonical_path)||"");return(0,r.jsxs)(u.Fragment,{children:[(0,r.jsx)(j.Z,{fallback:null,children:(0,r.jsx)(ci,{buzz:t.buzz,subbuzzData:t.subbuzzData,index:e,isActivePost:t.isActive})}),!(e===M.length-1&&0===o.length)&&(0,r.jsx)(Hn,{onExpandComplete:function(){return S(e)},onOffscreenScrollDown:function(){if(!b){var t=M[e];t&&x.current&&(T(di({},t,{previousPath:I})),v(e))}}})]},a)}))]})},pi=n(65584),mi=n.n(pi),zi=function(t){var e=t.buzz,n=t.badges,i=t.commentCount,u=t.destination,a=t.showShareBar,o=t.isFloatingButtonsEnd,c=Number(e.published),s="edit_updated"in e?Number(e.edit_updated):0,M=e.tags.includes("--updated-timestamp-only");return(0,r.jsx)("header",{className:"".concat(mi().postHead," postHead"),children:(0,r.jsxs)("div",{className:mi().container,children:[(0,r.jsx)(X.Z,{buzz:e,badges:n,designUpdateEnabled:!0}),(0,r.jsxs)("div",{className:mi().actionBarWrapper,children:[(0,r.jsx)(rt.Z,{className:mi().timestamp,timestampPublishedUnix:c,timestampUpdatedUnix:s,showUpdatedTimestampOnly:M,countryCode:e.country_code,destination:u}),(0,r.jsx)(A,{buzz:e,commentCount:i,showShareBar:a,destination:u,isFloatingButtonsEnd:o,designUpdateEnabled:!0})]})]})})};function fi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n1710959400),tt=(0,u.useState)(!1),et=tt[0],nt=tt[1],it=null===n||void 0===n||null===(e=n.metadata)||void 0===e?void 0:e.subbuzzId,rt=(0,u.useState)(!1),at=rt[0],ot=rt[1],ct=!n.isQuiz||(0,Qe.l)({isBFN:(0,d.G)(n)}),st=!(0,d.G)(n)&&!(0,h.K)(n)&&"Advertising"!==n.editorial_status&&!n.isShopping&&!n.isQuiz&&("en-us"===n.country_code||"en-ca"===n.country_code);(0,u.useEffect)((function(){it&&nt(!0)}),[it]),(0,u.useEffect)((function(){"is_v2"===E("ads_shopping_infinite_scroll_v2",{rejectErrors:!1})&&Q(!0)}),[E,n]),(0,u.useEffect)((function(){_&&_.loaded&&!(0,Ge.rK)(n)&&W(w("RT-1378-us-quiz-top-sticky-desktop")||w("ads-quiz-top-player-mobile"))}),[_,w,n]),(0,u.useEffect)((function(){if(_&&_.loaded){var t=w("taboola_apac");F(t);var e=w("taboola_au");q(e)}}),[_,w]);var Mt=(0,u.useCallback)((function(){c(!1)}),[c]),lt=/Safari/.test(navigator.userAgent)&&!/Chrome|Chromium|CriOS|FxiOS|Edg|OPR/.test(navigator.userAgent),jt=(0,u.useState)(!1),Nt=jt[0],dt=jt[1],gt=(0,u.useState)(!1),Lt=gt[0],Tt=gt[1],mt=(0,u.useState)(!1),zt=mt[0],ft=mt[1],It=(0,u.useState)(!1),xt=It[0],bt=It[1],ht=(0,u.useRef)(null),Ot=(0,u.useRef)(!0),St=(0,u.useCallback)((function(){Lt||Tt(!0)}),[Lt]),wt=(0,u.useCallback)((function(){Nt||requestAnimationFrame((function(){requestAnimationFrame((function(){Ot.current&&dt(!0)}))}))}),[Nt]),_t=(0,u.useCallback)((function(){ot(!0),St(),lt&&wt()}),[lt,St,wt]),Et=(0,u.useCallback)((function(){lt||wt()}),[lt,wt]);(0,u.useEffect)((function(){return Ot.current=!0,function(){Ot.current=!1}}),[]),(0,u.useEffect)((function(){var t=Node.prototype.removeChild;return Node.prototype.removeChild=function(e){try{return t.call(this,e)}catch(n){return null}},function(){Node.prototype.removeChild=t}}),[]),(0,u.useEffect)((function(){if(ht.current&&k){var t=ht.current,e=new IntersectionObserver((function(t){var e=Ii(t,1)[0];return bt(e.isIntersecting)}),ni);return e.observe(t),function(){e.disconnect()}}}),[k,Nt]),(0,u.useEffect)((function(){if(k){var t=function(t){return bt(t.detail.isVisible)};return window.addEventListener("infiniteScrollPackageVisible",t),function(){return window.removeEventListener("infiniteScrollPackageVisible",t)}}}),[k]);var Ct=function(){return(0,r.jsxs)(r.Fragment,{children:[H&&(0,r.jsx)(qt,{}),(0,r.jsx)(Ae.Z,{buzz:n}),!n.isShopping&&(0,r.jsxs)("div",{children:[!$&&(I?(0,r.jsx)(At,{}):(0,r.jsx)(Dt,{})),(0,r.jsx)(te,{}),!(0,We.bG)()&&(0,r.jsx)(yt.Z,{style:{marginBottom:"3rem"},isNewDesign:!0,isShoppingDesign:!1}),(0,r.jsx)(Z.Z,{buzz:n,commentCount:b,onCommentsLoaded:O,firstPage:100,repliesFirstPage:2,perPage:100,showEmojiReactions:$})]}),n.isShopping&&(0,r.jsx)(te,{}),(0,r.jsx)(tn,{}),J&&(0,r.jsx)(Ze,{}),!(0,d.G)(n)&&!n.isShopping&&ct&&(0,r.jsx)(S.Z,{type:"story-bpage-desktop",pixiedust:{unit_type:"buzz_bottom",unit_name:n.id,position_in_unit:1},style:{marginTop:"-2rem"}}),(0,r.jsx)(K.Z,{}),z&&!k&&ct&&(0,r.jsx)(S.Z,{type:"bigstory",pixiedust:{unit_type:"buzz_bottom",unit_name:n.id,position_in_unit:1}}),I&&(0,r.jsx)(xi,{})]})};return(0,r.jsxs)("main",{"aria-hidden":et,id:"buzz-content",className:"".concat(T().main," ").concat(T()[m]," refreshed_bpage embed-content"),ref:g,children:[(0,r.jsx)(j.Z,{onError:s.Tb,children:(0,r.jsx)(Ke,{buzz:n})}),(0,r.jsx)(ke,{buzz:n,isOpen:et,onRequestClose:function(){return nt(!1)},subbuzzData:i,subbuzzId:it},"shared-modal-".concat(n.id)),(0,r.jsxs)("article",{children:[st&&(0,r.jsx)(zi,{buzz:n,badges:a,commentCount:b,showShareBar:D,destination:m,isFloatingButtonsEnd:L}),(0,r.jsxs)("div",{className:"".concat(T().article," ").concat(T().default," ").concat(T()[m]," embed-post"),children:[(0,r.jsxs)("div",{className:T().content,children:[!Nt&&(0,r.jsxs)(r.Fragment,{children:[!st&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(X.Z,{buzz:n,badges:a}),(0,r.jsx)(A,{buzz:n,commentCount:b,showShareBar:D,destination:m,isFloatingButtonsEnd:L})]}),st&&(0,r.jsx)(ut.Z,{bylines:n.bylines,isAd:1===n.flags.ad,buzz:n,designUpdateEnabled:!0}),(0,r.jsx)(fe,{buzz:n,postRef:g}),(0,r.jsx)(En,{buzz:n}),n.tags.some((function(t){return["etsy-strategy","etsy_strategy","etsy strategy"].includes(t)}))&&(0,r.jsx)(Fe,{pixiedust:{unit_type:"buzz_body",unit_name:n.id,position_in_unit:0}}),(0,r.jsx)(Tn,{}),Y&&(0,r.jsx)(Cn.Z,{buzz:n,showOnTopQuiz:!0}),(0,r.jsx)(Pt.ZP,{buzz:n,subbuzzData:i,hideAds:at,pixiedust:{unit_type:"buzz_body",unit_name:n.id,position_in_unit:0}},n.id),n.hasStudiosPromoUnit&&(0,r.jsx)(Yt,{buzz:n}),(0,d.G)(n)&&(0,r.jsx)(ue,{buzz:n}),(0,r.jsx)(Xe,{buzz:n}),(0,r.jsx)(P,{buzz:n}),(0,r.jsx)(B.Z,{buzz:n}),!f&&n.walmartBundle&&(0,r.jsx)(Di,{buzz:n})]}),n.isShopping&&k&&!Nt&&(0,r.jsx)("div",{ref:ht,className:T().infiniteScrollPackageWrapper,children:(0,r.jsx)(yt.Z,{isNewDesign:!0,isShoppingDesign:!0,limitedItems:z?2:3})}),n.isShopping&&k&&(0,r.jsxs)(r.Fragment,{children:[!zt&&(0,r.jsx)(Hn,{onExpandComplete:_t,onOffscreenScrollDown:Et,previousPath:n.canonical_path||n.canonical_url}),Lt&&(0,r.jsx)(Ti,{disableDefaultIS:ft})]}),(0,r.jsxs)(j.Z,{onError:s.Tb,children:[(0,r.jsx)(In,{buzz:n}),(0,r.jsx)(S.Z,{type:"subbuzz",pixiedust:{unit_type:"buzz_bottom",unit_name:n.id,position_in_unit:0}}),"Japan"===n.classification.edition&&(0,r.jsx)(Gt,{isMobile:z}),"Japan"===n.classification.edition?(0,r.jsx)("div",{id:"taboola-split-01",children:Ct()}):Ct()]})]}),(0,r.jsx)(pn.Z,{pixiedust:{unit_type:"sidebar",unit_name:"right",position_in_unit:0},shouldStopSticky:xt},null===n||void 0===n?void 0:n.id)]})]}),(0,r.jsxs)(j.Z,{onError:s.Tb,children:[(!k&&n.isShopping||!n.isShopping&&(0,We.bG)())&&(0,r.jsx)(yt.Z,{style:{marginTop:z?"1rem":"-2rem",marginBottom:"3rem"},isNewDesign:!0,isShoppingDesign:n.isShopping,variant:st||n.isQuiz?"refreshed":""}),(0,r.jsx)(vt.d$,{listLayout:n.isShopping?"gridNarrow":"grid",className:st||n.isQuiz?"refreshed":"",variant:st?"wavesSection":"bottomUnit"}),n.isShopping&&"Japan"!==n.classification.edition&&!k&&(0,r.jsx)(Sn,{}),!n.isShopping&&(0,r.jsx)(he,{}),"Japan"===n.classification.edition&&(0,r.jsx)(Gt,{placement:2,isMobile:z}),(0,d.G)(n)&&(0,r.jsx)(N.Z,{jumpTo:"news-footer",className:"skipToFooter",label:"Skip to footer"}),!k&&(0,r.jsx)(vt.cM,{className:st||n.isQuiz?"refreshed":""}),(0,r.jsx)("div",{ref:p})]}),o&&(0,r.jsx)(pt,{onOverlayClick:Mt})]})}bi.propTypes={buzz:o().object.isRequired,badges:o().array,subbuzzData:o().shape({assets:o().object,subbuzzes:o().array,gateIndex:o().number})};var hi=bi;function Oi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ai(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Si(t){var e=t.buzz,n=vi(t,["buzz"]);return function(t,e){var n=(0,u.useContext)(Oe.Z),i=n.experiments,r=n.getFeatureFlagValue;(0,u.useEffect)((function(){e&&e.eventBus&&i&&i.loaded&&(r("RT-1510-ButtonPostTap-Non-Amazon")||e.eventBus.on("ads:initialized",(function(){(0,Ve.v)("https://www.dwin2.com/pub.304459.min.js")})))}),[e,t,i,r])}(e,(0,u.useContext)(c.$)),"wide"===e.format.page_width?(0,r.jsx)(Re,Ai({buzz:e},n)):(0,r.jsx)(hi,Ai({buzz:e},n))}Si.propTypes={buzz:o().object.isRequired};var wi=Si},93935:function(t,e,n){"use strict";function i(t){return!(t.flags.sensitive||"news"===t.metavertical||"Japan"===t.classification.edition||"France"===t.classification.edition||t.tags.includes("--add-yours")||t.tags.includes("--post-content-only")||t.tags.includes("--disable-emoji-reactions"))}n.d(e,{h:function(){return i}})},11455:function(t,e,n){"use strict";function i(t){return!(t.flags.sensitive||"news"===t.metavertical||"Japan"===t.classification.edition||"France"===t.classification.edition||t.tags.includes("--add-yours")||t.tags.includes("--post-content-only")||t.tags.includes("--disable-emoji-reactions"))}n.d(e,{h:function(){return i}})},15208:function(t,e,n){"use strict";function i(t){return![t.flags.sensitive,t.shouldHideRecircSection].some((function(t){return t}))}n.d(e,{h:function(){return i}})},60382:function(t){"use strict";t.exports={isEligible:function(t){return![t.isAd,t.isShopping,t.bfpFormats.includes("related_links"),"long"===t.format.page_type,t.tags.includes("coronavirus")||t.tags.includes("Coronavirus"),!t.isEnglish,!t.isModerated,t.shouldHideRecircSection].some((function(t){return t}))}}},42494:function(t,e,n){"use strict";n.d(e,{cM:function(){return L},d$:function(){return j},ru:function(){return T}});var i=n(36491),r=n(52322),u=n(2784),a=n(41332),o=n(54761),c=n(60382);function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function M(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t-1?d("sidebar:debug"):g("sidebar:debug")}),[e,d,g]),(0,o.useEffect)((function(){if(k.current!==c){(0,W.AV)("info","lifecycle","[SidebarDensity] BuzzId change detected: ".concat(k.current," \u2192 ").concat(c)),S(!1),clearTimeout(U.current),U.current=null,C.current=null;try{g("sidebar:active-item"),g("sidebar:preload-item"),g("sidebar:timer")}catch(t){console.error(t)}x(!0),O(!0),k.current=c}}),[c,g]),(0,o.useEffect)((function(){if(null===M||void 0===M?void 0:M.loaded){var t=k.current!==c,n=e!==C.current,i=null===C.current;(t||n||i)&&(C.current=e,S(!1),d("sidebar:preload-item"),clearTimeout(U.current),d("sidebar:timer"),x(!0),(0,W.AV)("info","lifecycle","Sidebar Refresh: (page: ".concat(e,", buzzId: ").concat(c,"), Timer started... (").concat(Y/1e3," seconds); Timestamp: ").concat(Date.now())),U.current=setTimeout((function(){(0,W.AV)("info","lifecycle","Sidebar Refresh: Timer expired (page: ".concat(e,", buzzId: ").concat(c,")")),U.current=null,g("sidebar:timer"),x(!1)}),Y))}}),[e,c,d,g,M,Y]),(0,o.useEffect)((function(){return function(){return clearTimeout(U.current)}}),[]),(0,o.useEffect)((function(){if((0,W.AV)("info","lifecycle","Sidebar Refresh: Checking preload conditions - isTimerLocked: ".concat(D,", isCurrentItemLocked: ").concat(h,", preloadNext: ").concat(v)),!D&&!h){(0,W.AV)("info","lifecycle","Sidebar Refresh: Both locks released, setting preloadNext to true"),S(!0);var t=setTimeout((function(){g("sidebar:preload-item")}),2e3);return function(){return clearTimeout(t)}}(0,W.AV)("info","lifecycle","Sidebar Refresh: Locks still active - timer: ".concat(D,", currentItem: ").concat(h))}),[z,D,h,v,g]),(0,o.useEffect)((function(){p({idx:e%y,props:{mode:"active",sidebarPage:e,acquireLock:function(){d("sidebar:active-item"),O(!0)},releaseLock:function(){g("sidebar:active-item"),O(!1)}}});var t=e+1;f({idx:t%y,props:{mode:"preload",sidebarPage:t,acquireLock:function(){d("sidebar:preload-item")},releaseLock:function(){g("sidebar:preload-item")}}})}),[e,y,d,g]),(0,o.useEffect)((function(){a&&(a.pattern=o.Children.map(n,(function(t){return t.type===Q})))}),[n,a]),T&&z&&o.Children.map(n,(function(t,n){var r=n===T.idx,u=v&&n===z.idx,a=r?T.props:u?z.props:{mode:"inactive"};return(0,i.jsx)(F,function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n0||x.bottom>0);return z.current&&(B(),_.Z.subscribe(B)),t&&f.current&&(W(),_.Z.subscribe(W)),function(){_.Z.unsubscribe(B),t&&_.Z.unsubscribe(W)}}),[e.id,B,W,I,x]);var G=(0,o.useMemo)((function(){if(-1===I||0===x.top)return L;var t=document.querySelector(".embed-content"),e=t?t.getBoundingClientRect().top+window.pageYOffset:0,n=x.top-e,i=Math.max(n-50,200);return i}),[I,x.top,L]),H=(0,o.useMemo)((function(){if(-1===I||0===x.top)return L;return L}),[I,x,L]),F=(0,o.useMemo)((function(){if(-1===I||0===x.bottom)return 0;var t=document.querySelector(".embed-content"),e=t?t.getBoundingClientRect().top+window.pageYOffset:0;return x.bottom-e+50}),[I,x.bottom]),V=-1!==I&&x.top>0&&x.bottom>0;return A?(0,i.jsxs)(i.Fragment,{children:[u,(0,i.jsx)("section",{className:"".concat(d().sidebar," ").concat(d()[c]," ").concat(e.isAd?d().sidebarBranded:""),"aria-label":"".concat(l("promoted_content")," - Before Generator"),ref:z,style:ut({maxHeight:"".concat(G,"px"),overflow:"visible"},u),children:(0,i.jsxs)("div",{ref:m,className:"".concat(X.container," ").concat(y?X.transitioning:""),style:{top:"".concat(w,"px")},children:[u,(0,i.jsxs)(K,{sidebarPage:2*Math.floor(N/2),onNextPageReady:function(){return g((function(t){return t+1}))},maxHeight:G,isIntersecting:p,buzzId:"".concat(e.id,"-before"),adManager:A,children:[(0,i.jsx)(Q,{adManager:A,pixiedust:ut({},r,{unit_name:"".concat(r.unit_name,"_before_generator"),position_in_unit:0})}),(0,i.jsx)(Q,{adManager:A,pixiedust:ut({},r,{unit_name:"".concat(r.unit_name,"_before_generator"),position_in_unit:1})})]})]})}),(0,i.jsx)("section",{className:"".concat(d().sidebar," ").concat(d()[c]," ").concat(e.isAd?d().sidebarBranded:""),"aria-label":"".concat(l("promoted_content")," - After Generator"),ref:f,style:ut({transform:"translateY(0) translateX(-430px)",marginTop:"".concat(F,"px"),height:"".concat(H,"px"),overflow:"visible"},u),children:(0,i.jsxs)("div",{className:"".concat(X.container," ").concat(y?X.transitioning:""),ref:m,style:{top:"60px"},children:[u,V&&(0,i.jsxs)(K,{sidebarPage:2*Math.floor(N/2)+1,onNextPageReady:function(){return g((function(t){return t+1}))},maxHeight:H,isIntersecting:p,buzzId:"".concat(e.id,"-after"),adManager:A,children:[(0,i.jsx)(Q,{adManager:A,pixiedust:ut({},r,{unit_name:"".concat(r.unit_name,"_after_generator"),position_in_unit:0})}),(0,i.jsx)(Q,{adManager:A,pixiedust:ut({},r,{unit_name:"".concat(r.unit_name,"_after_generator"),position_in_unit:1})})]})]})})]}):null}ot.propTypes={buzz:m().object,containerRef:m().shape({current:m().object}),pixiedust:m().object};var ct=ot;function st(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mt(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return c.i18n.t(t.toLowerCase(),e)},x=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.baseUrl=e,this.abeagle=n,this.addBehavior=j.Application.addBehavior.bind(j.Application),this.addModule=j.Application.addModule.bind(j.Application),this.broadcast=j.Application.broadcast.bind(j.Application),this.on=j.Application.on.bind(j.Application),this.off=j.Application.off.bind(j.Application),this.start=j.Application.start.bind(j.Application),this.startAll=j.Application.startAll.bind(j.Application),this.stop=j.Application.stop.bind(j.Application),this.getGlobalConfig=j.Application.getGlobalConfig.bind(j.Application)}var e,n,i;return e=t,(n=[{key:"init",value:function(t){var e={abeagle:this.abeagle,bf_url:this.baseUrl,canonical_path:t.canonical_path,category:t.category,country:t.country_code,edition:t.classification.edition,debug:"dev"===L.ENV||"stage"===L.ENV,description:t.description,formatDate:I(t),isAd:t.isAd,language:t.language,mango_url:L.mango_url,picture:t.picture,shareBehavior:"share-behavior",tags:t.tags,laser_tags:t.laser_tags,title:t.title,tracking:this.tracking,translate:D};j.Application.init(e),j.Application.addBehavior("share-behavior",y.bind(null,t))}},{key:"destroy",value:function(){j.Application.destroy()}},{key:"_setTrackingFns",value:function(t){this.tracking=t}}])&&f(e.prototype,n),i&&f(e,i),t}();function b(){var t=(0,r.useState)(null),e=t[0],n=t[1],i=(0,r.useContext)(m.Z).buzz,u=void 0===i?{}:i,a=(0,r.useContext)(T.Z).base_url,o=(0,p.Z)(u),c=(0,z.Z)();return(0,r.useEffect)((function(){window.BZFD.App=window.BZFD.App||new x(a,c),window.BZFD.App._setTrackingFns(o),n(window.BZFD.App)}),[u.id,o]),e}var h=n(42235);function O(t,e,n,i,r,u,a){try{var o=t[u](a),c=o.value}catch(s){return void n(s)}o.done?e(c):Promise.resolve(c).then(i,r)}function A(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var u=t.apply(e,n);function a(t){O(u,i,r,a,o,"next",t)}function o(t){O(u,i,r,a,o,"throw",t)}a(void 0)}))}}var v=n(67176),S=n(73035),w=n(32966);function _(t){var e=t.buzz,n=void 0===e?{}:e,i=t.index,u=(0,r.useRef)(null),a=(0,r.useContext)(w.Z),o=a.experiments,c=a.getFeatureFlagValue;return(0,r.useEffect)((function(){var t=u.current,e=c("ads_amazon_nca");t&&o.loaded&&e&&t.querySelectorAll("a[href]").forEach((function(t){(0,v.D1)(t.href)&&(t.classList.contains("js-aagc-modified")||(t.classList.add("js-aagc-modified"),function(t){var e=t.element;if(e){var n=e.href.match("/([a-zA-Z0-9]{10})(?:[/?]|$)"),i=new URL(e.href);e.setAttribute("data-aps-asin",n&&!(0,S.B$)(e.href)?n[1]:null),e.setAttribute("data-aps-asc-tag",i.searchParams.get("tag")),e.setAttribute("data-aps-asc-subtag",i.searchParams.get("ascsubtag"))}}({element:t,buzz:n,index:i})))}))}),[o]),u}var E=n(91872);var C=n(16981),k=n(88163),Q=n(93955);var U=n(50946);function Y(t){var e=t.buzz,n=void 0===e?{}:e,i=(0,r.useRef)(null),u=(0,r.useContext)(w.Z).experiments;return(0,r.useEffect)((function(){var t=i.current,e=-1!==U.wo.indexOf(n.classification.edition.toLowerCase()),r=-1!==U.u.indexOf(n.classification.section.toLowerCase()),a=U.gK.some((function(t){return n.tags.includes(t)})),o="uk"===n.classification.edition.toLowerCase()&&"shopping"!==n.classification.section.toLowerCase();if(!(!t||e||r||a||n.isAd||0!==n.flags.sensitive||0!==n.flags.nsfw||o)){var c=(0,S.wp)(u);t.querySelectorAll("a[href]").forEach((function(t){t.classList.contains("js-skimlink-subtag-modified")||(t.classList.add("js-skimlink-subtag-modified"),t.hasAttribute("data-skimlinks-tracking")||t.setAttribute("data-skimlinks-tracking",n.id||""),t.addEventListener("click",(function(t){!function(t){var e=t.element,n=t.experimentSubtags;if(e){var i="https://go.redirectingat.com/".replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),r=i+"/?\\?id=(.*)&sref=(.*)&url=(http.*)&xs=(.*)",u=new RegExp(i+"/?\\?id=(.*)&site=(.*)&xs=(.*)&url=(http.*)"),a=new RegExp(r),o=(0,v.nC)(e)["link-id"];if(u.test(e.href)||a.test(e.href)){var c=decodeURIComponent((0,v.Wy)(e).xcust||"").split("|")||"";c[1]=(0,S.b5)(),c[2]=(0,S.o6)(),c[3]=n,c[4]=o,(0,v.tF)(e,{xcust:encodeURIComponent(c.join("|"))})}}}({element:t.target.closest("a"),experimentSubtags:c})}),{once:!0}))})),document.querySelector('script[src*="skimresources"]')||(0,h.v)("https://s.skimresources.com/js/74679X1524629.skimlinks.js")}}),[n.id,u.loaded]),i}var P=n(48882),Z=n(91904);function B(t,e,n,i,r,u,a){try{var o=t[u](a),c=o.value}catch(s){return void n(s)}o.done?e(c):Promise.resolve(c).then(i,r)}var R=function(){var t,e=(t=M().mark((function t(e){var n,i,r,u,a,o;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(n=e.element).hasAttribute("data-affiliate")&&n.hasAttribute("data-vars-product-id")&&(i=(0,v.nC)(n),r=i["product-id"],u=JSON.parse(localStorage.getItem("clickedProducts")||"[]"),a={id:i["product-id"],timestamp:Date.now()},o=u.some((function(t){return t.id===r})),r&&!o&&u.push(a),window.localStorage.setItem("clickedProducts",JSON.stringify(u)));case 2:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var u=t.apply(e,n);function a(t){B(u,i,r,a,o,"next",t)}function o(t){B(u,i,r,a,o,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}();function W(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t||P)&&g.current&&Q.sort((function(t,e){var n,i;return((null===t||void 0===t||null===(n=t.messageData)||void 0===n?void 0:n.subbuzzIndex)||0)-((null===e||void 0===e||null===(i=e.messageData)||void 0===i?void 0:i.subbuzzIndex)||0)})).forEach((function(t){g.current.onBFPReady(t.messageData)}))}),[Q,g,s.id,s.sub_buzzes,P]),(0,r.useEffect)((function(){if(!x.loaded)return function(){};if("loaded"!==l.status)return function(){};var t,e,n=2;return s.is_quiz&&!s.isBFPQuiz&&((N||_)&&(n=1),"us"===j&&(0,ut.tq)()&&(n=2),(t=(0,it.Z)({AdUnit:at.Z,buzz:s,disablePromo1Native:A,element:d.current,onAdsReady:function(t){return p(T.concat(t))},pixiedust:f,presetDensity:n,skipNUnits:!1})).init()),(e=(0,nt.Z)({AdUnit:st,buzz:s,element:d.current,onAdsReady:function(t){p(T.concat(t))},pixiedust:f,abeagle:{experiments:x,getExperimentValue:O},skipNUnits:!1,presetDensity:"variant_2"===E?"density_shopping_increase":"control"!==C?"density_"+C:!(!N&&!v)&&"density_200",presetPlacements:"variant_2"===E?"placements_shopping_increase":"control"!==C?"placements_"+C:!(!N&&!v)&&"placements_1",looseTitles:"increase"===C,densityLogic:S?"subbuzz":"default"})).init(),function(){e&&e.destroy(),t&&t.destroy()}}),[s.id,l,x.loaded]),(0,r.useEffect)((function(){if(!x.loaded)return function(){};if("loaded"!==l.status)return function(){};var t=2;return s.bfpFormats.length>0&&((N||_||"increase"===C)&&(t=1),"us"===j&&(0,ut.tq)()&&(t=2),g.current=(0,rt.Z)({AdUnit:at.Z,disablePromo1Native:A,element:d.current,onAdsReady:function(t){return p(T.concat(t))},pixiedust:f,presetDensity:t,skipNUnits:!1}),g.current.init()),function(){g.current&&g.current.destroy()}}),[s.id,l,x.loaded]),(0,r.useEffect)((function(){if((0,F.G)(s)&&(null===d||void 0===d?void 0:d.current)&&!window.pgmApi&&T.length&&"disabled"!==l.status){var t=document.createElement("div");t.setAttribute("id","publicGood"),t.classList.add("loading","clearfix","ad-ex");var e={partnerId:"buzzfeed-buzzfeed-news"};"dev"!==L.CLUSTER&&"stage"!==L.CLUSTER||(e.attributes={targetId:"2d3d74ba-3807-4e28-875a-dfc5d67706f8",targetType:"campaign"}),(0,h.v)("https://assets.publicgood.com/pgm/v1/pgm-api.js",document.body).then(function(){var n,i=(n=M().mark((function n(i){var r;return M().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,i.onload();case 2:r=Math.floor(T.length/2),d.current.querySelectorAll(".js-ad-placement")[r].insertAdjacentElement("afterend",t),window.pgmApi.create(t,dt({},e,{onShow:function(){t.classList.remove("loading");var e=document.createElement("h2");e.classList.add("ad__disclosure--ex"),e.innerText="ARTICLE CONTINUES BELOW",t.insertAdjacentElement("afterbegin",e)},onHide:function(){window.pgmApi.remove(),t.remove()}}));case 6:case"end":return n.stop()}}),n)})),function(){var t=this,e=arguments;return new Promise((function(i,r){var u=n.apply(t,e);function a(t){jt(u,i,r,a,o,"next",t)}function o(t){jt(u,i,r,a,o,"throw",t)}a(void 0)}))});return function(t){return i.apply(this,arguments)}}())}}),[s,l,T,d,h.v]),(0,i.jsxs)("div",{ref:d,children:["Japan"!==s.classification.edition&&(0,i.jsx)(Mt.Z,{buzz:s}),(0,i.jsx)(t,dt({},e)),!I&&T.map((function(t,e){return(0,i.jsx)(t,{},e)}))]})}},Tt=n(90783),pt=n(64228);function mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=b(),n=(0,r.useState)(!1),i=n[0],u=n[1],a=(0,r.useRef)(t).current;return(0,r.useEffect)((function(){if(!i){if(t.inline_js){var e=document.body,n=document.createElement("script");n.innerHTML=t.inline_js,e.appendChild(n)}t.js&&function(){r.apply(this,arguments)}()}function r(){return r=A(M().mark((function e(){return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Promise.all(t.js.map(function(){var t=A(M().mark((function t(e){return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,h.v)(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 3:u(!0),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),(0,l.Tb)(e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),r.apply(this,arguments)}}),[a,i]),e&&i?e:null}(u.assets);!function(){var t=(0,r.useContext)(m.Z).buzz,e=void 0===t?{}:t;(0,r.useEffect)((function(){window.clientEventTracking={getPageContextLayer:function(){return(0,Q.z4)(e)},env:L.CLUSTER}}),[e])}();var j=(0,c.useTranslation)("common").t,N=u.subbuzzes?zt(u.subbuzzes):[],d=["list","long"].reduce((function(t,n){return e.format.page_type.includes(n)&&(t+="buzz--".concat(n)),t}),"");if("breaking"===e.format.page_type&&N.length){var g=N.find((function(t){return t.includes("buzz__update")}));if(g){var y=N.indexOf(g);N.splice(y,0,'

'.concat(j("updates"),"

"))}}return(0,r.useEffect)((function(){return s&&s.init&&s.init(e),function(){s&&s.stopAll&&s.stopAll()}}),[e,s]),(0,i.jsx)("div",{className:"\n ".concat(d,"\n buzz--").concat(e.category,"\n subbuzzes-wrapper\n subbuzzes--").concat(a,"\n "),ref:o,children:N.map((function(t,n){return(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)(ft,{html:t,buzz:e,index:n,isContentGate:n===(null===u||void 0===u?void 0:u.gateIndex)},n),3===n&&e.isShopping&&(0,i.jsx)($,{buzz:e}),9===n&&!e.isShopping&&!(0,pt.H)(e)&&(0,i.jsx)($,{buzz:e})]},n)}))})};It.propTypes={subbuzzData:a().shape({assets:a().object,subbuzzes:a().array,gateIndex:a().number})};var Dt=Lt(It)},87782:function(t,e,n){"use strict";n.d(e,{R:function(){return r}});var i=n(52322),r=(n(2784),function(t){var e=t.className,n=t.title;return(0,i.jsxs)("svg",{className:e,width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("title",{children:n}),(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.27523 5.56827C4.23302 4.7943 4.97054 3.53398 4.09702 1.20966C4.05888 1.10818 4.12984 0.996484 4.23384 1.00008C6.60725 1.08227 7.38895 2.49406 7.55549 3.55764C7.57548 3.68534 7.7258 3.74623 7.80674 3.64852C8.04711 3.35834 8.16495 3.07659 8.21796 2.68347C8.23055 2.59011 8.31636 2.52555 8.40107 2.55728C10.6095 3.38442 12.611 8.54389 9.06735 10.9912C8.18537 11.6003 7.09443 12 5.49491 12C0.264165 12 0.0585377 5.79591 2.53411 4.50389C2.62499 4.45646 2.72658 4.52966 2.72853 4.63606C2.73811 5.16085 2.79941 5.44317 3.14546 5.58896C3.1889 5.60727 3.23815 5.59823 3.27523 5.56827ZM4.74694 8.61492C5.2834 8.41232 5.44213 8.06461 5.32499 7.04099C5.31387 6.94385 5.37569 6.85118 5.46883 6.84489C6.17095 6.79744 6.64689 7.38457 6.77326 7.99462C6.81071 8.17537 7.0958 8.32731 7.22146 8.19745C7.35066 8.06394 7.47293 7.92235 7.54788 7.79364C7.75577 7.43666 7.87043 7.35836 7.96898 7.4063C8.99028 7.90303 9.20916 10.1783 7.45637 11.3888C7.00445 11.701 6.44546 11.9058 5.62587 11.9058C3.03797 11.9058 2.85061 8.94201 3.98265 8.14192C4.08431 8.07006 4.20732 8.1614 4.25906 8.27792C4.33549 8.45004 4.48643 8.55385 4.63943 8.6147C4.674 8.62845 4.71215 8.62805 4.74694 8.61492Z",fill:"#6645DC",stroke:"#6645DC",strokeWidth:"0.666667"})]})})},48185:function(t,e,n){"use strict";function i(t,e){return!(!t.isShopping||e||t.isAd||!["US","UK"].includes(t.classification.edition)||!t.isEnglish)}n.d(e,{h:function(){return i}})},50946:function(t,e,n){"use strict";n.d(e,{wo:function(){return i},gK:function(){return r},u:function(){return u}});var i=["japan"],r=["--disable-skimlinks-lib","noskimlinks"],u=["advertiser","aunews","business","canadanews","community","francenews","japannews","lgbt","politics","quickpost","science","tech","uknews","ukpolitics","usnews","world"]},32617:function(t){"use strict";t.exports={ADVERTISING:"Advertising",EDITORIAL:"Editorial",MODERATED_COMMUNITY:"Moderated Community",UNMODERATED_COMMUNITY:"Unmoderated Community"}},32966:function(t,e,n){"use strict";var i=n(27625);e.Z=i.Z},41332:function(t,e,n){"use strict";n.d(e,{E:function(){return a}});var i=n(52322),r=n(2784),u=r.createContext({});e.Z=u;var a=function(t){var e=t.value,n=t.children,a=(0,r.useState)(e),o=a[0],c=a[1];return(0,i.jsx)(u.Provider,{value:{buzz:o,setValue:c},children:n})}},49101:function(t,e,n){"use strict";n.d(e,{C:function(){return r}});var i=n(2784).createContext({}),r=i.Provider;e.Z=i},13607:function(t,e,n){"use strict";n.d(e,{x:function(){return r}});var i=n(2784).createContext({}),r=i.Provider;e.Z=i},99112:function(t,e,n){"use strict";var i=n(2784).createContext({});i.Provider;e.Z=i},36001:function(t,e,n){"use strict";var i=n(98638);e.Z=i.Z},33402:function(t,e,n){"use strict";n.d(e,{j2:function(){return j},iZ:function(){return d},Ey:function(){return y},rb:function(){return T},Sy:function(){return m},Lk:function(){return f},_l:function(){return D}});var i=n(94776),r=n.n(i),u=n(30353),a=n(20237),o=n(3379);function c(t,e,n,i,r,u,a){try{var o=t[u](a),c=o.value}catch(s){return void n(s)}o.done?e(c):Promise.resolve(c).then(i,r)}function s(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var u=t.apply(e,n);function a(t){c(u,i,r,a,o,"next",t)}function o(t){c(u,i,r,a,o,"throw",t)}a(void 0)}))}}var M={},l=function(t,e){if(null===e||void 0===e?void 0:e.hasVideoSubbuzz)return console.info("Disabled the Facebook Pixel on posts that include a video"),{trackEvent:function(){}};if(!(null===e||void 0===e?void 0:e.isShopping))return console.info("Disabled the Facebook Pixel on non-shopping posts"),{trackEvent:function(){}};if(!M[t]){var n=u.destinations[t].facebook_tracking_id;M[t]=new a.mS({trackingId:n,cluster:u.CLUSTER})}return M[t]};function j(t,e,n){return N.apply(this,arguments)}function N(){return(N=s(r().mark((function t(e,n,i){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l(e,n);case 2:t.sent.trackEvent({eventType:"PageView",eventData:i});case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function d(t,e,n){return g.apply(this,arguments)}function g(){return(g=s(r().mark((function t(e,n,i){var u,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l(e,n);case 2:u=t.sent,(a=o.Z.get("hem"))&&(i.em=atob(a.replace(/"/g,""))),u.trackEvent({eventType:"AddToCart",eventData:i}),u.trackEvent({eventType:"Purchase",eventData:i});case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function y(t,e,n){return L.apply(this,arguments)}function L(){return(L=s(r().mark((function t(e,n,i){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l(e,n);case 2:t.sent.trackEvent({eventType:"newsletterSignup",eventData:i,options:{custom:!0}});case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function T(t,e,n){return p.apply(this,arguments)}function p(){return(p=s(r().mark((function t(e,n,i){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l(e,n);case 2:t.sent.trackEvent({eventType:"Share",eventData:i,options:{custom:!0}});case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function m(t,e,n){return z.apply(this,arguments)}function z(){return(z=s(r().mark((function t(e,n,i){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l(e,n);case 2:t.sent.trackEvent({eventType:"Lead",eventData:i});case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function f(t,e,n){return I.apply(this,arguments)}function I(){return(I=s(r().mark((function t(e,n,i){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l(e,n);case 2:t.sent.trackEvent({eventType:"CompletedQuiz",eventData:i,options:{custom:!0}});case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function D(t,e,n){return x.apply(this,arguments)}function x(){return(x=s(r().mark((function t(e,n,i){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l(e,n);case 2:t.sent.trackEvent({eventType:"QuizAnswer",eventData:i,options:{custom:!0}});case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},5291:function(t,e,n){"use strict";n.d(e,{p:function(){return j},w:function(){return d}});var i,r=n(94776),u=n.n(r),a=n(20237),o=n(30353),c=n(18215);function s(t,e,n,i,r,u,a){try{var o=t[u](a),c=o.value}catch(s){return void n(s)}o.done?e(c):Promise.resolve(c).then(i,r)}function M(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var u=t.apply(e,n);function a(t){s(u,i,r,a,o,"next",t)}function o(t){s(u,i,r,a,o,"throw",t)}a(void 0)}))}}var l=function(){return i||(i=new a.FC({cluster:o.CLUSTER,ids:o.outbrain_ids})),i};function j(){return N.apply(this,arguments)}function N(){return(N=M(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:"JP"===c.Z.get("bf-geo-country")&&l().trackPageView();case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function d(){return g.apply(this,arguments)}function g(){return(g=M(u().mark((function t(){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:"JP"===c.Z.get("bf-geo-country")&&l().trackAffiliateClick();case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},95829:function(t,e,n){"use strict";n.d(e,{k:function(){return y},m:function(){return T}});var i=n(94776),r=n.n(i),u=n(5229),a=n(20237),o=n(30353);function c(t,e,n,i,r,u,a){try{var o=t[u](a),c=o.value}catch(s){return void n(s)}o.done?e(c):Promise.resolve(c).then(i,r)}function s(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var u=t.apply(e,n);function a(t){c(u,i,r,a,o,"next",t)}function o(t){c(u,i,r,a,o,"throw",t)}a(void 0)}))}}function M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l={},j=function(t){if(!t||!t.destination_name||!t.classification)throw new Error("Could not initialize Permutive because no buzz data was passed to establish the edition for a new instance.");var e=function(t){var e=t.classification,n=t.destination_name,i=e.edition,r=o.destinations[n].permutive_creds,u=r[i]||r.default,a=u.api_key;return{projectId:u.project_id,apiKey:a}}(t),n=t.destination_name,i=t.classification.edition;return l["".concat(n,"_").concat(i)]||(l["".concat(n,"_").concat(i)]=new a.TZ(function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:"",n="bf-affiliate",i=e.toLowerCase(),r=a.Z.get(n),u=new Set;r&&(u=new Set(r.split(",")));var o=(null===(t=Object.entries(x).find((function(t){var e=D(t,2);e[0];return e[1].some((function(t){return-1!==i.indexOf(t)}))})))||void 0===t?void 0:t[0])||"other";u.add(o);var c=a.Z.getBuzzfeedSubdomainOrWildcard(window.location.hostname);a.Z.set({name:n,value:Array.from(u).join(","),days:365,domain:c})},h=function(){var t,e=(t=r().mark((function t(e){var n,i,u,a,M,l,j;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.subbuzzElement,i=e.element,u=e.buzz,a=e.isPermutiveEnabled,i.hasAttribute("data-affiliate")&&(M=(0,T.nC)(i),l=n?n.querySelector("div.subbuzz-anchor"):null,j=l&&l.id?l.id:null,b(null===M||void 0===M?void 0:M.affiliate),(0,o.iZ)(u.destination_name,u,{section:u.classification.section,currency:M["price.currency"],contents:M.href,value:M["price.value"],linkId:M["link-id"],"subbuzz-id":j}),a&&(0,s.m)({affiliate:M.affiliate,campaign:M.campaign,href:M.href,name:M.name,price:{value:Number(parseFloat(M["price.value"]||0).toFixed(2)),currency:M["price.currency"]||""},redirectUrl:M.redirecturl,keywords:"string"===typeof M.keywords?M.keywords.split(","):[],retailers:"string"===typeof M.retailers?M.retailers.split(","):[],affiliateLinkId:M["link-id"]},u),(0,c.w)(),y());case 2:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var u=t.apply(e,n);function a(t){I(u,i,r,a,o,"next",t)}function o(t){I(u,i,r,a,o,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}();function O(t){var e=t.buzz,n=void 0===e?{}:e,i=(0,u.useRef)(null),r=(0,u.useContext)(z.Z).tracking,a=r.consentValue,o=r.isConsentReady,c=(0,u.useContext)(m.Z),s=c.getFeatureFlagValue,M=c.experiments,l=c.getExperimentValue,j=s("ADSGROUP-442-permutive"),N=(0,u.useState)(null),d=N[0],g=N[1];(0,u.useEffect)((function(){M&&M.loaded&&g(l("ads_permutive_non_shopping",{rejectErrors:!1}))}),[M,l]);var y=j&&(n.isShopping||(null===M||void 0===M?void 0:M.loaded)&&"control"===d);return(0,u.useEffect)((function(){var t=i.current;!t||!o||o&&!a||null===j||null===d&&!n.isShopping||t.querySelectorAll("a[href]").forEach((function(e){(0,p.Uz)(e)&&e.addEventListener("click",(function(e){h({subbuzzElement:t,element:e.target.closest("a"),buzz:n,isPermutiveEnabled:y})}))}))}),[n,o,a,j,d]),i}},73385:function(t,e,n){"use strict";n.d(e,{s:function(){return c}});var i=n(2784),r=n(90093),u=n(93955);function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.useMemo)((function(){return{trackClick:function(){t&&t.id&&(0,r.bC)(t,o({item_name:"comment-cta",item_type:"button",action_value:"comment-cta",action_type:"navigate",unit_name:t.id,unit_type:"buzz_head"},e))},trackImpression:function(n){(0,u.G)(t)&&(0,r.aF)(n,t,o({unit_type:"buzz_head",unit_name:t.id,item_name:"comment-cta",item_type:"button",target_content_type:"buzz",target_content_id:t.id},e))}}}),[t])}},30332:function(t,e,n){"use strict";n.d(e,{Z:function(){return M}});var i=n(2784),r=n(15404),u=n(93955);var a=n(33402);function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){for(var e=1;e=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function s(t,e){var n=(0,i.useContext)(a.Z).tracking,s=n.consentValue,M=n.isConsentReady,l={subbuzz:{item_name:e,item_type:"subbuzz",subunit_name:"",subunit_type:"",unit_type:"buzz_body"},bottom_share_bar:{subunit_name:"share_buttons",subunit_type:"component",unit_type:"buzz_bottom"},top_share_bar:{subunit_name:"",subunit_type:"",unit_type:"buzz_head"},quiz_results:{subunit_name:"",subunit_type:"",unit_type:"buzz_body"}};return(0,i.useCallback)((function(e){var n=e.platform,i=e.position,a=c(e,["platform","position"]);return function(){if(t&&t.id){var e=l[i.replace(/-/g,"_")]||{};(0,u.bC)(t,function(t){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=(0,i.useRef)(null),M=(0,i.useContext)(r.Z),l=M.buzz,j=void 0===l?{}:l,N=(0,i.useContext)(u.Z).destination;return(0,i.useEffect)((function(){var i=function(n){if(e){var i=n.target.closest("a");if(i){var r=(0,o.nC)(i);t.eventLabel=r.href?(0,c.Q)(r.href):void 0}}},r=s.current;if(!r)return function(){};var u=(0,a.aF)(r,j,t),M=n?(0,a.W3)(r,j,t):(0,a.Ev)(r,j,t);return r.addEventListener("click",i),function(){u(),M(),r.removeEventListener("click",i)}}),[j,N,t,e,n]),s}},17730:function(t,e,n){"use strict";n.d(e,{Q:function(){return a},v:function(){return o}});var i=n(20238),r=n(64228),u=n(53378);function a(t){return t.replace("http://","").replace("https://","").replace("www.","")}function o(t){var e;var n=(0,i.jH)(null===window||void 0===window||null===(e=window.location)||void 0===e?void 0:e.search);return"sdxa"===n.origin||"h5d"===n.utm_medium||(0,r.H)(t)&&"us"===(0,u.Cy)()}},5875:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var i=n(2784),r=n(74967),u=n(32966),a=n(41332);function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:1;return function(n){return n.name===t?g({},n,{count:n.count+e}):n}}(t))}))}),[]);return(0,u.useEffect)((function(){if(i&&t){var n="edition=".concat(i.country_code);w(e?"".concat(j,"/content-reactions-api/v2/emoji/buzz/").concat(i.id,"?").concat(n):"".concat(j,"/content-reactions-api/v1/buzz/").concat(i.id,"?").concat(n))}}),[j,i,t,w]),(0,u.useEffect)((function(){v?b(v):S&&S.reactions&&m((function(){var t=S.reactions.sort(L),e=y(t,1)[0],n=(void 0===e?{}:e).count;return t.map((function(t){return g({},t,{increment:function(){return _(t.name)},height:function(t){return function(t,e){return 3*t<90?3*e:e>t?93:Math.round(90*e/t)}(n,t)}})}))}))}),[v,S,_]),(0,u.useEffect)((function(){function t(){return(t=N(r().mark((function t(n){var u,a,o,c;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,u=["reaction=".concat(n),"client_uuid=".concat(h),"edition=".concat(i.country_code)].join("&"),a=e?"".concat(j,"/content-reactions-api/v2/emoji/buzz/").concat(i.id,"?").concat(u,"&page_type=buzz&page_id=").concat(i.id):"".concat(j,"/content-reactions-api/v1/buzz/").concat(i.id,"?").concat(u),t.next=5,fetch(a,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"}});case 5:return o=t.sent,t.next=8,o.json();case 8:if((c=t.sent)&&c.success){t.next=12;break}return b("request failed"),t.abrupt("return");case 12:(0,M.bC)(i,{action_type:"react",action_value:n,item_name:n,item_type:"button",subunit_name:"reactions",subunit_type:"component",unit_name:i.id,unit_type:"buzz_bottom"}),t.next=18;break;case 15:t.prev=15,t.t0=t.catch(0),b(t.t0);case 18:case"end":return t.stop()}}),t,null,[[0,15]])})))).apply(this,arguments)}f&&function(e){t.apply(this,arguments)}(f)}),[j,i,d,f,h]),{reactions:p,lastReacted:f,serverError:x}}},27354:function(t,e,n){"use strict";n.d(e,{l:function(){return l}});var i=n(94776),r=n.n(i),u=n(2784);function a(t,e,n,i,r,u,a){try{var o=t[u](a),c=o.value}catch(s){return void n(s)}o.done?e(c):Promise.resolve(c).then(i,r)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var u=t.apply(e,n);function o(t){a(u,i,r,o,c,"next",t)}function c(t){a(u,i,r,o,c,"throw",t)}o(void 0)}))}}function c(){return s.apply(this,arguments)}function s(){return(s=o(r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(507).then(n.bind(n,43462));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function M(t,e,n,i,r,u,a){try{var o=t[u](a),c=o.value}catch(s){return void n(s)}o.done?e(c):Promise.resolve(c).then(i,r)}function l(t){(0,u.useEffect)((function(){if(t){var e=function(){var e,n=(e=r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c();case 2:e.sent.buzzes.add(t);case 4:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(i,r){var u=e.apply(t,n);function a(t){M(u,i,r,a,o,"next",t)}function o(t){M(u,i,r,a,o,"throw",t)}a(void 0)}))});return function(){return n.apply(this,arguments)}}();e()}}),[t])}},8698:function(t,e,n){"use strict";n.d(e,{I:function(){return s}});var i=n(94776),r=n.n(i),u=n(30353),a=n(2784),o=n(9845);function c(t,e,n,i,r,u,a){try{var o=t[u](a),c=o.value}catch(s){return void n(s)}o.done?e(c):Promise.resolve(c).then(i,r)}function s(){var t=(0,a.useState)(null),e=t[0],n=t[1];return(0,a.useEffect)((function(){var t;(t=r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=n,t.next=3,(0,o.n5)({env:u.CLUSTER,legacy:!1});case 3:t.t1=t.sent,(0,t.t0)(t.t1);case 5:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var u=t.apply(e,n);function a(t){c(u,i,r,a,o,"next",t)}function o(t){c(u,i,r,a,o,"throw",t)}a(void 0)}))})()}),[]),e}},15382:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var i=n(29572),r=n(20238),u=n(30353);function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},u=Object.keys(t);for(i=0;i=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var c={edition:"en-us",page_size:30,buzz_id:"",page:1,lang:"en",country:"us"};function s(t,e){var n=e.pageSize,s=e.buzzId,M=e.language,l=o(e,["pageSize","buzzId","language"]);if(!t)throw new Error("endpoint is required");var j=i.Nl.getIds(),N=function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:120;if(!t)return"";var n=t.indexOf("?")>=0?"&":"?",i=t.includes("downsize");return i?t:"".concat(t).concat(n,"downsize=").concat(e,":*")}},36491:function(t,e,n){"use strict";var i=n(52322),r=n(25237);e.Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.ssr,u=void 0===n||n,a=e.suspense,o=void 0!==a&&a,c=e.loading,s=void 0===c?function(){return null}:c;return window.location.search.match(/(\?|&)layer=content/)?function(){return(0,i.jsx)("div",{})}:(0,r.default)(t,{loading:s,ssr:u,suspense:o})}},32527:function(t,e,n){"use strict";n.d(e,{I:function(){return s}});var i=n(94776),r=n.n(i),u=n(26528),a=n.n(u),o=n(34406);function c(t,e,n,i,r,u,a){try{var o=t[u](a),c=o.value}catch(s){return void n(s)}o.done?e(c):Promise.resolve(c).then(i,r)}var s=function(){var t,e=(t=r().mark((function t(e,n){var i,u,c,s,M;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.req,u=i?"http://localhost:".concat(o.env.PORT):"",c=i?{headers:i.headers}:{},t.prev=3,t.next=6,a()("".concat(u).concat(e),c);case 6:if((s=t.sent).ok){t.next=13;break}return t.next=10,s.text();case 10:M=t.sent;try{M=JSON.parse(M).message}catch(r){}return t.abrupt("return",{error:{error:M,statusCode:s.status}});case 13:return t.abrupt("return",s.json());case 16:return t.prev=16,t.t0=t.catch(3),t.abrupt("return",{error:{error:t.t0.message||"Error fetching API data",statusCode:500}});case 19:case"end":return t.stop()}}),t,null,[[3,16]])})),function(){var e=this,n=arguments;return new Promise((function(i,r){var u=t.apply(e,n);function a(t){c(u,i,r,a,o,"next",t)}function o(t){c(u,i,r,a,o,"throw",t)}a(void 0)}))});return function(t,n){return e.apply(this,arguments)}}()},29860:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});var i=function(t){return t.tags.includes("--add-yours")}},90783:function(t,e,n){"use strict";n.d(e,{K:function(){return i}});var i=function(t){var e;return"Make Yours"===(null===t||void 0===t||null===(e=t.classification)||void 0===e?void 0:e.section)}},19844:function(t,e,n){"use strict";n.d(e,{f:function(){return i}});var i=function(t){var e;return(null===t||void 0===t||null===(e=t.bylines)||void 0===e?void 0:e.length)&&t.bylines.some((function(t){return"Brand Publisher"===(null===t||void 0===t?void 0:t.title)}))}},29572:function(t,e,n){"use strict";n.d(e,{Nl:function(){return c},mH:function(){return s}});var i=n(93002),r=n(2784);function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=e.max_size,r=void 0===n?20:n,a=e.storage_key,o=void 0===a?"buzz_history":a;u(this,t),this.storage=!(0,i.s)()&&localStorage||{},this.max_size=r,this.storage_key=o,this.ids=this.read()}var e,n,r;return e=t,(n=[{key:"getIds",value:function(){return this.ids}},{key:"add",value:function(t){if(t){var e=this.ids.filter((function(e){return e!==t}));e.push(t),this.ids=e.slice(-this.max_size),this.write()}}},{key:"read",value:function(){var t=this.storage[this.storage_key];if(!t)return[];var e=[];try{e=JSON.parse(t)}catch(n){}return e}},{key:"write",value:function(){this.storage[this.storage_key]=JSON.stringify(this.ids)}}])&&a(e.prototype,n),r&&a(e,r),t}(),c=new o;function s(t){(0,r.useEffect)((function(){c.add(t)}),[t])}},61784:function(t,e,n){"use strict";n.d(e,{j:function(){return u},h:function(){return a}});var i=function(t,e,n,i){return{category:t,title:e,description:n,newsletterId:i}},r={BuzzFeedDaily:i("daily","BuzzFeed Daily","Keep up with the latest daily buzz with the BuzzFeed Daily newsletter!","buzzfeed_email_daily"),DIY:i("DIY","Want awesome DIY tips in your inbox three times a week? Sign up for the BuzzFeed DIY newsletter!","","buzzfeed_email_nifty"),Style:i("Style","Want amazing beauty and style tips twice a week? Sign up for the As/Is newsletter!","","buzzfeed_email_asis"),Tasty:i("tasty",'Tasty',"Get all the best Tasty recipes in your inbox! Sign up for the Tasty newsletter today!","buzzfeed_email_tasty"),TvAndMovies:i("tvandmovies","TV and Movies","Get all the best moments in pop culture & entertainment delivered to your inbox.","buzzfeed_email_tvandmovies")};function u(t){var e=t.edition,n=t.section,i=t.isNews;return"US"===e&&i?r.BuzzFeedDaily:function(t){return{Animals:r.BuzzFeedDaily,BuzzFeed:r.BuzzFeedDaily,Celebrity:r.BuzzFeedDaily,DIY:r.DIY,Food:r.Tasty,Nifty:r.DIY,Parents:r.BuzzFeedDaily,"As/Is":r.Style,Tasty:r.Tasty,Travel:r.BuzzFeedDaily,TVAndMovies:r.TvAndMovies}[t]}(n)}var a=function(t){return![t.tags.includes("--no-newsletter-signup"),t.bfpFormats.includes("newsletter_signup"),t.flags.nsfw,t.isAd,t.isShopping,t.isQuiz&&t.isUS,"Japan"===t.classification.edition].some((function(t){return t}))}},12383:function(t,e,n){"use strict";function i(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}n.d(e,{x:function(){return i}})},57673:function(t,e,n){"use strict";n.d(e,{l:function(){return i}});var i=function(){return window.scrollY||window.pageYOffset}},46811:function(t,e,n){"use strict";n.d(e,{Bd:function(){return p},Hd:function(){return z},BN:function(){return m},Om:function(){return f}});var i=n(52322),r=n(2784),u=n(28316),a=n(99036),o=n.n(a),c=n(5103),s=n(13681),M=n(20238),l=n(30353),j=n(6294),N=function(){return(0,j.tq)()},d=n(31781);var g=function(t){var e=t.containerEl,n=t.contentEl,u=t.position,a=void 0===u?"top":u,o=t.text,c=t.themes,s=(0,r.useState)(!0),M=s[0],l=s[1],j=r.createRef();return j.current=e,(0,r.useEffect)((function(){setTimeout((function(){l(!1),setTimeout((function(){n&&n.removeChild(e)}),1e3)}),3e3)}),[e,n]),(0,i.jsx)(d.Z,{container:j,position:a,shouldShow:M,themes:c,text:o})},y=n(94470),L=n.n(y),T=n(63778);function p(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=["twitter","facebook","copy"];return["pagelevel","pagelevelSticky"].includes(t)?"buzzfeed_news"===e.destination_name?r:n&&"bottom_share_bar"!==i?"Japan"===e.classification.edition?["facebook","twitter"]:["facebook","pinterest","copy"]:"Russia"===e.category?["facebook","vk","twitter","email","pinterest","copy"]:["copy","facebook","pinterest","twitter","email"]:"pagelevelList"===t?"Japan"===e.classification.edition?["lineapp","sms","email","pinterest","snapchat","copy"]:["twitter","snapchat","whatsapp","sms","email","copy"]:"pageLevelOutlineThick"===t?"buzzfeed_news"===e.destination_name?r:"Japan"===e.classification.edition?["twitter","bluesky","facebook","pinterest","copy"]:["bluesky","facebook","pinterest","copy"]:[]}function m(t,e,n){var r={utm_source:"dynamic",utm_campaign:"bfshare".concat(t)},a=e.canonical_url,j=e.shareData,d=n.itemId,y=n.quizId,p=n.subbuzzId,m=n.getCopyText,z="";d&&y?(r.quiz_result="".concat(y,"_").concat(d),r.quote=o()(n.text||n.title),z=y,"twitter"===t&&(r.rid=d)):p&&(r.sub=p);var f="".concat(a).concat((0,M.nZ)(r)).concat(z?"#".concat(z):""),I={};"twitter"===t?I.title=o()(n.text||n.title||j.twitter.title||e.title):"facebook"===t?I.fbAppId=l.destinations[e.destination_name].facebook_app_id:["lineapp","whatsapp"].includes(t)?I.title=o()(n.title||e.title):"copy"===t&&m&&(I.getCopyText=m),I.title=(0,T.decodeHtmlEntities)(I.title);var D=(0,s.BN)(f,t,I,!N());if("copy"===t&&n.element){var x=document.createElement("div");x.className=L().tooltipContainer,n.element.appendChild(x),u.render((0,i.jsx)(g,{containerEl:x,contentEl:n.element,text:D?c.i18n.t("link_copied"):c.i18n.t("unable_to_copy_link"),themes:D?["dark","success"]:["error"]}),x)}}function z(){return!!(N()&&function(t){var e=t.includeTablets;return void 0!==e&&e?(0,j.OK)()||(0,j.gc)():(0,j.DN)()||(0,j.gc)()}({includeTablets:!1})&&navigator.canShare)}function f(t){var e=t.url,n=t.text,i=t.title,r=t.files,u={};e&&(u.url=e),n&&(u.text=n),i&&(u.title=i),(null===r||void 0===r?void 0:r.length)&&(u.files=r);try{navigator.share(u)}catch(a){console.error(a)}}},3207:function(t,e,n){"use strict";n.d(e,{C:function(){return i},z:function(){return r}});var i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.url,n=void 0===e?"":e,i=t.canonical_path,r=void 0===i?"":i,u=t.destination_name,a=void 0===u?"":u,o=t.is_external,c=void 0!==o&&o,s=r.includes("/watch/video/")||c,M=r;return{href:!s&&n.length&&a.length?"/[...slug]":n,hrefAs:r.length?M:n,url:n}},r=function(t){if(!t)return"";var e=t;try{e=new URL(t).pathname}catch(n){}return"/"===e.charAt(0)&&(e=e.slice(1,e.length)),e.replace(/\//g,"_")}},70448:function(t,e,n){"use strict";n.d(e,{zk:function(){return o}});var r=n(3379);function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n