1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8555],{6654:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useMergedRef",{enumerable:!0,get:function(){return r}});let n=i(12115);function r(t,e){let i=(0,n.useRef)(null),r=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let t=i.current;t&&(i.current=null,t());let e=r.current;e&&(r.current=null,e())}else t&&(i.current=s(t,n)),e&&(r.current=s(e,n))},[t,e])}function s(t,e){if("function"!=typeof t)return t.current=e,()=>{t.current=null};{let i=t(e);return"function"==typeof i?i:()=>t(null)}}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},10518:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(40157).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},19827:(t,e,i)=>{i.d(e,{l:()=>n});let n=t=>t},25519:(t,e,i)=>{i.d(e,{n:()=>c});var n=i(12115),r=i(6101),s=i(63540),o=i(39033),a=i(95155),l="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",h={bubbles:!1,cancelable:!0},c=n.forwardRef((t,e)=>{let{loop:i=!1,trapped:c=!1,onMountAutoFocus:v,onUnmountAutoFocus:g,...y}=t,[x,w]=n.useState(null),b=(0,o.c)(v),P=(0,o.c)(g),T=n.useRef(null),S=(0,r.s)(e,t=>w(t)),A=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(c){let t=function(t){if(A.paused||!x)return;let e=t.target;x.contains(e)?T.current=e:f(T.current,{select:!0})},e=function(t){if(A.paused||!x)return;let e=t.relatedTarget;null!==e&&(x.contains(e)||f(T.current,{select:!0}))};document.addEventListener("focusin",t),document.addEventListener("focusout",e);let i=new MutationObserver(function(t){if(document.activeElement===document.body)for(let e of t)e.removedNodes.length>0&&f(x)});return x&&i.observe(x,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",t),document.removeEventListener("focusout",e),i.disconnect()}}},[c,x,A.paused]),n.useEffect(()=>{if(x){m.add(A);let t=document.activeElement;if(!x.contains(t)){let e=new CustomEvent(l,h);x.addEventListener(l,b),x.dispatchEvent(e),e.defaultPrevented||(function(t){let{select:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=document.activeElement;for(let n of t)if(f(n,{select:e}),document.activeElement!==i)return}(d(x).filter(t=>"A"!==t.tagName),{select:!0}),document.activeElement===t&&f(x))}return()=>{x.removeEventListener(l,b),setTimeout(()=>{let e=new CustomEvent(u,h);x.addEventListener(u,P),x.dispatchEvent(e),e.defaultPrevented||f(null!=t?t:document.body,{select:!0}),x.removeEventListener(u,P),m.remove(A)},0)}}},[x,b,P,A]);let E=n.useCallback(t=>{if(!i&&!c||A.paused)return;let e="Tab"===t.key&&!t.altKey&&!t.ctrlKey&&!t.metaKey,n=document.activeElement;if(e&&n){let e=t.currentTarget,[r,s]=function(t){let e=d(t);return[p(e,t),p(e.reverse(),t)]}(e);r&&s?t.shiftKey||n!==s?t.shiftKey&&n===r&&(t.preventDefault(),i&&f(s,{select:!0})):(t.preventDefault(),i&&f(r,{select:!0})):n===e&&t.preventDefault()}},[i,c,A.paused]);return(0,a.jsx)(s.sG.div,{tabIndex:-1,...y,ref:S,onKeyDown:E})});function d(t){let e=[],i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{let e="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||e?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)e.push(i.currentNode);return e}function p(t,e){for(let i of t)if(!function(t,e){let{upTo:i}=e;if("hidden"===getComputedStyle(t).visibility)return!0;for(;t&&(void 0===i||t!==i);){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(i,{upTo:e}))return i}function f(t){let{select:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t&&t.focus){var i;let n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&(i=t)instanceof HTMLInputElement&&"select"in i&&e&&t.select()}}c.displayName="FocusScope";var m=function(){let t=[];return{add(e){let i=t[0];e!==i&&(null==i||i.pause()),(t=v(t,e)).unshift(e)},remove(e){var i;null==(i=(t=v(t,e))[0])||i.resume()}}}();function v(t,e){let i=[...t],n=i.indexOf(e);return -1!==n&&i.splice(n,1),i}},32082:(t,e,i)=>{i.d(e,{xQ:()=>s});var n=i(12115),r=i(80845);function s(t=!0){let e=(0,n.useContext)(r.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:o,register:a}=e,l=(0,n.useId)();(0,n.useEffect)(()=>{t&&a(l)},[t]);let u=(0,n.useCallback)(()=>t&&o&&o(l),[l,o,t]);return!i&&o?[!1,u]:[!0]}}
1,34477:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{callServer:function(){return n.callServer},createServerReference:function(){return s},findSourceMapURL:function(){return r.findSourceMapURL}});let n=i(53806),r=i(31818),s=i(34979).createServerReference},38168:(t,e,i)=>{i.d(e,{Eq:()=>h});var n=function(t){return"undefined"==typeof document?null:(Array.isArray(t)?t[0]:t).ownerDocument.body},r=new WeakMap,s=new WeakMap,o={},a=0,l=function(t){return t&&(t.host||l(t.parentNode))},u=function(t,e,i,n){var u=(Array.isArray(t)?t:[t]).map(function(t){if(e.contains(t))return t;var i=l(t);return i&&e.contains(i)?i:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t});o[i]||(o[i]=new WeakMap);var h=o[i],c=[],d=new Set,p=new Set(u),f=function(t){!t||d.has(t)||(d.add(t),f(t.parentNode))};u.forEach(f);var m=function(t){!t||p.has(t)||Array.prototype.forEach.call(t.children,function(t){if(d.has(t))m(t);else try{var e=t.getAttribute(n),o=null!==e&&"false"!==e,a=(r.get(t)||0)+1,l=(h.get(t)||0)+1;r.set(t,a),h.set(t,l),c.push(t),1===a&&o&&s.set(t,!0),1===l&&t.setAttribute(i,"true"),o||t.setAttribute(n,"true")}catch(e){console.error("aria-hidden: cannot operate on ",t,e)}})};return m(e),d.clear(),a++,function(){c.forEach(function(t){var e=r.get(t)-1,o=h.get(t)-1;r.set(t,e),h.set(t,o),e||(s.has(t)||t.removeAttribute(n),s.delete(t)),o||t.removeAttribute(i)}),--a||(r=new WeakMap,r=new WeakMap,s=new WeakMap,o={})}},h=function(t,e,i){void 0===i&&(i="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),s=e||n(t);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),u(r,s,i,"aria-hidden")):function(){return null}}},41917:(t,e,i)=>{i.d(e,{p:()=>n});function n(t){let e;return()=>(void 0===e&&(e=t()),e)}},45818:(t,e,i)=>{i.d(e,{q:()=>n});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},46256:(t,e,i)=>{i.d(e,{P6:()=>o,vG:()=>c,tu:()=>u,KZ:()=>v,rU:()=>a,PT:()=>S,DW:()=>d,WH:()=>h,Mc:()=>E,yL:()=>g,TU:()=>function t(e,i){if(e)return"function"==typeof e&&f()?v(e,i):d(e)?y(e):Array.isArray(e)?e.map(e=>t(e,i)||x.easeOut):x[e]},YE:()=>l,c$:()=>L,KJ:()=>b,Wp:()=>j,nL:()=>f});var n=i(41917);let r=(0,n.p)(()=>void 0!==window.ScrollTimeline);class s{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>r()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class o extends s{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function a(t,e){return t?t[e]||t.default||t:void 0}let l=2e4;function u(t){let e=0,i=t.next(e);for(;!i.done&&e<l;)e+=50,i=t.next(e);return e>=l?1/0:e}function h(t){return"function"==typeof t}function c(t,e){t.timeline=e,t.onfinish=null}let d=t=>Array.isArray(t)&&"number"==typeof t[0],p={linearEasing:void 0},f=function(t,e){let i=(0,n.p)(t);return()=>{var t;return null!=(t=p[e])?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var m=i(45818);let v=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=t((0,m.q)(0,r-1,e))+", ";return`linear(${n.substring(0,n.length-2)})`};function g(t){return!!("function"==typeof t&&f()||!t||"string"==typeof t&&(t in x||f())||d(t)||Array.isArray(t)&&t.every(g))}let y=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,x={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:y([0,.65,.55,1]),circOut:y([.55,0,1,.45]),backIn:y([.31,.01,.66,-.59]),backOut:y([.33,1.53,.69,.99])},w={x:!1,y:!1};function b(t,e,i){var n;if(t instanceof Element)return[t];if("string"==typeof t){let r=document;e&&(r=e.current);let s=null!=(n=null==i?void 0:i[t])?n:r.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}function P(t,e){let i=b(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function T(t){return e=>{"touch"===e.pointerType||w.x||w.y||t(e)}}function S(t,e,i={}){let[n,r,s]=P(t,i),o=T(t=>{let{target:i}=t,n=e(t);if("function"!=typeof n||!i)return;let s=T(t=>{n(t),i.removeEventListener("pointerleave",s)});i.addEventListener("pointerleave",s,r)});return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}let A=(t,e)=>!!e&&(t===e||A(t,e.parentElement)),E=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,M=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),C=new WeakSet;function V(t){return e=>{"Enter"===e.key&&t(e)}}function R(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let D=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=V(()=>{if(C.has(i))return;R(i,"down");let t=V(()=>{R(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>R(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function k(t){return E(t)&&!(w.x||w.y)}function L(t,e,i={}){let[n,r,s]=P(t,i),o=t=>{let n=t.currentTarget;if(!k(t)||C.has(n))return;C.add(n);let s=e(t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),k(t)&&C.has(n)&&(C.delete(n),"function"==typeof s&&s(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||A(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{M.has(t.tagName)||-1!==t.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),t.addEventListener("focus",t=>D(t,r),r)}),s}i(47215),i(19827);function j(t){if("x"===t||"y"===t)if(w[t])return null;else return w[t]=!0,()=>{w[t]=!1};return w.x||w.y?null:(w.x=w.y=!0,()=>{w.x=w.y=!1})}},47215:(t,e,i)=>{i.d(e,{X:()=>r,f:()=>n});let n=t=>1e3*t,r=t=>t/1e3},51508:(t,e,i)=>{i.d(e,{Q:()=>n});let n=(0,i(12115).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},66634:(t,e,i)=>{i.d(e,{DX:()=>o});var n=i(12115);function r(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}var s=i(95155),o=function(t){let e=function(t){let e=n.forwardRef((t,e)=>{let{children:i,...s}=t;if(n.isValidElement(i)){var o;let t,a,l=(o=i,(a=(t=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?o.ref:(a=(t=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(t,e){let i={...e};for(let n in e){let r=t[n],s=e[n];/^on[A-Z]/.test(n)?r&&s?i[n]=(...t)=>{let e=s(...t);return r(...t),e}:r&&(i[n]=r):"style"===n?i[n]={...r,...s}:"className"===n&&(i[n]=[r,s].filter(Boolean).join(" "))}return{...t,...i}}(s,i.props);return i.type!==n.Fragment&&(u.ref=e?function(...t){return e=>{let i=!1,n=t.map(t=>{let n=r(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():r(t[e],null)}}}}(e,l):l),n.cloneElement(i,u)}return n.Children.count(i)>1?n.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}(t),i=n.forwardRef((t,i)=>{let{children:r,...o}=t,a=n.Children.toArray(r),u=a.find(l);if(u){let t=u.props.children,r=a.map(e=>e!==u?e:n.Children.count(t)>1?n.Children.only(null):n.isValidElement(t)?t.props.children:null);return(0,s.jsx)(e,{...o,ref:i,children:n.isValidElement(t)?n.cloneElement(t,void 0,r):null})}return(0,s.jsx)(e,{...o,ref:i,children:r})});return i.displayName=`${t}.Slot`,i}("Slot"),a=Symbol("radix.slottable");function l(t){return n.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===a}},68972:(t,e,i)=>{i.d(e,{B:()=>n});let n="undefined"!=typeof window},80845:(t,e,i)=>{i.d(e,{t:()=>n});let n=(0,i(12115).createContext)(null)},82885:(t,e,i)=>{i.d(e,{M:()=>r});var n=i(12115);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},90869:(t,e,i)=>{i.d(e,{L:()=>n});let n=(0,i(12115).createContext)({})},92293:(t,e,i)=>{i.d(e,{Oh:()=>s});var n=i(12115),r=0;function s(){n.useEffect(()=>{var t,e;let i=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(t=i[0])?t:o()),document.body.insertAdjacentElement("beforeend",null!=(e=i[1])?e:o()),r++,()=>{1===r&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),r--}},[])}function o(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}},93249:(t,e,i)=>{let n;function r(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}i.d(e,{P:()=>r5});let s=t=>Array.isArray(t);function o(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function a(t){return"string"==typeof t||Array.isArray(t)}function l(t){let e=[{},{}];
1return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function u(t,e,i,n){if("function"==typeof e){let[r,s]=l(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=l(n);e=e(void 0!==i?i:t.custom,r,s)}return e}function h(t,e,i){let n=t.getProps();return u(n,e,void 0!==i?i:n.custom,t)}let c=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d=["initial",...c];var p,f,m=i(46256);let v=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],g=new Set(v),y=new Set(["width","height","top","left","right","bottom",...v]),x=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),w=t=>s(t)?t[t.length-1]||0:t,b={skipAnimations:!1,useManualTiming:!1};var P=i(19827);let T=["read","resolveKeyframes","update","preRender","render","postRender"];function S(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=T.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,r=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,r=!1,o=!1)=>{let a=o&&n?e:i;return r&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(o=t,n){r=!0;return}n=!0,[e,i]=[i,e],e.forEach(a),e.clear(),n=!1,r&&(r=!1,l.process(t))}};return l}(s),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:c,postRender:d}=o,p=()=>{let s=b.useManualTiming?r.timestamp:performance.now();i=!1,r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1),r.timestamp=s,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),h.process(r),c.process(r),d.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(p))},f=()=>{i=!0,n=!0,r.isProcessing||t(p)};return{schedule:T.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,r=!1)=>(i||f(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<T.length;e++)o[T[e]].cancel(t)},state:r,steps:o}}let{schedule:A,cancel:E,state:M,steps:C}=S("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:P.l,!0);function V(){n=void 0}let R={now:()=>(void 0===n&&R.set(M.isProcessing||b.useManualTiming?M.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(V)}};function D(t,e){-1===t.indexOf(e)&&t.push(e)}function k(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class L{constructor(){this.subscriptions=[]}add(t){return D(this.subscriptions,t),()=>k(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let j=t=>!isNaN(parseFloat(t)),F={current:void 0};class B{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=R.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=R.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=j(this.current))}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 L);let i=this.events[t].add(e);return"change"===t?()=>{i(),A.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return F.current&&F.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=R.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function O(t,e){return new B(t,e)}let I=t=>!!(t&&t.getVelocity);function N(t,e){let i=t.getValue("willChange");if(I(i)&&i.add)return i.add(e)}let U=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),W="data-"+U("framerAppearId");var $=i(47215);let X={current:!1},Y=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;
1function H(t,e,i,n){if(t===e&&i===n)return P.l;let r=e=>(function(t,e,i,n,r){let s,o,a=0;do(s=Y(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:Y(r(t),e,n)}let K=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,z=t=>e=>1-t(1-e),q=H(.33,1.53,.69,.99),_=z(q),G=K(_),Z=t=>(t*=2)<1?.5*_(t):.5*(2-Math.pow(2,-10*(t-1))),Q=t=>1-Math.sin(Math.acos(t)),J=z(Q),tt=K(Q),te=t=>/^0[^.\s]+$/u.test(t),ti=(t,e,i)=>i>e?e:i<t?t:i,tn={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},tr={...tn,transform:t=>ti(0,1,t)},ts={...tn,default:1},to=t=>Math.round(1e5*t)/1e5,ta=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tl=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tu=(t,e)=>i=>!!("string"==typeof i&&tl.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),th=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(ta);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tc=t=>ti(0,255,t),td={...tn,transform:t=>Math.round(tc(t))},tp={test:tu("rgb","red"),parse:th("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+td.transform(t)+", "+td.transform(e)+", "+td.transform(i)+", "+to(tr.transform(n))+")"},tf={test:tu("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:tp.transform},tm=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tv=tm("deg"),tg=tm("%"),ty=tm("px"),tx=tm("vh"),tw=tm("vw"),tb={...tg,parse:t=>tg.parse(t)/100,transform:t=>tg.transform(100*t)},tP={test:tu("hsl","hue"),parse:th("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+tg.transform(to(e))+", "+tg.transform(to(i))+", "+to(tr.transform(n))+")"},tT={test:t=>tp.test(t)||tf.test(t)||tP.test(t),parse:t=>tp.test(t)?tp.parse(t):tP.test(t)?tP.parse(t):tf.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tp.transform(t):tP.transform(t)},tS=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tA="number",tE="c
1olor",tM=/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 tC(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(tM,t=>(tT.test(t)?(n.color.push(s),r.push(tE),i.push(tT.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(tA),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function tV(t){return tC(t).values}function tR(t){let{split:e,types:i}=tC(t),n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===tA?r+=to(t[s]):e===tE?r+=tT.transform(t[s]):r+=t[s]}return r}}let tD=t=>"number"==typeof t?0:t,tk={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(ta))?void 0:e.length)||0)+((null==(i=t.match(tS))?void 0:i.length)||0)>0},parse:tV,createTransformer:tR,getAnimatableNone:function(t){let e=tV(t);return tR(t)(e.map(tD))}},tL=new Set(["brightness","contrast","saturate","opacity"]);function tj(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(ta)||[];if(!n)return t;let r=i.replace(n,""),s=+!!tL.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let tF=/\b([a-z-]*)\(.*?\)/gu,tB={...tk,getAnimatableNone:t=>{let e=t.match(tF);return e?e.map(tj).join(" "):t}},tO={...tn,transform:Math.round},tI={borderWidth:ty,borderTopWidth:ty,borderRightWidth:ty,borderBottomWidth:ty,borderLeftWidth:ty,borderRadius:ty,radius:ty,borderTopLeftRadius:ty,borderTopRightRadius:ty,borderBottomRightRadius:ty,borderBottomLeftRadius:ty,width:ty,maxWidth:ty,height:ty,maxHeight:ty,top:ty,right:ty,bottom:ty,left:ty,padding:ty,paddingTop:ty,paddingRight:ty,paddingBottom:ty,paddingLeft:ty,margin:ty,marginTop:ty,marginRight:ty,marginBottom:ty,marginLeft:ty,backgroundPositionX:ty,backgroundPositionY:ty,rotate:tv,rotateX:tv,rotateY:tv,rotateZ:tv,scale:ts,scaleX:ts,scaleY:ts,scaleZ:ts,skew:tv,skewX:tv,skewY:tv,distance:ty,translateX:ty,translateY:ty,translateZ:ty,x:ty,y:ty,z:ty,perspective:ty,transformPerspective:ty,opacity:tr,originX:tb,originY:tb,originZ:ty,zIndex:tO,size:ty,fillOpacity:tr,strokeOpacity:tr,numOctaves:tO},tN={...tI,color:tT,backgroundColor:tT,outlineColor:tT,fill:tT,stroke:tT,borderColor:tT,borderTopColor:tT,borderRightColor:tT,borderBottomColor:tT,borderLeftColor:tT,filter:tB,WebkitFilter:tB},tU=t=>tN[t];function tW(t,e){let i=tU(t);return i!==tB&&(i=tk),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let t$=new Set(["auto","none","0"]),tX=t=>t===tn||t===ty,tY=(t,e)=>parseFloat(t.split(", ")[e]),tH=(t,e)=>(i,{transform:n})=>{if("none"===n||!n)return 0;let r=n.match(/^matrix3d\((.+)\)$/u);if(r)return tY(r[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?tY(e[1],t):0}},tK=new Set(["x","y","z"]),tz=v.filter(t=>!tK.has(t)),tq={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),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:tH(4,13),y:tH(5,14)};tq.translateX=tq.x,tq.translateY=tq.y;let t_=new Set,tG=!1,tZ=!1;function tQ(){if(tZ){let t=Array.from(t_).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return tz.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var n;null==(n=t.getValue(e))||n.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tZ=!1,tG=!1,t_.forEach(t=>t.complete()),t_.clear()}function tJ(){t_.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tZ=!0)})}class t0{constructor(t,e,i,n,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(t_.add(this),tG||(tG=!0,A.read(tJ),A.resolveKeyframes(tQ))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;for(let r=0;r<t.length;r++)if(null===t[r])if(0===r){let r=null==n?void 0:n.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}else t[r]=t[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),t_.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,t_.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let t1=P.l,t5=P.l,t2=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),t3=t=>e=>"string"==typeof e&&e.startsWith(t),t9=t3("--"),t8=t3("var(--"),t4=t=>!!t8(t)&&t6.test(t.split("/*")[0].trim()),t6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,t7=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,et=t=>e=>e.test(t),ee=[tn,ty,tg,tv,tw,tx,{test:t=>"auto"===t,parse:t=>t}],ei=t=>ee.find(et(t));class en extends t0{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&t4(n=n.trim())){let r=function t(e,i,n=1){t5(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,s]=function(t){let e=t7.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${null!=i?i:n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);
1if(o){let t=o.trim();return t2(t)?parseFloat(t):t}return t4(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!y.has(i)||2!==t.length)return;let[n,r]=t,s=ei(n),o=ei(r);if(s!==o)if(tX(s)&&tX(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||te(n))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!t$.has(e)&&tC(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tW(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tq[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(i);r&&r.jump(this.measuredOrigin,!1);let s=n.length-1,o=n[s];n[s]=tq[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let er=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tk.test(t)||"0"===t)&&!t.startsWith("url(")),es=t=>null!==t;function eo(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(es),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return s&&void 0!==n?n:r[s]}class ea{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=R.now(),this.options={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(tJ(),tQ()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=R.now(),this.hasAttemptedResolve=!0;let{name:i,type:n,velocity:r,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=er(r,e),a=er(s,e);return t1(o===a,`You are trying to animate ${e} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||(0,m.WH)(i))&&n)}(t,i,n,r))if(X.current||!s){a&&a(eo(t,this.options,e)),o&&o(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}let el=(t,e,i)=>t+(e-t)*i;function eu(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function eh(t,e){return i=>i>0?e:t}let ec=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},ed=[tf,tp,tP],ep=t=>ed.find(e=>e.test(t));function ef(t){let e=ep(t);if(t1(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tP&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=eu(a,n,t+1/3),s=eu(a,n,t),o=eu(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let em=(t,e)=>{let i=ef(t),n=ef(e);if(!i||!n)return eh(t,e);let r={...i};return t=>(r.red=ec(i.red,n.red,t),r.green=ec(i.green,n.green,t),r.blue=ec(i.blue,n.blue,t),r.alpha=el(i.alpha,n.alpha,t),tp.transform(r))},ev=(t,e)=>i=>e(t(i)),eg=(...t)=>t.reduce(ev),ey=new Set(["none","hidden"]);function ex(t,e){return i=>el(t,e,i)}function ew(t){return"number"==typeof t?ex:"string"==typeof t?t4(t)?eh:tT.test(t)?em:eT:Array.isArray(t)?eb:"object"==typeof t?tT.test(t)?em:eP:eh}function eb(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>ew(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function eP(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=ew(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let eT=(t,e)=>{let i=tk.createTransformer(e),n=tC(t),r=tC(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?ey.has(t)&&!r.values.length||ey.has(e)&&!n.values.length?function(t,e){return ey.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):eg(eb(function(t,e){var i;let n=[],r={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let o=e.types[s],a=t.indexes[o][r[o]],l=null!=(i=t.values[a])?i:0;n[s]=l,r[o]++}return n}(n,r),r.values),i):(t1(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),eh(t,e))};function eS(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?el(t,e,i):ew(t)(t,e)}function eA(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}let eE={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function eM(t,e){return t*Math.sqrt(1-e*e)}let eC=["duration","bounce"],eV=["stiffness","damping","mass"];function eR(t,e){return e.some(e=>void 0!==t[e])}function eD(t=eE.visualDuration,e=eE.bounce){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:s}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=function(t){let e={velocity:eE.velocity,stiffness:eE.stiffness,damping:eE.damping,mass:eE.mass,isResolvedFromDuration:!1,...t};if(!eR(t,eV)&&eR(t,eC))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*ti(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:eE.mass,stiffness:n,damping:r}}else{let i=function({duration:t=eE.duration,bounce:e=eE.bounce,velocity:i=eE.velocity,mass:n=eE.mass}){let r,s;t1(t<=(0,$.f)(eE.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=ti(eE.minDamping,eE.maxDamping,o),t=ti(eE.minDuration,eE.maxDuration,(0,$.X)(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/eM(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=eM(Math.pow(e,2),o);return(n*i+i-s)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));
1let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=(0,$.f)(t),isNaN(a))return{stiffness:eE.stiffness,damping:eE.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:eE.mass}).isResolvedFromDuration=!0}return e}({...n,velocity:-(0,$.X)(n.velocity||0)}),v=p||0,g=h/(2*Math.sqrt(u*c)),y=a-o,x=(0,$.X)(Math.sqrt(u/c)),w=5>Math.abs(y);if(r||(r=w?eE.restSpeed.granular:eE.restSpeed.default),s||(s=w?eE.restDelta.granular:eE.restDelta.default),g<1){let t=eM(x,g);i=e=>a-Math.exp(-g*x*e)*((v+g*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-x*t)*(y+(v+x*y)*t);else{let t=x*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*x*e),n=Math.min(t*e,300);return a-i*((v+g*x*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}let b={calculatedDuration:f&&d||null,next:t=>{let e=i(t);if(f)l.done=t>=d;else{let n=0;g<1&&(n=0===t?(0,$.f)(v):eA(i,t,e));let o=Math.abs(a-e)<=s;l.done=Math.abs(n)<=r&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min((0,m.tu)(b),m.YE),e=(0,m.KZ)(e=>b.next(t*e).value,t,30);return t+"ms "+e}};return b}function ek({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],f={done:!1,value:p},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,v=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l,g=i*e,y=p+g,x=void 0===o?y:o(y);x!==y&&(g=x-p);let w=t=>-g*Math.exp(-t/n),b=t=>x+w(t),P=t=>{let e=w(t),i=b(t);f.done=Math.abs(e)<=u,f.value=f.done?x:i},T=t=>{m(f.value)&&(c=t,d=eD({keyframes:[f.value,v(f.value)],velocity:eA(b,t,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,P(t),T(t)),void 0!==c&&t>=c)?d.next(t-c):(e||P(t),f)}}}let eL=H(.42,0,1,1),ej=H(0,0,.58,1),eF=H(.42,0,.58,1),eB=t=>Array.isArray(t)&&"number"!=typeof t[0],eO={linear:P.l,easeIn:eL,easeInOut:eF,easeOut:ej,circIn:Q,circInOut:tt,circOut:J,backIn:_,backInOut:G,backOut:q,anticipate:Z},eI=t=>{if((0,m.DW)(t)){t5(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,n,r]=t;return H(e,i,n,r)}return"string"==typeof t?(t5(void 0!==eO[t],`Invalid easing type '${t}'`),eO[t]):t};var eN=i(45818);function eU({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let s=eB(n)?n.map(eI):eI(n),o={done:!1,value:e[0]},a=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(t5(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],r=i||eS,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=eg(Array.isArray(e)?e[i]||P.l:e,s)),n.push(s)}return n}(e,n,r),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=(0,eN.q)(t[n],t[n+1],i);return a[n](r)};return i?e=>u(ti(t[0],t[s-1],e)):u}((r=i&&i.length===e.length?i:function(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=(0,eN.q)(0,e,n);t.push(el(i,1,r))}}(e,t.length-1),e}(e),r.map(e=>e*t)),e,{ease:Array.isArray(s)?s:e.map(()=>s||eF).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let eW=t=>{let e=({timestamp:e})=>t(e);return{start:()=>A.update(e,!0),stop:()=>E(e),now:()=>M.isProcessing?M.timestamp:R.now()}},e$={decay:ek,inertia:ek,tween:eU,keyframes:eU,spring:eD},eX=t=>t/100;class eY extends ea{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:n,keyframes:r}=this.options,s=(null==n?void 0:n.KeyframeResolver)||t0;this.resolver=new s(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:
1o,velocity:a=0}=this.options,l=(0,m.WH)(n)?n:e$[n]||eU;l!==eU&&"number"!=typeof t[0]&&(e=eg(eX,eS(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=(0,m.tu)(u));let{calculatedDuration:h}=u,c=h+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(r+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:r,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return r.next(0);let{delay:c,repeat:d,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-c*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=r;if(d){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,f&&(i-=f/h)):"mirror"===p&&(x=s)),y=ti(0,1,i)*h}let w=g?{done:!1,value:a[0]}:x.next(y);o&&(w.value=o(w.value));let{done:b}=w;g||null===l||(b=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return P&&void 0!==n&&(w.value=eo(a,this.options,n)),m&&m(w.value),P&&this.finish(),w}get duration(){let{resolved:t}=this;return t?(0,$.X)(t.calculatedDuration):0}get time(){return(0,$.X)(this.currentTime)}set time(t){t=(0,$.f)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,$.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=eW,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(t=this.currentTime)?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let eH=new Set(["opacity","clipPath","filter","transform"]),eK=(0,i(41917).p)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ez={anticipate:Z,backInOut:G,circInOut:tt};class eq extends ea{constructor(t){super(t);let{name:e,motionValue:i,element:n,keyframes:r}=this.options;this.resolver=new en(r,(t,e)=>this.onKeyframesResolved(t,e),e,i,n),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:n=300,times:r,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof s&&(0,m.nL)()&&s in ez&&(s=ez[s]),i=this.options,
1(0,m.WH)(i.type)||"spring"===i.type||!(0,m.yL)(i.ease)){let{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,h=function(t,e){let i=new eY({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},r=[],s=0;for(;!n.done&&s<2e4;)r.push((n=i.sample(s)).value),s+=10;return{times:void 0,keyframes:r,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),n=h.duration,r=h.times,s=h.ease,o="keyframes"}let h=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=(0,m.TU)(a,r);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:n,duration:r,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(a.owner.current,l,t,{...this.options,duration:n,times:r,ease:s});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?((0,m.vG)(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;a.set(eo(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:n,times:r,type:o,ease:s,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return(0,$.X)(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(0,$.X)(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=(0,$.f)(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return P.l;let{animation:i}=e;(0,m.vG)(i,t)}else this.pendingTimeline=t;return P.l}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:n,type:r,ease:s,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new eY({...u,keyframes:i,duration:n,type:r,ease:s,times:o,isGenerator:!0}),c=(0,$.f)(this.time);t.setWithVelocity(h.sample(c-10).value,h.sample(c).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return eK()&&i&&eH.has(i)&&!a&&!l&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}}let e_={type:"spring",stiffness:500,damping:25,restSpeed:10},eG=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),eZ={type:"keyframes",duration:.8},eQ={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eJ=(t,{keyframes:e})=>e.length>2?eZ:g.has(t)?t.startsWith("scale")?eG(e[1]):e_:eQ,e0=(t,e,i,n={},r,s)=>o=>{let a=(0,m.rU)(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=(0,$.f)(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(h={...h,...eJ(t,h)}),h.duration&&(h.duration=(0,$.f)(h.duration)),h.repeatDelay&&(h.repeatDelay=(0,$.f)(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0===h.delay&&(c=!0)),(X.current||b.skipAnimations)&&(c=!0,h.duration=0,h.delay=0),c&&!s&&void 0!==e.get()){let t=eo(h.
1keyframes,a);if(void 0!==t)return A.update(()=>{h.onUpdate(t),h.onComplete()}),new m.P6([])}return!s&&eq.supports(h)?new eq(h):new eY(h)};function e1(t,e,{delay:i=0,transitionOverride:n,type:r}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;n&&(o=n);let u=[],c=r&&t.animationState&&t.animationState.getState()[r];for(let e in l){let n=t.getValue(e,null!=(s=t.latestValues[e])?s:null),r=l[e];if(void 0===r||c&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(c,e))continue;let a={delay:i,...(0,m.rU)(o||{},e)},h=!1;if(window.MotionHandoffAnimation){let i=t.props[W];if(i){let t=window.MotionHandoffAnimation(i,e,A);null!==t&&(a.startTime=t,h=!0)}}N(t,e),n.start(e0(e,n,r,t.shouldReduceMotion&&y.has(e)?{type:!1}:a,t,h));let d=n.animation;d&&u.push(d)}return a&&Promise.all(u).then(()=>{A.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=h(t,e)||{};for(let e in r={...r,...i}){let i=w(r[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,O(i))}}(t,a)})}),u}function e5(t,e,i={}){var n;let r=h(t,e,"exit"===i.type?null==(n=t.presenceContext)?void 0:n.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(s=i.transitionOverride);let o=r?()=>Promise.all(e1(t,r,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,r=1,s){let o=[],a=(t.variantChildren.size-1)*n,l=1===r?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(e2).forEach((t,n)=>{t.notify("AnimationStart",e),o.push(e5(t,e,{...s,delay:i+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,r+n,o,a,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function e2(t,e){return t.sortNodePosition(e)}let e3=d.length,e9=[...c].reverse(),e8=c.length;function e4(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function e6(){return{animate:e4(!0),whileInView:e4(),whileHover:e4(),whileTap:e4(),whileDrag:e4(),whileFocus:e4(),exit:e4()}}class e7{constructor(t){this.isMounted=!1,this.node=t}update(){}}class it extends e7{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>
1e5(t,e,i)));else if("string"==typeof e)n=e5(t,e,i);else{let r="function"==typeof e?h(t,e,i.custom):e;n=Promise.all(e1(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=e6(),n=!0,l=e=>(i,n)=>{var r;let s=h(t,n,"exit"===e?null==(r=t.presenceContext)?void 0:r.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function u(u){let{props:h}=t,c=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<e3;t++){let n=d[t],r=e.props[n];(a(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},p=[],f=new Set,m={},v=1/0;for(let e=0;e<e8;e++){var g,y;let d=e9[e],x=i[d],w=void 0!==h[d]?h[d]:c[d],b=a(w),P=d===u?x.isActive:null;!1===P&&(v=e);let T=w===c[d]&&w!==h[d]&&b;if(T&&n&&t.manuallyAnimateOnMount&&(T=!1),x.protectedKeys={...m},!x.isActive&&null===P||!w&&!x.prevProp||r(w)||"boolean"==typeof w)continue;let S=(g=x.prevProp,"string"==typeof(y=w)?y!==g:!!Array.isArray(y)&&!o(y,g)),A=S||d===u&&x.isActive&&!T&&b||e>v&&b,E=!1,M=Array.isArray(w)?w:[w],C=M.reduce(l(d),{});!1===P&&(C={});let{prevResolvedValues:V={}}=x,R={...V,...C},D=e=>{A=!0,f.has(e)&&(E=!0,f.delete(e)),x.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in R){let e=C[t],i=V[t];if(m.hasOwnProperty(t))continue;let n=!1;(s(e)&&s(i)?o(e,i):e===i)?void 0!==e&&f.has(t)?D(t):x.protectedKeys[t]=!0:null!=e?D(t):f.add(t)}x.prevProp=w,x.prevResolvedValues=C,x.isActive&&(m={...m,...C}),n&&t.blockInitialAnimation&&(A=!1);let k=!(T&&S)||E;A&&k&&p.push(...M.map(t=>({animation:t,options:{type:d}})))}if(f.size){let e={};f.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=null!=n?n:null}),p.push({animation:e})}let x=!!p.length;return n&&(!1===h.initial||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(x=!1),n=!1,x?e(p):Promise.resolve()}return{animateChanges:u,setActive:function(e,n){var r;if(i[e].isActive===n)return Promise.resolve();null==(r=t.variantChildren)||r.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,n)}),i[e].isActive=n;let s=u(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=e6(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();r(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}let ie=0;class ii extends e7{constructor(){super(...arguments),this.id=ie++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}function ir(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}function is(t){return{point:{x:t.pageX,y:t.pageY}}}let io=t=>e=>(0,m.Mc)(e)&&t(e,is(e));function ia(t,e,i,n){return ir(t,e,io(i),n)}let il=(t,e)=>Math.abs(t-e);class iu{constructor(t,e,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=id(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(il(t.x,e.x)**2+il(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=M;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=ih(e,this.transformPagePoint),A.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=id("pointercancel"===t.type?this.lastMoveEventInfo:ih(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!(0,m.Mc)(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.contextWindow=n||window;let s=ih(is(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=M;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,id(s,this.history)),this.removeListeners=eg(ia(this.contextWindow,"pointermove",this.handlePointerMove),ia(this.contextWindow,"pointerup",this.handlePointerUp),ia(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),E(this.updatePoint)}}function ih(t,e){return e?{point:e(t.point)}:t}function ic(t,e){return{x:t.x-e.x,y:t.y-e.y}}function id({point:t},e){return{point:t,delta:ic(t,ip(e)),offset:ic(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=ip(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>(0,$.f)(.1)));)i--;if(!n)return{x:0,y:0};let s=(0,$.X)(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
1;return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function ip(t){return t[t.length-1]}function im(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function iv(t){return t.max-t.min}function ig(t,e,i,n=.5){t.origin=n,t.originPoint=el(e.min,e.max,t.origin),t.scale=iv(i)/iv(e),t.translate=el(i.min,i.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 iy(t,e,i,n){ig(t.x,e.x,i.x,n?n.originX:void 0),ig(t.y,e.y,i.y,n?n.originY:void 0)}function ix(t,e,i){t.min=i.min+e.min,t.max=t.min+iv(e)}function iw(t,e,i){t.min=e.min-i.min,t.max=t.min+iv(e)}function ib(t,e,i){iw(t.x,e.x,i.x),iw(t.y,e.y,i.y)}function iP(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function iT(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function iS(t,e,i){return{min:iA(t,e),max:iA(t,i)}}function iA(t,e){return"number"==typeof t?t:t[e]||0}let iE=()=>({translate:0,scale:1,origin:0,originPoint:0}),iM=()=>({x:iE(),y:iE()}),iC=()=>({min:0,max:0}),iV=()=>({x:iC(),y:iC()});function iR(t){return[t("x"),t("y")]}function iD({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function ik(t){return void 0===t||1===t}function iL({scale:t,scaleX:e,scaleY:i}){return!ik(t)||!ik(e)||!ik(i)}function ij(t){return iL(t)||iF(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iF(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function iB(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function iO(t,e=0,i=1,n,r){t.min=iB(t.min,e,i,n,r),t.max=iB(t.max,e,i,n,r)}function iI(t,{x:e,y:i}){iO(t.x,e.translate,e.scale,e.originPoint),iO(t.y,i.translate,i.scale,i.originPoint)}function iN(t,e){t.min=t.min+e,t.max=t.max+e}function iU(t,e,i,n,r=.5){let s=el(t.min,t.max,r);iO(t,e,i,s,n)}function iW(t,e){iU(t.x,e.x,e.scaleX,e.scale,e.originX),iU(t.y,e.y,e.scaleY,e.scale,e.originY)}function i$(t,e){return iD(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let iX=({current:t})=>t?t.ownerDocument.defaultView:null,iY=new WeakMap;class iH{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iV(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new iu(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(is(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,m.Wp)(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iR(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tg.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=iv(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&A.postRender(()=>r(t,e)),N(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>iR(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:iX(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:r}=this.getProps();r&&A.postRender(()=>r(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!iK(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?el(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?el(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,r=this.constraints;e&&im(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:iP(t.x,i,r),y:iP(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iS(t,"left","right"),y:iS(t,"top","bottom")}}(i),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&iR(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!im(e))return!1;let n=e.current;t5(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;
1let s=function(t,e,i){let n=i$(t,i),{scroll:r}=e;return r&&(iN(n.x,r.offset.x),iN(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:iT(t.x,s.x),y:iT(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=iD(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iR(o=>{if(!iK(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return N(this.visualElement,t),i.start(e0(t,i,0,e,this.visualElement,!1))}stopAnimation(){iR(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iR(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iR(e=>{let{drag:i}=this.getProps();if(!iK(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-el(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!im(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};iR(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=iv(t),r=iv(e);return r>n?i=(0,eN.q)(e.min,e.max-n,t.min):n>r&&(i=(0,eN.q)(t.min,t.max-r,e.min)),ti(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iR(e=>{if(!iK(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(el(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;iY.set(this.visualElement,this);let t=ia(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();im(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),A.read(e);let r=ir(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iR(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function iK(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class iz extends e7{constructor(t){super(t),this.removeGroupControls=P.l,this.removeListeners=P.l,this.controls=new iH(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||P.l}unmount(){this.removeGroupControls(),this.removeListeners()}}let iq=t=>(e,i)=>{t&&A.postRender(()=>t(e,i))};class i_ extends e7{constructor(){super(...arguments),this.removePointerDownListener=P.l}onPointerDown(t){this.session=new iu(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iX(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:iq(t),onStart:iq(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&A.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=ia(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var iG=i(95155),iZ=i(12115),iQ=i(32082),iJ=i(90869);let i0=(0,iZ.createContext)({}),i1={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function i5(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let i2={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!ty.test(t))return t;else t=parseFloat(t);let i=i5(t,e.target.x),n=i5(t,e.target.y);return`${i}% ${n}%`}},i3={},{schedule:i9,cancel:i8}=S(queueMicrotask,!1);class i4 extends iZ.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;Object.assign(i3,i7),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),i1.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,n||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||A.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),i9.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function i6(t){let[e,i]=(0,iQ.xQ)(),n=(0,iZ.useContext)(iJ.L);return(0,iG.jsx)(i4,{...t,layoutGroup:n,switchLayoutGroup:(0,iZ.useContext)(i0),isPresent:e,safeToRemove:i})}
1let i7={borderRadius:{...i2,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:i2,borderTopRightRadius:i2,borderBottomLeftRadius:i2,borderBottomRightRadius:i2,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tk.parse(t);if(n.length>5)return t;let r=tk.createTransformer(t),s=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=el(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}},nt=(t,e)=>t.depth-e.depth;class ne{constructor(){this.children=[],this.isDirty=!1}add(t){D(this.children,t),this.isDirty=!0}remove(t){k(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nt),this.isDirty=!1,this.children.forEach(t)}}function ni(t){let e=I(t)?t.get():t;return x(e)?e.toValue():e}let nn=["TopLeft","TopRight","BottomLeft","BottomRight"],nr=nn.length,ns=t=>"string"==typeof t?parseFloat(t):t,no=t=>"number"==typeof t||ty.test(t);function na(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nl=nh(0,.5,J),nu=nh(.5,.95,P.l);function nh(t,e,i){return n=>n<t?0:n>e?1:i((0,eN.q)(t,e,n))}function nc(t,e){t.min=e.min,t.max=e.max}function nd(t,e){nc(t.x,e.x),nc(t.y,e.y)}function np(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nf(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function nm(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(tg.test(e)&&(e=parseFloat(e),e=el(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=el(s.min,s.max,n);t===s&&(a-=e),t.min=nf(t.min,e,i,a,r),t.max=nf(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let nv=["x","scaleX","originX"],ng=["y","scaleY","originY"];function ny(t,e,i,n){nm(t.x,e,nv,i?i.x:void 0,n?n.x:void 0),nm(t.y,e,ng,i?i.y:void 0,n?n.y:void 0)}function nx(t){return 0===t.translate&&1===t.scale}function nw(t){return nx(t.x)&&nx(t.y)}function nb(t,e){return t.min===e.min&&t.max===e.max}function nP(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nT(t,e){return nP(t.x,e.x)&&nP(t.y,e.y)}function nS(t){return iv(t.x)/iv(t.y)}function nA(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nE{constructor(){this.members=[]}add(t){D(this.members,t),t.scheduleRender()}remove(t){if(k(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nM={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},nC="undefined"!=typeof window&&void 0!==window.MotionDebug,nV=["","X","Y","Z"],nR={visibility:"hidden"},nD=0;function nk(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function nL({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=null==e?void 0:e()){this.id=nD++,this.animationId=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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,nC&&(nM.totalNodes=nM.resolvedTargetDeltas=nM.recalculatedProjection=0),this.nodes.forEac
1h(nB),this.nodes.forEach(nX),this.nodes.forEach(nY),this.nodes.forEach(nO),nC&&window.MotionDebug.record(nM)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new ne)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:n,layout:r,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(r||n)&&(this.isLayoutDirty=!0),t){let i,n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=R.now(),n=({timestamp:r})=>{let s=r-i;s>=250&&(E(n),t(s-e))};return A.read(n,!0),()=>E(n)}(n,250),i1.hasAnimatedSinceResize&&(i1.hasAnimatedSinceResize=!1,this.nodes.forEach(n$))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&s&&(n||r)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||nG,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!nT(this.targetLayout,n)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...(0,m.rU)(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||n$(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,E(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(nH),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[W];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",A,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
1h(nN);return}this.isUpdating||this.nodes.forEach(nU),this.isUpdating=!1,this.nodes.forEach(nW),this.nodes.forEach(nj),this.nodes.forEach(nF),this.clearAllSnapshots();let t=R.now();M.delta=ti(0,1e3/60,t-M.timestamp),M.timestamp=t,M.isProcessing=!0,C.update.process(M),C.preRender.process(M),C.render.process(M),M.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,i9.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nI),this.sharedNodes.forEach(nK)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,A.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){A.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iV(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nw(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&(e||ij(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),nJ((e=n).x),nJ(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return iV();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(n1))){let{scroll:t}=this.root;t&&(iN(i.x,t.offset.x),iN(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=iV();if(nd(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&nd(i,t),iN(i.x,r.offset.x),iN(i.y,r.offset.y))}return i}applyTransform(t,e=!1){let i=iV();nd(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&iW(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),ij(n.latestValues)&&iW(i,n.latestValues)}return ij(this.latestValues)&&iW(i,this.latestValues),i}removeTransform(t){let e=iV();nd(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!ij(i.latestValues))continue;iL(i.latestValues)&&i.updateSnapshot();let n=iV();nd(n,i.measurePageBox()),ny(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return ij(this.latestValues)&&ny(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==M.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,n,r;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
1haredProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=M.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iV(),this.relativeTargetOrigin=iV(),ib(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),nd(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=iV(),this.targetWithTransforms=iV()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,n=this.relativeTarget,r=this.relativeParent.target,ix(i.x,n.x,r.x),ix(i.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nd(this.target,this.layout.layoutBox),iI(this.target,this.targetDelta)):nd(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iV(),this.relativeTargetOrigin=iV(),ib(this.relativeTargetOrigin,this.target,t.target),nd(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nC&&nM.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||iL(this.parent.latestValues)||iF(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(n=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===M.timestamp&&(n=!1),n)return;let{layout:r,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||s))return;nd(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let r,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&iW(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,iI(t,s)),n&&ij(r.latestValues)&&iW(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=iV());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(np(this.prevProjectionDelta.x,this.projectionDelta.x),np(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iy(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&nA(this.projectionDelta.x,this.prevProjectionDelta.x)&&nA(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),nC&&nM.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iM(),this.projectionDelta=iM(),this.projectionDeltaWithTransform=iM()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=iM();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iV(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&
1!0===this.options.crossfade&&!this.path.some(n_));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(nz(o.x,t.x,n),nz(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f,m,v;ib(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=a,v=n,nq(p.x,f.x,m.x,v),nq(p.y,f.y,m.y,v),i&&(u=this.relativeTarget,d=i,nb(u.x,d.x)&&nb(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=iV()),nd(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=el(0,void 0!==i.opacity?i.opacity:1,nl(n)),t.opacityExit=el(void 0!==e.opacity?e.opacity:1,0,nu(n))):s&&(t.opacity=el(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,n));for(let r=0;r<nr;r++){let s=`border${nn[r]}Radius`,o=na(e,s),a=na(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||no(o)===no(a)?(t[s]=Math.max(el(ns(o),ns(a),n),0),(tg.test(a)||tg.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=el(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(E(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=A.update(()=>{i1.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,i){let n=I(0)?0:O(t);return n.start(e0("",n,1e3,i)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},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);let 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(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&n0(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||iV();let e=iv(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=iv(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nd(e,i),iW(e,r),iy(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nE),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&nk("z",t,n,this.animationValues);for(let e=0;e<nV.length;e++)nk(`rotate${nV[e]}`,t,n,this.animationValues),nk(`skew${nV[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nR;let n={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=ni(null==t?void 0:t.pointerEvents)||"",n.transform=r?r(this.latestValues,""):"none",n;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ni(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!ij(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;
1this.applyTransformsToTarget(),n.transform=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),r&&(n.transform=r(o,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?n.opacity=s===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:n.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,i3){if(void 0===o[t])continue;let{correct:e,applyTo:i}=i3[t],r="none"===n.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)n[i[e]]=r}else n[t]=r}return this.options.layoutId&&(n.pointerEvents=s===this?ni(null==t?void 0:t.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(nN),this.root.sharedNodes.clear()}}}function nj(t){t.updateLayout()}function nF(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:r}=t.options,s=i.source!==t.layout.source;"size"===r?iR(t=>{let n=s?i.measuredBox[t]:i.layoutBox[t],r=iv(n);n.min=e[t].min,n.max=n.min+r}):n0(r,i.layoutBox,e)&&iR(n=>{let r=s?i.measuredBox[n]:i.layoutBox[n],o=iv(e[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=iM();iy(o,e,i.layoutBox);let a=iM();s?iy(a,t.applyTransform(n,!0),i.measuredBox):iy(a,e,i.layoutBox);let l=!nw(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=iV();ib(o,i.layoutBox,r.layoutBox);let a=iV();ib(a,e,s.layoutBox),nT(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function nB(t){nC&&nM.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function nO(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nI(t){t.clearSnapshot()}function nN(t){t.clearMeasurements()}function nU(t){t.isLayoutDirty=!1}function nW(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function n$(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function nX(t){t.resolveTargetDelta()}function nY(t){t.calcProjection()}function nH(t){t.resetSkewAndRotation()}function nK(t){t.removeLeadSnapshot()}function nz(t,e,i){t.translate=el(e.translate,0,i),t.scale=el(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function nq(t,e,i,n){t.min=el(e.min,i.min,n),t.max=el(e.max,i.max,n)}function n_(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let nG={duration:.45,ease:[.4,0,.1,1]},nZ=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),nQ=nZ("applewebkit/")&&!nZ("chrome/")?Math.round:P.l;function nJ(t){t.min=nQ(t.min),t.max=nQ(t.max)}function n0(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nS(e)-nS(i)))}function n1(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let n5=nL({attachResizeListener:(t,e)=>ir(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),n2={current:void 0},n3=nL({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!n2.current){let t=new n5({});t.mount(window),t.setOptions({layoutScroll:!0}),n2.current=t}return n2.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function n9(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&A.postRender(()=>r(e,is(e)))}class n8 extends e7{mount(){let{current:t}=this.node;t&&(this.unmount=(0,m.PT)(t,t=>(n9(this.node,t,"Start"),t=>n9(this.node,t,"End"))))}unmount(){}}class n4 extends e7{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=eg(ir(this.node.current,"focus",()=>this.onFocus()),ir(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function n6(t,e,i){let{props:n}=t;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&A.postRender(()=>r(e,is(e)))}class n7 extends e7{mount(){let{current:t}=this.node;t&&(this.unmount=(0,m.c$)(t,t=>(n6(this.node,t,"Start"),(t,{success:e})=>n6(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let rt=new WeakMap,re=new WeakMap,ri=t=>{let e=rt.get(t.target);e&&e(t)}
1,rn=t=>{t.forEach(ri)},rr={some:0,all:1};class rs extends e7{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:rr[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;re.has(i)||re.set(i,{});let n=re.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(rn,{root:t,...e})),n[r]}(e);return rt.set(t,i),n.observe(t),()=>{rt.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let ro=(0,iZ.createContext)({strict:!1});var ra=i(51508);let rl=(0,iZ.createContext)({});function ru(t){return r(t.animate)||d.some(e=>a(t[e]))}function rh(t){return!!(ru(t)||t.variants)}function rc(t){return Array.isArray(t)?t.join(" "):t}var rd=i(68972);let rp={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"]},rf={};for(let t in rp)rf[t]={isEnabled:e=>rp[t].some(t=>!!e[t])};let rm=Symbol.for("motionComponentSymbol");var rv=i(80845),rg=i(97494);let ry=["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 rx(t){if("string"!=typeof t||t.includes("-"));else if(ry.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var rw=i(82885);let rb=t=>(e,i)=>{let n=(0,iZ.useContext)(rl),s=(0,iZ.useContext)(rv.t),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},n,s,o){let a={latestValues:function(t,e,i,n){let s={},o=n(t,{});for(let t in o)s[t]=ni(o[t]);let{initial:a,animate:l}=t,h=ru(t),c=rh(t);e&&c&&!h&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let d=!!i&&!1===i.initial,p=(d=d||!1===a)?l:a;if(p&&"boolean"!=typeof p&&!r(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let n=u(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=d?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(n,s,o,t),renderState:e()};return i&&(a.onMount=t=>i({props:n,current:t,...a}),a.onUpdate=t=>i(t)),a})(t,e,n,s);return i?o():(0,rw.M)(o)},rP=(t,e)=>e&&"number"==typeof t?e.transform(t):t,rT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rS=v.length;function rA(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(g.has(t)){o=!0;continue}if(t9(t)){r[t]=i;continue}{let e=rP(i,tI[t]);t.startsWith("origin")?(a=!0,s[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s<rS;s++){let o=v[s],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||i){let t=rP(a,tI[o]);if(!l){r=!1;let e=rT[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin=`${t} ${e} ${i}`}}let rE={offset:"stroke-dashoffset",array:"stroke-dasharray"},rM={offset:"strokeDashoffset",array:"strokeDasharray"};function rC(t,e,i){return"string"==typeof t?t:ty.transform(e+i*t)}function rV(t,{attrX:e,attrY:i,attrScale:n,originX:r,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u}
1,h,c){if(rA(t,u,c),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:p,dimensions:f}=t;d.transform&&(f&&(p.transform=d.transform),delete d.transform),f&&(void 0!==r||void 0!==s||p.transform)&&(p.transformOrigin=function(t,e,i){let n=rC(e,t.x,t.width),r=rC(i,t.y,t.height);return`${n} ${r}`}(f,void 0!==r?r:.5,void 0!==s?s:.5)),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==o&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?rE:rM;t[s.offset]=ty.transform(-n);let o=ty.transform(e),a=ty.transform(i);t[s.array]=`${o} ${a}`}(d,o,a,l,!1)}let rR=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),rD=()=>({...rR(),attrs:{}}),rk=t=>"string"==typeof t&&"svg"===t.toLowerCase();function rL(t,{style:e,vars:i},n,r){for(let s in Object.assign(t.style,e,r&&r.getProjectionStyles(n)),i)t.style.setProperty(s,i[s])}let rj=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"]);function rF(t,e,i,n){for(let i in rL(t,e,void 0,n),e.attrs)t.setAttribute(rj.has(i)?i:U(i),e.attrs[i])}function rB(t,{layout:e,layoutId:i}){return g.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!i3[t]||"opacity"===t)}function rO(t,e,i){var n;let{style:r}=t,s={};for(let o in r)(I(r[o])||e.style&&I(e.style[o])||rB(o,t)||(null==(n=null==i?void 0:i.getValue(o))?void 0:n.liveStyle)!==void 0)&&(s[o]=r[o]);return s}function rI(t,e,i){let n=rO(t,e,i);for(let i in t)(I(t[i])||I(e[i]))&&(n[-1!==v.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}let rN=["x","y","width","height","cx","cy","r"],rU={useVisualState:rb({scrapeMotionValuesFromProps:rI,createRenderState:rD,onUpdate:({props:t,prevProps:e,current:i,renderState:n,latestValues:r})=>{if(!i)return;let s=!!t.drag;if(!s){for(let t in r)if(g.has(t)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let i=0;i<rN.length;i++){let n=rN[i];t[n]!==e[n]&&(o=!0)}o&&A.read(()=>{!function(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}(i,n),A.render(()=>{rV(n,r,rk(i.tagName),t.transformTemplate),rF(i,n)})})}})},rW={useVisualState:rb({scrapeMotionValuesFromProps:rO,createRenderState:rR})};function r$(t,e,i){for(let n in e)I(e[n])||rB(n,i)||(t[n]=e[n])}let rX=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 rY(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||rX.has(t)}let rH=t=>!rY(t);try{!function(t){t&&(rH=e=>e.startsWith("on")?!rY(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}let rK={current:null},rz={current:!1},rq=[...ee,tT,tk],r_=t=>rq.find(et(t)),rG=new WeakMap,rZ=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class rQ{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=t0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=R.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,A.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=ru(e),this.isVariantNode=rh(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==a[t]&&I(e)&&e.set(a[t],!1)}}mount(t){this.current=t,rG.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((t,e)=>this.bindToMotionValue(e,t)),rz.current||function(){if(rz.current=!0,rd.B)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rK.current=t.matches;t.addListener(e),e()}else rK.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rK.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in rG.delete(this.current),this.projection&&this.projection.unmount(),E(this.notifyUpdate),E(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=g.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&A.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),i&&i(),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 rf){let e=rf[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let 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):iV()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<rZ.length;e++){let i=rZ[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(I(r))t.addValue(n,r);else if(I(s))t.addValue(n,O(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,O(void 0!==e?e:r,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let 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 i=this.values.get(t);return void 0===i&&void 0!==e&&(i=O(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let n=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&(t2(n)||te(n))?n=parseFloat(n):!r_(n)&&tk.test(e)&&(n=tW(t,e)),this.setBaseTarget(t,I(n)?n.get():n)),I(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=u(this.props,n,null==(e=this.presenceContext)?void 0:e.custom);r&&(i=r[t])}if(n&&void 0!==i)return i;let r=this.getBaseTargetFromProps(this.props,t);return void 0===r||I(r)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:r}on(t,e){return this.events[t]||(this.events[t]=new L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class rJ extends rQ{constructor(){super(...arguments),this.KeyframeResolver=en}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:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;I(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class r0 extends rJ{constructor(){super(...arguments),this.type="html",this.renderInstance=rL}readValueFromInstance(t,e){if(g.has(e)){let t=tU(e);return t&&t.default||0}{let i=window.getComputedStyle(t),n=(t9(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return i$(t,e)}build(t,e,i){rA(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return rO(t,e,i)}}class r1 extends rJ{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iV}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(g.has(e)){let t=tU(e);return t&&t.default||0}return e=rj.has(e)?e:U(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return rI(t,e,i)}build(t,e,i){rV(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,n){rF(t,e,i,n)}mount(t){this.isSVGTag=rk(t.tagName),super.mount(t)}}let r5=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((p={animation:{Feature:it},exit:{Feature:ii},inView:{Feature:rs},tap:{Feature:n7},focus:{Feature:n4},hover:{Feature:n8},pan:{Feature:i_},drag:{Feature:iz,ProjectionNode:n3,MeasureLayout:i6},layout:{ProjectionNode:n3,MeasureLayout:i6}},f=(t,e)=>rx(t)?new r1(e):new r0(e,{allowProjection:t!==iZ.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:r,useRender:s,useVisualState:o,Component:l}=t;function u(t,e){var i,n,u;let h,c={...(0,iZ.useContext)(ra.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,iZ.useContext)(iJ.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:d}=c,p=function(t){let{initial:e,animate:i}=function(t,e){if(ru(t)){let{initial:e,animate:i}=t;return{initial:!1===e||a(e)?e:void 0,animate:a(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,iZ.useContext)(rl));return(0,iZ.useMemo)(()=>({initial:e,animate:i}),[rc(e),rc(i)])}(t),f=o(t,d);if(!d&&rd.B){n=0,u=0,(0,iZ.useContext)(ro).strict;let t=function(t){let{drag:e,layout:i}=rf;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(c);h=t.MeasureLayout,p.visualElement=function(t,e,i,n,r){var s,o;let{visualElement:a}=(0,iZ.useContext)(rl),l=(0,iZ.useContext)(ro),u=(0,iZ.useContext)(rv.t),h=(0,iZ.useContext)(ra.Q).reducedMotion,c=(0,iZ.useRef)(null);n=n||l.renderer,!c.current&&n&&(c.current=n(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let d=c.current,p=(0,iZ.useContext)(i0);d&&!d.projection&&r&&("html"===d.type||"svg"===d.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&im(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(c.current,i,r,p);let f=(0,iZ.useRef)(!1);(0,iZ.useInsertionEffect)(()=>{d&&f.current&&d.update(i,u)});let m=i[W],v=(0,iZ.useRef)(!!m&&!(null==(s=window.MotionHandoffIsComplete)?void 0:s.call(window,m))&&(null==(o=window.MotionHasOptimisedAnimation)?void 0:o.call(window,m)));return(0,rg.E)(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),i9.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())}),(0,iZ.useEffect)(()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,m)}),v.current=!1))}),d}(l,f,c,r,t.ProjectionNode)}return(0,iG.jsxs)(rl.Provider,{value:p,children:[h&&p.visualElement?(0,iG.jsx)(h,{visualElement:p.visualElement,...c}):null,s(l,t,(i=p.visualElement,(0,iZ.useCallback)(t=>{t&&f.onMount&&f.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):im(e)&&(e.current=t))},[i])),f,d,p.visualElement)]})}n&&function(t){for(let e in t)rf[e]={...rf[e],...t[e]}}(n),u.displayName="motion.".concat("string"==typeof l?l:"create(".concat(null!=(i=null!=(e=l.displayName)?e:l.name)?i:"",")"));let h=(0,iZ.forwardRef)(u);return h[rm]=l,h}({...rx(t)?rU:rW,preloadedFeatures:p,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>
1{let o=(rx(e)?function(t,e,i,n){let r=(0,iZ.useMemo)(()=>{let i=rD();return rV(i,e,rk(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};r$(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return r$(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,iZ.useMemo)(()=>{let i=rR();return rA(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,r,s,e),a=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(rH(r)||!0===i&&rY(r)||!e&&!rY(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),l=e!==iZ.Fragment?{...a,...o,ref:n}:{},{children:u}=i,h=(0,iZ.useMemo)(()=>I(u)?u.get():u,[u]);return(0,iZ.createElement)(e,{...l,children:h})}}(e),createVisualElement:f,Component:t})}))},93795:(t,e,i)=>{i.d(e,{A:()=>K});var n,r,s=function(){return(s=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function o(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++)0>e.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(t,n[r])&&(i[n[r]]=t[n[r]]);return i}Object.create;Object.create;var a=("function"==typeof SuppressedError&&SuppressedError,i(12115)),l="right-scroll-bar-position",u="width-before-scroll-bar";function h(t,e){return"function"==typeof t?t(e):t&&(t.current=e),t}var c="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,d=new WeakMap;function p(t){return t}var f=function(t){void 0===t&&(t={});var e,i,n,r,o=(e=null,void 0===i&&(i=p),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(t){var e=i(t,r);return n.push(e),function(){n=n.filter(function(t){return t!==e})}},assignSyncMedium:function(t){for(r=!0;n.length;){var e=n;n=[],e.forEach(t)}n={push:function(e){return t(e)},filter:function(){return n}}},assignMedium:function(t){r=!0;var e=[];if(n.length){var i=n;n=[],i.forEach(t),e=n}var s=function(){var i=e;e=[],i.forEach(t)},o=function(){return Promise.resolve().then(s)};o(),n={push:function(t){e.push(t),o()},filter:function(t){return e=e.filter(t),n}}}});return o.options=s({async:!0,ssr:!1},t),o}(),m=function(){},v=a.forwardRef(function(t,e){var i,n,r,l,u=a.useRef(null),p=a.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),v=p[0],g=p[1],y=t.forwardProps,x=t.children,w=t.className,b=t.removeScrollBar,P=t.enabled,T=t.shards,S=t.sideCar,A=t.noIsolation,E=t.inert,M=t.allowPinchZoom,C=t.as,V=t.gapMode,R=o(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=(i=[u,e],n=function(t){return i.forEach(function(e){return h(e,t)})},(r=(0,a.useState)(function(){return{value:null,callback:n,facade:{get current(){return r.value},set current(value){var t=r.value;t!==value&&(r.value=value,r.callback(value,t))}}}})[0]).callback=n,l=r.facade,c(function(){var t=d.get(l);if(t){var e=new Set(t),n=new Set(i),r=l.current;e.forEach(function(t){n.has(t)||h(t,null)}),n.forEach(function(t){e.has(t)||h(t,r)})}d.set(l,i)},[i]),l),k=s(s({},R),v);return a.createElement(a.Fragment,null,P&&a.createElement(S,{sideCar:f,removeScrollBar:b,shards:T,noIsolation:A,inert:E,setCallbacks:g,allowPinchZoom:!!M,lockRef:u,gapMode:V}),y?a.cloneElement(a.Children.only(x),s(s({},k),{ref:D})):a.createElement(void 0===C?"div":C,s({},k,{className:w,ref:D}),x))});v.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v.classNames={fullWidth:u,zeroRight:l};var g=function(t){var e=t.sideCar,i=o(t,["sideCar"]);if(!e)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=e.read();if(!n)throw Error("Sidecar medium not found");return a.createElement(n,s({},i))};
1g.isSideCarExport=!0;var y=function(){var t=0,e=null;return{add:function(n){if(0==t&&(e=function(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=r||i.nc;return e&&t.setAttribute("nonce",e),t}())){var s,o;(s=e).styleSheet?s.styleSheet.cssText=n:s.appendChild(document.createTextNode(n)),o=e,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}t++},remove:function(){--t||!e||(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},x=function(){var t=y();return function(e,i){a.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&i])}},w=function(){var t=x();return function(e){return t(e.styles,e.dynamic),null}},b={left:0,top:0,right:0,gap:0},P=function(t){return parseInt(t||"",10)||0},T=function(t){var e=window.getComputedStyle(document.body),i=e["padding"===t?"paddingLeft":"marginLeft"],n=e["padding"===t?"paddingTop":"marginTop"],r=e["padding"===t?"paddingRight":"marginRight"];return[P(i),P(n),P(r)]},S=function(t){if(void 0===t&&(t="margin"),"undefined"==typeof window)return b;var e=T(t),i=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-i+e[2]-e[0])}},A=w(),E="data-scroll-locked",M=function(t,e,i,n){var r=t.left,s=t.top,o=t.right,a=t.gap;return void 0===i&&(i="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(a,"px ").concat(n,";\n }\n body[").concat(E,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([e&&"position: relative ".concat(n,";"),"margin"===i&&"\n padding-left: ".concat(r,"px;\n padding-top: ").concat(s,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(n,";\n "),"padding"===i&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(l," {\n right: ").concat(a,"px ").concat(n,";\n }\n \n .").concat(u," {\n margin-right: ").concat(a,"px ").concat(n,";\n }\n \n .").concat(l," .").concat(l," {\n right: 0 ").concat(n,";\n }\n \n .").concat(u," .").concat(u," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(E,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},C=function(){var t=parseInt(document.body.getAttribute(E)||"0",10);return isFinite(t)?t:0},V=function(){a.useEffect(function(){return document.body.setAttribute(E,(C()+1).toString()),function(){var t=C()-1;t<=0?document.body.removeAttribute(E):document.body.setAttribute(E,t.toString())}},[])},R=function(t){var e=t.noRelative,i=t.noImportant,n=t.gapMode,r=void 0===n?"margin":n;V();var s=a.useMemo(function(){return S(r)},[r]);return a.createElement(A,{styles:M(s,!e,r,i?"":"!important")})},D=!1;if("undefined"!=typeof window)try{var k=Object.defineProperty({},"passive",{get:function(){return D=!0,!0}});window.addEventListener("test",k,k),window.removeEventListener("test",k,k)}catch(t){D=!1}var L=!!D&&{passive:!1},j=function(t,e){if(!(t instanceof Element))return!1;var i=window.getComputedStyle(t);return"hidden"!==i[e]&&(i.overflowY!==i.overflowX||"TEXTAREA"===t.tagName||"visible"!==i[e])},F=function(t,e){var i=e.ownerDocument,n=e;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),B(t,n)){var r=O(t,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==i.body);return!1},B=function(t,e){return"v"===t?j(e,"overflowY"):j(e,"overflowX")},O=function(t,e){return"v"===t?[e.scrollTop,e.scrollHeight,e.clientHeight]:[e.scrollLeft,e.scrollWidth,e.clientWidth]},I=function(t,e,i,n,r){var s,o=(s=window.getComputedStyle(e).direction,"h"===t&&"rtl"===s?-1:1),a=o*n,l=i.target,u=e.contains(l),h=!1,c=a>0,d=0,p=0;do{var f=O(t,l),m=f[0],v=f[1]-f[2]-o*m;(m||v)&&B(t,l)&&(d+=v,p+=m),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!u&&l!==document.body||u&&(e.contains(l)||e===l));return c&&(r&&1>Math.abs(d)||!r&&a>d)?h=!0:!c&&(r&&1>Math.abs(p)||!r&&-a>p)&&(h=!0),h},N=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},U=function(t){return[t.deltaX,t.deltaY]},W=function(t){return t&&"current"in t?t.current:t},$=0,X=[];let Y=(n=function(t){var e=a.useRef([]),i=a.useRef([0,0]),n=a.useRef(),r=a.useState($++)[0],s=a.useState(w)[0],o=a.useRef(t);a.useEffect(function(){o.current=t},[t]),a.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(r));
1var e=(function(t,e,i){if(i||2==arguments.length)for(var n,r=0,s=e.length;r<s;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))})([t.lockRef.current],(t.shards||[]).map(W),!0).filter(Boolean);return e.forEach(function(t){return t.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),e.forEach(function(t){return t.classList.remove("allow-interactivity-".concat(r))})}}},[t.inert,t.lockRef.current,t.shards]);var l=a.useCallback(function(t,e){if("touches"in t&&2===t.touches.length||"wheel"===t.type&&t.ctrlKey)return!o.current.allowPinchZoom;var r,s=N(t),a=i.current,l="deltaX"in t?t.deltaX:a[0]-s[0],u="deltaY"in t?t.deltaY:a[1]-s[1],h=t.target,c=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in t&&"h"===c&&"range"===h.type)return!1;var d=F(c,h);if(!d)return!0;if(d?r=c:(r="v"===c?"h":"v",d=F(c,h)),!d)return!1;if(!n.current&&"changedTouches"in t&&(l||u)&&(n.current=r),!r)return!0;var p=n.current||r;return I(p,e,t,"h"===p?l:u,!0)},[]),u=a.useCallback(function(t){if(X.length&&X[X.length-1]===s){var i="deltaY"in t?U(t):N(t),n=e.current.filter(function(e){var n;return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,n[0]===i[0]&&n[1]===i[1])})[0];if(n&&n.should){t.cancelable&&t.preventDefault();return}if(!n){var r=(o.current.shards||[]).map(W).filter(Boolean).filter(function(e){return e.contains(t.target)});(r.length>0?l(t,r[0]):!o.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),h=a.useCallback(function(t,i,n,r){var s={name:t,delta:i,target:n,should:r,shadowParent:function(t){for(var e=null;null!==t;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}(n)};e.current.push(s),setTimeout(function(){e.current=e.current.filter(function(t){return t!==s})},1)},[]),c=a.useCallback(function(t){i.current=N(t),n.current=void 0},[]),d=a.useCallback(function(e){h(e.type,U(e),e.target,l(e,t.lockRef.current))},[]),p=a.useCallback(function(e){h(e.type,N(e),e.target,l(e,t.lockRef.current))},[]);a.useEffect(function(){return X.push(s),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",u,L),document.addEventListener("touchmove",u,L),document.addEventListener("touchstart",c,L),function(){X=X.filter(function(t){return t!==s}),document.removeEventListener("wheel",u,L),document.removeEventListener("touchmove",u,L),document.removeEventListener("touchstart",c,L)}},[]);var f=t.removeScrollBar,m=t.inert;return a.createElement(a.Fragment,null,m?a.createElement(s,{styles:"\n .block-interactivity-".concat(r," {pointer-events: none;}\n .allow-interactivity-").concat(r," {pointer-events: all;}\n")}):null,f?a.createElement(R,{gapMode:t.gapMode}):null)},f.useMedium(n),g);var H=a.forwardRef(function(t,e){return a.createElement(v,s({},t,{ref:e,sideCar:Y}))});H.classNames=v.classNames;let K=H},97494:(t,e,i)=>{i.d(e,{E:()=>r});var n=i(12115);let r=i(68972).B?n.useLayoutEffect:n.useEffect}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.