PageSourceSearch

https://barberiocolella.com/assets/framer-motion-3XT3PQkH.js

js barberiocolella.com collected 2026-10-08 08:04:20 UTC 130,025 bytes, 17 lines download raw bytes

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