PageSourceSearch

https://perxel.com/_next/static/chunks/3ju39g9i8ay09.js

js perxel.com collected 2026-10-06 13:37:53 UTC 129,381 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,17364,t=>{"use strict";var e=t.i(38397),i=t.i(95331),s=t.i(17229),n=t.i(61641),r=t.i(8158),o=t.i(78094),a=t.i(47163),l=t.i(49415);t.s(["default",0,function({items:t,className:h,showIndex:u=!0,hover:d=!1}){let c=(0,i.useRef)(null),p=(0,i.useRef)([]),[m,f]=(0,i.useState)(null),[g,y]=(0,i.useState)(null),[v,x]=(0,i.useState)(!1),[w,T]=(0,i.useState)(!1),b=(0,r.useReducedMotion)(),S=(0,n.useMotionValue)(0),P=(0,n.useMotionValue)(0),A=(0,o.useSpring)(S,{stiffness:350,damping:30,mass:.4}),E=(0,o.useSpring)(P,{stiffness:350,damping:30,mass:.4});(0,i.useEffect)(()=>{let t=window.matchMedia("(min-width: 1024px)"),e=window.matchMedia("(pointer: fine)"),i=()=>{x(t.matches),T(e.matches)};return i(),t.addEventListener("change",i),e.addEventListener("change",i),()=>{t.removeEventListener("change",i),e.removeEventListener("change",i)}},[]);let M=d&&v&&w&&!b,V=!d&&v;(0,i.useEffect)(()=>{if(!V)return;let e=t.map((t,e)=>t.lottie?p.current[e]:null).filter(t=>null!==t);if(!e.length)return;let i=new Set,s=null,n=new IntersectionObserver(t=>{for(let e of t)e.isIntersecting?i.add(e.target):i.delete(e.target);(()=>{let t=window.innerHeight/2,e=null,n=1/0,r=null;for(let s of i){let i=s.getBoundingClientRect(),o=Math.abs((i.top+i.bottom)/2-t);o<n&&(n=o,e=Number(s.dataset.rowIndex),r=i)}if(e===s)return;f(e);let o=r;if(null!==e&&o){y(e);let t=c.current?.getBoundingClientRect();if(t){let e=o.left+o.width/2-296-t.left,i=o.top+o.height/2-148-t.top;S.set(e),P.set(i),null===s&&(A.jump(e),E.jump(i))}}s=e})()},{rootMargin:"-50% 0px -50% 0px"});return e.forEach(t=>n.observe(t)),()=>n.disconnect()},[V,t,S,P,A,E]),(0,i.useEffect)(()=>{M||V||f(null)},[M,V]);let C=(t,e,i=!1)=>{let s=t-148,n=e-148;S.set(s),P.set(n),i&&(A.jump(s),E.jump(n))},k=M||V,D=null!==g?t[g]?.lottie:void 0;return(0,e.jsxs)("div",{ref:c,className:(0,a.cn)("px-feature-rows relative",h),onPointerMove:M?t=>C(t.clientX,t.clientY):void 0,onPointerLeave:M?()=>f(null):void 0,children:[t.map((t,i)=>(0,e.jsxs)("div",{ref:t=>{p.current[i]=t},"data-row-index":i,onPointerEnter:M&&t.lottie?t=>{C(t.clientX,t.clientY,null===m),f(i),y(i)}:void 0,className:"relative grid grid-cols-12 gap-x-4 border-t border-black/5 py-10 lg:gap-8 lg:py-16",children:[(0,e.jsxs)("div",{className:"col-span-12 lg:col-span-5",children:[u&&(0,e.jsx)("span",{className:"mb-4 block font-mono text-xs uppercase tracking-[0.2em] text-brand-blue",children:t.n??String(i+1).padStart(2,"0")}),(0,e.jsx)("h3",{className:"text-2xl leading-[1.15] text-[#111] lg:text-3xl",children:t.title}),t.logos&&t.logos.length>0&&(0,e.jsx)("div",{className:"mt-4 flex flex-wrap items-center gap-3",children:t.logos.map(t=>(0,e.jsx)("img",{src:t.src,alt:t.alt,width:24,height:24,loading:"lazy",className:"h-6 w-6 object-contain"},t.src))})]}),(0,e.jsxs)("div",{className:"col-span-12 mt-4 max-w-prose lg:col-span-6 lg:col-start-7 lg:mt-0",children:[t.body,t.lottie&&!v&&(0,e.jsx)(l.default,{src:t.lottie,once:!0,aspectRatio:"1 / 1",className:"mx-auto mt-6 max-w-[480px] lg:hidden"})]})]},i)),k&&D&&(0,e.jsx)(s.motion.div,{"aria-hidden":!0,initial:{opacity:0,scale:.85},animate:{opacity:+(null!==m),scale:null!==m?1:.85},transition:{duration:.2,ease:"easeOut"},style:{position:M?"fixed":"absolute",top:0,left:0,x:A,y:E,width:296,height:296,willChange:"transform, opacity"},className:"pointer-events-none z-40",children:(0,e.jsx)(l.default,{src:D,playOnView:!1,play:null!==m,aspectRatio:"1 / 1"})})]})}])},8158,78094,t=>{"use strict";var e=t.i(97295),i=t.i(20220),s=t.i(95331);t.s(["useReducedMotion",0,function(){e.hasReducedMotionListener.current||(0,i.initPrefersReducedMotion)();let[t]=(0,s.useState)(e.prefersReducedMotion.current);return t}],8158),t.i(37818);var n=t.i(60038),r=t.i(87179),o=t.i(1247),a=t.i(65119),l=t.i(98976);let h=new Set,u=({timestamp:t})=>{h.forEach(e=>e.tick(t))};class d extends a.WithPromise{constructor(t){super(),this.state="idle",this.startTime=0,this.currentTime=0,this.started=!1,this.hasNextTarget=!1,this.nextTarget=0,this.stop=()=>{"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.factory=t.type,this.generator=this.factory(t);const{driver:e}=t;e&&(this.driver=e(t=>this.tick(t))),this.startTime=this.now(),this.state="running",this.driver?this.driver.start():(h.size||l.frame.update(u,!0),h.add(this))}setTarget(t,e){this.nextTarget=t,this.nextVelocity=e,this.hasNextTarget=!0}retarget(t,e){let{options:i,generator:s}=this;i.keyframes=t,i.velocity=e,this.startTime=this.now(),this.currentTime=0,s.retarget?s.retarget(t,e):this.generator=this.factory(i)}tick(t){let{options:e,hasNextTarget:i}=this,{delay:s=0,onUpdate:n,onPlay:r}=e,o=Math.round(t-this.startTime)-s,a=this.currentTime=Math.max(0,o),l=this.generator.next(a),h=o<0?e.keyframes[0]:l.value;if(i){this.hasNextTarget=!1;let{keyframes:t}=e;t[0]=h,t[1]=this.nextTarget,this.retarget(t,this.nextVelocity??this.getGeneratorVelocity())}(i||!this.started)&&(this.started=!0,r?.()),"running"===this.state&&(n?.(h),l.done&&o>=0&&!i&&!this.hasNextTarget&&"running"===this.state&&(this.notifyFinished(),this.teardown(),this.state="finished",e.onComplete?.()))}getGeneratorVelocity(){return(0,o.calcGeneratorVelocity)(this.generator,this.currentTime,this.options.velocity)}now(){return this.driver?this.driver.now():r.time.now()}teardown(){this.state="idle",this.driver?this.driver.stop():(h.delete(this),h.size||(0,l.cancelFrame)(u))}}var c=t.i(4093),p=t.i(15575);
1function m(t,e,i){return function(t,e,i){let s,n=t.get(),r=null,o="string"==typeof n?n.replace(/[\d.-]/g,""):void 0,a=t=>s(o?t+o:t),l=()=>t.events.animationStart?.notify(),h=()=>{r&&(r.stop(),r=null),t.animation=void 0};if(t.attach((e,n)=>{s=n;let o=(0,c.asNumber)(e);if(r?.state==="running")return void r.setTarget(o,i.velocity);let u=(0,c.asNumber)(t.get()),p=r?r.getGeneratorVelocity():t.getVelocity();if(h(),u===o)return;let m=r=new d({...{keyframes:[u,o],velocity:p,restDelta:.001,restSpeed:.01,...i,onUpdate:a},onPlay:l});t.animation=m,m.then(()=>{r===m&&(r=null,t.animation=void 0,t.events.animationComplete?.notify())})},h),(0,p.isMotionValue)(e)){let s=!0===i.skipInitialAnimation,n=e.on("change",e=>{var i,n,r,a;s?(s=!1,t.jump((i=e,(n=o)?i+n:i),!1)):t.set((r=e,(a=o)?r+a:r))}),r=t.on("destroy",n);return()=>{n(),r()}}return h}(t,e,{...i,type:n.spring})}t.i(82932),t.i(41323);var f=t.i(63474),g=t.i(61641),y=t.i(31865);t.s(["useSpring",0,function(t,e={}){return function(t,e,i){let{isStatic:n}=(0,s.useContext)(f.MotionConfigContext),r=()=>(0,p.isMotionValue)(t)?t.get():t;if(n)return(0,y.useTransform)(r);let o=(0,g.useMotionValue)(r());return(0,s.useInsertionEffect)(()=>i(o,t,e),[o,JSON.stringify(e)]),o}(t,e,m)}],78094)},17229,15575,98976,65119,87179,37818,97295,20220,63474,60038,82932,1247,41323,4093,61641,31865,t=>{"use strict";let e,i,s,n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set([...n,"pathRotation"]),o=(t,e,i)=>i>e?e:i<t?t:i,a={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},l={...a,transform:t=>o(0,1,t)},h={...a,default:1},u=t=>Math.round(1e5*t)/1e5,d=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,c=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,p=(t,e)=>i=>!!("string"==typeof i&&c.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),m=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[n,r,o,a]=s.match(d);return{[t]:parseFloat(n),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},f={...a,transform:t=>Math.round(o(0,255,t))},g={test:p("rgb","red"),parse:m("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+f.transform(t)+", "+f.transform(e)+", "+f.transform(i)+", "+u(l.transform(s))+")"},y={test:p("#"),parse:function(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}},transform:g.transform},v=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),x=v("deg"),w=v("%"),T=v("px"),b=v("vh"),S=v("vw"),P={...w,parse:t=>w.parse(t)/100,transform:t=>w.transform(100*t)},A={test:p("hsl","hue"),parse:m("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+w.transform(u(e))+", "+w.transform(u(i))+", "+u(l.transform(s))+")"},E={test:t=>g.test(t)||y.test(t)||A.test(t),parse:t=>g.test(t)?g.parse(t):A.test(t)?A.parse(t):y.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?g.transform(t):A.transform(t),getAnimatableNone:t=>{let e=E.parse(t);return e.alpha=0,E.transform(e)}},M=new RegExp(d.source),V=RegExp(/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu.source,"i"),C="number",k="color",D=/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 R(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,o=e.replace(D,t=>(E.test(t)?(s.color.push(r),n.push(k),i.push(E.parse(t))):t.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(t)):(s.number.push(r),n.push(C),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:s,types:n}}function L({split:t,types:e}){let i=t.length;return s=>{let n="";for(let r=0;r<i;r++)if(n+=t[r],void 0!==s[r]){let t=e[r];t===C?n+=u(s[r]):t===k?n+=E.transform(s[r]):n+=s[r]}return n}}let j={test:function(t){return isNaN(t)&&"string"==typeof t&&(M.test(t)||V.test(t))},parse:function(t){return R(t).values},createTransformer:function(t){return L(R(t))},getAnimatableNone:function(t){let e=R(t);return L(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:E.test(t)?E.getAnimatableNone(t):t)(t,e.split[i])))}},B=new Set(["brightness","contrast","saturate","opacity"]);function F(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(d)||[];if(!s)return t;let n=i.replace(s,""),r=+!!B.has(e);return s!==i&&(r*=100),e+"("+r+n+")"}let I=/\b([a-z-]*)\(.*?\)/gu,O={...j,getAnimatableNone:t=>{let e=t.match(I);return e?e.map(F).join(" "):t}},N={...j,getAnimatableNone:t=>{let e=j.parse(t);return j.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},U={...a,transform:Math.round},W={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,borderTopLeftRadius:T,borderTopRightRadius:T,borderBottomRightRadius:T,borderBottomLeftRadius:T,width:T,maxWidth:T,height:T,maxHeight:T,top:T,right:T,bottom:T,left:T,inset:T,insetBlock:T,insetBlockStart:T,insetBlockEnd:T,insetInline:T,insetInlineStart:T,insetInlineEnd:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,paddingBlock:T,paddingBlockStart:T,paddingBlockEnd:T,paddingInline:T,paddingInlineStart:T,paddingInlineEnd:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,marginBlock:T,marginBlockStart:T,marginBlockEnd:T,marginInline:T,marginInlineStart:T,marginInlineEnd:T,fontSize:T,backgroundPositionX:T,backgroundPositionY:T,rotate:
1x,pathRotation:x,rotateX:x,rotateY:x,rotateZ:x,scale:h,scaleX:h,scaleY:h,scaleZ:h,skew:x,skewX:x,skewY:x,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:l,originX:P,originY:P,originZ:T,zIndex:U,fillOpacity:l,strokeOpacity:l,numOctaves:U},$={...W,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:O,WebkitFilter:O,mask:N,WebkitMask:N},z=t=>$[t],Y=()=>({translate:0,scale:1,origin:0,originPoint:0}),X=()=>({x:Y(),y:Y()}),H=()=>({min:0,max:0}),K=()=>({x:H(),y:H()}),_=t=>!!(t&&t.getVelocity);t.s(["isMotionValue",0,_],15575);let G=new Set(["width","height","top","left","right","bottom",...n]),q=[a,T,w,x,S,b,{test:t=>"auto"===t,parse:t=>t}],Z=t=>q.find(e=>e.test(t)),J=()=>{},Q=()=>{},tt=t=>e=>"string"==typeof e&&e.startsWith(t),te=tt("--"),ti=tt("var(--"),ts=t=>!!ti(t)&&tn.test(t.split("/*")[0].trim()),tn=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tr(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let to=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ta=new Set([O,N]);function tl(t,e){let i=z(t);return ta.has(i)||(i=j),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let th=t=>180*t/Math.PI,tu=t=>tc(th(Math.atan2(t[1],t[0]))),td={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tu,rotateZ:tu,skewX:t=>th(Math.atan(t[1])),skewY:t=>th(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tc=t=>((t%=360)<0&&(t+=360),t),tp=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tm=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tf={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tp,scaleY:tm,scale:t=>(tp(t)+tm(t))/2,rotateX:t=>tc(th(Math.atan2(t[6],t[5]))),rotateY:t=>tc(th(Math.atan2(-t[2],t[0]))),rotateZ:tu,rotate:tu,skewX:t=>th(Math.atan(t[4])),skewY:t=>th(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tg(t){return+!!t.includes("scale")}function ty(t,e){let i,s;if(!t||"none"===t)return tg(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=tf,s=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=td,s=e}if(!s)return tg(e);let r=i[e],o=s[1].split(",").map(tv);return"function"==typeof r?r(o):o[r]}function tv(t){return parseFloat(t.trim())}let tx=t=>t===a||t===T,tw=new Set(["x","y","z"]),tT=n.filter(t=>!tw.has(t)),tb=new Set(["bottom","right"]);function tS(t,e,i,s,n,r){let o=parseFloat(t);if(!isNaN(o))return o;let{min:a,max:l}=e()[i],h=l-a;return"border-box"===r?h:h-parseFloat(s)-parseFloat(n)}let tP={width:({width:t,paddingLeft:e="0",paddingRight:i="0",boxSizing:s},n)=>tS(t,n,"x",e,i,s),height:({height:t,paddingTop:e="0",paddingBottom:i="0",boxSizing:s},n)=>tS(t,n,"y",e,i,s),top:({top:t})=>parseFloat(t),left:({left:t})=>parseFloat(t),bottom:({top:t},e)=>{let{y:i}=e();return parseFloat(t)+(i.max-i.min)},right:({left:t},e)=>{let{x:i}=e();return parseFloat(t)+(i.max-i.min)},x:({transform:t})=>ty(t,"x"),y:({transform:t})=>ty(t,"y")};tP.translateX=tP.x,tP.translateY=tP.y;let tA=t=>t,tE={},tM=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tV(t,e,i={delta:0,timestamp:0,isProcessing:!1}){let s=!1,n=!0,r=()=>s=!0,o=tM.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,s=!1,n=!1,r=new Set,o={delta:0,timestamp:0,isProcessing:!1};function a(e){r.has(e)&&(i.add(e),t()),e(o)}let l={schedule:(t,n=!1,o=!1)=>{let a=o&&s?e:i;return n&&r.add(t),a.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>{if(o=t,s){n=!0;return}s=!0;let r=e;e=i,i=r,e.forEach(a),e.clear(),s=!1,n&&(n=!1,l.process(t))}};return l}(r),t),{}),{setup:a,read:l,resolveKeyframes:h,preUpdate:u,update:d,preRender:c,render:p,postRender:m}=o,f=()=>{let r=tE.useManualTiming,o=r?i.timestamp:performance.now();s=!1,r||(i.delta=n?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,a.process(i),l.process(i),h.process(i),u.process(i),d.process(i),c.process(i),p.process(i),m.process(i),i.isProcessing=!1,s&&e&&(n=!1,t(f))};return{schedule:tM.reduce((e,r)=>{let a=o[r];return e[r]=(e,r=!1,o=!1)=>(!s&&(s=!0,n=!0,i.isProcessing||t(f)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;e<tM.length;e++)o[tM[e]].cancel(t)},state:i,steps:o}}let tC={delta:0,timestamp:0,isProcessing:!1},{schedule:tk,cancel:tD,steps:tR}=tV("u">typeof requestAnimationFrame?requestAnimationFrame:tA,!0,tC);t.s(["cancelFrame",0,tD,"frame",0,tk,"frameSteps",0,tR],98976);let tL=new Set,tj=!1,tB=!1,tF=!1;function tI(){if(tB){let t=[],e=new Set,i=new Set;
1tL.forEach(s=>{s.needsMeasurement&&(t.push(s),e.add(s.element),tb.has(s.name)&&i.add(s.element))});let s=new Map;i.forEach(t=>{let e,i=(e=[],tT.forEach(i=>{let s=t.getValue(i);if(void 0!==s){let t=s.get(),n=+!!i.startsWith("scale");if(t===n)return;e.push([i,t]),s.set(n)}}),e);i.length&&(s.set(t,i),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=s.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tB=!1,tj=!1,tL.forEach(t=>t.complete(tF)),tL.clear()}function tO(){tL.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tB=!0)})}class tN{constructor(t,e,i,s,n,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tL.add(this),tj||(tj=!0,tk.read(tO),tk.resolveKeyframes(tI))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;if(null===t[0]){let n=s?.get(),r=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let s=function(t,e,i){if("string"==typeof t){if(/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)||/^0[^.\s]+$/u.test(t))return parseFloat(t);if(!j.test(t)&&j.test(i))return tl(e,i)}return t??void 0}(i.readValue(e,r),e,r);void 0!==s&&(t[0]=s)}void 0===t[0]&&(t[0]=r),s&&void 0===n&&s.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tL.delete(this)}cancel(){"scheduled"===this.state&&(tL.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tU=new Set(["auto","none","0"]);class tW extends tN{constructor(t,e,i,s,n){super(t,e,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&ts(s=s.trim())){let n=function t(e,i,s=1){Q(`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,r]=function(t){let e=to.exec(t);if(!e)return[,];let[,i,s,n]=e;return[`--${i??s}`,n]}(e);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return ts(r)?t(r,i,s+1):r}(s,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!G.has(i)||2!==t.length)return;let[s,n]=t;if("number"==typeof s&&"number"==typeof n)return;let r=Z(s),o=Z(n);if(tr(s)!==tr(n)&&tP[i]){this.needsMeasurement=!0;return}if(r!==o)if(tx(r)&&tx(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tP[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let s,n=0;for(;n<t.length&&!s;){let e=t[n];"string"==typeof e&&!tU.has(e)&&function(t){let e=t.toString();return M.test(e)||V.test(e)}(e)&&(s=t[n]),n++}if(s&&i)for(let n of e)t[n]!==s&&(t[n]=tl(i,s))}(t,i,e)}measure(){let{element:t,name:e}=this;return tP[e](window.getComputedStyle(t.current),()=>t.measureViewportBox())}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&this.motionValue?.jump(s,!1)}measureEndState(){let{element:t,unresolvedKeyframes:e}=this;if(!t||!t.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let i=e.length-1,s=e[i];e[i]=this.measure(),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let t$=t=>1e3*t;function tz(t,e){-1===t.indexOf(e)&&t.push(e)}function tY(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tX{constructor(){this.subscriptions=[]}add(t){return tz(this.subscriptions,t),()=>this.remove(t)}remove(t){tY(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let n=0;n<s;n++){let s=this.subscriptions[n];s&&s(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tH(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function tK(t){let e;return()=>(void 0===e&&(e=t()),e)}let t_={};function tG(t,e){let i=tK(t);return()=>t_[e]??i()}let tq=tG(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tZ=t=>null!==t;function tJ(t,{repeat:e,repeatType:i="loop"},s,n=1){let r=t.filter(tZ),o=n<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==s?s:r[o]}class tQ{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(t=>{this._resolve=t})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(t,e){return this.finished.then(t,e)}}function t0(){e=void 0}t.s(["WithPromise",0,tQ],65119);let t1={now:()=>(void 0===e&&t1.set(tC.isProcessing||tE.useManualTiming?tC.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(t0)}};function t2(t,e){return{kind:t,animation:e,timestamp:t1.now(),frameTimestamp:tC.timestamp,frameIsProcessing:tC.isProcessing}}function t3(t,e,i){let s=globalThis.__MOTION_INSPECT__;if(s)try{s({...t2("animation-start",t),options:i?{...e,...i}:e})}catch{}}t.s(["time",0,t1],87179);let t5=t=>Array.isArray(t)&&"number"==typeof t[0],t9=tG(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t4=(t,e,i=10)=>{let s="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)s+=Math.round(1e4*t(e/(n-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},t6=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,t8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t6([0,.65,.55,1]),circOut:t6([.55,0,1,.45]),backIn:t6([.31,.01,.66,-.59]),backOut:t6([.33,1.53,.69,.99])};function t7(t){return"function"==typeof t&&"applyToOptions"in t}class et extends tQ{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:s,pseudoElement:n,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!n,this.allowFlatten=r,this.options=t,Q(t.type);const l=function({type:t,...e}){return t7(t)&&t9()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?t9()?t4(e,i):"ease-out":t5(e)?t6(e):Array.isArray(e)?e.map(e=>t(e,i)||t8.easeOut):t8[e]}(a,n);Array.isArray(d)&&(u.easing=d);let c={delay:s,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};return h&&(c.pseudoElement=h),t.animate(u,c)}(e,i,s,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=tJ(s,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tH(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()},t3(this,t,l)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=t$(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,onAttach:e,observe:i}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tq())?(this.animation.timeline=t,e?.(this.animation),tA):i(this)}}let ee=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:ei}=tV(queueMicrotask,!1),es=(t,e)=>e?1e3/e*t:0,en={current:void 0};class er{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=t1.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=t1.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){var i;return"change"===t?this.onChangeSubscribe(e):((i=this.events)[t]||(i[t]=new tX)).add(e)}onChangeSubscribe(t){let{events:e}=this;return e.change||this.changeSubscriber?(e.change||(e.change=new tX,e.change.add(this.changeSubscriber),this.changeSubscriber=void 0),e.change.add(t)):this.changeSubscriber=t,()=>{this.changeSubscriber===t?this.changeSubscriber=void 0:e.change?.remove(t),this.stopIfUnobserved()}}stopIfUnobserved(){tk.read(()=>{this.changeSubscriber||this.events.change?.getSize()||this.stop()})}clearListeners(){for(let t in this.changeSubscriber=void 0,this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:t,changeSubscriber:e}=this;e?e(t):this.events.change?.notify(t)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return en.current&&en.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=t1.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return es(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{let i;this.hasAnimated=!0;let s=!1;i=t(()=>{s=!0,this.events.animationComplete?.notify(),this.animation===i&&this.clearAnimation(),e()}),s||(this.animation=i),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function eo(t,e){return new er(t,e)}t.s(["collectMotionValues",0,en,"motionValue",0,eo],37818);let ea=new WeakMap;function el(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eh(t){return"string"==typeof t||Array.isArray(t)}let eu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ed=["initial",...eu];function ec(t){if(el(t.animate))return!0;for(let e=0;e<ed.length;e++)if(eh(t[ed[e]]))return!0;return!1}function ep(t){return!!(ec(t)||t.variants)}let em={current:null},ef={current:!1};t.s(["hasReducedMotionListener",0,ef,"prefersReducedMotion",0,em],97295);let eg="u">typeof window;function ey(){if(ef.current=!0,eg)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>em.current=t.matches;t.addEventListener("change",e),e()}else em.current=!1}t.s(["initPrefersReducedMotion",0,ey],20220);let ev=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ex={};
1class ew{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,skipAnimations:n,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tN,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=t1.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tk.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=n,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=ec(e),this.isVariantNode=ep(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==l[t]&&_(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];if(this.current=t,ea.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.isVariantNode&&!this.isControllingVariants){let t=this;do t=!1!==t.props.inherit&&t.parent;while(t&&!t.isVariantNode)if(t){let{variantChildren:e}=t;e.add(this),this.removeFromVariantTree=()=>e.delete(this)}}this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ef.current||ey(),this.shouldReduceMotion=em.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tD(this.notifyUpdate),tD(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&ee.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:s,times:n,ease:r,duration:o}=e.accelerate,a=new et({element:this.current,name:t,keyframes:s,times:n,ease:r,duration:t$(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let s=r.has(t);s&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tk.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),i&&i()})}sortNodePosition(t){return this.current&&t.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ex){let e=ex[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):K()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ev.length;e++){let i=ev[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}
1this.prevMotionValues=function(t,e,i){for(let s in e){let n=e[s],r=i[s];if(_(n))t.addValue(s,n);else if(_(r))t.addValue(s,eo(n,{owner:t}));else if(r!==n)if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(s);t.addValue(s,eo(void 0!==e?e:n,{owner:t}))}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(t,e){let i=this.values.get(t);if(e!==i){i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e);let s=e.get();void 0!==s&&(this.latestValues[t]=s)}}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=eo(e??this.getDefaultValue?.(t),{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let s,n;"string"==typeof i&&(s=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s)||(n=i,/^0[^.\s]+$/u.test(n)))?i=parseFloat(i):"number"!=typeof i&&!j.test(i)&&j.test(e)&&(i=tl(t,e)),this.setBaseTarget(t,_(i)?i.get():i)}return _(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}on(t,e){return this.events[t]||(this.events[t]=new tX),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){ei.render(this.render)}}class eT extends ew{constructor(){super(...arguments),this.KeyframeResolver=tW}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;_(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eb(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eS=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eA=n.length;function eE(t,e,i){let{style:s,vars:o,transformOrigin:a}=t,l=!1,h=!1;for(let t in e){let i=e[t];if(r.has(t)){l=!0;continue}if(te(t)){o[t]=i;continue}{let e=eS(i,W[t]);t.startsWith("origin")?(h=!0,a[t]=e):s[t]=e}}if(!e.transform&&(l||i?s.transform=function(t,e,i){let s="",r=!0;for(let o=0;o<eA;o++){let a=n[o],l=t[a];if(void 0===l)continue;let h=!0;if("number"==typeof l)h=l===+!!a.startsWith("scale");else{let t=parseFloat(l);h=a.startsWith("scale")?1===t:0===t}if(!h||i){let t=eS(l,W[a]);if(!h){r=!1;let e=eP[a]||a;s+=`${e}(${t}) `}i&&(e[a]=t)}}let o=t.pathRotation;return o&&(r=!1,s+=`rotate(${eS(o,W.pathRotation)}) `),s=s.trim(),i?s=i(e,r?"":s):r&&(s="none"),s}(e,t.transform,i):s.transform&&(s.transform="none")),h){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;s.transformOrigin=`${t} ${e} ${i}`}}let eM={offset:"stroke-dashoffset",array:"stroke-dasharray"},eV={offset:"strokeDashoffset",array:"strokeDasharray"},eC=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ek(t,{attrX:e,attrY:i,attrScale:s,pathLength:n,pathSpacing:r=1,pathOffset:o=0,...a},l,h,u){if(eE(t,a,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t of eC)void 0!==d[t]&&(c[t]=d[t],delete d[t]);(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=u?.transformBox??"fill-box",delete d.transformBox),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==s&&(d.scale=s),void 0!==n&&function(t,e,
1i=1,s=0,n=!0){t.pathLength=1;let r=n?eM:eV;t[r.offset]=`${-s}`,t[r.array]=`${e} ${i}`}(d,n,r,o,!1)}let eD=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"]),eR=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eL(t,{style:e,vars:i},s,n){let r,o=t.style;for(r in e)o[r]=e[r];for(r in n?.applyProjectionStyles(o,s),i)o.setProperty(r,i[r])}let ej={};function eB(t,{layout:e,layoutId:i}){return r.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!ej[t]||"opacity"===t)}function eF(t,e,i){let s=t.style,n=e?.style,r={};if(!s)return r;for(let e in s)(_(s[e])||n&&_(n[e])||eB(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=s[e]);return r}function eI(t,e,i){let s=eF(t,e,i);for(let i in t)(_(t[i])||_(e[i]))&&(s[-1!==n.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}class eO extends eT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=K}getBaseTargetFromProps(t,e){return r.has(e)?super.getBaseTargetFromProps(t,e)??tg(e):t[e]}getDefaultValue(t){return r.has(t)?this.latestValues[t]??tg(t):void 0}readValueFromInstance(t,e){if(r.has(e)){let t=z(e);return t&&t.default||0}if(eC.includes(e)){let i=getComputedStyle(t)[e];if("string"==typeof i&&i)return i.trim()}return e=eD.has(e)?e:eb(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eI(t,e,i)}build(t,e,i){ek(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){for(let i in eL(t,e,void 0,s),e.attrs)t.setAttribute(eD.has(i)?i:eb(i),e.attrs[i])}mount(t){this.isSVGTag=eR(t.tagName),super.mount(t)}}function eN({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}let eU=(t,e,i)=>t+(e-t)*i;function eW(t){return void 0===t||1===t}function e$({scale:t,scaleX:e,scaleY:i}){return!eW(t)||!eW(e)||!eW(i)}function ez(t){return e$(t)||eY(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eY(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eX(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function eH(t,e=0,i=1,s,n){t.min=eX(t.min,e,i,s,n),t.max=eX(t.max,e,i,s,n)}function eK(t,{x:e,y:i}){eH(t.x,e.translate,e.scale,e.originPoint),eH(t.y,i.translate,i.scale,i.originPoint)}function e_(t,e){t.min+=e,t.max+=e}function eG(t,e,i,s,n=.5){let r=eU(t.min,t.max,n);eH(t,e,i,r,s)}function eq(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function eZ(t,e,i){let s=i??t;eG(t.x,eq(e.x,s.x),e.scaleX,e.scale,e.originX),eG(t.y,eq(e.y,s.y),e.scaleY,e.scale,e.originY)}function eJ(t,e){return eN(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}class eQ extends eT{constructor(){super(...arguments),this.type="html",this.renderInstance=eL}mount(t){Q(t.style),super.mount(t)}readValueFromInstance(t,e){if(r.has(e))return this.projection?.isProjecting?tg(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return ty(i,e)})(t,e);{let i=window.getComputedStyle(t),s=(te(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return eJ(t,e)}build(t,e,i){eE(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return eF(t,e,i)}}var e0=t.i(95331);let e1=["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 e2(t){if("string"!=typeof t||t.includes("-"));else if(e1.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e3=t.i(38397);let e5=(0,e0.createContext)({}),e9=(0,e0.createContext)({strict:!1}),e4=(0,e0.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,e4],63474);let e6=(0,e0.createContext)({});function e8(t){return Array.isArray(t)?t.join(" "):t}let e7=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function it(t,e,i){for(let s in e)_(e[s])||eB(s,i)||(t[s]=e[s])}let ie=()=>({...e7(),attrs:{}}),ii=new Set(["animate","exit","variants","initial","style","values","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function is(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ii.has(t)}function ir(t){return _(t)?t.get():t}function io(t,e,i,s){let n=e=>{let n;return"function"==typeof e?e(void 0!==i?i:t.custom,...(n=[{},{}
1],s?.values.forEach((t,e)=>{n[0][e]=t.get(),n[1][e]=t.getVelocity()}),n)):e};return"string"==typeof(e=n(e))&&(e=t.variants&&t.variants[e]),n(e)}let ia=(0,e0.createContext)(null);function il(t){let e=(0,e0.useRef)(null);return null===e.current&&(e.current=t()),e.current}let ih=t=>(e,i)=>{let s=(0,e0.useContext)(e6),n=(0,e0.useContext)(ia),r=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,s,n){return{latestValues:function(t,e,i,s){let n={},r=s(t,{});for(let t in r)n[t]=ir(r[t]);let{initial:o,animate:a}=t,l=ec(t),h=ep(t);e&&h&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!el(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let s=io(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(i,s,n,t),renderState:e()}})(t,e,s,n);return i?r():il(r)},iu=ih({scrapeMotionValuesFromProps:eF,createRenderState:e7}),id=ih({scrapeMotionValuesFromProps:eI,createRenderState:ie}),ic={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"]},ip=!1;function im(){return!function(){if(ip)return;let t={};for(let e in ic)t[e]={isEnabled:t=>ic[e].some(e=>!!t[e])};ex=t,ip=!0}(),ex}let ig=Symbol.for("motionComponentSymbol"),iy="data-"+eb("framerAppearId"),iv=(0,e0.createContext)({});function ix(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let iw="u">typeof window?e0.useLayoutEffect:e0.useEffect;function iT(t,{forwardMotionProps:e=!1,type:i}={},s,n){s&&function(t){let e=im();for(let i in t)e[i]={...e[i],...t[i]};ex=e}(s);let r=i?"svg"===i:e2(t),o=r?id:iu;function a(i,s){var a;let l,h,u,d={...(0,e0.useContext)(e4),...i,layoutId:function({layoutId:t}){let e=(0,e0.useContext)(e5).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:c,isValidProp:p}=d,m=function(t){let{initial:e,animate:i}=function(t,e){if(ec(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eh(e)?e:void 0,animate:eh(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e0.useContext)(e6));return(0,e0.useMemo)(()=>({initial:e,animate:i}),[e8(e),e8(i)])}(i),f=o(i,c);if(!c&&"u">typeof window){(0,e0.useContext)(e9).strict;let e=function(t){let{drag:e,layout:i}=im();if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(d);l=e.MeasureLayout,m.visualElement=function(t,e,i,s,n,r){let{visualElement:o}=(0,e0.useContext)(e6),a=(0,e0.useContext)(e9),l=(0,e0.useContext)(ia),h=(0,e0.useContext)(e4),u=h.reducedMotion,d=h.skipAnimations,c=(0,e0.useRef)(null),p=(0,e0.useRef)(!1);s=s||a.renderer,!c.current&&s&&(c.current=s(t,{visualState:e,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u,skipAnimations:d,isSVG:r}),p.current&&c.current&&(c.current.manuallyAnimateOnMount=!0));let m=c.current,f=(0,e0.useContext)(iv);m&&!m.projection&&n&&("html"===m.type||"svg"===m.type)&&function(t,e,i,s){let{layoutId:n,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutAnchor:u,layoutCrossfade:d}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:r,alwaysMeasureLayout:!!o||a&&ix(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,crossfade:d,layoutScroll:l,layoutRoot:h,layoutAnchor:u})}(c.current,i,n,f);let g=(0,e0.useRef)(!1);(0,e0.useInsertionEffect)(()=>{m&&g.current&&m.update(i,l)});let y=i[iy],v=(0,e0.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return iw(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),iw(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,e0.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),m.enteringChildren=void 0)}),m}(t,f,d,n,e.ProjectionNode,r)}return(0,e3.jsxs)(e6.Provider,{value:m,children:[l&&m.visualElement?(0,e3.jsx)(l,{visualElement:m.visualElement,...d}
1):null,function(t,e,i,{latestValues:s},n,r=!1,o,a){let l=(o??e2(t)?function(t,e,i,s){let n=(0,e0.useMemo)(()=>{let i=ie();return ek(i,e,eR(s),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};it(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i,s,n={},r=(i=t.style||{},it(s={},i,t),Object.assign(s,function({transformTemplate:t},e){return(0,e0.useMemo)(()=>{let i=e7();return eE(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n})(e,s,n,t),h=function(t,e,i,s){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&!_(t[r])&&((r.startsWith("on")?!is(r):s?.(r)??!is(r))||!0===i&&is(r)||!e&&!is(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,r,a),u=t!==e0.Fragment?{...h,...l,ref:i}:{},{children:d}=e,c=(0,e0.useMemo)(()=>_(d)?d.get():d,[d]);return(0,e0.createElement)(t,{...u,children:c})}(t,i,(a=m.visualElement,h=(0,e0.useRef)(s),(0,e0.useInsertionEffect)(()=>{h.current=s}),u=(0,e0.useRef)(null),(0,e0.useCallback)(t=>{t&&f.onMount?.(t),a&&(t?a.mount(t):a.unmount());let e=h.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(u.current=i)}else u.current?(u.current(),u.current=null):e(t);else e&&(e.current=t)},[a])),f,c,e,r,p)]})}a.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let l=(0,e0.forwardRef)(a);return l[ig]=t,l}class ib{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iS(t,e,i){return io(t.getProps(),e,i,t)}let iP=(t,e)=>"exit"===e?t.presenceContext?.custom:void 0;function iA(t,e){if(t?.inherit&&e){let{inherit:i,...s}=t;return{...e,...s}}return t}function iE(t,e){let i=t?.[e]??t?.default??t;return i!==t?iA(i,t):i}function iM(t,e){let i=t.getValue("willChange");if(_(i)&&i.add)return i.add(e);if(!i&&tE.WillChange){let i=new tE.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let iV=(...t)=>t.reduce((t,e)=>i=>e(t(i)));function iC(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function ik(t,e){return i=>i>0?e:t}let iD=(t,e,i)=>{let s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},iR=[y,g,A];function iL(t){let e=iR.find(e=>e.test(t));if(!e)return J(`'${t}' is not an animatable color. Use the equivalent color code instead.`),!1;let i=e.parse(t);return e===A&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let n=0,r=0,o=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,a=2*i-s;n=iC(a,s,t+1/3),r=iC(a,s,t),o=iC(a,s,t-1/3)}else n=r=o=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*o),alpha:s}}(i)),i}let ij=(t,e)=>{let i=iL(t),s=iL(e);if(!i||!s)return ik(t,e);let n={...i};return t=>(n.red=iD(i.red,s.red,t),n.green=iD(i.green,s.green,t),n.blue=iD(i.blue,s.blue,t),n.alpha=eU(i.alpha,s.alpha,t),g.transform(n))},iB=new Set(["none","hidden"]);function iF(t,e){return i=>eU(t,e,i)}function iI(t){return"number"==typeof t?iF:"string"==typeof t?ts(t)?ik:E.test(t)?ij:iU:Array.isArray(t)?iO:"object"==typeof t?E.test(t)?ij:iN:ik}function iO(t,e){let i=[...t],s=i.length,n=t.map((t,i)=>iI(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=n[e](t);return i}}function iN(t,e){let i={...t,...e},s={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(s[n]=iI(t[n])(t[n],e[n]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let iU=(t,e)=>{let i=j.createTransformer(e),s=R(t),n=R(e);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 J(`Complex values '${t}' and '${e}' 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.`),ik(t,e);if(iB.has(t)&&!n.values.length||iB.has(e)&&!s.values.length)return iB.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return iV(iO(function(t,e){let i=[],s={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let r=e.types[n],o=t.indexes[r][s[r]],a=t.values[o]??0;i[n]=a,s[r]++}return i}(s,n),n.values),i)},iW=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function i$(t,e,i){if("number"==typeof t&&"number"==typeof e&&"number"==typeof i)return eU(t,e,i);if("string"==typeof t&&"string"==typeof e){let i=function(t,e){let i=iW.exec(t);if(!i)return;let s=iW.exec(e);if(!s||i[2]!==s[2])return;let n=i[2],r=parseFloat(i[1]),o=parseFloat(s[1]);return t=>u(eU(r,o,t))+n}(t,e);if(i)return i}return iI(t)(t,e)}let iz=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tk.update(e,t),stop:()=>tD(e),now:()=>tC.isProcessing?tC.timestamp:t1.now()}};function iY(t,e=50,i=2e4,s){let n=0,r=t.next(n);for(s?.push(r.value);!r.done&&n<i;)n+=e,r=t.next(n),s?.push(r.value);return n>=i?1/0:n}let iX=.01,iH=2,iK=.005,i_=.5,iG=t=>t<0?1/Math.max(1+t,.05):Math.max(1-t,.05);function iq(t,e){if(!(t>1))return 1;let i=Math.sqrt(t*t-1),s=t-i,n=t+i,r=2*i*Math.exp(-e)*(1+e);return iJ(t=>n*Math.exp(-s*t)-s*Math.exp(-n*t)-r,t=>Math.exp(-n*t)-Math.exp(-s*t),e)/e}function iZ(t,e){return t*Math.sqrt(1-e*e)}function iJ(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}let iQ=(t,e)=>(e?t>=0:t>0)&&t<1/0;function i0(t,e){if(iQ(t,e))return t}function i1(t=.3,e=.3){let i,s,n,r="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,a=r.keyframes[0],l=r.keyframes[r.keyframes.length-1],h={done:!1,value:a},{stiffness:u,damping:d,mass:c,duration:p,isResolvedFromDuration:m,isTimeDefined:f}=function(t){let e=i0(t.stiffness),i=i0(t.damping,!0),s=i0(t.mass),n={...t,stiffness:e??100,damping:i??10,mass:s??1,isResolvedFromDuration:!1,isTimeDefined:(e??i??s)===void 0&&(void 0!==t.duration||void 0!==t.bounce)};if(n.isTimeDefined){if(t.visualDuration){let e=iG(t.bounce||0),i=2*Math.PI/(1.2*t.visualDuration)*iq(e,2*Math.PI/1.2);n.stiffness=i*i,n.damping=2*e*Math.sqrt(n.stiffness)}else Object.assign(n,function({duration:t=800,bounce:e=.3}){let i,s;J(t$(10));let n=iG(e);t=o(.01,10,t/1e3),n<1?(i=e=>{let i=e*n,s=i*t;return .001-i/iZ(e,n)*Math.exp(-s)},s=e=>
1{let s=e*n*t,r=n*n*e*e*t,o=Math.exp(-s),a=iZ(e*e,n);return-((-i(e)+.001>0?-1:1)*r)*o/a}):(i=e=>-.001+Math.exp(-e*t)*(e*t+1),s=e=>-(t*t*e*Math.exp(-e*t)));let r=iJ(i,s,5/t),a=r*iq(n,r*t),l=a*a;return{stiffness:l,damping:2*n*Math.sqrt(l),duration:t$(t)}}(n)),n.isResolvedFromDuration=!0;iQ(n.stiffness)&&iQ(n.damping,!0)||(n.stiffness=100,n.damping=10)}return n}({...r}),g=t=>f?0:-(t/1e3),y=d/(2*Math.sqrt(u*c)),v=Math.sqrt(u/c)/1e3,x=y*v,w={target:l,delta:l-a,velocity:g(r.velocity||0)||0,restSpeed:0,restDelta:0},T=()=>{let t=5>Math.abs(w.delta);w.restSpeed=r.restSpeed||(t?iX:iH),w.restDelta=r.restDelta||(t?iK:i_)};if(T(),y<1){let t=iZ(v,y),e={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};n=()=>{e.A=(w.velocity+x*w.delta)/t,e.sinC=x*e.A+w.delta*t,e.cosC=x*w.delta-e.A*t};let r=i=>{i!==e.t&&(e.t=i,e.env=Math.exp(-x*i),e.sin=Math.sin(t*i),e.cos=Math.cos(t*i))};i=t=>(r(t),w.target-e.env*(e.A*e.sin+w.delta*e.cos)),s=t=>(r(t),e.env*(e.sinC*e.sin+e.cosC*e.cos))}else if(1===y){i=t=>w.target-Math.exp(-v*t)*(w.delta+(w.velocity+v*w.delta)*t);let t={C:0};n=()=>{t.C=w.velocity+v*w.delta},s=e=>Math.exp(-v*e)*(v*t.C*e-w.velocity)}else{let t=v*Math.sqrt(y*y-1),e=x-t,r=x+t,o=f?1/0:300/t,a=(t,e)=>Math.exp(e>o?-t*o-x*(e-o):-t*e),l={S:0,F:0};n=()=>{let e=(w.velocity+x*w.delta)/t;l.S=(w.delta+e)/2,l.F=(w.delta-e)/2},i=t=>w.target-l.S*a(e,t)-l.F*a(r,t),s=t=>e*l.S*a(e,t)+r*l.F*a(r,t)}n();let b=m&&p||null,S={calculatedDuration:b,retarget:(t,e)=>{w.target=t[t.length-1],w.delta=w.target-t[0],w.velocity=g(e),r.restSpeed&&r.restDelta||T(),S.calculatedDuration=b,h.done=!1,n()},velocity:t=>t$(s(t)),next:t=>{let e=i(t);return m?h.done=t>=p:h.done=Math.abs(t$(s(t)))<=w.restSpeed&&Math.abs(w.target-e)<=w.restDelta,h.value=h.done?w.target:e,h},toString:()=>{let t=Math.min(iY(S),2e4),e=t4(e=>S.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return S}function i2({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===o?g:o(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/s),x=t=>{let e=v(t);m.done=Math.abs(e)<=h,m.value=m.done?y:y+e},w=t=>{let e;if((e=m.value)<a||e>l){var i;d=t,c=i1({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:-v(t)/s*1e3,damping:n,stiffness:r,restDelta:h,restSpeed:u})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,x(t),w(t)),void 0!==d&&t>=d)?c.next(t-d):(e||x(t),m)}}}i1.applyToOptions=t=>{let e=function(t,e=100,i){let s=i({...t,keyframes:[0,e]}),n=Math.min(iY(s),2e4);return{type:"keyframes",ease:t=>s.next(n*t).value/e,duration:n/1e3}}(t,100,i1);return t.ease=e.ease,t.duration=t$(e.duration),t.type="keyframes",t},t.s(["spring",0,i1],60038);let i3=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function i5(t,e,i,s){return t===e&&i===s?tA:n=>0===n||1===n?n:i3(function(t,e,i,s,n){let r,o,a=0;do(r=i3(o=e+(i-e)/2,s,n)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12)return o}(n,0,1,t,i),e,s)}let i9=i5(.42,0,1,1),i4=i5(0,0,.58,1),i6=i5(.42,0,.58,1),i8=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,i7=t=>e=>1-t(1-e),st=i5(.33,1.53,.69,.99),se=i7(st),si=i8(se),ss=t=>t>=1?1:(t*=2)<1?.5*se(t):.5*(2-Math.pow(2,-10*(t-1))),sn=t=>1-Math.sin(Math.acos(t)),sr=i7(sn),so=i8(sn),sa={linear:tA,easeIn:i9,easeInOut:i6,easeOut:i4,circIn:sn,circInOut:so,circOut:sr,backIn:se,backInOut:si,backOut:st,anticipate:ss},sl=t=>{if(t5(t)){Q(t.length);let[e,i,s,n]=t;return i5(e,i,s,n)}return"string"==typeof t?(Q(sa[t],`Invalid easing type '${t}'`),sa[t]):t},sh=(t,e,i)=>{let s=e-t;return s?(i-t)/s:1};function su(t,e,{clamp:i=!0,ease:s,mixer:n}={}){let r=t.length;if(Q(e.length),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let l=function(t,e,i){let s=[],n=i||tE.mix||i$,r=t.length-1;for(let i=0;i<r;i++){let r=n(t[i],t[i+1]);e&&(r=iV(Array.isArray(e)?e[i]||tA:e,r)),s.push(r)}return s}(e,s,n),h=l.length,u=i=>{if(a&&i<t[0])return e[0];let s=0;if(h>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let n=sh(t[s],t[s+1],i);return l[s](n)};return i?e=>u(o(t[0],t[r-1],e)):u}function sd({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var n;let r,a=Array.isArray(s)&&"number"!=typeof s[0]?s.map(sl):sl(s)||i6,l={done:!1,value:e[0]};if(2===e.length&&!Array.isArray(a)&&(!i||2!==i.length||0===i[0]&&1===i[1])){let[i,s]=e,n=i===s?void 0:(tE.mix||i$)(i,s);return{calculatedDuration:t,next:e=>(l.value=n?n(a(t>0?o(0,1,e/t):1)):s,l.done=e>=t,l)}}
1let h=su((n=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let n=sh(0,e,s);t.push(eU(i,1,n))}}(r=[0],e.length-1),r),n.map(e=>e*t)),e,{ease:Array.isArray(a)?a:e.map(()=>a||i6).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(l.value=h(e),l.done=e>=t,l)}}function sc(t,e,i=0){var s,n;let r;return e<=0?i:t.velocity?t.velocity(e):(s=e=>t.next(e).value,n=t.next(e).value,es(n-s(r=Math.max(e-5,0)),e-r))}t.s(["keyframes",0,sd],82932),t.s(["calcGeneratorVelocity",0,sc],1247);let sp={decay:i2,inertia:i2,tween:sd,keyframes:sd,spring:i1};function sm(t){"string"==typeof t.type&&(t.type=sp[t.type])}t.s(["replaceTransitionType",0,sm],41323);let sf=t=>t/100;class sg extends tQ{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==t1.now()&&this.tick(t1.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause(),t3(this,this.options)}initAnimation(){let{options:t}=this;sm(t);let{type:e=sd,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:r=0}=t,{keyframes:o}=t,a=e||sd;a!==sd&&"number"!=typeof o[0]&&(this.mixKeyframes=iV(sf,i$(o[0],o[1])),o=[0,100]);let l=a(o===t.keyframes?t:{...t,keyframes:o});"mirror"===n&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=iY(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:s,totalDuration:n,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:h}=this;if(null===this.startTime)return s.next(0);let{delay:u=0,keyframes:d,repeat:c,repeatType:p,repeatDelay:m,type:f,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>n;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let w=this.currentTime,T=s;if(c){let t=Math.min(this.currentTime,n)/l,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/l)):"mirror"===p&&(T=a)),w=o(0,1,i)*l}x?(this.delayState.value=d[0],i=this.delayState):i=T.next(w),r&&!x&&(i.value=r(i.value));let{done:b}=i;x||null===h||(b=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return S&&f!==i2&&(i.value=tJ(d,this.options,y,this.speed)),g&&g(i.value),S&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=t$(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){return sc(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(t1.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iz,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),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=e??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(t1.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}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let sy={anticipate:ss,backInOut:si,circInOut:so};class sv extends et{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in sy&&(t.ease=sy[t.ease])}(t),sm(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:s,element:n,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new sg({...r,autoplay:!1}),l=Math.max(10,t1.now()-this.startTime),h=o(0,10,l-10),u=a.sample(l).value,{name:d}=this.options;n&&d&&tH(n,d,u),e.setWithVelocity(a.sample(Math.max(0,l-h)).value,u,h),a.stop()}}let sx=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(j.test(t)||"0"===t)&&!t.startsWith("url("));function sw(t){t.duration=0,t.type="keyframes"}let sT=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,sb=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),sS=tK(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class sP extends tQ{constructor(t){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=t1.now();const{keyframes:e,name:i,motionValue:s,element:n}=t;
1t.autoplay??(t.autoplay=!0),t.delay??(t.delay=0),t.type??(t.type="keyframes"),t.repeat??(t.repeat=0),t.repeatDelay??(t.repeatDelay=0),t.repeatType??(t.repeatType="loop");const r=n?.KeyframeResolver||tN;this.keyframeResolver=new r(e,(e,i,s)=>this.onKeyframesResolved(e,i,t,!s),i,s,n),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){let n;this.keyframeResolver=void 0;let{name:r,type:o,velocity:a,delay:l,isHandoff:h,onUpdate:u}=i;this.resolvedAt=t1.now();let d=!0;!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=sx(n,e),a=sx(r,e);return o&&a?function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||t7(i))&&s:(o!==a&&J(`You are trying to animate ${e} from "${n}" to "${r}". "${o?r:n}" is not an animatable value.`),!1)}(t,r,o,a)&&(d=!1,(tE.instantAnimations||!l)&&u?.(tJ(t,i,e)),t[0]=t[t.length-1],sw(i),i.repeat=0);let c=s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,{onComplete:p}=i;if(i.startTime??(i.startTime=c),i.finalKeyframe=e,i.keyframes=t,i.onComplete=()=>{p?.(),this.notifyFinished()},d&&!h&&function(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:r,type:o,keyframes:a}=t;if(!i||!(ee.has(i)||sb.has(i)))return!1;let l=e?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:h,transformTemplate:u}=e.owner.getProps();return sS()&&(ee.has(i)||sb.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&sT.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!u)&&!h&&!s&&"mirror"!==n&&0!==r&&"inertia"!==o}(i)){i.element=i.motionValue?.owner?.current;try{n=new sv(i)}catch{n=new sg(i)}}else n=new sg(i);this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this._animation.finished:super.finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tF=!0,tO(),tI(),tF=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let sA={type:"spring",stiffness:500,damping:25,restSpeed:10},sE={type:"keyframes",duration:.8},sM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sV=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),sC=(t,e,i,s={},n,o)=>a=>{let l=iE(s,t)||{},h=l.delay||s.delay||0,{elapsed:u=0}=s;u-=t$(h);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-u,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:n};!function(t){for(let e in t)if(!sV.has(e))return!0;return!1}(l)&&Object.assign(d,((t,{keyframes:e})=>e.length>2?sE:r.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:sA:sM)(t,d)),d.duration&&(d.duration=t$(d.duration)),d.repeatDelay&&(d.repeatDelay=t$(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(sw(d),0===d.delay&&(c=!0)),(tE.instantAnimations||tE.skipAnimations||n?.shouldSkipAnimations||l.skipAnimations)&&(c=!0,sw(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,c&&!o&&void 0!==e.get()){let t=tJ(d.keyframes,l);if(void 0!==t)return void tk.update(()=>{d.onUpdate(t),d.onComplete()})}return l.isSync?new sg(d):new sP(d)},sk="u">typeof window;
1function sD(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:r,transitionEnd:o,...a}=e,l=t.getDefaultTransition();r=r?iA(r,l):l;let h=r?.reduceMotion,u=r?.skipAnimations;s&&(r=s);let d=[],c=n&&t.animationState?.getState()[n],p=r?.path;for(let e in p&&p.animateVisualElement(t,a,r,i,d),a){let s=t.getValue(e,t.latestValues[e]??null),n=a[e];if(void 0===n||c&&function({protectedKeys:t,needsAnimating:e},i){let s=i in t&&!e[i];return e[i]=!1,s}(c,e))continue;let o={delay:i,...iE(r||{},e)};u&&(o.skipAnimations=!0);let l=s.get();if(void 0!==l&&!s.isAnimating()&&!Array.isArray(n)&&n===l&&!o.velocity){tk.update(()=>s.set(n));continue}let p=!1;if(sk&&window.MotionHandoffAnimation){let i=t.props[iy];if(i){let t=window.MotionHandoffAnimation(i,e,tk);null!==t&&(o.startTime=t,p=!0)}}iM(t,e);let m=h??t.shouldReduceMotion;s.start(sC(e,s,n,m&&G.has(e)?{type:!1}:o,t,p));let f=s.animation;f&&d.push(f)}if(o){let e=()=>tk.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:s={},...n}=iS(t,e)||{};for(let e in n={...n,...i}){var r;let i=Array.isArray(r=n[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,eo(i))}}(t,o)});d.length?Promise.all(d).then(e):e()}return d}function sR(t,e,i,s=0,n=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*s;return"function"==typeof i?i(r,o):1===n?r*s:a-r*s}
1function sL(t,e,i={}){let s=iS(t,e,iP(t,i.type)),n=i.transitionOverride||(s?.transition??(t.getDefaultTransition()||{})),r=()=>Promise.all(s?sD(t,s,i):[]),o=(s=0)=>{let{variantChildren:r}=t,{delayChildren:o=0,staggerChildren:a,staggerDirection:l}=n,h=[];return r?.forEach(t=>{t.notify("AnimationStart",e),h.push(sL(t,e,{...i,delay:s+("function"==typeof o?0:o)+sR(r,t,o,a,l)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(h)},{when:a}=n;return a?"beforeChildren"===a?r().then(()=>o()):o().then(r):Promise.all([r(),o(i.delay)])}function sj(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}let sB=[...eu].reverse();function sF(){let t={};for(let e of eu)t[e]={isActive:"animate"===e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return t}let sI=0;function sO(t){return[t("x"),t("y")]}function sN(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i,s)}let sU={x:!1,y:!1};function sW(t){return t.max-t.min}function s$(t,e,i,s=.5){t.origin=s,t.originPoint=eU(e.min,e.max,t.origin),t.scale=sW(i)/sW(e),t.translate=eU(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function sz(t,e,i,s){s$(t.x,e.x,i.x,s?s.originX:void 0),s$(t.y,e.y,i.y,s?s.originY:void 0)}function sY(t,e,i,s=0){t.min=(s?eU(i.min,i.max,s):i.min)+e.min,t.max=t.min+sW(e)}function sX(t,e,i,s=0){let n=s?eU(i.min,i.max,s):i.min;t.min=e.min-n,t.max=t.min+sW(e)}function sH(t,e,i,s){sX(t.x,e.x,i.x,s?.x),sX(t.y,e.y,i.y,s?.y)}let sK=t=>"object"==typeof t&&null!==t;function s_(t){return sK(t)&&"ownerSVGElement"in t}function sG(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);let n=i?.[t]??s.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(t=>null!=t)}let sq=new WeakMap,sZ=(t,e,i)=>(s,n)=>n&&n[0]?n[0][t+"Size"]:s_(s)&&"getBBox"in s?s.getBBox()[e]:s[i],sJ=sZ("inline","width","offsetWidth"),sQ=sZ("block","height","offsetHeight");function s0({target:t,borderBoxSize:e}){sq.get(t)?.forEach(i=>{i(t,{get width(){return sJ(t,e)},get height(){return sQ(t,e)}})})}function s1(t){t.forEach(s0)}let s2=new Set;function s3(t,e){let n;return"function"==typeof t?(s2.add(t),s||(s=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};s2.forEach(e=>e(t))},window.addEventListener("resize",s)),()=>{s2.delete(t),s2.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(s1)),(n=sG(t)).forEach(t=>{let s=sq.get(t);s||(s=new Set,sq.set(t,s)),s.add(e),i?.observe(t)}),()=>{n.forEach(t=>{let s=sq.get(t);s?.delete(e),s?.size||i?.unobserve(t)})})}let s5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),s9=new Set(["INPUT","SELECT","TEXTAREA"]),s4=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function s6(t){return{point:{x:t.pageX,y:t.pageY}}}function s8(t,e,i,s){return sN(t,e,t=>s4(t)&&i(t,s6(t)),s)}let s7=({current:t})=>t?t.ownerDocument.defaultView:null,nt=(t,e)=>Math.abs(t-e),ne=new Set(["auto","scroll"]);class ni{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ns(this.lastRawMoveEventInfo,this.transformPagePoint));let i=nr(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(nt(t.x,e.x)**2+nt(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:r}=i;this.history.push({...r,timestamp:t1.now()});
1let{onStart:o,onMove:a}=this.handlers;s||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=ns(e,this.transformPagePoint),this.hasPendingMove=!0,tk.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=nr("pointercancel"===t.type?this.lastMoveEventInfo:ns(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!s4(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const a=ns(s6(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=tC;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,nr(a,this.history));const d={passive:!0,capture:!0};this.removeListeners=iV(s8(this.contextWindow,"pointermove",this.handlePointerMove,d),s8(this.contextWindow,"pointerup",this.handlePointerUp,d),s8(this.contextWindow,"pointercancel",this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(ne.has(t.overflowX)||ne.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:s.x-e.x,y:s.y-e.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,s),tk.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tD(this.updatePoint)}}function ns(t,e){return e?{point:e(t.point)}:t}function nn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nr({point:t},e){return{point:t,delta:nn(t,no(e)),offset:nn(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,s=no(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>t$(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&s.timestamp-i.timestamp>2*t$(.1)&&(i=t[1]);let n=(s.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let r={x:(s.x-i.x)/n,y:(s.y-i.y)/n};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function no(t){return t[t.length-1]}function na(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function nl(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function nh(t,e,i){return{min:nu(t,e),max:nu(t,i)}}function nu(t,e){return"number"==typeof t?t:t[e]||0}let nd=new WeakMap;class nc{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=K(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=t=>{e&&this.snapToCursor(t),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(sU[t])return null;else return sU[t]=!0,()=>{sU[t]=!1};return sU.x||sU.y?null:(sU.x=sU.y=!0,()=>{sU.x=sU.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),sO(t=>{let e=this.getAxisMotionValue(t).get()||0;if(w.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=sW(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&tk.update(()=>n(t,e),!1,!0),iM(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&tk.update(()=>r(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new ni(t,{onSessionStart:n,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:s7(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:r}=s;this.startAnimation(r);let{onDragEnd:o}=this.getProps();o&&tk.postRender(()=>o(i,s))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!nm(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?eU(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?eU(i,t,s.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),n.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&ix(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:na(t.x,i,n),y:na(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:nh(t,"left","right"),y:nh(t,"top","bottom")}}(e),s!==this.constraints&&!ix(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&sO(t=>{var e,s;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],n={},void 0!==s.min&&(n.min=s.min-e.min),void 0!==s.max&&(n.max=s.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!ix(e))return!1;let s=e.current;Q();let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;n.root&&(n.root.scroll=void 0,n.root.updateScroll());
1let r=function(t,e,i){let s=eJ(t,i),{scroll:n}=e;return n&&(e_(s.x,n.offset.x),e_(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),o=(t=n.layout.layoutBox,{x:nl(t.x,r.x),y:nl(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eN(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(sO(o=>{if(!nm(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===r||r===o)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iM(this.visualElement,t),i.start(sC(t,i,0,e,this.visualElement,!1))}stopAnimation(){sO(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor({clientX:t,clientY:e}){let{drag:i}=this.getProps(),s={x:t,y:e},n=this.visualElement.getTransformPagePoint()?.(s)||s,r=this.visualElement.measureViewportBox();sO(t=>{if(!nm(t,i,this.currentDirection))return;let e=this.getAxisMotionValue(t),{min:s,max:o}=r[t];e.set((e.get()||0)+n[t]-eU(s,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!ix(e)||!i||!this.constraints)return;this.stopAnimation();let s=this.constraints,n={x:0,y:0};sO(t=>{var e,i;let r,a,l,h=this.getAxisMotionValue(t).get();n[t]=(e={min:h,max:h},i=s[t],r=.5,a=sW(e),(l=sW(i))>a?r=sh(i.min,i.max-a,e.min):a>l&&(r=sh(e.min,e.max-l,i.min)),o(0,1,r))});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),sO(e=>{let i=this.getAxisMotionValue(e);if(!nm(e,t,null)||!i.get())return;let{min:s,max:r}=this.constraints[e];i.set(eU(s,r,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;nd.set(this.visualElement,this);let e=this.visualElement.current,i=s8(e,"pointerdown",t=>{let{drag:i,dragListener:s=!0}=this.getProps(),n=t.target,r=n!==e&&(s9.has(n.tagName)||!0===n.isContentEditable);i&&s&&!r&&this.start(t)}),s=()=>{var i,s,n;let r,o,{dragConstraints:a}=this.getProps();ix(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,s=a.current,r=s3(i,np(n=()=>this.scalePositionWithinConstraints())),o=s3(s,np(n)),t=()=>{r(),o()}))},{projection:n}=this.visualElement,r=n.addEventListener("measure",s);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),tk.read(s);let o=sN(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(sO(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),r(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:o}}}function np(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function nm(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let nf=t=>(e,i)=>{t&&tk.update(()=>t(e,i),!1,!0)},ng={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var ny=e0;let nv=!1;class nx extends ny.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),nv&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ng.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,{projection:r}=i;return r&&(r.isPresent=n,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),nv=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?r.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?r.promote():r.relegate()||tk.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),ei.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;nv=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nw(t){let[e,i]=function(t=!0){let e=(0,e0.useContext)(ia);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:n}=e,r=(0,e0.useId)();(0,e0.useEffect)(()=>
1{if(t)return n(r)},[t]);let o=(0,e0.useCallback)(()=>t&&s&&s(r),[r,s,t]);return!i&&s?[!1,o]:[!0]}(),s=(0,ny.useContext)(e5);return(0,e3.jsx)(nx,{...t,layoutGroup:s,switchLayoutGroup:(0,ny.useContext)(iv),isPresent:e,safeToRemove:i})}let nT=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],nb=t=>"number"==typeof t?t:parseFloat(t);t.s(["asNumber",0,nb],4093);let nS=nT.length,nP=t=>"number"==typeof t||T.test(t);function nA(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nE=nV(0,.5,sr),nM=nV(.5,.95,tA);function nV(t,e,i){return s=>s<t?0:s>e?1:i(sh(t,e,s))}function nC(t,e){t.min=e.min,t.max=e.max}function nk(t,e){nC(t.x,e.x),nC(t.y,e.y)}function nD(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nR(t,e,i,s,n){return t-=e,t=s+1/i*(t-s),void 0!==n&&(t=s+1/n*(t-s)),t}function nL(t,e,[i,s,n],r,o){!function(t,e=0,i=1,s=.5,n,r=t,o=t){if(w.test(e)&&(e=parseFloat(e),e=eU(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eU(r.min,r.max,s);t===r&&(a-=e),t.min=nR(t.min,e,i,a,n),t.max=nR(t.max,e,i,a,n)}(t,e[i],e[s],e[n],e.scale,r,o)}let nj=["x","scaleX","originX"],nB=["y","scaleY","originY"];function nF(t,e,i,s){nL(t.x,e,nj,i?i.x:void 0,s?s.x:void 0),nL(t.y,e,nB,i?i.y:void 0,s?s.y:void 0)}function nI(t){return 0===t.translate&&1===t.scale}function nO(t){return nI(t.x)&&nI(t.y)}function nN(t,e){return t.min===e.min&&t.max===e.max}function nU(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nW(t,e){return nU(t.x,e.x)&&nU(t.y,e.y)}function n$(t){return sW(t.x)/sW(t.y)}function nz(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nY{constructor(){this.members=[]}add(t){tz(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let s=i.instance;s&&!1!==s.isConnected||i.snapshot||(tY(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(tY(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:s}=i.options,{layoutDependency:n}=t.options;(void 0===s||s!==n)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}function nX(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nH={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!T.test(t))return t;else t=parseFloat(t);let i=nX(t,e.target.x),s=nX(t,e.target.y);return`${i}% ${s}%`}},nK={borderRadius:{...nH,applyTo:[...nT]},borderTopLeftRadius:nH,borderTopRightRadius:nH,borderBottomLeftRadius:nH,borderBottomRightRadius:nH,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=j.parse(t);if(s.length>5)return t;let n=j.createTransformer(t),r=+("number"!=typeof s[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+r]/=o,s[1+r]/=a;let l=eU(o,a,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}},n_=(t,e)=>t.depth-e.depth;class nG{constructor(){this.children=[],this.isDirty=!1}add(t){tz(this.children,t),this.isDirty=!0}remove(t){tY(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(n_),this.isDirty=!1,this.children.forEach(t)}}Object.assign(ej,{...nK,...ej});let nq=["","X","Y","Z"],nZ=0;function nJ(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function nQ({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=nZ++,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=()=>
1{this.projectionUpdateScheduled=!1,this.nodes.forEach(n2),this.nodes.forEach(ri),this.nodes.forEach(rs),this.nodes.forEach(n3)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,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 t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new nG)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tX),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=s_(e)&&!(s_(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;tk.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==s){let e,r;s=t,this.root.updateBlockedByResize=!0,i&&i(),e=t1.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&(tD(r),n())},tk.setup(r,!0),i=()=>tD(r),ng.hasAnimatedSinceResize&&(ng.hasAnimatedSinceResize=!1,this.nodes.forEach(re))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||rh,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!nW(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iE(r,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h,e.path)}else e||re(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tD(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(rn),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=i.props[iy];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",tk,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEac
1h(n4),this.nodes.forEach(n9);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(n6);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(n8),this.nodes.forEach(n7),this.nodes.forEach(rt),this.nodes.forEach(n0),this.nodes.forEach(n1)):this.nodes.forEach(n6),this.clearAllSnapshots();let t=t1.now();tC.delta=o(0,1e3/60,t-tC.timestamp),tC.timestamp=t,tC.isProcessing=!0,tR.update.process(tC),tR.preRender.process(tC),tR.render.process(tC),tC.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ei.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(n5),this.sharedNodes.forEach(rr)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tk.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tk.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||sW(this.snapshot.measuredBox.x)||sW(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 t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected||(this.layoutCorrected=K()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nO(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||ez(this.latestValues)||r)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),rc((e=s).x),rc(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return K();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rm))){let{scroll:t}=this.root;t&&(e_(e.x,t.offset.x),e_(e.y,t.offset.y))}return e}removeElementScroll(t){let e=K();if(nk(e,t),this.scroll?.wasRoot)return e;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&&nk(e,t),e_(e.x,n.offset.x),e_(e.y,n.offset.y))}return e}applyTransform(t,e=!1,i){let s=i||K();nk(s,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(e_(s.x,-i.scroll.offset.x),e_(s.y,-i.scroll.offset.y)),ez(i.latestValues)&&eZ(s,i.latestValues,i.layout?.layoutBox)}return ez(this.latestValues)&&eZ(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(t){let e=K();nk(e,t);for(let t=0;t<this.path.length;t++){let i,s=this.path[t];ez(s.latestValues)&&(s.instance&&(e$(s.latestValues)&&s.updateSnapshot(),nk(i=K(),s.measurePageBox())),nF(e,s.latestValues,s.snapshot?.layoutBox,i))}return ez(this.latestValues)&&nF(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.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!==tC.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||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))return;this.resolvedRelativeTargetAt=tC.timestamp;let r=this.getClosestProjectingParent();if(this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=K(),this.targetWithTransforms=K()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,h;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,h=this.options.layoutAnchor||void 0,sY(o.x,a.x,l.x,h?.x),sY(o.y,a.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):nk(this.target,this.layout.layoutBox),eK(this.target,this.targetDelta)):nk(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||e$(this.parent.latestValues)||eY(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=K(),this.relativeTargetOrigin=K(),sH(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),nk(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tC.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;nk(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,s=!1){let n,r,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(e_(t.x,-n.scroll.offset.x),e_(t.y,-n.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,eK(t,r)),s&&ez(n.latestValues)&&eZ(t,n.latestValues,n.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=K());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nD(this.prevProjectionDelta.x,this.projectionDelta.x),nD(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),sz(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&nz(this.projectionDelta.x,this.prevProjectionDelta.x)&&nz(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=X(),this.projectionDelta=X(),this.projectionDeltaWithTransform=X()}setAnimationOrigin(t,e=!1,i){let s,n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},a=X();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=K(),h=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,c=!!(h&&!d&&!0===this.options.crossfade&&!this.path.some(rl));this.animationProgress=0;let p=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,n=p?.(i);if(n?(a.x.translate=n.x,a.x.scale=eU(t.x.scale,1,i),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=n.y,a.y.scale=eU(t.y.scale,1,i),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(ro(a.x,t.x,i),ro(a.y,t.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,m,f,g,y,v;sH(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,g=this.relativeTargetOrigin,y=l,v=i,ra(f.x,g.x,y.x,v),ra(f.y,g.y,y.y,v),s&&(u=this.relativeTarget,m=s,nN(u.x,m.x)&&nN(u.y,m.y))&&(this.isProjectionDirty=!1),s||(s=K()),nk(s,this.relativeTarget)}h&&(this.animationValues=o,function(t,e,i,s,n,r){n?(t.opacity=eU(0,i.opacity??1,nE(s)),t.opacityExit=eU(e.opacity??1,0,nM(s))):r&&(t.opacity=eU(e.opacity??1,i.opacity??1,s));for(let n=0;n<nS;n++){let r=nT[n],o=nA(e,r),a=nA(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||nP(o)===nP(a)?(t[r]=Math.max(eU(nb(o),nb(a),s),0),(w.test(a)||w.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=eU(e.rotate||0,i.rotate||0,s))}(o,r,this.latestValues,i,c,d)),n&&void 0!==n.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=n.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tD(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tk.update(()=>{var e,i,s;let n;ng.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=eo(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],s={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(n=_(e)?e:eo(e)).start(sC("",n,i,s)),n.animation),function(t,e){let i=globalThis.__MOTION_INSPECT__;if(i)try{i({...t2("layout-animation-start",t),node:e})}catch{}}(this.currentAnimation,this),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 t=this.getStack();t&&t.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 t=this.getLead(),{targetWithTransforms:e,layout:i,latestValues:s}=t,{target:n}=t;
1if(e&&n&&i){if(this!==t&&this.layout&&i&&rp(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||K();let e=sW(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let i=sW(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}nk(e,n),eZ(e,s),sz(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nY),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&nJ("z",t,s,this.animationValues);for(let e=0;e<nq.length;e++)nJ(`rotate${nq[e]}`,t,s,this.animationValues),nJ(`skew${nq[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=ir(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ir(e?.pointerEvents)||""),this.hasProjected&&!ez(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let s="",n=t.x.translate/e.x,r=t.y.translate/e.y,o=i?.z||0;if((n||r||o)&&(s=`translate3d(${n}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:n,rotateX:r,rotateY:o,skewX:a,skewY:l}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotate(${n}deg) `),r&&(s+=`rotateX(${r}deg) `),o&&(s+=`rotateY(${o}deg) `),a&&(s+=`skewX(${a}deg) `),l&&(s+=`skewY(${l}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(r=i(n,r)),t.transform=r;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,s.animationValues?t.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,ej){if(void 0===n[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=ej[e],l="none"===r?n[e]:i(n[e],s);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=s===this?ir(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(n9),this.root.sharedNodes.clear()}}}function n0(t){t.updateLayout()}function n1(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,r=e.source!==t.layout.source;if("size"===n)sO(t=>{let s=r?e.measuredBox[t]:e.layoutBox[t],n=sW(s);s.min=i[t].min,s.max=s.min+n});else if("x"===n||"y"===n){let t="x"===n?"y":"x";nC(r?e.measuredBox[t]:e.layoutBox[t],i[t])}else rp(n,e.layoutBox,i)&&sO(s=>{let n=r?e.measuredBox[s]:e.layoutBox[s],o=sW(i[s]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=X();sz(o,i,e.layoutBox);let a=X();r?sz(a,t.applyTransform(s,!0),e.measuredBox):sz(a,i,e.layoutBox);let l=!nO(o),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let o=t.options.layoutAnchor||void 0,a=K();sH(a,e.layoutBox,n.layoutBox,o);let l=K();sH(l,i,r.layoutBox,o),nW(a,l)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function n2(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function n3(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function n5(t){t.clearSnapshot()}function n9(t){t.clearMeasurements()}function n4(t){t.isLayoutDirty=!0,t.updateLayout()}function n6(t){t.isLayoutDirty=!1}function n8(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function n7(t){t.relativeTarget&&t.relativeParent?.isLayoutDirty&&(t.currentAnimation?t.isLayoutDirty=!0:(t.targetDelta=void 0,t.removeRelativeTarget()))}function rt(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function re(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ri(t){t.resolveTargetDelta()}function rs(t){t.calcProjection()}function rn(t){t.resetSkewAndRotation()}function rr(t){t.removeLeadSnapshot()}function ro(t,e,i){t.translate=eU(e.translate,0,i),t.scale=eU(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ra(t,e,i,s){t.min=eU(e.min,i.min,s),t.max=eU(e.max,i.max,s)}function rl(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rh={duration:.45,ease:[.4,0,.1,1]},ru=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rd=ru("applewebkit/")&&!ru("chrome/")?Math.round:tA;function rc(t){t.min=rd(t.min),t.max=rd(t.max)}function rp(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(n$(e)-n$(i)))}function rm(t){return t!==t.root&&t.scroll?.wasRoot}let rf=nQ({attachResizeListener:(t,e)=>sN(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rg={current:void 0},ry=nQ({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rg.current){let t=new rf({});t.mount(window),t.setOptions({layoutScroll:!0}),rg.current=t}return rg.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rv(t,e){let i=sG(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function rx(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&tk.postRender(()=>n(e,s6(e)))}let rw=(t,e)=>!!e&&(t===e||rw(t,e.parentElement)),rT=new WeakSet;function rb(t){return e=>{"Enter"===e.key&&t(e)}}function rS(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function rP(t){return s4(t)&&!(sU.x||sU.y)}let rA=new WeakSet;function rE(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&tk.postRender(()=>n(e,s6(e)))}let rM=new WeakMap,rV=new WeakMap,rC=t=>{let e=rM.get(t.target);e&&e(t)},rk=t=>{t.forEach(rC)},rD={some:0,all:1},rR=function(t,e){if("u"<typeof Proxy)return iT;let i=new Map,s=(i,s)=>iT(i,s,t,e);return new Proxy((t,e)=>s(t,e),{get:(n,r)=>"create"===r?s:(i.has(r)||i.set(r,iT(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends ib{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){return t.notify("AnimationStart",e),(Array.isArray(e)?Promise.all(e.map(e=>sL(t,e,i))):"string"==typeof e?sL(t,e,i):Promise.all(sD(t,iS(t,e,i.custom),i))).then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=sF(),s=!0,n=!1;function r(r){let{props:o,parent:a,manuallyAnimateOnMount:l}=t,h=s||n,u=[],d=new Set,c={},p=1/0,m=t;do m=!1!==m.props.inherit&&m.parent;while(m&&!m.isControllingVariants)if(sB.forEach((e,s)=>{var n,f;let g=i[e],y=o[e],v=m&&m.props[e],x=void 0!==y?y:eh(v)||!1===v?v:void 0,w=eh(x),T=e===r?g.isActive:null;!1===T&&(p=s);let b=w&&void 0===y&&!(h&&l);if(g.protectedKeys={...c},!g.isActive&&null===T||!x&&!g.prevProp||el(x)||"boolean"==typeof x)return;if("exit"===e&&g.isActive&&!0!==T){c={...c,...g.prevResolvedValues};return}let S=(n=g.prevProp,"string"==typeof(f=x)?f!==n:!!Array.isArray(f)&&!sj(f,n)),P=S||w&&(T&&!b||s>p),A=!1,E=Array.isArray(x)?x:[x],M={};if(!1!==T)for(let i of E){let{transition:s,transitionEnd:n,...r}=iS(t,i,iP(t,e))||{};M={...M,...r,...n}}let{prevResolvedValues:V}=g;for(let e in{...V,...M}){if(e in c)continue;let i=M[e],s=V[e],n=Array.isArray(i)&&Array.isArray(s)?!sj(i,s)||S:i!==s;if(n&&null==i)d.add(e);else if(n||void 0!==i&&d.has(e)){P=!0,d.delete(e)&&(A=!0),g.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)}else g.protectedKeys[e]=!0}if(g.prevProp=x,g.prevResolvedValues=M,g.isActive&&(c={...c,...M}),P&&(!(b&&S)||A))for(let i of E){let s={type:e};if("string"==typeof i&&h&&l&&a?.enteringChildren){let e=iS(a,i)?.transition?.delayChildren;s.delay=sR(a.enteringChildren,t,e)}u.push({animation:i,options:s})}}),d.size){let{initial:e}=o,i={},s="boolean"!=typeof e&&iS(t,Array.isArray(e)?e[0]:e,t.presenceContext?.custom);s&&s.transition&&(i.transition=s.transition),d.forEach(n=>{let r=t.getValue(n);r&&(r.liveStyle=!0);let a=s&&!Array.isArray(e)?s[n]:void 0,l=t.getBaseTargetFromProps(o,n);i[n]=(void 0!==a?a:void 0===l||_(l)?void 0===t.initialValues[n]?t.baseTarget[n]:void 0:l)??null}),u.push({animation:i})}let f=h&&t.blockInitialAnimation||s&&!l&&(!1===o.initial||o.initial===o.animate);return s=n=!1,!f&&u.length?e(u):Promise.resolve()}return{animateChanges:r,setActive:function(e,s){if(i[e].isActive===s)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,s)),i[e].isActive=s;let n=r(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:i=>{e=i(t)},getState:()=>i,reset:()=>{i=sF(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();el(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends ib{constructor(){super(...arguments),this.id=sI++}update(){let{presenceContext:t,prevPresenceContext:e,animationState:i}=this.node;if(!t||!i)return;let{isPresent:s,onExitComplete:n}=t,r=e?.isPresent;if(s===r)return;if(s&&!1===r){if(!0===this.exit){let{initial:t}=this.node.getProps();if(t&&!Array.isArray(t)){let{transition:e,transitionEnd:i,...s}=iS(this.node,t)||{};for(let t in s)this.node.getValue(t)?.jump(s[t])}this.node.blockInitialAnimation=!1,i.reset(),i.animateChanges()}else i.setActive("exit",!1);this.exit=void 0;return}let o=this.exit=i.setActive("exit",!s);n&&!s&&o.then(()=>{this.exit===o&&(this.exit=!0,n(this.id))})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends ib{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:r="some",once:o}=i,a={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:rD[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=e?i:s;n&&n(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;rV.has(i)||rV.set(i,{});let s=rV.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(rk,{root:t,...e})),s[n]}(a),rM.set(t,l),e.observe(t),()=>{rM.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends ib{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[s,n,r]=rv(t,i),o=t=>{let s=t.currentTarget;if(!rP(t)||rA.has(t))return;rT.add(s),i.stopPropagation&&rA.add(t);let r=e(s,t),o={...n,capture:!0},a=(t,e)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",h,o),rT.has(s)&&rT.delete(s),rP(t)&&"function"==typeof r&&r(t,{success:e})},l=t=>{a(t,s===window||s===document||i.useGlobalTarget||rw(s,t.target))},h=t=>{a(t,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",h,o)};return s.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),sK(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=rb(()=>{if(rT.has(i))return;rS(i,"down");let t=rb(()=>{rS(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rS(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,n)),s5.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(rE(this.node,e,"Start"),(t,{success:e})=>rE(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends ib{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=iV(sN(this.node.current,"focus",()=>this.onFocus()),sN(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ib{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,r]=rv(t,i);return s.forEach(t=>{let i,s=!1,r=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{s=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),r&&(r=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(s){r=!0;return}o(t)}};t.addEventListener("pointerenter",s=>{if("touch"===s.pointerType||sU.x||sU.y)return;r=!1;let o=e(t,s);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,n))},n),t.addEventListener("pointerdown",()=>{s=!0,window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",a,n)},n)}),r}(t,(t,e)=>(rx(this.node,e,"Start"),t=>rx(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends ib{constructor(){super(...arguments),this.removePointerDownListener=tA}onPointerDown(t){this.session=new ni(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:s7(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:nf(t),onStart:nf(e),onMove:nf(i),onEnd:(t,e)=>{delete this.session,s&&tk.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=s8(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ib{constructor(t){super(t),this.removeGroupControls=tA,this.removeListeners=tA,this.controls=new nc(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tA}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:ry,MeasureLayout:nw},layout:{ProjectionNode:ry,MeasureLayout:nw}},(t,e)=>e.isSVG??e2(t)?new eO(e):new eQ(e,{allowProjection:t!==e0.Fragment}));function rL(t){let e=il(()=>eo(t)),{isStatic:i}=(0,e0.useContext)(e4);if(i){let[,i]=(0,e0.useState)(t);(0,e0.useEffect)(()=>
1e.on("change",i),[])}return e}function rj(t,e){let i=rL(e()),s=()=>i.set(e());return s(),iw(()=>{let e=()=>tk.preRender(s,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),tD(s)}}),i}t.s(["motion",0,rR],17229),t.s(["useMotionValue",0,rL],61641);function rB(t,e){let i=il(()=>[]);return rj(t,()=>{i.length=0;let s=t.length;for(let e=0;e<s;e++)i[e]=t[e].get();return e(i)})}t.s(["useTransform",0,function t(e,i,s,n){if("function"==typeof e){let t;return en.current=[],e(),t=rj(en.current,e),en.current=void 0,t}if(void 0!==s&&!Array.isArray(s)&&"function"!=typeof i){var r=e,o=i,a=s,l=n;let h=il(()=>Object.keys(a)),u=il(()=>({}));for(let e of h)u[e]=t(r,o,a[e],l);return u}let h="function"==typeof i?i:function(...t){let e=!Array.isArray(t[0]),i=e?0:-1,s=t[0+i],n=su(t[1+i],t[2+i],t[3+i]);return e?n(s):n}(i,s,n),u=Array.isArray(e)?rB(e,h):rB([e],([t])=>h(t)),d=Array.isArray(e)?void 0:e.accelerate;if(d&&!d.isTransformed&&"function"!=typeof i&&Array.isArray(s)&&n?.clamp!==!1){let t=n?.ease;u.accelerate={...d,times:[0,...i,1],keyframes:[s[0],...s,s[s.length-1]],isTransformed:!0,...t?{ease:Array.isArray(t)?[t[0],...t]:t}:{}}}return u}],31865)}]);

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.