import{c as Va,r as x,j as o,a as Aa,u as Ae,A as Le,b as Ie,d as Be,e as Fe,C as Ri,S as Ke,f as Li,g as Ma,M as jt,P as Da,T as ss,h as qe,i as _e,k as Ge,l as ks,t as te,m as Tt,I as St,n as re,B as pe,o as Ye,L as Ea,p as Ra,q as La,s as Ia,v as Ba,w as Fa,x as ot,y as un,z as Oa,D as $a,F as Ka,E as dn,G as Ua,H as Wa,J as za,K as Ha,N as qa,O as _a,Q as Ga}from"./index-BQMU2Aro.js";import{H as Ya}from"./HeroDark-PJWzsaIl.js";import{S as Xa}from"./SheetSection-CwqaKUOq.js";import{W as Za}from"./wrench-BF6TpGXE.js";import{C as ns}from"./calendar-CDp1UgSY.js";import{E as Qa}from"./eye-D0Cs470V.js";import{M as Vs}from"./minus-DEwyNJBK.js";import{P as As}from"./plus-KckpZ9l6.js";import{u as Ja}from"./use-mobile-SgndwDvp.js";import{O as eo}from"./OperatorStory-DhVuwW1t.js";import{C as to}from"./chevron-up-C8XgX5Mc.js";import"./analytics-eVtumANw.js";import"./arrow-left-BA-wTW0W.js";import"./can-koseoglu-cendra-ceo-BeoWwWry.js";import"./ali-ozaltin-C0P_dp-c.js";/**
 * @license lucide-react v0.462.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ii=Va("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),Ms=x.createContext({});function Ds(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const so=typeof window<"u",Bi=so?x.useLayoutEffect:x.useEffect,Et=x.createContext(null);function Es(e,t){e.indexOf(t)===-1&&e.push(t)}function Pt(e,t){const s=e.indexOf(t);s>-1&&e.splice(s,1)}const ne=(e,t,s)=>s>t?t:s<e?e:s;let Rt=()=>{},ke=()=>{};const ae={},Fi=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Oi(e){return typeof e=="object"&&e!==null}const $i=e=>/^0[^.\s]+$/u.test(e);function Ki(e){let t;return()=>(t===void 0&&(t=e()),t)}const Y=e=>e,no=(e,t)=>s=>t(e(s)),st=(...e)=>e.reduce(no),Xe=(e,t,s)=>{const n=t-e;return n===0?1:(s-e)/n};class Rs{constructor(){this.subscriptions=[]}add(t){return Es(this.subscriptions,t),()=>Pt(this.subscriptions,t)}notify(t,s,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,s,n);else for(let a=0;a<i;a++){const r=this.subscriptions[a];r&&r(t,s,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const X=e=>e*1e3,G=e=>e/1e3;function Ui(e,t){return t?e*(1e3/t):0}const Wi=(e,t,s)=>(((1-3*s+3*t)*e+(3*s-6*t))*e+3*t)*e,io=1e-7,ro=12;function ao(e,t,s,n,i){let a,r,l=0;do r=t+(s-t)/2,a=Wi(r,n,i)-e,a>0?s=r:t=r;while(Math.abs(a)>io&&++l<ro);return r}function nt(e,t,s,n){if(e===t&&s===n)return Y;const i=a=>ao(a,0,1,e,s);return a=>a===0||a===1?a:Wi(i(a),t,n)}const zi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Hi=e=>t=>1-e(1-t),qi=nt(.33,1.53,.69,.99),Ls=Hi(qi),_i=zi(Ls),Gi=e=>(e*=2)<1?.5*Ls(e):.5*(2-Math.pow(2,-10*(e-1))),Is=e=>1-Math.sin(Math.acos(e)),Yi=Hi(Is),Xi=zi(Is),oo=nt(.42,0,1,1),lo=nt(0,0,.58,1),Zi=nt(.42,0,.58,1),co=e=>Array.isArray(e)&&typeof e[0]!="number",Qi=e=>Array.isArray(e)&&typeof e[0]=="number",hn={linear:Y,easeIn:oo,easeInOut:Zi,easeOut:lo,circIn:Is,circInOut:Xi,circOut:Yi,backIn:Ls,backInOut:_i,backOut:qi,anticipate:Gi},uo=e=>typeof e=="string",fn=e=>{if(Qi(e)){ke(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,s,n,i]=e;return nt(t,s,n,i)}else if(uo(e))return ke(hn[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),hn[e];return e},lt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],mn={value:null,addProjectionMetrics:null};function ho(e,t){let s=new Set,n=new Set,i=!1,a=!1;const r=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},c=0;function d(h){r.has(h)&&(u.schedule(h),e()),c++,h(l)}const u={schedule:(h,f=!1,m=!1)=>{const g=m&&i?s:n;return f&&r.add(h),g.has(h)||g.add(h),h},cancel:h=>{n.delete(h),r.delete(h)},process:h=>{if(l=h,i){a=!0;return}i=!0,[s,n]=[n,s],s.forEach(d),t&&mn.value&&mn.value.frameloop[t].push(c),c=0,s.clear(),i=!1,a&&(a=!1,u.process(h))}};return u}const fo=40;function Ji(e,t){let s=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>s=!0,r=lt.reduce((y,T)=>(y[T]=ho(a,t?T:void 0),y),{}),{setup:l,read:c,resolveKeyframes:d,preUpdate:u,update:h,preRender:f,render:m,postRender:p}=r,g=()=>{const y=ae.useManualTiming?i.timestamp:performance.now();s=!1,ae.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(y-i.timestamp,fo),1)),i.timestamp=y,i.isProcessing=!0,l.process(i),c.process(i),d.process(i),u.process(i),h.process(i),f.process(i),m.process(i),p.process(i),i.isProcessing=!1,s&&t&&(n=!1,e(g))},v=()=>{s=!0,n=!0,i.isProcessing||e(g)};return{schedule:lt.reduce((y,T)=>{const j=r[T];return y[T]=(N,V=!1,C=!1)=>(s||v(),j.schedule(N,V,C)),y},{}),cancel:y=>{for(let T=0;T<lt.length;T++)r[lt[T]].cancel(y)},state:i,steps:r}}const{schedule:D,cancel:ce,state:U,steps:Ft}=Ji(typeof requestAnimationFrame<"u"?requestAnimationFrame:Y,!0);let pt;function mo(){pt=void 0}const H={now:()=>(pt===void 0&&H.set(U.isProcessing||ae.useManualTiming?U.timestamp:performance.now()),pt),set:e=>{pt=e,queueMicrotask(mo)}},er=e=>t=>typeof t=="string"&&t.startsWith(e),tr=er("--"),po=er("var(--"),Bs=e=>po(e)?xo.test(e.split("/*")[0].trim()):!1,xo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function pn(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Me={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ze={...Me,transform:e=>ne(0,1,e)},ct={...Me,default:1},Ue=e=>Math.round(e*1e5)/1e5,Fs=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function go(e){return e==null}const yo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Os=(e,t)=>s=>!!(typeof s=="string"&&yo.test(s)&&s.startsWith(e)||t&&!go(s)&&Object.prototype.hasOwnProperty.call(s,t)),sr=(e,t,s)=>n=>{if(typeof n!="string")return n;const[i,a,r,l]=n.match(Fs);return{[e]:parseFloat(i),[t]:parseFloat(a),[s]:parseFloat(r),alpha:l!==void 0?parseFloat(l):1}},vo=e=>ne(0,255,e),Ot={...Me,transform:e=>Math.round(vo(e))},xe={test:Os("rgb","red"),parse:sr("red","green","blue"),transform:({red:e,green:t,blue:s,alpha:n=1})=>"rgba("+Ot.transform(e)+", "+Ot.transform(t)+", "+Ot.transform(s)+", "+Ue(Ze.transform(n))+")"};function bo(e){let t="",s="",n="",i="";return e.length>5?(t=e.substring(1,3),s=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),s=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,s+=s,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(s,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const is={test:Os("#"),parse:bo,transform:xe.transform},it=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),oe=it("deg"),se=it("%"),P=it("px"),wo=it("vh"),jo=it("vw"),xn={...se,parse:e=>se.parse(e)/100,transform:e=>se.transform(e*100)},je={test:Os("hsl","hue"),parse:sr("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:s,alpha:n=1})=>"hsla("+Math.round(e)+", "+se.transform(Ue(t))+", "+se.transform(Ue(s))+", "+Ue(Ze.transform(n))+")"},O={test:e=>xe.test(e)||is.test(e)||je.test(e),parse:e=>xe.test(e)?xe.parse(e):je.test(e)?je.parse(e):is.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?xe.transform(e):je.transform(e),getAnimatableNone:e=>{const t=O.parse(e);return t.alpha=0,O.transform(t)}},To=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function So(e){return isNaN(e)&&typeof e=="string"&&(e.match(Fs)?.length||0)+(e.match(To)?.length||0)>0}const nr="number",ir="color",Po="var",Co="var(",gn="${}",No=/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 Qe(e){const t=e.toString(),s=[],n={color:[],number:[],var:[]},i=[];let a=0;const l=t.replace(No,c=>(O.test(c)?(n.color.push(a),i.push(ir),s.push(O.parse(c))):c.startsWith(Co)?(n.var.push(a),i.push(Po),s.push(c)):(n.number.push(a),i.push(nr),s.push(parseFloat(c))),++a,gn)).split(gn);return{values:s,split:l,indexes:n,types:i}}function rr(e){return Qe(e).values}function ar(e){const{split:t,types:s}=Qe(e),n=t.length;return i=>{let a="";for(let r=0;r<n;r++)if(a+=t[r],i[r]!==void 0){const l=s[r];l===nr?a+=Ue(i[r]):l===ir?a+=O.transform(i[r]):a+=i[r]}return a}}const ko=e=>typeof e=="number"?0:O.test(e)?O.getAnimatableNone(e):e;function Vo(e){const t=rr(e);return ar(e)(t.map(ko))}const J={test:So,parse:rr,createTransformer:ar,getAnimatableNone:Vo};function $t(e,t,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+(t-e)*6*s:s<1/2?t:s<2/3?e+(t-e)*(2/3-s)*6:e}function Ao({hue:e,saturation:t,lightness:s,alpha:n}){e/=360,t/=100,s/=100;let i=0,a=0,r=0;if(!t)i=a=r=s;else{const l=s<.5?s*(1+t):s+t-s*t,c=2*s-l;i=$t(c,l,e+1/3),a=$t(c,l,e),r=$t(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(r*255),alpha:n}}function Ct(e,t){return s=>s>0?t:e}const I=(e,t,s)=>e+(t-e)*s,Kt=(e,t,s)=>{const n=e*e,i=s*(t*t-n)+n;return i<0?0:Math.sqrt(i)},Mo=[is,xe,je],Do=e=>Mo.find(t=>t.test(e));function yn(e){const t=Do(e);if(Rt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let s=t.parse(e);return t===je&&(s=Ao(s)),s}const vn=(e,t)=>{const s=yn(e),n=yn(t);if(!s||!n)return Ct(e,t);const i={...s};return a=>(i.red=Kt(s.red,n.red,a),i.green=Kt(s.green,n.green,a),i.blue=Kt(s.blue,n.blue,a),i.alpha=I(s.alpha,n.alpha,a),xe.transform(i))},rs=new Set(["none","hidden"]);function Eo(e,t){return rs.has(e)?s=>s<=0?e:t:s=>s>=1?t:e}function Ro(e,t){return s=>I(e,t,s)}function $s(e){return typeof e=="number"?Ro:typeof e=="string"?Bs(e)?Ct:O.test(e)?vn:Bo:Array.isArray(e)?or:typeof e=="object"?O.test(e)?vn:Lo:Ct}function or(e,t){const s=[...e],n=s.length,i=e.map((a,r)=>$s(a)(a,t[r]));return a=>{for(let r=0;r<n;r++)s[r]=i[r](a);return s}}function Lo(e,t){const s={...e,...t},n={};for(const i in s)e[i]!==void 0&&t[i]!==void 0&&(n[i]=$s(e[i])(e[i],t[i]));return i=>{for(const a in n)s[a]=n[a](i);return s}}function Io(e,t){const s=[],n={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],r=e.indexes[a][n[a]],l=e.values[r]??0;s[i]=l,n[a]++}return s}const Bo=(e,t)=>{const s=J.createTransformer(t),n=Qe(e),i=Qe(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?rs.has(e)&&!i.values.length||rs.has(t)&&!n.values.length?Eo(e,t):st(or(Io(n,i),i.values),s):(Rt(!0,`Complex values '${e}' and '${t}' 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"),Ct(e,t))};function lr(e,t,s){return typeof e=="number"&&typeof t=="number"&&typeof s=="number"?I(e,t,s):$s(e)(e,t)}const Fo=e=>{const t=({timestamp:s})=>e(s);return{start:(s=!0)=>D.update(t,s),stop:()=>ce(t),now:()=>U.isProcessing?U.timestamp:H.now()}},cr=(e,t,s=10)=>{let n="";const i=Math.max(Math.round(t/s),2);for(let a=0;a<i;a++)n+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},Nt=2e4;function Ks(e){let t=0;const s=50;let n=e.next(t);for(;!n.done&&t<Nt;)t+=s,n=e.next(t);return t>=Nt?1/0:t}function Oo(e,t=100,s){const n=s({...e,keyframes:[0,t]}),i=Math.min(Ks(n),Nt);return{type:"keyframes",ease:a=>n.next(i*a).value/t,duration:G(i)}}const $o=5;function ur(e,t,s){const n=Math.max(t-$o,0);return Ui(s-e(n),t-n)}const L={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ut=.001;function Ko({duration:e=L.duration,bounce:t=L.bounce,velocity:s=L.velocity,mass:n=L.mass}){let i,a;Rt(e<=X(L.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-t;r=ne(L.minDamping,L.maxDamping,r),e=ne(L.minDuration,L.maxDuration,G(e)),r<1?(i=d=>{const u=d*r,h=u*e,f=u-s,m=as(d,r),p=Math.exp(-h);return Ut-f/m*p},a=d=>{const h=d*r*e,f=h*s+s,m=Math.pow(r,2)*Math.pow(d,2)*e,p=Math.exp(-h),g=as(Math.pow(d,2),r);return(-i(d)+Ut>0?-1:1)*((f-m)*p)/g}):(i=d=>{const u=Math.exp(-d*e),h=(d-s)*e+1;return-Ut+u*h},a=d=>{const u=Math.exp(-d*e),h=(s-d)*(e*e);return u*h});const l=5/e,c=Wo(i,a,l);if(e=X(e),isNaN(c))return{stiffness:L.stiffness,damping:L.damping,duration:e};{const d=Math.pow(c,2)*n;return{stiffness:d,damping:r*2*Math.sqrt(n*d),duration:e}}}const Uo=12;function Wo(e,t,s){let n=s;for(let i=1;i<Uo;i++)n=n-e(n)/t(n);return n}function as(e,t){return e*Math.sqrt(1-t*t)}const zo=["duration","bounce"],Ho=["stiffness","damping","mass"];function bn(e,t){return t.some(s=>e[s]!==void 0)}function qo(e){let t={velocity:L.velocity,stiffness:L.stiffness,damping:L.damping,mass:L.mass,isResolvedFromDuration:!1,...e};if(!bn(e,Ho)&&bn(e,zo))if(t.velocity=0,e.visualDuration){const s=e.visualDuration,n=2*Math.PI/(s*1.2),i=n*n,a=2*ne(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:L.mass,stiffness:i,damping:a}}else{const s=Ko({...e,velocity:0});t={...t,...s,mass:L.mass},t.isResolvedFromDuration=!0}return t}function kt(e=L.visualDuration,t=L.bounce){const s=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:i}=s;const a=s.keyframes[0],r=s.keyframes[s.keyframes.length-1],l={done:!1,value:a},{stiffness:c,damping:d,mass:u,duration:h,velocity:f,isResolvedFromDuration:m}=qo({...s,velocity:-G(s.velocity||0)}),p=f||0,g=d/(2*Math.sqrt(c*u)),v=r-a,w=G(Math.sqrt(c/u)),b=Math.abs(v)<5;n||(n=b?L.restSpeed.granular:L.restSpeed.default),i||(i=b?L.restDelta.granular:L.restDelta.default);let y;if(g<1){const j=as(w,g);y=N=>{const V=Math.exp(-g*w*N);return r-V*((p+g*w*v)/j*Math.sin(j*N)+v*Math.cos(j*N))}}else if(g===1)y=j=>r-Math.exp(-w*j)*(v+(p+w*v)*j);else{const j=w*Math.sqrt(g*g-1);y=N=>{const V=Math.exp(-g*w*N),C=Math.min(j*N,300);return r-V*((p+g*w*v)*Math.sinh(C)+j*v*Math.cosh(C))/j}}const T={calculatedDuration:m&&h||null,next:j=>{const N=y(j);if(m)l.done=j>=h;else{let V=j===0?p:0;g<1&&(V=j===0?X(p):ur(y,j,N));const C=Math.abs(V)<=n,k=Math.abs(r-N)<=i;l.done=C&&k}return l.value=l.done?r:N,l},toString:()=>{const j=Math.min(Ks(T),Nt),N=cr(V=>T.next(j*V).value,j,30);return j+"ms "+N},toTransition:()=>{}};return T}kt.applyToOptions=e=>{const t=Oo(e,100,kt);return e.ease=t.ease,e.duration=X(t.duration),e.type="keyframes",e};function os({keyframes:e,velocity:t=0,power:s=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:r,min:l,max:c,restDelta:d=.5,restSpeed:u}){const h=e[0],f={done:!1,value:h},m=C=>l!==void 0&&C<l||c!==void 0&&C>c,p=C=>l===void 0?c:c===void 0||Math.abs(l-C)<Math.abs(c-C)?l:c;let g=s*t;const v=h+g,w=r===void 0?v:r(v);w!==v&&(g=w-h);const b=C=>-g*Math.exp(-C/n),y=C=>w+b(C),T=C=>{const k=b(C),E=y(C);f.done=Math.abs(k)<=d,f.value=f.done?w:E};let j,N;const V=C=>{m(f.value)&&(j=C,N=kt({keyframes:[f.value,p(f.value)],velocity:ur(y,C,f.value),damping:i,stiffness:a,restDelta:d,restSpeed:u}))};return V(0),{calculatedDuration:null,next:C=>{let k=!1;return!N&&j===void 0&&(k=!0,T(C),V(C)),j!==void 0&&C>=j?N.next(C-j):(!k&&T(C),f)}}}function _o(e,t,s){const n=[],i=s||ae.mix||lr,a=e.length-1;for(let r=0;r<a;r++){let l=i(e[r],e[r+1]);if(t){const c=Array.isArray(t)?t[r]||Y:t;l=st(c,l)}n.push(l)}return n}function Go(e,t,{clamp:s=!0,ease:n,mixer:i}={}){const a=e.length;if(ke(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const r=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=_o(t,n,i),c=l.length,d=u=>{if(r&&u<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(u<e[h+1]);h++);const f=Xe(e[h],e[h+1],u);return l[h](f)};return s?u=>d(ne(e[0],e[a-1],u)):d}function Yo(e,t){const s=e[e.length-1];for(let n=1;n<=t;n++){const i=Xe(0,t,n);e.push(I(s,1,i))}}function Xo(e){const t=[0];return Yo(t,e.length-1),t}function Zo(e,t){return e.map(s=>s*t)}function Qo(e,t){return e.map(()=>t||Zi).splice(0,e.length-1)}function We({duration:e=300,keyframes:t,times:s,ease:n="easeInOut"}){const i=co(n)?n.map(fn):fn(n),a={done:!1,value:t[0]},r=Zo(s&&s.length===t.length?s:Xo(t),e),l=Go(r,t,{ease:Array.isArray(i)?i:Qo(t,i)});return{calculatedDuration:e,next:c=>(a.value=l(c),a.done=c>=e,a)}}const Jo=e=>e!==null;function Us(e,{repeat:t,repeatType:s="loop"},n,i=1){const a=e.filter(Jo),l=i<0||t&&s!=="loop"&&t%2===1?0:a.length-1;return!l||n===void 0?a[l]:n}const el={decay:os,inertia:os,tween:We,keyframes:We,spring:kt};function dr(e){typeof e.type=="string"&&(e.type=el[e.type])}class Ws{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,s){return this.finished.then(t,s)}}const tl=e=>e/100;class zs extends Ws{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==H.now()&&this.tick(H.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;dr(t);const{type:s=We,repeat:n=0,repeatDelay:i=0,repeatType:a,velocity:r=0}=t;let{keyframes:l}=t;const c=s||We;c!==We&&typeof l[0]!="number"&&(this.mixKeyframes=st(tl,lr(l[0],l[1])),l=[0,100]);const d=c({...t,keyframes:l});a==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-r})),d.calculatedDuration===null&&(d.calculatedDuration=Ks(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=d}updateTime(t){const s=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(t,s=!1){const{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:r,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);const{delay:d=0,keyframes:u,repeat:h,repeatType:f,repeatDelay:m,type:p,onUpdate:g,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),s?this.currentTime=t:this.updateTime(t);const w=this.currentTime-d*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?w<0:w>i;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let y=this.currentTime,T=n;if(h){const C=Math.min(this.currentTime,i)/l;let k=Math.floor(C),E=C%1;!E&&C>=1&&(E=1),E===1&&k--,k=Math.min(k,h+1),!!(k%2)&&(f==="reverse"?(E=1-E,m&&(E-=m/l)):f==="mirror"&&(T=r)),y=ne(0,1,E)*l}const j=b?{done:!1,value:u[0]}:T.next(y);a&&(j.value=a(j.value));let{done:N}=j;!b&&c!==null&&(N=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return V&&p!==os&&(j.value=Us(u,this.options,v,this.speed)),g&&g(j.value),V&&this.finish(),j}then(t,s){return this.finished.then(t,s)}get duration(){return G(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+G(t)}get time(){return G(this.currentTime)}set time(t){t=X(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(H.now());const s=this.playbackSpeed!==t;this.playbackSpeed=t,s&&(this.time=G(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Fo,startTime:s}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=s??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(H.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&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}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function sl(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ge=e=>e*180/Math.PI,ls=e=>{const t=ge(Math.atan2(e[1],e[0]));return cs(t)},nl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ls,rotateZ:ls,skewX:e=>ge(Math.atan(e[1])),skewY:e=>ge(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},cs=e=>(e=e%360,e<0&&(e+=360),e),wn=ls,jn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Tn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),il={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:jn,scaleY:Tn,scale:e=>(jn(e)+Tn(e))/2,rotateX:e=>cs(ge(Math.atan2(e[6],e[5]))),rotateY:e=>cs(ge(Math.atan2(-e[2],e[0]))),rotateZ:wn,rotate:wn,skewX:e=>ge(Math.atan(e[4])),skewY:e=>ge(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function us(e){return e.includes("scale")?1:0}function ds(e,t){if(!e||e==="none")return us(t);const s=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,i;if(s)n=il,i=s;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=nl,i=l}if(!i)return us(t);const a=n[t],r=i[1].split(",").map(al);return typeof a=="function"?a(r):r[a]}const rl=(e,t)=>{const{transform:s="none"}=getComputedStyle(e);return ds(s,t)};function al(e){return parseFloat(e.trim())}const De=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ee=new Set(De),Sn=e=>e===Me||e===P,ol=new Set(["x","y","z"]),ll=De.filter(e=>!ol.has(e));function cl(e){const t=[];return ll.forEach(s=>{const n=e.getValue(s);n!==void 0&&(t.push([s,n.get()]),n.set(s.startsWith("scale")?1:0))}),t}const le={width:({x:e},{paddingLeft:t="0",paddingRight:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),height:({y:e},{paddingTop:t="0",paddingBottom:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),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})=>ds(t,"x"),y:(e,{transform:t})=>ds(t,"y")};le.translateX=le.x;le.translateY=le.y;const ye=new Set;let hs=!1,fs=!1,ms=!1;function hr(){if(fs){const e=Array.from(ye).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),s=new Map;t.forEach(n=>{const i=cl(n);i.length&&(s.set(n,i),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const i=s.get(n);i&&i.forEach(([a,r])=>{n.getValue(a)?.set(r)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}fs=!1,hs=!1,ye.forEach(e=>e.complete(ms)),ye.clear()}function fr(){ye.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(fs=!0)})}function ul(){ms=!0,fr(),hr(),ms=!1}class Hs{constructor(t,s,n,i,a,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=s,this.name=n,this.motionValue=i,this.element=a,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(ye.add(this),hs||(hs=!0,D.read(fr),D.resolveKeyframes(hr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:s,element:n,motionValue:i}=this;if(t[0]===null){const a=i?.get(),r=t[t.length-1];if(a!==void 0)t[0]=a;else if(n&&s){const l=n.readValue(s,r);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=r),i&&a===void 0&&i.set(t[0])}sl(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ye.delete(this)}cancel(){this.state==="scheduled"&&(ye.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const dl=e=>e.startsWith("--");function hl(e,t,s){dl(t)?e.style.setProperty(t,s):e.style[t]=s}const fl={};function mr(e,t){const s=Ki(e);return()=>fl[t]??s()}const ml=mr(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),pr=mr(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Oe=([e,t,s,n])=>`cubic-bezier(${e}, ${t}, ${s}, ${n})`,Pn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Oe([0,.65,.55,1]),circOut:Oe([.55,0,1,.45]),backIn:Oe([.31,.01,.66,-.59]),backOut:Oe([.33,1.53,.69,.99])};function xr(e,t){if(e)return typeof e=="function"?pr()?cr(e,t):"ease-out":Qi(e)?Oe(e):Array.isArray(e)?e.map(s=>xr(s,t)||Pn.easeOut):Pn[e]}function pl(e,t,s,{delay:n=0,duration:i=300,repeat:a=0,repeatType:r="loop",ease:l="easeOut",times:c}={},d=void 0){const u={[t]:s};c&&(u.offset=c);const h=xr(l,i);Array.isArray(h)&&(u.easing=h);const f={delay:n,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:a+1,direction:r==="reverse"?"alternate":"normal"};return d&&(f.pseudoElement=d),e.animate(u,f)}function gr(e){return typeof e=="function"&&"applyToOptions"in e}function xl({type:e,...t}){return gr(e)&&pr()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class yr extends Ws{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:s,name:n,keyframes:i,pseudoElement:a,allowFlatten:r=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!a,this.allowFlatten=r,this.options=t,ke(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=xl(t);this.animation=pl(s,n,i,d,a),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const u=Us(i,this.options,l,this.speed);this.updateMotionValue&&this.updateMotionValue(u),hl(s,n,u),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return G(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+G(t)}get time(){return G(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=X(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&ml()?(this.animation.timeline=t,Y):s(this)}}const vr={anticipate:Gi,backInOut:_i,circInOut:Xi};function gl(e){return e in vr}function yl(e){typeof e.ease=="string"&&gl(e.ease)&&(e.ease=vr[e.ease])}const Wt=10;class vl extends yr{constructor(t){yl(t),dr(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:s,onUpdate:n,onComplete:i,element:a,...r}=this.options;if(!s)return;if(t!==void 0){s.set(t);return}const l=new zs({...r,autoplay:!1}),c=Math.max(Wt,H.now()-this.startTime),d=ne(0,Wt,c-Wt);s.setWithVelocity(l.sample(Math.max(0,c-d)).value,l.sample(c).value,d),l.stop()}}const Cn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(J.test(e)||e==="0")&&!e.startsWith("url("));function bl(e){const t=e[0];if(e.length===1)return!0;for(let s=0;s<e.length;s++)if(e[s]!==t)return!0}function wl(e,t,s,n){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],r=Cn(i,t),l=Cn(a,t);return Rt(r===l,`You are trying to animate ${t} from "${i}" to "${a}". "${r?a:i}" is not an animatable value.`,"value-not-animatable"),!r||!l?!1:bl(e)||(s==="spring"||gr(s))&&n}function ps(e){e.duration=0,e.type="keyframes"}const jl=new Set(["opacity","clipPath","filter","transform"]),Tl=Ki(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Sl(e){const{motionValue:t,name:s,repeatDelay:n,repeatType:i,damping:a,type:r}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return Tl()&&s&&jl.has(s)&&(s!=="transform"||!d)&&!c&&!n&&i!=="mirror"&&a!==0&&r!=="inertia"}const Pl=40;class Cl extends Ws{constructor({autoplay:t=!0,delay:s=0,type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:r="loop",keyframes:l,name:c,motionValue:d,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=H.now();const f={autoplay:t,delay:s,type:n,repeat:i,repeatDelay:a,repeatType:r,name:c,motionValue:d,element:u,...h},m=u?.KeyframeResolver||Hs;this.keyframeResolver=new m(l,(p,g,v)=>this.onKeyframesResolved(p,g,f,!v),c,d,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,s,n,i){this.keyframeResolver=void 0;const{name:a,type:r,velocity:l,delay:c,isHandoff:d,onUpdate:u}=n;this.resolvedAt=H.now(),wl(t,a,r,l)||((ae.instantAnimations||!c)&&u?.(Us(t,n,s)),t[0]=t[t.length-1],ps(n),n.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Pl?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...n,keyframes:t},m=!d&&Sl(f),p=f.motionValue?.owner?.current,g=m?new vl({...f,element:p}):new zs(f);g.finished.then(()=>{this.notifyFinished()}).catch(Y),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,s){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ul()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function br(e,t,s,n=0,i=1){const a=Array.from(e).sort((d,u)=>d.sortNodePosition(u)).indexOf(t),r=e.size,l=(r-1)*n;return typeof s=="function"?s(a,r):i===1?a*n:l-a*n}const Nl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function kl(e){const t=Nl.exec(e);if(!t)return[,];const[,s,n,i]=t;return[`--${s??n}`,i]}const Vl=4;function wr(e,t,s=1){ke(s<=Vl,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,i]=kl(e);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const r=a.trim();return Fi(r)?parseFloat(r):r}return Bs(i)?wr(i,t,s+1):i}const Al={type:"spring",stiffness:500,damping:25,restSpeed:10},Ml=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Dl={type:"keyframes",duration:.8},El={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Rl=(e,{keyframes:t})=>t.length>2?Dl:Ee.has(e)?e.startsWith("scale")?Ml(t[1]):Al:El,Ll=e=>e!==null;function Il(e,{repeat:t,repeatType:s="loop"},n){const i=e.filter(Ll),a=t&&s!=="loop"&&t%2===1?0:i.length-1;return!a||n===void 0?i[a]:n}function jr(e,t){if(e?.inherit&&t){const{inherit:s,...n}=e;return{...t,...n}}return e}function qs(e,t){const s=e?.[t]??e?.default??e;return s!==e?jr(s,e):s}function Bl({when:e,delay:t,delayChildren:s,staggerChildren:n,staggerDirection:i,repeat:a,repeatType:r,repeatDelay:l,from:c,elapsed:d,...u}){return!!Object.keys(u).length}const _s=(e,t,s,n={},i,a)=>r=>{const l=qs(n,e)||{},c=l.delay||n.delay||0;let{elapsed:d=0}=n;d=d-X(c);const u={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:f=>{t.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{r(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:a?void 0:i};Bl(l)||Object.assign(u,Rl(e,u)),u.duration&&(u.duration=X(u.duration)),u.repeatDelay&&(u.repeatDelay=X(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ps(u),u.delay===0&&(h=!0)),(ae.instantAnimations||ae.skipAnimations||i?.shouldSkipAnimations)&&(h=!0,ps(u),u.delay=0),u.allowFlatten=!l.type&&!l.ease,h&&!a&&t.get()!==void 0){const f=Il(u.keyframes,l);if(f!==void 0){D.update(()=>{u.onUpdate(f),u.onComplete()});return}}return l.isSync?new zs(u):new Cl(u)};function Nn(e){const t=[{},{}];return e?.values.forEach((s,n)=>{t[0][n]=s.get(),t[1][n]=s.getVelocity()}),t}function Gs(e,t,s,n){if(typeof t=="function"){const[i,a]=Nn(n);t=t(s!==void 0?s:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=Nn(n);t=t(s!==void 0?s:e.custom,i,a)}return t}function Ne(e,t,s){const n=e.getProps();return Gs(n,t,s!==void 0?s:n.custom,e)}const Tr=new Set(["width","height","top","left","right","bottom",...De]),kn=30,Fl=e=>!isNaN(parseFloat(e));class Ol{constructor(t,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const i=H.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=s.owner}setCurrent(t){this.current=t,this.updatedAt=H.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Fl(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,s){this.events[t]||(this.events[t]=new Rs);const n=this.events[t].add(s);return t==="change"?()=>{n(),D.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,s){this.passiveEffect=t,this.stopPassiveEffect=s}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,s,n){this.set(s),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,s=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=H.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>kn)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,kn);return Ui(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(t){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=t(s),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 Ve(e,t){return new Ol(e,t)}const xs=e=>Array.isArray(e);function $l(e,t,s){e.hasValue(t)?e.getValue(t).set(s):e.addValue(t,Ve(s))}function Kl(e){return xs(e)?e[e.length-1]||0:e}function Ul(e,t){const s=Ne(e,t);let{transitionEnd:n={},transition:i={},...a}=s||{};a={...a,...n};for(const r in a){const l=Kl(a[r]);$l(e,r,l)}}const W=e=>!!(e&&e.getVelocity);function Wl(e){return!!(W(e)&&e.add)}function gs(e,t){const s=e.getValue("willChange");if(Wl(s))return s.add(t);if(!s&&ae.WillChange){const n=new ae.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function Ys(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const zl="framerAppearId",Sr="data-"+Ys(zl);function Pr(e){return e.props[Sr]}function Hl({protectedKeys:e,needsAnimating:t},s){const n=e.hasOwnProperty(s)&&t[s]!==!0;return t[s]=!1,n}function Cr(e,t,{delay:s=0,transitionOverride:n,type:i}={}){let{transition:a,transitionEnd:r,...l}=t;const c=e.getDefaultTransition();a=a?jr(a,c):c;const d=a?.reduceMotion;n&&(a=n);const u=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const m=e.getValue(f,e.latestValues[f]??null),p=l[f];if(p===void 0||h&&Hl(h,f))continue;const g={delay:s,...qs(a||{},f)},v=m.get();if(v!==void 0&&!m.isAnimating&&!Array.isArray(p)&&p===v&&!g.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const T=Pr(e);if(T){const j=window.MotionHandoffAnimation(T,f,D);j!==null&&(g.startTime=j,w=!0)}}gs(e,f);const b=d??e.shouldReduceMotion;m.start(_s(f,m,p,b&&Tr.has(f)?{type:!1}:g,e,w));const y=m.animation;y&&u.push(y)}if(r){const f=()=>D.update(()=>{r&&Ul(e,r)});u.length?Promise.all(u).then(f):f()}return u}function ys(e,t,s={}){const n=Ne(e,t,s.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=n||{};s.transitionOverride&&(i=s.transitionOverride);const a=n?()=>Promise.all(Cr(e,n,s)):()=>Promise.resolve(),r=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:h}=i;return ql(e,t,c,d,u,h,s)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,d]=l==="beforeChildren"?[a,r]:[r,a];return c().then(()=>d())}else return Promise.all([a(),r(s.delay)])}function ql(e,t,s=0,n=0,i=0,a=1,r){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(ys(c,t,{...r,delay:s+(typeof n=="function"?0:n)+br(e.variantChildren,c,n,i,a)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function _l(e,t,s={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(a=>ys(e,a,s));n=Promise.all(i)}else if(typeof t=="string")n=ys(e,t,s);else{const i=typeof t=="function"?Ne(e,t,s.custom):t;n=Promise.all(Cr(e,i,s))}return n.then(()=>{e.notify("AnimationComplete",t)})}const Gl={test:e=>e==="auto",parse:e=>e},Nr=e=>t=>t.test(e),kr=[Me,P,se,oe,jo,wo,Gl],Vn=e=>kr.find(Nr(e));function Yl(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||$i(e):!0}const Xl=new Set(["brightness","contrast","saturate","opacity"]);function Zl(e){const[t,s]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=s.match(Fs)||[];if(!n)return e;const i=s.replace(n,"");let a=Xl.has(t)?1:0;return n!==s&&(a*=100),t+"("+a+i+")"}const Ql=/\b([a-z-]*)\(.*?\)/gu,vs={...J,getAnimatableNone:e=>{const t=e.match(Ql);return t?t.map(Zl).join(" "):e}},bs={...J,getAnimatableNone:e=>{const t=J.parse(e);return J.createTransformer(e)(t.map(n=>typeof n=="number"?0:typeof n=="object"?{...n,alpha:1}:n))}},An={...Me,transform:Math.round},Jl={rotate:oe,rotateX:oe,rotateY:oe,rotateZ:oe,scale:ct,scaleX:ct,scaleY:ct,scaleZ:ct,skew:oe,skewX:oe,skewY:oe,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:Ze,originX:xn,originY:xn,originZ:P},Xs={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,inset:P,insetBlock:P,insetBlockStart:P,insetBlockEnd:P,insetInline:P,insetInlineStart:P,insetInlineEnd:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,paddingBlock:P,paddingBlockStart:P,paddingBlockEnd:P,paddingInline:P,paddingInlineStart:P,paddingInlineEnd:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,marginBlock:P,marginBlockStart:P,marginBlockEnd:P,marginInline:P,marginInlineStart:P,marginInlineEnd:P,fontSize:P,backgroundPositionX:P,backgroundPositionY:P,...Jl,zIndex:An,fillOpacity:Ze,strokeOpacity:Ze,numOctaves:An},ec={...Xs,color:O,backgroundColor:O,outlineColor:O,fill:O,stroke:O,borderColor:O,borderTopColor:O,borderRightColor:O,borderBottomColor:O,borderLeftColor:O,filter:vs,WebkitFilter:vs,mask:bs,WebkitMask:bs},Vr=e=>ec[e],tc=new Set([vs,bs]);function Ar(e,t){let s=Vr(e);return tc.has(s)||(s=J),s.getAnimatableNone?s.getAnimatableNone(t):void 0}const sc=new Set(["auto","none","0"]);function nc(e,t,s){let n=0,i;for(;n<e.length&&!i;){const a=e[n];typeof a=="string"&&!sc.has(a)&&Qe(a).values.length&&(i=e[n]),n++}if(i&&s)for(const a of t)e[a]=Ar(s,i)}class ic extends Hs{constructor(t,s,n,i,a){super(t,s,n,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:s,name:n}=this;if(!s||!s.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let h=t[u];if(typeof h=="string"&&(h=h.trim(),Bs(h))){const f=wr(h,s.current);f!==void 0&&(t[u]=f),u===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Tr.has(n)||t.length!==2)return;const[i,a]=t,r=Vn(i),l=Vn(a),c=pn(i),d=pn(a);if(c!==d&&le[n]){this.needsMeasurement=!0;return}if(r!==l)if(Sn(r)&&Sn(l))for(let u=0;u<t.length;u++){const h=t[u];typeof h=="string"&&(t[u]=parseFloat(h))}else le[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:s}=this,n=[];for(let i=0;i<t.length;i++)(t[i]===null||Yl(t[i]))&&n.push(i);n.length&&nc(t,n,s)}measureInitialState(){const{element:t,unresolvedKeyframes:s,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=le[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s[0]=this.measuredOrigin;const i=s[s.length-1];i!==void 0&&t.getValue(n,i).jump(i,!1)}measureEndState(){const{element:t,name:s,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const i=t.getValue(s);i&&i.jump(this.measuredOrigin,!1);const a=n.length-1,r=n[a];n[a]=le[s](t.measureViewportBox(),window.getComputedStyle(t.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const rc=new Set(["opacity","clipPath","filter","transform"]);function Mr(e,t,s){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(n=>n!=null)}const Dr=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ws(e){return Oi(e)&&"offsetHeight"in e}const{schedule:Zs,cancel:kh}=Ji(queueMicrotask,!1),Q={x:!1,y:!1};function Er(){return Q.x||Q.y}function ac(e){return e==="x"||e==="y"?Q[e]?null:(Q[e]=!0,()=>{Q[e]=!1}):Q.x||Q.y?null:(Q.x=Q.y=!0,()=>{Q.x=Q.y=!1})}function Rr(e,t){const s=Mr(e),n=new AbortController,i={passive:!0,...t,signal:n.signal};return[s,i,()=>n.abort()]}function oc(e){return!(e.pointerType==="touch"||Er())}function lc(e,t,s={}){const[n,i,a]=Rr(e,s);return n.forEach(r=>{let l=!1,c=!1,d;const u=()=>{r.removeEventListener("pointerleave",p)},h=v=>{d&&(d(v),d=void 0),u()},f=v=>{l=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,h(v))},m=()=>{l=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},p=v=>{if(v.pointerType!=="touch"){if(l){c=!0;return}h(v)}},g=v=>{if(!oc(v))return;c=!1;const w=t(r,v);typeof w=="function"&&(d=w,r.addEventListener("pointerleave",p,i))};r.addEventListener("pointerenter",g,i),r.addEventListener("pointerdown",m,i)}),a}const Lr=(e,t)=>t?e===t?!0:Lr(e,t.parentElement):!1,Qs=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,cc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function uc(e){return cc.has(e.tagName)||e.isContentEditable===!0}const dc=new Set(["INPUT","SELECT","TEXTAREA"]);function hc(e){return dc.has(e.tagName)||e.isContentEditable===!0}const xt=new WeakSet;function Mn(e){return t=>{t.key==="Enter"&&e(t)}}function zt(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const fc=(e,t)=>{const s=e.currentTarget;if(!s)return;const n=Mn(()=>{if(xt.has(s))return;zt(s,"down");const i=Mn(()=>{zt(s,"up")}),a=()=>zt(s,"cancel");s.addEventListener("keyup",i,t),s.addEventListener("blur",a,t)});s.addEventListener("keydown",n,t),s.addEventListener("blur",()=>s.removeEventListener("keydown",n),t)};function Dn(e){return Qs(e)&&!Er()}const En=new WeakSet;function mc(e,t,s={}){const[n,i,a]=Rr(e,s),r=l=>{const c=l.currentTarget;if(!Dn(l)||En.has(l))return;xt.add(c),s.stopPropagation&&En.add(l);const d=t(c,l),u=(m,p)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),xt.has(c)&&xt.delete(c),Dn(m)&&typeof d=="function"&&d(m,{success:p})},h=m=>{u(m,c===window||c===document||s.useGlobalTarget||Lr(c,m.target))},f=m=>{u(m,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return n.forEach(l=>{(s.useGlobalTarget?window:l).addEventListener("pointerdown",r,i),ws(l)&&(l.addEventListener("focus",d=>fc(d,i)),!uc(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),a}function Js(e){return Oi(e)&&"ownerSVGElement"in e}const gt=new WeakMap;let yt;const Ir=(e,t,s)=>(n,i)=>i&&i[0]?i[0][e+"Size"]:Js(n)&&"getBBox"in n?n.getBBox()[t]:n[s],pc=Ir("inline","width","offsetWidth"),xc=Ir("block","height","offsetHeight");function gc({target:e,borderBoxSize:t}){gt.get(e)?.forEach(s=>{s(e,{get width(){return pc(e,t)},get height(){return xc(e,t)}})})}function yc(e){e.forEach(gc)}function vc(){typeof ResizeObserver>"u"||(yt=new ResizeObserver(yc))}function bc(e,t){yt||vc();const s=Mr(e);return s.forEach(n=>{let i=gt.get(n);i||(i=new Set,gt.set(n,i)),i.add(t),yt?.observe(n)}),()=>{s.forEach(n=>{const i=gt.get(n);i?.delete(t),i?.size||yt?.unobserve(n)})}}const vt=new Set;let Te;function wc(){Te=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};vt.forEach(t=>t(e))},window.addEventListener("resize",Te)}function jc(e){return vt.add(e),Te||wc(),()=>{vt.delete(e),!vt.size&&typeof Te=="function"&&(window.removeEventListener("resize",Te),Te=void 0)}}function Rn(e,t){return typeof e=="function"?jc(e):bc(e,t)}function Tc(e){return Js(e)&&e.tagName==="svg"}const Sc=[...kr,O,J],Pc=e=>Sc.find(Nr(e)),Ln=()=>({translate:0,scale:1,origin:0,originPoint:0}),Se=()=>({x:Ln(),y:Ln()}),In=()=>({min:0,max:0}),$=()=>({x:In(),y:In()}),Cc=new WeakMap;function Lt(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Je(e){return typeof e=="string"||Array.isArray(e)}const en=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tn=["initial",...en];function It(e){return Lt(e.animate)||tn.some(t=>Je(e[t]))}function Br(e){return!!(It(e)||e.variants)}function Nc(e,t,s){for(const n in t){const i=t[n],a=s[n];if(W(i))e.addValue(n,i);else if(W(a))e.addValue(n,Ve(i,{owner:e}));else if(a!==i)if(e.hasValue(n)){const r=e.getValue(n);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=e.getStaticValue(n);e.addValue(n,Ve(r!==void 0?r:i,{owner:e}))}}for(const n in s)t[n]===void 0&&e.removeValue(n);return t}const js={current:null},Fr={current:!1},kc=typeof window<"u";function Vc(){if(Fr.current=!0,!!kc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>js.current=e.matches;e.addEventListener("change",t),t()}else js.current=!1}const Bn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Vt={};function Or(e){Vt=e}function Ac(){return Vt}class Mc{scrapeMotionValuesFromProps(t,s,n){return{}}constructor({parent:t,props:s,presenceContext:n,reducedMotionConfig:i,skipAnimations:a,blockInitialAnimation:r,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Hs,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=()=>{const m=H.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,D.render(this.render,!1,!0))};const{latestValues:d,renderState:u}=l;this.latestValues=d,this.baseTarget={...d},this.initialValues=s.initial?{...d}:{},this.renderState=u,this.parent=t,this.props=s,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=a,this.options=c,this.blockInitialAnimation=!!r,this.isControllingVariants=It(s),this.isVariantNode=Br(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(s,{},this);for(const m in f){const p=f[m];d[m]!==void 0&&W(p)&&p.set(d[m])}}mount(t){if(this.hasBeenMounted)for(const s in this.initialValues)this.values.get(s)?.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,Cc.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,n)=>this.bindToMotionValue(n,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Fr.current||Vc(),this.shouldReduceMotion=js.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ce(this.notifyUpdate),ce(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const s=this.features[t];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,s){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),s.accelerate&&rc.has(t)&&this.current instanceof HTMLElement){const{factory:r,keyframes:l,times:c,ease:d,duration:u}=s.accelerate,h=new yr({element:this.current,name:t,keyframes:l,times:c,ease:d,duration:X(u)}),f=r(h);this.valueSubscriptions.set(t,()=>{f(),h.cancel()});return}const n=Ee.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=s.on("change",r=>{this.latestValues[t]=r,this.props.onUpdate&&D.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;typeof window<"u"&&window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,s)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),s.owner&&s.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Vt){const s=Vt[t];if(!s)continue;const{isEnabled:n,Feature:i}=s;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,s){this.latestValues[t]=s}update(t,s){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let n=0;n<Bn.length;n++){const i=Bn[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,r=t[a];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Nc(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(t),()=>s.variantChildren.delete(t)}addValue(t,s){const n=this.values.get(t);s!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,s),this.values.set(t,s),this.latestValues[t]=s.get())}removeValue(t){this.values.delete(t);const s=this.valueSubscriptions.get(t);s&&(s(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,s){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&s!==void 0&&(n=Ve(s===null?void 0:s,{owner:this}),this.addValue(t,n)),n}readValue(t,s){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(Fi(n)||$i(n))?n=parseFloat(n):!Pc(n)&&J.test(s)&&(n=Ar(t,s)),this.setBaseTarget(t,W(n)?n.get():n)),W(n)?n.get():n}setBaseTarget(t,s){this.baseTarget[t]=s}getBaseTarget(t){const{initial:s}=this.props;let n;if(typeof s=="string"||typeof s=="object"){const a=Gs(this.props,s,this.presenceContext?.custom);a&&(n=a[t])}if(s&&n!==void 0)return n;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!W(i)?i:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,s){return this.events[t]||(this.events[t]=new Rs),this.events[t].add(s)}notify(t,...s){this.events[t]&&this.events[t].notify(...s)}scheduleRenderMicrotask(){Zs.render(this.render)}}class $r extends Mc{constructor(){super(...arguments),this.KeyframeResolver=ic}sortInstanceNodePosition(t,s){return t.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(t,s){const n=t.style;return n?n[s]:void 0}removeValueFromRenderState(t,{vars:s,style:n}){delete s[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;W(t)&&(this.childSubscription=t.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class ue{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Kr({top:e,left:t,right:s,bottom:n}){return{x:{min:t,max:s},y:{min:e,max:n}}}function Dc({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ec(e,t){if(!t)return e;const s=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}function Ht(e){return e===void 0||e===1}function Ts({scale:e,scaleX:t,scaleY:s}){return!Ht(e)||!Ht(t)||!Ht(s)}function me(e){return Ts(e)||Ur(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ur(e){return Fn(e.x)||Fn(e.y)}function Fn(e){return e&&e!=="0%"}function At(e,t,s){const n=e-s,i=t*n;return s+i}function On(e,t,s,n,i){return i!==void 0&&(e=At(e,i,n)),At(e,s,n)+t}function Ss(e,t=0,s=1,n,i){e.min=On(e.min,t,s,n,i),e.max=On(e.max,t,s,n,i)}function Wr(e,{x:t,y:s}){Ss(e.x,t.translate,t.scale,t.originPoint),Ss(e.y,s.translate,s.scale,s.originPoint)}const $n=.999999999999,Kn=1.0000000000001;function Rc(e,t,s,n=!1){const i=s.length;if(!i)return;t.x=t.y=1;let a,r;for(let l=0;l<i;l++){a=s[l],r=a.projectionDelta;const{visualElement:c}=a.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Ce(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),r&&(t.x*=r.x.scale,t.y*=r.y.scale,Wr(e,r)),n&&me(a.latestValues)&&Ce(e,a.latestValues))}t.x<Kn&&t.x>$n&&(t.x=1),t.y<Kn&&t.y>$n&&(t.y=1)}function Pe(e,t){e.min=e.min+t,e.max=e.max+t}function Un(e,t,s,n,i=.5){const a=I(e.min,e.max,i);Ss(e,t,s,a,n)}function Ce(e,t){Un(e.x,t.x,t.scaleX,t.scale,t.originX),Un(e.y,t.y,t.scaleY,t.scale,t.originY)}function zr(e,t){return Kr(Ec(e.getBoundingClientRect(),t))}function Lc(e,t,s){const n=zr(e,s),{scroll:i}=t;return i&&(Pe(n.x,i.offset.x),Pe(n.y,i.offset.y)),n}const Ic={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Bc=De.length;function Fc(e,t,s){let n="",i=!0;for(let a=0;a<Bc;a++){const r=De[a],l=e[r];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(r.startsWith("scale")?1:0);else{const d=parseFloat(l);c=r.startsWith("scale")?d===1:d===0}if(!c||s){const d=Dr(l,Xs[r]);if(!c){i=!1;const u=Ic[r]||r;n+=`${u}(${d}) `}s&&(t[r]=d)}}return n=n.trim(),s?n=s(t,i?"":n):i&&(n="none"),n}function sn(e,t,s){const{style:n,vars:i,transformOrigin:a}=e;let r=!1,l=!1;for(const c in t){const d=t[c];if(Ee.has(c)){r=!0;continue}else if(tr(c)){i[c]=d;continue}else{const u=Dr(d,Xs[c]);c.startsWith("origin")?(l=!0,a[c]=u):n[c]=u}}if(t.transform||(r||s?n.transform=Fc(t,e.transform,s):n.transform&&(n.transform="none")),l){const{originX:c="50%",originY:d="50%",originZ:u=0}=a;n.transformOrigin=`${c} ${d} ${u}`}}function Hr(e,{style:t,vars:s},n,i){const a=e.style;let r;for(r in t)a[r]=t[r];i?.applyProjectionStyles(a,n);for(r in s)a.setProperty(r,s[r])}function Wn(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Re={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(P.test(e))e=parseFloat(e);else return e;const s=Wn(e,t.target.x),n=Wn(e,t.target.y);return`${s}% ${n}%`}},Oc={correct:(e,{treeScale:t,projectionDelta:s})=>{const n=e,i=J.parse(e);if(i.length>5)return n;const a=J.createTransformer(e),r=typeof i[0]!="number"?1:0,l=s.x.scale*t.x,c=s.y.scale*t.y;i[0+r]/=l,i[1+r]/=c;const d=I(l,c,.5);return typeof i[2+r]=="number"&&(i[2+r]/=d),typeof i[3+r]=="number"&&(i[3+r]/=d),a(i)}},Ps={borderRadius:{...Re,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Re,borderTopRightRadius:Re,borderBottomLeftRadius:Re,borderBottomRightRadius:Re,boxShadow:Oc};function qr(e,{layout:t,layoutId:s}){return Ee.has(e)||e.startsWith("origin")||(t||s!==void 0)&&(!!Ps[e]||e==="opacity")}function nn(e,t,s){const n=e.style,i=t?.style,a={};if(!n)return a;for(const r in n)(W(n[r])||i&&W(i[r])||qr(r,e)||s?.getValue(r)?.liveStyle!==void 0)&&(a[r]=n[r]);return a}function $c(e){return window.getComputedStyle(e)}class Kc extends $r{constructor(){super(...arguments),this.type="html",this.renderInstance=Hr}readValueFromInstance(t,s){if(Ee.has(s))return this.projection?.isProjecting?us(s):rl(t,s);{const n=$c(t),i=(tr(s)?n.getPropertyValue(s):n[s])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:s}){return zr(t,s)}build(t,s,n){sn(t,s,n.transformTemplate)}scrapeMotionValuesFromProps(t,s,n){return nn(t,s,n)}}const Uc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Wc={offset:"strokeDashoffset",array:"strokeDasharray"};function zc(e,t,s=1,n=0,i=!0){e.pathLength=1;const a=i?Uc:Wc;e[a.offset]=`${-n}`,e[a.array]=`${t} ${s}`}const Hc=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function _r(e,{attrX:t,attrY:s,attrScale:n,pathLength:i,pathSpacing:a=1,pathOffset:r=0,...l},c,d,u){if(sn(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:f}=e;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??"fill-box",delete h.transformBox);for(const m of Hc)h[m]!==void 0&&(f[m]=h[m],delete h[m]);t!==void 0&&(h.x=t),s!==void 0&&(h.y=s),n!==void 0&&(h.scale=n),i!==void 0&&zc(h,i,a,r,!1)}const Gr=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"]),Yr=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qc(e,t,s,n){Hr(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(Gr.has(i)?i:Ys(i),t.attrs[i])}function Xr(e,t,s){const n=nn(e,t,s);for(const i in e)if(W(e[i])||W(t[i])){const a=De.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[a]=e[i]}return n}class _c extends $r{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$}getBaseTargetFromProps(t,s){return t[s]}readValueFromInstance(t,s){if(Ee.has(s)){const n=Vr(s);return n&&n.default||0}return s=Gr.has(s)?s:Ys(s),t.getAttribute(s)}scrapeMotionValuesFromProps(t,s,n){return Xr(t,s,n)}build(t,s,n){_r(t,s,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,s,n,i){qc(t,s,n,i)}mount(t){this.isSVGTag=Yr(t.tagName),super.mount(t)}}const Gc=tn.length;function Zr(e){if(!e)return;if(!e.isControllingVariants){const s=e.parent?Zr(e.parent)||{}:{};return e.props.initial!==void 0&&(s.initial=e.props.initial),s}const t={};for(let s=0;s<Gc;s++){const n=tn[s],i=e.props[n];(Je(i)||i===!1)&&(t[n]=i)}return t}function Qr(e,t){if(!Array.isArray(t))return!1;const s=t.length;if(s!==e.length)return!1;for(let n=0;n<s;n++)if(t[n]!==e[n])return!1;return!0}const Yc=[...en].reverse(),Xc=en.length;function Zc(e){return t=>Promise.all(t.map(({animation:s,options:n})=>_l(e,s,n)))}function Qc(e){let t=Zc(e),s=zn(),n=!0,i=!1;const a=d=>(u,h)=>{const f=Ne(e,h,d==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:m,transitionEnd:p,...g}=f;u={...u,...g,...p}}return u};function r(d){t=d(e)}function l(d){const{props:u}=e,h=Zr(e.parent)||{},f=[],m=new Set;let p={},g=1/0;for(let w=0;w<Xc;w++){const b=Yc[w],y=s[b],T=u[b]!==void 0?u[b]:h[b],j=Je(T),N=b===d?y.isActive:null;N===!1&&(g=w);let V=T===h[b]&&T!==u[b]&&j;if(V&&(n||i)&&e.manuallyAnimateOnMount&&(V=!1),y.protectedKeys={...p},!y.isActive&&N===null||!T&&!y.prevProp||Lt(T)||typeof T=="boolean")continue;if(b==="exit"&&y.isActive&&N!==!0){y.prevResolvedValues&&(p={...p,...y.prevResolvedValues});continue}const C=Jc(y.prevProp,T);let k=C||b===d&&y.isActive&&!V&&j||w>g&&j,E=!1;const M=Array.isArray(T)?T:[T];let R=M.reduce(a(b),{});N===!1&&(R={});const{prevResolvedValues:z={}}=y,ve={...z,...R},de=B=>{k=!0,m.has(B)&&(E=!0,m.delete(B)),y.needsAnimating[B]=!0;const F=e.getValue(B);F&&(F.liveStyle=!1)};for(const B in ve){const F=R[B],S=z[B];if(p.hasOwnProperty(B))continue;let A=!1;xs(F)&&xs(S)?A=!Qr(F,S):A=F!==S,A?F!=null?de(B):m.add(B):F!==void 0&&m.has(B)?de(B):y.protectedKeys[B]=!0}y.prevProp=T,y.prevResolvedValues=R,y.isActive&&(p={...p,...R}),(n||i)&&e.blockInitialAnimation&&(k=!1);const he=V&&C;k&&(!he||E)&&f.push(...M.map(B=>{const F={type:b};if(typeof B=="string"&&(n||i)&&!he&&e.manuallyAnimateOnMount&&e.parent){const{parent:S}=e,A=Ne(S,B);if(S.enteringChildren&&A){const{delayChildren:_}=A.transition||{};F.delay=br(S.enteringChildren,e,_)}}return{animation:B,options:F}}))}if(m.size){const w={};if(typeof u.initial!="boolean"){const b=Ne(e,Array.isArray(u.initial)?u.initial[0]:u.initial);b&&b.transition&&(w.transition=b.transition)}m.forEach(b=>{const y=e.getBaseTarget(b),T=e.getValue(b);T&&(T.liveStyle=!0),w[b]=y??null}),f.push({animation:w})}let v=!!f.length;return n&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),n=!1,i=!1,v?t(f):Promise.resolve()}function c(d,u){if(s[d].isActive===u)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(d,u)),s[d].isActive=u;const h=l(d);for(const f in s)s[f].protectedKeys={};return h}return{animateChanges:l,setActive:c,setAnimateFunction:r,getState:()=>s,reset:()=>{s=zn(),i=!0}}}function Jc(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Qr(t,e):!1}function fe(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zn(){return{animate:fe(!0),whileInView:fe(),whileHover:fe(),whileTap:fe(),whileDrag:fe(),whileFocus:fe(),exit:fe()}}function Hn(e,t){e.min=t.min,e.max=t.max}function Z(e,t){Hn(e.x,t.x),Hn(e.y,t.y)}function qn(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Jr=1e-4,eu=1-Jr,tu=1+Jr,ea=.01,su=0-ea,nu=0+ea;function q(e){return e.max-e.min}function iu(e,t,s){return Math.abs(e-t)<=s}function _n(e,t,s,n=.5){e.origin=n,e.originPoint=I(t.min,t.max,e.origin),e.scale=q(s)/q(t),e.translate=I(s.min,s.max,e.origin)-e.originPoint,(e.scale>=eu&&e.scale<=tu||isNaN(e.scale))&&(e.scale=1),(e.translate>=su&&e.translate<=nu||isNaN(e.translate))&&(e.translate=0)}function ze(e,t,s,n){_n(e.x,t.x,s.x,n?n.originX:void 0),_n(e.y,t.y,s.y,n?n.originY:void 0)}function Gn(e,t,s){e.min=s.min+t.min,e.max=e.min+q(t)}function ru(e,t,s){Gn(e.x,t.x,s.x),Gn(e.y,t.y,s.y)}function Yn(e,t,s){e.min=t.min-s.min,e.max=e.min+q(t)}function Mt(e,t,s){Yn(e.x,t.x,s.x),Yn(e.y,t.y,s.y)}function Xn(e,t,s,n,i){return e-=t,e=At(e,1/s,n),i!==void 0&&(e=At(e,1/i,n)),e}function au(e,t=0,s=1,n=.5,i,a=e,r=e){if(se.test(t)&&(t=parseFloat(t),t=I(r.min,r.max,t/100)-r.min),typeof t!="number")return;let l=I(a.min,a.max,n);e===a&&(l-=t),e.min=Xn(e.min,t,s,l,i),e.max=Xn(e.max,t,s,l,i)}function Zn(e,t,[s,n,i],a,r){au(e,t[s],t[n],t[i],t.scale,a,r)}const ou=["x","scaleX","originX"],lu=["y","scaleY","originY"];function Qn(e,t,s,n){Zn(e.x,t,ou,s?s.x:void 0,n?n.x:void 0),Zn(e.y,t,lu,s?s.y:void 0,n?n.y:void 0)}function Jn(e){return e.translate===0&&e.scale===1}function ta(e){return Jn(e.x)&&Jn(e.y)}function ei(e,t){return e.min===t.min&&e.max===t.max}function cu(e,t){return ei(e.x,t.x)&&ei(e.y,t.y)}function ti(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function sa(e,t){return ti(e.x,t.x)&&ti(e.y,t.y)}function si(e){return q(e.x)/q(e.y)}function ni(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function ee(e){return[e("x"),e("y")]}function uu(e,t,s){let n="";const i=e.x.translate/t.x,a=e.y.translate/t.y,r=s?.z||0;if((i||a||r)&&(n=`translate3d(${i}px, ${a}px, ${r}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),s){const{transformPerspective:d,rotate:u,rotateX:h,rotateY:f,skewX:m,skewY:p}=s;d&&(n=`perspective(${d}px) ${n}`),u&&(n+=`rotate(${u}deg) `),h&&(n+=`rotateX(${h}deg) `),f&&(n+=`rotateY(${f}deg) `),m&&(n+=`skewX(${m}deg) `),p&&(n+=`skewY(${p}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(n+=`scale(${l}, ${c})`),n||"none"}const na=["TopLeft","TopRight","BottomLeft","BottomRight"],du=na.length,ii=e=>typeof e=="string"?parseFloat(e):e,ri=e=>typeof e=="number"||P.test(e);function hu(e,t,s,n,i,a){i?(e.opacity=I(0,s.opacity??1,fu(n)),e.opacityExit=I(t.opacity??1,0,mu(n))):a&&(e.opacity=I(t.opacity??1,s.opacity??1,n));for(let r=0;r<du;r++){const l=`border${na[r]}Radius`;let c=ai(t,l),d=ai(s,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||ri(c)===ri(d)?(e[l]=Math.max(I(ii(c),ii(d),n),0),(se.test(d)||se.test(c))&&(e[l]+="%")):e[l]=d}(t.rotate||s.rotate)&&(e.rotate=I(t.rotate||0,s.rotate||0,n))}function ai(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const fu=ia(0,.5,Yi),mu=ia(.5,.95,Y);function ia(e,t,s){return n=>n<e?0:n>t?1:s(Xe(e,t,n))}function pu(e,t,s){const n=W(e)?e:Ve(e);return n.start(_s("",n,t,s)),n.animation}function et(e,t,s,n={passive:!0}){return e.addEventListener(t,s,n),()=>e.removeEventListener(t,s)}const xu=(e,t)=>e.depth-t.depth;class gu{constructor(){this.children=[],this.isDirty=!1}add(t){Es(this.children,t),this.isDirty=!0}remove(t){Pt(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(xu),this.isDirty=!1,this.children.forEach(t)}}function yu(e,t){const s=H.now(),n=({timestamp:i})=>{const a=i-s;a>=t&&(ce(n),e(a-t))};return D.setup(n,!0),()=>ce(n)}function bt(e){return W(e)?e.get():e}class vu{constructor(){this.members=[]}add(t){Es(this.members,t);for(let s=this.members.length-1;s>=0;s--){const n=this.members[s];if(n===t||n===this.lead||n===this.prevLead)continue;const i=n.instance;(!i||i.isConnected===!1)&&!n.snapshot&&(Pt(this.members,n),n.unmount())}t.scheduleRender()}remove(t){if(Pt(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(t){for(let s=this.members.indexOf(t)-1;s>=0;s--){const n=this.members[s];if(n.isPresent!==!1&&n.instance?.isConnected!==!1)return this.promote(n),!0}return!1}promote(t,s){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.updateSnapshot(),t.scheduleRender();const{layoutDependency:i}=n.options,{layoutDependency:a}=t.options;(i===void 0||i!==a)&&(t.resumeFrom=n,s&&(n.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const wt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},qt=["","X","Y","Z"],bu=1e3;let wu=0;function _t(e,t,s,n){const{latestValues:i}=t;i[e]&&(s[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function ra(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const s=Pr(t);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",D,!(i||a))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&ra(n)}function aa({attachResizeListener:e,defaultParent:t,measureScroll:s,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(r={},l=t?.()){this.id=wu++,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(Su),this.nodes.forEach(ku),this.nodes.forEach(Vu),this.nodes.forEach(Pu)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new gu)}addEventListener(r,l){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Rs),this.eventHandlers.get(r).add(l)}notifyListeners(r,...l){const c=this.eventHandlers.get(r);c&&c.notify(...l)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Js(r)&&!Tc(r),this.instance=r;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let u,h=0;const f=()=>this.root.updateBlockedByResize=!1;D.read(()=>{h=window.innerWidth}),e(r,()=>{const m=window.innerWidth;m!==h&&(h=m,this.root.updateBlockedByResize=!0,u&&u(),u=yu(f,250),wt.hasAnimatedSinceResize&&(wt.hasAnimatedSinceResize=!1,this.nodes.forEach(ci)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||d.getDefaultTransition()||Ru,{onLayoutAnimationStart:g,onLayoutAnimationComplete:v}=d.getProps(),w=!this.targetLayout||!sa(this.targetLayout,m),b=!h&&f;if(this.options.layoutRoot||this.resumeFrom||b||h&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...qs(p,"layout"),onPlay:g,onComplete:v};(d.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(u,b)}else h||ci(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ce(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.forEach(Au),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ra(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(oi);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(li);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Nu),this.nodes.forEach(ju),this.nodes.forEach(Tu)):this.nodes.forEach(li),this.clearAllSnapshots();const l=H.now();U.delta=ne(0,1e3/60,l-U.timestamp),U.timestamp=l,U.isProcessing=!0,Ft.update.process(U),Ft.preRender.process(U),Ft.render.process(U),U.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Zs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Cu),this.sharedNodes.forEach(Mu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!q(this.snapshot.measuredBox.x)&&!q(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=$(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(l=!1),l&&this.instance){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!ta(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;r&&this.instance&&(l||me(this.latestValues)||u)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return r&&(c=this.removeTransform(c)),Lu(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return $();const l=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Iu))){const{scroll:d}=this.root;d&&(Pe(l.x,d.offset.x),Pe(l.y,d.offset.y))}return l}removeElementScroll(r){const l=$();if(Z(l,r),this.scroll?.wasRoot)return l;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:u,options:h}=d;d!==this.root&&u&&h.layoutScroll&&(u.wasRoot&&Z(l,r),Pe(l.x,u.offset.x),Pe(l.y,u.offset.y))}return l}applyTransform(r,l=!1){const c=$();Z(c,r);for(let d=0;d<this.path.length;d++){const u=this.path[d];!l&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Ce(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),me(u.latestValues)&&Ce(c,u.latestValues)}return me(this.latestValues)&&Ce(c,this.latestValues),c}removeTransform(r){const l=$();Z(l,r);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!me(d.latestValues))continue;Ts(d.latestValues)&&d.updateSnapshot();const u=$(),h=d.measurePageBox();Z(u,h),Qn(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return me(this.latestValues)&&Qn(l,this.latestValues),l}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}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!==U.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=U.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=$(),this.targetWithTransforms=$()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ru(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Z(this.target,this.layout.layoutBox),Wr(this.target,this.targetDelta)):Z(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ts(this.parent.latestValues)||Ur(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,l,c){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$(),this.relativeTargetOrigin=$(),Mt(this.relativeTargetOrigin,l,c),Z(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),l=!!this.resumingFrom||this!==r;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===U.timestamp&&(c=!1),c)return;const{layout:d,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||u))return;Z(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Rc(this.layoutCorrected,this.treeScale,this.path,l),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=$());const{target:m}=r;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(qn(this.prevProjectionDelta.x,this.projectionDelta.x),qn(this.prevProjectionDelta.y,this.projectionDelta.y)),ze(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!ni(this.projectionDelta.x,this.prevProjectionDelta.x)||!ni(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Se(),this.projectionDelta=Se(),this.projectionDeltaWithTransform=Se()}setAnimationOrigin(r,l=!1){const c=this.snapshot,d=c?c.latestValues:{},u={...this.latestValues},h=Se();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=$(),m=c?c.source:void 0,p=this.layout?this.layout.source:void 0,g=m!==p,v=this.getStack(),w=!v||v.members.length<=1,b=!!(g&&!w&&this.options.crossfade===!0&&!this.path.some(Eu));this.animationProgress=0;let y;this.mixTargetDelta=T=>{const j=T/1e3;ui(h.x,r.x,j),ui(h.y,r.y,j),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Du(this.relativeTarget,this.relativeTargetOrigin,f,j),y&&cu(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=$()),Z(y,this.relativeTarget)),g&&(this.animationValues=u,hu(u,d,this.latestValues,j,b,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=j},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ce(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{wt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ve(0)),this.motionValue.jump(0,!1),this.currentAnimation=pu(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),r.onUpdate&&r.onUpdate(l)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(bu),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:u}=r;if(!(!l||!c||!d)){if(this!==r&&this.layout&&d&&oa(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||$();const h=q(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+h;const f=q(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+f}Z(l,c),Ce(l,u),ze(this.projectionDeltaWithTransform,this.layoutCorrected,l,u)}}registerSharedNode(r,l){this.sharedNodes.has(r)||this.sharedNodes.set(r,new vu),this.sharedNodes.get(r).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let l=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const d={};c.z&&_t("z",r,d,this.animationValues);for(let u=0;u<qt.length;u++)_t(`rotate${qt[u]}`,r,d,this.animationValues),_t(`skew${qt[u]}`,r,d,this.animationValues);r.render();for(const u in d)r.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);r.scheduleRender()}applyProjectionStyles(r,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=bt(l?.pointerEvents)||"",r.transform=c?c(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=bt(l?.pointerEvents)||""),this.hasProjected&&!me(this.latestValues)&&(r.transform=c?c({},""):"none",this.hasProjected=!1);return}r.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let h=uu(this.projectionDeltaWithTransform,this.treeScale,u);c&&(h=c(u,h)),r.transform=h;const{x:f,y:m}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,d.animationValues?r.opacity=d===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:r.opacity=d===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const p in Ps){if(u[p]===void 0)continue;const{correct:g,applyTo:v,isCSSVariable:w}=Ps[p],b=h==="none"?u[p]:g(u[p],d);if(v){const y=v.length;for(let T=0;T<y;T++)r[v[T]]=b}else w?this.options.visualElement.renderState.vars[p]=b:r[p]=b}this.options.layoutId&&(r.pointerEvents=d===this?bt(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(oi),this.root.sharedNodes.clear()}}}function ju(e){e.updateLayout()}function Tu(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:n}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?ee(u=>{const h=a?t.measuredBox[u]:t.layoutBox[u],f=q(h);h.min=s[u].min,h.max=h.min+f}):oa(i,t.layoutBox,s)&&ee(u=>{const h=a?t.measuredBox[u]:t.layoutBox[u],f=q(s[u]);h.max=h.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+f)});const r=Se();ze(r,s,t.layoutBox);const l=Se();a?ze(l,e.applyTransform(n,!0),t.measuredBox):ze(l,s,t.layoutBox);const c=!ta(r);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:f}=u;if(h&&f){const m=$();Mt(m,t.layoutBox,h.layoutBox);const p=$();Mt(p,s,f.layoutBox),sa(m,p)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=m,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:t,delta:l,layoutDelta:r,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function Su(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 Pu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Cu(e){e.clearSnapshot()}function oi(e){e.clearMeasurements()}function li(e){e.isLayoutDirty=!1}function Nu(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ci(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ku(e){e.resolveTargetDelta()}function Vu(e){e.calcProjection()}function Au(e){e.resetSkewAndRotation()}function Mu(e){e.removeLeadSnapshot()}function ui(e,t,s){e.translate=I(t.translate,0,s),e.scale=I(t.scale,1,s),e.origin=t.origin,e.originPoint=t.originPoint}function di(e,t,s,n){e.min=I(t.min,s.min,n),e.max=I(t.max,s.max,n)}function Du(e,t,s,n){di(e.x,t.x,s.x,n),di(e.y,t.y,s.y,n)}function Eu(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Ru={duration:.45,ease:[.4,0,.1,1]},hi=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),fi=hi("applewebkit/")&&!hi("chrome/")?Math.round:Y;function mi(e){e.min=fi(e.min),e.max=fi(e.max)}function Lu(e){mi(e.x),mi(e.y)}function oa(e,t,s){return e==="position"||e==="preserve-aspect"&&!iu(si(t),si(s),.2)}function Iu(e){return e!==e.root&&e.scroll?.wasRoot}const Bu=aa({attachResizeListener:(e,t)=>et(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Gt={current:void 0},la=aa({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Gt.current){const e=new Bu({});e.mount(window),e.setOptions({layoutScroll:!0}),Gt.current=e}return Gt.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),rn=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function pi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Fu(...e){return t=>{let s=!1;const n=e.map(i=>{const a=pi(i,t);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():pi(e[i],null)}}}}function Ou(...e){return x.useCallback(Fu(...e),e)}class $u extends x.Component{getSnapshotBeforeUpdate(t){const s=this.props.childRef.current;if(s&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const n=s.offsetParent,i=ws(n)&&n.offsetWidth||0,a=ws(n)&&n.offsetHeight||0,r=this.props.sizeRef.current;r.height=s.offsetHeight||0,r.width=s.offsetWidth||0,r.top=s.offsetTop,r.left=s.offsetLeft,r.right=i-r.width-r.left,r.bottom=a-r.height-r.top}return null}componentDidUpdate(){}render(){return this.props.children}}function Ku({children:e,isPresent:t,anchorX:s,anchorY:n,root:i,pop:a}){const r=x.useId(),l=x.useRef(null),c=x.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:d}=x.useContext(rn),u=e.props?.ref??e?.ref,h=Ou(l,u);return x.useInsertionEffect(()=>{const{width:f,height:m,top:p,left:g,right:v,bottom:w}=c.current;if(t||a===!1||!l.current||!f||!m)return;const b=s==="left"?`left: ${g}`:`right: ${v}`,y=n==="bottom"?`bottom: ${w}`:`top: ${p}`;l.current.dataset.motionPopId=r;const T=document.createElement("style");d&&(T.nonce=d);const j=i??document.head;return j.appendChild(T),T.sheet&&T.sheet.insertRule(`
          [data-motion-pop-id="${r}"] {
            position: absolute !important;
            width: ${f}px !important;
            height: ${m}px !important;
            ${b}px !important;
            ${y}px !important;
          }
        `),()=>{j.contains(T)&&j.removeChild(T)}},[t]),o.jsx($u,{isPresent:t,childRef:l,sizeRef:c,pop:a,children:a===!1?e:x.cloneElement(e,{ref:h})})}const Uu=({children:e,initial:t,isPresent:s,onExitComplete:n,custom:i,presenceAffectsLayout:a,mode:r,anchorX:l,anchorY:c,root:d})=>{const u=Ds(Wu),h=x.useId();let f=!0,m=x.useMemo(()=>(f=!1,{id:h,initial:t,isPresent:s,custom:i,onExitComplete:p=>{u.set(p,!0);for(const g of u.values())if(!g)return;n&&n()},register:p=>(u.set(p,!1),()=>u.delete(p))}),[s,u,n]);return a&&f&&(m={...m}),x.useMemo(()=>{u.forEach((p,g)=>u.set(g,!1))},[s]),x.useEffect(()=>{!s&&!u.size&&n&&n()},[s]),e=o.jsx(Ku,{pop:r==="popLayout",isPresent:s,anchorX:l,anchorY:c,root:d,children:e}),o.jsx(Et.Provider,{value:m,children:e})};function Wu(){return new Map}function ca(e=!0){const t=x.useContext(Et);if(t===null)return[!0,null];const{isPresent:s,onExitComplete:n,register:i}=t,a=x.useId();x.useEffect(()=>{if(e)return i(a)},[e]);const r=x.useCallback(()=>e&&n&&n(a),[a,n,e]);return!s&&n?[!1,r]:[!0]}const ut=e=>e.key||"";function xi(e){const t=[];return x.Children.forEach(e,s=>{x.isValidElement(s)&&t.push(s)}),t}const tt=({children:e,custom:t,initial:s=!0,onExitComplete:n,presenceAffectsLayout:i=!0,mode:a="sync",propagate:r=!1,anchorX:l="left",anchorY:c="top",root:d})=>{const[u,h]=ca(r),f=x.useMemo(()=>xi(e),[e]),m=r&&!u?[]:f.map(ut),p=x.useRef(!0),g=x.useRef(f),v=Ds(()=>new Map),w=x.useRef(new Set),[b,y]=x.useState(f),[T,j]=x.useState(f);Bi(()=>{p.current=!1,g.current=f;for(let C=0;C<T.length;C++){const k=ut(T[C]);m.includes(k)?(v.delete(k),w.current.delete(k)):v.get(k)!==!0&&v.set(k,!1)}},[T,m.length,m.join("-")]);const N=[];if(f!==b){let C=[...f];for(let k=0;k<T.length;k++){const E=T[k],M=ut(E);m.includes(M)||(C.splice(k,0,E),N.push(E))}return a==="wait"&&N.length&&(C=N),j(xi(C)),y(f),null}const{forceRender:V}=x.useContext(Ms);return o.jsx(o.Fragment,{children:T.map(C=>{const k=ut(C),E=r&&!u?!1:f===T||m.includes(k),M=()=>{if(w.current.has(k))return;if(w.current.add(k),v.has(k))v.set(k,!0);else return;let R=!0;v.forEach(z=>{z||(R=!1)}),R&&(V?.(),j(g.current),r&&h?.(),n&&n())};return o.jsx(Uu,{isPresent:E,initial:!p.current||s?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:d,onExitComplete:E?void 0:M,anchorX:l,anchorY:c,children:C},k)})})},ua=x.createContext({strict:!1}),gi={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"]};let yi=!1;function zu(){if(yi)return;const e={};for(const t in gi)e[t]={isEnabled:s=>gi[t].some(n=>!!s[n])};Or(e),yi=!0}function da(){return zu(),Ac()}function Hu(e){const t=da();for(const s in e)t[s]={...t[s],...e[s]};Or(t)}const qu=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","propagate","ignoreStrict","viewport"]);function Dt(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||qu.has(e)}let ha=e=>!Dt(e);function _u(e){typeof e=="function"&&(ha=t=>t.startsWith("on")?!Dt(t):e(t))}try{_u(require("@emotion/is-prop-valid").default)}catch{}function Gu(e,t,s){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(ha(i)||s===!0&&Dt(i)||!t&&!Dt(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}const Bt=x.createContext({});function Yu(e,t){if(It(e)){const{initial:s,animate:n}=e;return{initial:s===!1||Je(s)?s:void 0,animate:Je(n)?n:void 0}}return e.inherit!==!1?t:{}}function Xu(e){const{initial:t,animate:s}=Yu(e,x.useContext(Bt));return x.useMemo(()=>({initial:t,animate:s}),[vi(t),vi(s)])}function vi(e){return Array.isArray(e)?e.join(" "):e}const an=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fa(e,t,s){for(const n in t)!W(t[n])&&!qr(n,s)&&(e[n]=t[n])}function Zu({transformTemplate:e},t){return x.useMemo(()=>{const s=an();return sn(s,t,e),Object.assign({},s.vars,s.style)},[t])}function Qu(e,t){const s=e.style||{},n={};return fa(n,s,e),Object.assign(n,Zu(e,t)),n}function Ju(e,t){const s={},n=Qu(e,t);return e.drag&&e.dragListener!==!1&&(s.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=n,s}const ma=()=>({...an(),attrs:{}});function ed(e,t,s,n){const i=x.useMemo(()=>{const a=ma();return _r(a,t,Yr(n),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};fa(a,e.style,e),i.style={...a,...i.style}}return i}const td=["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 on(e){return typeof e!="string"||e.includes("-")?!1:!!(td.indexOf(e)>-1||/[A-Z]/u.test(e))}function sd(e,t,s,{latestValues:n},i,a=!1,r){const c=(r??on(e)?ed:Ju)(t,n,i,e),d=Gu(t,typeof e=="string",a),u=e!==x.Fragment?{...d,...c,ref:s}:{},{children:h}=t,f=x.useMemo(()=>W(h)?h.get():h,[h]);return x.createElement(e,{...u,children:f})}function nd({scrapeMotionValuesFromProps:e,createRenderState:t},s,n,i){return{latestValues:id(s,n,i,e),renderState:t()}}function id(e,t,s,n){const i={},a=n(e,{});for(const f in a)i[f]=bt(a[f]);let{initial:r,animate:l}=e;const c=It(e),d=Br(e);t&&d&&!c&&e.inherit!==!1&&(r===void 0&&(r=t.initial),l===void 0&&(l=t.animate));let u=s?s.initial===!1:!1;u=u||r===!1;const h=u?l:r;if(h&&typeof h!="boolean"&&!Lt(h)){const f=Array.isArray(h)?h:[h];for(let m=0;m<f.length;m++){const p=Gs(e,f[m]);if(p){const{transitionEnd:g,transition:v,...w}=p;for(const b in w){let y=w[b];if(Array.isArray(y)){const T=u?y.length-1:0;y=y[T]}y!==null&&(i[b]=y)}for(const b in g)i[b]=g[b]}}}return i}const pa=e=>(t,s)=>{const n=x.useContext(Bt),i=x.useContext(Et),a=()=>nd(e,t,n,i);return s?a():Ds(a)},rd=pa({scrapeMotionValuesFromProps:nn,createRenderState:an}),ad=pa({scrapeMotionValuesFromProps:Xr,createRenderState:ma}),od=Symbol.for("motionComponentSymbol");function ld(e,t,s){const n=x.useRef(s);x.useInsertionEffect(()=>{n.current=s});const i=x.useRef(null);return x.useCallback(a=>{a&&e.onMount?.(a),t&&(a?t.mount(a):t.unmount());const r=n.current;if(typeof r=="function")if(a){const l=r(a);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):r(a);else r&&(r.current=a)},[t])}const xa=x.createContext({});function we(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function cd(e,t,s,n,i,a){const{visualElement:r}=x.useContext(Bt),l=x.useContext(ua),c=x.useContext(Et),d=x.useContext(rn),u=d.reducedMotion,h=d.skipAnimations,f=x.useRef(null),m=x.useRef(!1);n=n||l.renderer,!f.current&&n&&(f.current=n(e,{visualState:t,parent:r,props:s,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:h,isSVG:a}),m.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const p=f.current,g=x.useContext(xa);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&ud(f.current,s,i,g);const v=x.useRef(!1);x.useInsertionEffect(()=>{p&&v.current&&p.update(s,c)});const w=s[Sr],b=x.useRef(!!w&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return Bi(()=>{m.current=!0,p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),b.current&&p.animationState&&p.animationState.animateChanges())}),x.useEffect(()=>{p&&(!b.current&&p.animationState&&p.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),b.current=!1),p.enteringChildren=void 0)}),p}function ud(e,t,s,n){const{layoutId:i,layout:a,drag:r,dragConstraints:l,layoutScroll:c,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new s(e.latestValues,t["data-framer-portal-id"]?void 0:ga(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!r||l&&we(l),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:c,layoutRoot:d})}function ga(e){if(e)return e.options.allowProjection!==!1?e.projection:ga(e.parent)}function Yt(e,{forwardMotionProps:t=!1,type:s}={},n,i){n&&Hu(n);const a=s?s==="svg":on(e),r=a?ad:rd;function l(d,u){let h;const f={...x.useContext(rn),...d,layoutId:dd(d)},{isStatic:m}=f,p=Xu(d),g=r(d,m);if(!m&&typeof window<"u"){hd();const v=fd(f);h=v.MeasureLayout,p.visualElement=cd(e,g,f,i,v.ProjectionNode,a)}return o.jsxs(Bt.Provider,{value:p,children:[h&&p.visualElement?o.jsx(h,{visualElement:p.visualElement,...f}):null,sd(e,d,ld(g,p.visualElement,u),g,m,t,a)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=x.forwardRef(l);return c[od]=e,c}function dd({layoutId:e}){const t=x.useContext(Ms).id;return t&&e!==void 0?t+"-"+e:e}function hd(e,t){x.useContext(ua).strict}function fd(e){const t=da(),{drag:s,layout:n}=t;if(!s&&!n)return{};const i={...s,...n};return{MeasureLayout:s?.isEnabled(e)||n?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function md(e,t){if(typeof Proxy>"u")return Yt;const s=new Map,n=(a,r)=>Yt(a,r,e,t),i=(a,r)=>n(a,r);return new Proxy(i,{get:(a,r)=>r==="create"?n:(s.has(r)||s.set(r,Yt(r,void 0,e,t)),s.get(r))})}const pd=(e,t)=>t.isSVG??on(e)?new _c(t):new Kc(t,{allowProjection:e!==x.Fragment});class xd extends ue{constructor(t){super(t),t.animationState||(t.animationState=Qc(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Lt(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:s}=this.node.prevProps||{};t!==s&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let gd=0;class yd extends ue{constructor(){super(...arguments),this.id=gd++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:s}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);s&&!t&&i.then(()=>{s(this.id)})}mount(){const{register:t,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const vd={animation:{Feature:xd},exit:{Feature:yd}};function rt(e){return{point:{x:e.pageX,y:e.pageY}}}const bd=e=>t=>Qs(t)&&e(t,rt(t));function He(e,t,s,n){return et(e,t,bd(s),n)}const ya=({current:e})=>e?e.ownerDocument.defaultView:null,bi=(e,t)=>Math.abs(e-t);function wd(e,t){const s=bi(e.x,t.x),n=bi(e.y,t.y);return Math.sqrt(s**2+n**2)}const wi=new Set(["auto","scroll"]);class va{constructor(t,s,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:r=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=Zt(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=wd(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!g)return;const{point:v}=m,{timestamp:w}=U;this.history.push({...v,timestamp:w});const{onStart:b,onMove:y}=this.handlers;p||(b&&b(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=Xt(p,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=Zt(m.type==="pointercancel"?this.lastMoveEventInfo:Xt(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(m,b),v&&v(m,b)},!Qs(t))return;this.dragSnapToOrigin=a,this.handlers=s,this.transformPagePoint=n,this.distanceThreshold=r,this.contextWindow=i||window;const c=rt(t),d=Xt(c,this.transformPagePoint),{point:u}=d,{timestamp:h}=U;this.history=[{...u,timestamp:h}];const{onSessionStart:f}=s;f&&f(t,Zt(d,this.history)),this.removeListeners=st(He(this.contextWindow,"pointermove",this.handlePointerMove),He(this.contextWindow,"pointerup",this.handlePointerUp),He(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let s=t.parentElement;for(;s;){const n=getComputedStyle(s);(wi.has(n.overflowX)||wi.has(n.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const s=this.scrollPositions.get(t);if(!s)return;const n=t===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},a={x:i.x-s.x,y:i.y-s.y};a.x===0&&a.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(t,i),D.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ce(this.updatePoint)}}function Xt(e,t){return t?{point:t(e.point)}:e}function ji(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Zt({point:e},t){return{point:e,delta:ji(e,ba(t)),offset:ji(e,jd(t)),velocity:Td(t,.1)}}function jd(e){return e[0]}function ba(e){return e[e.length-1]}function Td(e,t){if(e.length<2)return{x:0,y:0};let s=e.length-1,n=null;const i=ba(e);for(;s>=0&&(n=e[s],!(i.timestamp-n.timestamp>X(t)));)s--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&i.timestamp-n.timestamp>X(t)*2&&(n=e[1]);const a=G(i.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const r={x:(i.x-n.x)/a,y:(i.y-n.y)/a};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Sd(e,{min:t,max:s},n){return t!==void 0&&e<t?e=n?I(t,e,n.min):Math.max(e,t):s!==void 0&&e>s&&(e=n?I(s,e,n.max):Math.min(e,s)),e}function Ti(e,t,s){return{min:t!==void 0?e.min+t:void 0,max:s!==void 0?e.max+s-(e.max-e.min):void 0}}function Pd(e,{top:t,left:s,bottom:n,right:i}){return{x:Ti(e.x,s,i),y:Ti(e.y,t,n)}}function Si(e,t){let s=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([s,n]=[n,s]),{min:s,max:n}}function Cd(e,t){return{x:Si(e.x,t.x),y:Si(e.y,t.y)}}function Nd(e,t){let s=.5;const n=q(e),i=q(t);return i>n?s=Xe(t.min,t.max-n,e.min):n>i&&(s=Xe(e.min,e.max-i,t.min)),ne(0,1,s)}function kd(e,t){const s={};return t.min!==void 0&&(s.min=t.min-e.min),t.max!==void 0&&(s.max=t.max-e.min),s}const Cs=.35;function Vd(e=Cs){return e===!1?e=0:e===!0&&(e=Cs),{x:Pi(e,"left","right"),y:Pi(e,"top","bottom")}}function Pi(e,t,s){return{min:Ci(e,t),max:Ci(e,s)}}function Ci(e,t){return typeof e=="number"?e:e[t]||0}const Ad=new WeakMap;class Md{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:s=!1,distanceThreshold:n}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=h=>{s&&this.snapToCursor(rt(h).point),this.stopAnimation()},r=(h,f)=>{const{drag:m,dragPropagation:p,onDragStart:g}=this.getProps();if(m&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ac(m),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ee(w=>{let b=this.getAxisMotionValue(w).get()||0;if(se.test(b)){const{projection:y}=this.visualElement;if(y&&y.layout){const T=y.layout.layoutBox[w];T&&(b=q(T)*(parseFloat(b)/100))}}this.originPoint[w]=b}),g&&D.update(()=>g(h,f),!1,!0),gs(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:m,dragDirectionLock:p,onDirectionLock:g,onDrag:v}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:w}=f;if(p&&this.currentDirection===null){this.currentDirection=Ed(w),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,w),this.updateAxis("y",f.point,w),this.visualElement.render(),v&&D.update(()=>v(h,f),!1,!0)},c=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new va(t,{onSessionStart:a,onStart:r,onMove:l,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:ya(this.visualElement),element:this.visualElement.current})}stop(t,s){const n=t||this.latestPointerEvent,i=s||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!n)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:l}=this.getProps();l&&D.postRender(()=>l(n,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:s}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,s,n){const{drag:i}=this.getProps();if(!n||!dt(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let r=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(r=Sd(r,this.constraints[t],this.elastic[t])),a.set(r)}resolveConstraints(){const{dragConstraints:t,dragElastic:s}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&we(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=Pd(n.layoutBox,t):this.constraints=!1,this.elastic=Vd(s),i!==this.constraints&&!we(t)&&n&&this.constraints&&!this.hasMutatedConstraints&&ee(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=kd(n.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:s}=this.getProps();if(!t||!we(t))return!1;const n=t.current;ke(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Lc(n,i.root,this.visualElement.getTransformPagePoint());let r=Cd(i.layout.layoutBox,a);if(s){const l=s(Dc(r));this.hasMutatedConstraints=!!l,l&&(r=Kr(l))}return r}startAnimation(t){const{drag:s,dragMomentum:n,dragElastic:i,dragTransition:a,dragSnapToOrigin:r,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=ee(u=>{if(!dt(u,s,this.currentDirection))return;let h=c&&c[u]||{};r&&(h={min:0,max:0});const f=i?200:1e6,m=i?40:1e7,p={type:"inertia",velocity:n?t[u]:0,bounceStiffness:f,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...a,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(d).then(l)}startAxisValueAnimation(t,s){const n=this.getAxisMotionValue(t);return gs(this.visualElement,t),n.start(_s(t,n,0,s,this.visualElement,!1))}stopAnimation(){ee(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const s=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[s];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){ee(s=>{const{drag:n}=this.getProps();if(!dt(s,n,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(s);if(i&&i.layout){const{min:r,max:l}=i.layout.layoutBox[s],c=a.get()||0;a.set(t[s]-I(r,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:s}=this.getProps(),{projection:n}=this.visualElement;if(!we(s)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ee(r=>{const l=this.getAxisMotionValue(r);if(l&&this.constraints!==!1){const c=l.get();i[r]=Nd({min:c,max:c},this.constraints[r])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),ee(r=>{if(!dt(r,t,null))return;const l=this.getAxisMotionValue(r),{min:c,max:d}=this.constraints[r];l.set(I(c,d,i[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Ad.set(this.visualElement,this);const t=this.visualElement.current,s=He(t,"pointerdown",d=>{const{drag:u,dragListener:h=!0}=this.getProps(),f=d.target,m=f!==t&&hc(f);u&&h&&!m&&this.start(d)});let n;const i=()=>{const{dragConstraints:d}=this.getProps();we(d)&&d.current&&(this.constraints=this.resolveRefConstraints(),n||(n=Dd(t,d.current,()=>this.scalePositionWithinConstraints())))},{projection:a}=this.visualElement,r=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),D.read(i);const l=et(window,"resize",()=>this.scalePositionWithinConstraints()),c=a.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u})=>{this.isDragging&&u&&(ee(h=>{const f=this.getAxisMotionValue(h);f&&(this.originPoint[h]+=d[h].translate,f.set(f.get()+d[h].translate))}),this.visualElement.render())});return()=>{l(),s(),r(),c&&c(),n&&n()}}getProps(){const t=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:r=Cs,dragMomentum:l=!0}=t;return{...t,drag:s,dragDirectionLock:n,dragPropagation:i,dragConstraints:a,dragElastic:r,dragMomentum:l}}}function Ni(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Dd(e,t,s){const n=Rn(e,Ni(s)),i=Rn(t,Ni(s));return()=>{n(),i()}}function dt(e,t,s){return(t===!0||t===e)&&(s===null||s===e)}function Ed(e,t=10){let s=null;return Math.abs(e.y)>t?s="y":Math.abs(e.x)>t&&(s="x"),s}class Rd extends ue{constructor(t){super(t),this.removeGroupControls=Y,this.removeListeners=Y,this.controls=new Md(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Y}update(){const{dragControls:t}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};t!==s&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Qt=e=>(t,s)=>{e&&D.update(()=>e(t,s),!1,!0)};class Ld extends ue{constructor(){super(...arguments),this.removePointerDownListener=Y}onPointerDown(t){this.session=new va(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ya(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:s,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:Qt(t),onStart:Qt(s),onMove:Qt(n),onEnd:(a,r)=>{delete this.session,i&&D.postRender(()=>i(a,r))}}}mount(){this.removePointerDownListener=He(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Jt=!1;class Id extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:n,layoutId:i}=this.props,{projection:a}=t;a&&(s.group&&s.group.add(a),n&&n.register&&i&&n.register(a),Jt&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),wt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:s,visualElement:n,drag:i,isPresent:a}=this.props,{projection:r}=n;return r&&(r.isPresent=a,t.layoutDependency!==s&&r.setOptions({...r.options,layoutDependency:s}),Jt=!0,i||t.layoutDependency!==s||s===void 0||t.isPresent!==a?r.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?r.promote():r.relegate()||D.postRender(()=>{const l=r.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Zs.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:n}=this.props,{projection:i}=t;Jt=!0,i&&(i.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function wa(e){const[t,s]=ca(),n=x.useContext(Ms);return o.jsx(Id,{...e,layoutGroup:n,switchLayoutGroup:x.useContext(xa),isPresent:t,safeToRemove:s})}const Bd={pan:{Feature:Ld},drag:{Feature:Rd,ProjectionNode:la,MeasureLayout:wa}};function ki(e,t,s){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",s==="Start");const i="onHover"+s,a=n[i];a&&D.postRender(()=>a(t,rt(t)))}class Fd extends ue{mount(){const{current:t}=this.node;t&&(this.unmount=lc(t,(s,n)=>(ki(this.node,n,"Start"),i=>ki(this.node,i,"End"))))}unmount(){}}class Od extends ue{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=st(et(this.node.current,"focus",()=>this.onFocus()),et(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Vi(e,t,s){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",s==="Start");const i="onTap"+(s==="End"?"":s),a=n[i];a&&D.postRender(()=>a(t,rt(t)))}class $d extends ue{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:s,propagate:n}=this.node.props;this.unmount=mc(t,(i,a)=>(Vi(this.node,a,"Start"),(r,{success:l})=>Vi(this.node,r,l?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:n?.tap===!1})}unmount(){}}const Ns=new WeakMap,es=new WeakMap,Kd=e=>{const t=Ns.get(e.target);t&&t(e)},Ud=e=>{e.forEach(Kd)};function Wd({root:e,...t}){const s=e||document;es.has(s)||es.set(s,{});const n=es.get(s),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(Ud,{root:e,...t})),n[i]}function zd(e,t,s){const n=Wd(t);return Ns.set(e,s),n.observe(e),()=>{Ns.delete(e),n.unobserve(e)}}const Hd={some:0,all:1};class qd extends ue{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:s,margin:n,amount:i="some",once:a}=t,r={root:s?s.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:Hd[i]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),f=d?u:h;f&&f(c)};return zd(this.node.current,r,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:s}=this.node;["amount","margin","root"].some(_d(t,s))&&this.startObserver()}unmount(){}}function _d({viewport:e={}},{viewport:t={}}={}){return s=>e[s]!==t[s]}const Gd={inView:{Feature:qd},tap:{Feature:$d},focus:{Feature:Od},hover:{Feature:Fd}},Yd={layout:{ProjectionNode:la,MeasureLayout:wa}},Xd={...vd,...Gd,...Bd,...Yd},K=md(Xd,pd),ja=x.forwardRef(({className:e,value:t,onValueChange:s,min:n=0,max:i=100,step:a=1,filledColor:r,unfilledColor:l,variant:c="default",...d},u)=>{const h=(t-n)/(i-n)*100,f=r||(c==="hero"?"hsl(30 70% 55%)":"hsl(var(--accent-500))"),m=l||(c==="hero"?"hsla(0 0% 100% / 0.2)":"hsl(var(--muted))"),g={"--range-p":h,"--range-filled":f,"--range-unfilled":m,"--range-thumb-border":c==="hero"?"hsl(30 70% 55%)":"hsl(var(--accent-500))",background:`linear-gradient(to right, ${f} 0%, ${f} ${h}%, ${m} ${h}%, ${m} 100%)`};return o.jsx("input",{ref:u,type:"range",min:n,max:i,step:a,value:t,onChange:v=>s(Number(v.target.value)),className:Aa("range-slider",e),style:g,...d})});ja.displayName="RangeSlider";const ts=[{periodKey:"training.day1.period",price:10,youProvideKeys:["training.day1.youProvide.pms","training.day1.youProvide.houseRules","training.day1.youProvide.faq"],cendraHandlesKeys:["training.day1.cendra.simple","training.day1.cendra.checkIn","training.day1.cendra.wifi"]},{periodKey:"training.week1.period",price:19,youProvideKeys:["training.week1.youProvide.booking","training.week1.youProvide.cancellation","training.week1.youProvide.tone"],cendraHandlesKeys:["training.week1.cendra.booking","training.week1.cendra.policy","training.week1.cendra.multiLang"]},{periodKey:"training.week4.period",price:29,youProvideKeys:["training.week4.youProvide.edge","training.week4.youProvide.maintenance","training.week4.youProvide.vendor"],cendraHandlesKeys:["training.week4.cendra.complex","training.week4.cendra.triage","training.week4.cendra.review"]},{periodKey:"training.week12.period",price:39,youProvideKeys:["training.week12.youProvide.refinements","training.week12.youProvide.strategic","training.week12.youProvide.coaching"],cendraHandlesKeys:["training.week12.cendra.total","training.week12.cendra.upsells","training.week12.cendra.insights"]}];function Zd(){const{t:e}=Ae("pricing");return o.jsx("section",{className:"pt-24 pb-12 md:pt-28 md:pb-16 px-4",children:o.jsxs("div",{className:"max-w-3xl mx-auto",children:[o.jsx("div",{className:"text-center mb-10 md:mb-12",children:o.jsx("p",{className:"text-base md:text-lg text-neutral-600 leading-relaxed max-w-2xl mx-auto",children:e("simple.journeyExplainer",{defaultValue:"Cendra starts at $10/unit. As you train her and she learns your operations, automation grows — and so does her price. Most operators reach 75%+ automation within 12 weeks."})})}),o.jsx("div",{className:"hidden md:block mb-10",children:o.jsxs("div",{className:"relative flex items-center justify-between",children:[o.jsx("div",{className:"absolute top-6 left-[12.5%] right-[12.5%] h-0.5 rounded-full",style:{background:"linear-gradient(to right, hsl(345 69% 55% / 0.3), hsl(345 69% 55% / 0.6), hsl(345 69% 55% / 0.3))"}}),ts.map((t,s)=>o.jsxs("div",{className:"relative flex flex-col items-center z-10 w-1/4",children:[o.jsxs("div",{className:"w-12 h-12 rounded-full flex items-center justify-center text-sm font-bold shadow-lg",style:{background:"linear-gradient(135deg, hsl(345 69% 55%), hsl(345 69% 45%))",color:"white",boxShadow:"0 4px 14px -2px hsl(345 69% 55% / 0.4)"},children:["$",t.price]}),o.jsx("p",{className:"text-sm font-medium text-[#0B1120] mt-3",children:e(t.periodKey)})]},s))]})}),o.jsx("div",{className:"md:hidden mb-10",children:o.jsxs("div",{className:"relative flex justify-between items-start px-2",children:[o.jsx("div",{className:"absolute top-5 left-[8%] right-[8%] h-0.5 rounded-full",style:{background:"linear-gradient(to right, hsl(345 69% 55% / 0.3), hsl(345 69% 55% / 0.6), hsl(345 69% 55% / 0.3))"}}),ts.map((t,s)=>o.jsxs("div",{className:"relative flex flex-col items-center z-10",children:[o.jsxs("div",{className:"w-10 h-10 rounded-full flex items-center justify-center text-xs font-bold shadow-md",style:{background:"linear-gradient(135deg, hsl(345 69% 55%), hsl(345 69% 45%))",color:"white",boxShadow:"0 3px 10px -2px hsl(345 69% 55% / 0.4)"},children:["$",t.price]}),o.jsx("p",{className:"text-xs font-medium text-[#0B1120] text-center whitespace-nowrap mt-2",children:e(t.periodKey)})]},s))]})}),o.jsx(Le,{type:"single",collapsible:!0,className:"bg-white rounded-2xl overflow-hidden shadow-lg shadow-neutral-200/50",children:o.jsxs(Ie,{value:"details",className:"border-none",children:[o.jsx(Be,{className:"px-6 py-5 hover:bg-neutral-50 transition-colors [&[data-state=open]>svg]:rotate-180",children:o.jsx("span",{className:"text-sm font-medium text-neutral-500",children:e("simple.seeWhatsInvolved",{defaultValue:"See what's involved at each stage"})})}),o.jsx(Fe,{className:"px-6 pb-6",children:o.jsx("div",{className:"space-y-8",children:ts.map((t,s)=>o.jsxs("div",{className:"border-b border-neutral-100 pb-6 last:border-none last:pb-0",children:[o.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[o.jsxs("div",{className:"w-9 h-9 rounded-full flex items-center justify-center text-xs font-bold",style:{background:"linear-gradient(135deg, hsl(345 69% 55% / 0.15), hsl(345 69% 55% / 0.08))",color:"hsl(345 69% 45%)"},children:["$",t.price]}),o.jsx("span",{className:"font-semibold text-[#0B1120]",children:e(t.periodKey)})]}),o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[o.jsxs("div",{className:"bg-neutral-50 rounded-xl p-5",children:[o.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-neutral-500 mb-3",children:[o.jsx(Ii,{className:"w-4 h-4"}),e("training.youProvide")]}),o.jsx("ul",{className:"space-y-2",children:t.youProvideKeys.map((n,i)=>o.jsxs("li",{className:"text-sm text-[#0B1120] flex items-start gap-2",children:[o.jsx("span",{className:"text-neutral-400 mt-0.5",children:"•"}),e(n)]},i))})]}),o.jsxs("div",{className:"rounded-xl p-5",style:{background:"linear-gradient(135deg, hsl(345 69% 55% / 0.06), hsl(345 69% 55% / 0.02))"},children:[o.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium mb-3",style:{color:"hsl(345 69% 45%)"},children:[o.jsx(Ri,{className:"w-4 h-4"}),e("training.cendraHandles")]}),o.jsx("ul",{className:"space-y-2",children:t.cendraHandlesKeys.map((n,i)=>o.jsxs("li",{className:"text-sm text-[#0B1120] flex items-start gap-2",children:[o.jsx("span",{style:{color:"hsl(345 69% 55%)"},className:"mt-0.5",children:"✓"}),e(n)]},i))})]})]})]},s))})})]})})]})})}const Ai=[{tier:1,guestKey:"simulator.tier1.guest",cendraKey:"simulator.tier1.cendra",workflowKey:"simulator.tier1.workflow"},{tier:2,guestKey:"simulator.tier2.guest",cendraKey:"simulator.tier2.cendra",workflowKey:"simulator.tier2.workflow"},{tier:3,guestKey:"simulator.tier3.guest",cendraKey:"simulator.tier3.cendra",workflowKey:"simulator.tier3.workflow"},{tier:4,guestKey:"simulator.tier4.guest",cendraKey:"simulator.tier4.cendra",workflowKey:"simulator.tier4.workflow"}],Qd={understand:jt,lookup:Za,call:Da,schedule:ns,confirm:Li,check:ns,respond:jt,stripe:Ke},Mi=(e,t=25,s,n)=>{const[i,a]=x.useState(e),[r,l]=x.useState(!0);return x.useEffect(()=>{if(!n){a(e),l(!0);return}a(""),l(!1);let c=0;const d=setInterval(()=>{c<e.length?(a(e.slice(0,c+1)),c++):(l(!0),clearInterval(d))},t);return()=>clearInterval(d)},[e,t,s,n]),{displayedText:i,isComplete:r}},Jd=(e,t,s,n)=>{const[i,a]=x.useState([]),[r,l]=x.useState(!1),c=x.useRef(null),d=x.useRef(e);return x.useEffect(()=>{d.current=e},[e]),x.useEffect(()=>{if(c.current&&clearTimeout(c.current),!s||!n||e.length===0){a(e.map(m=>({key:m,status:"pending"}))),l(!1);return}a(e.map(m=>({key:m,status:"pending"}))),l(!1);let u=0;const h=400,f=()=>{const m=d.current;u<m.length?(a(m.map((p,g)=>({key:p,status:g<u?"complete":g===u?"active":"pending"}))),u++,c.current=setTimeout(f,h)):(a(m.map(p=>({key:p,status:"complete"}))),l(!0))};return c.current=setTimeout(f,50),()=>{c.current&&clearTimeout(c.current)}},[t,s,n,e.length]),{workflowSteps:i,isComplete:r}},eh=({currentTierLevel:e,isActive:t})=>{const{t:s}=Ae("pricing"),[n,i]=x.useState(0),[a,r]=x.useState(!1),l=x.useRef(!1),c=x.useMemo(()=>Ai.find(j=>j.tier===e)||Ai[0],[e]),d=s(c.guestKey),u=s(c.cendraKey),h=s(c.workflowKey,{returnObjects:!0}),f=x.useMemo(()=>Array.isArray(h)?h:[],[e]);x.useEffect(()=>{t&&!l.current&&(l.current=!0,r(!0),queueMicrotask(()=>{i(1)}))},[t]),x.useEffect(()=>{l.current&&a&&i(j=>j+1)},[e,a]);const{displayedText:m,isComplete:p}=Mi(d,12,n,a),{workflowSteps:g,isComplete:v}=Jd(f,n,a,p),{displayedText:w,isComplete:b}=Mi(u,10,v?n:-1,a&&v),y=j=>s(`simulator.steps.${j}`,{defaultValue:j}),T=j=>Qd[j]||jt;return o.jsxs(K.div,{className:"w-full rounded-2xl overflow-hidden",initial:{opacity:.8},animate:{opacity:t?1:.8},transition:{type:"spring",stiffness:300,damping:30},style:{background:"rgba(255, 255, 255, 0.04)",border:"1px solid rgba(255, 255, 255, 0.12)"},children:[o.jsx("div",{className:"flex items-center justify-center gap-2 py-2 border-b border-white/10",children:o.jsxs(K.div,{className:"flex items-center gap-2",animate:{filter:t?"drop-shadow(0 0 8px hsla(var(--accent), 0.5))":"none"},transition:{duration:.3},children:[o.jsx(Ke,{className:`h-3 w-3 transition-colors duration-300 ${t?"text-accent-400":"text-white/40"}`}),o.jsx("span",{className:`text-[10px] sm:text-[11px] uppercase tracking-widest font-semibold transition-colors duration-300 ${t?"text-white/70":"text-white/50"}`,children:s("simulator.label",{defaultValue:"Live Scenario Preview"})}),o.jsx(Ke,{className:`h-3 w-3 transition-colors duration-300 ${t?"text-accent-400":"text-white/40"}`})]})}),o.jsx("div",{className:"px-3 sm:px-4 py-3 sm:py-4",children:o.jsx(tt,{mode:"wait",children:o.jsxs(K.div,{initial:a?{opacity:0}:{opacity:1},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},className:"space-y-3 sm:space-y-4",children:[o.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 sm:gap-4",children:[o.jsxs("div",{className:"flex-1 flex gap-2 sm:gap-3",children:[o.jsx("div",{className:"flex-shrink-0 w-7 h-7 sm:w-8 sm:h-8 rounded-full bg-white/10 border border-white/20 flex items-center justify-center",children:o.jsx(Ii,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4 text-white/60"})}),o.jsxs("div",{className:"flex-1",children:[o.jsx("span",{className:"text-[10px] sm:text-[11px] uppercase tracking-wide text-white/40 font-medium mb-1 block",children:s("simulator.guestLabel",{defaultValue:"Guest"})}),o.jsx("div",{className:"rounded-xl rounded-tl-sm px-3 py-2 sm:px-4 sm:py-2.5 min-h-[48px] sm:min-h-[52px]",style:{background:"rgba(255, 255, 255, 0.08)",border:"1px solid rgba(255, 255, 255, 0.12)"},children:o.jsxs("p",{className:"text-white/90 text-sm sm:text-[15px] leading-relaxed",children:['"',m,'"',a&&!p&&o.jsx(K.span,{animate:{opacity:[1,0]},transition:{repeat:1/0,duration:.5},className:"inline-block w-0.5 h-4 bg-white/60 ml-0.5 align-middle"})]})})]})]}),o.jsxs("div",{className:"flex-1 flex gap-2 sm:gap-3",children:[o.jsx("div",{className:"flex-shrink-0 w-7 h-7 sm:w-8 sm:h-8 rounded-full flex items-center justify-center",style:{background:"linear-gradient(135deg, hsl(var(--primary-600)) 0%, hsl(var(--primary-700)) 100%)",border:"1px solid rgba(255, 255, 255, 0.25)"},children:o.jsx("span",{className:"text-white font-bold text-xs sm:text-sm",children:"C"})}),o.jsxs("div",{className:"flex-1",children:[o.jsx("span",{className:"text-[10px] sm:text-[11px] uppercase tracking-wide text-accent-400/80 font-medium mb-1 block",children:"Cendra"}),o.jsx("div",{className:"rounded-xl rounded-tl-sm px-3 py-2 sm:px-4 sm:py-2.5 min-h-[48px] sm:min-h-[52px]",style:{background:"linear-gradient(135deg, hsla(var(--primary-600), 0.25) 0%, hsla(var(--primary-700), 0.15) 100%)",border:"1px solid hsla(var(--primary-500), 0.3)"},children:o.jsx("p",{className:"text-white/95 text-sm sm:text-[15px] leading-relaxed",children:a&&!v?o.jsx("span",{className:"text-white/40 italic text-sm",children:s("simulator.thinking",{defaultValue:"Working on it..."})}):o.jsxs(o.Fragment,{children:['"',w,'"',a&&v&&!b&&o.jsx(K.span,{animate:{opacity:[1,0]},transition:{repeat:1/0,duration:.5},className:"inline-block w-0.5 h-4 bg-accent-400 ml-0.5 align-middle"})]})})})]})]})]}),a&&p&&f.length>0&&o.jsx(K.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},transition:{duration:.3},className:"px-2 sm:px-4",children:o.jsxs("div",{className:"rounded-lg px-3 py-2.5 sm:px-4 sm:py-3",style:{background:"rgba(255, 255, 255, 0.03)",border:"1px solid rgba(255, 255, 255, 0.08)"},children:[o.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[o.jsx(Ke,{className:"h-3 w-3 text-accent-400/70"}),o.jsx("span",{className:"text-[10px] uppercase tracking-wide text-white/40 font-medium",children:s("simulator.workflowLabel",{defaultValue:"Cendra is working..."})})]}),o.jsx("div",{className:"flex flex-wrap gap-2",children:g.map((j,N)=>{const V=T(j.key);return o.jsxs(K.div,{initial:{opacity:0,scale:.8},animate:{opacity:j.status==="pending"?.4:1,scale:j.status==="active"?1.05:1},transition:{duration:.2},className:`
                            flex items-center gap-1.5 px-2.5 py-1.5 rounded-full text-xs font-medium
                            transition-all duration-200
                            ${j.status==="complete"?"bg-success/20 text-success border border-success/30":j.status==="active"?"bg-accent-400/20 text-accent-400 border border-accent-400/40":"bg-white/5 text-white/40 border border-white/10"}
                          `,children:[j.status==="complete"?o.jsx(Li,{className:"h-3 w-3"}):j.status==="active"?o.jsx(K.div,{animate:{rotate:360},transition:{repeat:1/0,duration:1,ease:"linear"},children:o.jsx(Ma,{className:"h-3 w-3"})}):o.jsx(V,{className:"h-3 w-3"}),o.jsx("span",{children:y(j.key)})]},j.key)})})]})})]},`scenario-${e}`)})})]})},th=({tier:e,isActive:t,onClick:s})=>{const{t:n}=Ae("pricing"),[i,a]=x.useState(!1);return o.jsx(ss,{children:o.jsxs(qe,{children:[o.jsx(_e,{asChild:!0,children:o.jsxs("button",{onClick:s,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),className:`flex-1 min-w-[calc(50%-0.25rem)] sm:min-w-0 pt-4 pb-1.5 sm:pt-4 sm:pb-1.5 px-1.5 sm:px-2 rounded-xl text-center transition-all duration-200 cursor-pointer relative ${t?"bg-accent-500 border border-accent-400 shadow-lg shadow-accent-500/30":i?"bg-white/10 border border-accent-500/50":"bg-white/6 border border-white/18 hover:bg-white/10"}`,"aria-label":`${e.title}: ${e.label}`,children:[e.inviteOnly&&o.jsx("span",{className:"absolute top-1 left-1/2 -translate-x-1/2 text-white text-[8px] sm:text-[9px] font-semibold px-1.5 py-0.5 rounded-full uppercase tracking-wide whitespace-nowrap bg-accent-400 z-10",children:n("widget.inviteOnly",{defaultValue:"Invite only"})}),o.jsx("span",{className:`block text-[9px] sm:text-[10px] font-semibold uppercase tracking-wide ${t?"text-white/90":"text-white/70"} ${e.inviteOnly?"mt-2":""}`,children:e.title}),o.jsxs("span",{className:`block text-sm sm:text-base font-bold ${t?"text-white":"text-white/90"}`,children:["$",e.price]}),o.jsx("span",{className:`block text-[9px] sm:text-[11px] leading-tight font-medium ${t?"text-white/85":"text-white/60"}`,children:n(`widget.tierCaption.${e.level}`,{defaultValue:e.caption})}),o.jsx(tt,{children:i&&!t&&o.jsx(K.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:8},transition:{duration:.15,ease:"easeOut"},className:"absolute -bottom-2.5 left-1/2 -translate-x-1/2 z-10",children:o.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-white text-primary-900 text-[10px] font-bold whitespace-nowrap shadow-lg shadow-black/25",children:[o.jsx(Qa,{className:"h-3 w-3"}),n("widget.previewScenario",{defaultValue:"Preview"})]})})})]})}),e.inviteOnly&&o.jsx(Ge,{side:"bottom",align:"start",className:"bg-neutral-900 text-white border-white/10 max-w-xs text-sm",children:n("widget.inviteOnlyTooltip",{defaultValue:"Advanced workflows are currently invite-only. Pricing remains automation-based."})})]})})},ie=20,sh=(e,t)=>{if(!t)return{main:"rgba(25, 25, 30, 0.7)",glow:"rgba(60, 55, 65, 0.15)",rim:"rgba(80, 75, 85, 0.2)",bloom:"transparent"};const s=e/100,n=70-s*40,i=65+Math.sin(s*Math.PI)*25,a=355-s*10,r=.9-s*.4,l=.5-s*.3;return{main:`linear-gradient(180deg, 
      hsl(${a}, ${i}%, ${n+8}%) 0%, 
      hsl(${a-5}, ${i-5}%, ${n-5}%) 50%, 
      hsl(${a}, ${i}%, ${n+3}%) 100%
    )`,glow:`hsla(${a}, ${i+10}%, ${n+15}%, ${r})`,rim:`hsla(${a+5}, ${i}%, ${n+25}%, 0.5)`,bloom:`hsla(${a}, ${i}%, ${n}%, ${l})`}},nh=e=>{const t=e/100,s=70-t*35,n=70+Math.sin(t*Math.PI)*20,i=355-t*10;return{text:`hsl(${i}, ${n}%, ${Math.min(s+20,85)}%)`,border:`hsla(${i}, ${n}%, ${s+15}%, 0.55)`,glow:`hsla(${i}, ${n}%, ${s}%, 0.35)`,bg:"rgba(30, 20, 25, 0.92)"}},ih=({value:e,isAnimating:t,className:s=""})=>{const n=x.useMemo(()=>Array.from({length:ie},(l,c)=>{const d=c/ie*100,u=(c+1)/ie*100,h=(d+u)/2,f=e>=u||e>d&&e<u,m=f&&(e<u||c===ie-1&&e>=100);return{index:c,isActive:f,isLeadingEdge:m&&e>d,segmentMid:h,colors:sh(h,f)}}),[e]),i=x.useMemo(()=>{for(let l=ie-1;l>=0;l--){const c=l/ie*100;if(e>c)return l}return 0},[e]),a=x.useMemo(()=>nh(e),[e]),r=x.useMemo(()=>(i+.5)/ie*100,[i]);return o.jsxs("div",{className:`relative w-full ${s}`,children:[o.jsx(K.div,{className:"absolute -top-6 z-20 pointer-events-none",initial:!1,animate:{left:`${r}%`,x:"-50%"},transition:{duration:t?.2:.35,ease:[.4,0,.2,1]},children:o.jsxs(K.div,{className:"px-2 py-0.5 rounded-full font-mono text-xs font-bold tracking-wider",style:{background:a.bg,color:a.text,border:`1px solid ${a.border}`,boxShadow:`0 0 12px ${a.glow}, 0 2px 8px rgba(0,0,0,0.4)`,backdropFilter:"blur(8px)"},children:[e,"%"]})}),o.jsxs("div",{className:"relative h-3 rounded-full overflow-visible",style:{background:`
            linear-gradient(180deg, 
              rgba(20, 18, 22, 1) 0%, 
              rgba(12, 10, 15, 1) 40%,
              rgba(15, 13, 18, 1) 60%,
              rgba(20, 18, 22, 1) 100%
            )
          `,boxShadow:`
            inset 0 1px 3px rgba(0, 0, 0, 0.6),
            inset 0 -1px 2px rgba(0, 0, 0, 0.4),
            0 1px 0 rgba(255, 255, 255, 0.02)
          `},children:[o.jsx("div",{className:"absolute -top-px left-1 right-1 h-px rounded-full",style:{background:"linear-gradient(90deg, transparent 0%, rgba(180, 120, 140, 0.15) 20%, rgba(180, 120, 140, 0.2) 50%, rgba(180, 120, 140, 0.15) 80%, transparent 100%)"}}),o.jsx("div",{className:"absolute -bottom-px left-1 right-1 h-px rounded-full",style:{background:"linear-gradient(90deg, transparent 0%, rgba(150, 100, 120, 0.12) 20%, rgba(150, 100, 120, 0.15) 50%, rgba(150, 100, 120, 0.12) 80%, transparent 100%)"}}),o.jsx("div",{className:"absolute inset-0 rounded-full overflow-hidden",children:n.map(l=>l.isActive&&o.jsx(K.div,{className:"absolute top-0 bottom-0",style:{left:`${l.index/ie*100}%`,width:`${100/ie+2}%`},initial:!1,animate:{opacity:l.isActive?1:0,background:`radial-gradient(ellipse 120% 200% at 50% 50%, ${l.colors.bloom} 0%, transparent 70%)`},transition:{duration:.2,delay:t?l.index*.015:0}},`bloom-${l.index}`))}),o.jsx("div",{className:"absolute inset-0 flex gap-[2px] px-[3px] py-[2px]",children:n.map(l=>o.jsxs(K.div,{className:"flex-1 rounded-[2px] relative overflow-hidden",initial:!1,animate:{opacity:l.isActive?1:.5},transition:{duration:t?.08:.2,delay:t?l.index*.015:0},children:[o.jsx("div",{className:"absolute inset-0 rounded-[2px]",style:{background:(l.isActive,l.colors.main),boxShadow:l.isActive?`
                        inset 0 1px 1px rgba(255,255,255,0.3),
                        inset 0 -1px 1px rgba(0,0,0,0.3),
                        0 0 6px ${l.colors.bloom}
                      `:`
                        inset 0 1px 1px rgba(255,255,255,0.05),
                        inset 0 -1px 1px rgba(0,0,0,0.3),
                        inset 0 0 4px rgba(0,0,0,0.4)
                      `}}),o.jsx("div",{className:"absolute inset-x-0 top-0 h-[1px] rounded-t-[2px]",style:{background:`linear-gradient(90deg, transparent 10%, ${l.colors.rim} 50%, transparent 90%)`}}),l.isActive&&o.jsx(K.div,{className:"absolute inset-0 rounded-[2px]",initial:!1,animate:{opacity:l.isLeadingEdge?[.65,1,.65]:.8},transition:{duration:l.isLeadingEdge?2:.2,repeat:l.isLeadingEdge?1/0:0,ease:"easeInOut"},style:{background:`radial-gradient(ellipse 80% 120% at 50% 30%, ${l.colors.glow} 0%, transparent 60%)`}}),o.jsx("div",{className:"absolute inset-x-[15%] top-[2px] h-[3px] rounded-full opacity-40",style:{background:l.isActive?"linear-gradient(180deg, rgba(255,255,255,0.45) 0%, transparent 100%)":"linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%)"}})]},l.index))}),o.jsx("div",{className:"absolute inset-0 pointer-events-none rounded-full",style:{background:"linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 30%, rgba(0,0,0,0.08) 100%)"}})]}),o.jsx("div",{className:"absolute left-3 right-3 h-px top-[14px] rounded-full opacity-50",style:{background:"linear-gradient(90deg, transparent 0%, rgba(150, 100, 120, 0.1) 30%, rgba(150, 100, 120, 0.15) 50%, rgba(150, 100, 120, 0.1) 70%, transparent 100%)"}})]})},$e=[{level:1,price:10,minAuto:0,maxAuto:25,label:"0-25%",title:"Associate",caption:"Learning Mode",representativeValue:25,inviteOnly:!1},{level:2,price:19,minAuto:26,maxAuto:50,label:"26-50%",title:"Specialist",caption:"Building Confidence",representativeValue:50,inviteOnly:!1},{level:3,price:29,minAuto:51,maxAuto:75,label:"51-75%",title:"Manager",caption:"Guardrails Active",representativeValue:75,inviteOnly:!1},{level:4,price:39,minAuto:76,maxAuto:100,label:"76-100%",title:"Director",caption:"Advanced Workflows",representativeValue:100,inviteOnly:!0}],rh=e=>e<=25?$e[0]:e<=50?$e[1]:e<=75?$e[2]:$e[3],ah=({automationLevel:e,onAutomationChange:t,properties:s,onPropertiesChange:n}={})=>{const{t:i}=Ae("pricing"),a=ks(),[r,l]=x.useState(20),[c,d]=x.useState(50),[u,h]=x.useState(!1),[f,m]=x.useState(!0),p=x.useRef(null),g=e??r,v=s??c,w=x.useCallback(M=>{t?t(M):l(M)},[t]),b=x.useCallback(M=>{n?n(M):d(M)},[n]),y=x.useMemo(()=>rh(g),[g]),T=v===""?0:Math.max(v,0),j=y.price*T,N=x.useCallback(M=>{const R=M.target.value;if(R===""){b("");return}const z=parseInt(R,10);!isNaN(z)&&z>=0&&(b(Math.min(z,9999)),z>0&&te("properties_widget",z))},[]),V=x.useCallback(()=>{const R=Math.min((v===""?0:v)+1,9999);b(R),te("properties_widget",R)},[v,b]),C=x.useCallback(()=>{const R=Math.max((v===""?0:v)-1,0);b(R),R>0&&te("properties_widget",R)},[v,b]),k=x.useCallback(M=>{m(!0);const R=M.representativeValue,z=g,ve=200,de=performance.now();p.current&&cancelAnimationFrame(p.current),h(!0);const he=at=>{const B=at-de,F=Math.min(B/ve,1),S=1-Math.pow(1-F,3),A=Math.round(z+(R-z)*S);w(A),F<1?p.current=requestAnimationFrame(he):(h(!1),p.current=null)};p.current=requestAnimationFrame(he),te("tier_click",M.level)},[g,w]),E=x.useCallback(()=>{Tt("widget_hire_me","pricing"),a("/get-started")},[a]);return o.jsx("div",{className:"w-full max-w-3xl mx-auto px-4 sm:px-0",children:o.jsxs("div",{className:"bg-primary-900/85 backdrop-blur-xl rounded-2xl overflow-hidden shadow-2xl",style:{boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.5)",border:"1px solid rgba(255, 255, 255, 0.25)"},children:[o.jsx("div",{className:"px-4 sm:px-5 lg:px-6 pt-4 sm:pt-5 pb-3",children:o.jsx("p",{className:"text-white/85 text-[15px] sm:text-base text-center max-w-xl mx-auto leading-relaxed",children:i("widget.subtitle",{defaultValue:"Pay for results. Your tier updates monthly based on the % of tasks Cendra automates."})})}),o.jsx("div",{className:"mx-4 sm:mx-5 lg:mx-6 border-t border-white/15"}),o.jsxs("div",{className:"px-4 sm:px-5 lg:px-6 py-2.5 sm:py-3",children:[o.jsxs("div",{className:"flex items-center justify-between gap-3 mb-2",children:[o.jsx("span",{className:"text-[13px] sm:text-sm text-white/75 font-medium",children:i("widget.sliderLabel",{defaultValue:"Automation estimate"})}),o.jsx(ss,{delayDuration:0,children:o.jsxs(qe,{children:[o.jsx(_e,{asChild:!0,children:o.jsx("button",{className:"text-white/50 hover:text-white/80 transition-colors",children:o.jsx(St,{className:"h-3.5 w-3.5"})})}),o.jsx(Ge,{side:"bottom",align:"end",sideOffset:8,className:"bg-neutral-900 text-white border-white/10 max-w-[200px] text-sm z-[60]",children:i("widget.meterTooltip",{defaultValue:"Click the tier cards below to see how pricing scales."})})]})})]}),o.jsx(ih,{value:g,isAnimating:u})]}),o.jsx("div",{className:"px-4 sm:px-5 lg:px-6 pt-2 pb-2",children:o.jsx("div",{className:"flex flex-wrap sm:flex-nowrap gap-1.5 sm:gap-2",children:$e.map(M=>o.jsx(th,{tier:M,isActive:y.level===M.level,onClick:()=>k(M)},M.level))})}),o.jsxs("div",{className:"px-4 sm:px-5 lg:px-6 pb-3",children:[o.jsx(eh,{currentTierLevel:y.level,isActive:f}),o.jsx("p",{className:"text-[11px] sm:text-xs text-white/50 text-center mt-2.5 leading-relaxed max-w-sm mx-auto",children:i("widget.reassuranceShort",{defaultValue:"We only upgrade your tier when we successfully automate tasks."})})]}),o.jsx("div",{className:"px-4 sm:px-6 py-4 sm:py-5",style:{background:"rgba(255, 255, 255, 0.05)",borderTop:"1px solid rgba(255, 255, 255, 0.15)"},children:o.jsxs("div",{className:"flex flex-wrap md:flex-nowrap items-center gap-4 md:gap-4",children:[o.jsx("div",{className:"flex-shrink-0 w-[calc(50%-0.5rem)] md:w-auto",children:o.jsx("p",{className:"text-white font-bold leading-none",style:{fontSize:"clamp(24px, 4vw, 32px)"},children:i("widget.pricePerUnit",{price:y.price,defaultValue:`$${y.price} / listing`})})}),o.jsx("div",{className:"hidden md:block w-px h-12 bg-white/20 flex-shrink-0"}),o.jsxs("div",{className:"flex-shrink-0 w-[calc(50%-0.5rem)] md:w-auto",children:[o.jsxs("div",{className:"flex items-center gap-1 mb-1",children:[o.jsx("label",{htmlFor:"properties-input",className:"text-[10px] sm:text-[11px] uppercase tracking-wider text-white/60 font-semibold",children:i("widget.properties",{defaultValue:"Units"})}),o.jsx(ss,{delayDuration:0,children:o.jsxs(qe,{children:[o.jsx(_e,{asChild:!0,children:o.jsx("button",{className:"text-white/40 hover:text-white/70 transition-colors",children:o.jsx(St,{className:"h-3 w-3"})})}),o.jsx(Ge,{side:"top",align:"start",sideOffset:8,className:"bg-neutral-900 text-white border-white/10 max-w-[180px] text-sm z-[60]",children:i("widget.unitsTooltip",{defaultValue:"Rooms, apartments, or entire homes"})})]})})]}),o.jsxs("div",{className:"flex items-center gap-0",children:[o.jsx("button",{type:"button",onClick:C,disabled:T<=0,className:"flex items-center justify-center w-10 h-10 rounded-l-lg bg-white/10 border border-white/25 border-r-0 text-white/80 hover:bg-white/15 hover:text-white active:scale-95 transition-all disabled:opacity-40 disabled:cursor-not-allowed touch-manipulation","aria-label":"Decrease units",children:o.jsx(Vs,{className:"h-4 w-4"})}),o.jsx(re,{id:"properties-input",type:"number",inputMode:"numeric",min:"0",max:"9999",value:v,onChange:N,placeholder:"50",className:"bg-white/10 border-white/25 text-white placeholder:text-white/40 h-10 w-16 text-center text-base font-semibold rounded-none border-x-0 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"}),o.jsx("button",{type:"button",onClick:V,disabled:T>=9999,className:"flex items-center justify-center w-10 h-10 rounded-r-lg bg-white/10 border border-white/25 border-l-0 text-white/80 hover:bg-white/15 hover:text-white active:scale-95 transition-all disabled:opacity-40 disabled:cursor-not-allowed touch-manipulation","aria-label":"Increase units",children:o.jsx(As,{className:"h-4 w-4"})})]})]}),o.jsx("div",{className:"hidden md:block w-px h-12 bg-white/20 flex-shrink-0"}),o.jsxs("div",{className:"flex-shrink-0 w-[calc(50%-0.5rem)] md:w-auto md:flex-1",children:[o.jsx("p",{className:"text-[10px] sm:text-[11px] uppercase tracking-wider text-white/60 font-semibold mb-1",children:i("widget.totalMonthly",{defaultValue:"Total Monthly"})}),o.jsxs("p",{className:"text-white font-bold leading-none",style:{fontSize:"clamp(28px, 5vw, 36px)"},children:["$",j.toLocaleString()]})]}),o.jsx("div",{className:"flex-shrink-0 w-full md:w-auto flex items-end md:items-center",children:o.jsxs(pe,{onClick:E,className:"w-full md:w-auto text-white font-semibold h-11 px-6 rounded-xl shadow-lg transition-all hover:shadow-xl hover:scale-[1.02] text-base whitespace-nowrap",style:{background:"linear-gradient(135deg, hsl(var(--accent)) 0%, hsl(var(--accent-400)) 100%)",boxShadow:"0 8px 24px -6px hsla(345, 69%, 55%, 0.35)"},children:[i("widget.hireMe",{defaultValue:"Hire Me"}),o.jsx(Ye,{className:"ml-1.5 h-4 w-4 flex-shrink-0"})]})})]})})]})})},ht=[{level:1,price:10,minAuto:0,maxAuto:25},{level:2,price:19,minAuto:26,maxAuto:50},{level:3,price:29,minAuto:51,maxAuto:75},{level:4,price:39,minAuto:76,maxAuto:100}],oh=e=>e<=25?ht[0]:e<=50?ht[1]:e<=75?ht[2]:ht[3],lh=2500,ch=({automationLevel:e,properties:t,onPropertiesChange:s})=>{const{t:n}=Ae("pricing"),i=ks(),a=Ja(),[r,l]=x.useState(!1),c=oh(e),d=t===""?0:Math.max(t,0),u=c.price*d;x.useEffect(()=>{const w=()=>{const b=window.scrollY,y=document.getElementById("roi-section");if(y){const T=y.getBoundingClientRect().bottom+b;l(b>T)}else l(b>lh)};return window.addEventListener("scroll",w,{passive:!0}),w(),()=>window.removeEventListener("scroll",w)},[]);const h=x.useCallback(w=>{const b=w.target.value;if(b===""){s("");return}const y=parseInt(b,10);!isNaN(y)&&y>=0&&(s(Math.min(y,9999)),y>0&&te("sticky_bar_units",y))},[s]),f=x.useCallback(()=>{const b=Math.min((t===""?0:t)+1,9999);s(b),te("sticky_bar_units",b)},[t,s]),m=x.useCallback(()=>{const b=Math.max((t===""?0:t)-1,0);s(b),b>0&&te("sticky_bar_units",b)},[t,s]),p=x.useCallback(()=>{r?(s(1),Tt("sticky_bar_free_trial","pricing")):Tt("sticky_bar_hire_me","pricing"),i("/get-started")},[i,r,s]),g=r?n("widget.freeTrial",{defaultValue:"Start Free Trial"}):n("widget.hireMe",{defaultValue:"Hire Me"}),v=r?{background:"linear-gradient(135deg, hsl(var(--success)) 0%, hsl(168, 80%, 40%) 100%)",boxShadow:"0 8px 24px -6px hsla(168, 70%, 45%, 0.4)"}:{background:"linear-gradient(135deg, hsl(var(--accent)) 0%, hsl(var(--accent-400)) 100%)",boxShadow:"0 8px 24px -6px hsla(345, 69%, 55%, 0.35)"};return a?o.jsx(K.div,{initial:{y:"100%",opacity:0},animate:{y:0,opacity:1},exit:{y:"100%",opacity:0},transition:{type:"spring",stiffness:300,damping:30,mass:.8},className:"fixed bottom-0 left-0 w-full z-[100]",children:o.jsxs("div",{className:"flex items-center justify-between px-4 py-3 pb-6",style:{background:"rgba(11, 17, 32, 0.98)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderTop:"1px solid rgba(255, 255, 255, 0.1)"},children:[o.jsxs("div",{className:"flex flex-col",children:[o.jsxs("span",{className:"text-xs text-white/50",children:[d," ",n("widget.properties",{defaultValue:"units"})]}),o.jsx("div",{className:"flex items-baseline gap-1",children:o.jsx("span",{className:"text-lg font-bold text-white",children:n("widget.totalPerMonth",{price:u.toLocaleString(),defaultValue:`$${u.toLocaleString()} / mo`})})})]}),o.jsx("div",{className:"flex-shrink-0",children:o.jsx(pe,{onClick:p,className:"text-white font-semibold h-11 px-5 rounded-full shadow-lg transition-all hover:shadow-xl text-sm overflow-hidden",style:v,children:o.jsx(tt,{mode:"wait",children:o.jsxs(K.span,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},className:"flex items-center whitespace-nowrap",children:[g,o.jsx(Ye,{className:"ml-1.5 h-4 w-4"})]},r?"trial":"hire")})})})]})}):o.jsx(K.div,{initial:{y:"-100%",opacity:0},animate:{y:0,opacity:1},exit:{y:"-100%",opacity:0},transition:{type:"spring",stiffness:300,damping:30,mass:.8},className:"fixed top-6 left-0 right-0 z-[100] w-[95%] max-w-4xl mx-auto",children:o.jsxs("div",{className:"flex items-center justify-between rounded-full px-4 py-3",style:{background:"rgba(11, 17, 32, 0.95)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",border:"1px solid rgba(255, 255, 255, 0.1)",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05)"},children:[o.jsx(Ea,{to:"/",className:"flex-shrink-0 cursor-pointer hover:opacity-80 transition-opacity mr-3","aria-label":"Go to homepage",children:o.jsx("img",{src:Ra,alt:"Cendra",className:"h-6 w-auto brightness-0 invert"})}),o.jsx("div",{className:"h-8 w-px bg-white/10 mr-4 flex-shrink-0"}),o.jsx("div",{className:"flex-shrink-0",children:o.jsx("span",{className:"text-white font-bold text-xl",children:n("widget.pricePerUnit",{price:c.price,defaultValue:`$${c.price} / listing`})})}),o.jsx("div",{className:"h-8 w-px bg-white/10 mx-4 flex-shrink-0"}),o.jsxs("div",{className:"flex items-center gap-0 flex-shrink-0",children:[o.jsx("span",{className:"text-[10px] uppercase tracking-wider text-white/50 font-semibold mr-2",children:n("widget.properties",{defaultValue:"Units"})}),o.jsx("button",{type:"button",onClick:m,disabled:d<=0,className:"flex items-center justify-center w-9 h-9 rounded-full bg-white/10 text-white/70 hover:bg-white/20 hover:text-white active:scale-95 transition-all disabled:opacity-40 disabled:cursor-not-allowed touch-manipulation","aria-label":"Decrease units",children:o.jsx(Vs,{className:"h-3.5 w-3.5"})}),o.jsx(re,{type:"number",inputMode:"numeric",min:"0",max:"9999",value:t,onChange:h,placeholder:"50",className:"bg-transparent border-none text-white placeholder:text-white/40 h-9 w-14 text-center text-lg font-semibold focus-visible:ring-0 focus-visible:ring-offset-0 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"}),o.jsx("button",{type:"button",onClick:f,disabled:d>=9999,className:"flex items-center justify-center w-9 h-9 rounded-full bg-white/10 text-white/70 hover:bg-white/20 hover:text-white active:scale-95 transition-all disabled:opacity-40 disabled:cursor-not-allowed touch-manipulation","aria-label":"Increase units",children:o.jsx(As,{className:"h-3.5 w-3.5"})})]}),o.jsx("div",{className:"h-8 w-px bg-white/10 mx-4 flex-shrink-0"}),o.jsxs("div",{className:"flex items-center gap-4 flex-shrink-0",children:[o.jsx("div",{className:"text-right",children:o.jsx("span",{className:"text-white font-bold text-xl",children:n("widget.totalPerMonth",{price:u.toLocaleString(),defaultValue:`$${u.toLocaleString()} / mo`})})}),o.jsx(pe,{onClick:p,className:"text-white font-semibold h-10 px-5 rounded-full shadow-lg transition-all hover:shadow-xl hover:scale-[1.02] text-base overflow-hidden min-w-[140px]",style:v,children:o.jsx(tt,{mode:"wait",children:o.jsxs(K.span,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},className:"flex items-center whitespace-nowrap",children:[g,o.jsx(Ye,{className:"ml-1 h-4 w-4"})]},r?"trial":"hire")})})]})]})})},ft={nightlyRate:150,occupiedDaysPerMonth:21,avgLengthOfStay:3,questionsPerStay:20,minutesPerQuestion:10,laborCostPerHour:10,lostInquiryRate:.03,upsellRate:.05,avgUpsellValue:75},mt=[{level:1,price:10,minAuto:0,maxAuto:25,label:"0-25%",title:"Associate"},{level:2,price:19,minAuto:25,maxAuto:50,label:"25-50%",title:"Specialist"},{level:3,price:29,minAuto:50,maxAuto:75,label:"50-75%",title:"Manager"},{level:4,price:39,minAuto:75,maxAuto:100,label:"75%+",title:"Director"}],uh=[{icon:jt,labelKey:"simple.features.guestComm"},{icon:qa,labelKey:"simple.features.multiLang"},{icon:ns,labelKey:"simple.features.bookingMods"},{icon:_a,labelKey:"simple.features.policies"},{icon:Ga,labelKey:"simple.features.upsells"},{icon:Ke,labelKey:"simple.features.dashboard"}],Di=[{questionKey:"faq.hiring.howLongTraining.question",answerKey:"faq.hiring.howLongTraining.answer"},{questionKey:"faq.hiring.whatIfMistake.question",answerKey:"faq.hiring.whatIfMistake.answer"},{questionKey:"faq.hiring.canPauseCancel.question",answerKey:"faq.hiring.canPauseCancel.answer"},{questionKey:"faq.hiring.allFeaturesUnlock.question",answerKey:"faq.hiring.allFeaturesUnlock.answer"}],Ei=[{questionKey:"faq.pricing.howDefineAutomation.question",answerKey:"faq.pricing.howDefineAutomation.answer"},{questionKey:"faq.pricing.whyPriceIncrease.question",answerKey:"faq.pricing.whyPriceIncrease.answer"},{questionKey:"faq.pricing.howValueCalculated.question",answerKey:"faq.pricing.howValueCalculated.answer"}],be=[{quoteKey:"testimonials.maria.quote",author:"Maria Santos",roleKey:"testimonials.maria.role",portfolioSizeKey:"testimonials.maria.portfolioSize"},{quoteKey:"testimonials.james.quote",author:"James Thompson",roleKey:"testimonials.james.role",portfolioSizeKey:"testimonials.james.portfolioSize"},{quoteKey:"testimonials.sarah.quote",author:"Sarah Liu",roleKey:"testimonials.sarah.role",portfolioSizeKey:"testimonials.sarah.portfolioSize"}],dh=e=>{for(let t=mt.length-1;t>=0;t--)if(e>=mt[t].minAuto)return mt[t];return mt[0]},hh=(e,t,s,n,i,a,r)=>{const l=t*s/n,c=l*i,d=c*(e/100),u=d*a/60*r,f=s*ft.nightlyRate*t*ft.lostInquiryRate*(e/100),m=l*ft.upsellRate*ft.avgUpsellValue*(e/100),p=f+m;return{monthlyQuestions:Math.round(c),automatedQuestions:Math.round(d),costSaved:Math.round(u),revenueUplift:Math.round(p),totalValue:Math.round(u+p)}},Ah=()=>{const{t:e}=Ae("pricing");La();const t=ks();Ia({pageName:"pricing"}),Ba({pageName:"pricing"}),x.useEffect(()=>{Fa()},[]);const[s,n]=x.useState(!1);x.useEffect(()=>{const S=()=>{n(window.scrollY>700)};return window.addEventListener("scroll",S,{passive:!0}),()=>window.removeEventListener("scroll",S)},[]);const[i,a]=x.useState(20),[r,l]=x.useState(50),c=x.useCallback(S=>{l(S),typeof S=="number"&&S>0&&te("shared_units",S)},[]),[d,u]=x.useState(50),[h,f]=x.useState(21),[m,p]=x.useState(3),[g,v]=x.useState(20),[w,b]=x.useState(10),[y,T]=x.useState(10),j=r===""?1:Math.max(r,1);x.useEffect(()=>{u(j)},[j]);const N=x.useMemo(()=>dh(i),[i]),V=x.useMemo(()=>hh(i,d,h,m,g,w,y),[i,d,h,m,g,w,y]),C=x.useMemo(()=>N.price*Math.max(d,1),[N.price,d]),k=x.useMemo(()=>C>0?V.totalValue/C:0,[V.totalValue,C]),E=ot(V.costSaved,400),M=ot(V.revenueUplift,400),R=ot(C,400),z=ot(Math.round(k*10),400),[ve,de]=x.useState(!1),he={1:15,2:35,3:65,4:85},at=x.useCallback(S=>{ve||(a(S[0]),un("automation",S[0]))},[ve]);x.useCallback(S=>{const A=he[S.level];de(!0);const _=i,Ta=performance.now(),Sa=250,ln=Pa=>{const Ca=Pa-Ta,cn=Math.min(Ca/Sa,1),Na=1-Math.pow(1-cn,3),ka=Math.round(_+(A-_)*Na);a(ka),cn<1?requestAnimationFrame(ln):(de(!1),un("automation",A),te("tier_card_click",S.level))};requestAnimationFrame(ln)},[i]),x.useCallback(S=>{const A=S.target.value;if(A===""){l("");return}const _=parseInt(A,10);!isNaN(_)&&_>=0&&(l(Math.min(_,1e3)),_>0&&te("portfolio_size",_))},[]);const B=x.useCallback(()=>{Tt("hire_cendra_today","pricing"),t("/get-started")},[t]),F=x.useCallback(S=>{const A=document.getElementById(S);A&&A.scrollIntoView({behavior:"smooth",block:"start"})},[]);return o.jsxs(o.Fragment,{children:[o.jsx(Oa,{title:e("meta.title"),description:e("meta.description"),ogTitle:e("meta.ogTitle"),ogDescription:e("meta.ogDescription"),canonicalPath:"/pricing"}),o.jsx($a,{items:[{name:"Home",path:"/"},{name:e("meta.title"),path:"/pricing"}]}),o.jsx(Ka,{items:[...Di,...Ei].map(S=>({question:e(S.questionKey),answer:e(S.answerKey)}))}),o.jsx(tt,{children:s&&o.jsx(ch,{automationLevel:i,properties:r,onPropertiesChange:c})}),o.jsxs("div",{className:"relative overflow-x-clip",children:[o.jsx("div",{id:"pricing-hero",className:"scroll-mt-24",children:o.jsx(Ya,{minHeight:"auto",showScrollCue:!1,scrollTargetId:"pricing-content",children:o.jsxs("div",{className:"px-4 sm:px-6 lg:px-8 animate-fade-in",style:{paddingTop:"clamp(72px, 9vh, 100px)",paddingBottom:"clamp(20px, 3vh, 32px)"},children:[o.jsxs("div",{className:"max-w-3xl mx-auto text-center",style:{marginBottom:"clamp(14px, 2vh, 20px)"},children:[o.jsx("h1",{className:"font-bold text-white tracking-tight animate-fade-in",style:{fontSize:"clamp(26px, 4.5vw, 48px)",lineHeight:"1.1",marginBottom:"clamp(6px, 1vh, 10px)"},children:e("hero.title")}),o.jsx("p",{className:"text-white/65 leading-relaxed max-w-lg mx-auto animate-fade-in",style:{animationDelay:"80ms",fontSize:"clamp(14px, 1.5vw, 17px)"},children:e("simple.heroSubtitle",{defaultValue:"Performance-based pricing. Starts at $10 / unit."})})]}),o.jsx("div",{className:"animate-fade-in",style:{animationDelay:"120ms"},children:o.jsx(ah,{automationLevel:i,onAutomationChange:a,properties:r,onPropertiesChange:c})}),o.jsx("div",{className:"w-full mx-auto mt-4 px-4 sm:px-0 animate-fade-in",style:{maxWidth:"min(1100px, 92vw)",animationDelay:"200ms"},children:o.jsxs("div",{className:"flex flex-wrap justify-center items-center gap-x-4 gap-y-2 py-3 px-4 sm:px-5 rounded-xl",style:{background:"rgba(255, 255, 255, 0.06)",border:"1px solid rgba(255, 255, 255, 0.15)"},children:[o.jsx("button",{onClick:()=>F("automation-rate-explained"),className:"text-sm text-white/75 hover:text-white transition-colors underline underline-offset-4 decoration-white/40 hover:decoration-white/70 py-1 px-1 min-h-[44px] flex items-center",children:e("simple.howAutomationWorks",{defaultValue:"How automation rate works"})}),o.jsx("span",{className:"text-white/30 hidden sm:inline",children:"•"}),o.jsx("button",{onClick:()=>F("value-created"),className:"text-sm text-white/75 hover:text-white transition-colors underline underline-offset-4 decoration-white/40 hover:decoration-white/70 py-1 px-1 min-h-[44px] flex items-center",children:e("simple.seeValueCreated",{defaultValue:"See how value is created"})}),o.jsx("span",{className:"text-white/30 hidden sm:inline",children:"•"}),o.jsx("button",{onClick:()=>F("how-pricing-works"),className:"text-sm text-white/75 hover:text-white transition-colors underline underline-offset-4 decoration-white/40 hover:decoration-white/70 py-1 px-1 min-h-[44px] flex items-center",children:e("simple.howPricingWorks",{defaultValue:"How pricing works"})})]})})]})})}),o.jsx(Xa,{id:"pricing-content",children:o.jsxs("main",{className:"bg-background",role:"main",children:[o.jsx(Zd,{}),o.jsx("section",{id:"automation-rate-explained",className:"py-12 md:py-16 px-4 bg-neutral-50 scroll-mt-24",children:o.jsxs("div",{className:"max-w-3xl mx-auto",children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsx("h2",{className:"text-xl md:text-2xl font-bold text-[#0B1120] mb-2",children:e("simple.whatCountsTitle",{defaultValue:"What counts as automated"})}),o.jsx("p",{className:"text-sm text-neutral-600",children:e("simple.whatCountsSubtitle",{defaultValue:"We only charge for end-to-end resolutions. If you have to step in, it's on us."})})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:[o.jsxs("div",{className:"bg-white rounded-2xl p-6 shadow-lg shadow-neutral-200/50 border border-green-100",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[o.jsx("div",{className:"w-6 h-6 rounded-full flex items-center justify-center bg-green-500",children:o.jsx(Ri,{className:"h-3.5 w-3.5 text-white"})}),o.jsx("span",{className:"font-semibold text-[#0B1120]",children:e("simple.automatedTitle",{defaultValue:"✅ Fully Resolved (Billable)"})})]}),o.jsx("p",{className:"text-sm text-neutral-600 mb-4 pl-8",children:e("simple.automatedDefinition",{defaultValue:"Cendra handles the request end-to-end based on your rules."})}),o.jsxs("ul",{className:"space-y-3 text-sm text-neutral-700",children:[o.jsxs("li",{className:"flex items-start gap-2",children:[o.jsx("span",{className:"text-green-500 mt-0.5 font-medium",children:"•"}),e("simple.automatedExample1",{defaultValue:'Guest asks "Can I check in early?" → Cendra checks your calendar availability → Approves or Declines automatically.'})]}),o.jsxs("li",{className:"flex items-start gap-2",children:[o.jsx("span",{className:"text-green-500 mt-0.5 font-medium",children:"•"}),e("simple.automatedExample2",{defaultValue:"Guest reports a leak → Cendra identifies the issue → Auto-dispatches your preferred plumber (Director Tier)."})]})]})]}),o.jsxs("div",{className:"bg-white rounded-2xl p-6 shadow-lg shadow-neutral-200/50 border border-neutral-200",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[o.jsx("div",{className:"w-6 h-6 rounded-full flex items-center justify-center bg-neutral-200",children:o.jsx("span",{className:"text-neutral-500 text-xs font-bold",children:"×"})}),o.jsx("span",{className:"font-semibold text-[#0B1120]",children:e("simple.humanLoopTitle",{defaultValue:"× Human Loop (Free)"})})]}),o.jsx("p",{className:"text-sm text-neutral-600 mb-4 pl-8",children:e("simple.humanLoopDefinition",{defaultValue:'Cendra drafts the response, but waits for you to click "Send."'})}),o.jsxs("ul",{className:"space-y-3 text-sm text-neutral-700",children:[o.jsxs("li",{className:"flex items-start gap-2",children:[o.jsx("span",{className:"text-neutral-400 mt-0.5 font-medium",children:"•"}),o.jsx("span",{children:e("simple.notAutomatedExample1",{defaultValue:'Guest asks "Can I bring a dog?" → Cendra drafts a policy rejection but flags it for your review (Draft Mode).'})})]}),o.jsxs("li",{className:"flex items-start gap-2",children:[o.jsx("span",{className:"text-neutral-400 mt-0.5 font-medium",children:"•"}),o.jsx("span",{children:e("simple.notAutomatedExample2",{defaultValue:"Guest asks a question not in your Knowledge Base → Cendra alerts you to provide the answer (Learning Moment)."})})]})]})]})]})]})}),o.jsx("section",{id:"faq-hiring",className:"py-14 md:py-20 px-4 bg-white scroll-mt-[calc(var(--nav-height)+16px)]",children:o.jsxs("div",{className:"max-w-3xl mx-auto",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-[#0B1120] text-center mb-10",children:e("faq.hiringTitle")}),o.jsx(Le,{type:"single",collapsible:!0,className:"space-y-3",children:Di.map((S,A)=>o.jsxs(Ie,{value:`hiring-faq-${A}`,className:"bg-white rounded-2xl px-6 shadow-lg shadow-neutral-200/50",children:[o.jsx(Be,{onClick:()=>dn(e(S.questionKey)),className:"text-left text-[#0B1120] hover:text-neutral-700 py-5",children:e(S.questionKey)}),o.jsx(Fe,{className:"text-neutral-600 pb-5",children:e(S.answerKey)})]},A))})]})}),o.jsx("section",{id:"value-created",className:"py-14 md:py-20 px-4 scroll-mt-24 bg-neutral-50",children:o.jsxs("div",{className:"max-w-4xl mx-auto",children:[o.jsxs("div",{className:"text-center mb-10",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-[#0B1120] mb-3",children:e("simple.valueCreatedTitle",{defaultValue:"See how value is created"})}),o.jsxs("p",{className:"text-neutral-600 flex items-center justify-center gap-2",children:[e("simple.valueCreatedSubtitle",{defaultValue:"Transparent assumptions. Adjust the inputs to match your portfolio."}),o.jsxs(qe,{children:[o.jsx(_e,{children:o.jsx(St,{className:"h-4 w-4 text-neutral-400"})}),o.jsx(Ge,{className:"max-w-xs",children:o.jsx("p",{children:e("simple.valueCreatedTooltip",{defaultValue:"These estimates are based on industry averages. Adjust the inputs below to match your specific portfolio."})})})]})]})]}),o.jsxs("div",{className:"bg-white rounded-3xl p-6 md:p-10 shadow-2xl shadow-[#0B1120]/5",children:[o.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-10",children:[o.jsxs("div",{className:"bg-white rounded-2xl p-5 text-center border border-neutral-100 shadow-sm",children:[o.jsx("p",{className:"text-[10px] text-neutral-500 mb-2 uppercase tracking-widest font-medium",children:e("roiCalculator.cendrasFee")}),o.jsx("p",{className:"text-2xl md:text-3xl font-bold text-[#0B1120]",children:e("roiCalculator.feePerMonth",{price:R.count.toLocaleString(),defaultValue:`$${R.count.toLocaleString()} / mo`})})]}),o.jsxs("div",{className:"bg-white rounded-2xl p-5 text-center border border-neutral-100 shadow-sm",children:[o.jsx("p",{className:"text-[10px] text-neutral-500 mb-2 uppercase tracking-widest font-medium",children:e("roiCalculator.costSaved")}),o.jsx("p",{className:"text-2xl md:text-3xl font-bold text-info-600",children:e("roiCalculator.costSavedPerMonth",{price:E.count.toLocaleString(),defaultValue:`$${E.count.toLocaleString()} / mo`})})]}),o.jsxs("div",{className:"bg-white rounded-2xl p-5 text-center border border-neutral-100 shadow-sm",children:[o.jsx("p",{className:"text-[10px] text-neutral-500 mb-2 uppercase tracking-widest font-medium",children:e("roiCalculator.revenueUplift")}),o.jsx("p",{className:"text-2xl md:text-3xl font-bold text-accent-500",children:e("roiCalculator.revenueUpliftPerMonth",{price:M.count.toLocaleString(),defaultValue:`$${M.count.toLocaleString()} / mo`})})]}),o.jsxs("div",{className:"bg-white rounded-2xl p-5 text-center border border-neutral-100 shadow-sm",children:[o.jsx("p",{className:"text-[10px] text-neutral-500 mb-2 uppercase tracking-widest font-medium",children:e("roiCalculator.netRoi")}),o.jsxs("p",{className:"text-4xl md:text-5xl font-bold text-success-600",children:[(z.count/10).toFixed(1),"x"]}),o.jsx("p",{className:"text-xs text-neutral-400 mt-1",children:e("simple.return",{defaultValue:"return"})})]})]}),o.jsxs("div",{className:"bg-neutral-50/80 rounded-2xl p-6 mb-8 space-y-6",children:[o.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-4 pb-6 border-b border-neutral-200",children:[o.jsxs("div",{className:"flex-1",children:[o.jsxs("label",{className:"block text-sm font-medium text-[#0B1120] mb-2 flex items-center gap-2",children:[e("roiCalculator.units"),o.jsxs(qe,{children:[o.jsx(_e,{children:o.jsx(St,{className:"h-4 w-4 text-neutral-400"})}),o.jsx(Ge,{children:o.jsx("p",{children:e("widget.unitsTooltip",{defaultValue:"Rooms, apartments, or entire homes"})})})]})]}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(pe,{type:"button",variant:"outline",size:"icon",onClick:()=>u(Math.max(1,d-1)),className:"h-12 w-12 shrink-0 rounded-xl border-neutral-200 hover:bg-neutral-100",children:o.jsx(Vs,{className:"h-5 w-5"})}),o.jsx(re,{type:"number",value:d,onChange:S=>u(parseInt(S.target.value)||1),min:1,className:"h-12 text-center text-xl font-bold bg-white border-neutral-200 rounded-xl max-w-[120px]"}),o.jsx(pe,{type:"button",variant:"outline",size:"icon",onClick:()=>u(d+1),className:"h-12 w-12 shrink-0 rounded-xl border-neutral-200 hover:bg-neutral-100",children:o.jsx(As,{className:"h-5 w-5"})})]})]}),o.jsxs("div",{className:"text-center sm:text-right bg-white rounded-xl p-4 border border-neutral-100",children:[o.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider mb-1",children:e("widget.totalMonthly")}),o.jsxs("p",{className:"text-2xl font-bold text-[#0B1120]",children:["$",(N.price*d).toLocaleString(),o.jsx("span",{className:"text-sm font-normal text-neutral-500",children:"/mo"})]})]})]}),o.jsxs("div",{className:"flex flex-col md:flex-row md:items-center gap-4",children:[o.jsxs("div",{className:"flex-1",children:[o.jsxs("label",{className:"block text-sm font-medium text-[#0B1120] mb-3 flex items-center gap-2",children:[e("calculator.automationRate"),o.jsx("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium",style:{background:"linear-gradient(135deg, hsl(345 69% 55% / 0.12), hsl(345 69% 55% / 0.06))",color:"hsl(345 69% 45%)"},children:N.title})]}),o.jsxs("div",{className:"flex items-center gap-4",children:[o.jsx(ja,{value:i,onValueChange:S=>at([S]),min:0,max:100,step:5,className:"flex-1 pricing-widget-slider",filledColor:"linear-gradient(90deg, hsl(210 70% 45%), hsl(200 80% 50%))",unfilledColor:"hsl(220 14% 80%)"}),o.jsxs("span",{className:"text-2xl font-bold text-[#0B1120] min-w-[60px] text-right",children:[i,"%"]})]})]}),o.jsx("div",{className:"text-center md:text-right",children:o.jsx("p",{className:"text-sm text-neutral-600",children:e("widget.pricePerUnit",{price:N.price,defaultValue:`$${N.price} / listing`})})})]}),o.jsx("p",{className:"text-xs text-neutral-500",children:e("simple.levelExplainer",{defaultValue:"Levels reflect automation rate; billing is based on automation rate, recalculated monthly."})})]}),o.jsx(Le,{type:"single",collapsible:!0,className:"mb-8",children:o.jsxs(Ie,{value:"inputs",className:"border-none",children:[o.jsx(Be,{className:"py-3 text-sm font-medium text-neutral-500 hover:text-[#0B1120]",children:e("calculator.fineTune",{defaultValue:"Fine-tune Your Calculation"})}),o.jsx(Fe,{children:o.jsx("div",{className:"pt-4",children:o.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:[o.jsxs("div",{className:"space-y-1.5",children:[o.jsx("label",{className:"block text-[10px] text-neutral-500 uppercase tracking-wider font-medium",children:e("roiCalculator.units")}),o.jsx(re,{type:"number",value:d,onChange:S=>u(parseInt(S.target.value)||1),min:1,className:"text-sm bg-neutral-50 border-transparent text-[#0B1120] rounded-lg focus:bg-white focus:border-accent-500 focus:ring-accent-500/20 transition-colors"})]}),o.jsxs("div",{className:"space-y-1.5",children:[o.jsx("label",{className:"block text-[10px] text-neutral-500 uppercase tracking-wider font-medium",children:e("roiCalculator.occupiedDays")}),o.jsx(re,{type:"number",value:h,onChange:S=>f(parseInt(S.target.value)||1),min:1,max:31,className:"text-sm bg-neutral-50 border-transparent text-[#0B1120] rounded-lg focus:bg-white focus:border-accent-500 focus:ring-accent-500/20 transition-colors"})]}),o.jsxs("div",{className:"space-y-1.5",children:[o.jsx("label",{className:"block text-[10px] text-neutral-500 uppercase tracking-wider font-medium",children:e("roiCalculator.avgStay")}),o.jsx(re,{type:"number",value:m,onChange:S=>p(parseInt(S.target.value)||1),min:1,className:"text-sm bg-neutral-50 border-transparent text-[#0B1120] rounded-lg focus:bg-white focus:border-accent-500 focus:ring-accent-500/20 transition-colors"})]}),o.jsxs("div",{className:"space-y-1.5",children:[o.jsx("label",{className:"block text-[10px] text-neutral-500 uppercase tracking-wider font-medium",children:e("roiCalculator.questionsPerStay")}),o.jsx(re,{type:"number",value:g,onChange:S=>v(parseInt(S.target.value)||1),min:1,className:"text-sm bg-neutral-50 border-transparent text-[#0B1120] rounded-lg focus:bg-white focus:border-accent-500 focus:ring-accent-500/20 transition-colors"})]}),o.jsxs("div",{className:"space-y-1.5",children:[o.jsx("label",{className:"block text-[10px] text-neutral-500 uppercase tracking-wider font-medium",children:e("roiCalculator.minutesPerQuestion")}),o.jsx(re,{type:"number",value:w,onChange:S=>b(parseInt(S.target.value)||1),min:1,className:"text-sm bg-neutral-50 border-transparent text-[#0B1120] rounded-lg focus:bg-white focus:border-accent-500 focus:ring-accent-500/20 transition-colors"})]}),o.jsxs("div",{className:"space-y-1.5",children:[o.jsx("label",{className:"block text-[10px] text-neutral-500 uppercase tracking-wider font-medium",children:e("roiCalculator.laborCost")}),o.jsx(re,{type:"number",value:y,onChange:S=>T(parseInt(S.target.value)||1),min:1,className:"text-sm bg-neutral-50 border-transparent text-[#0B1120] rounded-lg focus:bg-white focus:border-accent-500 focus:ring-accent-500/20 transition-colors"})]})]})})})]})}),o.jsx(Le,{type:"single",collapsible:!0,className:"mb-8",children:o.jsxs(Ie,{value:"calculation",className:"border-none",children:[o.jsx(Be,{className:"py-3 text-sm font-medium text-neutral-500 hover:text-[#0B1120]",children:e("simple.calculationDetails",{defaultValue:"Calculation details"})}),o.jsx(Fe,{children:o.jsxs("div",{className:"bg-neutral-50 rounded-xl p-5 space-y-3",children:[o.jsxs("div",{className:"flex justify-between items-center text-sm",children:[o.jsx("span",{className:"text-neutral-500",children:e("simple.monthlyQuestions",{defaultValue:"Monthly questions"})}),o.jsx("span",{className:"font-semibold text-[#0B1120]",children:V.monthlyQuestions.toLocaleString()})]}),o.jsxs("div",{className:"flex justify-between items-center text-sm",children:[o.jsxs("span",{className:"text-neutral-500",children:[e("simple.automatedQuestions",{defaultValue:"Automated questions"})," (",i,"%)"]}),o.jsx("span",{className:"font-semibold text-[#0B1120]",children:V.automatedQuestions.toLocaleString()})]}),o.jsxs("div",{className:"flex justify-between items-center text-sm",children:[o.jsx("span",{className:"text-neutral-500",children:e("roiCalculator.costSaved")}),o.jsxs("span",{className:"font-semibold text-info-600",children:["$",V.costSaved.toLocaleString()]})]}),o.jsxs("div",{className:"flex justify-between items-center text-sm",children:[o.jsx("span",{className:"text-neutral-500",children:e("roiCalculator.revenueUplift")}),o.jsxs("span",{className:"font-semibold text-accent-500",children:["$",V.revenueUplift.toLocaleString()]})]}),o.jsxs("div",{className:"flex justify-between items-center text-sm",children:[o.jsx("span",{className:"text-neutral-500",children:e("roiCalculator.cendrasFee")}),o.jsxs("span",{className:"font-semibold text-[#0B1120]",children:["-$",C.toLocaleString()]})]}),o.jsx("div",{className:"border-t border-neutral-200 pt-3 mt-3",children:o.jsxs("div",{className:"flex justify-between items-center",children:[o.jsx("span",{className:"text-sm font-medium text-[#0B1120]",children:e("roiCalculator.netRoi")}),o.jsxs("span",{className:"text-3xl font-bold text-success-600",children:[k.toFixed(1),"x"]})]})})]})})]})}),o.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4 pt-2",children:[o.jsxs(pe,{size:"lg",onClick:B,className:"w-full sm:w-auto text-lg px-8 text-white font-semibold shadow-lg hover:shadow-xl transition-all",style:{background:"linear-gradient(135deg, hsl(345 69% 55%), hsl(20 90% 55%))"},children:[e("cta.button"),o.jsx(Ye,{className:"ml-2 h-5 w-5"})]}),o.jsxs("button",{onClick:()=>F("pricing-hero"),className:"text-sm text-neutral-500 hover:text-[#0B1120] underline underline-offset-4 flex items-center gap-1 transition-colors",children:[o.jsx(to,{className:"h-4 w-4"}),e("simple.backToPricing",{defaultValue:"Back to pricing"})]})]})]})]})}),o.jsx("section",{className:"py-14 md:py-20 px-4 bg-white",children:o.jsxs("div",{className:"max-w-4xl mx-auto",children:[o.jsxs("div",{className:"text-center mb-10",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-[#0B1120] mb-3",children:e("simple.whatYouGetTitle",{defaultValue:"What You Get"})}),o.jsx("p",{className:"text-neutral-600",children:e("simple.whatYouGetSubtitle",{defaultValue:"All features unlocked from day one—no upsells, no feature gates."})})]}),o.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-5",children:uh.map((S,A)=>{const _=S.icon;return o.jsxs("div",{className:"flex items-start gap-3 bg-white rounded-2xl p-5 shadow-lg shadow-neutral-200/50 hover:shadow-xl hover:shadow-neutral-200/60 transition-shadow",children:[o.jsx("div",{className:"shrink-0 w-10 h-10 rounded-xl flex items-center justify-center",style:{background:"linear-gradient(135deg, hsl(345 69% 55% / 0.12), hsl(345 69% 55% / 0.06))"},children:o.jsx(_,{className:"h-5 w-5",style:{color:"hsl(345 69% 50%)"}})}),o.jsx("div",{children:o.jsx("p",{className:"font-medium text-[#0B1120]",children:e(S.labelKey,{defaultValue:S.labelKey.split(".").pop()})})})]},A)})})]})}),o.jsx("section",{className:"py-14 md:py-20 px-4 bg-neutral-50",children:o.jsxs("div",{className:"max-w-4xl mx-auto",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-[#0B1120] text-center mb-10",children:e("testimonials.title")}),o.jsx("div",{className:"bg-white rounded-2xl overflow-hidden mb-10 shadow-lg shadow-neutral-200/50",children:o.jsxs("div",{className:"grid md:grid-cols-2 gap-0",children:[o.jsxs("div",{className:"relative bg-neutral-100 min-h-[250px] md:min-h-[300px] flex items-center justify-center group cursor-pointer overflow-hidden",onClick:S=>{const A=S.currentTarget.querySelector("video");A&&(A.paused?A.play():A.pause())},children:[o.jsx("video",{className:"absolute inset-0 w-full h-full object-cover",src:"/videos/testimonial-maria.mp4",playsInline:!0,loop:!0,preload:"metadata"}),o.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/30 z-10 group-hover:bg-black/40 transition-colors",children:o.jsx("div",{className:"w-16 h-16 rounded-full bg-white/20 backdrop-blur-sm flex items-center justify-center border-2 border-white/50 group-hover:scale-110 transition-transform",children:o.jsx(Ua,{className:"h-8 w-8 text-white fill-white ml-1"})})})]}),o.jsxs("div",{className:"p-6 md:p-8 flex flex-col justify-center relative",children:[o.jsx("div",{className:"absolute top-4 left-4 text-8xl font-serif leading-none select-none",style:{color:"hsl(345 69% 55% / 0.08)"},children:'"'}),o.jsxs("blockquote",{className:"text-xl md:text-2xl font-medium text-[#0B1120] mb-4 leading-relaxed relative z-10",children:['"',e(be[0].quoteKey),'"']}),o.jsxs("div",{children:[o.jsx("p",{className:"font-semibold text-[#0B1120]",children:be[0].author}),o.jsxs("p",{className:"text-sm text-neutral-500",children:[e(be[0].roleKey)," · ",e(be[0].portfolioSizeKey)]})]})]})]})}),o.jsx("div",{className:"md:hidden",children:o.jsx(Wa,{showArrows:!1,showDots:!0,children:be.slice(1).map((S,A)=>o.jsxs("div",{className:"bg-white rounded-2xl p-6 w-[85vw] max-w-[300px] shrink-0 shadow-lg shadow-neutral-200/50 relative",children:[o.jsx("div",{className:"absolute top-3 left-4 text-6xl font-serif leading-none select-none",style:{color:"hsl(345 69% 55% / 0.08)"},children:'"'}),o.jsxs("blockquote",{className:"text-lg font-medium text-[#0B1120] mb-4 relative z-10 pt-4",children:['"',e(S.quoteKey),'"']}),o.jsxs("div",{children:[o.jsx("p",{className:"font-semibold text-[#0B1120]",children:S.author}),o.jsxs("p",{className:"text-xs text-neutral-500",children:[e(S.roleKey)," · ",e(S.portfolioSizeKey)]})]})]},A))})}),o.jsx("div",{className:"hidden md:grid md:grid-cols-2 gap-6",children:be.slice(1).map((S,A)=>o.jsxs("div",{className:"bg-white rounded-2xl p-6 shadow-lg shadow-neutral-200/50 relative",children:[o.jsx("div",{className:"absolute top-3 left-4 text-6xl font-serif leading-none select-none",style:{color:"hsl(345 69% 55% / 0.08)"},children:'"'}),o.jsxs("blockquote",{className:"text-lg font-medium text-[#0B1120] mb-4 relative z-10 pt-4",children:['"',e(S.quoteKey),'"']}),o.jsxs("div",{children:[o.jsx("p",{className:"font-semibold text-[#0B1120]",children:S.author}),o.jsxs("p",{className:"text-xs text-neutral-500",children:[e(S.roleKey)," · ",e(S.portfolioSizeKey)]})]})]},A))})]})}),o.jsx(eo,{}),o.jsx("section",{id:"how-pricing-works",className:"py-14 md:py-20 px-4 bg-neutral-50 scroll-mt-[calc(var(--nav-height)+16px)]",children:o.jsxs("div",{className:"max-w-3xl mx-auto",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-[#0B1120] text-center mb-10",children:e("faq.pricingTitle")}),o.jsx(Le,{type:"single",collapsible:!0,className:"space-y-3 mb-14",children:Ei.map((S,A)=>o.jsxs(Ie,{value:`pricing-faq-${A}`,className:"bg-white rounded-2xl px-6 shadow-lg shadow-neutral-200/50",children:[o.jsx(Be,{onClick:()=>dn(e(S.questionKey)),className:"text-left text-[#0B1120] hover:text-neutral-700 py-5",children:e(S.questionKey)}),o.jsx(Fe,{className:"text-neutral-600 pb-5",children:e(S.answerKey)})]},A))}),o.jsxs("div",{className:"rounded-2xl p-8 md:p-10 shadow-lg shadow-neutral-200/50",style:{background:"linear-gradient(135deg, hsl(345 69% 55% / 0.04), hsl(345 69% 55% / 0.02))"},children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsx("h3",{className:"text-xl md:text-2xl font-bold text-[#0B1120] mb-2",children:e("cta.title")}),o.jsx("p",{className:"text-neutral-600",children:e("cta.subtitle")})]}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 items-start",children:[o.jsx(za,{}),o.jsxs("div",{className:"flex flex-col items-center lg:items-start justify-center text-center lg:text-left pt-4",children:[o.jsx("p",{className:"text-sm font-medium text-neutral-500 uppercase tracking-wider mb-4",children:e("common:orStartImmediately",{defaultValue:"Or start immediately"})}),o.jsxs(pe,{size:"lg",variant:"premium",onClick:B,className:"w-full sm:w-auto h-14 px-8 text-lg",children:[e("cta.button"),o.jsx(Ye,{className:"ml-2 h-5 w-5"})]}),o.jsx("p",{className:"text-sm text-neutral-500 mt-4",children:e("common:noCreditCard",{defaultValue:"No credit card required • 5-minute setup • Cancel anytime"})})]})]})]})]})})]})}),o.jsx(Ha,{})]})]})};export{Ah as default};