Files
citpl_cms_react_express_pos…/dist/assets/App-EUHghoux.js
T
sandhiya-hepl b5f7a38c2a save changes
2026-07-20 15:00:01 +05:30

1 line
202 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{_ as e,a as t,d as n,g as r,h as i,i as a,l as o,m as s,n as c,o as l,p as u,r as d,s as f,t as p,u as m}from"./x-CWfp5ET4.js";var h=o(),g=e(u(),1),_=(0,g.createContext)({});function v(e){let t=(0,g.useRef)(null);return t.current===null&&(t.current=e()),t.current}var y=typeof window<`u`?g.useLayoutEffect:g.useEffect,b=(0,g.createContext)(null);function x(e,t){e.indexOf(t)===-1&&e.push(t)}function S(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var C=(e,t,n)=>n>t?t:n<e?e:n,w={},ee=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),te=e=>typeof e==`object`&&!!e,ne=e=>/^0[^.\s]+$/u.test(e);function re(e){let t;return()=>(t===void 0&&(t=e()),t)}var T=e=>e,ie=(...e)=>e.reduce((e,t)=>n=>t(e(n))),ae=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},oe=class{constructor(){this.subscriptions=[]}add(e){return x(this.subscriptions,e),()=>S(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},E=e=>e*1e3,D=e=>e/1e3,se=(e,t)=>t?1e3/t*e:0,ce=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,le=1e-7,ue=12;function de(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=ce(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>le&&++s<ue);return o}function O(e,t,n,r){if(e===t&&n===r)return T;let i=t=>de(t,0,1,e,n);return e=>e===0||e===1?e:ce(i(e),t,r)}var fe=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,pe=e=>t=>1-e(1-t),me=O(.33,1.53,.69,.99),he=pe(me),ge=fe(he),_e=e=>e>=1?1:(e*=2)<1?.5*he(e):.5*(2-2**(-10*(e-1))),ve=e=>1-Math.sin(Math.acos(e)),ye=pe(ve),be=fe(ve),xe=O(.42,0,1,1),Se=O(0,0,.58,1),Ce=O(.42,0,.58,1),we=e=>Array.isArray(e)&&typeof e[0]!=`number`,Te=e=>Array.isArray(e)&&typeof e[0]==`number`,Ee={linear:T,easeIn:xe,easeInOut:Ce,easeOut:Se,circIn:ve,circInOut:be,circOut:ye,backIn:he,backInOut:ge,backOut:me,anticipate:_e},De=e=>typeof e==`string`,Oe=e=>{if(Te(e)){e.length;let[t,n,r,i]=e;return O(t,n,r,i)}else if(De(e))return Ee[e],`${e}`,Ee[e];return e},ke=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],k={value:null,addProjectionMetrics:null};function Ae(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&k.value&&k.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var je=40;function Me(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=ke.reduce((e,n)=>(e[n]=Ae(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=w.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,je),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:ke.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<ke.length;t++)o[ke[t]].cancel(e)},state:i,steps:o}}var{schedule:A,cancel:j,state:M,steps:Ne}=Me(typeof requestAnimationFrame<`u`?requestAnimationFrame:T,!0),Pe;function Fe(){Pe=void 0}var N={now:()=>(Pe===void 0&&N.set(M.isProcessing||w.useManualTiming?M.timestamp:performance.now()),Pe),set:e=>{Pe=e,queueMicrotask(Fe)}},P={layout:0,mainThread:0,waapi:0},Ie=e=>t=>typeof t==`string`&&t.startsWith(e),Le=Ie(`--`),Re=Ie(`var(--`),ze=e=>Re(e)?Be.test(e.split(`/*`)[0].trim()):!1,Be=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ve(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var He={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Ue={...He,transform:e=>C(0,1,e)},We={...He,default:1},Ge=e=>Math.round(e*1e5)/1e5,Ke=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function qe(e){return e==null}var Je=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ye=(e,t)=>n=>!!(typeof n==`string`&&Je.test(n)&&n.startsWith(e)||t&&!qe(n)&&Object.prototype.hasOwnProperty.call(n,t)),Xe=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Ke);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ze=e=>C(0,255,e),Qe={...He,transform:e=>Math.round(Ze(e))},$e={test:Ye(`rgb`,`red`),parse:Xe(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Qe.transform(e)+`, `+Qe.transform(t)+`, `+Qe.transform(n)+`, `+Ge(Ue.transform(r))+`)`};function et(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var tt={test:Ye(`#`),parse:et,transform:$e.transform},nt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),F=nt(`deg`),I=nt(`%`),L=nt(`px`),rt=nt(`vh`),it=nt(`vw`),at={...I,parse:e=>I.parse(e)/100,transform:e=>I.transform(e*100)},ot={test:Ye(`hsl`,`hue`),parse:Xe(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+I.transform(Ge(t))+`, `+I.transform(Ge(n))+`, `+Ge(Ue.transform(r))+`)`},R={test:e=>$e.test(e)||tt.test(e)||ot.test(e),parse:e=>$e.test(e)?$e.parse(e):ot.test(e)?ot.parse(e):tt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?$e.transform(e):ot.transform(e),getAnimatableNone:e=>{let t=R.parse(e);return t.alpha=0,R.transform(t)}},st=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ct(e){return isNaN(e)&&typeof e==`string`&&(e.match(Ke)?.length||0)+(e.match(st)?.length||0)>0}var lt=`number`,ut=`color`,dt=`var`,ft=`var(`,pt="${}",mt=/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 ht(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(mt,e=>(R.test(e)?(r.color.push(a),i.push(ut),n.push(R.parse(e))):e.startsWith(ft)?(r.var.push(a),i.push(dt),n.push(e)):(r.number.push(a),i.push(lt),n.push(parseFloat(e))),++a,pt)).split(pt),indexes:r,types:i}}function gt(e){return ht(e).values}function _t({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===lt?i+=Ge(r[a]):e===ut?i+=R.transform(r[a]):i+=r[a]}return i}}function vt(e){return _t(ht(e))}var yt=e=>typeof e==`number`?0:R.test(e)?R.getAnimatableNone(e):e,bt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:yt(e);function xt(e){let t=ht(e);return _t(t)(t.values.map((e,n)=>bt(e,t.split[n])))}var z={test:ct,parse:gt,createTransformer:vt,getAnimatableNone:xt};function St(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ct({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=St(s,r,e+1/3),a=St(s,r,e),o=St(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function wt(e,t){return n=>n>0?t:e}var B=(e,t,n)=>e+(t-e)*n,Tt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Et=[tt,$e,ot],Dt=e=>Et.find(t=>t.test(e));function Ot(e){let t=Dt(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===ot&&(n=Ct(n)),n}var kt=(e,t)=>{let n=Ot(e),r=Ot(t);if(!n||!r)return wt(e,t);let i={...n};return e=>(i.red=Tt(n.red,r.red,e),i.green=Tt(n.green,r.green,e),i.blue=Tt(n.blue,r.blue,e),i.alpha=B(n.alpha,r.alpha,e),$e.transform(i))},At=new Set([`none`,`hidden`]);function jt(e,t){return At.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Mt(e,t){return n=>B(e,t,n)}function Nt(e){return typeof e==`number`?Mt:typeof e==`string`?ze(e)?wt:R.test(e)?kt:Lt:Array.isArray(e)?Pt:typeof e==`object`?R.test(e)?kt:Ft:wt}function Pt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Nt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Ft(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Nt(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function It(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Lt=(e,t)=>{let n=z.createTransformer(t),r=ht(e),i=ht(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?At.has(e)&&!i.values.length||At.has(t)&&!r.values.length?jt(e,t):ie(Pt(It(r,i),i.values),n):(`${e}${t}`,wt(e,t))};function Rt(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?B(e,t,n):Nt(e)(e,t)}var zt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>A.update(t,e),stop:()=>j(t),now:()=>M.isProcessing?M.timestamp:N.now()}},Bt=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Vt=2e4;function Ht(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Ut(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Ht(r),Vt);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:D(i)}}var V={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};function Wt(e,t){return e*Math.sqrt(1-t*t)}var Gt=12;function Kt(e,t,n){let r=n;for(let n=1;n<Gt;n++)r-=e(r)/t(r);return r}var qt=.001;function Jt({duration:e=V.duration,bounce:t=V.bounce,velocity:n=V.velocity,mass:r=V.mass}){let i,a;V.maxDuration;let o=1-t;o=C(V.minDamping,V.maxDamping,o),e=C(V.minDuration,V.maxDuration,D(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Wt(t,o),c=Math.exp(-i);return qt-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=Wt(t**2,o);return(-i(t)+qt>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Kt(i,a,s);if(e=E(e),isNaN(c))return{stiffness:V.stiffness,damping:V.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Yt=[`duration`,`bounce`],Xt=[`stiffness`,`damping`,`mass`];function Zt(e,t){return t.some(t=>e[t]!==void 0)}function Qt(e){let t={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...e};if(!Zt(e,Xt)&&Zt(e,Yt))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*C(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:V.mass,stiffness:i,damping:a}}else{let n=Jt({...e,velocity:0});t={...t,...n,mass:V.mass},t.isResolvedFromDuration=!0}return t}function $t(e=V.visualDuration,t=V.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Qt({...n,velocity:-D(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=D(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?V.restSpeed.granular:V.restSpeed.default,i||=v?V.restDelta.granular:V.restDelta.default;let y,b,x,S,C,w;if(h<1)x=Wt(_,h),S=(m+h*_*g)/x,y=e=>o-Math.exp(-h*_*e)*(S*Math.sin(x*e)+g*Math.cos(x*e)),C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let ee={calculatedDuration:p&&d||null,velocity:e=>E(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=E(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=E(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Ht(ee),Vt),t=Bt(t=>ee.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return ee}$t.applyToOptions=e=>{let t=Ut(e,100,$t);return e.ease=t.ease,e.duration=E(t.duration),e.type=`keyframes`,e};var en=5;function tn(e,t,n){let r=Math.max(t-en,0);return se(n-e(r),t-r)}function nn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=$t({keyframes:[f.value,m(f.value)],velocity:tn(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function rn(e,t,n){let r=[],i=n||w.mix||Rt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=ie(Array.isArray(t)?t[n]||T:t,a)),r.push(a)}return r}function an(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=rn(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=ae(e[r],e[r+1],n);return s[r](i)};return n?t=>l(C(e[0],e[a-1],t)):l}function on(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=ae(0,t,r);e.push(B(n,1,i))}}function sn(e){let t=[0];return on(t,e.length-1),t}function cn(e,t){return e.map(e=>e*t)}function ln(e,t){return e.map(()=>t||Ce).splice(0,e.length-1)}function un({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=we(r)?r.map(Oe):Oe(r),a={done:!1,value:t[0]},o=an(cn(n&&n.length===t.length?n:sn(t),e),t,{ease:Array.isArray(i)?i:ln(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var dn=e=>e!==null;function fn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(dn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var pn={decay:nn,inertia:nn,tween:un,keyframes:un,spring:$t};function mn(e){typeof e.type==`string`&&(e.type=pn[e.type])}var hn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},gn=e=>e/100,_n=class extends hn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==N.now()&&this.tick(N.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},P.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;mn(e);let{type:t=un,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||un;s!==un&&typeof o[0]!=`number`&&(this.mixKeyframes=ie(gn,Rt(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Ht(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=C(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==nn&&(b.value=fn(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return D(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+D(e)}get time(){return D(this.currentTime)}set time(e){e=E(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return tn(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(N.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=D(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=zt,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,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(N.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,P.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function vn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var yn=e=>e*180/Math.PI,bn=e=>Sn(yn(Math.atan2(e[1],e[0]))),xn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:bn,rotateZ:bn,skewX:e=>yn(Math.atan(e[1])),skewY:e=>yn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Sn=e=>(e%=360,e<0&&(e+=360),e),Cn=bn,wn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Tn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),En={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:wn,scaleY:Tn,scale:e=>(wn(e)+Tn(e))/2,rotateX:e=>Sn(yn(Math.atan2(e[6],e[5]))),rotateY:e=>Sn(yn(Math.atan2(-e[2],e[0]))),rotateZ:Cn,rotate:Cn,skewX:e=>yn(Math.atan(e[4])),skewY:e=>yn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Dn(e){return+!!e.includes(`scale`)}function On(e,t){if(!e||e===`none`)return Dn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=En,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=xn,i=t}if(!i)return Dn(t);let a=r[t],o=i[1].split(`,`).map(An);return typeof a==`function`?a(o):o[a]}var kn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return On(n,t)};function An(e){return parseFloat(e.trim())}var jn=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Mn=new Set([...jn,`pathRotation`]),Nn=e=>e===He||e===L,Pn=new Set([`x`,`y`,`z`]),Fn=jn.filter(e=>!Pn.has(e));function In(e){let t=[];return Fn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var H={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},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})=>On(t,`x`),y:(e,{transform:t})=>On(t,`y`)};H.translateX=H.x,H.translateY=H.y;var Ln=new Set,Rn=!1,zn=!1,Bn=!1;function Vn(){if(zn){let e=Array.from(Ln).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=In(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}zn=!1,Rn=!1,Ln.forEach(e=>e.complete(Bn)),Ln.clear()}function Hn(){Ln.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(zn=!0)})}function Un(){Bn=!0,Hn(),Vn(),Bn=!1}var Wn=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Ln.add(this),Rn||(Rn=!0,A.read(Hn),A.resolveKeyframes(Vn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}vn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ln.delete(this)}cancel(){this.state===`scheduled`&&(Ln.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Gn=e=>e.startsWith(`--`);function Kn(e,t,n){Gn(t)?e.style.setProperty(t,n):e.style[t]=n}var qn={};function Jn(e,t){let n=re(e);return()=>qn[t]??n()}var Yn=Jn(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Xn=Jn(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Zn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Qn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Zn([0,.65,.55,1]),circOut:Zn([.55,0,1,.45]),backIn:Zn([.31,.01,.66,-.59]),backOut:Zn([.33,1.53,.69,.99])};function $n(e,t){if(e)return typeof e==`function`?Xn()?Bt(e,t):`ease-out`:Te(e)?Zn(e):Array.isArray(e)?e.map(e=>$n(e,t)||Qn.easeOut):Qn[e]}function er(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=$n(s,i);Array.isArray(d)&&(u.easing=d),k.value&&P.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return k.value&&p.finished.finally(()=>{P.waapi--}),p}function tr(e){return typeof e==`function`&&`applyToOptions`in e}function nr({type:e,...t}){return tr(e)&&Xn()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var rr=class extends hn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=nr(e);this.animation=er(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=fn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Kn(t,n,e),this.animation.cancel()}s?.(),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;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return D(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+D(e)}get time(){return D(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=E(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Yn()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),T):r(this)}},ir={anticipate:_e,backInOut:ge,circInOut:be};function ar(e){return e in ir}function or(e){typeof e.ease==`string`&&ar(e.ease)&&(e.ease=ir[e.ease])}var sr=10,cr=class extends rr{constructor(e){or(e),mn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new _n({...a,autoplay:!1}),s=Math.max(sr,N.now()-this.startTime),c=C(0,sr,s-sr),l=o.sample(s).value,{name:u}=this.options;i&&u&&Kn(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},lr=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(z.test(e)||e===`0`)&&!e.startsWith(`url(`));function ur(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function dr(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=lr(i,t),s=lr(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:ur(e)||(n===`spring`||tr(n))&&r}function fr(e){e.duration=0,e.type=`keyframes`}var pr=new Set([`opacity`,`clipPath`,`filter`,`transform`]),mr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function hr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&mr.test(e[t]))return!0;return!1}var gr=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),_r=re(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function vr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return _r()&&n&&(pr.has(n)||gr.has(n)&&hr(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var yr=40,br=class extends hn{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=N.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Wn;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=N.now();let u=!0;dr(e,i,a,o)||(u=!1,(w.instantAnimations||!s)&&l?.(fn(e,n,t)),e[0]=e[e.length-1],fr(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>yr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&vr(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new cr({...d,element:p})}catch{m=new _n(d)}else m=new _n(d);m.finished.then(()=>{this.notifyFinished()}).catch(T),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Un()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function xr(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Sr=30,Cr=e=>!isNaN(parseFloat(e)),wr={current:void 0},Tr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=N.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=N.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Cr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new oe);let n=this.events[e].add(t);return e===`change`?()=>{n(),A.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return wr.current&&wr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=N.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Sr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Sr);return se(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Er(e,t){return new Tr(e,t)}function Dr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Or(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Dr(n,e)}var kr={type:`spring`,stiffness:500,damping:25,restSpeed:10},Ar=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),jr={type:`keyframes`,duration:.8},Mr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Nr=(e,{keyframes:t})=>t.length>2?jr:Mn.has(e)?e.startsWith(`scale`)?Ar(t[1]):kr:Mr,Pr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Fr(e){for(let t in e)if(!Pr.has(t))return!0;return!1}var Ir=(e,t,n,r={},i,a)=>o=>{let s=Or(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=E(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Fr(s)||Object.assign(u,Nr(e,u)),u.duration&&=E(u.duration),u.repeatDelay&&=E(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(fr(u),u.delay===0&&(d=!0)),(w.instantAnimations||w.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,fr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=fn(u.keyframes,s);if(e!==void 0){A.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new _n(u):new br(u)},Lr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rr(e){let t=Lr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function zr(e,t,n=1){`${e}`;let[r,i]=Rr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ee(e)?parseFloat(e):e}return ze(i)?zr(i,t,n+1):i}function Br(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Vr(e,t,n,r){if(typeof t==`function`){let[i,a]=Br(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Br(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Hr(e,t,n){let r=e.getProps();return Vr(r,t,n===void 0?r.custom:n,e)}var Ur=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...jn]),Wr=e=>Array.isArray(e);function Gr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Er(n))}function Kr(e){return Wr(e)?e[e.length-1]||0:e}function qr(e,t){let{transitionEnd:n={},transition:r={},...i}=Hr(e,t)||{};i={...i,...n};for(let t in i)Gr(e,t,Kr(i[t]))}var U=e=>!!(e&&e.getVelocity);function Jr(e){return!!(U(e)&&e.add)}function Yr(e,t){let n=e.getValue(`willChange`);if(Jr(n))return n.add(t);if(!n&&w.WillChange){let n=new w.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Xr(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Zr=`data-`+Xr(`framerAppearId`);function Qr(e){return e.props[Zr]}function $r({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ei(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Dr(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&$r(f,t))continue;let o={delay:n,...Or(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){A.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=Qr(e);if(n){let e=window.MotionHandoffAnimation(n,t,A);e!==null&&(o.startTime=e,p=!0)}}Yr(e,t);let m=l??e.shouldReduceMotion;r.start(Ir(t,r,i,m&&Ur.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>A.update(()=>{o&&qr(e,o)});d.length?Promise.all(d).then(t):t()}return d}function ti(e,t,n={}){let r=Hr(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(ei(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return ni(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function ni(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(ti(c,t,{...o,delay:n+(typeof r==`function`?0:r)+xr(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function ri(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>ti(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=ti(e,t,n);else{let i=typeof t==`function`?Hr(e,t,n.custom):t;r=Promise.all(ei(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var ii={test:e=>e===`auto`,parse:e=>e},ai=e=>t=>t.test(e),oi=[He,L,I,F,it,rt,ii],si=e=>oi.find(ai(e));function ci(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||ne(e)}var li=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function ui(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Ke)||[];if(!r)return e;let i=n.replace(r,``),a=+!!li.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var di=/\b([a-z-]*)\(.*?\)/gu,fi={...z,getAnimatableNone:e=>{let t=e.match(di);return t?t.map(ui).join(` `):e}},pi={...z,getAnimatableNone:e=>{let t=z.parse(e);return z.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},mi={...He,transform:Math.round},hi={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,inset:L,insetBlock:L,insetBlockStart:L,insetBlockEnd:L,insetInline:L,insetInlineStart:L,insetInlineEnd:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,paddingBlock:L,paddingBlockStart:L,paddingBlockEnd:L,paddingInline:L,paddingInlineStart:L,paddingInlineEnd:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,marginBlock:L,marginBlockStart:L,marginBlockEnd:L,marginInline:L,marginInlineStart:L,marginInlineEnd:L,fontSize:L,backgroundPositionX:L,backgroundPositionY:L,rotate:F,pathRotation:F,rotateX:F,rotateY:F,rotateZ:F,scale:We,scaleX:We,scaleY:We,scaleZ:We,skew:F,skewX:F,skewY:F,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:Ue,originX:at,originY:at,originZ:L,zIndex:mi,fillOpacity:Ue,strokeOpacity:Ue,numOctaves:mi},gi={...hi,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:fi,WebkitFilter:fi,mask:pi,WebkitMask:pi},_i=e=>gi[e],vi=new Set([fi,pi]);function yi(e,t){let n=_i(e);return vi.has(n)||(n=z),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var bi=new Set([`auto`,`none`,`0`]);function xi(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!bi.has(t)&&ht(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=yi(n,i)}var Si=class extends Wn{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),ze(r))){let i=zr(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Ur.has(n)||e.length!==2)return;let[r,i]=e,a=si(r),o=si(i);if(Ve(r)!==Ve(i)&&H[n]){this.needsMeasurement=!0;return}if(a!==o)if(Nn(a)&&Nn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else H[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||ci(e[t]))&&n.push(t);n.length&&xi(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=H[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=H[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function Ci(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var wi=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Ti(e){return te(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Ei,cancel:Di}=Me(queueMicrotask,!1),W={x:!1,y:!1};function Oi(){return W.x||W.y}function ki(e){return e===`x`||e===`y`?W[e]?null:(W[e]=!0,()=>{W[e]=!1}):W.x||W.y?null:(W.x=W.y=!0,()=>{W.x=W.y=!1})}function Ai(e,t){let n=Ci(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function ji(e){return!(e.pointerType===`touch`||Oi())}function Mi(e,t,n={}){let[r,i,a]=Ai(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!ji(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Ni=(e,t)=>t?e===t?!0:Ni(e,t.parentElement):!1,Pi=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Fi=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Ii(e){return Fi.has(e.tagName)||e.isContentEditable===!0}var Li=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Ri(e){return Li.has(e.tagName)||e.isContentEditable===!0}var zi=new WeakSet;function Bi(e){return t=>{t.key===`Enter`&&e(t)}}function Vi(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Hi=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Bi(()=>{if(zi.has(n))return;Vi(n,`down`);let e=Bi(()=>{Vi(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Vi(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Ui(e){return Pi(e)&&!Oi()}var Wi=new WeakSet;function Gi(e,t,n={}){let[r,i,a]=Ai(e,n),o=e=>{let r=e.currentTarget;if(!Ui(e)||Wi.has(e))return;zi.add(r),n.stopPropagation&&Wi.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),zi.has(r)&&zi.delete(r),Ui(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||Ni(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Ti(e)&&(e.addEventListener(`focus`,e=>Hi(e,i)),!Ii(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Ki(e){return te(e)&&`ownerSVGElement`in e}var qi=new WeakMap,Ji,Yi=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Ki(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Xi=Yi(`inline`,`width`,`offsetWidth`),Zi=Yi(`block`,`height`,`offsetHeight`);function Qi({target:e,borderBoxSize:t}){qi.get(e)?.forEach(n=>{n(e,{get width(){return Xi(e,t)},get height(){return Zi(e,t)}})})}function $i(e){e.forEach(Qi)}function ea(){typeof ResizeObserver>`u`||(Ji=new ResizeObserver($i))}function ta(e,t){Ji||ea();let n=Ci(e);return n.forEach(e=>{let n=qi.get(e);n||(n=new Set,qi.set(e,n)),n.add(t),Ji?.observe(e)}),()=>{n.forEach(e=>{let n=qi.get(e);n?.delete(t),n?.size||Ji?.unobserve(e)})}}var na=new Set,ra;function ia(){ra=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};na.forEach(t=>t(e))},window.addEventListener(`resize`,ra)}function aa(e){return na.add(e),ra||ia(),()=>{na.delete(e),!na.size&&typeof ra==`function`&&(window.removeEventListener(`resize`,ra),ra=void 0)}}function oa(e,t){return typeof e==`function`?aa(e):ta(e,t)}function sa(e){return Ki(e)&&e.tagName===`svg`}var ca=[...oi,R,z],la=e=>ca.find(ai(e)),ua=()=>({translate:0,scale:1,origin:0,originPoint:0}),da=()=>({x:ua(),y:ua()}),fa=()=>({min:0,max:0}),G=()=>({x:fa(),y:fa()}),pa=new WeakMap;function ma(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function ha(e){return typeof e==`string`||Array.isArray(e)}var ga=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],_a=[`initial`,...ga];function va(e){return ma(e.animate)||_a.some(t=>ha(e[t]))}function ya(e){return!!(va(e)||e.variants)}function ba(e,t,n){for(let r in t){let i=t[r],a=n[r];if(U(i))e.addValue(r,i);else if(U(a))e.addValue(r,Er(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Er(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var xa={current:null},Sa={current:!1},Ca=typeof window<`u`;function wa(){if(Sa.current=!0,Ca)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>xa.current=e.matches;e.addEventListener(`change`,t),t()}else xa.current=!1}var Ta=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Ea={};function Da(e){Ea=e}function Oa(){return Ea}var ka=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=Wn,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=()=>{let e=N.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,A.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=va(t),this.isVariantNode=ya(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&U(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,pa.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Sa.current||wa(),this.shouldReduceMotion=xa.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(),j(this.notifyUpdate),j(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&pr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new rr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:E(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Mn.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&A.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Ea){let t=Ea[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):G()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Ta.length;t++){let n=Ta[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=ba(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Er(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(ee(n)||ne(n))?n=parseFloat(n):!la(n)&&z.test(t)&&(n=yi(e,t)),this.setBaseTarget(e,U(n)?n.get():n)),U(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Vr(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!U(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new oe),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Ei.render(this.render)}},Aa=class extends ka{constructor(){super(...arguments),this.KeyframeResolver=Si}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;U(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},K=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function ja({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ma({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Na(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Pa(e){return e===void 0||e===1}function Fa({scale:e,scaleX:t,scaleY:n}){return!Pa(e)||!Pa(t)||!Pa(n)}function Ia(e){return Fa(e)||La(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function La(e){return Ra(e.x)||Ra(e.y)}function Ra(e){return e&&e!==`0%`}function za(e,t,n){return n+t*(e-n)}function Ba(e,t,n,r,i){return i!==void 0&&(e=za(e,i,r)),za(e,n,r)+t}function Va(e,t=0,n=1,r,i){e.min=Ba(e.min,t,n,r,i),e.max=Ba(e.max,t,n,r,i)}function Ha(e,{x:t,y:n}){Va(e.x,t.translate,t.scale,t.originPoint),Va(e.y,n.translate,n.scale,n.originPoint)}var Ua=.999999999999,Wa=1.0000000000001;function Ga(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(q(e.x,-a.scroll.offset.x),q(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Ha(e,o)),r&&Ia(a.latestValues)&&Ja(e,a.latestValues,a.layout?.layoutBox))}t.x<Wa&&t.x>Ua&&(t.x=1),t.y<Wa&&t.y>Ua&&(t.y=1)}function q(e,t){e.min+=t,e.max+=t}function Ka(e,t,n,r,i=.5){Va(e,t,n,B(e.min,e.max,i),r)}function qa(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Ja(e,t,n){let r=n??e;Ka(e.x,qa(t.x,r.x),t.scaleX,t.scale,t.originX),Ka(e.y,qa(t.y,r.y),t.scaleY,t.scale,t.originY)}function Ya(e,t){return ja(Na(e.getBoundingClientRect(),t))}function Xa(e,t,n){let r=Ya(e,n),{scroll:i}=t;return i&&(q(r.x,i.offset.x),q(r.y,i.offset.y)),r}var Za={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Qa=jn.length;function $a(e,t,n){let r=``,i=!0;for(let a=0;a<Qa;a++){let o=jn[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=wi(s,hi[o]);if(!c){i=!1;let t=Za[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${wi(a,hi.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function eo(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Mn.has(e)){o=!0;continue}else if(Le(e)){i[e]=n;continue}else{let t=wi(n,hi[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=$a(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function to(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function no(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ro={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(L.test(e))e=parseFloat(e);else return e;return`${no(e,t.target.x)}% ${no(e,t.target.y)}%`}},io={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=z.parse(e);if(i.length>5)return r;let a=z.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=B(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},ao={borderRadius:{...ro,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:ro,borderTopRightRadius:ro,borderBottomLeftRadius:ro,borderBottomRightRadius:ro,boxShadow:io};function oo(e,{layout:t,layoutId:n}){return Mn.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!ao[e]||e===`opacity`)}function so(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(U(r[t])||i&&U(i[t])||oo(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function co(e){return window.getComputedStyle(e)}var lo=class extends Aa{constructor(){super(...arguments),this.type=`html`,this.renderInstance=to}readValueFromInstance(e,t){if(Mn.has(t))return this.projection?.isProjecting?Dn(t):kn(e,t);{let n=co(e),r=(Le(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ya(e,t)}build(e,t,n){eo(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return so(e,t,n)}},uo={offset:`stroke-dashoffset`,array:`stroke-dasharray`},fo={offset:`strokeDashoffset`,array:`strokeDasharray`};function po(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?uo:fo;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var mo=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function ho(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(eo(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of mo)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&po(d,i,a,o,!1)}var go=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`]),_o=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function vo(e,t,n,r){to(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(go.has(n)?n:Xr(n),t.attrs[n])}function yo(e,t,n){let r=so(e,t,n);for(let n in e)if(U(e[n])||U(t[n])){let t=jn.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var bo=class extends Aa{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=G}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Mn.has(t)){let e=_i(t);return e&&e.default||0}return t=go.has(t)?t:Xr(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return yo(e,t,n)}build(e,t,n){ho(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){vo(e,t,n,r)}mount(e){this.isSVGTag=_o(e.tagName),super.mount(e)}},xo=_a.length;function So(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&So(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<xo;n++){let r=_a[n],i=e.props[r];(ha(i)||i===!1)&&(t[r]=i)}return t}function Co(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var wo=[...ga].reverse(),To=ga.length;function Eo(e){return t=>Promise.all(t.map(({animation:t,options:n})=>ri(e,t,n)))}function Do(e){let t=Eo(e),n=Ao(),r=!0,i=!1,a=t=>(n,r)=>{let i=Hr(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=So(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<To;t++){let p=wo[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=ha(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||ma(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Oo(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,ee={...w,...C},te=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in ee){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Wr(t)&&Wr(n)?!Co(t,n)||y:t!==n,r?t==null?u.add(e):te(e):t!==void 0&&u.has(e)?te(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let ne=v&&y;b&&(!ne||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ne&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Hr(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=xr(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Hr(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ao(),i=!0}}}function Oo(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Co(t,e):!1}function ko(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ao(){return{animate:ko(!0),whileInView:ko(),whileHover:ko(),whileTap:ko(),whileDrag:ko(),whileFocus:ko(),exit:ko()}}function jo(e,t){e.min=t.min,e.max=t.max}function J(e,t){jo(e.x,t.x),jo(e.y,t.y)}function Mo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var No=.9999,Po=1.0001,Fo=-.01,Io=.01;function Y(e){return e.max-e.min}function Lo(e,t,n){return Math.abs(e-t)<=n}function Ro(e,t,n,r=.5){e.origin=r,e.originPoint=B(t.min,t.max,e.origin),e.scale=Y(n)/Y(t),e.translate=B(n.min,n.max,e.origin)-e.originPoint,(e.scale>=No&&e.scale<=Po||isNaN(e.scale))&&(e.scale=1),(e.translate>=Fo&&e.translate<=Io||isNaN(e.translate))&&(e.translate=0)}function zo(e,t,n,r){Ro(e.x,t.x,n.x,r?r.originX:void 0),Ro(e.y,t.y,n.y,r?r.originY:void 0)}function Bo(e,t,n,r=0){e.min=(r?B(n.min,n.max,r):n.min)+t.min,e.max=e.min+Y(t)}function Vo(e,t,n,r){Bo(e.x,t.x,n.x,r?.x),Bo(e.y,t.y,n.y,r?.y)}function Ho(e,t,n,r=0){let i=r?B(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Y(t)}function Uo(e,t,n,r){Ho(e.x,t.x,n.x,r?.x),Ho(e.y,t.y,n.y,r?.y)}function Wo(e,t,n,r,i){return e-=t,e=za(e,1/n,r),i!==void 0&&(e=za(e,1/i,r)),e}function Go(e,t=0,n=1,r=.5,i,a=e,o=e){if(I.test(t)&&(t=parseFloat(t),t=B(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=B(a.min,a.max,r);e===a&&(s-=t),e.min=Wo(e.min,t,n,s,i),e.max=Wo(e.max,t,n,s,i)}function Ko(e,t,[n,r,i],a,o){Go(e,t[n],t[r],t[i],t.scale,a,o)}var qo=[`x`,`scaleX`,`originX`],Jo=[`y`,`scaleY`,`originY`];function Yo(e,t,n,r){Ko(e.x,t,qo,n?n.x:void 0,r?r.x:void 0),Ko(e.y,t,Jo,n?n.y:void 0,r?r.y:void 0)}function Xo(e){return e.translate===0&&e.scale===1}function Zo(e){return Xo(e.x)&&Xo(e.y)}function Qo(e,t){return e.min===t.min&&e.max===t.max}function $o(e,t){return Qo(e.x,t.x)&&Qo(e.y,t.y)}function es(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ts(e,t){return es(e.x,t.x)&&es(e.y,t.y)}function ns(e){return Y(e.x)/Y(e.y)}function rs(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function X(e){return[e(`x`),e(`y`)]}function is(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var as=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`],os=as.length,ss=e=>typeof e==`string`?parseFloat(e):e,cs=e=>typeof e==`number`||L.test(e);function ls(e,t,n,r,i,a){i?(e.opacity=B(0,n.opacity??1,ds(r)),e.opacityExit=B(t.opacity??1,0,fs(r))):a&&(e.opacity=B(t.opacity??1,n.opacity??1,r));for(let i=0;i<os;i++){let a=as[i],o=us(t,a),s=us(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||cs(o)===cs(s)?(e[a]=Math.max(B(ss(o),ss(s),r),0),(I.test(s)||I.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=B(t.rotate||0,n.rotate||0,r))}function us(e,t){return e[t]===void 0?e.borderRadius:e[t]}var ds=ps(0,.5,ye),fs=ps(.5,.95,T);function ps(e,t,n){return r=>r<e?0:r>t?1:n(ae(e,t,r))}function ms(e,t,n){let r=U(e)?e:Er(e);return r.start(Ir(``,r,t,n)),r.animation}function hs(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var gs=(e,t)=>e.depth-t.depth,_s=class{constructor(){this.children=[],this.isDirty=!1}add(e){x(this.children,e),this.isDirty=!0}remove(e){S(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(gs),this.isDirty=!1,this.children.forEach(e)}};function vs(e,t){let n=N.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(j(r),e(a-t))};return A.setup(r,!0),()=>j(r)}function ys(e){return U(e)?e.get():e}var bs=class{constructor(){this.members=[]}add(e){x(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(S(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(S(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},xs={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ss={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Cs=[``,`X`,`Y`,`Z`],ws=1e3,Ts=0;function Es(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ds(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Qr(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,A,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ds(r)}function Os({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Ts++,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,k.value&&(Ss.nodes=Ss.calculatedTargetDeltas=Ss.calculatedProjections=0),this.nodes.forEach(js),this.nodes.forEach(Bs),this.nodes.forEach(Vs),this.nodes.forEach(Ms),k.addProjectionMetrics&&k.addProjectionMetrics(Ss)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new _s)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new oe),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Ki(t)&&!sa(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;A.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=vs(i,250),xs.hasAnimatedSinceResize&&(xs.hasAnimatedSinceResize=!1,this.nodes.forEach(zs)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Js,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!ts(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Or(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||zs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),j(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(Hs),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ds(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Fs),this.nodes.forEach(Ps);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Is);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Ls),this.nodes.forEach(Rs),this.nodes.forEach(ks),this.nodes.forEach(As)):this.nodes.forEach(Is),this.clearAllSnapshots();let e=N.now();M.delta=C(0,1e3/60,e-M.timestamp),M.timestamp=e,M.isProcessing=!0,Ne.update.process(M),Ne.preRender.process(M),Ne.render.process(M),M.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ei.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ns),this.sharedNodes.forEach(Us)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,A.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){A.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Y(this.snapshot.measuredBox.x)&&!Y(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=G(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Zo(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Ia(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Qs(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return G();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ec))){let{scroll:e}=this.root;e&&(q(t.x,e.offset.x),q(t.y,e.offset.y))}return t}removeElementScroll(e){let t=G();if(J(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&J(t,e),q(t.x,i.offset.x),q(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||G();J(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(q(r.x,-n.scroll.offset.x),q(r.y,-n.scroll.offset.y)),Ia(n.latestValues)&&Ja(r,n.latestValues,n.layout?.layoutBox)}return Ia(this.latestValues)&&Ja(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=G();J(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Ia(n.latestValues))continue;let r;n.instance&&(Fa(n.latestValues)&&n.updateSnapshot(),r=G(),J(r,n.measurePageBox())),Yo(t,n.latestValues,n.snapshot?.layoutBox,r)}return Ia(this.latestValues)&&Yo(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==M.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=M.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=G(),this.targetWithTransforms=G()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Vo(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):J(this.target,this.layout.layoutBox),Ha(this.target,this.targetDelta)):J(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),k.value&&Ss.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Fa(this.parent.latestValues)||La(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=G(),this.relativeTargetOrigin=G(),Uo(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),J(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===M.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;J(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Ga(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=G());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Mo(this.prevProjectionDelta.x,this.projectionDelta.x),Mo(this.prevProjectionDelta.y,this.projectionDelta.y)),zo(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!rs(this.projectionDelta.x,this.prevProjectionDelta.x)||!rs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),k.value&&Ss.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=da(),this.projectionDelta=da(),this.projectionDeltaWithTransform=da()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=da();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=G(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(qs));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=B(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=B(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Ws(o.x,e.x,n),Ws(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Uo(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ks(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&$o(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=G(),J(f,this.relativeTarget)),c&&(this.animationValues=a,ls(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(j(this.pendingAnimation),void 0),this.pendingAnimation=A.update(()=>{xs.hasAnimatedSinceResize=!0,P.layout++,this.motionValue||=Er(0),this.motionValue.jump(0,!1),this.currentAnimation=ms(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{P.layout--},onComplete:()=>{P.layout--,e.onComplete&&e.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);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ws),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&$s(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||G();let t=Y(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Y(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}J(t,n),Ja(t,i),zo(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new bs),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Es(`z`,e,r,this.animationValues);for(let t=0;t<Cs.length;t++)Es(`rotate${Cs[t]}`,e,r,this.animationValues),Es(`skew${Cs[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=ys(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=ys(t?.pointerEvents)||``),this.hasProjected&&!Ia(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=is(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in ao){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=ao[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?ys(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Ps),this.root.sharedNodes.clear()}}}function ks(e){e.updateLayout()}function As(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)X(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Y(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;jo(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else $s(i,t.layoutBox,n)&&X(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Y(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=da();zo(o,n,t.layoutBox);let s=da();a?zo(s,e.applyTransform(r,!0),t.measuredBox):zo(s,n,t.layoutBox);let c=!Zo(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=G();Uo(s,t.layoutBox,i.layoutBox,o);let c=G();Uo(c,n,a.layoutBox,o),ts(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function js(e){k.value&&Ss.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Ms(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ns(e){e.clearSnapshot()}function Ps(e){e.clearMeasurements()}function Fs(e){e.isLayoutDirty=!0,e.updateLayout()}function Is(e){e.isLayoutDirty=!1}function Ls(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Rs(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function zs(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Bs(e){e.resolveTargetDelta()}function Vs(e){e.calcProjection()}function Hs(e){e.resetSkewAndRotation()}function Us(e){e.removeLeadSnapshot()}function Ws(e,t,n){e.translate=B(t.translate,0,n),e.scale=B(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Gs(e,t,n,r){e.min=B(t.min,n.min,r),e.max=B(t.max,n.max,r)}function Ks(e,t,n,r){Gs(e.x,t.x,n.x,r),Gs(e.y,t.y,n.y,r)}function qs(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Js={duration:.45,ease:[.4,0,.1,1]},Ys=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Xs=Ys(`applewebkit/`)&&!Ys(`chrome/`)?Math.round:T;function Zs(e){e.min=Xs(e.min),e.max=Xs(e.max)}function Qs(e){Zs(e.x),Zs(e.y)}function $s(e,t,n){return e===`position`||e===`preserve-aspect`&&!Lo(ns(t),ns(n),.2)}function ec(e){return e!==e.root&&e.scroll?.wasRoot}var tc=Os({attachResizeListener:(e,t)=>hs(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),nc={current:void 0},rc=Os({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!nc.current){let e=new tc({});e.mount(window),e.setOptions({layoutScroll:!0}),nc.current=e}return nc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),ic=(0,g.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function ac(e=!0){let t=(0,g.useContext)(b);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,g.useId)();(0,g.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,g.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var oc=(0,g.createContext)({strict:!1}),sc={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`]},cc=!1;function lc(){if(cc)return;let e={};for(let t in sc)e[t]={isEnabled:e=>sc[t].some(t=>!!e[t])};Da(e),cc=!0}function uc(){return lc(),Oa()}function dc(e){let t=uc();for(let n in e)t[n]={...t[n],...e[n]};Da(t)}var fc=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`.split(`.`));function pc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||fc.has(e)}var mc=i({default:()=>hc}),hc,gc=s((()=>{throw hc={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),_c=e=>!pc(e);function vc(e){typeof e==`function`&&(_c=t=>t.startsWith(`on`)?!pc(t):e(t))}try{vc((gc(),r(mc)).default)}catch{}function yc(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||U(e[i])||(_c(i)||n===!0&&pc(i)||!t&&!pc(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var bc=(0,g.createContext)({});function xc(e,t){if(va(e)){let{initial:t,animate:n}=e;return{initial:t===!1||ha(t)?t:void 0,animate:ha(n)?n:void 0}}return e.inherit===!1?{}:t}function Sc(e){let{initial:t,animate:n}=xc(e,(0,g.useContext)(bc));return(0,g.useMemo)(()=>({initial:t,animate:n}),[Cc(t),Cc(n)])}function Cc(e){return Array.isArray(e)?e.join(` `):e}var wc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Tc(e,t,n){for(let r in t)!U(t[r])&&!oo(r,n)&&(e[r]=t[r])}function Ec({transformTemplate:e},t){return(0,g.useMemo)(()=>{let n=wc();return eo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Dc(e,t){let n=e.style||{},r={};return Tc(r,n,e),Object.assign(r,Ec(e,t)),r}function Oc(e,t){let n={},r=Dc(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var kc=()=>({...wc(),attrs:{}});function Ac(e,t,n,r){let i=(0,g.useMemo)(()=>{let n=kc();return ho(n,t,_o(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Tc(t,e.style,e),i.style={...t,...i.style}}return i}var jc=[`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 Mc(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(jc.indexOf(e)>-1||/[A-Z]/u.test(e))}function Nc(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??Mc(e)?Ac:Oc)(t,r,i,e),c=yc(t,typeof e==`string`,a),l=e===g.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,g.useMemo)(()=>U(u)?u.get():u,[u]);return(0,g.createElement)(e,{...l,children:d})}function Pc({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Fc(n,r,i,e),renderState:t()}}function Fc(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=ys(a[e]);let{initial:o,animate:s}=e,c=va(e),l=ya(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!ma(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Vr(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Ic=e=>(t,n)=>{let r=(0,g.useContext)(bc),i=(0,g.useContext)(b),a=()=>Pc(e,t,r,i);return n?a():v(a)},Lc=Ic({scrapeMotionValuesFromProps:so,createRenderState:wc}),Rc=Ic({scrapeMotionValuesFromProps:yo,createRenderState:kc}),zc=Symbol.for(`motionComponentSymbol`);function Bc(e,t,n){let r=(0,g.useRef)(n);(0,g.useInsertionEffect)(()=>{r.current=n});let i=(0,g.useRef)(null);return(0,g.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var Vc=(0,g.createContext)({});function Hc(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Uc(e,t,n,r,i,a){let{visualElement:o}=(0,g.useContext)(bc),s=(0,g.useContext)(oc),c=(0,g.useContext)(b),l=(0,g.useContext)(ic),u=l.reducedMotion,d=l.skipAnimations,f=(0,g.useRef)(null),p=(0,g.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,g.useContext)(Vc);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Wc(f.current,n,i,h);let _=(0,g.useRef)(!1);(0,g.useInsertionEffect)(()=>{m&&_.current&&m.update(n,c)});let v=n[Zr],x=(0,g.useRef)(!!v&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return y(()=>{p.current=!0,m&&(_.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),x.current&&m.animationState&&m.animationState.animateChanges())}),(0,g.useEffect)(()=>{m&&(!x.current&&m.animationState&&m.animationState.animateChanges(),x.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),!1),m.enteringChildren=void 0)}),m}function Wc(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Gc(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Hc(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Gc(e){if(e)return e.options.allowProjection===!1?Gc(e.parent):e.projection}function Kc(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&dc(r);let a=n?n===`svg`:Mc(e),o=a?Rc:Lc;function s(n,s){let c,l={...(0,g.useContext)(ic),...n,layoutId:qc(n)},{isStatic:u}=l,d=Sc(n),f=o(n,u);if(!u&&typeof window<`u`){Jc(l,r);let t=Yc(l);c=t.MeasureLayout,d.visualElement=Uc(e,f,l,i,t.ProjectionNode,a)}return(0,h.jsxs)(bc.Provider,{value:d,children:[c&&d.visualElement?(0,h.jsx)(c,{visualElement:d.visualElement,...l}):null,Nc(e,n,Bc(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,g.forwardRef)(s);return c[zc]=e,c}function qc({layoutId:e}){let t=(0,g.useContext)(_).id;return t&&e!==void 0?t+`-`+e:e}function Jc(e,t){(0,g.useContext)(oc).strict}function Yc(e){let{drag:t,layout:n}=uc();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Xc(e,t){if(typeof Proxy>`u`)return Kc;let n=new Map,r=(n,r)=>Kc(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Kc(a,void 0,e,t)),n.get(a))})}var Zc=(e,t)=>t.isSVG??Mc(e)?new bo(t):new lo(t,{allowProjection:e!==g.Fragment}),Qc=class extends K{constructor(e){super(e),e.animationState||=Do(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();ma(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},$c=0,el={animation:{Feature:Qc},exit:{Feature:class extends K{constructor(){super(...arguments),this.id=$c++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Hr(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function tl(e){return{point:{x:e.pageX,y:e.pageY}}}var nl=e=>t=>Pi(t)&&e(t,tl(t));function rl(e,t,n,r){return hs(e,t,nl(n),r)}var il=({current:e})=>e?e.ownerDocument.defaultView:null,al=(e,t)=>Math.abs(e-t);function ol(e,t){let n=al(e.x,t.x),r=al(e.y,t.y);return Math.sqrt(n**2+r**2)}var sl=new Set([`auto`,`scroll`]),cl=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ll(this.lastRawMoveEventInfo,this.transformPagePoint));let e=dl(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=ol(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=M;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=ll(t,this.transformPagePoint),A.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=dl(e.type===`pointercancel`?this.lastMoveEventInfo:ll(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Pi(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=ll(tl(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=M;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,dl(s,this.history)),this.removeListeners=ie(rl(this.contextWindow,`pointermove`,this.handlePointerMove),rl(this.contextWindow,`pointerup`,this.handlePointerUp),rl(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(sl.has(e.overflowX)||sl.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),A.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),j(this.updatePoint)}};function ll(e,t){return t?{point:t(e.point)}:e}function ul(e,t){return{x:e.x-t.x,y:e.y-t.y}}function dl({point:e},t){return{point:e,delta:ul(e,pl(t)),offset:ul(e,fl(t)),velocity:ml(t,.1)}}function fl(e){return e[0]}function pl(e){return e[e.length-1]}function ml(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=pl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>E(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>E(t)*2&&(r=e[1]);let a=D(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function hl(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?B(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?B(n,e,r.max):Math.min(e,n)),e}function gl(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function _l(e,{top:t,left:n,bottom:r,right:i}){return{x:gl(e.x,n,i),y:gl(e.y,t,r)}}function vl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function yl(e,t){return{x:vl(e.x,t.x),y:vl(e.y,t.y)}}function bl(e,t){let n=.5,r=Y(e),i=Y(t);return i>r?n=ae(t.min,t.max-r,e.min):r>i&&(n=ae(e.min,e.max-i,t.min)),C(0,1,n)}function xl(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Sl=.35;function Cl(e=Sl){return e===!1?e=0:e===!0&&(e=Sl),{x:wl(e,`left`,`right`),y:wl(e,`top`,`bottom`)}}function wl(e,t,n){return{min:Tl(e,t),max:Tl(e,n)}}function Tl(e,t){return typeof e==`number`?e:e[t]||0}var El=new WeakMap,Dl=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=G(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(tl(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ki(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),X(e=>{let t=this.getAxisMotionValue(e).get()||0;if(I.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Y(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&A.update(()=>i(e,t),!1,!0),Yr(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=jl(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&A.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new cl(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:il(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&A.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Al(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=hl(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Hc(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=_l(n.layoutBox,e):this.constraints=!1,this.elastic=Cl(t),r!==this.constraints&&!Hc(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&X(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=xl(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Hc(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Xa(n,r.root,this.visualElement.getTransformPagePoint()),a=yl(r.layout.layoutBox,i);if(t){let e=t(Ma(a));this.hasMutatedConstraints=!!e,e&&(a=ja(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=X(o=>{if(!Al(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Yr(this.visualElement,e),n.start(Ir(e,n,0,t,this.visualElement,!1))}stopAnimation(){X(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){X(t=>{let{drag:n}=this.getProps();if(!Al(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-B(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Hc(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};X(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=bl({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),X(t=>{if(!Al(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(B(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;El.set(this.visualElement,this);let e=this.visualElement.current,t=rl(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Ri(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Hc(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=kl(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),A.read(r);let o=hs(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(X(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Sl,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Ol(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function kl(e,t,n){let r=oa(e,Ol(n)),i=oa(t,Ol(n));return()=>{r(),i()}}function Al(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function jl(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Ml=class extends K{constructor(e){super(e),this.removeGroupControls=T,this.removeListeners=T,this.controls=new Dl(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||T}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Nl=e=>(t,n)=>{e&&A.update(()=>e(t,n),!1,!0)},Pl=class extends K{constructor(){super(...arguments),this.removePointerDownListener=T}onPointerDown(e){this.session=new cl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:il(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Nl(e),onStart:Nl(t),onMove:Nl(n),onEnd:(e,t)=>{delete this.session,r&&A.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=rl(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Fl=!1,Il=class extends g.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Fl&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),xs.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Fl=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||A.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Ei.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Fl=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Ll(e){let[t,n]=ac(),r=(0,g.useContext)(_);return(0,h.jsx)(Il,{...e,layoutGroup:r,switchLayoutGroup:(0,g.useContext)(Vc),isPresent:t,safeToRemove:n})}var Rl={pan:{Feature:Pl},drag:{Feature:Ml,ProjectionNode:rc,MeasureLayout:Ll}};function zl(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&A.postRender(()=>i(t,tl(t)))}var Bl=class extends K{mount(){let{current:e}=this.node;e&&(this.unmount=Mi(e,(e,t)=>(zl(this.node,t,`Start`),e=>zl(this.node,e,`End`))))}unmount(){}},Vl=class extends K{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=ie(hs(this.node.current,`focus`,()=>this.onFocus()),hs(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Hl(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&A.postRender(()=>i(t,tl(t)))}var Ul=class extends K{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Gi(e,(e,t)=>(Hl(this.node,t,`Start`),(e,{success:t})=>Hl(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Wl=new WeakMap,Gl=new WeakMap,Kl=e=>{let t=Wl.get(e.target);t&&t(e)},ql=e=>{e.forEach(Kl)};function Jl({root:e,...t}){let n=e||document;Gl.has(n)||Gl.set(n,{});let r=Gl.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ql,{root:e,...t})),r[i]}function Yl(e,t,n){let r=Jl(t);return Wl.set(e,n),r.observe(e),()=>{Wl.delete(e),r.unobserve(e)}}var Xl={some:0,all:1},Zl=class extends K{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Xl[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Yl(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Ql(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Ql({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var $l={inView:{Feature:Zl},tap:{Feature:Ul},focus:{Feature:Vl},hover:{Feature:Bl}},eu={layout:{ProjectionNode:rc,MeasureLayout:Ll}},Z=Xc({...el,...$l,...Rl,...eu},Zc);function tu(){!Sa.current&&wa();let[e]=(0,g.useState)(xa.current);return e}var nu=(0,g.createContext)(null);function ru(){let e=new Set([`https://demo.cavinkare.in/`,`https://demo.cavinkare.in`]);return typeof window<`u`&&e.add(window.location.origin),e}function iu({children:e,previewMode:t=!1}){let[r,i]=(0,g.useState)(n(f)),[a,o]=(0,g.useState)(!t),[s,c]=(0,g.useState)(null),[u,d]=(0,g.useState)(null);return(0,g.useEffect)(()=>{t||fetch(`${l}/api/content`).then(e=>{if(!e.ok)throw Error(`Failed to load content`);return e.json()}).then(e=>{let{_updatedAt:t,...r}=e;i(n(r)),d(t),c(null)}).catch(e=>{console.warn(`Using fallback content:`,e.message);let t=localStorage.getItem(`static_content`);if(t)try{let{_updatedAt:e,...r}=JSON.parse(t);i(n(r)),d(e??null);return}catch{}c(e.message)}).finally(()=>o(!1))},[t]),(0,g.useEffect)(()=>{if(!t)return;o(!1);let e=ru(),r=t=>{if(!e.has(t.origin)||t.data?.type!==`ADMIN_PREVIEW`||!t.data.fullContent)return;i(n(t.data.fullContent)),o(!1);let r=t.data.anchor;r&&window.setTimeout(()=>{document.getElementById(r)?.scrollIntoView({behavior:`auto`,block:`start`})},180)};window.addEventListener(`message`,r);for(let t of e)try{window.parent?.postMessage({type:`PREVIEW_READY`},t)}catch{}return()=>window.removeEventListener(`message`,r)},[t]),(0,h.jsx)(nu.Provider,{value:{content:r,loading:a,error:s,updatedAt:u,previewMode:t},children:e})}function au(){let e=(0,g.useContext)(nu);if(!e)throw Error(`useContent must be used within a ContentProvider`);return e}var ou=(0,g.createContext)(!1);function su(){return(0,g.useContext)(ou)}var cu=t(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),lu=t(`brain-circuit`,[[`path`,{d:`M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z`,key:`l5xja`}],[`path`,{d:`M9 13a4.5 4.5 0 0 0 3-4`,key:`10igwf`}],[`path`,{d:`M6.003 5.125A3 3 0 0 0 6.401 6.5`,key:`105sqy`}],[`path`,{d:`M3.477 10.896a4 4 0 0 1 .585-.396`,key:`ql3yin`}],[`path`,{d:`M6 18a4 4 0 0 1-1.967-.516`,key:`2e4loj`}],[`path`,{d:`M12 13h4`,key:`1ku699`}],[`path`,{d:`M12 18h6a2 2 0 0 1 2 2v1`,key:`105ag5`}],[`path`,{d:`M12 8h8`,key:`1lhi5i`}],[`path`,{d:`M16 8V5a2 2 0 0 1 2-2`,key:`u6izg6`}],[`circle`,{cx:`16`,cy:`13`,r:`.5`,key:`ry7gng`}],[`circle`,{cx:`18`,cy:`3`,r:`.5`,key:`1aiba7`}],[`circle`,{cx:`20`,cy:`21`,r:`.5`,key:`yhc1fs`}],[`circle`,{cx:`20`,cy:`8`,r:`.5`,key:`1e43v0`}]]),uu=t(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),du=t(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),fu=t(`cloud-cog`,[[`path`,{d:`m10.852 19.772-.383.924`,key:`r7sl7d`}],[`path`,{d:`m13.148 14.228.383-.923`,key:`1d5zpm`}],[`path`,{d:`M13.148 19.772a3 3 0 1 0-2.296-5.544l-.383-.923`,key:`1ydik7`}],[`path`,{d:`m13.53 20.696-.382-.924a3 3 0 1 1-2.296-5.544`,key:`1m1vsf`}],[`path`,{d:`m14.772 15.852.923-.383`,key:`660p6e`}],[`path`,{d:`m14.772 18.148.923.383`,key:`hrcpis`}],[`path`,{d:`M4.2 15.1a7 7 0 1 1 9.93-9.858A7 7 0 0 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.2`,key:`j2q98n`}],[`path`,{d:`m9.228 15.852-.923-.383`,key:`1p9ong`}],[`path`,{d:`m9.228 18.148-.923.383`,key:`6558rz`}]]),pu=t(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),mu=t(`compass`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]),hu=t(`factory`,[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M16 16h.01`,key:`1f9h7w`}],[`path`,{d:`M3 19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-.769-.422l-4.462 2.844A.5.5 0 0 1 15 10.5v-2a.5.5 0 0 0-.769-.422L9.77 10.922A.5.5 0 0 1 9 10.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z`,key:`1iv0i2`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]),gu=t(`glasses`,[[`circle`,{cx:`6`,cy:`15`,r:`4`,key:`vux9w4`}],[`circle`,{cx:`18`,cy:`15`,r:`4`,key:`18o8ve`}],[`path`,{d:`M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2`,key:`1ag4bs`}],[`path`,{d:`M2.5 13 5 7c.7-1.3 1.4-2 3-2`,key:`1hm1gs`}],[`path`,{d:`M21.5 13 19 7c-.7-1.3-1.5-2-3-2`,key:`1r31ai`}]]),_u=t(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),vu=t(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),yu=t(`panels-top-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M9 21V9`,key:`1oto5p`}]]),bu=t(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),xu=t(`users-round`,[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]]),Su=t(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]);function Cu({gallery:e}){let t=e?.items||[],n=e||{eyebrow:`Featured Gallery`,title:``,subtitle:``},[r,i]=(0,g.useState)(0),[a,o]=(0,g.useState)(!1);return g.useEffect(()=>{let e=()=>o(window.innerWidth<1024);return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,h.jsxs)(`section`,{id:`featured-gallery`,style:{padding:a?`4rem 1.25rem`:`6rem 8%`,background:`#020710`,position:`relative`},children:[(0,h.jsxs)(`div`,{style:{marginBottom:`3.5rem`,position:`relative`,zIndex:10},children:[(0,h.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.9rem`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.1em`},children:n.eyebrow}),(0,h.jsx)(`h2`,{style:{fontSize:`clamp(2rem, 3vw, 2.5rem)`,fontWeight:800,marginTop:`0.5rem`,color:`#ffffff`},children:n.title}),(0,h.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`1rem`,marginTop:`0.75rem`,maxWidth:`600px`,lineHeight:`1.5`},children:n.subtitle})]}),(0,h.jsx)(wu,{galleryData:t,activeIdx:r,setActiveIdx:i})]})}function wu({galleryData:e,activeIdx:t,setActiveIdx:n}){let[r,i]=g.useState(!1),o=tu();g.useEffect(()=>{let e=()=>{i(window.innerWidth<1024)};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let s=e=>o?{}:{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.15}};return r?(0,h.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1.5rem`},children:e.map((e,t)=>{let n=t===0,r=s(t);return(0,h.jsxs)(Z.div,{className:`glass-card`,...r,transition:{duration:.8,ease:[.22,1,.36,1],delay:t*.1},style:{borderRadius:`24px`,overflow:`hidden`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,height:n?`320px`:`240px`,backgroundImage:`linear-gradient(to bottom, rgba(2, 7, 16, 0.3) 0%, rgba(2, 7, 16, 0.95) 100%), url(${m(e.image)})`,backgroundSize:`cover`,backgroundPosition:`center`,display:`flex`,flexDirection:`column`,justifyContent:`flex-end`,padding:`2rem 1.5rem`,boxShadow:n?`0 10px 30px -10px rgba(255, 170, 0, 0.15)`:`none`,borderColor:n?`rgba(255, 170, 0, 0.3)`:`rgba(255, 255, 255, 0.06)`},children:[(0,h.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.75rem`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.05em`,marginBottom:`0.25rem`},children:e.category}),(0,h.jsx)(`h3`,{style:{fontSize:`1.4rem`,fontWeight:700,color:`#ffffff`,margin:`0 0 0.5rem 0`,lineHeight:`1.3`},children:e.title}),(0,h.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.88rem`,margin:`0 0 1rem 0`,lineHeight:`1.5`,display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`,overflow:`hidden`},children:e.excerpt}),(0,h.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,borderTop:`1px solid rgba(255, 255, 255, 0.1)`,paddingTop:`0.75rem`},children:[(0,h.jsxs)(`span`,{style:{color:`#94a3b8`,fontSize:`0.8rem`,display:`flex`,alignItems:`center`,gap:`0.4rem`},children:[(0,h.jsx)(a,{size:14}),` `,e.readTime]}),(0,h.jsxs)(`span`,{style:{color:`#ffaa00`,fontSize:`0.85rem`,fontWeight:600,display:`flex`,alignItems:`center`,gap:`0.25rem`},children:[`Read More `,(0,h.jsx)(cu,{size:14})]})]})]},e.id)})}):(0,h.jsx)(`div`,{style:{display:`flex`,gap:`1.25rem`,width:`100%`,height:`460px`,alignItems:`stretch`,position:`relative`},children:e.map((e,r)=>{let i=t===r,c=s(r);return(0,h.jsxs)(Z.div,{layout:!0,onMouseEnter:()=>n(r),className:`glass-card`,...c,transition:o?{type:`spring`,stiffness:350,damping:32}:{layout:{type:`spring`,stiffness:350,damping:32},y:{duration:.8,ease:[.22,1,.36,1],delay:r*.1},opacity:{duration:.8,ease:`easeOut`,delay:r*.1}},style:{flex:i?2.8:1,borderRadius:`24px`,overflow:`hidden`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,cursor:`pointer`,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,boxShadow:i?`0 15px 35px -12px rgba(255, 170, 0, 0.2)`:`0 4px 20px rgba(0, 0, 0, 0.3)`,borderColor:i?`rgba(255, 170, 0, 0.3)`:`rgba(255, 255, 255, 0.06)`},children:[(0,h.jsx)(Z.div,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,backgroundImage:`url(${m(e.image)})`,backgroundSize:`cover`,backgroundPosition:`center`,zIndex:1},animate:{scale:i?1.06:1},transition:{duration:.6}}),(0,h.jsx)(Z.div,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,background:`linear-gradient(to bottom, rgba(2, 7, 16, 0.3) 0%, rgba(2, 7, 16, 0.95) 100%)`,zIndex:2},animate:{opacity:i?.95:.85},transition:{duration:.4}}),(0,h.jsx)(`div`,{style:{position:`relative`,zIndex:3,padding:`2rem 1.8rem 0 1.8rem`,display:`flex`,justifyContent:`space-between`,alignItems:`center`},children:(0,h.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.75rem`,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.08em`,background:`rgba(255, 170, 0, 0.08)`,padding:`0.3rem 0.6rem`,borderRadius:`8px`,border:`1px solid rgba(255, 170, 0, 0.15)`},children:e.category})}),(0,h.jsxs)(`div`,{style:{position:`relative`,zIndex:3,padding:`0 1.8rem 2rem 1.8rem`},children:[(0,h.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.5rem`},children:[(0,h.jsx)(`h3`,{style:{fontSize:i?`1.5rem`:`1.15rem`,fontWeight:700,color:`#ffffff`,margin:0,lineHeight:`1.3`,transition:`font-size 0.3s ease`,whiteSpace:i?`normal`:`nowrap`,overflow:i?`visible`:`hidden`,textOverflow:i?`clip`:`ellipsis`,maxWidth:`100%`},children:e.title}),(0,h.jsx)(Z.div,{initial:!1,animate:{height:i?`auto`:0,opacity:+!!i,marginTop:i?6:0},transition:{duration:.4,ease:`easeInOut`},style:{overflow:`hidden`},children:(0,h.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.88rem`,margin:0,lineHeight:`1.5`,maxWidth:`90%`},children:e.excerpt})})]}),(0,h.jsxs)(`div`,{style:{marginTop:`1.5rem`},children:[(0,h.jsx)(`div`,{style:{width:`100%`,height:`2px`,backgroundColor:`rgba(255, 255, 255, 0.12)`,borderRadius:`1px`,marginBottom:`1rem`,position:`relative`,overflow:`hidden`},children:(0,h.jsx)(Z.div,{style:{height:`100%`,backgroundColor:`#ffaa00`,borderRadius:`1px`},initial:{width:0},animate:{width:i?`60%`:`15%`},transition:{duration:.5}})}),(0,h.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,minHeight:`24px`},children:[(0,h.jsxs)(`span`,{style:{color:`#94a3b8`,fontSize:`0.8rem`,display:`flex`,alignItems:`center`,gap:`0.4rem`},children:[(0,h.jsx)(a,{size:13,style:{color:`#ffaa00`}}),` `,e.readTime]}),i&&(0,h.jsxs)(Z.span,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.3},style:{color:`#ffaa00`,fontSize:`0.85rem`,fontWeight:600,display:`flex`,alignItems:`center`,gap:`0.25rem`},children:[`Read More `,(0,h.jsx)(cu,{size:14})]})]})]})]})]},e.id)})})}var Tu=[`radial-gradient(circle at top right, rgba(139, 92, 246, 0.08) 0%, transparent 50%), linear-gradient(to bottom, #FAF9FA 0%, #F6F2F5 100%)`,`radial-gradient(circle at top right, rgba(16, 185, 129, 0.08) 0%, transparent 50%), linear-gradient(to bottom, #FAF9FA 0%, #F6F2F5 100%)`,`radial-gradient(circle at top right, rgba(245, 158, 11, 0.08) 0%, transparent 50%), linear-gradient(to bottom, #FAF9FA 0%, #F6F2F5 100%)`];function Eu({product:e,isMobile:t,delay:n=0,index:r=0}){if(!e)return null;let i=tu(),a=t?`92%`:`520px`,o=t?`4%`:`32%`,s=t?`200px`:`320px`,c=t?`170px`:`280px`;return(0,h.jsx)(Z.div,{initial:i?!1:{opacity:0,y:40},whileInView:i?void 0:{opacity:1,y:0},viewport:{once:!0,amount:.15},transition:{duration:.8,ease:[.22,1,.36,1],delay:n},style:{height:`100%`},children:(0,h.jsxs)(`div`,{className:`product-card`,style:{borderRadius:t?`20px`:`28px`,border:`${t?4:6}px solid #EAE3E8`,background:Tu[r%Tu.length],padding:t?`1.75rem 1.25rem 0`:`3rem 2.5rem 0 2.5rem`,boxShadow:`0 4px 24px rgba(234, 227, 232, 0.25)`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,height:`100%`,minHeight:t?`380px`:`600px`,transition:`all 0.3s cubic-bezier(0.4, 0, 0.2, 1)`},onMouseEnter:e=>{t||(e.currentTarget.style.transform=`translateY(-6px)`,e.currentTarget.style.boxShadow=`0 10px 30px rgba(255, 170, 0, 0.2)`,e.currentTarget.style.borderColor=`#ffaa00`)},onMouseLeave:e=>{e.currentTarget.style.transform=`translateY(0)`,e.currentTarget.style.boxShadow=`0 4px 24px rgba(234, 227, 232, 0.25)`,e.currentTarget.style.borderColor=`#EAE3E8`},children:[(0,h.jsx)(`div`,{style:{position:`absolute`,inset:0,backgroundImage:`radial-gradient(#E0D2DC 1.5px, transparent 1.5px)`,backgroundSize:`12px 12px`,WebkitMaskImage:`linear-gradient(to top, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0) 65%)`,maskImage:`linear-gradient(to top, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0) 65%)`,pointerEvents:`none`,zIndex:1}}),(0,h.jsx)(`h3`,{style:{fontSize:t?`1.5rem`:`2rem`,fontWeight:800,color:`#0f172a`,margin:`0 0 0.75rem 0`,letterSpacing:`-0.02em`,position:`relative`,zIndex:3},children:e.name}),(0,h.jsx)(`p`,{style:{color:`#475569`,fontSize:t?`0.95rem`:`1.05rem`,lineHeight:`1.6`,margin:`0 0 1.5rem 0`,fontWeight:400,maxWidth:`100%`,position:`relative`,zIndex:3},children:e.description}),(0,h.jsx)(`div`,{style:{position:`absolute`,bottom:0,left:o,width:a,height:c,borderRadius:`20px 20px 0 0`,boxShadow:`-20px -20px 45px rgba(0,0,0,0.12)`,zIndex:2,pointerEvents:`none`}}),(0,h.jsx)(`div`,{style:{position:`absolute`,bottom:t?`-16px`:`-40px`,left:o,width:a,height:s,borderRadius:`16px`,border:`1.5px solid rgba(255, 255, 255, 0.4)`,overflow:`hidden`,zIndex:2,background:`transparent`},children:(0,h.jsx)(`img`,{src:m(e.image),alt:`${e.name} dashboard`,style:{position:`absolute`,top:t?`0`:`-8%`,left:t?`0`:`-40%`,width:t?`100%`:`160%`,height:t?`100%`:`145%`,objectFit:`cover`}})}),e.stats?.[0]&&(0,h.jsxs)(`div`,{style:{position:`absolute`,bottom:t?`110px`:`160px`,left:t?`6%`:`18%`,background:`rgba(255, 255, 255, 0.25)`,backdropFilter:`blur(12px)`,border:`1px solid rgba(255, 255, 255, 0.3)`,padding:t?`0.5rem 0.75rem`:`0.8rem 1.2rem`,borderRadius:`12px`,boxShadow:`0 8px 32px rgba(31, 38, 135, 0.15)`,zIndex:5},children:[(0,h.jsx)(`span`,{style:{fontWeight:800,color:`#000000`,fontSize:t?`1.1rem`:`1.4rem`,display:`block`,lineHeight:1.1},children:e.stats[0].value}),(0,h.jsx)(`span`,{style:{fontSize:t?`0.65rem`:`0.75rem`,color:`#000000`,fontWeight:600},children:e.stats[0].label})]}),e.stats?.[1]&&(0,h.jsxs)(`div`,{style:{position:`absolute`,bottom:t?`36px`:`50px`,right:t?`5%`:`8%`,background:`rgba(20, 20, 25, 0.55)`,backdropFilter:`blur(12px)`,border:`1px solid rgba(255, 255, 255, 0.15)`,padding:t?`0.5rem 0.75rem`:`0.8rem 1.2rem`,borderRadius:`12px`,boxShadow:`0 8px 32px rgba(0, 0, 0, 0.25)`,zIndex:5},children:[(0,h.jsx)(`span`,{style:{fontWeight:800,color:`#ffffff`,fontSize:t?`1.1rem`:`1.4rem`,display:`block`,lineHeight:1.1},children:e.stats[1].value}),(0,h.jsx)(`span`,{style:{fontSize:t?`0.65rem`:`0.75rem`,color:`#ffffff`,fontWeight:500},children:e.stats[1].label})]})]})})}function Q({children:e,delay:t=0,style:n}){let r=tu(),i=su();return r&&!i?(0,h.jsx)(`div`,{style:n,children:e}):(0,h.jsx)(Z.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.1},transition:{duration:.8,ease:[.22,1,.36,1],delay:t},style:n,children:e})}var Du={BrainCircuit:lu,Factory:hu,Network:vu,UsersRound:xu,ShieldCheck:bu,Code2:pu,CloudCog:fu,Glasses:gu,Sparkles:c},$=({src:e,alt:t,radiusX:n,radiusY:r,startAngle:i,duration:a,clockwise:o=!0,size:s=120})=>{let[c,l]=(0,g.useState)({x:0,y:0});return(0,g.useEffect)(()=>{let e=2*Math.PI/(a*1e3),t=o?1:-1,s=i*Math.PI/180,c,u=()=>{let i=performance.now(),a=s+t*e*i;l({x:n*Math.cos(a),y:r*Math.sin(a)}),c=requestAnimationFrame(u)};return c=requestAnimationFrame(u),()=>cancelAnimationFrame(c)},[n,r,i,a,o]),(0,h.jsx)(Z.div,{whileHover:{scale:1.1},transition:{type:`spring`,stiffness:300,damping:15},style:{position:`absolute`,top:`50%`,left:`50%`,x:`calc(-50% + ${c.x}px)`,y:`calc(-50% + ${c.y}px)`,width:`${s}px`,height:`80px`,display:`flex`,justifyContent:`center`,alignItems:`center`,cursor:`pointer`,zIndex:10,pointerEvents:`auto`},children:(0,h.jsx)(`img`,{src:e,alt:t,style:{maxWidth:`100%`,maxHeight:`100%`,objectFit:`contain`}})})};function Ou({service:e,isMobile:t,index:n=0}){Du[e.icon];let r=tu()?{}:{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.15},transition:{y:{type:`tween`,duration:.8,ease:[.22,1,.36,1],delay:n*.1},opacity:{duration:.8,ease:`easeOut`,delay:n*.1}}};return(0,h.jsxs)(Z.div,{whileHover:t?{}:{y:-8,borderColor:`rgba(255, 255, 255, 0.2)`,boxShadow:`0 20px 40px rgba(0, 0, 0, 0.6)`},...r,style:{flex:`0 0 auto`,scrollSnapAlign:`start`,width:t?`290px`:`calc(40% - 19.2px)`,minHeight:t?`450px`:`520px`,background:`linear-gradient(135deg, rgba(15, 23, 42, 0.55) 0%, rgba(9, 14, 26, 0.85) 100%)`,backdropFilter:`blur(16px)`,borderRadius:`24px`,border:`1px solid rgba(255, 255, 255, 0.08)`,padding:t?`2rem 1.5rem`:`3rem 2.5rem`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,boxShadow:`0 12px 30px rgba(0, 0, 0, 0.4)`,transition:`border-color 0.3s ease, box-shadow 0.3s ease`},children:[(0,h.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,background:e.glowColor,pointerEvents:`none`,zIndex:0}}),(0,h.jsx)(`div`,{style:{position:`absolute`,bottom:`-25px`,right:`15px`,fontSize:t?`130px`:`180px`,fontWeight:900,color:`rgba(255, 255, 255, 0.012)`,lineHeight:`1`,pointerEvents:`none`,userSelect:`none`,zIndex:0},children:e.number}),(0,h.jsxs)(`div`,{style:{position:`relative`,zIndex:1},children:[(0,h.jsx)(`h3`,{style:{fontSize:t?`1.5rem`:`1.9rem`,fontWeight:700,color:`#ffffff`,marginBottom:t?`1rem`:`1.5rem`,letterSpacing:`-0.02em`,lineHeight:`1.2`},children:e.title}),(0,h.jsxs)(`div`,{style:{display:`flex`,gap:`0.8rem`,marginBottom:`1rem`},children:[(0,h.jsx)(`div`,{style:{width:`4px`,background:`#ffffff`,borderRadius:`2px`,flexShrink:0}}),(0,h.jsx)(`h4`,{style:{fontSize:t?`0.95rem`:`1.05rem`,fontWeight:700,color:`#e2e8f0`,lineHeight:`1.4`,margin:0},children:e.boldStatement})]}),(0,h.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:t?`0.85rem`:`0.9rem`,lineHeight:`1.6`,marginBottom:t?`1.2rem`:`1.8rem`,fontWeight:400},children:e.description}),(0,h.jsx)(`ul`,{style:{listStyle:`none`,padding:0,margin:0,display:`flex`,flexDirection:`column`,gap:`0.65rem`},children:e.capabilities.map((e,n)=>(0,h.jsxs)(`li`,{style:{display:`flex`,alignItems:`center`,gap:`0.6rem`,fontSize:t?`0.85rem`:`0.9rem`,fontWeight:500,color:`#cbd5e1`},children:[(0,h.jsx)(`span`,{style:{color:`#ffffff`,opacity:.5,fontSize:`0.85rem`},children:`»`}),e]},n))})]}),(0,h.jsx)(`div`,{style:{position:`relative`,zIndex:1,marginTop:t?`1.5rem`:`2.5rem`},children:(0,h.jsxs)(`a`,{href:`#contact`,style:{display:`inline-flex`,alignItems:`center`,gap:`0.5rem`,color:`#ffffff`,textDecoration:`none`,fontSize:t?`0.85rem`:`0.92rem`,fontWeight:600,transition:`color 0.2s`},onMouseEnter:e=>e.target.style.color=`#ffaa00`,onMouseLeave:e=>e.target.style.color=`#ffffff`,children:[e.cta,` `,(0,h.jsx)(`span`,{children:``})]})})]})}function ku({previewMode:e=!1}){let{content:t,loading:n}=au(),r=t.services?.items??[],i=t.insights?.items??[],a=t.metrics??[],o=t.hero??{},s=t.about??{},c=t.partners??{logos:[]},l=t.certifications??{items:[]},u=t.whyUs??{cards:[],images:[]},f=t.products??{items:[]},_=t.footer??{cta:{},quickLinks:[],productLinks:[],social:[],legal:[]},[v,y]=(0,g.useState)(`agile`),[b,x]=(0,g.useState)(0),[S,C]=(0,g.useState)(0),[w,ee]=(0,g.useState)(!1),[te,ne]=(0,g.useState)(!1),[re,T]=(0,g.useState)(`home`),[ie,ae]=(0,g.useState)(null),[oe,E]=(0,g.useState)(!1),[D,se]=(0,g.useState)(!1),[ce,le]=(0,g.useState)(!1),[ue,de]=(0,g.useState)(!1),[O,fe]=(0,g.useState)(``),[pe,me]=(0,g.useState)(``),[he,ge]=(0,g.useState)(``),[_e,ve]=(0,g.useState)(null),[ye,be]=(0,g.useState)(``),[xe,Se]=(0,g.useState)(``),[Ce,we]=(0,g.useState)(``),[Te,Ee]=(0,g.useState)(``),[De,Oe]=(0,g.useState)(``),[ke,k]=(0,g.useState)({"AI & Analytics":!1,"SAP Services":!1,"XR Platforms":!1,"Smart Factory":!1,"Cloud Engineering":!1,"Enterprise Software":!1});(0,g.useEffect)(()=>{let e=()=>{ee(window.innerWidth<1024)};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let[Ae,je]=(0,g.useState)(null);(0,g.useEffect)(()=>{let e=setInterval(()=>{let e=[27,28,30,31,32,33,34,35,36],t=e[Math.floor(Math.random()*e.length)];je(t),setTimeout(()=>{je(null)},1e3)},3500);return()=>clearInterval(e)},[]),(0,g.useEffect)(()=>{if(e)return;let t=()=>{let e=[`home`,`aboutus`,`services`,`whyus`,`products`,`insights`,`contactus`],t=window.scrollY+120;if(window.innerHeight+window.scrollY>=document.documentElement.scrollHeight-50){T(`contactus`);return}for(let n of e){let e=document.getElementById(n);if(e){let r=e.offsetTop,i=e.offsetHeight;if(t>=r&&t<r+i){T(n);break}}}};return window.addEventListener(`scroll`,t),t(),()=>window.removeEventListener(`scroll`,t)},[e]);let Me=()=>{switch(re){case`home`:return`Home`;case`aboutus`:case`services`:case`whyus`:return`About Us`;case`products`:case`insights`:return`Products`;case`contactus`:return`Contact Us`;default:return`Home`}},A=(0,g.useRef)(null),j=e=>{if(A.current){let t=w?310:444;A.current.scrollBy({left:e===`left`?-t:t,behavior:`smooth`})}},[M,Ne]=(0,g.useState)(0),Pe=(0,g.useRef)(null),Fe=e=>{if(Pe.current){let t=(w?window.innerWidth*.72:340)+24;Pe.current.scrollBy({left:e*t,behavior:`smooth`})}},N=w?`1.25rem`:`8%`,P=[`Home`,`About Us`,`Products`,`Careers`,`Contact Us`],Ie=w?72:88,Le=e=>{if(e===`contactus`){let e=document.getElementById(`contactus`);if(e){let t=e.getBoundingClientRect().top+window.scrollY-Ie;window.scrollTo({top:Math.max(0,t),behavior:`smooth`})}else window.scrollTo({top:document.documentElement.scrollHeight,behavior:`smooth`});T(`contactus`);return}let t=document.getElementById(e);if(!t)return;let n=t.getBoundingClientRect().top+window.scrollY-Ie;window.scrollTo({top:Math.max(0,n),behavior:`smooth`}),T(e)},Re=e=>{if(de(!1),e===`Careers`){ne(!0);return}let t={Home:`home`,"About Us":`aboutus`,Products:`products`,"Contact Us":`contactus`}[e];t&&setTimeout(()=>Le(t),w?150:0)};return(0,g.useEffect)(()=>(document.body.style.overflow=ue?`hidden`:``,()=>{document.body.style.overflow=``}),[ue]),n?(0,h.jsx)(`div`,{style:{minHeight:`100vh`,display:`flex`,alignItems:`center`,justifyContent:`center`,background:`#020710`,color:`#94a3b8`},children:`Loading...`}):(0,h.jsxs)(`div`,{style:{backgroundColor:`#020710`,color:`#ffffff`,minHeight:`100vh`,position:`relative`,display:`flex`,flexDirection:`column`},children:[(0,h.jsxs)(`div`,{style:{position:`relative`,zIndex:10,backgroundColor:`#020710`,width:`100%`},children:[(0,h.jsx)(`div`,{style:{position:`absolute`,top:0,left:`10%`,right:`10%`,height:`600px`,background:`radial-gradient(circle, rgba(0, 119, 255, 0.12) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,h.jsx)(`div`,{style:{position:`absolute`,top:`1200px`,right:`5%`,width:`500px`,height:`500px`,background:`radial-gradient(circle, rgba(255, 85, 0, 0.08) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,h.jsx)(`div`,{style:{position:`absolute`,top:`2200px`,left:`5%`,width:`600px`,height:`600px`,background:`radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,h.jsxs)(`nav`,{className:`glass site-nav`,style:{position:`sticky`,top:0,zIndex:50,display:`flex`,justifyContent:`space-between`,alignItems:`center`,padding:w?`0.85rem 1.25rem`:`1.2rem 8%`,borderBottom:re===`products`?`1px solid rgba(15, 23, 42, 0.08)`:`1px solid rgba(255, 255, 255, 0.05)`},children:[(0,h.jsx)(`div`,{style:{display:`flex`,alignItems:`center`},children:(0,h.jsx)(`img`,{src:m(`/assets/cavin_logo.svg`),alt:`Cavin Infotech Logo`,style:{height:w?`38px`:`50px`,display:`block`}})}),!w&&(0,h.jsxs)(`div`,{className:`site-nav-links`,style:{display:`flex`,gap:`2rem`,alignItems:`center`},children:[P.map(e=>{let t=re===`products`,n=Me()===e,r=ie===e,i;return i=t?n||r?`#b45309`:`#1e293b`:n||r?`#ffaa00`:`#a0aec0`,(0,h.jsx)(`a`,{href:e===`Careers`?void 0:`#${e.toLowerCase().replace(` `,``)}`,onClick:t=>{t.preventDefault(),Re(e)},style:{color:i,textDecoration:`none`,fontSize:`0.95rem`,fontWeight:500,transition:`all 0.3s ease`,cursor:`pointer`},onMouseEnter:()=>ae(e),onMouseLeave:()=>ae(null),children:e},e)}),(0,h.jsxs)(`div`,{className:`btn-sparkle-wrapper`,children:[(0,h.jsx)(`img`,{src:m(`/assets/button_hover_effect.png`),className:`btn-sparkles`,alt:``}),(0,h.jsx)(`button`,{className:`btn-talk`,onClick:()=>se(!0),children:`Book a Strategy Call`})]})]}),w&&(0,h.jsx)(`button`,{type:`button`,"aria-label":ue?`Close menu`:`Open menu`,onClick:()=>de(e=>!e),style:{background:`rgba(255,255,255,0.06)`,border:`1px solid rgba(255,255,255,0.12)`,borderRadius:`8px`,width:`42px`,height:`42px`,display:`flex`,alignItems:`center`,justifyContent:`center`,color:re===`products`?`#1e293b`:`#fff`,cursor:`pointer`},children:ue?(0,h.jsx)(p,{size:20}):(0,h.jsx)(d,{size:20})})]}),w&&ue&&(0,h.jsx)(`div`,{className:`mobile-menu-overlay`,onClick:()=>de(!1),style:{position:`fixed`,inset:0,background:`rgba(2, 7, 16, 0.75)`,backdropFilter:`blur(6px)`,zIndex:60,display:`flex`,justifyContent:`flex-end`},children:(0,h.jsxs)(`div`,{className:`mobile-menu-panel`,onClick:e=>e.stopPropagation(),style:{width:`min(85vw, 320px)`,height:`100%`,background:`#0a1628`,borderLeft:`1px solid rgba(255,255,255,0.08)`,padding:`1.5rem 1.25rem`,display:`flex`,flexDirection:`column`,gap:`0.25rem`},children:[P.map(e=>(0,h.jsx)(`button`,{type:`button`,onClick:()=>Re(e),style:{background:Me()===e?`rgba(255,170,0,0.12)`:`transparent`,border:`none`,color:Me()===e?`#ffaa00`:`#e2e8f0`,textAlign:`left`,padding:`0.85rem 1rem`,borderRadius:`8px`,fontSize:`1rem`,fontWeight:500,cursor:`pointer`},children:e},e)),(0,h.jsx)(`button`,{type:`button`,className:`btn-talk`,onClick:()=>{de(!1),se(!0)},style:{marginTop:`1rem`,width:`100%`,minWidth:`unset`},children:`Book a Strategy Call`})]})}),(0,h.jsxs)(`section`,{id:`home`,style:{padding:w?`6rem 1.25rem 3.5rem`:`9rem 8% 6rem 8%`,textAlign:`center`,position:`relative`,zIndex:10,minHeight:w?`70vh`:`85vh`,display:`flex`,flexDirection:`column`,alignItems:`center`,overflow:`hidden`},children:[(0,h.jsxs)(`video`,{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,style:{position:`absolute`,top:0,left:0,width:`100%`,height:`100%`,objectFit:`cover`,zIndex:-1,pointerEvents:`none`},children:[(0,h.jsx)(`source`,{src:m(o.video),type:`video/mp4`}),`Your browser does not support the video tag.`]}),(0,h.jsxs)(Q,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`},children:[(0,h.jsx)(`div`,{style:{display:`inline-flex`,alignItems:`center`,gap:`0.5rem`,backgroundColor:`rgba(255, 170, 0, 0.08)`,border:`1px solid rgba(255, 170, 0, 0.2)`,borderRadius:`9999px`,padding:`0.4rem 1.2rem`,marginBottom:`2.5rem`,boxShadow:`0 4px 12px rgba(0, 0, 0, 0.3)`},children:(0,h.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.85rem`,fontWeight:600},children:o.badge})}),(0,h.jsxs)(`h1`,{style:{fontSize:`clamp(2rem, 4.8vw, 4.4rem)`,fontWeight:800,lineHeight:1.15,maxWidth:`1200px`,margin:w?`0 auto 3rem auto`:`0 auto 8rem auto`,letterSpacing:`-0.03em`,filter:`drop-shadow(0 8px 24px rgba(0, 0, 0, 0.8))`,textShadow:`0 2px 10px rgba(0, 0, 0, 0.5)`},children:[(0,h.jsx)(`span`,{style:{color:`#94a3b8`,display:`block`,fontSize:`clamp(1.5rem, 3.8vw, 3.2rem)`,marginBottom:`0.5rem`,fontWeight:500},children:o.headline}),o.subheadline?.includes(`Technology Partner`)?(0,h.jsxs)(h.Fragment,{children:[o.subheadline.replace(`Technology Partner`,``).trim(),` `,(0,h.jsx)(`span`,{className:`gradient-text-gold`,children:`Technology Partner`})]}):o.subheadline]})]})]}),(0,h.jsx)(`section`,{style:{padding:w?`3rem 1.5rem`:`4rem 8% 2rem 8%`,backgroundColor:`#020710`,position:`relative`,zIndex:10,display:`flex`,flexDirection:`column`,alignItems:`center`},children:(0,h.jsx)(Q,{style:{width:`100%`,display:`flex`,justifyContent:`center`},children:(0,h.jsx)(`div`,{style:{background:`rgba(25, 23, 21, 0.75)`,padding:w?`1.5rem 1.2rem`:`1.2rem 3rem`,display:`flex`,flexDirection:w?`column`:`row`,gap:w?`1.2rem`:`2rem`,justifyContent:w?`center`:`space-between`,alignItems:`center`,width:`100%`,maxWidth:`1100px`,borderRadius:`16px`,border:`1px solid rgba(255, 255, 255, 0.08)`,backdropFilter:`blur(20px)`,marginTop:`0`,marginBottom:`0`,position:`relative`,zIndex:20,boxShadow:`0 25px 50px -12px rgba(0, 0, 0, 0.8)`},children:a.map((e,t)=>(0,h.jsxs)(g.Fragment,{children:[t>0&&!w&&(0,h.jsx)(`div`,{style:{width:`1px`,height:`30px`,backgroundColor:`rgba(255, 255, 255, 0.15)`,flexShrink:0}}),(0,h.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`1rem`,flex:`1 1 auto`,minWidth:w?`unset`:`150px`,justifyContent:w?`center`:`flex-start`},children:[(0,h.jsx)(`div`,{style:{width:`42px`,height:`42px`,borderRadius:`50%`,border:`1.5px solid rgba(255, 170, 0, 0.4)`,background:`rgba(255, 170, 0, 0.05)`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0},children:[(0,h.jsx)(Su,{size:18,style:{color:`#ffaa00`,flexShrink:0}},`z`),(0,h.jsx)(_u,{size:18,style:{color:`#ffaa00`,flexShrink:0}},`g`),(0,h.jsx)(yu,{size:18,style:{color:`#ffaa00`,flexShrink:0}},`l`),(0,h.jsx)(mu,{size:18,style:{color:`#ffaa00`,flexShrink:0}},`c`)][t%4]}),(0,h.jsxs)(`div`,{style:{textAlign:`left`},children:[(0,h.jsx)(`span`,{style:{display:`block`,fontSize:`1.5rem`,fontWeight:800,color:`#ffffff`,lineHeight:1.1},children:e.value}),(0,h.jsx)(`span`,{style:{fontSize:`0.8rem`,color:`#94a3b8`},children:e.label})]})]})]},e.label))})})}),(0,h.jsx)(`section`,{id:`aboutus`,style:{padding:w?`3.5rem 1.25rem`:`6.5rem 8% 5.5rem 8%`,backgroundColor:`#020710`,backgroundImage:`url('${m(s.backgroundImage)}')`,backgroundSize:`cover`,backgroundPosition:`center`,backgroundRepeat:`no-repeat`,display:`flex`,flexDirection:`column`,alignItems:`center`,textAlign:`center`,borderBottom:`1px solid rgba(255, 255, 255, 0.02)`,position:`relative`},children:(0,h.jsxs)(Q,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`,width:`100%`},children:[(0,h.jsx)(`div`,{style:{position:`absolute`,bottom:`15%`,left:`50%`,transform:`translateX(-50%)`,width:`320px`,height:`60px`,background:`radial-gradient(circle, rgba(255, 170, 0, 0.25) 0%, transparent 80%)`,pointerEvents:`none`,zIndex:0,filter:`blur(10px)`}}),(0,h.jsx)(`h2`,{style:{fontSize:`clamp(1.6rem, 2.8vw, 2.4rem)`,fontWeight:600,color:`#ffffff`,marginBottom:`2.5rem`,letterSpacing:`-0.02em`,position:`relative`,zIndex:1},children:s.heading}),(0,h.jsx)(`div`,{style:{position:`relative`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,zIndex:1,boxShadow:`0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(71, 115, 179, 0.15)`,borderRadius:`4px`,overflow:`hidden`},children:(0,h.jsx)(`img`,{src:m(s.badgeImage),alt:s.badgeAlt,style:{height:w?`40px`:`54px`,display:`block`,maxWidth:`100%`,objectFit:`contain`}})})]})}),(0,h.jsxs)(`section`,{style:{padding:w?`4rem 8%`:`2rem 0`,borderTop:`1px solid rgba(255, 255, 255, 0.03)`,borderBottom:`1px solid rgba(255, 255, 255, 0.03)`,background:`#020710`,position:`relative`,overflow:`hidden`},children:[(0,h.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,right:0,bottom:0,backgroundImage:`linear-gradient(rgba(255, 170, 0, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 170, 0, 0.02) 1px, transparent 1px)`,backgroundSize:`50px 50px`,opacity:.4,pointerEvents:`none`}}),(0,h.jsx)(`div`,{style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,width:`500px`,height:`500px`,background:`radial-gradient(circle, rgba(0, 119, 255, 0.05) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,h.jsx)(Q,{style:{width:`100%`},children:w?(0,h.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:`3rem`,position:`relative`,zIndex:2},children:[(0,h.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,h.jsx)(`h3`,{style:{fontSize:`2rem`,fontWeight:800,marginBottom:`0.8rem`,color:`#ffffff`,letterSpacing:`-0.02em`},children:c.heading}),(0,h.jsx)(`h4`,{style:{fontSize:`1.4rem`,fontWeight:700,color:`#a0aec0`,marginBottom:`1rem`},children:c.subheading}),(0,h.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`0.9rem`,lineHeight:1.5,maxWidth:`400px`,margin:`0 auto`},children:c.body})]}),(0,h.jsx)(`div`,{style:{position:`relative`,width:`280px`,height:`280px`,display:`flex`,justifyContent:`center`,alignItems:`center`},children:(0,h.jsx)(`img`,{src:m(`/assets/GlobeVector.svg`),alt:`Globe Map`,style:{width:`100%`,height:`100%`,objectFit:`contain`,opacity:.3}})}),(0,h.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(3, 1fr)`,gap:`1.5rem 1rem`,width:`100%`,alignItems:`center`,justifyItems:`center`},children:c.logos.map((e,t)=>(0,h.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,height:`50px`,width:`100%`,padding:`0.2rem`},children:(0,h.jsx)(`img`,{src:m(e.image),alt:e.name,style:{maxHeight:`100%`,maxWidth:`100%`,objectFit:`contain`}})},t))})]}):(0,h.jsxs)(`div`,{style:{position:`relative`,width:`1100px`,height:`800px`,margin:`0 auto`,zIndex:2},children:[(0,h.jsx)(`img`,{src:m(`/assets/GlobeVector.svg`),alt:`Globe Map`,style:{position:`absolute`,width:`800px`,height:`800px`,top:`58%`,left:`50%`,transform:`translate(-50%, -50%)`,objectFit:`contain`,opacity:.55,zIndex:1,pointerEvents:`none`}}),(0,h.jsxs)(`div`,{style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,zIndex:5,textAlign:`center`,width:`420px`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`},children:[(0,h.jsx)(`h3`,{style:{fontSize:`2.2rem`,fontWeight:800,color:`#ffffff`,margin:`0 0 0.4rem 0`,letterSpacing:`-0.02em`,lineHeight:`1.2`},children:c.heading}),(0,h.jsx)(`span`,{style:{fontSize:`1.8rem`,fontWeight:700,color:`#cbd5e1`,margin:`0 0 1rem 0`,letterSpacing:`-0.02em`},children:c.subheading}),(0,h.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:`0.9rem`,lineHeight:`1.6`,margin:0,fontWeight:500,maxWidth:`340px`},children:c.body})]}),(0,h.jsx)($,{src:m(`/assets/Frame 33.svg`),alt:`MRF Logo`,radiusX:520,radiusY:320,startAngle:0,duration:60,clockwise:!0,size:170}),(0,h.jsx)($,{src:m(`/assets/Frame 31.svg`),alt:`ACA Global Logo`,radiusX:520,radiusY:320,startAngle:78,duration:60,clockwise:!0,size:175}),(0,h.jsx)($,{src:m(`/assets/Frame 30.svg`),alt:`Polyhose Logo`,radiusX:520,radiusY:320,startAngle:144,duration:60,clockwise:!0,size:170}),(0,h.jsx)($,{src:m(`/assets/Frame 32.svg`),alt:`Dawn Pictures Logo`,radiusX:520,radiusY:320,startAngle:216,duration:60,clockwise:!0,size:180}),(0,h.jsx)($,{src:m(`/assets/Frame 35.svg`),alt:`Hero Logo`,radiusX:520,radiusY:320,startAngle:282,duration:60,clockwise:!0,size:170}),(0,h.jsx)($,{src:m(`/assets/Frame 28.svg`),alt:`Valeo Logo`,radiusX:360,radiusY:225,startAngle:36,duration:40,clockwise:!1,size:170}),(0,h.jsx)($,{src:m(`/assets/Frame 36.svg`),alt:`BorgWarner Logo`,radiusX:360,radiusY:225,startAngle:108,duration:40,clockwise:!1,size:170}),(0,h.jsx)($,{src:m(`/assets/kone.png`),alt:`KONE Logo`,radiusX:360,radiusY:225,startAngle:180,duration:40,clockwise:!1,size:160}),(0,h.jsx)($,{src:m(`/assets/Frame 34.svg`),alt:`Chola MS Logo`,radiusX:360,radiusY:225,startAngle:252,duration:40,clockwise:!1,size:170}),(0,h.jsx)($,{src:m(`/assets/Frame 27.svg`),alt:`CavinKare Logo`,radiusX:360,radiusY:225,startAngle:324,duration:40,clockwise:!1,size:180})]})})]}),(0,h.jsxs)(`section`,{id:`certifications`,style:{padding:w?`3rem 1.25rem`:`5rem 8%`,backgroundColor:`#020710`,display:`flex`,flexDirection:`column`,alignItems:`center`,textAlign:`center`,borderBottom:`1px solid rgba(255, 255, 255, 0.03)`},children:[(0,h.jsx)(Q,{children:(0,h.jsx)(`h2`,{style:{fontSize:`clamp(1.8rem, 3.2vw, 2.5rem)`,fontWeight:600,color:`#e2e8f0`,marginBottom:`3.5rem`,letterSpacing:`-0.02em`,opacity:.9},children:l.heading})}),(0,h.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,alignItems:`center`,gap:w?`1.5rem`:`5rem`,flexWrap:`wrap`},children:l.items.map((e,t)=>(0,h.jsx)(Q,{delay:t*.1,children:(0,h.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:t===4?`110px`:`90px`,transition:`all 0.3s ease`},children:(0,h.jsx)(`img`,{src:m(e.image),alt:e.alt,style:{height:t===0?`85%`:t===3?`55%`:t===4?`100%`:`80%`,objectFit:`contain`}})})},e.alt))})]}),(0,h.jsxs)(`section`,{id:`services`,style:{padding:w?`4rem 0`:`96px 0`,backgroundColor:`#020710`,position:`relative`,overflow:`hidden`,borderBottom:`1px solid rgba(255, 255, 255, 0.03)`},children:[(0,h.jsx)(`div`,{style:{position:`absolute`,top:`20%`,right:`-10%`,width:`500px`,height:`500px`,background:`radial-gradient(circle, rgba(0, 240, 255, 0.03) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,h.jsx)(`div`,{style:{position:`absolute`,bottom:`10%`,left:`-10%`,width:`500px`,height:`500px`,background:`radial-gradient(circle, rgba(255, 170, 0, 0.02) 0%, transparent 70%)`,pointerEvents:`none`,zIndex:0}}),(0,h.jsxs)(`div`,{style:{maxWidth:`1440px`,margin:`0 auto`,padding:w?`0 1.5rem`:`0 4rem`,display:`flex`,flexDirection:w?`column`:`row`,alignItems:`stretch`,gap:w?`2.5rem`:`64px`,position:`relative`,zIndex:1},children:[(0,h.jsxs)(Q,{style:{flex:w?`1`:`0 0 300px`,width:w?`100%`:`300px`,display:`flex`,flexDirection:`column`,justifyContent:`space-between`,position:`relative`},children:[(0,h.jsxs)(`div`,{children:[(0,h.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.85rem`,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.15em`,display:`block`,marginBottom:`1rem`,lineHeight:`1.4`},children:t.services.eyebrow}),(0,h.jsx)(`h2`,{style:{color:`#e2e8f0`,fontSize:w?`2.2rem`:`3.2rem`,fontWeight:300,letterSpacing:`-0.02em`,margin:`0 0 1.5rem 0`,lineHeight:`1.1`},children:t.services.title}),(0,h.jsx)(`p`,{style:{color:`#94a3b8`,fontSize:w?`0.9rem`:`0.95rem`,lineHeight:`1.65`,margin:`0 0 2rem 0`,fontWeight:400},children:t.services.intro})]}),(0,h.jsxs)(`div`,{style:{display:`flex`,gap:`0.75rem`,marginTop:w?`0rem`:`auto`},children:[(0,h.jsx)(`button`,{onClick:()=>j(`left`),style:{width:`46px`,height:`46px`,borderRadius:`8px`,border:`1px solid rgba(255, 255, 255, 0.1)`,background:`rgba(255, 255, 255, 0.02)`,color:`#ffffff`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,transition:`all 0.2s`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.3)`,e.currentTarget.style.background=`rgba(255, 255, 255, 0.08)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.1)`,e.currentTarget.style.background=`rgba(255, 255, 255, 0.02)`},"aria-label":`Scroll left`,children:(0,h.jsx)(uu,{size:20})}),(0,h.jsx)(`button`,{onClick:()=>j(`right`),style:{width:`46px`,height:`46px`,borderRadius:`8px`,border:`1px solid #ffffff`,background:`#ffffff`,color:`#020710`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,transition:`all 0.2s`},onMouseEnter:e=>{e.currentTarget.style.opacity=`0.9`},onMouseLeave:e=>{e.currentTarget.style.opacity=`1`},"aria-label":`Scroll right`,children:(0,h.jsx)(du,{size:20})})]})]}),(0,h.jsx)(`div`,{style:{flexGrow:1,overflow:`visible`,width:w?`100%`:`calc(100% - 364px)`},children:(0,h.jsx)(Q,{style:{width:`100%`},children:(0,h.jsx)(`div`,{ref:A,className:`services-carousel`,style:{display:`flex`,gap:w?`1rem`:`24px`,overflowX:`auto`,scrollSnapType:`x mandatory`,paddingBottom:`2rem`,paddingTop:`0.5rem`,scrollbarWidth:`none`,msOverflowStyle:`none`,boxSizing:`border-box`},children:r.map((e,t)=>(0,h.jsx)(Ou,{service:e,isMobile:w,index:t},e.id))})})})]})]}),(0,h.jsx)(`section`,{id:`whyus`,style:{padding:w?`4rem 1.25rem`:`6rem 8%`,background:`rgba(5, 16, 34, 0.3)`,position:`relative`},children:(0,h.jsxs)(`div`,{style:{maxWidth:`1400px`,margin:`0 auto`,position:`relative`,zIndex:10},children:[(0,h.jsx)(`div`,{style:{textAlign:`center`,marginBottom:`4rem`},children:(0,h.jsxs)(Q,{children:[(0,h.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.9rem`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.1em`},children:u.eyebrow}),(0,h.jsx)(`h2`,{style:{fontSize:`clamp(2rem, 3vw, 2.5rem)`,fontWeight:800,marginTop:`0.5rem`,color:`#ffffff`},children:u.title})]})}),w?(0,h.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1.5rem`,position:`relative`,zIndex:10},children:[(0,h.jsx)(Q,{delay:0,children:(0,h.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem 1.8rem`,borderRadius:`20px`,background:`linear-gradient(135deg, rgba(30, 80, 180, 0.2) 0%, rgba(9, 14, 26, 0.95) 100%)`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`},children:[(0,h.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,margin:0},children:`Innovation Driven`}),(0,h.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,h.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.9rem`,lineHeight:`1.55`,margin:0},children:`We deliver future-ready solutions powered by Gen AI, Agentic AI, automation, IoT, and emerging tech that keep you ahead of the curve.`})]})}),(0,h.jsx)(Q,{delay:.1,children:(0,h.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem 1.8rem`,borderRadius:`20px`,background:`radial-gradient(circle at 10% 70%, rgba(255, 170, 0, 0.12) 0%, transparent 60%), rgba(9, 14, 26, 0.95)`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`},children:[(0,h.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,margin:0},children:`Industry Expertise`}),(0,h.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,h.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.9rem`,lineHeight:`1.55`,margin:0},children:`Deep domain knowledge across manufacturing, enterprise tech, smart manufacturing, and digital operations built from years of real-world implementation.`})]})}),(0,h.jsx)(Q,{delay:.2,children:(0,h.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem 1.8rem`,borderRadius:`20px`,background:`radial-gradient(circle at 10% 70%, rgba(255, 170, 0, 0.12) 0%, transparent 60%), rgba(9, 14, 26, 0.95)`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`},children:[(0,h.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,margin:0},children:`Secure & Reliable`}),(0,h.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,h.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.9rem`,lineHeight:`1.55`,margin:0},children:`Every solution is built on globally recognized standards with uncompromising focus on security, compliance, and operational excellence.`})]})}),(0,h.jsx)(Q,{delay:.3,children:(0,h.jsxs)(`div`,{className:`glass-card`,style:{padding:`2rem 1.8rem`,borderRadius:`20px`,background:`linear-gradient(to bottom, rgba(2, 7, 16, 0.95) 0%, rgba(2, 7, 16, 0.6) 45%, rgba(2, 7, 16, 0) 85%), url(${m(`/assets/whyus_hologram.jpg`)})`,backgroundSize:`cover`,backgroundPosition:`center`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`},children:[(0,h.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,margin:0},children:`Outcome Focused`}),(0,h.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,h.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.9rem`,lineHeight:`1.55`,margin:0},children:`We don't just implement technology we design every solution to reduce complexity, boost efficiency, and deliver clear, measurable business impact.`})]})})]}):(0,h.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1.15fr 0.65fr 1.2fr`,gridTemplateRows:`auto minmax(260px, auto)`,gap:`1.5rem`,alignItems:`stretch`,position:`relative`,zIndex:10},children:[(0,h.jsx)(Q,{delay:0,style:{height:`100%`,gridColumn:`1`,gridRow:`1`},children:(0,h.jsxs)(`div`,{className:`glass-card`,style:{padding:`2.5rem`,borderRadius:`24px`,background:`linear-gradient(135deg, rgba(30, 80, 180, 0.25) 0%, rgba(9, 14, 26, 0.95) 100%)`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,height:`100%`},children:[(0,h.jsx)(`div`,{style:{position:`absolute`,top:`-15%`,right:`-15%`,width:`180px`,height:`180px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.03)`,pointerEvents:`none`}}),(0,h.jsx)(`div`,{style:{position:`absolute`,top:`-25%`,right:`-25%`,width:`240px`,height:`240px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.02)`,pointerEvents:`none`}}),(0,h.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,lineHeight:`1.2`,margin:0},children:`Innovation Driven`}),(0,h.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,h.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.92rem`,lineHeight:`1.6`,margin:0,fontWeight:400},children:`We deliver future-ready solutions powered by Gen AI, Agentic AI, automation, IoT, and emerging tech that keep you ahead of the curve.`})]})}),(0,h.jsx)(Q,{delay:.1,style:{height:`100%`,gridColumn:`1`,gridRow:`2`},children:(0,h.jsx)(`div`,{style:{borderRadius:`24px`,overflow:`hidden`,border:`1px solid rgba(255, 255, 255, 0.06)`,height:`100%`},children:(0,h.jsx)(`img`,{src:m(`/assets/whyus_arab_meeting.jpg`),alt:`Corporate collaboration`,style:{width:`100%`,height:`100%`,objectFit:`cover`}})})}),(0,h.jsx)(Q,{delay:.2,style:{height:`100%`,gridColumn:`2 / 4`,gridRow:`1`},children:(0,h.jsxs)(`div`,{className:`glass-card`,style:{padding:`2.5rem`,borderRadius:`24px`,background:`radial-gradient(circle at 10% 70%, rgba(255, 170, 0, 0.12) 0%, transparent 60%), linear-gradient(135deg, rgba(9, 14, 26, 0.95) 0%, rgba(2, 5, 12, 0.98) 100%)`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,height:`100%`},children:[(0,h.jsx)(`div`,{style:{position:`absolute`,top:`-15%`,right:`-15%`,width:`180px`,height:`180px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.03)`,pointerEvents:`none`}}),(0,h.jsx)(`div`,{style:{position:`absolute`,top:`-25%`,right:`-25%`,width:`240px`,height:`240px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.02)`,pointerEvents:`none`}}),(0,h.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,lineHeight:`1.2`,margin:0},children:`Industry Expertise`}),(0,h.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,h.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.92rem`,lineHeight:`1.6`,margin:0,fontWeight:400},children:`Deep domain knowledge across manufacturing, enterprise tech, smart manufacturing, and digital operations built from years of real-world implementation.`})]})}),(0,h.jsx)(Q,{delay:.3,style:{height:`100%`,gridColumn:`2`,gridRow:`2`},children:(0,h.jsxs)(`div`,{className:`glass-card`,style:{padding:`2.5rem`,borderRadius:`24px`,background:`radial-gradient(circle at 10% 70%, rgba(255, 170, 0, 0.12) 0%, transparent 60%), linear-gradient(135deg, rgba(9, 14, 26, 0.95) 0%, rgba(2, 5, 12, 0.98) 100%)`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,height:`100%`},children:[(0,h.jsx)(`div`,{style:{position:`absolute`,top:`-15%`,right:`-15%`,width:`180px`,height:`180px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.03)`,pointerEvents:`none`}}),(0,h.jsx)(`div`,{style:{position:`absolute`,top:`-25%`,right:`-25%`,width:`240px`,height:`240px`,borderRadius:`50%`,border:`1px solid rgba(255, 255, 255, 0.02)`,pointerEvents:`none`}}),(0,h.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,lineHeight:`1.2`,margin:0},children:`Secure & Reliable`}),(0,h.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0`}}),(0,h.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.92rem`,lineHeight:`1.6`,margin:0,fontWeight:400},children:`Every solution is built on globally recognized standards with uncompromising focus on security, compliance, and operational excellence.`})]})}),(0,h.jsx)(Q,{delay:.4,style:{height:`100%`,gridColumn:`3`,gridRow:`2`},children:(0,h.jsx)(`div`,{style:{borderRadius:`24px`,overflow:`hidden`,border:`1px solid rgba(255, 255, 255, 0.06)`,height:`100%`},children:(0,h.jsx)(`img`,{src:m(`/assets/whyus_vr_man.jpg`),alt:`Sunset boardroom`,style:{width:`100%`,height:`100%`,objectFit:`cover`}})})}),(0,h.jsx)(Q,{delay:.5,style:{height:`100%`,gridColumn:`4`,gridRow:`1 / 3`},children:(0,h.jsxs)(`div`,{className:`glass-card`,style:{borderRadius:`24px`,border:`1px solid rgba(255, 255, 255, 0.06)`,position:`relative`,overflow:`hidden`,backgroundImage:`linear-gradient(to bottom, rgba(2, 7, 16, 0.95) 0%, rgba(2, 7, 16, 0.6) 45%, rgba(2, 7, 16, 0) 85%), url(${m(`/assets/whyus_hologram.jpg`)})`,backgroundSize:`cover`,backgroundPosition:`center`,display:`flex`,flexDirection:`column`,justifyContent:`flex-start`,padding:`2.5rem`,height:`100%`},children:[(0,h.jsxs)(`div`,{children:[(0,h.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,color:`#ffffff`,lineHeight:`1.2`,margin:`0 0 1rem 0`},children:`Outcome Focused`}),(0,h.jsx)(`div`,{style:{width:`100%`,height:`1px`,backgroundColor:`rgba(255, 255, 255, 0.08)`,margin:`1rem 0 1.5rem 0`}}),(0,h.jsx)(`p`,{style:{color:`#cbd5e1`,fontSize:`0.95rem`,lineHeight:`1.65`,margin:0,fontWeight:400,maxWidth:`95%`},children:`We don't just implement technology we design every solution to reduce complexity, boost efficiency, and deliver clear, measurable business impact.`})]}),(0,h.jsx)(`div`,{style:{flex:1,minHeight:`120px`}}),` `]})})]})]})}),(0,h.jsx)(Q,{children:(0,h.jsx)(Cu,{gallery:t.gallery})}),(0,h.jsxs)(`section`,{id:`products`,style:{padding:w?`4rem 1.25rem`:`6rem 8%`,background:`#f8fafc`,position:`relative`,overflow:`hidden`},children:[(0,h.jsx)(Q,{children:(0,h.jsxs)(`div`,{style:{textAlign:`center`,marginBottom:`4rem`,position:`relative`,zIndex:10},children:[(0,h.jsx)(`span`,{style:{color:`#ffaa00`,fontSize:`0.9rem`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.1em`},children:f.eyebrow}),(0,h.jsx)(`h2`,{style:{fontSize:`clamp(2rem, 3vw, 2.5rem)`,fontWeight:800,marginTop:`0.5rem`,color:`#0f172a`},children:f.title}),(0,h.jsx)(`p`,{style:{color:`#475569`,fontSize:`1.05rem`,marginTop:`0.75rem`,maxWidth:`650px`,marginLeft:`auto`,marginRight:`auto`,lineHeight:`1.5`},children:f.subtitle})]})}),(0,h.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:w?`1fr`:`repeat(auto-fit, minmax(320px, 1fr))`,gap:w?`1.5rem`:`2.5rem`,alignItems:`stretch`,position:`relative`,zIndex:10,marginBottom:`4rem`},children:f.items.map((e,t)=>(0,h.jsx)(Eu,{product:e,isMobile:w,delay:t*.1,index:t},e.name||t))})]}),(0,h.jsxs)(`section`,{id:`insights`,style:{padding:w?`3.5rem 0 4rem`:`5rem 0 6rem 0`,background:`#020c1e`},children:[(0,h.jsxs)(Q,{style:{padding:w?`0 1.25rem`:`0 8%`,display:`flex`,flexDirection:w?`column`:`row`,justifyContent:`space-between`,alignItems:w?`stretch`:`flex-start`,gap:w?`1.25rem`:`0`,marginBottom:w?`2rem`:`3rem`},children:[(0,h.jsxs)(`div`,{style:{maxWidth:`680px`},children:[(0,h.jsx)(`h2`,{style:{fontSize:`clamp(1.8rem, 3vw, 2.6rem)`,fontWeight:700,color:`#ffffff`,lineHeight:1.25,marginBottom:`1rem`,letterSpacing:`-0.02em`},children:t.insights.title}),(0,h.jsx)(`p`,{style:{color:`#64748b`,fontSize:`0.82rem`,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.06em`,lineHeight:1.6,maxWidth:`540px`},children:t.insights.subtitle})]}),(0,h.jsxs)(`div`,{style:{display:`flex`,gap:`0.6rem`,alignItems:`center`,flexShrink:0,marginTop:`0.5rem`},children:[(0,h.jsx)(`button`,{onClick:()=>Fe(-1),style:{width:`42px`,height:`42px`,borderRadius:`8px`,background:`rgba(255,255,255,0.06)`,border:`1px solid rgba(255,255,255,0.12)`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,color:`#ffffff`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255,170,0,0.15)`,e.currentTarget.style.borderColor=`#ffaa00`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255,255,255,0.06)`,e.currentTarget.style.borderColor=`rgba(255,255,255,0.12)`},children:(0,h.jsx)(cu,{size:16,style:{transform:`rotate(180deg)`}})}),(0,h.jsx)(`button`,{onClick:()=>Fe(1),style:{width:`42px`,height:`42px`,borderRadius:`8px`,background:`rgba(255,255,255,0.06)`,border:`1px solid rgba(255,255,255,0.12)`,display:`flex`,alignItems:`center`,justifyContent:`center`,cursor:`pointer`,color:`#ffffff`,transition:`all 0.2s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255,170,0,0.15)`,e.currentTarget.style.borderColor=`#ffaa00`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255,255,255,0.06)`,e.currentTarget.style.borderColor=`rgba(255,255,255,0.12)`},children:(0,h.jsx)(cu,{size:16})})]})]}),(0,h.jsx)(Q,{style:{width:`100%`},children:(0,h.jsx)(`div`,{ref:Pe,style:{display:`flex`,gap:`1.5rem`,overflowX:`auto`,scrollSnapType:`x mandatory`,scrollPaddingLeft:w?`1.25rem`:`8%`,paddingLeft:w?`1.25rem`:`8%`,paddingRight:w?`1.25rem`:`8%`,paddingBottom:`1.5rem`,paddingTop:`0.5rem`,scrollbarWidth:`none`,msOverflowStyle:`none`,boxSizing:`border-box`},className:`blog-carousel`,children:i.map((e,t)=>(0,h.jsx)(Q,{delay:t*.1,style:{flex:w?`0 0 72vw`:`0 0 340px`,minWidth:w?`72vw`:`340px`,height:`420px`,scrollSnapAlign:`start`,flexShrink:0},children:(0,h.jsxs)(`div`,{className:`blog-card`,style:{width:`100%`,height:`100%`,borderRadius:`14px`,overflow:`hidden`,position:`relative`,cursor:`pointer`,border:`1px solid rgba(255,255,255,0.08)`,transition:`all 0.35s cubic-bezier(0.4,0,0.2,1)`,boxShadow:`0 4px 30px rgba(0,0,0,0.5)`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`rgba(255,170,0,0.35)`,e.currentTarget.style.boxShadow=`0 16px 48px rgba(255,170,0,0.12)`,e.currentTarget.style.transform=`translateY(-5px)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255,255,255,0.08)`,e.currentTarget.style.boxShadow=`0 4px 30px rgba(0,0,0,0.5)`,e.currentTarget.style.transform=`translateY(0)`},children:[(0,h.jsx)(`img`,{src:m(e.image),alt:e.title,className:`blog-card-img`,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,objectFit:`cover`,objectPosition:`center top`,display:`block`,transition:`transform 0.6s ease`}}),(0,h.jsx)(`div`,{style:{position:`absolute`,inset:0,background:`linear-gradient(to bottom, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.0) 100%)`,pointerEvents:`none`}}),(0,h.jsxs)(`div`,{style:{position:`absolute`,bottom:0,left:0,right:0,padding:`1.3rem 1.2rem 1.2rem 1.2rem`,display:`flex`,flexDirection:`column`,gap:`0.5rem`,background:`rgba(8, 14, 32, 0.55)`,backdropFilter:`blur(14px)`,WebkitBackdropFilter:`blur(14px)`,borderTop:`1px solid rgba(255, 255, 255, 0.08)`},children:[(0,h.jsx)(`span`,{style:{fontSize:`0.63rem`,fontWeight:700,textTransform:`uppercase`,letterSpacing:`0.13em`,color:`#64748b`},children:e.category}),(0,h.jsx)(`h3`,{style:{fontSize:`0.97rem`,fontWeight:700,color:`#f1f5f9`,lineHeight:1.4,margin:0,display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`,overflow:`hidden`},children:e.title}),(0,h.jsxs)(`div`,{className:`blog-read-more`,style:{marginTop:`0.2rem`,display:`flex`,alignItems:`center`,gap:`0.35rem`,color:`#cbd5e1`,fontSize:`0.82rem`,fontWeight:600,transition:`color 0.2s ease`},children:[`Read Blog `,(0,h.jsx)(cu,{size:14,style:{color:`#ffaa00`}})]})]})]})},t))})})]}),(0,h.jsx)(`section`,{style:{background:`#020c1e`,position:`relative`,zIndex:10,overflow:`hidden`,display:`flex`,justifyContent:`center`,alignItems:`flex-end`,padding:`4rem 0 0 0`},children:(0,h.jsx)(`img`,{src:m(`/assets/citp_footer_design.png`),alt:`Cavin Infotech Logo Divider`,style:{width:`100%`,height:`auto`,display:`block`}})})]}),` `,(0,h.jsx)(`footer`,{id:`contactus`,style:{background:`linear-gradient(180deg, #ffffff 0%, #dde6f5 100%)`,padding:w?`3rem 0`:`4rem 0`,color:`#1e293b`,position:`relative`,width:`100%`,scrollMarginTop:`${Ie}px`},children:(0,h.jsxs)(`div`,{style:{padding:`0 ${N}`},children:[w?(0,h.jsx)(Q,{children:(0,h.jsxs)(`div`,{style:{background:`linear-gradient(135deg, #0f2044 0%, #0a1a38 60%, #112252 100%)`,borderRadius:`20px`,padding:`2.5rem 2rem`,display:`flex`,flexDirection:`column`,gap:`2rem`,marginBottom:`3rem`,position:`relative`,overflow:`hidden`},children:[(0,h.jsxs)(`div`,{children:[(0,h.jsx)(`h2`,{style:{fontSize:`1.8rem`,fontWeight:800,color:`#ffffff`,lineHeight:1.25,marginBottom:`0.8rem`},children:_.cta.headline}),(0,h.jsx)(`p`,{style:{fontSize:`0.72rem`,fontWeight:500,lineHeight:1.4,color:`#94a3b8`,marginBottom:`1.5rem`},children:_.cta.body}),(0,h.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.75rem`},children:[(0,h.jsx)(`button`,{style:{background:`rgba(255, 170, 0, 0.1)`,border:`1.5px solid rgba(255, 170, 0, 0.8)`,boxShadow:`0 0 15px rgba(255, 170, 0, 0.4)`,color:`#ffffff`,padding:`0.8rem 1.6rem`,borderRadius:`50px`,fontSize:`0.85rem`,fontWeight:600,cursor:`pointer`},children:_.cta.primaryButton}),(0,h.jsx)(`button`,{style:{background:`rgba(255, 255, 255, 0.05)`,border:`1.5px solid rgba(255, 255, 255, 0.2)`,color:`#ffffff`,padding:`0.8rem 1.6rem`,borderRadius:`50px`,fontSize:`0.85rem`,fontWeight:600,cursor:`pointer`},children:_.cta.secondaryButton})]})]}),(0,h.jsx)(`div`,{style:{width:`100%`,height:`180px`,position:`relative`,overflow:`hidden`,borderRadius:`12px`},children:(0,h.jsx)(`img`,{src:m(_.cta.image),alt:`Phone preview`,style:{position:`absolute`,right:`-20px`,top:`-90px`,width:`280px`,height:`auto`,maxWidth:`none`}})})]})}):(0,h.jsx)(Q,{children:(0,h.jsxs)(`div`,{style:{position:`relative`,width:`100%`,marginBottom:`3rem`},children:[(0,h.jsx)(`img`,{src:m(_.cta.image),alt:`CTA Banner`,style:{width:`100%`,height:`auto`,display:`block`}}),(0,h.jsxs)(`div`,{style:{position:`absolute`,left:`6%`,top:`52%`,transform:`translateY(-50%)`,width:`54%`,zIndex:2},children:[(0,h.jsx)(`h2`,{style:{fontSize:`clamp(1.3rem, 2.4vw, 2.2rem)`,fontWeight:800,color:`#ffffff`,lineHeight:1.25,marginBottom:`0.8rem`},children:_.cta.headline}),(0,h.jsx)(`p`,{style:{fontSize:`clamp(0.55rem, 0.9vw, 0.72rem)`,fontWeight:500,lineHeight:1.4,color:`#94a3b8`,marginBottom:`1.5rem`},children:_.cta.body}),(0,h.jsxs)(`div`,{style:{display:`flex`,gap:`1rem`,alignItems:`center`},children:[(0,h.jsx)(`button`,{style:{background:`rgba(255, 170, 0, 0.1)`,border:`1.5px solid rgba(255, 170, 0, 0.8)`,boxShadow:`0 0 15px rgba(255, 170, 0, 0.4)`,color:`#ffffff`,padding:`0.75rem 1.6rem`,borderRadius:`50px`,fontSize:`clamp(0.75rem, 1vw, 0.88rem)`,fontWeight:600,cursor:`pointer`,transition:`all 0.25s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`#ffaa00`,e.currentTarget.style.color=`#000000`,e.currentTarget.style.boxShadow=`0 0 25px rgba(255, 170, 0, 0.8)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 170, 0, 0.1)`,e.currentTarget.style.color=`#ffffff`,e.currentTarget.style.boxShadow=`0 0 15px rgba(255, 170, 0, 0.4)`},children:_.cta.primaryButton}),(0,h.jsx)(`button`,{style:{background:`rgba(255, 255, 255, 0.05)`,border:`1.5px solid rgba(255, 255, 255, 0.25)`,color:`#ffffff`,padding:`0.75rem 1.6rem`,borderRadius:`50px`,fontSize:`clamp(0.75rem, 1vw, 0.88rem)`,fontWeight:600,cursor:`pointer`,transition:`all 0.25s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.15)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.5)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.05)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.25)`},children:_.cta.secondaryButton})]})]})]})}),(0,h.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:w?`1fr 1fr`:`180px 180px 1fr`,gap:w?`1.5rem`:`1.25rem`,paddingBottom:`2.5rem`,borderBottom:`1px solid rgba(30,41,59,0.12)`,marginBottom:`1.5rem`},children:[(0,h.jsxs)(`div`,{children:[(0,h.jsx)(`h5`,{style:{fontSize:`0.7rem`,fontWeight:800,letterSpacing:`0.12em`,textTransform:`uppercase`,color:`#1e293b`,marginBottom:`1rem`},children:`Quick Links`}),(0,h.jsxs)(`ul`,{style:{listStyle:`none`,display:`flex`,flexDirection:`column`,gap:`0.35rem`,padding:0,margin:0},children:[(0,h.jsx)(`li`,{children:(0,h.jsx)(`a`,{href:`#home`,onClick:e=>{e.preventDefault(),Le(`home`)},style:{color:`#475569`,textDecoration:`none`,fontSize:`0.84rem`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`Home`})}),(0,h.jsx)(`li`,{children:(0,h.jsx)(`a`,{href:`#certifications`,onClick:e=>{e.preventDefault(),Le(`certifications`)},style:{color:`#475569`,textDecoration:`none`,fontSize:`0.84rem`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`About Us`})}),(0,h.jsx)(`li`,{children:(0,h.jsx)(`a`,{href:`#services`,onClick:e=>{e.preventDefault(),Le(`services`)},style:{color:`#475569`,textDecoration:`none`,fontSize:`0.84rem`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`Our Services`})})]})]}),(0,h.jsxs)(`div`,{children:[(0,h.jsx)(`h5`,{style:{fontSize:`0.7rem`,fontWeight:800,letterSpacing:`0.12em`,textTransform:`uppercase`,color:`#1e293b`,marginBottom:`1rem`},children:`Products`}),(0,h.jsx)(`ul`,{style:{listStyle:`none`,display:`flex`,flexDirection:`column`,gap:`0.35rem`,padding:0,margin:0},children:[`PRODMAX`,`Budgie HRMS`,`EVIDO`].map(e=>(0,h.jsx)(`li`,{children:(0,h.jsx)(`a`,{href:`#products`,onClick:e=>{e.preventDefault(),Le(`products`)},style:{color:`#475569`,textDecoration:`none`,fontSize:`0.84rem`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:e})},e))})]}),(0,h.jsxs)(`div`,{style:{gridColumn:w?`span 2`:`auto`},children:[(0,h.jsx)(`h5`,{style:{fontSize:`0.7rem`,fontWeight:800,letterSpacing:`0.12em`,textTransform:`uppercase`,color:`#1e40af`,marginBottom:`1rem`},children:`Social Links`}),(0,h.jsx)(`div`,{style:{display:`flex`,gap:`0.75rem`,alignItems:`center`,flexWrap:`wrap`},children:[{label:`Facebook`,d:`M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z`},{label:`Instagram`,d:`M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.051.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z`},{label:`LinkedIn`,d:`M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z`},{label:`Telegram`,d:`M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.562 8.161c-.18.717-.962 4.084-1.362 5.462-.168.58-.506.772-.712.791-.45.041-.79-.297-1.225-.583-.681-.447-1.066-.723-1.727-1.158-.764-.502-.269-.778.167-1.23.114-.118 2.096-1.922 2.134-2.083.005-.02.009-.095-.036-.135-.045-.04-.112-.026-.16-.015-.069.016-1.171.745-3.305 2.186-.313.215-.596.321-.85.315-.281-.006-.822-.153-1.225-.284-.494-.16-.887-.246-.853-.518.178-.142.716-.291 1.6-.447 5.485-2.385 9.143-3.957 10.973-4.717.868-.362 1.8-.425 2.39-.425.13 0 .42.03.606.18.156.126.2.296.21.425.013.167.013.435-.008.685z`},{label:`WhatsApp`,d:`M12.008 22c-1.948 0-3.855-.522-5.504-1.508l-.395-.235-4.093 1.073 1.092-3.993-.257-.408C1.815 15.222 1.25 13.064 12.008 12c5.514 0 10.008 4.486 10.008 10S17.522 22 12.008 22zm8.487-18.49C18.232 1.257 15.258 0 12.008 0 5.394 0 .02 5.373.017 11.99c0 2.115.553 4.18 1.603 5.996L0 24l6.155-1.615c1.768.964 3.753 1.472 5.845 1.474v-.002c6.611 0 11.986-5.375 11.99-11.994.002-3.206-1.242-6.22-3.497-8.48zM17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.063 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.715 2.006-1.404.248-.69.248-1.278.173-1.402-.074-.125-.272-.199-.57-.348z`},{label:`X`,d:`M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z`},{label:`YouTube`,d:`M23.498 6.163a3.003 3.003 0 0 0-2.11-2.11C19.53 3.545 12 3.545 12 3.545s-7.53 0-9.388.508a3.003 3.003 0 0 0-2.11 2.11C0 8.017 0 12 0 12s0 3.983.502 5.837a3.003 3.003 0 0 0 2.11 2.11c1.858.508 9.388.508 9.388.508s7.53 0 9.388-.508a3.003 3.003 0 0 0 2.11-2.11C24 15.983 24 12 24 12s0-3.983-.502-5.837zM9.545 15.568V8.432L15.818 12l-6.273 3.568z`}].map(({label:e,d:t})=>(0,h.jsx)(`a`,{href:`#`,"aria-label":e,style:{width:`34px`,height:`34px`,borderRadius:`50%`,background:`rgba(30,41,59,0.08)`,border:`1px solid rgba(30,41,59,0.12)`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`all 0.2s ease`,color:`#475569`},onMouseEnter:e=>{e.currentTarget.style.background=`#1e40af`,e.currentTarget.style.color=`#fff`,e.currentTarget.style.borderColor=`#1e40af`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(30,41,59,0.08)`,e.currentTarget.style.color=`#475569`,e.currentTarget.style.borderColor=`rgba(30,41,59,0.12)`},children:(0,h.jsx)(`svg`,{width:`15`,height:`15`,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`,children:(0,h.jsx)(`path`,{d:t})})},e))}),(0,h.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,flexWrap:`wrap`,gap:`1rem`,marginTop:`1.5rem`,fontSize:`0.82rem`,color:`#475569`},children:[(0,h.jsx)(`a`,{href:`#`,style:{color:`#475569`,textDecoration:`none`,fontWeight:500,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`Privacy Policy`}),(0,h.jsx)(`span`,{style:{color:`#cbd5e1`},children:``}),(0,h.jsx)(`a`,{href:`#`,style:{color:`#475569`,textDecoration:`none`,fontWeight:500,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#1e40af`,onMouseLeave:e=>e.currentTarget.style.color=`#475569`,children:`Terms & Conditions`}),(0,h.jsx)(`span`,{style:{color:`#cbd5e1`},children:``}),(0,h.jsx)(`span`,{style:{fontSize:`0.78rem`,color:`#334155`},children:`Copyrights reserved to CAVIN INFOTECH`})]})]})]})]})}),te&&!e&&(0,h.jsx)(`div`,{style:{position:`fixed`,inset:0,backgroundColor:`rgba(2, 7, 16, 0.85)`,backdropFilter:`blur(10px)`,zIndex:100,display:`flex`,alignItems:w?`flex-start`:`center`,justifyContent:`center`,padding:w?`1rem`:`1.5rem`,overflowY:`auto`},children:(0,h.jsxs)(`div`,{style:{background:`rgba(5, 16, 34, 0.95)`,border:`1px solid rgba(255, 170, 0, 0.25)`,boxShadow:`0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 170, 0, 0.08)`,borderRadius:`20px`,width:`100%`,maxWidth:`540px`,maxHeight:w?`none`:`90vh`,overflowY:`auto`,padding:w?`1.5rem`:`2.5rem`,position:`relative`,color:`#ffffff`},children:[(0,h.jsx)(`button`,{onClick:()=>{ne(!1),E(!1)},style:{position:`absolute`,top:`1.25rem`,right:`1.25rem`,background:`none`,border:`none`,color:`#94a3b8`,cursor:`pointer`,fontSize:`1.5rem`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#ffaa00`,onMouseLeave:e=>e.currentTarget.style.color=`#94a3b8`,children:`×`}),oe?(0,h.jsxs)(`div`,{style:{textAlign:`center`,padding:`1rem 0`},children:[(0,h.jsx)(`div`,{style:{width:`60px`,height:`60px`,borderRadius:`50%`,backgroundColor:`rgba(255, 170, 0, 0.1)`,border:`2px solid #ffaa00`,display:`flex`,alignItems:`center`,justifyContent:`center`,margin:`0 auto 1.5rem auto`},children:(0,h.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#ffaa00`,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,h.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),(0,h.jsx)(`h3`,{style:{fontSize:`1.5rem`,fontWeight:700,marginBottom:`1rem`,color:`#ffffff`,letterSpacing:`-0.02em`},children:`Application Received!`}),(0,h.jsx)(`p`,{style:{fontSize:`0.9rem`,color:`#cbd5e1`,lineHeight:`1.6`,marginBottom:`2rem`},children:`Thank you for applying to Cavin Infotech. We have received your resume and details successfully. Our recruitment team will review your application and contact you if your qualifications match our current needs.`}),(0,h.jsx)(`button`,{onClick:()=>{ne(!1),E(!1)},style:{background:`rgba(255, 255, 255, 0.05)`,border:`1.5px solid rgba(255, 255, 255, 0.2)`,color:`#ffffff`,padding:`0.75rem 2rem`,borderRadius:`50px`,fontSize:`0.95rem`,fontWeight:600,cursor:`pointer`,transition:`all 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.1)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.4)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.05)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.2)`},children:`Close Window`})]}):(0,h.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault();try{let e=await fetch(`https://api.emailjs.com/api/v1.0/email/send`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({service_id:`vishva_cavintest`,template_id:`template_i6pkzka`,user_id:`bdFwOnjhuMUeUeIe7`,template_params:{type:`careers`,name:O,email:pe,phone:he,mobile:``,designation:`N/A`,dateTime:`N/A`,interests:`N/A`,resumeName:_e?_e.name:`None`,from_name:O,reply_to:pe,message:`New Careers Application:\nName: ${O}\nEmail: ${pe}\nPhone: ${he}\nResume File: ${_e?_e.name:`None`}`}})});if(!e.ok){let t=await e.text();console.error(`EmailJS Error:`,t),alert(`Failed to send email: ${t}`);return}E(!0)}catch(e){console.error(`Error sending application:`,e),alert(`Error sending application: ${e.message}`)}},children:[(0,h.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,marginBottom:`0.5rem`,color:`#ffffff`,letterSpacing:`-0.02em`},children:`Join Our Team`}),(0,h.jsx)(`p`,{style:{fontSize:`0.88rem`,color:`#94a3b8`,marginBottom:`2rem`},children:`Submit your details and resume below. Our recruitment team will review your application.`}),(0,h.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1.25rem`},children:[(0,h.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.4rem`},children:[(0,h.jsx)(`label`,{style:{fontSize:`0.8rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Full Name`}),(0,h.jsx)(`input`,{type:`text`,required:!0,value:O,onChange:e=>fe(e.target.value),placeholder:`John Doe`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.75rem 1rem`,color:`#ffffff`,fontSize:`0.9rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,h.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.4rem`},children:[(0,h.jsx)(`label`,{style:{fontSize:`0.8rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Email Address`}),(0,h.jsx)(`input`,{type:`email`,required:!0,value:pe,onChange:e=>me(e.target.value),placeholder:`john@example.com`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.75rem 1rem`,color:`#ffffff`,fontSize:`0.9rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,h.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.4rem`},children:[(0,h.jsx)(`label`,{style:{fontSize:`0.8rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Phone Number`}),(0,h.jsx)(`input`,{type:`tel`,required:!0,value:he,onChange:e=>ge(e.target.value),placeholder:`+91 00000 00000`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.75rem 1rem`,color:`#ffffff`,fontSize:`0.9rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,h.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.4rem`},children:[(0,h.jsx)(`label`,{style:{fontSize:`0.8rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Resume / CV`}),(0,h.jsxs)(`div`,{style:{position:`relative`,border:`2px dashed rgba(255, 170, 0, 0.3)`,borderRadius:`12px`,padding:`1.5rem`,textAlign:`center`,background:`rgba(255, 170, 0, 0.02)`,cursor:`pointer`,transition:`all 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.background=`rgba(255, 170, 0, 0.05)`},onMouseLeave:e=>{e.currentTarget.style.borderColor=`rgba(255, 170, 0, 0.3)`,e.currentTarget.style.background=`rgba(255, 170, 0, 0.02)`},children:[(0,h.jsx)(`input`,{type:`file`,required:!0,accept:`.pdf,.doc,.docx`,style:{position:`absolute`,inset:0,width:`100%`,height:`100%`,opacity:0,cursor:`pointer`},onChange:e=>{let t=e.target.files[0];ve(t);let n=t?.name,r=document.getElementById(`file-upload-label`);r&&n&&(r.textContent=n)}}),(0,h.jsx)(`span`,{id:`file-upload-label`,style:{fontSize:`0.85rem`,color:`#cbd5e1`,fontWeight:500},children:`Click to upload your Resume (.pdf, .doc, .docx)`})]})]})]}),(0,h.jsx)(`button`,{type:`submit`,style:{width:`100%`,marginTop:`2rem`,background:`rgba(255, 170, 0, 0.1)`,border:`1.5px solid rgba(255, 170, 0, 0.8)`,boxShadow:`0 0 15px rgba(255, 170, 0, 0.3)`,color:`#ffffff`,padding:`0.85rem`,borderRadius:`50px`,fontSize:`0.95rem`,fontWeight:600,cursor:`pointer`,transition:`all 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255, 170, 0, 0.2)`,e.currentTarget.style.boxShadow=`0 0 25px rgba(255, 170, 0, 0.5)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 170, 0, 0.1)`,e.currentTarget.style.boxShadow=`0 0 15px rgba(255, 170, 0, 0.3)`},children:`Submit Application`})]})]})}),D&&!e&&(0,h.jsx)(`div`,{style:{position:`fixed`,inset:0,backgroundColor:`rgba(2, 7, 16, 0.85)`,backdropFilter:`blur(10px)`,zIndex:100,display:`flex`,alignItems:w?`flex-start`:`center`,justifyContent:`center`,padding:w?`1rem`:`1.5rem`,overflowY:`auto`},children:(0,h.jsxs)(`div`,{style:{background:`rgba(5, 16, 34, 0.95)`,border:`1px solid rgba(255, 170, 0, 0.25)`,boxShadow:`0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 170, 0, 0.08)`,borderRadius:`20px`,width:`100%`,maxWidth:`540px`,maxHeight:w?`none`:`90vh`,overflowY:`auto`,padding:w?`1.5rem`:`2.5rem`,position:`relative`,color:`#ffffff`},children:[(0,h.jsx)(`button`,{onClick:()=>{se(!1),le(!1)},style:{position:`absolute`,top:`1.25rem`,right:`1.25rem`,background:`none`,border:`none`,color:`#94a3b8`,cursor:`pointer`,fontSize:`1.5rem`,display:`flex`,alignItems:`center`,justifyContent:`center`,transition:`color 0.2s`},onMouseEnter:e=>e.currentTarget.style.color=`#ffaa00`,onMouseLeave:e=>e.currentTarget.style.color=`#94a3b8`,children:`×`}),ce?(0,h.jsxs)(`div`,{style:{textAlign:`center`,padding:`1.5rem 0`},children:[(0,h.jsx)(`div`,{style:{width:`60px`,height:`60px`,borderRadius:`50%`,backgroundColor:`rgba(255, 170, 0, 0.1)`,border:`2px solid #ffaa00`,display:`flex`,alignItems:`center`,justifyContent:`center`,margin:`0 auto 1.5rem auto`},children:(0,h.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`#ffaa00`,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,h.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}),(0,h.jsx)(`h3`,{style:{fontSize:`1.5rem`,fontWeight:700,marginBottom:`1rem`,color:`#ffffff`,letterSpacing:`-0.02em`},children:`Strategy Session Scheduled!`}),(0,h.jsx)(`p`,{style:{fontSize:`0.9rem`,color:`#cbd5e1`,lineHeight:`1.6`,marginBottom:`2rem`},children:`Thank you for booking a Strategy Call. We have successfully received your information and areas of interest. A technology consultant from Cavin Infotech will reach out to you within 24 hours with an invitation link and slot confirmation.`}),(0,h.jsx)(`button`,{onClick:()=>{se(!1),le(!1)},style:{background:`rgba(255, 255, 255, 0.05)`,border:`1.5px solid rgba(255, 255, 255, 0.2)`,color:`#ffffff`,padding:`0.75rem 2rem`,borderRadius:`50px`,fontSize:`0.95rem`,fontWeight:600,cursor:`pointer`,transition:`all 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.1)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.4)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 255, 255, 0.05)`,e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.2)`},children:`Close Window`})]}):(0,h.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault();let t=Object.keys(ke).filter(e=>ke[e]).join(`, `);try{let e=await fetch(`https://api.emailjs.com/api/v1.0/email/send`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({service_id:`vishva_cavintest`,template_id:`template_ueukbd8`,user_id:`bdFwOnjhuMUeUeIe7`,template_params:{type:`strategy`,name:ye,email:xe,phone:Ce,mobile:Ce,designation:Te,dateTime:De,interests:t||`None`,resumeName:`None`,from_name:ye,reply_to:xe,message:`New Strategy Session Booking:\nName: ${ye}\nEmail: ${xe}\nMobile: ${Ce}\nDesignation: ${Te}\nPreferred Date & Time: ${De}\nAreas of Interest: ${t||`None`}`}})});if(!e.ok){let t=await e.text();console.error(`EmailJS Error:`,t),alert(`Failed to send email: ${t}`);return}le(!0)}catch(e){console.error(`Error scheduling strategy session:`,e),alert(`Error scheduling strategy session: ${e.message}`)}},children:[(0,h.jsx)(`h3`,{style:{fontSize:`1.6rem`,fontWeight:700,marginBottom:`0.5rem`,color:`#ffffff`,letterSpacing:`-0.02em`},children:`Book a Strategy Call`}),(0,h.jsx)(`p`,{style:{fontSize:`0.88rem`,color:`#94a3b8`,marginBottom:`1.5rem`},children:`Fill in the details below to schedule a session with our experts.`}),(0,h.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`1rem`,maxHeight:`60vh`,overflowY:`auto`,paddingRight:`0.5rem`},children:[(0,h.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.3rem`},children:[(0,h.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Full Name`}),(0,h.jsx)(`input`,{type:`text`,required:!0,value:ye,onChange:e=>be(e.target.value),placeholder:`John Doe`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.7rem 0.9rem`,color:`#ffffff`,fontSize:`0.88rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,h.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.3rem`},children:[(0,h.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Email Address`}),(0,h.jsx)(`input`,{type:`email`,required:!0,value:xe,onChange:e=>Se(e.target.value),placeholder:`john@example.com`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.7rem 0.9rem`,color:`#ffffff`,fontSize:`0.88rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,h.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.3rem`},children:[(0,h.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Mobile Number`}),(0,h.jsx)(`input`,{type:`tel`,required:!0,value:Ce,onChange:e=>we(e.target.value),placeholder:`+91 00000 00000`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.7rem 0.9rem`,color:`#ffffff`,fontSize:`0.88rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,h.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.3rem`},children:[(0,h.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Designation`}),(0,h.jsx)(`input`,{type:`text`,required:!0,value:Te,onChange:e=>Ee(e.target.value),placeholder:`e.g. Chief Technology Officer`,style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.7rem 0.9rem`,color:`#ffffff`,fontSize:`0.88rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,h.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.3rem`},children:[(0,h.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Preferred Date & Time`}),(0,h.jsx)(`input`,{type:`datetime-local`,required:!0,value:De,onChange:e=>Oe(e.target.value),style:{background:`rgba(255, 255, 255, 0.03)`,border:`1px solid rgba(255, 255, 255, 0.08)`,borderRadius:`8px`,padding:`0.7rem 0.9rem`,color:`#ffffff`,fontSize:`0.88rem`,outline:`none`,transition:`all 0.3s ease`},onFocus:e=>{e.currentTarget.style.borderColor=`#ffaa00`,e.currentTarget.style.boxShadow=`0 0 10px rgba(255, 170, 0, 0.15)`},onBlur:e=>{e.currentTarget.style.borderColor=`rgba(255, 255, 255, 0.08)`,e.currentTarget.style.boxShadow=`none`}})]}),(0,h.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`0.5rem`,marginTop:`0.5rem`},children:[(0,h.jsx)(`label`,{style:{fontSize:`0.78rem`,fontWeight:600,color:`#e2e8f0`,textTransform:`uppercase`,letterSpacing:`0.05em`},children:`Areas of Interest`}),(0,h.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:`0.75rem`,background:`rgba(255, 255, 255, 0.01)`,border:`1px solid rgba(255, 255, 255, 0.05)`,borderRadius:`10px`,padding:`1rem`},children:[`AI & Analytics`,`SAP Services`,`XR Platforms`,`Smart Factory`,`Cloud Engineering`,`Enterprise Software`].map(e=>(0,h.jsxs)(`label`,{style:{display:`flex`,alignItems:`center`,gap:`0.5rem`,fontSize:`0.82rem`,color:`#cbd5e1`,cursor:`pointer`,userSelect:`none`},children:[(0,h.jsx)(`input`,{type:`checkbox`,checked:ke[e],onChange:t=>k(n=>({...n,[e]:t.target.checked})),style:{accentColor:`#ffaa00`,cursor:`pointer`,width:`16px`,height:`16px`}}),e]},e))})]})]}),(0,h.jsx)(`button`,{type:`submit`,style:{width:`100%`,marginTop:`1.5rem`,background:`rgba(255, 170, 0, 0.1)`,border:`1.5px solid rgba(255, 170, 0, 0.8)`,boxShadow:`0 0 15px rgba(255, 170, 0, 0.3)`,color:`#ffffff`,padding:`0.85rem`,borderRadius:`50px`,fontSize:`0.95rem`,fontWeight:600,cursor:`pointer`,transition:`all 0.3s ease`},onMouseEnter:e=>{e.currentTarget.style.background=`rgba(255, 170, 0, 0.2)`,e.currentTarget.style.boxShadow=`0 0 25px rgba(255, 170, 0, 0.5)`},onMouseLeave:e=>{e.currentTarget.style.background=`rgba(255, 170, 0, 0.1)`,e.currentTarget.style.boxShadow=`0 0 15px rgba(255, 170, 0, 0.3)`},children:`Book Session`})]})]})})]})}export{ou as n,iu as r,ku as t};