(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7562],{34635:function(e,t,a){Promise.resolve().then(a.bind(a,30584)),Promise.resolve().then(a.bind(a,8556)),Promise.resolve().then(a.bind(a,76404)),Promise.resolve().then(a.bind(a,85420)),Promise.resolve().then(a.bind(a,38104)),Promise.resolve().then(a.bind(a,34578)),Promise.resolve().then(a.bind(a,56686)),Promise.resolve().then(a.bind(a,95565)),Promise.resolve().then(a.bind(a,47548)),Promise.resolve().then(a.bind(a,72618)),Promise.resolve().then(a.bind(a,70673)),Promise.resolve().then(a.bind(a,56219)),Promise.resolve().then(a.bind(a,32407)),Promise.resolve().then(a.bind(a,10635)),Promise.resolve().then(a.bind(a,52253)),Promise.resolve().then(a.bind(a,17240)),Promise.resolve().then(a.t.bind(a,84080,23)),Promise.resolve().then(a.bind(a,10912)),Promise.resolve().then(a.bind(a,61481)),Promise.resolve().then(a.t.bind(a,34332,23))},80765:function(e,t,a){"use strict";var l=a(57437),s=a(44839),n=a(2265),i=a(90358);t.Z=e=>{let{id:t,value:a,name:r,label:o,hidden:c,disabled:d,error:u,errorText:m,isChecked:f=!1,pullRight:x=!1,onChange:h,required:p=!1,dataValidation:v}=e,[b,g]=(0,n.useState)(f);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("label",{id:t,className:(0,s.Z)("gap-5xs flex cursor-pointer items-start",{"last:col-end-[-1]":x}),children:[(0,l.jsxs)("div",{className:"relative top-[0.25rem] inline-flex align-middle",children:[(0,l.jsx)("input",{type:"checkbox",id:t,value:a,name:r,className:(0,s.Z)("peer cursor-pointer appearance-none focus:focus-visible:outline focus:focus-visible:outline-1 focus:focus-visible:outline-offset-2 w-[0.75rem] h-[0.75rem] border border-btn-ring rounded-[0.125rem] checked:border-btn-secondary-label checked:bg-btn-secondary-label",{"border-input-border--disabled bg-input bg-radio-base":d,"border-syntax-error checked:bg-syntax-error checked:border-syntax-error":u}),checked:b,hidden:c,disabled:d,onChange:()=>{g(!b),h&&h()},required:p,"data-validation":v}),(0,l.jsx)(i.Z,{className:"text-surface-primary pointer-events-none absolute top-0 hidden peer-checked:block",icon:"Checkmark"})]}),(0,l.jsx)("span",{className:(0,s.Z)("text-caption max-w-prose select-none",{"text-input-border--filled":d,"text-syntax-error":u}),children:o})]}),m&&(0,l.jsx)("span",{className:"text-caption text-syntax-error",children:m})]})}},8556:function(e,t,a){"use strict";a.r(t);var l=a(57437),s=a(10635),n=a(44839),i=a(2265),r=a(106),o=a(9817),c=a(28993),d=a(30584),u=a(24109),m=a(49114),f=a(56686);t.default=()=>{let[e,t]=(0,i.useState)(!1),a=o.b.getCookie(o.c.Country),x=o.b.getCookie(o.c.Consent),h=(0,c.Ov)(),{scaleBackPage:p}=(0,s.w)(),v=()=>{(0,d.q)("granted"),o.b.setCookie(o.c.Consent,"agreed",{path:"/"}),t(!1)};return(0,i.useEffect)(()=>{!a||a&&!m.JR.has(a)||a&&m.JR.has(a)&&"agreed"===x?v():"rejected"!==x&&t(!0)},[]),(0,l.jsx)(l.Fragment,{children:e&&(0,l.jsx)("div",{className:(0,n.Z)("bg-surface-primary py-s px-xs m:py-xs m:px-0 fixed inset-x-0 bottom-0 z-50",f.scaleBackTransitionClasses,p&&!h?f.scaleBackClasses:f.notScaleBackClasses,p&&h?f.scaleBackClassesSafari:f.notScaleBackClassesSafari),children:(0,l.jsxs)("div",{role:"dialog","aria-labelledby":"cookieConsentTitle","aria-describedby":"cookieConsentDesc",className:"m:max-w-container m:grid m:grid-cols-12",children:[(0,l.jsxs)("div",{className:"m:col-span-8",children:[(0,l.jsx)("p",{id:"cookieConsentTitle",className:"text-small text-copy-primary mb-3",children:(0,l.jsx)(r.Z,{id:"cookie_manager.title",defaultMessage:"We use cookies and similar technologies to deliver, maintain, improve our services and for security purposes.",description:"Title for pop-up that controls cookie settings."})}),(0,l.jsx)("p",{id:"cookieConsentDesc",className:"text-small text-copy-secondary",children:(0,l.jsx)(r.Z,{id:"cookie_manager.description_v2",defaultMessage:"Check our Cookie Policy for details. Click 'Accept all' to let OpenAI and partners use cookies for these purposes. Click 'Reject non-essential' to say no to cookies, except those that are strictly necessary.",description:"Description of the cookie manager's function.",values:{a:e=>(0,l.jsx)("a",{href:"/policies/cookie-policy/",className:"underline",children:e})}})})]}),(0,l.jsxs)("div",{className:"m:self-center mt-xs m:my-0 m:col-span-4 m:col-start-9 flex justify-between",children:[(0,l.jsx)(u.default,{onClick:v,variant:"primary-button",className:"m-xs",children:(0,l.jsx)(r.Z,{id:"cookie_manager.accept",defaultMessage:"Accept all",description:"Label for button to accept cookies."})}),(0,l.jsx)(u.default,{onClick:()=>{o.b.clearCookiesOfType("analytics"),(0,d.q)("denied"),o.b.setCookie(o.c.Consent,"rejected",{path:"/"}),t(!1)},variant:"secondary-button",className:"m-xs",children:(0,l.jsx)(r.Z,{id:"cookie_manager.reject",defaultMessage:"Reject non-essential",description:"Label for button to reject cookies."})})]})]})})})}},76404:function(e,t,a){"use strict";var l=a(57437),s=a(2265);t.default=()=>{let e=(0,s.useRef)(void 0);return(0,s.useEffect)(()=>(e.current=new ResizeObserver(()=>{document.documentElement.style.setProperty("--document-width","".concat(document.body.offsetWidth,"px"))}),e.current.observe(document.body),()=>{var t;null===(t=e.current)||void 0===t||t.disconnect()}),[]),(0,l.jsx)(l.Fragment,{})}},85420:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return L}});var l=a(57437),s=a(10635),n=a(44839),i=a(57818),r=a(20302),o=a(28993),c=a(9341),d=a(56686),u=a(13304),m=a(2265),f=a(97496),x=a(106),h=a(81822),p=a(9817),v=a(30584),b=a(24109),g=a(80765),y=a(49114),j=()=>{let[e,t]=(0,m.useState)(!1),[a,s]=(0,m.useState)(!1),[n,i]=(0,m.useState)(null),o=(0,f.Z)(),c=()=>{a?(s(!1),p.b.setCookie(p.c.Consent,"rejected",{path:"/",expires:h.cn.ONE_YEAR}),p.b.clearCookiesOfType("analytics"),(0,v.q)("denied")):(s(!0),p.b.setCookie(p.c.Consent,"agreed",{path:"/",expires:h.cn.ONE_YEAR}),(0,v.q)("granted"))};return(0,m.useEffect)(()=>{i(p.b.getCookie(p.c.Country)),s("agreed"===p.b.getCookie(p.c.Consent))},[e]),(0,l.jsx)(l.Fragment,{children:n&&y.JR.has(n)&&(0,l.jsxs)(u.fC,{open:e,onOpenChange:t,children:[(0,l.jsx)(u.xz,{asChild:!0,children:(0,l.jsx)("button",{type:"button",className:"text-small decoration-gray-40 dark:decoration-gray-60 hover:decoration-copy-primary underline underline-offset-[0.125rem]",onClick:()=>{r.q.logButtonClicked({analyticsAction:"footer-manage-cookies"})},children:(0,l.jsx)(x.Z,{id:"button_labels.manage_cookies",defaultMessage:"Manage Cookies",description:"Label for manage cookies button"})})}),(0,l.jsx)(u.h_,{children:(0,l.jsx)(u.aV,{className:"data-[state=open]:animate-overlayShow fixed inset-0 z-[51] bg-gray-100/40 backdrop-blur",children:(0,l.jsxs)(u.VY,{className:"data-[state=open]:animate-contentShow bg-gray-0 dark:bg-gray-90 absolute left-[50%] top-[50%] max-h-[85vh] w-[90vw] max-w-[375px] translate-x-[-50%] translate-y-[-50%] rounded-[6px] p-[25px] shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] focus:outline-none",children:[(0,l.jsx)(u.Dx,{className:"text-small text-copy-primary mb-4",children:(0,l.jsx)(x.Z,{id:"cookie_manager.dialog_title",defaultMessage:"Manage your cookie choices",description:"Cookie manager dialog box title to inform a user they can change their cookie consent choices"})}),(0,l.jsx)(u.dk,{className:"text-small text-copy-secondary",children:(0,l.jsx)(x.Z,{id:"cookie_manager.dialog_subhead",defaultMessage:"You can read more about how we handle cookies in our cookie policy",description:"Description of the cookie management dialog box",values:{privacy_policy_link:e=>(0,l.jsx)("a",{className:"lowercase underline",href:"/policies/privacy-policy/",children:e})}})}),(0,l.jsx)("div",{className:"mt-8",children:(0,l.jsx)(g.Z,{id:"cookies_functional",name:"cookies_functional",value:"true",label:o.formatMessage({id:"cookie_manager.dialog_functional_cookies",defaultMessage:"Functional Cookies",description:"Checkbox for a user to enable or disable functional cookies"}),isChecked:!0,disabled:!0})}),(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(g.Z,{id:"cookies_enabled",name:"cookies_enabled",value:"".concat(a),label:o.formatMessage({id:"cookie_manager.dialog_analytics_cookies",defaultMessage:"Analytics Cookies",description:"Checkbox for a user to enable or disable analytics cookies"}),isChecked:a,onChange:()=>{c()}})}),(0,l.jsx)("div",{className:"mt-8 flex w-full items-center justify-between",children:(0,l.jsx)(u.x8,{asChild:!0,children:(0,l.jsx)(b.default,{variant:"primary-button",className:"bg-btn-primary-base ease-curve-a bg-btn-primary-base text-btn-primary-label px-xs min-h-button text-cta hover:bg-btn-primary-base--hover flex w-full items-center justify-center gap-[0.3em] text-nowrap rounded-full transition duration-200",children:(0,l.jsx)(x.Z,{id:"cookie_manager.dialog_done",defaultMessage:"Done",description:"Button to let a user close the cookie management dialog box"})})})})]})})})]})})},k=a(85955),w=a.n(k),N=a(90358),C=e=>{let{socialLinks:t}=e;return(0,l.jsx)("div",{className:"gap-s flex flex-row",children:t&&t.map(e=>(0,l.jsx)(c.default,{className:"text-small",href:e.url,external:!0,ariaLabel:e.icon,onClick:()=>{r.q.logButtonClicked({analyticsAction:"footer-social-".concat(w()(e.icon,{lower:!0}))})},children:(0,l.jsx)(N.Z,{icon:e.icon})},e.icon))})};let _=(0,i.default)(()=>a.e(88455).then(a.bind(a,88455)),{loadableGenerated:{webpack:()=>[88455]},ssr:!1}),E=new Date().getFullYear(),S="OpenAI \xa9 2015–".concat(E);var L=e=>{let{nav:t,enabledLocales:a}=e,{scaleBackPage:i}=(0,s.w)(),u=(0,o.Ov)();return(0,l.jsxs)("footer",{className:(0,n.Z)("max-w-container mt-4xl mb-s",d.scaleBackTransitionClasses,i&&!u?d.scaleBackClasses:d.notScaleBackClasses,i&&u?d.scaleBackClassesSafari:d.notScaleBackClassesSafari),children:[(0,l.jsx)("div",{className:"mb-2xl",children:(0,l.jsx)("div",{className:"m:flex-row gap-3xs flex flex-col",children:t.items.map(e=>{var t;return(0,l.jsx)("div",{className:"mt-m m:mt-0 gap-m flex w-full flex-col first:mt-0",children:null===(t=e.items)||void 0===t?void 0:t.map(e=>{var t;return(0,l.jsxs)("div",{className:"gap-3xs flex flex-col",children:[(0,l.jsx)("span",{className:"text-footer-label text-small",role:"heading","aria-level":2,children:e.label}),(0,l.jsx)("ul",{className:"gap-3xs flex flex-col",role:"list",children:null===(t=e.items)||void 0===t?void 0:t.map(e=>{var t,a;let s=null!==(a=null===(t=e.page)||void 0===t?void 0:t.slug)&&void 0!==a?a:e.url;return s?(0,l.jsx)("li",{role:"listitem",children:(0,l.jsx)(c.default,{className:"text-small text-footer-link -m-0.5 p-0.5",href:s,external:e.external,externalArrow:e.external,onClick:()=>{r.q.logNavItemClickedEvent({location:"footer",identifier:e.analyticsIdentifier||"unknown",level:"secondary"})},children:e.label})},e.id):null})})]},e.id)})},e.id)})})}),(0,l.jsxs)("div",{className:"gap-m m:items-end m:flex-row flex w-full flex-col-reverse justify-between",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-y-3",children:[(0,l.jsx)("div",{className:"m:block hidden",children:(0,l.jsx)(_,{enabledLocales:a})}),(0,l.jsxs)("div",{className:"flex flex-row items-center",children:[(0,l.jsx)("span",{className:"text-small text-footer-label mr-xs flex",children:S}),(0,l.jsx)(j,{})]})]}),(0,l.jsx)(C,{socialLinks:t.socialLinks}),(0,l.jsx)("div",{className:"m:hidden",children:(0,l.jsx)(_,{enabledLocales:a})})]})]})}},38104:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return P}});var l=a(57437),s=a(95565),n=a(70673),i=a(10635),r=a(45659),o=a(44839),c=a(16463),d=a(2265),u=a(97496),m=a(106),f=a(20302),x=a(28993),h=a(24109),p=a(9341),v=a(83922),b=a(90358);let g="transition-[opacity,transform] ease-out-cubic duration-350",y=e=>{var t,a,s,n;let{id:i,featuredPage:c,featuredUrl:d,featuredLabel:u,featuredImage:m,featuredAlt:x,featuredAnalyticsIdentifier:h,onClick:b,textClass:g="text-small"}=e;return c&&((null==c?void 0:null===(a=c.coverImage)||void 0===a?void 0:null===(t=a.file)||void 0===t?void 0:t.url)||(null==m?void 0:null===(s=m.file)||void 0===s?void 0:s.url))?(0,l.jsx)("div",{className:"m:flex m:justify-end w-auto",children:(0,l.jsx)(r.rU,{asChild:!0,children:(0,l.jsxs)(p.default,{href:c.url,className:"group",onClick:()=>{f.q.logNavItemClickedEvent({level:"featured",identifier:h||"unknown",location:"header",variant:"desktop"}),b&&b()},children:[(0,l.jsx)(v.Z,{borderRadius:"rounded-md",asset:c.coverImage||{id:"",file:{...m.file},title:null!=x?x:m.title},ratio:"2/1",className:"m:!w-[15.1875rem]",id:c.title,videoAutoPlay:!0,imageClassName:"w-full h-full",videoShowMuteButton:!1,priority:!0}),(0,l.jsx)("p",{className:(0,o.Z)("text-copy-primary ease-curve-a duration-fast block pt-1.5 transition-[color]",g),children:null!=u?u:c.title})]})})}):d&&(null==m?void 0:null===(n=m.file)||void 0===n?void 0:n.url)?(0,l.jsx)("div",{className:"w-auto",children:(0,l.jsx)(r.rU,{asChild:!0,children:(0,l.jsxs)(p.default,{href:d,className:"group",onClick:()=>{f.q.logNavItemClickedEvent({level:"featured",identifier:h||"unknown",location:"header",variant:"desktop"}),b&&b()},children:[(0,l.jsx)(v.Z,{borderRadius:"rounded-md",asset:{id:"",file:{...m.file},title:null!=x?x:m.title},ratio:"2/1",className:"!w-[15.1875rem]",id:i,videoAutoPlay:!0}),(0,l.jsx)("p",{className:"pt-3xs text-caption text-copy-primary block",children:u})]})})}):""},j=(e,t,a,l)=>{let s=e-a.left,n=t-a.top,i=s/a.width*100,r=n/a.height*100,o=l.left-a.left+l.width;s>0&&n>0&&s{let{label:t,url:a,external:s,items:n,id:c,featuredPage:u,featuredUrl:m,featuredLabel:h,featuredImage:v,featuredAlt:b,featuredAnalyticsIdentifier:k,isActive:w,activeItem:N}=e,[C,_]=(0,d.useState)(!1),[E,S]=(0,d.useState)(!1),{setActiveItem:L,setNavActive:P}=(0,i.w)();(0,d.useEffect)(()=>{if(n)for(let e of n)e.items&&e.items.length>0?_(!1):_(!0)},[]),(0,d.useEffect)(()=>{w?setTimeout(()=>{S(!0)},10):S(!1)},[w]);let Z=(0,d.useRef)(null),M=(0,d.useRef)(null),A=(0,d.useRef)(null),[I,R]=(0,d.useState)({left:0,top:0,width:0,height:0}),[O,D]=(0,d.useState)({left:0,top:0,width:0,height:0});if((0,d.useEffect)(()=>{if(M.current){let{left:e,top:t,width:a,height:l}=M.current.getBoundingClientRect();R({left:e,top:t,width:a,height:l})}if(A.current){let{left:e,top:t,width:a,height:l}=A.current.getBoundingClientRect();D({left:e,top:t,width:a,height:l})}},[]),!n||0===n.length)return a&&(0,l.jsx)(r.ck,{value:t.toLowerCase(),className:(0,o.Z)("text-small hover:text-nav-label h-full",{"text-nav-label":w&&N===(null==t?void 0:t.toLocaleLowerCase()),"text-nav-label--inactive":w&&N!==(null==t?void 0:t.toLocaleLowerCase())}),children:(0,l.jsx)(p.default,{href:a,external:s,externalArrow:s,className:"px-s/2 relative flex h-full w-full items-center",children:t})});let B=(0,x.Ov)();return(0,l.jsxs)(r.ck,{value:null==t?void 0:t.toLowerCase(),className:"flex h-full items-center",onMouseMove:e=>{B||j(e.clientX,e.clientY,I,O)},ref:Z,children:[(0,l.jsxs)(r.xz,{className:(0,o.Z)("text-small hover:text-nav-label h-full cursor-default focus-visible:h-auto focus-visible:rounded-s","ease-curve-a duration-fast transition-[color]",{"text-nav-label":w&&N===(null==t?void 0:t.toLocaleLowerCase()),"text-nav-label--inactive":w&&N!==(null==t?void 0:t.toLocaleLowerCase())}),onClick:e=>{e.preventDefault()},onTouchStart:()=>{N!=(null==t?void 0:t.toLocaleLowerCase())?(L(null==t?void 0:t.toLocaleLowerCase()),P(!0)):(L(""),P(!1))},onKeyDown:e=>{("Space"==e.code||"Enter"==e.code)&&(N!=(null==t?void 0:t.toLocaleLowerCase())?(L(null==t?void 0:t.toLocaleLowerCase()),P(!0)):(L(""),P(!1)))},ref:A,children:[(0,l.jsx)("span",{className:"px-s/2 relative flex h-full w-full items-center",children:t}),!B&&(0,l.jsx)("span",{className:(0,o.Z)("safe-area-triangle transform-gpu","max-w-container absolute left-0 top-0 h-16 w-screen",{"z-[100]":N===(null==t?void 0:t.toLowerCase()),"pointer-events-none opacity-0":N!==(null==t?void 0:t.toLowerCase())}),ref:M})]}),n&&(0,l.jsx)(r.VY,{className:"gap-xs max-w-container pt-xl pb-l text-small data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0 flex w-full justify-between",children:(0,l.jsxs)("div",{className:(0,o.Z)("relative w-full",{"col gap-y-xs grid grid-cols-[repeat(2,calc(20px+(0.5*(min(100%,68rem)-352px))))]":C,"grid grid-cols-[repeat(2,calc(20px+(0.5*(min(100%,68rem)-352px))))_1fr]":!C}),children:[n.map((e,t)=>{var a;return e.items&&e.items.length>0?(0,l.jsxs)("ul",{className:"no-list gap-xs flex w-full flex-col",children:[e.label&&(0,l.jsx)("li",{className:(0,o.Z)("text-small text-copy-secondary",g,{"translate-y-0 opacity-100":E,"-translate-y-0.5 opacity-0":!E}),style:{transitionDelay:"".concat(70*t,"ms")},children:e.label}),null===(a=e.items)||void 0===a?void 0:a.map((a,s)=>{var n,i;let c=null!==(i=null===(n=a.page)||void 0===n?void 0:n.slug)&&void 0!==i?i:a.url;if(!c)return null;let d=2*t+(e.label?1:0)+s;return(0,l.jsx)("li",{style:{transitionDelay:"".concat(35*d,"ms")},className:(0,o.Z)(g,{"translate-y-0 opacity-100":E,"-translate-y-0.5 opacity-0":!E}),children:(0,l.jsx)(r.rU,{asChild:!0,children:(0,l.jsx)(p.default,{href:c,external:a.external,externalArrow:a.external,className:"focus-visible:rounded-s",analyticsAction:a.analyticsIdentifier,onClick:()=>{f.q.logNavItemClickedEvent({level:"secondary",identifier:a.analyticsIdentifier||"unknown",location:"header",variant:"desktop"})},children:a.label})})},a.id)})]},e.id):(0,l.jsx)("div",{children:(0,l.jsx)(r.rU,{asChild:!0,children:(0,l.jsx)(p.default,{href:e.url,external:e.external,externalArrow:e.external,className:(0,o.Z)("inline-block focus-visible:rounded-s",g,{"translate-y-0 opacity-100":E,"-translate-y-0.5 opacity-0":!E}),style:{transitionDelay:"".concat(75+1*Number(t)*35,"ms")},children:e.label})})},e.id)}),u&&(0,l.jsx)("div",{className:(0,o.Z)("transform-gpu transition-[opacity,transform] duration-500",{"opacity-100":E,"opacity-0":!E,"absolute right-0 top-0":C}),style:{transitionDelay:"".concat(70*n.length,"ms")},children:y({id:c,featuredPage:u,featuredUrl:m,featuredLabel:h,featuredImage:v,featuredAlt:b,featuredAnalyticsIdentifier:k})})]})})]})},w=e=>{let{links:t,isActive:a}=e,[s,n]=(0,d.useState)(void 0),{setMobileNavActive:r}=(0,i.w)(),c=e=>{n(e.id===s?void 0:e.id),f.q.logNavItemClickedEvent({level:"primary",identifier:e.analyticsIdentifier||"unknown",location:"header",variant:"mobile"})},u=(e,t)=>{r(!1),f.q.logNavItemClickedEvent({level:t,identifier:e.analyticsIdentifier||"unknown",location:"header",variant:"mobile"})};return(0,d.useEffect)(()=>{a||n(void 0)},[a]),(0,l.jsx)("ul",{className:(0,o.Z)("max-w-container pt-xs pb-s text-small flex w-full flex-col justify-between",!a&&"invisible"),id:"main-menu",children:t.map(e=>{var t,a;let n=null!==(a=null===(t=e.page)||void 0===t?void 0:t.slug)&&void 0!==a?a:e.url;return(0,l.jsx)("li",{className:"last:pb-xl group",children:n?(0,l.jsx)(p.default,{className:"py-4xs text-h4 flex h-full w-full items-center justify-between",href:n,onClick:()=>{u(e,"primary")},children:e.label}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("button",{type:"button",className:"py-4xs flex h-full w-full items-center justify-between",onClick:()=>{c(e)},"aria-expanded":s===e.id,children:[(0,l.jsx)("span",{className:"text-h4",children:e.label}),(0,l.jsx)(b.Z,{icon:"ChevronLarge",className:(0,o.Z)("ease-curve-d",{"-translate-y-1 opacity-0":e.id!==s}),style:{transition:e.id===s?"opacity 300ms, transform 300ms":"opacity 300ms, transform 300ms 300ms"}})]}),e.items&&(0,l.jsxs)("ul",{className:(0,o.Z)("border-b group-last:border-none group-last:pb-0","gap-2xs ease-curve-d flex flex-col overflow-hidden transition-all duration-300",s===e.id?"pb-s mb-xs border-nav-line max-h-[50rem] opacity-100":"invisible max-h-0 border-transparent opacity-0"),children:[e.items.map(e=>{var t,a;return(0,l.jsxs)("li",{className:"first:mt-2xs text-p1 group",children:[e.url?(0,l.jsx)(p.default,{href:e.url,onClick:()=>{u(e,"secondary")},children:e.label}):(0,l.jsx)("span",{className:"text-copy-secondary",children:e.label}),e.items&&(null===(t=e.items)||void 0===t?void 0:t.length)>0&&(0,l.jsx)("ul",{className:"gap-2xs mt-2xs mb-2xs flex flex-col group-last:mb-0",children:null===(a=e.items)||void 0===a?void 0:a.map(e=>(0,l.jsx)("li",{children:e.url?(0,l.jsx)(p.default,{href:e.url,onClick:()=>{u(e,"secondary")},children:e.label}):(0,l.jsx)("span",{children:e.label})},e.id))})]},e.id)}),e.featuredPage&&(0,l.jsx)("li",{className:"pt-2xs",children:y({id:e.id,featuredPage:e.featuredPage,featuredUrl:e.featuredUrl,featuredLabel:e.featuredLabel,featuredImage:e.featuredImage,featuredAlt:e.featuredAlt,featuredAnalyticsIdentifier:e.featuredAnalyticsIdentifier,onClick:()=>u(e,"featured"),textClass:"text-p1"})})]})]})},e.id)})})},N=e=>{let{links:t,isActive:a,activeItem:s}=e;return(0,l.jsx)("div",{className:"absolute left-1/2 top-0 -translate-x-1/2 [&>div]:!static [&>div]:h-full",children:(0,l.jsx)(r.aV,{className:"m:flex hover:text-nav-label--inactive hidden h-full flex-row items-center justify-center",children:t.map(e=>{var t,n;let i=null!==(n=null===(t=e.page)||void 0===t?void 0:t.slug)&&void 0!==n?n:e.url;return(0,l.jsx)(k,{url:i,id:e.id,label:e.label,items:e.items,featuredAlt:e.featuredAlt,featuredLabel:e.featuredLabel,featuredAnalyticsIdentifier:e.featuredAnalyticsIdentifier,featuredImage:e.featuredImage,featuredUrl:e.featuredUrl,featuredPage:e.featuredPage,isActive:a,activeItem:s},e.id)})})})},C=e=>{let{links:t,isActive:a}=e;return(0,l.jsx)("div",{className:(0,o.Z)("ease-curve-d absolute flex h-screen w-full transform-gpu flex-col transition-opacity duration-300",a?"opacity-1":"pointer-events-none opacity-0"),"aria-expanded":a,children:(0,l.jsx)("div",{className:"relative w-full flex-1 overflow-y-auto",children:(0,l.jsx)(w,{links:t,isActive:a})})})};var _=e=>{let{isActive:t,variant:a="default"}=e;return(0,l.jsx)("span",{className:"absolute left-0 top-0 inline-block flex h-full w-full items-center justify-center",children:(0,l.jsx)("span",{className:"absolute left-0 top-0 inline-block h-full w-full",children:(0,l.jsxs)("span",{className:(0,o.Z)("m:top-[0.125rem] m:left-[0.3125rem] group-hover:animate-search-icon absolute inline-block h-[1.25rem] w-[1.25rem]",{"animate-search-icon":t}),children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"mobile"===a?"2":"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"absolute left-[0.125rem] top-[0.125rem] h-[0.875rem] w-[0.875rem] rotate-[135deg] transition-[all] duration-300",children:(0,l.jsx)("path",{d:"M 15,8 A 7,7 0 1,1 1,8 A 7,7 0 1,1 15,8"})}),(0,l.jsx)("span",{className:(0,o.Z)("duration-400 ease-cubic-bezier(.215,.61,.355,1) absolute left-[0.5rem] top-[0.4375rem] inline-block h-[0.375rem] w-[0.09375rem] origin-[50%_-0.4375rem] translate-y-[0.5625rem] -rotate-45 rounded-b-full bg-[currentColor] group-hover:rotate-45",{"rotate-45":t})})]})})})};let E=e=>{let{isActive:t,className:a,onCloseMobileMenu:s,effectiveLocale:n}=e,i=(0,d.useRef)(null),r=(0,c.useSearchParams)(),m=(0,c.useRouter)(),[f,h]=(0,d.useState)(""),p=(0,u.Z)(),v=(e,t)=>{let a=new URLSearchParams(r.toString());return a.set(e,t),a.toString()};return(0,d.useEffect)(()=>{var e;h(null!==(e=r.get("q"))&&void 0!==e?e:"")},[r]),(0,d.useEffect)(()=>{var e,a;let l=e=>{if(!(e.target instanceof HTMLInputElement)){var t;null===(t=i.current)||void 0===t||t.focus()}};return t?(null===(e=i.current)||void 0===e||e.focus(),window.addEventListener("keydown",l)):null===(a=i.current)||void 0===a||a.blur(),()=>{window.removeEventListener("keydown",l)}},[t]),(0,l.jsx)("div",{className:(0,o.Z)("pb-m text-small m:items-end absolute flex h-screen w-full","ease-curve-d m:pt-0 m:h-[14.6875rem] pt-[6.75rem] transition-[height,opacity] duration-300",t?"opacity-1":"pointer-events-none opacity-0",a),"aria-hidden":!t,children:(0,l.jsx)("div",{className:"m:items-end max-w-container m:max-h-none relative flex h-full max-h-[var(--nav-mobile-max-h)] w-full",children:(0,l.jsx)("div",{className:"relative w-full",children:(0,l.jsx)("input",{className:"text-h3 m:text-h2 -mt-xs py-xs text-copy-primary placeholder:text-copy-tertiary w-full bg-transparent outline-none outline-0",type:"text",value:f,onChange:e=>h(e.target.value),tabIndex:t?0:-1,placeholder:p.formatMessage({id:"search.label",defaultMessage:"Press ‘Return’ to search",description:"Placeholder text for search input"}),maxLength:50,ref:i,onKeyDown:e=>{if("Enter"===e.key){var t;let e=null===(t=i.current)||void 0===t?void 0:t.value;if(e){let t=v("q",e),a=(0,x.Sd)({slug:"search?".concat(t),effectiveLocale:n});m.push(a),s&&s()}}}})})})})},S="w-[0.9375rem] h-[0.125rem] bg-copy-primary rounded-full transition ease-curve-d duration-300",L={1:"translate-y-[0.3125rem] rotate-45 w-[1.125rem]",2:"opacity-0",3:"-translate-y-[0.3125rem] -rotate-45 w-[1.125rem]"};var P=e=>{let{nav:t,effectiveLocale:a}=e,v=(0,u.Z)(),g=(0,c.usePathname)(),y=t.items,{isMobile:j}=(0,s.u)(),[k,w]=(0,d.useState)(g),P=(0,x.Ov)(),{navActive:Z,searchActive:M,scaleBackPage:A,setSearchActive:I,setNavActive:R,mobileNavActive:O,setMobileNavActive:D,activeItem:B,setActiveItem:T}=(0,i.w)(),{hasSubNav:q,setHasSubNav:z,headerVisible:F,setHeaderVisible:H,headerRef:V}=(0,n.J)();(0,d.useEffect)(()=>{z(!1),H(!0),g!==k&&w(g)},[g]);let W=()=>{M?I(!1):D(!O)};(0,d.useEffect)(()=>{let e=()=>{Z&&R(!1),B&&T(""),O&&D(!1),M&&!j&&I(!1)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[Z,O,B,M]),(0,d.useEffect)(()=>{M&&Z&&I(!1)},[Z]);let U=v.formatMessage({id:"common.navigation_aria_label",defaultMessage:"Main navigation",description:"Aria label describing main navigation"});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(h.default,{href:"#main",variant:"primary-button",className:"absolute left-4 top-[6.25rem] opacity-0 focus:z-[102] focus:scale-100 focus:opacity-100",children:(0,l.jsx)(m.Z,{id:"common.skip_to_main",defaultMessage:"Skip to main content",description:"Descriptive label for button to skip to the main content section"})}),(0,l.jsx)("header",{className:(0,o.W)("text-nav-label m:py-0 fixed top-0 z-[102] m-auto w-full","transition-header ease-curve-d transform-gpu duration-300",{"-translate-y-full":!F,"translate-y-0":O}),"aria-label":U,ref:V,children:(0,l.jsxs)(r.fC,{value:B,onValueChange:e=>{e?(R(!0),T(e),f.q.logNavItemClickedEvent({identifier:e,location:"header",level:"primary",variant:"desktop"})):(R(!1),T(""))},className:"relative z-50",children:[(0,l.jsx)("div",{className:(0,o.W)("ease-out-cubic pointer-events-none absolute left-1/2 top-0 z-[-1] w-[200%] -translate-x-[100vw] transform-gpu blur-[200px]",{"-translate-y-1/2 opacity-100 transition-[opacity,transform] duration-300":A,"-translate-y-[100%] opacity-0 transition-[opacity,transform] duration-300":!A})}),(0,l.jsx)("div",{className:(0,o.W)("ease-out-cubic transform-gpu transition duration-300","m:h-nav min-h-navHeight relative z-50 mx-auto h-full w-full",{"bg-base/80 backdrop-blur-xl":!Z&&!O&&!M&&!P,"bg-base/80 backdrop-blur":!Z&&!O&&!M&&P}),children:(0,l.jsxs)("div",{className:(0,o.W)("ease-curve-d transition duration-300","max-w-container min-h-navHeight m:h-full relative flex items-center justify-between [&>div]:h-full",{"mx-siteX m:mx-auto m:px-siteX px-0":O}),children:[(0,l.jsx)(p.default,{href:(0,x.Sd)({slug:"",effectiveLocale:a}),ariaLabel:v.formatMessage({id:"button_labels.home",defaultMessage:"OpenAI Home",description:"Descriptive label for the home button"}),onClick:()=>{O&&D(!1),M&&I(!1),f.q.logNavItemClickedEvent({identifier:"home",location:"header",level:"primary"})},children:(0,l.jsx)(b.Z,{icon:"Logo",className:"m:w-[5.875rem] h-auto w-[4.9375rem]"})}),(0,l.jsxs)("div",{className:"m:hidden ml-auto flex items-center justify-center gap-[0.5rem]",children:[(0,l.jsx)("button",{type:"button","aria-label":M?v.formatMessage({id:"button_labels.close_search",defaultMessage:"Close Search",description:"Descriptive label for the button to close the search overlay"}):v.formatMessage({id:"button_labels.open_search",defaultMessage:"Open Search",description:"Descriptive label for the button to open the search overlay"}),onClick:()=>{I(!M),R(!1),T(""),f.q.logToggleSearchEvent({open:!M})},tabIndex:O?-1:0,className:(0,o.W)("ease-curve-d h-navHeight transition-opacity duration-300",{"pointer-events-none opacity-0":O}),children:(0,l.jsx)("span",{className:"relative top-[0.125rem] block h-6 w-6",children:(0,l.jsx)(_,{isActive:M,variant:"mobile"})})}),(0,l.jsxs)("button",{type:"button",className:"flex h-[1.5rem] w-[1.5rem] flex-col items-center justify-center gap-[0.1875rem]",onClick:()=>{W(),f.q.logToggleMobileNavEvent({open:!O})},"aria-controls":"main-menu","aria-label":O?v.formatMessage({id:"button_labels.close_menu",defaultMessage:"Close Menu",description:"Descriptive label for the button to close the Menu"}):v.formatMessage({id:"button_labels.open_menu",defaultMessage:"Open Menu",description:"Descriptive label for the button to open the Menu "}),children:[(0,l.jsx)("div",{className:(0,o.W)(S,O&&L[1])}),(0,l.jsx)("div",{className:(0,o.W)(S,O&&L[2])}),(0,l.jsx)("div",{className:(0,o.W)(S,O&&L[3])})]})]}),(0,l.jsx)(N,{links:y,isActive:Z,activeItem:B}),(0,l.jsx)("div",{className:"flex items-center gap-4",children:(0,l.jsx)("button",{type:"button",className:"m:block group relative hidden h-6 w-6","aria-label":M?v.formatMessage({id:"button_labels.close_search",defaultMessage:"Close Search",description:"Descriptive label for the button to close the search overlay"}):v.formatMessage({id:"button_labels.open_search",defaultMessage:"Open Search",description:"Descriptive label for the button to open the search overlay"}),onClick:()=>{I(!M),R(!1),T(""),f.q.logToggleSearchEvent({open:!M})},children:(0,l.jsx)(_,{isActive:M})})})]})}),(0,l.jsx)("div",{className:"absolute top-0 z-40 flex min-h-11 w-full flex-col justify-center overflow-hidden",children:(0,l.jsx)(r.l_,{className:"data-[state=open]:h-[calc(var(--radix-navigation-menu-viewport-height) - 3.125rem)] data-[state=open]:animate-slide-down data-[state=open]:duration-220 data-[state=closed]:animate-slide-up ease-curve-d duration-220 group relative h-[max(2.75rem,var(--radix-navigation-menu-viewport-height))] h-[var(--radix-navigation-menu-viewport-height)] w-full transform-gpu transition-[height] [&>div]:absolute [&>div]:left-[calc(0.5*(100%-var(--radix-navigation-menu-viewport-width)))] [&>div]:w-full"})}),j&&(0,l.jsx)(C,{links:y,isActive:O,activeItem:B}),(0,l.jsx)(d.Suspense,{children:(0,l.jsx)(E,{isActive:M,onCloseMobileMenu:()=>{I(!1),D(!1)},effectiveLocale:a})})]})}),q&&(0,l.jsx)("div",{className:(0,o.W)("bg-nav-line fixed left-0 top-[3.125rem] z-[103] h-[1px] w-full","transition-header ease-curve-d transform-gpu duration-300",{"-translate-y-[3.1875rem]":!F,"translate-y-0":O,"opacity-0":Z})}),(0,l.jsx)("div",{className:(0,o.W)("m:block pointer-events-none fixed left-0 top-0 z-[51] hidden h-full w-full",{"opacity-1 pointer-events-auto":A,"pointer-events-none opacity-0":!A}),onClick:()=>{M&&I(!1)}})]})}},34578:function(e,t,a){"use strict";a.r(t);var l=a(57437),s=a(70673),n=a(10635),i=a(44839),r=a(2265),o=a(90358);t.default=()=>{let e=(0,r.useRef)(null),t=(0,r.useRef)(null),{modalActive:a,setModalActive:c}=(0,n.w)(),{setHeaderVisible:d}=(0,s.J)(),[u,m]=(0,r.useState)(!1),f=()=>{c(!1)},x=e=>{"Escape"===e.key&&c(!1)};return(0,r.useEffect)(()=>{var l,s;return m(!!(null===(l=t.current)||void 0===l?void 0:l.querySelector("#page-timeline-modal"))),a?d(!1):d(!0),null===(s=e.current)||void 0===s||s.addEventListener("click",f),document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[a]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{ref:e,className:(0,i.Z)("duration-800 fixed left-0 top-0 z-[103] h-screen w-screen overflow-auto transition-opacity",{"opacity-1":a,"pointer-events-none opacity-0":!a})}),(0,l.jsx)("div",{id:"modal-portal",ref:t,className:(0,i.Z)("duration-800 fixed z-[104] transition-opacity",{"opacity-1":a,"pointer-events-none opacity-0":!a}),children:u&&(0,l.jsx)("button",{className:"top-s right-s fixed z-[105]",type:"button",onClick:()=>{c(!1)},children:(0,l.jsx)(o.Z,{icon:"Close"})})})]})}},56686:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return p},notScaleBackClasses:function(){return x},notScaleBackClassesSafari:function(){return h},scaleBackClasses:function(){return m},scaleBackClassesSafari:function(){return f},scaleBackTransitionClasses:function(){return u}});var l=a(57437),s=a(10635),n=a(82941),i=a(2265),r=function(){let{throttleAmount:e=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,a]=(0,i.useState)(0);return(0,i.useEffect)(()=>{let t=(0,n.Z)(()=>{a(window.scrollY)},e);return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[]),t},o=a(44839),c=a(28993);let d=(0,i.forwardRef)((e,t)=>{let{message:a,className:s}=e;return(0,l.jsx)("span",{ref:t,className:(0,o.Z)("sr-only",s),tabIndex:0,"aria-live":"polite","aria-atomic":!0,children:a})}),u="transition-[opacity,transform,filter] ease-out-cubic",m="blur-[50px] saturate-[2] scale-[0.96] translate-y-[4.6875rem] duration-800",f="blur-[20px] saturate-[2] translate-y-[4.6875rem] duration-600",x="duration-400",h="duration-300";var p=e=>{let{children:t}=e,a=(0,i.useRef)(null),n=(0,i.useRef)(null),[p,v]=(0,i.useState)(""),{scaleBackPage:b}=(0,s.w)(),g=r({throttleAmount:300}),y=(0,c.Ov)();return(0,i.useEffect)(()=>{if(!window.location.hash){var e;v(document.title),null==n||null===(e=n.current)||void 0===e||e.focus()}},[]),(0,l.jsxs)("main",{id:"main",tabIndex:-1,className:(0,o.Z)("pt-navHeight relative outline-none",u,b&&!y?m:x,b&&y?f:h),style:{transformOrigin:"50% ".concat(g,"px")},ref:a,children:[(0,l.jsx)(d,{ref:n,message:p}),t,(0,l.jsx)("div",{className:(0,o.Z)("ease-out-cubic pointer-events-none absolute left-0 top-0 h-full w-full bg-[#ddd] transition-opacity duration-300 dark:bg-[#222]",{"opacity-60":b,"opacity-0":!b})})]})}},47548:function(e,t,a){"use strict";a.d(t,{ExperimentAssignmentProvider:function(){return i},V:function(){return r}});var l=a(57437),s=a(2265);let n=(0,s.createContext)({hashedExperimentAssignments:{},enableExposureLogging:!1});function i(e){let{hashedExperimentAssignments:t,enableExposureLogging:a,children:s}=e;return(0,l.jsx)(n.Provider,{value:{hashedExperimentAssignments:t,enableExposureLogging:a},children:s})}let r=()=>(0,s.useContext)(n)||{hashedExperimentAssignments:{},enableExposureLogging:!1}},72618:function(e,t,a){"use strict";a.d(t,{FeatureFlagsProvider:function(){return i},c:function(){return r}});var l=a(57437),s=a(2265);let n=(0,s.createContext)({hashedFlags:{}});function i(e){let{hashedFlags:t,children:a}=e;return(0,l.jsx)(n.Provider,{value:{hashedFlags:t},children:a})}let r=()=>(0,s.useContext)(n)||{hashedFlags:{}}},70673:function(e,t,a){"use strict";a.d(t,{HeaderProvider:function(){return u},J:function(){return m}});var l=a(57437),s=a(95565),n=a(57701),i=a.n(n),r=a(2265),o=a(10635);let c={hasSubNav:!1,headerIsSticky:!1,isTopOfPage:!0,headerVisible:!0,headerRef:{current:null},isSidebarDrawerOpen:!0,isSidebarOverlayVisible:!1},d=(0,r.createContext)(null);function u(e){let{context:t=c,children:a}=e,{modalActive:n}=(0,o.w)(),[u,m]=(0,r.useState)(t.hasSubNav),[f,x]=(0,r.useState)(t.headerIsSticky),[h,p]=(0,r.useState)(t.isTopOfPage),[v,b]=(0,r.useState)(t.headerVisible),g=(0,r.useRef)(null),y=0;(0,r.useEffect)(()=>{p(window.scrollY<=0||document.documentElement.scrollTop<=0)},[]),(0,r.useEffect)(()=>{let e=()=>{var e,t,a,l;let s=window.scrollY||document.documentElement.scrollTop,i=s-y,r=(null===(e=g.current)||void 0===e?void 0:e.offsetHeight)?(null===(t=g.current)||void 0===t?void 0:t.offsetHeight)*2:100;y=s;let o=u?0:null!==(l=null===(a=g.current)||void 0===a?void 0:a.offsetHeight)&&void 0!==l?l:0;i>0&&g.current&&s>o?(b(!1),x(!1)):i<-3&&!n&&(b(!0),x(!0)),i<0&&srequestAnimationFrame(e),100);return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t)}},[u,n]);let{isMobile:j}=(0,s.u)(),[k,w]=(0,r.useState)(t.isSidebarDrawerOpen),[N,C]=(0,r.useState)(t.isSidebarOverlayVisible);return(0,r.useEffect)(()=>{},[j]),(0,l.jsx)(d.Provider,{value:{hasSubNav:u,setHasSubNav:m,headerIsSticky:f,setHeaderIsSticky:x,isTopOfPage:h,headerRef:g,headerVisible:v,setHeaderVisible:b,isSidebarDrawerOpen:k,setIsSidebarDrawerOpen:w,isSidebarOverlayVisible:N,setIsSidebarOverlayVisible:C},children:a})}function m(){let e=(0,r.useContext)(d);if(!e)throw Error("useHeaderContext must be used within a HeaderProvider");return e}},56219:function(e,t,a){"use strict";var l=a(57437),s=a(16463),n=a(2265),i=a(20302);let r=(0,n.createContext)({pathnameHistory:[]});t.default=e=>{let{children:t}=e,a=(0,n.useRef)([]),o=(0,s.usePathname)();return(0,n.useEffect)(()=>{let e=a.current[0];e!==o&&(a.current=[o,...a.current],i.q.logPageView({previousPathname:e}))},[o]),(0,l.jsx)(r.Provider,{value:{pathnameHistory:a.current},children:t})}},32407:function(e,t,a){"use strict";var l=a(57437),s=a(37837),n=a(28326);t.default=e=>{let{messages:t,locale:a,children:i}=e;return(0,l.jsx)(n.Z,{messages:t,locale:a,defaultLocale:s.ag.defaultLocale,children:i})}},49114:function(e,t,a){"use strict";a.d(t,{$D:function(){return l},JR:function(){return s},af:function(){return i}});let l="16/9",s=new Set(["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE","GB","CA"]),n={primary:"primary-button",secondary:"secondary-button",secondaryInverse:"secondary-inverse-button",textButton:"text-button",textLink:"text-link",icon:"primary-icon-button",iconInverse:"primary-inverse-icon-button",iconTransparent:"icon-transparent-button",iconVideo:"video-icon-button"},i=e=>Object.values(n).includes(e)},34332:function(){}},function(e){e.O(0,[82470,45249,2938,42398,1452,57228,96182,13260,78230,38915,61924,5190,66183,67287,11966,19868,15718,2709,155,92971,47023,1744],function(){return e(e.s=34635)}),_N_E=e.O()}]);