PageSourceSearch

https://nortebeneficios.com.ar/_next/static/chunks/da62fc492bb822d9.js

js nortebeneficios.com.ar collected 2026-10-02 01:16:12 UTC 143,835 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98183,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return a}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});function s(t){let e={};for(let[i,n]of t.entries()){let t=e[i];void 0===t?e[i]=n:Array.isArray(t)?t.push(n):e[i]=[t,n]}return e}function o(t){return"string"==typeof t?t:("number"!=typeof t||isNaN(t))&&"boolean"!=typeof t?"":String(t)}function a(t){let e=new URLSearchParams;for(let[i,n]of Object.entries(t))if(Array.isArray(n))for(let t of n)e.append(i,o(t));else e.set(i,o(n));return e}function l(t,...e){for(let i of e){for(let e of i.keys())t.delete(e);for(let[e,n]of i.entries())t.append(e,n)}return t}},95057,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=t.r(90809)._(t.r(98183)),o=/https?|ftp|gopher|file/;function a(t){let{auth:e,hostname:i}=t,n=t.protocol||"",r=t.pathname||"",a=t.hash||"",l=t.query||"",u=!1;e=e?encodeURIComponent(e).replace(/%3A/i,":")+"@":"",t.host?u=e+t.host:i&&(u=e+(~i.indexOf(":")?`[${i}]`:i),t.port&&(u+=":"+t.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let h=t.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),t.slashes||(!n||o.test(n))&&!1!==u?(u="//"+(u||""),r&&"/"!==r[0]&&(r="/"+r)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),h&&"?"!==h[0]&&(h="?"+h),r=r.replace(/[?#]/g,encodeURIComponent),h=h.replace("#","%23"),`${n}${u}${r}${h}${a}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(t){return a(t)}},18581,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useMergedRef",{enumerable:!0,get:function(){return r}});let n=t.r(71645);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 i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},18967,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={DecodeError:function(){return v},MiddlewareNotFoundError:function(){return P},MissingStaticPage:function(){return b},NormalizeError:function(){return y},PageNotFoundError:function(){return x},SP:function(){return f},ST:function(){return g},WEB_VITALS:function(){return s},execOnce:function(){return o},getDisplayName:function(){return c},getLocationOrigin:function(){return u},getURL:function(){return h},isAbsoluteUrl:function(){return l},isResSent:function(){return d},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return w}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function o(t){let e,i=!1;return(...n)=>(i||(i=!0,e=t(...n)),e)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=t=>a.test(t);function u(){let{protocol:t,hostname:e,port:i}=window.location;return`${t}//${e}${i?":"+i:""}`}function h(){let{href:t}=window.location,e=u();return t.substring(e.length)}function c(t){return"string"==typeof t?t:t.displayName||t.name||"Unknown"}function d(t){return t.finished||t.headersSent}function p(t){let e=t.split("?");return e[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(e[1]?`?${e.slice(1).join("?")}`:"")}async function m(t,e){let i=e.res||e.ctx&&e.ctx.res;if(!t.getInitialProps)return e.ctx&&e.Component?{pageProps:await m(e.Component,e.ctx)}:{};let n=await t.getInitialProps(e);if(i&&d(i))return n;if(!n)throw Object.defineProperty(Error(`"${c(t)}.getInitialProps()" should resolve to an object. But found "${n}
1" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let f="undefined"!=typeof performance,g=f&&["mark","measure","getEntriesByName"].every(t=>"function"==typeof performance[t]);class v extends Error{}class y extends Error{}class x extends Error{constructor(t){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${t}`}}class b extends Error{constructor(t,e){super(),this.message=`Failed to load static file for page: ${t} ${e}`}}class P extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(t){return JSON.stringify({message:t.message,stack:t.stack})}},73668,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=t.r(18967),r=t.r(52817);function s(t){if(!(0,n.isAbsoluteUrl)(t))return!0;try{let e=(0,n.getLocationOrigin)(),i=new URL(t,e);return i.origin===e&&(0,r.hasBasePath)(i.pathname)}catch(t){return!1}}},84508,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"errorOnce",{enumerable:!0,get:function(){return n}});let n=t=>{}},22016,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return v},useLinkStatus:function(){return x}};for(var r in n)Object.defineProperty(i,r,{enumerable:!0,get:n[r]});let s=t.r(90809),o=t.r(43476),a=s._(t.r(71645)),l=t.r(95057),u=t.r(8372),h=t.r(18581),c=t.r(18967),d=t.r(5550);t.r(33525);let p=t.r(91949),m=t.r(73668),f=t.r(9396);function g(t){return"string"==typeof t?t:(0,l.formatUrl)(t)}function v(e){var i;let n,r,s,[l,v]=(0,a.useOptimistic)(p.IDLE_LINK_STATUS),x=(0,a.useRef)(null),{href:b,as:P,children:w,prefetch:T=null,passHref:S,replace:M,shallow:V,scroll:E,onClick:A,onMouseEnter:C,onTouchStart:k,legacyBehavior:D=!1,onNavigate:L,ref:R,unstable_dynamicOnHover:j,...B}=e;n=w,D&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let F=a.default.useContext(u.AppRouterContext),O=!1!==T,N=!1!==T?null===(i=T)||"auto"===i?f.FetchStrategy.PPR:f.FetchStrategy.Full:f.FetchStrategy.PPR,{href:I,as:U}=a.default.useMemo(()=>{let t=g(b);return{href:t,as:P?g(P):t}},[b,P]);if(D){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});r=a.default.Children.only(n)}let $=D?r&&"object"==typeof r&&r.ref:R,_=a.default.useCallback(t=>(null!==F&&(x.current=(0,p.mountLinkInstance)(t,I,F,N,O,v)),()=>{x.current&&((0,p.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,p.unmountPrefetchableInstance)(t)}),[O,I,F,N,v]),W={ref:(0,h.useMergedRef)(_,$),onClick(e){D||"function"!=typeof A||A(e),D&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),!F||e.defaultPrevented||function(e,i,n,r,s,o,l){if("undefined"!=typeof window){let u,{nodeName:h}=e.currentTarget;if("A"===h.toUpperCase()&&((u=e.currentTarget.getAttribute("target"))&&"_self"!==u||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(i)){s&&(e.preventDefault(),location.replace(i));return}if(e.preventDefault(),l){let t=!1;if(l({preventDefault:()=>{t=!0}}),t)return}let{dispatchNavigateAction:c}=t.r(99781);a.default.startTransition(()=>{c(n||i,s?"replace":"push",o??!0,r.current)})}}(e,I,U,x,M,E,L)},onMouseEnter(t){D||"function"!=typeof C||C(t),D&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(t),F&&O&&(0,p.onNavigationIntent)(t.currentTarget,!0===j)},onTouchStart:function(t){D||"function"!=typeof k||k(t),D&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(t),F&&O&&(0,p.onNavigationIntent)(t.currentTarget,!0===j)}};return(0,c.isAbsoluteUrl)(U)?W.href=U:D&&!S&&("a"!==r.type||"href"in r.props)||(W.href=(0,d.addBasePath)(U)),s=D?a.default.cloneElement(r,W):(0,o.jsx)("a",{...B,...W,children:n}),(0,o.jsx)(y.Provider,{value:l,children:s})}t.r(84508);let y=(0,a.createContext)(p.IDLE_LINK_STATUS),x=()=>(0,a.useContext)(y);("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esMo
1dule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},31178,t=>{"use strict";let e=(0,t.i(71645).createContext)({});t.s(["LayoutGroupContext",()=>e])},47414,t=>{"use strict";var e=t.i(71645);function i(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}t.s(["useConstant",()=>i])},92936,t=>{"use strict";let e="undefined"!=typeof window;t.s(["isBrowser",()=>e])},74008,t=>{"use strict";var e=t.i(71645);let i=t.i(92936).isBrowser?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",()=>i])},21476,t=>{"use strict";let e=(0,t.i(71645).createContext)(null);t.s(["PresenceContext",()=>e])},42824,t=>{"use strict";function e(t){return"object"==typeof t&&null!==t}t.s(["isObject",()=>e])},72846,t=>{"use strict";var e=t.i(42824);function i(t){return(0,e.isObject)(t)&&"offsetHeight"in t}t.s(["isHTMLElement",()=>i])},37806,t=>{"use strict";let e=(0,t.i(71645).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",()=>e])},64978,t=>{"use strict";var e=t.i(71645),i=t.i(21476);function n(t=!0){let r=(0,e.useContext)(i.PresenceContext);if(null===r)return[!0,null];let{isPresent:s,onExitComplete:o,register:a}=r,l=(0,e.useId)();(0,e.useEffect)(()=>{if(t)return a(l)},[t]);let u=(0,e.useCallback)(()=>t&&o&&o(l),[l,o,t]);return!s&&o?[!1,u]:[!0]}t.s(["usePresence",()=>n])},88653,t=>{"use strict";t.i(47167);var e=t.i(43476),i=t.i(71645),n=t.i(31178),r=t.i(47414),s=t.i(74008),o=t.i(21476),a=t.i(72846),l=i,u=t.i(37806);function h(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class c extends l.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=(0,a.isHTMLElement)(t)&&t.offsetWidth||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:t,isPresent:n,anchorX:r,root:s}){let o=(0,l.useId)(),a=(0,l.useRef)(null),d=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:p}=(0,l.useContext)(u.MotionConfigContext),m=function(...t){return i.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=h(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():h(t[e],null)}}}}(...t),t)}(a,t?.ref);return(0,l.useInsertionEffect)(()=>{let{width:t,height:e,top:i,left:l,right:u}=d.current;if(n||!a.current||!t||!e)return;let h="left"===r?`left: ${l}`:`right: ${u}`;a.current.dataset.motionPopId=o;let c=document.createElement("style");p&&(c.nonce=p);let m=s??document.head;return m.appendChild(c),c.sheet&&c.sheet.insertRule(`
2          [data-motion-pop-id="${o}"] {
3            position: absolute !important;
4            width: ${t}px !important;
5            height: ${e}px !important;
6            ${h}px !important;
7            top: ${i}px !important;
8          }
9        `),()=>{m.contains(c)&&m.removeChild(c)}},[n]),(0,e.jsx)(c,{isPresent:n,childRef:a,sizeRef:d,children:l.cloneElement(t,{ref:m})})}let p=({children:t,initial:n,isPresent:s,onExitComplete:a,custom:l,presenceAffectsLayout:u,mode:h,anchorX:c,root:p})=>{let f=(0,r.useConstant)(m),g=(0,i.useId)(),v=!0,y=(0,i.useMemo)(()=>(v=!1,{id:g,initial:n,isPresent:s,custom:l,onExitComplete:t=>{for(let e of(f.set(t,!0),f.values()))if(!e)return;a&&a()},register:t=>(f.set(t,!1),()=>f.delete(t))}),[s,f,a]);return u&&v&&(y={...y}),(0,i.useMemo)(()=>{f.forEach((t,e)=>f.set(e,!1))},[s]),i.useEffect(()=>{s||f.size||!a||a()},[s]),"popLayout"===h&&(t=(0,e.jsx)(d,{isPresent:s,anchorX:c,root:p,children:t})),(0,e.jsx)(o.PresenceContext.Provider,{value:y,children:t})};function m(){return new Map}var f=t.i(64978);let g=t=>t.key||"";function v(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}let y=({children:t,custom:o,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:c=!1,anchorX:d="left",root:m})=>{let[y,x]=(0,f.usePresence)(c),b=(0,i.useMemo)(()=>v(t),[t]),P=c&&!y?[]:b.map(g),w=(0,i.useRef)(!0),T=(0,i.useRef)(b),S=(0,r.useConstant)(()=>new Map),[M,V]=(0,i.useState)(b),[E,A]=(0,i.useState)(b);(0,s.useIsomorphicLayoutEffect)(()=>{w.current=!1,T.current=b;for(let t=0;t<E.length;t++){let e=g(E[t]);P.includes(e)?S.delete(e):!0!==S.get(e)&&S.set(e,!1)}},[E,P.length,P.join("-")]);let C=[];if(b!==M){let t=[...b];for(let e=0;e<E.length;e++){let i=E[e],n=g(i);P.includes(n)||(t.splice(e,0,i),C.push(i))}return"wait"===h&&C.length&&(t=C),A(v(t)),V(b),null}let{forceRender:k}=(0,i.useContext)(n.LayoutGroupContext);return(0,e.jsx)(e.Fragment,{children:E.map(t=>{let i=g(t),n=(!c||!!y)&&(b===E||P.includes(i));return(0,e.jsx)(p,{isPresent:n,initial:(!w.current||!!a)&&void 0,custom:o,presenceAffectsLayout:u,mode:h,root:m,onExitComplete:n?void 0:()=>
9{if(!S.has(i))return;S.set(i,!0);let t=!0;S.forEach(e=>{e||(t=!1)}),t&&(k?.(),A(T.current),c&&x?.(),l&&l())},anchorX:d,children:t},i)})})};t.s(["AnimatePresence",()=>y],88653)},57788,81296,19928,49587,706,72696,89234,45504,64440,76959,65091,65566,72590,60830,46791,80248,87022,21012,47507,66820,63011,22660,79444,69577,34929,3973,75554,46436,83411,96173,33887,70596,25791,86427,66538,60140,76948,81699,t=>{"use strict";let e,i,n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(n);t.s(["transformPropOrder",()=>n,"transformProps",()=>r],57788);let s=t=>180*t/Math.PI,o=t=>l(s(Math.atan2(t[1],t[0]))),a={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:o,rotateZ:o,skewX:t=>s(Math.atan(t[1])),skewY:t=>s(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},l=t=>((t%=360)<0&&(t+=360),t),u=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),h=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),c={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:u,scaleY:h,scale:t=>(u(t)+h(t))/2,rotateX:t=>l(s(Math.atan2(t[6],t[5]))),rotateY:t=>l(s(Math.atan2(-t[2],t[0]))),rotateZ:o,rotate:o,skewX:t=>s(Math.atan(t[4])),skewY:t=>s(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function d(t){return+!!t.includes("scale")}function p(t,e){let i,n;if(!t||"none"===t)return d(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=c,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=a,n=e}if(!n)return d(e);let s=i[e],o=n[1].split(",").map(f);return"function"==typeof s?s(o):o[s]}let m=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return p(i,e)};function f(t){return parseFloat(t.trim())}t.s(["defaultTransformValue",()=>d,"parseValueFromTransform",()=>p,"readTransformValue",()=>m],81296);let g=t=>e=>"string"==typeof e&&e.startsWith(t),v=g("--"),y=g("var(--"),x=t=>!!y(t)&&b.test(t.split("/*")[0].trim()),b=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function P({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function w({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function T(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.s(["isCSSVariableName",()=>v,"isCSSVariableToken",()=>x],19928),t.s(["convertBoundingBoxToBox",()=>P,"convertBoxToBoundingBox",()=>w,"transformBoxPoints",()=>T],49587);let S=(t,e,i)=>t+(e-t)*i;function M(t){return void 0===t||1===t}function V({scale:t,scaleX:e,scaleY:i}){return!M(t)||!M(e)||!M(i)}function E(t){return V(t)||A(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function A(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function C(t,e,i){return i+e*(t-i)}function k(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function D(t,e=0,i=1,n,r){t.min=k(t.min,e,i,n,r),t.max=k(t.max,e,i,n,r)}function L(t,{x:e,y:i}){D(t.x,e.translate,e.scale,e.originPoint),D(t.y,i.translate,i.scale,i.originPoint)}function R(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&&F(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,L(t,s)),n&&E(r.latestValues)&&F(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function j(t,e){t.min=t.min+e,t.max=t.max+e}function B(t,e,i,n,r=.5){let s=S(t.min,t.max,r);D(t,e,i,s,n)}function F(t,e){B(t.x,e.x,e.scaleX,e.scale,e.originX),B(t.y,e.y,e.scaleY,e.scale,e.originY)}function O(t,e){return P(T(t.getBoundingClientRect(),e))}function N(t,e,i){let n=O(t,i),{scroll:r}=e;return r&&(j(n.x,r.offset.x),j(n.y,r.offset.y)),n}t.s(["mixNumber",()=>S],706),t.s(["has2DTranslate",()=>A,"hasScale",()=>V,"hasTransform",()=>E],72696),t.s(["applyBoxDelta",()=>L,"applyTreeDeltas",()=>R,"scalePoint",()=>C,"transformBox",()=>F,"translateAxis",()=>j],89234),t.s(["measurePageBox",()=>N,"measureViewportBox",()=>O],45504);let I=new Set(["width","height","top","left","right","bottom",...n]);t.s(["positionalKeys",()=>I],64440);let U=(t,e,i)=>i>e?e:i<t?t:i;t.s(["clamp",()=>U],76959);let $={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},_={...$,transform:t=>U(0,1,t)},W={...$,default:1},z=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),G=z("deg"),H=z("%"),K=z("px"),X=z("vh"),Y=z("vw"),q={...H,parse:t=>H.parse(t)/100,transform:t=>H.transform(100*t)};t.s(["degrees",()=>G,"percent",()=>H,"progressPercentage",()=>q,"px",()=>K,"vh",()=>X,"vw",()=>Y],65091);let Z=t=>e=>e.test(t),Q=[$,K,H,G,Y,X,{test:t=>"auto"===t,parse:t=>t}],J=t=>Q.find(Z(t));t.i(47167);let tt=()=>{},te=()=>{};t.s(["invariant",()=>te,"warning",()=>tt],65566);let ti=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);t.s(["isNumericalString",()=>ti],72590);let tn=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tr=t=>t===$||t===K,ts=new Set(["x","y","z"]),to=n.filter(t=>!ts.has(t)),ta={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:(t,{transform:e})=>p(e,"x"),y:(t,{transform:e})=>p(e,"y")};ta.translateX=ta.x,ta.translateY=ta.y;let tl=t=>t;t.s(["noop",()=>tl],60830);let tu={};t.s(["MotionGlobalConfig",()=>tu],46791);let th=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],tc={value:null,addProjectionMetrics:null};function td(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=th.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,s=!1)=>{let a=s&&r?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,r){s=!0;return}
9r=!0,[i,n]=[n,i],i.forEach(u),e&&tc.value&&tc.value.frameloop[e].push(l),l=0,i.clear(),r=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:c,preRender:d,render:p,postRender:m}=o,f=()=>{let s=tu.useManualTiming?r.timestamp:performance.now();i=!1,tu.useManualTiming||(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),p.process(r),m.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:th.reduce((e,s)=>{let a=o[s];return e[s]=(e,s=!1,o=!1)=>(!i&&(i=!0,n=!0,r.isProcessing||t(f)),a.schedule(e,s,o)),e},{}),cancel:t=>{for(let e=0;e<th.length;e++)o[th[e]].cancel(t)},state:r,steps:o}}t.s(["statsBuffer",()=>tc],80248);let{schedule:tp,cancel:tm,state:tf,steps:tg}=td("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tl,!0);t.s(["cancelFrame",()=>tm,"frame",()=>tp,"frameData",()=>tf,"frameSteps",()=>tg],87022);let tv=new Set,ty=!1,tx=!1,tb=!1;function tP(){if(tx){let t=Array.from(tv).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],to.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tx=!1,ty=!1,tv.forEach(t=>t.complete(tb)),tv.clear()}function tw(){tv.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tx=!0)})}function tT(){tb=!0,tw(),tP(),tb=!1}class tS{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(tv.add(this),ty||(ty=!0,tp.read(tw),tp.resolveKeyframes(tP))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=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])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tv.delete(this)}cancel(){"scheduled"===this.state&&(tv.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}t.s(["KeyframeResolver",()=>tS,"flushKeyframeResolvers",()=>tT],21012);let tM=t=>/^0[^.\s]+$/u.test(t);t.s(["isZeroValueString",()=>tM],47507);let tV=t=>Math.round(1e5*t)/1e5,tE=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tC=(t,e)=>i=>!!("string"==typeof i&&tA.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tk=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(tE);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tD={...$,transform:t=>Math.round(U(0,255,t))},tL={test:tC("rgb","red"),parse:tk("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tD.transform(t)+", "+tD.transform(e)+", "+tD.transform(i)+", "+tV(_.transform(n))+")"};t.s(["rgba",()=>tL],66820);let tR={test:tC("#"),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:tL.transform};t.s(["hex",()=>tR],63011);let tj={test:tC("hsl","hue"),parse:tk("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+H.transform(tV(e))+", "+H.transform(tV(i))+", "+t
9V(_.transform(n))+")"};t.s(["hsla",()=>tj],22660);let tB={test:t=>tL.test(t)||tR.test(t)||tj.test(t),parse:t=>tL.test(t)?tL.parse(t):tj.test(t)?tj.parse(t):tR.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tL.transform(t):tj.transform(t),getAnimatableNone:t=>{let e=tB.parse(t);return e.alpha=0,tB.transform(e)}};t.s(["color",()=>tB],79444);let tF=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tO="number",tN="color",tI=/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 tU(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(tI,t=>(tB.test(t)?(n.color.push(s),r.push(tN),i.push(tB.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(tO),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function t$(t){return tU(t).values}function t_(t){let{split:e,types:i}=tU(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===tO?r+=tV(t[s]):e===tN?r+=tB.transform(t[s]):r+=t[s]}return r}}let tW=t=>"number"==typeof t?0:tB.test(t)?tB.getAnimatableNone(t):t,tz={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(tE)?.length||0)+(t.match(tF)?.length||0)>0},parse:t$,createTransformer:t_,getAnimatableNone:function(t){let e=t$(t);return t_(t)(e.map(tW))}};t.s(["analyseComplexValue",()=>tU,"complex",()=>tz],69577);let tG=new Set(["brightness","contrast","saturate","opacity"]);function tH(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(tE)||[];if(!n)return t;let r=i.replace(n,""),s=+!!tG.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let tK=/\b([a-z-]*)\(.*?\)/gu,tX={...tz,getAnimatableNone:t=>{let e=t.match(tK);return e?e.map(tH).join(" "):t}},tY={...$,transform:Math.round},tq={borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,radius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,top:K,right:K,bottom:K,left:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,backgroundPositionX:K,backgroundPositionY:K,rotate:G,rotateX:G,rotateY:G,rotateZ:G,scale:W,scaleX:W,scaleY:W,scaleZ:W,skew:G,skewX:G,skewY:G,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:_,originX:q,originY:q,originZ:K,zIndex:tY,fillOpacity:_,strokeOpacity:_,numOctaves:tY};t.s(["numberValueTypes",()=>tq],34929);let tZ={...tq,color:tB,backgroundColor:tB,outlineColor:tB,fill:tB,stroke:tB,borderColor:tB,borderTopColor:tB,borderRightColor:tB,borderBottomColor:tB,borderLeftColor:tB,filter:tX,WebkitFilter:tX},tQ=t=>tZ[t];function tJ(t,e){let i=tQ(t);return i!==tX&&(i=tz),i.getAnimatableNone?i.getAnimatableNone(e):void 0}t.s(["getDefaultValueType",()=>tQ],3973),t.s(["getAnimatableNone",()=>tJ],75554);let t0=new Set(["auto","none","0"]);class t1 extends tS{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&&x(n=n.trim())){let r=function t(e,i,n=1){te(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(t){let e=tn.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return ti(t)?parseFloat(t):t}return x(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(),!I.has(i)||2!==t.length)return;let[n,r]=t,s=J(n),o=J(r);if(s!==o)if(tr(s)&&tr(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else ta[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||tM(n)))&&i.push(e)}
9i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!t0.has(e)&&tU(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tJ(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=ta[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(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=ta[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}t.s(["DOMKeyframesResolver",()=>t1],46436);let t6=t=>!!(t&&t.getVelocity);function t5(){i=void 0}t.s(["isMotionValue",()=>t6],83411);let t4={now:()=>(void 0===i&&t4.set(tf.isProcessing||tu.useManualTiming?tf.timestamp:performance.now()),i),set:t=>{i=t,queueMicrotask(t5)}};function t2(t,e){-1===t.indexOf(e)&&t.push(e)}function t3(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["time",()=>t4],96173),t.s(["addUniqueItem",()=>t2,"removeItem",()=>t3],33887);class t9{constructor(){this.subscriptions=[]}add(t){return t2(this.subscriptions,t),()=>t3(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}}function t7(t,e){return e?1e3/e*t:0}t.s(["SubscriptionManager",()=>t9],70596),t.s(["velocityPerSecond",()=>t7],25791);class t8{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=t4.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=t4.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(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 t9);let i=this.events[t].add(e);return"change"===t?()=>{i(),tp.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return e&&e.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=t4.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t7(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function et(t,e){return new t8(t,e)}t.s(["motionValue",()=>et],86427);let ee=[...Q,tB,tz],ei=t=>ee.find(Z(t));t.s(["findValueType",()=>ei],66538);let{schedule:en}=td(queueMicrotask,!1);t.s(["microtask",()=>en],60140);let er={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"]},es={};for(let t in er)es[t]={isEnabled:e=>er[t].some(t=>!!e[t])};t.s(["featureDefinitions",()=>es],76948);let eo=()=>({translate:0,scale:1,origin:0,originPoint:0}),ea=()=>({x:eo(),y:eo()}),el=()=>({min:0,max:0}),eu=()=>({x:el(),y:el()});t.s(["createBox",()=>eu,"createDelta",()=>ea],81699)},54505,44974,42531,89607,98922,43190,58768,52383,19026,32313,64600,33203,50514,25954,44966,t=>{"use strict";var e=t.i(71645),i=t.i(57788),n=t.i(81296),r=t.i(19928),s=t.i(45504),o=t.i(46436),a=t.i(83411);t.i(47167);var l=t.i(21012),u=t.i(96173),h=t.i(87022),c=t.i(86427),d=t.i(66538),p=t.i(69577),m=t.i(75554),f=t.i(60140),g=t.i(72590),v=t.i(4750
97),y=t.i(70596),x=t.i(76948),b=t.i(81699),P=t.i(92936);let w={current:null},T={current:!1},S=new WeakMap;function M(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function V(t){return"string"==typeof t||Array.isArray(t)}t.s(["isAnimationControls",()=>M],44974),t.s(["isVariantLabel",()=>V],42531);let E=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],A=["initial",...E];function C(t){return M(t.animate)||A.some(e=>V(t[e]))}function k(t){return!!(C(t)||t.variants)}function D(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function L(t,e,i,n){if("function"==typeof e){let[r,s]=D(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]=D(n);e=e(void 0!==i?i:t.custom,r,s)}return e}t.s(["variantPriorityOrder",()=>E,"variantProps",()=>A],89607),t.s(["isControllingVariants",()=>C,"isVariantNode",()=>k],98922),t.s(["resolveVariantFromProps",()=>L],43190);let R=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class j{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=l.KeyframeResolver,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=u.time.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,h.frame.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=e.initial?{...c}:{},this.renderState=d,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=C(e),this.isVariantNode=k(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...m}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in m){const e=m[t];void 0!==c[t]&&(0,a.isMotionValue)(e)&&e.set(c[t])}}mount(t){this.current=t,S.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.forEach((t,e)=>this.bindToMotionValue(e,t)),T.current||function(){if(T.current=!0,P.isBrowser)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>w.current=t.matches;t.addEventListener("change",e),e()}else w.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||w.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,h.cancelFrame)(this.notifyUpdate),(0,h.cancelFrame)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let n;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=i.transformProps.has(t);r&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&h.frame.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),n&&n(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in x.featureDefinitions){let e=x.featureDefinitions[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];
9e.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):(0,b.createBox)()}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<R.length;e++){let i=R[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((0,a.isMotionValue)(r))t.addValue(n,r);else if((0,a.isMotionValue)(s))t.addValue(n,(0,c.motionValue)(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,(0,c.motionValue)(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()}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=(0,c.motionValue)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&((0,g.isNumericalString)(i)||(0,v.isZeroValueString)(i))?i=parseFloat(i):!(0,d.findValueType)(i)&&p.complex.test(e)&&(i=(0,m.getAnimatableNone)(t,e)),this.setBaseTarget(t,(0,a.isMotionValue)(i)?i.get():i)),(0,a.isMotionValue)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=L(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,a.isMotionValue)(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new y.SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){f.microtask.render(this.render)}}class B extends j{constructor(){super(...arguments),this.KeyframeResolver=o.DOMKeyframesResolver}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;(0,a.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let F=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var O=t.i(34929);let N={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},I=i.transformPropOrder.length;function U(t,e,n){let{style:s,vars:o,transformOrigin:a}=t,l=!1,u=!1;for(let t in e){let n=e[t];if(i.transformProps.has(t)){l=!0;continue}if((0,r.isCSSVariableName)(t)){o[t]=n;continue}{let e=F(n,O.numberValueTypes[t]);t.startsWith("origin")?(u=!0,a[t]=e):s[t]=e}}if(!e.transform&&(l||n?s.transform=function(t,e,n){let r="",s=!0;for(let o=0;o<I;o++){let a=i.transformPropOrder[o],l=t[a];if(void 0===l)continue;let u=!0;if(!(u="number"==typeof l?l===+!!a.startsWith("scale"):0===parseFloat(l))||n){let t=F(l,O.numberValueTypes[a]);if(!u){s=!1;let e=N[a]||a;r+=`${e}(${t}) `}n&&(e[a]=t)}}return r=r.trim(),n?r=n(e,s?"":r):s&&(r="none"),r}(e,t.transform,n):s.transform&&(s.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;s.transformOrigin=`${t} ${e} ${i}`}}function $(t,{style:e,vars:i},n,r){let s,o=t.style;for(s in e)o[s]=e[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}t.s(["buildHTMLStyles",()=>U],58768);var _=t.i(65091);function W(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let z={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!_.px.test(t))return t;else t=parseFloat(t);let i=W(t,e.target.x),n=W(t,e.target.y);return`${i}% ${n}%`}};var G=t.i(706);let H={borderRadius:{...z,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomLeftRadius:z,borderBottomRightRadius:z,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=p.complex.parse(t);if(n.length>5)return t;let r=p.complex.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=(0,G.mixNumber)(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function K(t,{layout:e,layoutId:n}){return i.transformProps.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!H[t]||"opacity"===t)}function X(t,e,i){let{style:n}=t,r={};for(let s in n)((0,a.isMotionValue)(n[s])||e.style&&(0,a.isMotionValue)(e.style[s])||K(s,t)||i?.getValue(s)?.liveStyle!==void 0)&&(r[s]=n[s]);return r}t.s(["scaleCorrectors",()=>H],52383),t.s(["isForcedMotionValue",()=>K],19026),t.s(["scrapeMotionValuesFromProps",()=>X],32313);class Y extends B{constructor(){super(...arguments),this.type="html",this.renderInstance=$}readValueFromInstance(t,e){if(i.transformProps.has(e))return this.projection?.isProjecting?(0,n.defaultTransformValue)(e):(0,n.readTransformValue)(t,e);{let i=window.getComputedStyle(t),n=((0,r.isCSSVariableName)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,s.measureViewportBox)(t,e)}build(t,e,i){U(t,e,i.transformTemplate)}
9scrapeMotionValuesFromProps(t,e,i){return X(t,e,i)}}var q=t.i(3973);let Z=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();t.s(["camelToDash",()=>Z],64600);let Q={offset:"stroke-dashoffset",array:"stroke-dasharray"},J={offset:"strokeDashoffset",array:"strokeDasharray"};function tt(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(U(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=h?.transformBox??"fill-box",delete c.transformBox),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?Q:J;t[s.offset]=_.px.transform(-n);let o=_.px.transform(e),a=_.px.transform(i);t[s.array]=`${o} ${a}`}(c,r,s,o,!1)}t.s(["buildSVGAttrs",()=>tt],33203);let te=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"]),ti=t=>"string"==typeof t&&"svg"===t.toLowerCase();function tn(t,e,n){let r=X(t,e,n);for(let n in t)((0,a.isMotionValue)(t[n])||(0,a.isMotionValue)(e[n]))&&(r[-1!==i.transformPropOrder.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]);return r}t.s(["isSVGTag",()=>ti],50514),t.s(["scrapeMotionValuesFromProps",()=>tn],25954);class tr extends B{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=b.createBox}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(i.transformProps.has(e)){let t=(0,q.getDefaultValueType)(e);return t&&t.default||0}return e=te.has(e)?e:Z(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return tn(t,e,i)}build(t,e,i){tt(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in $(t,e,void 0,n),e.attrs)t.setAttribute(te.has(i)?i:Z(i),e.attrs[i])}mount(t){this.isSVGTag=ti(t.tagName),super.mount(t)}}let ts=["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 to(t){if("string"!=typeof t||t.includes("-"));else if(ts.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.s(["isSVGComponent",()=>to],44966);let ta=(t,i)=>to(t)?new tr(i):new Y(i,{allowProjection:t!==e.Fragment});t.s(["createDomVisualElement",()=>ta],54505)},48070,t=>{"use strict";let e=(0,t.i(71645).createContext)({strict:!1});t.s(["LazyContext",()=>e])},88291,82474,86549,11587,8576,t=>{"use strict";var e,i=t.i(71645);let n=(0,i.createContext)({});t.s(["MotionContext",()=>n],88291);var r=t.i(98922),s=t.i(42531);function o(t){let{initial:e,animate:o}=function(t,e){if((0,r.isControllingVariants)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,s.isVariantLabel)(e)?e:void 0,animate:(0,s.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,i.useContext)(n));return(0,i.useMemo)(()=>({initial:e,animate:o}),[a(e),a(o)])}function a(t){return Array.isArray(t)?t.join(" "):t}t.s(["useCreateMotionContext",()=>o],82474);var l=t.i(83411),u=t.i(19026),h=t.i(58768);let c=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function d(t,e,i){for(let n in e)(0,l.isMotionValue)(e[n])||(0,u.isForcedMotionValue)(n,i)||(t[n]=e[n])}t.s(["createHtmlRenderState",()=>c],86549);var p=t.i(33203);let m=()=>({...c(),attrs:{}});t.s(["createSvgRenderState",()=>m],11587);var f=t.i(50514);let g=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 v(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||g.has(t)}let y=t=>!v(t);try{e=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof e&&(y=t=>t.startsWith("on")?!v(t):e(t))}catch{}var x=t.i(44966);function b(t,e,n,{latestValues:r},s,o=!1){let a=((0,x.isSVGComponent)(t)?function(t,e,n,r){let s=(0,i.useMemo)(()=>{let i=m();return(0,p.buildSVGAttrs)(i,e,(0,f.isSVGTag)(r),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};d(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let n,r,s={},o=(n=t.style||{},d(r={},n,t),Object.assign(r,function({transformTemplate:t},e){return(0,i.useMemo)(()=>{let i=c();return(0,h.buildHTMLStyles)(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),r);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=o,s}
9)(e,r,s,t),u=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(y(r)||!0===i&&v(r)||!e&&!v(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,o),g=t!==i.Fragment?{...u,...a,ref:n}:{},{children:P}=e,w=(0,i.useMemo)(()=>(0,l.isMotionValue)(P)?P.get():P,[P]);return(0,i.createElement)(t,{...g,children:w})}t.s(["useRender",()=>b],8576)},11805,28987,1664,13565,21967,25522,83640,79386,4035,t=>{"use strict";var e=t.i(71645),i=t.i(44974),n=t.i(88291),r=t.i(21476),s=t.i(98922),o=t.i(43190),a=t.i(47414),l=t.i(83411);function u(t){return(0,l.isMotionValue)(t)?t.get():t}t.s(["resolveMotionValue",()=>u],28987);let h=t=>(l,h)=>{let c=(0,e.useContext)(n.MotionContext),d=(0,e.useContext)(r.PresenceContext),p=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},n,r,a){return{latestValues:function(t,e,n,r){let a={},l=r(t,{});for(let t in l)a[t]=u(l[t]);let{initial:h,animate:c}=t,d=(0,s.isControllingVariants)(t),p=(0,s.isVariantNode)(t);e&&p&&!d&&!1!==t.inherit&&(void 0===h&&(h=e.initial),void 0===c&&(c=e.animate));let m=!!n&&!1===n.initial,f=(m=m||!1===h)?c:h;if(f&&"boolean"!=typeof f&&!(0,i.isAnimationControls)(f)){let e=Array.isArray(f)?f:[f];for(let i=0;i<e.length;i++){let n=(0,o.resolveVariantFromProps)(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=m?e.length-1:0;e=e[t]}null!==e&&(a[t]=e)}for(let e in t)a[e]=t[e]}}}return a}(n,r,a,t),renderState:e()}})(t,l,c,d);return h?p():(0,a.useConstant)(p)};var c=t.i(86549);let d=h({scrapeMotionValuesFromProps:t.i(32313).scrapeMotionValuesFromProps,createRenderState:c.createHtmlRenderState});t.s(["useHTMLVisualState",()=>d],11805);var p=t.i(11587);let m=h({scrapeMotionValuesFromProps:t.i(25954).scrapeMotionValuesFromProps,createRenderState:p.createSvgRenderState});t.s(["useSVGVisualState",()=>m],1664);var f=t.i(76948);function g(t){for(let e in t)f.featureDefinitions[e]={...f.featureDefinitions[e],...t[e]}}t.s(["loadFeatures",()=>g],13565);let v=Symbol.for("motionComponentSymbol");function y(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function x(t,i,n){return(0,e.useCallback)(e=>{e&&t.onMount&&t.onMount(e),i&&(e?i.mount(e):i.unmount()),n&&("function"==typeof n?n(e):y(n)&&(n.current=e))},[i])}t.s(["motionComponentSymbol",()=>v],21967),t.s(["isRefObject",()=>y],25522),t.s(["useMotionRef",()=>x],83640);let b="data-"+(0,t.i(64600).camelToDash)("framerAppearId");t.s(["optimizedAppearDataAttribute",()=>b],79386);let P=(0,e.createContext)({});t.s(["SwitchLayoutGroupContext",()=>P],4035)},7051,87333,67369,38638,63074,4169,91559,83920,82363,11129,23070,39676,26368,41327,65536,61054,76673,33986,85651,t=>{"use strict";let e;t.i(47167);var i=t.i(43476),n=t.i(71645),r=t.i(31178),s=t.i(48070),o=t.i(37806),a=t.i(88291),l=t.i(82474),u=t.i(8576),h=t.i(44966),c=t.i(11805),d=t.i(1664),p=t.i(92936),m=t.i(76948),f=t.i(13565),g=t.i(21967),v=t.i(83640),y=t.i(79386),x=t.i(21476),b=t.i(4035),P=t.i(25522),w=t.i(74008);function T(t,{forwardMotionProps:e=!1}={},S,M){S&&(0,f.loadFeatures)(S);let V=(0,h.isSVGComponent)(t)?d.useSVGVisualState:c.useHTMLVisualState;function E(h,c){let d,f={...(0,n.useContext)(o.MotionConfigContext),...h,layoutId:function({layoutId:t}){let e=(0,n.useContext)(r.LayoutGroupContext).id;return e&&void 0!==t?e+"-"+t:t}(h)},{isStatic:g}=f,T=(0,l.useCreateMotionContext)(h),S=V(h,g);if(!g&&p.isBrowser){(0,n.useContext)(s.LazyContext).strict;let e=function(t){let{drag:e,layout:i}=m.featureDefinitions;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(f);d=e.MeasureLayout,T.visualElement=function(t,e,i,r,l){let{visualElement:u}=(0,n.useContext)(a.MotionContext),h=(0,n.useContext)(s.LazyContext),c=(0,n.useContext)(x.PresenceContext),d=(0,n.useContext)(o.MotionConfigContext).reducedMotion,p=(0,n.useRef)(null);r=r||h.renderer,!p.current&&r&&(p.current=r(t,{visualState:e,parent:u,props:i,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d}));let m=p.current,f=(0,n.useContext)(b.SwitchLayoutGroupContext);m&&!m.projection&&l&&("html"===m.type||"svg"===m.type)&&function(t,e,
9i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=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&&(0,P.isRefObject)(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(p.current,i,l,f);let g=(0,n.useRef)(!1);(0,n.useInsertionEffect)(()=>{m&&g.current&&m.update(i,c)});let v=i[y.optimizedAppearDataAttribute],T=(0,n.useRef)(!!v&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return(0,w.useIsomorphicLayoutEffect)(()=>{m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),T.current&&m.animationState&&m.animationState.animateChanges())}),(0,n.useEffect)(()=>{m&&(!T.current&&m.animationState&&m.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),T.current=!1),m.enteringChildren=void 0)}),m}(t,S,f,M,e.ProjectionNode)}return(0,i.jsxs)(a.MotionContext.Provider,{value:T,children:[d&&T.visualElement?(0,i.jsx)(d,{visualElement:T.visualElement,...f}):null,(0,u.useRender)(t,h,(0,v.useMotionRef)(S,T.visualElement,c),S,g,e)]})}E.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let A=(0,n.forwardRef)(E);return A[g.motionComponentSymbol]=t,A}function S(t,e){if("undefined"==typeof Proxy)return T;let i=new Map,n=(i,n)=>T(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,T(s,void 0,t,e)),i.get(s))})}t.s(["createMotionProxy",()=>S],7051);var M=t.i(44974),V=t.i(43190);function E(t,e,i){let n=t.getProps();return(0,V.resolveVariantFromProps)(n,e,void 0!==i?i:n.custom,t)}function A(t,e){return t?.[e]??t?.default??t}t.s(["getValueTransition",()=>A],87333);var C=t.i(87022),k=t.i(64440),D=t.i(86427);let L=t=>Array.isArray(t);var R=t.i(46791),j=t.i(83411);function B(t,e){let i=t.getValue("willChange");if((0,j.isMotionValue)(i)&&i.add)return i.add(e);if(!i&&R.MotionGlobalConfig.WillChange){let i=new R.MotionGlobalConfig.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function F(t){return t.props[y.optimizedAppearDataAttribute]}function O(t){t.duration=0,t.type="keyframes"}t.s(["getOptimisedAppearId",()=>F],67369);let N=(t,e)=>i=>e(t(i)),I=(...t)=>t.reduce(N);t.s(["pipe",()=>I],38638);var U=t.i(76959);let $=t=>1e3*t,_=t=>t/1e3;t.s(["millisecondsToSeconds",()=>_,"secondsToMilliseconds",()=>$],63074);var W=t.i(96173);let z={layout:0,mainThread:0,waapi:0};t.s(["activeAnimations",()=>z],4169);var G=t.i(65566),H=t.i(19928),K=t.i(79444),X=t.i(69577),Y=t.i(63011),q=t.i(22660);function Z(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}var Q=t.i(66820);function J(t,e){return i=>i>0?e:t}var tt=t.i(706);let te=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},ti=[Y.hex,Q.rgba,q.hsla];function tn(t){let e=ti.find(e=>e.test(t));if((0,G.warning)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===q.hsla&&(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=Z(a,n,t+1/3),s=Z(a,n,t),o=Z(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 tr=(t,e)=>{let i=tn(t),n=tn(e);if(!i||!n)return J(t,e);let r={...i};return t=>(r.red=te(i.red,n.red,t),r.green=te(i.green,n.green,t),r.blue=te(i.blue,n.blue,t),r.alpha=(0,tt.mixNumber)(i.alpha,n.alpha,t),Q.rgba.transform(r))},ts=new Set(["none","hidden"]);function to(t,e){return i=>(0,tt.mixNumber)(t,e,i)}function ta(t){return"number"==typeof t?to:"string"==typeof t?(0,H.isCSSVariableToken)(t)?J:K.color.test(t)?tr:th:Array.isArray(t)?tl:"object"==typeof t?K.color.test(t)?tr:tu:J}function tl(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>ta(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function tu(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=ta(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let th=(t,e)=>{let i=X.complex.createTransformer(e),n=(0,X.analyseComplexValue)(t),r=(0,X.analyseComplexValue)(e);if(!(n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length))return(0,G.warning)(!0,`Complex values '${t}' and '${e}
9' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),J(t,e);if(ts.has(t)&&!r.values.length||ts.has(e)&&!n.values.length)return ts.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return I(tl(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],o=t.indexes[s][n[s]],a=t.values[o]??0;i[r]=a,n[s]++}return i}(n,r),r.values),i)};function tc(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,tt.mixNumber)(t,e,i):ta(t)(t,e)}let td=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>C.frame.update(e,t),stop:()=>(0,C.cancelFrame)(e),now:()=>C.frameData.isProcessing?C.frameData.timestamp:W.time.now()}},tp=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function tm(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}var tf=t.i(25791);function tg(t,e,i){let n=Math.max(e-5,0);return(0,tf.velocityPerSecond)(i-t(n),e-n)}let tv=.01,ty=2,tx=.005,tb=.5;function tP(t,e){return t*Math.sqrt(1-e*e)}let tw=["duration","bounce"],tT=["stiffness","damping","mass"];function tS(t,e){return e.some(e=>void 0!==t[e])}function tM(t=.3,e=.3){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:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!tS(t,tT)&&tS(t,tw))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*(0,U.clamp)(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:r}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let r,s;(0,G.warning)(t<=$(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=(0,U.clamp)(.05,1,o),t=(0,U.clamp)(.01,10,_(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/tP(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=tP(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));let 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=$(t),isNaN(a))return{stiffness:100,damping:10,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:1}).isResolvedFromDuration=!0}return e}({...n,velocity:-_(n.velocity||0)}),f=p||0,g=h/(2*Math.sqrt(u*c)),v=a-o,y=_(Math.sqrt(u/c)),x=5>Math.abs(v);if(r||(r=x?tv:ty),s||(s=x?tx:tb),g<1){let t=tP(y,g);i=e=>a-Math.exp(-g*y*e)*((f+g*y*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-y*t)*(v+(f+y*v)*t);else{let t=y*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*y*e),n=Math.min(t*e,300);return a-i*((f+g*y*v)*Math.sinh(n)+t*v*Math.cosh(n))/t}}let b={calculatedDuration:m&&d||null,next:t=>{let e=i(t);if(m)l.done=t>=d;else{let n=0===t?f:0;g<1&&(n=0===t?$(f):tg(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(tm(b),2e4),e=tp(e=>b.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return b}function tV({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],m={done:!1,value:p},f=i*e,g=p+f,v=void 0===o?g:o(g);v!==g&&(f=v-p);let y=t=>-f*Math.exp(-t/n),x=t=>v+y(t),b=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?v:i},P=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=tM({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:tg(x,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h})}};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,b(t),P(t)),void 0!==c&&t>=c)?d.next(t-c):(e||b(t),m)}}}tM.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(tm(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:_(r)}}(t,100,tM);return t.ease=e.ease,t.duration=$(e.duration),t.type="keyframes",t};var tE=t.i(60830);let tA=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tC(t,e,i,n){return t===e&&i===n?tE.noop:r=>
90===r||1===r?r:tA(function(t,e,i,n,r){let s,o,a=0;do(s=tA(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12)return o}(r,0,1,t,i),e,n)}let tk=tC(.42,0,1,1),tD=tC(0,0,.58,1),tL=tC(.42,0,.58,1),tR=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tj=t=>e=>1-t(1-e),tB=tC(.33,1.53,.69,.99),tF=tj(tB),tO=tR(tF),tN=t=>(t*=2)<1?.5*tF(t):.5*(2-Math.pow(2,-10*(t-1))),tI=t=>1-Math.sin(Math.acos(t)),tU=tj(tI),t$=tR(tI);t.s(["circIn",()=>tI,"circInOut",()=>t$,"circOut",()=>tU],91559);let t_=t=>Array.isArray(t)&&"number"==typeof t[0],tW={linear:tE.noop,easeIn:tk,easeInOut:tL,easeOut:tD,circIn:tI,circInOut:t$,circOut:tU,backIn:tF,backInOut:tO,backOut:tB,anticipate:tN},tz=t=>{if(t_(t)){(0,G.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return tC(e,i,n,r)}return"string"==typeof t?((0,G.invariant)(void 0!==tW[t],`Invalid easing type '${t}'`,"invalid-easing-type"),tW[t]):t},tG=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function tH({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let s,o=Array.isArray(n)&&"number"!=typeof n[0]?n.map(tz):tz(n),a={done:!1,value:e[0]},l=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if((0,G.invariant)(s===e.length,"Both input and output ranges must be the same length","range-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||R.MotionGlobalConfig.mix||tc,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=I(Array.isArray(e)?e[i]||tE.noop: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=tG(t[n],t[n+1],i);return a[n](r)};return i?e=>u((0,U.clamp)(t[0],t[s-1],e)):u}((r=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=tG(0,e,n);t.push((0,tt.mixNumber)(i,1,r))}}(s=[0],e.length-1),s),r.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||tL).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}t.s(["progress",()=>tG],83920);let tK=t=>null!==t;function tX(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(tK),o=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}let tY={decay:tV,inertia:tV,tween:tH,keyframes:tH,spring:tM};function tq(t){"string"==typeof t.type&&(t.type=tY[t.type])}class tZ{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let tQ=t=>t/100;class tJ extends tZ{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==W.time.now()&&this.tick(W.time.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},z.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;tq(t);let{type:e=tH,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,a=e||tH;a!==tH&&"number"!=typeof o[0]&&(this.mixKeyframes=I(tQ,tc(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=tm(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:c,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let y=this.currentTime,x=i;if(h){let t=Math.min(this.currentTime,n)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,h+1))%2&&("reverse"===c?(i=1-i,d&&(i-=d/
9o)):"mirror"===c&&(x=s)),y=(0,U.clamp)(0,1,i)*o}let b=v?{done:!1,value:u[0]}:x.next(y);r&&(b.value=r(b.value));let{done:P}=b;v||null===a||(P=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return w&&p!==tV&&(b.value=tX(u,this.options,f,this.speed)),m&&m(b.value),w&&this.finish(),b}then(t,e){return this.finished.then(t,e)}get duration(){return _(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+_(t)}get time(){return _(this.currentTime)}set time(t){t=$(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(W.time.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=_(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=td,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(W.time.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,z.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}var t0=t.i(21012);function t1(t){let e;return()=>(void 0===e&&(e=t()),e)}let t6=t1(()=>void 0!==window.ScrollTimeline);var t5=t.i(80248);let t4={},t2=(e=t1(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>t4.linearEasing??e()),t3=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,t9={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t3([0,.65,.55,1]),circOut:t3([.55,0,1,.45]),backIn:t3([.31,.01,.66,-.59]),backOut:t3([.33,1.53,.69,.99])};function t7(t){return"function"==typeof t&&"applyToOptions"in t}class t8 extends tZ{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,(0,G.invariant)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return t7(t)&&t2()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?t2()?tp(e,i):"ease-out":t_(e)?t3(e):Array.isArray(e)?e.map(e=>t(e,i)||t9.easeOut):t9[e]}(a,r);Array.isArray(c)&&(h.easing=c),t5.statsBuffer.value&&z.waapi++;let d={delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(d.pseudoElement=u);let p=t.animate(h,d);return t5.statsBuffer.value&&p.finished.finally(()=>{z.waapi--}),p}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=tX(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return _(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+_(t)}get time(){return _(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=$(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&t6())?(this.animation.timeline=t,tE.noop):e(this)}}let et={anticipate:tN,backInOut:tO,circInOut:t$};class ee extends t8{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in et&&(t.ease=et[t.ease])}(t),tq(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new tJ({...s,autoplay:!1}),a=$(this.finishedTime??this.time);e.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}let ei=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(X.complex.test(t)||"0"===t)&&!t.startsWith("url(")),en=new Set(["opacity","clipPath","filter","transform"]),er=t1(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class es extends tZ{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=W.time.now();const c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},d=u?.KeyframeResolver||t0.KeyframeResolver;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:r,type:s,velocity:o,delay:a,isHandoff:l,onUpdate:u}=i;
9this.resolvedAt=W.time.now(),!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=ei(r,e),a=ei(s,e);return(0,G.warning)(o===a,`You are trying to animate ${e} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!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||t7(i))&&n)}(t,r,s,o)&&((R.MotionGlobalConfig.instantAnimations||!a)&&u?.(tX(t,i,e)),t[0]=t[t.length-1],O(i),i.repeat=0);let h={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},c=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return er()&&i&&en.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(h)?new ee({...h,element:h.motionValue.owner.current}):new tJ(h);c.finished.then(()=>this.notifyFinished()).catch(tE.noop),this.pendingTimeline&&(this.stopTimeline=c.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=c}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,t0.flushKeyframeResolvers)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let eo=t=>null!==t;var ea=t.i(57788);let el={type:"spring",stiffness:500,damping:25,restSpeed:10},eu={type:"keyframes",duration:.8},eh={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ec=(t,e,i,n={},r,s)=>o=>{let a=A(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=$(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)&&Object.assign(h,((t,{keyframes:e})=>e.length>2?eu:ea.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:el:eh)(t,h)),h.duration&&(h.duration=$(h.duration)),h.repeatDelay&&(h.repeatDelay=$(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(O(h),0===h.delay&&(c=!0)),(R.MotionGlobalConfig.instantAnimations||R.MotionGlobalConfig.skipAnimations)&&(c=!0,O(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,c&&!s&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(eo),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return r[s]}(h.keyframes,a);if(void 0!==t)return void C.frame.update(()=>{h.onUpdate(t),h.onComplete()})}return a.isSync?new tJ(h):new es(h)};function ed(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:o,...a}=e;n&&(s=n);let l=[],u=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let n=t.getValue(e,t.latestValues[e]??null),r=a[e];if(void 0===r||u&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(u,e))continue;let o={delay:i,...A(s||{},e)},h=n.get();if(void 0!==h&&!n.isAnimating&&!Array.isArray(r)&&r===h&&!o.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){let i=F(t);if(i){let t=window.MotionHandoffAnimation(i,e,C.frame);null!==t&&(o.startTime=t,c=!0)}}B(t,e),n.start(ec(e,n,r,t.shouldReduceMotion&&k.positionalKeys.has(e)?{type:!1}:o,t,c));let d=n.animation;d&&l.push(d)}return o&&Promise.all(l).then(()=>{C.frame.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=E(t,e)||{};for(let e in r={...r,...i}){var s;let i=L(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,D.motionValue)(i))}}(t,o)})}),l}function ep(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function em(t,e,i={}){let n=E(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(ed(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;
9return function(t,e,i=0,n=0,r=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(em(l,e,{...o,delay:i+("function"==typeof n?0:n)+ep(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,s,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}function ef(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}t.s(["animateMotionValue",()=>ec],82363);var eg=t.i(42531),ev=t.i(89607);let ey=ev.variantProps.length,ex=[...ev.variantPriorityOrder].reverse(),eb=ev.variantPriorityOrder.length;function eP(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ew(){return{animate:eP(!0),whileInView:eP(),whileHover:eP(),whileTap:eP(),whileDrag:eP(),whileFocus:eP(),exit:eP()}}class eT{constructor(t){this.isMounted=!1,this.node=t}update(){}}t.s(["Feature",()=>eT],11129);let eS=0,eM={animation:{Feature:class extends eT{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=>em(t,e,i)));else if("string"==typeof e)n=em(t,e,i);else{let r="function"==typeof e?E(t,e,i.custom):e;n=Promise.all(ed(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=ew(),n=!0,r=e=>(i,n)=>{let r=E(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function s(s){let{props:o}=t,a=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<ey;t++){let n=ev.variantProps[t],r=e.props[n];((0,eg.isVariantLabel)(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},l=[],u=new Set,h={},c=1/0;for(let e=0;e<eb;e++){var d,p;let m=ex[e],f=i[m],g=void 0!==o[m]?o[m]:a[m],v=(0,eg.isVariantLabel)(g),y=m===s?f.isActive:null;!1===y&&(c=e);let x=g===a[m]&&g!==o[m]&&v;if(x&&n&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...h},!f.isActive&&null===y||!g&&!f.prevProp||(0,M.isAnimationControls)(g)||"boolean"==typeof g)continue;let b=(d=f.prevProp,"string"==typeof(p=g)?p!==d:!!Array.isArray(p)&&!ef(p,d)),P=b||m===s&&f.isActive&&!x&&v||e>c&&v,w=!1,T=Array.isArray(g)?g:[g],S=T.reduce(r(m),{});!1===y&&(S={});let{prevResolvedValues:V={}}=f,A={...V,...S},C=e=>{P=!0,u.has(e)&&(w=!0,u.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in A){let e=S[t],i=V[t];if(!h.hasOwnProperty(t))(L(e)&&L(i)?ef(e,i):e===i)?void 0!==e&&u.has(t)?C(t):f.protectedKeys[t]=!0:null!=e?C(t):u.add(t)}f.prevProp=g,f.prevResolvedValues=S,f.isActive&&(h={...h,...S}),n&&t.blockInitialAnimation&&(P=!1);let k=x&&b,D=!k||w;P&&D&&l.push(...T.map(e=>{let i={type:m};if("string"==typeof e&&n&&!k&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=E(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=ep(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof o.initial){let i=E(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let m=!!l.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=s(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=ew()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,M.isAnimationControls)(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(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends eT{constructor(){super(...arguments),this.id=eS++}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(()=>
9{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};t.s(["animations",()=>eM],23070);let eV={x:!1,y:!1};function eE(){return eV.x||eV.y}t.s(["isDragActive",()=>eE,"isDragging",()=>eV],39676);var eA=t.i(65091);function eC(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}t.s(["addDomEvent",()=>eC],26368);let ek=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function eD(t){return{point:{x:t.pageX,y:t.pageY}}}t.s(["isPrimaryPointer",()=>ek],41327);let eL=t=>e=>ek(e)&&t(e,eD(e));function eR(t,e,i,n){return eC(t,e,eL(i),n)}t.s(["addPointerInfo",()=>eL,"extractEventInfo",()=>eD],65536);var ej=t.i(49587);function eB(t){return t.max-t.min}function eF(t,e,i){return Math.abs(t-e)<=i}function eO(t,e,i,n=.5){t.origin=n,t.originPoint=(0,tt.mixNumber)(e.min,e.max,t.origin),t.scale=eB(i)/eB(e),t.translate=(0,tt.mixNumber)(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 eN(t,e,i,n){eO(t.x,e.x,i.x,n?n.originX:void 0),eO(t.y,e.y,i.y,n?n.originY:void 0)}function eI(t,e,i){t.min=i.min+e.min,t.max=t.min+eB(e)}function eU(t,e,i){eI(t.x,e.x,i.x),eI(t.y,e.y,i.y)}function e$(t,e,i){t.min=e.min-i.min,t.max=t.min+eB(e)}function e_(t,e,i){e$(t.x,e.x,i.x),e$(t.y,e.y,i.y)}t.s(["calcBoxDelta",()=>eN,"calcLength",()=>eB,"calcRelativeBox",()=>eU,"calcRelativePosition",()=>e_,"isNear",()=>eF],61054);var eW=t.i(81699);function ez(t){return[t("x"),t("y")]}t.s(["eachAxis",()=>ez],76673);var eG=t.i(45504);let eH=({current:t})=>t?t.ownerDocument.defaultView:null,eK=(t,e)=>Math.abs(t-e);class eX{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=eZ(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(eK(t.x,e.x)**2+eK(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=C.frameData;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=eY(e,this.transformPagePoint),C.frame.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=eZ("pointercancel"===t.type?this.lastMoveEventInfo:eY(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!ek(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;const o=eY(eD(t),this.transformPagePoint),{point:a}=o,{timestamp:l}=C.frameData;this.history=[{...a,timestamp:l}];const{onSessionStart:u}=e;u&&u(t,eZ(o,this.history)),this.removeListeners=I(eR(this.contextWindow,"pointermove",this.handlePointerMove),eR(this.contextWindow,"pointerup",this.handlePointerUp),eR(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,C.cancelFrame)(this.updatePoint)}}function eY(t,e){return e?{point:e(t.point)}:t}function eq(t,e){return{x:t.x-e.x,y:t.y-e.y}}function eZ({point:t},e){return{point:t,delta:eq(t,eQ(e)),offset:eq(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=eQ(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>$(.1)));)i--;if(!n)return{x:0,y:0};let s=_(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};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function eQ(t){return t[t.length-1]}function eJ(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 e0(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 e1(t,e,i){return{min:e6(t,e),max:e6(t,i)}}function e6(t,e){return"number"==typeof t?t:t[e]||0}let e5=new WeakMap;class e4{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=(0,eW.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(eD(t).point)},s=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(eV[t])return null;else return eV[t]=!0,()=>{eV[t]=!1};return eV.x||eV.y?null:(eV.x=eV.y=!0,()=>{eV.x=eV.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ez(t=>{let e=this.getAxisMotionValue(t).get()||0;if(eA.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];
9n&&(e=eB(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&C.frame.postRender(()=>r(t,e)),B(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=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)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>ez(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new eX(t,{onSessionStart:r,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:eH(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&C.frame.postRender(()=>o(i,n))}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||!e2(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?(0,tt.mixNumber)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,tt.mixNumber)(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&(0,P.isRefObject)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:eJ(t.x,i,r),y:eJ(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:e1(t,"left","right"),y:e1(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ez(t=>{var e,n;let r;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],r={},void 0!==n.min&&(r.min=n.min-e.min),void 0!==n.max&&(r.max=n.max-e.min),r))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,P.isRefObject)(e))return!1;let n=e.current;(0,G.invariant)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=(0,eG.measurePageBox)(n,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:e0(t.x,s.x),y:e0(t.y,s.y)});if(i){let t=i((0,ej.convertBoxToBoundingBox)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,ej.convertBoundingBoxToBox)(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(ez(o=>{if(!e2(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 B(this.visualElement,t),i.start(ec(t,i,0,e,this.visualElement,!1))}stopAnimation(){ez(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ez(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.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){ez(e=>{let{drag:i}=this.getProps();if(!e2(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]-(0,tt.mixNumber)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,P.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};ez(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,r;let s,o,a,l=e.get();n[t]=(i={min:l,max:l},r=this.constraints[t],s=.5,o=eB(i),(a=eB(r))>o?s=tG(r.min,r.max-o,i.min):o>a&&(s=tG(i.min,i.max-a,r.min)),(0,U.clamp)(0,1,s))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),ez(e=>{if(!e2(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,tt.mixNumber)(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;e5.set(this.visualElement,this);let t=eR(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();(0,P.isRefObject)(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()),C.frame.read(e);let r=eC(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(ez(e=>{let i=this.getAxisMotionValue(e);
9i&&(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 e2(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class e3 extends eT{constructor(t){super(t),this.removeGroupControls=tE.noop,this.removeListeners=tE.noop,this.controls=new e4(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tE.noop}unmount(){this.removeGroupControls(),this.removeListeners()}}t.s(["DragGesture",()=>e3],33986);let e9=t=>(e,i)=>{t&&C.frame.postRender(()=>t(e,i))};class e7 extends eT{constructor(){super(...arguments),this.removePointerDownListener=tE.noop}onPointerDown(t){this.session=new eX(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eH(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:e9(t),onStart:e9(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&C.frame.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=eR(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}t.s(["PanGesture",()=>e7],85651)},77397,30177,t=>{"use strict";var e=t.i(43476),i=t.i(87022),n=t.i(60140),r=t.i(71645),s=t.i(64978),o=t.i(31178),a=t.i(4035);let l={hasAnimatedSinceResize:!0,hasEverUpdated:!1};t.s(["globalProjectionState",()=>l],30177);let u=!1;class h extends r.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),u&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),l.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:r,isPresent:s}=this.props,{projection:o}=n;return o&&(o.isPresent=s,u=!0,r||t.layoutDependency!==e||void 0===e||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||i.frame.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),n.microtask.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;u=!0,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 c(t){let[i,n]=(0,s.usePresence)(),l=(0,r.useContext)(o.LayoutGroupContext);return(0,e.jsx)(h,{...t,layoutGroup:l,switchLayoutGroup:(0,r.useContext)(a.SwitchLayoutGroupContext),isPresent:i,safeToRemove:n})}t.s(["MeasureLayout",()=>c],77397)},46816,49048,73089,57512,99642,t=>{"use strict";var e=t.i(33986),i=t.i(85651),n=t.i(77397),r=t.i(80248),s=t.i(42824);function o(t){return(0,s.isObject)(t)&&"ownerSVGElement"in t}var a=t.i(87022),l=t.i(87333),u=t.i(96173),h=t.i(60140),c=t.i(4169),d=t.i(86427),p=t.i(706),m=t.i(70596),f=t.i(76959),g=t.i(60830),v=t.i(83411),y=t.i(82363),x=t.i(67369),b=t.i(33887);let P=(t,e)=>t.depth-e.depth;class w{constructor(){this.children=[],this.isDirty=!1}add(t){(0,b.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,b.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(P),this.isDirty=!1,this.children.forEach(t)}}t.i(63074);var T=t.i(28987),S=t.i(65091),M=t.i(83920),V=t.i(91559);let E=["TopLeft","TopRight","BottomLeft","BottomRight"],A=E.length,C=t=>"string"==typeof t?parseFloat(t):t,k=t=>"number"==typeof t||S.px.test(t);function D(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let L=j(0,.5,V.circOut),R=j(.5,.95,g.noop);function j(t,e,i){return n=>n<t?0:n>e?1:i((0,M.progress)(t,e,n))}function B(t,e){t.min=e.min,t.max=e.max}function F(t,e){B(t.x,e.x),B(t.y,e.y)}function O(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var N=t.i(89234),I=t.i(61054);function U(t,e,i,n,r){return t-=e,t=(0,N.scalePoint)(t,1/i,n),void 0!==r&&(t=(0,N.scalePoint)(t,1/r,n)),t}function $(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(S.percent.test(e)&&(e=parseFloat(e),e=(0,p.mixNumber)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,p.mixNumber)(s.min,s.max,n);t===s&&(a-=e),t.min=U(t.min,e,i,a,r),t.max=U(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let _=["x","scaleX","originX"],W=["y","scaleY","originY"];function z(t,e,i,n){$(t.x,e,_,i?i.x:void 0,n?n.x:void 0),$(t.y,e,W,i?i.y:void 0,n?n.y:void 0)}var G=t.i(81699);function H(t){return 0===t.translate&&1===t.scale}function K(t){return H(t.x)&&H(t.y)}function X(t,e){return t.min===e.min&&t.max===e.max}function Y(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function q(t,e){return Y(t.x,e.x)&&Y(t.y,e.y)}function Z(t){return(0,I.calcLength)(t.x)/(0,I.calcLength)(t.y)}function Q(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class J{constructor(){this.members=[]}add(t){(0,b.addUniqueItem)(this.members,t),t.scheduleRender()}remove(t){if((0,b.removeItem)(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)}
9}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)}}var tt=t.i(52383),te=t.i(76673),ti=t.i(72696),tn=t.i(30177);let tr={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ts=["","X","Y","Z"],to=0;function ta(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function tl({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=to++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,r.statsBuffer.value&&(tr.nodes=tr.calculatedTargetDeltas=tr.calculatedProjections=0),this.nodes.forEach(tc),this.nodes.forEach(ty),this.nodes.forEach(tx),this.nodes.forEach(td),r.statsBuffer.addProjectionMetrics&&r.statsBuffer.addProjectionMetrics(tr)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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 w)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new m.SubscriptionManager),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){if(this.instance)return;this.isSVG=o(e)&&!(o(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,r=()=>this.root.updateBlockedByResize=!1;a.frame.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,s;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=u.time.now(),s=({timestamp:t})=>{let i=t-e;i>=250&&((0,a.cancelFrame)(s),r(i-250))},a.frame.setup(s,!0),i=()=>(0,a.cancelFrame)(s),tn.globalProjectionState.hasAnimatedSinceResize&&(tn.globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(tv))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||tM,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),u=!this.targetLayout||!q(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,l.getValueTransition)(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||tv(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,this.eventHandlers.clear(),(0,a.cancelFrame)(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.forEac
9h(tb),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=(0,x.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",a.frame,!(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.forEach(tm);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(tf);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(tg),this.nodes.forEach(tu),this.nodes.forEach(th)):this.nodes.forEach(tf),this.clearAllSnapshots();let t=u.time.now();a.frameData.delta=(0,f.clamp)(0,1e3/60,t-a.frameData.timestamp),a.frameData.timestamp=t,a.frameData.isProcessing=!0,a.frameSteps.update.process(a.frameData),a.frameSteps.preRender.process(a.frameData),a.frameSteps.render.process(a.frameData),a.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,h.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tp),this.sharedNodes.forEach(tP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,a.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){a.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,I.calcLength)(this.snapshot.measuredBox.x)||(0,I.calcLength)(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=(0,G.createBox)(),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&&this.instance){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(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!K(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,ti.hasTransform)(this.latestValues)||r)&&(s(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)),tA((e=n).x),tA(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,G.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tk))){let{scroll:t}=this.root;t&&((0,N.translateAxis)(e.x,t.offset.x),(0,N.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,G.createBox)();if(F(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&F(e,t),(0,N.translateAxis)(e.x,r.offset.x),(0,N.translateAxis)(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let i=(0,G.createBox)();F(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&&(0,N.transformBox)(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,ti.hasTransform)(n.latestValues)&&(0,N.transformBox)(i,n.latestValues)}return(0,ti.hasTransform)(this.latestValues)&&(0,N.transformBox)(i,this.latestValues),i}removeTransform(t){let e=(0,G.createBox)();F(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,ti.hasTransform)(i.latestValues))continue;(0,ti.hasScale)(i.latestValues)&&i.updateSnapshot();let n=(0,G.createBox)();F(n,i.measurePageBox()),z(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return(0,ti.hasTransform)(this.latestValues)&&z(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!==a.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=a.frameData.timestamp;let o=this.getClosestProjectingParent();o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=(0,G.createBox)(),this.targetWithTransforms=(0,G.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,I.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):F(this.target,this.layout.layoutBox),(0,N.applyBoxDelta)(this.target,this.targetDelta)):F(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),r.statsBuffer.value&&tr.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||(0,ti.hasScale)(this.parent.latestValues)||(0,ti.has2DTranslate)(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)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,G.createBox)(),this.relativeTargetOrigin=(0,G.createBox)(),(0,I.calcRelativePosition)(this.relativeTargetOrigin,e,i),F(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
9if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===a.frameData.timestamp&&(i=!1),i)return;let{layout:n,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||!(n||s))return;F(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,l=this.treeScale.y;(0,N.applyTreeDeltas)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,G.createBox)());let{target:u}=t;if(!u){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(O(this.prevProjectionDelta.x,this.projectionDelta.x),O(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,I.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.treeScale.x===o&&this.treeScale.y===l&&Q(this.projectionDelta.x,this.prevProjectionDelta.x)&&Q(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),r.statsBuffer.value&&tr.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,G.createDelta)(),this.projectionDelta=(0,G.createDelta)(),this.projectionDeltaWithTransform=(0,G.createDelta)()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=(0,G.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,G.createBox)(),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&&!0===this.options.crossfade&&!this.path.some(tS));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(tw(o.x,t.x,n),tw(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,m,f,g,v;(0,I.calcRelativePosition)(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m=this.relativeTarget,f=this.relativeTargetOrigin,g=a,v=n,tT(m.x,f.x,g.x,v),tT(m.y,f.y,g.y,v),i&&(u=this.relativeTarget,d=i,X(u.x,d.x)&&X(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,G.createBox)()),F(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,p.mixNumber)(0,i.opacity??1,L(n)),t.opacityExit=(0,p.mixNumber)(e.opacity??1,0,R(n))):s&&(t.opacity=(0,p.mixNumber)(e.opacity??1,i.opacity??1,n));for(let r=0;r<A;r++){let s=`border${E[r]}Radius`,o=D(e,s),a=D(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||k(o)===k(a)?(t[s]=Math.max((0,p.mixNumber)(C(o),C(a),n),0),(S.percent.test(a)||S.percent.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,p.mixNumber)(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?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,a.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=a.frame.update(()=>{var e,i,n;let r;tn.globalProjectionState.hasAnimatedSinceResize=!0,c.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,d.motionValue)(0)),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{c.activeAnimations.layout--},onComplete:()=>{c.activeAnimations.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(r=(0,v.isMotionValue)(e)?e:(0,d.motionValue)(e)).start((0,y.animateMotionValue)("",r,i,n)),r.animation),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&&tC(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,G.createBox)();let e=(0,I.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=(0,I.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}F(e,i),(0,N.transformBox)(e,r),(0,I.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new J),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(){let{layoutId:t}=this.options;
9return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.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&&ta("z",t,n,this.animationValues);for(let e=0;e<ts.length;e++)ta(`rotate${ts[e]}`,t,n,this.animationValues),ta(`skew${ts[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()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=(0,T.resolveMotionValue)(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,T.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!(0,ti.hasTransform)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=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,r);i&&(s=i(r,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,tt.scaleCorrectors){if
9(void 0===r[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=tt.scaleCorrectors[e],l="none"===s?r[e]:i(r[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?(0,T.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(tm),this.root.sharedNodes.clear()}}}function tu(t){t.updateLayout()}function th(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;"size"===r?(0,te.eachAxis)(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=(0,I.calcLength)(n);n.min=i[t].min,n.max=n.min+r}):tC(r,e.layoutBox,i)&&(0,te.eachAxis)(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=(0,I.calcLength)(i[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=(0,G.createDelta)();(0,I.calcBoxDelta)(o,i,e.layoutBox);let a=(0,G.createDelta)();s?(0,I.calcBoxDelta)(a,t.applyTransform(n,!0),e.measuredBox):(0,I.calcBoxDelta)(a,i,e.layoutBox);let l=!K(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=(0,G.createBox)();(0,I.calcRelativePosition)(o,e.layoutBox,r.layoutBox);let a=(0,G.createBox)();(0,I.calcRelativePosition)(a,i,s.layoutBox),q(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function tc(t){r.statsBuffer.value&&tr.nodes++,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 td(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tp(t){t.clearSnapshot()}function tm(t){t.clearMeasurements()}function tf(t){t.isLayoutDirty=!1}function tg(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tv(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ty(t){t.resolveTargetDelta()}function tx(t){t.calcProjection()}function tb(t){t.resetSkewAndRotation()}function tP(t){t.removeLeadSnapshot()}function tw(t,e,i){t.translate=(0,p.mixNumber)(e.translate,0,i),t.scale=(0,p.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tT(t,e,i,n){t.min=(0,p.mixNumber)(e.min,i.min,n),t.max=(0,p.mixNumber)(e.max,i.max,n)}function tS(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tM={duration:.45,ease:[.4,0,.1,1]},tV=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tE=tV("applewebkit/")&&!tV("chrome/")?Math.round:g.noop;function tA(t){t.min=tE(t.min),t.max=tE(t.max)}function tC(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,I.isNear)(Z(e),Z(i),.2)}function tk(t){return t!==t.root&&t.scroll?.wasRoot}var tD=t.i(26368);let tL=tl({attachResizeListener:(t,e)=>(0,tD.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tR={current:void 0},tj=tl({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tR.current){let t=new tL({});t.mount(window),t.setOptions({layoutScroll:!0}),tR.current=t}return tR.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});t.s(["HTMLProjectionNode",()=>tj],49048);let tB={pan:{Feature:i.PanGesture},drag:{Feature:e.DragGesture,ProjectionNode:tj,MeasureLayout:n.MeasureLayout}};t.s(["drag",()=>tB],46816);var tF=t.i(39676);
9function tO(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function tN(t){return!("touch"===t.pointerType||(0,tF.isDragActive)())}t.s(["setupGesture",()=>tO],73089);var tI=t.i(65536),tU=t.i(11129);function t$(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&a.frame.postRender(()=>r(e,(0,tI.extractEventInfo)(e)))}class t_ extends tU.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=tO(t,i),o=t=>{if(!tN(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let s=t=>{tN(t)&&(n(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,r)};return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}(t,(t,e)=>(t$(this.node,e,"Start"),t=>t$(this.node,t,"End"))))}unmount(){}}t.s(["HoverGesture",()=>t_],57512);var tW=t.i(38638),tz=tU;class tG extends tz.Feature{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=(0,tW.pipe)((0,tD.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,tD.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}t.s(["FocusGesture",()=>tG],99642)},46932,t=>{"use strict";var e=t.i(54505),i=t.i(7051),n=t.i(23070),r=t.i(46816),s=t.i(57512),o=t.i(99642),a=t.i(72846),l=t.i(39676);let u=(t,e)=>!!e&&(t===e||u(t,e.parentElement));var h=t.i(41327),c=t.i(73089);let d=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),p=new WeakSet;function m(t){return e=>{"Enter"===e.key&&t(e)}}function f(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function g(t){return(0,h.isPrimaryPointer)(t)&&!(0,l.isDragActive)()}var v=t.i(87022),y=t.i(65536),x=t.i(11129);function b(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&v.frame.postRender(()=>r(e,(0,y.extractEventInfo)(e)))}class P extends x.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=(0,c.setupGesture)(t,i),o=t=>{let n=t.currentTarget;if(!g(t))return;p.add(n);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),p.has(n)&&p.delete(n),g(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||u(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),(0,a.isHTMLElement)(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=m(()=>{if(p.has(i))return;f(i,"down");let t=m(()=>{f(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>f(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,r)),d.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(b(this.node,e,"Start"),(t,{success:e})=>b(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}var w=x;let T=new WeakMap,S=new WeakMap,M=t=>{let e=T.get(t.target);e&&e(t)},V=t=>{t.forEach(M)},E={some:0,all:1};class A extends w.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=i,a={root:n?n.current:void 0,rootMargin:r,threshold:"number"==typeof s?s:E[s]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!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(),r=e?i:n;r&&r(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;S.has(i)||S.set(i,{});
9let n=S.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(V,{root:t,...e})),n[r]}(a),T.set(t,l),e.observe(t),()=>{T.delete(t),e.unobserve(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 C={inView:{Feature:A},tap:{Feature:P},focus:{Feature:o.FocusGesture},hover:{Feature:s.HoverGesture}};var k=t.i(49048),D=t.i(77397);let L={layout:{ProjectionNode:k.HTMLProjectionNode,MeasureLayout:D.MeasureLayout}},R={...n.animations,...C,...r.drag,...L},j=(0,i.createMotionProxy)(R,e.createDomVisualElement);t.s(["motion",()=>j],46932)},18566,(t,e,i)=>{e.exports=t.r(76562)},81945,t=>{"use strict";let e={id:"cotizar-seguro",title:"Cotizá tu seguro",link:"https://ventas.nortebeneficios.com.ar:51626/abm/cotizador_paso_1",esLinkExterno:!0},i="https://pagos.nortebeneficios.com.ar:51900/login/dni",n=[{id:"pagar-servicios",title:"Pagar servicios",link:i,esLinkExterno:!0},{id:"quiero-afiliarme",title:"Quiero afiliarme",link:e.link,esLinkExterno:e.esLinkExterno}],r=[{id:"index-link",title:"Entrar al sitio web",link:"/sitio-web",esLinkExterno:!1},{id:"quiero-afiliarme",title:"Quiero afiliarme",link:e.link,esLinkExterno:!0},{id:"pagar-servicios",title:"Pagar servicios",link:i,esLinkExterno:!0},{id:"urgencias-24",title:"Urgencias 24hs",link:"/contacto",esLinkExterno:!1},{id:"obituarios",title:"Obituarios",link:"/obituarios",esLinkExterno:!1}];t.s(["linkAsesor",0,{id:"hablar-con-asesor",title:"Hablar con un asesor",link:"https://wa.me/5493854386681",esLinkExterno:!1},"linkCotizador",0,e,"linksPrehome",0,r,"menuPrincipal",0,[{id:"nosotros",title:"Nosotros",tieneSubmenu:!1,submenu:[{id:"nuestra-historia",title:"Nuestra historia",link:"/nosotros",esLinkExterno:!1}],link:"/nosotros",esLinkExterno:!1},{id:"servicios",title:"Servicios",tieneSubmenu:!0,submenu:[{id:"todos-servicios",title:"Todos nuestros servicios",link:"/servicios",esLinkExterno:!1},{id:"planes",title:"Planes",link:"/servicios#planes",esLinkExterno:!1},{id:"listaprofesionales",title:"Lista de profesionales",link:"/profesionales",esLinkExterno:!1},{id:"faq",title:"Preguntas frecuentes",link:"/preguntas-frecuentes",esLinkExterno:!1},{id:"obituarios",title:"Obituarios",link:"/obituarios",esLinkExterno:!1}],link:"/servicios",esLinkExterno:!1},{id:"sucursales",title:"Sucursales",tieneSubmenu:!0,submenu:[{id:"oficinasatencion",title:"Oficinas de atención",link:"/sucursales#oficinas",esLinkExterno:!1},{id:"salasvelatorias",title:"Salas velatorias",link:"/sucursales#salasvelatorias",esLinkExterno:!1},{id:"contacto",title:"Contacto",link:"/contacto",esLinkExterno:!1}],link:"/sucursales",esLinkExterno:!1},{id:"contenido-para-vos",title:"Contenido para vos",tieneSubmenu:!1,submenu:[],link:"/contenido",esLinkExterno:!1}],"menuSecundario",0,n,"telefonoAfiliaciones",0,{id:"telefono-afiliaciones",numero:"+5493854386681",titulo:"Quiero afiliarme",esLink:!0,link:"https://wa.me/5493854386681"},"telefonoSocios",0,{id:"telefono-socios",numero:"+543855066035",titulo:"Socios",esLink:!0,link:"https://wa.me/5493855066035"},"telefonoUrgenciasFunerarias",0,{id:"telefono-urgencias-funerarias",numero:"(0385) 4219787",titulo:"Urgencias Funerarias",esLink:!1,link:""}])},82791,t=>{"use strict";var e=t.i(43476),i=t.i(88653),n=t.i(46932),r=t.i(22016),s=t.i(18566),o=t.i(71645),a=t.i(81945);t.s(["default",0,function(){let[t,l]=(0,o.useState)(!1),u=(0,o.useRef)(null),h=(0,o.useRef)(null),c=(0,s.usePathname)(),[d,p]=(0,o.useState)(null),m=()=>{l(t=>!t)},f=(t,e)=>!!c.includes(t)||!!e&&e.some(t=>c.includes(t.link));return(0,o.useEffect)(()=>{function e(t){u.current&&!u.current.contains(t.target)&&h.current&&!h.current.contains(t.target)&&l(!1)}return t?document.addEventListener("mousedown",e):document.removeEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[t]),(0,e.jsxs)("div",{className:"z-50 flex h-16 w-full flex-row items-center justify-evenly bg-white px-6 shadow-md",children:[(0,e.jsx)("div",{className:"navbar-start w-full min-w-11 gap-4 md:w-fit",children:(0,e.jsx)(r.default,{href:"/",className:"cursor-pointer",children:(0,e.jsx)("img",{src:"/images/logos/logo.png",alt:"Logo de Norte Beneficios",width:44,height:44})})}),(0,e.jsx)("div",{className:"navbar-center hidden pl-6 md:flex",children:(0,e.jsx)("ul",{className:"menu menu-horizontal gap-x-2 px-1",children:a.menuPrincipal.map(t=>(0,e.jsx)("li",{children:t.tieneSubmenu?(0,e.jsxs)("div",{className:"dropdown dropdown-hover group p-0 hover:bg-transparent",onMouseEnter:()=>{var e;return e=t.id,void p(t=>t===e?null:e)},onMouseLeave:()=>p(null),children:[(0,e.jsx)(r.default,{href:t.link,children:(0,e.jsx)("div",{tabIndex:0,role:"button",className:`btn text-custom-primary group-hover:bg-custom-accent-2 active:bg-custom-accent-2 roun
9ded-lg bg-white transition-all duration-200 group-hover:rounded-b-none group-hover:text-white hover:rounded-b-none active:rounded-b-none active:text-white ${f(t.link,t.submenu)?"bg-navbar-active":""}`,children:t.title})}),d===t.id&&(0,e.jsx)("ul",{tabIndex:0,className:"dropdown-content menu rounded-box bg-custom-accent-2 z-50 mt-0 ml-0 w-fit rounded-tl-none p-2 text-white",children:t.submenu&&t.submenu.map(i=>(0,e.jsx)("li",{children:(0,e.jsx)(r.default,{className:"bg-custom-accent-2 hover:bg-custom-accent-3/80 active:bg-custom-accent-3/80 btn flex w-full justify-start text-nowrap text-white",href:i.link,rel:t.esLinkExterno?"noopener noreferrer":"",target:t.esLinkExterno?"_blank":"_self",onClick:()=>{p(null)},children:i.title})},i.id))})]},t.id):(0,e.jsx)(r.default,{className:`btn active:bg-custom-accent-2 hover:bg-custom-accent-2 text-custom-primary rounded-lg bg-white transition-all duration-150 hover:text-white active:text-white ${f(t.link)?"bg-navbar-active":""}`,href:t.link,children:t.title})},t.id))})}),(0,e.jsxs)("div",{className:"navbar-end gap-2",children:[(0,e.jsx)("button",{ref:h,onClick:m,className:`btn text-custom-primary hover:bg-custom-primary hover:text-white ${t?"bg-custom-primary text-white":"bg-white"} lg:hidden`,children:(0,e.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h8m-8 6h16"})})}),(0,e.jsx)(i.AnimatePresence,{children:t&&(0,e.jsx)(n.motion.div,{ref:u,initial:{opacity:0,x:100},animate:{opacity:1,x:0},exit:{opacity:0,x:100},transition:{duration:.2,ease:"easeInOut"},className:"absolute top-16 right-0 z-10 w-80 rounded-t-none rounded-br-none rounded-bl-lg bg-white p-2 shadow-xl lg:hidden",children:(0,e.jsxs)("ul",{children:[a.menuPrincipal.map(t=>(0,e.jsxs)("li",{className:"md:hidden",children:[(0,e.jsx)(r.default,{className:`hover:bg-custom-accent/70 active:bg-custom-accent/70 block cursor-pointer rounded-lg px-6 py-2 ${f(t.link,t.submenu)?"bg-custom-accent/90":""}`,href:t.link,rel:t.esLinkExterno?"noopener noreferrer":"",target:t.esLinkExterno?"_blank":"_self",onClick:()=>{m()},children:t.title}),t.tieneSubmenu&&(0,e.jsx)("ul",{className:"ml-4 border-l pl-2",children:t.submenu&&t.submenu.map(i=>(0,e.jsx)("li",{children:(0,e.jsx)(r.default,{className:"hover:bg-custom-accent/70 active:bg-custom-accent/70 block cursor-pointer rounded-lg px-6 py-2",href:i.link,rel:t.esLinkExterno?"noopener noreferrer":"",target:t.esLinkExterno?"_blank":"_self",onClick:()=>{m()},children:i.title})},i.id))})]},t.id)),a.menuSecundario.map(t=>(0,e.jsx)("li",{children:(0,e.jsx)(r.default,{className:`btn btn-primary m-2 w-72 transition-all duration-100 ${"pagar-servicios"===t.id?"text-custom-primary border-custom-primary hover:bg-custom-primary active:bg-custom-primary border bg-white hover:text-white active:text-white":""}`,href:t.link,onMouseDown:m,rel:t.esLinkExterno?"noopener noreferrer":"",target:t.esLinkExterno?"_blank":"_self",children:t.title},t.id)},t.id))]})})}),a.menuSecundario.map(t=>(0,e.jsx)(r.default,{className:`btn btn-primary hidden lg:flex ${"pagar-servicios"===t.id?"text-custom-primary border-custom-primary btn-ghost hover:bg-custom-primary border hover:text-white":""}`,href:t.link,onMouseDown:m,rel:t.esLinkExterno?"noopener noreferrer":"",target:t.esLinkExterno?"_blank":"_self",children:t.title},t.id))]})]})}])}]);

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.