Files
kefu/deploy/knowledge-v2-20260916/payload/admin-web/apps/web-antd/dist/js/motion-d62SeGv9.js
T
2026-09-21 10:34:06 +08:00

1 line
34 KiB
JavaScript

import{B as e,Cn as t,En as n,Ht as r,J as i,L as a,Lt as o,On as s,an as c,ct as l,ft as u,g as d,gn as f,k as p,o as m,pn as h,vn as g,xn as _}from"./runtime-core.esm-bundler-DkysjgTd.js";import{n as v,t as y}from"./objectSpread2-BmonrgTA.js";import{n as b,t as x}from"./objectWithoutProperties-BjoYlK0I.js";import{n as S}from"./defu-1oANYd5X.js";var C=[`fade`,`fadeVisible`,`fadeVisibleOnce`,`rollBottom`,`rollLeft`,`rollRight`,`rollTop`,`rollVisibleBottom`,`rollVisibleLeft`,`rollVisibleRight`,`rollVisibleTop`,`pop`,`popVisible`,`popVisibleOnce`,`slideBottom`,`slideLeft`,`slideRight`,`slideTop`,`slideVisibleBottom`,`slideVisibleLeft`,`slideVisibleRight`,`slideVisibleTop`];function w(e){return c()?(h(e),!0):!1}var T=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var ee=e=>e!=null,te=Object.prototype.toString,E=e=>te.call(e)===`[object Object]`,D=()=>{};function O(e){return Array.isArray(e)?e:[e]}function ne(e){return e||a()}function re(e,t){ne(t)&&u(e,t)}function ie(e,t,n){return r(e,t,y(y({},n),{},{immediate:!0}))}var ae=T?window:void 0;T&&window.document,T&&window.navigator,T&&window.location;function k(e){var t;let r=n(e);return(t=r==null?void 0:r.$el)==null?r:t}function A(...e){let t=[],r=()=>{t.forEach(e=>e()),t.length=0},i=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),a=d(()=>{let t=O(n(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0}),o=ie(()=>{var t,r;return[(r=(t=a.value)==null?void 0:t.map(e=>k(e)))==null?[ae].filter(e=>e!=null):r,O(n(a.value?e[1]:e[0])),O(s(a.value?e[2]:e[1])),n(a.value?e[3]:e[2])]},([e,n,a,o])=>{if(r(),!(e!=null&&e.length)||!(n!=null&&n.length)||!(a!=null&&a.length))return;let s=E(o)?y({},o):o;t.push(...e.flatMap(e=>n.flatMap(t=>a.map(n=>i(e,t,n,s)))))},{flush:`post`});return w(r),()=>{o(),r()}}function oe(){let e=_(!1),t=a();return t&&l(()=>{e.value=!0},t),e}function se(e){let t=oe();return d(()=>(t.value,!!e()))}function ce(e,t,i={}){let{root:a,rootMargin:o=`0px`,threshold:s=0,window:c=ae,immediate:l=!0}=i,u=se(()=>c&&`IntersectionObserver`in c),f=d(()=>O(n(e)).map(k).filter(ee)),p=D,m=_(l),h=u.value?r(()=>[f.value,k(a),m.value],([e,n])=>{if(p(),!m.value||!e.length)return;let r=new IntersectionObserver(t,{root:k(n),rootMargin:o,threshold:s});e.forEach(e=>e&&r.observe(e)),p=()=>{r.disconnect(),p=D}},{immediate:l,flush:`post`}):D,g=()=>{p(),h(),m.value=!1};return w(g),{isSupported:u,isActive:m,pause(){p(),m.value=!1},resume(){m.value=!0},stop:g}}var le=1/60*1e3,ue=typeof performance<`u`?()=>performance.now():()=>Date.now(),de=typeof window<`u`?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(ue()),le);function fe(e){let t=[],n=[],r=0,i=!1,a=!1,o=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{let c=s&&i,l=c?t:n;return a&&o.add(e),l.indexOf(e)===-1&&(l.push(e),c&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);t!==-1&&n.splice(t,1),o.delete(e)},process:c=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){let r=t[n];r(c),o.has(r)&&(s.schedule(r),e())}i=!1,a&&(a=!1,s.process(c))}};return s}var pe=40,me=!0,j=!1,he=!1,M={delta:0,timestamp:0},N=[`read`,`update`,`preRender`,`render`,`postRender`],P=N.reduce((e,t)=>(e[t]=fe(()=>j=!0),e),{}),ge=N.reduce((e,t)=>{let n=P[t];return e[t]=(e,t=!1,r=!1)=>(j||be(),n.schedule(e,t,r)),e},{}),_e=N.reduce((e,t)=>(e[t]=P[t].cancel,e),{});N.reduce((e,t)=>(e[t]=()=>P[t].process(M),e),{});var ve=e=>P[e].process(M),ye=e=>{j=!1,M.delta=me?le:Math.max(Math.min(e-M.timestamp,pe),1),M.timestamp=e,he=!0,N.forEach(ve),he=!1,j&&(me=!1,de(ye))},be=()=>{j=!0,me=!0,he||de(ye)},xe=()=>M;function Se(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Ce=(e,t,n)=>Math.min(Math.max(n,e),t),we=.001,Te=.01,Ee=.05;function De({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a,o=1-t;o=Ce(Ee,1,o),e=Ce(Te,10,e/1e3),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=Ae(t,o),c=Math.exp(-i);return we-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=Math.pow(o,2)*Math.pow(t,2)*e,c=Math.exp(-r),l=Ae(Math.pow(t,2),o);return(-i(t)+we>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=ke(i,a,s);if(e*=1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(c,2)*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Oe=12;function ke(e,t,n){let r=n;for(let n=1;n<Oe;n++)r-=e(r)/t(r);return r}function Ae(e,t){return e*Math.sqrt(1-t*t)}var je=[`duration`,`bounce`],Me=[`stiffness`,`damping`,`mass`];function Ne(e,t){return t.some(t=>e[t]!==void 0)}function Pe(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Ne(e,Me)&&Ne(e,je)){let n=De(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Fe(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,a=Se(e,[`from`,`to`,`restSpeed`,`restDelta`]);let o={done:!1,value:t},{stiffness:s,damping:c,mass:l,velocity:u,duration:d,isResolvedFromDuration:f}=Pe(a),p=Ie,m=Ie;function h(){let e=u?-(u/1e3):0,r=n-t,a=c/(2*Math.sqrt(s*l)),o=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),a<1){let t=Ae(o,a);p=i=>{let s=Math.exp(-a*o*i);return n-s*((e+a*o*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},m=n=>{let i=Math.exp(-a*o*n);return a*o*i*(Math.sin(t*n)*(e+a*o*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+a*o*r)-t*r*Math.sin(t*n))}}else if(a===1)p=t=>n-Math.exp(-o*t)*(r+(e+o*r)*t);else{let t=o*Math.sqrt(a*a-1);p=i=>{let s=Math.exp(-a*o*i),c=Math.min(t*i,300);return n-s*((e+a*o*r)*Math.sinh(c)+t*r*Math.cosh(c))/t}}}return h(),{next:e=>{let t=p(e);if(f)o.done=e>=d;else{let a=m(e)*1e3,s=Math.abs(a)<=r,c=Math.abs(n-t)<=i;o.done=s&&c}return o.value=o.done?n:t,o},flipTarget:()=>{u=-u,[t,n]=[n,t],h()}}}Fe.needsInterpolation=(e,t)=>typeof e==`string`||typeof t==`string`;var Ie=e=>0,Le=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},Re=(e,t,n)=>-n*e+n*t+e,ze=(e,t)=>n=>Math.max(Math.min(n,t),e),F=e=>e%1?Number(e.toFixed(5)):e,I=/(-)?([\d]*\.?[\d])+/g,Be=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Ve=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function L(e){return typeof e==`string`}var R={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},z=Object.assign(Object.assign({},R),{transform:ze(0,1)}),B=Object.assign(Object.assign({},R),{default:1}),He=e=>({test:t=>L(t)&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),V=He(`deg`),H=He(`%`),U=He(`px`),Ue=Object.assign(Object.assign({},H),{parse:e=>H.parse(e)/100,transform:e=>H.transform(e*100)}),We=(e,t)=>n=>!!(L(n)&&Ve.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Ge=(e,t,n)=>r=>{if(!L(r))return r;let[i,a,o,s]=r.match(I);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},W={test:We(`hsl`,`hue`),parse:Ge(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+H.transform(F(t))+`, `+H.transform(F(n))+`, `+F(z.transform(r))+`)`},Ke=ze(0,255),qe=Object.assign(Object.assign({},R),{transform:e=>Math.round(Ke(e))}),G={test:We(`rgb`,`red`),parse:Ge(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+qe.transform(e)+`, `+qe.transform(t)+`, `+qe.transform(n)+`, `+F(z.transform(r))+`)`};function Je(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),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 Ye={test:We(`#`),parse:Je,transform:G.transform},K={test:e=>G.test(e)||Ye.test(e)||W.test(e),parse:e=>G.test(e)?G.parse(e):W.test(e)?W.parse(e):Ye.parse(e),transform:e=>L(e)?e:e.hasOwnProperty(`red`)?G.transform(e):W.transform(e)},Xe="${c}",Ze="${n}";function Qe(e){var t,n,r,i;return isNaN(e)&&L(e)&&((n=(t=e.match(I))==null?void 0:t.length)==null?0:n)+((i=(r=e.match(Be))==null?void 0:r.length)==null?0:i)>0}function $e(e){typeof e==`number`&&(e=`${e}`);let t=[],n=0,r=e.match(Be);r&&(n=r.length,e=e.replace(Be,Xe),t.push(...r.map(K.parse)));let i=e.match(I);return i&&(e=e.replace(I,Ze),t.push(...i.map(R.parse))),{values:t,numColors:n,tokenised:e}}function et(e){return $e(e).values}function tt(e){let{values:t,numColors:n,tokenised:r}=$e(e),i=t.length;return e=>{let t=r;for(let r=0;r<i;r++)t=t.replace(r<n?Xe:Ze,r<n?K.transform(e[r]):F(e[r]));return t}}var nt=e=>typeof e==`number`?0:e;function rt(e){let t=et(e);return tt(e)(t.map(nt))}var q={test:Qe,parse:et,createTransformer:tt,getAnimatableNone:rt},it=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function at(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(I)||[];if(!r)return e;let i=n.replace(r,``),a=+!!it.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var ot=/([a-z-]*)\(.*?\)/g,st=Object.assign(Object.assign({},q),{getAnimatableNone:e=>{let t=e.match(ot);return t?t.map(at).join(` `):e}});function ct(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 lt({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=ct(s,r,e+1/3),a=ct(s,r,e),o=ct(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}var ut=(e,t,n)=>{let r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},dt=[Ye,G,W],ft=e=>dt.find(t=>t.test(e)),pt=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,mt=(e,t)=>{let n=ft(e),r=ft(t);pt(e),pt(t);let i=n.parse(e),a=r.parse(t);n===W&&(i=lt(i),n=G),r===W&&(a=lt(a),r=G);let o=Object.assign({},i);return e=>{for(let t in o)t!==`alpha`&&(o[t]=ut(i[t],a[t],e));return o.alpha=Re(i.alpha,a.alpha,e),n.transform(o)}},ht=e=>typeof e==`number`,gt=(e,t)=>n=>t(e(n)),_t=(...e)=>e.reduce(gt);function vt(e,t){return ht(e)?n=>Re(e,t,n):K.test(e)?mt(e,t):St(e,t)}var yt=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>vt(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},bt=(e,t)=>{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=vt(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function xt(e){let t=q.parse(e),n=t.length,r=0,i=0,a=0;for(let e=0;e<n;e++)r||typeof t[e]==`number`?r++:t[e].hue===void 0?i++:a++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:a}}var St=(e,t)=>{let n=q.createTransformer(t),r=xt(e),i=xt(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?_t(yt(r.parsed,i.parsed),n):(`${e}${t}`,n=>`${n>0?t:e}`)},Ct=(e,t)=>n=>Re(e,t,n);function wt(e){if(typeof e==`number`)return Ct;if(typeof e==`string`)return K.test(e)?mt:St;if(Array.isArray(e))return yt;if(typeof e==`object`)return bt}function Tt(e,t,n){let r=[],i=n||wt(e[0]),a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=_t(Array.isArray(t)?t[n]:t,a)),r.push(a)}return r}function Et([e,t],[n]){return r=>n(Le(e,t,r))}function Dt(e,t){let n=e.length,r=n-1;return i=>{let a=0,o=!1;if(i<=e[0]?o=!0:i>=e[r]&&(a=r-1,o=!0),!o){let t=1;for(;t<n&&!(e[t]>i||t===r);t++);a=t-1}let s=Le(e[a],e[a+1],i);return t[a](s)}}function Ot(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;t.length,!r||!Array.isArray(r)||(r.length,a-1),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let o=Tt(t,r,i),s=a===2?Et(e,o):Dt(e,o);return n?t=>s(Ce(e[0],e[a-1],t)):s}var J=e=>t=>1-e(1-t),kt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,At=e=>t=>Math.pow(t,e),jt=e=>t=>t*t*((e+1)*t-e),Mt=e=>{let t=jt(e);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))},Nt=1.525,Pt=4/11,Ft=8/11,It=9/10,Lt=e=>e,Rt=At(2),zt=J(Rt),Bt=kt(Rt),Vt=e=>1-Math.sin(Math.acos(e)),Ht=J(Vt),Ut=kt(Ht),Wt=jt(Nt),Gt=J(Wt),Kt=kt(Wt),qt=Mt(Nt),Jt=4356/361,Yt=35442/1805,Xt=16061/1805,Y=e=>{if(e===1||e===0)return e;let t=e*e;return e<Pt?7.5625*t:e<Ft?9.075*t-9.9*e+3.4:e<It?Jt*t-Yt*e+Xt:10.8*e*e-20.52*e+10.72},Zt=J(Y),Qt=e=>e<.5?.5*(1-Y(1-e*2)):.5*Y(e*2-1)+.5;function $t(e,t){return e.map(()=>t||Bt).splice(0,e.length-1)}function en(e){let t=e.length;return e.map((e,n)=>n===0?0:n/(t-1))}function tn(e,t){return e.map(e=>e*t)}function X({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){let a={done:!1,value:e},o=Array.isArray(t)?t:[e,t],s=tn(r&&r.length===o.length?r:en(o),i);function c(){return Ot(s,o,{ease:Array.isArray(n)?n:$t(o,n)})}let l=c();return{next:e=>(a.value=l(e),a.done=e>=i,a),flipTarget:()=>{o.reverse(),l=c()}}}function nn({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:a}){let o={done:!1,value:t},s=n*e,c=t+s,l=a===void 0?c:a(c);return l!==c&&(s=l-t),{next:e=>{let t=-s*Math.exp(-e/r);return o.done=!(t>i||t<-i),o.value=o.done?l:l+t,o},flipTarget:()=>{}}}var rn={keyframes:X,spring:Fe,decay:nn};function an(e){if(Array.isArray(e.to))return X;if(rn[e.type])return rn[e.type];let t=new Set(Object.keys(e));return t.has(`ease`)||t.has(`duration`)&&!t.has(`dampingRatio`)?X:t.has(`dampingRatio`)||t.has(`stiffness`)||t.has(`mass`)||t.has(`damping`)||t.has(`restSpeed`)||t.has(`restDelta`)?Fe:X}function on(e,t,n=0){return e-t-n}function sn(e,t,n=0,r=!0){return r?on(t+-e,t,n):t-(e-t)+n}function cn(e,t,n,r){return r?e>=t+n:e<=-n}var ln=e=>{let t=({delta:t})=>e(t);return{start:()=>ge.update(t,!0),stop:()=>_e.update(t)}};function un(e){var t,n,{from:r,autoplay:i=!0,driver:a=ln,elapsed:o=0,repeat:s=0,repeatType:c=`loop`,repeatDelay:l=0,onPlay:u,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,h=Se(e,[`from`,`autoplay`,`driver`,`elapsed`,`repeat`,`repeatType`,`repeatDelay`,`onPlay`,`onStop`,`onComplete`,`onRepeat`,`onUpdate`]);let{to:g}=h,_,v=0,y=h.duration,b,x=!1,S=!0,C,w=an(h);(n=(t=w).needsInterpolation)!=null&&n.call(t,r,g)&&(C=Ot([0,100],[r,g],{clamp:!1}),r=0,g=100);let T=w(Object.assign(Object.assign({},h),{from:r,to:g}));function ee(){v++,c===`reverse`?(S=v%2==0,o=sn(o,y,l,S)):(o=on(o,y,l),c===`mirror`&&T.flipTarget()),x=!1,p&&p()}function te(){_.stop(),f&&f()}function E(e){if(S||(e=-e),o+=e,!x){let e=T.next(Math.max(0,o));b=e.value,C&&(b=C(b)),x=S?e.done:o<=0}m==null||m(b),x&&(v===0&&(y!=null||(y=o)),v<s?cn(o,y,l,S)&&ee():te())}function D(){u==null||u(),_=a(E),_.start()}return i&&D(),{stop:()=>{d==null||d(),_.stop()}}}function dn(e,t){return t?1e3/t*e:0}function fn({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:a=750,bounceStiffness:o=500,bounceDamping:s=10,restDelta:c=1,modifyTarget:l,driver:u,onUpdate:d,onComplete:f,onStop:p}){let m;function h(e){return n!==void 0&&e<n||r!==void 0&&e>r}function g(e){return n===void 0?r:r===void 0||Math.abs(n-e)<Math.abs(r-e)?n:r}function _(e){m==null||m.stop(),m=un(Object.assign(Object.assign({},e),{driver:u,onUpdate:t=>{var n;d==null||d(t),(n=e.onUpdate)==null||n.call(e,t)},onComplete:f,onStop:p}))}function v(e){_(Object.assign({type:`spring`,stiffness:o,damping:s,restDelta:c},e))}if(h(e))v({from:e,velocity:t,to:g(e)});else{let r=i*t+e;l!==void 0&&(r=l(r));let o=g(r),s=o===n?-1:1,u,d;_({type:`decay`,from:e,velocity:t,timeConstant:a,power:i,restDelta:c,modifyTarget:l,onUpdate:h(r)?e=>{u=d,d=e,t=dn(e-u,xe().delta),(s===1&&e>o||s===-1&&e<o)&&v({from:e,to:o,velocity:t})}:void 0})}return{stop:()=>m==null?void 0:m.stop()}}var pn=(e,t)=>1-3*t+3*e,mn=(e,t)=>3*t-6*e,hn=e=>3*e,Z=(e,t,n)=>((pn(t,n)*e+mn(t,n))*e+hn(t))*e,gn=(e,t,n)=>3*pn(t,n)*e*e+2*mn(t,n)*e+hn(t),_n=1e-7,vn=10;function yn(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Z(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>_n&&++s<vn);return o}var bn=8,xn=.001;function Sn(e,t,n,r){for(let i=0;i<bn;++i){let i=gn(t,n,r);if(i===0)return t;let a=Z(t,n,r)-e;t-=a/i}return t}var Cn=11,Q=1/10;function wn(e,t,n,r){if(e===t&&n===r)return Lt;let i=new Float32Array(Cn);for(let t=0;t<Cn;++t)i[t]=Z(t*Q,e,n);function a(t){let r=0,a=1;for(;a!==10&&i[a]<=t;++a)r+=Q;--a;let o=(t-i[a])/(i[a+1]-i[a]),s=r+o*Q,c=gn(s,e,n);return c>=xn?Sn(t,s,e,n):c===0?s:yn(t,r,r+Q,e,n)}return e=>e===0||e===1?e:Z(a(e),t,r)}var Tn=[`ease`,`times`,`delay`],En=[`delay`,`repeat`,`repeatType`,`repeatDelay`,`from`],Dn={},On=class{constructor(){v(this,`subscriptions`,new Set)}add(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}notify(e,t,n){if(this.subscriptions.size)for(let r of this.subscriptions)r(e,t,n)}clear(){this.subscriptions.clear()}};function kn(e){return!Number.isNaN(Number.parseFloat(e))}var An=class{constructor(e){v(this,`current`,void 0),v(this,`prev`,void 0),v(this,`timeDelta`,0),v(this,`lastUpdated`,0),v(this,`updateSubscribers`,new On),v(this,`stopAnimation`,void 0),v(this,`canTrackVelocity`,!1),v(this,`updateAndNotify`,e=>{this.prev=this.current,this.current=e;let{delta:t,timestamp:n}=xe();this.lastUpdated!==n&&(this.timeDelta=t,this.lastUpdated=n),ge.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)}),v(this,`scheduleVelocityCheck`,()=>ge.postRender(this.velocityCheck)),v(this,`velocityCheck`,({timestamp:e})=>{this.canTrackVelocity||(this.canTrackVelocity=kn(this.current)),e!==this.lastUpdated&&(this.prev=this.current)}),this.prev=this.current=e,this.canTrackVelocity=kn(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}set(e){this.updateAndNotify(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?dn(Number.parseFloat(this.current)-Number.parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(t=>{let{stop:n}=e(t);this.stopAnimation=n}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}};function jn(e){return new An(e)}var{isArray:Mn}=Array;function Nn(){let e=g({}),t=t=>{let n=t=>{e.value[t]&&(e.value[t].stop(),e.value[t].destroy(),delete e.value[t])};t?Mn(t)?t.forEach(n):n(t):Object.keys(e.value).forEach(n)};return re(t),{motionValues:e,get:(t,n,r)=>{if(e.value[t])return e.value[t];let i=jn(n);return i.onChange(e=>r[t]=e),e.value[t]=i,i},stop:t}}function Pn(e){return Array.isArray(e)}function $(){return{type:`spring`,stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function Fn(e){return{type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function In(e){return{type:`spring`,stiffness:550,damping:e===0?100:30,restDelta:.01,restSpeed:10}}function Ln(){return{type:`keyframes`,ease:`linear`,duration:300}}function Rn(e){return{type:`keyframes`,duration:800,values:e}}var zn={default:In,x:$,y:$,z:$,rotate:$,rotateX:$,rotateY:$,rotateZ:$,scaleX:Fn,scaleY:Fn,scale:Fn,backgroundColor:Ln,color:Ln,opacity:Ln};function Bn(e,t){let n;return n=Pn(t)?Rn:zn[e]||zn.default,y({to:t},n(t))}var Vn=y(y({},R),{},{transform:Math.round}),Hn={color:K,backgroundColor:K,outlineColor:K,fill:K,stroke:K,borderColor:K,borderTopColor:K,borderRightColor:K,borderBottomColor:K,borderLeftColor:K,borderWidth:U,borderTopWidth:U,borderRightWidth:U,borderBottomWidth:U,borderLeftWidth:U,borderRadius:U,radius:U,borderTopLeftRadius:U,borderTopRightRadius:U,borderBottomRightRadius:U,borderBottomLeftRadius:U,width:U,maxWidth:U,height:U,maxHeight:U,size:U,top:U,right:U,bottom:U,left:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,rotate:V,rotateX:V,rotateY:V,rotateZ:V,scale:B,scaleX:B,scaleY:B,scaleZ:B,skew:V,skewX:V,skewY:V,distance:U,translateX:U,translateY:U,translateZ:U,x:U,y:U,z:U,perspective:U,transformPerspective:U,opacity:z,originX:Ue,originY:Ue,originZ:U,zIndex:Vn,filter:st,WebkitFilter:st,fillOpacity:z,strokeOpacity:z,numOctaves:Vn},Un=e=>Hn[e];function Wn(e,t){return t&&typeof e==`number`&&t.transform?t.transform(e):e}function Gn(e,t){let n=Un(e);return n!==st&&(n=q),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Kn={linear:Lt,easeIn:Rt,easeInOut:Bt,easeOut:zt,circIn:Vt,circInOut:Ut,circOut:Ht,backIn:Wt,backInOut:Kt,backOut:Gt,anticipate:qt,bounceIn:Zt,bounceInOut:Qt,bounceOut:Y};function qn(e){if(Array.isArray(e)){let[t,n,r,i]=e;return wn(t,n,r,i)}return typeof e==`string`?Kn[e]:e}function Jn(e){return Array.isArray(e)&&typeof e[0]!=`number`}function Yn(e,t){return e!==`zIndex`&&!!(typeof t==`number`||Array.isArray(t)||typeof t==`string`&&q.test(t)&&!t.startsWith(`url(`))}function Xn(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function Zn(e){let{ease:t,times:n,delay:r}=e,i=x(e,Tn),a=y({},i);return n&&(a.offset=n),t&&(a.ease=Jn(t)?t.map(qn):qn(t)),r&&(a.elapsed=-r),a}function Qn(e,t,n){return Array.isArray(t.to)&&(e.duration||(e.duration=800)),Xn(t),$n(e)||(e=y(y({},e),Bn(n,t.to))),y(y({},t),Zn(e))}function $n(e){let{delay:t,repeat:n,repeatType:r,repeatDelay:i,from:a}=e,o=x(e,En);return!!Object.keys(o).length}function er(e,t){return e[t]||e.default||e}function tr(e,t,n,r,i){let a=er(r,e),o=a.from===null||a.from===void 0?t.get():a.from,s=Yn(e,n);o===`none`&&s&&typeof n==`string`&&(o=Gn(e,n));let c=Yn(e,o);function l(s){let c={from:o,to:n,velocity:r.velocity?r.velocity:t.getVelocity(),onUpdate:e=>t.set(e)};return a.type===`inertia`||a.type===`decay`?fn(y(y({},c),a)):un(y(y({},Qn(a,c,e)),{},{onUpdate:e=>{c.onUpdate(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{i&&i(),s&&s()}}))}function u(e){return t.set(n),i&&i(),e&&e(),{stop:()=>{}}}return!c||!s||a.type===!1?u:l}function nr(){let{motionValues:e,stop:t,get:n}=Nn();return{motionValues:e,stop:t,push:(e,t,r,i={},a)=>{let o=r[e],s=n(e,o,r);if(i&&i.immediate){s.set(t);return}let c=tr(e,s,t,i,a);s.start(c)}}}function rr(e,t={},{motionValues:n,push:i,stop:a}=nr()){let o=s(t),c=g(!1);r(n,e=>{c.value=Object.values(e).filter(e=>e.isAnimating()).length>0},{immediate:!0,deep:!0});let l=e=>{if(!o||!o[e])throw Error(`The variant ${e} does not exist.`);return o[e]},u=t=>{typeof t==`string`&&(t=l(t));let n=Object.entries(t).map(([n,r])=>{if(n!==`transition`)return new Promise(a=>i(n,r,e,t.transition||Bn(n,t[n]),a))}).filter(Boolean);function r(){return a.apply(this,arguments)}function a(){return a=b(function*(){var e,r;yield Promise.all(n),(e=t.transition)==null||(r=e.onComplete)==null||r.call(e)}),a.apply(this,arguments)}return Promise.all([r()])};return{isAnimating:c,apply:u,set:t=>{let n=E(t)?t:l(t);Object.entries(n).forEach(([t,n])=>{t!==`transition`&&i(t,n,e,{immediate:!0})})},leave:function(){var e=b(function*(e){let t;if(o&&(o.leave&&(t=o.leave),!o.leave&&o.initial&&(t=o.initial)),!t){e();return}yield u(t),e()});return function(t){return e.apply(this,arguments)}}(),stop:a}}var ir=typeof window<`u`,ar=()=>ir&&(window.onpointerdown===null||void 0),or=()=>ir&&(window.ontouchstart===null||void 0),sr=()=>ir&&(window.onmousedown===null||void 0);function cr({target:e,state:t,variants:n,apply:i}){let a=s(n),o=g(!1),c=g(!1),l=g(!1),u=d(()=>{let e=[...Object.keys(t.value||{})];return a?(a.hovered&&(e=[...e,...Object.keys(a.hovered)]),a.tapped&&(e=[...e,...Object.keys(a.tapped)]),a.focused&&(e=[...e,...Object.keys(a.focused)]),e):e}),f=d(()=>{let e={};Object.assign(e,t.value),o.value&&a.hovered&&Object.assign(e,a.hovered),c.value&&a.tapped&&Object.assign(e,a.tapped),l.value&&a.focused&&Object.assign(e,a.focused);for(let t in e)u.value.includes(t)||delete e[t];return e});a.hovered&&(A(e,`mouseenter`,()=>o.value=!0),A(e,`mouseleave`,()=>{o.value=!1,c.value=!1})),a.tapped&&(sr()&&(A(e,`mousedown`,()=>c.value=!0),A(e,`mouseup`,()=>c.value=!1)),ar()&&(A(e,`pointerdown`,()=>c.value=!0),A(e,`pointerup`,()=>c.value=!1)),or()&&(A(e,`touchstart`,()=>c.value=!0),A(e,`touchend`,()=>c.value=!1))),a.focused&&(A(e,`focus`,()=>l.value=!0),A(e,`blur`,()=>l.value=!1)),r([o,c,l],()=>{i(f.value)})}function lr({set:e,target:t,variants:n,variant:i}){let a=s(n);r(()=>t,()=>{a&&(a.initial&&(e(`initial`),i.value=`initial`),a.enter&&(i.value=`enter`))},{immediate:!0,flush:`pre`})}function ur({state:e,apply:t}){r(e,e=>{e&&t(e)},{immediate:!0})}function dr({target:e,variants:t,variant:n}){let r=s(t);r&&(r.visible||r.visibleOnce)&&ce(e,([{isIntersecting:e}])=>{r.visible?n.value=e?`visible`:`initial`:r.visibleOnce&&(e&&n.value!==`visibleOnce`?n.value=`visibleOnce`:n.value||(n.value=`initial`))})}function fr(e,t={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){t.lifeCycleHooks&&lr(e),t.syncVariants&&ur(e),t.visibilityHooks&&dr(e),t.eventListeners&&cr(e)}function pr(e={}){let t=f(y({},e)),n=g({});return r(t,()=>{let e={};for(let[n,r]of Object.entries(t))e[n]=Wn(r,Un(n));n.value=e},{immediate:!0,deep:!0}),{state:t,style:n}}function mr(e,t){r(()=>k(e),e=>{e&&t(e)},{immediate:!0})}var hr={x:`translateX`,y:`translateY`,z:`translateZ`};function gr(e={},t=!0){let n=f(y({},e)),i=g(``);return r(n,e=>{let n=``,r=!1;if(t&&(e.x||e.y||e.z)){let t=[e.x||0,e.y||0,e.z||0].map(e=>Wn(e,U)).join(`,`);n+=`translate3d(${t}) `,r=!0}for(let[r,i]of Object.entries(e)){if(t&&(r===`x`||r===`y`||r===`z`))continue;let e=Wn(i,Un(r));n+=`${hr[r]||r}(${e}) `}t&&!r&&(n+=`translateZ(0px) `),i.value=n.trim()},{immediate:!0,deep:!0}),{state:n,transform:i}}var _r=[``,`X`,`Y`,`Z`],vr=[`perspective`,`translate`,`scale`,`rotate`,`skew`],yr=[`transformPerspective`,`x`,`y`,`z`];vr.forEach(e=>{_r.forEach(t=>{let n=e+t;yr.push(n)})});var br=new Set(yr);function xr(e){return br.has(e)}var Sr=new Set([`originX`,`originY`,`originZ`]);function Cr(e){return Sr.has(e)}function wr(e){let t={},n={};return Object.entries(e).forEach(([e,r])=>{xr(e)||Cr(e)?t[e]=r:n[e]=r}),{transform:t,style:n}}function Tr(e){let{transform:t,style:n}=wr(e),{transform:r}=gr(t),{style:i}=pr(n);return r.value&&(i.value.transform=r.value),i.value}function Er(e,t){let n,i,{state:a,style:o}=pr();return mr(e,e=>{i=e;for(let t of Object.keys(Hn))e.style[t]===null||e.style[t]===``||xr(t)||Cr(t)||(a[t]=e.style[t]);n&&Object.entries(n).forEach(([t,n])=>e.style[t]=n),t&&t(a)}),r(o,e=>{if(!i){n=e;return}for(let t in e)i.style[t]=e[t]},{immediate:!0}),{style:a}}function Dr(e){let t=e.trim().split(/\) |\)/);if(t.length===1)return{};let n=e=>e.endsWith(`px`)||e.endsWith(`deg`)?Number.parseFloat(e):Number.isNaN(Number(e))?Number(e):e;return t.reduce((e,t)=>{if(!t)return e;let[r,i]=t.split(`(`),a=i.split(`,`).map(e=>n(e.endsWith(`)`)?e.replace(`)`,``):e.trim())),o=a.length===1?a[0]:a;return y(y({},e),{},{[r]:o})},{})}function Or(e,t){Object.entries(Dr(t)).forEach(([t,n])=>{let r=[`x`,`y`,`z`];if(t===`translate3d`){if(n===0){r.forEach(t=>e[t]=0);return}n.forEach((t,n)=>e[r[n]]=t);return}if(n=Number.parseFloat(`${n}`),t===`translateX`){e.x=n;return}if(t===`translateY`){e.y=n;return}if(t===`translateZ`){e.z=n;return}e[t]=n})}function kr(e,t){let n,i,{state:a,transform:o}=gr();return mr(e,e=>{i=e,e.style.transform&&Or(a,e.style.transform),n&&(e.style.transform=n),t&&t(a)}),r(o,e=>{if(!i){n=e;return}i.style.transform=e},{immediate:!0}),{transform:a}}function Ar(e){return Object.entries(e)}function jr(e,t){let n=f({}),i=e=>Object.entries(e).forEach(([e,t])=>n[e]=t),{style:a}=Er(e,i),{transform:o}=kr(e,i);return r(n,e=>{Ar(e).forEach(([e,t])=>{let n=xr(e)?o:a;n[e]&&n[e]===t||(n[e]=t)})},{immediate:!0,deep:!0}),mr(e,()=>t&&i(t)),{motionProperties:n,style:a,transform:o}}function Mr(e={}){let t=s(e),n=g();return{state:d(()=>{if(n.value)return t[n.value]}),variant:n}}function Nr(e,t={},n){let{motionProperties:r}=jr(e),{variant:i,state:a}=Mr(t),o=rr(r,t),s=y({target:e,variant:i,variants:t,state:a,motionProperties:r},o);return fr(s,n),s}var Pr=[`delay`,`duration`],Fr=[`initial`,`enter`,`leave`,`visible`,`visible-once`,`visibleOnce`,`hovered`,`tapped`,`focused`,...Pr];function Ir(e){return Pr.includes(e)}function Lr(e,t){let n=e.props?e.props:e.data&&e.data.attrs?e.data.attrs:{};if(n){n.variants&&E(n.variants)&&(t.value=y(y({},t.value),n.variants));for(let e of Fr)if(!(!n||!n[e])){if(Ir(e)&&typeof n[e]==`number`){for(let r of[`enter`,`visible`,`visibleOnce`]){let i=t.value[r];i!=null&&(i.transition!=null||(i.transition={}),i.transition[e]=n[e])}continue}if(E(n[e])){let r=n[e];e===`visible-once`&&(e=`visibleOnce`),t.value[e]=r}}}}function Rr(e,n=!1){return{created:(r,i,a)=>{let o=i.value&&typeof i.value==`string`?i.value:a.key;o&&Dn[o]&&Dn[o].stop();let s=n?structuredClone(t(e)||{}):e||{},c=g(s);typeof i.value==`object`&&(c.value=i.value),Lr(a,c);let l=Nr(r,c,{eventListeners:!0,lifeCycleHooks:!0,syncVariants:!0,visibilityHooks:!1});r.motionInstance=l,o&&(Dn[o]=l)},mounted:(e,t,n)=>{e.motionInstance&&dr(e.motionInstance)},getSSRProps(t,n){let{initial:r}=t.value||n&&(n==null?void 0:n.props)||{};r=s(r);let i=S({},(e==null?void 0:e.initial)||{},r||{});if(!(!i||Object.keys(i).length===0))return{style:Tr(i)}}}}var zr={__proto__:null,fade:{initial:{opacity:0},enter:{opacity:1}},fadeVisible:{initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce:{initial:{opacity:0},visibleOnce:{opacity:1}},pop:{initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible:{initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce:{initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollBottom:{initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollLeft:{initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollRight:{initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollTop:{initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom:{initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleLeft:{initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceBottom:{initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollVisibleOnceLeft:{initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight:{initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollVisibleOnceTop:{initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollVisibleRight:{initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleTop:{initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},slideBottom:{initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideLeft:{initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideRight:{initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideTop:{initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom:{initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleLeft:{initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceBottom:{initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},slideVisibleOnceLeft:{initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideVisibleOnceRight:{initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideVisibleOnceTop:{initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideVisibleRight:{initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleTop:{initial:{y:-100,opacity:0},visible:{y:0,opacity:1}}};function Br(e){let t=`àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;`,n=new RegExp(t.split(``).join(`|`),`g`);return e.toString().replace(/[A-Z]/g,e=>`-${e}`).toLowerCase().replace(/\s+/g,`-`).replace(n,e=>`aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------`.charAt(t.indexOf(e))).replace(/&/g,`-and-`).replace(/[^\w\-]+/g,``).replace(/-{2,}/g,`-`).replace(/^-+/,``).replace(/-+$/,``)}var Vr=Symbol(``),Hr={preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1},duration:{type:[Number,String],required:!1}};function Ur(e){return Object.prototype.toString.call(e)===`[object Object]`}function Wr(e){if(Array.isArray(e))return e.map(Wr);if(Ur(e)){let t={};for(let n in e)t[n]=Wr(e[n]);return t}return e}function Gr(e){let n=f({}),r=i(Vr,{}),a=d(()=>e.preset==null?{}:r!=null&&e.preset in r?structuredClone(t(r)[e.preset]):e.preset in zr?structuredClone(zr[e.preset]):{}),o=d(()=>({initial:e.initial,enter:e.enter,leave:e.leave,visible:e.visible,visibleOnce:e.visibleOnce,hovered:e.hovered,tapped:e.tapped,focused:e.focused}));function s(e,t){for(let n of[`delay`,`duration`]){if(t[n]==null)continue;let r=Number.parseInt(t[n]);for(let t of[`enter`,`visible`,`visibleOnce`]){let i=e[t];i!=null&&(i.transition!=null||(i.transition={}),i.transition[n]=r)}}return e}let c=d(()=>{let t=S({},o.value,a.value,e.variants||{});return s(y({},t),e)});function l(e,t,r){var i;e.props!=null||(e.props={}),(i=e.props).style!=null||(i.style={}),e.props.style=y(y({},e.props.style),r);let a=s(Wr(c.value),e.props);return e.props.onVnodeMounted=({el:e})=>{n[t]=Nr(e,a)},e.props.onVnodeUpdated=({el:e})=>{let r=Tr(n[t].state);for(let[t,n]of Object.entries(r))e.style[t]=n},e}return{motionConfig:c,setNodeInstance:l}}var Kr=p({name:`Motion`,props:y(y({},Hr),{},{is:{type:[String,Object],default:`div`}}),setup(t){let n=o(),{motionConfig:r,setNodeInstance:i}=Gr(t);return()=>{let a=Tr(r.value.initial||{}),o=e(t.is,void 0,n);return i(o,0,a),o}}}),qr=p({name:`MotionGroup`,props:y(y({},Hr),{},{is:{type:[String,Object],required:!1}}),setup(t){let n=o(),{motionConfig:r,setNodeInstance:i}=Gr(t);return()=>{var a;let o=Tr(r.value.initial||{}),s=((a=n.default)==null?void 0:a.call(n))||[];for(let e=0;e<s.length;e++){let t=s[e];t.type===m&&Array.isArray(t.children)?t.children.forEach(function e(t,n){if(t!=null){if(Array.isArray(t)){e(t,n);return}typeof t==`object`&&i(t,n,o)}}):i(t,e,o)}return t.is?e(t.is,void 0,s):s}}}),Jr={install(e,t){if(e.directive(`motion`,Rr()),!t||t&&!t.excludePresets)for(let t in zr){let n=zr[t];e.directive(`motion-${Br(t)}`,Rr(n,!0))}if(t&&t.directives)for(let n in t.directives){let r=t.directives[n];r.initial,e.directive(`motion-${n}`,Rr(r,!0))}e.provide(Vr,t==null?void 0:t.directives),e.component(`Motion`,Kr),e.component(`MotionGroup`,qr)}};export{Kr as Motion,Rr as MotionDirective,qr as MotionGroup,Jr as MotionPlugin,C as MotionPresets};