PageSourceSearch

https://www.theverge.com/_next/static/chunks/1qsgi541sczj_.js

js theverge.com collected 2026-09-24 07:34:20 UTC 66,885 bytes, 5 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="0f415c83-3d70-9aa5-4712-355900dbdaa2")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,349766,e=>{"use strict";e.s(["followButton",0,"fv263x2","followButtonError",0,"fv263x3","followInstructions",0,"fv263x1","seeMore",0,"fv263x5","seeMoreContainer",0,"fv263x4"])},458188,64996,e=>{"use strict";var t=e.i(478902),r=e.i(197649),n=e.i(389959);e.i(7004);var a=e.i(177440);e.i(128634);var o=e.i(489027);e.i(585701);var i=e.i(69867),s=e.i(933322),l=e.i(315),u=e.i(80687),c=e.i(229722),f=e.i(13334),d=e.i(767636);e.i(807738);var p=e.i(738886);e.i(162228);var h=e.i(303460),g=e.i(184503),m=e.i(349766);e.s(["default",0,({path:e,category:y,metaVariation:v,gaComponentName:k,screenType:w})=>{let[b,E]=(0,n.useState)(!1),[_,C]=(0,n.useState)(null),x=(0,f.useCategoryListByName)(y),j=e=>{C((0,d.getFollowsErrorMessage)(e))},T=(0,l.useIsFollowing)(x?.id||""),{canFollow:S,followResource:L,unfollowResource:F}=(0,l.useFollows)(),O=(0,t.jsx)(o.default,{metaVariation:v,text:y,following:T}),q=k;void 0!==w&&(q=`${k}_${w}`),(0,n.useEffect)(()=>{S&&x?.id&&(0,u.isFollowRedirectTriggeredByComponent)(x.slug,q)&&((0,u.clearFollowQueryParam)(),L({resourceId:x.id,name:y,type:"category",gaComponentName:k}).then(()=>{let e=document.getElementById((0,u.getFollowId)("category",x.id,k,w));e&&(e.scrollIntoView({behavior:"smooth",block:"center"}),E(!0))}).catch(j))},[x,y,S,L,k,q,w]);let R=(0,n.useCallback)(()=>C(null),[]);return x?(0,t.jsx)("div",{id:(0,u.getFollowId)("category",x.id,k,w),children:(0,t.jsx)(i.default,{title:y,buttonContent:O,initialOpen:b,popoverId:`popover-${x.id}-${k}`,onPopoverChange:R,popoverClassname:g.default,popoverContent:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:m.followInstructions,children:"Posts from this topic will be added to your daily email digest and your homepage feed."}),(0,t.jsx)(p.default,{text:T?"Following":"Follow",className:(0,r.default)(m.followButton,_&&m.followButtonError),iconLeft:T?(0,t.jsx)(c.default,{title:"Unfollow",height:20,width:20}):(0,t.jsx)(s.default,{height:20,width:20}),fullWidth:!0,onClick:()=>{if(C(null),S&&T)F({resourceId:x.id,type:"category",name:y,gaComponentName:k}).catch(j);else{if(!S)return(0,u.loginAndFollow)(x.slug,q);L({resourceId:x.id,name:y,type:"category",gaComponentName:k}).catch(j)}}}),_&&(0,t.jsx)(a.default,{msg:_}),(0,t.jsx)("p",{className:m.seeMoreContainer,children:(0,t.jsxs)(h.default,{className:m.seeMore,href:e||"#",children:["See All ",y]})})]})})}):O}],64996),e.s([],458188)},7004,177440,933322,e=>{"use strict";var t=e.i(478902),r=e.i(197649);e.s(["default",0,({msg:e,className:n})=>(0,t.jsx)("p",{className:(0,r.default)("_1wh05fc0",n),children:e})],177440),e.s([],7004),e.s(["default",0,({className:e="",fill:r="currentColor",width:n="100%",height:a="100%",title:o="Follow"})=>(0,t.jsxs)("svg",{width:n,height:a,viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-label":"Follow",children:[(0,t.jsx)("title",{children:o}),(0,t.jsx)("path",{d:"M11.5 3H9.5V8.99999H3.5V11L9.5 11V17H11.5V11L17.5 11V9H11.5V3Z",fill:r})]})],933322)},128634,489027,e=>{"use strict";var t=e.i(478902),r=e.i(197649),n=e.i(753511),a=e.i(478225),o=e.i(180144),i={articleMetaStandard:"_1618ekm1 _1uf8q814 _19wv7tc5 _1618ekm0",articleMetaStandardDarkSurface:"_1618ekm2 _1uf8q814 _19wv7tc5 _1618ekm0",articleMetaFeature:"_1618ekm3 _1uf8q815 _19wv7tc5 _1618ekm0",articleMetaFeatureSplit:"_1618ekm4 _1uf8q816 _19wv7tc5 _1618ekm0",articleMetaSpecial:"_1618ekm5 _1uf8q817 _19wv7tc5 _1618ekm0",articleMetaSpecialSplit:"_1618ekm6 _1uf8q818 _19wv7tc5 _1618ekm0",articleMetaSpecialOverlay:"_1618ekm7 _1uf8q814 _19wv7tc5 _1618ekm0",pageHeader:"_1618ekm8 _1uf8q81b _19wv7tc7 _19wv7tc5 _1618ekm0"};e.s(["default",0,({text:e,following:s,metaVariation:l="articleMetaStandard"})=>(0,t.jsxs)("span",{className:(0,r.default)(n.followItemHoverGroup,i[l]),children:[s?(0,t.jsx)(a.default,{layout:l}):(0,t.jsx)(o.default,{layout:l}),(0,t.jsx)("span",{className:"_1618ekm9",children:e})]})],489027),e.s([],128634)},585701,69867,13334,e=>{"use strict";var t=e.i(478902),r=e.i(912953),n=e.i(561646),a=e.i(197649),o=e.i(298660),i=e.i(533066),s=e.i(389959),l=e.i(401262),u=e.i(391228),c=e.i(961026),f=e.i(822442),d=e.i(648448),p="_1wu3rm2";
2e.s(["default",0,({buttonContent:e,title:h,titleClassName:g,topContent:m,popoverContent:y,popoverId:v,onPopoverChange:k,initialOpen:w=!1,buttonType:b="button",popoverClassname:E})=>{let[_,C]=(0,s.useState)(w),{refs:x,floatingStyles:j,update:T}=(0,n.useFloating)({middleware:[(0,r.offset)(10),(0,r.shift)(),(0,r.flip)()]}),S=(0,s.useCallback)(e=>{e&&T(),k&&k(),C(e)},[k,T]),L={};"button"!==b&&(L={role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||"Space"===e.code)&&S(!_)}}),(0,s.useEffect)(()=>{S(w)},[w,S]);let F=(0,f.useIsSmallerThanBreakpoint)(c.BREAKPOINTS.tablet),O=(0,s.useRef)(null);return(0,s.useEffect)(()=>{function e(e){x.floating.current?.contains(e.target)||x.reference.current.contains(e.target)||S(!1)}let t=window.scrollY,r=(0,i.default)(()=>{Math.abs(window.scrollY-t)>50&&!w&&e(new Event("scroll")),t=window.scrollY},100);return document.addEventListener("click",e),document.addEventListener("scroll",r),()=>{document.removeEventListener("click",e),document.removeEventListener("scroll",r)}},[x.floating,x.reference,w,S]),(0,d.useScrollLock)(_&&F),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b,{onClick:()=>S(!_),ref:x.setReference,"aria-expanded":_,"aria-haspopup":"true",...L,children:e}),(0,t.jsx)(l.CSSTransition,{in:_&&F,timeout:0,nodeRef:O,classNames:{enterDone:p},unmountOnExit:!0,children:(0,t.jsx)("div",{ref:O,className:"_1wu3rm6"})}),(0,t.jsx)(l.CSSTransition,{in:_,timeout:0,nodeRef:x.floating,classNames:{enterDone:p},children:(0,t.jsx)(o.FocusTrap,{active:_,focusTrapOptions:{fallbackFocus:`#${v}`,escapeDeactivates:!1,clickOutsideDeactivates:!1,allowOutsideClick:!0},children:(0,t.jsx)("aside",{id:v,style:{...F?{}:j,visibility:_?"visible":"hidden"},ref:x.setFloating,className:(0,a.default)("_1wu3rm0",E),"aria-hidden":!_,children:(0,t.jsxs)("div",{className:"_1wu3rm
21",children:[(0,t.jsx)("button",{className:"_1wu3rm3",onClick:()=>S(!1),children:(0,t.jsx)(u.default,{className:"_1wu3rm4",width:16,height:16})}),m,(0,t.jsx)("div",{className:(0,a.default)("_1wu3rm5",g),children:h}),y]})})})})]})}],69867),e.s([],585701),e.i(591370),e.i(386687);var h=e.i(865935);e.i(174508),e.i(754734),e.s(["useCategoryListByName",0,e=>(0,h.useCategoryList)()?.find(t=>t.title===e)],13334)},753511,e=>{"use strict";e.s(["followItemHoverGroup",0,"gnx4pm0"])},478225,180144,e=>{"use strict";var t=e.i(478902),r={articleMetaStandard:"_1ajq89ke _1ajq89k1 _1ajq89k0",articleMetaStandardDarkSurface:"_1ajq89kf _1ajq89k1 _1ajq89k0",homepageFollowChip:"_1ajq89kg _1ajq89k1 _1ajq89k0",articleMetaFeature:"_1ajq89kh _1ajq89ka _1ajq89k1 _1ajq89k0",articleMetaFeatureSplit:"_1ajq89ki _1ajq89k1 _1ajq89k0",articleMetaSpecial:"_1ajq89kj _1ajq89k6 _1ajq89k1 _1ajq89k0",articleMetaSpecialSplit:"_1ajq89kk _1ajq89k6 _1ajq89k1 _1ajq89k0",articleMetaSpecialOverlay:"_1ajq89kl _1ajq89k1 _1ajq89k0",pageHeader:"_1ajq89km _1ajq89k1 _1ajq89k0",checkoutOnBoarding:"_1ajq89kn _1ajq89k1 _1ajq89k0"},n={articleMetaStandard:"_1ajq89ko _1ajq89k4 _1ajq89k3 ftptba0",articleMetaStandardDarkSurface:"_1ajq89kp _1ajq89k4 _1ajq89k3 ftptba0",homepageFollowChip:"_1ajq89kq _1ajq89k4 _1ajq89k3 ftptba0",articleMetaFeature:"_1ajq89kr _1ajq89kb _1ajq89k4 _1ajq89k3 ftptba0",articleMetaFeatureSplit:"_1ajq89ks _1ajq89k4 _1ajq89k3 ftptba0",articleMetaSpecial:"_1ajq89kt _1ajq89k7 _1ajq89k4 _1ajq89k3 ftptba0",articleMetaSpecialSplit:"_1ajq89ku _1ajq89k7 _1ajq89k4 _1ajq89k3 ftptba0",articleMetaSpecialOverlay:"_1ajq89kv _1ajq89k4 _1ajq89k3 ftptba0",pageHeader:"_1ajq89kw _1ajq89k4 _1ajq89k3 ftptba0",checkoutOnBoarding:"_1ajq89kx _1ajq89k4 _1ajq89k3 ftptba0"},a={articleMetaStandard:"_1ajq89ky _1ajq89k2 _1ajq89k0",articleMetaStandardDarkSurface:"_1ajq89kz _1ajq89k2 _1ajq89k0",homepageFollowChip:"_1ajq89k10 _1ajq89k2 _1ajq89k0",articleMetaFeature:"_1ajq89k11 _1ajq89kc _1ajq89k2 _1ajq89k0",articleMetaFeatureSplit:"_1ajq89k12 _1ajq89k2 _1ajq89k0",articleMetaSpecial:"_1ajq89k13 _1ajq89k8 _1ajq89k2 _1ajq89k0",articleMetaSpecialSplit:"_1ajq89k14 _1ajq89k8 _1ajq89k2 _1ajq89k0",articleMetaSpecialOverlay:"_1ajq89k15 _1ajq89k2 _1ajq89k0",pageHeader:"_1ajq89k16 _1ajq89k2 _1ajq89k0",checkoutOnBoarding:"_1ajq89k17 _1ajq89k2 _1ajq89k0"},o={articleMetaStandard:"_1ajq89k18 _1ajq89k5 _1ajq89k3 ftptba0",articleMetaStandardDarkSurface:"_1ajq89k19 _1ajq89k5 _1ajq89k3 ftptba0",homepageFollowChip:"_1ajq89k1a _1ajq89k5 _1ajq89k3 ftptba0",articleMetaFeature:"_1ajq89k1b _1ajq89kd _1ajq89k5 _1ajq89k3 ftptba0",articleMetaFeatureSplit:"_1ajq89k1c _1ajq89k5 _1ajq89k3 ftptba0",articleMetaSpecial:"_1ajq89k1d _1ajq89k9 _1ajq89k5 _1ajq89k3 ftptba0",articleMetaSpecialSplit:"_1ajq89k1e _1ajq89k9 _1ajq89k5 _1ajq89k3 ftptba0",articleMetaSpecialOverlay:"_1ajq89k1f _1ajq89k5 _1ajq89k3 ftptba0",pageHeader:"_1ajq89k1g _1ajq89k5 _1ajq89k3 ftptba0",checkoutOnBoarding:"_1ajq89k1h _1ajq89k5 _1ajq89k3 ftptba0"};e.s(["default",0,({layout:e,tooltipRef:r})=>(0,t.jsx)("span",{ref:r,className:a[e],children:(0,t.jsxs)("svg",{className:o[e],width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"Following",children:[(0,t.jsx)("title",{children:"Following"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.8004 1.78498L3.604 7.79332L0.599609 5.14239L1.39356 4.24259L3.48917 6.09166L7.89276 1L8.8004 1.78498Z"})]})})],478225),e.s(["default",0,({layout:e,tooltipRef:a})=>(0,t.jsx)("span",{ref:a,className:r[e],children:(0,t.jsx)("svg",{className:n[e],width:"9",height:"9",viewBox:"0 0 9 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"Follow",children:(0,t.jsx)("path",{d:"M5 0H4V4H0V5H4V9H5V5H9V4H5V0Z"})})})],180144)},767636,e=>{"use strict";let t={FOLLOW_CATEGORY:"Error: Could not follow this topic. Try again.",UNFOLLOW_CATEGORY:"Error: Could not unfollow this topic. Try again.",FOLLOW_AUTHOR:"Error: Could not follow this author. Try again.",UNFOLLOW_AUTHOR:"Error: Could not unfollow this author. Try again.",MAX_FOLLOWS_REACHED:"Error: You have reached the maximum number of follows.",DEFAULT:"Error: An error occurred. Please try again."};
2e.s(["ERRORS",0,t,"FollowsError",0,class extends Error{code;originalError;constructor(e,t){super(),this.name="FollowsError",this.code=e,this.originalError=t}},"getFollowsErrorMessage",0,e=>{let r=t[e.code]||null;return console.error(`FOLLOWS ERROR: ${r}`," ORIGINAL:",!e.originalError&&e.message?e.message:e.originalError),r}])},315,e=>{"use strict";var t=e.i(478902),r=e.i(389959),n=e.i(80687),a=e.i(767636),o=e.i(210982),i=e.i(597406);let s=(0,r.createContext)({followResource:async()=>!0,unfollowResource:async()=>!0,sendAnalyticsEvent:()=>{},canFollow:!1,loading:!0});e.s(["FollowsProvider",0,({children:e})=>{let[l,u]=(0,r.useState)(null),[c,f]=(0,r.useState)(!0),[d,p]=(0,r.useState)(!1),{user:h}=(0,i.useAuth)(),g=(0,o.useAnalytics)();(0,r.useEffect)(()=>{window.location.search.match("errorTestMode")&&p(!0)},[]),(0,r.useEffect)(()=>{var e;if(!h)return;let t=(e=h.uid,`user:${e.slice(0,6)}:production:follows`),r=localStorage.getItem(t);r&&u(JSON.parse(r)),(0,n.getFollows)({userId:h.uid}).then(e=>{u(e),f(!1);try{localStorage.setItem(t,JSON.stringify(e))}catch{}}).catch(()=>u(null))},[h]);let m=(0,r.useCallback)(e=>{u({categories:l?.categories||[],authors:e})},[l]),y=(0,r.useCallback)(e=>{u({authors:l?.authors||[],categories:e})},[l]),v=(0,r.useCallback)(({eventType:e,type:t,name:r,gaComponentName:n})=>{g?.emit({event:e,[e]:{click_text:r.toLowerCase(),type:"author"===t?"author":"topic",position:n}})},[g]),k=(0,r.useCallback)(async({resourceId:e,name:t,type:r,gaComponentName:o})=>{if(d)throw new a.FollowsError("author"===r?"FOLLOW_AUTHOR":"FOLLOW_CATEGORY","TEST: FOLLOW");if(!h)return!1;let i="author"===r?m:y,s="author"===r?"authors":"categories",u=[...l?.[s]||[]];if(u.find(t=>t.id===e))return!1;if((l?.authors||[]).length+(l?.categories||[]).length>=40)throw new a.FollowsError("MAX_FOLLOWS_REACHED","");i([...u,{id:e,metadata:{name:t}}]);try{let t=await (0,n.follow)({userId:h.uid,resourceId:e,type:r});i(t)}catch(e){throw i(u),new a.FollowsError("author"===r?"FOLLOW_AUTHOR":"FOLLOW_CATEGORY",e)}return v({eventType:"follow",type:r,name:t,gaComponentName:o}),!0},[l,h,y,m,d,v]),w=(0,r.useCallback)(async({resourceId:e,name:t,type:r,gaComponentName:o})=>{if(d)throw new a.FollowsError("author"===r?"UNFOLLOW_AUTHOR":"UNFOLLOW_CATEGORY","TEST: UNFOLLOW");if(!h)return!1;let i="author"===r?m:y,s="author"===r?"authors":"categories",u=[...l?.[s]||[]];i(u.filter(t=>t.id!==e));try{let t=await (0,n.unfollow)({userId:h.uid,resourceId:e,type:r});i(t)}catch(e){throw i(u),new a.FollowsError("author"===r?"UNFOLLOW_AUTHOR":"UNFOLLOW_CATEGORY",e)}return v({eventType:"unfollow",type:r,name:t,gaComponentName:o}),!0},[l,h,y,m,d,v]);return(0,t.jsx)(s.Provider,{value:{...l,followResource:k,unfollowResource:w,sendAnalyticsEvent:v,canFollow:!!h,loading:c},children:e})},"useFollows",0,()=>(0,r.useContext)(s),"useIsFollowing",0,e=>{let t=(0,r.useContext)(s),n=t.authors?.find(t=>t.id===e);return!!(n=t.categories?.find(t=>t.id===e)||n)}])},80687,e=>{"use strict";let t=async(e,t)=>{if(t.ok)return(await t.json()).data;throw Error(`Unable to complete ${e} action, HTTP ${t.status} response`)},r=e=>({id:e.id,metadata:{name:e.name}}),n=async({userId:e,action:r,resourceId:n,type:a})=>{let o=await fetch(`/api/follows/latest/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:r,resource:{id:n,type:a}})});return await t(r,o)},a=async({userId:e,resourceId:t,type:a})=>(await n({userId:e,action:"follow",resourceId:t,type:a}))["author"===a?"authors":"categories"].map(r),o=async({userId:e,resourceId:t,type:a})=>(await n({userId:e,action:"unfollow",resourceId:t,type:a}))["author"===a?"authors":"categories"].map(r),i=async({userId:e})=>{let n,a=await fetch(`/api/follows/latest/${encodeURIComponent(e)}`,{method:"GET"});return{authors:(n=await t("get follows",a)).authors.map(r),categories:n.categories.map(r)}},s="followItem",l="followItemSource";e.s(["clearFollowQueryParam",0,()=>{let e=new URL(window.location.href);e.search="",window.history.replaceState({},"",e)},"follow",0,a,"getFollowId",0,(e,t,r,n)=>`follow-${e}-${r}${n?`_${n}`:""}-${t}`,"getFollows",0,i,"isFollowRedirectTriggeredByComponent",0,(e,t)=>{let r,n,a=(r=new URLSearchParams(window.location.search)).has(s)?r.get(s):null;return((n=new URLSearchParams(window.location.search)).has(l)?n.get(l):null)===t&&a===e},"loginAndFollow",0,(e,t,r)=>{let n=new URLSearchParams({[s]:e,[l]:t});r&&n.set("followOnboarding","1");let a=encodeURIComponent(`${window.location.pathname}?${n.toString()}`);window.location.href=`/auth/login?returnPath=${a}&itm_campaign=follow&itm_medium=site`},"unfollow",0,o])},229722,e=>{"use strict";var t=e.i(478902);e.s(["default",0,({className:e="",fill:r="currentColor",width:n=24,height:a=24,title:o="Checkmark"})=>(0,t.jsxs)("svg",{className:e,width:n,height:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("title",{children:o}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.4077 6.78505L10.0149 18.8017L4.0061 13.4999L5.594 11.7003L9.78522 15.3984L18.5924 5.21509L20.4077 6.78505Z",fill:r})]})])},136817,e=>{"use strict";function t(){return(t=Object.assign.bind()).apply(null,arguments)}e.s(["default",()=>t])},653892,730098,e=>{"use strict";function t(e,r){return(t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,r)}e.s(["default",0,function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}],653892),e.s(["default",0,function(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,t(e,r)}],730098)},253876,13736,e=>{"use strict";
2function t(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.s(["default",0,function(e,t){if(e.classList)e.classList.add(t);else(e.classList?t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" "))||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}],253876),e.s(["default",0,function(e,r){e.classList?e.classList.remove(r):"string"==typeof e.className?e.className=t(e.className,r):e.setAttribute("class",t(e.className&&e.className.baseVal||"",r))}],13736)},386687,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let n=e=>{let t=e.method;return t&&({GET:" -X GET",POST:" -X POST",PUT:" -X PUT",PATCH:" -X PATCH",DELETE:" -X DELETE",HEAD:" -X HEAD",OPTIONS:" -X OPTIONS"})[t.toUpperCase()]||""},a=e=>"function"==typeof Headers&&e instanceof Headers,o=(e,t)=>` -H "${e}: ${`${t}`.replace(/(\\|")/g,"\\$1")}"`,i=(e={})=>{let{headers:t}=e,r=!1,n="";return a(t)?t.forEach((e,t)=>{"content-length"!==t.toLocaleLowerCase()&&(n+=o(t,e)),"accept-encoding"===t.toLocaleLowerCase()&&(r=!0)}):t&&Object.keys(t).map(e=>{"content-length"!==e.toLocaleLowerCase()&&(n+=o(e,t[e])),"accept-encoding"===e.toLocaleLowerCase()&&(r=!0)}),{params:n,isEncode:r}};function s(e){return"string"==typeof e?e.replace(/'/g,"'\\''"):e}function l(e){return e?"object"==typeof e?` --data-binary '${s(JSON.stringify(e))}'`:` --data-binary '${s(e)}'`:""}function u(e){return e?" --compressed":""}let c=(e,t)=>{let r,a;"string"==typeof e||e instanceof URL?(r=e,a=t||{}):(r=(e||{}).url,a=e||{});let{body:o}=a,s=i(a);return`curl '${r}'${n(a)}${s.params||""}${l(o)}${u(s.isEncode)}`};r.default=c,r.escapeBody=s,r.fetchToCurl=c,r.generateBody=l,r.generateCompress=u,r.generateHeader=i,r.generateMethod=n,r.isInstanceOfHeaders=a},332070,(e,t,r)=>{var n={872:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=l(e),i=o[0],s=o[1],u=new a((i+s)*3/4-s),c=0,f=s>0?i-4:i;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,a=n%3,o=[],i=0,s=n-a;i<s;i+=16383)o.push(function(e,t,n){for(var a,o=[],i=t;i<n;i+=3)a=(e[i]<<16&0xff0000)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(r[a>>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return o.join("")}(e,i,i+16383>s?s:i+16383));return 1===a?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===a&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],a="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,s=o.length;i<s;++i)r[i]=o[i],n[o.charCodeAt(i)]=i;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},230:function(e,t,r){"use strict";var n=r(872),a=r(321),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function i(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var n=e,a=t;if(("string"!=typeof a||""===a)&&(a="utf8"),!s.isEncoding(a))throw TypeError("Unknown encoding: "+a);var o=0|p(n,a),l=i(o),u=l.write(n,a);return u!==o&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return s.from(c,t,r);var h=function(e){if(s.isBuffer(e)){var t=0|d(e.length),r=i(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?i(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(h)return h;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
vendor: 16,509 bytes, line 2
2if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),i(e<0?0:0|d(e))}function f(e){for(var t=e.length<0?0:0|d(e.length),r=i(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!s.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(u(e),e<=0)?i(e):void 0!==t?"string"==typeof r?i(e).fill(t,r):i(e).fill(t):i(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)};function d(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||L(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return x(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return T(e).length;default:if(a)return n?-1:x(e).length;t=(""+t).toLowerCase(),a=!0}}function h(e,t,r){var a,o,i,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var a="",o=t;o<r;++o)a+=F[e[o]];return a}(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(127&e[a]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;a<r;++a)n+=String.fromCharCode(e[a]);return n}(this,t,r);case"base64":return a=this,o=t,i=r,0===o&&i===a.length?n.fromByteArray(a):n.fromByteArray(a.slice(o,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),a="",o=0;o<n.length;o+=2)a+=String.fromCharCode(n[o]+256*n[o+1]);return a}(this,t,r);default:if(s)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,a){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(a)return -1;else r=e.length-1;else if(r<0)if(!a)return -1;else r=0;if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,a);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(a)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return y(e,[t],r,n,a)}throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,a){var o,i=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;i=2,s/=2,l/=2,r/=2}function u(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){var c=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*i}else -1!==c&&(o-=o-c),c=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){for(var f=!0,d=0;d<l;d++)if(u(e,o+d)!==u(t,d)){f=!1;break}if(f)return o}return -1}s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),L(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,a=0,o=Math.min(r,n);a<o;++a)if(e[a]!==t[a]){r=e[a],n=t[a];break}return r<n?-1:+(n<r)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=s.allocUnsafe(t),a=0;for(r=0;r<e.length;++r){var o=e[r];if(L(o,Uint8Array)&&(o=s.from(o)),!s.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,a),a+=o.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):h.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,a){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,a>>>=0,this===e)return 0;for(var o=a-n,i=r-t,l=Math.min(o,i),u=this.slice(n,a),c=e.slice(t,r),f=0;f<l;++f)if(u[f]!==c[f]){o=u[f],i=c[f];break}return o<i?-1:+(i<o)},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)};function v(e,t,r){r=Math.min(e.length,r);for(var n=[],a=t;a<r;){var o,i,s,l,u=e[a],c=null,f=u>239?4:u>223?3:u>191?2:1;if(a+f<=r)switch(f){case 1:u<128&&(c=u);break;case 2:(192&(o=e[a+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[a+1],i=e[a+2],(192&o)==128&&(192&i)==128&&(l=(15&u)<<12|(63&o)<<6|63&i)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[a+1],i=e[a+2],s=e[a+3],(192&o)==128&&(192&i)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&i)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),a+=f}var d=n,p=d.length;if(p<=4096)return String.fromCharCode.apply(String,d);for(var h="",g=0;g<p;)h+=String.fromCharCode.apply(String,d.slice(g,g+=4096));return h}function k(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,a,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function b(e,t,r,n,a,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function E(e,t,r,n,o){return t*=1,r>>>=0,o||b(e,t,r,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,r,n,23,4),r+4}function _(e,t,r,n,o){return t*=1,r>>>=0,o||b(e,t,r,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,r,n,52,8),r+8}s.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a,o,i,s,l,u,c,f,d=this.length-t;if((void 0===r||r>d)&&(r=d),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var a=e.length-r;n?(n=Number(n))>a&&(n=a):n=a;var o=t.length;n>o/2&&(n=o/2);for(var i=0;i<n;++i){var s,l=parseInt(t.substr(2*i,2),16);if((s=l)!=s)break;e[r+i]=l}return i}(this,e,t,r);case"utf8":case"utf-8":return a=t,o=r,S(x(e,this.length-a),this,a,o);case"ascii":return i=t,s=r,S(j(e),this,i,s);case"latin1":case"binary":return function(e,t,r,n){return S(j(t),e,r,n)}(this,e,t,r);case"base64":return l=t,u=r,S(T(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,f=r,S(function(e,t){for(var r,n,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,a.push(r%256),a.push(n);return a}(e,this.length-c),this,c,f);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||k(e,t,this.length);for(var n=this[e],a=1,o=0;++o<t&&(a*=256);)n+=this[e+o]*a;return n},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||k(e,t,this.length);for(var n=this[e+--t],a=1;t>0&&(a*=256);)n+=this[e+--t]*a;return n},s.prototype.readUInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||k(e,t,this.length);for(var n=this[e],a=1,o=0;++o<t&&(a*=256);)n+=this[e+o]*a;return n>=(a*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||k(e,t,this.length);for(var n=t,a=1,o=this[e+--n];n>0&&(a*=256);)o+=this[e+--n]*a;return o>=(a*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||k(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||k(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||k(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||k(e,4,this.length),a.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||k(e,4,this.length),a.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||k(e,8,this.length),a.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||k(e,8,this.length),a.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var a=Math.pow(2,8*r)-1;w(this,e,t,r,a,0)}var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var a=Math.pow(2,8*r)-1;w(this,e,t,r,a,0)}var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},s.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var a=Math.pow(2,8*r-1);w(this,e,t,r,a-1,-a)}var o=0,i=1,s=0;for(this[t]=255&e;++o<r&&(i*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var a=Math.pow(2,8*r-1);w(this,e,t,r,a-1,-a)}var o=r-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+r},s.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,r){return E(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return E(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return _(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return _(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var a=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=a-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return a},s.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var a,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var i=s.isBuffer(e)?e:s.from(e,n),l=i.length;
2if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=i[a%l]}return this};var C=/[^+/0-9A-Za-z-_]/g;function x(e,t){t=t||1/0;for(var r,n=e.length,a=null,o=[],i=0;i<n;++i){if((r=e.charCodeAt(i))>55295&&r<57344){if(!a){if(r>56319||i+1===n){(t-=3)>-1&&o.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),a=r;continue}r=(a-55296<<10|r-56320)+65536}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function j(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function T(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function S(e,t,r,n){for(var a=0;a<n&&!(a+r>=t.length)&&!(a>=e.length);++a)t[a+r]=e[a];return a}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var F=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,a=0;a<16;++a)t[n+a]=e[r]+e[a];return t}()},321:function(e,t){t.read=function(e,t,r,n,a){var o,i,s=8*a-n-1,l=(1<<s)-1,u=l>>1,c=-7,f=r?a-1:0,d=r?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(i=o&(1<<-c)-1,o>>=-c,c+=n;c>0;i=256*i+e[t+f],f+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return i?NaN:1/0*(p?-1:1);i+=Math.pow(2,n),o-=u}return(p?-1:1)*i*Math.pow(2,o-n)},t.write=function(e,t,r,n,a,o){var i,s,l,u=8*o-a-1,c=(1<<u)-1,f=c>>1,d=5960464477539062e-23*(23===a),p=n?0:o-1,h=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),i+f>=1?t+=d/l:t+=d*Math.pow(2,1-f),t*l>=2&&(i++,l/=2),i+f>=c?(s=0,i=c):i+f>=1?(s=(t*l-1)*Math.pow(2,a),i+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,a),i=0));a>=8;e[r+p]=255&s,p+=h,s/=256,a-=8);for(i=i<<a|s,u+=a;u>0;e[r+p]=255&i,p+=h,i/=256,u-=8);e[r+p-h]|=128*g}}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}},i=!0;try{n[e](r,r.exports,o),i=!1}finally{i&&delete a[e]}return r.exports}o.ab="/ROOT/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/buffer/",t.exports=o(230)},401262,e=>{"use strict";var t=e.i(136817),r=e.i(653892),n=e.i(730098),a=e.i(253876),o=e.i(13736),i=e.i(389959),s=e.i(351981),l=e.i(861644),u=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,o.default)(e,t)})},c=function(e){function o(){for(var t,r=arguments.length,n=Array(r),a=0;a<r;a++)n[a]=arguments[a];return(t=e.call.apply(e,[this].concat(n))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,r){var n=t.resolveArguments(e,r),a=n[0],o=n[1];t.removeClasses(a,"exit"),t.addClass(a,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.resolveArguments(e,r),a=n[0],o=n[1];t.addClass(a,o?"appear":"enter","active"),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.resolveArguments(e,r),a=n[0],o=n[1]?"appear":"enter";t.removeClasses(a,o),t.addClass(a,o,"done"),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"appear"),t.removeClasses(r,"enter"),t.addClass(r,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.resolveArguments(e)[0];t.addClass(r,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.resolveArguments(e)[0];t.removeClasses(r,"exit"),t.addClass(r,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,r){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,r]},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,a=n&&r?r+"-":"",o=n?""+a+e:r[e],i=n?o+"-active":r[e+"Active"],s=n?o+"-done":r[e+"Done"];return{baseClassName:o,activeClassName:i,doneClassName:s}},t}(0,n.default)(o,e);var c=o.prototype;return c.addClass=function(e,t,r){var n,o=this.getClassNames(t)[r+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===r&&i&&(o+=" "+i),"active"===r&&e&&(0,l.forceReflow)(e),o&&(this.appliedClasse
2s[t][r]=o,n=o,e&&n&&n.split(" ").forEach(function(t){return(0,a.default)(e,t)}))},c.removeClasses=function(e,t){var r=this.appliedClasses[t],n=r.base,a=r.active,o=r.done;this.appliedClasses[t]={},n&&u(e,n),a&&u(e,a),o&&u(e,o)},c.render=function(){var e=this.props,n=(e.classNames,(0,r.default)(e,["classNames"]));return i.default.createElement(s.default,(0,t.default)({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},o}(i.default.Component);c.defaultProps={classNames:""},c.propTypes={},e.s(["CSSTransition",0,c],401262)},351981,170175,861644,e=>{"use strict";var t=e.i(653892),r=e.i(730098),n=e.i(389959),a=e.i(971131);let o=n.default.createContext(null);e.s(["default",0,o],170175);var i=function(e){return e.scrollTop};e.s(["forceReflow",0,i],861644);var s="unmounted",l="exited",u="entering",c="entered",f="exiting",d=function(e){function d(t,r){var n,a=e.call(this,t,r)||this,o=r&&!r.isMounting?t.enter:t.appear;return a.appearStatus=null,t.in?o?(n=l,a.appearStatus=u):n=c:n=t.unmountOnExit||t.mountOnEnter?s:l,a.state={status:n},a.nextCallback=null,a}(0,r.default)(d,e),d.getDerivedStateFromProps=function(e,t){return e.in&&t.status===s?{status:l}:null};var p=d.prototype;return p.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},p.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==u&&r!==c&&(t=u):(r===u||r===c)&&(t=f)}this.updateStatus(!1,t)},p.componentWillUnmount=function(){this.cancelNextCallback()},p.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},p.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===u){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:a.default.findDOMNode(this);r&&i(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:s})},p.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[a.default.findDOMNode(this),n],i=o[0],s=o[1],l=this.getTimeouts(),f=n?l.appear:l.enter;(e||r)&&1?(this.props.onEnter(i,s),this.safeSetState({status:u},function(){t.props.onEntering(i,s),t.onTransitionEnd(f,function(){t.safeSetState({status:c},function(){t.props.onEntered(i,s)})})})):this.safeSetState({status:c},function(){t.props.onEntered(i)})},p.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:a.default.findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:f},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:l},function(){e.props.onExited(n)})})})):this.safeSetState({status:l},function(){e.props.onExited(n)})},p.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},p.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},p.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},p.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:a.default.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)},p.render=function(){var e=this.state.status;if(e===s)return null;var r=this.props,a=r.children,i=(r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef,(0,t.default)(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return n.default.createElement(o.Provider,{value:null},"function"==typeof a?a(e,i):n.default.cloneElement(n.default.Children.only(a),i))},d}(n.default.Component);function p(){}d.contextType=o,d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter
2:!0,exit:!0,onEnter:p,onEntering:p,onEntered:p,onExit:p,onExiting:p,onExited:p},d.UNMOUNTED=s,d.EXITED=l,d.ENTERING=u,d.ENTERED=c,d.EXITING=f,e.s(["default",0,d],351981)},865935,e=>{"use strict";var t=e.i(389959);let r=(0,t.createContext)(null);e.s(["default",0,r,"useAuthorList",0,()=>{let e=(0,t.useContext)(r);return e&&e.authorList||null},"useCategoryList",0,()=>{let e=(0,t.useContext)(r);return e&&e.categoryList||null}])},251961,e=>{"use strict";let t={argumentDefinitions:[{defaultValue:!1,kind:"LocalArgument",name:"skipBlocks"},{defaultValue:!1,kind:"LocalArgument",name:"skipStreams"}],kind:"Fragment",metadata:null,name:"ContentCardContainer_contentResource",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{args:[{kind:"Variable",name:"skipBlocks",variableName:"skipBlocks"},{kind:"Variable",name:"skipStreams",variableName:"skipStreams"}],kind:"FragmentSpread",name:"useContentCardDataMapper_contentResource"},{args:null,kind:"FragmentSpread",name:"QuickPostContainer_contentResource"},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"template",storageKey:null}],type:"PostResourceType",abstractKey:null}],type:"ContentResourceInterface",abstractKey:"__isContentResourceInterface"};t.hash="5cb91e66ce3a8a46f591f54f6346805d",e.s(["default",0,t])},668885,e=>{"use strict";var t=e.i(251961),r=e.i(389959),n=e.i(434937),a=e.i(410186),o=e.i(556591),i=e.i(608439);e.i(271832);var s=e.i(466518);e.i(571350);var l=e.i(226338),u=e.i(67655),c=e.i(478902);let f=["PackageResourceType","customStory"],d=(0,r.memo)(({contentResource:e,firstChild:r,gaComponentName:d,lastChild:p,showBorderOnLastContentCard:h=!1,componentContext:g,ignoreTemplate:m,customContentCardPropsForResource:y})=>{let v,k,{communityConfig:w}=(0,i.useConfigContext)(),b=(0,n.useFragment)((t.default.hash&&"5cb91e66ce3a8a46f591f54f6346805d"!==t.default.hash&&console.error("The definition of 'ContentCardContainer_contentResource' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),t.default),e),[E]=(0,o.default)([b],y);if("QuickPostResourceType"===b.__typename)return(0,c.jsx)(a.default,{contentResource:b,compact:m,gaComponentName:d,contentCardComponentContext:g});if(!E)return null;let _={gaComponentName:d,firstChild:r,lastChild:p,showBorderOnLastContentCard:h,componentContext:"linkPost"===E.contentType?(v=new URL(E.permalink),k=new URL(w.communityOrigin),(0,u.getDomainApex)(v.hostname)===(0,u.getDomainApex)(k.hostname))?`${g}CrossCommunityPost`:`${g}LinkPost`:g};return(f.includes(E.contentType)&&"river"===g||b.template&&!m)&&!E.adFlag?(0,c.jsx)(l.default,{...E,..._}):(0,c.jsx)(s.default,{...E,..._})});e.s(["default",0,d])},659899,e=>{"use strict";e.i(668885),e.s([])},556591,e=>{"use strict";let t=(r={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"wpId",storageKey:null},o=[{alias:null,args:null,kind:"ScalarField",name:"html",storageKey:null}],i={alias:null,args:null,kind:"ScalarField",name:"permalink",storageKey:null},l=[s={alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],u={alias:null,args:null,kind:"ScalarField",name:"slug",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"headline",storageKey:null},p={alias:null,args:null,concreteType:"ImageResourceType",kind:"LinkedField",name:"image",plural:!1,selections:d=[{alias:null,args:null,concreteType:"ThumbnailMapType",kind:"LinkedField",name:"thumbnails",plural:!1,selections:[{alias:null,args:null,concreteType:"ThumbnailType",kind:"LinkedField",name:"horizontal",plural:!1,selections:f=[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"ThumbnailType",kind:"LinkedField",name:"square",plural:!1,selections:f,storageKey:null}],storageKey:null}],storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"template",storageKey:null},m=[h={alias:null,args:null,concreteType:"AuthorProfileResourceType",kind:"LinkedField",name:"authors",plural:!0,selections:[n,i,{alias:null,args:null,concreteType:"RichTextType",kind:"LinkedField",name:"shortBio",plural:!0,selections:o,storageKey:null}],storageKey:null}],{argumentDefinitions:[{defaultValue:!1,kind:"LocalArgument",name:"skipBlocks"},{defaultValue:!1,kind:"LocalArgument",name:"skipStreams"}],kind:"Fragment",metadata:{plural:!0},name:"useContentCardDataMapper_contentResource",selections:[r,n,a,{alias:null,args:null,kind:"ScalarField",name:"globalId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"chorusId",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"chorusUuid",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"resourceType",storageKey:null},{alias:null,args:null,concreteType:"ResolvedResourceSiteDataType",kind:"LinkedField",name:"site",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"isCrossCommunity",storageKey:null},a],storageKey:null},{alias:null,args:null,concreteType:"RichTextType",kind:"LinkedField",name:"dek",plural:!1,selections:o,storageKey:null},i,s,{alias:null,args:null,kind:"ScalarField",name:"publishedAt",storageKey:null},{alias:null,args:null,concreteType:"AuthorProfileResourceType",kind:"LinkedField",name:"authors",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"path",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CategoryResourceType",kind:"LinkedField",name:"primaryCategory",plural:!1,selections:l,storageKey:null},{alias:null,args:null,concreteType:"CategoryResourceType",kind:"LinkedField",name:"categories",plural:!0,selections:[n,s,u],storageKey:null},{alias:null,args:null,concreteType:"InternalCategoryResourceType",kind:"LinkedField",name:"internalCategories",plural:!0,selections:[u],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"liveBadge",storageKey:null},{alias:null,args:null,concreteType:"PackageResourceType",kind:"LinkedField",name:"package",plural:!1,selections:[i,s,{alias:null,args:null,concreteType:"PromoDataType",kind:"LinkedField",name:"promo",plural:!1,selections:[c],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"PromoDataType",kind:"LinkedField",name:"promo",plural:!1,selections:[c,{alias:null,args:null,concreteType:"RichTextType",kind:"LinkedField",name:"description",plural:!1,selections:o,storageKey:null},p],storageKey:null},{alias:null,args:null,concreteType:"CampaignResourceType",kind:"LinkedField",name:"primaryCampaign",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"advertiserName",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"advertiserPreamble",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"ledeMedia",plural:!1,selections:[r,{kind:"InlineFragment",selections:[p],type:"LedeMediaImageType",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"VolumeVideoResourceType",kind:"LinkedField",name:"video",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"volumeUuid",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"player",storageKey:null},{alias:null,args:null,concreteType:"ImageResourceType",kind:"LinkedField",name:"poster",plural:!1,selections:d,storageKey:null}],storageKey:null}],type:"LedeMediaVideoType",abstractKey:null}],storageKey:null},{alias:null,args:null,concreteType:"CommentsType",kind:"LinkedField",name:"comments",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"enabled",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mode",storageKey:null}],storageKey:null},{condition:"skipStreams",kind:"Condition",passingValue:!1,selections:[{alias:null,args:[{kind:"Literal",name:"first",value:1}],concreteType:"FeedContentStreamsConnection",kind:"LinkedField",name:"streams",plural:!1,selections:[{alias:null,args:null,concreteType:"StreamResourceType",kind:"LinkedField",name:"nodes",plural:!0,selections:l,storageKey:null}],storageKey:"streams(first:1)"}]},{condition:"skipBlocks",kind:"Condition",passingValue:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"blocks",plural:!0,selections:[r,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"ProductBlockProductType",kind:"LinkedField",name:"product",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"score",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"showScores",storageKey:null}],storageKey:null}],type:"ProductBlockType",abstractKey:null}],storageKey:null}]},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"customBadgeEnabled",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"customBadgeName",storageKey:null},h,g],type:"PostResourceType",abstractKey:null},{kind:"InlineFragment",selections:m,type:"VideoPostResourceType",abstractKey:null},{kind:"InlineFragment",selections:m,type:"MapResourceType",abstractKey:null},{kind:"InlineFragment",selections:[h,{alias:null,args:null,kind:"ScalarField",name:"authorByLine",storageKey:null}],type:"LinkPostResourceType",abstractKey:null},{kind:"InlineFragment",selections:m,type:"VaultResourceType",abstractKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"streamPublishedAt",storageKey:null}],type:"StreamResourceType",abstractKey:null},{kind:"InlineFragment",selections:[h,g],type:"DiningReportResourceType",abstractKey:null}],type:"FeedContentResourceInterface",abstractKey:"__isFeedContentResourceInterface"});t.hash="747aa8673c07c597992bc19de8b948d3";var r,n,a,o,i,s,l,u,c,f,d,p,h,g,m,y=e.i(434937),v=e.i(346559),k=e.i(470672),w=e.i(608439),b=e.i(671238),E=e.i(968779);let _=k.FEED_CONTENT_RESOURCE_TYPES.filter(e=>"QuickPostResourceType"!==e);e.s(["default",0,(e,r)=>{let n=(0,y.useFragment)((t.hash&&"747aa8673c07c597992bc19de8b948d3"!==t.hash&&console.error("The definition of 'useContentCardDataMapper_contentResource' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."),t),e),a=(0,w.useConfigContext)().crossPostConfig,o=(0,b.useIsCycloneCommentsProvider)()?"cyclone":"coral";return(0,E.filterByTypenames)([...n],_).map(e=>{let t=(({cardData:e,crossPostConfig:t})=>{let{__typename:r,authors:n,authorByLine:a,blocks:o,categories:i,chorusId:s,chorusUuid:l,comments:u,globalId:c,id:f,ledeMedia:d,liveBadge:p,package:h,permalink:g,primaryCampaign:m,primaryCategory:y,promo:v,publishedAt:k,streamPublishedAt:w,resourceType:b,site:E,streams:_,template:C,wpId:x}=e,j="LinkPostResourceType"===r&&t?(({link:e,crossPostConfig:t})=>{let r=new URL(e),n=t.find(e=>e.host===r.host.replace("www.","")&&(!e.path||r.pathname.startsWith(e.path)));return n?{crossPostSource:n.name,crossPostUrl:n.url}:{}})({link:g,crossPostConfig:t}):{},T="PostResourceType"===r?e.customBadgeEnabled:null,S="PostResourceType"===r&&e.customBadgeName?.trim()||void 0,L=o?.filter(e=>"ProductBlockType"===e.__typename&&e.product.showScores),F=L?.length===1?L[0]:void 0;return{adFlag:!!m?.advertiserName,advertiserName:m?.advertiserName,advertiserPreamble:m?.advertiserPreamble,authorByLine:a,authors:"LinkPostResourceType"===r?[]:n.map(e=>({name:e.name})),comments:u,...u.enabled&&"standard"===u.mode?{commentUrl:`${g}#comments`}:{},dek:v.description.html,chorusId:s,chorusUuid:l,contentType:b,permalink:g,id:f,wpId:x,globalId:c,category:y.title,headline:v.headline,mediaVariation:"PackageResourceType"===r||"StreamResourceType"===r||F?.product.score||d?.__typename!=="LedeMediaVideoType"?i.some(e=>"podcasts"===e.slug)?"podcast":null:"video",thumbnails:{horizontal:v.image?.thumbnails.horizontal.url||null,square:v.image?.thumbnails.square.url||null},live:T??p,liveBadgeName:S,packageName:h?.promo.headline,packageUrl:h?.permalink,postTemplate:C?`${C}`:void 0,timestamp:w||k||void 0,score:F?.product.score,site:E,streamName:_?.nodes[0]?.title,...j}})({cardData:e,crossPostConfig:a}),n=r?r(e,t):t;
2return n.comments.enabled&&"standard"===n.comments.mode?{...n,commentCountId:(0,v.getCommentCountId)({chorusId:e.chorusId,chorusUuid:e.chorusUuid,globalId:e.globalId,nodeId:e.id},o)}:n})}],556591)},571350,226338,e=>{"use strict";var t=e.i(478902),r=e.i(197649),n=e.i(860303),a=e.i(566544);e.i(55336);var o=e.i(183821);e.i(865898);var i=e.i(731191),s=e.i(452914);e.i(116032);var l=e.i(545198);e.i(162228);var u=e.i(303460),c=e.i(564182),f=e.i(278012),d=e.i(713363),p=e.i(867563),h=e.i(79878),g=e.i(641824),m=e.i(970060),y=e.i(476299),v=e.i(210982),k=e.i(714060),w=e.i(666308),b={one:"up4voob",two:"up4vooc",three:"up4vood",four:"up4vooe",five:"up4voof"},E={one:"up4vooh up4voog",two:"up4vooi up4voog",three:"up4vooj up4voog",four:"up4vook up4voog",five:"up4vool up4voog"},_={square:"up4voom",squareLarge:"up4voon",semiWide:"up4vooo",wide:"up4voop",fourThree:"up4vooq"},C={default:"up4voor",river:"up4voos",categoryPillar:"up4voot",none:"up4voou",container:"up4voov"};e.s(["default",0,e=>{let{componentContext:x="river"}=e,j=(0,d.combineComponentContexts)(["prominentContentCard",x]),T=(0,d.useComponentConfig)("prominentContentCard",x),S=(0,v.useAnalytics)(),{metadata:L}=(0,f.useAnalyticsEventMetadataContext)(),{placeholderImageUrl:F}=(0,k.useGlobalDataContext)().siteSettings,{adFlag:O,advertiserName:q,advertiserPreamble:R,authors:A,authorByLine:B,category:N,chorusId:I,chorusUuid:M,className:P,commentCountId:U,commentUrl:K,comments:D,contentBlockSize:V,contentBlockVariation:$,contentType:H,coverLink:W,crossPostSource:z,dek:G,dekClassName:Y,extraContentBlockStyles:X,extraImageStyles:J,gaComponentName:Q,globalId:Z,headline:ee,headlineClassName:et,id:er,imageAspectRatio:en,imageTreatment:ea,imageOverlay:eo,imageSquareSizes:ei,lastChild:es,live:el,liveBadgeName:eu,lowerMetaFirstComponent:ec,lowerMetaSecondComponent:ef,lowerMetaThirdComponent:ed,mediaIconInset:ep,mediaVariation:eh,mediaVariationIconPlacement:eg,metaVariation:em,overlap:ey,overlapStyle:ev="default",packageName:ek,permalink:ew,postTemplate:eb,priorityImage:eE,score:e_,showAuthorBy:eC,showCommentCallout:ex,showBorder:ej,showBorderOnLastContentCard:eT,borderVariant:eS="prominent",showDek:eL,showScore:eF,site:eO,streamName:eq,thumbnails:eR,timestamp:eA,upperMetaFirstComponent:eB,upperMetaSecondComponent:eN,upperMetaThirdComponent:eI,logo:eM,imagePosition:eP,imageLeftTablet:eU}=(0,g.default)(e,T),eK=eB;void 0===eK&&(eK=O?"ContentBlockAdvertiserFlag":"map"===H?"ContentBlockMap":ek?"ContentBlockPackage":z&&!eO?.isCrossCommunity?"ContentBlockCrossPost":el?"LiveBadge":"Category");let eD=(0,t.jsx)("div",{className:(0,r.default)(ey&&C[ev||"default"]),children:(0,t.jsx)("div",{className:X||"up4voo6",children:(0,t.jsx)(n.default,{adFlag:O,advertiserName:q,advertiserPreamble:R,authorByLine:B,authors:A,category:N,chorusId:I,chorusUuid:M,commentCountId:U,commentUrl:K,componentContext:j,contentBlockSize:V,contentBlockVariation:$,contentType:H,coverLink:W,crossPostSource:z,dek:G,dekClassName:Y,gaComponentName:Q,globalId:Z,headline:ee,headlineClassName:et,id:er,live:el,liveBadgeName:eu,lowerMetaFirstComponent:ec,lowerMetaSecondComponent:ef,lowerMetaThirdComponent:ed,mediaVariation:eh,mediaVariationIconPlacement:eg,metaVariation:em,packageName:ek,permalink:ew,postTemplate:eb,showAuthorBy:eC,showDek:eL,site:eO,streamName:eq,timestamp:eA,upperMetaFirstComponent:eK,upperMetaSecondComponent:eN,upperMetaThirdComponent:eI})})}),eV="square"===en?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.default,{src:eR?.horizontal||F.horizontal,alt:ee,priority:!!eE,sizes:"100vw",className:m.sharedStyles.layout.hideTabletPlus}),(0,t.jsx)(o.default,{src:eR?.square||F.square,alt:ee,priority:!!eE,sizes:ei||"250px",className:m.sharedStyles.layout.showTabletPlus})]}):(0,t.jsx)(o.default,{src:eR?.horizontal||F.horizontal,alt:ee,priority:!!eE,sizes:"(max-width: 768px) 100vw, (max-width: 1180px) 50vw, 640px"}),{generateContentCardAttributes:e$}=(0,p.useContentCardAttributeContext)();return(0,t.jsxs)("div",{className:(0,r.default)(c.default.ContentCard,ej&&(!es||eT)?"standard"===eS?"up4voo5 up4voo3":"up4voo4 up4voo3":"",eU?"up4voo2 up4voo0":"up4voo1 up4voo0",W?m.sharedStyles.contentCard.coverLinkContentCardContainer:m.sharedStyles.contentCard.contentCardContainer,P),...(0,h.useDataAttributes)(e),...e$(e),children:["imageBelow"===eP&&eD,eM,(0,t.jsxs)("div",{className:(0,r.default)(eU?"up4voo9 up4voo7":"up4voo8 up4voo7",_[en],ea&&b[ea],eo&&E[eo],!ea&&!eo&&"up4vooa",s.thumbnailContainerContext,J),children:[W?eV:(0,t.jsx)(u.default,{href:ew,hrefSiteData:eO,className:m.sharedStyles.contentCard.thumbnailLink,onClick:e=>
2{S?.emit({event:"article_click",article_click:{article_component_name:Q,article_uri:ew,article_title:ee,author:A[0]?.name,page_type:(0,w.getPageType)(H,!!eb),position:(0,y.getContentCardPosition)(e.currentTarget),...L}})},children:eV}),eh&&"thumbnail"===eg&&(0,t.jsx)(i.default,{placement:"thumbnail",variation:eh,inset:ep}),e_&&eF&&(0,t.jsx)(a.default,{score:e_}),D?.enabled&&ex&&U&&(0,t.jsx)(l.default,{countId:U})]}),"imageAbove"===eP&&eD]})}],226338),e.s([],571350)},391228,e=>{"use strict";var t=e.i(478902);e.s(["default",0,({className:e,width:r=20,height:n=19,fill:a="currentColor",strokeWidth:o=2})=>(0,t.jsxs)("svg",{className:e,width:r,height:n,viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("title",{children:"Close"}),(0,t.jsx)("line",{x1:"1.70711",y1:"0.831956",x2:"18.6483",y2:"17.7731",stroke:a,strokeWidth:o}),(0,t.jsx)("line",{x1:"1.35149",y1:"17.7734",x2:"18.2927",y2:"0.832185",stroke:a,strokeWidth:o})]})])},961026,e=>{"use strict";e.s(["BREAKPOINTS",0,{mobile:0,productCard:335,productCardDesktop:550,river:700,narrowRiver:600,tablet:768,navigation:901,desktop:1180}])},184503,e=>{"use strict";e.s(["default",0,"_1se63890"])},754734,e=>{"use strict";var t=e.i(505284);let r=(0,e.i(73018).default)({base:void 0,browser:{write(e){try{console.log(JSON.stringify(e))}catch(e){e instanceof Error&&console.log(JSON.stringify(e,["name","message","stack"])),console.log(JSON.stringify({message:"Unknown error type"}))}}},level:t.default.env.LOG_LEVEL||"true"===t.default.env.DEBUG_ENABLED?"debug":"info",customLevels:{highVisDebug:20}});function n(e,t){let n=`${a.red}--------->`,o=`${n} ${a.reset}`;r.debug({},o),r.debug({},`${n} ${e}${a.reset}`),r.debug({},o),t&&r.debug(t)}r.highVisDebug=(e,t)=>{"string"==typeof e?n(e):t?n(t,JSON.stringify(e,null,2)):n("HIGH VIS DEBUG",JSON.stringify(e,null,2))};let a={red:"\x1b[31m",reset:"\x1b[0m"};e.s(["getExecutionDuration",0,(e,t="ms")=>{let r="u">typeof performance?performance.now()-e:Date.now()-e,n="s"===t;return(n?r/1e3:r).toFixed(2*!!n)},"getLoggerBindings",0,(e,t)=>{let r="The Verge";return Object.assign(Object.assign({name:e},["2",r].filter(Boolean).length>0&&{network:Object.assign(Object.assign({},{networkId:"2"}),r&&{networkName:r})}),t)},"isomorphicTimer",0,()=>"u">typeof performance?performance.now():Date.now(),"log",0,r])},822442,648448,e=>{"use strict";var t=e.i(533066),r=e.i(389959);e.s(["useIsSmallerThanBreakpoint",0,e=>{let[n,a]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let r=(0,t.default)(()=>a(window.innerWidth<e),100);return r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[e]),n}],822442),e.s(["useScrollLock",0,e=>{(0,r.useEffect)(()=>{document.body.style.overflow=e?"hidden":"unset"},[e])}],648448)}]);
3
4//# debugId=0f415c83-3d70-9aa5-4712-355900dbdaa2
5//# sourceMappingURL=1z9c1s3ncq28y.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.