PageSourceSearch

https://www.copilotkit.ai/_next/static/chunks/8243-bf11160ee3ccd3bd.js?dpl=dpl_6PRq2pzNmJwiK3QXgfRscSuFSmeS

js copilotkit.ai collected 2026-10-02 03:05:06 UTC 125,729 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunk_N_E=globalThis.webpackChunk_N_E||[]).push([[8243],{1163:(t,e,i)=>{i.d(e,{M:()=>s});var n=i(23796);function s(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},1368:(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])}},2933:(t,e,i)=>{i.d(e,{X:()=>s,f:()=>n});let n=t=>1e3*t,s=t=>t/1e3},3649:(t,e,i)=>{i.d(e,{u:()=>s});var n=i(16450);let s={test:(0,i(34095).$)("#"),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}},4023:(t,e,i)=>{i.d(e,{w:()=>n});function n(t){return"string"==typeof t||Array.isArray(t)}},4028:(t,e,i)=>{i.d(e,{W:()=>o});var n=i(43261);let s={...n.ai,transform:Math.round};var r=i(62960);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}},6402:(t,e,i)=>{i.d(e,{V:()=>h,f:()=>m});var n=i(16422);let s=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var r=i(71132),a=i(84123);let o="number",l="color",u=/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 h(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},r=[],a=0,h=e.replace(u,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:h,indexes:s,types:r}}function d(t){return h(t).values}function c(t){let{split:e,types:i}=h(t),s=e.length;return t=>{let r="";for(let u=0;u<s;u++)if(r+=e[u],void 0!==t[u]){let e=i[u];e===o?r+=(0,a.a)(t[u]):e===l?r+=n.y.transform(t[u]):r+=t[u]}return r}}let p=t=>"number"==typeof t?0:t,m={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(r.S))?void 0:e.length)||0)+((null==(i=t.match(s))?void 0:i.length)||0)>0},parse:d,createTransformer:c,getAnimatableNone:function(t){let e=d(t);return c(t)(e.map(p))}}},9119:(t,e,i)=>{i.d(e,{L:()=>a,m:()=>r});var n=i(66710),s=i(72649);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}},12180:(t,e,i)=>{i.d(e,{v:()=>s});var n=i(46146);class s{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}constructor(){this.subscriptions=[]}}},12419:(t,e,i)=>{i.d(e,{x:()=>n});function n(t){return t instanceof SVGElement&&"svg"!==t.tagName}},12594:(t,e,i)=>{i.d(e,{po:()=>r,tn:()=>o,yT:()=>a});var n=i(93751),s=i(89746);let r=t=>1-Math.sin(Math.acos(t)),a=(0,s.G)(r),o=(0,n.V)(r)}
1,13107:(t,e,i)=>{i.d(e,{t:()=>n});let n=(0,i(23796).createContext)(null)},13978:(t,e,i)=>{i.d(e,{z:()=>a});var n=i(44432),s=i(92787),r=i(87356);function a(t,e,i){let a=(0,n.S)(t)?t:(0,r.OQ)(t);return a.start((0,s.f)("",a,e,i)),a.animation}},15114:(t,e,i)=>{i.d(e,{I:()=>c,r:()=>d});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]),u={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 h(t){return+!!t.includes("scale")}function d(t,e){let i,n;if(!t||"none"===t)return h(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=u,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=r,n=e}if(!n)return h(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())}},16177:(t,e,i)=>{i.d(e,{x:()=>a});var n=i(44432),s=i(92688),r=i(23912);function a(t,e,i){let a=(0,s.x)(t,e,i);for(let i in t)((0,n.S)(t[i])||(0,n.S)(e[i]))&&(a[-1!==r.U.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return a}},16344:(t,e,i)=>{i.d(e,{D:()=>a});var n=i(16422),s=i(63225);let r={...i(4028).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]},16422:(t,e,i)=>{i.d(e,{y:()=>a});var n=i(3649),s=i(84006),r=i(16450);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)}},16450:(t,e,i)=>{i.d(e,{B:()=>u});var n=i(43261),s=i(84123),r=i(34095),a=i(20528);let o=t=>(0,a.q)(0,255,t),l={...n.ai,transform:t=>Math.round(o(t))},u={test:(0,r.$)("rgb","red"),parse:(0,r.q)("red","green","blue"),transform:t=>{let{red:e,green:i,blue:r,alpha:a=1}=t;return"rgba("+l.transform(e)+", "+l.transform(i)+", "+l.transform(r)+", "+(0,s.a)(n.X4.transform(a))+")"}}},16887:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(23796).createContext)({})},16891:(t,e,i)=>{i.d(e,{h:()=>n});let n=t=>Array.isArray(t)&&"number"!=typeof t[0]},18471:(t,e,i)=>{i.d(e,{Y:()=>s});var n=i(72329);function s(t,e,i){let s=Math.max(e-5,0);return(0,n.f)(i-t(s),e-s)}},19711:(t,e,i)=>{i.d(e,{r:()=>n});function n(t,e){var i,n;return null!=(n=null!=(i=null==t?void 0:t[e])?i:null==t?void 0:t.default)?n:t}},20528:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>i>e?e:i<t?t:i},21886:(t,e,i)=>{i.d(e,{B:()=>M});var n=i(1368),s=i(41796),r=i(42669),a=i(30498),o=i(44432),l=i(96953),u=i(86187),h=i(87356),d=i(45601),c=i(69796),p=i(47651),m=i(50229),f=i(23912),v=i(55180),g=i(25430),y=i(16422),x=i(6402),T=i(93597),w=i(46e3);let P=[...T.T,y.y,x.f],b=t=>P.find((0,w.w)(t));var S=i(93767),A=i(12180);let V=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class M{scrapeMotionValuesFromProps(t,e,i){return{}}mount(t){this.current=t,l.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)),a.r.current||(0,r.U)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||a.O.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,m.WG)(this.notifyUpdate),(0,m.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=f.f.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&m.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),r(),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 n.B){let e=n.B[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];
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,s.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,o.S)(s))t.addValue(n,s);else if((0,o.S)(r))t.addValue(n,(0,h.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,h.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,h.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&((0,v.i)(n)||(0,g.$)(n))?n=parseFloat(n):!b(n)&&x.f.test(e)&&(n=(0,S.J)(t,e)),this.setBaseTarget(t,(0,o.S)(n)?n.get():n)),(0,o.S)(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){var n;let s=(0,d.a)(this.props,i,null==(n=this.presenceContext)?void 0:n.custom);s&&(e=s[t])}if(i&&void 0!==e)return e;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,o.S)(s)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new A.v),this.events[t].add(e)}notify(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.events[t]&&this.events[t].notify(...i)}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:s,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=c.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=p.k.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,m.Gt.render(this.render,!1,!0))};let{latestValues:l,renderState:h}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=(0,u.e)(e),this.isVariantNode=(0,u.O)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...f}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in f){let e=f[t];void 0!==l[t]&&(0,o.S)(e)&&e.set(l[t],!1)}}}},22804:(t,e,i)=>{i.d(e,{P:()=>s});var n=i(85138);function s(t){return t.props[n.n]}},23912:(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)}
1,25430:(t,e,i)=>{i.d(e,{$:()=>n});let n=t=>/^0[^.\s]+$/u.test(t)},26396:(t,e,i)=>{i.d(e,{k:()=>n});let n=(t,e,i)=>t+(e-t)*i},27175:(t,e,i)=>{i.d(e,{M:()=>d});var n=i(9119),s=i(69737),r=i(41404),a=i(90222),o=i(92688),l=i(23912),u=i(15114),h=i(67040);class d extends s.b{readValueFromInstance(t,e){if(l.f.has(e))return(0,u.I)(t,e);{let i=window.getComputedStyle(t),n=((0,h.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,e){let{transformPagePoint:i}=e;return(0,n.m)(t,i)}build(t,e,i){(0,r.O)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,o.x)(t,e,i)}constructor(){super(...arguments),this.type="html",this.renderInstance=a.e}}},28029:(t,e,i)=>{i.d(e,{n:()=>n});let n=t=>"string"==typeof t&&"svg"===t.toLowerCase()},28446:(t,e,i)=>{i.d(e,{U:()=>n,_:()=>s});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],s=["initial",...n]},30498:(t,e,i)=>{i.d(e,{O:()=>n,r:()=>s});let n={current:null},s={current:!1}},33064:(t,e,i)=>{i.d(e,{I:()=>a});let n=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var s=i(71510),r=i(72417);function a(t,e){let i=!1,a=!0,o={delta:0,timestamp:0,isProcessing:!1},l=()=>i=!0,u=n.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,a=!1,o=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function h(e){o.has(e)&&(d.schedule(e),t()),u++,e(l)}let d={schedule:function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=s&&r?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,r){a=!0;return}r=!0,[i,n]=[n,i],i.forEach(h),e&&s.Q.value&&s.Q.value.frameloop[e].push(u),u=0,i.clear(),r=!1,a&&(a=!1,d.process(t))}};return d}(l,e?i:void 0),t),{}),{setup:h,read:d,resolveKeyframes:c,preUpdate:p,update:m,preRender:f,render:v,postRender:g}=u,y=()=>{let n=r.W.useManualTiming?o.timestamp:performance.now();i=!1,r.W.useManualTiming||(o.delta=a?1e3/60:Math.max(Math.min(n-o.timestamp,40),1)),o.timestamp=n,o.isProcessing=!0,h.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))},x=()=>{i=!0,a=!0,o.isProcessing||t(y)};return{schedule:n.reduce((t,e)=>{let n=u[e];return t[e]=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return i||x(),n.schedule(t,e,s)},t},{}),cancel:t=>{for(let e=0;e<n.length;e++)u[n[e]].cancel(t)},state:o,steps:u}}},34095:(t,e,i)=>{i.d(e,{$:()=>r,q:()=>a});var n=i(71132);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}}},41072:(t,e,i)=>{i.d(e,{K:()=>n});function n(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){var n;let s=document;e&&(s=e.current);let r=null!=(n=null==i?void 0:i[t])?n:s.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}},41290:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(23796).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},41404:(t,e,i)=>{i.d(e,{O:()=>u});var n=i(23912);let s=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var r=i(4028);let a={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o=n.U.length;var l=i(67040);function u(t,e,i){let{style:u,vars:h,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,l.j)(t)){h[t]=i;continue}{let e=s(i,r.W[t]);t.startsWith("origin")?(p=!0,d[t]=e):u[t]=e}}if(!e.transform&&(c||i?u.transform=function(t,e,i){let l="",u=!0;for(let h=0;h<o;h++){let o=n.U[h],d=t[o];if(void 0===d)continue;let c=!0;if(!(c="number"==typeof d?d===+!!o.startsWith("scale"):0===parseFloat(d))||i){let t=s(d,r.W[o]);if(!c){u=!1;let e=a[o]||o;l+="".concat(e,"(").concat(t,") ")}i&&(e[o]=t)}}return l=l.trim(),i?l=i(e,u?"":l):u&&(l="none"),l}(e,t.transform,i):u.transform&&(u.transform="none")),p){let{originX:t="50%",originY:e="50%",originZ:i=0}=d;u.transformOrigin="".concat(t," ").concat(e," ").concat(i)}}},41796:(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()})},42669:(t,e,i)=>{i.d(e,{U:()=>r});var n=i(69673),s=i(30498);function r(){if(s.r.current=!0,n.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>s.O.current=t.matches;t.addListener(e),e()}else s.O.current=!1}},43261:(t,e,i)=>{i.d(e,{X4:()=>r,ai:()=>s,hs:()=>a});var n=i(20528);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}},44432:(t,e,i)=>{i.d(e,{S:()=>n});let n=t=>!!(t&&t.getVelocity)},44785:(t,e,i)=>{i.d(e,{j:()=>A});var n=i(67040),s=i(16422),r=i(6402),a=i(3649),o=i(84006);function l(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 u=i(16450);function h(t,e){return i=>i>0?e:t}var d=i(26396),c=i(50956);let p=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},m=[a.u,u.B,o.V],f=t=>m.find(e=>e.test(t));function v(t){let e=f(t);if((0,c.$)(!!e,"'".concat(t,"' is not an animatable color. Use the equivalent color code instead.")),!e)return!1;let i=e.parse(t);return e===o.V&&(i=function(t){let{hue:e,saturation:i,lightness:n,alpha:s}=t;e/=360,n/=100;let r=0,a=0,o=0;if(i/=100){let t=n<.5?n*(1+i):n+i-n*i,s=2*n-t;r=l(s,t,e+1/3),a=l(s,t,e),o=l(s,t,e-1/3)}else r=a=o=n;return{red:Math.round(255*r),green:Math.round(255*a),blue:Math.round(255*o),alpha:s}}(i)),i}let g=(t,e)=>{let i=v(t),n=v(e);if(!i||!n)return h(t,e);let s={...i};return t=>(s.red=p(i.red,n.red,t),s.green=p(i.green,n.green,t),s.blue=p(i.blue,n.blue,t),s.alpha=(0,d.k
1)(i.alpha,n.alpha,t),u.B.transform(s))},y=new Set(["none","hidden"]);var x=i(48025);function T(t,e){return i=>(0,d.k)(t,e,i)}function w(t){return"number"==typeof t?T:"string"==typeof t?(0,n.p)(t)?h:s.y.test(t)?g:S:Array.isArray(t)?P:"object"==typeof t?s.y.test(t)?g:b:h}function P(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 b(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 S=(t,e)=>{let i=r.f.createTransformer(e),n=(0,r.V)(t),s=(0,r.V)(e);return n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length?y.has(t)&&!s.values.length||y.has(e)&&!n.values.length?function(t,e){return y.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):(0,x.F)(P(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){var s;let a=e.types[r],o=t.indexes[a][n[a]],l=null!=(s=t.values[o])?s:0;i[r]=l,n[a]++}return i}(n,s),s.values),i):((0,c.$)(!0,"Complex values '".concat(t,"' and '").concat(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.")),h(t,e))};function A(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,d.k)(t,e,i):w(t)(t,e)}},45601:(t,e,i)=>{function n(t){let e=[{},{}];return null==t||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})},46e3:(t,e,i)=>{i.d(e,{w:()=>n});let n=t=>e=>e.test(t)}
1,46146:(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})},46636:(t,e,i)=>{i.d(e,{p:()=>n});let n=t=>Array.isArray(t)},47651:(t,e,i)=>{let n;i.d(e,{k:()=>o});var s=i(50229),r=i(72417);function a(){n=void 0}let o={now:()=>(void 0===n&&o.set(s.uv.isProcessing||r.W.useManualTiming?s.uv.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(a)}}},47678:(t,e,i)=>{i.d(e,{N:()=>n});function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}},48025:(t,e,i)=>{i.d(e,{F:()=>s});let n=(t,e)=>i=>e(t(i)),s=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.reduce(n)}},48243:(t,e,i)=>{i.d(e,{P:()=>iA});var n,s,r=i(47678),a=i(94117),o=i(91728);function l(t,e){var i;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=(0,a.K)(t,e,"exit"===n.type?null==(i=t.presenceContext)?void 0:i.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(r=n.transitionOverride);let h=s?()=>Promise.all((0,o.$)(t,s,n)):()=>Promise.resolve(),d=t.variantChildren&&t.variantChildren.size?function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:s=0,staggerChildren:a,staggerDirection:o}=r;return function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=arguments.length>5?arguments[5]:void 0,a=[],o=(t.variantChildren.size-1)*n,h=1===s?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t*n}:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return o-t*n};return Array.from(t.variantChildren).sort(u).forEach((t,n)=>{t.notify("AnimationStart",e),a.push(l(t,e,{...r,delay:i+h(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(a)}(t,e,s+i,a,o,n)}:()=>Promise.resolve(),{when:c}=r;if(!c)return Promise.all([h(),d(n.delay)]);{let[t,e]="beforeChildren"===c?[h,d]:[d,h];return t().then(()=>e())}}function u(t,e){return t.sortNodePosition(e)}var h=i(46636);function d(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 c=i(4023),p=i(28446);let m=p._.length,f=[...p.U].reverse(),v=p.U.length;function g(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function y(){return{animate:g(!0),whileInView:g(),whileHover:g(),whileTap:g(),whileDrag:g(),whileFocus:g(),exit:g()}}
1class x{update(){}constructor(t){this.isMounted=!1,this.node=t}}class T extends x{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(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(e=>{let{animation:i,options:n}=e;return function(t,e){let i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>l(t,e,n)));else if("string"==typeof e)i=l(t,e,n);else{let s="function"==typeof e?(0,a.K)(t,e,n.custom):e;i=Promise.all((0,o.$)(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}(t,i,n)})),i=y(),n=!0,s=e=>(i,n)=>{var s;let r=(0,a.K)(t,n,"exit"===e?null==(s=t.presenceContext)?void 0:s.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function u(o){let{props:l}=t,u=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<m;t++){let n=p._[t],s=e.props[n];((0,c.w)(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},g=[],y=new Set,x={},T=1/0;for(let e=0;e<v;e++){var w,P;let a=f[e],p=i[a],m=void 0!==l[a]?l[a]:u[a],v=(0,c.w)(m),b=a===o?p.isActive:null;!1===b&&(T=e);let S=m===u[a]&&m!==l[a]&&v;if(S&&n&&t.manuallyAnimateOnMount&&(S=!1),p.protectedKeys={...x},!p.isActive&&null===b||!m&&!p.prevProp||(0,r.N)(m)||"boolean"==typeof m)continue;let A=(w=p.prevProp,"string"==typeof(P=m)?P!==w:!!Array.isArray(P)&&!d(P,w)),V=A||a===o&&p.isActive&&!S&&v||e>T&&v,M=!1,k=Array.isArray(m)?m:[m],E=k.reduce(s(a),{});!1===b&&(E={});let{prevResolvedValues:D={}}=p,C={...D,...E},R=e=>{V=!0,y.has(e)&&(M=!0,y.delete(e)),p.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))continue;let n=!1;((0,h.p)(e)&&(0,h.p)(i)?d(e,i):e===i)?void 0!==e&&y.has(t)?R(t):p.protectedKeys[t]=!0:null!=e?R(t):y.add(t)}p.prevProp=m,p.prevResolvedValues=E,p.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:a}})))}if(y.size){let e={};if("boolean"!=typeof l.initial){let i=(0,a.K)(t,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(e.transition=i.transition)}y.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=null!=n?n:null}),g.push({animation:e})}let b=!!g.length;return n&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(b=!1),n=!1,b?e(g):Promise.resolve()}return{animateChanges:u,setActive:function(e,n){var s;if(i[e].isActive===n)return Promise.resolve();null==(s=t.variantChildren)||s.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,n)}),i[e].isActive=n;let r=u(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=y(),n=!0}}}(t))}}let w=0;class P extends 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(){}constructor(){super(...arguments),this.id=w++}}var b=i(92787);function S(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let A=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function V(t){return{point:{x:t.pageX,y:t.pageY}}}let M=t=>e=>A(e)&&t(e,V(e));function k(t,e,i,n){return S(t,e,M(i),n)}var E=i(66710),D=i(26396);function C(t){return t.max-t.min}function R(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=n,t.originPoint=(0,D.k)(e.min,e.max,t.origin),t.scale=C(i)/C(e),t.translate=(0,D.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 j(t,e,i,n){R(t.x,e.x,i.x,n?n.originX:void 0),R(t.y,e.y,i.y,n?n.originY:void 0)}function L(t,e,i){t.min=i.min+e.min,t.max=t.min+C(e)}function F(t,e,i){t.min=e.min-i.min,t.max=t.min+C(e)}function B(t,e,i){F(t.x,e.x,i.x),F(t.y,e.y,i.y)}var O=i(41796);function U(t){return[t("x"),t("y")]}var I=i(9119);let W=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null};function N(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var q=i(89495);let G=(t,e)=>Math.abs(t-e);var X=i(50229),H=i(48025),K=i(2933);class Y{updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,X.WG)(this.updatePoint)}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(G(t.x,e.x)**2+G(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:s}=X.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),X.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)},!A(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let r=z(V(t),this.transformPagePoint),{point:a}=r,{timestamp:o}=X.uv;this.history=[{...a,timestamp:o}];let{onSessionStart:l}=e;l&&l(t,$(r,this.history)),this.removeListeners=(0,H.F)(k(this.contextWindow,"pointermove",this.handlePointerMove),k(this.contextWindow,"pointerup",this.handlePointerUp),k(this.contextWindow,"pointercancel",this.handlePointerUp))}}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 $(t,e){let{point:i}=t;return{point:i,delta:Q(i,_(e)),offset:Q(i,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,s=_(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 _(t){return t[t.length-1]}var Z=i(74772),J=i(20528);function tt(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 te(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 ti(t,e,i){return{min:tn(t,e),max:tn(t,i)}}function tn(t,e){return"number"==typeof t?t:t[e]||0}var ts=i(50956);let tr={x:!1,y:!1};var ta=i(62960);let to=new WeakMap;class tl{start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new Y(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(V(t).point)},onStart:(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(tr[t])return null;else return tr[t]=!0,()=>{tr[t]=!1};return tr.x||tr.y?null:(tr.x=tr.y=!0,()=>{tr.x=tr.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),U(t=>{let e=this.getAxisMotionValue(t).get()||0;if(ta.KN.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];
1n&&(e=C(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&X.Gt.postRender(()=>s(t,e)),(0,q.g)(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(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){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,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)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>U(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:W(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&&X.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||!tu(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,e,i){let{min:n,max:s}=e;return void 0!==n&&t<n?t=i?(0,D.k)(n,t,i.min):Math.max(t,n):void 0!==s&&t>s&&(t=i?(0,D.k)(s,t,i.max):Math.min(t,s)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,s=this.constraints;e&&N(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,e){let{top:i,left:n,bottom:s,right:r}=e;return{x:tt(t.x,n,r),y:tt(t.y,i,s)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:ti(t,"left","right"),y:ti(t,"top","bottom")}}(i),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&U(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}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!N(e))return!1;let n=e.current;(0,ts.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,I.L)(n,s.root,this.visualElement.getTransformPagePoint()),a=(t=s.layout.layoutBox,{x:te(t.x,r.x),y:te(t.y,r.y)});if(i){let t=i((0,E.pA)(a));this.hasMutatedConstraints=!!t,t&&(a=(0,E.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(U(a=>{if(!tu(a,e,this.currentDirection))return;let l=o&&o[a]||{};r&&(l={min:0,max:0});let u={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,u)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,q.g)(this.visualElement,t),i.start((0,b.f)(t,i,0,e,this.visualElement,!1))}stopAnimation(){U(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){U(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e="_drag".concat(t.toUpperCase()),i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}
1snapToCursor(t){U(e=>{let{drag:i}=this.getProps();if(!tu(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,D.k)(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!N(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};U(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=C(t),s=C(e);return s>n?i=(0,Z.q)(e.min,e.max-n,t.min):n>s&&(i=(0,Z.q)(t.min,t.max-s,e.min)),(0,J.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(),U(e=>{if(!tu(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set((0,D.k)(s,r,n[e]))})}addListeners(){if(!this.visualElement.current)return;to.set(this.visualElement,this);let t=k(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();N(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()),X.Gt.read(e);let s=S(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i}=t;this.isDragging&&i&&(U(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].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}}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,O.ge)(),this.visualElement=t}}function tu(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}var th=i(92017);class td extends x{mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||th.l}unmount(){this.removeGroupControls(),this.removeListeners()}constructor(t){super(t),this.removeGroupControls=th.l,this.removeListeners=th.l,this.controls=new tl(t)}}let tc=t=>(e,i)=>{t&&X.Gt.postRender(()=>t(e,i))};class tp extends x{onPointerDown(t){this.session=new Y(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:W(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:tc(t),onStart:tc(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&X.Gt.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=k(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}constructor(){super(...arguments),this.removePointerDownListener=th.l}}var tm=i(87448),tf=i(23796),tv=i(75300),tg=i(16887);let ty=(0,tf.createContext)({}),tx={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tT(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tw={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!ta.px.test(t))return t;else t=parseFloat(t);let i=tT(t,e.target.x),n=tT(t,e.target.y);return"".concat(i,"% ").concat(n,"%")}};var tP=i(6402),tb=i(91151);let{schedule:tS}=(0,i(33064).I)(queueMicrotask,!1);class tA extends tf.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;(0,tb.$)(tM),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()})),tx.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()||X.Gt.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tS.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 tV(t){let[e,i]=(0,tv.xQ)(),n=(0,tf.useContext)(tg.L);return(0,tm.jsx)(tA,{...t,layoutGroup:n,switchLayoutGroup:(0,tf.useContext)(ty),isPresent:e,safeToRemove:i})}let tM={borderRadius:{...tw,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tw,borderTopRightRadius:tw,borderBottomLeftRadius:tw,borderBottomRightRadius:tw,boxShadow:{correct:(t,e)=>{let{treeScale:i,projectionDelta:n}=e,s=tP.f.parse(t);if(s.length>5)return t;let r=tP.f.createTransformer(t),a=+("number"!=typeof s[0]),o=n.x.scale*i.x,l=n.y.scale*i.y;s[0+a]/=o,s[1+a]/=l;let u=(0,D.k)(o,l,.5);return"number"==typeof s[2+a]&&(s[2+a]/=u),"number"==typeof s[3+a]&&(s[3+a]/=u),r(s)}}};var tk=i(13978),tE=i(22804),tD=i(12419);let tC=(t,e)=>t.depth-e.depth;var tR=i(46146);class tj{add(t){(0,tR.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,tR.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tC),this.isDirty=!1,this.children.forEac
1h(t)}constructor(){this.children=[],this.isDirty=!1}}var tL=i(47651),tF=i(44432);function tB(t){return(0,tF.S)(t)?t.get():t}var tO=i(12594);let tU=["TopLeft","TopRight","BottomLeft","BottomRight"],tI=tU.length,tW=t=>"string"==typeof t?parseFloat(t):t,tN=t=>"number"==typeof t||ta.px.test(t);function tq(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tG=tH(0,.5,tO.yT),tX=tH(.5,.95,th.l);function tH(t,e,i){return n=>n<t?0:n>e?1:i((0,Z.q)(t,e,n))}function tK(t,e){t.min=e.min,t.max=e.max}function tY(t,e){tK(t.x,e.x),tK(t.y,e.y)}function tz(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tQ=i(72649);function t$(t,e,i,n,s){return t-=e,t=(0,tQ.hq)(t,1/i,n),void 0!==s&&(t=(0,tQ.hq)(t,1/s,n)),t}function t_(t,e,i,n,s){let[r,a,o]=i;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,s=arguments.length>4?arguments[4]:void 0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(ta.KN.test(e)&&(e=parseFloat(e),e=(0,D.k)(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=(0,D.k)(r.min,r.max,n);t===r&&(o-=e),t.min=t$(t.min,e,i,o,s),t.max=t$(t.max,e,i,o,s)}(t,e[r],e[a],e[o],e.scale,n,s)}let tZ=["x","scaleX","originX"],tJ=["y","scaleY","originY"];function t0(t,e,i,n){t_(t.x,e,tZ,i?i.x:void 0,n?n.x:void 0),t_(t.y,e,tJ,i?i.y:void 0,n?n.y:void 0)}function t1(t){return 0===t.translate&&1===t.scale}function t2(t){return t1(t.x)&&t1(t.y)}function t4(t,e){return t.min===e.min&&t.max===e.max}function t6(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function t3(t,e){return t6(t.x,e.x)&&t6(t.y,e.y)}function t5(t){return C(t.x)/C(t.y)}function t9(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class t7{add(t){(0,tR.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,tR.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)}constructor(){this.members=[]}}var t8=i(94180),et=i(71510),ee=i(12180),ei=i(19711),en=i(48394),es=i(87356);let er={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ea=["","X","Y","Z"],eo={visibility:"hidden"},el=0;function eu(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function eh(t){let{attachResizeListener:e,defaultParent:i,measureScroll:n,checkIsScrollRoot:s,resetTransform:r}=t;return class{addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ee.v),this.eventHandlers.get(t).add(e)}notifyListeners(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];let s=this.eventHandlers.get(t);s&&s.notify(...i)}hasListeners(t){return this.eventHandlers.has(t)}mount(t){if(this.instance)return;this.isSVG=(0,tD.x)(t),this.instance=t;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),e){let i,n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tL.k.now(),n=s=>{let{timestamp:r}=s,a=r-i;a>
1=250&&((0,X.WG)(n),t(a-e))};return X.Gt.setup(n,!0),()=>(0,X.WG)(n)}(n,250),tx.hasAnimatedSinceResize&&(tx.hasAnimatedSinceResize=!1,this.nodes.forEach(ex))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i,hasRelativeLayoutChanged:n,layout:r}=t;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||s.getDefaultTransition()||eM,{onLayoutAnimationStart:o,onLayoutAnimationComplete:l}=s.getProps(),u=!this.targetLayout||!t3(this.targetLayout,r),h=!i&&n;if(this.options.layoutRoot||this.resumeFrom||h||i&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,h);let t={...(0,ei.r)(a,"layout"),onPlay:o,onComplete:l};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else i||ex(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}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,X.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(eP),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[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,tE.P)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",X.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(ev);return}this.isUpdating||this.nodes.forEach(eg),this.isUpdating=!1,this.nodes.forEach(ey),this.nodes.forEach(ed),this.nodes.forEach(ec),this.clearAllSnapshots();let t=tL.k.now();X.uv.delta=(0,J.q)(0,1e3/60,t-X.uv.timestamp),X.uv.timestamp=t,X.uv.isProcessing=!0,X.PP.update.process(X.uv),X.PP.preRender.process(X.uv),X.PP.render.process(X.uv),X.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tS.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ef),this.sharedNodes.forEach(eb)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||C(this.snapshot.measuredBox.x)||C(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,O.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(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!t2(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,t8.HD)(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),eD((t=n).x),eD(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return(0,O.ge)();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(eR))){let{scroll:t}=this.root;t&&((0,tQ.Ql)(i.x,t.offset.x),(0,tQ.Ql)(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=(0,O.ge)();if(tY(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&tY(i,t),(0,tQ.Ql)(i.x,s.offset.x),(0,tQ.Ql)(i.y,s.offset.y))}return i}applyTransform(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(0,O.ge)();tY(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,tQ.Ww)(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,t8.HD)(n.latestValues)&&(0,tQ.Ww)(i,n.latestValues)}return(0,t8.HD)(this.latestValues)&&(0,tQ.Ww)(i,this.latestValues),i}removeTransform(t){let e=(0,O.ge)();tY(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,t8.HD)(i.latestValues))continue;(0,t8.vk)(i.latestValues)&&i.updateSnapshot();let n=(0,O.ge)();tY(n,i.measurePageBox()),t0(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return(0,t8.HD)(this.latestValues)&&t0(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!==X.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){var t,e,i,n;let s=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=r.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==r;if(!(s||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:o,layoutId:l}=this.options;if(this.layout&&(o||l)){if(this.resolvedRelativeTargetAt=X.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,O.ge)(),this.relativeTargetOrigin=(0,O.ge)(),B(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),tY(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=(0,O.ge)(),this.targetWithTransforms=(0,O.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),e=this.target,i=this.relativeTarget,n=this.relativeParent.target,L(e.x,i.x,n.x),L(e.y,i.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tY(this.target,this.layout.layoutBox),(0,tQ.o4)(this.target,this.targetDelta)):tY(this.target,this.layout.layoutBox),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,O.ge)(),this.relativeTargetOrigin=(0,O.ge)(),B(this.relativeTargetOrigin,this.target,t.target),tY(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}et.Q.value&&er.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||(0,t8.vk)(this.parent.latestValues)||(0,t8.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(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===X.uv.timestamp&&(n=!1),n)return;let{layout:s,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||r))return;tY(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;(0,tQ.OU)(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,O.ge)());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(tz(this.prevProjectionDelta.x,this.projectionDelta.x),tz(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),j(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&t9(this.projectionDelta.x,this.prevProjectionDelta.x)&&t9(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),et.Q.value&&er.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(null==(t=this.options.visualElement)||t.scheduleRender(),e){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,O.xU)(),this.projectionDelta=(0,O.xU)(),this.projectionDeltaWithTransform=(0,O.xU)()}setAnimationOrigin(t){let e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},a=(0,O.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let o=(0,O.ge)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&
1!0===this.options.crossfade&&!this.path.some(eV));this.animationProgress=0,this.mixTargetDelta=i=>{let n=i/1e3;if(eS(a.x,t.x,n),eS(a.y,t.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,v;B(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,v=n,eA(p.x,m.x,f.x,v),eA(p.y,m.y,f.y,v),e&&(u=this.relativeTarget,c=e,t4(u.x,c.x)&&t4(u.y,c.y))&&(this.isProjectionDirty=!1),e||(e=(0,O.ge)()),tY(e,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){var a,o,l,u;s?(t.opacity=(0,D.k)(0,null!=(a=i.opacity)?a:1,tG(n)),t.opacityExit=(0,D.k)(null!=(o=e.opacity)?o:1,0,tX(n))):r&&(t.opacity=(0,D.k)(null!=(l=e.opacity)?l:1,null!=(u=i.opacity)?u:1,n));for(let s=0;s<tI;s++){let r="border".concat(tU[s],"Radius"),a=tq(e,r),o=tq(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||tN(a)===tN(o)?(t[r]=Math.max((0,D.k)(tW(a),tW(o),n),0),(ta.KN.test(o)||ta.KN.test(a))&&(t[r]+="%")):t[r]=o)}(e.rotate||i.rotate)&&(t.rotate=(0,D.k)(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){var e,i,n;this.notifyListeners("animationStart"),null==(e=this.currentAnimation)||e.stop(!1),null==(n=this.resumingFrom)||null==(i=n.currentAnimation)||i.stop(!1),this.pendingAnimation&&((0,X.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.Gt.update(()=>{tx.hasAnimatedSinceResize=!0,en.q.layout++,this.motionValue||(this.motionValue=(0,es.OQ)(0)),this.currentAnimation=(0,tk.z)(this.motionValue,[0,1e3],{...t,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{en.q.layout--},onComplete:()=>{en.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(!1)),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&&eC(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,O.ge)();let e=C(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=C(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}tY(e,i),(0,tQ.Ww)(e,s),j(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new t7),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(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},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&&eu("z",t,n,this.animationValues);for(let e=0;e<ea.length;e++)eu("rotate".concat(ea[e]),t,n,this.animationValues),eu("skew".concat(ea[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 eo;let e={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.opacity="",e.pointerEvents=tB(null==t?void 0: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=tB(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,t8.HD)(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let s=n.animationValues||n.latestValues;
1this.applyTransformsToTarget(),e.transform=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,a=(null==i?void 0:i.z)||0;if((s||r||a)&&(n="translate3d(".concat(s,"px, ").concat(r,"px, ").concat(a,"px) ")),(1!==e.x||1!==e.y)&&(n+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:a,skewY:o}=i;t&&(n="perspective(".concat(t,"px) ").concat(n)),e&&(n+="rotate(".concat(e,"deg) ")),s&&(n+="rotateX(".concat(s,"deg) ")),r&&(n+="rotateY(".concat(r,"deg) ")),a&&(n+="skewX(".concat(a,"deg) ")),o&&(n+="skewY(".concat(o,"deg) "))}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+="scale(".concat(o,", ").concat(l,")")),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),i&&(e.transform=i(s,e.transform));let{x:r,y:a}=this.projectionDelta;if(e.transformOrigin="".concat(100*r.origin,"% ").concat(100*a.origin,"% 0"),n.animationValues){var o,l;e.opacity=n===this?null!=(l=null!=(o=s.opacity)?o:this.latestValues.opacity)?l:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit}else e.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(let t in tb.H){if(void 0===s[t])continue;let{correct:i,applyTo:r,isCSSVariable:a}=tb.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?tB(null==t?void 0:t.pointerEvents)||"":"none"),e}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop(!1)}),this.root.nodes.forEach(ev),this.root.sharedNodes.clear()}constructor(t={},e=null==i?void 0:i()){this.id=el++,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,et.Q.value&&(er.nodes=er.calculatedTargetDeltas=er.calculatedProjections=0),this.nodes.forEach(ep),this.nodes.forEach(eT),this.nodes.forEach(ew),this.nodes.forEach(em),et.Q.addProjectionMetrics&&et.Q.addProjectionMetrics(er)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new tj)}}}function ed(t){t.updateLayout()}function ec(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:s}=t.options,r=i.source!==t.layout.source;"size"===s?U(t=>{let n=r?i.measuredBox[t]:i.layoutBox[t],s=C(n);n.min=e[t].min,n.max=n.min+s}):eC(s,i.layoutBox,e)&&U(n=>{let s=r?i.measuredBox[n]:i.layoutBox[n],a=C(e[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,O.xU)();j(a,e,i.layoutBox);let o=(0,O.xU)();r?j(o,t.applyTransform(n,!0),i.measuredBox):j(o,e,i.layoutBox);let l=!t2(a),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=(0,O.ge)();B(a,i.layoutBox,s.layoutBox);let o=(0,O.ge)();B(o,e,r.layoutBox),t3(a,o)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ep(t){et.Q.value&&er.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 em(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ef(t){t.clearSnapshot()}function ev(t){t.clearMeasurements()}function eg(t){t.isLayoutDirty=!1}function ey(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ex(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function eT(t){t.resolveTargetDelta()}function ew(t){t.calcProjection()}function eP(t){t.resetSkewAndRotation()}function eb(t){t.removeLeadSnapshot()}function eS(t,e,i){t.translate=(0,D.k)(e.translate,0,i),t.scale=(0,D.k)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eA(t,e,i,n){t.min=(0,D.k)(e.min,i.min,n),t.max=(0,D.k)(e.max,i.max,n)}function eV(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eM={duration:.45,ease:[.4,0,.1,1]},ek=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eE=ek("applewebkit/")&&!ek("chrome/")?Math.round:th.l;function eD(t){t.min=eE(t.min),t.max=eE(t.max)}function eC(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(t5(e)-t5(i)))}function eR(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let ej=eh({attachResizeListener:(t,e)=>S(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eL={current:void 0},eF=eh({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eL.current){let t=new ej({});t.mount(window),t.setOptions({layoutScroll:!0}),eL.current=t}return eL.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var eB=i(41072);function eO(t,e){let i=(0,eB.K)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function eU(t){return!("touch"===t.pointerType||tr.x||tr.y)}function eI(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&X.Gt.postRender(()=>s(e,V(e)))}class eW extends x{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},[n,s,r]=eO(t,i),a=t=>{if(!eU(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let r=t=>{eU(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)=>(eI(this.node,e,"Start"),t=>eI(this.node,t,"End"))))}unmount(){}}class eN extends x{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,H.F)(S(this.node.current,"focus",()=>this.onFocus()),S(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}}let eq=(t,e)=>!!e&&(t===e||eq(t,e.parentElement)),eG=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),eX=new WeakSet;function eH(t){return e=>{"Enter"===e.key&&t(e)}}function eK(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let eY=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=eH(()=>{if(eX.has(i))return;eK(i,"down");let t=eH(()=>{eK(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>eK(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function ez(t){return A(t)&&!(tr.x||tr.y)}function eQ(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&&X.Gt.postRender(()=>s(e,V(e)))}class e$ extends x{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},[n,s,r]=eO(t,i),a=t=>{let n=t.currentTarget;if(!ez(t))return;eX.add(n);let r=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),eX.has(n)&&eX.delete(n),ez(t)&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||eq(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),t instanceof HTMLElement)&&(t.addEventListener("focus",t=>eY(t,s)),eG.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(eQ(this.node,e,"Start"),(t,e)=>{let{success:i}=e;return eQ(this.node,t,i?"End":"Cancel")}),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let e_=new WeakMap,eZ=new WeakMap,eJ=t=>{let e=e_.get(t.target);e&&e(t)},e0=t=>{t.forEach(eJ)},e1={some:0,all:1};class e2 extends x{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:e1[n]};return function(t,e,i){let n=function(t){let{root:e,...i}=t,n=e||document;eZ.has(n)||eZ.set(n,{});let s=eZ.get(n),r=JSON.stringify(i);return s[r]||(s[r]=new IntersectionObserver(e0,{root:e,...i})),s[r]}(e);return e_.set(t,i),n.observe(t),()=>{e_.delete(t),n.unobserve(t)}}(this.node.current,r,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)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:i={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==i[t]}(t,e))&&this.startObserver()}unmount(){}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}}let e4=(0,tf.createContext)({strict:!1});var e6=i(41290);let e3=(0,tf.createContext)({});var e5=i(86187);function e9(t){return Array.isArray(t)?t.join(" "):t}var e7=i(69673),e8=i(1368);let it=Symbol.for("motionComponentSymbol");var ie=i(85138),ii=i(13107),is=i(81780),ir=i(98053),ia=i(41404);let io=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function il(t,e,i){for(let n in e)(0,tF.S)(e[n])||(0,ir.z)(n,i)||(t[n]=e[n])}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 ih(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 id=t=>!ih(t);try{!function(t){t&&(id=e=>e.startsWith("on")?!ih(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}let ic=["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 ip(t){if("string"!=typeof t||t.includes("-"));else if(ic.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var im=i(84853);let iv=()=>({...io(),attrs:{}});var ig=i(28029),iy=i(45601),ix=i(1163);let iT=t=>(e,i)=>{let n=(0,tf.useContext)(e3),s=(0,tf.useContext)(ii.t),a=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:s,createRenderState:a}=t;return{latestValues:function(t,e,i,n){let s={},a=n(t,{});for(let t in a)s[t]=tB(a[t]);let{initial:o,animate:l}=t,u=(0,e5.e)(t),h=(0,e5.O)(t);e&&h&&!u&&!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,iy.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}(e,i,n,s),renderState:a()}})(t,e,n,s);return i?a():(0,ix.M)(a)},iw={useVisualState:iT({scrapeMotionValuesFromProps:i(92688).x,createRenderState:io})},iP={useVisualState:iT({scrapeMotionValuesFromProps:i(16177).x,createRenderState:iv})};var ib=i(27175),iS=i(65451);let iA=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy(function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return t(...i)},{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((n={animation:{Feature:T},exit:{Feature:P},inView:{Feature:e2},tap:{Feature:e$},focus:{Feature:eN},hover:{Feature:eW},pan:{Feature:tp},drag:{Feature:td,ProjectionNode:eF,MeasureLayout:tV},layout:{ProjectionNode:eF,MeasureLayout:tV}},s=(t,e)=>ip(t)?new iS.l(e):new ib.M(e,{allowProjection:t!==tf.Fragment}),function(t){let{forwardMotionProps:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{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,n,l;let u,h={...(0,tf.useContext)(e6.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,tf.useContext)(tg.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:d}=h,p=function(t){let{initial:e,animate:i}=function(t,e){if((0,e5.e)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,c.w)(e)?e:void 0,animate:(0,c.w)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,tf.useContext)(e3));return(0,tf.useMemo)(()=>({initial:e,animate:i}),[e9(e),e9(i)])}(t),m=a(t,d);if(!d&&e7.B){n=0,l=0,(0,tf.useContext)(e4).strict;let t=function(t){let{drag:e,layout:i}=e8.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}}
1(h);u=t.MeasureLayout,p.visualElement=function(t,e,i,n,s){var r,a,o,l;let{visualElement:u}=(0,tf.useContext)(e3),h=(0,tf.useContext)(e4),d=(0,tf.useContext)(ii.t),c=(0,tf.useContext)(e6.Q).reducedMotion,p=(0,tf.useRef)(null);n=n||h.renderer,!p.current&&n&&(p.current=n(t,{visualState:e,parent:u,props:i,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:c}));let m=p.current,f=(0,tf.useContext)(ty);m&&!m.projection&&s&&("html"===m.type||"svg"===m.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=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&&N(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(p.current,i,s,f);let v=(0,tf.useRef)(!1);(0,tf.useInsertionEffect)(()=>{m&&v.current&&m.update(i,d)});let g=i[ie.n],y=(0,tf.useRef)(!!g&&!(null==(r=(a=window).MotionHandoffIsComplete)?void 0:r.call(a,g))&&(null==(o=(l=window).MotionHasOptimisedAnimation)?void 0:o.call(l,g)));return(0,is.E)(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),tS.render(m.render),y.current&&m.animationState&&m.animationState.animateChanges())}),(0,tf.useEffect)(()=>{m&&(!y.current&&m.animationState&&m.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var t,e;null==(t=(e=window).MotionHandoffMarkAsComplete)||t.call(e,g)}),y.current=!1))}),m}(o,m,h,s,t.ProjectionNode)}return(0,tm.jsxs)(e3.Provider,{value:p,children:[u&&p.visualElement?(0,tm.jsx)(u,{visualElement:p.visualElement,...h}):null,r(o,t,(i=p.visualElement,(0,tf.useCallback)(t=>{t&&m.onMount&&m.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):N(e)&&(e.current=t))},[i])),m,d,p.visualElement)]})}n&&function(t){for(let e in t)e8.B[e]={...e8.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,tf.forwardRef)(l);return u[it]=o,u}({...ip(t)?iP:iw,preloadedFeatures:n,useRender:function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e,i,n,s,r)=>{let{latestValues:a}=s,o=(ip(e)?function(t,e,i,n){let s=(0,tf.useMemo)(()=>{let i=iv();return(0,im.B)(i,e,(0,ig.n)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};il(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 il(n,i,t),Object.assign(n,function(t,e){let{transformTemplate:i}=t;return(0,tf.useMemo)(()=>{let t=io();return(0,ia.O)(t,e,i),Object.assign({},t.vars,t.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-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,a,r,e),l=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(id(s)||!0===i&&ih(s)||!e&&!ih(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(i,"string"==typeof e,t),u=e!==tf.Fragment?{...l,...o,ref:n}:{},{children:h}=i,d=(0,tf.useMemo)(()=>(0,tF.S)(h)?h.get():h,[h]);return(0,tf.createElement)(e,{...u,children:d})}}(e),createVisualElement:s,Component:t})}))},48394:(t,e,i)=>{i.d(e,{q:()=>n});let n={layout:0,mainThread:0,waapi:0}},50229:(t,e,i)=>{i.d(e,{Gt:()=>r,PP:()=>l,WG:()=>a,uv:()=>o});var n=i(33064),s=i(92017);let{schedule:r,cancel:a,state:o,steps:l}=(0,n.I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:s.l,!0)},50956:(t,e,i)=>{i.d(e,{$:()=>n,V:()=>s});let n=()=>{},s=()=>{}},53059:(t,e,i)=>{i.d(e,{K:()=>n});let n=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=t(e/(s-1))+", ";return"linear(".concat(n.substring(0,n.length-2),")")}}
1,53257:(t,e,i)=>{i.d(e,{o:()=>f});var n=i(53059),s=i(70676),r=i(87246),a=i(18471);let o={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 l=i(50956),u=i(2933),h=i(20528);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(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.visualDuration,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.bounce,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:i}:e,{restSpeed:f,restDelta:v}=r,g=r.keyframes[0],y=r.keyframes[r.keyframes.length-1],x={done:!1,value:g},{stiffness:T,damping:w,mass:P,duration:b,velocity:S,isResolvedFromDuration:A}=function(t){let e={velocity:o.velocity,stiffness:o.stiffness,damping:o.damping,mass:o.mass,isResolvedFromDuration:!1,...t};if(!m(t,p)&&m(t,c))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*(0,h.q)(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:o.mass,stiffness:n,damping:s}}else{let i=function(t){let e,i,{duration:n=o.duration,bounce:s=o.bounce,velocity:r=o.velocity,mass:a=o.mass}=t;(0,l.$)(n<=(0,u.f)(o.maxDuration),"Spring duration must be 10 seconds or less");let c=1-s;c=(0,h.q)(o.minDamping,o.maxDamping,c),n=(0,h.q)(o.minDuration,o.maxDuration,(0,u.X)(n)),c<1?(e=t=>{let e=t*c,i=e*n;return .001-(e-r)/d(t,c)*Math.exp(-i)},i=t=>{let i=t*c*n,s=Math.pow(c,2)*Math.pow(t,2)*n,a=Math.exp(-i),o=d(Math.pow(t,2),c);return(i*r+r-s)*a*(-e(t)+.001>0?-1:1)/o}):(e=t=>-.001+Math.exp(-t*n)*((t-r)*n+1),i=t=>n*n*(r-t)*Math.exp(-t*n));let p=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(e,i,5/n);if(n=(0,u.f)(n),isNaN(p))return{stiffness:o.stiffness,damping:o.damping,duration:n};{let t=Math.pow(p,2)*a;return{stiffness:t,damping:2*c*Math.sqrt(a*t),duration:n}}}(t);(e={...e,...i,mass:o.mass}).isResolvedFromDuration=!0}return e}({...r,velocity:-(0,u.X)(r.velocity||0)}),V=S||0,M=w/(2*Math.sqrt(T*P)),k=y-g,E=(0,u.X)(Math.sqrt(T/P)),D=5>Math.abs(k);if(f||(f=D?o.restSpeed.granular:o.restSpeed.default),v||(v=D?o.restDelta.granular:o.restDelta.default),M<1){let e=d(E,M);t=t=>y-Math.exp(-M*E*t)*((V+M*E*k)/e*Math.sin(e*t)+k*Math.cos(e*t))}else if(1===M)t=t=>y-Math.exp(-E*t)*(k+(V+E*k)*t);else{let e=E*Math.sqrt(M*M-1);t=t=>{let i=Math.exp(-M*E*t),n=Math.min(e*t,300);return y-i*((V+M*E*k)*Math.sinh(n)+e*k*Math.cosh(n))/e}}let C={calculatedDuration:A&&b||null,next:e=>{let i=t(e);if(A)x.done=e>=b;else{let n=0===e?V:0;
1M<1&&(n=0===e?(0,u.f)(V):(0,a.Y)(t,e,i));let s=Math.abs(y-i)<=v;x.done=Math.abs(n)<=f&&s}return x.value=x.done?y:i,x},toString:()=>{let t=Math.min((0,s.t)(C),s.Y),e=(0,n.K)(e=>C.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return C}f.applyToOptions=t=>{let e=(0,r.X)(t,100,f);return t.ease=e.ease,t.duration=(0,u.f)(e.duration),t.type="keyframes",t}},54265:(t,e,i)=>{i.d(e,{G:()=>h});var n=i(44785),s=i(50956),r=i(20528),a=i(72417),o=i(92017),l=i(48025),u=i(74772);function h(t,e){let{clamp:i=!0,ease:h,mixer:d}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=t.length;if((0,s.V)(c===e.length,"Both input and output ranges must be the same length"),1===c)return()=>e[0];if(2===c&&e[0]===e[1])return()=>e[1];let p=t[0]===t[1];t[0]>t[c-1]&&(t=[...t].reverse(),e=[...e].reverse());let m=function(t,e,i){let s=[],r=i||a.W.mix||n.j,u=t.length-1;for(let i=0;i<u;i++){let n=r(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||o.l:e;n=(0,l.F)(t,n)}s.push(n)}return s}(e,h,d),f=m.length,v=i=>{if(p&&i<t[0])return e[0];let n=0;if(f>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=(0,u.q)(t[n],t[n+1],i);return m[n](s)};return i?e=>v((0,r.q)(t[0],t[c-1],e)):v}},55180:(t,e,i)=>{i.d(e,{i:()=>n});let n=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},57879:(t,e,i)=>{i.d(e,{$:()=>n});let n=new Set(["width","height","top","left","right","bottom",...i(23912).U])},62960:(t,e,i)=>{i.d(e,{KN:()=>r,gQ:()=>u,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=>"".concat(e).concat(t)}),s=n("deg"),r=n("%"),a=n("px"),o=n("vh"),l=n("vw"),u={...r,parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)}},63225:(t,e,i)=>{i.d(e,{p:()=>l});var n=i(6402),s=i(71132);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}}},65451:(t,e,i)=>{i.d(e,{l:()=>p});var n=i(41796),s=i(69737),r=i(65468),a=i(84853);let o=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 l=i(28029),u=i(90222),h=i(16177),d=i(23912),c=i(16344);class p extends s.b{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(d.f.has(e)){let t=(0,c.D)(e);return t&&t.default||0}return e=o.has(e)?e:(0,r.I)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return(0,h.x)(t,e,i)}build(t,e,i){(0,a.B)(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in(0,u.e)(t,e,void 0,n),e.attrs)t.setAttribute(o.has(i)?i:(0,r.I)(i),e.attrs[i])}mount(t){this.isSVGTag=(0,l.n)(t.tagName),super.mount(t)}constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=n.ge}}},65468:(t,e,i)=>{i.d(e,{I:()=>n});let n=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},66710:(t,e,i)=>{function n(t){let{top:e,left:i,right:n,bottom:s}=t;return{x:{min:i,max:n},y:{min:e,max:s}}}function s(t){let{x:e,y:i}=t;return{top:i.min,right:e.max,bottom:i.max,left:e.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})},67040:(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},68051:(t,e,i)=>{i.d(e,{f:()=>r});var n=i(26396),s=i(74772);function r(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let a=(0,s.q)(0,e,r);t.push((0,n.k)(i,1,a))}}},69673:(t,e,i)=>{i.d(e,{B:()=>n});let n="undefined"!=typeof window},69737:(t,e,i)=>{i.d(e,{b:()=>y});var n=i(44432),s=i(21886),r=i(57879),a=i(93597),o=i(67040),l=i(50956),u=i(55180);let h=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var d=i(69796),c=i(25430),p=i(6402),m=i(93767);
1let f=new Set(["auto","none","0"]);var v=i(86646);class g extends d.h{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){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,l.V)(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));let[s,r]=function(t){let e=h.exec(t);if(!e)return[,];let[,i,n,s]=e;return["--".concat(null!=i?i:n),s]}(e);if(!s)return;let a=window.getComputedStyle(i).getPropertyValue(s);if(a){let t=a.trim();return(0,u.i)(t)?parseFloat(t):t}return(0,o.p)(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!r.$.has(i)||2!==t.length)return;let[n,s]=t,d=(0,a.n)(n),c=(0,a.n)(s);if(d!==c)if((0,v.E4)(d)&&(0,v.E4)(c))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else v.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,c.$)(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&&!f.has(e)&&(0,p.V)(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=(0,m.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=v.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(){var t;let{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let s=e.getValue(i);s&&s.jump(this.measuredOrigin,!1);let r=n.length-1,a=n[r];n[r]=v.Hr[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h(t=>{let[i,n]=t;e.getValue(i).set(n)}),this.resolveNoneKeyframes()}constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}}class y extends s.B{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,e){let{vars:i,style:n}=e;delete i[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,n.S)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent="".concat(t))}))}constructor(){super(...arguments),this.KeyframeResolver=g}}},69796:(t,e,i)=>{i.d(e,{h:()=>c,q:()=>d});var n=i(86646),s=i(50229);let r=new Set,a=!1,o=!1,l=!1;function u(){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=>{var i;let[n,s]=e;null==(i=t.getValue(n))||i.set(s)})}),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 h(){r.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(o=!0)})}function d(){l=!0,h(),u(),l=!1}class c{scheduleResolve(){this.state="scheduled",this.isAsync?(r.add(this),a||(a=!0,s.Gt.read(h),s.Gt.resolveKeyframes(u))):(this.readKeyframes(),this.complete())}readKeyframes(){var t;let{unresolvedKeyframes:e,name:i,element:n,motionValue:s}=this;if(null===e[0]){let t=null==s?void 0:s.get(),r=e[e.length-1];if(void 0!==t)e[0]=t;else if(n&&i){let t=n.readValue(i,r);null!=t&&(e[0]=t)}void 0===e[0]&&(e[0]=r),s&&void 0===t&&s.set(e[0])}for(let t=1;t<e.length;t++)null!=e[t]||(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];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()}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}}},70676:(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}},71132:(t,e,i)=>{i.d(e,{S:()=>n});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},71510:(t,e,i)=>{i.d(e,{Q:()=>n});let n={value:null,addProjectionMetrics:null}},72329:(t,e,i)=>{i.d(e,{f:()=>n});function n(t,e){return e?1e3/e*t:0}},72417:(t,e,i)=>{i.d(e,{W:()=>n});let n={}},72649:(t,e,i)=>{i.d(e,{OU:()=>u,Ql:()=>h,Ww:()=>c,hq:()=>r,o4:()=>l});var n=i(94180),s=i(26396);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){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;t.min=a(t.min,e,i,n,s),t.max=a(t.max,e,i,n,s)}function l(t,e){let{x:i,y:n}=e;o(t.x,i.translate,i.scale,i.originPoint),o(t.y,n.translate,n.scale,n.originPoint)}function u(t,e,i){let s,r,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=i.length;if(o){e.x=e.y=1;for(let u=0;u<o;u++){r=(s=i[u]).projectionDelta;let{visualElement:o}=s.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(a&&s.options.layoutScroll&&s.scroll&&s!==s.root&&c(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,l(t,r)),a&&(0,n.HD)(s.latestValues)&&c(t,s.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function h(t,e){t.min=t.min+e,t.max=t.max+e}function d(t,e,i,n){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5,a=(0,s.k)(t.min,t.max,r);o(t,e,i,a,n)}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)}},74772:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},75300:(t,e,i)=>{i.d(e,{xQ:()=>r});var n=i(23796),s=i(13107);function r(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,n.useContext)(s.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:a}=e,o=(0,n.useId)();(0,n.useEffect)(()=>
1{if(t)return a(o)},[t]);let l=(0,n.useCallback)(()=>t&&r&&r(o),[o,r,t]);return!i&&r?[!1,l]:[!0]}},81697:(t,e,i)=>{i.d(e,{Z:()=>s});var n=i(68051);function s(t){let e=[0];return(0,n.f)(e,t.length-1),e}},81780:(t,e,i)=>{i.d(e,{E:()=>s});var n=i(23796);let s=i(69673).B?n.useLayoutEffect:n.useEffect},84006:(t,e,i)=>{i.d(e,{V:()=>o});var n=i(43261),s=i(62960),r=i(84123),a=i(34095);let o={test:(0,a.$)("hsl","hue"),parse:(0,a.q)("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:i,lightness:a,alpha:o=1}=t;return"hsla("+Math.round(e)+", "+s.KN.transform((0,r.a)(i))+", "+s.KN.transform((0,r.a)(a))+", "+(0,r.a)(n.X4.transform(o))+")"}}},84123:(t,e,i)=>{i.d(e,{a:()=>n});let n=t=>Math.round(1e5*t)/1e5},84853:(t,e,i)=>{i.d(e,{B:()=>o});var n=i(41404),s=i(62960);let r={offset:"stroke-dashoffset",array:"stroke-dasharray"},a={offset:"strokeDashoffset",array:"strokeDasharray"};function o(t,e,i,o,l){var u,h;let{attrX:d,attrY:c,attrScale:p,pathLength:m,pathSpacing:f=1,pathOffset:v=0,...g}=e;if((0,n.O)(t,g,o),i){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:y,style:x}=t;y.transform&&(x.transform=y.transform,delete y.transform),(x.transform||y.transformOrigin)&&(x.transformOrigin=null!=(u=y.transformOrigin)?u:"50% 50%",delete y.transformOrigin),x.transform&&(x.transformBox=null!=(h=null==l?void 0:l.transformBox)?h:"fill-box",delete y.transformBox),void 0!==d&&(y.x=d),void 0!==c&&(y.y=c),void 0!==p&&(y.scale=p),void 0!==m&&function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=!(arguments.length>4)||void 0===arguments[4]||arguments[4];t.pathLength=1;let l=o?r:a;t[l.offset]=s.px.transform(-n);let u=s.px.transform(e),h=s.px.transform(i);t[l.array]="".concat(u," ").concat(h)}(y,m,f,v,!1)}},85138:(t,e,i)=>{i.d(e,{n:()=>n});let n="data-"+(0,i(65468).I)("framerAppearId")},86187:(t,e,i)=>{i.d(e,{O:()=>o,e:()=>a});var n=i(47678),s=i(4023),r=i(28446);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)}},86646:(t,e,i)=>{i.d(e,{E4:()=>o,Hr:()=>d,W9:()=>h});var n=i(15114),s=i(23912),r=i(43261),a=i(62960);let o=t=>t===r.ai||t===a.px,l=new Set(["x","y","z"]),u=s.U.filter(t=>!l.has(t));function h(t){let e=[];return u.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}let d={width:(t,e)=>{let{x:i}=t,{paddingLeft:n="0",paddingRight:s="0"}=e;return i.max-i.min-parseFloat(n)-parseFloat(s)},height:(t,e)=>{let{y:i}=t,{paddingTop:n="0",paddingBottom:s="0"}=e;return i.max-i.min-parseFloat(n)-parseFloat(s)},top:(t,e)=>{let{top:i}=e;return parseFloat(i)},left:(t,e)=>{let{left:i}=e;return parseFloat(i)},bottom:(t,e)=>{let{y:i}=t,{top:n}=e;return parseFloat(n)+(i.max-i.min)},right:(t,e)=>{let{x:i}=t,{left:n}=e;return parseFloat(n)+(i.max-i.min)},x:(t,e)=>{let{transform:i}=e;return(0,n.r)(i,"x")},y:(t,e)=>{let{transform:i}=e;return(0,n.r)(i,"y")}};d.translateX=d.x,d.translateY=d.y},87246:(t,e,i)=>{i.d(e,{X:()=>r});var n=i(70676),s=i(2933);function r(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,i=arguments.length>2?arguments[2]:void 0,r=i({...t,keyframes:[0,e]}),a=Math.min((0,n.t)(r),n.Y);return{type:"keyframes",ease:t=>r.next(a*t).value/e,duration:(0,s.X)(a)}}},87356:(t,e,i)=>{i.d(e,{OQ:()=>h,bt:()=>l});var n=i(47651),s=i(50229),r=i(12180),a=i(72329);let o=t=>!isNaN(parseFloat(t)),l={current:void 0};class u{setCurrent(t){this.current=t,this.updatedAt=n.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=o(this.current))}setPrevFrameValue(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]: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 r.v);let i=this.events[t].add(e);return"change"===t?()=>{i(),s.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){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];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){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;null==(t=this.events.change)||t.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 l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=n.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,a.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(){var t,e;null==(t=this.dependents)||t.clear(),null==(e=this.events.destroy)||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}constructor(t,e={}){var i=this;this.version="__VERSION__",this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(t){var e,s;let r=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=n.k.now();if(i.updatedAt!==a&&i.setPrevFrameValue(),i.prev=i.current,i.setCurrent(t),i.current!==i.prev&&(null==(e=i.events.change)||e.notify(i.current),i.dependents))for(let t of i.dependents)t.dirty();r&&(null==(s=i.events.renderRequest)||s.notify(i.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}}function h(t,e){return new u(t,e)}},88850:(t,e,i)=>{i.d(e,{W:()=>n});function n(t){return"function"==typeof t&&"applyToOptions"in t}},89495:(t,e,i)=>{i.d(e,{g:()=>r});var n=i(44432),s=i(72417);function r(t,e){let i=t.getValue("willChange");if((0,n.S)(i)&&i.add)return i.add(e);if(!i&&s.W.WillChange){let i=new s.W.WillChange("auto");
1t.addValue("willChange",i),i.add(e)}}},89746:(t,e,i)=>{i.d(e,{G:()=>n});let n=t=>e=>1-t(1-e)},90222:(t,e,i)=>{i.d(e,{e:()=>n});function n(t,e,i,n){let{style:s,vars:r}=e;for(let e in Object.assign(t.style,s,n&&n.getProjectionStyles(i)),r)t.style.setProperty(e,r[e])}},91151:(t,e,i)=>{i.d(e,{$:()=>r,H:()=>s});var n=i(67040);let s={};function r(t){for(let e in t)s[e]=t[e],(0,n.j)(e)&&(s[e].isCSSVariable=!0)}},91728:(t,e,i)=>{i.d(e,{$:()=>c});var n=i(46636),s=i(94117),r=i(87356),a=i(89495),o=i(22804),l=i(92787),u=i(19711),h=i(50229),d=i(57879);function c(t,e){let{delay:i=0,transitionOverride:c,type:p}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:m=t.getDefaultTransition(),transitionEnd:f,...v}=e;c&&(m=c);let g=[],y=p&&t.animationState&&t.animationState.getState()[p];for(let e in v){var x;let n=t.getValue(e,null!=(x=t.latestValues[e])?x:null),s=v[e];if(void 0===s||y&&function(t,e){let{protectedKeys:i,needsAnimating:n}=t,s=i.hasOwnProperty(e)&&!0!==n[e];return n[e]=!1,s}(y,e))continue;let r={delay:i,...(0,u.r)(m||{},e)},c=n.get();if(void 0!==c&&!n.isAnimating&&!Array.isArray(s)&&s===c&&!r.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){let i=(0,o.P)(t);if(i){let t=window.MotionHandoffAnimation(i,e,h.Gt);null!==t&&(r.startTime=t,p=!0)}}(0,a.g)(t,e),n.start((0,l.f)(e,n,s,t.shouldReduceMotion&&d.$.has(e)?{type:!1}:r,t,p));let f=n.animation;f&&g.push(f)}return f&&Promise.all(g).then(()=>{h.Gt.update(()=>{f&&function(t,e){let{transitionEnd:i={},transition:a={},...o}=(0,s.K)(t,e)||{};for(let e in o={...o,...i}){var l;let i=(l=o[e],(0,n.p)(l)?l[l.length-1]||0:l);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,r.OQ)(i))}}(t,f)})}),g}},92017:(t,e,i)=>{i.d(e,{l:()=>n});let n=t=>t},92688:(t,e,i)=>{i.d(e,{x:()=>r});var n=i(98053),s=i(44432);function r(t,e,i){let{style:r}=t,a={};for(let l in r){var o;((0,s.S)(r[l])||e.style&&(0,s.S)(e.style[l])||(0,n.z)(l,t)||(null==i||null==(o=i.getValue(l))?void 0:o.liveStyle)!==void 0)&&(a[l]=r[l])}return a}},92787:(t,e,i)=>{i.d(e,{f:()=>ty});let n=t=>null!==t;var s=i(23912);let r={type:"spring",stiffness:500,damping:25,restSpeed:10},a=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),o={type:"keyframes",duration:.8},l={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},u=(t,e)=>{let{keyframes:i}=e;return i.length>2?o:s.f.has(t)?t.startsWith("scale")?a(i[1]):r:l};var h=i(19711),d=i(2933),c=i(72417),p=i(50229),m=i(47651),f=i(48394),v=i(44785);let g=t=>{let e=e=>{let{timestamp:i}=e;return t(i)};return{start:function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return p.Gt.update(e,t)},stop:()=>(0,p.WG)(e),now:()=>p.uv.isProcessing?p.uv.timestamp:m.k.now()}};var y=i(53257),x=i(18471);function T(t){let e,i,{keyframes:n,velocity:s=0,power:r=.8,timeConstant:a=325,bounceDamping:o=10,bounceStiffness:l=500,modifyTarget:u,min:h,max:d,restDelta:c=.5,restSpeed:p}=t,m=n[0],f={done:!1,value:m},v=t=>void 0!==h&&t<h||void 0!==d&&t>d,g=t=>void 0===h?d:void 0===d||Math.abs(h-t)<Math.abs(d-t)?h:d,T=r*s,w=m+T,P=void 0===u?w:u(w);P!==w&&(T=P-m);let b=t=>-T*Math.exp(-t/a),S=t=>P+b(t),A=t=>{let e=b(t),i=S(t);f.done=Math.abs(e)<=c,f.value=f.done?P:i},V=t=>{v(f.value)&&(e=t,i=(0,y.o)({keyframes:[f.value,g(f.value)],velocity:(0,x.Y)(S,t,f.value),damping:o,stiffness:l,restDelta:c,restSpeed:p}))};return V(0),{calculatedDuration:null,next:t=>{let n=!1;return(i||void 0!==e||(n=!0,A(t),V(t)),void 0!==e&&t>=e)?i.next(t-e):(n||A(t),f)}}}var w=i(54265),P=i(81697),b=i(92017);let S=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function A(t,e,i,n){if(t===e&&i===n)return b.l;let s=e=>(function(t,e,i,n,s){let r,a,o=0;do(r=S(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++o<12);return a})(e,0,1,t,i);return t=>0===t||1===t?t:S(s(t),e,n)}let V=A(.42,0,1,1),M=A(0,0,.58,1),k=A(.42,0,.58,1);var E=i(16891),D=i(50956),C=i(93751),R=i(89746);let j=A(.33,1.53,.69,.99),L=(0,R.G)(j),F=(0,C.V)(L),B=t=>(t*=2)<1?.5*L(t):.5*(2-Math.pow(2,-10*(t-1)));var O=i(12594);let U=t=>Array.isArray(t)&&"number"==typeof t[0],I={linear:b.l,easeIn:V,easeInOut:k,easeOut:M,circIn:O.po,circInOut:O.tn,circOut:O.yT,backIn:L,backInOut:F,backOut:j,anticipate:B},W=t=>"string"==typeof t,N=t=>{if(U(t)){(0,D.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,s]=t;return A(e,i,n,s)}return W(t)?((0,D.V)(void 0!==I[t],"Invalid easing type '".concat(t,"'")),I[t]):t};function q(t){var e;let{duration:i=300,keyframes:n,times:s,ease:r="easeInOut"}=t,a=(0,E.h)(r)?r.map(N):N(r),o={done:!1,value:n[0]},l=(e=s&&s.length===n.length?s:(0,P.Z)(n),e.map(t=>t*i)),u=(0,w.G)(l,n,{ease:Array.isArray(a)?a:n.map(()=>a||k).splice(0,n.length-1)});return{calculatedDuration:i,next:t=>(o.value=u(t),o.done=t>=i,o)}}var G=i(70676);let X=t=>null!==t;
1function H(t,e,i){let{repeat:n,repeatType:s="loop"}=e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=t.filter(X),o=r<0||n&&"loop"!==s&&n%2==1?0:a.length-1;return o&&void 0!==i?i:a[o]}let K={decay:T,inertia:T,tween:q,keyframes:q,spring:y.o};function Y(t){"string"==typeof t.type&&(t.type=K[t.type])}class z{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)}constructor(){this.updateFinished()}}var Q=i(48025),$=i(20528);let _=t=>t/100;class Z extends z{initAnimation(){let{options:t}=this;Y(t);let{type:e=q,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:a}=t,o=e||q;o!==q&&"number"!=typeof a[0]&&(this.mixKeyframes=(0,Q.F)(_,(0,v.j)(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===s&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=(0,G.t)(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{generator:i,totalDuration:n,mixKeyframes:s,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:c,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>n;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let y=this.currentTime,x=i;if(h){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,h+1))%2&&("reverse"===d?(i=1-i,c&&(i-=c/a)):"mirror"===d&&(x=r)),y=(0,$.q)(0,1,i)*a}let w=g?{done:!1,value:u[0]}:x.next(y);s&&(w.value=s(w.value));let{done:P}=w;g||null===o||(P=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return b&&p!==T&&(w.value=H(u,this.options,f,this.speed)),m&&m(w.value),b&&this.finish(),w}then(t,e){return this.finished.then(t,e)}get duration(){return(0,d.X)(this.calculatedDuration)}get time(){return(0,d.X)(this.currentTime)}set time(t){var e;t=(0,d.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),null==(e=this.driver)||e.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(m.k.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,d.X)(this.currentTime))}play(){var t,e;if(this.isStopped)return;let{driver:i=g,startTime:n}=this.options;this.driver||(this.driver=i(t=>this.tick(t))),null==(t=(e=this.options).onPlay)||t.call(e);let s=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=s):null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime||(this.startTime=null!=n?n:s),"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(m.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,e;this.notifyFinished(),this.teardown(),this.state="finished",null==(t=(e=this.options).onComplete)||t.call(e)}cancel(){var t,e;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(t=(e=this.options).onCancel)||t.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,f.q.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(e=this.driver)||e.stop(),t.observe(this)}constructor(t){var e;super(),e=this,this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=function(){var t,i;let n=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(n){let{motionValue:t}=e.options;t&&t.updatedAt!==m.k.now()&&e.tick(m.k.now())}e.isStopped=!0,"idle"!==e.state&&(e.teardown(),null==(t=(i=e.options).onStop)||t.call(i))},f.q.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}}var J=i(69796);let tt=t=>t.startsWith("--");function te(t){let e;return()=>(void 0===e&&(e=t()),e)}let ti=te(()=>void 0!==window.ScrollTimeline);var tn=i(71510);let ts={},tr=function(t,e){let i=te(t);return()=>{var t;
1return null!=(t=ts[e])?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var ta=i(53059);let to=t=>{let[e,i,n,s]=t;return"cubic-bezier(".concat(e,", ").concat(i,", ").concat(n,", ").concat(s,")")},tl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:to([0,.65,.55,1]),circOut:to([.55,0,1,.45]),backIn:to([.31,.01,.66,-.59]),backOut:to([.33,1.53,.69,.99])};var tu=i(88850);class th extends z{play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,e;null==(t=(e=this.animation).finish)||t.call(e)}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(){if(!this.isPseudoElement){var t,e;null==(t=(e=this.animation).commitStyles)||t.call(e)}}get duration(){var t,e;let i=(null==(e=this.animation.effect)||null==(t=e.getComputedTiming)?void 0:t.call(e).duration)||0;return(0,d.X)(Number(i))}get time(){return(0,d.X)(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=(0,d.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(t){let{timeline:e,observe:i}=t;if(this.allowFlatten){var n;null==(n=this.animation.effect)||n.updateTiming({easing:"linear"})}return(this.animation.onfinish=null,e&&ti())?(this.animation.timeline=e,b.l):i(this)}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,D.V)("string"!=typeof t.type,'animateMini doesn\'t support "type" as a string. Did you mean to import { spring } from "motion"?');let l=function(t){var e,i;let{type:n,...s}=t;return(0,tu.W)(n)&&tr()?n.applyToOptions(s):(null!=s.duration||(s.duration=300),null!=s.ease||(s.ease="easeOut"),s)}(t);this.animation=function(t,e,i){let{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,h={[e]:i};l&&(h.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?tr()?(0,ta.K)(e,i):"ease-out":U(e)?to(e):Array.isArray(e)?e.map(e=>t(e,i)||tl.easeOut):tl[e]}(o,s);Array.isArray(d)&&(h.easing=d),tn.Q.value&&f.q.waapi++;let c={delay:n,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};u&&(c.pseudoElement=u);let p=t.animate(h,c);return tn.Q.value&&p.finished.finally(()=>{f.q.waapi--}),p}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=H(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,i){tt(e)?t.style.setProperty(e,i):t.style[e]=i}(e,i,t),this.animation.cancel()}null==o||o(),this.notifyFinished()}}}let td={anticipate:B,backInOut:F,circInOut:O.tn};class tc extends th{updateMotionValue(t){var e;let{motionValue:i,onUpdate:n,onComplete:s,element:r,...a}=this.options;if(!i)return;if(void 0!==t)return void i.set(t);let o=new Z({...a,autoplay:!1}),l=(0,d.f)(null!=(e=this.finishedTime)?e:this.time);i.setWithVelocity(o.sample(l-10).value,o.sample(l).value,10),o.stop()}constructor(t){!function(t){"string"==typeof t.ease&&t.ease in td&&(t.ease=td[t.ease])}(t),Y(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}}var tp=i(6402);let tm=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tp.f.test(t)||"0"===t)&&!t.startsWith("url(")),tf=new Set(["opacity","clipPath","filter","transform"]),tv=te(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tg extends z{onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:s,type:r,velocity:a,delay:o,isHandoff:l,onUpdate:u}=i;
1this.resolvedAt=m.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=tm(s,e),o=tm(r,e);return(0,D.$)(a===o,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(r,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(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,tu.W)(i))&&n)}(t,s,r,a)&&((c.W.instantAnimations||!o)&&(null==u||u(H(t,i,e))),t[0]=t[t.length-1],i.duration=0,i.repeat=0);let h={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},d=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:a}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return tv()&&i&&tf.has(i)&&("transform"!==i||!l)&&!o&&!n&&"mirror"!==s&&0!==r&&"inertia"!==a}(h)?new tc({...h,element:h.motionValue.owner.current}):new Z(h);d.finished.then(()=>this.notifyFinished()).catch(b.l),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){if(!this._animation){var t;null==(t=this.keyframeResolver)||t.resume(),(0,J.q)()}return 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(){var t;this._animation&&this.animation.cancel(),null==(t=this.keyframeResolver)||t.cancel()}constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){var d;super(),this.stop=()=>{var t,e;this._animation&&(this._animation.stop(),null==(e=this.stopTimeline)||e.call(this)),null==(t=this.keyframeResolver)||t.cancel()},this.createdAt=m.k.now();let c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:o,motionValue:l,element:u,...h},p=(null==u?void 0:u.KeyframeResolver)||J.h;this.keyframeResolver=new p(a,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),o,l,u),null==(d=this.keyframeResolver)||d.scheduleResolve()}}let ty=function(t,e,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;return o=>{let l=(0,h.r)(s,t)||{},m=l.delay||s.delay||0,{elapsed:f=0}=s;f-=(0,d.f)(m);let v={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-f,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:a?void 0:r};!function(t){let{when:e,delay:i,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:a,repeatType:o,repeatDelay:l,from:u,elapsed:h,...d}=t;return!!Object.keys(d).length}(l)&&Object.assign(v,u(t,v)),v.duration&&(v.duration=(0,d.f)(v.duration)),v.repeatDelay&&(v.repeatDelay=(0,d.f)(v.repeatDelay)),void 0!==v.from&&(v.keyframes[0]=v.from);let g=!1;if(!1!==v.type&&(0!==v.duration||v.repeatDelay)||(v.duration=0,0===v.delay&&(g=!0)),(c.W.instantAnimations||c.W.skipAnimations)&&(g=!0,v.duration=0,v.delay=0),v.allowFlatten=!l.type&&!l.ease,g&&!a&&void 0!==e.get()){let t=function(t,e,i){let{repeat:s,repeatType:r="loop"}=e,a=t.filter(n),o=s&&"loop"!==r&&s%2==1?0:a.length-1;return a[o]}(v.keyframes,l);if(void 0!==t)return void p.Gt.update(()=>{v.onUpdate(t),v.onComplete()})}return l.isSync?new Z(v):new tg(v)}}},93597:(t,e,i)=>{i.d(e,{T:()=>a,n:()=>o});var n=i(43261),s=i(62960),r=i(46e3);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))},93751:(t,e,i)=>{i.d(e,{V:()=>n});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2}
1,93767:(t,e,i)=>{i.d(e,{J:()=>a});var n=i(6402),s=i(63225),r=i(16344);function a(t,e){let i=(0,r.D)(t);return i!==s.p&&(i=n.f),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},94117:(t,e,i)=>{i.d(e,{K:()=>s});var n=i(45601);function s(t,e,i){let s=t.getProps();return(0,n.a)(s,e,void 0!==i?i:s.custom,t)}},94180:(t,e,i)=>{function n(t){return void 0===t||1===t}function s(t){let{scale:e,scaleX:i,scaleY:s}=t;return!n(e)||!n(i)||!n(s)}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})},96953:(t,e,i)=>{i.d(e,{C:()=>n});let n=new WeakMap},98053:(t,e,i)=>{i.d(e,{z:()=>r});var n=i(91151),s=i(23912);function r(t,e){let{layout:i,layoutId:r}=e;return s.f.has(t)||t.startsWith("origin")||(i||void 0!==r)&&(!!n.H[t]||"opacity"===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.