1import{r as p,j as n,L as Ge,H as Vt,y as vi,A as yi,c as bi,I as wi}from"./chunk-BV7QT456-B3asye9c.js";import{p as ve,B as Le,K as Xn,w as Us,x as Ws,z as qs,C as Gs,$ as Ks,F as Ys,G as Xs,I as Js,a0 as Qs,o as $,_ as Nr,S as oe,s as E,r as xe,O as Rt,a1 as at,D as de,a2 as eo,J as we,g as O,c as ke,M as ne,a3 as ji,E as Mn,a4 as ki,R as le,u as dn,j as to,a5 as Ce,a6 as ie,A as ge,H as lt,t as Dn,a7 as Ni,v as Ne,l as ue,L as Si,a8 as Sr,a9 as en,N as Ii}from"./sanity-image-BGd5n0XA.js";import{r as Ci}from"./index-DokYagRb.js";import{l as Ei,m as Ti,o as Li,q as _i,$ as K,r as Ai,t as Pi,u as Oi,v as Ri,w as zi,x as Ir,y as Mi,z as Di,A as $i,B as Fi,C as Bi,D as Vi,E as Hi,F as Zi,G as Ui,H as Wi,I as qi,J as Gi,K as Ki,L as Yi,_ as Xi,n as Ue,f as no,M as Ji,N as Qi,O as ea,P as ta,Q as Cr,R as na,S as ra,T as sa,U as oa,V as ia,W as aa,X as la,Y as ca,Z as ua,a0 as da,a1 as fa,a2 as ma,a3 as pa,a4 as xa,a5 as ha,a6 as ga,a7 as va,a8 as ya,a9 as ba,aa as wa,d as ja,e as ka,ab as Na,ac as Sa,ad as Ia,ae as Ca,af as Ea,ag as Ta,a as La,ah as _a,ai as Aa,aj as Pa,ak as Oa,al as Ra,k as tn,am as ro,an as so,ao as za,ap as Ma,aq as Da,ar as $a,as as Fa,at as Ba,g as Va,j as Ha,au as Za,av as Ua,aw as Wa,c as qa,ax as Ga,ay as Ka,az as Ya,aA as Xa,aB as oo,aC as Ja,aD as Qa,aE as el,aF as tl,aG as nl,aH as rl,aI as Er,aJ as sl,aK as ol,aL as il,aM as al,aN as ll,aO as cl,aP as ul,aQ as dl,aR as fl,aS as ml,aT as pl,aU as xl,aV as hl,aW as gl,aX as vl,aY as yl,aZ as bl,a_ as wl,a$ as jl,b0 as kl,b1 as Nl,b2 as Sl,b3 as Il,b4 as Cl,b5 as El,b6 as Tl,b7 as Ll,b8 as _l,b9 as Al,i as Pl,s as Ol}from"./api-DMg19SM2.js";class Rl{constructor(){this._map=new Map,this._idmap=new Map}add(t,...r){const s=r[0];if(this._map.set(t,s),s&&typeof s=="object"&&"id"in s){if(this._idmap.has(s.id))throw new Error(`ID ${s.id} already exists in the registry`);this._idmap.set(s.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const s={...this.get(r)??{}};delete s.id;const o={...s,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function zl(){return new Rl}const Ht=zl();function Jn(){const[e,t]=p.useState(!1);return p.useEffect(()=>{ve()||t(!0)},[]),e}function nn(e){return e._type==="span"&&"text"in e&&typeof e.text=="string"&&(e.marks===void 0||Array.isArray(e.marks)&&e.marks.every(t=>typeof t=="string"))}function io(e){return typeof e._type=="string"&&e._type[0]!=="@"&&(!("markDefs"in e)||!e.markDefs||Array.isArray(e.markDefs)&&e.markDefs.every(t=>typeof t._key=="string"))&&"children"in e&&Array.isArray(e.children)&&e.children.every(t=>typeof t=="object"&&"_type"in t)}function ao(e){return io(e)&&"listItem"in e&&typeof e.listItem=="string"&&(e.level===void 0||typeof e.level=="number")}function lo(e){return e._type==="@list"}function co(e){return e._type==="@span"}function uo(e){return e._type==="@text"}const Tr=["strong","em","code","underline","strike-through"];function Ml(e,t,r){if(!nn(e)||!e.marks||!e.marks.length)return[];let s=e.marks.slice(),o={};return s.forEach(i=>{o[i]=1;for(let a=t+1;a<r.length;a++){let l=r[a];if(l&&nn(l)&&Array.isArray(l.marks)&&l.marks.indexOf(i)!==-1)o[i]++;else break}}),s.sort((i,a)=>Dl(o,i,a))}function Dl(e,t,r){let s=e[t],o=e[r];if(s!==o)return o-s;let i=Tr.indexOf(t),a=Tr.indexOf(r);return i===a?t.localeCompare(r):i-a}function $l(e){let{children:t}=e,r=e.markDefs??[];if(!t||!t.length)return[];let s=t.map(Ml),o={_type:"@span",children:[],markType:"<unknown>"},i=[o];for(let a=0;a<t.length;a++){let l=t[a];if(!l)continue;let c=s[a]||[],u=1;if(i.length>1)for(;u<i.length;u++){let f=i[u]?.markKey||"",m=c.indexOf(f);if(m===-1)break;c.splice(m,1)}i=i.slice(0,u);let d=i[i.length-1];if(d){for(let f of c){let m=r?.find(x=>x._key===f),g={_type:"@span",_key:l._key,children:[],markDef:m,markType:m?m._type:f,markKey:f};d.children.push(g),i.push(g),d=g}if(nn(l)){let f=l.text.split(` 2`);for(let m=f.length;m-- >1;)f.splice(m,0,` 3`);d.children=d.children.concat(f.map(m=>
3({_type:"@text",text:m})))}else d.children=d.children.concat(l)}}return o.children}function Fl(e,t){let r=[],s;for(let o=0;o<e.length;o++){let i=e[o];if(i){if(!ao(i)){r.push(i),s=void 0;continue}if(!s){s=Zt(i,o,t),r.push(s);continue}if(Bl(i,s)){s.children.push(i);continue}if((i.level||1)>s.level){let a=Zt(i,o,t);if(t==="html"){let l=s.children[s.children.length-1],c={...l,children:[...l.children,a]};s.children[s.children.length-1]=c}else s.children.push(a);s=a;continue}if((i.level||1)<s.level){let a=r[r.length-1],l=a&&$n(a,i);if(l){s=l,s.children.push(i);continue}s=Zt(i,o,t),r.push(s);continue}if(i.listItem!==s.listItem){let a=r[r.length-1],l=a&&$n(a,{level:i.level||1});if(l&&l.listItem===i.listItem){s=l,s.children.push(i);continue}else{s=Zt(i,o,t),r.push(s);continue}}console.warn("Unknown state encountered for block",i),r.push(i)}}return r}function Bl(e,t){return(e.level||1)===t.level&&e.listItem===t.listItem}function Zt(e,t,r){return{_type:"@list",_key:`${e._key||`${t}`}-parent`,mode:r,level:e.level||1,listItem:e.listItem,children:[e]}}function $n(e,t){let r=t.level||1,s=t.listItem||"normal",o=typeof t.listItem=="string";if(lo(e)&&(e.level||1)===r&&o&&(e.listItem||"normal")===s)return e;if(!("children"in e))return;let i=e.children[e.children.length-1];return i&&!nn(i)?$n(i,t):void 0}function fo(e){let t="";return e.children.forEach(r=>{uo(r)?t+=r.text:co(r)&&(t+=fo(r))}),t}const Vl="html",Hl={number:({children:e})=>n.jsx("ol",{children:e}),bullet:({children:e})=>n.jsx("ul",{children:e})},Zl=({children:e})=>n.jsx("li",{children:e}),Ul=({children:e,value:t})=>n.jsx("a",{href:t?.href,children:e}),Wl={textDecoration:"underline"},ql={em:({children:e})=>n.jsx("em",{children:e}),strong:({children:e})=>n.jsx("strong",{children:e}),code:({children:e})=>n.jsx("code",{children:e}),underline:({children:e})=>n.jsx("span",{style:Wl,children:e}),"strike-through":({children:e})=>n.jsx("del",{children:e}),link:Ul},zt=(e,t)=>`[@portabletext/react] Unknown ${e}, specify a component for it in the \`components.${t}\` prop`,mo=e=>zt(`block type "${e}"`,"types"),Gl=e=>zt(`mark type "${e}"`,"marks"),Kl=e=>zt(`block style "${e}"`,"block"),Yl=e=>zt(`list style "${e}"`,"list"),Xl=e=>zt(`list item style "${e}"`,"listItem");function Jl(e){console.warn(e)}const Ql={display:"none"},Lr={types:{},block:{normal:({children:e})=>n.jsx("p",{children:e}),blockquote:({children:e})=>n.jsx("blockquote",{children:e}),h1:({children:e})=>n.jsx("h1",{children:e}),h2:({children:e})=>n.jsx("h2",{children:e}),h3:({children:e})=>n.jsx("h3",{children:e}),h4:({children:e})=>n.jsx("h4",{children:e}),h5:({children:e})=>n.jsx("h5",{children:e}),h6:({children:e})=>n.jsx("h6",{children:e})},marks:ql,list:Hl,listItem:Zl,hardBreak:()=>n.jsx("br",{}),unknownType:({value:e,isInline:t})=>{let r=mo(e._type);return n.jsx(t?"span":"div",{style:Ql,children:r})},unknownMark:({markType:e,children:t})=>n.jsx("span",{className:`unknown__pt__mark__${e}`,children:t}),unknownList:({children:e})=>n.jsx("ul",{children:e}),unknownListItem:({children:e})=>n.jsx("li",{children:e}),unknownBlockStyle:({children:e})=>n.jsx("p",{children:e})};function ec(e,t){let{block:r,list:s,listItem:o,marks:i,types:a,...l}=t;return{...e,block:mt(e,t,"block"),list:mt(e,t,"list"),listItem:mt(e,t,"listItem"),marks:mt(e,t,"marks"),types:mt(e,t,"types"),...l}}function mt(e,t,r){let s=t[r],o=e[r];return typeof s=="function"||s&&typeof o=="function"?s:s?{...o,...s}:o}function Mt({value:e,components:t,listNestingMode:r,onMissingComponent:s=Jl}){let o=s||nc,i;i=Array.isArray(e)?e:e==null?[]:[e];let a=Fl(i,r||Vl),l=p.useMemo(()=>t?ec(Lr,t):Lr,[t]),c=p.useMemo(()=>tc(l,o),[l,o]);return n.jsx(n.Fragment,{children:a.map((u,d)=>c({node:u,index:d,isInline:!1,renderNode:c}))})}const tc=(e,t)=>{function r(f){let{node:m,index:g,isInline:x}=f,y=m._key||`node-${g}`;return lo(m)?i(m,g,y):ao(m)?o(m,g,y):co(m)?a(m,g,y):s(m)?d(m,g,y,x):io(m)?l(m,g,y,x):uo(m)?c(m,y):u(m,g,y,x)}function s(f){return f._type in e.types}function o(f,m,g){let x=_r({node:f,index:m,isInline:!1,renderNode:r}),y=e.listItem,w=(typeof y=="function"?y:y[f.listItem])||e.unknownListItem;if(w===e.unknownListItem){let h=f.listItem||"bullet";t(Xl(h),{type:h,nodeType:"listItemStyle"})}let v=x.children;if(f.style&&f.style!=="normal"){let{listItem:h,...N}=f;v=r({node:N,index:m,isInline:!1})}return n.jsx(w,{value:f,index:m,isInline:!1,renderNode:r,children:v},g)}function i(f,m,g){let x=f.children.map((v,h)=>r({node:v._key?v:{...v,_key:`li-${m}-${h}`},index:h,isInline:!1})),y=e.list,w=(typeof y=="function"?y:y[f.listItem])||e.unknownList;if(w===e.unknownList){let v=f.listItem||"bullet";t(Yl(v),{nodeType:"listStyle",type:v})}return n.jsx(w,{value:f,index:m,isInline:!1,renderNode:r,children:x},g)}function a(f,m,g){let{markDef:x,markType:y,markKey:w}=f,v=e.marks[y]||e.unknownMark,h=f.children.map((N,A)=>
3r({node:N,index:A,isInline:!0}));return v===e.unknownMark&&t(Gl(y),{nodeType:"mark",type:y}),n.jsx(v,{text:fo(f),value:x,markType:y,markKey:w,renderNode:r,children:h},g)}function l(f,m,g,x){let{_key:y,...w}=_r({node:f,index:m,isInline:x,renderNode:r}),v=w.node.style||"normal",h=(typeof e.block=="function"?e.block:e.block[v])||e.unknownBlockStyle;return h===e.unknownBlockStyle&&t(Kl(v),{nodeType:"blockStyle",type:v}),n.jsx(h,{...w,value:w.node,renderNode:r},g)}function c(f,m){if(f.text===` 4`){let g=e.hardBreak;return g?n.jsx(g,{},m):` 5`}return f.text}function u(f,m,g,x){let y={value:f,isInline:x,index:m,renderNode:r};t(mo(f._type),{nodeType:"block",type:f._type});let w=e.unknownType;return n.jsx(w,{...y},g)}function d(f,m,g,x){let y={value:f,isInline:x,index:m,renderNode:r},w=e.types[f._type];return w?n.jsx(w,{...y},g):null}return r};function _r(e){let{node:t,index:r,isInline:s,renderNode:o}=e,i=$l(t).map((a,l)=>o({node:a,isInline:!0,index:l,renderNode:o}));return{_key:t._key||`block-${r}`,children:i,index:r,isInline:s,node:t}}function nc(){}function po({className:e}){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",className:e,children:n.jsx("path",{d:"M12 4v11M7 10l5 5 5-5M5 20h14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}const rc="C0005";function sc(e){const[t,r]=p.useState("pending");return p.useEffect(()=>{const s=window.__wildOneTrustConsent;if(!s){r("unavailable");return}return s.subscribe(o=>{r(o.has(e.toUpperCase())?"granted":"denied")})},[e]),t}const Ar="/embed/feed/update/",oc="www.linkedin.com",ic=634,ac=504;function lc(e){const t=/<iframe[^>]*\ssrc=["']([^"']+)["']/i.exec(e)?.[1];return t||(/^https?:\/\//i.test(e.trim())?e.trim():void 0)}function cc(e){if(!e?.trim())return null;const t=lc(e);if(!t)return null;let r;try{r=new URL(t)}catch{return null}if(r.protocol!=="https:"||r.hostname!==oc||!r.pathname.startsWith(Ar)||r.pathname.length<=Ar.length)return null;const s=Number.parseInt(/\sheight=["']?(\d+)/i.exec(e)?.[1]??"",10),o=new URL(r);return o.pathname=r.pathname.slice(6),o.search="",{src:r.toString(),height:Number.isFinite(s)&&s>0?s:ic,postUrl:o.toString()}}function uc(){window.OneTrust?.ToggleInfoDisplay?.()}function dc({embed:e}){const t=sc(rc),r=cc(e);if(!r)return null;const s=t==="granted"||t==="unavailable";return n.jsx("div",{className:"mt-2xl flex justify-center first:mt-0",style:{maxWidth:"100%"},children:s?n.jsx("iframe",{src:r.src,title:"LinkedIn post",height:r.height,width:ac,loading:"lazy",allowFullScreen:!0,className:"w-full max-w-[504px] border-0",style:{height:r.height}}):n.jsxs("div",{className:"flex w-full max-w-[504px] flex-col items-start justify-center gap-md border border-warm-black/24 bg-warm-black/5 p-lg",style:{minHeight:r.height},children:[n.jsx("p",{className:"font-functional text-body-md text-warm-black",children:"This LinkedIn post canât be shown until you accept social media cookies."}),n.jsxs("div",{className:"flex flex-wrap items-start gap-2xs",children:[n.jsx(Le,{size:"md",variant:"outline",theme:"dark",onClick:uc,children:"Open cookie preferences"}),n.jsx(Le,{size:"md",variant:"fill",theme:"dark",href:r.postUrl,newTab:!0,trailingIcon:n.jsx(Xn,{className:"size-sm"}),children:"View this post on LinkedIn"})]})]})})}const fc=[480,768,1080,1440,1920];function xo(e,{width:t,time:r}={}){const s=new URL(`https://image.mux.com/${e}/thumbnail.jpg`);return t&&s.searchParams.set("width",String(t)),typeof r=="number"&&Number.isFinite(r)&&s.searchParams.set("time",String(r)),s.toString()}const mc=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))([\w-]{11})/;function ho(e){return e.match(mc)?.[1]??null}function pc(e){if(e.includes("youtube-nocookie.com"))return e;const t=ho(e);return t?`https://www.youtube-nocookie.com/watch?v=${t}`:e}function xc(e,{fallback:t=!1}={}){return`https://i.ytimg.com/vi/${e}/${t?"mqdefault":"maxresdefault"}.jpg`}function hc(e,t,{width:r,time:s,fallback:o}={}){if(e==="mux")return xo(t,{width:r,time:s});const i=ho(t);return i?xc(i,{fallback:o}):null}function gc(e,t,{time:r}={}){if(e==="mux")return fc.map(s=>`${xo(t,{width:s,time:r})} ${s}w`).join(", ")}function go({className:e}){return n.jsx("svg",{viewBox:"0 0 20 24",fill:"none","aria-hidden":"true",className:e,children:n.jsx("path",{d:"M20 12L0 24V0L20 12ZM3.5 17.8184L13.1973 12L3.5 6.18066V17.8184Z",fill:"currentColor"})})}function vc({className:e}){return n.jsxs("svg",{viewBox:"0 0 14 24",fill:"none","aria-hidden":"true",className:e,children:[n.jsx("path",{d:"M0 0H4V24H0V0Z",fill:"currentColor"}),n.jsx("path",{d:"M10 0H14V24H10V0Z",fill:"currentColor"})]})}function yc({className:e}){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",className:e,children:[n.jsx("path",{d:"M3.5 20.5L9 20.5007V24H0V15.0001H3.5V20.5Z",fill:"currentColor"}),n.jsx("path",{d:"M24 24H15V20.5007L20.5 20.5V15.0001H24V24Z",fill:"currentColor"}),n.jsx("path",{d:"M9 3.5H3.5V9.00064L0 8.99991V0H9V3.5Z",fill:"currentColor"}),n.jsx("path",{d:"M24 8.99991L20.5 9.00064V3.5H15V0H24V8.99991Z",fill:"currentColor"})]})}function bc({className:e}){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",className:e,children:[n.jsx("path",{d:"M9 23.9993L5.5 24V18.5H0V15.0001H9V23.9993Z",fill:"currentColor"}),n.jsx("path",{d:"M24 18.5H18.5V24L15 23.9993V15.0001H24V18.5Z",fill:"currentColor"}),n.jsx("path",{d:"M9 0.000732355V9.00064H0V5.5H5.5V0L9 0.000732355Z",fill:"currentColor"}),n.jsx("path",{d:"M18.5 5.5H24V9.00064H15V0.000732355L18.5 0V5.5Z",fill:"currentColor"})]})}function wc({muted:e=!1,className:t}){return e?n.jsxs("svg",{viewBox:"0 0 31 24",fill:"none","aria-hidden":"true",className:t,children:[n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.963 24L5.93716 19.1076V9.52305H3.3928V14.2738C3.97807 14.417 4.54014 14.6526 5.05296 14.976L3.27007 17.9211C2.92208 17.7017 2.48031 17.5706 2.00804 17.5706H0V6.06128L5.93716 6.0603V5.2449L16.963 0V24ZM9.32996 7.63641V16.6585L13.5702 18.2395V
55.87964L9.32996 7.63641Z",fill:"currentColor"}),n.jsx("path",{d:"M31 8.82874L27.699 12.1645L31 15.5003L28.2015 18.3284L24.9005 14.9926L21.5995 18.3284L18.801 15.5003L22.102 12.1645L18.801 8.82874L21.5995 6.00073L24.9005 9.33653L28.2015 6.00073L31 8.82874Z",fill:"currentColor"})]}):n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",className:t,children:[n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.1429 24L6 19.1077V9.52341H3.42857V14.2737C4.02025 14.4169 4.58846 14.6527 5.10686 14.9762L3.30469 17.9216C2.95293 17.702 2.50643 17.5708 2.02902 17.5707H0V6.06066L6 6.05981V5.24485L17.1429 0V24ZM9.42857 7.63648V16.6586L13.7143 18.2395V5.87974L9.42857 7.63648Z",fill:"currentColor"}),n.jsx("path",{d:"M24 20.7773H20.6401V3.46359H24V20.7773Z",fill:"currentColor"})]})}const jc={cc_load_policy:0};function kn(e){if(!Number.isFinite(e)||e<0)return"00:00";const t=Math.floor(e),r=Math.floor(t/60),s=t%60;return`${String(r).padStart(2,"0")}:${String(s).padStart(2,"0")}`}const Nn="flex size-lg shrink-0 cursor-pointer items-center justify-center bg-off-white text-warm-black transition-colors duration-200 hover:bg-terracotta focus-visible:outline-2 focus-visible:outline-off-white focus-visible:outline-offset-2";function kc(e){const[t,r]=p.useState(!1);return p.useEffect(()=>{let s=!1;return(e==="youtube"?Nr(()=>import("./youtube-video-element-BTK7wVUv.js"),[]):Nr(()=>import("./index-CeHMzKT8.js"),[])).then(()=>{s||r(!0)}).catch(i=>{console.error(`Failed to load the ${e} video player`,i)}),()=>{s=!0}},[e]),t}function Nc(e){const[t,r]=p.useState(!1);return p.useEffect(()=>{const s=()=>r(!!document.fullscreenElement&&document.fullscreenElement===e.current);return s(),document.addEventListener("fullscreenchange",s),()=>document.removeEventListener("fullscreenchange",s)},[e]),t}function Sc(e,t){const[r,s]=p.useState(!1),[o,i]=p.useState(!1),[a,l]=p.useState(0),[c,u]=p.useState(0),[d,f]=p.useState(null);return p.useEffect(()=>{const m=e.current;if(!t||!m)return;const g=()=>s(!m.paused&&!m.ended),x=()=>i(m.muted),y=()=>l(m.currentTime),w=()=>u(Number.isFinite(m.duration)?m.duration:0),v=()=>f(m.videoWidth&&m.videoHeight?m.videoWidth/m.videoHeight:null),h=[["play",g],["pause",g],["ended",g],["volumechange",x],["timeupdate",y],["seeking",y],["loadedmetadata",w],["durationchange",w],["loadedmetadata",v],["resize",v]];for(const[N,A]of h)m.addEventListener(N,A);return g(),x(),y(),w(),v(),()=>{for(const[N,A]of h)m.removeEventListener(N,A)}},[e,t]),{playing:r,muted:o,currentTime:a,duration:c,aspectRatio:d}}function Ic(e,t){p.useEffect(()=>{const r=e.current;if(!t||!r)return;let s=!1;return(async()=>{try{await r.play()}catch{if(s)return;r.muted=!0,await r.play().catch(()=>{})}})(),()=>{s=!0}},[e,t])}const Cc=3e3;function Ec(e,t){const[r,s]=p.useState(!1),o=p.useRef(void 0),i=p.useCallback(()=>{s(!1),clearTimeout(o.current),o.current=setTimeout(()=>s(!0),Cc)},[]);return p.useEffect(()=>(e?i():(clearTimeout(o.current),s(!1)),()=>clearTimeout(o.current)),[e,i]),{chromeVisible:!r||!e||t,wake:i}}function Tc({open:e,onOpenChange:t,provider:r,src:s,title:o,poster:i}){const a=p.useRef(null),l=p.useRef(null),c=kc(r),{playing:u,muted:d,currentTime:f,duration:m,aspectRatio:g}=Sc(l,c);Ic(l,c);const[x,y]=Us();Ws(e,y);const w=p.useRef(null),v=M=>{w.current=M,x(M)},h=Nc(w),N=()=>{const M=l.current;M&&(M.paused||M.ended?M.play().catch(()=>{}):M.pause())},A=()=>{const M=l.current;M&&(M.muted=!M.muted)},C=()=>{document.fullscreenElement?document.exitFullscreen().catch(()=>{}):w.current?.requestFullscreen().catch(()=>{})},R=M=>{const D=l.current;D&&(D.currentTime=Number(M.target.value))},T=m>0?Math.min(100,f/m*100):0,[k,S]=p.useState(!1),[L,b]=p.useState(!1),{chromeVisible:j,wake:_}=Ec(u,k||L),I={onPointerEnter:()=>S(!0),onPointerLeave:()=>S(!1)},z={onFocus:()=>b(!0),onBlur:()=>b(!1)};return n.jsx(qs,{open:e,onOpenChange:t,children:n.jsxs(Gs,{children:[n.jsx(Ks,{className:"drawer-overlay fixed inset-0 z-[80] bg-warm-black/64"}),n.jsxs(Ys,{ref:a,"aria-describedby":void 0,onOpenAutoFocus:M=>{M.preventDefault(),a.current?.focus()},"data-lenis-prevent":!0,onPointerMove:_,onPointerDown:_,onTouchStart:_,onKeyDown:_,className:"video-panel fixed inset-0 z-[90] flex items-center justify-center desktop:px-2xl px-2xs desktop:py-2xl py-2xs outline-none",children:[n.jsx(Xs,{className:"sr-only",children:o}),n.jsxs("div",{ref:v,style:g?{aspectRatio:g}:void 0,className:$("relative aspect-video max-h-full w-full overflow-hidden bg-warm-black",!j&&"cursor-none"),children:[i&&n.jsx("div",{className:"absolute inset-0",children:i}),c&&(r==="youtube"?n.jsx("youtube-video",{ref:l,src:s,config:jc,playsInl
5ine:!0,className:"absolute inset-0 size-full object-contain"}):n.jsx("mux-video",{ref:l,"playback-id":s,"min-resolution":"480p","max-resolution":"1080p","disable-cookies":!0,"disable-tracking":!0,playsInline:!0,preload:"auto",crossOrigin:"anonymous",className:"absolute inset-0 size-full object-contain"})),n.jsx("button",{type:"button","aria-hidden":"true",tabIndex:-1,onClick:N,className:"absolute inset-0 size-full cursor-[inherit]"}),n.jsxs("div",{inert:!j,className:$("pointer-events-none absolute inset-0 transition-opacity duration-300 ease-out motion-reduce:transition-none",j?"opacity-100":"opacity-0"),children:[n.jsx("div",{className:"pointer-events-none absolute inset-0 bg-linear-to-b desktop:from-[79%] from-[64%] from-transparent desktop:to-warm-black/40 to-warm-black/60"}),n.jsx("div",{className:"pointer-events-none absolute inset-0 bg-linear-to-b from-warm-black/40 to-[20%] to-transparent"}),n.jsx(Js,{"aria-label":"Close video",...I,...z,className:"pointer-events-auto absolute desktop:top-xs top-0 desktop:right-xs right-0 flex size-2xl cursor-pointer items-center justify-center text-off-white transition-colors duration-200 hover:text-terracotta focus-visible:text-terracotta",children:n.jsx(Qs,{className:"desktop:size-xl size-md"})}),n.jsxs("div",{...I,className:"pointer-events-auto absolute desktop:inset-x-lg inset-x-2xs bottom-2xs desktop:bottom-lg flex items-center desktop:gap-lg gap-sm",children:[n.jsx("button",{type:"button",onClick:N,"aria-label":u?"Pause":"Play",...z,className:Nn,children:u?n.jsx(vc,{className:"h-xs"}):n.jsx(go,{className:"h-xs"})}),n.jsx("input",{type:"range",min:0,max:m||0,step:"any",value:f,onChange:R,"aria-label":"Seek",...z,"aria-valuetext":`${kn(f)} of ${kn(m)}`,disabled:m===0,style:{backgroundImage:`linear-gradient(to right, var(--color-off-white) ${T}%, color-mix(in srgb, var(--color-off-white) 12%, transparent) ${T}%)`,backgroundSize:"100% 4px",backgroundPosition:"center",backgroundRepeat:"no-repeat"},className:"h-md min-w-0 flex-1 cursor-pointer appearance-none bg-transparent focus-visible:outline-2 focus-visible:outline-off-white focus-visible:outline-offset-2 [&::-moz-range-thumb]:size-0 [&::-moz-range-thumb]:border-0 [&::-webkit-slider-thumb]:size-0 [&::-webkit-slider-thumb]:appearance-none"}),n.jsx("span",{className:"shrink-0 font-functional text-label-sm text-off-white tabular-nums",children:kn(f)}),n.jsxs("div",{className:"flex shrink-0 items-center gap-2xs",children:[n.jsx("button",{type:"button",onClick:C,"aria-label":h?"Exit fullscreen":"Enter fullscreen",...z,className:Nn,children:h?n.jsx(bc,{className:"h-xs"}):n.jsx(yc,{className:"h-xs"})}),n.jsx("button",{type:"button",onClick:A,"aria-label":d?"Unmute":"Mute","aria-pressed":d,...z,className:Nn,children:n.jsx(wc,{muted:d,className:"h-xs"})})]})]})]})]})]})]})})}function Lc({label:e}){return n.jsxs("span",{className:$("relative flex size-4xl items-center justify-center bg-warm-black text-off-white transition-colors duration-200","group-hover:bg-terracotta group-hover:text-warm-black","group-focus-visible:bg-terracotta group-focus-visible:text-warm-black"),children:[n.jsx(go,{className:"h-md"}),n.jsx("span",{className:"sr-only",children:e})]})}function Pr({provider:e,src:t,cover:r,thumbTime:s,alt:o,sizes:i}
5){const[a,l]=p.useState(!1);if(r?.asset?._ref)return n.jsx(oe,{source:r,alt:o,sizes:i,className:"absolute inset-0 object-cover"});const c=hc(e,t,{width:1920,time:s,fallback:a});return c?n.jsx("img",{src:c,srcSet:a?void 0:gc(e,t,{time:s}),sizes:i,alt:"",loading:"lazy",decoding:"async",onError:()=>l(!0),className:"absolute inset-0 h-full w-full object-cover"}):null}function vo({provider:e,src:t,cover:r,thumbTime:s,alt:o,title:i,sizes:a,label:l="Play video",className:c}){const[u,d]=p.useState(!1),f=n.jsx(Pr,{provider:e,src:t,cover:r,thumbTime:s,sizes:"100vw"});return n.jsxs(n.Fragment,{children:[n.jsx("button",{type:"button",onClick:()=>d(!0),className:$("group absolute inset-0 size-full cursor-pointer bg-warm-black",c),children:n.jsxs("span",{className:"flex size-full items-center justify-center",children:[n.jsx(Pr,{provider:e,src:t,cover:r,thumbTime:s,alt:o,sizes:a}),n.jsx(Lc,{label:l})]})}),u&&n.jsx(Tc,{open:u,onOpenChange:d,provider:e,src:t,title:i,poster:f})]})}function yo(e){switch(E(e?.kind)){case"image":{const t=e?.image?.imageFile;return t?.asset?._ref?{kind:"image",image:t,alt:e?.image?.alt??null}:null}case"video":{const t={kind:"video",cover:e?.video?.videoCover?.imageFile??null,alt:null};switch(E(e?.video?.kind)){case"mux":{const r=E(e?.video?.playbackId);if(!r)return null;const s=E(e?.video?.thumbTime);return{...t,provider:"mux",src:r,thumbTime:typeof s=="number"?s:null}}case"youtube":{const r=E(e?.video?.youtube?.videoUrl);return r?{...t,provider:"youtube",src:pc(r),thumbTime:null}:null}default:return null}}default:return null}}const _c="(min-width: 64rem) 746px, 100vw",Ac=new Set(["wild.richtext.style.h2","wild.richtext.style.h3"]);function rn(e){return e?.children?e.children.filter(t=>typeof t.text=="string").map(t=>t.text).join(""):""}function yt(e){return E(e).toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function Pc(e){const t=[];for(const r of e)if(r?._type==="block"&&r.style&&Ac.has(r.style)){const s=E(rn(r));s&&t.push({id:yt(s),text:s})}return t}function Xx(e){if(!e?.length)return 1;const r=E(e.map(s=>rn(s)).join(" ")).replace(/[\u200B-\u200D\u2060\uFEFF]/g,"").trim().split(/\s+/).filter(Boolean).length;return Math.max(1,Math.round(r/200))}function Ze(e){const t=E(e),r=new Date(`${t}T00:00:00Z`);return Number.isNaN(r.getTime())?t:r.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"})}const Oc={types:{articleImage:({value:e})=>{const t=e,r=at(t.image,{width:1600});return r?n.jsxs("figure",{className:"mt-2xl flex flex-col gap-sm first:mt-0",children:[n.jsx("div",{className:"aspect-[2/1] w-full overflow-hidden bg-cool-pink",children:n.jsx("img",{src:r,alt:E(t.alt)??"",className:"h-full w-full object-cover"})}),t.caption&&n.jsx("figcaption",{className:"font-functional text-body-sm text-warm-black/64",children:t.caption})]}):null},articleVideo:({value:e})=>{const t=e,r=yo(t.video);if(r?.kind!=="video")return null;const s=E(t.caption);return n.jsxs("figure",{className:"mt-2xl flex flex-col gap-sm first:mt-0",children:[n.jsx("div",{className:"relative aspect-video w-full overflow-hidden bg-warm-black",children:n.jsx(vo,{provider:r.provider,src:r.src,cover:r.cover,thumbTime:r.thumbTime,alt:r.alt,title:s||"Video",sizes:_c})}),t.caption&&n.jsx("figcaption",{className:"font-functional text-body-sm text-warm-black/64",children:t.caption})]})},pullQuote:({value:e})=>{const t=e;return n.jsxs("figure",{className:"mt-2xl flex flex-col gap-2xl bg-cool-pink p-lg text-warm-black first:mt-0",children:[n.jsxs("div",{className:"flex flex-col gap-sm",children:[n.jsx("svg",{viewBox:"0 0 40 40",fill:"currentColor","aria-hidden":"true",className:"size-xl",children:n.jsx("path",{d:"M19.887 7.08984L15.2542 33.0898H0L7.68362 7.08984H19.887ZM20.113 33.0898L27.7966 7.08984H40L35.3672 33.0898H20.113Z"})}),n.jsx("blockquote",{className:"font-functional text-heading-lg",children:t.quote})]}),(t.attribution||t.role)&&n.jsxs("figcaption",{className:"flex flex-col gap-2xs",children:[t.attribution&&n.jsx("span",{className:"font-functional text-label-sm",children:t.attribution}),t.role&&n.jsx("span",{className:"font-functional text-body-md",children:t.role})]})]})},legalText:({value:e})=>{const t=e,r=(E(t.content)??"").split(/\n{2,}/).map(s=>
5s.trim()).filter(Boolean);return n.jsxs("div",{className:"mt-2xl flex flex-col gap-lg text-warm-black first:mt-0",children:[t.heading&&n.jsx("h4",{className:"font-functional text-heading-sm",children:t.heading}),n.jsx("div",{className:"flex flex-col gap-2xs",children:r.map(s=>n.jsx("p",{className:"font-functional text-body-sm text-warm-black/64",children:s},s.slice(0,32)))})]})},linkedInPost:({value:e})=>n.jsx(dc,{embed:e.embed}),downloadList:({value:e})=>{const t=e,r=(t.items??[]).filter(s=>s?.label);return r.length?n.jsxs("div",{className:"mt-2xl flex flex-col gap-sm border-warm-black/24 border-t py-sm text-warm-black first:mt-0",children:[t.heading&&n.jsx("p",{className:"font-functional font-semibold text-body-sm",children:t.heading}),n.jsx("div",{className:"flex flex-wrap gap-lg",children:r.map(s=>n.jsxs("a",{href:E(s.url)||"#",target:"_blank",rel:"noopener noreferrer",className:"group flex items-center gap-2xs font-functional text-label-md transition-colors hover:text-clay",children:[n.jsxs("span",{children:[s.label,s.size&&n.jsxs("span",{className:"text-warm-black/64 transition-colors group-hover:text-clay",children:[" [",s.size,"]"]})]}),n.jsx(po,{className:"size-md"})]},s._key??s.url??s.label))})]}):null}},block:{normal:({children:e})=>n.jsx("p",{className:"mt-md font-functional text-body-lg first:mt-0",children:e}),"wild.richtext.style.h2":({children:e,value:t})=>n.jsx("h2",{id:yt(rn(t)),className:"mt-2xl scroll-mt-(--header-offset) font-functional text-heading-lg first:mt-0",children:e}),"wild.richtext.style.h3":({children:e,value:t})=>n.jsx("h3",{id:yt(rn(t)),className:"mt-2xl scroll-mt-(--header-offset) font-functional text-heading-md first:mt-0",children:e}),"wild.richtext.style.h4":({children:e})=>n.jsx("h4",{className:"mt-2xl font-functional text-heading-sm first:mt-0",children:e})},list:{"wild.richtext.list.bullet":({children:e})=>n.jsx("ul",{className:"mt-md flex flex-col gap-lg first:mt-0",children:e}),"wild.richtext.list.number":({children:e})=>n.jsx("ol",{className:"mt-md flex flex-col gap-lg first:mt-0",children:e})},listItem:{"wild.richtext.list.bullet":({children:e})=>n.jsxs("li",{className:"flex gap-sm font-functional text-body-lg",children:[n.jsx("span",{className:"flex h-[1lh] shrink-0 items-center",children:n.jsx(Rt,{className:"size-xs"})}),n.jsx("span",{className:"min-w-0 flex-1",children:e})]}),"wild.richtext.list.number":({children:e,index:t})=>n.jsxs("li",{className:"flex items-baseline gap-2xs font-functional text-body-lg",children:[n.jsx("span",{className:"w-lg shrink-0 text-heading-xs",children:String((t??0)+1).padStart(2,"0")}),n.jsx("span",{className:"min-w-0 flex-1",children:e})]})},marks:{"wild.richtext.decorator.strong":({children:e})=>n.jsx("strong",{className:"font-semibold",children:e}),"wild.richtext.decorator.em":({children:e})=>n.jsx("em",{className:"italic",children:e}),"wild.richtext.decorator.code":({children:e})=>n.jsx("code",{className:"rounded-xs bg-warm-black/8 px-2xs py-3xs font-mono text-[0.9em]",children:e}),"wild.richtext.decorator.sup":({children:e})=>n.jsx("sup",{children:e}),strong:({children:e})=>n.jsx("strong",{className:"font-semibold",children:e}),em:({children:e})=>n.jsx("em",{className:"italic",children:e}),"wild.richtext.annotation.textColor":({children:e,value:t})=>{const r=E(t?.value);return r?n.jsx("span",{style:{color:r},children:e}):n.jsx(n.Fragment,{children:e})},"wild.richtext.annotation.highlightColor":({children:e,value:t})=>{const r=E(t?.value);return r?n.jsx("mark",{style:{backgroundColor:r},children:e}):n.jsx(n.Fragment,{children:e})},jumpTarget:({children:e,value:t})=>{const r=yt(E(t.id)??"");return r?n.jsx("span",{id:r,className:"scroll-mt-(--header-offset)",children:e}):n.jsx(n.Fragment,{children:e})},jumpLink:({children:e,value:t})=>{const r=yt(E(t.target)??"");return r?n.jsx("a",{href:`#${r}`,className:"underline underline-offset-2 hover:opacity-60",children:e}):n.jsx(n.Fragment,{children:e})},"wild.richtext.annotation.link":({children:e,value:t})=>{const r=xe(t);if(!r)return n.jsx(n.Fragment,{children:e});const s=t?.openInNewTab;return n.jsx("a",{href:r,target:s?"_blank":void 0,rel:s?"noopener noreferrer":void 0,className:"underline underline-offset-2 hover:opacity-60",children:e})}}};function nt({value:e}){return n.jsx(Mt,{value:e,components:Oc})}function Fn({children:e,tone:t="light",className:r,...s}){return n.jsx("span",{...s,className:$("inline-flex min-h-lg items-center justify-center rounded-full px-xs py-3xs font-functional font-semibold text-body-sm",t==="dark"?"bg-warm-black text-off-white":"bg-white text-warm-black",r),children:e})}const Or=2;function bo({categories:e,tone:t="light",collapse:r=!0,className:s}){const o=(e??[]).filter(l=>!!l);if(!o.length)return null;const i=r?o.slice(0,Or):o,a=r?o.slice(Or):[];return n.jsxs("span",{className:$("inline-flex flex-wrap items-center gap-3xs",s),children:[i.map(l
5=>n.jsx(Fn,{tone:t,children:l},l)),a.length>0&&n.jsxs(Fn,{tone:t,"aria-label":`${a.length} more: ${a.join(", ")}`,children:[a.length," more"]})]})}function St({icon:e,bg:t,iconColor:r="text-off-white",iconSize:s="size-[70%]",className:o}){return n.jsx("div",{className:$("flex shrink-0 items-center justify-center",t,o),children:n.jsx(de,{svg:e,className:$(s,r)})})}const Rc=.02,wo=p.createContext(!1);function zc(e){const t=window.innerHeight;return t?Math.abs(e.offsetHeight-t)<=t*Rc:!1}function Mc({enabled:e,children:t,...r}){const s=eo(),o=p.useRef(null);return p.useEffect(()=>{const i=o.current;if(!s||!i||!e)return;let a=null;const l=()=>{const u=zc(i);u!==!!a&&(u?a=s.register(i):(a?.(),a=null))};l();const c=new ResizeObserver(l);return c.observe(i),window.addEventListener("resize",l),()=>{c.disconnect(),window.removeEventListener("resize",l),a?.()}},[s,e]),n.jsx(wo.Provider,{value:!!e,children:n.jsx("div",{ref:o,...r,children:t})})}function It({className:e,...t}){const r=eo(),s=p.useContext(wo),o=p.useRef(null);return p.useEffect(()=>{const i=o.current;if(!(!r||!i||!s))return r.register(i)},[r,s]),n.jsx("div",{ref:o,"aria-hidden":!0,className:$("pointer-events-none absolute left-0 h-px w-px",e),...t})}const Dc=2,$c=1,Rr=3,zr=1.35,Mr=.04,Dr=[1280,1920,2560,3200,3840],Xe={gap:{min:4,max:96},lineGap:{min:4,max:32},pad:{min:0,max:8},fontSize:{min:16},steps:6},pt={gap:{min:8,max:40},fontSize:{min:16},pad:{min:0,max:8},steps:6},He=(e,t)=>e.min+(e.max-e.min)*t,Fc={width:"100vw",height:"100vh",maxWidth:"none",left:"50%",top:"50%",marginLeft:"calc(var(--circle-x, 50vw) * -1)",marginTop:"calc(var(--circle-y, 50vh) * -1)"};function jo(e){const t=ki(e);if(!t)return null;const{crop:r}=e,s=t.width*Math.max(1-(r?.left??0)-(r?.right??0),0),o=t.height*Math.max(1-(r?.top??0)-(r?.bottom??0),0);return s<1||o<1?null:{width:Math.round(s),ratio:s/o}}function Bc(e){const t=jo(e)?.width??0;return(t>0?[...Dr.filter(s=>s<t),t]:Dr).map(s=>`${at(e,{width:s})} ${s}w`).join(", ")}function Vc(e){const t=jo(e);return t?`max(100vw, ${t.ratio.toFixed(4)} * 100vh)`:"100vw"}function Hc({data:e}){const t=p.useRef(null);we(()=>{const d=t.current;if(!d)return;const f=d.querySelector("[data-logo]"),m=d.querySelector("[data-stage]");if(!f||!m)return;const g=()=>{const H=m.getBoundingClientRect(),q=f.getBoundingClientRect();return{x:q.left+q.width/2-H.left,y:q.top+q.height/2-H.top,width:H.width,height:H.height}},x=()=>{const{x:H,y:q}=g();f.style.setProperty("--circle-x",`${H}px`),f.style.setProperty("--circle-y",`${q}px`)},y=d.querySelector("h1"),w=d.querySelector("[data-centre]"),v=d.querySelector("[data-left-text]"),h=document.querySelector("header"),N=()=>
5{if(!h)return 0;const H=h.getBoundingClientRect().bottom+window.scrollY,q=d.getBoundingClientRect().top+window.scrollY;return Math.max(0,H-q)},A=()=>{if(!y||!w||!v)return;w.style.removeProperty("padding-top"),y.style.removeProperty("--intro-label-gap"),y.style.removeProperty("--intro-label-size");const H=N();if(H<=0)return;const q=()=>m.getBoundingClientRect().top;if(y.getBoundingClientRect().top-q()>=H)return;w.style.paddingTop=`${H}px`;const Q=m.clientHeight-H,J=()=>y.getBoundingClientRect().height;if(J()<=Q-2*pt.pad.max)return;const W=Number.parseFloat(getComputedStyle(v).fontSize)||0,X={min:Math.min(pt.fontSize.min,W),max:W},re=V=>{y.style.setProperty("--intro-label-gap",`${He(pt.gap,V)}px`),y.style.setProperty("--intro-label-size",`${He(X,V)}px`)};let G=0,Y=1;for(let V=0;V<pt.steps;V++){const te=(G+Y)/2;re(te),J()<=Q-2*He(pt.pad,te)?G=te:Y=te}re(G)},C=d.querySelector("[data-hero-text]"),R=d.querySelector("[data-hero-headline]"),T=C?[...C.children]:[],k=()=>{const H=T.map(q=>q.getBoundingClientRect());return Math.max(...H.map(q=>q.bottom))-Math.min(...H.map(q=>q.top))},S=()=>{if(!C||T.length===0||(C.style.removeProperty("--intro-hero-gap"),C.style.removeProperty("--intro-hero-line-gap"),C.style.removeProperty("--intro-hero-size"),k()<=m.clientHeight-2*Xe.pad.max))return;const H=R&&Number.parseFloat(getComputedStyle(R).fontSize)||0,q={min:Math.min(Xe.fontSize.min,H),max:H},Q=X=>{C.style.setProperty("--intro-hero-gap",`${He(Xe.gap,X)}px`),C.style.setProperty("--intro-hero-line-gap",`${He(Xe.lineGap,X)}px`),C.style.setProperty("--intro-hero-size",`${He(q,X)}px`)};let J=0,W=1;for(let X=0;X<Xe.steps;X++){const re=(J+W)/2;Q(re),k()<=m.clientHeight-2*He(Xe.pad,re)?J=re:W=re}Q(J)},L=()=>{const H=m.getBoundingClientRect();return Math.max(H.width,H.height)*Mr},b=()=>{const{width:H,height:q}=f.style,Q=`${L()}px`;f.style.width=Q,f.style.height=Q,A(),S(),f.style.width=H,f.style.height=q};b(),x(),window.addEventListener("resize",b);const j=g(),I=Math.max(j.width,j.height)*Mr,M=2*Math.hypot(Math.max(j.x,j.width-j.x),Math.max(j.y,j.height-j.y))*zr;if(ve())return O.set(f,{width:I,height:I}),()=>window.removeEventListener("resize",b);ke.addEventListener("refresh",b),ke.addEventListener("refresh",x);const D=O.timeline({paused:!0});D.fromTo(f,{width:0,height:0},{width:I,height:I,duration:.7,ease:ne.out},0),ke.create({trigger:d,start:"top bottom",onEnter:()=>D.play(),onLeaveBack:()=>D.reverse(),invalidateOnRefresh:!0});const U=O.timeline({scrollTrigger:{trigger:d,start:"top top",end:"bottom bottom",scrub:!0,invalidateOnRefresh:!0}});U.fromTo(f,{width:I,height:I,immediateRender:!1},{width:M,height:M,ease:"none",duration:Dc+$c},0);const P=O.timeline({paused:!0}),F=d.querySelector("[data-ring]");F&&F.querySelectorAll("circle").forEach(H=>{const q=Number(H.getAttribute("r"));P.fromTo(H,{attr:{r:q}},{attr:{r:0},duration:.7,ease:"power2.inOut"},0)});const Z=d.querySelector("[data-hero-text]");Z&&P.fromTo(Z,{opacity:0},{opacity:1,duration:.5,ease:"power2.out"},.3),ke.create({trigger:d,start:()=>`top+=${(d.offsetHeight-window.innerHeight)/zr}px top`,onEnter:()=>P.play(),onLeaveBack:()=>P.reverse(),invalidateOnRefresh:!0});const B=[...d.querySelectorAll("[data-image]")];if(B.length>1){const H=B.length,q=.35,Q=q/(H-1),J=G=>G>=q?H-1:Math.min(Math.floor(G/Q),H-2);let W=-1;B.forEach(G=>{O.set(G,{opacity:0})});const X=G=>{if(G===W)return;const Y=B[G];if(!Y)return;const V=B[W];V&&O.set(V,{opacity:0}),O.set(Y,{opacity:1}),W=G};B.forEach((G,Y)=>{G.addEventListener("load",()=>{const V=U.scrollTrigger?.progress??0;J(V)===Y&&X(Y)})});const re=G=>{for(let Y=G;Y>=0;Y--)if(B[Y].complete)return Y;return-1};U.eventCallback("onUpdate",()=>{const G=U.scrollTrigger?.progress??0;if(G<=0){const V=B[W];V&&(O.to(V,{opacity:0,duration:.4,ease:"power2.inOut"}),W=-1);return}const Y=re(J(G));Y>=0&&X(Y)})}return()=>{window.removeEventListener("resize",b),ke.removeEventListener("refresh",b),ke.removeEventListener("refresh",x)}},{scope:t});const r=e.images??[],s=r.length-1,o=r.map((d,f)=>{const m=d?.image?.imageFile;return m?.asset?._ref?{key:d._key,file:m,alt:d?.image?.alt??"",isHero:f===s&&r.length>1,thumbWidth:Math.round(300+1300*f/Math.max(s,1)),objectPosition:ji(m)}:null}
5).filter(Boolean),i=(e.headline??"").split(` 6`).filter(Boolean),a=E(e.leadingIcon),l=E(e.trailingIcon),c=Rr+1,u=Rr;return n.jsxs("div",{ref:t,className:"relative",style:{height:`${c*100}vh`},children:[n.jsx(It,{style:{top:`${u*100}vh`}}),n.jsx("section",{"data-stage":!0,className:"sticky top-0 h-screen overflow-hidden bg-off-white",children:n.jsxs("div",{"data-centre":!0,className:"relative flex h-full items-center justify-center",children:[n.jsxs("h1",{className:"relative flex flex-col items-center justify-center md:grid md:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)]",children:[n.jsx("span",{"data-left-text":!0,className:"block whitespace-nowrap font-headline text-display-md text-warm-black md:justify-self-end",style:{fontSize:"var(--intro-label-size, var(--text-display-md))"},children:e.leftLabel??""}),n.jsxs("div",{"data-logo":!0,"aria-hidden":!0,className:"relative mx-2xs my-[var(--intro-label-gap,var(--spacing-xl))] shrink-0 overflow-hidden rounded-full md:my-0",style:{width:0,height:0},children:[n.jsx("div",{"data-bg":!0,className:"absolute inset-0 bg-hot-blue"}),o.map(({key:d,file:f,alt:m,isHero:g,thumbWidth:x,objectPosition:y})=>n.jsx("img",{"data-image":!0,src:at(f,{width:g?1920:x})??void 0,srcSet:g?Bc(f):void 0,sizes:g?Vc(f):void 0,alt:m,className:"absolute object-cover",style:{...g?Fc:{inset:0,width:"100%",height:"100%"},opacity:0,...y?{objectPosition:y}:{}}},d)),n.jsx("svg",{"data-ring":!0,"aria-hidden":!0,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none absolute inset-0 size-full text-off-white",children:n.jsx("circle",{cx:"9",cy:"9",r:"1.945",fill:"currentColor"})})]}),n.jsx("span",{"data-right-text":!0,className:"block whitespace-nowrap font-headline text-display-md text-warm-black md:justify-self-start",style:{fontSize:"var(--intro-label-size, var(--text-display-md))"},children:e.rightLabel??""})]}),n.jsxs("div",{"data-hero-text":!0,className:"pointer-events-none absolute inset-0 flex flex-col items-center justify-center gap-[var(--intro-hero-gap,var(--spacing-6xl))] px-sm text-off-white lg:px-2xl",style:{opacity:0},children:[e.eyebrow&&n.jsx(Mn,{align:"center",children:e.eyebrow}),i.length>0&&n.jsxs("h2",{"data-hero-headline":!0,className:"flex flex-col items-center gap-[var(--intro-hero-line-gap,var(--spacing-lg))] text-center font-headline text-display-xl",style:{fontSize:"var(--intro-hero-size, var(--text-display-xl))"},children:[i[0]&&n.jsxs("span",{children:[n.jsx(de,{svg:a,tightViewBox:!0,className:"mr-sm inline-flex h-[min(var(--spacing-4xl),1em)] w-auto align-baseline text-off-white md:h-[min(var(--spacing-6xl),1em)]"}),i[0]]}),i[1]&&n.jsxs("span",{children:[i[1],n.jsx(de,{svg:l,tightViewBox:!0,className:"ml-sm inline-flex h-[min(var(--spacing-4xl),1em)] w-auto align-baseline text-off-white md:h-[min(var(--spacing-6xl),1em)]"})]})]}),e.body&&n.jsx("p",{className:"max-w-[744px] text-center font-functional text-body-lg text-off-white/80",children:e.body})]})]})})]})}function Zc({items:e}){const t=dn();if(!e.length)return null;const r=s=>o=>{if(o.preventDefault(),typeof document>"u")return;const i=document.getElementById(s);i&&to(t,i,{offset:-112})};return n.jsxs("nav",{className:"flex flex-col gap-sm border-warm-black/24 border-t py-sm","aria-label":"Article index",children:[n.jsx("p",{className:"font-functional font-semibold text-body-sm text-warm-black/64",children:"Index"}),n.jsx("ul",{className:"flex flex-col gap-sm",children:e.map(s=>n.jsx("li",{children:n.jsx("a",{href:`#${s.id}`,onClick:r(s.id),className:"block text-left font-functional text-body-md text-warm-black transition-opacity hover:opacity-60",children:s.text})},s.id))})]})}function Uc({data:e}){const t=e.body??[];if(!t.length)return null;const r=Pc(t),s=e.effectiveDate?Ze(e.effectiveDate):null;return n.jsxs("section",{className:"bg-off-white desktop:px-2xl px-sm pb-8xl text-warm-black",children:[s&&n.jsxs("div",{className:"flex desktop:hidden items-center justify-between border-warm-black/24 border-t py-sm",children:[n.jsx("span",{className:"font-functional font-semibold text-body-sm",children:"Effective Date"}),n.jsx("span",{className:"font-functional font-semibold text-body-sm",children:s})]}),n.jsxs("div",{className:"desktop:grid desktop:grid-cols-[1fr_746px_1fr] desktop:gap-2xl pt-2xl",children:[n.jsx("aside",{className:"desktop:block hidden desktop:w-full desktop:max-w-[315px] desktop:justify-self-start",children:n.jsxs("div",{className:"desktop:sticky desktop:top-(--header-offset) flex flex-col gap-2xl",children:[s&&n.jsxs("div",{className:"flex flex-col gap-sm border-warm-black/24 border-t py-sm",children:[n.jsx("p",{className:"font-functional font-semibold text-body-sm text-warm-black/64",children:"Effective Date"}),n.jsx("p",{className:"font-functional text-label-md",children:s})]}),n.jsx(Zc,{items:r})]})}),n.jsx(le,{className:"min-w-0 [&_*]:text-wrap",children:n.jsx(nt,{value:t})})]})]})}function Wc({data:e}){return e.title?n.jsx("section",{className:"flex desktop:min-h-[600px] flex-col items-center justify-center bg-off-white desktop:px-2xl px-sm desktop:pt-2xl pt-9xl desktop:pb-sm pb-2xl text-center text-warm-black",children:n.jsx(le,{children:n.jsx("h1",{className:"whitespace-pre-line font-functional text-heading-xl",children:e.title})})}):null}function he({children:e,y:t=Ce.y,stagger:r=Ce.stagger,start:s=Ce.start,limit:o,...i}){const a=p.useRef(null);return we(()=>{const l=a.current;if(!l)return;const c=Array.from(l.children);if(!c.length)return;const u=o==null?c:c.slice(0,o);if(ve()){O.set(c,{opacity:1,y:0});return}O.set(u,{opacity:0,y:t});const d=l.getBoundingClientRect().top<window.innerHeight;O.to(u,{opacity:1,y:0,duration:ie.base,ease:ne.out,stagger:r,scrollTrigger:d?void 0:{trigger:l,start:s,once:!0}})},{scope:a}),n.jsx("div",{ref:a,...i,children:e})}const qc={none:"",slide:"transition-transform group-hover:translate-x-2xs",tint:"transition-colors group-hover:text-clay",cross:""},Qn="duration-300 ease-out",Gc=`relative h-md w-lg shrink-0 overflow-hidden transition-[width] ${Qn} group-hover/arrow-link:w-0 group-focus-visible/arrow-link:w-0`,Kc=`absolute top-0 left-0 size-md transition-transform ${Qn} group-hover/arrow-link:-translate-x-full group-focus-visible/arrow-link:-translate-x-full`,Yc=`absolute inset-0 -translate-x-full transition-transform ${Qn} group-hover/arrow-link:translate-x-0 group-focus-visible/arrow-link:translate-x-0 [&>svg]:size-full`;function Se({children:e,href:t,newTab:r,onClick:s,as:o,icon:i,arrowDirection:a,iconPosition:l="trailing",hoverEffect:c="none",className:u,onFocus:d,...f}){const m=c==="cross"&&!i,g=$("group/arrow-link flex items-center font-functional text-label-md",!m&&"gap-2xs",u),x=i??n.jsx(ge,{direction:a,className:$("size-md shrink-0",qc[c])}),y=m?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:Gc,children:n.jsx(ge,{direction:a,className:Kc})}),e,n.jsx("span",{className:"relative ml-2xs size-md shrink-0 overflow-hidden",children:n.jsx("span",{className:Yc,children:n.jsx(ge,{direction:a})})})]}):n.jsxs(n.Fragment,{children:[l==="leading"&&x,e,l==="trailing"&&x]});return o==="span"?n.jsx("span",{className:g,...f,children:y}):t?r||/^(https?:|mailto:|tel:)/.test(t)?n.jsx("a",{href:t,target:r?"_blank":void 0,rel:r?"noopener noreferrer":void 0,className:g,onFocus:d,...f,children:y}):n.jsx(Ge,{to:t,className:g,onFocus:d,...f,children:y}):n.jsx("button",{type:"button",onClick:s,className:$(g,"cursor-pointer"),onFocus:d,...f,children:y})}const Xc={hoverPink:"bg-cool-pink",hoverWhite:"bg-white",static:"bg-white"};
6function Jc({href:e,title:t,date:r,categories:s,excerpt:o,image:i,imageAlt:a,showCategory:l=!0,variant:c="hoverPink"}){const u=l&&(s??[]).some(Boolean);return n.jsxs(Ge,{to:e,className:"group relative flex desktop:h-[546px] w-full desktop:flex-row flex-col overflow-hidden bg-subtle-off-white text-left",children:[n.jsxs("div",{className:"relative aspect-[4/3] desktop:aspect-auto desktop:h-full w-full desktop:flex-1 overflow-hidden",children:[n.jsx(oe,{source:i,alt:a??t,sizes:"(min-width: 64rem) 60vw, 100vw"}),u&&n.jsx("div",{className:"pointer-events-none absolute inset-0 bg-linear-to-b from-warm-black/25 to-[22%] to-transparent"}),u&&n.jsx(bo,{categories:s,className:"absolute top-sm right-sm left-sm"})]}),n.jsxs("div",{className:"relative flex desktop:w-[491px] desktop:shrink-0 flex-col desktop:justify-between gap-md desktop:p-lg p-sm text-warm-black",children:[n.jsx(lt,{color:Xc[c],origin:"left"}),n.jsxs("div",{className:"relative flex flex-col gap-md",children:[r&&n.jsx("p",{className:"font-functional text-body-md",children:r}),n.jsx("p",{className:"line-clamp-3 font-functional text-heading-md",children:t})]}),n.jsxs("div",{className:"relative flex flex-col gap-md",children:[o&&n.jsx("p",{className:"line-clamp-4 font-functional text-body-md",children:o}),n.jsx(Se,{as:"span",hoverEffect:"slide",children:"Read article"})]})]})]})}var Sn,$r;function Qc(){if($r)return Sn;$r=1;var e="Expected a function",t=NaN,r="[object Symbol]",s=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,c=typeof Vt=="object"&&Vt&&Vt.Object===Object&&Vt,u=typeof self=="object"&&self&&self.Object===Object&&self,d=c||u||Function("return this")(),f=Object.prototype,m=f.toString,g=Math.max,x=Math.min,y=function(){return d.Date.now()};function w(C,R,T){var k,S,L,b,j,_,I=0,z=!1,M=!1,D=!0;if(typeof C!="function")throw new TypeError(e);R=A(R)||0,v(T)&&(z=!!T.leading,M="maxWait"in T,L=M?g(A(T.maxWait)||0,R):L,D="trailing"in T?!!T.trailing:D);function U(W){var X=k,re=S;return k=S=void 0,I=W,b=C.apply(re,X),b}function P(W){return I=W,j=setTimeout(B,R),z?U(W):b}function F(W){var X=W-_,re=W-I,G=R-X;return M?x(G,L-re):G}function Z(W){var X=W-_,re=W-I;return _===void 0||X>=R||X<0||M&&re>=L}function B(){var W=y();if(Z(W))return H(W);j=setTimeout(B,F(W))}function H(W){return j=void 0,D&&k?U(W):(k=S=void 0,b)}function q(){j!==void 0&&clearTimeout(j),I=0,k=_=S=j=void 0}function Q(){return j===void 0?b:H(y())}function J(){var W=y(),X=Z(W);if(k=arguments,S=this,_=W,X){if(j===void 0)return P(_);if(M)return j=setTimeout(B,R),U(_)}return j===void 0&&(j=setTimeout(B,R)),b}return J.cancel=q,J.flush=Q,J}function v(C){var R=typeof C;return!!C&&(R=="object"||R=="function")}function h(C){return!!C&&typeof C=="object"}function N(C){return typeof C=="symbol"||h(C)&&m.call(C)==r}function A(C){if(typeof C=="number")return C;if(N(C))return t;if(v(C)){var R=typeof C.valueOf=="function"?C.valueOf():C;C=v(R)?R+"":R}if(typeof C!="string")return C===0?C:+C;C=C.replace(s,"");var T=i.test(C);return T||a.test(C)?l(C.slice(2),T?2:8):o.test(C)?t:+C}return Sn=w,Sn}var eu=Qc();const Fr=vi(eu);var fn=typeof window<"u"?p.useLayoutEffect:p.useEffect;function tu(e,t,r,s){const o=p.useRef(t);fn(()=>{o.current=t},[t]),p.useEffect(()=>{const i=window;if(!(i&&i.addEventListener))return;const a=l=>{o.current(l)};return i.addEventListener(e,a,s),()=>{i.removeEventListener(e,a,s)}},[e,r,s])}var nu=typeof window>"u";function ko(e,{defaultValue:t=!1,initializeWithValue:r=!0}={}){const s=l=>nu?t:window.matchMedia(l).matches,[o,i]=p.useState(()=>r?s(e):t);function a(){i(s(e))}return fn(()=>{const l=window.matchMedia(e);return a(),l.addListener?l.addListener(a):l.addEventListener("change",a),()=>{l.removeListener?l.removeListener(a):l.removeEventListener("change",a)}},[e]),o}function ru(e){const t=p.useRef(e);t.current=e,p.useEffect(()=>()=>{t.current()},[])}function su(e,t=500,r){const s=p.useRef();ru(()=>{s.current&&s.current.cancel()});const o=p.useMemo(()=>{const i=Fr(e,t,r),a=(...l)=>i(...l);return a.cancel=()=>{i.cancel()},a.isPending=()=>!!s.current,a.flush=()=>i.flush(),a},[e,t,r]);return p.useEffect(()=>{s.current=Fr(e,t,r)},[e,t,r]),o}var ou=typeof window>"u";function iu(e={}){let{initializeWithValue:t=!0}=e;ou&&(t=!1);const[r,s]=p.useState(()=>t?{width:window.innerWidth,height:window.innerHeight}:{width:void 0,height:void 0}),o=su(s,e.debounceDelay);function i(){(e.debounceDelay?o:s)({width:window.innerWidth,height:window.innerHeight})}return tu("resize",i),fn(()=>{i()},[]),r}function au({className:e}){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",className:e,children:n.jsx("path",{d:"M12.1885 16.2535L18.9768 9.46529L17.2797 7.76824L12.1885 12.8594L7.09696 7.76782L5.3999 9.46488L12.1885 16.2535Z",fill:"currentColor"})})}function Oe(e,t){return ko(`(min-width: ${Dn[e]})`,{initializeWithValue:!1,...t})}function er(e,t){return ko(`(min-height: ${Ni[e]})`,{initializeWithValue:!1,...t})}const sn="__all__",Br={desktop:271,mobile:311},Vr=41,Hr=5.5,Ut=8,Wt=16,lu=500;function Ct({name:e,allLabel:t,placeholder:r,value:s,options:o,onChange:i,className:a,textClassName:l="font-functional text-label-sm"}){const c=p.useMemo(()=>t===void 0?[...o]:[{value:sn,label:t}
6,...o],[t,o]),u=Oe("desktop"),[d,f]=p.useState(!1),[m,g]=p.useState(-1),[x,y]=p.useState(null),w=p.useRef(null),v=p.useRef(null),h=p.useRef(null),N=p.useRef({buffer:"",at:0}),A=p.useRef(null),C=p.useId(),R=`${C}-name`,T=`${C}-value`,k=`${C}-list`,S=P=>`${C}-opt-${P}`,L=c.findIndex(P=>P.value===s),j=(L<0||c[L]?.value===sn?r??t:c[L]?.label)??"",_=p.useCallback(()=>{const P=v.current;if(!P)return null;const F=P.getBoundingClientRect(),Z=window.innerWidth-Wt*2,B=Math.min(Math.max(u?Br.desktop:Br.mobile,F.width),Z),H=F.left+B>window.innerWidth-Wt?F.right-B:F.left,q=Math.min(Math.max(H,Wt),window.innerWidth-B-Wt),Q=Math.min(c.length,Hr)*Vr,J=window.innerHeight-F.bottom-Ut,W=A.current??(J<Q&&F.top-Ut>J?"above":"below");return A.current=W,{left:q,width:B,block:W,...W==="above"?{bottom:window.innerHeight-F.top+Ut}:{top:F.bottom+Ut}}},[u,c.length]),I=p.useCallback(()=>{const P=h.current,F=_();!P||!F||(P.style.left=`${F.left}px`,P.style.width=`${F.width}px`,F.block==="above"?P.style.bottom=`${F.bottom}px`:P.style.top=`${F.top}px`)},[_]),z=p.useCallback(P=>{c.length!==0&&(A.current=null,y(_()),g(P==="last"?c.length-1:L>=0?L:0),f(!0))},[_,c.length,L]),M=p.useCallback(P=>{f(!1),P!==s&&i(P)},[i,s]),D=p.useCallback(P=>{const F=Date.now(),Z=N.current;Z.buffer=F-Z.at>lu?P:Z.buffer+P,Z.at=F;const B=Z.buffer.toLowerCase(),H=B.length>1&&[...B].every(Q=>Q===B[0]),q=H?B.slice(0,1):B;g(Q=>{const J=Q<0?0:H||B.length===1?Q+1:Q;for(let W=0;W<c.length;W++){const X=(J+W)%c.length;if(c[X]?.label.toLowerCase().startsWith(q))return X}return Q})},[c]);function U(P){const F=P.key.length===1&&!P.metaKey&&!P.ctrlKey&&!P.altKey;if(!d){P.key==="ArrowDown"||P.key==="ArrowUp"||P.key==="Enter"||P.key===" "?(P.preventDefault(),z(P.key==="ArrowUp"?"last":"selected")):F&&(P.preventDefault(),z("selected"),D(P.key));return}switch(P.key){case"ArrowDown":P.preventDefault(),g(Z=>(Z+1)%c.length);break;case"ArrowUp":P.preventDefault(),g(Z=>(Z-1+c.length)%c.length);break;case"Home":P.preventDefault(),g(0);break;case"End":P.preventDefault(),g(c.length-1);break;case"Enter":case" ":{P.preventDefault();const Z=c[m];Z&&M(Z.value);break}case"Escape":P.preventDefault(),f(!1);break;case"Tab":f(!1);break;default:F&&(P.preventDefault(),D(P.key))}}return p.useEffect(()=>{if(!d)return;const P=F=>{const Z=F.target;!w.current?.contains(Z)&&!h.current?.contains(Z)&&f(!1)};return document.addEventListener("pointerdown",P,!0),()=>document.removeEventListener("pointerdown",P,!0)},[d]),p.useEffect(()=>{if(!d)return;let P=requestAnimationFrame(function F(){I(),P=requestAnimationFrame(F)});return()=>cancelAnimationFrame(P)},[d,I]),p.useEffect(()=>{if(!d)return;const P=()=>{A.current=null,y(_())};return window.addEventListener("resize",P),()=>window.removeEventListener("resize",P)},[d,_]),fn(()=>{d&&I()}),p.useEffect(()=>{const P=h.current,F=P?.children[m];!d||!P||!F||(F.offsetTop<P.scrollTop?P.scrollTop=F.offsetTop:F.offsetTop+F.offsetHeight>P.scrollTop+P.clientHeight&&(P.scrollTop=F.offsetTop+F.offsetHeight-P.clientHeight))},[d,m]),n.jsxs("div",{ref:w,className:$("relative inline-flex max-w-full shrink-0",a),children:[n.jsx("span",{id:R,className:"sr-only",children:e}),n.jsx("button",{ref:v,type:"button",role:"combobox","aria-haspopup":"listbox","aria-expanded":d,"aria-controls":d?k:void 0,"aria-labelledby":`${R} ${T}`,"aria-activedescendant":d&&m>=0?S(m):void 0,disabled:c.length===0,onClick:()=>d?f(!1):z("selected"),onKeyDown:U,className:$("max-w-full cursor-pointer rounded-full bg-white text-warm-black","focus-visible:outline focus-visible:outline-2 focus-visible:outline-warm-black focus-visible:outline-offset-2"),children:n.jsxs("span",{className:"relative flex min-h-lg max-w-full items-center pr-xl pl-sm",children:[n.jsx("span",{id:T,className:$("overflow-hidden text-ellipsis whitespace-nowrap leading-lg",l),children:j}),n.jsx(au,{className:$("-translate-y-1/2 pointer-events-none absolute top-1/2 right-2xs size-md transition-transform duration-200 motion-reduce:transition-none",d&&"rotate-180")})]})}),d&&x&&Ci.createPortal(n.jsx("div",{ref:h,id:k,role:"listbox","aria-labelledby":R,"data-placement":x.block,"data-lenis-prevent":!0,onMouseDown:P=>P.preventDefault(),style:{left:x.left,width:x.width,top:x.top,bottom:x.bottom,maxHeight:Hr*Vr},className:$("dropdown-panel fixed z-[55] overflow-y-auto overscroll-contain rounded-xl bg-white text-warm-black","desktop:shadow-[0px_7px_16px_0px_rgba(0,0,0,0.1)] shadow-[2px_16px_30px_0px_rgba(31,13,5,0.06)]"),children:c.map((P,F)=>n.jsx("div",{id:S(F),role:"option","aria-selected":P.value===s,onClick:()=>M(P.value),onPointerMove:()=>g(F),className:$("flex min-h-xl cursor-pointer items-center gap-2xs border-warm-black/12 border-b px-sm py-2xs leading-md last:border-b-0","font-functional text-label-sm",F===m&&"bg-subtle-off-white"),children:n.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:P.label})},P.value))}),document.body)]})}const cu="absolute inset-0 size-lg transition duration-300 ease-out",uu={top:"desktop:-translate-y-[200%]",bottom:"desktop:translate-y-[200%]"},du={desktop:"desktop:opacity-0 desktop:group-hover:translate-y-0 desktop:group-hover:opacity-100",always:"opacity-0 group-hover:translate-y-0 group-hover:opacity-100"};
6function Ke({reveal:e="desktop",enterFrom:t="top",icon:r,className:s}){return n.jsx("span",{className:$("relative size-lg shrink-0 overflow-hidden",s),children:n.jsx("span",{className:$(cu,uu[t],du[e],"[&>svg]:size-full"),children:r??n.jsx(ge,{})})})}const fu={hoverPink:"bg-cool-pink",hoverWhite:"bg-white",static:"bg-white"};function No({href:e,title:t,date:r,categories:s,image:o,imageAlt:i,variant:a="hoverPink",showCategory:l=!0}){const c=a==="static",u=l&&(s??[]).some(Boolean);return n.jsxs(Ge,{to:e,className:"group relative flex w-full flex-col overflow-hidden text-left",children:[n.jsxs("div",{className:"relative aspect-[4/3] w-full overflow-hidden",children:[n.jsx(oe,{source:o,alt:i??t,sizes:"(min-width: 64rem) 33vw, 100vw"}),u&&n.jsx("div",{className:"pointer-events-none absolute inset-0 bg-linear-to-b from-warm-black/40 to-[30%] to-transparent"}),u&&n.jsx(bo,{categories:s,className:"absolute top-sm right-sm left-sm"})]}),n.jsxs("div",{className:$("relative flex items-end gap-lg p-sm",c&&"bg-subtle-off-white"),children:[n.jsx(lt,{color:fu[a],origin:"top"}),n.jsxs("div",{className:"relative flex min-w-0 flex-1 flex-col gap-md text-warm-black",children:[r&&n.jsx("p",{className:"font-functional text-body-md",children:r}),n.jsx("p",{className:"line-clamp-3 min-h-[3lh] font-functional text-heading-md",children:t}),n.jsx(Se,{as:"span",className:"desktop:hidden",children:"Read more"})]}),c?n.jsx(ge,{className:"relative desktop:block hidden size-lg shrink-0 text-warm-black"}):n.jsx(Ke,{className:"desktop:block hidden text-warm-black"})]})]})}const mu={hoverPink:"bg-cool-pink",hoverWhite:"bg-white"};function pu({href:e,title:t,date:r,image:s,imageAlt:o,variant:i="hoverPink"}){const a=i==="static";return n.jsxs(Ge,{to:e,className:"group relative block w-full overflow-hidden border-warm-black/24 border-t text-left",children:[!a&&n.jsx(lt,{color:mu[i],origin:"left"}),n.jsxs("div",{className:"relative desktop:flex hidden items-center gap-sm py-sm text-warm-black",children:[r&&n.jsx("p",{className:"w-[237px] shrink-0 px-sm font-functional text-body-md",children:r}),n.jsx("div",{className:"h-[180px] w-[239px] shrink-0 overflow-hidden",children:n.jsx(oe,{source:s,alt:o??t,widths:[240,480],sizes:"239px"})}),n.jsx("p",{className:"line-clamp-3 min-w-0 flex-1 px-sm font-functional text-heading-md",children:t}),n.jsx("span",{className:"relative flex w-[237px] shrink-0 justify-end px-sm",children:n.jsx(Ke,{reveal:"always"})})]}),n.jsxs("div",{className:"relative flex desktop:hidden flex-col gap-lg p-sm text-warm-black",children:[r&&n.jsx("p",{className:"font-functional text-body-md",children:r}),n.jsx("p",{className:"font-functional text-heading-md",children:t}),n.jsx(Se,{as:"span",children:"Read more"})]})]})}const ze=sn,Zr=4,Bn="font-functional font-semibold text-body-sm";function xu({className:e}){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",strokeWidth:2,"aria-hidden":"true",className:e,children:n.jsx("path",{d:"M12 5v14M5 12h14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ur(e,t){const r=new Map;for(const s of e)for(const o of t(s)){const i=E(o?.slug),a=E(o?.title);i&&a&&!r.has(i)&&r.set(i,a)}return Array.from(r,([s,o])=>({slug:s,title:o}))}function hu(e){return(e.categories??[]).map(t=>E(t?.slug))}function Wr(e){return(e.categories??[]).map(t=>E(t?.title)).filter(t=>!!t)}function In(e){return`/news/${E(e)??""}`}function gu({data:e}){const t=(e.articles??[]).filter(b=>!!(b?._id&&E(b.slug)&&b.title)),r=e.listCount??Zr,s=E(e.cardStyle)??"hoverPink",o=e.showCategory!==!1,[i,a]=p.useState(ze),[l,c]=p.useState(ze),[u,d]=p.useState(ze),[f,m]=p.useState(ze),[g,x]=p.useState(r),y=p.useRef(null),w=b=>{const j=y.current;if(!j||ve()){b();return}O.to(j,{autoAlpha:0,duration:ie.xfast,ease:ne.out,onComplete:b})},v=b=>{b!==u&&(d(b),w(()=>{m(b),x(r)}))},h=p.useMemo(()=>Ur(t,b=>b.categories??[]),[t]),N=p.useMemo(()=>Ur(t,b=>[b.articleType]),[t]),A=p.useMemo(()=>t.filter(b=>(l===ze||hu(b).includes(l))&&(f===ze||E(b.articleType?.slug)===f)),[t,l,f]),C=A[0]??null,R=A.slice(1),T=R.slice(0,3),k=R.slice(3),S=k.slice(0,g),L=b=>{b!==i&&(a(b),w(()=>{c(b),x(r)}))};return we(()=>{const b=y.current;if(b){if(ve()){O.set(b,{autoAlpha:1});return}O.to(b,{autoAlpha:1,duration:ie.xfast,ease:ne.out})}},{dependencies:[l,f],scope:y}),n.jsxs("section",{className:"flex flex-col gap-2xl bg-off-white desktop:px-2xl px-sm desktop:py-8xl py-2xl text-warm-black",children:[n.jsxs(le,{className:"flex flex-col gap-lg",children:[e.title&&n.jsx("h2",{className:"font-headline text-display-md lowercase",children:e.title}),n.jsxs("div",{className:"flex flex-wrap desktop:flex-nowrap desktop:items-center desktop:justify-between desktop:gap-md gap-2xs",children:[n.jsxs("div",{className:"desktop:flex hidden flex-wrap gap-2xs",children:[n.jsx(qr,{active:i===ze,onClick:()=>L(ze),children:"All"}),h.map(b=>n.jsx(qr,{active:i===b.slug,onClick:()=>L(b.slug),children:b.title},b.slug))]}),n.jsx(Ct,{className:"desktop:hidden",name:"Filter articles by category",allLabel:"All",value:i,options:h.map(b=>({value:b.slug,label:b.title})),onChange:L,textClassName:Bn}),N.length>0&&n.jsx(Ct,{className:"desktop:self-auto self-start",name:"Filter articles by type",placeholder:"Type",allLabel:"All",value:u,options:N.map(b=>({value:b.slug,label:b.title})),onChange:v,textClassName:Bn})]})]}),n.jsxs("div",{ref:y,className:"flex flex-col gap-2xl",children:[A.length===0&&n.jsx("p",{"aria-live":"polite",className:"font-functional text-body-md text-warm-black/60",children:"No articles match these filters."}),C&&n.jsx(le,{children:n.jsx(Jc,{href:In(C.slug),title:C.title??"",date:C.publishedAt?Ze(C.publishedAt):null,categories:Wr(C),excerpt:C.excerpt,image:C.cardImage?.image?.imageFile,imageAlt:C.cardImage?.image?.alt??C.title??"",showCategory:o,variant:s})}),T.length>0&&n.jsx(he,{className:"grid desktop:grid-cols-3 grid-cols-1 gap-2xl desktop:gap-x-sm desktop:gap-y-2xl",children:T.map(b=>n.jsx(No,{href:In(b.slug),title:b.title??"",date:b.publishedAt?Ze(b.publishedAt):null,categories:Wr(b),image:b.cardImage?.image?.imageFile,imageAlt:b.cardImage?.image?.alt??b.title??"",variant:s,showCategory:o},b._id))}),S.length>0&&n.jsx("div",{className:"flex flex-col",children:S.map(b=>n.jsx(pu,{href:In(b.slug),title:b.title??"",date:b.publishedAt?Ze(b.publishedAt):null,image:b.cardImage?.image?.imageFile,imageAlt:b.cardImage?.image?.alt??b.title??"",variant:s},b._id))}),k.length>g&&n.jsx("div",{className:"flex justify-center py-2xl",children:n.jsxs("button",{type:"button",onClick:()=>x(b=>b+Zr),className:"flex cursor-pointer items-center gap-2xs font-functional text-heading-md text-warm-black transition-colors hover:text-clay",children:["Show more",n.jsx(xu,{className:"size-md"})]})})]})]})}function qr({active:e,onClick:t,children:r}){return n.jsx("button",{type:"button",onClick:t,"aria-pressed":e,className:$("min-h-lg shrink-0 cursor-pointer whitespace-nowrap rounded-full px-sm py-3xs transition-colors",Bn,e?"bg-warm-black text-off-white":"bg-white text-warm-black hover:bg-warm-black/10"),children:r})}function So({className:e}){return n.jsx("svg",{viewBox:"0 0 32 32",fill:"none","aria-hidden":"true",className:e,children:n.jsx("path",{d:"M17.6 14.4H24.8V17.6H17.6V24.8H14.4V17.6H7.2V14.4H14.4V7.2H17.6V14.4Z",fill:"currentColor"})})}function vu({name:e,role:t,boardRole:r,onClick:s}){const o=n.jsxs("span",{className:$("flex h-full w-full flex-col justify-between desktop:gap-lg gap-2xl p-lg text-left",s&&"pr-3xl"),children:[n.jsxs("span",{className:"flex flex-col gap-2xs",children:[n.jsx("span",{className:"font-functional text-heading-md",children:e}),t&&n.jsx("span",{className:"font-functional text-body-lg",children:t})]}),r&&n.jsxs("span",{className:"flex flex-col gap-sm",children:[n.jsxs("span",{className:"flex items-center gap-2xs",children:[n.jsx(Rt,{className:"size-xs shrink-0"}),n.jsx("span",{className:"font-functional text-label-sm",children:"Board Role"})]}),n.jsx("span",{className:"font-functional text-body-md",children:r})]})]}),i="relative flex desktop:min-h-9xl w-full flex-col bg-off-white/8 text-off-white";return s?n.jsxs("button",{type:"button",onClick:s,className:$(i,"group cursor-pointer transition-colors desktop:hover:bg-off-white desktop:hover:text-warm-black"),children:[o,n.jsx(Ke,{icon:n.jsx(So,{}),enterFrom:"bottom",className:"absolute right-sm bottom-sm"})]}):n.jsx("div",{className:i,children:o})}function yu({className:e}){return n.jsx("svg",{viewBox:"0 0 145 144",fill:"none","aria-hidden":"true",className:e,children:n.jsx("path",{d:"M44.4874 115.56C30.0887 108.286 20.2896 94.4564 18.1635 78.4411C23.363 80.5947 28.9204 82.4317 34.6778 83.8992C35.9093 94.9103 39.2142 105.552 44.4874 115.56ZM85.5893 69.288C74.1692 71.0193 62.6755 71.1144 51.4238 69.573C51.708 64.4211 52.4973 59.1953 53.7604 54.0539C57.2022 40.0128 63.4543 28.9488 66.9593 23.5013C69.7064 26.9324 78.253 38.4398 82.8211 54.2017C84.2525 59.1636 85.1893 64.2311 85.5893 69.288ZM66.8961 87.8898C72.7061 87.8898 78.6952 87.4992 84.7262 86.7285C82.579 98.4576 77.1689 109.902 68.6434 120.744H68.4328C60.0966 110.271 54.7392 98.9538 52.5078 87.0874C57.4337 87.6259 62.1491 87.8792 66.8961 87.8792V87.8898ZM102.525 65.5402C101.935 59.9026 100.798 54.2334 99.146 48.6803C97.3356 42.6099 94.8937 36.5395 91.8729 30.638C96.5672 33.5412 100.704 37.194 104.146 41.4908L104.23 41.6069C106.335 44.1512 112.555 53.0087 113.492 60.1876C113.545 60.5994 113.597 60.99 113.64 61.3912L113.692 61.8135C110.05 63.1964 106.293 64.4528 102.525 65.5402ZM114.197 79.8874C114.008 81.281 113.797 82.4317 113.545 83.498C110.808 94.8681 104.082 104.855 94.5464 111.665C98.8723 102.543 101.567 93.0206 102.556 83.3396C106.261 82.4 110.177 81.2387 114.197 79.8874ZM136.153 51.2668L136.006 51.3513C134.143 52.3859 132.154 53.4416 129.922 54.5818C127.144 42.5571 118.481 31.8204 117.502 30.6274C109.934 21.221 99.9354 14.0948 88.5784 10.0303L88.4207 9.96696C88.2312 9.89306 88.0417 9.8086 87.8417 9.75582C85.6103 8.98514 83.5999 8.38338 81.7158 7.92942C56.2443 1.77456 29.573 11.35 13.7743 32.3166L13.6691 32.4538L27.4047 42.8633L27.5099 42.726C31.9832 36.7823 37.8881 31.8732 44.5928 28.516C41.4246 35.3571 38.9301 42.3354 37.1829 49.2715C35.7935 54.7718 34.8567 60.3777 34.4147 65.9202C27.0995 63.7138 21.5842 61.2117 18.2582 59.4909L4.09087 50.4117L4.03832 50.6439C3.89097 51.2668 3.48042 52.8398 3.0594 54.4973C2.36472 57.2316 1.56478 60.3249 1.47005 60.8316C-4.44523 94.9842 17.2688 128.092 50.887 136.221C55.9918 137.456 61.2229 138.089 66.412 138.089C78.4215 138.089 90.252 134.732 100.62 128.366C115.608 119.171 126.133 104.665 130.249 87.5308C131.343 82.9385 131.859 78.1349 131.785 72.8246C136.185 70.7765 140.3 68.6862 144.353 66.427L144.5 66.3425L136.132 51.2562L136.153 51.2668Z",fill:"currentColor"})})}const bu='a[href], button, input, select, textarea, [tabindex]:not
6([tabindex="-1"])';function wu(e){const t=p.useRef(null),r=p.useRef(null);return p.useEffect(()=>{if(e)return;const s=o=>{r.current=o.target?.closest(bu)??null};return document.addEventListener("pointerdown",s,!0),()=>document.removeEventListener("pointerdown",s,!0)},[e]),{onOpenAutoFocus:()=>{const s=document.activeElement;t.current=s instanceof HTMLElement&&s!==document.body?s:r.current},onCloseAutoFocus:s=>{const o=t.current;t.current=null,o?.isConnected&&(s.preventDefault(),o.focus({preventScroll:!0}))}}}function mn({open:e,onOpenChange:t,title:r,children:s,className:o,variant:i="side"}){const a=wu(e),l=i==="modal",[c,u]=Us();Ws(e&&!l,u);const d=n.jsxs(Ys,{ref:c,"aria-describedby":void 0,...a,"data-lenis-prevent":!0,style:l?void 0:{paddingTop:"env(safe-area-inset-top)",paddingBottom:"env(safe-area-inset-bottom)",paddingLeft:"env(safe-area-inset-left)",paddingRight:"env(safe-area-inset-right)"},className:$("flex flex-col overflow-y-auto bg-subtle-off-white outline-none",l?"modal-panel pointer-events-auto relative desktop:h-full desktop:max-h-none max-h-full w-full desktop:max-w-[665px]":"drawer-panel fixed inset-y-0 right-0 z-[90] w-full max-w-[665px]",o),children:[n.jsx(Xs,{className:"sr-only",children:r}),s]});return n.jsx(qs,{open:e,onOpenChange:t,children:n.jsxs(Gs,{children:[n.jsx(Ks,{className:"drawer-overlay fixed inset-0 z-[80] bg-warm-black/48"}),l?n.jsx("div",{className:"pointer-events-none fixed desktop:inset-0 inset-md z-[90] flex items-center desktop:items-stretch desktop:justify-end justify-center",children:d}):d]})})}const Io=Js;function Et({className:e}){return n.jsx(Io,{"aria-label":"Close",className:$("flex size-xl shrink-0 cursor-pointer items-center justify-center text-warm-black",e),children:n.jsx(Qs,{className:"size-md"})})}function ju({className:e}){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",className:e,children:n.jsx("path",{d:"M4.98 3.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5ZM3 9h4v12H3V9Zm6 0h3.83v1.64h.05c.53-1 1.84-2.06 3.79-2.06 4.05 0 4.8 2.67 4.8 6.14V21h-4v-5.6c0-1.34-.02-3.06-1.87-3.06-1.87 0-2.16 1.46-2.16 2.96V21H9V9Z"})})}function Gr(e){return e?!!(e.intro||Array.isArray(e.bio)&&e.bio.length>0||xe(e.linkedin)):!1}const ku={block:{normal:({children:e})=>n.jsx("p",{className:"mb-xs last:mb-0",children:e})}};function Co({people:e,activeIndex:t,onIndexChange:r}){const s=t===null?null:e[t],o=t!==null&&e.length>1,i=o?e[(t+1)%e.length]:null,a=o?e[(t-1+e.length)%e.length]:null;return n.jsx(mn,{open:t!==null,onOpenChange:l=>!l&&r(null),title:s?.name??"Team member",className:"overflow-hidden",children:s&&t!==null&&n.jsx(Nu,{person:s,nextName:i?.name,onNext:()=>r((t+1)%e.length),prevName:a?.name,onPrev:()=>r((t-1+e.length)%e.length)})})}function Nu({person:e,nextName:t,onNext:r,prevName:s,onPrev:o}){const i=xe(e.linkedin),a=e.photo?.image?.imageFile,l=e.photo?.image?.alt??e.name??"";return n.jsxs(n.Fragment,{children:[n.jsxs("header",{className:"relative flex shrink-0 flex-col desktop:gap-2xl gap-lg bg-subtle-off-white desktop:p-2xl p-lg pr-3xl",children:[n.jsxs("div",{className:"flex flex-col gap-sm",children:[n.jsx("p",{className:"font-headline text-display-md text-warm-black lowercase",children:e.name}),e.role&&n.jsx("p",{className:"font-functional text-body-lg text-warm-black",children:e.role})]}),i&&n.jsx("a",{href:i,target:e.linkedin?.openInNewTab?"_blank":void 0,rel:"noopener noreferrer","aria-label":`${e.name} on LinkedIn`,className:"flex size-lg items-center justify-center rounded-full bg-warm-black/12 text-warm-black",children:n.jsx(ju,{className:"size-[18px]"})}),n.jsx(Et,{className:"absolute top-sm right-sm"})]}),n.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto overscroll-contain",children:[a?.asset?._ref&&n.jsx("div",{className:"aspect-[665/360] w-full shrink-0 overflow-hidden bg-off-white",children:n.jsx(oe,{source:a,alt:l,aspectRatio:665/360,widths:[665,1330],sizes:"(min-width: 42rem) 665px, 100vw"})}),n.jsxs("div",{className:"flex flex-1 flex-col desktop:gap-2xl gap-lg desktop:p-2xl p-lg text-warm-black",children:[e.intro&&n.jsx("p",{className:"font-functional text-heading-sm",children:e.intro}),e.bio?n.jsx("div",{className:"font-functional text-body-md",children:n.jsx(Mt,{value:e.bio,components:ku})}):null]})]}),(s||t)&&n.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-sm border-warm-black/12 border-t bg-subtle-off-white p-sm",children:[s?n.jsx(Se,{onClick:o,iconPosition:"leading",icon:n.jsx("span",{className:"shrink-0 rotate-180",children:n.jsx(ge,{className:"size-md transition-colors group-hover:text-clay"})}),className:"group font-bold text-warm-black",children:s}):n.jsx("span",{}),t&&n.jsx(Se,{onClick:r,hoverEffect:"tint",className:"group font-bold text-warm-black",children:t})]})]})}function Kr({icon:e,className:t}){return e?n.jsx(de,{svg:e,tightViewBox:!0,className:`${t} justify-center [&>svg]:w-full`}):n.jsx(yu,{className:t})}function Su({data:e}){const t=(e.members??[]).filter(i=>!!i?.name),[r,s]=p.useState(null),o=t.filter(Gr);return n.jsxs("section",{className:"flex flex-col gap-2xl bg-warm-black desktop:px-2xl px-sm desktop:py-8xl py-2xl text-off-white",children:[n.jsxs(le,{className:"flex desktop:flex-row flex-col desktop:items-end desktop:justify-between desktop:gap-2xl gap-lg",children:[n.jsxs("div",{className:"flex min-w-0 desktop:flex-1 flex-col gap-lg",children:[n.jsxs("div",{className:"flex items-center justify-between gap-sm",children:[e.title&&n.jsx("h2",{className:"whitespace-pre-wrap font-headline text-display-md lowercase",children:e.title}),n.jsx(Kr,{icon:e.icon,className:"desktop:hidden size-2xl shrink-0"})]}),e.intro&&n.jsx("p",{className:"desktop:max-w-[520px] font-functional text-body-md",children:e.intro})]}),n.jsx(Kr,{icon:e.icon,className:"desktop:block hidden size-[144px] shrink-0"})]}),n.jsx(he,{className:"grid desktop:grid-cols-3 grid-cols-1 gap-sm",children:t.map((i,a)=>n.jsx(vu,{name:i.name??"",role:i.role,boardRole:i.boardNote,onClick:Gr(i)?()=>s(o.indexOf(i)):void 0},i._id??a))}),n.jsx(Co,{people:o,activeIndex:r,onIndexChange:s})]})}function ct({children:e,speed:t=120,distance:r,className:s,style:o,...i}){const a=p.useRef(null),l=r??t;return we(()=>{const c=a.current;!c||ve()||O.fromTo(c,{y:-t/2},{y:t/2,ease:"none",scrollTrigger:{trigger:c,start:"top bottom",end:"bottom top",scrub:!0}})},{dependencies:[t],scope:a}),n.jsx("div",{ref:a,className:`absolute inset-x-0 ${s??""}
6`,style:{top:-l,bottom:-l,...o},...i,children:e})}function Ee({index:e,axis:t="x",reverse:r=!1,directional:s=!1,inDuration:o=1.5,outDuration:i,delay:a=0,outDelay:l=0,ease:c=ne.inOut,exitStyle:u="cover",slideClassName:d,className:f,children:m,...g}){const x=p.useRef(null),y=p.useRef([]),w=p.useRef(null),v=p.useRef(null),h=p.useRef(1),N=p.useRef(null),A=t==="x"?"xPercent":"yPercent",C=i??o,R=p.Children.toArray(m);return we(()=>{const T=y.current,k=N.current;N.current=e;const S=!ve(),L=s&&k!==null&&e<k,b=(r?-100:100)*(L?-1:1);if(u==="slide"){const I=k!==null&&k!==e,z=-b;T.forEach((D,U)=>{!D||U===e||U===k||(O.killTweensOf(D),O.set(D,{[A]:b,zIndex:0}))});const M=T[e];if(M&&(O.set(M,{zIndex:2}),S&&I?(O.isTweening(M)||O.set(M,{[A]:b}),O.to(M,{[A]:0,duration:o,delay:a,ease:c,overwrite:!0})):O.set(M,{[A]:0})),I&&k!==null){const D=T[k];D&&(O.set(D,{zIndex:1}),S?O.to(D,{[A]:z,duration:C,delay:a+l,ease:c,overwrite:!0,onComplete:()=>O.set(D,{[A]:b,zIndex:0})}):O.set(D,{[A]:b,zIndex:0}))}return}const j=w.current;if(j===null){T.forEach((I,z)=>{I&&O.set(I,{[A]:z===e?0:b,zIndex:z===e?1:0})}),w.current=e;return}if(e===v.current)return;const _=T[e];if(_){if(e===j){if(v.current===null)return;T.forEach((I,z)=>{!I||z===j||(O.killTweensOf(I),O.set(I,{[A]:b,zIndex:0}))}),O.set(_,{zIndex:1}),h.current=1,v.current=null;return}v.current=e,O.killTweensOf(_),S?(h.current+=1,O.set(_,{[A]:b,zIndex:h.current}),O.to(_,{[A]:0,duration:o,delay:a,ease:c,overwrite:!0,onComplete:()=>{v.current===e&&(w.current=e,v.current=null,O.delayedCall(Math.max(0,l),()=>{v.current!==null||w.current!==e||(T.forEach((I,z)=>{!I||z===e||(O.killTweensOf(I),O.set(I,{[A]:b,zIndex:0}))}),O.set(_,{zIndex:1}),h.current=1)}))}})):(T.forEach((I,z)=>{!I||z===e||O.set(I,{[A]:b,zIndex:0})}),O.set(_,{[A]:0,zIndex:1}),w.current=e,v.current=null)}},{dependencies:[e,t,r,s,o,C,a,l,c,u],scope:x}),n.jsx("div",{ref:x,className:`overflow-hidden ${f??""}`,...g,children:R.map((T,k)=>n.jsx("div",{ref:S=>{y.current[k]=S},className:`absolute inset-0 ${d??""}`,children:T},k))})}const Iu=new Set(["coolPink","troveLime","offWhite"]),Cu=60;function pn(e){const t=E(e.iconBackgroundColor)??"",r=E(e.iconColor),s=E(e.indicatorBackgroundColor),o=e.logoHeight??Cu,i=e.logo?.dimensions?.aspectRatio;return{name:E(e.name)??"",logoUrl:E(e.logo?.url)??null,logoHeight:o,logoWidth:i?Math.round(o*i):null,logoRatio:i??null,iconBg:ue(t).bg,iconColor:r?ue(r).fg:Iu.has(t)?"text-warm-black":"text-off-white",indicatorBg:ue(s??t).bg,indicatorFg:s?ue(t).fg:ue(t).text}}const Cn=1,Eu=.8,Tu=.8,Lu=.15,_u=.5,Yr=ne.expo,Au=.2,Xr=80;function Pu({color:e,from:t}){const r=p.useRef(null);return we(()=>{const s=r.current;if(!s)return;const o=ve()?0:_u;if(O.set(s,{yPercent:-50}),t===null){O.fromTo(s,{xPercent:0,autoAlpha:0},{autoAlpha:1,duration:o,ease:Yr,overwrite:!0});return}O.fromTo(s,{xPercent:t==="left"?-Xr:Xr,autoAlpha:Au,height:"90%"},{xPercent:0,autoAlpha:1,height:"100%",duration:o,ease:Yr,overwrite:!0})}),n.jsx("span",{ref:r,"aria-hidden":!0,className:$("pointer-events-none absolute inset-x-0 top-1/2 z-0 h-full rounded-full",e)})}function Ou({brands:e,activeIndex:t,onSelect:r}){const s=p.useRef(null),o=s.current,i=o===null||o===t?null:t>o?"left":"right";return p.useEffect(()=>{s.current=t},[t]),n.jsx("div",{className:"flex desktop:hidden justify-center py-md",children:n.jsx("div",{className:"flex items-center gap-2xs rounded-full bg-white p-3xs",children:e.map((a,l)=>{const c=pn(a),u=l===t;return n.jsx("button",{type:"button",onClick:()=>r(l),"aria-current":u?"true":void 0,"aria-label":u?c.name:`View ${c.name}`,className:$("group cursor-pointer rounded-full",u&&"relative z-10"),children:n.jsxs("span",{className:$("relative isolate flex min-h-lg items-center rounded-full py-3xs",u?"gap-2xs pr-sm pl-2xs":"bg-white px-sm"),children:[u&&n.jsx(Pu,{color:c.indicatorBg,from:i}),u&&n.jsx("span",{className:$("relative z-10 block size-sm shrink-0",c.indicatorFg),children:n.jsx(de,{svg:a.icon,className:"absolute inset-0"})}),n.jsx("span",{className:$("relative z-10 font-functional text-label-sm",u?c.indicatorFg:"text-warm-black"),children:c.name})]})},a._key)})})})}function Ru({brands:e,activeIndex:t,onSelect:r}){return n.jsx("div",{className:"-translate-y-1/2 absolute top-1/2 left-2xl z-10 desktop:flex hidden flex-col gap-xs",children:e.map((s,o)=>{const i=pn(s),a=o===t;return n.jsx("button",{type:"button",onClick:()=>r(o),"aria-label":a?i.name:`View ${i.name}`,"aria-current":a?"true":void 0,className:"group cursor-pointer rounded-full",children:n.jsx("span",{className:$("relative isolate flex size-xl items-center justify-center rounded-full transition-colors duration-300",a?i.indicatorBg:"bg-warm-black/8 backdrop-blur-md"),children:n.jsx("span",{className:"relative z-10 block size-md shrink-0",children:n.jsx(de,{svg:s.icon,className:$("absolute inset-0 transition-colors duration-300",a?i.indicatorFg:"text-warm-black/20 group-hover:text-warm-black/50")})})})},s._key)})})}function zu(e){return at(e.photo?.image?.imageFile,{width:1600,height:2048,fit:"crop"})}function Jr({brand:e,spacer:t=!1,hidden:r=!1}){const s=pn(e),o=t?E(e.headline):e.headline,i=t?E(e.body):e.body,a=s.logoRatio?{width:"100%",maxWidth:s.logoWidth??void 0,aspectRatio:s.logoRatio}:{height:s.logoHeight,maxWidth:"100%"};return n.jsxs("div",{"aria-hidden":t||r,className:$("flex flex-col items-center justify-start gap-2xl px-2xl py-2xl text-center lg:justify-center","desktop:items-start desktop:pr-2xl desktop:pl-8xl desktop:text-left",t?"invisible col-start-1 row-start-1":"size-full"),children:[s.logoUrl&&(t?n.jsx("div",{style:a}):n.jsx("img",{src:s.logoUrl,alt:s.name,width:s.logoWidth??void 0,height:s.logoHeight,loading:"lazy",decoding:"async",className:"h-auto object-contain",style:a})),o&&n.jsx("h2",{className:"font-functional text-heading-lg text-warm-black",children:o}),i&&n.jsx("p",{className:"max-w-[480px] font-functional text-body-lg text-warm-black",children:i})]})}function Eo({brands:e,ctaArrow:t,activeIndex:r,scrollDriven:s=!1,onSelect:o}){const i=n.jsx(Ee,{index:r,axis:"y",inDuration:Eu,outDuration:Tu,ease:"EASE.in",outDelay:Lu,exitStyle:"slide",className:"relative size-full",children:e.map(a=>{const l=zu(a);return l?n.jsx("img",{src:l,alt:E(a.photo?.image?.alt)??"",className:"size-full object-cover"},a._key):n.jsx("div",{className:"size-full bg-warm-black"},a._key)})});return n.jsxs("section",{className:$("relative flex desktop:flex-row flex-col overflow-hidden",s?"sticky top-0 h-screen":"desktop:min-h-screen min-h-svh"),children:[n.jsxs("div",{className:"flex desktop:w-1/2 desktop:flex-none flex-1 flex-col bg-off-white",children:[!s&&n.jsx(Ou,{brands:e,activeIndex:r,onSelect:o}),n.jsxs("div",{className:"relative grid flex-1",children:[n.jsx(Ru,{brands:e,activeIndex:r,onSelect:o}),e.map(a=>n.jsx(Jr,{brand:a,spacer:!0},a._key)),n.jsx(Ee,{index:r,axis:"y",exitStyle:"slide",inDuration:Cn,className:"relative col-start-1 row-start-1",children:e.map((a,l)=>n.jsx(Jr,{brand:a,hidden:l!==r},a._key))})]}),n.jsxs("div",{className:"flex min-h-7xl desktop:shrink shrink-0 desktop:basis-[25vw]",children:[n.jsx(Ee,{index:r,reverse:!0,inDuration:Cn,className:"relative aspect-square desktop:h-full desktop:w-auto w-[50vw] shrink-0",children:e.map(a=>{const l=pn(a);return n.jsx("div",{className:$("flex size-full items-center justify-center",l.iconBg),children:n.jsx(de,{svg:a.icon,className:$("size-[82%]",l.iconColor)})},a._key)})}),(()=>{const a=e[r]?.cta,l=xe(a),c="group relative block flex-1 overflow-hidden bg-warm-black desktop:h-full",u=n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"absolute inset-sm flex items-start justify-end",children:n.jsx(de,{svg:t,tightViewBox:!0,className:"h-[36%] w-auto origin-top-right text-off-white transition-transform duration-300 group-hover:scale-125"})}),n.jsx(Ee,{index:r,reverse:!0,exitStyle:"slide",inDuration:Cn,slideClassName:"flex items-end overflow-hidden",className:"absolute inset-x-xs xs:inset-x-sm bottom-sm h-1/2",children:e.map((d,f)=>{const m=Ne(d.cta),g=f===r;return n.jsx("div",{"aria-hidden":!g,children:m&&n.jsx("span",{className:"font-functional desktop:text-heading-lg text-heading-xs text-off-white xs:text-heading-md",children:m})},d._key)})})]});return l?n.jsx("a",{href:l,className:c,target:a?.openInNewTab?"_blank":void 0,rel:a?.openInNewTab?"noreferrer":void 0,children:u}):n.jsx("div",{className:c,children:u})})()]})]}),n.jsx("div",{className:"relative desktop:block hidden desktop:w-1/2",children:s?n.jsx("div",{className:"absolute inset-0",children:i}):n.jsx(ct,{speed:120,children:i})})]})}function Mu({brands:e,ctaArrow:t}){const[r,s]=p.useState(0);return n.jsx(Eo,{brands:e,ctaArrow:t,activeIndex:r,onSelect:s})}function Du({brands:e,ctaArrow:t}){const r=p.useRef(null),s=p.useRef([]),[o,i]=p.useState(0),a=dn(),l=e.length;we(()=>{const d=r.current;d&&ke.create({trigger:d,start:"top top",end:"bottom bottom",invalidateOnRefresh:!0,onUpdate:f=>i(f.progress)})},{scope:r,dependencies:[l]});const c=l>1?Math.round(o*(l-1)):0,u=p.useCallback(d=>{const f=s.current[d];f&&to(a,f)},[a]);return n.jsxs("div",{ref:r,className:"relative",style:{height:`${l*100}vh`},children:[e.map((d,f)=>
6n.jsxs(p.Fragment,{children:[n.jsx(It,{style:{top:`${f*100}vh`}}),n.jsx("div",{ref:m=>{s.current[f]=m},"aria-hidden":!0,className:"pointer-events-none absolute left-0 size-px",style:{top:`${f*100}vh`}})]},d._key)),n.jsx(Eo,{brands:e,ctaArrow:t,activeIndex:c,scrollDriven:!0,onSelect:u})]})}function $u({data:e}){const t=(e.brands??[]).filter(i=>!!E(i.name)),r=Oe("desktop"),s=Jn(),o=er("sm");return t.length?r&&s&&o&&t.length>1?n.jsx(Du,{brands:t,ctaArrow:e.ctaArrow}):n.jsx(Mu,{brands:t,ctaArrow:e.ctaArrow}):null}function Tt({children:e,className:t}){return n.jsx("h2",{className:`whitespace-pre-line font-headline text-display-md ${t??""}`,children:e})}const Fu={"1/2":{media:"desktop:w-1/2",content:"desktop:w-1/2"},"5/12":{media:"desktop:w-5/12",content:"desktop:w-7/12"}};function Dt({media:e,children:t,reverse:r,mediaWidth:s="1/2",reverseOnMobile:o,fullHeight:i=!0}){const a=Fu[s];return n.jsxs("div",{className:`flex desktop:flex-row flex-col ${i?"desktop:min-h-screen":""} ${r?"desktop:flex-row-reverse":""}`,children:[n.jsx("div",{className:`relative aspect-square w-full shrink-0 overflow-hidden ${i?"desktop:aspect-auto":""} ${a.media} ${o?"desktop:order-none order-2":""}`,children:e}),n.jsx("div",{className:`flex w-full flex-col ${a.content} ${o?"desktop:order-none order-1":""}`,children:t})]})}function Bu(e,t){const r=t.flatMap((s,o)=>{const i=E(s.name)?.trim();return i?(s.committees??[]).flatMap(a=>{const l=a?.committee?._id;return l?[{id:`${s._id??i}:${l}`,name:i,committeeId:l,personIndex:o,roleTitle:E(a?.role?.title)?.trim()??"",roleOrder:a?.role?.order??Number.POSITIVE_INFINITY}]:[]}):[]});return e.flatMap(s=>{const o=E(s.title)?.trim();if(!s._id||!o)return[];const i=r.filter(a=>a.committeeId===s._id).sort((a,l)=>a.roleOrder-l.roleOrder||a.personIndex-l.personIndex).map(a=>({id:a.id,label:a.roleTitle?`${a.name}, ${a.roleTitle}`:a.name}));return i.length>0?[{key:s._id,name:o,holders:i}]:[]})}function Vu({data:e}){const t=e.image?.image?.imageFile,r=Bu(e.committees??[],e.seats??[]),s=t?.asset?._ref?n.jsx(oe,{source:t,alt:e.image?.image?.alt,sizes:"(min-width: 64rem) 42vw, 100vw",className:"absolute inset-0"}):null;return n.jsx("section",{className:"bg-off-white text-warm-black",children:n.jsx(Dt,{reverse:!0,mediaWidth:"5/12",media:s,children:n.jsxs("div",{className:"flex flex-1 flex-col justify-between desktop:gap-2xl gap-5xl desktop:p-2xl px-sm py-2xl",children:[n.jsx(le,{children:e.title&&n.jsx(Tt,{children:e.title})}),n.jsx(he,{className:"flex flex-col gap-2xl",children:r.map(o=>n.jsxs("div",{className:"flex desktop:flex-row flex-col desktop:gap-sm gap-lg border-warm-black/24 border-t py-sm",children:[n.jsx("h3",{className:"desktop:flex-1 font-functional text-heading-md",children:o.name}),n.jsx("ul",{className:"flex desktop:w-[332px] desktop:shrink-0 flex-col gap-sm",children:o.holders.map(i=>n.jsxs("li",{className:"flex items-center gap-xs",children:[n.jsx(Rt,{className:"size-xs shrink-0"}),n.jsx("span",{className:"font-functional text-body-lg",children:i.label})]},i.id))})]},o.key))})]})})})}function Qr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,s)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qr(Object(r),!0).forEach(function(s){Hu(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qr(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function Hu(e,t,r){return t=Uu(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zu(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uu(e){var t=Zu(e,"string");return typeof t=="symbol"?t:String(t)}function rt(e,t){if(!e)throw new Error(t)}
6function Me(){return(Date.now()*Math.random()).toString(36)}function wt(e){return JSON.parse(JSON.stringify(e))}function De(e){return!!e&&e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function Wu(e){var t=Array.isArray(e)?e:[e];if(!(t.length===0||t.some(s=>s.flags.includes("i")))){var r="^".concat(t.map(s=>"(?=.*(?:".concat(s.source,"))")).join(""),".*$");try{new RegExp(r,"v")}catch{return}return r}}function tr(e){return e.tagName==="INPUT"}function nr(e){return e.tagName==="SELECT"}function To(e){return e.tagName==="TEXTAREA"}function Lo(e){return"type"in e&&e.type==="submit"}function xt(e){if(e instanceof Element){if(tr(e))return e.type!=="submit"&&e.type!=="button"&&e.type!=="reset";if(nr(e)||To(e))return!0}return!1}function Jt(e,t){var r=globalThis[t];return typeof r=="function"&&e instanceof r}function qu(e){var t,r,s=e.target,o=e.submitter;return(t=(r=o?.getAttribute("formaction"))!==null&&r!==void 0?r:s.getAttribute("action"))!==null&&t!==void 0?t:"".concat(location.pathname).concat(location.search)}function Gu(e){var t,r=e.target,s=e.submitter,o=(t=s?.getAttribute("formenctype"))!==null&&t!==void 0?t:r.enctype;return o==="multipart/form-data"?o:"application/x-www-form-urlencoded"}function Ku(e){var t,r,s=e.target,o=e.submitter,i=(t=(r=o?.getAttribute("formmethod"))!==null&&r!==void 0?r:s.getAttribute("method"))===null||t===void 0?void 0:t.toUpperCase();switch(i){case"POST":case"PUT":case"PATCH":case"DELETE":return i}return"GET"}function Yu(e,t){if(rt(e!=null,"Form element is required to trigger submission."),rt(t===null||Lo(t),"Submitter must be a button or input element or null."),rt(t===null||t.form===e,"Submitter must be associated with the form."),typeof e.requestSubmit=="function")e.requestSubmit(t);else if(t)t.click();else{var r=document.createElement("button");r.hidden=!0,e.appendChild(r),r.click(),e.removeChild(r)}}function Xu(e){var t=new DataTransfer;if(Array.isArray(e))for(var r of e)t.items.add(r);else t.items.add(e);return t.files}function Je(e){if(!(typeof e>"u")){if(e===null)return[];if(typeof e=="string")return[e];if(Array.isArray(e)&&e.every(t=>typeof t=="string"))return Array.from(e);throw new Error("Expected string or string[] value for string based input")}}function Ju(e){if(!(typeof e>"u")){if(e===null)return[];if(Jt(e,"File"))return e.name===""&&e.size===0?[]:[e];if(Jt(e,"FileList"))return Array.from(e);if(Array.isArray(e)&&e.every(t=>Jt(t,"File")))return e;throw new Error("Expected File, FileList or File[] for file input")}}function es(e,t){var r=!1;if(tr(e))switch(e.type){case"file":{var s,o=Ju(t.value),i=Array.from((s=e.files)!==null&&s!==void 0?s:[]);return o&&(o.length!==i.length||o.some((b,j)=>b!==i[j]))&&(e.files=Xu(o),r=!0),r}case"checkbox":case"radio":{var a=Je(t.value),l=Je(t.defaultValue);if(a){var c=a.includes(e.value);c!==e.checked&&((e.type==="checkbox"||c)&&e.click(),r=!0),e.checked=c}return l&&(e.defaultChecked=l.includes(e.value)),r}}else if(nr(e)){var u=Je(t.value),d=Je(t.defaultValue),f=u&&u.length===0;for(var m of e.options){if(u){var g=u.indexOf(m.value),x=g>-1;m.selected!==x&&(m.selected=x,r=!0),x&&u.splice(g,1)}if(d){var y=d.indexOf(m.value),w=y>-1;m.defaultSelected!==w&&(m.defaultSelected=w),w&&d.splice(y,1)}}var v=new Set([...u??[],...d??[]]);for(var h of v)e.options.add(new Option(h,h,d?.includes(h),u?.includes(h))),r=!0;return f&&e.selectedIndex!==-1&&(e.selectedIndex=-1,r=!0),r}var N=Je(t.value),A=Je(t.defaultValue);if(N){var C,R=(C=N[0])!==null&&C!==void 0?C:"";if(e.value!==R){var{set:T}=Object.getOwnPropertyDescriptor(e,"value")||{},k=Object.getPrototypeOf(e),{set:S}=Object.getOwnPropertyDescriptor(k,"value")||{};if(S&&T!==S)S.call(e,R);else if(T)T.call(e,R);else throw new Error("The given element does not have a value setter");r=!0}}if(A){var L;e.defaultValue=(L=A[0])!==null&&L!==void 0?L:""}return r}function Qu(e){var t,r;if(tr(e))switch(e.type){case"checkbox":case"radio":return e.checked!==e.defaultChecked;case"file":return((t=(r=e.files)===null||r===void 0?void 0:r.length)!==null&&t!==void 0?t:0)>0;default:return e.value!==e.defaultValue}else{if(nr(e))return Array.from(e.options).some(s=>s.selected!==s.defaultSelected);if(To(e))return e.value!==e.defaultValue}return!1}function ed(e,t){var r=new FormData(e,t);if(t){if(!Lo(t))throw new TypeError("The submitter must be an input or button element with type submit.");if(t.name){var s=r.getAll(t.name);s.includes(t.value)||r.append(t.name,t.value)}}return r}function je(e){if(!e)return[];for(var t=/([^.[\]]+)|\[(\d*)\]/g,r=[],s=0,o;o=t.exec(e);){if(o.index!==s&&!(o.index===s+1&&e[s]==="."))throw new Error("Invalid path syntax at position ".concat(s,' in "').concat(e,'"'));var[,i,a]=o;if(i!==void 0){if(i==="__proto__"||i==="constructor")throw new Error('Invalid path segment "'.concat(i,'"'));r.push(i)}else if(a==="")r.push("");else{var l=Number(a);if(!Number.isInteger(l)||l<0)throw new Error("Invalid path segment: array index must be a non-negative integer, got ".concat(l));r.push(l)}s=t.lastIndex}if(s!==e.length)throw new Error("Invalid path syntax at position ".concat(s,' in "').concat(e,'"'));return r}function We(e){return e.reduce((t,r)=>$e(t,r),"")}function $e(e,t){var r=e??"";return typeof t>"u"?r:t===""?"".concat(r,"[]"):typeof t=="number"?"".concat(r,"[").concat(t,"]"):r?"".concat(r,".").concat(t):t}function ut(e,t){return rr(e,je(t))!==null}function rr(e,t){var r=typeof e=="string"?je(e):e,s=typeof t=="string"?je(t):t;return r.length>=s.length&&s.every((o,i)=>o===r[i])?r.slice(s.length):null}function Fe(e,t,r){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};try{var o=typeof t=="string"?je(t):t;if(o.length===0)throw new Error("Cannot set value at the object root");
6if(o.some((x,y)=>x===""&&y<o.length-1))throw new Error(`Empty brackets '[]' only allowed at end of path ("`.concat(t,'")'));for(var i=s.clone?se({},e):e,a=i,l=0;l<o.length-1;l++){var c=o[l],u=o[l+1],d=a[c];Array.isArray(d)?d=s.clone?d.slice():d:De(d)?d=s.clone?se({},d):d:d=typeof u=="number"||u===""?[]:{},a[c]=d,a=d}var f=o[o.length-1],m=a[f],g=typeof r=="function"?r(m):r;if(f===""){if(!Array.isArray(a))throw new Error('Cannot push to non-array at "'.concat(t,'"'));a.push(g)}else a[f]=g;return i}catch(x){if(s!=null&&s.silent)return e;throw x}}function ot(e,t){var r=e,s=typeof t=="string"?je(t):t;for(var o of s){if(o==="")throw new Error('Cannot access empty segment "[]" in "'.concat(t,'"'));if(r==null||!Object.prototype.hasOwnProperty.call(r,o))return;r=r[o]}return r}var jt="__intent__",En="__state__";function _o(e){var t=e.get(jt),r=e.get(En);rt((typeof t=="string"||t===null)&&(typeof r=="string"||r===null),'The input name "'.concat(jt,'" and "').concat(En,'" are reserved by Conform. Please use another name for your input.'));var s={payload:{},fields:new Set,intent:rd(t)};r&&(s.state=JSON.parse(r));var o=function(c){if(i===jt||i===En)return 1;s.fields.add(i),Fe(s.payload,i,u=>u?Array.isArray(u)?u.concat(c):[u,c]:c,{silent:!0})};for(var[i,a]of e.entries())o(a);return s}function td(e,t){var r=_o(e),s=r.intent;if(s)switch(s.type){case"update":{var o=$e(s.payload.name,s.payload.index),i=s.payload.value;typeof s.payload.value<"u"&&(o?Fe(r.payload,o,()=>i):r.payload=i);break}case"reset":{var a=$e(s.payload.name,s.payload.index);a?Fe(r.payload,a,()=>{}):r.payload={};break}case"insert":case"remove":case"reorder":{Ao(r.payload,s);break}}var l=t.resolve(r.payload,s),c=u=>nd(se(se({},r),{},{value:u.value,error:u.error}));return l instanceof Promise?l.then(c):c(l)}function nd(e){return e.intent||e.error!==void 0?{status:e.intent?void 0:"error",payload:e.payload,error:typeof e.error<"u"?e.error:{},reply(t){return ts(e,t)}}:{status:"success",payload:e.payload,value:e.value,reply(t){return ts(e,t)}}}function ts(e){var t,r,s,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if("resetForm"in i&&i.resetForm||((t=e.intent)===null||t===void 0?void 0:t.type)==="reset"&&((r=e.intent.payload.name)!==null&&r!==void 0?r:"")==="")return{initialValue:null};if("hideFields"in i&&i.hideFields)for(var a of i.hideFields){var l=ot(e.payload,a);typeof l<"u"&&Fe(e.payload,a,()=>{})}var c="formErrors"in i||"fieldErrors"in i?it(se({"":(s=i.formErrors)!==null&&s!==void 0?s:null},i.fieldErrors)):null,u=e.error||c?se(se({},e.error),c):void 0,d=(o=it(e.payload,typeof document<"u"))!==null&&o!==void 0?o:{};return{status:e.intent?void 0:u?"error":"success",intent:e.intent?e.intent:void 0,initialValue:d,error:u,state:e.state,fields:Array.from(e.fields)}}function rd(e){if(!e)return null;var t=JSON.parse(e);if(typeof t.type!="string"||typeof t.payload>"u")throw new Error("Unknown form control intent");return t}function sd(e){switch(e.type){case"insert":return JSON.stringify({type:e.type,payload:se(se({},e.payload),{},{defaultValue:Lt(e.payload.defaultValue)})});case"update":return JSON.stringify({type:e.type,payload:se(se({},e.payload),{},{value:Lt(e.payload.value)})});default:return JSON.stringify(e)}}function Vn(e,t){var r;switch(rt(Array.isArray(e),"Failed to update list. The value is not an array."),t.type){case"insert":e.splice((r=t.payload.index)!==null&&r!==void 0?r:e.length,0,t.payload.defaultValue);break;case"remove":e.splice(t.payload.index,1);break;case"reorder":e.splice(t.payload.to,0,...e.splice(t.payload.from,1));break;default:throw new Error("Unknown list intent received")}}function Ao(e,t){Fe(e,t.payload.name,r=>{var s=r??[];return Vn(s,t),s})}var Hn=Symbol.for("root");function on(e,t,r){var s=Object.keys(e).sort((c,u)=>u.localeCompare(c)),o={},i=function(){var u=e[a];ut(a,t)&&a!==t&&(Fe(o,a,d=>typeof d>"u"?u:(d[Hn]=u,d)),delete e[a])};for(var a of s)i();var l=r(ot(o,t));Object.assign(e,sr(l,{resolve(c){if(De(c)||Array.isArray(c)){var u;return(u=c[Hn])!==null&&u!==void 0?u:null}return c},prefix:t}))}function ns(e,t,r){on(e,t.payload.name,s=>{var o=s??[];
6return t.type==="insert"?Vn(o,{type:t.type,payload:se(se({},t.payload),{},{defaultValue:r?.(t.payload.defaultValue)})}):Vn(o,t),o})}function Lt(e){return De(e)?Object.entries(e).reduce((t,r)=>{var[s,o]=r;return t[s]=Lt(o),t},{}):Array.isArray(e)?e.map(Lt):e instanceof Date?e.toISOString():typeof e=="boolean"?e?"on":void 0:typeof e=="number"||typeof e=="bigint"?e.toString():e??void 0}function it(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(De(e)){var r=Object.keys(e).sort().reduce((s,o)=>{var i=it(e[o],t);return typeof i<"u"&&(s[o]=i),s},{});return Object.keys(r).length===0?void 0:r}if(Array.isArray(e))return e.length===0?void 0:e.map(s=>it(s,t));if(!(typeof e=="string"&&e===""||e===null||Jt(e,"File")&&(!t||e.size===0)))return e}function sr(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s={},o=(t=r.resolve)!==null&&t!==void 0?t:l=>l;function i(l,c){var u=it(o(l));if(typeof u<"u"&&(s[c]=u),Array.isArray(l))for(var d=0;d<l.length;d++)i(l[d],"".concat(c,"[").concat(d,"]"));else if(De(l))for(var[f,m]of Object.entries(l))i(m,c?"".concat(c,".").concat(f):f)}if(e){var a;i(e,(a=r.prefix)!==null&&a!==void 0?a:"")}return s}function rs(e,t){var r,s,o,i,a,l=t?void 0:e.lastResult,c=e.defaultValue?Lt(e.defaultValue):{},u=(r=l?.initialValue)!==null&&r!==void 0?r:c,d={formId:e.formId,pendingIntents:t?[{type:"reset",payload:{}}]:[],isValueUpdated:!1,submissionStatus:l?.status,defaultValue:c,initialValue:u,value:u,constraint:(s=e.constraint)!==null&&s!==void 0?s:{},validated:(o=l==null||(i=l.state)===null||i===void 0?void 0:i.validated)!==null&&o!==void 0?o:{},key:t?se({"":Me()},_t(c)):_t(c),error:(a=l?.error)!==null&&a!==void 0?a:{}};return Po(d,l?.intent,l?.fields),d}function _t(e,t){return Object.entries(sr(e,{prefix:t})).reduce((r,s)=>{var[o,i]=s;if(Array.isArray(i))for(var a=0;a<i.length;a++)r[$e(o,a)]=Me();return r},{})}function ss(e,t){for(var r of Object.keys(e.error).concat(t??[]))e.validated[r]=!0}function Po(e,t,r,s){var o;if(!t){ss(e,r);return}switch(t.type){case"validate":{t.payload.name?e.validated[t.payload.name]=!0:ss(e,r);break}case"update":{var{validated:i,value:a}=t.payload,l=$e(t.payload.name,t.payload.index);typeof a<"u"&&os(e,l??"",a),typeof i<"u"&&(l?on(e.validated,l,()=>{}):e.validated={},i?((De(a)||Array.isArray(a))&&Object.assign(e.validated,sr(a,{resolve(){return!0},prefix:l})),e.validated[l??""]=!0):l&&delete e.validated[l]);break}case"reset":{var c=$e(t.payload.name,t.payload.index),u=ot(e.defaultValue,c);os(e,c,u),c?(on(e.validated,c,()=>{}),delete e.validated[c]):e.validated={};break}case"insert":case"remove":case"reorder":{s&&(e.initialValue=wt(e.initialValue),e.key=wt(e.key),ns(e.key,t,f=>!Array.isArray(f)&&!De(f)?Me():Object.assign(_t(f),{[Hn]:Me()})),Ao(e.initialValue,t)),ns(e.validated,t),e.validated[t.payload.name]=!0;break}}var d=(o=r?.filter(f=>e.validated[f]))!==null&&o!==void 0?o:[];e.error=Object.entries(e.error).reduce((f,m)=>{var[g,x]=m;return(e.validated[g]||d.some(y=>ut(g,y)))&&(f[g]=x),f},{})}function os(e,t,r){if(t===""){e.initialValue=r,e.value=r,e.key=se(se({},_t(r)),{},{"":Me()});return}e.initialValue=wt(e.initialValue),e.value=wt(e.value),e.key=wt(e.key),Fe(e.initialValue,t,()=>r),Fe(e.value,t,()=>r),(De(r)||Array.isArray(r))&&(on(e.key,t,()=>{}),Object.assign(e.key,_t(r,t))),e.key[t]=Me()}function $t(e){var t={};return new Proxy(t,{get(r,s,o){var i;if(typeof s=="string")return(i=t[s])!==null&&i!==void 0?i:t[s]=e(s,o)}})}function Tn(e){var t=it(e);return $t((r,s)=>{if(r==="")return t;var o=je(r),i=We(o.slice(0,-1)),a=We(o.slice(-1)),l=s[i];return ot(l,a)})}function od(e){return $t((t,r)=>{var s,o=e[t];if(!o){for(var i=je(t),a=i.length-1;a>=0;a--){var l=i[a];if(typeof l=="number"){i[a]="";break}}var c=We(i);t!==c&&(o=r[c])}return(s=o)!==null&&s!==void 0?s:{}})}function id(e){return $t((t,r)=>{var s=e[t],o=je(t);if(o.length===0)return s;var i=r[We(o.slice(0,-1))];return typeof i>"u"?s:"".concat(i,"/").concat(s??o.at(-1))})}function ad(e){return $t(t=>{var r=Object.keys(e);if(t==="")return r.length===0;for(var s of r)if(ut(s,t)&&typeof e[s]<"u")return!1;return!0})}function ld(e,t,r){return $t(s=>JSON.stringify(e[s])!==JSON.stringify(t[s],(o,i)=>s===""&&o===""&&i?Object.entries(i).reduce((a,l)=>{var[c,u]=l;return r(c)?Object.assign(a??{},{[c]:u}):a},void 0):i))}function Qe(e,t,r,s){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:(g,x)=>JSON.stringify(g)!==JSON.stringify(x);if(s&&e!==t){var i,a,l=(i=s.prefix)!==null&&i!==void 0?i:[],c=(a=s.name)!==null&&a!==void 0?a:[],u=l.length===0?c:Array.from(new Set([...Object.keys(e),...Object.keys(t)])),d=function(x){if(l.length===0||c.includes(x)||l.some(w=>ut(x,w))){var y;
6if((y=r[x])!==null&&y!==void 0||(r[x]=o(e[x],t[x])),r[x])return{v:!0}}},f;for(var m of u)if(f=d(m),f)return f.v}return!1}function cd(e){var t=[],r=e,s=new Set,o=rs(e),i=l(o);function a(){return document.forms.namedItem(r.formId)}function l(j){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j,I=arguments.length>2?arguments[2]:void 0,z=!I||_.defaultValue!==j.defaultValue?Tn(j.defaultValue):I.defaultValue,M=j.initialValue===j.defaultValue?z:!I||_.initialValue!==j.initialValue?Tn(j.initialValue):I.initialValue,D=j.value===j.initialValue?M:!I||_.value!==j.value?Tn(j.value):I.value;return{submissionStatus:j.submissionStatus,pendingIntents:j.pendingIntents,defaultValue:z,initialValue:M,value:D,error:!I||_.error!==j.error?j.error:I.error,validated:j.validated,constraint:!I||_.constraint!==j.constraint?od(j.constraint):I.constraint,key:!I||_.key!==j.key?id(j.key):I.key,valid:!I||_.error!==j.error?ad(j.error):I.valid,dirty:!I||_.defaultValue!==j.defaultValue||_.value!==j.value?ld(z,D,U=>{var P,F;return(P=(F=r.shouldDirtyConsider)===null||F===void 0?void 0:F.call(r,U))!==null&&P!==void 0?P:!0}):I.dirty}}function c(j){var _=o,I=i,z=l(j,_,I);o=j,i=z;var M={value:{},error:{},initialValue:{},key:{},valid:{},dirty:{}};for(var D of t){var U,P=(U=D.getSubject)===null||U===void 0?void 0:U.call(D);(!P||P.formId&&_.formId!==j.formId||P.status&&I.submissionStatus!==z.submissionStatus||P.pendingIntents&&_.pendingIntents!==j.pendingIntents||Qe(I.error,z.error,M.error,P.error)||Qe(I.initialValue,z.initialValue,M.initialValue,P.initialValue)||Qe(I.key,z.key,M.key,P.key,(F,Z)=>F!==Z)||Qe(I.valid,z.valid,M.valid,P.valid,u)||Qe(I.dirty,z.dirty,M.dirty,P.dirty,u)||Qe(I.value,z.value,M.value,P.value))&&D.callback()}}function u(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return j!==_}function d(){return JSON.stringify({validated:o.validated})}function f(j){var _=j.target,I=j.submitter;rt(_===a(),"The submit event is dispatched by form#".concat(_.id," instead of form#").concat(r.formId));var z=ed(_,I),M={formData:z,action:qu(j),encType:Gu(j),method:Ku(j)};if(typeof r?.onValidate>"u")return M;var D=r.onValidate({form:_,formData:z,submitter:I});if(D.status==="success"||D.error!==null){var U=D.reply();N(se(se({},U),{},{status:U.status!=="success"?U.status:void 0}))}return se(se({},M),{},{submission:D})}function m(j){var _=a(),I=j.target;return!_||!xt(I)||I.form!==_||!I.form.isConnected||I.name===""?null:I}function g(j,_){var{shouldValidate:I="onSubmit",shouldRevalidate:z=I}=r,M=o.validated[j.name];return M?z===_&&(_==="onInput"||o.isValueUpdated):I===_}function x(j){var _=new FormData(j),I=_o(_);c(se(se({},o),{},{isValueUpdated:!0,value:I.payload}))}function y(j){var _=m(j);!_||!_.form||(j.defaultPrevented||!g(_,"onInput")?x(_.form):T({type:"validate",payload:{name:_.name}}))}function w(j){var _=m(j);!_||j.defaultPrevented||!g(_,"onBlur")||T({type:"validate",payload:{name:_.name}})}function v(){s.clear(),c(rs(r,!0))}function h(j){var _=a();j.type!=="reset"||j.target!==_||j.defaultPrevented||v()}function N(j){var _,I,z=a();if(!j.initialValue){v();return}var M=Object.entries((_=j.error)!==null&&_!==void 0?_:{}).reduce((F,Z)=>{var[B,H]=Z,q=H===null?o.error[B]:H;return q&&(F[B]=q),F},{}),D=j.intent?o.pendingIntents.filter(F=>!s.has(F)).concat(j.intent):o.pendingIntents,U=se(se({},o),{},{pendingIntents:D,isValueUpdated:!1,submissionStatus:j.status,value:j.initialValue,validated:se(se({},o.validated),(I=j.state)===null||I===void 0?void 0:I.validated),error:M});if(Po(U,j.intent,j.fields,!0),c(U),z&&j.status==="error"){for(var P of z.elements)if(xt(P)&&o.error[P.name]){P.focus();break}}}function A(j){var _=r.formId,I=r.lastResult;Object.assign(r,j),r.formId!==_?v():j.lastResult&&j.lastResult!==I&&N(j.lastResult)}function C(j,_){var I={callback:j,getSubject:_};return t.push(I),()=>{t=t.filter(z=>z!==I)}}function R(){return i}function T(j){var _=a(),I=document.createElement("button"),z=k(j);I.name=z.name,I.value=z.value,I.hidden=!0,I.formNoValidate=!0,_?.appendChild(I),Yu(_,I),_?.removeChild(I)}function k(j){return{name:jt,value:sd(j),form:r.formId,formNoValidate:!0}}function S(j){var _=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return T({type:j,payload:z})};return Object.assign(_,{getButtonProps(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return k({type:j,payload:I})}})}function L(){var j=new MutationObserver(_=>{var I=a();if(I)for(var z of _){var M=z.type==="childList"?[...z.addedNodes,...z.removedNodes]:[z.target];
6for(var D of M){var U=xt(D)?D:D instanceof HTMLElement?D.querySelector("input,select,textarea"):null;if(U?.form===I){x(I);return}}}});return j.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["form","name"]}),()=>{j.disconnect()}}function b(j){var _=a();if(_)for(var I of j){switch(I.type){case"update":{var z=$e(I.payload.name,I.payload.index),M=je(z);for(var D of _.elements)if(xt(D)){var U=rr(D.name,M);if(U){var P=ot(I.payload.value,U),F=typeof P=="string"||Array.isArray(P)&&P.every(Q=>typeof Q=="string")?P:void 0;(typeof F<"u"||z===""&&U.length>1)&&(es(D,{value:F??null}),D.dataset.conform=Me())}}break}case"reset":{var Z=$e(I.payload.name,I.payload.index);for(var B of _.elements)if(xt(B)&&B.name&&ut(B.name,Z)){var H=ot(o.defaultValue,B.name),q=typeof H=="string"||Array.isArray(H)&&H.every(Q=>typeof Q=="string")?H:void 0;if(typeof q>"u"&&!B.dataset.conform&&"defaultValue"in B&&!Qu(B))continue;es(B,{defaultValue:q,value:q??null}),B.dataset.conform=Me()}break}}s.add(I)}}return{getFormId(){return o.formId},submit:f,onReset:h,onInput:y,onBlur:w,onUpdate:A,validate:S("validate"),reset:S("reset"),update:S("update"),insert:S("insert"),remove:S("remove"),reorder:S("reorder"),runSideEffect:b,subscribe:C,getState:R,getSerializedState:d,observe:L}}function is(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,s)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?is(Object(r),!0).forEach(function(s){ud(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):is(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function ud(e,t,r){return t=pd(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dd(e,t){if(e==null)return{};var r={},s=Object.keys(e),o,i;for(i=0;i<s.length;i++)o=s[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function fd(e,t){if(e==null)return{};var r=dd(e,t),s,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)s=i[o],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(r[s]=e[s])}return r}function md(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pd(e){var t=md(e,"string");return typeof t=="symbol"?t:String(t)}var xd=Symbol("wrapped");function hd(e,t){var r=p.useCallback(s=>e.subscribe(s,()=>t?.current),[e,t]);return p.useSyncExternalStore(r,e.getState,e.getState)}function gd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=p.useRef(e);return t.current=e,t}function st(e,t,r,s){if(t==="status"||t==="formId"||t==="pendingIntents")e.current[t]=!0;else if(typeof r<"u"&&typeof s<"u"){var o,i;e.current[t]=be(be({},e.current[t]),{},{[r]:((o=(i=e.current[t])===null||i===void 0?void 0:i[r])!==null&&o!==void 0?o:[]).concat(s)})}}function Oo(e,t,r){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",o=s?"".concat(e.getFormId(),"-").concat(s):e.getFormId(),i=e.getState();return new Proxy({id:o,name:s,errorId:"".concat(o,"-error"),descriptionId:"".concat(o,"-description"),get defaultValue(){var a=this.initialValue;if(typeof a=="string")return a;
6if(Array.isArray(a))return a[0]},get defaultOptions(){var a=this.initialValue;if(typeof a=="string")return[a];if(Array.isArray(a)&&a.every(l=>typeof l=="string"))return a},get defaultChecked(){if(this.initialValue==="on")return!0},get initialValue(){return i.initialValue[s]},get value(){return i.value[s]},get errors(){return i.error[s]},get key(){return i.key[s]},get valid(){return i.valid[s]},get dirty(){return i.dirty[s]},get allErrors(){if(s==="")return i.error;var a={};for(var[l,c]of Object.entries(i.error))ut(l,s)&&(a[l]=c);return a},get getFieldset(){return()=>new Proxy({},{get(a,l,c){return typeof l=="string"?Ro(e,t,r,s,l):Reflect.get(a,l,c)}})}},{get(a,l,c){if(i===r)switch(l){case"id":case"errorId":case"descriptionId":st(t,"formId");break;case"key":case"initialValue":case"value":case"valid":case"dirty":st(t,l,"name",s);break;case"errors":case"allErrors":st(t,"error",l==="errors"?"name":"prefix",s);break}return Reflect.get(a,l,c)}})}function Ro(e,t,r){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",o=arguments.length>4?arguments[4]:void 0,i=typeof o>"u"?s:We([...je(s),o]);return new Proxy({},{get(a,l,c){var u,d=Oo(e,t,r,i),f=e.getState();switch(l){case"formId":return f===r&&st(t,"formId"),e.getFormId();case"required":case"minLength":case"maxLength":case"min":case"max":case"pattern":case"step":case"multiple":case"accept":return(u=f.constraint[i])===null||u===void 0?void 0:u[l];case"getFieldList":return()=>{var m,g=(m=f.initialValue[i])!==null&&m!==void 0?m:[];if(f===r&&st(t,"initialValue","name",i),!Array.isArray(g))throw new Error("The initial value at the given name is not a list");return Array(g.length).fill(0).map((x,y)=>Ro(e,t,r,i,y))}}return Reflect.get(d,l,c)}})}function vd(e,t,r,s){return new Proxy({},{get(o,i,a){var l=Oo(e,t,r),c=e.getState();switch(i){case"context":return{[xd]:e};case"status":return c===r&&st(t,"status"),c.submissionStatus;case"validate":case"update":case"reset":case"insert":case"remove":case"reorder":return e[i];case"onSubmit":return e.submit;case"noValidate":return s}return Reflect.get(l,i,a)}})}function yd(e){var{onSubmit:t}=e,r=cd(e);return be(be({},r),{},{submit(s){var o=s.nativeEvent,i=r.submit(o);if(!i.submission||i.submission.status==="success"||i.submission.error===null){if(!i.formData.has(jt)){var a;(a=t)===null||a===void 0||a(s,i)}}else s.preventDefault()},onUpdate(s){t=s.onSubmit,r.onUpdate(s)}})}var bd=["id"],Zn=typeof document>"u"?p.useEffect:p.useLayoutEffect;function wd(e){var t=p.useId();return e??t}function jd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,[t,r]=p.useState(e);return Zn(()=>{t||r(!0)},[t]),t}function kd(e){var{id:t}=e,r=fd(e,bd),s=wd(t),[o]=p.useState(()=>yd(be(be({},r),{},{formId:s})));Zn(()=>{var u=o.observe();return document.addEventListener("input",o.onInput),document.addEventListener("focusout",o.onBlur),document.addEventListener("reset",o.onReset),()=>{u(),document.removeEventListener("input",o.onInput),document.removeEventListener("focusout",o.onBlur),document.removeEventListener("reset",o.onReset)}},[o]),Zn(()=>{o.onUpdate(be(be({},r),{},{formId:s}))});var i=gd({pendingIntents:!0}),a=hd(o,i),l=jd(e.defaultNoValidate),c=vd(o,i,a,l);return p.useEffect(()=>{o.runSideEffect(a.pendingIntents)},[o,a.pendingIntents]),[c,c.getFieldset()]}function dt(e){for(var t in e)e[t]===void 0&&delete e[t];return e}function zo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof t.ariaAttributes<"u"&&!t.ariaAttributes)return{};var s=t.ariaInvalid==="allErrors"?!e.valid:typeof e.errors<"u",o=t.ariaDescribedBy;return dt({"aria-invalid":r&&s||void 0,"aria-describedby":s?"".concat(e.errorId," ").concat(o??"").trim():o})}function Nd(e,t){return dt(be({id:e.id,onSubmit:e.onSubmit,noValidate:e.noValidate},zo(e,t)))}function Sd(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return dt(be({id:e.id,name:e.name,form:e.formId},zo(e,t,r)))}function Mo(e,t){return dt(be({key:void 0,required:e.required||void 0},Sd(e,t,!0)))}function Id(e,t){var r=be(be({},Mo(e,t)),{},{type:t.type,minLength:e.minLength,maxLength:e.maxLength,min:e.min,max:e.max,step:e.step,pattern:e.pattern,multiple:e.multiple,accept:e.accept});return(typeof t.value>"u"||t.value)&&(t.type==="checkbox"||t.type==="radio"?(r.value=typeof t.value=="string"?t.value:"on",r.defaultChecked=Array.isArray(e.initialValue)?e.initialValue.includes(t.value):e.initialValue===r.value):typeof e.initialValue=="string"&&(r.defaultValue=e.initialValue)),dt(r)}function Cd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=be(be({},Mo(e,t)),{},{minLength:e.minLength,maxLength:e.maxLength});if(typeof t.value>"u"||t.value){var s;r.defaultValue=(s=e.initialValue)===null||s===void 0?void 0:s.toString()}return dt(r)}function as(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,s)}return r}function ee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
6t%2?as(Object(r),!0).forEach(function(s){Ed(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):as(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function Ed(e,t,r){return t=Ad(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Td(e,t){if(e==null)return{};var r={},s=Object.keys(e),o,i;for(i=0;i<s.length;i++)o=s[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Ld(e,t){if(e==null)return{};var r=Td(e,t),s,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)s=i[o],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(r[s]=e[s])}return r}function _d(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ad(e){var t=_d(e,"string");return typeof t=="symbol"?t:String(t)}var Pd=["required","minLength","maxLength","min","max","step","multiple","pattern","accept"];function Od(e){var t=new Map,r=[],s={},o={};function i(l,c){var u,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",f=t.get(l);if(typeof f<"u"){r.push({from:je(d),to:je(f)});return}t.set(l,d);var m=d!==""?(u=c[d])!==null&&u!==void 0?u:c[d]={required:!0}:{},g=l._zod.def;if(g.type==="object")for(var x in g.shape)i(g.shape[x],c,d?"".concat(d,".").concat(x):x);else if(g.type==="pipe")g.out._zod.def.type==="transform"&&i(g.in,c,d),i(g.out,c,d);else if(g.type==="intersection"){var y={},w={};i(g.left,y,d),i(g.right,w,d),Object.assign(c,y,w)}else if(g.type==="union")Object.assign(c,g.options.map(k=>{var S={};return i(k,S,d),S}).reduce((k,S)=>{var L=new Set([...Object.keys(k),...Object.keys(S)]),b={};for(var j of L){var _=k[j],I=S[j];if(_&&I){var z={};b[j]=z;for(var M of Pd)typeof _[M]<"u"&&typeof I[M]<"u"&&_[M]===I[M]&&(z[M]=_[M])}else b[j]=ee(ee(ee({},_),I),{},{required:!1})}return b}));else{if(d==="")throw new Error("Unsupported schema");if(g.type==="array")m.multiple=!0,i(g.element,c,"".concat(d,"[]"));else if(g.type==="string"){var v,h=l;if(h._zod.bag.minimum!=null&&(m.minLength=h._zod.bag.minimum),h._zod.bag.maximum!=null&&(m.maxLength=h._zod.bag.maximum),(v=h._zod.bag.patterns)!==null&&v!==void 0&&v.size){var N=Wu([...h._zod.bag.patterns]);N&&(m.pattern=N)}}else if(g.type==="optional")m.required=!1,i(g.innerType,c,d);else if(g.type==="nullable")i(g.innerType,c,d);else if(g.type==="default")m.required=!1,i(g.innerType,c,d);else if(g.type==="number"){var A=l;A._zod.bag.minimum!=null&&(m.min=A._zod.bag.minimum),A._zod.bag.maximum!=null&&(m.max=A._zod.bag.maximum)}else if(g.type==="enum")m.pattern=Object.keys(g.entries).map(k=>k.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")).join("|");else if(g.type==="tuple")for(var C=0;C<g.items.length;C++)i(g.items[C],c,"".concat(d,"[").concat(C,"]"));else if(g.type==="file"){var R=l;R._zod.bag.mime&&(m.accept=R._zod.bag.mime.join())}else if(g.type==="lazy"){var T=g.getter();i(T,c,d)}}t.delete(l)}function a(l){var c=typeof l=="string"?l:We(l);if(c in s)return s[c];var u=typeof l=="string"?je(l):l;for(var d of r){var f=rr(u,d.from);if(f!==null&&f.length>0)return a([...d.to,...f])}for(var m=u.length-1;m>=0;m--)if(typeof u[m]=="number")return u[m]="",a(u)}return i(e,s),new Proxy(s,{get(l,c,u){return typeof c!="string"?Reflect.get(l,c,u):c in o?o[c]:o[c]=a(c)}})}const Rd=K("ZodISODateTime",(e,t)=>{Ai.init(e,t),ce.init(e,t)});function zd(e){return Ei(Rd,e)}const Md=K("ZodISODate",(e,t)=>{Pi.init(e,t),ce.init(e,t)});function Dd(e){return Ti(Md,e)}const $d=K("ZodISOTime",(e,t)=>{Oi.init(e,t),ce.init(e,t)});function Fd(e){return Li($d,e)}const Bd=K("ZodISODuration",(e,t)=>{Ri.init(e,t),ce.init(e,t)});function Vd(e){return _i(Bd,e)}const Hd=(e,t)=>{zi.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Di(e,r)},flatten:{value:r=>Mi(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Ir,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Ir,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ie=K("ZodError",Hd,{Parent:Error}),Zd=$i(Ie),Ud=Bi(Ie),Wd=Fi(Ie),qd=Vi(Ie),Gd=Hi(Ie),Kd=Zi(Ie),Yd=Ui(Ie),Xd=Wi(Ie),Jd=qi(Ie),Qd=Gi(Ie),ef=Ki(Ie),tf=Yi(Ie),me=K("ZodType",(e,t)=>(Va.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),e.clone=(r,s)=>Ha(e,r,s),e.brand=()=>e,e.register=((r,s)=>(r.add(e,s),e)),e.parse=(r,s)=>Zd(e,r,s,{callee:e.parse}),e.safeParse=(r,s)=>Wd(e,r,s),e.parseAsync=async(r,s)=>Ud(e,r,s,{callee:e.parseAsync}),e.safeParseAsync=async(r,s)=>qd(e,r,s),e.spa=e.safeParseAsync,e.encode=(r,s)=>Gd(e,r,s),e.decode=(r,s)=>Kd(e,r,s),e.encodeAsync=async(r,s)=>Yd(e,r,s),e.decodeAsync=async(r,s)=>Xd(e,r,s),e.safeEncode=(r,s)=>Jd(e,r,s),e.safeDecode=(r,s)=>Qd(e,r,s),e.safeEncodeAsync=async(r,s)=>ef(e,r,s),e.safeDecodeAsync=async(r,s)=>tf(e,r,s),e.refine=(r,s)=>e.check(Gf(r,s)),e.superRefine=r=>e.check(Kf(r)),e.overwrite=r=>e.check(Za(r)),e.optional=()=>Wn(e),e.nullable=()=>us(e),e.nullish=()=>Wn(us(e)),e.nonoptional=r=>Ff(e,r),e.array=()=>Sf(e),e.or=r=>Tf([e,r]),e.and=r=>_f(e,r),e.transform=r=>an(e,xn(r)),e.default=r=>Mf(e,r),e.prefault=r=>$f(e,r),e.catch=r=>Vf(e,r),e.pipe=r=>an(e,r),e.readonly=()=>Uf(e),e.describe=r=>{const s=e.clone();return Ht.add(s,{description:r}),s},Object.defineProperty(e,"description",{get(){return Ht.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Ht.get(e);const s=e.clone();return Ht.add(s,r[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Do=K("_ZodString",(e,t)=>{no.init(e,t),me.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...s)=>e.check(Aa(...s)),e.includes=(...s)=>e.check(Pa(...s)),e.startsWith=(...s)=>e.check(Oa(...s)),e.endsWith=(...s)=>e.check(Ra(...s)),e.min=(...s)=>e.check(tn(...s)),e.max=(...s)=>e.check(ro(...s)),e.length=(...s)=>e.check(so(...s)),e.nonempty=(...s)=>e.check(tn(1,...s)),e.lowercase=s=>e.check(za(s)),e.uppercase=s=>e.check(Ma(s)),e.trim=()=>e.check(Da()),e.normalize=(...s)=>e.check($a(...s)),e.toLowerCase=()=>e.check(Fa()),e.toUpperCase=()=>e.check(Ba())}),nf=K("ZodString",(e,t)=>{no.init(e,t),Do.init(e,t),e.email=r=>e.check(Ji(rf,r)),e.url=r=>e.check(Qi(sf,r)),e.jwt=r=>e.check(ea(bf,r)),e.emoji=r=>e.check(ta(of,r)),e.guid=r=>e.check(Cr(ls,r)),e.uuid=r=>e.check(na(qt,r)),e.uuidv4=r=>e.check(ra(qt,r)),e.uuidv6=r=>e.check(sa(qt,r)),e.uuidv7=r=>e.check(oa(qt,r)),e.nanoid=r=>e.check(ia(af,r)),e.guid=r=>e.check(Cr(ls,r)),e.cuid=r=>e.check(aa(lf,r)),e.cuid2=r=>e.check(la(cf,r)),e.ulid=r=>e.check(ca(uf,r)),e.base64=r=>e.check(ua(gf,r)),e.base64url=r=>e.check(da(vf,r)),e.xid=r=>e.check(fa(df,r)),e.ksuid=r=>e.check(ma(ff,r)),e.ipv4=r=>e.check(pa(mf,r)),e.ipv6=r=>e.check(xa(pf,r)),e.cidrv4=r=>e.check(ha(xf,r)),e.cidrv6=r=>e.check(ga(hf,r)),e.e164=r=>e.check(va(yf,r)),e.datetime=r=>e.check(zd(r)),e.date=r=>e.check(Dd(r)),e.time=r=>e.check(Fd(r)),e.duration=r=>e.check(Vd(r))});function ht(e){return Xi(nf,e)}const ce=K("ZodStringFormat",(e,t)=>{ll.init(e,t),Do.init(e,t)}),rf=K("ZodEmail",(e,t)=>{cl.init(e,t),ce.init(e,t)}),ls=K("ZodGUID",(e,t)=>{ul.init(e,t),ce.init(e,t)}),qt=K("ZodUUID",(e,t)=>{dl.init(e,t),ce.init(e,t)}),sf=K("ZodURL",(e,t)=>{fl.init(e,t),ce.init(e,t)}),of=K("ZodEmoji",(e,t)=>{ml.init(e,t),ce.init(e,t)}),af=K("ZodNanoID",(e,t)=>{pl.init(e,t),ce.init(e,t)}),lf=K("ZodCUID",(e,t)=>{xl.init(e,t),ce.init(e,t)}),cf=K("ZodCUID2",(e,t)=>{hl.init(e,t),ce.init(e,t)}),uf=K("ZodULID",(e,t)=>{gl.init(e,t),ce.init(e,t)}),df=K("ZodXID",(e,t)=>{vl.init(e,t),ce.init(e,t)}),ff=K("ZodKSUID",(e,t)=>{yl.init(e,t),ce.init(e,t)}),mf=K("ZodIPv4",(e,t)=>{bl.init(e,t),ce.init(e,t)}),pf=K("ZodIPv6",(e,t)=>{wl.init(e,t),ce.init(e,t)}),xf=K("ZodCIDRv4",(e,t)=>{jl.init(e,t),ce.init(e,t)}),hf=K("ZodCIDRv6",(e,t)=>{kl.init(e,t),ce.init(e,t)}),gf=K("ZodBase64",(e,t)=>{Nl.init(e,t),ce.init(e,t)}),vf=K("ZodBase64URL",(e,t)=>{Sl.init(e,t),ce.init(e,t)}),yf=K("ZodE164",(e,t)=>{Il.init(e,t),ce.init(e,t)}),bf=K("ZodJWT",(e,t)=>{Cl.init(e,t),ce.init(e,t)}),wf=K("ZodUnknown",(e,t)=>{El.init(e,t),me.init(e,t)});function cs(){return Ua(wf)}const jf=K("ZodNever",(e,t)=>{Tl.init(e,t),me.init(e,t)});function kf(e){return Wa(jf,e)}const Nf=K("ZodArray",(e,t)=>{Ll.init(e,t),me.init(e,t),e.element=t.element,e.min=(r,s)=>e.check(tn(r,s)),e.nonempty=r=>e.check(tn(1,r)),e.max=(r,s)=>e.check(ro(r,s)),e.length=(r,s)=>e.check(so(r,s)),e.unwrap=()=>e.element});function Sf(e,t){return Xa(Nf,e,t)}const If=K("ZodObject",(e,t)=>{wa.init(e,t),me.init(e,t),ja(e,"shape",()=>t.shape),e.keyof=()=>$o(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:cs()}),e.loose=()=>e.clone({...e._zod.def,catchall:cs()}),e.strict=()=>e.clone({...e._zod.def,catchall:kf()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>ka(e,r),e.safeExtend=r=>Na(e,r),e.merge=r=>Sa(e,r),e.pick=r=>Ia(e,r),e.omit=r=>Ca(e,r),e.partial=(...r)=>Ea(Fo,e,r[0]),e.required=(...r)=>Ta(Bo,e,r[0])});function Cf(e,t){const r={type:"object",get shape(){return La(this,"shape",e?_a(e):{}),this.shape},...Ue(t)};return new If(r)}const Ef=K("ZodUnion",(e,t)=>{Qa.init(e,t),me.init(e,t),e.options=t.options});function Tf(e,t){return new Ef({type:"union",options:e,...Ue(t)})}const Lf=K("ZodIntersection",(e,t)=>{el.init(e,t),me.init(e,t)});function _f(e,t){return new Lf({type:"intersection",left:e,right:t})}const Un=K("ZodEnum",(e,t)=>{ba.init(e,t),me.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(s,o)=>{const i={};for(const a of s)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Un({...t,checks:[],...Ue(o),entries:i})},e.exclude=(s,o)=>{const i={...t.entries};for(const a of s)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Un({...t,checks:[],...Ue(o),entries:i})}});function $o(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new Un({type:"enum",entries:r,...Ue(t)})}const Af=K("ZodLiteral",(e,t)=>{ya.init(e,t),me.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
6(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Pf(e,t){return new Af({type:"literal",values:Array.isArray(e)?e:[e],...Ue(t)})}const Of=K("ZodTransform",(e,t)=>{nl.init(e,t),me.init(e,t),e._zod.parse=(r,s)=>{if(s.direction==="backward")throw new rl(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(Er(i,r.value,t));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(Er(a))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(i=>(r.value=i,r)):(r.value=o,r)}});function xn(e){return new Of({type:"transform",transform:e})}const Fo=K("ZodOptional",(e,t)=>{qa.init(e,t),me.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Wn(e){return new Fo({type:"optional",innerType:e})}const Rf=K("ZodNullable",(e,t)=>{Ja.init(e,t),me.init(e,t),e.unwrap=()=>e._zod.def.innerType});function us(e){return new Rf({type:"nullable",innerType:e})}const zf=K("ZodDefault",(e,t)=>{sl.init(e,t),me.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Mf(e,t){return new zf({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():oo(t)}})}const Df=K("ZodPrefault",(e,t)=>{ol.init(e,t),me.init(e,t),e.unwrap=()=>e._zod.def.innerType});function $f(e,t){return new Df({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():oo(t)}})}const Bo=K("ZodNonOptional",(e,t)=>{Ga.init(e,t),me.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Ff(e,t){return new Bo({type:"nonoptional",innerType:e,...Ue(t)})}const Bf=K("ZodCatch",(e,t)=>{il.init(e,t),me.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Vf(e,t){return new Bf({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Hf=K("ZodPipe",(e,t)=>{tl.init(e,t),me.init(e,t),e.in=t.in,e.out=t.out});function an(e,t){return new Hf({type:"pipe",in:e,out:t})}const Zf=K("ZodReadonly",(e,t)=>{al.init(e,t),me.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Uf(e){return new Zf({type:"readonly",innerType:e})}const Wf=K("ZodLazy",(e,t)=>{Al.init(e,t),me.init(e,t),e.unwrap=()=>e._zod.def.getter()});function ds(e){return new Wf({type:"lazy",getter:e})}const qf=K("ZodCustom",(e,t)=>{_l.init(e,t),me.init(e,t)});function Gf(e,t={}){return Ka(qf,e,t)}function Kf(e){return Ya(e)}var Yf=["_zod"];function fs(e){if(!(typeof File<"u"&&e instanceof File&&e.name===""&&e.size===0))return e}function Xf(e){return e.trim()===""?NaN:Number(e)}function Jf(e){if(e==="on")return!0;throw new Error("Not a boolean")}function Qf(e){var t=new Date(e);if(isNaN(t.getTime()))throw new Error("Invalid date");return t}function ms(e){if(e.trim()==="")throw new Error("Empty bigint");return BigInt(e)}function ln(e,t){return typeof e!="string"?e:t(e)}function Gt(e,t){return r=>ln(r,s=>{var o=e(s);if(o!==void 0)try{return t(o)}catch{return o}})}function Kt(e,t){return r=>ln(r,s=>{try{return e(s)}catch{return t}})}function em(e,t){var r=e._zod.def;if(r.type==="string"||r.type==="enum")return t.string;if(r.type==="literal"){if(!("values"in r))return t.string;var s=[...r.values][0];return typeof s=="number"?t.number:typeof s=="boolean"?t.boolean:typeof s=="bigint"?t.bigint:t.string}else{if(r.type==="file")return t.file;if(r.type==="number")return t.number;if(r.type==="boolean")return t.boolean;if(r.type==="date")return t.date;if(r.type==="bigint")return t.bigint}}function tm(e){var t=e._zod.def;return t.type==="enum"||t.type==="literal"}function nm(e){switch(e._zod.def.type){case"string":case"number":case"boolean":case"date":case"bigint":return rm(e._zod.def.type);default:return e}}function rm(e){var t=e==="date"?r=>r instanceof Date:r=>typeof r===e;return xn((r,s)=>(t(r)||s.issues.push({input:r,code:"invalid_type",expected:e,received:typeof r,message:"Invalid input: expected ".concat(e,", received ").concat(typeof r)}),r))}function gt(e,t){var r=an(xn(e),t);return t._zod.optin&&(r._zod.optin=t._zod.optin),t._zod.optout&&(r._zod.optout=t._zod.optout),r}function Qt(e){var t=e._zod.def;if(t.type==="optional"||t.type==="nonoptional"||t.type==="default"||t.type==="prefault"||t.type==="catch"||t.type==="nullable")return Qt(t.innerType);if(t.type==="pipe"){var r=t;return r.in._zod.def.type==="transform"?Qt(r.out):Qt(r.in)}return t.type==="array"||t.type==="object"}function sm(e){var t=Object.create(Object.getPrototypeOf(e)),r=Object.getOwnPropertyDescriptors(e),s=Ld(r,Yf);return Object.defineProperties(t,s),Object.defineProperty(t,"_zod",{value:Object.create(e._zod,{optin:{value:"optional"}})}),t}function ps(e,t){var r=pe(e,t);return e._zod.optin!=="optional"&&Qt(e)?sm(r):r}function pe(e,t){var r,s=t.resolved.get(e);if(s)return s;if(t.resolving.has(e))return ds(()=>pe(e,t));t.resolving.add(e);var o=e,i=e._zod,a=i.def,l=i.constr,c=t.coerce(e),u=t.skipValidation&&!tm(e)?nm(e):e;if(c)o=gt(c,u);else if(u!==e)o=u;else if(a.type==="array"){var d=t.skipValidation?ee(ee({},a),{},{checks:void 0}):a;o=gt(h=>Array.isArray(h)?h:typeof h>"u"||t.stripEmptyValue&&typeof t.stripEmptyValue(h)>"u"?[]:[h],new l(ee(ee({},d),{},{element:pe(a.element,t)})))}else if(a.type==="object"){var f=t.skipValidation?ee(ee({},a),{},{catchall:void 0}):a;o=gt(h=>typeof h>"u"?{}:h,new l(ee(ee({},f),{},{shape:Object.fromEntries(Object.entries(a.shape).map(h=>{var[N,A]=h;return[N,ps(A,t)]}))})))}else if(a.type==="optional"||a.type==="nonoptional"){var m=pe(a.innerType,t),g=new l(ee(ee({},a),{},{innerType:m}));o=t.stripEmptyValue?gt(t.stripEmptyValue,g):g}else if(a.type==="default"||a.type==="prefault")if(t.skipDefaults)o=Wn(pe(a.innerType,t));else{var x=a.defaultValue,y=x!==""?pe(a.innerType,t):a.innerType,w=new l(ee(ee({},a),{},{innerType:y}));o=t.stripEmptyValue?gt(t.stripEmptyValue,w):w}else if(a.type==="catch")o=new l(ee(ee({},a),{},{innerType:pe(a.innerType,t)}));else if(a.type==="intersection")o=new l(ee(ee({},a),{},{left:pe(a.left,t),right:pe(a.right,t)}));else if(a.type==="union"&&(r=[...i.traits][0])!==null&&r!==void 0&&r.includes("DiscriminatedUnion"))o=an(xn(h=>typeof h>"u"?{}:h),new l(ee(ee({},a),{},{options:a.options.map(h=>{var N=h._zod.def,A=T=>(T._zod.propValues=h._zod.propValues,T._zod.disc=h._zod.disc,T);if(N.type!=="object")return A(pe(h,t));
6var C=t.skipValidation?ee(ee({},N),{},{catchall:void 0}):N,R=new h._zod.constr(ee(ee({},C),{},{shape:Object.fromEntries(Object.entries(N.shape).map(T=>{var[k,S]=T;return[k,ps(S,t)]}))}));return A(R)})})));else if(a.type==="union")o=new l(ee(ee({},a),{},{options:a.options.map(h=>pe(h,t))}));else if(a.type==="tuple")o=new l(ee(ee({},a),{},{items:a.items.map(h=>pe(h,t))}));else if(a.type==="nullable")o=new l(ee(ee({},a),{},{innerType:pe(a.innerType,t)}));else if(a.type==="pipe")t.skipTransforms?o=pe(a.in,t):o=new l(ee(ee({},a),{},{in:pe(a.in,t),out:pe(a.out,t)}));else if(a.type==="lazy"){var v=a.getter();o=ds(()=>pe(v,t))}return t.resolving.delete(e),e!==o&&t.resolved.set(e,o),o}function om(e){var t,r,s,o,i=(t=void 0)!==null&&t!==void 0?t:x=>x===""?void 0:x,a=(r=void 0)!==null&&r!==void 0?r:Xf,l=(s=void 0)!==null&&s!==void 0?s:Jf,c=(o=void 0)!==null&&o!==void 0?o:Qf,u={string:x=>ln(x,i),file:fs,number:Gt(i,a),boolean:Gt(i,l),date:Gt(i,c),bigint:Gt(i,ms)},d={number:Kt(a,NaN),boolean:Kt(l,!1),date:Kt(c,new Date("")),bigint:Kt(ms,0n)},f=(x,y)=>{var w;return(w=em(x,y))!==null&&w!==void 0?w:null},m=new WeakMap,g=new WeakMap;return{coerceFormValue(x){var y=m.get(x);return y||(y=pe(x,{resolved:new Map,resolving:new Set,stripEmptyValue(w){return fs(ln(w,i))},coerce(w){return f(w,u)}}),m.set(x,y)),y},coerceStructure(x){var y=g.get(x);return y||(y=pe(x,{resolved:new Map,resolving:new Set,coerce(w){return f(w,d)},skipValidation:!0,skipDefaults:!0,skipTransforms:!0}),g.set(x,y)),y}}}var{coerceFormValue:im}=om();function am(e,t){var r={};for(var s of e.issues){var o=We(s.path.map(a=>{if(typeof a=="symbol")throw new Error("@conform-to/zod does not support symbol paths. Please use a string or number instead.");return a}));switch(s.message){case xs.VALIDATION_UNDEFINED:return null;case xs.VALIDATION_SKIPPED:r[o]=null;break;default:{var i=r[o];i!==null&&(i?r[o]=i.concat(s):r[o]=[s]);break}}}return Object.entries(r).reduce((a,l)=>{var[c,u]=l;return a[c]=u?t(u):null,a},{})}function lm(e,t){return td(e,{resolve(r,s){var o=t.error,i=typeof t.schema=="function"?t.schema(s):t.schema,a=t.disableAutoCoercion?i:im(i),l=c=>{var u;return{value:c.success?c.data:void 0,error:c.success?void 0:am(c.error,(u=t.formatError)!==null&&u!==void 0?u:d=>d.map(f=>f.message))}};return t.async?Pl(a,r,{error:o}).then(c=>l(c)):l(Ol(a,r,{error:o}))}})}var xs={VALIDATION_SKIPPED:"__skipped__",VALIDATION_UNDEFINED:"__undefined__"};function hs({invalid:e,className:t,children:r,...s}){return n.jsx("div",{"data-invalid":e||void 0,className:$("group/field flex flex-col gap-2xs",t),...s,children:r})}function Ln({id:e,errors:t,className:r}){return!t||t.length===0?null:n.jsx("p",{id:e,className:$("font-functional text-body-sm text-terracotta",r),children:t.join(", ")})}function gs({errors:e,className:t}){return!e||e.length===0?null:n.jsx("div",{role:"alert","aria-live":"polite",className:$("font-functional text-body-sm text-terracotta",t),children:e.join(", ")})}const Vo=$("relative w-full border-warm-black/20 border-b","has-[:focus]:border-warm-black has-[:focus]:border-b-2","has-[:is(input,textarea):not(:placeholder-shown)]:border-warm-black has-[:is(input,textarea):not(:placeholder-shown)]:border-b-2","group-data-invalid/field:border-terracotta"),Ho=$("peer w-full bg-transparent pr-2xs font-functional text-body-lg text-warm-black","placeholder:text-transparent focus:outline-none");function Zo({htmlFor:e,restPosition:t,children:r}){return n.jsx("label",{htmlFor:e,className:$("pointer-events-none absolute top-0 left-0 text-body-lg text-warm-black/64","transition-[color,transform,font-size] duration-200 ease-out",t,"peer-focus:-translate-y-2xs peer-focus:font-semibold peer-focus:text-body-sm peer-focus:text-warm-black","peer-not-placeholder-shown:-translate-y-2xs peer-not-placeholder-shown:font-semibold peer-not-placeholder-shown:text-body-sm peer-not-placeholder-shown:text-warm-black"),children:r})}function cm({className:e,label:t,id:r,...s}){return n.jsxs("div",{className:Vo,children:[n.jsx("input",{id:r,placeholder:" ",className:$(Ho,"pt-xs pb-2xs",e),...s}),n.jsx(Zo,{htmlFor:r,restPosition:"translate-y-xs",children:t})]})}function um({className:e,label:t,id:r,...s}){return n.jsxs("div",{className:Vo,children:[n.jsx("textarea",{id:r,placeholder:" ",className:$(Ho,"min-h-6xl resize-y pt-lg pb-2xs",e),...s}),n.jsx(Zo,{htmlFor:r,restPosition:"translate-y-lg",children:t})]})}function dm({id:e,children:t}){return n.jsx("p",{id:e,className:"font-functional text-body-sm text-warm-black/85",children:t})}function fm({name:e,options:t,defaultValue:r,"aria-labelledby":s}){return n.jsx("div",{role:"radiogroup","aria-labelledby":s,className:"mt-sm flex flex-wrap gap-2xs",children:t.map(o=>n.jsxs("label",{className:$("flex min-h-xl cursor-pointer items-center justify-center rounded-full px-sm py-2xs font-functional font-semibold text-body-sm","bg-off-white text-warm-black transition-colors hover:bg-warm-black/20","has-[:checked]:bg-clay","has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-warm-black"),children:[n.jsx("input",{type:"radio",name:e,value:o,defaultChecked:r===o,className:"sr-only"}),o]},o))})}function mm({fields:e,meta:t}){const r=[];for(let s=0;s<e.length;s++){const o=e[s];if(o)if(o.kind==="input"&&o.group){const i=o.group,a=[o];for(;s+1<e.length;){const l=e[s+1];if(l&&l.kind==="input"&&l.group===i)a.push(l),s++;else break}r.push(a.length>1?a:o)}else r.push(o)}return n.jsx(n.Fragment,{children:r.map(s=>Array.isArray(s)?n.jsx("div",{className:"grid desktop:grid-cols-2 grid-cols-1 gap-lg",children:s.map(o=>n.jsx(ys,{field:o,meta:t},o.name))},`row-${s.map(o=>o.name).join("-")}`):n.jsx(ys,{field:s,meta:t},s.name))})}function vs(e,t){return t?`${e} *`:e}function ys({field:e,meta:t}){const r=t[e.name];if(!r)return null;const s=r.errors??null;if(e.kind==="input"){const i=vs(e.label,e.required);return n.jsxs(hs,{invalid:!!s,children:[n.jsx(cm,{...Id(r,{type:e.type}),label:i,autoComplete:e.autoComplete}),n.jsx(Ln,{id:r.errorId,errors:s})]})}if(e.kind==="textarea"){const i=vs(e.label,e.required);return n.jsxs(hs,{invalid:!!s,children:[n.jsx(um,{...Cd(r),label:i,rows:3}),e.helperText&&n.jsx(dm,{children:e.helperText}),n.jsx(Ln,{id:r.errorId,errors:s})]})}const o=`${r.id}-legend`;return n.jsxs("fieldset",{className:"flex flex-col gap-sm",children:[n.jsx("legend",{id:o,className:"font-functional text-body-lg text-warm-black",children:e.label}),n.jsx(fm,{name:r.name,options:e.options,defaultValue:r.initialValue,"aria-labelledby":o}),n.jsx(Ln,{id:r.errorId,errors:s})]})}
6function pm({title:e,subtitle:t,icon:r,selectLabel:s="Select",onClick:o,className:i}){return n.jsxs("button",{type:"button",onClick:o,className:$("group flex desktop:h-9xl cursor-pointer flex-col justify-between desktop:gap-lg gap-2xl bg-warm-black/4 p-lg text-left text-warm-black transition-colors hover:bg-warm-black/8",i),children:[n.jsxs("span",{className:"flex items-center gap-xs",children:[n.jsx(St,{icon:r,bg:"bg-transparent",iconColor:"text-warm-black",iconSize:"size-lg",className:"size-lg shrink-0"}),n.jsx("span",{className:"font-functional text-heading-md",children:e})]}),n.jsxs("span",{className:"flex items-end justify-between gap-lg",children:[t&&n.jsx("span",{className:"min-w-0 flex-1 font-functional text-body-lg",children:t}),n.jsx(Se,{as:"span",className:"shrink-0 desktop:translate-x-sm desktop:opacity-0 transition duration-300 ease-out desktop:group-hover:translate-x-0 desktop:group-hover:opacity-100 desktop:group-focus-visible:translate-x-0 desktop:group-focus-visible:opacity-100",children:s})]})]})}function xm({className:e}){return n.jsxs("p",{className:$("font-functional text-body-sm text-warm-black/64",e),children:["This site is protected by reCAPTCHA and the Google"," ",n.jsx("a",{href:"https://policies.google.com/privacy",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"Privacy Policy"})," ","and"," ",n.jsx("a",{href:"https://policies.google.com/terms",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"Terms of Service"})," ","apply."]})}const qn="recaptchaToken",hm="submit",bs="We couldn't verify you're human. Please refresh and try again.",gm=5e3,vm=100;function ym(e=gm){return window.grecaptcha?Promise.resolve(window.grecaptcha):new Promise(t=>{const r=Date.now(),s=setInterval(()=>{window.grecaptcha?(clearInterval(s),t(window.grecaptcha)):Date.now()-r>=e&&(clearInterval(s),t(null))},vm)})}async function bm(e){if(typeof window>"u")return console.warn("[recaptcha] Token requested outside the browser."),null;const t=await ym();if(!t)return console.warn("[recaptcha] Script never became available; it may be blocked."),null;try{await new Promise(s=>t.ready(s));const r=await t.execute(e,{action:hm});return r||(console.warn("[recaptcha] Script returned an empty token."),null)}catch(r){return console.warn("[recaptcha] Failed to execute.",r),null}}function wm(){return yi("root")?.ENV?.RECAPTCHA_SITE_KEY}function jm({action:e,submit:t}){const r=wm(),[s,o]=p.useState(null),[i,a]=p.useState(!1),l=p.useRef(!1),c=p.useCallback(async u=>{if(!r)return;u.preventDefault();const d=u.currentTarget;if(!l.current){l.current=!0,a(!0),o(null);try{const f=await bm(r);if(!f){o(bs);return}const m=d.elements.namedItem(qn);if(!(m instanceof HTMLInputElement)){console.warn(`[recaptcha] The form has no ${qn} input; not submitting.`),o(bs);return}m.value=f,t(d,{method:"post",action:e})}finally{l.current=!1,a(!1)}}},[e,r,t]);return{siteKey:r,onSubmit:c,isVerifying:i,recaptchaError:s}}const ws=["firstName","lastName","email","phone","company","role"],tt={firstName:{label:"First Name",type:"text",required:!0,autoComplete:"given-name",group:"name"},lastName:{label:"Last Name",type:"text",required:!0,autoComplete:"family-name",group:"name"},email:{label:"Work Email",type:"email",required:!0,autoComplete:"email"},phone:{label:"Phone",type:"tel",required:!1,autoComplete:"tel"},company:{label:"Company / Firm",type:"text",required:!1,autoComplete:"organization",group:"org"},role:{label:"Your Role",type:"text",required:!1,autoComplete:"organization-title",group:"org"}},js=2e3;function Uo(e){const t=new Set;for(const r of e??[])r&&ws.includes(r)&&t.add(r);return ws.filter(r=>t.has(r))}function km(e){const t=Uo(e.fields),r=(e.topics??[]).map(i=>i?.trim()).filter(i=>!!i),o=[...t.map(i=>({kind:"input",name:i,label:tt[i].label,type:tt[i].type,required:tt[i].required,autoComplete:tt[i].autoComplete,group:tt[i].group}))];return r.length>0&&o.push({kind:"chips",name:"topic",label:e.topicLabel?.trim()||"Select a Topic",options:r}),o.push({kind:"textarea",name:"message",label:"Message",required:!0,helperText:"Tell us more about your inquiry"}),o}function Nm(e){const t=Uo(e.fields),r=(e.topics??[]).map(o=>o?.trim()).filter(o=>!!o),s={};for(const o of t){const i=tt[o];o==="email"?s[o]=i.required?ht({error:"Work email is required"}).min(1,"Work email is required").email("Enter a valid email address"):ht().email("Enter a valid email address").optional().or(Pf("").transform(()=>{})):s[o]=i.required?ht({error:`${i.label} is required`}).trim().min(1,`${i.label} is required`).max(200):ht().trim().max(200).optional()}return r.length>
60&&(s.topic=$o(r).optional()),s.message=ht({error:"Please enter a message"}).trim().min(1,"Please enter a message").max(js,`Message can't be longer than ${js} characters`),Cf(s)}const ks="/forms/contact";function Sm({data:e}){const t=(e.cards??[]).filter(a=>!!a?.title),[r,s]=p.useState(null),o=r===null?null:t[r],{pathname:i}=bi();return n.jsxs("section",{className:"flex flex-col items-center gap-2xl bg-off-white desktop:px-2xl px-sm desktop:py-8xl py-2xl",children:[n.jsxs(le,{className:"flex w-full flex-col gap-lg",children:[e.title&&n.jsx("h2",{className:"font-headline text-display-md text-warm-black",children:e.title}),e.intro&&n.jsx("p",{className:"max-w-[520px] font-functional text-body-md text-warm-black",children:e.intro})]}),n.jsx(he,{className:"grid w-full desktop:grid-cols-3 grid-cols-1 gap-sm",children:t.map((a,l)=>n.jsx(pm,{title:a.title??"",subtitle:a.subtitle,icon:E(a.icon),onClick:()=>s(l)},a._key))}),n.jsx(mn,{open:r!==null,onOpenChange:a=>!a&&s(null),title:o?.formTitle??o?.title??"Contact form",children:o&&n.jsx(Im,{card:o,pagePath:i},o._key)})]})}function Ns({label:e}){const t=p.useRef(null),[r,s]=p.useState();return p.useEffect(()=>{const o=t.current;if(!o)return;const i=new ResizeObserver(([a])=>{a&&s(a.target.getBoundingClientRect().height)});return i.observe(o),()=>i.disconnect()},[]),n.jsxs("span",{className:"relative inline-flex items-center gap-2xs rounded-full bg-warm-black py-2xs pr-sm pl-2xs text-off-white",children:[n.jsx(Rt,{className:"shrink-0",style:r?{width:r,height:r}:void 0}),n.jsx("span",{ref:t,className:"font-functional text-label-sm",children:e})]})}function Im({card:e,pagePath:t}){const r=ue(E(e.tileColor)),s=(e.fields??[]).map(N=>E(N)).filter(N=>!!N),o=(e.topics??[]).map(N=>E(N)).filter(N=>!!N),i=p.useMemo(()=>({fields:s,topicLabel:E(e.topicLabel),topics:o}),[s,e.topicLabel,{fields:s,topicLabel:E(e.topicLabel),topics:o}]),a=p.useMemo(()=>Nm(i),[i]),l=p.useMemo(()=>km(i),[i]),c=wi(),u=c.data?.status==="success",{siteKey:d,onSubmit:f,isVerifying:m,recaptchaError:g}=jm({action:ks,submit:c.submit}),[x,y]=kd({id:`contact-${e._key}`,lastResult:u?void 0:c.data,constraint:Od(a),shouldValidate:"onSubmit",shouldRevalidate:"onInput",onValidate({formData:N}){return lm(N,{schema:a})},onSubmit:f}),w=xe(e.cta),v=Ne(e.cta)??"Visit",h=c.state!=="idle"||m;return n.jsxs("div",{className:"flex min-h-full flex-col",children:[n.jsxs("div",{className:"flex desktop:hidden items-center justify-between gap-sm p-sm",children:[n.jsx(Ns,{label:e.title??""}),n.jsx(Et,{})]}),n.jsxs("div",{className:"flex items-stretch",children:[n.jsx(St,{icon:E(e.icon),bg:r.bg,iconColor:"text-off-white",iconSize:"size-[70%]",className:"aspect-square w-1/2 shrink-0"}),n.jsxs("div",{className:"flex desktop:aspect-square w-1/2 flex-col justify-between gap-md bg-off-white desktop:p-lg p-sm",children:[n.jsxs("div",{className:"desktop:flex hidden items-center justify-between gap-sm",children:[n.jsx(Ns,{label:e.title??""}),n.jsx(Et,{})]}),n.jsxs("div",{className:"flex flex-col gap-md",children:[e.responseNote&&n.jsx("p",{className:"font-functional text-body-lg text-warm-black",children:e.responseNote}),w&&n.jsx(Se,{href:w,newTab:e.cta?.openInNewTab??void 0,arrowDirection:E(e.ctaArrowDirection),hoverEffect:"slide",className:"group text-warm-black",children:v})]})]})]}),n.jsx("div",{className:"flex grow flex-col gap-lg bg-white desktop:px-2xl px-lg py-lg",children:u?n.jsxs("div",{className:"flex flex-col gap-md py-lg",children:[n.jsx("p",{className:"font-functional text-heading-md text-warm-black",children:"Thank you!"}),n.jsx("p",{className:"font-functional text-body-lg text-warm-black/64",children:"Your message has been sent. We'll be in touch soon."}),n.jsx(Io,{className:"mt-sm flex min-h-3xl desktop:w-auto w-full cursor-pointer items-center justify-center desktop:self-start rounded-full bg-warm-black desktop:px-lg px-xs py-2xs font-functional text-label-md text-off-white",children:"Close"})]}):n.jsxs(n.Fragment,{children:[n.jsx("p",{className:"font-functional text-heading-md text-warm-black",children:e.formTitle}),n.jsxs(c.Form,{method:"post",action:ks,...Nd(x),className:"flex flex-col gap-lg",children:[n.jsx("input",{type:"hidden",name:"pagePath",value:t}),n.jsx("input",{type:"hidden",name:"cardKey",value:e._key}),n.jsx("input",{type:"text",name:"_gotcha",tabIndex:-1,autoComplete:"off","aria-hidden":!0,
6className:"hidden"}),d&&n.jsx("input",{type:"hidden",name:qn}),n.jsx(mm,{fields:l,meta:y}),n.jsx(gs,{errors:x.errors}),n.jsx(gs,{errors:g?[g]:null}),n.jsx(Le,{type:"submit",size:"lg",disabled:h,className:"mt-sm desktop:w-auto w-full desktop:self-start",children:h?"Sendingâ¦":"Submit"}),d&&n.jsx(xm,{})]})]})})]})}function Cm({card:e,wide:t=!1,showDescription:r=!0}){const{bg:s,text:o}=ue(E(e.backgroundColor)),i=xe(e.cta),a=e.cta?.openInNewTab,l=Ne(e.cta)??"Learn More",c=$("group/arrow-link flex flex-1 flex-col justify-between gap-2xl desktop:p-2xl p-lg text-left",t&&"desktop:flex-row desktop:items-end",s,o),u=n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:`flex flex-col gap-2xs ${t?"desktop:flex-1":""}`,children:[e.eyebrow&&n.jsx("p",{className:"font-functional text-body-sm",children:e.eyebrow}),e.title&&n.jsx("p",{className:"font-functional text-heading-md",children:e.title}),r&&e.description&&n.jsx("p",{className:"font-functional text-body-md",children:e.description})]}),i&&n.jsx(Se,{as:"span",arrowDirection:E(e.ctaArrowDirection),hoverEffect:"cross",children:l})]});return i?a||/^(https?:|mailto:|tel:)/.test(i)?n.jsx("a",{href:i,target:a?"_blank":void 0,rel:a?"noopener noreferrer":void 0,className:c,children:u}):n.jsx(Ge,{to:i,className:c,children:u}):n.jsx("div",{className:c,children:u})}function Em({data:e}){const t=e.image?.image?.imageFile,r=e.cards??[],s=xe(e.cta),o=Ne(e.cta)??"See all",i=r.length===1,a=r.length<3;return n.jsxs("section",{className:"flex desktop:flex-row flex-col bg-cool-pink",children:[n.jsxs("div",{className:"desktop:order-1 order-2 flex desktop:w-7/12 flex-col justify-between",children:[(e.title||s)&&n.jsxs(le,{className:"flex desktop:flex-row flex-col items-start desktop:justify-between desktop:gap-lg desktop:p-2xl p-lg",children:[e.title&&n.jsx("h2",{className:"desktop:mb-0 mb-6xl whitespace-pre-line font-headline text-display-lg text-warm-black",children:e.title}),s&&n.jsx(Le,{href:s,newTab:e.cta?.openInNewTab,variant:"fill",theme:"dark",size:"lg",children:o})]}),r.length>0&&n.jsx("div",{className:"flex desktop:flex-row flex-col",children:r.map((l,c)=>n.jsx(Cm,{card:l,wide:i,showDescription:a},l._key??c))})]}),n.jsx("div",{className:`relative desktop:order-2 order-1 ${i?"aspect-video":"aspect-square"} desktop:w-5/12 w-full overflow-hidden`,children:t?.asset?._ref&&n.jsx(ct,{speed:120,children:n.jsx(oe,{source:t,alt:e.image?.image?.alt,sizes:"(min-width: 64rem) 42vw, 100vw"})})})]})}function Wo(){const e=p.useRef(!0),t=p.useRef(null);return p.useEffect(()=>{const r=o=>{const i=t.current;t.current={x:o.clientX,y:o.clientY},!(i&&i.x===o.clientX&&i.y===o.clientY)&&(e.current=!0)},s=()=>{e.current=!1};return window.addEventListener("pointermove",r,{passive:!0,capture:!0}),window.addEventListener("scroll",s,{passive:!0,capture:!0}),()=>{window.removeEventListener("pointermove",r,{capture:!0}),window.removeEventListener("scroll",s,{capture:!0})}},[]),p.useCallback(()=>e.current,[])}const Tm=new Set(["coolPink","troveLime","offWhite"]),Lm=400;function Ss({colorKey:e,icon:t}){const{bg:r}=ue(e),s=Tm.has(e)?"text-warm-black":"text-off-white";return n.jsx("div",{className:$("flex size-full items-center justify-center p-lg",r),children:n.jsx(de,{svg:E(t),className:$("size-full",s)})})}function _m({brand:e,slideIndex:t,onActivate:r}){const s=E(e.name),o=E(e.description),i=xe(e.cta),a=Ne(e.cta)??"Download",l=e.cta?.openInNewTab??void 0,c=n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"flex flex-col gap-sm",children:[s&&n.jsx("h3",{className:"font-headline text-display-xs",children:s}),o&&n.jsx("p",{className:"desktop:hidden font-functional text-body-md xl:block",children:o})]}),i&&n.jsx(Se,{as:"span",icon:n.jsx(po,{className:"size-md shrink-0"}),className:"shrink-0 transition-opacity group-hover:opacity-70",children:a})]}),u="group flex desktop:flex-col items-start desktop:justify-start justify-between desktop:gap-sm gap-lg border-off-white border-t pt-sm text-left xl:gap-lg";return i?l||/^(https?:|mailto:|tel:)/.test(i)?n.jsx("a",{href:i,target:l?"_blank":void 0,rel:l?"noopener noreferrer":void 0,className:u,"data-sli
6de-index":t,onFocus:r,children:c}):n.jsx(Ge,{to:i,className:u,"data-slide-index":t,onFocus:r,children:c}):n.jsx("article",{"data-slide-index":t,className:u,children:c})}function Am({data:e}){const t=E(e.heading),r=E(e.intro),s=(e.brands??[]).filter(A=>!!E(A.name)),o=xe(e.cta),i=Ne(e.cta)??"Download all",a=E(e.defaultIcon),l=E(e.defaultBackgroundColor)??"",c=!!a,u=c?1:0,[d,f]=p.useState(null),m=p.useRef(null),g=p.useRef(null),x=p.useRef(null);p.useEffect(()=>()=>{x.current&&clearTimeout(x.current)},[]);const y=Wo(),w=p.useCallback(A=>{if(A!==g.current&&(g.current=A,x.current&&(clearTimeout(x.current),x.current=null),A!==m.current)){if(m.current===null){m.current=A,f(A);return}x.current=setTimeout(()=>{m.current=A,x.current=null,f(A)},Lm)}},[]),v=p.useCallback(A=>{if(A.pointerType!=="mouse"||!y())return;const C=A.target.closest("[data-slide-index]");w(C?Number(C.dataset.slideIndex):null)},[w,y]),h=p.useCallback(()=>{y()&&w(null)},[w,y]);if(!s.length)return null;const N=d??0;return n.jsxs("section",{className:"flex desktop:min-h-[42vw] desktop:flex-row flex-col text-off-white",onPointerMove:v,onPointerLeave:h,children:[n.jsxs(Ee,{index:N,reverse:!0,inDuration:ie.base,className:"relative aspect-square desktop:aspect-auto desktop:w-[42%] w-full shrink-0",children:[c&&n.jsx(Ss,{colorKey:l,icon:a},"default"),s.map((A,C)=>n.jsx(Ss,{colorKey:E(A.backgroundColor)??"",icon:A.icon},A._key??C))]}),n.jsxs("div",{className:"flex flex-1 flex-col justify-between desktop:gap-lg gap-6xl bg-warm-black p-sm desktop:px-2xl desktop:py-xl py-2xl",children:[n.jsxs(le,{className:"flex flex-col desktop:gap-lg gap-md",children:[n.jsxs("div",{className:"flex items-start justify-between gap-lg",children:[t&&n.jsx("h2",{className:"font-headline text-display-lg",children:t}),o&&n.jsx("div",{className:"desktop:block hidden shrink-0",children:n.jsx(Le,{variant:"fill",theme:"light",size:"lg",href:o,newTab:e.cta?.openInNewTab,children:i})})]}),r&&n.jsx("p",{className:"max-w-[480px] font-functional text-body-lg",children:r})]}),n.jsxs("div",{className:"flex flex-col gap-2xl",children:[n.jsx(he,{className:"grid desktop:grid-cols-2 grid-cols-1 desktop:gap-lg gap-2xl",children:s.map((A,C)=>n.jsx(_m,{brand:A,slideIndex:C+u,onActivate:()=>w(C+u)},A._key??C))}),o&&n.jsx(Le,{className:"desktop:hidden w-full justify-center",variant:"fill",theme:"light",size:"md",href:o,newTab:e.cta?.openInNewTab,children:i})]})]})]})}const Pm={hoverPink:"bg-cool-pink",hoverWhite:"bg-white",static:"bg-white"};function Om({href:e,title:t,date:r,image:s,imageAlt:o,logo:i,logoAlt:a,newTab:l=!0,variant:c="hoverPink"}){const u=c==="static";return n.jsxs("a",{href:e,target:l?"_blank":void 0,rel:l?"noreferrer":void 0,className:"group relative flex w-full flex-col overflow-hidden text-left",children:[n.jsxs("div",{className:"relative aspect-[4/3] w-full overflow-hidden",children:[n.jsx(oe,{source:s,alt:o??t,sizes:"(min-width: 64rem) 33vw, 100vw"}),i?.asset?._ref&&n.jsx("div",{className:"absolute top-0 left-0 size-6xl overflow-hidden bg-warm-black",children:n.jsx(oe,{source:i,alt:a??"",sizes:"96px"})})]}),n.jsxs("div",{className:$("relative flex items-end gap-lg p-sm",u&&"bg-subtle-off-white"),children:[n.jsx(lt,{color:Pm[c],origin:"top"}),n.jsxs("div",{className:"relative flex min-w-0 flex-1 flex-col gap-md text-warm-black",children:[r&&n.jsx("p",{className:"font-functional text-body-md",children:r}),n.jsx("p",{className:"line-clamp-3 min-h-[3lh] font-functional text-heading-md",children:t}),n.jsxs("span",{className:"flex desktop:hidden items-center gap-2xs font-functional text-label-sm",children:["Read more",n.jsx(ge,{className:"size-md"})]})]}),u?n.jsx(ge,{className:"relative desktop:block hidden size-lg shrink-0 text-warm-black"}):n.jsx(Ke,{className:"desktop:block hidden text-warm-black"})]})]})}const Is=6,Rm=[{value:"latest",label:"Latest"},{value:"oldest",label:"Oldest"}];function zm({className:e}){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",strokeWidth:2,"aria-hidden":"true",className:e,children:n.jsx("path",{d:"M12 5v14M5 12h14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})})}function Mm({data:e}){const t=(e.articles??[]).filter(d=>!!(d?._id&&d.title&&xe(d.link))),r=e.listCount??Is,s=E(e.cardStyle)??"hoverPink",[o,i]=p.useState("latest"),[a,l]=p.useState(r),c=p.useMemo(()=>o==="oldest"?[...t].reverse():t,[t,o]),u=c.slice(0,a);return t.length===0?null:n.jsxs("section",{className:"flex flex-col gap-2xl bg-off-white desktop:px-2xl px-sm desktop:py-8xl py-2xl text-warm-black",children:[n.jsxs(le,{className:"flex desktop:flex-row flex-col desktop:items-end desktop:justify-between gap-lg",children:[e.title&&n.jsx("h2",{className:"font-headline text-display-md lowercase",children:e.title}),n.jsx(Ct,{className:"desktop:self-auto self-start",name:"Sort news",value:o,options:Rm,onChange:d=>{i(d),l(r)}})]}),n.jsx(he,{className:"grid desktop:grid-cols-3 grid-cols-1 gap-2xl desktop:gap-x-sm desktop:gap-y-2xl",children:u.map(d=>n.jsx(Om,{href:xe(d.link)??"#",title:d.title??"",date:d.date?Ze(d.date):null,image:d.image?.image?.imageFile,imageAlt:d.image?.image?.alt??d.title??"",logo:d.logo?.image?.imageFile,logoAlt:d.logo?.image?.alt??"",newTab:d.link?.openInNewTab??!0,variant:s},d._id))},o),c.length>a&&n.jsx("div",{className:"flex justify-center py-2xl",children:n.jsxs("button",{type:"button",onClick:()=>l(d=>d+Is),className:"flex cursor-pointer items-center gap-2xs font-functional text-heading-md text-warm-black transition-colors hover:text-clay",children:["Show more",n.jsx(zm,{className:"size-md"})]})})]})}function Dm({data:e}){const t=e.text??[];return t.length?n.jsx("section",{className:"bg-off-white desktop:px-2xl px-sm py-2xl text-warm-black",children:n.jsx(le,{className:"desktop:mx-auto min-w-0",children:n.jsx(nt,{value:t})})}):null}function $m({text:e,leading:t,trailing:r}){const s=(e??"").split(/(\s+)/),o=s.reduce((l,c,u)=>(u%2===0&&c.length>0&&l.push(u),l),[]),i=o[0],a=o[o.length-1];return i===void 0||a===void 0?n.jsxs(n.Fragment,{children:[t,e,r]}):i===a?n.jsxs("span",{className:"whitespace-nowrap",children:[t,s[i],r]}):n.jsxs(n.Fragment,{children:[s.slice(0,i).join(""),n.jsxs("span",{className:"whitespace-nowrap",children:[t,s[i]]}),s.slice(i+1,a).join(""),n.jsxs("span",{className:"whitespace-nowrap",children:[s[a],r]}),s.slice(a+1).join("")]})}function qo({text:e,leadingIcon:t,trailingIcon:r,iconScale:s=1,lineHeight:o}){const i=+(-(s-1)/2).toFixed(4),a={height:`${s}cap`,verticalAlign:`${i}cap`};return n.jsx("span",{style:o!=null?{lineHeight:o}:void 0,children:n.jsx($m,{text:e,leading:n.jsx(de,{svg:t,tightViewBox:!0,className:"mr-[0.2em] inline-flex w-auto",style:a}),trailing:n.jsx(de,{svg:r,tightViewBox:!0,className:"ml-[0.2em] inline-flex w-auto",style:a})})})}function Fm({data:e}){const t=p.useRef(null),r=p.useRef(null),s=e.backgroundMedia?.image?.imageFile,o=dn(),i=()=>
6{if(typeof window>"u")return;const g=t.current,x=g?g.getBoundingClientRect().bottom+window.scrollY:window.innerHeight;o?o.scrollTo(x,{duration:Si.scrollDuration}):window.scrollTo({top:x,behavior:"smooth"})},a=E(e.navbarType)==="light",l=a?"text-off-white":"text-warm-black",c=a?"":"brightness-0",u=!!e.darkOverlay?.enabled,d=Math.min(100,Math.max(0,e.darkOverlay?.opacity??0))/100,[f,m]=p.useState(!1);return p.useEffect(()=>{const g=r.current;if(!g)return;const x=g.getAnimations({subtree:!0}).filter(w=>w.playState==="running");if(x.length===0)return;m(!0);let y=!1;return Promise.allSettled(x.map(w=>w.finished)).then(()=>{y||m(!1)}),()=>{y=!0}},[]),p.useEffect(()=>{if(o){if(f)return o.stop(),()=>o.start();o.start()}},[o,f]),n.jsxs("section",{ref:t,className:"splash-host relative flex min-h-svh flex-col overflow-hidden",children:[n.jsx(oe,{source:s,alt:e.backgroundMedia?.image?.alt,widths:[768,1080,1440,1920,2400],priority:!0,className:"absolute inset-0"}),u&&n.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:{backgroundColor:"#000",opacity:d}}),a&&n.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 lg:hidden",style:{backgroundImage:"linear-gradient(180deg, rgba(0,0,0,0) 66.5%, rgba(0,0,0,0.64) 100%), linear-gradient(rgba(0,0,0,0.12), rgba(0,0,0,0.12))"}}),n.jsxs("div",{className:`relative flex flex-1 flex-col ${l}`,children:[n.jsx("div",{className:"splash-title flex flex-1 items-start justify-center px-sm pt-9xl lg:items-center lg:px-2xl lg:pt-5xl",children:e.header&&n.jsx("h1",{className:"whitespace-pre-wrap text-center font-headline text-display-xl",children:n.jsx(qo,{text:e.header,leadingIcon:e.leadingIcon,trailingIcon:e.trailingIcon,iconScale:1.2,lineHeight:1.15})})}),n.jsx("div",{className:"splash-late flex flex-col items-center px-sm pb-sm lg:flex-row lg:items-end lg:justify-between lg:gap-md lg:px-2xl lg:pb-xl",children:n.jsxs("div",{className:"flex flex-col items-center gap-2xl text-center lg:max-w-[560px] lg:items-start lg:gap-lg lg:text-left",children:[e.subtitle&&n.jsx("p",{className:"whitespace-pre-wrap font-functional text-heading-lg",children:e.subt
6itle}),n.jsxs("button",{type:"button",onClick:i,className:"flex cursor-pointer items-center gap-2xs font-functional text-label-md transition-opacity hover:opacity-70",children:[n.jsx("span",{children:"Meet our brands"}),n.jsx("img",{src:"/icons/arrow-down.svg",alt:"",className:`${c}`})]})]})})]}),n.jsxs("div",{ref:r,"aria-hidden":!0,className:"splash-overlay pointer-events-none absolute inset-x-0 top-0 z-[51] h-svh",children:[n.jsx("div",{className:"splash-backdrop absolute inset-0 bg-off-white"}),n.jsx("svg",{viewBox:"0 0 114 114",className:"splash-ring absolute",style:{left:"50%",top:"50%"},children:n.jsx("path",{d:"M57 44.6792C50.1962 44.6792 44.6832 50.1962 44.6832 56.996C44.6832 63.7958 50.2002 69.3128 57 69.3128C63.8038 69.3128 69.3168 63.7958 69.3168 56.996C69.3168 50.1962 63.8038 44.6792 57 44.6792ZM57 0C88.4817 0 114 25.5183 114 57C114 88.4817 88.4817 114 57 114C25.5183 114 0 88.4817 0 57C0 25.5183 25.5183 0 57 0Z",className:"fill-warm-black"})})]})]})}function Bm({page:e,pageCount:t,onChange:r,className:s}){const o=Oe("desktop");if(t<=1)return null;const i=Hm(e,t,o?1:0);return n.jsxs("nav",{"aria-label":"Pagination",className:$("flex w-full items-center justify-between gap-sm",s),children:[n.jsx(Cs,{direction:"prev",disabled:e<=1,onClick:()=>r(e-1)}),n.jsx("ul",{className:"flex items-center justify-center gap-3xs",children:i.map((a,l)=>a==="ellipsis"?n.jsxs("li",{"aria-hidden":!0,className:"flex size-lg items-center justify-center gap-[3px]",children:[n.jsx(_n,{}),n.jsx(_n,{}),n.jsx(_n,{})]},`ellipsis-${l}`):n.jsx("li",{children:n.jsx(Vm,{page:a,active:a===e,onClick:()=>r(a)})},a))}),n.jsx(Cs,{direction:"next",disabled:e>=t,onClick:()=>r(e+1)})]})}function Vm({page:e,active:t,onClick:r}){return n.jsx("button",{type:"button",onClick:r,"aria-label":`Go to page ${e}`,"aria-current":t?"page":void 0,className:$("flex size-lg cursor-pointer items-center justify-center px-xs font-bold font-functional text-label-sm transition-colors",t?"bg-warm-black text-off-white":"text-warm-black hover:bg-warm-black/12"),children:String(e).padStart(2,"0")})}function Cs({direction:e,disabled:t,onClick:r}){const s=e==="prev",o=n.jsx(ge,{className:$("size-md shrink-0 transition-transform",s?"group-hover:-translate-x-3xs rotate-180":"group-hover:translate-x-3xs")});return n.jsxs("button",{type:"button",onClick:r,disabled:t,"aria-label":s?"Previous page":"Next page",className:$("group flex items-center desktop:gap-2xs font-bold font-functional text-label-md transition-colors",t?"pointer-events-none text-warm-black/24":"cursor-pointer text-warm-black"),children:[s&&o,n.jsx("span",{className:"desktop:inline hidden",children:s?"Previous":"Next"}),!s&&o]})}function _n(){return n.jsx("span",{className:"size-[3px] rounded-full bg-warm-black"})}function Hm(e,t,r=1){const s=r*2+5;if(t<=s)return Yt(1,t);const o=Math.max(e-r,1),i=Math.min(e+r,t),a=o>2,l=i<t-1;return!a&&l?[...Yt(1,3+2*r),"ellipsis",t]:a&&!l?[1,"ellipsis",...Yt(t-(2+2*r),t)]:[1,"ellipsis",...Yt(o,i),"ellipsis",t]}function Yt(e,t){return Array.from({length:t-e+1},(r,s)=>e+s)}const Xt=sn,An=10;function Zm({data:e}){const[t,r]=p.useState(null),[s,o]=p.useState(!1),[i,a]=p.useState(Xt),[l,c]=p.useState(Xt);p.useEffect(()=>{let k=!1;return fetch("/api/jobs").then(S=>S.ok?S.json():Promise.reject(new Error(`jobs ${S.status}`))).then(S=>{k||r(S.jobs??[])}).catch(()=>{k||o(!0)}),()=>{k=!0}},[]);const u=p.useMemo(()=>Es((t??[]).map(k=>k.location)),[t]),d=p.useMemo(()=>Es((t??[]).map(k=>k.category)),[t]),f=p.useMemo(()=>(t??[]).filter(k=>(i===Xt||k.location===i)&&(l===Xt||k.category===l)),[t,i,l]),[m,g]=p.useState(1),x=Math.max(1,Math.ceil(f.length/An)),y=Math.min(m,x),w=p.useMemo(()=>f.slice((y-1)*An,y*An),[f,y]),v=t===null&&!s,[h,N]=p.useState({top:0,height:0,on:!1}),A=p.useCallback(k=>{const S=k.offsetTop,L=k.offsetHeight;N(b=>b.on&&b.top===S&&b.height===L?b:{top:S,height:L,on:!0})},[]),C=p.useCallback(()=>N(k=>k.on?{...k,on:!1}:k),[]),R=p.useMemo(()=>w.map(k=>n.jsx(Wm,{job:k,onEnter:A},k.id)),[w,A]),T=(e.items??[]).flatMap(k=>{const S=xe(k.cta),L=Ne(k.cta),b=k.cta?.openInNewTab,j=!!b||/^(https?:|mailto:|tel:)/.test(S??"");return S&&L?[{key:k._key??S,href:S,label:L,newTab:b,external:j}]:[]});return n.jsx("section",{className:"flex flex-col items-center gap-2xl bg-off-white desktop:px-2xl px-sm desktop:py-8xl py-2xl text-warm-black",children:n.jsxs("div",{className:"flex w-full max-w-[1504px] flex-col gap-2xl",children:[n.jsx(le,{children:e.title&&n.jsx("h2",{className:"font-headline text-display-md lowercase",children:e.title})}),n.jsxs("div",{className:"flex flex-col desktop:gap-2xl gap-lg",children:[n.jsx(Um,{title:e.infoTitle,body:e.infoBody,links:T}),n.jsxs(le,{className:"flex flex-wrap items-start gap-2xs",children:[n.jsx(Ct,{name:"Filter by location",allLabel:"All locations",value:i,options:u.map(k=>({value:k,label:k})),onChange:k=>{a(k),g(1)}}),n.jsx(Ct,{name:"Filter by category",allLabel:"All categories",value:l,options:d.map(k=>({value:k,label:k})),onChange:k=>{c(k),g(1)}})]}),n.jsxs("div",{className:"flex flex-col",children:[v&&n.jsx(Pn,{children:"Loading open positionsâ¦"}),s&&n.jsx(Pn,{children:"Unable to load open positions right now. Please try again later."}),!v&&!s&&f.length===0&&n.jsx(Pn,{children:"No open positions match your filters."}),!v&&!s&&f.length>0&&n.jsxs("div",{className:"relative isolate",onMouseLeave:C,children:[n.jsx("span",{"aria-hidden":!0,
6className:"pointer-events-none absolute inset-x-0 top-0 z-0 bg-warm-black/5",style:{height:h.height,transform:`translateY(${h.top}px)`,opacity:h.on?1:0,transition:"transform 260ms ease-out, height 260ms ease-out, opacity 180ms ease-out"}}),n.jsx("div",{className:"flex flex-col",children:R})]})]})]}),!v&&!s&&n.jsx(Bm,{page:y,pageCount:x,onChange:g})]})})}function Um({title:e,body:t,links:r}){return!e&&!t&&r.length===0?null:n.jsxs(le,{className:"flex desktop:flex-row flex-col items-start desktop:items-center gap-2xl bg-cool-pink desktop:px-lg px-sm desktop:py-lg py-md text-warm-black",children:[(e||t)&&n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-sm",children:[e&&n.jsx("p",{className:"font-functional text-heading-sm",children:e}),t&&n.jsx("p",{className:"font-functional text-body-md text-warm-black/80",children:t})]}),r.length>0&&n.jsx("div",{className:"flex shrink-0 desktop:flex-row flex-col items-start desktop:items-center desktop:gap-sm gap-2xs",children:r.map(s=>n.jsx(Le,{size:"md",variant:"outline",theme:"dark",href:s.href,newTab:s.newTab??void 0,trailingIcon:s.external?n.jsx(Xn,{className:"size-sm"}):n.jsx(ge,{className:"size-md"}),children:s.label},s.key))})]})}const Wm=p.memo(function({job:t,onEnter:r}){return n.jsxs("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",onMouseEnter:s=>r(s.currentTarget),className:$("group relative z-10 flex flex-col border-warm-black/24 border-t py-sm text-warm-black","desktop:grid desktop:grid-cols-4 desktop:items-center desktop:gap-sm"),children:[n.jsxs("div",{className:"relative flex min-w-0 items-center justify-between gap-sm p-sm",children:[n.jsx("span",{className:"min-w-0 break-words font-functional text-heading-sm",children:t.title}),n.jsx("span",{className:"desktop:hidden shrink-0",children:n.jsx(Se,{as:"span",hoverEffect:"slide",children:"Apply"})})]}),n.jsx("div",{className:"relative flex min-w-0 items-center desktop:p-sm px-sm pt-0 pb-sm",children:t.location&&n.jsx("span",{className:"min-w-0 truncate font-functional text-body-md",children:t.location})}),n.jsx("div",{className:"relative desktop:flex hidden items-center p-sm",children:t.date&&n.jsx("span",{className:"font-functional text-body-md",children:Ze(t.date)})}),n.jsx("div",{className:"relative desktop:flex hidden items-center justify-end p-sm",children:n.jsx(Se,{as:"span",hoverEffect:"slide",children:"Apply"})})]})});function Pn({children:e}){return n.jsx("p",{className:"border-warm-black/24 border-t px-sm py-md font-functional text-body-md text-warm-black/60",children:e})}function Es(e){return Array.from(new Set(e.filter(Boolean))).sort((t,r)=>t.localeCompare(r))}const Ts="(min-width: 64rem) 50vw, 100vw";function qm({data:e}){const t=yo(e.image),{bg:r,text:s}=ue(E(e.backgroundColor)),o=(e.body??"").split(/\n{2,}/).map(d=>d.trim()).filter(Boolean),i=xe(e.cta),a=Ne(e.cta),l=E(e.ctaArrowDirection),c=t?.kind==="video"?n.jsx(vo,{provider:t.provider,src:t.src,cover:t.cover,thumbTime:t.thumbTime,alt:t.alt,title:E(e.headline)?.replace(/\s+/g," ").trim()||"Video",sizes:Ts}):t?.kind==="image"?n.jsx(ct,{speed:120,children:n.jsx(oe,{source:t.image,alt:t.alt,sizes:Ts})}):null,u=e.fullHeight!==!1;return n.jsx("section",{children:n.jsx(Dt,{reverse:E(e.imageSide)==="right",reverseOnMobile:!e.imageFirstOnMobile,fullHeight:u,media:c,children:n.jsxs("div",{className:`flex flex-1 flex-col items-center justify-between gap-2xl desktop:p-2xl px-sm py-2xl text-center ${r} ${s}`,children:[e.eyebrow&&n.jsx("p",{className:"font-functional text-label-md",children:e.eyebrow}),n.jsxs(he,{className:"flex w-full flex-1 flex-col items-center justify-center desktop:gap-2xl gap-sm",children:[n.jsx(de,{svg:E(e.icon),className:"desktop:size-[84px] size-4xl"}),e.headline&&n.jsx("h2",{className:`w-full whitespace-pre-line font-headline ${e.smallHeadline?"text-display-md":"text-display-lg"}`,children:e.headline}),!e.subheading&&o.length>0&&n.jsx("div",{className:"flex w-full max-w-[440px] flex-col gap-xs font-functional desktop:text-body-lg text-body-md",children:o.map(d=>n.jsx("p",{children:d},d))})]}),(e.subheading||i&&a)&&n.jsxs(he,{className:"flex w-full flex-col items-center desktop:gap-2xl gap-lg",children:[e.subheading&&n.jsxs("div",{className:"flex w-full max-w-[440px] flex-col items-center gap-lg",children:[n.jsx("p",{className:"font-functional text-heading-sm",children:e.subheading}),o.length>0&&n.jsx("div",{className:"flex flex-col gap-xs font-functional desktop:text-body-lg text-body-md",children:o.map(d=>n.jsx("p",{children:d},d))})]}),i&&a&&n.jsx(Le,{href:i,newTab:e.cta?.openInNewTab??void 0,size:"lg",variant:"fill",theme:s==="text-warm-black"?"dark":"light",trailingIcon:n.jsx(ge,{className:"size-lg",direction:l}),children:a})]})]})})})}function Gm({name:e,role:t,image:r,imageAlt:s,onClick:o}){return n.jsxs("button",{type:"button",onClick:o,className:"group relative flex w-full cursor-pointer flex-col overflow-hidden text-left",children:[n.jsx("div",{className:"aspect-[4/3] w-full overflow-hidden",children:n.jsx(oe,{source:r,alt:s??e,aspectRatio:4/3,sizes:"(min-width: 64rem) 33vw, 100vw"})}),n.jsxs("div",{className:"relative flex w-full items-end gap-sm p-sm",children:[n.jsx(lt,{color:"bg-clay",origin:"top"}),n.jsxs("div",{className:"relative flex min-w-0 flex-1 flex-col gap-sm text-warm-black",children:[n.jsx("p",{className:"font-functional text-heading-md",children:e}),t&&n.jsx("p",{className:"font-functional text-body-lg",children:t})]}),n.jsx(Ke,{className:"text-warm-black"})]})]})}function Km({className:e}){return n.jsx("svg",{viewBox:"0 0 48 48",fill:"none","aria-hidden":"true",className:e,children:n.jsxs("g",{transform:"translate(6.93 8.61)",fill:"currentColor",children:[n.jsx("path",{d:"M15.5701 5.26421C15.5941 4.88021 15.7621 4.5262
61 16.0441 4.27421C16.3321 4.01621 16.6981 3.88421 17.0821 3.90821C17.8741 3.95021 18.4861 4.63421 18.4441 5.42621C18.4201 5.81021 18.2521 6.16421 17.9641 6.41621C17.7001 6.65621 17.3581 6.78221 17.0041 6.78221C16.9801 6.78221 16.9501 6.78221 16.9261 6.78221C16.1341 6.74021 15.5221 6.05621 15.5641 5.26421H15.5701ZM16.7161 10.6822C19.6621 10.8442 22.1881 8.58221 22.3441 5.63621C22.5061 2.69021 20.2441 0.164206 17.2981 0.00820633C15.8761 -0.0697937 14.5021 0.410206 13.4401 1.36421C12.3781 2.31821 11.7481 3.62621 11.6701 5.05421C11.5081 8.00021 13.7701 10.5262 16.7161 10.6822Z"}),n.jsx("path",{d:"M33.726 23.4442L33.696 23.3662C31.134 16.6522 24.606 12.1462 17.412 12.1462C12.846 12.1462 8.526 13.9222 5.238 17.1442C1.95 20.3662 0.09 24.6502 0 29.2102V29.3302H4.068V29.2162C4.164 25.7482 5.58 22.4962 8.058 20.0542C10.572 17.5822 13.896 16.2142 17.418 16.2142C22.95 16.2142 27.972 19.6942 29.922 24.8662C30.15 25.4782 30.072 26.1382 29.7 26.6782C29.328 27.2182 28.734 27.5302 28.074 27.5302H10.248V31.5982H28.074C30.054 31.5982 31.914 30.6262 33.042 28.9942C34.17 27.3682 34.428 25.2862 33.732 23.4382L33.726 23.4442Z"})]})})}function Ym({name:e,role:t,onClick:r}){return n.jsxs("button",{type:"button",onClick:r,className:"group relative flex desktop:min-h-[196px] w-full cursor-pointer flex-col justify-between desktop:gap-lg gap-4xl bg-warm-black/4 desktop:p-lg p-sm text-left text-warm-black transition-colors desktop:hover:bg-warm-black desktop:hover:text-off-white",children:[n.jsxs("span",{className:"flex w-full items-center",children:[n.jsx("span",{className:"w-0 shrink-0 overflow-hidden transition-[width] duration-300 ease-out group-hover:w-3xl max-desktop:hidden",children:n.jsx(Km,{className:"-translate-x-full size-2xl transition-transform duration-300 ease-out group-hover:translate-x-0"})}),n.jsx("span",{className:"font-headline text-display-xs lowercase",children:e})]}),t&&n.jsx("span",{className:"desktop:pr-lg pr-2xl font-functional text-body-lg",children:t}),n.jsx(Ke,{icon:n.jsx(So,{}),enterFrom:"bottom",className:"absolute right-sm bottom-sm"})]})}function Xm({data:e}){const t=(e.people??[]).filter(i=>!!i?.name),r=E(e.display)==="textOnly",[s,o]=p.useState(null);return n.jsxs("section",{className:"flex flex-col gap-2xl bg-off-white desktop:px-2xl px-sm desktop:py-8xl py-2xl",children:[n.jsxs(le,{className:"flex flex-col gap-lg",children:[e.title&&n.jsx("h2",{className:"whitespace-pre-wrap font-headline text-display-md text-warm-black",children:e.title}),e.intro&&n.jsx("p",{className:"max-w-[520px] font-functional text-body-md text-warm-black",children:e.intro})]}),n.jsx(he,{className:$("grid desktop:grid-cols-3 grid-cols-1",r?"gap-sm":"gap-2xl desktop:gap-x-sm desktop:gap-y-2xl"),children:t.map((i,a)=>r?n.jsx(Ym,{name:i.name??"",role:i.role,onClick:()=>o(a)},i._id??a):n.jsx(Gm,{name:i.name??"",role:i.role,image:i.photo?.image?.imageFile,imageAlt:i.photo?.image?.alt??i.name??"",onClick:()=>o(a)},i._id??a))}),n.jsx(Co,{people:t,activeIndex:s,onIndexChange:o})]})}const Jm={lg:{value:"text-display-md",iconBox:"size-2xl desktop:size-5xl"},"lg-fit":{value:"text-display-sm h-md:text-display-md",iconBox:"size-2xl desktop:size-5xl"},md:{value:"text-display-sm",iconBox:"size-lg"},"md-icon-lg":{value:"text-display-sm",iconBox:"size-2xl desktop:size-lg"},"state-lg":{value:"text-display-sm desktop:text-display-md",iconBox:"size-2xl desktop:size-5xl",gap:"gap-lg desktop:gap-md"},"state-sm":{value:"text-display-sm",iconBox:"size-md desktop:size-lg",pad:"pt-sm desktop:pt-lg"}},Qm={block:{normal:({children:e})=>n.jsx(n.Fragment,{children:e})},marks:{"wild.richtext.annotation.link":({children:e,value:t})=>{const r=xe(t);if(!r)return n.jsx(n.Fragment,{children:e});const s=t?.openInNewTab;return n.jsx("a",{href:r,target:s?"_blank":void 0,rel:s?"noopener noreferrer":void 0,className:"underline underline-offset-2 hover:opacity-60",children:e})}}};function or({value:e,label:t,icon:r,size:s="md",className:o}){const{value:i,iconBox:a,gap:l="gap-sm",pad:c="pt-lg"}=Jm[s];return n.jsxs("div",{className:`flex items-start justify-between gap-sm border-current border-t ${c} ${o??""}`,children:[n.jsxs("div",{className:`flex min-w-0 flex-1 flex-col ${l}`,children:[n.jsx("span",{className:`font-headline ${i} break-words`,children:e}),t?.length?n.jsx("span",{className:"font-functional text-body-lg",children:n.jsx(Mt,{value:t,components:Qm})}):null]}),r&&n.jsx(de,{svg:r,className:`${a} aspect-square shrink-0 self-start`})]})}const ep="220 0 700 589",tp="/us.svg",np="1000 / 589",rp={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"
6CA",colorado:"CO",connecticut:"CT",delaware:"DE",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","west virginia":"WV",wisconsin:"WI",wyoming:"WY","district of columbia":"DC"};function cn(e){return rp[e.trim().toLowerCase()]??null}function Go(e,t){return`${e}state-panel-${t}`}function sp(e,t){const r=Math.ceil(e.length/t),s=[];for(let o=0;o<t;o+=1){const i=e.slice(o*r,(o+1)*r);i.length>0&&s.push(i)}return s}function Ko({items:e,className:t,fill:r,selectedCode:s=null,onToggle:o,detailMode:i="modal",panelIdPrefix:a=""}){const l=p.useMemo(()=>e.filter(L=>L?.name?.trim()).map(L=>({...L,name:L.name.trim()})).sort((L,b)=>L.name.localeCompare(b.name)),[e]),c=p.useMemo(()=>l.map(L=>L.name),[l]),u=p.useMemo(()=>new Set(c.map(cn).filter(L=>!!L)),[c]),[d,f]=p.useState(null),[m,g]=p.useState(null);p.useEffect(()=>{let L=!0;return fetch(tp).then(b=>b.ok?b.text():null).then(b=>{L&&b&&g(b)}).catch(()=>{}),()=>{L=!1}},[]);const x=p.useMemo(()=>{if(!m)return null;let L=m;L=L.replace(/viewBox="[^"]*"/,`viewBox="${ep}"`);for(const b of u)L=L.replace(new RegExp(`(?<![-\\w])id="${b}"`),`id="${b}" data-active="true"`);return L},[m,u]),y=p.useRef(null),w=p.useCallback(L=>{y.current=L},[]),v=p.useCallback(L=>{if(L)for(const b of Array.from(L.querySelectorAll('path[data-active="true"]'))){const j=b.getAttribute("data-id")??b.id;j&&j===s?b.setAttribute("data-selected","true"):b.removeAttribute("data-selected"),j&&j===d?b.setAttribute("data-hovered","true"):b.removeAttribute("data-hovered")}},[s,d]);p.useLayoutEffect(()=>{v(y.current)});const h=p.useCallback(L=>{const b=L.target.closest("path");if(!b)return;const j=b.getAttribute("data-id")??b.id;j&&u.has(j)&&o?.(j)},[u,o]),N=p.useCallback(L=>{const b=L.target.closest("path"),j=b?.getAttribute("data-id")??b?.id??null;f(j&&u.has(j)?j:null)},[u]),A=Oe("2xl"),C=Oe("md"),R=sp(l,A?4:C?3:2),T=i==="disclosure",k=n.jsx("div",{ref:w,onClick:h,onMouseMove:N,onMouseLeave:()=>f(null),"data-has-selection":s?"true":"false","data-has-hover":d?"true":"false",className:"oscar-statemap w-full",style:{aspectRatio:np},dangerouslySetInnerHTML:{__html:x??""}}),S=n.jsx("div",{className:"grid w-full grid-cols-2 gap-y-md md:grid-cols-3 2xl:grid-cols-4 2xl:gap-y-0",children:R.map(L=>n.jsx("ul",{className:"flex flex-col border-current border-l",children:L.map(({name:b})=>{const j=cn(b),_=j?j===s:!1,I=j?j===d:!1;return n.jsx("li",{children:n.jsxs("button",{type:"button","aria-expanded":T?_:void 0,"aria-controls":T&&_&&j?Go(a,j):void 0,onClick:()=>o?.(j),onMouseEnter:()=>f(j),onMouseLeave:()=>f(null),className:`group relative block w-full cursor-pointer overflow-hidden text-left ${_?"bg-clay":""}`,children:[!_&&n.jsx("span",{"aria-hidden":!0,className:`-bottom-px pointer-events-none absolute inset-x-0 top-0 bg-white transition-transform duration-300 ease-out ${I?"translate-y-0":"translate-y-full group-hover:translate-y-0"}`}),n.jsxs("span",{className:"relative flex items-center justify-between gap-sm px-sm py-3xs font-functional text-heading-xs",children:[n.jsx("span",{className:`transition-transform duration-300 ease-out ${_||I?"translate-x-2xs":"group-hover:translate-x-2xs"}`,children:b}),n.jsx("span",{"aria-hidden":!0,className:`font-bold text-heading-md leading-none transition-all duration-300 ease-out ${_?"rotate-45 opacity-100":I?"translate-x-0 translate-y-0 opacity-100":"desktop:-translate-x-xs desktop:-translate-y-xs translate-x-0 translate-y-0 desktop:opacity-0 opacity-100 desktop:group-hover:translate-x-0 desktop:group-hover:translate-y-0 desktop:group-hover:opacity-100"}`,children:"+"})]})]})},b)})},L.map(b=>b.name).join("-")))});return r?n.jsxs("div",{className:`flex h-full w-full flex-col gap-2xl ${t??""}`,children:[n.jsx("div",{className:"flex min-h-0 flex-1 items-center justify-center",children:k}),n.jsx("style",{children:Ls}),S]}):n.jsxs("div",{className:`flex w-full flex-col items-center gap-2xl ${t??""}`,children:[k,n.jsx("style",{children:Ls}),S]})}const op=400;function ip({items:e,selectedCode:t=null,onClose:r,className:s,panelIdPrefix:o=""}){const[i,a]=p.useState([]);return p.useEffect(()=>{if(t&&a(u=>u.includes(t)?u:[...u,t]),!i.some(u=>u!==t))return;const c=window.setTimeout(()=>{a(u=>u.filter(d=>d===t))},op);return()=>window.clearTimeout(c)},[t,i]),n.jsx(n.Fragment,{children:i.map(l=>
6{const c=e.find(u=>cn(u.name)===l)??null;return c?n.jsx(ap,{item:c,active:l===t,onClose:r,className:s,panelId:Go(o,l)},l):null})})}function ap({item:e,active:t,onClose:r,className:s,panelId:o}){const[i,a]=p.useState(!1);return p.useEffect(()=>{let l=0;const c=requestAnimationFrame(()=>{l=requestAnimationFrame(()=>a(t))});return()=>{cancelAnimationFrame(c),l&&cancelAnimationFrame(l)}},[t]),p.useEffect(()=>{if(!t)return;const l=c=>{c.key==="Escape"&&r()};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[t,r]),n.jsx("section",{id:o,"aria-hidden":!t,"aria-label":`${e.name} details`,className:`absolute inset-0 flex flex-col bg-clay text-warm-black transition-transform duration-300 ease-out ${i?"translate-x-0":"pointer-events-none translate-x-full"} ${s??""}`,children:n.jsx(Yo,{item:e,closeButton:n.jsx("button",{type:"button",onClick:r,"aria-label":"Close",className:"absolute top-2xl right-2xl cursor-pointer font-bold text-heading-md leading-none",children:"â"})})})}function lp({items:e,selectedCode:t=null,onClose:r}){const s=t?e.find(o=>cn(o.name)===t)??null:null;return n.jsx(mn,{open:t!=null&&s!=null,onOpenChange:o=>{o||r()},title:s?`${s.name} details`:"State details",className:"bg-clay text-warm-black",variant:"modal",children:s&&n.jsx(Yo,{item:s,closeButton:n.jsx(Et,{className:"absolute top-sm right-sm"})})})}function Yo({item:e,closeButton:t}){const r=(e.stats??[]).slice(0,4),s=r.length>2;return n.jsxs("div",{"data-lenis-prevent":!0,className:"relative flex min-h-0 flex-1 flex-col overflow-y-auto desktop:p-2xl px-sm py-lg",children:[t,n.jsxs("div",{className:"flex flex-1 flex-col justify-between desktop:gap-2xl gap-5xl",children:[n.jsxs("div",{className:"flex flex-col desktop:gap-2xl gap-lg",children:[n.jsxs("div",{className:"flex flex-col desktop:gap-sm gap-lg pr-2xl",children:[n.jsx("span",{className:"font-functional desktop:text-body-md text-label-md",children:"State"}),n.jsx("h3",{className:"font-headline text-display-md",children:e.name})]}),e.description&&n.jsx("p",{className:"font-functional desktop:text-body-md text-body-lg",children:e.description})]}),r.length>0&&n.jsx("div",{className:`flex flex-col pb-sm ${s?"gap-lg":"desktop:gap-lg gap-2xl"}`,children:r.map((o,i)=>n.jsx(or,{value:o.value,label:o.label,icon:o.icon??null,size:s?"state-sm":"state-lg"},i))})]})]})}const Ls=` 7.oscar-statemap svg { display: block; width: 100%; height: auto; } 8.oscar-statemap path { 9 fill: #d9d4c7 !important; /* one-off inactive-state tint, no color token */ 10 stroke: var(--color-off-white); 11 stroke-width: 1px; 12 vector-effect: non-scaling-stroke; 13 transition: fill 0.3s ease, opacity 0.3s ease; 14} 15.oscar-statemap path[data-active="true"] { fill: var(--color-clay) !important; cursor: pointer; } 16/* A selection or a hover dims every state; the selected AND hovered one(s) stay lit. Both 17 "dim" rules must precede both "lit" rules: they share specificity, so source order decides, 18 and otherwise the hover-dim would override the selected-lit (dimming an open state while you 19 hover another). */ 20.oscar-statemap[data-has-selection="true"] path, 21.oscar-statemap[data-has-hover="true"] path { opacity: 0.4; } 22.oscar-statemap path[data-selected="true"], 23.oscar-statemap path[data-hovered="true"] { opacity: 1; } 24`;function Xo(e){const t=e?.image?.imageFile;return at(t,{width:1400})}function hn(e){return(e??[]).map(t=>{const r=E(t.name)??"";return r?{name:r,description:E(t.description)??"",stats:(t.stats??[]).map(s=>({value:E(s.value)??"",label:s.label??null,icon:E(s.icon)??null}))}:null}).filter(t=>t!==null)}function Jo(){const[e,t]=p.useState(null),r=p.useCallback(o=>{t(i=>o&&i!==o?o:null)},[]),s=p.useCallback(()=>t(null),[]);return{selectedCode:e,toggle:r,close:s}}function Qo(e,t,r){p.useEffect(()=>{const s=e.current;if(!s||!r)return;const o=new IntersectionObserver(([i])=>{i&&!i.isIntersecting&&t()});return o.observe(s),()=>o.disconnect()},[e,t,r])}function cp({step:e,selectedCode:t,onToggle:r}){const s=p.useMemo(()=>hn(e.states),[e.states]);if(e._type==="mapStep")return n.jsxs(n.Fragment,{children:[e.title&&n.jsx(Tt,{children:e.title}),n.jsx(Ko,{items:s,detailMode:"modal",selectedCode:t,onToggle:r})]});const o=e.stats??[],i=o.length<=3;return n.jsxs(n.Fragment,{children:[e.title&&n.jsx(Tt,{children:e.title}),n.jsx("div",{className:i?"flex flex-col gap-2xl":"grid grid-cols-1 gap-x-2xl gap-y-lg sm:grid-cols-2",children:o.map((a,l)=>n.jsx(or,{value:E(a.value)??"",label:a.label,icon:E(a.icon)??null,size:i?"lg":"md-icon-lg"},a._key??l))})]})}function ir({step:e,reverse:t}){const{bg:r,text:s}=ue(E(e.background)),o=Xo(e.photo),i=E(e.photo?.image?.alt)??"",a=e._type==="mapStep",l=p.useMemo(()=>a?hn(e.states):[],[a,e.states]),{selectedCode:c,toggle:u,close:d}=Jo(),f=p.useRef(null);Qo(f,d,a&&c!==null);const m=o?n.jsx(ct,{speed:120,children:n.jsx(oe,{source:e.photo?.image?.imageFile,alt:i,sizes:"(min-width: 64rem) 50vw, 100vw"})}):null,g=n.jsx("div",{className:`flex flex-1 flex-col justify-between gap-2xl desktop:p-2xl px-sm py-2xl ${r} ${s}`,children:n.jsx(cp,{step:e,selectedCode:c,onToggle:u})}),x=m?n.jsx(Dt,{media:m,reverse:t,children:g}):n.jsx("div",{className:"flex desktop:min-h-screen flex-col",children:g});return a?n.jsxs(n.Fragment,{children:[n.jsx("div",{ref:f,children:x}),n.jsx(lp,{items:l,selectedCode:c,onClose:d})]}):x}function up({data:e}){const t=e.states??[];return!e.title&&t.length===0?null:n.jsx("section",{children:n.jsx(ir,{step:{_type:"mapStep",title:e.title,background:e.background,photo:e.photo,states:t},reverse:!0})})}const dp={hoverPink:"bg-cool-pink",hoverWhite:"bg-white",static:"bg-white"};function fp({href:e,newTab:t,tag:r,eyebrow:s,title:o,description:i,ctaLabel:a,image:l,imageAlt:c,variant:u="hoverPink"}
vendor: 7,044 bytes, line 24
24){const d=u==="static",f=n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"relative aspect-[4/3] w-full overflow-hidden",children:[n.jsx(oe,{source:l,alt:c??o,sizes:"(min-width: 64rem) 33vw, 100vw"}),r&&n.jsx(Fn,{className:"absolute top-sm left-sm",children:r})]}),n.jsxs("div",{className:$("relative flex items-end gap-lg p-sm",d&&"bg-subtle-off-white"),children:[n.jsx(lt,{color:dp[u],origin:"top"}),n.jsxs("div",{className:"relative flex min-w-0 flex-1 flex-col gap-md text-warm-black",children:[s&&n.jsx("p",{className:"font-functional text-body-md",children:s}),n.jsx("p",{className:"font-functional text-heading-md",children:o}),i&&n.jsx("p",{className:"line-clamp-3 font-functional text-body-md",children:i}),a&&n.jsx(Se,{as:"span",hoverEffect:"slide",children:a})]}),e&&!a&&(d?n.jsx(ge,{className:"relative size-lg shrink-0 text-warm-black"}):n.jsx(Ke,{className:"text-warm-black"}))]})]}),m="group relative flex w-full flex-col overflow-hidden text-left";return e?t||/^(https?:|mailto:|tel:)/.test(e)?n.jsx("a",{href:e,target:t?"_blank":void 0,rel:t?"noopener noreferrer":void 0,className:m,children:f}):n.jsx(Ge,{to:e,className:m,children:f}):n.jsx("div",{className:m,children:f})}function mp(e){return Object.prototype.toString.call(e)==="[object Object]"}function _s(e){return mp(e)||Array.isArray(e)}function pp(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function ar(e,t){const r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==i?!1:r.every(a=>{const l=e[a],c=t[a];return typeof l=="function"?`${l}`==`${c}`:!_s(l)||!_s(c)?l===c:ar(l,c)})}function As(e){return e.concat().sort((t,r)=>t.name>r.name?1:-1).map(t=>t.options)}function xp(e,t){if(e.length!==t.length)return!1;const r=As(e),s=As(t);return r.every((o,i)=>{const a=s[i];return ar(o,a)})}function lr(e){return typeof e=="number"}function Gn(e){return typeof e=="string"}function gn(e){return typeof e=="boolean"}function Ps(e){return Object.prototype.toString.call(e)==="[object Object]"}function ae(e){return Math.abs(e)}function cr(e){return Math.sign(e)}function kt(e,t){return ae(e-t)}function hp(e,t){if(e===0||t===0||ae(e)<=ae(t))return 0;const r=kt(ae(e),ae(t));return ae(r/e)}function gp(e){return Math.round(e*100)/100}function At(e){return Pt(e).map(Number)}function Te(e){return e[Ft(e)]}function Ft(e){return Math.max(0,e.length-1)}function ur(e,t){return t===Ft(e)}function Os(e,t=0){return Array.from(Array(e),(r,s)=>t+s)}function Pt(e){return Object.keys(e)}function ei(e,t){return[e,t].reduce((r,s)=>(Pt(s).forEach(o=>{const i=r[o],a=s[o],l=Ps(i)&&Ps(a);r[o]=l?ei(i,a):a}),r),{})}function Kn(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function vp(e,t){const r={start:s,center:o,end:i};function s(){return 0}function o(c){return i(c)/2}function i(c){return t-c}function a(c,u){return Gn(e)?r[e](c):e(t,c,u)}return{measure:a}}function Ot(){let e=[];function t(o,i,a,l={passive:!0}){let c;if("addEventListener"in o)o.addEventListener(i,a,l),c=()=>o.removeEventListener(i,a,l);else{const u=o;u.addListener(a),c=()=>u.removeListener(a)}return e.push(c),s}function r(){e=e.filter(o=>o())}const s={add:t,clear:r};return s}function yp(e,t,r,s){const o=Ot(),i=1e3/60;let a=null,l=0,c=0;function u(){o.add(e,"visibilitychange",()=>{e.hidden&&x()})}function d(){g(),o.clear()}function f(w){if(!c)return;a||(a=w,r(),r());const v=w-a;for(a=w,l+=v;l>=i;)r(),l-=i;const h=l/i;s(h),c&&(c=t.requestAnimationFrame(f))}function m(){c||(c=t.requestAnimationFrame(f))}function g(){t.cancelAnimationFrame(c),a=null,l=0,c=0}function x(){a=null,l=0}return{init:u,destroy:d,start:m,stop:g,update:r,render:s}}function bp(e,t){const r=t==="rtl",s=e==="y",o=s?"y":"x",i=s?"x":"y",a=!s&&r?-1:1,l=d(),c=f();function u(x){const{height:y,width:w}=x;return s?y:w}function d(){return s?"top":r?"right":"left"}function f(){return s?"bottom":r?"left":"right"}function m(x){return x*a}return{scroll:o,cross:i,startEdge:l,endEdge:c,measureSize:u,direction:m}}function qe(e=0,t=0){const r=ae(e-t);function s(u){return u<e}function o(u){return u>t}function i(u){return s(u)||o(u)}function a(u){return i(u)?s(u)?e:t:u}function l(u){return r?u-r*Math.ceil((u-t)/r):u}return{length:r,max:t,min:e,constrain:a,reachedAny:i,reachedMax:o,reachedMin:s,removeOffset:l}}function ti(e,t,r){const{constrain:s}=qe(0,e),o=e+1;let i=a(t);function a(m){return r?ae((o+m)%o):s(m)}function l(){return i}function c(m){return i=a(m),f}function u(m){return d().set(l()+m)}function d(){return ti(e,l(),r)}const f={get:l,set:c,add:u,clone:d};return f}function wp(e,t,r,s,o,i,a,l,c,u,d,f,m,g,x,y,w,v,h){const{cross:N,direction:A}=e,C=["INPUT","SELECT","TEXTAREA"],R={passive:!1},T=Ot(),k=Ot(),S=qe(50,225).constrain(g.measure(20)),L={mouse:300,touch:400},b={mouse:500,touch:600},j=x?43:25;let _=!1,I=0,z=0,M=!1,D=!1,U=!1,P=!1;function F(V){if(!h)return;function te(ye){(gn(h)||h(V,ye))&&J(ye)}const fe=t;T.add(fe,"dragstart",ye=>ye.preventDefault(),R).add(fe,"touchmove",()=>{},R).add(fe,"touchend",()=>{}).add(fe,"touchstart",te).add(fe,"mousedown",te).add(fe,"touchcancel",X).add(fe,"contextmenu",X).add(fe,"click",re,!0)}function Z(){T.clear(),k.clear()}function B(){const V=P?r:t;k.add(V,"touchmove",W,R).add(V,"touchend",X).add(V,"mousemove",W,R).add(V,"mouseup",X)}function H(V){const te=V.nodeName||"";return C.includes(te)}function q(){return(x?b:L)[P?"mouse":"touch"]}function Q(V,te){const fe=f.add(cr(V)*-1),ye=d.byDistance(V,!x).distance;return x||ae(V)<S?ye:w&&te?ye*.5:d.byIndex(fe.get(),0).distance}function J(V){const te=Kn(V,s);P=te,U=x&&te&&!V.buttons&&_,_=kt(o.get(),a.get())>=2,!(te&&V.button!==0)&&(H(V.target)||(M=!0,i.pointerDown(V),u.useFriction(0).useDuration(0),o.set(a),B(),I=i.readPoint(V),z=i.readPoint(V,N),m.emit("pointerDown")))}function W(V){if(!Kn(V,s)&&V.touches.length>=2)return X(V);const fe=i.readPoint(V),ye=i.readPoint(V,N),_e=kt(fe,I),Pe=kt(ye,z);if(!D&&!P&&(!V.cancelable||(D=_e>Pe,!D)))return X(V);const Be=i.pointerMove(V);_e>y&&(U=!0),u.useFriction(.3).useDuration(.75),l.start(),o.add(A(Be)),V.preventDefault()}function X(V){const fe=d.byDistance(0,!1).index!==f.get(),ye=i.pointerUp(V)*q(),_e=Q(A(ye),fe),Pe=hp(ye,_e),Be=j-10*Pe,Re=v+Pe/50;D=!1,M=!1,k.clear(),u.useDuration(Be).useFriction(Re),c.distance(_e,!x),P=!1,m.emit("pointerUp")}function re(V){U&&(V.stopPropagation(),V.preventDefault(),U=!1)}function G(){return M}return{init:F,destroy:Z,pointerDown:G}}function jp(e,t){let s,o;function i(f){return f.timeStamp}function a(f,m){const x=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(Kn(f,t)?f:f.touches[0])[x]}function l(f){return s=f,o=f,a(f)}function c(f){const m=a(f)-a(o),g=i(f)-i(s)>170;return o=f,g&&(s=f),m}function u(f){if(!s||!o)return 0;const m=a(o)-a(s),g=i(f)-i(s),x=i(f)-i(o)>170,y=m/g;return g&&!x&&ae(y)>.1?y:0}return{pointerDown:l,pointerMove:c,pointerUp:u,readPoint:a}}function kp(){function e(r){const{offsetTop:s,offsetLeft:o,offsetWidth:i,offsetHeight:a}=r;
vendor: 13,408 bytes, line 24
24return{top:s,right:o+i,bottom:s+a,left:o,width:i,height:a}}return{measure:e}}function Np(e){function t(s){return e*(s/100)}return{measure:t}}function Sp(e,t,r,s,o,i,a){const l=[e].concat(s);let c,u,d=[],f=!1;function m(w){return o.measureSize(a.measure(w))}function g(w){if(!i)return;u=m(e),d=s.map(m);function v(h){for(const N of h){if(f)return;const A=N.target===e,C=s.indexOf(N.target),R=A?u:d[C],T=m(A?e:s[C]);if(ae(T-R)>=.5){w.reInit(),t.emit("resize");break}}}c=new ResizeObserver(h=>{(gn(i)||i(w,h))&&v(h)}),r.requestAnimationFrame(()=>{l.forEach(h=>c.observe(h))})}function x(){f=!0,c&&c.disconnect()}return{init:g,destroy:x}}function Ip(e,t,r,s,o,i){let a=0,l=0,c=o,u=i,d=e.get(),f=0;function m(){const R=s.get()-e.get(),T=!c;let k=0;return T?(a=0,r.set(s),e.set(s),k=R):(r.set(e),a+=R/c,a*=u,d+=a,e.add(a),k=d-f),l=cr(k),f=d,C}function g(){const R=s.get()-t.get();return ae(R)<.001}function x(){return c}function y(){return l}function w(){return a}function v(){return N(o)}function h(){return A(i)}function N(R){return c=R,C}function A(R){return u=R,C}const C={direction:y,duration:x,velocity:w,seek:m,settled:g,useBaseFriction:h,useBaseDuration:v,useFriction:A,useDuration:N};return C}function Cp(e,t,r,s,o){const i=o.measure(10),a=o.measure(50),l=qe(.1,.99);let c=!1;function u(){return!(c||!e.reachedAny(r.get())||!e.reachedAny(t.get()))}function d(g){if(!u())return;const x=e.reachedMin(t.get())?"min":"max",y=ae(e[x]-t.get()),w=r.get()-t.get(),v=l.constrain(y/a);r.subtract(w*v),!g&&ae(w)<i&&(r.set(e.constrain(r.get())),s.useDuration(25).useBaseFriction())}function f(g){c=!g}return{shouldConstrain:u,constrain:d,toggleActive:f}}function Ep(e,t,r,s,o){const i=qe(-t+e,0),a=f(),l=d(),c=m();function u(x,y){return kt(x,y)<=1}function d(){const x=a[0],y=Te(a),w=a.lastIndexOf(x),v=a.indexOf(y)+1;return qe(w,v)}function f(){return r.map((x,y)=>{const{min:w,max:v}=i,h=i.constrain(x),N=!y,A=ur(r,y);return N?v:A||u(w,h)?w:u(v,h)?v:h}).map(x=>parseFloat(x.toFixed(3)))}function m(){if(t<=e+o)return[i.max];if(s==="keepSnaps")return a;const{min:x,max:y}=l;return a.slice(x,y)}return{snapsContained:c,scrollContainLimit:l}}function Tp(e,t,r){const s=t[0],o=r?s-e:Te(t);return{limit:qe(o,s)}}function Lp(e,t,r,s){const i=t.min+.1,a=t.max+.1,{reachedMin:l,reachedMax:c}=qe(i,a);function u(m){return m===1?c(r.get()):m===-1?l(r.get()):!1}function d(m){if(!u(m))return;const g=e*(m*-1);s.forEach(x=>x.add(g))}return{loop:d}}function _p(e){const{max:t,length:r}=e;function s(i){const a=i-t;return r?a/-r:0}return{get:s}}function Ap(e,t,r,s,o){const{startEdge:i,endEdge:a}=e,{groupSlides:l}=o,c=f().map(t.measure),u=m(),d=g();function f(){return l(s).map(y=>Te(y)[a]-y[0][i]).map(ae)}function m(){return s.map(y=>r[i]-y[i]).map(y=>-ae(y))}function g(){return l(u).map(y=>y[0]).map((y,w)=>y+c[w])}return{snaps:u,snapsAligned:d}}function Pp(e,t,r,s,o,i){const{groupSlides:a}=o,{min:l,max:c}=s,u=d();function d(){const m=a(i),g=!e||t==="keepSnaps";return r.length===1?[i]:g?m:m.slice(l,c).map((x,y,w)=>{const v=!y,h=ur(w,y);if(v){const N=Te(w[0])+1;return Os(N)}if(h){const N=Ft(i)-Te(w)[0]+1;return Os(N,Te(w)[0])}return x})}return{slideRegistry:u}}function Op(e,t,r,s,o){const{reachedAny:i,removeOffset:a,constrain:l}=s;function c(x){return x.concat().sort((y,w)=>ae(y)-ae(w))[0]}function u(x){const y=e?a(x):l(x),w=t.map((h,N)=>({diff:d(h-y,0),index:N})).sort((h,N)=>ae(h.diff)-ae(N.diff)),{index:v}=w[0];return{index:v,distance:y}}function d(x,y){const w=[x,x+r,x-r];if(!e)return x;if(!y)return c(w);const v=w.filter(h=>cr(h)===y);return v.length?c(v):Te(w)-r}function f(x,y){const w=t[x]-o.get(),v=d(w,y);return{index:x,distance:v}}function m(x,y){const w=o.get()+x,{index:v,distance:h}=u(w),N=!e&&i(w);if(!y||N)return{index:v,distance:x};const A=t[v]-h,C=x+d(A,0);return{index:v,distance:C}}return{byDistance:m,byIndex:f,shortcut:d}}function Rp(e,t,r,s,o,i,a){function l(f){const m=f.distance,g=f.index!==t.get();i.add(m),m&&(s.duration()?e.start():(e.update(),e.render(1),e.update())),g&&(r.set(t.get()),t.set(f.index),a.emit("select"))}function c(f,m){const g=o.byDistance(f,m);l(g)}function u(f,m){const g=t.clone().set(f),x=o.byIndex(g.get(),m);l(x)}return{distance:c,index:u}}function zp(e,t,r,s,o,i,a,l){const c={passive:!0,capture:!0};let u=0;function d(g){if(!l)return;function x(y){if(new Date().getTime()-u>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const h=r.findIndex(N=>N.includes(y));lr(h)&&(o.useDuration(0),s.index(h,0),a.emit("slideFocus"))}i.add(document,"keydown",f,!1),t.forEach((y,w)=>{i.add(y,"focus",v=>{(gn(l)||l(g,v))&&x(w)},c)})}function f(g){g.code==="Tab"&&(u=new Date().getTime())}return{init:d}}function bt(e){let t=e;function r(){return t}function s(c){t=a(c)}function o(c){t+=a(c)}function i(c){t-=a(c)}function a(c){return lr(c)?c:c.get()}return{get:r,set:s,add:o,subtract:i}}function ni(e,t){const r=e.scroll==="x"?a:l,s=t.style;let o=null,i=!1;function a(m){return`translate3d(${m}px,0px,0px)`}function l(m){return`translate3d(0px,${m}px,0px)`}function c(m){if(i)return;const g=gp(e.direction(m));g!==o&&(s.transform=r(g),o=g)}function u(m){i=!m}function d(){i||(s.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:d,to:c,toggleActive:u}}function Mp(e,t,r,s,o,i,a,l,c){const d=At(o),f=At(o).reverse(),m=v().concat(h());function g(T,k){return T.reduce((S,L)=>S-o[L],k)}function x(T,k){return T.reduce((S,L)=>g(S,k)>0?S.concat([L]):S,[])}function y(T){return i.map((k,S)=>({start:k-s[S]+.5+T,end:k+t-.5+T}))}function w(T,k,S){const L=y(k);return T.map(b=>{const j=S?0:-r,_=S?r:0,I=S?"end":"start",z=L[b][I];return{index:b,loopPoint:z,slideLocation:bt(-1),translate:ni(e,c[b]),target:()=>l.get()>z?j:_}})}function v(){const T=a[0],k=x(f,T);return w(k,r,!1)}function h(){const T=t-a[0]-1,k=x(d,T);return w(k,-r,!0)}function N(){return m.every(({index:T})=>{const k=d.filter(S=>S!==T);return g(k,t)<=.1})}function A(){m.forEach(T=>{const{target:k,translate:S,slideLocation:L}=T,b=k();b!==L.get()&&(S.to(b),L.set(b))})}function C(){m.forEach(T=>T.translate.clear())}return{canLoop:N,clear:C,loop:A,loopPoints:m}}function Dp(e,t,r){let s,o=!1;function i(c){if(!r)return;function u(d){for(const f of d)if(f.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}s=new MutationObserver(d=>{o||(gn(r)||r(c,d))&&u(d)}),s.observe(e,{childList:!0})}function a(){s&&s.disconnect(),o=!0}return{init:i,destroy:a}}function $p(e,t,r,s){const o={};let i=null,a=null,l,c=!1;function u(){l=new IntersectionObserver(x=>{c||(x.forEach(y=>{const w=t.indexOf(y.target);o[w]=y}),i=null,a=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:s}),t.forEach(x=>l.observe(x))}function d(){l&&l.disconnect(),c=!0}function f(x){return Pt(o).reduce((y,w)=>{const v=parseInt(w),{isIntersecting:h}=o[v];return(x&&h||!x&&!h)&&y.push(v),y},[])}function m(x=!0){if(x&&i)return i;if(!x&&a)return a;const y=f(x);return x&&(i=y),x||(a=y),y}return{init:u,destroy:d,get:m}}function Fp(e,t,r,s,o,i){const{measureSize:a,startEdge:l,endEdge:c}=e,u=r[0]&&o,d=x(),f=y(),m=r.map(a),g=w();function x(){if(!u)return 0;const h=r[0];return ae(t[l]-h[l])}function y(){if(!u)return 0;const h=i.getComputedStyle(Te(s));return parseFloat(h.getPropertyValue(`margin-${c}`))}function w(){return r.map((h,N,A)=>{const C=!N,R=ur(A,N);return C?m[N]+d:R?m[N]+f:A[N+1][l]-h[l]}).map(ae)}return{slideSizes:m,slideSizesWithGaps:g,startGap:d,endGap:f}}function Bp(e,t,r,s,o,i,a,l,c){const{startEdge:u,endEdge:d,direction:f}=e,m=lr(r);function g(v,h){return At(v).filter(N=>N%h===0).map(N=>v.slice(N,N+h))}function x(v){return v.length?At(v).reduce((h,N,A)=>{const C=Te(h)||0,R=C===0,T=N===Ft(v),k=o[u]-i[C][u],S=o[u]-i[N][d],L=!s&&R?f(a):0,b=!s&&T?f(l):0,j=ae(S-b-(k+L));return A&&j>t+c&&h.push(N),T&&h.push(v.length),h},[]).map((h,N,A)=>{const C=Math.max(A[N-1]||0);return v.slice(C,h)}):[]}function y(v){return m?g(v,r):x(v)}return{groupSlides:y}}function Vp(e,t,r,s,o,i,a){const{align:l,axis:c,direction:u,startIndex:d,loop:f,duration:m,dragFree:g,dragThreshold:x,inViewThreshold:y,slidesToScroll:w,skipSnaps:v,containScroll:h,watchResize:N,watchSlides:A,watchDrag:C,watchFocus:R}=i,T=2,k=kp(),S=k.measure(t),L=r.map(k.measure),b=bp(c,u),j=b.measureSize(S),_=Np(j),I=vp(l,j),z=!f&&!!h,M=f||!!h,{slideSizes:D,slideSizesWithGaps:U,startGap:P,endGap:F}=Fp(b,S,L,r,M,o),Z=Bp(b,j,w,f,S,L,P,F,T),{snaps:B,snapsAligned:H}=Ap(b,I,S,L,Z),q=-Te(B)+Te(U),{snapsContained:Q,scrollContainLimit:J}=Ep(j,q,H,h,T),W=z?Q:H,{limit:X}=Tp(q,W,f),re=ti(Ft(W),d,f),G=re.clone(),Y=At(r),V=({dragHandler:Ye,scrollBody:wn,scrollBounds:jn,options:{loop:Bt}})=>{Bt||jn.constrain(Ye.pointerDown()),wn.seek()},te=({scrollBody:Ye,translate:wn,location:jn,offsetLocation:Bt,previousLocation:ui,scrollLooper:di,slideLooper:fi,dragHandler:mi,animation:pi,eventHandler:vr,scrollBounds:xi,options:{loop:yr}},br)=>{const wr=Ye.settled(),hi=!xi.shouldConstrain(),jr=yr?wr:wr&&hi,kr=jr&&!mi.pointerDown();kr&&pi.stop();const gi=jn.get()*br+ui.get()*(1-br);Bt.set(gi),yr&&(di.loop(Ye.direction()),fi.loop()),wn.to(Bt.get()),kr&&vr.emit("settle"),jr||vr.emit("scroll")},fe=yp(s,o,()=>V(bn),Ye=>te(bn,Ye)),ye=.68,_e=W[re.get()],Pe=bt(_e),Be=bt(_e),Re=bt(_e),Ve=bt(_e),ft=Ip(Pe,Re,Be,Ve,m,ye),vn=Op(f,W,q,X,Ve),yn=Rp(fe,re,G,ft,vn,Ve,a),xr=_p(X),hr=Ot(),li=$p(t,r,a,y),{slideRegistry:gr}=Pp(z,h,W,J,Z,Y),ci=zp(e,r,gr,yn,ft,hr,a,R),bn={ownerDocument:s,ownerWindow:o,eventHandler:a,containerRect:S,slideRects:L,animation:fe,axis:b,dragHandler:wp(b,e,s,o,Ve,jp(b,o),Pe,fe,yn,ft,vn,re,a,_,g,x,v,ye,C),eventStore:hr,percentOfView:_,index:re,indexPrevious:G,limit:X,location:Pe,offsetLocation:Re,previousLocation:Be,options:i,resizeHandler:Sp(t,a,o,r,b,N,k),scrollBody:ft,scrollBounds:Cp(X,Re,Ve,ft,_),scrollLooper:Lp(q,X,Re,[Pe,Re,Be,Ve]),scrollProgress:xr,scrollSnapList:W.map(xr.get),scrollSnaps:W,scrollTarget:vn,scrollTo:yn,slideLooper:Mp(b,j,q,D,U,B,W,Re,r),slideFocus:ci,slidesHandler:Dp(t,a,A),slidesInView:li,slideIndexes:Y,slideRegistry:gr,slidesToScroll:Z,target:Ve,translate:ni(b,t)};return bn}function Hp(){let e={},t;function r(u){t=u}function s(u){return e[u]||[]}function o(u){return s(u).forEach(d=>d(t,u)),c}function i(u,d){return e[u]=s(u).concat([d]),c}function a(u,d){return e[u]=s(u).filter(f=>f!==d),c}function l(){e={}}const c={init:r,emit:o,off:a,on:i,clear:l};return c}const Zp={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Up(e){function t(i,a){return ei(i,a||{})}function r(i){const a=i.breakpoints||{},l=Pt(a).filter(c=>e.matchMedia(c).matches).map(c=>a[c]).reduce((c,u)=>t(c,u),{});return t(i,l)}function s(i){return i.map(a=>Pt(a.breakpoints||{})).reduce((a,l)=>a.concat(l),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:r,optionsMediaQueries:s}}function Wp(e){let t=[];function r(i,a){return t=a.filter(({options:l})=>e.optionsAtMedia(l).active!==!1),t.forEach(l=>l.init(i,e)),a.reduce((l,c)=>Object.assign(l,{[c.name]:c}),{})}function s(){t=t.filter(i=>i.destroy())}return{init:r,destroy:s}}function un(e,t,r){const s=e.ownerDocument,o=s.defaultView,i=Up(o),a=Wp(i),l=Ot(),c=Hp(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:f}=i,{on:m,off:g,emit:x}=c,y=b;let w=!1,v,h=u(Zp,un.globalOptions),N=u(h),A=[],C,R,T;function k(){const{container:Y,slides:V}=N;R=(Gn(Y)?e.querySelector(Y):Y)||e.children[0];const fe=Gn(V)?R.querySelectorAll(V):V;T=[].slice.call(fe||R.children)}function S(Y){const V=Vp(e,R,T,s,o,Y,c);if(Y.loop&&!V.slideLooper.canLoop()){const te=Object.assign({},Y,{loop:!1});return S(te)}return V}function L(Y,V){w||(h=u(h,Y),N=d(h),A=V||A,k(),v=S(N),f([h,...A.map(({options:te})=>te)]).forEach(te=>l.add(te,"change",b)),N.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(G),v.eventHandler.init(G),v.resizeHandler.init(G),v.slidesHandler.init(G),v.options.loop&&v.slideLooper.loop(),R.offsetParent&&T.length&&v.dragHandler.init(G),C=a.init(G,A)))}function b(Y,V){const te=Z();j(),L(u({startIndex:te},Y),V),c.emit("reInit")}function j(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),a.destroy(),l.clear()}function _(){w||(w=!0,l.clear(),j(),c.emit("destroy"),c.clear())}function I(Y,V,te){!N.active||w||(v.scrollBody.useBaseFriction().useDuration(V===!0?0:N.duration),v.scrollTo.index(Y,te||0))}function z(Y){const V=v.index.add(1).get();I(V,Y,-1)}function M(Y){const V=v.index.add(-1).get();I(V,Y,1)}function D(){return v.index.add(1).get()!==Z()}function U(){return v.index.add(-1).get()!==Z()}function P(){return v.scrollSnapList}function F(){return v.scrollProgress.get(v.offsetLocation.get())}function Z(){return v.index.get()}function B(){return v.indexPrevious.get()}function H(){return v.slidesInView.get()}function q(){return v.slidesInView.get(!1)}function Q(){return C}function J(){return v}function W(){return e}function X(){return R}function re(){return T}const G={canScrollNext:D,canScrollPrev:U,containerNode:X,internalEngine:J,destroy:_,off:g,on:m,emit:x,plugins:Q,previousScrollSnap:B,reInit:y,rootNode:W,scrollNext:z,scrollPrev:M,scrollProgress:F,scrollSnapList:P,scrollTo:I,selectedScrollSnap:Z,slideNo
24des:re,slidesInView:H,slidesNotInView:q};return L(t,r),setTimeout(()=>c.emit("init"),0),G}un.globalOptions=void 0;function dr(e={},t=[]){const r=p.useRef(e),s=p.useRef(t),[o,i]=p.useState(),[a,l]=p.useState(),c=p.useCallback(()=>{o&&o.reInit(r.current,s.current)},[o]);return p.useEffect(()=>{ar(r.current,e)||(r.current=e,c())},[e,c]),p.useEffect(()=>{xp(s.current,t)||(s.current=t,c())},[t,c]),p.useEffect(()=>{if(pp()&&a){un.globalOptions=dr.globalOptions;const u=un(a,r.current,s.current);return i(u),()=>u.destroy()}else i(void 0)},[a,i]),[l,o]}dr.globalOptions=void 0;function fr({children:e,options:t,gapClassName:r="gap-lg",control:s="arrows",className:o,slideClassName:i,controlsClassName:a}){const[l,c]=dr({align:"start",...t}),[u,d]=p.useState(!1),[f,m]=p.useState(!1),[g,x]=p.useState(0),[y,w]=p.useState(1),v=p.useCallback(C=>{d(C.canScrollPrev()),m(C.canScrollNext())},[]),h=p.useCallback(C=>{x(Math.max(0,Math.min(1,C.scrollProgress())))},[]),N=p.useCallback(C=>{w(C.scrollSnapList().length)},[]);p.useEffect(()=>{if(c)return v(c),h(c),N(c),c.on("select",v).on("scroll",h).on("reInit",v).on("reInit",h).on("reInit",N),()=>{c.off("select",v).off("scroll",h).off("reInit",v).off("reInit",h).off("reInit",N)}},[c,v,h,N]);const A=p.Children.toArray(e);return n.jsxs("div",{className:$("flex flex-col gap-lg",o),children:[n.jsx("div",{className:"overflow-hidden",ref:l,children:n.jsx("div",{className:$("flex",r),children:A.map(C=>n.jsx("div",{className:$("min-w-0 shrink-0",i),children:C},p.isValidElement(C)?C.key:void 0))})}),s==="arrows"&&n.jsxs("div",{className:$("flex justify-end gap-md",a),children:[n.jsx(Rs,{label:"Previous",disabled:!u,onClick:()=>c?.scrollPrev(),children:n.jsx(ge,{className:"size-[20px] rotate-180"})}),n.jsx(Rs,{label:"Next",disabled:!f,onClick:()=>c?.scrollNext(),children:n.jsx(ge,{className:"size-[20px]"})})]}),s==="progress"&&n.jsxs("div",{className:$("flex items-center gap-lg",a),children:[n.jsx("div",{className:"relative h-[2px] flex-1 bg-warm-black/12",children:n.jsx("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 bg-warm-black",style:{width:`${100/y}%`,transform:`translateX(${g*(y-1)*100}%)`}})}),n.jsxs("div",{className:"flex shrink-0",children:[n.jsx(zs,{label:"Previous",disabled:!u,onClick:()=>c?.scrollPrev(),children:n.jsx(ge,{className:"size-sm rotate-180"})}),n.jsx(zs,{label:"Next",disabled:!f,onClick:()=>c?.scrollNext(),children:n.jsx(ge,{className:"size-sm"})})]})]})]})}function Rs({label:e,disabled:t,onClick:r,children:s}){return n.jsx("button",{type:"button","aria-label":e,disabled:t,onClick:r,className:"flex size-2xl cursor-pointer items-center justify-center rounded-full border border-warm-black/20 text-warm-black transition-opacity disabled:cursor-default disabled:opacity-30",children:s})}function zs({label:e,disabled:t,onClick:r,children:s}){return n.jsx("button",{type:"button","aria-label":e,disabled:t,onClick:r,className:"flex size-lg cursor-pointer items-center justify-center bg-white text-warm-black transition-colors hover:bg-warm-black hover:text-off-white disabled:cursor-default disabled:bg-warm-black/12 disabled:text-warm-black/40",children:s})}function qp({data:e}){const t=(e.cards??[]).filter(c=>!!c?.title);if(!t.length)return null;const r=E(e.heading),s=E(e.cardStyle)??"hoverPink",o=t.length>3,i=xe(e.cta),a=i?n.jsx(Le,{href:i,newTab:e.cta?.openInNewTab,size:"lg",theme:"dark",children:Ne(e.cta)??"See more"}):null,l=t.map((c,u)=>n.jsx(fp,{href:xe(c.cta),newTab:c.cta?.openInNewTab,tag:c.tag,eyebrow:c.eyebrow,title:c.title??"",description:c.description,ctaLabel:Ne(c.cta),image:c.image?.image?.imageFile,imageAlt:c.image?.image?.alt??c.title??"",variant:s},c._key??`card-${u}`));return n.jsxs("section",{className:"flex flex-col gap-2xl bg-off-white desktop:px-2xl px-sm desktop:py-8xl py-2xl text-warm-black",children:[(r||a)&&n.jsxs("div",{className:"flex items-end justify-between gap-md",children:[r&&n.jsx("h2",{className:"font-headline text-display-md lowercase",children:r}),a&&n.jsx("div",{className:"desktop:block hidden",children:a})]}),o?n.jsx(fr,{control:"progress",gapClassName:"gap-sm",slideClassName:"basis-4/5 desktop:basis-[calc((100%-var(--spacing-4xl)-3*var(--spacing-sm))/3)]",children:l}):n.jsx(he,{className:"grid desktop:grid-cols-3 grid-cols-1 gap-2xl desktop:gap-x-sm desktop:gap-y-2xl",children:l}),a&&n.jsx("div",{className:"flex desktop:hidden justify-center",children:a})]})}function ri({className:e="size-xl"}){return n.jsx("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,
24className:e,children:n.jsx("path",{d:"M19.887 7.08984L15.2542 33.0898H0L7.68362 7.08984H19.887ZM20.113 33.0898L27.7966 7.08984H40L35.3672 33.0898H20.113Z",fill:"currentColor"})})}function Gp({quote:e}){const{bg:t,text:r}=ue(E(e.tileColor));return n.jsxs("div",{className:"flex w-full",children:[n.jsx("div",{className:`relative aspect-square flex-1 ${t} ${r}`,children:n.jsx(de,{svg:E(e.tileIcon),className:"absolute inset-[14.84%] size-[70.32%]"})}),n.jsx("div",{className:"aspect-square flex-1 overflow-hidden",children:n.jsx(oe,{source:e.photo?.image?.imageFile,alt:e.photo?.image?.alt,widths:[400,800],sizes:"(min-width: 64rem) 17vw, 50vw",className:"size-full"})})]})}function Kp({quote:e}){return n.jsxs("div",{className:"flex w-full flex-col justify-between gap-lg bg-white desktop:p-lg p-sm text-warm-black",children:[n.jsxs("div",{className:"flex flex-col gap-sm",children:[n.jsx(ri,{}),e.quote&&n.jsx("p",{className:"font-functional text-heading-md",children:e.quote})]}),(e.authorName||e.authorRole)&&n.jsxs("div",{className:"flex flex-col gap-3xs",children:[e.authorName&&n.jsx("p",{className:"font-functional text-label-sm",children:e.authorName}),e.authorRole&&n.jsx("p",{className:"font-functional text-body-md",children:e.authorRole})]})]})}function Yp({quote:e,reversed:t}){return n.jsxs("div",{className:"flex flex-1 flex-col",children:[n.jsx("div",{className:`flex flex-1 ${t?"desktop:order-2":""}`,children:n.jsx(Kp,{quote:e})}),n.jsx("div",{className:t?"desktop:order-1":void 0,children:n.jsx(Gp,{quote:e})})]})}function Xp({data:e}){const t=(e.quotes??[]).filter(r=>!!r);return t.length===0?null:n.jsxs("section",{className:"flex flex-col items-center gap-2xl border-warm-black/20 border-t bg-off-white desktop:px-2xl px-sm desktop:py-8xl py-2xl",children:[e.title&&n.jsx(le,{className:"w-full",children:n.jsx(Tt,{children:e.title})}),n.jsx(he,{className:"flex w-full desktop:flex-row flex-col desktop:items-stretch gap-sm",children:t.map((r,s)=>n.jsx(Yp,{quote:r,reversed:s%2===1},r._key??s))})]})}function Jp({steps:e,activeIndex:t,progress:r,className:s}){if(e.length===0)return null;const o=Math.min(Math.max(r,0),1);return n.jsxs("div",{className:`flex items-stretch gap-md text-off-white ${s??""}`,children:[n.jsx("div",{className:"flex flex-col items-end gap-sm py-2xs text-right font-functional text-label-md",children:e.map((i,a)=>n.jsx("span",{className:a===t?"":"opacity-60",children:i},i))}),n.jsx("div",{className:"relative w-xs self-stretch rounded-full bg-white/24 backdrop-blur-md",children:n.jsx("div",{className:"absolute inset-x-0",style:{to
24p:"calc(var(--spacing-2xs) + var(--text-label-md) / 2)",bottom:"calc(var(--spacing-2xs) + var(--text-label-md) / 2)"},children:n.jsx("span",{"aria-hidden":!0,className:"absolute left-1/2 size-sm bg-off-white",style:{top:`${o*100}%`,transform:"translate(-50%, -50%)",maskImage:"url(/icons/symbol-oscarhealth.svg)",WebkitMaskImage:"url(/icons/symbol-oscarhealth.svg)",maskRepeat:"no-repeat",WebkitMaskRepeat:"no-repeat",maskPosition:"center",WebkitMaskPosition:"center",maskSize:"contain",WebkitMaskSize:"contain"}})})})]})}function On({children:e,className:t,fill:r}){const s=r?"flex min-h-0 flex-1 flex-col":"";return n.jsx("div",{className:`overflow-hidden ${s} ${t??""}`,children:n.jsx("div",{"data-reveal":!0,className:s||void 0,children:e})})}function Qp({step:e,selectedCode:t,onToggle:r,panelIdPrefix:s}){const o=p.useMemo(()=>hn(e.states),[e.states]),i=(e.title??"").split(` 25`).filter(u=>u.trim().length>0),a=i.length>0&&n.jsx("h2",{className:"font-headline h-md:text-display-md text-display-sm",children:i.map((u,d)=>n.jsx(On,{className:"-mb-[0.22em] [&>[data-reveal]]:block [&>[data-reveal]]:pb-[0.22em]",children:u},`${u}-${d}`))});if(e._type==="mapStep")return n.jsxs(n.Fragment,{children:[a,n.jsx(On,{fill:!0,children:n.jsx(Ko,{items:o,fill:!0,detailMode:"disclosure",panelIdPrefix:s,selectedCode:t,onToggle:r})})]});const l=e.stats??[],c=l.length<=3;return n.jsxs(n.Fragment,{children:[a,n.jsx("div",{className:c?"flex flex-col gap-lg h-md:gap-2xl":"grid grid-cols-1 gap-x-2xl gap-y-md h-md:gap-y-lg sm:grid-cols-2",children:l.map((u,d)=>n.jsx(On,{children:n.jsx(or,{value:E(u.value)??"",label:u.label,icon:E(u.icon)??null,size:c?"lg-fit":"md"})},u._key??d))})]})}function ex({steps:e}){return n.jsx("div",{children:e.map((t,r)=>n.jsx(ir,{step:t,reverse:!0},t._key??r))})}function si(e){return Math.max(33,Math.min(50,(e-600)/300*17+33))}const tx=115,nx=96;function rx(e,t,r){return(e*si(t)/100-nx)/r>=tx}function sx({steps:e}){const t=p.useRef(null),r=p.useRef([]),s=p.useRef([]),o=p.useRef(!0),i=p.useRef(null),[a,l]=p.useState(0),c=e.length,[u,d]=p.useState(()=>window.innerHeight);p.useEffect(()=>{let T=0;const k=()=>{T||(T=requestAnimationFrame(()=>{T=0,d(window.innerHeight)}))};return window.addEventListener("resize",k),()=>{window.removeEventListener("resize",k),T&&cancelAnimationFrame(T)}},[]);const f=si(u),{selectedCode:m,toggle:g,close:x}=Jo();Qo(t,x,m!==null);const y=p.useMemo(()=>e.map(T=>T._type==="mapStep"?hn(T.states):null),[e]),w=p.useId(),v=p.useCallback(T=>`${w}step${T}-`,[w]);we(()=>{const T=t.current;!T||ve()||ke.create({trigger:T,start:"top top",end:"bottom bottom",invalidateOnRefresh:!0,onUpdate:k=>l(k.progress)})},{scope:t,dependencies:[c]});const h=c>1?a*(c-1):0,N=Math.round(h),A=e.map(T=>E(T.label)??""),C=m!=null&&e[N]?._type==="mapStep",R=p.useRef(null);return p.useEffect(()=>{if(m==null){R.current=null;return}if(R.current===null){R.current=N;return}R.current!==N&&x()},[m,N,x]),we(()=>{const T=r.current,k=i.current;i.current=N;const S=D=>T[D]?.querySelectorAll("h2 [data-reveal]")??[],L=D=>T[D]?.querySelectorAll(":scope > :not(h2)")??[];if(!(k!==null&&k!==N)||ve()){T.forEach((D,U)=>{if(!D)return;const P=U===N;O.set(D,{autoAlpha:P?1:0,zIndex:P?2:0}),O.set(S(U),{yPercent:0,autoAlpha:1}),O.set(L(U),{autoAlpha:1})});return}const j=N>k,_=j?100:-100,I=j?-100:100,z=T[N];z&&(O.set(z,{autoAlpha:1,zIndex:2}),O.fromTo(S(N),{yPercent:_,autoAlpha:0},{yPercent:0,autoAlpha:1,duration:ie.base,ease:ne.out,overwrite:!0}),O.fromTo(L(N),{autoAlpha:0},{autoAlpha:1,duration:ie.slow,ease:ne.out,overwrite:!0}));const M=k!==null?T[k]:null;if(M){const D=k;O.set(M,{autoAlpha:1,zIndex:1});const U=O.timeline({onComplete:()=>{i.current!==D&&O.set(M,{autoAlpha:0,zIndex:0})}});U.to(S(k),{yPercent:I,autoAlpha:0,duration:ie.base,ease:ne.out,overwrite:!0},0),U.to(L(k),{autoAlpha:0,duration:ie.fast,ease:ne.out,overwrite:!0},0)}},{scope:t,dependencies:[N,c]}),we(()=>{const T=s.current,k=o.current;o.current=!1,T.forEach((S,L)=>{if(!S)return;const b=L<=N?1:0;k||ve()?O.set(S,{opacity:b}):O.to(S,{opacity:b,duration:ie.base,ease:ne.out,overwrite:!0})})},{scope:t,dependencies:[N,c]}),n.jsxs("div",{ref:t,className:"relative",style:{height:`${c*100}vh`},children:[e.map((T,k)=>
25n.jsx(It,{style:{top:`${k*100}vh`}},T._key??k)),n.jsxs("div",{className:"sticky top-0 h-screen overflow-hidden",children:[e.map((T,k)=>n.jsx("div",{ref:S=>{s.current[k]=S},className:`absolute inset-0 ${ue(E(T.background)).bg}`,style:{opacity:k===0?1:0}},T._key??k)),n.jsxs("div",{className:"relative flex h-full",children:[n.jsx("div",{className:"relative h-full shrink-0 overflow-hidden",style:{width:`${f}%`},children:e.map((T,k)=>n.jsx("div",{ref:S=>{r.current[k]=S},"aria-hidden":k!==N,className:`absolute inset-0 flex flex-col justify-between gap-lg h-md:gap-2xl h-md:p-2xl p-lg ${ue(E(T.background)).text}`,children:n.jsx(Qp,{step:T,selectedCode:m,onToggle:g,panelIdPrefix:v(k)})},T._key??k))}),n.jsxs("div",{className:"relative h-full flex-1 overflow-hidden",children:[n.jsx(Ee,{index:N,axis:"y",directional:!0,inDuration:.8,outDuration:1.5,ease:"EASE.in",outDelay:.2,exitStyle:"slide",className:"absolute inset-0",children:e.map((T,k)=>{const S=Xo(T.photo),L=y[k];return n.jsxs("div",{className:"relative size-full",children:[S?n.jsx(oe,{source:T.photo?.image?.imageFile,alt:T.photo?.image?.alt,sizes:"(min-width: 64rem) 67vw, 100vw",className:"size-full"}):n.jsx("div",{className:"size-full"}),L&&n.jsx(ip,{items:L,selectedCode:m,onClose:x,panelIdPrefix:v(k)})]},T._key??k)})}),n.jsx("div",{"aria-hidden":!0,className:`pointer-events-none absolute inset-x-0 top-0 z-3 h-1/2 transition-opacity duration-300 ${C?"opacity-0":"opacity-100"}`,style:{background:"linear-gradient(to bottom, rgba(31,13,5,0.7) 0%, rgba(31,13,5,0.62) 25%, rgba(31,13,5,0.3) 60%, rgba(31,13,5,0) 100%)"}}),n.jsx(Jp,{className:`absolute top-2xl right-2xl z-10 transition-opacity duration-300 ${C?"pointer-events-none opacity-0":"opacity-100"}`,steps:A,activeIndex:N,progress:a})]})]})]})]})}function ox({data:e}){const t=(e.steps??[]).filter(Boolean),r=Oe("desktop"),s=er("sm"),o=Jn(),i=Oe("2xl"),{width:a,height:l}=iu({initializeWithValue:!1}),u=!t.some(d=>d._type==="mapStep")||rx(a??0,l??0,i?4:3);return t.length===0?null:n.jsx("section",{children:r&&o&&s&&u?n.jsx(sx,{steps:t}):n.jsx(ex,{steps:t})})}function ix({eyebrow:e,headline:t,className:r}){return n.jsxs("div",{className:`flex flex-col gap-lg ${r??""}`,children:[e&&n.jsx("p",{className:"font-functional text-label-md",children:e}),t&&n.jsx("h2",{className:"whitespace-pre-line font-headline text-display-md",children:t})]})}function ax({data:e}){const t=e.image?.image?.imageFile,r=e.perks??[],s=E(e.variant)!=="text",{bg:o,text:i}=ue(E(e.background)??"offWhite"),a=i==="text-off-white"?"border-off-white/20":"border-warm-black/20",l=t?.asset?._ref?n.jsx(ct,{speed:120,children:n.jsx(oe,{source:t,alt:e.image?.image?.alt,sizes:"(min-width: 64rem) 42vw, 100vw"})}):null,c=n.jsxs("div",{className:`flex flex-1 flex-col justify-between desktop:p-2xl px-sm py-2xl ${o} ${i} ${s?"desktop:gap-0 gap-5xl":"min-h-screen desktop:gap-6xl gap-4xl"}`,children:[n.jsxs(le,{className:"flex flex-col gap-lg",children:[n.jsx(ix,{eyebrow:e.eyebrow,headline:e.headline}),e.body&&n.jsx("p",{className:`font-functional text-body-lg ${s?"max-w-[480px]":"max-w-[640px]"}`,children:e.body})]}),r.length>0&&n.jsx(he,{className:"flex flex-col gap-2xl",children:r.map((u,d)=>n.jsxs("div",{className:`flex desktop:grid desktop:grid-cols-[3fr_2fr] flex-col desktop:items-start desktop:gap-sm gap-lg border-t py-sm ${a}`,children:[u.title&&n.jsx("p",{className:"font-functional text-heading-md",children:u.title}),u.description&&n.jsx("p",{className:"font-functional text-body-lg",children:u.description})]},u._key??d))})]});return n.jsx("section",{children:s?n.jsx(Dt,{media:l,mediaWidth:"5/12",children:c}):c})}const Nt="var(--color-off-white)",lx="var(--color-warm-black)",Yn=[{id:"oscar",name:"Oscar Insurance",logo:"/icons/hioscar-logomark.svg",bg:"var(--color-hot-blue)"},{id:"lucie",name:"Lucie Health Marketplace",logo:"/icons/lucie-logomark.svg",bg:"var(--color-lucie-orange)"},{id:"trove",name:"Trove Group",logo:"/icons/trove-logomark.svg",bg:"var(--color-trove-teal)"}],Ms=[Nt,...Yn.map(e=>e.bg),Nt],cx=5,ux=[0,.15,.35,.55,.8];function Ds(e){return ux.reduce((t,r,s)=>e>=r?s:t,0)}function dx(e){return e>=1&&e<=3}const $s="min(var(--text-display-2xl), calc(34svh - 56px))";function fx({data:e}){const[t,r]=p.useState(null),[s,o]=p.useState(0),[i,a]=p.useState(!1),l=p.useRef(null),c=p.useRef(null),u=p.useRef(null),d=p.useRef(null),f=p.useRef(null),m=p.useRef([null,null,null]),g=s===1?"oscar":s===2?"lucie":s===3?"trove":null,x=d
25x(s);we(()=>{if(ve()){a(!0);return}const h=l.current,N=c.current;if(!h||!N)return;const A=O.matchMedia();A.add(`(min-width: ${Dn.md})`,()=>{const C=u.current,R=d.current;if(!C||!R)return;O.set(C,{opacity:0,y:Ce.y});const T=Number.parseFloat(getComputedStyle(R).marginLeft),k=R.querySelectorAll(".brand-icon");O.set(R,{maxWidth:0,marginLeft:0,overflow:"hidden"}),O.set(k,{opacity:0,y:75}),O.set(N,{backgroundColor:Nt}),O.to(C,{opacity:1,y:0,duration:ie.slow,ease:ne.out,scrollTrigger:{trigger:h,start:Ce.start,once:!0}}),ke.create({trigger:h,start:"top 65%",once:!0,onEnter:()=>{O.timeline({onComplete:()=>a(!0)}).to(R,{maxWidth:"40rem",marginLeft:T,duration:1.2,ease:ne.inOut}).to(k,{opacity:1,y:0,duration:ie.base,ease:ne.out,stagger:.4},"+=0.20").set(R,{overflow:"visible"})}})}),A.add(`not all and (min-width: ${Dn.md})`,()=>{const C=f.current,R=m.current;if(!C)return;O.set(h,{height:`${cx*100}vh`}),O.set(C,{opacity:0,y:Ce.y}),O.set(N,{backgroundColor:Ms[0]}),O.set(R.filter(S=>S!==null),{y:600}),O.to(C,{opacity:1,y:0,duration:ie.fast,ease:ne.out,scrollTrigger:{trigger:h,start:"top 80%",once:!0}});let T=-1;const k=S=>{S!==T&&(T=S,o(S),O.to(N,{backgroundColor:Ms[S],duration:ie.fast,ease:ne.inOut,overwrite:"auto"}),R.forEach((L,b)=>{L&&O.to(L,{y:S>b?0:600,duration:1,ease:"power2.out",overwrite:"auto"})}))};ke.create({trigger:h,start:"top top",end:"bottom bottom",invalidateOnRefresh:!0,onRefresh:S=>k(Ds(S.progress)),onUpdate:S=>k(Ds(S.progress))})})},{scope:l});const y=p.useRef(null);function w(h){if(!i)return;r(h.id);const N=c.current;if(!N)return;y.current=h.bg,O.killTweensOf(N),O.timeline().to(N,{backgroundColor:h.bg,duration:.2,ease:ne.out})}function v(){r(null),y.current=null;const h=c.current;h&&(O.killTweensOf(h),O.to(h,{backgroundColor:Nt,duration:.3,ease:ne.inOut}))}return n.jsx("section",{ref:l,"aria-label":"Our family of care",className:"relative md:min-h-screen",children:n.jsxs("div",{ref:c,className:"sticky top-0 flex h-screen flex-col justify-center overflow-hidden md:static md:min-h-screen",children:[n.jsx("div",{}),n.jsxs("div",{ref:f,className:"px-sm text-center font-headline text-display-2xl md:hidden",style:{fontSize:$s,color:x?Nt:lx,transition:"color 0.6s ease"},children:["our family ",n.jsx("br",{})," of care"]}),n.jsx("div",{className:"flex w-full justify-center pt-lg md:hidden",children:n.jsx("div",{className:"flex items-end gap-sm px-sm pb-sm text-display-2xl md:hidden",style:{fontSize:$s},children:Yn.map((h,N)=>{const A=g===h.id;return n.jsx("div",{ref:C=>{m.current[N]=C},children:n.jsxs("div",{className:"relative flex flex-col items-center",style:{opacity:x?A?1:.25:1,transition:"opacity 0.5s ease"},children:[n.jsx("img",{src:h.logo,alt:h.name,className:"h-[0.9em] w-auto",style:{filter:x?"brightness(0) invert(1)":"none",transition:"filter 0.5s ease"}}),n.jsx("span",{className:"-translate-x-1/2 pointer-events-none absolute top-full left-1/2 mt-xs w-[80vw] max-w-[20rem] text-center font-functional text-heading-sm text-off-white transition-opacity duration-300",style:{opacity:A?1:0},children:h.name})]})},h.id)})})}),n.jsx("div",{className:"hidden flex-1 flex-col items-center justify-center gap-lg md:flex",children:n.jsx("div",{ref:u,className:`flex items-end text-center font-headline text-display-2xl ${t?"text-off-white/30":""} transition-colors`,children:n.jsxs("span",{children:["our family ",n.jsx("br",{})," of",n.jsxs("div",{ref:d,className:`ml-xl inline-flex items-center ${i?"":"pointer-events-none"}`,onMouseLeave:v,children:[Yn.map(h=>n.jsxs("div",{className:"brand-icon relative flex flex-col items-center px-20",onMouseEnter:()=>w(h),children:[n.jsx("img",{src:h.logo,alt:"",className:"h-[0.63em] w-auto cursor-pointer",style:{filter:t?"brightness(0) invert(1)":"none",opacity:t?t===h.id?1:.32:1,transition:"opacity 0.5s ease"}}),n.jsx("span",{className:"pointer-events-none absolute top-full mt-xs whitespace-nowrap font-functional text-heading-sm text-off-white",style:{opacity:t===h.id?1:0,transform:`translateY(${t===h.id?"0":"-6px"})`,transition:"opacity 0.2s ease, transform 0.2s ease"},"aria-hidden":!0,children:h.name})]}
25,h.id))," "]})," ","care"]})})})]})})}function mx({data:e}){const{bg:t,text:r}=ue(E(e.backgroundColor)),s=e.links?.filter(o=>o.label&&o.anchor)??[];return n.jsx("section",{className:`${t} ${r}`,children:n.jsxs("div",{className:"flex items-end justify-between px-sm pt-9xl pb-lg lg:px-2xl lg:pb-2xl",children:[e.header&&n.jsx("h1",{className:"whitespace-pre-wrap font-headline text-display-2xl lg:mb-[-0.15em]",children:e.header}),s.length>0&&n.jsx("div",{className:"ml-xl hidden shrink-0 flex-col items-end gap-2xs lg:flex",children:s.map(o=>{const i=E(o.anchor)??"";return n.jsx("a",{href:`#${i}`,className:"font-functional text-label-md transition-opacity duration-200 hover:opacity-70",children:o.label},o._key)})})]})})}const px={block:{normal:({children:e})=>n.jsx("p",{className:"leading-[1.2]",children:e})}};function xx({data:e}){const t=e.quote;if(!t?.quote)return null;const{bg:r,text:s}=ue(E(e.backgroundColor));return n.jsxs("section",{className:`flex flex-col items-center gap-6xl px-sm py-6xl lg:px-2xl ${r} ${s}`,children:[n.jsxs(he,{className:"flex flex-col items-center gap-lg",children:[n.jsx(ri,{}),n.jsx("div",{className:"max-w-[900px] text-center font-functional text-heading-xl",children:n.jsx(Mt,{value:t.quote,components:px})})]}),(t.authorName||t.authorDescription)&&n.jsxs("div",{className:"flex flex-col items-center gap-sm text-center",children:[t.authorName&&n.jsx("p",{className:"font-functional text-heading-md",children:t.authorName}),t.authorDescription&&n.jsx("p",{className:"font-functional text-body-md lg:text-body-lg",children:t.authorDescription})]})]})}function hx(e){return(e??[]).map(t=>E(t?.title)).filter(t=>!!t)}function gx(e){return`/news/${E(e)??""}`}function vx({articles:e,heading:t,count:r,cardStyle:s,showCategory:o,cta:i}){const a=Oe("desktop"),l=e.slice(0,r??3);if(!l.length)return null;const c=E(t)||"read next",u=E(s)??"hoverPink",d=o!==!1,f=a&&l.length>3,m=l.map(x=>n.jsx(No,{href:gx(x.slug),title:x.title??"",date:x.publishedAt?Ze(x.publishedAt):null,categories:hx(x.categories),image:x.cardImage?.image?.imageFile,imageAlt:x.cardImage?.image?.alt??x.title??"",variant:u,showCategory:d},x._id)),g=i?n.jsx(Le,{href:i.href,size:"lg",theme:"dark",children:i.label}):null;return n.jsxs("section",{className:"flex flex-col gap-2xl bg-off-white desktop:px-2xl px-sm desktop:py-8xl py-2xl text-warm-black",children:[n.jsxs("div",{className:"flex items-end justify-between gap-md",children:[n.jsx("h2",{className:"font-headline text-display-md lowercase",children:c}),g&&n.jsx("div",{className:"desktop:block hidden",children:g})]}),f?n.jsx(fr,{control:"progress",gapClassName:"gap-sm",className:"desktop:-mr-2xl -mr-sm",controlsClassName:"desktop:pr-2xl pr-sm",slideClassName:"basis-4/5 desktop:basis-[calc((100%-var(--spacing-4xl)-3*var(--spacing-sm))/3)]",children:m}):n.jsx(he,{className:"grid desktop:grid-cols-3 grid-cols-1 gap-2xl desktop:gap-x-sm desktop:gap-y-2xl",children:m}),g&&n.jsx("div",{className:"flex desktop:hidden justify-center",children:g})]})}function yx({data:e}){const t=(e.articles??[]).filter(o=>!!(o?._id&&E(o.slug))),r={href:xe(e.cta)??"/news",label:Ne(e.cta)??"See more"},s=E(e.source)==="manual"?t.length:e.count;return n.jsx(vx,{articles:t,heading:e.heading,count:s,cardStyle:e.cardStyle,showCategory:e.showCategory,cta:r})}function bx({data:e}){const t=e.body??[],r=e.bodySecondary??[],s=e.photo?.image?.imageFile,o=E(e.variant)!=="text"&&!!s?.asset?._ref;if(!e.title&&t.length===0)return null;const{bg:i,text:a}=ue(E(e.background)),l=n.jsxs("div",{className:`flex flex-1 flex-col justify-between gap-4xl desktop:p-2xl px-sm py-2xl ${i} ${a} ${o?"":"min-h-screen"}`,children:[e.title&&n.jsx(Tt,{children:e.title}),t.length>0&&(o?n.jsx("div",{className:"min-w-0 desktop:max-w-[746px]",children:n.jsx(nt,{value:t})}):n.jsxs("div",{className:"grid desktop:grid-cols-2 gap-2xl",children:[n.jsx("div",{className:"min-w-0",children:n.jsx(nt,{value:t})}),r.length>0&&n.jsx("div",{className:"min-w-0",children:n.jsx(nt,{value:r})})]}))]});return o?n.jsx("section",{children:n.jsx(Dt,{media:n.jsx(ct,{speed:120,children:n.jsx(oe,{source:s,alt:e.photo?.image?.alt,sizes:"(min-width: 64rem) 42vw, 100vw",className:"size-full"})}),mediaWidth:"5/12",reverse:!0,children:l})}):n.jsx("section",{children:l})}const wx={block:{normal:({children:e})=>n.jsx("p",{className:"mt-xs first:mt-0",children:e})},list:{bullet:({children:e})=>n.jsx("ul",{className:"mt-md flex flex-col gap-2xs first:mt-0",children:e}),number:({children:e})=>n.jsx("ol",{className:"mt-md flex flex-col gap-2xs first:mt-0",children:e})},listItem:{bullet:({children:e})=>n.jsxs("li",{className:"flex items-center justify-center text-center",children:[n.jsx("span",{className:"mr-sm flex shrink-0 items-center",children:n.jsx(Rt,{className:"size-xs"})}),n.jsx("span",{children:e})]}),number:({children:e,index:t})=>n.jsxs("li",{className:"flex items-center justify-center text-center",children:[n.jsx("span",{className:"mr-sm shrink-0 text-heading-xs leading-none",children:String((t??0)+1).padStart(2,"0")}),n.jsx("span",{children:e})]})},marks:{strong:({children:e})=>n.jsx("strong",{className:"font-semibold",children:e}),em:({children:e})=>n.jsx("em",{className:"italic",children:e})}};function mr({data:e,overlay:t,rootRef:r}){const s=E(e.variant),o=!t&&(s==="statement"||s==="compact")?s:"hero",i=xe(e.cta),a=Ne(e.cta),l=(e.body??[]).length>0,c=(e.items??[]).filter(h=>E(h.title)||E(h.body)||h.icon),u=l||!!e.subheading,d=o==="hero"?"text-display-lg md:text-display-xl":"text-display-lg",f=!!e.cta?.openInNewTab||/^(https?:|mailto:|tel:)/.test(i??""),m=i&&a?n.jsx(Le,{href:i,newTab:e.cta?.openInNewTab??void 0,size:"lg",variant:"fill",theme:"dark",trailingIcon:f?n.jsx(Xn,{className:"size-md"}):n.jsx(ge,{className:"size-lg",direction:E(e.ctaArrowDirection)}),children:a}):null,g=e.isH1?"h1":"h2",x=n.jsx(g,{className:`flex flex-col items-center gap-lg text-center font-headline ${d}`,children:n.jsx("span",{className:"text-center",children:n.jsx(qo,{text:e.headline??"",leadingIcon:e.leadingIcon,trailingIcon:e.trailingIcon})})}),w=u||c.length>0||o!=="hero"&&!!m?n.jsxs("div",{className:"flex max-w-[744px] flex-col items-center gap-2xl text-center",children:[u&&n.jsxs("div",{className:"flex flex-col items-center gap-2xl lg:gap-lg",children:[e.subheading&&n.jsx("p",{className:"font-functional text-heading-sm",children:e.subheading}),l&&n.jsx("div",{className:"w-full font-functional text-body-md lg:text-body-lg",children:n.jsx(Mt,{value:e.body,components:wx})})]}),c.length>0&&n.jsx("ul",{className:"flex w-full flex-col gap-2xl lg:flex-row lg:gap-lg",children:c.map(h=>n.jsxs("li",{className:"flex flex-1 flex-col items-center gap-sm text-center",children:[n.jsx(de,{svg:E(h.icon),className:"size-2xl"}),h.title&&n.jsx("p",{className:"font-functional text-heading-xs",children:E(h.title)}),h.body&&n.jsx("p",{className:"font-functional text-body-md",children:E(h.body)})]},h._key))}),o!=="hero"&&m]}):null;if(o==="statement"||o==="compact"){const h=o==="compact",N=h?"py-4xl lg:py-6xl":"min-h-screen py-9xl";return n.jsx("section",{className:`flex items-center justify-center bg-background px-sm text-text lg:px-2xl ${N}`,children:n.jsxs(he,{className:`flex w-full flex-col items-center lg:max-w-[1250px] ${h?"gap-xl":"gap-6xl"}`,children:[e.eyebrow&&n.jsx(Mn,{align:"center",children:e.eyebrow}),x,w]})})}const v=t?"div":he;
25return n.jsxs("section",{ref:r,style:t?{opacity:0}:void 0,className:t?"absolute inset-0 z-20 grid h-full grid-rows-[auto_1fr_auto] bg-background px-sm text-text lg:px-2xl":"grid min-h-screen grid-rows-[auto_1fr_auto] bg-background px-sm text-text lg:px-2xl",children:[n.jsx("div",{className:e.eyebrow?"justify-self-center pt-2xl":void 0,children:e.eyebrow&&n.jsx(Mn,{align:"center",children:e.eyebrow})}),n.jsxs(v,{className:"flex w-full flex-col items-center justify-center gap-xl justify-self-center py-2xl lg:max-w-[1250px]",children:[x,w]}),n.jsx("div",{className:m?"justify-self-center pb-2xl":void 0,children:m})]})}function jx({data:e}){const t=e.stats??[];return!e.title&&t.length===0?null:n.jsx("section",{children:n.jsx(ir,{step:{_type:"statsStep",title:e.title,background:e.background,photo:e.photo,stats:t},reverse:!0})})}function kx(e){const t=/\d+(?:,\d{3})*(?:\.\d+)?/g,r=Array.from(e.matchAll(t));if(r.length===0)return[{type:"text",value:e}];const s=[];let o=0;for(const i of r){const a=i.index??0,l=i[0];a>o&&s.push({type:"text",value:e.slice(o,a)});const c=Number.parseFloat(l.replace(/,/g,""));Number.isNaN(c)||s.push({type:"number",value:l,numericValue:c}),o=a+l.length}return o<e.length&&s.push({type:"text",value:e.slice(o)}),s}function Nx(e){const t=e.includes(","),r=e.match(/\.(\d+)/)?.[1]?.length??0;return s=>{const o=s.toFixed(r);if(!t)return o;const[i,a]=o.split("."),l=(i??"").replace(/\B(?=(\d{3})+(?!\d))/g,",");return a?`${l}.${a}`:l}}function Sx({text:e,className:t,duration:r=2,delay:s=0,start:o=Ce.start}){const i=p.useRef(null),a=p.useMemo(()=>kx(e),[e]);return we(()=>{const l=i.current;if(!l||ve())return;const c=Array.from(l.querySelectorAll("[data-counter]"));if(c.length===0)return;const u=c.map(f=>{const m=Number(f.dataset.value),g=Nx(f.dataset.format??"");f.textContent=g(0);const x={current:0};return O.to(x,{current:m,duration:r,delay:s,ease:ne.out,paused:!0,onUpdate:()=>{f.textContent=g(x.current)}})}),d=O.timeline({scrollTrigger:{trigger:l,start:o,once:!0}});for(const f of u)d.add(()=>f.play(),0)},{scope:i,dependencies:[e]}),n.jsxs("span",{ref:i,className:t,children:[n.jsx("span",{className:"sr-only",children:e}),n.jsx("span",{"aria-hidden":"true",children:a.map((l,c)=>l.type==="number"?n.jsx("span",{"data-counter":!0,"data-value":l.numericValue,"data-format":l.value,children:l.value},c):n.jsx("span",{children:l.value},c))})]})}const Ix=new Set(["coolPink","troveLime","offWhite"]);function Cx({data:e}){const t=e.photo?.image?.imageFile,r=ue(E(e.headerBackgroundColor)??"warmBlack"),s=E(e.iconBackgroundColor)??"clay",o=ue(s),i=Ix.has(s)?"text-warm-black":"text-off-white",a=e.darkOverlay,l=a?!!a.enabled:!0,c=Math.min(100,Math.max(0,a?a.opacity??0:20))/100;return n.jsxs("section",{className:"flex desktop:min-h-screen desktop:flex-row flex-col overflow-hidden",children:[n.jsxs("div",{className:"flex desktop:w-[33.75%] desktop:max-w-[512px] flex-col",children:[n.jsxs("div",{className:$("flex flex-1 flex-col justify-between gap-2xl p-2xl max-desktop:aspect-square max-desktop:px-sm max-desktop:py-2xl",r.bg,r.text),children:[e.headline&&n.jsx(le,{children:n.jsx("h2",{className:"wrap-anywhere whitespace-pre-wrap font-headline text-display-md",children:e.headline})}),e.body&&n.jsx(le,{children:n.jsx("p",{className:"font-functional text-body-lg",children:e.body})})]}),n.jsx("div",{"aria-hidden":!0,className:$("relative desktop:flex hidden aspect-square min-h-0 shrink-0 items-center justify-center p-3xl",o.bg),children:n.jsx(de,{svg:E(e.icon),tightViewBox:!0,className:$("size-full justify-center [&>svg]:w-full",i)})})]}),n.jsxs("div",{className:"relative flex aspect-square desktop:aspect-auto desktop:flex-1 flex-col justify-end desktop:gap-2xl gap-sm bg-warm-black desktop:p-2xl p-sm",children:[t?.asset?._ref&&n.jsxs("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",children:[n.jsx(oe,{source:t,alt:e.photo?.image?.alt,sizes:"(min-width: 64rem) calc(100vw - min(33.75vw, 512px)), 100vw",className:"absolute inset-0 object-center"}),l&&n.jsx("div",{className:"absolute inset-0",style:{backgroundColor:"#000",opacity:c}})]}),n.jsxs("div",{className:"relative flex flex-col desktop:gap-2xl gap-sm",children:[e.statValue&&n.jsx(Sx,{text:E(e.statValue)??"",className:"font-headline text-display-2xl text-off-white"}),e.statLabel&&n.jsx("p",{className:"font-functional text-heading-lg text-off-white",children:e.statLabel})]})]})]})}const Fs={default:"pt-8xl",small:"pt-2xl",none:"pt-0"};function Ex({data:e}){const t=e.text??[];if(!t.length)return null;const r=Fs[E(e.topPadding)??"default"]??Fs.default;return n.jsx("section",{className:`bg-off-white desktop:px-2xl px-sm pb-8xl text-warm-black ${r}`,children:n.jsx(le,{className:"desktop:mx-auto min-w-0 desktop:max-w-[746px] [&_*]:text-wrap",children:n.jsx(nt,{value:t})})})}function pr(e){const t=e?.image?.imageFile;return at(t,{width:1400})}function oi(e){return e.replace(/(\d{4})-(\d{4})/,`$1- 26$2`)}function ii(e){const t=E(e);return en[t]?.bg??en.hotBlue.bg}function ai(e){const t=E(e);return en[t]?.text??en.hotBlue.text}const Tx=74,Lx=52,_x=(e,t)=>Math.max(0,(e-1)*t),et=70,Ae=56,vt=8,Rn=.3,Bs=1,Ax=1.4,Px=1.08,Ox="41.5%";function Rx({item:e,onReadMore:t}){const r=pr(e.photo),s=E(e.period)??"",o=E(e.icon),i=E(e.iconColor);return n.jsxs("div",{className:"bg-warm-black text-off-white",children:[r&&n.jsx("div",{className:"relative aspect-[4/3] overflow-hidden",children:n.jsx(oe,{source:e.photo?.image?.imageFile,alt:e.photo?.image?.alt,className:"absolute inset-0"})}),n.jsxs("div",{className:"flex",children:[n.jsx("div",{className:"flex aspect-square flex-col items-start justify-end bg-off-white p-lg text-warm-black",style:{width:"50%"},children:n.jsx("span",{className:"whitespace-pre-line font-headline text-display-lg",children:oi(s)})}),n.jsx("div",{className:`relative aspect-square flex-1 ${ii(i)} flex items-center justify-center`,children:n.jsx(de,{svg:o,tightViewBox:!0,className:`absolute inset-0 justify-center p-2xl [&>svg]:w-full ${ai(i)}`})})]}),n.jsxs("div",{className:"flex flex-col gap-lg px-sm py-2xl",children:[e.eyebrow&&n.jsx("p",{className:"font-functional text-label-md text-off-white/60",children:e.eyebrow}),e.headline&&n.jsx("h3",{className:"font-functional text-heading-xl text-off-white",children:e.headline}),e.body&&n.jsx("p",{className:"font-functional text-body-lg text-white/80",children:e.body}),e.extendedDescription&&n.jsxs("button",{type:"button",onClick:t,className:"flex w-fit cursor-pointer items-center gap-xs font-functional text-label-md text-off-white",children:["Read more",n.jsx("img",{src:"/icons/plus.svg",alt:"","aria-hidden":!0,
26className:"block size-md"})]})]})]})}function zx({items:e,onReadMore:t}){return n.jsx("div",{children:e.map((r,s)=>n.jsx(Rx,{item:r,onReadMore:()=>t(s)},r._key??s))})}function Mx({item:e,onReadMore:t}){const r=E(e.headline)?.split(` 27`).filter(Boolean)??[];return n.jsxs("div",{className:"flex h-full flex-col justify-center gap-sm h-xs:gap-lg",children:[e.eyebrow&&n.jsx("p",{"data-fade":!0,className:"overflow-hidden text-ellipsis whitespace-nowrap font-functional text-label-md text-off-white/60",children:e.eyebrow}),r.length>0&&n.jsx("h3",{className:"font-functional h-xs:text-heading-xl text-heading-lg text-off-white",children:r.map(s=>n.jsx("span",{className:"-mb-[0.15em] block overflow-hidden pb-[0.15em]",children:n.jsx("span",{"data-reveal":!0,className:"block",children:s})},s))}),e.body&&n.jsx("p",{"data-fade":!0,className:"font-functional text-body-lg text-white/80",children:e.body}),e.extendedDescription&&n.jsxs("button",{type:"button","data-fade-late":!0,onClick:t,className:"flex w-fit cursor-pointer items-center gap-xs font-functional text-label-md text-off-white",children:["Read more",n.jsx("img",{src:"/icons/plus.svg",alt:"","aria-hidden":!0,className:"block size-md"})]})]})}function Dx({items:e,statement:t,hasStatement:r,compact:s,onReadMore:o}){const i=p.useRef(null),a=p.useRef(null),l=p.useRef(null),c=p.useRef(null),u=p.useRef(null),d=p.useRef(null),f=p.useRef(null),m=p.useRef(null),g=p.useRef(null),x=p.useRef([]),y=p.useRef(null),[w,v]=p.useState(0),h=e.length,N=s?Lx:Tx,A=_x(h,N),C=dn();function R(S){const L=i.current;!L||typeof window>"u"||C?.scrollTo(L.offsetTop+S*et/100*window.innerHeight,{immediate:!0})}function T(S){v(S),R(S)}function k(S){const L=u.current;if(!L||h<2)return;const b=L.getBoundingClientRect(),j=Math.max(0,Math.min(1,(S.clientY-b.top)/A));T(Math.round(j*(h-1)))}return we(()=>{const S=i.current,L=a.current,b=l.current,j=c.current,_=m.current,I=g.current,z=d.current,M=f.current;if(!S||!L||!b||!j||!_||!z||!M||ve())return;ke.create({trigger:S,start:"top top",endTrigger:z,end:"top top",invalidateOnRefresh:!0,onUpdate:G=>v(h>1?Math.round(G.progress*(h-1)):0)});const D=_.querySelector("[data-ball-dot]"),U=()=>Math.hypot(window.innerWidth,window.innerHeight)*Px,P=()=>U()*(vt/Ae);let F=0,Z=0;const B=()=>{const G=j.getBoundingClientRect(),Y=L.getBoundingClientRect();F=G.left+G.width/2-(Y.left+Y.width/2),Z=G.top+G.height/2-(Y.top+Y.height/2)};B();const H=G=>{O.set(_,{autoAlpha:G?1:0}),O.set(j,{autoAlpha:G?0:1})},q=()=>C?.stop(),Q=()=>C?.start();I&&O.set(I,{autoAlpha:0});const J=O.timeline({paused:!0,onComplete:Q,onReverseComplete:()=>{Q(),H(!1),O.set(b,{yPercent:0,autoAlpha:1}),I&&O.set(I,{autoAlpha:0})}});J.timeScale(Ax),J.fromTo(b,{yPercent:0},{yPercent:-100,ease:"power2.in",duration:.55,immediateRender:!1},0),J.fromTo(_,{xPercent:-50,yPercent:-50,x:()=>F,y:()=>Z,width:Ae,height:Ae,immediateRender:!1},{x:0,y:0,width:U,height:U,ease:"power2.inOut",duration:.9},.15),D&&(J.fromTo(D,{width:vt,height:vt,immediateRender:!1},{width:P,height:P,ease:"power2.inOut",duration:.9},.15),J.fromTo(D,{width:P},{width:0,height:0,ease:"power2.in",duration:.5,immediateRender:!1},1.05)),I&&J.fromTo(I,{autoAlpha:0},{autoAlpha:1,ease:"power1.out",duration:.4,immediateRender:!1},1.7);const W=()=>{Q(),H(!0),J.progress(1,!0).pause(),I&&O.set(I,{autoAlpha:1})},X=()=>{Q(),H(!1),J.progress(0,!0).pause(),O.set(b,{yPercent:0,autoAlpha:1}),I&&O.set(I,{autoAlpha:0})};ke.create({trigger:M,start:"top top",endTrigger:S,end:"bottom bottom",invalidateOnRefresh:!0,onEnter:()=>{if(Sr()){W();return}B(),J.invalidate(),H(!0),O.set(_,{xPercent:-50,yPercent:-50,x:F,y:Z,width:Ae,height:Ae}),q(),J.restart()},onEnterBack:()=>H(!0),onLeaveBack:()=>{if(Sr()){X();return}if(J.progress()===0){X();return}q(),J.reverse()},onLeave:W,onRefresh:G=>
27{B(),J.invalidate(),G.scroll()>=G.start?W():X()}});const re=()=>{J.progress()!==0&&(X(),R(h-1),L.scrollTop=0)};return b.addEventListener("focusin",re),()=>{Q(),b.removeEventListener("focusin",re)}},{scope:i,dependencies:[h,r,C]}),we(()=>{const S=c.current,L=x.current,b=y.current;if(y.current=w,!S)return;const j=b!==null&&b!==w;O.to(S,{y:h>1?w/(h-1)*A:0,duration:j?ie.base:0,ease:ne.out,overwrite:!0});const _=Z=>L[Z]?.querySelectorAll("[data-reveal]")??[],I=Z=>L[Z]?.querySelectorAll("[data-fade]")??[],z=Z=>L[Z]?.querySelectorAll("[data-fade-late]")??[];if(ve()){L.forEach((Z,B)=>{if(!Z)return;const H=B===w;O.set(Z,{autoAlpha:H?1:0,zIndex:H?2:0}),O.set(_(B),{yPercent:0}),O.set(I(B),{autoAlpha:H?1:0}),O.set(z(B),{autoAlpha:H?1:0})});return}const M=b!==null&&w<b,D=M?-100:100,U=-D,P={each:Ce.stagger,from:M?"end":"start"},F={each:Ce.stagger,from:M?"start":"end"};L.forEach((Z,B)=>{Z&&(B===w?(O.set(Z,{autoAlpha:1,zIndex:2}),j?(O.fromTo(_(B),{yPercent:D},{yPercent:0,duration:ie.base,ease:ne.out,stagger:P,overwrite:!0}),O.fromTo(I(B),{autoAlpha:0},{autoAlpha:1,duration:ie.base,delay:Ce.stagger*2,ease:ne.out,overwrite:!0}),O.fromTo(z(B),{autoAlpha:0},{autoAlpha:1,duration:ie.base,delay:Ce.stagger*3,ease:ne.out,overwrite:!0})):(O.set(_(B),{yPercent:0}),O.set(I(B),{autoAlpha:1}),O.set(z(B),{autoAlpha:1}))):j&&B===b?(O.set(Z,{zIndex:1}),O.to(_(B),{yPercent:U,duration:ie.fast,ease:ne.out,stagger:F,overwrite:!0}),O.to(I(B),{autoAlpha:0,duration:ie.fast,ease:ne.out,overwrite:!0}),O.to(z(B),{autoAlpha:0,duration:ie.fast,ease:ne.out,overwrite:!0}),O.to(Z,{autoAlpha:0,duration:0,delay:ie.fast,overwrite:!1,onComplete:()=>{O.set(Z,{zIndex:0}),O.set(_(B),{yPercent:D})}})):(O.set(Z,{autoAlpha:0,zIndex:0}),O.set(_(B),{yPercent:D}),O.set(I(B),{autoAlpha:0}),O.set(z(B),{autoAlpha:0})))})},{scope:i,dependencies:[w,h,A]}),n.jsxs("div",{ref:i,className:"relative",style:{height:`${(h-1)*et+100+Rn*100+Bs*100}vh`},children:[e.map((S,L)=>n.jsx(It,{style:{top:`${L*et}vh`}},S._key??L)),n.jsx("div",{ref:d,"aria-hidden":!0,className:"pointer-events-none absolute left-0 h-px w-px",style:{top:`${(h-1)*et}vh`}}),n.jsx("div",{ref:f,"aria-hidden":!0,className:"pointer-events-none absolute left-0 h-px w-px",style:{top:`${(h-1)*et+Rn*100}vh`}}),n.jsx(It,{style:{top:`${(h-1)*et+Rn*100+Bs*100}vh`}}),n.jsxs("div",{ref:a,className:"sticky top-0 h-screen overflow-hidden bg-warm-black",children:[n.jsxs("div",{ref:l,className:"relative flex h-full",children:[n.jsxs("div",{className:"flex h-full flex-1 overflow-hidden",children:[n.jsx("div",{className:"flex items-center pl-2xl",children:n.jsx("div",{className:"w-7xl",children:e.map((S,L)=>n.jsx("button",{type:"button","aria-current":L===w?"step":void 0,onClick:()=>T(L),className:"flex w-full cursor-pointer items-center text-left focus-visible:outline-2 focus-visible:outline-off-white focus-visible:outline-offset-[6px]",style:{height:`${N}px`},children:n.jsx("span",{className:`block font-functional transition-all duration-300 ${L===w?"text-label-md text-off-white":"text-label-sm text-off-white/60"}`,children:E(S.period)??""})},S._key??L))})}),n.jsx("div",{className:"flex cursor-pointer items-center justify-center pr-4xl pl-2xl",onClick:k,children:n.jsxs("div",{ref:u,className:"relative",style:{height:`${A}px`,width:"4px"},children:[n.jsx("div",{className:"absolute inset-0 rounded-full backdrop-blur-sm",style:{background:"rgba(255,255,255,0.24)"}}),n.jsx("div",{ref:c,className:"absolute flex items-center justify-center",style:{top:-Ae/2,left:"50%",transform:"translateX(-50%)",width:Ae,height:Ae},children:n.jsx("div",{className:"flex size-full items-center justify-center rounded-full bg-off-white",children:n.jsx("div",{className:"size-2xs rounded-full bg-warm-black"})})})]})}),n.jsx("div",{className:"relative flex-1 overflow-hidden",style:{marginRight:"10%"},children:e.map((S,L)=>n.jsx("div",{ref:b=>{x.current[L]=b},"aria-hidden":L!==w,className:"absolute inset-0",children:n.jsx(Mx,{item:S,onReadMore:()=>o(L)})},S._key??L))})]}),n.jsxs("div",{className:"relative flex h-full shrink-0 flex-col",style:{width:Ox},children:[n.jsx(Ee,{index:w,axis:"y",directional:!0,inDuration:.8,outDuration:1.5,ease:ne.out,outDelay:.2,exitStyle:"cover",className:"relative min-h-0 flex-1",children:e.map((S,L)=>{const b=pr(S.photo);return n.jsx("div",{className:"absolute inset-0",children:b?n.jsx(oe,{source:S.photo?.image?.imageFile,alt:S.photo?.image?.alt,sizes:"(min-width: 64rem) 42vw, 100vw",className:"size-full"}):n.jsx("div",{className:"size-full bg-warm-black/40"})},S._key??L)})}),n.jsxs("div",{className:"flex aspect-[2/1] shrink-0",children:[n.jsx(Ee,{index:w,axis:"y",directional:!0,inDuration:.8,outDuration:1.5,ease:ne.out,delay:.15,outDelay:.2,exitStyle:"cover",className:"relative shrink-0",style:{width:"50%"},children:e.map((S,L)=>{const b=E(S.period)??"";return n.jsx("div",{className:"flex h-full flex-col items-start justify-end bg-off-white p-lg text-warm-black",children:n.jsx("span",{className:"whitespace-pre-line font-headline text-display-lg",children:oi(b)})},S._key??L)})}),n.jsx(Ee,{index:w,axis:"y",directional:!0,inDuration:.8,outDuration:1.5,ease:ne.out,delay:.3,outDelay:.2,exitStyle:"cover",className:"relative flex-1",children:e.map((S,L)=>{const b=E(S.icon),j=E(S.iconColor);return n.jsx("div",{className:`relative h-full ${ii(j)} flex items-center justify-center`,children:n.jsx(de,{svg:b,tightViewBox:!0,className:`absolute inset-0 justify-center p-2xl [&>svg]:w-full ${ai(j)}`})},S._key??L)})})]})]})]}),n.jsx("div",{ref:m,className:"pointer-events-none absolute top-1/2 left-1/2 z-10 flex items-center justify-center overflow-hidden rounded-full bg-off-white opacity-0",style:{width:Ae,height:Ae},children:n.jsx("div",{"data-ball-dot":!0,className:"shrink-0 rounded-full bg-warm-black",style:{width:vt,height:vt}})}),r&&t&&n.jsx(mr,{data:t,overlay:!0,rootRef:g})]})]})}function $x({item:e}){const t=pr(e.photo),r=E(e.period)??"",s=E(e.icon),o=E(e.headline)??"",i=(e.extendedDescription??"").split(/\n{2,}/).map(a=>
27a.trim()).filter(Boolean);return n.jsxs("div",{className:"flex min-h-full flex-col",children:[n.jsxs("div",{className:"flex items-start desktop:gap-2xl gap-sm desktop:bg-white p-sm",children:[n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-lg desktop:p-lg p-sm",children:[n.jsx("h2",{className:"font-functional text-heading-xl text-warm-black",children:o}),r&&n.jsx("p",{className:"font-functional text-heading-sm text-warm-black",children:r})]}),n.jsx(Et,{})]}),n.jsxs("div",{className:"flex items-start",children:[n.jsx("div",{className:"relative aspect-square flex-1",children:t?n.jsx(oe,{source:e.photo?.image?.imageFile,alt:e.photo?.image?.alt,aspectRatio:1,widths:[333,666],sizes:"(min-width: 42rem) 333px, 50vw",className:"absolute inset-0"}):n.jsx("div",{className:"absolute inset-0 bg-off-white"})}),n.jsx(St,{icon:s,bg:"bg-off-white",iconColor:"text-warm-black",className:"aspect-square flex-1"})]}),n.jsx("div",{className:"flex flex-1 flex-col gap-md desktop:bg-white desktop:p-2xl p-lg",children:i.map(a=>n.jsx("p",{className:"font-functional text-body-lg text-warm-black",children:a},a))})]})}function Fx({data:e}){const t=(e.items??[]).filter(Boolean),r=Oe("desktop"),s=Jn(),o=!er("xs"),[i,a]=p.useState(null),l=i===null?null:t[i],c=e.editorialStatement,u=!!(c&&(c.headline||(c.body?.length??0)>0));return t.length===0?null:n.jsxs("section",{children:[r&&s?n.jsx(Dx,{items:t,statement:c,hasStatement:u,compact:o,onReadMore:a}):n.jsxs(n.Fragment,{children:[n.jsx(zx,{items:t,onReadMore:a}),u&&c&&n.jsx(mr,{data:c})]}),n.jsx(mn,{open:i!==null,onOpenChange:d=>!d&&a(null),title:E(l?.headline)??E(l?.period)??"Timeline entry",className:"desktop:w-[43%] desktop:min-w-[665px] desktop:max-w-none",children:l&&n.jsx($x,{item:l},l._key)})]})}const Bx=250;function Vs(e){const t=e?.image?.imageFile;return t?.asset?._ref?t:null}function Vx(e){const t=Ii(e);return{maskImage:`url(${t})`,WebkitMaskImage:`url(${t})`,maskRepeat:"no-repeat",WebkitMaskRepeat:"no-repeat",maskPosition:"center",WebkitMaskPosition:"center",maskSize:"contain",WebkitMaskSize:"contain"}}function Hx({data:e}){const t=E(e.title)??"Our values",r=(e.values??[]).filter(v=>!!E(v.title)),s=E(e.variant)!=="text",[o,i]=p.useState(null),[a,l]=p.useState(null),c=p.useRef(null),u=p.useRef(null),d=p.useRef(null);p.useEffect(()=>()=>{c.current&&clearTimeout(c.current)},[]);const f=Wo(),m=p.useCallback(v=>{if(v!==d.current&&(d.current=v,i(v),c.current&&(clearTimeout(c.current),c.current=null),v!==u.current)){if(u.current===null){u.current=v,l(v);return}c.current=setTimeout(()=>{u.current=v,c.current=null,l(v)},Bx)}},[]),g=p.useCallback(v=>{if(v.pointerType!=="mouse"||!f())return;const h=v.target.closest("[data-value-index]");m(h?Number(h.dataset.valueIndex):null)},[m,f]),x=p.useCallback(()=>{f()&&m(null)},[m,f]);if(!r.length)return null;const y=Vs(e.coverPhoto),w=a===null?0:a+1;return n.jsxs("section",{className:"bg-warm-black text-off-white",children:[n.jsxs("div",{className:`desktop:flex hidden ${s?"desktop:min-h-screen":""}`,children:[n.jsxs("div",{className:`flex flex-1 flex-col gap-4xl p-2xl ${s?"justify-between":""}`,onPointerMove:g,onPointerLeave:x,children:[n.jsx("h2",{className:"font-headline text-display-md",children:t}),n.jsx(he,{className:"grid grid-cols-2 gap-x-2xl gap-y-2xl",children:r.map((v,h)=>{const N=o===h,{fg:A}=ue(E(v.tileColor));return n.jsxs("button",{type:"button","data-value-index":h,onFocus:()=>m(h),className:`flex w-full items-start gap-sm border-off-white/20 border-t py-sm text-left ${s?"max-w-[472px]":""}`,children:[n.jsxs("div",{className:`flex flex-1 flex-col gap-lg transition-opacity ${N&&s?"text-off-white/70":"text-off-white"}`,children:[n.jsxs("div",{className:"flex items-start gap-sm font-functional text-heading-md",children:[n.jsx("span",{className:"shrink-0",children:String(h+1).padStart(2,"0")}),n.jsx("span",{children:E(v.title)})]}),v.body&&n.jsx("p",{className:`font-functional text-body-lg ${s?"max-w-[364px]":"max-w-[520px]"}`,children:E(v.body)})]}),n.jsx(de,{svg:E(v.icon),className:`size-lg ${N?A:"text-off-white"}`})]},v._key)})})]}),s&&n.jsxs("div",{className:"flex w-1/3 shrink-0 flex-col",children:[n.jsxs(Ee,{index:w,axis:"y",className:"relative min-h-0 flex-1",inDuration:ie.fast,delay:0,children:[n.jsx("div",{className:"size-full bg-warm-black",children:n.jsx(oe,{source:y,alt:"",sizes:"(min-width: 64rem) 33vw, 100vw",className:"size-full"})}),r.map(v=>{const h=Vs(v.photo)??y;return n.jsx("div",{className:"size-full bg-warm-black",children:n.jsx(oe,{source:h,alt:v.photo?.image?.alt,sizes:"(min-width: 64rem) 33vw, 100vw",className:"size-full"})},v._key)})]}),n.jsxs(Ee,{index:w,reverse:!0,className:"relative aspect-square w-full shrink-0",inDuration:ie.base,delay:0,children:[n.jsx("div",{className:"flex size-full items-center justify-center bg-clay",children:n.jsx("span",{"aria-hidden":!0,
27className:"size-[60%] bg-off-white",style:Vx("symbol-oscarhealth")})}),r.map(v=>{const{bg:h}=ue(E(v.tileColor));return n.jsx("div",{className:`flex size-full items-center justify-center ${h}`,children:n.jsx(de,{svg:E(v.icon),className:"size-[85%] text-off-white"})},v._key)})]})]})]}),n.jsxs("div",{className:"flex desktop:hidden flex-col",children:[s&&y&&n.jsx("div",{className:"aspect-square w-full",children:n.jsx(oe,{source:y,alt:"",aspectRatio:1,className:"size-full"})}),n.jsxs("div",{className:"flex flex-col gap-5xl px-sm py-2xl",children:[n.jsx("h2",{className:"font-headline text-display-md",children:t}),n.jsx(he,{className:"flex flex-col",children:r.map((v,h)=>n.jsxs("div",{className:"flex gap-lg border-off-white/20 border-t pt-sm pb-4xl",children:[n.jsxs("div",{className:"flex flex-1 flex-col gap-lg",children:[n.jsxs("div",{className:"flex items-start gap-sm font-functional text-heading-md",children:[n.jsx("span",{className:"shrink-0",children:String(h+1).padStart(2,"0")}),n.jsx("span",{children:E(v.title)})]}),v.body&&n.jsx("p",{className:"font-functional text-body-lg",children:E(v.body)})]}),n.jsx(de,{svg:E(v.icon),className:"size-lg text-off-white"})]},v._key))})]})]})]})}function Hs({children:e,direction:t="left",speed:r=60,pauseOnHover:s=!0,className:o,gapClassName:i="gap-lg"}){const a=p.useRef(null),l=p.useRef(null),c=p.useRef(null);we(()=>{const d=a.current,f=l.current;if(!d||!f)return;const m=f.firstElementChild;if(!m)return;if(ve()){d.style.overflowX="auto";for(let v=1;v<f.children.length;v++)f.children[v].style.display="none";return}const g=Number.parseFloat(getComputedStyle(f).columnGap)||0,x=m.offsetWidth+g;if(x<=0)return;const y=t==="left"?0:-x,w=t==="left"?-x:0;O.set(f,{x:y}),c.current=O.to(f,{x:w,duration:x/r,ease:"none",repeat:-1})},{scope:a,dependencies:[t,r]});const u=d=>{const f=c.current;f&&O.to(f,{timeScale:d,duration:ie.fast,ease:ne.out,overwrite:!0})};return n.jsx("div",{ref:a,className:$("overflow-hidden",o),onMouseEnter:s?()=>u(0):void 0,onMouseLeave:s?()=>u(1):void 0,children:n.jsxs("div",{ref:l,className:$("flex w-max",i),children:[n.jsx("div",{className:$("flex w-max shrink-0",i),children:e}),n.jsx("div",{"aria-hidden":!0,className:$("flex w-max shrink-0",i),children:e})]})})}const Zx=new Set(["coolPink","offWhite"]);function Ux(e){const t=E(e)??"",{bg:r}=ue(t),s=Zx.has(t)?"text-warm-black":"text-off-white";return{bg:r,iconColor:s}}function zn({group:e,variant:t}){const{bg:r,iconColor:s}=Ux(e.color),o=E(e.icon),i=E(e.name),a=E(e.description);return t==="row"?n.jsxs("article",{className:"flex h-[196px] shrink-0",children:[o&&n.jsx(St,{icon:o,bg:r,iconColor:s,className:"size-[196px]"}),n.jsxs("div",{className:"flex h-full w-[335px] flex-col justify-between bg-warm-black/[0.04] p-lg",children:[n.jsx("h3",{className:"font-functional text-heading-md",children:i}),n.jsx("p",{className:"font-functional text-body-lg",children:a})]})]}):n.jsxs("article",{className:"flex h-full w-[280px] shrink-0 flex-col",children:[o&&n.jsx(St,{icon:o,bg:r,iconColor:s,className:"aspect-square w-full"}),n.jsxs("div",{className:"flex flex-1 flex-col justify-between gap-4xl bg-warm-black/[0.04] p-lg",children:[n.jsx("h3",{className:"font-functional text-heading-md",children:i}),n.jsx("p",{className:"font-functional text-body-lg",children:a})]})]})}function Wx({data:e}){const t=E(e.title),r=E(e.intro),s=(e.groups??[]).filter(l=>!!E(l.name));if(!s.length)return null;const o=Math.ceil(s.length/2),i=s.slice(0,o),a=s.slice(o);return n.jsxs("section",{className:"flex flex-col gap-2xl bg-off-white desktop:py-8xl py-2xl text-warm-black",children:[n.jsxs(le,{className:"flex flex-col gap-lg desktop:px-2xl px-sm",children:[t&&n.jsx("h2",{className:"whitespace-pre-line font-headline text-display-md",children:t}),r&&n.jsx("p",{className:"max-w-[520px] font-functional text-body-md",children:r})]}),n.jsxs(le,{className:"desktop:flex hidden flex-col gap-lg",children:[n.jsx(Hs,{direction:"left",className:"w-full",children:i.map(l=>n.jsx(zn,{group:l,variant:"row"},l._key))}),a.length>0&&n.jsx(Hs,{direction:"right",className:"w-full",children:a.map(l
27=>n.jsx(zn,{group:l,variant:"row"},l._key))})]}),n.jsx(le,{className:"desktop:hidden px-sm",children:n.jsx(fr,{control:"none",gapClassName:"gap-sm",children:s.map(l=>n.jsx(zn,{group:l,variant:"stack"},l._key))})})]})}function Zs(e,t){if(!t)return console.error(`Key ${e} has no content, skipping`),null;switch(t._type){case"homepageHeroSection":return n.jsx(Fm,{data:t},e);case"pageHeroWithNavSection":return n.jsx(mx,{data:t},e);case"articleHeroSection":return n.jsx(Wc,{data:t},e);case"articleContentSection":return n.jsx(Uc,{data:t},e);case"articleOverviewSection":return n.jsx(gu,{data:t},e);case"externalNewsSection":return n.jsx(Mm,{data:t},e);case"readNextSection":return n.jsx(yx,{data:t},e);case"multiCardCtaWithImages":return n.jsx(qp,{data:t},e);case"brandFamilySection":return n.jsx($u,{data:t},e);case"ourFamilySection":return n.jsx(fx,{data:t},e);case"sectionHeadlineSection":return n.jsx(mr,{data:t},e);case"doubleOrSingleCtaWithMediaSection":return n.jsx(Em,{data:t},e);case"largeCtaWithSingleMediaSection":return n.jsx(qm,{data:t},e);case"twoColumnInfoListSection":return n.jsx(Hx,{data:t},e);case"oneColumnInfoListSection":return n.jsx(ax,{data:t},e);case"multiStepStatsSection":return n.jsx(ox,{data:t},e);case"statsSection":return n.jsx(jx,{data:t},e);case"richTextWithColorSection":return n.jsx(bx,{data:t},e);case"mapSection":return n.jsx(up,{data:t},e);case"animatedIntroSection":return n.jsx(Hc,{data:t},e);case"timelineSection":return n.jsx(Fx,{data:t},e);case"statsSingleSection":return n.jsx(Cx,{data:t},e);case"leadershipSection":return n.jsx(Xm,{data:t},e);case"boardSection":return n.jsx(Su,{data:t},e);case"committeeSection":return n.jsx(Vu,{data:t},e);case"contactSection":return n.jsx(Sm,{data:t},e);case"multiQuoteSection":return n.jsx(Xp,{data:t},e);case"twoRowInformationalTickerSection":return n.jsx(Wx,{data:t},e);case"downloadableFilesAndLinksSection":return n.jsx(Am,{data:t},e);case"jobListSection":return n.jsx(Zm,{data:t},e);case"wild.pageBuilder.section.quote":return n.jsx(xx,{data:t},e);case"wild.pageBuilder.section.textOnly":return n.jsx(Ex,{data:t},e);case"footnoteSection":return n.jsx(Dm,{data:t},e);default:return null}}function Jx({hero:e,sections:t}){return!e&&!t?.length?null:n.jsxs(n.Fragment,{children:[e?Zs("hero",e):null,t?.map(r=>{const s=E(r.sectionSettings?.sectionId?.current)||r._key||void 0,o=!!r.sectionSettings?.dividerTop,i=!!r.sectionSettings?.dividerBottom;return n.jsx(Mc,{id:s,className:$(o&&"border-warm-black/10 border-t",i&&"border-warm-black/10 border-b"),enabled:!!r.sectionSettings?.enableSnapping,children:Zs(r._key,r.sectionContent)},r._key)})]})}export{bo as C,St as I,Jx as P,vx as R,nt as a,Ze as f,Xx as r};
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.