import{r as t}from"./router-DIFvPQjr.js";import{a as e}from"./react-vendor-C9E7Rxkj.js";var s=e();const i=t.createContext({});function n(e){const s=t.useRef(null);return null===s.current&&(s.current=e()),s.current}const r="undefined"!=typeof window,o=r?t.useLayoutEffect:t.useEffect,a=t.createContext(null);function l(t,e){-1===t.indexOf(e)&&t.push(e)}function c(t,e){const s=t.indexOf(e);s>-1&&t.splice(s,1)}const d=(t,e,s)=>s>e?e:s/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function p(t){return"object"==typeof t&&null!==t}const m=t=>/^0[^.\s]+$/u.test(t);function f(t){let e;return()=>(void 0===e&&(e=t()),e)}const g=t=>t,v=(t,e)=>s=>e(t(s)),y=(...t)=>t.reduce(v),w=(t,e,s)=>{const i=e-t;return 0===i?1:(s-t)/i};class x{constructor(){this.subscriptions=[]}add(t){return l(this.subscriptions,t),()=>c(this.subscriptions,t)}notify(t,e,s){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,s);else for(let n=0;n1e3*t,S=t=>t/1e3;function b(t,e){return e?t*(1e3/e):0}const P=(t,e,s)=>(((1-3*s+3*e)*t+(3*s-6*e))*t+3*e)*t;function E(t,e,s,i){if(t===e&&s===i)return g;const n=e=>function(t,e,s,i,n){let r,o,a=0;do{o=e+(s-e)/2,r=P(o,i,n)-t,r>0?s=o:e=o}while(Math.abs(r)>1e-7&&++a<12);return o}(e,0,1,t,s);return t=>0===t||1===t?t:P(n(t),e,i)}const M=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,C=t=>e=>1-t(1-e),A=E(.33,1.53,.69,.99),k=C(A),V=M(k),L=t=>(t*=2)<1?.5*k(t):.5*(2-Math.pow(2,-10*(t-1))),D=t=>1-Math.sin(Math.acos(t)),I=C(D),O=M(D),R=E(.42,0,1,1),B=E(0,0,.58,1),F=E(.42,0,.58,1),j=t=>Array.isArray(t)&&"number"==typeof t[0],z={linear:g,easeIn:R,easeInOut:F,easeOut:B,circIn:D,circInOut:O,circOut:I,backIn:k,backInOut:V,backOut:A,anticipate:L},N=t=>{if(j(t)){t.length;const[e,s,i,n]=t;return E(e,s,i,n)}return"string"==typeof t?z[t]:t},G=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function $(t,e){let s=!1,i=!0;const n={delta:0,timestamp:0,isProcessing:!1},r=()=>s=!0,o=G.reduce((t,e)=>(t[e]=function(t){let e=new Set,s=new Set,i=!1,n=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(e){r.has(e)&&(l.schedule(e),t()),e(o)}const l={schedule:(t,n=!1,o=!1)=>{const a=o&&i?e:s;return n&&r.add(t),a.has(t)||a.add(t),t},cancel:t=>{s.delete(t),r.delete(t)},process:t=>{o=t,i?n=!0:(i=!0,[e,s]=[s,e],e.forEach(a),e.clear(),i=!1,n&&(n=!1,l.process(t)))}};return l}(r),t),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:d,update:h,preRender:p,render:m,postRender:f}=o,g=()=>{const r=u.useManualTiming?n.timestamp:performance.now();s=!1,u.useManualTiming||(n.delta=i?1e3/60:Math.max(Math.min(r-n.timestamp,40),1)),n.timestamp=r,n.isProcessing=!0,a.process(n),l.process(n),c.process(n),d.process(n),h.process(n),p.process(n),m.process(n),f.process(n),n.isProcessing=!1,s&&e&&(i=!1,t(g))};return{schedule:G.reduce((e,r)=>{const a=o[r];return e[r]=(e,r=!1,o=!1)=>(s||(s=!0,i=!0,n.isProcessing||t(g)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;e(void 0===X&&q.set(H.isProcessing||u.useManualTiming?H.timestamp:performance.now()),X),set:t=>{X=t,queueMicrotask(Y)}},K=t=>e=>"string"==typeof e&&e.startsWith(t),Z=K("--"),J=K("var(--"),Q=t=>!!J(t)&&tt.test(t.split("/*")[0].trim()),tt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,et={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},st={...et,transform:t=>d(0,1,t)},it={...et,default:1},nt=t=>Math.round(1e5*t)/1e5,rt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const ot=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,at=(t,e)=>s=>Boolean("string"==typeof s&&ot.test(s)&&s.startsWith(t)||e&&!function(t){return null==t}(s)&&Object.prototype.hasOwnProperty.call(s,e)),lt=(t,e,s)=>i=>{if("string"!=typeof i)return i;const[n,r,o,a]=i.match(rt);return{[t]:parseFloat(n),[e]:parseFloat(r),[s]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},ct={...et,transform:t=>Math.round((t=>d(0,255,t))(t))},dt={test:at("rgb","red"),parse:lt("red","green","blue"),transform:({red:t,green:e,blue:s,alpha:i=1})=>"rgba("+ct.transform(t)+", "+ct.transform(e)+", "+ct.transform(s)+", "+nt(st.transform(i))+")"};const ut={test:at("#"),parse:function(t){let e="",s="",i="",n="";return t.length>5?(e=t.substring(1,3),s=t.substring(3,5),i=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),s=t.substring(2,3),i=t.substring(3,4),n=t.substring(4,5),e+=e,s+=s,i+=i,n+=n),{red:parseInt(e,16),green:parseInt(s,16),blue:parseInt(i,16),alpha:n?parseInt(n,16)/255:1}},transform:dt.transform},ht=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),pt=ht("deg"),mt=ht("%"),ft=ht("px"),gt=ht("vh"),vt=ht("vw"),yt=(()=>({...mt,parse:t=>mt.parse(t)/100,transform:t=>mt.transform(100*t)}))(),wt={test:at("hsl","hue"),parse:lt("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:s,alpha:i=1})=>"hsla("+Math.round(t)+", "+mt.transform(nt(e))+", "+mt.transform(nt(s))+", "+nt(st.transform(i))+")"},xt={test:t=>dt.test(t)||ut.test(t)||wt.test(t),parse:t=>dt.test(t)?dt.parse(t):wt.test(t)?wt.parse(t):ut.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?dt.transform(t):wt.transform(t),getAnimatableNone:t=>{const e=xt.parse(t);return e.alpha=0,xt.transform(e)}},Tt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const St="number",bt="color",Pt=/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 Et(t){const e=t.toString(),s=[],i={color:[],number:[],var:[]},n=[];let r=0;const o=e.replace(Pt,t=>(xt.test(t)?(i.color.push(r),n.push(bt),s.push(xt.parse(t))):t.startsWith("var(")?(i.var.push(r),n.push("var"),s.push(t)):(i.number.push(r),n.push(St),s.push(parseFloat(t))),++r,"${}")).split("${}");return{values:s,split:o,indexes:i,types:n}}function Mt(t){return Et(t).values}function Ct(t){const{split:e,types:s}=Et(t),i=e.length;return t=>{let n="";for(let r=0;r"number"==typeof t?0:xt.test(t)?xt.getAnimatableNone(t):t;const kt={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(rt)?.length||0)+(t.match(Tt)?.length||0)>0},parse:Mt,createTransformer:Ct,getAnimatableNone:function(t){const e=Mt(t);return Ct(t)(e.map(At))}};function Vt(t,e,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+6*(e-t)*s:s<.5?e:s<2/3?t+(e-t)*(2/3-s)*6:t}function Lt(t,e){return s=>s>0?e:t}const Dt=(t,e,s)=>t+(e-t)*s,It=(t,e,s)=>{const i=t*t,n=s*(e*e-i)+i;return n<0?0:Math.sqrt(n)},Ot=[ut,dt,wt];function Rt(t){const e=(s=t,Ot.find(t=>t.test(s)));var s;if(!Boolean(e))return!1;let i=e.parse(t);return e===wt&&(i=function({hue:t,saturation:e,lightness:s,alpha:i}){t/=360,s/=100;let n=0,r=0,o=0;if(e/=100){const i=s<.5?s*(1+e):s+e-s*e,a=2*s-i;n=Vt(a,i,t+1/3),r=Vt(a,i,t),o=Vt(a,i,t-1/3)}else n=r=o=s;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*o),alpha:i}}(i)),i}const Bt=(t,e)=>{const s=Rt(t),i=Rt(e);if(!s||!i)return Lt(t,e);const n={...s};return t=>(n.red=It(s.red,i.red,t),n.green=It(s.green,i.green,t),n.blue=It(s.blue,i.blue,t),n.alpha=Dt(s.alpha,i.alpha,t),dt.transform(n))},Ft=new Set(["none","hidden"]);function jt(t,e){return s=>Dt(t,e,s)}function zt(t){return"number"==typeof t?jt:"string"==typeof t?Q(t)?Lt:xt.test(t)?Bt:$t:Array.isArray(t)?Nt:"object"==typeof t?xt.test(t)?Bt:Gt:Lt}function Nt(t,e){const s=[...t],i=s.length,n=t.map((t,s)=>zt(t)(t,e[s]));return t=>{for(let e=0;e{for(const e in i)s[e]=i[e](t);return s}}const $t=(t,e)=>{const s=kt.createTransformer(e),i=Et(t),n=Et(e);return i.indexes.var.length===n.indexes.var.length&&i.indexes.color.length===n.indexes.color.length&&i.indexes.number.length>=n.indexes.number.length?Ft.has(t)&&!n.values.length||Ft.has(e)&&!i.values.length?function(t,e){return Ft.has(t)?s=>s<=0?t:e:s=>s>=1?e:t}(t,e):y(Nt(function(t,e){const s=[],i={color:0,var:0,number:0};for(let n=0;n{const e=({timestamp:e})=>t(e);return{start:(t=!0)=>_.update(e,t),stop:()=>W(e),now:()=>H.isProcessing?H.timestamp:q.now()}},Ht=(t,e,s=10)=>{let i="";const n=Math.max(Math.round(e/s),2);for(let r=0;r=Ut?1/0:e}function Yt(t,e,s){const i=Math.max(e-5,0);return b(s-t(i),e-i)}const qt=100,Kt=10,Zt=1,Jt=0,Qt=800,te=.3,ee=.3,se={granular:.01,default:2},ie={granular:.005,default:.5},ne=.01,re=10,oe=.05,ae=1,le=.001;function ce({duration:t=Qt,bounce:e=te,velocity:s=Jt,mass:i=Zt}){let n,r,o=1-e;o=d(oe,ae,o),t=d(ne,re,S(t)),o<1?(n=e=>{const i=e*o,n=i*t,r=i-s,a=ue(e,o),l=Math.exp(-n);return le-r/a*l},r=e=>{const i=e*o*t,r=i*s+s,a=Math.pow(o,2)*Math.pow(e,2)*t,l=Math.exp(-i),c=ue(Math.pow(e,2),o);return(-n(e)+le>0?-1:1)*((r-a)*l)/c}):(n=e=>Math.exp(-e*t)*((e-s)*t+1)-.001,r=e=>Math.exp(-e*t)*(t*t*(s-e)));const a=function(t,e,s){let i=s;for(let n=1;nvoid 0!==t[e])}function fe(t=ee,e=te){const s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:n}=s;const r=s.keyframes[0],o=s.keyframes[s.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:c,mass:u,duration:h,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:Jt,stiffness:qt,damping:Kt,mass:Zt,isResolvedFromDuration:!1,...t};if(!me(t,pe)&&me(t,he))if(t.visualDuration){const s=t.visualDuration,i=2*Math.PI/(1.2*s),n=i*i,r=2*d(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:Zt,stiffness:n,damping:r}}else{const s=ce(t);e={...e,...s,mass:Zt},e.isResolvedFromDuration=!0}return e}({...s,velocity:-S(s.velocity||0)}),f=p||0,g=c/(2*Math.sqrt(l*u)),v=o-r,y=S(Math.sqrt(l/u)),w=Math.abs(v)<5;let x;if(i||(i=w?se.granular:se.default),n||(n=w?ie.granular:ie.default),g<1){const t=ue(y,g);x=e=>{const s=Math.exp(-g*y*e);return o-s*((f+g*y*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}}else if(1===g)x=t=>o-Math.exp(-y*t)*(v+(f+y*v)*t);else{const t=y*Math.sqrt(g*g-1);x=e=>{const s=Math.exp(-g*y*e),i=Math.min(t*e,300);return o-s*((f+g*y*v)*Math.sinh(i)+t*v*Math.cosh(i))/t}}const b={calculatedDuration:m&&h||null,next:t=>{const e=x(t);if(m)a.done=t>=h;else{let s=0===t?f:0;g<1&&(s=0===t?T(f):Yt(x,t,e));const r=Math.abs(s)<=i,l=Math.abs(o-e)<=n;a.done=r&&l}return a.value=a.done?o:e,a},toString:()=>{const t=Math.min(Xt(b),Ut),e=Ht(e=>b.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return b}function ge({keyframes:t,velocity:e=0,power:s=.8,timeConstant:i=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:d}){const u=t[0],h={done:!1,value:u},p=t=>void 0===a?l:void 0===l||Math.abs(a-t)-m*Math.exp(-t/i),y=t=>g+v(t),w=t=>{const e=v(t),s=y(t);h.done=Math.abs(e)<=c,h.value=h.done?g:s};let x,T;const S=t=>{var e;(e=h.value,void 0!==a&&el)&&(x=t,T=fe({keyframes:[h.value,p(h.value)],velocity:Yt(y,t,h.value),damping:n,stiffness:r,restDelta:c,restSpeed:d}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return T||void 0!==x||(e=!0,w(t),S(t)),void 0!==x&&t>=x?T.next(t-x):(!e&&w(t),h)}}}function ve(t,e,{clamp:s=!0,ease:i,mixer:n}={}){const r=t.length;if(e.length,1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,s){const i=[],n=s||u.mix||_t,r=t.length-1;for(let o=0;o{if(o&&s1)for(;ic(d(t[0],t[r-1],e)):c}function ye(t){const e=[0];return function(t,e){const s=t[t.length-1];for(let i=1;i<=e;i++){const n=w(0,e,i);t.push(Dt(s,1,n))}}(e,t.length-1),e}function we({duration:t=300,keyframes:e,times:s,ease:i="easeInOut"}){const n=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(N):N(i),r={done:!1,value:e[0]},o=function(t,e){return t.map(t=>t*e)}(s&&s.length===e.length?s:ye(e),t),a=ve(o,e,{ease:Array.isArray(n)?n:(l=e,c=n,l.map(()=>c||F).splice(0,l.length-1))});var l,c;return{calculatedDuration:t,next:e=>(r.value=a(e),r.done=e>=t,r)}}fe.applyToOptions=t=>{const e=function(t,e=100,s){const i=s({...t,keyframes:[0,e]}),n=Math.min(Xt(i),Ut);return{type:"keyframes",ease:t=>i.next(n*t).value/e,duration:S(n)}}(t,100,fe);return t.ease=e.ease,t.duration=T(e.duration),t.type="keyframes",t};const xe=t=>null!==t;function Te(t,{repeat:e,repeatType:s="loop"},i,n=1){const r=t.filter(xe),o=n<0||e&&"loop"!==s&&e%2==1?0:r.length-1;return o&&void 0!==i?i:r[o]}const Se={decay:ge,inertia:ge,tween:we,keyframes:we,spring:fe};function be(t){"string"==typeof t.type&&(t.type=Se[t.type])}class Pe{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const Ee=t=>t/100;class Me extends Pe{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==q.now()&&this.tick(q.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){const{options:t}=this;be(t);const{type:e=we,repeat:s=0,repeatDelay:i=0,repeatType:n,velocity:r=0}=t;let{keyframes:o}=t;const a=e||we;a!==we&&"number"!=typeof o[0]&&(this.mixKeyframes=y(Ee,_t(o[0],o[1])),o=[0,100]);const l=a({...t,keyframes:o});"mirror"===n&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=Xt(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=l}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:s,totalDuration:i,mixKeyframes:n,mirroredGenerator:r,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return s.next(0);const{delay:l=0,keyframes:c,repeat:u,repeatType:h,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let w=this.currentTime,x=s;if(u){const t=Math.min(this.currentTime,i)/o;let e=Math.floor(t),s=t%1;!s&&t>=1&&(s=1),1===s&&e--,e=Math.min(e,u+1);Boolean(e%2)&&("reverse"===h?(s=1-s,p&&(s-=p/o)):"mirror"===h&&(x=r)),w=d(0,1,s)*o}const T=y?{done:!1,value:c[0]}:x.next(w);n&&(T.value=n(T.value));let{done:S}=T;y||null===a||(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const b=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return b&&m!==ge&&(T.value=Te(c,this.options,g,this.speed)),f&&f(T.value),b&&this.finish(),T}then(t,e){return this.finished.then(t,e)}get duration(){return S(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+S(t)}get time(){return S(this.currentTime)}set time(t){t=T(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(q.now());const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=S(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Wt,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();const s=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=s):null!==this.holdTime?this.startTime=s-this.holdTime:this.startTime||(this.startTime=e??s),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(q.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}const Ce=t=>180*t/Math.PI,Ae=t=>{const e=Ce(Math.atan2(t[1],t[0]));return Ve(e)},ke={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ae,rotateZ:Ae,skewX:t=>Ce(Math.atan(t[1])),skewY:t=>Ce(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ve=t=>((t%=360)<0&&(t+=360),t),Le=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),De=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Ie={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Le,scaleY:De,scale:t=>(Le(t)+De(t))/2,rotateX:t=>Ve(Ce(Math.atan2(t[6],t[5]))),rotateY:t=>Ve(Ce(Math.atan2(-t[2],t[0]))),rotateZ:Ae,rotate:Ae,skewX:t=>Ce(Math.atan(t[4])),skewY:t=>Ce(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Oe(t){return t.includes("scale")?1:0}function Re(t,e){if(!t||"none"===t)return Oe(e);const s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,n;if(s)i=Ie,n=s;else{const e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=ke,n=e}if(!n)return Oe(e);const r=i[e],o=n[1].split(",").map(Be);return"function"==typeof r?r(o):o[r]}function Be(t){return parseFloat(t.trim())}const Fe=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],je=(()=>new Set(Fe))(),ze=t=>t===et||t===ft,Ne=new Set(["x","y","z"]),Ge=Fe.filter(t=>!Ne.has(t));const $e={width:({x:t},{paddingLeft:e="0",paddingRight:s="0"})=>t.max-t.min-parseFloat(e)-parseFloat(s),height:({y:t},{paddingTop:e="0",paddingBottom:s="0"})=>t.max-t.min-parseFloat(e)-parseFloat(s),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Re(e,"x"),y:(t,{transform:e})=>Re(e,"y")};$e.translateX=$e.x,$e.translateY=$e.y;const _e=new Set;let We=!1,He=!1,Ue=!1;function Xe(){if(He){const t=Array.from(_e).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),s=new Map;e.forEach(t=>{const e=function(t){const e=[];return Ge.forEach(s=>{const i=t.getValue(s);void 0!==i&&(e.push([s,i.get()]),i.set(s.startsWith("scale")?1:0))}),e}(t);e.length&&(s.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=s.get(t);e&&e.forEach(([e,s])=>{t.getValue(e)?.set(s)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}He=!1,We=!1,_e.forEach(t=>t.complete(Ue)),_e.clear()}function Ye(){_e.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(He=!0)})}class qe{constructor(t,e,s,i,n,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=s,this.motionValue=i,this.element=n,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(_e.add(this),We||(We=!0,_.read(Ye),_.resolveKeyframes(Xe))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:s,motionValue:i}=this;if(null===t[0]){const n=i?.get(),r=t[t.length-1];if(void 0!==n)t[0]=n;else if(s&&e){const i=s.readValue(e,r);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=r),i&&void 0===n&&i.set(t[0])}!function(t){for(let e=1;evoid 0!==window.ScrollTimeline),Ze={};function Je(t,e){const s=f(t);return()=>Ze[e]??s()}const Qe=Je(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ts=([t,e,s,i])=>`cubic-bezier(${t}, ${e}, ${s}, ${i})`,es={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ts([0,.65,.55,1]),circOut:ts([.55,0,1,.45]),backIn:ts([.31,.01,.66,-.59]),backOut:ts([.33,1.53,.69,.99])};function ss(t,e){return t?"function"==typeof t?Qe()?Ht(t,e):"ease-out":j(t)?ts(t):Array.isArray(t)?t.map(t=>ss(t,e)||es.easeOut):es[t]:void 0}function is(t,e,s,{delay:i=0,duration:n=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const d={[e]:s};l&&(d.offset=l);const u=ss(a,n);Array.isArray(u)&&(d.easing=u);const h={delay:i,duration:n,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};c&&(h.pseudoElement=c);return t.animate(d,h)}function ns(t){return"function"==typeof t&&"applyToOptions"in t}class rs extends Pe{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:s,keyframes:i,pseudoElement:n,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=Boolean(n),this.allowFlatten=r,this.options=t,t.type;const l=function({type:t,...e}){return ns(t)&&Qe()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=is(e,s,i,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){const t=Te(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,s){(t=>t.startsWith("--"))(e)?t.style.setProperty(e,s):t.style[e]=s}(e,s,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return S(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+S(t)}get time(){return S(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=T(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Ke()?(this.animation.timeline=t,g):e(this)}}const os={anticipate:L,backInOut:V,circInOut:O};function as(t){"string"==typeof t.ease&&t.ease in os&&(t.ease=os[t.ease])}class ls extends rs{constructor(t){as(t),be(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:e,onUpdate:s,onComplete:i,element:n,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);const o=new Me({...r,autoplay:!1}),a=T(this.finishedTime??this.time);e.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}const cs=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!kt.test(t)&&"0"!==t||t.startsWith("url(")));function ds(t){t.duration=0,t.type="keyframes"}const us=new Set(["opacity","clipPath","filter","transform"]),hs=f(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class ps extends Pe{constructor({autoplay:t=!0,delay:e=0,type:s="keyframes",repeat:i=0,repeatDelay:n=0,repeatType:r="loop",keyframes:o,name:a,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=q.now();const u={autoplay:t,delay:e,type:s,repeat:i,repeatDelay:n,repeatType:r,name:a,motionValue:l,element:c,...d},h=c?.KeyframeResolver||qe;this.keyframeResolver=new h(o,(t,e,s)=>this.onKeyframesResolved(t,e,u,!s),a,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,s,i){this.keyframeResolver=void 0;const{name:n,type:r,velocity:o,delay:a,isHandoff:l,onUpdate:c}=s;this.resolvedAt=q.now(),function(t,e,s,i){const n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;const r=t[t.length-1],o=cs(n,e),a=cs(r,e);return!(!o||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let s=0;s40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...s,keyframes:t},h=!l&&function(t){const{motionValue:e,name:s,repeatDelay:i,repeatType:n,damping:r,type:o}=t,a=e?.owner?.current;if(!(a instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return hs()&&s&&us.has(s)&&("transform"!==s||!c)&&!l&&!i&&"mirror"!==n&&0!==r&&"inertia"!==o}(d)?new ls({...d,element:d.motionValue.owner.current}):new Me(d);h.finished.then(()=>this.notifyFinished()).catch(g),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ue=!0,Ye(),Xe(),Ue=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const ms=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fs(t,e,s=1){const[i,n]=function(t){const e=ms.exec(t);if(!e)return[,];const[,s,i,n]=e;return[`--${s??i}`,n]}(t);if(!i)return;const r=window.getComputedStyle(e).getPropertyValue(i);if(r){const t=r.trim();return h(t)?parseFloat(t):t}return Q(n)?fs(n,e,s+1):n}function gs(t,e){return t?.[e]??t?.default??t}const vs=new Set(["width","height","top","left","right","bottom",...Fe]),ys=t=>e=>e.test(t),ws=[et,ft,mt,pt,vt,gt,{test:t=>"auto"===t,parse:t=>t}],xs=t=>ws.find(ys(t));function Ts(t){return"number"==typeof t?0===t:null===t||("none"===t||"0"===t||m(t))}const Ss=new Set(["brightness","contrast","saturate","opacity"]);function bs(t){const[e,s]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=s.match(rt)||[];if(!i)return t;const n=s.replace(i,"");let r=Ss.has(e)?1:0;return i!==s&&(r*=100),e+"("+r+n+")"}const Ps=/\b([a-z-]*)\(.*?\)/gu,Es={...kt,getAnimatableNone:t=>{const e=t.match(Ps);return e?e.map(bs).join(" "):t}},Ms={...et,transform:Math.round},Cs={borderWidth:ft,borderTopWidth:ft,borderRightWidth:ft,borderBottomWidth:ft,borderLeftWidth:ft,borderRadius:ft,radius:ft,borderTopLeftRadius:ft,borderTopRightRadius:ft,borderBottomRightRadius:ft,borderBottomLeftRadius:ft,width:ft,maxWidth:ft,height:ft,maxHeight:ft,top:ft,right:ft,bottom:ft,left:ft,padding:ft,paddingTop:ft,paddingRight:ft,paddingBottom:ft,paddingLeft:ft,margin:ft,marginTop:ft,marginRight:ft,marginBottom:ft,marginLeft:ft,backgroundPositionX:ft,backgroundPositionY:ft,...{rotate:pt,rotateX:pt,rotateY:pt,rotateZ:pt,scale:it,scaleX:it,scaleY:it,scaleZ:it,skew:pt,skewX:pt,skewY:pt,distance:ft,translateX:ft,translateY:ft,translateZ:ft,x:ft,y:ft,z:ft,perspective:ft,transformPerspective:ft,opacity:st,originX:yt,originY:yt,originZ:ft},zIndex:Ms,fillOpacity:st,strokeOpacity:st,numOctaves:Ms},As={...Cs,color:xt,backgroundColor:xt,outlineColor:xt,fill:xt,stroke:xt,borderColor:xt,borderTopColor:xt,borderRightColor:xt,borderBottomColor:xt,borderLeftColor:xt,filter:Es,WebkitFilter:Es},ks=t=>As[t];function Vs(t,e){let s=ks(t);return s!==Es&&(s=kt),s.getAnimatableNone?s.getAnimatableNone(e):void 0}const Ls=new Set(["auto","none","0"]);class Ds extends qe{constructor(t,e,s,i,n){super(t,e,s,i,n,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:s}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a{t.getValue(e).set(s)}),this.resolveNoneKeyframes()}}function Is(t,e,s){if(t instanceof EventTarget)return[t];if("string"==typeof t){const e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}const Os=(t,e)=>e&&"number"==typeof t?e.transform(t):t;function Rs(t){return p(t)&&"offsetHeight"in t}class Bs{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{const e=q.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=q.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new x);const s=this.events[t].add(e);return"change"===t?()=>{s(),_.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,s){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=q.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return b(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Fs(t,e){return new Bs(t,e)}const{schedule:js}=$(queueMicrotask,!1),zs={x:!1,y:!1};function Ns(){return zs.x||zs.y}function Gs(t,e){const s=Is(t),i=new AbortController;return[s,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function $s(t){return!("touch"===t.pointerType||Ns())}const _s=(t,e)=>!!e&&(t===e||_s(t,e.parentElement)),Ws=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,Hs=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const Us=new WeakSet;function Xs(t){return e=>{"Enter"===e.key&&t(e)}}function Ys(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function qs(t){return Ws(t)&&!Ns()}function Ks(t,e,s={}){const[i,n,r]=Gs(t,s),o=t=>{const i=t.currentTarget;if(!qs(t))return;Us.add(i);const r=e(i,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),Us.has(i)&&Us.delete(i),qs(t)&&"function"==typeof r&&r(t,{success:e})},a=t=>{o(t,i===window||i===document||s.useGlobalTarget||_s(i,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return i.forEach(t=>{var e;(s.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),Rs(t)&&(t.addEventListener("focus",t=>((t,e)=>{const s=t.currentTarget;if(!s)return;const i=Xs(()=>{if(Us.has(s))return;Ys(s,"down");const t=Xs(()=>{Ys(s,"up")});s.addEventListener("keyup",t,e),s.addEventListener("blur",()=>Ys(s,"cancel"),e)});s.addEventListener("keydown",i,e),s.addEventListener("blur",()=>s.removeEventListener("keydown",i),e)})(t,n)),e=t,Hs.has(e.tagName)||-1!==e.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}function Zs(t){return p(t)&&"ownerSVGElement"in t}const Js=t=>Boolean(t&&t.getVelocity),Qs=[...ws,xt,kt],ti=t.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function ei(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}function si(...e){return t.useCallback(function(...t){return e=>{let s=!1;const i=t.map(t=>{const i=ei(t,e);return s||"function"!=typeof i||(s=!0),i});if(s)return()=>{for(let e=0;e{const{width:t,height:e,top:s,left:d,right:u}=l.current;if(i||!a.current||!t||!e)return;const h="left"===n?`left: ${d}`:`right: ${u}`;a.current.dataset.motionPopId=o;const p=document.createElement("style");c&&(p.nonce=c);const m=r??document.head;return m.appendChild(p),p.sheet&&p.sheet.insertRule(`\n [data-motion-pop-id="${o}"] {\n position: absolute !important;\n width: ${t}px !important;\n height: ${e}px !important;\n ${h}px !important;\n top: ${s}px !important;\n }\n `),()=>{m.contains(p)&&m.removeChild(p)}},[i]),s.jsx(ii,{isPresent:i,childRef:a,sizeRef:l,children:t.cloneElement(e,{ref:d})})}const ri=({children:e,initial:i,isPresent:r,onExitComplete:o,custom:l,presenceAffectsLayout:c,mode:d,anchorX:u,root:h})=>{const p=n(oi),m=t.useId();let f=!0,g=t.useMemo(()=>(f=!1,{id:m,initial:i,isPresent:r,custom:l,onExitComplete:t=>{p.set(t,!0);for(const e of p.values())if(!e)return;o&&o()},register:t=>(p.set(t,!1),()=>p.delete(t))}),[r,p,o]);return c&&f&&(g={...g}),t.useMemo(()=>{p.forEach((t,e)=>p.set(e,!1))},[r]),t.useEffect(()=>{!r&&!p.size&&o&&o()},[r]),"popLayout"===d&&(e=s.jsx(ni,{isPresent:r,anchorX:u,root:h,children:e})),s.jsx(a.Provider,{value:g,children:e})};function oi(){return new Map}function ai(e=!0){const s=t.useContext(a);if(null===s)return[!0,null];const{isPresent:i,onExitComplete:n,register:r}=s,o=t.useId();t.useEffect(()=>{if(e)return r(o)},[e]);const l=t.useCallback(()=>e&&n&&n(o),[o,n,e]);return!i&&n?[!1,l]:[!0]}const li=t=>t.key||"";function ci(e){const s=[];return t.Children.forEach(e,e=>{t.isValidElement(e)&&s.push(e)}),s}const di=({children:e,custom:r,initial:a=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:d="sync",propagate:u=!1,anchorX:h="left",root:p})=>{const[m,f]=ai(u),g=t.useMemo(()=>ci(e),[e]),v=u&&!m?[]:g.map(li),y=t.useRef(!0),w=t.useRef(g),x=n(()=>new Map),[T,S]=t.useState(g),[b,P]=t.useState(g);o(()=>{y.current=!1,w.current=g;for(let t=0;t{const e=li(t),i=!(u&&!m)&&(g===b||v.includes(e));return s.jsx(ri,{isPresent:i,initial:!(y.current&&!a)&&void 0,custom:r,presenceAffectsLayout:c,mode:d,root:p,onExitComplete:i?void 0:()=>{if(!x.has(e))return;x.set(e,!0);let t=!0;x.forEach(e=>{e||(t=!1)}),t&&(M?.(),P(w.current),u&&f?.(),l&&l())},anchorX:h,children:t},e)})})},ui=t.createContext({strict:!1}),hi={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"]},pi={};for(const ul in hi)pi[ul]={isEnabled:t=>hi[ul].some(e=>!!t[e])};const mi=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function fi(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||mi.has(t)}let gi=t=>!fi(t);try{"function"==typeof(vi=require("@emotion/is-prop-valid").default)&&(gi=t=>t.startsWith("on")?!fi(t):vi(t))}catch{}var vi;const yi=t.createContext({});function wi(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function xi(t){return"string"==typeof t||Array.isArray(t)}const Ti=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Si=["initial",...Ti];function bi(t){return wi(t.animate)||Si.some(e=>xi(t[e]))}function Pi(t){return Boolean(bi(t)||t.variants)}function Ei(e){const{initial:s,animate:i}=function(t,e){if(bi(t)){const{initial:e,animate:s}=t;return{initial:!1===e||xi(e)?e:void 0,animate:xi(s)?s:void 0}}return!1!==t.inherit?e:{}}(e,t.useContext(yi));return t.useMemo(()=>({initial:s,animate:i}),[Mi(s),Mi(i)])}function Mi(t){return Array.isArray(t)?t.join(" "):t}const Ci={};function Ai(t,{layout:e,layoutId:s}){return je.has(t)||t.startsWith("origin")||(e||void 0!==s)&&(!!Ci[t]||"opacity"===t)}const ki={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Vi=Fe.length;function Li(t,e,s){const{style:i,vars:n,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const t=e[l];if(je.has(l))o=!0;else if(Z(l))n[l]=t;else{const e=Os(t,Cs[l]);l.startsWith("origin")?(a=!0,r[l]=e):i[l]=e}}if(e.transform||(o||s?i.transform=function(t,e,s){let i="",n=!0;for(let r=0;r({style:{},transform:{},transformOrigin:{},vars:{}});function Ii(t,e,s){for(const i in e)Js(e[i])||Ai(i,s)||(t[i]=e[i])}function Oi(e,s){const i={};return Ii(i,e.style||{},e),Object.assign(i,function({transformTemplate:e},s){return t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return Li(t,s,e),Object.assign({},t.vars,t.style)},[s])}(e,s)),i}function Ri(t,e){const s={},i=Oi(t,e);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=i,s}const Bi={offset:"stroke-dashoffset",array:"stroke-dasharray"},Fi={offset:"strokeDashoffset",array:"strokeDasharray"};function ji(t,{attrX:e,attrY:s,attrScale:i,pathLength:n,pathSpacing:r=1,pathOffset:o=0,...a},l,c,d){if(Li(t,a,c),l)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:u,style:h}=t;u.transform&&(h.transform=u.transform,delete u.transform),(h.transform||u.transformOrigin)&&(h.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),h.transform&&(h.transformBox=d?.transformBox??"fill-box",delete u.transformBox),void 0!==e&&(u.x=e),void 0!==s&&(u.y=s),void 0!==i&&(u.scale=i),void 0!==n&&function(t,e,s=1,i=0,n=!0){t.pathLength=1;const r=n?Bi:Fi;t[r.offset]=ft.transform(-i);const o=ft.transform(e),a=ft.transform(s);t[r.array]=`${o} ${a}`}(u,n,r,o,!1)}const zi=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),Ni=t=>"string"==typeof t&&"svg"===t.toLowerCase();function Gi(e,s,i,n){const r=t.useMemo(()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return ji(t,s,Ni(n),e.transformTemplate,e.style),{...t.attrs,style:{...t.style}}},[s]);if(e.style){const t={};Ii(t,e.style,e),r.style={...t,...r.style}}return r}const $i=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function _i(t){return"string"==typeof t&&!t.includes("-")&&!!($i.indexOf(t)>-1||/[A-Z]/u.test(t))}function Wi(e,s,i,{latestValues:n},r,o=!1){const a=(_i(e)?Gi:Ri)(s,n,r,e),l=function(t,e,s){const i={};for(const n in t)"values"===n&&"object"==typeof t.values||(gi(n)||!0===s&&fi(n)||!e&&!fi(n)||t.draggable&&n.startsWith("onDrag"))&&(i[n]=t[n]);return i}(s,"string"==typeof e,o),c=e!==t.Fragment?{...l,...a,ref:i}:{},{children:d}=s,u=t.useMemo(()=>Js(d)?d.get():d,[d]);return t.createElement(e,{...c,children:u})}function Hi(t){const e=[{},{}];return t?.values.forEach((t,s)=>{e[0][s]=t.get(),e[1][s]=t.getVelocity()}),e}function Ui(t,e,s,i){if("function"==typeof e){const[n,r]=Hi(i);e=e(void 0!==s?s:t.custom,n,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[n,r]=Hi(i);e=e(void 0!==s?s:t.custom,n,r)}return e}function Xi(t){return Js(t)?t.get():t}function Yi(t,e,s,i){const n={},r=i(t,{});for(const h in r)n[h]=Xi(r[h]);let{initial:o,animate:a}=t;const l=bi(t),c=Pi(t);e&&c&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let d=!!s&&!1===s.initial;d=d||!1===o;const u=d?a:o;if(u&&"boolean"!=typeof u&&!wi(u)){const e=Array.isArray(u)?u:[u];for(let s=0;s(s,i)=>{const r=t.useContext(yi),o=t.useContext(a),l=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e},s,i,n){return{latestValues:Yi(s,i,n,t),renderState:e()}}(e,s,r,o);return i?l():n(l)};function Ki(t,e,s){const{style:i}=t,n={};for(const r in i)(Js(i[r])||e.style&&Js(e.style[r])||Ai(r,t)||void 0!==s?.getValue(r)?.liveStyle)&&(n[r]=i[r]);return n}const Zi=qi({scrapeMotionValuesFromProps:Ki,createRenderState:Di});function Ji(t,e,s){const i=Ki(t,e,s);for(const n in t)if(Js(t[n])||Js(e[n])){i[-1!==Fe.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]}return i}const Qi=qi({scrapeMotionValuesFromProps:Ji,createRenderState:zi}),tn=Symbol.for("motionComponentSymbol");function en(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function sn(e,s,i){return t.useCallback(t=>{t&&e.onMount&&e.onMount(t),s&&(t?s.mount(t):s.unmount()),i&&("function"==typeof i?i(t):en(i)&&(i.current=t))},[s])}const nn=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),rn="data-"+nn("framerAppearId"),on=t.createContext({});function an(e,s,i,n,r){const{visualElement:l}=t.useContext(yi),c=t.useContext(ui),d=t.useContext(a),u=t.useContext(ti).reducedMotion,h=t.useRef(null);n=n||c.renderer,!h.current&&n&&(h.current=n(e,{visualState:s,parent:l,props:i,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:u}));const p=h.current,m=t.useContext(on);!p||p.projection||!r||"html"!==p.type&&"svg"!==p.type||function(t,e,s,i){const{layoutId:n,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:d}=e;t.projection=new s(t.latestValues,e["data-framer-portal-id"]?void 0:ln(t.parent)),t.projection.setOptions({layoutId:n,layout:r,alwaysMeasureLayout:Boolean(o)||a&&en(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:i,crossfade:d,layoutScroll:l,layoutRoot:c})}(h.current,i,r,m);const f=t.useRef(!1);t.useInsertionEffect(()=>{p&&f.current&&p.update(i,d)});const g=i[rn],v=t.useRef(Boolean(g)&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return o(()=>{p&&(f.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),v.current&&p.animationState&&p.animationState.animateChanges())}),t.useEffect(()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),v.current=!1),p.enteringChildren=void 0)}),p}function ln(t){if(t)return!1!==t.options.allowProjection?t.projection:ln(t.parent)}function cn(e,{forwardMotionProps:i=!1}={},n,o){n&&function(t){for(const e in t)pi[e]={...pi[e],...t[e]}}(n);const a=_i(e)?Qi:Zi;function l(n,l){let c;const d={...t.useContext(ti),...n,layoutId:dn(n)},{isStatic:u}=d,h=Ei(n),p=a(n,u);if(!u&&r){t.useContext(ui).strict;const s=function(t){const{drag:e,layout:s}=pi;if(!e&&!s)return{};const i={...e,...s};return{MeasureLayout:e?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(d);c=s.MeasureLayout,h.visualElement=an(e,p,d,o,s.ProjectionNode)}return s.jsxs(yi.Provider,{value:h,children:[c&&h.visualElement?s.jsx(c,{visualElement:h.visualElement,...d}):null,Wi(e,n,sn(p,h.visualElement,l),p,u,i)]})}l.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;const c=t.forwardRef(l);return c[tn]=e,c}function dn({layoutId:e}){const s=t.useContext(i).id;return s&&void 0!==e?s+"-"+e:e}function un(t,e){if("undefined"==typeof Proxy)return cn;const s=new Map,i=(s,i)=>cn(s,i,t,e);return new Proxy((t,e)=>i(t,e),{get:(n,r)=>"create"===r?i:(s.has(r)||s.set(r,cn(r,void 0,t,e)),s.get(r))})}function hn({top:t,left:e,right:s,bottom:i}){return{x:{min:e,max:s},y:{min:t,max:i}}}function pn(t){return void 0===t||1===t}function mn({scale:t,scaleX:e,scaleY:s}){return!pn(t)||!pn(e)||!pn(s)}function fn(t){return mn(t)||gn(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function gn(t){return vn(t.x)||vn(t.y)}function vn(t){return t&&"0%"!==t}function yn(t,e,s){return s+e*(t-s)}function wn(t,e,s,i,n){return void 0!==n&&(t=yn(t,n,i)),yn(t,s,i)+e}function xn(t,e=0,s=1,i,n){t.min=wn(t.min,e,s,i,n),t.max=wn(t.max,e,s,i,n)}function Tn(t,{x:e,y:s}){xn(t.x,e.translate,e.scale,e.originPoint),xn(t.y,s.translate,s.scale,s.originPoint)}const Sn=.999999999999,bn=1.0000000000001;function Pn(t,e){t.min=t.min+e,t.max=t.max+e}function En(t,e,s,i,n=.5){xn(t,e,s,Dt(t.min,t.max,n),i)}function Mn(t,e){En(t.x,e.x,e.scaleX,e.scale,e.originX),En(t.y,e.y,e.scaleY,e.scale,e.originY)}function Cn(t,e){return hn(function(t,e){if(!e)return t;const s=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:s.y,left:s.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}const An=()=>({x:{min:0,max:0},y:{min:0,max:0}}),kn={current:null},Vn={current:!1};const Ln=new WeakMap;const Dn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class In{scrapeMotionValuesFromProps(t,e,s){return{}}constructor({parent:t,props:e,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:n,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=qe,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const t=q.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),Vn.current||function(){if(Vn.current=!0,r)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>kn.current=t.matches;t.addEventListener("change",e),e()}else kn.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||kn.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),W(this.notifyUpdate),W(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=je.has(t);s&&this.onBindTransform&&this.onBindTransform();const i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&_.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let n;window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),n&&n(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in pi){const e=pi[t];if(!e)continue;const{isEnabled:s,Feature:i}=e;if(!this.features[t]&&i&&s(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let s=0;se.variantChildren.delete(t)}addValue(t,e){const s=this.values.get(t);e!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return void 0===s&&void 0!==e&&(s=Fs(null===e?void 0:e,{owner:this}),this.addValue(t,s)),s}readValue(t,e){let s=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var i;return null!=s&&("string"==typeof s&&(h(s)||m(s))?s=parseFloat(s):(i=s,!Qs.find(ys(i))&&kt.test(e)&&(s=Vs(t,e))),this.setBaseTarget(t,Js(s)?s.get():s)),Js(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){const{initial:e}=this.props;let s;if("string"==typeof e||"object"==typeof e){const i=Ui(this.props,e,this.presenceContext?.custom);i&&(s=i[t])}if(e&&void 0!==s)return s;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||Js(i)?void 0!==this.initialValues[t]&&void 0===s?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new x),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){js.render(this.render)}}class On extends In{constructor(){super(...arguments),this.KeyframeResolver=Ds}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:s}){delete e[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Js(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function Rn(t,{style:e,vars:s},i,n){const r=t.style;let o;for(o in e)r[o]=e[o];for(o in n?.applyProjectionStyles(r,i),s)r.setProperty(o,s[o])}class Bn extends On{constructor(){super(...arguments),this.type="html",this.renderInstance=Rn}readValueFromInstance(t,e){if(je.has(e))return this.projection?.isProjecting?Oe(e):((t,e)=>{const{transform:s="none"}=getComputedStyle(t);return Re(s,e)})(t,e);{const i=(s=t,window.getComputedStyle(s)),n=(Z(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}var s}measureInstanceViewportBox(t,{transformPagePoint:e}){return Cn(t,e)}build(t,e,s){Li(t,e,s.transformTemplate)}scrapeMotionValuesFromProps(t,e,s){return Ki(t,e,s)}}const Fn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class jn extends On{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=An}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(je.has(e)){const t=ks(e);return t&&t.default||0}return e=Fn.has(e)?e:nn(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,s){return Ji(t,e,s)}build(t,e,s){ji(t,e,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,e,s,i){!function(t,e,s,i){Rn(t,e,void 0,i);for(const n in e.attrs)t.setAttribute(Fn.has(n)?n:nn(n),e.attrs[n])}(t,e,0,i)}mount(t){this.isSVGTag=Ni(t.tagName),super.mount(t)}}const zn=(e,s)=>_i(e)?new jn(s):new Bn(s,{allowProjection:e!==t.Fragment});function Nn(t,e,s){const i=t.getProps();return Ui(i,e,void 0!==s?s:i.custom,t)}const Gn=t=>Array.isArray(t);function $n(t,e,s){t.hasValue(e)?t.getValue(e).set(s):t.addValue(e,Fs(s))}function _n(t){return Gn(t)?t[t.length-1]||0:t}function Wn(t,e){const s=t.getValue("willChange");if(i=s,Boolean(Js(i)&&i.add))return s.add(e);if(!s&&u.WillChange){const s=new u.WillChange("auto");t.addValue("willChange",s),s.add(e)}var i}function Hn(t){return t.props[rn]}const Un=t=>null!==t;const Xn={type:"spring",stiffness:500,damping:25,restSpeed:10},Yn={type:"keyframes",duration:.8},qn={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Kn=(t,{keyframes:e})=>e.length>2?Yn:je.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Xn:qn;const Zn=(t,e,s,i={},n,r)=>o=>{const a=gs(i,t)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c-=T(l);const d={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:n};(function({when:t,delay:e,delayChildren:s,staggerChildren:i,staggerDirection:n,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length})(a)||Object.assign(d,Kn(t,d)),d.duration&&(d.duration=T(d.duration)),d.repeatDelay&&(d.repeatDelay=T(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let h=!1;if((!1===d.type||0===d.duration&&!d.repeatDelay)&&(ds(d),0===d.delay&&(h=!0)),(u.instantAnimations||u.skipAnimations)&&(h=!0,ds(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,h&&!r&&void 0!==e.get()){const t=function(t,{repeat:e,repeatType:s="loop"}){const i=t.filter(Un);return i[e&&"loop"!==s&&e%2==1?0:i.length-1]}(d.keyframes,a);if(void 0!==t)return void _.update(()=>{d.onUpdate(t),d.onComplete()})}return a.isSync?new Me(d):new ps(d)};function Jn({protectedKeys:t,needsAnimating:e},s){const i=t.hasOwnProperty(s)&&!0!==e[s];return e[s]=!1,i}function Qn(t,e,{delay:s=0,transitionOverride:i,type:n}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:o,...a}=e;i&&(r=i);const l=[],c=n&&t.animationState&&t.animationState.getState()[n];for(const d in a){const e=t.getValue(d,t.latestValues[d]??null),i=a[d];if(void 0===i||c&&Jn(c,d))continue;const n={delay:s,...gs(r||{},d)},o=e.get();if(void 0!==o&&!e.isAnimating&&!Array.isArray(i)&&i===o&&!n.velocity)continue;let u=!1;if(window.MotionHandoffAnimation){const e=Hn(t);if(e){const t=window.MotionHandoffAnimation(e,d,_);null!==t&&(n.startTime=t,u=!0)}}Wn(t,d),e.start(Zn(d,e,i,t.shouldReduceMotion&&vs.has(d)?{type:!1}:n,t,u));const h=e.animation;h&&l.push(h)}return o&&Promise.all(l).then(()=>{_.update(()=>{o&&function(t,e){const s=Nn(t,e);let{transitionEnd:i={},transition:n={},...r}=s||{};r={...r,...i};for(const o in r)$n(t,o,_n(r[o]))}(t,o)})}),l}function tr(t,e,s,i=0,n=1){const r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*i;return"function"==typeof s?s(r,o):1===n?r*i:a-r*i}function er(t,e,s={}){const i=Nn(t,e,"exit"===s.type?t.presenceContext?.custom:void 0);let{transition:n=t.getDefaultTransition()||{}}=i||{};s.transitionOverride&&(n=s.transitionOverride);const r=i?()=>Promise.all(Qn(t,i,s)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=n;return function(t,e,s=0,i=0,n=0,r=1,o){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(er(l,e,{...o,delay:s+("function"==typeof i?0:i)+tr(t.variantChildren,l,i,n,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,i,r,o,a,s)}:()=>Promise.resolve(),{when:a}=n;if(a){const[t,e]="beforeChildren"===a?[r,o]:[o,r];return t().then(()=>e())}return Promise.all([r(),o(s.delay)])}function sr(t,e){if(!Array.isArray(e))return!1;const s=e.length;if(s!==t.length)return!1;for(let i=0;iPromise.all(e.map(({animation:e,options:s})=>function(t,e,s={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const n=e.map(e=>er(t,e,s));i=Promise.all(n)}else if("string"==typeof e)i=er(t,e,s);else{const n="function"==typeof e?Nn(t,e,s.custom):e;i=Promise.all(Qn(t,n,s))}return i.then(()=>{t.notify("AnimationComplete",e)})}(t,e,s)))}function lr(t){let e=ar(t),s=ur(),i=!0;const n=e=>(s,i)=>{const n=Nn(t,i,"exit"===e?t.presenceContext?.custom:void 0);if(n){const{transition:t,transitionEnd:e,...i}=n;s={...s,...i,...e}}return s};function r(r){const{props:o}=t,a=nr(t.parent)||{},l=[],c=new Set;let d={},u=1/0;for(let e=0;eu&&f,x=!1;const T=Array.isArray(m)?m:[m];let S=T.reduce(n(h),{});!1===g&&(S={});const{prevResolvedValues:b={}}=p,P={...b,...S},E=e=>{w=!0,c.has(e)&&(x=!0,c.delete(e)),p.needsAnimating[e]=!0;const s=t.getValue(e);s&&(s.liveStyle=!1)};for(const t in P){const e=S[t],s=b[t];if(d.hasOwnProperty(t))continue;let i=!1;i=Gn(e)&&Gn(s)?!sr(e,s):e!==s,i?null!=e?E(t):c.add(t):void 0!==e&&c.has(t)?E(t):p.protectedKeys[t]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(d={...d,...S}),i&&t.blockInitialAnimation&&(w=!1);const M=v&&y;w&&(!M||x)&&l.push(...T.map(e=>{const s={type:h};if("string"==typeof e&&i&&!M&&t.manuallyAnimateOnMount&&t.parent){const{parent:i}=t,n=Nn(i,e);if(i.enteringChildren&&n){const{delayChildren:e}=n.transition||{};s.delay=tr(i.enteringChildren,t,e)}}return{animation:e,options:s}}))}if(c.size){const e={};if("boolean"!=typeof o.initial){const s=Nn(t,Array.isArray(o.initial)?o.initial[0]:o.initial);s&&s.transition&&(e.transition=s.transition)}c.forEach(s=>{const i=t.getBaseTarget(s),n=t.getValue(s);n&&(n.liveStyle=!0),e[s]=i??null}),l.push({animation:e})}let h=Boolean(l.length);return!i||!1!==o.initial&&o.initial!==o.animate||t.manuallyAnimateOnMount||(h=!1),i=!1,h?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,i){if(s[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),s[e].isActive=i;const n=r(e);for(const t in s)s[t].protectedKeys={};return n},setAnimateFunction:function(s){e=s(t)},getState:()=>s,reset:()=>{s=ur()}}}function cr(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!sr(e,t)}function dr(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ur(){return{animate:dr(!0),whileInView:dr(),whileHover:dr(),whileTap:dr(),whileDrag:dr(),whileFocus:dr(),exit:dr()}}class hr{constructor(t){this.isMounted=!1,this.node=t}update(){}}let pr=0;const mr={animation:{Feature:class extends hr{constructor(t){super(t),t.animationState||(t.animationState=lr(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();wi(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends hr{constructor(){super(...arguments),this.id=pr++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>{e(this.id)})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};function fr(t,e,s,i={passive:!0}){return t.addEventListener(e,s,i),()=>t.removeEventListener(e,s)}function gr(t){return{point:{x:t.pageX,y:t.pageY}}}function vr(t,e,s,i){return fr(t,e,(t=>e=>Ws(e)&&t(e,gr(e)))(s),i)}function yr(t){return t.max-t.min}function wr(t,e,s,i=.5){t.origin=i,t.originPoint=Dt(e.min,e.max,t.origin),t.scale=yr(s)/yr(e),t.translate=Dt(s.min,s.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function xr(t,e,s,i){wr(t.x,e.x,s.x,i?i.originX:void 0),wr(t.y,e.y,s.y,i?i.originY:void 0)}function Tr(t,e,s){t.min=s.min+e.min,t.max=t.min+yr(e)}function Sr(t,e,s){t.min=e.min-s.min,t.max=t.min+yr(e)}function br(t,e,s){Sr(t.x,e.x,s.x),Sr(t.y,e.y,s.y)}function Pr(t){return[t("x"),t("y")]}const Er=({current:t})=>t?t.ownerDocument.defaultView:null,Mr=(t,e)=>Math.abs(t-e);class Cr{constructor(t,e,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=Vr(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,s=function(t,e){const s=Mr(t.x,e.x),i=Mr(t.y,e.y);return Math.sqrt(s**2+i**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!s)return;const{point:i}=t,{timestamp:n}=H;this.history.push({...i,timestamp:n});const{onStart:r,onMove:o}=this.handlers;e||(r&&r(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=Ar(e,this.transformPagePoint),_.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:s,onSessionEnd:i,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const r=Vr("pointercancel"===t.type?this.lastMoveEventInfo:Ar(e,this.transformPagePoint),this.history);this.startEvent&&s&&s(t,r),i&&i(t,r)},!Ws(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const o=Ar(gr(t),this.transformPagePoint),{point:a}=o,{timestamp:l}=H;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=e;c&&c(t,Vr(o,this.history)),this.removeListeners=y(vr(this.contextWindow,"pointermove",this.handlePointerMove),vr(this.contextWindow,"pointerup",this.handlePointerUp),vr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),W(this.updatePoint)}}function Ar(t,e){return e?{point:e(t.point)}:t}function kr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Vr({point:t},e){return{point:t,delta:kr(t,Dr(e)),offset:kr(t,Lr(e)),velocity:Ir(e,.1)}}function Lr(t){return t[0]}function Dr(t){return t[t.length-1]}function Ir(t,e){if(t.length<2)return{x:0,y:0};let s=t.length-1,i=null;const n=Dr(t);for(;s>=0&&(i=t[s],!(n.timestamp-i.timestamp>T(e)));)s--;if(!i)return{x:0,y:0};const r=S(n.timestamp-i.timestamp);if(0===r)return{x:0,y:0};const o={x:(n.x-i.x)/r,y:(n.y-i.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Or(t,e,s){return{min:void 0!==e?t.min+e:void 0,max:void 0!==s?t.max+s-(t.max-t.min):void 0}}function Rr(t,e){let s=e.min-t.min,i=e.max-t.max;return e.max-e.min{const{dragSnapToOrigin:s}=this.getProps();s?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(gr(t).point)},onStart:(t,e)=>{const{drag:s,dragPropagation:i,onDragStart:n}=this.getProps();if(s&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(r=s)||"y"===r?zs[r]?null:(zs[r]=!0,()=>{zs[r]=!1}):zs.x||zs.y?null:(zs.x=zs.y=!0,()=>{zs.x=zs.y=!1}),!this.openDragLock))return;var r;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Pr(t=>{let e=this.getAxisMotionValue(t).get()||0;if(mt.test(e)){const{projection:s}=this.visualElement;if(s&&s.layout){const i=s.layout.layoutBox[t];if(i){e=yr(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e}),n&&_.postRender(()=>n(t,e)),Wn(this.visualElement,"transform");const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;const{dragPropagation:s,dragDirectionLock:i,onDirectionLock:n,onDrag:r}=this.getProps();if(!s&&!this.openDragLock)return;const{offset:o}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t,e=10){let s=null;Math.abs(t.y)>e?s="y":Math.abs(t.x)>e&&(s="x");return s}(o),void(null!==this.currentDirection&&n&&n(this.currentDirection));this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&r(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>Pr(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,distanceThreshold:s,contextWindow:Er(this.visualElement)})}stop(t,e){const s=t||this.latestPointerEvent,i=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&_.postRender(()=>o(s,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,s){const{drag:i}=this.getProps();if(!s||!Gr(t,i,this.currentDirection))return;const n=this.getAxisMotionValue(t);let r=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:s},i){return void 0!==e&&ts&&(t=i?Dt(s,t,i.max):Math.min(t,s)),t}(r,this.constraints[t],this.elastic[t])),n.set(r)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&en(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!s)&&function(t,{top:e,left:s,bottom:i,right:n}){return{x:Or(t.x,s,n),y:Or(t.y,e,i)}}(s.layoutBox,t),this.elastic=function(t=Br){return!1===t?t=0:!0===t&&(t=Br),{x:Fr(t,"left","right"),y:Fr(t,"top","bottom")}}(e),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Pr(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const s={};return void 0!==e.min&&(s.min=e.min-t.min),void 0!==e.max&&(s.max=e.max-t.min),s}(s.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!en(t))return!1;const s=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const n=function(t,e,s){const i=Cn(t,s),{scroll:n}=e;return n&&(Pn(i.x,n.offset.x),Pn(i.y,n.offset.y)),i}(s,i.root,this.visualElement.getTransformPagePoint());let r=function(t,e){return{x:Rr(t.x,e.x),y:Rr(t.y,e.y)}}(i.layout.layoutBox,n);if(e){const t=e(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(r));this.hasMutatedConstraints=!!t,t&&(r=hn(t))}return r}startAnimation(t){const{drag:e,dragMomentum:s,dragElastic:i,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{},l=Pr(o=>{if(!Gr(o,e,this.currentDirection))return;let l=a&&a[o]||{};r&&(l={min:0,max:0});const c=i?200:1e6,d=i?40:1e7,u={type:"inertia",velocity:s?t[o]:0,bounceStiffness:c,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)});return Promise.all(l).then(o)}startAxisValueAnimation(t,e){const s=this.getAxisMotionValue(t);return Wn(this.visualElement,t),s.start(Zn(t,s,0,e,this.visualElement,!1))}stopAnimation(){Pr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Pr(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),i=s[e];return i||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){Pr(e=>{const{drag:s}=this.getProps();if(!Gr(e,s,this.currentDirection))return;const{projection:i}=this.visualElement,n=this.getAxisMotionValue(e);if(i&&i.layout){const{min:s,max:r}=i.layout.layoutBox[e];n.set(t[e]-Dt(s,r,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:s}=this.visualElement;if(!en(e)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Pr(t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const s=e.get();i[t]=function(t,e){let s=.5;const i=yr(t),n=yr(e);return n>i?s=w(e.min,e.max-i,t.min):i>n&&(s=w(t.min,t.max-n,e.min)),d(0,1,s)}({min:s,max:s},this.constraints[t])}});const{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),Pr(e=>{if(!Gr(e,t,null))return;const s=this.getAxisMotionValue(e),{min:n,max:r}=this.constraints[e];s.set(Dt(n,r,i[e]))})}addListeners(){if(!this.visualElement.current)return;zr.set(this.visualElement,this);const t=vr(this.visualElement.current,"pointerdown",t=>{const{drag:e,dragListener:s=!0}=this.getProps();e&&s&&this.start(t)}),e=()=>{const{dragConstraints:t}=this.getProps();en(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",e);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),_.read(e);const n=fr(window,"resize",()=>this.scalePositionWithinConstraints()),r=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(Pr(e=>{const s=this.getAxisMotionValue(e);s&&(this.originPoint[e]+=t[e].translate,s.set(s.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),i(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:n=!1,dragElastic:r=Br,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:s,dragPropagation:i,dragConstraints:n,dragElastic:r,dragMomentum:o}}}function Gr(t,e,s){return!(!0!==e&&e!==t||null!==s&&s!==t)}const $r=t=>(e,s)=>{t&&_.postRender(()=>t(e,s))};const _r={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Wr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Hr={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!ft.test(t))return t;t=parseFloat(t)}return`${Wr(t,e.target.x)}% ${Wr(t,e.target.y)}%`}},Ur={correct:(t,{treeScale:e,projectionDelta:s})=>{const i=t,n=kt.parse(t);if(n.length>5)return i;const r=kt.createTransformer(t),o="number"!=typeof n[0]?1:0,a=s.x.scale*e.x,l=s.y.scale*e.y;n[0+o]/=a,n[1+o]/=l;const c=Dt(a,l,.5);return"number"==typeof n[2+o]&&(n[2+o]/=c),"number"==typeof n[3+o]&&(n[3+o]/=c),r(n)}};let Xr=!1;class Yr extends t.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:s,layoutId:i}=this.props,{projection:n}=t;!function(t){for(const e in t)Ci[e]=t[e],Z(e)&&(Ci[e].isCSSVariable=!0)}(Kr),n&&(e.group&&e.group.add(n),s&&s.register&&i&&s.register(n),Xr&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),_r.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:s,drag:i,isPresent:n}=this.props,{projection:r}=s;return r?(r.isPresent=n,Xr=!0,i||t.layoutDependency!==e||void 0===e||t.isPresent!==n?r.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?r.promote():r.relegate()||_.postRender(()=>{const t=r.getStack();t&&t.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),js.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:s}=this.props,{projection:i}=t;Xr=!0,i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function qr(e){const[n,r]=ai(),o=t.useContext(i);return s.jsx(Yr,{...e,layoutGroup:o,switchLayoutGroup:t.useContext(on),isPresent:n,safeToRemove:r})}const Kr={borderRadius:{...Hr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Hr,borderTopRightRadius:Hr,borderBottomLeftRadius:Hr,borderBottomRightRadius:Hr,boxShadow:Ur};const Zr=(t,e)=>t.depth-e.depth;class Jr{constructor(){this.children=[],this.isDirty=!1}add(t){l(this.children,t),this.isDirty=!0}remove(t){c(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Zr),this.isDirty=!1,this.children.forEach(t)}}const Qr=["TopLeft","TopRight","BottomLeft","BottomRight"],to=Qr.length,eo=t=>"string"==typeof t?parseFloat(t):t,so=t=>"number"==typeof t||ft.test(t);function io(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const no=oo(0,.5,I),ro=oo(.5,.95,g);function oo(t,e,s){return i=>ie?1:s(w(t,e,i))}function ao(t,e){t.min=e.min,t.max=e.max}function lo(t,e){ao(t.x,e.x),ao(t.y,e.y)}function co(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function uo(t,e,s,i,n){return t=yn(t-=e,1/s,i),void 0!==n&&(t=yn(t,1/n,i)),t}function ho(t,e,[s,i,n],r,o){!function(t,e=0,s=1,i=.5,n,r=t,o=t){mt.test(e)&&(e=parseFloat(e),e=Dt(o.min,o.max,e/100)-o.min);if("number"!=typeof e)return;let a=Dt(r.min,r.max,i);t===r&&(a-=e),t.min=uo(t.min,e,s,a,n),t.max=uo(t.max,e,s,a,n)}(t,e[s],e[i],e[n],e.scale,r,o)}const po=["x","scaleX","originX"],mo=["y","scaleY","originY"];function fo(t,e,s,i){ho(t.x,e,po,s?s.x:void 0,i?i.x:void 0),ho(t.y,e,mo,s?s.y:void 0,i?i.y:void 0)}function go(t){return 0===t.translate&&1===t.scale}function vo(t){return go(t.x)&&go(t.y)}function yo(t,e){return t.min===e.min&&t.max===e.max}function wo(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function xo(t,e){return wo(t.x,e.x)&&wo(t.y,e.y)}function To(t){return yr(t.x)/yr(t.y)}function So(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class bo{constructor(){this.members=[]}add(t){l(this.members,t),t.scheduleRender()}remove(t){if(c(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex(e=>t===e);if(0===e)return!1;let s;for(let i=e;i>=0;i--){const t=this.members[i];if(!1!==t.isPresent){s=t;break}}return!!s&&(this.promote(s),!0)}promote(t,e){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,e&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:e,resumingFrom:s}=t;e.onExitComplete&&e.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Po=["","X","Y","Z"];let Eo=0;function Mo(t,e,s,i){const{latestValues:n}=e;n[t]&&(s[t]=n[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Co(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const s=Hn(e);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(s,"transform",_,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Co(i)}function Ao({attachResizeListener:t,defaultParent:e,measureScroll:s,checkIsScrollRoot:i,resetTransform:n}){return class{constructor(t={},s=e?.()){this.id=Eo++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Lo),this.nodes.forEach(jo),this.nodes.forEach(zo),this.nodes.forEach(Do)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;_.read(()=>{i=window.innerWidth}),t(e,()=>{const t=window.innerWidth;t!==i&&(i=t,this.root.updateBlockedByResize=!0,s&&s(),s=function(t,e){const s=q.now(),i=({timestamp:n})=>{const r=n-s;r>=e&&(W(i),t(r-e))};return _.setup(i,!0),()=>W(i)}(n,250),_r.hasAnimatedSinceResize&&(_r.hasAnimatedSinceResize=!1,this.nodes.forEach(Fo)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:s,layout:i})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const n=this.options.transition||r.getDefaultTransition()||Ho,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!xo(this.targetLayout,i),c=!e&&s;if(this.options.layoutRoot||this.resumeFrom||c||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const e={...gs(n,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,c)}else e||Fo(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),W(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(No),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Co(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let n=0;n{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||yr(this.snapshot.measuredBox.x)||yr(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let s=0;sSn&&(e.x=1),e.ySn&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,e),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:a}=t;a?(this.projectionDelta&&this.prevProjectionDelta?(co(this.prevProjectionDelta.x,this.projectionDelta.x),co(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),xr(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&So(this.projectionDelta.x,this.prevProjectionDelta.x)&&So(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(t,e=!1){const s=this.snapshot,i=s?s.latestValues:{},n={...this.latestValues},r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const o={x:{min:0,max:0},y:{min:0,max:0}},a=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,d=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(Wo));let u;this.animationProgress=0,this.mixTargetDelta=e=>{const s=e/1e3;var l,h,p,m,f,g;$o(r.x,t.x,s),$o(r.y,t.y,s),this.setTargetDelta(r),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(br(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,g=s,_o(p.x,m.x,f.x,g),_o(p.y,m.y,f.y,g),u&&(l=this.relativeTarget,h=u,yo(l.x,h.x)&&yo(l.y,h.y))&&(this.isProjectionDirty=!1),u||(u={x:{min:0,max:0},y:{min:0,max:0}}),lo(u,this.relativeTarget)),a&&(this.animationValues=n,function(t,e,s,i,n,r){n?(t.opacity=Dt(0,s.opacity??1,no(i)),t.opacityExit=Dt(e.opacity??1,0,ro(i))):r&&(t.opacity=Dt(e.opacity??1,s.opacity??1,i));for(let o=0;o{_r.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Fs(0)),this.currentAnimation=function(t,e,s){const i=Js(t)?t:Fs(t);return i.start(Zn("",i,e,s)),i.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const t=this.getLead();let{targetWithTransforms:e,target:s,layout:i,latestValues:n}=t;if(e&&s&&i){if(this!==t&&this.layout&&i&&qo(this.options.animationType,this.layout.layoutBox,i.layoutBox)){s=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=yr(this.layout.layoutBox.x);s.x.min=t.target.x.min,s.x.max=s.x.min+e;const i=yr(this.layout.layoutBox.y);s.y.min=t.target.y.min,s.y.max=s.y.min+i}lo(e,s),Mn(e,n),xr(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new bo);this.sharedNodes.get(t).add(e);const s=e.options.initialPromotionConfig;e.promote({transition:s?s.transition:void 0,preserveFollowOpacity:s&&s.shouldPreserveFollowOpacity?s.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){const{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:s}={}){const i=this.getStack();i&&i.promote(this,s),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:s}=t;if((s.z||s.rotate||s.rotateX||s.rotateY||s.rotateZ||s.skewX||s.skewY)&&(e=!0),!e)return;const i={};s.z&&Mo("z",t,i,this.animationValues);for(let n=0;nt.currentAnimation?.stop()),this.root.nodes.forEach(Oo),this.root.sharedNodes.clear()}}}function ko(t){t.updateLayout()}function Vo(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:n}=t.options,r=e.source!==t.layout.source;"size"===n?Pr(t=>{const i=r?e.measuredBox[t]:e.layoutBox[t],n=yr(i);i.min=s[t].min,i.max=i.min+n}):qo(n,e.layoutBox,s)&&Pr(i=>{const n=r?e.measuredBox[i]:e.layoutBox[i],o=yr(s[i]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+o)});const o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};xr(o,s,e.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};r?xr(a,t.applyTransform(i,!0),e.measuredBox):xr(a,s,e.layoutBox);const l=!vo(o);let c=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:n,layout:r}=i;if(n&&r){const o={x:{min:0,max:0},y:{min:0,max:0}};br(o,e.layoutBox,n.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};br(a,s,r.layoutBox),xo(o,a)||(c=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function Lo(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Do(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Io(t){t.clearSnapshot()}function Oo(t){t.clearMeasurements()}function Ro(t){t.isLayoutDirty=!1}function Bo(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Fo(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function jo(t){t.resolveTargetDelta()}function zo(t){t.calcProjection()}function No(t){t.resetSkewAndRotation()}function Go(t){t.removeLeadSnapshot()}function $o(t,e,s){t.translate=Dt(e.translate,0,s),t.scale=Dt(e.scale,1,s),t.origin=e.origin,t.originPoint=e.originPoint}function _o(t,e,s,i){t.min=Dt(e.min,s.min,i),t.max=Dt(e.max,s.max,i)}function Wo(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Ho={duration:.45,ease:[.4,0,.1,1]},Uo=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Xo=Uo("applewebkit/")&&!Uo("chrome/")?Math.round:g;function Yo(t){t.min=Xo(t.min),t.max=Xo(t.max)}function qo(t,e,s){return"position"===t||"preserve-aspect"===t&&(i=To(e),n=To(s),r=.2,!(Math.abs(i-n)<=r));var i,n,r}function Ko(t){return t!==t.root&&t.scroll?.wasRoot}const Zo=Ao({attachResizeListener:(t,e)=>fr(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Jo={current:void 0},Qo=Ao({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Jo.current){const t=new Zo({});t.mount(window),t.setOptions({layoutScroll:!0}),Jo.current=t}return Jo.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),ta={pan:{Feature:class extends hr{constructor(){super(...arguments),this.removePointerDownListener=g}onPointerDown(t){this.session=new Cr(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Er(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:$r(t),onStart:$r(e),onMove:s,onEnd:(t,e)=>{delete this.session,i&&_.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=vr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends hr{constructor(t){super(t),this.removeGroupControls=g,this.removeListeners=g,this.controls=new Nr(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||g}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Qo,MeasureLayout:qr}};function ea(t,e,s){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===s);const n=i["onHover"+s];n&&_.postRender(()=>n(e,gr(e)))}function sa(t,e,s){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===s);const n=i["onTap"+("End"===s?"":s)];n&&_.postRender(()=>n(e,gr(e)))}const ia=new WeakMap,na=new WeakMap,ra=t=>{const e=ia.get(t.target);e&&e(t)},oa=t=>{t.forEach(ra)};function aa(t,e,s){const i=function({root:t,...e}){const s=t||document;na.has(s)||na.set(s,{});const i=na.get(s),n=JSON.stringify(e);return i[n]||(i[n]=new IntersectionObserver(oa,{root:t,...e})),i[n]}(e);return ia.set(t,s),i.observe(t),()=>{ia.delete(t),i.unobserve(t)}}const la={some:0,all:1};const ca=un({...mr,...{inView:{Feature:class extends hr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:s,amount:i="some",once:n}=t,r={root:e?e.current:void 0,rootMargin:s,threshold:"number"==typeof i?i:la[i]};return aa(this.node.current,r,t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,n&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:s,onViewportLeave:i}=this.node.getProps(),r=e?s:i;r&&r(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return s=>t[s]!==e[s]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends hr{mount(){const{current:t}=this.node;t&&(this.unmount=Ks(t,(t,e)=>(sa(this.node,e,"Start"),(t,{success:e})=>sa(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends hr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=y(fr(this.node.current,"focus",()=>this.onFocus()),fr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends hr{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e,s={}){const[i,n,r]=Gs(t,s),o=t=>{if(!$s(t))return;const{target:s}=t,i=e(s,t);if("function"!=typeof i||!s)return;const r=t=>{$s(t)&&(i(t),s.removeEventListener("pointerleave",r))};s.addEventListener("pointerleave",r,n)};return i.forEach(t=>{t.addEventListener("pointerenter",o,n)}),r}(t,(t,e)=>(ea(this.node,e,"Start"),t=>ea(this.node,t,"End"))))}unmount(){}}}},...ta,...{layout:{ProjectionNode:Qo,MeasureLayout:qr}}},zn),da={some:0,all:1};function ua(e,{root:s,margin:i,amount:n,once:r=!1,initial:o=!1}={}){const[a,l]=t.useState(o);return t.useEffect(()=>{if(!e.current||r&&a)return;const t={root:s&&s.current||void 0,margin:i,amount:n};return function(t,e,{root:s,margin:i,amount:n="some"}={}){const r=Is(t),o=new WeakMap,a=new IntersectionObserver(t=>{t.forEach(t=>{const s=o.get(t.target);if(t.isIntersecting!==Boolean(s))if(t.isIntersecting){const s=e(t.target,t);"function"==typeof s?o.set(t.target,s):a.unobserve(t.target)}else"function"==typeof s&&(s(t),o.delete(t.target))})},{root:s,rootMargin:i,threshold:"number"==typeof n?n:da[n]});return r.forEach(t=>a.observe(t)),()=>a.disconnect()}(e.current,()=>(l(!0),r?void 0:()=>l(!1)),t)},[s,e,i,r,n]),a}function ha(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function pa(t={},e={}){const s=["__proto__","constructor","prototype"];Object.keys(e).filter(t=>s.indexOf(t)<0).forEach(s=>{void 0===t[s]?t[s]=e[s]:ha(e[s])&&ha(t[s])&&Object.keys(e[s]).length>0&&pa(t[s],e[s])})}const ma={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function fa(){const t="undefined"!=typeof document?document:{};return pa(t,ma),t}const ga={document:ma,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:t=>"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0),cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function va(){const t="undefined"!=typeof window?window:{};return pa(t,ga),t}function ya(t,e=0){return setTimeout(t,e)}function wa(){return Date.now()}function xa(t,e="x"){const s=va();let i,n,r;const o=function(t){const e=va();let s;return e.getComputedStyle&&(s=e.getComputedStyle(t,null)),!s&&t.currentStyle&&(s=t.currentStyle),s||(s=t.style),s}(t);return s.WebKitCSSMatrix?(n=o.transform||o.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(t=>t.replace(",",".")).join(", ")),r=new s.WebKitCSSMatrix("none"===n?"":n)):(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=r.toString().split(",")),"x"===e&&(n=s.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===e&&(n=s.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),n||0}function Ta(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function Sa(t){return"undefined"!=typeof window&&void 0!==window.HTMLElement?t instanceof HTMLElement:t&&(1===t.nodeType||11===t.nodeType)}function ba(...t){const e=Object(t[0]),s=["__proto__","constructor","prototype"];for(let i=1;is.indexOf(t)<0);for(let s=0,i=t.length;sn?"next":"prev",c=(t,e)=>"next"===l&&t>=e||"prev"===l&&t<=e,d=()=>{r=(new Date).getTime(),null===o&&(o=r);const l=Math.max(Math.min((r-o)/a,1),0),u=.5-Math.cos(l*Math.PI)/2;let h=n+u*(e-n);if(c(h,e)&&(h=e),t.wrapperEl.scrollTo({[s]:h}),c(h,e))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[s]:h})}),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(d)};d()}function Ma(t){return t.querySelector(".swiper-slide-transform")||t.shadowRoot&&t.shadowRoot.querySelector(".swiper-slide-transform")||t}function Ca(t,e=""){const s=va(),i=[...t.children];return s.HTMLSlotElement&&t instanceof HTMLSlotElement&&i.push(...t.assignedElements()),e?i.filter(t=>t.matches(e)):i}function Aa(t){try{return}catch(e){}}function ka(t,e=[]){const s=document.createElement(t);return s.classList.add(...Array.isArray(e)?e:function(t=""){return t.trim().split(" ").filter(t=>!!t.trim())}(e)),s}function Va(t,e){return va().getComputedStyle(t,null).getPropertyValue(e)}function La(t){let e,s=t;if(s){for(e=0;null!==(s=s.previousSibling);)1===s.nodeType&&(e+=1);return e}}function Da(t,e){const s=[];let i=t.parentElement;for(;i;)e?i.matches(e)&&s.push(i):s.push(i),i=i.parentElement;return s}function Ia(t,e,s){const i=va();return t["width"===e?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(t,null).getPropertyValue("width"===e?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(t,null).getPropertyValue("width"===e?"margin-left":"margin-bottom"))}function Oa(t){return(Array.isArray(t)?t:[t]).filter(t=>!!t)}function Ra(t){return e=>Math.abs(e)>0&&t.browser&&t.browser.need3dFix&&Math.abs(e)%90==0?e+.001:e}function Ba(t,e=""){"undefined"!=typeof trustedTypes?t.innerHTML=trustedTypes.createPolicy("html",{createHTML:t=>t}).createHTML(e):t.innerHTML=e}let Fa,ja,za;function Na(){return Fa||(Fa=function(){const t=va(),e=fa();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}()),Fa}function Ga(t={}){return ja||(ja=function({userAgent:t}={}){const e=Na(),s=va(),i=s.navigator.platform,n=t||s.navigator.userAgent,r={ios:!1,android:!1},o=s.screen.width,a=s.screen.height,l=n.match(/(Android);?[\s\/]+([\d.]+)?/);let c=n.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const d=n.match(/(iPod)(.*OS\s([\d_]+))?/),u=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===i;let p="MacIntel"===i;return!c&&p&&e.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${a}`)>=0&&(c=n.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),p=!1),l&&!h&&(r.os="android",r.android=!0),(c||u||d)&&(r.os="ios",r.ios=!0),r}(t)),ja}function $a(){return za||(za=function(){const t=va(),e=Ga();let s=!1;function i(){const e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}if(i()){const e=String(t.navigator.userAgent);if(e.includes("Version/")){const[t,i]=e.split("Version/")[1].split(" ")[0].split(".").map(t=>Number(t));s=t<16||16===t&&i<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),r=i();return{isSafari:s||r,needPerspectiveFix:s,need3dFix:r||n&&e.ios,isWebView:n}}()),za}const _a=(t,e,s)=>{e&&!t.classList.contains(s)?t.classList.add(s):!e&&t.classList.contains(s)&&t.classList.remove(s)};const Wa=(t,e,s)=>{e&&!t.classList.contains(s)?t.classList.add(s):!e&&t.classList.contains(s)&&t.classList.remove(s)};const Ha=(t,e)=>{if(!t||t.destroyed||!t.params)return;const s=e.closest(t.isElement?"swiper-slide":`.${t.params.slideClass}`);if(s){let e=s.querySelector(`.${t.params.lazyPreloaderClass}`);!e&&t.isElement&&(s.shadowRoot?e=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{s.shadowRoot&&(e=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),e&&e.remove())})),e&&e.remove()}},Ua=(t,e)=>{if(!t.slides[e])return;const s=t.slides[e].querySelector('[loading="lazy"]');s&&s.removeAttribute("loading")},Xa=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const s=t.slides.length;if(!s||!e||e<0)return;e=Math.min(e,s);const i="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),n=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const s=n,r=[s-e];return r.push(...Array.from({length:e}).map((t,e)=>s+i+e)),void t.slides.forEach((e,s)=>{r.includes(e.column)&&Ua(t,s)})}const r=n+i-1;if(t.params.rewind||t.params.loop)for(let o=n-e;o<=r+e;o+=1){const e=(o%s+s)%s;(er)&&Ua(t,e)}else for(let o=Math.max(n-e,0);o<=Math.min(r+e,s-1);o+=1)o!==n&&(o>r||or?"next":n=i.innerWidth-o)||"prevent"===r&&(e.preventDefault(),!0)}function Ka(t){const e=this,s=fa();let i=t;i.originalEvent&&(i=i.originalEvent);const n=e.touchEventsData;if("pointerdown"===i.type){if(null!==n.pointerId&&n.pointerId!==i.pointerId)return;n.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(n.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void qa(e,i,i.targetTouches[0].pageX);const{params:r,touches:o,enabled:a}=e;if(!a)return;if(!r.simulateTouch&&"mouse"===i.pointerType)return;if(e.animating&&r.preventInteractionOnTransition)return;!e.animating&&r.cssMode&&r.loop&&e.loopFix();let l=i.target;if("wrapper"===r.touchEventsTarget&&!function(t,e){const s=va();let i=e.contains(t);!i&&s.HTMLSlotElement&&e instanceof HTMLSlotElement&&(i=[...e.assignedElements()].includes(t),i||(i=function(t,e){const s=[e];for(;s.length>0;){const e=s.shift();if(t===e)return!0;s.push(...e.children,...e.shadowRoot?e.shadowRoot.children:[],...e.assignedElements?e.assignedElements():[])}}(t,e)));return i}(l,e.wrapperEl))return;if("which"in i&&3===i.which)return;if("button"in i&&i.button>0)return;if(n.isTouched&&n.isMoved)return;const c=!!r.noSwipingClass&&""!==r.noSwipingClass,d=i.composedPath?i.composedPath():i.path;c&&i.target&&i.target.shadowRoot&&d&&(l=d[0]);const u=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,h=!(!i.target||!i.target.shadowRoot);if(r.noSwiping&&(h?function(t,e=this){return function e(s){if(!s||s===fa()||s===va())return null;s.assignedSlot&&(s=s.assignedSlot);const i=s.closest(t);return i||s.getRootNode?i||e(s.getRootNode().host):null}(e)}(u,l):l.closest(u)))return void(e.allowClick=!0);if(r.swipeHandler&&!l.closest(r.swipeHandler))return;o.currentX=i.pageX,o.currentY=i.pageY;const p=o.currentX,m=o.currentY;if(!qa(e,i,p))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=m,n.touchStartTime=wa(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1);let f=!0;l.matches(n.focusableElements)&&(f=!1,"SELECT"===l.nodeName&&(n.isTouched=!1)),s.activeElement&&s.activeElement.matches(n.focusableElements)&&s.activeElement!==l&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!l.matches(n.focusableElements))&&s.activeElement.blur();const g=f&&e.allowTouchMove&&r.touchStartPreventDefault;!r.touchStartForcePreventDefault&&!g||l.isContentEditable||i.preventDefault(),r.freeMode&&r.freeMode.enabled&&e.freeMode&&e.animating&&!r.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",i)}function Za(t){const e=fa(),s=this,i=s.touchEventsData,{params:n,touches:r,rtlTranslate:o,enabled:a}=s;if(!a)return;if(!n.simulateTouch&&"mouse"===t.pointerType)return;let l,c=t;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==i.touchId)return;if(c.pointerId!==i.pointerId)return}if("touchmove"===c.type){if(l=[...c.changedTouches].find(t=>t.identifier===i.touchId),!l||l.identifier!==i.touchId)return}else l=c;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&s.emit("touchMoveOpposite",c));const d=l.pageX,u=l.pageY;if(c.preventedByNestedSwiper)return r.startX=d,void(r.startY=u);if(!s.allowTouchMove)return c.target.matches(i.focusableElements)||(s.allowClick=!1),void(i.isTouched&&(Object.assign(r,{startX:d,startY:u,currentX:d,currentY:u}),i.touchStartTime=wa()));if(n.touchReleaseOnEdges&&!n.loop)if(s.isVertical()){if(ur.startY&&s.translate>=s.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else{if(o&&(d>r.startX&&-s.translate<=s.maxTranslate()||d=s.minTranslate()))return;if(!o&&(dr.startX&&s.translate>=s.minTranslate()))return}if(e.activeElement&&e.activeElement.matches(i.focusableElements)&&e.activeElement!==c.target&&"mouse"!==c.pointerType&&e.activeElement.blur(),e.activeElement&&c.target===e.activeElement&&c.target.matches(i.focusableElements))return i.isMoved=!0,void(s.allowClick=!1);i.allowTouchCallbacks&&s.emit("touchMove",c),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=d,r.currentY=u;const h=r.currentX-r.startX,p=r.currentY-r.startY;if(s.params.threshold&&Math.sqrt(h**2+p**2)=25&&(t=180*Math.atan2(Math.abs(p),Math.abs(h))/Math.PI,i.isScrolling=s.isHorizontal()?t>n.touchAngle:90-t>n.touchAngle)}if(i.isScrolling&&s.emit("touchMoveOpposite",c),void 0===i.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(i.startMoving=!0)),i.isScrolling||"touchmove"===c.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;s.allowClick=!1,!n.cssMode&&c.cancelable&&c.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&c.stopPropagation();let m=s.isHorizontal()?h:p,f=s.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;n.oneWayMovement&&(m=Math.abs(m)*(o?1:-1),f=Math.abs(f)*(o?1:-1)),r.diff=m,m*=n.touchRatio,o&&(m=-m,f=-f);const g=s.touchesDirection;s.swipeDirection=m>0?"prev":"next",s.touchesDirection=f>0?"prev":"next";const v=s.params.loop&&!n.cssMode,y="next"===s.touchesDirection&&s.allowSlideNext||"prev"===s.touchesDirection&&s.allowSlidePrev;if(!i.isMoved){if(v&&y&&s.loopFix({direction:s.swipeDirection}),i.startTranslate=s.getTranslate(),s.setTransition(0),s.animating){const t=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});s.wrapperEl.dispatchEvent(t)}i.allowMomentumBounce=!1,!n.grabCursor||!0!==s.allowSlideNext&&!0!==s.allowSlidePrev||s.setGrabCursor(!0),s.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==n._loopSwapReset&&i.isMoved&&i.allowThresholdMove&&g!==s.touchesDirection&&v&&y&&Math.abs(m)>=1)return Object.assign(r,{startX:d,startY:u,currentX:d,currentY:u,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);s.emit("sliderMove",c),i.isMoved=!0,i.currentTranslate=m+i.startTranslate;let w=!0,x=n.resistanceRatio;if(n.touchReleaseOnEdges&&(x=0),m>0?(v&&y&&i.allowThresholdMove&&i.currentTranslate>(n.centeredSlides?s.minTranslate()-s.slidesSizesGrid[s.activeIndex+1]-("auto"!==n.slidesPerView&&s.slides.length-n.slidesPerView>=2?s.slidesSizesGrid[s.activeIndex+1]+s.params.spaceBetween:0)-s.params.spaceBetween:s.minTranslate())&&s.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>s.minTranslate()&&(w=!1,n.resistance&&(i.currentTranslate=s.minTranslate()-1+(-s.minTranslate()+i.startTranslate+m)**x))):m<0&&(v&&y&&i.allowThresholdMove&&i.currentTranslate<(n.centeredSlides?s.maxTranslate()+s.slidesSizesGrid[s.slidesSizesGrid.length-1]+s.params.spaceBetween+("auto"!==n.slidesPerView&&s.slides.length-n.slidesPerView>=2?s.slidesSizesGrid[s.slidesSizesGrid.length-1]+s.params.spaceBetween:0):s.maxTranslate())&&s.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:s.slides.length-("auto"===n.slidesPerView?s.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),i.currentTranslatei.startTranslate&&(i.currentTranslate=i.startTranslate),s.allowSlidePrev||s.allowSlideNext||(i.currentTranslate=i.startTranslate),n.threshold>0){if(!(Math.abs(m)>n.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,i.currentTranslate=i.startTranslate,void(r.diff=s.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}n.followFinger&&!n.cssMode&&((n.freeMode&&n.freeMode.enabled&&s.freeMode||n.watchSlidesProgress)&&(s.updateActiveIndex(),s.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&s.freeMode&&s.freeMode.onTouchMove(),s.updateProgress(i.currentTranslate),s.setTranslate(i.currentTranslate))}function Ja(t){const e=this,s=e.touchEventsData;let i,n=t;n.originalEvent&&(n=n.originalEvent);if("touchend"===n.type||"touchcancel"===n.type){if(i=[...n.changedTouches].find(t=>t.identifier===s.touchId),!i||i.identifier!==s.touchId)return}else{if(null!==s.touchId)return;if(n.pointerId!==s.pointerId)return;i=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)){if(!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return}s.pointerId=null,s.touchId=null;const{params:r,touches:o,rtlTranslate:a,slidesGrid:l,enabled:c}=e;if(!c)return;if(!r.simulateTouch&&"mouse"===n.pointerType)return;if(s.allowTouchCallbacks&&e.emit("touchEnd",n),s.allowTouchCallbacks=!1,!s.isTouched)return s.isMoved&&r.grabCursor&&e.setGrabCursor(!1),s.isMoved=!1,void(s.startMoving=!1);r.grabCursor&&s.isMoved&&s.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const d=wa(),u=d-s.touchStartTime;if(e.allowClick){const t=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(t&&t[0]||n.target,t),e.emit("tap click",n),u<300&&d-s.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(s.lastClickTime=wa(),ya(()=>{e.destroyed||(e.allowClick=!0)}),!s.isTouched||!s.isMoved||!e.swipeDirection||0===o.diff&&!s.loopSwapReset||s.currentTranslate===s.startTranslate&&!s.loopSwapReset)return s.isTouched=!1,s.isMoved=!1,void(s.startMoving=!1);let h;if(s.isTouched=!1,s.isMoved=!1,s.startMoving=!1,h=r.followFinger?a?e.translate:-e.translate:-s.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled)return void e.freeMode.onTouchEnd({currentPos:h});const p=h>=-e.maxTranslate()&&!e.params.loop;let m=0,f=e.slidesSizesGrid[0];for(let x=0;x=l[x]&&h=l[x])&&(m=x,f=l[l.length-1]-l[l.length-2])}let g=null,v=null;r.rewind&&(e.isBeginning?v=r.virtual&&r.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(g=0));const y=(h-l[m])/f,w=mr.longSwipesMs){if(!r.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(y>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?g:m+w):e.slideTo(m)),"prev"===e.swipeDirection&&(y>1-r.longSwipesRatio?e.slideTo(m+w):null!==v&&y<0&&Math.abs(y)>r.longSwipesRatio?e.slideTo(v):e.slideTo(m))}else{if(!r.shortSwipes)return void e.slideTo(e.activeIndex);e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(m+w):e.slideTo(m):("next"===e.swipeDirection&&e.slideTo(null!==g?g:m+w),"prev"===e.swipeDirection&&e.slideTo(null!==v?v:m))}}function Qa(){const t=this,{params:e,el:s}=t;if(s&&0===s.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:n,snapGrid:r}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const a=o&&e.loop;!("auto"===e.slidesPerView||e.slidesPerView>1)||!t.isEnd||t.isBeginning||t.params.centeredSlides||a?t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0):t.slideTo(t.slides.length-1,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=n,t.allowSlideNext=i,t.params.watchOverflow&&r!==t.snapGrid&&t.checkOverflow()}function tl(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function el(){const t=this,{wrapperEl:e,rtlTranslate:s,enabled:i}=t;if(!i)return;let n;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const r=t.maxTranslate()-t.minTranslate();n=0===r?0:(t.translate-t.minTranslate())/r,n!==t.progress&&t.updateProgress(s?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function sl(t){const e=this;Ha(e,t.target),e.params.cssMode||"auto"!==e.params.slidesPerView&&!e.params.autoHeight||e.update()}function il(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const nl=(t,e)=>{const s=fa(),{params:i,el:n,wrapperEl:r,device:o}=t,a=!!i.nested,l="on"===e?"addEventListener":"removeEventListener",c=e;n&&"string"!=typeof n&&(s[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:a}),n[l]("touchstart",t.onTouchStart,{passive:!1}),n[l]("pointerdown",t.onTouchStart,{passive:!1}),s[l]("touchmove",t.onTouchMove,{passive:!1,capture:a}),s[l]("pointermove",t.onTouchMove,{passive:!1,capture:a}),s[l]("touchend",t.onTouchEnd,{passive:!0}),s[l]("pointerup",t.onTouchEnd,{passive:!0}),s[l]("pointercancel",t.onTouchEnd,{passive:!0}),s[l]("touchcancel",t.onTouchEnd,{passive:!0}),s[l]("pointerout",t.onTouchEnd,{passive:!0}),s[l]("pointerleave",t.onTouchEnd,{passive:!0}),s[l]("contextmenu",t.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&n[l]("click",t.onClick,!0),i.cssMode&&r[l]("scroll",t.onScroll),i.updateOnWindowResize?t[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Qa,!0):t[c]("observerUpdate",Qa,!0),n[l]("load",t.onLoad,{capture:!0}))};const rl=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;var ol={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function al(t,e){return function(s={}){const i=Object.keys(s)[0],n=s[i];"object"==typeof n&&null!==n?(!0===t[i]&&(t[i]={enabled:!0}),"navigation"===i&&t[i]&&t[i].enabled&&!t[i].prevEl&&!t[i].nextEl&&(t[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&t[i]&&t[i].enabled&&!t[i].el&&(t[i].auto=!0),i in t&&"enabled"in n?("object"!=typeof t[i]||"enabled"in t[i]||(t[i].enabled=!0),t[i]||(t[i]={enabled:!1}),ba(e,s)):ba(e,s)):ba(e,s)}}const ll={eventsEmitter:{on(t,e,s){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof e)return i;const n=s?"unshift":"push";return t.split(" ").forEach(t=>{i.eventsListeners[t]||(i.eventsListeners[t]=[]),i.eventsListeners[t][n](e)}),i},once(t,e,s){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof e)return i;function n(...s){i.off(t,n),n.__emitterProxy&&delete n.__emitterProxy,e.apply(i,s)}return n.__emitterProxy=e,i.on(t,n,s)},onAny(t,e){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;const i=e?"unshift":"push";return s.eventsAnyListeners.indexOf(t)<0&&s.eventsAnyListeners[i](t),s},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsAnyListeners)return e;const s=e.eventsAnyListeners.indexOf(t);return s>=0&&e.eventsAnyListeners.splice(s,1),e},off(t,e){const s=this;return!s.eventsListeners||s.destroyed?s:s.eventsListeners?(t.split(" ").forEach(t=>{void 0===e?s.eventsListeners[t]=[]:s.eventsListeners[t]&&s.eventsListeners[t].forEach((i,n)=>{(i===e||i.__emitterProxy&&i.__emitterProxy===e)&&s.eventsListeners[t].splice(n,1)})}),s):s},emit(...t){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let s,i,n;"string"==typeof t[0]||Array.isArray(t[0])?(s=t[0],i=t.slice(1,t.length),n=e):(s=t[0].events,i=t[0].data,n=t[0].context||e),i.unshift(n);return(Array.isArray(s)?s:s.split(" ")).forEach(t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(e=>{e.apply(n,[t,...i])}),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach(t=>{t.apply(n,i)})}),e}},update:{updateSize:function(){const t=this;let e,s;const i=t.el;e=void 0!==t.params.width&&null!==t.params.width?t.params.width:i.clientWidth,s=void 0!==t.params.height&&null!==t.params.height?t.params.height:i.clientHeight,0===e&&t.isHorizontal()||0===s&&t.isVertical()||(e=e-parseInt(Va(i,"padding-left")||0,10)-parseInt(Va(i,"padding-right")||0,10),s=s-parseInt(Va(i,"padding-top")||0,10)-parseInt(Va(i,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(s)&&(s=0),Object.assign(t,{width:e,height:s,size:t.isHorizontal()?e:s}))},updateSlides:function(){const t=this;function e(e,s){return parseFloat(e.getPropertyValue(t.getDirectionLabel(s))||0)}const s=t.params,{wrapperEl:i,slidesEl:n,rtlTranslate:r,wrongRTL:o}=t,a=t.virtual&&s.virtual.enabled,l=a?t.virtual.slides.length:t.slides.length,c=Ca(n,`.${t.params.slideClass}, swiper-slide`),d=a?t.virtual.slides.length:c.length;let u=[];const h=[],p=[];let m=s.slidesOffsetBefore;"function"==typeof m&&(m=s.slidesOffsetBefore.call(t));let f=s.slidesOffsetAfter;"function"==typeof f&&(f=s.slidesOffsetAfter.call(t));const g=t.snapGrid.length,v=t.slidesGrid.length,y=t.size-m-f;let w=s.spaceBetween,x=-m,T=0,S=0;if(void 0===y)return;"string"==typeof w&&w.indexOf("%")>=0?w=parseFloat(w.replace("%",""))/100*y:"string"==typeof w&&(w=parseFloat(w)),t.virtualSize=-w-m-f,c.forEach(t=>{r?t.style.marginLeft="":t.style.marginRight="",t.style.marginBottom="",t.style.marginTop=""}),s.centeredSlides&&s.cssMode&&(Pa(i,"--swiper-centered-offset-before",""),Pa(i,"--swiper-centered-offset-after",""));const b=s.grid&&s.grid.rows>1&&t.grid;let P;b?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();const E="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter(t=>void 0!==s.breakpoints[t].slidesPerView).length>0;for(let M=0;M1&&u.push(t.virtualSize-y)}if(a&&s.loop){const e=p[0]+w;if(s.slidesPerGroup>1){const i=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/s.slidesPerGroup),n=e*s.slidesPerGroup;for(let t=0;t!(s.cssMode&&!s.loop)||e!==c.length-1).forEach(t=>{t.style[e]=`${w}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let t=0;p.forEach(e=>{t+=e+(w||0)}),t-=w;const e=t>y?t-y:0;u=u.map(t=>t<=0?-m:t>e?e+f:t)}if(s.centerInsufficientSlides){let t=0;p.forEach(e=>{t+=e+(w||0)}),t-=w;const e=(m||0)+(f||0);if(t+e{u[e]=t-s}),h.forEach((t,e)=>{h[e]=t+s})}}if(Object.assign(t,{slides:c,snapGrid:u,slidesGrid:h,slidesSizesGrid:p}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){Pa(i,"--swiper-centered-offset-before",-u[0]+"px"),Pa(i,"--swiper-centered-offset-after",t.size/2-p[p.length-1]/2+"px");const e=-t.snapGrid[0],s=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(t=>t+s)}if(d!==l&&t.emit("slidesLengthChange"),u.length!==g&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),h.length!==v&&t.emit("slidesGridLengthChange"),s.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!(a||s.cssMode||"slide"!==s.effect&&"fade"!==s.effect)){const e=`${s.containerModifierClass}backface-hidden`,i=t.el.classList.contains(e);d<=s.maxBackfaceHiddenSlides?i||t.el.classList.add(e):i&&t.el.classList.remove(e)}},updateAutoHeight:function(t){const e=this,s=[],i=e.virtual&&e.params.virtual.enabled;let n,r=0;"number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed);const o=t=>i?e.slides[e.getSlideIndexByData(t)]:e.slides[t];if("auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(t=>{s.push(t)});else for(n=0;ne.slides.length&&!i)break;s.push(o(t))}else s.push(o(e.activeIndex));for(n=0;nr?t:r}(r||0===r)&&(e.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const t=this,e=t.slides,s=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let i=0;i=0?a=parseFloat(a.replace("%",""))/100*e.size:"string"==typeof a&&(a=parseFloat(a));for(let l=0;l=0&&h<=e.size-e.slidesSizesGrid[l],f=h>=0&&h1&&p<=e.size||h<=0&&p>=e.size;f&&(e.visibleSlides.push(t),e.visibleSlidesIndexes.push(l)),_a(t,f,s.slideVisibleClass),_a(t,m,s.slideFullyVisibleClass),t.progress=n?-d:d,t.originalProgress=n?-u:u}},updateProgress:function(t){const e=this;if(void 0===t){const s=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*s||0}const s=e.params,i=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:r,isEnd:o,progressLoop:a}=e;const l=r,c=o;if(0===i)n=0,r=!0,o=!0;else{n=(t-e.minTranslate())/i;const s=Math.abs(t-e.minTranslate())<1,a=Math.abs(t-e.maxTranslate())<1;r=s||n<=0,o=a||n>=1,s&&(n=0),a&&(n=1)}if(s.loop){const s=e.getSlideIndexByData(0),i=e.getSlideIndexByData(e.slides.length-1),n=e.slidesGrid[s],r=e.slidesGrid[i],o=e.slidesGrid[e.slidesGrid.length-1],l=Math.abs(t);a=l>=n?(l-n)/o:(l+o-r)/o,a>1&&(a-=1)}Object.assign(e,{progress:n,progressLoop:a,isBeginning:r,isEnd:o}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&e.updateSlidesProgress(t),r&&!l&&e.emit("reachBeginning toEdge"),o&&!c&&e.emit("reachEnd toEdge"),(l&&!r||c&&!o)&&e.emit("fromEdge"),e.emit("progress",n)},updateSlidesClasses:function(){const t=this,{slides:e,params:s,slidesEl:i,activeIndex:n}=t,r=t.virtual&&s.virtual.enabled,o=t.grid&&s.grid&&s.grid.rows>1,a=t=>Ca(i,`.${s.slideClass}${t}, swiper-slide${t}`)[0];let l,c,d;if(r)if(s.loop){let e=n-t.virtual.slidesBefore;e<0&&(e=t.virtual.slides.length+e),e>=t.virtual.slides.length&&(e-=t.virtual.slides.length),l=a(`[data-swiper-slide-index="${e}"]`)}else l=a(`[data-swiper-slide-index="${n}"]`);else o?(l=e.find(t=>t.column===n),d=e.find(t=>t.column===n+1),c=e.find(t=>t.column===n-1)):l=e[n];l&&(o||(d=function(t,e){const s=[];for(;t.nextElementSibling;){const i=t.nextElementSibling;e?i.matches(e)&&s.push(i):s.push(i),t=i}return s}(l,`.${s.slideClass}, swiper-slide`)[0],s.loop&&!d&&(d=e[0]),c=function(t,e){const s=[];for(;t.previousElementSibling;){const i=t.previousElementSibling;e?i.matches(e)&&s.push(i):s.push(i),t=i}return s}(l,`.${s.slideClass}, swiper-slide`)[0],s.loop&&0===!c&&(c=e[e.length-1]))),e.forEach(t=>{Wa(t,t===l,s.slideActiveClass),Wa(t,t===d,s.slideNextClass),Wa(t,t===c,s.slidePrevClass)}),t.emitSlidesClasses()},updateActiveIndex:function(t){const e=this,s=e.rtlTranslate?e.translate:-e.translate,{snapGrid:i,params:n,activeIndex:r,realIndex:o,snapIndex:a}=e;let l,c=t;const d=t=>{let s=t-e.virtual.slidesBefore;return s<0&&(s=e.virtual.slides.length+s),s>=e.virtual.slides.length&&(s-=e.virtual.slides.length),s};if(void 0===c&&(c=function(t){const{slidesGrid:e,params:s}=t,i=t.rtlTranslate?t.translate:-t.translate;let n;for(let r=0;r=e[r]&&i=e[r]&&i=e[r]&&(n=r);return s.normalizeSlideIndex&&(n<0||void 0===n)&&(n=0),n}(e)),i.indexOf(s)>=0)l=i.indexOf(s);else{const t=Math.min(n.slidesPerGroupSkip,c);l=t+Math.floor((c-t)/n.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),c===r&&!e.params.loop)return void(l!==a&&(e.snapIndex=l,e.emit("snapIndexChange")));if(c===r&&e.params.loop&&e.virtual&&e.params.virtual.enabled)return void(e.realIndex=d(c));const u=e.grid&&n.grid&&n.grid.rows>1;let h;if(e.virtual&&n.virtual.enabled&&n.loop)h=d(c);else if(u){const t=e.slides.find(t=>t.column===c);let s=parseInt(t.getAttribute("data-swiper-slide-index"),10);Number.isNaN(s)&&(s=Math.max(e.slides.indexOf(t),0)),h=Math.floor(s/n.grid.rows)}else if(e.slides[c]){const t=e.slides[c].getAttribute("data-swiper-slide-index");h=t?parseInt(t,10):c}else h=c;Object.assign(e,{previousSnapIndex:a,snapIndex:l,previousRealIndex:o,realIndex:h,previousIndex:r,activeIndex:c}),e.initialized&&Xa(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(o!==h&&e.emit("realIndexChange"),e.emit("slideChange"))},updateClickedSlide:function(t,e){const s=this,i=s.params;let n=t.closest(`.${i.slideClass}, swiper-slide`);!n&&s.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(t=>{!n&&t.matches&&t.matches(`.${i.slideClass}, swiper-slide`)&&(n=t)});let r,o=!1;if(n)for(let a=0;al?l:i&&t=l.length&&(g=l.length-1);const v=-l[g];if(a.normalizeSlideIndex)for(let T=0;T=e&&t=e&&t=e&&(o=T)}if(r.initialized&&o!==u){if(!r.allowSlideNext&&(h?v>r.translate&&v>r.minTranslate():vr.translate&&v>r.maxTranslate()&&(u||0)!==o)return!1}let y;o!==(d||0)&&s&&r.emit("beforeSlideChangeStart"),r.updateProgress(v),y=o>u?"next":o0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[t?"scrollLeft":"scrollTop"]=s})):p[t?"scrollLeft":"scrollTop"]=s,w&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1});else{if(!r.support.smoothScroll)return Ea({swiper:r,targetPosition:s,side:t?"left":"top"}),!0;p.scrollTo({[t?"left":"top"]:s,behavior:"smooth"})}return!0}const x=$a().isSafari;return w&&!n&&x&&r.isElement&&r.virtual.update(!1,!1,o),r.setTransition(e),r.setTranslate(v),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,i),r.transitionStart(s,y),0===e?r.transitionEnd(s,y):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(t){r&&!r.destroyed&&t.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(s,y))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(t=0,e,s=!0,i){if("string"==typeof t){t=parseInt(t,10)}const n=this;if(n.destroyed)return;void 0===e&&(e=n.params.speed);const r=n.grid&&n.params.grid&&n.params.grid.rows>1;let o=t;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)o+=n.virtual.slidesBefore;else{let t;if(r){const e=o*n.params.grid.rows;t=n.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e).column}else t=n.getSlideIndexByData(o);const e=r?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:s,slidesOffsetBefore:a,slidesOffsetAfter:l}=n.params,c=s||!!a||!!l;let d=n.params.slidesPerView;"auto"===d?d=n.slidesPerViewDynamic():(d=Math.ceil(parseFloat(n.params.slidesPerView,10)),c&&d%2==0&&(d+=1));let u=e-t1*e.getAttribute("data-swiper-slide-index")===t).column}else o=n.getSlideIndexByData(o)}return requestAnimationFrame(()=>{n.slideTo(o,e,s,i)}),n},slideNext:function(t,e=!0,s){const i=this,{enabled:n,params:r,animating:o}=i;if(!n||i.destroyed)return i;void 0===t&&(t=i.params.speed);let a=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex{i.slideTo(i.activeIndex+l,t,e,s)}),!0}return r.rewind&&i.isEnd?i.slideTo(0,t,e,s):i.slideTo(i.activeIndex+l,t,e,s)},slidePrev:function(t,e=!0,s){const i=this,{params:n,snapGrid:r,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=i;if(!l||i.destroyed)return i;void 0===t&&(t=i.params.speed);const d=i.virtual&&n.virtual.enabled;if(n.loop){if(c&&!d&&n.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function u(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const h=u(a?i.translate:-i.translate),p=r.map(t=>u(t)),m=n.freeMode&&n.freeMode.enabled;let f=r[p.indexOf(h)-1];if(void 0===f&&(n.cssMode||m)){let t;r.forEach((e,s)=>{h>=e&&(t=s)}),void 0!==t&&(f=m?r[t]:r[t>0?t-1:t])}let g=0;if(void 0!==f&&(g=o.indexOf(f),g<0&&(g=i.activeIndex-1),"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(g=g-i.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),n.rewind&&i.isBeginning){const n=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(n,t,e,s)}return n.loop&&0===i.activeIndex&&n.cssMode?(requestAnimationFrame(()=>{i.slideTo(g,t,e,s)}),!0):i.slideTo(g,t,e,s)},slideReset:function(t,e=!0,s){const i=this;if(!i.destroyed)return void 0===t&&(t=i.params.speed),i.slideTo(i.activeIndex,t,e,s)},slideToClosest:function(t,e=!0,s,i=.5){const n=this;if(n.destroyed)return;void 0===t&&(t=n.params.speed);let r=n.activeIndex;const o=Math.min(n.params.slidesPerGroupSkip,r),a=o+Math.floor((r-o)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){const t=n.snapGrid[a];l-t>(n.snapGrid[a+1]-t)*i&&(r+=n.params.slidesPerGroup)}else{const t=n.snapGrid[a-1];l-t<=(n.snapGrid[a]-t)*i&&(r-=n.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,n.slidesGrid.length-1),n.slideTo(r,t,e,s)},slideToClickedSlide:function(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:s}=t,i="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let n,r=t.getSlideIndexWhenGrid(t.clickedIndex);const o=t.isElement?"swiper-slide":`.${e.slideClass}`,a=t.grid&&t.params.grid&&t.params.grid.rows>1;if(e.loop){if(t.animating)return;n=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?t.slideToLoop(n):r>(a?(t.slides.length-i)/2-(t.params.grid.rows-1):t.slides.length-i)?(t.loopFix(),r=t.getSlideIndex(Ca(s,`${o}[data-swiper-slide-index="${n}"]`)[0]),ya(()=>{t.slideTo(r)})):t.slideTo(r)}else t.slideTo(r)}},loop:{loopCreate:function(t,e){const s=this,{params:i,slidesEl:n}=s;if(!i.loop||s.virtual&&s.params.virtual.enabled)return;const r=()=>{Ca(n,`.${i.slideClass}, swiper-slide`).forEach((t,e)=>{t.setAttribute("data-swiper-slide-index",e)})},o=s.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||o)&&(()=>{const t=Ca(n,`.${i.slideBlankClass}`);t.forEach(t=>{t.remove()}),t.length>0&&(s.recalcSlides(),s.updateSlides())})();const a=i.slidesPerGroup*(o?i.grid.rows:1),l=s.slides.length%a!==0,c=o&&s.slides.length%i.grid.rows!==0,d=t=>{for(let e=0;e1;(c.lengtht.classList.contains(p.slideActiveClass))):C=n;const A="next"===s||!s,k="prev"===s||!s;let V=0,L=0;const D=(S?c[n].column:n)+(y&&void 0===i?-w/2+.5:0);if(D=0;e-=1)c[e].column===t&&b.push(e)}else b.push(E-e-1)}}else if(D+w>E-T){L=Math.max(D-(E-2*T),x),M&&(L=Math.max(L,w-E+v+1));for(let t=0;t{t.column===e&&P.push(s)}):P.push(e)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),"cards"===l.params.effect&&c.length{c[t].swiperLoopMoveDOM=!0,h.prepend(c[t]),c[t].swiperLoopMoveDOM=!1}),A&&P.forEach(t=>{c[t].swiperLoopMoveDOM=!0,h.append(c[t]),c[t].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===p.slidesPerView?l.updateSlides():S&&(b.length>0&&k||P.length>0&&A)&&l.slides.forEach((t,e)=>{l.grid.updateSlide(e,t,l.slides)}),p.watchSlidesProgress&&l.updateSlidesOffset(),e)if(b.length>0&&k){if(void 0===t){const t=l.slidesGrid[C],e=l.slidesGrid[C+V]-t;a?l.setTranslate(l.translate-e):(l.slideTo(C+Math.ceil(V),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-e,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-e))}else if(i){const t=S?b.length/p.grid.rows:b.length;l.slideTo(l.activeIndex+t,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(P.length>0&&A)if(void 0===t){const t=l.slidesGrid[C],e=l.slidesGrid[C-L]-t;a?l.setTranslate(l.translate-e):(l.slideTo(C-L,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-e,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-e))}else{const t=S?P.length/p.grid.rows:P.length;l.slideTo(l.activeIndex-t,0,!1,!0)}if(l.allowSlidePrev=d,l.allowSlideNext=u,l.controller&&l.controller.control&&!o){const r={slideRealIndex:t,direction:s,setTranslate:i,activeSlideIndex:n,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...r,slideTo:t.params.slidesPerView===p.slidesPerView&&e})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...r,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView&&e})}l.emit("loopFix")},loopDestroy:function(){const t=this,{params:e,slidesEl:s}=t;if(!e.loop||!s||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const i=[];t.slides.forEach(t=>{const e=void 0===t.swiperSlideIndex?1*t.getAttribute("data-swiper-slide-index"):t.swiperSlideIndex;i[e]=t}),t.slides.forEach(t=>{t.removeAttribute("data-swiper-slide-index")}),i.forEach(t=>{s.append(t)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}},grabCursor:{setGrabCursor:function(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const s="container"===e.params.touchEventsTarget?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),s.style.cursor="move",s.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})},unsetGrabCursor:function(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t["container"===t.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}},events:{attachEvents:function(){const t=this,{params:e}=t;t.onTouchStart=Ka.bind(t),t.onTouchMove=Za.bind(t),t.onTouchEnd=Ja.bind(t),t.onDocumentTouchStart=il.bind(t),e.cssMode&&(t.onScroll=el.bind(t)),t.onClick=tl.bind(t),t.onLoad=sl.bind(t),nl(t,"on")},detachEvents:function(){nl(this,"off")}},breakpoints:{setBreakpoint:function(){const t=this,{realIndex:e,initialized:s,params:i,el:n}=t,r=i.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const o=fa(),a="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,l=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?t.el:o.querySelector(i.breakpointsBase),c=t.getBreakpoint(r,a,l);if(!c||t.currentBreakpoint===c)return;const d=(c in r?r[c]:void 0)||t.originalParams,u=rl(t,i),h=rl(t,d),p=t.params.grabCursor,m=d.grabCursor,f=i.enabled;u&&!h?(n.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&h&&(n.classList.add(`${i.containerModifierClass}grid`),(d.grid.fill&&"column"===d.grid.fill||!d.grid.fill&&"column"===i.grid.fill)&&n.classList.add(`${i.containerModifierClass}grid-column`),t.emitContainerClasses()),p&&!m?t.unsetGrabCursor():!p&&m&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(e=>{if(void 0===d[e])return;const s=i[e]&&i[e].enabled,n=d[e]&&d[e].enabled;s&&!n&&t[e].disable(),!s&&n&&t[e].enable()});const g=d.direction&&d.direction!==i.direction,v=i.loop&&(d.slidesPerView!==i.slidesPerView||g),y=i.loop;g&&s&&t.changeDirection(),ba(t.params,d);const w=t.params.enabled,x=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!w?t.disable():!f&&w&&t.enable(),t.currentBreakpoint=c,t.emit("_beforeBreakpoint",d),s&&(v?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!y&&x?(t.loopCreate(e),t.updateSlides()):y&&!x&&t.loopDestroy()),t.emit("breakpoint",d)},getBreakpoint:function(t,e="window",s){if(!t||"container"===e&&!s)return;let i=!1;const n=va(),r="window"===e?n.innerHeight:s.clientHeight,o=Object.keys(t).map(t=>{if("string"==typeof t&&0===t.indexOf("@")){const e=parseFloat(t.substr(1));return{value:r*e,point:t}}return{value:t,point:t}});o.sort((t,e)=>parseInt(t.value,10)-parseInt(e.value,10));for(let a=0;as}else t.isLocked=1===t.snapGrid.length;!0===s.allowSlideNext&&(t.allowSlideNext=!t.isLocked),!0===s.allowSlidePrev&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const t=this,{classNames:e,params:s,rtl:i,el:n,device:r}=t,o=function(t,e){const s=[];return t.forEach(t=>{"object"==typeof t?Object.keys(t).forEach(i=>{t[i]&&s.push(e+i)}):"string"==typeof t&&s.push(e+t)}),s}(["initialized",s.direction,{"free-mode":t.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:i},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&"column"===s.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides},{"watch-progress":s.watchSlidesProgress}],s.containerModifierClass);e.push(...o),n.classList.add(...e),t.emitContainerClasses()},removeClasses:function(){const{el:t,classNames:e}=this;t&&"string"!=typeof t&&(t.classList.remove(...e),this.emitContainerClasses())}}},cl={};class dl{constructor(...t){let e,s;1===t.length&&t[0].constructor&&"Object"===Object.prototype.toString.call(t[0]).slice(8,-1)?s=t[0]:[e,s]=t,s||(s={}),s=ba({},s),e&&!s.el&&(s.el=e);const i=fa();if(s.el&&"string"==typeof s.el&&i.querySelectorAll(s.el).length>1){const t=[];return i.querySelectorAll(s.el).forEach(e=>{const i=ba({},s,{el:e});t.push(new dl(i))}),t}const n=this;n.__swiper__=!0,n.support=Na(),n.device=Ga({userAgent:s.userAgent}),n.browser=$a(),n.eventsListeners={},n.eventsAnyListeners=[],n.modules=[...n.__modules__],s.modules&&Array.isArray(s.modules)&&n.modules.push(...s.modules);const r={};n.modules.forEach(t=>{t({params:s,swiper:n,extendParams:al(s,r),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})});const o=ba({},ol,r);return n.params=ba({},o,cl,s),n.originalParams=ba({},n.params),n.passedParams=ba({},s),n.params&&n.params.on&&Object.keys(n.params.on).forEach(t=>{n.on(t,n.params.on[t])}),n.params&&n.params.onAny&&n.onAny(n.params.onAny),Object.assign(n,{enabled:n.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===n.params.direction,isVertical:()=>"vertical"===n.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:n.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.emit("_swiper"),n.params.init&&n.init(),n}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:e,params:s}=this,i=La(Ca(e,`.${s.slideClass}, swiper-slide`)[0]);return La(t)-i}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?t=Math.floor(t/this.params.grid.rows):"row"===this.params.grid.fill&&(t%=Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const{slidesEl:t,params:e}=this;this.slides=Ca(t,`.${e.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,e){const s=this;t=Math.min(Math.max(t,0),1);const i=s.minTranslate(),n=(s.maxTranslate()-i)*t+i;s.translateTo(n,void 0===e?0:e),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=t.el.className.split(" ").filter(e=>0===e.indexOf("swiper")||0===e.indexOf(t.params.containerModifierClass));t.emit("_containerClasses",e.join(" "))}getSlideClasses(t){const e=this;return e.destroyed?"":t.className.split(" ").filter(t=>0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass)).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=[];t.slides.forEach(s=>{const i=t.getSlideClasses(s);e.push({slideEl:s,classNames:i}),t.emit("_slideClass",s,i)}),t.emit("_slideClasses",e)}slidesPerViewDynamic(t="current",e=!1){const{params:s,slides:i,slidesGrid:n,slidesSizesGrid:r,size:o,activeIndex:a}=this;let l=1;if("number"==typeof s.slidesPerView)return s.slidesPerView;if(s.centeredSlides){let t,e=i[a]?Math.ceil(i[a].swiperSlideSize):0;for(let s=a+1;so&&(t=!0));for(let s=a-1;s>=0;s-=1)i[s]&&!t&&(e+=i[s].swiperSlideSize,l+=1,e>o&&(t=!0))}else if("current"===t)for(let c=a+1;c=0;c-=1){n[a]-n[c]{e.complete&&Ha(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),s.freeMode&&s.freeMode.enabled&&!s.cssMode)i(),s.autoHeight&&t.updateAutoHeight();else{if(("auto"===s.slidesPerView||s.slidesPerView>1)&&t.isEnd&&!s.centeredSlides){const e=t.virtual&&s.virtual.enabled?t.virtual.slides:t.slides;n=t.slideTo(e.length-1,0,!1,!0)}else n=t.slideTo(t.activeIndex,0,!1,!0);n||i()}s.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,e=!0){const s=this,i=s.params.direction;return t||(t="horizontal"===i?"vertical":"horizontal"),t===i||"horizontal"!==t&&"vertical"!==t||(s.el.classList.remove(`${s.params.containerModifierClass}${i}`),s.el.classList.add(`${s.params.containerModifierClass}${t}`),s.emitContainerClasses(),s.params.direction=t,s.slides.forEach(e=>{"vertical"===t?e.style.width="":e.style.height=""}),s.emit("changeDirection"),e&&s.update()),s}changeLanguageDirection(t){const e=this;e.rtl&&"rtl"===t||!e.rtl&&"ltr"===t||(e.rtl="rtl"===t,e.rtlTranslate="horizontal"===e.params.direction&&e.rtl,e.rtl?(e.el.classList.add(`${e.params.containerModifierClass}rtl`),e.el.dir="rtl"):(e.el.classList.remove(`${e.params.containerModifierClass}rtl`),e.el.dir="ltr"),e.update())}mount(t){const e=this;if(e.mounted)return!0;let s=t||e.params.el;if("string"==typeof s&&(s=document.querySelector(s)),!s)return!1;s.swiper=e,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName===e.params.swiperElementNodeName.toUpperCase()&&(e.isElement=!0);const i=()=>`.${(e.params.wrapperClass||"").trim().split(" ").join(".")}`;let n=(()=>{if(s&&s.shadowRoot&&s.shadowRoot.querySelector){return s.shadowRoot.querySelector(i())}return Ca(s,i())[0]})();return!n&&e.params.createElements&&(n=ka("div",e.params.wrapperClass),s.append(n),Ca(s,`.${e.params.slideClass}`).forEach(t=>{n.append(t)})),Object.assign(e,{el:s,wrapperEl:n,slidesEl:e.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:n,hostEl:e.isElement?s.parentNode.host:s,mounted:!0,rtl:"rtl"===s.dir.toLowerCase()||"rtl"===Va(s,"direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===s.dir.toLowerCase()||"rtl"===Va(s,"direction")),wrongRTL:"-webkit-box"===Va(n,"display")}),!0}init(t){const e=this;if(e.initialized)return e;if(!1===e.mount(t))return e;e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.params.loop&&e.virtual&&e.params.virtual.enabled?e.slideTo(e.params.initialSlide+e.virtual.slidesBefore,0,e.params.runCallbacksOnInit,!1,!0):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.params.loop&&e.loopCreate(void 0,!0),e.attachEvents();const s=[...e.el.querySelectorAll('[loading="lazy"]')];return e.isElement&&s.push(...e.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach(t=>{t.complete?Ha(e,t):t.addEventListener("load",t=>{Ha(e,t.target)})}),Xa(e),e.initialized=!0,Xa(e),e.emit("init"),e.emit("afterInit"),e}destroy(t=!0,e=!0){const s=this,{params:i,el:n,wrapperEl:r,slides:o}=s;return void 0===s.params||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),i.loop&&s.loopDestroy(),e&&(s.removeClasses(),n&&"string"!=typeof n&&n.removeAttribute("style"),r&&r.removeAttribute("style"),o&&o.length&&o.forEach(t=>{t.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),t.removeAttribute("style"),t.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(t=>{s.off(t)}),!1!==t&&(s.el&&"string"!=typeof s.el&&(s.el.swiper=null),function(t){const e=t;Object.keys(e).forEach(t=>{try{e[t]=null}catch(s){}try{delete e[t]}catch(s){}})}(s)),s.destroyed=!0),null}static extendDefaults(t){ba(cl,t)}static get extendedDefaults(){return cl}static get defaults(){return ol}static installModule(t){dl.prototype.__modules__||(dl.prototype.__modules__=[]);const e=dl.prototype.__modules__;"function"==typeof t&&e.indexOf(t)<0&&e.push(t)}static use(t){return Array.isArray(t)?(t.forEach(t=>dl.installModule(t)),dl):(dl.installModule(t),dl)}}Object.keys(ll).forEach(t=>{Object.keys(ll[t]).forEach(e=>{dl.prototype[e]=ll[t][e]})}),dl.use([function({swiper:t,on:e,emit:s}){const i=va();let n=null,r=null;const o=()=>{t&&!t.destroyed&&t.initialized&&(s("beforeResize"),s("resize"))},a=()=>{t&&!t.destroyed&&t.initialized&&s("orientationchange")};e("init",()=>{t.params.resizeObserver&&void 0!==i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(n=new ResizeObserver(e=>{r=i.requestAnimationFrame(()=>{const{width:s,height:i}=t;let n=s,r=i;e.forEach(({contentBoxSize:e,contentRect:s,target:i})=>{i&&i!==t.el||(n=s?s.width:(e[0]||e).inlineSize,r=s?s.height:(e[0]||e).blockSize)}),n===s&&r===i||o()})}),n.observe(t.el)):(i.addEventListener("resize",o),i.addEventListener("orientationchange",a))}),e("destroy",()=>{r&&i.cancelAnimationFrame(r),n&&n.unobserve&&t.el&&(n.unobserve(t.el),n=null),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",a)})},function({swiper:t,extendParams:e,on:s,emit:i}){const n=[],r=va(),o=(e,s={})=>{const o=new(r.MutationObserver||r.WebkitMutationObserver)(e=>{if(t.__preventObserver__)return;if(1===e.length)return void i("observerUpdate",e[0]);const s=function(){i("observerUpdate",e[0])};r.requestAnimationFrame?r.requestAnimationFrame(s):r.setTimeout(s,0)});o.observe(e,{attributes:void 0===s.attributes||s.attributes,childList:t.isElement||(void 0===s.childList||s).childList,characterData:void 0===s.characterData||s.characterData}),n.push(o)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",()=>{if(t.params.observer){if(t.params.observeParents){const e=Da(t.hostEl);for(let t=0;t{n.forEach(t=>{t.disconnect()}),n.splice(0,n.length)})}]);export{di as A,dl as S,Ra as a,Oa as b,ka as c,Da as d,Ca as e,Ia as f,Ma as g,La as h,fa as i,s as j,ol as k,ca as m,Ba as s,ua as u};