1import{resolveElements as t,mixNumber as e,isMotionValue as n,defaultOffset as s,isGenerator as r,createGeneratorEasing as o,fillOffset as i,motionValue as a,transformProps as l,getValueTransition as u,makeAnimationInstant as c,frame as h,JSAnimation as f,AsyncMotionValueAnimation as p,positionalKeys as d,KeyframeResolver as m,time as g,cancelFrame as y,findValueType as v,complex as w,getAnimatableNone as V,microtask as x,DOMKeyframesResolver as S,transformPropOrder as b,getValueAsType as C,numberValueTypes as A,isCSSVariableName as M,defaultTransformValue as T,readTransformValue as B,px as P,getDefaultValueType as E,isSVGElement as k,isSVGSVGElement as L,spring as F,GroupAnimationWithThen as O,getAnimationMap as I,animationMapKey as W,getComputedStyle as j,fillWildcards as N,applyPxDefaults as R,NativeAnimation as D,isHTMLElement as H,interpolate as U,resize as $,frameData as z,supportsScrollTimeline as G,observeTimeline as K}from"@theme/m-dom";export*from"@theme/m-dom";import{getEasingForSegment as Y,removeItem as X,progress as q,secondsToMilliseconds as Z,invariant as J,MotionGlobalConfig as Q,isNumericalString as _,isZeroValueString as tt,SubscriptionManager as et,velocityPerSecond as nt,clamp as st,noop as rt}from"@theme/m-utils";export*from"@theme/m-utils";function ot(t){return"object"==typeof t&&!Array.isArray(t)}function it(e,n,s,r){return"string"==typeof e&&ot(n)?t(e,s,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function at(t,e,n){return t*(e+1)}function lt(t,e,n,s){return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):s.get(e)??t}function ut(t,n,s,r,o,i){!function(t,e,n){for(let s=0;s<t.length;s++){const r=t[s];r.at>e&&r.at<n&&(X(t,r),s--)}}(t,o,i);for(let a=0;a<n.length;a++)t.push({value:n[a],at:e(o,i,r[a]),easing:Y(s,a)})}function ct(t,e){for(let n=0;n<t.length;n++)t[n]=t[n]/(e+1)}function ht(t,e){return t.at===e.at?null===t.value?1:null===e.value?-1:0:t.at-e.at}function ft(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function pt(t,e){return e[t]||(e[t]=[]),e[t]}function dt(t){return Array.isArray(t)?t:[t]}function mt(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const gt=t=>"number"==typeof t,yt=t=>t.every(gt),vt=new WeakMap;function wt(t){const e=[{},{}];return t?.values.forEach(((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function Vt(t,e,n,s){if("function"==typeof e){const[r,o]=wt(s);e=e(void 0!==n?n:t.custom,r,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[r,o]=wt(s);e=e(void 0!==n?n:t.custom,r,o)}return e}function xt(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,a(n))}function St(t){return(t=>Array.isArray(t))(t)?t[t.length-1]||0:t}function bt(t,e){const n=function(t,e,n){const s=t.getProps();return Vt(s,e,void 0!==n?n:s.custom,t)}(t,e);let{transitionEnd:s={},transition:r={},...o}=n||{};o={...o,...s};for(const e in o){xt(t,e,St(o[e]))}}function Ct(t,e){const s=t.getValue("willChange");if(r=s,Boolean(n(r)&&r.add))return s.add(e);if(!s&&Q.WillChange){const n=new Q.WillChange("auto");t.addValue("willChange",n),n.add(e)}var r}const At=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Mt="data-"+At("framerAppearId");function Tt(t){return t.props[Mt]}const Bt=t=>null!==t;const Pt={type:"spring",stiffness:500,damping:25,restSpeed:10},Et={type:"keyframes",duration:.8},kt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Lt=(t,{keyframes:e})=>e.length>2?Et:l.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Pt:kt;const Ft=(t,e,n,s={},r,o)=>i=>{const a=u(s,t)||{},l=a.delay||s.delay||0;let{elapsed:d=0}=s;d-=Z(l);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-d,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:r};(function({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:o,repeatType:i,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(a)||Object.assign(m,Lt(t,m)),m.duration&&(m.duration=Z(m.duration)),m.repeatDelay&&(m.repeatDelay=Z(m.repeatDelay)),void 0!==m.from&&(m.keyframes[0]=m.from);let g=!1;if((!1===m.type||0===m.duration&&!m.repeatDelay)&&(c(m),0===m.delay&&(g=!0)),(Q.instantAnimations||Q.skipAnimations)&&(g=!0,c(m),m.delay=0),m.allowFlatten=!a.type&&!a.ease,g&&!o&&void 0!==e.get()){const t=function(t,{repeat:e,repeatType:n="loop"},s){const r=t.filter(Bt),o=e&&"loop"!==n&&e%2==1?0:r.length-1;return o&&void 0!==s?s:r[o]}(m.keyframes,a);if(void 0!==t)return void h.update((()=>{m.onUpdate(t),m.onComplete()}
1))}return a.isSync?new f(m):new p(m)};function Ot({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,s}function It(t,e,{delay:n=0,transitionOverride:s,type:r}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:i,...a}=e;s&&(o=s);const l=[],c=r&&t.animationState&&t.animationState.getState()[r];for(const e in a){const s=t.getValue(e,t.latestValues[e]??null),r=a[e];if(void 0===r||c&&Ot(c,e))continue;const i={delay:n,...u(o||{},e)},f=s.get();if(void 0!==f&&!s.isAnimating&&!Array.isArray(r)&&r===f&&!i.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){const n=Tt(t);if(n){const t=window.MotionHandoffAnimation(n,e,h);null!==t&&(i.startTime=t,p=!0)}}Ct(t,e),s.start(Ft(e,s,r,t.shouldReduceMotion&&d.has(e)?{type:!1}:i,t,p));const m=s.animation;m&&l.push(m)}return i&&Promise.all(l).then((()=>{h.update((()=>{i&&bt(t,i)}))})),l}const Wt={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},jt={};for(const t in Wt)jt[t]={isEnabled:e=>Wt[t].some((t=>!!e[t]))};const Nt=()=>({x:{min:0,max:0},y:{min:0,max:0}}),Rt="undefined"!=typeof window,Dt={current:null},Ht={current:!1};const Ut=["initial","animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"];function $t(t){return null!==(e=t.animate)&&"object"==typeof e&&"function"==typeof e.start||Ut.some((e=>function(t){return"string"==typeof t||Array.isArray(t)}(t[e])));var e}const zt=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Gt{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:s,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=m,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.renderScheduledAt=0,this.scheduleRender=()=>{const t=g.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,h.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=i;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=$t(e),this.isVariantNode=function(t){return Boolean($t(t)||t.variants)}(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in f){const e=f[t];void 0!==l[t]&&n(e)&&e.set(l[t])}}mount(t){this.current=t,vt.set(t,this),this.projection&&!this.projection.instance&&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))),Ht.current||function(){if(Ht.current=!0,Rt)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Dt.current=t.matches;t.addEventListener("change",e),e()}else Dt.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Dt.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),y(this.notifyUpdate),y(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),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){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=l.has(t);n&&this.onBindTransform&&this.onBindTransform();const s=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&h.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}));let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{s(),r&&r(),e.owner&&e.stop()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in jt){const e=jt[t];if(!e)continue;const{isEnabled:n,Feature:s}=e;if(!this.features[t]&&s&&n(this.props)&&(this.features[t]=new s(this)),this.features[t]){const e=this.features[t];
vendor: 2,521 bytes, line 1
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,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}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<zt.length;e++){const n=zt[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,s){for(const r in e){const o=e[r],i=s[r];if(n(o))t.addValue(r,o);else if(n(i))t.addValue(r,a(o,{owner:t}));else if(i!==o)if(t.hasValue(r)){const e=t.getValue(r);!0===e.liveStyle?e.jump(o):e.hasAnimated||e.set(o)}else{const e=t.getStaticValue(r);t.addValue(r,a(void 0!==e?e:o,{owner:t}))}}for(const n in s)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),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}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&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=a(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){let s=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];
1return null!=s&&("string"==typeof s&&(_(s)||tt(s))?s=parseFloat(s):!v(s)&&w.test(e)&&(s=V(t,e)),this.setBaseTarget(t,n(s)?s.get():s)),n(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){const{initial:e}=this.props;let s;if("string"==typeof e||"object"==typeof e){const n=Vt(this.props,e,this.presenceContext?.custom);n&&(s=n[t])}if(e&&void 0!==s)return s;const r=this.getBaseTargetFromProps(this.props,t);return void 0===r||n(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 et),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){x.render(this.render)}}class Kt extends Gt{constructor(){super(...arguments),this.KeyframeResolver=S}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]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;n(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}}const Yt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Xt=b.length;function qt(t,e,n){const{style:s,vars:r,transformOrigin:o}=t;let i=!1,a=!1;for(const t in e){const n=e[t];if(l.has(t))i=!0;else if(M(t))r[t]=n;else{const e=C(n,A[t]);t.startsWith("origin")?(a=!0,o[t]=e):s[t]=e}}if(e.transform||(i||n?s.transform=function(t,e,n){let s="",r=!0;for(let o=0;o<Xt;o++){const i=b[o],a=t[i];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(i.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const t=C(a,A[i]);l||(r=!1,s+=`${Yt[i]||i}(${t}) `),n&&(e[i]=t)}}return s=s.trim(),n?s=n(e,r?"":s):r&&(s="none"),s}(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=o;s.transformOrigin=`${t} ${e} ${n}`}}function Zt(t,{style:e,vars:n},s,r){const o=t.style;let i;for(i in e)o[i]=e[i];for(i in r?.applyProjectionStyles(o,s),n)o.setProperty(i,n[i])}const Jt={};function Qt(t,{layout:e,layoutId:n}){return l.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!Jt[t]||"opacity"===t)}function _t(t,e,s){const{style:r}=t,o={};for(const i in r)(n(r[i])||e.style&&n(e.style[i])||Qt(i,t)||void 0!==s?.getValue(i)?.liveStyle)&&(o[i]=r[i]);return o}class te extends Kt{constructor(){super(...arguments),this.type="html",this.renderInstance=Zt}readValueFromInstance(t,e){if(l.has(e))return this.projection?.isProjecting?T(e):B(t,e);{const s=(n=t,window.getComputedStyle(n)),r=(M(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){qt(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return _t(t,e,n)}}class ee extends Gt{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(function(t,e){return t in e}(e,t)){const n=t[e];if("string"==typeof n||"number"==typeof n)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}const ne={offset:"stroke-dashoffset",array:"stroke-dasharray"},se={offset:"strokeDashoffset",array:"strokeDasharray"};function re(t,{attrX:e,attrY:n,attrScale:s,pathLength:r,pathSpacing:o=1,pathOffset:i=0,...a},l,u,c){if(qt(t,a,u),l)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=c?.transformBox??"fill-box",delete h.transformBox),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==s&&(h.scale=s),void 0!==r&&function(t,e,n=1,s=0,r=!0){t.pathLength=1;const o=r?ne:se;t[o.offset]=P.transform(-s);const i=P.transform(e),a=P.transform(n);t[o.array]=`${i} ${a}`}(h,r,o,i,!1)}const oe=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"]);class ie extends Kt{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Nt}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(l.has(e)){const t=E(e);return t&&t.default||0}return e=oe.has(e)?e:At(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,s){return function(t,e,s){const r=_t(t,e,s);for(const s in t)(n(t[s])||n(e[s]))&&(r[-1!==b.indexOf(s)?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s
1]=t[s]);return r}(t,e,s)}build(t,e,n){re(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,s){!function(t,e,n,s){Zt(t,e,void 0,s);for(const n in e.attrs)t.setAttribute(oe.has(n)?n:At(n),e.attrs[n])}(t,e,0,s)}mount(t){var e;this.isSVGTag="string"==typeof(e=t.tagName)&&"svg"===e.toLowerCase(),super.mount(t)}}function ae(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=k(t)&&!L(t)?new ie(e):new te(e);n.mount(t),vt.set(t,n)}function le(t){const e=new ee({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});e.mount(t),vt.set(t,e)}function ue(t,e,s,r){const o=[];if(function(t,e){return n(t)||"number"==typeof t||"string"==typeof t&&!ot(e)}(t,e))o.push(function(t,e,s){const r=n(t)?t:a(t);return r.start(Ft("",r,e,s)),r.animation}(t,ot(e)&&e.default||e,s&&s.default||s));else{const n=it(t,e,r),i=n.length;J(Boolean(i),"No valid elements provided.","no-valid-elements");for(let t=0;t<i;t++){const r=n[t];J(null!==r,"You're trying to perform an animation on null. Ensure that selectors are correctly finding elements and refs are correctly hydrated.","animate-null");const a=r instanceof Element?ae:le;vt.has(r)||a(r);const l=vt.get(r),u={...s};"delay"in u&&"function"==typeof u.delay&&(u.delay=u.delay(t,i)),o.push(...It(l,{...e,transition:u},{}))}}return o}function ce(t,e,a){const l=[],u=function(t,{defaultTransition:e={},...a}={},l,u){const c=e.duration||.3,h=new Map,f=new Map,p={},d=new Map;let m=0,g=0,y=0;for(let a=0;a<t.length;a++){const h=t[a];if("string"==typeof h){d.set(h,g);continue}if(!Array.isArray(h)){d.set(h.name,lt(g,h.at,m,d));continue}let[v,w,V={}]=h;void 0!==V.at&&(g=lt(g,V.at,m,d));let x=0;const S=(t,n,a,l=0,h=0)=>{const f=dt(t),{delay:p=0,times:d=s(f),type:m="keyframes",repeat:v,repeatType:w,repeatDelay:V=0,...S}=n;let{ease:b=e.ease||"easeOut",duration:C}=n;const A="function"==typeof p?p(l,h):p,M=f.length,T=r(m)?m:u?.[m||"keyframes"];if(M<=2&&T){let t=100;if(2===M&&yt(f)){const e=f[1]-f[0];t=Math.abs(e)}const e={...S};void 0!==C&&(e.duration=Z(C));const n=o(e,t,T);b=n.ease,C=n.duration}C??(C=c);const B=g+A;1===d.length&&0===d[0]&&(d[1]=1);const P=d.length-f.length;if(P>0&&i(d,P),1===f.length&&f.unshift(null),v){J(v<20,"Repeat count too high, must be less than 20","repeat-count-high"),C=at(C,v);const t=[...f],e=[...d];b=Array.isArray(b)?[...b]:[b];const n=[...b];for(let s=0;s<v;s++){f.push(...t);for(let r=0;r<t.length;r++)d.push(e[r]+(s+1)),b.push(0===r?"linear":Y(n,r-1))}ct(d,v)}const E=B+C;ut(a,f,b,d,B,E),x=Math.max(A+C,x),y=Math.max(E,y)};if(n(v))S(w,V,pt("default",ft(v,f)));else{const t=it(v,w,l,p),e=t.length;for(let n=0;n<e;n++){const s=ft(t[n],f);for(const t in w)S(w[t],mt(V,t),pt(t,s),n,e)}}m=g,g+=x}return f.forEach(((t,n)=>{for(const s in t){const r=t[s];r.sort(ht);const o=[],i=[],l=[];for(let t=0;t<r.length;t++){const{at:e,value:n,easing:s}=r[t];o.push(n),i.push(q(0,y,e)),l.push(s||"easeOut")}0!==i[0]&&(i.unshift(0),o.unshift(o[0]),l.unshift("easeInOut")),1!==i[i.length-1]&&(i.push(1),o.push(null)),h.has(n)||h.set(n,{keyframes:{},transition:{}});const u=h.get(n);u.keyframes[s]=o,u.transition[s]={...e,duration:y,ease:l,times:i,...a}}})),h}(t,e,a,{spring:F});return u.forEach((({keyframes:t,transition:e},n)=>{l.push(...ue(n,t,e))})),l}function he(t){return function(e,n,s){let r=[];var o;o=e,r=Array.isArray(o)&&o.some(Array.isArray)?ce(e,n,t):ue(e,n,s,t);const i=new O(r);return t&&(t.animations.push(i),i.finished.then((()=>{X(t.animations,i)}))),i}}const fe=he();const pe=(e=>function(n,s,r){return new O(function(e,n,s,r){const o=t(e,r),i=o.length;J(Boolean(i),"No valid elements provided.","no-valid-elements");const a=[];for(let t=0;t<i;t++){const e=o[t],r={...s};"function"==typeof r.delay&&(r.delay=r.delay(t,i));for(const t in n){let s=n[t];Array.isArray(s)||(s=[s]);const o={...u(r,t)};o.duration&&(o.duration=Z(o.duration)),o.delay&&(o.delay=Z(o.delay));const i=I(e),l=W(t,o.pseudoElement||""),c=i.get(l);c&&c.stop(),a.push({map:i,key:l,unresolvedKeyframes:s,options:{...o,element:e,name:t,allowFlatten:!r.type&&!r.ease}})}}for(let t=0;t<a.length;t++){const{unresolvedKeyframes:e,options:n}=a[t],{element:s,name:r,pseudoElement:o}=n;o||null!==e[0]||(e[0]=j(s,r)),N(e),R(e,r),!o&&e.length<2&&e.unshift(j(s,r)),n.keyframes=e}const l=[];for(let t=0;t<a.length;t++){const{map:e,key:n,options:s}=a[t],r=new D(s);e.set(n,r),r.finished.finally((()=>e.delete(n))),l.push(r)}return l}(n,s,r,e))})(),de={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function me(t,e,n,s){const r=n[e],{length:o,position:i}=de[e],a=r.current,l=n.time;r.current=t[`scroll${i}`],r.scrollLength=t[`scroll${o}`]-t[`client${o}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=q(0,r.scrollLength,r.current);const u=s-l;r.velocity=u>50?0:nt(r.current-a,u)}const ge={start:0,center:.5,end:1};function ye(t,e,n=0){let s=0;if(t in ge&&(t=ge[t]),"string"==typeof t){const e=parseFloat(t);t.endsWith("px")?s=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?s=e/100*document.documentElement.clientWidth:t.endsWith("vh")?s=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(s=e*t),n+s}const ve=[0,0];function we(t,e,n,s){let r=Array.isArray(t)?t:ve,o=0,i=0;return"number"==typeof t?r=[t,t]:"string"==typeof t&&(r=(t=t.trim()).includes(" ")?t.split(" "):[t,ge[t]?t:"0"]),o=ye(r[0],n,s),i=ye(r[1],e),o-i}const Ve={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},xe={x:0,y:0};function Se(t,e,n){const{offset:r=Ve.All}=n,{target:o=t,axis:i="y"}=n,a="y"===i?"height":"width",l=o!==t?function(t,e){const n={x:0,y:0};let s=t;for(;s&&s!==e;)if(H(s))n.x+=s.offsetLeft,n.y+=s.offsetTop,s=s.offsetParent;else if("svg"===s.tagName){const t=s.getBoundingClientRect();s=s.parentElement;const e=s.getBoundingClientRect();n.x+=t.left-e.left,n.y+=t.top-e.top}else{if(!(s instanceof SVGGraphicsElement))break;{const{x:t,y:e}=s.getBBox();n.x+=t,n.y+=e;let r=null,o=s.parentNode;for(;!r;)"svg"===o.tagName&&(r=o),o=s.parentNode;s=r}}return n}(o,t):xe,u=o===t?{width:t.scrollWidth,height:t.scrollHeight}:function(t){return"getBBox"in t&&"svg"!==t.tagName?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}(o),c={width:t.clientWidth,height:t.clientHeight};e[i].offset.length=0;let h=!e[i].interpolate;const f=r.length;for(let t=0;t<f;t++){const n=we(r[t],c[a],u[a],l[i]);
1h||n===e[i].interpolatorOffsets[t]||(h=!0),e[i].offset[t]=n}h&&(e[i].interpolate=U(e[i].offset,s(r),{clamp:!1}),e[i].interpolatorOffsets=[...e[i].offset]),e[i].progress=st(0,1,e[i].interpolate(e[i].current))}function be(t,e,n,s={}){return{measure:e=>{!function(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let s=e;for(;s&&s!==t;)n.x.targetOffset+=s.offsetLeft,n.y.targetOffset+=s.offsetTop,s=s.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}(t,s.target,n),function(t,e,n){me(t,"x",e,n),me(t,"y",e,n),e.time=n}(t,n,e),(s.offset||s.target)&&Se(t,n,s)},notify:()=>e(n)}}const Ce=new WeakMap,Ae=new WeakMap,Me=new WeakMap,Te=t=>t===document.scrollingElement?window:t;function Be(t,{container:e=document.scrollingElement,...n}={}){if(!e)return rt;let s=Me.get(e);s||(s=new Set,Me.set(e,s));const r=be(e,t,{time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}},n);if(s.add(r),!Ce.has(e)){const t=()=>{for(const t of s)t.measure(z.timestamp);h.preUpdate(n)},n=()=>{for(const t of s)t.notify()},r=()=>h.read(t);Ce.set(e,r);const o=Te(e);window.addEventListener("resize",r,{passive:!0}),e!==document.documentElement&&Ae.set(e,$(e,r)),o.addEventListener("scroll",r,{passive:!0}),r()}const o=Ce.get(e);return h.read(o,!1,!0),()=>{y(o);const t=Me.get(e);if(!t)return;if(t.delete(r),t.size)return;const n=Ce.get(e);Ce.delete(e),n&&(Te(e).removeEventListener("scroll",n),Ae.get(e)?.(),window.removeEventListener("resize",n))}}const Pe=new Map;function Ee({source:t,container:e,...n}){const{axis:s}=n;t&&(e=t);const r=Pe.get(e)??new Map;Pe.set(e,r);const o=n.target??"self",i=r.get(o)??{},a=s+(n.offset??[]).join(",");return i[a]||(i[a]=!n.target&&G()?new ScrollTimeline({source:e,axis:s}):function(t){const e={value:0},n=Be((n=>{e.value=100*n[t.axis].progress}),t);return{currentTime:e,cancel:n}}({container:e,...n})),i[a]}function ke(t,{axis:e="y",container:n=document.scrollingElement,...s}={}){if(!n)return rt;const r={axis:e,container:n,...s};return"function"==typeof t?function(t,e){return function(t){return 2===t.length}(t)?Be((n=>{t(n[e.axis].progress,n)}),e):K(t,Ee(e))}(t,r):function(t,e){const n=Ee(e);return t.attachTimeline({timeline:e.target?void 0:n,observe:t=>(t.pause(),K((e=>{t.time=t.duration*e}),n))})}(t,r)}const Le={some:0,all:1};function Fe(e,n,{root:s,margin:r,amount:o="some"}={}){const i=t(e),a=new WeakMap,l=new IntersectionObserver((t=>{t.forEach((t=>{const e=a.get(t.target);if(t.isIntersecting!==Boolean(e))if(t.isIntersecting){const e=n(t.target,t);"function"==typeof e?a.set(t.target,e):l.unobserve(t.target)}else"function"==typeof e&&(e(t),a.delete(t.target))}))}),{root:s,rootMargin:r,threshold:"number"==typeof o?o:Le[o]});return i.forEach((t=>l.observe(t))),()=>l.disconnect()}function Oe(t,e){return function(t,e){const n=g.now(),s=({timestamp:r})=>{const o=r-n;o>=e&&(y(s),t(o-e))};return h.setup(s,!0),()=>y(s)}(t,Z(e))}const Ie=(t,e)=>Math.abs(t-e);function We(t,e){const n=Ie(t.x,e.x),s=Ie(t.y,e.y);return Math.sqrt(n**2+s**2)}export{fe as animate,pe as animateMini,he as createScopedAnimate,Oe as delay,Ie as distance,We as distance2D,Fe as inView,ke as scroll,Be as scrollInfo};export default null;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.