1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dd460fb5-acd7-4dc8-af70-6eadeffd94c2",e._sentryDebugIdIdentifier="sentry-dbid-dd460fb5-acd7-4dc8-af70-6eadeffd94c2")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1698,244],{35264:function(e,t,n){"use strict";/** 2 * @license React 3 * use-sync-external-store-with-selector.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var r=n(67294),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,o=r.useRef,l=r.useEffect,s=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;var f=i(e,(d=s(function(){function e(e){if(!l){if(l=!0,i=e,e=r(e),void 0!==u&&p.hasValue){var t=p.value;if(u(t,e))return o=t}return o=e}if(t=o,a(i,e))return t;var n=r(e);return void 0!==u&&u(t,n)?t:(i=e,o=n)}var i,o,l=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]},[t,n,r,u]))[0],d[1]);return l(function(){p.hasValue=!0,p.value=f},[f]),c(f),f}},72012:function(e,t,n){"use strict";e.exports=n(35264)},3137:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/careers",function(){return n(98828)}])},65906:function(e,t,n){"use strict";var r=n(85893),a=n(67294),i=n(82717),o=n(90512),l=n(21856);t.Z=e=>{let{playbackId:t,className:n,needsOverlay:s,containerClassName:c,noLoop:u,style:d,needsControls:p,onEndedCb:f}=e,x=(0,a.useRef)(null),[m,g]=(0,l.Y)(.01),[h,y]=(0,a.useState)(!1),b=decodeURIComponent(t).replace(/[^\w-]/g,"");return(0,a.useEffect)(()=>{g&&!p&&y(!0)},[g]),(0,r.jsxs)("div",{ref:m,className:(0,o.W)("relative z-[1] w-full h-full pointer-events-none overflow-hidden",c),children:[s&&(0,r.jsx)("div",{className:(0,o.W)("absolute top-0 left-0 w-full h-full bg-black/[0.23] z-[2]","lg:bg-black/30")}),(0,r.jsx)(i.Z,{disableTracking:!0,ref:x,thumbnailTime:0,playbackId:b,className:(0,o.W)(n,p&&"mux-player-with-controls !touch-pan-y"),loop:!u,muted:!p,style:d,loading:"page",streamType:"on-demand",paused:!h,playsInline:!0,onEnded:()=>{f&&f()},minResolution:"720p",accentColor:"rgba(0, 0, 0,0.8)",primaryColor:"#f1f1f1",secondaryColor:"rgba(255, 255, 255, 0.0)"})]})}},56801:function(e,t,n){"use strict";var r=n(85893),a=n(62212),i=n(90512),o=n(89508),l=n(55386),s=n(11163),c=n(67294);t.Z=e=>{let{emailCta:t,legalBlurb:n,className:u,is404:d,isCentered:p,isLightBackgroun
9d:f,isAboutPage:x,isHomepage:m,isGammaPage:g,source:h,isCareersPage:y}=e,[b,v]=(0,c.useState)(""),[w,j]=(0,c.useState)(!0),[k,E]=(0,c.useState)(!1),[N,S]=(0,c.useState)(!1),[W,I]=(0,c.useState)(""),[C,O]=(0,c.useState)(!1),[T,_]=(0,c.useState)(""),A=(0,c.useRef)(null),F=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,{locale:z}=(0,s.useRouter)();async function L(e){var t,n,r,a;if(e.preventDefault(),!F.test(b)){j(!1);return}if(!T){I("ja_jp"===z&&g?"確èªãå®äºãã¦ãã ãã":"Please complete the captcha");return}j(!0),S(!0),I(""),O(!1);try{let e=await fetch("/api/email-subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:b,source:h,captchaToken:T})}),a=await e.json();e.ok?(O(!0),v(""),_(""),null===(t=A.current)||void 0===t||t.reset(),setTimeout(()=>{O(!1)},5e3)):(I((null==a?void 0:a.message)||(null==a?void 0:null===(n=a.result)||void 0===n?void 0:n.error)||"An error occurred. Please try again."),_(""),null===(r=A.current)||void 0===r||r.reset())}catch(e){I("An error occurred. Please try again."),_(""),null===(a=A.current)||void 0===a||a.reset()}finally{S(!1)}}return(0,r.jsx)("div",{className:(0,i.W)(u,"font-regular w-full z-[2]"),children:(0,r.jsxs)("div",{className:(0,i.W)("relative w-full h-full pb-[32px] lg:py-[0px]",!x&&!m&&!g&&!y&&"lg:px-[32px] lg:py-[0px]"),children:[(0,r.jsxs)("form",{onSubmit:e=>L(e),className:(0,i.W)("w-full text-[12px] leadng-[19.2px] relative"),children:[(0,r.jsxs)("div",{className:(0,i.W)("border-b-[1px] border-b-[#F7F7F7] flex justify-between gap-x-[32px]",f&&"!border-b-gammaGrey"),children:[(0,r.jsx)("input",{required:!0,type:"email",placeholder:"ja_jp"===z&&g?"ã¡ã¼ã«ã¢ãã¬ã¹ç»é²":"Enter email","aria-label":"Email address",className:(0,i.W)("rounded-[0px] w-full placeholder:text-[#F7F7F7]/50 bg-transparent text-neoFrost focus:outline-none py-[18.5px]",f&&"!text-gammaGrey placeholder:!text-gammaGrey/50"),value:b,onChange:e=>v(e.target.value),onBlur:()=>{""==b&&E(!1)},onFocus:()=>{E(!0)}}),(0,r.jsx)("button",{type:"submit",disabled:N,className:(0,i.W)("text-[#F7F7F7] py-[18.5px] flex-shrink-0",N?"opacity-30":"opacity-100","[transition:opacity_0.3s]",f&&"!text-gammaGrey","hover:opacity-60"),children:(0,r.jsx)("span",{children:t})})]}),(0,r.jsx)(a.Nc,{ref:A,siteKey:"0x4AAAAAACSdS-dZDJB2Swfl",onSuccess:e=>{_(e)},onExpire:()=>_(""),options:{size:"invisible"}})]}),(0,r.jsxs)("div",{className:(0,i.W)("relative"),children:[(0,r.jsx)("p",{className:(0,i.W)("mt-[16px] text-[12px] leading-[19.2px] text-[#f7f7f7]/60 transition-opacity duration-300 text-right",p&&"!text-center",f&&"!text-gammaGrey/60",g&&"lg:!text-right"),children:n}),(0,r.jsxs)(o.M,{mode:"wait",children:[C&&(0,r.jsx)(l.E.span,{"aria-live":"polite",initial:{opacity:0}
9,animate:{opacity:1},exit:{opacity:0},className:(0,i.W)("smallBody font-medium text-neoFrost z-[2] absolute right-0 bottom-[-16px]",f&&"!text-gammaGrey","lg:bottom-[-30px]",x&&"left-[50%] translate-x-[-50%] !bottom-[-30px]"),children:"ja_jp"===z&&g?"æ´æ°æ
å ±ã«ç»é²ãã¦ãã¾ã":"You're signed up for updates."}),W&&(0,r.jsx)(l.E.span,{"aria-live":"assertive",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:(0,i.W)("smallBody font-medium text-neoFrost z-[2] absolute right-0 bottom-[-16px]",f&&"!text-gammaGrey","lg:bottom-[-30px]",x&&"left-[50%] translate-x-[-50%] !bottom-[-30px]"),children:W}),!w&&(0,r.jsx)(l.E.span,{"aria-live":"assertive",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:(0,i.W)("smallBody font-medium text-neoFrost z-[2] absolute bottom-[-16px] ",f&&"!text-gammaGrey","lg:bottom-[-30px]",x&&"left-[50%] translate-x-[-50%] !bottom-[-30px]"),children:"Please enter a valid email address."})]})]})]})})}},66230:function(e,t,n){"use strict";n.d(t,{u:function(){return l}});var r=n(85893),a=n(2962),i=n(9008),o=n.n(i);function l(e){let{title:t,description:n,image:i,keywords:l,noIndex:s=!1,twitter:c={handle:"@1x_tech"},preloadedImage:u=""}=e,d="We're an AI and robotics company based in Palo Alto, California. We create safe humanoid robots that do your chores and offer personalized assistance.",p="https://cdn.sanity.io/images/qka6yvsc/production/487fccd826802be690d10efcdff6bad619d5d1bd-1200x630.webp";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o(),{children:[(0,r.jsx)("meta",{httpEquiv:"x-ua-compatible",content:"ie=edge"}),(0,r.jsx)("meta",{name:"robots",content:s?"noindex,nofollow":"index,follow"}),(0,r.jsx)("meta",{name:"googlebot",content:s?"noindex,nofollow":"index,follow"}),(0,r.jsx)("meta",{name:"keywords",content:l&&l.length?l.join(","):l}),(0,r.jsx)("link",{rel:"preconnect",href:"https://stream.mux.com"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://image.mux.com"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://1x-technologies.webflow.io"}),(0,r.jsx)("meta",{name:"author",content:"1X Technologies"}),(0,r.jsx)("meta",{name:"referrer",content:"no-referrer"}),(0,r.jsx)("meta",{name:"format-detection",content:"telephone=no"}),(0,r.jsx)("meta",{name:"geo.region",content:"US"}),(0,r.jsx)("meta",{name:"twitter:creator",content:"@1x_tech"}),(0,r.jsx)("meta",{name:"twitter:title",content:t||"1X Technologies"}),(0,r.jsx)("meta",{name:"theme-color",content:"#f7f7f7"}),(0,r.jsx)("meta",{name:"twitter:description",content:n||d}),(0,r.jsx)("meta",{name:"twitter:image",content:i||p}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon/favicon-32x32.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon/favicon-16x16.png"}),(0,r.jsx)("link",{rel:"manifest",href:"/favicon/site.webmanifest"}),(0,r.jsx)("link",{rel:"icon",href:"/favicon/favicon-32x32.png"}),(0,r.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.1x.tech/#organization",name:"1X Tech",legalName:"1X Technologies",url:"https://www.1x.tech/",logo:"https://www.1x.tech/favicon/android-chrome-512x512.png",sameAs:["https://x.com/1x_tech"]},{"@type":"WebSite","@id":"https://www.1x.tech/#website",name:"1X Tech",url:"https://www.1x.tech/",publisher:{"@id":"https://www.1x.tech/#organization"}}]})}}),(0,r.jsx)("title",{children:t})]}),(0,r.jsx)(a.PB,{title:t,description:n||d,openGraph:{title:t,description:n||d,type:"website",locale:"en_US",images:[{url:i||p,width:1200,height:630,alt:t}],defaultImageWidth:1200,defaultImageHeight:630,site_name:"1X Tech"},twitter:{handle:c.handle,cardType:"summary_large_image",site:"https://1x.te
9ch"}})]})}},50894:function(e,t,n){"use strict";n.d(t,{A:function(){return x}});var r=n(85893),a=n(66230),i=n(90512),o=n(25675),l=n.n(o),s=n(41664),c=n.n(s),u=n(55386),d=n(11163),p=e=>{let{socials:t}=e,n=(0,d.useRouter)();return(0,r.jsx)("div",{className:(0,i.W)("bg-[#222]",["/order-configuration","/order","/checkout","/checkout/success","/vip-order","/order-confirm"].includes(n.pathname)&&"hidden"),children:(0,r.jsx)(u.E.div,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.3}},exit:{opacity:0,transition:{duration:.3}},className:(0,i.W)("relative","xl:border-t-[1px] xl:border-neogGrey bg-[#f7f7f7]","/logs"==n.pathname&&"!bg-[#0E0F0E] xl:!border-t-[0px]","/neo"==n.pathname&&"!border-t-[0px]"),children:(0,r.jsxs)("footer",{className:(0,i.W)("px-[32px] border-t-[1px] border-t-gammaGrey/5 pt-[32px] pb-[40px] flex gap-x-columnGap bg-[#f7f7f7] uppercase","lg:flex lg:justify-between lg:w-full lg:pb-[32px]","xl:max-w-[2036px] xl:mx-auto xl:border-t-[0px]",n.pathname.includes("/discover")&&"!border-t-[1px] border-t-discoveryDark/5","/logs"==n.pathname&&"!bg-[#0E0F0E]","/neo"==n.pathname&&"!border-t-[0px]"),children:[(0,r.jsxs)("div",{className:(0,i.W)("w-full flex flex-col justify-between","lg:col-span-4 "),children:[(0,r.jsx)(c(),{href:"/",scroll:!1,children:"/logs"==n.pathname?(0,r.jsx)(l(),{src:"/icons/logsIcon.svg",width:32,height:20,alt:"1x Logo"}):(0,r.jsx)(l(),{src:"/icons/1xLogo.svg",width:32,height:20,alt:"1x Logo"})}),(0,r.jsxs)("span",{className:(0,i.W)("font-normal text-gammaGrey/60 text-[9px] leading-[14.4px] tracking-[0.08rem]","lg:block lg:text-[10px] leading-[16px]","/logs"==n.pathname&&"!text-[#ACACAC]"),children:["1X \xa9 ",new Date().getFullYear()]})]}),(0,r.jsx)("div",{className:(0,i.W)("flex flex-col gap-y-[40px] text-[9px] leading-[14.4px] text-gammaGrey/60 w-full font-normal tracking-[0.08rem]","lg:flex-row lg:gap-x-[32px] lg:justify-start lg:text-[10px] lg:leading-[1] font-normal","/logs"==n.pathname&&"!text-[#ACACAC]"),children:[[{name:"NEO",url:"/neo",isInternal:!0},{name:"Careers",url:"/careers",isInternal:!0},{name:"AI",url:"/ai",isInternal:!0},{name:"Factory",url:"/manufacturing",isInternal:!0},{name:"About",url:"/about",isInternal:!0},{name:"Stories",url:"/discover",isInternal:!0},{name:"Robot Fleet",url:"/robot-fleet",isInternal:!0},{name:"Logs",url:"/logs",isInternal:!0}],t,[{name:"Terms of Use",url:"/terms-and-conditions",isInternal:!0},{name:"Privacy & Cookies",url:"/privacy-policy",isInternal:!0},{name:"Press",url:"/press",isInternal:!0},{name:"Support",url:"/support",isInternal:!0}],[{name:"Get Updates",url:"/get-updates",isInternal:!0},{name:"Investor Relations",url:"/investor-relations",isInternal:!0}]].map((e,t)=>(0,r.jsx)("div",{className:(0,i.W)("flex flex-col gap-y-[16px]","lg:col-span-1 lg:w-full lg:gap-y-[24px]"),children:e.map((e,t)=>e.isInternal?(0,r.jsx)(c(),{scroll:!1,className:(0,i.W)("animatedFooterLink whitespace-nowrap"),href:e.url,children:e.name},e.name+"internal-link-name"):(0,r.jsx)("a",{href:e.url,className:(0,i.W)("animatedFooterLink whitespace-nowrap"),target:"_blank",rel:"noreferrer",children:e.name},e.name+"external-link-name"))},e[0].name))})]})})})},f=n(67294);function x(e){let{children:t,seo:n={title:"",description:"",image:"",keywords:""},globalSettings:o,preloadedImage:l=""}=e;return(0,f.useEffect)(()=>{""==window.location.hash&&window.scrollTo(0,0)},[]),(0,r.jsxs)("div",{className:(0,i.W)("font-regular"),children:[(0,r.jsx)(a.u,{...n,preloadedImage:l}),t,(0,r.jsx)(p,{socials:o.socials})]})}},21856:function(e,t,n){"use strict";n.d(t,{Y:function(){return a}});var r=n(67294);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[n,a]=(0,r.useState)(!1),i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let n=new IntersectionObserver(e=>{let[t]=e;a(t.isIntersecting)},{threshold:e,...t});return i.current&&n.observe(i.current),()=>{i.current&&n.unobserve(i.current)}},[]),[i,n]}},33791:function(e,t,n){"use strict";n.d(t,{E0:function(){return i},Np:function(){return a},Sj:function(){return o},eh:function(){return c}
9,ou:function(){return s},qH:function(){return l}});var r=n(48684);let a={initial:{opacity:0},animate:{opacity:1,transition:{duration:.5,delay:.5,ease:"easeOut"}},exit:{opacity:0,transition:{duration:.3}}},i={initial:{opacity:0},animate:{opacity:1,transition:{duration:.3}},exit:{opacity:0,transition:{duration:.3}}},o={initial:{opacity:1},animate:{opacity:1,transition:{staggerChildren:.1,delayChildren:.2}},exit:{opacity:1}},l={initial:{opacity:1},animate:{opacity:1,transition:{staggerChildren:.04,delayChildren:.2}},exit:{opacity:1}},s={initial:{opacity:0,y:20,filter:"blur(3px)"},animate:{opacity:1,y:0,filter:"blur(0px)",transition:{duration:1,opacity:{duration:.5,ease:"linear"},filter:{duration:.5,ease:"linear"},y:{duration:1.2,ease:(0,r._)(.19,1,.22,1)}}},exit:{opacity:0,transition:{duration:.3,opacity:{duration:.3,ease:"linear"}}}},c={initial:{opacity:0,y:20,filter:"blur(3px)"},animate:{opacity:.65,y:0,filter:"blur(0px)",transition:{duration:1,opacity:{duration:.5,ease:"linear"},filter:{duration:.5,ease:"linear"},y:{duration:1.2,ease:(0,r._)(.19,1,.22,1)}}},exit:{opacity:0,transition:{duration:.3,opacity:{duration:.3,ease:"linear"}}}}},98828:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return j},default:function(){return k}});var r=n(85893),a=n(27614),i=n(90998),o=n(50894),l=n(90512);n(34155).env.ASHBY_JOB_BOARD_NAME;var s=n(67294),c=n(2261);n(26182);var u=e=>{let{jobOffers:t}=e,[n,a]=(0,s.useState)("all"),[i,o]=(0,s.useState)(""),u=(0,s.useMemo)(()=>(function(e){let t=new Map;for(let n of e)t.has(n.department)||t.set(n.department,[]),t.get(n.department).push(n);let n=Array.from(t,e=>{let[t,n]=e;return{department:t,jobs:[...n].sort((e,t)=>e.sharing_title.localeCompare(t.sharing_title,void 0,{sensitivity:"base"}))}});return n.sort((e,t)=>((null==e?void 0:e.department)||"").localeCompare((null==t?void 0:t.department)||"",void 0,{sensitivity:"base"})),n})(t),[t]),d=u.map(e=>e.department),p=(0,s.useMemo)(()=>{let e=i.trim().toLowerCase();return u.filter(e=>"all"===n||e.department===n).map(t=>({...t,jobs:e?t.jobs.filter(t=>(function(e,t){let n=[e.sharing_title,e.department,...e.locations.map(e=>[e.name,e.city,e.state_code,e.country].filter(Boolean).join(" "))].join(" ").toLowerCase();return t.split(/\s+/).filter(Boolean).every(e=>n.includes(e))})(t,e)):t.jobs})).filter(e=>e.jobs.length>0)},[u,n,i]),f=(0,s.useRef)(null);function x(e){var t;a(e),null===(t=f.current)||void 0===t||t.scrollIntoView({behavior:"smooth",block:"start"})}return(0,r.jsx)("div",{className:(0,l.W)("bg-[#f7f7f7] min-h-[500px] lg:min-h-[800px]"),children:(0,r.jsxs)("section",{ref:f,id:"open-roles",className:(0,l.W)("font-regular pt-[68px]","lg:pt-[80px] lg:border-t-[0px] lg:pb-[116px] lg:grid lg:grid-cols-8 lg:px-[32px]","xl:max-w-[2036px] xl:mx-auto xl:px-[32px]"),children:[(0,r.jsxs)(c.tq,{spaceBetween:20,slidesOffsetBefore:32,slidesOffsetAfter:32,slidesPerView:"auto",freeMode:!0,className:(0,l.W)("flex text-[9px] leading-[14px] items-start gap-y-[16px] uppercase pt-[68px]","lg:!hidden lg:pt-[0px]"),children:[(0,r.jsx)(c.o5,{className:(0,l.W)("!w-fit"),children:(0,r.jsx)("button",{onClick:()=>x("all"),className:(0,l.W)('uppercase transition-colors duration-200 text-left relative py-[12px] tracking-[0.08rem] after:content-[""] after:absolute after:left-[0px] after:bottom-[10px] after:w-full after:h-[1px] after:bg-gammaGrey after:transition-all after:duration-200 after:opacity-0',"all"==n?"text-gammaGrey after:opacity-100":"text-[#413E3E]/60"),children:"All"})}),null==d?void 0:d.filter(e=>e).map((e,t)=>(0,r.jsx)(c.o5,{className:(0,l.W)("!w-fit"),children:(0,r.jsx)("button",{onClick:()=>x(e),className:(0,l.W)('uppercase py-[12px] tracking-[0.08rem] relative transition-colors duration-200 text-left after:content-[""] after:absolute after:left-[0px] after:bottom-[10px] after:w-full after:h-[1px] after:bg-gammaGrey after:transition-all after:duration-200 after:opacity-0',n===e?"text-gammaGrey after:opacity-100":"text-[#413E3E]/60"),children:(0,r.jsx)("span",{children:e})})},e))]}),(0,r.jsxs)("div",{className:(0,l.W)("hidden text-[9px] leading-[14px] items-start gap-y-[16px] uppercase","lg:flex lg:flex-col lg:col-span-2 lg:sticky lg:h-fit lg:top-[140px]"),children:[(0,r.jsx)("button",{onClick:()=>x("all"),className:(0,l.W)("uppercase transition-colors duration-200 text-left relative tracking-[0.08rem] font-normal","all"==n?"text-gammaGrey after:opacity-100":"text-[#413E3E]/60"),children:"All"}),null==d?void 0:d.filter(e=>e).map((e,t)=>(0,r.jsx)("button",{onClick:()=>x(e),className:(0,l.W)("uppercase relative tracking-[0.08rem] transition-colors duration-200 text-left font-normal",n===e?"text-gammaGrey after:opacity-100":"text-[#413E3E]/60"),children:(0,r.jsx)("span",{children:e})},e))]}
9),(0,r.jsxs)("div",{className:(0,l.W)("mt-[68px] px-[32px] pb-[80px]","lg:px-[0px] lg:col-span-4 lg:mt-[0px]","ml:px-[0px]"),children:[(0,r.jsxs)("div",{className:(0,l.W)("relative flex items-center gap-x-[12px] border-b-[1px] border-gammaGrey/20 pb-[12px]","focus-within:border-gammaGrey/60 transition-colors duration-200"),children:[(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:(0,l.W)("flex-shrink-0"),children:[(0,r.jsx)("circle",{cx:"7",cy:"7",r:"4.75",stroke:"#41403C",strokeOpacity:"0.6",strokeWidth:"1.1"}),(0,r.jsx)("path",{d:"M10.5 10.5L14 14",stroke:"#41403C",strokeOpacity:"0.6",strokeWidth:"1.1"})]}),(0,r.jsx)("input",{type:"search",value:i,onChange:e=>o(e.target.value),placeholder:"Search roles","aria-label":"Search open roles",className:(0,l.W)("w-full rounded-[0px] bg-transparent text-gammaGrey placeholder:text-gammaGrey/50 focus:outline-none appearance-none","text-[12px] leading-[19.2px]","lg:text-[16px] lg:leading-[24px]","[&::-webkit-search-cancel-button]:hidden")}),i&&(0,r.jsx)("button",{type:"button",onClick:()=>o(""),"aria-label":"Clear search",className:(0,l.W)("flex-shrink-0 text-[9px] leading-[14px] tracking-[0.08rem] uppercase text-[#413E3E]/60 transition-colors duration-200","lg:hover:text-gammaGrey"),children:"Clear"})]}),0===p.length&&(0,r.jsxs)("div",{className:(0,l.W)("mt-[32px] flex flex-col items-start gap-y-[16px]","lg:mt-[48px]"),children:[(0,r.jsx)("p",{className:(0,l.W)("text-[12px] leading-[19.2px] text-gammaGrey/60","lg:text-[18px] lg:leading-[28px]"),children:"No open roles match your search."}),"all"!==n&&(0,r.jsx)("button",{type:"button",onClick:()=>x("all"),className:(0,l.W)("text-[9px] leading-[14px] tracking-[0.08rem] uppercase text-[#413E3E]/60 transition-colors duration-200","lg:text-[10px] lg:leading-[16px] lg:hover:text-gammaGrey"),children:"Search all departments"})]}),(0,r.jsx)("div",{className:(0,l.W)("flex flex-col gap-y-[91px] mt-[48px]","lg:mt-[64px]"),children:null==p?void 0:p.map((e,t)=>(0,r.jsxs)("div",{className:(0,l.W)("lg:flex lg:flex-col lg:w-full lg:gap-y-[24px]"),children:[(0,r.jsx)("h3",{className:(0,l.W)(" text-[9px] leading-[14px] text-gammaGrey tracking-[0.08rem] uppercase font-normal","lg:col-span-1 lg:text-[10px] lg:leading-[16px]"),children:e.department}),(0,r.jsx)("div",{className:(0,l.W)("flex flex-col mt-[32px] gap-y-[32px]","lg:mt-[0px] lg:col-span-2 lg:gap-y-[24px]"),children:e.jobs.map((t,n)=>(0,r.jsx)("a",{href:null==t?void 0:t.careers_url,target:"_blank",rel:"noopener noreferrer",children:(0,r.jsxs)("article",{className:(0,l.W)("text-neoGrey group",0==n&&"lg:pt-[0px]",n==e.jobs.length-1&&"","lg:flex lg:justify-between lg:gap-x-[32px] lg:transiton-colors lg:duration-300"),children:[(0,r.jsx)("h6",{className:(0,l.W)("text-[12px] leading-[19.2px] text-gammaGrey","lg:text-[18px] lg:leading-[28px]"),children:t.sharing_title}),(0,r.jsxs)("div",{className:(0,l.W)("flex justify-between relative"),children:[(0,r.jsxs)("h6",{className:(0,l.W)("text-[12px] leading-[19.2px] text-gammaGrey/60"),children:[t.locations[0].city,","," ","norway"==t.locations[0].country.toLowerCase()?t.locations[0].country:t.locations[0].state_code]}),(0,r.jsx)("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,l.W)("hidden opacity-0","lg:block lg:translate-x-[-5px] lg:w-[14px] absolute right-[-24px]","lg:group-hover:translate-x-[0px] lg:group-hover:opacity-100 lg:transition-all lg:duration-300 lg:flex-shrink-0"),children:(0,r.jsx)("g",{clipPath:"url(#clip0_2131_4786)",children:(0,r.jsx)("path",{d:"M10.125 3.875L9.32062 4.65856L13.5844 8.9375H2.25V10.0625H13.5844L9.32062 14.3223L10.125 15.125L15.75 9.5L10.125 3.875Z",fill:"#41403C"})})})]})]},t.id)},t.id+"--"+n+"job-id"))})]},e.department))})]})]})})},d=n(55386),p=n(33791),f=n(99209),x=n(11163),m=n(56801),g=n(65906),h=e=>{let{source:t,data:n}=e;return(0,r.jsxs)("section",{className:(0,l.W)(" min-h-[880px] h-screen relative"),children:[(0,r.jsx)(g.Z,{playbackId:null==n?void 0:n.backgroundImage.video.asset.playbackId,className:(0,l.W)("absolute w-full h-full object-cover")}),(0,r.jsxs)("h3",{className:(0,l.W)("absolute left-[32px] top-[50%] translate-y-[-50%] text-[40px] leading-[40px] tracking-[-0.04em] text-[#f7f7f7] flex flex-col z-[2]","lg:flex-row lg:gap-x-[8px] lg:text-[44px] lg;leading-[44px]","xl:left-[calc((100%-2036px)/2)]"),children:[(0,r.jsx)("span",{children:null==n?void 0:n.title}),(0,r.jsx)("span",{className:(0,l.W)("opacity-60"),children:null==n?void 0:n.subtitle})]}),(0,r.jsx)("div",{className:(0,l.W)("absolute px-[32px] w-full left-0 bottom-0","lg:left-[unset] lg:right-[32px] lg:!w-[360px] lg:px-[0px] lg:bottom-[unset] lg:top-[50%] lg:translate-y-[-50%] z-[2]","xl:right-[calc((100%-2036px)/2)]"),children:(0,r.jsx)(m.Z,{isCareersPage:!0,emailCta:"Join waitlist",legalBlurb:"Opt in to receive updates. Unsubscribe anytime.",source:t})})]})},y=n(25675),b=n.n(y),v=n(83140),w=e=>{var t,n;let{data:a,jobOffers:i}=e,o=(0,x.useRouter)();(0,s.useEffect)(()=>
9{if(o.asPath.includes("#")){let e=o.asPath.split("#")[1],t=document.getElementById(e);t&&(t.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{history.pushState("",document.title,window.location.pathname+window.location.search)},1e3))}},[o.asPath]);let c=(0,f.K)(e=>e.mounted);return(0,r.jsxs)("main",{className:(0,l.W)("font-regular bg-[#222]"),children:[(0,r.jsxs)("section",{className:(0,l.W)("relative overflow-hidden h-[100svh] bg-[#222]","lg:min-h-[600px]"),children:[(0,r.jsx)(d.E.div,{variants:c?p.E0:{},initial:"initial",animate:"animate",exit:"exit",className:(0,l.W)("h-full"),children:(null==a?void 0:null===(t=a.backgroundImage)||void 0===t?void 0:t.asset)&&(0,r.jsx)(b(),{src:(0,v.i)(null==a?void 0:a.backgroundImage).quality(100).url(),alt:null==a?void 0:null===(n=a.backgroundImage)||void 0===n?void 0:n.alt,width:3e3,height:2e3,quality:100,priority:!0,className:(0,l.W)("w-full h-[100svh] object-cover object-[83%_0%]")})},"careers hero video"),(0,r.jsx)("div",{className:(0,l.W)("absolute top-[50%] translate-y-[-50%] left-[8px] z-[2]","lg:top-[calc(50vh-64px)] lg:translate-y-[0px]","xl:left-[calc((100%-2036px)/2)]"),children:(0,r.jsxs)(d.E.h1,{variants:p.qH,initial:"initial",animate:"animate",exit:"exit",className:(0,l.W)("text-[#F7F7F7] relative text-[40px] leading-[40px] tracking-[-0.04em] font-medium p-[24px] z-[2]","lg:text-[44px] lg:leading-[44px] lg:tracking-[-0.03em]","xl:pl-[32px]"),children:[(0,r.jsx)("span",{className:(0,l.W)("hidden lg:inline"),children:a.title.split(" ").map((e,t)=>(0,r.jsxs)(d.E.span,{variants:p.ou,className:(0,l.W)("inline-block"),children:[e,"\xa0"]},t))}),(0,r.jsx)(d.E.span,{variants:p.ou,className:(0,l.W)("inline-block lg:hidden"),children:"Careers"})]},"careers hero heading")})]}),(0,r.jsxs)("div",{className:(0,l.W)("bg-neoFrost relative z-[2]"),children:[(0,r.jsx)(u,{jobOffers:i}),(0,r.jsx)(h,{source:"Website - Careers",data:null==a?void 0:a.CTA})]})]})},j=!0;function k(e){let[t]=(0,i.y)(e.careers,a.Q5),{careers:n,draftMode:l,jobOffers:s}=e;return(0,r.jsx)(o.A,{seo:e.seo,globalSettings:e.globalSettings,children:(0,r.jsx)(w,{data:t,jobOffers:s})})}},52226:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,i){try{return function e(i,o){if(i===o)return!0;if(i&&o&&"object"==typeof i&&"object"==typeof o){var l,s,c,u;if(i.constructor!==o.constructor)return!1;if(Array.isArray(i)){if((l=i.length)!=o.length)return!1;for(s=l;0!=s--;)if(!e(i[s],o[s]))return!1;return!0}if(n&&i instanceof Map&&o instanceof Map){if(i.size!==o.size)return!1;for(u=i.entries();!(s=u.next()).done;)if(!o.has(s.value[0]))return!1;for(u=i.entries();!(s=u.next()).done;)if(!e(s.value[1],o.get(s.value[0])))return!1;return!0}if(r&&i instanceof Set&&o instanceof Set){if(i.size!==o.size)return!1;for(u=i.entries();!(s=u.next()).done;)if(!o.has(s.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(i)&&ArrayBuffer.isView(o)){if((l=i.length)!=o.length)return!1;for(s=l;0!=s--;)if(i[s]!==o[s])return!1;return!0}if(i.constructor===RegExp)return i.source===o.source&&i.flags===o.flags;if(i.valueOf!==Object.prototype.valueOf&&"function"==typeof i.valueOf&&"function"==typeof o.valueOf)return i.valueOf()===o.valueOf();if(i.toString!==Object.prototype.toString&&"function"==typeof i.toString&&"function"==typeof o.toString)return i.toString()===o.toString();if((l=(c=Object.keys(i)).length)!==Object.keys(o).length)return!1;for(s=l;0!=s--;)if(!Object.prototype.hasOwnProperty.call(o,c[s]))return!1;if(t&&i instanceof Element)return!1;for(s=l;0!=s--;)if(("_owner"!==c[s]&&"__v"!==c[s]&&"__o"!==c[s]||!i.$$typeof)&&!e(i[c[s]],o[c[s]]))return!1;return!0}return i!=i&&o!=o}(e,i)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},62212:function(e,t,n){"use strict";n.d(t,{Nc:function(){return m}});var r,a=n(67294),i=n(85893),o=(0,a.forwardRef)(({as:e="div",...t},n)=>(0,i.jsx)(e,{...t,ref:n})),l="cf-turnstile-script",s="onloadTurnstileCallback",c=e=>!!document.getElementById(e),u=({render:e="explicit",onLoadCallbackName:t=s,scriptOptions:{nonce:n="",defer:r=!0,async:a=!0,id:i="",appendTo:o,onError:u,crossOrigin:d=""}={}})=>{let p=i||l;if(c(p))return;let f=document.createElement("script");f.id=p,f.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?onload=${t}&render=${e}`,document.querySelector(`script[src="${f.src}"]`)||(f.defer=!!r,f.async=!!a,n&&(f.nonce=n),d&&(f.crossOrigin=d),u&&(f.onerror=u,delete window[t]),("body"===o?document.body:document.getElementsByTagName("head")[0]).appendChild(f))},d={normal:{width:300,height:65},compact:{width:150,height:140},invisible:{width:0,height:0,overflow:"hidden"},flexible:{minWidth:300,width:"100%",height:65},interactionOnly:{width:"fit-content",height:"auto",display:"flex"}}
9,p="unloaded",f=new Promise((e,t)=>{r={resolve:e,reject:t},"ready"===p&&e(void 0)}),x=(e=s)=>("unloaded"===p&&(p="loading",window[e]=()=>{r.resolve(),p="ready",delete window[e]}),f),m=(0,a.forwardRef)((e,t)=>{let{scriptOptions:n,options:r={},siteKey:f,onWidgetLoad:m,onSuccess:g,onExpire:h,onError:y,onBeforeInteractive:b,onAfterInteractive:v,onUnsupported:w,onTimeout:j,onLoadScript:k,id:E,style:N,as:S="div",injectScript:W=!0,rerenderOnCallbackChange:I=!1,...C}=e,O=r.size,T=(0,a.useCallback)(()=>typeof O>"u"?{}:"execute"===r.execution?d.invisible:"interaction-only"===r.appearance?d.interactionOnly:d[O],[r.execution,O,r.appearance]),[_,A]=(0,a.useState)(T()),F=(0,a.useRef)(null),[z,L]=(0,a.useState)(!1),G=(0,a.useRef)(void 0),R=(0,a.useRef)(!1),P=E||"cf-turnstile",B=(0,a.useRef)({onSuccess:g,onError:y,onExpire:h,onBeforeInteractive:b,onAfterInteractive:v,onUnsupported:w,onTimeout:j});(0,a.useEffect)(()=>{I||(B.current={onSuccess:g,onError:y,onExpire:h,onBeforeInteractive:b,onAfterInteractive:v,onUnsupported:w,onTimeout:j})});let U=n?.id||l,M=function(e=l){let[t,n]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let t=()=>{c(e)&&n(!0)},r=new MutationObserver(t);return r.observe(document,{childList:!0,subtree:!0}),t(),()=>{r.disconnect()}},[e]),t}(U),D=n?.onLoadCallbackName||s,V=r.appearance||"always",J=(0,a.useMemo)(()=>({sitekey:f,action:r.action,cData:r.cData,theme:r.theme||"auto",language:r.language||"auto",tabindex:r.tabIndex,"response-field":r.responseField,"response-field-name":r.responseFieldName,size:function(e){if("invisible"!==e&&"interactionOnly"!==e)return e}(O),retry:r.retry||"auto","retry-interval":r.retryInterval||8e3,"refresh-expired":r.refreshExpired||"auto","refresh-timeout":r.refreshTimeout||"auto",execution:r.execution||"render",appearance:r.appearance||"always","feedback-enabled":r.feedbackEnabled||!0,callback:e=>{R.current=!0,I?g?.(e):B.current.onSuccess?.(e)},"error-callback":I?y:(...e)=>B.current.onError?.(...e),"expired-callback":I?h:(...e)=>B.current.onExpire?.(...e),"before-interactive-callback":I?b:(...e)=>B.current.onBeforeInteractive?.(...e),"after-interactive-callback":I?v:(...e)=>B.current.onAfterInteractive?.(...e),"unsupported-callback":I?w:(...e)=>B.current.onUnsupported?.(...e),"timeout-callback":I?j:(...e)=>B.current.onTimeout?.(...e)}),[r.action,r.appearance,r.cData,r.execution,r.language,r.refreshExpired,r.responseField,r.responseFieldName,r.retry,r.retryInterval,r.tabIndex,r.theme,r.feedbackEnabled,r.refreshTimeout,f,O,I,I?g:null,I?y:null,I?h:null,I?b:null,I?v:null,I?w:null,I?j:null]),q=(0,a.useCallback)(()=>"u">typeof window&&!!window.turnstile,[]);return(0,a.useEffect)(function(){W&&!z&&(x(D),u({onLoadCallbackName:D,scriptOptions:{...n,id:U}}))},[W,z,n,U,D]),(0,a.useEffect)(function(){"ready"!==p&&x(D).then(()=>L(!0)).catch(console.error)},[D]),(0,a.useEffect)(function(){if(!F.current||!z)return;let e=!1;return(async()=>{if(e||!F.current)return;let t=window.turnstile.render(F.current,J);G.current=t,G.current&&m?.(G.current)})(),()=>{e=!0,G.current&&(window.turnstile.remove(G.current),R.current=!1)}},[P,z,J]),(0,a.useImperativeHandle)(t,()=>{let{turnstile:e}=window;return{getResponse(){if(!e?.getResponse||!G.current||!q()){console.warn("Turnstile has not been loaded");return}return e.getResponse(G.current)},getResponsePromise:async(e=3e4,t=100)=>new Promise((n,r)=>{let a,i=async()=>{if(R.current&&window.turnstile&&G.current)try{let e=window.turnstile.getResponse(G.current);return a&&clearTimeout(a),e?n(e):r(Error("No response received"))}catch(e){return a&&clearTimeout(a),console.warn("Failed to get response",e),r(Error("Failed to get response"))}a||(a=setTimeout(()=>{a&&clearTimeout(a),r(Error("Timeout"))},e)),await new Promise(e=>setTimeout(e,t)),await i()};i()}),reset(){if(!e?.reset||!G.current||!q()){console.warn("Turnstile has not been loaded");return}"execute"===r.execution&&A(d.invisible);try{R.current=!1,e.reset(G.current)}catch(e){console.warn(`Failed to reset Turnstile widget ${G}`,e)}},remove(){if(!e?.remove||!G.current||!q()){console.warn("Turnstile has not been loaded");return}A(d.invisible),R.current=!1,e.remove(G.current),G.current=null}
9,render(){if(!e?.render||!F.current||!q()||G.current){console.warn("Turnstile has not been loaded or container not found");return}let t=e.render(F.current,J);return G.current=t,G.current&&m?.(G.current),"execute"!==r.execution&&A(O?d[O]:{}),t},execute(){if("execute"!==r.execution){console.warn('Execution mode is not set to "execute"');return}if(!e?.execute||!F.current||!G.current||!q()){console.warn("Turnstile has not been loaded or container not found");return}e.execute(F.current,J),A(O?d[O]:{})},isExpired:()=>e?.isExpired&&G.current&&q()?e.isExpired(G.current):(console.warn("Turnstile has not been loaded"),!1)}},[G,r.execution,O,J,F,q,z,m]),(0,a.useEffect)(()=>{if(z||!M)return;if(window.turnstile){L(!0);return}let e=setInterval(()=>{window.turnstile&&(L(!0),clearInterval(e))},50);return()=>{clearInterval(e)}},[z,M]),(0,a.useEffect)(()=>{A(T())},[r.execution,O,V]),(0,a.useEffect)(()=>{M&&"function"==typeof k&&k()},[M]),(0,i.jsx)(o,{ref:F,as:S,id:P,style:{..._,...N},...C})});m.displayName="Turnstile"},82717:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(67294),a=({condition:e,fallback:t,children:n,...a})=>e?r.createElement(r.Suspense,{fallback:t,...a},n):r.createElement(r.Fragment,null,t),i=()=>{let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{"undefined"!=typeof window&&t(!0)},[]),e},o=(e,t)=>{let[n,a]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if("function"==typeof IntersectionObserver){let n=new IntersectionObserver(([e])=>{a(e.isIntersecting)},t);return e.current&&n.observe(e.current),()=>{n.disconnect()}}},[e,t]),n},l=r.lazy(()=>Promise.all([n.e(1155),n.e(835),n.e(1056),n.e(4082),n.e(7433)]).then(n.bind(n,67433))),s=e=>{let{style:t,className:n,onIntersection:a,placeholder:i}=e,l=r.useRef(null),s=o(l);return(0,r.useEffect)(()=>{s&&a&&a()},[s,a]),r.createElement(r.Fragment,null,r.createElement("mux-player",{ref:l,"data-mux-player-react-lazy-placeholder":!0,placeholder:null!=i?i:"",style:{"--mux-player-react-lazy-placeholder":i?`url('${i}');`:"",...t},className:n||"",nohotkeys:!0,"aria-hidden":!0,tabIndex:-1},r.createElement("div",{"data-mux-player-react-lazy-placeholder-overlay":!0})),r.createElement("style",null,` 10 mux-player[data-mux-player-react-lazy-placeholder] { 11 aspect-ratio: 16/9; 12 display: block; 13 background-color: var(--media-background-color, #000); 14 width: 100%; 15 position: relative; 16 background-image: var(--mux-player-react-lazy-placeholder); 17 background-repeat: no-repeat; 18 background-size: var(--media-object-fit, contain); 19 background-position: var(--media-object-position, 50% 50%); 20 --controls: none; 21 --controls-backdrop-color: rgba(0, 0, 0, 0.6); 22 } 23 mux-player [data-mux-player-react-lazy-placeholder-overlay] { 24 position: absolute; 25 inset: 0; 26 background-color: var(--controls-backdrop-color); 27 } 28 `))},c={VIEWPORT:"viewport"},u=r.forwardRef((e,t)=>{let{loading:n=c.VIEWPORT,...o}=e,u=i(),[d,p]=(0,r.useState)(()=>n!==c.VIEWPORT);return r.createElement(a,{condition:u&&d,fallback:r.createElement(s,{style:o.style,className:o.className,placeholder:o.placeholder,onIntersection:()=>p(!0)})},r.createElement(l,{...o,ref:t}))})},40275:function(e,t,n){"use strict";let r;n.d(t,{Kx:function(){return x},T:function(){return f},o_:function(){return m}});var a=n(67294);let i=new Uint8Array(16),o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));var l={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let s=["channel/disconnect","channel/response","channel/heartbeat"],c=["handshake/syn","handshake/syn-ack","handshake/ack"],u=e=>s.some(t=>t===e),d=e=>c.some(t=>t===e),p=({data:e={}})=>"object"==typeof e&&null!==e&&!Array.isArray(e)&&!("domain"in e)&&["id","type","from","to"].every(t=>t in e)&&e.type.startsWith("handshake/");function f(e,t,n){let[s,c]=(0,a.useState)(),[f,x]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(window.self===window.top&&!window.opener)return;let e=function(e){let t=window.self!==window.top||window.opener,n={buffer:[],id:null,origin:null,source:null,status:"connecting"};function a(t,a){if(d(t)||u(t)||"connecting"!==n.status&&"reconnecting"!==n.status){if(n.id&&n.origin&&n.source){let s={connectionId:n.id,data:a,domain:"sanity/channels",from:e.id,id:function(e,t,n){if(l.randomUUID&&!t&&!e)return l.randomUUID();let a=(e=e||{}).random||(e.rng||function(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)})();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=a[e];return t}
28return function(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}(a)}(),to:e.connectTo,type:t};try{n.source.postMessage(s,{targetOrigin:n.origin})}catch(t){throw Error(`Failed to postMessage '${s.id}' on '${e.id}'`)}}}else n.buffer.push({type:t,data:a})}function s(t){if(p(t))console.error("Visual editing package mismatch detected! Please ensure you are using the latest version of Sanity Studio and any packages listed here:\nhttps://github.com/sanity-io/visual-editing");else if(function(t){let{data:n}=t;return"sanity/channels"===n.domain&&n.to===e.id&&n.from===e.connectTo&&"channel/response"!==n.type}(t)){let{data:r}=t;if(n.origin&&t.origin!==n.origin)return;if(t.source&&n.source!==t.source&&(n.source=t.source),d(r.type)&&r.data){if("handshake/syn"===r.type)return n.origin=t.origin,n.id=r.data.id,c("connecting"),void a("handshake/syn-ack",{id:n.id});if("handshake/ack"===r.type&&r.data.id===n.id)return void c("connected")}else if(r.connectionId===n.id&&t.origin===n.origin){if("channel/disconnect"===r.type)return void c("disconnected");{let t=[r.type,r.data];e.onEvent?.(...t),a("channel/response",{responseTo:r.id})}return}}}function c(t){n.status=t,e?.onStatusUpdate?.(t),"connected"===t&&function(){let e=[...n.buffer];n.buffer.splice(0,n.buffer.length),e.forEach(({type:e,data:t})=>{a(e,t)})}()}return window.addEventListener("message",s,!1),c("connecting"),{destroy:function(){["disconnected"].includes(n.status)||c("disconnected"),window.removeEventListener("message",s,!1)},inFrame:t,send:function(e,t){a(e,t)}}}({id:"preview-kit",connectTo:"presentation",onStatusUpdate(e){"connected"===e?x(!0):"disconnected"===e&&x(!1)}}),t=setTimeout(()=>c(e),0);return()=>{clearTimeout(t),e.destroy(),c(void 0)}},[n,t]);let m=JSON.stringify(Array.from(e.keys()));(0,a.useEffect)(()=>{"[]"!==m&&s&&f&&s.send("preview-kit/documents",{projectId:t,dataset:n,perspective:"previewDrafts",documents:Array.from(e.values())})},[m,s,f,n,e,t])}function x(e){let t=(0,a.useMemo)(()=>JSON.stringify(e||{}),[e]);return(0,a.useMemo)(()=>JSON.parse(t),[t])}function m(e){let{refreshInterval:t}=e,n=function(){let[e,t]=(0,a.useState)(!1);(0,a.useEffect)(()=>{t(navigator.onLine);let e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e),window.addEventListener("offline",n),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}},[]);let n=(0,a.useSyncExternalStore)(g,()=>document.visibilityState,()=>"hidden");return!e||"hidden"===n}(),[r,i]=(0,a.useState)("hit"),o=(0,a.useCallback)(()=>(i("inflight"),()=>i("hit")),[]);return(0,a.useEffect)(()=>{if(!t||"hit"!==r)return;let e=setTimeout(()=>i("stale"),t);return()=>clearTimeout(e)},[t,r]),(0,a.useEffect)(()=>{if("hit"!==r)return;let e=()=>i("stale");return window.addEventListener("focus",e),()=>window.removeEventListener("focus",e)},[t,r]),(0,a.useEffect)(()=>{n&&"hit"===r&&i("stale"),n||"stale"!==r||i("refresh")},[n,r]),[r,o]}function g(e){return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)}},58113:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});let r=(0,n(67294).createContext)(null)},90998:function(e,t,n){"use strict";n.d(t,{y:function(){return s}});var r=n(40275),a=n(67294),i=n(52226),o=n(72012),l=n(58113);function s(e,t,n,s){let{isEqual:c=i}=s||{},u=(0,a.useContext)(l.x),d=(0,r.Kx)(n),p=(0,a.useMemo)(()=>({subscribe:()=>()=>{},getSnapshot:()=>e}),[e]),f=(0,a.useMemo)(()=>(null==u?void 0:u(e,t,d))||{subscribe:()=>()=>{},getSnapshot:()=>e},[u,e,d,t]),[x]=(0,a.useState)(()=>{if(void 0===e)throw Error("initialSnapshot can't be undefined, if you don't want an initial value use null instead");try{return JSON.parse(JSON.stringify(e))}catch(t){return console.warn("Failed to deep clone initialSnapshot, this is likely an error and an indication that the snapshot isn't JSON serializable",{initialSnapshot:e,error:t}),e}}),m=(0,a.useCallback)(()=>x,[x]),g=(0,a.useCallback)(e=>e,[]),h=(0,o.useSyncExternalStoreWithSelector)((null==f?void 0:f.subscribe)||p.subscribe,(null==f?void 0:f.getSnapshot)||p.getSnapshot,m,g,c),y=null!==u;return[h,y&&x===h,y]}},82729:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{_:function(){return r}})},41972:function(e,t,n){"use strict";function r(e,...t){let n=e.length-1;return e.slice(0,n).reduce((e,n,r)=>e+n+t[r],"")+e[n]}n.d(t,{Z:function(){return r}})}},function(e){e.O(0,[2962,7080,7614,2888,9774,179],function(){return e(e.s=3137)}),_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.