framer-motion 9.0.2 → 9.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/cjs/index.js +3344 -3260
  2. package/dist/es/animation/hooks/use-animated-state.mjs +3 -3
  3. package/dist/es/animation/index.mjs +3 -5
  4. package/dist/es/animation/legacy-popmotion/index.mjs +6 -2
  5. package/dist/es/animation/legacy-popmotion/inertia.mjs +4 -5
  6. package/dist/es/components/AnimatePresence/use-presence.mjs +0 -1
  7. package/dist/es/events/add-dom-event.mjs +6 -0
  8. package/dist/es/events/add-pointer-event.mjs +8 -0
  9. package/dist/es/events/use-dom-event.mjs +2 -5
  10. package/dist/es/gestures/drag/VisualElementDragControls.mjs +31 -30
  11. package/dist/es/gestures/drag/index.mjs +27 -0
  12. package/dist/es/gestures/focus.mjs +42 -0
  13. package/dist/es/gestures/hover.mjs +32 -0
  14. package/dist/es/gestures/{PanSession.mjs → pan/PanSession.mjs} +8 -8
  15. package/dist/es/gestures/pan/index.mjs +38 -0
  16. package/dist/es/gestures/press.mjs +109 -0
  17. package/dist/es/index.mjs +1 -1
  18. package/dist/es/motion/features/Feature.mjs +9 -0
  19. package/dist/es/motion/features/animation/exit.mjs +32 -0
  20. package/dist/es/motion/features/animation/index.mjs +38 -0
  21. package/dist/es/motion/features/animations.mjs +8 -37
  22. package/dist/es/motion/features/definitions.mjs +17 -23
  23. package/dist/es/motion/features/drag.mjs +12 -5
  24. package/dist/es/motion/features/gestures.mjs +16 -9
  25. package/dist/es/motion/features/layout/MeasureLayout.mjs +5 -5
  26. package/dist/es/motion/features/layout.mjs +11 -0
  27. package/dist/es/motion/features/load-features.mjs +4 -6
  28. package/dist/es/motion/features/viewport/index.mjs +96 -0
  29. package/dist/es/motion/index.mjs +12 -13
  30. package/dist/es/motion/utils/use-visual-element.mjs +8 -2
  31. package/dist/es/projection/geometry/delta-apply.mjs +9 -2
  32. package/dist/es/projection/geometry/delta-calc.mjs +2 -2
  33. package/dist/es/projection/geometry/delta-remove.mjs +2 -2
  34. package/dist/es/projection/node/DocumentProjectionNode.mjs +1 -1
  35. package/dist/es/projection/node/create-projection-node.mjs +65 -57
  36. package/dist/es/projection/node/group.mjs +5 -3
  37. package/dist/es/projection/shared/stack.mjs +7 -5
  38. package/dist/es/render/VisualElement.mjs +68 -47
  39. package/dist/es/render/dom/DOMVisualElement.mjs +1 -2
  40. package/dist/es/render/dom/features-max.mjs +2 -4
  41. package/dist/es/render/dom/motion.mjs +5 -6
  42. package/dist/es/render/dom/utils/create-config.mjs +1 -2
  43. package/dist/es/render/dom/value-types/animatable-none.mjs +3 -2
  44. package/dist/es/render/svg/SVGVisualElement.mjs +2 -2
  45. package/dist/es/render/utils/animation-state.mjs +6 -2
  46. package/dist/es/render/utils/animation.mjs +4 -4
  47. package/dist/es/render/utils/motion-values.mjs +1 -1
  48. package/dist/es/render/utils/setters.mjs +14 -9
  49. package/dist/es/value/index.mjs +1 -1
  50. package/dist/es/value/utils/is-motion-value.mjs +1 -1
  51. package/dist/framer-motion.dev.js +3341 -3257
  52. package/dist/framer-motion.js +1 -1
  53. package/dist/index.d.ts +85 -77
  54. package/dist/projection.dev.js +217 -177
  55. package/dist/size-rollup-dom-animation-assets.js +1 -1
  56. package/dist/size-rollup-dom-animation-m.js +1 -1
  57. package/dist/size-rollup-dom-animation.js +1 -1
  58. package/dist/size-rollup-dom-max-assets.js +1 -1
  59. package/dist/size-rollup-dom-max.js +1 -1
  60. package/dist/size-rollup-m.js +1 -1
  61. package/dist/size-rollup-motion.js +1 -1
  62. package/dist/size-webpack-dom-animation.js +1 -1
  63. package/dist/size-webpack-dom-max.js +1 -1
  64. package/dist/size-webpack-m.js +1 -1
  65. package/dist/three-entry.d.ts +74 -38
  66. package/package.json +8 -8
  67. package/dist/es/events/use-pointer-event.mjs +0 -11
  68. package/dist/es/gestures/drag/use-drag.mjs +0 -20
  69. package/dist/es/gestures/use-focus-gesture.mjs +0 -37
  70. package/dist/es/gestures/use-hover-gesture.mjs +0 -32
  71. package/dist/es/gestures/use-pan-gesture.mjs +0 -46
  72. package/dist/es/gestures/use-tap-gesture.mjs +0 -115
  73. package/dist/es/motion/features/layout/index.mjs +0 -7
  74. package/dist/es/motion/features/viewport/use-viewport.mjs +0 -97
  75. package/dist/es/motion/utils/VisualElementHandler.mjs +0 -19
  76. package/dist/es/motion/utils/make-renderless-component.mjs +0 -6
