PageSourceSearch

https://acvc.ch/_next/static/chunks/217-00c11f97b23779c2.js

js acvc.ch collected 2026-10-02 22:26:05 UTC 158,227 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[217],{3145:function(t,e,i){"use strict";i.d(e,{default:function(){return r.a}});var n=i(8461),r=i.n(n)},7648:function(t,e,i){"use strict";i.d(e,{default:function(){return r.a}});var n=i(2972),r=i.n(n)},5449:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}}),i(8521);let n=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return t};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},6958:function(t,e,i){"use strict";function n(t,e,i,n){return!1}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return n}}),i(8521),("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},5878:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return x}});let n=i(7043),r=i(3099),s=i(7437),o=r._(i(2265)),a=n._(i(4887)),l=n._(i(8293)),u=i(5346),h=i(128),c=i(2589);i(1765);let d=i(5523),p=n._(i(5084)),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function m(t,e,i,n,r,s,o){let a=null==t?void 0:t.src;t&&t["data-loaded-src"]!==a&&(t["data-loaded-src"]=a,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&r(!0),null==i?void 0:i.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let n=!1,r=!1;i.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>n,isPropagationStopped:()=>r,persist:()=>{},preventDefault:()=>{n=!0,e.preventDefault()},stopPropagation:()=>{r=!0,e.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(t)}}))}function g(t){return o.use?{fetchPriority:t}:{fetchpriority:t}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let y=(0,o.forwardRef)((t,e)=>{let{src:i,srcSet:n,sizes:r,height:a,width:l,decoding:u,className:h,style:c,fetchPriority:d,placeholder:p,loading:f,unoptimized:y,fill:v,onLoadRef:x,onLoadingCompleteRef:b,setBlurComplete:w,setShowAltText:S,sizesInput:P,onLoad:T,onError:A,...E}=t;return(0,s.jsx)("img",{...E,...g(d),loading:f,width:l,height:a,decoding:u,"data-nimg":v?"fill":"1",className:h,style:c,sizes:r,srcSet:n,src:i,ref:(0,o.useCallback)(t=>{e&&("function"==typeof e?e(t):"object"==typeof e&&(e.current=t)),t&&(A&&(t.src=t.src),t.complete&&m(t,p,x,b,w,y,P))},[i,p,x,b,w,A,y,P,e]),onLoad:t=>{m(t.currentTarget,p,x,b,w,y,P)},onError:t=>{S(!0),"empty"!==p&&w(!0),A&&A(t)}})});function v(t){let{isAppRouter:e,imgAttributes:i}=t,n={as:"image",imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:i.crossOrigin,referrerPolicy:i.referrerPolicy,...g(i.fetchPriority)};return e&&a.default.preload?(a.default.preload(i.src,n),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:i.srcSet?void 0:i.src,...n},"__nimg-"+i.src+i.srcSet+i.sizes)})}let x=(0,o.forwardRef)((t,e)=>{let i=(0,o.useContext)(d.RouterContext),n=(0,o.useContext)(c.ImageConfigContext),r=(0,o.useMemo)(()=>{var t;let e=f||n||h.imageConfigDefault,i=[...e.deviceSizes,...e.imageSizes].sort((t,e)=>t-e),r=e.deviceSizes.sort((t,e)=>t-e),s=null==(t=e.qualities)?void 0:t.sort((t,e)=>t-e);return{...e,allSizes:i,deviceSizes:r,qualities:s}},[n]),{onLoad:a,onLoadingComplete:l}=t,m=(0,o.useRef)(a);(0,o.useEffect)(()=>{m.current=a},[a]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[x,b]=(0,o.useState)(!1),[w,S]=(0,o.useState)(!1),{props:P,meta:T}=(0,u.getImgProps)(t,{defaultLoader:p.default,imgConf:r,blurComplete:x,showAltText:w});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y,{...P,unoptimized:T.unoptimized,placeholder:T.placeholder,fill:T.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:S,sizesInput:t.sizes,ref:e}),T.priority?(0,s.jsx)(v,{isAppRouter:!i,imgAttributes:P}):null]})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esMo
1dule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},2972:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return b}});let n=i(7043),r=i(7437),s=n._(i(2265)),o=i(5246),a=i(3552),l=i(7497),u=i(3987),h=i(5449),c=i(5523),d=i(1956),p=i(6081),f=i(6958),m=i(1634),g=i(4673),y=new Set;function v(t,e,i,n,r,s){if("undefined"!=typeof window&&(s||(0,a.isLocalURL)(e))){if(!n.bypassPrefetchedCheck){let r=e+"%"+i+"%"+(void 0!==n.locale?n.locale:"locale"in t?t.locale:void 0);if(y.has(r))return;y.add(r)}(async()=>s?t.prefetch(e,r):t.prefetch(e,i,n))().catch(t=>{})}}function x(t){return"string"==typeof t?t:(0,l.formatUrl)(t)}let b=s.default.forwardRef(function(t,e){let i,n;let{href:l,as:y,children:b,prefetch:w=null,passHref:S,replace:P,shallow:T,scroll:A,locale:E,onClick:M,onMouseEnter:C,onTouchStart:R,legacyBehavior:j=!1,..._}=t;i=b,j&&("string"==typeof i||"number"==typeof i)&&(i=(0,r.jsx)("a",{children:i}));let k=s.default.useContext(c.RouterContext),O=s.default.useContext(d.AppRouterContext),V=null!=k?k:O,D=!k,L=!1!==w,F=null===w?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:I,as:B}=s.default.useMemo(()=>{if(!k){let t=x(l);return{href:t,as:y?x(y):t}}let[t,e]=(0,o.resolveHref)(k,l,!0);return{href:t,as:y?(0,o.resolveHref)(k,y):e||t}},[k,l,y]),N=s.default.useRef(I),U=s.default.useRef(B);j&&(n=s.default.Children.only(i));let z=j?n&&"object"==typeof n&&n.ref:e,[W,$,Y]=(0,p.useIntersection)({rootMargin:"200px"}),H=s.default.useCallback(t=>{(U.current!==B||N.current!==I)&&(Y(),U.current=B,N.current=I),W(t),z&&("function"==typeof z?z(t):"object"==typeof z&&(z.current=t))},[B,z,I,Y,W]);s.default.useEffect(()=>{V&&$&&L&&v(V,I,B,{locale:E},{kind:F},D)},[B,I,$,E,L,null==k?void 0:k.locale,V,D,F]);let K={ref:H,onClick(t){j||"function"!=typeof M||M(t),j&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),V&&!t.defaultPrevented&&function(t,e,i,n,r,o,l,u,h){let{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&(function(t){let e=t.currentTarget.getAttribute("target");return e&&"_self"!==e||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which}(t)||!h&&!(0,a.isLocalURL)(i)))return;t.preventDefault();let d=()=>{let t=null==l||l;"beforePopState"in e?e[r?"replace":"push"](i,n,{shallow:o,locale:u,scroll:t}):e[r?"replace":"push"](n||i,{scroll:t})};h?s.default.startTransition(d):d()}(t,V,I,B,P,T,A,E,D)},onMouseEnter(t){j||"function"!=typeof C||C(t),j&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(t),V&&(L||!D)&&v(V,I,B,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:F},D)},onTouchStart:function(t){j||"function"!=typeof R||R(t),j&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(t),V&&(L||!D)&&v(V,I,B,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:F},D)}};if((0,u.isAbsoluteUrl)(B))K.href=B;else if(!j||S||"a"===n.type&&!("href"in n.props)){let t=void 0!==E?E:null==k?void 0:k.locale,e=(null==k?void 0:k.isLocaleDomain)&&(0,f.getDomainLocale)(B,t,null==k?void 0:k.locales,null==k?void 0:k.domainLocales);K.href=e||(0,m.addBasePath)((0,h.addLocale)(B,t,null==k?void 0:k.defaultLocale))}return j?s.default.cloneElement(n,K):(0,r.jsx)("a",{..._,...K,children:i})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},5246:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveHref",{enumerable:!0,get:function(){return c}});let n=i(8637),r=i(7497),s=i(7053),o=i(3987),a=i(8521),l=i(3552),u=i(6279),h=i(7205);function c(t,e,i){let c;let d="string"==typeof e?e:(0,r.formatWithValidation)(e),p=d.match(/^[a-zA-Z]{1,}:\/\//),f=p?d.slice(p[0].length):d;if((f.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+t.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");
1let e=(0,o.normalizeRepeatedSlashes)(f);d=(p?p[0]:"")+e}if(!(0,l.isLocalURL)(d))return i?[d]:d;try{c=new URL(d.startsWith("#")?t.asPath:t.pathname,"http://n")}catch(t){c=new URL("/","http://n")}try{let t=new URL(d,c);t.pathname=(0,a.normalizePathTrailingSlash)(t.pathname);let e="";if((0,u.isDynamicRoute)(t.pathname)&&t.searchParams&&i){let i=(0,n.searchParamsToUrlQuery)(t.searchParams),{result:o,params:a}=(0,h.interpolateAs)(t.pathname,t.pathname,i);o&&(e=(0,r.formatWithValidation)({pathname:o,hash:t.hash,query:(0,s.omit)(i,a)}))}let o=t.origin===c.origin?t.href.slice(t.origin.length):t.href;return i?[o,e||o]:o}catch(t){return i?[d]:d}}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},6081:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return l}});let n=i(2265),r=i(3515),s="function"==typeof IntersectionObserver,o=new Map,a=[];function l(t){let{rootRef:e,rootMargin:i,disabled:l}=t,u=l||!s,[h,c]=(0,n.useState)(!1),d=(0,n.useRef)(null),p=(0,n.useCallback)(t=>{d.current=t},[]);return(0,n.useEffect)(()=>{if(s){if(u||h)return;let t=d.current;if(t&&t.tagName)return function(t,e,i){let{id:n,observer:r,elements:s}=function(t){let e;let i={root:t.root||null,margin:t.rootMargin||""},n=a.find(t=>t.root===i.root&&t.margin===i.margin);if(n&&(e=o.get(n)))return e;let r=new Map;return e={id:i,observer:new IntersectionObserver(t=>{t.forEach(t=>{let e=r.get(t.target),i=t.isIntersecting||t.intersectionRatio>0;e&&i&&e(i)})},t),elements:r},a.push(i),o.set(i,e),e}(i);return s.set(t,e),r.observe(t),function(){if(s.delete(t),r.unobserve(t),0===s.size){r.disconnect(),o.delete(n);let t=a.findIndex(t=>t.root===n.root&&t.margin===n.margin);t>-1&&a.splice(t,1)}}}(t,t=>t&&c(t),{root:null==e?void 0:e.current,rootMargin:i})}else if(!h){let t=(0,r.requestIdleCallback)(()=>c(!0));return()=>(0,r.cancelIdleCallback)(t)}},[u,i,e,h,d.current]),[p,h,(0,n.useCallback)(()=>{c(!1)},[])]}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},4601:function(){},1436:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=i(7043)._(i(2265)).default.createContext({})},3964:function(t,e){"use strict";function i(t){let{ampFirst:e=!1,hybrid:i=!1,hasQuery:n=!1}=void 0===t?{}:t;return e||i&&n}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return i}})},42:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});let i=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function r(t){return i.test(t)?t.replace(n,"\\$&"):t}},5346:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return a}}),i(1765);let n=i(6496),r=i(128);function s(t){return void 0!==t.default}function o(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function a(t,e){var i,a;let l,u,h,{src:c,sizes:d,unoptimized:p=!1,priority:f=!1,loading:m,className:g,quality:y,width:v,height:x,fill:b=!1,style:w,overrideSrc:S,onLoad:P,onLoadingComplete:T,placeholder:A="empty",blurDataURL:E,fetchPriority:M,decoding:C="async",layout:R,objectFit:j,objectPosition:_,lazyBoundary:k,lazyRoot:O,...V}=t,{imgConf:D,showAltText:L,blurComplete:F,defaultLoader:I}=e,B=D||r.imageConfigDefault;if("allSizes"in B)l=B;else{let t=[...B.deviceSizes,...B.imageSizes].sort((t,e)=>t-e),e=B.deviceSizes.sort((t,e)=>t-e),n=null==(i=B.qualities)?void 0:i.sort((t,e)=>t-e);l={...B,allSizes:t,deviceSizes:e,qualities:n}}if(void 0===I)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let N=V.loader||I;delete V.loader,delete V.srcSet;let U="__next_img_default"in N;if(U){if("custom"===l.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let t=N;N=e=>{let{config:i,...n}=e;return t(n)}}if(R){"fill"===R&&(b=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[R];t&&(w={...w,...t});let e={responsive:"100vw",fill:"100vw"}[R];
1e&&!d&&(d=e)}let z="",W=o(v),$=o(x);if("object"==typeof(a=c)&&(s(a)||void 0!==a.src)){let t=s(c)?c.default:c;if(!t.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(t));if(!t.height||!t.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(t));if(u=t.blurWidth,h=t.blurHeight,E=E||t.blurDataURL,z=t.src,!b){if(W||$){if(W&&!$){let e=W/t.width;$=Math.round(t.height*e)}else if(!W&&$){let e=$/t.height;W=Math.round(t.width*e)}}else W=t.width,$=t.height}}let Y=!f&&("lazy"===m||void 0===m);(!(c="string"==typeof c?c:z)||c.startsWith("data:")||c.startsWith("blob:"))&&(p=!0,Y=!1),l.unoptimized&&(p=!0),U&&c.endsWith(".svg")&&!l.dangerouslyAllowSVG&&(p=!0),f&&(M="high");let H=o(y),K=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:j,objectPosition:_}:{},L?{}:{color:"transparent"},w),q=F||"empty"===A?null:"blur"===A?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:W,heightInt:$,blurWidth:u,blurHeight:h,blurDataURL:E||"",objectFit:K.objectFit})+'")':'url("'+A+'")',X=q?{backgroundSize:K.objectFit||"cover",backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:q}:{},G=function(t){let{config:e,src:i,unoptimized:n,width:r,quality:s,sizes:o,loader:a}=t;if(n)return{src:i,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(t,e,i){let{deviceSizes:n,allSizes:r}=t;if(i){let t=/(^|\s)(1?\d?\d)vw/g,e=[];for(let n;n=t.exec(i);n)e.push(parseInt(n[2]));if(e.length){let t=.01*Math.min(...e);return{widths:r.filter(e=>e>=n[0]*t),kind:"w"}}return{widths:r,kind:"w"}}return"number"!=typeof e?{widths:n,kind:"w"}:{widths:[...new Set([e,2*e].map(t=>r.find(e=>e>=t)||r[r.length-1]))],kind:"x"}}(e,r,o),h=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((t,n)=>a({config:e,src:i,quality:s,width:t})+" "+("w"===u?t:n+1)+u).join(", "),src:a({config:e,src:i,quality:s,width:l[h]})}}({config:l,src:c,unoptimized:p,width:W,quality:H,sizes:d,loader:N});return{props:{...V,loading:Y?"lazy":m,fetchPriority:M,width:W,height:$,decoding:C,className:g,style:{...K,...X},sizes:G.sizes,srcSet:G.srcSet,src:S||G.src},meta:{unoptimized:p,priority:f,placeholder:A,fill:b}}}},8293:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return m},defaultHead:function(){return c}});let n=i(7043),r=i(3099),s=i(7437),o=r._(i(2265)),a=n._(i(7421)),l=i(1436),u=i(8701),h=i(3964);function c(t){void 0===t&&(t=!1);let e=[(0,s.jsx)("meta",{charSet:"utf-8"})];return t||e.push((0,s.jsx)("meta",{name:"viewport",content:"width=device-width"})),e}function d(t,e){return"string"==typeof e||"number"==typeof e?t:e.type===o.default.Fragment?t.concat(o.default.Children.toArray(e.props.children).reduce((t,e)=>"string"==typeof e||"number"==typeof e?t:t.concat(e),[])):t.concat(e)}i(1765);let p=["name","httpEquiv","charSet","itemProp"];function f(t,e){let{inAmpMode:i}=e;return t.reduce(d,[]).reverse().concat(c(i).reverse()).filter(function(){let t=new Set,e=new Set,i=new Set,n={};return r=>{let s=!0,o=!1;if(r.key&&"number"!=typeof r.key&&r.key.indexOf("$")>0){o=!0;let e=r.key.slice(r.key.indexOf("$")+1);t.has(e)?s=!1:t.add(e)}switch(r.type){case"title":case"base":e.has(r.type)?s=!1:e.add(r.type);break;case"meta":for(let t=0,e=p.length;t<e;t++){let e=p[t];if(r.props.hasOwnProperty(e)){if("charSet"===e)i.has(e)?s=!1:i.add(e);else{let t=r.props[e],i=n[e]||new Set;("name"!==e||!o)&&i.has(t)?s=!1:(i.add(t),n[e]=i)}}}}return s}}()).reverse().map((t,e)=>{let n=t.key||e;if(!i&&"link"===t.type&&t.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(e=>t.props.href.startsWith(e))){let e={...t.props||{}};return e["data-href"]=e.href,e.href=void 0,e["data-optimized-fonts"]=!0,o.default.cloneElement(t,e)}return o.default.cloneElement(t,{key:n})})}let m=function(t){let{children:e}=t,i=(0,o.useContext)(l.AmpStateContext),n=(0,o.useContext)(u.HeadManagerContext);return(0,s.jsx)(a.default,{reduceComponentsToState:f,headManager:n,inAmpMode:(0,h.isInAmpMode)(i),children:e})};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esMo
1dule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},6496:function(t,e){"use strict";function i(t){let{widthInt:e,heightInt:i,blurWidth:n,blurHeight:r,blurDataURL:s,objectFit:o}=t,a=n?40*n:e,l=r?40*r:i,u=a&&l?"viewBox='0 0 "+a+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+s+"'/%3E%3C/svg%3E"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return i}})},2589:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let n=i(7043)._(i(2265)),r=i(128),s=n.default.createContext(r.imageConfigDefault)},128:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{VALID_LOADERS:function(){return i},imageConfigDefault:function(){return n}});let i=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},8461:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return l},getImageProps:function(){return a}});let n=i(7043),r=i(5346),s=i(5878),o=n._(i(5084));function a(t){let{props:e}=(0,r.getImgProps)(t,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let l=s.Image},5084:function(t,e){"use strict";function i(t){var e;let{config:i,src:n,width:r,quality:s}=t,o=s||(null==(e=i.qualities)?void 0:e.reduce((t,e)=>Math.abs(e-75)<Math.abs(t-75)?e:t))||75;return i.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+o}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}}),i.__next_img_default=!0;let n=i},5523:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return n}});let n=i(7043)._(i(2265)).default.createContext(null)},7497:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{formatUrl:function(){return s},formatWithValidation:function(){return a},urlObjectKeys:function(){return o}});let n=i(3099)._(i(8637)),r=/https?|ftp|gopher|file/;function s(t){let{auth:e,hostname:i}=t,s=t.protocol||"",o=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(n.urlQueryToSearchParams(l)));let h=t.search||l&&"?"+l||"";return s&&!s.endsWith(":")&&(s+=":"),t.slashes||(!s||r.test(s))&&!1!==u?(u="//"+(u||""),o&&"/"!==o[0]&&(o="/"+o)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),h&&"?"!==h[0]&&(h="?"+h),""+s+u+(o=o.replace(/[?#]/g,encodeURIComponent))+(h=h.replace("#","%23"))+a}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function a(t){return s(t)}}
1,6279:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return r.isDynamicRoute}});let n=i(4777),r=i(8104)},7205:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return s}});let n=i(4199),r=i(9964);function s(t,e,i){let s="",o=(0,r.getRouteRegex)(t),a=o.groups,l=(e!==t?(0,n.getRouteMatcher)(o)(e):"")||i;s=t;let u=Object.keys(a);return u.every(t=>{let e=l[t]||"",{repeat:i,optional:n}=a[t],r="["+(i?"...":"")+t+"]";return n&&(r=(e?"":"/")+"["+r+"]"),i&&!Array.isArray(e)&&(e=[e]),(n||t in l)&&(s=s.replace(r,i?e.map(t=>encodeURIComponent(t)).join("/"):encodeURIComponent(e))||"/")})||(s=""),{params:u,result:s}}},8104:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return s}});let n=i(1182),r=/\/\[[^/]+?\](?=\/|$)/;function s(t){return(0,n.isInterceptionRouteAppPath)(t)&&(t=(0,n.extractInterceptionRouteInformation)(t).interceptedRoute),r.test(t)}},3552:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=i(3987),r=i(1283);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}}},7053:function(t,e){"use strict";function i(t,e){let i={};return Object.keys(t).forEach(n=>{e.includes(n)||(i[n]=t[n])}),i}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return i}})},8637:function(t,e){"use strict";function i(t){let e={};return t.forEach((t,i)=>{void 0===e[i]?e[i]=t:Array.isArray(e[i])?e[i].push(t):e[i]=[e[i],t]}),e}function n(t){return"string"!=typeof t&&("number"!=typeof t||isNaN(t))&&"boolean"!=typeof t?"":String(t)}function r(t){let e=new URLSearchParams;return Object.entries(t).forEach(t=>{let[i,r]=t;Array.isArray(r)?r.forEach(t=>e.append(i,n(t))):e.set(i,n(r))}),e}function s(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return i.forEach(e=>{Array.from(e.keys()).forEach(e=>t.delete(e)),e.forEach((e,i)=>t.append(i,e))}),t}Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{assign:function(){return s},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return r}})},4199:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return r}});let n=i(3987);function r(t){let{re:e,groups:i}=t;return t=>{let r=e.exec(t);if(!r)return!1;let s=t=>{try{return decodeURIComponent(t)}catch(t){throw new n.DecodeError("failed to decode param")}},o={};
1return Object.keys(i).forEach(t=>{let e=i[t],n=r[e.pos];void 0!==n&&(o[t]=~n.indexOf("/")?n.split("/").map(t=>s(t)):e.repeat?[s(n)]:s(n))}),o}}},9964:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{getNamedMiddlewareRegex:function(){return d},getNamedRouteRegex:function(){return c},getRouteRegex:function(){return l},parseParameter:function(){return o}});let n=i(1182),r=i(42),s=i(6674);function o(t){let e=t.startsWith("[")&&t.endsWith("]");e&&(t=t.slice(1,-1));let i=t.startsWith("...");return i&&(t=t.slice(3)),{key:t,repeat:i,optional:e}}function a(t){let e=(0,s.removeTrailingSlash)(t).slice(1).split("/"),i={},a=1;return{parameterizedRoute:e.map(t=>{let e=n.INTERCEPTION_ROUTE_MARKERS.find(e=>t.startsWith(e)),s=t.match(/\[((?:\[.*\])|.+)\]/);if(e&&s){let{key:t,optional:n,repeat:l}=o(s[1]);return i[t]={pos:a++,repeat:l,optional:n},"/"+(0,r.escapeStringRegexp)(e)+"([^/]+?)"}if(!s)return"/"+(0,r.escapeStringRegexp)(t);{let{key:t,repeat:e,optional:n}=o(s[1]);return i[t]={pos:a++,repeat:e,optional:n},e?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:i}}function l(t){let{parameterizedRoute:e,groups:i}=a(t);return{re:RegExp("^"+e+"(?:/)?$"),groups:i}}function u(t){let{interceptionMarker:e,getSafeRouteKey:i,segment:n,routeKeys:s,keyPrefix:a}=t,{key:l,optional:u,repeat:h}=o(n),c=l.replace(/\W/g,"");a&&(c=""+a+c);let d=!1;(0===c.length||c.length>30)&&(d=!0),isNaN(parseInt(c.slice(0,1)))||(d=!0),d&&(c=i()),a?s[c]=""+a+l:s[c]=l;let p=e?(0,r.escapeStringRegexp)(e):"";return h?u?"(?:/"+p+"(?<"+c+">.+?))?":"/"+p+"(?<"+c+">.+?)":"/"+p+"(?<"+c+">[^/]+?)"}function h(t,e){let i;let o=(0,s.removeTrailingSlash)(t).slice(1).split("/"),a=(i=0,()=>{let t="",e=++i;for(;e>0;)t+=String.fromCharCode(97+(e-1)%26),e=Math.floor((e-1)/26);return t}),l={};return{namedParameterizedRoute:o.map(t=>{let i=n.INTERCEPTION_ROUTE_MARKERS.some(e=>
1t.startsWith(e)),s=t.match(/\[((?:\[.*\])|.+)\]/);if(i&&s){let[i]=t.split(s[0]);return u({getSafeRouteKey:a,interceptionMarker:i,segment:s[1],routeKeys:l,keyPrefix:e?"nxtI":void 0})}return s?u({getSafeRouteKey:a,segment:s[1],routeKeys:l,keyPrefix:e?"nxtP":void 0}):"/"+(0,r.escapeStringRegexp)(t)}).join(""),routeKeys:l}}function c(t,e){let i=h(t,e);return{...l(t),namedRegex:"^"+i.namedParameterizedRoute+"(?:/)?$",routeKeys:i.routeKeys}}function d(t,e){let{parameterizedRoute:i}=a(t),{catchAll:n=!0}=e;if("/"===i)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:r}=h(t,!1);return{namedRegex:"^"+r+(n?"(?:(/.*)?)":"")+"$"}}},4777:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class i{insert(t){this._insert(t.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(t){void 0===t&&(t="/");let e=[...this.children.keys()].sort();null!==this.slugName&&e.splice(e.indexOf("[]"),1),null!==this.restSlugName&&e.splice(e.indexOf("[...]"),1),null!==this.optionalRestSlugName&&e.splice(e.indexOf("[[...]]"),1);let i=e.map(e=>this.children.get(e)._smoosh(""+t+e+"/")).reduce((t,e)=>[...t,...e],[]);if(null!==this.slugName&&i.push(...this.children.get("[]")._smoosh(t+"["+this.slugName+"]/")),!this.placeholder){let e="/"===t?"/":t.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+e+'" and "'+e+"[[..."+this.optionalRestSlugName+']]").');i.unshift(e)}return null!==this.restSlugName&&i.push(...this.children.get("[...]")._smoosh(t+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&i.push(...this.children.get("[[...]]")._smoosh(t+"[[..."+this.optionalRestSlugName+"]]/")),i}_insert(t,e,n){if(0===t.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let r=t[0];if(r.startsWith("[")&&r.endsWith("]")){let i=r.slice(1,-1),o=!1;if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1),o=!0),i.startsWith("...")&&(i=i.substring(3),n=!0),i.startsWith("[")||i.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+i+"').");if(i.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+i+"').");function s(t,i){if(null!==t&&t!==i)throw Error("You cannot use different slug names for the same dynamic path ('"+t+"' !== '"+i+"').");e.forEach(t=>{if(t===i)throw Error('You cannot have the same slug name "'+i+'" repeat within a single dynamic path');if(t.replace(/\W/g,"")===r.replace(/\W/g,""))throw Error('You cannot have the slug names "'+t+'" and "'+i+'" differ only by non-word symbols within a single dynamic path')}),e.push(i)}if(n){if(o){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+t[0]+'" ).');s(this.optionalRestSlugName,i),this.optionalRestSlugName=i,r="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+t[0]+'").');s(this.restSlugName,i),this.restSlugName=i,r="[...]"}}else{if(o)throw Error('Optional route parameters are not yet supported ("'+t[0]+'").');s(this.slugName,i),this.slugName=i,r="[]"}}this.children.has(r)||this.children.set(r,new i),this.children.get(r)._insert(t.slice(1),e,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(t){let e=new i;return t.forEach(t=>e.insert(t)),e.smoosh()}},7421:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return a}});let n=i(2265),r="undefined"==typeof window,s=r?()=>{}:n.useLayoutEffect,o=r?()=>{}:n.useEffect;function a(t){let{headManager:e,reduceComponentsToState:i}=t;function a(){if(e&&e.mountedInstances){let r=n.Children.toArray(Array.from(e.mountedInstances).filter(
1Boolean));e.updateHead(i(r,t))}}if(r){var l;null==e||null==(l=e.mountedInstances)||l.add(t.children),a()}return s(()=>{var i;return null==e||null==(i=e.mountedInstances)||i.add(t.children),()=>{var i;null==e||null==(i=e.mountedInstances)||i.delete(t.children)}}),s(()=>(e&&(e._pendingUpdate=a),()=>{e&&(e._pendingUpdate=a)})),o(()=>(e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null),()=>{e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null)})),null}},3987:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{DecodeError:function(){return f},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return y},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return i},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return o},getURL:function(){return a},isAbsoluteUrl:function(){return s},isResSent:function(){return u},loadGetInitialProps:function(){return c},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return x}});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function n(t){let e,i=!1;return function(){for(var n=arguments.length,r=Array(n),s=0;s<n;s++)r[s]=arguments[s];return i||(i=!0,e=t(...r)),e}}let r=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=t=>r.test(t);function o(){let{protocol:t,hostname:e,port:i}=window.location;return t+"//"+e+(i?":"+i:"")}function a(){let{href:t}=window.location,e=o();return t.substring(e.length)}function l(t){return"string"==typeof t?t:t.displayName||t.name||"Unknown"}function u(t){return t.finished||t.headersSent}function h(t){let e=t.split("?");return e[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(e[1]?"?"+e.slice(1).join("?"):"")}async function c(t,e){let i=e.res||e.ctx&&e.ctx.res;if(!t.getInitialProps)return e.ctx&&e.Component?{pageProps:await c(e.Component,e.ctx)}:{};let n=await t.getInitialProps(e);if(i&&u(i))return n;if(!n)throw Error('"'+l(t)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.');return n}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(t=>"function"==typeof performance[t]);class f extends Error{}class m extends Error{}class g extends Error{constructor(t){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+t}}class y extends Error{constructor(t,e){super(),this.message="Failed to load static file for page: "+t+" "+e}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function x(t){return JSON.stringify({message:t.message,stack:t.stack})}},8975:function(t,e,i){"use strict";var n=i(257);i(4601);var r=i(2265),s=r&&"object"==typeof r&&"default"in r?r:{default:r},o=void 0!==n&&n.env&&!0,a=function(t){return"[object String]"===Object.prototype.toString.call(t)},l=function(){function t(t){var e=void 0===t?{}:t,i=e.name,n=void 0===i?"stylesheet":i,r=e.optimizeForSpeed,s=void 0===r?o:r;u(a(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",u("boolean"==typeof s,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=s,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var e=t.prototype;return e.setOptimizeForSpeed=function(t){u("boolean"==typeof t,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=t,this.inject()},e.isOptimizeForSpeed=function(){return this._optimizeForSpeed},e.inject=function(){var t=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.get
1Sheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(e,i){return"number"==typeof i?t._serverSheet.cssRules[i]={cssText:e}:t._serverSheet.cssRules.push({cssText:e}),i},deleteRule:function(e){t._serverSheet.cssRules[e]=null}}},e.getSheetForTag=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]},e.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},e.insertRule=function(t,e){if(u(a(t),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof e&&(e=this._serverSheet.cssRules.length),this._serverSheet.insertRule(t,e),this._rulesCount++;if(this._optimizeForSpeed){var i=this.getSheet();"number"!=typeof e&&(e=i.cssRules.length);try{i.insertRule(t,e)}catch(e){return o||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[e];this._tags.push(this.makeStyleTag(this._name,t,n))}return this._rulesCount++},e.replaceRule=function(t,e){if(this._optimizeForSpeed||"undefined"==typeof window){var i="undefined"!=typeof window?this.getSheet():this._serverSheet;if(e.trim()||(e=this._deletedRulePlaceholder),!i.cssRules[t])return t;i.deleteRule(t);try{i.insertRule(e,t)}catch(n){o||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),i.insertRule(this._deletedRulePlaceholder,t)}}else{var n=this._tags[t];u(n,"old rule at index `"+t+"` not found"),n.textContent=e}return t},e.deleteRule=function(t){if("undefined"==typeof window){this._serverSheet.deleteRule(t);return}if(this._optimizeForSpeed)this.replaceRule(t,"");else{var e=this._tags[t];u(e,"rule at index `"+t+"` not found"),e.parentNode.removeChild(e),this._tags[t]=null}},e.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(t){return t&&t.parentNode.removeChild(t)}),this._tags=[]):this._serverSheet.cssRules=[]},e.cssRules=function(){var t=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(e,i){return i?e=e.concat(Array.prototype.map.call(t.getSheetForTag(i).cssRules,function(e){return e.cssText===t._deletedRulePlaceholder?null:e})):e.push(null),e},[])},e.makeStyleTag=function(t,e,i){e&&u(a(e),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+t,""),e&&n.appendChild(document.createTextNode(e));var r=document.head||document.getElementsByTagName("head")[0];return i?r.insertBefore(n,i):r.appendChild(n),n},function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,[{key:"length",get:function(){return this._rulesCount}}]),t}();function u(t,e){if(!t)throw Error("StyleSheet: "+e+".")}var h=function(t){for(var e=5381,i=t.length;i;)e=33*e^t.charCodeAt(--i);return e>>>0},c={};function d(t,e){if(!e)return"jsx-"+t;var i=String(e),n=t+i;return c[n]||(c[n]="jsx-"+h(t+"-"+i)),c[n]}function p(t,e){"undefined"==typeof window&&(e=e.replace(/\/style/gi,"\\/style"));var i=t+e;return c[i]||(c[i]=e.replace(/__jsx-style-dynamic-selector/g,t)),c[i]}var f=function(){function t(t){var e=void 0===t?{}:t,i=e.styleSheet,n=void 0===i?null:i,r=e.optimizeForSpeed,s=void 0!==r&&r;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:s}),this._sheet.inject(),n&&"boolean"==typeof s&&(this._sheet.setOptimizeForSpeed(s),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var e=t.prototype;return e.add=function(t){var e=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(t.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(t,e){return t[e]=0,t},{}));var i=this.getIdAndRules(t),n=i.styleId,r=i.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var s=r.map(function(t){return e._sheet.insertRule(t)}).filter(function(t){return -1!==t});this._indices[n]=s,this._instancesCounts[n]=1},e.remove=function(t){var e=this,i=this.getIdAndRules(t).styleId;if(function(t,e){if(!t)throw Error("StyleSheetRegistry: "+e+".")}(i in this._instancesCounts,"styleId: `"+i+"` not found"),this._instancesCounts[i]-=1,this._instancesCounts[i]<1){var n=this._fromServer&&this._fromServer[i];n?(n.parentNode.removeChild(n),delete this._fromServer[i]):(this._indices[i].forEac
1h(function(t){return e._sheet.deleteRule(t)}),delete this._indices[i]),delete this._instancesCounts[i]}},e.update=function(t,e){this.add(e),this.remove(t)},e.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},e.cssRules=function(){var t=this,e=this._fromServer?Object.keys(this._fromServer).map(function(e){return[e,t._fromServer[e]]}):[],i=this._sheet.cssRules();return e.concat(Object.keys(this._indices).map(function(e){return[e,t._indices[e].map(function(t){return i[t].cssText}).join(t._optimizeForSpeed?"":"\n")]}).filter(function(t){return!!t[1]}))},e.styles=function(t){var e,i;return e=this.cssRules(),void 0===(i=t)&&(i={}),e.map(function(t){var e=t[0],n=t[1];return s.default.createElement("style",{id:"__"+e,key:"__"+e,nonce:i.nonce?i.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},e.getIdAndRules=function(t){var e=t.children,i=t.dynamic,n=t.id;if(i){var r=d(n,i);return{styleId:r,rules:Array.isArray(e)?e.map(function(t){return p(r,t)}):[p(r,e)]}}return{styleId:d(n),rules:Array.isArray(e)?e:[e]}},e.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(t,e){return t[e.id.slice(2)]=e,t},{})},t}(),m=r.createContext(null);m.displayName="StyleSheetContext";var g=s.default.useInsertionEffect||s.default.useLayoutEffect,y="undefined"!=typeof window?new f:void 0;function v(t){var e=y||r.useContext(m);return e&&("undefined"==typeof window?e.add(t):g(function(){return e.add(t),function(){e.remove(t)}},[t.id,String(t.dynamic)])),null}v.dynamic=function(t){return t.map(function(t){return d(t[0],t[1])}).join(" ")},e.style=v},29:function(t,e,i){"use strict";t.exports=i(8975).style},7586:function(t,e,i){"use strict";i.d(e,{M:function(){return x}});var n=i(7437),r=i(2265),s=i(8881),o=i(3576),a=i(1534),l=i(4252),u=i(3537),h=i(5750);function c(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class d extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=(0,u.R)(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 p(t){let{children:e,isPresent:i,anchorX:s,root:o}=t,a=(0,r.useId)(),l=(0,r.useRef)(null),u=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:p}=(0,r.useContext)(h._),f=function(...t){return r.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=c(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():c(t[e],null)}}}}(...t),t)}(l,null==e?void 0:e.ref);return(0,r.useInsertionEffect)(()=>{let{width:t,height:e,top:n,left:r,right:h}=u.current;if(i||!l.current||!t||!e)return;l.current.dataset.motionPopId=a;let c=document.createElement("style");p&&(c.nonce=p);let d=null!=o?o:document.head;return d.appendChild(c),c.sheet&&c.sheet.insertRule('\n          [data-motion-pop-id="'.concat(a,'"] {\n            position: absolute !important;\n            width: ').concat(t,"px !important;\n            height: ").concat(e,"px !important;\n            ").concat("left"===s?"left: ".concat(r):"right: ".concat(h),"px !important;\n            top: ").concat(n,"px !important;\n          }\n        ")),()=>{d.contains(c)&&d.removeChild(c)}},[i]),(0,n.jsx)(d,{isPresent:i,childRef:l,sizeRef:u,children:r.cloneElement(e,{ref:f})})}let f=t=>{let{children:e,initial:i,isPresent:s,onExitComplete:a,custom:u,presenceAffectsLayout:h,mode:c,anchorX:d,root:f}=t,g=(0,o.h)(m),y=(0,r.useId)(),v=!0,x=(0,r.useMemo)(()=>(v=!1,{id:y,initial:i,isPresent:s,custom:u,onExitComplete:t=>{for(let e of(g.set(t,!0),g.values()))if(!e)return;a&&a()},register:t=>(g.set(t,!1),()=>g.delete(t))}),[s,g,a]);return h&&v&&(x={...x}),(0,r.useMemo)(()=>{g.forEach((t,e)=>g.set(e,!1))},[s]),r.useEffect(()=>{s||g.size||!a||a()},[s]),"popLayout"===c&&(e=(0,n.jsx)(p,{isPresent:s,anchorX:d,root:f,children:e})),(0,n.jsx)(l.O.Provider,{value:x,children:e})};function m(){return new Map}var g=i(9637);let y=t=>t.key||"";function v(t){let e=[];
1return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}let x=t=>{let{children:e,custom:i,initial:l=!0,onExitComplete:u,presenceAffectsLayout:h=!0,mode:c="sync",propagate:d=!1,anchorX:p="left",root:m}=t,[x,b]=(0,g.oO)(d),w=(0,r.useMemo)(()=>v(e),[e]),S=d&&!x?[]:w.map(y),P=(0,r.useRef)(!0),T=(0,r.useRef)(w),A=(0,o.h)(()=>new Map),[E,M]=(0,r.useState)(w),[C,R]=(0,r.useState)(w);(0,a.L)(()=>{P.current=!1,T.current=w;for(let t=0;t<C.length;t++){let e=y(C[t]);S.includes(e)?A.delete(e):!0!==A.get(e)&&A.set(e,!1)}},[C,S.length,S.join("-")]);let j=[];if(w!==E){let t=[...w];for(let e=0;e<C.length;e++){let i=C[e],n=y(i);S.includes(n)||(t.splice(e,0,i),j.push(i))}return"wait"===c&&j.length&&(t=j),R(v(t)),M(w),null}let{forceRender:_}=(0,r.useContext)(s.p);return(0,n.jsx)(n.Fragment,{children:C.map(t=>{let e=y(t),r=(!d||!!x)&&(w===C||S.includes(e));return(0,n.jsx)(f,{isPresent:r,initial:(!P.current||!!l)&&void 0,custom:i,presenceAffectsLayout:h,mode:c,root:m,onExitComplete:r?void 0:()=>{if(!A.has(e))return;A.set(e,!0);let t=!0;A.forEach(e=>{e||(t=!1)}),t&&(null==_||_(),R(T.current),d&&(null==b||b()),u&&u())},anchorX:p,children:t},e)})})}},9637:function(t,e,i){"use strict";i.d(e,{oO:function(){return s}});var n=i(2265),r=i(4252);function s(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,n.useContext)(r.O);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:o}=e,a=(0,n.useId)();(0,n.useEffect)(()=>{if(t)return o(a)},[t]);let l=(0,n.useCallback)(()=>t&&s&&s(a),[a,s,t]);return!i&&s?[!1,l]:[!0]}},8881:function(t,e,i){"use strict";i.d(e,{p:function(){return n}});let n=(0,i(2265).createContext)({})},5750:function(t,e,i){"use strict";i.d(e,{_:function(){return n}});let n=(0,i(2265).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},4252:function(t,e,i){"use strict";i.d(e,{O:function(){return n}});let n=(0,i(2265).createContext)(null)},8239:function(t,e,i){"use strict";let n;i.d(e,{E:function(){return sR}});var r,s=i(2265);let o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set(o),l=t=>180*t/Math.PI,u=t=>c(l(Math.atan2(t[1],t[0]))),h={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:u,rotateZ:u,skewX:t=>l(Math.atan(t[1])),skewY:t=>l(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},c=t=>((t%=360)<0&&(t+=360),t),d=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),p=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),f={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:d,scaleY:p,scale:t=>(d(t)+p(t))/2,rotateX:t=>c(l(Math.atan2(t[6],t[5]))),rotateY:t=>c(l(Math.atan2(-t[2],t[0]))),rotateZ:u,rotate:u,skewX:t=>l(Math.atan(t[4])),skewY:t=>l(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function m(t){return t.includes("scale")?1:0}function g(t,e){let i,n;if(!t||"none"===t)return m(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=f,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=h,n=e}if(!n)return m(e);let s=i[e],o=n[1].split(",").map(v);return"function"==typeof s?s(o):o[s]}let y=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return g(i,e)};function v(t){return parseFloat(t.trim())}let x=t=>e=>"string"==typeof e&&e.startsWith(t),b=x("--"),w=x("var(--"),S=t=>!!w(t)&&P.test(t.split("/*")[0].trim()),P=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function T({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}let A=(t,e,i)=>t+(e-t)*i;function E(t){return void 0===t||1===t}function M({scale:t,scaleX:e,scaleY:i}){return!E(t)||!E(e)||!E(i)}function C(t){return M(t)||R(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function R(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function j(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function _(t,e=0,i=1,n,r){t.min=j(t.min,e,i,n,r),t.max=j(t.max,e,i,n,r)}function k(t,{x:e,y:i}){_(t.x,e.translate,e.scale,e.originPoint),_(t.y,i.translate,i.scale,i.originPoint)}function O(t,e){t.min=t.min+e,t.max=t.max+e}function V(t,e,i,n,r=.5){let s=A(t.min,t.max,r);_(t,e,i,s,n)}function D(t,e){V(t.x,e.x,e.scaleX,e.scale,e.originX),V(t.y,e.y,e.scaleY,e.scale,e.originY)}function L(t,e){return T(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let F=new Set(["width","height","top","left","right","bottom",...o]),I=(t,e,i)=>i>e?e:i<t?t:i,B={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},N={...B,transform:t=>I(0,1,t)},U={...B,default:1},z=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),W=z("deg"),$=z("%"),Y=z("px"),H=z("vh"),K=z("vw"),q={...$,parse:t=>$.parse(t)/100,transform:t=>$.transform(100*t)},X=t=>e=>e.test(t),G=[B,Y,$,W,K,H,{test:t=>"auto"===t,parse:t=>t}],Z=t=>G.find(X(t)),J=()=>{},Q=()=>{},tt=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),te=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ti=t=>t===B||t===Y,tn=new Set(["x","y","z"]),tr=o.filter(t=>!tn.has(t)),ts={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})=>g(e,"x"),y:(t,{transform:e})=>g(e,"y")};ts.translateX=ts.x,ts.translateY=ts.y;let to=t=>t,ta={},tl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],tu={value:null,addProjectionMetrics:null};function th(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=tl.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}
1r=!0,[i,n]=[n,i],i.forEach(u),e&&tu.value&&tu.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:f}=o,m=()=>{let s=ta.useManualTiming?r.timestamp:performance.now();i=!1,ta.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),f.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(m))},g=()=>{i=!0,n=!0,r.isProcessing||t(m)};return{schedule:tl.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,r=!1)=>(i||g(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<tl.length;e++)o[tl[e]].cancel(t)},state:r,steps:o}}let{schedule:tc,cancel:td,state:tp,steps:tf}=th("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:to,!0),tm=new Set,tg=!1,ty=!1,tv=!1;function tx(){if(ty){let t=Array.from(tm).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return tr.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}ty=!1,tg=!1,tm.forEach(t=>t.complete(tv)),tm.clear()}function tb(){tm.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ty=!0)})}class tw{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?(tm.add(this),tg||(tg=!0,tc.read(tb),tc.resolveKeyframes(tx))):(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])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tm.delete(this)}cancel(){"scheduled"===this.state&&(tm.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tS=t=>/^0[^.\s]+$/u.test(t),tP=t=>Math.round(1e5*t)/1e5,tT=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tE=(t,e)=>i=>!!("string"==typeof i&&tA.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tM=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(tT);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tC=t=>I(0,255,t),tR={...B,transform:t=>Math.round(tC(t))},tj={test:tE("rgb","red"),parse:tM("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tR.transform(t)+", "+tR.transform(e)+", "+tR.transform(i)+", "+tP(N.transform(n))+")"},t_={test:tE("#"),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:tj.transform},tk={test:tE("hsl","hue"),parse:tM("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+$.transform(tP(e))+", "+$.transform(tP(i))+", "+tP(N.transform(n))+")"},tO={test:t=>tj.test(t)||t_.test(t)||tk.test(t),parse:t=>tj.test(t)?tj.parse(t):tk.test(t)?tk.parse(t):t_.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tj.transform(t):tk.transform(t),getAnimatableNone:t=>{let e=tO.parse(t);return e.alpha=0,tO.transform(e)}},tV=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tD="number",tL="color",tF=/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 tI(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(tF,t=>(tO.test(t)?(n.color.push(s),r.push(tL),i.push(tO.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(tD),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function tB(t){return tI(t).values}function tN(t){let{split:e,types:i}=tI(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===tD?r+=tP(t[s]):e===tL?r+=tO.transform(t[s]):r+=t[s]}return r}}let tU=t=>"number"==typeof t?0:tO.test(t)?tO.getAnimatableNone(t):t,tz={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(tT)?.length||0)+(t.match(tV)?.length||0)>0},parse:tB,createTransformer:tN,getAnimatableNone:function(t){let e=tB(t);return tN(t)(e.map(tU))}},tW=new Set(["brightness","contrast","saturate","opacity"]);function t$(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(tT)||[];if(!n)return t;let r=i.replace(n,""),s=tW.has(e)?1:0;return n!==i&&(s*=100),e+"("+s+r+")"}let tY=/\b([a-z-]*)\(.*?\)/gu,tH={...tz,getAnimatableNone:t=>{let e=t.match(tY);return e?e.map(t$).join(" "):t}},tK={...B,transform:Math.round},tq={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,backgroundPositionX:Y,backgroundPositionY:Y,rotate:W,rotateX:W,rotateY:W,rotateZ:W,scale:U,scaleX:U,scaleY:U,scaleZ:U,skew:W,skewX:W,skewY:W,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:N,originX:q,originY:q,originZ:Y,zIndex:tK,fillOpacity:N,strokeOpacity:N,numOctaves:tK},tX={...tq,color:tO,backgroundColor:tO,outlineColor:tO,fill:tO,stroke:tO,borderColor:tO,borderTopColor:tO,borderRightColor:tO,borderBottomColor:tO,borderLeftColor:tO,filter:tH,WebkitFilter:tH},tG=t=>tX[t];function tZ(t,e){let i=tG(t);return i!==tH&&(i=tz),i.getAnimatableNone?i.getAnimatableNone(e):void 0}
1let tJ=new Set(["auto","none","0"]);class tQ extends tw{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&&S(n=n.trim())){let r=function t(e,i,n=1){Q(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=te.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 tt(t)?parseFloat(t):t}return S(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(),!F.has(i)||2!==t.length)return;let[n,r]=t,s=Z(n),o=Z(r);if(s!==o){if(ti(s)&&ti(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else ts[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||tS(n)))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!tJ.has(e)&&tI(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tZ(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=ts[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]=ts[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let t0=t=>!!(t&&t.getVelocity);function t1(){n=void 0}let t2={now:()=>(void 0===n&&t2.set(tp.isProcessing||ta.useManualTiming?tp.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(t1)}};function t5(t,e){-1===t.indexOf(e)&&t.push(e)}function t3(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class t4{constructor(){this.subscriptions=[]}add(t){return t5(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}}let t6=t=>!isNaN(parseFloat(t)),t9={current:void 0};class t8{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=t2.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=t2.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=t6(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 t4);let i=this.events[t].add(e);return"change"===t?()=>{i(),tc.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 t9.current&&t9.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=t2.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function t7(t,e){return new t8(t,e)}let et=[...G,tO,tz],ee=t=>et.find(X(t)),{schedule:ei,cancel:en}=th(queueMicrotask,!1),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])};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()});var eh=i(4563);let ec={current:null},ed={current:!1},ep=new WeakMap;function ef(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function em(t){return"string"==typeof t||Array.isArray(t)}let eg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ey=["initial",...eg];function ev(t){return ef(t.animate)||ey.some(e=>em(t[e]))}function ex(t){return!!(ev(t)||t.variants)}function eb(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function ew(t,e,i,n){if("function"==typeof e){let[r,s]=eb(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]=eb(n);e=e(void 0!==i?i:t.custom,r,s)}return e}let eS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class eP{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=tw,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=t2.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tc.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=ev(e),this.isVariantNode=ex(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==a[t]&&t0(e)&&e.set(a[t])}}mount(t){this.current=t,ep.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)),ed.current||function(){if(ed.current=!0,eh.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ec.current=t.matches;t.addEventListener("change",e),e()}else ec.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ec.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),td(this.notifyUpdate),td(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 i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=a.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tc.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in es){let e=es[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):eu()}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<eS.length;e++){let i=eS[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}
1this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(t0(r))t.addValue(n,r);else if(t0(s))t.addValue(n,t7(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,t7(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=t7(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&&(tt(i)||tS(i))?i=parseFloat(i):!ee(i)&&tz.test(e)&&(i=tZ(t,e)),this.setBaseTarget(t,t0(i)?i.get():i)),t0(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=ew(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||t0(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 t4),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){ei.render(this.render)}}class eT extends eP{constructor(){super(...arguments),this.KeyframeResolver=tQ}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;t0(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}let eA=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eE={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eM=o.length;function eC(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(a.has(t)){l=!0;continue}if(b(t)){r[t]=i;continue}{let e=eA(i,tq[t]);t.startsWith("origin")?(u=!0,s[t]=e):n[t]=e}}if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s<eM;s++){let a=o[s],l=t[a];if(void 0===l)continue;let u=!0;if(!(u="number"==typeof l?l===(a.startsWith("scale")?1:0):0===parseFloat(l))||i){let t=eA(l,tq[a]);if(!u){r=!1;let e=eE[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin=`${t} ${e} ${i}`}}function eR(t,{style:e,vars:i},n,r){let s;let o=t.style;for(s in e)o[s]=e[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}let ej={};function e_(t,{layout:e,layoutId:i}){return a.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!ej[t]||"opacity"===t)}function ek(t,e,i){let{style:n}=t,r={};for(let s in n)(t0(n[s])||e.style&&t0(e.style[s])||e_(s,t)||i?.getValue(s)?.liveStyle!==void 0)&&(r[s]=n[s]);return r}class eO extends eT{constructor(){super(...arguments),this.type="html",this.renderInstance=eR}readValueFromInstance(t,e){if(a.has(e))return this.projection?.isProjecting?m(e):y(t,e);{let i=window.getComputedStyle(t),n=(b(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return L(t,e)}build(t,e,i){eC(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return ek(t,e,i)}}let eV=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eD={offset:"stroke-dashoffset",array:"stroke-dasharray"},eL={offset:"strokeDashoffset",array:"strokeDasharray"};function eF(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(eC(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?eD:eL;t[s.offset]=Y.transform(-n);let o=Y.transform(e),a=Y.transform(i);t[s.array]=`${o} ${a}`}(c,r,s,o,!1)}let eI=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"]),eB=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eN(t,e,i){let n=ek(t,e,i);for(let i in t)(t0(t[i])||t0(e[i]))&&(n[-1!==o.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class eU extends eT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=eu}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(a.has(e)){let t=tG(e);return t&&t.default||0}return e=eI.has(e)?e:eV(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eN(t,e,i)}build(t,e,i){eF(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){!function(t,e,i,n){for(let i in eR(t,e,void 0,n),e.attrs)t.setAttribute(eI.has(i)?i:eV(i),e.attrs[i])}(t,e,0,n)}mount(t){this.isSVGTag=eB(t.tagName),super.mount(t)}}let ez=["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 eW(t){if("string"!=typeof t||t.includes("-"));else if(ez.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e$=i(7437),eY=i(8881);let eH=(0,s.createContext)({strict:!1});var eK=i(5750);let eq=(0,s.createContext)({});function eX(t){return Array.isArray(t)?t.join(" "):t}let eG=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eZ(t,e,i){for(let n in e)t0(e[n])||e_(n,i)||(t[n]=e[n])}let eJ=()=>({...eG(),attrs:{}}),eQ=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 e0(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eQ.has(t)}let e1=t=>!e0(t);try{r=require("@emotion/is-prop-valid").default,"function"==typeof r&&(e1=t=>t.startsWith("on")?!e0(t):r(t))}catch{}var e2=i(4252),e5=i(3576);function e3(t){return t0(t)?t.get():t}let e4=t=>(e,i)=>{let n=(0,s.useContext)(eq),r=(0,s.useContext)(e2.O),o=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:r,createRenderState:s}=t;return{latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=e3(s[t]);let{initial:o,animate:a}=t,l=ev(t),u=ex(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,c=(h=h||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!ef(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=ew(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=h?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(e,i,n,r),renderState:s()}})(t,e,n,r);return i?o():(0,e5.h)(o)},e6=e4({scrapeMotionValuesFromProps:ek,createRenderState:eG}),e9=e4({scrapeMotionValuesFromProps:eN,createRenderState:eJ}),e8=Symbol.for("motionComponentSymbol");function e7(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let it="data-"+eV("framerAppearId"),ie=(0,s.createContext)({});var ii=i(1534);function ir(t){var e,i;let{forwardMotionProps:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;r&&function(t){for(let e in t)es[e]={...es[e],...t[e]}}(r);let a=eW(t)?e9:e6;function l(e,i){var r;let l;let u={...(0,s.useContext)(eK._),...e,layoutId:function(t){let{layoutId:e}=t,i=(0,s.useContext)(eY.p).id;return i&&void 0!==e?i+"-"+e:e}(e)},{isStatic:h}=u,c=function(t){let{initial:e,animate:i}=function(t,e){if(ev(t)){let{initial:e,animate:i}=t;return{initial:!1===e||em(e)?e:void 0,animate:em(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(eq));return(0,s.useMemo)(()=>({initial:e,animate:i}),[eX(e),eX(i)])}(e),d=a(e,h);if(!h&&eh.j){(0,s.useContext)(eH).strict;let e=function(t){let{drag:e,layout:i}=es;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(u);l=e.MeasureLayout,c.visualElement=function(t,e,i,n,r){var o,a,l,u;let{visualElement:h}=(0,s.useContext)(eq),c=(0,s.useContext)(eH),d=(0,s.useContext)(e2.O),p=(0,s.useContext)(eK._).reducedMotion,f=(0,s.useRef)(null);n=n||c.renderer,!f.current&&n&&(f.current=n(t,{visualState:e,parent:h,props:i,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p}));let m=f.current,g=(0,s.useContext)(ie);m&&!m.projection&&r&&("html"===m.type||"svg"===m.type)&&function(t,e,i,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&&e7(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(f.current,i,r,g);let y=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{m&&y.current&&m.update(i,d)});let v=i[it],x=(0,s.useRef)(!!v&&!(null===(o=(a=window).MotionHandoffIsComplete)||void 0===o?void 0:o.call(a,v))&&(null===(l=(u=window).MotionHasOptimisedAnimation)||void 0===l?void 0:l.call(u,v)));return(0,ii.L)(()=>{m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),x.current&&m.animationState&&m.animationState.animateChanges())}),(0,s.useEffect)(()=>{m&&(!x.current&&m.animationState&&m.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var t,e;null===(t=(e=window).MotionHandoffMarkAsComplete)||void 0===t||t.call(e,v)}),x.current=!1),m.enteringChildren=void 0)}),m}(t,d,u,o,e.ProjectionNode)}return(0,e$.jsxs)(eq.Provider,{value:c,children:[l&&c.visualElement?(0,e$.jsx)(l,{visualElement:c.visualElement,...u}):null,function(t,e,i,n,r){let{latestValues:o}=n,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=(eW(t)?function(t,e,i,n){let r=(0,s.useMemo)(()=>{let i=eJ();return eF(i,e,eB(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};eZ(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return eZ(n,i,t),Object.assign(n,function(t,e){let{transformTemplate:i}=t;return(0,s.useMemo)(()=>{let t=eG();return eC(t,e,i),Object.assign({},t.vars,t.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(e,o,r,t),u=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(e1(r)||!0===i&&e0(r)||!e&&!e0(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,a),h=t!==s.Fragment?{...u,...l,ref:i}:{},{children:c}=e,d=(0,s.useMemo)(()=>t0(c)?c.get():c,[c]);return(0,s.createElement)(t,{...h,children:d})}(t,e,(r=c.visualElement,(0,s.useCallback)(t=>{t&&d.onMount&&d.onMount(t),r&&(t?r.mount(t):r.unmount()),i&&("function"==typeof i?i(t):e7(i)&&(i.current=t))},[r])),d,h,n)]})}l.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!==(i=null!==(e=t.displayName)&&void 0!==e?e:t.name)&&void 0!==i?i:"",")"));let u=(0,s.forwardRef)(l);return u[e8]=t,u}function is(t,e,i){let n=t.getProps();return ew(n,e,void 0!==i?i:n.custom,t)}function io(t,e){return t?.[e]??t?.default??t}let ia=t=>Array.isArray(t);function il(t,e){let i=t.getValue("willChange");if(t0(i)&&i.add)return i.add(e);if(!i&&ta.WillChange){let i=new ta.WillChange("auto");t.addValue("willChange",i),i.add(e)}}function iu(t){t.duration=0,t.type="keyframes"}let ih=(t,e)=>i=>e(t(i)),ic=(...t)=>t.reduce(ih),id=t=>1e3*t,ip=t=>t/1e3,im={layout:0,mainThread:0,waapi:0};function ig(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iy(t,e){return i=>i>0?e:t}let iv=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},ix=[t_,tj,tk],ib=t=>ix.find(e=>e.test(t));function iw(t){let e=ib(t);if(J(!!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===tk&&(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=ig(a,n,t+1/3),s=ig(a,n,t),o=ig(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 iS=(t,e)=>{let i=iw(t),n=iw(e);if(!i||!n)return iy(t,e);let r={...i};return t=>(r.red=iv(i.red,n.red,t),r.green=iv(i.green,n.green,t),r.blue=iv(i.blue,n.blue,t),r.alpha=A(i.alpha,n.alpha,t),tj.transform(r))}
1,iP=new Set(["none","hidden"]);function iT(t,e){return i=>A(t,e,i)}function iA(t){return"number"==typeof t?iT:"string"==typeof t?S(t)?iy:tO.test(t)?iS:iC:Array.isArray(t)?iE:"object"==typeof t?tO.test(t)?iS:iM:iy}function iE(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>iA(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function iM(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=iA(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let iC=(t,e)=>{let i=tz.createTransformer(e),n=tI(t),r=tI(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?iP.has(t)&&!r.values.length||iP.has(e)&&!n.values.length?iP.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:ic(iE(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):(J(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iy(t,e))};function iR(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?A(t,e,i):iA(t)(t,e)}let ij=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tc.update(e,t),stop:()=>td(e),now:()=>tp.isProcessing?tp.timestamp:t2.now()}},i_=(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 ik(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}function iO(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}let iV={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function iD(t,e){return t*Math.sqrt(1-e*e)}let iL=["duration","bounce"],iF=["stiffness","damping","mass"];function iI(t,e){return e.some(e=>void 0!==t[e])}function iB(t=iV.visualDuration,e=iV.bounce){let i;let n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:s}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=function(t){let e={velocity:iV.velocity,stiffness:iV.stiffness,damping:iV.damping,mass:iV.mass,isResolvedFromDuration:!1,...t};if(!iI(t,iF)&&iI(t,iL)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*I(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:iV.mass,stiffness:n,damping:r}}else{let i=function({duration:t=iV.duration,bounce:e=iV.bounce,velocity:i=iV.velocity,mass:n=iV.mass}){let r,s;J(t<=id(iV.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=I(iV.minDamping,iV.maxDamping,o),t=I(iV.minDuration,iV.maxDuration,ip(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/iD(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=iD(Math.pow(e,2),o);return(n*i+i-s)*Math.exp(-n)*(-r(e)+.001>0?-1:1)/a}):(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=id(t),isNaN(a))return{stiffness:iV.stiffness,damping:iV.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:iV.mass}).isResolvedFromDuration=!0}}return e}({...n,velocity:-ip(n.velocity||0)}),m=p||0,g=h/(2*Math.sqrt(u*c)),y=a-o,v=ip(Math.sqrt(u/c)),x=5>Math.abs(y);if(r||(r=x?iV.restSpeed.granular:iV.restSpeed.default),s||(s=x?iV.restDelta.granular:iV.restDelta.default),g<1){let t=iD(v,g);i=e=>a-Math.exp(-g*v*e)*((m+g*v*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-v*t)*(y+(m+v*y)*t);else{let t=v*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*v*e),n=Math.min(t*e,300);return a-i*((m+g*v*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}
1let b={calculatedDuration:f&&d||null,next:t=>{let e=i(t);if(f)l.done=t>=d;else{let n=0===t?m:0;g<1&&(n=0===t?id(m):iO(i,t,e));let o=Math.abs(n)<=r,u=Math.abs(a-e)<=s;l.done=o&&u}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(ik(b),2e4),e=i_(e=>b.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return b}function iN({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;let p=t[0],f={done:!1,value:p},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,g=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,y=i*e,v=p+y,x=void 0===o?v:o(v);x!==v&&(y=x-p);let b=t=>-y*Math.exp(-t/n),w=t=>x+b(t),S=t=>{let e=b(t),i=w(t);f.done=Math.abs(e)<=u,f.value=f.done?x:i},P=t=>{m(f.value)&&(c=t,d=iB({keyframes:[f.value,g(f.value)],velocity:iO(w,t,f.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,S(t),P(t)),void 0!==c&&t>=c)?d.next(t-c):(e||S(t),f)}}}iB.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(ik(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:ip(r)}}(t,100,iB);return t.ease=e.ease,t.duration=id(e.duration),t.type="keyframes",t};let iU=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function iz(t,e,i,n){if(t===e&&i===n)return to;let r=e=>(function(t,e,i,n,r){let s,o;let a=0;do(s=iU(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:iU(r(t),e,n)}let iW=iz(.42,0,1,1),i$=iz(0,0,.58,1),iY=iz(.42,0,.58,1),iH=t=>Array.isArray(t)&&"number"!=typeof t[0],iK=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,iq=t=>e=>1-t(1-e),iX=iz(.33,1.53,.69,.99),iG=iq(iX),iZ=iK(iG),iJ=t=>(t*=2)<1?.5*iG(t):.5*(2-Math.pow(2,-10*(t-1))),iQ=t=>1-Math.sin(Math.acos(t)),i0=iq(iQ),i1=iK(iQ),i2=t=>Array.isArray(t)&&"number"==typeof t[0],i5={linear:to,easeIn:iW,easeInOut:iY,easeOut:i$,circIn:iQ,circInOut:i1,circOut:i0,backIn:iG,backInOut:iZ,backOut:iX,anticipate:iJ},i3=t=>"string"==typeof t,i4=t=>{if(i2(t)){Q(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return iz(e,i,n,r)}return i3(t)?(Q(void 0!==i5[t],`Invalid easing type '${t}'`,"invalid-easing-type"),i5[t]):t},i6=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function i9({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){let r=iH(n)?n.map(i4):i4(n),s={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(Q(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||ta.mix||iR,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=ic(Array.isArray(e)?e[i]||to: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=i6(t[n],t[n+1],i);return a[n](r)};return i?e=>u(I(t[0],t[s-1],e)):u}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=i6(0,e,n);t.push(A(i,1,r))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(r)?r:e.map(()=>r||iY).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}let i8=t=>null!==t;function i7(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(i8),o=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}let nt={decay:iN,inertia:iN,tween:i9,keyframes:i9,spring:iB};function ne(t){"string"==typeof t.type&&(t.type=nt[t.type])}class ni{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 nn=t=>t/100;class nr extends ni{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!==t2.now()&&this.tick(t2.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},im.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;
1ne(t);let{type:e=i9,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,a=e||i9;a!==i9&&"number"!=typeof o[0]&&(this.mixKeyframes=ic(nn,iR(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=ik(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:f,finalKeyframe:m}=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),y=this.playbackSpeed>=0?g<0:g>n;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let v=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/o)):"mirror"===c&&(x=s)),v=I(0,1,i)*o}let b=y?{done:!1,value:u[0]}:x.next(v);r&&(b.value=r(b.value));let{done:w}=b;y||null===a||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return S&&p!==iN&&(b.value=i7(u,this.options,m,this.speed)),f&&f(b.value),S&&this.finish(),b}then(t,e){return this.finished.then(t,e)}get duration(){return ip(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+ip(t)}get time(){return ip(this.currentTime)}set time(t){t=id(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(t2.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=ip(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=ij,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(t2.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,im.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)}}let ns=t=>t.startsWith("--");function no(t){let e;return()=>(void 0===e&&(e=t()),e)}let na=no(()=>void 0!==window.ScrollTimeline),nl={},nu=function(t,e){let i=no(t);return()=>nl[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),nh=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,nc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nh([0,.65,.55,1]),circOut:nh([.55,0,1,.45]),backIn:nh([.31,.01,.66,-.59]),backOut:nh([.33,1.53,.69,.99])};function nd(t){return"function"==typeof t&&"applyToOptions"in t}class np extends ni{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{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,Q("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return nd(t)&&nu()?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?nu()?i_(e,i):"ease-out":i2(e)?nh(e):Array.isArray(e)?e.map(e=>t(e,i)||nc.easeOut):nc[e]}(a,r);Array.isArray(c)&&(h.easing=c),tu.value&&im.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 tu.value&&p.finished.finally(()=>{im.waapi--}),p}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=i7(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):ns(i)?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 ip(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+ip(t)}get time(){return ip(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=id(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&&na())?(this.animation.timeline=t,to):e(this)}}let nf={anticipate:iJ,backInOut:iZ,circInOut:i1};class nm extends np{constructor(t){"string"==typeof t.ease&&t.ease in nf&&(t.ease=nf[t.ease]),ne(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){e.set(t);return}let o=new nr({...s,autoplay:!1}),a=id(this.finishedTime??this.time);e.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}let ng=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tz.test(t)||"0"===t)&&!t.startsWith("url(")),ny=new Set(["opacity","clipPath","filter","transform"]),nv=no(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nx extends ni{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=t2.now();let c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},d=u?.KeyframeResolver||tw;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;
1this.resolvedAt=t2.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=ng(r,e),a=ng(s,e);return J(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||nd(i))&&n)}(t,r,s,o)&&((ta.instantAnimations||!a)&&u?.(i7(t,i,e)),t[0]=t[t.length-1],iu(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 nv()&&i&&ny.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(h)?new nm({...h,element:h.motionValue.owner.current}):new nr(h);c.finished.then(()=>this.notifyFinished()).catch(to),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(),tv=!0,tb(),tx(),tv=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nb=t=>null!==t,nw={type:"spring",stiffness:500,damping:25,restSpeed:10},nS=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),nP={type:"keyframes",duration:.8},nT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nA=(t,{keyframes:e})=>e.length>2?nP:a.has(t)?t.startsWith("scale")?nS(e[1]):nw:nT,nE=(t,e,i,n={},r,s)=>o=>{let a=io(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=id(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,nA(t,h)),h.duration&&(h.duration=id(h.duration)),h.repeatDelay&&(h.repeatDelay=id(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(iu(h),0!==h.delay||(c=!0)),(ta.instantAnimations||ta.skipAnimations)&&(c=!0,iu(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(nb),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return r[s]}(h.keyframes,a);if(void 0!==t){tc.update(()=>{h.onUpdate(t),h.onComplete()});return}}return a.isSync?new nr(h):new nx(h)};function nM(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,...io(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=t.props[it];if(i){let t=window.MotionHandoffAnimation(i,e,tc);null!==t&&(o.startTime=t,c=!0)}}il(t,e),n.start(nE(e,n,r,t.shouldReduceMotion&&F.has(e)?{type:!1}:o,t,c));let d=n.animation;d&&l.push(d)}return o&&Promise.all(l).then(()=>{tc.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=is(t,e)||{};for(let e in r={...r,...i}){var s;let i=ia(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,t7(i))}}(t,o)})}),l}function nC(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 nR(t,e,i={}){let n=is(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>
1Promise.all(nM(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return 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(nR(l,e,{...o,delay:i+("function"==typeof n?0:n)+nC(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 nj(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}let n_=ey.length,nk=[...eg].reverse(),nO=eg.length;function nV(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nD(){return{animate:nV(!0),whileInView:nV(),whileHover:nV(),whileTap:nV(),whileDrag:nV(),whileFocus:nV(),exit:nV()}}class nL{constructor(t){this.isMounted=!1,this.node=t}update(){}}class nF extends nL{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=>nR(t,e,i)));else if("string"==typeof e)n=nR(t,e,i);else{let r="function"==typeof e?is(t,e,i.custom):e;n=Promise.all(nM(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nD(),n=!0,r=e=>(i,n)=>{let r=is(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<n_;t++){let n=ey[t],r=e.props[n];(em(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},l=[],u=new Set,h={},c=1/0;for(let e=0;e<nO;e++){var d;let p=nk[e],f=i[p],m=void 0!==o[p]?o[p]:a[p],g=em(m),y=p===s?f.isActive:null;!1===y&&(c=e);let v=m===a[p]&&m!==o[p]&&g;if(v&&n&&t.manuallyAnimateOnMount&&(v=!1),f.protectedKeys={...h},!f.isActive&&null===y||!m&&!f.prevProp||ef(m)||"boolean"==typeof m)continue;let x=(d=f.prevProp,"string"==typeof m?m!==d:!!Array.isArray(m)&&!nj(m,d)),b=x||p===s&&f.isActive&&!v&&g||e>c&&g,w=!1,S=Array.isArray(m)?m:[m],P=S.reduce(r(p),{});!1===y&&(P={});let{prevResolvedValues:T={}}=f,A={...T,...P},E=e=>{b=!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=P[t],i=T[t];if(!h.hasOwnProperty(t))(ia(e)&&ia(i)?nj(e,i):e===i)?void 0!==e&&u.has(t)?E(t):f.protectedKeys[t]=!0:null!=e?E(t):u.add(t)}f.prevProp=m,f.prevResolvedValues=P,f.isActive&&(h={...h,...P}),n&&t.blockInitialAnimation&&(b=!1);let M=v&&x,C=!M||w;b&&C&&l.push(...S.map(e=>{let i={type:p};if("string"==typeof e&&n&&!M&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=is(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=nC(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof o.initial){let i=is(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 p=!!l.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(p=!1),n=!1,p?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=nD()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();ef(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?.()}}let nI=0;class nB extends nL{constructor(){super(...arguments),this.id=nI++}
1update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let nN={x:!1,y:!1};function nU(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let nz=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function nW(t){return{point:{x:t.pageX,y:t.pageY}}}let n$=t=>e=>nz(e)&&t(e,nW(e));function nY(t,e,i,n){return nU(t,e,n$(i),n)}function nH(t){return t.max-t.min}function nK(t,e,i,n=.5){t.origin=n,t.originPoint=A(e.min,e.max,t.origin),t.scale=nH(i)/nH(e),t.translate=A(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 nq(t,e,i,n){nK(t.x,e.x,i.x,n?n.originX:void 0),nK(t.y,e.y,i.y,n?n.originY:void 0)}function nX(t,e,i){t.min=i.min+e.min,t.max=t.min+nH(e)}function nG(t,e,i){t.min=e.min-i.min,t.max=t.min+nH(e)}function nZ(t,e,i){nG(t.x,e.x,i.x),nG(t.y,e.y,i.y)}function nJ(t){return[t("x"),t("y")]}let nQ=({current:t})=>t?t.ownerDocument.defaultView:null,n0=(t,e)=>Math.abs(t-e);class n1{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=n3(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(n0(t.x,e.x)**2+n0(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=tp;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=n2(e,this.transformPagePoint),tc.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=n3("pointercancel"===t.type?this.lastMoveEventInfo:n2(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!nz(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;let o=n2(nW(t),this.transformPagePoint),{point:a}=o,{timestamp:l}=tp;this.history=[{...a,timestamp:l}];let{onSessionStart:u}=e;u&&u(t,n3(o,this.history)),this.removeListeners=ic(nY(this.contextWindow,"pointermove",this.handlePointerMove),nY(this.contextWindow,"pointerup",this.handlePointerUp),nY(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),td(this.updatePoint)}}function n2(t,e){return e?{point:e(t.point)}:t}function n5(t,e){return{x:t.x-e.x,y:t.y-e.y}}function n3({point:t},e){return{point:t,delta:n5(t,n4(e)),offset:n5(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=n4(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>id(.1)));)i--;if(!n)return{x:0,y:0};let s=ip(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,0)}}function n4(t){return t[t.length-1]}function n6(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 n9(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 n8(t,e,i){return{min:n7(t,e),max:n7(t,i)}}function n7(t,e){return"number"==typeof t?t:t[e]||0}let rt=new WeakMap;class re{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=eu(),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{dragSnapToOrigin:r}=this.getProps();this.panSession=new n1(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(nW(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?nN[i]?null:(nN[i]=!0,()=>{nN[i]=!1}):nN.x||nN.y?null:(nN.x=nN.y=!0,()=>{nN.x=nN.y=!1}),!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),nJ(t=>{let e=this.getAxisMotionValue(t).get()||0;if($.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=nH(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&tc.postRender(()=>r(t,e)),il(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(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)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>nJ(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,distanceThreshold:i,contextWindow:nQ(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&&tc.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||!ri(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?A(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?A(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&&e7(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:n6(t.x,i,r),y:n6(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:n8(t,"left","right"),y:n8(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&nJ(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!e7(e))return!1;let n=e.current;Q(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;
1let s=function(t,e,i){let n=L(t,i),{scroll:r}=e;return r&&(O(n.x,r.offset.x),O(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o={x:n9((t=r.layout.layoutBox).x,s.x),y:n9(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=T(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(nJ(o=>{if(!ri(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 il(this.visualElement,t),i.start(nE(t,i,0,e,this.visualElement,!1))}stopAnimation(){nJ(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nJ(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){nJ(e=>{let{drag:i}=this.getProps();if(!ri(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]-A(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!e7(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nJ(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=nH(t),r=nH(e);return r>n?i=i6(e.min,e.max-n,t.min):n>r&&(i=i6(t.min,t.max-r,e.min)),I(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),nJ(e=>{if(!ri(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(A(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;rt.set(this.visualElement,this);let t=nY(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();e7(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()),tc.read(e);let r=nU(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nJ(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function ri(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class rn extends nL{constructor(t){super(t),this.removeGroupControls=to,this.removeListeners=to,this.controls=new re(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||to}unmount(){this.removeGroupControls(),this.removeListeners()}}let rr=t=>(e,i)=>{t&&tc.postRender(()=>t(e,i))};class rs extends nL{constructor(){super(...arguments),this.removePointerDownListener=to}onPointerDown(t){this.session=new n1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nQ(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:rr(t),onStart:rr(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&tc.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=nY(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var ro=i(9637);let ra={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rl(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ru={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Y.test(t))return t;t=parseFloat(t)}let i=rl(t,e.target.x),n=rl(t,e.target.y);return`${i}% ${n}%`}},rh=!1;class rc extends s.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;!function(t){for(let e in t)ej[e]=t[e],b(e)&&(ej[e].isCSSVariable=!0)}(rp),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),rh&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),ra.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,rh=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||tc.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ei.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;rh=!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 rd(t){let[e,i]=(0,ro.oO)(),n=(0,s.useContext)(eY.p);return(0,e$.jsx)(rc,{...t,layoutGroup:n,switchLayoutGroup:(0,s.useContext)(ie),isPresent:e,safeToRemove:i})}let rp={borderRadius:{...ru,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ru,borderTopRightRadius:ru,borderBottomLeftRadius:ru,borderBottomRightRadius:ru,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tz.parse(t);if(n.length>5)return t;let r=tz.createTransformer(t),s="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=A(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};var rf=i(1464);function rm(t){return(0,rf.K)(t)&&"ownerSVGElement"in t}let rg=(t,e)=>t.depth-e.depth;class ry{constructor(){this.children=[],this.isDirty=!1}add(t){t5(this.children,t),this.isDirty=!0}remove(t){t3(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rg),this.isDirty=!1,this.children.forEac
1h(t)}}let rv=["TopLeft","TopRight","BottomLeft","BottomRight"],rx=rv.length,rb=t=>"string"==typeof t?parseFloat(t):t,rw=t=>"number"==typeof t||Y.test(t);function rS(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rP=rA(0,.5,i0),rT=rA(.5,.95,to);function rA(t,e,i){return n=>n<t?0:n>e?1:i(i6(t,e,n))}function rE(t,e){t.min=e.min,t.max=e.max}function rM(t,e){rE(t.x,e.x),rE(t.y,e.y)}function rC(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rR(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function rj(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if($.test(e)&&(e=parseFloat(e),e=A(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=A(s.min,s.max,n);t===s&&(a-=e),t.min=rR(t.min,e,i,a,r),t.max=rR(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let r_=["x","scaleX","originX"],rk=["y","scaleY","originY"];function rO(t,e,i,n){rj(t.x,e,r_,i?i.x:void 0,n?n.x:void 0),rj(t.y,e,rk,i?i.y:void 0,n?n.y:void 0)}function rV(t){return 0===t.translate&&1===t.scale}function rD(t){return rV(t.x)&&rV(t.y)}function rL(t,e){return t.min===e.min&&t.max===e.max}function rF(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rI(t,e){return rF(t.x,e.x)&&rF(t.y,e.y)}function rB(t){return nH(t.x)/nH(t.y)}function rN(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rU{constructor(){this.members=[]}add(t){t5(this.members,t),t.scheduleRender()}remove(t){if(t3(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rz={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},rW=["","X","Y","Z"],r$=0;function rY(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function rH({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=r$++,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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tu.value&&(rz.nodes=rz.calculatedTargetDeltas=rz.calculatedProjections=0),this.nodes.forEach(rX),this.nodes.forEach(r2),this.nodes.forEach(r5),this.nodes.forEach(rG),tu.addProjectionMetrics&&tu.addProjectionMetrics(rz)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new ry)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t4),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=rm(e)&&!(rm(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;let n=0,r=()=>this.root.updateBlockedByResize=!1;tc.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=t2.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&(td(n),t(r-250))};return tc.setup(n,!0),()=>td(n)}(r,0),ra.hasAnimatedSinceResize&&(ra.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(r1)))})}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()||r7,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!rI(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...io(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||r1(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(),td(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(r3),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[it];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tc,!(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(rJ);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(rQ);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(r0),this.nodes.forEach(rK),this.nodes.forEach(rq)):this.nodes.forEach(rQ),this.clearAllSnapshots();let t=t2.now();tp.delta=I(0,1e3/60,t-tp.timestamp),tp.timestamp=t,tp.isProcessing=!0,tf.update.process(tp),tf.preRender.process(tp),tf.render.process(tp),tp.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ei.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rZ),this.sharedNodes.forEach(r4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tc.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tc.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||nH(this.snapshot.measuredBox.x)||nH(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.layoutCorrected=eu(),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(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rD(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||C(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),si((e=n).x),si(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return eu();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sr))){let{scroll:t}=this.root;t&&(O(e.x,t.offset.x),O(e.y,t.offset.y))}return e}removeElementScroll(t){let e=eu();if(rM(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&&rM(e,t),O(e.x,r.offset.x),O(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let i=eu();rM(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&&D(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),C(n.latestValues)&&D(i,n.latestValues)}return C(this.latestValues)&&D(i,this.latestValues),i}removeTransform(t){let e=eu();rM(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!C(i.latestValues))continue;M(i.latestValues)&&i.updateSnapshot();let n=eu();rM(n,i.measurePageBox()),rO(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return C(this.latestValues)&&rO(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!==tp.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:r}=this.options;if(this.layout&&(n||r)){if(this.resolvedRelativeTargetAt=tp.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=eu(),this.relativeTargetOrigin=eu(),nZ(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rM(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=eu(),this.targetWithTransforms=eu()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,o,a;this.forceRelativeParentToResolveTarget(),s=this.target,o=this.relativeTarget,a=this.relativeParent.target,nX(s.x,o.x,a.x),nX(s.y,o.y,a.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rM(this.target,this.layout.layoutBox),k(this.target,this.targetDelta)):rM(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=eu(),this.relativeTargetOrigin=eu(),nZ(this.relativeTargetOrigin,this.target,t.target),rM(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tu.value&&rz.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||M(this.parent.latestValues)||R(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tp.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=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||r))return;rM(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let r,s;let 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&&D(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,k(t,s)),n&&C(r.latestValues)&&D(t,r.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=eu());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rC(this.prevProjectionDelta.x,this.projectionDelta.x),rC(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nq(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&rN(this.projectionDelta.x,this.prevProjectionDelta.x)&&rN(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),tu.value&&rz.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=ea(),this.projectionDelta=ea(),this.projectionDeltaWithTransform=ea()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=ea();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=eu(),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(r8));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(r6(o.x,t.x,n),r6(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f;nZ(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,r9(p.x,f.x,a.x,n),r9(p.y,f.y,a.y,n),i&&(u=this.relativeTarget,d=i,rL(u.x,d.x)&&rL(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=eu()),rM(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=A(0,i.opacity??1,rP(n)),t.opacityExit=A(e.opacity??1,0,rT(n))):s&&(t.opacity=A(e.opacity??1,i.opacity??1,n));for(let r=0;r<rx;r++){let s=`border${rv[r]}Radius`,o=rS(e,s),a=rS(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rw(o)===rw(a)?(t[s]=Math.max(A(rb(o),rb(a),n),0),($.test(a)||$.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=A(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(td(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tc.update(()=>{ra.hasAnimatedSinceResize=!0,im.layout++,this.motionValue||(this.motionValue=t7(0)),this.currentAnimation=function(t,e,
1i){let n=t0(t)?t:t7(t);return n.start(nE("",n,e,i)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{im.layout--},onComplete:()=>{im.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&sn(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||eu();let e=nH(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nH(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}rM(e,i),D(e,r),nq(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rU),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;
1return 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&&rY("z",t,n,this.animationValues);for(let e=0;e<rW.length;e++)rY(`rotate${rW[e]}`,t,n,this.animationValues),rY(`skew${rW[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=e3(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=e3(e?.pointerEvents)||""),this.hasProjected&&!C(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,ej){if(void 0===r[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=ej[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?e3(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(rJ),this.root.sharedNodes.clear()}}}function rK(t){t.updateLayout()}function rq(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?nJ(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=nH(n);n.min=i[t].min,n.max=n.min+r}):sn(r,e.layoutBox,i)&&nJ(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=nH(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=ea();nq(o,i,e.layoutBox);let a=ea();s?nq(a,t.applyTransform(n,!0),e.measuredBox):nq(a,i,e.layoutBox);let l=!rD(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=eu();nZ(o,e.layoutBox,r.layoutBox);let a=eu();nZ(a,i,s.layoutBox),rI(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 rX(t){tu.value&&rz.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rG(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rZ(t){t.clearSnapshot()}function rJ(t){t.clearMeasurements()}function rQ(t){t.isLayoutDirty=!1}function r0(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function r1(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function r2(t){t.resolveTargetDelta()}function r5(t){t.calcProjection()}function r3(t){t.resetSkewAndRotation()}function r4(t){t.removeLeadSnapshot()}function r6(t,e,i){t.translate=A(e.translate,0,i),t.scale=A(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function r9(t,e,i,n){t.min=A(e.min,i.min,n),t.max=A(e.max,i.max,n)}function r8(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let r7={duration:.45,ease:[.4,0,.1,1]},st=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),se=st("applewebkit/")&&!st("chrome/")?Math.round:to;function si(t){t.min=se(t.min),t.max=se(t.max)}function sn(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rB(e)-rB(i)))}function sr(t){return t!==t.root&&t.scroll?.wasRoot}let ss=rH({attachResizeListener:(t,e)=>nU(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),so={current:void 0},sa=rH({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!so.current){let t=new ss({});t.mount(window),t.setOptions({layoutScroll:!0}),so.current=t}return so.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sl(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 su(t){return!("touch"===t.pointerType||nN.x||nN.y)}function sh(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&tc.postRender(()=>r(e,nW(e)))}class sc extends nL{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=sl(t,i),o=t=>{if(!su(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let s=t=>{su(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)=>(sh(this.node,e,"Start"),t=>sh(this.node,t,"End"))))}unmount(){}}class sd extends nL{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=ic(nU(this.node.current,"focus",()=>this.onFocus()),nU(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var sp=i(3537);let sf=(t,e)=>!!e&&(t===e||sf(t,e.parentElement)),sm=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),sg=new WeakSet;function sy(t){return e=>{"Enter"===e.key&&t(e)}}function sv(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let sx=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=sy(()=>{if(sg.has(i))return;sv(i,"down");let t=sy(()=>{sv(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sv(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function sb(t){return nz(t)&&!(nN.x||nN.y)}function sw(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&&tc.postRender(()=>r(e,nW(e)))}class sS extends nL{mount(){let{current:t}=this.node;
1t&&(this.unmount=function(t,e,i={}){let[n,r,s]=sl(t,i),o=t=>{let n=t.currentTarget;if(!sb(t))return;sg.add(n);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),sg.has(n)&&sg.delete(n),sb(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||sf(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,sp.R)(t)&&(t.addEventListener("focus",t=>sx(t,r)),sm.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(sw(this.node,e,"Start"),(t,{success:e})=>sw(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let sP=new WeakMap,sT=new WeakMap,sA=t=>{let e=sP.get(t.target);e&&e(t)},sE=t=>{t.forEach(sA)},sM={some:0,all:1};class sC extends nL{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:sM[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;sT.has(i)||sT.set(i,{});
1let n=sT.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(sE,{root:t,...e})),n[r]}(e);return sP.set(t,i),n.observe(t),()=>{sP.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let sR=function(t,e){if("undefined"==typeof Proxy)return ir;let i=new Map,n=(i,n)=>ir(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,ir(s,void 0,t,e)),i.get(s))})}({animation:{Feature:nF},exit:{Feature:nB},inView:{Feature:sC},tap:{Feature:sS},focus:{Feature:sd},hover:{Feature:sc},pan:{Feature:rs},drag:{Feature:rn,ProjectionNode:sa,MeasureLayout:rd},layout:{ProjectionNode:sa,MeasureLayout:rd}},(t,e)=>eW(t)?new eU(e):new eO(e,{allowProjection:t!==s.Fragment}))},4563:function(t,e,i){"use strict";i.d(e,{j:function(){return n}});let n="undefined"!=typeof window},3576:function(t,e,i){"use strict";i.d(e,{h:function(){return r}});var n=i(2265);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},1534:function(t,e,i){"use strict";i.d(e,{L:function(){return r}});var n=i(2265);let r=i(4563).j?n.useLayoutEffect:n.useEffect},3537:function(t,e,i){"use strict";i.d(e,{R:function(){return r}});var n=i(1464);function r(t){return(0,n.K)(t)&&"offsetHeight"in t}},1464:function(t,e,i){"use strict";function n(t){return"object"==typeof t&&null!==t}i.d(e,{K:function(){return n}})}}]);

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.