@ndgmnt/client--nudgemoment 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* @license
|
3
|
-
* NudgeMoment v0.0.
|
3
|
+
* NudgeMoment v0.0.13
|
4
4
|
* Copyright (c) 2025 NudgeMoment. All Rights Reserved.
|
5
5
|
*
|
6
6
|
* This source code is licensed under a proprietary license (All Rights Reserved).
|
@@ -8,8 +8,8 @@
|
|
8
8
|
* via any medium, is strictly prohibited without express written permission.
|
9
9
|
* Legal action will be taken against unauthorized use.
|
10
10
|
*/
|
11
|
-
"use strict";(()=>{var Li=Object.defineProperty;var Fi=(e,t,n)=>t in e?Li(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var P=(e,t,n)=>Fi(e,typeof t!="symbol"?t+"":t,n);var R=e=>e,ye=R,B=R,J=(e,t,n)=>{let i=t-e;return i===0?1:(n-e)/i},tn=(e,t,n)=>{let i=t-e;return((n-e)%i+i)%i+e};function Ie(e){let t;return()=>(t===void 0&&(t=e()),t)}var nn=Ie(()=>window.ScrollTimeline!==void 0),Pi=class{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){let n=this.animations.map(i=>{if(nn()&&i.attachTimeline)return i.attachTimeline(e);if(typeof t=="function")return t(i)});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 startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},be=class extends Pi{then(e,t){return Promise.all(this.animations).then(e).catch(t)}},L=e=>e*1e3,I=e=>e/1e3;function Oe(e,t){return e?e[t]||e.default||e:void 0}function Re(e,t,n){var i;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;t&&(s=t.current);let r=(i=n?.[e])!==null&&i!==void 0?i:s.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}var ve=2e4;function Be(e){let t=0,n=50,i=e.next(t);for(;!i.done&&t<ve;)t+=n,i=e.next(t);return t>=ve?1/0:t}function sn(e,t=100,n){let i=n({...e,keyframes:[0,t]}),s=Math.min(Be(i),ve);return{type:"keyframes",ease:r=>i.next(s*r).value/t,duration:I(s)}}function ee(e){return typeof e=="function"}function ke(e,t){e.timeline=t,e.onfinish=null}var Ii=class{constructor(e){this.animation=e}get duration(){var e,t,n;let i=((t=(e=this.animation)===null||e===void 0?void 0:e.effect)===null||t===void 0?void 0:t.getComputedTiming().duration)||((n=this.options)===null||n===void 0?void 0:n.duration)||300;return I(Number(i))}get time(){var e;return this.animation?I(((e=this.animation)===null||e===void 0?void 0:e.currentTime)||0):0}set time(e){this.animation&&(this.animation.currentTime=L(e))}get speed(){return this.animation?this.animation.playbackRate:1}set speed(e){this.animation&&(this.animation.playbackRate=e)}get state(){return this.animation?this.animation.playState:"finished"}get startTime(){return this.animation?this.animation.startTime:null}get finished(){return this.animation?this.animation.finished:Promise.resolve()}play(){this.animation&&this.animation.play()}pause(){this.animation&&this.animation.pause()}stop(){!this.animation||this.state==="idle"||this.state==="finished"||(this.animation.commitStyles&&this.animation.commitStyles(),this.cancel())}flatten(){var e;this.animation&&((e=this.animation.effect)===null||e===void 0||e.updateTiming({easing:"linear"}))}attachTimeline(e){return this.animation&&ke(this.animation,e),R}complete(){this.animation&&this.animation.finish()}cancel(){try{this.animation&&this.animation.cancel()}catch{}}},Oi={linearEasing:void 0};function Ri(e,t){let n=Ie(e);return()=>{var i;return(i=Oi[t])!==null&&i!==void 0?i:n()}}var Q=Ri(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),He=e=>Array.isArray(e)&&typeof e[0]=="number",Qe=(e,t,n=10)=>{let i="",s=Math.max(Math.round(t/n),2);for(let r=0;r<s;r++)i+=e(J(0,s-1,r))+", ";return`linear(${i.substring(0,i.length-2)})`};function Je(e){return!!(typeof e=="function"&&Q()||!e||typeof e=="string"&&(e in Ze||Q())||He(e)||Array.isArray(e)&&e.every(Je))}var ge=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,Ze={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ge([0,.65,.55,1]),circOut:ge([.55,0,1,.45]),backIn:ge([.31,.01,.66,-.59]),backOut:ge([.33,1.53,.69,.99])};function rn(e,t){if(e)return typeof e=="function"&&Q()?Qe(e,t):He(e)?ge(e):Array.isArray(e)?e.map(n=>rn(n,t)||Ze.easeOut):Ze[e]}function et(e,t,n,{delay:i=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[t]:n};l&&(u.offset=l);let c=rn(a,s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:i,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}var we=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),H=we("deg"),z=we("%"),f=we("px"),on=we("vh"),an=we("vw"),tt={...z,parse:e=>z.parse(e)/100,transform:e=>z.transform(e*100)},Pe={borderWidth:f,borderTopWidth:f,borderRightWidth:f,borderBottomWidth:f,borderLeftWidth:f,borderRadius:f,radius:f,borderTopLeftRadius:f,borderTopRightRadius:f,borderBottomRightRadius:f,borderBottomLeftRadius:f,width:f,maxWidth:f,height:f,maxHeight:f,top:f,right:f,bottom:f,left:f,padding:f,paddingTop:f,paddingRight:f,paddingBottom:f,paddingLeft:f,margin:f,marginTop:f,marginRight:f,marginBottom:f,marginLeft:f,backgroundPositionX:f,backgroundPositionY:f},Bi=e=>e!==null;function te(e,{repeat:t,repeatType:n="loop"},i){let s=e.filter(Bi),r=t&&n!=="loop"&&t%2===1?0:s.length-1;return!r||i===void 0?s[r]:i}function ki(e,t,n){e.style.setProperty(`--${t}`,n)}function Hi(e,t,n){e.style[t]=n}var Gi=Ie(()=>{try{document.createElement("div").animate({opacity:[1]})}catch{return!1}return!0}),nt=Ie(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Fe=new WeakMap;function Wi(e,t,n){for(let i=0;i<t.length;i++)t[i]===null&&(t[i]=i===0?n():t[i-1]),typeof t[i]=="number"&&Pe[e]&&(t[i]=Pe[e].transform(t[i]));!Gi()&&t.length<2&&t.unshift(n())}var Xt="easeOut";function Zt(e){let t=Fe.get(e)||new Map;return Fe.set(e,t),Fe.get(e)}var qi=class extends Ii{constructor(e,t,n,i){let s=t.startsWith("--");B(typeof i.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "framer-motion"?`);let r=Zt(e).get(t);r&&r.stop();let o=()=>t.startsWith("--")?e.style.getPropertyValue(t):window.getComputedStyle(e)[t];if(Array.isArray(n)||(n=[n]),Wi(t,n,o),ee(i.type)){let u=sn(i,100,i.type);i.ease=Q()?u.ease:Xt,i.duration=L(u.duration),i.type="keyframes"}else i.ease=i.ease||Xt;let a=()=>{this.setValue(e,t,te(n,i)),this.cancel(),this.resolveFinishedPromise()},l=()=>{this.setValue=s?ki:Hi,this.options=i,this.updateFinishedPromise(),this.removeAnimation=()=>{var u;return(u=Fe.get(e))===null||u===void 0?void 0:u.delete(t)}};nt()?(super(et(e,t,n,i)),l(),i.autoplay===!1&&this.animation.pause(),this.animation.onfinish=a,Zt(e).set(t,this)):(super(),l(),a())}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}play(){this.state==="finished"&&this.updateFinishedPromise(),super.play()}cancel(){this.removeAnimation(),super.cancel()}};function ln(e,t,n,i){let s=Re(e,i),r=s.length;B(!!r,"No valid element provided.");let o=[];for(let a=0;a<r;a++){let l=s[a],u={...n};typeof u.delay=="function"&&(u.delay=u.delay(a,r));for(let c in t){let h=t[c],d={...Oe(u,c)};d.duration=d.duration?L(d.duration):d.duration,d.delay=L(d.delay||0),o.push(new qi(l,c,h,d))}}return o}var Ki=e=>{function t(n,i,s){return new be(ln(n,i,s,e))}return t},Te=Ki(),it=e=>Array.isArray(e)&&typeof e[0]!="number",ne=(e,t,n)=>e+(t-e)*n;function un(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let s=J(0,t,i);e.push(ne(n,1,s))}}function st(e){let t=[0];return un(t,e.length-1),t}function cn(e,t){return it(e)?e[tn(0,e.length,t)]:e}var D=e=>!!(e&&e.getVelocity);function Ge(e){return typeof e=="object"&&!Array.isArray(e)}function rt(e,t,n,i){return typeof e=="string"&&Ge(t)?Re(e,n,i):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function $i(e,t,n){return e*(t+1)}function Qt(e,t,n,i){var s;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(s=i.get(t))!==null&&s!==void 0?s:e}function hn(e,t){e.indexOf(t)===-1&&e.push(t)}function ot(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ui(e,t,n){for(let i=0;i<e.length;i++){let s=e[i];s.at>t&&s.at<n&&(ot(e,s),i--)}}function zi(e,t,n,i,s,r){Ui(e,s,r);for(let o=0;o<t.length;o++)e.push({value:t[o],at:ne(s,r,i[o]),easing:cn(n,o)})}function ji(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function Yi(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Xi="easeInOut",Zi=20;function at(e,{defaultTransition:t={},...n}={},i,s){let r=t.duration||.3,o=new Map,a=new Map,l={},u=new Map,c=0,h=0,d=0;for(let g=0;g<e.length;g++){let v=e[g];if(typeof v=="string"){u.set(v,h);continue}else if(!Array.isArray(v)){u.set(v.name,Qt(h,v.at,c,u));continue}let[w,b,p={}]=v;p.at!==void 0&&(h=Qt(h,p.at,c,u));let T=0,V=(M,m,S,_=0,y=0)=>{let C=Qi(M),{delay:Z=0,times:k=st(C),type:Xe="keyframes",repeat:de,repeatType:zo,repeatDelay:jo=0,...Ni}=m,{ease:q=t.ease||"easeOut",duration:O}=m,Kt=typeof Z=="function"?Z(_,y):Z,$t=C.length,Ut=ee(Xe)?Xe:s?.[Xe];if($t<=2&&Ut){let fe=100;if($t===2&&ts(C)){let pe=C[1]-C[0];fe=Math.abs(pe)}let Ne={...Ni};O!==void 0&&(Ne.duration=L(O));let Le=sn(Ne,fe,Ut);q=Le.ease,O=Le.duration}O??(O=r);let zt=h+Kt;k.length===1&&k[0]===0&&(k[1]=1);let jt=k.length-C.length;if(jt>0&&un(k,jt),C.length===1&&C.unshift(null),de){B(de<Zi,"Repeat count too high, must be less than 20"),O=$i(O,de);let fe=[...C],Ne=[...k];q=Array.isArray(q)?[...q]:[q];let Le=[...q];for(let pe=0;pe<de;pe++){C.push(...fe);for(let me=0;me<fe.length;me++)k.push(Ne[me]+(pe+1)),q.push(me===0?"linear":cn(Le,me-1))}ji(k,de)}let Yt=zt+O;zi(S,C,q,k,zt,Yt),T=Math.max(Kt+O,T),d=Math.max(Yt,d)};if(D(w)){let M=Jt(w,a);V(b,p,en("default",M))}else{let M=rt(w,b,i,l),m=M.length;for(let S=0;S<m;S++){b=b,p=p;let _=M[S],y=Jt(_,a);for(let C in b)V(b[C],Ji(p,C),en(C,y),S,m)}}c=h,h+=T}return a.forEach((g,v)=>{for(let w in g){let b=g[w];b.sort(Yi);let p=[],T=[],V=[];for(let m=0;m<b.length;m++){let{at:S,value:_,easing:y}=b[m];p.push(_),T.push(J(0,d,S)),V.push(y||"easeOut")}T[0]!==0&&(T.unshift(0),p.unshift(p[0]),V.unshift(Xi)),T[T.length-1]!==1&&(T.push(1),p.push(null)),o.has(v)||o.set(v,{keyframes:{},transition:{}});let M=o.get(v);M.keyframes[w]=p,M.transition[w]={...t,duration:d,ease:V,times:T,...n}}}),o}function Jt(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function en(e,t){return t[e]||(t[e]=[]),t[e]}function Qi(e){return Array.isArray(e)?e:[e]}function Ji(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var es=e=>typeof e=="number",ts=e=>e.every(es);var X=(e,t,n)=>n>t?t:n<e?e:n;function Ln(e,t){return t?e*(1e3/t):0}var ns=5;function Fn(e,t,n){let i=Math.max(t-ns,0);return Ln(n-e(i),t-i)}var A={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},dn=.001;function is({duration:e=A.duration,bounce:t=A.bounce,velocity:n=A.velocity,mass:i=A.mass}){let s,r;ye(e<=L(A.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=X(A.minDamping,A.maxDamping,o),e=X(A.minDuration,A.maxDuration,I(e)),o<1?(s=u=>{let c=u*o,h=c*e,d=c-n,g=ht(u,o),v=Math.exp(-h);return dn-d/g*v},r=u=>{let h=u*o*e,d=h*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-h),w=ht(Math.pow(u,2),o);return(-s(u)+dn>0?-1:1)*((d-g)*v)/w}):(s=u=>{let c=Math.exp(-u*e),h=(u-n)*e+1;return-.001+c*h},r=u=>{let c=Math.exp(-u*e),h=(n-u)*(e*e);return c*h});let a=5/e,l=rs(s,r,a);if(e=L(e),isNaN(l))return{stiffness:A.stiffness,damping:A.damping,duration:e};{let u=Math.pow(l,2)*i;return{stiffness:u,damping:o*2*Math.sqrt(i*u),duration:e}}}var ss=12;function rs(e,t,n){let i=n;for(let s=1;s<ss;s++)i=i-e(i)/t(i);return i}function ht(e,t){return e*Math.sqrt(1-t*t)}var os=["duration","bounce"],as=["stiffness","damping","mass"];function fn(e,t){return t.some(n=>e[n]!==void 0)}function ls(e){let t={velocity:A.velocity,stiffness:A.stiffness,damping:A.damping,mass:A.mass,isResolvedFromDuration:!1,...e};if(!fn(e,as)&&fn(e,os))if(e.visualDuration){let n=e.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,r=2*X(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:A.mass,stiffness:s,damping:r}}else{let n=is(e);t={...t,...n,mass:A.mass},t.isResolvedFromDuration=!0}return t}function wt(e=A.visualDuration,t=A.bounce){let n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:s}=n,r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:h,velocity:d,isResolvedFromDuration:g}=ls({...n,velocity:-I(n.velocity||0)}),v=d||0,w=u/(2*Math.sqrt(l*c)),b=o-r,p=I(Math.sqrt(l/c)),T=Math.abs(b)<5;i||(i=T?A.restSpeed.granular:A.restSpeed.default),s||(s=T?A.restDelta.granular:A.restDelta.default);let V;if(w<1){let m=ht(p,w);V=S=>{let _=Math.exp(-w*p*S);return o-_*((v+w*p*b)/m*Math.sin(m*S)+b*Math.cos(m*S))}}else if(w===1)V=m=>o-Math.exp(-p*m)*(b+(v+p*b)*m);else{let m=p*Math.sqrt(w*w-1);V=S=>{let _=Math.exp(-w*p*S),y=Math.min(m*S,300);return o-_*((v+w*p*b)*Math.sinh(y)+m*b*Math.cosh(y))/m}}let M={calculatedDuration:g&&h||null,next:m=>{let S=V(m);if(g)a.done=m>=h;else{let _=0;w<1&&(_=m===0?L(v):Fn(V,m,S));let y=Math.abs(_)<=i,C=Math.abs(o-S)<=s;a.done=y&&C}return a.value=a.done?o:S,a},toString:()=>{let m=Math.min(Be(M),ve),S=Qe(_=>M.next(m*_).value,m,30);return m+"ms "+S}};return M}var se=new WeakMap,oe=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ae=new Set(oe),Pn=new Set(["width","height","top","left","right","bottom",...oe]),us=e=>Array.isArray(e),cs=e=>us(e)?e[e.length-1]||0:e,hs={skipAnimations:!1,useManualTiming:!1};function ds(e){let t=new Set,n=new Set,i=!1,s=!1,r=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(l.schedule(u),e()),u(o)}let l={schedule:(u,c=!1,h=!1)=>{let g=h&&i?t:n;return c&&r.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=u,i){s=!0;return}i=!0,[t,n]=[n,t],t.forEach(a),t.clear(),i=!1,s&&(s=!1,l.process(u))}};return l}var Se=["read","resolveKeyframes","update","preRender","render","postRender"],fs=40;function ps(e,t){let n=!1,i=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Se.reduce((p,T)=>(p[T]=ds(r),p),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:d}=o,g=()=>{let p=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(p-s.timestamp,fs),1),s.timestamp=p,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),h.process(s),d.process(s),s.isProcessing=!1,n&&t&&(i=!1,e(g))},v=()=>{n=!0,i=!0,s.isProcessing||e(g)};return{schedule:Se.reduce((p,T)=>{let V=o[T];return p[T]=(M,m=!1,S=!1)=>(n||v(),V.schedule(M,m,S)),p},{}),cancel:p=>{for(let T=0;T<Se.length;T++)o[Se[T]].cancel(p)},state:s,steps:o}}var{schedule:G,cancel:Ke,state:$e,steps:ra}=ps(typeof requestAnimationFrame<"u"?requestAnimationFrame:R,!0),qe;function ms(){qe=void 0}var K={now:()=>(qe===void 0&&K.set($e.isProcessing||hs.useManualTiming?$e.timestamp:performance.now()),qe),set:e=>{qe=e,queueMicrotask(ms)}},In=class{constructor(){this.subscriptions=[]}add(e){return hn(this.subscriptions,e),()=>ot(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,t,n);else for(let s=0;s<i;s++){let r=this.subscriptions[s];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var pn=30,gs=e=>!isNaN(parseFloat(e)),vs=class{constructor(e,t={}){this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{let s=K.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=K.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=gs(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new In);let n=this.events[e].add(t);return e==="change"?()=>{n(),G.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){!t||!this.passiveEffect?this.updateAndNotify(e,t):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=K.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>pn)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,pn);return Ln(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function xe(e,t){return new vs(e,t)}function mn(e){let t=[{},{}];return e?.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function On(e,t,n,i){if(typeof t=="function"){let[s,r]=mn(i);t=t(n!==void 0?n:e.custom,s,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[s,r]=mn(i);t=t(n!==void 0?n:e.custom,s,r)}return t}function ys(e,t,n){let i=e.getProps();return On(i,t,i.custom,e)}function bs(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xe(n))}function ws(e,t){let n=ys(e,t),{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(let o in r){let a=cs(r[o]);bs(e,o,a)}}function Ts(e){return!!(D(e)&&e.add)}function Ss(e,t){let n=e.getValue("willChange");if(Ts(n))return n.add(t)}var Tt=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Cs="framerAppearId",xs="data-"+Tt(Cs);function Es(e){return e.props[xs]}var Rn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ms=1e-7,_s=12;function As(e,t,n,i,s){let r,o,a=0;do o=t+(n-t)/2,r=Rn(o,i,s)-e,r>0?n=o:t=o;while(Math.abs(r)>Ms&&++a<_s);return o}function _e(e,t,n,i){if(e===t&&n===i)return R;let s=r=>As(r,0,1,e,n);return r=>r===0||r===1?r:Rn(s(r),t,i)}var Bn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kn=e=>t=>1-e(1-t),Hn=_e(.33,1.53,.69,.99),St=kn(Hn),Gn=Bn(St),Wn=e=>(e*=2)<1?.5*St(e):.5*(2-Math.pow(2,-10*(e-1))),Ct=e=>1-Math.sin(Math.acos(e)),Vs=kn(Ct),qn=Bn(Ct),Kn=e=>/^0[^.\s]+$/u.test(e);function Ds(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Kn(e):!0}var le={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ee={...le,transform:e=>X(0,1,e)},We={...le,default:1},Ce=e=>Math.round(e*1e5)/1e5,xt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ns(e){return e==null}var Ls=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Et=(e,t)=>n=>!!(typeof n=="string"&&Ls.test(n)&&n.startsWith(e)||t&&!Ns(n)&&Object.prototype.hasOwnProperty.call(n,t)),$n=(e,t,n)=>i=>{if(typeof i!="string")return i;let[s,r,o,a]=i.match(xt);return{[e]:parseFloat(s),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Fs=e=>X(0,255,e),lt={...le,transform:e=>Math.round(Fs(e))},j={test:Et("rgb","red"),parse:$n("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+lt.transform(e)+", "+lt.transform(t)+", "+lt.transform(n)+", "+Ce(Ee.transform(i))+")"};function Ps(e){let t="",n="",i="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,i+=i,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}var dt={test:Et("#"),parse:Ps,transform:j.transform},ie={test:Et("hsl","hue"),parse:$n("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+z.transform(Ce(t))+", "+z.transform(Ce(n))+", "+Ce(Ee.transform(i))+")"},N={test:e=>j.test(e)||dt.test(e)||ie.test(e),parse:e=>j.test(e)?j.parse(e):ie.test(e)?ie.parse(e):dt.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?j.transform(e):ie.transform(e)},Is=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Os(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(xt))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Is))===null||n===void 0?void 0:n.length)||0)>0}var Un="number",zn="color",Rs="var",Bs="var(",gn="${}",ks=/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 Me(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},s=[],r=0,a=t.replace(ks,l=>(N.test(l)?(i.color.push(r),s.push(zn),n.push(N.parse(l))):l.startsWith(Bs)?(i.var.push(r),s.push(Rs),n.push(l)):(i.number.push(r),s.push(Un),n.push(parseFloat(l))),++r,gn)).split(gn);return{values:n,split:a,indexes:i,types:s}}function jn(e){return Me(e).values}function Yn(e){let{split:t,types:n}=Me(e),i=t.length;return s=>{let r="";for(let o=0;o<i;o++)if(r+=t[o],s[o]!==void 0){let a=n[o];a===Un?r+=Ce(s[o]):a===zn?r+=N.transform(s[o]):r+=s[o]}return r}}var Hs=e=>typeof e=="number"?0:e;function Gs(e){let t=jn(e);return Yn(e)(t.map(Hs))}var ue={test:Os,parse:jn,createTransformer:Yn,getAnimatableNone:Gs},Ws=new Set(["brightness","contrast","saturate","opacity"]);function qs(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[i]=n.match(xt)||[];if(!i)return e;let s=n.replace(i,""),r=Ws.has(t)?1:0;return i!==n&&(r*=100),t+"("+r+s+")"}var Ks=/\b([a-z-]*)\(.*?\)/gu,ft={...ue,getAnimatableNone:e=>{let t=e.match(Ks);return t?t.map(qs).join(" "):e}},$s={rotate:H,rotateX:H,rotateY:H,rotateZ:H,scale:We,scaleX:We,scaleY:We,scaleZ:We,skew:H,skewX:H,skewY:H,distance:f,translateX:f,translateY:f,translateZ:f,x:f,y:f,z:f,perspective:f,transformPerspective:f,opacity:Ee,originX:tt,originY:tt,originZ:f},vn={...le,transform:Math.round},Mt={...Pe,...$s,zIndex:vn,size:f,fillOpacity:Ee,strokeOpacity:Ee,numOctaves:vn},Us={...Mt,color:N,backgroundColor:N,outlineColor:N,fill:N,stroke:N,borderColor:N,borderTopColor:N,borderRightColor:N,borderBottomColor:N,borderLeftColor:N,filter:ft,WebkitFilter:ft},_t=e=>Us[e];function Xn(e,t){let n=_t(e);return n!==ft&&(n=ue),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var zs=new Set(["auto","none","0"]);function js(e,t,n){let i=0,s;for(;i<e.length&&!s;){let r=e[i];typeof r=="string"&&!zs.has(r)&&Me(r).values.length&&(s=e[i]),i++}if(s&&n)for(let r of t)e[r]=Xn(n,s)}var yn=e=>e===le||e===f,bn=(e,t)=>parseFloat(e.split(", ")[t]),wn=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;let s=i.match(/^matrix3d\((.+)\)$/u);if(s)return bn(s[1],t);{let r=i.match(/^matrix\((.+)\)$/u);return r?bn(r[1],e):0}},Ys=new Set(["x","y","z"]),Xs=oe.filter(e=>!Ys.has(e));function Zs(e){let t=[];return Xs.forEach(n=>{let i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}var re={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:wn(4,13),y:wn(5,14)};re.translateX=re.x;re.translateY=re.y;var Y=new Set,pt=!1,mt=!1;function Zn(){if(mt){let e=Array.from(Y).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{let s=Zs(i);s.length&&(n.set(i,s),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();let s=n.get(i);s&&s.forEach(([r,o])=>{var a;(a=i.getValue(r))===null||a===void 0||a.set(o)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}mt=!1,pt=!1,Y.forEach(e=>e.complete()),Y.clear()}function Qn(){Y.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(mt=!0)})}function Qs(){Qn(),Zn()}var At=class{constructor(e,t,n,i,s,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=s,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Y.add(this),pt||(pt=!0,G.read(Qn),G.resolveKeyframes(Zn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;for(let s=0;s<e.length;s++)if(e[s]===null)if(s===0){let r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(n&&t){let a=n.readValue(t,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}else e[s]=e[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Y.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Y.delete(this))}resume(){this.isComplete||this.scheduleResolve()}},Jn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ei=e=>t=>typeof t=="string"&&t.startsWith(e),ti=ei("--"),Js=ei("var(--"),Vt=e=>Js(e)?er.test(e.split("/*")[0].trim()):!1,er=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nr(e){let t=tr.exec(e);if(!t)return[,];let[,n,i,s]=t;return[`--${n??i}`,s]}var ir=4;function ni(e,t,n=1){B(n<=ir,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,s]=nr(e);if(!i)return;let r=window.getComputedStyle(t).getPropertyValue(i);if(r){let o=r.trim();return Jn(o)?parseFloat(o):o}return Vt(s)?ni(s,t,n+1):s}var ii=e=>t=>t.test(e),sr={test:e=>e==="auto",parse:e=>e},si=[le,f,z,H,an,on,sr],Tn=e=>si.find(ii(e)),ri=class extends At{constructor(e,t,n,i,s){super(e,t,n,i,s,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let a=0;a<e.length;a++){let l=e[a];if(typeof l=="string"&&(l=l.trim(),Vt(l))){let u=ni(l,t.current);u!==void 0&&(e[a]=u),a===e.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Pn.has(n)||e.length!==2)return;let[i,s]=e,r=Tn(i),o=Tn(s);if(r!==o)if(yn(r)&&yn(o))for(let a=0;a<e.length;a++){let l=e[a];typeof l=="string"&&(e[a]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let i=0;i<e.length;i++)Ds(e[i])&&n.push(i);n.length&&js(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=re[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];i!==void 0&&e.getValue(n,i).jump(i,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);let r=i.length-1,o=i[r];i[r]=re[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}},Sn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ue.test(e)||e==="0")&&!e.startsWith("url("));function rr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function or(e,t,n,i){let s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;let r=e[e.length-1],o=Sn(s,t),a=Sn(r,t);return ye(o===a,`You are trying to animate ${t} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`),!o||!a?!1:rr(e)||(n==="spring"||ee(n))&&i}var ar=40,oi=class{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:r="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=K.now(),this.options={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:s,repeatType:r,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>ar?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Qs(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=K.now(),this.hasAttemptedResolve=!0;let{name:n,type:i,velocity:s,delay:r,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!or(e,n,i,s))if(r)this.options.duration=0;else{a?.(te(e,this.options,t)),o?.(),this.resolveFinishedPromise();return}let u=this.initPlayback(e,t);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}};function ut(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function lr({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let s=0,r=0,o=0;if(!t)s=r=o=n;else{let a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=ut(l,a,e+1/3),r=ut(l,a,e),o=ut(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:i}}function Ue(e,t){return n=>n>0?t:e}var ct=(e,t,n)=>{let i=e*e,s=n*(t*t-i)+i;return s<0?0:Math.sqrt(s)},ur=[dt,j,ie],cr=e=>ur.find(t=>t.test(e));function Cn(e){let t=cr(e);if(ye(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ie&&(n=lr(n)),n}var xn=(e,t)=>{let n=Cn(e),i=Cn(t);if(!n||!i)return Ue(e,t);let s={...n};return r=>(s.red=ct(n.red,i.red,r),s.green=ct(n.green,i.green,r),s.blue=ct(n.blue,i.blue,r),s.alpha=ne(n.alpha,i.alpha,r),j.transform(s))},hr=(e,t)=>n=>t(e(n)),Dt=(...e)=>e.reduce(hr),gt=new Set(["none","hidden"]);function dr(e,t){return gt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function fr(e,t){return n=>ne(e,t,n)}function Nt(e){return typeof e=="number"?fr:typeof e=="string"?Vt(e)?Ue:N.test(e)?xn:gr:Array.isArray(e)?ai:typeof e=="object"?N.test(e)?xn:pr:Ue}function ai(e,t){let n=[...e],i=n.length,s=e.map((r,o)=>Nt(r)(r,t[o]));return r=>{for(let o=0;o<i;o++)n[o]=s[o](r);return n}}function pr(e,t){let n={...e,...t},i={};for(let s in n)e[s]!==void 0&&t[s]!==void 0&&(i[s]=Nt(e[s])(e[s],t[s]));return s=>{for(let r in i)n[r]=i[r](s);return n}}function mr(e,t){var n;let i=[],s={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let o=t.types[r],a=e.indexes[o][s[o]],l=(n=e.values[a])!==null&&n!==void 0?n:0;i[r]=l,s[o]++}return i}var gr=(e,t)=>{let n=ue.createTransformer(t),i=Me(e),s=Me(t);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?gt.has(e)&&!s.values.length||gt.has(t)&&!i.values.length?dr(e,t):Dt(ai(mr(i,s),s.values),n):(ye(!0,`Complex values '${e}' and '${t}' 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.`),Ue(e,t))};function li(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ne(e,t,n):Nt(e)(e,t)}function En({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){let h=e[0],d={done:!1,value:h},g=y=>a!==void 0&&y<a||l!==void 0&&y>l,v=y=>a===void 0?l:l===void 0||Math.abs(a-y)<Math.abs(l-y)?a:l,w=n*t,b=h+w,p=o===void 0?b:o(b);p!==b&&(w=p-h);let T=y=>-w*Math.exp(-y/i),V=y=>p+T(y),M=y=>{let C=T(y),Z=V(y);d.done=Math.abs(C)<=u,d.value=d.done?p:Z},m,S,_=y=>{g(d.value)&&(m=y,S=wt({keyframes:[d.value,v(d.value)],velocity:Fn(V,y,d.value),damping:s,stiffness:r,restDelta:u,restSpeed:c}))};return _(0),{calculatedDuration:null,next:y=>{let C=!1;return!S&&m===void 0&&(C=!0,M(y),_(y)),m!==void 0&&y>=m?S.next(y-m):(!C&&M(y),d)}}}var vr=_e(.42,0,1,1),yr=_e(0,0,.58,1),ui=_e(.42,0,.58,1),Mn={linear:R,easeIn:vr,easeInOut:ui,easeOut:yr,circIn:Ct,circInOut:qn,circOut:Vs,backIn:St,backInOut:Gn,backOut:Hn,anticipate:Wn},vt=e=>{if(He(e)){B(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,s]=e;return _e(t,n,i,s)}else if(typeof e=="string")return B(Mn[e]!==void 0,`Invalid easing type '${e}'`),Mn[e];return e};function br(e,t,n){let i=[],s=n||li,r=e.length-1;for(let o=0;o<r;o++){let a=s(e[o],e[o+1]);if(t){let l=Array.isArray(t)?t[o]||R:t;a=Dt(l,a)}i.push(a)}return i}function wr(e,t,{clamp:n=!0,ease:i,mixer:s}={}){let r=e.length;if(B(r===t.length,"Both input and output ranges must be the same length"),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=br(t,i,s),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(c<e[h+1]);h++);let d=J(e[h],e[h+1],c);return a[h](d)};return n?c=>u(X(e[0],e[r-1],c)):u}function Tr(e,t){return e.map(n=>n*t)}function Sr(e,t){return e.map(()=>t||ui).splice(0,e.length-1)}function ze({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){let s=it(i)?i.map(vt):vt(i),r={done:!1,value:t[0]},o=Tr(n&&n.length===t.length?n:st(t),e),a=wr(o,t,{ease:Array.isArray(s)?s:Sr(t,s)});return{calculatedDuration:e,next:l=>(r.value=a(l),r.done=l>=e,r)}}var Cr=e=>{let t=({timestamp:n})=>e(n);return{start:()=>G.update(t,!0),stop:()=>Ke(t),now:()=>$e.isProcessing?$e.timestamp:K.now()}},xr={decay:En,inertia:En,tween:ze,keyframes:ze,spring:wt},Er=e=>e/100,Lt=class extends oi{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:a}=this.options;a&&a()};let{name:t,motionValue:n,element:i,keyframes:s}=this.options,r=i?.KeyframeResolver||At,o=(a,l)=>this.onKeyframesResolved(a,l);this.resolver=new r(s,o,t,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let{type:t="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:r=0}=this.options,o=ee(t)?t:xr[t]||ze,a,l;o!==ze&&typeof e[0]!="number"&&(a=Dt(Er,li(e[0],e[1])),e=[0,100]);let u=o({...this.options,keyframes:e});s==="mirror"&&(l=o({...this.options,keyframes:[...e].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Be(u));let{calculatedDuration:c}=u,h=c+i,d=h*(n+1)-i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:c,resolvedDuration:h,totalDuration:d}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:_}=this.options;return{done:!0,value:_[_.length-1]}}let{finalKeyframe:i,generator:s,mirroredGenerator:r,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(this.startTime===null)return s.next(0);let{delay:h,repeat:d,repeatType:g,repeatDelay:v,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let b=this.currentTime-h*(this.speed>=0?1:-1),p=this.speed>=0?b<0:b>u;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let T=this.currentTime,V=s;if(d){let _=Math.min(this.currentTime,u)/c,y=Math.floor(_),C=_%1;!C&&_>=1&&(C=1),C===1&&y--,y=Math.min(y,d+1),!!(y%2)&&(g==="reverse"?(C=1-C,v&&(C-=v/c)):g==="mirror"&&(V=r)),T=X(0,1,C)*c}let M=p?{done:!1,value:a[0]}:V.next(T);o&&(M.value=o(M.value));let{done:m}=M;!p&&l!==null&&(m=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&m);return S&&i!==void 0&&(M.value=te(a,this.options,i)),w&&w(M.value),S&&this.finish(),M}get duration(){let{resolved:e}=this;return e?I(e.calculatedDuration):0}get time(){return I(this.currentTime)}set time(e){e=L(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=I(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=Cr,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),t&&t();let i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}},Mr=new Set(["opacity","clipPath","filter","transform"]),je=10,_r=2e4;function Ar(e){return ee(e.type)||e.type==="spring"||!Je(e.ease)}function Vr(e,t){let n=new Lt({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:e[0]},s=[],r=0;for(;!i.done&&r<_r;)i=n.sample(r),s.push(i.value),r+=je;return{times:void 0,keyframes:s,duration:r-je,ease:"linear"}}var ci={anticipate:Wn,backInOut:Gn,circInOut:qn};function Dr(e){return e in ci}var _n=class extends oi{constructor(e){super(e);let{name:t,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new ri(s,(r,o)=>this.onKeyframesResolved(r,o),t,n,i),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:i=300,times:s,ease:r,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!(!((n=a.owner)===null||n===void 0)&&n.current))return!1;if(typeof r=="string"&&Q()&&Dr(r)&&(r=ci[r]),Ar(this.options)){let{onComplete:h,onUpdate:d,motionValue:g,element:v,...w}=this.options,b=Vr(e,w);e=b.keyframes,e.length===1&&(e[1]=e[0]),i=b.duration,s=b.times,r=b.ease,o="keyframes"}let c=et(a.owner.current,l,e,{...this.options,duration:i,times:s,ease:r});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(ke(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:h}=this.options;a.set(te(e,this.options,t)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:s,type:o,ease:r,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return I(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return I(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=L(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{let{resolved:t}=this;if(!t)return R;let{animation:n}=t;ke(n,e)}return R}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.playState==="finished"&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:i,type:s,ease:r,times:o}=e;if(t.playState==="idle"||t.playState==="finished")return;if(this.time){let{motionValue:l,onUpdate:u,onComplete:c,element:h,...d}=this.options,g=new Lt({...d,keyframes:n,duration:i,type:s,ease:r,times:o,isGenerator:!0}),v=L(this.time);l.setWithVelocity(g.sample(v-je).value,g.sample(v).value,je)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:s,damping:r,type:o}=e;return nt()&&n&&Mr.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!i&&s!=="mirror"&&r!==0&&o!=="inertia"}},Nr={type:"spring",stiffness:500,damping:25,restSpeed:10},Lr=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Fr={type:"keyframes",duration:.8},Pr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ir=(e,{keyframes:t})=>t.length>2?Fr:ae.has(e)?e.startsWith("scale")?Lr(t[1]):Nr:Pr;function Or({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}var hi=(e,t,n,i={},s,r)=>o=>{let a=Oe(i,e)||{},l=a.delay||i.delay||0,{elapsed:u=0}=i;u=u-L(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:s};Or(a)||(c={...c,...Ir(e,c)}),c.duration&&(c.duration=L(c.duration)),c.repeatDelay&&(c.repeatDelay=L(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),h&&!r&&t.get()!==void 0){let d=te(c.keyframes,a);if(d!==void 0)return G.update(()=>{c.onUpdate(d),c.onComplete()}),new be([])}return!r&&_n.supports(c)?new _n(c):new Lt(c)};function Rr({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function Br(e,t,{delay:n=0,transitionOverride:i,type:s}={}){var r;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;i&&(o=i);let u=[],c=s&&e.animationState&&e.animationState.getState()[s];for(let h in l){let d=e.getValue(h,(r=e.latestValues[h])!==null&&r!==void 0?r:null),g=l[h];if(g===void 0||c&&Rr(c,h))continue;let v={delay:n,...Oe(o||{},h)},w=!1;if(window.MotionHandoffAnimation){let p=Es(e);if(p){let T=window.MotionHandoffAnimation(p,h,G);T!==null&&(v.startTime=T,w=!0)}}Ss(e,h),d.start(hi(h,d,g,e.shouldReduceMotion&&Pn.has(h)?{type:!1}:v,e,w));let b=d.animation;b&&u.push(b)}return a&&Promise.all(u).then(()=>{G.update(()=>{a&&ws(e,a)})}),u}function kr(e){return e instanceof SVGElement&&e.tagName!=="svg"}var An=()=>({min:0,max:0}),Ft=()=>({x:An(),y:An()}),Vn={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"]},yt={};for(let e in Vn)yt[e]={isEnabled:t=>Vn[e].some(n=>!!t[n])};var Hr=typeof window<"u",bt={current:null},di={current:!1};function Gr(){if(di.current=!0,!!Hr)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>bt.current=e.matches;e.addListener(t),t()}else bt.current=!1}var Wr=[...si,N,ue],qr=e=>Wr.find(ii(e));function Kr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function $r(e){return typeof e=="string"||Array.isArray(e)}var Ur=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zr=["initial",...Ur];function fi(e){return Kr(e.animate)||zr.some(t=>$r(e[t]))}function jr(e){return!!(fi(e)||e.variants)}function Yr(e,t,n){for(let i in t){let s=t[i],r=n[i];if(D(s))e.addValue(i,s);else if(D(r))e.addValue(i,xe(s,{owner:e}));else if(r!==s)if(e.hasValue(i)){let o=e.getValue(i);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{let o=e.getStaticValue(i);e.addValue(i,xe(o!==void 0?o:s,{owner:e}))}}for(let i in n)t[i]===void 0&&e.removeValue(i);return t}var Dn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],pi=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=At,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=()=>{let d=K.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,G.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=r;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=fi(t),this.isVariantNode=jr(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(let d in h){let g=h[d];a[d]!==void 0&&D(g)&&g.set(a[d],!1)}}mount(e){this.current=e,se.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((t,n)=>this.bindToMotionValue(n,t)),di.current||Gr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:bt.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){se.delete(this.current),this.projection&&this.projection.unmount(),Ke(this.notifyUpdate),Ke(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=ae.has(e),i=t.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&G.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=t.on("renderRequest",this.scheduleRender),r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),s(),r&&r(),t.owner&&t.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 yt){let t=yt[e];if(!t)continue;let{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){let s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ft()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<Dn.length;n++){let i=Dn[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s="on"+i,r=e[s];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Yr(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=xe(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Jn(i)||Kn(i))?i=parseFloat(i):!qr(i)&&ue.test(t)&&(i=Xn(e,t)),this.setBaseTarget(e,D(i)?i.get():i)),D(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,i;if(typeof n=="string"||typeof n=="object"){let r=On(this.props,n,(t=this.presenceContext)===null||t===void 0?void 0:t.custom);r&&(i=r[e])}if(n&&i!==void 0)return i;let s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!D(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new In),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}},mi=class extends pi{constructor(){super(...arguments),this.KeyframeResolver=ri}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;D(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}},gi=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Zr=oe.length;function Qr(e,t,n){let i="",s=!0;for(let r=0;r<Zr;r++){let o=oe[r],a=e[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){let u=gi(a,Mt[o]);if(!l){s=!1;let c=Xr[o]||o;i+=`${c}(${u}) `}n&&(t[o]=u)}}return i=i.trim(),n?i=n(t,s?"":i):s&&(i="none"),i}function vi(e,t,n){let{style:i,vars:s,transformOrigin:r}=e,o=!1,a=!1;for(let l in t){let u=t[l];if(ae.has(l)){o=!0;continue}else if(ti(l)){s[l]=u;continue}else{let c=gi(u,Mt[l]);l.startsWith("origin")?(a=!0,r[l]=c):i[l]=c}}if(t.transform||(o||n?i.transform=Qr(t,e.transform,n):i.transform&&(i.transform="none")),a){let{originX:l="50%",originY:u="50%",originZ:c=0}=r;i.transformOrigin=`${l} ${u} ${c}`}}function Nn(e,t,n){return typeof e=="string"?e:f.transform(t+n*e)}function Jr(e,t,n){let i=Nn(t,e.x,e.width),s=Nn(n,e.y,e.height);return`${i} ${s}`}var eo={offset:"stroke-dashoffset",array:"stroke-dasharray"},to={offset:"strokeDashoffset",array:"strokeDasharray"};function no(e,t,n=1,i=0,s=!0){e.pathLength=1;let r=s?eo:to;e[r.offset]=f.transform(-i);let o=f.transform(t),a=f.transform(n);e[r.array]=`${o} ${a}`}function io(e,{attrX:t,attrY:n,attrScale:i,originX:s,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(vi(e,u,h),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:g,dimensions:v}=e;d.transform&&(v&&(g.transform=d.transform),delete d.transform),v&&(s!==void 0||r!==void 0||g.transform)&&(g.transformOrigin=Jr(v,s!==void 0?s:.5,r!==void 0?r:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),i!==void 0&&(d.scale=i),o!==void 0&&no(d,o,a,l,!1)}var yi=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"]),so=e=>typeof e=="string"&&e.toLowerCase()==="svg";function bi(e,{style:t,vars:n},i,s){Object.assign(e.style,t,s&&s.getProjectionStyles(i));for(let r in n)e.style.setProperty(r,n[r])}function ro(e,t,n,i){bi(e,t,void 0,i);for(let s in t.attrs)e.setAttribute(yi.has(s)?s:Tt(s),t.attrs[s])}var oo={};function ao(e,{layout:t,layoutId:n}){return ae.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!oo[e]||e==="opacity")}function wi(e,t,n){var i;let{style:s}=e,r={};for(let o in s)(D(s[o])||t.style&&D(t.style[o])||ao(o,e)||((i=n?.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(r[o]=s[o]);return r}function lo(e,t,n){let i=wi(e,t,n);for(let s in e)if(D(e[s])||D(t[s])){let r=oe.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[r]=e[s]}return i}var uo=class extends mi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ft}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ae.has(t)){let n=_t(t);return n&&n.default||0}return t=yi.has(t)?t:Tt(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return lo(e,t,n)}build(e,t,n){io(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,i){ro(e,t,n,i)}mount(e){this.isSVGTag=so(e.tagName),super.mount(e)}};function co({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function ho(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function fo(e,t){return co(ho(e.getBoundingClientRect(),t))}function po(e){return window.getComputedStyle(e)}var mo=class extends mi{constructor(){super(...arguments),this.type="html",this.renderInstance=bi}readValueFromInstance(e,t){if(ae.has(t)){let n=_t(t);return n&&n.default||0}else{let n=po(e),i=(ti(t)?n.getPropertyValue(t):n[t])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return fo(e,t)}build(e,t,n){vi(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return wi(e,t,n)}};function go(e,t){return e in t}var vo=class extends pi{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(go(t,e)){let n=e[t];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Ft()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}};function yo(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=kr(e)?new uo(t):new mo(t);n.mount(e),se.set(e,n)}function bo(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new vo(t);n.mount(e),se.set(e,n)}function wo(e,t,n){let i=D(e)?e:xe(e);return i.start(hi("",i,t,n)),i.animation}function To(e,t){return D(e)||typeof e=="number"||typeof e=="string"&&!Ge(t)}function Ti(e,t,n,i){let s=[];if(To(e,t))s.push(wo(e,Ge(t)&&t.default||t,n&&(n.default||n)));else{let r=rt(e,t,i),o=r.length;B(!!o,"No valid elements provided.");for(let a=0;a<o;a++){let l=r[a],u=l instanceof Element?yo:bo;se.has(l)||u(l);let c=se.get(l),h={...n};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(a,o)),s.push(...Br(c,{...t,transition:h},{}))}}return s}function So(e,t,n){let i=[];return at(e,t,n,{spring:wt}).forEach(({keyframes:r,transition:o},a)=>{i.push(...Ti(a,r,o))}),i}function Co(e){return Array.isArray(e)&&e.some(Array.isArray)}function xo(e){function t(n,i,s){let r=[];Co(n)?r=So(n,i,e):r=Ti(n,i,s,e);let o=new be(r);return e&&e.animations.push(o),o}return t}var oa=xo();var Eo={some:0,all:1};function W(e,t,{root:n,margin:i,amount:s="some"}={}){let r=Re(e),o=new WeakMap,a=u=>{u.forEach(c=>{let h=o.get(c.target);if(c.isIntersecting!==!!h)if(c.isIntersecting){let d=t(c);typeof d=="function"?o.set(c.target,d):l.unobserve(c.target)}else typeof h=="function"&&(h(c),o.delete(c.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:i,threshold:typeof s=="number"?s:Eo[s]});return r.forEach(u=>l.observe(u)),()=>l.disconnect()}function Mo(e,t){if(e==="first")return 0;{let n=t-1;return e==="last"?n:n/2}}function Pt(e=.1,{startDelay:t=0,from:n=0,ease:i}={}){return(s,r)=>{let o=typeof n=="number"?n:Mo(n,r),a=Math.abs(o-s),l=e*a;if(i){let u=r*e;l=vt(i)(l/u)*u}return t+l}}var aa=Se.reduce((e,t)=>(e[t]=n=>Ke(n),e),{});var _o=Symbol.for("preact-signals");function Ot(){if(ce>1)ce--;else{for(var e,t=!1;Ae!==void 0;){var n=Ae;for(Ae=void 0,It++;n!==void 0;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&xi(n))try{n.c()}catch(s){t||(e=s,t=!0)}n=i}}if(It=0,ce--,t)throw e}}var x=void 0;var Ae=void 0,ce=0,It=0,Ye=0;function Si(e){if(x!==void 0){var t=e.n;if(t===void 0||t.t!==x)return t={i:0,S:e,p:x.s,n:void 0,t:x,e:void 0,x:void 0,r:t},x.s!==void 0&&(x.s.n=t),x.s=t,e.n=t,32&x.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=x.s,t.n=void 0,x.s.n=t,x.s=t),t}}function F(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}F.prototype.brand=_o;F.prototype.h=function(){return!0};F.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};F.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};F.prototype.subscribe=function(e){var t=this;return Vo(function(){var n=t.value,i=x;x=void 0;try{e(n)}finally{x=i}})};F.prototype.valueOf=function(){return this.value};F.prototype.toString=function(){return this.value+""};F.prototype.toJSON=function(){return this.value};F.prototype.peek=function(){var e=x;x=void 0;try{return this.value}finally{x=e}};Object.defineProperty(F.prototype,"value",{get:function(){var e=Si(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(It>100)throw new Error("Cycle detected");this.v=e,this.i++,Ye++,ce++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ot()}}}});function Ci(e){return new F(e)}function xi(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Ei(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Mi(e){for(var t=e.s,n=void 0;t!==void 0;){var i=t.p;t.i===-1?(t.S.U(t),i!==void 0&&(i.n=t.n),t.n!==void 0&&(t.n.p=i)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=i}e.s=n}function Ve(e){F.call(this,void 0),this.x=e,this.s=void 0,this.g=Ye-1,this.f=4}(Ve.prototype=new F).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ye))return!0;if(this.g=Ye,this.f|=1,this.i>0&&!xi(this))return this.f&=-2,!0;var e=x;try{Ei(this),x=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return x=e,Mi(this),this.f&=-2,!0};Ve.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}F.prototype.S.call(this,e)};Ve.prototype.U=function(e){if(this.t!==void 0&&(F.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Ve.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Ve.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Si(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function _i(e){var t=e.u;if(e.u=void 0,typeof t=="function"){ce++;var n=x;x=void 0;try{t()}catch(i){throw e.f&=-2,e.f|=8,Rt(e),i}finally{x=n,Ot()}}}function Rt(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,_i(e)}function Ao(e){if(x!==this)throw new Error("Out-of-order effect");Mi(this),x=e,this.f&=-2,8&this.f&&Rt(this),Ot()}function De(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}De.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};De.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,_i(this),Ei(this),ce++;var e=x;return x=this,Ao.bind(this,e)};De.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ae,Ae=this)};De.prototype.d=function(){this.f|=8,1&this.f||Rt(this)};function Vo(e){var t=new De(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var Ai=e=>{window.NudgeMoment=Object.assign(window.NudgeMoment||{},{custom:{...window.NudgeMoment?.custom,...e}})},E=e=>{$(document).ready(()=>{window.NudgeMoment.check().then(t=>{t&&e()})})},U=(e,t)=>{if(e)throw new Error(t)};var Vi=".NDGMNT__FloatingFixedButton__floating-button-container",Do=".NDGMNT__FloatingFixedButton__floating-menu",No=".NDGMNT__FloatingFixedButton__trigger-button",Lo='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-users-round"><path d="M18 21a8 8 0 0 0-16 0"/><circle cx="10" cy="8" r="5"/><path d="M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3"/></svg>',Fo={naver:'<svg width="289" height="291" viewBox="0 0 289 291" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M247.979 34.7843V183.205C247.979 195.764 237.784 205.968 225.238 205.968H86.8376C83.8876 205.968 57.8875 206.368 46.775 219.818L40.3709 226.401L28.9917 238.093L16.2875 251.147C15.325 251.714 13.8 252.393 12.8042 252.393L12.6667 252.414C12.6583 252.405 11.3792 251.18 11.3792 245.534V34.7843C11.3792 22.2259 21.5834 12.0218 34.1417 12.0218H225.238C235.188 12.0218 243.567 18.4759 246.65 27.3926C247.459 29.7259 247.979 32.1843 247.979 34.7843ZM278.817 38.1176L278.859 38.0468L250.175 11.6093C243.95 4.90091 235.096 0.642578 225.238 0.642578H34.1417C15.325 0.642578 0 15.9509 0 34.7843V245.534C0 251.393 1.07917 255.755 3.26667 258.859C4.03334 259.951 4.9375 260.872 5.9625 261.609L33.3917 286.884C33.8292 287.347 34.2792 287.768 34.7584 288.143L34.9917 288.368L35.025 288.33C35.4792 288.651 35.9167 289.009 36.4 289.268C38.0209 290.093 39.8375 290.534 41.7959 290.534C46.8875 290.534 51.3334 287.576 52.175 286.984L84.2376 254.18C91.0334 245.959 109.325 244.13 115.821 244.114H254.225C273.046 244.114 288.359 228.797 288.359 209.976V61.5343C288.359 52.4093 284.7 44.2093 278.817 38.1176Z" fill="white"/><path d="M75.1167 71.9814C65.7084 71.9814 58.1125 79.6022 58.1125 88.9939V124.715C58.1125 134.111 65.7084 141.719 75.1167 141.719C84.5001 141.719 92.1251 134.111 92.1251 124.715V88.9939C92.1251 79.6022 84.5001 71.9814 75.1167 71.9814Z" fill="white"/><path d="M181.058 71.9814C171.663 71.9814 164.038 79.6022 164.038 88.9939V124.715C164.038 134.111 171.663 141.719 181.058 141.719C190.446 141.719 198.054 134.111 198.054 124.715V88.9939C198.054 79.6022 190.446 71.9814 181.058 71.9814Z" fill="white"/></svg>',kakao:'<svg width="18" height="17" viewBox="0 0 18 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.00002 0.0999756C4.02917 0.0999756 0 3.21293 0 7.05226C0 9.44 1.5584 11.5449 3.93152 12.7969L2.93303 16.4445C2.84481 16.7668 3.21341 17.0237 3.49646 16.8369L7.87334 13.9482C8.2427 13.9838 8.61808 14.0046 9.00002 14.0046C13.9705 14.0046 17.9999 10.8918 17.9999 7.05226C17.9999 3.21293 13.9705 0.0999756 9.00002 0.0999756Z" fill="black"/></svg>',youtube:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-youtube"><path d="M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17"/><path d="m10 15 5-3-5-3z"/></svg>',instagram:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-instagram"><rect width="20" height="20" x="2" y="2" rx="5" ry="5"/><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"/><line x1="17.5" x2="17.51" y1="6.5" y2="6.5"/></svg>',thread:`<svg width="413" height="480" viewBox="0 0 413 480" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M321.342 222.471C319.275 221.48 317.175 220.526 315.047 219.613C311.342 151.346 274.04 112.262 211.405 111.862C211.121 111.861 210.839 111.861 210.555 111.861C173.091 111.861 141.933 127.852 122.755 156.952L157.202 180.582C171.529 158.846 194.013 154.212 210.572 154.212C210.763 154.212 210.955 154.212 211.144 154.214C231.768 154.345 247.33 160.342 257.402 172.035C264.732 180.548 269.635 192.312 272.062 207.16C253.777 204.052 234.002 203.096 212.862 204.308C153.312 207.738 115.028 242.47 117.599 290.73C118.904 315.21 131.099 336.27 151.938 350.027C169.556 361.658 192.247 367.345 215.831 366.057C246.975 364.35 271.408 352.467 288.452 330.74C301.397 314.24 309.585 292.857 313.2 265.915C328.043 274.872 339.042 286.66 345.117 300.83C355.447 324.918 356.05 364.5 323.753 396.77C295.455 425.04 261.44 437.27 210.034 437.648C153.01 437.225 109.884 418.938 81.8452 383.293C55.5887 349.915 42.0192 301.705 41.513 240C42.0192 178.294 55.5887 130.084 81.8452 96.7068C109.884 61.0623 153.01 42.775 210.033 42.3512C267.47 42.7783 311.348 61.1535 340.46 96.97C354.735 114.534 365.497 136.622 372.592 162.376L412.96 151.605C404.36 119.906 390.827 92.5892 372.412 69.935C335.09 24.0167 280.505 0.48787 210.174 0H209.892C139.704 0.486175 85.7302 24.1045 49.4707 70.1982C17.2048 111.216 0.561 168.289 0.00174999 239.831L0 240L0.00174999 240.169C0.561 311.71 17.2048 368.785 49.4707 409.803C85.7302 455.895 139.704 479.515 209.892 480H210.174C272.575 479.568 316.56 463.23 352.795 427.028C400.202 379.665 398.775 320.298 383.15 283.853C371.94 257.717 350.568 236.49 321.342 222.471ZM213.601 323.768C187.501 325.238 160.386 313.522 159.049 288.43C158.058 269.825 172.29 249.065 215.203 246.592C220.117 246.309 224.94 246.17 229.678 246.17C245.265 246.17 259.848 247.684 273.105 250.583C268.16 312.337 239.155 322.365 213.601 323.768Z" fill="white"/></svg>
|
12
|
-
`},Po={naver:{backgroundColor:"#03C75A",borderColor:"#03C75A"},kakao:{backgroundColor:"#FAE100",borderColor:"#FAE100"},youtube:{backgroundColor:"#ff0000",borderColor:"#ff0000"},instagram:{backgroundColor:"transparent",borderColor:"",backgroundImage:"linear-gradient(45deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%)"},thread:{backgroundColor:"#121212",borderColor:"#121212"}},Bt=class{constructor(t){P(this,"container");P(this,"menu");P(this,"trigger");P(this,"options");P(this,"isOpenSignal",Ci(!1));let n=t.containerSelector??Vi,i=t.triggerContent??Lo;this.options={containerSelector:n,triggerContent:i,snsConfigs:t.snsConfigs},this.container=document.querySelector(n),this.menu=this.container.querySelector(Do),this.trigger=this.container.querySelector(No),this.isOpenSignal.subscribe(s=>{s?this.handleOpen():this.handleClose()}),typeof this.options.triggerContent=="string"?this.trigger.innerHTML=this.options.triggerContent:this.options.triggerContent instanceof HTMLElement&&this.trigger.appendChild(this.options.triggerContent),this.initialize()}initialize(){this.menu.innerHTML="",this.options.snsConfigs.forEach(t=>{let n=document.createElement("li"),i=document.createElement("button");i.innerHTML=Fo[t.sns];let s=Po[t.sns];i.style.borderColor=s.borderColor,i.style.backgroundColor=s.backgroundColor,i.style.backgroundImage=s.backgroundImage??"",i.style.color=t.sns==="kakao"?"#000000":"#FFFFFF",i.dataset.hoverBg=s.backgroundColor||"",n.appendChild(i),this.menu.appendChild(n),i.addEventListener("click",()=>{window.open(t.link,"_blank"),this.isOpenSignal.value=!1})}),this.trigger.addEventListener("click",()=>this.toggle()),document.addEventListener("click",t=>this.handleClickOutside(t)),setTimeout(()=>{$(Vi).addClass("visible")},800)}toggle(){this.isOpenSignal.value=!this.isOpenSignal.value}handleOpen(){this.menu.setAttribute("data-visible","true");let t=this.menu.querySelectorAll("li");t.length>0&&
|
11
|
+
"use strict";(()=>{var Li=Object.defineProperty;var Fi=(e,t,n)=>t in e?Li(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var P=(e,t,n)=>Fi(e,typeof t!="symbol"?t+"":t,n);var R=e=>e,be=R,B=R,ee=(e,t,n)=>{let i=t-e;return i===0?1:(n-e)/i},tn=(e,t,n)=>{let i=t-e;return((n-e)%i+i)%i+e};function Ie(e){let t;return()=>(t===void 0&&(t=e()),t)}var nn=Ie(()=>window.ScrollTimeline!==void 0),Pi=class{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){let n=this.animations.map(i=>{if(nn()&&i.attachTimeline)return i.attachTimeline(e);if(typeof t=="function")return t(i)});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 startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},we=class extends Pi{then(e,t){return Promise.all(this.animations).then(e).catch(t)}},L=e=>e*1e3,I=e=>e/1e3;function Oe(e,t){return e?e[t]||e.default||e:void 0}function Re(e,t,n){var i;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;t&&(s=t.current);let r=(i=n?.[e])!==null&&i!==void 0?i:s.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}var ye=2e4;function Be(e){let t=0,n=50,i=e.next(t);for(;!i.done&&t<ye;)t+=n,i=e.next(t);return t>=ye?1/0:t}function sn(e,t=100,n){let i=n({...e,keyframes:[0,t]}),s=Math.min(Be(i),ye);return{type:"keyframes",ease:r=>i.next(s*r).value/t,duration:I(s)}}function te(e){return typeof e=="function"}function ke(e,t){e.timeline=t,e.onfinish=null}var Ii=class{constructor(e){this.animation=e}get duration(){var e,t,n;let i=((t=(e=this.animation)===null||e===void 0?void 0:e.effect)===null||t===void 0?void 0:t.getComputedTiming().duration)||((n=this.options)===null||n===void 0?void 0:n.duration)||300;return I(Number(i))}get time(){var e;return this.animation?I(((e=this.animation)===null||e===void 0?void 0:e.currentTime)||0):0}set time(e){this.animation&&(this.animation.currentTime=L(e))}get speed(){return this.animation?this.animation.playbackRate:1}set speed(e){this.animation&&(this.animation.playbackRate=e)}get state(){return this.animation?this.animation.playState:"finished"}get startTime(){return this.animation?this.animation.startTime:null}get finished(){return this.animation?this.animation.finished:Promise.resolve()}play(){this.animation&&this.animation.play()}pause(){this.animation&&this.animation.pause()}stop(){!this.animation||this.state==="idle"||this.state==="finished"||(this.animation.commitStyles&&this.animation.commitStyles(),this.cancel())}flatten(){var e;this.animation&&((e=this.animation.effect)===null||e===void 0||e.updateTiming({easing:"linear"}))}attachTimeline(e){return this.animation&&ke(this.animation,e),R}complete(){this.animation&&this.animation.finish()}cancel(){try{this.animation&&this.animation.cancel()}catch{}}},Oi={linearEasing:void 0};function Ri(e,t){let n=Ie(e);return()=>{var i;return(i=Oi[t])!==null&&i!==void 0?i:n()}}var J=Ri(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),He=e=>Array.isArray(e)&&typeof e[0]=="number",Qe=(e,t,n=10)=>{let i="",s=Math.max(Math.round(t/n),2);for(let r=0;r<s;r++)i+=e(ee(0,s-1,r))+", ";return`linear(${i.substring(0,i.length-2)})`};function Je(e){return!!(typeof e=="function"&&J()||!e||typeof e=="string"&&(e in Ze||J())||He(e)||Array.isArray(e)&&e.every(Je))}var ve=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,Ze={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ve([0,.65,.55,1]),circOut:ve([.55,0,1,.45]),backIn:ve([.31,.01,.66,-.59]),backOut:ve([.33,1.53,.69,.99])};function rn(e,t){if(e)return typeof e=="function"&&J()?Qe(e,t):He(e)?ve(e):Array.isArray(e)?e.map(n=>rn(n,t)||Ze.easeOut):Ze[e]}function et(e,t,n,{delay:i=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[t]:n};l&&(u.offset=l);let c=rn(a,s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:i,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}var Te=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),H=Te("deg"),z=Te("%"),f=Te("px"),on=Te("vh"),an=Te("vw"),tt={...z,parse:e=>z.parse(e)/100,transform:e=>z.transform(e*100)},Pe={borderWidth:f,borderTopWidth:f,borderRightWidth:f,borderBottomWidth:f,borderLeftWidth:f,borderRadius:f,radius:f,borderTopLeftRadius:f,borderTopRightRadius:f,borderBottomRightRadius:f,borderBottomLeftRadius:f,width:f,maxWidth:f,height:f,maxHeight:f,top:f,right:f,bottom:f,left:f,padding:f,paddingTop:f,paddingRight:f,paddingBottom:f,paddingLeft:f,margin:f,marginTop:f,marginRight:f,marginBottom:f,marginLeft:f,backgroundPositionX:f,backgroundPositionY:f},Bi=e=>e!==null;function ne(e,{repeat:t,repeatType:n="loop"},i){let s=e.filter(Bi),r=t&&n!=="loop"&&t%2===1?0:s.length-1;return!r||i===void 0?s[r]:i}function ki(e,t,n){e.style.setProperty(`--${t}`,n)}function Hi(e,t,n){e.style[t]=n}var Gi=Ie(()=>{try{document.createElement("div").animate({opacity:[1]})}catch{return!1}return!0}),nt=Ie(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Fe=new WeakMap;function Wi(e,t,n){for(let i=0;i<t.length;i++)t[i]===null&&(t[i]=i===0?n():t[i-1]),typeof t[i]=="number"&&Pe[e]&&(t[i]=Pe[e].transform(t[i]));!Gi()&&t.length<2&&t.unshift(n())}var Xt="easeOut";function Zt(e){let t=Fe.get(e)||new Map;return Fe.set(e,t),Fe.get(e)}var qi=class extends Ii{constructor(e,t,n,i){let s=t.startsWith("--");B(typeof i.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "framer-motion"?`);let r=Zt(e).get(t);r&&r.stop();let o=()=>t.startsWith("--")?e.style.getPropertyValue(t):window.getComputedStyle(e)[t];if(Array.isArray(n)||(n=[n]),Wi(t,n,o),te(i.type)){let u=sn(i,100,i.type);i.ease=J()?u.ease:Xt,i.duration=L(u.duration),i.type="keyframes"}else i.ease=i.ease||Xt;let a=()=>{this.setValue(e,t,ne(n,i)),this.cancel(),this.resolveFinishedPromise()},l=()=>{this.setValue=s?ki:Hi,this.options=i,this.updateFinishedPromise(),this.removeAnimation=()=>{var u;return(u=Fe.get(e))===null||u===void 0?void 0:u.delete(t)}};nt()?(super(et(e,t,n,i)),l(),i.autoplay===!1&&this.animation.pause(),this.animation.onfinish=a,Zt(e).set(t,this)):(super(),l(),a())}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}play(){this.state==="finished"&&this.updateFinishedPromise(),super.play()}cancel(){this.removeAnimation(),super.cancel()}};function ln(e,t,n,i){let s=Re(e,i),r=s.length;B(!!r,"No valid element provided.");let o=[];for(let a=0;a<r;a++){let l=s[a],u={...n};typeof u.delay=="function"&&(u.delay=u.delay(a,r));for(let c in t){let h=t[c],d={...Oe(u,c)};d.duration=d.duration?L(d.duration):d.duration,d.delay=L(d.delay||0),o.push(new qi(l,c,h,d))}}return o}var Ki=e=>{function t(n,i,s){return new we(ln(n,i,s,e))}return t},j=Ki(),it=e=>Array.isArray(e)&&typeof e[0]!="number",ie=(e,t,n)=>e+(t-e)*n;function un(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let s=ee(0,t,i);e.push(ie(n,1,s))}}function st(e){let t=[0];return un(t,e.length-1),t}function cn(e,t){return it(e)?e[tn(0,e.length,t)]:e}var D=e=>!!(e&&e.getVelocity);function Ge(e){return typeof e=="object"&&!Array.isArray(e)}function rt(e,t,n,i){return typeof e=="string"&&Ge(t)?Re(e,n,i):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function $i(e,t,n){return e*(t+1)}function Qt(e,t,n,i){var s;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(s=i.get(t))!==null&&s!==void 0?s:e}function hn(e,t){e.indexOf(t)===-1&&e.push(t)}function ot(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ui(e,t,n){for(let i=0;i<e.length;i++){let s=e[i];s.at>t&&s.at<n&&(ot(e,s),i--)}}function zi(e,t,n,i,s,r){Ui(e,s,r);for(let o=0;o<t.length;o++)e.push({value:t[o],at:ie(s,r,i[o]),easing:cn(n,o)})}function ji(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function Yi(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Xi="easeInOut",Zi=20;function at(e,{defaultTransition:t={},...n}={},i,s){let r=t.duration||.3,o=new Map,a=new Map,l={},u=new Map,c=0,h=0,d=0;for(let g=0;g<e.length;g++){let v=e[g];if(typeof v=="string"){u.set(v,h);continue}else if(!Array.isArray(v)){u.set(v.name,Qt(h,v.at,c,u));continue}let[w,b,p={}]=v;p.at!==void 0&&(h=Qt(h,p.at,c,u));let T=0,V=(M,m,S,_=0,y=0)=>{let C=Qi(M),{delay:Q=0,times:k=st(C),type:Xe="keyframes",repeat:fe,repeatType:zo,repeatDelay:jo=0,...Ni}=m,{ease:q=t.ease||"easeOut",duration:O}=m,Kt=typeof Q=="function"?Q(_,y):Q,$t=C.length,Ut=te(Xe)?Xe:s?.[Xe];if($t<=2&&Ut){let pe=100;if($t===2&&ts(C)){let me=C[1]-C[0];pe=Math.abs(me)}let Ne={...Ni};O!==void 0&&(Ne.duration=L(O));let Le=sn(Ne,pe,Ut);q=Le.ease,O=Le.duration}O??(O=r);let zt=h+Kt;k.length===1&&k[0]===0&&(k[1]=1);let jt=k.length-C.length;if(jt>0&&un(k,jt),C.length===1&&C.unshift(null),fe){B(fe<Zi,"Repeat count too high, must be less than 20"),O=$i(O,fe);let pe=[...C],Ne=[...k];q=Array.isArray(q)?[...q]:[q];let Le=[...q];for(let me=0;me<fe;me++){C.push(...pe);for(let ge=0;ge<pe.length;ge++)k.push(Ne[ge]+(me+1)),q.push(ge===0?"linear":cn(Le,ge-1))}ji(k,fe)}let Yt=zt+O;zi(S,C,q,k,zt,Yt),T=Math.max(Kt+O,T),d=Math.max(Yt,d)};if(D(w)){let M=Jt(w,a);V(b,p,en("default",M))}else{let M=rt(w,b,i,l),m=M.length;for(let S=0;S<m;S++){b=b,p=p;let _=M[S],y=Jt(_,a);for(let C in b)V(b[C],Ji(p,C),en(C,y),S,m)}}c=h,h+=T}return a.forEach((g,v)=>{for(let w in g){let b=g[w];b.sort(Yi);let p=[],T=[],V=[];for(let m=0;m<b.length;m++){let{at:S,value:_,easing:y}=b[m];p.push(_),T.push(ee(0,d,S)),V.push(y||"easeOut")}T[0]!==0&&(T.unshift(0),p.unshift(p[0]),V.unshift(Xi)),T[T.length-1]!==1&&(T.push(1),p.push(null)),o.has(v)||o.set(v,{keyframes:{},transition:{}});let M=o.get(v);M.keyframes[w]=p,M.transition[w]={...t,duration:d,ease:V,times:T,...n}}}),o}function Jt(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function en(e,t){return t[e]||(t[e]=[]),t[e]}function Qi(e){return Array.isArray(e)?e:[e]}function Ji(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var es=e=>typeof e=="number",ts=e=>e.every(es);var Z=(e,t,n)=>n>t?t:n<e?e:n;function Ln(e,t){return t?e*(1e3/t):0}var ns=5;function Fn(e,t,n){let i=Math.max(t-ns,0);return Ln(n-e(i),t-i)}var A={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},dn=.001;function is({duration:e=A.duration,bounce:t=A.bounce,velocity:n=A.velocity,mass:i=A.mass}){let s,r;be(e<=L(A.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Z(A.minDamping,A.maxDamping,o),e=Z(A.minDuration,A.maxDuration,I(e)),o<1?(s=u=>{let c=u*o,h=c*e,d=c-n,g=ht(u,o),v=Math.exp(-h);return dn-d/g*v},r=u=>{let h=u*o*e,d=h*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-h),w=ht(Math.pow(u,2),o);return(-s(u)+dn>0?-1:1)*((d-g)*v)/w}):(s=u=>{let c=Math.exp(-u*e),h=(u-n)*e+1;return-.001+c*h},r=u=>{let c=Math.exp(-u*e),h=(n-u)*(e*e);return c*h});let a=5/e,l=rs(s,r,a);if(e=L(e),isNaN(l))return{stiffness:A.stiffness,damping:A.damping,duration:e};{let u=Math.pow(l,2)*i;return{stiffness:u,damping:o*2*Math.sqrt(i*u),duration:e}}}var ss=12;function rs(e,t,n){let i=n;for(let s=1;s<ss;s++)i=i-e(i)/t(i);return i}function ht(e,t){return e*Math.sqrt(1-t*t)}var os=["duration","bounce"],as=["stiffness","damping","mass"];function fn(e,t){return t.some(n=>e[n]!==void 0)}function ls(e){let t={velocity:A.velocity,stiffness:A.stiffness,damping:A.damping,mass:A.mass,isResolvedFromDuration:!1,...e};if(!fn(e,as)&&fn(e,os))if(e.visualDuration){let n=e.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,r=2*Z(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:A.mass,stiffness:s,damping:r}}else{let n=is(e);t={...t,...n,mass:A.mass},t.isResolvedFromDuration=!0}return t}function wt(e=A.visualDuration,t=A.bounce){let n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:s}=n,r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:h,velocity:d,isResolvedFromDuration:g}=ls({...n,velocity:-I(n.velocity||0)}),v=d||0,w=u/(2*Math.sqrt(l*c)),b=o-r,p=I(Math.sqrt(l/c)),T=Math.abs(b)<5;i||(i=T?A.restSpeed.granular:A.restSpeed.default),s||(s=T?A.restDelta.granular:A.restDelta.default);let V;if(w<1){let m=ht(p,w);V=S=>{let _=Math.exp(-w*p*S);return o-_*((v+w*p*b)/m*Math.sin(m*S)+b*Math.cos(m*S))}}else if(w===1)V=m=>o-Math.exp(-p*m)*(b+(v+p*b)*m);else{let m=p*Math.sqrt(w*w-1);V=S=>{let _=Math.exp(-w*p*S),y=Math.min(m*S,300);return o-_*((v+w*p*b)*Math.sinh(y)+m*b*Math.cosh(y))/m}}let M={calculatedDuration:g&&h||null,next:m=>{let S=V(m);if(g)a.done=m>=h;else{let _=0;w<1&&(_=m===0?L(v):Fn(V,m,S));let y=Math.abs(_)<=i,C=Math.abs(o-S)<=s;a.done=y&&C}return a.value=a.done?o:S,a},toString:()=>{let m=Math.min(Be(M),ye),S=Qe(_=>M.next(m*_).value,m,30);return m+"ms "+S}};return M}var re=new WeakMap,ae=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],le=new Set(ae),Pn=new Set(["width","height","top","left","right","bottom",...ae]),us=e=>Array.isArray(e),cs=e=>us(e)?e[e.length-1]||0:e,hs={skipAnimations:!1,useManualTiming:!1};function ds(e){let t=new Set,n=new Set,i=!1,s=!1,r=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(l.schedule(u),e()),u(o)}let l={schedule:(u,c=!1,h=!1)=>{let g=h&&i?t:n;return c&&r.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=u,i){s=!0;return}i=!0,[t,n]=[n,t],t.forEach(a),t.clear(),i=!1,s&&(s=!1,l.process(u))}};return l}var Se=["read","resolveKeyframes","update","preRender","render","postRender"],fs=40;function ps(e,t){let n=!1,i=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Se.reduce((p,T)=>(p[T]=ds(r),p),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:d}=o,g=()=>{let p=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(p-s.timestamp,fs),1),s.timestamp=p,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),h.process(s),d.process(s),s.isProcessing=!1,n&&t&&(i=!1,e(g))},v=()=>{n=!0,i=!0,s.isProcessing||e(g)};return{schedule:Se.reduce((p,T)=>{let V=o[T];return p[T]=(M,m=!1,S=!1)=>(n||v(),V.schedule(M,m,S)),p},{}),cancel:p=>{for(let T=0;T<Se.length;T++)o[Se[T]].cancel(p)},state:s,steps:o}}var{schedule:G,cancel:Ke,state:$e,steps:ra}=ps(typeof requestAnimationFrame<"u"?requestAnimationFrame:R,!0),qe;function ms(){qe=void 0}var K={now:()=>(qe===void 0&&K.set($e.isProcessing||hs.useManualTiming?$e.timestamp:performance.now()),qe),set:e=>{qe=e,queueMicrotask(ms)}},In=class{constructor(){this.subscriptions=[]}add(e){return hn(this.subscriptions,e),()=>ot(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,t,n);else for(let s=0;s<i;s++){let r=this.subscriptions[s];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var pn=30,gs=e=>!isNaN(parseFloat(e)),vs=class{constructor(e,t={}){this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{let s=K.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=K.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=gs(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new In);let n=this.events[e].add(t);return e==="change"?()=>{n(),G.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){!t||!this.passiveEffect?this.updateAndNotify(e,t):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=K.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>pn)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,pn);return Ln(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function xe(e,t){return new vs(e,t)}function mn(e){let t=[{},{}];return e?.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function On(e,t,n,i){if(typeof t=="function"){let[s,r]=mn(i);t=t(n!==void 0?n:e.custom,s,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[s,r]=mn(i);t=t(n!==void 0?n:e.custom,s,r)}return t}function ys(e,t,n){let i=e.getProps();return On(i,t,i.custom,e)}function bs(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xe(n))}function ws(e,t){let n=ys(e,t),{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(let o in r){let a=cs(r[o]);bs(e,o,a)}}function Ts(e){return!!(D(e)&&e.add)}function Ss(e,t){let n=e.getValue("willChange");if(Ts(n))return n.add(t)}var Tt=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Cs="framerAppearId",xs="data-"+Tt(Cs);function Es(e){return e.props[xs]}var Rn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ms=1e-7,_s=12;function As(e,t,n,i,s){let r,o,a=0;do o=t+(n-t)/2,r=Rn(o,i,s)-e,r>0?n=o:t=o;while(Math.abs(r)>Ms&&++a<_s);return o}function _e(e,t,n,i){if(e===t&&n===i)return R;let s=r=>As(r,0,1,e,n);return r=>r===0||r===1?r:Rn(s(r),t,i)}var Bn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kn=e=>t=>1-e(1-t),Hn=_e(.33,1.53,.69,.99),St=kn(Hn),Gn=Bn(St),Wn=e=>(e*=2)<1?.5*St(e):.5*(2-Math.pow(2,-10*(e-1))),Ct=e=>1-Math.sin(Math.acos(e)),Vs=kn(Ct),qn=Bn(Ct),Kn=e=>/^0[^.\s]+$/u.test(e);function Ds(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Kn(e):!0}var ue={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ee={...ue,transform:e=>Z(0,1,e)},We={...ue,default:1},Ce=e=>Math.round(e*1e5)/1e5,xt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ns(e){return e==null}var Ls=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Et=(e,t)=>n=>!!(typeof n=="string"&&Ls.test(n)&&n.startsWith(e)||t&&!Ns(n)&&Object.prototype.hasOwnProperty.call(n,t)),$n=(e,t,n)=>i=>{if(typeof i!="string")return i;let[s,r,o,a]=i.match(xt);return{[e]:parseFloat(s),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Fs=e=>Z(0,255,e),lt={...ue,transform:e=>Math.round(Fs(e))},Y={test:Et("rgb","red"),parse:$n("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+lt.transform(e)+", "+lt.transform(t)+", "+lt.transform(n)+", "+Ce(Ee.transform(i))+")"};function Ps(e){let t="",n="",i="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,i+=i,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}var dt={test:Et("#"),parse:Ps,transform:Y.transform},se={test:Et("hsl","hue"),parse:$n("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+z.transform(Ce(t))+", "+z.transform(Ce(n))+", "+Ce(Ee.transform(i))+")"},N={test:e=>Y.test(e)||dt.test(e)||se.test(e),parse:e=>Y.test(e)?Y.parse(e):se.test(e)?se.parse(e):dt.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Y.transform(e):se.transform(e)},Is=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Os(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(xt))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Is))===null||n===void 0?void 0:n.length)||0)>0}var Un="number",zn="color",Rs="var",Bs="var(",gn="${}",ks=/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 Me(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},s=[],r=0,a=t.replace(ks,l=>(N.test(l)?(i.color.push(r),s.push(zn),n.push(N.parse(l))):l.startsWith(Bs)?(i.var.push(r),s.push(Rs),n.push(l)):(i.number.push(r),s.push(Un),n.push(parseFloat(l))),++r,gn)).split(gn);return{values:n,split:a,indexes:i,types:s}}function jn(e){return Me(e).values}function Yn(e){let{split:t,types:n}=Me(e),i=t.length;return s=>{let r="";for(let o=0;o<i;o++)if(r+=t[o],s[o]!==void 0){let a=n[o];a===Un?r+=Ce(s[o]):a===zn?r+=N.transform(s[o]):r+=s[o]}return r}}var Hs=e=>typeof e=="number"?0:e;function Gs(e){let t=jn(e);return Yn(e)(t.map(Hs))}var ce={test:Os,parse:jn,createTransformer:Yn,getAnimatableNone:Gs},Ws=new Set(["brightness","contrast","saturate","opacity"]);function qs(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[i]=n.match(xt)||[];if(!i)return e;let s=n.replace(i,""),r=Ws.has(t)?1:0;return i!==n&&(r*=100),t+"("+r+s+")"}var Ks=/\b([a-z-]*)\(.*?\)/gu,ft={...ce,getAnimatableNone:e=>{let t=e.match(Ks);return t?t.map(qs).join(" "):e}},$s={rotate:H,rotateX:H,rotateY:H,rotateZ:H,scale:We,scaleX:We,scaleY:We,scaleZ:We,skew:H,skewX:H,skewY:H,distance:f,translateX:f,translateY:f,translateZ:f,x:f,y:f,z:f,perspective:f,transformPerspective:f,opacity:Ee,originX:tt,originY:tt,originZ:f},vn={...ue,transform:Math.round},Mt={...Pe,...$s,zIndex:vn,size:f,fillOpacity:Ee,strokeOpacity:Ee,numOctaves:vn},Us={...Mt,color:N,backgroundColor:N,outlineColor:N,fill:N,stroke:N,borderColor:N,borderTopColor:N,borderRightColor:N,borderBottomColor:N,borderLeftColor:N,filter:ft,WebkitFilter:ft},_t=e=>Us[e];function Xn(e,t){let n=_t(e);return n!==ft&&(n=ce),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var zs=new Set(["auto","none","0"]);function js(e,t,n){let i=0,s;for(;i<e.length&&!s;){let r=e[i];typeof r=="string"&&!zs.has(r)&&Me(r).values.length&&(s=e[i]),i++}if(s&&n)for(let r of t)e[r]=Xn(n,s)}var yn=e=>e===ue||e===f,bn=(e,t)=>parseFloat(e.split(", ")[t]),wn=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;let s=i.match(/^matrix3d\((.+)\)$/u);if(s)return bn(s[1],t);{let r=i.match(/^matrix\((.+)\)$/u);return r?bn(r[1],e):0}},Ys=new Set(["x","y","z"]),Xs=ae.filter(e=>!Ys.has(e));function Zs(e){let t=[];return Xs.forEach(n=>{let i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}var oe={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:wn(4,13),y:wn(5,14)};oe.translateX=oe.x;oe.translateY=oe.y;var X=new Set,pt=!1,mt=!1;function Zn(){if(mt){let e=Array.from(X).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{let s=Zs(i);s.length&&(n.set(i,s),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();let s=n.get(i);s&&s.forEach(([r,o])=>{var a;(a=i.getValue(r))===null||a===void 0||a.set(o)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}mt=!1,pt=!1,X.forEach(e=>e.complete()),X.clear()}function Qn(){X.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(mt=!0)})}function Qs(){Qn(),Zn()}var At=class{constructor(e,t,n,i,s,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=s,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(X.add(this),pt||(pt=!0,G.read(Qn),G.resolveKeyframes(Zn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;for(let s=0;s<e.length;s++)if(e[s]===null)if(s===0){let r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(n&&t){let a=n.readValue(t,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}else e[s]=e[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),X.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,X.delete(this))}resume(){this.isComplete||this.scheduleResolve()}},Jn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ei=e=>t=>typeof t=="string"&&t.startsWith(e),ti=ei("--"),Js=ei("var(--"),Vt=e=>Js(e)?er.test(e.split("/*")[0].trim()):!1,er=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nr(e){let t=tr.exec(e);if(!t)return[,];let[,n,i,s]=t;return[`--${n??i}`,s]}var ir=4;function ni(e,t,n=1){B(n<=ir,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,s]=nr(e);if(!i)return;let r=window.getComputedStyle(t).getPropertyValue(i);if(r){let o=r.trim();return Jn(o)?parseFloat(o):o}return Vt(s)?ni(s,t,n+1):s}var ii=e=>t=>t.test(e),sr={test:e=>e==="auto",parse:e=>e},si=[ue,f,z,H,an,on,sr],Tn=e=>si.find(ii(e)),ri=class extends At{constructor(e,t,n,i,s){super(e,t,n,i,s,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let a=0;a<e.length;a++){let l=e[a];if(typeof l=="string"&&(l=l.trim(),Vt(l))){let u=ni(l,t.current);u!==void 0&&(e[a]=u),a===e.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Pn.has(n)||e.length!==2)return;let[i,s]=e,r=Tn(i),o=Tn(s);if(r!==o)if(yn(r)&&yn(o))for(let a=0;a<e.length;a++){let l=e[a];typeof l=="string"&&(e[a]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let i=0;i<e.length;i++)Ds(e[i])&&n.push(i);n.length&&js(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=oe[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];i!==void 0&&e.getValue(n,i).jump(i,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);let r=i.length-1,o=i[r];i[r]=oe[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}},Sn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ce.test(e)||e==="0")&&!e.startsWith("url("));function rr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function or(e,t,n,i){let s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;let r=e[e.length-1],o=Sn(s,t),a=Sn(r,t);return be(o===a,`You are trying to animate ${t} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`),!o||!a?!1:rr(e)||(n==="spring"||te(n))&&i}var ar=40,oi=class{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:r="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=K.now(),this.options={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:s,repeatType:r,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>ar?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Qs(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=K.now(),this.hasAttemptedResolve=!0;let{name:n,type:i,velocity:s,delay:r,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!or(e,n,i,s))if(r)this.options.duration=0;else{a?.(ne(e,this.options,t)),o?.(),this.resolveFinishedPromise();return}let u=this.initPlayback(e,t);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}};function ut(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function lr({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let s=0,r=0,o=0;if(!t)s=r=o=n;else{let a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=ut(l,a,e+1/3),r=ut(l,a,e),o=ut(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:i}}function Ue(e,t){return n=>n>0?t:e}var ct=(e,t,n)=>{let i=e*e,s=n*(t*t-i)+i;return s<0?0:Math.sqrt(s)},ur=[dt,Y,se],cr=e=>ur.find(t=>t.test(e));function Cn(e){let t=cr(e);if(be(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===se&&(n=lr(n)),n}var xn=(e,t)=>{let n=Cn(e),i=Cn(t);if(!n||!i)return Ue(e,t);let s={...n};return r=>(s.red=ct(n.red,i.red,r),s.green=ct(n.green,i.green,r),s.blue=ct(n.blue,i.blue,r),s.alpha=ie(n.alpha,i.alpha,r),Y.transform(s))},hr=(e,t)=>n=>t(e(n)),Dt=(...e)=>e.reduce(hr),gt=new Set(["none","hidden"]);function dr(e,t){return gt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function fr(e,t){return n=>ie(e,t,n)}function Nt(e){return typeof e=="number"?fr:typeof e=="string"?Vt(e)?Ue:N.test(e)?xn:gr:Array.isArray(e)?ai:typeof e=="object"?N.test(e)?xn:pr:Ue}function ai(e,t){let n=[...e],i=n.length,s=e.map((r,o)=>Nt(r)(r,t[o]));return r=>{for(let o=0;o<i;o++)n[o]=s[o](r);return n}}function pr(e,t){let n={...e,...t},i={};for(let s in n)e[s]!==void 0&&t[s]!==void 0&&(i[s]=Nt(e[s])(e[s],t[s]));return s=>{for(let r in i)n[r]=i[r](s);return n}}function mr(e,t){var n;let i=[],s={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let o=t.types[r],a=e.indexes[o][s[o]],l=(n=e.values[a])!==null&&n!==void 0?n:0;i[r]=l,s[o]++}return i}var gr=(e,t)=>{let n=ce.createTransformer(t),i=Me(e),s=Me(t);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?gt.has(e)&&!s.values.length||gt.has(t)&&!i.values.length?dr(e,t):Dt(ai(mr(i,s),s.values),n):(be(!0,`Complex values '${e}' and '${t}' 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.`),Ue(e,t))};function li(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ie(e,t,n):Nt(e)(e,t)}function En({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){let h=e[0],d={done:!1,value:h},g=y=>a!==void 0&&y<a||l!==void 0&&y>l,v=y=>a===void 0?l:l===void 0||Math.abs(a-y)<Math.abs(l-y)?a:l,w=n*t,b=h+w,p=o===void 0?b:o(b);p!==b&&(w=p-h);let T=y=>-w*Math.exp(-y/i),V=y=>p+T(y),M=y=>{let C=T(y),Q=V(y);d.done=Math.abs(C)<=u,d.value=d.done?p:Q},m,S,_=y=>{g(d.value)&&(m=y,S=wt({keyframes:[d.value,v(d.value)],velocity:Fn(V,y,d.value),damping:s,stiffness:r,restDelta:u,restSpeed:c}))};return _(0),{calculatedDuration:null,next:y=>{let C=!1;return!S&&m===void 0&&(C=!0,M(y),_(y)),m!==void 0&&y>=m?S.next(y-m):(!C&&M(y),d)}}}var vr=_e(.42,0,1,1),yr=_e(0,0,.58,1),ui=_e(.42,0,.58,1),Mn={linear:R,easeIn:vr,easeInOut:ui,easeOut:yr,circIn:Ct,circInOut:qn,circOut:Vs,backIn:St,backInOut:Gn,backOut:Hn,anticipate:Wn},vt=e=>{if(He(e)){B(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,s]=e;return _e(t,n,i,s)}else if(typeof e=="string")return B(Mn[e]!==void 0,`Invalid easing type '${e}'`),Mn[e];return e};function br(e,t,n){let i=[],s=n||li,r=e.length-1;for(let o=0;o<r;o++){let a=s(e[o],e[o+1]);if(t){let l=Array.isArray(t)?t[o]||R:t;a=Dt(l,a)}i.push(a)}return i}function wr(e,t,{clamp:n=!0,ease:i,mixer:s}={}){let r=e.length;if(B(r===t.length,"Both input and output ranges must be the same length"),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=br(t,i,s),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(c<e[h+1]);h++);let d=ee(e[h],e[h+1],c);return a[h](d)};return n?c=>u(Z(e[0],e[r-1],c)):u}function Tr(e,t){return e.map(n=>n*t)}function Sr(e,t){return e.map(()=>t||ui).splice(0,e.length-1)}function ze({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){let s=it(i)?i.map(vt):vt(i),r={done:!1,value:t[0]},o=Tr(n&&n.length===t.length?n:st(t),e),a=wr(o,t,{ease:Array.isArray(s)?s:Sr(t,s)});return{calculatedDuration:e,next:l=>(r.value=a(l),r.done=l>=e,r)}}var Cr=e=>{let t=({timestamp:n})=>e(n);return{start:()=>G.update(t,!0),stop:()=>Ke(t),now:()=>$e.isProcessing?$e.timestamp:K.now()}},xr={decay:En,inertia:En,tween:ze,keyframes:ze,spring:wt},Er=e=>e/100,Lt=class extends oi{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:a}=this.options;a&&a()};let{name:t,motionValue:n,element:i,keyframes:s}=this.options,r=i?.KeyframeResolver||At,o=(a,l)=>this.onKeyframesResolved(a,l);this.resolver=new r(s,o,t,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let{type:t="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:r=0}=this.options,o=te(t)?t:xr[t]||ze,a,l;o!==ze&&typeof e[0]!="number"&&(a=Dt(Er,li(e[0],e[1])),e=[0,100]);let u=o({...this.options,keyframes:e});s==="mirror"&&(l=o({...this.options,keyframes:[...e].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Be(u));let{calculatedDuration:c}=u,h=c+i,d=h*(n+1)-i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:c,resolvedDuration:h,totalDuration:d}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:_}=this.options;return{done:!0,value:_[_.length-1]}}let{finalKeyframe:i,generator:s,mirroredGenerator:r,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(this.startTime===null)return s.next(0);let{delay:h,repeat:d,repeatType:g,repeatDelay:v,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let b=this.currentTime-h*(this.speed>=0?1:-1),p=this.speed>=0?b<0:b>u;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let T=this.currentTime,V=s;if(d){let _=Math.min(this.currentTime,u)/c,y=Math.floor(_),C=_%1;!C&&_>=1&&(C=1),C===1&&y--,y=Math.min(y,d+1),!!(y%2)&&(g==="reverse"?(C=1-C,v&&(C-=v/c)):g==="mirror"&&(V=r)),T=Z(0,1,C)*c}let M=p?{done:!1,value:a[0]}:V.next(T);o&&(M.value=o(M.value));let{done:m}=M;!p&&l!==null&&(m=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&m);return S&&i!==void 0&&(M.value=ne(a,this.options,i)),w&&w(M.value),S&&this.finish(),M}get duration(){let{resolved:e}=this;return e?I(e.calculatedDuration):0}get time(){return I(this.currentTime)}set time(e){e=L(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=I(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=Cr,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),t&&t();let i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}},Mr=new Set(["opacity","clipPath","filter","transform"]),je=10,_r=2e4;function Ar(e){return te(e.type)||e.type==="spring"||!Je(e.ease)}function Vr(e,t){let n=new Lt({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:e[0]},s=[],r=0;for(;!i.done&&r<_r;)i=n.sample(r),s.push(i.value),r+=je;return{times:void 0,keyframes:s,duration:r-je,ease:"linear"}}var ci={anticipate:Wn,backInOut:Gn,circInOut:qn};function Dr(e){return e in ci}var _n=class extends oi{constructor(e){super(e);let{name:t,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new ri(s,(r,o)=>this.onKeyframesResolved(r,o),t,n,i),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:i=300,times:s,ease:r,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!(!((n=a.owner)===null||n===void 0)&&n.current))return!1;if(typeof r=="string"&&J()&&Dr(r)&&(r=ci[r]),Ar(this.options)){let{onComplete:h,onUpdate:d,motionValue:g,element:v,...w}=this.options,b=Vr(e,w);e=b.keyframes,e.length===1&&(e[1]=e[0]),i=b.duration,s=b.times,r=b.ease,o="keyframes"}let c=et(a.owner.current,l,e,{...this.options,duration:i,times:s,ease:r});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(ke(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:h}=this.options;a.set(ne(e,this.options,t)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:s,type:o,ease:r,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return I(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return I(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=L(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{let{resolved:t}=this;if(!t)return R;let{animation:n}=t;ke(n,e)}return R}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.playState==="finished"&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:i,type:s,ease:r,times:o}=e;if(t.playState==="idle"||t.playState==="finished")return;if(this.time){let{motionValue:l,onUpdate:u,onComplete:c,element:h,...d}=this.options,g=new Lt({...d,keyframes:n,duration:i,type:s,ease:r,times:o,isGenerator:!0}),v=L(this.time);l.setWithVelocity(g.sample(v-je).value,g.sample(v).value,je)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:s,damping:r,type:o}=e;return nt()&&n&&Mr.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!i&&s!=="mirror"&&r!==0&&o!=="inertia"}},Nr={type:"spring",stiffness:500,damping:25,restSpeed:10},Lr=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Fr={type:"keyframes",duration:.8},Pr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ir=(e,{keyframes:t})=>t.length>2?Fr:le.has(e)?e.startsWith("scale")?Lr(t[1]):Nr:Pr;function Or({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}var hi=(e,t,n,i={},s,r)=>o=>{let a=Oe(i,e)||{},l=a.delay||i.delay||0,{elapsed:u=0}=i;u=u-L(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:s};Or(a)||(c={...c,...Ir(e,c)}),c.duration&&(c.duration=L(c.duration)),c.repeatDelay&&(c.repeatDelay=L(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),h&&!r&&t.get()!==void 0){let d=ne(c.keyframes,a);if(d!==void 0)return G.update(()=>{c.onUpdate(d),c.onComplete()}),new we([])}return!r&&_n.supports(c)?new _n(c):new Lt(c)};function Rr({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function Br(e,t,{delay:n=0,transitionOverride:i,type:s}={}){var r;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;i&&(o=i);let u=[],c=s&&e.animationState&&e.animationState.getState()[s];for(let h in l){let d=e.getValue(h,(r=e.latestValues[h])!==null&&r!==void 0?r:null),g=l[h];if(g===void 0||c&&Rr(c,h))continue;let v={delay:n,...Oe(o||{},h)},w=!1;if(window.MotionHandoffAnimation){let p=Es(e);if(p){let T=window.MotionHandoffAnimation(p,h,G);T!==null&&(v.startTime=T,w=!0)}}Ss(e,h),d.start(hi(h,d,g,e.shouldReduceMotion&&Pn.has(h)?{type:!1}:v,e,w));let b=d.animation;b&&u.push(b)}return a&&Promise.all(u).then(()=>{G.update(()=>{a&&ws(e,a)})}),u}function kr(e){return e instanceof SVGElement&&e.tagName!=="svg"}var An=()=>({min:0,max:0}),Ft=()=>({x:An(),y:An()}),Vn={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"]},yt={};for(let e in Vn)yt[e]={isEnabled:t=>Vn[e].some(n=>!!t[n])};var Hr=typeof window<"u",bt={current:null},di={current:!1};function Gr(){if(di.current=!0,!!Hr)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>bt.current=e.matches;e.addListener(t),t()}else bt.current=!1}var Wr=[...si,N,ce],qr=e=>Wr.find(ii(e));function Kr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function $r(e){return typeof e=="string"||Array.isArray(e)}var Ur=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zr=["initial",...Ur];function fi(e){return Kr(e.animate)||zr.some(t=>$r(e[t]))}function jr(e){return!!(fi(e)||e.variants)}function Yr(e,t,n){for(let i in t){let s=t[i],r=n[i];if(D(s))e.addValue(i,s);else if(D(r))e.addValue(i,xe(s,{owner:e}));else if(r!==s)if(e.hasValue(i)){let o=e.getValue(i);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{let o=e.getStaticValue(i);e.addValue(i,xe(o!==void 0?o:s,{owner:e}))}}for(let i in n)t[i]===void 0&&e.removeValue(i);return t}var Dn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],pi=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=At,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=()=>{let d=K.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,G.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=r;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=fi(t),this.isVariantNode=jr(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(let d in h){let g=h[d];a[d]!==void 0&&D(g)&&g.set(a[d],!1)}}mount(e){this.current=e,re.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((t,n)=>this.bindToMotionValue(n,t)),di.current||Gr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:bt.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){re.delete(this.current),this.projection&&this.projection.unmount(),Ke(this.notifyUpdate),Ke(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=le.has(e),i=t.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&G.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=t.on("renderRequest",this.scheduleRender),r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),s(),r&&r(),t.owner&&t.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 yt){let t=yt[e];if(!t)continue;let{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){let s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ft()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<Dn.length;n++){let i=Dn[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s="on"+i,r=e[s];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Yr(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=xe(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Jn(i)||Kn(i))?i=parseFloat(i):!qr(i)&&ce.test(t)&&(i=Xn(e,t)),this.setBaseTarget(e,D(i)?i.get():i)),D(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,i;if(typeof n=="string"||typeof n=="object"){let r=On(this.props,n,(t=this.presenceContext)===null||t===void 0?void 0:t.custom);r&&(i=r[e])}if(n&&i!==void 0)return i;let s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!D(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new In),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}},mi=class extends pi{constructor(){super(...arguments),this.KeyframeResolver=ri}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;D(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}},gi=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Zr=ae.length;function Qr(e,t,n){let i="",s=!0;for(let r=0;r<Zr;r++){let o=ae[r],a=e[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){let u=gi(a,Mt[o]);if(!l){s=!1;let c=Xr[o]||o;i+=`${c}(${u}) `}n&&(t[o]=u)}}return i=i.trim(),n?i=n(t,s?"":i):s&&(i="none"),i}function vi(e,t,n){let{style:i,vars:s,transformOrigin:r}=e,o=!1,a=!1;for(let l in t){let u=t[l];if(le.has(l)){o=!0;continue}else if(ti(l)){s[l]=u;continue}else{let c=gi(u,Mt[l]);l.startsWith("origin")?(a=!0,r[l]=c):i[l]=c}}if(t.transform||(o||n?i.transform=Qr(t,e.transform,n):i.transform&&(i.transform="none")),a){let{originX:l="50%",originY:u="50%",originZ:c=0}=r;i.transformOrigin=`${l} ${u} ${c}`}}function Nn(e,t,n){return typeof e=="string"?e:f.transform(t+n*e)}function Jr(e,t,n){let i=Nn(t,e.x,e.width),s=Nn(n,e.y,e.height);return`${i} ${s}`}var eo={offset:"stroke-dashoffset",array:"stroke-dasharray"},to={offset:"strokeDashoffset",array:"strokeDasharray"};function no(e,t,n=1,i=0,s=!0){e.pathLength=1;let r=s?eo:to;e[r.offset]=f.transform(-i);let o=f.transform(t),a=f.transform(n);e[r.array]=`${o} ${a}`}function io(e,{attrX:t,attrY:n,attrScale:i,originX:s,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(vi(e,u,h),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:g,dimensions:v}=e;d.transform&&(v&&(g.transform=d.transform),delete d.transform),v&&(s!==void 0||r!==void 0||g.transform)&&(g.transformOrigin=Jr(v,s!==void 0?s:.5,r!==void 0?r:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),i!==void 0&&(d.scale=i),o!==void 0&&no(d,o,a,l,!1)}var yi=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"]),so=e=>typeof e=="string"&&e.toLowerCase()==="svg";function bi(e,{style:t,vars:n},i,s){Object.assign(e.style,t,s&&s.getProjectionStyles(i));for(let r in n)e.style.setProperty(r,n[r])}function ro(e,t,n,i){bi(e,t,void 0,i);for(let s in t.attrs)e.setAttribute(yi.has(s)?s:Tt(s),t.attrs[s])}var oo={};function ao(e,{layout:t,layoutId:n}){return le.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!oo[e]||e==="opacity")}function wi(e,t,n){var i;let{style:s}=e,r={};for(let o in s)(D(s[o])||t.style&&D(t.style[o])||ao(o,e)||((i=n?.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(r[o]=s[o]);return r}function lo(e,t,n){let i=wi(e,t,n);for(let s in e)if(D(e[s])||D(t[s])){let r=ae.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[r]=e[s]}return i}var uo=class extends mi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ft}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(le.has(t)){let n=_t(t);return n&&n.default||0}return t=yi.has(t)?t:Tt(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return lo(e,t,n)}build(e,t,n){io(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,i){ro(e,t,n,i)}mount(e){this.isSVGTag=so(e.tagName),super.mount(e)}};function co({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function ho(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function fo(e,t){return co(ho(e.getBoundingClientRect(),t))}function po(e){return window.getComputedStyle(e)}var mo=class extends mi{constructor(){super(...arguments),this.type="html",this.renderInstance=bi}readValueFromInstance(e,t){if(le.has(t)){let n=_t(t);return n&&n.default||0}else{let n=po(e),i=(ti(t)?n.getPropertyValue(t):n[t])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return fo(e,t)}build(e,t,n){vi(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return wi(e,t,n)}};function go(e,t){return e in t}var vo=class extends pi{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(go(t,e)){let n=e[t];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Ft()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}};function yo(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=kr(e)?new uo(t):new mo(t);n.mount(e),re.set(e,n)}function bo(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new vo(t);n.mount(e),re.set(e,n)}function wo(e,t,n){let i=D(e)?e:xe(e);return i.start(hi("",i,t,n)),i.animation}function To(e,t){return D(e)||typeof e=="number"||typeof e=="string"&&!Ge(t)}function Ti(e,t,n,i){let s=[];if(To(e,t))s.push(wo(e,Ge(t)&&t.default||t,n&&(n.default||n)));else{let r=rt(e,t,i),o=r.length;B(!!o,"No valid elements provided.");for(let a=0;a<o;a++){let l=r[a],u=l instanceof Element?yo:bo;re.has(l)||u(l);let c=re.get(l),h={...n};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(a,o)),s.push(...Br(c,{...t,transition:h},{}))}}return s}function So(e,t,n){let i=[];return at(e,t,n,{spring:wt}).forEach(({keyframes:r,transition:o},a)=>{i.push(...Ti(a,r,o))}),i}function Co(e){return Array.isArray(e)&&e.some(Array.isArray)}function xo(e){function t(n,i,s){let r=[];Co(n)?r=So(n,i,e):r=Ti(n,i,s,e);let o=new we(r);return e&&e.animations.push(o),o}return t}var oa=xo();var Eo={some:0,all:1};function W(e,t,{root:n,margin:i,amount:s="some"}={}){let r=Re(e),o=new WeakMap,a=u=>{u.forEach(c=>{let h=o.get(c.target);if(c.isIntersecting!==!!h)if(c.isIntersecting){let d=t(c);typeof d=="function"?o.set(c.target,d):l.unobserve(c.target)}else typeof h=="function"&&(h(c),o.delete(c.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:i,threshold:typeof s=="number"?s:Eo[s]});return r.forEach(u=>l.observe(u)),()=>l.disconnect()}function Mo(e,t){if(e==="first")return 0;{let n=t-1;return e==="last"?n:n/2}}function Pt(e=.1,{startDelay:t=0,from:n=0,ease:i}={}){return(s,r)=>{let o=typeof n=="number"?n:Mo(n,r),a=Math.abs(o-s),l=e*a;if(i){let u=r*e;l=vt(i)(l/u)*u}return t+l}}var aa=Se.reduce((e,t)=>(e[t]=n=>Ke(n),e),{});var _o=Symbol.for("preact-signals");function Ot(){if(he>1)he--;else{for(var e,t=!1;Ae!==void 0;){var n=Ae;for(Ae=void 0,It++;n!==void 0;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&xi(n))try{n.c()}catch(s){t||(e=s,t=!0)}n=i}}if(It=0,he--,t)throw e}}var x=void 0;var Ae=void 0,he=0,It=0,Ye=0;function Si(e){if(x!==void 0){var t=e.n;if(t===void 0||t.t!==x)return t={i:0,S:e,p:x.s,n:void 0,t:x,e:void 0,x:void 0,r:t},x.s!==void 0&&(x.s.n=t),x.s=t,e.n=t,32&x.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=x.s,t.n=void 0,x.s.n=t,x.s=t),t}}function F(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}F.prototype.brand=_o;F.prototype.h=function(){return!0};F.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};F.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};F.prototype.subscribe=function(e){var t=this;return Vo(function(){var n=t.value,i=x;x=void 0;try{e(n)}finally{x=i}})};F.prototype.valueOf=function(){return this.value};F.prototype.toString=function(){return this.value+""};F.prototype.toJSON=function(){return this.value};F.prototype.peek=function(){var e=x;x=void 0;try{return this.value}finally{x=e}};Object.defineProperty(F.prototype,"value",{get:function(){var e=Si(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(It>100)throw new Error("Cycle detected");this.v=e,this.i++,Ye++,he++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ot()}}}});function Ci(e){return new F(e)}function xi(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Ei(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Mi(e){for(var t=e.s,n=void 0;t!==void 0;){var i=t.p;t.i===-1?(t.S.U(t),i!==void 0&&(i.n=t.n),t.n!==void 0&&(t.n.p=i)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=i}e.s=n}function Ve(e){F.call(this,void 0),this.x=e,this.s=void 0,this.g=Ye-1,this.f=4}(Ve.prototype=new F).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ye))return!0;if(this.g=Ye,this.f|=1,this.i>0&&!xi(this))return this.f&=-2,!0;var e=x;try{Ei(this),x=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return x=e,Mi(this),this.f&=-2,!0};Ve.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}F.prototype.S.call(this,e)};Ve.prototype.U=function(e){if(this.t!==void 0&&(F.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Ve.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Ve.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Si(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function _i(e){var t=e.u;if(e.u=void 0,typeof t=="function"){he++;var n=x;x=void 0;try{t()}catch(i){throw e.f&=-2,e.f|=8,Rt(e),i}finally{x=n,Ot()}}}function Rt(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,_i(e)}function Ao(e){if(x!==this)throw new Error("Out-of-order effect");Mi(this),x=e,this.f&=-2,8&this.f&&Rt(this),Ot()}function De(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}De.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};De.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,_i(this),Ei(this),he++;var e=x;return x=this,Ao.bind(this,e)};De.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ae,Ae=this)};De.prototype.d=function(){this.f|=8,1&this.f||Rt(this)};function Vo(e){var t=new De(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var Ai=e=>{window.NudgeMoment=Object.assign(window.NudgeMoment||{},{custom:{...window.NudgeMoment?.custom,...e}})},E=e=>{$(document).ready(()=>{window.NudgeMoment.check().then(t=>{t&&e()})})},U=(e,t)=>{if(e)throw new Error(t)};var Vi=".NDGMNT__FloatingFixedButton__floating-button-container",Do=".NDGMNT__FloatingFixedButton__floating-menu",No=".NDGMNT__FloatingFixedButton__trigger-button",Lo='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-users-round"><path d="M18 21a8 8 0 0 0-16 0"/><circle cx="10" cy="8" r="5"/><path d="M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3"/></svg>',Fo={naver:'<svg width="289" height="291" viewBox="0 0 289 291" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M247.979 34.7843V183.205C247.979 195.764 237.784 205.968 225.238 205.968H86.8376C83.8876 205.968 57.8875 206.368 46.775 219.818L40.3709 226.401L28.9917 238.093L16.2875 251.147C15.325 251.714 13.8 252.393 12.8042 252.393L12.6667 252.414C12.6583 252.405 11.3792 251.18 11.3792 245.534V34.7843C11.3792 22.2259 21.5834 12.0218 34.1417 12.0218H225.238C235.188 12.0218 243.567 18.4759 246.65 27.3926C247.459 29.7259 247.979 32.1843 247.979 34.7843ZM278.817 38.1176L278.859 38.0468L250.175 11.6093C243.95 4.90091 235.096 0.642578 225.238 0.642578H34.1417C15.325 0.642578 0 15.9509 0 34.7843V245.534C0 251.393 1.07917 255.755 3.26667 258.859C4.03334 259.951 4.9375 260.872 5.9625 261.609L33.3917 286.884C33.8292 287.347 34.2792 287.768 34.7584 288.143L34.9917 288.368L35.025 288.33C35.4792 288.651 35.9167 289.009 36.4 289.268C38.0209 290.093 39.8375 290.534 41.7959 290.534C46.8875 290.534 51.3334 287.576 52.175 286.984L84.2376 254.18C91.0334 245.959 109.325 244.13 115.821 244.114H254.225C273.046 244.114 288.359 228.797 288.359 209.976V61.5343C288.359 52.4093 284.7 44.2093 278.817 38.1176Z" fill="white"/><path d="M75.1167 71.9814C65.7084 71.9814 58.1125 79.6022 58.1125 88.9939V124.715C58.1125 134.111 65.7084 141.719 75.1167 141.719C84.5001 141.719 92.1251 134.111 92.1251 124.715V88.9939C92.1251 79.6022 84.5001 71.9814 75.1167 71.9814Z" fill="white"/><path d="M181.058 71.9814C171.663 71.9814 164.038 79.6022 164.038 88.9939V124.715C164.038 134.111 171.663 141.719 181.058 141.719C190.446 141.719 198.054 134.111 198.054 124.715V88.9939C198.054 79.6022 190.446 71.9814 181.058 71.9814Z" fill="white"/></svg>',kakao:'<svg width="18" height="17" viewBox="0 0 18 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.00002 0.0999756C4.02917 0.0999756 0 3.21293 0 7.05226C0 9.44 1.5584 11.5449 3.93152 12.7969L2.93303 16.4445C2.84481 16.7668 3.21341 17.0237 3.49646 16.8369L7.87334 13.9482C8.2427 13.9838 8.61808 14.0046 9.00002 14.0046C13.9705 14.0046 17.9999 10.8918 17.9999 7.05226C17.9999 3.21293 13.9705 0.0999756 9.00002 0.0999756Z" fill="black"/></svg>',youtube:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-youtube"><path d="M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17"/><path d="m10 15 5-3-5-3z"/></svg>',instagram:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-instagram"><rect width="20" height="20" x="2" y="2" rx="5" ry="5"/><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"/><line x1="17.5" x2="17.51" y1="6.5" y2="6.5"/></svg>',thread:`<svg width="413" height="480" viewBox="0 0 413 480" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M321.342 222.471C319.275 221.48 317.175 220.526 315.047 219.613C311.342 151.346 274.04 112.262 211.405 111.862C211.121 111.861 210.839 111.861 210.555 111.861C173.091 111.861 141.933 127.852 122.755 156.952L157.202 180.582C171.529 158.846 194.013 154.212 210.572 154.212C210.763 154.212 210.955 154.212 211.144 154.214C231.768 154.345 247.33 160.342 257.402 172.035C264.732 180.548 269.635 192.312 272.062 207.16C253.777 204.052 234.002 203.096 212.862 204.308C153.312 207.738 115.028 242.47 117.599 290.73C118.904 315.21 131.099 336.27 151.938 350.027C169.556 361.658 192.247 367.345 215.831 366.057C246.975 364.35 271.408 352.467 288.452 330.74C301.397 314.24 309.585 292.857 313.2 265.915C328.043 274.872 339.042 286.66 345.117 300.83C355.447 324.918 356.05 364.5 323.753 396.77C295.455 425.04 261.44 437.27 210.034 437.648C153.01 437.225 109.884 418.938 81.8452 383.293C55.5887 349.915 42.0192 301.705 41.513 240C42.0192 178.294 55.5887 130.084 81.8452 96.7068C109.884 61.0623 153.01 42.775 210.033 42.3512C267.47 42.7783 311.348 61.1535 340.46 96.97C354.735 114.534 365.497 136.622 372.592 162.376L412.96 151.605C404.36 119.906 390.827 92.5892 372.412 69.935C335.09 24.0167 280.505 0.48787 210.174 0H209.892C139.704 0.486175 85.7302 24.1045 49.4707 70.1982C17.2048 111.216 0.561 168.289 0.00174999 239.831L0 240L0.00174999 240.169C0.561 311.71 17.2048 368.785 49.4707 409.803C85.7302 455.895 139.704 479.515 209.892 480H210.174C272.575 479.568 316.56 463.23 352.795 427.028C400.202 379.665 398.775 320.298 383.15 283.853C371.94 257.717 350.568 236.49 321.342 222.471ZM213.601 323.768C187.501 325.238 160.386 313.522 159.049 288.43C158.058 269.825 172.29 249.065 215.203 246.592C220.117 246.309 224.94 246.17 229.678 246.17C245.265 246.17 259.848 247.684 273.105 250.583C268.16 312.337 239.155 322.365 213.601 323.768Z" fill="white"/></svg>
|
12
|
+
`},Po={naver:{backgroundColor:"#03C75A",borderColor:"#03C75A"},kakao:{backgroundColor:"#FAE100",borderColor:"#FAE100"},youtube:{backgroundColor:"#ff0000",borderColor:"#ff0000"},instagram:{backgroundColor:"transparent",borderColor:"",backgroundImage:"linear-gradient(45deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%)"},thread:{backgroundColor:"#121212",borderColor:"#121212"}},Bt=class{constructor(t){P(this,"container");P(this,"menu");P(this,"trigger");P(this,"options");P(this,"isOpenSignal",Ci(!1));let n=t.containerSelector??Vi,i=t.triggerContent??Lo;this.options={containerSelector:n,triggerContent:i,snsConfigs:t.snsConfigs},this.container=document.querySelector(n),this.menu=this.container.querySelector(Do),this.trigger=this.container.querySelector(No),this.isOpenSignal.subscribe(s=>{s?this.handleOpen():this.handleClose()}),typeof this.options.triggerContent=="string"?this.trigger.innerHTML=this.options.triggerContent:this.options.triggerContent instanceof HTMLElement&&this.trigger.appendChild(this.options.triggerContent),this.initialize()}initialize(){this.menu.innerHTML="",this.options.snsConfigs.forEach(t=>{let n=document.createElement("li"),i=document.createElement("button");i.innerHTML=Fo[t.sns];let s=Po[t.sns];i.style.borderColor=s.borderColor,i.style.backgroundColor=s.backgroundColor,i.style.backgroundImage=s.backgroundImage??"",i.style.color=t.sns==="kakao"?"#000000":"#FFFFFF",i.dataset.hoverBg=s.backgroundColor||"",n.appendChild(i),this.menu.appendChild(n),i.addEventListener("click",()=>{window.open(t.link,"_blank"),this.isOpenSignal.value=!1})}),this.trigger.addEventListener("click",()=>this.toggle()),document.addEventListener("click",t=>this.handleClickOutside(t)),setTimeout(()=>{$(Vi).addClass("visible")},800)}toggle(){this.isOpenSignal.value=!this.isOpenSignal.value}handleOpen(){this.menu.setAttribute("data-visible","true");let t=this.menu.querySelectorAll("li");t.length>0&&j(t,{opacity:1,transform:"translateY(0)"},{delay:Pt(.1,{from:"last"}),duration:.3,ease:"easeInOut"})}handleClose(){let t=this.menu.querySelectorAll("li");t.length>0?j(t,{opacity:0,transform:"translateY(5px)"},{delay:Pt(.1,{from:"first"}),duration:.3,ease:"easeInOut",onComplete:()=>{this.menu.setAttribute("data-visible","false")}}):this.menu.setAttribute("data-visible","false")}handleClickOutside(t){this.container.contains(t.target)||(this.isOpenSignal.value=!1)}};E(()=>{Ai({FloatingFixedButton:Bt}),window.NudgeMoment.net.emit("template__FloatingFixedButton")});function Io(){let e=document.createElement("div");e.className="NDGMNT__header__scroll-progress";let t=$("#inline_header_mobile").is(":visible"),n=document.querySelector(t?"#inline_header_mobile":"#inline_header_normal");U(!n,"[NDGMNT] header element \uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."),n.appendChild(e);function i(){let s=window.scrollY,r=document.documentElement.scrollHeight-window.innerHeight,o=s/r;s>100?e.classList.add("visible"):e.classList.remove("visible"),e.style.transform=`scaleX(${o})`}window.addEventListener("scroll",i)}E(()=>{Io()});var de={IMWEB_SLIDE_MENU_WRAP:"#mobile_slide_menu_wrap",IMWEB_SLIDE_MENU:"#mobile_slide_menu",MOBILE_MENU_DIMMED:"NDGMNT__mobile-top-nav__dimmed",MOBILE_MENU_CONTAINER:"NDGMNT__mobile-top-nav__container",MOBILE_MENU_LIST:"NDGMNT__mobile-top-nav__list"};function Oo(){let e=document.querySelector(de.IMWEB_SLIDE_MENU_WRAP);U(!e,`${de.IMWEB_SLIDE_MENU_WRAP} \uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.`);let t=e.classList.contains("slide_open"),n=document.createElement("div");n.className=de.MOBILE_MENU_DIMMED;let i=document.createElement("div");i.className=de.MOBILE_MENU_CONTAINER;let s=document.createElement("ul");s.className=de.MOBILE_MENU_LIST,document.querySelectorAll(`${de.IMWEB_SLIDE_MENU} li[data-code]`).forEach(a=>{let l=a.cloneNode(!0);s.appendChild(l)}),i.appendChild(s),document.body.appendChild(n),document.body.appendChild(i),new MutationObserver(a=>{let l=e.classList.contains("slide_open");l!==t&&(l?(n.classList.add("visible"),setTimeout(()=>{n.classList.add("active"),i.classList.add("open")},10)):(n.classList.remove("active"),i.classList.remove("open"),document.body.style.overflowY="initial",setTimeout(()=>{n.classList.remove("visible")},300)),t=l)}).observe(e,{attributes:!0,attributeFilter:["class"]}),n.addEventListener("click",()=>{e.classList.remove("slide_open")})}E(()=>{$("#mobile_slide_menu_wrap").css("display","none"),Oo()});var Ro={TYPING_TEXT:".NDGMNT-home__hero-section__typing-text"},kt=class{constructor(t,n={}){P(this,"element");P(this,"originalText");P(this,"duration");P(this,"delay");P(this,"started");this.element=t,this.originalText=t.textContent,this.duration=n.duration||100,this.delay=parseInt(t.dataset.delay||String(n.delay||0)),this.element.textContent="",this.started=!1,this.init()}init(){W(this.element,t=>{t.isIntersecting&&!this.started&&setTimeout(()=>{this.element.style.position="static",this.element.style.opacity="1",this.startTyping()},this.delay)},{amount:.1})}startTyping(){this.started=!0;let t=0,n=setInterval(()=>{t<this.originalText.length?(this.element.textContent=this.originalText.substring(0,t+1),t++):clearInterval(n)},this.duration)}};E(()=>{document.querySelectorAll(Ro.TYPING_TEXT).forEach(e=>{new kt(e,{duration:200,delay:0})})});var Ht=class{constructor(t,n={}){this.container=t,this.beforeImage=t.querySelector("#before-image"),this.afterImage=t.querySelector("#after-image"),this.slider=t.querySelector("#slider"),this.isDragging=!1,this.enableHover=n.enableHover||!1,this.position=50,this.init(),this.toastTimeout=null,this.createToast()}init(){let t=()=>{this.beforeImage.style.clipPath=`inset(0 0 0 ${this.position}%)`,this.afterImage.style.clipPath=`inset(0 ${100-this.position}% 0 0)`,this.slider.style.left=`${this.position}%`;let s=document.querySelector(".NDGMNT-home__hero-section__tooltip-container");console.log("_tooltipEl",s),s&&s.style.display!=="none"&&(s.style.display="none");let r=document.querySelector(".hero-diff-frame");this.position===50?r.style.borderColor="white":this.position<50?(r.style.borderColor="#ff0054",this.showToast("Bad","bad")):(r.style.borderColor="#33ca7f",this.showToast("Good","good"))},n=s=>{if(!this.isDragging&&!this.enableHover)return;let r=this.container.getBoundingClientRect(),o="touches"in s?s.touches[0].clientX-r.left:s.clientX-r.left;this.position=Math.min(Math.max(o/r.width*100,0),100),t()};this.container.addEventListener("mousemove",n),this.container.addEventListener("touchmove",n),this.container.addEventListener("mousedown",()=>{this.enableHover||(this.isDragging=!0)}),this.container.addEventListener("touchstart",()=>{this.enableHover||(this.isDragging=!0)});let i=()=>{this.enableHover||(this.isDragging=!1)};this.container.addEventListener("mouseup",i),this.container.addEventListener("mouseleave",i),this.container.addEventListener("touchend",i),t(),this.container.style.opacity="100%"}createToast(){let t=document.createElement("div");t.style.cssText=`
|
13
13
|
position: absolute;
|
14
14
|
top: -50px;
|
15
15
|
left: 50%;
|
@@ -48,7 +48,7 @@
|
|
48
48
|
`,n=document.querySelector(`.${e}`);if(n){let s=function(){let r=n.querySelector(".NDGMNT__mobile-hero-section__tooltip-wrapper");r.classList.remove("NDGMNT__mobile-hero-section__tooltip--bounce"),setTimeout(()=>{r.classList.add("NDGMNT__mobile-hero-section__tooltip--bounce")},100)};var i=s;n.style.position="relative",n.insertAdjacentHTML("beforeend",t),setInterval(s,1e4)}}E(()=>{ko()});var Ho={ANIMATE:"animate"},Go={CANCEL:".cancel-line"};function Wo(){let e=document.querySelectorAll(Go.CANCEL),t=e[0];W(t,n=>{n.isIntersecting&&e.forEach((i,s)=>{setTimeout(()=>{i.classList.add(Ho.ANIMATE)},s*1e3)})},{margin:"-40% 0px -40% 0px"})}E(()=>{Wo()});var Di={BLUR:".NDGMNT__strong-blur"};function qo(){let e=Di.BLUR;W(e,()=>{let t=document.querySelector(e);U(!t,`${Di.BLUR} \uC120\uD0DD\uC790\uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4`),t.style.filter="blur(0px)"},{margin:"-50% 0px -30% 0px"})}E(()=>{qo()});var Wt=class{constructor(t={}){this.text=t.text||"Default text for animation",this.container=document.getElementById("text-content"),this.words=this.text.split(""),this.init(),this.setupScrollHandler()}init(){let t=this.text.split(`
|
49
49
|
`);this.totalCharCount=0,t.forEach((n,i)=>{let s=Array.from(n);this.totalCharCount+=s.length;let r=document.createElement("span");r.className="word-container";let o=document.createElement("span");o.className="word-shadow";let a=document.createElement("span");a.className="word-reveal",s.forEach((l,u)=>{let c=document.createElement("span");c.textContent=l,c.style.opacity="0",c.dataset.index=String(this.totalCharCount-s.length+u),a.appendChild(c);let h=document.createElement("span");h.textContent=l,o.appendChild(h)}),r.appendChild(o),r.appendChild(a),this.container.appendChild(r),i<t.length-1&&this.container.appendChild(document.createElement("br"))})}setupScrollHandler(){window.addEventListener("scroll",()=>{requestAnimationFrame(()=>this.handleScroll())})}handleScroll(){let n=document.getElementById("text-reveal-container").getBoundingClientRect(),i=window.innerHeight/2,s=n.top+n.height/2,r=Math.max(0,Math.min(1,(i-s)/(i/2)));document.querySelectorAll(".word-reveal span").forEach(a=>{let u=parseInt(a.dataset.index)/this.totalCharCount,c=this.totalCharCount/2,h=Math.max(0,Math.min(1,(r-u)*c));Motion.animate(a,{opacity:h},{duration:.4,easing:"ease-out"})})}};E(()=>{new Wt({text:`\uACE0\uAC1D\uC758 \uC2DC\uC120\uC774 \uBA38\uBB34\uB294 \uD648\uD398\uC774\uC9C0 \uC81C\uC791\uC744 \uC704\uD574
|
50
50
|
\uC5B4\uB5BB\uAC8C \uB9CC\uB4E4\uC5B4\uC57C \uD560\uAE4C\uC694?`})});var qt=class{constructor(t={}){this.width=t.width||300,this.height=t.height||300,this.minScratchPercentage=t.minScratchPercentage||50,this.gradientColors=t.gradientColors||["#A97CF8","#F38CB8","#FDCC92"],this.onComplete=t.onComplete||(()=>{}),this.canvas=document.getElementById("scratch-canvas"),this.container=document.getElementById("scratch-container"),this.ctx=this.canvas.getContext("2d"),this.isScratching=!1,this.isComplete=!1,this.onComplete=()=>{content.style.filter="blur(0)",content.style.color="rgba(0,0,0,1)",content.style.zIndex="10",t.onComplete&&t.onComplete()},this.init(),this.setupEventListeners()}init(){this.canvas.width=this.width,this.canvas.height=this.height,this.container.style.width=`${this.width}px`,this.container.style.height=`${this.height}px`,this.ctx.fillStyle="#ccc",this.ctx.fillRect(0,0,this.width,this.height);let t=this.ctx.createLinearGradient(0,0,this.width,this.height);t.addColorStop(0,this.gradientColors[0]),t.addColorStop(.5,this.gradientColors[1]),t.addColorStop(1,this.gradientColors[2]),this.ctx.fillStyle=t,this.ctx.fillRect(0,0,this.width,this.height),document.querySelector("#content").style.visibility="visible"}setupEventListeners(){this.canvas.addEventListener("mousedown",()=>this.isScratching=!0),this.canvas.addEventListener("touchstart",t=>{this.isScratching=!0,t.preventDefault()}),document.addEventListener("mousemove",t=>this.handleScratch(t)),document.addEventListener("touchmove",t=>this.handleScratch(t.touches[0])),document.addEventListener("mouseup",()=>this.handleScratchEnd()),document.addEventListener("touchend",()=>this.handleScratchEnd()),document.addEventListener("touchcancel",()=>this.handleScratchEnd())}handleScratch(t){if(!this.isScratching)return;let n=this.canvas.getBoundingClientRect(),i=t.clientX-n.left+16,s=t.clientY-n.top+16;this.ctx.globalCompositeOperation="destination-out",this.ctx.beginPath(),this.ctx.arc(i,s,30,0,Math.PI*2),this.ctx.fill()}handleScratchEnd(){this.isScratching&&(this.isScratching=!1,this.checkCompletion())}checkCompletion(){if(this.isComplete)return;let n=this.ctx.getImageData(0,0,this.width,this.height).data,i=n.length/4,s=0;for(let o=3;o<n.length;o+=4)n[o]===0&&s++;s/i*100>=this.minScratchPercentage&&(this.isComplete=!0,this.ctx.clearRect(0,0,this.width,this.height),this.startAnimation())}async startAnimation(){let{animate:t}=Motion;await t(this.container,{scale:[.95,1]},{duration:.4,easing:"ease-out"}),this.onComplete()}};E(()=>{let e=new qt({width:300,height:300,minScratchPercentage:20,gradientColors:["#FFF1E6","#FD9A36","#FFBD6F"]})});function Ko(){let e=document.querySelectorAll(".mobile__cancel-line"),t=e[0];W(t,n=>{n.isIntersecting&&e.forEach((i,s)=>{setTimeout(()=>{i.classList.add("animate")},s*1e3)})},{margin:"-40% 0px -40% 0px"})}function $o(){let e=".NDGMNT__mobile__strong-blur";W(e,()=>{let t=document.querySelector(e);U(!t,`${e} \uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.`),t.style.filter="blur(0px)"},{margin:"-50% 0px -30% 0px"})}function Uo(){class e{constructor(n={}){this.text=n.text||"Default text for animation",this.container=document.getElementById("mobile__text-content"),this.words=this.text.split(""),this.init(),this.setupScrollHandler()}init(){let n=this.text.split(`
|
51
|
-
`);this.totalCharCount=0,n.forEach((i,s)=>{let r=Array.from(i);this.totalCharCount+=r.length;let o=document.createElement("span");o.className="mobile__word-container";let a=document.createElement("span");a.className="mobile__word-shadow";let l=document.createElement("span");l.className="mobile__word-reveal",r.forEach((u,c)=>{let h=document.createElement("span");h.textContent=u,h.style.opacity="0",h.dataset.index=String(this.totalCharCount-r.length+c),l.appendChild(h);let d=document.createElement("span");d.textContent=u,a.appendChild(d)}),o.appendChild(a),o.appendChild(l),this.container.appendChild(o),s<n.length-1&&this.container.appendChild(document.createElement("br"))})}setupScrollHandler(){window.addEventListener("scroll",()=>{requestAnimationFrame(()=>this.handleScroll())})}handleScroll(){let i=document.getElementById("mobile__text-reveal-container").getBoundingClientRect(),s=window.innerHeight/2,r=i.top+i.height/2,o=Math.max(0,Math.min(1,(s-r)/(s/2)));document.querySelectorAll(".mobile__word-reveal span").forEach(l=>{let c=parseInt(l.dataset.index)/this.totalCharCount,h=this.totalCharCount/2,d=Math.max(0,Math.min(1,(o-c)*h));
|
51
|
+
`);this.totalCharCount=0,n.forEach((i,s)=>{let r=Array.from(i);this.totalCharCount+=r.length;let o=document.createElement("span");o.className="mobile__word-container";let a=document.createElement("span");a.className="mobile__word-shadow";let l=document.createElement("span");l.className="mobile__word-reveal",r.forEach((u,c)=>{let h=document.createElement("span");h.textContent=u,h.style.opacity="0",h.dataset.index=String(this.totalCharCount-r.length+c),l.appendChild(h);let d=document.createElement("span");d.textContent=u,a.appendChild(d)}),o.appendChild(a),o.appendChild(l),this.container.appendChild(o),s<n.length-1&&this.container.appendChild(document.createElement("br"))})}setupScrollHandler(){window.addEventListener("scroll",()=>{requestAnimationFrame(()=>this.handleScroll())})}handleScroll(){let i=document.getElementById("mobile__text-reveal-container").getBoundingClientRect(),s=window.innerHeight/2,r=i.top+i.height/2,o=Math.max(0,Math.min(1,(s-r)/(s/2)));document.querySelectorAll(".mobile__word-reveal span").forEach(l=>{let c=parseInt(l.dataset.index)/this.totalCharCount,h=this.totalCharCount/2,d=Math.max(0,Math.min(1,(o-c)*h));j(l,{opacity:d},{duration:.4,ease:"easeOut"})})}}new e({text:`\uACE0\uAC1D\uC758 \uC2DC\uC120\uC774
|
52
52
|
\uBA38\uBB34\uB294 \uD648\uD398\uC774\uC9C0
|
53
53
|
\uC81C\uC791\uC744 \uC704\uD574
|
54
54
|
\uC5B4\uB5BB\uAC8C \uB9CC\uB4E4\uC5B4\uC57C \uD560\uAE4C\uC694?`})}E(()=>{Ko(),$o(),Uo()});})();
|
package/dist/style.css
CHANGED