"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[51331],{8289:(e,t,r)=>{r.d(t,{GL:()=>s});var n=r(60521),u=r(52114),a=r(19002);let l=e=>{var t,r;let{animationId:n,autoplay:l,backgroundColor:o,className:s,createDotLottie:i,data:c,dotLottieRefCallback:f,layout:d,loop:v,mode:h,playOnHover:p,renderConfig:m,segment:g,speed:y,src:E,stateMachineConfig:b,stateMachineId:C,style:M,themeData:k,themeId:w,useFrameInterpolation:I,workerId:S,...A}=e,L=(0,u.useRef)(null),x=(0,u.useRef)(null),O=(0,u.useRef)(f),R={speed:y,mode:h,loop:v,useFrameInterpolation:I,segment:g,backgroundColor:o,autoplay:l,themeId:w,workerId:S,src:E,data:c,layout:d,renderConfig:m,animationId:n,stateMachineConfig:b,stateMachineId:C},V=(0,u.useRef)(R);O.current=f,V.current=R;let j=(0,u.useCallback)(e=>{var t,r;x.current=e,e?L.current=i({...V.current,canvas:e}):(null===(t=L.current)||void 0===t||t.destroy(),L.current=null),null===(r=O.current)||void 0===r||r.call(O,L.current)},[]);return(0,u.useEffect)(()=>{var e,t;let r=e=>{var t,r;p&&("mouseenter"===e.type&&(null===(t=L.current)||void 0===t||t.play()),"mouseleave"===e.type&&(null===(r=L.current)||void 0===r||r.pause()))};return null===(e=x.current)||void 0===e||e.addEventListener("mouseenter",r),null===(t=x.current)||void 0===t||t.addEventListener("mouseleave",r),()=>{var e,t;null===(e=x.current)||void 0===e||e.removeEventListener("mouseenter",r),null===(t=x.current)||void 0===t||t.removeEventListener("mouseleave",r)}},[p]),(0,u.useEffect)(()=>{var e;null===(e=L.current)||void 0===e||e.setSpeed(null!=y?y:1)},[y]),(0,u.useEffect)(()=>{var e;null===(e=L.current)||void 0===e||e.setMode(null!=h?h:"forward")},[h]),(0,u.useEffect)(()=>{var e;null===(e=L.current)||void 0===e||e.setLoop(null!=v&&v)},[v]),(0,u.useEffect)(()=>{var e;null===(e=L.current)||void 0===e||e.setUseFrameInterpolation(null==I||I)},[I]),(0,u.useEffect)(()=>{var e,t;"number"==typeof(null==g?void 0:g[0])&&"number"==typeof g[1]?null===(e=L.current)||void 0===e||e.setSegment(g[0],g[1]):null===(t=L.current)||void 0===t||t.resetSegment()},[g]),(0,u.useEffect)(()=>{var e;null===(e=L.current)||void 0===e||e.setBackgroundColor(null!=o?o:"")},[o]),(0,u.useEffect)(()=>{var e;null===(e=L.current)||void 0===e||e.setRenderConfig(null!=m?m:{})},[JSON.stringify(m)]),(0,u.useEffect)(()=>{var e;"string"!=typeof c&&"object"!=typeof c||null===(e=L.current)||void 0===e||e.load({data:c,...V.current})},[c]),(0,u.useEffect)(()=>{var e;"string"==typeof E&&(null===(e=L.current)||void 0===e||e.load({src:E,...V.current}))},[E]),(0,u.useEffect)(()=>{var e,t;null===(e=L.current)||void 0===e||e.setMarker(null!==(t=A.marker)&&void 0!==t?t:"")},[A.marker]),(0,u.useEffect)(()=>{var e;(null===(e=L.current)||void 0===e?void 0:e.isLoaded)&&L.current.activeAnimationId!==n&&L.current.loadAnimation(null!=n?n:"")},[n]),(0,u.useEffect)(()=>{var e;"string"==typeof w&&(null===(e=L.current)||void 0===e||e.setTheme(w))},[w]),(0,u.useEffect)(()=>{var e;null===(e=L.current)||void 0===e||e.setThemeData(null!=k?k:"")},[k]),(0,u.useEffect)(()=>{var e;null===(e=L.current)||void 0===e||e.setLayout(null!=d?d:{})},[null==d?void 0:d.fit,null==d?void 0:null===(t=d.align)||void 0===t?void 0:t[0],null==d?void 0:null===(r=d.align)||void 0===r?void 0:r[1]]),(0,u.useEffect)(()=>{var e;(null===(e=L.current)||void 0===e?void 0:e.isLoaded)&&("string"==typeof C&&C?L.current.stateMachineLoad(C)&&L.current.stateMachineStart():L.current.stateMachineStop())},[C]),(0,u.useEffect)(()=>{var e;null===(e=L.current)||void 0===e||e.stateMachineSetConfig(null!=b?b:null)},[b]),(0,a.jsx)("div",{className:s,...!s&&{style:{width:"100%",height:"100%",lineHeight:0,...M}},children:(0,a.jsx)("canvas",{ref:j,style:{width:"100%",height:"100%"},...A})})},o=e=>new n.j(e),s=e=>(0,a.jsx)(l,{...e,createDotLottie:o})},99404:(e,t,r)=>{r.d(t,{l:()=>U});var n=r(32341),u=r(52114),a=r(35104),l=r(63587),o=r(82957),s=r(56231),i=r(46697),c=r(71019),f=r(7762),d=r(39706),v=r(42353);function h(e){return"object"==typeof e&&!Array.isArray(e)}function p(e,t,r,n){return"string"==typeof e&&h(t)?(0,v.KJ)(e,r,n):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}var m=r(45529);function g(e,t,r,n){var u;return"number"==typeof t?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):"<"===t?r:null!==(u=n.get(t))&&void 0!==u?u:e}let y=(e,t,r)=>{let n=t-e;return((r-e)%n+n)%n+e};var E=r(46091);function b(e,t){return(0,E.h)(e)?e[y(0,e.length,t)]:e}var C=r(97700),M=r(66053);function k(e,t){return e.at!==t.at?e.at-t.at:null===e.value?1:null===t.value?-1:0}var w=r(4562);function I(e,t){return t.has(e)||t.set(e,{}),t.get(e)}function S(e,t){return t[e]||(t[e]=[]),t[e]}let A=e=>"number"==typeof e,L=e=>e.every(A);var x=r(41111),O=r(81642),R=r(14869),V=r(37661),j=r(83933),N=r(9066),F=r(6345);class D extends F.B{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(t in e){let r=e[t];if("string"==typeof r||"number"==typeof r)return r}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return(0,N.ge)()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}}function W(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},r=(0,R.x)(e)?new V.l(t):new j.M(t);r.mount(e),x.C.set(e,r)}function _(e){let t=new D({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),x.C.set(e,t)}var B=r(86092);function J(e,t,r,n){let u=[];if((0,d.S)(e)||"number"==typeof e||"string"==typeof e&&!h(t))u.push((0,B.z)(e,h(t)&&t.default||t,r&&r.default||r));else{let a=p(e,t,n),l=a.length;(0,w.V)(!!l,"No valid elements provided.");for(let e=0;e{let d=Array.isArray(e)?e:[e],{delay:v=0,times:h=(0,i.Z)(d),type:p="keyframes",repeat:g,repeatType:y,repeatDelay:E=0,...k}=r,{ease:I=t.ease||"easeOut",duration:S}=r,O="function"==typeof v?v(l,f):v,V=d.length,j=(0,m.W)(p)?p:null==u?void 0:u[p];if(V<=2&&j){let e=100;2===V&&L(d)&&(e=Math.abs(d[1]-d[0]));let t={...k};void 0!==S&&(t.duration=(0,s.f)(S));let r=function(e,t=100,r){let n=r({...e,keyframes:[0,t]}),u=Math.min((0,o.t)(n),o.Y);return{type:"keyframes",ease:e=>n.next(u*e).value/t,duration:(0,s.X)(u)}}(t,e,j);I=r.ease,S=r.duration}null!=S||(S=a);let N=A+O;1===h.length&&0===h[0]&&(h[1]=1);let F=h.length-d.length;if(F>0&&(0,c.f)(h,F),1===d.length&&d.unshift(null),g){(0,w.V)(g<20,"Repeat count too high, must be less than 20"),S*=g+1;let e=[...d],t=[...h],r=[...I=Array.isArray(I)?[...I]:[I]];for(let n=0;nt&&u.at{for(let u in e){let a=e[u];a.sort(k);let o=[],s=[],i=[];for(let e=0;e{n.push(...J(r,e,t))}),n}(t,r,e):J(t,r,n,e);let v=new a.P(u);return e&&e.animations.push(v),v}}function U(){var e;let t=(0,n.M)(()=>({current:null,animations:[]})),r=(0,n.M)(()=>P(t));return e=()=>{t.animations.forEach(e=>e.stop())},(0,u.useEffect)(()=>()=>e(),[]),[t,r]}P()},53434:(e,t,r)=>{r.d(t,{s:()=>c});var n=r(4562),u=r(85506),a=r(86712);function l(e,t){[...t].reverse().forEach(r=>{let n=e.getVariant(r);n&&(0,u.U)(e,n),e.variantChildren&&e.variantChildren.forEach(e=>{l(e,t)})})}function o(){let e=!1,t=new Set,r={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(r,u){(0,n.V)(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let l=[];return t.forEach(e=>{l.push((0,a._)(e,r,{transitionOverride:u}))}),Promise.all(l)},set:r=>((0,n.V)(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{Array.isArray(r)?l(e,r):"string"==typeof r?l(e,[r]):(0,u.U)(e,r)})),stop(){t.forEach(e=>{!function(e){e.values.forEach(e=>e.stop())}(e)})},mount:()=>(e=!0,()=>{e=!1,r.stop()})};return r}var s=r(32341),i=r(31718);let c=function(){let e=(0,s.M)(o);return(0,i.E)(e.mount,[]),e}},78593:(e,t,r)=>{r.d(t,{y:()=>u});var n=r(35895);function u(e=.1,{startDelay:t=0,from:r=0,ease:a}={}){return(u,l)=>{let o=e*Math.abs(("number"==typeof r?r:function(e,t){if("first"===e)return 0;{let r=t-1;return"last"===e?r:r/2}}(r,l))-u);if(a){let t=l*e;o=(0,n.K)(a)(o/t)*t}return t+o}}},40725:(e,t,r)=>{r.d(t,{W:()=>l});var n=r(52114),u=r(42353);let a={some:0,all:1};function l(e,{root:t,margin:r,amount:o,once:s=!1}={}){let[i,c]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!e.current||s&&i)return;let n={root:t&&t.current||void 0,margin:r,amount:o};return function(e,t,{root:r,margin:n,amount:l="some"}={}){let o=(0,u.KJ)(e),s=new WeakMap,i=new IntersectionObserver(e=>{e.forEach(e=>{let r=s.get(e.target);if(!!r!==e.isIntersecting){if(e.isIntersecting){let r=t(e);"function"==typeof r?s.set(e.target,r):i.unobserve(e.target)}else r&&(r(e),s.delete(e.target))}})},{root:r,rootMargin:n,threshold:"number"==typeof l?l:a[l]});return o.forEach(e=>i.observe(e)),()=>i.disconnect()}(e.current,()=>(c(!0),s?void 0:()=>c(!1)),n)},[t,e,r,s,o]),i}},48411:(e,t,r)=>{r.d(t,{d:()=>o});var n=r(52114),u=r(30656),a=r(50628),l=r(32341);function o(e){let t=(0,l.M)(()=>(0,u.OQ)(e)),{isStatic:r}=(0,n.useContext)(a.Q);if(r){let[,r]=(0,n.useState)(e);(0,n.useEffect)(()=>t.on("change",r),[])}return t}},65066:(e,t,r)=>{r.d(t,{z:()=>f});var n=r(52114),u=r(39706),a=r(48411),l=r(50628),o=r(31718),s=r(11984),i=r(75290);function c(e){return"number"==typeof e?e:parseFloat(e)}function f(e,t={}){let{isStatic:r}=(0,n.useContext)(l.Q),d=(0,n.useRef)(null),v=(0,a.d)((0,u.S)(e)?c(e.get()):e),h=(0,n.useRef)(v.get()),p=(0,n.useRef)(()=>{}),m=()=>{let e=d.current;e&&0===e.time&&e.sample(i.uv.delta),g(),d.current=(0,s.L)({keyframes:[v.get(),h.current],velocity:v.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:p.current})},g=()=>{d.current&&d.current.stop()};return(0,n.useInsertionEffect)(()=>v.attach((e,t)=>r?t(e):(h.current=e,p.current=t,i.Gt.update(m),v.get()),g),[JSON.stringify(t)]),(0,o.E)(()=>{if((0,u.S)(e))return e.on("change",e=>v.set(c(e)))},[v]),v}}}]);