1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6804],{45014:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var a=r(37876);r(14232);var o=r(35967),i=r(92387),n=r(18847),s=r.n(n),l=r(36589),u=r(36066),c=r(35865),d=r(99934);let p=s()(()=>Promise.all([r.e(54),r.e(2362),r.e(8365),r.e(6620),r.e(7416),r.e(257)]).then(r.bind(r,30257)).then(e=>e.Settings),{loadableGenerated:{webpack:()=>[30257]}}),g=(0,o.YK)({account:{id:"account.settings.breadcrumbs.account",defaultMessage:"Account"},accountSettings:{id:"account.settings.breadcrumbs.accountSettings",defaultMessage:"Account settings"}});function h(){let e=(0,i.A)(),t=[{url:"/accounts",label:e.formatMessage(g.account)},{label:e.formatMessage(g.accountSettings)}];return(0,a.jsx)(c.P,{fullWidth:!0,breadcrumbs:t,authRequired:!0,children:(0,a.jsx)(u.m,{children:(0,a.jsx)(p,{})})})}h.getInitialProps=async e=>{try{await e.apolloClient.query({query:l.PUE})}catch(e){}};let y=(0,d.Jo)(h)},56021:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/accounts/settings",function(){return r(45014)}])},70919:()=>{},91794:()=>{},99934:(e,t,r)=>{"use strict";r.d(t,{nU:()=>M,sE:()=>N,Jo:()=>X});var a=r(37876);r(14232);var o=r(868),i=r(36049),n=r(36589),s=r(91040),l=r(93606),u=r(45978),c=r(3853),d=r(46725),p=r(18610),g=r(98122),h=r(6793),y=r(8455),C=r(70919),f=r.n(C),w=r(11945),m=r(19790);let v=async e=>{if(!e.req?.jwtToken&&!e.req?.refreshToken)return null;try{let t=await e.apolloClient.query({query:n.BE3,context:{headers:e.req?.jwtToken?{Authorization:`Bearer ${e.req.jwtToken}`}:void 0}});return e.authUser=t?.data.me?(0,m.o)(t.data.me):void 0,e.authUser}catch(e){d.v.error(e)}return null},q=async(e,t)=>((0,y.f)()&&await v(e),t.getInitialProps(e));var S=r(9215),x=r(91794),k=r.n(x),A=r(23666),b=r(68779);let P=async()=>{let{statsigForwardProxyUrl:e,environment:t}=b.O.experimentation,r={environment:{tier:t},initTimeoutMs:3e3,...e&&{apiForDownloadConfigSpecs:e,fallbackToStatsigAPI:!0}};try{await k().initialize(A.A.statsigAPIKey,r)}catch(t){throw d.v.error({error:t,statsigForwardProxyUrl:e},"Statsig SDK initialization failed"),t}};var E=r(15229),T=r(8759);let I=async(e,t)=>{let{statsigForwardProxyUrl:r,statsigSDKKey:a}=b.O.experimentation;await P();let o=(0,w.h)(t,e.authUser?.id,e.req.DX,e.res.locals[h.AB]),i=f().getClientInitializeResponse(o,a,{hash:"djb2"});return i||d.v.error({statsigForwardProxyUrl:r},"Statsig getClientInitializeResponse returned empty response"),i},_=async e=>{let t=e.appProps.location?.zipCode;try{return await e.apolloClient.query({query:n.u5U,variables:{input:{zipcode:t},excludeL3:!(0,T.DX)(e.query.cid,e.query.slug)}})}catch(e){d.v.error(e)}return null},D=async e=>{try{return(await e.apolloClient.query({query:n.Y5R,variables:{input:{deviceId:e.req.DX},...(0,E.L)(e.appProps.location)},context:{headers:{"user-agent":e.req.useragent.source}}})).data.userContext.userContext}catch(e){d.v.error(e)}return null},U=async e=>{try{let t=await e.apolloClient.query({query:S.GetVideoAuthTokensDocument}),{expirationTime:r}=t.data.getVideoAuthTokens;t.data?.getVideoAuthTokens?.sessionCookies?.forEach(t=>{var a;let o,i,n,s;a=e.res,o=t.indexOf("="),i=t.slice(0,o),n=t.slice(o+1),s=new Date(r).getTime()-Date.now(),a.cookie(i,n,{httpOnly:!0,secure:!0,maxAge:s,sameSite:"none",domain:A.A.cookieSubDomain})})}catch(e){d.v.error(e)}},j=async(e,t=!1)=>{if(!e.res)return{};let[r,a]=await Promise.all([_(e),D(e),U(e),!t?v(e):Promise.resolve({})]);try{let t=await I(e,a);return{categories:r,statsigValues:t,statsigUserContext:a??void 0}}catch(e){d.v.error(e)}return{categories:r}},z=e=>!!e&&(!!e.city||!!e.zipCode||!!e.latitude&&!!e.longitude),O=e=>{e.res?.cookie(p.dX,"1",{maxAge:3e5,sameSite:"lax",secure:!0})},F=async e=>{let t=(0,g.$)(e.req?.cookies[p.FW]);if(z(t))return t;let r=e.req?.ipAddress;if(!r||e.req?.cookies[p.dX])return null;try{let{data:{data:t}}=await s.A.get(`${A.A.locationUrl}/internal/locationv2/location`,{params:{ip:r},timeout:3e3}),a={city:t?.city,state:t?.state,zipCode:t?.zipCode,longitude:t?.lon,latitude:t?.lat,source:"ip"};if(!z(a))return O(e),null;return e.res.cookie(p.FW,JSON.stringify(a),{maxAge:864e5,sameSite:"lax",secure:!0}),a}catch(t){return d.v.error("Error fetching location from ip",{error:t,middleware:"location"}),O(e),null}},M=async e=>{let t=await F(e),r={colorMode:e.res?.locals.colorMode,location:t,isWebview:e.res?.locals.isWebview,isFTUE:e.req?.isFTUE,userAgent:e.req?.useragent,authenticatedViaToken:!!e.req?.jwtToken||!!e.req?.refreshToken||!!e.apolloClient?.cache.readQuery({query:n.BE3}),deviceId:e.req?.DX,sessionId:e.res?.locals[h.AB],secGpc:e.req?.headers["sec-gpc"]};return e.appProps=r,r},N=e=>{let t=(0,l.fq)({context:e});return e.apolloClient=t,t};function X(e){let t=t=>(0,a.jsx)(e,{...t});return t.getInitialProps=async t=>{let r,a;N(t);let n=(0,y.f)(),s=await M(t),l={};try{let o=[];return n&&o.push(j(t,!!e.getInitialProps)),e.getInitialProps&&o.push(q(t,e)),(await Promise.allSettled(o)).forEac
1h((e,t)=>{if("rejected"===e.status)throw e.reason;n&&0===t?(r=JSON.stringify(e.value.statsigValues),a=JSON.stringify(e.value.statsigUserContext)):l=e.value}),l?.notFound&&t.res&&(t.res.statusCode=404),{...l,appProps:s,httpStatusCode:t.res?.statusCode,initialApolloState:t.apolloClient.cache.extract(),apolloClient:t.apolloClient,initializeStatsigValues:r,initializeStatsigUserContext:a}}catch(h){d.v.error(h);let e=h instanceof o.K?h:new o.K({errorMessage:String(h)}),n=e.graphQLErrors?.find(e=>(0,u.Kg)(e.extensions)),p=n?.extensions;if(p)return{...l,appProps:s,initialApolloState:t.apolloClient.cache.extract(),apolloClient:t.apolloClient,vpnBlockError:(0,u.bt)(p.exception?.originalError?.error),initializeStatsigValues:r,initializeStatsigUserContext:a};let g=(e=>{let{message:t,httpStatusCode:r,...a}=(0,i.b)(e);return(0,c.DF)({message:t||e.message||"An unexpected error occurred",httpStatusCode:r||500,...a})})(e);return t.res&&(t.res.statusCode=g.httpStatusCode,404===g.httpStatusCode&&(l={...l,notFound:!0})),{...l,appProps:s,initialApolloState:t.apolloClient.cache.extract(),httpStatusCode:g.httpStatusCode,apolloClient:t.apolloClient,error:g,initializeStatsigValues:r,initializeStatsigUserContext:a}}},t.getLayout=e.getLayout,t}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=56021)),_N_E=e.O()}]);
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.