1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,846932,e=>{"use strict";let t,i,s;var n,r=e.i(271645);let a=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=new Set(a),l=e=>180*e/Math.PI,h=e=>c(l(Math.atan2(e[1],e[0]))),u={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:h,rotateZ:h,skewX:e=>l(Math.atan(e[1])),skewY:e=>l(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},c=e=>((e%=360)<0&&(e+=360),e),d=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),m=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),p={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:d,scaleY:m,scale:e=>(d(e)+m(e))/2,rotateX:e=>c(l(Math.atan2(e[6],e[5]))),rotateY:e=>c(l(Math.atan2(-e[2],e[0]))),rotateZ:h,rotate:h,skewX:e=>l(Math.atan(e[4])),skewY:e=>l(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function f(e){return+!!e.includes("scale")}function g(e,t){let i,s;if(!e||"none"===e)return f(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=p,s=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=u,s=t}if(!s)return f(t);let r=i[t],a=s[1].split(",").map(y);return"function"==typeof r?r(a):a[r]}function y(e){return parseFloat(e.trim())}let x=e=>t=>"string"==typeof t&&t.startsWith(e),v=x("--"),b=x("var(--"),w=e=>!!b(e)&&T.test(e.split("/*")[0].trim()),T=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function j({top:e,left:t,right:i,bottom:s}){return{x:{min:t,max:i},y:{min:e,max:s}}}let P=(e,t,i)=>e+(t-e)*i;function k(e){return void 0===e||1===e}function A({scale:e,scaleX:t,scaleY:i}){return!k(e)||!k(t)||!k(i)}function S(e){return A(e)||M(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function M(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function C(e,t,i,s,n){return void 0!==n&&(e=s+n*(e-s)),s+i*(e-s)+t}function E(e,t=0,i=1,s,n){e.min=C(e.min,t,i,s,n),e.max=C(e.max,t,i,s,n)}function N(e,{x:t,y:i}){E(e.x,t.translate,t.scale,t.originPoint),E(e.y,i.translate,i.scale,i.originPoint)}function V(e,t){e.min=e.min+t,e.max=e.max+t}function R(e,t,i,s,n=.5){let r=P(e.min,e.max,n);E(e,t,i,r,s)}function D(e,t){R(e.x,t.x,t.scaleX,t.scale,t.originX),R(e.y,t.y,t.scaleY,t.scale,t.originY)}function I(e,t){return j(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(e.getBoundingClientRect(),t))}let L=new Set(["width","height","top","left","right","bottom",...a]),F=(e,t,i)=>i>t?t:i<e?e:i,B={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},O={...B,transform:e=>F(0,1,e)},_={...B,default:1},U=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),$=U("deg"),W=U("%"),H=U("px"),z=U("vh"),Y=U("vw"),X={...W,parse:e=>W.parse(e)/100,transform:e=>W.transform(100*e)},q=e=>t=>t.test(e),K=[B,H,W,$,Y,z,{test:e=>"auto"===e,parse:e=>e}],G=e=>K.find(q(e));e.i(247167);let Z=()=>{},J=()=>{},Q=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ee=e=>e===B||e===H,et=new Set(["x","y","z"]),ei=a.filter(e=>!et.has(e)),es={width:({x:e},{paddingLeft:t="0",paddingRight:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),height:({y:e},{paddingTop:t="0",paddingBottom:i="0"})=>e.max-e.min-parseFloat(t)-parseFloat(i),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>g(t,"x"),y:(e,{transform:t})=>g(t,"y")};es.translateX=es.x,es.translateY=es.y;let en=e=>e,er={},ea=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eo(e,t){let i=!1,s=!0,n={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=ea.reduce((e,i)=>(e[i]=function(e,t){let i=new Set,s=new Set,n=!1,r=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function h(t){a.has(t)&&(u.schedule(t),e()),l++,t(o)}let u={schedule:(e,t=!1,r=!1)=>{let o=r&&n?i:s;return t&&a.add(e),o.has(e)||o.add(e),e},cancel:e=>{s.delete(e),a.delete(e)},process:e=>{if(o=e,n){r=!0;return}
1n=!0,[i,s]=[s,i],i.forEach(h),t,l=0,i.clear(),n=!1,r&&(r=!1,u.process(e))}};return u}(r,t?i:void 0),e),{}),{setup:o,read:l,resolveKeyframes:h,preUpdate:u,update:c,preRender:d,render:m,postRender:p}=a,f=()=>{let r=er.useManualTiming?n.timestamp:performance.now();i=!1,er.useManualTiming||(n.delta=s?1e3/60:Math.max(Math.min(r-n.timestamp,40),1)),n.timestamp=r,n.isProcessing=!0,o.process(n),l.process(n),h.process(n),u.process(n),c.process(n),d.process(n),m.process(n),p.process(n),n.isProcessing=!1,i&&t&&(s=!1,e(f))};return{schedule:ea.reduce((t,r)=>{let o=a[r];return t[r]=(t,r=!1,a=!1)=>(!i&&(i=!0,s=!0,n.isProcessing||e(f)),o.schedule(t,r,a)),t},{}),cancel:e=>{for(let t=0;t<ea.length;t++)a[ea[t]].cancel(e)},state:n,steps:a}}let{schedule:el,cancel:eh,state:eu,steps:ec}=eo("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:en,!0),ed=new Set,em=!1,ep=!1,ef=!1;function eg(){if(ep){let e=Array.from(ed).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),i=new Map;t.forEach(e=>{let t,s=(t=[],ei.forEach(i=>{let s=e.getValue(i);void 0!==s&&(t.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),t);s.length&&(i.set(e,s),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=i.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}ep=!1,em=!1,ed.forEach(e=>e.complete(ef)),ed.clear()}function ey(){ed.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ep=!0)})}class ex{constructor(e,t,i,s,n,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(ed.add(this),em||(em=!0,el.read(ey),el.resolveKeyframes(eg))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:s}=this;if(null===e[0]){let n=s?.get(),r=e[e.length-1];if(void 0!==n)e[0]=n;else if(i&&t){let s=i.readValue(t,r);null!=s&&(e[0]=s)}void 0===e[0]&&(e[0]=r),s&&void 0===n&&s.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ed.delete(this)}cancel(){"scheduled"===this.state&&(ed.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let ev=e=>Math.round(1e5*e)/1e5,eb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,ew=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eT=(e,t)=>i=>!!("string"==typeof i&&ew.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),ej=(e,t,i)=>s=>{if("string"!=typeof s)return s;let[n,r,a,o]=s.match(eb);return{[e]:parseFloat(n),[t]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},eP={...B,transform:e=>Math.round(F(0,255,e))},ek={test:eT("rgb","red"),parse:ej("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:s=1})=>"rgba("+eP.transform(e)+", "+eP.transform(t)+", "+eP.transform(i)+", "+ev(O.transform(s))+")"},eA={test:eT("#"),parse:function(e){let t="",i="",s="",n="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),s=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),s=e.substring(3,4),n=e.substring(4,5),t+=t,i+=i,s+=s,n+=n),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}},transform:ek.transform},eS={test:eT("hsl","hue"),parse:ej("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:s=1})=>"hsla("+Math.round(e)+", "+W.transform(ev(t))+", "+W.transform(ev(i))+", "+ev(O.transform(s))+")"},eM={test:e=>ek.test(e)||eA.test(e)||eS.test(e),parse:e=>ek.test(e)?ek.parse(e):eS.test(e)?eS.parse(e):eA.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?ek.transform(e):eS.transform(e),getAnimatableNone:e=>{let t=eM.parse(e);return t.alpha=0,eM.transform(t)}},eC=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,eE="number",eN="color",eV=/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 eR(e){let t=e.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,a=t.replace(eV,e=>(eM.test(e)?(s.color.push(r),n.push(eN),i.push(eM.parse(e))):e.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(e)):(s.number.push(r),n.push(eE),i.push(parseFloat(e))),++r,"${}")).split("${}");return{values:i,split:a,indexes:s,types:n}}function eD(e){return eR(e).values}function eI(e){let{split:t,types:i}=eR(e),s=t.length;return e=>{let n="";for(let r=0;r<s;r++)if(n+=t[r],void 0!==e[r]){let t=i[r];t===eE?n+=ev(e[r]):t===eN?n+=eM.transform(e[r]):n+=e[r]}return n}}let eL=e=>"number"==typeof e?0:eM.test(e)?eM.getAnimatableNone(e):e,eF={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(eb)?.length||0)+(e.match(eC)?.length||0)>0},parse:eD,createTransformer:eI,getAnimatableNone:function(e){let t=eD(e);return eI(e)(t.map(eL))}},eB=new Set(["brightness","contrast","saturate","opacity"]);function eO(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[s]=i.match(eb)||[];if(!s)return e;let n=i.replace(s,""),r=+!!eB.has(t);return s!==i&&(r*=100),t+"("+r+n+")"}let e_=/\b([a-z-]*)\(.*?\)/gu,eU={...eF,getAnimatableNone:e=>{let t=e.match(e_);return t?t.map(eO).join(" "):e}},e$={...B,transform:Math.round},eW={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,radius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,backgroundPositionX:H,backgroundPositionY:H,rotate:$,rotateX:$,rotateY:$,rotateZ:$,scale:_,scaleX:_,scaleY:_,scaleZ:_,skew:$,skewX:$,
1skewY:$,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:O,originX:X,originY:X,originZ:H,zIndex:e$,fillOpacity:O,strokeOpacity:O,numOctaves:e$},eH={...eW,color:eM,backgroundColor:eM,outlineColor:eM,fill:eM,stroke:eM,borderColor:eM,borderTopColor:eM,borderRightColor:eM,borderBottomColor:eM,borderLeftColor:eM,filter:eU,WebkitFilter:eU},ez=e=>eH[e];function eY(e,t){let i=ez(e);return i!==eU&&(i=eF),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let eX=new Set(["auto","none","0"]);class eq extends ex{constructor(e,t,i,s,n){super(e,t,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let s=e[i];if("string"==typeof s&&w(s=s.trim())){let n=function e(t,i,s=1){J(s<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,r]=function(e){let t=Q.exec(e);if(!t)return[,];let[,i,s,n]=t;return[`--${i??s}`,n]}(t);if(!n)return;let a=window.getComputedStyle(i).getPropertyValue(n);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return w(r)?e(r,i,s+1):r}(s,t.current);void 0!==n&&(e[i]=n),i===e.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!L.has(i)||2!==e.length)return;let[s,n]=e,r=G(s),a=G(n);if(r!==a)if(ee(r)&&ee(a))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else es[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&i.push(t);i.length&&function(e,t,i){let s,n=0;for(;n<e.length&&!s;){let t=e[n];"string"==typeof t&&!eX.has(t)&&eR(t).values.length&&(s=e[n]),n++}if(s&&i)for(let n of t)e[n]=eY(i,s)}(e,i,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=es[i](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let s=t[t.length-1];void 0!==s&&e.getValue(i,s).jump(s,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:i}=this;if(!e||!e.current)return;let s=e.getValue(t);s&&s.jump(this.measuredOrigin,!1);let n=i.length-1,r=i[n];i[n]=es[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let eK=e=>!!(e&&e.getVelocity);function eG(){t=void 0}let eZ={now:()=>(void 0===t&&eZ.set(eu.isProcessing||er.useManualTiming?eu.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(eG)}};function eJ(e,t){-1===e.indexOf(t)&&e.push(t)}function eQ(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class e0{constructor(){this.subscriptions=[]}add(e){return eJ(this.subscriptions,e),()=>eQ(this.subscriptions,e)}notify(e,t,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](e,t,i);else for(let n=0;n<s;n++){let s=this.subscriptions[n];s&&s(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class e1{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=eZ.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=eZ.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new e0);let i=this.events[e].add(t);return"change"===e?()=>{i(),el.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return s&&s.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=eZ.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function e2(e,t){return new e1(e,t)}let e5=[...K,eM,eF],{schedule:e3}=eo(queueMicrotask,!1),e4={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"]},e8={};for(let e in e4)e8[e]={isEnabled:t=>e4[e].some(e=>!!t[e])};let e6=()=>({translate:0,scale:1,origin:0,originPoint:0}),e7=()=>({x:e6(),y:e6()}),e9=()=>({min:0,max:0}),te=()=>({x:e9(),y:e9()}),tt="undefined"!=typeof window,ti={current:null},ts={current:!1},tn=new WeakMap;function tr(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function ta(e){return"string"==typeof e||Array.isArray(e)}let to=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tl=["initial",...to];function th(e){return tr(e.animate)||tl.some(t=>ta(e[t]))}function tu(e){return!!(th(e)||e.variants)}function tc(e){let t=[{},{}];
1return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function td(e,t,i,s){if("function"==typeof t){let[n,r]=tc(s);t=t(void 0!==i?i:e.custom,n,r)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[n,r]=tc(s);t=t(void 0!==i?i:e.custom,n,r)}return t}let tm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tp{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:n,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ex,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=eZ.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,el.render(this.render,!1,!0))};const{latestValues:o,renderState:l}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!n,this.isControllingVariants=th(t),this.isVariantNode=tu(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==o[e]&&eK(t)&&t.set(o[e])}}mount(e){this.current=e,tn.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),ts.current||function(){if(ts.current=!0,tt)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ti.current=e.matches;e.addEventListener("change",t),t()}else ti.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ti.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),eh(this.notifyUpdate),eh(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let i;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let s=o.has(e);s&&this.onBindTransform&&this.onBindTransform();let n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&el.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in e8){let t=e8[e];if(!t)continue;let{isEnabled:i,Feature:s}=t;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):te()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tm.length;t++){let i=tm[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=e["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(e,t,i){for(let s in t){let n=t[s],r=i[s];if(eK(n))e.addValue(s,n);else if(eK(r))e.addValue(s,e2(n,{owner:e}));else if(r!==n)if(e.hasValue(s)){let t=e.getValue(s);!0===t.liveStyle?t.jump(n):t.hasAnimated||t.set(n)}else{let t=e.getStaticValue(s);e.addValue(s,e2(void 0!==t?t:n,{owner:e}))}}for(let s in i)void 0===t[s]&&e.removeValue(s);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
1addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return void 0===i&&void 0!==t&&(i=e2(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=i){let s,n;if("string"==typeof i&&(s=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s)||(n=i,/^0[^.\s]+$/u.test(n))))i=parseFloat(i);else{let s;s=i,!e5.find(q(s))&&eF.test(t)&&(i=eY(e,t))}this.setBaseTarget(e,eK(i)?i.get():i)}return eK(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=td(this.props,i,this.presenceContext?.custom);s&&(t=s[e])}if(i&&void 0!==t)return t;let s=this.getBaseTargetFromProps(this.props,e);return void 0===s||eK(s)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:s}on(e,t){return this.events[e]||(this.events[e]=new e0),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){e3.render(this.render)}}class tf extends tp{constructor(){super(...arguments),this.KeyframeResolver=eq}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;eK(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}let tg=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ty={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tx=a.length;function tv(e,t,i){let{style:s,vars:n,transformOrigin:r}=e,l=!1,h=!1;for(let e in t){let i=t[e];if(o.has(e)){l=!0;continue}if(v(e)){n[e]=i;continue}{let t=tg(i,eW[e]);e.startsWith("origin")?(h=!0,r[e]=t):s[e]=t}}if(!t.transform&&(l||i?s.transform=function(e,t,i){let s="",n=!0;for(let r=0;r<tx;r++){let o=a[r],l=e[o];if(void 0===l)continue;let h=!0;if(!(h="number"==typeof l?l===+!!o.startsWith("scale"):0===parseFloat(l))||i){let e=tg(l,eW[o]);if(!h){n=!1;let t=ty[o]||o;s+=`${t}(${e}) `}i&&(t[o]=e)}}return s=s.trim(),i?s=i(t,n?"":s):n&&(s="none"),s}(t,e.transform,i):s.transform&&(s.transform="none")),h){let{originX:e="50%",originY:t="50%",originZ:i=0}=r;s.transformOrigin=`${e} ${t} ${i}`}}function tb(e,{style:t,vars:i},s,n){let r,a=e.style;for(r in t)a[r]=t[r];for(r in n?.applyProjectionStyles(a,s),i)a.setProperty(r,i[r])}let tw={};function tT(e,{layout:t,layoutId:i}){return o.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!tw[e]||"opacity"===e)}function tj(e,t,i){let{style:s}=e,n={};for(let r in s)(eK(s[r])||t.style&&eK(t.style[r])||tT(r,e)||i?.getValue(r)?.liveStyle!==void 0)&&(n[r]=s[r]);return n}class tP extends tf{constructor(){super(...arguments),this.type="html",this.renderInstance=tb}readValueFromInstance(e,t){if(o.has(t))return this.projection?.isProjecting?f(t):((e,t)=>{let{transform:i="none"}=getComputedStyle(e);return g(i,t)})(e,t);{let i=window.getComputedStyle(e),s=(v(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:t}){return I(e,t)}build(e,t,i){tv(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return tj(e,t,i)}}let tk=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tA={offset:"stroke-dashoffset",array:"stroke-dasharray"},tS={offset:"strokeDashoffset",array:"strokeDasharray"};function tM(e,{attrX:t,attrY:i,attrScale:s,pathLength:n,pathSpacing:r=1,pathOffset:a=0,...o}
1,l,h,u){if(tv(e,o,h),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:c,style:d}=e;c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete c.transformBox),void 0!==t&&(c.x=t),void 0!==i&&(c.y=i),void 0!==s&&(c.scale=s),void 0!==n&&function(e,t,i=1,s=0,n=!0){e.pathLength=1;let r=n?tA:tS;e[r.offset]=H.transform(-s);let a=H.transform(t),o=H.transform(i);e[r.array]=`${a} ${o}`}(c,n,r,a,!1)}let tC=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"]),tE=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tN(e,t,i){let s=tj(e,t,i);for(let i in e)(eK(e[i])||eK(t[i]))&&(s[-1!==a.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return s}class tV extends tf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(o.has(t)){let e=ez(t);return e&&e.default||0}return t=tC.has(t)?t:tk(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return tN(e,t,i)}build(e,t,i){tM(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,s){for(let i in tb(e,t,void 0,s),t.attrs)e.setAttribute(tC.has(i)?i:tk(i),t.attrs[i])}mount(e){this.isSVGTag=tE(e.tagName),super.mount(e)}}let tR=["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 tD(e){if("string"!=typeof e||e.includes("-"));else if(tR.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var tI=e.i(843476);let tL=(0,r.createContext)({}),tF=(0,r.createContext)({strict:!1}),tB=(0,r.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),tO=(0,r.createContext)({});function t_(e){return Array.isArray(e)?e.join(" "):e}let tU=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function t$(e,t,i){for(let s in t)eK(t[s])||tT(s,i)||(e[s]=t[s])}let tW=()=>({...tU(),attrs:{}}),tH=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 tz(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||tH.has(e)}let tY=e=>!tz(e);try{n=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default,"function"==typeof n&&(tY=e=>e.startsWith("on")?!tz(e):n(e))}catch{}let tX=(0,r.createContext)(null);function tq(e){return eK(e)?e.get():e}let tK=e=>(t,i)=>{let s,n=(0,r.useContext)(tO),a=(0,r.useContext)(tX),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,s,n){return{latestValues:function(e,t,i,s){let n={},r=s(e,{});for(let e in r)n[e]=tq(r[e]);let{initial:a,animate:o}=e,l=th(e),h=tu(e);t&&h&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let u=!!i&&!1===i.initial,c=(u=u||!1===a)?o:a;if(c&&"boolean"!=typeof c&&!tr(c)){let t=Array.isArray(c)?c:[c];for(let i=0;i<t.length;i++){let s=td(e,t[i]);if(s){let{transitionEnd:e,transition:t,...i}=s;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}null!==t&&(n[e]=t)}for(let t in e)n[t]=e[t]}}}return n}(i,s,n,e),renderState:t()}})(e,t,n,a);return i?o():(null===(s=(0,r.useRef)(null)).current&&(s.current=o()),s.current)},tG=tK({scrapeMotionValuesFromProps:tj,createRenderState:tU}),tZ=tK({scrapeMotionValuesFromProps:tN,createRenderState:tW}),tJ=Symbol.for("motionComponentSymbol");function tQ(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let t0="data-"+tk("framerAppearId"),t1=(0,r.createContext)({}),t2=tt?r.useLayoutEffect:r.useEffect;function t5(e,{forwardMotionProps:t=!1}={},i,s){i&&function(e){for(let t in e)e8[t]={...e8[t],...e[t]}}(i);let n=tD(e)?tZ:tG;function a(i,a){var o;let l,h={...(0,r.useContext)(tB),...i,layoutId:function({layoutId:e}){let t=(0,r.useContext)(tL).id;return t&&void 0!==e?t+"-"+e:e}(i)},{isStatic:u}=h,c=function(e){let{initial:t,animate:i}=function(e,t){if(th(e)){let{initial:t,animate:i}=e;return{initial:!1===t||ta(t)?t:void 0,animate:ta(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,r.useContext)(tO));return(0,r.useMemo)(()=>({initial:t,animate:i}),[t_(t),t_(i)])}(i),d=n(i,u);if(!u&&tt){(0,r.useContext)(tF).strict;let t=function(e){let{drag:t,layout:i}=e8;if(!t&&!i)return{};let s={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}
1(h);l=t.MeasureLayout,c.visualElement=function(e,t,i,s,n){let{visualElement:a}=(0,r.useContext)(tO),o=(0,r.useContext)(tF),l=(0,r.useContext)(tX),h=(0,r.useContext)(tB).reducedMotion,u=(0,r.useRef)(null);s=s||o.renderer,!u.current&&s&&(u.current=s(e,{visualState:t,parent:a,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:h}));let c=u.current,d=(0,r.useContext)(t1);c&&!c.projection&&n&&("html"===c.type||"svg"===c.type)&&function(e,t,i,s){let{layoutId:n,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:h,layoutCrossfade:u}=t;e.projection=new i(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:n,layout:r,alwaysMeasureLayout:!!a||o&&tQ(o),visualElement:e,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:l,layoutRoot:h})}(u.current,i,n,d);let m=(0,r.useRef)(!1);(0,r.useInsertionEffect)(()=>{c&&m.current&&c.update(i,l)});let p=i[t0],f=(0,r.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return t2(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),f.current&&c.animationState&&c.animationState.animateChanges())}),(0,r.useEffect)(()=>{c&&(!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),f.current=!1),c.enteringChildren=void 0)}),c}(e,d,h,s,t.ProjectionNode)}return(0,tI.jsxs)(tO.Provider,{value:c,children:[l&&c.visualElement?(0,tI.jsx)(l,{visualElement:c.visualElement,...h}):null,function(e,t,i,{latestValues:s},n,a=!1){let o=(tD(e)?function(e,t,i,s){let n=(0,r.useMemo)(()=>{let i=tW();return tM(i,t,tE(s),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};t$(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t){let i,s,n={},a=(i=e.style||{},t$(s={},i,e),Object.assign(s,function({transformTemplate:e},t){return(0,r.useMemo)(()=>{let i=tU();return tv(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),s);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=a,n})(t,s,n,e),l=function(e,t,i){let s={};for(let n in e)("values"!==n||"object"!=typeof e.values)&&(tY(n)||!0===i&&tz(n)||!t&&!tz(n)||e.draggable&&n.startsWith("onDrag"))&&(s[n]=e[n]);return s}(t,"string"==typeof e,a),h=e!==r.Fragment?{...l,...o,ref:i}:{},{children:u}=t,c=(0,r.useMemo)(()=>eK(u)?u.get():u,[u]);return(0,r.createElement)(e,{...h,children:c})}(e,i,(o=c.visualElement,(0,r.useCallback)(e=>{e&&d.onMount&&d.onMount(e),o&&(e?o.mount(e):o.unmount()),a&&("function"==typeof a?a(e):tQ(a)&&(a.current=e))},[o])),d,u,t)]})}a.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let o=(0,r.forwardRef)(a);return o[tJ]=e,o}function t3(e,t,i){let s=e.getProps();return td(s,t,void 0!==i?i:s.custom,e)}function t4(e,t){return e?.[t]??e?.default??e}let t8=e=>Array.isArray(e);function t6(e,t){let i=e.getValue("willChange");if(eK(i)&&i.add)return i.add(t);if(!i&&er.WillChange){let i=new er.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function t7(e){e.duration=0,e.type="keyframes"}let t9=(e,t)=>i=>t(e(i)),ie=(...e)=>e.reduce(t9),it=e=>1e3*e,ii={layout:0,mainThread:0,waapi:0};function is(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function ir(e,t){return i=>i>0?t:e}let ia=(e,t,i)=>{let s=e*e,n=i*(t*t-s)+s;return n<0?0:Math.sqrt(n)},io=[eA,ek,eS];function il(e){let t=io.find(t=>t.test(e));if(Z(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let i=t.parse(e);return t===eS&&(i=function({hue:e,saturation:t,lightness:i,alpha:s}){e/=360,i/=100;let n=0,r=0,a=0;if(t/=100){let s=i<.5?i*(1+t):i+t-i*t,o=2*i-s;n=is(o,s,e+1/3),r=is(o,s,e),a=is(o,s,e-1/3)}else n=r=a=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*a),alpha:s}}(i)),i}let ih=(e,t)=>{let i=il(e),s=il(t);if(!i||!s)return ir(e,t);let n={...i};return e=>(n.red=ia(i.red,s.red,e),n.green=ia(i.green,s.green,e),n.blue=ia(i.blue,s.blue,e),n.alpha=P(i.alpha,s.alpha,e),ek.transform(n))},iu=new Set(["none","hidden"]);function ic(e,t){return i=>P(e,t,i)}
1function id(e){return"number"==typeof e?ic:"string"==typeof e?w(e)?ir:eM.test(e)?ih:ig:Array.isArray(e)?im:"object"==typeof e?eM.test(e)?ih:ip:ir}function im(e,t){let i=[...e],s=i.length,n=e.map((e,i)=>id(e)(e,t[i]));return e=>{for(let t=0;t<s;t++)i[t]=n[t](e);return i}}function ip(e,t){let i={...e,...t},s={};for(let n in i)void 0!==e[n]&&void 0!==t[n]&&(s[n]=id(e[n])(e[n],t[n]));return e=>{for(let t in s)i[t]=s[t](e);return i}}let ig=(e,t)=>{let i=eF.createTransformer(t),s=eR(e),n=eR(t);if(!(s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length))return Z(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),ir(e,t);if(iu.has(e)&&!n.values.length||iu.has(t)&&!s.values.length)return iu.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return ie(im(function(e,t){let i=[],s={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let r=t.types[n],a=e.indexes[r][s[r]],o=e.values[a]??0;i[n]=o,s[r]++}return i}(s,n),n.values),i)};function iy(e,t,i){return"number"==typeof e&&"number"==typeof t&&"number"==typeof i?P(e,t,i):id(e)(e,t)}let ix=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>el.update(t,e),stop:()=>eh(t),now:()=>eu.isProcessing?eu.timestamp:eZ.now()}},iv=(e,t,i=10)=>{let s="",n=Math.max(Math.round(t/i),2);for(let t=0;t<n;t++)s+=Math.round(1e4*e(t/(n-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`};function ib(e){let t=0,i=e.next(t);for(;!i.done&&t<2e4;)t+=50,i=e.next(t);return t>=2e4?1/0:t}function iw(e,t,i){var s,n;let r=Math.max(t-5,0);return s=i-e(r),(n=t-r)?1e3/n*s:0}let iT=.01,ij=2,iP=.005,ik=.5;function iA(e,t){return e*Math.sqrt(1-t*t)}let iS=["duration","bounce"],iM=["stiffness","damping","mass"];function iC(e,t){return t.some(t=>void 0!==e[t])}function iE(e=.3,t=.3){let i,s="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:n,restDelta:r}=s,a=s.keyframes[0],o=s.keyframes[s.keyframes.length-1],l={done:!1,value:a},{stiffness:h,damping:u,mass:c,duration:d,velocity:m,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!iC(e,iM)&&iC(e,iS))if(e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),s=i*i,n=2*F(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:1,stiffness:s,damping:n}}else{let i=function({duration:e=800,bounce:t=.3,velocity:i=0,mass:s=1}){let n,r;Z(e<=it(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=F(.05,1,a),e=F(.01,10,e/1e3),a<1?(n=t=>{let s=t*a,n=s*e;return .001-(s-i)/iA(t,a)*Math.exp(-n)},r=t=>{let s=t*a*e,r=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-s),l=iA(Math.pow(t,2),a);return(s*i+i-r)*o*(-n(t)+.001>0?-1:1)/l}):(n=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),r=t=>e*e*(i-t)*Math.exp(-t*e));let o=function(e,t,i){let s=i;for(let i=1;i<12;i++)s-=e(s)/t(s);return s}(n,r,5/e);if(e=it(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(o,2)*s;return{stiffness:t,damping:2*a*Math.sqrt(s*t),duration:e}}}(e);(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...s,velocity:-((s.velocity||0)/1e3)}),f=m||0,g=u/(2*Math.sqrt(h*c)),y=o-a,x=Math.sqrt(h/c)/1e3,v=5>Math.abs(y);
1if(n||(n=v?iT:ij),r||(r=v?iP:ik),g<1){let e=iA(x,g);i=t=>o-Math.exp(-g*x*t)*((f+g*x*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===g)i=e=>o-Math.exp(-x*e)*(y+(f+x*y)*e);else{let e=x*Math.sqrt(g*g-1);i=t=>{let i=Math.exp(-g*x*t),s=Math.min(e*t,300);return o-i*((f+g*x*y)*Math.sinh(s)+e*y*Math.cosh(s))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=i(e);if(p)l.done=e>=d;else{let s=0===e?f:0;g<1&&(s=0===e?it(f):iw(i,e,t));let a=Math.abs(o-t)<=r;l.done=Math.abs(s)<=n&&a}return l.value=l.done?o:t,l},toString:()=>{let e=Math.min(ib(b),2e4),t=iv(t=>b.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return b}function iN({keyframes:e,velocity:t=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:h=.5,restSpeed:u}){let c,d,m=e[0],p={done:!1,value:m},f=i*t,g=m+f,y=void 0===a?g:a(g);y!==g&&(f=y-m);let x=e=>-f*Math.exp(-e/s),v=e=>y+x(e),b=e=>{let t=x(e),i=v(e);p.done=Math.abs(t)<=h,p.value=p.done?y:i},w=e=>{let t;if(t=p.value,void 0!==o&&t<o||void 0!==l&&t>l){var i;c=e,d=iE({keyframes:[p.value,(i=p.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:iw(v,e,p.value),damping:n,stiffness:r,restDelta:h,restSpeed:u})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(d||void 0!==c||(t=!0,b(e),w(e)),void 0!==c&&e>=c)?d.next(e-c):(t||b(e),p)}}}iE.applyToOptions=e=>{let t=function(e,t=100,i){let s=i({...e,keyframes:[0,t]}),n=Math.min(ib(s),2e4);return{type:"keyframes",ease:e=>s.next(n*e).value/t,duration:n/1e3}}(e,100,iE);return e.ease=t.ease,e.duration=it(t.duration),e.type="keyframes",e};let iV=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function iR(e,t,i,s){return e===t&&i===s?en:n=>0===n||1===n?n:iV(function(e,t,i,s,n){let r,a,o=0;do(r=iV(a=t+(i-t)/2,s,n)-e)>0?i=a:t=a;while(Math.abs(r)>1e-7&&++o<12)return a}(n,0,1,e,i),t,s)}let iD=iR(.42,0,1,1),iI=iR(0,0,.58,1),iL=iR(.42,0,.58,1),iF=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,iB=e=>t=>1-e(1-t),iO=iR(.33,1.53,.69,.99),i_=iB(iO),iU=iF(i_),i$=e=>(e*=2)<1?.5*i_(e):.5*(2-Math.pow(2,-10*(e-1))),iW=e=>1-Math.sin(Math.acos(e)),iH=iB(iW),iz=iF(iW),iY=e=>Array.isArray(e)&&"number"==typeof e[0],iX={linear:en,easeIn:iD,easeInOut:iL,easeOut:iI,circIn:iW,circInOut:iz,circOut:iH,backIn:i_,backInOut:iU,backOut:iO,anticipate:i$},iq=e=>{if(iY(e)){J(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,i,s,n]=e;return iR(t,i,s,n)}return"string"==typeof e?(J(void 0!==iX[e],`Invalid easing type '${e}'`,"invalid-easing-type"),iX[e]):e},iK=(e,t,i)=>{let s=t-e;return 0===s?1:(i-e)/s};function iG({duration:e=300,keyframes:t,times:i,ease:s="easeInOut"}){var n;let r,a=Array.isArray(s)&&"number"!=typeof s[0]?s.map(iq):iq(s),o={done:!1,value:t[0]},l=function(e,t,{clamp:i=!0,ease:s,mixer:n}={}){let r=e.length;if(J(r===t.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>t[0];if(2===r&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,i){let s=[],n=i||er.mix||iy,r=e.length-1;for(let i=0;i<r;i++){let r=n(e[i],e[i+1]);t&&(r=ie(Array.isArray(t)?t[i]||en:t,r)),s.push(r)}return s}(t,s,n),l=o.length,h=i=>{if(a&&i<e[0])return t[0];let s=0;if(l>1)for(;s<e.length-2&&!(i<e[s+1]);s++);let n=iK(e[s],e[s+1],i);return o[s](n)};return i?t=>h(F(e[0],e[r-1],t)):h}((n=i&&i.length===t.length?i:(!function(e,t){let i=e[e.length-1];for(let s=1;s<=t;s++){let n=iK(0,t,s);e.push(P(i,1,n))}}(r=[0],t.length-1),r),n.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||iL).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let iZ=e=>null!==e;function iJ(e,{repeat:t,repeatType:i="loop"},s,n=1){let r=e.filter(iZ),a=n<0||t&&"loop"!==i&&t%2==1?0:r.length-1;return a&&void 0!==s?s:r[a]}let iQ={decay:iN,inertia:iN,tween:iG,keyframes:iG,spring:iE};function i0(e){"string"==typeof e.type&&(e.type=iQ[e.type])}class i1{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let i2=e=>e/100;class i5 extends i1{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==eZ.now()&&this.tick(eZ.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},ii.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;i0(e);let{type:t=iG,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:r=0}=e,{keyframes:a}=e,o=t||iG;o!==iG&&"number"!=typeof a[0]&&(this.mixKeyframes=ie(i2,iy(a[0],a[1])),a=[0,100]);let l=o({...e,keyframes:a});"mirror"===n&&(this.mirroredGenerator=o({...e,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=ib(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:i,totalDuration:s,mixKeyframes:n,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:h,repeat:u,repeatType:c,repeatDelay:d,type:m,onUpdate:p,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-s/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>s;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let x=this.currentTime,v=i;if(u){let e=Math.min(this.currentTime,s)/a,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,u+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/a)):"mirror"===c&&(v=r)),x=F(0,1,i)*a}let b=y?{done:!1,value:h[0]}:v.next(x);n&&(b.value=n(b.value));let{done:w}=b;y||null===o||(w=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return T&&m!==iN&&(b.value=iJ(h,this.options,f,this.speed)),p&&p(b.value),T&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=it(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(eZ.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=ix,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(eZ.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,ii.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function i3(e){let t;return()=>(void 0===t&&(t=e()),t)}let i4=i3(()=>void 0!==window.ScrollTimeline),i8={},i6=(i=i3(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),()=>i8.linearEasing??i()),i7=([e,t,i,s])=>`cubic-bezier(${e}, ${t}, ${i}, ${s})`,i9={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:i7([0,.65,.55,1]),circOut:i7([.55,0,1,.45]),backIn:i7([.31,.01,.66,-.59]),backOut:i7([.33,1.53,.69,.99])};function se(e){return"function"==typeof e&&"applyToOptions"in e}class st extends i1{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:i,keyframes:s,pseudoElement:n,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=e;this.isPseudoElement=!!n,this.allowFlatten=r,this.options=e,J("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return se(e)&&i6()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},h){let u={[t]:i};l&&(u.offset=l);let c=function e(t,i){if(t)return"function"==typeof t?i6()?iv(t,i):"ease-out":iY(t)?i7(t):Array.isArray(t)?t.map(t=>e(t,i)||i9.easeOut):i9[t]}(o,n);Array.isArray(c)&&(u.easing=c);let d={delay:s,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};h&&(d.pseudoElement=h);let m=e.animate(u,d);return m}(t,i,s,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let e=iJ(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):i.startsWith("--")?t.style.setProperty(i,e):t.style[i]=e,this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.finishedTime=null,this.animation.currentTime=it(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&i4())?(this.animation.timeline=e,en):t(this)}}let si={anticipate:i$,backInOut:iU,circInOut:iz};class ss extends st{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in si&&(e.ease=si[e.ease])}(e),i0(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:s,element:n,...r}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new i5({...r,autoplay:!1}),o=it(this.finishedTime??this.time);t.setWithVelocity(a.sample(o-10).value,a.sample(o).value,10),a.stop()}}let sn=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eF.test(e)||"0"===e)&&!e.startsWith("url(")),sr=new Set(["opacity","clipPath","filter","transform"]),sa=i3(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class so extends i1{constructor({autoplay:e=!0,delay:t=0,type:i="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=eZ.now();const c={autoplay:e,delay:t,type:i,repeat:s,repeatDelay:n,repeatType:r,name:o,motionValue:l,element:h,...u},d=h?.KeyframeResolver||ex;this.keyframeResolver=new d(a,(e,t,i)=>this.onKeyframesResolved(e,t,c,!i),o,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,s){this.keyframeResolver=void 0;let{name:n,type:r,velocity:a,delay:o,isHandoff:l,onUpdate:h}=i;this.resolvedAt=eZ.now(),!function(e,t,i,s){let n=e[0];if(null===n)return!1;if("display"===t||"visibility"===t)return!0;let r=e[e.length-1],a=sn(n,t),o=sn(r,t);return Z(a===o,`You are trying to animate ${t} from "${n}" to "${r}". "${a?r:n}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||se(i))&&s)}(e,n,r,a)&&((er.instantAnimations||!o)&&h?.(iJ(e,i,t)),e[0]=e[e.length-1],t7(i),i.repeat=0);let u={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:e},c=!l&&function(e){let{motionValue:t,name:i,repeatDelay:s,repeatType:n,damping:r,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;
1let{onUpdate:o,transformTemplate:l}=t.owner.getProps();return sa()&&i&&sr.has(i)&&("transform"!==i||!l)&&!o&&!s&&"mirror"!==n&&0!==r&&"inertia"!==a}(u)?new ss({...u,element:u.motionValue.owner.current}):new i5(u);c.finished.then(()=>this.notifyFinished()).catch(en),this.pendingTimeline&&(this.stopTimeline=c.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=c}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ef=!0,ey(),eg(),ef=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let sl=e=>null!==e,sh={type:"spring",stiffness:500,damping:25,restSpeed:10},su={type:"keyframes",duration:.8},sc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sd=(e,t,i,s={},n,r)=>a=>{let l=t4(s,e)||{},h=l.delay||s.delay||0,{elapsed:u=0}=s;u-=it(h);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:r?void 0:n};!function({when:e,delay:t,delayChildren:i,staggerChildren:s,staggerDirection:n,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(l)&&Object.assign(c,((e,{keyframes:t})=>t.length>2?su:o.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:sh:sc)(e,c)),c.duration&&(c.duration=it(c.duration)),c.repeatDelay&&(c.repeatDelay=it(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(t7(c),0===c.delay&&(d=!0)),(er.instantAnimations||er.skipAnimations)&&(d=!0,t7(c),c.delay=0),c.allowFlatten=!l.type&&!l.ease,d&&!r&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:i="loop"},s){let n=e.filter(sl),r=t&&"loop"!==i&&t%2==1?0:n.length-1;return n[r]}(c.keyframes,l);if(void 0!==e)return void el.update(()=>{c.onUpdate(e),c.onComplete()})}return l.isSync?new i5(c):new so(c)};function sm(e,t,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:r=e.getDefaultTransition(),transitionEnd:a,...o}=t;s&&(r=s);let l=[],h=n&&e.animationState&&e.animationState.getState()[n];for(let t in o){let s=e.getValue(t,e.latestValues[t]??null),n=o[t];if(void 0===n||h&&function({protectedKeys:e,needsAnimating:t},i){let s=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,s}(h,t))continue;let a={delay:i,...t4(r||{},t)},u=s.get();if(void 0!==u&&!s.isAnimating&&!Array.isArray(n)&&n===u&&!a.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){let i=e.props[t0];if(i){let e=window.MotionHandoffAnimation(i,t,el);null!==e&&(a.startTime=e,c=!0)}}t6(e,t),s.start(sd(t,s,n,e.shouldReduceMotion&&L.has(t)?{type:!1}:a,e,c));let d=s.animation;d&&l.push(d)}return a&&Promise.all(l).then(()=>{el.update(()=>{a&&function(e,t){let{transitionEnd:i={},transition:s={},...n}=t3(e,t)||{};for(let t in n={...n,...i}){var r;let i=t8(r=n[t])?r[r.length-1]||0:r;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,e2(i))}}(e,a)})}),l}function sp(e,t,i,s=0,n=1){let r=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,o=(a-1)*s;return"function"==typeof i?i(r,a):1===n?r*s:o-r*s}function sf(e,t,i={}){let s=t3(e,t,"exit"===i.type?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let r=s?()=>
1Promise.all(sm(e,s,i)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=n;return function(e,t,i=0,s=0,n=0,r=1,a){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(sf(l,t,{...a,delay:i+("function"==typeof s?0:s)+sp(e.variantChildren,l,s,n,r)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,s,r,a,o,i)}:()=>Promise.resolve(),{when:o}=n;if(!o)return Promise.all([r(),a(i.delay)]);{let[e,t]="beforeChildren"===o?[r,a]:[a,r];return e().then(()=>t())}}function sg(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let s=0;s<i;s++)if(t[s]!==e[s])return!1;return!0}let sy=tl.length,sx=[...to].reverse(),sv=to.length;function sb(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sw(){return{animate:sb(!0),whileInView:sb(),whileHover:sb(),whileTap:sb(),whileDrag:sb(),whileFocus:sb(),exit:sb()}}class sT{constructor(e){this.isMounted=!1,this.node=e}update(){}}let sj=0,sP={x:!1,y:!1};function sk(e,t,i,s={passive:!0}){return e.addEventListener(t,i,s),()=>e.removeEventListener(t,i)}let sA=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function sS(e){return{point:{x:e.pageX,y:e.pageY}}}function sM(e,t,i,s){return sk(e,t,e=>sA(e)&&i(e,sS(e)),s)}function sC(e){return e.max-e.min}function sE(e,t,i,s=.5){e.origin=s,e.originPoint=P(t.min,t.max,e.origin),e.scale=sC(i)/sC(t),e.translate=P(i.min,i.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function sN(e,t,i,s){sE(e.x,t.x,i.x,s?s.originX:void 0),sE(e.y,t.y,i.y,s?s.originY:void 0)}function sV(e,t,i){e.min=i.min+t.min,e.max=e.min+sC(t)}function sR(e,t,i){e.min=t.min-i.min,e.max=e.min+sC(t)}function sD(e,t,i){sR(e.x,t.x,i.x),sR(e.y,t.y,i.y)}function sI(e){return[e("x"),e("y")]}let sL=({current:e})=>e?e.ownerDocument.defaultView:null,sF=(e,t)=>Math.abs(e-t);class sB{constructor(e,t,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=sU(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(e=i.offset,t={x:0,y:0},Math.sqrt(sF(e.x,t.x)**2+sF(e.y,t.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:r}=i,{timestamp:a}=eu;this.history.push({...r,timestamp:a});let{onStart:o,onMove:l}=this.handlers;s||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=sO(t,this.transformPagePoint),el.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=sU("pointercancel"===e.type?this.lastMoveEventInfo:sO(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,r),s&&s(e,r)},!sA(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const a=sO(sS(e),this.transformPagePoint),{point:o}=a,{timestamp:l}=eu;this.history=[{...o,timestamp:l}];const{onSessionStart:h}=t;h&&h(e,sU(a,this.history)),this.removeListeners=ie(sM(this.contextWindow,"pointermove",this.handlePointerMove),sM(this.contextWindow,"pointerup",this.handlePointerUp),sM(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),eh(this.updatePoint)}}function sO(e,t){return t?{point:t(e.point)}:e}function s_(e,t){return{x:e.x-t.x,y:e.y-t.y}}function sU({point:e},t){return{point:e,delta:s_(e,s$(t)),offset:s_(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let i=e.length-1,s=null,n=s$(e);for(;i>=0&&(s=e[i],!(n.timestamp-s.timestamp>it(.1)));)i--;if(!s)return{x:0,y:0};let r=(n.timestamp-s.timestamp)/1e3;if(0===r)return{x:0,y:0};let a={x:(n.x-s.x)/r,y:(n.y-s.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function s$(e){return e[e.length-1]}function sW(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function sH(e,t){let i=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,s]=[s,i]),{min:i,max:s}}function sz(e,t,i){return{min:sY(e,t),max:sY(e,i)}}function sY(e,t){return"number"==typeof e?e:e[t]||0}let sX=new WeakMap;class sq{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=te(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=e=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(sS(e).point)},r=(e,t)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"
1y"===e)if(sP[e])return null;else return sP[e]=!0,()=>{sP[e]=!1};return sP.x||sP.y?null:(sP.x=sP.y=!0,()=>{sP.x=sP.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),sI(e=>{let t=this.getAxisMotionValue(e).get()||0;if(W.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[e];s&&(t=sC(s)*(parseFloat(t)/100))}}this.originPoint[e]=t}),n&&el.postRender(()=>n(e,t)),t6(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(s&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),r&&r(e,t)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>sI(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new sB(e,{onSessionStart:n,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:sL(this.visualElement)})}stop(e,t){let i=e||this.latestPointerEvent,s=t||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:r}=s;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&el.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,i){let{drag:s}=this.getProps();if(!i||!sK(e,s,this.currentDirection))return;let n=this.getAxisMotionValue(e),r=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(r=function(e,{min:t,max:i},s){return void 0!==t&&e<t?e=s?P(t,e,s.min):Math.max(e,t):void 0!==i&&e>i&&(e=s?P(i,e,s.max):Math.min(e,i)),e}(r,this.constraints[e],this.elastic[e])),n.set(r)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;e&&tQ(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:s,right:n}){return{x:sW(e.x,i,n),y:sW(e.y,t,s)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:sz(e,"left","right"),y:sz(e,"top","bottom")}}(t),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&sI(e=>{var t,s;let n;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=i.layoutBox[e],s=this.constraints[e],n={},void 0!==s.min&&(n.min=s.min-t.min),void 0!==s.max&&(n.max=s.max-t.min),n))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!tQ(t))return!1;let s=t.current;J(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let r=function(e,t,i){let s=I(e,i),{scroll:n}=t;return n&&(V(s.x,n.offset.x),V(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),a=(e=n.layout.layoutBox,{x:sH(e.x,r.x),y:sH(e.y,r.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=j(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(sI(a=>{if(!sK(a,t,this.currentDirection))return;let l=o&&o[a]||{};r&&(l={min:0,max:0});let h={type:"inertia",velocity:i?e[a]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return t6(this.visualElement,e),i.start(sd(e,i,0,t,this.visualElement,!1))}stopAnimation(){sI(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){sI(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps();return i[t]||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){sI(t=>{let{drag:i}=this.getProps();if(!sK(t,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(t);if(s&&s.layout){let{min:i,max:r}=s.layout.layoutBox[t];n.set(e[t]-P(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!tQ(t)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};sI(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var i,n;let r,a,o,l=t.get();s[e]=(i={min:l,max:l},n=this.constraints[e],r=.5,a=sC(i),(o=sC(n))>a?r=iK(n.min,n.max-a,i.min):a>o&&(r=iK(i.min,i.max-o,n.min)),F(0,1,r))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),sI(t=>{if(!sK(t,e,null))return;let i=this.getAxisMotionValue(t),{min:n,max:r}=this.constraints[t];i.set(P(n,r,s[t]))})}addListeners(){if(!this.visualElement.current)return;sX.set(this.visualElement,this);let e=sM(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:i=!0}=this.getProps();t&&i&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();tQ(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",t);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),el.read(t);let n=sk(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(sI(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{n(),e(),s(),r&&r()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:a}}}function sK(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let sG=e=>(t,i)=>{e&&el.postRender(()=>e(t,i))};var sZ=r;let sJ={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function sQ(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let s0={correct:(e,t)=>
1{if(!t.target)return e;if("string"==typeof e)if(!H.test(e))return e;else e=parseFloat(e);let i=sQ(e,t.target.x),s=sQ(e,t.target.y);return`${i}% ${s}%`}},s1=!1;class s2 extends sZ.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=e;for(let e in s3)tw[e]=s3[e],v(e)&&(tw[e].isCSSVariable=!0);n&&(t.group&&t.group.add(n),i&&i.register&&s&&i.register(n),s1&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),sJ.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:s,isPresent:n}=this.props,{projection:r}=i;return r&&(r.isPresent=n,s1=!0,s||e.layoutDependency!==t||void 0===t||e.isPresent!==n?r.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?r.promote():r.relegate()||el.postRender(()=>{let e=r.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),e3.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:s}=e;s1=!0,s&&(s.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function s5(e){let[t,i]=function(e=!0){let t=(0,r.useContext)(tX);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:s,register:n}=t,a=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return n(a)},[e]);let o=(0,r.useCallback)(()=>e&&s&&s(a),[a,s,e]);return!i&&s?[!1,o]:[!0]}(),s=(0,sZ.useContext)(tL);return(0,tI.jsx)(s2,{...e,layoutGroup:s,switchLayoutGroup:(0,sZ.useContext)(t1),isPresent:t,safeToRemove:i})}let s3={borderRadius:{...s0,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:s0,borderTopRightRadius:s0,borderBottomLeftRadius:s0,borderBottomRightRadius:s0,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let s=eF.parse(e);if(s.length>5)return e;let n=eF.createTransformer(e),r=+("number"!=typeof s[0]),a=i.x.scale*t.x,o=i.y.scale*t.y;s[0+r]/=a,s[1+r]/=o;let l=P(a,o,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}};function s4(e){return"object"==typeof e&&null!==e}function s8(e){return s4(e)&&"ownerSVGElement"in e}let s6=(e,t)=>e.depth-t.depth;class s7{constructor(){this.children=[],this.isDirty=!1}add(e){eJ(this.children,e),this.isDirty=!0}remove(e){eQ(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(s6),this.isDirty=!1,this.children.forEach(e)}}let s9=["TopLeft","TopRight","BottomLeft","BottomRight"],ne=s9.length,nt=e=>"string"==typeof e?parseFloat(e):e,ni=e=>"number"==typeof e||H.test(e);function ns(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nn=na(0,.5,iH),nr=na(.5,.95,en);function na(e,t,i){return s=>s<e?0:s>t?1:i(iK(e,t,s))}function no(e,t){e.min=t.min,e.max=t.max}function nl(e,t){no(e.x,t.x),no(e.y,t.y)}function nh(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nu(e,t,i,s,n){return e-=t,e=s+1/i*(e-s),void 0!==n&&(e=s+1/n*(e-s)),e}function nc(e,t,[i,s,n],r,a){!function(e,t=0,i=1,s=.5,n,r=e,a=e){if(W.test(t)&&(t=parseFloat(t),t=P(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=P(r.min,r.max,s);e===r&&(o-=t),e.min=nu(e.min,t,i,o,n),e.max=nu(e.max,t,i,o,n)}(e,t[i],t[s],t[n],t.scale,r,a)}let nd=["x","scaleX","originX"],nm=["y","scaleY","originY"];function np(e,t,i,s){nc(e.x,t,nd,i?i.x:void 0,s?s.x:void 0),nc(e.y,t,nm,i?i.y:void 0,s?s.y:void 0)}function nf(e){return 0===e.translate&&1===e.scale}function ng(e){return nf(e.x)&&nf(e.y)}function ny(e,t){return e.min===t.min&&e.max===t.max}function nx(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nv(e,t){return nx(e.x,t.x)&&nx(e.y,t.y)}function nb(e){return sC(e.x)/sC(e.y)}function nw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nT{constructor(){this.members=[]}add(e){eJ(this.members,e),e.scheduleRender()}remove(e){if(eQ(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,i=this.members.findIndex(t=>e===t);if(0===i)return!1;for(let e=i;e>=0;e--){let i=this.members[e];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,t&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:s}=e.options;!1===s&&i.hide()}}
1exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:i}=e;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nj=["","X","Y","Z"],nP=0;function nk(e,t,i,s){let{latestValues:n}=t;n[e]&&(i[e]=n[e],t.setStaticValue(e,0),s&&(s[e]=0))}function nA({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(e={},i=t?.()){this.id=nP++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(nC),this.nodes.forEach(nL),this.nodes.forEach(nF),this.nodes.forEach(nE)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new s7)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new e0),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=s8(t)&&!(s8(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),e){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;el.read(()=>{s=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==s){let t,r;s=e,this.root.updateBlockedByResize=!0,i&&i(),t=eZ.now(),r=({timestamp:e})=>{let i=e-t;i>=250&&(eh(r),n(i-250))},el.setup(r,!0),i=()=>eh(r),sJ.hasAnimatedSinceResize&&(sJ.hasAnimatedSinceResize=!1,this.nodes.forEach(nI))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||nW,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=n.getProps(),l=!this.targetLayout||!nv(this.targetLayout,s),h=!t&&i;if(this.options.layoutRoot||this.resumeFrom||h||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...t4(r,"layout"),onPlay:a,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,h)}else t||nI(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eh(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(nB),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:i}=t.options;if(!i)return;let s=i.props[t0];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(s,"transform",el,!(e||i))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&e(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nV);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(nR);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(nD),this.nodes.forEach(nS),this.nodes.forEach(nM)):this.nodes.forEach(nR),this.clearAllSnapshots();let e=eZ.now();eu.delta=F(0,1e3/60,e-eu.timestamp),eu.timestamp=e,eu.isProcessing=!0,ec.update.process(eu),ec.preRender.process(eu),ec.render.process(eu),eu.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,e3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nN),this.sharedNodes.forEach(nO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,el.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){el.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||sC(this.snapshot.measuredBox.x)||sC(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=te(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=s(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!n)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!ng(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;e&&this.instance&&(t||S(this.latestValues)||r)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),s=this.removeElementScroll(i);return e&&(s=this.removeTransform(s)),nY((t=s).x),nY(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return te();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(nq))){let{scroll:e}=this.root;e&&(V(t.x,e.offset.x),V(t.y,e.offset.y))}return t}removeElementScroll(e){let t=te();if(nl(t,e),this.scroll?.wasRoot)return t;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:r}=s;s!==this.root&&n&&r.layoutScroll&&(n.wasRoot&&nl(t,e),V(t.x,n.offset.x),V(t.y,n.offset.y))}return t}applyTransform(e,t=!1){let i=te();nl(i,e);for(let e=0;e<this.path.length;e++){let s=this.path[e];!t&&s.options.layoutScroll&&s.scroll&&s!==s.root&&D(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),S(s.latestValues)&&D(i,s.latestValues)}return S(this.latestValues)&&D(i,this.latestValues),i}removeTransform(e){let t=te();nl(t,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];if(!i.instance||!S(i.latestValues))continue;A(i.latestValues)&&i.updateSnapshot();let s=te();nl(s,i.measurePageBox()),np(t,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return S(this.latestValues)&&np(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eu.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
1isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t;if(!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:n}=this.options;if(this.layout&&(s||n)){if(this.resolvedRelativeTargetAt=eu.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),sD(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=te(),this.targetWithTransforms=te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var r,a,o;this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,o=this.relativeParent.target,sV(r.x,a.x,o.x),sV(r.y,a.y,o.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nl(this.target,this.layout.layoutBox),N(this.target,this.targetDelta)):nl(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=te(),this.relativeTargetOrigin=te(),sD(this.relativeTargetOrigin,this.target,e.target),nl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}}getClosestProjectingParent(){if(!(!this.parent||A(this.parent.latestValues)||M(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===eu.timestamp&&(i=!1),i)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;nl(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(e,t,i,s=!1){let n,r,a=i.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){r=(n=i[o]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&D(e,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r&&(t.x*=r.x.scale,t.y*=r.y.scale,N(e,r)),s&&S(n.latestValues)&&D(e,n.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=te());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nh(this.prevProjectionDelta.x,this.projectionDelta.x),nh(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),sN(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&nw(this.projectionDelta.x,this.prevProjectionDelta.x)&&nw(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=e7(),this.projectionDelta=e7(),this.projectionDeltaWithTransform=e7()}setAnimationOrigin(e,t=!1){let i,s=this.snapshot,n=s?s.latestValues:{},r={...this.latestValues},a=e7();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=te(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(n$));this.animationProgress=0,this.mixTargetDelta=t=>{let s=t/1e3;if(n_(a.x,e.x,s),n_(a.y,e.y,s),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,d,m,p,f,g;sD(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,p=this.relativeTargetOrigin,f=o,g=s,nU(m.x,p.x,f.x,g),nU(m.y,p.y,f.y,g),i&&(h=this.relativeTarget,d=i,ny(h.x,d.x)&&ny(h.y,d.y))&&(this.isProjectionDirty=!1),i||(i=te()),nl(i,this.relativeTarget)}l&&(this.animationValues=r,function(e,t,i,s,n,r){n?(e.opacity=P(0,i.opacity??1,nn(s)),e.opacityExit=P(t.opacity??1,0,nr(s))):r&&(e.opacity=P(t.opacity??1,i.opacity??1,s));for(let n=0;n<ne;n++){let r=`border${s9[n]}Radius`,a=ns(t,r),o=ns(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||ni(a)===ni(o)?(e[r]=Math.max(P(nt(a),nt(o),s),0),(W.test(o)||W.test(a))&&(e[r]+="%")):e[r]=o)}(t.rotate||i.rotate)&&(e.rotate=P(t.rotate||0,i.rotate||0,s))}(r,n,this.latestValues,s,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eh(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=el.update(()=>{var t,i,s;let n;sJ.hasAnimatedSinceResize=!0,ii.layout++,this.motionValue||(this.motionValue=e2(0)),this.currentAnimation=(t=this.motionValue,i=[0,1e3],s={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{ii.layout--},onComplete:()=>{ii.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(n=eK(t)?t:e2(t)).start(sd("",n,i,s)),n.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:i,layout:s,latestValues:n}=e;if(t&&i&&s){if(this!==e&&this.layout&&s&&nX(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||te();let t=sC(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let s=sC(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+s}
1nl(t,i),D(t,n),sN(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nT),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let s={};i.z&&nk("z",e,s,this.animationValues);for(let t=0;t<nj.length;t++)nk(`rotate${nj[t]}`,e,s,this.animationValues),nk(`skew${nj[t]}`,e,s,this.animationValues);for(let t in e.render(),s)e.setStaticValue(t,s[t]),this.animationValues&&(this.animationValues[t]=s[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=tq(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tq(t?.pointerEvents)||""),this.hasProjected&&!S(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1);return}e.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let r=function(e,t,i){let s="",n=e.x.translate/t.x,r=e.y.translate/t.y,a=i?.z||0;if((n||r||a)&&(s=`translate3d(${n}px, ${r}px, ${a}px) `),(1!==t.x||1!==t.y)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,rotateX:n,rotateY:r,skewX:a,skewY:o}=i;e&&(s=`perspective(${e}px) ${s}`),t&&(s+=`rotate(${t}deg) `),n&&(s+=`rotateX(${n}deg) `),r&&(s+=`rotateY(${r}deg) `),a&&(s+=`skewX(${a}deg) `),o&&(s+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(s+=`scale(${o}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(r=i(n,r)),e.transform=r;let{x:a,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,s.animationValues?e.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:e.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,tw){if(void 0===n[t])continue;let{correct:i,applyTo:a,isCSSVariable:o}=tw[t],l="none"===r?n[t]:i(n[t],s);if(a){let t=a.length;for(let i=0;i<t;i++)e[a[i]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=s===this?tq(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(nV),this.root.sharedNodes.clear()}}}function nS(e){e.updateLayout()}function nM(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=e.layout,{animationType:n}=e.options,r=t.source!==e.layout.source;"size"===n?sI(e=>{let s=r?t.measuredBox[e]:t.layoutBox[e],n=sC(s);s.min=i[e].min,s.max=s.min+n}):nX(n,t.layoutBox,i)&&sI(s=>{let n=r?t.measuredBox[s]:t.layoutBox[s],a=sC(i[s]);n.max=n.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[s].max=e.relativeTarget[s].min+a)});let a=e7();sN(a,i,t.layoutBox);let o=e7();r?sN(o,e.applyTransform(s,!0),t.measuredBox):sN(o,i,t.layoutBox);let l=!ng(a),h=!1;if(!e.resumeFrom){let s=e.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let a=te();sD(a,t.layoutBox,n.layoutBox);let o=te();sD(o,i,r.layoutBox),nv(a,o)||(h=!0),s.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=a,e.relativeParent=s)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function nC(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nE(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nN(e){e.clearSnapshot()}function nV(e){e.clearMeasurements()}function nR(e){e.isLayoutDirty=!1}function nD(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function nI(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function nL(e){e.resolveTargetDelta()}function nF(e){e.calcProjection()}
1function nB(e){e.resetSkewAndRotation()}function nO(e){e.removeLeadSnapshot()}function n_(e,t,i){e.translate=P(t.translate,0,i),e.scale=P(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function nU(e,t,i,s){e.min=P(t.min,i.min,s),e.max=P(t.max,i.max,s)}function n$(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let nW={duration:.45,ease:[.4,0,.1,1]},nH=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),nz=nH("applewebkit/")&&!nH("chrome/")?Math.round:en;function nY(e){e.min=nz(e.min),e.max=nz(e.max)}function nX(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(nb(t)-nb(i)))}function nq(e){return e!==e.root&&e.scroll?.wasRoot}let nK=nA({attachResizeListener:(e,t)=>sk(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nG={current:void 0},nZ=nA({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!nG.current){let e=new nK({});e.mount(window),e.setOptions({layoutScroll:!0}),nG.current=e}return nG.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function nJ(e,t){let i=function(e,t,i){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,i=(void 0)??t.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}(e),s=new AbortController;return[i,{passive:!0,...t,signal:s.signal},()=>s.abort()]}function nQ(e){return!("touch"===e.pointerType||sP.x||sP.y)}function n0(e,t,i){let{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&el.postRender(()=>n(t,sS(t)))}let n1=(e,t)=>!!t&&(e===t||n1(e,t.parentElement)),n2=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),n5=new WeakSet;function n3(e){return t=>{"Enter"===t.key&&e(t)}}function n4(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function n8(e){return sA(e)&&!(sP.x||sP.y)}function n6(e,t,i){let{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&el.postRender(()=>n(t,sS(t)))}let n7=new WeakMap,n9=new WeakMap,re=e=>{let t=n7.get(e.target);t&&t(e)},rt=e=>{e.forEach(re)},ri={some:0,all:1},rs=function(e,t){if("undefined"==typeof Proxy)return t5;let i=new Map,s=(i,s)=>t5(i,s,e,t);return new Proxy((e,t)=>s(e,t),{get:(n,r)=>"create"===r?s:(i.has(r)||i.set(r,t5(r,void 0,e,t)),i.get(r))})}({animation:{Feature:class extends sT{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let s;if(e.notify("AnimationStart",t),Array.isArray(t))s=Promise.all(t.map(t=>sf(e,t,i)));else if("string"==typeof t)s=sf(e,t,i);else{let n="function"==typeof t?t3(e,t,i.custom):t;s=Promise.all(sm(e,n,i))}return s.then(()=>{e.notify("AnimationComplete",t)})})(e,t,i))),i=sw(),s=!0,n=t=>(i,s)=>{let n=t3(e,s,"exit"===t?e.presenceContext?.custom:void 0);if(n){let{transition:e,transitionEnd:t,...s}=n;i={...i,...s,...t}}return i};function r(r){let{props:a}=e,o=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<sy;e++){let s=tl[e],n=t.props[s];(ta(n)||!1===n)&&(i[s]=n)}return i}(e.parent)||{},l=[],h=new Set,u={},c=1/0;for(let t=0;t<sv;t++){var d,m;let p=sx[t],f=i[p],g=void 0!==a[p]?a[p]:o[p],y=ta(g),x=p===r?f.isActive:null;!1===x&&(c=t);let v=g===o[p]&&g!==a[p]&&y;if(v&&s&&e.manuallyAnimateOnMount&&(v=!1),f.protectedKeys={...u},!f.isActive&&null===x||!g&&!f.prevProp||tr(g)||"boolean"==typeof g)continue;let b=(d=f.prevProp,"string"==typeof(m=g)?m!==d:!!Array.isArray(m)&&!sg(m,d)),w=b||p===r&&f.isActive&&!v&&y||t>c&&y,T=!1,j=Array.isArray(g)?g:[g],P=j.reduce(n(p),{});!1===x&&(P={});let{prevResolvedValues:k={}}=f,A={...k,...P},S=t=>{w=!0,h.has(t)&&(T=!0,h.delete(t)),f.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in A){let t=P[e],i=k[e];if(!u.hasOwnProperty(e))(t8(t)&&t8(i)?sg(t,i):t===i)?void 0!==t&&h.has(e)?S(e):f.protectedKeys[e]=!0:null!=t?S(e):h.add(e)}f.prevProp=g,f.prevResolvedValues=P,f.isActive&&(u={...u,...P}),s&&e.blockInitialAnimation&&(w=!1);let M=v&&b,C=!M||T;w&&C&&l.push(...j.map(t=>{let i={type:p};if("string"==typeof t&&s&&!M&&e.manuallyAnimateOnMount&&e.parent){let{parent:s}=e,n=t3(s,t);if(s.enteringChildren&&n){let{delayChildren:t}=n.transition||{};
1i.delay=sp(s.enteringChildren,e,t)}}return{animation:t,options:i}}))}if(h.size){let t={};if("boolean"!=typeof a.initial){let i=t3(e,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(t.transition=i.transition)}h.forEach(i=>{let s=e.getBaseTarget(i),n=e.getValue(i);n&&(n.liveStyle=!0),t[i]=s??null}),l.push({animation:t})}let p=!!l.length;return s&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(p=!1),s=!1,p?t(l):Promise.resolve()}return{animateChanges:r,setActive:function(t,s){if(i[t].isActive===s)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,s)),i[t].isActive=s;let n=r(t);for(let e in i)i[e].protectedKeys={};return n},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=sw()}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tr(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends sT{constructor(){super(...arguments),this.id=sj++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;let s=this.node.animationState.setActive("exit",!e);t&&!e&&s.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends sT{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:r="some",once:a}=i,o={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ri[r]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=t?i:s;n&&n(e)};return e=this.node.current,t=function({root:e,...t}){let i=e||document;n9.has(i)||n9.set(i,{});let s=n9.get(i),n=JSON.stringify(t);return s[n]||(s[n]=new IntersectionObserver(rt,{root:e,...t})),s[n]}(o),n7.set(e,l),t.observe(e),()=>{n7.delete(e),t.unobserve(e)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends sT{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[s,n,r]=nJ(e,i),a=e=>{let s=e.currentTarget;if(!n8(e))return;n5.add(s);let r=t(s,e),a=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),n5.has(s)&&n5.delete(s),n8(e)&&"function"==typeof r&&r(e,{success:t})},o=e=>{a(e,s===window||s===document||i.useGlobalTarget||n1(s,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",l,n)};return s.forEach(e=>{(i.useGlobalTarget?window:e).addEventListener("pointerdown",a,n),s4(e)&&"offsetHeight"in e&&(e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let s=n3(()=>{if(n5.has(i))return;n4(i,"down");let e=n3(()=>{n4(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>n4(i,"cancel"),t)});i.addEventListener("keydown",s,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),t)})(e,n)),n2.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),r}(e,(e,t)=>(n6(this.node,t,"Start"),(e,{success:t})=>n6(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends sT{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ie(sk(this.node.current,"focus",()=>this.onFocus()),sk(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends sT{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[s,n,r]=nJ(e,i),a=e=>{if(!nQ(e))return;let{target:i}=e,s=t(i,e);if("function"!=typeof s||!i)return;let r=e=>{nQ(e)&&(s(e),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,n)};
1return s.forEach(e=>{e.addEventListener("pointerenter",a,n)}),r}(e,(e,t)=>(n0(this.node,t,"Start"),e=>n0(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends sT{constructor(){super(...arguments),this.removePointerDownListener=en}onPointerDown(e){this.session=new sB(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sL(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:sG(e),onStart:sG(t),onMove:i,onEnd:(e,t)=>{delete this.session,s&&el.postRender(()=>s(e,t))}}}mount(){this.removePointerDownListener=sM(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends sT{constructor(e){super(e),this.removeGroupControls=en,this.removeListeners=en,this.controls=new sq(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||en}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:nZ,MeasureLayout:s5},layout:{ProjectionNode:nZ,MeasureLayout:s5}},(e,t)=>tD(e)?new tV(t):new tP(t,{allowProjection:e!==r.Fragment}));e.s(["motion",()=>rs],846932)},31501,e=>{"use strict";var t=e.i(843476),i=e.i(846932),s=e.i(271645),n=e.i(167881);
1let r=[{id:1,title:"Patient Calls Your Main Number",text:"You keep your existing clinic number. Incoming calls are routed through MedReception.ai's secure, HIPAA-grade telephony layer."},{id:2,title:"AI Answers in Under a Second",text:"Our AI greets patients in your clinic's tone of voice, detects intent, and handles common requests without putting callers on hold."},{id:3,title:"Smart Routing & Scheduling",text:"Calls are routed by provider, location, language, and insurance rulesâwith STAT consults flagged via Annie. Routine scheduling happens automatically in your tools."},{id:4,title:"Summaries & Follow-Up",text:"Every interaction is summarized. Voicemails are transcribed and prioritized so staff walk in to a clean, organized queue."}];function a(){let e=(0,s.useRef)(null);return(0,t.jsx)("section",{id:"how-it-works",className:"relative bg-[#f5f7fb] py-16 md:py-24",ref:e,children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl px-6",children:[(0,t.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,t.jsx)("h2",{className:"text-3xl font-semibold text-[#0c2040] md:text-4xl",children:"What happens on every call"}),(0,t.jsx)("p",{className:"mt-4 max-w-2xl text-lg text-gray-700",children:"Under the hood, MedReception.ai runs the same reliable playbook for every caller â whether they're new patients, referrals, or postop follow-ups."})]}),(0,t.jsxs)("div",{className:"relative mt-16",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute left-4 top-0 h-full w-[2px] overflow-hidden md:left-1/2",children:(0,t.jsx)(i.motion.div,{className:"h-full w-full bg-gradient-to-b from-[#103780] via-blue-300 to-transparent",initial:{y:-100,opacity:0},whileInView:{y:0,opacity:1},transition:{duration:1,ease:"easeOut"},viewport:{once:!0}})}),(0,t.jsx)("div",{className:"flex flex-col gap-8 md:gap-12",children:r.map((e,s)=>(0,t.jsxs)(i.motion.div,{className:`group relative flex flex-col gap-4 overflow-hidden rounded-2xl border border-white/70 bg-white p-6 shadow-lg transition-all duration-300 hover:shadow-xl hover:-translate-y-1 md:w-[48%] ${s%2==0?"md:ml-auto":"md:mr-auto"}`,initial:{opacity:0,x:s%2==0?50:-50},whileInView:{opacity:1,x:0,transition:{type:"spring",stiffness:100,damping:12,delay:.1*s}},viewport:{once:!0,amount:.2},whileHover:{scale:1.02},children:[(0,t.jsx)(i.motion.div,{className:"absolute -left-1 top-0 h-full w-1 bg-gradient-to-b from-[#103780] to-blue-400",initial:{scaleY:0},whileInView:{scaleY:1,transition:{duration:.6,delay:.2+.1*s,ease:[.22,1,.36,1]}},viewport:{once:!0}}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(i.motion.div,{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-[#103780] to-blue-500 text-white",initial:{scale:0},whileInView:{scale:1,transition:{type:"spring",stiffness:100,delay:.1+.1*s}},viewport:{once:!0},children:e.id}),(0,t.jsx)("h3",{className:"bg-gradient-to-r from-[#0c2040] to-blue-600 bg-clip-text text-lg font-semibold text-transparent",children:e.title})]}),(0,t.jsx)(i.motion.p,{className:"text-sm leading-relaxed text-gray-700",initial:{opacity:0,y:10},whileInView:{opacity:1,y:0,transition:{delay:.2+.1*s,duration:.4}},viewport:{once:!0},children:e.text}),(0,t.jsx)(i.motion.div,{className:"absolute inset-0 -z-10 bg-gradient-to-br from-blue-50 to-white opacity-0 group-hover:opacity-100",transition:{duration:.3}})]},e.id))})]}),(0,t.jsx)("div",{className:"mt-16 text-center",children:(0,t.jsx)(n.Button,{asChild:!0,className:"h-12 rounded-xl bg-[#103780] text-white hover:bg-[#0c2a5c]",children:(0,t.jsx)("a",{href:"/ai-assessment",children:"Get My Personalized Assessment"})})})]})})}e.s(["default",()=>a,"steps",0,r])},319445,e=>{"use strict";var t=e.i(843476),i=e.i(846932);let s=[{title:"Instant coverage",desc:"Spin up an AI receptionist that greets, routes, and books within daysânot months."},{title:"Patient-ready 24/7",desc:"After-hours, weekend, and overflow calls answered with summaries sent to your inbox."},{title:"HIPAA monitored",desc:"Compliance badge and monitored workflows keep PHI protected end to end."}];
1function n(){return(0,t.jsxs)("section",{id:"benefits",className:"relative overflow-hidden bg-gradient-to-r from-[#103780] via-[#0c244f] to-[#103780] py-16 sm:py-20 text-white",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_20%_20%,rgba(255,255,255,0.08),transparent_30%),radial-gradient(circle_at_80%_10%,rgba(255,255,255,0.06),transparent_25%),radial-gradient(circle_at_60%_70%,rgba(255,255,255,0.05),transparent_30%)]"}),(0,t.jsxs)("div",{className:"relative mx-auto max-w-6xl px-6",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 text-center sm:text-left sm:max-w-3xl",children:[(0,t.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-blue-100",children:"Why clinics switch"}),(0,t.jsxs)("h2",{className:"text-3xl sm:text-4xl font-bold leading-tight",children:["Less scrolling, faster decisions. ",(0,t.jsx)("span",{className:"text-blue-200",children:"Hereâs the snapshot."})]}),(0,t.jsx)("p",{className:"text-blue-50/80 text-base sm:text-lg",children:"Your next receptionist answers calls, books visits, and sends summaries instantly. No more missed callers or voicemail pileups."})]}),(0,t.jsx)("div",{className:"mt-10 grid gap-4 sm:grid-cols-3",children:s.map((e,s)=>(0,t.jsxs)(i.motion.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},transition:{duration:.35,delay:.08*s,ease:"easeOut"},viewport:{once:!0},className:"relative overflow-hidden rounded-2xl border border-white/10 bg-white/5 p-5 shadow-[0_12px_40px_-18px_rgba(0,0,0,0.6)] backdrop-blur-sm",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-white/5 to-transparent opacity-0 transition-opacity duration-300 hover:opacity-100"}),(0,t.jsx)("h3",{className:"text-xl font-semibold text-white",children:e.title}),(0,t.jsx)("p",{className:"mt-2 text-sm text-blue-50/80 leading-relaxed",children:e.desc})]},e.title))})]})]})}e.s(["default",()=>n])},769260,e=>{"use strict";var t=e.i(843476),i=e.i(271645),s=e.i(618566),n=e.i(3303);function r(){return null}var a=e.i(104187);let o={subtitle:"Book more patients in minutes. Launch an AI receptionist that answers, books, and summarizes every callâday or night.",primaryCta:"Book your demo",secondaryCta:"See pricing fast",phrases:["missed call solution.","24/7 front desk.","after-hours answer.","appointment filler.","patient capture system.","insurance & intake captured.","always-on receptionist.","revenue recovery tool."],footnote:"Demo this week · Immediate pricing here · Limited slots available",checklist:["Answers every call","Books visits in your system","Summaries for every caller in your portal"],secondaryAsLink:!0};var l=e.i(522016),h=e.i(890450),u=e.i(152697),c=e.i(285029);let d=[{title:"Built around your EHR.",detail:null},{title:"Built around your providers.",detail:"Schedules, locations, rules."},{title:"Built around your workflows.",detail:"New patients. Refills. Referrals."},{title:"Keep your number.",detail:"Just forward your calls."}];function m(){return(0,t.jsxs)("div",{className:"mx-auto w-full max-w-2xl",children:[(0,t.jsx)("div",{className:"relative left-1/2 right-1/2 -ml-[50vw] -mr-[50vw] w-screen -my-6 sm:-my-8",children:(0,t.jsx)(c.default,{showHeading:!1})}),d.map(e=>(0,t.jsxs)("div",{className:"border-t border-black/5 py-8 first:border-t-0 first:pt-8 sm:py-10 sm:first:pt-10",children:[(0,t.jsx)("h2",{className:"text-[2.34rem] font-bold tracking-tight text-[#0c2040] sm:text-[2.93rem]",children:e.title}),e.detail&&(0,t.jsx)("p",{className:"mt-2 text-[1.75rem] text-muted-foreground",children:e.detail}),"Built around your EHR."===e.title&&(0,t.jsxs)("p",{className:"mt-3 text-[1.75rem]",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:"Don't see your system? "}),(0,t.jsx)(l.default,{href:"/integrations",className:"font-semibold text-[#103780] underline-offset-4 hover:underline",children:"We'll build the connection."})]})]},e.title))]})}function p({videoId:e,label:s,onPlay:n,onProgress:r}){let[a,o]=(0,i.useState)(!1),l=(0,i.useCallback)(()=>o(!1),[]);return(0,i.useEffect)(()=>
1{if(!a)return;let e=e=>{"Escape"===e.key&&l()};document.addEventListener("keydown",e);let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=t}},[a,l]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mx-auto w-full max-w-[540px]",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{o(!0),n?.()},"aria-label":`Play video: ${s}`,className:"group relative block aspect-video w-full overflow-hidden rounded-xl shadow-sm ring-1 ring-black/5",children:[(0,t.jsx)("img",{src:`https://i.ytimg.com/vi_webp/${e}/maxresdefault.webp`,alt:"",className:"h-full w-full object-cover",loading:"lazy"}),(0,t.jsx)("span",{className:"absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("span",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-[linear-gradient(135deg,var(--primary),var(--accent))] shadow-lg transition-transform group-hover:scale-110",children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"ml-1 h-6 w-6 fill-white","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M8 5v14l11-7z"})})})})]}),(0,t.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:s})]}),a&&(0,t.jsx)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/80 p-4 backdrop-blur-sm",onClick:l,role:"dialog","aria-modal":"true","aria-label":s,children:(0,t.jsxs)("div",{className:"relative w-full max-w-5xl",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("button",{type:"button",onClick:l,"aria-label":"Close video",className:"absolute -top-10 right-0 text-sm font-medium text-white/80 hover:text-white",children:"Close â"}),(0,t.jsx)("div",{className:"relative aspect-video w-full overflow-hidden rounded-xl bg-black",children:(0,t.jsx)("iframe",{className:"h-full w-full",src:`https://www.youtube-nocookie.com/embed/${e}?autoplay=1&rel=0&modestbranding=1&controls=1&playsinline=1&enablejsapi=1`,title:s,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})})]})})]})}var f=e.i(167881),g=e.i(558249);let y=["missed call solution.","24/7 front desk.","after-hours answer.","appointment filler.","patient capture system.","insurance & intake captured.","always-on receptionist.","revenue recovery tool."];function x({subtitle:e,primaryCtaLabel:s="Get Started",secondaryCtaLabel:n="Explore Benefits",phrasesOverride:r,videoId:a="wyVOuRzTFsk",secondaryAsLink:o=!1,ctaFootnote:c,checklist:d,heroLayout:x="full",heroContent:v="current",trackScrollPastHero:b=!0}){let{openBooking:w}=(0,h.useBooking)(),T=(0,i.useMemo)(()=>r&&r.length>1?r:y,[r]),[j,P]=(0,i.useState)(0),k=(0,i.useMemo)(()=>T[j%T.length],[j,T]),A=(0,i.useMemo)(()=>T[(j+1)%T.length],[j,T]),[S,M]=(0,i.useState)(!1),[C,E]=(0,i.useState)(!1),N=(0,i.useMemo)(()=>T.reduce((e,t)=>e.length>=t.length?e:t),[T]);(0,i.useEffect)(()=>{let e=()=>{E(!0),setTimeout(()=>{requestAnimationFrame(()=>M(!0))},260),setTimeout(()=>{P(e=>(e+1)%T.length),M(!1),E(!1)},520)},t=null,i=()=>{null===t&&(t=window.setInterval(e,2500))},s=()=>{null!==t&&(clearInterval(t),t=null)};i();let n=()=>{document.hidden?s():(M(!1),E(!1),i())};return document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n),s()}},[260,260,T.length]);let V=()=>{try{"function"==typeof window.gtag&&window.gtag("event","video_engagement",{event_category:"video",event_label:"hero_demo_play",video_provider:"youtube",video_id:a,video_percent:0})}catch{}},R=e=>{try{"function"==typeof window.gtag&&window.gtag("event","video_engagement",{event_category:"video",event_label:`hero_demo_${e}pct`,video_provider:"youtube",video_id:a,video_percent:e})}catch{}},D=(0,i.useRef)(null),I=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{if(!b)return;let e=D.current;if(!e||"undefined"==typeof IntersectionObserver)return;let t=new IntersectionObserver(e=>{for(let i of e)i.isIntersecting||I.current||(I.current=!0,g.analytics.heroExit(),t.disconnect())},{threshold:0});return t.observe(e),()=>t.disconnect()},[b]),(0,t.jsxs)("section",{ref:D,id:"home",className:"relative isolate grain-overlay grain-bleed",children:[(0,t.jsx)("div",{"aria-hidden":!0,
1className:"pointer-events-none absolute left-1/2 bottom-[-16rem] -z-10 h-[36rem] w-[36rem] -translate-x-1/2 rounded-full",style:{background:"radial-gradient(closest-side, color-mix(in oklch, var(--secondary) 40%, transparent) 0%, transparent 70%)",filter:"blur(20px) saturate(120%)",opacity:.5}}),(0,t.jsxs)("div",{className:"mx-auto max-w-4xl lg:max-w-6xl px-4 py-8 sm:py-10 text-center",children:[(0,t.jsxs)("div",{className:"space-y-4",children:["v1"===v?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"text-xs font-semibold uppercase tracking-[0.16em] text-[#103780] sm:text-sm",children:"Physician-built"}),(0,t.jsx)("h1",{className:"mx-auto max-w-none text-[2.25rem] font-bold tracking-tight leading-[1.12] sm:text-[4.5rem]",children:"Your practice isn't generic."})]}):(0,t.jsx)("h1",{className:"text-[1.55rem] sm:text-5xl font-bold tracking-tight leading-[1.25]",children:(0,t.jsxs)("span",{className:"grid grid-cols-1 grid-flow-row gap-y-1 gap-x-2 min-[1800px]:inline-grid min-[1800px]:grid-cols-[auto_auto] min-[1800px]:grid-flow-col min-[1800px]:items-baseline",children:[(0,t.jsx)("span",{className:"justify-self-center text-center min-[1800px]:justify-self-end min-[1800px]:text-right min-[1800px]:whitespace-nowrap min-[1800px]:self-baseline leading-[1.25]",children:"Your practice's"}),(0,t.jsxs)("span",{className:"relative justify-self-center text-center min-[1800px]:justify-self-start min-[1800px]:text-left inline-block leading-[1.25] min-[1800px]:self-baseline pr-[0.4em] min-[1800px]:whitespace-nowrap align-baseline text-[1.4rem] sm:text-[1em]",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"invisible inline-block whitespace-nowrap select-none pointer-events-none pr-[0.3em]",children:N}),(0,t.jsxs)("span",{className:"absolute left-0 right-0 bottom-0 h-[1.4em] sm:h-[1.6em] w-full text-center min-[1800px]:text-left pb-[0.1em] pt-[0.05em] overflow-hidden",children:[(0,t.jsx)("span",{className:`absolute bottom-0 left-1/2 -translate-x-1/2 min-[1800px]:left-0 min-[1800px]:translate-x-0 z-10 inline-block whitespace-nowrap leading-[1.25] pr-[0.25em] bg-[linear-gradient(135deg,var(--primary),var(--accent))] bg-clip-text text-transparent ${C?"slide-fade-out-up":""}`,style:{WebkitTextFillColor:"transparent"},children:k}),S&&(0,t.jsx)("span",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 min-[1800px]:left-0 min-[1800px]:translate-x-0 z-10 inline-block whitespace-nowrap leading-[1.25] pr-[0.25em] bg-[linear-gradient(135deg,var(--primary),var(--accent))] bg-clip-text text-transparent slide-fade-in-up",style:{WebkitTextFillColor:"transparent"},children:A})]})]})]})}),(0,t.jsx)("p",{className:"v1"===v?"mx-auto max-w-none text-balance text-[1.75rem] font-bold tracking-tight leading-[1.18] pb-[0.12em] sm:text-[4.5rem] bg-[linear-gradient(135deg,var(--primary),var(--accent))] bg-clip-text text-transparent":"mx-auto max-w-2xl text-base text-muted-foreground sm:text-lg",style:"v1"===v?{WebkitTextFillColor:"transparent"}:void 0,children:"v1"===v?"Your AI receptionist shouldn't be either.":e||"Never miss a call. Never lose a patient. Your AI-powered receptionist is always on duty."}),"focused"===x?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,t.jsx)(f.Button,{size:"lg",onClick:()=>w("hero_primary"),children:"v1"===v?"Book your demo":s}),"v1"!==v&&(0,t.jsx)("a",{href:"/#pricing",className:"text-sm font-medium text-[#103780] underline-offset-4 hover:underline",onClick:()=>g.analytics.ctaClick("hero_secondary","/#pricing",{cta_label:n,hero_layout:"focused"}),children:n})]}):(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-3",children:[(0,t.jsx)(f.Button,{onClick:()=>w("hero_primary"),children:s}),(0,t.jsx)(f.Button,{asChild:!0,variant:o?"ghost":"outline",className:o?"text-[#103780] hover:text-[#0c2a5c]":"",children:(0,t.jsx)("a",{href:"See pricing fast"===n?"/#pricing":"#benefits",onClick:()=>g.analytics.ctaClick("hero_secondary","See pricing fast"===n?"/#pricing":"#benefits",{cta_label:n}),children:n})}),(0,t.jsx)(f.Button,{asChild:!0,className:"bg-[#103780] text-white hover:bg-[#0c2a5c]",children:(0,t.jsx)(l.default,{href:"/ai-assessment",onClick:()=>g.analytics.ctaClick("hero_assessment","/ai-assessment",{cta_label:"Get My Personalized Assessment"}),children:"Get My Personalized Assessment"})})]}),"v1"===v?(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:(0,t.jsx)("a",{href:"/#pricing",className:"font-medium text-[#103780] underline-offset-4 hover:underline",onClick:()=>g.analytics.ctaClick("hero_pricing","/#pricing",{cta_label:"Immediate pricing here",hero_content:"v1"}),children:"Immediate pricing here â"})}):c&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:c}),"v1"!==v&&d&&d.length>0&&(0,t.jsx)("div",{className:"mx-auto mt-2 flex flex-wrap items-center justify-center gap-2 text-sm text-muted-foreground",children:d.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-accent/40 px-3 py-1 text-[#0c2040]",children:[(0,t.jsx)("span",{"aria-hidden":!0,
1children:"â¢"}),e]},e))})]}),"v1"===v?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsx)(p,{videoId:a,label:"Hear it answer a call · 1:22",onPlay:V,onProgress:R})}),(0,t.jsx)("div",{className:"mt-6",children:(0,t.jsx)(m,{})})]}):(0,t.jsx)("div",{className:"relative mx-auto mt-10 aspect-video w-full overflow-hidden rounded-xl",children:(0,t.jsx)(u.default,{id:a,title:"Medreception AI Demo",className:"h-full w-full",onPlay:V,onProgress:R})})]})]})}var v=e.i(146701),b=e.i(382885),w=e.i(726243),T=e.i(437081),j=e.i(31501),P=e.i(319445);function k({href:e,ctaName:i,className:s,children:n}){return(0,t.jsx)(l.default,{href:e,className:s,onClick:t=>{g.analytics.ctaClick(i,e)},"data-cta-tracked":!0,children:n})}function A({experiment:e,variant:t}){return(0,i.useEffect)(()=>{try{"function"==typeof window.gtag&&((0,g.setExperimentArm)(t),window.gtag("set",{experiment_variant:t}),window.gtag("event","experiment_exposure",{experiment:e,variant:t}))}catch{}try{"function"==typeof window.fbq&&window.fbq("trackCustom","ExperimentExposure",{experiment:e,variant:t})}catch{}},[e,t]),null}let S="exp_home_hero_v1",M=[{title:"Why phone trees fail in real clinics",href:"/why-medreception/why-phone-trees-fail",description:"Misroutes create transfers, repeat calls, and lost context. The failure is structural, not staffing."},{title:"Voicemail is not triage",href:"/why-medreception/voicemail-is-not-triage",description:"Voicemail stores messages; it does not route intent. That's why after-hours work becomes backlog."},{title:"IVR is not AI",href:"/why-medreception/ivr-is-not-ai",description:"Menus can't capture clinical intent under stress. They push ambiguity downstream into rework."},{title:"After-hours call failures happen quietly",href:"/why-medreception/after-hours-call-failures",description:"Thin coverage + inconsistent escalation creates risk. Reliable outcomes require structure and ownership."},{title:"Reliability over hype",href:"/why-medreception/reliability-over-hype",description:"The benchmark isn't a demo. It's Monday morning: interruptions, volume spikes, and clean handoffs."},{title:"Front desk phone overload is a systems problem",href:"/why-medreception/front-desk-overload",description:"Too many call types share one queue. The fix is routing + documentation, not more apology calls."}],C=[{eyebrow:"SMS automation",title:"AI medical texting silo",body:"HIPAA-safe reminder and confirmation workflows, voice + SMS operations, and roadmap pages for AI text booking.",links:[{label:"SMS",href:"/ai-medical-text-messaging"},{label:"Confirmation texts after calls",href:"/ai-medical-text-messaging/confirmation-texts-after-calls"},{label:"HIPAA compliant medical texting",href:"/ai-medical-text-messaging/hipaa-compliant-medical-texting"}],cta:{label:"Open SMS silo ->",href:"/ai-medical-text-messaging"}},{eyebrow:"Patient experience",title:"Patient Experience Hub",body:"Transform every patient touchpointâfrom wait times to digital intake, communication, first contact, and care continuity.",links:[{label:"Wait time reduction",href:"/patient-experience/wait-times"},{label:"Digital intake flow",href:"/patient-experience/intake-flow"},{label:"First contact excellence",href:"/patient-experience/first-contact"}],cta:{label:"Explore patient experience ->",href:"/patient-experience"}},{eyebrow:"EMR playbooks",title:"EMR integrations & phone hubs",body:"See live EMR integrations (ECW, Athena, others), roadmap systems, and workflow guides that show how call data lands in your EMR.",links:[{label:"Integration overview",href:"/emr-integrations"},{label:"ECW phone automation",href:"/ecw"},{label:"Athena workflow hub",href:"/athena"}],cta:{label:"Browse EMR integrations ->",href:"/emr-integrations"}},{eyebrow:"Practice types",title:"Match by operating model",body:"Surgical, hybrid cash/insurance, multi-location, or community clinicsâsee how phones run today and how MedReception adapts.",links:[{label:"Surgical after-hours blueprint",href:"/practice-types/surgical-practice"},{label:"Hybrid insurance + cash intake flow",href:"/practice-types/hybrid-insurance-cash-practice"},{label:"Community clinic funding story",href:"/practice-types/community-health-clinic"}],cta:{label:"Browse practice types ->",href:"/practice-types"}}
1,{eyebrow:"Call types",title:"Document every high-friction call",body:"Escalation rules, scripts, and logging guidance for the calls that derail staff the most.",links:[{label:"Urgent but not ER calls",href:"/call-types/urgent-but-not-emergency"},{label:"Insurance verification sprint",href:"/call-types/insurance-verification-calls"},{label:"Referral status follow-up",href:"/call-types/referral-status-calls"}],cta:{label:"View call-type field guide ->",href:"/call-types"}},{eyebrow:"Phone problems",title:"Start with the pain",body:"Pinpoint missed calls, overflow, or front-desk overload and route straight to the right fix.",links:[{label:"Missed calls spiral",href:"/phone-problems/missed-calls"},{label:"Call overflow + voicemail piles",href:"/phone-problems/call-overflow"},{label:"Front-desk overload",href:"/phone-problems/front-desk-overload"}],cta:{label:"Explore phone problems ->",href:"/phone-problems"}},{eyebrow:"Revenue ops",title:"Lost Revenue Hub",body:"Model how missed calls, unworked voicemails, and bad routing turn into six-figure lossesâand see the AI fix.",links:[{label:"Missed-call revenue loss",href:"/lost-revenue/missed-call-revenue"},{label:"Voicemail backlog leakage",href:"/lost-revenue/voicemail-backlog-revenue"},{label:"After-hours lost revenue",href:"/lost-revenue/after-hours-revenue-loss"}],cta:{label:"Browse lost revenue hub ->",href:"/lost-revenue"}},{eyebrow:"Decisions & comparisons",title:"Win buy-in fast",body:"Hand execs the cost math, comparison grids, and next-step playbooks they keep asking for.",links:[{label:"Hire vs automate front desk",href:"/decisions/hire-vs-automate-front-desk"},{label:"AI vs human receptionist",href:"/ai-vs-human-receptionist"},{label:"AI vs live answering services",href:"/ai-answering-service-vs-live-agent"}],cta:{label:"See all decision guides ->",href:"/decisions"}}];function E({initialVariant:e,heroLayout:h,heroContent:u="current",heroContentForced:d=!1,bodyOrder:m="current",bodyOrderForced:p=!1}){let g=(0,s.useSearchParams)(),[y,E]=(0,i.useState)(e),R=g?.toString();(0,i.useEffect)(()=>{"undefined"==typeof document||V("exp_home_hero_content_v1")&&(document.cookie="exp_home_hero_content_v1=; path=/; max-age=0; SameSite=Lax")},[]),(0,i.useEffect)(()=>{"undefined"==typeof document||p||V("exp_home_body_order_v1")||(document.cookie=`exp_home_body_order_v1=${m}; path=/; max-age=2592000; SameSite=Lax`)},[m,p]),(0,i.useEffect)(()=>{let t=function(e){if(!e)return;let t=e.toUpperCase();return"A"===t||"B"===t?t:void 0}(g?.get("variant")||void 0),i=N(S),s=t??i??e;E(e=>s&&s!==e?s:e)},[R,e]),(0,i.useEffect)(()=>{N(S)!==y&&(document.cookie=`${S}=${y}; path=/; max-age=2592000; SameSite=Lax`)},[y]);let D=(0,i.useMemo)(()=>"B"===y?o:void 0,[y]),I=(0,t.jsx)("section",{className:"mx-auto mt-10 max-w-6xl px-4",children:(0,t.jsx)("div",{className:"rounded-2xl border border-blue-100 bg-gradient-to-r from-white via-[#f5f8ff] to-[#e8f2ff] p-6 shadow-[0_12px_30px_-18px_rgba(16,55,128,0.25)] sm:p-8",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("div",{className:"text-xs uppercase tracking-[0.35em] text-[#0c2040]",children:"Costs & ROI"}),(0,t.jsx)("h2",{className:"text-2xl font-semibold text-[#0c2040]",children:"See the financial case for AI reception"}),(0,t.jsxs)("p",{className:"text-sm text-gray-700",children:["Breakdowns on hiring, missed-call leakage, after-hours coverage, and the ROI of an"," ",(0,t.jsx)(l.default,{href:"/ai-medical-receptionist",className:"font-semibold text-[#103780] hover:underline",children:"AI medical receptionist"})," ","-- in one place."]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 md:items-end",children:[(0,t.jsx)(l.default,{href:"/medical-practice-costs",className:"inline-flex items-center rounded-full bg-[#103780] px-5 py-3 text-sm font-semibold text-white shadow-sm transition hover:bg-[#0c2a5c]",children:"Explore costs & ROI â"}),(0,t.jsx)(l.default,{href:"/medical-practice-costs/ai-receptionist-roi-executive-summary",className:"text-sm font-semibold text-[#103780] hover:underline",children:"Skim the executive summary â"}),(0,t.jsx)(l.default,{href:"/pricing#cost-calculator",className:"text-sm font-semibold text-[#103780] hover:underline",children:"Jump to the cost calculator â"})]})]})})});return(0,t.jsxs)("main",{"data-variant":y,children:[!p&&(0,t.jsx)(A,{experiment:"home-body-order-v1",variant:m}),(0,t.jsx)("h1",{className:"sr-only",children:"AI Medical Receptionist for Clinics, Surgeons, and Private Practices"}),(0,t.jsx)(r,{}),(0,t.jsx)(n.default,{id:"ld-json-org",type:"application/ld+json",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"Organization",name:"MedReception AI",url:"https://www.medreception.ai/",logo:{"@type":"ImageObject",url:"https://www.medreception.ai/images/medreception-logo-square.png",width:512,height:512},description:"Physician-built AI medical receptionist for solo practices, single-group medical practices, specialty clinics, and larger healthcare organizations.",founder:[{"@type":"Person",name:"Paul Toomey, MD",jobTitle:"Co-Founder & CEO",url:"https://www.medreception.ai/about/paul-toomey-md",description:"General surgeon and former independent practice owner. He has published and spoken nationally on healthcare operations and the practical use of AI in medicine.",sameAs:["https://www.linkedin.com/company/medreception-ai"]},{"@type":"Person",name:"Artur Horimoto",jobTitle:"Co-Founder & Technical Lead",url:"https://www.medreception.ai/why-medreception#artur-horimoto",description:"Systems engineer with a background in mechanical and aerospace engineering."}],sameAs:["https://www.linkedin.com/company/medreception-ai"]})}}),(0,t.jsx)(n.default,{id:"ld-json-website",type:"application/ld+json",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"WebSite",name:"MedReception AI",url:"https://www.medreception.ai/",primaryImageOfPage:{"@type":"ImageObject",url:"https://www.medreception.ai/images/medreception-search-preview.png",width:1200,height:1200}})}}),(0,t.jsx)(n.default,{id:"ld-json-faq",type:"application/ld+json",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:a.siteFaqs.map(e=>
1({"@type":"Question",name:e.q,acceptedAnswer:{"@type":"Answer",text:e.linkHref?`${e.a} Learn more: ${e.linkHref}`:e.a}}))})}}),(0,t.jsx)(x,{subtitle:D?.subtitle,primaryCtaLabel:D?.primaryCta,secondaryCtaLabel:D?.secondaryCta,phrasesOverride:D?.phrases,videoId:"wyVOuRzTFsk",secondaryAsLink:D?.secondaryAsLink??"B"===y,ctaFootnote:D?.footnote,checklist:D?.checklist,heroLayout:h,heroContent:u,trackScrollPastHero:!d}),"B"===y&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mx-auto mt-2 md:mt-4 max-w-6xl rounded-2xl border border-blue-100 bg-white px-6 py-5 shadow-[0_12px_30px_-18px_rgba(16,55,128,0.25)] sm:px-8 sm:py-6",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsx)("div",{className:"text-sm text-[#0c2040] font-semibold",children:"Real teams, real relief"}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 text-sm text-gray-700 items-stretch",children:[(0,t.jsxs)("div",{className:"rounded-2xl bg-blue-50 px-4 py-3 w-fit self-stretch",children:[(0,t.jsx)("div",{className:"font-semibold text-[#103780]",children:'"I can finally think again."'}),(0,t.jsxs)("div",{className:"text-xs text-gray-600 space-y-1",children:[(0,t.jsx)("span",{className:"block",children:"Scheduler & referral coordinator"}),(0,t.jsx)("span",{className:"block",children:"- Florida private practice"})]})]}),(0,t.jsxs)("div",{className:"rounded-2xl bg-blue-50 px-4 py-3 w-fit self-stretch",children:[(0,t.jsx)("div",{className:"font-semibold text-[#103780]",children:"37% of calls removed"}),(0,t.jsx)("div",{className:"text-xs text-gray-600",children:"RX refills automated · Texas family clinic"})]}),(0,t.jsxs)("div",{className:"rounded-2xl bg-blue-50 px-4 py-3 w-fit self-stretch",children:[(0,t.jsx)("div",{className:"font-semibold text-[#103780]",children:"33% fewer inbound"}),(0,t.jsx)("div",{className:"text-xs text-gray-600",children:"No missed calls after switch · Urology office"})]})]})]})}),(0,t.jsx)("div",{className:"mx-auto mt-6 max-w-6xl rounded-2xl border border-blue-100 bg-gradient-to-r from-white via-[#f5f8ff] to-[#e7f4ff] px-6 py-5 shadow-[0_12px_30px_-18px_rgba(16,55,128,0.35)] sm:px-8 sm:py-6",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{className:"space-y-2 text-sm text-gray-700",children:[(0,t.jsx)("div",{className:"font-semibold text-[#0c2040]",children:"Skip the scrollâsee if we fit in 10 minutes."}),(0,t.jsx)("div",{className:"flex flex-wrap gap-3 text-xs text-gray-600",children:[{label:"Live call demo",href:"/demo"},{label:"Immediate pricing here ->",href:"/#pricing"},{label:"HIPAA checklist included",href:"/hipaa-ai-receptionist"},{label:"Cerbo phone workflows ->",href:"/emr/cerbo-hub"},{label:"Hint phone workflows ->",href:"/emr/hint-hub"},{label:"SimplePractice phone workflows ->",href:"/emr/simplepractice-hub"},{label:"PatientNow phone workflows ->",href:"/emr/patientnow-hub"},{label:"Veracity phone workflows ->",href:"/emr/veracity-hub"},{label:"AI medical receptionist ->",href:"/ai-medical-receptionist"},{label:"AI medical office assistant ->",href:"/ai-medical-receptionist"},{label:"AI front desk medical ->",href:"/front-desk"},{label:"eClinicalWorks phone integration ->",href:"/ai-receptionist-eclinicalworks"}].map((e,i)=>(0,t.jsx)(l.default,{href:e.href,className:"rounded-full bg-white px-4 py-1.5 shadow-sm font-semibold text-[#103780] hover:underline",children:e.label},`${e.href}-${i}`))})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center",children:[(0,t.jsx)(f.Button,{size:"sm",className:"bg-[#103780] text-white hover:bg-[#0c2a5c]",asChild:!0,children:(0,t.jsx)(k,{href:"/book",ctaName:"home_variantB_start_demo",children:"Book your demo"})}),(0,t.jsx)(l.default,{href:"/#pricing",className:"text-sm font-semibold text-[#103780] hover:underline text-center",children:"View pricing"})]})]})})]}),"v1"!==u&&(0,t.jsx)(c.default,{}),"B"===y?(0,t.jsx)(P.default,{}):(0,t.jsx)(v.default,{}),(0,t.jsx)(j.default,{}),"v1"===m&&I,(0,t.jsx)("section",{className:"mx-auto mt-10 max-w-6xl px-4",children:(0,t.jsxs)("div",{className:"rounded-3xl border border-blue-100 bg-gradient-to-br from-[#f1f6ff] to-white p-6 shadow-[0_12px_30px_-18px_rgba(16,55,128,0.3)] sm:p-8",children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.35em] text-[#4c6ed4]",children:"Growing rapidly across medical practices"}),(0,t.jsx)("h2",{className:"mt-3 text-2xl font-semibold text-[#0c2040] sm:text-3xl",children:"A physician-built AI receptionist, trusted by a fast-growing base of medical practices"}),(0,t.jsx)("p",{className:"mt-3 max-w-3xl text-sm text-gray-700 sm:text-base",children:"MedReception AI is a physician-built AI medical receptionist for solo physicians, single-group medical practices operating from one or multiple locations, and larger multi-practice healthcare organizations. It grew its active client base ninefold during the first half of 2026, driven primarily by adoption among solo physicians and single-group medical practices. Unlike generic, one-size-fits-all answering bots, every system is configured, tested, and refined around each practice's own scheduling rules, call routing, escalation protocols, intake requirements, providers, locations, and existing technology."}),(0,t.jsxs)("div",{className:"mt-6 grid gap-4 sm:grid-cols-3",children:[(0,t.jsxs)("div",{className:"rounded-2xl border border-blue-100 bg-white p-5 text-center shadow-sm",children:[(0,t.jsx)("p",{className:"text-xl font-bold text-[#103780] sm:text-2xl",children:"Ninefold growth"}),(0,t.jsx)("p",{className:"mt-1 text-xs text-gray-600 sm:text-sm",children:"Active client base, first half of 2026"})]}),(0,t.jsxs)("div",{className:"rounded-2xl border border-blue-100 bg-white p-5 text-center shadow-sm",children:[(0,t.jsx)("p",{className:"text-xl font-bold text-[#103780] sm:text-2xl",children:"Nearly 9 in 10"}),(0,t.jsx)("p",{className:"mt-1 text-xs text-gray-600 sm:text-sm",children:"Solo or single-group medical practices"})]}),(0,t.jsxs)("div",{className:"rounded-2xl border border-blue-100 bg-white p-5 text-center shadow-sm",children:[(0,t.jsx)("p",{className:"text-xl font-bold text-[#103780] sm:text-2xl",children:"Built around your practice"}),(0,t.jsx)("p",{className:"mt-1 text-xs text-gray-600 sm:text-sm",children:"Customized, not one-size-fits-all"})]})]})]})}),(0,t.jsx)("section",{className:"mx-auto mt-10 max-w-6xl px-4",children:(0,t.jsx)("div",{className:"rounded-3xl border border-blue-100 bg-gradient-to-r from-white via-[#f5f8ff] to-[#e7f4ff] p-6 shadow-[0_12px_30px_-18px_rgba(16,55,128,0.3)] sm:p-8",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{className:"text-xs uppercase tracking-[0.35em] text-[#0c2040]",children:"Trust + action"}),(0,t.jsx)("h2",{className:"text-2xl font-semibold text-[#0c2040]",children:"Book your demo"}),(0,t.jsx)("p",{className:"text-sm text-gray-700 max-w-2xl",children:"See how Katie + Annie handle intake, scheduling, and after-hours safely. Review HIPAA and PIPEDA posture before you lau
1nch."})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 md:flex-row md:items-center",children:[(0,t.jsx)(f.Button,{size:"sm",className:"bg-[#103780] text-white hover:bg-[#0c2a5c]",asChild:!0,children:(0,t.jsx)(k,{href:"/book",ctaName:"home_trust_book_demo",children:"Book your demo"})}),(0,t.jsx)(l.default,{href:"/compliance",className:"text-sm font-semibold text-[#103780] hover:underline text-center",children:"Compliance & HIPAA overview â"}),(0,t.jsx)(l.default,{href:"/security",className:"text-sm font-semibold text-[#103780] hover:underline text-center",children:"Security controls â"})]})]})})}),"v1"!==m&&I,(0,t.jsx)(b.default,{variant:y}),(0,t.jsx)("section",{className:"mx-auto mt-10 max-w-6xl px-4",children:(0,t.jsxs)("div",{className:"rounded-3xl bg-gradient-to-br from-[#0E2A47] to-[#103780] p-8 text-white shadow-[0_25px_80px_-45px_rgba(16,55,128,0.8)] sm:p-10",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("p",{className:"text-xs uppercase tracking-[0.4em] text-white/60",children:"Choose your lens"}),(0,t.jsx)("h2",{className:"text-3xl font-semibold",children:"Fix the exact phone problem in two clicks"}),(0,t.jsx)("p",{className:"text-sm text-white/80",children:"Pick the pathway that matches your next meetingâoperational playbooks, call-type field guides, phone problems, or exec-ready decision content."})]}),(0,t.jsx)("div",{className:"mt-8 grid gap-4 md:grid-cols-2",children:C.map(e=>(0,t.jsxs)("div",{className:"group rounded-2xl border border-white/10 bg-white/5 p-6 shadow-inner shadow-black/10 transition hover:-translate-y-1",children:[(0,t.jsx)("div",{className:"text-[11px] uppercase tracking-[0.35em] text-white/70",children:e.eyebrow}),(0,t.jsx)("div",{className:"mt-2 text-xl font-semibold",children:e.title}),(0,t.jsx)("p",{className:"mt-2 text-sm text-white/80",children:e.body}),(0,t.jsx)("div",{className:"mt-4 space-y-2 text-sm text-white/90",children:e.links.map(e=>(0,t.jsxs)(l.default,{href:e.href,className:"flex items-center gap-2 text-white/90 hover:text-white",children:[(0,t.jsx)("span",{className:"text-white/60",children:"â"}),(0,t.jsx)("span",{children:e.label})]},e.href))}),(0,t.jsx)(l.default,{href:e.cta.href,className:"mt-5 inline-flex items-center rounded-2xl border border-white/40 px-4 py-2 text-sm font-semibold text-white transition hover:border-white",children:e.cta.label})]},e.title))})]})}),(0,t.jsx)(w.default,{}),(0,t.jsx)(T.default,{}),(0,t.jsx)("section",{className:"mx-auto mt-6 max-w-6xl px-4 pb-16",children:(0,t.jsxs)("div",{className:"rounded-3xl border border-blue-100 bg-gradient-to-r from-white via-[#f5f8ff] to-[#e8f2ff] p-6 shadow-[0_12px_30px_-18px_rgba(16,55,128,0.25)] sm:p-8",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:items-start md:justify-between",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("div",{className:"text-xs uppercase tracking-[0.35em] text-[#0c2040]",children:"Why we built it"}),(0,t.jsx)("h2",{className:"text-2xl font-semibold text-[#0c2040]",children:"The âWhy MedReceptionâ library"}),(0,t.jsx)("p",{className:"text-sm text-gray-700 max-w-2xl leading-relaxed",children:"Why phone trees fail, why voicemail becomes backlog, and why reliability matters more than feature lists. If you're evaluating MedReception, start here."})]}),(0,t.jsx)("div",{className:"flex flex-col gap-2 md:items-end",children:(0,t.jsx)(l.default,{href:"/why-medreception",className:"inline-flex items-center rounded-full bg-[#103780] px-5 py-3 text-sm font-semibold text-white shadow-sm transition hover:bg-[#0c2a5c]",children:"Explore the Why Library â"})})]}),(0,t.jsx)("div",{className:"mt-6 grid gap-3 md:grid-cols-2",children:M.map(e=>(0,t.jsxs)(l.default,{href:e.href,className:"group rounded-2xl border border-blue-100 bg-white/80 p-5 shadow-sm transition hover:-translate-y-0.5 hover:border-blue-200",children:[(0,t.jsxs)("div",{className:"text-sm font-semibold text-[#0c2040] group-hover:text-[#103780]",children:[e.title," â"]}),(0,t.jsx)("div",{className:"mt-2 text-sm text-gray-700 leading-relaxed",children:e.description})]},e.href))})]})})]})}function N(e){if("undefined"==typeof document)return;let t=document.cookie.split("; ").find(t=>t.startsWith(`${e}=`)),i=t?.split("=")[1];return"A"===i||"B"===i?i:void 0}function V(e){if("undefined"!=typeof document)return document.cookie.split("; ").find(t=>t.startsWith(`${e}=`))?.split("=")[1]}e.s(["default",()=>E],769260)}]);
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.