1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,929767,e=>{"use strict";var t=e.i(342433),i=e.i(294237),n=e.i(739223),r=e.i(91285);let s=(0,i.cva)("flex min-w-0 gap-1.5 overflow-hidden rounded-lg px-3 py-1.5 text-ellipsis",{variants:{onDarkBg:{true:"bg-eucalyptus-100 text-dark hover:bg-eucalyptus-300 active:bg-eucalyptus-500",false:"bg-pine-200 text-light hover:bg-pine-100 active:bg-pine-50"}},defaultVariants:{onDarkBg:!1}});e.s(["FlyoutLink",0,({url:e,children:i,onDarkBg:a,className:o})=>(0,t.jsx)(n.default,{className:(0,r.cn)(s({onDarkBg:a}),o),href:e,children:(0,t.jsx)("span",{className:"min-w-0 overflow-hidden text-ellipsis",children:i})})])},451398,e=>{"use strict";function t(e,t,i){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let n=document;t&&(n=t.current);let r=i?.[e]??n.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(e=>null!=e)}e.s(["resolveElements",()=>t])},865418,829550,440023,869857,82075,550798,204036,562897,e=>{"use strict";let t,i,n;var r,s=e.i(182899);let a=(0,s.createContext)({});function o(e){let t=(0,s.useRef)(null);return null===t.current&&(t.current=e()),t.current}e.s(["LayoutGroupContext",()=>a],865418),e.s(["useConstant",()=>o],829550);let l="u">typeof window,u=l?s.useLayoutEffect:s.useEffect;e.s(["useIsomorphicLayoutEffect",()=>u],440023);let c=(0,s.createContext)(null);function d(e){return"object"==typeof e&&null!==e}function h(e){return d(e)&&"offsetHeight"in e}e.s(["PresenceContext",()=>c],869857),e.s(["isHTMLElement",()=>h],82075);let p=(0,s.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function m(e=!0){let t=(0,s.useContext)(c);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=t,a=(0,s.useId)();(0,s.useEffect)(()=>{if(e)return r(a)},[e]);let o=(0,s.useCallback)(()=>e&&n&&n(a),[a,n,e]);return!i&&n?[!1,o]:[!0]}e.s(["MotionConfigContext",()=>p],550798),e.s(["usePresence",()=>m],204036);let f=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],g=new Set(f),v=(e,t,i)=>i>t?t:i<e?e:i,y={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},x={...y,transform:e=>v(0,1,e)},w={...y,default:1},b=e=>Math.round(1e5*e)/1e5,j=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,S=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,T=(e,t)=>i=>!!("string"==typeof i&&S.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),C=(e,t,i)=>n=>{if("string"!=typeof n)return n;let[r,s,a,o]=n.match(j);return{[e]:parseFloat(r),[t]:parseFloat(s),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},P={...y,transform:e=>Math.round(v(0,255,e))},k={test:T("rgb","red"),parse:C("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:n=1})=>"rgba("+P.transform(e)+", "+P.transform(t)+", "+P.transform(i)+", "+b(x.transform(n))+")"},E={test:T("#"),parse:function(e){let t="",i="",n="",r="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),n=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),n=e.substring(3,4),r=e.substring(4,5),t+=t,i+=i,n+=n,r+=r),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:k.transform},A=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),M=A("deg"),N=A("%"),D=A("px"),V=A("vh"),R=A("vw"),I={...N,parse:e=>N.parse(e)/100,transform:e=>N.transform(100*e)},L={test:T("hsl","hue"),parse:C("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:n=1})=>"hsla("+Math.round(e)+", "+N.transform(b(t))+", "+N.transform(b(i))+", "+b(x.transform(n))+")"},F={test:e=>k.test(e)||E.test(e)||L.test(e),parse:e=>k.test(e)?k.parse(e):L.test(e)?L.parse(e):E.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?k.transform(e):L.transform(e),getAnimatableNone:e=>{let t=F.parse(e);return t.alpha=0,F.transform(t)}},B=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,O="number",_="color",z=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function U(e){let t=e.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,a=t.replace(z,e=>(F.test(e)?(n.color.push(s),r.push(_),i.push(F.parse(e))):e.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(e)):(n.number.push(s),r.push(O),i.push(parseFloat(e))),++s,"${}")).split("${}");return{values:i,split:a,indexes:n,types:r}}function H(e){return U(e).values}function $(e){let{split:t,types:i}=U(e),n=t.length;return e=>{let r="";for(let s=0;s<n;s++)if(r+=t[s],void 0!==e[s]){let t=i[s];t===O?r+=b(e[s]):t===_?r+=F.transform(e[s]):r+=e[s]}return r}}let W=e=>"number"==typeof e?0:F.test(e)?F.getAnimatableNone(e):e,q={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(j)?.length||0)+(e.match(B)?.length||0)>0},parse:H,createTransformer:$,getAnimatableNone:function(e){let t=H(e);return $(e)(t.map(W))}},K=new Set(["brightness","contrast","saturate","opacity"]);function Y(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=i.match(j)||[];if(!n)return e;let r=i.replace(n,""),s=+!!K.has(t);return n!==i&&(s*=100),t+"("+s+r+")"}let G=/\b([a-z-]*)\(.*?\)/gu,X={...q,getAnimatableNone:e=>{let t=e.match(G);return t?t.map(Y).join(" "):e}},Z={...y,transform:Math.round},J={borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,top:D,right:D,bottom:D,left:D,inset:D,insetBlock:D,insetBlockStart:D,insetBlockEnd:D,insetInline:D,insetInlineStart:D,insetInlineEnd:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,paddingBlock:D,paddingBlockStart:D,paddingBlockEnd:D,paddingInline:D,paddingInlineStart:D,paddingInlineEnd:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,marginBlock:D,marginBlockStart:D,marginBlockEnd:D,marginInline:D,marginInlineStart:D,marginInlineEnd:D,fontSize:D,backgroundPositionX:D,backgroundPositionY:D,rotate:M,rotateX:M,rotateY:M,rotateZ:M,scale:w,scaleX:w,scaleY:w,scaleZ:w,skew:M,skewX:M,skewY:M,distance:D,translateX:D,translateY:D,translateZ:D,x:D,y:D,z:D,perspective:D,transformPerspective:D,opacity:x,originX:I,originY:I,originZ:D,zIndex:Z,fillOpacity:x,strokeOpacity:x,numOctaves:Z},Q={...J,color:F,backgroundColor:F,outlineColor:F,fill:F,stroke:F,borderColor:F,borderTopColor:F,borderRightColor:F,borderBottomColor:F,borderLeftColor:F,filter:X,WebkitFilter:X},ee=e=>Q[e],et=()=>({translate:0,scale:1,origin:0,originPoint:0}),ei=()=>({x:et(),y:et()}),en=()=>({min:0,max:0}),er=()=>({x:en(),y:en()}),es=e=>!!(e&&e.getVelocity),ea=new Set(["width","height","top","left","right","bottom",...f]),eo=e=>t=>t.test(e),el=[y,D,N,M,R,V,{test:e=>"auto"===e,parse:e=>e}],eu=e=>el.find(eo(e));var ec=e.i(360164);let ed=()=>{},eh=()=>{};ec.default;let ep=e=>t=>"string"==typeof t&&t.startsWith(e),em=ep("--"),ef=ep("var(--"),eg=e=>!!ef(e)&&ev.test(e.split("/*")[0].trim()),ev=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ey(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let ex=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ew=e=>180*e/Math.PI,eb=e=>eS(ew(Math.atan2(e[1],e[0]))),ej={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:eb,rotateZ:eb,skewX:e=>ew(Math.atan(e[1])),skewY:e=>ew(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},eS=e=>((e%=360)<0&&(e+=360),e),eT=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),eC=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),eP={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eT,scaleY:eC,scale:e=>(eT(e)+eC(e))/2,rotateX:e=>eS(ew(Math.atan2(e[6],e[5]))),rotateY:e=>eS(ew(Math.atan2(-e[2],e[0]))),rotateZ:eb,rotate:eb,skewX:e=>ew(Math.atan(e[4])),skewY:e=>ew(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ek(e){return+!!e.includes("scale")}function eE(e,t){let i,n;if(!e||"none"===e)return ek(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=eP,n=r;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=ej,n=t}if(!n)return ek(t);let s=i[t],a=n[1].split(",").map(eA);return"function"==typeof s?s(a):a[s]}function eA(e){return parseFloat(e.trim())}let eM=e=>e===y||e===D,eN=new Set(["x","y","z"]),eD=f.filter(e=>!eN.has(e)),eV={width:({x:e},{paddingLeft:t="0",paddingRight:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),height:({y:e},{paddingTop:t="0",paddingBottom:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>eE(t,"x"),y:(e,{transform:t})=>eE(t,"y")};eV.translateX=eV.x,eV.translateY=eV.y;let eR=e=>e,eI={},eL=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eF(e,t){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,a=eL.reduce((e,i)=>(e[i]=function(e,t){let i=new Set,n=new Set,r=!1,s=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){a.has(t)&&(c.schedule(t),e()),l++,t(o)}let c={schedule:(e,t=!1,s=!1)=>{let o=s&&r?i:n;return t&&a.add(e),o.has(e)||o.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){s=!0;return}
1r=!0,[i,n]=[n,i],i.forEach(u),t,l=0,i.clear(),r=!1,s&&(s=!1,c.process(e))}};return c}(s,t?i:void 0),e),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:h,render:p,postRender:m}=a,f=()=>{let s=eI.useManualTiming?r.timestamp:performance.now();i=!1,eI.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1)),r.timestamp=s,r.isProcessing=!0,o.process(r),l.process(r),u.process(r),c.process(r),d.process(r),h.process(r),p.process(r),m.process(r),r.isProcessing=!1,i&&t&&(n=!1,e(f))};return{schedule:eL.reduce((t,s)=>{let o=a[s];return t[s]=(t,s=!1,a=!1)=>(!i&&(i=!0,n=!0,r.isProcessing||e(f)),o.schedule(t,s,a)),t},{}),cancel:e=>{for(let t=0;t<eL.length;t++)a[eL[t]].cancel(e)},state:r,steps:a}}let{schedule:eB,cancel:eO,state:e_,steps:ez}=eF("u">typeof requestAnimationFrame?requestAnimationFrame:eR,!0),eU=new Set,eH=!1,e$=!1,eW=!1;function eq(){if(e$){let e=Array.from(eU).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t,n=(t=[],eD.forEach(i=>{let n=e.getValue(i);void 0!==n&&(t.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),t);n.length&&(i.set(e,n),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}e$=!1,eH=!1,eU.forEach(e=>e.complete(eW)),eU.clear()}
1function eK(){eU.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(e$=!0)})}class eY{constructor(e,t,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(eU.add(this),eH||(eH=!0,eB.read(eK),eB.resolveKeyframes(eq))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:n}=this;if(null===e[0]){let r=n?.get(),s=e[e.length-1];if(void 0!==r)e[0]=r;else if(i&&t){let n=i.readValue(t,s);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=s),n&&void 0===r&&n.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eU.delete(this)}cancel(){"scheduled"===this.state&&(eU.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}function eG(e,t){let i=ee(e);return i!==X&&(i=q),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let eX=new Set(["auto","none","0"]);class eZ extends eY{constructor(e,t,i,n,r){super(e,t,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let n=e[i];if("string"==typeof n&&eg(n=n.trim())){let r=function e(t,i,n=1){eh(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(e){let t=ex.exec(e);if(!t)return[,];let[,i,n,r]=t;return[`--${i??n}`,r]}(t);if(!r)return;let a=window.getComputedStyle(i).getPropertyValue(r);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return eg(s)?e(s,i,n+1):s}(n,t.current);void 0!==r&&(e[i]=r),i===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!ea.has(i)||2!==e.length)return;let[n,r]=e,s=eu(n),a=eu(r);if(ey(n)!==ey(r)&&eV[i]){this.needsMeasurement=!0;return}if(s!==a)if(eM(s)&&eM(a))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else eV[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&i.push(t);i.length&&function(e,t,i){let n,r=0;for(;r<e.length&&!n;){let t=e[r];"string"==typeof t&&!eX.has(t)&&U(t).values.length&&(n=e[r]),r++}if(n&&i)for(let r of t)e[r]=eG(i,n)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eV[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(i,n).jump(n,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:i}=this;if(!e||!e.current)return;let n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=eV[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}function eJ(e,t){-1===e.indexOf(t)&&e.push(t)}function eQ(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class e0{constructor(){this.subscriptions=[]}add(e){return eJ(this.subscriptions,e),()=>eQ(this.subscriptions,e)}notify(e,t,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let{schedule:e1}=eF(queueMicrotask,!1);function e2(){t=void 0}let e3={now:()=>(void 0===t&&e3.set(e_.isProcessing||eI.useManualTiming?e_.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(e2)}};class e5{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=e3.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=e3.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new e0);let i=this.events[e].add(t);return"change"===e?()=>{i(),eB.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return n&&n.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=e3.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function e4(e,t){return new e5(e,t)}let e6=[...el,F,q],e9={current:null},e8={current:!1},e7="u">typeof window,te=new WeakMap;function tt(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function ti(e){return"string"==typeof e||Array.isArray(e)}let tn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tr=["initial",...tn];function ts(e){return tt(e.animate)||tr.some(t=>ti(e[t]))}function ta(e){return!!(ts(e)||e.variants)}function to(e){let t=[{},{}];return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function tl(e,t,i,n){if("function"==typeof t){let[r,s]=to(n);t=t(void 0!==i?i:e.custom,r,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[r,s]=to(n);t=t(void 0!==i?i:e.custom,r,s)}return t}let tu=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tc={};class td{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eY,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=e3.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eB.render(this.render,!1,!0))};const{latestValues:o,renderState:l}=s;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=ts(t),this.isVariantNode=ta(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in c){const t=c[e];void 0!==o[e]&&es(t)&&t.set(o[e])}}mount(e){this.current=e,te.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(e8.current||function(){if(e8.current=!0,e7)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>e9.current=e.matches;e.addEventListener("change",t),t()}else e9.current=!1}(),this.shouldReduceMotion=e9.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),eO(this.notifyUpdate),eO(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let i;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=g.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eB.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tc){let t=tc[e];if(!t)continue;let{isEnabled:i,Feature:n}=t;if(!this.features[e]&&n&&i(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):er()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tu.length;t++){let i=tu[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=e["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(e,t,i){for(let n in t){let r=t[n],s=i[n];if(es(r))e.addValue(n,r);else if(es(s))e.addValue(n,e4(r,{owner:e}));else if(s!==r)if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{let t=e.getStaticValue(n);e.addValue(n,e4(void 0!==t?t:r,{owner:e}))}}for(let n in i)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=e4(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=i){let n,r;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(r=i,/^0[^.\s]+$/u.test(r))))i=parseFloat(i);else{let n;n=i,!e6.find(eo(n))&&q.test(t)&&(i=eG(e,t))}this.setBaseTarget(e,es(i)?i.get():i)}return es(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=tl(this.props,i,this.presenceContext?.custom);n&&(t=n[e])}if(i&&void 0!==t)return t;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||es(n)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new e0),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){e1.render(this.render)}}class th extends td{constructor(){super(...arguments),this.KeyframeResolver=eZ}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let i=e.style;return i?i[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;es(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tp(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tm=(e,t)=>
1t&&"number"==typeof e?t.transform(e):e,tf={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tg=f.length;function tv(e,t,i){let{style:n,vars:r,transformOrigin:s}=e,a=!1,o=!1;for(let e in t){let i=t[e];if(g.has(e)){a=!0;continue}if(em(e)){r[e]=i;continue}{let t=tm(i,J[e]);e.startsWith("origin")?(o=!0,s[e]=t):n[e]=t}}if(!t.transform&&(a||i?n.transform=function(e,t,i){let n="",r=!0;for(let s=0;s<tg;s++){let a=f[s],o=e[a];if(void 0===o)continue;let l=!0;if("number"==typeof o)l=o===+!!a.startsWith("scale");else{let e=parseFloat(o);l=a.startsWith("scale")?1===e:0===e}if(!l||i){let e=tm(o,J[a]);if(!l){r=!1;let t=tf[a]||a;n+=`${t}(${e}) `}i&&(t[a]=e)}}return n=n.trim(),i?n=i(t,r?"":n):r&&(n="none"),n}(t,e.transform,i):n.transform&&(n.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:i=0}=s;n.transformOrigin=`${e} ${t} ${i}`}}let ty={offset:"stroke-dashoffset",array:"stroke-dasharray"},tx={offset:"strokeDashoffset",array:"strokeDasharray"},tw=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tb(e,{attrX:t,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:a=0,...o},l,u,c){if(tv(e,o,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:h}=e;for(let e of(d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=c?.transformBox??"fill-box",delete d.transformBox),tw))void 0!==d[e]&&(h[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==r&&function(e,t,i=1,n=0,r=!0){e.pathLength=1;let s=r?ty:tx;e[s.offset]=`${-n}`,e[s.array]=`${t} ${i}`}(d,r,s,a,!1)}let tj=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),tS=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tT(e,{style:t,vars:i},n,r){let s,a=e.style;for(s in t)a[s]=t[s];for(s in r?.applyProjectionStyles(a,n),i)a.setProperty(s,i[s])}function tC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tP={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!D.test(e))return e;else e=parseFloat(e);let i=tC(e,t.target.x),n=tC(e,t.target.y);return`${i}% ${n}%`}},tk=(e,t,i)=>e+(t-e)*i,tE={borderRadius:{...tP,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tP,borderTopRightRadius:tP,borderBottomLeftRadius:tP,borderBottomRightRadius:tP,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let n=q.parse(e);if(n.length>5)return e;let r=q.createTransformer(e),s=+("number"!=typeof n[0]),a=i.x.scale*t.x,o=i.y.scale*t.y;n[0+s]/=a,n[1+s]/=o;let l=tk(a,o,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function tA(e,{layout:t,layoutId:i}){return g.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!tE[e]||"opacity"===e)}function tM(e,t,i){let n=e.style,r=t?.style,s={};if(!n)return s;for(let t in n)(es(n[t])||r&&es(r[t])||tA(t,e)||i?.getValue(t)?.liveStyle!==void 0)&&(s[t]=n[t]);return s}function tN(e,t,i){let n=tM(e,t,i);for(let i in e)(es(e[i])||es(t[i]))&&(n[-1!==f.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return n}class tD extends th{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=er}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(g.has(t)){let e=ee(t);return e&&e.default||0}return t=tj.has(t)?t:tp(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return tN(e,t,i)}build(e,t,i){tb(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,n){for(let i in tT(e,t,void 0,n),t.attrs)e.setAttribute(tj.has(i)?i:tp(i),t.attrs[i])}mount(e){this.isSVGTag=tS(e.tagName),super.mount(e)}}function tV({top:e,left:t,right:i,bottom:n}){return{x:{min:t,max:i},y:{min:e,max:n}}}function tR(e){return void 0===e||1===e}function tI({scale:e,scaleX:t,scaleY:i}){return!tR(e)||!tR(t)||!tR(i)}function tL(e){return tI(e)||tF(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tF(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function tB(e,t,i,n,r){return void 0!==r&&(e=n+r*(e-n)),n+i*(e-n)+t}function tO(e,t=0,i=1,n,r){e.min=tB(e.min,t,i,n,r),e.max=tB(e.max,t,i,n,r)}function t_(e,{x:t,y:i}){tO(e.x,t.translate,t.scale,t.originPoint),tO(e.y,i.translate,i.scale,i.originPoint)}function tz(e,t){e.min=e.min+t,e.max=e.max+t}function tU(e,t,i,n,r=.5){let s=tk(e.min,e.max,r);tO(e,t,i,s,n)}function tH(e,t){tU(e.x,t.x,t.scaleX,t.scale,t.originX),tU(e.y,t.y,t.scaleY,t.scale,t.originY)}function t$(e,t){return tV(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}class tW extends th{constructor(){super(...arguments),this.type="html",this.renderInstance=tT}readValueFromInstance(e,t){if(g.has(t))return this.projection?.isProjecting?ek(t):((e,t)=>{let{transform:i="none"}=getComputedStyle(e);return eE(i,t)})(e,t);{let i=window.getComputedStyle(e),n=(em(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return t$(e,t)}build(e,t,i){tv(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return tM(e,t,i)}}let tq=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function tK(e){if("string"!=typeof e||e.includes("-"));else if(tq.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var tY=e.i(342433);let tG=(0,s.createContext)({strict:!1}),tX=(0,s.createContext)({});function tZ(e){return Array.isArray(e)?e.join(" "):e}let tJ=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tQ(e,t,i){for(let n in t)es(t[n])||tA(n,i)||(e[n]=t[n])}let t0=()=>({...tJ(),attrs:{}}),t1=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function t2(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||t1.has(e)}let t3=e=>!t2(e);try{r=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default,"function"==typeof r&&(t3=e=>e.startsWith("on")?!t2(e):r(e))}catch{}function t5(e){return es(e)?e.get():e}let t4=e=>(t,i)=>{let n=(0,s.useContext)(tX),r=(0,s.useContext)(c),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,n,r){return{latestValues:function(e,t,i,n){let r={},s=n(e,{});for(let e in s)r[e]=t5(s[e]);let{initial:a,animate:o}=e,l=ts(e),u=ta(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let c=!!i&&!1===i.initial,d=(c=c||!1===a)?o:a;if(d&&"boolean"!=typeof d&&!tt(d)){let t=Array.isArray(d)?d:[d];for(let i=0;i<t.length;i++){let n=tl(e,t[i]);if(n){let{transitionEnd:e,transition:t,...i}=n;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(r[e]=t)}for(let t in e)r[t]=e[t]}}}return r}(i,n,r,e),renderState:t()}})(e,t,n,r);return i?a():o(a)},t6=t4({scrapeMotionValuesFromProps:tM,createRenderState:tJ}),t9=t4({scrapeMotionValuesFromProps:tN,createRenderState:t0}),t8={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},t7=!1;function ie(){return!function(){if(t7)return;let e={};for(let t in t8)e[t]={isEnabled:e=>t8[t].some(t=>!!e[t])};tc=e,t7=!0}(),tc}let it=Symbol.for("motionComponentSymbol"),ii="data-"+tp("framerAppearId"),ir=(0,s.createContext)({});function is(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ia(e,{forwardMotionProps:t=!1,type:i}={},n,r){n&&function(e){let t=ie();for(let i in e)t[i]={...t[i],...e[i]};tc=t}(n);let o=i?"svg"===i:tK(e),d=o?t9:t6;function h(i,n){var h;let m,f,g,v={...(0,s.useContext)(p),...i,layoutId:function({layoutId:e}){let t=(0,s.useContext)(a).id;return t&&void 0!==e?t+"-"+e:e}(i)},{isStatic:y}=v,x=function(e){let{initial:t,animate:i}=function(e,t){if(ts(e)){let{initial:t,animate:i}=e;return{initial:!1===t||ti(t)?t:void 0,animate:ti(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(tX));return(0,s.useMemo)(()=>({initial:t,animate:i}),[tZ(t),tZ(i)])}(i),w=d(i,y);if(!y&&l){(0,s.useContext)(tG).strict;let t=function(e){let{drag:t,layout:i}=ie();if(!t&&!i)return{};let n={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(v);m=t.MeasureLayout,x.visualElement=function(e,t,i,n,r,a){let{visualElement:o}=(0,s.useContext)(tX),l=(0,s.useContext)(tG),d=(0,s.useContext)(c),h=(0,s.useContext)(p).reducedMotion,m=(0,s.useRef)(null),f=(0,s.useRef)(!1);n=n||l.renderer,!m.current&&n&&(m.current=n(e,{visualState:t,parent:o,props:i,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:h,isSVG:a}),f.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));let g=m.current,v=(0,s.useContext)(ir);g&&!g.projection&&r&&("html"===g.type||"svg"===g.type)&&function(e,t,i,n){let{layoutId:r,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!a||o&&is(o),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:u})}(m.current,i,r,v);let y=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{g&&y.current&&g.update(i,d)});let x=i[ii],w=(0,s.useRef)(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return u(()=>{f.current=!0,g&&(y.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),w.current&&g.animationState&&g.animationState.animateChanges())}),(0,s.useEffect)(()=>{g&&(!w.current&&g.animationState&&g.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),w.current=!1),g.enteringChildren=void 0)}),g}(e,w,v,r,t.ProjectionNode,o)}return(0,tY.jsxs)(tX.Provider,{value:x,children:[m&&x.visualElement?(0,tY.jsx)(m,{visualElement:x.visualElement,...v}):null,function(e,t,i,{latestValues:n},r,a=!1,o){let l=(o??tK(e)?function(e,t,i,n){let r=(0,s.useMemo)(()=>{let i=t0();return tb(i,t,tS(n),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};tQ(t,e.style,e),r.style={...t,...r.style}}return r}:function(e,t){let i,n,r={},a=(i=e.style||{},tQ(n={},i,e),Object.assign(n,function({transformTemplate:e},t){return(0,s.useMemo)(()=>{let i=tJ();return tv(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=a,r})(t,n,r,e),u=function(e,t,i){let n={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&(t3(r)||!0===i&&t2(r)||!t&&!t2(r)||e.draggable&&r.startsWith("onDrag"))&&(n[r]=e[r]);return n}(t,"string"==typeof e,a),c=e!==s.Fragment?{...u,...l,ref:i}:{},{children:d}=t,h=(0,s.useMemo)(()=>es(d)?d.get():d,[d]);return(0,s.createElement)(e,{...c,children:h})}(e,i,(h=x.visualElement,f=(0,s.useRef)(n),(0,s.useInsertionEffect)(()=>{f.current=n}),g=(0,s.useRef)(null),(0,s.useCallback)(e=>{e&&w.onMount?.(e),h&&(e?h.mount(e):h.unmount());let t=f.current;if("function"==typeof t)if(e){let i=t(e);"function"==typeof i&&(g.current=i)}else g.current?(g.current(),g.current=null):t(e);else t&&(t.current=e)},[h])),w,y,t,o)]})}h.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let m=(0,s.forwardRef)(h);return m[it]=e,m}class io{constructor(e){this.isMounted=!1,this.node=e}update(){}}function il(e,t,i){let n=e.getProps();return tl(n,t,void 0!==i?i:n.custom,e)}function iu(e,t){return e?.[t]??e?.default??e}let ic=e=>Array.isArray(e);function id(e,t){let i=e.getValue("willChange");if(es(i)&&i.add)return i.add(t);if(!i&&eI.WillChange){let i=new eI.WillChange("auto");e.addValue("willChange",i),i.add(t)}}let ih=e=>1e3*e,ip=(e,t)=>i=>t(e(i)),im=(...e)=>e.reduce(ip),ig={layout:0,mainThread:0,waapi:0};function iv(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function iy(e,t){return i=>i>0?t:e}let ix=(e,t,i)=>{let n=e*e,r=i*(t*t-n)+n;return r<0?0:Math.sqrt(r)},iw=[E,k,L];function ib(e){let t=iw.find(t=>t.test(e));if(ed(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let i=t.parse(e);return t===L&&(i=function({hue:e,saturation:t,lightness:i,alpha:n}){e/=360,i/=100;let r=0,s=0,a=0;if(t/=100){let n=i<.5?i*(1+t):i+t-i*t,o=2*i-n;r=iv(o,n,e+1/3),s=iv(o,n,e),a=iv(o,n,e-1/3)}else r=s=a=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*a),alpha:n}}(i)),i}let ij=(e,t)=>{let i=ib(e),n=ib(t);if(!i||!n)return iy(e,t);let r={...i};return e=>(r.red=ix(i.red,n.red,e),r.green=ix(i.green,n.green,e),r.blue=ix(i.blue,n.blue,e),r.alpha=tk(i.alpha,n.alpha,e),k.transform(r))},iS=new Set(["none","hidden"]);function iT(e,t){return i=>tk(e,t,i)}function iC(e){return"number"==typeof e?iT:"string"==typeof e?eg(e)?iy:F.test(e)?ij:iE:Array.isArray(e)?iP:"object"==typeof e?F.test(e)?ij:ik:iy}function iP(e,t){let i=[...e],n=i.length,r=e.map((e,i)=>iC(e)(e,t[i]));return e=>{for(let t=0;t<n;t++)i[t]=r[t](e);return i}}function ik(e,t){let i={...e,...t},n={};for(let r in i)void 0!==e[r]&&void 0!==t[r]&&(n[r]=iC(e[r])(e[r],t[r]));return e=>{for(let t in n)i[t]=n[t](e);return i}}let iE=(e,t)=>{let i=q.createTransformer(t),n=U(e),r=U(t);if(!(n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length))return ed(!0,`Complex values '${e}' and '${t}
1' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iy(e,t);if(iS.has(e)&&!r.values.length||iS.has(t)&&!n.values.length)return iS.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return im(iP(function(e,t){let i=[],n={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let s=t.types[r],a=e.indexes[s][n[s]],o=e.values[a]??0;i[r]=o,n[s]++}return i}(n,r),r.values),i)};function iA(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?tk(e,t,i):iC(e)(e,t)}let iM=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eB.update(t,e),stop:()=>eO(t),now:()=>e_.isProcessing?e_.timestamp:e3.now()}},iN=(e,t,i=10)=>{let n="",r=Math.max(Math.round(t/i),2);for(let t=0;t<r;t++)n+=Math.round(1e4*e(t/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function iD(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}function iV(e,t,i){var n,r;let s=Math.max(t-5,0);return n=i-e(s),(r=t-s)?1e3/r*n:0}let iR=.01,iI=2,iL=.005,iF=.5;function iB(e,t){return e*Math.sqrt(1-t*t)}let iO=["duration","bounce"],i_=["stiffness","damping","mass"];function iz(e,t){return t.some(t=>void 0!==e[t])}function iU(e=.3,t=.3){let i,n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:r,restDelta:s}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:c,mass:d,duration:h,velocity:p,isResolvedFromDuration:m}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!iz(e,i_)&&iz(e,iO))if(e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),n=i*i,r=2*v(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:1,stiffness:n,damping:r}}else{let i=function({duration:e=800,bounce:t=.3,velocity:i=0,mass:n=1}){let r,s;ed(e<=ih(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=v(.05,1,a),e=v(.01,10,e/1e3),a<1?(r=t=>{let n=t*a,r=n*e;return .001-(n-i)/iB(t,a)*Math.exp(-r)},s=t=>{let n=t*a*e,s=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-n),l=iB(Math.pow(t,2),a);return(n*i+i-s)*o*(-r(t)+.001>0?-1:1)/l}):(r=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),s=t=>e*e*(i-t)*Math.exp(-t*e));let o=function(e,t,i){let n=i;for(let i=1;i<12;i++)n-=e(n)/t(n);return n}(r,s,5/e);if(e=ih(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...n,velocity:-((n.velocity||0)/1e3)}),f=p||0,g=c/(2*Math.sqrt(u*d)),y=o-a,x=Math.sqrt(u/d)/1e3,w=5>Math.abs(y);if(r||(r=w?iR:iI),s||(s=w?iL:iF),g<1){let e=iB(x,g);i=t=>o-Math.exp(-g*x*t)*((f+g*x*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===g)i=e=>o-Math.exp(-x*e)*(y+(f+x*y)*e);else{let e=x*Math.sqrt(g*g-1);i=t=>{let i=Math.exp(-g*x*t),n=Math.min(e*t,300);return o-i*((f+g*x*y)*Math.sinh(n)+e*y*Math.cosh(n))/e}}let b={calculatedDuration:m&&h||null,next:e=>{let t=i(e);if(m)l.done=e>=h;else{let n=0===e?f:0;g<1&&(n=0===e?ih(f):iV(i,e,t));let a=Math.abs(o-t)<=s;l.done=Math.abs(n)<=r&&a}return l.value=l.done?o:t,l},toString:()=>{let e=Math.min(iD(b),2e4),t=iN(t=>b.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return b}function iH({keyframes:e,velocity:t=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:c}){let d,h,p=e[0],m={done:!1,value:p},f=i*t,g=p+f,v=void 0===a?g:a(g);v!==g&&(f=v-p);let y=e=>-f*Math.exp(-e/n),x=e=>v+y(e),w=e=>{let t=y(e),i=x(e);m.done=Math.abs(t)<=u,m.value=m.done?v:i},b=e=>{let t;if(t=m.value,void 0!==o&&t<o||void 0!==l&&t>l){var i;d=e,h=iU({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:iV(x,e,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:c})}};return b(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,w(e),b(e)),void 0!==d&&e>=d)?h.next(e-d):(t||w(e),m)}}}iU.applyToOptions=e=>{let t=function(e,t=100,i){let n=i({...e,keyframes:[0,t]}),r=Math.min(iD(n),2e4);return{type:"keyframes",ease:e=>n.next(r*e).value/t,duration:r/1e3}}(e,100,iU);
1return e.ease=t.ease,e.duration=ih(t.duration),e.type="keyframes",e};let i$=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function iW(e,t,i,n){return e===t&&i===n?eR:r=>0===r||1===r?r:i$(function(e,t,i,n,r){let s,a,o=0;do(s=i$(a=t+(i-t)/2,n,r)-e)>0?i=a:t=a;while(Math.abs(s)>1e-7&&++o<12)return a}(r,0,1,e,i),t,n)}let iq=iW(.42,0,1,1),iK=iW(0,0,.58,1),iY=iW(.42,0,.58,1),iG=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,iX=e=>t=>1-e(1-t),iZ=iW(.33,1.53,.69,.99),iJ=iX(iZ),iQ=iG(iJ),i0=e=>(e*=2)<1?.5*iJ(e):.5*(2-Math.pow(2,-10*(e-1))),i1=e=>1-Math.sin(Math.acos(e)),i2=iX(i1),i3=iG(i1),i5=e=>Array.isArray(e)&&"number"==typeof e[0],i4={linear:eR,easeIn:iq,easeInOut:iY,easeOut:iK,circIn:i1,circInOut:i3,circOut:i2,backIn:iJ,backInOut:iQ,backOut:iZ,anticipate:i0},i6=e=>{if(i5(e)){eh(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,i,n,r]=e;return iW(t,i,n,r)}return"string"==typeof e?(eh(void 0!==i4[e],`Invalid easing type '${e}'`,"invalid-easing-type"),i4[e]):e},i9=(e,t,i)=>{let n=t-e;return 0===n?1:(i-e)/n};function i8({duration:e=300,keyframes:t,times:i,ease:n="easeInOut"}){var r;let s,a=Array.isArray(n)&&"number"!=typeof n[0]?n.map(i6):i6(n),o={done:!1,value:t[0]},l=function(e,t,{clamp:i=!0,ease:n,mixer:r}={}){let s=e.length;if(eh(s===t.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,i){let n=[],r=i||eI.mix||iA,s=e.length-1;for(let i=0;i<s;i++){let s=r(e[i],e[i+1]);t&&(s=im(Array.isArray(t)?t[i]||eR:t,s)),n.push(s)}return n}(t,n,r),l=o.length,u=i=>{if(a&&i<e[0])return t[0];let n=0;if(l>1)for(;n<e.length-2&&!(i<e[n+1]);n++);let r=i9(e[n],e[n+1],i);return o[n](r)};return i?t=>u(v(e[0],e[s-1],t)):u}((r=i&&i.length===t.length?i:(!function(e,t){let i=e[e.length-1];for(let n=1;n<=t;n++){let r=i9(0,t,n);e.push(tk(i,1,r))}}(s=[0],t.length-1),s),r.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||iY).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let i7=e=>null!==e;function ne(e,{repeat:t,repeatType:i="loop"},n,r=1){let s=e.filter(i7),a=r<0||t&&"loop"!==i&&t%2==1?0:s.length-1;return a&&void 0!==n?n:s[a]}let nt={decay:iH,inertia:iH,tween:i8,keyframes:i8,spring:iU};function ni(e){"string"==typeof e.type&&(e.type=nt[e.type])}class nn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let nr=e=>e/100;class ns extends nn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==e3.now()&&this.tick(e3.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},ig.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;ni(e);let{type:t=i8,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=e,{keyframes:a}=e,o=t||i8;o!==i8&&"number"!=typeof a[0]&&(this.mixKeyframes=im(nr,iA(a[0],a[1])),a=[0,100]);let l=o({...e,keyframes:a});"mirror"===r&&(this.mirroredGenerator=o({...e,keyframes:[...a].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=iD(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:i,totalDuration:n,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:h,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let x=this.currentTime,w=i;if(c){let e=Math.min(this.currentTime,n)/a,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,c+1))%2&&("reverse"===d?(i=1-i,h&&(i-=h/a)):"mirror"===d&&(w=s)),x=v(0,1,i)*a}let b=y?{done:!1,value:u[0]}:w.next(x);r&&(b.value=r(b.value));let{done:j}=b;y||null===o||(j=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&j);return S&&p!==iH&&(b.value=ne(u,this.options,f,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=ih(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(e3.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=iM,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(e3.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,ig.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function na(e){let t;return()=>(void 0===t&&(t=e()),t)}let no=na(()=>void 0!==window.ScrollTimeline),nl={},nu=(i=na(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),()=>nl.linearEasing??i()),nc=([e,t,i,n])=>`cubic-bezier(${e}, ${t}, ${i}, ${n})`,nd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nc([0,.65,.55,1]),circOut:nc([.55,0,1,.45]),backIn:nc([.31,.01,.66,-.59]),backOut:nc([.33,1.53,.69,.99])};function nh(e){return"function"==typeof e&&"applyToOptions"in e}class np extends nn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:a,onComplete:o}=e;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=e,eh("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return nh(e)&&nu()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let c={[t]:i};l&&(c.offset=l);let d=function e(t,i){if(t)return"function"==typeof t?nu()?iN(t,i):"ease-out":i5(t)?nc(t):Array.isArray(t)?t.map(t=>e(t,i)||nd.easeOut):nd[t]}(o,r);Array.isArray(d)&&(c.easing=d);let h={delay:n,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"};u&&(h.pseudoElement=u);let p=e.animate(c,h);return p}(t,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let e=ne(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):i.startsWith("--")?t.style.setProperty(i,e):t.style[i]=e,this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ih(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&no())?(this.animation.timeline=e,eR):t(this)}}let nm={anticipate:i0,backInOut:iQ,circInOut:i3};class nf extends np{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in nm&&(e.ease=nm[e.ease])}(e),ni(e),super(e),void 0!==e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new ns({...s,autoplay:!1}),o=Math.max(10,e3.now()-this.startTime),l=v(0,10,o-10);t.setWithVelocity(a.sample(Math.max(0,o-l)).value,a.sample(o).value,l),a.stop()}}let ng=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(q.test(e)||"0"===e)&&!e.startsWith("url("));function nv(e){e.duration=0,e.type="keyframes"}let ny=new Set(["opacity","clipPath","filter","transform"]),nx=na(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nw extends nn{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:a,name:o,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=e3.now();const d={autoplay:e,delay:t,type:i,repeat:n,repeatDelay:r,repeatType:s,name:o,motionValue:l,element:u,...c},h=u?.KeyframeResolver||eY;this.keyframeResolver=new h(a,(e,t,i)=>this.onKeyframesResolved(e,t,d,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,n){this.keyframeResolver=void 0;let{name:r,type:s,velocity:a,delay:o,isHandoff:l,onUpdate:u}=i;this.resolvedAt=e3.now(),!function(e,t,i,n){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],a=ng(r,t),o=ng(s,t);return ed(a===o,`You are trying to animate ${t} from "${r}" to "${s}". "${a?s:r}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||nh(i))&&n)}(e,r,s,a)&&((eI.instantAnimations||!o)&&u?.(ne(e,i,t)),e[0]=e[e.length-1],nv(i),i.repeat=0);let c={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},d=!l&&function(e){let{motionValue:t,name:i,repeatDelay:n,repeatType:r,damping:s,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;
1let{onUpdate:o,transformTemplate:l}=t.owner.getProps();return nx()&&i&&ny.has(i)&&("transform"!==i||!l)&&!o&&!n&&"mirror"!==r&&0!==s&&"inertia"!==a}(c),h=c.motionValue?.owner?.current,p=d?new nf({...c,element:h}):new ns(c);p.finished.then(()=>{this.notifyFinished()}).catch(eR),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eW=!0,eK(),eq(),eW=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nb={type:"spring",stiffness:500,damping:25,restSpeed:10},nj={type:"keyframes",duration:.8},nS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nT=e=>null!==e,nC=(e,t,i,n={},r,s)=>a=>{let o=iu(n,e)||{},l=o.delay||n.delay||0,{elapsed:u=0}=n;u-=ih(l);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:r};!function({when:e,delay:t,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(o)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?nj:g.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}
1:nb:nS)(e,c)),c.duration&&(c.duration=ih(c.duration)),c.repeatDelay&&(c.repeatDelay=ih(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(nv(c),0===c.delay&&(d=!0)),(eI.instantAnimations||eI.skipAnimations)&&(d=!0,nv(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!s&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:i="loop"},n){let r=e.filter(nT),s=t&&"loop"!==i&&t%2==1?0:r.length-1;return r[s]}(c.keyframes,o);if(void 0!==e)return void eB.update(()=>{c.onUpdate(e),c.onComplete()})}return o.isSync?new ns(c):new nw(c)};function nP(e,t,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:a,...o}=t,l=s?.reduceMotion;n&&(s=n);let u=[],c=r&&e.animationState&&e.animationState.getState()[r];for(let t in o){let n=e.getValue(t,e.latestValues[t]??null),r=o[t];if(void 0===r||c&&function({protectedKeys:e,needsAnimating:t},i){let n=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,n}(c,t))continue;let a={delay:i,...iu(s||{},t)},d=n.get();if(void 0!==d&&!n.isAnimating&&!Array.isArray(r)&&r===d&&!a.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){let i=e.props[ii];if(i){let e=window.MotionHandoffAnimation(i,t,eB);null!==e&&(a.startTime=e,h=!0)}}id(e,t);let p=l??e.shouldReduceMotion;n.start(nC(t,n,r,p&&ea.has(t)?{type:!1}:a,e,h));let m=n.animation;m&&u.push(m)}return a&&Promise.all(u).then(()=>{eB.update(()=>{a&&function(e,t){let{transitionEnd:i={},transition:n={},...r}=il(e,t)||{};for(let t in r={...r,...i}){var s;let i=ic(s=r[t])?s[s.length-1]||0:s;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,e4(i))}}(e,a)})}),u}function nk(e,t,i,n=0,r=1){let s=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,o=(a-1)*n;return"function"==typeof i?i(s,a):1===r?s*n:o-s*n}function nE(e,t,i={}){let n=il(e,t,"exit"===i.type?e.presenceContext?.custom:void 0),{transition:r=e.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(nP(e,n,i)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=r;return function(e,t,i=0,n=0,r=0,s=1,a){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(nE(l,t,{...a,delay:i+("function"==typeof n?0:n)+nk(e.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,n,s,a,o,i)}:()=>Promise.resolve(),{when:o}=r;if(!o)return Promise.all([s(),a(i.delay)]);{let[e,t]="beforeChildren"===o?[s,a]:[a,s];return e().then(()=>t())}}let nA=tr.length;function nM(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}let nN=[...tn].reverse(),nD=tn.length;function nV(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nR(){return{animate:nV(!0),whileInView:nV(),whileHover:nV(),whileTap:nV(),whileDrag:nV(),whileFocus:nV(),exit:nV()}}let nI=0;function nL(e){return[e("x"),e("y")]}let nF=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function nB(e){return nF.has(e.tagName)||!0===e.isContentEditable}function nO(e,t,i,n={passive:!0}){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i)}let n_={x:!1,y:!1};function nz(e){return e.max-e.min}function nU(e,t,i,n=.5){e.origin=n,e.originPoint=tk(t.min,t.max,e.origin),e.scale=nz(i)/nz(t),e.translate=tk(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function nH(e,t,i,n){nU(e.x,t.x,i.x,n?n.originX:void 0),nU(e.y,t.y,i.y,n?n.originY:void 0)}function n$(e,t,i){e.min=i.min+t.min,e.max=e.min+nz(t)}function nW(e,t,i){e.min=t.min-i.min,e.max=e.min+nz(t)}function nq(e,t,i){nW(e.x,t.x,i.x),nW(e.y,t.y,i.y)}let nK=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function nY(e){return{point:{x:e.pageX,y:e.pageY}}}function nG(e,t,i,n){return nO(e,t,e=>nK(e)&&i(e,nY(e)),n)}let nX=({current:e})=>e?e.ownerDocument.defaultView:null,nZ=(e,t)=>Math.abs(e-t),nJ=new Set(["auto","scroll"]);
1class nQ{constructor(e,t,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=n2(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(e=i.offset,t={x:0,y:0},Math.sqrt(nZ(e.x,t.x)**2+nZ(e.y,t.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:a}=e_;this.history.push({...s,timestamp:a});let{onStart:o,onMove:l}=this.handlers;n||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=n0(t,this.transformPagePoint),eB.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=n2("pointercancel"===e.type?this.lastMoveEventInfo:n0(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,s),n&&n(e,s)},!nK(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;const o=n0(nY(e),this.transformPagePoint),{point:l}=o,{timestamp:u}=e_;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=t;c&&c(e,n2(o,this.history)),this.removeListeners=im(nG(this.contextWindow,"pointermove",this.handlePointerMove),nG(this.contextWindow,"pointerup",this.handlePointerUp),nG(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(nJ.has(e.overflowX)||nJ.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let i=e===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:n.x-t.x,y:n.y-t.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,n),eB.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eO(this.updatePoint)}}function n0(e,t){return t?{point:t(e.point)}:e}function n1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function n2({point:e},t){return{point:e,delta:n1(e,n3(t)),offset:n1(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,n=null,r=n3(e);for(;i>=0&&(n=e[i],!(r.timestamp-n.timestamp>ih(.1)));)i--;if(!n)return{x:0,y:0};let s=(r.timestamp-n.timestamp)/1e3;if(0===s)return{x:0,y:0};let a={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function n3(e){return e[e.length-1]}function n5(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function n4(e,t){let i=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,n]=[n,i]),{min:i,max:n}}function n6(e,t,i){return{min:n9(e,t),max:n9(e,i)}}function n9(e,t){return"number"==typeof e?e:e[t]||0}let n8=new WeakMap;class n7{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=er(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=e=>{t?(this.stopAnimation(),this.snapToCursor(nY(e).point)):this.pauseAnimation()},s=(e,t)=>{this.stopAnimation();let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"
1y"===e)if(n_[e])return null;else return n_[e]=!0,()=>{n_[e]=!1};return n_.x||n_.y?null:(n_.x=n_.y=!0,()=>{n_.x=n_.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nL(e=>{let t=this.getAxisMotionValue(e).get()||0;if(N.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[e];n&&(t=nz(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),r&&eB.postRender(()=>r(e,t)),id(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),s&&s(e,t)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>nL(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new nQ(e,{onSessionStart:r,onStart:s,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:nX(this.visualElement),element:this.visualElement.current})}stop(e,t){let i=e||this.latestPointerEvent,n=t||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:a}=this.getProps();a&&eB.postRender(()=>a(i,n))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,i){let{drag:n}=this.getProps();if(!i||!re(e,n,this.currentDirection))return;let r=this.getAxisMotionValue(e),s=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:i},n){return void 0!==t&&e<t?e=n?tk(t,e,n.min):Math.max(e,t):void 0!==i&&e>i&&(e=n?tk(i,e,n.max):Math.min(e,i)),e}(s,this.constraints[e],this.elastic[e])),r.set(s)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&is(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:n,right:r}){return{x:n5(e.x,i,r),y:n5(e.y,t,n)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:n6(e,"left","right"),y:n6(e,"top","bottom")}}(t),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nL(e=>{var t,n;let r;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=i.layoutBox[e],n=this.constraints[e],r={},void 0!==n.min&&(r.min=n.min-t.min),void 0!==n.max&&(r.max=n.max-t.min),r))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!is(t))return!1;let n=t.current;eh(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=function(e,t,i){let n=t$(e,i),{scroll:r}=t;return r&&(tz(n.x,r.offset.x),tz(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),a=(e=r.layout.layoutBox,{x:n4(e.x,s.x),y:n4(e.y,s.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=tV(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(nL(a=>
1{if(!re(a,t,this.currentDirection))return;let l=o&&o[a]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return id(this.visualElement,e),i.start(nC(e,i,0,t,this.visualElement,!1))}stopAnimation(){nL(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){nL(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[t]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){nL(t=>{let{drag:i}=this.getProps();if(!re(t,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(t);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[t],a=r.get()||0;r.set(e[t]-tk(i,s,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!is(t)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nL(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var i,r;let s,a,o,l=t.get();n[e]=(i={min:l,max:l},r=this.constraints[e],s=.5,a=nz(i),(o=nz(r))>a?s=i9(r.min,r.max-a,i.min):a>o&&(s=i9(i.min,i.max-o,r.min)),v(0,1,s))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),nL(t=>{if(!re(t,e,null))return;let i=this.getAxisMotionValue(t),{min:r,max:s}=this.constraints[t];i.set(tk(r,s,n[t]))})}addListeners(){if(!this.visualElement.current)return;n8.set(this.visualElement,this);let e=this.visualElement.current,t=nG(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),r=t.target,s=r!==e&&nB(r);i&&n&&!s&&this.start(t)}),i=()=>{let{dragConstraints:e}=this.getProps();is(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",i);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),eB.read(i);let s=nO(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(nL(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),t(),r(),a&&a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:a}}}function re(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let rt=e=>(t,i)=>{e&&eB.postRender(()=>e(t,i))},ri={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var rn=s;let rr=!1;class rs extends rn.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=e;r&&(t.group&&t.group.add(r),i&&i.register&&n&&i.register(r),rr&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ri.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,e.layoutDependency!==t&&s.setOptions({...s.options,layoutDependency:t}),rr=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==r?s.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?s.promote():s.relegate()||eB.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),e1.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:n}=e;rr=!0,n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ra(e){let[t,i]=m(),n=(0,rn.useContext)(a);return(0,tY.jsx)(rs,{...e,layoutGroup:n,switchLayoutGroup:(0,rn.useContext)(ir),isPresent:t,safeToRemove:i})}function ro(e){return d(e)&&"ownerSVGElement"in e}let rl=["TopLeft","TopRight","BottomLeft","BottomRight"],ru=rl.length,rc=e=>"string"==typeof e?parseFloat(e):e,rd=e=>"number"==typeof e||D.test(e);function rh(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rp=rf(0,.5,i2),rm=rf(.5,.95,eR);function rf(e,t,i){return n=>n<e?0:n>t?1:i(i9(e,t,n))}function rg(e,t){e.min=t.min,e.max=t.max}function rv(e,t){rg(e.x,t.x),rg(e.y,t.y)}function ry(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rx(e,t,i,n,r){return e-=t,e=n+1/i*(e-n),void 0!==r&&(e=n+1/r*(e-n)),e}function rw(e,t,[i,n,r],s,a){!function(e,t=0,i=1,n=.5,r,s=e,a=e){if(N.test(t)&&(t=parseFloat(t),t=tk(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=tk(s.min,s.max,n);e===s&&(o-=t),e.min=rx(e.min,t,i,o,r),e.max=rx(e.max,t,i,o,r)}(e,t[i],t[n],t[r],t.scale,s,a)}let rb=["x","scaleX","originX"],rj=["y","scaleY","originY"];function rS(e,t,i,n){rw(e.x,t,rb,i?i.x:void 0,n?n.x:void 0),rw(e.y,t,rj,i?i.y:void 0,n?n.y:void 0)}function rT(e){return 0===e.translate&&1===e.scale}function rC(e){return rT(e.x)&&rT(e.y)}function rP(e,t){return e.min===t.min&&e.max===t.max}function rk(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}
1function rE(e,t){return rk(e.x,t.x)&&rk(e.y,t.y)}function rA(e){return nz(e.x)/nz(e.y)}function rM(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class rN{constructor(){this.members=[]}add(e){eJ(this.members,e),e.scheduleRender()}remove(e){if(eQ(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,i=this.members.findIndex(t=>e===t);if(0===i)return!1;for(let e=i;e>=0;e--){let i=this.members[e];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender();let n=i.options.layoutDependency,r=e.options.layoutDependency;(void 0===n||void 0===r||n!==r)&&(e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0));let{crossfade:s}=e.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:i}=e;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rD=(e,t)=>e.depth-t.depth;class rV{constructor(){this.children=[],this.isDirty=!1}add(e){eJ(this.children,e),this.isDirty=!0}remove(e){eQ(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rD),this.isDirty=!1,this.children.forEach(e)}}let rR=["","X","Y","Z"],rI=0;function rL(e,t,i,n){let{latestValues:r}=t;r[e]&&(i[e]=r[e],t.setStaticValue(e,0),n&&(n[e]=0))}function rF({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(e={},i=t?.()){this.id=rI++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(r_),this.nodes.forEach(rK),this.nodes.forEach(rY),this.nodes.forEach(rz)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new rV)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new e0),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=ro(t)&&!(ro(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),e){let i,n=0,r=()=>this.root.updateBlockedByResize=!1;eB.read(()=>{n=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==n){let t,s;n=e,this.root.updateBlockedByResize=!0,i&&i(),t=e3.now(),s=({timestamp:e})=>{let i=e-t;i>=250&&(eO(s),r(i-250))},eB.setup(s,!0),i=()=>eO(s),ri.hasAnimatedSinceResize&&(ri.hasAnimatedSinceResize=!1,this.nodes.forEach(rq))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||r0,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=r.getProps(),l=!this.targetLayout||!rE(this.targetLayout,n),u=!t&&i;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...iu(s,"layout"),onPlay:a,onComplete:o};(r.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||rq(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eO(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(rG),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let n=i.props[ii];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",eB,!(e||i))}let{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&e(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rH);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(r$);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rW),this.nodes.forEach(rB),this.nodes.forEach(rO)):this.nodes.forEach(r$),this.clearAllSnapshots();let e=e3.now();e_.delta=v(0,1e3/60,e-e_.timestamp),e_.timestamp=e,e_.isProcessing=!0,ez.update.process(e_),ez.preRender.process(e_),ez.render.process(e_),e_.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,e1.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rU),this.sharedNodes.forEach(rX)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eB.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eB.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nz(this.snapshot.measuredBox.x)||nz(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=er(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!rC(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||tL(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),r3((t=n).x),r3(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return er();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(r4))){let{scroll:e}=this.root;e&&(tz(t.x,e.offset.x),tz(t.y,e.offset.y))}return t}removeElementScroll(e){let t=er();if(rv(t,e),this.scroll?.wasRoot)return t;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&rv(t,e),tz(t.x,r.offset.x),tz(t.y,r.offset.y))}return t}applyTransform(e,t=!1){let i=er();rv(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&tH(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),tL(n.latestValues)&&tH(i,n.latestValues)}return tL(this.latestValues)&&tH(i,this.latestValues),i}removeTransform(e){let t=er();rv(t,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];if(!i.instance||!tL(i.latestValues))continue;tI(i.latestValues)&&i.updateSnapshot();let n=er();rv(n,i.measurePageBox()),rS(t,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return tL(this.latestValues)&&rS(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==e_.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
1isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t;if(!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(!this.layout||!(n||r))return;this.resolvedRelativeTargetAt=e_.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=er(),this.targetWithTransforms=er()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,n$(a.x,o.x,l.x),n$(a.y,o.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rv(this.target,this.layout.layoutBox),t_(this.target,this.targetDelta)):rv(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||tI(this.parent.latestValues)||tF(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,i){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=er(),this.relativeTargetOrigin=er(),nq(this.relativeTargetOrigin,t,i),rv(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===e_.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;rv(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(e,t,i,n=!1){let r,s,a=i.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){s=(r=i[o]).projectionDelta;let{visualElement:a}=r.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&tH(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,t_(e,s)),n&&tL(r.latestValues)&&tH(e,r.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=er());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(ry(this.prevProjectionDelta.x,this.projectionDelta.x),ry(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nH(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&rM(this.projectionDelta.x,this.prevProjectionDelta.x)&&rM(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ei(),this.projectionDelta=ei(),this.projectionDeltaWithTransform=ei()}setAnimationOrigin(e,t=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},a=ei();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=er(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(rQ));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(rZ(a.x,e.x,n),rZ(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,p,m,f,g;nq(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,g=n,rJ(p.x,m.x,f.x,g),rJ(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,h=i,rP(u.x,h.x)&&rP(u.y,h.y))&&(this.isProjectionDirty=!1),i||(i=er()),rv(i,this.relativeTarget)}l&&(this.animationValues=s,function(e,t,i,n,r,s){r?(e.opacity=tk(0,i.opacity??1,rp(n)),e.opacityExit=tk(t.opacity??1,0,rm(n))):s&&(e.opacity=tk(t.opacity??1,i.opacity??1,n));for(let r=0;r<ru;r++){let s=`border${rl[r]}Radius`,a=rh(t,s),o=rh(i,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||rd(a)===rd(o)?(e[s]=Math.max(tk(rc(a),rc(o),n),0),(N.test(o)||N.test(a))&&(e[s]+="
1%")):e[s]=o)}(t.rotate||i.rotate)&&(e.rotate=tk(t.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eO(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eB.update(()=>{var t,i,n;let r;ri.hasAnimatedSinceResize=!0,ig.layout++,this.motionValue||(this.motionValue=e4(0)),this.currentAnimation=(t=this.motionValue,i=[0,1e3],n={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{ig.layout--},onComplete:()=>{ig.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(r=es(t)?t:e4(t)).start(nC("",r,i,n)),r.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:n,latestValues:r}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&r5(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||er();let t=nz(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=nz(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}rv(t,i),tH(t,r),nH(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rN),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let n={};i.z&&rL("z",e,n,this.animationValues);for(let t=0;t<rR.length;t++)rL(`rotate${rR[t]}`,e,n,this.animationValues),rL(`skew${rR[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=t5(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=t5(t?.pointerEvents)||""),this.hasProjected&&!tL(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1);return}e.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(e,t,i){let n="",r=e.x.translate/t.x,s=e.y.translate/t.y,a=i?.z||0;if((r||s||a)&&(n=`translate3d(${r}px, ${s}px, ${a}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,rotateX:r,rotateY:s,skewX:a,skewY:o}=i;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);
1i&&(s=i(r,s)),e.transform=s;let{x:a,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?e.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:e.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,tE){if(void 0===r[t])continue;let{correct:i,applyTo:a,isCSSVariable:o}=tE[t],l="none"===s?r[t]:i(r[t],n);if(a){let t=a.length;for(let i=0;i<t;i++)e[a[i]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=n===this?t5(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(rH),this.root.sharedNodes.clear()}}}function rB(e){e.updateLayout()}function rO(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=e.layout,{animationType:r}=e.options,s=t.source!==e.layout.source;"size"===r?nL(e=>{let n=s?t.measuredBox[e]:t.layoutBox[e],r=nz(n);n.min=i[e].min,n.max=n.min+r}):r5(r,t.layoutBox,i)&&nL(n=>{let r=s?t.measuredBox[n]:t.layoutBox[n],a=nz(i[n]);r.max=r.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});let a=ei();nH(a,i,t.layoutBox);let o=ei();s?nH(o,e.applyTransform(n,!0),t.measuredBox):nH(o,i,t.layoutBox);let l=!rC(a),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let a=er();nq(a,t.layoutBox,r.layoutBox);let o=er();nq(o,i,s.layoutBox),rE(a,o)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function r_(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rz(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rU(e){e.clearSnapshot()}function rH(e){e.clearMeasurements()}function r$(e){e.isLayoutDirty=!1}function rW(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rq(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rK(e){e.resolveTargetDelta()}function rY(e){e.calcProjection()}function rG(e){e.resetSkewAndRotation()}function rX(e){e.removeLeadSnapshot()}function rZ(e,t,i){e.translate=tk(t.translate,0,i),e.scale=tk(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function rJ(e,t,i,n){e.min=tk(t.min,i.min,n),e.max=tk(t.max,i.max,n)}function rQ(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let r0={duration:.45,ease:[.4,0,.1,1]},r1=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),r2=r1("applewebkit/")&&!r1("chrome/")?Math.round:eR;function r3(e){e.min=r2(e.min),e.max=r2(e.max)}function r5(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(rA(t)-rA(i)))}function r4(e){return e!==e.root&&e.scroll?.wasRoot}let r6=rF({attachResizeListener:(e,t)=>nO(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),r9={current:void 0},r8=rF({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!r9.current){let e=new r6({});e.mount(window),e.setOptions({layoutScroll:!0}),r9.current=e}return r9.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});var r7=e.i(451398);function se(e,t){let i=(0,r7.resolveElements)(e),n=new AbortController;return[i,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function st(e){return!("touch"===e.pointerType||n_.x||n_.y)}function si(e,t,i){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&eB.postRender(()=>r(t,nY(t)))}let sn=(e,t)=>!!t&&(e===t||sn(e,t.parentElement)),sr=new WeakSet;function ss(e){return t=>{"Enter"===t.key&&e(t)}}function sa(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function so(e){return nK(e)&&!(n_.x||n_.y)}function sl(e,t,i){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&eB.postRender(()=>r(t,nY(t)))}let su=new WeakMap,sc=new WeakMap,sd=e=>{let t=su.get(e.target);t&&t(e)},sh=e=>{e.forEach(sd)},sp={some:0,all:1},sm=function(e,t){if("u"<typeof Proxy)return ia;let i=new Map,n=(i,n)=>ia(i,n,e,t);return new Proxy((e,t)=>n(e,t),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,ia(s,void 0,e,t)),i.get(s))})}({animation:{Feature:class extends io{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>nE(e,t,i)));else if("string"==typeof t)n=nE(e,t,i);else{let r="function"==typeof t?il(e,t,i.custom):t;n=Promise.all(nP(e,r,i))}return n.then(()=>
1{e.notify("AnimationComplete",t)})})(e,t,i))),i=nR(),n=!0,r=t=>(i,n)=>{let r=il(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(r){let{transition:e,transitionEnd:t,...n}=r;i={...i,...n,...t}}return i};function s(s){let{props:a}=e,o=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<nA;e++){let n=tr[e],r=t.props[n];(ti(r)||!1===r)&&(i[n]=r)}return i}(e.parent)||{},l=[],u=new Set,c={},d=1/0;for(let t=0;t<nD;t++){var h,p;let m=nN[t],f=i[m],g=void 0!==a[m]?a[m]:o[m],v=ti(g),y=m===s?f.isActive:null;!1===y&&(d=t);let x=g===o[m]&&g!==a[m]&&v;if(x&&n&&e.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...c},!f.isActive&&null===y||!g&&!f.prevProp||tt(g)||"boolean"==typeof g)continue;let w=(h=f.prevProp,"string"==typeof(p=g)?p!==h:!!Array.isArray(p)&&!nM(p,h)),b=w||m===s&&f.isActive&&!x&&v||t>d&&v,j=!1,S=Array.isArray(g)?g:[g],T=S.reduce(r(m),{});!1===y&&(T={});let{prevResolvedValues:C={}}=f,P={...C,...T},k=t=>{b=!0,u.has(t)&&(j=!0,u.delete(t)),f.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in P){let t=T[e],i=C[e];if(!c.hasOwnProperty(e))(ic(t)&&ic(i)?nM(t,i):t===i)?void 0!==t&&u.has(e)?k(e):f.protectedKeys[e]=!0:null!=t?k(e):u.add(e)}f.prevProp=g,f.prevResolvedValues=T,f.isActive&&(c={...c,...T}),n&&e.blockInitialAnimation&&(b=!1);let E=x&&w,A=!E||j;b&&A&&l.push(...S.map(t=>{let i={type:m};if("string"==typeof t&&n&&!E&&e.manuallyAnimateOnMount&&e.parent){let{parent:n}=e,r=il(n,t);if(n.enteringChildren&&r){let{delayChildren:t}=r.transition||{};i.delay=nk(n.enteringChildren,e,t)}}return{animation:t,options:i}}))}if(u.size){let t={};if("boolean"!=typeof a.initial){let i=il(e,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(t.transition=i.transition)}u.forEach(i=>{let n=e.getBaseTarget(i),r=e.getValue(i);r&&(r.liveStyle=!0),t[i]=n??null}),l.push({animation:t})}let m=!!l.length;return n&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(l):Promise.resolve()}return{animateChanges:s,setActive:function(t,n){if(i[t].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,n)),i[t].isActive=n;let r=s(t);for(let e in i)i[e].protectedKeys={};return r},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=nR()}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tt(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends io{constructor(){super(...arguments),this.id=nI++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends io{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:a}=i,o={root:n?n.current:void 0,rootMargin:r,threshold:"number"==typeof s?s:sp[s]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=t?i:n;r&&r(e)};return e=this.node.current,t=function({root:e,...t}){let i=e||document;sc.has(i)||sc.set(i,{});let n=sc.get(i),r=JSON.stringify(t);return n[r]||(n[r]=new IntersectionObserver(sh,{root:e,...t})),n[r]}(o),su.set(e,l),t.observe(e),()=>{su.delete(e),t.unobserve(e)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends io{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[n,r,s]=se(e,i),a=e=>{let n=e.currentTarget;if(!so(e))return;sr.add(n);let s=t(n,e),a=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),sr.has(n)&&sr.delete(n),so(e)&&"function"==typeof s&&s(e,{success:t})},o=e=>{a(e,n===window||n===document||i.useGlobalTarget||sn(n,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",l,r)};
1return n.forEach(e=>{(i.useGlobalTarget?window:e).addEventListener("pointerdown",a,r),h(e)&&(e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let n=ss(()=>{if(sr.has(i))return;sa(i,"down");let e=ss(()=>{sa(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>sa(i,"cancel"),t)});i.addEventListener("keydown",n,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),t)})(e,r)),nB(e)||e.hasAttribute("tabindex")||(e.tabIndex=0))}),s}(e,(e,t)=>(sl(this.node,t,"Start"),(e,{success:t})=>sl(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends io{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=im(nO(this.node.current,"focus",()=>this.onFocus()),nO(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends io{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[n,r,s]=se(e,i),a=e=>{if(!st(e))return;let{target:i}=e,n=t(i,e);if("function"!=typeof n||!i)return;let s=e=>{st(e)&&(n(e),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,r)};return n.forEach(e=>{e.addEventListener("pointerenter",a,r)}),s}(e,(e,t)=>(si(this.node,t,"Start"),e=>si(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends io{constructor(){super(...arguments),this.removePointerDownListener=eR}onPointerDown(e){this.session=new nQ(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nX(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:rt(e),onStart:rt(t),onMove:i,onEnd:(e,t)=>{delete this.session,n&&eB.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=nG(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends io{constructor(e){super(e),this.removeGroupControls=eR,this.removeListeners=eR,this.controls=new n7(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eR}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:r8,MeasureLayout:ra},layout:{ProjectionNode:r8,MeasureLayout:ra}},(e,t)=>t.isSVG??tK(e)?new tD(t):new tW(t,{allowProjection:e!==s.Fragment}));e.s(["motion",()=>sm],562897)},967489,e=>{"use strict";var t=e.i(342433),i=e.i(182899),n=e.i(517811);function r(e,[t,i]){return Math.min(i,Math.max(t,e))}var s=e.i(291967),a=e.i(978279),o=e.i(205978),l=e.i(922528),u=e.i(566033),c=e.i(194821),d=e.i(341687),h=e.i(207459),p=e.i(713123),m=e.i(690065),f=e.i(874227),g=e.i(738411),v=e.i(786874),y=e.i(929297),x=e.i(936589),w=e.i(305192),b=e.i(23405),j=e.i(299804),S=e.i(73772),T=e.i(813044),C=[" ","Enter","ArrowUp","ArrowDown"],P=[" ","Enter"],k="Select",[E,A,M]=(0,a.createCollection)(k),[N,D]=(0,l.createContextScope)(k,[M,m.createPopperScope]),V=(0,m.createPopperScope)(),[R,I]=N(k),[L,F]=N(k),B=e=>{let{__scopeSelect:n,children:r,open:s,defaultOpen:a,onOpenChange:o,value:l,defaultValue:c,onValueChange:d,dir:h,name:f,autoComplete:g,disabled:v,required:y,form:w}=e,b=V(n),[j,S]=i.useState(null),[T,C]=i.useState(null),[P,A]=i.useState(!1),M=(0,u.useDirection)(h),[N,D]=(0,x.useControllableState)({prop:s,defaultProp:a??!1,onChange:o,caller:k}),[I,F]=(0,x.useControllableState)({prop:l,defaultProp:c,onChange:d,caller:k}),B=i.useRef(null),O=!j||w||!!j.closest("form"),[_,z]=i.useState(new Set),U=Array.from(_).map(e=>e.props.value).join(";");return(0,t.jsx)(m.Root,{...b,children:(0,t.jsxs)(R,{required:y,scope:n,trigger:j,onTriggerChange:S,valueNode:T,onValueNodeChange:C,valueNodeHasChildren:P,onValueNodeHasChildrenChange:A,contentId:(0,p.useId)(),value:I,onValueChange:F,open:N,onOpenChange:D,dir:M,triggerPointerDownPosRef:B,disabled:v,children:[(0,t.jsx)(E.Provider,{scope:n,children:(0,t.jsx)(L,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(e=>{z(t=>new Set(t).add(e))},[]),onNativeOptionRemove:i.useCallback(e=>{z(t=>{let i=new Set(t);return i.delete(e),i})},[]),children:r})}),O?(0,t.jsxs)(eb,{"aria-hidden":!0,required:y,tabIndex:-1,name:f,autoComplete:g,value:I,onChange:e=>F(e.target.value),disabled:v,form:w,children:[void 0===I?(0,t.jsx)("option",{value:""}):null,Array.from(_)]},U):null]})})};B.displayName=k;
1var O="SelectTrigger",_=i.forwardRef((e,n)=>{let{__scopeSelect:r,disabled:a=!1,...l}=e,u=V(r),c=I(O,r),d=c.disabled||a,h=(0,o.useComposedRefs)(n,c.onTriggerChange),p=A(r),f=i.useRef("touch"),[v,y,x]=eS(e=>{let t=p().filter(e=>!e.disabled),i=t.find(e=>e.value===c.value),n=eT(t,e,i);void 0!==n&&c.onValueChange(n.value)}),w=e=>{d||(c.onOpenChange(!0),x()),e&&(c.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,t.jsx)(m.Anchor,{asChild:!0,...u,children:(0,t.jsx)(g.Primitive.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":ej(c.value)?"":void 0,...l,ref:h,onClick:(0,s.composeEventHandlers)(l.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&w(e)}),onPointerDown:(0,s.composeEventHandlers)(l.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(w(e),e.preventDefault())}),onKeyDown:(0,s.composeEventHandlers)(l.onKeyDown,e=>{let t=""!==v.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||y(e.key),(!t||" "!==e.key)&&C.includes(e.key)&&(w(),e.preventDefault())})})})});_.displayName=O;var z="SelectValue",U=i.forwardRef((e,i)=>{let{__scopeSelect:n,className:r,style:s,children:a,placeholder:l="",...u}=e,c=I(z,n),{onValueNodeHasChildrenChange:d}=c,h=void 0!==a,p=(0,o.useComposedRefs)(i,c.onValueNodeChange);return(0,w.useLayoutEffect)(()=>{d(h)},[d,h]),(0,t.jsx)(g.Primitive.span,{...u,ref:p,style:{pointerEvents:"none"},children:ej(c.value)?(0,t.jsx)(t.Fragment,{children:l}):a})});U.displayName=z;var H=i.forwardRef((e,i)=>{let{__scopeSelect:n,children:r,...s}=e;return(0,t.jsx)(g.Primitive.span,{"aria-hidden":!0,...s,ref:i,children:r||"â¼"})});H.displayName="SelectIcon";var $=e=>(0,t.jsx)(f.Portal,{asChild:!0,...e});$.displayName="SelectPortal";var W="SelectContent",q=i.forwardRef((e,r)=>{let s=I(W,e.__scopeSelect),[a,o]=i.useState();return((0,w.useLayoutEffect)(()=>{o(new DocumentFragment)},[]),s.open)?(0,t.jsx)(X,{...e,ref:r}):a?n.createPortal((0,t.jsx)(K,{scope:e.__scopeSelect,children:(0,t.jsx)(E.Slot,{scope:e.__scopeSelect,children:(0,t.jsx)("div",{children:e.children})})}),a):null});q.displayName=W;var[K,Y]=N(W),G=(0,v.createSlot)("SelectContent.RemoveScroll"),X=i.forwardRef((e,n)=>{let{__scopeSelect:r,position:a="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:p,side:m,sideOffset:f,align:g,alignOffset:v,arrowPadding:y,collisionBoundary:x,collisionPadding:w,sticky:b,hideWhenDetached:j,avoidCollisions:C,...P}=e,k=I(W,r),[E,M]=i.useState(null),[N,D]=i.useState(null),V=(0,o.useComposedRefs)(n,e=>M(e)),[R,L]=i.useState(null),[F,B]=i.useState(null),O=A(r),[_,z]=i.useState(!1),U=i.useRef(!1);i.useEffect(()=>{if(E)return(0,S.hideOthers)(E)},[E]),(0,d.useFocusGuards)();let H=i.useCallback(e=>{let[t,...i]=O().map(e=>e.ref.current),[n]=i.slice(-1),r=document.activeElement;for(let i of e)if(i===r||(i?.scrollIntoView({block:"nearest"}),i===t&&N&&(N.scrollTop=0),i===n&&N&&(N.scrollTop=N.scrollHeight),i?.focus(),document.activeElement!==r))return},[O,N]),$=i.useCallback(()=>H([R,E]),[H,R,E]);i.useEffect(()=>{_&&$()},[_,$]);let{onOpenChange:q,triggerPointerDownPosRef:Y}=k;i.useEffect(()=>{if(E){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(Y.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(Y.current?.y??0))}},i=i=>{e.x<=10&&e.y<=10?i.preventDefault():E.contains(i.target)||q(!1),document.removeEventListener("pointermove",t),Y.current=null};return null!==Y.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",i,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",i,{capture:!0})}}},[E,q,Y]),i.useEffect(()=>{let e=()=>q(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[q]);let[X,Q]=eS(e=>
1{let t=O().filter(e=>!e.disabled),i=t.find(e=>e.ref.current===document.activeElement),n=eT(t,e,i);n&&setTimeout(()=>n.ref.current.focus())}),ee=i.useCallback((e,t,i)=>{let n=!U.current&&!i;(void 0!==k.value&&k.value===t||n)&&(L(e),n&&(U.current=!0))},[k.value]),et=i.useCallback(()=>E?.focus(),[E]),ei=i.useCallback((e,t,i)=>{let n=!U.current&&!i;(void 0!==k.value&&k.value===t||n)&&B(e)},[k.value]),en="popper"===a?J:Z,er=en===J?{side:m,sideOffset:f,align:g,alignOffset:v,arrowPadding:y,collisionBoundary:x,collisionPadding:w,sticky:b,hideWhenDetached:j,avoidCollisions:C}:{};return(0,t.jsx)(K,{scope:r,content:E,viewport:N,onViewportChange:D,itemRefCallback:ee,selectedItem:R,onItemLeave:et,itemTextRefCallback:ei,focusSelectedItem:$,selectedItemText:F,position:a,isPositioned:_,searchRef:X,children:(0,t.jsx)(T.RemoveScroll,{as:G,allowPinchZoom:!0,children:(0,t.jsx)(h.FocusScope,{asChild:!0,trapped:k.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,s.composeEventHandlers)(l,e=>{k.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,t.jsx)(c.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:(0,t.jsx)(en,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:e=>e.preventDefault(),...P,...er,onPlaced:()=>z(!0),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...P.style},onKeyDown:(0,s.composeEventHandlers)(P.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||Q(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=O().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let i=e.target,n=t.indexOf(i);t=t.slice(n+1)}setTimeout(()=>H(t)),e.preventDefault()}})})})})})})});X.displayName="SelectContentImpl";var Z=i.forwardRef((e,n)=>{let{__scopeSelect:s,onPlaced:a,...l}=e,u=I(W,s),c=Y(W,s),[d,h]=i.useState(null),[p,m]=i.useState(null),f=(0,o.useComposedRefs)(n,e=>m(e)),v=A(s),y=i.useRef(!1),x=i.useRef(!0),{viewport:b,selectedItem:j,selectedItemText:S,focusSelectedItem:T}=c,C=i.useCallback(()=>{if(u.trigger&&u.valueNode&&d&&p&&b&&j&&S){let e=u.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),i=u.valueNode.getBoundingClientRect(),n=S.getBoundingClientRect();if("rtl"!==u.dir){let s=n.left-t.left,a=i.left-s,o=e.left-a,l=e.width+o,u=Math.max(l,t.width),c=r(a,[10,Math.max(10,window.innerWidth-10-u)]);d.style.minWidth=l+"px",d.style.left=c+"px"}else{let s=t.right-n.right,a=window.innerWidth-i.right-s,o=window.innerWidth-e.right-a,l=e.width+o,u=Math.max(l,t.width),c=r(a,[10,Math.max(10,window.innerWidth-10-u)]);d.style.minWidth=l+"px",d.style.right=c+"px"}let s=v(),o=window.innerHeight-20,l=b.scrollHeight,c=window.getComputedStyle(p),h=parseInt(c.borderTopWidth,10),m=parseInt(c.paddingTop,10),f=parseInt(c.borderBottomWidth,10),g=h+m+l+parseInt(c.paddingBottom,10)+f,x=Math.min(5*j.offsetHeight,g),w=window.getComputedStyle(b),T=parseInt(w.paddingTop,10),C=parseInt(w.paddingBottom,10),P=e.top+e.height/2-10,k=j.offsetHeight/2,E=h+m+(j.offsetTop+k);if(E<=P){let e=s.length>0&&j===s[s.length-1].ref.current;d.style.bottom="0px";let t=Math.max(o-P,k+(e?C:0)+(p.clientHeight-b.offsetTop-b.offsetHeight)+f);d.style.height=E+t+"px"}else{let e=s.length>0&&j===s[0].ref.current;d.style.top="0px";let t=Math.max(P,h+b.offsetTop+(e?T:0)+k);d.style.height=t+(g-E)+"px",b.scrollTop=E-P+b.offsetTop}d.style.margin="10px 0",d.style.minHeight=x+"px",d.style.maxHeight=o+"px",a?.(),requestAnimationFrame(()=>y.current=!0)}},[v,u.trigger,u.valueNode,d,p,b,j,S,u.dir,a]);(0,w.useLayoutEffect)(()=>C(),[C]);let[P,k]=i.useState();(0,w.useLayoutEffect)(()=>{p&&k(window.getComputedStyle(p).zIndex)},[p]);let E=i.useCallback(e=>{e&&!0===x.current&&(C(),T?.(),x.current=!1)},[C,T]);return(0,t.jsx)(Q,{scope:s,contentWrapper:d,shouldExpandOnScrollRef:y,onScrollButtonChange:E,children:(0,t.jsx)("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P},children:(0,t.jsx)(g.Primitive.div,{...l,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});Z.displayName="SelectItemAlignedPosition";var J=i.forwardRef((e,i)=>{let{__scopeSelect:n,align:r="start",collisionPadding:s=10,...a}=e,o=V(n);return(0,t.jsx)(m.Content,{...o,...a,ref:i,align:r,collisionPadding:s,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});J.displayName="SelectPopperPosition";var[Q,ee]=N(W,{}
1),et="SelectViewport",ei=i.forwardRef((e,n)=>{let{__scopeSelect:r,nonce:a,...l}=e,u=Y(et,r),c=ee(et,r),d=(0,o.useComposedRefs)(n,u.onViewportChange),h=i.useRef(0);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,t.jsx)(E.Slot,{scope:r,children:(0,t.jsx)(g.Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:(0,s.composeEventHandlers)(l.onScroll,e=>{let t=e.currentTarget,{contentWrapper:i,shouldExpandOnScrollRef:n}=c;if(n?.current&&i){let e=Math.abs(h.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,r=Math.max(parseFloat(i.style.minHeight),parseFloat(i.style.height));if(r<n){let s=r+e,a=Math.min(n,s),o=s-a;i.style.height=a+"px","0px"===i.style.bottom&&(t.scrollTop=o>0?o:0,i.style.justifyContent="flex-end")}}}h.current=t.scrollTop})})})]})});ei.displayName=et;var en="SelectGroup",[er,es]=N(en);i.forwardRef((e,i)=>{let{__scopeSelect:n,...r}=e,s=(0,p.useId)();return(0,t.jsx)(er,{scope:n,id:s,children:(0,t.jsx)(g.Primitive.div,{role:"group","aria-labelledby":s,...r,ref:i})})}).displayName=en;var ea="SelectLabel";i.forwardRef((e,i)=>{let{__scopeSelect:n,...r}=e,s=es(ea,n);return(0,t.jsx)(g.Primitive.div,{id:s.id,...r,ref:i})}).displayName=ea;var eo="SelectItem",[el,eu]=N(eo),ec=i.forwardRef((e,n)=>{let{__scopeSelect:r,value:a,disabled:l=!1,textValue:u,...c}=e,d=I(eo,r),h=Y(eo,r),m=d.value===a,[f,v]=i.useState(u??""),[y,x]=i.useState(!1),w=(0,o.useComposedRefs)(n,e=>h.itemRefCallback?.(e,a,l)),b=(0,p.useId)(),j=i.useRef("touch"),S=()=>{l||(d.onValueChange(a),d.onOpenChange(!1))};if(""===a)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,t.jsx)(el,{scope:r,value:a,disabled:l,textId:b,isSelected:m,onItemTextChange:i.useCallback(e=>{v(t=>t||(e?.textContent??"").trim())},[]),children:(0,t.jsx)(E.ItemSlot,{scope:r,value:a,disabled:l,textValue:f,children:(0,t.jsx)(g.Primitive.div,{role:"option","aria-labelledby":b,"data-highlighted":y?"":void 0,"aria-selected":m&&y,"data-state":m?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...c,ref:w,onFocus:(0,s.composeEventHandlers)(c.onFocus,()=>x(!0)),onBlur:(0,s.composeEventHandlers)(c.onBlur,()=>x(!1)),onClick:(0,s.composeEventHandlers)(c.onClick,()=>{"mouse"!==j.current&&S()}),onPointerUp:(0,s.composeEventHandlers)(c.onPointerUp,()=>{"mouse"===j.current&&S()}),onPointerDown:(0,s.composeEventHandlers)(c.onPointerDown,e=>{j.current=e.pointerType}
1),onPointerMove:(0,s.composeEventHandlers)(c.onPointerMove,e=>{j.current=e.pointerType,l?h.onItemLeave?.():"mouse"===j.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,s.composeEventHandlers)(c.onPointerLeave,e=>{e.currentTarget===document.activeElement&&h.onItemLeave?.()}),onKeyDown:(0,s.composeEventHandlers)(c.onKeyDown,e=>{(h.searchRef?.current===""||" "!==e.key)&&(P.includes(e.key)&&S()," "===e.key&&e.preventDefault())})})})})});ec.displayName=eo;var ed="SelectItemText",eh=i.forwardRef((e,r)=>{let{__scopeSelect:s,className:a,style:l,...u}=e,c=I(ed,s),d=Y(ed,s),h=eu(ed,s),p=F(ed,s),[m,f]=i.useState(null),v=(0,o.useComposedRefs)(r,e=>f(e),h.onItemTextChange,e=>d.itemTextRefCallback?.(e,h.value,h.disabled)),y=m?.textContent,x=i.useMemo(()=>(0,t.jsx)("option",{value:h.value,disabled:h.disabled,children:y},h.value),[h.disabled,h.value,y]),{onNativeOptionAdd:b,onNativeOptionRemove:j}=p;return(0,w.useLayoutEffect)(()=>(b(x),()=>j(x)),[b,j,x]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.Primitive.span,{id:h.textId,...u,ref:v}),h.isSelected&&c.valueNode&&!c.valueNodeHasChildren?n.createPortal(u.children,c.valueNode):null]})});eh.displayName=ed;var ep="SelectItemIndicator",em=i.forwardRef((e,i)=>{let{__scopeSelect:n,...r}=e;return eu(ep,n).isSelected?(0,t.jsx)(g.Primitive.span,{"aria-hidden":!0,...r,ref:i}):null});em.displayName=ep;var ef="SelectScrollUpButton",eg=i.forwardRef((e,n)=>{let r=Y(ef,e.__scopeSelect),s=ee(ef,e.__scopeSelect),[a,l]=i.useState(!1),u=(0,o.useComposedRefs)(n,s.onScrollButtonChange);return(0,w.useLayoutEffect)(()=>{if(r.viewport&&r.isPositioned){let e=function(){l(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),a?(0,t.jsx)(ex,{...e,ref:u,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});eg.displayName=ef;var ev="SelectScrollDownButton",ey=i.forwardRef((e,n)=>{let r=Y(ev,e.__scopeSelect),s=ee(ev,e.__scopeSelect),[a,l]=i.useState(!1),u=(0,o.useComposedRefs)(n,s.onScrollButtonChange);return(0,w.useLayoutEffect)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;l(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),a?(0,t.jsx)(ex,{...e,ref:u,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});ey.displayName=ev;var ex=i.forwardRef((e,n)=>{let{__scopeSelect:r,onAutoScroll:a,...o}=e,l=Y("SelectScrollButton",r),u=i.useRef(null),c=A(r),d=i.useCallback(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return i.useEffect(()=>()=>d(),[d]),(0,w.useLayoutEffect)(()=>{let e=c().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[c]),(0,t.jsx)(g.Primitive.div,{"aria-hidden":!0,...o,ref:n,style:{flexShrink:0,...o.style},onPointerDown:(0,s.composeEventHandlers)(o.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(a,50))}
1),onPointerMove:(0,s.composeEventHandlers)(o.onPointerMove,()=>{l.onItemLeave?.(),null===u.current&&(u.current=window.setInterval(a,50))}),onPointerLeave:(0,s.composeEventHandlers)(o.onPointerLeave,()=>{d()})})});i.forwardRef((e,i)=>{let{__scopeSelect:n,...r}=e;return(0,t.jsx)(g.Primitive.div,{"aria-hidden":!0,...r,ref:i})}).displayName="SelectSeparator";var ew="SelectArrow";i.forwardRef((e,i)=>{let{__scopeSelect:n,...r}=e,s=V(n),a=I(ew,n),o=Y(ew,n);return a.open&&"popper"===o.position?(0,t.jsx)(m.Arrow,{...s,...r,ref:i}):null}).displayName=ew;var eb=i.forwardRef(({__scopeSelect:e,value:n,...r},s)=>{let a=i.useRef(null),l=(0,o.useComposedRefs)(s,a),u=(0,b.usePrevious)(n);return i.useEffect(()=>{let e=a.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(u!==n&&t){let i=new Event("change",{bubbles:!0});t.call(e,n),e.dispatchEvent(i)}},[u,n]),(0,t.jsx)(g.Primitive.select,{...r,style:{...j.VISUALLY_HIDDEN_STYLES,...r.style},ref:l,defaultValue:n})});function ej(e){return""===e||void 0===e}function eS(e){let t=(0,y.useCallbackRef)(e),n=i.useRef(""),r=i.useRef(0),s=i.useCallback(e=>{let i=n.current+e;t(i),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(i)},[t]),a=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,s,a]}function eT(e,t,i){var n,r;let s=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=i?e.indexOf(i):-1,o=(n=e,r=Math.max(a,0),n.map((e,t)=>n[(r+t)%n.length]));1===s.length&&(o=o.filter(e=>e!==i));let l=o.find(e=>e.textValue.toLowerCase().startsWith(s.toLowerCase()));return l!==i?l:void 0}eb.displayName="SelectBubbleInput";var eC=e.i(294237),eP=e.i(91285),ek=e.i(229751),eE=e.i(829068),eA=e.i(499876),eM=e.i(327966);let eN=(0,eC.cva)("group flex h-12 w-full items-center justify-between gap-2 rounded-lg border pr-3 pl-4 disabled:opacity-50",{variants:{colorScheme:{eucalyptus:"border border-input-border bg-eucalyptus-100 text-dark placeholder:text-dark/50 hover:border-input-border-hover focus:outline-hidden disabled:opacity-50 data-[state=open]:ring-2 data-[state=open]:ring-input-border-active data-[state=open]:ring-offset-2 data-[state=open]:ring-offset-white-100",pine:"bg-pine-200 text-light hover:bg-pine-100 data-[state=open]:bg-pine-200",lemon:"bg-lemon-300 text-dark hover:bg-lemon-200 data-[state=open]:bg-lemon-100"}},defaultVariants:{colorScheme:"eucalyptus"}}),eD=({className:e,children:i,colorScheme:n,...r})=>(0,t.jsxs)(_,{className:(0,eP.cn)(eN({colorScheme:n}),e),...r,children:[i,(0,t.jsx)(H,{asChild:!0,children:(0,t.jsx)(ek.ArrowDropDown,{dir:"right",className:"transition-all group-data-[state=closed]:opacity-50 group-data-[state=open]:rotate-180"})})]}),eV=({className:e,...i})=>(0,t.jsx)(eg,{className:(0,eP.cn)("flex cursor-default items-center justify-center py-1",e),...i,children:(0,t.jsx)(eA.Chevron,{dir:"up",className:"size-4"})}),eR=({className:e,...i})=>(0,t.jsx)(ey,{className:(0,eP.cn)("flex cursor-default items-center justify-center py-1",e),...i,children:(0,t.jsx)(ek.ArrowDropDown,{dir:"down",className:"size-4"})}),eI=(0,eC.cva)("rounded-lg shadow-lg",{variants:{colorScheme:{eucalyptus:"bg-eucalyptus-100 text-dark",pine:"bg-pine-200 text-light",lemon:"bg-lemon-300 text-dark"}},defaultVariants:{colorScheme:"eucalyptus"}}),eL=({className:e,children:i,position:n="popper",colorScheme:r,...s})=>(0,t.jsx)($,{children:(0,t.jsxs)(q,{"data-color-scheme":"pine"===r?"dark":"light",className:(0,eP.cn)("group relative z-50 max-h-96 min-w-32 overflow-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",eI({colorScheme:r}),"popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...s,children:[(0,t.jsx)(eV,{}),(0,t.jsx)(ei,{className:(0,eP.cn)("p-1","popper"===n&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:i}),(0,t.jsx)(eR,{})]})}),eF=({className:e,children:i,...n})=>(0,t.jsxs)(ec,{className:(0,eP.cn)("relative flex h-10 w-full cursor-pointer items-center rounded-lg pr-2 pl-8 outline-hidden select-none hover:group-data-[color-scheme=dark]:bg-eucalyptus-100/5 hover:group-data-[color-scheme=light]:bg-eucalyptus-300/30 data-disabled:pointer-events-none data-disabled:opacity-50",e),...n,children:[(0,t.jsx)(eh,{className:(0,eM.typographyVariants)({variant:"p"}),children:i}),(0,t.jsx)(em,{className:"absolute top-2 left-1 flex items-center justify-center",children:(0,t.jsx)(eE.Check,{className:"size-6"})})]});e.s(["Select",()=>B,"SelectContent",()=>eL,"SelectItem",()=>eF,"SelectTrigger",()=>eD,"SelectValue",()=>
1U],967489)},117684,e=>{"use strict";var t=e.i(342433),i=e.i(519455),n=e.i(903133),r=e.i(983852),s=e.i(831408),a=e.i(238240),o=e.i(242198),l=e.i(31374),u=e.i(182899),c=e.i(244425),d=e.i(873925),h=e.i(948071);let p=e=>{if(!e)return null;try{return JSON.parse(e)}catch(e){return null}},m=/^\+?[0-9\s\-()]*[0-9][0-9\s\-()]*$/,f="REQUIRED",g="INVALID_EMAIL",v="INVALID_PHONE",y=async(e,t,i,n)=>{let r=new AbortController,s=setTimeout(()=>r.abort(),3e4);try{let s=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({portalId:e,formGuid:t,pageUri:window.location.href,pageName:document.title,fields:i,legalConsentOptions:n}),signal:r.signal}),a=await s.json();if(!s.ok){if(a?.errorType==="BLOCKED_EMAIL")return{type:"blocked_email"};throw Error(a?.error||"Form submission failed")}return a}finally{clearTimeout(s)}};var x=e.i(91285),w=e.i(257428),b=e.i(793479),j=e.i(629288),S=e.i(967489),T=e.i(624687);let C=({colorScheme:e,field:i,hsField:r})=>{switch(r.fieldType){case"textarea":return(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(T.Textarea,{...i,rows:5,onDarkBg:"pine"===e,placeholder:r.placeholder})});case"radio":case"booleancheckbox":return(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(j.RadioGroup,{onValueChange:i.onChange,defaultValue:i.value,children:r.options.map(i=>(0,t.jsxs)(n.FormItem,{className:"flex items-center gap-2 space-y-0",children:[(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(j.RadioGroupItem,{onDarkBg:"pine"===e,value:i.value})}),(0,t.jsx)(n.FormLabel,{className:"mt-0",children:i.label})]},i.value))})});case"select":return(0,t.jsx)(n.FormControl,{children:(0,t.jsxs)(S.Select,{onValueChange:i.onChange,children:[(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(S.SelectTrigger,{colorScheme:"eucalyptus",children:(0,t.jsx)(S.SelectValue,{placeholder:r.placeholder})})}),(0,t.jsx)(S.SelectContent,{colorScheme:"eucalyptus",children:r.options.map(e=>(0,t.jsx)(S.SelectItem,{value:e.value,children:e.label},e.value))})]})});case"phonenumber":return(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(b.Input,{...i,type:"tel",onDarkBg:"pine"===e})});case"text":return(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(b.Input,{...i,type:"email"===r.name?"email":void 0,onDarkBg:"pine"===e})});case"checkbox":{let e=i.value??[];return(0,t.jsx)(t.Fragment,{children:r.options.map(r=>(0,t.jsxs)(n.FormItem,{className:"flex items-center gap-2 space-y-0",children:[(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(w.Checkbox,{checked:e.includes(r.value),onCheckedChange:t=>t?i.onChange([...e,r.value]):i.onChange(e.filter(e=>e!==r.value))})}),(0,t.jsx)(n.FormLabel,{className:"mt-0",children:r.label})]},r.value))})}default:return null}};var P=e.i(327966);let k=({text:e})=>e?(0,t.jsx)(P.Typography,{variant:"small",as:"div",className:"[&>a[href]:not([class])]:underline",dangerouslySetInnerHTML:{__html:e}}):null,E=({legalConsentOptions:e,colorScheme:i})=>{let{communicationConsentCheckboxes:r,communicationConsentText:s,privacyPolicyText:a,processingConsentText:o,processingConsentType:l,processingConsentCheckboxLabel:u}=e;return e.isLegitimateInterest?(0,t.jsx)(k,{text:a}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(k,{text:s}),r?.map(e=>(0,t.jsx)(n.FormField,{name:`LEGAL_CONSENT__${e.communicationTypeId}`,defaultValue:!1,render:({field:{onChange:r,value:s,...a}})=>(0,t.jsxs)(n.FormItem,{className:"w-full",children:[(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(w.CheckboxGroup,{...a,onCheckedChange:r,checked:s,groupClassname:"w-full",onDarkBg:"pine"===i,children:(0,t.jsx)("div",{className:"[&>a[href]:not([class])]:underline",dangerouslySetInnerHTML:{__html:e.label||""}})})}),(0,t.jsx)(n.FormMessage,{})]})},e.communicationTypeId)),(0,t.jsx)(k,{text:o}),"IMPLICIT"===l?(0,t.jsx)(k,{text:a}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.FormField,{name:"LEGAL_CONSENT__processing",defaultValue:!1,render:({field:{onChange:e,value:r,...s}})=>(0,t.jsxs)(n.FormItem,{className:"w-full",children:[(0,t.jsx)(n.FormControl,{children:(0,t.jsx)(w.CheckboxGroup,{...s,onCheckedChange:e,checked:r,groupClassname:"w-full",onDarkBg:"pine"===i,children:(0,t.jsx)("div",{className:"[&>a[href]:not([class])]:underline",dangerouslySetInnerHTML:{__html:u||""}})})}),(0,t.jsx)(n.FormMessage,{})]})}),(0,t.jsx)(k,{text:a})]})]})};var A=e.i(294237),M=e.i(712378),N=e.i(833835);let D=(0,A.cva)("absolute inset-0 flex animate-in flex-col items-center justify-center gap-4 roun
1ded-4xl px-4 pt-6 pb-8 fade-in-0 md:px-12 md:pt-8 md:pb-12",{variants:{colorScheme:{pine:"bg-pine-200 text-light",eucalyptus:"bg-white-100 text-dark",white:"bg-eucalyptus-100 text-dark"}}}),V=({message:e,onClose:n,colorScheme:r})=>{let s=(0,o.useTranslations)();return(0,t.jsxs)("div",{className:(0,x.cn)(D({colorScheme:r})),children:[(0,t.jsx)(i.Button,{"aria-label":s("general.close"),size:"icon",variant:"ghost",className:"absolute top-2 right-2",onClick:n,children:(0,t.jsx)(M.Cross,{})}),(0,t.jsx)("div",{className:(0,x.cn)("size-20","pine"===r?"text-lemon-300":"text-dark"),children:(0,t.jsx)(N.OfficeAndAdministration,{})}),(0,t.jsx)("div",{dangerouslySetInnerHTML:{__html:e}}),(0,t.jsx)(i.Button,{onClick:n,onDarkBg:"pine"===r,buttonText:s("general.close")})]})};e.s(["HubspotForm",0,({formConfig:e,colorScheme:w})=>{let{form:b,onSubmit:j,status:S,successMessage:T,reset:P,submitText:k,errorMessage:A,visibleFieldGroups:M,hiddenFields:N,legalConsentOptions:D}=(e=>{var t;let i=(0,o.useTranslations)(),n=(0,l.useRouter)(),x=(0,u.useMemo)(()=>{let t;return t={[f]:i("general.requiredField"),[g]:i("general.invalidEmail"),[v]:i("general.invalidPhone")},h.object({...e.formFieldGroups.flatMap(e=>e.fields).reduce((e,i)=>({...e,[i.name]:((e,t)=>{if("checkbox"===e.fieldType)return e.required?h.array(h.string()).refine(e=>e.some(e=>e),{message:t[f]}):h.array(h.string()).or(h.string());if("radio"===e.fieldType){let i=e.options.map(e=>e.value).filter(Boolean);if(0===i.length)return e.required?h.string().min(1,{message:t[f]}):h.string();let n=h.enum(i);return e.required?n:n.or(h.literal(""))}if("select"===e.fieldType){let i=e.options.map(e=>e.value).filter(Boolean);if(0===i.length)return e.required?h.string().min(1,{message:t[f]}):h.string();let n=h.enum(i);return e.required?n:n.or(h.literal(""))}if("phone"===e.name||"phonenumber"===e.fieldType){let i=h.string().regex(m,{message:t[v]});return e.required?i:i.or(h.literal(""))}if("email"===e.name){let i=h.email({message:t[g]});return e.required?i:i.or(h.literal(""))}return e.required?h.string().min(1,{message:t[f]}):h.string()})(i,t)}),{}),...((e,t)=>{let i=p(e.metaData?.find(e=>"legalConsentOptions"===e.name)?.value);if(!i||i.isLegitimateInterest)return{};let{communicationConsentCheckboxes:n,processingConsentType:r}=i;return(n||[]).reduce((e,i)=>({...e,[`LEGAL_CONSENT__${i.communicationTypeId}`]:i.required?h.literal(!0,{message:t[f]}):h.boolean().prefault(!1)}),{LEGAL_CONSENT__processing:"REQUIRED_CHECKBOX"===r?h.literal(!0,{message:t[f]}).prefault(!1):h.boolean().prefault(!1)})})(e,t)})},[e,i]),w=(0,c.useForm)({mode:"onSubmit",resolver:(0,r.zodResolver)(x),defaultValues:e.formFieldGroups.flatMap(e=>e.fields).reduce((e,t)=>({...e,[t.name]:t.defaultValue}),{})}),{mutate:b,status:j,data:S,reset:T}=(0,a.useMutation)({mutationKey:["hubspot-form",e.guid],mutationFn:async t=>{let i,n=(i=e.formFieldGroups.flatMap(e=>e.fields).reduce((e,t)=>({...e,[t.name]:t}),{}),Object.entries(t).filter(([e])=>!e.startsWith("LEGAL_CONSENT__")).map(([e,t])=>({objectTypeId:i[e]?.objectTypeId,name:e,value:Array.isArray(t)?t.join(";"):"object"==typeof t&&null!==t?t.label||"":String(t??"")}))),r=((e,t)=>{let i={},n=p(e.metaData?.find(e=>"legalConsentOptions"===e.name)?.value);if(!n)return i;let r=Object.entries(t).filter(([e])=>e.startsWith("LEGAL_CONSENT__")).map(([e,t])=>({name:e.replace("LEGAL_CONSENT__",""),value:t})),{communicationConsentCheckboxes:s,isLegitimateInterest:a,legitimateInterestSubscriptionTypes:o,legitimateInterestLegalBasis:l,processingConsentType:u,processingConsentCheckboxLabel:c,processingConsentText:d}=n;return a&&o?.length?i.legitimateInterest={value:!0,legalBasis:"LEGITIMATE_INTEREST_CLIENT"===l?"CUSTOMER":"LEAD",text:n.privacyPolicyText||"",subscriptionTypeId:o[0]}:i.consent={consentToProcess:"IMPLICIT"===u||!!r.find(e=>"processing"===e.name)?.value,text:c||d||"",communications:r.filter(e=>"processing"!==e.name).map(e=>({subscriptionTypeId:parseInt(e.name,10),value:!!e.value,text:s?.find(t=>t.communicationTypeId.toString()===e.name.toString())?.label||""}))},i})(e,t);return y(e.portalId,e.guid,n,r)},onSuccess:e=>{if("blocked_email"===e.type)return void w.setError("email",{message:i("general.blockedEmail")});if((0,s.sendGTMEvent)(d.events.contactformsend),"redirect"===e.type)try{let t=new URL(e.value);window.location.host===t.host?n.push(e.value):window.location.href=e.value}catch(e){n.push("/")}else"message"===e.type&&w.reset()}}),C=w.handleSubmit(e=>b(e)),P=S?.type==="message"?S.value:null,{visibleFieldGroups:k,hiddenFields:E}={visibleFieldGroups:(t=e.formFieldGroups).map(e=>({...e,fields:e.fields.filter(e=>!e.hidden)})).filter(e=>e.fields.length>0),hiddenFields:t.flatMap(e=>e.fields).filter(e=>e.hidden)},A=p(e.metaData?.find(e=>"legalConsentOptions"===e.name)?.value);return{form:w,onSubmit:C,status:j,successMessage:P,reset:T,submitText:e.submitText||i("general.send"),errorMessage:"error"===j?i("general.error"):null,visibleFieldGroups:k,hiddenFields:E,legalConsentOptions:A}})(e);return(0,t.jsxs)(n.Form,{...b,children:[(0,t.jsxs)("form",{"data-formname":e.name,method:"POST",className:(0,x.cn)("relative flex w-full flex-1 flex-col gap-4 transition-opacity",T?"pointer-events-none opacity-0":"opacity-100"),onSubmit:j,children:[M.map((e,i)=>(0,t.jsx)("div",{className:"flex w-full flex-col gap-4 md:flex-row",children:e.fields.map(e=>(0,t.jsx)(n.FormField,{name:e.name,defaultValue:"checkbox"===e.fieldType?e.selectedOptions:e.defaultValue,render:({field:i})=>(0,t.jsxs)(n.FormItem,{className:"flex-1",children:[(0,t.jsxs)(n.FormLabel,{children:[e.label,e.required&&"*"]}),(0,t.jsx)(C,{colorScheme:w,field:i,hsField:e}),(0,t.jsx)(n.FormMessage,{})]})},e.name))},i)),D&&(0,t.jsx)(E,{legalConsentOptions:D,colorScheme:w}),N.map(e=>(0,t.jsx)(n.FormField,{name:e.name,defaultValue:e.defaultValue||"",render:({field:e})=>(0,t.jsx)("input",{type:"hidden",...e})}
1,e.name)),(0,t.jsx)(i.Button,{buttonText:k,onDarkBg:"pine"===w,disabled:"pending"===S,trailingIcon:"arrowForward",type:"submit"}),A&&(0,t.jsx)("div",{className:"text-sm font-medium text-coral-200",children:A})]}),T&&(0,t.jsx)(V,{message:T,colorScheme:w,onClose:P})]})}],117684)},840438,e=>{"use strict";var t=e.i(342433),i=e.i(242198),n=e.i(739223),r=e.i(182899),s=e.i(519455),a=e.i(43564);e.i(498535);var o=e.i(360112),l=e.i(327966);let u=({topText:e,bottomText:u,icon:c,onDarkBg:d,link:h,copyText:p})=>{let m=(0,i.useTranslations)(),[f,g]=(0,r.useState)("contentCopy");return(0,t.jsxs)(n.default,{href:h,className:"grid grid-cols-[1.75rem_1fr] items-center gap-1.5 rounded-2xl bg-pine-200 p-3 text-lemon-300 @xs:grid-cols-[2.5rem_1fr_3rem] @xs:gap-2 @xs:rounded-3xl @md:rounded-2xl @md:p-4",children:[(0,t.jsx)("div",{className:"size-7 @xs:size-10",children:(0,t.jsx)(a.Icon,{icon:c,className:"size-7 @xs:size-10"})}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(l.Typography,{variant:"h4",as:"span",className:"text-lg text-wrap text-light @xs:text-2xl @md:text-3xl",children:e}),(0,t.jsx)(l.Typography,{className:"text-xs @xs:text-base",children:u})]}),p&&(0,t.jsx)(s.Button,{className:"hidden @xs:flex",size:"icon",variant:"secondary",onDarkBg:!d,onClick:e=>{e.stopPropagation(),e.preventDefault(),navigator.clipboard.writeText(p),o.toast.info(m("general.copiedToClipboard")),g("check"),setTimeout(()=>{g("contentCopy")},5e3)},children:(0,t.jsx)(a.Icon,{icon:f})})]})};e.s(["ReachOutButton",0,u,"ReachOutButtonContact",0,({variant:e,phoneNumber:i,formattedPhoneNumber:n,email:r,addressLink:s,addressText:a,icon:o,label:l,reverse:c})=>{let d="",h="";switch(e){case"phone":d=n||"",h=`tel:${i}`;break;case"email":d=r||"",h=`mailto:${r}`;break;case"address":d=a||"",h=s||"https://"}return(0,t.jsx)(u,{topText:c?l:d,bottomText:c?d:l,icon:o?.icon||"",onDarkBg:!1,link:h,copyText:d})}])},363914,e=>{"use strict";var t=e.i(182899),i=e.i(922528),n=e.i(978279),r=e.i(205978),s=e.i(291967),a=e.i(936589),o=e.i(738411),l=e.i(176606),u=e.i(713123),c=e.i(566033),d=e.i(342433),h="Accordion",p=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[m,f,g]=(0,n.createCollection)(h),[v,y]=(0,i.createContextScope)(h,[g,l.createCollapsibleScope]),x=(0,l.createCollapsibleScope)(),w=t.default.forwardRef((e,t)=>{let{type:i,...n}=e;return(0,d.jsx)(m.Provider,{scope:e.__scopeAccordion,children:"multiple"===i?(0,d.jsx)(P,{...n,ref:t}):(0,d.jsx)(C,{...n,ref:t})})});w.displayName=h;var[b,j]=v(h),[S,T]=v(h,{collapsible:!1}),C=t.default.forwardRef((e,i)=>{let{value:n,defaultValue:r,onValueChange:s=()=>{},collapsible:o=!1,...l}=e,[u,c]=(0,a.useControllableState)({prop:n,defaultProp:r??"",onChange:s,caller:h});return(0,d.jsx)(b,{scope:e.__scopeAccordion,value:t.default.useMemo(()=>u?[u]:[],[u]),onItemOpen:c,onItemClose:t.default.useCallback(()=>o&&c(""),[o,c]),children:(0,d.jsx)(S,{scope:e.__scopeAccordion,collapsible:o,children:(0,d.jsx)(A,{...l,ref:i})})})}),P=t.default.forwardRef((e,i)=>{let{value:n,defaultValue:r,onValueChange:s=()=>{},...o}=e,[l,u]=(0,a.useControllableState)({prop:n,defaultProp:r??[],onChange:s,caller:h}),c=t.default.useCallback(e=>u((t=[])=>[...t,e]),[u]),p=t.default.useCallback(e=>u((t=[])=>t.filter(t=>t!==e)),[u]);return(0,d.jsx)(b,{scope:e.__scopeAccordion,value:l,onItemOpen:c,onItemClose:p,children:(0,d.jsx)(S,{scope:e.__scopeAccordion,collapsible:!0,children:(0,d.jsx)(A,{...o,ref:i})})})}),[k,E]=v(h),A=t.default.forwardRef((e,i)=>{let{__scopeAccordion:n,disabled:a,dir:l,orientation:u="vertical",...h}=e,g=t.default.useRef(null),v=(0,r.useComposedRefs)(g,i),y=f(n),x="ltr"===(0,c.useDirection)(l),w=(0,s.composeEventHandlers)(e.onKeyDown,e=>{if(!p.includes(e.key))return;let t=e.target,i=y().filter(e=>!e.ref.current?.disabled),n=i.findIndex(e=>e.ref.current===t),r=i.length;if(-1===n)return;e.preventDefault();let s=n,a=r-1,o=()=>{(s=n+1)>a&&(s=0)},l=()=>{(s=n-1)<0&&(s=a)};switch(e.key){case"Home":s=0;break;case"End":s=a;break;case"ArrowRight":"horizontal"===u&&(x?o():l());break;case"ArrowDown":"vertical"===u&&o();break;case"ArrowLeft":"horizontal"===u&&(x?l():o());break;case"ArrowUp":"vertical"===u&&l()}let c=s%r;i[c].ref.current?.focus()});return(0,d.jsx)(k,{scope:n,disabled:a,direction:l,orientation:u,children:(0,d.jsx)(m.Slot,{scope:n,children:(0,d.jsx)(o.Primitive.div,{...h,"data-orientation":u,ref:v,onKeyDown:a?void 0:w})})})}),M="AccordionItem",[N,D]=v(M),V=t.default.forwardRef((e,t)=>
1{let{__scopeAccordion:i,value:n,...r}=e,s=E(M,i),a=j(M,i),o=x(i),c=(0,u.useId)(),h=n&&a.value.includes(n)||!1,p=s.disabled||e.disabled;return(0,d.jsx)(N,{scope:i,open:h,disabled:p,triggerId:c,children:(0,d.jsx)(l.Root,{"data-orientation":s.orientation,"data-state":_(h),...o,...r,ref:t,disabled:p,open:h,onOpenChange:e=>{e?a.onItemOpen(n):a.onItemClose(n)}})})});V.displayName=M;var R="AccordionHeader",I=t.default.forwardRef((e,t)=>{let{__scopeAccordion:i,...n}=e,r=E(h,i),s=D(R,i);return(0,d.jsx)(o.Primitive.h3,{"data-orientation":r.orientation,"data-state":_(s.open),"data-disabled":s.disabled?"":void 0,...n,ref:t})});I.displayName=R;var L="AccordionTrigger",F=t.default.forwardRef((e,t)=>{let{__scopeAccordion:i,...n}=e,r=E(h,i),s=D(L,i),a=T(L,i),o=x(i);return(0,d.jsx)(m.ItemSlot,{scope:i,children:(0,d.jsx)(l.Trigger,{"aria-disabled":s.open&&!a.collapsible||void 0,"data-orientation":r.orientation,id:s.triggerId,...o,...n,ref:t})})});F.displayName=L;var B="AccordionContent",O=t.default.forwardRef((e,t)=>{let{__scopeAccordion:i,...n}=e,r=E(h,i),s=D(B,i),a=x(i);return(0,d.jsx)(l.Content,{role:"region","aria-labelledby":s.triggerId,"data-orientation":r.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function _(e){return e?"open":"closed"}O.displayName=B,e.s(["Content",()=>O,"Header",()=>I,"Item",()=>V,"Root",()=>w,"Trigger",()=>F])},778378,e=>{"use strict";var t=e.i(342433),i=e.i(242198),n=e.i(739223),r=e.i(182899),s=r,a=Object.defineProperty,o=(e,t,i)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?a(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},l=new Map,u=new WeakMap,c=0,d=void 0;function h(e,t,i={},n=d){if(void 0===window.IntersectionObserver&&void 0!==n){let r=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof i.threshold?i.threshold:0,time:0,boundingClientRect:r,intersectionRect:r,rootBounds:r}),()=>{}}let{id:r,observer:s,elements:a}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var i;return`${t}_${"root"===t?!(i=e.root)?"0":(u.has(i)||(c+=1,u.set(i,c.toString())),u.get(i)):e[t]}`}).toString(),i=l.get(t);if(!i){let n,r=new Map,s=new IntersectionObserver(t=>{t.forEach(t=>{var i;let s=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=s),null==(i=r.get(t.target))||i.forEach(e=>{e(s,t)})})},e);n=s.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),i={id:t,observer:s,elements:r},l.set(t,i)}return i}(i),o=a.get(e)||[];return a.has(e)||a.set(e,o),o.push(t),s.observe(e),function(){o.splice(o.indexOf(t),1),0===o.length&&(a.delete(e),s.unobserve(e)),0===a.size&&(s.disconnect(),l.delete(r))}}var p=class extends s.Component{constructor(e){super(e),o(this,"node",null),o(this,"_unobserveCb",null),o(this,"handleNode",e=>{this.node&&(this.unobserve(),e||this.props.triggerOnce||this.props.skip||this.setState({inView:!!this.props.initialInView,entry:void 0})),this.node=e||null,this.observeNode()}),o(this,"handleChange",(e,t)=>{e&&this.props.triggerOnce&&this.unobserve(),"function"==typeof this.props.children&&this.setState({inView:e,entry:t}),this.props.onChange&&this.props.onChange(e,t)}),this.state={inView:!!e.initialInView,entry:void 0}}componentDidMount(){this.unobserve(),this.observeNode()}componentDidUpdate(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve()}observeNode(){if(!this.node||this.props.skip)return;let{threshold:e,root:t,rootMargin:i,trackVisibility:n,delay:r,fallbackInView:s}=this.props;this._unobserveCb=h(this.node,this.handleChange,{threshold:e,root:t,rootMargin:i,trackVisibility:n,delay:r},s)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){let{children:e}=this.props;if("function"==typeof e){let{inView:t,entry:i}=this.state;return e({inView:t,entry:i,ref:this.handleNode})}let{as:t,triggerOnce:i,threshold:n,root:r,rootMargin:a,onChange:o,skip:l,trackVisibility:u,delay:c,initialInView:d,fallbackInView:h,...p}=this.props;return s.createElement(t||"div",{ref:this.handleNode,...p},e)}},m=e.i(668746),f=e.i(363914),g=e.i(91285),v=e.i(499876);let y=f.Root,x=f.Item,w=({className:e,children:i,...n})=>(0,t.jsx)(f.Header,{className:"flex",children:(0,t.jsxs)(f.Trigger,{className:(0,g.cn)("group flex flex-1 items-center justify-center p-4 transition-all",e),...n,children:[(0,t.jsx)(v.Chevron,{className:"size-6 shrink-0 -rotate-90 transition-transform duration-200 group-data-[state=open]:rotate-90"}),i]})}),b=({children:e,...i})=>(0,t.jsx)(f.Content,{className:"overflow-hidden px-4 text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...i,children:(0,t.jsx)("div",{className:"pt-1.5",children:e})});var j=e.i(327966);let S=(e="",t)=>"text"===t.type&&"text"in t?e+t.text:"children"in t?t.children.reduce((e,t)=>
1S(e,t),e):e,T=e=>"heading"===e.type&&"h2"===e.tag;e.s(["ArticleContent",0,({content:e,preamble:a})=>{let[o,l]=(0,r.useState)(null),u=(0,i.useTranslations)(),c=(0,r.useMemo)(()=>(function(e){let{children:t,...i}=e.root;return t.reduce((e,t)=>(T(t)&&e.push([]),e[e.length-1].push(t),e),[[]]).filter(e=>e.length>0).map(e=>{var t;let n=!!T(t=e[0])&&S("",t);return{content:{root:{...i,children:e}},id:n?n.toLowerCase().replace(/[^A-Za-z0-9-_\u00A0-\uFFFF]/g,"-").replace(/^[_-\d]+/,"").replace(/-{2,}/g,"-"):void 0,text:n||void 0}})})(e),[e]),d=(0,r.useMemo)(()=>c.map(({id:e,text:t})=>({id:e,text:t})).filter(({id:e})=>!!e),[c]),[f,v]=(0,r.useState)(void 0),{ref:C,inView:P}=function({threshold:e,delay:t,trackVisibility:i,rootMargin:n,root:r,triggerOnce:a,skip:o,initialInView:l,fallbackInView:u,onChange:c}={}){var d;let[p,m]=s.useState(null),f=s.useRef(c),[g,v]=s.useState({inView:!!l,entry:void 0});f.current=c,s.useEffect(()=>{let s;if(!o&&p)return s=h(p,(e,t)=>{v({inView:e,entry:t}),f.current&&f.current(e,t),t.isIntersecting&&a&&s&&(s(),s=void 0)},{root:r,rootMargin:n,threshold:e,trackVisibility:i,delay:t},u),()=>{s&&s()}},[Array.isArray(e)?e.toString():e,p,r,n,a,o,i,u,t]);let y=null==(d=g.entry)?void 0:d.target,x=s.useRef(void 0);p||!y||a||o||x.current===y||(x.current=y,v({inView:!!l,entry:void 0}));let w=[m,g.inView,g.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}({threshold:1,rootMargin:"0px 0px -9px 0px"});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y,{ref:C,className:(0,g.cn)("sticky bottom-2 z-10 order-last col-start-1 flex flex-col rounded-2xl border bg-eucalyptus-100 transition-none md:hidden",P?"border-transparent shadow-none":"border-border shadow-xl"),value:f,onValueChange:e=>v(e),type:"single",collapsible:!0,children:(0,t.jsxs)(x,{value:"item",children:[(0,t.jsx)(b,{children:d.map(({id:e,text:i})=>(0,t.jsx)(n.default,{onClick:()=>v(""),href:`#${e}`,className:(0,g.cn)("-mx-2.5 block rounded-xl px-2.5 py-2 font-medium transition-colors",o===e?"bg-pine-300 text-light":"hover:text-pine-50 active:text-pine-25"),children:i},e))}),(0,t.jsx)(w,{children:(0,t.jsx)(j.Typography,{variant:"h4",as:"span",children:u("articles.jumpTo")})})]})}),(0,t.jsxs)("div",{className:"sticky top-20 order-last col-start-1 hidden flex-col gap-2 rounded-2xl bg-eucalyptus-100 p-5 pb-3 text-dark md:flex lg:top-24",children:[(0,t.jsx)(j.Typography,{className:"hidden md:block",variant:"h4",children:u("articles.jumpTo")}),(0,t.jsx)("div",{className:"hidden md:block",children:d.map(({id:e,text:i})=>(0,t.jsx)(n.default,{href:`#${e}`,className:(0,g.cn)("-mx-2.5 block rounded-xl px-2.5 py-2 transition-colors",o===e?"bg-pine-300 text-light":"hover:text-pine-50 active:text-pine-25"),children:i},e))})]}),(0,t.jsxs)("article",{className:"order-2 col-start-1 row-span-12 flex w-full flex-col gap-8 md:col-start-2 md:row-start-1 md:max-w-xl",children:[a&&(0,t.jsx)(m.RichText,{content:a,defaultTypographyVariant:"large"}),c.map((e,i)=>(0,t.jsx)(p,{rootMargin:"-15% 0px -85% 0px",as:"div",onChange:t=>e.id&&l(i=>t||i!==e.id?t?e.id:i:null),className:"scroll-mt-24 *:not-first:mt-6 [&>:is(list,p,quote)]:not-first:mt-2 [&>h2]:mb-1 [&>h3]:not-first:mt-8",id:e.id,children:(0,t.jsx)(m.RichText,{content:e.content},i)},i))]})]})}],778378)},110156,e=>{"use strict";var t=e.i(342433),i=e.i(182899),n=e.i(294237),r=e.i(242198),s=e.i(268669),a=e.i(519455),o=e.i(327966),l=e.i(91285);let u=(0,n.cva)("relative col-start-2 row-span-3 flex flex-col rounded-3xl p-1 lg:row-end-auto",{variants:{position:{1:"md:row-start-1 md:row-end-4 lg:col-end-4",2:"md:row-start-3 md:row-end-6 lg:col-start-3 lg:col-end-6",3:"md:row-start-5 md:row-end-8 lg:col-start-5 lg:col-end-8",4:"md:row-start-7 md:row-end-10 lg:col-start-7 lg:col-end-10",5:"md:row-start-9 md:row-end-12 lg:col-start-9 lg:col-end-12",6:"md:row-start-11 md:row-end-14 lg:col-start-11 lg:col-end-14",7:"md:row-start-13 md:row-end-16 lg:col-start-13 lg:col-end-16"},onDarkBg:{true:"bg-eucalyptus-100 text-dark",false:"bg-pine-300 text-light"}},compoundVariants:[{position:[1,3,5,7],className:"md:col-start-1 lg:row-start-1 lg:flex-col-reverse"},{position:[2,4,6],className:"md:col-start-3 lg:row-start-3"}],defaultVariants:{onDarkBg:!1}}),c=(0,n.cva)("absolute top-1/2 -left-16 translate-x-1 -translate-y-1/2 lg:left-1/2 lg:-translate-x-1/2",{variants:{even:{true:"lg:-top-16 lg:translate-y-1 lg:rotate-90",false:"md:-right-16 md:left-auto md:-translate-x-1 md:rotate-180 lg:top-auto lg:right-auto lg:-bottom-16 lg:-translate-y-1 lg:-rotate-90"},onDarkBg:{true:"text-eucalyptus-100",false:"text-pine-300"}},defaultVariants:{even:!1,onDarkBg:!1}}),d=({heading:e,body:i,image:n,position:r,onDarkBg:a})=>(0,t.jsxs)("div",{className:u({position:r,onDarkBg:a}),children:[(0,t.jsxs)("div",{className:"grid px-2 py-3 lg:px-3 lg:py-4",children:[(0,t.jsx)(o.Typography,{variant:"eyebrow",children:e}),i&&(0,t.jsx)(o.Typography,{children:i})]}),(0,t.jsx)("div",{className:"relative h-0 pb-one-half lg:pb-two-thirds",children:(0,t.jsx)(s.PayloadImage,{media:n,sizes:"(max-width: 768px) 100vw, 400px",className:"rounded-2xl"})}),(0,t.jsx)("div",{className:c({even:r%2==0,onDarkBg:a}),children:(0,t.jsx)("svg",{className:"fill-current",viewBox:"0 0 64 64",width:"64px",height:"64px",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M 60.011 50.627 L 60.011 56 L 62.011 56 L 62.011 8 L 60.011 8 L 60.011 13.373 C 60.011 17.616 58.325 21.686 55.325 24.686 L 49.425 30.586 C 48.644 31.367 48.644 32.633 49.425 33.414 L 55.325 39.314 C 58.325 42.314 60.011 46.384 60.011 50.627 Z"})})})]}
1),h=(0,n.cva)("col-start-1 size-6 place-self-center rounded-2xl md:col-start-2 lg:row-start-2",{variants:{position:{1:"row-start-2 md:row-start-2 lg:col-start-2",2:"row-start-5 md:row-start-4 lg:col-start-4",3:"row-start-8 md:row-start-6 lg:col-start-6",4:"row-start-11 md:row-start-8 lg:col-start-8",5:"row-start-14 md:row-start-10 lg:col-start-10",6:"row-start-17 md:row-start-12 lg:col-start-12",7:"row-start-20 md:row-start-14 lg:col-start-14"},onDarkBg:{true:"bg-eucalyptus-100",false:"bg-pine-300"}},defaultVariants:{onDarkBg:!1}}),p=(0,n.cva)("col-start-1 row-start-2 h-full w-1 place-self-center md:col-start-2 lg:row-end-auto lg:h-1 lg:w-full",{variants:{length:{1:"hidden",2:"row-end-6 md:row-end-5 lg:col-end-5",3:"row-end-9 md:row-end-7 lg:col-end-7",4:"row-end-12 md:row-end-9 lg:col-end-9",5:"row-end-15 md:row-end-11 lg:col-end-11",6:"row-end-18 md:row-end-13 lg:col-end-13",7:"row-end-21 md:row-end-15 lg:col-end-15"},onDarkBg:{true:"bg-eucalyptus-100",false:"bg-pine-300"}}});e.s(["StepCard",0,d,"Steps",0,({steps:e,colorScheme:n})=>{let s=(0,r.useTranslations)(),o=(0,i.useRef)(null),[u,c]=(0,i.useState)(!1),[m,f]=(0,i.useState)("0px");return(0,i.useEffect)(()=>{o.current&&f(o.current.scrollHeight+"px")},[u]),(0,t.jsxs)("div",{ref:o,style:{"--full-h":m},className:(0,l.cn)("relative overflow-hidden transition-all md:max-h-none",u?"max-h-(--full-h)":"max-h-168"),children:[e&&(0,t.jsxs)("div",{className:"grid auto-rows-[1fr_1.5rem_1fr] grid-cols-[1.5rem_1fr] gap-x-4 gap-y-3 md:auto-rows-[1.5rem_1fr] md:grid-cols-[1fr_1.5rem_1fr] md:grid-rows-[1fr] md:gap-y-5 lg:auto-cols-[1.5rem_1fr] lg:grid-cols-[1fr] lg:grid-rows-[1fr_1.5rem_1fr] lg:gap-x-3 lg:gap-y-6",children:[e.map((e,t)=>(0,i.createElement)(d,{...e,position:t+1,onDarkBg:"pine"===n,key:e.id||t})),e.map((e,i)=>(0,t.jsx)("div",{className:h({position:i+1,onDarkBg:"pine"===n})},i)),(0,t.jsx)("div",{className:p({length:e?.length||1,onDarkBg:"pine"===n})})]}),(0,t.jsx)("div",{className:(0,l.cn)("absolute inset-x-0 bottom-0 grid h-1/2 items-end justify-center bg-linear-to-t transition-discrete md:hidden starting:opacity-100",u?"pointer-events-none hidden opacity-0":"opacity-100","pine"===n&&"from-pine-300 to-pine-300/0","eucalyptus"===n&&"from-eucalyptus-100 to-eucalyptus-100/0","white"===n&&"from-white-100 to-white-100/0"),children:(0,t.jsx)(a.Button,{onDarkBg:"pine"===n,onClick:()=>c(!0),trailingIcon:"plus",children:s("academyPrograms.showAllSteps")})})]})}])},14106,e=>{"use strict";var t=e.i(342433),i=e.i(294237),n=e.i(739223),r=e.i(268669),s=e.i(519455),a=e.i(43564),o=e.i(655622),l=e.i(327966),u=e.i(91285);let c=(0,i.cva)("relative flex w-full shrink-0 flex-col gap-3 rounded-t-6xl rounded-b-3xl p-0 transition-all duration-200 md:cursor-pointer md:gap-4 md:p-4",{variants:{onDarkBg:{true:"text-light md:group-hover:bg-pine-200",false:"text-dark md:group-hover:bg-eucalyptus-200"}},defaultVariants:{onDarkBg:!1}});e.s(["ArticleCard",0,({article:e,onDarkBg:i,className:d,sizes:h="(max-width: 768px) 100vw, 380px"})=>{let{image:p,title:m,category:f,excerpt:g,generatedPath:v}=e;return(0,t.jsxs)("div",{className:"group relative",children:[v&&(0,t.jsx)(n.default,{href:v,className:"absolute inset-0 z-10",children:(0,t.jsx)("span",{className:"sr-only",children:m})}),(0,t.jsxs)("div",{className:(0,u.cn)(c({onDarkBg:i}),d),children:[(0,t.jsxs)("div",{className:(0,u.cn)("relative h-0 overflow-hidden rounded-2xl transition-all","pb-two-thirds md:group-hover:-mx-1 md:group-hover:-mt-1 md:group-hover:rounded-3xl md:group-hover:pt-1"),children:[(0,t.jsx)(r.PayloadImage,{sizes:h,media:p}),(0,t.jsx)(s.Button,{asChild:!0,variant:"secondary",size:"icon",className:"absolute top-2 right-2 rounded-xl opacity-0 md:group-hover:opacity-100",children:(0,t.jsx)("div",{children:(0,t.jsx)(a.Icon,{icon:"arrowForward"})})})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,u.isType)(f)&&(0,t.jsx)("div",{className:"relative z-20 flex flex-row",children:(0,t.jsx)(o.ReadTime,{readTime:e.readTime,overline:f.generatedPath?(0,t.jsx)(n.default,{href:f.generatedPath,className:"py-3.5",children:f.title}):f.title})}),(0,t.jsx)(l.Typography,{variant:"h3",className:"line-clamp-3",children:m})]}),(0,t.jsx)(l.Typography,{variant:"small",className:(0,u.cn)("line-clamp-2",i&&"opacity-70 transition-opacity md:group-hover:opacity-100"),children:g})]})]})]})}])},280635,e=>{"use strict";var t=e.i(342433),i=e.i(182899),n=e.i(14106),r=e.i(422802),s=e.i(668746),a=e.i(294237),o=e.i(91285);let l=(0,a.cva)("pointer-events-none absolute inset-0 z-20 from-0% to-15%",{variants:{direction:{left:"bg-linear-to-r",right:"bg-linear-to-l",top:"bg-linear-to-b",bottom:"bg-linear-to-t"},colorScheme:{pine:"from-pine-300",eucalyptus:"from-eucalyptus-100",white:"from-white-100"},visible:{true:"opacity-100",false:"opacity-0"}},defaultVariants:{direction:"left",colorScheme:"pine",visible:!0}}),u=({direction:e,colorScheme:i,className:n,visible:r})=>(0,t.jsx)("div",{className:(0,o.cn)(l({direction:e,colorScheme:i,visible:r}),n)});function c(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function d(e,t){let i=Object.keys(e),n=Object.keys(t);return i.length===n.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&i.every(i=>{let n=e[i],r=t[i];return"function"==typeof n?`${n}`==`${r}`:c(n)&&c(r)?d(n,r):n===r})}function h(e){return e.concat().sort((e,t)=>
1e.name>t.name?1:-1).map(e=>e.options)}function p(e){return"number"==typeof e}function m(e){return"string"==typeof e}function f(e){return"boolean"==typeof e}function g(e){return"[object Object]"===Object.prototype.toString.call(e)}function v(e){return Math.abs(e)}function y(e){return Math.sign(e)}function x(e){return S(e).map(Number)}function w(e){return e[b(e)]}function b(e){return Math.max(0,e.length-1)}function j(e,t=0){return Array.from(Array(e),(e,i)=>t+i)}function S(e){return Object.keys(e)}function T(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function C(){let e=[],t={add:function(i,n,r,s={passive:!0}){let a;return"addEventListener"in i?(i.addEventListener(n,r,s),a=()=>i.removeEventListener(n,r,s)):(i.addListener(r),a=()=>i.removeListener(r)),e.push(a),t},clear:function(){e=e.filter(e=>e())}};return t}function P(e=0,t=0){let i=v(e-t);function n(i){return i<e||i>t}return{length:i,max:t,min:e,constrain:function(i){return n(i)?i<e?e:t:i},reachedAny:n,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return i?e-i*Math.ceil((e-t)/i):e}}}function k(e){let t=e;function i(e){return p(e)?e:e.get()}return{get:function(){return t},set:function(e){t=i(e)},add:function(e){t+=i(e)},subtract:function(e){t-=i(e)}}}function E(e,t){let i="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},n=t.style,r=null,s=!1;return{clear:function(){!s&&(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(s)return;let a=Math.round(100*e.direction(t))/100;a!==r&&(n.transform=i(a),r=a)},toggleActive:function(e){s=!e}}}let A={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 M(e,t,i){let n,r,s,a,o,l,u,c,d=e.ownerDocument,h=d.defaultView,N=function(e){function t(e,t){return function e(t,i){return[t,i].reduce((t,i)=>(S(i).forEach(n=>{let r=t[n],s=i[n],a=g(r)&&g(s);t[n]=a?e(r,s):s}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(i){let n=i.breakpoints||{},r=S(n).filter(t=>e.matchMedia(t).matches).map(e=>n[e]).reduce((e,i)=>t(e,i),{});return t(i,r)},optionsMediaQueries:function(t){return t.map(e=>S(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(h),D=(c=[],{init:function(e,t){return(c=t.filter(({options:e})=>!1!==N.optionsAtMedia(e).active)).forEach(t=>t.init(e,N)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){c=c.filter(e=>e.destroy())}}),V=C(),R=(r={},s={init:function(e){n=e},emit:function(e){return(r[e]||[]).forEach(t=>t(n,e)),s},off:function(e,t){return r[e]=(r[e]||[]).filter(e=>e!==t),s},on:function(e,t){return r[e]=(r[e]||[]).concat([t]),s},clear:function(){r={}}}),{mergeOptions:I,optionsAtMedia:L,optionsMediaQueries:F}=N,{on:B,off:O,emit:_}=R,z=!1,U=I(A,M.globalOptions),H=I(U),$=[];function W(t,i){z||(H=L(U=I(U,t)),$=i||$,function(){let{container:t,slides:i}=H;l=(m(t)?e.querySelector(t):t)||e.children[0];let n=m(i)?l.querySelectorAll(i):i;u=[].slice.call(n||l.children)}(),a=function t(i){let n=function(e,t,i,n,r,s,a){var o,l;let u,c,d,h,g,A,M,N,D,V,R,I,L,F,{align:B,axis:O,direction:_,startIndex:z,loop:U,duration:H,dragFree:$,dragThreshold:W,inViewThreshold:q,slidesToScroll:K,skipSnaps:Y,containScroll:G,watchResize:X,watchSlides:Z,watchDrag:J,watchFocus:Q}=s,ee={measure:function(e){let{offsetTop:t,offsetLeft:i,offsetWidth:n,offsetHeight:r}=e;return{top:t,right:i+n,bottom:t+r,left:i,width:n,height:r}}},et=ee.measure(t),ei=i.map(ee.measure),en=(c="rtl"===_,h=(d="y"===O)||!c?1:-1,g=d?"top":c?"right":"left",A=d?"bottom":c?"left":"right",{scroll:d?"y":"x",cross:d?"x":"y",startEdge:g,endEdge:A,measureSize:function(e){let{height:t,width:i}=e;return d?t:i},direction:function(e){return e*h}}),er=en.measureSize(et),es={measure:function(e){return e/100*er}},ea=(o=B,l=er,u={start:function(){return 0},center:function(e){return(l-e)/2},end:function(e){return l-e}},{measure:function(e,t){return m(o)?u[o](e):o(l,e,t)}}),eo=!U&&!!G,{slideSizes:el,slideSizesWithGaps:eu,startGap:ec,endGap:ed}=function(e,t,i,n,r,s){let{measureSize:a,startEdge:o,endEdge:l}=e,u=i[0]&&r,c=function(){if(!u)return 0;let e=i[0];return v(t[o]-e[o])}(),d=u?parseFloat(s.getComputedStyle(w(n)).getPropertyValue(`margin-${l}`)):0,h=i.map(a),p=i.map((e,t,i)=>{let n=t===b(i);return t?n?h[t]+d:i[t+1][o]-e[o]:h[t]+c}).map(v);return{slideSizes:h,slideSizesWithGaps:p,startGap:c,endGap:d}}(en,et,ei,i,U||!!G,r),eh=function(e,t,i,n,r,s,a,o,l){let{startEdge:u,endEdge:c,direction:d}=e,h=p(i);return{groupSlides:function(e){return h?x(e).filter(e=>e%i==0).map(t=>e.slice(t,t+i)):e.length?x(e).reduce((i,l,h)=>{let p=w(i)||0,m=l===b(e),f=r[u]-s[p][u],g=r[u]-s[l][c],y=n||0!==p?0:d(a),x=v(g-(!n&&m?d(o):0)-(f+y));return h&&x>t+2&&i.push(l),m&&i.push(e.length),i},[]).map((t,i,n)=>{let r=Math.max(n[i-1]||0);return e.slice(r,t)}):[]}}}(en,er,K,U,et,ei,ec,ed,0),{snaps:ep,snapsAligned:em}=function(e,t,i,n,r){let{startEdge:s,endEdge:a}=e,{groupSlides:o}=r,l=o(n).map(e=>w(e)[a]-e[0][s]).map(v).map(t.measure),u=n.map(e=>i[s]-e[s]).map(e=>-v(e)),c=o(u).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:u,snapsAligned:c}}
1(en,ea,et,ei,eh),ef=-w(ep)+w(eu),{snapsContained:eg,scrollContainLimit:ev}=function(e,t,i,n,r){let s,a,o=P(-t+e,0),l=i.map((e,t)=>{let{min:n,max:r}=o,s=o.constrain(e),a=t===b(i);return t?a||function(e,t){return 1>=v(e-t)}(n,s)?n:function(e,t){return 1>=v(e-t)}(r,s)?r:s:r}).map(e=>parseFloat(e.toFixed(3))),u=(s=l[0],a=w(l),P(l.lastIndexOf(s),l.indexOf(a)+1));return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===n)return l;let{min:i,max:r}=u;return l.slice(i,r)}(),scrollContainLimit:u}}(er,ef,em,G,0),ey=eo?eg:em,{limit:ex}=(M=ey[0],{limit:P(U?M-ef:w(ey),M)}),ew=function e(t,i,n){let{constrain:r}=P(0,t),s=t+1,a=o(i);function o(e){return n?v((s+e)%s):r(e)}function l(){return e(t,a,n)}let u={get:function(){return a},set:function(e){return a=o(e),u},add:function(e){return l().set(a+e)},clone:l};return u}(b(ey),z,U),eb=ew.clone(),ej=x(i),eS=function(e,t,i,n){let r=C(),s=1e3/60,a=null,o=0,l=0;function u(e){if(!l)return;a||(a=e,i(),i());let r=e-a;for(a=e,o+=r;o>=s;)i(),o-=s;n(o/s),l&&(l=t.requestAnimationFrame(u))}function c(){t.cancelAnimationFrame(l),a=null,o=0,l=0}return{init:function(){r.add(e,"visibilitychange",()=>{e.hidden&&(a=null,o=0)})},destroy:function(){c(),r.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:c,update:i,render:n}}(n,r,()=>(({dragHandler:e,scrollBody:t,scrollBounds:i,options:{loop:n}})=>
1{n||i.constrain(e.pointerDown()),t.seek()})(eF),e=>(({scrollBody:e,translate:t,location:i,offsetLocation:n,previousLocation:r,scrollLooper:s,slideLooper:a,dragHandler:o,animation:l,eventHandler:u,scrollBounds:c,options:{loop:d}},h)=>{let p=e.settled(),m=!c.shouldConstrain(),f=d?p:p&&m,g=f&&!o.pointerDown();g&&l.stop();let v=i.get()*h+r.get()*(1-h);n.set(v),d&&(s.loop(e.direction()),a.loop()),t.to(n.get()),g&&u.emit("settle"),f||u.emit("scroll")})(eF,e)),eT=ey[ew.get()],eC=k(eT),eP=k(eT),ek=k(eT),eE=k(eT),eA=function(e,t,i,n,r,s){let a=0,o=0,l=r,u=.68,c=e.get(),d=0;function h(e){return l=e,m}function p(e){return u=e,m}let m={direction:function(){return o},duration:function(){return l},velocity:function(){return a},seek:function(){let t=n.get()-e.get(),r=0;return l?(i.set(e),a+=t/l,a*=u,c+=a,e.add(a),r=c-d):(a=0,i.set(n),e.set(n),r=t),o=y(r),d=c,m},settled:function(){return .001>v(n.get()-t.get())},useBaseFriction:function(){return p(.68)},useBaseDuration:function(){return h(r)},useFriction:p,useDuration:h};return m}(eC,ek,eP,eE,H,0),eM=function(e,t,i,n,r){let{reachedAny:s,removeOffset:a,constrain:o}=n;function l(e){return e.concat().sort((e,t)=>v(e)-v(t))[0]}function u(t,n){let r=[t,t+i,t-i];if(!e)return t;if(!n)return l(r);let s=r.filter(e=>y(e)===n);return s.length?l(s):w(r)-i}return{byDistance:function(i,n){let l=r.get()+i,{index:c,distance:d}=function(i){let n=e?a(i):o(i),{index:r}=t.map((e,t)=>({diff:u(e-n,0),index:t})).sort((e,t)=>v(e.diff)-v(t.diff))[0];return{index:r,distance:n}}(l),h=!e&&s(l);if(!n||h)return{index:c,distance:i};let p=i+u(t[c]-d,0);return{index:c,distance:p}},byIndex:function(e,i){let n=u(t[e]-r.get(),i);return{index:e,distance:n}},shortcut:u}}(U,ey,ef,ex,eE),eN=function(e,t,i,n,r,s,a){function o(r){let o=r.distance,l=r.index!==t.get();
1s.add(o),o&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(i.set(t.get()),t.set(r.index),a.emit("select"))}return{distance:function(e,t){o(r.byDistance(e,t))},index:function(e,i){let n=t.clone().set(e);o(r.byIndex(n.get(),i))}}}(eS,ew,eb,eA,eM,eE,a),eD=function(e){let{max:t,length:i}=e;return{get:function(e){return i?-((e-t)/i):0}}}(ex),eV=C(),eR=(D={},V=null,R=null,I=!1,{init:function(){N=new IntersectionObserver(e=>{I||(e.forEach(e=>{D[i.indexOf(e.target)]=e}),V=null,R=null,a.emit("slidesInView"))},{root:t.parentElement,threshold:q}),i.forEach(e=>N.observe(e))},destroy:function(){N&&N.disconnect(),I=!0},get:function(e=!0){if(e&&V)return V;if(!e&&R)return R;let t=S(D).reduce((t,i)=>{let n=parseInt(i),{isIntersecting:r}=D[n];return(e&&r||!e&&!r)&&t.push(n),t},[]);return e&&(V=t),e||(R=t),t}}),{slideRegistry:eI}=function(e,t,i,n,r,s){let a,{groupSlides:o}=r,{min:l,max:u}=n;return{slideRegistry:(a=o(s),1===i.length?[s]:e&&"keepSnaps"!==t?a.slice(l,u).map((e,t,i)=>{let n=t===b(i);return t?n?j(b(s)-w(i)[0]+1,w(i)[0]):e:j(w(i[0])+1)}):a)}}(eo,G,ey,ev,eh,ej),eL=function(e,t,i,n,r,s,a,o){let l={passive:!0,capture:!0},u=0;function c(e){"Tab"===e.code&&(u=new Date().getTime())}return{init:function(d){o&&(s.add(document,"keydown",c,!1),t.forEach((t,c)=>{s.add(t,"focus",t=>{(f(o)||o(d,t))&&function(t){if(new Date().getTime()-u>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;let s=i.findIndex(e=>e.includes(t));p(s)&&(r.useDuration(0),n.index(s,0),a.emit("slideFocus"))}(c)},l)}))}}}(e,i,eI,eN,eA,eV,a,Q),eF={ownerDocument:n,ownerWindow:r,eventHandler:a,containerRect:et,slideRects:ei,animation:eS,axis:en,dragHandler:function(e,t,i,n,r,s,a,o,l,u,c,d,h,p,m,g,x,w,b){let{cross:j,direction:S}=e,k=["INPUT","SELECT","TEXTAREA"],E={passive:!1},A=C(),M=C(),N=P(50,225).constrain(p.measure(20)),D={mouse:300,touch:400},V={mouse:500,touch:600},R=m?43:25,I=!1,L=0,F=0,B=!1,O=!1,_=!1,z=!1;function U(e){if(!T(e,n)&&e.touches.length>=2)return H(e);let t=s.readPoint(e),i=s.readPoint(e,j),a=v(t-L),l=v(i-F);if(!O&&!z&&(!e.cancelable||!(O=a>l)))return H(e);let c=s.pointerMove(e);a>g&&(_=!0),u.useFriction(.3).useDuration(.75),o.start(),r.add(S(c)),e.preventDefault()}function H(e){var t;let i,n,r=c.byDistance(0,!1).index!==d.get(),a=s.pointerUp(e)*(m?V:D)[z?"mouse":"touch"],o=(t=S(a),i=d.add(-1*y(t)),n=c.byDistance(t,!m).distance,m||v(t)<N?n:x&&r?.5*n:c.byIndex(i.get(),0).distance),p=function(e,t){var i,n;if(0===e||0===t||v(e)<=v(t))return 0;let r=(i=v(e),n=v(t),v(i-n));return v(r/e)}(a,o);O=!1,B=!1,M.clear(),u.useDuration(R-10*p).useFriction(.68+p/50),l.distance(o,!m),z=!1,h.emit("pointerUp")}function $(e){_&&(e.stopPropagation(),e.preventDefault(),_=!1)}return{init:function(e){b&&A.add(t,"dragstart",e=>e.preventDefault(),E).add(t,"touchmove",()=>void 0,E).add(t,"touchend",()=>void 0).add(t,"touchstart",o).add(t,"mousedown",o).add(t,"touchcancel",H).add(t,"contextmenu",H).add(t,"click",$,!0);function o(o){(f(b)||b(e,o))&&function(e){let o,l=T(e,n);if((z=l,_=m&&l&&!e.buttons&&I,I=v(r.get()-a.get())>=2,!l||0===e.button)&&(o=e.target.nodeName||"",!k.includes(o))){let n;B=!0,s.pointerDown(e),u.useFriction(0).useDuration(0),r.set(a),n=z?i:t,M.add(n,"touchmove",U,E).add(n,"touchend",H).add(n,"mousemove",U,E).add(n,"mouseup",H),L=s.readPoint(e),F=s.readPoint(e,j),h.emit("pointerDown")}}(o)}},destroy:function(){A.clear(),M.clear()},pointerDown:function(){return B}}}(en,e,n,r,eE,function(e,t){let i,n;function r(e){return e.timeStamp}function s(i,n){let r=n||e.scroll,s=`client${"x"===r?"X":"Y"}`;return(T(i,t)?i:i.touches[0])[s]}return{pointerDown:function(e){return i=e,n=e,s(e)},pointerMove:function(e){let t=s(e)-s(n),a=r(e)-r(i)>170;return n=e,a&&(i=e),t},pointerUp:function(e){if(!i||!n)return 0;let t=s(n)-s(i),a=r(e)-r(i),o=r(e)-r(n)>170,l=t/a;return a&&!o&&v(l)>.1?l:0},readPoint:s}}(en,r),eC,eS,eN,eA,eM,ew,a,es,$,W,Y,0,J),eventStore:eV,percentOfView:es,index:ew,indexPrevious:eb,limit:ex,location:eC,offsetLocation:ek,previousLocation:eP,options:s,resizeHandler:function(e,t,i,n,r,s,a){let o,l,u=[e].concat(n),c=[],d=!1;function h(e){return r.measureSize(a.measure(e))}return{init:function(r){s&&(l=h(e),c=n.map(h),o=new ResizeObserver(i=>{(f(s)||s(r,i))&&function(i){for(let s of i){if(d)return;let i=s.target===e,a=n.indexOf(s.target),o=i?l:c[a];if(v(h(i?e:n[a])-o)>=.5){r.reInit(),t.emit("resize");break}}}(i)}),i.requestAnimationFrame(()=>
1{u.forEach(e=>o.observe(e))}))},destroy:function(){d=!0,o&&o.disconnect()}}}(t,a,r,i,en,X,ee),scrollBody:eA,scrollBounds:function(e,t,i,n,r){let s=r.measure(10),a=r.measure(50),o=P(.1,.99),l=!1;function u(){return!l&&!!e.reachedAny(i.get())&&!!e.reachedAny(t.get())}return{shouldConstrain:u,constrain:function(r){if(!u())return;let l=e.reachedMin(t.get())?"min":"max",c=v(e[l]-t.get()),d=i.get()-t.get(),h=o.constrain(c/a);i.subtract(d*h),!r&&v(d)<s&&(i.set(e.constrain(i.get())),n.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}(ex,ek,eE,eA,es),scrollLooper:function(e,t,i,n){let{reachedMin:r,reachedMax:s}=P(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?s(i.get()):-1===t&&r(i.get())))return;let a=-1*t*e;n.forEach(e=>e.add(a))}}}(ef,ex,ek,[eC,ek,eP,eE]),scrollProgress:eD,scrollSnapList:ey.map(eD.get),scrollSnaps:ey,scrollTarget:eM,scrollTo:eN,slideLooper:function(e,t,i,n,r,s,a,o,l){let u=x(r),c=x(r).reverse(),d=m(p(c,a[0]),i,!1).concat(m(p(u,t-a[0]-1),-i,!0));function h(e,t){return e.reduce((e,t)=>e-r[t],t)}function p(e,t){return e.reduce((e,i)=>h(e,t)>0?e.concat([i]):e,[])}function m(r,a,u){let c=s.map((e,i)=>({start:e-n[i]+.5+a,end:e+t-.5+a}));return r.map(t=>{let n=u?0:-i,r=u?i:0,s=c[t][u?"end":"start"];return{index:t,loopPoint:s,slideLocation:k(-1),translate:E(e,l[t]),target:()=>o.get()>s?n:r}})}return{canLoop:function(){return d.every(({index:e})=>.1>=h(u.filter(t=>t!==e),t))},clear:function(){d.forEach(e=>e.translate.clear())},loop:function(){d.forEach(e=>{let{target:t,translate:i,slideLocation:n}=e,r=t();r!==n.get()&&(i.to(r),n.set(r))})},loopPoints:d}}(en,er,ef,el,eu,ep,ey,ek,i),slideFocus:eL,slidesHandler:(F=!1,{init:function(e){Z&&(L=new MutationObserver(t=>{!F&&(f(Z)||Z(e,t))&&function(t){for(let i of t)if("childList"===i.type){e.reInit(),a.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){L&&L.disconnect(),F=!0}}),slidesInView:eR,slideIndexes:ej,slideRegistry:eI,slidesToScroll:eh,target:eE,translate:E(en,t)};return eF}(e,l,u,d,h,i,R);return i.loop&&!n.slideLooper.canLoop()?t(Object.assign({},i,{loop:!1})):n}(H),F([U,...$.map(({options:e})=>e)]).forEach(e=>V.add(e,"change",q)),H.active&&(a.translate.to(a.location.get()),a.animation.init(),a.slidesInView.init(),a.slideFocus.init(X),a.eventHandler.init(X),a.resizeHandler.init(X),a.slidesHandler.init(X),a.options.loop&&a.slideLooper.loop(),l.offsetParent&&u.length&&a.dragHandler.init(X),o=D.init(X,$)))}function q(e,t){let i=G();K(),W(I({startIndex:i},e),t),R.emit("reInit")}function K(){a.dragHandler.destroy(),a.eventStore.clear(),a.translate.clear(),a.slideLooper.clear(),a.resizeHandler.destroy(),a.slidesHandler.destroy(),a.slidesInView.destroy(),a.animation.destroy(),D.destroy(),V.clear()}function Y(e,t,i){H.active&&!z&&(a.scrollBody.useBaseFriction().useDuration(!0===t?0:H.duration),a.scrollTo.index(e,i||0))}function G(){return a.index.get()}let X={canScrollNext:function(){return a.index.add(1).get()!==G()},canScrollPrev:function(){return a.index.add(-1).get()!==G()},containerNode:function(){return l},internalEngine:function(){return a},destroy:function(){z||(z=!0,V.clear(),K(),R.emit("destroy"),R.clear())},off:O,on:B,emit:_,plugins:function(){return o},previousScrollSnap:function(){return a.indexPrevious.get()},reInit:q,rootNode:function(){return e},scrollNext:function(e){Y(a.index.add(1).get(),e,-1)},scrollPrev:function(e){Y(a.index.add(-1).get(),e,1)},scrollProgress:function(){return a.scrollProgress.get(a.offsetLocation.get())},scrollSnapList:function(){return a.scrollSnapList},scrollTo:Y,selectedScrollSnap:G,slideNodes:function(){return u},slidesInView:function(){return a.slidesInView.get()},slidesNotInView:function(){return a.slidesInView.get(!1)}};return W(t,i),setTimeout(()=>R.emit("init"),0),X}function N(e={},t=[]){let n=(0,i.useRef)(e),r=(0,i.useRef)(t),[s,a]=(0,i.useState)(),[o,l]=(0,i.useState)(),u=(0,i.useCallback)(()=>{s&&s.reInit(n.current,r.current)},[s]);return(0,i.useEffect)(()=>{d(n.current,e)||(n.current=e,u())},[e,u]),(0,i.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let i=h(e),n=h(t);return i.every((e,t)=>d(e,n[t]))}(r.current,t)&&(r.current=t,u())},[t,u]),(0,i.useEffect)(()=>
1{if("u">typeof window&&window.document&&window.document.createElement&&o){M.globalOptions=N.globalOptions;let e=M(o,n.current,r.current);return a(e),()=>e.destroy()}a(void 0)},[o,a]),[l,s]}M.globalOptions=void 0,N.globalOptions=void 0;var D=e.i(519455),V=e.i(499876);let R=i.createContext(null);function I(){let e=i.useContext(R);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}let L=({orientation:e="horizontal",opts:n,setApi:r,plugins:s,className:a,children:l,ref:u,...c})=>{let[d,h]=N({...n,axis:"horizontal"===e?"x":"y"},s),[p,m]=i.useState(!1),[f,g]=i.useState(!1),v=i.useCallback(e=>{e&&(m(e.canScrollPrev()),g(e.canScrollNext()))},[]),y=i.useCallback(()=>{h?.scrollPrev()},[h]),x=i.useCallback(()=>{h?.scrollNext()},[h]),w=i.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),y()):"ArrowRight"===e.key&&(e.preventDefault(),x())},[y,x]);return i.useEffect(()=>{h&&r&&r(h)},[h,r]),i.useEffect(()=>{if(h)return v(h),h.on("reInit",v),h.on("select",v),()=>{h?.off("select",v)}},[h,v]),(0,t.jsx)(R.Provider,{value:{carouselRef:d,api:h,opts:n,orientation:e||(n?.axis==="y"?"vertical":"horizontal"),scrollPrev:y,scrollNext:x,canScrollPrev:p,canScrollNext:f},children:(0,t.jsx)("div",{ref:u,onKeyDownCapture:w,className:(0,o.cn)("relative",a),role:"region","aria-roledescription":"carousel",...c,children:l})})},F=({className:e,...i})=>{let{carouselRef:n,orientation:r}=I();return(0,t.jsx)("div",{ref:n,className:"overflow-hidden max-md:-mr-4 max-md:pr-4",children:(0,t.jsx)("div",{className:(0,o.cn)("flex gap-4","vertical"===r&&"-mt-4 flex-col",e),...i})})},B=({className:e,...i})=>(0,t.jsx)("div",{role:"group","aria-roledescription":"slide",className:(0,o.cn)("min-w-0 shrink-0 grow-0 basis-full",e),...i}),O=({className:e,variant:i,size:n="icon",...r})=>{let{orientation:s,scrollPrev:a,canScrollPrev:l}=I();return(0,t.jsx)(D.Button,{"aria-label":"Previous",variant:i,size:n,className:(0,o.cn)("absolute rounded-full","horizontal"===s?"top-1/2 left-0 -translate-y-1/2":"left-1/2 -translate-x-1/2 rotate-90",e),hidden:!l,onClick:a,...r,children:(0,t.jsx)(V.Chevron,{dir:"left"})})},_=({className:e,variant:i,size:n="icon",onDarkBg:r,...s})=>{let{orientation:a,scrollNext:l,canScrollNext:u}=I();return(0,t.jsx)(D.Button,{"aria-label":"Next",variant:i,onDarkBg:r,size:n,className:(0,o.cn)("absolute rounded-full","horizontal"===a?"top-1/2 right-0 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),hidden:!u,onClick:l,...s,children:(0,t.jsx)(V.Chevron,{dir:"right"})})};var z=e.i(46383),U=e.i(327966);let H=e=>"object"==typeof e;e.s(["Articles",0,({overline:e,title:a,articles:o,links:l,colorScheme:c})=>{let[d,h]=i.default.useState(),[p,m]=i.default.useState(!1),[f,g]=i.default.useState(!1);return i.default.useEffect(()=>{if(!d)return;let e=()=>{m(d.canScrollPrev()),g(d.canScrollNext())};return d.on("select",e),e(),()=>{d.off("select",e)}},[d]),(0,t.jsx)(z.Section,{colorScheme:c,padding:"base",children:(0,t.jsx)("div",{className:"container flex w-full max-w-7xl flex-col gap-12 lg:gap-16 lg:py-12",children:(0,t.jsxs)("div",{className:"flex flex-col gap-12 lg:flex-row lg:gap-16",children:[a&&(0,t.jsxs)("div",{className:"flex w-full flex-col gap-6 md:max-lg:flex-row md:max-lg:justify-between lg:w-1/3",children:[(0,t.jsxs)("div",{className:"flex max-w-xl flex-col gap-2",children:[e&&(0,t.jsx)(U.Typography,{variant:"p",children:e}),(0,t.jsx)(s.RichText,{defaultTypographyVariant:"h2",content:a})]}),l&&!!l?.length&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2 md:max-lg:self-end",children:l.map(e=>(0,t.jsx)(r.ButtonLink,{...e.linkButton,onDarkBg:"pine"===c},e.id))})]}),o?.length&&(0,t.jsx)("div",{className:"relative w-full lg:w-2/3",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)(L,{opts:{align:"start"},setApi:h,children:[(0,t.jsx)(F,{children:o.filter(H).map(e=>(0,t.jsx)(B,{className:"basis-66 md:basis-80",children:(0,t.jsx)(n.ArticleCard,{article:e,onDarkBg:"pine"===c})},e.id))}),(0,t.jsx)(O,{variant:"primary",className:"z-21 hidden items-center justify-center rounded-2xl md:flex",onDarkBg:"pine"===c}),(0,t.jsx)(_,{variant:"primary",className:"z-21 hidden items-center justify-center rounded-2xl md:flex",onDarkBg:"pine"
1===c})]}),(0,t.jsx)(u,{direction:"left",visible:p,colorScheme:c,className:"hidden md:block"}),(0,t.jsx)(u,{direction:"right",visible:f,colorScheme:c,className:"hidden md:block"})]})})]})})})}],280635)},314623,e=>{"use strict";var t=e.i(342433),i=e.i(668746),n=e.i(519455),r=e.i(257428),s=e.i(43564),a=e.i(793479),o=e.i(543652),l=e.i(91285);e.s(["NewsletterForm",0,({colorScheme:e,variant:u,mailchimp:c})=>{let{setEmail:d,email:h,mutate:p,privacyYes:m,setPrivacyYes:f,disabled:g}=(0,o.useMailchimp)(c);return(0,t.jsx)("div",{className:"@container",children:(0,t.jsxs)("div",{className:(0,l.cn)("grid w-full gap-4","noMedia"!==u&&"items-end @md:grid-cols-[1fr_auto]"),children:[(0,t.jsx)(a.InputWithLabel,{label:c.label||void 0,value:h,onChange:e=>d(e.target.value),id:"newsletter-email",onDarkBg:"pine"===e,placeholder:c.placeholder||"[email protected]",className:"w-full",type:"email"}),c?.privacyPolicy&&(0,t.jsx)(r.CheckboxGroup,{groupClassname:(0,l.cn)("row-start-2 w-full","noMedia"===u?"":"col-span-full"),checked:m,onCheckedChange:e=>f(e),onDarkBg:"pine"===e,id:"privacy-policy-yes",children:(0,t.jsx)(i.RichText,{content:c.privacyPolicy,defaultTypographyVariant:"small"})}),(0,t.jsx)(n.Button,{disabled:g,buttonText:c.buttonText||void 0,variant:"secondary",onClick:()=>p(),children:(0,t.jsx)(s.Icon,{icon:c.buttonIcon||"arrowForward"})})]})})}])},899304,e=>{"use strict";var t=e.i(342433),i=e.i(294237),n=e.i(314623),r=e.i(668746),s=e.i(658512),a=e.i(327966),o=e.i(91285),l=e.i(242198),u=e.i(739223),c=e.i(268669),d=e.i(687637),h=e.i(519455),p=e.i(393783),m=e.i(43564);let f=(0,i.cva)("group flex w-full items-center justify-between",{variants:{colorScheme:{lemon:"text-lemon-300",pine:"text-dark"}}}),g=({buttonIcon:e,colorScheme:i,buttonText:n,asChild:r,children:s,className:a})=>{let l=r?d.Slot:"button";return(0,t.jsxs)(l,{className:(0,o.cn)(f({colorScheme:i}),a),children:[n&&(0,t.jsx)(p.ButtonText,{buttonText:n}),(0,t.jsx)(d.Slottable,{children:s}),(0,t.jsx)(h.Button,{asChild:!0,variant:"lemon"===i?"secondary":"primary",size:"icon",children:(0,t.jsx)("div",{children:(0,t.jsx)(m.Icon,{icon:e})})})]})};function v(){let e=new Date(Date.now()-864e5);return e.setUTCHours(12,0,0,0),e}let y=({generatedPath:e,hero:i,programInfo:n})=>{let s=(0,l.useFormatter)(),d=(0,l.useTranslations)(),{badge:h,lastApplicationDate:p,startDate:m,trainingLocation:f}=n,y=[m?s.dateTime(new Date(m),"short"):d("academyPrograms.comingSoon"),f?.length>2?d("academyPrograms.multipleCities",{number:f?.length}):f?.join(" & ")??""].filter(Boolean).join(" ⢠"),x=new Date(p)<=v();return(0,t.jsx)("div",{className:"@container",children:(0,t.jsxs)(u.default,{href:e||"#",className:"group relative grid min-h-128 grid-rows-[auto_1fr] gap-3 overflow-hidden rounded-4xl p-4 pb-6 text-light @lg:min-h-168 @lg:rounded-6xl @lg:p-10 @lg:pb-10",children:[i.imageBackground&&(0,t.jsx)(c.PayloadImage,{media:i.imageBackground,className:(0,o.cn)("transition-transform group-hover:scale-[1.03]",x&&"grayscale")}),(0,t.jsx)("div",{className:"absolute inset-0 bg-linear-to-t from-black to-black/15 opacity-70 transition-all group-hover:opacity-80"}),!!h?.length&&(0,t.jsx)("div",{className:"relative place-self-start rounded-lg bg-lemon-300 px-4 py-2 text-dark",children:h[0]}),(0,t.jsxs)("div",{className:"relative row-start-2 mt-auto grid w-full gap-x-8 gap-y-3",children:[(0,t.jsxs)("div",{className:"col-span-2 flex max-w-xl flex-col gap-2",children:[(0,t.jsx)(a.Typography,{variant:"eyebrow",children:y}),(0,t.jsx)(a.Typography,{variant:"h2",as:"h3",className:"text-3xl! wrap-anywhere hyphens-auto @lg:text-4xl! @3xl:text-5xl!",children:i.title})]}),(0,t.jsx)("div",{className:"col-span-2 line-clamp-3 max-w-md @lg:col-span-1",children:(0,t.jsx)(r.RichText,{content:i.subtitle})}),(0,t.jsx)(g,{buttonIcon:"arrowForward",buttonText:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"@3xl:hidden",children:d("academyPrograms.applyCtaShort")}),(0,t.jsx)("span",{className:"hidden @3xl:inline",children:d("academyPrograms.applyCtaLong")})]}),colorScheme:"lemon",className:"hidden w-auto gap-5 place-self-end @lg:flex"})]})]})})};var x=e.i(766271),w=e.i(955371),b=e.i(804620),j=e.i(182899),S=e.i(783575);let T=async(e,t,i=!0)=>
1{if(!e||!t)return null;let n=(0,S.stringify)({locale:e,sort:"programInfo.lastApplicationDate",depth:2,limit:6,select:{generatedPath:!0,hero:{imageBackground:!0,title:!0,subtitle:!0},programInfo:{startDate:!0,lastApplicationDate:!0,trainingLocation:!0,badge:!0}},where:{_status:{equals:"published"},hidden:{not_equals:!0},tenant:{equals:t},"programInfo.lastApplicationDate":{[i?"greater_than":"less_than_equal"]:v()}}},{addQueryPrefix:!0});return fetch(`/api/academyPrograms${n}`).then(e=>e.json())},C=(0,i.cva)("grid gap-6",{variants:{variant:{highlight:"md:[&>*:first-child]:col-span-full",default:"lg:grid-cols-3"},cols:{1:"lg:grid-cols-1",2:"md:grid-cols-2 lg:grid-cols-2",3:"md:grid-cols-2 lg:grid-cols-3"}},defaultVariants:{variant:"default",cols:3}});e.s(["ProgramList",0,({colorScheme:e="white",variant:i="default",tenant:l,active:u,initialData:c,fallbackData:d})=>{var h;let{data:p,setPage:m,status:f}=(({tenant:e,active:t,initialData:i})=>{let n=(0,b.useLocale)(),[r,s]=(0,j.useState)(1);return{...(0,w.useQuery)({queryKey:["programs",e,n,t?"active":"previous",r],queryFn:async()=>T(n,e,t),initialData:i,placeholderData:x.keepPreviousData}),page:r,setPage:s}})({tenant:l,active:u,initialData:c}),g=p?.docs??[],v=p?.hasPrevPage||p?.hasNextPage;return"success"===f&&0===g.length&&d?(0,t.jsx)("div",{className:"flex flex-col items-center",children:(0,t.jsxs)("div",{className:"flex max-w-xl flex-col gap-2 rounded-4xl bg-white-100 p-14 text-dark",children:[d.heading&&(0,t.jsx)(a.Typography,{variant:"h3",children:d.heading}),d.body&&(0,t.jsx)(r.RichText,{defaultTypographyVariant:"large",content:d.body}),d.showEmailSignup&&d.mailchimp&&(0,t.jsx)(n.NewsletterForm,{colorScheme:e,mailchimp:d.mailchimp,variant:"noMedia"})]})}):(0,t.jsxs)("div",{className:(0,o.cn)(C({cols:"highlight"===i?3:2===(h=g.length)||4===h?2:1===h?1:3,variant:i})),children:[g.map(e=>(0,t.jsx)(y,{...e},e.id)),v&&(0,t.jsx)("div",{className:"col-span-full grid",children:(0,t.jsx)(s.Pagination,{currentPage:p.page??1,totalItems:p.totalDocs,pageSize:p.limit,setPage:m,onDarkBg:"pine"===e})})]})}],899304)},878191,e=>{"use strict";e.i(360164);var t=e.i(342433),i=e.i(182899),n=e.i(865418),r=e.i(829550),s=e.i(440023),a=e.i(869857),o=e.i(82075),l=i,u=e.i(550798);function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class d extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,i=(0,o.isHTMLElement)(e)&&e.offsetWidth||0,n=(0,o.isHTMLElement)(e)&&e.offsetHeight||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=i-r.width-r.left,r.bottom=n-r.height-r.top}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:e,isPresent:n,anchorX:r,anchorY:s,root:a}){let o=(0,l.useId)(),h=(0,l.useRef)(null),p=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:m}=(0,l.useContext)(u.MotionConfigContext),f=function(...e){return i.useCallback(function(...e){return t=>{let i=!1,n=e.map(e=>{let n=c(e,t);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let t=0;t<n.length;t++){let i=n[t];"function"==typeof i?i():c(e[t],null)}}}}(...e),e)}(h,e.props?.ref??e?.ref);return(0,l.useInsertionEffect)(()=>{let{width:e,height:t,top:i,left:l,right:u,bottom:c}=p.current;if(n||!h.current||!e||!t)return;let d="left"===r?`left: ${l}`:`right: ${u}`,f="bottom"===s?`bottom: ${c}`:`top: ${i}`;h.current.dataset.motionPopId=o;let g=document.createElement("style");m&&(g.nonce=m);let v=a??document.head;return v.appendChild(g),g.sheet&&g.sheet.insertRule(` 2 [data-motion-pop-id="${o}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${t}px !important; 6 ${d}px !important; 7 ${f}px !important; 8 } 9 `),()=>{v.contains(g)&&v.removeChild(g)}},[n]),(0,t.jsx)(d,{isPresent:n,childRef:h,sizeRef:p,children:l.cloneElement(e,{ref:f})})}let p=({children:e,initial:n,isPresent:s,onExitComplete:o,custom:l,presenceAffectsLayout:u,mode:c,anch
9orX:d,anchorY:p,root:f})=>{let g=(0,r.useConstant)(m),v=(0,i.useId)(),y=!0,x=(0,i.useMemo)(()=>(y=!1,{id:v,initial:n,isPresent:s,custom:l,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;o&&o()},register:e=>(g.set(e,!1),()=>g.delete(e))}),[s,g,o]);return u&&y&&(x={...x}),(0,i.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[s]),i.useEffect(()=>{s||g.size||!o||o()},[s]),"popLayout"===c&&(e=(0,t.jsx)(h,{isPresent:s,anchorX:d,anchorY:p,root:f,children:e})),(0,t.jsx)(a.PresenceContext.Provider,{value:x,children:e})};function m(){return new Map}var f=e.i(204036);let g=e=>e.key||"";function v(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let y=({children:e,custom:a,initial:o=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:c="sync",propagate:d=!1,anchorX:h="left",anchorY:m="top",root:y})=>{let[x,w]=(0,f.usePresence)(d),b=(0,i.useMemo)(()=>v(e),[e]),j=d&&!x?[]:b.map(g),S=(0,i.useRef)(!0),T=(0,i.useRef)(b),C=(0,r.useConstant)(()=>new Map),P=(0,i.useRef)(new Set),[k,E]=(0,i.useState)(b),[A,M]=(0,i.useState)(b);(0,s.useIsomorphicLayoutEffect)(()=>{S.current=!1,T.current=b;for(let e=0;e<A.length;e++){let t=g(A[e]);j.includes(t)?(C.delete(t),P.current.delete(t)):!0!==C.get(t)&&C.set(t,!1)}},[A,j.length,j.join("-")]);let N=[];if(b!==k){let e=[...b];for(let t=0;t<A.length;t++){let i=A[t],n=g(i);j.includes(n)||(e.splice(t,0,i),N.push(i))}return"wait"===c&&N.length&&(e=N),M(v(e)),E(b),null}let{forceRender:D}=(0,i.useContext)(n.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:A.map(e=>{let i=g(e),n=(!d||!!x)&&(b===A||j.includes(i));return(0,t.jsx)(p,{isPresent:n,initial:(!S.current||!!o)&&void 0,custom:a,presenceAffectsLayout:u,mode:c,root:y,onExitComplete:n?void 0:()=>{if(P.current.has(i)||(P.current.add(i),!C.has(i)))return;C.set(i,!0);let e=!0;C.forEach(t=>{t||(e=!1)}),e&&(D?.(),M(T.current),d&&w?.(),l&&l())},anchorX:h,anchorY:m,children:e},i)})})};e.s(["AnimatePresence",()=>y],878191)},943711,e=>{"use strict";var t=e.i(342433),i=e.i(878191),n=e.i(562897),r=e.i(182899),s=e.i(668746),a=e.i(178051),o=e.i(519455),l=e.i(499876),u=e.i(46383),c=e.i(327966),d=e.i(91285);e.s(["CompressedCarousel",0,({overline:e,testimonials:h,colorScheme:p})=>{let[m,f]=r.default.useState(0),[g,v]=r.default.useState(!1),[y,x]=r.default.useState(!1),w=(0,r.useCallback)(()=>{m<(h?.length??0)-1&&!g?(v(!0),f(e=>e+1)):g||(v(!0),f(0))},[m,g,h]);if((0,r.useEffect)(()=>{if(y||(h?.length??0)<=1)return;let e=setInterval(()=>{g||w()},5e3);return()=>clearInterval(e)},[g,m,y,w,h]),!h||0===h.length||"object"!=typeof h)return null;let b=m>0,j=m<h.length-1,S=()=>{b&&!g&&(v(!0),f(e=>e-1))},T={duration:.5,ease:[.17,.67,.59,1.05]};return(0,t.jsx)(u.Section,{colorScheme:p,onMouseEnter:()=>x(!0),onMouseLeave:()=>x(!1),children:(0,t.jsx)(i.AnimatePresence,{initial:!1,onExitComplete:()=>v(!1),children:h.map((i,r)=>!(0,d.isType)(i)||r!==m||g?null:(0,t.jsxs)("div",{className:"container grid min-h-[256px] w-full flex-1 gap-12 text-center lg:max-w-3xl lg:gap-16",children:[e&&(0,t.jsx)(c.Typography,{variant:"p",children:e}),(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:-40},animate:{opacity:1,y:0},exit:{opacity:0,y:40},transition:T,children:(0,t.jsx)(s.RichText,{defaultTypographyVariant:"h2",content:i.quote,className:"text-center leading-[130%]! hyphens-none lg:text-4xl xl:text-5xl"})},`quote-${i.id}`),(0,t.jsxs)("div",{className:"flex items-center justify-center",children:[(0,t.jsx)(n.motion.div,{initial:{opacity:0}
9,animate:{opacity:1},exit:{opacity:0},transition:T,children:(0,t.jsx)(a.TestimonialAuthor,{testimonial:i,colorScheme:p})},`author-${i.id}`),h.length>1&&(0,t.jsxs)("div",{className:"ms-auto flex flex-row gap-1",children:[(0,t.jsx)(o.Button,{"aria-label":"Previous",className:"shrink-0",size:"icon",variant:"tertiary",disabled:!b||g,onClick:S,onDarkBg:"pine"!==p,children:(0,t.jsx)(l.Chevron,{dir:"left"})}),(0,t.jsx)(o.Button,{"aria-label":"Next",className:"shrink-0",size:"icon",variant:"tertiary",disabled:!j||g,onClick:w,onDarkBg:"pine"!==p,children:(0,t.jsx)(l.Chevron,{dir:"right"})})]})]})]},i.id))})})}])},198392,e=>{"use strict";var t=e.i(342433),i=e.i(878191),n=e.i(562897),r=e.i(182899),s=e.i(268669),a=e.i(668746),o=e.i(178051),l=e.i(519455),u=e.i(499876),c=e.i(46383),d=e.i(327966),h=e.i(91285);e.s(["Carousel",0,({overline:e,testimonials:p,colorScheme:m})=>{let[f,g]=r.default.useState(0),[v,y]=r.default.useState(!1),[x,w]=r.default.useState(!1),b=(0,r.useCallback)(()=>{f<(p?.length??0)-1&&!v?(y(!0),g(e=>e+1)):v||(y(!0),g(0))},[f,v,p]);if((0,r.useEffect)(()=>{if(x||(p?.length??0)<=1)return;let e=setInterval(()=>{v||b()},5e3);return()=>clearInterval(e)},[v,f,x,b,p]),!p||0===p.length||"object"!=typeof p)return null;let j=f>0,S=f<p.length-1,T=()=>{j&&!v&&(y(!0),g(e=>e-1))},C={duration:.5,ease:[.17,.67,.59,1.05]},P={duration:.33,ease:[.17,.67,.59,1.05]},k={duration:.9,ease:[.17,.67,.59,1.05]},E="absolute z-10 aspect-square w-full bg-pine-300";return(0,t.jsx)(c.Section,{colorScheme:m,className:"max-h-216 justify-center py-0 md:py-0 lg:h-[50vw]",onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:(0,t.jsx)(i.AnimatePresence,{initial:!1,onExitComplete:()=>y(!1),children:p.map((i,c)=>!(0,h.isType)(i)||c!==f||v?null:(0,t.jsxs)(r.Fragment,{children:[(0,t.jsxs)("div",{className:"container grid h-full flex-col py-10 lg:grid-cols-2 lg:gap-24 lg:py-16 xl:gap-40",children:[(0,t.jsxs)("div",{className:"flex flex-col justify-between gap-8 text-center lg:text-left",children:[e&&(0,t.jsx)(d.Typography,{variant:"p",children:e}),(0,t.jsx)(n.motion.div,{initial:{opacity:0,y:-40},animate:{opacity:1,y:0},exit:{opacity:0,y:40},transition:C,children:(0,t.jsx)(a.RichText,{defaultTypographyVariant:"h2",content:i.quote,className:"text-center leading-[130%]! hyphens-none lg:text-left lg:text-3xl xl:text-4xl 2xl:text-5xl"})},`quote-${i.id}`),(0,t.jsxs)("div",{className:"flex items-center justify-center lg:justify-start",children:[(0,t.jsx)(n.motion.div,{initial:{opacity:0}
9,animate:{opacity:1},exit:{opacity:0},transition:C,children:(0,t.jsx)(o.TestimonialAuthor,{testimonial:i,colorScheme:m})},`author-${i.id}`),p.length>1&&(0,t.jsxs)("div",{className:"ms-auto flex flex-row gap-1",children:[(0,t.jsx)(l.Button,{className:"shrink-0","aria-label":"Previous",size:"icon",variant:"tertiary",disabled:!j||v,onClick:T,onDarkBg:"pine"!==m,children:(0,t.jsx)(u.Chevron,{dir:"left"})}),(0,t.jsx)(l.Button,{className:"shrink-0","aria-label":"Next",size:"icon",variant:"tertiary",disabled:!S||v,onClick:b,onDarkBg:"pine"!==m,children:(0,t.jsx)(u.Chevron,{dir:"right"})})]})]})]}),(0,t.jsx)("div",{})]}),(0,t.jsx)("div",{className:"relative aspect-square w-full overflow-hidden bg-pine-300 lg:absolute lg:left-1/2 lg:h-[50vw] lg:max-h-216 lg:w-1/2",children:i.image&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.motion.div,{initial:{x:"-200%",rotate:21,scale:2},animate:{x:"-200%",rotate:21,scale:2},exit:{x:"0%",rotate:21,scale:2},transition:P,className:E},`slant-out-${i.id}`),(0,t.jsx)(n.motion.div,{initial:{x:"0%",rotate:21,scale:2},animate:{x:"200%",rotate:21,scale:2},transition:k,className:E},`slant-in-${i.id}`),(0,t.jsx)(n.motion.div,{initial:{x:-60},animate:{x:0},exit:{x:60},transition:C,className:"absolute size-full",children:(0,t.jsx)(s.PayloadImage,{media:i.image})},`image-${i.id}`)]})})]},i.id))})})}])},467484,e=>{"use strict";var t=e.i(342433),i=e.i(242198),n=e.i(31374),r=e.i(182899),s=e.i(14106),a=e.i(658512),o=e.i(967489),l=e.i(677572),u=e.i(327966),c=e.i(766271),d=e.i(955371),h=e.i(783575);let p=async(e,t,i,n)=>{let r=(0,h.stringify)(((e,t,i=6,n=1)=>({locale:e,limit:i,depth:2,page:n,sort:["-publishedAt","slug"],select:{title:!0,excerpt:!0,image:!0,slug:!0,category:!0,readTime:!0,generatedPath:!0},where:{category:{in:t},hidden:{not_equals:!0},_status:{equals:"published"}}}))(e,n,i,t),{addQueryPrefix:!0});return fetch(`/api/articles${r}`).then(e=>e.json())};e.s(["Articles",0,({showMultipleCategories:e,title:h,initialData:m,colorScheme:f,categories:g})=>{let{locale:v}=(0,n.useParams)(),y=(0,i.useTranslations)(),x=g.map(e=>"string"==typeof e?e:e.id).join(","),w=g.filter(e=>"string"!=typeof e);w.length>1&&w.unshift({id:x,title:y("articles.allArticles")});let[b,j]=(0,r.useState)(m.page),[S,T]=(0,r.useState)(w[0].id),{data:C}=function({page:e=1,category:t,locale:i,limit:n,initialData:r}){return(0,d.useQuery)({queryKey:["articles",e,t],queryFn:()=>p(i,e,n,t),initialData:r,placeholderData:c.keepPreviousData})}({initialData:b===m.page&&S===x?m:void 0,page:b,category:S,limit:m.limit,locale:v});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-4",children:[(0,t.jsxs)("div",{className:"flex w-full flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[(0,t.jsx)(u.Typography,{id:"article-list",variant:"h2",children:e?h:y("articles.allArticlesInCategory",{title:h??""})}),w.length>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.Select,{value:S,onValueChange:e=>{j(m.page),T(e)},children:[(0,t.jsx)(o.SelectTrigger,{colorScheme:"lemon",className:"md:w-max lg:hidden",children:(0,t.jsx)(o.SelectValue,{})}),(0,t.jsx)(o.SelectContent,{colorScheme:"lemon",align:"end",children:w.map(e=>(0,t.jsx)(o.SelectItem,{value:e.id,children:e.title},e.id))})]}),(0,t.jsx)(l.Tabs,{className:"hidden lg:block",value:S,onValueChange:T,children:(0,t.jsx)(l.TabsList,{className:"border border-border",type:"free",children:w.map(e=>(0,t.jsx)(l.TabsTrigger,{value:e.id,onClick:()=>j(m.page),children:e.title},e.id))})})]})]}),(0,t.jsx)("div",{className:"grid w-full gap-8 md:grid-cols-2 md:gap-1 lg:grid-cols-3",children:C?.docs?.map(e=>(0,t.jsx)(s.ArticleCard,{onDarkBg:"pine"===f,article:e},e.id))})]}),(0,t.jsx)(a.Pagination,{currentPage:C?.page??m.page??0,totalItems:C?.totalDocs??m.totalDocs??0,pageSize:C?.limit??m.limit??0,setPage:j,onDarkBg:"pine"===f})]})}],467484)},273443,e=>{"use strict";var t=e.i(342433),i=e.i(363914),n=e.i(519455),r=e.i(43564),s=e.i(91285);let a=i.Root,o=({className:e,...n})=>(0,t.jsx)(i.Item,{className:(0,s.cn)("rounded-2xl",e),...n}),l=({className:e,children:a,...o})=>(0,t.jsx)(i.Header,{className:"flex",children:(0,t.jsxs)(i.Trigger,{className:(0,s.cn)("group flex flex-1 items-center justify-between gap-3 p-3 font-medium transition-all lg:p-4 [&[data-state=open]_svg]:rotate-90",e),...o,children:[(0,t.jsx)(n.Button,{size:"icon",asChild:!0,children:(0,t.jsx)("div",{children:(0,t.jsx)(r.Icon,{icon:"chevronRight"})})}),(0,t.jsx)("div",{className:"w-full",children:a})]})}),u=({className:e,children:n,...r})=>(0,t.jsx)(i.Content,{className:"overflow-hidden px-3 pb-3 text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down lg:px-4 lg:pb-4",...r,children:(0,t.jsx)("div",{className:e,children:n})});e.s(["Accordion",()=>a,"AccordionContent",()=>u,"AccordionItem",()=>o,"AccordionTrigger",()=>l])},294463,e=>{"use strict";var t=e.i(342433),i=e.i(294237),n=e.i(182899),r=e.i(519455),s=e.i(499876),a=e.i(696978),o=e.i(327966),l=e.i(91285);let u=(0,i.cva)("relative no-scrollbar grid w-full scroll-px-(--p) auto-cols-[16rem] grid-flow-col gap-12 overflow-x-auto mask-linear-[to_right,var(--cl),red_max(8rem,var(--maxp)),red_calc(100%-max(8rem,var(--maxp))),var(--cr)_100%] px-(--p) transition-all md:auto-cols-[20rem]",{variants:{canScrollLeft:{true:"[--cl:transparent]",false:"[--cl:red]"},canScrollRight:{true:"[--cr:transparent]",false:"[--cr:red]"}},defaultVariants:{canScrollLeft:!1,canScrollRight:!0}}),c=({title:e,body:i,picto:n,step:r,lastStep:s})=>{let l=n?.picto;return(0,t.jsxs)("div",{className:"flex w-full snap-start flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[l?(0,t.jsx)(a.Pictogram,{className:"size-16 md:size-24",picto:l}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Typography,{as:"h3",variant:"display-lg",className:"flex md:hidden",children:r.toString().padStart(2,"0")}),(0,t.jsx)(o.Typography,{as:"h3",variant:"display",className:"hidden md:flex",children:r.toString().padStart(2,"0")})]}),!s&&(0,t.jsx)("div",{className:"h-0.5 w-35 bg-pine-25 md:w-44"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(o.Typography,{variant:"h3",children:e}),i&&(0,t.jsx)(o.Typography,{children:i})]})]})};e.s(["ScrollableRow",0,({steps:e,colorScheme:i,variant:a})=>
9{let o=(0,n.useRef)(null),[d,h]=(0,n.useState)(!1),[p,m]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=o.current;if(!e)return;let t=()=>{h(e.scrollLeft>0),m(e.scrollLeft+e.clientWidth<e.scrollWidth)};return e.addEventListener("scroll",t),t(),()=>{e.removeEventListener("scroll",t)}},[]),(0,t.jsxs)("div",{className:"relative w-full [--maxp:1rem] [--p:1rem] md:[--maxp:calc((100vw-80rem)/2+2rem)] md:[--p:max(2rem,var(--maxp))]",children:[(0,t.jsx)("div",{ref:o,className:u({canScrollLeft:d,canScrollRight:p}),children:e.map(({id:i,title:n,body:r,picto:s},o)=>(0,t.jsx)(c,{title:n,body:r,picto:"picto"===a?s:void 0,step:o+1,lastStep:o===e.length-1},i))}),(0,t.jsx)(r.Button,{size:"icon","aria-label":"Previous",variant:"primary",onDarkBg:"pine"===i,className:(0,l.cn)("absolute inset-y-1/2 right-auto left-8 z-20 hidden -translate-y-1/2 transition-opacity md:flex",d?"opacity-100":"pointer-events-none touch-none opacity-0"),onClick:()=>o?.current?.scrollBy({left:-688,behavior:"smooth"}),children:(0,t.jsx)(s.Chevron,{dir:"left"})}),(0,t.jsx)(r.Button,{size:"icon","aria-label":"Next",variant:"primary",onDarkBg:"pine"===i,className:(0,l.cn)("absolute inset-y-1/2 right-8 left-auto z-20 hidden -translate-y-1/2 transition-opacity md:flex",p?"opacity-100":"pointer-events-none touch-none opacity-0"),onClick:()=>o?.current?.scrollBy({left:688,behavior:"smooth"}),children:(0,t.jsx)(s.Chevron,{dir:"right"})})]})}])},176450,e=>{"use strict";var t=e.i(342433),i=e.i(294237),n=e.i(268669),r=e.i(668746),s=e.i(696978),a=e.i(46383),o=e.i(327966),l=e.i(91285),u=e.i(314623);let c=(0,i.cva)("relative container grid w-full max-w-7xl gap-y-8",{variants:{alignment:{left:"",right:""},variant:{noMedia:"items-center md:grid-cols-[21fr_12fr] md:gap-x-24 md:[grid-template-areas:'text_form']",picto:"",image:""}},compoundVariants:[{variant:["picto","image"],className:"md:grid-rows-[1fr_auto_auto_1fr] md:gap-x-24 md:gap-y-5"},{variant:["picto","image"],alignment:"left",className:"md:grid-cols-[1fr_1fr] md:[grid-template-areas:'media_.''media_text''media_form''media_.']"},{variant:["picto","image"],alignment:"right",className:"md:grid-cols-[1fr_1fr] md:[grid-template-areas:'._media''text_media''form_media''._media']"}]});e.s(["NewsletterSignup",0,({colorScheme:e,alignment:i,variant:d,image:h,mailchimp:p,overline:m,title:f,subtitle:g,picto:v})=>(0,t.jsx)(a.Section,{colorScheme:e,children:(0,t.jsxs)("div",{className:c({variant:d,alignment:i}),children:["noMedia"!==d&&(0,t.jsxs)("div",{className:(0,l.cn)("relative pb-two-thirds md:h-full md:py-one-half","md:[grid-area:media]"),children:["image"===d&&h&&(0,t.jsx)(n.PayloadImage,{className:"rounded-4xl",media:h}),"picto"===d&&v&&(0,t.jsx)("div",{className:(0,l.cn)("absolute inset-0 grid place-items-center rounded-4xl text-dark","eucalyptus"===e?"bg-white-100":"bg-eucalyptus-100"),children:(0,t.jsx)(s.Pictogram,{className:"size-28 md:size-36",picto:v.picto})})]}),(0,t.jsxs)("div",{className:(0,l.cn)("flex max-w-2xl flex-col gap-4 md:[grid-area:text]"),children:[m&&(0,t.jsx)(o.Typography,{children:m}),f&&(0,t.jsx)(r.RichText,{content:f,defaultTypographyVariant:"h2"}),g&&(0,t.jsx)(r.RichText,{content:g,defaultTypographyVariant:"large"})]}),(0,t.jsx)("div",{className:(0,l.cn)("grid items-stretch gap-5","w-full md:max-w-sm md:[grid-area:form]","noMedia"===d&&"md:justify-self-end"),children:(0,t.jsx)(u.NewsletterForm,{colorScheme:e,variant:d,mailchimp:p})})]})})])},911518,e=>{"use strict";var t=e.i(342433),i=e.i(294237),n=e.i(182899),r=e.i(451398);let s={some:0,all:1};var a=e.i(268669),o=e.i(668746),l=e.i(327966),u=e.i(91285);let c=(0,i.cva)("relative h-full bg-black transition-transform duration-300",{variants:{fadeIn:{true:"scale-110",false:"scale-100"},offset:{0:"delay-0",1:"delay-100",2:"delay-200"}},defaultVariants:{fadeIn:!0,offset:0}}),d=(0,i.cva)("relative inset-0 size-full min-h-0 grow overflow-hidden rounded-3xl bg-pine-200 text-light",{variants:{foregroundColor:{"pine-200":"bg-pine-200","coral-200":"bg-coral-200","rose-100":"bg-rose-100","orange-100":"bg-orange-100","lemon-300":"bg-lemon-300"}},defaultVariants:{foregroundColor:"pine-200"}}),h=(0,i.cva)("z-10 col-span-2 col-start-1 row-start-1 h-full scale-x-200 transition-transform duration-300 ease-overshoot",{variants:{offset:{0:"delay-0",1:"delay-100",2:"delay-200"},foregroundColor:{"pine-200":"bg-pine-200","coral-200":"bg-coral-200","rose-100":"bg-rose-100","orange-100":"bg-orange-100","lemon-300":"bg-lemon-300"},fadeIn:{true:"translate-x-0",false:"translate-x-1/2"},angle:{"to-right":"origin-top-right skew-x-a","to-left":"origin-bottom-right -skew-x-a"}},defaultVariants:{foregroundColor:"pine-200",angle:"to-right",fadeIn:!0,offset:0}}),p=(0,i.cva)("z-0 h-full",{variants:{backgroundColor:{"coral-200":"bg-coral-200","rose-100":"bg-rose-100","orange-100":"bg-orange-100","lemon-300":"bg-lemon-300",black:"bg-black"}}}),m=(0,i.cva)("relative z-10 flex size-full gap-6 p-5 md:p-6",{variants:{statPos:{bottom:"flex-col-reverse justify-end",top:"flex-col justify-start"},foregroundColor:{"pine-200":"text-light","coral-200":"text-dark","rose-100":"text-dark","orange-100":"text-dark","lemon-300":"text-dark"}},defaultVariants:{statPos:"top"}});e.s(["StatCard",0,({media:e,stat:i,overline:f,body:g,angle:v,statPos:y,backgroundColor:x,foregroundColor:w,offset:b,fadeIn:j,limitTextWidth:S,textSize:T="large"})=>{let C=(0,n.useRef)(null),P=function(e,{root:t,margin:i,amount:a,once:o=!1,initial:l=!1}={}
9){let[u,c]=(0,n.useState)(l);return(0,n.useEffect)(()=>{if(!e.current||o&&u)return;let n={root:t&&t.current||void 0,margin:i,amount:a};return function(e,t,{root:i,margin:n,amount:a="some"}={}){let o=(0,r.resolveElements)(e),l=new WeakMap,u=new IntersectionObserver(e=>{e.forEach(e=>{let i=l.get(e.target);if(!!i!==e.isIntersecting)if(e.isIntersecting){let i=t(e.target,e);"function"==typeof i?l.set(e.target,i):u.unobserve(e.target)}else"function"==typeof i&&(i(e),l.delete(e.target))})},{root:i,rootMargin:n,threshold:"number"==typeof a?a:s[a]});return o.forEach(e=>u.observe(e)),()=>u.disconnect()}(e.current,()=>(c(!0),o?void 0:()=>c(!1)),n)},[t,e,i,o,a]),u}(C,{once:!0}),k=j??P,E=Math.min(b??0,2);return(0,t.jsxs)("div",{ref:C,className:d({foregroundColor:w}),children:[(0,t.jsxs)("div",{className:"absolute inset-0 -left-full grid grid-cols-[50%_minmax(124px,4fr)_6fr]",children:[(0,t.jsx)("div",{className:h({foregroundColor:w,angle:v,fadeIn:k})}),(0,t.jsx)("div",{className:p({backgroundColor:x}),children:e&&(0,t.jsx)("div",{className:c({fadeIn:k,offset:E}),children:(0,t.jsx)(a.PayloadImage,{media:e,className:S?"":"opacity-70",sizes:"(max-width: 768px) 100vw, 400px"})})})]}),(0,t.jsxs)("div",{className:m({statPos:y,foregroundColor:w}),children:[(0,t.jsxs)("div",{className:"gap-1.5 md:gap-0",children:[f&&(0,t.jsx)(l.Typography,{className:"md:min-h-12",children:f}),i&&(0,t.jsx)(l.Typography,{variant:"display",as:"h3",className:(0,u.cn)("leading-none whitespace-nowrap","large"===T&&"text-[clamp(3.75rem,12vw,9rem)]","medium"===T&&"text-[clamp(3.75rem,10vw,7rem)]","small"===T&&"text-[clamp(3.75rem,8vw,5rem)]","pine-200"===w?"text-lemon-300":"text-dark"),children:i})]}),g&&(0,t.jsx)("div",{className:S?"w-4/12 min-w-36":"w-full",children:(0,t.jsx)(o.RichText,{content:g})})]})]})}],911518)},699361,e=>{"use strict";var t=e.i(342433),i=e.i(31374),n=e.i(182899),r=e.i(607325),s=e.i(38156),a=e.i(519455),o=e.i(327966);let l={businessAreas:[],categories:[],companies:[],country:"SE",freeText:[],jobTags:[],jobTypes:[],languages:[],locationIds:[],roles:[],size:10,sort:[],startIndex:0,workExtents:[]};var u=e.i(955371),c=e.i(979587),d=e.i(447800),h=e.i(209943);function p({onDarkBg:e,labels:p,initialTotalHits:m}){let{locale:f,tenant:g}=(0,i.useParams)(),v=(0,i.useRouter)(),[y,x]=(0,n.useState)({...l,country:g}),w=((e=l,t=0)=>{let{data:i}=(0,u.useQuery)({queryKey:["totalHits",e],queryFn:()=>(0,c.getAdvertsAction)(e).then(e=>e.totalHits),initialData:t});return i??t})(y,m),{search:b,general:j}=p??{search:{},general:{}},S=e=>{x(t=>({...t,...e}))},T=async()=>{let e=(0,h.getPathFromSlugs)(g,f,[d.SLUGS.JOBS]),t=function(e){if(!e)return"";let t=new URLSearchParams({});e.startIndex>0&&t.append("i",e.startIndex.toString());let i=e.freeText.length>0;e.businessAreas.map(e=>t.append("b",e)),e.categories.map(e=>t.append("c",e)),e.jobTags.map(e=>t.append("j",e)),e.jobTypes.map(e=>t.append("jt",e)),e.workExtents.map(e=>t.append("w",e)),e.freeText.map(e=>t.append("ft",e)),e.companies.map(e=>t.append("co",e)),e.roles?.map(e=>t.append("r",e)),e.locationIds.map(e=>t.append("l",e)),i||e.sort.map(e=>{t.append("s",e.field)}),e.languages.map(e=>t.append("lang",e));let n=t.toString();return n?`?${n}`:""}(y);v.push(e+t)};return(0,t.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex w-full flex-col items-stretch gap-2 lg:flex-row lg:items-end lg:gap-3",children:[(0,t.jsx)(s.JobsSearchInput,{label:b?.jobsSearchInputLabel??"",placeholder:b?.jobsSearchInputPlaceholder??"",dropdownLabels:{roles:b?.roles??"",companies:b?.companies??""},onUpdate:S,className:"lg:shrink lg:grow lg:basis-96"}),(0,t.jsx)(r.JobsLocationInput,{label:b?.locationSearchInputLabel??"",placeholder:b?.locationSearchInputPlaceholder??"",onUpdate:S,className:"lg:shrink lg:grow lg:basis-64"}),(0,t.jsx)(a.Button,{trailingIcon:"arrowForward",className:"max-lg:mt-2",onDarkBg:e,onClick:T,children:b?.searchButtonLabel})]}),w>0&&(0,t.jsxs)("div",{className:"flex items-center justify-center gap-1.5 lg:justify-start",children:[(0,t.jsx)(o.Typography,{variant:"h5",as:"span",className:"rounded-full bg-rose-100 px-4 py-2 text-dark",children:w}),(0,t.jsx)(o.Typography,{variant:"h5",as:"span",children:j?.availableJobs})]})]})}e.s(["TargetGroupsJobsSearch",()=>p],699361)},411462,e=>{"use strict";var t=e.i(342433),i=e.i(182899),n=e.i(268669),r=e.i(668746);let s=(e,t)=>i=>(e.current.set(t,i),()=>{e.current.delete(t)});e.s(["TextFocusScroll",0,({subSections:e})=>{let a=(0,i.useRef)(new Map),o=(0,i.useRef)(new Map);return((0,i.useEffect)(()=>
9{if(0===o.current.size)return;let e=o.current,t=[];return e.forEach((e,i)=>{if(!e)return;let n=new IntersectionObserver(([e])=>{let t=a.current.get(i),n=Array.from(a.current.keys()),r=n[0]===i,s=n[n.length-1]===i,o=e.intersectionRatio.toString(),l=document.documentElement.style;if(r&&e.boundingClientRect.y>0&&l.setProperty("--parallax-fade",o),s&&e.boundingClientRect.y<0&&l.setProperty("--parallax-fade",o),t){if(r&&e.boundingClientRect.y>0||s&&e.boundingClientRect.y<0){t.style.opacity="100";return}t.style.opacity=o}},{rootMargin:"0px",threshold:Array(100).fill(0).map((e,t)=>t/100)});n.observe(e),t.push({observer:n,ref:e})}),()=>{t.forEach(({observer:e,ref:t})=>{e.unobserve(t)})}},[]),e?.length)?(0,t.jsxs)("div",{className:"relative w-full contain-paint",children:[(0,t.jsx)("div",{className:"absolute inset-x-0 -top-[100dvh] -bottom-[100dvh] -z-10 translate-y-0",children:(0,t.jsxs)("div",{className:"sticky top-0 -z-10 h-dvh w-full overflow-hidden",children:[e.map(e=>(0,t.jsx)(n.PayloadImage,{ref:s(a,e.id),media:e.imageBackground,sizes:"100vw",quality:95},e.id)),(0,t.jsx)("div",{className:"absolute inset-0 bg-linear-to-b from-black/40 to-black/40 opacity-(--parallax-fade)"})]})}),e.map(e=>(0,t.jsx)("section",{className:"grid h-dvh w-full items-center overflow-hidden bg-transparent text-light md:py-36",children:(0,t.jsx)("div",{ref:s(o,e.id),className:"z-0 container grid w-full max-w-7xl md:text-center",children:(0,t.jsx)(r.RichText,{content:e.title,defaultTypographyVariant:"h1"})})},e.id))]}):null}])},348225,e=>{"use strict";var t=e.i(342433),i=e.i(363914),n=e.i(91285);let r=i.Root,s=({className:e,...r})=>(0,t.jsx)(i.Item,{className:(0,n.cn)("rounded-xl p-4",e),...r}),a=({className:e,children:r,...s})=>(0,t.jsx)(i.Header,{className:"flex",children:(0,t.jsx)(i.Trigger,{className:(0,n.cn)("group flex flex-1 transition-all",e),...s,children:r})}),o=({className:e,children:n,...r})=>(0,t.jsx)(i.Content,{className:"overflow-hidden pt-4 transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:(0,t.jsx)("div",{className:e,children:n})});e.s(["CardAccordion",()=>r,"CardAccordionContent",()=>o,"CardAccordionItem",()=>s,"CardAccordionTrigger",()=>a])}]);
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.