vendor: 89,676 bytes, lines 1-36
1import{c as he,r as w,j as n,S as ys,B as mr}from"./index-Daw2zpES.js";import{N as fr,F as pr}from"./footer-na5HrgKF.js";import{F as gr}from"./floating-particles-xMfkvOyt.js";import{S as xr}from"./seo-head-CwoL5qhY.js";import{W as yr}from"./whoop-integration-card-Dq9L3iZp.js";import{C as bs}from"./cpu-CPn7z9Rj.js";import{C as fe}from"./circle-check-big-CMJunThL.js";import{B as vs}from"./brain-9GL5Q4iC.js";import{Z as ws}from"./zap-2D-Cd0cj.js";import{M as br}from"./mic-B4fjIm9R.js";import{M as vr}from"./message-square-D617Xy0-.js";import{H as js}from"./heart-PmNndeip.js";import{S as wr}from"./shield-Cy1A8jEh.js";import{U as jr}from"./users-DrgYPfkv.js";import{B as Tr}from"./book-open-CWQYEX0r.js";import{G as Ar}from"./globe-BA3ht6sb.js";import"./target-yI_92mHQ.js";/** 2 * @license lucide-react v0.453.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const Ts=he("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 7 * @license lucide-react v0.453.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const Sr=he("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/** 12 * @license lucide-react v0.453.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const Pr=he("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/** 17 * @license lucide-react v0.453.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */const kr=he("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** 22 * @license lucide-react v0.453.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */const Mr=he("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** 27 * @license lucide-react v0.453.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */const As=he("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/** 32 * @license lucide-react v0.453.0 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */const Cr=he("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);function Nr(e){if(typeof Proxy>"u")return e;const t=new Map,s=(...i)=>e(...i);return new Proxy(s,{get:(i,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}function tt(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Tt=e=>Array.isArray(e);function Bi(e,t){if(!Array.isArray(t))return!1;const s=t.length;if(s!==e.length)return!1;for(let i=0;i<s;i++)if(t[i]!==e[i])return!1;return!0}function Fe(e){return typeof e=="string"||Array.isArray(e)}function Ss(e){const t=[{},{}];return e==null||e.values.forEach((s,i)=>{t[0][i]=s.get(),t[1][i]=s.getVelocity()}),t}function Ot(e,t,s,i){if(typeof t=="function"){const[r,a]=Ss(i);t=t(s!==void 0?s:e.custom,r,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,a]=Ss(i);t=t(s!==void 0?s:e.custom,r,a)}return t}function st(e,t,s){const i=e.getProps();return Ot(i,t,s!==void 0?s:i.custom,e)}const $t=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_t=["initial",...$t],Ee=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],me=new Set(Ee),X=e=>e*1e3,Y=e=>e/1e3,Fr={type:"spring",stiffness:500,damping:25,restSpeed:10},Vr=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Dr={type:"keyframes",duration:.8},Rr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Er=(e,{keyframes:t})=>t.length>2?Dr:me.has(e)?e.startsWith("scale")?Vr(t[1]):Fr:Rr;function Wt(e,t){return e?e[t]||e.default||e:void 0}const Lr={skipAnimations:!1,useManualTiming:!1},Ir=e=>e!==null;function it(e,{repeat:t,repeatType:s="loop"},i){const r=e.filter(Ir),a=t&&s!=="loop"&&t%2===1?0:r.length-1;return!a||i===void 0?r[a]:i}const B=e=>e;let At=B;function Br(e){let t=new Set,s=new Set,i=!1,r=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(u){a.has(u)&&(c.schedule(u),e()),u(o)}const c={schedule:(u,d=!1,h=!1)=>{const p=h&&i?t:s;return d&&a.add(u),p.has(u)||p.add(u),u},cancel:u=>{s.delete(u),a.delete(u)},process:u=>{if(o=u,i){r=!0;return}i=!0,[t,s]=[s,t],s.clear(),t.forEach(l),i=!1,r&&(r=!1,c.process(u))}};return c}const $e=["read","resolveKeyframes","update","preRender","render","postRender"],Or=40;function Oi(e,t){let s=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},a=()=>s=!0,o=$e.reduce((f,x)=>(f[x]=Br(a),f),{}),{read:l,resolveKeyframes:c,update:u,preRender:d,render:h,postRender:m}=o,p=()=>{const f=performance.now();s=!1,r.delta=i?1e3/60:Math.max(Math.min(f-r.timestamp,Or),1),r.timestamp=f,r.isProcessing=!0,l.process(r),c.process(r),u.process(r),d.process(r),h.process(r),m.process(r),r.isProcessing=!1,s&&t&&(i=!1,e(p))},j=()=>{s=!0,i=!0,r.isProcessing||e(p)};return{schedule:$e.reduce((f,x)=>{const v=o[x];return f[x]=(M,S=!1,k=!1)=>(s||j(),v.schedule(M,S,k)),f},{}),cancel:f=>{for(let x=0;x<$e.length;x++)o[$e[x]].cancel(f)},state:r,steps:o}}const{schedule:N,cancel:ie,state:E,steps:lt}=Oi(typeof requestAnimationFrame<"u"?requestAnimationFrame:B,!0),$i=(e,t,s)=>(((1-3*s+3*t)*e+(3*s-6*t))*e+3*t)*e,$r=1e-7,_r=12;function Wr(e,t,s,i,r){let a,o,l=0;do o=t+(s-t)/2,a=$i(o,i,r)-e,a>0?s=o:t=o;while(Math.abs(a)>$r&&++l<_r);return o}function Le(e,t,s,i){if(e===t&&s===i)return B;const r=a=>Wr(a,0,1,e,s);return a=>a===0||a===1?a:$i(r(a),t,i)}const _i=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Wi=e=>t=>1-e(1-t),Gi=Le(.33,1.53,.69,.99),Gt=Wi(Gi),zi=_i(Gt),Ui=e=>(e*=2)<1?.5*Gt(e):.5*(2-Math.pow(2,-10*(e-1))),zt=e=>1-Math.sin(Math.acos(e)),Hi=Wi(zt),Ki=_i(zt),qi=e=>/^0[^.\s]+$/u.test(e);function Gr(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||qi(e):!0}const Xi=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Yi=e=>t=>typeof t=="string"&&t.startsWith(e),Zi=Yi("--"),zr=Yi("var(--"),Ut=e=>zr(e)?Ur.test(e.split("/*")[0].trim()):!1,Ur=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Hr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Kr(e){const t=Hr.exec(e);if(!t)return[,];const[,s,i,r]=t;return[`--${s??i}`,r]}function Qi(e,t,s=1){const[i,r]=Kr(e);if(!i)return;const a=window.getComputedStyle(t).getPropertyValue(i);if(a){const o=a.trim();return Xi(o)?parseFloat(o):o}return Ut(r)?Qi(r,t,s+1):r}const Z=(e,t,s)=>s>t?t:s<e?e:s,Ae={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ve={...Ae,transform:e=>Z(0,1,e)},_e={...Ae,default:1},Ie=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ee=Ie("deg"),U=Ie("%"),P=Ie("px"),qr=Ie("vh"),Xr=Ie("vw"),Ps={...U,parse:e=>U.parse(e)/100,transform:e=>U.transform(e*100)},Yr=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ks=e=>e===Ae||e===P,Ms=(e,t)=>parseFloat(e.split(", ")[t]),Cs=(e,t)=>(s,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return Ms(r[1],t);{const a=i.match(/^matrix\((.+)\)$/u);return a?Ms(a[1],e):0}},Zr=new Set(["x","y","z"]),Qr=Ee.filter(e=>!Zr.has(e));function Jr(e){const t=[];return Qr.forEach(s=>{const i=e.getValue(s);i!==void 0&&(t.push([s,i.get()]),i.set(s.startsWith("scale")?1:0))}),t}const we={width:({x:e},{paddingLeft:t="0",paddingRight:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),height:({y:e},{paddingTop:t="0",paddingBottom:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Cs(4,13),y:Cs(5,14)};we.translateX=we.x;we.translateY=we.y;const Ji=e=>t=>t.test(e),eo={test:e=>e==="auto",parse:e=>e},en=[Ae,P,U,ee,Xr,qr,eo],Ns=e=>en.find(Ji(e)),ue=new Set;let St=!1,Pt=!1;function tn(){if(Pt){const e=Array.from(ue).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),s=new Map;t.forEach(i=>{const r=Jr(i);r.length&&(s.set(i,r),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const r=s.get(i);r&&r.forEach(([a,o])=>{var l;(l=i.getValue(a))===null||l===void 0||l.set(o)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Pt=!1,St=!1,ue.forEach(e=>e.complete()),ue.clear()}function sn(){ue.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Pt=!0)})}function to(){sn(),tn()}class Ht{constructor(t,s,i,r,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=s,this.name=i,this.motionValue=r,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ue.add(this),St||(St=!0,N.read(sn),N.resolveKeyframes(tn))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:s,element:i,motionValue:r}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const o=r==null?void 0:r.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(i&&s){const c=i.readValue(s,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),r&&o===void 0&&r.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ue.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ue.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Me=e=>Math.round(e*1e5)/1e5,Kt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function so(e){return e==null}const io=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,qt=(e,t)=>s=>!!(typeof s=="string"&&io.test(s)&&s.startsWith(e)||t&&!so(s)&&Object.prototype.hasOwnProperty.call(s,t)),nn=(e,t,s)=>i=>{if(typeof i!="string")return i;const[r,a,o,l]=i.match(Kt);return{[e]:parseFloat(r),[t]:parseFloat(a),[s]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},no=e=>Z(0,255,e),ct={...Ae,transform:e=>Math.round(no(e))},de={test:qt("rgb","red"),parse:nn("red","green","blue"),transform:({red:e,green:t,blue:s,alpha:i=1})=>"rgba("+ct.transform(e)+", "+ct.transform(t)+", "+ct.transform(s)+", "+Me(Ve.transform(i))+")"};function ro(e){let t="",s="",i="",r="";return e.length>5?(t=e.substring(1,3),s=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),s=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,s+=s,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(s,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const kt={test:qt("#"),parse:ro,transform:de.transform},ge={test:qt("hsl","hue"),parse:nn("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:s,alpha:i=1})=>"hsla("+Math.round(e)+", "+U.transform(Me(t))+", "+U.transform(Me(s))+", "+Me(Ve.transform(i))+")"},L={test:e=>de.test(e)||kt.test(e)||ge.test(e),parse:e=>de.test(e)?de.parse(e):ge.test(e)?ge.parse(e):kt.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?de.transform(e):ge.transform(e)},oo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ao(e){var t,s;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Kt))===null||t===void 0?void 0:t.length)||0)+(((s=e.match(oo))===null||s===void 0?void 0:s.length)||0)>0}const rn="number",on="color",lo="var",co="var(",Fs="${}",uo=/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 De(e){const t=e.toString(),s=[],i={color:[],number:[],var:[]},r=[];let a=0;const l=t.replace(uo,c=>(L.test(c)?(i.color.push(a),r.push(on),s.push(L.parse(c))):c.startsWith(co)?(i.var.push(a),r.push(lo),s.push(c)):(i.number.push(a),r.push(rn),s.push(parseFloat(c))),++a,Fs)).split(Fs);return{values:s,split:l,indexes:i,types:r}}function an(e){return De(e).values}function ln(e){const{split:t,types:s}=De(e),i=t.length;return r=>{let a="";for(let o=0;o<i;o++)if(a+=t[o],r[o]!==void 0){const l=s[o];l===rn?a+=Me(r[o]):l===on?a+=L.transform(r[o]):a+=r[o]}return a}}const ho=e=>typeof e=="number"?0:e;function mo(e){const t=an(e);return ln(e)(t.map(ho))}const ne={test:ao,parse:an,createTransformer:ln,getAnimatableNone:mo},fo=new Set(["brightness","contrast","saturate","opacity"]);function po(e){const[t,s]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=s.match(Kt)||[];if(!i)return e;const r=s.replace(i,"");let a=fo.has(t)?1:0;return i!==s&&(a*=100),t+"("+a+r+")"}const go=/\b([a-z-]*)\(.*?\)/gu,Mt={...ne,getAnimatableNone:e=>{const t=e.match(go);return t?t.map(po).join(" "):e}},xo={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,radius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,backgroundPositionX:P,backgroundPositionY:P},yo={rotate:ee,rotateX:ee,rotateY:ee,rotateZ:ee,scale:_e,scaleX:_e,scaleY:_e,scaleZ:_e,skew:ee,skewX:ee,skewY:ee,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:Ve,originX:Ps,originY:Ps,originZ:P},Vs={...Ae,transform:Math.round},Xt={...xo,...yo,zIndex:Vs,size:P,fillOpacity:Ve,strokeOpacity:Ve,numOctaves:Vs},bo={...Xt,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:Mt,WebkitFilter:Mt},Yt=e=>bo[e];function cn(e,t){let s=Yt(e);return s!==Mt&&(s=ne),s.getAnimatableNone?s.getAnimatableNone(t):void 0}const vo=new Set(["auto","none","0"]);function wo(e,t,s){let i=0,r;for(;i<e.length&&!r;){const a=e[i];typeof a=="string"&&!vo.has(a)&&De(a).values.length&&(r=e[i]),i++}if(r&&s)for(const a of t)e[a]=cn(s,r)}class dn extends Ht{constructor(t,s,i,r,a){super(t,s,i,r,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:s,name:i}=this;if(!s||!s.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),Ut(u))){const d=Qi(u,s.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Yr.has(i)||t.length!==2)return;const[r,a]=t,o=Ns(r),l=Ns(a);if(o!==l)if(ks(o)&&ks(l))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:s}=this,i=[];for(let r=0;r<t.length;r++)Gr(t[r])&&i.push(r);i.length&&wo(t,i,s)}measureInitialState(){const{element:t,unresolvedKeyframes:s,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=we[i](t.measureViewportBox(),window.getComputedStyle(t.current)),s[0]=this.measuredOrigin;const r=s[s.length-1];r!==void 0&&t.getValue(i,r).jump(r,!1)}measureEndState(){var t;const{element:s,name:i,unresolvedKeyframes:r}=this;if(!s||!s.current)return;const a=s.getValue(i);a&&a.jump(this.measuredOrigin,!1);const o=r.length-1,l=r[o];r[o]=we[i](s.measureViewportBox(),window.getComputedStyle(s.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,u])=>{s.getValue(c).set(u)}),this.resolveNoneKeyframes()}}function Zt(e){return typeof e=="function"}let Ge;function jo(){Ge=void 0}const H={now:()=>(Ge===void 0&&H.set(E.isProcessing||Lr.useManualTiming?E.timestamp:performance.now()),Ge),set:e=>{Ge=e,queueMicrotask(jo)}},Ds=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ne.test(e)||e==="0")&&!e.startsWith("url("));function To(e){const t=e[0];if(e.length===1)return!0;for(let s=0;s<e.length;s++)if(e[s]!==t)return!0}function Ao(e,t,s,i){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=Ds(r,t),l=Ds(a,t);return!o||!l?!1:To(e)||(s==="spring"||Zt(s))&&i}const So=40;class un{constructor({autoplay:t=!0,delay:s=0,type:i="keyframes",repeat:r=0,repeatDelay:a=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=H.now(),this.options={autoplay:t,delay:s,type:i,repeat:r,repeatDelay:a,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>So?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&to(),this._resolved}onKeyframesResolved(t,s){this.resolvedAt=H.now(),this.hasAttemptedResolve=!0;const{name:i,type:r,velocity:a,delay:o,onComplete:l,onUpdate:c,isGenerator:u}=this.options;if(!u&&!Ao(t,i,r,a))if(o)this.options.duration=0;else{c==null||c(it(t,this.options,s)),l==null||l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,s);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:s,...d},this.onPostResolved())}onPostResolved(){}then(t,s){return this.currentFinishedPromise.then(t,s)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const je=(e,t,s)=>{const i=t-e;return i===0?1:(s-e)/i},hn=(e,t,s=10)=>{let i="";const r=Math.max(Math.round(t/s),2);for(let a=0;a<r;a++)i+=e(je(0,r-1,a))+", ";return`linear(${i.substring(0,i.length-2)})`};function mn(e,t){return t?e*(1e3/t):0}const Po=5;function fn(e,t,s){const i=Math.max(t-Po,0);return mn(s-e(i),t-i)}const D={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},dt=.001;function ko({duration:e=D.duration,bounce:t=D.bounce,velocity:s=D.velocity,mass:i=D.mass}){let r,a,o=1-t;o=Z(D.minDamping,D.maxDamping,o),e=Z(D.minDuration,D.maxDuration,Y(e)),o<1?(r=u=>{const d=u*o,h=d*e,m=d-s,p=Ct(u,o),j=Math.exp(-h);return dt-m/p*j},a=u=>{const h=u*o*e,m=h*s+s,p=Math.pow(o,2)*Math.pow(u,2)*e,j=Math.exp(-h),b=Ct(Math.pow(u,2),o);return(-r(u)+dt>0?-1:1)*((m-p)*j)/b}):(r=u=>{const d=Math.exp(-u*e),h=(u-s)*e+1;return-dt+d*h},a=u=>{const d=Math.exp(-u*e),h=(s-u)*(e*e);return d*h});const l=5/e,c=Co(r,a,l);if(e=X(e),isNaN(c))return{stiffness:D.stiffness,damping:D.damping,duration:e};{const u=Math.pow(c,2)*i;return{stiffness:u,damping:o*2*Math.sqrt(i*u),duration:e}}}const Mo=12;function Co(e,t,s){let i=s;for(let r=1;r<Mo;r++)i=i-e(i)/t(i);return i}function Ct(e,t){return e*Math.sqrt(1-t*t)}const Nt=2e4;function pn(e){let t=0;const s=50;let i=e.next(t);for(;!i.done&&t<Nt;)t+=s,i=e.next(t);return t>=Nt?1/0:t}const No=["duration","bounce"],Fo=["stiffness","damping","mass"];function Rs(e,t){return t.some(s=>e[s]!==void 0)}function Vo(e){let t={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...e};if(!Rs(e,Fo)&&Rs(e,No))if(e.visualDuration){const s=e.visualDuration,i=2*Math.PI/(s*1.2),r=i*i,a=2*Z(.05,1,1-e.bounce)*Math.sqrt(r);t={...t,mass:D.mass,stiffness:r,damping:a}}else{const s=ko(e);t={...t,...s,mass:D.mass},t.isResolvedFromDuration=!0}return t}function gn(e=D.visualDuration,t=D.bounce){const s=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:r}=s;const a=s.keyframes[0],o=s.keyframes[s.keyframes.length-1],l={done:!1,value:a},{stiffness:c,damping:u,mass:d,duration:h,velocity:m,isResolvedFromDuration:p}=Vo({...s,velocity:-Y(s.velocity||0)}),j=m||0,b=u/(2*Math.sqrt(c*d)),y=o-a,f=Y(Math.sqrt(c/d)),x=Math.abs(y)<5;i||(i=x?D.restSpeed.granular:D.restSpeed.default),r||(r=x?D.restDelta.granular:D.restDelta.default);let v;if(b<1){const S=Ct(f,b);v=k=>{const g=Math.exp(-b*f*k);return o-g*((j+b*f*y)/S*Math.sin(S*k)+y*Math.cos(S*k))}}else if(b===1)v=S=>o-Math.exp(-f*S)*(y+(j+f*y)*S);else{const S=f*Math.sqrt(b*b-1);v=k=>{const g=Math.exp(-b*f*k),A=Math.min(S*k,300);return o-g*((j+b*f*y)*Math.sinh(A)+S*y*Math.cosh(A))/S}}const M={calculatedDuration:p&&h||null,next:S=>{const k=v(S);if(p)l.done=S>=h;else{let g=0;b<1&&(g=S===0?X(j):fn(v,S,k));const A=Math.abs(g)<=i,T=Math.abs(o-k)<=r;l.done=A&&T}return l.value=l.done?o:k,l},toString:()=>{const S=Math.min(pn(M),Nt),k=hn(g=>M.next(S*g).value,S,30);return S+"ms "+k}};return M}function Es({keyframes:e,velocity:t=0,power:s=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:a=500,modifyTarget:o,min:l,max:c,restDelta:u=.5,restSpeed:d}){const h=e[0],m={done:!1,value:h},p=A=>l!==void 0&&A<l||c!==void 0&&A>c,j=A=>l===void 0?c:c===void 0||Math.abs(l-A)<Math.abs(c-A)?l:c;let b=s*t;const y=h+b,f=o===void 0?y:o(y);f!==y&&(b=f-h);const x=A=>-b*Math.exp(-A/i),v=A=>f+x(A),M=A=>{const T=x(A),C=v(A);m.done=Math.abs(T)<=u,m.value=m.done?f:C};let S,k;const g=A=>{p(m.value)&&(S=A,k=gn({keyframes:[m.value,j(m.value)],velocity:fn(v,A,m.value),damping:r,stiffness:a,restDelta:u,restSpeed:d}))};return g(0),{calculatedDuration:null,next:A=>{let T=!1;return!k&&S===void 0&&(T=!0,M(A),g(A)),S!==void 0&&A>=S?k.next(A-S):(!T&&M(A),m)}}}const Do=Le(.42,0,1,1),Ro=Le(0,0,.58,1),xn=Le(.42,0,.58,1),Eo=e=>Array.isArray(e)&&typeof e[0]!="number",Qt=e=>Array.isArray(e)&&typeof e[0]=="number",Ls={linear:B,easeIn:Do,easeInOut:xn,easeOut:Ro,circIn:zt,circInOut:Ki,circOut:Hi,backIn:Gt,backInOut:zi,backOut:Gi,anticipate:Ui},Is=e=>{if(Qt(e)){At(e.length===4);const[t,s,i,r]=e;return Le(t,s,i,r)}else if(typeof e=="string")return At(Ls[e]!==void 0),Ls[e];return e},Lo=(e,t)=>s=>t(e(s)),te=(...e)=>e.reduce(Lo),V=(e,t,s)=>e+(t-e)*s;function ut(e,t,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+(t-e)*6*s:s<1/2?t:s<2/3?e+(t-e)*(2/3-s)*6:e}function Io({hue:e,saturation:t,lightness:s,alpha:i}){e/=360,t/=100,s/=100;let r=0,a=0,o=0;if(!t)r=a=o=s;else{const l=s<.5?s*(1+t):s+t-s*t,c=2*s-l;r=ut(c,l,e+1/3),a=ut(c,l,e),o=ut(c,l,e-1/3)}return{red:Math.round(r*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:i}}function He(e,t){return s=>s>0?t:e}const ht=(e,t,s)=>{const i=e*e,r=s*(t*t-i)+i;return r<0?0:Math.sqrt(r)},Bo=[kt,de,ge],Oo=e=>Bo.find(t=>t.test(e));function Bs(e){const t=Oo(e);if(!t)return!1;let s=t.parse(e);return t===ge&&(s=Io(s)),s}const Os=(e,t)=>{const s=Bs(e),i=Bs(t);if(!s||!i)return He(e,t);const r={...s};return a=>(r.red=ht(s.red,i.red,a),r.green=ht(s.green,i.green,a),r.blue=ht(s.blue,i.blue,a),r.alpha=V(s.alpha,i.alpha,a),de.transform(r))},Ft=new Set(["none","hidden"]);function $o(e,t){return Ft.has(e)?s=>s<=0?e:t:s=>s>=1?t:e}function _o(e,t){return s=>V(e,t,s)}function Jt(e){return typeof e=="number"?_o:typeof e=="string"?Ut(e)?He:L.test(e)?Os:zo:Array.isArray(e)?yn:typeof e=="object"?L.test(e)?Os:Wo:He}function yn(e,t){const s=[...e],i=s.length,r=e.map((a,o)=>Jt(a)(a,t[o]));return a=>{for(let o=0;o<i;o++)s[o]=r[o](a);return s}}function Wo(e,t){const s={...e,...t},i={};for(const r in s)e[r]!==void 0&&t[r]!==void 0&&(i[r]=Jt(e[r])(e[r],t[r]));return r=>{for(const a in i)s[a]=i[a](r);return s}}function Go(e,t){var s;const i=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],l=e.indexes[o][r[o]],c=(s=e.values[l])!==null&&s!==void 0?s:0;i[a]=c,r[o]++}return i}const zo=(e,t)=>{const s=ne.createTransformer(t),i=De(e),r=De(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?Ft.has(e)&&!r.values.length||Ft.has(t)&&!i.values.length?$o(e,t):te(yn(Go(i,r),r.values),s):He(e,t)};function bn(e,t,s){return typeof e=="number"&&typeof t=="number"&&typeof s=="number"?V(e,t,s):Jt(e)(e,t)}function Uo(e,t,s){const i=[],r=s||bn,a=e.length-1;for(let o=0;o<a;o++){let l=r(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]||B:t;l=te(c,l)}i.push(l)}return i}function Ho(e,t,{clamp:s=!0,ease:i,mixer:r}={}){const a=e.length;if(At(a===t.length),a===1)return()=>t[0];if(a===2&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Uo(t,i,r),l=o.length,c=u=>{let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const h=je(e[d],e[d+1],u);return o[d](h)};return s?u=>c(Z(e[0],e[a-1],u)):c}function Ko(e,t){const s=e[e.length-1];for(let i=1;i<=t;i++){const r=je(0,t,i);e.push(V(s,1,r))}}function qo(e){const t=[0];return Ko(t,e.length-1),t}function Xo(e,t){return e.map(s=>s*t)}function Yo(e,t){return e.map(()=>t||xn).splice(0,e.length-1)}function Ke({duration:e=300,keyframes:t,times:s,ease:i="easeInOut"}){const r=Eo(i)?i.map(Is):Is(i),a={done:!1,value:t[0]},o=Xo(s&&s.length===t.length?s:qo(t),e),l=Ho(o,t,{ease:Array.isArray(r)?r:Yo(t,r)});return{calculatedDuration:e,next:c=>(a.value=l(c),a.done=c>=e,a)}}const Zo=e=>{const t=({timestamp:s})=>e(s);return{start:()=>N.update(t,!0),stop:()=>ie(t),now:()=>E.isProcessing?E.timestamp:H.now()}},Qo={decay:Es,inertia:Es,tween:Ke,keyframes:Ke,spring:gn},Jo=e=>e/100;class es extends un{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:s,motionValue:i,element:r,keyframes:a}=this.options,o=(r==null?void 0:r.KeyframeResolver)||Ht,l=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new o(a,l,s,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:a,velocity:o=0}=this.options,l=Zt(s)?s:Qo[s]||Ke;let c,u;l!==Ke&&typeof t[0]!="number"&&(c=te(Jo,bn(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});a==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=pn(d));const{calculatedDuration:h}=d,m=h+r,p=m*(i+1)-r;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,s=!1){const{resolved:i}=this;if(!i){const{keyframes:A}=this.options;return{done:!0,value:A[A.length-1]}}const{finalKeyframe:r,generator:a,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:u,totalDuration:d,resolvedDuration:h}=i;if(this.startTime===null)return a.next(0);const{delay:m,repeat:p,repeatType:j,repeatDelay:b,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),s?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const f=this.currentTime-m*(this.speed>=0?1:-1),x=this.speed>=0?f<0:f>d;this.currentTime=Math.max(f,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let v=this.currentTime,M=a;if(p){const A=Math.min(this.currentTime,d)/h;let T=Math.floor(A),C=A%1;!C&&A>=1&&(C=1),C===1&&T--,T=Math.min(T,p+1),!!(T%2)&&(j==="reverse"?(C=1-C,b&&(C-=b/h)):j==="mirror"&&(M=o)),v=Z(0,1,C)*h}const S=x?{done:!1,value:c[0]}:M.next(v);l&&(S.value=l(S.value));let{done:k}=S;!x&&u!==null&&(k=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const g=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return g&&r!==void 0&&(S.value=it(c,this.options,r)),y&&y(S.value),g&&this.finish(),S}get duration(){const{resolved:t}=this;return t?Y(t.calculatedDuration):0}get time(){return Y(this.currentTime)}set time(t){t=X(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const s=this.playbackSpeed!==t;this.playbackSpeed=t,s&&(this.time=Y(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Zo,onPlay:s,startTime:i}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),s&&s();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const ea=new Set(["opacity","clipPath","filter","transform"]);function ts(e){let t;return()=>(t===void 0&&(t=e()),t)}const ta={linearEasing:void 0};function sa(e,t){const s=ts(e);return()=>{var i;return(i=ta[t])!==null&&i!==void 0?i:s()}}const qe=sa(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function vn(e){return!!(typeof e=="function"&&qe()||!e||typeof e=="string"&&(e in Vt||qe())||Qt(e)||Array.isArray(e)&&e.every(vn))}const Pe=([e,t,s,i])=>`cubic-bezier(${e}, ${t}, ${s}, ${i})`,Vt={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pe([0,.65,.55,1]),circOut:Pe([.55,0,1,.45]),backIn:Pe([.31,.01,.66,-.59]),backOut:Pe([.33,1.53,.69,.99])};function wn(e,t){if(e)return typeof e=="function"&&qe()?hn(e,t):Qt(e)?Pe(e):Array.isArray(e)?e.map(s=>wn(s,t)||Vt.easeOut):Vt[e]}function ia(e,t,s,{delay:i=0,duration:r=300,repeat:a=0,repeatType:o="loop",ease:l="easeInOut",times:c}={}){const u={[t]:s};c&&(u.offset=c);const d=wn(l,r);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:i,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}function $s(e,t){e.timeline=t,e.onfinish=null}const na=ts(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Xe=10,ra=2e4;function oa(e){return Zt(e.type)||e.type==="spring"||!vn(e.ease)}function aa(e,t){const s=new es({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:e[0]};const r=[];let a=0;for(;!i.done&&a<ra;)i=s.sample(a),r.push(i.value),a+=Xe;return{times:void 0,keyframes:r,duration:a-Xe,ease:"linear"}}const jn={anticipate:Ui,backInOut:zi,circInOut:Ki};function la(e){return e in jn}class _s extends un{constructor(t){super(t);const{name:s,motionValue:i,element:r,keyframes:a}=this.options;this.resolver=new dn(a,(o,l)=>this.onKeyframesResolved(o,l),s,i,r),this.resolver.scheduleResolve()}initPlayback(t,s){var i;let{duration:r=300,times:a,ease:o,type:l,motionValue:c,name:u,startTime:d}=this.options;if(!(!((i=c.owner)===null||i===void 0)&&i.current))return!1;if(typeof o=="string"&&qe()&&la(o)&&(o=jn[o]),oa(this.options)){const{onComplete:m,onUpdate:p,motionValue:j,element:b,...y}=this.options,f=aa(t,y);t=f.keyframes,t.length===1&&(t[1]=t[0]),r=f.duration,a=f.times,o=f.ease,l="keyframes"}const h=ia(c.owner.current,u,t,{...this.options,duration:r,times:a,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?($s(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(it(t,this.options,s)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:a,type:l,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:s}=t;return Y(s)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:s}=t;return Y(s.currentTime||0)}set time(t){const{resolved:s}=this;if(!s)return;const{animation:i}=s;i.currentTime=X(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:s}=t;return s.playbackRate}set speed(t){const{resolved:s}=this;if(!s)return;const{animation:i}=s;i.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:s}=t;return s.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:s}=t;return s.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:s}=this;if(!s)return B;const{animation:i}=s;$s(i,t)}return B}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:s}=t;s.playState==="finished"&&this.updateFinishedPromise(),s.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:s}=t;s.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:s,keyframes:i,duration:r,type:a,ease:o,times:l}=t;if(s.playState==="idle"||s.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:h,element:m,...p}=this.options,j=new es({...p,keyframes:i,duration:r,type:a,ease:o,times:l,isGenerator:!0}),b=X(this.time);u.setWithVelocity(j.sample(b-Xe).value,j.sample(b).value,Xe)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:s,name:i,repeatDelay:r,repeatType:a,damping:o,type:l}=t;return na()&&i&&ea.has(i)&&s&&s.owner&&s.owner.current instanceof HTMLElement&&!s.owner.getProps().onUpdate&&!r&&a!=="mirror"&&o!==0&&l!=="inertia"}}const ca=ts(()=>window.ScrollTimeline!==void 0);class da{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,s){return Promise.all(this.animations).then(t).catch(s)}getAll(t){return this.animations[0][t]}setAll(t,s){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=s}attachTimeline(t,s){const i=this.animations.map(r=>ca()&&r.attachTimeline?r.attachTimeline(t):s(r));return()=>{i.forEach((r,a)=>{r&&r(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let s=0;s<this.animations.length;s++)t=Math.max(t,this.animations[s].duration);return t}runAll(t){this.animations.forEach(s=>s[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function ua({when:e,delay:t,delayChildren:s,staggerChildren:i,staggerDirection:r,repeat:a,repeatType:o,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const ss=(e,t,s,i={},r,a)=>o=>{const l=Wt(i,e)||{},c=l.delay||i.delay||0;let{elapsed:u=0}=i;u=u-X(c);let d={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:m=>{t.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:a?void 0:r};ua(l)||(d={...d,...Er(e,d)}),d.duration&&(d.duration=X(d.duration)),d.repeatDelay&&(d.repeatDelay=X(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),h&&!a&&t.get()!==void 0){const m=it(d.keyframes,l);if(m!==void 0)return N.update(()=>{d.onUpdate(m),d.onComplete()}),new da([])}return!a&&_s.supports(d)?new _s(d):new es(d)},ha=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),ma=e=>Tt(e)?e[e.length-1]||0:e;function is(e,t){e.indexOf(t)===-1&&e.push(t)}function ns(e,t){const s=e.indexOf(t);s>-1&&e.splice(s,1)}class rs{constructor(){this.subscriptions=[]}add(t){return is(this.subscriptions,t),()=>ns(this.subscriptions,t)}notify(t,s,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,s,i);else for(let a=0;a<r;a++){const o=this.subscriptions[a];o&&o(t,s,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ws=30,fa=e=>!isNaN(parseFloat(e));class pa{constructor(t,s={}){this.version="11.13.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,r=!0)=>{const a=H.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=s.owner}setCurrent(t){this.current=t,this.updatedAt=H.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=fa(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,s){this.events[t]||(this.events[t]=new rs);const i=this.events[t].add(s);return t==="change"?()=>{i(),N.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,s){this.passiveEffect=t,this.stopPassiveEffect=s}set(t,s=!0){!s||!this.passiveEffect?this.updateAndNotify(t,s):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,s,i){this.set(s),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,s=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=H.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ws)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Ws);return mn(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(t){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=t(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Re(e,t){return new pa(e,t)}function ga(e,t,s){e.hasValue(t)?e.getValue(t).set(s):e.addValue(t,Re(s))}function xa(e,t){const s=st(e,t);let{transitionEnd:i={},transition:r={},...a}=s||{};a={...a,...i};for(const o in a){const l=ma(a[o]);ga(e,o,l)}}const os=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ya="framerAppearId",Tn="data-"+os(ya);function An(e){return e.props[Tn]}const I=e=>!!(e&&e.getVelocity);function ba(e){return!!(I(e)&&e.add)}function Dt(e,t){const s=e.getValue("willChange");if(ba(s))return s.add(t)}function va({protectedKeys:e,needsAnimating:t},s){const i=e.hasOwnProperty(s)&&t[s]!==!0;return t[s]=!1,i}function Sn(e,t,{delay:s=0,transitionOverride:i,type:r}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...c}=t;i&&(o=i);const u=[],d=r&&e.animationState&&e.animationState.getState()[r];for(const h in c){const m=e.getValue(h,(a=e.latestValues[h])!==null&&a!==void 0?a:null),p=c[h];if(p===void 0||d&&va(d,h))continue;const j={delay:s,...Wt(o||{},h)};let b=!1;if(window.MotionHandoffAnimation){const f=An(e);if(f){const x=window.MotionHandoffAnimation(f,h,N);x!==null&&(j.startTime=x,b=!0)}}Dt(e,h),m.start(ss(h,m,p,e.shouldReduceMotion&&me.has(h)?{type:!1}:j,e,b));const y=m.animation;y&&u.push(y)}return l&&Promise.all(u).then(()=>{N.update(()=>{l&&xa(e,l)})}),u}function Rt(e,t,s={}){var i;const r=st(e,t,s.type==="exit"?(i=e.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};s.transitionOverride&&(a=s.transitionOverride);const o=r?()=>Promise.all(Sn(e,r,s)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:m}=a;return wa(e,t,d+u,h,m,s)}:()=>Promise.resolve(),{when:c}=a;if(c){const[u,d]=c==="beforeChildren"?[o,l]:[l,o];return u().then(()=>d())}else return Promise.all([o(),l(s.delay)])}function wa(e,t,s=0,i=0,r=1,a){const o=[],l=(e.variantChildren.size-1)*i,c=r===1?(u=0)=>u*i:(u=0)=>l-u*i;return Array.from(e.variantChildren).sort(ja).forEach((u,d)=>{u.notify("AnimationStart",t),o.push(Rt(u,t,{...a,delay:s+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function ja(e,t){return e.sortNodePosition(t)}function Ta(e,t,s={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const r=t.map(a=>Rt(e,a,s));i=Promise.all(r)}else if(typeof t=="string")i=Rt(e,t,s);else{const r=typeof t=="function"?st(e,t,s.custom):t;i=Promise.all(Sn(e,r,s))}return i.then(()=>{e.notify("AnimationComplete",t)})}const Aa=_t.length;function Pn(e){if(!e)return;if(!e.isControllingVariants){const s=e.parent?Pn(e.parent)||{}:{};return e.props.initial!==void 0&&(s.initial=e.props.initial),s}const t={};for(let s=0;s<Aa;s++){const i=_t[s],r=e.props[i];(Fe(r)||r===!1)&&(t[i]=r)}return t}const Sa=[...$t].reverse(),Pa=$t.length;function ka(e){return t=>Promise.all(t.map(({animation:s,options:i})=>Ta(e,s,i)))}function Ma(e){let t=ka(e),s=Gs(),i=!0;const r=c=>(u,d)=>{var h;const m=st(e,d,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:p,transitionEnd:j,...b}=m;u={...u,...b,...j}}return u};function a(c){t=c(e)}function o(c){const{props:u}=e,d=Pn(e.parent)||{},h=[],m=new Set;let p={},j=1/0;for(let y=0;y<Pa;y++){const f=Sa[y],x=s[f],v=u[f]!==void 0?u[f]:d[f],M=Fe(v),S=f===c?x.isActive:null;S===!1&&(j=y);let k=v===d[f]&&v!==u[f]&&M;if(k&&i&&e.manuallyAnimateOnMount&&(k=!1),x.protectedKeys={...p},!x.isActive&&S===null||!v&&!x.prevProp||tt(v)||typeof v=="boolean")continue;const g=Ca(x.prevProp,v);let A=g||f===c&&x.isActive&&!k&&M||y>j&&M,T=!1;const C=Array.isArray(v)?v:[v];let F=C.reduce(r(f),{});S===!1&&(F={});const{prevResolvedValues:$={}}=x,oe={...$,...F},Oe=O=>{A=!0,m.has(O)&&(T=!0,m.delete(O)),x.needsAnimating[O]=!0;const K=e.getValue(O);K&&(K.liveStyle=!1)};for(const O in oe){const K=F[O],ot=$[O];if(p.hasOwnProperty(O))continue;let at=!1;Tt(K)&&Tt(ot)?at=!Bi(K,ot):at=K!==ot,at?K!=null?Oe(O):m.add(O):K!==void 0&&m.has(O)?Oe(O):x.protectedKeys[O]=!0}x.prevProp=v,x.prevResolvedValues=F,x.isActive&&(p={...p,...F}),i&&e.blockInitialAnimation&&(A=!1),A&&(!(k&&g)||T)&&h.push(...C.map(O=>({animation:O,options:{type:f}})))}if(m.size){const y={};m.forEach(f=>{const x=e.getBaseTarget(f),v=e.getValue(f);v&&(v.liveStyle=!0),y[f]=x??null}),h.push({animation:y})}let b=!!h.length;return i&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),i=!1,b?t(h):Promise.resolve()}function l(c,u){var d;if(s[c].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(m=>{var p;return(p=m.animationState)===null||p===void 0?void 0:p.setActive(c,u)}),s[c].isActive=u;const h=o(c);for(const m in s)s[m].protectedKeys={};return h}return{animateChanges:o,setActive:l,setAnimateFunction:a,getState:()=>s,reset:()=>{s=Gs(),i=!0}}}function Ca(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Bi(t,e):!1}function ae(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Gs(){return{animate:ae(!0),whileInView:ae(),whileHover:ae(),whileTap:ae(),whileDrag:ae(),whileFocus:ae(),exit:ae()}}class re{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Na extends re{constructor(t){super(t),t.animationState||(t.animationState=Ma(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();tt(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:s}=this.node.prevProps||{};t!==s&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Fa=0;class Va extends re{constructor(){super(...arguments),this.id=Fa++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:s}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const r=this.node.animationState.setActive("exit",!t);s&&!t&&r.then(()=>s(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Da={animation:{Feature:Na},exit:{Feature:Va}};function Ra(e,t,s){var i;if(e instanceof Element)return[e];if(typeof e=="string"){let r=document;const a=(i=void 0)!==null&&i!==void 0?i:r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const z={x:!1,y:!1};function kn(){return z.x||z.y}function zs(e){return t=>{t.pointerType==="touch"||kn()||e(t)}}function Ea(e,t,s={}){const i=new AbortController,r={passive:!0,...s,signal:i.signal},a=zs(o=>{const{target:l}=o,c=t(o);if(!c||!l)return;const u=zs(d=>{c(d),l.removeEventListener("pointerleave",u)});l.addEventListener("pointerleave",u,r)});return Ra(e).forEach(o=>{o.addEventListener("pointerenter",a,r)}),()=>i.abort()}function La(e){return e==="x"||e==="y"?z[e]?null:(z[e]=!0,()=>{z[e]=!1}):z.x||z.y?null:(z.x=z.y=!0,()=>{z.x=z.y=!1})}const Mn=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Be(e){return{point:{x:e.pageX,y:e.pageY}}}const Ia=e=>t=>Mn(t)&&e(t,Be(t));function q(e,t,s,i={passive:!0}){return e.addEventListener(t,s,i),()=>e.removeEventListener(t,s)}function se(e,t,s,i){return q(e,t,Ia(s),i)}const Us=(e,t)=>Math.abs(e-t);function Ba(e,t){const s=Us(e.x,t.x),i=Us(e.y,t.y);return Math.sqrt(s**2+i**2)}class Cn{constructor(t,s,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=ft(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=Ba(h.offset,{x:0,y:0})>=3;if(!m&&!p)return;const{point:j}=h,{timestamp:b}=E;this.history.push({...j,timestamp:b});const{onStart:y,onMove:f}=this.handlers;m||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),f&&f(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=mt(m,this.transformPagePoint),N.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:p,onSessionEnd:j,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=ft(h.type==="pointercancel"?this.lastMoveEventInfo:mt(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(h,y),j&&j(h,y)},!Mn(t))return;this.dragSnapToOrigin=a,this.handlers=s,this.transformPagePoint=i,this.contextWindow=r||window;const o=Be(t),l=mt(o,this.transformPagePoint),{point:c}=l,{timestamp:u}=E;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=s;d&&d(t,ft(l,this.history)),this.removeListeners=te(se(this.contextWindow,"pointermove",this.handlePointerMove),se(this.contextWindow,"pointerup",this.handlePointerUp),se(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ie(this.updatePoint)}}function mt(e,t){return t?{point:t(e.point)}:e}function Hs(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ft({point:e},t){return{point:e,delta:Hs(e,Nn(t)),offset:Hs(e,Oa(t)),velocity:$a(t,.1)}}function Oa(e){return e[0]}function Nn(e){return e[e.length-1]}function $a(e,t){if(e.length<2)return{x:0,y:0};let s=e.length-1,i=null;const r=Nn(e);for(;s>=0&&(i=e[s],!(r.timestamp-i.timestamp>X(t)));)s--;if(!i)return{x:0,y:0};const a=Y(r.timestamp-i.timestamp);if(a===0)return{x:0,y:0};const o={x:(r.x-i.x)/a,y:(r.y-i.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function xe(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const Fn=1e-4,_a=1-Fn,Wa=1+Fn,Vn=.01,Ga=0-Vn,za=0+Vn;function _(e){return e.max-e.min}function Ua(e,t,s){return Math.abs(e-t)<=s}function Ks(e,t,s,i=.5){e.origin=i,e.originPoint=V(t.min,t.max,e.origin),e.scale=_(s)/_(t),e.translate=V(s.min,s.max,e.origin)-e.originPoint,(e.scale>=_a&&e.scale<=Wa||isNaN(e.scale))&&(e.scale=1),(e.translate>=Ga&&e.translate<=za||isNaN(e.translate))&&(e.translate=0)}function Ce(e,t,s,i){Ks(e.x,t.x,s.x,i?i.originX:void 0),Ks(e.y,t.y,s.y,i?i.originY:void 0)}function qs(e,t,s){e.min=s.min+t.min,e.max=e.min+_(t)}function Ha(e,t,s){qs(e.x,t.x,s.x),qs(e.y,t.y,s.y)}function Xs(e,t,s){e.min=t.min-s.min,e.max=e.min+_(t)}function Ne(e,t,s){Xs(e.x,t.x,s.x),Xs(e.y,t.y,s.y)}function Ka(e,{min:t,max:s},i){return t!==void 0&&e<t?e=i?V(t,e,i.min):Math.max(e,t):s!==void 0&&e>s&&(e=i?V(s,e,i.max):Math.min(e,s)),e}function Ys(e,t,s){return{min:t!==void 0?e.min+t:void 0,max:s!==void 0?e.max+s-(e.max-e.min):void 0}}function qa(e,{top:t,left:s,bottom:i,right:r}){return{x:Ys(e.x,s,r),y:Ys(e.y,t,i)}}function Zs(e,t){let s=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([s,i]=[i,s]),{min:s,max:i}}function Xa(e,t){return{x:Zs(e.x,t.x),y:Zs(e.y,t.y)}}function Ya(e,t){let s=.5;const i=_(e),r=_(t);return r>i?s=je(t.min,t.max-i,e.min):i>r&&(s=je(e.min,e.max-r,t.min)),Z(0,1,s)}function Za(e,t){const s={};return t.min!==void 0&&(s.min=t.min-e.min),t.max!==void 0&&(s.max=t.max-e.min),s}const Et=.35;function Qa(e=Et){return e===!1?e=0:e===!0&&(e=Et),{x:Qs(e,"left","right"),y:Qs(e,"top","bottom")}}function Qs(e,t,s){return{min:Js(e,t),max:Js(e,s)}}function Js(e,t){return typeof e=="number"?e:e[t]||0}const ei=()=>({translate:0,scale:1,origin:0,originPoint:0}),ye=()=>({x:ei(),y:ei()}),ti=()=>({min:0,max:0}),R=()=>({x:ti(),y:ti()});function G(e){return[e("x"),e("y")]}function Dn({top:e,left:t,right:s,bottom:i}){return{x:{min:t,max:s},y:{min:e,max:i}}}function Ja({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function el(e,t){if(!t)return e;const s=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:s.y,left:s.x,bottom:i.y,right:i.x}}function pt(e){return e===void 0||e===1}function Lt({scale:e,scaleX:t,scaleY:s}){return!pt(e)||!pt(t)||!pt(s)}function le(e){return Lt(e)||Rn(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Rn(e){return si(e.x)||si(e.y)}function si(e){return e&&e!=="0%"}function Ye(e,t,s){const i=e-s,r=t*i;return s+r}function ii(e,t,s,i,r){return r!==void 0&&(e=Ye(e,r,i)),Ye(e,s,i)+t}function It(e,t=0,s=1,i,r){e.min=ii(e.min,t,s,i,r),e.max=ii(e.max,t,s,i,r)}function En(e,{x:t,y:s}){It(e.x,t.translate,t.scale,t.originPoint),It(e.y,s.translate,s.scale,s.originPoint)}const ni=.999999999999,ri=1.0000000000001;function tl(e,t,s,i=!1){const r=s.length;if(!r)return;t.x=t.y=1;let a,o;for(let l=0;l<r;l++){a=s[l],o=a.projectionDelta;const{visualElement:c}=a.options;c&&c.props.style&&c.props.style.display==="contents"||(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&ve(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,En(e,o)),i&&le(a.latestValues)&&ve(e,a.latestValues))}t.x<ri&&t.x>ni&&(t.x=1),t.y<ri&&t.y>ni&&(t.y=1)}function be(e,t){e.min=e.min+t,e.max=e.max+t}function oi(e,t,s,i,r=.5){const a=V(e.min,e.max,r);It(e,t,s,a,i)}function ve(e,t){oi(e.x,t.x,t.scaleX,t.scale,t.originX),oi(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ln(e,t){return Dn(el(e.getBoundingClientRect(),t))}function sl(e,t,s){const i=Ln(e,s),{scroll:r}=t;return r&&(be(i.x,r.offset.x),be(i.y,r.offset.y)),i}const In=({current:e})=>e?e.ownerDocument.defaultView:null,il=new WeakMap;class nl{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=R(),this.visualElement=t}start(t,{snapToCursor:s=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=d=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(Be(d).point)},a=(d,h)=>{const{drag:m,dragPropagation:p,onDragStart:j}=this.getProps();if(m&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=La(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),G(y=>{let f=this.getAxisMotionValue(y).get()||0;if(U.test(f)){const{projection:x}=this.visualElement;if(x&&x.layout){const v=x.layout.layoutBox[y];v&&(f=_(v)*(parseFloat(f)/100))}}this.originPoint[y]=f}),j&&N.postRender(()=>j(d,h)),Dt(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},o=(d,h)=>{const{dragPropagation:m,dragDirectionLock:p,onDirectionLock:j,onDrag:b}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:y}=h;if(p&&this.currentDirection===null){this.currentDirection=rl(y),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),b&&b(d,h)},l=(d,h)=>this.stop(d,h),c=()=>G(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Cn(t,{onSessionStart:r,onStart:a,onMove:o,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:In(this.visualElement)})}stop(t,s){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:r}=s;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&N.postRender(()=>a(t,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:s}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(t,s,i){const{drag:r}=this.getProps();if(!i||!We(t,r,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=Ka(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){var t;const{dragConstraints:s,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;s&&xe(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&r?this.constraints=qa(r.layoutBox,s):this.constraints=!1,this.elastic=Qa(i),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&G(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Za(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:s}=this.getProps();if(!t||!xe(t))return!1;const i=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const a=sl(i,r.root,this.visualElement.getTransformPagePoint());let o=Xa(r.layout.layoutBox,a);if(s){const l=s(Ja(o));this.hasMutatedConstraints=!!l,l&&(o=Dn(l))}return o}startAnimation(t){const{drag:s,dragMomentum:i,dragElastic:r,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=G(d=>{if(!We(d,s,this.currentDirection))return;let h=c&&c[d]||{};o&&(h={min:0,max:0});const m=r?200:1e6,p=r?40:1e7,j={type:"inertia",velocity:i?t[d]:0,bounceStiffness:m,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...h};return this.startAxisValueAnimation(d,j)});return Promise.all(u).then(l)}startAxisValueAnimation(t,s){const i=this.getAxisMotionValue(t);return Dt(this.visualElement,t),i.start(ss(t,i,0,s,this.visualElement,!1))}stopAnimation(){G(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){G(t=>{var s;return(s=this.getAxisMotionValue(t).animation)===null||s===void 0?void 0:s.pause()})}getAnimationState(t){var s;return(s=this.getAxisMotionValue(t).animation)===null||s===void 0?void 0:s.state}getAxisMotionValue(t){const s=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),r=i[s];return r||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){G(s=>{const{drag:i}=this.getProps();if(!We(s,i,this.currentDirection))return;const{projection:r}=this.visualElement,a=this.getAxisMotionValue(s);if(r&&r.layout){const{min:o,max:l}=r.layout.layoutBox[s];a.set(t[s]-V(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:s}=this.getProps(),{projection:i}=this.visualElement;if(!xe(s)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};G(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const c=l.get();r[o]=Ya({min:c,max:c},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),G(o=>{if(!We(o,t,null))return;const l=this.getAxisMotionValue(o),{min:c,max:u}=this.constraints[o];l.set(V(c,u,r[o]))})}addListeners(){if(!this.visualElement.current)return;il.set(this.visualElement,this);const t=this.visualElement.current,s=se(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),i=()=>{const{dragConstraints:c}=this.getProps();xe(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,a=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),N.read(i);const o=q(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(G(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=c[d].translate,h.set(h.get()+c[d].translate))}),this.visualElement.render())});return()=>{o(),s(),a(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:a=!1,dragElastic:o=Et,dragMomentum:l=!0}=t;return{...t,drag:s,dragDirectionLock:i,dragPropagation:r,dragConstraints:a,dragElastic:o,dragMomentum:l}}}function We(e,t,s){return(t===!0||t===e)&&(s===null||s===e)}function rl(e,t=10){let s=null;return Math.abs(e.y)>t?s="y":Math.abs(e.x)>t&&(s="x"),s}class ol extends re{constructor(t){super(t),this.removeGroupControls=B,this.removeListeners=B,this.controls=new nl(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||B}unmount(){this.removeGroupControls(),this.removeListeners()}}const ai=e=>(t,s)=>{e&&N.postRender(()=>e(t,s))};class al extends re{constructor(){super(...arguments),this.removePointerDownListener=B}onPointerDown(t){this.session=new Cn(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:In(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:s,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:ai(t),onStart:ai(s),onMove:i,onEnd:(a,o)=>{delete this.session,r&&N.postRender(()=>r(a,o))}}}mount(){this.removePointerDownListener=se(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const as=w.createContext(null);function ll(){const e=w.useContext(as);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:s,register:i}=e,r=w.useId();w.useEffect(()=>i(r),[]);const a=w.useCallback(()=>s&&s(r),[r,s]);return!t&&s?[!1,a]:[!0]}const Bn=w.createContext({}),On=w.createContext({}),ze={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function li(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Se={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(P.test(e))e=parseFloat(e);else return e;const s=li(e,t.target.x),i=li(e,t.target.y);return`${s}% ${i}%`}},cl={correct:(e,{treeScale:t,projectionDelta:s})=>{const i=e,r=ne.parse(e);if(r.length>5)return i;const a=ne.createTransformer(e),o=typeof r[0]!="number"?1:0,l=s.x.scale*t.x,c=s.y.scale*t.y;r[0+o]/=l,r[1+o]/=c;const u=V(l,c,.5);return typeof r[2+o]=="number"&&(r[2+o]/=u),typeof r[3+o]=="number"&&(r[3+o]/=u),a(r)}},Ze={};function dl(e){Object.assign(Ze,e)}const{schedule:ls,cancel:Fd}=Oi(queueMicrotask,!1);class ul extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:i,layoutId:r}=this.props,{projection:a}=t;dl(hl),a&&(s.group&&s.group.add(a),i&&i.register&&r&&i.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),ze.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:s,visualElement:i,drag:r,isPresent:a}=this.props,o=i.projection;return o&&(o.isPresent=a,r||t.layoutDependency!==s||s===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||N.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ls.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function $n(e){const[t,s]=ll(),i=w.useContext(Bn);return n.jsx(ul,{...e,layoutGroup:i,switchLayoutGroup:w.useContext(On),isPresent:t,safeToRemove:s})}const hl={borderRadius:{...Se,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomLeftRadius:Se,borderBottomRightRadius:Se,boxShadow:cl},_n=["TopLeft","TopRight","BottomLeft","BottomRight"],ml=_n.length,ci=e=>typeof e=="string"?parseFloat(e):e,di=e=>typeof e=="number"||P.test(e);function fl(e,t,s,i,r,a){r?(e.opacity=V(0,s.opacity!==void 0?s.opacity:1,pl(i)),e.opacityExit=V(t.opacity!==void 0?t.opacity:1,0,gl(i))):a&&(e.opacity=V(t.opacity!==void 0?t.opacity:1,s.opacity!==void 0?s.opacity:1,i));for(let o=0;o<ml;o++){const l=`border${_n[o]}Radius`;let c=ui(t,l),u=ui(s,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||di(c)===di(u)?(e[l]=Math.max(V(ci(c),ci(u),i),0),(U.test(u)||U.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||s.rotate)&&(e.rotate=V(t.rotate||0,s.rotate||0,i))}function ui(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const pl=Wn(0,.5,Hi),gl=Wn(.5,.95,B);function Wn(e,t,s){return i=>i<e?0:i>t?1:s(je(e,t,i))}function hi(e,t){e.min=t.min,e.max=t.max}function W(e,t){hi(e.x,t.x),hi(e.y,t.y)}function mi(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function fi(e,t,s,i,r){return e-=t,e=Ye(e,1/s,i),r!==void 0&&(e=Ye(e,1/r,i)),e}function xl(e,t=0,s=1,i=.5,r,a=e,o=e){if(U.test(t)&&(t=parseFloat(t),t=V(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=V(a.min,a.max,i);e===a&&(l-=t),e.min=fi(e.min,t,s,l,r),e.max=fi(e.max,t,s,l,r)}function pi(e,t,[s,i,r],a,o){xl(e,t[s],t[i],t[r],t.scale,a,o)}const yl=["x","scaleX","originX"],bl=["y","scaleY","originY"];function gi(e,t,s,i){pi(e.x,t,yl,s?s.x:void 0,i?i.x:void 0),pi(e.y,t,bl,s?s.y:void 0,i?i.y:void 0)}function xi(e){return e.translate===0&&e.scale===1}function Gn(e){return xi(e.x)&&xi(e.y)}function yi(e,t){return e.min===t.min&&e.max===t.max}function vl(e,t){return yi(e.x,t.x)&&yi(e.y,t.y)}function bi(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function zn(e,t){return bi(e.x,t.x)&&bi(e.y,t.y)}function vi(e){return _(e.x)/_(e.y)}function wi(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class wl{constructor(){this.members=[]}add(t){is(this.members,t),t.scheduleRender()}remove(t){if(ns(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(t){const s=this.members.findIndex(r=>t===r);if(s===0)return!1;let i;for(let r=s;r>=0;r--){const a=this.members[r];if(a.isPresent!==!1){i=a;break}}return i?(this.promote(i),!0):!1}promote(t,s){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,s&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:s,resumingFrom:i}=t;s.onExitComplete&&s.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function jl(e,t,s){let i="";const r=e.x.translate/t.x,a=e.y.translate/t.y,o=(s==null?void 0:s.z)||0;if((r||a||o)&&(i=`translate3d(${r}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),s){const{transformPerspective:u,rotate:d,rotateX:h,rotateY:m,skewX:p,skewY:j}=s;u&&(i=`perspective(${u}px) ${i}`),d&&(i+=`rotate(${d}deg) `),h&&(i+=`rotateX(${h}deg) `),m&&(i+=`rotateY(${m}deg) `),p&&(i+=`skewX(${p}deg) `),j&&(i+=`skewY(${j}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(i+=`scale(${l}, ${c})`),i||"none"}const Tl=(e,t)=>e.depth-t.depth;class Al{constructor(){this.children=[],this.isDirty=!1}add(t){is(this.children,t),this.isDirty=!0}remove(t){ns(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Tl),this.isDirty=!1,this.children.forEach(t)}}function Ue(e){const t=I(e)?e.get():e;return ha(t)?t.toValue():t}function Sl(e,t){const s=H.now(),i=({timestamp:r})=>{const a=r-s;a>=t&&(ie(i),e(a-t))};return N.read(i,!0),()=>ie(i)}function Pl(e){return e instanceof SVGElement&&e.tagName!=="svg"}function kl(e,t,s){const i=I(e)?e:Re(e);return i.start(ss("",i,t,s)),i.animation}const ce={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ke=typeof window<"u"&&window.MotionDebug!==void 0,gt=["","X","Y","Z"],Ml={visibility:"hidden"},ji=1e3;let Cl=0;function xt(e,t,s,i){const{latestValues:r}=t;r[e]&&(s[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function Un(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const s=An(t);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:r,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",N,!(r||a))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&Un(i)}function Hn({attachResizeListener:e,defaultParent:t,measureScroll:s,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(o={},l=t==null?void 0:t()){this.id=Cl++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ke&&(ce.totalNodes=ce.resolvedTargetDeltas=ce.recalculatedProjection=0),this.nodes.forEach(Vl),this.nodes.forEach(Il),this.nodes.forEach(Bl),this.nodes.forEach(Dl),ke&&window.MotionDebug.record(ce)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Al)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new rs),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const c=this.eventHandlers.get(o);c&&c.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Pl(o),this.instance=o;const{layoutId:c,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||c)&&(this.isLayoutDirty=!0),e){let h;const m=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Sl(m,250),ze.hasAnimatedSinceResize&&(ze.hasAnimatedSinceResize=!1,this.nodes.forEach(Ai))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:p,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||Gl,{onLayoutAnimationStart:y,onLayoutAnimationComplete:f}=d.getProps(),x=!this.targetLayout||!zn(this.targetLayout,j)||p,v=!m&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||m&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,v);const M={...Wt(b,"layout"),onPlay:y,onComplete:f};(d.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M)}else m||Ai(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ie(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(Ol),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Un(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ti);return}this.isUpdating||this.nodes.forEach(El),this.isUpdating=!1,this.nodes.forEach(Ll),this.nodes.forEach(Nl),this.nodes.forEach(Fl),this.clearAllSnapshots();const l=H.now();E.delta=Z(0,1e3/60,l-E.timestamp),E.timestamp=l,E.isProcessing=!0,lt.update.process(E),lt.preRender.process(E),lt.render.process(E),E.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ls.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Rl),this.sharedNodes.forEach($l)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,N.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){N.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=R(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l){const c=i(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Gn(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&(l||le(this.latestValues)||d)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return o&&(c=this.removeTransform(c)),zl(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:l}=this.options;if(!l)return R();const c=l.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(Ul))){const{scroll:d}=this.root;d&&(be(c.x,d.offset.x),be(c.y,d.offset.y))}return c}removeElementScroll(o){var l;const c=R();if(W(c,o),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:h,options:m}=d;d!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&W(c,o),be(c.x,h.offset.x),be(c.y,h.offset.y))}return c}applyTransform(o,l=!1){const c=R();W(c,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&ve(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),le(d.latestValues)&&ve(c,d.latestValues)}return le(this.latestValues)&&ve(c,this.latestValues),c}removeTransform(o){const l=R();W(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!le(u.latestValues))continue;Lt(u.latestValues)&&u.updateSnapshot();const d=R(),h=u.measurePageBox();W(d,h),gi(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return le(this.latestValues)&&gi(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==E.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=E.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R(),this.relativeTargetOrigin=R(),Ne(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),W(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=R(),this.targetWithTransforms=R()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ha(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):W(this.target,this.layout.layoutBox),En(this.target,this.targetDelta)):W(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R(),this.relativeTargetOrigin=R(),Ne(this.relativeTargetOrigin,this.target,p.target),W(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ke&&ce.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Lt(this.parent.latestValues)||Rn(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===E.timestamp&&(u=!1),u)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;W(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,p=this.treeScale.y;tl(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=R());const{target:j}=l;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(mi(this.prevProjectionDelta.x,this.projectionDelta.x),mi(this.prevProjectionDelta.y,this.projectionDelta.y)),Ce(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==p||!wi(this.projectionDelta.x,this.prevProjectionDelta.x)||!wi(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j)),ke&&ce.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ye(),this.projectionDelta=ye(),this.projectionDeltaWithTransform=ye()}setAnimationOrigin(o,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},h=ye();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const m=R(),p=c?c.source:void 0,j=this.layout?this.layout.source:void 0,b=p!==j,y=this.getStack(),f=!y||y.members.length<=1,x=!!(b&&!f&&this.options.crossfade===!0&&!this.path.some(Wl));this.animationProgress=0;let v;this.mixTargetDelta=M=>{const S=M/1e3;Si(h.x,o.x,S),Si(h.y,o.y,S),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ne(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),_l(this.relativeTarget,this.relativeTargetOrigin,m,S),v&&vl(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=R()),W(v,this.relativeTarget)),b&&(this.animationValues=d,fl(d,u,this.latestValues,S,x,f)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ie(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=N.update(()=>{ze.hasAnimatedSinceResize=!0,this.currentAnimation=kl(0,ji,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(ji),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=o;if(!(!l||!c||!u)){if(this!==o&&this.layout&&u&&Kn(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||R();const h=_(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+h;const m=_(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+m}W(l,c),ve(l,d),Ce(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new wl),this.sharedNodes.get(o).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&xt("z",o,u,this.animationValues);for(let d=0;d<gt.length;d++)xt(`rotate${gt[d]}`,o,u,this.animationValues),xt(`skew${gt[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}getProjectionStyles(o){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ml;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Ue(o==null?void 0:o.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Ue(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!le(this.latestValues)&&(b.transform=d?d({},""):"none",this.hasProjected=!1),b}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=jl(this.projectionDeltaWithTransform,this.treeScale,m),d&&(u.transform=d(m,u.transform));const{x:p,y:j}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${j.origin*100}% 0`,h.animationValues?u.opacity=h===this?(c=(l=m.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:u.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const b in Ze){if(m[b]===void 0)continue;const{correct:y,applyTo:f}=Ze[b],x=u.transform==="none"?m[b]:y(m[b],h);if(f){const v=f.length;for(let M=0;M<v;M++)u[f[M]]=x}else u[b]=x}return this.options.layoutId&&(u.pointerEvents=h===this?Ue(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Ti),this.root.sharedNodes.clear()}}}function Nl(e){e.updateLayout()}function Fl(e){var t;const s=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&s&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:r}=e.layout,{animationType:a}=e.options,o=s.source!==e.layout.source;a==="size"?G(h=>{const m=o?s.measuredBox[h]:s.layoutBox[h],p=_(m);m.min=i[h].min,m.max=m.min+p}):Kn(a,s.layoutBox,i)&&G(h=>{const m=o?s.measuredBox[h]:s.layoutBox[h],p=_(i[h]);m.max=m.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+p)});const l=ye();Ce(l,i,s.layoutBox);const c=ye();o?Ce(c,e.applyTransform(r,!0),s.measuredBox):Ce(c,i,s.layoutBox);const u=!Gn(l);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:p}=h;if(m&&p){const j=R();Ne(j,s.layoutBox,m.layoutBox);const b=R();Ne(b,i,p.layoutBox),zn(j,b)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=j,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:s,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function Vl(e){ke&&ce.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Dl(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Rl(e){e.clearSnapshot()}function Ti(e){e.clearMeasurements()}function El(e){e.isLayoutDirty=!1}function Ll(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ai(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Il(e){e.resolveTargetDelta()}function Bl(e){e.calcProjection()}
36function Ol(e){e.resetSkewAndRotation()}function $l(e){e.removeLeadSnapshot()}function Si(e,t,s){e.translate=V(t.translate,0,s),e.scale=V(t.scale,1,s),e.origin=t.origin,e.originPoint=t.originPoint}function Pi(e,t,s,i){e.min=V(t.min,s.min,i),e.max=V(t.max,s.max,i)}function _l(e,t,s,i){Pi(e.x,t.x,s.x,i),Pi(e.y,t.y,s.y,i)}function Wl(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Gl={duration:.45,ease:[.4,0,.1,1]},ki=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Mi=ki("applewebkit/")&&!ki("chrome/")?Math.round:B;function Ci(e){e.min=Mi(e.min),e.max=Mi(e.max)}function zl(e){Ci(e.x),Ci(e.y)}function Kn(e,t,s){return e==="position"||e==="preserve-aspect"&&!Ua(vi(t),vi(s),.2)}function Ul(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Hl=Hn({attachResizeListener:(e,t)=>q(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),yt={current:void 0},qn=Hn({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!yt.current){const e=new Hl({});e.mount(window),e.setOptions({layoutScroll:!0}),yt.current=e}return yt.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Kl={pan:{Feature:al},drag:{Feature:ol,ProjectionNode:qn,MeasureLayout:$n}};function Ni(e,t,s){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",s);const r=i[s?"onHoverStart":"onHoverEnd"];r&&N.postRender(()=>r(t,Be(t)))}class ql extends re{mount(){const{current:t,props:s}=this.node;t&&(this.unmount=Ea(t,i=>(Ni(this.node,i,!0),r=>Ni(this.node,r,!1)),{passive:!s.onHoverStart&&!s.onHoverEnd}))}unmount(){}}class Xl extends re{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=te(q(this.node.current,"focus",()=>this.onFocus()),q(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Xn=(e,t)=>t?e===t?!0:Xn(e,t.parentElement):!1;function bt(e,t){if(!t)return;const s=new PointerEvent("pointer"+e);t(s,Be(s))}class Yl extends re{constructor(){super(...arguments),this.removeStartListeners=B,this.removeEndListeners=B,this.removeAccessibleListeners=B,this.startPointerPress=(t,s)=>{if(this.isPressing)return;this.removeEndListeners();const i=this.node.getProps(),a=se(window,"pointerup",(l,c)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:d,globalTapTarget:h}=this.node.getProps(),m=!h&&!Xn(this.node.current,l.target)?d:u;m&&N.update(()=>m(l,c))},{passive:!(i.onTap||i.onPointerUp)}),o=se(window,"pointercancel",(l,c)=>this.cancelPress(l,c),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=te(a,o),this.startPress(t,s)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const o=l=>{l.key!=="Enter"||!this.checkPressEnd()||bt("up",(c,u)=>{const{onTap:d}=this.node.getProps();d&&N.postRender(()=>d(c,u))})};this.removeEndListeners(),this.removeEndListeners=q(this.node.current,"keyup",o),bt("down",(l,c)=>{this.startPress(l,c)})},s=q(this.node.current,"keydown",t),i=()=>{this.isPressing&&bt("cancel",(a,o)=>this.cancelPress(a,o))},r=q(this.node.current,"blur",i);this.removeAccessibleListeners=te(s,r)}}startPress(t,s){this.isPressing=!0;const{onTapStart:i,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&N.postRender(()=>i(t,s))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!kn()}cancelPress(t,s){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&N.postRender(()=>i(t,s))}mount(){const t=this.node.getProps(),s=se(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),i=q(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=te(s,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Bt=new WeakMap,vt=new WeakMap,Zl=e=>{const t=Bt.get(e.target);t&&t(e)},Ql=e=>{e.forEach(Zl)};function Jl({root:e,...t}){const s=e||document;vt.has(s)||vt.set(s,{});
vendor: 26,379 bytes, lines 36-39
36const i=vt.get(s),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(Ql,{root:e,...t})),i[r]}function ec(e,t,s){const i=Jl(t);return Bt.set(e,s),i.observe(e),()=>{Bt.delete(e),i.unobserve(e)}}const tc={some:0,all:1};class sc extends re{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:s,margin:i,amount:r="some",once:a}=t,o={root:s?s.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:tc[r]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,a&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),m=u?d:h;m&&m(c)};return ec(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:s}=this.node;["amount","margin","root"].some(ic(t,s))&&this.startObserver()}unmount(){}}function ic({viewport:e={}},{viewport:t={}}={}){return s=>e[s]!==t[s]}const nc={inView:{Feature:sc},tap:{Feature:Yl},focus:{Feature:Xl},hover:{Feature:ql}},rc={layout:{ProjectionNode:qn,MeasureLayout:$n}},Yn=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),nt=w.createContext({}),cs=typeof window<"u",oc=cs?w.useLayoutEffect:w.useEffect,Zn=w.createContext({strict:!1});function ac(e,t,s,i,r){var a,o;const{visualElement:l}=w.useContext(nt),c=w.useContext(Zn),u=w.useContext(as),d=w.useContext(Yn).reducedMotion,h=w.useRef();i=i||c.renderer,!h.current&&i&&(h.current=i(e,{visualState:t,parent:l,props:s,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const m=h.current,p=w.useContext(On);m&&!m.projection&&r&&(m.type==="html"||m.type==="svg")&&lc(h.current,s,r,p);const j=w.useRef(!1);w.useInsertionEffect(()=>{m&&j.current&&m.update(s,u)});const b=s[Tn],y=w.useRef(!!b&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,b))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,b)));return oc(()=>{m&&(j.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),ls.render(m.render),y.current&&m.animationState&&m.animationState.animateChanges())}),w.useEffect(()=>{m&&(!y.current&&m.animationState&&m.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var f;(f=window.MotionHandoffMarkAsComplete)===null||f===void 0||f.call(window,b)}),y.current=!1))}),m}function lc(e,t,s,i){const{layoutId:r,layout:a,drag:o,dragConstraints:l,layoutScroll:c,layoutRoot:u}=t;e.projection=new s(e.latestValues,t["data-framer-portal-id"]?void 0:Qn(e.parent)),e.projection.setOptions({layoutId:r,layout:a,alwaysMeasureLayout:!!o||l&&xe(l),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:i,layoutScroll:c,layoutRoot:u})}function Qn(e){if(e)return e.options.allowProjection!==!1?e.projection:Qn(e.parent)}function cc(e,t,s){return w.useCallback(i=>{i&&e.mount&&e.mount(i),t&&(i?t.mount(i):t.unmount()),s&&(typeof s=="function"?s(i):xe(s)&&(s.current=i))},[t])}function rt(e){return tt(e.animate)||_t.some(t=>Fe(e[t]))}function Jn(e){return!!(rt(e)||e.variants)}function dc(e,t){if(rt(e)){const{initial:s,animate:i}=e;return{initial:s===!1||Fe(s)?s:void 0,animate:Fe(i)?i:void 0}}return e.inherit!==!1?t:{}}function uc(e){const{initial:t,animate:s}=dc(e,w.useContext(nt));return w.useMemo(()=>({initial:t,animate:s}),[Fi(t),Fi(s)])}function Fi(e){return Array.isArray(e)?e.join(" "):e}const Vi={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"]},Te={};for(const e in Vi)Te[e]={isEnabled:t=>Vi[e].some(s=>!!t[s])};function hc(e){for(const t in e)Te[t]={...Te[t],...e[t]}}const mc=Symbol.for("motionComponentSymbol");function fc({preloadedFeatures:e,createVisualElement:t,useRender:s,useVisualState:i,Component:r}){e&&hc(e);function a(l,c){let u;const d={...w.useContext(Yn),...l,layoutId:pc(l)},{isStatic:h}=d,m=uc(l),p=i(l,h);if(!h&&cs){gc();const j=xc(d);u=j.MeasureLayout,m.visualElement=ac(r,p,d,t,j.ProjectionNode)}return n.jsxs(nt.Provider,{value:m,children:[u&&m.visualElement?n.jsx(u,{visualElement:m.visualElement,...d}):null,s(r,l,cc(p,m.visualElement,c),p,h,m.visualElement)]})}const o=w.forwardRef(a);return o[mc]=r,o}function pc({layoutId:e}){const t=w.useContext(Bn).id;return t&&e!==void 0?t+"-"+e:e}function gc(e,t){w.useContext(Zn).strict}function xc(e){const{drag:t,layout:s}=Te;if(!t&&!s)return{};const i={...t,...s};return{MeasureLayout:t!=null&&t.isEnabled(e)||s!=null&&s.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const yc=["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 ds(e){return typeof e!="string"||e.includes("-")?!1:!!(yc.indexOf(e)>-1||/[A-Z]/u.test(e))}function er(e,{style:t,vars:s},i,r){Object.assign(e.style,t,r&&r.getProjectionStyles(i));for(const a in s)e.style.setProperty(a,s[a])}const tr=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"]);function sr(e,t,s,i){er(e,t,void 0,i);for(const r in t.attrs)e.setAttribute(tr.has(r)?r:os(r),t.attrs[r])}function ir(e,{layout:t,layoutId:s}){return me.has(e)||e.startsWith("origin")||(t||s!==void 0)&&(!!Ze[e]||e==="opacity")}function us(e,t,s){var i;const{style:r}=e,a={};for(const o in r)(I(r[o])||t.style&&I(t.style[o])||ir(o,e)||((i=s==null?void 0:s.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(a[o]=r[o]);return a}function nr(e,t,s){const i=us(e,t,s);for(const r in e)if(I(e[r])||I(t[r])){const a=Ee.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[a]=e[r]}return i}function bc(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}function vc({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:s},i,r,a){const o={latestValues:wc(i,r,a,e),renderState:t()};return s&&(o.mount=l=>s(i,l,o)),o}const rr=e=>(t,s)=>{const i=w.useContext(nt),r=w.useContext(as),a=()=>vc(e,t,i,r);return s?a():bc(a)};function wc(e,t,s,i){const r={},a=i(e,{});for(const m in a)r[m]=Ue(a[m]);let{initial:o,animate:l}=e;const c=rt(e),u=Jn(e);t&&u&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let d=s?s.initial===!1:!1;d=d||o===!1;const h=d?l:o;if(h&&typeof h!="boolean"&&!tt(h)){const m=Array.isArray(h)?h:[h];for(let p=0;p<m.length;p++){const j=Ot(e,m[p]);if(j){const{transitionEnd:b,transition:y,...f}=j;for(const x in f){let v=f[x];if(Array.isArray(v)){const M=d?v.length-1:0;v=v[M]}v!==null&&(r[x]=v)}for(const x in b)r[x]=b[x]}}}return r}const hs=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),or=()=>({...hs(),attrs:{}}),ar=(e,t)=>t&&typeof e=="number"?t.transform(e):e,jc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Tc=Ee.length;function Ac(e,t,s){let i="",r=!0;for(let a=0;a<Tc;a++){const o=Ee[a],l=e[o];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(o.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||s){const u=ar(l,Xt[o]);if(!c){r=!1;const d=jc[o]||o;i+=`${d}(${u}) `}s&&(t[o]=u)}}return i=i.trim(),s?i=s(t,r?"":i):r&&(i="none"),i}function ms(e,t,s){const{style:i,vars:r,transformOrigin:a}=e;let o=!1,l=!1;for(const c in t){const u=t[c];if(me.has(c)){o=!0;continue}else if(Zi(c)){r[c]=u;continue}else{const d=ar(u,Xt[c]);c.startsWith("origin")?(l=!0,a[c]=d):i[c]=d}}if(t.transform||(o||s?i.transform=Ac(t,e.transform,s):i.transform&&(i.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=a;i.transformOrigin=`${c} ${u} ${d}`}}function Di(e,t,s){return typeof e=="string"?e:P.transform(t+s*e)}function Sc(e,t,s){const i=Di(t,e.x,e.width),r=Di(s,e.y,e.height);return`${i} ${r}`}const Pc={offset:"stroke-dashoffset",array:"stroke-dasharray"},kc={offset:"strokeDashoffset",array:"strokeDasharray"};function Mc(e,t,s=1,i=0,r=!0){e.pathLength=1;const a=r?Pc:kc;e[a.offset]=P.transform(-i);const o=P.transform(t),l=P.transform(s);e[a.array]=`${o} ${l}`}function fs(e,{attrX:t,attrY:s,attrScale:i,originX:r,originY:a,pathLength:o,pathSpacing:l=1,pathOffset:c=0,...u},d,h){if(ms(e,u,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:p,dimensions:j}=e;m.transform&&(j&&(p.transform=m.transform),delete m.transform),j&&(r!==void 0||a!==void 0||p.transform)&&(p.transformOrigin=Sc(j,r!==void 0?r:.5,a!==void 0?a:.5)),t!==void 0&&(m.x=t),s!==void 0&&(m.y=s),i!==void 0&&(m.scale=i),o!==void 0&&Mc(m,o,l,c,!1)}const ps=e=>typeof e=="string"&&e.toLowerCase()==="svg",Cc={useVisualState:rr({scrapeMotionValuesFromProps:nr,createRenderState:or,onMount:(e,t,{renderState:s,latestValues:i})=>{N.read(()=>{try{s.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{s.dimensions={x:0,y:0,width:0,height:0}}}),N.render(()=>{fs(s,i,ps(t.tagName),e.transformTemplate),sr(t,s)})}})},Nc={useVisualState:rr({scrapeMotionValuesFromProps:us,createRenderState:hs})};function lr(e,t,s){for(const i in t)!I(t[i])&&!ir(i,s)&&(e[i]=t[i])}function Fc({transformTemplate:e},t){return w.useMemo(()=>{const s=hs();return ms(s,t,e),Object.assign({},s.vars,s.style)},[t])}function Vc(e,t){const s=e.style||{},i={};return lr(i,s,e),Object.assign(i,Fc(e,t)),i}function Dc(e,t){const s={},i=Vc(e,t);return e.drag&&e.dragListener!==!1&&(s.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=i,s}const Rc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Qe(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Rc.has(e)}let cr=e=>!Qe(e);function Ec(e){e&&(cr=t=>t.startsWith("on")?!Qe(t):e(t))}try{Ec(require("@emotion/is-prop-valid").default)}catch{}function Lc(e,t,s){const i={};for(const r in e)r==="values"&&typeof e.values=="object"||(cr(r)||s===!0&&Qe(r)||!t&&!Qe(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}function Ic(e,t,s,i){const r=w.useMemo(()=>{const a=or();return fs(a,t,ps(i),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};lr(a,e.style,e),r.style={...a,...r.style}}return r}function Bc(e=!1){return(s,i,r,{latestValues:a},o)=>{const c=(ds(s)?Ic:Dc)(i,a,o,s),u=Lc(i,typeof s=="string",e),d=s!==w.Fragment?{...u,...c,ref:r}:{},{children:h}=i,m=w.useMemo(()=>I(h)?h.get():h,[h]);return w.createElement(s,{...d,children:m})}}function Oc(e,t){return function(i,{forwardMotionProps:r}={forwardMotionProps:!1}){const o={...ds(i)?Cc:Nc,preloadedFeatures:e,useRender:Bc(r),createVisualElement:t,Component:i};return fc(o)}}const Je={current:null},gs={current:!1};function dr(){if(gs.current=!0,!!cs)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Je.current=e.matches;e.addListener(t),t()}else Je.current=!1}function $c(e,t,s){for(const i in t){const r=t[i],a=s[i];if(I(r))e.addValue(i,r);else if(I(a))e.addValue(i,Re(r,{owner:e}));else if(a!==r)if(e.hasValue(i)){const o=e.getValue(i);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=e.getStaticValue(i);e.addValue(i,Re(o!==void 0?o:r,{owner:e}))}}for(const i in s)t[i]===void 0&&e.removeValue(i);return t}const Ri=new WeakMap,_c=[...en,L,ne],Wc=e=>_c.find(Ji(e)),Ei=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Gc{scrapeMotionValuesFromProps(t,s,i){return{}}constructor({parent:t,props:s,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:a,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ht,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=H.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,N.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=s.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=s,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=l,this.blockInitialAnimation=!!a,this.isControllingVariants=rt(s),this.isVariantNode=Jn(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(s,{},this);for(const m in h){const p=h[m];c[m]!==void 0&&I(p)&&p.set(c[m],!1)}}mount(t){this.current=t,Ri.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),gs.current||dr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Je.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ri.delete(this.current),this.projection&&this.projection.unmount(),ie(this.notifyUpdate),ie(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const s=this.features[t];s&&(s.unmount(),s.isMounted=!1)}this.current=null}bindToMotionValue(t,s){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=me.has(t),r=s.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&N.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),a=s.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,s)),this.valueSubscriptions.set(t,()=>{r(),a(),o&&o(),s.owner&&s.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Te){const s=Te[t];if(!s)continue;const{isEnabled:i,Feature:r}=s;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):R()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,s){this.latestValues[t]=s}update(t,s){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let i=0;i<Ei.length;i++){const r=Ei[i];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const a="on"+r,o=t[a];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=$c(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(t),()=>s.variantChildren.delete(t)}addValue(t,s){const i=this.values.get(t);s!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,s),this.values.set(t,s),this.latestValues[t]=s.get())}removeValue(t){this.values.delete(t);const s=this.valueSubscriptions.get(t);s&&(s(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,s){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&s!==void 0&&(i=Re(s===null?void 0:s,{owner:this}),this.addValue(t,i)),i}readValue(t,s){var i;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Xi(r)||qi(r))?r=parseFloat(r):!Wc(r)&&ne.test(s)&&(r=cn(t,s)),this.setBaseTarget(t,I(r)?r.get():r)),I(r)?r.get():r}setBaseTarget(t,s){this.baseTarget[t]=s}getBaseTarget(t){var s;const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const o=Ot(this.props,i,(s=this.presenceContext)===null||s===void 0?void 0:s.custom);o&&(r=o[t])}if(i&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!I(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,s){return this.events[t]||(this.events[t]=new rs),this.events[t].add(s)}notify(t,...s){this.events[t]&&this.events[t].notify(...s)}}class ur extends Gc{constructor(){super(...arguments),this.KeyframeResolver=dn}sortInstanceNodePosition(t,s){return t.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(t,s){return t.style?t.style[s]:void 0}removeValueFromRenderState(t,{vars:s,style:i}){delete s[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;I(t)&&(this.childSubscription=t.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function zc(e){return window.getComputedStyle(e)}class Uc extends ur{constructor(){super(...arguments),this.type="html",this.renderInstance=er}readValueFromInstance(t,s){if(me.has(s)){const i=Yt(s);return i&&i.default||0}else{const i=zc(t),r=(Zi(s)?i.getPropertyValue(s):i[s])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:s}){return Ln(t,s)}build(t,s,i){ms(t,s,i.transformTemplate)}scrapeMotionValuesFromProps(t,s,i){return us(t,s,i)}}class Hc extends ur{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=R}getBaseTargetFromProps(t,s){return t[s]}readValueFromInstance(t,s){if(me.has(s)){const i=Yt(s);return i&&i.default||0}return s=tr.has(s)?s:os(s),t.getAttribute(s)}scrapeMotionValuesFromProps(t,s,i){return nr(t,s,i)}build(t,s,i){fs(t,s,this.isSVGTag,i.transformTemplate)}renderInstance(t,s,i,r){sr(t,s,i,r)}mount(t){this.isSVGTag=ps(t.tagName),super.mount(t)}}const Kc=(e,t)=>ds(e)?new Hc(t):new Uc(t,{allowProjection:e!==w.Fragment}),qc=Oc({...Da,...nc,...Kl,...rc},Kc),et=Nr(qc);function hr(){!gs.current&&dr();const[e]=w.useState(Je.current);return e}const Xc={sm:{w:520,h:420,ringR:150,nodeR:22},md:{w:640,h:520,ringR:190,nodeR:24},lg:{w:760,h:600,ringR:220,nodeR:26},xl:{w:988,h:780,ringR:286,nodeR:34}};function Yc(e){return Math.max(0,Math.min(1,e))}function wt(e,t,s,i){return{x:e+s*Math.cos(i),y:t+s*Math.sin(i)}}const Q={mic:({stroke:e,strokeOpacity:t})=>n.jsxs("g",{fill:"none",stroke:e,strokeOpacity:t,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("rect",{x:"10.5",y:"7.5",width:"7",height:"12",rx:"3.5"}),n.jsx("path",{d:"M9 13.5a5 5 0 0 0 10 0"}),n.jsx("path",{d:"M14 19.5v4"}),n.jsx("path",{d:"M11 23.5h6"})]}),chat:({stroke:e,strokeOpacity:t})=>n.jsxs("g",{fill:"none",stroke:e,strokeOpacity:t,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("path",{d:"M8 9.5h12a3 3 0 0 1 3 3v4a3 3 0 0 1-3 3H14l-4.5 3v-3H8a3 3 0 0 1-3-3v-4a3 3 0 0 1 3-3Z"}),n.jsx("path",{d:"M9.5 13.5h6"}),n.jsx("path",{d:"M9.5 16h9"})]}),health:({stroke:e,strokeOpacity:t})=>n.jsxs("g",{fill:"none",stroke:e,strokeOpacity:t,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("path",{d:"M14 23s-8-4.8-8-10.5A4.5 4.5 0 0 1 10.5 8c1.3 0 2.6.6 3.5 1.7C14.9 8.6 16.2 8 17.5 8A4.5 4.5 0 0 1 22 12.5C22 18.2 14 23 14 23Z"}),n.jsx("path",{d:"M7.5 15h3l1.2-2.2L13.2 17l1.4-2H18.5"})]}),journal:({stroke:e,strokeOpacity:t})=>n.jsxs("g",{fill:"none",stroke:e,strokeOpacity:t,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("path",{d:"M8 6.5h10a3 3 0 0 1 3 3v14a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v-14a3 3 0 0 1 3-3Z"}),n.jsx("path",{d:"M8.5 10h7"}),n.jsx("path",{d:"M8.5 13h9"}),n.jsx("path",{d:"M8.5 16h6"})]}),assessment:({stroke:e,strokeOpacity:t})=>n.jsxs("g",{fill:"none",stroke:e,strokeOpacity:t,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("path",{d:"M9 7h10l3 3v14a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2Z"}),n.jsx("path",{d:"M19 7v4h4"}),n.jsx("path",{d:"M10 13h8"}),n.jsx("path",{d:"M10 16h6"}),n.jsx("path",{d:"M10 19h7"}),n.jsx("path",{d:"M18.2 16.2l-1.6 1.6-.8-.8"})]}),analytics:({stroke:e,strokeOpacity:t})=>n.jsxs("g",{fill:"none",stroke:e,strokeOpacity:t,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("path",{d:"M7 22.5V9.5"}),n.jsx("path",{d:"M7 22.5h16"}),n.jsx("path",{d:"M10 19.5v-6"}),n.jsx("path",{d:"M14 19.5v-9"}),n.jsx("path",{d:"M18 19.5v-4"}),n.jsx("path",{d:"M10 12.5l4-2 4 3 3-5"})]}),library:({stroke:e,strokeOpacity:t})=>n.jsxs("g",{fill:"none",stroke:e,strokeOpacity:t,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("path",{d:"M8 6.5h3.5a2 2 0 0 1 2 2v15H10a2 2 0 0 0-2 2v-19Z"}),n.jsx("path",{d:"M20 6.5h-3.5a2 2 0 0 0-2 2v15H18a2 2 0 0 1 2 2v-19Z"}),n.jsx("path",{d:"M11 10h2.5"}),n.jsx("path",{d:"M14.5 10H17"}),n.jsx("path",{d:"M11 13h6"})]}),program:({stroke:e,strokeOpacity:t})=>n.jsxs("g",{fill:"none",stroke:e,strokeOpacity:t,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("path",{d:"M14 6.5l3.5 7h-7L14 6.5Z"}),n.jsx("path",{d:"M10.5 13.5l-2 10 5.5-4 5.5 4-2-10"}),n.jsx("path",{d:"M9.5 17.5h9"})]})};function Zc({size:e="md",accentGlowColor:t="#66E3FF",showTagline:s=!0,className:i="",embedded:r=!1}){const a=hr(),{w:o,h:l,ringR:c,nodeR:u}=Xc[e],d=o/2,h=l/2,m="#FFFFFF",p=.22,j=.7,b=.85,y=w.useMemo(()=>[{id:"voice",label:"Voice Agent",icon:Q.mic},{id:"chat",label:"Chat Agent",icon:Q.chat},{id:"health",label:"Health Data Sync",icon:Q.health},{id:"journal",label:"Journaling Memory",icon:Q.journal},{id:"assess",label:"Assessments Engine",icon:Q.assessment},{id:"reports",label:"Reports & Analytics",icon:Q.analytics},{id:"library",label:"Flow Trigger Library",icon:Q.library},{id:"programs",label:"Programs Engine",icon:Q.program}],[]),f=w.useMemo(()=>{const g=-Math.PI/2,A=Math.PI/8;return y.map((T,C)=>{const F=g+A+C*(2*Math.PI)/y.length,$=wt(d,h,c,F);return{...T,...$,angle:F}})},[y,d,h,c]),x=[0,2,4,6,7,1],v=w.useMemo(()=>x.map((g,A)=>{const T=f[g],C=(T.angle+Math.atan2(T.y-h,T.x-d))/2,F=wt(d,h,c*.35,C),$=`M ${d} ${h} Q ${F.x} ${F.y} ${T.x} ${T.y}`;return{id:`pulse-${g}-${A}`,d:$,delay:A*.6}}),[f,d,h,c]),M=w.useMemo(()=>f.map((g,A)=>{const T=f[(A+1)%f.length];return{id:`ring-${A}`,x1:g.x,y1:g.y,x2:T.x,y2:T.y}}),[f]),S="bg-[#070A12] bg-[radial-gradient(circle_at_30%_20%,rgba(102,227,255,0.10),transparent_45%),radial-gradient(circle_at_80%_70%,rgba(255,255,255,0.06),transparent_55%),linear-gradient(rgba(255,255,255,0.04)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,0.04)_1px,transparent_1px)] bg-[length:100%_100%,100%_100%,32px_32px,32px_32px]",k=n.jsxs("div",{className:"rounded-3xl border border-white/10 bg-white/[0.03] p-4 shadow-[0_0_0_1px_rgba(255,255,255,0.04)]",children:[n.jsxs("svg",{viewBox:`0 0 ${o} ${l}`,className:"h-auto w-full",role:"img","aria-label":"Neural Flow Architecture schematic",children:[n.jsxs("defs",{children:[n.jsxs("filter",{id:"softGlow",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[n.jsx("feGaussianBlur",{stdDeviation:"6",result:"blur"}),n.jsxs("feMerge",{children:[n.jsx("feMergeNode",{in:"blur"}),n.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),n.jsxs("filter",{id:"accentGlow",x:"-60%",y:"-60%",width:"220%",height:"220%",children:[n.jsx("feGaussianBlur",{stdDeviation:"10",result:"blur"}),n.jsx("feColorMatrix",{in:"blur",type:"matrix",values:`1 0 0 0 0 37 0 1 0 0 0 38 0 0 1 0 0 39 0 0 0 0.65 0`,result:"colored"}),n.jsxs("feMerge",{children:[n.jsx("feMergeNode",{in:"colored"}),n.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),n.jsxs("linearGradient",{id:"lineGrad",x1:"0",y1:"0",x2:"1",y2:"1",children:[n.jsx("stop",{offset:"0",stopColor:"#FFFFFF",stopOpacity:p}),n.jsx("stop",{offset:"1",stopColor:t,stopOpacity:Yc(p+.06)})]}),n.jsxs("linearGradient",{id:"nodeRingGrad",x1:"0",y1:"0",x2:"1",y2:"0",children:[n.jsx("stop",{offset:"0",stopColor:"#FFFFFF",stopOpacity:.55}),n.jsx("stop",{offset:"1",stopColor:t,stopOpacity:.5})]})]}),M.map(g=>
39n.jsx("line",{x1:g.x1,y1:g.y1,x2:g.x2,y2:g.y2,stroke:"url(#lineGrad)",strokeWidth:"1",vectorEffect:"non-scaling-stroke"},g.id)),f.map((g,A)=>{const T=wt(d,h,c*.35,g.angle),C=`M ${d} ${h} Q ${T.x} ${T.y} ${g.x} ${g.y}`;return n.jsx("path",{d:C,fill:"none",stroke:"url(#lineGrad)",strokeWidth:"1",vectorEffect:"non-scaling-stroke"},`core-link-${A}`)}),!a&&v.map(g=>n.jsxs("g",{children:[n.jsx("circle",{r:"2.2",fill:t,filter:"url(#softGlow)",opacity:.85,children:n.jsx("animateMotion",{dur:"3.8s",begin:`${g.delay}s`,repeatCount:"indefinite",path:g.d,keyTimes:"0;1",keySplines:"0.4 0 0.2 1",calcMode:"spline"})}),n.jsx("circle",{r:"2.0",fill:"#FFFFFF",filter:"url(#softGlow)",opacity:.6,children:n.jsx("animateMotion",{dur:"4.6s",begin:`${g.delay+.4}s`,repeatCount:"indefinite",path:g.d,keyPoints:"1;0",keyTimes:"0;1",keySplines:"0.4 0 0.2 1",calcMode:"spline"})})]},g.id)),n.jsxs(et.g,{initial:!1,animate:a?{}:{scale:[1,1.03,1]},transition:a?{}:{duration:6,repeat:1/0,ease:"easeInOut"},style:{transformOrigin:`${d}px ${h}px`},children:[n.jsx("circle",{cx:d,cy:h,r:46,fill:t,opacity:.1,filter:"url(#accentGlow)"}),n.jsx("circle",{cx:d,cy:h,r:36,fill:"rgba(255,255,255,0.04)",stroke:t,strokeOpacity:.65,strokeWidth:"1.5",filter:"url(#accentGlow)"}),n.jsx("circle",{cx:d,cy:h,r:24,fill:"rgba(255,255,255,0.02)",stroke:"#FFFFFF",strokeOpacity:.25}),n.jsx("text",{x:d,y:h-2,textAnchor:"middle",dominantBaseline:"middle",fontSize:"12",fill:"#FFFFFF",opacity:.92,style:{letterSpacing:"0.12em"},children:"AI FLOW CORE"}),n.jsx("text",{x:d,y:h+15,textAnchor:"middle",dominantBaseline:"middle",fontSize:"10",fill:"#FFFFFF",opacity:.55,children:"adaptive intelligence"})]}),f.map((g,A)=>{const T=A*.35;return n.jsxs(et.g,{initial:!1,animate:a?{}:{scale:[1,1.02,1],opacity:[.92,1,.92]},transition:a?{}:{duration:4.8,repeat:1/0,ease:"easeInOut",delay:T},style:{transformOrigin:`${g.x}px ${g.y}px`},children:[n.jsx("circle",{cx:g.x,cy:g.y,r:u+8,fill:t,opacity:.06,filter:"url(#softGlow)"}),n.jsx("circle",{cx:g.x,cy:g.y,r:u,fill:"rgba(255,255,255,0.03)",stroke:"url(#nodeRingGrad)",strokeWidth:"1.4",filter:"url(#softGlow)"}),n.jsx("g",{transform:`translate(${g.x-14}, ${g.y-14})`,children:g.icon({stroke:m,strokeOpacity:j}
39)}),n.jsx("text",{x:g.x,y:g.y+u+18,textAnchor:"middle",fontSize:"11",fill:"#FFFFFF",opacity:b,children:g.label})]},g.id)})]}),s&&n.jsx("div",{className:"mt-4 text-center text-sm text-white/65",children:"Every input refines your next action."})]});return r?n.jsx("div",{className:i,children:k}):n.jsx("section",{className:`w-full ${S} ${i}`,children:n.jsx("div",{className:"mx-auto max-w-6xl px-6 py-16",children:n.jsxs("div",{className:"grid items-center gap-10 md:grid-cols-2",children:[n.jsxs("div",{className:"space-y-5",children:[n.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-white/10 bg-white/5 px-3 py-1 text-xs text-white/70",children:[n.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-white/60"}),"Neural Flow Architecture"]}),n.jsx("h2",{className:"text-3xl font-semibold tracking-tight text-white md:text-4xl",children:"A Living AI Coaching Brain"}),n.jsx("p",{className:"max-w-prose text-base leading-relaxed text-white/70",children:"Voice + chat. Assessments. Memory. Health signals. Triggers. Programs â all connected. One system that learns you and turns your inputs into precise next actions."}),n.jsx("div",{className:"flex flex-wrap gap-2 pt-1 text-sm text-white/60",children:["Always-on agent","Bi-directional learning","Guided simplicity"].map(g=>n.jsx("span",{className:"rounded-full border border-white/10 bg-white/5 px-3 py-1",children:g},g))})]}),n.jsx("div",{className:"relative",children:k})]})})})}const Qc={sm:{w:520,h:420,ringR:150,nodeR:22},md:{w:680,h:540,ringR:200,nodeR:24},lg:{w:820,h:640,ringR:240,nodeR:26},xl:{w:902,h:704,ringR:264,nodeR:29}};function Jc(e){return Math.max(0,Math.min(1,e))}function jt(e,t,s,i){return{x:e+s*Math.cos(i),y:t+s*Math.sin(i)}}const J={racket:({stroke:e,strokeOpacity:t})=>n.jsxs("g",{fill:"none",stroke:e,strokeOpacity:t,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("ellipse",{cx:"14",cy:"12",rx:"6",ry:"7"}),n.jsx("path",{d:"M10 9l8 6"}),n.jsx("path",{d:"M12 18l-2 6"}),n.jsx("path",{d:"M14 18l1.5 6"})]}),heart:({stroke:e,strokeOpacity:t})=>n.jsx("g",{fill:"none",stroke:e,strokeOpacity:t,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("path",{d:"M14 23s-8-4.8-8-10.5A4.5 4.5 0 0 1 10.5 8c1.3 0 2.6.6 3.5 1.7C14.9 8.6 16.2 8 17.5 8A4.5 4.5 0 0 1 22 12.5C22 18.2 14 23 14 23Z"})}),building:({stroke:e,strokeOpacity:t})=>n.jsxs("g",{fill:"none",stroke:e,strokeOpacity:t,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("path",{d:"M7 24V8l7-3 7 3v16"}),n.jsx("path",{d:"M10 11h2M10 14h2M10 17h2"}),n.jsx("path",{d:"M16 11h2M16 14h2M16 17h2"}),n.jsx("path",{d:"M12 24v-4h4v4"})]}),event:({stroke:e,strokeOpacity:t})=>n.jsxs("g",{fill:"none",stroke:e,strokeOpacity:t,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("path",{d:"M8 9h16v12a3 3 0 0 1-3 3H11a3 3 0 0 1-3-3V9Z"}),n.jsx("path",{d:"M12 6v6M20 6v6"}),n.jsx("path",{d:"M10.5 14h11"}),n.jsx("path",{d:"M10.5 17h7"})]}),funnel:({stroke:e,strokeOpacity:t})=>n.jsx("g",{fill:"none",stroke:e,strokeOpacity:t,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("path",{d:"M7 8h14l-6 7v6l-2-1v-5L7 8Z"})}),bolt:({stroke:e,strokeOpacity:t})=>n.jsx("g",{fill:"none",stroke:e,strokeOpacity:t,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("path",{d:"M14 3l-6 11h6l-2 9 8-13h-6l0-7Z"})}),megaphone:({stroke:e,strokeOpacity:t})=>n.jsxs("g",{fill:"none",stroke:e,strokeOpacity:t,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("path",{d:"M7 14v-4l10-3v10l-10-3Z"}),n.jsx("path",{d:"M17 10.5l4 1.2v2.6l-4 1.2"}),n.jsx("path",{d:"M7 14l1.5 5a2 2 0 0 0 2 1.5h1"})]}),spark:({stroke:e,strokeOpacity:t})=>n.jsxs("g",{fill:"none",stroke:e,strokeOpacity:t,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("path",{d:"M14 4l1.2 3.6L19 9l-3.8 1.4L14 14l-1.2-3.6L9 9l3.8-1.4L14 4Z"}),n.jsx("path",{d:"M6.5 16.5l.8 2.2 2.2.8-2.2.8-.8 2.2-.8-2.2-2.2-.8 2.2-.8.8-2.2Z"})]})};function ed({size:e="md",accentGlowColor:t="#66E3FF",showTagline:s=!0,className:i="",embedded:r=!1}){const a=hr(),{w:o,h:l,ringR:c,nodeR:u}=Qc[e],d=o/2,h=l/2,m="#FFFFFF",p=.22,j=.7,b=.86,y=w.useMemo(()=>[{id:"tennis",label:"Tennis AI Brain",icon:J.racket},{id:"life",label:"Life AI Brain",icon:J.heart},{id:"enterprise",label:"Enterprise AI Brain",icon:J.building},{id:"events",label:"Event Ledger (HMAC + Idempotency)",icon:J.event},{id:"segments",label:"Segments & Lifecycle State",icon:J.funnel},{id:"automation",label:"Automation + Job Queue",icon:J.bolt},{id:"engagement",label:"Email + Push Engagement",icon:J.megaphone},{id:"advisor",label:"AI Advisor + Proposals",icon:J.spark}],[]),f=w.useMemo(()=>{const g=-Math.PI/2,A=Math.PI/10;return y.map((T,C)=>{const F=g+A+C*(2*Math.PI)/y.length,$=jt(d,h,c,F);return{...T,...$,angle:F}})},[y,d,h,c]),x=[0,3,5,6,2,7],v=w.useMemo(()=>x.map((g,A)=>{const T=f[g],C=jt(d,h,c*.35,T.angle),F=`M ${d} ${h} Q ${C.x} ${C.y} ${T.x} ${T.y}`;return{id:`pulse-${g}-${A}`,d:F,delay:A*.55}}),[f,d,h,c]),M=w.useMemo(()=>f.map((g,A)=>{const T=f[(A+1)%f.length];return{id:`ring-${A}`,x1:g.x,y1:g.y,x2:T.x,y2:T.y}}),[f]),S="bg-[#070A12] bg-[radial-gradient(circle_at_30%_20%,rgba(102,227,255,0.10),transparent_45%),radial-gradient(circle_at_80%_70%,rgba(255,255,255,0.06),transparent_55%),linear-gradient(rgba(255,255,255,0.04)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,0.04)_1px,transparent_1px)] bg-[length:100%_100%,100%_100%,32px_32px,32px_32px]",k=n.jsxs("div",{className:"rounded-3xl border border-white/10 bg-white/[0.03] p-4 shadow-[0_0_0_1px_rgba(255,255,255,0.04)]",children:[n.jsxs("svg",{viewBox:`0 0 ${o} ${l}`,className:"h-auto w-full",role:"img","aria-label":"FlowCode Brain Mesh schematic",children:[n.jsxs("defs",{children:[n.jsxs("filter",{id:"bm-softGlow",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[n.jsx("feGaussianBlur",{stdDeviation:"6",result:"blur"}),n.jsxs("feMerge",{children:[n.jsx("feMergeNode",{in:"blur"}),n.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),n.jsxs("filter",{id:"bm-accentGlow",x:"-60%",y:"-60%",width:"220%",height:"220%",children:[n.jsx("feGaussianBlur",{stdDeviation:"10",result:"blur"}),n.jsx("feColorMatrix",{in:"blur",type:"matrix",values:`1 0 0 0 0 40 0 1 0 0 0 41 0 0 1 0 0 42 0 0 0 0.65 0`,result:"colored"}),n.jsxs("feMerge",{children:[n.jsx("feMergeNode",{in:"colored"}),n.jsx("feMergeNode",{in:"SourceGraphic"})]})]}),n.jsxs("linearGradient",{id:"bm-lineGrad",x1:"0",y1:"0",x2:"1",y2:"1",children:[n.jsx("stop",{offset:"0",stopColor:"#FFFFFF",stopOpacity:p}),n.jsx("stop",{offset:"1",stopColor:t,stopOpacity:Jc(p+.06)})]}),n.jsxs("linearGradient",{id:"bm-nodeRingGrad",x1:"0",y1:"0",x2:"1",y2:"0",children:[n.jsx("stop",{offset:"0",stopColor:"#FFFFFF",stopOpacity:.55}),n.jsx("stop",{offset:"1",stopColor:t,stopOpacity:.5})]})]}),M.map(g=>
42n.jsx("line",{x1:g.x1,y1:g.y1,x2:g.x2,y2:g.y2,stroke:"url(#bm-lineGrad)",strokeWidth:"1",vectorEffect:"non-scaling-stroke"},g.id)),f.map((g,A)=>{const T=jt(d,h,c*.35,g.angle),C=`M ${d} ${h} Q ${T.x} ${T.y} ${g.x} ${g.y}`;return n.jsx("path",{d:C,fill:"none",stroke:"url(#bm-lineGrad)",strokeWidth:"1"},`core-link-${A}`)}),!a&&v.map(g=>n.jsxs("g",{children:[n.jsx("circle",{r:"2.2",fill:t,filter:"url(#bm-softGlow)",opacity:.85,children:n.jsx("animateMotion",{dur:"3.8s",begin:`${g.delay}s`,repeatCount:"indefinite",path:g.d})}),n.jsx("circle",{r:"2.0",fill:"#FFFFFF",filter:"url(#bm-softGlow)",opacity:.6,children:n.jsx("animateMotion",{dur:"4.6s",begin:`${g.delay+.4}s`,repeatCount:"indefinite",path:g.d,keyPoints:"1;0",keyTimes:"0;1"})})]},g.id)),n.jsxs(et.g,{initial:!1,animate:a?{}:{scale:[1,1.03,1]},transition:a?{}:{duration:6,repeat:1/0,ease:"easeInOut"},style:{transformOrigin:`${d}px ${h}px`},children:[n.jsx("circle",{cx:d,cy:h,r:48,fill:t,opacity:.1,filter:"url(#bm-accentGlow)"}),n.jsx("circle",{cx:d,cy:h,r:38,fill:"rgba(255,255,255,0.04)",stroke:t,strokeOpacity:.65,strokeWidth:"1.5",filter:"url(#bm-accentGlow)"}),n.jsx("circle",{cx:d,cy:h,r:25,fill:"rgba(255,255,255,0.02)",stroke:"#FFFFFF",strokeOpacity:.25}),n.jsx("text",{x:d,y:h-2,textAnchor:"middle",dominantBaseline:"middle",fontSize:"12",fill:"#FFFFFF",opacity:.92,style:{letterSpacing:"0.12em"},children:"CORE CRM BRAIN"}),n.jsx("text",{x:d,y:h+15,textAnchor:"middle",dominantBaseline:"middle",fontSize:"10",fill:"#FFFFFF",opacity:.55,children:"identity ⢠events ⢠automation"})]}),f.map((g,A)=>{const T=A*.35;return n.jsxs(et.g,{initial:!1,animate:a?{}:{scale:[1,1.02,1],opacity:[.92,1,.92]},transition:a?{}:{duration:4.8,repeat:1/0,ease:"easeInOut",delay:T},style:{transformOrigin:`${g.x}px ${g.y}px`},children:[n.jsx("circle",{cx:g.x,cy:g.y,r:u+8,fill:t,opacity:.06,filter:"url(#bm-softGlow)"}),n.jsx("circle",{cx:g.x,cy:g.y,r:u,fill:"rgba(255,255,255,0.03)",stroke:"url(#bm-nodeRingGrad)",strokeWidth:"1.4",filter:"url(#bm-softGlow)"}),n.jsx("g",{transform:`translate(${g.x-14}, ${g.y-14})`,children:g.icon({stroke:m,strokeOpacity:j}
42)}),n.jsx("text",{x:g.x,y:g.y+u+18,textAnchor:"middle",fontSize:"11",fill:"#FFFFFF",opacity:b,children:g.label})]},g.id)})]}),s&&n.jsx("div",{className:"mt-4 text-center text-sm text-white/65",children:"One event spine. Three coaching domains. Shared growth intelligence."})]});return r?n.jsx("div",{className:i,children:k}):n.jsx("section",{className:`w-full ${S} ${i}`,children:n.jsx("div",{className:"mx-auto max-w-6xl px-6 py-16",children:n.jsxs("div",{className:"grid items-center gap-10 md:grid-cols-2",children:[n.jsxs("div",{className:"space-y-5",children:[n.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-white/10 bg-white/5 px-3 py-1 text-xs text-white/70",children:[n.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-white/60"}),"FlowCode Brain Mesh"]}),n.jsx("h2",{className:"text-3xl font-semibold tracking-tight text-white md:text-4xl",children:"Three domain brains. One shared growth brain."}),n.jsx("p",{className:"max-w-prose text-base leading-relaxed text-white/70",children:"Tennis, Life, and Enterprise each run domain coaching + reports + engagement. The Core CRM brain unifies identity and events, then drives segmentation, automation, campaigns, and AI advisory work."}),n.jsx("div",{className:"flex flex-wrap gap-2 pt-1 text-sm text-white/60",children:["HMAC event spine","Lifecycle + segmentation","Automation + campaigns"].map(g=>n.jsx("span",{className:"rounded-full border border-white/10 bg-white/5 px-3 py-1",children:g},g))})]}),n.jsx("div",{className:"relative",children:k})]})})})}const Li=[{id:"assess",title:"Assess",mini:"Signals + state snapshot",desc:"Collects current state from assessments, journaling, health signals, and context.",input
42s:"Wearables, journaling, assessments, recent behavior",outputs:"State snapshot, risk flags, baseline metrics",fn:"Capture the present moment with coaching-grade fidelity"},{id:"interpret",title:"Interpret",mini:"Meaning + pattern inference",desc:"Interprets the snapshot â infers emotional state, cognitive load, and blockers.",inputs:"State snapshot + memory + goals",outputs:"State inference, bottleneck hypothesis, priority signal",fn:"Turn raw signals into actionable understanding"},{id:"activate",title:"Activate",mini:"Intervention selection",desc:"Selects and delivers a precise intervention: breathwork, focus protocol, or flow trigger.",inputs:"Inference + constraints (time, environment) + goal",outputs:"Matched protocol, guidance, next step plan",fn:"Deliver the right action at the right time"},{id:"measure",title:"Measure",mini:"Outcome tracking",desc:"Measures impact: stress shift, focus stability, performance markers, engagement.",inputs:"Post-intervention signals + self-report",outputs:"Outcome score, deltas, effectiveness signal",fn:"Quantify what worked (and what didn't)"},{id:"refine",title:"Refine",mini:"Personalization update",desc:"Updates the personalization model: adjusts future interventions and timing.",inputs:"Outcome + engagement + preferences",outputs:"Updated coaching strategy, tuned recommendations",fn:"Make the system smarter for the next loop"}],td={stress:{core:"Detect stress â stabilize â restore coherence",steps:[{id:"assess",title:"Assess",desc:"Stress markers detected (physiology + self-report)."},{id:"interpret",title:"Interpret",desc:"High arousal + cognitive noise â prioritize regulation."},{id:"activate",title:"Activate",desc:"Select: 3â5 min downshift breathwork + grounding."},{id:"measure",title:"Measure",desc:"Track HRV shift + perceived calm + focus stability."},{id:"refine",title:"Refine",desc:"Increase future sensitivity + timing for early intervention."}]},overload:{core:"Overload â simplify â focus channel",steps:[{id:"assess",title:"Assess",desc:"Task load high + attention fragmentation."},{id:"interpret",title:"Interpret",desc:"Cognitive overload â reduce inputs + prioritize."},{id:"activate",title:"Activate",desc:"Select: 7-min focus protocol + next-action plan."},{id:"measure",title:"Measure",desc:"Track completion momentum + distraction frequency."},{id:"refine",title:"Refine",desc:"Tune interventions for shorter, higher-frequency focus resets."}]},performance:{core:"Peak zone â sustain â compound",steps:[{id:"assess",title:"Assess",desc:"High energy + stable focus detected."},{id:"interpret",title:"Interpret",desc:"Challenge-skill alignment â flow probability high."},{id:"activate",title:"Activate",desc:"Select: performance priming + micro-goal ladder."},{id:"measure",title:"Measure",desc:"Track flow duration + output quality + recovery needs."},{id:"refine",title:"Refine",desc:"Reinforce what reliably triggers flow for this user."}]}},sd=[{left:"50%",top:"3%",transform:"translate(-50%, 0)"},{left:"88%",top:"27%",transform:"translate(-50%, -50%)"},{left:"78%",top:"78%",transform:"translate(-50%, -50%)"},{left:"22%",top:"78%",transform:"translate(-50%, -50%)"},{left:"12%",top:"27%",transform:"translate(-50%, -50%)"}];function id(){const[e,t]=w.useState(null),[s,i]=w.useState("Select a node"),[r,a]=w.useState("This loop is the engine behind scalable flow coaching â every cycle improves precision and compounds learning."),[o,l]=w.useState({inputs:"â",outputs:"â",fn:"â"}),[c,u]=w.useState("Context Engine + Decision Logic"),[d,h]=w.useState(!1),[m,p]=w.useState(0),[j,b]=w.useState(null),y=w.useRef(!1),f=w.useCallback(()=>{i("Select a node"),a("This loop is the engine behind scalable flow coaching â every cycle improves precision and compounds learning."),l({inputs:"â",outputs:"â",fn:"â"})},[]),x=w.useCallback(T=>{i(T.title),a(T.desc),l({inputs:T.inputs,outputs:T.outputs,fn:T.fn})},[]),v=w.useCallback(T=>{y.current||t(C=>C===T.id?(f(),null):(x(T),T.id))},[x,f]),M=w.useCallback(T=>{e||y.current||x(T)},[e,x]),S=w.useCallback(()=>{e||y.current||f()},[e,f]),k=w.useCallback(()=>{p(T=>T+1)},[]),g=w.useCallback(T=>{if(T==="reset"){u("Context Engine + Decision Logic"),f(),h(!1),t(null),b(null),k(),y.current=!1;return}const C=td[T];if(!C)return;y.current=!0,h(!0),u(C.core),k();let F=0;const $=()=>{const oe=C.steps[F],Oe=Li.find(xs=>xs.id===oe.id);x({...Oe,desc:oe.desc}),b(oe.id),k(),setTimeout(()=>{b(null)},600),F++,F<C.steps.length?setTimeout($,900):setTimeout(()=>{h(!1),y.current=!1},900)};$()},[x,f,k]),A=j||e;return n.jsxs("div",{className:"w-full max-w-[1100px] mx-auto",children:[n.jsxs("div",{className:"mb-4",children:[n.jsx("div",{className:"tracking-[0.18em] uppercase text-white/65 text-xs mb-2.5",children:"FlowCode AI Architecture"}),n.jsx("h2",{className:"text-[clamp(26px,3.2vw,40px)] leading-[1.05] font-[780] text-white m-0",children:"Adaptive AI Coaching Loop"}),n.jsxs("p",{className:"mt-2.5 text-white/68 max-w-[70ch] text-sm leading-relaxed",children:["FlowCode turns coaching into a closed-loop intelligence system: ",n.jsx("strong",{className:"text-white/90",children:"Assess â Interpret â Activate â Measure â Refine"}),'. Hover a node for details. Click to lock. Use scenarios to simulate "next best action" selection.']})]}),n.jsxs("div",{className:"relative rounded-[18px] border border-white/[0.14] overflow-hidden",style:{background:"linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04))",boxShadow:"0 18px 60px rgba(0,0,0,0.55)"},children:[n.jsx("div",{className:"absolute inset-[-2px] rounded-[20px] pointer-events-none",style:{background:"radial-gradient(900px 260px at 50% 0%, rgba(120,180,255,0.18), transparent 55%)"}}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[1.2fr_0.8fr] gap-4 p-4 relative z-10",children:[n.jsxs("div",{className:"relative rounded-2xl overflow-hidden min-h-0 sm:min-h-[420px] md:min-
42h-[520px] grid place-items-center",style:{background:"rgba(0,0,0,0.14)",border:"1px solid rgba(255,255,255,0.10)"},children:[n.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-35",style:{background:"linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0/ 56px 56px, linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0/ 56px 56px",maskImage:"radial-gradient(circle at 50% 40%, black 55%, transparent 80%)",WebkitMaskImage:"radial-gradient(circle at 50% 40%, black 55%, transparent 80%)"}}),n.jsxs("div",{className:"relative w-[min(480px,78vw)] sm:w-[min(480px,85vw)] aspect-square my-2 sm:my-0",children:[n.jsxs("svg",{viewBox:"0 0 1000 1000",className:"w-full h-full block absolute inset-0","aria-hidden":"true",children:[n.jsx("defs",{children:n.jsxs("filter",{id:"acl-softGlow",children:[n.jsx("feGaussianBlur",{stdDeviation:"3.5",result:"blur"}),n.jsxs("feMerge",{children:[n.jsx("feMergeNode",{in:"blur"}),n.jsx("feMergeNode",{in:"SourceGraphic"})]})]})}),n.jsx("circle",{cx:"500",cy:"500",r:"340",fill:"none",stroke:"rgba(255,255,255,0.10)",strokeWidth:"3"}),n.jsx("circle",{cx:"500",cy:"500",r:"340",fill:"none",stroke:"rgba(120,180,255,0.25)",strokeWidth:"4",style:{filter:"drop-shadow(0 0 14px rgba(120,180,255,0.22))",opacity:.65}}),n.jsx("circle",{cx:"500",cy:"500",r:"340",fill:"none",stroke:"rgba(120,180,255,0.85)",strokeWidth:"4",strokeLinecap:"round",style:{filter:"drop-shadow(0 0 16px rgba(120,180,255,0.35))",strokeDasharray:"40 900",animation:d?"acl-dashMove 2.2s linear infinite":"none",opacity:d?1:0,transition:"opacity 0.3s"}}),n.jsxs("g",{opacity:"0.22",children:[n.jsx("line",{x1:"500",y1:"140",x2:"500",y2:"170",stroke:"white",strokeWidth:"2"}),n.jsx("line",{x1:"835",y1:"500",x2:"865",y2:"500",stroke:"white",strokeWidth:"2"}),n.jsx("line",{x1:"500",y1:"830",x2:"500",y2:"860",stroke:"white",strokeWidth:"2"}),n.jsx("line",{x1:"135",y1:"500",x2:"165",y2:"500",stroke:"white",strokeWidth:"2"})]})]}),n.jsxs("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 w-[110px] h-[110px] sm:w-[160px] sm:h-[160px] md:w-[190px] md:h-[190px] rounded-full grid place-items-center text-center p-2 sm:p-4 overflow-hidden",style:{border:"1px solid rgba(255,255,255,0.16)",background:"radial-gradient(circle at 30% 30%, rgba(120,180,255,0.12), transparent 55%), radial-gradient(circle at 70% 60%, rgba(120,180,255,0.10), transparent 60%), rgba(255,255,255,0.03)",boxShadow:"0 18px 60px rgba(0,0,0,0.55)",backdropFilter:"blur(10px)"},children:[n.jsx("div",{className:"absolute inset-[-40%] pointer-events-none",style:{background:"radial-gradient(circle at 50% 50%, rgba(120,180,255,0.20), transparent 55%)",animation:"acl-corePulse 0.9s ease-out 1"}},m),n.jsxs("div",{className:"relative z-10",children:[n.jsx("p",{className:"m-0 font-[860] tracking-[0.02em] text-sm text-white",children:"AI Flow Core"}),n.jsx("p",{className:"mt-2 m-0 text-white/70 text-xs leading-snug",children:c})]})]}),Li.map((T,C)=>n.jsxs("div",{role:"button",tabIndex:0,className:"absolute w-[90px] sm:w-[120px] md:w-[132px] p-1.5 sm:p-2.5 rounded-2xl cursor-pointer select-none transition-all duration-150",style:{...sd[C],background:A===T.id?"linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04))":"linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03))",border:A===T.id?"1px solid rgba(120,180,255,0.60)":"1px solid rgba(255,255,255,0.14)",boxShadow:"0 10px 28px rgba(0,0,0,0.40)",backdropFilter:"blur(8px)"},onMouseEnter:()=>M(T),onMouseLeave:S,onClick:()=>v(T),onKeyDown:F=>{(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),v(T))},children:[n.jsxs("div",{className:"font-[780] text-[11px] sm:text-[13.5px] tracking-[0.02em] mb-0.5 sm:mb-1 flex items-center gap-1.5 sm:gap-2.5",children:[n.jsx("span",{className:"w-2 h-2 sm:w-2.5 sm:h-2.5 rounded-full flex-shrink-0",style:{background:"rgba(120,180,255,0.95)",boxShadow:"0 0 0 4px rgba(120,180,255,0.10), 0 0 24px rgba(120,180,255,0.40)"}}),T.title]}),n.jsx("p",{className:"text-[10px] sm:text-xs text-white/70 leading-snug m-0",children:T.mini})]},T.id))]})]}),n.jsxs("aside",{className:"hidden lg:flex p-4 rounded-2xl flex-col gap-3.5 min-h-[560px]",style:{background:"rgba(0,0,0,0.14)",border:"1px solid rgba(255,255,255,0.10)"},children:[n.jsx("h3",{className:"m-0 text-base tracking-[0.02em] font-bold text-white",children:s}),n.jsx("p",{className:"m-0 text-white/72 leading-relaxed text-[13.5px]",children:r}),n.jsx("div",{className:"flex flex-wrap gap-2.5 mt-1.5",children:[{key:"stress",label:"Simulate Stress",primary:!0},{key:"overload",label:"Simulate Overload",primary:!1},{key:"performance",label:"Simulate Peak Performance",primary:!1},{key:"reset",label:"Reset",primary:!1}].map(T=>n.jsxs("button",{onClick:()=>g(T.key),className:"cursor-pointer rounded-full px-3 py-2.5 font-semibold text-xs flex items-center gap-2.5 transition-all duration-150 whitespace-nowrap hover:-translate-y-
42px",style:{border:T.primary?"1px solid rgba(120,180,255,0.40)":"1px solid rgba(255,255,255,0.16)",background:T.primary?"rgba(120,180,255,0.14)":"rgba(0,0,0,0.20)",color:"rgba(255,255,255,0.86)"},children:[n.jsx("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{background:"rgba(120,180,255,0.95)",boxShadow:"0 0 0 4px rgba(120,180,255,0.10), 0 0 24px rgba(120,180,255,0.40)"}}),T.label]},T.key))}),n.jsx("div",{className:"border-t border-white/10 pt-3 grid gap-2.5",children:[{label:"Inputs",value:o.inputs},{label:"Outputs",value:o.outputs},{label:"Primary Function",value:o.fn}].map(T=>n.jsxs("div",{className:"flex justify-between gap-3 text-xs text-white/70 px-2.5 py-2.5 rounded-xl",style:{border:"1px solid rgba(255,255,255,0.10)",background:"rgba(255,255,255,0.03)"},children:[n.jsx("span",{className:"font-bold text-white/90",children:T.label}),n.jsx("span",{className:"text-right",children:T.value})]},T.label))}),n.jsxs("div",{className:"mt-auto text-xs text-white/58 flex items-center gap-2 flex-wrap",children:[n.jsx("span",{className:"font-mono text-[11px] px-2 py-0.5 rounded-lg border border-white/16",
42style:{background:"rgba(0,0,0,0.22)",color:"rgba(255,255,255,0.75)"},children:"Hover"}),"preview",n.jsx("span",{className:"font-mono text-[11px] px-2 py-0.5 rounded-lg border border-white/16",style:{background:"rgba(0,0,0,0.22)",color:"rgba(255,255,255,0.75)"},children:"Click"}),"lock",n.jsx("span",{className:"font-mono text-[11px] px-2 py-0.5 rounded-lg border border-white/16",style:{background:"rgba(0,0,0,0.22)",color:"rgba(255,255,255,0.75)"},children:"Scenario"}),"drives the loop"]})]})]})]}),n.jsx("style",{children:` 43 @keyframes acl-dashMove { 44 from { stroke-dashoffset: 0; } 45 to { stroke-dashoffset: -940; } 46 } 47 @keyframes acl-corePulse { 48 0% { opacity: 0; transform: scale(0.88); } 49 25% { opacity: 0.45; } 50 100% { opacity: 0; transform: scale(1.04); } 51 } 52 `})]})}function nd(){const e=w.useRef(null),t=w.useRef(null),s=w.useRef([]),i=w.useRef("chaos"),r=w.useRef(0),[a,o]=w.useState("chaos"),l=w.useCallback((d,h)=>{const m=[];for(let p=0;p<80;p++)m.push({x:Math.random()*d,y:Math.random()*h,vx:(Math.random()-.5)*.8,vy:(Math.random()-.5)*.8});s.current=m},[]);w.useEffect(()=>{const d=e.current,h=t.current;if(!d||!h)return;const m=d.getContext("2d"),p=()=>{d.width=h.offsetWidth,d.height=h.offsetHeight,s.current.length===0&&l(d.width,d.height)};p(),window.addEventListener("resize",p);const j=()=>{const b=d.width,y=d.height,f=i.current;m.clearRect(0,0,b,y);const x=s.current;for(const v of x)f==="chaos"&&(v.x+=v.vx,v.y+=v.vy,(v.x<0||v.x>b)&&(v.vx*=-1),(v.y<0||v.y>y)&&(v.vy*=-1)),f==="coherence"&&(v.x+=(b/2-v.x)*.01,v.y+=(y/2-v.y)*.01),f==="enterprise"&&(v.y+=(y/2-v.y)*.02),m.beginPath(),m.arc(v.x,v.y,3,0,Math.PI*2),m.fillStyle="rgba(120,180,255,0.9)",m.fill();for(let v=0;v<x.length;v++)for(let M=v+1;M<x.length;M++){const S=x[v].x-x[M].x,k=x[v].y-x[M].y,g=Math.sqrt(S*S+k*k);g<120&&(m.strokeStyle=`rgba(120,180,255,${(1-g/120)*.4})`,m.beginPath(),m.moveTo(x[v].x,x[v].y),m.lineTo(x[M].x,x[M].y),m.stroke())}r.current=requestAnimationFrame(j)};return j(),()=>{window.removeEventListener("resize",p),cancelAnimationFrame(r.current)}},[l]);const c=d=>{i.current=d,o(d)},u=[{key:"chaos",label:"Simulate Fragmentation"},{key:"coherence",label:"Simulate Coherence"},{key:"enterprise",label:"Enterprise Alignment"}];return n.jsxs("div",{className:"w-full",children:[n.jsxs("div",{ref:t,className:"relative w-full h-[400px] sm:h-[500px] lg:h-[560px] rounded-2xl overflow-hidden",style:{background:"rgba(0,0,0,0.15)",border:"1px solid rgba(255,255,255,0.08)"},children:[n.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-40",style:{background:"linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0/ 60px 60px, linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0/ 60px 60px"}}),n.jsx("canvas",{ref:e,className:"absolute inset-0"})]}),n.jsx("div",{className:"mt-5 flex flex-wrap gap-2.5",children:u.map(d=>n.jsx("button",{onClick:()=>c(d.key),className:"px-3.5 py-2.5 rounded-full text-xs text-white cursor-pointer transition-all duration-200 hover:-translate-y-px",style:{border:a===d.key?"1px solid rgba(120,180,255,0.6)":"1px solid rgba(255,255,255,0.2)",background:a===d.key?"rgba(120,180,255,0.1)":"rgba(255,255,255,0.05)"},children:d.label},d.key))})]})}function Ii(e,t,s=!0){if(!s)return`M ${e.x} ${e.y} L ${t.x} ${t.y}`;const i=500,r=350,a=(e.x+t.x)/2,o=(e.y+t.y)/2,l=.22,c=a+(i-a)*l,u=o+(r-o)*l;return`M ${e.x} ${e.y} Q ${c} ${u} ${t.x} ${t.y}`}function pe({config:e,className:t=""}){const s=w.useRef(null),[i,r]=w.useState(null),[a,o]=w.useState(null),l=w.useRef(0),c=w.useRef(0),u=w.useMemo(()=>Object.fromEntries(e.nodes.map(f=>[f.id,f])),[e.nodes]),d=e.meta.bendToCenter!==!1,h=w.useMemo(()=>e.edges.map(([f,x])=>({u:f,v:x,d:Ii(u[f],u[x],d)})),[e.edges,u,d]),m=w.useMemo(()=>(e.pulses||[]).map(f=>({...f,d:Ii(u[f.from],u[f.to],d)})),[e.pulses,u,d]),p=w.useCallback(f=>{a||r(f)},[a]),j=w.useCallback(()=>{a||r(null)},[a]),b=w.useCallback(f=>{a===f.id?(o(null),r(null)):(o(f.id),r(f))},[a]);w.useEffect(()=>{const f=s.current;if(!f)return;const x=f.querySelectorAll("[data-pulse]"),v=f.querySelector("[data-core-halo]");c.current=0;function M(){c.current+=.016;const S=c.current;if(v&&e.meta.coreBreath!==!1){const k=.28+(Math.sin(S*1.2)+1)/2*.14;
52v.setAttribute("opacity",k.toFixed(3))}x.forEach((k,g)=>{const A=k.getTotalLength(),T=parseFloat(k.dataset.speed||"0.22"),C=parseFloat(k.dataset.fade||"1.3"),F=parseFloat(k.dataset.phase||"0"),$=(S*T+F)%1*A;k.setAttribute("stroke-dashoffset",(-$).toFixed(2));const oe=.22+.35*Math.sin(S*C+g);k.setAttribute("opacity",Math.max(0,oe).toFixed(3))}),l.current=requestAnimationFrame(M)}return l.current=requestAnimationFrame(M),()=>cancelAnimationFrame(l.current)},[e]);const y=(i==null?void 0:i.id)||null;return n.jsxs("div",{className:`rounded-[18px] border border-white/10 bg-gradient-to-b from-white/[0.06] to-white/[0.03] overflow-hidden relative ${t}`,children:[n.jsx("div",{className:"absolute inset-[-2px] bg-[radial-gradient(700px_200px_at_50%_0%,rgba(120,180,255,0.14),transparent_55%)] pointer-events-none"}),n.jsx("div",{className:"relative m-2.5 rounded-[14px] border border-white/10 bg-black/[0.18] overflow-hidden p-2.5",children:n.jsxs("div",{className:"flex flex-col lg:flex-row gap-2.5",children:[n.jsxs("div",{className:"relative rounded-xl border border-white/10 bg-black/[0.22] overflow-hidden lg:flex-[1_1_0%] lg:min-h-[600px]",children:[n.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-[0.55]",style:{background:"linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px) 0 0/ 56px 56px, linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0/ 56px 56px",maskImage:"radial-gradient(circle at 50% 48%, black 62%, transparent 88%)",WebkitMaskImage:"radial-gradient(circle at 50% 48%, black 62%, transparent 88%)"}}),n.jsxs("svg",{ref:s,viewBox:"75 30 850 640",className:"w-full h-auto block",children:[n.jsx("defs",{children:n.jsxs("filter",{id:`glow_${e.meta.id}`,children:[n.jsx("feGaussianBlur",{stdDeviation:"3.5",result:"b"}),n.jsxs("feMerge",{children:[n.jsx("feMergeNode",{in:"b"}),n.jsx("feMergeNode",{in:"SourceGraphic"})]})]})}),n.jsx("g",{children:h.map((f,x)=>n.jsx("path",{d:f.d,fill:"none",stroke:y&&(f.u===y||f.v===y)?"rgba(120,180,255,0.40)":"rgba(120,180,255,0.18)",strokeWidth:y&&(f.u===y||f.v===y)?2.6:2},`edge-${x}`))}),n.jsx("g",{children:m.map((f,x)=>n.jsx("path",{"data-pulse":"","data-speed":f.speed||.22,"data-fade":f.fade||1.3,"data-
52phase":Math.random(),d:f.d,fill:"none",stroke:"rgba(120,180,255,0.72)",strokeWidth:f.width||3,strokeLinecap:"round",strokeDasharray:`${f.dash||26} 900`,opacity:"0",filter:`url(#glow_${e.meta.id})`},`pulse-${x}`))}),n.jsx("g",{children:e.nodes.map(f=>{const x=f.core;return n.jsxs("g",{className:"cursor-pointer",onMouseEnter:()=>p(f),onMouseLeave:j,onClick:()=>b(f),children:[x&&n.jsx("circle",{"data-core-halo":"",cx:f.x,cy:f.y,r:f.r+(f.halo||18),fill:"none",stroke:"rgba(120,180,255,0.10)",strokeWidth:f.haloWidth||10,opacity:.42}),!x&&n.jsx("circle",{cx:f.x,cy:f.y,r:f.r+(f.halo||18),fill:"none",stroke:"rgba(120,180,255,0.10)",strokeWidth:f.haloWidth||10,opacity:.22}),n.jsx("circle",{cx:f.x,cy:f.y,r:f.r,fill:"rgba(255,255,255,0.05)",stroke:x?"rgba(120,180,255,0.55)":"rgba(255,255,255,0.14)",strokeWidth:2,filter:`url(#glow_${e.meta.id})`}),n.jsx("circle",{cx:f.x,cy:f.y,r:2.2,fill:"rgba(120,180,255,0.95)"}),n.jsx("text",{x:f.x,y:f.y+f.r+22,textAnchor:"middle",fontSize:f.labelSize||12,fontWeight:760,fill:"rgba(255,255,255,0.90)",children:f.label}),f.sub&&n.jsx("text",{x:f.x,y:f.y+f.r+40,textAnchor:"middle",fontSize:11,fontWeight:600,fill:"rgba(255,255,255,0.68)",children:f.sub})]},f.id)})})]})]}),n.jsxs("div",{className:"hidden lg:flex lg:w-[260px] flex-shrink-0 flex-col gap-1.5",children:[n.jsxs("div",{className:"rounded-lg border border-white/[0.08] bg-black/[0.18] px-3 py-2",children:[n.jsx("p",{className:"text-white/50 text-[10px] uppercase tracking-wider font-semibold m-0",children:i?"Selected":"Interactive"}),n.jsx("p",{className:"text-white text-[13px] font-bold mt-0.5 leading-tight",children:i?i.label:"Hover a node"}),((i==null?void 0:i.sub)||!i&&e.meta.sideIntro)&&n.jsx("p",{className:"text-white/60 text-[11px] leading-snug mt-1 m-0",children:i?i.sub:e.meta.sideIntro})]}),e.nodes.map(f=>n.jsxs("button",{onClick:()=>b(f),onMouseEnter:()=>p(f),onMouseLeave:j,className:`w-full text-left rounded-lg border px-3 py-2 transition-all duration-200 cursor-pointer ${y===f.id?"border-blue-400/40 bg-blue-500/[0.12]":"border-white/[0.06] bg-black/[0.12] hover:border-white/[0.14] hover:bg-white/[0.04]"}`,children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("span",{className:`w-1.5 h-1.5 rounded-full flex-shrink-0 ${f.core?"bg-blue-400":"bg-white/40"}`}),n.jsx("span",{className:`text-[12px] font-semibold leading-tight ${y===f.id?"text-blue-300":"text-white/80"}`,children:f.label})]}),y===f.id&&f.role&&n.jsx("p",{className:"text-white/50 text-[10px] leading-snug mt-1 ml-3.5",children:f.role})]},f.id)),n.jsxs("div",{className:"mt-auto rounded-lg border border-white/[0.06] bg-black/[0.12] px-3 py-1.5 flex items-center gap-2 text-white/40 text-[10px]",children:[n.jsx("span",{className:"font-mono text-[9px] px-1 py-0.5 rounded border border-white/[0.12] bg-black/[0.18] text-white/60",children:"Hover"}),"highlight",n.jsx("span",{className:"font-mono text-[9px] px-1 py-0.5 rounded border border-white/[0.12] bg-black/[0.18] text-white/60",children:"Click"}),"lock"]})]})]})})]})}const rd={meta:{id:"H",title:"Neural Flow Core",sideIntro:"Stable pathway view: how signals become decisions, and decisions become coaching actions.",coreId:"decision"},nodes:[{id:"decision",x:500,y:350,r:42,core:!0,label:"DECISION CORE",sub:"policy + next action",role:"Action policy layer",inputs:"Context + constraints",outputs:"Next best action"},{id:"context",x:500,y:130,r:24,label:"Context",sub:"state vector",role:"Current state model",inputs:"Signals",outputs:"State representation"},{id:"memory",x:720,y:230,r:24,label:"Memory",sub:"history",role:"Personal history",inputs:"Past actions + outcomes",outputs:"Personalization"},{id:"inference",x:760,y:430,r:24,label:"Inference",sub:"patterns",role:"Pattern detection",inputs:"State + memory",outputs:"Insights"},{id:"safety",x:600,y:565,r:24,label:"Safety",sub:"guardrails",role:"Risk constraints",inputs:"Policy + checks",outputs:"Safe boundaries"},{id:"nba",x:400,y:565,r:24,label:"Next Action",sub:"execution",role:"Action delivery",inputs:"Decision",outputs:"Steps + protocol"},{id:"tools",x:240,y:430,r:24,label:"Tooling",sub:"library",role:"Intervention options",inputs:"Protocols",outputs:"Selectable actions"},{id:"delivery",x:280,y:230,r:24,label:"Delivery",sub:"voice/chat",role:"User interface",input
52s:"Next action",outputs:"Coaching moment"}],edges:[["context","decision"],["memory","decision"],["inference","decision"],["safety","decision"],["tools","decision"],["decision","nba"],["decision","delivery"],["tools","nba"],["nba","delivery"],["memory","inference"],["context","inference"]],pulses:[{from:"context",to:"decision",speed:.22},{from:"memory",to:"decision",speed:.21},{from:"inference",to:"decision",speed:.24},{from:"safety",to:"decision",speed:.2},{from:"decision",to:"nba",speed:.26},{from:"nba",to:"delivery",speed:.23}]},od={meta:{id:"D",title:"Precision Activation Library",sideIntro:"Stable library. Dynamic selection. Flow becomes trainable as a system.",coreId:"selector"},nodes:[{id:"selector",x:500,y:350,r:42,core:!0,label:"SELECTOR CORE",sub:"state â intervention",role:"Matching engine",inputs:"State + goal + constraints",outputs:"Best-fit protocol"},{id:"breath",x:500,y:140,r:24,label:"Breathwork",sub:"nervous system",role:"Physiology regulation",inputs:"Arousal level",outputs:"Downshift / energize"},{id:"mind",x:720,y:230,r:24,label:"Mindset",sub:"reframing",role:"Meaning shift",inputs:"Emotion + narrative",outputs:"Cognitive clarity"},{id:"somatic",x:760,y:430,r:24,label:"Somatic",sub:"body cues",role:"Embodied regulation",inputs:"Tension + posture",outputs:"Stability"},{id:"focus",x:600,y:565,r:24,label:"Focus",sub:"execution",role:"Attention engineering",inputs:"Task + distractions",outputs:"Deep work"},{id:"recovery",x:400,y:565,r:24,label:"Recovery",sub:"restore",role:"Baseline reduction",inputs:"Fatigue + overload",outputs:"Reset"},{id:"programs",x:240,y:430,r:24,label:"Programs",sub:"multi-day",role:"Habit installation",inputs:"Goals + timeframe",outputs:"Training paths"},{id:"delivery",x:280,y:230,r:24,label:"Delivery",sub:"voice/chat/push",role:"Guidance surface",inputs:"Selected tool",outputs:"Real-time coaching"}],edges:[["selector","breath"],["selector","mind"],["selector","somatic"],["selector","focus"],["selector","recovery"],["selector","programs"],["selector","delivery"],["delivery","breath"],["delivery","mind"],["delivery","focus"]],pulses:[{from:"selector",to:"delivery",speed:.24},{from:"selector",to:"breath",speed:.2},{from:"selector",to:"focus",speed:.22},{from:"selector",to:"mind",speed:.21},{from:"selector",to:"recovery",speed:.23}]},ad={meta:{id:"C",title:"Living Performance Memory",sideIntro:"Memory is the multiplier. It turns coaching from reactive to adaptive.",coreId:"mem"},nodes:[{id:"mem",x:500,y:350,r:44,core:!0,label:"PERFORMANCE MEMORY",sub:"living coaching context",role:"Unified memory layer",inputs:"All user signals",outputs:"Personalized coaching context"},{id:"assess",x:500,y:140,r:24,label:"Assessments",sub:"baseline & progress",role:"Structured measurement",inputs:"Questionnaires",outputs:"Scores + trends"},{id:"journal",x:720,y:230,r:24,label:"Journaling",sub:"meaning & reflection",role:"Narrative memory",inputs:"Text + voice notes",outputs:"Themes + patterns"},{id:"health",x:760,y:430,r:24,label:"Health Signals",sub:"physiology",role:"Body-state input",inputs:"Sleep, HRV, activity",outputs:"Readiness + stress"},{id:"goals",x:600,y:565,r:24,label:"Goals",sub:"direction",role:"Intent layer",inputs:"Targets + priorities",outputs:"Focus selection"},{id:"patterns",x:400,y:565,r:24,label:"Patterns",sub:"behavior loops",role:"Habit inference",inputs:"Actions + streaks",outputs:"Predictions"},{id:"reports",x:240,y:430,r:24,label:"Reports",sub:"visibility",role:"Insight surfacing",inputs:"Memory + outcomes",outputs:"Dashboards"},{id:"policy",x:280,y:230,r:24,label:"Decision Policy",sub:"next action",role:"Action selection",inputs:"Memory + state",outputs:"Coaching steps"}],edges:[["assess","mem"],["journal","mem"],["health","mem"],["goals","mem"],["patterns","mem"],["reports","mem"],["mem","policy"],["policy","reports"],["policy","goals"],["mem","patterns"]],pulses:[{from:"assess",to:"mem",speed:.22},{from:"journal",to:"mem",speed:.23},{from:"health",to:"mem",speed:.24},{from:"patterns",to:"mem",speed:.21},{from:"mem",to:"policy",speed:.25}]},ld={meta:{id:"E",title:"Hybrid Intelligence Loop",sideIntro:"This is how you get cutting-edge without losing the human standard: a real quality loop.",coreId:"ai"},nodes:[{id:"ai",x:500,y:350,r:42,core:!0,label:"AI COACHING CORE",sub:"scale + precision",role:"Always-on coaching",inputs:"Signals + memory",outputs:"Interventions + guidance"},{id:"experts",x:500,y:140,r:26,label:"Expert Coaches",sub:"human standard",role:"Method stewardship",inputs:"Outcomes + cases",outputs:"Upgraded protocols"},{id:"method",x:720,y:230,r:24,label:"Methodology",sub:"frameworks",role:"Coaching system design",inputs:"Research + expertise",outputs:"Rules + programs"},{id:"qa",x:760,y:430,r:24,label:"QA Review",sub:"quality",role:"Quality assurance",input
52s:"Sessions + outputs",outputs:"Fixes + improvements"},{id:"ethics",x:600,y:565,r:24,label:"Guardrails",sub:"ethics + safety",role:"Safety constraints",inputs:"Risk patterns",outputs:"Limits + escalations"},{id:"research",x:400,y:565,r:24,label:"Research",sub:"evidence",role:"Evidence pipeline",inputs:"Studies + findings",outputs:"Validated updates"},{id:"training",x:240,y:430,r:24,label:"Training Data",sub:"curation",role:"Knowledge curation",inputs:"Library + feedback",outputs:"Clean inputs"},{id:"audit",x:280,y:230,r:24,label:"Audit",sub:"integrity",role:"Traceability",inputs:"Logs + outcomes",outputs:"Accountability"}],edges:[["experts","method"],["method","ai"],["ai","qa"],["qa","ethics"],["ethics","ai"],["research","method"],["training","ai"],["audit","qa"],["audit","experts"],["ai","audit"]],pulses:[{from:"experts",to:"method",speed:.22},{from:"method",to:"ai",speed:.24},{from:"ai",to:"qa",speed:.23},{from:"qa",to:"ethics",speed:.21},{from:"ethics",to:"ai",speed:.25}]},cd={meta:{id:"G",title:"Coherence at Scale",sideIntro:"Macro view: coaching infrastructure increases the probability of coherent outcomes at scale.",coreId:"infra"},nodes:[{id:"infra",x:500,y:350,r:44,core:!0,label:"COACHING INFRA",sub:"AI + tools + access",role:"Scalable infrastructure",inputs:"Models + content + data",outputs:"Coherence support at scale"},{id:"ind",x:500,y:130,r:26,label:"Individual",sub:"self-regulation",role:"Personal coherence",inputs:"State + habits",outputs:"Resilience"},{id:"team",x:730,y:240,r:26,label:"Team",sub:"coordination",role:"Group coherence",inputs:"Communication",outputs:"Trust + execution"},{id:"org",x:740,y:470,r:26,label:"Organization",sub:"culture",role:"Org coherence",inputs:"Systems + norms",outputs:"Healthy performance"},{id:"soc",x:500,y:590,r:26,label:"Society",sub:"stability",role:"Societal coherence",inputs:"Institutions",outputs:"Constructive progress"},{id:"unity",x:270,y:470,r:24,label:"FlowCode Foundation",sub:"coherence fund",role:"Access + infrastructure",inputs:"Contributions",outputs:"Free programs + research"},{id:"access",x:260,y:240,r:24,label:"Access",sub:"democratized",role:"Distribution layer",inputs:"Tech delivery",outputs:"Availability"},{id:"feedback",x:270,y:350,r:22,label:"Feedback",sub:"measure",role:"Impact measurement",inputs:"Outcomes",outputs:"Improvements"}],edges:[["infra","ind"],["infra","team"],["infra","org"],["infra","soc"],["unity","infra"],["access","infra"],["feedback","infra"],["unity","access"],["soc","feedback"],["org","feedback"],["team","feedback"],["ind","feedback"]],pulses:[{from:"unity",to:"infra",speed:.22},{from:"infra",to:"ind",speed:.2},{from:"infra",to:"team",speed:.21},{from:"infra",to:"org",speed:.22},{from:"infra",to:"soc",speed:.24},{from:"soc",to:"feedback",speed:.18}]},dd={meta:{id:"F",title:"Shared Domain Intelligence",sideIntro:"Domains remain distinct, but benefit from the same memory, event spine, and activation logic.",coreId:"core"},nodes:[{id:"core",x:500,y:350,r:44,core:!0,label:"SHARED INTELLIGENCE",sub:"event spine + memory",role:"Shared platform brain",inputs:"All domain signals",outputs:"Reusable intelligence"},{id:"life",x:770,y:230,r:26,label:"FlowCode Life",sub:"personal growth",role:"Personal domain",inputs:"Daily habits + emotion",outputs:"Coherence routines"},{id:"enterprise",x:770,y:470,r:26,label:"FlowCode Enterprise",sub:"teams",role:"Org domain",inputs:"Engagement + analytics",outputs:"Culture + performance"},{id:"sports",x:520,y:135,r:26,label:"FlowCode Sports",sub:"performance",role:"Sport domain",inputs:"Training + pressure",outputs:"Priming + resets"},{id:"memory",x:330,y:210,r:22,label:"Memory",sub:"context",role:"Personalization layer",inputs:"Signals",outputs:"Better decisions"},{id:"activation",x:330,y:350,r:22,label:"Activation",sub:"triggers",role:"Intervention engine",inputs:"State + goal",outputs:"Tools + protocols"},{id:"delivery",x:330,y:490,r:22,label:"Delivery",sub:"voice/chat/push",role:"Interface layer",inputs:"Selected actions",outputs:"Coaching moments"},{id:"ledger",x:500,y:590,r:22,label:"Event Ledger",sub:"trust",role:"Event integrity",inputs:"Events",outputs:"Verified stream"}],edges:[["core","life"],["core","enterprise"],["core","sports"],["memory","core"],["activation","core"],["delivery","core"],["ledger","core"],["delivery","life"],["delivery","enterprise"],["delivery","sports"],["activation","life"],["activation","enterprise"],["activation","sports"]],pulses:[{from:"core",to:"life",speed:.21},{from:"core",to:"enterprise",speed:.22},{from:"core",to:"sports",speed:.23},{from:"memory",to:"core",speed:.2},{from:"activation",to:"core",speed:.24}]},ud="/assets/flow-architecture-CcV3E9_F.png",hd="/assets/vision-section-hero-BljAepoD.webp";function Dd(){return n.jsxs("div",{className:"min-h-screen text-white relative hero-gradient-blue",children:[n.jsx(xr,{title:"AI Architecture â Neural Flow Infrastru
52cture | FlowCode by FlowCode Foundation (Non-Profit)",description:"Explore FlowCode's AI architecture built by FlowCode Foundation (non-profit): 5 interconnected subsystems including Voice AI, Coaching Intelligence, Living Memory, and Precision Activation â designed to optimize flow states at scale.",keywords:"AI coaching architecture, neural flow system, voice AI coaching, coaching intelligence, adaptive coaching AI, human performance technology, flow state AI infrastructure, non-profit AI technology, FlowCode Foundation, conscious AI design",type:"website",breadcrumbs:[{name:"Home",url:"https://theflowcode.com"},{name:"AI Architecture",url:"https://theflowcode.com/ai-architecture"}],modifiedDate:"2026-02-22"}),n.jsx(gr,{}),n.jsx(fr,{variant:"blue"}),n.jsx("div",{className:"h-[72px]"}),n.jsxs("section",{className:"relative py-12 sm:py-20 md:py-28 px-6 overflow-hidden",children:[n.jsxs("div",{className:"absolute inset-0 z-0",children:[n.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`url(${ud})`,backgroundSize:"cover",backgroundPosition:"center"}}),n.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-gray-950/90 via-gray-900/80 to-gray-950/95"})]}),n.jsxs("div",{className:"relative z-10 max-w-5xl mx-auto text-center",children:[n.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-blue-400/30 bg-blue-500/10 px-4 py-1.5 text-xs text-blue-300 mb-6",children:[n.jsx(bs,{className:"w-3.5 h-3.5"}),"FlowCode AI Architecture"]}),n.jsxs("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-extrabold font-poppins mb-6",children:["Scaling Flow.",n.jsx("br",{}),"Democratizing Human Potential."]}),n.jsx("p",{className:"text-lg md:text-xl text-gray-300 max-w-3xl mx-auto leading-relaxed",children:"Artificial intelligence is reshaping civilization. FlowCode uses that same power to reshape human development."})]})]}),n.jsxs("section",{className:"relative py-10 sm:py-14 px-6 bg-gradient-to-b from-gray-950/80 to-blue-950/50 border-t border-b border-blue-400/10",children:[n.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:n.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[300px] bg-blue-500/5 rounded-full blur-[100px]"})}),n.jsxs("div",{className:"relative z-10 max-w-3xl mx-auto text-center",children:[n.jsx("p",{className:"text-base sm:text-lg text-gray-300 leading-relaxed mb-6",children:"We are building the most advanced AI-powered flow coaching infrastructure â designed not only to optimize individuals, but to help create the conditions where flow can emerge across life, work, sport, and society."}),n.jsxs("div",{className:"inline-block rounded-xl px-8 py-5 bg-gradient-to-r from-blue-600/20 via-blue-500/15 to-blue-600/20 border border-blue-400/30 backdrop-blur-sm",children:[n.jsx("p",{className:"text-blue-300 text-sm sm:text-base italic",children:"Technology allows us to scale intelligence."}),n.jsx("p",{className:"text-white font-bold text-base sm:text-lg mt-1",children:"FlowCode allows us to scale coherence."})]})]})]}),n.jsx("section",{className:"py-10 sm:py-16 md:py-20 px-6 bg-gradient-to-b from-blue-950/50 to-blue-900/40",children:n.jsxs("div",{className:"max-w-5xl mx-auto",children:[n.jsxs("div",{className:"text-center mb-12",children:[n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-4",children:"Why Architecture Matters"}),n.jsx("div",{className:"flex justify-center mb-6",children:n.jsx("div",{className:"w-24 h-1 bg-gradient-to-r from-transparent via-blue-400 to-transparent"})}),n.jsx("p",{className:"text-lg text-gray-300 max-w-3xl mx-auto leading-relaxed",children:"Flow is not random inspiration. It emerges under specific psychological and physiological conditions."})]}),n.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-5 gap-4 mb-12",children:["Clear goals","Emotional regulation","Feedback loops","Challenge-skill alignment","Reduced internal noise"].map(e=>n.jsxs("div",{className:"glass-card-blue rounded-xl p-4 border border-blue-400/20 text-center hover:border-blue-400/40 transition-all",children:[n.jsx(fe,{className:"w-5 h-5 text-blue-400 mx-auto mb-2"}),n.jsx("p",{className:"text-white text-sm font-medium",children:e})]},e))}),n.jsxs("div",{className:"glass-card-blue rounded-2xl p-8 border border-blue-400/20",children:[n.jsx("p",{className:"text-gray-300 leading-relaxed mb-6",children:"Historically, access to these conditions was limited â available primarily through elite coaching, specialized environments, or years of mentorship. Technology changes that."}),n.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-4",children:["Democratize access to elite coaching methodologies","Scale emotional regulation training","Deliver adaptive feedback in real time","Make flow training universally accessible"].map((e,t)=>n.jsxs("div",{className:"flex items-start gap-2",children:[n.jsx(ys,{className:"w-4 h-4 text-blue-400 flex-shrink-0 mt-0.5"}),n.jsx("p",{className:"text-gray-300 text-sm",children:e})]},t))}),n.jsx("p",{className:"text-white font-bold mt-6 text-center",children:"FlowCode is the architecture that makes this possible."})]}),n.jsx("div",{className:"mt-12",children:n.jsx(pe,{config:rd})})]})}),n.jsx("section",{className:"py-10 sm:py-16 md:py-20 px-6 bg-gradient-to-b from-blue-950/50 to-blue-900/40",children:n.jsxs("div",{className:"max-w-7xl mx-auto",children:[n.jsxs("div",{className:"text-center mb-14",children:[n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-4",children:"The Multi-Layer AI Architecture Stack"}),n.jsx("div",{className:"flex justify-center mb-4",children:n.jsx("div",{className:"w-24 h-1 bg-gradient-to-r from-transparent via-blue-400 to-transparent"})}),n.jsx("p",{className:"text-gray-400",children:"FlowCode is built as a structured, modular intelligence system."})]}),n.jsx("div",{className:"flex justify-center mb-14",children:n.jsx(Zc,{size:"xl",accentGlowColor:"#66E3FF",showTagline:!0,embedded:!0,className:"w-full max-w-4xl"})}),n.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[{icon:n.jsx(As,{className:"w-6 h-6"}),layer:"Layer 1",title:"User Interface Layer",subtitle:"Voice + Chat + Web + Enterprise Portals",points:["Conversational AI interface","Low-friction onboarding","Multi-device access","Enterprise-ready dashboards"],tagline:"Accessible. Intuitive. Scalable."},{icon:n.jsx(vs,{className:"w-6 h-6"}
52),layer:"Layer 2",title:"AI Flow Core",subtitle:"Context Engine + Decision Intelligence",points:["Real-time contextual interpretation","Emotional state inference","Cognitive load detection","Next-best-action generation"],tagline:"Adaptive coaching logic â not static content."},{icon:n.jsx(Cr,{className:"w-6 h-6"}),layer:"Layer 3",title:"Adaptive Learning Engine",subtitle:"Behavioral Feedback + Personalization",points:["Longitudinal pattern tracking","Individual performance modeling","Habit reinforcement algorithms","Intervention refinement"],tagline:"Increasingly precise over time."},{icon:n.jsx(kr,{className:"w-6 h-6"}),layer:"Layer 4",title:"Data Intelligence Layer",subtitle:"Performance Memory Infrastructure",points:["Psychological assessments","Journaling pattern recognition","Health signal integration","Stress markers + goal tracking"],tagline:"Every signal becomes data. Every data point refines guidance."},{icon:n.jsx(ws,{className:"w-6 h-6"}),layer:"Layer 5",title:"Flow Activation Engine",subtitle:"Precision-Matched Interventions",points:["1000+ scientifically validated flow triggers","Breathwork + visualization protocols","3â15 min micro interventions","12-day installation programs"],tagline:"The right intervention, at the right time."},{icon:n.jsx(Pr,{className:"w-6 h-6"}),layer:"Layer 6",title:"Cloud Infrastructure",subtitle:"Security + Scale + Global Deployment",points:["Enterprise-grade architecture","Scalable API framework","White-label modularity","High-availability systems"],tagline:"Built for global adoption."}].map((e,t)=>n.jsxs("div",{className:"glass-card-blue rounded-2xl p-7 border border-blue-400/20 hover:border-blue-400/40 transition-all duration-300",children:[n.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{className:"w-11 h-11 rounded-xl bg-gradient-to-br from-blue-500/20 to-blue-600/20 border border-blue-400/30 flex items-center justify-center text-blue-400",children:e.icon}),n.jsx("span",{className:"text-blue-400/60 text-xs font-bold uppercase tracking-wider",children:e.layer})]}),n.jsx("h3",{className:"text-lg font-bold text-white mb-1",children:e.title}),n.jsx("p",{className:"text-blue-400 text-sm mb-4",children:e.subt
52itle}),n.jsx("div",{className:"space-y-2 mb-4",children:e.points.map((s,i)=>n.jsxs("div",{className:"flex items-start gap-2",children:[n.jsx(fe,{className:"w-3.5 h-3.5 text-blue-400/60 flex-shrink-0 mt-0.5"}),n.jsx("span",{className:"text-gray-400 text-xs",children:s})]},i))}),n.jsx("p",{className:"text-white/70 text-xs font-medium italic",children:e.tagline})]},t))})]})}),n.jsx("section",{className:"py-12 sm:py-20 md:py-24 px-6 bg-gradient-to-b from-blue-900/40 to-blue-950/50",children:n.jsxs("div",{className:"max-w-6xl mx-auto",children:[n.jsxs("div",{className:"text-center mb-10 sm:mb-16",children:[n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-4",children:"Five AI engines â one coherent coaching brain."}),n.jsx("div",{className:"flex justify-center",children:n.jsx("div",{className:"w-24 h-1 bg-gradient-to-r from-transparent via-blue-400 to-transparent"})})]}),n.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:[{icon:n.jsx(br,{className:"w-6 h-6"}),title:"Conversational Coach",subtitle:"Voice + Chat",desc:"Natural AI conversations with calm, contextual dialogue. Structured cognitive guidance with long-term context memory."},{icon:n.jsx(Sr,{className:"w-6 h-6"}),title:"Assessment Insight Engine",subtitle:"Psychometric Mapping",desc:"Psychometric mapping into actionable plans. Transforms assessment data into personalized coaching pathways."},{icon:n.jsx(Ts,{className:"w-6 h-6"}),title:"Flow Personality Reporting",subtitle:"Behavioral Dashboard",desc:"Weekly summaries + recalibration. Identifies patterns, trends, and opportunities for growth."},{icon:n.jsx(ws,{className:"w-6 h-6"}),title:"Notification Engine",subtitle:"Cadence + Tone + Deep Links",desc:"Intelligent nudges delivered at the right moment with the right tone â each linking directly to the relevant practice."},{icon:n.jsx(vr,{className:"w-6 h-6"}),title:"Weekly Email Summary Engine",subtitle:"Data-Grounded",desc:"Automated weekly reports grounded in real behavioral data â not generic content. Every insight is earned from actual engagement."}].map((e,t)=>n.jsxs("div",{className:"glass-card-blue rounded-2xl p-8 border border-blue-400/20 hover:border-blue-400/40 transition-all duration-300",children:[n.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-blue-500/20 to-blue-600/20 border border-blue-400/30 flex items-center justify-center mb-5 text-blue-400",children:e.icon}),n.jsx("h3",{className:"text-lg font-bold text-white mb-1",children:e.title}),n.jsx("p",{className:"text-blue-400 text-sm mb-3",children:e.subt
52itle}),n.jsx("p",{className:"text-gray-400 text-sm leading-relaxed",children:e.desc})]},t))}),n.jsx("div",{className:"mt-12",children:n.jsx(pe,{config:od})})]})}),n.jsx("section",{className:"py-12 sm:py-20 md:py-24 px-6 bg-gradient-to-b from-blue-950/50 to-blue-900/40",children:n.jsxs("div",{className:"max-w-6xl mx-auto",children:[n.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-blue-400/30 bg-blue-500/10 px-4 py-1.5 text-xs text-blue-300 mb-6",children:[n.jsx(Mr,{className:"w-3.5 h-3.5"}),"The Data Layer"]}),n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-6",children:"Memory + structure + real-world biometrics."}),n.jsx("p",{className:"text-lg text-gray-300 leading-relaxed mb-6",children:"FlowCode stores journal signals, goals, assessments, engagement events, report history, and behavioral trends so personalization is grounded in reality â not generic advice."}),n.jsx("p",{className:"text-gray-400 leading-relaxed mb-6",children:"In addition, FlowCode supports 500+ wearable integrations across the full health-tech stack, including EEG (brainwave activity), HRV (heart rate variability), sleep metrics, stress markers, recovery signals, movement tracking, and other biometric health data streams."}),n.jsxs("div",{className:"glass-card-blue rounded-xl p-6 border border-blue-400/20 mb-6",children:[n.jsx("p",{className:"text-blue-300 text-sm font-medium mb-2",children:"The Formula:"}),n.jsx("p",{className:"text-white font-bold",children:"Cognitive signals + emotional patterns + biometric data = unified state awareness"})]}),n.jsx("p",{className:"text-gray-400 text-sm italic",children:"Personalization = memory + structure + physiology + delivery."})]}),n.jsx("div",{className:"space-y-4",children:[{label:"Journal Signals",desc:"Longitudinal self-reflection engine with trend analysis"},{label:"Goal Tracking",desc:"Progress monitoring with AI-driven recalibration"},{label:"Assessment History",desc:"Psychometric data mapped to coaching plans"},{label:"Engagement Events",desc:"Usage patterns that inform coaching timing"},{label:"Behavioral Trends",desc:"Pattern recognition across all data streams"},{label:"Biometric Data",desc:"500+ wearable integrations for physiological awareness"}].map((e,t)=>n.jsxs("div",{className:"glass-card-blue rounded-xl p-5 border border-blue-400/20 flex items-start gap-4 hover:border-blue-400/40 transition-all duration-300",children:[n.jsx("div",{className:"w-8 h-8 rounded-lg bg-blue-500/20 flex items-center justify-center flex-shrink-0 text-blue-400",children:n.jsx(fe,{className:"w-4 h-4"})}),n.jsxs("div",{children:[n.jsx("h4",{className:"text-white font-semibold text-sm",children:e.label}),n.jsx("p",{className:"text-gray-400 text-xs",children:e.desc})]})]},t))})]}),n.jsx("div",{className:"mt-12",children:n.jsx(pe,{config:ad})})]})}),n.jsx("section",{className:"py-12 sm:py-20 md:py-24 px-6 bg-gradient-to-b from-blue-900/40 to-blue-950/50",children:n.jsxs("div",{className:"max-w-[1100px] mx-auto",children:[n.jsx(id,{}),n.jsx("div",{className:"mt-10 grid sm:grid-cols-2 lg:grid-cols-4 gap-4 text-left max-w-4xl mx-auto",children:["Constant recalibration","Compounding skill development","Reduced internal noise","Sustainable high performance"].map(e=>n.jsxs("div",{className:"flex items-start gap-2",children:[n.jsx(fe,{className:"w-4 h-4 text-blue-400 flex-shrink-0 mt-0.5"}),n.jsx("span",{className:"text-gray-300 text-sm",children:e})]},e))}),n.jsx("p",{className:"text-white/70 text-sm font-medium mt-6 italic text-center",children:"This is flow turned into a systematic process."})]})}),n.jsx("section",{className:"py-12 sm:py-20 md:py-24 px-6 bg-gradient-to-b from-blue-950/50 to-blue-900/40",children:n.jsxs("div",{className:"max-w-6xl mx-auto",children:[n.jsxs("div",{className:"text-center mb-10",children:[n.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-white/10 bg-white/5 px-4 py-1.5 text-xs text-white/70 mb-6",children:[n.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-blue-400"}),"FlowCode Brain Mesh"]}),n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-4",children:"Multiple AI brains. One fully automated growth engine."}),n.jsx("div",{className:"flex justify-center mb-6",children:n.jsx("div",{className:"w-24 h-1 bg-gradient-to-r from-transparent via-blue-400 to-transparent"})}),n.jsx("p",{className:"text-lg text-gray-300 max-w-3xl mx-auto leading-relaxed",children:"Every coaching domain operates as an autonomous AI brain â running sessions, generating reports, and engaging clients without manual intervention. The Core CRM brain unifies identity and events across every platform, then drives segmentation, automation, campaigns, and AI advisory â completely hands-off for coaches. Everything is always running, always adapting, always serving."})]}),n.jsx("div",{className:"flex justify-center",children:n.jsx("div",{className:"w-full max-w-[900px]",children:n.jsx(ed,{size:"xl",accentGlowColor:"#66E3FF",showTagline:!1,embedded:!0})})}),n.jsx("div",{className:"mt-8 text-center",children:n.jsx("p",{className:"text-white/65 text-sm italic",children:"One event spine. Unlimited coaching domains. Fully automated. Always adapting. Always serving."})}),n.jsx("div",{className:"mt-10 grid sm:grid-cols-2 lg:grid-cols-4 gap-4 text-left max-w-4xl mx-auto",children:["Fully automated coaching delivery","Cross-platform client intelligence","Hands-off for coaches â always running","Self-adapting engagement & campaigns"].map(e=>n.jsxs("div",{className:"flex items-start gap-2",children:[n.jsx(fe,{className:"w-4 h-4 text-blue-400 flex-shrink-0 mt-0.5"}),n.jsx("span",{className:"text-gray-300 text-sm",children:e})]},e))})]})}),n.jsx("section",{className:"py-10 sm:py-16 md:py-20 px-6 bg-gradient-to-b from-blue-950/50 to-blue-900/40",children:n.jsxs("div",{className:"max-w-5xl mx-auto",children:[n.jsxs("div",{className:"text-center mb-12",children:[n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-4",children:"Democratizing Flow at Scale"}),n.jsx("div",{className:"flex justify-center mb-6",children:n.jsx("div",{className:"w-24 h-1 bg-gradient-to-r from-transparent via-blue-400 to-transparent"})}),n.jsx("p",{className:"text-lg text-gray-300 max-w-3xl mx-auto leading-relaxed",children:"For most of human history, peak performance environments were scarce. Elite athletes, executives, and monastics had access. Now AI changes everything."})]}),n.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[n.jsxs("div",{className:"glass-card-blue rounded-2xl p-8 border border-blue-400/20",children:[n.jsx("h3",{className:"text-lg font-bold text-white mb-4",children:"AI Enables"}),n.jsx("div",{className:"space-y-3",children:["Mass personalization","Low-cost scalability","Continuous availability","Context-aware intervention"].map(e=>n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(ys,{className:"w-4 h-4 text-blue-400 flex-shrink-0"}),n.jsx("span",{className:"text-gray-300 text-sm",children:e})]},e))})]}),n.jsxs("div",{className:"glass-card-blue rounded-2xl p-8 border border-blue-400/20",children:[n.jsx("h3",{className:"text-lg font-bold text-white mb-4",children:"FlowCode Democratizes Access To"}),n.jsx("div",{className:"space-y-3",children:["Emotional regulation","Cognitive optimization","Purpose alignment","Peak performance training","Coherence development"].map(e=>n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(js,{className:"w-4 h-4 text-blue-400 flex-shrink-0"}),n.jsx("span",{className:"text-gray-300 text-sm",children:e})]},e))})]})]}),n.jsxs("div",{className:"mt-12",children:[n.jsx("h3",{className:"text-xl sm:text-2xl font-bold text-white mb-2",children:"Global Flow Grid"}),n.jsx("p",{className:"text-sm text-white/65 mb-5 max-w-[70ch]",children:"Technology enables scale. FlowCode enables coherence. Watch how individuals connect through the AI core â transforming noise into structured collective intelligence."}),n.jsx(nd,{})]}),n.jsx("p",{className:"text-center text-white font-bold mt-10",children:"Flow is no longer reserved for the privileged. It becomes universally trainable."})]})}),n.jsx("section",{className:"py-10 sm:py-16 md:py-20 px-6 bg-gradient-to-b from-blue-900/40 to-blue-950/50",children:n.jsxs("div",{className:"max-w-5xl mx-auto",children:[n.jsxs("div",{className:"text-center mb-12",children:[n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-4",children:"Creating Conditions for Flow A
52cross Systems"}),n.jsx("div",{className:"flex justify-center mb-6",children:n.jsx("div",{className:"w-24 h-1 bg-gradient-to-r from-transparent via-blue-400 to-transparent"})}),n.jsx("p",{className:"text-lg text-gray-300 max-w-3xl mx-auto",children:"Flow does not only exist in individuals. It emerges in teams, in organizations, in cultures."})]}),n.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-5 gap-4 mb-10",children:[{label:"Individual",desc:"Nervous system regulation"},{label:"Team",desc:"Performance alignment"},{label:"Enterprise",desc:"Analytics dashboards"},{label:"Organization",desc:"Engagement tracking"},{label:"Culture",desc:"Coherence systems"}].map(e=>n.jsxs("div",{className:"glass-card-blue rounded-xl p-5 border border-blue-400/20 text-center hover:border-blue-400/40 transition-all",children:[n.jsx("h4",{className:"text-white font-bold text-sm mb-1",children:e.label}),n.jsx("p",{className:"text-gray-400 text-xs",children:e.desc})]},e.label))}),n.jsxs("div",{className:"glass-card-blue rounded-2xl p-8 border border-blue-400/20 text-center",children:[n.jsx("p",{className:"text-gray-300 leading-relaxed mb-2",children:"When individuals regulate themselves, organizations stabilize."}),n.jsx("p",{className:"text-gray-300 leading-relaxed mb-4",children:"When organizations stabilize, conditions for collective flow improve."}),n.jsxs("div",{className:"flex flex-wrap justify-center gap-6 text-sm",children:[n.jsx("span",{className:"text-blue-400 font-medium",children:"Technology enables scale."}),n.jsx("span",{className:"text-blue-400 font-medium",children:"Coaching creates alignment."}),n.jsx("span",{className:"text-blue-400 font-medium",children:"Architecture creates sustainability."})]})]}),n.jsx("div",{className:"mt-12",children:n.jsx(pe,{config:cd})})]})}),n.jsx("section",{className:"py-10 sm:py-16 md:py-20 px-6 bg-gradient-to-b from-blue-950/50 to-blue-900/40",children:n.jsxs("div",{className:"max-w-5xl mx-auto",children:[n.jsxs("div",{className:"text-center mb-12",children:[n.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-blue-400/30 bg-blue-500/10 px-4 py-1.5 text-xs text-blue-300 mb-6",children:[n.jsx(wr,{className:"w-3.5 h-3.5"}),"AI + Elite Human Oversight"]}),n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-4",children:"Hybrid Intelligence Model"}),n.jsx("div",{className:"flex justify-center mb-6",children:n.jsx("div",{className:"w-24 h-1 bg-gradient-to-r from-transparent via-blue-400 to-transparent"})})]}),n.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[n.jsxs("div",{className:"glass-card-blue rounded-2xl p-8 border border-blue-400/20",children:[n.jsx("h3",{className:"text-lg font-bold text-white mb-2",children:"FlowCode Integrates"}),n.jsx("p",{className:"text-gray-500 text-sm mb-4",children:"AI provides scale and precision."}),n.jsx("div",{className:"space-y-3",children:["Advanced AI systems","Elite coaching methodologies","Neuroscience","Performance psychology","Flow science"].map(e=>n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(bs,{className:"w-4 h-4 text-blue-400 flex-shrink-0"}),n.jsx("span",{className:"text-gray-300 text-sm",children:e})]},e))})]}),n.jsxs("div",{className:"glass-card-blue rounded-2xl p-8 border border-blue-400/20",children:[n.jsx("h3",{className:"text-lg font-bold text-white mb-2",children:"Human Experts Ensure"}),n.jsx("p",{className:"text-gray-500 text-sm mb-4",children:"Humans provide wisdom and integrity."}),n.jsx("div",{className:"space-y-3",children:["Ethical standards","Coaching quality","Methodological depth","Continuous improvement","Scientific alignment"].map(e=>n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(js,{className:"w-4 h-4 text-blue-400 flex-shrink-0"}),n.jsx("span",{className:"text-gray-300 text-sm",children:e})]},e))})]})]}),n.jsx("p",{className:"text-center text-white font-bold mt-8",children:"This is hybrid intelligence â the future of coaching."}),n.jsx("div",{className:"mt-12",children:n.jsx(pe,{config:ld})})]})}),n.jsx("section",{className:"py-12 sm:py-20 md:py-24 px-6 bg-gradient-to-b from-blue-900/40 to-blue-950/50",children:n.jsxs("div",{className:"max-w-6xl mx-auto",children:[n.jsx("div",{className:"glass-card-blue rounded-2xl p-8 md:p-12 border border-blue-400/30",children:n.jsxs("div",{className:"grid md:grid-cols-2 gap-10 items-center",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-blue-400/30 bg-blue-500/10 px-4 py-1.5 text-xs text-blue-300 mb-6",children:[n.jsx(jr,{className:"w-3.5 h-3.5"}),"Scalable Ecosystem Architecture"]}),n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-4",children:"One Core Intelligence. Multiple Domains."}),n.jsx("p",{className:"text-lg text-gray-300 leading-relaxed mb-6",children:"The same AI backbone powers every module. Professional-grade coaching infrastru
52cture â your methodology, your brand, your AI."}),n.jsx("div",{className:"space-y-3 mb-8",children:["FlowCode Life","FlowCode Enterprise","FlowCode Sports","AI Coaching Twin (White-label platform)","FlowCode Foundation Infrastructure"].map((e,t)=>n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(fe,{className:"w-4 h-4 text-blue-400 flex-shrink-0"}),n.jsx("span",{className:"text-gray-300 text-sm",children:e})]},t))}),n.jsx("a",{href:"https://flowcode.team/coaches",target:"_blank",rel:"noopener noreferrer",children:n.jsx(mr,{className:"bg-gradient-to-r from-blue-500 to-blue-600 hover:from-blue-400 hover:to-blue-500 text-white px-8 py-3 font-bold rounded-xl shadow-lg shadow-blue-500/30",children:"Learn More"})})]}),n.jsx("div",{className:"grid grid-cols-2 gap-4",children:[{label:"Branded Portal",icon:n.jsx(As,{className:"w-5 h-5"})},{label:"AI Avatar",icon:n.jsx(vs,{className:"w-5 h-5"})},{label:"Client Analytics",icon:n.jsx(Ts,{className:"w-5 h-5"})},{label:"Knowledge Base",icon:n.jsx(Tr,{className:"w-5 h-5"})}].map(e=>n.jsxs("div",{className:"glass-card-blue rounded-xl p-6 border border-blue-400/20 text-center",children:[n.jsx("div",{className:"w-10 h-10 rounded-lg bg-blue-500/20 flex items-center justify-center mx-auto mb-3 text-blue-400",children:e.icon}),n.jsx("p",{className:"text-white font-semibold text-sm",children:e.label})]},e.label))})]})}),n.jsx("div",{className:"mt-12",children:n.jsx(pe,{config:dd})})]})}),n.jsx(yr,{}),n.jsx("section",{className:"py-10 sm:py-16 md:py-20 px-6 bg-gradient-to-b from-blue-950/50 to-blue-900/40",children:n.jsxs("div",{className:"max-w-5xl mx-auto",children:[n.jsxs("div",{className:"text-center mb-12",children:[n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-4",children:"The Future of Coaching"}),n.jsx("div",{className:"flex justify-center mb-6",children:n.jsx("div",{className:"w-24 h-1 bg-gradient-to-r from-transparent via-blue-400 to-transparent"})}),n.jsx("p",{className:"text-lg text-gray-300 max-w-3xl mx-auto",children:"Traditional coaching is limited by time, cost, human bandwidth, and geographic access. FlowCode removes those constraints."})]}),n.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-5 gap-4",children:[{label:"24/7",desc:"Always available"},{label:"Adaptive",desc:"Learns your patterns"},{label:"Data-informed",desc:"Grounded in reality"},{label:"Global",desc:"Scalable worldwide"},{label:"Evolving",desc:"Continuously improving"}].map(e=>n.jsxs("div",{className:"glass-card-blue rounded-xl p-5 border border-blue-400/20 text-center hover:border-blue-400/40 transition-all",children:[n.jsx("h4",{className:"text-white font-bold text-lg mb-1",children:e.label}),n.jsx("p",{className:"text-gray-400 text-xs",children:e.desc})]},e.label))}),n.jsxs("div",{className:"text-center mt-8",children:[n.jsx("p",{className:"text-gray-400",children:"Technology allows us to scale knowledge."}),n.jsx("p",{className:"text-white font-bold mt-1",children:"FlowCode allows us to scale human development."})]})]})}),n.jsx("section",{className:"py-12 sm:py-20 md:py-24 px-6 bg-gradient-to-b from-blue-900/40 to-blue-950/60",children:n.jsx("div",{className:"max-w-4xl mx-auto text-center",children:n.jsxs("div",{className:"glass-card-blue rounded-2xl border border-blue-400/30 relative overflow-hidden",children:[n.jsxs("div",{className:"relative",children:[n.jsx("img",{src:hd,alt:"The Vision â Infrastructure for Scalable Flow",className:"w-full h-48 sm:h-64 md:h-80 object-cover"}),n.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-[#0a1628]"})]}),n.jsxs("div",{className:"px-10 pb-10 md:px-14 md:pb-14 -mt-8 relative",children:[n.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-96 h-96 bg-gradient-to-b from-blue-500/10 to-transparent rounded-full blur-3xl"}),n.jsxs("div",{className:"relative z-10",children:[n.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-blue-400/30 bg-blue-500/10 px-4 py-1.5 text-xs text-blue-300 mb-8",children:[n.jsx(Ar,{className:"w-3.5 h-3.5"}),"Beyond Optimization â Toward Coherent Systems"]}),n.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-white mb-6",children:"The Vision"}),n.jsxs("div",{className:"space-y-3 mb-8 text-lg text-gray-300 leading-relaxed",children:[n.jsx("p",{children:"The infrastru
52cture for scalable flow."}),n.jsx("p",{children:"The architecture for adaptive human growth."}),n.jsx("p",{children:"The next evolution of coaching systems."})]}),n.jsxs("div",{className:"glass-card-blue rounded-xl p-6 border border-blue-400/20 mb-8 max-w-lg mx-auto",children:[n.jsx("p",{className:"text-gray-400 text-sm",children:"AI enables exponential capability."}),n.jsx("p",{className:"text-white font-bold mt-1",children:"FlowCode ensures exponential maturity grows with it."})]}),n.jsx("p",{className:"text-blue-300 text-sm italic",children:"This is not inspiration. It is infrastructure for the future of human performance."})]})]})]})})}),n.jsx(pr,{})]})}export{Dd as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.