PageSourceSearch

https://setverso.com/assets/motion-DQrxb1aq.js

js setverso.com collected 2026-10-06 04:45:09 UTC 123,399 bytes, 9 lines download raw bytes

vendor: 3,968 bytes, lines 1-9
1var Fr=Object.defineProperty,Ir=Object.defineProperties;var Br=Object.getOwnPropertyDescriptors;var jt=Object.getOwnPropertySymbols;var Dn=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable;var oe=Math.pow,Cn=(t,e,n)=>e in t?Fr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,y=(t,e)=>{for(var n in e||(e={}))Dn.call(e,n)&&Cn(t,n,e[n]);if(jt)for(var n of jt(e))Mn.call(e,n)&&Cn(t,n,e[n]);return t},A=(t,e)=>Ir(t,Br(e));var U=(t,e)=>{var n={};for(var s in t)Dn.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&jt)for(var s of jt(t))e.indexOf(s)<0&&Mn.call(t,s)&&(n[s]=t[s]);return n};import{r as P}from"./vendor-BTbeRSw2.js";var $s={exports:{}},ne={};/**
2 * @license React
3 * react-jsx-runtime.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Or=P,jr=Symbol.for("react.element"),Nr=Symbol.for("react.fragment"),Ur=Object.prototype.hasOwnProperty,Wr=Or.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Kr={key:!0,ref:!0,__self:!0,__source:!0};function Hs(t,e,n){var s,i={},o=null,r=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(r=e.ref);for(s in e)Ur.call(e,s)&&!Kr.hasOwnProperty(s)&&(i[s]=e[s]);if(t&&t.defaultProps)for(s in e=t.defaultProps,e)i[s]===void 0&&(i[s]=e[s]);return{$$typeof:jr,type:t,key:o,ref:r,props:i,_owner:Wr.current}}ne.Fragment=Nr;ne.jsx=Hs;ne.jsxs=Hs;$s.exports=ne;var be=$s.exports;const zs=P.createContext({});function _r(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const Gs=typeof window!="undefined",$r=Gs?P.useLayoutEffect:P.useEffect,Xe=P.createContext(null);function Ye(t,e){t.indexOf(e)===-1&&t.push(e)}function Xt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Z=(t,e,n)=>n>e?e:n<t?t:n;let qe=()=>{};const J={},Xs=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Ys(t){return typeof t=="object"&&t!==null}const qs=t=>/^0[^.\s]+$/u.test(t);function Zs(t){let e;return()=>(e===void 0&&(e=t()),e)}const $=t=>t,Hr=(t,e)=>n=>e(t(n)),Ft=(...t)=>t.reduce(Hr),Mt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class Ze{constructor(){this.subscriptions=[]}add(e){return Ye(this.subscriptions,e),()=>Xt(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const G=t=>t*1e3,_=t=>t/1e3;function Js(t,e){return e?t*(1e3/e):0}const Qs=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,zr=1e-7,Gr=12;function Xr(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=Qs(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>zr&&++a<Gr);return r}function It(t,e,n,s){if(t===e&&n===s)return $;const i=o=>Xr(o,0,1,t,n);return o=>o===0||o===1?o:Qs(i(o),e,s)}const ti=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ei=t=>e=>1-t(1-e),ni=It(.33,1.53,.69,.99),Je=ei(ni),si=ti(Je),ii=t=>(t*=2)<1?.5*Je(t):.5*(2-Math.pow(2,-10*(t-1))),Qe=t=>1-Math.sin(Math.acos(t)),ri=ei(Qe),oi=ti(Qe),Yr=It(.42,0,1,1),qr=It(0,0,.58,1),ai=It(.42,0,.58,1),Zr=t=>Array.isArray(t)&&typeof t[0]!="number",li=t=>Array.isArray(t)&&typeof t[0]=="number",Jr={linear:$,easeIn:Yr,easeInOut:ai,easeOut:qr,circIn:Qe,circInOut:oi,circOut:ri,backIn:Je,backInOut:si,backOut:ni,anticipate:ii},Qr=t=>typeof t=="string",En=t=>{if(li(t)){qe(t.length===4);const[e,n,s,i]=t;return It(e,n,s,i)}else if(Qr(t))return Jr[t];return t},Nt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function to(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){r.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,h=!1,f=!1)=>{const m=f&&i?n:s;return h&&r.add(u),m.has(u)||m.add(u),u},cancel:u=>{s.delete(u),r.delete(u)},process:u=>{if(a=u,i){o=!0;return}
vendor: 14,656 bytes, line 9
9i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,c.process(u))}};return c}const eo=40;function ci(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Nt.reduce((T,b)=>(T[b]=to(o),T),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:f,render:d,postRender:m}=r,v=()=>{const T=J.useManualTiming?i.timestamp:performance.now();n=!1,J.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(T-i.timestamp,eo),1)),i.timestamp=T,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),h.process(i),f.process(i),d.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(v))},g=()=>{n=!0,s=!0,i.isProcessing||t(v)};return{schedule:Nt.reduce((T,b)=>{const S=r[b];return T[b]=(C,E=!1,V=!1)=>(n||g(),S.schedule(C,E,V)),T},{}),cancel:T=>{for(let b=0;b<Nt.length;b++)r[Nt[b]].cancel(T)},state:i,steps:r}}const{schedule:D,cancel:nt,state:I,steps:ae}=ci(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:$,!0);let Kt;function no(){Kt=void 0}const O={now:()=>(Kt===void 0&&O.set(I.isProcessing||J.useManualTiming?I.timestamp:performance.now()),Kt),set:t=>{Kt=t,queueMicrotask(no)}},ui=t=>e=>typeof e=="string"&&e.startsWith(t),hi=ui("--"),so=ui("var(--"),tn=t=>so(t)?io.test(t.split("/*")[0].trim()):!1,io=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Rn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const xt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Et=A(y({},xt),{transform:t=>Z(0,1,t)}),Ut=A(y({},xt),{default:1}),At=t=>Math.round(t*1e5)/1e5,en=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ro(t){return t==null}const oo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,nn=(t,e)=>n=>!!(typeof n=="string"&&oo.test(n)&&n.startsWith(t)||e&&!ro(n)&&Object.prototype.hasOwnProperty.call(n,e)),fi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(en);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},ao=t=>Z(0,255,t),le=A(y({},xt),{transform:t=>Math.round(ao(t))}),at={test:nn("rgb","red"),parse:fi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+le.transform(t)+", "+le.transform(e)+", "+le.transform(n)+", "+At(Et.transform(s))+")"};function lo(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Ae={test:nn("#"),parse:lo,transform:at.transform},Bt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Q=Bt("deg"),q=Bt("%"),w=Bt("px"),co=Bt("vh"),uo=Bt("vw"),Ln=A(y({},q),{parse:t=>q.parse(t)/100,transform:t=>q.transform(t*100)}),dt={test:nn("hsl","hue"),parse:fi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+q.transform(At(e))+", "+q.transform(At(n))+", "+At(Et.transform(s))+")"},L={test:t=>at.test(t)||Ae.test(t)||dt.test(t),parse:t=>at.test(t)?at.parse(t):dt.test(t)?dt.parse(t):Ae.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?at.transform(t):dt.transform(t),getAnimatableNone:t=>{const e=L.parse(t);return e.alpha=0,L.transform(e)}},ho=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function fo(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(en))==null?void 0:e.length)||0)+(((n=t.match(ho))==null?void 0:n.length)||0)>0}const di="number",mi="color",mo="var",po="var(",kn="${}",go=/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 Rt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(go,l=>(L.test(l)?(s.color.push(o),i.push(mi),n.push(L.parse(l))):l.startsWith(po)?(s.var.push(o),i.push(mo),n.push(l)):(s.number.push(o),i.push(di),n.push(parseFloat(l))),++o,kn)).split(kn);return{values:n,split:a,indexes:s,types:i}}function pi(t){return Rt(t).values}function gi(t){const{split:e,types:n}=Rt(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===di?o+=At(i[r]):a===mi?o+=L.transform(i[r]):o+=i[r]}return o}}const yo=t=>typeof t=="number"?0:L.test(t)?L.getAnimatableNone(t):t;function vo(t){const e=pi(t);return gi(t)(e.map(yo))}const X={test:fo,parse:pi,createTransformer:gi,getAnimatableNone:vo};function ce(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function To({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=ce(l,a,t+1/3),o=ce(l,a,t),r=ce(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Yt(t,e){return n=>n>0?e:t}const M=(t,e,n)=>t+(e-t)*n,ue=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},xo=[Ae,at,dt],wo=t=>xo.find(e=>e.test(t));function Fn(t){const e=wo(t);if(!e)return!1;let n=e.parse(t);return e===dt&&(n=To(n)),n}const In=(t,e)=>{const n=Fn(t),s=Fn(e);if(!n||!s)return Yt(t,e);const i=y({},n);return o=>(i.red=ue(n.red,s.red,o),i.green=ue(n.green,s.green,o),i.blue=ue(n.blue,s.blue,o),i.alpha=M(n.alpha,s.alpha,o),at.transform(i))},Ve=new Set(["none","hidden"]);function So(t,e){return Ve.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Po(t,e){return n=>M(t,e,n)}function sn(t){return typeof t=="number"?Po:typeof t=="string"?tn(t)?Yt:L.test(t)?In:Vo:Array.isArray(t)?yi:typeof t=="object"?L.test(t)?In:bo:Yt}function yi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>sn(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function bo(t,e){const n=y(y({},t),e),s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=sn(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function Ao(t,e){var i;const n=[],s={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const r=e.types[o],a=t.indexes[r][s[r]],l=(i=t.values[a])!=null?i:0;n[o]=l,s[r]++}return n}const Vo=(t,e)=>{const n=X.createTransformer(e),s=Rt(t),i=Rt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Ve.has(t)&&!i.values.length||Ve.has(e)&&!s.values.length?So(t,e):Ft(yi(Ao(s,i),i.values),n):Yt(t,e)};function vi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?M(t,e,n):sn(t)(t,e)}const Co=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>D.update(e,n),stop:()=>nt(e),now:()=>I.isProcessing?I.timestamp:O.now()}},Ti=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},qt=2e4;function rn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<qt;)e+=n,s=t.next(e);return e>=qt?1/0:e}function Do(t,e=100,n){const s=n(A(y({},t),{keyframes:[0,e]})),i=Math.min(rn(s),qt);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:_(i)}}const Mo=5;function xi(t,e,n){const s=Math.max(e-Mo,0);return Js(n-t(s),e-s)}const R={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},he=.001;function Eo({duration:t=R.duration,bounce:e=R.bounce,velocity:n=R.velocity,mass:s=R.mass}){let i,o,r=1-e;r=Z(R.minDamping,R.maxDamping,r),t=Z(R.minDuration,R.maxDuration,_(t)),r<1?(i=c=>{const u=c*r,h=u*t,f=u-n,d=Ce(c,r),m=Math.exp(-h);return he-f/d*m},o=c=>{const h=c*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(c,2)*t,m=Math.exp(-h),v=Ce(Math.pow(c,2),r);return(-i(c)+he>0?-1:1)*((f-d)*m)/v}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-he+u*h},o=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=Lo(i,o,a);if(t=G(t),isNaN(l))return{stiffness:R.stiffness,damping:R.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:t}}}const Ro=12;function Lo(t,e,n){let s=n;for(let i=1;i<Ro;i++)s=s-t(s)/e(s);return s}function Ce(t,e){return t*Math.sqrt(1-e*e)}const ko=["duration","bounce"],Fo=["stiffness","damping","mass"];function Bn(t,e){return e.some(n=>t[n]!==void 0)}function Io(t){let e=y({velocity:R.velocity,stiffness:R.stiffness,damping:R.damping,mass:R.mass,isResolvedFromDuration:!1},t);if(!Bn(t,Fo)&&Bn(t,ko))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*Z(.05,1,1-(t.bounce||0))*Math.sqrt(i);e=A(y({},e),{mass:R.mass,stiffness:i,damping:o})}else{const n=Eo(A(y({},t),{velocity:0}));e=A(y(y({},e),n),{mass:R.mass}),e.isResolvedFromDuration=!0}return e}function Zt(t=R.visualDuration,e=R.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:h,velocity:f,isResolvedFromDuration:d}=Io(A(y({},n),{velocity:-_(n.velocity||0)})),m=f||0,v=c/(2*Math.sqrt(l*u)),g=r-o,p=_(Math.sqrt(l/u)),x=Math.abs(g)<5;s||(s=x?R.restSpeed.granular:R.restSpeed.default),i||(i=x?R.restDelta.granular:R.restDelta.default);let T;if(v<1){const S=Ce(p,v);T=C=>{const E=Math.exp(-v*p*C);return r-E*((m+v*p*g)/S*Math.sin(S*C)+g*Math.cos(S*C))}}else if(v===1)T=S=>r-Math.exp(-p*S)*(g+(m+p*g)*S);else{const S=p*Math.sqrt(v*v-1);T=C=>{const E=Math.exp(-v*p*C),V=Math.min(S*C,300);return r-E*((m+v*p*g)*Math.sinh(V)+S*g*Math.cosh(V))/S}}const b={calculatedDuration:d&&h||null,next:S=>{const C=T(S);if(d)a.done=S>=h;else{let E=S===0?m:0;v<1&&(E=S===0?G(m):xi(T,S,C));const V=Math.abs(E)<=s,N=Math.abs(r-C)<=i;a.done=V&&N}return a.value=a.done?r:C,a},toString:()=>{const S=Math.min(rn(b),qt),C=Ti(E=>b.next(S*E).value,S,30);return S+"ms "+C},toTransition:()=>{}};return b}Zt.applyToOptions=t=>{const e=Do(t,100,Zt);return t.ease=e.ease,t.duration=G(e.duration),t.type="keyframes",t};function De({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],f={done:!1,value:h},d=V=>a!==void 0&&V<a||l!==void 0&&V>l,m=V=>a===void 0?l:l===void 0||Math.abs(a-V)<Math.abs(l-V)?a:l;let v=n*e;const g=h+v,p=r===void 0?g:r(g);p!==g&&(v=p-h);const x=V=>-v*Math.exp(-V/s),T=V=>p+x(V),b=V=>{const N=x(V),W=T(V);f.done=Math.abs(N)<=c,f.value=f.done?p:W};let S,C;const E=V=>{d(f.value)&&(S=V,C=Zt({keyframes:[f.value,m(f.value)],velocity:xi(T,V,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:V=>{let N=!1;return!C&&S===void 0&&(N=!0,b(V),E(V)),S!==void 0&&V>=S?C.next(V-S):(!N&&b(V),f)}}}function Bo(t,e,n){const s=[],i=n||J.mix||vi,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||$:e;a=Ft(l,a)}s.push(a)}return s}function Oo(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(qe(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Bo(e,s,i),l=a.length,c=u=>{if(r&&u<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const f=Mt(t[h],t[h+1],u);return a[h](f)};return n?u=>c(Z(t[0],t[o-1],u)):c}function jo(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Mt(0,e,s);t.push(M(n,1,i))}}function No(t){const e=[0];return jo(e,t.length-1),e}function Uo(t,e){return t.map(n=>n*e)}function Wo(t,e){return t.map(()=>e||ai).splice(0,t.length-1)}function Vt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Zr(s)?s.map(En):En(s),o={done:!1,value:e[0]},r=Uo(n&&n.length===e.length?n:No(e),t),a=Oo(r,e,{ease:Array.isArray(i)?i:Wo(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Ko=t=>t!==null;function on(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(Ko),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const _o={decay:De,inertia:De,tween:Vt,keyframes:Vt,spring:Zt};function wi(t){typeof t.type=="string"&&(t.type=_o[t.type])}class an{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const $o=t=>t/100;class ln extends an{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,i;const{motionValue:n}=this.options;n&&n.updatedAt!==O.now()&&this.tick(O.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(s=this.options).onStop)==null||i.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;wi(e);const{type:n=Vt,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const l=n||Vt;l!==Vt&&typeof a[0]!="number"&&(this.mixKeyframes=Ft($o,vi(a[0],a[1])),a=[0,100]);const c=l(A(y({},e),{keyframes:a}));o==="mirror"&&(this.mirroredGenerator=l(A(y({},e),{keyframes:[...a].reverse(),velocity:-r}))),c.calculatedDuration===null&&(c.calculatedDuration=rn(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:h,repeatType:f,repeatDelay:d,type:m,onUpdate:v,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const p=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?p<0:p>i;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let T=this.currentTime,b=s;if(h){const V=Math.min(this.currentTime,i)/a;let N=Math.floor(V),W=V%1;!W&&V>=1&&(W=1),W===1&&N--,N=Math.min(N,h+1),!!(N%2)&&(f==="reverse"?(W=1-W,d&&(W-=d/
9a)):f==="mirror"&&(b=r)),T=Z(0,1,W)*a}const S=x?{done:!1,value:u[0]}:b.next(T);o&&(S.value=o(S.value));let{done:C}=S;!x&&l!==null&&(C=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return E&&m!==De&&(S.value=on(u,this.options,g,this.speed)),v&&v(S.value),E&&this.finish(),S}then(e,n){return this.finished.then(e,n)}get duration(){return _(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+_(e)}get time(){return _(this.currentTime)}set time(e){var n;e=G(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(O.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=_(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:e=Co,startTime:n}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),(o=(i=this.options).onPlay)==null||o.call(i);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n!=null?n:s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(O.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function Ho(t){var e;for(let n=1;n<t.length;n++)(e=t[n])!=null||(t[n]=t[n-1])}const lt=t=>t*180/Math.PI,Me=t=>{const e=lt(Math.atan2(t[1],t[0]));return Ee(e)},zo={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Me,rotateZ:Me,skewX:t=>lt(Math.atan(t[1])),skewY:t=>lt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ee=t=>(t=t%360,t<0&&(t+=360),t),On=Me,jn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Nn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Go={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:jn,scaleY:Nn,scale:t=>(jn(t)+Nn(t))/2,rotateX:t=>Ee(lt(Math.atan2(t[6],t[5]))),rotateY:t=>Ee(lt(Math.atan2(-t[2],t[0]))),rotateZ:On,rotate:On,skewX:t=>lt(Math.atan(t[4])),skewY:t=>lt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Re(t){return t.includes("scale")?1:0}function Le(t,e){if(!t||t==="none")return Re(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Go,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=zo,i=a}if(!i)return Re(e);const o=s[e],r=i[1].split(",").map(Yo);return typeof o=="function"?o(r):r[o]}const Xo=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Le(n,e)};function Yo(t){return parseFloat(t.trim())}const wt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],St=new Set(wt),Un=t=>t===xt||t===w,qo=new Set(["x","y","z"]),Zo=wt.filter(t=>!qo.has(t));function Jo(t){const e=[];return Zo.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const et={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),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})=>Le(e,"x"),y:(t,{transform:e})=>Le(e,"y")};et.translateX=et.x;et.translateY=et.y;const ct=new Set;let ke=!1,Fe=!1,Ie=!1;function Si(){if(Fe){const t=Array.from(ct).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Jo(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);
9i&&i.forEach(([o,r])=>{var a;(a=s.getValue(o))==null||a.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Fe=!1,ke=!1,ct.forEach(t=>t.complete(Ie)),ct.clear()}function Pi(){ct.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Fe=!0)})}function Qo(){Ie=!0,Pi(),Si(),Ie=!1}class cn{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(ct.add(this),ke||(ke=!0,D.read(Pi),D.resolveKeyframes(Si))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i==null?void 0:i.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}Ho(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ct.delete(this)}cancel(){this.state==="scheduled"&&(ct.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ta=t=>t.startsWith("--");function ea(t,e,n){ta(e)?t.style.setProperty(e,n):t.style[e]=n}const na={};function bi(t,e){const n=Zs(t);return()=>{var s;return(s=na[e])!=null?s:n()}}const sa=bi(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Ai=bi(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),bt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Wn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bt([0,.65,.55,1]),circOut:bt([.55,0,1,.45]),backIn:bt([.31,.01,.66,-.59]),backOut:bt([.33,1.53,.69,.99])};function Vi(t,e){if(t)return typeof t=="function"?Ai()?Ti(t,e):"ease-out":li(t)?bt(t):Array.isArray(t)?t.map(n=>Vi(n,e)||Wn.easeOut):Wn[t]}function ia(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const h=Vi(a,i);Array.isArray(h)&&(u.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),t.animate(u,f)}function Ci(t){return typeof t=="function"&&"applyToOptions"in t}function ra(n){var s=n,{type:t}=s,e=U(s,["type"]);var i,o;return Ci(t)&&Ai()?t.applyToOptions(e):((i=e.duration)!=null||(e.duration=300),(o=e.ease)!=null||(e.ease="easeOut"),e)}class Di extends an{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,qe(typeof e.type!="string");const c=ra(e);this.animation=ia(n,s,i,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=on(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):ea(n,s,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,s,i;const e=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(e!=null&&e.isConnected)&&((i=(s=this.animation).commitStyles)==null||i.call(s))}get duration(){var n,s;const e=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return _(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+_(e)}get time(){return _(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=G(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){var e;return(e=this.manualStartTime)!=null?e:Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&sa()?(this.animation.timeline=e,$):n(this)}}const Mi={anticipate:ii,backInOut:si,circInOut:oi};function oa(t){return t in Mi}function aa(t){typeof t.ease=="string"&&oa(t.ease)&&(t.ease=Mi[t.ease])}const fe=10;class la extends Di{constructor(e){aa(e),wi(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const u=this.options,{motionValue:n,onUpdate:s,onComplete:i,element:o}=u,r=U(u,["motionValue","onUpdate","onComplete","element"]);if(!n)return;if(e!==void 0){n.set(e);return}const a=new ln(A(y({},r),{autoplay:!1})),l=Math.max(fe,O.now()-this.startTime),c=Z(0,fe,l-fe);n.setWithVelocity(a.sample(Math.max(0,l-c)).value,a.sample(l).value,c),a.stop()}}const Kn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(X.test(t)||t==="0")&&!t.startsWith("url("));function ca(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function ua(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Kn(i,e),a=Kn(o,e);return!r||!a?!1:ca(t)||(n==="spring"||Ci(n))&&s}function Be(t){t.duration=0,t.type="keyframes"}const ha=new Set(["opacity","clipPath","filter","transform"]),fa=Zs(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function da(t){var u;const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!(((u=e==null?void 0:e.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return fa()&&n&&ha.has(n)&&(n!=="transform"||!c)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const ma=40;class pa extends an{constructor(f){var d=f,{autoplay:e=!0,delay:n=0,type:s="
9keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:l,motionValue:c,element:u}=d,h=U(d,["autoplay","delay","type","repeat","repeatDelay","repeatType","keyframes","name","motionValue","element"]);var g;super(),this.stop=()=>{var p,x;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(x=this.keyframeResolver)==null||x.cancel()},this.createdAt=O.now();const m=y({autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:l,motionValue:c,element:u},h),v=(u==null?void 0:u.KeyframeResolver)||cn;this.keyframeResolver=new v(a,(p,x,T)=>this.onKeyframesResolved(p,x,m,!T),l,c,u),(g=this.keyframeResolver)==null||g.scheduleResolve()}onKeyframesResolved(e,n,s,i){var g,p;this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=O.now(),ua(e,o,r,a)||((J.instantAnimations||!l)&&(u==null||u(on(e,s,n))),e[0]=e[e.length-1],Be(s),s.repeat=0);const h=i?this.resolvedAt?this.resolvedAt-this.createdAt>ma?this.resolvedAt:this.createdAt:this.createdAt:void 0,f=A(y({startTime:h,finalKeyframe:n},s),{keyframes:e}),d=!c&&da(f),m=(p=(g=f.motionValue)==null?void 0:g.owner)==null?void 0:p.current,v=d?new la(A(y({},f),{element:m})):new ln(f);v.finished.then(()=>{this.notifyFinished()}).catch($),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),Qo()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function Ei(t,e,n,s=0,i=1){const o=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}const ga=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ya(t){const e=ga.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n!=null?n:s}`,i]}function Ri(t,e,n=1){const[s,i]=ya(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Xs(r)?parseFloat(r):r}return tn(i)?Ri(i,e,n+1):i}const va={type:"spring",stiffness:500,damping:25,restSpeed:10},Ta=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),xa={type:"keyframes",duration:.8},wa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Sa=(t,{keyframes:e})=>e.length>2?xa:St.has(t)?t.startsWith("scale")?Ta(e[1]):va:wa,Pa=t=>t!==null;function ba(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(Pa),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}function Li(t,e){if(t!=null&&t.inherit&&e){const n=t,{inherit:s}=n,i=U(n,["inherit"]);return y(y({},e),i)}return t}function un(t,e){var s,i;const n=(i=(s=t==null?void 0:t[e])!=null?s:t==null?void 0:t.default)!=null?i:t;return n!==t?Li(n,t):n}function Aa(h){var f=h,{when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:c}=f,u=U(f,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(u).length}const hn=(t,e,n,s={},i,o)=>r=>{const a=un(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-G(l);const u=A(y({keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity()},a),{delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i});Aa(a)||Object.assign(u,Sa(t,u)),u.duration&&(u.duration=G(u.duration)),u.repeatDelay&&(u.repeatDelay=G(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Be(u),u.delay===0&&(h=!0)),(J.instantAnimations||J.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(h=!0,Be(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=ba(u.keyframes,a);if(f!==void 0){D.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new ln(u):new pa(u)};function _n(t){const e=[{},{}];
9return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function fn(t,e,n,s){if(typeof e=="function"){const[i,o]=_n(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=_n(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function vt(t,e,n){const s=t.getProps();return fn(s,e,n!==void 0?n:s.custom,t)}const ki=new Set(["width","height","top","left","right","bottom",...wt]),$n=30,Va=t=>!isNaN(parseFloat(t));class Ca{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var o;const i=O.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=O.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Va(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Ze);const s=this.events[e].add(n);return e==="change"?()=>{s(),D.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=O.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>$n)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,$n);return Js(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Tt(t,e){return new Ca(t,e)}const Oe=t=>Array.isArray(t);function Da(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Tt(n))}function Ma(t){return Oe(t)?t[t.length-1]||0:t}function Ea(t,e){let r=vt(t,e)||{},{transitionEnd:s={},transition:i={}}=r,o=U(r,["transitionEnd","transition"]);o=y(y({},o),s);for(const a in o){const l=Ma(o[a]);Da(t,a,l)}}const B=t=>!!(t&&t.getVelocity);function Ra(t){return!!(B(t)&&t.add)}function je(t,e){const n=t.getValue("willChange");if(Ra(n))return n.add(e);if(!n&&J.WillChange){const s=new J.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function dn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const La="framerAppearId",Fi="data-"+dn(La);function Ii(t){return t.props[Fi]}function ka({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Bi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var d;let f=e,{transition:o,transitionEnd:r}=f,a=U(f,["transition","transitionEnd"]);const l=t.getDefaultTransition();o=o?Li(o,l):l;const c=o==null?void 0:o.reduceMotion;s&&(o=s);const u=[],h=i&&t.animationState&&t.animationState.getState()[i];for(const m in a){const v=t.getValue(m,(d=t.latestValues[m])!=null?d:null),g=a[m];if(g===void 0||h&&ka(h,m))continue;const p=y({delay:n},un(o||{},m)),x=v.get();if(x!==void 0&&!v.isAnimating&&!Array.isArray(g)&&g===x&&!p.velocity)continue;let T=!1;if(window.MotionHandoffAnimation){const C=Ii(t);if(C){const E=window.MotionHandoffAnimation(C,m,D);E!==null&&(p.startTime=E,T=!0)}}je(t,m);const b=c!=null?c:t.shouldReduceMotion;
vendor: 12,769 bytes, line 9
9v.start(hn(m,v,g,b&&ki.has(m)?{type:!1}:p,t,T));const S=v.animation;S&&u.push(S)}if(r){const m=()=>D.update(()=>{r&&Ea(t,r)});u.length?Promise.all(u).then(m):m()}return u}function Ne(t,e,n={}){var l;const s=vt(t,e,n.type==="exit"?(l=t.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Bi(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:h,staggerDirection:f}=i;return Fa(t,e,c,u,h,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,u]=a==="beforeChildren"?[o,r]:[r,o];return c().then(()=>u())}else return Promise.all([o(),r(n.delay)])}function Fa(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(Ne(l,e,A(y({},r),{delay:n+(typeof s=="function"?0:s)+Ei(t.variantChildren,l,s,i,o)})).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Ia(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Ne(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Ne(t,e,n);else{const i=typeof e=="function"?vt(t,e,n.custom):e;s=Promise.all(Bi(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Ba={test:t=>t==="auto",parse:t=>t},Oi=t=>e=>e.test(t),ji=[xt,w,q,Q,uo,co,Ba],Hn=t=>ji.find(Oi(t));function Oa(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||qs(t):!0}const ja=new Set(["brightness","contrast","saturate","opacity"]);function Na(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(en)||[];if(!s)return t;const i=n.replace(s,"");let o=ja.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Ua=/\b([a-z-]*)\(.*?\)/gu,Ue=A(y({},X),{getAnimatableNone:t=>{const e=t.match(Ua);return e?e.map(Na).join(" "):t}}),We=A(y({},X),{getAnimatableNone:t=>{const e=X.parse(t);return X.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?A(y({},s),{alpha:1}):s))}}),zn=A(y({},xt),{transform:Math.round}),Wa={rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:Ut,scaleX:Ut,scaleY:Ut,scaleZ:Ut,skew:Q,skewX:Q,skewY:Q,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:Et,originX:Ln,originY:Ln,originZ:w},mn=A(y({borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,inset:w,insetBlock:w,insetBlockStart:w,insetBlockEnd:w,insetInline:w,insetInlineStart:w,insetInlineEnd:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockStart:w,paddingBlockEnd:w,paddingInline:w,paddingInlineStart:w,paddingInlineEnd:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockStart:w,marginBlockEnd:w,marginInline:w,marginInlineStart:w,marginInlineEnd:w,fontSize:w,backgroundPositionX:w,backgroundPositionY:w},Wa),{zIndex:zn,fillOpacity:Et,strokeOpacity:Et,numOctaves:zn}),Ka=A(y({},mn),{color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:Ue,WebkitFilter:Ue,mask:We,WebkitMask:We}),Ni=t=>Ka[t],_a=new Set([Ue,We]);function Ui(t,e){let n=Ni(t);return _a.has(n)||(n=X),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const $a=new Set(["auto","none","0"]);function Ha(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!$a.has(o)&&Rt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=Ui(n,i)}class za extends cn{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let h=e[u];if(typeof h=="string"&&(h=h.trim(),tn(h))){const f=Ri(h,n.current);f!==void 0&&(e[u]=f),u===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!ki.has(s)||e.length!==2)return;const[i,o]=e,r=Hn(i),a=Hn(o),l=Rn(i),c=Rn(o);if(l!==c&&et[s]){this.needsMeasurement=!0;return}if(r!==a)if(Un(r)&&Un(a))for(let u=0;u<e.length;u++){const h=e[u];typeof h=="string"&&(e[u]=parseFloat(h))}else et[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Oa(e[i]))&&s.push(i);s.length&&Ha(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=et[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=et[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,c])=>{e.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const Ga=new Set(["opacity","clipPath","filter","transform"]);function Wi(t,e,n){var s;if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const o=(s=n==null?void 0:n[t])!=null?s:i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t).filter(i=>i!=null)}const Ki=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Xa(t){return Ys(t)&&"offsetHeight"in t}const{schedule:pn}=ci(queueMicrotask,!1),z={x:!1,y:!1};function _i(){return z.x||z.y}function Ya(t){return t==="x"||t==="y"?z[t]?null:(z[t]=!0,()=>{z[t]=!1}):z.x||z.y?null:(z.x=z.y=!0,()=>{z.x=z.y=!1})}function $i(t,e){const n=Wi(t),s=new AbortController,i=A(y({passive:!0},e),{signal:s.signal});return[n,i,()=>s.abort()]}function qa(t){return!(t.pointerType==="touch"||_i())}function Za(t,e,n={}){const[s,i,o]=$i(t,n);return s.forEach(r=>{let a=!1,l=!1,c;const u=()=>{r.removeEventListener("pointerleave",m)},h=g=>{c&&(c(g),c=void 0),u()},f=g=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,h(g))},d=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},m=g=>{if(g.pointerType!=="touch"){if(a){l=!0;return}h(g)}},v=g=>{if(!qa(g))return;l=!1;const p=e(r,g);typeof p=="function"&&(c=p,r.addEventListener("pointerleave",m,i))};r.addEventListener("pointerenter",v,i),r.addEventListener("pointerdown",d,i)}),o}const Hi=(t,e)=>e?t===e?!0:Hi(t,e.parentElement):!1,gn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Ja=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Qa(t){return Ja.has(t.tagName)||t.isContentEditable===!0}const tl=new Set(["INPUT","SELECT","TEXTAREA"]);function el(t){return tl.has(t.tagName)||t.isContentEditable===!0}const _t=new WeakSet;function Gn(t){return e=>{e.key==="Enter"&&t(e)}}function de(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const nl=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Gn(()=>{if(_t.has(n))return;de(n,"down");const i=Gn(()=>{de(n,"up")}),o=()=>de(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function Xn(t){return gn(t)&&!_i()}const Yn=new WeakSet;function sl(t,e,n={}){const[s,i,o]=$i(t,n),r=a=>{const l=a.currentTarget;if(!Xn(a)||Yn.has(a))return;_t.add(l),n.stopPropagation&&Yn.add(a);const c=e(l,a),u=(d,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),_t.has(l)&&_t.delete(l),Xn(d)&&typeof c=="function"&&c(d,{success:m})},h=d=>{u(d,l===window||l===document||n.useGlobalTarget||Hi(l,d.target))},f=d=>{u(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),Xa(a)&&(a.addEventListener("focus",c=>nl(c,i)),!Qa(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function yn(t){return Ys(t)&&"ownerSVGElement"in t}const $t=new WeakMap;let tt;const zi=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:yn(s)&&"getBBox"in s?s.getBBox()[e]:s[n],il=zi("inline","width","offsetWidth"),rl=zi("block","height","offsetHeight");function ol({target:t,borderBoxSize:e}){var n;(n=$t.get(t))==null||n.forEach(s=>{s(t,{get width(){return il(t,e)},get height(){return rl(t,e)}})})}function al(t){t.forEach(ol)}function ll(){typeof ResizeObserver!="undefined"&&(tt=new ResizeObserver(al))}function cl(t,e){tt||ll();const n=Wi(t);return n.forEach(s=>{let i=$t.get(s);i||(i=new Set,$t.set(s,i)),i.add(e),tt==null||tt.observe(s)}),()=>{n.forEach(s=>{const i=$t.get(s);i==null||i.delete(e),i!=null&&i.size||tt==null||tt.unobserve(s)})}}const Ht=new Set;let mt;function ul(){mt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ht.forEach(e=>e(t))},window.addEventListener("resize",mt)}function hl(t){return Ht.add(t),mt||ul(),()=>{Ht.delete(t),!Ht.size&&typeof mt=="function"&&(window.removeEventListener("resize",mt),mt=void 0)}}function qn(t,e){return typeof t=="function"?hl(t):cl(t,e)}function fl(t){return yn(t)&&t.tagName==="svg"}const dl=[...ji,L,X],ml=t=>dl.find(Oi(t)),Zn=()=>({translate:0,scale:1,origin:0,originPoint:0}),pt=()=>({x:Zn(),y:Zn()}),Jn=()=>({min:0,max:0}),k=()=>({x:Jn(),y:Jn()}),pl=new WeakMap;function se(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Lt(t){return typeof t=="string"||Array.isArray(t)}const vn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Tn=["initial",...vn];function ie(t){return se(t.animate)||Tn.some(e=>Lt(t[e]))}function Gi(t){return!!(ie(t)||t.variants)}function gl(t,e,n){for(const s in e){const i=e[s],o=n[s];if(B(i))t.addValue(s,i);else if(B(o))t.addValue(s,Tt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,Tt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Ke={current:null},Xi={current:!1},yl=typeof window!="undefined";function vl(){if(Xi.current=!0,!!yl)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ke.current=t.matches;t.addEventListener("change",e),e()}else Ke.current=!1}const Qn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Jt={};function Yi(t){Jt=t}function Tl(){return Jt}class xl{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:r,visualState:a},l={}){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=cn,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=()=>{const m=O.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,D.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget=y({},c),this.initialValues=n.initial?y({},c):{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=l,this.blockInitialAnimation=!!r,this.isControllingVariants=ie(n),this.isVariantNode=Gi(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const d=this.scrapeMotionValuesFromProps(n,{},this),{willChange:h}=d,f=U(d,["willChange"]);for(const m in f){const v=f[m];c[m]!==void 0&&B(v)&&v.set(c[m])}}mount(e){var n,s,i;if(this.hasBeenMounted)for(const o in this.initialValues)(n=this.values.get(o))==null||n.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=e,pl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
9h((o,r)=>this.bindToMotionValue(r,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Xi.current||vl(),this.shouldReduceMotion=Ke.current),this.shouldSkipAnimations=(s=this.skipAnimationsConfig)!=null?s:!1,(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),nt(this.notifyUpdate),nt(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const s=this.features[n];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(e){var n;this.children.add(e),(n=this.enteringChildren)!=null||(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&Ga.has(e)&&this.current instanceof HTMLElement){const{factory:r,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,h=new Di({element:this.current,name:e,keyframes:a,times:l,ease:c,duration:G(u)}),f=r(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=St.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&D.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window!="undefined"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Jt){const n=Jt[e];
vendor: 12,459 bytes, line 9
9if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):k()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Qn.length;s++){const i=Qn[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=gl(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Tt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var i;let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!=null?i:this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Xs(s)||qs(s))?s=parseFloat(s):!ml(s)&&X.test(n)&&(s=Ui(e,n)),this.setBaseTarget(e,B(s)?s.get():s)),B(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var o;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=fn(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!B(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Ze),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){pn.render(this.render)}}class qi extends xl{constructor(){super(...arguments),this.KeyframeResolver=za}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;B(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class st{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Zi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function wl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Sl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function me(t){return t===void 0||t===1}function _e({scale:t,scaleX:e,scaleY:n}){return!me(t)||!me(e)||!me(n)}function ot(t){return _e(t)||Ji(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ji(t){return ts(t.x)||ts(t.y)}function ts(t){return t&&t!=="0%"}function Qt(t,e,n){const s=t-n,i=e*s;return n+i}function es(t,e,n,s,i){return i!==void 0&&(t=Qt(t,i,s)),Qt(t,n,s)+e}function $e(t,e=0,n=1,s,i){t.min=es(t.min,e,n,s,i),t.max=es(t.max,e,n,s,i)}function Qi(t,{x:e,y:n}){$e(t.x,e.translate,e.scale,e.originPoint),$e(t.y,n.translate,n.scale,n.originPoint)}const ns=.999999999999,ss=1.0000000000001;function Pl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&yt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Qi(t,r)),s&&ot(o.latestValues)&&yt(t,o.latestValues))}e.x<ss&&e.x>ns&&(e.x=1),e.y<ss&&e.y>ns&&(e.y=1)}function gt(t,e){t.min=t.min+e,t.max=t.max+e}function is(t,e,n,s,i=.5){const o=M(t.min,t.max,i);$e(t,e,n,o,s)}function yt(t,e){is(t.x,e.x,e.scaleX,e.scale,e.originX),is(t.y,e.y,e.scaleY,e.scale,e.originY)}function tr(t,e){return Zi(Sl(t.getBoundingClientRect(),e))}function bl(t,e,n){const s=tr(t,n),{scroll:i}=e;return i&&(gt(s.x,i.offset.x),gt(s.y,i.offset.y)),s}const Al={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Vl=wt.length;function Cl(t,e,n){let s="",i=!0;for(let o=0;o<Vl;o++){const r=wt[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(r.startsWith("scale")?1:0);else{const c=parseFloat(a);l=r.startsWith("scale")?c===1:c===0}if(!l||n){const c=Ki(a,mn[r]);if(!l){i=!1;const u=Al[r]||r;s+=`${u}(${c}) `}n&&(e[r]=c)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function xn(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const c=e[l];if(St.has(l)){r=!0;continue}else if(hi(l)){i[l]=c;continue}else{const u=Ki(c,mn[l]);l.startsWith("origin")?(a=!0,o[l]=u):s[l]=u}}if(e.transform||(r||n?s.transform=Cl(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;s.transformOrigin=`${l} ${c} ${u}`}}function er(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i==null||i.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function rs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Pt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(w.test(t))t=parseFloat(t);else return t;const n=rs(t,e.target.x),s=rs(t,e.target.y);return`${n}% ${s}%`}},Dl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=X.parse(t);if(i.length>5)return s;const o=X.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const c=M(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=c),typeof i[3+r]=="number"&&(i[3+r]/=c),o(i)}},He={borderRadius:A(y({},Pt),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Pt,borderTopRightRadius:Pt,borderBottomLeftRadius:Pt,borderBottomRightRadius:Pt,boxShadow:Dl};function nr(t,{layout:e,layoutId:n}){return St.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!He[t]||t==="opacity")}function wn(t,e,n){var r;const s=t.style,i=e==null?void 0:e.style,o={};if(!s)return o;for(const a in s)(B(s[a])||i&&B(i[a])||nr(a,t)||((r=n==null?void 0:n.getValue(a))==null?void 0:r.liveStyle)!==void 0)&&(o[a]=s[a]);return o}function Ml(t){return window.getComputedStyle(t)}class El extends qi{constructor(){super(...arguments),this.type="html",this.renderInstance=er}readValueFromInstance(e,n){var s;if(St.has(n))return(s=this.projection)!=null&&s.isProjecting?Re(n):Xo(e,n);{const i=Ml(e),o=(hi(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return tr(e,n)}build(e,n,s){xn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return wn(e,n,s)}}const Rl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ll={offset:"strokeDashoffset",array:"strokeDasharray"};function kl(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?Rl:Ll;t[o.offset]=`${-s}`,t[o.array]=`${e} ${n}`}const Fl=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function sr(t,h,l,c,u){var f=h,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0}=f,a=U(f,["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"]);var v,g;if(xn(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:m}=t;d.transform&&(m.transform=d.transform,delete d.transform),(m.transform||d.transformOrigin)&&(m.transformOrigin=(v=d.transformOrigin)!=null?v:"50% 50%",delete d.transformOrigin),m.transform&&(m.transformBox=(g=u==null?void 0:u.transformBox)!=null?g:"fill-box",delete d.transformBox);for(const p of Fl)d[p]!==void 0&&(m[p]=d[p],delete d[p]);e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),i!==void 0&&kl(d,i,o,r,!1)}const ir=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"]),rr=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Il(t,e,n,s){er(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(ir.has(i)?i:dn(i),e.attrs[i])}function or(t,e,n){const s=wn(t,e,n);for(const i in t)if(B(t[i])||B(e[i])){const o=wt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}class Bl extends qi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=k}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(St.has(n)){const s=Ni(n);return s&&s.default||0}return n=ir.has(n)?n:dn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return or(e,n,s)}build(e,n,s){sr(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Il(e,n,s,i)}mount(e){this.isSVGTag=rr(e.tagName),super.mount(e)}}const Ol=Tn.length;function ar(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?ar(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Ol;n++){const s=Tn[n],i=t.props[s];(Lt(i)||i===!1)&&(e[s]=i)}return e}function lr(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const jl=[...vn].reverse(),Nl=vn.length;function Ul(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Ia(t,n,s)))}function Wl(t){let e=Ul(t),n=os(),s=!0;const i=l=>(c,u)=>{var f;const h=vt(t,u,l==="exit"?(f=t.presenceContext)==null?void 0:f.custom:void 0);if(h){const d=h,{transition:m,transitionEnd:v}=d,g=U(d,["transition","transitionEnd"]);c=y(y(y({},c),g),v)}return c};function o(l){e=l(t)}function r(l){const{props:c}=t,u=ar(t.parent)||{},h=[],f=new Set;let d={},m=1/0;for(let g=0;g<Nl;g++){const p=jl[g],x=n[p],T=c[p]!==void 0?c[p]:u[p],b=Lt(T),S=p===l?x.isActive:null;S===!1&&(m=g);let C=T===u[p]&&T!==c[p]&&b;if(C&&s&&t.manuallyAnimateOnMount&&(C=!1),x.protectedKeys=y({},d),!x.isActive&&S===null||!T&&!x.prevProp||se(T)||typeof T=="boolean")continue;if(p==="exit"&&x.isActive&&S!==!0){x.prevResolvedValues&&(d=y(y({},d),x.prevResolvedValues));continue}const E=Kl(x.prevProp,T);let V=E||p===l&&x.isActive&&!C&&b||g>m&&b,N=!1;const W=Array.isArray(T)?T:[T];let ut=W.reduce(i(p),{});S===!1&&(ut={});const{prevResolvedValues:bn={}}=x,Lr=y(y({},bn),ut),An=F=>{V=!0,f.has(F)&&(N=!0,f.delete(F)),x.needsAnimating[F]=!0;const K=t.getValue(F);K&&(K.liveStyle=!1)};for(const F in Lr){const K=ut[F],it=bn[F];if(d.hasOwnProperty(F))continue;let ht=!1;Oe(K)&&Oe(it)?ht=!lr(K,it):ht=K!==it,ht?K!=null?An(F):f.add(F):K!==void 0&&f.has(F)?An(F):x.protectedKeys[F]=!0}x.prevProp=T,x.prevResolvedValues=ut,x.isActive&&(d=y(y({},d),ut)),s&&t.blockInitialAnimation&&(V=!1);const Vn=C&&E;V&&(!Vn||N)&&h.push(...W.map(F=>{const K={type:p};if(typeof F=="string"&&s&&!Vn&&t.manuallyAnimateOnMount&&t.parent){const{parent:it}=t,ht=vt(it,F);if(it.enteringChildren&&ht){const{delayChildren:kr}=ht.transition||{};K.delay=Ei(it.enteringChildren,t,kr)}}return{animation:F,options:K}}))}
vendor: 4,760 bytes, line 9
9if(f.size){const g={};if(typeof c.initial!="boolean"){const p=vt(t,Array.isArray(c.initial)?c.initial[0]:c.initial);p&&p.transition&&(g.transition=p.transition)}f.forEach(p=>{const x=t.getBaseTarget(p),T=t.getValue(p);T&&(T.liveStyle=!0),g[p]=x!=null?x:null}),h.push({animation:g})}let v=!!h.length;return s&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(v=!1),s=!1,v?e(h):Promise.resolve()}function a(l,c){var h;if(n[l].isActive===c)return Promise.resolve();(h=t.variantChildren)==null||h.forEach(f=>{var d;return(d=f.animationState)==null?void 0:d.setActive(l,c)}),n[l].isActive=c;const u=r(l);for(const f in n)n[f].protectedKeys={};return u}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=os()}}}function Kl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!lr(e,t):!1}function rt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function os(){return{animate:rt(!0),whileInView:rt(),whileHover:rt(),whileTap:rt(),whileDrag:rt(),whileFocus:rt(),exit:rt()}}function as(t,e){t.min=e.min,t.max=e.max}function H(t,e){as(t.x,e.x),as(t.y,e.y)}function ls(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const cr=1e-4,_l=1-cr,$l=1+cr,ur=.01,Hl=0-ur,zl=0+ur;function j(t){return t.max-t.min}function Gl(t,e,n){return Math.abs(t-e)<=n}function cs(t,e,n,s=.5){t.origin=s,t.originPoint=M(e.min,e.max,t.origin),t.scale=j(n)/j(e),t.translate=M(n.min,n.max,t.origin)-t.originPoint,(t.scale>=_l&&t.scale<=$l||isNaN(t.scale))&&(t.scale=1),(t.translate>=Hl&&t.translate<=zl||isNaN(t.translate))&&(t.translate=0)}function Ct(t,e,n,s){cs(t.x,e.x,n.x,s?s.originX:void 0),cs(t.y,e.y,n.y,s?s.originY:void 0)}function us(t,e,n){t.min=n.min+e.min,t.max=t.min+j(e)}function Xl(t,e,n){us(t.x,e.x,n.x),us(t.y,e.y,n.y)}function hs(t,e,n){t.min=e.min-n.min,t.max=t.min+j(e)}function te(t,e,n){hs(t.x,e.x,n.x),hs(t.y,e.y,n.y)}function fs(t,e,n,s,i){return t-=e,t=Qt(t,1/n,s),i!==void 0&&(t=Qt(t,1/i,s)),t}function Yl(t,e=0,n=1,s=.5,i,o=t,r=t){if(q.test(e)&&(e=parseFloat(e),e=M(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=M(o.min,o.max,s);t===o&&(a-=e),t.min=fs(t.min,e,n,a,i),t.max=fs(t.max,e,n,a,i)}function ds(t,e,[n,s,i],o,r){Yl(t,e[n],e[s],e[i],e.scale,o,r)}const ql=["x","scaleX","originX"],Zl=["y","scaleY","originY"];function ms(t,e,n,s){ds(t.x,e,ql,n?n.x:void 0,s?s.x:void 0),ds(t.y,e,Zl,n?n.y:void 0,s?s.y:void 0)}function ps(t){return t.translate===0&&t.scale===1}function hr(t){return ps(t.x)&&ps(t.y)}function gs(t,e){return t.min===e.min&&t.max===e.max}function Jl(t,e){return gs(t.x,e.x)&&gs(t.y,e.y)}function ys(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function fr(t,e){return ys(t.x,e.x)&&ys(t.y,e.y)}function vs(t){return j(t.x)/j(t.y)}function Ts(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Y(t){return[t("x"),t("y")]}function Ql(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=(n==null?void 0:n.z)||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const dr=["TopLeft","TopRight","BottomLeft","BottomRight"],tc=dr.length,xs=t=>typeof t=="string"?parseFloat(t):t,ws=t=>typeof t=="number"||w.test(t);function ec(t,e,n,s,i,o){var r,a,l,c;i?(t.opacity=M(0,(r=n.opacity)!=null?r:1,nc(s)),t.opacityExit=M((a=e.opacity)!=null?a:1,0,sc(s))):o&&(t.opacity=M((l=e.opacity)!=null?l:1,(c=n.opacity)!=null?c:1,s));for(let u=0;u<tc;u++){const h=`border${dr[u]}Radius`;let f=Ss(e,h),d=Ss(n,h);if(f===void 0&&d===void 0)continue;f||(f=0),d||(d=0),f===0||d===0||ws(f)===ws(d)?(t[h]=Math.max(M(xs(f),xs(d),s),0),(q.test(d)||q.test(f))&&(t[h]+="%")):t[h]=d}(e.rotate||n.rotate)&&(t.rotate=M(e.rotate||0,n.rotate||0,s))}function Ss(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const nc=mr(0,.5,ri),sc=mr(.5,.95,$);function mr(t,e,n){return s=>s<t?0:s>e?1:n(Mt(t,e,s))}function ic(t,e,n){const s=B(t)?t:Tt(t);return s.start(hn("",s,e,n)),s.animation}function kt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const rc=(t,e)=>t.depth-e.depth;class oc{constructor(){this.children=[],this.isDirty=!1}add(e){Ye(this.children,e),this.isDirty=!0}remove(e){Xt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rc),this.isDirty=!1,this.children.forEac
9h(e)}}function ac(t,e){const n=O.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(nt(s),t(o-e))};return D.setup(s,!0),()=>nt(s)}function zt(t){return B(t)?t.get():t}class lc{constructor(){this.members=[]}add(e){Ye(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;i&&i.isConnected===!1&&s.isPresent!==!1&&!s.snapshot&&Xt(this.members,s)}e.scheduleRender()}remove(e){if(Xt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i],r=o.instance;if(o.isPresent!==!1&&(!r||r.isConnected!==!1)){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender();const i=s.options.layoutDependency,o=e.options.layoutDependency;if(!(i!==void 0&&o!==void 0&&i===o)){const l=s.instance;l&&l.isConnected===!1&&!s.snapshot||(e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0))}const{crossfade:a}=e.options;a===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Gt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},pe=["","X","Y","Z"],cc=1e3;let uc=0;function ge(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function pr(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Ii(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",D,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&pr(s)}function gr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=uc++,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(dc),this.nodes.forEach(yc),this.nodes.forEach(vc),this.nodes.forEach(mc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new oc)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Ze),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=yn(r)&&!fl(r),this.instance=r;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,h=0;const f=()=>this.root.updateBlockedByResize=!1;D.read(()=>{h=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,u&&u(),u=ac(f,250),Gt.hasAnimatedSinceResize&&(Gt.hasAnimatedSinceResize=!1,this.nodes.forEac
vendor: 13,535 bytes, line 9
9h(As)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||Pc,{onLayoutAnimationStart:v,onLayoutAnimationComplete:g}=c.getProps(),p=!this.targetLayout||!fr(this.targetLayout,d),x=!h&&f;if(this.options.layoutRoot||this.resumeFrom||x||h&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T=A(y({},un(m,"layout")),{onPlay:v,onComplete:g});(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(u,x)}else h||As(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),nt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Tc),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&pr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ps);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(bs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(gc),this.nodes.forEach(hc),this.nodes.forEach(fc)):this.nodes.forEach(bs),this.clearAllSnapshots();const a=O.now();I.delta=Z(0,1e3/60,a-I.timestamp),I.timestamp=a,I.isProcessing=!0,ae.update.process(I),ae.preRender.process(I),ae.render.process(I),I.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,pn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(pc),this.sharedNodes.forEach(xc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!j(this.snapshot.measuredBox.x)&&!j(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=k(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!hr(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;r&&this.instance&&(a||ot(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),bc(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:r}=this.options;if(!r)return k();const a=r.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(Ac))){const{scroll:u}=this.root;u&&(gt(a.x,u.offset.x),gt(a.y,u.offset.y))}return a}removeElementScroll(r){var l;const a=k();if(H(a,r),(l=this.scroll)!=null&&l.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:h,options:f}=u;u!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&H(a,r),gt(a.x,h.offset.x),gt(a.y,h.offset.y))}return a}applyTransform(r,a=!1){const l=k();H(l,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&yt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ot(u.latestValues)&&yt(l,u.latestValues)}return ot(this.latestValues)&&yt(l,this.latestValues),l}removeTransform(r){const a=k();H(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!ot(c.latestValues))continue;_e(c.latestValues)&&c.updateSnapshot();const u=k(),h=c.measurePageBox();H(u,h),ms(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return ot(this.latestValues)&&ms(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options=A(y(y({},this.options),r),{crossfade:r.crossfade!==void 0?r.crossfade:!0})}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!==I.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var d;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=I.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=k(),this.targetWithTransforms=k()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Xl(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):H(this.target,this.layout.layoutBox),Qi(this.target,this.targetDelta)):H(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||_e(this.parent.latestValues)||Ji(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,l){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=k(),this.relativeTargetOrigin=k(),te(this.relativeTargetOrigin,a,l),H(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var m;const r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===I.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;H(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;Pl(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=k());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ls(this.prevProjectionDelta.x,this.projectionDelta.x),ls(this.prevProjectionDelta.y,this.projectionDelta.y)),Ct(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!Ts(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ts(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),r){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=pt(),this.projectionDelta=pt(),this.projectionDeltaWithTransform=pt()}setAnimationOrigin(r,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u=y({},this.latestValues),h=pt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=k(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,v=d!==m,g=this.getStack(),p=!g||g.members.length<=1,x=!!(v&&!p&&this.options.crossfade===!0&&!this.path.some(Sc));this.animationProgress=0;let T;this.mixTargetDelta=b=>{const S=b/1e3;Vs(h.x,r.x,S),Vs(h.y,r.y,S),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(te(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wc(this.relativeTarget,this.relativeTargetOrigin,f,S),T&&Jl(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=k()),H(T,this.relativeTarget)),v&&(this.animationValues=u,ec(u,c,this.latestValues,S,x,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){var a,l,c;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(nt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{Gt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Tt(0)),this.motionValue.jump(0,!1),this.currentAnimation=ic(this.motionValue,[0,1e3],A(y({},r),{velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),r.onUpdate&&r.onUpdate(u)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(cc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=r;if(!(!a||!l||!c)){if(this!==r&&this.layout&&c&&yr(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||k();const h=j(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=j(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}
vendor: 4,577 bytes, line 9
9H(a,l),yt(a,u),Ct(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new lc),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var a;const{layoutId:r}=this.options;return r?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:r}=this.options;return r?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&ge("z",r,c,this.animationValues);for(let u=0;u<pe.length;u++)ge(`rotate${pe[u]}`,r,c,this.animationValues),ge(`skew${pe[u]}`,r,c,this.animationValues);r.render();for(const u in c)r.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);r.scheduleRender()}applyProjectionStyles(r,a){var m,v;if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=zt(a==null?void 0:a.pointerEvents)||"",r.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=zt(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!ot(this.latestValues)&&(r.transform=l?l({},""):"none",this.hasProjected=!1);return}r.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=Ql(this.projectionDeltaWithTransform,this.treeScale,u);l&&(h=l(u,h)),r.transform=h;const{x:f,y:d}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,c.animationValues?r.opacity=c===this?(v=(m=u.opacity)!=null?m:this.latestValues.opacity)!=null?v:1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:r.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const g in He){if(u[g]===void 0)continue;const{correct:p,applyTo:x,isCSSVariable:T}=He[g],b=h==="none"?u[g]:p(u[g],c);if(x){const S=x.length;for(let C=0;C<S;C++)r[x[C]]=b}else T?this.options.visualElement.renderState.vars[g]=b:r[g]=b}this.options.layoutId&&(r.pointerEvents=c===this?zt(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Ps),this.root.sharedNodes.clear()}}}function hc(t){t.updateLayout()}function fc(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=e.source!==t.layout.source;o==="size"?Y(h=>{const f=r?e.measuredBox[h]:e.layoutBox[h],d=j(f);f.min=s[h].min,f.max=f.min+d}):yr(o,e.layoutBox,s)&&Y(h=>{const f=r?e.measuredBox[h]:e.layoutBox[h],d=j(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=pt();Ct(a,s,e.layoutBox);const l=pt();r?Ct(l,t.applyTransform(i,!0),e.measuredBox):Ct(l,s,e.layoutBox);const c=!hr(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const m=k();te(m,e.layoutBox,f.layoutBox);const v=k();te(v,s,d.layoutBox),fr(m,v)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=v,t.relativeTargetOrigin=m,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function dc(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
vendor: 6,323 bytes, line 9
9isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function mc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function pc(t){t.clearSnapshot()}function Ps(t){t.clearMeasurements()}function bs(t){t.isLayoutDirty=!1}function gc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function As(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function yc(t){t.resolveTargetDelta()}function vc(t){t.calcProjection()}function Tc(t){t.resetSkewAndRotation()}function xc(t){t.removeLeadSnapshot()}function Vs(t,e,n){t.translate=M(e.translate,0,n),t.scale=M(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Cs(t,e,n,s){t.min=M(e.min,n.min,s),t.max=M(e.max,n.max,s)}function wc(t,e,n,s){Cs(t.x,e.x,n.x,s),Cs(t.y,e.y,n.y,s)}function Sc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Pc={duration:.45,ease:[.4,0,.1,1]},Ds=t=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ms=Ds("applewebkit/")&&!Ds("chrome/")?Math.round:$;function Es(t){t.min=Ms(t.min),t.max=Ms(t.max)}function bc(t){Es(t.x),Es(t.y)}function yr(t,e,n){return t==="position"||t==="preserve-aspect"&&!Gl(vs(e),vs(n),.2)}function Ac(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const Vc=gr({attachResizeListener:(t,e)=>kt(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),ye={current:void 0},vr=gr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ye.current){const t=new Vc({});t.mount(window),t.setOptions({layoutScroll:!0}),ye.current=t}return ye.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Tr=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Cc(t=!0){const e=P.useContext(Xe);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=P.useId();P.useEffect(()=>{if(t)return i(o)},[t]);const r=P.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const xr=P.createContext({strict:!1}),Rs={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Ls=!1;function Dc(){if(Ls)return;const t={};for(const e in Rs)t[e]={isEnabled:n=>Rs[e].some(s=>!!n[s])};Yi(t),Ls=!0}function wr(){return Dc(),Tl()}function Mc(t){const e=wr();for(const n in t)e[n]=y(y({},e[n]),t[n]);Yi(e)}const Ec=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ee(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Ec.has(t)}let Sr=t=>!ee(t);function Rc(t){typeof t=="function"&&(Sr=e=>e.startsWith("on")?!ee(e):t(e))}try{Rc(require("@emotion/is-prop-valid").default)}catch(t){}function Lc(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Sr(i)||n===!0&&ee(i)||!e&&!ee(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const re=P.createContext({});function kc(t,e){if(ie(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Lt(n)?n:void 0,animate:Lt(s)?s:void 0}}return t.inherit!==!1?e:{}}function Fc(t){const{initial:e,animate:n}=kc(t,P.useContext(re));return P.useMemo(()=>({initial:e,animate:n}),[ks(e),ks(n)])}function ks(t){return Array.isArray(t)?t.join(" "):t}const Sn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Pr(t,e,n){for(const s in e)!B(e[s])&&!nr(s,n)&&(t[s]=e[s])}function Ic({transformTemplate:t},e){return P.useMemo(()=>{const n=Sn();return xn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Bc(t,e){const n=t.style||{},s={};return Pr(s,n,t),Object.assign(s,Ic(t,e)),s}function Oc(t,e){const n={},s=Bc(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const br=()=>A(y({},Sn()),{attrs:{}});function jc(t,e,n,s){const i=P.useMemo(()=>{const o=br();return sr(o,e,rr(s),t.transformTemplate,t.style),A(y({},o.attrs),{style:y({},o.style)})},[e]);if(t.style){const o={};Pr(o,t.style,t),i.style=y(y({},o),i.style)}return i}const Nc=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Pn(t){return typeof t!="string"||t.includes("-")?!1:!!(Nc.indexOf(t)>-1||/[A-Z]/u.test(t))}function Uc(t,e,n,{latestValues:s},i,o=!1,r){const l=((r!=null?r:Pn(t))?jc:Oc)(e,s,i,t),c=Lc(e,typeof t=="string",o),u=t!==P.Fragment?A(y(y({},c),l),{ref:n}):{},{children:h}=e,f=P.useMemo(()=>B(h)?h.get():h,[h]);return P.createElement(t,A(y({},u),{children:f}))}function Wc({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:Kc(n,s,i,t),renderState:e()}}function Kc(t,e,n,s){const i={},o=s(t,{});for(const d in o)i[d]=zt(o[d]);let{initial:r,animate:a}=t;const l=ie(t),c=Gi(t);e&&c&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const h=u?a:r;
9if(h&&typeof h!="boolean"&&!se(h)){const d=Array.isArray(h)?h:[h];for(let m=0;m<d.length;m++){const v=fn(t,d[m]);if(v){const f=v,{transitionEnd:g,transition:p}=f,x=U(f,["transitionEnd","transition"]);for(const T in x){let b=x[T];if(Array.isArray(b)){const S=u?b.length-1:0;b=b[S]}b!==null&&(i[T]=b)}for(const T in g)i[T]=g[T]}}}return i}const Ar=t=>(e,n)=>{const s=P.useContext(re),i=P.useContext(Xe),o=()=>Wc(t,e,s,i);return n?o():_r(o)},_c=Ar({scrapeMotionValuesFromProps:wn,createRenderState:Sn}),$c=Ar({scrapeMotionValuesFromProps:or,createRenderState:br}),Hc=Symbol.for("motionComponentSymbol");function zc(t,e,n){const s=P.useRef(n);P.useInsertionEffect(()=>{s.current=n});const i=P.useRef(null);return P.useCallback(o=>{var a;o&&((a=t.onMount)==null||a.call(t,o)),e&&(o?e.mount(o):e.unmount());const r=s.current;if(typeof r=="function")if(o){const l=r(o);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):r(o);else r&&(r.current=o)},[e])}const Vr=P.createContext({});function ft(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Gc(t,e,n,s,i,o){var T,b;const{visualElement:r}=P.useContext(re),a=P.useContext(xr),l=P.useContext(Xe),c=P.useContext(Tr),u=c.reducedMotion,h=c.skipAnimations,f=P.useRef(null),d=P.useRef(!1);s=s||a.renderer,!f.current&&s&&(f.current=s(t,{visualState:e,parent:r,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:h,isSVG:o}),d.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const m=f.current,v=P.useContext(Vr);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&Xc(f.current,n,i,v);const g=P.useRef(!1);P.useInsertionEffect(()=>{m&&g.current&&m.update(n,l)});const p=n[Fi],x=P.useRef(!!p&&!((T=window.MotionHandoffIsComplete)!=null&&T.call(window,p))&&((b=window.MotionHasOptimisedAnimation)==null?void 0:b.call(window,p)));return $r(()=>{d.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),x.current&&m.animationState&&m.animationState.animateChanges())}),P.useEffect(()=>{m&&(!x.current&&m.animationState&&m.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)==null||S.call(window,p)}),x.current=!1),m.enteringChildren=void 0)}),m}function Xc(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Cr(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&ft(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:l,layoutRoot:c})}function Cr(t){if(t)return t.options.allowProjection!==!1?t.projection:Cr(t.parent)}function ve(t,{forwardMotionProps:e=!1,type:n}={},s,i){var c,u;s&&Mc(s);const o=n?n==="svg":Pn(t),r=o?$c:_c;function a(h,f){let d;const m=A(y(y({},P.useContext(Tr)),h),{layoutId:Yc(h)}),{isStatic:v}=m,g=Fc(h),p=r(h,v);if(!v&&Gs){qc();const x=Zc(m);d=x.MeasureLayout,g.visualElement=Gc(t,p,m,i,x.ProjectionNode,o)}return be.jsxs(re.Provider,{value:g,children:[d&&g.visualElement?be.jsx(d,y({visualElement:g.visualElement},m)):null,Uc(t,h,zc(p,g.visualElement,f),p,v,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${(u=(c=t.displayName)!=null?c:t.name)!=null?u:""})`}`;const l=P.forwardRef(a);return l[Hc]=t,l}function Yc({layoutId:t}){const e=P.useContext(zs).id;return e&&t!==void 0?e+"-"+t:t}function qc(t,e){P.useContext(xr).strict}function Zc(t){const e=wr(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i=y(y({},n),s);return{MeasureLayout:n!=null&&n.isEnabled(t)||s!=null&&s.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Jc(t,e){if(typeof Proxy=="undefined")return ve;const n=new Map,s=(o,r)=>ve(o,r,t,e),i=(o,r)=>s(o,r);return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,ve(r,void 0,t,e)),n.get(r))})}const Qc=(t,e)=>{var s;return((s=e.isSVG)!=null?s:Pn(t))?new Bl(e):new El(e,{allowProjection:t!==P.Fragment})};class tu extends st{constructor(e){super(e),e.animationState||(e.animationState=Wl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();se(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let eu=0;class nu extends st{constructor(){super(...arguments),this.id=eu++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};
vendor: 16,470 bytes, line 9
9n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const su={animation:{Feature:tu},exit:{Feature:nu}};function Ot(t){return{point:{x:t.pageX,y:t.pageY}}}const iu=t=>e=>gn(e)&&t(e,Ot(e));function Dt(t,e,n,s){return kt(t,e,iu(n),s)}const Dr=({current:t})=>t?t.ownerDocument.defaultView:null,Fs=(t,e)=>Math.abs(t-e);function ru(t,e){const n=Fs(t.x,e.x),s=Fs(t.y,e.y);return Math.sqrt(oe(n,2)+oe(s,2))}const Is=new Set(["auto","scroll"]);class Mr{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=xe(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,v=ru(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!v)return;const{point:g}=d,{timestamp:p}=I;this.history.push(A(y({},g),{timestamp:p}));const{onStart:x,onMove:T}=this.handlers;m||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Te(m,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:v,onSessionEnd:g,resumeAnimation:p}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=xe(d.type==="pointercancel"?this.lastMoveEventInfo:Te(m,this.transformPagePoint),this.history);this.startEvent&&v&&v(d,x),g&&g(d,x)},!gn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const l=Ot(e),c=Te(l,this.transformPagePoint),{point:u}=c,{timestamp:h}=I;this.history=[A(y({},u),{timestamp:h})];const{onSessionStart:f}=n;f&&f(e,xe(c,this.history)),this.removeListeners=Ft(Dt(this.contextWindow,"pointermove",this.handlePointerMove),Dt(this.contextWindow,"pointerup",this.handlePointerUp),Dt(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(Is.has(s.overflowX)||Is.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,i),D.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),nt(this.updatePoint)}}function Te(t,e){return e?{point:e(t.point)}:t}function Bs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function xe({point:t},e){return{point:t,delta:Bs(t,Er(e)),offset:Bs(t,ou(e)),velocity:au(e,.1)}}function ou(t){return t[0]}function Er(t){return t[t.length-1]}function au(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Er(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>G(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>G(e)*2&&(s=t[1]);const o=_(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function lu(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?M(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?M(n,t,s.max):Math.min(t,n)),t}function Os(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function cu(t,{top:e,left:n,bottom:s,right:i}){return{x:Os(t.x,n,i),y:Os(t.y,e,s)}}function js(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function uu(t,e){return{x:js(t.x,e.x),y:js(t.y,e.y)}}function hu(t,e){let n=.5;const s=j(t),i=j(e);return i>s?n=Mt(e.min,e.max-s,t.min):s>i&&(n=Mt(t.min,t.max-i,e.min)),Z(0,1,n)}function fu(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const ze=.35;function du(t=ze){return t===!1?t=0:t===!0&&(t=ze),{x:Ns(t,"left","right"),y:Ns(t,"top","bottom")}}function Ns(t,e,n){return{min:Us(t,e),max:Us(t,n)}}function Us(t,e){return typeof t=="number"?t:t[e]||0}const mu=new WeakMap;class pu{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=k(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=h=>{n&&this.snapToCursor(Ot(h).point),this.stopAnimation()},r=(h,f)=>{const{drag:d,dragPropagation:m,onDragStart:v}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ya(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Y(p=>{let x=this.getAxisMotionValue(p).get()||0;if(q.test(x)){const{projection:T}=this.visualElement;if(T&&T.layout){const b=T.layout.layoutBox[p];b&&(x=j(b)*(parseFloat(x)/100))}}this.originPoint[p]=x}),v&&D.update(()=>v(h,f),!1,!0),je(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:v,onDrag:g}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:p}=f;if(m&&this.currentDirection===null){this.currentDirection=yu(p),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",f.point,p),this.updateAxis("y",f.point,p),this.visualElement.render(),g&&D.update(()=>g(h,f),!1,!0)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new Mr(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:Dr(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&D.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Wt(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=lu(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var o;const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;e&&ft(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=cu(s.layoutBox,e):this.constraints=!1,this.elastic=du(n),i!==this.constraints&&!ft(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&Y(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=fu(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ft(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=bl(s,i.root,this.visualElement.getTransformPagePoint());let r=uu(i.layout.layoutBox,o);if(n){const a=n(wl(r));this.hasMutatedConstraints=!!a,a&&(r=Zi(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Y(u=>{if(!Wt(u,n,this.currentDirection))return;let h=l&&l[u]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,m=y(y({type:"inertia",velocity:s?e[u]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10},o),h);return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return je(this.visualElement,e),s.start(hn(e,s,0,n,this.visualElement,!1))}stopAnimation(){Y(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){Y(n=>{const{drag:s}=this.getProps();if(!Wt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n],l=o.get()||0;o.set(e[n]-M(r,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!ft(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Y(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=hu({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),Y(r=>{if(!Wt(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(M(l,c,i[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;mu.set(this.visualElement,this);const e=this.visualElement.current,n=Dt(e,"pointerdown",c=>{const{drag:u,dragListener:h=!0}=this.getProps(),f=c.target,d=f!==e&&el(f);u&&h&&!d&&this.start(c)});let s;const i=()=>{const{dragConstraints:c}=this.getProps();ft(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),s||(s=gu(e,c.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,r=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),D.read(i);const a=kt(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Y(h=>{const f=this.getAxisMotionValue(h);f&&(this.originPoint[h]+=c[h].translate,f.set(f.get()+c[h].translate))}),this.visualElement.render())});return()=>{a(),n(),r(),l&&l(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=ze,dragMomentum:a=!0}=e;return A(y({},e),{drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a})}}function Ws(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function gu(t,e,n){const s=qn(t,Ws(n)),i=qn(e,Ws(n));return()=>{s(),i()}}function Wt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function yu(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class vu extends st{constructor(e){super(e),this.removeGroupControls=$,this.removeListeners=$,this.controls=new pu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const we=t=>(e,n)=>{t&&D.update(()=>t(e,n),!1,!0)};class Tu extends st{constructor(){super(...arguments),this.removePointerDownListener=$}onPointerDown(e){this.session=new Mr(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Dr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:we(e),onStart:we(n),onMove:we(s),onEnd:(o,r)=>{delete this.session,i&&D.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=Dt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Se=!1;class xu extends P.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),Se&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions(A(y({},o.options),{layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()}))),Gt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,e.layoutDependency!==n&&r.setOptions(A(y({},r.options),{layoutDependency:n})),Se=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||D.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),pn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Se=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Rr(t){const[e,n]=Cc(),s=P.useContext(zs);return be.jsx(xu,A(y({},t),{layoutGroup:s,switchLayoutGroup:P.useContext(Vr),isPresent:e,safeToRemove:n}))}const wu={pan:{Feature:Tu},drag:{Feature:vu,ProjectionNode:vr,MeasureLayout:Rr}};function Ks(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&D.postRender(()=>o(e,Ot(e)))}class Su extends st{mount(){const{current:e}=this.node;e&&(this.unmount=Za(e,(n,s)=>(Ks(this.node,s,"Start"),i=>Ks(this.node,i,"End"))))}unmount(){}}class Pu extends st{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(n){e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ft(kt(this.node.current,"focus",()=>this.onFocus()),kt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function _s(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&D.postRender(()=>o(e,Ot(e)))}class bu extends st{mount(){const{current:e}=this.node;if(!e)return;
9const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=sl(e,(i,o)=>(_s(this.node,o,"Start"),(r,{success:a})=>_s(this.node,r,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const Ge=new WeakMap,Pe=new WeakMap,Au=t=>{const e=Ge.get(t.target);e&&e(t)},Vu=t=>{t.forEach(Au)};function Cu(n){var s=n,{root:t}=s,e=U(s,["root"]);const i=t||document;Pe.has(i)||Pe.set(i,{});const o=Pe.get(i),r=JSON.stringify(e);return o[r]||(o[r]=new IntersectionObserver(Vu,y({root:t},e))),o[r]}function Du(t,e,n){const s=Cu(e);return Ge.set(t,n),s.observe(t),()=>{Ge.delete(t),s.unobserve(t)}}const Mu={some:0,all:1};class Eu extends st{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Mu[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),f=c?u:h;f&&f(l)};return Du(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver=="undefined")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Ru(e,n))&&this.startObserver()}unmount(){}}function Ru({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Lu={inView:{Feature:Eu},tap:{Feature:bu},focus:{Feature:Pu},hover:{Feature:Su}},ku={layout:{ProjectionNode:vr,MeasureLayout:Rr}},Fu=y(y(y(y({},su),Lu),wu),ku),Nu=Jc(Fu,Qc);export{be as j,Nu as m};

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.