PageSourceSearch

https://www.qlocktwo.com/_nuxt/q9v7XoUr.js

js qlocktwo.com collected 2026-09-25 09:55:58 UTC 134,560 bytes, 9 lines download raw bytes

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

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.