PageSourceSearch

https://www.dkwsystem.com/_next/static/chunks/af24be30e7aa1e72.js?dpl=dpl_8beLHNG6gmFckr3Q28E6YZLodUeJ

js dkwsystem.com collected 2026-10-08 17:34:27 UTC 98,772 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,642824,t=>{"use strict";let e=t=>"object"==typeof t&&null!==t;t.s(["isObject",()=>e])},772846,t=>{"use strict";var e=t.i(642824);function i(t){return(0,e.isObject)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}t.s(["isHTMLElement",()=>i])},275737,476959,265091,130162,83411,965566,260830,287022,763074,133887,570596,560140,496173,486427,885983,732525,587576,386579,617218,544947,181261,399951,895051,100706,924463,130789,27677,177777,135636,153689,386783,830665,733871,630868,535043,142098,618812,987333,980538,716896,738638,791559,783920,939011,637041,655559,t=>{"use strict";let e,i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set([...i,"pathRotation"]),r=(t,e,i)=>i>e?e:i<t?t:i;t.s(["clamp",()=>r],476959);let n={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},a={...n,transform:t=>r(0,1,t)},o={...n,default:1},l=t=>Math.round(1e5*t)/1e5,h=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,u=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,d=(t,e)=>i=>!!("string"==typeof i&&u.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),c=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[r,n,a,o]=s.match(h);return{[t]:parseFloat(r),[e]:parseFloat(n),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},p={...n,transform:t=>Math.round(r(0,255,t))},m={test:d("rgb","red"),parse:c("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+p.transform(t)+", "+p.transform(e)+", "+p.transform(i)+", "+l(a.transform(s))+")"},f={test:d("#"),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:m.transform},y=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),g=y("deg"),v=y("%"),x=y("px"),T=y("vh"),b=y("vw"),w={...v,parse:t=>v.parse(t)/100,transform:t=>v.transform(100*t)};t.s(["degrees",()=>g,"percent",()=>v,"progressPercentage",()=>w,"px",()=>x,"vh",()=>T,"vw",()=>b],265091);let S={test:d("hsl","hue"),parse:c("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+v.transform(l(e))+", "+v.transform(l(i))+", "+l(a.transform(s))+")"},A={test:t=>m.test(t)||f.test(t)||S.test(t),parse:t=>m.test(t)?m.parse(t):S.test(t)?S.parse(t):f.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?m.transform(t):S.transform(t),getAnimatableNone:t=>{let e=A.parse(t);return e.alpha=0,A.transform(e)}},V=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,P="number",M="color",k=/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 D(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},r=[],n=0,a=e.replace(k,t=>(A.test(t)?(s.color.push(n),r.push(M),i.push(A.parse(t))):t.startsWith("var(")?(s.var.push(n),r.push("var"),i.push(t)):(s.number.push(n),r.push(P),i.push(parseFloat(t))),++n,"${}")).split("${}");return{values:i,split:a,indexes:s,types:r}}function B({split:t,types:e}){let i=t.length;return s=>{let r="";for(let n=0;n<i;n++)if(r+=t[n],void 0!==s[n]){let t=e[n];t===P?r+=l(s[n]):t===M?r+=A.transform(s[n]):r+=s[n]}return r}}let E={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(h)?.length||0)+(t.match(V)?.length||0)>0},parse:function(t){return D(t).values},createTransformer:function(t){return B(D(t))},getAnimatableNone:function(t){let e=D(t);return B(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:A.test(t)?A.getAnimatableNone(t):t)(t,e.split[i])))}},R=new Set(["brightness","contrast","saturate","opacity"]);function C(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(h)||[];if(!s)return t;let r=i.replace(s,""),n=+!!R.has(e);return s!==i&&(n*=100),e+"("+n+r+")"}let L=/\b([a-z-]*)\(.*?\)/gu,F={...E,getAnimatableNone:t=>{let e=t.match(L);return e?e.map(C).join(" "):t}},j={...E,getAnimatableNone:t=>{let e=E.parse(t);return E.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},O={...n,transform:Math.round},I={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,inset:x,insetBlock:x,insetBlockStart:x,insetBlockEnd:x,insetInline:x,insetInlineStart:x,insetInlineEnd:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,paddingBlock:x,paddingBlockStart:x,paddingBlockEnd:x,paddingInline:x,paddingInlineStart:x,paddingInlineEnd:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,marginBlock:x,marginBlockStart:x,marginBlockEnd:x,marginInline:x,marginInlineStart:x,marginInlineEnd:x,fontSize:x,backgroundPositionX:x,backgroundPositionY:x,rotate:g,pathRotation:g,rotateX:g,rotateY:g,rotateZ:g,scale:o,scaleX:o,scaleY:o,scaleZ:o,skew:g,skewX:g,skewY:g,distance:x,translateX:x,translateY:x,translateZ:x,x:x,y:x,z:x,perspective:x,transformPerspective:x,opacity:a,originX:w,originY:w,originZ:x,zIndex:O,fillOpacity:a,strokeOpacity:a,numOctaves:O},N={...I,color:A,backgroundColor:A,outlineColor:A,fill:A,stroke:A,borderColor:A,borderTopColor:A,borderRightColor:A,borderBottomColor:A,borderLeftColor:A,filter:F,WebkitFilter:F,mask:j,WebkitMask:j},U=t=>N[t],$=()=>({translate:0,scale:1,origin:0,originPoint:0}),z=()=>({x:$(),y:$()}),W=()=>({min:0,max:0}),Y=()=>({x:W(),y:W()});t.s(["createBox",()=>Y,"createDelta",()=>z],130162);let X=t=>!!(t&&t.getVelocity);t.s(["isMotionValue",()=>X],83411);let K=new Set(["width","height","top","left","right","bottom",...i]),H=t=>e=>e.test(t),G=[n,x,v,g,b,T,{test:t=>"auto"===t,parse:t=>t}],q=t=>G.find(H(t));var Z=t.i(247167);let _=()=>{},J=()=>{};Z.default,t.s(["invariant",()=>J,"warning",()=>_],965566);let Q=t=>e=>"string"==typeof e&&e.startsWith(t),tt=Q("--"),te=Q("var(--"),ti=t=>!!te(t)&&ts.test(t.split("/*")[0].trim()),ts=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tr(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tn=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ta=t=>180*t/Math.PI,to=t=>th(ta(Math.atan2(t[1],t[0]))),tl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:to,rotateZ:to,skewX:t=>ta(Math.atan(t[1])),skewY:t=>ta(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},th=t=>((t%=360)<0&&(t+=360),t),tu=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),td=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tc={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tu,
1scaleY:td,scale:t=>(tu(t)+td(t))/2,rotateX:t=>th(ta(Math.atan2(t[6],t[5]))),rotateY:t=>th(ta(Math.atan2(-t[2],t[0]))),rotateZ:to,rotate:to,skewX:t=>ta(Math.atan(t[4])),skewY:t=>ta(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tp(t){return+!!t.includes("scale")}function tm(t,e){let i,s;if(!t||"none"===t)return tp(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=tc,s=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tl,s=e}if(!s)return tp(e);let n=i[e],a=s[1].split(",").map(tf);return"function"==typeof n?n(a):a[n]}function tf(t){return parseFloat(t.trim())}let ty=t=>t===n||t===x,tg=new Set(["x","y","z"]),tv=i.filter(t=>!tg.has(t)),tx={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:s})=>{let r=t.max-t.min;return"border-box"===s?r:r-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:s})=>{let r=t.max-t.min;return"border-box"===s?r:r-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tm(e,"x"),y:(t,{transform:e})=>tm(e,"y")};tx.translateX=tx.x,tx.translateY=tx.y;let tT=t=>t;t.s(["noop",()=>tT],260830);let tb={},tw=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tS(t,e){let i=!1,s=!0,r={delta:0,timestamp:0,isProcessing:!1},n=()=>i=!0,a=tw.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,s=!1,r=!1,n=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function o(e){n.has(e)&&(l.schedule(e),t()),e(a)}let l={schedule:(t,r=!1,a=!1)=>{let o=a&&s?e:i;return r&&n.add(t),o.add(t),t},cancel:t=>{i.delete(t),n.delete(t)},process:t=>{if(a=t,s){r=!0;return}s=!0;let n=e;e=i,i=n,e.forEach(o),e.clear(),s=!1,r&&(r=!1,l.process(t))}};return l}(n),t),{}),{setup:o,read:l,resolveKeyframes:h,preUpdate:u,update:d,preRender:c,render:p,postRender:m}=a,f=()=>{let n=tb.useManualTiming,a=n?r.timestamp:performance.now();i=!1,n||(r.delta=s?1e3/60:Math.max(Math.min(a-r.timestamp,40),1)),r.timestamp=a,r.isProcessing=!0,o.process(r),l.process(r),h.process(r),u.process(r),d.process(r),c.process(r),p.process(r),m.process(r),r.isProcessing=!1,i&&e&&(s=!1,t(f))};return{schedule:tw.reduce((e,n)=>{let o=a[n];return e[n]=(e,n=!1,a=!1)=>(!i&&(i=!0,s=!0,r.isProcessing||t(f)),o.schedule(e,n,a)),e},{}),cancel:t=>{for(let e=0;e<tw.length;e++)a[tw[e]].cancel(t)},state:r,steps:a}}let{schedule:tA,cancel:tV,state:tP,steps:tM}=tS("u">typeof requestAnimationFrame?requestAnimationFrame:tT,!0);t.s(["cancelFrame",()=>tV,"frame",()=>tA,"frameData",()=>tP,"frameSteps",()=>tM],287022);let tk=new Set,tD=!1,tB=!1,tE=!1;function tR(){if(tB){let t=Array.from(tk).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,s=(e=[],tv.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])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}
1tB=!1,tD=!1,tk.forEach(t=>t.complete(tE)),tk.clear()}function tC(){tk.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tB=!0)})}class tL{constructor(t,e,i,s,r,n=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=r,this.isAsync=n}scheduleResolve(){this.state="scheduled",this.isAsync?(tk.add(this),tD||(tD=!0,tA.read(tC),tA.resolveKeyframes(tR))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;if(null===t[0]){let r=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])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tk.delete(this)}cancel(){"scheduled"===this.state&&(tk.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tF=new Set([F,j]);function tj(t,e){let i=U(t);return tF.has(i)||(i=E),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tO=new Set(["auto","none","0"]);class tI extends tL{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&&ti(s=s.trim())){let r=function t(e,i,s=1){J(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,n]=function(t){let e=tn.exec(t);if(!e)return[,];let[,i,s,r]=e;return[`--${i??s}`,r]}(e);if(!r)return;let a=window.getComputedStyle(i).getPropertyValue(r);if(a){let t=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return ti(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(),!K.has(i)||2!==t.length)return;let[s,r]=t,n=q(s),a=q(r);if(tr(s)!==tr(r)&&tx[i]){this.needsMeasurement=!0;return}if(n!==a)if(ty(n)&&ty(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tx[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let s,r=0;for(;r<t.length&&!s;){let e=t[r];"string"==typeof e&&!tO.has(e)&&D(e).values.length&&(s=t[r]),r++}if(s&&i)for(let r of e)t[r]=tj(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=tx[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(e);s&&s.jump(this.measuredOrigin,!1);let r=i.length-1,n=i[r];i[r]=tx[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==n&&void 0===this.finalKeyframe&&(this.finalKeyframe=n),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tN=t=>1e3*t,tU=t=>t/1e3;function t$(t,e){-1===t.indexOf(e)&&t.push(e)}function tz(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["millisecondsToSeconds",()=>tU,"secondsToMilliseconds",()=>tN],763074),t.s(["addUniqueItem",()=>t$,"removeItem",()=>tz],133887);class tW{constructor(){this.subscriptions=[]}add(t){return t$(this.subscriptions,t),()=>tz(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}}function tY(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function tX(t){let e;return()=>(void 0===e&&(e=t()),e)}t.s(["SubscriptionManager",()=>tW],570596);let tK={};function tH(t,e){let i=tX(t);return()=>tK[e]??i()}let tG=tH(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tq=t=>null!==t;function tZ(t,{repeat:e,repeatType:i="loop"},s,r=1){let n=t.filter(tq),a=r<0||e&&"loop"!==i&&e%2==1?0:n.length-1;return a&&void 0!==s?s:n[a]}class t_{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let tJ=t=>Array.isArray(t)&&"number"==typeof t[0],tQ=tH(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t0=(t,e,i=10)=>{let s="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)s+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},t1=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,t3={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t1([0,.65,.55,1]),circOut:t1([.55,0,1,.45]),backIn:t1([.31,.01,.66,-.59]),backOut:t1([.33,1.53,.69,.99])};function t5(t){return"function"==typeof t&&"applyToOptions"in t}class t2 extends t_{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:s,pseudoElement:r,allowFlatten:n=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!r,this.allowFlatten=n,this.options=t,J("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return t5(t)&&tQ()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:s=0,duration:r=300,repeat:n=0,repeatType:a="loop",ease:o="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?tQ()?t0(e,i):"ease-out":tJ(e)?t1(e):Array.isArray(e)?e.map(e=>t(e,i)||t3.easeOut):t3[e]}(o,r);Array.isArray(d)&&(u.easing=d);let c={delay:s,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:n+1,direction:"reverse"===a?"alternate":"normal"};return h&&(c.pseudoElement=h),t.animate(u,c)}(e,i,s,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=tZ(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tY(e,i,t),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return tU(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+tU(t)}get time(){return tU(Number(this.animation.currentTime)||0)}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tN(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:s}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tG())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tT):s(this)}}let t6=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:t7}=tS(queueMicrotask,!1);function t9(){e=void 0}t.s(["microtask",()=>t7],560140);let t8={now:()=>(void 0===e&&t8.set(tP.isProcessing||tb.useManualTiming?tP.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(t9)}};t.s(["time",()=>t8],496173);let t4=(t,e)=>e?1e3/e*t:0,et;class ee{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=t8.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=t8.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 tW);let i=this.events[t].add(e);return"change"===t?()=>{i(),tA.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return et&&et.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=t8.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t4(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ei(t,e){return new ee(t,e)}t.s(["motionValue",()=>ei],486427);let es=[...G,A,E],er=new WeakMap;function en(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function ea(t){return"string"==typeof t||Array.isArray(t)}t.s(["isAnimationControls",()=>en],885983),t.s(["isVariantLabel",()=>ea],732525);let eo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],el=["initial",...eo];function eh(t){return en(t.animate)||el.some(e=>ea(t[e]))}function eu(t){return!!(eh(t)||t.variants)}t.s(["isControllingVariants",()=>eh,"isVariantNode",()=>eu],587576);let ed={current:null},ec={current:!1},ep="u">typeof window;function em(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function ef(t,e,i,s){if("function"==typeof e){let[r,n]=em(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]=em(s);e=e(void 0!==i?i:t.custom,r,n)}return e}t.s(["resolveVariantFromProps",()=>ef],386579);let ey=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eg={};function ev(t){eg=t}function ex(){return eg}class eT{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,skipAnimations:r,blockInitialAnimation:n,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tL,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=t8.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tA.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=r,this.options=o,this.blockInitialAnimation=!!n,this.isControllingVariants=eh(e),this.isVariantNode=eu(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==l[t]&&X(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,er.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)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ec.current||function(){if(ec.current=!0,ep)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ed.current=t.matches;t.addEventListener("change",e),e()}else ed.current=!1}(),this.shouldReduceMotion=ed.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tV(this.notifyUpdate),tV(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&t6.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:s,times:r,ease:n,duration:a}=e.accelerate,o=new t2({element:this.current,name:t,keyframes:s,times:r,ease:n,duration:tN(a)}),l=i(o);this.valueSubscriptions.set(t,()=>{l(),o.cancel()});return}let r=s.has(t);r&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tA.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),i&&i()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in eg){let e=eg[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):Y()}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<ey.length;e++){let i=ey[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(X(r))t.addValue(s,r);else if(X(n))t.addValue(s,ei(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,ei(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()}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=ei(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let s,r;if("string"==typeof i&&(s=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s)||(r=i,/^0[^.\s]+$/u.test(r))))i=parseFloat(i);else{let s;s=i,!es.find(H(s))&&E.test(e)&&(i=tj(t,e))}this.setBaseTarget(t,X(i)?i.get():i)}return X(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=ef(this.props,i,this.presenceContext?.custom);s&&(e=s[t])}if(i&&void 0!==e)return e;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||X(s)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new tW),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){t7.render(this.render)}}t.s(["VisualElement",()=>eT,"getFeatureDefinitions",()=>ex,"setFeatureDefinitions",()=>ev],617218);class eb extends eT{constructor(){super(...arguments),this.KeyframeResolver=tI}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;X(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function ew(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eS=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eV=i.length;function eP(t,e,r){let{style:n,vars:a,transformOrigin:o}=t,l=!1,h=!1;for(let t in e){let i=e[t];if(s.has(t)){l=!0;continue}if(tt(t)){a[t]=i;continue}{let e=eS(i,I[t]);t.startsWith("origin")?(h=!0,o[t]=e):n[t]=e}}if(!e.transform&&(l||r?n.transform=function(t,e,s){let r="",n=!0;for(let a=0;a<eV;a++){let o=i[a],l=t[o];if(void 0===l)continue;let h=!0;if("number"==typeof l)h=l===+!!o.startsWith("scale");else{let t=parseFloat(l);h=o.startsWith("scale")?1===t:0===t}if(!h||s){let t=eS(l,I[o]);if(!h){n=!1;let e=eA[o]||o;r+=`${e}(${t}) `}s&&(e[o]=t)}}let a=t.pathRotation;return a&&(n=!1,r+=`rotate(${eS(a,I.pathRotation)}) `),r=r.trim(),s?r=s(e,n?"":r):n&&(r="none"),r}(e,t.transform,r):n.transform&&(n.transform="none")),h){let{originX:t="50%",originY:e="50%",originZ:i=0}=o;n.transformOrigin=`${t} ${e} ${i}`}}t.s(["buildHTMLStyles",()=>eP],544947);let eM={offset:"stroke-dashoffset",array:"stroke-dasharray"},ek={offset:"strokeDashoffset",array:"strokeDasharray"},eD=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eB(t,{attrX:e,attrY:i,attrScale:s,pathLength:r,pathSpacing:n=1,pathOffset:a=0,...o}
1,l,h,u){if(eP(t,o,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t of(d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=u?.transformBox??"fill-box",delete d.transformBox),eD))void 0!==d[t]&&(c[t]=d[t],delete d[t]);void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==s&&(d.scale=s),void 0!==r&&function(t,e,i=1,s=0,r=!0){t.pathLength=1;let n=r?eM:ek;t[n.offset]=`${-s}`,t[n.array]=`${e} ${i}`}(d,r,n,a,!1)}t.s(["buildSVGAttrs",()=>eB],181261);let eE=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),eR=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eC(t,{style:e,vars:i},s,r){let n,a=t.style;for(n in e)a[n]=e[n];for(n in r?.applyProjectionStyles(a,s),i)a.setProperty(n,i[n])}t.s(["isSVGTag",()=>eR],399951);let eL=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function eF(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}t.s(["cornerRadiusProps",()=>eL],895051);let ej={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!x.test(t))return t;else t=parseFloat(t);let i=eF(t,e.target.x),s=eF(t,e.target.y);return`${i}% ${s}%`}},eO=(t,e,i)=>t+(e-t)*i;t.s(["mixNumber",()=>eO],100706);let eI={borderRadius:{...ej,applyTo:[...eL]},borderTopLeftRadius:ej,borderTopRightRadius:ej,borderBottomLeftRadius:ej,borderBottomRightRadius:ej,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=E.parse(t);if(s.length>5)return t;let r=E.createTransformer(t),n=+("number"!=typeof s[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;s[0+n]/=a,s[1+n]/=o;let l=eO(a,o,.5);return"number"==typeof s[2+n]&&(s[2+n]/=l),"number"==typeof s[3+n]&&(s[3+n]/=l),r(s)}}};function eN(t,{layout:e,layoutId:i}){return s.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eI[t]||"opacity"===t)}function eU(t,e,i){let s=t.style,r=e?.style,n={};if(!s)return n;for(let e in s)(X(s[e])||r&&X(r[e])||eN(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(n[e]=s[e]);return n}function e$(t,e,s){let r=eU(t,e,s);for(let s in t)(X(t[s])||X(e[s]))&&(r[-1!==i.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s]=t[s]);return r}t.s(["scaleCorrectors",()=>eI],924463),t.s(["isForcedMotionValue",()=>eN],130789);class ez extends eb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Y}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(s.has(e)){let t=U(e);return t&&t.default||0}return e=eE.has(e)?e:ew(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return e$(t,e,i)}build(t,e,i){eB(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){for(let i in eC(t,e,void 0,s),e.attrs)t.setAttribute(eE.has(i)?i:ew(i),e.attrs[i])}mount(t){this.isSVGTag=eR(t.tagName),super.mount(t)}}function eW({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function eY({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function eX(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}}function eK(t){return void 0===t||1===t}function eH({scale:t,scaleX:e,scaleY:i}){return!eK(t)||!eK(e)||!eK(i)}function eG(t){return eH(t)||eq(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eq(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eZ(t,e,i){return i+e*(t-i)}function e_(t,e,i,s,r){return void 0!==r&&(t=s+r*(t-s)),s+i*(t-s)+e}function eJ(t,e=0,i=1,s,r){t.min=e_(t.min,e,i,s,r),t.max=e_(t.max,e,i,s,r)}function eQ(t,{x:e,y:i}){eJ(t.x,e.translate,e.scale,e.originPoint),eJ(t.y,i.translate,i.scale,i.originPoint)}function e0(t,e,i,s=!1){let r,n,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){n=(r=i[o]).projectionDelta;let{visualElement:a}=r.options;
1(!a||!a.props.style||"contents"!==a.props.style.display)&&(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(e1(t.x,-r.scroll.offset.x),e1(t.y,-r.scroll.offset.y)),n&&(e.x*=n.x.scale,e.y*=n.y.scale,eQ(t,n)),s&&eG(r.latestValues)&&e2(t,r.latestValues,r.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function e1(t,e){t.min+=e,t.max+=e}function e3(t,e,i,s,r=.5){let n=eO(t.min,t.max,r);eJ(t,e,i,n,s)}function e5(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function e2(t,e,i){let s=i??t;e3(t.x,e5(e.x,s.x),e.scaleX,e.scale,e.originX),e3(t.y,e5(e.y,s.y),e.scaleY,e.scale,e.originY)}function e6(t,e){return eW(eX(t.getBoundingClientRect(),e))}function e7(t,e,i){let s=e6(t,i),{scroll:r}=e;return r&&(e1(s.x,r.offset.x),e1(s.y,r.offset.y)),s}t.s(["SVGVisualElement",()=>ez],275737),t.s(["convertBoundingBoxToBox",()=>eW,"convertBoxToBoundingBox",()=>eY,"transformBoxPoints",()=>eX],27677),t.s(["has2DTranslate",()=>eq,"hasScale",()=>eH,"hasTransform",()=>eG],177777),t.s(["applyBoxDelta",()=>eQ,"applyTreeDeltas",()=>e0,"scalePoint",()=>eZ,"transformBox",()=>e2,"translateAxis",()=>e1],135636),t.s(["measurePageBox",()=>e7,"measureViewportBox",()=>e6],153689);class e9 extends eb{constructor(){super(...arguments),this.type="html",this.renderInstance=eC}mount(t){J(!!t.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(t)}readValueFromInstance(t,e){if(s.has(e))return this.projection?.isProjecting?tp(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tm(i,e)})(t,e);{let i=window.getComputedStyle(t),s=(tt(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e6(t,e)}build(t,e,i){eP(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return eU(t,e,i)}}function e8(t){return X(t)?t.get():t}t.s(["HTMLVisualElement",()=>e9],386783),t.s(["scrapeHTMLMotionValuesFromProps",()=>eU],830665),t.s(["resolveMotionValue",()=>e8],733871),t.s(["scrapeSVGMotionValuesFromProps",()=>e$],630868);let e4="data-"+ew("framerAppearId");t.s(["optimizedAppearDataAttribute",()=>e4],535043);class it{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ie(t,e,i){let s=t.getProps();return ef(s,e,void 0!==i?i:s.custom,t)}function ii(t,e){if(t?.inherit&&e){let{inherit:i,...s}=t;return{...e,...s}}return t}function is(t,e){let i=t?.[e]??t?.default??t;return i!==t?ii(i,t):i}t.s(["Feature",()=>it],142098),t.s(["resolveVariant",()=>ie],618812),t.s(["getValueTransition",()=>is],987333);let ir=t=>Array.isArray(t);function ia(t,e){let i=t.getValue("willChange");if(X(i)&&i.add)return i.add(e);if(!i&&tb.WillChange){let i=new tb.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function io(t){return t.props[e4]}t.s(["addValueToWillChange",()=>ia],980538),t.s(["getOptimisedAppearId",()=>io],716896);let il=(...t)=>t.reduce((t,e)=>i=>e(t(i)));function ih(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 iu(t,e){return i=>i>0?e:t}t.s(["pipe",()=>il],738638);let id=(t,e,i)=>{let s=t*t,r=i*(e*e-s)+s;return r<0?0:Math.sqrt(r)},ic=[f,m,S];function ip(t){let e=ic.find(e=>e.test(t));if(_(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===S&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let r=0,n=0,a=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,o=2*i-s;r=ih(o,s,t+1/3),n=ih(o,s,t),a=ih(o,s,t-1/3)}else r=n=a=i;return{red:Math.round(255*r),green:Math.round(255*n),blue:Math.round(255*a),alpha:s}}(i)),i}let im=(t,e)=>{let i=ip(t),s=ip(e);if(!i||!s)return iu(t,e);let r={...i};return t=>(r.red=id(i.red,s.red,t),r.green=id(i.green,s.green,t),r.blue=id(i.blue,s.blue,t),r.alpha=eO(i.alpha,s.alpha,t),m.transform(r))},iy=new Set(["none","hidden"]);function ig(t,e){return i=>eO(t,e,i)}function iv(t){return"number"==typeof t?ig:"string"==typeof t?ti(t)?iu:A.test(t)?im:ib:Array.isArray(t)?ix:"object"==typeof t?A.test(t)?im:iT:iu}function ix(t,e){let i=[...t],s=i.length,r=t.map((t,i)=>iv(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=r[e](t);return i}}function iT(t,e){let i={...t,...e},s={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(s[r]=iv(t[r])(t[r],e[r]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let ib=(t,e)=>{let i=E.createTransformer(e),s=D(t),r=D(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,`Complex values '${t}' and '${e}
1' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iu(t,e);if(iy.has(t)&&!r.values.length||iy.has(e)&&!s.values.length)return iy.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return il(ix(function(t,e){let i=[],s={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let n=e.types[r],a=t.indexes[n][s[n]],o=t.values[a]??0;i[r]=o,s[n]++}return i}(s,r),r.values),i)};function iw(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eO(t,e,i):iv(t)(t,e)}let iS=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tA.update(e,t),stop:()=>tV(e),now:()=>tP.isProcessing?tP.timestamp:t8.now()}};function iA(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let iV=.01,iP=2,iM=.005,ik=.5;function iD(t,e){return t*Math.sqrt(1-e*e)}let iB=["duration","bounce"],iE=["stiffness","damping","mass"];function iR(t,e){return e.some(e=>void 0!==t[e])}function iC(t=.3,e=.3){let i,s,n,a,o,l,h="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:u,restDelta:d}=h,c=h.keyframes[0],p=h.keyframes[h.keyframes.length-1],m={done:!1,value:c},{stiffness:f,damping:y,mass:g,duration:v,velocity:x,isResolvedFromDuration:T}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!iR(t,iE)&&iR(t,iB))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,n=2*r(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:n}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:s=1}){let n,a;_(t<=tN(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=r(.05,1,o),t=r(.01,10,tU(t)),o<1?(n=e=>{let s=e*o,r=s*t;return .001-(s-i)/iD(e,o)*Math.exp(-r)},a=e=>{let s=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-s),l=iD(Math.pow(e,2),o);return(s*i+i-r)*a*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),a=e=>t*t*(i-e)*Math.exp(-e*t));let l=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(n,a,5/t);if(t=tN(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(l,2)*s;return{stiffness:e,damping:2*o*Math.sqrt(s*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...h,velocity:-tU(h.velocity||0)}),b=x||0,w=y/(2*Math.sqrt(f*g)),S=p-c,A=tU(Math.sqrt(f/g)),V=5>Math.abs(S);if(u||(u=V?iV:iP),d||(d=V?iM:ik),w<1)n=iD(A,w),a=(b+w*A*S)/n,i=t=>p-Math.exp(-w*A*t)*(a*Math.sin(n*t)+S*Math.cos(n*t)),o=w*A*a+S*n,l=w*A*S-a*n,s=t=>Math.exp(-w*A*t)*(o*Math.sin(n*t)+l*Math.cos(n*t));else if(1===w){i=t=>p-Math.exp(-A*t)*(S+(b+A*S)*t);let t=b+A*S;s=e=>Math.exp(-A*e)*(A*t*e-b)}else{let t=A*Math.sqrt(w*w-1);i=e=>{let i=Math.exp(-w*A*e),s=Math.min(t*e,300);return p-i*((b+w*A*S)*Math.sinh(s)+t*S*Math.cosh(s))/t};let e=(b+w*A*S)/t,r=w*A*e-S*t,n=w*A*S-e*t;s=e=>{let i=Math.exp(-w*A*e),s=Math.min(t*e,300);return i*(r*Math.sinh(s)+n*Math.cosh(s))}}let P={calculatedDuration:T&&v||null,velocity:t=>tN(s(t)),next:t=>{if(!T&&w<1){let e=Math.exp(-w*A*t),i=Math.sin(n*t),s=Math.cos(n*t),r=p-e*(a*i+S*s);return m.done=Math.abs(tN(e*(o*i+l*s)))<=u&&Math.abs(p-r)<=d,m.value=m.done?p:r,m}let e=i(t);return T?m.done=t>=v:m.done=Math.abs(tN(s(t)))<=u&&Math.abs(p-e)<=d,m.value=m.done?p:e,m},toString:()=>{let t=Math.min(iA(P),2e4),e=t0(e=>P.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return P}function iL(t,e,i){let s=Math.max(e-5,0);return t4(i-t(s),e-s)}function iF({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:a,min:o,max:l,restDelta:h=.5,restSpeed:u}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,y=p+f,g=void 0===a?y:a(y);g!==y&&(f=g-p);let v=t=>-f*Math.exp(-t/s),x=t=>g+v(t),T=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=h,m.value=m.done?g:i},b=t=>{let e;if(e=m.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;d=t,c=iC({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:iL(x,t,m.value),damping:r,stiffness:n,restDelta:h,restSpeed:u})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,T(t),b(t)),void 0!==d&&t>=d)?c.next(t-d):(e||T(t),m)}}}iC.applyToOptions=t=>{let e=function(t,e=100,i){let s=i({...t,keyframes:[0,e]}),r=Math.min(iA(s),2e4);return{type:"keyframes",ease:t=>s.next(r*t).value/e,duration:tU(r)}}(t,100,iC);return t.ease=e.ease,t.duration=tN(e.duration),t.type="keyframes",t};let ij=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function iO(t,e,i,s){return t===e&&i===s?tT:r=>
10===r||1===r?r:ij(function(t,e,i,s,r){let n,a,o=0;do(n=ij(a=e+(i-e)/2,s,r)-t)>0?i=a:e=a;while(Math.abs(n)>1e-7&&++o<12)return a}(r,0,1,t,i),e,s)}let iI=iO(.42,0,1,1),iN=iO(0,0,.58,1),iU=iO(.42,0,.58,1),i$=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,iz=t=>e=>1-t(1-e),iW=iO(.33,1.53,.69,.99),iY=iz(iW),iX=i$(iY),iK=t=>t>=1?1:(t*=2)<1?.5*iY(t):.5*(2-Math.pow(2,-10*(t-1))),iH=t=>1-Math.sin(Math.acos(t)),iG=iz(iH),iq=i$(iH);t.s(["circIn",()=>iH,"circInOut",()=>iq,"circOut",()=>iG],791559);let iZ={linear:tT,easeIn:iI,easeInOut:iU,easeOut:iN,circIn:iH,circInOut:iq,circOut:iG,backIn:iY,backInOut:iX,backOut:iW,anticipate:iK},i_=t=>{if(tJ(t)){J(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,s,r]=t;return iO(e,i,s,r)}return"string"==typeof t?(J(void 0!==iZ[t],`Invalid easing type '${t}'`,"invalid-easing-type"),iZ[t]):t},iJ=(t,e,i)=>{let s=e-t;return s?(i-t)/s:1};function iQ({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var n;let a,o=Array.isArray(s)&&"number"!=typeof s[0]?s.map(i_):i_(s),l={done:!1,value:e[0]},h=function(t,e,{clamp:i=!0,ease:s,mixer:n}={}){let a=t.length;if(J(a===e.length,"Both input and output ranges must be the same length","range-length"),1===a)return()=>e[0];if(2===a&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[a-1]&&(t=[...t].reverse(),e=[...e].reverse());let l=function(t,e,i){let s=[],r=i||tb.mix||iw,n=t.length-1;for(let i=0;i<n;i++){let n=r(t[i],t[i+1]);e&&(n=il(Array.isArray(e)?e[i]||tT:e,n)),s.push(n)}return s}(e,s,n),h=l.length,u=i=>{if(o&&i<t[0])return e[0];let s=0;if(h>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let r=iJ(t[s],t[s+1],i);return l[s](r)};return i?e=>u(r(t[0],t[a-1],e)):u}((n=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let r=iJ(0,e,s);t.push(eO(i,1,r))}}(a=[0],e.length-1),a),n.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||iU).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(l.value=h(e),l.done=e>=t,l)}}t.s(["progress",()=>iJ],783920);let i0={decay:iF,inertia:iF,tween:iQ,keyframes:iQ,spring:iC};function i1(t){"string"==typeof t.type&&(t.type=i0[t.type])}let i3=t=>t/100;class i5 extends t_{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==t8.now()&&this.tick(t8.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;i1(t);let{type:e=iQ,repeat:i=0,repeatDelay:s=0,repeatType:r,velocity:n=0}=t,{keyframes:a}=t,o=e||iQ;o!==iQ&&"number"!=typeof a[0]&&(this.mixKeyframes=il(i3,iw(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===r&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-n})),null===l.calculatedDuration&&(l.calculatedDuration=iA(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:s,totalDuration:n,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:l,calculatedDuration:h}=this;if(null===this.startTime)return s.next(0);let{delay:u=0,keyframes:d,repeat:c,repeatType:p,repeatDelay:m,type:f,onUpdate:y,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>n;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let T=this.currentTime,b=s;if(c){let t=Math.min(this.currentTime,n)/l,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/l)):"mirror"===p&&(b=o)),T=r(0,1,i)*l}x?(this.delayState.value=d[0],i=this.delayState):i=b.next(T),a&&!x&&(i.value=a(i.value));let{done:w}=i;x||null===h||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return S&&f!==iF&&(i.value=tZ(d,this.options,g,this.speed)),y&&y(i.value),S&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return tU(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+tU(t)}get time(){return tU(this.currentTime)}set time(t){t=tN(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;
1if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return iL(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(t8.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=tU(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=iS,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(t8.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let i2={anticipate:iK,backInOut:iX,circInOut:iq};class i6 extends t2{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in i2&&(t.ease=i2[t.ease])}(t),i1(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:s,element:n,...a}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new i5({...a,autoplay:!1}),l=Math.max(10,t8.now()-this.startTime),h=r(0,10,l-10),u=o.sample(l).value,{name:d}=this.options;n&&d&&tY(n,d,u),e.setWithVelocity(o.sample(Math.max(0,l-h)).value,u,h),o.stop()}}let i7=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(E.test(t)||"0"===t)&&!t.startsWith("url("));function i9(t){t.duration=0,t.type="keyframes"}let i8=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,i4=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),st=tX(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class se extends t_{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:n="loop",keyframes:a,name:o,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=t8.now();const d={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:r,repeatType:n,name:o,motionValue:l,element:h,...u},c=h?.KeyframeResolver||tL;this.keyframeResolver=new c(a,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),o,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){let r;this.keyframeResolver=void 0;let{name:n,type:a,velocity:o,delay:l,isHandoff:h,onUpdate:u}=i;this.resolvedAt=t8.now();let d=!0;!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],a=i7(r,e),o=i7(n,e);return _(a===o,`You are trying to animate ${e} from "${r}" to "${n}". "${a?n:r}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||t5(i))&&s)}(t,n,a,o)&&(d=!1,(tb.instantAnimations||!l)&&u?.(tZ(t,i,e)),t[0]=t[t.length-1],i9(i),i.repeat=0);let c={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=d&&!h&&function(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:r,damping:n,type:a,keyframes:o}=t,l=e?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;
1let{onUpdate:h,transformTemplate:u}=e.owner.getProps();return st()&&i&&(t6.has(i)||i4.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&i8.test(t[e]))return!0;return!1}(o))&&("transform"!==i||!u)&&!h&&!s&&"mirror"!==r&&0!==n&&"inertia"!==a}(c),m=c.motionValue?.owner?.current;if(p)try{r=new i6({...c,element:m})}catch{r=new i5(c)}else r=new i5(c);r.finished.then(()=>{this.notifyFinished()}).catch(tT),this.pendingTimeline&&(this.stopTimeline=r.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=r}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tE=!0,tC(),tR(),tE=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let si={type:"spring",stiffness:500,damping:25,restSpeed:10},ss={type:"keyframes",duration:.8},sr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sn=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),sa=(t,e,i,r={},n,a)=>o=>{let l=is(r,t)||{},h=l.delay||r.delay||0,{elapsed:u=0}=r;u-=tN(h);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-u,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:a?void 0:n};!function(t){for(let e in t)if(!sn.has(e))return!0;return!1}(l)&&Object.assign(d,((t,{keyframes:e})=>e.length>2?ss:s.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:si:sr)(t,d)),d.duration&&(d.duration=tN(d.duration)),d.repeatDelay&&(d.repeatDelay=tN(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(i9(d),0===d.delay&&(c=!0)),(tb.instantAnimations||tb.skipAnimations||n?.shouldSkipAnimations||l.skipAnimations)&&(c=!0,i9(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,c&&!a&&void 0!==e.get()){let t=tZ(d.keyframes,l);if(void 0!==t)return void tA.update(()=>{d.onUpdate(t),d.onComplete()})}return l.isSync?new i5(d):new se(d)};function so(t,e,{delay:i=0,transitionOverride:s,type:r}={}){let{transition:n,transitionEnd:a,...o}=e,l=t.getDefaultTransition();n=n?ii(n,l):l;let h=n?.reduceMotion,u=n?.skipAnimations;s&&(n=s);let d=[],c=r&&t.animationState&&t.animationState.getState()[r],p=n?.path;for(let e in p&&p.animateVisualElement(t,o,n,i,d),o){let s=t.getValue(e,t.latestValues[e]??null),r=o[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,...is(n||{},e)};u&&(a.skipAnimations=!0);let l=s.get();if(void 0!==l&&!s.isAnimating()&&!Array.isArray(r)&&r===l&&!a.velocity){tA.update(()=>s.set(r));continue}let p=!1;if(window.MotionHandoffAnimation){let i=io(t);if(i){let t=window.MotionHandoffAnimation(i,e,tA);null!==t&&(a.startTime=t,p=!0)}}ia(t,e);let m=h??t.shouldReduceMotion;s.start(sa(e,s,r,m&&K.has(e)?{type:!1}:a,t,p));let f=s.animation;f&&d.push(f)}if(a){let e=()=>tA.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:s={},...r}=ie(t,e)||{};for(let e in r={...r,...i}){var n;let i=ir(n=r[e])?n[n.length-1]||0:n;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,ei(i))}}(t,a)});d.length?Promise.all(d).then(e):e()}return d}function sl(t,e,i,s=0,r=1){let n=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*s;return"function"==typeof i?i(n,a):1===r?n*s:o-n*s}function sh(t,e,i={}){let s=ie(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(r=i.transitionOverride);let n=s?()=>Promise.all(so(t,s,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:n=0,staggerChildren:a,staggerDirection:o}=r;
1return function(t,e,i=0,s=0,r=0,n=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(sh(l,e,{...a,delay:i+("function"==typeof s?0:s)+sl(t.variantChildren,l,s,r,n)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,s,n,a,o,i)}:()=>Promise.resolve(),{when:o}=r;if(!o)return Promise.all([n(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[n,a]:[a,n];return t().then(()=>e())}}t.s(["animateMotionValue",()=>sa],939011);let su=el.length;function sd(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}let sc=[...eo].reverse(),sp=eo.length;function sm(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=>sh(t,e,i)));else if("string"==typeof e)s=sh(t,e,i);else{let r="function"==typeof e?ie(t,e,i.custom):e;s=Promise.all(so(t,r,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=sy(),s=!0,r=!1,n=e=>(i,s)=>{let r=ie(t,s,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...s}=r;i={...i,...s,...e}}return i};function a(a){let{props:o}=t,l=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<su;t++){let s=el[t],r=e.props[s];(ea(r)||!1===r)&&(i[s]=r)}return i}(t.parent)||{},h=[],u=new Set,d={},c=1/0;for(let e=0;e<sp;e++){var p,m;let f=sc[e],y=i[f],g=void 0!==o[f]?o[f]:l[f],v=ea(g),x=f===a?y.isActive:null;!1===x&&(c=e);let T=g===l[f]&&g!==o[f]&&v;if(T&&(s||r)&&t.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...d},!y.isActive&&null===x||!g&&!y.prevProp||en(g)||"boolean"==typeof g)continue;if("exit"===f&&y.isActive&&!0!==x){y.prevResolvedValues&&(d={...d,...y.prevResolvedValues});continue}let b=(p=y.prevProp,"string"==typeof(m=g)?m!==p:!!Array.isArray(m)&&!sd(m,p)),w=b||f===a&&y.isActive&&!T&&v||e>c&&v,S=!1,A=Array.isArray(g)?g:[g],V=A.reduce(n(f),{});!1===x&&(V={});let{prevResolvedValues:P={}}=y,M={...P,...V},k=e=>{w=!0,u.has(e)&&(S=!0,u.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in M){let e=V[t],i=P[t];if(!d.hasOwnProperty(t))(ir(e)&&ir(i)?!sd(e,i)||b:e!==i)?null!=e?k(t):u.add(t):void 0!==e&&u.has(t)?k(t):y.protectedKeys[t]=!0}y.prevProp=g,y.prevResolvedValues=V,y.isActive&&(d={...d,...V}),(s||r)&&t.blockInitialAnimation&&(w=!1);let D=T&&b,B=!D||S;w&&B&&h.push(...A.map(e=>{let i={type:f};if("string"==typeof e&&(s||r)&&!D&&t.manuallyAnimateOnMount&&t.parent){let{parent:s}=t,r=ie(s,e);if(s.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=sl(s.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof o.initial){let i=ie(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let s=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=s??null}),h.push({animation:e})}let f=!!h.length;return s&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(f=!1),s=!1,r=!1,f?e(h):Promise.resolve()}return{animateChanges:a,setActive:function(e,s){if(i[e].isActive===s)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,s)),i[e].isActive=s;let r=a(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=sy(),r=!0}}}function sf(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sy(){return{animate:sf(!0),whileInView:sf(),whileHover:sf(),whileTap:sf(),whileDrag:sf(),whileFocus:sf(),exit:sf()}}function sg(t){return[t("x"),t("y")]}t.s(["createAnimationState",()=>sm],637041),t.s(["eachAxis",()=>sg],655559)},919880,t=>{"use strict";let e=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function i(t){return e.has(t.tagName)||!0===t.isContentEditable}let s=new Set(["INPUT","SELECT","TEXTAREA"]);function r(t){return s.has(t.tagName)||!0===t.isContentEditable}t.s(["isElementKeyboardAccessible",()=>i,"isElementTextInput",()=>r])},282774,439676,137541,652101,t=>{"use strict";function e(t,i,s,r={passive:!0}){return t.addEventListener(i,s,r),()=>t.removeEventListener(i,s,r)}t.s(["addDomEvent",()=>e],282774);let i={x:!1,y:!1};function s(){return i.x||i.y}function r(t){if("x"===t||"y"===t)if(i[t])return null;else return i[t]=!0,()=>{i[t]=!1};return i.x||i.y?null:(i.x=i.y=!0,()=>{i.x=i.y=!1})}t.s(["isDragActive",()=>s,"isDragging",()=>i],439676),t.s(["setDragLock",()=>r],137541);var n=t.i(100706);function a(t){return t.max-t.min}function o(t,e,i){return Math.abs(t-e)<=i}function l(t,e,i,s=.5){t.origin=s,t.originPoint=(0,n.mixNumber)(e.min,e.max,t.origin),t.scale=a(i)/a(e),t.translate=(0,n.mixNumber)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}
1function h(t,e,i,s){l(t.x,e.x,i.x,s?s.originX:void 0),l(t.y,e.y,i.y,s?s.originY:void 0)}function u(t,e,i,s=0){t.min=(s?(0,n.mixNumber)(i.min,i.max,s):i.min)+e.min,t.max=t.min+a(e)}function d(t,e,i,s){u(t.x,e.x,i.x,s?.x),u(t.y,e.y,i.y,s?.y)}function c(t,e,i,s=0){let r=s?(0,n.mixNumber)(i.min,i.max,s):i.min;t.min=e.min-r,t.max=t.min+a(e)}function p(t,e,i,s){c(t.x,e.x,i.x,s?.x),c(t.y,e.y,i.y,s?.y)}t.s(["calcBoxDelta",()=>h,"calcLength",()=>a,"calcRelativeBox",()=>d,"calcRelativePosition",()=>p,"isNear",()=>o],652101)},661327,889026,749652,t=>{"use strict";let e,i;var s=t.i(642824);function r(t){return(0,s.isObject)(t)&&"ownerSVGElement"in t}function n(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);let r=i?.[t]??s.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}t.s(["isSVGElement",()=>r],889026),t.s(["resolveElements",()=>n],749652);let a=new WeakMap,o=(t,e,i)=>(s,n)=>n&&n[0]?n[0][t+"Size"]:r(s)&&"getBBox"in s?s.getBBox()[e]:s[i],l=o("inline","width","offsetWidth"),h=o("block","height","offsetHeight");function u({target:t,borderBoxSize:e}){a.get(t)?.forEach(i=>{i(t,{get width(){return l(t,e)},get height(){return h(t,e)}})})}function d(t){t.forEach(u)}let c=new Set;function p(t,s){let r;return"function"==typeof t?(c.add(t),i||(i=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};c.forEach(e=>e(t))},window.addEventListener("resize",i)),()=>{c.delete(t),c.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!e&&"u">typeof ResizeObserver&&(e=new ResizeObserver(d)),(r=n(t)).forEach(t=>{let i=a.get(t);i||(i=new Set,a.set(t,i)),i.add(s),e?.observe(t)}),()=>{r.forEach(t=>{let i=a.get(t);i?.delete(s),i?.size||e?.unobserve(t)})})}t.s(["resize",()=>p],661327)},341327,107230,717871,973089,608648,t=>{"use strict";let e=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;t.s(["isPrimaryPointer",()=>e],341327);let i={hasAnimatedSinceResize:!0,hasEverUpdated:!1};t.s(["globalProjectionState",()=>i],107230);var s=t.i(570596),r=t.i(476959),n=t.i(260830),a=t.i(939011),o=t.i(486427),l=t.i(83411),h=t.i(716896),u=t.i(987333),d=t.i(560140),c=t.i(496173),p=t.i(924463);t.i(763074);var m=t.i(287022),f=t.i(889026),y=t.i(100706),g=t.i(733871),v=t.i(265091),x=t.i(783920),T=t.i(791559),b=t.i(895051);let w=b.cornerRadiusProps.length,S=t=>"string"==typeof t?parseFloat(t):t,A=t=>"number"==typeof t||v.px.test(t);function V(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let P=k(0,.5,T.circOut),M=k(.5,.95,n.noop);function k(t,e,i){return s=>s<t?0:s>e?1:i((0,x.progress)(t,e,s))}function D(t,e){t.min=e.min,t.max=e.max}function B(t,e){D(t.x,e.x),D(t.y,e.y)}function E(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var R=t.i(135636),C=t.i(652101);function L(t,e,i,s,r){return t-=e,t=(0,R.scalePoint)(t,1/i,s),void 0!==r&&(t=(0,R.scalePoint)(t,1/r,s)),t}function F(t,e,[i,s,r],n,a){!function(t,e=0,i=1,s=.5,r,n=t,a=t){if(v.percent.test(e)&&(e=parseFloat(e),e=(0,y.mixNumber)(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=(0,y.mixNumber)(n.min,n.max,s);t===n&&(o-=e),t.min=L(t.min,e,i,o,r),t.max=L(t.max,e,i,o,r)}(t,e[i],e[s],e[r],e.scale,n,a)}let j=["x","scaleX","originX"],O=["y","scaleY","originY"];function I(t,e,i,s){F(t.x,e,j,i?i.x:void 0,s?s.x:void 0),F(t.y,e,O,i?i.y:void 0,s?s.y:void 0)}var N=t.i(130162);function U(t){return 0===t.translate&&1===t.scale}function $(t){return U(t.x)&&U(t.y)}function z(t,e){return t.min===e.min&&t.max===e.max}function W(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Y(t,e){return W(t.x,e.x)&&W(t.y,e.y)}function X(t){return(0,C.calcLength)(t.x)/(0,C.calcLength)(t.y)}function K(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var H=t.i(133887);class G{constructor(){this.members=[]}add(t){(0,H.addUniqueItem)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let s=i.instance;s&&!1!==s.isConnected||i.snapshot||((0,H.removeItem)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,H.removeItem)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
1}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:s}=i.options,{layoutDependency:r}=t.options;(void 0===s||s!==r)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}var q=t.i(655559);let Z=(t,e)=>t.depth-e.depth;class _{constructor(){this.children=[],this.isDirty=!1}add(t){(0,H.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,H.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Z),this.isDirty=!1,this.children.forEach(t)}}var J=t.i(177777);let Q=["","X","Y","Z"],tt=0;function te(t,e,i,s){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),s&&(s[t]=0))}function ti({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:x,resetTransform:T}){return class{constructor(t={},i=e?.()){this.id=tt++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(tn),this.nodes.forEach(tm),this.nodes.forEach(tf),this.nodes.forEach(ta)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new _)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new s.SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,f.isSVGElement)(e)&&(!(0,f.isSVGElement)(e)||"svg"!==e.tagName),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),this.root.hasTreeAnimated&&(r||s)&&(this.isLayoutDirty=!0),t){let s,r=0,n=()=>this.root.updateBlockedByResize=!1;m.frame.read(()=>{r=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==r){let e,a;r=t,this.root.updateBlockedByResize=!0,s&&s(),e=c.time.now(),a=({timestamp:t})=>{let i=t-e;i>=250&&((0,m.cancelFrame)(a),n(i-250))},m.frame.setup(a,!0),s=()=>(0,m.cancelFrame)(a),i.hasAnimatedSinceResize&&(i.hasAnimatedSinceResize=!1,this.nodes.forEach(tp))}})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&n&&(s||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||tb,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=n.getProps(),l=!this.targetLayout||!Y(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,u.getValueTransition)(r,"layout"),onPlay:a,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h,e.path)}else e||tp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,m.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(ty),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,h.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",m.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,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(th),this.nodes.forEach(tl);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(tu);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(td),this.nodes.forEach(tc),this.nodes.forEach(ts),this.nodes.forEach(tr)):this.nodes.forEach(tu),this.clearAllSnapshots();let t=c.time.now();m.frameData.delta=(0,r.clamp)(0,1e3/60,t-m.frameData.timestamp),m.frameData.timestamp=t,m.frameData.isProcessing=!0,m.frameSteps.update.process(m.frameData),m.frameSteps.preRender.process(m.frameData),m.frameSteps.render.process(m.frameData),m.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,d.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(to),this.sharedNodes.forEach(tg)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,m.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){m.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,C.calcLength)(this.snapshot.measuredBox.x)||(0,C.calcLength)(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=(0,N.createBox)()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=x(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!T)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!$(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,J.hasTransform)(this.latestValues)||r)&&(T(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)),tA((e=s).x),tA(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,N.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tP))){let{scroll:t}=this.root;t&&((0,R.translateAxis)(e.x,t.offset.x),(0,R.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,N.createBox)();if(B(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:r,options:n}=s;s!==this.root&&r&&n.layoutScroll&&(r.wasRoot&&B(e,t),(0,R.translateAxis)(e.x,r.offset.x),(0,R.translateAxis)(e.y,r.offset.y))}return e}applyTransform(t,e=!1,i){let s=i||(0,N.createBox)();B(s,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&((0,R.translateAxis)(s.x,-i.scroll.offset.x),(0,R.translateAxis)(s.y,-i.scroll.offset.y)),(0,J.hasTransform)(i.latestValues)&&(0,R.transformBox)(s,i.latestValues,i.layout?.layoutBox)}return(0,J.hasTransform)(this.latestValues)&&(0,R.transformBox)(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(t){let e=(0,N.createBox)();B(e,t);for(let t=0;t<this.path.length;t++){let i,s=this.path[t];(0,J.hasTransform)(s.latestValues)&&(s.instance&&((0,J.hasScale)(s.latestValues)&&s.updateSnapshot(),B(i=(0,N.createBox)(),s.measurePageBox())),I(e,s.latestValues,s.snapshot?.layoutBox,i))}return(0,J.hasTransform)(this.latestValues)&&I(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!==m.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:r}=this.options;if(!this.layout||!(s||r))return;this.resolvedRelativeTargetAt=m.frameData.timestamp;let n=this.getClosestProjectingParent();n&&this.linkedParentVersion!==n.layoutVersion&&!n.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&n&&n.layout?this.createRelativeTarget(n,this.layout.layoutBox,n.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=(0,N.createBox)(),this.targetWithTransforms=(0,N.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,C.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):B(this.target,this.layout.layoutBox),(0,R.applyBoxDelta)(this.target,this.targetDelta)):B(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&n&&!!n.resumingFrom==!!this.resumingFrom&&!n.options.layoutScroll&&n.target&&1!==this.animationProgress?this.createRelativeTarget(n,this.target,n.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||(0,J.hasScale)(this.parent.latestValues)||(0,J.has2DTranslate)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,N.createBox)(),this.relativeTargetOrigin=(0,N.createBox)(),(0,C.calcRelativePosition)(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),B(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===m.frameData.timestamp&&(i=!1),i)return;let{layout:s,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||r))return;B(this.layoutCorrected,this.layout.layoutBox);let n=this.treeScale.x,a=this.treeScale.y;(0,R.applyTreeDeltas)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,N.createBox)());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(E(this.prevProjectionDelta.x,this.projectionDelta.x),E(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,C.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===n&&this.treeScale.y===a&&K(this.projectionDelta.x,this.prevProjectionDelta.x)&&K(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,N.createDelta)(),this.projectionDelta=(0,N.createDelta)(),this.projectionDeltaWithTransform=(0,N.createDelta)()}setAnimationOrigin(t,e=!1,i){let s,r=this.snapshot,n=r?r.latestValues:{},a={...this.latestValues},o=(0,N.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=(0,N.createBox)(),h=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,c=!!(h&&!d&&!0===this.options.crossfade&&!this.path.some(tT));this.animationProgress=0;let p=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,r=p?.(i);if(r?(o.x.translate=r.x,o.x.scale=(0,y.mixNumber)(t.x.scale,1,i),o.x.origin=t.x.origin,o.x.originPoint=t.x.originPoint,o.y.translate=r.y,o.y.scale=(0,y.mixNumber)(t.y.scale,1,i),o.y.origin=t.y.origin,o.y.originPoint=t.y.originPoint):(tv(o.x,t.x,i),tv(o.y,t.y,i)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,m,f,g,x,T;(0,C.calcRelativePosition)(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,g=this.relativeTargetOrigin,x=l,T=i,tx(f.x,g.x,x.x,T),tx(f.y,g.y,x.y,T),s&&(u=this.relativeTarget,m=s,z(u.x,m.x)&&z(u.y,m.y))&&(this.isProjectionDirty=!1),s||(s=(0,N.createBox)()),B(s,this.relativeTarget)}h&&(this.animationValues=a,function(t,e,i,s,r,n){r?(t.opacity=(0,y.mixNumber)(0,i.opacity??1,P(s)),t.opacityExit=(0,y.mixNumber)(e.opacity??1,0,M(s))):n&&(t.opacity=(0,y.mixNumber)(e.opacity??1,i.opacity??1,s));for(let r=0;r<w;r++){let n=b.cornerRadiusProps[r],a=V(e,n),o=V(i,n);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||A(a)===A(o)?(t[n]=Math.max((0,y.mixNumber)(S(a),S(o),s),0),(v.percent.test(o)||v.percent.test(a))&&(t[n]+="%")):t[n]=o)}(e.rotate||i.rotate)&&(t.rotate=(0,y.mixNumber)(e.rotate||0,i.rotate||0,s))}(a,n,this.latestValues,i,c,d)),r&&void 0!==r.rotate&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,m.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=m.frame.update(()=>{var e,s,r;let n;i.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=(0,o.motionValue)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,s=[0,1e3],r={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(n=(0,l.isMotionValue)(e)?e:(0,o.motionValue)(e)).start((0,a.animateMotionValue)("",n,s,r)),n.animation),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&&tV(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||(0,N.createBox)();let e=(0,C.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=(0,C.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}B(e,i),(0,R.transformBox)(e,r),(0,C.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new G),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let s={};i.z&&te("z",t,s,this.animationValues);for(let e=0;e<Q.length;e++)te(`rotate${Q[e]}`,t,s,this.animationValues),te(`skew${Q[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=(0,g.resolveMotionValue)(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,g.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!(0,J.hasTransform)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=s.animationValues||s.latestValues;this.applyTransformsToTarget();let n=function(t,e,i){let s="",r=t.x.translate/e.x,n=t.y.translate/e.y,a=i?.z||0;if((r||n||a)&&(s=`translate3d(${r}px, ${n}px, ${a}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:r,rotateX:n,rotateY:a,skewX:o,skewY:l}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),r&&(s+=`rotate(${r}deg) `),n&&(s+=`rotateX(${n}deg) `),a&&(s+=`rotateY(${a}deg) `),o&&(s+=`skewX(${o}deg) `),l&&(s+=`skewY(${l}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(s+=`scale(${o}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(n=i(r,n)),t.transform=n;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,s.animationValues?t.opacity=s===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=s===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,p.scaleCorrectors){if
1(void 0===r[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=p.scaleCorrectors[e],l="none"===n?r[e]:i(r[e],s);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=s===this?(0,g.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(tl),this.root.sharedNodes.clear()}}}function ts(t){t.updateLayout()}function tr(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:r}=t.options,n=e.source!==t.layout.source;if("size"===r)(0,q.eachAxis)(t=>{let s=n?e.measuredBox[t]:e.layoutBox[t],r=(0,C.calcLength)(s);s.min=i[t].min,s.max=s.min+r});else if("x"===r||"y"===r){let t="x"===r?"y":"x";D(n?e.measuredBox[t]:e.layoutBox[t],i[t])}else tV(r,e.layoutBox,i)&&(0,q.eachAxis)(s=>{let r=n?e.measuredBox[s]:e.layoutBox[s],a=(0,C.calcLength)(i[s]);r.max=r.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+a)});let a=(0,N.createDelta)();(0,C.calcBoxDelta)(a,i,e.layoutBox);let o=(0,N.createDelta)();n?(0,C.calcBoxDelta)(o,t.applyTransform(s,!0),e.measuredBox):(0,C.calcBoxDelta)(o,i,e.layoutBox);let l=!$(a),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:r,layout:n}=s;if(r&&n){let a=t.options.layoutAnchor||void 0,o=(0,N.createBox)();(0,C.calcRelativePosition)(o,e.layoutBox,r.layoutBox,a);let l=(0,N.createBox)();(0,C.calcRelativePosition)(l,i,n.layoutBox,a),Y(o,l)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=o,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tn(t){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 ta(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function to(t){t.clearSnapshot()}function tl(t){t.clearMeasurements()}function th(t){t.isLayoutDirty=!0,t.updateLayout()}function tu(t){t.isLayoutDirty=!1}function td(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function tc(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tp(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tm(t){t.resolveTargetDelta()}function tf(t){t.calcProjection()}function ty(t){t.resetSkewAndRotation()}function tg(t){t.removeLeadSnapshot()}function tv(t,e,i){t.translate=(0,y.mixNumber)(e.translate,0,i),t.scale=(0,y.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tx(t,e,i,s){t.min=(0,y.mixNumber)(e.min,i.min,s),t.max=(0,y.mixNumber)(e.max,i.max,s)}function tT(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tb={duration:.45,ease:[.4,0,.1,1]},tw=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tS=tw("applewebkit/")&&!tw("chrome/")?Math.round:n.noop;function tA(t){t.min=tS(t.min),t.max=tS(t.max)}function tV(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,C.isNear)(X(e),X(i),.2)}function tP(t){return t!==t.root&&t.scroll?.wasRoot}var tM=t.i(282774);let tk=ti({attachResizeListener:(t,e)=>(0,tM.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),tD={current:void 0},tB=ti({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tD.current){let t=new tk({});t.mount(window),t.setOptions({layoutScroll:!0}),tD.current=t}return tD.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});t.s(["HTMLProjectionNode",()=>tB],717871);var tE=t.i(439676),tR=t.i(749652);function tC(t,e){let i=(0,tR.resolveElements)(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function tL(t,e,i={}){let[s,r,n]=tC(t,i);
1return s.forEach(t=>{let i,s=!1,n=!1,a=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},o=t=>{s=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),n&&(n=!1,a(t))},l=t=>{if("touch"!==t.pointerType){if(s){n=!0;return}a(t)}};t.addEventListener("pointerenter",s=>{if("touch"===s.pointerType||(0,tE.isDragActive)())return;n=!1;let a=e(t,s);"function"==typeof a&&(i=a,t.addEventListener("pointerleave",l,r))},r),t.addEventListener("pointerdown",()=>{s=!0,window.addEventListener("pointerup",o,r),window.addEventListener("pointercancel",o,r)},r)}),n}t.s(["setupGesture",()=>tC],973089),t.s(["hover",()=>tL],608648)},542269,t=>{"use strict";var e=t.i(772846),i=t.i(439676);let s=(t,e)=>!!e&&(t===e||s(t,e.parentElement));var r=t.i(341327),n=t.i(973089),a=t.i(919880);let o=new WeakSet;function l(t){return e=>{"Enter"===e.key&&t(e)}}function h(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function u(t){return(0,r.isPrimaryPointer)(t)&&!(0,i.isDragActive)()}let d=new WeakSet;function c(t,i,r={}){let[p,m,f]=(0,n.setupGesture)(t,r),y=t=>{let e=t.currentTarget;if(!u(t)||d.has(t))return;o.add(e),r.stopPropagation&&d.add(t);let n=i(e,t),a={...m,capture:!0},l=(t,i)=>{window.removeEventListener("pointerup",h,a),window.removeEventListener("pointercancel",c,a),o.has(e)&&o.delete(e),u(t)&&"function"==typeof n&&n(t,{success:i})},h=t=>{l(t,e===window||e===document||r.useGlobalTarget||s(e,t.target))},c=t=>{l(t,!1)};window.addEventListener("pointerup",h,a),window.addEventListener("pointercancel",c,a)};return p.forEach(t=>{(r.useGlobalTarget?window:t).addEventListener("pointerdown",y,m),(0,e.isHTMLElement)(t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=l(()=>{if(o.has(i))return;h(i,"down");let t=l(()=>{h(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>h(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,m)),(0,a.isElementKeyboardAccessible)(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),f}t.s(["press",()=>c],542269)}]);

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.