1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,229859,t=>{"use strict";let e=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set(e);t.s(["transformPropOrder",()=>e,"transformProps",()=>i])},238740,t=>{"use strict";let e=t=>180*t/Math.PI,i=t=>n(e(Math.atan2(t[1],t[0]))),s={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:i,rotateZ:i,skewX:t=>e(Math.atan(t[1])),skewY:t=>e(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},n=t=>((t%=360)<0&&(t+=360),t),r=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),a=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),o={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:r,scaleY:a,scale:t=>(r(t)+a(t))/2,rotateX:t=>n(e(Math.atan2(t[6],t[5]))),rotateY:t=>n(e(Math.atan2(-t[2],t[0]))),rotateZ:i,rotate:i,skewX:t=>e(Math.atan(t[4])),skewY:t=>e(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function l(t){return+!!t.includes("scale")}function u(t,e){let i,n;if(!t||"none"===t)return l(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=o,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=s,n=e}if(!n)return l(e);let a=i[e],u=n[1].split(",").map(c);return"function"==typeof a?a(u):u[a]}let h=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return u(i,e)};function c(t){return parseFloat(t.trim())}t.s(["defaultTransformValue",()=>l,"parseValueFromTransform",()=>u,"readTransformValue",()=>h])},242210,t=>{"use strict";let e=t=>e=>"string"==typeof e&&e.startsWith(t),i=e("--"),s=e("var(--"),n=t=>!!s(t)&&r.test(t.split("/*")[0].trim()),r=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;t.s(["isCSSVariableName",()=>i,"isCSSVariableToken",()=>n])},716519,793483,647480,286186,687321,444948,23212,t=>{"use strict";function e({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function i({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}t.s(["convertBoundingBoxToBox",()=>e,"convertBoxToBoundingBox",()=>i,"transformBoxPoints",()=>s],793483);let n=(t,e,i)=>t+(e-t)*i;function r(t){return void 0===t||1===t}function a({scale:t,scaleX:e,scaleY:i}){return!r(t)||!r(e)||!r(i)}function o(t){return a(t)||l(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function l(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function u(t,e,i){return i+e*(t-i)}function h(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}function c(t,e=0,i=1,s,n){t.min=h(t.min,e,i,s,n),t.max=h(t.max,e,i,s,n)}function d(t,{x:e,y:i}){c(t.x,e.translate,e.scale,e.originPoint),c(t.y,i.translate,i.scale,i.originPoint)}function p(t,e,i,s=!1){let n,r,a=i.length;if(a){e.x=e.y=1;for(let l=0;l<a;l++){r=(n=i[l]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&g(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,d(t,r)),s&&o(n.latestValues)&&g(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function m(t,e){t.min=t.min+e,t.max=t.max+e}function f(t,e,i,s,r=.5){let a=n(t.min,t.max,r);c(t,e,i,a,s)}function g(t,e){f(t.x,e.x,e.scaleX,e.scale,e.originX),f(t.y,e.y,e.scaleY,e.scale,e.originY)}function v(t,i){return e(s(t.getBoundingClientRect(),i))}function y(t,e,i){let s=v(t,i),{scroll:n}=e;return n&&(m(s.x,n.offset.x),m(s.y,n.offset.y)),s}t.s(["mixNumber",()=>n],647480),t.s(["has2DTranslate",()=>l,"hasScale",()=>a,"hasTransform",()=>o],286186),t.s(["applyBoxDelta",()=>d,"applyTreeDeltas",()=>p,"scalePoint",()=>u,"transformBox",()=>g,"translateAxis",()=>m],687321),t.s(["measurePageBox",()=>y,"measureViewportBox",()=>v],716519);let x=new Set(["width","height","top","left","right","bottom",...t.i(229859).transformPropOrder]);t.s(["positionalKeys",()=>x],444948);let T={test:t=>"auto"===t,parse:t=>t};t.s(["auto",()=>T],23212)},960851,483032,t=>{"use strict";let e=(t,e,i)=>i>e?e:i<t?t:i;t.s(["clamp",()=>e],483032);let i={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...i,transform:t=>e(0,1,t)},n={...i,default:1};t.s(["alpha",()=>s,"number",()=>i,"scale",()=>n],960851)},21365,t=>{"use strict";let e=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),i=e("deg"),s=e("%"),n=e("px"),r=e("vh"),a=e("vw"),o={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)};t.s(["degrees",()=>i,"percent",()=>s,"progressPercentage",()=>o,"px",()=>n,"vh",()=>r,"vw",()=>a])},896091,960125,t=>{"use strict";var e=t.i(23212),i=t.i(960851),s=t.i(21365);let n=t=>e=>e.test(t);t.s(["testValueType",()=>n],960125);let r=[i.number,s.px,s.percent,s.degrees,s.vw,s.vh,e.auto],a=t=>r.find(n(t));t.s(["dimensionValueTypes",()=>r,"findDimensionValueType",()=>a],896091)},348367,t=>{"use strict";let e=()=>{},i=()=>{};t.s(["invariant",()=>i,"warning",()=>e])},110332,811855,400857,175602,954912,680124,817967,347248,883582,440919,395256,267754,201221,192573,168826,377149,117429,t=>{"use strict";var e=t.i(348367);let i=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);t.s(["isNumericalString",()=>i],811855);var s=t.i(242210);let n=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;t.s(["getVariableValue",()=>function t(r,a,o=1){(0,e.invariant)(o<=4,`Max CSS variable fallback depth detected in property "${r}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[l,u]=function(t){let e=n.exec(t);if(!e)return[,];let[,i,s,r]=e;return[`--${i??s}`,r]}(r);if(!l)return;let h=window.getComputedStyle(a).getPropertyValue(l);if(h){let t=h.trim();return i(t)?parseFloat(t):t}return(0,s.isCSSVariableToken)(u)?t(u,a,o+1):u}],110332);var r=t.i(238740),a=t.i(229859),o=t.i(960851),l=t.i(21365);let u=t=>t===o.number||t===l.px,h=new Set(["x","y","z"]),c=a.transformPropOrder.filter(t=>!h.has(t));function d(t){let e=[];
1return c.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e}let p={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>(0,r.parseValueFromTransform)(e,"x"),y:(t,{transform:e})=>(0,r.parseValueFromTransform)(e,"y")};p.translateX=p.x,p.translateY=p.y,t.s(["isNumOrPxType",()=>u,"positionalValues",()=>p,"removeNonTranslationalTransform",()=>d],400857);let m=t=>t;t.s(["noop",()=>m],175602);let f={};t.s(["MotionGlobalConfig",()=>f],954912);let g=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],v={value:null,addProjectionMetrics:null};function y(t,e){let i=!1,s=!0,n={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=g.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,s=new Set,n=!1,r=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){a.has(e)&&(h.schedule(e),t()),l++,e(o)}let h={schedule:(t,e=!1,r=!1)=>{let o=r&&n?i:s;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{s.delete(t),a.delete(t)},process:t=>{if(o=t,n){r=!0;return}n=!0,[i,s]=[s,i],i.forEach(u),e&&v.value&&v.value.frameloop[e].push(l),l=0,i.clear(),n=!1,r&&(r=!1,h.process(t))}};return h}(r,e?i:void 0),t),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:p,postRender:m}=a,y=()=>{let r=f.useManualTiming?n.timestamp:performance.now();i=!1,f.useManualTiming||(n.delta=s?1e3/60:Math.max(Math.min(r-n.timestamp,40),1)),n.timestamp=r,n.isProcessing=!0,o.process(n),l.process(n),u.process(n),h.process(n),c.process(n),d.process(n),p.process(n),m.process(n),n.isProcessing=!1,i&&e&&(s=!1,t(y))};return{schedule:g.reduce((e,r)=>{let o=a[r];return e[r]=(e,r=!1,a=!1)=>(!i&&(i=!0,s=!0,n.isProcessing||t(y)),o.schedule(e,r,a)),e},{}),cancel:t=>{for(let e=0;e<g.length;e++)a[g[e]].cancel(t)},state:n,steps:a}}t.s(["statsBuffer",()=>v],680124),t.s(["createRenderBatcher",()=>y],817967);let{schedule:x,cancel:T,state:b,steps:P}=y("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:m,!0);t.s(["cancelFrame",()=>T,"frame",()=>x,"frameData",()=>b,"frameSteps",()=>P],347248);let V=new Set,S=!1,w=!1,M=!1;function A(){if(w){let t=Array.from(V).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=d(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}w=!1,S=!1,V.forEach(t=>t.complete(M)),V.clear()}function C(){V.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(w=!0)})}function D(){M=!0,C(),A(),M=!1}class E{constructor(t,e,i,s,n,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(V.add(this),S||(S=!0,x.read(C),x.resolveKeyframes(A))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;if(null===t[0]){let n=s?.get(),r=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let s=i.readValue(e,r);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=r),s&&void 0===n&&s.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),V.delete(this)}cancel(){"scheduled"===this.state&&(V.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}t.s(["KeyframeResolver",()=>E,"flushKeyframeResolvers",()=>D],883582);let R=t=>/^0[^.\s]+$/u.test(t);function k(t){return"number"==typeof t?0===t:null===t||"none"===t||"0"===t||R(t)}t.s(["isZeroValueString",()=>R],440919),t.s(["isNone",()=>
1k],395256);var L=t.i(483032);let B=t=>Math.round(1e5*t)/1e5,F=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,j=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,O=(t,e)=>i=>!!("string"==typeof i&&j.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),I=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[n,r,a,o]=s.match(F);return{[t]:parseFloat(n),[e]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},N={...o.number,transform:t=>Math.round((0,L.clamp)(0,255,t))},U={test:O("rgb","red"),parse:I("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+N.transform(t)+", "+N.transform(e)+", "+N.transform(i)+", "+B(o.alpha.transform(s))+")"};t.s(["rgba",()=>U],267754);let G={test:O("#"),parse:function(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}},transform:U.transform};t.s(["hex",()=>G],201221);let $={test:O("hsl","hue"),parse:I("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+l.percent.transform(B(e))+", "+l.percent.transform(B(i))+", "+B(o.alpha.transform(s))+")"};t.s(["hsla",()=>$],192573);let H={test:t=>U.test(t)||G.test(t)||$.test(t),parse:t=>U.test(t)?U.parse(t):$.test(t)?$.parse(t):G.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?U.transform(t):$.transform(t),getAnimatableNone:t=>{let e=H.parse(t);return e.alpha=0,H.transform(e)}};t.s(["color",()=>H],168826);let W=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,z="number",K="color",Y=/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 X(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,a=e.replace(Y,t=>(H.test(t)?(s.color.push(r),n.push(K),i.push(H.parse(t))):t.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(t)):(s.number.push(r),n.push(z),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:a,indexes:s,types:n}}function q(t){return X(t).values}function Z(t){let{split:e,types:i}=X(t),s=e.length;return t=>{let n="";for(let r=0;r<s;r++)if(n+=e[r],void 0!==t[r]){let e=i[r];e===z?n+=B(t[r]):e===K?n+=H.transform(t[r]):n+=t[r]}return n}}let _=t=>"number"==typeof t?0:H.test(t)?H.getAnimatableNone(t):t,J={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(F)?.length||0)+(t.match(W)?.length||0)>0},parse:q,createTransformer:Z,getAnimatableNone:function(t){let e=q(t);return Z(t)(e.map(_))}};t.s(["analyseComplexValue",()=>X,"complex",()=>J],377149);let Q=new Set(["brightness","contrast","saturate","opacity"]);function tt(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(F)||[];if(!s)return t;let n=i.replace(s,""),r=+!!Q.has(e);return s!==i&&(r*=100),e+"("+r+n+")"}let te=/\b([a-z-]*)\(.*?\)/gu,ti={...J,getAnimatableNone:t=>{let e=t.match(te);return e?e.map(tt).join(" "):t}};t.s(["filter",()=>ti],117429)},785855,t=>{"use strict";let e={...t.i(960851).number,transform:Math.round};t.s(["int",()=>e])},124424,t=>{"use strict";var e=t.i(785855),i=t.i(960851),s=t.i(21365);let n={rotate:s.degrees,rotateX:s.degrees,rotateY:s.degrees,rotateZ:s.degrees,scale:i.scale,scaleX:i.scale,scaleY:i.scale,scaleZ:i.scale,skew:s.degrees,skewX:s.degrees,skewY:s.degrees,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:i.alpha,originX:s.progressPercentage,originY:s.progressPercentage,originZ:s.px},r={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,radius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,backgroundPositionX:s.px,backgroundPositionY:s.px,...n,zIndex:e.int,fillOpacity:i.alpha,strokeOpacity:i.alpha,numOctaves:e.int};t.s(["numberValueTypes",()=>r],124424)},636056,210973,920885,t=>{"use strict";var e=t.i(444948),i=t.i(896091),s=t.i(110332),n=t.i(242210),r=t.i(883582),a=t.i(395256),o=t.i(377149),l=t.i(117429),u=t.i(168826);let h={...t.i(124424).numberValueTypes,color:u.color,backgroundColor:u.color,outlineColor:u.color,fill:u.color,stroke:u.color,borderColor:u.color,borderTopColor:u.color,borderRightColor:u.color,borderBottomColor:u.color,borderLeftColor:u.color,filter:l.filter,WebkitFilter:l.filter},c=t=>h[t];function d(t,e){let i=c(t);return i!==l.filter&&(i=o.complex),i.getAnimatableNone?i.getAnimatableNone(e):void 0}t.s(["getDefaultValueType",()=>c],210973),t.s(["getAnimatableNone",()=>d],920885);
1let p=new Set(["auto","none","0"]);var m=t.i(400857);class f extends r.KeyframeResolver{constructor(t,e,i,s,n){super(t,e,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:r,name:a}=this;if(!r||!r.current)return;super.readKeyframes();for(let e=0;e<t.length;e++){let i=t[e];if("string"==typeof i&&(i=i.trim(),(0,n.isCSSVariableToken)(i))){let n=(0,s.getVariableValue)(i,r.current);void 0!==n&&(t[e]=n),e===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!e.positionalKeys.has(a)||2!==t.length)return;let[o,l]=t,u=(0,i.findDimensionValueType)(o),h=(0,i.findDimensionValueType)(l);if(u!==h)if((0,m.isNumOrPxType)(u)&&(0,m.isNumOrPxType)(h))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else m.positionalValues[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||(0,a.isNone)(t[e]))&&i.push(e);i.length&&function(t,e,i){let s,n=0;for(;n<t.length&&!s;){let e=t[n];"string"==typeof e&&!p.has(e)&&(0,o.analyseComplexValue)(e).values.length&&(s=t[n]),n++}if(s&&i)for(let n of e)t[n]=d(i,s)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=m.positionalValues[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(e);s&&s.jump(this.measuredOrigin,!1);let n=i.length-1,r=i[n];i[n]=m.positionalValues[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}t.s(["DOMKeyframesResolver",()=>f],636056)},538305,t=>{"use strict";let e=t=>!!(t&&t.getVelocity);t.s(["isMotionValue",()=>e])},924140,133639,470180,795153,134026,946974,984776,t=>{"use strict";let e;var i=t.i(954912),s=t.i(347248);function n(){e=void 0}let r={now:()=>(void 0===e&&r.set(s.frameData.isProcessing||i.MotionGlobalConfig.useManualTiming?s.frameData.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(n)}};function a(t,e){-1===t.indexOf(e)&&t.push(e)}function o(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function l([...t],e,i){let s=e<0?t.length+e:e;if(s>=0&&s<t.length){let s=i<0?t.length+i:i,[n]=t.splice(e,1);t.splice(s,0,n)}return t}t.s(["time",()=>r],924140),t.i(680909),t.s(["addUniqueItem",()=>a,"moveItem",()=>l,"removeItem",()=>o],133639);class u{constructor(){this.subscriptions=[]}add(t){return a(this.subscriptions,t),()=>o(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let n=0;n<s;n++){let s=this.subscriptions[n];s&&s(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function h(t,e){return e?1e3/e*t:0}t.s(["SubscriptionManager",()=>u],470180),t.s(["velocityPerSecond",()=>h],795153);let c={current:void 0};class d{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=r.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=r.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new u);let i=this.events[t].add(e);return"change"===t?()=>{i(),s.frame.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return c.current&&c.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=r.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return h(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function p(t,e){return new d(t,e)}t.s(["collectMotionValues",()=>c,"motionValue",()=>p],134026);var m=t.i(168826),f=t.i(377149),g=t.i(896091),v=t.i(960125);let y=[...g.dimensionValueTypes,m.color,f.complex],x=t=>y.find((0,v.testValueType)(t));t.s(["findValueType",()=>x],946974);let{schedule:T}=(0,t.i(817967).createRenderBatcher)(queueMicrotask,!1);t.s(["microtask",()=>T],984776)},493117,t=>{"use strict";let e={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"]},i={};for(let t in e)i[t]={isEnabled:i=>e[t].some(t=>!!i[t])};t.s(["featureDefinitions",()=>i])},69015,t=>{"use strict";let e=()=>({translate:0,scale:1,origin:0,originPoint:0}),i=()=>({x:e(),y:e()}),s=()=>({min:0,max:0}),n=()=>({x:s(),y:s()});t.s(["createBox",()=>n,"createDelta",()=>i])},967777,t=>{"use strict";let e="undefined"!=typeof window;t.s(["isBrowser",()=>e])},440920,759331,157361,t=>{"use strict";var e=t.i(967777);let i={current:null},s={current:!1};function n(){if(s.current=!0,e.isBrowser)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>i.current=t.matches;t.addEventListener("change",e),e()}else i.current=!1}t.s(["hasReducedMotionListener",()=>s,"prefersReducedMotion",()=>i],759331),t.s(["initPrefersReducedMotion",()=>n],440920);let r=new WeakMap;t.s(["visualElementStore",()=>r],157361)},139743,419606,991767,561649,t=>{"use strict";function e(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function i(t){return"string"==typeof t||Array.isArray(t)}t.s(["isAnimationControls",()=>e],419606),t.s(["isVariantLabel",()=>i],991767);let s=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],n=["initial",...s];function r(t){return e(t.animate)||n.some(e=>i(t[e]))}function a(t){return!!(r(t)||t.variants)}t.s(["variantPriorityOrder",()=>s,"variantProps",()=>n],561649),t.s(["isControllingVariants",()=>r,"isVariantNode",()=>a],139743)},688856,t=>{"use strict";var e=t.i(538305),i=t.i(134026);
1function s(t,s,n){for(let r in s){let a=s[r],o=n[r];if((0,e.isMotionValue)(a))t.addValue(r,a);else if((0,e.isMotionValue)(o))t.addValue(r,(0,i.motionValue)(a,{owner:t}));else if(o!==a)if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(a):e.hasAnimated||e.set(a)}else{let e=t.getStaticValue(r);t.addValue(r,(0,i.motionValue)(void 0!==e?e:a,{owner:t}))}}for(let e in n)void 0===s[e]&&t.removeValue(e);return s}t.s(["updateMotionValuesFromProps",()=>s])},597285,t=>{"use strict";function e(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function i(t,i,s,n){if("function"==typeof i){let[r,a]=e(n);i=i(void 0!==s?s:t.custom,r,a)}if("string"==typeof i&&(i=t.variants&&t.variants[i]),"function"==typeof i){let[r,a]=e(n);i=i(void 0!==s?s:t.custom,r,a)}return i}t.s(["resolveVariantFromProps",()=>i])},714409,104600,t=>{"use strict";var e=t.i(636056),i=t.i(538305);t.i(680909);var s=t.i(883582),n=t.i(924140),r=t.i(347248),a=t.i(229859),o=t.i(134026),l=t.i(946974),u=t.i(377149),h=t.i(920885),c=t.i(984776),d=t.i(811855),p=t.i(440919),m=t.i(470180),f=t.i(493117),g=t.i(69015),v=t.i(440920),y=t.i(759331),x=t.i(157361),T=t.i(139743),b=t.i(688856),P=t.i(597285);let V=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class S{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:a,reducedMotionConfig:o,blockInitialAnimation:l,visualState:u},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=s.KeyframeResolver,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=n.time.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,r.frame.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=u;this.latestValues=c,this.baseTarget={...c},this.initialValues=e.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=e,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=h,this.blockInitialAnimation=!!l,this.isControllingVariants=(0,T.isControllingVariants)(e),this.isVariantNode=(0,T.isVariantNode)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...m}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in m){const e=m[t];void 0!==c[t]&&(0,i.isMotionValue)(e)&&e.set(c[t])}}mount(t){this.current=t,x.visualElementStore.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)),y.hasReducedMotionListener.current||(0,v.initPrefersReducedMotion)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||y.prefersReducedMotion.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,r.cancelFrame)(this.notifyUpdate),(0,r.cancelFrame)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let s=a.transformProps.has(t);s&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&r.frame.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),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 f.featureDefinitions){let e=f.featureDefinitions[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,g.createBox)()}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 s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=(0,b.updateMotionValuesFromProps)(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,o.motionValue)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let s=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=s&&("string"==typeof s&&((0,d.isNumericalString)(s)||(0,p.isZeroValueString)(s))?s=parseFloat(s):!(0,l.findValueType)(s)&&u.complex.test(e)&&(s=(0,h.getAnimatableNone)(t,e)),this.setBaseTarget(t,(0,i.isMotionValue)(s)?s.get():s)),(0,i.isMotionValue)(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:s}=this.props;if("string"==typeof s||"object"==typeof s){let i=(0,P.resolveVariantFromProps)(this.props,s,this.presenceContext?.custom);i&&(e=i[t])}if(s&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,i.isMotionValue)(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new m.SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){c.microtask.render(this.render)}}t.s(["VisualElement",()=>S],104600);class w extends S{constructor(){super(...arguments),this.KeyframeResolver=e.DOMKeyframesResolver}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,i.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}t.s(["DOMVisualElement",()=>w],714409)},709584,t=>{"use strict";let e=(t,e)=>e&&"number"==typeof t?e.transform(t):t;t.s(["getValueAsType",()=>e])},850290,t=>{"use strict";var e=t.i(229859),i=t.i(242210),s=t.i(709584),n=t.i(124424);let r={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},a=e.transformPropOrder.length;function o(t,o,l){let{style:u,vars:h,transformOrigin:c}=t,d=!1,p=!1;for(let t in o){let r=o[t];if(e.transformProps.has(t)){d=!0;continue}if((0,i.isCSSVariableName)(t)){h[t]=r;continue}{let e=(0,s.getValueAsType)(r,n.numberValueTypes[t]);t.startsWith("origin")?(p=!0,c[t]=e):u[t]=e}}if(!o.transform&&(d||l?u.transform=function(t,i,o){let l="",u=!0;for(let h=0;h<a;h++){let a=e.transformPropOrder[h],c=t[a];if(void 0===c)continue;let d=!0;if(!(d="number"==typeof c?c===+!!a.startsWith("scale"):0===parseFloat(c))||o){let t=(0,s.getValueAsType)(c,n.numberValueTypes[a]);if(!d){u=!1;let e=r[a]||a;l+=`${e}(${t}) `}o&&(i[a]=t)}}return l=l.trim(),o?l=o(i,u?"":l):u&&(l="none"),l}(o,t.transform,l):u.transform&&(u.transform="none")),p){let{originX:t="50%",originY:e="50%",originZ:i=0}=c;u.transformOrigin=`${t} ${e} ${i}`}}t.s(["buildHTMLStyles",()=>o],850290)},694052,t=>{"use strict";function e(t,{style:e,vars:i},s,n){let r,a=t.style;for(r in e)a[r]=e[r];for(r in n?.applyProjectionStyles(a,s),i)a.setProperty(r,i[r])}t.s(["renderHTML",()=>e])},394464,825547,t=>{"use strict";var e=t.i(229859),i=t.i(242210);let s={};function n(t){for(let e in t)s[e]=t[e],(0,i.isCSSVariableName)(e)&&(s[e].isCSSVariable=!0)}function r(t,{layout:i,layoutId:n}){return e.transformProps.has(t)||t.startsWith("origin")||(i||void 0!==n)&&(!!s[t]||"opacity"===t)}t.s(["addScaleCorrector",()=>n,"scaleCorrectors",()=>s],825547),t.s(["isForcedMotionValue",()=>r],394464)},430971,t=>{"use strict";var e=t.i(538305),i=t.i(394464);
1function s(t,s,n){let{style:r}=t,a={};for(let o in r)((0,e.isMotionValue)(r[o])||s.style&&(0,e.isMotionValue)(s.style[o])||(0,i.isForcedMotionValue)(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(a[o]=r[o]);return a}t.s(["scrapeMotionValuesFromProps",()=>s])},707921,t=>{"use strict";var e=t.i(229859),i=t.i(238740),s=t.i(242210),n=t.i(716519),r=t.i(714409),a=t.i(850290),o=t.i(694052),l=t.i(430971);class u extends r.DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=o.renderHTML}readValueFromInstance(t,n){if(e.transformProps.has(n))return this.projection?.isProjecting?(0,i.defaultTransformValue)(n):(0,i.readTransformValue)(t,n);{let e=window.getComputedStyle(t),i=((0,s.isCSSVariableName)(n)?e.getPropertyValue(n):e[n])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,n.measureViewportBox)(t,e)}build(t,e,i){(0,a.buildHTMLStyles)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,l.scrapeMotionValuesFromProps)(t,e,i)}}t.s(["HTMLVisualElement",()=>u])},279351,t=>{"use strict";let e=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();t.s(["camelToDash",()=>e])},990798,t=>{"use strict";var e=t.i(850290),i=t.i(21365);let s={offset:"stroke-dashoffset",array:"stroke-dasharray"},n={offset:"strokeDashoffset",array:"strokeDasharray"};function r(t,{attrX:r,attrY:a,attrScale:o,pathLength:l,pathSpacing:u=1,pathOffset:h=0,...c},d,p,m){if((0,e.buildHTMLStyles)(t,c,p),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:f,style:g}=t;f.transform&&(g.transform=f.transform,delete f.transform),(g.transform||f.transformOrigin)&&(g.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),g.transform&&(g.transformBox=m?.transformBox??"fill-box",delete f.transformBox),void 0!==r&&(f.x=r),void 0!==a&&(f.y=a),void 0!==o&&(f.scale=o),void 0!==l&&function(t,e,r=1,a=0,o=!0){t.pathLength=1;let l=o?s:n;t[l.offset]=i.px.transform(-a);let u=i.px.transform(e),h=i.px.transform(r);t[l.array]=`${u} ${h}`}(f,l,u,h,!1)}t.s(["buildSVGAttrs",()=>r],990798)},990606,t=>{"use strict";let e=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"]);t.s(["camelCaseAttributes",()=>e])},27508,t=>{"use strict";let e=t=>"string"==typeof t&&"svg"===t.toLowerCase();t.s(["isSVGTag",()=>e])},682921,t=>{"use strict";var e=t.i(279351),i=t.i(694052),s=t.i(990606);function n(t,n,r,a){for(let r in(0,i.renderHTML)(t,n,void 0,a),n.attrs)t.setAttribute(s.camelCaseAttributes.has(r)?r:(0,e.camelToDash)(r),n.attrs[r])}t.s(["renderSVG",()=>n])},312459,t=>{"use strict";var e=t.i(538305),i=t.i(229859),s=t.i(430971);function n(t,n,r){let a=(0,s.scrapeMotionValuesFromProps)(t,n,r);for(let s in t)((0,e.isMotionValue)(t[s])||(0,e.isMotionValue)(n[s]))&&(a[-1!==i.transformPropOrder.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=t[s]);return a}t.s(["scrapeMotionValuesFromProps",()=>n])},15307,t=>{"use strict";var e=t.i(229859),i=t.i(210973),s=t.i(69015),n=t.i(714409),r=t.i(279351),a=t.i(990798),o=t.i(990606),l=t.i(27508),u=t.i(682921),h=t.i(312459);class c extends n.DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=s.createBox}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,s){if(e.transformProps.has(s)){let t=(0,i.getDefaultValueType)(s);return t&&t.default||0}return s=o.camelCaseAttributes.has(s)?s:(0,r.camelToDash)(s),t.getAttribute(s)}scrapeMotionValuesFromProps(t,e,i){return(0,h.scrapeMotionValuesFromProps)(t,e,i)}build(t,e,i){(0,a.buildSVGAttrs)(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){(0,u.renderSVG)(t,e,i,s)}mount(t){this.isSVGTag=(0,l.isSVGTag)(t.tagName),super.mount(t)}}t.s(["SVGVisualElement",()=>c])},301543,t=>{"use strict";let e=["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 i(t){if("string"!=typeof t||t.includes("-"));else if(e.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.s(["isSVGComponent",()=>i],301543)},984496,t=>{"use strict";var e=t.i(809528),i=t.i(707921),s=t.i(15307),n=t.i(301543);let r=(t,r)=>(0,n.isSVGComponent)(t)?new s.SVGVisualElement(r):new i.HTMLVisualElement(r,{allowProjection:t!==e.Fragment});t.s(["createDomVisualElement",()=>r])},753020,t=>{"use strict";let e=(0,t.i(809528).createContext)({});t.s(["LayoutGroupContext",()=>e])},424978,t=>{"use strict";let e=(0,t.i(809528).createContext)({strict:!1});t.s(["LazyContext",()=>e])},561916,t=>{"use strict";let e=(0,t.i(809528).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",()=>e])},878964,t=>{"use strict";let e=(0,t.i(809528).createContext)({});t.s(["MotionContext",()=>e])},636030,t=>{"use strict";var e=t.i(809528),i=t.i(878964),s=t.i(139743),n=t.i(991767);function r(t){let{initial:r,animate:o}=function(t,e){if((0,s.isControllingVariants)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,n.isVariantLabel)(e)?e:void 0,animate:(0,n.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e.useContext)(i.MotionContext));return(0,e.useMemo)(()=>({initial:r,animate:o}),[a(r),a(o)])}function a(t){return Array.isArray(t)?t.join(" "):t}t.s(["useCreateMotionContext",()=>r],636030)},479875,490551,t=>{"use strict";var e=t.i(538305),i=t.i(809528),s=t.i(394464),n=t.i(850290);let r=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function a(t,i,n){for(let r in i)(0,e.isMotionValue)(i[r])||(0,s.isForcedMotionValue)(r,n)||(t[r]=i[r])}function o(t,e){let s,o,l={},u=(s=t.style||{},a(o={},s,t),Object.assign(o,function({transformTemplate:t},e){return(0,i.useMemo)(()=>{let i=r();return(0,n.buildHTMLStyles)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),o);return t.drag&&!1!==t.dragListener&&(l.draggable=!1,u.userSelect=u.WebkitUserSelect=u.WebkitTouchCallout="none",u.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(l.tabIndex=0),l.style=u,l}t.s(["createHtmlRenderState",()=>r],490551),t.s(["copyRawValuesOnly",()=>a,"useHTMLProps",()=>o],479875)},133681,t=>{"use strict";var e=t.i(490551);let i=()=>({...(0,e.createHtmlRenderState)(),attrs:{}});t.s(["createSvgRenderState",()=>i])},583132,247846,t=>{"use strict";var e,i=t.i(809528),s=t.i(479875),n=t.i(990798),r=t.i(133681),a=t.i(27508);function o(t,e,o,l){let u=(0,i.useMemo)(()=>{let i=(0,r.createSvgRenderState)();return(0,n.buildSVGAttrs)(i,e,(0,a.isSVGTag)(l),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};(0,s.copyRawValuesOnly)(e,t.style,t),u.style={...e,...u.style}}return u}t.s(["useSVGProps",()=>o],583132);let l=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 u(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||l.has(t)}let h=t=>!u(t);try{e=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof e&&(h=t=>t.startsWith("on")?!u(t):e(t))}catch{}function c(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(h(n)||!0===i&&u(n)||!e&&!u(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}t.s(["filterProps",()=>c],247846)},348583,t=>{"use strict";var e=t.i(538305),i=t.i(809528),s=t.i(479875),n=t.i(583132),r=t.i(247846),a=t.i(301543);function o(t,l,u,{latestValues:h},c,d=!1){let p=((0,a.isSVGComponent)(t)?n.useSVGProps:s.useHTMLProps)(l,h,c,t),m=(0,r.filterProps)(l,"string"==typeof t,d),f=t!==i.Fragment?{...m,...p,ref:u}:{},{children:g}=l,v=(0,i.useMemo)(()=>(0,e.isMotionValue)(g)?g.get():g,[g]);return(0,i.createElement)(t,{...f,children:v})}t.s(["useRender",()=>o])},707624,t=>{"use strict";let e=(0,t.i(809528).createContext)(null);t.s(["PresenceContext",()=>e])},861228,t=>{"use strict";var e=t.i(809528);function i(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}t.s(["useConstant",()=>i])},504727,8972,t=>{"use strict";var e=t.i(809528),i=t.i(419606),s=t.i(878964),n=t.i(707624),r=t.i(139743),a=t.i(597285),o=t.i(861228),l=t.i(538305);function u(t){return(0,l.isMotionValue)(t)?t.get():t}t.s(["resolveMotionValue",()=>u],8972);let h=t=>(l,h)=>{let c=(0,e.useContext)(s.MotionContext),d=(0,e.useContext)(n.PresenceContext),p=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},s,n,o){return{latestValues:function(t,e,s,n){let o={},l=n(t,{});for(let t in l)o[t]=u(l[t]);let{initial:h,animate:c}=t,d=(0,r.isControllingVariants)(t),p=(0,r.isVariantNode)(t);
1e&&p&&!d&&!1!==t.inherit&&(void 0===h&&(h=e.initial),void 0===c&&(c=e.animate));let m=!!s&&!1===s.initial,f=(m=m||!1===h)?c:h;if(f&&"boolean"!=typeof f&&!(0,i.isAnimationControls)(f)){let e=Array.isArray(f)?f:[f];for(let i=0;i<e.length;i++){let s=(0,a.resolveVariantFromProps)(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=m?e.length-1:0;e=e[t]}null!==e&&(o[t]=e)}for(let e in t)o[e]=t[e]}}}return o}(s,n,o,t),renderState:e()}})(t,l,c,d);return h?p():(0,o.useConstant)(p)};t.s(["makeUseVisualState",()=>h],504727)},915289,t=>{"use strict";var e=t.i(504727),i=t.i(490551),s=t.i(430971);let n=(0,e.makeUseVisualState)({scrapeMotionValuesFromProps:s.scrapeMotionValuesFromProps,createRenderState:i.createHtmlRenderState});t.s(["useHTMLVisualState",()=>n])},965327,t=>{"use strict";var e=t.i(504727),i=t.i(133681),s=t.i(312459);let n=(0,e.makeUseVisualState)({scrapeMotionValuesFromProps:s.scrapeMotionValuesFromProps,createRenderState:i.createSvgRenderState});t.s(["useSVGVisualState",()=>n])},796347,410382,781017,781734,t=>{"use strict";var e=t.i(493117);function i(t){for(let i in t)e.featureDefinitions[i]={...e.featureDefinitions[i],...t[i]}}t.s(["loadFeatures",()=>i],796347);let s=Symbol.for("motionComponentSymbol");t.s(["motionComponentSymbol",()=>s],410382);var n=t.i(809528);function r(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function a(t,e,i){return(0,n.useCallback)(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),i&&("function"==typeof i?i(s):r(i)&&(i.current=s))},[e])}t.s(["isRefObject",()=>r],781017),t.s(["useMotionRef",()=>a],781734)},926511,37259,t=>{"use strict";let e="data-"+(0,t.i(279351).camelToDash)("framerAppearId");t.s(["optimizedAppearDataAttribute",()=>e],926511);let i=(0,t.i(809528).createContext)({});t.s(["SwitchLayoutGroupContext",()=>i],37259)},803347,t=>{"use strict";var e=t.i(809528);let i=t.i(967777).isBrowser?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",()=>i])},982832,t=>{"use strict";t.i(680909);var e=t.i(260293),i=t.i(809528),s=t.i(753020),n=t.i(424978),r=t.i(561916),a=t.i(878964),o=t.i(636030),l=t.i(348583),u=t.i(301543),h=t.i(915289),c=t.i(965327),d=t.i(967777),p=t.i(493117),m=t.i(796347),f=t.i(410382),g=t.i(781734),v=t.i(926511),y=t.i(707624),x=t.i(37259),T=t.i(781017),b=t.i(803347);function P(t,{forwardMotionProps:V=!1}={},S,w){S&&(0,m.loadFeatures)(S);let M=(0,u.isSVGComponent)(t)?c.useSVGVisualState:h.useHTMLVisualState;function A(u,h){let c,m={...(0,i.useContext)(r.MotionConfigContext),...u,layoutId:function({layoutId:t}){let e=(0,i.useContext)(s.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(u)},{isStatic:f}=m,P=(0,o.useCreateMotionContext)(u),S=M(u,f);if(!f&&d.isBrowser){(0,i.useContext)(n.LazyContext).strict;let e=function(t){let{drag:e,layout:i}=p.featureDefinitions;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(m);c=e.MeasureLayout,P.visualElement=function(t,e,s,o,l){let{visualElement:u}=(0,i.useContext)(a.MotionContext),h=(0,i.useContext)(n.LazyContext),c=(0,i.useContext)(y.PresenceContext),d=(0,i.useContext)(r.MotionConfigContext).reducedMotion,p=(0,i.useRef)(null);o=o||h.renderer,!p.current&&o&&(p.current=o(t,{visualState:e,parent:u,props:s,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d}));let m=p.current,f=(0,i.useContext)(x.SwitchLayoutGroupContext);m&&!m.projection&&l&&("html"===m.type||"svg"===m.type)&&function(t,e,i,s){let{layoutId:n,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:n,layout:r,alwaysMeasureLayout:!!a||o&&(0,T.isRefObject)(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,crossfade:h,layoutScroll:l,layoutRoot:u})}(p.current,s,l,f);let g=(0,i.useRef)(!1);(0,i.useInsertionEffect)(()=>{m&&g.current&&m.update(s,c)});let P=s[v.optimizedAppearDataAttribute],V=(0,i.useRef)(!!P&&!window.MotionHandoffIsComplete?.(P)&&window.MotionHasOptimisedAnimation?.(P));return(0,b.useIsomorphicLayoutEffect)(()=>{m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),V.current&&m.animationState&&m.animationState.animateChanges())}),(0,i.useEffect)(()=>{m&&(!V.current&&m.animationState&&m.animationState.animateChanges(),V.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(P)}),V.current=!1),m.enteringChildren=void 0)}),m}(t,S,m,w,e.ProjectionNode)}return(0,e.jsxs)(a.MotionContext.Provider,{value:P,children:[c&&P.visualElement?(0,e.jsx)(c,{visualElement:P.visualElement,...m}):null,(0,l.useRender)(t,u,(0,g.useMotionRef)(S,P.visualElement,h),S,f,V)]})}A.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let C=(0,i.forwardRef)(A);return C[f.motionComponentSymbol]=t,C}t.s(["createMotionComponent",()=>P],982832)},882919,965836,772685,676968,640746,667327,840289,196239,798520,520085,118744,747113,279126,91649,668617,363960,161,335663,945562,905044,444598,210681,39653,414161,745469,631648,386164,10311,955018,t=>{"use strict";let e;var i=t.i(419606),s=t.i(597285);function n(t,e,i){let n=t.getProps();return(0,s.resolveVariantFromProps)(n,e,void 0!==i?i:n.custom,t)}function r(t,e){return t?.[e]??t?.default??t}t.s(["getValueTransition",()=>r],965836);var a=t.i(347248),o=t.i(444948),l=t.i(134026);let u=t=>Array.isArray(t);function h(t,e){let{transitionEnd:i={},transition:s={},...r}=n(t,e)||{};for(let e in r={...r,...i}){var a;let i=u(a=r[e])?a[a.length-1]||0:a;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,l.motionValue)(i))}}
1t.s(["setTarget",()=>h],772685);var c=t.i(954912),d=t.i(538305);function p(t,e){let i=t.getValue("willChange");if((0,d.isMotionValue)(i)&&i.add)return i.add(e);if(!i&&c.MotionGlobalConfig.WillChange){let i=new c.MotionGlobalConfig.WillChange("auto");t.addValue("willChange",i),i.add(e)}}var m=t.i(926511);function f(t){return t.props[m.optimizedAppearDataAttribute]}function g(t){t.duration=0,t.type="keyframes"}t.s(["getOptimisedAppearId",()=>f],676968),t.i(680909);let v=(t,e)=>i=>e(t(i)),y=(...t)=>t.reduce(v);t.s(["pipe",()=>y],640746);var x=t.i(483032);let T=t=>1e3*t,b=t=>t/1e3;t.s(["millisecondsToSeconds",()=>b,"secondsToMilliseconds",()=>T],667327);var P=t.i(924140);let V={layout:0,mainThread:0,waapi:0};t.s(["activeAnimations",()=>V],840289);var S=t.i(348367),w=t.i(242210),M=t.i(168826),A=t.i(377149),C=t.i(201221),D=t.i(192573);function E(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 R=t.i(267754);function k(t,e){return i=>i>0?e:t}var L=t.i(647480);let B=(t,e,i)=>{let s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},F=[C.hex,R.rgba,D.hsla];function j(t){let e=F.find(e=>e.test(t));if((0,S.warning)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===D.hsla&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let n=0,r=0,a=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,o=2*i-s;n=E(o,s,t+1/3),r=E(o,s,t),a=E(o,s,t-1/3)}else n=r=a=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*a),alpha:s}}(i)),i}let O=(t,e)=>{let i=j(t),s=j(e);if(!i||!s)return k(t,e);let n={...i};return t=>(n.red=B(i.red,s.red,t),n.green=B(i.green,s.green,t),n.blue=B(i.blue,s.blue,t),n.alpha=(0,L.mixNumber)(i.alpha,s.alpha,t),R.rgba.transform(n))},I=new Set(["none","hidden"]);function N(t,e){return i=>(0,L.mixNumber)(t,e,i)}function U(t){return"number"==typeof t?N:"string"==typeof t?(0,w.isCSSVariableToken)(t)?k:M.color.test(t)?O:H:Array.isArray(t)?G:"object"==typeof t?M.color.test(t)?O:$:k}function G(t,e){let i=[...t],s=i.length,n=t.map((t,i)=>U(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=n[e](t);return i}}function $(t,e){let i={...t,...e},s={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(s[n]=U(t[n])(t[n],e[n]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let H=(t,e)=>{let i=A.complex.createTransformer(e),s=(0,A.analyseComplexValue)(t),n=(0,A.analyseComplexValue)(e);if(!(s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length))return(0,S.warning)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),k(t,e);if(I.has(t)&&!n.values.length||I.has(e)&&!s.values.length)return I.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return y(G(function(t,e){let i=[],s={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let r=e.types[n],a=t.indexes[r][s[r]],o=t.values[a]??0;i[n]=o,s[r]++}return i}(s,n),n.values),i)};function W(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,L.mixNumber)(t,e,i):U(t)(t,e)}let z=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>a.frame.update(e,t),stop:()=>(0,a.cancelFrame)(e),now:()=>a.frameData.isProcessing?a.frameData.timestamp:P.time.now()}},K=(t,e,i=10)=>{let s="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)s+=Math.round(1e4*t(e/(n-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`};function Y(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function X(t,e=100,i){let s=i({...t,keyframes:[0,e]}),n=Math.min(Y(s),2e4);return{type:"keyframes",ease:t=>s.next(n*t).value/e,duration:b(n)}}t.s(["createGeneratorEasing",()=>X],196239);var q=t.i(795153);function Z(t,e,i){let s=Math.max(e-5,0);return(0,q.velocityPerSecond)(i-t(s),e-s)}let _=.01,J=2,Q=.005,tt=.5;function te(t,e){return t*Math.sqrt(1-e*e)}let ti=["duration","bounce"],ts=["stiffness","damping","mass"];function tn(t,e){return e.some(e=>void 0!==t[e])}function tr(t=.3,e=.3){let i,s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:r}=s,a=s.keyframes[0],o=s.keyframes[s.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!tn(t,ts)&&tn(t,ti))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,n=2*(0,x.clamp)(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:n}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:s=1}){let n,r;(0,S.warning)(t<=T(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=(0,x.clamp)(.05,1,a),t=(0,x.clamp)(.01,10,b(t)),a<1?(n=e=>{let s=e*a,n=s*t;return .001-(s-i)/te(e,a)*Math.exp(-n)},r=e=>{let s=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-s),l=te(Math.pow(e,2),a);return(s*i+i-r)*o*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));
1let o=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(n,r,5/t);if(t=T(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(o,2)*s;return{stiffness:e,damping:2*a*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-b(s.velocity||0)}),f=p||0,g=h/(2*Math.sqrt(u*c)),v=o-a,y=b(Math.sqrt(u/c)),P=5>Math.abs(v);if(n||(n=P?_:J),r||(r=P?Q:tt),g<1){let t=te(y,g);i=e=>o-Math.exp(-g*y*e)*((f+g*y*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===g)i=t=>o-Math.exp(-y*t)*(v+(f+y*v)*t);else{let t=y*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*y*e),s=Math.min(t*e,300);return o-i*((f+g*y*v)*Math.sinh(s)+t*v*Math.cosh(s))/t}}let V={calculatedDuration:m&&d||null,next:t=>{let e=i(t);if(m)l.done=t>=d;else{let s=0===t?f:0;g<1&&(s=0===t?T(f):Z(i,t,e));let a=Math.abs(o-e)<=r;l.done=Math.abs(s)<=n&&a}return l.value=l.done?o:e,l},toString:()=>{let t=Math.min(Y(V),2e4),e=K(e=>V.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return V}function ta({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,v=void 0===a?g:a(g);v!==g&&(f=v-p);let y=t=>-f*Math.exp(-t/s),x=t=>v+y(t),T=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?v:i},b=t=>{let e;if(e=m.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;c=t,d=tr({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:Z(x,t,m.value),damping:n,stiffness:r,restDelta:u,restSpeed:h})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,T(t),b(t)),void 0!==c&&t>=c)?d.next(t-c):(e||T(t),m)}}}tr.applyToOptions=t=>{let e=X(t,100,tr);return t.ease=e.ease,t.duration=T(e.duration),t.type="keyframes",t},t.s(["spring",()=>tr],798520);var to=t.i(175602);let tl=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tu(t,e,i,s){return t===e&&i===s?to.noop:n=>0===n||1===n?n:tl(function(t,e,i,s,n){let r,a,o=0;do(r=tl(a=e+(i-e)/2,s,n)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++o<12)return a}(n,0,1,t,i),e,s)}let th=tu(.42,0,1,1),tc=tu(0,0,.58,1),td=tu(.42,0,.58,1),tp=t=>Array.isArray(t)&&"number"!=typeof t[0];t.s(["isEasingArray",()=>tp],520085);let tm=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tf=t=>e=>1-t(1-e),tg=tu(.33,1.53,.69,.99),tv=tf(tg),ty=tm(tv),tx=t=>(t*=2)<1?.5*tv(t):.5*(2-Math.pow(2,-10*(t-1))),tT=t=>1-Math.sin(Math.acos(t)),tb=tf(tT),tP=tm(tT);t.s(["circIn",()=>tT,"circInOut",()=>tP,"circOut",()=>tb],118744);let tV=t=>Array.isArray(t)&&"number"==typeof t[0],tS={linear:to.noop,easeIn:th,easeInOut:td,easeOut:tc,circIn:tT,circInOut:tP,circOut:tb,backIn:tv,backInOut:ty,backOut:tg,anticipate:tx},tw=t=>{if(tV(t)){(0,S.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,s,n]=t;return tu(e,i,s,n)}return"string"==typeof t?((0,S.invariant)(void 0!==tS[t],`Invalid easing type '${t}'`,"invalid-easing-type"),tS[t]):t},tM=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s};function tA(t,e,{clamp:i=!0,ease:s,mixer:n}={}){let r=t.length;if((0,S.invariant)(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let s=[],n=i||c.MotionGlobalConfig.mix||W,r=t.length-1;for(let i=0;i<r;i++){let r=n(t[i],t[i+1]);e&&(r=y(Array.isArray(e)?e[i]||to.noop:e,r)),s.push(r)}return s}(e,s,n),l=o.length,u=i=>{if(a&&i<t[0])return e[0];let s=0;if(l>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let n=tM(t[s],t[s+1],i);return o[s](n)};return i?e=>u((0,x.clamp)(t[0],t[r-1],e)):u}function tC(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let n=tM(0,e,s);t.push((0,L.mixNumber)(i,1,n))}}function tD(t){let e=[0];return tC(e,t.length-1),e}function tE({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var n;let r=tp(s)?s.map(tw):tw(s),a={done:!1,value:e[0]},o=tA((n=i&&i.length===e.length?i:tD(e),n.map(e=>e*t)),e,{ease:Array.isArray(r)?r:e.map(()=>r||td).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=o(e),a.done=e>=t,a)}}t.s(["progress",()=>tM],747113),t.s(["interpolate",()=>
1tA],279126),t.s(["fillOffset",()=>tC],91649),t.s(["defaultOffset",()=>tD],668617);let tR=t=>null!==t;function tk(t,{repeat:e,repeatType:i="loop"},s,n=1){let r=t.filter(tR),a=n<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return a&&void 0!==s?s:r[a]}let tL={decay:ta,inertia:ta,tween:tE,keyframes:tE,spring:tr};function tB(t){"string"==typeof t.type&&(t.type=tL[t.type])}class tF{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let tj=t=>t/100;class tO extends tF{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==P.time.now()&&this.tick(P.time.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},V.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;tB(t);let{type:e=tE,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:r=0}=t,{keyframes:a}=t,o=e||tE;o!==tE&&"number"!=typeof a[0]&&(this.mixKeyframes=y(tj,W(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===n&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=Y(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:s,mixKeyframes:n,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:c,repeatDelay:d,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-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>s;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let y=this.currentTime,T=i;if(h){let t=Math.min(this.currentTime,s)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,h+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/a)):"mirror"===c&&(T=r)),y=(0,x.clamp)(0,1,i)*a}let b=v?{done:!1,value:u[0]}:T.next(y);n&&(b.value=n(b.value));let{done:P}=b;v||null===o||(P=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let V=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return V&&p!==ta&&(b.value=tk(u,this.options,f,this.speed)),m&&m(b.value),V&&this.finish(),b}then(t,e){return this.finished.then(t,e)}get duration(){return b(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+b(t)}get time(){return b(this.currentTime)}set time(t){t=T(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(P.time.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=b(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=z,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(P.time.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,V.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}t.s(["JSAnimation",()=>tO],363960);var tI=t.i(883582);function tN(t){let e;return()=>(void 0===e&&(e=t()),e)}let tU=tN(()=>void 0!==window.ScrollTimeline);var tG=t.i(680124);let t$={},tH=(e=tN(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>t$.linearEasing??e()),tW=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,tz={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tW([0,.65,.55,1]),circOut:tW([.55,0,1,.45]),backIn:tW([.31,.01,.66,-.59]),backOut:tW([.33,1.53,.69,.99])};function tK(t){return"function"==typeof t&&"applyToOptions"in t}t.s(["isGenerator",()=>tK],161);class tY extends tF{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:i,keyframes:s,pseudoElement:n,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!n,this.allowFlatten=r,this.options=t,(0,S.invariant)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return tK(t)&&tH()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?tH()?K(e,i):"ease-out":tV(e)?tW(e):Array.isArray(e)?e.map(e=>t(e,i)||tz.easeOut):tz[e]}(o,n);Array.isArray(c)&&(h.easing=c),tG.statsBuffer.value&&V.waapi++;let d={delay:s,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};u&&(d.pseudoElement=u);let p=t.animate(h,d);return tG.statsBuffer.value&&p.finished.finally(()=>{V.waapi--}),p}(e,i,s,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=tk(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return b(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+b(t)}get time(){return b(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=T(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tU())?(this.animation.timeline=t,to.noop):e(this)}}let tX={anticipate:tx,backInOut:ty,circInOut:tP};class tq extends tY{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in tX&&(t.ease=tX[t.ease])}(t),tB(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:s,element:n,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new tO({...r,autoplay:!1}),o=T(this.finishedTime??this.time);e.setWithVelocity(a.sample(o-10).value,a.sample(o).value,10),a.stop()}}let tZ=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(A.complex.test(t)||"0"===t)&&!t.startsWith("url(")),t_=new Set(["opacity","clipPath","filter","transform"]),tJ=tN(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class tQ extends tF{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=P.time.now();const c={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:n,repeatType:r,name:o,motionValue:l,element:u,...h},d=u?.KeyframeResolver||tI.KeyframeResolver;this.keyframeResolver=new d(a,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){this.keyframeResolver=void 0;let{name:n,type:r,velocity:a,delay:o,isHandoff:l,onUpdate:u}=i;
1this.resolvedAt=P.time.now(),!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=tZ(n,e),o=tZ(r,e);return(0,S.warning)(a===o,`You are trying to animate ${e} from "${n}" to "${r}". "${a?r:n}" is not an animatable value.`,"value-not-animatable"),!!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||tK(i))&&s)}(t,n,r,a)&&((c.MotionGlobalConfig.instantAnimations||!o)&&u?.(tk(t,i,e)),t[0]=t[t.length-1],g(i),i.repeat=0);let h={startTime:s?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:s,repeatType:n,damping:r,type:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return tJ()&&i&&t_.has(i)&&("transform"!==i||!l)&&!o&&!s&&"mirror"!==n&&0!==r&&"inertia"!==a}(h)?new tq({...h,element:h.motionValue.owner.current}):new tO(h);d.finished.then(()=>this.notifyFinished()).catch(to.noop),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(){return this._animation||(this.keyframeResolver?.resume(),(0,tI.flushKeyframeResolvers)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let t0=t=>null!==t;var t1=t.i(229859);let t2={type:"spring",stiffness:500,damping:25,restSpeed:10},t9={type:"keyframes",duration:.8},t5={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},t4=(t,e,i,s={},n,o)=>l=>{let u=r(s,t)||{},h=u.delay||s.delay||0,{elapsed:d=0}=s;d-=T(h);let p={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...u,delay:-d,onUpdate:t=>{e.set(t),u.onUpdate&&u.onUpdate(t)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:t,motionValue:e,element:o?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:n,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(u)&&Object.assign(p,((t,{keyframes:e})=>e.length>2?t9:t1.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:t2:t5)(t,p)),p.duration&&(p.duration=T(p.duration)),p.repeatDelay&&(p.repeatDelay=T(p.repeatDelay)),void 0!==p.from&&(p.keyframes[0]=p.from);let m=!1;if(!1!==p.type&&(0!==p.duration||p.repeatDelay)||(g(p),0===p.delay&&(m=!0)),(c.MotionGlobalConfig.instantAnimations||c.MotionGlobalConfig.skipAnimations)&&(m=!0,g(p),p.delay=0),p.allowFlatten=!u.type&&!u.ease,m&&!o&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},s){let n=t.filter(t0),r=e&&"loop"!==i&&e%2==1?0:n.length-1;return n[r]}(p.keyframes,u);if(void 0!==t)return void a.frame.update(()=>{p.onUpdate(t),p.onComplete()})}return u.isSync?new tO(p):new tQ(p)};function t3(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:l=t.getDefaultTransition(),transitionEnd:u,...c}=e;s&&(l=s);let d=[],m=n&&t.animationState&&t.animationState.getState()[n];for(let e in c){let s=t.getValue(e,t.latestValues[e]??null),n=c[e];if(void 0===n||m&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(m,e))continue;let u={delay:i,...r(l||{},e)},h=s.get();if(void 0!==h&&!s.isAnimating&&!Array.isArray(n)&&n===h&&!u.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){let i=f(t);if(i){let t=window.MotionHandoffAnimation(i,e,a.frame);null!==t&&(u.startTime=t,g=!0)}}p(t,e),s.start(t4(e,s,n,t.shouldReduceMotion&&o.positionalKeys.has(e)?{type:!1}:u,t,g));let v=s.animation;v&&d.push(v)}return u&&Promise.all(d).then(()=>{a.frame.update(()=>{u&&h(t,u)})}),d}function t8(t,e,i,s=0,n=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*s;return"function"==typeof i?i(r,a):1===n?r*s:o-r*s}function t6(t,e,i={}){let s=n(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(r=i.transitionOverride);let a=s?()=>Promise.all(t3(t,s,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:n=0,staggerChildren:a,staggerDirection:o}=r;
1return function(t,e,i=0,s=0,n=0,r=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(t6(l,e,{...a,delay:i+("function"==typeof s?0:s)+t8(t.variantChildren,l,s,n,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,s,n,a,o,i)}:()=>Promise.resolve(),{when:l}=r;if(!l)return Promise.all([a(),o(i.delay)]);{let[t,e]="beforeChildren"===l?[a,o]:[o,a];return t().then(()=>e())}}function t7(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>t6(t,e,i)));else if("string"==typeof e)s=t6(t,e,i);else{let r="function"==typeof e?n(t,e,i.custom):e;s=Promise.all(t3(t,r,i))}return s.then(()=>{t.notify("AnimationComplete",e)})}function et(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}t.s(["animateMotionValue",()=>t4],335663),t.s(["animateTarget",()=>t3],945562),t.s(["animateVisualElement",()=>t7],905044);var ee=t.i(991767),ei=t.i(561649);let es=ei.variantProps.length,en=[...ei.variantPriorityOrder].reverse(),er=ei.variantPriorityOrder.length;function ea(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function eo(){return{animate:ea(!0),whileInView:ea(),whileHover:ea(),whileTap:ea(),whileDrag:ea(),whileFocus:ea(),exit:ea()}}class el{constructor(t){this.isMounted=!1,this.node=t}update(){}}t.s(["Feature",()=>el],444598);let eu=0,eh={animation:{Feature:class extends el{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>t7(t,e,i))),s=eo(),r=!0,a=e=>(i,s)=>{let r=n(t,s,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...s}=r;i={...i,...s,...e}}return i};function o(o){let{props:l}=t,h=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<es;t++){let s=ei.variantProps[t],n=e.props[s];((0,ee.isVariantLabel)(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},c=[],d=new Set,p={},m=1/0;for(let e=0;e<er;e++){var f,g;let v=en[e],y=s[v],x=void 0!==l[v]?l[v]:h[v],T=(0,ee.isVariantLabel)(x),b=v===o?y.isActive:null;!1===b&&(m=e);let P=x===h[v]&&x!==l[v]&&T;if(P&&r&&t.manuallyAnimateOnMount&&(P=!1),y.protectedKeys={...p},!y.isActive&&null===b||!x&&!y.prevProp||(0,i.isAnimationControls)(x)||"boolean"==typeof x)continue;let V=(f=y.prevProp,"string"==typeof(g=x)?g!==f:!!Array.isArray(g)&&!et(g,f)),S=V||v===o&&y.isActive&&!P&&T||e>m&&T,w=!1,M=Array.isArray(x)?x:[x],A=M.reduce(a(v),{});!1===b&&(A={});let{prevResolvedValues:C={}}=y,D={...C,...A},E=e=>{S=!0,d.has(e)&&(w=!0,d.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in D){let e=A[t],i=C[t];if(!p.hasOwnProperty(t))(u(e)&&u(i)?et(e,i):e===i)?void 0!==e&&d.has(t)?E(t):y.protectedKeys[t]=!0:null!=e?E(t):d.add(t)}y.prevProp=x,y.prevResolvedValues=A,y.isActive&&(p={...p,...A}),r&&t.blockInitialAnimation&&(S=!1);let R=P&&V,k=!R||w;S&&k&&c.push(...M.map(e=>{let i={type:v};if("string"==typeof e&&r&&!R&&t.manuallyAnimateOnMount&&t.parent){let{parent:s}=t,r=n(s,e);if(s.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=t8(s.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(d.size){let e={};if("boolean"!=typeof l.initial){let i=n(t,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(e.transition=i.transition)}d.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),c.push({animation:e})}let v=!!c.length;return r&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(v=!1),r=!1,v?e(c):Promise.resolve()}return{animateChanges:o,setActive:function(e,i){if(s[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),s[e].isActive=i;let n=o(e);for(let t in s)s[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>s,reset:()=>{s=eo()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,i.isAnimationControls)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends el{constructor(){super(...arguments),this.id=eu++}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 s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>
1{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};t.s(["animations",()=>eh],882919);let ec={x:!1,y:!1};function ed(){return ec.x||ec.y}t.s(["isDragActive",()=>ed,"isDragging",()=>ec],210681);var ep=t.i(21365);function em(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}t.s(["addDomEvent",()=>em],39653);let ef=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function eg(t){return{point:{x:t.pageX,y:t.pageY}}}t.s(["isPrimaryPointer",()=>ef],414161);let ev=t=>e=>ef(e)&&t(e,eg(e));function ey(t,e,i,s){return em(t,e,ev(i),s)}t.s(["addPointerInfo",()=>ev,"extractEventInfo",()=>eg],745469);var ex=t.i(793483);function eT(t){return t.max-t.min}function eb(t,e,i){return Math.abs(t-e)<=i}function eP(t,e,i,s=.5){t.origin=s,t.originPoint=(0,L.mixNumber)(e.min,e.max,t.origin),t.scale=eT(i)/eT(e),t.translate=(0,L.mixNumber)(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 eV(t,e,i,s){eP(t.x,e.x,i.x,s?s.originX:void 0),eP(t.y,e.y,i.y,s?s.originY:void 0)}function eS(t,e,i){t.min=i.min+e.min,t.max=t.min+eT(e)}function ew(t,e,i){eS(t.x,e.x,i.x),eS(t.y,e.y,i.y)}function eM(t,e,i){t.min=e.min-i.min,t.max=t.min+eT(e)}function eA(t,e,i){eM(t.x,e.x,i.x),eM(t.y,e.y,i.y)}t.s(["calcBoxDelta",()=>eV,"calcLength",()=>eT,"calcRelativeBox",()=>ew,"calcRelativePosition",()=>eA,"isNear",()=>eb],631648);var eC=t.i(69015);function eD(t){return[t("x"),t("y")]}t.s(["eachAxis",()=>eD],386164);var eE=t.i(716519);let eR=({current:t})=>t?t.ownerDocument.defaultView:null;var ek=t.i(781017);let eL=(t,e)=>Math.abs(t-e);class eB{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=eO(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(eL(t.x,e.x)**2+eL(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:r}=i,{timestamp:o}=a.frameData;this.history.push({...r,timestamp:o});let{onStart:l,onMove:u}=this.handlers;s||(l&&l(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),u&&u(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=eF(e,this.transformPagePoint),a.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=eO("pointercancel"===t.type?this.lastMoveEventInfo:eF(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!ef(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const o=eF(eg(t),this.transformPagePoint),{point:l}=o,{timestamp:u}=a.frameData;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=e;h&&h(t,eO(o,this.history)),this.removeListeners=y(ey(this.contextWindow,"pointermove",this.handlePointerMove),ey(this.contextWindow,"pointerup",this.handlePointerUp),ey(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,a.cancelFrame)(this.updatePoint)}}function eF(t,e){return e?{point:e(t.point)}:t}function ej(t,e){return{x:t.x-e.x,y:t.y-e.y}}function eO({point:t},e){return{point:t,delta:ej(t,eI(e)),offset:ej(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,n=eI(t);for(;i>=0&&(s=t[i],!(n.timestamp-s.timestamp>T(.1)));)i--;if(!s)return{x:0,y:0};let r=b(n.timestamp-s.timestamp);if(0===r)return{x:0,y:0};let a={x:(n.x-s.x)/r,y:(n.y-s.y)/r};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,.1)}}function eI(t){return t[t.length-1]}function eN(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 eU(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function eG(t,e,i){return{min:e$(t,e),max:e$(t,i)}}function e$(t,e){return"number"==typeof t?t:t[e]||0}let eH=new WeakMap;class eW{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,eC.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(eg(t).point)},r=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(ec[t])return null;else return ec[t]=!0,()=>{ec[t]=!1};return ec.x||ec.y?null:(ec.x=ec.y=!0,()=>{ec.x=ec.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eD(t=>{let e=this.getAxisMotionValue(t).get()||0;if(ep.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=eT(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&a.frame.postRender(()=>n(t,e)),p(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&r(t,e)},l=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>eD(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:h}=this.getProps();this.panSession=new eB(t,{onSessionStart:n,onStart:r,onMove:o,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:eR(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:r}=s;this.startAnimation(r);let{onDragEnd:o}=this.getProps();o&&a.frame.postRender(()=>o(i,s))}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:s}=this.getProps();if(!i||!ez(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?(0,L.mixNumber)(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?(0,L.mixNumber)(i,t,s.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),n.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&(0,ek.isRefObject)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:eN(t.x,i,n),y:eN(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:eG(t,"left","right"),y:eG(t,"top","bottom")}}(e),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&eD(t=>{var e,s;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],n={},void 0!==s.min&&(n.min=s.min-e.min),void 0!==s.max&&(n.max=s.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,ek.isRefObject)(e))return!1;let s=e.current;(0,S.invariant)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let r=(0,eE.measurePageBox)(s,n.root,this.visualElement.getTransformPagePoint()),a=(t=n.layout.layoutBox,{x:eU(t.x,r.x),y:eU(t.y,r.y)});if(i){let t=i((0,ex.convertBoxToBoundingBox)(a));this.hasMutatedConstraints=!!t,t&&(a=(0,ex.convertBoundingBoxToBox)(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(eD(a=>
1{if(!ez(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:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return p(this.visualElement,t),i.start(t4(t,i,0,e,this.visualElement,!1))}stopAnimation(){eD(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){eD(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){eD(e=>{let{drag:i}=this.getProps();if(!ez(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:r}=s.layout.layoutBox[e];n.set(t[e]-(0,L.mixNumber)(i,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,ek.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};eD(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let r,a,o,l=e.get();s[t]=(i={min:l,max:l},n=this.constraints[t],r=.5,a=eT(i),(o=eT(n))>a?r=tM(n.min,n.max-a,i.min):a>o&&(r=tM(i.min,i.max-o,n.min)),(0,x.clamp)(0,1,r))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),eD(e=>{if(!ez(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:r}=this.constraints[e];i.set((0,L.mixNumber)(n,r,s[e]))})}addListeners(){if(!this.visualElement.current)return;eH.set(this.visualElement,this);let t=ey(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();(0,ek.isRefObject)(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),a.frame.read(e);let n=em(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(eD(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),s(),r&&r()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:a}}}function ez(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class eK extends el{constructor(t){super(t),this.removeGroupControls=to.noop,this.removeListeners=to.noop,this.controls=new eW(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||to.noop}unmount(){this.removeGroupControls(),this.removeListeners()}}t.s(["DragGesture",()=>eK],10311);let eY=t=>(e,i)=>{t&&a.frame.postRender(()=>t(e,i))};class eX extends el{constructor(){super(...arguments),this.removePointerDownListener=to.noop}onPointerDown(t){this.session=new eB(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eR(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:eY(t),onStart:eY(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&a.frame.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=ey(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}t.s(["PanGesture",()=>eX],955018)},426195,t=>{"use strict";var e=t.i(809528),i=t.i(707624);function s(t=!0){let n=(0,e.useContext)(i.PresenceContext);if(null===n)return[!0,null];let{isPresent:r,onExitComplete:a,register:o}=n,l=(0,e.useId)();(0,e.useEffect)(()=>
1{if(t)return o(l)},[t]);let u=(0,e.useCallback)(()=>t&&a&&a(l),[l,a,t]);return!r&&a?[!1,u]:[!0]}t.s(["usePresence",()=>s])},936283,390518,t=>{"use strict";var e=t.i(260293),i=t.i(347248),s=t.i(984776),n=t.i(809528),r=t.i(426195),a=t.i(753020),o=t.i(37259);let l={hasAnimatedSinceResize:!0,hasEverUpdated:!1};t.s(["globalProjectionState",()=>l],390518);var u=t.i(21365);function h(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let c={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!u.px.test(t))return t;else t=parseFloat(t);let i=h(t,e.target.x),s=h(t,e.target.y);return`${i}% ${s}%`}};var d=t.i(377149),p=t.i(647480),m=t.i(825547);let f=!1;class g extends n.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;(0,m.addScaleCorrector)(y),n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),f&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),l.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:s,drag:n,isPresent:r}=this.props,{projection:a}=s;return a&&(a.isPresent=r,f=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?a.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?a.promote():a.relegate()||i.frame.postRender(()=>{let t=a.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),s.microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;f=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function v(t){let[i,s]=(0,r.usePresence)(),l=(0,n.useContext)(a.LayoutGroupContext);return(0,e.jsx)(g,{...t,layoutGroup:l,switchLayoutGroup:(0,n.useContext)(o.SwitchLayoutGroupContext),isPresent:i,safeToRemove:s})}let y={borderRadius:{...c,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:c,borderTopRightRadius:c,borderBottomLeftRadius:c,borderBottomRightRadius:c,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=d.complex.parse(t);if(s.length>5)return t;let n=d.complex.createTransformer(t),r=+("number"!=typeof s[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;s[0+r]/=a,s[1+r]/=o;let l=(0,p.mixNumber)(a,o,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}};t.s(["MeasureLayout",()=>v],936283)},264250,t=>{"use strict";function e(t){return"object"==typeof t&&null!==t}t.s(["isObject",()=>e])},371056,361979,637165,450829,859876,369710,664356,59053,155738,t=>{"use strict";var e=t.i(10311),i=t.i(955018),s=t.i(936283),n=t.i(680124),r=t.i(264250);function a(t){return(0,r.isObject)(t)&&"ownerSVGElement"in t}function o(t){return a(t)&&"svg"===t.tagName}t.s(["isSVGElement",()=>a],361979),t.s(["isSVGSVGElement",()=>o],637165);var l=t.i(347248),u=t.i(965836),h=t.i(924140),c=t.i(984776),d=t.i(840289),p=t.i(134026),m=t.i(647480),f=t.i(470180),g=t.i(483032),v=t.i(175602),y=t.i(538305),x=t.i(335663);function T(t,e,i){let s=(0,y.isMotionValue)(t)?t:(0,p.motionValue)(t);return s.start((0,x.animateMotionValue)("",s,e,i)),s.animation}t.s(["animateSingleValue",()=>T],450829);var b=t.i(676968),P=t.i(133639);let V=(t,e)=>t.depth-e.depth;class S{constructor(){this.children=[],this.isDirty=!1}add(t){(0,P.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,P.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(V),this.isDirty=!1,this.children.forEach(t)}}t.i(667327);var w=t.i(8972),M=t.i(21365),A=t.i(747113),C=t.i(118744);let D=["TopLeft","TopRight","BottomLeft","BottomRight"],E=D.length,R=t=>"string"==typeof t?parseFloat(t):t,k=t=>"number"==typeof t||M.px.test(t);function L(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let B=j(0,.5,C.circOut),F=j(.5,.95,v.noop);function j(t,e,i){return s=>s<t?0:s>e?1:i((0,A.progress)(t,e,s))}function O(t,e){t.min=e.min,t.max=e.max}function I(t,e){O(t.x,e.x),O(t.y,e.y)}function N(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var U=t.i(687321),G=t.i(631648);function $(t,e,i,s,n){return t-=e,t=(0,U.scalePoint)(t,1/i,s),void 0!==n&&(t=(0,U.scalePoint)(t,1/n,s)),t}function H(t,e,[i,s,n],r,a){!function(t,e=0,i=1,s=.5,n,r=t,a=t){if(M.percent.test(e)&&(e=parseFloat(e),e=(0,m.mixNumber)(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=(0,m.mixNumber)(r.min,r.max,s);t===r&&(o-=e),t.min=$(t.min,e,i,o,n),t.max=$(t.max,e,i,o,n)}(t,e[i],e[s],e[n],e.scale,r,a)}let W=["x","scaleX","originX"],z=["y","scaleY","originY"];function K(t,e,i,s){H(t.x,e,W,i?i.x:void 0,s?s.x:void 0),H(t.y,e,z,i?i.y:void 0,s?s.y:void 0)}var Y=t.i(69015);function X(t){return 0===t.translate&&1===t.scale}function q(t){return X(t.x)&&X(t.y)}function Z(t,e){return t.min===e.min&&t.max===e.max}function _(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function J(t,e){return _(t.x,e.x)&&_(t.y,e.y)}function Q(t){return(0,G.calcLength)(t.x)/(0,G.calcLength)(t.y)}function tt(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class te{constructor(){this.members=[]}add(t){(0,P.addUniqueItem)(this.members,t),t.scheduleRender()}remove(t){if((0,P.removeItem)(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)}
1}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:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var ti=t.i(825547),ts=t.i(386164),tn=t.i(286186),tr=t.i(390518);let ta={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},to=["","X","Y","Z"],tl=0;function tu(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function th({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=tl++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,n.statsBuffer.value&&(ta.nodes=ta.calculatedTargetDeltas=ta.calculatedProjections=0),this.nodes.forEach(tp),this.nodes.forEach(tT),this.nodes.forEach(tb),this.nodes.forEach(tm),n.statsBuffer.addProjectionMetrics&&n.statsBuffer.addProjectionMetrics(ta)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new S)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new f.SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=a(e)&&!o(e),this.instance=e;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;l.frame.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==s){let e,r;s=t,this.root.updateBlockedByResize=!0,i&&i(),e=h.time.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&((0,l.cancelFrame)(r),n(i-250))},l.frame.setup(r,!0),i=()=>(0,l.cancelFrame)(r),tr.globalProjectionState.hasAnimatedSinceResize&&(tr.globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(tx))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||tA,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=n.getProps(),l=!this.targetLayout||!J(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,u.getValueTransition)(r,"layout"),onPlay:a,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||tx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,l.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(tP),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let s=(0,b.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",l.frame,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(tg);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(tv);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ty),this.nodes.forEach(tc),this.nodes.forEach(td)):this.nodes.forEach(tv),this.clearAllSnapshots();let t=h.time.now();l.frameData.delta=(0,g.clamp)(0,1e3/60,t-l.frameData.timestamp),l.frameData.timestamp=t,l.frameData.isProcessing=!0,l.frameSteps.update.process(l.frameData),l.frameSteps.preRender.process(l.frameData),l.frameSteps.render.process(l.frameData),l.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,c.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tf),this.sharedNodes.forEach(tV)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,l.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){l.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,G.calcLength)(this.snapshot.measuredBox.x)||(0,G.calcLength)(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.layoutVersion++,this.layoutCorrected=(0,Y.createBox)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=s(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!q(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,tn.hasTransform)(this.latestValues)||n)&&(r(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),tE((e=s).x),tE(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,Y.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tk))){let{scroll:t}=this.root;t&&((0,U.translateAxis)(e.x,t.offset.x),(0,U.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,Y.createBox)();if(I(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:r}=s;s!==this.root&&n&&r.layoutScroll&&(n.wasRoot&&I(e,t),(0,U.translateAxis)(e.x,n.offset.x),(0,U.translateAxis)(e.y,n.offset.y))}return e}applyTransform(t,e=!1){let i=(0,Y.createBox)();I(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(0,U.transformBox)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,tn.hasTransform)(s.latestValues)&&(0,U.transformBox)(i,s.latestValues)}return(0,tn.hasTransform)(this.latestValues)&&(0,U.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,Y.createBox)();I(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,tn.hasTransform)(i.latestValues))continue;(0,tn.hasScale)(i.latestValues)&&i.updateSnapshot();let s=(0,Y.createBox)();I(s,i.measurePageBox()),K(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,tn.hasTransform)(this.latestValues)&&K(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!==l.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:r}=this.options;if(!this.layout||!(s||r))return;this.resolvedRelativeTargetAt=l.frameData.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=(0,Y.createBox)(),this.targetWithTransforms=(0,Y.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,G.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):I(this.target,this.layout.layoutBox),(0,U.applyBoxDelta)(this.target,this.targetDelta)):I(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),n.statsBuffer.value&&ta.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||(0,tn.hasScale)(this.parent.latestValues)||(0,tn.has2DTranslate)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,Y.createBox)(),this.relativeTargetOrigin=(0,Y.createBox)(),(0,G.calcRelativePosition)(this.relativeTargetOrigin,e,i),I(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===l.frameData.timestamp&&(i=!1),i)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;I(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;(0,U.applyTreeDeltas)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,Y.createBox)());let{target:u}=t;if(!u){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(N(this.prevProjectionDelta.x,this.projectionDelta.x),N(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,G.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&tt(this.projectionDelta.x,this.prevProjectionDelta.x)&&tt(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),n.statsBuffer.value&&ta.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,Y.createDelta)(),this.projectionDelta=(0,Y.createDelta)(),this.projectionDeltaWithTransform=(0,Y.createDelta)()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,n=s?s.latestValues:{},r={...this.latestValues},a=(0,Y.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=(0,Y.createBox)(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(tM));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(tS(a.x,t.x,s),tS(a.y,t.y,s),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f,g,v;(0,G.calcRelativePosition)(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,g=o,v=s,tw(p.x,f.x,g.x,v),tw(p.y,f.y,g.y,v),i&&(u=this.relativeTarget,d=i,Z(u.x,d.x)&&Z(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,Y.createBox)()),I(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,s,n,r){n?(t.opacity=(0,m.mixNumber)(0,i.opacity??1,B(s)),t.opacityExit=(0,m.mixNumber)(e.opacity??1,0,F(s))):r&&(t.opacity=(0,m.mixNumber)(e.opacity??1,i.opacity??1,s));for(let n=0;n<E;n++){let r=`border${D[n]}Radius`,a=L(e,r),o=L(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||k(a)===k(o)?(t[r]=Math.max((0,m.mixNumber)(R(a),R(o),s),0),(M.percent.test(o)||M.percent.test(a))&&(t[r]+="%")):t[r]=o)}(e.rotate||i.rotate)&&(t.rotate=(0,m.mixNumber)(e.rotate||0,i.rotate||0,s))}(r,n,this.latestValues,s,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,l.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=l.frame.update(()=>{tr.globalProjectionState.hasAnimatedSinceResize=!0,d.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,p.motionValue)(0)),this.currentAnimation=T(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{d.activeAnimations.layout--},onComplete:()=>{d.activeAnimations.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&tR(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,Y.createBox)();let e=(0,G.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=(0,G.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}I(e,i),(0,U.transformBox)(e,n),(0,G.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new te),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&tu("z",t,s,this.animationValues);for(let e=0;e<to.length;e++)tu(`rotate${to[e]}`,t,s,this.animationValues),tu(`skew${to[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=(0,w.resolveMotionValue)(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,w.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!(0,tn.hasTransform)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let s="",n=t.x.translate/e.x,r=t.y.translate/e.y,a=i?.z||0;if((n||r||a)&&(s=`translate3d(${n}px, ${r}px, ${a}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:r,skewX:a,skewY:o}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotateX(${n}deg) `),r&&(s+=`rotateY(${r}deg) `),a&&(s+=`skewX(${a}deg) `),o&&(s+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(s+=`scale(${o}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(r=i(n,r)),t.transform=r;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,s.animationValues?t.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,ti.scaleCorrectors){if
1(void 0===n[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=ti.scaleCorrectors[e],l="none"===r?n[e]:i(n[e],s);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=s===this?(0,w.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(tg),this.root.sharedNodes.clear()}}}function tc(t){t.updateLayout()}function td(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,r=e.source!==t.layout.source;"size"===n?(0,ts.eachAxis)(t=>{let s=r?e.measuredBox[t]:e.layoutBox[t],n=(0,G.calcLength)(s);s.min=i[t].min,s.max=s.min+n}):tR(n,e.layoutBox,i)&&(0,ts.eachAxis)(s=>{let n=r?e.measuredBox[s]:e.layoutBox[s],a=(0,G.calcLength)(i[s]);n.max=n.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+a)});let a=(0,Y.createDelta)();(0,G.calcBoxDelta)(a,i,e.layoutBox);let o=(0,Y.createDelta)();r?(0,G.calcBoxDelta)(o,t.applyTransform(s,!0),e.measuredBox):(0,G.calcBoxDelta)(o,i,e.layoutBox);let l=!q(a),u=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let a=(0,Y.createBox)();(0,G.calcRelativePosition)(a,e.layoutBox,n.layoutBox);let o=(0,Y.createBox)();(0,G.calcRelativePosition)(o,i,r.layoutBox),J(a,o)||(u=!0),s.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,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 tp(t){n.statsBuffer.value&&ta.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function tm(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tf(t){t.clearSnapshot()}function tg(t){t.clearMeasurements()}function tv(t){t.isLayoutDirty=!1}function ty(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tx(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tT(t){t.resolveTargetDelta()}function tb(t){t.calcProjection()}function tP(t){t.resetSkewAndRotation()}function tV(t){t.removeLeadSnapshot()}function tS(t,e,i){t.translate=(0,m.mixNumber)(e.translate,0,i),t.scale=(0,m.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tw(t,e,i,s){t.min=(0,m.mixNumber)(e.min,i.min,s),t.max=(0,m.mixNumber)(e.max,i.max,s)}function tM(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tA={duration:.45,ease:[.4,0,.1,1]},tC=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tD=tC("applewebkit/")&&!tC("chrome/")?Math.round:v.noop;function tE(t){t.min=tD(t.min),t.max=tD(t.max)}function tR(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,G.isNear)(Q(e),Q(i),.2)}function tk(t){return t!==t.root&&t.scroll?.wasRoot}var tL=t.i(39653);let tB=th({attachResizeListener:(t,e)=>(0,tL.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tF={current:void 0},tj=th({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tF.current){let t=new tB({});t.mount(window),t.setOptions({layoutScroll:!0}),tF.current=t}return tF.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});t.s(["HTMLProjectionNode",()=>tj],859876);let tO={pan:{Feature:i.PanGesture},drag:{Feature:e.DragGesture,ProjectionNode:tj,MeasureLayout:s.MeasureLayout}};t.s(["drag",()=>tO],371056);var tI=t.i(210681);function tN(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);let n=i?.[t]??s.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t)}function tU(t,e){let i=tN(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function tG(t){return!("touch"===t.pointerType||(0,tI.isDragActive)())}t.s(["resolveElements",()=>tN],369710),t.s(["setupGesture",()=>tU],664356);var t$=t.i(745469),tH=t.i(444598);function tW(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&l.frame.postRender(()=>n(e,(0,t$.extractEventInfo)(e)))}class tz extends tH.Feature{mount(){let{current:t}=this.node;
1t&&(this.unmount=function(t,e,i={}){let[s,n,r]=tU(t,i),a=t=>{if(!tG(t))return;let{target:i}=t,s=e(i,t);if("function"!=typeof s||!i)return;let r=t=>{tG(t)&&(s(t),i.removeEventListener("pointerleave",r))};i.addEventListener("pointerleave",r,n)};return s.forEach(t=>{t.addEventListener("pointerenter",a,n)}),r}(t,(t,e)=>(tW(this.node,e,"Start"),t=>tW(this.node,t,"End"))))}unmount(){}}t.s(["HoverGesture",()=>tz],59053);var tK=t.i(640746),tY=tH;class tX extends tY.Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,tK.pipe)((0,tL.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,tL.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}t.s(["FocusGesture",()=>tX],155738)},812064,t=>{"use strict";var e=t.i(264250);function i(t){return(0,e.isObject)(t)&&"offsetHeight"in t}t.s(["isHTMLElement",()=>i])},248444,t=>{"use strict";var e=t.i(882919),i=t.i(371056),s=t.i(59053),n=t.i(155738),r=t.i(812064),a=t.i(210681);let o=(t,e)=>!!e&&(t===e||o(t,e.parentElement));var l=t.i(414161),u=t.i(664356);let h=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),c=new WeakSet;function d(t){return e=>{"Enter"===e.key&&t(e)}}function p(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function m(t){return(0,l.isPrimaryPointer)(t)&&!(0,a.isDragActive)()}var f=t.i(347248),g=t.i(745469),v=t.i(444598);function y(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&f.frame.postRender(()=>n(e,(0,g.extractEventInfo)(e)))}class x extends v.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,a]=(0,u.setupGesture)(t,i),l=t=>{let s=t.currentTarget;if(!m(t))return;c.add(s);let r=e(s,t),a=(t,e)=>{window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",u),c.has(s)&&c.delete(s),m(t)&&"function"==typeof r&&r(t,{success:e})},l=t=>{a(t,s===window||s===document||i.useGlobalTarget||o(s,t.target))},u=t=>{a(t,!1)};window.addEventListener("pointerup",l,n),window.addEventListener("pointercancel",u,n)};return s.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",l,n),(0,r.isHTMLElement)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=d(()=>{if(c.has(i))return;p(i,"down");let t=d(()=>{p(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>p(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,n)),h.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),a}(t,(t,e)=>(y(this.node,e,"Start"),(t,{success:e})=>y(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}var T=v;let b=new WeakMap,P=new WeakMap,V=t=>{let e=b.get(t.target);e&&e(t)},S=t=>{t.forEach(V)},w={some:0,all:1};class M extends T.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:r="some",once:a}=i,o={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:w[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=e?i:s;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;P.has(i)||P.set(i,{});let s=P.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(S,{root:t,...e})),s[n]}(o),b.set(t,l),e.observe(t),()=>{b.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let A={inView:{Feature:M},tap:{Feature:x},focus:{Feature:n.FocusGesture},hover:{Feature:s.HoverGesture}};var C=t.i(859876),D=t.i(936283);let E={layout:{ProjectionNode:C.HTMLProjectionNode,MeasureLayout:D.MeasureLayout}},R={...e.animations,...A,...i.drag,...E};t.s(["featureBundle",()=>R],248444)}]);
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.