PageSourceSearch

https://leafless.cards/_next/static/chunks/452-2ca1d1050168e262.js

js leafless.cards collected 2026-10-02 01:19:22 UTC 119,556 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[452],{18:(t,e,i)=>{i.d(e,{U:()=>n,f:()=>s});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(n)},98:(t,e,i)=>{i.d(e,{OQ:()=>h});var n=i(5626),s=i(2923),r=i(4261),a=i(9515);let o={current:void 0};class l{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=r.k.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty();e&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=r.k.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){this.events[t]||(this.events[t]=new n.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),a.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}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.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return o.current&&o.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=r.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,s.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function h(t,e){return new l(t,e)}},280:(t,e,i)=>{i.d(e,{E4:()=>o,Hr:()=>d,W9:()=>u});var n=i(4160),s=i(18),r=i(7887),a=i(4158);let o=t=>t===r.ai||t===a.px,l=new Set(["x","y","z"]),h=s.U.filter(t=>!l.has(t));function u(t){let e=[];return h.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}let d={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>(0,n.ry)(e,"x"),y:(t,{transform:e})=>(0,n.ry)(e,"y")};d.translateX=d.x,d.translateY=d.y},419:(t,e,i)=>{i.d(e,{K:()=>s});var n=i(2735);function s(t,e,i){let s=t.getProps();return(0,n.a)(s,e,void 0!==i?i:s.custom,t)}},600:(t,e,i)=>{i.d(e,{e:()=>n});function n(t,{style:e,vars:i},n,s){for(let r in Object.assign(t.style,e,s&&s.getProjectionStyles(n)),i)t.style.setProperty(r,i[r])}},614:(t,e,i)=>{i.d(e,{S:()=>n});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},637:(t,e,i)=>{i.d(e,{$:()=>r,H:()=>s});var n=i(8606);let s={};function r(t){for(let e in t)s[e]=t[e],(0,n.j)(e)&&(s[e].isCSSVariable=!0)}},728:(t,e,i)=>{i.d(e,{l:()=>p});var n=i(18),s=i(1834),r=i(1786),a=i(5193),o=i(8450),l=i(2076);let h=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"]);var u=i(3095),d=i(600),c=i(4527);class p extends a.b{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=r.ge}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(n.f.has(e)){let t=(0,s.D)(e);return t&&t.default||0}return e=h.has(e)?e:(0,o.I)(e),t.getAttribute(e)}
1scrapeMotionValuesFromProps(t,e,i){return(0,c.x)(t,e,i)}build(t,e,i){(0,l.B)(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in(0,d.e)(t,e,void 0,n),e.attrs)t.setAttribute(h.has(i)?i:(0,o.I)(i),e.attrs[i])}mount(t){this.isSVGTag=(0,u.n)(t.tagName),super.mount(t)}}},845:(t,e,i)=>{i.d(e,{t:()=>n});let n=(0,i(2115).createContext)(null)},869:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(2115).createContext)({})},1081:(t,e,i)=>{i.d(e,{h:()=>n});let n=t=>Array.isArray(t)&&"number"!=typeof t[0]},1116:(t,e,i)=>{i.d(e,{J:()=>n});let n=(0,i(1917).p)(()=>void 0!==window.ScrollTimeline)},1297:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>i>e?e:i<t?t:i},1335:(t,e,i)=>{i.d(e,{u:()=>s});var n=i(9064);let s={test:(0,i(5920).$)("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:n.B.transform}},1469:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return l},getImageProps:function(){return o}});let n=i(8229),s=i(8883),r=i(3063),a=n._(i(1193));function o(t){let{props:e}=(0,s.getImgProps)(t,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let l=r.Image},1508:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(2115).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},1557:(t,e,i)=>{i.d(e,{a:()=>n});let n=t=>Math.round(1e5*t)/1e5},1765:(t,e,i)=>{i.d(e,{V:()=>n});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},1786:(t,e,i)=>{i.d(e,{ge:()=>a,xU:()=>s});let n=()=>({translate:0,scale:1,origin:0,originPoint:0}),s=()=>({x:n(),y:n()}),r=()=>({min:0,max:0}),a=()=>({x:r(),y:r()})},1834:(t,e,i)=>{i.d(e,{D:()=>a});var n=i(4272),s=i(2171);let r={...i(2403).W,color:n.y,backgroundColor:n.y,outlineColor:n.y,fill:n.y,stroke:n.y,borderColor:n.y,borderTopColor:n.y,borderRightColor:n.y,borderBottomColor:n.y,borderLeftColor:n.y,filter:s.p,WebkitFilter:s.p},a=t=>r[t]},1917:(t,e,i)=>{i.d(e,{p:()=>n});function n(t){let e;return()=>(void 0===e&&(e=t()),e)}},2017:(t,e,i)=>{i.d(e,{f:()=>r});var n=i(5818),s=i(3210);function r(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let a=(0,n.q)(0,e,r);t.push((0,s.k)(i,1,a))}}},2076:(t,e,i)=>{i.d(e,{B:()=>o});var n=i(7684),s=i(4158);let r={offset:"stroke-dashoffset",array:"stroke-dasharray"},a={offset:"strokeDashoffset",array:"strokeDasharray"};function o(t,{attrX:e,attrY:i,attrScale:o,pathLength:l,pathSpacing:h=1,pathOffset:u=0,...d},c,p,m){if((0,n.O)(t,d,p),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:f,style:v}=t;f.transform&&(v.transform=f.transform,delete f.transform),(v.transform||f.transformOrigin)&&(v.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),v.transform&&(v.transformBox=m?.transformBox??"fill-box",delete f.transformBox),void 0!==e&&(f.x=e),void 0!==i&&(f.y=i),void 0!==o&&(f.scale=o),void 0!==l&&function(t,e,i=1,n=0,o=!0){t.pathLength=1;let l=o?r:a;t[l.offset]=s.px.transform(-n);let h=s.px.transform(e),u=s.px.transform(i);t[l.array]=`${h} ${u}`}(f,l,h,u,!1)}},2082:(t,e,i)=>{i.d(e,{xQ:()=>r});var n=i(2115),s=i(845);function r(t=!0){let e=(0,n.useContext)(s.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:a,register:o}=e,l=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return o(l)},[t]);let h=(0,n.useCallback)(()=>t&&a&&a(l),[l,a,t]);return!i&&a?[!1,h]:[!0]}},2171:(t,e,i)=>{i.d(e,{p:()=>l});var n=i(7629),s=i(614);let r=new Set(["brightness","contrast","saturate","opacity"]);function a(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(s.S)||[];if(!n)return t;let a=i.replace(n,""),o=+!!r.has(e);return n!==i&&(o*=100),e+"("+o+a+")"}let o=/\b([a-z-]*)\(.*?\)/gu,l={...n.f,getAnimatableNone:t=>{let e=t.match(o);return e?e.map(a).join(" "):t}}},2198:(t,e,i)=>{i.d(e,{K:()=>n});function n(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}},2403:(t,e,i)=>{i.d(e,{W:()=>o});var n=i(7887);let s={...n.ai,transform:Math.round};var r=i(4158);let a={rotate:r.uj,rotateX:r.uj,rotateY:r.uj,rotateZ:r.uj,scale:n.hs,scaleX:n.hs,scaleY:n.hs,scaleZ:n.hs,skew:r.uj,skewX:r.uj,skewY:r.uj,distance:r.px,translateX:r.px,translateY:r.px,translateZ:r.px,x:r.px,y:r.px,z:r.px,perspective:r.px,transformPerspective:r.px,opacity:n.X4,originX:r.gQ,originY:r.gQ,originZ:r.px},o={borderWidth:r.px,borderTopWidth:r.px,borderRightWidth:r.px,borderBottomWidth:r.px,borderLeftWidth:r.px,borderRadius:r.px,radius:r.px,borderTopLeftRadius:r.px,borderTopRightRadius:r.px,borderBottomRightRadius:r.px,borderBottomLeftRadius:r.px,width:r.px,maxWidth:r.px,height:r.px,maxHeight:r.px,top:r.px,right:r.px,bottom:r.px,left:r.px,padding:r.px,paddingTop:r.px,paddingRight:r.px,paddingBottom:r.px,paddingLeft:r.px,margin:r.px,marginTop:r.px,marginRight:r.px,marginBottom:r.px,marginLeft:r.px,backgroundPositionX:r.px,backgroundPositionY:r.px,...a,zIndex:s,fillOpacity:n.X4,strokeOpacity:n.X4,numOctaves:s}},2458:(t,e,i)=>{i.d(e,{Y:()=>n,t:()=>s});let n=2e4;function s(t){let e=0,i=t.next(e);for(;!i.done&&e<n;)e+=50,i=t.next(e);return e>=n?1/0:e}},2662:(t,e,i)=>{function n(t){return void 0===t||1===t}function s({scale:t,scaleX:e,scaleY:i}){return!n(t)||!n(e)||!n(i)}function r(t){return s(t)||a(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function a(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}i.d(e,{HD:()=>r,vF:()=>a,vk:()=>s})},2735:(t,e,i)=>{function n(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function s(t,e,i,s){if("function"==typeof e){let[r,a]=n(s);e=e(void 0!==i?i:t.custom,r,a)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,a]=n(s);e=e(void 0!==i?i:t.custom,r,a)}return e}i.d(e,{a:()=>s})},2885:(t,e,i)=>{i.d(e,{M:()=>s});var n=i(2115);function s(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},2923:(t,e,i)=>{i.d(e,{f:()=>n});function n(t,e){return e?1e3/e*t:0}},3014:(t,e,i)=>{i.d(e,{i:()=>n});let n=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},3055:(t,e,i)=>{i.d(e,{z:()=>r});var n=i(18),s=i(637);function r(t,{layout:e,layoutId:i}){return n.f.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!s.H[t]||"opacity"===t)}},3095:(t,e,i)=>{i.d(e,{n:()=>n});let n=t=>"string"==typeof t&&"svg"===t.toLowerCase()},3128:(t,e,i)=>{i.d(e,{W:()=>n});function n(t){return"function"==typeof t&&"applyToOptions"in t}},3191:(t,e,i)=>{i.d(e,{F:()=>s});let n=(t,e)=>i=>e(t(i)),s=(...t)=>t.reduce(n)},3210:(t,e,i)=>{i.d(e,{k:()=>n});let n=(t,e,i)=>t+(e-t)*i},3387:(t,e,i)=>{i.d(e,{W:()=>n});let n={}},3522:(t,e,i)=>{i.d(e,{w:()=>n});let n=t=>e=>e.test(t)},3562:(t,e,i)=>{i.d(e,{B:()=>M});var n=i(7322),s=i(4261),r=i(9515),a=i(4803),o=i(18),l=i(98),h=i(4272),u=i(7629),d=i(4050),c=i(3522);let p=[...d.T,h.y,u.f];var m=i(7277),f=i(3014),v=i(7312),g=i(5626),y=i(6642),x=i(1786),w=i(8972);let T={current:null},P={current:!1};var b=i(5511),S=i(9253),A=i(2735);let V=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class M{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:o,blockInitialAnimation:l,visualState:h},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=n.h,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=s.k.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,r.Gt.render(this.render,!1,!0))};let{latestValues:d,renderState:c}=h;this.latestValues=d,this.baseTarget={...d},this.initialValues=e.initial?{...d}:{},this.renderState=c,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=u,this.blockInitialAnimation=!!l,this.isControllingVariants=(0,S.e)(e),this.isVariantNode=(0,S.O)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:p,...m}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in m){let e=m[t];void 0!==d[t]&&(0,a.S)(e)&&e.set(d[t],!1)}}mount(t){this.current=t,b.C.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),P.current||function(){if(P.current=!0,w.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>T.current=t.matches;t.addListener(e),e()}else T.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||T.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,r.WG)(this.notifyUpdate),(0,r.WG)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(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}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=o.f.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&r.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),a(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in y.B){let e=y.B[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
1e.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):(0,x.ge)()}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<V.length;e++){let i=V[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if((0,a.S)(s))t.addValue(n,s);else if((0,a.S)(r))t.addValue(n,(0,l.OQ)(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,(0,l.OQ)(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);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}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}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=(0,l.OQ)(null===e?void 0:e,{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){if("string"==typeof i&&((0,f.i)(i)||(0,v.$)(i)))i=parseFloat(i);else{let n;n=i,!p.find((0,c.w)(n))&&u.f.test(e)&&(i=(0,m.J)(t,e))}this.setBaseTarget(t,(0,a.S)(i)?i.get():i)}return(0,a.S)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=(0,A.a)(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,a.S)(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new g.v),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}},3704:(t,e,i)=>{i.d(e,{q:()=>n});let n={layout:0,mainThread:0,waapi:0}},3757:(t,e,i)=>{i.d(e,{L:()=>a,m:()=>r});var n=i(8588),s=i(6147);function r(t,e){return(0,n.FY)((0,n.bS)(t.getBoundingClientRect(),e))}function a(t,e,i){let n=r(t,i),{scroll:a}=e;return a&&((0,s.Ql)(n.x,a.offset.x),(0,s.Ql)(n.y,a.offset.y)),n}},3945:(t,e,i)=>{i.d(e,{Y:()=>s});var n=i(2923);function s(t,e,i){let s=Math.max(e-5,0);return(0,n.f)(i-t(s),e-s)}},4050:(t,e,i)=>{i.d(e,{T:()=>a,n:()=>o});var n=i(7887),s=i(4158),r=i(3522);let a=[n.ai,s.px,s.KN,s.uj,s.vw,s.vh,{test:t=>"auto"===t,parse:t=>t}],o=t=>a.find((0,r.w)(t))},4158:(t,e,i)=>{i.d(e,{KN:()=>r,gQ:()=>h,px:()=>a,uj:()=>s,vh:()=>o,vw:()=>l});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),s=n("deg"),r=n("%"),a=n("px"),o=n("vh"),l=n("vw"),h={...r,parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)}},4160:(t,e,i)=>{i.d(e,{Ib:()=>c,ry:()=>d,zs:()=>u});let n=t=>180*t/Math.PI,s=t=>a(n(Math.atan2(t[1],t[0]))),r={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:s,rotateZ:s,skewX:t=>n(Math.atan(t[1])),skewY:t=>n(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},a=t=>((t%=360)<0&&(t+=360),t),o=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),h={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:o,scaleY:l,scale:t=>(o(t)+l(t))/2,rotateX:t=>a(n(Math.atan2(t[6],t[5]))),rotateY:t=>a(n(Math.atan2(-t[2],t[0]))),rotateZ:s,rotate:s,skewX:t=>n(Math.atan(t[4])),skewY:t=>n(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function u(t){return+!!t.includes("scale")}function d(t,e){let i,n;if(!t||"none"===t)return u(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=h,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=r,n=e}if(!n)return u(e);let a=i[e],o=n[1].split(",").map(p);return"function"==typeof a?a(o):o[a]}let c=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return d(i,e)};function p(t){return parseFloat(t.trim())}},4180:(t,e,i)=>{i.d(e,{G:()=>n});let n=t=>e=>1-t(1-e)},4261:(t,e,i)=>{let n;i.d(e,{k:()=>o});var s=i(3387),r=i(9515);function a(){n=void 0}let o={now:()=>(void 0===n&&o.set(r.uv.isProcessing||s.W.useManualTiming?r.uv.timestamp:performance.now()),n),set
1:t=>{n=t,queueMicrotask(a)}}},4272:(t,e,i)=>{i.d(e,{y:()=>a});var n=i(1335),s=i(8476),r=i(9064);let a={test:t=>r.B.test(t)||n.u.test(t)||s.V.test(t),parse:t=>r.B.test(t)?r.B.parse(t):s.V.test(t)?s.V.parse(t):n.u.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?r.B.transform(t):s.V.transform(t),getAnimatableNone:t=>{let e=a.parse(t);return e.alpha=0,a.transform(e)}}},4413:(t,e,i)=>{i.d(e,{f:()=>tf});var n=i(8777),s=i(9515),r=i(3191),a=i(1297),o=i(7215),l=i(4261),h=i(3704),u=i(6087);let d=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>s.Gt.update(e,t),stop:()=>(0,s.WG)(e),now:()=>s.uv.isProcessing?s.uv.timestamp:l.k.now()}};var c=i(4687),p=i(3945);function m({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:h=.5,restSpeed:u}){let d,m,f=t[0],v={done:!1,value:f},g=i*e,y=f+g,x=void 0===a?y:a(y);x!==y&&(g=x-f);let w=t=>-g*Math.exp(-t/n),T=t=>x+w(t),P=t=>{let e=w(t),i=T(t);v.done=Math.abs(e)<=h,v.value=v.done?x:i},b=t=>{let e;if(e=v.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;d=t,m=(0,c.o)({keyframes:[v.value,(i=v.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:(0,p.Y)(T,t,v.value),damping:s,stiffness:r,restDelta:h,restSpeed:u})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(m||void 0!==d||(e=!0,P(t),b(t)),void 0!==d&&t>=d)?m.next(t-d):(e||P(t),v)}}}var f=i(9827);let v=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function g(t,e,i,n){return t===e&&i===n?f.l:s=>0===s||1===s?s:v(function(t,e,i,n,s){let r,a,o=0;do(r=v(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++o<12);return a}(s,0,1,t,i),e,n)}let y=g(.42,0,1,1),x=g(0,0,.58,1),w=g(.42,0,.58,1);var T=i(1081),P=i(4542),b=i(1765),S=i(4180);let A=g(.33,1.53,.69,.99),V=(0,S.G)(A),M=(0,b.V)(V),k=t=>(t*=2)<1?.5*V(t):.5*(2-Math.pow(2,-10*(t-1)));var E=i(7712);let D=t=>Array.isArray(t)&&"number"==typeof t[0],C={linear:f.l,easeIn:y,easeInOut:w,easeOut:x,circIn:E.po,circInOut:E.tn,circOut:E.yT,backIn:V,backInOut:M,backOut:A,anticipate:k},R=t=>{if(D(t)){(0,P.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,s]=t;return g(e,i,n,s)}return"string"==typeof t?((0,P.V)(void 0!==C[t],`Invalid easing type '${t}'`),C[t]):t};var j=i(6775),L=i(9115);function F({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r=(0,T.h)(n)?n.map(R):R(n),a={done:!1,value:e[0]},o=(s=i&&i.length===e.length?i:(0,L.Z)(e),s.map(e=>e*t)),l=(0,j.G)(o,e,{ease:Array.isArray(r)?r:e.map(()=>r||w).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}var B=i(2458);let O=t=>null!==t;function U(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(O),a=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return a&&void 0!==n?n:r[a]}let I={decay:m,inertia:m,tween:F,keyframes:F,spring:c.o};function W(t){"string"==typeof t.type&&(t.type=I[t.type])}class ${constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let N=t=>t/100;class q extends ${constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==l.k.now()&&this.tick(l.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},h.q.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;W(t);let{type:e=F,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:a=0}=t,{keyframes:o}=t,l=e||F;l!==F&&"number"!=typeof o[0]&&(this.mixKeyframes=(0,r.F)(N,(0,u.j)(o[0],o[1])),o=[0,100]);let h=l({...t,keyframes:o});"mirror"===s&&(this.mirroredGenerator=l({...t,keyframes:[...o].reverse(),velocity:-a})),null===h.calculatedDuration&&(h.calculatedDuration=(0,B.t)(h));let{calculatedDuration:d}=h;this.calculatedDuration=d,this.resolvedDuration=d+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=h}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{generator:i,totalDuration:n,mixKeyframes:s,mirroredGenerator:r,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);
1let{delay:h=0,keyframes:u,repeat:d,repeatType:c,repeatDelay:p,type:f,onUpdate:v,finalKeyframe:g}=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 y=this.currentTime-h*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let w=this.currentTime,T=i;if(d){let t=Math.min(this.currentTime,n)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===c?(i=1-i,p&&(i-=p/o)):"mirror"===c&&(T=r)),w=(0,a.q)(0,1,i)*o}let P=x?{done:!1,value:u[0]}:T.next(w);s&&(P.value=s(P.value));let{done:b}=P;x||null===l||(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!==m&&(P.value=U(u,this.options,g,this.speed)),v&&v(P.value),S&&this.finish(),P}then(t,e){return this.finished.then(t,e)}get duration(){return(0,o.X)(this.calculatedDuration)}get time(){return(0,o.X)(this.currentTime)}set time(t){t=(0,o.f)(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?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(l.k.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,o.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=d,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(l.k.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,h.q.mainThread--}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)}}var G=i(3387),X=i(7322),K=i(1116),H=i(4744),Y=i(1917);let z={},Q=function(t,e){let i=(0,Y.p)(t);return()=>z[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var _=i(7705);let Z=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,J={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Z([0,.65,.55,1]),circOut:Z([.55,0,1,.45]),backIn:Z([.31,.01,.66,-.59]),backOut:Z([.33,1.53,.69,.99])};var tt=i(3128);class te extends ${constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,(0,P.V)("string"!=typeof t.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let l=function({type:t,...e}){return(0,tt.W)(t)&&Q()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let d={[e]:i};l&&(d.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?Q()?(0,_.K)(e,i):"ease-out":D(e)?Z(e):Array.isArray(e)?e.map(e=>t(e,i)||J.easeOut):J[e]}(o,s);Array.isArray(c)&&(d.easing=c),H.Q.value&&h.q.waapi++;let p={delay:n,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};u&&(p.pseudoElement=u);let m=t.animate(d,p);return H.Q.value&&m.finished.finally(()=>{h.q.waapi--}),m}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=U(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}(e,i,t),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(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(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return(0,o.X)(Number(t))}get time(){return(0,o.X)(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=(0,o.f)(t)}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 Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&(0,K.J)())?(this.animation.timeline=t,f.l):e(this)}}let ti={anticipate:k,backInOut:M,circInOut:E.tn};class tn extends te{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in ti&&(t.ease=ti[t.ease])}(t),W(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new q({...r,autoplay:!1}),l=(0,o.f)(this.finishedTime??this.time);e.setWithVelocity(a.sample(l-10).value,a.sample(l).value,10),a.stop()}}var ts=i(7629);let tr=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(ts.f.test(t)||"0"===t)&&!t.startsWith("url("));var ta=i(7351);let to=new Set(["opacity","clipPath","filter","transform"]),tl=(0,Y.p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class th extends ${constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:a,name:o,motionValue:h,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=l.k.now();let c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:o,motionValue:h,element:u,...d},p=u?.KeyframeResolver||X.h;this.keyframeResolver=new p(a,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),o,h,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:s,type:r,velocity:a,delay:o,isHandoff:h,onUpdate:u}=i;
1this.resolvedAt=l.k.now(),!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=tr(s,e),o=tr(r,e);return(0,P.$)(a===o,`You are trying to animate ${e} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`),!!a&&!!o&&(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||(0,tt.W)(i))&&n)}(t,s,r,a)&&((G.W.instantAnimations||!o)&&u?.(U(t,i,e)),t[0]=t[t.length-1],i.duration=0,i.repeat=0);let d={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},c=!h&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:a}=t;if(!(0,ta.s)(e?.owner?.current))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return tl()&&i&&to.has(i)&&("transform"!==i||!l)&&!o&&!n&&"mirror"!==s&&0!==r&&"inertia"!==a}(d)?new tn({...d,element:d.motionValue.owner.current}):new q(d);c.finished.then(()=>this.notifyFinished()).catch(f.l),this.pendingTimeline&&(this.stopTimeline=c.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=c}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,X.q)()),this._animation}get duration(){return this.animation.duration}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 tu=t=>null!==t;var td=i(18);let tc={type:"spring",stiffness:500,damping:25,restSpeed:10},tp={type:"keyframes",duration:.8},tm={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tf=(t,e,i,r={},a,l)=>h=>{let u=(0,n.r)(r,t)||{},d=u.delay||r.delay||0,{elapsed:c=0}=r;c-=(0,o.f)(d);let p={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...u,delay:-c,onUpdate:t=>{e.set(t),u.onUpdate&&u.onUpdate(t)},onComplete:()=>{h(),u.onComplete&&u.onComplete()},name:t,motionValue:e,element:l?void 0:a};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:s,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(u)&&Object.assign(p,((t,{keyframes:e})=>e.length>2?tp:td.f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:tc:tm)(t,p)),p.duration&&(p.duration=(0,o.f)(p.duration)),p.repeatDelay&&(p.repeatDelay=(0,o.f)(p.repeatDelay)),void 0!==p.from&&(p.keyframes[0]=p.from);let m=!1;if(!1!==p.type&&(0!==p.duration||p.repeatDelay)||(p.duration=0,0===p.delay&&(m=!0)),(G.W.instantAnimations||G.W.ski
1pAnimations)&&(m=!0,p.duration=0,p.delay=0),p.allowFlatten=!u.type&&!u.ease,m&&!l&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let s=t.filter(tu),r=e&&"loop"!==i&&e%2==1?0:s.length-1;return s[r]}(p.keyframes,u);if(void 0!==t)return void s.Gt.update(()=>{p.onUpdate(t),p.onComplete()})}return u.isSync?new q(p):new th(p)}},4527:(t,e,i)=>{i.d(e,{x:()=>a});var n=i(4803),s=i(18),r=i(8609);function a(t,e,i){let a=(0,r.x)(t,e,i);for(let i in t)((0,n.S)(t[i])||(0,n.S)(e[i]))&&(a[-1!==s.U.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return a}},4542:(t,e,i)=>{i.d(e,{$:()=>n,V:()=>s});let n=()=>{},s=()=>{}},4608:(t,e,i)=>{i.d(e,{X:()=>r});var n=i(7215),s=i(2458);function r(t,e=100,i){let a=i({...t,keyframes:[0,e]}),o=Math.min((0,s.t)(a),s.Y);return{type:"keyframes",ease:t=>a.next(o*t).value/e,duration:(0,n.X)(o)}}},4687:(t,e,i)=>{i.d(e,{o:()=>f});var n=i(1297),s=i(7215),r=i(7705),a=i(2458),o=i(4608),l=i(3945);let h={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var u=i(4542);function d(t,e){return t*Math.sqrt(1-e*e)}let c=["duration","bounce"],p=["stiffness","damping","mass"];function m(t,e){return e.some(e=>void 0!==t[e])}function f(t=h.visualDuration,e=h.bounce){let i,o="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:v,restDelta:g}=o,y=o.keyframes[0],x=o.keyframes[o.keyframes.length-1],w={done:!1,value:y},{stiffness:T,damping:P,mass:b,duration:S,velocity:A,isResolvedFromDuration:V}=function(t){let e={velocity:h.velocity,stiffness:h.stiffness,damping:h.damping,mass:h.mass,isResolvedFromDuration:!1,...t};if(!m(t,p)&&m(t,c))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,r=2*(0,n.q)(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:h.mass,stiffness:s,damping:r}}else{let i=function({duration:t=h.duration,bounce:e=h.bounce,velocity:i=h.velocity,mass:r=h.mass}){let a,o;(0,u.$)(t<=(0,s.f)(h.maxDuration),"Spring duration must be 10 seconds or less");let l=1-e;l=(0,n.q)(h.minDamping,h.maxDamping,l),t=(0,n.q)(h.minDuration,h.maxDuration,(0,s.X)(t)),l<1?(a=e=>{let n=e*l,s=n*t;return .001-(n-i)/d(e,l)*Math.exp(-s)},o=e=>{let n=e*l*t,s=Math.pow(l,2)*Math.pow(e,2)*t,r=Math.exp(-n),o=d(Math.pow(e,2),l);return(n*i+i-s)*r*(-a(e)+.001>0?-1:1)/o}):(a=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),o=e=>t*t*(i-e)*Math.exp(-e*t));let c=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(a,o,5/t);if(t=(0,s.f)(t),isNaN(c))return{stiffness:h.stiffness,damping:h.damping,duration:t};{let e=Math.pow(c,2)*r;return{stiffness:e,damping:2*l*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:h.mass}).isResolvedFromDuration=!0}return e}({...o,velocity:-(0,s.X)(o.velocity||0)}),M=A||0,k=P/(2*Math.sqrt(T*b)),E=x-y,D=(0,s.X)(Math.sqrt(T/b)),C=5>Math.abs(E);if(v||(v=C?h.restSpeed.granular:h.restSpeed.default),g||(g=C?h.restDelta.granular:h.restDelta.default),k<1){let t=d(D,k);i=e=>x-Math.exp(-k*D*e)*((M+k*D*E)/t*Math.sin(t*e)+E*Math.cos(t*e))}else if(1===k)i=t=>x-Math.exp(-D*t)*(E+(M+D*E)*t);else{let t=D*Math.sqrt(k*k-1);i=e=>{let i=Math.exp(-k*D*e),n=Math.min(t*e,300);return x-i*((M+k*D*E)*Math.sinh(n)+t*E*Math.cosh(n))/t}}let R={calculatedDuration:V&&S||null,next:t=>{let e=i(t);if(V)w.done=t>=S;else{let n=0===t?M:0;k<1&&(n=0===t?(0,s.f)(M):(0,l.Y)(i,t,e));let r=Math.abs(x-e)<=g;w.done=Math.abs(n)<=v&&r}return w.value=w.done?x:e,w},toString:()=>{let t=Math.min((0,a.t)(R),a.Y),e=(0,r.K)(e=>R.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return R}f.applyToOptions=t=>{let e=(0,o.X)(t,100,f);return t.ease=e.ease,t.duration=(0,s.f)(e.duration),t.type="keyframes",t}},4744:(t,e,i)=>{i.d(e,{Q:()=>n});let n={value:null,addProjectionMetrics:null}},4803:(t,e,i)=>{i.d(e,{S:()=>n});let n=t=>!!(t&&t.getVelocity)},5193:(t,e,i)=>{i.d(e,{b:()=>y});var n=i(8109),s=i(4050),r=i(4542),a=i(3014),o=i(8606);let l=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var h=i(7322),u=i(7312),d=i(7629),c=i(7277);
1let p=new Set(["auto","none","0"]);var m=i(280);class f extends h.h{constructor(t,e,i,n,s){super(t,e,i,n,s,!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 n=t[i];if("string"==typeof n&&(n=n.trim(),(0,o.p)(n))){let s=function t(e,i,n=1){(0,r.V)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[s,h]=function(t){let e=l.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let u=window.getComputedStyle(i).getPropertyValue(s);if(u){let t=u.trim();return(0,a.i)(t)?parseFloat(t):t}return(0,o.p)(h)?t(h,i,n+1):h}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!n.$.has(i)||2!==t.length)return;let[h,u]=t,d=(0,s.n)(h),c=(0,s.n)(u);if(d!==c)if((0,m.E4)(d)&&(0,m.E4)(c))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else m.Hr[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||(0,u.$)(n)))&&i.push(e)}i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!p.has(e)&&(0,d.V)(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=(0,c.J)(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=m.Hr[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=m.Hr[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}var v=i(4803),g=i(3562);class y extends g.B{constructor(){super(...arguments),this.KeyframeResolver=f}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[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;(0,v.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}},5245:(t,e,i)=>{i.d(e,{M:()=>d});var n=i(18),s=i(4160),r=i(8606),a=i(3757),o=i(5193),l=i(7684),h=i(600),u=i(8609);class d extends o.b{constructor(){super(...arguments),this.type="html",this.renderInstance=h.e}readValueFromInstance(t,e){if(n.f.has(e))return this.projection?.isProjecting?(0,s.zs)(e):(0,s.Ib)(t,e);{let i=window.getComputedStyle(t),n=((0,r.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,a.m)(t,e)}build(t,e,i){(0,l.O)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,u.x)(t,e,i)}}},5305:(t,e,i)=>{i.d(e,{w:()=>n});function n(t){return"string"==typeof t||Array.isArray(t)}},5511:(t,e,i)=>{i.d(e,{C:()=>n});let n=new WeakMap},5580:(t,e,i)=>{i.d(e,{z:()=>a});var n=i(4803),s=i(98),r=i(4413);function a(t,e,i){let a=(0,n.S)(t)?t:(0,s.OQ)(t);return a.start((0,r.f)("",a,e,i)),a.animation}},5626:(t,e,i)=>{i.d(e,{v:()=>s});var n=i(6668);class s{constructor(){this.subscriptions=[]}add(t){return(0,n.Kq)(this.subscriptions,t),()=>(0,n.Ai)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},5645:(t,e,i)=>{i.d(e,{P:()=>ib});var n,s,r=i(6340),a=i(8660),o=i(5910);function l(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}var h=i(5305),u=i(8312);let d=u._.length;var c=i(419);let p=[...u.U].reverse(),m=u.U.length;function f(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function v(){return{animate:f(!0),whileInView:f(),whileHover:f(),whileTap:f(),whileDrag:f(),whileFocus:f(),exit:f()}}class g{constructor(t){this.isMounted=!1,this.node=t}update(){}}class y extends g{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(0,a._)(t,e,i))),i=v(),n=!0,s=e=>(i,n)=>{let s=(0,c.K)(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function f(a){let{props:f}=t,v=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<d;t++){let n=u._[t],s=e.props[n];((0,h.w)(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},g=[],y=new Set,x={},w=1/0;for(let e=0;e<m;e++){var T,P;let u=p[e],d=i[u],c=void 0!==f[u]?f[u]:v[u],m=(0,h.w)(c),b=u===a?d.isActive:null;!1===b&&(w=e);let S=c===v[u]&&c!==f[u]&&m;if(S&&n&&t.manuallyAnimateOnMount&&(S=!1),d.protectedKeys={...x},!d.isActive&&null===b||!c&&!d.prevProp||(0,r.N)(c)||"boolean"==typeof c)continue;let A=(T=d.prevProp,"string"==typeof(P=c)?P!==T:!!Array.isArray(P)&&!l(P,T)),V=A||u===a&&d.isActive&&!S&&m||e>w&&m,M=!1,k=Array.isArray(c)?c:[c],E=k.reduce(s(u),{});!1===b&&(E={});let{prevResolvedValues:D={}}=d,C={...D,...E},R=e=>{V=!0,y.has(e)&&(M=!0,y.delete(e)),d.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=E[t],i=D[t];if(!x.hasOwnProperty(t))((0,o.p)(e)&&(0,o.p)(i)?l(e,i):e===i)?void 0!==e&&y.has(t)?R(t):d.protectedKeys[t]=!0:null!=e?R(t):y.add(t)}d.prevProp=c,d.prevResolvedValues=E,d.isActive&&(x={...x,...E}),n&&t.blockInitialAnimation&&(V=!1);let j=!(S&&A)||M;V&&j&&g.push(...k.map(t=>({animation:t,options:{type:u}})))}if(y.size){let e={};if("boolean"!=typeof f.initial){let i=(0,c.K)(t,Array.isArray(f.initial)?f.initial[0]:f.initial);i&&i.transition&&(e.transition=i.transition)}y.forEach(i=>
1{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),g.push({animation:e})}let b=!!g.length;return n&&(!1===f.initial||f.initial===f.animate)&&!t.manuallyAnimateOnMount&&(b=!1),n=!1,b?e(g):Promise.resolve()}return{animateChanges:f,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=f(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=v(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,r.N)(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?.()}}let x=0;class w extends g{constructor(){super(...arguments),this.id=x++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var T=i(9827);let P={x:!1,y:!1};var b=i(4158),S=i(9515),A=i(3210),V=i(4542),M=i(4413);function k(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let E=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function D(t){return{point:{x:t.pageX,y:t.pageY}}}function C(t,e,i,n){return k(t,e,t=>E(t)&&i(t,D(t)),n)}var R=i(8588);function j(t){return t.max-t.min}function L(t,e,i,n=.5){t.origin=n,t.originPoint=(0,A.k)(e.min,e.max,t.origin),t.scale=j(i)/j(e),t.translate=(0,A.k)(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 F(t,e,i,n){L(t.x,e.x,i.x,n?n.originX:void 0),L(t.y,e.y,i.y,n?n.originY:void 0)}function B(t,e,i){t.min=i.min+e.min,t.max=t.min+j(e)}function O(t,e,i){t.min=e.min-i.min,t.max=t.min+j(e)}function U(t,e,i){O(t.x,e.x,i.x),O(t.y,e.y,i.y)}var I=i(1786);function W(t){return[t("x"),t("y")]}var $=i(3757);let N=({current:t})=>t?t.ownerDocument.defaultView:null;function q(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var G=i(6333),X=i(3191),K=i(7215);let H=(t,e)=>Math.abs(t-e);class Y{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=_(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(H(t.x,e.x)**2+H(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=S.uv;this.history.push({...n,timestamp:s});let{onStart:r,onMove:a}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=z(e,this.transformPagePoint),S.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=_("pointercancel"===t.type?this.lastMoveEventInfo:z(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!E(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let r=z(D(t),this.transformPagePoint),{point:a}=r,{timestamp:o}=S.uv;this.history=[{...a,timestamp:o}];let{onSessionStart:l}=e;l&&l(t,_(r,this.history)),this.removeListeners=(0,X.F)(C(this.contextWindow,"pointermove",this.handlePointerMove),C(this.contextWindow,"pointerup",this.handlePointerUp),C(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,S.WG)(this.updatePoint)}}function z(t,e){return e?{point:e(t.point)}:t}function Q(t,e){return{x:t.x-e.x,y:t.y-e.y}}function _({point:t},e){return{point:t,delta:Q(t,Z(e)),offset:Q(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=Z(t);for(;i>=0&&(n=t[i],!(s.timestamp-n.timestamp>(0,K.f)(.1)));)i--;if(!n)return{x:0,y:0};let r=(0,K.X)(s.timestamp-n.timestamp);if(0===r)return{x:0,y:0};let a={x:(s.x-n.x)/r,y:(s.y-n.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,.1)}}function Z(t){return t[t.length-1]}var J=i(5818),tt=i(1297);function te(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 ti(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function tn(t,e,i){return{min:ts(t,e),max:ts(t,i)}}function ts(t,e){return"number"==typeof t?t:t[e]||0}let tr=new WeakMap;class ta{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=(0,I.ge)(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let n=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(D(t).point)},s=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(P[t])return null;else return P[t]=!0,()=>{P[t]=!1};return P.x||P.y?null:(P.x=P.y=!0,()=>{P.x=P.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),W(t=>{let e=this.getAxisMotionValue(t).get()||0;if(b.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];
1n&&(e=j(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&S.Gt.postRender(()=>s(t,e)),(0,G.g)(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},r=(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(n&&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}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&r(t,e)},a=(t,e)=>this.stop(t,e),o=()=>W(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Y(t,{onSessionStart:n,onStart:s,onMove:r,onSessionEnd:a,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:N(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:s}=this.getProps();s&&S.Gt.postRender(()=>s(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!to(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,A.k)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,A.k)(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.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,n=this.constraints;t&&q(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:te(t.x,i,s),y:te(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:tn(t,"left","right"),y:tn(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&W(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!q(e))return!1;let n=e.current;(0,V.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=(0,$.L)(n,s.root,this.visualElement.getTransformPagePoint()),a=(t=s.layout.layoutBox,{x:ti(t.x,r.x),y:ti(t.y,r.y)});if(i){let t=i((0,R.pA)(a));this.hasMutatedConstraints=!!t,t&&(a=(0,R.FY)(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(W(a=>{if(!to(a,e,this.currentDirection))return;let l=o&&o[a]||{};r&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,G.g)(this.visualElement,t),i.start((0,M.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){W(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){W(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){W(e=>{let{drag:i}=this.getProps();if(!to(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e];s.set(t[e]-(0,A.k)(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!q(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};W(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=j(t),s=j(e);return s>n?i=(0,J.q)(e.min,e.max-n,t.min):n>s&&(i=(0,J.q)(t.min,t.max-s,e.min)),(0,tt.q)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),W(e=>{if(!to(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set((0,A.k)(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;tr.set(this.visualElement,this);let t=C(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();q(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),S.Gt.read(e);let s=k(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(W(e=>{let i=this.getAxisMotionValue(e);
1i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),n(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:a}}}function to(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tl extends g{constructor(t){super(t),this.removeGroupControls=T.l,this.removeListeners=T.l,this.controls=new ta(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||T.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let th=t=>(e,i)=>{t&&S.Gt.postRender(()=>t(e,i))};class tu extends g{constructor(){super(...arguments),this.removePointerDownListener=T.l}onPointerDown(t){this.session=new Y(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:N(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:th(t),onStart:th(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&S.Gt.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=C(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var td=i(5155);let{schedule:tc}=(0,i(8437).I)(queueMicrotask,!1);var tp=i(2115),tm=i(2082),tf=i(869);let tv=(0,tp.createContext)({}),tg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ty(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tx={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!b.px.test(t))return t;else t=parseFloat(t);let i=ty(t,e.target.x),n=ty(t,e.target.y);return`${i}% ${n}%`}};var tw=i(7629),tT=i(637);class tP extends tp.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;(0,tT.$)(tS),s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),tg.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||S.Gt.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tb(t){let[e,i]=(0,tm.xQ)(),n=(0,tp.useContext)(tf.L);return(0,td.jsx)(tP,{...t,layoutGroup:n,switchLayoutGroup:(0,tp.useContext)(tv),isPresent:e,safeToRemove:i})}let tS={borderRadius:{...tx,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tx,borderTopRightRadius:tx,borderBottomLeftRadius:tx,borderBottomRightRadius:tx,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tw.f.parse(t);if(n.length>5)return t;let s=tw.f.createTransformer(t),r=+("number"!=typeof n[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+r]/=a,n[1+r]/=o;let l=(0,A.k)(a,o,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};var tA=i(4744),tV=i(9782),tM=i(5943),tk=i(8777),tE=i(4261),tD=i(3704),tC=i(98),tR=i(5626),tj=i(5580),tL=i(6926),tF=i(6668);let tB=(t,e)=>t.depth-e.depth;class tO{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tF.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,tF.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tB),this.isDirty=!1,this.children.forEac
1h(t)}}var tU=i(4803);function tI(t){return(0,tU.S)(t)?t.get():t}var tW=i(7712);let t$=["TopLeft","TopRight","BottomLeft","BottomRight"],tN=t$.length,tq=t=>"string"==typeof t?parseFloat(t):t,tG=t=>"number"==typeof t||b.px.test(t);function tX(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tK=tY(0,.5,tW.yT),tH=tY(.5,.95,T.l);function tY(t,e,i){return n=>n<t?0:n>e?1:i((0,J.q)(t,e,n))}function tz(t,e){t.min=e.min,t.max=e.max}function tQ(t,e){tz(t.x,e.x),tz(t.y,e.y)}function t_(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tZ=i(6147);function tJ(t,e,i,n,s){return t-=e,t=(0,tZ.hq)(t,1/i,n),void 0!==s&&(t=(0,tZ.hq)(t,1/s,n)),t}function t0(t,e,[i,n,s],r,a){!function(t,e=0,i=1,n=.5,s,r=t,a=t){if(b.KN.test(e)&&(e=parseFloat(e),e=(0,A.k)(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=(0,A.k)(r.min,r.max,n);t===r&&(o-=e),t.min=tJ(t.min,e,i,o,s),t.max=tJ(t.max,e,i,o,s)}(t,e[i],e[n],e[s],e.scale,r,a)}let t1=["x","scaleX","originX"],t2=["y","scaleY","originY"];function t5(t,e,i,n){t0(t.x,e,t1,i?i.x:void 0,n?n.x:void 0),t0(t.y,e,t2,i?i.y:void 0,n?n.y:void 0)}function t8(t){return 0===t.translate&&1===t.scale}function t3(t){return t8(t.x)&&t8(t.y)}function t4(t,e){return t.min===e.min&&t.max===e.max}function t7(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function t6(t,e){return t7(t.x,e.x)&&t7(t.y,e.y)}function t9(t){return j(t.x)/j(t.y)}function et(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ee{constructor(){this.members=[]}add(t){(0,tF.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,tF.Ai)(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){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var ei=i(2662);let en={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},es=["","X","Y","Z"],er={visibility:"hidden"},ea=0;function eo(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function el({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=ea++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tA.Q.value&&(en.nodes=en.calculatedTargetDeltas=en.calculatedProjections=0),this.nodes.forEach(ed),this.nodes.forEach(ey),this.nodes.forEach(ex),this.nodes.forEach(ec),tA.Q.addProjectionMetrics&&tA.Q.addProjectionMetrics(en)},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 tO)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tR.v),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=(0,tV.x)(e)&&!(0,tM.h)(e),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tE.k.now(),n=({timestamp:e})=>{let s=e-i;s>=250&&((0,S.WG)(n),t(s-250))};return S.Gt.setup(n,!0),()=>(0,S.WG)(n)}(n,250),tg.hasAnimatedSinceResize&&(tg.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(eg))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||eA,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!t6(this.targetLayout,n),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={...(0,tk.r)(r,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||eg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}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(),(0,S.WG)(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(ew),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 n=(0,tL.P)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",S.Gt,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(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,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(em);return}this.isUpdating||this.nodes.forEach(ef),this.isUpdating=!1,this.nodes.forEach(ev),this.nodes.forEach(eh),this.nodes.forEach(eu),this.clearAllSnapshots();let t=tE.k.now();S.uv.delta=(0,tt.q)(0,1e3/60,t-S.uv.timestamp),S.uv.timestamp=t,S.uv.isProcessing=!0,S.PP.update.process(S.uv),S.PP.preRender.process(S.uv),S.PP.render.process(S.uv),S.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ep),this.sharedNodes.forEach(eT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,S.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){S.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||j(this.snapshot.measuredBox.x)||j(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=(0,I.ge)(),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=n(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(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!t3(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,ei.HD)(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),ek((e=n).x),ek(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,I.ge)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(eD))){let{scroll:t}=this.root;t&&((0,tZ.Ql)(e.x,t.offset.x),(0,tZ.Ql)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,I.ge)();if(tQ(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&tQ(e,t),(0,tZ.Ql)(e.x,s.offset.x),(0,tZ.Ql)(e.y,s.offset.y))}return e}applyTransform(t,e=!1){let i=(0,I.ge)();tQ(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(0,tZ.Ww)(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,ei.HD)(n.latestValues)&&(0,tZ.Ww)(i,n.latestValues)}return(0,ei.HD)(this.latestValues)&&(0,tZ.Ww)(i,this.latestValues),i}removeTransform(t){let e=(0,I.ge)();tQ(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,ei.HD)(i.latestValues))continue;(0,ei.vk)(i.latestValues)&&i.updateSnapshot();let n=(0,I.ge)();tQ(n,i.measurePageBox()),t5(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return(0,ei.HD)(this.latestValues)&&t5(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!==S.uv.t
1imestamp&&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:n,layoutId:s}=this.options;if(this.layout&&(n||s)){if(this.resolvedRelativeTargetAt=S.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,I.ge)(),this.relativeTargetOrigin=(0,I.ge)(),U(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),tQ(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,I.ge)(),this.targetWithTransforms=(0,I.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var r,a,o;this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,o=this.relativeParent.target,B(r.x,a.x,o.x),B(r.y,a.y,o.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tQ(this.target,this.layout.layoutBox),(0,tZ.o4)(this.target,this.targetDelta)):tQ(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,I.ge)(),this.relativeTargetOrigin=(0,I.ge)(),U(this.relativeTargetOrigin,this.target,t.target),tQ(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tA.Q.value&&en.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||(0,ei.vk)(this.parent.latestValues)||(0,ei.vF)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===S.uv.t
1imestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;tQ(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;(0,tZ.OU)(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=(0,I.ge)());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(t_(this.prevProjectionDelta.x,this.projectionDelta.x),t_(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),F(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&et(this.projectionDelta.x,this.prevProjectionDelta.x)&&et(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),tA.Q.value&&en.calculatedProjections++}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=(0,I.xU)(),this.projectionDelta=(0,I.xU)(),this.projectionDeltaWithTransform=(0,I.xU)()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},a=(0,I.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=(0,I.ge)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(eS));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(eP(a.x,t.x,n),eP(a.y,t.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,p,m,f,v;U(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,v=n,eb(p.x,m.x,f.x,v),eb(p.y,m.y,f.y,v),i&&(h=this.relativeTarget,c=i,t4(h.x,c.x)&&t4(h.y,c.y))&&(this.isProjectionDirty=!1),i||(i=(0,I.ge)()),tQ(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=(0,A.k)(0,i.opacity??1,tK(n)),t.opacityExit=(0,A.k)(e.opacity??1,0,tH(n))):r&&(t.opacity=(0,A.k)(e.opacity??1,i.opacity??1,n));for(let s=0;s<tN;s++){let r=`border${t$[s]}Radius`,a=tX(e,r),o=tX(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||tG(a)===tG(o)?(t[r]=Math.max((0,A.k)(tq(a),tq(o),n),0),(b.KN.test(o)||b.KN.test(a))&&(t[r]+="%")):t[r]=o)}(e.rotate||i.rotate)&&(t.rotate=(0,A.k)(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,S.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=S.Gt.update(()=>{tg.hasAnimatedSinceResize=!0,tD.q.layout++,this.motionValue||(this.motionValue=(0,tC.OQ)(0)),this.currentAnimation=(0,tj.z)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{tD.q.layout--},onComplete:()=>{tD.q.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let 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,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&eE(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,I.ge)();let e=j(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=j(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}tQ(e,i),(0,tZ.Ww)(e,s),F(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ee),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;
1return 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 n=this.getStack();n&&n.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 n={};i.z&&eo("z",t,n,this.animationValues);for(let e=0;e<es.length;e++)eo(`rotate${es[e]}`,t,n,this.animationValues),eo(`skew${es[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return er;let e={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.opacity="",e.pointerEvents=tI(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none",e;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tI(t?.pointerEvents)||""),this.hasProjected&&!(0,ei.HD)(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let s=n.animationValues||n.latestValues;this.applyTransformsToTarget(),e.transform=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,a=i?.z||0;if((s||r||a)&&(n=`translate3d(${s}px, ${r}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:a,skewY:o}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),i&&(e.transform=i(s,e.transform));let{x:r,y:a}=this.projectionDelta;for(let t in e.transformOrigin=`${100*r.origin}% ${100*a.origin}% 0`,n.animationValues?e.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:e.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,tT.H){if(void 0===s[t])continue;let{correct:i,applyTo:r,isCSSVariable:a}=tT.H[t],o="none"===e.transform?s[t]:i(s[t],n);if(r){let t=r.length;for(let i=0;i<t;i++)e[r[i]]=o}else a?this.options.visualElement.renderState.vars[t]=o:e[t]=o}return this.options.layoutId&&(e.pointerEvents=n===this?tI(t?.pointerEvents)||"":"none"),e}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(em),this.root.sharedNodes.clear()}}}function eh(t){t.updateLayout()}function eu(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;"size"===s?W(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=j(n);n.min=i[t].min,n.max=n.min+s}):eE(s,e.layoutBox,i)&&W(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],a=j(i[n]);s.max=s.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=(0,I.xU)();F(a,i,e.layoutBox);let o=(0,I.xU)();r?F(o,t.applyTransform(n,!0),e.measuredBox):F(o,i,e.layoutBox);let l=!t3(a),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=(0,I.ge)();U(a,e.layoutBox,s.layoutBox);let o=(0,I.ge)();U(o,i,r.layoutBox),t6(a,o)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ed(t){tA.Q.value&&en.nodes++,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 ec(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ep(t){t.clearSnapshot()}function em(t){t.clearMeasurements()}function ef(t){t.isLayoutDirty=!1}function ev(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function eg(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ey(t){t.resolveTargetDelta()}function ex(t){t.calcProjection()}function ew(t){t.resetSkewAndRotation()}function eT(t){t.removeLeadSnapshot()}function eP(t,e,i){t.translate=(0,A.k)(e.translate,0,i),t.scale=(0,A.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eb(t,e,i,n){t.min=(0,A.k)(e.min,i.min,n),t.max=(0,A.k)(e.max,i.max,n)}function eS(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eA={duration:.45,ease:[.4,0,.1,1]},eV=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eM=eV("applewebkit/")&&!eV("chrome/")?Math.round:T.l;function ek(t){t.min=eM(t.min),t.max=eM(t.max)}function eE(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(t9(e)-t9(i)))}function eD(t){return t!==t.root&&t.scroll?.wasRoot}let eC=el({attachResizeListener:(t,e)=>k(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eR={current:void 0},ej=el({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eR.current){let t=new eC({});t.mount(window),t.setOptions({layoutScroll:!0}),eR.current=t}return eR.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var eL=i(2198);function eF(t,e){let i=(0,eL.K)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function eB(t){return!("touch"===t.pointerType||P.x||P.y)}function eO(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&S.Gt.postRender(()=>s(e,D(e)))}class eU extends g{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=eF(t,i),a=t=>{if(!eB(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let r=t=>{eB(t)&&(n(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,s)};return n.forEach(t=>{t.addEventListener("pointerenter",a,s)}),r}(t,(t,e)=>(eO(this.node,e,"Start"),t=>eO(this.node,t,"End"))))}unmount(){}}class eI extends g{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=(0,X.F)(k(this.node.current,"focus",()=>this.onFocus()),k(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var eW=i(7351);let e$=(t,e)=>!!e&&(t===e||e$(t,e.parentElement)),eN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),eq=new WeakSet;function eG(t){return e=>{"Enter"===e.key&&t(e)}}function eX(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function eK(t){return E(t)&&!(P.x||P.y)}function eH(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&S.Gt.postRender(()=>s(e,D(e)))}class eY extends g{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=eF(t,i),a=t=>{let n=t.currentTarget;if(!eK(t))return;eq.add(n);let r=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),eq.has(n)&&eq.delete(n),eK(t)&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||e$(n,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",l,s)};
1return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",a,s),(0,eW.s)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=eG(()=>{if(eq.has(i))return;eX(i,"down");let t=eG(()=>{eX(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>eX(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),eN.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(eH(this.node,e,"Start"),(t,{success:e})=>eH(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let ez=new WeakMap,eQ=new WeakMap,e_=t=>{let e=ez.get(t.target);e&&e(t)},eZ=t=>{t.forEach(e_)},eJ={some:0,all:1};class e0 extends g{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:s}=t,r={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:eJ[n]},a=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,s&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(t)};var o=this.node.current;let l=function({root:t,...e}){let i=t||document;eQ.has(i)||eQ.set(i,{});let n=eQ.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(eZ,{root:t,...e})),n[s]}(r);return ez.set(o,a),l.observe(o),()=>{ez.delete(o),l.unobserve(o)}}mount(){this.startObserver()}update(){if("undefined"==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(){}}let e1=(0,tp.createContext)({strict:!1});var e2=i(1508);let e5=(0,tp.createContext)({});var e8=i(9253);function e3(t){return Array.isArray(t)?t.join(" "):t}var e4=i(8972),e7=i(6642);let e6=Symbol.for("motionComponentSymbol");var e9=i(9407),it=i(845),ie=i(7494),ii=i(3055),is=i(7684);let ir=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ia(t,e,i){for(let n in e)(0,tU.S)(e[n])||(0,ii.z)(n,i)||(t[n]=e[n])}var io=i(2076);let il=()=>({...ir(),attrs:{}});var ih=i(3095);let iu=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function id(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iu.has(t)}let ic=t=>!id(t);try{!function(t){"function"==typeof t&&(ic=e=>e.startsWith("on")?!id(e):t(e))}(require("@emotion/is-prop-valid").default)}catch{}let ip=["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 im(t){if("string"!=typeof t||t.includes("-"));else if(ip.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var iv=i(2735),ig=i(2885);let iy=t=>(e,i)=>{let n=(0,tp.useContext)(e5),s=(0,tp.useContext)(it.t),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},a=n(t,{});for(let t in a)s[t]=tI(a[t]);let{initial:o,animate:l}=t,h=(0,e8.e)(t),u=(0,e8.O)(t);e&&u&&!h&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===l&&(l=e.animate));let d=!!i&&!1===i.initial,c=(d=d||!1===o)?l:o;if(c&&"boolean"!=typeof c&&!(0,r.N)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=(0,iv.a)(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=d?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()}})(t,e,n,s);return i?a():(0,ig.M)(a)}
1,ix={useVisualState:iy({scrapeMotionValuesFromProps:i(8609).x,createRenderState:ir})},iw={useVisualState:iy({scrapeMotionValuesFromProps:i(4527).x,createRenderState:il})};var iT=i(5245),iP=i(728);let ib=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((n={animation:{Feature:y},exit:{Feature:w},inView:{Feature:e0},tap:{Feature:eY},focus:{Feature:eI},hover:{Feature:eU},pan:{Feature:tu},drag:{Feature:tl,ProjectionNode:ej,MeasureLayout:tb},layout:{ProjectionNode:ej,MeasureLayout:tb}},s=(t,e)=>im(t)?new iP.l(e):new iT.M(e,{allowProjection:t!==tp.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:s,useRender:r,useVisualState:a,Component:o}=t;function l(t,e){var i;let n,l={...(0,tp.useContext)(e2.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,tp.useContext)(tf.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:u}=l,d=function(t){let{initial:e,animate:i}=function(t,e){if((0,e8.e)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,h.w)(e)?e:void 0,animate:(0,h.w)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,tp.useContext)(e5));return(0,tp.useMemo)(()=>({initial:e,animate:i}),[e3(e),e3(i)])}(t),c=a(t,u);if(!u&&e4.B){(0,tp.useContext)(e1).strict;let t=function(t){let{drag:e,layout:i}=e7.B;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(l);n=t.MeasureLayout,d.visualElement=function(t,e,i,n,s){let{visualElement:r}=(0,tp.useContext)(e5),a=(0,tp.useContext)(e1),o=(0,tp.useContext)(it.t),l=(0,tp.useContext)(e2.Q).reducedMotion,h=(0,tp.useRef)(null);n=n||a.renderer,!h.current&&n&&(h.current=n(t,{visualState:e,parent:r,props:i,presenceContext:o,blockInitialAnimation:!!o&&!1===o.initial,reducedMotionConfig:l}));let u=h.current,d=(0,tp.useContext)(tv);u&&!u.projection&&s&&("html"===u.type||"svg"===u.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:h,layoutCrossfade:u}=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:s,layout:r,alwaysMeasureLayout:!!a||o&&q(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:h})}(h.current,i,s,d);let c=(0,tp.useRef)(!1);(0,tp.useInsertionEffect)(()=>{u&&c.current&&u.update(i,o)});let p=i[e9.n],m=(0,tp.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,ie.E)(()=>{u&&(c.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),tc.render(u.render),m.current&&u.animationState&&u.animationState.animateChanges())}),(0,tp.useEffect)(()=>{u&&(!m.current&&u.animationState&&u.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1))}),u}(o,c,l,s,t.ProjectionNode)}return(0,td.jsxs)(e5.Provider,{value:d,children:[n&&d.visualElement?(0,td.jsx)(n,{visualElement:d.visualElement,...l}):null,r(o,t,(i=d.visualElement,(0,tp.useCallback)(t=>{t&&c.onMount&&c.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):q(e)&&(e.current=t))},[i])),c,u,d.visualElement)]})}n&&function(t){for(let e in t)e7.B[e]={...e7.B[e],...t[e]}}(n),l.displayName="motion.".concat("string"==typeof o?o:"create(".concat(null!=(i=null!=(e=o.displayName)?e:o.name)?i:"",")"));let u=(0,tp.forwardRef)(l);return u[e6]=o,u}({...im(t)?iw:ix,preloadedFeatures:n,useRender:function(t=!1){return(e,i,n,{latestValues:s},r)=>{let a=(im(e)?function(t,e,i,n){let s=(0,tp.useMemo)(()=>{let i=il();return(0,io.B)(i,e,(0,ih.n)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ia(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return ia(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,tp.useMemo)(()=>{let i=ir();return(0,is.O)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i}
1)(i,s,r,e),o=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(ic(s)||!0===i&&id(s)||!e&&!id(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(i,"string"==typeof e,t),l=e!==tp.Fragment?{...o,...a,ref:n}:{},{children:h}=i,u=(0,tp.useMemo)(()=>(0,tU.S)(h)?h.get():h,[h]);return(0,tp.createElement)(e,{...l,children:u})}}(e),createVisualElement:s,Component:t})}))},5818:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},5910:(t,e,i)=>{i.d(e,{p:()=>n});let n=t=>Array.isArray(t)},5920:(t,e,i)=>{i.d(e,{$:()=>r,q:()=>a});var n=i(614);let s=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,r=(t,e)=>i=>!!("string"==typeof i&&s.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),a=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[r,a,o,l]=s.match(n.S);return{[t]:parseFloat(r),[e]:parseFloat(a),[i]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}}},5943:(t,e,i)=>{i.d(e,{h:()=>s});var n=i(9782);function s(t){return(0,n.x)(t)&&"svg"===t.tagName}},6087:(t,e,i)=>{i.d(e,{j:()=>S});var n=i(3191),s=i(4542),r=i(8606),a=i(4272),o=i(7629),l=i(1335),h=i(8476);function u(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}var d=i(9064);function c(t,e){return i=>i>0?e:t}var p=i(3210);let m=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},f=[l.u,d.B,h.V];function v(t){let e=f.find(e=>e.test(t));if((0,s.$)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===h.V&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;s=u(o,n,t+1/3),r=u(o,n,t),a=u(o,n,t-1/3)}else s=r=a=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*a),alpha:n}}(i)),i}let g=(t,e)=>{let i=v(t),n=v(e);if(!i||!n)return c(t,e);let s={...i};return t=>(s.red=m(i.red,n.red,t),s.green=m(i.green,n.green,t),s.blue=m(i.blue,n.blue,t),s.alpha=(0,p.k)(i.alpha,n.alpha,t),d.B.transform(s))},y=new Set(["none","hidden"]);function x(t,e){return i=>(0,p.k)(t,e,i)}function w(t){return"number"==typeof t?x:"string"==typeof t?(0,r.p)(t)?c:a.y.test(t)?g:b:Array.isArray(t)?T:"object"==typeof t?a.y.test(t)?g:P:c}function T(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>w(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function P(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=w(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let b=(t,e)=>{let i=o.f.createTransformer(e),r=(0,o.V)(t),a=(0,o.V)(e);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?y.has(t)&&!a.values.length||y.has(e)&&!r.values.length?function(t,e){return y.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):(0,n.F)(T(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],a=t.indexes[r][n[r]],o=t.values[a]??0;i[s]=o,n[r]++}return i}(r,a),a.values),i):((0,s.$)(!0,`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.`),c(t,e))};function S(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,p.k)(t,e,i):w(t)(t,e)}},6147:(t,e,i)=>{i.d(e,{OU:()=>h,Ql:()=>u,Ww:()=>c,hq:()=>r,o4:()=>l});var n=i(3210),s=i(2662);function r(t,e,i){return i+e*(t-i)}function a(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function o(t,e=0,i=1,n,s){t.min=a(t.min,e,i,n,s),t.max=a(t.max,e,i,n,s)}function l(t,{x:e,y:i}){o(t.x,e.translate,e.scale,e.originPoint),o(t.y,i.translate,i.scale,i.originPoint)}function h(t,e,i,n=!1){let r,a,o=i.length;if(o){e.x=e.y=1;for(let h=0;h<o;h++){a=(r=i[h]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&c(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,l(t,a)),n&&(0,s.HD)(r.latestValues)&&c(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function u(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,i,s,r=.5){let a=(0,n.k)(t.min,t.max,r);o(t,e,i,a,s)}function c(t,e){d(t.x,e.x,e.scaleX,e.scale,e.originX),d(t.y,e.y,e.scaleY,e.scale,e.originY)}},6333:(t,e,i)=>{i.d(e,{g:()=>r});var n=i(3387),s=i(4803);function r(t,e){let i=t.getValue("willChange");if((0,s.S)(i)&&i.add)return i.add(e);if(!i&&n.W.WillChange){let i=new n.W.WillChange("auto");
1t.addValue("willChange",i),i.add(e)}}},6340:(t,e,i)=>{i.d(e,{N:()=>n});function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}},6642:(t,e,i)=>{i.d(e,{B:()=>s});let n={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"]},s={};for(let t in n)s[t]={isEnabled:e=>n[t].some(t=>!!e[t])}},6668:(t,e,i)=>{function n(t,e){-1===t.indexOf(e)&&t.push(e)}function s(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{Ai:()=>s,Kq:()=>n})},6766:(t,e,i)=>{i.d(e,{default:()=>s.a});var n=i(1469),s=i.n(n)},6775:(t,e,i)=>{i.d(e,{G:()=>u});var n=i(3387),s=i(9827),r=i(3191),a=i(4542),o=i(5818),l=i(1297),h=i(6087);function u(t,e,{clamp:i=!0,ease:d,mixer:c}={}){let p=t.length;if((0,a.V)(p===e.length,"Both input and output ranges must be the same length"),1===p)return()=>e[0];if(2===p&&e[0]===e[1])return()=>e[1];let m=t[0]===t[1];t[0]>t[p-1]&&(t=[...t].reverse(),e=[...e].reverse());let f=function(t,e,i){let a=[],o=i||n.W.mix||h.j,l=t.length-1;for(let i=0;i<l;i++){let n=o(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||s.l:e;n=(0,r.F)(t,n)}a.push(n)}return a}(e,d,c),v=f.length,g=i=>{if(m&&i<t[0])return e[0];let n=0;if(v>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=(0,o.q)(t[n],t[n+1],i);return f[n](s)};return i?e=>g((0,l.q)(t[0],t[p-1],e)):g}},6926:(t,e,i)=>{i.d(e,{P:()=>s});var n=i(9407);function s(t){return t.props[n.n]}},6983:(t,e,i)=>{i.d(e,{G:()=>n});function n(t){return"object"==typeof t&&null!==t}},7215:(t,e,i)=>{i.d(e,{X:()=>s,f:()=>n});let n=t=>1e3*t,s=t=>t/1e3},7277:(t,e,i)=>{i.d(e,{J:()=>a});var n=i(7629),s=i(2171),r=i(1834);function a(t,e){let i=(0,r.D)(t);return i!==s.p&&(i=n.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},7312:(t,e,i)=>{i.d(e,{$:()=>n});let n=t=>/^0[^.\s]+$/u.test(t)},7322:(t,e,i)=>{i.d(e,{h:()=>c,q:()=>d});var n=i(280),s=i(9515);let r=new Set,a=!1,o=!1,l=!1;function h(){if(o){let t=Array.from(r).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,n.W9)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.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)})}o=!1,a=!1,r.forEach(t=>t.complete(l)),r.clear()}function u(){r.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(o=!0)})}function d(){l=!0,u(),h(),l=!1}class c{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(r.add(this),a||(a=!0,s.Gt.read(u),s.Gt.resolveKeyframes(h))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.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),r.delete(this)}cancel(){"scheduled"===this.state&&(r.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}},7351:(t,e,i)=>{i.d(e,{s:()=>s});var n=i(6983);function s(t){return(0,n.G)(t)&&"offsetHeight"in t}},7494:(t,e,i)=>{i.d(e,{E:()=>s});var n=i(2115);let s=i(8972).B?n.useLayoutEffect:n.useEffect},7629:(t,e,i)=>{i.d(e,{V:()=>u,f:()=>m});var n=i(4272);let s=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var r=i(614),a=i(1557);let o="number",l="color",h=/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 u(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},r=[],a=0,u=e.replace(h,t=>(n.y.test(t)?(s.color.push(a),r.push(l),i.push(n.y.parse(t))):t.startsWith("var(")?(s.var.push(a),r.push("var"),i.push(t)):(s.number.push(a),r.push(o),i.push(parseFloat(t))),++a,"${}")).split("${}");return{values:i,split:u,indexes:s,types:r}}function d(t){return u(t).values}function c(t){let{split:e,types:i}=u(t),s=e.length;return t=>{let r="";for(let h=0;h<s;h++)if(r+=e[h],void 0!==t[h]){let e=i[h];e===o?r+=(0,a.a)(t[h]):e===l?r+=n.y.transform(t[h]):r+=t[h]}return r}}let p=t=>"number"==typeof t?0:n.y.test(t)?n.y.getAnimatableNone(t):t,m={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(r.S)?.length||0)+(t.match(s)?.length||0)>0},parse:d,createTransformer:c,getAnimatableNone:function(t){let e=d(t);return c(t)(e.map(p))}}},7684:(t,e,i)=>{i.d(e,{O:()=>h});var n=i(18),s=i(8606);let r=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var a=i(2403);let o={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l=n.U.length;
1function h(t,e,i){let{style:h,vars:u,transformOrigin:d}=t,c=!1,p=!1;for(let t in e){let i=e[t];if(n.f.has(t)){c=!0;continue}if((0,s.j)(t)){u[t]=i;continue}{let e=r(i,a.W[t]);t.startsWith("origin")?(p=!0,d[t]=e):h[t]=e}}if(!e.transform&&(c||i?h.transform=function(t,e,i){let s="",h=!0;for(let u=0;u<l;u++){let l=n.U[u],d=t[l];if(void 0===d)continue;let c=!0;if(!(c="number"==typeof d?d===+!!l.startsWith("scale"):0===parseFloat(d))||i){let t=r(d,a.W[l]);if(!c){h=!1;let e=o[l]||l;s+=`${e}(${t}) `}i&&(e[l]=t)}}return s=s.trim(),i?s=i(e,h?"":s):h&&(s="none"),s}(e,t.transform,i):h.transform&&(h.transform="none")),p){let{originX:t="50%",originY:e="50%",originZ:i=0}=d;h.transformOrigin=`${t} ${e} ${i}`}}},7705:(t,e,i)=>{i.d(e,{K:()=>n});let n=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`}},7712:(t,e,i)=>{i.d(e,{po:()=>r,tn:()=>o,yT:()=>a});var n=i(1765),s=i(4180);let r=t=>1-Math.sin(Math.acos(t)),a=(0,s.G)(r),o=(0,n.V)(r)},7887:(t,e,i)=>{i.d(e,{X4:()=>r,ai:()=>s,hs:()=>a});var n=i(1297);let s={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},r={...s,transform:t=>(0,n.q)(0,1,t)},a={...s,default:1}},8109:(t,e,i)=>{i.d(e,{$:()=>n});let n=new Set(["width","height","top","left","right","bottom",...i(18).U])},8312:(t,e,i)=>{i.d(e,{U:()=>n,_:()=>s});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],s=["initial",...n]},8437:(t,e,i)=>{i.d(e,{I:()=>a});var n=i(3387);let s=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var r=i(4744);function a(t,e){let i=!1,a=!0,o={delta:0,timestamp:0,isProcessing:!1},l=()=>i=!0,h=s.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,a=!1,o=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},h=0;function u(e){o.has(e)&&(d.schedule(e),t()),h++,e(l)}let d={schedule:(t,e=!1,r=!1)=>{let a=r&&s?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(l=t,s){a=!0;return}s=!0,[i,n]=[n,i],i.forEach(u),e&&r.Q.value&&r.Q.value.frameloop[e].push(h),h=0,i.clear(),s=!1,a&&(a=!1,d.process(t))}};return d}(l,e?i:void 0),t),{}),{setup:u,read:d,resolveKeyframes:c,preUpdate:p,update:m,preRender:f,render:v,postRender:g}=h,y=()=>{let s=n.W.useManualTiming?o.timestamp:performance.now();i=!1,n.W.useManualTiming||(o.delta=a?1e3/60:Math.max(Math.min(s-o.timestamp,40),1)),o.timestamp=s,o.isProcessing=!0,u.process(o),d.process(o),c.process(o),p.process(o),m.process(o),f.process(o),v.process(o),g.process(o),o.isProcessing=!1,i&&e&&(a=!1,t(y))};return{schedule:s.reduce((e,n)=>{let s=h[n];return e[n]=(e,n=!1,r=!1)=>(!i&&(i=!0,a=!0,o.isProcessing||t(y)),s.schedule(e,n,r)),e},{}),cancel:t=>{for(let e=0;e<s.length;e++)h[s[e]].cancel(t)},state:o,steps:h}}},8450:(t,e,i)=>{i.d(e,{I:()=>n});let n=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},8476:(t,e,i)=>{i.d(e,{V:()=>o});var n=i(7887),s=i(4158),r=i(1557),a=i(5920);let o={test:(0,a.$)("hsl","hue"),parse:(0,a.q)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:a=1})=>"hsla("+Math.round(t)+", "+s.KN.transform((0,r.a)(e))+", "+s.KN.transform((0,r.a)(i))+", "+(0,r.a)(n.X4.transform(a))+")"}},8588:(t,e,i)=>{function n({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function s({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function r(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}i.d(e,{FY:()=>n,bS:()=>r,pA:()=>s})},8606:(t,e,i)=>{i.d(e,{j:()=>s,p:()=>a});let n=t=>e=>"string"==typeof e&&e.startsWith(t),s=n("--"),r=n("var(--"),a=t=>!!r(t)&&o.test(t.split("/*")[0].trim()),o=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},8609:(t,e,i)=>{i.d(e,{x:()=>r});var n=i(4803),s=i(3055);function r(t,e,i){let{style:r}=t,a={};for(let o in r)((0,n.S)(r[o])||e.style&&(0,n.S)(e.style[o])||(0,s.z)(o,t)||i?.getValue(o)?.liveStyle!==void 0)&&(a[o]=r[o]);return a}},8660:(t,e,i)=>{i.d(e,{_:()=>o});var n=i(419),s=i(9578);function r(t,e,i={}){let o=(0,n.K)(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:l=t.getDefaultTransition()||{}}=o||{};i.transitionOverride&&(l=i.transitionOverride);let h=o?()=>Promise.all((0,s.$)(t,o,i)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:h}=l;
1return function(t,e,i=0,n=0,s=1,o){let l=[],h=(t.variantChildren.size-1)*n,u=1===s?(t=0)=>t*n:(t=0)=>h-t*n;return Array.from(t.variantChildren).sort(a).forEach((t,n)=>{t.notify("AnimationStart",e),l.push(r(t,e,{...o,delay:i+u(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(l)}(t,e,s+n,o,h,i)}:()=>Promise.resolve(),{when:d}=l;if(!d)return Promise.all([h(),u(i.delay)]);{let[t,e]="beforeChildren"===d?[h,u]:[u,h];return t().then(()=>e())}}function a(t,e){return t.sortNodePosition(e)}function o(t,e,i={}){let a;if(t.notify("AnimationStart",e),Array.isArray(e))a=Promise.all(e.map(e=>r(t,e,i)));else if("string"==typeof e)a=r(t,e,i);else{let r="function"==typeof e?(0,n.K)(t,e,i.custom):e;a=Promise.all((0,s.$)(t,r,i))}return a.then(()=>{t.notify("AnimationComplete",e)})}},8777:(t,e,i)=>{i.d(e,{r:()=>n});function n(t,e){return t?.[e]??t?.default??t}},8802:(t,e,i)=>{i.d(e,{U:()=>a});var n=i(98),s=i(5910),r=i(419);function a(t,e){let{transitionEnd:i={},transition:a={},...o}=(0,r.K)(t,e)||{};for(let e in o={...o,...i}){var l;let i=(l=o[e],(0,s.p)(l)?l[l.length-1]||0:l);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,n.OQ)(i))}}},8972:(t,e,i)=>{i.d(e,{B:()=>n});let n="undefined"!=typeof window},9064:(t,e,i)=>{i.d(e,{B:()=>l});var n=i(1297),s=i(7887),r=i(1557),a=i(5920);let o={...s.ai,transform:t=>Math.round((0,n.q)(0,255,t))},l={test:(0,a.$)("rgb","red"),parse:(0,a.q)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+o.transform(t)+", "+o.transform(e)+", "+o.transform(i)+", "+(0,r.a)(s.X4.transform(n))+")"}},9115:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(2017);function s(t){let e=[0];return(0,n.f)(e,t.length-1),e}},9253:(t,e,i)=>{i.d(e,{O:()=>o,e:()=>a});var n=i(6340),s=i(5305),r=i(8312);function a(t){return(0,n.N)(t.animate)||r._.some(e=>(0,s.w)(t[e]))}function o(t){return!!(a(t)||t.variants)}},9407:(t,e,i)=>{i.d(e,{n:()=>n});let n="data-"+(0,i(8450).I)("framerAppearId")},9515:(t,e,i)=>{i.d(e,{Gt:()=>s,PP:()=>o,WG:()=>r,uv:()=>a});var n=i(9827);let{schedule:s,cancel:r,state:a,steps:o}=(0,i(8437).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.l,!0)},9578:(t,e,i)=>{i.d(e,{$:()=>u});var n=i(8777),s=i(9515),r=i(8109),a=i(8802),o=i(6333),l=i(6926),h=i(4413);function u(t,e,{delay:i=0,transitionOverride:d,type:c}={}){let{transition:p=t.getDefaultTransition(),transitionEnd:m,...f}=e;d&&(p=d);let v=[],g=c&&t.animationState&&t.animationState.getState()[c];for(let e in f){let a=t.getValue(e,t.latestValues[e]??null),u=f[e];if(void 0===u||g&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(g,e))continue;let d={delay:i,...(0,n.r)(p||{},e)},c=a.get();if(void 0!==c&&!a.isAnimating&&!Array.isArray(u)&&u===c&&!d.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){let i=(0,l.P)(t);if(i){let t=window.MotionHandoffAnimation(i,e,s.Gt);null!==t&&(d.startTime=t,m=!0)}}(0,o.g)(t,e),a.start((0,h.f)(e,a,u,t.shouldReduceMotion&&r.$.has(e)?{type:!1}:d,t,m));let y=a.animation;y&&v.push(y)}return m&&Promise.all(v).then(()=>{s.Gt.update(()=>{m&&(0,a.U)(t,m)})}),v}},9782:(t,e,i)=>{i.d(e,{x:()=>s});var n=i(6983);function s(t){return(0,n.G)(t)&&"ownerSVGElement"in t}},9827:(t,e,i)=>{i.d(e,{l:()=>n});let n=t=>t}}]);

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.