1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,260981,t=>{"use strict";let e=(0,t.i(650394).createContext)({});t.s(["LayoutGroupContext",()=>e])},591959,t=>{"use strict";var e=t.i(650394);function i(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}t.s(["useConstant",()=>i])},810268,t=>{"use strict";let e=(0,t.i(650394).createContext)(null);t.s(["PresenceContext",()=>e])},791933,t=>{"use strict";let e=(0,t.i(650394).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",()=>e])},850286,t=>{"use strict";var e=t.i(650394),i=t.i(810268);function s(t=!0){let r=(0,e.useContext)(i.PresenceContext);if(null===r)return[!0,null];let{isPresent:n,onExitComplete:o,register:a}=r,l=(0,e.useId)();(0,e.useEffect)(()=>{t&&a(l)},[t]);let u=(0,e.useCallback)(()=>t&&o&&o(l),[l,o,t]);return!n&&o?[!1,u]:[!0]}t.s(["usePresence",()=>s])},981201,t=>{"use strict";let e="undefined"!=typeof window;t.s(["isBrowser",()=>e])},370566,t=>{"use strict";var e=t.i(650394);let i=t.i(981201).isBrowser?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",()=>i])},80165,827001,648542,317745,735274,103495,196997,437443,324296,61064,534487,186423,990522,191753,324291,153579,64095,30867,405515,504987,740249,964115,551830,414189,861311,310139,883826,969167,942487,406198,754803,353140,9647,800740,780404,712108,955397,544364,466952,105404,385959,406484,277656,858471,954442,844569,774863,391756,220789,958606,60898,807230,486945,t=>{"use strict";let e,i;function s(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,s)=>"create"===s?t:(e.has(s)||e.set(s,t(s)),e.get(s))})}function r(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}t.i(21442),t.s(["createDOMMotionComponentProxy",()=>s],80165),t.s(["isAnimationControls",()=>r],827001);let n=t=>Array.isArray(t);function o(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}function a(t){return"string"==typeof t||Array.isArray(t)}function l(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function u(t,e,i,s){if("function"==typeof e){let[r,n]=l(s);e=e(void 0!==i?i:t.custom,r,n)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,n]=l(s);e=e(void 0!==i?i:t.custom,r,n)}return e}function h(t,e,i){let s=t.getProps();return u(s,e,void 0!==i?i:s.custom,t)}t.s(["isVariantLabel",()=>a],648542),t.s(["resolveVariantFromProps",()=>u],317745);let c=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d=["initial",...c];t.s(["variantPriorityOrder",()=>c,"variantProps",()=>d],735274),t.i(641976);var p=t.i(110372);let m=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],f=new Set(m);t.s(["transformPropOrder",()=>m,"transformProps",()=>f],103495);let v=new Set(["width","height","top","left","right","bottom",...m]),g=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),y=t=>n(t)?t[t.length-1]||0:t;t.s(["isCustomValue",()=>g,"resolveFinalValueInKeyframes",()=>y],196997);t.i(262502);var x=t.i(415199);let P=["read","resolveKeyframes","update","preRender","render","postRender"];function T(t,e){let i=!1,s=!0,r={delta:0,timestamp:0,isProcessing:!1},n=()=>i=!0,o=P.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,s=!1,r=!1,n=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){n.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,r=!1,o=!1)=>{let a=o&&s?e:i;return r&&n.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),n.delete(t)},process:t=>{if(o=t,s){r=!0;return}s=!0,[e,i]=[i,e],e.forEach(a),e.clear(),s=!1,r&&(r=!1,l.process(t))}};return l}(n),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:c,postRender:d}=o,p=()=>{let n=performance.now();i=!1,r.delta=s?1e3/60:Math.max(Math.min(n-r.timestamp,40),1),r.timestamp=n,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),c.process(r),d.process(r),r.isProcessing=!1,i&&e&&(s=!1,t(p))};return{schedule:P.reduce((e,n)=>{let a=o[n];return e[n]=(e,n=!1,o=!1)=>(!i&&(i=!0,s=!0,r.isProcessing||t(p)),a.schedule(e,n,o)),e},{}),cancel:t=>{for(let e=0;e<P.length;e++)o[P[e]].cancel(t)},state:r,steps:o}}t.s(["createRenderBatcher",()=>T],437443);let{schedule:S,cancel:w,state:b,steps:V}=T("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:x.noop,!0);function A(){e=void 0}t.s(["cancelFrame",()=>w,"frame",()=>S,"frameData",()=>b,"frameSteps",()=>V],324296);let M={now:()=>(void 0===e&&M.set(b.isProcessing?b.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(A)}};function C(t,e){-1===t.indexOf(e)&&t.push(e)}function D(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["time",()=>M],61064),t.s(["addUniqueItem",()=>C,"removeItem",()=>D],534487);class E{constructor(){this.subscriptions=[]}add(t){return C(this.subscriptions,t),()=>D(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 r=0;r<s;r++){let s=this.subscriptions[r];s&&s(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}t.s(["SubscriptionManager",()=>E],186423);class R{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=M.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=M.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 E);let i=this.events[t].add(e);return"change"===t?()=>{i(),S.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return i&&i.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=M.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function k(t,e){return new R(t,e)}t.s(["motionValue",()=>k],990522);let B=t=>!!(t&&t.getVelocity);function F(t,e){let i=t.getValue("willChange");if(B(i)&&i.add)return i.add(e)}t.s(["isMotionValue",()=>B],191753);let L=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();t.s(["camelToDash",()=>L],324291);let j="data-"+L("framerAppearId");function O(t){return t.props[j]}
1t.s(["optimizedAppearDataAttribute",()=>j],153579),t.s(["getOptimisedAppearId",()=>O],64095);var I=t.i(45070),U=t.i(522671),N=t.i(476749),$=t.i(524982),W=t.i(375534),z=t.i(973396);let G=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function K(t,e,i,s){return t===e&&i===s?x.noop:r=>0===r||1===r?r:G(function(t,e,i,s,r){let n,o,a=0;do(n=G(o=e+(i-e)/2,s,r)-t)>0?i=o:e=o;while(Math.abs(n)>1e-7&&++a<12)return o}(r,0,1,t,i),e,s)}let H=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Y=t=>e=>1-t(1-e),X=K(.33,1.53,.69,.99),q=Y(X),Z=H(q),_=t=>(t*=2)<1?.5*q(t):.5*(2-Math.pow(2,-10*(t-1))),J=t=>1-Math.sin(Math.acos(t)),Q=Y(J),tt=H(J);t.s(["circIn",()=>J,"circInOut",()=>tt,"circOut",()=>Q],30867);let te=t=>/^0[^.\s]+$/u.test(t);t.s(["isZeroValueString",()=>te],405515);let ti=(t,e,i)=>i>e?e:i<t?t:i;t.s(["clamp",()=>ti],504987);let ts={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},tr={...ts,transform:t=>ti(0,1,t)},tn={...ts,default:1},to=t=>Math.round(1e5*t)/1e5,ta=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tl=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tu=(t,e)=>i=>!!("string"==typeof i&&tl.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),th=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[r,n,o,a]=s.match(ta);return{[t]:parseFloat(r),[e]:parseFloat(n),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tc={...ts,transform:t=>Math.round(ti(0,255,t))},td={test:tu("rgb","red"),parse:th("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+tc.transform(t)+", "+tc.transform(e)+", "+tc.transform(i)+", "+to(tr.transform(s))+")"},tp={test:tu("#"),parse:function(t){let e="",i="",s="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,s+=s,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}},transform:td.transform},tm=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tf=tm("deg"),tv=tm("%"),tg=tm("px"),ty=tm("vh"),tx=tm("vw"),tP={...tv,parse:t=>tv.parse(t)/100,transform:t=>tv.transform(100*t)};t.s(["degrees",()=>tf,"percent",()=>tv,"progressPercentage",()=>tP,"px",()=>tg,"vh",()=>ty,"vw",()=>tx],740249);let tT={test:tu("hsl","hue"),parse:th("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+tv.transform(to(e))+", "+tv.transform(to(i))+", "+to(tr.transform(s))+")"},tS={test:t=>td.test(t)||tp.test(t)||tT.test(t),parse:t=>td.test(t)?td.parse(t):tT.test(t)?tT.parse(t):tp.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?td.transform(t):tT.transform(t)};t.s(["color",()=>tS],964115);let tw=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tb="number",tV="color",tA=/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 tM(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},r=[],n=0,o=e.replace(tA,t=>(tS.test(t)?(s.color.push(n),r.push(tV),i.push(tS.parse(t))):t.startsWith("var(")?(s.var.push(n),r.push("var"),i.push(t)):(s.number.push(n),r.push(tb),i.push(parseFloat(t))),++n,"${}")).split("${}");return{values:i,split:o,indexes:s,types:r}}function tC(t){return tM(t).values}function tD(t){let{split:e,types:i}=tM(t),s=e.length;return t=>{let r="";for(let n=0;n<s;n++)if(r+=e[n],void 0!==t[n]){let e=i[n];e===tb?r+=to(t[n]):e===tV?r+=tS.transform(t[n]):r+=t[n]}return r}}let tE=t=>"number"==typeof t?0:t,tR={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(ta))?void 0:e.length)||0)+((null==(i=t.match(tw))?void 0:i.length)||0)>0},parse:tC,createTransformer:tD,getAnimatableNone:function(t){let e=tC(t);return tD(t)(e.map(tE))}};t.s(["analyseComplexValue",()=>tM,"complex",()=>tR],551830);let tk=new Set(["brightness","contrast","saturate","opacity"]);function tB(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(ta)||[];
1if(!s)return t;let r=i.replace(s,""),n=+!!tk.has(e);return s!==i&&(n*=100),e+"("+n+r+")"}let tF=/\b([a-z-]*)\(.*?\)/gu,tL={...tR,getAnimatableNone:t=>{let e=t.match(tF);return e?e.map(tB).join(" "):t}},tj={...ts,transform:Math.round},tO={borderWidth:tg,borderTopWidth:tg,borderRightWidth:tg,borderBottomWidth:tg,borderLeftWidth:tg,borderRadius:tg,radius:tg,borderTopLeftRadius:tg,borderTopRightRadius:tg,borderBottomRightRadius:tg,borderBottomLeftRadius:tg,width:tg,maxWidth:tg,height:tg,maxHeight:tg,top:tg,right:tg,bottom:tg,left:tg,padding:tg,paddingTop:tg,paddingRight:tg,paddingBottom:tg,paddingLeft:tg,margin:tg,marginTop:tg,marginRight:tg,marginBottom:tg,marginLeft:tg,backgroundPositionX:tg,backgroundPositionY:tg,rotate:tf,rotateX:tf,rotateY:tf,rotateZ:tf,scale:tn,scaleX:tn,scaleY:tn,scaleZ:tn,skew:tf,skewX:tf,skewY:tf,distance:tg,translateX:tg,translateY:tg,translateZ:tg,x:tg,y:tg,z:tg,perspective:tg,transformPerspective:tg,opacity:tr,originX:tP,originY:tP,originZ:tg,zIndex:tj,size:tg,fillOpacity:tr,strokeOpacity:tr,numOctaves:tj};t.s(["numberValueTypes",()=>tO],414189);let tI={...tO,color:tS,backgroundColor:tS,outlineColor:tS,fill:tS,stroke:tS,borderColor:tS,borderTopColor:tS,borderRightColor:tS,borderBottomColor:tS,borderLeftColor:tS,filter:tL,WebkitFilter:tL},tU=t=>tI[t];function tN(t,e){let i=tU(t);return i!==tL&&(i=tR),i.getAnimatableNone?i.getAnimatableNone(e):void 0}t.s(["getDefaultValueType",()=>tU],861311),t.s(["getAnimatableNone",()=>tN],310139);let t$=new Set(["auto","none","0"]),tW=t=>t===ts||t===tg,tz=(t,e)=>parseFloat(t.split(", ")[e]),tG=(t,e)=>(i,{transform:s})=>{if("none"===s||!s)return 0;let r=s.match(/^matrix3d\((.+)\)$/u);if(r)return tz(r[1],e);{let e=s.match(/^matrix\((.+)\)$/u);return e?tz(e[1],t):0}},tK=new Set(["x","y","z"]),tH=m.filter(t=>!tK.has(t)),tY={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:tG(4,13),y:tG(5,14)};tY.translateX=tY.x,tY.translateY=tY.y;let tX=new Set,tq=!1,tZ=!1;function t_(){if(tZ){let t=Array.from(tX).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,s=(e=[],tH.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e);s.length&&(i.set(t,s),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var s;null==(s=t.getValue(e))||s.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tZ=!1,tq=!1,tX.forEach(t=>t.complete()),tX.clear()}
1function tJ(){tX.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tZ=!0)})}function tQ(){tJ(),t_()}class t0{constructor(t,e,i,s,r,n=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=r,this.isAsync=n}scheduleResolve(){this.isScheduled=!0,this.isAsync?(tX.add(this),tq||(tq=!0,S.read(tJ),S.resolveKeyframes(t_))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;for(let r=0;r<t.length;r++)if(null===t[r])if(0===r){let r=null==s?void 0:s.get(),n=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let s=i.readValue(e,n);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=n),s&&void 0===r&&s.set(t[0])}else t[r]=t[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),tX.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,tX.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}t.s(["KeyframeResolver",()=>t0,"flushKeyframeResolvers",()=>tQ],883826);var t1=t.i(278834);let t4=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);t.s(["isNumericalString",()=>t4],969167);let t5=t=>e=>"string"==typeof e&&e.startsWith(t),t9=t5("--"),t6=t5("var(--"),t2=t=>!!t6(t)&&t3.test(t.split("/*")[0].trim()),t3=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;t.s(["isCSSVariableName",()=>t9,"isCSSVariableToken",()=>t2],942487);let t8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,t7=t=>e=>e.test(t);t.s(["testValueType",()=>t7],406198);let et=[ts,tg,tv,tf,tx,ty,{test:t=>"auto"===t,parse:t=>t}],ee=t=>et.find(t7(t));t.s(["dimensionValueTypes",()=>et,"findDimensionValueType",()=>ee],754803);class ei extends t0{constructor(t,e,i,s,r){super(t,e,i,s,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let s=t[i];if("string"==typeof s&&t2(s=s.trim())){let r=function t(e,i,s=1){(0,t1.invariant)(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,n]=function(t){let e=t8.exec(t);if(!e)return[,];let[,i,s,r]=e;return[`--${null!=i?i:s}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return t4(t)?parseFloat(t):t}return t2(n)?t(n,i,s+1):n}(s,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!v.has(i)||2!==t.length)return;let[s,r]=t,n=ee(s),o=ee(r);if(n!==o)if(tW(n)&&tW(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var s;("number"==typeof(s=t[e])?0===s:null===s||"none"===s||"0"===s||te(s))&&i.push(e)}i.length&&function(t,e,i){let s,r=0;for(;r<t.length&&!s;){let e=t[r];"string"==typeof e&&!t$.has(e)&&tM(e).values.length&&(s=t[r]),r++}if(s&&i)for(let r of e)t[r]=tN(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=tY[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(){var t;let{element:e,name:i,unresolvedKeyframes:s}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let n=s.length-1,o=s[n];s[n]=tY[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}t.s(["DOMKeyframesResolver",()=>ei],353140);let es=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tR.test(t)||"0"===t)&&!t.startsWith("url(")),er=t=>null!==t;function en(t,{repeat:e,repeatType:i="loop"},s){let r=t.filter(er),n=e&&"loop"!==i&&e%2==1?0:r.length-1;return n&&void 0!==s?s:r[n]}class eo{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:n="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=M.now(),this.options={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:r,repeatType:n,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||tQ(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=M.now(),this.hasAttemptedResolve=!0;let{name:i,type:s,velocity:r,delay:n,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,s){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let n=t[t.length-1],o=es(r,e),a=es(n,e);return(0,t1.warning)(o===a,`You are trying to animate ${e} from "${r}" to "${n}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${n} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||(0,W.isGenerator)(i))&&s)}(t,i,s,r))if(n)this.options.duration=0;else{a&&a(en(t,this.options,e)),o&&o(),this.resolveFinishedPromise();return}let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}var ea=t.i(547060);let el=(t,e,i)=>t+(e-t)*i;function eu(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function eh(t,e){return i=>i>0?e:t}t.s(["mixNumber",()=>el],9647);let ec=(t,e,i)=>{let s=t*t,r=i*(e*e-s)+s;return r<0?0:Math.sqrt(r)},ed=[tp,td,tT];function ep(t){let e=ed.find(e=>e.test(t));if((0,t1.warning)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tT&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let r=0,n=0,o=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,a=2*i-s;r=eu(a,s,t+1/3),n=eu(a,s,t),o=eu(a,s,t-1/3)}else r=n=o=i;return{red:Math.round(255*r),green:Math.round(255*n),blue:Math.round(255*o),alpha:s}}(i)),i}let em=(t,e)=>{let i=ep(t),s=ep(e);if(!i||!s)return eh(t,e);let r={...i};return t=>(r.red=ec(i.red,s.red,t),r.green=ec(i.green,s.green,t),r.blue=ec(i.blue,s.blue,t),r.alpha=el(i.alpha,s.alpha,t),td.transform(r))},ef=(t,e)=>i=>e(t(i)),ev=(...t)=>t.reduce(ef);t.s(["pipe",()=>ev],800740);let eg=new Set(["none","hidden"]);function ey(t,e){return i=>el(t,e,i)}function ex(t){return"number"==typeof t?ey:"string"==typeof t?t2(t)?eh:tS.test(t)?em:eS:Array.isArray(t)?eP:"object"==typeof t?tS.test(t)?em:eT:eh}function eP(t,e){let i=[...t],s=i.length,r=t.map((t,i)=>ex(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=r[e](t);return i}}function eT(t,e){let i={...t,...e},s={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(s[r]=ex(t[r])(t[r],e[r]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let eS=(t,e)=>{let i=tR.createTransformer(e),s=tM(t),r=tM(e);if(!(s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length))return(0,t1.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.`),eh(t,e);if(eg.has(t)&&!r.values.length||eg.has(e)&&!s.values.length)return eg.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return ev(eP(function(t,e){var i;let s=[],r={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let o=e.types[n],a=t.indexes[o][r[o]],l=null!=(i=t.values[a])?i:0;s[n]=l,r[o]++}return s}(s,r),r.values),i)};function ew(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?el(t,e,i):ex(t)(t,e)}var eb=t.i(663391);function eV(t,e,i){var s,r;let n=Math.max(e-5,0);return s=i-t(n),(r=e-n)?1e3/r*s:0}let eA=.01,eM=2,eC=.005,eD=.5;function eE(t,e){return t*Math.sqrt(1-e*e)}let eR=["duration","bounce"],ek=["stiffness","damping","mass"];function eB(t,e){return e.some(e=>void 0!==t[e])}function eF(t=.3,e=.3){let i,s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:n}=s,o=s.keyframes[0],a=s.keyframes[s.keyframes.length-1],l={done:!1,value:o},{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(!eB(t,ek)&&eB(t,eR))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,r=2*ti(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:r}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:s=1}){let r,n;(0,t1.warning)(t<=(0,U.secondsToMilliseconds)(10),"Spring duration must be 10 seconds or less");let o=1-e;o=ti(.05,1,o),t=ti(.01,10,(0,U.millisecondsToSeconds)(t)),o<1?(r=e=>{let s=e*o,r=s*t;return .001-(s-i)/eE(e,o)*Math.exp(-r)},n=e=>{let s=e*o*t,n=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-s),l=eE(Math.pow(e,2),o);return(s*i+i-n)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),n=e=>t*t*(i-e)*Math.exp(-e*t));
1let a=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(r,n,5/t);if(t=(0,U.secondsToMilliseconds)(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*s;return{stiffness:e,damping:2*o*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-(0,U.millisecondsToSeconds)(s.velocity||0)}),f=p||0,v=h/(2*Math.sqrt(u*c)),g=a-o,y=(0,U.millisecondsToSeconds)(Math.sqrt(u/c)),x=5>Math.abs(g);if(r||(r=x?eA:eM),n||(n=x?eC:eD),v<1){let t=eE(y,v);i=e=>a-Math.exp(-v*y*e)*((f+v*y*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===v)i=t=>a-Math.exp(-y*t)*(g+(f+y*g)*t);else{let t=y*Math.sqrt(v*v-1);i=e=>{let i=Math.exp(-v*y*e),s=Math.min(t*e,300);return a-i*((f+v*y*g)*Math.sinh(s)+t*g*Math.cosh(s))/t}}let P={calculatedDuration:m&&d||null,next:t=>{let e=i(t);if(m)l.done=t>=d;else{let s=0;v<1&&(s=0===t?(0,U.secondsToMilliseconds)(f):eV(i,t,e));let o=Math.abs(a-e)<=n;l.done=Math.abs(s)<=r&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min((0,ea.calcGeneratorDuration)(P),ea.maxGeneratorDuration),e=(0,eb.generateLinearEasing)(e=>P.next(t*e).value,t,30);return t+"ms "+e}};return P}function eL({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,v=p+f,g=void 0===o?v:o(v);g!==v&&(f=g-p);let y=t=>-f*Math.exp(-t/s),x=t=>g+y(t),P=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?g:i},T=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=eF({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:eV(x,t,m.value),damping:r,stiffness:n,restDelta:u,restSpeed:h})}};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,P(t),T(t)),void 0!==c&&t>=c)?d.next(t-c):(e||P(t),m)}}}t.s(["spring",()=>eF],780404);let ej=K(.42,0,1,1),eO=K(0,0,.58,1),eI=K(.42,0,.58,1),eU=t=>Array.isArray(t)&&"number"!=typeof t[0];t.s(["isEasingArray",()=>eU],712108);var eN=t.i(35698);let e$={linear:x.noop,easeIn:ej,easeInOut:eI,easeOut:eO,circIn:J,circInOut:tt,circOut:Q,backIn:q,backInOut:Z,backOut:X,anticipate:_},eW=t=>{if((0,eN.isBezierDefinition)(t)){(0,t1.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,s,r]=t;return K(e,i,s,r)}return"string"==typeof t?((0,t1.invariant)(void 0!==e$[t],`Invalid easing type '${t}'`),e$[t]):t};var ez=t.i(138158);function eG(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let r=(0,ez.progress)(0,e,s);t.push(el(i,1,r))}}function eK(t){let e=[0];return eG(e,t.length-1),e}function eH({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var r;let n=eU(s)?s.map(eW):eW(s),o={done:!1,value:e[0]},a=function(t,e,{clamp:i=!0,ease:s,mixer:r}={}){let n=t.length;if((0,t1.invariant)(n===e.length,"Both input and output ranges must be the same length"),1===n)return()=>e[0];if(2===n&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[n-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let s=[],r=i||ew,n=t.length-1;for(let i=0;i<n;i++){let n=r(t[i],t[i+1]);e&&(n=ev(Array.isArray(e)?e[i]||x.noop:e,n)),s.push(n)}return s}(e,s,r),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let s=0;if(l>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let r=(0,ez.progress)(t[s],t[s+1],i);return a[s](r)};return i?e=>u(ti(t[0],t[n-1],e)):u}((r=i&&i.length===e.length?i:eK(e),r.map(e=>e*t)),e,{ease:Array.isArray(n)?n:e.map(()=>n||eI).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}t.s(["fillOffset",()=>eG],955397),t.s(["defaultOffset",()=>eK],544364);let eY=t=>{let e=({timestamp:e})=>t(e);return{start:()=>S.update(e,!0),stop:()=>w(e),now:()=>b.isProcessing?b.timestamp:M.now()}},eX={decay:eL,inertia:eL,tween:eH,keyframes:eH,spring:eF},eq=t=>t/100;class eZ extends eo{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};const{name:e,motionValue:i,element:s,keyframes:r}=this.options,n=(null==s?void 0:s.KeyframeResolver)||t0,o=(t,e)=>this.onKeyframesResolved(t,e);this.resolver=new n(r,o,e,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}
1initPlayback(t){let e,i,{type:s="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:o,velocity:a=0}=this.options,l=(0,W.isGenerator)(s)?s:eX[s]||eH;l!==eH&&"number"!=typeof t[0]&&(e=ev(eq,ew(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=(0,ea.calcGeneratorDuration)(u));let{calculatedDuration:h}=u,c=h+n;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(r+1)-n}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:s,generator:r,mirroredGenerator:n,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return r.next(0);let{delay:c,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-c*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=r;if(d){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/h)):"mirror"===p&&(x=n)),y=ti(0,1,i)*h}let P=g?{done:!1,value:a[0]}:x.next(y);o&&(P.value=o(P.value));let{done:T}=P;g||null===l||(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return S&&void 0!==s&&(P.value=en(a,this.options,s)),f&&f(P.value),S&&this.finish(),P}get duration(){let{resolved:t}=this;return t?(0,U.millisecondsToSeconds)(t.calculatedDuration):0}get time(){return(0,U.millisecondsToSeconds)(this.currentTime)}set time(t){t=(0,U.secondsToMilliseconds)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,U.millisecondsToSeconds)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=eY,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let s=this.driver.now();null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=s):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(t=this.currentTime)?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let e_=new Set(["opacity","clipPath","filter","transform"]),eJ=(0,t.i(735287).memo)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),eQ={anticipate:_,backInOut:Z,circInOut:tt};class e0 extends eo{constructor(t){super(t);const{name:e,motionValue:i,element:s,keyframes:r}=this.options;this.resolver=new ei(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,s),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:s=300,times:r,ease:n,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof n&&(0,N.supportsLinearEasing)()&&n in eQ&&(n=eQ[n]),i=this.options,
1(0,W.isGenerator)(i.type)||"spring"===i.type||!(0,z.isWaapiSupportedEasing)(i.ease)){let{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,h=function(t,e){let i=new eZ({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),s={done:!1,value:t[0]},r=[],n=0;for(;!s.done&&n<2e4;)r.push((s=i.sample(n)).value),n+=10;return{times:void 0,keyframes:r,duration:n-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),s=h.duration,r=h.times,n=h.ease,o="keyframes"}let h=function(t,e,i,{delay:s=0,duration:r=300,repeat:n=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=(0,z.mapEasingToNativeEasing)(a,r);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:s,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:n+1,direction:"reverse"===o?"alternate":"normal"})}(a.owner.current,l,t,{...this.options,duration:s,times:r,ease:n});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?((0,$.attachTimeline)(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;a.set(en(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:s,times:r,type:o,ease:n,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,U.millisecondsToSeconds)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,U.millisecondsToSeconds)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,U.secondsToMilliseconds)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return x.noop;let{animation:i}=e;(0,$.attachTimeline)(i,t)}else this.pendingTimeline=t;return x.noop}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:s,type:r,ease:n,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new eZ({...u,keyframes:i,duration:s,type:r,ease:n,times:o,isGenerator:!0}),c=(0,U.secondsToMilliseconds)(this.time);t.setWithVelocity(h.sample(c-10).value,h.sample(c).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:r,damping:n,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return eJ()&&i&&e_.has(i)&&!a&&!l&&!s&&"mirror"!==r&&0!==n&&"inertia"!==o}}let e1={type:"spring",stiffness:500,damping:25,restSpeed:10},e4={type:"keyframes",duration:.8},e5={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e9=(t,e,i,s={},r,n)=>o=>{let a=(0,p.getValueTransition)(s,t)||{},l=a.delay||s.delay||0,{elapsed:u=0}=s;u-=(0,U.secondsToMilliseconds)(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:n?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:r,repeat:n,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(h={...h,...((t,{keyframes:e})=>e.length>2?e4:f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:e1:e5)(t,h)}),h.duration&&(h.duration=(0,U.secondsToMilliseconds)(h.duration)),h.repeatDelay&&(h.repeatDelay=(0,U.secondsToMilliseconds)(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0===h.delay&&(c=!0)),c&&!n&&void 0!==e.get()){let t=en(h.keyframes,a);if(void 0!==t)return S.update(()=>{h.onUpdate(t),h.onComplete()}),new I.GroupPlaybackControls([])}return!n&&e0.supports(h)?new e0(h):new eZ(h)};
1function e6(t,e,{delay:i=0,transitionOverride:s,type:r}={}){var n;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);let u=[],c=r&&t.animationState&&t.animationState.getState()[r];for(let e in l){let s=t.getValue(e,null!=(n=t.latestValues[e])?n:null),r=l[e];if(void 0===r||c&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(c,e))continue;let a={delay:i,...(0,p.getValueTransition)(o||{},e)},h=!1;if(window.MotionHandoffAnimation){let i=O(t);if(i){let t=window.MotionHandoffAnimation(i,e,S);null!==t&&(a.startTime=t,h=!0)}}F(t,e),s.start(e9(e,s,r,t.shouldReduceMotion&&v.has(e)?{type:!1}:a,t,h));let d=s.animation;d&&u.push(d)}return a&&Promise.all(u).then(()=>{S.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:s={},...r}=h(t,e)||{};for(let e in r={...r,...i}){let i=y(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,k(i))}}(t,a)})}),u}function e2(t,e,i={}){var s;let r=h(t,e,"exit"===i.type?null==(s=t.presenceContext)?void 0:s.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(n=i.transitionOverride);let o=r?()=>Promise.all(e6(t,r,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=n;return function(t,e,i=0,s=0,r=1,n){let o=[],a=(t.variantChildren.size-1)*s,l=1===r?(t=0)=>t*s:(t=0)=>a-t*s;return Array.from(t.variantChildren).sort(e3).forEach((t,s)=>{t.notify("AnimationStart",e),o.push(e2(t,e,{...n,delay:i+l(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+s,o,a,i)}:()=>Promise.resolve(),{when:l}=n;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function e3(t,e){return t.sortNodePosition(e)}t.s(["animateMotionValue",()=>e9],466952),t.s(["animateTarget",()=>e6],105404);let e8=d.length,e7=[...c].reverse(),it=c.length;function ie(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ii(){return{animate:ie(!0),whileInView:ie(),whileHover:ie(),whileTap:ie(),whileDrag:ie(),whileFocus:ie(),exit:ie()}}class is{constructor(t){this.isMounted=!1,this.node=t}update(){}}t.s(["Feature",()=>is],385959);let ir=0,io={animation:{Feature:class extends is{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>e2(t,e,i)));else if("string"==typeof e)s=e2(t,e,i);else{let r="function"==typeof e?h(t,e,i.custom):e;s=Promise.all(e6(t,r,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=ii(),s=!0,l=e=>(i,s)=>{var r;let n=h(t,s,"exit"===e?null==(r=t.presenceContext)?void 0:r.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function u(u){let{props:h}=t,c=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<e8;t++){let s=d[t],r=e.props[s];(a(r)||!1===r)&&(i[s]=r)}return i}(t.parent)||{},p=[],m=new Set,f={},v=1/0;for(let e=0;e<it;e++){var g,y;let d=e7[e],x=i[d],P=void 0!==h[d]?h[d]:c[d],T=a(P),S=d===u?x.isActive:null;!1===S&&(v=e);let w=P===c[d]&&P!==h[d]&&T;if(w&&s&&t.manuallyAnimateOnMount&&(w=!1),x.protectedKeys={...f},!x.isActive&&null===S||!P&&!x.prevProp||r(P)||"boolean"==typeof P)continue;let b=(g=x.prevProp,"string"==typeof(y=P)?y!==g:!!Array.isArray(y)&&!o(y,g)),V=b||d===u&&x.isActive&&!w&&T||e>v&&T,A=!1,M=Array.isArray(P)?P:[P],C=M.reduce(l(d),{});!1===S&&(C={});let{prevResolvedValues:D={}}=x,E={...D,...C},R=e=>{V=!0,m.has(e)&&(A=!0,m.delete(e)),x.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in E){let e=C[t],i=D[t];if(!f.hasOwnProperty(t))(n(e)&&n(i)?o(e,i):e===i)?void 0!==e&&m.has(t)?R(t):x.protectedKeys[t]=!0:null!=e?R(t):m.add(t)}x.prevProp=P,x.prevResolvedValues=C,x.isActive&&(f={...f,...C}),s&&t.blockInitialAnimation&&(V=!1);let k=!(w&&b)||A;V&&k&&p.push(...M.map(t=>({animation:t,options:{type:d}})))}if(m.size){let e={};m.forEach(i=>
1{let s=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=s?s:null}),p.push({animation:e})}let x=!!p.length;return s&&(!1===h.initial||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(x=!1),s=!1,x?e(p):Promise.resolve()}return{animateChanges:u,setActive:function(e,s){var r;if(i[e].isActive===s)return Promise.resolve();null==(r=t.variantChildren)||r.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,s)}),i[e].isActive=s;let n=u(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=ii(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();r(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}},exit:{Feature:class extends is{constructor(){super(...arguments),this.id=ir++}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(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}};t.s(["animations",()=>io],406484);var ia=t.i(886428),il=t.i(981645);function iu(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}function ih(t){return{point:{x:t.pageX,y:t.pageY}}}t.s(["addDomEvent",()=>iu],277656);let ic=t=>e=>(0,il.isPrimaryPointer)(e)&&t(e,ih(e));function id(t,e,i,s){return iu(t,e,ic(i),s)}t.s(["addPointerInfo",()=>ic,"extractEventInfo",()=>ih],858471);let ip=(t,e)=>Math.abs(t-e);class im{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:r=!1}={}){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=iy(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(ip(t.x,e.x)**2+ip(t.y,e.y)**2)>=3);if(!s&&!r)return;let{point:n}=i,{timestamp:o}=b;this.history.push({...n,timestamp:o});let{onStart:a,onMove:l}=this.handlers;s||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iv(e,this.transformPagePoint),S.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=iy("pointercancel"===t.type?this.lastMoveEventInfo:iv(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),s&&s(t,n)},!(0,il.isPrimaryPointer)(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;const n=iv(ih(t),this.transformPagePoint),{point:o}=n,{timestamp:a}=b;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,iy(n,this.history)),this.removeListeners=ev(id(this.contextWindow,"pointermove",this.handlePointerMove),id(this.contextWindow,"pointerup",this.handlePointerUp),id(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),w(this.updatePoint)}}function iv(t,e){return e?{point:e(t.point)}:t}function ig(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iy({point:t},e){return{point:t,delta:ig(t,ix(e)),offset:ig(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null,r=ix(t);for(;i>=0&&(s=t[i],!(r.timestamp-s.timestamp>(0,U.secondsToMilliseconds)(.1)));)i--;if(!s)return{x:0,y:0};let n=(0,U.millisecondsToSeconds)(r.timestamp-s.timestamp);if(0===n)return{x:0,y:0};let o={x:(r.x-s.x)/n,y:(r.y-s.y)/n};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function ix(t){return t[t.length-1]}function iP(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}t.s(["isRefObject",()=>iP],954442);function iT(t){return t.max-t.min}function iS(t,e,i){return Math.abs(t-e)<=i}
1function iw(t,e,i,s=.5){t.origin=s,t.originPoint=el(e.min,e.max,t.origin),t.scale=iT(i)/iT(e),t.translate=el(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 ib(t,e,i,s){iw(t.x,e.x,i.x,s?s.originX:void 0),iw(t.y,e.y,i.y,s?s.originY:void 0)}function iV(t,e,i){t.min=i.min+e.min,t.max=t.min+iT(e)}function iA(t,e,i){iV(t.x,e.x,i.x),iV(t.y,e.y,i.y)}function iM(t,e,i){t.min=e.min-i.min,t.max=t.min+iT(e)}function iC(t,e,i){iM(t.x,e.x,i.x),iM(t.y,e.y,i.y)}function iD(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 iE(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 iR(t,e,i){return{min:ik(t,e),max:ik(t,i)}}function ik(t,e){return"number"==typeof t?t:t[e]||0}t.s(["calcBoxDelta",()=>ib,"calcLength",()=>iT,"calcRelativeBox",()=>iA,"calcRelativePosition",()=>iC,"isNear",()=>iS],844569);let iB=()=>({translate:0,scale:1,origin:0,originPoint:0}),iF=()=>({x:iB(),y:iB()}),iL=()=>({min:0,max:0}),ij=()=>({x:iL(),y:iL()});function iO(t){return[t("x"),t("y")]}function iI({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function iU(t){return void 0===t||1===t}function iN({scale:t,scaleX:e,scaleY:i}){return!iU(t)||!iU(e)||!iU(i)}function i$(t){return iN(t)||iW(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iW(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}t.s(["createBox",()=>ij,"createDelta",()=>iF],774863),t.s(["eachAxis",()=>iO],391756);function iz(t,e,i){return i+e*(t-i)}function iG(t,e,i,s,r){return void 0!==r&&(t=s+r*(t-s)),s+i*(t-s)+e}function iK(t,e=0,i=1,s,r){t.min=iG(t.min,e,i,s,r),t.max=iG(t.max,e,i,s,r)}function iH(t,{x:e,y:i}){iK(t.x,e.translate,e.scale,e.originPoint),iK(t.y,i.translate,i.scale,i.originPoint)}function iY(t,e,i,s=!1){let r,n,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){n=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&iZ(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),n&&(e.x*=n.x.scale,e.y*=n.y.scale,iH(t,n)),s&&i$(r.latestValues)&&iZ(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function iX(t,e){t.min=t.min+e,t.max=t.max+e}function iq(t,e,i,s,r=.5){let n=el(t.min,t.max,r);iK(t,e,i,n,s)}function iZ(t,e){iq(t.x,e.x,e.scaleX,e.scale,e.originX),iq(t.y,e.y,e.scaleY,e.scale,e.originY)}function i_(t,e){return iI(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}function iJ(t,e,i){let s=i_(t,i),{scroll:r}=e;return r&&(iX(s.x,r.offset.x),iX(s.y,r.offset.y)),s}t.s(["has2DTranslate",()=>iW,"hasScale",()=>iN,"hasTransform",()=>i$],220789),t.s(["applyBoxDelta",()=>iH,"applyTreeDeltas",()=>iY,"scalePoint",()=>iz,"transformBox",()=>iZ,"translateAxis",()=>iX],958606),t.s(["measurePageBox",()=>iJ,"measureViewportBox",()=>i_],60898);let iQ=({current:t})=>t?t.ownerDocument.defaultView:null,i0=new WeakMap;class i1{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=ij(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let s=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(ih(t).point)},r=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:r}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,ia.setDragLock)(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iO(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tv.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=iT(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&S.postRender(()=>r(t,e)),F(this.visualElement,"transform");let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},n=(t,e)=>{let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:r,onDrag:n}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(s&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),n&&n(t,e)},o=(t,e)=>this.stop(t,e),a=()=>iO(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new im(t,{onSessionStart:s,onStart:r,onMove:n,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:iQ(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:s}=e;this.startAnimation(s);let{onDragEnd:r}=this.getProps();r&&S.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!i4(t,s,this.currentDirection))return;let r=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?el(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?el(i,t,s.max):Math.min(t,i)),t}(n,this.constraints[t],this.elastic[t])),r.set(n)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,r=this.constraints;e&&iP(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=function(t,{top:e,left:i,bottom:s,right:r}){return{x:iD(t.x,i,r),y:iD(t.y,e,s)}}(s.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iR(t,"left","right"),y:iR(t,"top","bottom")}}(i),r!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&iO(t=>{var e,i;let r;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=s.layoutBox[t],i=this.constraints[t],r={},void 0!==i.min&&(r.min=i.min-e.min),void 0!==i.max&&(r.max=i.max-e.min),r))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iP(e))return!1;let s=e.current;(0,t1.invariant)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let n=iJ(s,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:iE(t.x,n.x),y:iE(t.y,n.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=iI(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:n,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iO(o=>{if(!i4(o,e,this.currentDirection))return;let l=a&&a[o]||{};n&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return F(this.visualElement,t),i.start(e9(t,i,0,e,this.visualElement,!1))}stopAnimation(){iO(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iO(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iO(e=>{let{drag:i}=this.getProps();if(!i4(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,r=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:n}=s.layout.layoutBox[e];r.set(t[e]-el(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iP(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};iO(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,r;let n,o,a,l=e.get();s[t]=(i={min:l,max:l},r=this.constraints[t],n=.5,o=iT(i),(a=iT(r))>o?n=(0,ez.progress)(r.min,r.max-o,i.min):o>a&&(n=(0,ez.progress)(i.min,i.max-a,r.min)),ti(0,1,n))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iO(e=>{if(!i4(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:n}=this.constraints[e];i.set(el(r,n,s[e]))})}addListeners(){if(!this.visualElement.current)return;i0.set(this.visualElement,this);let t=id(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();iP(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()),S.read(e);let r=iu(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iO(e=>{let i=this.getAxisMotionValue(e);
1i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),s(),n&&n()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:n=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:n,dragMomentum:o}}}function i4(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class i5 extends is{constructor(t){super(t),this.removeGroupControls=x.noop,this.removeListeners=x.noop,this.controls=new i1(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||x.noop}unmount(){this.removeGroupControls(),this.removeListeners()}}t.s(["DragGesture",()=>i5],807230);let i9=t=>(e,i)=>{t&&S.postRender(()=>t(e,i))};class i6 extends is{constructor(){super(...arguments),this.removePointerDownListener=x.noop}onPointerDown(t){this.session=new im(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iQ(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:i9(t),onStart:i9(e),onMove:i,onEnd:(t,e)=>{delete this.session,s&&S.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=id(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",()=>i6],486945)},996870,43568,885611,802127,766010,339155,421591,991479,178863,362859,t=>{"use strict";var e=t.i(807230),i=t.i(486945),s=t.i(115497),r=t.i(650394),n=t.i(850286),o=t.i(260981);let a=(0,r.createContext)({});t.s(["SwitchLayoutGroupContext",()=>a],43568);let l={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var u=t.i(740249);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(9647),p=t.i(551830);let m={};function f(t){Object.assign(m,t)}t.s(["addScaleCorrector",()=>f,"scaleCorrectors",()=>m],885611);let{schedule:v,cancel:g}=(0,t.i(437443).createRenderBatcher)(queueMicrotask,!1);t.s(["microtask",()=>v],802127);var y=t.i(324296);class x extends r.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=t;f(T),r&&(e.group&&e.group.add(r),i&&i.register&&s&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),l.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:r}=this.props,n=i.projection;return n&&(n.isPresent=r,s||t.layoutDependency!==e||void 0===e?n.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?n.promote():n.relegate()||y.frame.postRender(()=>{let t=n.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),v.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;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 P(t){let[e,i]=(0,n.usePresence)(),l=(0,r.useContext)(o.LayoutGroupContext);return(0,s.jsx)(x,{...t,layoutGroup:l,switchLayoutGroup:(0,r.useContext)(a),isPresent:e,safeToRemove:i})}let T={borderRadius:{...c,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:c,borderTopRightRadius:c,borderBottomLeftRadius:c,borderBottomRightRadius:c,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=p.complex.parse(t);if(s.length>5)return t;let r=p.complex.createTransformer(t),n=+("number"!=typeof s[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;s[0+n]/=o,s[1+n]/=a;let l=(0,d.mixNumber)(o,a,.5);return"number"==typeof s[2+n]&&(s[2+n]/=l),"number"==typeof s[3+n]&&(s[3+n]/=l),r(s)}}};t.i(641976);var S=t.i(110372);t.i(262502);var w=t.i(415199),b=t.i(990522),V=t.i(191753),A=t.i(466952);function M(t,e,i){let s=(0,V.isMotionValue)(t)?t:(0,b.motionValue)(t);return s.start((0,A.animateMotionValue)("",s,e,i)),s.animation}t.s(["animateSingleValue",()=>M],766010);var C=t.i(64095),D=t.i(61064);function E(t){return t instanceof SVGElement&&"svg"!==t.tagName}t.s(["isSVGElement",()=>E],339155);var R=t.i(534487);let k=(t,e)=>t.depth-e.depth;class B{constructor(){this.children=[],this.isDirty=!1}add(t){(0,R.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,R.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(k),this.isDirty=!1,this.children.forEac
1h(t)}}var F=t.i(504987);t.i(522671);var L=t.i(186423),j=t.i(196997);function O(t){let e=(0,V.isMotionValue)(t)?t.get():t;return(0,j.isCustomValue)(e)?e.toValue():e}t.s(["resolveMotionValue",()=>O],421591);var I=t.i(138158),U=t.i(30867);let N=["TopLeft","TopRight","BottomLeft","BottomRight"],$=N.length,W=t=>"string"==typeof t?parseFloat(t):t,z=t=>"number"==typeof t||u.px.test(t);function G(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let K=Y(0,.5,U.circOut),H=Y(.5,.95,w.noop);function Y(t,e,i){return s=>s<t?0:s>e?1:i((0,I.progress)(t,e,s))}function X(t,e){t.min=e.min,t.max=e.max}function q(t,e){X(t.x,e.x),X(t.y,e.y)}function Z(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var _=t.i(958606),J=t.i(844569);function Q(t,e,i,s,r){return t-=e,t=(0,_.scalePoint)(t,1/i,s),void 0!==r&&(t=(0,_.scalePoint)(t,1/r,s)),t}function tt(t,e,[i,s,r],n,o){!function(t,e=0,i=1,s=.5,r,n=t,o=t){if(u.percent.test(e)&&(e=parseFloat(e),e=(0,d.mixNumber)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,d.mixNumber)(n.min,n.max,s);t===n&&(a-=e),t.min=Q(t.min,e,i,a,r),t.max=Q(t.max,e,i,a,r)}(t,e[i],e[s],e[r],e.scale,n,o)}let te=["x","scaleX","originX"],ti=["y","scaleY","originY"];function ts(t,e,i,s){tt(t.x,e,te,i?i.x:void 0,s?s.x:void 0),tt(t.y,e,ti,i?i.y:void 0,s?s.y:void 0)}var tr=t.i(774863);function tn(t){return 0===t.translate&&1===t.scale}function to(t){return tn(t.x)&&tn(t.y)}function ta(t,e){return t.min===e.min&&t.max===e.max}function tl(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function tu(t,e){return tl(t.x,e.x)&&tl(t.y,e.y)}function th(t){return(0,J.calcLength)(t.x)/(0,J.calcLength)(t.y)}function tc(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class td{constructor(){this.members=[]}add(t){(0,R.addUniqueItem)(this.members,t),t.scheduleRender()}remove(t){if((0,R.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)}}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 tp=t.i(391756),tm=t.i(220789);let tf={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},tv="undefined"!=typeof window&&void 0!==window.MotionDebug,tg=["","X","Y","Z"],ty={visibility:"hidden"},tx=0;function tP(t,e,i,s){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),s&&(s[t]=0))}function tT({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=tx++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tv&&(tf.totalNodes=tf.resolvedTargetDeltas=tf.recalculatedProjection=0),this.nodes.forEac
1h(tb),this.nodes.forEach(tR),this.nodes.forEach(tk),this.nodes.forEach(tV),tv&&window.MotionDebug.record(tf)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new B)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new L.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,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=E(e),this.instance=e;let{layoutId:s,layout:r,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||s)&&(this.isLayoutDirty=!0),t){let i,s=()=>this.root.updateBlockedByResize=!1;t(e,()=>{let t,e;this.root.updateBlockedByResize=!0,i&&i(),t=D.time.now(),e=({timestamp:i})=>{let r=i-t;r>=250&&((0,y.cancelFrame)(e),s(r-250))},y.frame.read(e,!0),i=()=>(0,y.cancelFrame)(e),l.hasAnimatedSinceResize&&(l.hasAnimatedSinceResize=!1,this.nodes.forEach(tE))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&n&&(s||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||tI,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!tu(this.targetLayout,s)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...(0,S.getValueTransition)(r,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||tE(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,(0,y.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.forEach(tB),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,C.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",y.frame,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(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.forEac
1h(tM);return}this.isUpdating||this.nodes.forEach(tC),this.isUpdating=!1,this.nodes.forEach(tD),this.nodes.forEach(tS),this.nodes.forEach(tw),this.clearAllSnapshots();let t=D.time.now();y.frameData.delta=(0,F.clamp)(0,1e3/60,t-y.frameData.timestamp),y.frameData.timestamp=t,y.frameData.isProcessing=!0,y.frameSteps.update.process(y.frameData),y.frameSteps.preRender.process(y.frameData),y.frameSteps.render.process(y.frameData),y.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,v.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tA),this.sharedNodes.forEach(tF)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,y.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){y.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,tr.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){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&&!to(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,n=s!==this.prevTransformTemplateValue;t&&(e||(0,tm.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)),t$((e=s).x),t$(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return(0,tr.createBox)();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(tz))){let{scroll:t}=this.root;t&&((0,_.translateAxis)(i.x,t.offset.x),(0,_.translateAxis)(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=(0,tr.createBox)();if(q(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let s=this.path[e],{scroll:r,options:n}=s;s!==this.root&&r&&n.layoutScroll&&(r.wasRoot&&q(i,t),(0,_.translateAxis)(i.x,r.offset.x),(0,_.translateAxis)(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=(0,tr.createBox)();q(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,_.transformBox)(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),(0,tm.hasTransform)(s.latestValues)&&(0,_.transformBox)(i,s.latestValues)}return(0,tm.hasTransform)(this.latestValues)&&(0,_.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,tr.createBox)();q(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,tm.hasTransform)(i.latestValues))continue;(0,tm.hasScale)(i.latestValues)&&i.updateSnapshot();let s=(0,tr.createBox)();q(s,i.measurePageBox()),ts(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return(0,tm.hasTransform)(this.latestValues)&&ts(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!==y.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e;let i=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=i.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==i;if(!(t||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:n}=this.options;if(this.layout&&(r||n)){if(this.resolvedRelativeTargetAt=y.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,tr.createBox)(),this.relativeTargetOrigin=(0,tr.createBox)(),(0,J.calcRelativePosition)(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),q(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,tr.createBox)(),this.targetWithTransforms=(0,tr.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,J.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):q(this.target,this.layout.layoutBox),(0,_.applyBoxDelta)(this.target,this.targetDelta)):q(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,tr.createBox)(),this.relativeTargetOrigin=(0,tr.createBox)(),(0,J.calcRelativePosition)(this.relativeTargetOrigin,this.target,t.target),q(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tv&&tf.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||(0,tm.hasScale)(this.parent.latestValues)||(0,tm.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)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,s=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(s=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(s=!1),this.resolvedRelativeTargetAt===y.frameData.timestamp&&(s=!1),s)return;let{layout:r,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||n))return;q(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;(0,_.applyTreeDeltas)(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,tr.createBox)());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(Z(this.prevProjectionDelta.x,this.projectionDelta.x),Z(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,J.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&tc(this.projectionDelta.x,this.prevProjectionDelta.x)&&tc(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),tv&&tf.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,tr.createDelta)(),this.projectionDelta=(0,tr.createDelta)(),this.projectionDeltaWithTransform=(0,tr.createDelta)()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,r=s?s.latestValues:{},n={...this.latestValues},o=(0,tr.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,tr.createBox)(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),c=!h||h.members.length<=1,p=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(tO));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(tL(o.x,t.x,s),tL(o.y,t.y,s),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,m,f,v,g,y;(0,J.calcRelativePosition)(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,v=this.relativeTargetOrigin,g=a,y=s,tj(f.x,v.x,g.x,y),tj(f.y,v.y,g.y,y),i&&(h=this.relativeTarget,m=i,ta(h.x,m.x)&&ta(h.y,m.y))&&(this.isProjectionDirty=!1),i||(i=(0,tr.createBox)()),q(i,this.relativeTarget)}
1l&&(this.animationValues=n,function(t,e,i,s,r,n){r?(t.opacity=(0,d.mixNumber)(0,void 0!==i.opacity?i.opacity:1,K(s)),t.opacityExit=(0,d.mixNumber)(void 0!==e.opacity?e.opacity:1,0,H(s))):n&&(t.opacity=(0,d.mixNumber)(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,s));for(let r=0;r<$;r++){let n=`border${N[r]}Radius`,o=G(e,n),a=G(i,n);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||z(o)===z(a)?(t[n]=Math.max((0,d.mixNumber)(W(o),W(a),s),0),(u.percent.test(a)||u.percent.test(o))&&(t[n]+="%")):t[n]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,d.mixNumber)(e.rotate||0,i.rotate||0,s))}(n,r,this.latestValues,s,p,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,y.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=y.frame.update(()=>{l.hasAnimatedSinceResize=!0,this.currentAnimation=M(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{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:r}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&tW(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,tr.createBox)();let e=(0,J.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=(0,J.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}q(e,i),(0,_.transformBox)(e,r),(0,J.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new td),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({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&&tP("z",t,s,this.animationValues);for(let e=0;e<tg.length;e++)tP(`rotate${tg[e]}`,t,s,this.animationValues),tP(`skew${tg[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()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ty;let s={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=O(null==t?void 0:t.pointerEvents)||"",s.transform=r?r(this.latestValues,""):"none",s;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=O(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!(0,tm.hasTransform)(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=n.animationValues||n.latestValues;
1this.applyTransformsToTarget(),s.transform=function(t,e,i){let s="",r=t.x.translate/e.x,n=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||n||o)&&(s=`translate3d(${r}px, ${n}px, ${o}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:n,skewX:o,skewY:a}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),r&&(s+=`rotateX(${r}deg) `),n&&(s+=`rotateY(${n}deg) `),o&&(s+=`skewX(${o}deg) `),a&&(s+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(s+=`scale(${a}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),r&&(s.transform=r(o,s.transform));let{x:a,y:l}=this.projectionDelta;for(let t in s.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,n.animationValues?s.opacity=n===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:s.opacity=n===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,m){if(void 0===o[t])continue;let{correct:e,applyTo:i}=m[t],r="none"===s.transform?o[t]:e(o[t],n);if(i){let t=i.length;for(let e=0;e<t;e++)s[i[e]]=r}else s[t]=r}return this.options.layoutId&&(s.pointerEvents=n===this?O(null==t?void 0:t.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(tM),this.root.sharedNodes.clear()}}}function tS(t){t.updateLayout()}function tw(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:s}=t.layout,{animationType:r}=t.options,n=i.source!==t.layout.source;"size"===r?(0,tp.eachAxis)(t=>{let s=n?i.measuredBox[t]:i.layoutBox[t],r=(0,J.calcLength)(s);s.min=e[t].min,s.max=s.min+r}):tW(r,i.layoutBox,e)&&(0,tp.eachAxis)(s=>{let r=n?i.measuredBox[s]:i.layoutBox[s],o=(0,J.calcLength)(e[s]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+o)});let o=(0,tr.createDelta)();(0,J.calcBoxDelta)(o,e,i.layoutBox);let a=(0,tr.createDelta)();n?(0,J.calcBoxDelta)(a,t.applyTransform(s,!0),i.measuredBox):(0,J.calcBoxDelta)(a,e,i.layoutBox);let l=!to(o),u=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:n}=s;if(r&&n){let o=(0,tr.createBox)();(0,J.calcRelativePosition)(o,i.layoutBox,r.layoutBox);let a=(0,tr.createBox)();(0,J.calcRelativePosition)(a,e,n.layoutBox),tu(o,a)||(u=!0),s.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tb(t){tv&&tf.totalNodes++,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 tV(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tA(t){t.clearSnapshot()}function tM(t){t.clearMeasurements()}function tC(t){t.isLayoutDirty=!1}function tD(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tE(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tR(t){t.resolveTargetDelta()}function tk(t){t.calcProjection()}function tB(t){t.resetSkewAndRotation()}function tF(t){t.removeLeadSnapshot()}function tL(t,e,i){t.translate=(0,d.mixNumber)(e.translate,0,i),t.scale=(0,d.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tj(t,e,i,s){t.min=(0,d.mixNumber)(e.min,i.min,s),t.max=(0,d.mixNumber)(e.max,i.max,s)}function tO(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tI={duration:.45,ease:[.4,0,.1,1]},tU=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tN=tU("applewebkit/")&&!tU("chrome/")?Math.round:w.no
1op;function t$(t){t.min=tN(t.min),t.max=tN(t.max)}function tW(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,J.isNear)(th(e),th(i),.2)}function tz(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}var tG=t.i(277656);let tK=tT({attachResizeListener:(t,e)=>(0,tG.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tH={current:void 0},tY=tT({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tH.current){let t=new tK({});t.mount(window),t.setOptions({layoutScroll:!0}),tH.current=t}return tH.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),tX={pan:{Feature:i.PanGesture},drag:{Feature:e.DragGesture,ProjectionNode:tY,MeasureLayout:P}};t.s(["drag",()=>tX],996870);var tq=t.i(385959),tZ=t.i(437339),t_=t.i(858471);function tJ(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=s["onHover"+i];r&&y.frame.postRender(()=>r(e,(0,t_.extractEventInfo)(e)))}class tQ extends tq.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=(0,tZ.hover)(t,t=>(tJ(this.node,t,"Start"),t=>tJ(this.node,t,"End"))))}unmount(){}}var t0=tq,t1=t.i(800740);class t4 extends t0.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,t1.pipe)((0,tG.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,tG.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var t5=tq,t9=t.i(181012);function t6(t,e,i){let{props:s}=t;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=s["onTap"+("End"===i?"":i)];r&&y.frame.postRender(()=>r(e,(0,t_.extractEventInfo)(e)))}class t2 extends t5.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=(0,t9.press)(t,t=>(t6(this.node,t,"Start"),(t,{success:e})=>t6(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}var t3=tq;let t8=new WeakMap,t7=new WeakMap,et=t=>{let e=t8.get(t.target);e&&e(t)},ee=t=>{t.forEach(et)},ei={some:0,all:1};class es extends t3.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:r,amount:n="some",once:o}=i,a={root:s?s.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:ei[n]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),r=e?i:s;r&&r(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;t7.has(i)||t7.set(i,{});let s=t7.get(i),r=JSON.stringify(e);return s[r]||(s[r]=new IntersectionObserver(ee,{root:t,...e})),s[r]}(a),t8.set(t,l),e.observe(t),()=>{t8.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 er={inView:{Feature:es},tap:{Feature:t2},focus:{Feature:t4},hover:{Feature:tQ}};t.s(["gestureAnimations",()=>er],991479);let en={layout:{ProjectionNode:tY,MeasureLayout:P}};t.s(["layout",()=>en],178863);let eo=(0,r.createContext)({strict:!1});t.s(["LazyContext",()=>eo],362859)},918342,904834,726417,t=>{"use strict";var e=t.i(650394);let i=(0,e.createContext)({});t.s(["MotionContext",()=>i],918342);var s=t.i(648542),r=t.i(827001),n=t.i(735274);function o(t){return(0,r.isAnimationControls)(t.animate)||n.variantProps.some(e=>(0,s.isVariantLabel)(t[e]))}function a(t){return!!(o(t)||t.variants)}function l(t){let{initial:r,animate:n}=function(t,e){if(o(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,s.isVariantLabel)(e)?e:void 0,animate:(0,s.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e.useContext)(i));return(0,e.useMemo)(()=>({initial:r,animate:n}),[u(r),u(n)])}function u(t){return Array.isArray(t)?t.join(" "):t}t.s(["isControllingVariants",()=>o,"isVariantNode",()=>a],904834),t.s(["useCreateMotionContext",()=>l],726417)},544360,656640,760514,240638,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])};function s(t){for(let e in t)i[e]={...i[e],...t[e]}}t.s(["featureDefinitions",()=>i],544360),t.s(["loadFeatures",()=>s],656640);let r=Symbol.for("motionComponentSymbol");t.s(["motionComponentSymbol",()=>r],760514);var n=t.i(650394),o=t.i(954442);function a(t,e,i){return(0,n.useCallback)(s=>
1{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),i&&("function"==typeof i?i(s):(0,o.isRefObject)(i)&&(i.current=s))},[e])}t.s(["useMotionRef",()=>a],240638)},968494,977010,t=>{"use strict";t.i(21442);var e=t.i(115497);t.i(262502);var i=t.i(650394),s=t.i(260981),r=t.i(362859),n=t.i(791933),o=t.i(918342),a=t.i(726417),l=t.i(981201),u=t.i(544360),h=t.i(656640),c=t.i(760514),d=t.i(240638),p=t.i(810268),m=t.i(370566),f=t.i(153579),v=t.i(802127),g=t.i(954442),y=t.i(43568);function x({preloadedFeatures:t,createVisualElement:x,useRender:P,useVisualState:T,Component:S}){var w,b;function V(t,h){let c,w={...(0,i.useContext)(n.MotionConfigContext),...t,layoutId:function({layoutId:t}){let e=(0,i.useContext)(s.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:b}=w,V=(0,a.useCreateMotionContext)(t),A=T(t,b);if(!b&&l.isBrowser){(0,i.useContext)(r.LazyContext).strict;let t=function(t){let{drag:e,layout:i}=u.featureDefinitions;if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(w);c=t.MeasureLayout,V.visualElement=function(t,e,s,a,l){var u,h;let{visualElement:c}=(0,i.useContext)(o.MotionContext),d=(0,i.useContext)(r.LazyContext),x=(0,i.useContext)(p.PresenceContext),P=(0,i.useContext)(n.MotionConfigContext).reducedMotion,T=(0,i.useRef)(null);a=a||d.renderer,!T.current&&a&&(T.current=a(t,{visualState:e,parent:c,props:s,presenceContext:x,blockInitialAnimation:!!x&&!1===x.initial,reducedMotionConfig:P}));let S=T.current,w=(0,i.useContext)(y.SwitchLayoutGroupContext);S&&!S.projection&&l&&("html"===S.type||"svg"===S.type)&&function(t,e,i,s){let{layoutId:r,layout:n,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:n,alwaysMeasureLayout:!!o||a&&(0,g.isRefObject)(a),visualElement:t,animationType:"string"==typeof n?n:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:u})}(T.current,s,l,w);let b=(0,i.useRef)(!1);(0,i.useInsertionEffect)(()=>{S&&b.current&&S.update(s,x)});let V=s[f.optimizedAppearDataAttribute],A=(0,i.useRef)(!!V&&!(null==(u=window.MotionHandoffIsComplete)?void 0:u.call(window,V))&&(null==(h=window.MotionHasOptimisedAnimation)?void 0:h.call(window,V)));return(0,m.useIsomorphicLayoutEffect)(()=>{S&&(b.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),v.microtask.render(S.render),A.current&&S.animationState&&S.animationState.animateChanges())}),(0,i.useEffect)(()=>{S&&(!A.current&&S.animationState&&S.animationState.animateChanges(),A.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,V)}),A.current=!1))}),S}(S,A,w,x,t.ProjectionNode)}return(0,e.jsxs)(o.MotionContext.Provider,{value:V,children:[c&&V.visualElement?(0,e.jsx)(c,{visualElement:V.visualElement,...w}):null,P(S,t,(0,d.useMotionRef)(A,V.visualElement,h),A,b,V.visualElement)]})}t&&(0,h.loadFeatures)(t),V.displayName=`motion.${"string"==typeof S?S:`create(${null!=(b=null!=(w=S.displayName)?w:S.name)?b:""})`}`;let A=(0,i.forwardRef)(V);return A[c.motionComponentSymbol]=S,A}t.s(["createRendererMotionComponent",()=>x],968494);let P=["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 T(t){if("string"!=typeof t||t.includes("-"));else if(P.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.s(["isSVGComponent",()=>T],977010)},150283,658308,194515,887184,741216,624179,968049,t=>{"use strict";var e,i,s,r=t.i(80165),n=t.i(406484),o=t.i(996870),a=t.i(991479),l=t.i(178863),u=t.i(968494),h=t.i(977010),c=t.i(324296),d=t.i(650394),p=t.i(827001),m=t.i(918342),f=t.i(810268),v=t.i(904834),g=t.i(317745),y=t.i(591959),x=t.i(421591);let P=t=>(e,i)=>{let s=(0,d.useContext)(m.MotionContext),r=(0,d.useContext)(f.PresenceContext),n=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i}
1,s,r,n){let o={latestValues:function(t,e,i,s){let r={},n=s(t,{});for(let t in n)r[t]=(0,x.resolveMotionValue)(n[t]);let{initial:o,animate:a}=t,l=(0,v.isControllingVariants)(t),u=(0,v.isVariantNode)(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!(0,p.isAnimationControls)(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let s=(0,g.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=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(s,r,n,t),renderState:e()};return i&&(o.onMount=t=>i({props:s,current:t,...o}),o.onUpdate=t=>i(t)),o})(t,e,s,r);return i?n():(0,y.useConstant)(n)};var T=t.i(103495),S=t.i(942487);let w=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var b=t.i(414189);let V={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},A=T.transformPropOrder.length;function M(t,e,i){let{style:s,vars:r,transformOrigin:n}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(T.transformProps.has(t)){o=!0;continue}if((0,S.isCSSVariableName)(t)){r[t]=i;continue}{let e=w(i,b.numberValueTypes[t]);t.startsWith("origin")?(a=!0,n[t]=e):s[t]=e}}if(!e.transform&&(o||i?s.transform=function(t,e,i){let s="",r=!0;for(let n=0;n<A;n++){let o=T.transformPropOrder[n],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||i){let t=w(a,b.numberValueTypes[o]);if(!l){r=!1;let e=V[o]||o;s+=`${e}(${t}) `}i&&(e[o]=t)}}return s=s.trim(),i?s=i(e,r?"":s):r&&(s="none"),s}(e,t.transform,i):s.transform&&(s.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=n;s.transformOrigin=`${t} ${e} ${i}`}}var C=t.i(740249);let D={offset:"stroke-dashoffset",array:"stroke-dasharray"},E={offset:"strokeDashoffset",array:"strokeDasharray"};function R(t,e,i){return"string"==typeof t?t:C.px.transform(e+i*t)}function k(t,{attrX:e,attrY:i,attrScale:s,originX:r,originY:n,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c){let d,p;if(M(t,u,c),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:m,style:f,dimensions:v}=t;m.transform&&(v&&(f.transform=m.transform),delete m.transform),v&&(void 0!==r||void 0!==n||f.transform)&&(d=R(void 0!==r?r:.5,v.x,v.width),p=R(void 0!==n?n:.5,v.y,v.height),f.transformOrigin=`${d} ${p}`),void 0!==e&&(m.x=e),void 0!==i&&(m.y=i),void 0!==s&&(m.scale=s),void 0!==o&&function(t,e,i=1,s=0,r=!0){t.pathLength=1;let n=r?D:E;t[n.offset]=C.px.transform(-s);let o=C.px.transform(e),a=C.px.transform(i);t[n.array]=`${o} ${a}`}(m,o,a,l,!1)}let B=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),F=()=>({...B(),attrs:{}}),L=t=>"string"==typeof t&&"svg"===t.toLowerCase();var j=t.i(324291);function O(t,{style:e,vars:i},s,r){for(let n in Object.assign(t.style,e,r&&r.getProjectionStyles(s)),i)t.style.setProperty(n,i[n])}let I=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"]);function U(t,e,i,s){for(let i in O(t,e,void 0,s),e.attrs)t.setAttribute(I.has(i)?i:(0,j.camelToDash)(i),e.attrs[i])}var N=t.i(191753),$=t.i(885611);function W(t,{layout:e,layoutId:i}){return T.transformProps.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!$.scaleCorrectors[t]||"opacity"===t)}function z(t,e,i){var s;let{style:r}=t,n={};for(let o in r)((0,N.isMotionValue)(r[o])||e.style&&(0,N.isMotionValue)(e.style[o])||W(o,t)||(null==(s=null==i?void 0:i.getValue(o))?void 0:s.liveStyle)!==void 0)&&(n[o]=r[o]);return n}function G(t,e,i){let s=z(t,e,i);for(let i in t)((0,N.isMotionValue)(t[i])||(0,N.isMotionValue)(e[i]))&&(s[-1!==T.transformPropOrder.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}let K=["x","y","width","height","cx","cy","r"],H={useVisualState:P({scrapeMotionValuesFromProps:G,createRenderState:F,onUpdate:({props:t,prevProps:e,current:i,renderState:s,latestValues:r})=>{if(!i)return;let n=!!t.drag;if(!n){for(let t in r)if(T.transformProps.has(t)){n=!0;break}}if(!n)return;let o=!e;if(e)for(let i=0;i<K.length;i++){let s=K[i];t[s]!==e[s]&&(o=!0)}o&&c.frame.read(()=>{try{s.dimensions="function"==typeof i.getBBox?i.getBBox():i.getBoundingClientRect()}catch(t){s.dimensions={x:0,y:0,width:0,height:0}}c.frame.render(()=>{k(s,r,L(i.tagName),t.transformTemplate),U(i,s)})})}})},Y={useVisualState:P({scrapeMotionValuesFromProps:z,createRenderState:B})};function X(t,e,i){for(let s in e)(0,N.isMotionValue)(e[s])||W(s,i)||(t[s]=e[s])}
1let q=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 Z(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||q.has(t)}let _=t=>!Z(t);try{(e=t.r(14653).default)&&(_=t=>t.startsWith("on")?!Z(t):e(t))}catch(t){}var J=t.i(60898);t.i(21442);var Q=t.i(61064),tt=t.i(544360),te=t.i(774863),ti=t.i(969167),ts=t.i(405515),tr=t.i(981201);let tn={current:null},to={current:!1};function ta(){if(to.current=!0,tr.isBrowser)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>tn.current=t.matches;t.addListener(e),e()}else tn.current=!1}t.s(["hasReducedMotionListener",()=>to,"prefersReducedMotion",()=>tn],658308),t.s(["initPrefersReducedMotion",()=>ta],194515);var tl=t.i(186423),tu=t.i(990522),th=t.i(551830),tc=t.i(310139),td=t.i(964115),tp=t.i(754803),tm=t.i(406198);let tf=[...tp.dimensionValueTypes,td.color,th.complex],tv=new WeakMap;t.s(["visualElementStore",()=>tv],887184);var tg=t.i(883826);let ty=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tx{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:r,visualState:n},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tg.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=Q.time.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,c.frame.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:u}=n;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=(0,v.isControllingVariants)(e),this.isVariantNode=(0,v.isVariantNode)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==a[t]&&(0,N.isMotionValue)(e)&&e.set(a[t],!1)}}mount(t){this.current=t,tv.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)),to.current||ta(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||tn.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in tv.delete(this.current),this.projection&&this.projection.unmount(),(0,c.cancelFrame)(this.notifyUpdate),(0,c.cancelFrame)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let s=T.transformProps.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&c.frame.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),n=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),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 tt.featureDefinitions){let e=tt.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,te.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<ty.length;e++){let i=ty[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=function(t,e,i){for(let s in e){let r=e[s],n=i[s];if((0,N.isMotionValue)(r))t.addValue(s,r);else if((0,N.isMotionValue)(n))t.addValue(s,(0,tu.motionValue)(r,{owner:t}));else if(n!==r)if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(s);t.addValue(s,(0,tu.motionValue)(void 0!==e?e:r,{owner:t}))}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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,tu.motionValue)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let s=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=s){if("string"==typeof s&&((0,ti.isNumericalString)(s)||(0,ts.isZeroValueString)(s)))s=parseFloat(s);else{let i;i=s,!tf.find((0,tm.testValueType)(i))&&th.complex.test(e)&&(s=(0,tc.getAnimatableNone)(t,e))}this.setBaseTarget(t,(0,N.isMotionValue)(s)?s.get():s)}return(0,N.isMotionValue)(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:s}=this.props;if("string"==typeof s||"object"==typeof s){let r=(0,g.resolveVariantFromProps)(this.props,s,null==(e=this.presenceContext)?void 0:e.custom);r&&(i=r[t])}if(s&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||(0,N.isMotionValue)(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new tl.SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}t.s(["VisualElement",()=>tx],741216);var tP=t.i(353140);class tT extends tx{constructor(){super(...arguments),this.KeyframeResolver=tP.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,N.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}var tS=t.i(861311);class tw extends tT{constructor(){super(...arguments),this.type="html",this.renderInstance=O}readValueFromInstance(t,e){if(T.transformProps.has(e)){let t=(0,tS.getDefaultValueType)(e);return t&&t.default||0}{let i=window.getComputedStyle(t),s=((0,S.isCSSVariableName)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,J.measureViewportBox)(t,e)}build(t,e,i){M(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return z(t,e,i)}}t.s(["HTMLVisualElement",()=>tw],624179);class tb extends tT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=te.createBox}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(T.transformProps.has(e)){let t=(0,tS.getDefaultValueType)(e);return t&&t.default||0}return e=I.has(e)?e:(0,j.camelToDash)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return G(t,e,i)}build(t,e,i){k(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,s){U(t,e,i,s)}mount(t){this.isSVGTag=L(t.tagName),super.mount(t)}}t.s(["SVGVisualElement",()=>tb],968049);let tV=(i={...n.animations,...a.gestureAnimations,...o.drag,...l.layout},s=(t,e)=>(0,h.isSVGComponent)(t)?new tb(e):new tw(e,{allowProjection:t!==d.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){let r={...(0,h.isSVGComponent)(t)?H:Y,preloadedFeatures:i,useRender:function(t=!1){return(e,i,s,{latestValues:r},n)=>{let o=((0,h.isSVGComponent)(e)?function(t,e,i,s){let r=(0,d.useMemo)(()=>{let i=F();return k(i,e,L(s),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};X(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i,s,r={},n=(i=t.style||{},X(s={},i,t),Object.assign(s,function({transformTemplate:t},e){return(0,d.useMemo)(()=>{let i=B();return M(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=n,r})(i,r,n,e),a=function(t,e,i){let s={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(_(r)||!0===i&&Z(r)||!e&&!Z(r)||t.draggable&&r.startsWith("onDrag"))&&(s[r]=t[r]);return s}(i,"string"==typeof e,t),l=e!==d.Fragment?{...a,...o,ref:s}:{},{children:u}=i,c=(0,d.useMemo)(()=>(0,N.isMotionValue)(u)?u.get():u,[u]);return(0,d.createElement)(e,{...l,children:c})}}(e),createVisualElement:s,Component:t};return(0,u.createRendererMotionComponent)(r)}),tA=(0,r.createDOMMotionComponentProxy)(tV);t.s(["motion",()=>tA],150283)}]); 2 3//# sourceMappingURL=50b5925a2d8fc868.js.map
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.