PageSourceSearch

https://nadanedeti.cz/_nuxt/B1I7eihV.js

js nadanedeti.cz collected 2026-09-25 15:15:38 UTC 130,207 bytes, 9 lines download raw bytes

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

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.