@@ -1 +1 @@
1
- import{createContext as t}from"react";const e=t(null),r="undefined"!=typeof document;function a(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function n(t){return"string"==typeof t||Array.isArray(t)}function s(t){return"object"==typeof t&&"function"==typeof t.start}const o=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function i(t){return s(t.animate)||o.some(e=>n(t[e]))}function f(t){return Boolean(i(t)||t.variants)}const l=t=>({isEnabled:e=>t.some(t=>!!e[t])}),c={measureLayout:l(["layout","layoutId","drag"]),animation:l(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:l(["exit"]),drag:l(["drag","dragControls"]),focus:l(["whileFocus"]),hover:l(["whileHover","onHoverStart","onHoverEnd"]),tap:l(["whileTap","onTap","onTapStart","onTapCancel"]),pan:l(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:l(["whileInView","onViewportEnter","onViewportLeave"])},d=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function u(t){return"string"==typeof t&&!t.includes("-")&&!!(d.indexOf(t)>-1||/[A-Z]/.test(t))}const p={},m=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],g=new Set(m);function h(t,{layout:e,layoutId:r}){return g.has(t)||t.startsWith("origin")||(e||void 0!==r)&&(!!p[t]||"opacity"===t)}const y=t=>!!(null==t?void 0:t.getVelocity),v={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},w=(t,e)=>m.indexOf(t)-m.indexOf(e);function x(t){return t.startsWith("--")}const b=(t,e)=>e&&"number"==typeof t?e.transform(t):t,k=(t,e,r)=>Math.min(Math.max(r,t),e),L={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},O={...L,transform:t=>k(0,1,t)},T={...L,default:1},X=t=>Math.round(1e5*t)/1e5,Y=/(-)?([\d]*\.?[\d])+/g,$=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,B=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function A(t){return"string"==typeof t}const P=t=>({test:e=>A(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),S=P("deg"),W=P("%"),Z=P("px"),R=P("vh"),C=P("vw"),H={...W,parse:t=>W.parse(t)/100,transform:t=>W.transform(100*t)},V={...L,transform:Math.round},j={borderWidth:Z,borderTopWidth:Z,borderRightWidth:Z,borderBottomWidth:Z,borderLeftWidth:Z,borderRadius:Z,radius:Z,borderTopLeftRadius:Z,borderTopRightRadius:Z,borderBottomRightRadius:Z,borderBottomLeftRadius:Z,width:Z,maxWidth:Z,height:Z,maxHeight:Z,size:Z,top:Z,right:Z,bottom:Z,left:Z,padding:Z,paddingTop:Z,paddingRight:Z,paddingBottom:Z,paddingLeft:Z,margin:Z,marginTop:Z,marginRight:Z,marginBottom:Z,marginLeft:Z,rotate:S,rotateX:S,rotateY:S,rotateZ:S,scale:T,scaleX:T,scaleY:T,scaleZ:T,skew:S,skewX:S,skewY:S,distance:Z,translateX:Z,translateY:Z,translateZ:Z,x:Z,y:Z,z:Z,perspective:Z,transformPerspective:Z,opacity:O,originX:H,originY:H,originZ:Z,zIndex:V,fillOpacity:O,strokeOpacity:O,numOctaves:V};function z(t,e,r,a){const{style:n,vars:s,transform:o,transformKeys:i,transformOrigin:f}=t;i.length=0;let l=!1,c=!1,d=!0;for(const t in e){const r=e[t];if(x(t)){s[t]=r;continue}const a=j[t],u=b(r,a);if(g.has(t)){if(l=!0,o[t]=u,i.push(t),!d)continue;r!==(a.default||0)&&(d=!1)}else t.startsWith("origin")?(c=!0,f[t]=u):n[t]=u}if(e.transform||(l||a?n.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:r=!0,allowTransformNone:a=!0},n,s){let o="";e.sort(w);for(const r of e)o+=`${v[r]||r}(${t[r]}) `;return r&&!t.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(t,n?"":o):a&&n&&(o="none"),o}(t,r,d,a):n.transform&&(n.transform="none")),c){const{originX:t="50%",originY:e="50%",originZ:r=0}=f;n.transformOrigin=`${t} ${e} ${r}`}}function F(t,e,r){return"string"==typeof t?t:Z.transform(e+r*t)}const I={offset:"stroke-dashoffset",array:"stroke-dasharray"},D={offset:"strokeDashoffset",array:"strokeDasharray"};function E(t,{attrX:e,attrY:r,originX:a,originY:n,pathLength:s,pathSpacing:o=1,pathOffset:i=0,...f},l,c,d){if(z(t,f,l,d),c)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:u,style:p,dimensions:m}=t;u.transform&&(m&&(p.transform=u.transform),delete u.transform),m&&(void 0!==a||void 0!==n||p.transform)&&(p.transformOrigin=function(t,e,r){return`${F(e,t.x,t.width)} ${F(r,t.y,t.height)}`}(m,void 0!==a?a:.5,void 0!==n?n:.5)),void 0!==e&&(u.x=e),void 0!==r&&(u.y=r),void 0!==s&&function(t,e,r=1,a=0,n=!0){t.pathLength=1;const s=n?I:D;t[s.offset]=Z.transform(-a);const o=Z.transform(e),i=Z.transform(r);t[s.array]=`${o} ${i}`}(u,s,o,i,!1)}const M=t=>"string"==typeof t&&"svg"===t.toLowerCase(),K=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function q(t,{style:e,vars:r},a,n){Object.assign(t.style,e,n&&n.getProjectionStyles(a));for(const e in r)t.style.setProperty(e,r[e])}const N=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"]);function U(t,e,r,a){q(t,e,void 0,a);for(const r in e.attrs)t.setAttribute(N.has(r)?r:K(r),e.attrs[r])}function G(t,e){const{style:r}=t,a={};for(const n in r)(y(r[n])||e.style&&y(e.style[n])||h(n,t))&&(a[n]=r[n]);return a}function J(t,e){const r=G(t,e);for(const a in t)if(y(t[a])||y(e[a])){r["x"===a||"y"===a?"attr"+a.toUpperCase():a]=t[a]}return r}function Q(t,e,r,a={},n={}){return"function"==typeof e&&(e=e(void 0!==r?r:t.custom,a,n)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==r?r:t.custom,a,n)),e}const _=t=>Array.isArray(t),tt=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),et=t=>_(t)?t[t.length-1]||0:t;export{$ as A,j as B,Z as C,S as D,C as E,R as F,et as G,K as H,g as I,_ as J,m as K,x as L,q as M,N,e as P,a,i as b,n as c,y as d,h as e,c as f,z as g,E as h,r as i,M as j,u as k,tt as l,f as m,s as n,U as o,G as p,A as q,Q as r,J as s,B as t,Y as u,X as v,O as w,L as x,k as y,W as z};
1
+ const t="undefined"!=typeof document;function e(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function r(t){return"string"==typeof t||Array.isArray(t)}function a(t){return"object"==typeof t&&"function"==typeof t.start}const n=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function s(t){return a(t.animate)||n.some(e=>r(t[e]))}function o(t){return Boolean(s(t)||t.variants)}const i={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},f={};for(const t in i)f[t]={isEnabled:e=>i[t].some(t=>!!e[t])};const c=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function l(t){return"string"==typeof t&&!t.includes("-")&&!!(c.indexOf(t)>-1||/[A-Z]/.test(t))}const d={},p=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],u=new Set(p);function g(t,{layout:e,layoutId:r}){return u.has(t)||t.startsWith("origin")||(e||void 0!==r)&&(!!d[t]||"opacity"===t)}const m=t=>Boolean(t&&t.getVelocity),h={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},y=(t,e)=>p.indexOf(t)-p.indexOf(e);function v(t){return t.startsWith("--")}const w=(t,e)=>e&&"number"==typeof t?e.transform(t):t,x=(t,e,r)=>Math.min(Math.max(r,t),e),b={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},k={...b,transform:t=>x(0,1,t)},O={...b,default:1},L=t=>Math.round(1e5*t)/1e5,T=/(-)?([\d]*\.?[\d])+/g,X=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Y=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function $(t){return"string"==typeof t}const B=t=>({test:e=>$(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),A=B("deg"),S=B("%"),W=B("px"),Z=B("vh"),P=B("vw"),R={...S,parse:t=>S.parse(t)/100,transform:t=>S.transform(100*t)},C={...b,transform:Math.round},H={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,radius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,size:W,top:W,right:W,bottom:W,left:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,rotate:A,rotateX:A,rotateY:A,rotateZ:A,scale:O,scaleX:O,scaleY:O,scaleZ:O,skew:A,skewX:A,skewY:A,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:k,originX:R,originY:R,originZ:W,zIndex:C,fillOpacity:k,strokeOpacity:k,numOctaves:C};function V(t,e,r,a){const{style:n,vars:s,transform:o,transformKeys:i,transformOrigin:f}=t;i.length=0;let c=!1,l=!1,d=!0;for(const t in e){const r=e[t];if(v(t)){s[t]=r;continue}const a=H[t],p=w(r,a);if(u.has(t)){if(c=!0,o[t]=p,i.push(t),!d)continue;r!==(a.default||0)&&(d=!1)}else t.startsWith("origin")?(l=!0,f[t]=p):n[t]=p}if(e.transform||(c||a?n.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:r=!0,allowTransformNone:a=!0},n,s){let o="";e.sort(y);for(const r of e)o+=`${h[r]||r}(${t[r]}) `;return r&&!t.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(t,n?"":o):a&&n&&(o="none"),o}(t,r,d,a):n.transform&&(n.transform="none")),l){const{originX:t="50%",originY:e="50%",originZ:r=0}=f;n.transformOrigin=`${t} ${e} ${r}`}}function j(t,e,r){return"string"==typeof t?t:W.transform(e+r*t)}const z={offset:"stroke-dashoffset",array:"stroke-dasharray"},F={offset:"strokeDashoffset",array:"strokeDasharray"};function I(t,{attrX:e,attrY:r,originX:a,originY:n,pathLength:s,pathSpacing:o=1,pathOffset:i=0,...f},c,l,d){if(V(t,f,c,d),l)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:p,style:u,dimensions:g}=t;p.transform&&(g&&(u.transform=p.transform),delete p.transform),g&&(void 0!==a||void 0!==n||u.transform)&&(u.transformOrigin=function(t,e,r){return`${j(e,t.x,t.width)} ${j(r,t.y,t.height)}`}(g,void 0!==a?a:.5,void 0!==n?n:.5)),void 0!==e&&(p.x=e),void 0!==r&&(p.y=r),void 0!==s&&function(t,e,r=1,a=0,n=!0){t.pathLength=1;const s=n?z:F;t[s.offset]=W.transform(-a);const o=W.transform(e),i=W.transform(r);t[s.array]=`${o} ${i}`}(p,s,o,i,!1)}const D=t=>"string"==typeof t&&"svg"===t.toLowerCase(),E=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function M(t,{style:e,vars:r},a,n){Object.assign(t.style,e,n&&n.getProjectionStyles(a));for(const e in r)t.style.setProperty(e,r[e])}const K=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"]);function q(t,e,r,a){M(t,e,void 0,a);for(const r in e.attrs)t.setAttribute(K.has(r)?r:E(r),e.attrs[r])}function N(t,e){const{style:r}=t,a={};for(const n in r)(m(r[n])||e.style&&m(e.style[n])||g(n,t))&&(a[n]=r[n]);return a}function U(t,e){const r=N(t,e);for(const a in t)if(m(t[a])||m(e[a])){r["x"===a||"y"===a?"attr"+a.toUpperCase():a]=t[a]}return r}function G(t,e,r,a={},n={}){return"function"==typeof e&&(e=e(void 0!==r?r:t.custom,a,n)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==r?r:t.custom,a,n)),e}const J=t=>Array.isArray(t),Q=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),_=t=>J(t)?t[t.length-1]||0:t;export{X as A,H as B,W as C,A as D,P as E,Z as F,_ as G,E as H,u as I,J,p as K,v as L,M,K as N,e as a,s as b,r as c,m as d,g as e,f,V as g,I as h,t as i,D as j,l as k,Q as l,o as m,a as n,q as o,N as p,$ as q,G as r,U as s,Y as t,T as u,L as v,k as w,b as x,x as y,S as z};
@@ -1 +1 @@
1
- import*as t from"react";import n,{createContext as e,useContext as r,useLayoutEffect as o,useEffect as a,useRef as s,useCallback as i,useMemo as u,forwardRef as c,createElement as l}from"react";import{i as m,P as d,M as f,a as p,b as y,c as g,f as v,u as h,g as S,S as E,L as b,d as A,e as C,h as V,j as w,k as x,l as M,r as j,m as P,n as T,o as W,s as D,p as L,q as B}from"./size-rollup-dom-max-assets.js";const F=e({});const H=m?o:a,I=e({strict:!1});function N(t,n,e,o){const i=r(F).visualElement,u=r(I),c=r(d),l=r(f).reducedMotion,m=s();o=o||u.renderer,!m.current&&o&&(m.current=o(t,{visualState:n,parent:i,props:e,presenceId:c?c.id:void 0,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:l}));const p=m.current;H(()=>{p&&p.render()});return(window.HandoffAppearAnimations?H:a)(()=>{p&&p.animationState&&p.animationState.animateChanges()}),p}function O(t){const{initial:n,animate:e}=function(t,n){if(y(t)){const{initial:n,animate:e}=t;return{initial:!1===n||g(n)?n:void 0,animate:g(e)?e:void 0}}return!1!==t.inherit?n:{}}(t,r(F));return u(()=>({initial:n,animate:e}),[R(n),R(e)])}function R(t){return Array.isArray(t)?t.join(" "):t}let k=1;class U extends n.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:n}=this.props;return t&&t.setProps(n),null}componentDidUpdate(){}render(){return this.props.children}}const K=Symbol.for("motionComponentSymbol");function q({preloadedFeatures:n,createVisualElement:e,projectionNodeConstructor:o,useRender:a,useVisualState:s,Component:u}){n&&function(t){for(const n in t)"projectionNodeConstructor"===n?v.projectionNodeConstructor=t[n]:v[n].Component=t[n]}(n);const l=c((function(c,l){const d={...r(f),...c,layoutId:_(c)},{isStatic:y}=d;let g=null;const b=O(c),A=y?void 0:h(()=>{if(S.hasEverUpdated)return k++}),C=s(c,y);if(!y&&m){b.visualElement=N(u,C,d,e);const t=r(E);b.visualElement&&(g=b.visualElement.loadFeatures(d,r(I).strict,n,A,o||v.projectionNodeConstructor,t))}return t.createElement(U,{visualElement:b.visualElement,props:d},g,t.createElement(F.Provider,{value:b},a(u,c,A,function(t,n,e){return i(r=>{r&&t.mount&&t.mount(r),n&&(r?n.mount(r):n.unmount()),e&&("function"==typeof e?e(r):p(e)&&(e.current=r))},[n])}(C,b.visualElement,l),C,y,b.visualElement)))}));return l[K]=u,l}function _({layoutId:t}){const n=r(b).id;return n&&void 0!==t?n+"-"+t:t}const z=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function X(t,n,e){for(const r in n)A(n[r])||C(r,e)||(t[r]=n[r])}function Y(t,n,e){const r={};return X(r,t.style||{},t),Object.assign(r,function({transformTemplate:t},n,e){return u(()=>{const r={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};return V(r,n,{enableHardwareAcceleration:!e},t),Object.assign({},r.vars,r.style)},[n])}(t,n,e)),t.transformValues?t.transformValues(r):r}function G(t,n,e){const r={},o=Y(t,n,e);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r}const J=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Q(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||J.has(t)}let Z=t=>!Q(t);try{($=require("@emotion/is-prop-valid").default)&&(Z=t=>t.startsWith("on")?!Q(t):$(t))}catch(t){}var $;const tt=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}});function nt(t,n,e,r){const o=u(()=>{const e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}};return w(e,n,{enableHardwareAcceleration:!1},x(r),t.transformTemplate),{...e.attrs,style:{...e.style}}},[n]);if(t.style){const n={};X(n,t.style,t),o.style={...n,...o.style}}return o}function et(t=!1){return(n,e,r,o,{latestValues:a},s)=>{const i=(M(n)?nt:G)(e,a,s,n),c={...function(t,n,e){const r={};for(const o in t)"values"===o&&"object"==typeof t.values||(Z(o)||!0===e&&Q(o)||!n&&!Q(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(e,"string"==typeof n,t),...i,ref:o},{children:m}=e,d=u(()=>A(m)?m.get():m,[m]);return r&&(c["data-projection-id"]=r),l(n,{...c,children:d})}}const rt=t=>(n,e)=>{const o=r(F),a=r(d),s=()=>function({scrapeMotionValuesFromProps:t,createRenderState:n,onMount:e},r,o,a){const s={latestValues:ot(r,o,a,t),renderState:n()};return e&&(s.mount=t=>e(r,t,s)),s}(t,n,o,a);return e?s():h(s)};function ot(t,n,e,r){const o={},a=r(t,{});for(const t in a)o[t]=j(a[t]);let{initial:s,animate:i}=t;const u=y(t),c=P(t);n&&c&&!u&&!1!==t.inherit&&(void 0===s&&(s=n.initial),void 0===i&&(i=n.animate));let l=!!e&&!1===e.initial;l=l||!1===s;const m=l?i:s;if(m&&"boolean"!=typeof m&&!T(m)){(Array.isArray(m)?m:[m]).forEach(n=>{const e=W(t,n);if(!e)return;const{transitionEnd:r,transition:a,...s}=e;for(const t in s){let n=s[t];if(Array.isArray(n)){n=n[l?n.length-1:0]}null!==n&&(o[t]=n)}for(const t in r)o[t]=r[t]})}return o}const at={useVisualState:rt({scrapeMotionValuesFromProps:D,createRenderState:tt,onMount:(t,n,{renderState:e,latestValues:r})=>{try{e.dimensions="function"==typeof n.getBBox?n.getBBox():n.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}w(e,r,{enableHardwareAcceleration:!1},x(n.tagName),t.transformTemplate),L(n,e)}})},st={useVisualState:rt({scrapeMotionValuesFromProps:B,createRenderState:z})};const it=function(t){function n(n,e={}){return q(t(n,e))}if("undefined"==typeof Proxy)return n;const e=new Map;return new Proxy(n,{get:(t,r)=>(e.has(r)||e.set(r,n(r)),e.get(r))})}((function(t,{forwardMotionProps:n=!1},e,r,o){return{...M(t)?at:st,preloadedFeatures:e,useRender:et(n),createVisualElement:r,projectionNodeConstructor:o,Component:t}}));export{it as m};
1
+ import*as t from"react";import{createContext as n,useContext as e,useLayoutEffect as r,useEffect as a,useRef as o,useInsertionEffect as s,useCallback as i,useMemo as u,forwardRef as l,createElement as c}from"react";import{i as m,P as f,a as d,b as p,c as y,f as g,g as v,S as h,L as S,d as E,e as b,h as A,j as V,k as w,l as x,r as M,m as C,n as P,o as T,s as W,p as L,q as j}from"./size-rollup-dom-max-assets.js";const D=n({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),F=n({});const B=m?r:a,H=n({strict:!1});function O(t,n,r,i){const u=e(F).visualElement,l=e(H),c=e(f),m=e(D).reducedMotion,d=o();i=i||l.renderer,!d.current&&i&&(d.current=i(t,{visualState:n,parent:u,props:r,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:m}));const p=d.current;s(()=>{p&&p.update(r,c)}),B(()=>{p&&p.render()}),a(()=>{p&&p.updateFeatures()});return(window.HandoffAppearAnimations?B:a)(()=>{p&&p.animationState&&p.animationState.animateChanges()}),p}function R(t){const{initial:n,animate:r}=function(t,n){if(p(t)){const{initial:n,animate:e}=t;return{initial:!1===n||y(n)?n:void 0,animate:y(e)?e:void 0}}return!1!==t.inherit?n:{}}(t,e(F));return u(()=>({initial:n,animate:r}),[k(n),k(r)])}function k(t){return Array.isArray(t)?t.join(" "):t}function I(t){const n=o(null);return null===n.current&&(n.current=t()),n.current}let K=1;const U=Symbol.for("motionComponentSymbol");function q({preloadedFeatures:n,createVisualElement:r,useRender:a,useVisualState:o,Component:s}){n&&function(t){for(const n in t)g[n]={...g[n],...t[n]}}(n);const u=l((function(u,l){let c;const f={...e(D),...u,layoutId:_(u)},{isStatic:p}=f,y=R(u),g=p?void 0:I(()=>{if(v.hasEverUpdated)return K++}),S=o(u,p);if(!p&&m){y.visualElement=O(s,S,f,r);const t=e(h),a=e(H).strict;y.visualElement&&(c=y.visualElement.loadFeatures(f,a,n,g,t))}return t.createElement(F.Provider,{value:y},c&&y.visualElement?t.createElement(c,{visualElement:y.visualElement,...f}):null,a(s,u,g,function(t,n,e){return i(r=>{r&&t.mount&&t.mount(r),n&&(r?n.mount(r):n.unmount()),e&&("function"==typeof e?e(r):d(e)&&(e.current=r))},[n])}(S,y.visualElement,l),S,p,y.visualElement))}));return u[U]=s,u}function _({layoutId:t}){const n=e(S).id;return n&&void 0!==t?n+"-"+t:t}const z=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function N(t,n,e){for(const r in n)E(n[r])||b(r,e)||(t[r]=n[r])}function X(t,n,e){const r={};return N(r,t.style||{},t),Object.assign(r,function({transformTemplate:t},n,e){return u(()=>{const r={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};return A(r,n,{enableHardwareAcceleration:!e},t),Object.assign({},r.vars,r.style)},[n])}(t,n,e)),t.transformValues?t.transformValues(r):r}function Y(t,n,e){const r={},a=X(t,n,e);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=a,r}const G=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function J(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||G.has(t)}let Q=t=>!J(t);try{(Z=require("@emotion/is-prop-valid").default)&&(Q=t=>t.startsWith("on")?!J(t):Z(t))}catch(t){}var Z;const $=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}});function tt(t,n,e,r){const a=u(()=>{const e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{},attrs:{}};return V(e,n,{enableHardwareAcceleration:!1},w(r),t.transformTemplate),{...e.attrs,style:{...e.style}}},[n]);if(t.style){const n={};N(n,t.style,t),a.style={...n,...a.style}}return a}function nt(t=!1){return(n,e,r,a,{latestValues:o},s)=>{const i=(x(n)?tt:Y)(e,o,s,n),l={...function(t,n,e){const r={};for(const a in t)"values"===a&&"object"==typeof t.values||(Q(a)||!0===e&&J(a)||!n&&!J(a)||t.draggable&&a.startsWith("onDrag"))&&(r[a]=t[a]);return r}(e,"string"==typeof n,t),...i,ref:a},{children:m}=e,f=u(()=>E(m)?m.get():m,[m]);return r&&(l["data-projection-id"]=r),c(n,{...l,children:f})}}const et=t=>(n,r)=>{const a=e(F),o=e(f),s=()=>function({scrapeMotionValuesFromProps:t,createRenderState:n,onMount:e},r,a,o){const s={latestValues:rt(r,a,o,t),renderState:n()};return e&&(s.mount=t=>e(r,t,s)),s}(t,n,a,o);return r?s():I(s)};function rt(t,n,e,r){const a={},o=r(t,{});for(const t in o)a[t]=M(o[t]);let{initial:s,animate:i}=t;const u=p(t),l=C(t);n&&l&&!u&&!1!==t.inherit&&(void 0===s&&(s=n.initial),void 0===i&&(i=n.animate));let c=!!e&&!1===e.initial;c=c||!1===s;const m=c?i:s;if(m&&"boolean"!=typeof m&&!P(m)){(Array.isArray(m)?m:[m]).forEach(n=>{const e=T(t,n);if(!e)return;const{transitionEnd:r,transition:o,...s}=e;for(const t in s){let n=s[t];if(Array.isArray(n)){n=n[c?n.length-1:0]}null!==n&&(a[t]=n)}for(const t in r)a[t]=r[t]})}return a}const at={useVisualState:et({scrapeMotionValuesFromProps:W,createRenderState:$,onMount:(t,n,{renderState:e,latestValues:r})=>{try{e.dimensions="function"==typeof n.getBBox?n.getBBox():n.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}V(e,r,{enableHardwareAcceleration:!1},w(n.tagName),t.transformTemplate),L(n,e)}})},ot={useVisualState:et({scrapeMotionValuesFromProps:j,createRenderState:z})};const st=function(t){function n(n,e={}){return q(t(n,e))}if("undefined"==typeof Proxy)return n;const e=new Map;return new Proxy(n,{get:(t,r)=>(e.has(r)||e.set(r,n(r)),e.get(r))})}((function(t,{forwardMotionProps:n=!1},e,r){return{...x(t)?at:ot,preloadedFeatures:e,useRender:nt(n),createVisualElement:r,Component:t}}));export{st as m};
@@ -1 +1 @@
1
- import{useContext as t,useId as e,useEffect as n,useRef as r,useCallback as s,useMemo as o,createElement as i}from"react";import{P as a,q as l,t as u,u as c,v as p,w as h,x as d,y as f,z as m,A as v,B as g,C as y,D as b,E as V,F as w,r as A,G as C,d as M,H as S,I as T,n as x,J as E,c as P,K as k,i as F,f as I,b as O,m as B,a as D,L as N,g as R,p as j,M as U,N as L,s as z,h as H,o as q,j as $,k as W}from"./size-rollup-dom-animation-assets.js";function K(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const G=t=>/^0[^.\s]+$/.test(t),Y={delta:0,timestamp:0},X="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Z="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(X()),1/60*1e3);let J=!0,_=!1,Q=!1;const tt=["read","update","preRender","render","postRender"],et=tt.reduce((t,e)=>(t[e]=function(t){let e=[],n=[],r=0,s=!1,o=!1;const i=new WeakSet,a={schedule:(t,o=!1,a=!1)=>{const l=a&&s,u=l?e:n;return o&&i.add(t),-1===u.indexOf(t)&&(u.push(t),l&&s&&(r=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),i.delete(t)},process:l=>{if(s)o=!0;else{if(s=!0,[e,n]=[n,e],n.length=0,r=e.length,r)for(let n=0;n<r;n++){const r=e[n];r(l),i.has(r)&&(a.schedule(r),t())}s=!1,o&&(o=!1,a.process(l))}}};return a}(()=>_=!0),t),{}),nt=tt.reduce((t,e)=>{const n=et[e];return t[e]=(t,e=!1,r=!1)=>(_||it(),n.schedule(t,e,r)),t},{}),rt=tt.reduce((t,e)=>(t[e]=et[e].cancel,t),{});tt.reduce((t,e)=>(t[e]=()=>et[e].process(Y),t),{});const st=t=>et[t].process(Y),ot=t=>{_=!1,Y.delta=J?1/60*1e3:Math.max(Math.min(t-Y.timestamp,40),1),Y.timestamp=t,Q=!0,tt.forEach(st),Q=!1,_&&(J=!1,Z(ot))},it=()=>{_=!0,J=!0,Q||Z(ot)};class at{constructor(){this.subscriptions=[]}add(t){var e,n;return e=this.subscriptions,n=t,-1===e.indexOf(n)&&e.push(n),()=>function(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let s=0;s<r;s++){const r=this.subscriptions[s];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function lt(t,e){return e?t*(1e3/e):0}class ut{constructor(t,e={}){var n;this.version="9.0.2",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:r}=Y;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,nt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>nt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new at);const n=this.events[t].add(e);return"change"===t?()=>{n(),nt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?lt(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e)||null,this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ct(t,e){return new ut(t,e)}const pt=(t,e)=>n=>Boolean(l(n)&&u.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),ht=(t,e,n)=>r=>{if(!l(r))return r;const[s,o,i,a]=r.match(c);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(i),alpha:void 0!==a?parseFloat(a):1}},dt={...d,transform:t=>Math.round((t=>f(0,255,t))(t))},ft={test:pt("rgb","red"),parse:ht("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+dt.transform(t)+", "+dt.transform(e)+", "+dt.transform(n)+", "+p(h.transform(r))+")"};const mt={test:pt("#"),parse:function(t){let e="",n="",r="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,r+=r,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}},transform:ft.transform},vt={test:pt("hsl","hue"),parse:ht("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+m.transform(p(e))+", "+m.transform(p(n))+", "+p(h.transform(r))+")"},gt={test:t=>ft.test(t)||mt.test(t)||vt.test(t),parse:t=>ft.test(t)?ft.parse(t):vt.test(t)?vt.parse(t):mt.parse(t),transform:t=>l(t)?t:t.hasOwnProperty("red")?ft.transform(t):vt.transform(t)};function yt(t){"number"==typeof t&&(t=""+t);const e=[];let n=0,r=0;const s=t.match(v);s&&(n=s.length,t=t.replace(v,"${c}"),e.push(...s.map(gt.parse)));const o=t.match(c);return o&&(r=o.length,t=t.replace(c,"${n}"),e.push(...o.map(d.parse))),{values:e,numColors:n,numNumbers:r,tokenised:t}}function bt(t){return yt(t).values}function Vt(t){const{values:e,numColors:n,tokenised:r}=yt(t),s=e.length;return t=>{let e=r;for(let r=0;r<s;r++)e=e.replace(r<n?"${c}":"${n}",r<n?gt.transform(t[r]):p(t[r]));return e}}const wt=t=>"number"==typeof t?0:t;const At={test:function(t){var e,n;return isNaN(t)&&l(t)&&((null===(e=t.match(c))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(v))||void 0===n?void 0:n.length)||0)>0},parse:bt,createTransformer:Vt,getAnimatableNone:function(t){const e=bt(t);return Vt(t)(e.map(wt))}},Ct=new Set(["brightness","contrast","saturate","opacity"]);function Mt(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(c)||[];if(!r)return t;const s=n.replace(r,"");let o=Ct.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+s+")"}const St=/([a-z-]*)\(.*?\)/g,Tt={...At,getAnimatableNone:t=>{const e=t.match(St);return e?e.map(Mt).join(" "):t}},xt={...g,color:gt,backgroundColor:gt,outlineColor:gt,fill:gt,stroke:gt,borderColor:gt,borderTopColor:gt,borderRightColor:gt,borderBottomColor:gt,borderLeftColor:gt,filter:Tt,WebkitFilter:Tt},Et=t=>xt[t];function Pt(t,e){var n;let r=Et(t);return r!==Tt&&(r=At),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,e)}const kt=t=>e=>e.test(t),Ft=[d,y,m,b,V,w,{test:t=>"auto"===t,parse:t=>t}],It=t=>Ft.find(kt(t)),Ot=[...Ft,gt,At],Bt=t=>Ot.find(kt(t));function Dt(t,e,n){const r=t.getProps();return A(r,e,void 0!==n?n:r.custom,function(t){const e={};return t.values.forEach((t,n)=>e[n]=t.get()),e}(t),function(t){const e={};return t.values.forEach((t,n)=>e[n]=t.getVelocity()),e}(t))}function Nt(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ct(n))}function Rt(t,e){if(!e)return;return(e[t]||e.default||e).from}function jt(t){return Boolean(M(t)&&t.add)}const Ut="data-"+S("framerAppearId");const Lt=t=>1e3*t,zt=!1,Ht=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,qt=t=>e=>1-t(1-e),$t=t=>t*t,Wt=qt($t),Kt=Ht($t),Gt=(t,e,n)=>-n*t+n*e+t;function Yt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const Xt=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},Zt=[mt,ft,vt];function Jt(t){const e=(n=t,Zt.find(t=>t.test(n)));var n;let r=e.parse(t);return e===vt&&(r=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let s=0,o=0,i=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;s=Yt(a,r,t+1/3),o=Yt(a,r,t),i=Yt(a,r,t-1/3)}else s=o=i=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*i),alpha:r}}(r)),r}const _t=(t,e)=>{const n=Jt(t),r=Jt(e),s={...n};return t=>(s.red=Xt(n.red,r.red,t),s.green=Xt(n.green,r.green,t),s.blue=Xt(n.blue,r.blue,t),s.alpha=Gt(n.alpha,r.alpha,t),ft.transform(s))},Qt=(t,e)=>n=>e(t(n)),te=(...t)=>t.reduce(Qt);function ee(t,e){return"number"==typeof t?n=>Gt(t,e,n):gt.test(t)?_t(t,e):se(t,e)}const ne=(t,e)=>{const n=[...t],r=n.length,s=t.map((t,n)=>ee(t,e[n]));return t=>{for(let e=0;e<r;e++)n[e]=s[e](t);return n}},re=(t,e)=>{const n={...t,...e},r={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(r[s]=ee(t[s],e[s]));return t=>{for(const e in r)n[e]=r[e](t);return n}},se=(t,e)=>{const n=At.createTransformer(e),r=yt(t),s=yt(e);return r.numColors===s.numColors&&r.numNumbers>=s.numNumbers?te(ne(r.values,s.values),n):n=>""+(n>0?e:t)},oe=(t,e)=>n=>Gt(t,e,n);function ie(t,e,n){const r=[],s=n||("number"==typeof(o=t[0])?oe:"string"==typeof o?gt.test(o)?_t:se:Array.isArray(o)?ne:"object"==typeof o?re:oe);var o;const i=t.length-1;for(let n=0;n<i;n++){let o=s(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;o=te(t,o)}r.push(o)}return r}function ae(t,e,{clamp:n=!0,ease:r,mixer:s}={}){const o=t.length;e.length,!r||!Array.isArray(r)||r.length,t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const i=ie(e,r,s),a=i.length,l=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=((t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r})(t[n],t[n+1],e);return i[n](r)};return n?e=>l(f(t[0],t[o-1],e)):l}const le=t=>t,ue=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function ce(t,e,n,r){if(t===e&&n===r)return le;const s=e=>function(t,e,n,r,s){let o,i,a=0;do{i=e+(n-e)/2,o=ue(i,r,s)-t,o>0?n=i:e=i}while(Math.abs(o)>1e-7&&++a<12);return i}(e,0,1,t,n);return t=>0===t||1===t?t:ue(s(t),e,r)}const pe=t=>1-Math.sin(Math.acos(t)),he=qt(pe),de=Ht(he),fe=ce(.33,1.53,.69,.99),me=qt(fe),ve=Ht(me),ge={linear:le,easeIn:$t,easeInOut:Kt,easeOut:Wt,circIn:pe,circInOut:de,circOut:he,backIn:me,backInOut:ve,backOut:fe,anticipate:t=>(t*=2)<1?.5*me(t):.5*(2-Math.pow(2,-10*(t-1)))},ye=t=>{if(Array.isArray(t)){t.length;const[e,n,r,s]=t;return ce(e,n,r,s)}return"string"==typeof t?ge[t]:t};function be({keyframes:t,ease:e=Kt,times:n,duration:r=300}){t=[...t];const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(e)?e.map(ye):ye(e),o={done:!1,value:t[0]},i=function(t,e){return t.map(t=>t*e)}(n&&n.length===t.length?n:function(t){const e=t.length;return t.map((t,n)=>0!==n?n/(e-1):0)}(t),r);function a(){return ae(i,t,{ease:Array.isArray(s)?s:(e=t,n=s,e.map(()=>n||Kt).splice(0,e.length-1))});var e,n}let l=a();return{next:t=>(o.value=l(t),o.done=t>=r,o),flipTarget:()=>{t.reverse(),l=a()}}}function Ve({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let s,o,i=1-e;i=f(.05,1,i),t=f(.01,10,t/1e3),i<1?(s=e=>{const r=e*i,s=r*t;return.001-(r-n)/we(e,i)*Math.exp(-s)},o=e=>{const r=e*i*t,o=r*n+n,a=Math.pow(i,2)*Math.pow(e,2)*t,l=Math.exp(-r),u=we(Math.pow(e,2),i);return(.001-s(e)>0?-1:1)*((o-a)*l)/u}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(s,o,5/t);if(t*=1e3,isNaN(a))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(a,2)*r;return{stiffness:e,damping:2*i*Math.sqrt(r*e),duration:t}}}function we(t,e){return t*Math.sqrt(1-e*e)}const Ae=["duration","bounce"],Ce=["stiffness","damping","mass"];function Me(t,e){return e.some(e=>void 0!==t[e])}function Se({keyframes:t,restDelta:e,restSpeed:n,...r}){let s=t[0],o=t[t.length-1];const i={done:!1,value:s},{stiffness:a,damping:l,mass:u,velocity:c,duration:p,isResolvedFromDuration:h}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Me(t,Ce)&&Me(t,Ae)){const n=Ve(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(r);let d=Te,f=c?-c/1e3:0;const m=l/(2*Math.sqrt(a*u));function v(){const t=o-s,r=Math.sqrt(a/u)/1e3,i=Math.abs(t)<5;if(n||(n=i?.01:2),e||(e=i?.005:.5),m<1){const e=we(r,m);d=n=>{const s=Math.exp(-m*r*n);return o-s*((f+m*r*t)/e*Math.sin(e*n)+t*Math.cos(e*n))}}else if(1===m)d=e=>o-Math.exp(-r*e)*(t+(f+r*t)*e);else{const e=r*Math.sqrt(m*m-1);d=n=>{const s=Math.exp(-m*r*n),i=Math.min(e*n,300);return o-s*((f+m*r*t)*Math.sinh(i)+e*t*Math.cosh(i))/e}}}return v(),{next:t=>{const r=d(t);if(h)i.done=t>=p;else{let s=f;if(0!==t)if(m<1){const e=Math.max(0,t-5);s=lt(r-d(e),t-e)}else s=0;const a=Math.abs(s)<=n,l=Math.abs(o-r)<=e;i.done=a&&l}return i.value=i.done?o:r,i},flipTarget:()=>{f=-f,[s,o]=[o,s],v()}}}Se.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const Te=t=>0;const xe={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:r=350,restDelta:s=.5,modifyTarget:o}){const i=t[0],a={done:!1,value:i};let l=n*e;const u=i+l,c=void 0===o?u:o(u);return c!==u&&(l=c-i),{next:t=>{const e=-l*Math.exp(-t/r);return a.done=!(e>s||e<-s),a.value=a.done?c:c+e,a},flipTarget:()=>{}}},keyframes:be,tween:be,spring:Se};function Ee(t,e,n=0){return t-e-n}const Pe=t=>{const e=({delta:e})=>t(e);return{start:()=>nt.update(e,!0),stop:()=>rt.update(e)}};function ke({duration:t,driver:e=Pe,elapsed:n=0,repeat:r=0,repeatType:s="loop",repeatDelay:o=0,keyframes:i,autoplay:a=!0,onPlay:l,onStop:u,onComplete:c,onRepeat:p,onUpdate:h,type:d="keyframes",...f}){var m,v;const g=n;let y,b,V=0,w=t,A=!1,C=!0;const M=xe[i.length>2?"keyframes":d]||be,S=i[0],T=i[i.length-1];let x={done:!1,value:S};(null===(v=(m=M).needsInterpolation)||void 0===v?void 0:v.call(m,S,T))&&(b=ae([0,100],[S,T],{clamp:!1}),i=[0,100]);const E=M({...f,duration:t,keyframes:i});function P(){V++,"reverse"===s?(C=V%2==0,n=function(t,e=0,n=0,r=!0){return r?Ee(e+-t,e,n):e-(t-e)+n}(n,w,o,C)):(n=Ee(n,w,o),"mirror"===s&&E.flipTarget()),A=!1,p&&p()}function k(t){C||(t=-t),n+=t,A||(x=E.next(Math.max(0,n)),b&&(x.value=b(x.value)),A=C?x.done:n<=0),h&&h(x.value),A&&(0===V&&(w=void 0!==w?w:n),V<r?function(t,e,n,r){return r?t>=e+n:t<=-n}(n,w,o,C)&&P():(y&&y.stop(),c&&c()))}return a&&(l&&l(),y=e(k),y.start()),{stop:()=>{u&&u(),y&&y.stop()},set currentTime(t){n=g,k(t)},sample:e=>{n=g;const r=t&&"number"==typeof t?Math.max(.5*t,50):50;let s=0;for(k(0);s<=e;){const t=e-s;k(Math.min(t,r)),s+=r}return x}}}const Fe=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,Ie={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Fe([0,.65,.55,1]),circOut:Fe([.55,0,1,.45]),backIn:Fe([.31,.01,.66,-.59]),backOut:Fe([.33,1.53,.69,.99])};function Oe(t){if(t)return Array.isArray(t)?Fe(t):Ie[t]}const Be={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},De={},Ne={};for(const t in Be)Ne[t]=()=>(void 0===De[t]&&(De[t]=Be[t]()),De[t]);const Re=new Set(["opacity"]);function je(t,e,{onUpdate:n,onComplete:r,...s}){if(!(Ne.waapi()&&Re.has(e)&&!s.repeatDelay&&"mirror"!==s.repeatType&&0!==s.damping))return!1;let{keyframes:o,duration:i=300,elapsed:a=0,ease:l}=s;if("spring"===s.type||!(!(u=s.ease)||Array.isArray(u)||"string"==typeof u&&Ie[u])){if(s.repeat===1/0)return;const t=ke({...s,elapsed:0});let e={done:!1,value:o[0]};const n=[];let r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;o=n,i=r-10,l="linear"}var u;const c=function(t,e,n,{delay:r=0,duration:s,repeat:o=0,repeatType:i="loop",ease:a,times:l}={}){return t.animate({[e]:n,offset:l},{delay:r,duration:s,easing:Oe(a),fill:"both",iterations:o+1,direction:"reverse"===i?"alternate":"normal"})}(t.owner.current,e,o,{...s,delay:-a,duration:i,ease:l});return c.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(o,s)),nt.update(()=>c.cancel()),r&&r()},{get currentTime(){return c.currentTime||0},set currentTime(t){c.currentTime=t},stop:()=>{const{currentTime:e}=c;if(e){const n=ke({...s,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}nt.update(()=>c.cancel())}}}function Ue(t,e){const n=performance.now(),r=({timestamp:s})=>{const o=s-n;o>=e&&(rt.read(r),t(o-e))};return nt.read(r,!0),()=>rt.read(r)}function Le({keyframes:t,elapsed:e,onUpdate:n,onComplete:r}){const s=()=>{n&&n(t[t.length-1]),r&&r()};return e?{stop:Ue(s,-e)}:s()}const ze=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),He=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),qe=()=>({type:"keyframes",ease:"linear",duration:.3}),$e={type:"keyframes",duration:.8},We={x:ze,y:ze,z:ze,rotate:ze,rotateX:ze,rotateY:ze,rotateZ:ze,scaleX:He,scaleY:He,scale:He,opacity:qe,backgroundColor:qe,color:qe,default:He},Ke=(t,{keyframes:e})=>{if(e.length>2)return $e;return(We[t]||We.default)(e[1])},Ge=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!At.test(e)||e.startsWith("url(")));function Ye(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function Xe(t){return"number"==typeof t?0:Pt("",t)}const Ze=(t,e,n,r={})=>s=>{const o=function(t,e){return t[e]||t.default||t}(r,t)||{},i=o.delay||r.delay||0;let{elapsed:a=0}=r;a-=Lt(i);const l=function(t,e,n,r){const s=Ge(e,n);let o=void 0!==r.from?r.from:t.get();return"none"===o&&s&&"string"==typeof n?o=Pt(e,n):Ye(o)&&"string"==typeof n?o=Xe(n):!Array.isArray(n)&&Ye(n)&&"string"==typeof o&&(n=Xe(o)),Array.isArray(n)?(null===n[0]&&(n[0]=o),n):[o,n]}(e,t,n,o),u=l[0],c=l[l.length-1],p=Ge(t,u),h=Ge(t,c);let d={keyframes:l,velocity:e.getVelocity(),...o,elapsed:a,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{s(),o.onComplete&&o.onComplete()}};if(!p||!h||zt||!1===o.type)return Le(d);if("inertia"===o.type)return function({keyframes:t,velocity:e=0,min:n,max:r,power:s=.8,timeConstant:o=750,bounceStiffness:i=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:p,onComplete:h,onStop:d}){const f=t[0];let m;function v(t){return void 0!==n&&t<n||void 0!==r&&t>r}function g(t){return void 0===n?r:void 0===r||Math.abs(n-t)<Math.abs(r-t)?n:r}function y(t){null==m||m.stop(),m=ke({keyframes:[0,1],velocity:0,...t,driver:c,onUpdate:e=>{var n;null==p||p(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:h,onStop:d})}function b(t){y({type:"spring",stiffness:i,damping:a,restDelta:l,...t})}if(v(f))b({velocity:e,keyframes:[f,g(f)]});else{let t=s*e+f;void 0!==u&&(t=u(t));const r=g(t),i=r===n?-1:1;let a,c;const p=t=>{a=c,c=t,e=lt(t-a,Y.delta),(1===i&&t>r||-1===i&&t<r)&&b({keyframes:[t,r],velocity:e})};y({type:"decay",keyframes:[f,0],velocity:e,timeConstant:o,power:s,restDelta:l,modifyTarget:u,onUpdate:v(t)?p:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(d);(function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:i,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(o)||(d={...d,...Ke(t,d)}),d.duration&&(d.duration=Lt(d.duration)),d.repeatDelay&&(d.repeatDelay=Lt(d.repeatDelay));const f=e.owner,m=f&&f.current;if(f&&m instanceof HTMLElement&&!(null==f?void 0:f.getProps().onUpdate)){const n=je(e,t,d);if(n)return n}return ke(d)};function Je(t,e,n={}){var r;const s=Dt(t,e,n.custom);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const i=s?()=>_e(t,s,n):()=>Promise.resolve(),a=(null===(r=t.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{const{delayChildren:s=0,staggerChildren:i,staggerDirection:a}=o;return function(t,e,n=0,r=0,s=1,o){const i=[],a=(t.variantChildren.size-1)*r,l=1===s?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(Qe).forEach((t,r)=>{t.notify("AnimationStart",e),i.push(Je(t,e,{...o,delay:n+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(i)}(t,e,s+r,i,a,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[i,a]:[a,i];return t().then(e)}return Promise.all([i(),a(n.delay)])}function _e(t,e,{delay:n=0,transitionOverride:r,type:s}={}){var o;let{transition:i=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const u=t.getValue("willChange");r&&(i=r);const c=[],p=s&&(null===(o=t.animationState)||void 0===o?void 0:o.getState()[s]);for(const e in l){const r=t.getValue(e),s=l[e];if(!r||void 0===s||p&&tn(p,e))continue;const o={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=t.getProps()[Ut];n&&(o.elapsed=window.HandoffAppearAnimations(n,e,r,nt))}let a=r.start(Ze(e,r,s,t.shouldReduceMotion&&T.has(e)?{type:!1}:o));jt(u)&&(u.add(e),a=a.then(()=>u.remove(e))),c.push(a)}return Promise.all(c).then(()=>{a&&function(t,e){const n=Dt(t,e);let{transitionEnd:r={},transition:s={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const e in o){Nt(t,e,C(o[e]))}}(t,a)})}function Qe(t,e){return t.sortNodePosition(e)}function tn({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}var en;!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(en||(en={}));const nn=[en.Animate,en.InView,en.Focus,en.Hover,en.Tap,en.Drag,en.Exit],rn=[...nn].reverse(),sn=nn.length;function on(t){return e=>Promise.all(e.map(({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map(e=>Je(t,e,n));r=Promise.all(s)}else if("string"==typeof e)r=Je(t,e,n);else{const s="function"==typeof e?Dt(t,e,n.custom):e;r=_e(t,s,n)}return r.then(()=>t.notify("AnimationComplete",e))}(t,e,n)))}function an(t){let e=on(t);const n={[en.Animate]:un(!0),[en.InView]:un(),[en.Hover]:un(),[en.Tap]:un(),[en.Drag]:un(),[en.Focus]:un(),[en.Exit]:un()};let r=!0;const s=(e,n)=>{const r=Dt(t,n);if(r){const{transition:t,transitionEnd:n,...s}=r;e={...e,...s,...n}}return e};function o(o,i){const a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],c=new Set;let p={},h=1/0;for(let e=0;e<sn;e++){const d=rn[e],f=n[d],m=void 0!==a[d]?a[d]:l[d],v=P(m),g=d===i?f.isActive:null;!1===g&&(h=e);let y=m===l[d]&&m!==a[d]&&v;if(y&&r&&t.manuallyAnimateOnMount&&(y=!1),f.protectedKeys={...p},!f.isActive&&null===g||!m&&!f.prevProp||x(m)||"boolean"==typeof m)continue;const b=ln(f.prevProp,m);let V=b||d===i&&f.isActive&&!y&&v||e>h&&v;const w=Array.isArray(m)?m:[m];let A=w.reduce(s,{});!1===g&&(A={});const{prevResolvedValues:C={}}=f,M={...C,...A},S=t=>{V=!0,c.delete(t),f.needsAnimating[t]=!0};for(const t in M){const e=A[t],n=C[t];p.hasOwnProperty(t)||(e!==n?E(e)&&E(n)?!K(e,n)||b?S(t):f.protectedKeys[t]=!0:void 0!==e?S(t):c.add(t):void 0!==e&&c.has(t)?S(t):f.protectedKeys[t]=!0)}f.prevProp=m,f.prevResolvedValues=A,f.isActive&&(p={...p,...A}),r&&t.blockInitialAnimation&&(V=!1),V&&!y&&u.push(...w.map(t=>({animation:t,options:{type:d,...o}})))}if(c.size){const e={};c.forEach(n=>{const r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)}),u.push({animation:e})}let d=Boolean(u.length);return r&&!1===a.initial&&!t.manuallyAnimateOnMount&&(d=!1),r=!1,d?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,r,s){var i;if(n[e].isActive===r)return Promise.resolve();null===(i=t.variantChildren)||void 0===i||i.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)}),n[e].isActive=r;const a=o(s,e);for(const t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function ln(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!K(e,t)}function un(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}const cn=t=>e=>(t(e),null),pn={animation:cn(({visualElement:t,animate:e})=>{t.animationState||(t.animationState=an(t)),x(e)&&n(()=>e.subscribe(t),[e])}),exit:cn(r=>{const{custom:s,visualElement:o}=r,[i,l]=function(){const r=t(a);if(null===r)return[!0,null];const{isPresent:s,onExitComplete:o,register:i}=r,l=e();return n(()=>i(l),[]),!s&&o?[!1,()=>o&&o(l)]:[!0]}(),u=t(a);n(()=>{o.isPresent=i;const t=o.animationState&&o.animationState.setActive(en.Exit,!i,{custom:u&&u.custom||s});t&&!i&&t.then(l)},[i])})};function hn(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function dn(t,e,r,s){n(()=>{const n=t.current;if(r&&n)return hn(n,e,r,s)},[t,e,r,s])}function fn(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const mn=t=>e=>(t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary)(e)&&t(e,fn(e));function vn(t,e,n,r){return hn(t,e,mn(n),r)}function gn(t,e,n,r){return dn(t,e,n&&mn(n),r)}function yn(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const bn=yn("dragHorizontal"),Vn=yn("dragVertical");function wn(){const t=function(t){let e=!1;if("y"===t)e=Vn();else if("x"===t)e=bn();else{const t=bn(),n=Vn();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}(!0);return!t||(t(),!1)}function An(t,e,n,r){return(s,o)=>{"touch"===s.type||wn()||(n&&t.animationState&&t.animationState.setActive(en.Hover,e),r&&r(s,o))}}const Cn=(t,e)=>!!e&&(t===e||Cn(t,e.parentElement));function Mn(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,fn(n))}const Sn=new WeakMap,Tn=new WeakMap,xn=t=>{const e=Sn.get(t.target);e&&e(t)},En=t=>{t.forEach(xn)};function Pn(t,e,n){const r=function({root:t,...e}){const n=t||document;Tn.has(n)||Tn.set(n,{});const r=Tn.get(n),s=JSON.stringify(e);return r[s]||(r[s]=new IntersectionObserver(En,{root:t,...e})),r[s]}(e);return Sn.set(t,n),r.observe(t),()=>{Sn.delete(t),r.unobserve(t)}}const kn={some:0,all:1};function Fn(t,e,r,{root:s,margin:o,amount:i="some",once:a}){n(()=>{if(!t||!r.current)return;const n={root:null==s?void 0:s.current,rootMargin:o,threshold:"number"==typeof i?i:kn[i]};return Pn(r.current,n,t=>{const{isIntersecting:n}=t;if(e.isInView===n)return;if(e.isInView=n,a&&!n&&e.hasEnteredView)return;n&&(e.hasEnteredView=!0),r.animationState&&r.animationState.setActive(en.InView,n);const s=r.getProps(),o=n?s.onViewportEnter:s.onViewportLeave;o&&o(t)})},[t,s,o,i])}function In(t,e,r,{fallback:s=!0}){n(()=>{t&&s&&requestAnimationFrame(()=>{e.hasEnteredView=!0;const{onViewportEnter:t}=r.getProps();t&&t(null),r.animationState&&r.animationState.setActive(en.InView,!0)})},[t])}const On={inView:cn((function({visualElement:t,whileInView:e,onViewportEnter:n,onViewportLeave:s,viewport:o={}}){const i=r({hasEnteredView:!1,isInView:!1});let a=Boolean(e||n||s);o.once&&i.current.hasEnteredView&&(a=!1),("undefined"==typeof IntersectionObserver?In:Fn)(a,i.current,t,o)})),tap:cn((function({onTap:t,onTapStart:e,onTapCancel:o,whileTap:i,visualElement:a,...l}){const u=t||e||o||i,c=r(!1),p=r(null),h={passive:!(e||t||o||l.onPointerDown)};function d(){p.current&&p.current(),p.current=null}function f(){d(),c.current=!1;return a.getProps().whileTap&&a.animationState&&a.animationState.setActive(en.Tap,!1),!wn()}function m(t,e){var n,r,s,o;f()&&(Cn(a.current,t.target)?null===(o=(s=a.getProps()).onTap)||void 0===o||o.call(s,t,e):null===(r=(n=a.getProps()).onTapCancel)||void 0===r||r.call(n,t,e))}function v(t,e){var n,r;f()&&(null===(r=(n=a.getProps()).onTapCancel)||void 0===r||r.call(n,t,e))}function g(t,e){var n;const r=a.getProps();r.whileTap&&a.animationState&&a.animationState.setActive(en.Tap,!0),null===(n=r.onTapStart)||void 0===n||n.call(r,t,e)}const y=[Boolean(e),Boolean(t),Boolean(i),a],b=s((t,e)=>{d(),c.current||(c.current=!0,p.current=te(vn(window,"pointerup",m,h),vn(window,"pointercancel",v,h)),g(t,e))},y);gn(a,"pointerdown",u?b:void 0,h);const V=s(()=>{const t=hn(a.current,"keydown",t=>{"Enter"!==t.key||c.current||(c.current=!0,p.current=hn(a.current,"keyup",()=>{"Enter"===t.key&&f()&&Mn("up",a.getProps().onTap)},h),Mn("down",g))}),e=hn(a.current,"blur",()=>{t(),e(),c.current&&Mn("cancel",v)})},y);var w;dn(a,"focus",u?V:void 0),w=d,n(()=>()=>w(),[])})),focus:cn((function({whileFocus:t,visualElement:e}){const n=r(!1),{animationState:o}=e,i=s(()=>{let t=!1;try{t=e.current.matches(":focus-visible")}catch(e){t=!0}t&&o&&(o.setActive(en.Focus,!0),n.current=!0)},[o]),a=s(()=>{n.current&&o&&(o.setActive(en.Focus,!1),n.current=!1)},[o]);dn(e,"focus",t?i:void 0),dn(e,"blur",t?a:void 0)})),hover:cn((function({onHoverStart:t,onHoverEnd:e,whileHover:n,visualElement:r}){gn(r,"pointerenter",o(()=>t||n?An(r,!0,Boolean(n),t):void 0,[t,Boolean(n),r]),{passive:!t}),gn(r,"pointerleave",o(()=>e||n?An(r,!1,Boolean(n),e):void 0,[t,Boolean(n),r]),{passive:!e})}))};function Bn(t){return"string"==typeof t&&t.startsWith("var(--")}const Dn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Nn(t,e,n=1){const[r,s]=function(t){const e=Dn.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);return o?o.trim():Bn(s)?Nn(s,e,n+1):s}const Rn=new Set(["width","height","top","left","right","bottom","x","y"]),jn=t=>Rn.has(t),Un=t=>t===d||t===y;var Ln;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Ln||(Ln={}));const zn=(t,e)=>parseFloat(t.split(", ")[e]),Hn=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/);if(s)return zn(s[1],e);{const e=r.match(/^matrix\((.+)\)$/);return e?zn(e[1],t):0}},qn=new Set(["x","y","z"]),$n=k.filter(t=>!qn.has(t));const Wn={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Hn(4,13),y:Hn(5,14)},Kn=(t,e,n={},r={})=>{e={...e},r={...r};const s=Object.keys(e).filter(jn);let o=[],i=!1;const a=[];if(s.forEach(s=>{const l=t.getValue(s);if(!t.hasValue(s))return;let u=n[s],c=It(u);const p=e[s];let h;if(E(p)){const t=p.length,e=null===p[0]?1:0;u=p[e],c=It(u);for(let n=e;n<t;n++)h?It(p[n]):h=It(p[n])}else h=It(p);if(c!==h)if(Un(c)&&Un(h)){const t=l.get();"string"==typeof t&&l.set(parseFloat(t)),"string"==typeof p?e[s]=parseFloat(p):Array.isArray(p)&&h===y&&(e[s]=p.map(parseFloat))}else(null==c?void 0:c.transform)&&(null==h?void 0:h.transform)&&(0===u||0===p)?0===u?l.set(h.transform(u)):e[s]=c.transform(p):(i||(o=function(t){const e=[];return $n.forEach(n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),i=!0),a.push(s),r[s]=void 0!==r[s]?r[s]:e[s],l.jump(p))}),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,s=((t,e,n)=>{const r=e.measureViewportBox(),s=e.current,o=getComputedStyle(s),{display:i}=o,a={};"none"===i&&e.setStaticValue("display",t.display||"block"),n.forEach(t=>{a[t]=Wn[t](r,o)}),e.render();const l=e.measureViewportBox();return n.forEach(n=>{const r=e.getValue(n);r&&r.jump(a[n]),t[n]=Wn[n](l,o)}),t})(e,t,a);return o.length&&o.forEach(([e,n])=>{t.getValue(e).set(n)}),t.render(),F&&null!==n&&window.scrollTo({top:n}),{target:s,transitionEnd:r}}return{target:e,transitionEnd:r}};function Gn(t,e,n,r){return(t=>Object.keys(t).some(jn))(e)?Kn(t,e,n,r):{target:e,transitionEnd:r}}const Yn=(t,e,n,r)=>{const s=function(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(t=>{const e=t.get();if(!Bn(e))return;const n=Nn(e,r);n&&t.set(n)});for(const t in e){const s=e[t];if(!Bn(s))continue;const o=Nn(s,r);o&&(e[t]=o,n&&void 0===n[t]&&(n[t]=s))}return{target:e,transitionEnd:n}}(t,e,r);return Gn(t,e=s.target,n,r=s.transitionEnd)},Xn={current:null},Zn={current:!1};const Jn=Object.keys(I),_n=Jn.length,Qn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const tr=["initial",...nn],er=tr.length;class nr extends class{constructor({parent:t,props:e,reducedMotionConfig:n,visualState:r},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},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.scheduleRender=()=>nt.render(this.render,!1,!0);const{latestValues:o,renderState:i}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=i,this.parent=t,this.props=e,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.isControllingVariants=O(e),this.isVariantNode=B(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:a,...l}=this.scrapeMotionValuesFromProps(e,{});for(const t in l){const e=l[t];void 0!==o[t]&&M(e)&&(e.set(o[t],!1),jt(a)&&a.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){var e;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(e=this.parent)||void 0===e?void 0:e.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),Zn.current||function(){if(Zn.current=!0,F)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Xn.current=t.matches;t.addListener(e),e()}else Xn.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Xn.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,e,n;null===(t=this.projection)||void 0===t||t.unmount(),rt.update(this.notifyUpdate),rt.render(this.render),this.valueSubscriptions.forEach(t=>t()),null===(e=this.removeFromVariantTree)||void 0===e||e.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this);for(const t in this.events)this.events[t].clear();this.current=null}bindToMotionValue(t,e){const n=T.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&nt.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),s()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,r,s,o,a){const l=[];for(let t=0;t<_n;t++){const n=Jn[t],{isEnabled:r,Component:s}=I[n];r(e)&&s&&l.push(i(s,{key:n,...e,visualElement:this}))}if(!this.projection&&o){this.projection=new o(s,this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:r,dragConstraints:i,layoutScroll:l,layoutRoot:u}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(r)||i&&D(i),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:a,layoutScroll:l,layoutRoot:u})}return l}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender();const e=this.props;this.props=t;for(let e=0;e<Qn.length;e++){const n=Qn[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){const{willChange:r}=e;for(const s in e){const o=e[s],i=n[s];if(M(o))t.addValue(s,o),jt(r)&&r.add(s);else if(M(i))t.addValue(s,ct(o,{owner:t})),jt(r)&&r.remove(s);else if(i!==o)if(t.hasValue(s)){const e=t.getValue(s);!e.hasAnimated&&e.set(o)}else{const e=t.getStaticValue(s);t.addValue(s,ct(void 0!==e?e:o,{owner:t}))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,e),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){var e;return null===(e=this.props.variants)||void 0===e?void 0:e[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:null===(t=this.parent)||void 0===t?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var e,n;if(t)return null===(e=this.parent)||void 0===e?void 0:e.getVariantContext();if(!this.isControllingVariants){const t=(null===(n=this.parent)||void 0===n?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const r={};for(let t=0;t<er;t++){const e=tr[t],n=this.props[e];(P(n)||!1===n)&&(r[e]=n)}return r}addVariantChild(t){var e;const n=this.getClosestVariantNode();if(n)return null===(e=n.variantChildren)||void 0===e||e.add(t),()=>n.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){var e;this.values.delete(t),null===(e=this.valueSubscriptions.get(t))||void 0===e||e(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=ct(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(e=A(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||M(s)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new at),this.events[t].add(e)}notify(t,...e){var n;null===(n=this.events[t])||void 0===n||n.notify(...e)}}{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){var n;return null===(n=t.style)||void 0===n?void 0:n[e]}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:r},s){let o=function(t,e,n){var r;const s={};for(const o in t){const t=Rt(o,e);s[o]=void 0!==t?t:null===(r=n.getValue(o))||void 0===r?void 0:r.get()}return s}(n,t||{},this);if(r&&(e&&(e=r(e)),n&&(n=r(n)),o&&(o=r(o))),s){!function(t,e,n){var r,s;const o=Object.keys(e).filter(e=>!t.hasValue(e)),i=o.length;if(i)for(let a=0;a<i;a++){const i=o[a],l=e[i];let u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(s=null!==(r=n[i])&&void 0!==r?r:t.readValue(i))&&void 0!==s?s:e[i]),null!=u&&("string"==typeof u&&(/^\-?\d*\.?\d+$/.test(u)||G(u))?u=parseFloat(u):!Bt(u)&&At.test(l)&&(u=Pt(i,l)),t.addValue(i,ct(u,{owner:t})),void 0===n[i]&&(n[i]=u),null!==u&&t.setBaseTarget(i,u))}}(this,n,o);const t=Yn(this,n,o,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class rr extends nr{readValueFromInstance(t,e){if(T.has(e)){const t=Et(e);return t&&t.default||0}{const r=(n=t,window.getComputedStyle(n)),s=(N(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return function(t,e){return function({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}(t,e)}build(t,e,n,r){R(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return j(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;M(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=""+t)}))}renderInstance(t,e,n,r){U(t,e,n,r)}}class sr extends nr{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){var n;return T.has(e)?(null===(n=Et(e))||void 0===n?void 0:n.default)||0:(e=L.has(e)?e:S(e),t.getAttribute(e))}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(t,e){return z(t,e)}build(t,e,n,r){H(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){q(t,e,n,r)}mount(t){this.isSVGTag=$(t.tagName),super.mount(t)}}const or={renderer:(t,e)=>W(t)?new sr(e,{enableHardwareAcceleration:!1}):new rr(e,{enableHardwareAcceleration:!0}),...pn,...On};export{or as domAnimation};
1
+ import{q as t,t as e,u as n,v as s,w as r,x as i,y as o,z as a,A as u,B as c,C as l,D as h,E as p,F as d,r as f,G as m,d as g,H as v,I as y,n as b,J as V,c as w,K as A,i as C,f as P,b as x,m as S,a as M,L as T,g as E,p as F,M as k,N as I,s as O,h as N,o as D,j as L,k as R}from"./size-rollup-dom-animation-assets.js";function j(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const B=t=>/^0[^.\s]+$/.test(t),U={delta:0,timestamp:0},z="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),H="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(z()),1/60*1e3);let q=!0,$=!1,W=!1;const K=["read","update","preRender","render","postRender"],G=K.reduce((t,e)=>(t[e]=function(t){let e=[],n=[],s=0,r=!1,i=!1;const o=new WeakSet,a={schedule:(t,i=!1,a=!1)=>{const u=a&&r,c=u?e:n;return i&&o.add(t),-1===c.indexOf(t)&&(c.push(t),u&&r&&(s=e.length)),t},cancel:t=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1),o.delete(t)},process:u=>{if(r)i=!0;else{if(r=!0,[e,n]=[n,e],n.length=0,s=e.length,s)for(let n=0;n<s;n++){const s=e[n];s(u),o.has(s)&&(a.schedule(s),t())}r=!1,i&&(i=!1,a.process(u))}}};return a}(()=>$=!0),t),{}),Y=K.reduce((t,e)=>{const n=G[e];return t[e]=(t,e=!1,s=!1)=>($||_(),n.schedule(t,e,s)),t},{}),X=K.reduce((t,e)=>(t[e]=G[e].cancel,t),{});K.reduce((t,e)=>(t[e]=()=>G[e].process(U),t),{});const Z=t=>G[t].process(U),J=t=>{$=!1,U.delta=q?1/60*1e3:Math.max(Math.min(t-U.timestamp,40),1),U.timestamp=t,W=!0,K.forEach(Z),W=!1,$&&(q=!1,H(J))},_=()=>{$=!0,q=!0,W||H(J)};class Q{constructor(){this.subscriptions=[]}add(t){var e,n;return e=this.subscriptions,n=t,-1===e.indexOf(n)&&e.push(n),()=>function(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}(this.subscriptions,t)}notify(t,e,n){const s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,n);else for(let r=0;r<s;r++){const s=this.subscriptions[r];s&&s(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tt(t,e){return e?t*(1e3/e):0}class et{constructor(t,e={}){var n;this.version="9.0.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;const{delta:n,timestamp:s}=U;this.lastUpdated!==s&&(this.timeDelta=n,this.lastUpdated=s,Y.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Y.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Q);const n=this.events[t].add(e);return"change"===t?()=>{n(),Y.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?tt(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e)||null,this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nt(t,e){return new et(t,e)}const st=(n,s)=>r=>Boolean(t(r)&&e.test(r)&&r.startsWith(n)||s&&Object.prototype.hasOwnProperty.call(r,s)),rt=(e,s,r)=>i=>{if(!t(i))return i;const[o,a,u,c]=i.match(n);return{[e]:parseFloat(o),[s]:parseFloat(a),[r]:parseFloat(u),alpha:void 0!==c?parseFloat(c):1}},it={...i,transform:t=>Math.round((t=>o(0,255,t))(t))},ot={test:st("rgb","red"),parse:rt("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+it.transform(t)+", "+it.transform(e)+", "+it.transform(n)+", "+s(r.transform(i))+")"};const at={test:st("#"),parse:function(t){let e="",n="",s="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,s+=s,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}},transform:ot.transform},ut={test:st("hsl","hue"),parse:rt("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+a.transform(s(e))+", "+a.transform(s(n))+", "+s(r.transform(i))+")"},ct={test:t=>ot.test(t)||at.test(t)||ut.test(t),parse:t=>ot.test(t)?ot.parse(t):ut.test(t)?ut.parse(t):at.parse(t),transform:e=>t(e)?e:e.hasOwnProperty("red")?ot.transform(e):ut.transform(e)};function lt(t){"number"==typeof t&&(t=""+t);const e=[];let s=0,r=0;const o=t.match(u);o&&(s=o.length,t=t.replace(u,"${c}"),e.push(...o.map(ct.parse)));const a=t.match(n);return a&&(r=a.length,t=t.replace(n,"${n}"),e.push(...a.map(i.parse))),{values:e,numColors:s,numNumbers:r,tokenised:t}}function ht(t){return lt(t).values}function pt(t){const{values:e,numColors:n,tokenised:r}=lt(t),i=e.length;return t=>{let e=r;for(let r=0;r<i;r++)e=e.replace(r<n?"${c}":"${n}",r<n?ct.transform(t[r]):s(t[r]));return e}}const dt=t=>"number"==typeof t?0:t;const ft={test:function(e){var s,r;return isNaN(e)&&t(e)&&((null===(s=e.match(n))||void 0===s?void 0:s.length)||0)+((null===(r=e.match(u))||void 0===r?void 0:r.length)||0)>0},parse:ht,createTransformer:pt,getAnimatableNone:function(t){const e=ht(t);return pt(t)(e.map(dt))}},mt=new Set(["brightness","contrast","saturate","opacity"]);function gt(t){const[e,s]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=s.match(n)||[];if(!r)return t;const i=s.replace(r,"");let o=mt.has(e)?1:0;return r!==s&&(o*=100),e+"("+o+i+")"}const vt=/([a-z-]*)\(.*?\)/g,yt={...ft,getAnimatableNone:t=>{const e=t.match(vt);return e?e.map(gt).join(" "):t}},bt={...c,color:ct,backgroundColor:ct,outlineColor:ct,fill:ct,stroke:ct,borderColor:ct,borderTopColor:ct,borderRightColor:ct,borderBottomColor:ct,borderLeftColor:ct,filter:yt,WebkitFilter:yt},Vt=t=>bt[t];function wt(t,e){let n=Vt(t);return n!==yt&&(n=ft),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const At=t=>e=>e.test(t),Ct=[i,l,a,h,p,d,{test:t=>"auto"===t,parse:t=>t}],Pt=t=>Ct.find(At(t)),xt=[...Ct,ct,ft],St=t=>xt.find(At(t));function Mt(t,e,n){const s=t.getProps();return f(s,e,void 0!==n?n:s.custom,function(t){const e={};return t.values.forEach((t,n)=>e[n]=t.get()),e}(t),function(t){const e={};return t.values.forEach((t,n)=>e[n]=t.getVelocity()),e}(t))}function Tt(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,nt(n))}function Et(t,e){if(!e)return;return(e[t]||e.default||e).from}function Ft(t){return Boolean(g(t)&&t.add)}const kt="data-"+v("framerAppearId");const It=t=>1e3*t,Ot=!1,Nt=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Dt=t=>e=>1-t(1-e),Lt=t=>t*t,Rt=Dt(Lt),jt=Nt(Lt),Bt=(t,e,n)=>-n*t+n*e+t;function Ut(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}const zt=(t,e,n)=>{const s=t*t;return Math.sqrt(Math.max(0,n*(e*e-s)+s))},Ht=[at,ot,ut];function qt(t){const e=(n=t,Ht.find(t=>t.test(n)));var n;let s=e.parse(t);return e===ut&&(s=function({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,n/=100;let r=0,i=0,o=0;if(e/=100){const s=n<.5?n*(1+e):n+e-n*e,a=2*n-s;r=Ut(a,s,t+1/3),i=Ut(a,s,t),o=Ut(a,s,t-1/3)}else r=i=o=n;return{red:Math.round(255*r),green:Math.round(255*i),blue:Math.round(255*o),alpha:s}}(s)),s}const $t=(t,e)=>{const n=qt(t),s=qt(e),r={...n};return t=>(r.red=zt(n.red,s.red,t),r.green=zt(n.green,s.green,t),r.blue=zt(n.blue,s.blue,t),r.alpha=Bt(n.alpha,s.alpha,t),ot.transform(r))},Wt=(t,e)=>n=>e(t(n)),Kt=(...t)=>t.reduce(Wt);function Gt(t,e){return"number"==typeof t?n=>Bt(t,e,n):ct.test(t)?$t(t,e):Zt(t,e)}const Yt=(t,e)=>{const n=[...t],s=n.length,r=t.map((t,n)=>Gt(t,e[n]));return t=>{for(let e=0;e<s;e++)n[e]=r[e](t);return n}},Xt=(t,e)=>{const n={...t,...e},s={};for(const r in n)void 0!==t[r]&&void 0!==e[r]&&(s[r]=Gt(t[r],e[r]));return t=>{for(const e in s)n[e]=s[e](t);return n}},Zt=(t,e)=>{const n=ft.createTransformer(e),s=lt(t),r=lt(e);return s.numColors===r.numColors&&s.numNumbers>=r.numNumbers?Kt(Yt(s.values,r.values),n):n=>""+(n>0?e:t)},Jt=(t,e)=>n=>Bt(t,e,n);function _t(t,e,n){const s=[],r=n||("number"==typeof(i=t[0])?Jt:"string"==typeof i?ct.test(i)?$t:Zt:Array.isArray(i)?Yt:"object"==typeof i?Xt:Jt);var i;const o=t.length-1;for(let n=0;n<o;n++){let i=r(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]:e;i=Kt(t,i)}s.push(i)}return s}function Qt(t,e,{clamp:n=!0,ease:s,mixer:r}={}){const i=t.length;e.length,!s||!Array.isArray(s)||s.length,t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=_t(e,s,r),u=a.length,c=e=>{let n=0;if(u>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const s=((t,e,n)=>{const s=e-t;return 0===s?1:(n-t)/s})(t[n],t[n+1],e);return a[n](s)};return n?e=>c(o(t[0],t[i-1],e)):c}const te=t=>t,ee=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function ne(t,e,n,s){if(t===e&&n===s)return te;const r=e=>function(t,e,n,s,r){let i,o,a=0;do{o=e+(n-e)/2,i=ee(o,s,r)-t,i>0?n=o:e=o}while(Math.abs(i)>1e-7&&++a<12);return o}(e,0,1,t,n);return t=>0===t||1===t?t:ee(r(t),e,s)}const se=t=>1-Math.sin(Math.acos(t)),re=Dt(se),ie=Nt(re),oe=ne(.33,1.53,.69,.99),ae=Dt(oe),ue=Nt(ae),ce={linear:te,easeIn:Lt,easeInOut:jt,easeOut:Rt,circIn:se,circInOut:ie,circOut:re,backIn:ae,backInOut:ue,backOut:oe,anticipate:t=>(t*=2)<1?.5*ae(t):.5*(2-Math.pow(2,-10*(t-1)))},le=t=>{if(Array.isArray(t)){t.length;const[e,n,s,r]=t;return ne(e,n,s,r)}return"string"==typeof t?ce[t]:t};function he({keyframes:t,ease:e=jt,times:n,duration:s=300}){t=[...t];const r=(t=>Array.isArray(t)&&"number"!=typeof t[0])(e)?e.map(le):le(e),i={done:!1,value:t[0]},o=function(t,e){return t.map(t=>t*e)}(n&&n.length===t.length?n:function(t){const e=t.length;return t.map((t,n)=>0!==n?n/(e-1):0)}(t),s);function a(){return Qt(o,t,{ease:Array.isArray(r)?r:(e=t,n=r,e.map(()=>n||jt).splice(0,e.length-1))});var e,n}let u=a();return{next:t=>(i.value=u(t),i.done=t>=s,i),flipTarget:()=>{t.reverse(),u=a()}}}function pe({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let r,i,a=1-e;a=o(.05,1,a),t=o(.01,10,t/1e3),a<1?(r=e=>{const s=e*a,r=s*t;return.001-(s-n)/de(e,a)*Math.exp(-r)},i=e=>{const s=e*a*t,i=s*n+n,o=Math.pow(a,2)*Math.pow(e,2)*t,u=Math.exp(-s),c=de(Math.pow(e,2),a);return(.001-r(e)>0?-1:1)*((i-o)*u)/c}):(r=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,i=e=>Math.exp(-e*t)*(t*t*(n-e)));const u=function(t,e,n){let s=n;for(let n=1;n<12;n++)s-=t(s)/e(s);return s}(r,i,5/t);if(t*=1e3,isNaN(u))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(u,2)*s;return{stiffness:e,damping:2*a*Math.sqrt(s*e),duration:t}}}function de(t,e){return t*Math.sqrt(1-e*e)}const fe=["duration","bounce"],me=["stiffness","damping","mass"];function ge(t,e){return e.some(e=>void 0!==t[e])}function ve({keyframes:t,restDelta:e,restSpeed:n,...s}){let r=t[0],i=t[t.length-1];const o={done:!1,value:r},{stiffness:a,damping:u,mass:c,velocity:l,duration:h,isResolvedFromDuration:p}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ge(t,me)&&ge(t,fe)){const n=pe(t);e={...e,...n,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}(s);let d=ye,f=l?-l/1e3:0;const m=u/(2*Math.sqrt(a*c));function g(){const t=i-r,s=Math.sqrt(a/c)/1e3,o=Math.abs(t)<5;if(n||(n=o?.01:2),e||(e=o?.005:.5),m<1){const e=de(s,m);d=n=>{const r=Math.exp(-m*s*n);return i-r*((f+m*s*t)/e*Math.sin(e*n)+t*Math.cos(e*n))}}else if(1===m)d=e=>i-Math.exp(-s*e)*(t+(f+s*t)*e);else{const e=s*Math.sqrt(m*m-1);d=n=>{const r=Math.exp(-m*s*n),o=Math.min(e*n,300);return i-r*((f+m*s*t)*Math.sinh(o)+e*t*Math.cosh(o))/e}}}return g(),{next:t=>{const s=d(t);if(p)o.done=t>=h;else{let r=f;if(0!==t)if(m<1){const e=Math.max(0,t-5);r=tt(s-d(e),t-e)}else r=0;const a=Math.abs(r)<=n,u=Math.abs(i-s)<=e;o.done=a&&u}return o.value=o.done?i:s,o},flipTarget:()=>{f=-f,[r,i]=[i,r],g()}}}ve.needsInterpolation=(t,e)=>"string"==typeof t||"string"==typeof e;const ye=t=>0;const be={decay:function({keyframes:t=[0],velocity:e=0,power:n=.8,timeConstant:s=350,restDelta:r=.5,modifyTarget:i}){const o=t[0],a={done:!1,value:o};let u=n*e;const c=o+u,l=void 0===i?c:i(c);return l!==c&&(u=l-o),{next:t=>{const e=-u*Math.exp(-t/s);return a.done=!(e>r||e<-r),a.value=a.done?l:l+e,a},flipTarget:()=>{}}},keyframes:he,tween:he,spring:ve};function Ve(t,e,n=0){return t-e-n}const we=t=>{const e=({delta:e})=>t(e);return{start:()=>Y.update(e,!0),stop:()=>X.update(e)}};function Ae({duration:t,driver:e=we,elapsed:n=0,repeat:s=0,repeatType:r="loop",repeatDelay:i=0,keyframes:o,autoplay:a=!0,onPlay:u,onStop:c,onComplete:l,onRepeat:h,onUpdate:p,type:d="keyframes",...f}){const m=n;let g,v,y=0,b=t,V=!1,w=!0;const A=be[o.length>2?"keyframes":d]||he,C=o[0],P=o[o.length-1];let x={done:!1,value:C};const{needsInterpolation:S}=A;S&&S(C,P)&&(v=Qt([0,100],[C,P],{clamp:!1}),o=[0,100]);const M=A({...f,duration:t,keyframes:o});function T(){y++,"reverse"===r?(w=y%2==0,n=function(t,e=0,n=0,s=!0){return s?Ve(e+-t,e,n):e-(t-e)+n}(n,b,i,w)):(n=Ve(n,b,i),"mirror"===r&&M.flipTarget()),V=!1,h&&h()}function E(t){w||(t=-t),n+=t,V||(x=M.next(Math.max(0,n)),v&&(x.value=v(x.value)),V=w?x.done:n<=0),p&&p(x.value),V&&(0===y&&(b=void 0!==b?b:n),y<s?function(t,e,n,s){return s?t>=e+n:t<=-n}(n,b,i,w)&&T():(g&&g.stop(),l&&l()))}return a&&(u&&u(),g=e(E),g.start()),{stop:()=>{c&&c(),g&&g.stop()},set currentTime(t){n=m,E(t)},sample:e=>{n=m;const s=t&&"number"==typeof t?Math.max(.5*t,50):50;let r=0;for(E(0);r<=e;){const t=e-r;E(Math.min(t,s)),r+=s}return x}}}const Ce=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Pe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ce([0,.65,.55,1]),circOut:Ce([.55,0,1,.45]),backIn:Ce([.31,.01,.66,-.59]),backOut:Ce([.33,1.53,.69,.99])};function xe(t){if(t)return Array.isArray(t)?Ce(t):Pe[t]}const Se={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Me={},Te={};for(const t in Se)Te[t]=()=>(void 0===Me[t]&&(Me[t]=Se[t]()),Me[t]);const Ee=new Set(["opacity"]);function Fe(t,e,{onUpdate:n,onComplete:s,...r}){if(!(Te.waapi()&&Ee.has(e)&&!r.repeatDelay&&"mirror"!==r.repeatType&&0!==r.damping))return!1;let{keyframes:i,duration:o=300,elapsed:a=0,ease:u}=r;if("spring"===r.type||!(!(c=r.ease)||Array.isArray(c)||"string"==typeof c&&Pe[c])){if(r.repeat===1/0)return;const t=Ae({...r,elapsed:0});let e={done:!1,value:i[0]};const n=[];let s=0;for(;!e.done&&s<2e4;)e=t.sample(s),n.push(e.value),s+=10;i=n,o=s-10,u="linear"}var c;const l=function(t,e,n,{delay:s=0,duration:r,repeat:i=0,repeatType:o="loop",ease:a,times:u}={}){return t.animate({[e]:n,offset:u},{delay:s,duration:r,easing:xe(a),fill:"both",iterations:i+1,direction:"reverse"===o?"alternate":"normal"})}(t.owner.current,e,i,{...r,delay:-a,duration:o,ease:u});return l.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){return t[e&&"loop"!==n&&e%2==1?0:t.length-1]}(i,r)),Y.update(()=>l.cancel()),s&&s()},{get currentTime(){return l.currentTime||0},set currentTime(t){l.currentTime=t},stop:()=>{const{currentTime:e}=l;if(e){const n=Ae({...r,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}Y.update(()=>l.cancel())}}}function ke(t,e){const n=performance.now(),s=({timestamp:r})=>{const i=r-n;i>=e&&(X.read(s),t(i-e))};return Y.read(s,!0),()=>X.read(s)}function Ie({keyframes:t,elapsed:e,onUpdate:n,onComplete:s}){const r=()=>{n&&n(t[t.length-1]),s&&s()};return e?{stop:ke(r,-e)}:r()}const Oe=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Ne=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),De=()=>({type:"keyframes",ease:"linear",duration:.3}),Le={type:"keyframes",duration:.8},Re={x:Oe,y:Oe,z:Oe,rotate:Oe,rotateX:Oe,rotateY:Oe,rotateZ:Oe,scaleX:Ne,scaleY:Ne,scale:Ne,opacity:De,backgroundColor:De,color:De,default:Ne},je=(t,{keyframes:e})=>{if(e.length>2)return Le;return(Re[t]||Re.default)(e[1])},Be=(t,e)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!ft.test(e)||e.startsWith("url(")));function Ue(t){return 0===t||"string"==typeof t&&0===parseFloat(t)&&-1===t.indexOf(" ")}function ze(t){return"number"==typeof t?0:wt("",t)}const He=(t,e,n,s={})=>r=>{const i=function(t,e){return t[e]||t.default||t}(s,t)||{},o=i.delay||s.delay||0;let{elapsed:a=0}=s;a-=It(o);const u=function(t,e,n,s){const r=Be(e,n);let i=void 0!==s.from?s.from:t.get();return"none"===i&&r&&"string"==typeof n?i=wt(e,n):Ue(i)&&"string"==typeof n?i=ze(n):!Array.isArray(n)&&Ue(n)&&"string"==typeof i&&(n=ze(i)),Array.isArray(n)?(null===n[0]&&(n[0]=i),n):[i,n]}(e,t,n,i),c=u[0],l=u[u.length-1],h=Be(t,c),p=Be(t,l);let d={keyframes:u,velocity:e.getVelocity(),...i,elapsed:a,onUpdate:t=>{e.set(t),i.onUpdate&&i.onUpdate(t)},onComplete:()=>{r(),i.onComplete&&i.onComplete()}};if(!h||!p||Ot||!1===i.type)return Ie(d);if("inertia"===i.type)return function({keyframes:t,velocity:e=0,min:n,max:s,power:r=.8,timeConstant:i=750,bounceStiffness:o=500,bounceDamping:a=10,restDelta:u=1,modifyTarget:c,driver:l,onUpdate:h,onComplete:p,onStop:d}){const f=t[0];let m;function g(t){return void 0!==n&&t<n||void 0!==s&&t>s}function v(t){return void 0===n?s:void 0===s||Math.abs(n-t)<Math.abs(s-t)?n:s}function y(t){m&&m.stop(),m=Ae({keyframes:[0,1],velocity:0,...t,driver:l,onUpdate:e=>{h&&h(e),t.onUpdate&&t.onUpdate(e)},onComplete:p,onStop:d})}function b(t){y({type:"spring",stiffness:o,damping:a,restDelta:u,...t})}if(g(f))b({velocity:e,keyframes:[f,v(f)]});else{let t=r*e+f;void 0!==c&&(t=c(t));const s=v(t),o=s===n?-1:1;let a,l;const h=t=>{a=l,l=t,e=tt(t-a,U.delta),(1===o&&t>s||-1===o&&t<s)&&b({keyframes:[t,s],velocity:e})};y({type:"decay",keyframes:[f,0],velocity:e,timeConstant:i,power:r,restDelta:u,modifyTarget:c,onUpdate:g(t)?h:void 0})}return{stop:()=>m&&m.stop()}}(d);if(function({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:a,from:u,elapsed:c,...l}){return!!Object.keys(l).length}(i)||(d={...d,...je(t,d)}),d.duration&&(d.duration=It(d.duration)),d.repeatDelay&&(d.repeatDelay=It(d.repeatDelay)),e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const n=Fe(e,t,d);if(n)return n}return Ae(d)};function qe(t,e,n={}){const s=Mt(t,e,n.custom);let{transition:r=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(r=n.transitionOverride);const i=s?()=>$e(t,s,n):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(s=0)=>{const{delayChildren:i=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,n=0,s=0,r=1,i){const o=[],a=(t.variantChildren.size-1)*s,u=1===r?(t=0)=>t*s:(t=0)=>a-t*s;return Array.from(t.variantChildren).sort(We).forEach((t,s)=>{t.notify("AnimationStart",e),o.push(qe(t,e,{...i,delay:n+u(s)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,i+s,o,a,n)}:()=>Promise.resolve(),{when:a}=r;if(a){const[t,e]="beforeChildren"===a?[i,o]:[o,i];return t().then(e)}return Promise.all([i(),o(n.delay)])}function $e(t,e,{delay:n=0,transitionOverride:s,type:r}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:o,...a}=t.makeTargetAnimatable(e);const u=t.getValue("willChange");s&&(i=s);const c=[],l=r&&t.animationState&&t.animationState.getState()[r];for(const e in a){const s=t.getValue(e),r=a[e];if(!s||void 0===r||l&&Ke(l,e))continue;const o={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!s.hasAnimated){const n=t.getProps()[kt];n&&(o.elapsed=window.HandoffAppearAnimations(n,e,s,Y))}let h=s.start(He(e,s,r,t.shouldReduceMotion&&y.has(e)?{type:!1}:o));Ft(u)&&(u.add(e),h=h.then(()=>u.remove(e))),c.push(h)}return Promise.all(c).then(()=>{o&&function(t,e){const n=Mt(t,e);let{transitionEnd:s={},transition:r={},...i}=n?t.makeTargetAnimatable(n,!1):{};i={...i,...s};for(const e in i){Tt(t,e,m(i[e]))}}(t,o)})}function We(t,e){return t.sortNodePosition(e)}function Ke({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,s}var Ge;!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(Ge||(Ge={}));const Ye=[Ge.Animate,Ge.InView,Ge.Focus,Ge.Hover,Ge.Tap,Ge.Drag,Ge.Exit],Xe=[...Ye].reverse(),Ze=Ye.length;function Je(t){return e=>Promise.all(e.map(({animation:e,options:n})=>function(t,e,n={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e)){const r=e.map(e=>qe(t,e,n));s=Promise.all(r)}else if("string"==typeof e)s=qe(t,e,n);else{const r="function"==typeof e?Mt(t,e,n.custom):e;s=$e(t,r,n)}return s.then(()=>t.notify("AnimationComplete",e))}(t,e,n)))}function _e(t){let e=Je(t);const n={[Ge.Animate]:tn(!0),[Ge.InView]:tn(),[Ge.Hover]:tn(),[Ge.Tap]:tn(),[Ge.Drag]:tn(),[Ge.Focus]:tn(),[Ge.Exit]:tn()};let s=!0;const r=(e,n)=>{const s=Mt(t,n);if(s){const{transition:t,transitionEnd:n,...r}=s;e={...e,...r,...n}}return e};function i(i,o){const a=t.getProps(),u=t.getVariantContext(!0)||{},c=[],l=new Set;let h={},p=1/0;for(let e=0;e<Ze;e++){const d=Xe[e],f=n[d],m=void 0!==a[d]?a[d]:u[d],g=w(m),v=d===o?f.isActive:null;!1===v&&(p=e);let y=m===u[d]&&m!==a[d]&&g;if(y&&s&&t.manuallyAnimateOnMount&&(y=!1),f.protectedKeys={...h},!f.isActive&&null===v||!m&&!f.prevProp||b(m)||"boolean"==typeof m)continue;const A=Qe(f.prevProp,m);let C=A||d===o&&f.isActive&&!y&&g||e>p&&g;const P=Array.isArray(m)?m:[m];let x=P.reduce(r,{});!1===v&&(x={});const{prevResolvedValues:S={}}=f,M={...S,...x},T=t=>{C=!0,l.delete(t),f.needsAnimating[t]=!0};for(const t in M){const e=x[t],n=S[t];h.hasOwnProperty(t)||(e!==n?V(e)&&V(n)?!j(e,n)||A?T(t):f.protectedKeys[t]=!0:void 0!==e?T(t):l.add(t):void 0!==e&&l.has(t)?T(t):f.protectedKeys[t]=!0)}f.prevProp=m,f.prevResolvedValues=x,f.isActive&&(h={...h,...x}),s&&t.blockInitialAnimation&&(C=!1),C&&!y&&c.push(...P.map(t=>({animation:t,options:{type:d,...i}})))}if(l.size){const e={};l.forEach(n=>{const s=t.getBaseTarget(n);void 0!==s&&(e[n]=s)}),c.push({animation:e})}let d=Boolean(c.length);return s&&!1===a.initial&&!t.manuallyAnimateOnMount&&(d=!1),s=!1,d?e(c):Promise.resolve()}return{animateChanges:i,setActive:function(e,s,r){if(n[e].isActive===s)return Promise.resolve();t.variantChildren&&t.variantChildren.forEach(t=>{t.animationState&&t.animationState.setActive(e,s)}),n[e].isActive=s;const o=i(r,e);for(const t in n)n[t].protectedKeys={};return o},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}function Qe(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!j(e,t)}function tn(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class en{constructor(t){this.isMounted=!1,this.node=t}update(){}}let nn=0;const sn={animation:{Feature:class extends en{constructor(t){super(t),t.animationState||(t.animationState=_e(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),b(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends en{constructor(){super(...arguments),this.id=nn++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const r=this.node.animationState.setActive(Ge.Exit,!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&r.then(()=>e(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}};function rn(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function on(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}function an(t,e,n,s){return rn(t,e,(t=>e=>(t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary)(e)&&t(e,on(e)))(n),s)}function un(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const cn=un("dragHorizontal"),ln=un("dragVertical");function hn(){const t=function(t){let e=!1;if("y"===t)e=ln();else if("x"===t)e=cn();else{const t=cn(),n=ln();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}(!0);return!t||(t(),!1)}function pn(t,e){const n="pointer"+(e?"enter":"leave"),s="onHover"+(e?"Start":"End");return an(t.current,n,(n,r)=>{if("touch"===n.type||hn())return;const i=t.getProps();t.animationState&&i.whileHover&&t.animationState.setActive(Ge.Hover,e),i[s]&&i[s](n,r)},{passive:!t.getProps()[s]})}const dn=(t,e)=>!!e&&(t===e||dn(t,e.parentElement));function fn(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,on(n))}const mn=new WeakMap,gn=new WeakMap,vn=t=>{const e=mn.get(t.target);e&&e(t)},yn=t=>{t.forEach(vn)};function bn(t,e,n){const s=function({root:t,...e}){const n=t||document;gn.has(n)||gn.set(n,{});const s=gn.get(n),r=JSON.stringify(e);return s[r]||(s[r]=new IntersectionObserver(yn,{root:t,...e})),s[r]}(e);return mn.set(t,n),s.observe(t),()=>{mn.delete(t),s.unobserve(t)}}const Vn={some:0,all:1};const wn={inView:{Feature:class extends en{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame(()=>{this.hasEnteredView=!0;const{onViewportEnter:t}=this.node.getProps();t&&t(null),this.node.animationState&&this.node.animationState.setActive(Ge.InView,!0)})}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:s="some",once:r,fallback:i=!0}=t;if("undefined"==typeof IntersectionObserver)return void(i&&this.viewportFallback());const o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:Vn[s]};return bn(this.node.current,o,t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,r&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(Ge.InView,e);const{onViewportEnter:n,onViewportLeave:s}=this.node.getProps(),i=e?n:s;i&&i(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends en{constructor(){super(...arguments),this.removeStartListeners=te,this.removeEndListeners=te,this.removeAccessibleListeners=te,this.startPointerPress=(t,e)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),s=an(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:s}=this.node.getProps();dn(this.node.current,t.target)?n&&n(t,e):s&&s(t,e)},{passive:!(n.onTap||n.onPointerUp)}),r=an(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Kt(s,r),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=rn(this.node.current,"keydown",t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=rn(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&fn("up",this.node.getProps().onTap)}),fn("down",(t,e)=>{this.startPress(t,e)})}),e=rn(this.node.current,"blur",()=>{this.isPressing&&fn("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=Kt(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive(Ge.Tap,!0),n&&n(t,e)}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive(Ge.Tap,!1),!hn()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&n(t,e)}mount(){const t=this.node.getProps(),e=an(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=rn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Kt(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends en{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive(Ge.Focus,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(Ge.Focus,!1),this.isActive=!1)}mount(){this.unmount=Kt(rn(this.node.current,"focus",()=>this.onFocus()),rn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends en{mount(){this.unmount=Kt(pn(this.node,!0),pn(this.node,!1))}unmount(){}}}};function An(t){return"string"==typeof t&&t.startsWith("var(--")}const Cn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Pn(t,e,n=1){const[s,r]=function(t){const e=Cn.exec(t);if(!e)return[,];const[,n,s]=e;return[n,s]}(t);if(!s)return;const i=window.getComputedStyle(e).getPropertyValue(s);return i?i.trim():An(r)?Pn(r,e,n+1):r}const xn=new Set(["width","height","top","left","right","bottom","x","y"]),Sn=t=>xn.has(t),Mn=t=>t===i||t===l;var Tn;!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(Tn||(Tn={}));const En=(t,e)=>parseFloat(t.split(", ")[e]),Fn=(t,e)=>(n,{transform:s})=>{if("none"===s||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/);if(r)return En(r[1],e);{const e=s.match(/^matrix\((.+)\)$/);return e?En(e[1],t):0}},kn=new Set(["x","y","z"]),In=A.filter(t=>!kn.has(t));const On={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Fn(4,13),y:Fn(5,14)},Nn=(t,e,n={},s={})=>{e={...e},s={...s};const r=Object.keys(e).filter(Sn);let i=[],o=!1;const a=[];if(r.forEach(r=>{const u=t.getValue(r);if(!t.hasValue(r))return;let c=n[r],h=Pt(c);const p=e[r];let d;if(V(p)){const t=p.length,e=null===p[0]?1:0;c=p[e],h=Pt(c);for(let n=e;n<t;n++)d?Pt(p[n]):d=Pt(p[n])}else d=Pt(p);if(h!==d)if(Mn(h)&&Mn(d)){const t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof p?e[r]=parseFloat(p):Array.isArray(p)&&d===l&&(e[r]=p.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==d?void 0:d.transform)&&(0===c||0===p)?0===c?u.set(d.transform(c)):e[r]=h.transform(p):(o||(i=function(t){const e=[];return In.forEach(n=>{const s=t.getValue(n);void 0!==s&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),o=!0),a.push(r),s[r]=void 0!==s[r]?s[r]:e[r],u.jump(p))}),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,r=((t,e,n)=>{const s=e.measureViewportBox(),r=e.current,i=getComputedStyle(r),{display:o}=i,a={};"none"===o&&e.setStaticValue("display",t.display||"block"),n.forEach(t=>{a[t]=On[t](s,i)}),e.render();const u=e.measureViewportBox();return n.forEach(n=>{const s=e.getValue(n);s&&s.jump(a[n]),t[n]=On[n](u,i)}),t})(e,t,a);return i.length&&i.forEach(([e,n])=>{t.getValue(e).set(n)}),t.render(),C&&null!==n&&window.scrollTo({top:n}),{target:r,transitionEnd:s}}return{target:e,transitionEnd:s}};function Dn(t,e,n,s){return(t=>Object.keys(t).some(Sn))(e)?Nn(t,e,n,s):{target:e,transitionEnd:s}}const Ln=(t,e,n,s)=>{const r=function(t,{...e},n){const s=t.current;if(!(s instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(t=>{const e=t.get();if(!An(e))return;const n=Pn(e,s);n&&t.set(n)});for(const t in e){const r=e[t];if(!An(r))continue;const i=Pn(r,s);i&&(e[t]=i,n&&void 0===n[t]&&(n[t]=r))}return{target:e,transitionEnd:n}}(t,e,s);return Dn(t,e=r.target,n,s=r.transitionEnd)},Rn={current:null},jn={current:!1};const Bn=Object.keys(P),Un=Bn.length,zn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Hn=["initial",...Ye],qn=Hn.length;class $n extends class{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:s,visualState:r},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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.scheduleRender=()=>Y.render(this.render,!1,!0);const{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=i,this.isControllingVariants=x(e),this.isVariantNode=S(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(e,{});for(const t in c){const e=c[t];void 0!==o[t]&&g(e)&&(e.set(o[t],!1),Ft(u)&&u.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),jn.current||function(){if(jn.current=!0,C)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Rn.current=t.matches;t.addListener(e),e()}else Rn.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Rn.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),X.update(this.notifyUpdate),X.render(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){const n=y.has(t),s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&Y.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{s(),r()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,s,r,i){let o,a;for(let t=0;t<Un;t++){const n=Bn[t],{isEnabled:s,Feature:r,ProjectionNode:i,MeasureLayout:u}=P[n];i&&(o=i),s(e)&&(!this.features[n]&&r&&(this.features[n]=new r(this)),u&&(a=u))}if(!this.projection&&o){this.projection=new o(r,this.latestValues,this.parent&&this.parent.projection);const{layoutId:t,layout:n,drag:s,dragConstraints:a,layoutScroll:u,layoutRoot:c}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:Boolean(s)||a&&M(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:u,layoutRoot:c})}return a}updateFeatures(){for(const t in this.features){const e=this.features[t];e.isMounted?e.update(this.props,this.prevProps):(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<zn.length;e++){const n=zn[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const s=t["on"+n];s&&(this.propEventSubscriptions[n]=this.on(n,s))}this.prevMotionValues=function(t,e,n){const{willChange:s}=e;for(const r in e){const i=e[r],o=n[r];if(g(i))t.addValue(r,i),Ft(s)&&s.add(r);else if(g(o))t.addValue(r,nt(i,{owner:t})),Ft(s)&&s.remove(r);else if(o!==i)if(t.hasValue(r)){const e=t.getValue(r);!e.hasAnimated&&e.set(i)}else{const e=t.getStaticValue(r);t.addValue(r,nt(void 0!==e?e:i,{owner:t}))}}for(const s in n)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const e={};for(let t=0;t<qn;t++){const n=Hn[t],s=this.props[n];(w(s)||!1===s)&&(e[n]=s)}return e}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=nt(e,{owner:this}),this.addValue(t,n)),n}readValue(t){return void 0===this.latestValues[t]&&this.current?this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props,s="string"==typeof n||"object"==typeof n?null===(e=f(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==s)return s;const r=this.getBaseTargetFromProps(this.props,t);return void 0===r||g(r)?void 0!==this.initialValues[t]&&void 0===s?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new Q),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:s},r){let i=function(t,e,n){const s={};for(const r in t){const t=Et(r,e);if(void 0!==t)s[r]=t;else{const t=n.getValue(r);t&&(s[r]=t.get())}}return s}(n,t||{},this);if(s&&(e&&(e=s(e)),n&&(n=s(n)),i&&(i=s(i))),r){!function(t,e,n){var s,r;const i=Object.keys(e).filter(e=>!t.hasValue(e)),o=i.length;if(o)for(let a=0;a<o;a++){const o=i[a],u=e[o];let c=null;Array.isArray(u)&&(c=u[0]),null===c&&(c=null!==(r=null!==(s=n[o])&&void 0!==s?s:t.readValue(o))&&void 0!==r?r:e[o]),null!=c&&("string"==typeof c&&(/^\-?\d*\.?\d+$/.test(c)||B(c))?c=parseFloat(c):!St(c)&&ft.test(u)&&(c=wt(o,u)),t.addValue(o,nt(c,{owner:t})),void 0===n[o]&&(n[o]=c),null!==c&&t.setBaseTarget(o,c))}}(this,n,i);const t=Ln(this,n,i,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class Wn extends $n{readValueFromInstance(t,e){if(y.has(e)){const t=Vt(e);return t&&t.default||0}{const s=(n=t,window.getComputedStyle(n)),r=(T(e)?s.getPropertyValue(e):s[e])||0;return"string"==typeof r?r.trim():r}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return function(t,e){return function({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}(t,e)}build(t,e,n,s){E(t,e,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,e){return F(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;g(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=""+t)}))}renderInstance(t,e,n,s){k(t,e,n,s)}}class Kn extends $n{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(y.has(e)){const t=Vt(e);return t&&t.default||0}return e=I.has(e)?e:v(e),t.getAttribute(e)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(t,e){return O(t,e)}build(t,e,n,s){N(t,e,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,e,n,s){D(t,e,n,s)}mount(t){this.isSVGTag=L(t.tagName),super.mount(t)}}const Gn={renderer:(t,e)=>R(t)?new Kn(e,{enableHardwareAcceleration:!1}):new Wn(e,{enableHardwareAcceleration:!0}),...sn,...wn};export{Gn as domAnimation};
@@ -1 +1 @@
1
- import{createContext as t,useRef as e}from"react";const r=t({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),a=t(null),n="undefined"!=typeof document;function s(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function o(t){return"string"==typeof t||Array.isArray(t)}function i(t){return"object"==typeof t&&"function"==typeof t.start}const f=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function c(t){return i(t.animate)||f.some(e=>o(t[e]))}function l(t){return Boolean(c(t)||t.variants)}const d=t=>({isEnabled:e=>t.some(t=>!!e[t])}),u={measureLayout:d(["layout","layoutId","drag"]),animation:d(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:d(["exit"]),drag:d(["drag","dragControls"]),focus:d(["whileFocus"]),hover:d(["whileHover","onHoverStart","onHoverEnd"]),tap:d(["whileTap","onTap","onTapStart","onTapCancel"]),pan:d(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:d(["whileInView","onViewportEnter","onViewportLeave"])};function p(t){const r=e(null);return null===r.current&&(r.current=t()),r.current}const m={hasAnimatedSinceResize:!0,hasEverUpdated:!1},g=t({}),h=t({}),y=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function v(t){return"string"==typeof t&&!t.includes("-")&&!!(y.indexOf(t)>-1||/[A-Z]/.test(t))}const w={};function x(t){Object.assign(w,t)}const b=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],k=new Set(b);function O(t,{layout:e,layoutId:r}){return k.has(t)||t.startsWith("origin")||(e||void 0!==r)&&(!!w[t]||"opacity"===t)}const L=t=>!!(null==t?void 0:t.getVelocity),T={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},S=(t,e)=>b.indexOf(t)-b.indexOf(e);function X(t){return t.startsWith("--")}const Y=(t,e)=>e&&"number"==typeof t?e.transform(t):t,$=(t,e,r)=>Math.min(Math.max(r,t),e),P={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},A={...P,transform:t=>$(0,1,t)},B={...P,default:1},R=t=>Math.round(1e5*t)/1e5,V=/(-)?([\d]*\.?[\d])+/g,W=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Z=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function j(t){return"string"==typeof t}const z=t=>({test:e=>j(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),C=z("deg"),H=z("%"),E=z("px"),F=z("vh"),I=z("vw"),M={...H,parse:t=>H.parse(t)/100,transform:t=>H.transform(100*t)},D={...P,transform:Math.round},U={borderWidth:E,borderTopWidth:E,borderRightWidth:E,borderBottomWidth:E,borderLeftWidth:E,borderRadius:E,radius:E,borderTopLeftRadius:E,borderTopRightRadius:E,borderBottomRightRadius:E,borderBottomLeftRadius:E,width:E,maxWidth:E,height:E,maxHeight:E,size:E,top:E,right:E,bottom:E,left:E,padding:E,paddingTop:E,paddingRight:E,paddingBottom:E,paddingLeft:E,margin:E,marginTop:E,marginRight:E,marginBottom:E,marginLeft:E,rotate:C,rotateX:C,rotateY:C,rotateZ:C,scale:B,scaleX:B,scaleY:B,scaleZ:B,skew:C,skewX:C,skewY:C,distance:E,translateX:E,translateY:E,translateZ:E,x:E,y:E,z:E,perspective:E,transformPerspective:E,opacity:A,originX:M,originY:M,originZ:E,zIndex:D,fillOpacity:A,strokeOpacity:A,numOctaves:D};function K(t,e,r,a){const{style:n,vars:s,transform:o,transformKeys:i,transformOrigin:f}=t;i.length=0;let c=!1,l=!1,d=!0;for(const t in e){const r=e[t];if(X(t)){s[t]=r;continue}const a=U[t],u=Y(r,a);if(k.has(t)){if(c=!0,o[t]=u,i.push(t),!d)continue;r!==(a.default||0)&&(d=!1)}else t.startsWith("origin")?(l=!0,f[t]=u):n[t]=u}if(e.transform||(c||a?n.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:r=!0,allowTransformNone:a=!0},n,s){let o="";e.sort(S);for(const r of e)o+=`${T[r]||r}(${t[r]}) `;return r&&!t.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(t,n?"":o):a&&n&&(o="none"),o}(t,r,d,a):n.transform&&(n.transform="none")),l){const{originX:t="50%",originY:e="50%",originZ:r=0}=f;n.transformOrigin=`${t} ${e} ${r}`}}function q(t,e,r){return"string"==typeof t?t:E.transform(e+r*t)}const N={offset:"stroke-dashoffset",array:"stroke-dasharray"},G={offset:"strokeDashoffset",array:"strokeDasharray"};function J(t,{attrX:e,attrY:r,originX:a,originY:n,pathLength:s,pathSpacing:o=1,pathOffset:i=0,...f},c,l,d){if(K(t,f,c,d),l)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:u,style:p,dimensions:m}=t;u.transform&&(m&&(p.transform=u.transform),delete u.transform),m&&(void 0!==a||void 0!==n||p.transform)&&(p.transformOrigin=function(t,e,r){return`${q(e,t.x,t.width)} ${q(r,t.y,t.height)}`}(m,void 0!==a?a:.5,void 0!==n?n:.5)),void 0!==e&&(u.x=e),void 0!==r&&(u.y=r),void 0!==s&&function(t,e,r=1,a=0,n=!0){t.pathLength=1;const s=n?N:G;t[s.offset]=E.transform(-a);const o=E.transform(e),i=E.transform(r);t[s.array]=`${o} ${i}`}(u,s,o,i,!1)}const Q=t=>"string"==typeof t&&"svg"===t.toLowerCase(),_=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function tt(t,{style:e,vars:r},a,n){Object.assign(t.style,e,n&&n.getProjectionStyles(a));for(const e in r)t.style.setProperty(e,r[e])}const et=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"]);function rt(t,e,r,a){tt(t,e,void 0,a);for(const r in e.attrs)t.setAttribute(et.has(r)?r:_(r),e.attrs[r])}function at(t,e){const{style:r}=t,a={};for(const n in r)(L(r[n])||e.style&&L(e.style[n])||O(n,t))&&(a[n]=r[n]);return a}function nt(t,e){const r=at(t,e);for(const a in t)if(L(t[a])||L(e[a])){r["x"===a||"y"===a?"attr"+a.toUpperCase():a]=t[a]}return r}function st(t,e,r,a={},n={}){return"function"==typeof e&&(e=e(void 0!==r?r:t.custom,a,n)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==r?r:t.custom,a,n)),e}const ot=t=>Array.isArray(t),it=t=>ot(t)?t[t.length-1]||0:t;function ft(t){const e=L(t)?t.get():t;return r=e,Boolean(r&&"object"==typeof r&&r.mix&&r.toValue)?e.toValue():e;var r}export{P as A,H as B,W as C,U as D,E,x as F,w as G,C as H,I,F as J,it as K,g as L,r as M,b as N,ot as O,a as P,_ as Q,k as R,h as S,X as T,tt as U,et as V,s as a,c as b,o as c,L as d,O as e,u as f,m as g,K as h,n as i,J as j,Q as k,v as l,l as m,i as n,st as o,rt as p,at as q,ft as r,nt as s,$ as t,p as u,j as v,Z as w,V as x,R as y,A as z};
1
+ import{createContext as t}from"react";const e=t(null),a="undefined"!=typeof document;function r(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function n(t){return"string"==typeof t||Array.isArray(t)}function s(t){return"object"==typeof t&&"function"==typeof t.start}const o=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function i(t){return s(t.animate)||o.some(e=>n(t[e]))}function f(t){return Boolean(i(t)||t.variants)}const c={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},l={};for(const t in c)l[t]={isEnabled:e=>c[t].some(t=>!!e[t])};const d={hasAnimatedSinceResize:!0,hasEverUpdated:!1},u=t({}),p=t({}),m=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function g(t){return"string"==typeof t&&!t.includes("-")&&!!(m.indexOf(t)>-1||/[A-Z]/.test(t))}const h={};function y(t){Object.assign(h,t)}const v=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],w=new Set(v);function x(t,{layout:e,layoutId:a}){return w.has(t)||t.startsWith("origin")||(e||void 0!==a)&&(!!h[t]||"opacity"===t)}const b=t=>Boolean(t&&t.getVelocity),k={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},O=(t,e)=>v.indexOf(t)-v.indexOf(e);function T(t){return t.startsWith("--")}const L=(t,e)=>e&&"number"==typeof t?e.transform(t):t,X=(t,e,a)=>Math.min(Math.max(a,t),e),Y={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},$={...Y,transform:t=>X(0,1,t)},B={...Y,default:1},S=t=>Math.round(1e5*t)/1e5,A=/(-)?([\d]*\.?[\d])+/g,R=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,P=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function W(t){return"string"==typeof t}const Z=t=>({test:e=>W(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),V=Z("deg"),j=Z("%"),z=Z("px"),C=Z("vh"),H=Z("vw"),E={...j,parse:t=>j.parse(t)/100,transform:t=>j.transform(100*t)},F={...Y,transform:Math.round},I={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,radius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,size:z,top:z,right:z,bottom:z,left:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,rotate:V,rotateX:V,rotateY:V,rotateZ:V,scale:B,scaleX:B,scaleY:B,scaleZ:B,skew:V,skewX:V,skewY:V,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z:z,perspective:z,transformPerspective:z,opacity:$,originX:E,originY:E,originZ:z,zIndex:F,fillOpacity:$,strokeOpacity:$,numOctaves:F};function D(t,e,a,r){const{style:n,vars:s,transform:o,transformKeys:i,transformOrigin:f}=t;i.length=0;let c=!1,l=!1,d=!0;for(const t in e){const a=e[t];if(T(t)){s[t]=a;continue}const r=I[t],u=L(a,r);if(w.has(t)){if(c=!0,o[t]=u,i.push(t),!d)continue;a!==(r.default||0)&&(d=!1)}else t.startsWith("origin")?(l=!0,f[t]=u):n[t]=u}if(e.transform||(c||r?n.transform=function({transform:t,transformKeys:e},{enableHardwareAcceleration:a=!0,allowTransformNone:r=!0},n,s){let o="";e.sort(O);for(const a of e)o+=`${k[a]||a}(${t[a]}) `;return a&&!t.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(t,n?"":o):r&&n&&(o="none"),o}(t,a,d,r):n.transform&&(n.transform="none")),l){const{originX:t="50%",originY:e="50%",originZ:a=0}=f;n.transformOrigin=`${t} ${e} ${a}`}}function M(t,e,a){return"string"==typeof t?t:z.transform(e+a*t)}const K={offset:"stroke-dashoffset",array:"stroke-dasharray"},U={offset:"strokeDashoffset",array:"strokeDasharray"};function q(t,{attrX:e,attrY:a,originX:r,originY:n,pathLength:s,pathSpacing:o=1,pathOffset:i=0,...f},c,l,d){if(D(t,f,c,d),l)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:u,style:p,dimensions:m}=t;u.transform&&(m&&(p.transform=u.transform),delete u.transform),m&&(void 0!==r||void 0!==n||p.transform)&&(p.transformOrigin=function(t,e,a){return`${M(e,t.x,t.width)} ${M(a,t.y,t.height)}`}(m,void 0!==r?r:.5,void 0!==n?n:.5)),void 0!==e&&(u.x=e),void 0!==a&&(u.y=a),void 0!==s&&function(t,e,a=1,r=0,n=!0){t.pathLength=1;const s=n?K:U;t[s.offset]=z.transform(-r);const o=z.transform(e),i=z.transform(a);t[s.array]=`${o} ${i}`}(u,s,o,i,!1)}const N=t=>"string"==typeof t&&"svg"===t.toLowerCase(),G=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function J(t,{style:e,vars:a},r,n){Object.assign(t.style,e,n&&n.getProjectionStyles(r));for(const e in a)t.style.setProperty(e,a[e])}const Q=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"]);function _(t,e,a,r){J(t,e,void 0,r);for(const a in e.attrs)t.setAttribute(Q.has(a)?a:G(a),e.attrs[a])}function tt(t,e){const{style:a}=t,r={};for(const n in a)(b(a[n])||e.style&&b(e.style[n])||x(n,t))&&(r[n]=a[n]);return r}function et(t,e){const a=tt(t,e);for(const r in t)if(b(t[r])||b(e[r])){a["x"===r||"y"===r?"attr"+r.toUpperCase():r]=t[r]}return a}function at(t,e,a,r={},n={}){return"function"==typeof e&&(e=e(void 0!==a?a:t.custom,r,n)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==a?a:t.custom,r,n)),e}const rt=t=>Array.isArray(t),nt=t=>rt(t)?t[t.length-1]||0:t;function st(t){const e=b(t)?t.get():t;return a=e,Boolean(a&&"object"==typeof a&&a.mix&&a.toValue)?e.toValue():e;var a}export{j as A,R as B,I as C,z as D,h as E,V as F,H as G,C as H,nt as I,v as J,rt as K,u as L,G as M,w as N,T as O,e as P,J as Q,y as R,p as S,Q as T,r as a,i as b,n as c,b as d,x as e,l as f,d as g,D as h,a as i,q as j,N as k,g as l,f as m,s as n,at as o,_ as p,tt as q,st as r,et as s,X as t,W as u,P as v,A as w,S as x,$ as y,Y as z};