PageSourceSearch

https://www.straitsbank.com/_next/static/chunks/3_6nwt1wul86o.js

js straitsbank.com collected 2026-10-02 01:45:19 UTC 154,354 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,64589,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=t.r(19059);function s(t,e){let i=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let t=i.current;t&&(i.current=null,t());let e=s.current;e&&(s.current=null,e())}else t&&(i.current=r(t,n)),e&&(s.current=r(e,n))},[t,e])}function r(t,e){if("function"!=typeof t)return t.current=e,()=>{t.current=null};{let i=t(e);return"function"==typeof i?i:()=>t(null)}}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},51903,(t,e,i)=>{"use strict";function n(t){let{widthInt:e,heightInt:i,blurWidth:n,blurHeight:s,blurDataURL:r,objectFit:o}=t,a=n?40*n:e,l=s?40*s: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='${r}'/%3E%3C/svg%3E`}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},44943,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return r},imageConfigDefault:function(){return o}};for(var s in n)Object.defineProperty(i,s,{enumerable:!0,get:n[s]});let r=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},88436,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImgProps",{enumerable:!0,get:function(){return u}}),t.r(58235);let n=t.r(76132),s=t.r(51903),r=t.r(44943),o=["-moz-initial","fill","none","scale-down",void 0];function a(t){return void 0!==t.default}function l(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 u(t,e){var i;let u,h,d,{src:c,sizes:p,unoptimized:m=!1,priority:f=!1,preload:g=!1,loading:v,className:y,quality:x,width:b,height:w,fill:P=!1,style:S,overrideSrc:T,onLoad:M,onLoadingComplete:E,placeholder:A="empty",blurDataURL:C,fetchPriority:V,decoding:D="async",layout:R,objectFit:k,objectPosition:L,lazyBoundary:j,lazyRoot:B,...O}=t,{imgConf:F,showAltText:I,blurComplete:N,defaultLoader:_}=e,U=F||r.imageConfigDefault;if("allSizes"in U)u=U;else{let t=[...U.deviceSizes,...U.imageSizes].sort((t,e)=>t-e),e=U.deviceSizes.sort((t,e)=>t-e),i=U.qualities?.sort((t,e)=>t-e);u={...U,allSizes:t,deviceSizes:e,qualities:i}}if(void 0===_)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let z=O.loader||_;delete O.loader,delete O.srcSet;let $="__next_img_default"in z;if($){if("custom"===u.loader)throw Object.defineProperty(Error(`Image with src "${c}" is missing "loader" prop.
2Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,
2configurable:!0})}else{let t=z;z=e=>{let{config:i,...n}=e;return t(n)}}if(R){"fill"===R&&(P=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[R];t&&(S={...S,...t});let e={responsive:"100vw",fill:"100vw"}[R];e&&!p&&(p=e)}let W="",G=l(b),H=l(w);if((i=c)&&"object"==typeof i&&(a(i)||void 0!==i.src)){let t=a(c)?c.default:c;if(!t.src)throw Object.defineProperty(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)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(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)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(h=t.blurWidth,d=t.blurHeight,C=C||t.blurDataURL,W=t.src,!P)if(G||H){if(G&&!H){let e=G/t.width;H=Math.round(t.height*e)}else if(!G&&H){let e=H/t.height;G=Math.round(t.width*e)}}else G=t.width,H=t.height}let X=!f&&!g&&("lazy"===v||void 0===v);(!(c="string"==typeof c?c:W)||c.startsWith("data:")||c.startsWith("blob:"))&&(m=!0,X=!1),u.unoptimized&&(m=!0),$&&!u.dangerouslyAllowSVG&&c.split("?",1)[0].endsWith(".svg")&&(m=!0);let Y=l(x),K=Object.assign(P?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:k,objectPosition:L}:{},I?{}:{color:"transparent"},S),q=N||"empty"===A?null:"blur"===A?`url("data:image/svg+xml;charset=utf-8,${(0,s.getImageBlurSvg)({widthInt:G,heightInt:H,blurWidth:h,blurHeight:d,blurDataURL:C||"",objectFit:K.objectFit})}")`:`url("${A}")`,Z=o.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,J=q?{backgroundSize:Z,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:q}:{},Q=function(t){let{config:e,src:i,unoptimized:s,width:r,quality:o,sizes:a,loader:l}=t;if(s){if(i.startsWith("/")&&!i.startsWith("//")){let t=(0,n.getDeploymentId)();if(t){let e=i.indexOf("?");if(-1!==e){let n=new URLSearchParams(i.slice(e+1));n.get("dpl")||(n.append("dpl",t),i=i.slice(0,e)+"?"+n.toString())}else i+=`?dpl=${t}`}}return{src:i,srcSet:void 0,sizes:void 0}}let{widths:u,kind:h}=function(t,e,i){let{deviceSizes:n,allSizes:s}=t;if(i){let t=/(^|\s)(1?\d?\d)vw/g,e=[];for(let n;n=t.exec(i);)e.push(parseInt(n[2]));if(e.length){let t=.01*Math.min(...e);return{widths:s.filter(e=>e>=n[0]*t),kind:"w"}}return{widths:s,kind:"w"}}return"number"!=typeof e?{widths:n,kind:"w"}:{widths:[...new Set([e,2*e].map(t=>s.find(e=>e>=t)||s[s.length-1]))],kind:"x"}}(e,r,a),d=u.length-1;return{sizes:a||"w"!==h?a:"100vw",srcSet:u.map((t,n)=>`${l({config:e,src:i,quality:o,width:t})} ${"w"===h?t:n+1}${h}`).join(", "),src:l({config:e,src:i,quality:o,width:u[d]})}}({config:u,src:c,unoptimized:m,width:G,quality:Y,sizes:p,loader:z}),tt=X?"lazy":v;return{props:{...O,loading:tt,fetchPriority:V,width:G,height:H,decoding:D,className:y,style:{...K,...J},sizes:Q.sizes,srcSet:Q.srcSet,src:T||Q.src},meta:{unoptimized:m,preload:g||f,placeholder:A,fill:P}}}},21698,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return a}});let n=t.r(19059),s="u"<typeof window,r=s?()=>{}:n.useLayoutEffect,o=s?()=>{}:n.useEffect;function a(t){let{headManager:e,reduceComponentsToState:i}=t;function a(){if(e&&e.mountedInstances){let t=n.Children.toArray(Array.from(e.mountedInstances).filter(Boolean));e.updateHead(i(t))}}return s&&(e?.mountedInstances?.add(t.children),a()),r(()=>(e?.mountedInstances?.add(t.children),()=>{e?.mountedInstances?.delete(t.children)})),r(()=>(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}},20561,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return f},defaultHead:function(){return d}};for(var s in n)Object.defineProperty(i,s,{enumerable:!0,get:n[s]});let r=t.r(81258),o=t.r(44066),a=t.r(27994),l=o._(t.r(19059)),u=r._(t.r(21698)),h=t.r(70003);function d(){return[(0,a.jsx)("meta",{charSet:"utf-8"},"charset"),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function c(t,e){return"string"==typeof e||"number"==typeof e?t:e.type===l.default.Fragment?t.concat(l.default.Children.toArray(e.props.children).reduce((t,e)=>"string"==typeof e||"number"==typeof e?t:t.concat(e),[])):t.concat(e)}t.r(58235);let p=["name","httpEquiv","charSet","itemProp"];function m(t){let e,i,n,s;return t.reduce(c,[]).reverse().concat(d().reverse()).filter((e=new Set,i=new Set,n=new Set,s={},t=>{let r=!0,o=!1;if(t.key&&"number"!=typeof t.key&&t.key.indexOf("$")>0){o=!0;let i=t.key.slice(t.key.indexOf("$")+1);e.has(i)?r=!1:e.add(i)}switch(t.type){case"title":case"base":i.has(t.type)?r=!1:i.add(t.type);break;case"meta":for(let e=0,i=p.length;e<i;e++){let i=p[e];if(t.props.hasOwnProperty(i))if("charSet"===i)n.has(i)?r=!1:n.add(i);else{let e=t.props[i],n=s[i]||new Set;("name"!==i||!o)&&n.has(e)?r=!1:(n.add(e),s[i]=n)}}}return r})).reverse().map((t,e)=>{let i=t.key||e;return l.default.cloneElement(t,{key:i})})}let f=function(t){let{children:e}=t,i=(0,l.useContext)(h.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:m,headManager:i,children:e})};("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esMo
2dule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},29753,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"ImageConfigContext",{enumerable:!0,get:function(){return r}});let n=t.r(81258)._(t.r(19059)),s=t.r(44943),r=n.default.createContext(s.imageConfigDefault)},54634,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"RouterContext",{enumerable:!0,get:function(){return n}});let n=t.r(81258)._(t.r(19059)).default.createContext(null)},61635,(t,e,i)=>{"use strict";function n(t,e){let i=t||75;return e?.qualities?.length?e.qualities.reduce((t,e)=>Math.abs(e-i)<Math.abs(t-i)?e:t,e.qualities[0]):i}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"findClosestQuality",{enumerable:!0,get:function(){return n}})},86881,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return o}});let n=t.r(61635),s=t.r(76132);function r(t){let{config:e,src:i,width:r,quality:o}=t,a=(0,s.getDeploymentId)();if(i.startsWith("/")&&!i.startsWith("//")){let t=i.indexOf("?");if(-1!==t){let e=new URLSearchParams(i.slice(t+1)),n=e.get("dpl");if(n){a=n,e.delete("dpl");let s=e.toString();i=i.slice(0,t)+(s?"?"+s:"")}}}if(i.startsWith("/")&&i.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${i}" is using a query string which is not configured in images.localPatterns.
3Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let l=(0,n.findClosestQuality)(o,e);return`${e.path}?url=${encodeURIComponent(i)}&w=${r}&q=${l}${i.startsWith("/")&&a?`&dpl=${a}`:""}`}r.__next_img_default=!0;let o=r},14514,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"Image",{enumerable:!0,get:function(){return b}});let n=t.r(81258),s=t.r(44066),r=t.r(27994),o=s._(t.r(19059)),a=n._(t.r(33159)),l=n._(t.r(20561)),u=t.r(88436),h=t.r(44943),d=t.r(29753);t.r(58235);let c=t.r(54634),p=n._(t.r(86881)),m=t.r(64589),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75,85,90,95,100],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(t,e,i,n,s,r,o){let a=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&&s(!0),i?.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let n=!1,s=!1;i.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>n,isPropagationStopped:()=>s,persist:()=>{},preventDefault:()=>{n=!0,e.preventDefault()},stopPropagation:()=>{s=!0,e.stopPropagation()}})}n?.current&&n.current(t)}}))}function v(t){return o.use?{fetchPriority:t}:{fetchpriority:t}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let y=(0,o.forwardRef)((t,e)=>{let{src:i,srcSet:n,sizes:s,height:a,width:l,decoding:u,className:h,style:d,fetchPriority:c,placeholder:p,loading:f,unoptimized:y,fill:x,onLoadRef:b,onLoadingCompleteRef:w,setBlurComplete:P,setShowAltText:S,sizesInput:T,onLoad:M,onError:E,...A}=t,C=(0,o.useCallback)(t=>{t&&(E&&(t.src=t.src),t.complete&&g(t,p,b,w,P,y,T))},[i,p,b,w,P,E,y,T]),V=(0,m.useMergedRef)(e,C);return(0,r.jsx)("img",{...A,...v(c),loading:f,width:l,height:a,decoding:u,"data-nimg":x?"fill":"1",className:h,style:d,sizes:s,srcSet:n,src:i,ref:V,onLoad:t=>{g(t.currentTarget,p,b,w,P,y,T)},onError:t=>{S(!0),"empty"!==p&&P(!0),E&&E(t)}})});function x(t){let{isAppRouter:e,imgAttributes:i}=t,n={as:"image",imageSrcSet:i.srcSet,imageSizes:i.sizes,crossOrigin:i.crossOrigin,referrerPolicy:i.referrerPolicy,...v(i.fetchPriority)};return e&&a.default.preload?(a.default.preload(i.src,n),null):(0,r.jsx)(l.default,{children:(0,r.jsx)("link",{rel:"preload",href:i.srcSet?void 0:i.src,...n},"__nimg-"+i.src+i.srcSet+i.sizes)})}let b=(0,o.forwardRef)((t,e)=>{let i=(0,o.useContext)(c.RouterContext),n=(0,o.useContext)(d.ImageConfigContext),s=(0,o.useMemo)(()=>{let t=f||n||h.imageConfigDefault,e=[...t.deviceSizes,...t.imageSizes].sort((t,e)=>t-e),i=t.deviceSizes.sort((t,e)=>t-e),s=t.qualities?.sort((t,e)=>t-e);return{...t,allSizes:e,deviceSizes:i,qualities:s,localPatterns:"u"<typeof window?n?.localPatterns:t.localPatterns}
3},[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[v,b]=(0,o.useState)(!1),[w,P]=(0,o.useState)(!1),{props:S,meta:T}=(0,u.getImgProps)(t,{defaultLoader:p.default,imgConf:s,blurComplete:v,showAltText:w});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y,{...S,unoptimized:T.unoptimized,placeholder:T.placeholder,fill:T.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:P,sizesInput:t.sizes,ref:e}),T.preload?(0,r.jsx)(x,{isAppRouter:!i,imgAttributes:S}):null]})});("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},50792,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return h},getImageProps:function(){return u}};for(var s in n)Object.defineProperty(i,s,{enumerable:!0,get:n[s]});let r=t.r(81258),o=t.r(88436),a=t.r(14514),l=r._(t.r(86881));function u(t){let{props:e}=(0,o.getImgProps)(t,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75,85,90,95,100],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let h=a.Image},90165,(t,e,i)=>{e.exports=t.r(50792)},18454,24032,93858,19496,31388,9138,69844,33795,29289,27684,36585,11920,26809,82466,70919,26490,94907,67682,69379,90692,57307,96457,19058,87120,68741,96402,31772,28301,60926,81142,5110,90932,27139,57798,21692,2915,91363,86843,16919,21280,20460,34907,61560,96819,88599,19563,48971,4445,70820,39068,35629,45744,42917,64646,61417,56731,79514,92798,t=>{"use strict";let e,i,n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(n);t.s(["transformPropOrder",0,n,"transformProps",0,s],24032);let r=(t,e,i)=>i>e?e:i<t?t:i;t.s(["clamp",0,r],93858);let o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},a={...o,transform:t=>r(0,1,t)},l={...o,default:1},u=t=>Math.round(1e5*t)/1e5,h=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,d=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,c=(t,e)=>i=>!!("string"==typeof i&&d.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),p=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,o,a]=n.match(h);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},m={...o,transform:t=>Math.round(r(0,255,t))},f={test:c("rgb","red"),parse:p("red","green","blue"),transform:t=>{let{red:e,green:i,blue:n,alpha:s=1}=t;return"rgba("+m.transform(e)+", "+m.transform(i)+", "+m.transform(n)+", "+u(a.transform(s))+")"}};t.s(["rgba",0,f],19496);let g={test:c("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:f.transform};t.s(["hex",0,g],31388);let v=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),y=v("deg"),x=v("%"),b=v("px"),w=v("vh"),P=v("vw"),S={...x,parse:t=>x.parse(t)/100,transform:t=>x.transform(100*t)};t.s(["degrees",0,y,"percent",0,x,"progressPercentage",0,S,"px",0,b,"vh",0,w,"vw",0,P],9138);let T={test:c("hsl","hue"),parse:p("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:i,lightness:n,alpha:s=1}=t;return"hsla("+Math.round(e)+", "+x.transform(u(i))+", "+x.transform(u(n))+", "+u(a.transform(s))+")"}};t.s(["hsla",0,T],69844);let M={test:t=>f.test(t)||g.test(t)||T.test(t),parse:t=>f.test(t)?f.parse(t):T.test(t)?T.parse(t):g.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?f.transform(t):T.transform(t),getAnimatableNone:t=>{let e=M.parse(t);return e.alpha=0,M.transform(e)}};t.s(["color",0,M],33795);let E=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,A="number",C="color",V=/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 D(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,o=e.replace(V,t=>(M.test(t)?(n.color.push(r),s.push(C),i.push(M.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(A),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:n,types:s}}function R(t){let{split:e,types:i}=t,n=e.length;return t=>{let s="";for(let r=0;r<n;r++)if(s+=e[r],void 0!==t[r]){let e=i[r];e===A?s+=u(t[r]):e===C?s+=M.transform(t[r]):s+=t[r]}return s}}let k={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(h)?.length||0)+(t.match(E)?.length||0)>0},parse:function(t){return D(t).values},createTransformer:function(t){return R(D(t))},getAnimatableNone:function(t){let e=D(t);return R(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:M.test(t)?M.getAnimatableNone(t):t)(t,e.split[i])))}};t.s(["analyseComplexValue",0,D,"complex",0,k],29289);let L=new Set(["brightness","contrast","saturate","opacity"]);function j(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(h)||[];if(!n)return t;let s=i.replace(n,""),r=+!!L.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let B=/\b([a-z-]*)\(.*?\)/gu,O={...k,getAnimatableNone:t=>{let e=t.match(B);return e?e.map(j).join(" "):t}},F={...k,getAnimatableNone:t=>{let e=k.parse(t);return k.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},I={...o,transform:Math.round},N={borderWidth:b,borderTopWidth:b,borderRightWidth:b,borderBottomWidth:b,borderLeftWidth:b,borderRadius:b,borderTopLeftRadius:b,borderTopRightRadius:b,borderBottomRightRadius:b,borderBottomLeftRadius:b,width:b,maxWidth:b,height:b,maxHeight:b,top:b,right:b,bottom:b,left:b,inset:b,insetBlock:b,insetBlockStart:b,insetBlockEnd:b,insetInline:b,insetInlineStart:b,insetInlineEnd:b,padding:b,paddingTop:b,paddingRight:b,paddingBottom:b,paddingLeft:b,paddingBlock:b,paddingBlockStart:b,paddingBlockEnd:b,paddingInline:b,paddingInlineStart:b,paddingInlineEnd:b,margin:b,marginTop:b,marginRight:b,marginBottom:b,marginLeft:b,marginBlock:b,marginBlockStart:b,marginBlockEnd:b,marginInline:b,marginInlineStart:b,marginInlineEnd:b,fontSize:b,backgroundPositionX:b,backgroundPositionY:b,rotate:y,rotateX:y,rotateY:y,rotateZ:y,scale:l,scaleX:l,scaleY:l,scaleZ:l,skew:y,skewX:y,skewY:y,distance:b,translateX:b,translateY:b,translateZ:b,x:b,y:b,z:b,perspective:b,transformPerspective:b,opacity:a,originX:S,originY:S,originZ:b,zIndex:I,fillOpacity:a,strokeOpacity:a,numOctaves:I},_={...N,color:M,backgroundColor:M,outlineColor:M,fill:M,stroke:M,borderColor:M,borderTopColor:M,borderRightColor:M,borderBottomColor:M,borderLeftColor:M,filter:O,WebkitFilter:O,mask:F,WebkitMask:F},U=t=>_[t],z=()=>({translate:0,scale:1,origin:0,originPoint:0}),$=()=>({min:0,max:0}),W=()=>({x:$(),y:$()});t.s(["createBox",0,W,"createDelta",0,()=>({x:z(),y:z()})],27684);let G=t=>!!(t&&t.getVelocity);t.s(["isMotionValue",0,G],36585);let H=new Set(["width","height","top","left","right","bottom",...n]);t.s(["positionalKeys",0,H],11920);let X=t=>e=>e.test(t),Y=[o,b,x,y,P,w,{test:t=>"auto"===t,parse:t=>t}],K=t=>Y.find(X(t));var q=t.i(63397);let Z=()=>{};q.default,t.s(["invariant",0,Z,"warning",0,()=>{}],26809);let J=t=>e=>"string"==typeof e&&e.startsWith(t),Q=J("--"),tt=J("var(--"),te=t=>!!tt(t)&&ti.test(t.split("/*")[0].trim()),ti=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tn(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}t.s(["containsCSSVariable",0,tn,"isCSSVariableName",0,Q,"isCSSVariableToken",0,te],82466);let ts=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tr=t=>180*t/Math.PI,to=t=>
3tl(tr(Math.atan2(t[1],t[0]))),ta={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:to,rotateZ:to,skewX:t=>tr(Math.atan(t[1])),skewY:t=>tr(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tl=t=>((t%=360)<0&&(t+=360),t),tu=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),th=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),td={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tu,scaleY:th,scale:t=>(tu(t)+th(t))/2,rotateX:t=>tl(tr(Math.atan2(t[6],t[5]))),rotateY:t=>tl(tr(Math.atan2(-t[2],t[0]))),rotateZ:to,rotate:to,skewX:t=>tr(Math.atan(t[4])),skewY:t=>tr(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tc(t){return+!!t.includes("scale")}function tp(t,e){let i,n;if(!t||"none"===t)return tc(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=td,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=ta,n=e}if(!n)return tc(e);let r=i[e],o=n[1].split(",").map(tm);return"function"==typeof r?r(o):o[r]}function tm(t){return parseFloat(t.trim())}let tf=t=>t===o||t===b,tg=new Set(["x","y","z"]),tv=n.filter(t=>!tg.has(t)),ty={width:(t,e)=>{let{x:i}=t,{paddingLeft:n="0",paddingRight:s="0",boxSizing:r}=e,o=i.max-i.min;return"border-box"===r?o:o-parseFloat(n)-parseFloat(s)},height:(t,e)=>{let{y:i}=t,{paddingTop:n="0",paddingBottom:s="0",boxSizing:r}=e,o=i.max-i.min;return"border-box"===r?o:o-parseFloat(n)-parseFloat(s)},top:(t,e)=>{let{top:i}=e;return parseFloat(i)},left:(t,e)=>{let{left:i}=e;return parseFloat(i)},bottom:(t,e)=>{let{y:i}=t,{top:n}=e;return parseFloat(n)+(i.max-i.min)},right:(t,e)=>{let{x:i}=t,{left:n}=e;return parseFloat(n)+(i.max-i.min)},x:(t,e)=>{let{transform:i}=e;return tp(i,"x")},y:(t,e)=>{let{transform:i}=e;return tp(i,"y")}};ty.translateX=ty.x,ty.translateY=ty.y;let tx=t=>t;t.s(["noop",0,tx],70919);let tb={};t.s(["MotionGlobalConfig",0,tb],26490);let tw=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],tP={value:null,addProjectionMetrics:null};function tS(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,o=tw.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,r=!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:function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=r&&s?i:n;return e&&o.add(t),a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,s){r=!0;return}s=!0;let o=i;i=n,n=o,i.forEach(u),e&&tP.value&&tP.value.frameloop[e].push(l),l=0,i.clear(),s=!1,r&&(r=!1,h.process(t))}};return h}(r,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:h,update:d,preRender:c,render:p,postRender:m}=o,f=()=>{let r=tb.useManualTiming,o=r?s.timestamp:performance.now();i=!1,r||(s.delta=n?1e3/60:Math.max(Math.min(o-s.timestamp,40),1)),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),h.process(s),d.process(s),c.process(s),p.process(s),m.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:tw.reduce((e,r)=>{let a=o[r];return e[r]=function(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!i&&(i=!0,n=!0,s.isProcessing||t(f)),a.schedule(e,r,o)},e},{}),cancel:t=>{for(let e=0;e<tw.length;e++)o[tw[e]].cancel(t)},state:s,steps:o}}t.s(["statsBuffer",0,tP],94907);let{schedule:tT,cancel:tM,state:tE,steps:tA}=tS("u">typeof requestAnimationFrame?requestAnimationFrame:tx,!0);t.s(["cancelFrame",0,tM,"frame",0,tT,"frameData",0,tE,"frameSteps",0,tA],67682);let tC=new Set,tV=!1,tD=!1,tR=!1;function tk(){if(tD){let t=Array.from(tC).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],tv.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(e=>{let[i,n]=e;t.getValue(i)?.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}
3tD=!1,tV=!1,tC.forEach(t=>t.complete(tR)),tC.clear()}function tL(){tC.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tD=!0)})}class tj{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tC.add(this),tV||(tV=!0,tT.read(tL),tT.resolveKeyframes(tk))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tC.delete(this)}cancel(){"scheduled"===this.state&&(tC.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}t.s(["KeyframeResolver",0,tj,"flushKeyframeResolvers",0,function(){tR=!0,tL(),tk(),tR=!1}],69379);let tB=new Set([O,F]);function tO(t,e){let i=U(t);return tB.has(i)||(i=k),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tF=new Set(["auto","none","0"]);class tI extends tj{constructor(t,e,i,n,s){super(t,e,i,n,s,!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&&te(n=n.trim())){let s=function t(e,i){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;Z(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[s,r]=function(t){let e=ts.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let o=window.getComputedStyle(i).getPropertyValue(s);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return te(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!H.has(i)||2!==t.length)return;let[n,s]=t,r=K(n),o=K(s);if(tn(n)!==tn(s)&&ty[i]){this.needsMeasurement=!0;return}if(r!==o)if(tf(r)&&tf(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else ty[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!tF.has(e)&&D(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=tO(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=ty[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 s=i.length-1,r=i[s];i[s]=ty[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
3h(e=>{let[i,n]=e;t.getValue(i).set(n)}),this.resolveNoneKeyframes()}}let tN=t=>1e3*t,t_=t=>t/1e3;function tU(t,e){-1===t.indexOf(e)&&t.push(e)}function tz(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}t.s(["millisecondsToSeconds",0,t_,"secondsToMilliseconds",0,tN],90692),t.s(["addUniqueItem",0,tU,"removeItem",0,tz],57307);class t${constructor(){this.subscriptions=[]}add(t){return tU(this.subscriptions,t),()=>tz(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 s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tW(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function tG(t){let e;return()=>(void 0===e&&(e=t()),e)}t.s(["SubscriptionManager",0,t$],96457),t.s(["setStyle",0,tW],19058),t.s(["memo",0,tG],87120);let tH={};function tX(t,e){let i=tG(t);return()=>tH[e]??i()}let tY=tX(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tK=t=>null!==t;function tq(t,e,i){let{repeat:n,repeatType:s="loop"}=e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=t.filter(tK),a=r<0||n&&"loop"!==s&&n%2==1?0:o.length-1;return a&&void 0!==i?i:o[a]}t.s(["getFinalKeyframe",0,tq],68741);class tZ{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}t.s(["WithPromise",0,tZ],96402);let tJ={layout:0,mainThread:0,waapi:0};t.s(["activeAnimations",0,tJ],31772);let tQ=t=>Array.isArray(t)&&"number"==typeof t[0];t.s(["isBezierDefinition",0,tQ],28301);let t0=tX(()=>{try{document.createElement("div").animate({opacity:0}
3,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t1=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};t.s(["generateLinearEasing",0,t1],60926);let t2=t=>{let[e,i,n,s]=t;return`cubic-bezier(${e}, ${i}, ${n}, ${s})`},t3={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t2([0,.65,.55,1]),circOut:t2([.55,0,1,.45]),backIn:t2([.31,.01,.66,-.59]),backOut:t2([.33,1.53,.69,.99])};function t9(t){return"function"==typeof t&&"applyToOptions"in t}t.s(["isGenerator",0,t9],81142);class t5 extends tZ{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,Z("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function(t){let{type:e,...i}=t;return t9(e)&&t0()?e.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}(t);this.animation=function(t,e,i){let{delay:n=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,h={[e]:i};l&&(h.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?t0()?t1(e,i):"ease-out":tQ(e)?t2(e):Array.isArray(e)?e.map(e=>t(e,i)||t3.easeOut):t3[e]}(a,s);Array.isArray(d)&&(h.easing=d),tP.value&&tJ.waapi++;let c={delay:n,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};u&&(c.pseudoElement=u);let p=t.animate(h,c);return tP.value&&p.finished.finally(()=>{tJ.waapi--}),p}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=tq(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tW(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,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(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return t_(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t_(t)}get time(){return t_(Number(this.animation.currentTime)||0)}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tN(t),e&&this.animation.pause()}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 this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline(t){let{timeline:e,rangeStart:i,rangeEnd:n,observe:s}=t;return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&tY())?(this.animation.timeline=e,i&&(this.animation.rangeStart=i),n&&(this.animation.rangeEnd=n),tx):s(this)}}t.s(["NativeAnimation",0,t5],5110);let t6=new Set(["opacity","clipPath","filter","transform"]);t.s(["acceleratedValues",0,t6],90932);let{schedule:t4}=tS(queueMicrotask,!1);function t8(){i=void 0}t.s(["microtask",0,t4],27139);let t7={now:()=>(void 0===i&&t7.set(tE.isProcessing||tb.useManualTiming?tE.timestamp:performance.now()),i),set
3:t=>{i=t,queueMicrotask(t8)}};function et(t,e){return e?1e3/e*t:0}t.s(["time",0,t7],57798),t.s(["velocityPerSecond",0,et],21692);class ee{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=t7.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=t7.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]: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 t$);let i=this.events[t].add(e);return"change"===t?()=>{i(),tT.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){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return e&&e.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=t7.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return et(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ei(t,e){return new ee(t,e)}t.s(["motionValue",0,ei],2915);let en=[...Y,M,k],es=new WeakMap;function er(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eo(t){return"string"==typeof t||Array.isArray(t)}t.s(["isAnimationControls",0,er],91363),t.s(["isVariantLabel",0,eo],86843);let ea=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],el=["initial",...ea];function eu(t){return er(t.animate)||el.some(e=>eo(t[e]))}function eh(t){return!!(eu(t)||t.variants)}t.s(["variantPriorityOrder",0,ea,"variantProps",0,el],16919),t.s(["isControllingVariants",0,eu,"isVariantNode",0,eh],21280);let ed={current:null},ec={current:!1};t.s(["hasReducedMotionListener",0,ec,"prefersReducedMotion",0,ed],20460);let ep="u">typeof window;function em(){if(ec.current=!0,ep)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ed.current=t.matches;t.addEventListener("change",e),e()}else ed.current=!1}function ef(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eg(t,e,i,n){if("function"==typeof e){let[s,r]=ef(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=ef(n);e=e(void 0!==i?i:t.custom,s,r)}return e}t.s(["initPrefersReducedMotion",0,em],34907),t.s(["resolveVariantFromProps",0,eg],61560);let ev=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ey={};
3class ex{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:s,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tj,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=t7.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tT.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=s,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=eu(e),this.isVariantNode=eh(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==l[t]&&G(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,es.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)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ec.current||em(),this.shouldReduceMotion=ed.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tM(this.notifyUpdate),tM(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;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&t6.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:s,ease:r,duration:o}=e.accelerate,a=new t5({element:this.current,name:t,keyframes:n,times:s,ease:r,duration:tN(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=s.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tT.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&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 ey){let e=ey[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):W()}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<ev.length;e++){let i=ev[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}
3this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if(G(s))t.addValue(n,s);else if(G(r))t.addValue(n,ei(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,ei(void 0!==e?e:s,{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=ei(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];if(null!=i){let n,s;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(s=i,/^0[^.\s]+$/u.test(s))))i=parseFloat(i);else{let n;n=i,!en.find(X(n))&&k.test(e)&&(i=tO(t,e))}this.setBaseTarget(t,G(i)?i.get():i)}return G(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=eg(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||G(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 t$),this.events[t].add(e)}notify(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.events[t]&&this.events[t].notify(...i)}scheduleRenderMicrotask(){t4.render(this.render)}}t.s(["VisualElement",0,ex,"getFeatureDefinitions",0,function(){return ey},"setFeatureDefinitions",0,function(t){ey=t}],96819);class eb extends ex{constructor(){super(...arguments),this.KeyframeResolver=tI}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,e){let{vars:i,style:n}=e;delete i[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;G(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function ew(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}t.s(["camelToDash",0,ew],88599);let eP=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eT=n.length;function eM(t,e,i){let{style:r,vars:o,transformOrigin:a}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(s.has(t)){l=!0;continue}if(Q(t)){o[t]=i;continue}{let e=eP(i,N[t]);t.startsWith("origin")?(u=!0,a[t]=e):r[t]=e}}if(!e.transform&&(l||i?r.transform=function(t,e,i){let s="",r=!0;for(let o=0;o<eT;o++){let a=n[o],l=t[a];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===+!!a.startsWith("scale");else{let t=parseFloat(l);u=a.startsWith("scale")?1===t:0===t}if(!u||i){let t=eP(l,N[a]);if(!u){r=!1;let e=eS[a]||a;s+=`${e}(${t}) `}i&&(e[a]=t)}}return s=s.trim(),i?s=i(e,r?"":s):r&&(s="none"),s}(e,t.transform,i):r.transform&&(r.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;r.transformOrigin=`${t} ${e} ${i}`}}t.s(["buildHTMLStyles",0,eM],19563);let eE={offset:"stroke-dashoffset",array:"stroke-dasharray"},eA={offset:"strokeDashoffset",array:"strokeDasharray"},eC=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eV(t,e,i,n,s){let{attrX:r,attrY:o,attrScale:a,pathLength:l,pathSpacing:u=1,pathOffset:h=0,...d}=e;
3if(eM(t,d,n),i){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:p}=t;for(let t of(c.transform&&(p.transform=c.transform,delete c.transform),(p.transform||c.transformOrigin)&&(p.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),p.transform&&(p.transformBox=s?.transformBox??"fill-box",delete c.transformBox),eC))void 0!==c[t]&&(p[t]=c[t],delete c[t]);void 0!==r&&(c.x=r),void 0!==o&&(c.y=o),void 0!==a&&(c.scale=a),void 0!==l&&function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=!(arguments.length>4)||void 0===arguments[4]||arguments[4];t.pathLength=1;let r=s?eE:eA;t[r.offset]=`${-n}`,t[r.array]=`${e} ${i}`}(c,l,u,h,!1)}t.s(["buildSVGAttrs",0,eV],48971);let eD=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"]),eR=t=>"string"==typeof t&&"svg"===t.toLowerCase();function ek(t,e,i,n){let s,{style:r,vars:o}=e,a=t.style;for(s in r)a[s]=r[s];for(s in n?.applyProjectionStyles(a,i),o)a.setProperty(s,o[s])}function eL(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}t.s(["isSVGTag",0,eR],4445);let ej={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!b.test(t))return t;else t=parseFloat(t);let i=eL(t,e.target.x),n=eL(t,e.target.y);return`${i}% ${n}%`}},eB=(t,e,i)=>t+(e-t)*i;t.s(["mixNumber",0,eB],70820);let eO={borderRadius:{...ej,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ej,borderTopRightRadius:ej,borderBottomLeftRadius:ej,borderBottomRightRadius:ej,boxShadow:{correct:(t,e)=>{let{treeScale:i,projectionDelta:n}=e,s=k.parse(t);if(s.length>5)return t;let r=k.createTransformer(t),o=+("number"!=typeof s[0]),a=n.x.scale*i.x,l=n.y.scale*i.y;s[0+o]/=a,s[1+o]/=l;let u=eB(a,l,.5);return"number"==typeof s[2+o]&&(s[2+o]/=u),"number"==typeof s[3+o]&&(s[3+o]/=u),r(s)}}};function eF(t,e){let{layout:i,layoutId:n}=e;return s.has(t)||t.startsWith("origin")||(i||void 0!==n)&&(!!eO[t]||"opacity"===t)}function eI(t,e,i){let n=t.style,s=e?.style,r={};if(!n)return r;for(let e in n)(G(n[e])||s&&G(s[e])||eF(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=n[e]);return r}function eN(t,e,i){let s=eI(t,e,i);for(let i in t)(G(t[i])||G(e[i]))&&(s[-1!==n.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}t.s(["scaleCorrectors",0,eO],39068),t.s(["isForcedMotionValue",0,eF],35629),t.s(["scrapeMotionValuesFromProps",0,eI],45744),t.s(["scrapeMotionValuesFromProps",0,eN],42917);class e_ extends eb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=W}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(s.has(e)){let t=U(e);return t&&t.default||0}return e=eD.has(e)?e:ew(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eN(t,e,i)}build(t,e,i){eV(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in ek(t,e,void 0,n),e.attrs)t.setAttribute(eD.has(i)?i:ew(i),e.attrs[i])}mount(t){this.isSVGTag=eR(t.tagName),super.mount(t)}}function eU(t){let{top:e,left:i,right:n,bottom:s}=t;return{x:{min:i,max:n},y:{min:e,max:s}}}function ez(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}}function e$(t){return void 0===t||1===t}function eW(t){let{scale:e,scaleX:i,scaleY:n}=t;return!e$(e)||!e$(i)||!e$(n)}function eG(t){return eW(t)||eH(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eH(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eX(t,e,i){return i+e*(t-i)}function eY(t,e,i,n,s){return void 0!==s&&(t=eX(t,s,n)),eX(t,i,n)+e}function eK(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;t.min=eY(t.min,e,i,n,s),t.max=eY(t.max,e,i,n,s)}function eq(t,e){let{x:i,y:n}=e;eK(t.x,i.translate,i.scale,i.originPoint),eK(t.y,n.translate,n.scale,n.originPoint)}function eZ(t,e){t.min+=e,t.max+=e}function eJ(t,e,i,n){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5,r=eB(t.min,t.max,s);eK(t,e,i,r,n)}function eQ(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function e0(t,e,i){let n=i??t;eJ(t.x,eQ(e.x,n.x),e.scaleX,e.scale,e.originX),eJ(t.y,eQ(e.y,n.y),e.scaleY,e.scale,e.originY)}function e1(t,e){return eU(ez(t.getBoundingClientRect(),e))}t.s(["convertBoundingBoxToBox",0,eU,"convertBoxToBoundingBox",0,function(t){let{x:e,y:i}=t;return{top:i.min,right:e.max,bottom:i.max,left:e.min}},"transformBoxPoints",0,ez],64646),t.s(["has2DTranslate",0,eH,"hasScale",0,eW,"hasTransform",0,eG],61417),t.s(["applyBoxDelta",0,eq,"applyTreeDeltas",0,function(t,e,
3i){let n,s,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(eZ(t.x,-n.scroll.offset.x),eZ(t.y,-n.scroll.offset.y)),s&&(e.x*=s.x.scale,e.y*=s.y.scale,eq(t,s)),r&&eG(n.latestValues)&&e0(t,n.latestValues,n.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}},"scalePoint",0,eX,"transformBox",0,e0,"translateAxis",0,eZ],56731),t.s(["measurePageBox",0,function(t,e,i){let n=e1(t,i),{scroll:s}=e;return s&&(eZ(n.x,s.offset.x),eZ(n.y,s.offset.y)),n},"measureViewportBox",0,e1],79514);class e2 extends eb{constructor(){super(...arguments),this.type="html",this.renderInstance=ek}readValueFromInstance(t,e){if(s.has(e))return this.projection?.isProjecting?tc(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tp(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(Q(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,e){let{transformPagePoint:i}=e;return e1(t,i)}build(t,e,i){eM(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return eI(t,e,i)}}var e3=t.i(19059);let e9=["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 e5(t){if("string"!=typeof t||t.includes("-"));else if(e9.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}t.s(["isSVGComponent",0,e5],92798),t.s(["createDomVisualElement",0,(t,e)=>e.isSVG??e5(t)?new e_(e):new e2(e,{allowProjection:t!==e3.Fragment})],18454)},7464,t=>{"use strict";let e=(0,t.i(19059).createContext)({});t.s(["LayoutGroupContext",0,e])},47237,t=>{"use strict";let e=(0,t.i(19059).createContext)({strict:!1});t.s(["LazyContext",0,e])},53942,t=>{"use strict";let e=(0,t.i(19059).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,e])},91433,31563,5470,43725,8106,30525,91945,t=>{"use strict";var e,i=t.i(19059);let n=(0,i.createContext)({});t.s(["MotionContext",0,n],91433);var s=t.i(21280),r=t.i(86843);function o(t){return Array.isArray(t)?t.join(" "):t}t.s(["useCreateMotionContext",0,function(t){let{initial:e,animate:a}=function(t,e){if((0,s.isControllingVariants)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,r.isVariantLabel)(e)?e:void 0,animate:(0,r.isVariantLabel)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,i.useContext)(n));return(0,i.useMemo)(()=>({initial:e,animate:a}),[o(e),o(a)])}],31563);var a=t.i(36585),l=t.i(35629),u=t.i(19563);let h=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function d(t,e,i){for(let n in e)(0,a.isMotionValue)(e[n])||(0,l.isForcedMotionValue)(n,i)||(t[n]=e[n])}t.s(["createHtmlRenderState",0,h],5470);var c=t.i(48971),p=t.i(4445);let m=()=>({...h(),attrs:{}});t.s(["createSvgRenderState",0,m],43725);let f=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","propagate","ignoreStrict","viewport"]);function g(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||f.has(t)}let v=t=>!g(t);try{e=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof e&&(v=t=>t.startsWith("on")?!g(t):e(t))}catch{}var y=t.i(92798);t.s(["useRender",0,function(t,e,n,s,r){let{latestValues:o}=s,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],f=arguments.length>6?arguments[6]:void 0,x=(f??(0,y.isSVGComponent)(t)?function(t,e,n,s){let r=(0,i.useMemo)(()=>{let i=m();return(0,c.buildSVGAttrs)(i,e,(0,p.isSVGTag)(s),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};d(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let n,s,r={},o=(n=t.style||{},d(s={},n,t),Object.assign(s,function(t,e){let{transformTemplate:n}=t;return(0,i.useMemo)(()=>{let t=h();return(0,u.buildHTMLStyles)(t,e,n),Object.assign({},t.vars,t.style)}
3,[e])}(t,e)),s);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r})(e,o,r,t),b=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&!(0,a.isMotionValue)(t[s])&&(v(s)||!0===i&&g(s)||!e&&!g(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,l),w=t!==i.Fragment?{...b,...x,ref:n}:{},{children:P}=e,S=(0,i.useMemo)(()=>(0,a.isMotionValue)(P)?P.get():P,[P]);return(0,i.createElement)(t,{...w,children:S})}],8106);var x=t.i(45744);t.s(["scrapeHTMLMotionValuesFromProps",()=>x.scrapeMotionValuesFromProps],30525),t.s(["resolveMotionValue",0,function(t){return(0,a.isMotionValue)(t)?t.get():t}],91945)},70338,t=>{"use strict";let e=(0,t.i(19059).createContext)(null);t.s(["PresenceContext",0,e])},27300,t=>{"use strict";var e=t.i(19059);t.s(["useConstant",0,function(t){let i=(0,e.useRef)(null);return null===i.current&&(i.current=t()),i.current}])},63241,2529,2680,86091,62859,5261,29957,36333,39705,t=>{"use strict";var e=t.i(30525),i=t.i(91945),n=t.i(21280),s=t.i(91363),r=t.i(61560),o=t.i(19059),a=t.i(91433),l=t.i(70338),u=t.i(27300);let h=t=>(e,h)=>{let d=(0,o.useContext)(a.MotionContext),c=(0,o.useContext)(l.PresenceContext),p=()=>(function(t,e,o,a){let{scrapeMotionValuesFromProps:l,createRenderState:u}=t;return{latestValues:function(t,e,o,a){let l={},u=a(t,{});for(let t in u)l[t]=(0,i.resolveMotionValue)(u[t]);let{initial:h,animate:d}=t,c=(0,n.isControllingVariants)(t),p=(0,n.isVariantNode)(t);e&&p&&!c&&!1!==t.inherit&&(void 0===h&&(h=e.initial),void 0===d&&(d=e.animate));let m=!!o&&!1===o.initial,f=(m=m||!1===h)?d:h;if(f&&"boolean"!=typeof f&&!(0,s.isAnimationControls)(f)){let e=Array.isArray(f)?f:[f];for(let i=0;i<e.length;i++){let n=(0,r.resolveVariantFromProps)(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=m?e.length-1:0;e=e[t]}null!==e&&(l[t]=e)}for(let e in t)l[e]=t[e]}}}return l}(e,o,a,l),renderState:u()}})(t,e,d,c);return h?p():(0,u.useConstant)(p)};var d=t.i(5470);let c=h({scrapeMotionValuesFromProps:e.scrapeHTMLMotionValuesFromProps,createRenderState:d.createHtmlRenderState});t.s(["useHTMLVisualState",0,c],63241);var p=t.i(42917),p=p,m=t.i(43725);let f=h({scrapeMotionValuesFromProps:p.scrapeMotionValuesFromProps,createRenderState:m.createSvgRenderState});t.s(["useSVGVisualState",0,f],2529);var g=t.i(96819);let v={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"]},y=!1;function x(){return!function(){if(y)return;let t={};for(let e in v)t[e]={isEnabled:t=>v[e].some(e=>!!t[e])};(0,g.setFeatureDefinitions)(t),y=!0}(),(0,g.getFeatureDefinitions)()}t.s(["getInitializedFeatureDefinitions",0,x],2680),t.s(["loadFeatures",0,function(t){let e=x();for(let i in t)e[i]={...e[i],...t[i]};(0,g.setFeatureDefinitions)(e)}],86091);let b=Symbol.for("motionComponentSymbol");t.s(["motionComponentSymbol",0,b],62859),t.s(["useMotionRef",0,function(t,e,i){let n=(0,o.useRef)(i);(0,o.useInsertionEffect)(()=>{n.current=i});let s=(0,o.useRef)(null);return(0,o.useCallback)(i=>{i&&t.onMount?.(i);let r=n.current;if("function"==typeof r)if(i){let t=r(i);"function"==typeof t&&(s.current=t)}else s.current?(s.current(),s.current=null):r(i);else r&&(r.current=i);e&&(i?e.mount(i):e.unmount())},[e])}],5261);let w="data-"+(0,t.i(88599).camelToDash)("framerAppearId");t.s(["optimizedAppearDataAttribute",0,w],29957);let P=(0,o.createContext)({});t.s(["SwitchLayoutGroupContext",0,P],36333),t.s(["isRefObject",0,function(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}],39705)},36986,t=>{"use strict";var e=t.i(19059);let i="u">typeof window?e.useLayoutEffect:e.useEffect;t.s(["useIsomorphicLayoutEffect",0,i],36986)},33112,36656,38526,50669,30017,92727,71559,41058,2225,41169,92672,65869,97719,57318,13316,t=>{"use strict";t.i(63397);var e=t.i(27994),i=t.i(19059),n=t.i(7464),s=t.i(47237),r=t.i(53942),o=t.i(91433),a=t.i(31563),l=t.i(8106),u=t.i(92798),h=t.i(63241),d=t.i(2529),c=t.
3i(2680),p=t.i(86091),m=t.i(62859),f=t.i(5261),g=t.i(29957),v=t.i(70338),y=t.i(36333),x=t.i(39705),b=t.i(36986);function w(t){let{forwardMotionProps:w=!1,type:P}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},S=arguments.length>2?arguments[2]:void 0,T=arguments.length>3?arguments[3]:void 0;S&&(0,p.loadFeatures)(S);let M=P?"svg"===P:(0,u.isSVGComponent)(t),E=M?d.useSVGVisualState:h.useHTMLVisualState;function A(u,h){let d,p={...(0,i.useContext)(r.MotionConfigContext),...u,layoutId:function(t){let{layoutId:e}=t,s=(0,i.useContext)(n.LayoutGroupContext).id;return s&&void 0!==e?s+"-"+e:e}(u)},{isStatic:m}=p,P=(0,a.useCreateMotionContext)(u),S=E(u,m);if(!m&&"u">typeof window){(0,i.useContext)(s.LazyContext).strict;let e=function(t){let{drag:e,layout:i}=(0,c.getInitializedFeatureDefinitions)();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(p);d=e.MeasureLayout,P.visualElement=function(t,e,n,a,l,u){let{visualElement:h}=(0,i.useContext)(o.MotionContext),d=(0,i.useContext)(s.LazyContext),c=(0,i.useContext)(v.PresenceContext),p=(0,i.useContext)(r.MotionConfigContext),m=p.reducedMotion,f=p.skipAnimations,w=(0,i.useRef)(null),P=(0,i.useRef)(!1);a=a||d.renderer,!w.current&&a&&(w.current=a(t,{visualState:e,parent:h,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:m,skipAnimations:f,isSVG:u}),P.current&&w.current&&(w.current.manuallyAnimateOnMount=!0));let S=w.current,T=(0,i.useContext)(y.SwitchLayoutGroupContext);S&&!S.projection&&l&&("html"===S.type||"svg"===S.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:d}=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:s,layout:r,alwaysMeasureLayout:!!o||a&&(0,x.isRefObject)(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(w.current,n,l,T);let M=(0,i.useRef)(!1);(0,i.useInsertionEffect)(()=>{S&&M.current&&S.update(n,c)});let E=n[g.optimizedAppearDataAttribute],A=(0,i.useRef)(!!E&&"u">typeof window&&!window.MotionHandoffIsComplete?.(E)&&window.MotionHasOptimisedAnimation?.(E));return(0,b.useIsomorphicLayoutEffect)(()=>{P.current=!0,S&&(M.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),S.scheduleRenderMicrotask(),A.current&&S.animationState&&S.animationState.animateChanges())}),(0,i.useEffect)(()=>{S&&(!A.current&&S.animationState&&S.animationState.animateChanges(),A.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(E)}),A.current=!1),S.enteringChildren=void 0)}),S}(t,S,p,T,e.ProjectionNode,M)}return(0,e.jsxs)(o.MotionContext.Provider,{value:P,children:[d&&P.visualElement?(0,e.jsx)(d,{visualElement:P.visualElement,...p}):null,(0,l.useRender)(t,u,(0,f.useMotionRef)(S,P.visualElement,h),S,m,w,M)]})}A.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let C=(0,i.forwardRef)(A);return C[m.motionComponentSymbol]=t,C}t.s(["createMotionProxy",0,function(t,e){if("u"<typeof Proxy)return w;let i=new Map,n=(i,n)=>w(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,w(r,void 0,t,e)),i.get(r))})}],33112);class P{constructor(t){this.isMounted=!1,this.node=t}update(){}}t.s(["Feature",0,P],36656);var S=t.i(61560);function T(t,e,i){let n=t.getProps();return(0,S.resolveVariantFromProps)(n,e,void 0!==i?i:n.custom,t)}function M(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function E(t,e){let i=t?.[e]??t?.default??t;return i!==t?M(i,t):i}t.s(["getValueTransition",0,E],38526);var A=t.i(11920),C=t.i(2915);let V=t=>Array.isArray(t);var D=t.i(26490),R=t.i(36585);function k(t,e){let i=t.getValue("willChange");if((0,R.isMotionValue)(i)&&i.add)return i.add(e);if(!i&&D.MotionGlobalConfig.WillChange){let i=new D.MotionGlobalConfig.WillChange("auto");
3t.addValue("willChange",i),i.add(e)}}function L(t){return t.props[g.optimizedAppearDataAttribute]}t.s(["addValueToWillChange",0,k],50669),t.s(["getOptimisedAppearId",0,L],30017);var j=t.i(90692),B=t.i(70919),O=t.i(57798);let F=(t,e)=>i=>e(t(i)),I=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.reduce(F)};t.s(["pipe",0,I],92727);var N=t.i(93858),_=t.i(31772),U=t.i(26809),z=t.i(82466),$=t.i(33795),W=t.i(29289),G=t.i(31388),H=t.i(69844);function X(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var Y=t.i(19496);function K(t,e){return i=>i>0?e:t}var q=t.i(70820);let Z=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},J=[G.hex,Y.rgba,H.hsla];function Q(t){let e=J.find(e=>e.test(t));if((0,U.warning)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===H.hsla&&(i=function(t){let{hue:e,saturation:i,lightness:n,alpha:s}=t;e/=360,n/=100;let r=0,o=0,a=0;if(i/=100){let t=n<.5?n*(1+i):n+i-n*i,s=2*n-t;r=X(s,t,e+1/3),o=X(s,t,e),a=X(s,t,e-1/3)}else r=o=a=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*a),alpha:s}}(i)),i}let tt=(t,e)=>{let i=Q(t),n=Q(e);if(!i||!n)return K(t,e);let s={...i};return t=>(s.red=Z(i.red,n.red,t),s.green=Z(i.green,n.green,t),s.blue=Z(i.blue,n.blue,t),s.alpha=(0,q.mixNumber)(i.alpha,n.alpha,t),Y.rgba.transform(s))},te=new Set(["none","hidden"]);function ti(t,e){return i=>(0,q.mixNumber)(t,e,i)}function tn(t){return"number"==typeof t?ti:"string"==typeof t?(0,z.isCSSVariableToken)(t)?K:$.color.test(t)?tt:to:Array.isArray(t)?ts:"object"==typeof t?$.color.test(t)?tt:tr:K}function ts(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>tn(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function tr(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=tn(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let to=(t,e)=>{let i=W.complex.createTransformer(e),n=(0,W.analyseComplexValue)(t),s=(0,W.analyseComplexValue)(e);if(!(n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length))return(0,U.warning)(!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"),K(t,e);if(te.has(t)&&!s.values.length||te.has(e)&&!n.values.length)return te.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return I(ts(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],o=t.indexes[r][n[r]],a=t.values[o]??0;i[s]=a,n[r]++}return i}(n,s),s.values),i)};function ta(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,q.mixNumber)(t,e,i):tn(t)(t,e)}var tl=t.i(67682);let tu=t=>{let e=e=>{let{timestamp:i}=e;return t(i)};return{start:function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return tl.frame.update(e,t)},stop:()=>(0,tl.cancelFrame)(e),now:()=>tl.frameData.isProcessing?tl.frameData.timestamp:O.time.now()}};var th=t.i(60926);function td(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}let tc=.01,tp=2,tm=.005,tf=.5;function tg(t,e){return t*Math.sqrt(1-e*e)}let tv=["duration","bounce"],ty=["stiffness","damping","mass"];function tx(t,e){return e.some(e=>void 0!==t[e])}function tb(){let t,e,i,n,s,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.3,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3,l="object"!=typeof o?{visualDuration:o,keyframes:[0,1],bounce:a}:o,{restSpeed:u,restDelta:h}=l,d=l.keyframes[0],c=l.keyframes[l.keyframes.length-1],p={done:!1,value:d},{stiffness:m,damping:f,mass:g,duration:v,velocity:y,isResolvedFromDuration:x}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!tx(t,ty)&&tx(t,tv))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*(0,N.clamp)(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:s}}else{let i=function(t){let e,i,{duration:n=800,bounce:s=.3,velocity:r=0,mass:o=1}=t;(0,U.warning)(n<=(0,j.secondsToMilliseconds)(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-s;a=(0,N.clamp)(.05,1,a),n=(0,N.clamp)(.01,10,(0,j.millisecondsToSeconds)(n)),a<1?(e=t=>{let e=t*a,i=e*n;return .001-(e-r)/tg(t,a)*Math.exp(-i)},i=t=>{let i=t*a*n,s=Math.pow(a,2)*Math.pow(t,2)*n,o=Math.exp(-i),l=tg(Math.pow(t,2),a);return(i*r+r-s)*o*(-e(t)+.001>0?-1:1)/l}):(e=t=>-.001+Math.exp(-t*n)*((t-r)*n+1),i=t=>n*n*(r-t)*Math.exp(-t*n));
3let l=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(e,i,5/n);if(n=(0,j.secondsToMilliseconds)(n),isNaN(l))return{stiffness:100,damping:10,duration:n};{let t=Math.pow(l,2)*o;return{stiffness:t,damping:2*a*Math.sqrt(o*t),duration:n}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...l,velocity:-(0,j.millisecondsToSeconds)(l.velocity||0)}),b=y||0,w=f/(2*Math.sqrt(m*g)),P=c-d,S=(0,j.millisecondsToSeconds)(Math.sqrt(m/g)),T=5>Math.abs(P);if(u||(u=T?tc:tp),h||(h=T?tm:tf),w<1)i=tg(S,w),n=(b+w*S*P)/i,t=t=>c-Math.exp(-w*S*t)*(n*Math.sin(i*t)+P*Math.cos(i*t)),s=w*S*n+P*i,r=w*S*P-n*i,e=t=>Math.exp(-w*S*t)*(s*Math.sin(i*t)+r*Math.cos(i*t));else if(1===w){t=t=>c-Math.exp(-S*t)*(P+(b+S*P)*t);let i=b+S*P;e=t=>Math.exp(-S*t)*(S*i*t-b)}else{let i=S*Math.sqrt(w*w-1);t=t=>{let e=Math.exp(-w*S*t),n=Math.min(i*t,300);return c-e*((b+w*S*P)*Math.sinh(n)+i*P*Math.cosh(n))/i};let n=(b+w*S*P)/i,s=w*S*n-P*i,r=w*S*P-n*i;e=t=>{let e=Math.exp(-w*S*t),n=Math.min(i*t,300);return e*(s*Math.sinh(n)+r*Math.cosh(n))}}let M={calculatedDuration:x&&v||null,velocity:t=>(0,j.secondsToMilliseconds)(e(t)),next:o=>{if(!x&&w<1){let t=Math.exp(-w*S*o),e=Math.sin(i*o),a=Math.cos(i*o),l=c-t*(n*e+P*a);return p.done=Math.abs((0,j.secondsToMilliseconds)(t*(s*e+r*a)))<=u&&Math.abs(c-l)<=h,p.value=p.done?c:l,p}let a=t(o);return x?p.done=o>=v:p.done=Math.abs((0,j.secondsToMilliseconds)(e(o)))<=u&&Math.abs(c-a)<=h,p.value=p.done?c:a,p},toString:()=>{let t=Math.min(td(M),2e4),e=(0,th.generateLinearEasing)(e=>M.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return M}tb.applyToOptions=t=>{let e=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,i=arguments.length>2?arguments[2]:void 0,n=i({...t,keyframes:[0,e]}),s=Math.min(td(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:(0,j.millisecondsToSeconds)(s)}}(t,100,tb);return t.ease=e.ease,t.duration=(0,j.secondsToMilliseconds)(e.duration),t.type="keyframes",t};var tw=t.i(21692);function tP(t,e,i){let n=Math.max(e-5,0);return(0,tw.velocityPerSecond)(i-t(n),e-n)}function tS(t){let e,i,{keyframes:n,velocity:s=0,power:r=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:h,max:d,restDelta:c=.5,restSpeed:p}=t,m=n[0],f={done:!1,value:m},g=r*s,v=m+g,y=void 0===u?v:u(v);y!==v&&(g=y-m);let x=t=>-g*Math.exp(-t/o),b=t=>y+x(t),w=t=>{let e=x(t),i=b(t);f.done=Math.abs(e)<=c,f.value=f.done?y:i},P=t=>{let n;if(n=f.value,void 0!==h&&n<h||void 0!==d&&n>d){var s;e=t,i=tb({keyframes:[f.value,(s=f.value,void 0===h?d:void 0===d||Math.abs(h-s)<Math.abs(d-s)?h:d)],velocity:tP(b,t,f.value),damping:a,stiffness:l,restDelta:c,restSpeed:p})}};return P(0),{calculatedDuration:null,next:t=>{let n=!1;return(i||void 0!==e||(n=!0,w(t),P(t)),void 0!==e&&t>=e)?i.next(t-e):(n||w(t),f)}}}let tT=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tM(t,e,i,n){return t===e&&i===n?B.noop:s=>0===s||1===s?s:tT(function(t,e,i,n,s){let r,o,a=0;do(r=tT(o=e+(i-e)/2,n,s)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12)return o}(s,0,1,t,i),e,n)}let tE=tM(.42,0,1,1),tA=tM(0,0,.58,1),tC=tM(.42,0,.58,1),tV=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tD=t=>e=>1-t(1-e),tR=tM(.33,1.53,.69,.99),tk=tD(tR),tL=tV(tk),tj=t=>t>=1?1:(t*=2)<1?.5*tk(t):.5*(2-Math.pow(2,-10*(t-1))),tB=t=>1-Math.sin(Math.acos(t)),tO=tD(tB),tF=tV(tB);t.s(["circIn",0,tB,"circInOut",0,tF,"circOut",0,tO],71559);var tI=t.i(28301);let tN={linear:B.noop,easeIn:tE,easeInOut:tC,easeOut:tA,circIn:tB,circInOut:tF,circOut:tO,backIn:tk,backInOut:tL,backOut:tR,anticipate:tj},t_=t=>{if((0,tI.isBezierDefinition)(t)){(0,U.invariant)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,s]=t;return tM(e,i,n,s)}return"string"==typeof t?((0,U.invariant)(void 0!==tN[t],`Invalid easing type '${t}'`,"invalid-easing-type"),tN[t]):t},tU=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function tz(t){var e;let i,{duration:n=300,keyframes:s,times:r,ease:o="easeInOut"}=t,a=Array.isArray(o)&&"number"!=typeof o[0]?o.map(t_):t_(o),l={done:!1,value:s[0]},u=function(t,e){let{clamp:i=!0,ease:n,mixer:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.length;if((0,U.invariant)(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>
3t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],s=i||D.MotionGlobalConfig.mix||ta,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);e&&(r=I(Array.isArray(e)?e[i]||B.noop:e,r)),n.push(r)}return n}(e,n,s),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 s=tU(t[n],t[n+1],i);return a[n](s)};return i?e=>u((0,N.clamp)(t[0],t[r-1],e)):u}((e=r&&r.length===s.length?r:(!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=tU(0,e,n);t.push((0,q.mixNumber)(i,1,s))}}(i=[0],s.length-1),i),e.map(t=>t*n)),s,{ease:Array.isArray(a)?a:s.map(()=>a||tC).splice(0,s.length-1)});return{calculatedDuration:n,next:t=>(l.value=u(t),l.done=t>=n,l)}}t.s(["progress",0,tU],41058);var t$=t.i(68741);let tW={decay:tS,inertia:tS,tween:tz,keyframes:tz,spring:tb};function tG(t){"string"==typeof t.type&&(t.type=tW[t.type])}var tH=t.i(96402);let tX=t=>t/100;class tY extends tH.WithPromise{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==O.time.now()&&this.tick(O.time.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},_.activeAnimations.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;tG(t);let{type:e=tz,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:o}=t,a=e||tz;a!==tz&&"number"!=typeof o[0]&&(this.mixKeyframes=I(tX,ta(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=td(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){let e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{generator:n,totalDuration:s,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:h,repeat:d,repeatType:c,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),i?this.currentTime=t:this.updateTime(t);let v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let x=this.currentTime,b=n;if(d){let t=Math.min(this.currentTime,s)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===c?(i=1-i,p&&(i-=p/a)):"mirror"===c&&(b=o)),x=(0,N.clamp)(0,1,i)*a}y?(this.delayState.value=h[0],e=this.delayState):e=b.next(x),r&&!y&&(e.value=r(e.value));let{done:w}=e;y||null===l||(w=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return P&&m!==tS&&(e.value=(0,t$.getFinalKeyframe)(h,this.options,g,this.speed)),f&&f(e.value),P&&this.finish(),e}then(t,e){return this.finished.then(t,e)}get duration(){return(0,j.millisecondsToSeconds)(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,j.millisecondsToSeconds)(t)}get time(){return(0,j.millisecondsToSeconds)(this.currentTime)}set time(t){t=(0,j.secondsToMilliseconds)(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?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return tP(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(O.time.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=(0,j.millisecondsToSeconds)(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=tu,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(O.time.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,_.activeAnimations.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}var tK=t.i(69379),tq=t.i(19058),tZ=t.i(5110);let tJ={anticipate:tj,backInOut:tL,circInOut:tF};class tQ extends tZ.NativeAnimation{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in tJ&&(t.ease=tJ[t.ease])}(t),tG(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new tY({...r,autoplay:!1}),a=Math.max(10,O.time.now()-this.startTime),l=(0,N.clamp)(0,10,a-10),u=o.sample(a).value,{name:h}=this.options;s&&h&&(0,tq.setStyle)(s,h,u),e.setWithVelocity(o.sample(Math.max(0,a-l)).value,u,l),o.stop()}}var t0=t.i(81142);let t1=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(W.complex.test(t)||"0"===t)&&!t.startsWith("url("));function t2(t){t.duration=0,t.type="keyframes"}var t3=tH,t9=t.i(87120),t5=t.i(90932);let t6=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,t4=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),t8=(0,t9.memo)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class t7 extends t3.WithPromise{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="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=O.time.now();const d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:a,motionValue:l,element:u,...h},c=u?.KeyframeResolver||tK.KeyframeResolver;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let s;this.keyframeResolver=void 0;let{name:r,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=O.time.now();let d=!0;
3!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=t1(s,e),a=t1(r,e);return(0,U.warning)(o===a,`You are trying to animate ${e} from "${s}" to "${r}". "${o?r:s}" 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||(0,t0.isGenerator)(i))&&n)}(t,r,o,a)&&(d=!1,(D.MotionGlobalConfig.instantAnimations||!l)&&h?.((0,t$.getFinalKeyframe)(t,i,e)),t[0]=t[t.length-1],t2(i),i.repeat=0);let c={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=d&&!u&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=e.owner.getProps();return t8()&&i&&(t5.acceleratedValues.has(i)||t4.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&t6.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!u)&&!l&&!n&&"mirror"!==s&&0!==r&&"inertia"!==o}(c),m=c.motionValue?.owner?.current;if(p)try{s=new tQ({...c,element:m})}catch{s=new tY(c)}else s=new tY(c);s.finished.then(()=>{this.notifyFinished()}).catch(B.noop),this.pendingTimeline&&(this.stopTimeline=s.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=s}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,tK.flushKeyframeResolvers)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}var et=t.i(24032);let ee={type:"spring",stiffness:500,damping:25,restSpeed:10},ei={type:"keyframes",duration:.8},en={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},es=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),er=function(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0;return o=>{let a=E(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=(0,j.secondsToMilliseconds)(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:r?void 0:s};!function(t){for(let e in t)if(!es.has(e))return!0;return!1}(a)&&Object.assign(h,((t,e)=>{let{keyframes:i}=e;return i.length>2?ei:et.transformProps.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===i[1]?2*Math.sqrt(550):30,restSpeed:10}:ee:en})(t,h)),h.duration&&(h.duration=(0,j.secondsToMilliseconds)(h.duration)),h.repeatDelay&&(h.repeatDelay=(0,j.secondsToMilliseconds)(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(t2(h),0===h.delay&&(d=!0)),(D.MotionGlobalConfig.instantAnimations||D.MotionGlobalConfig.skipAnimations||s?.shouldSkipAnimations)&&(d=!0,t2(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,d&&!r&&void 0!==e.get()){let t=(0,t$.getFinalKeyframe)(h.keyframes,a);if(void 0!==t)return void tl.frame.update(()=>{h.onUpdate(t),h.onComplete()})}return a.isSync?new tY(h):new t7(h)}};function eo(t,e){let{delay:i=0,transitionOverride:n,type:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:r,transitionEnd:o,...a}=e,l=t.getDefaultTransition();r=r?M(r,l):l;let u=r?.reduceMotion;n&&(r=n);let h=[],d=s&&t.animationState&&t.animationState.getState()[s];for(let e in a){let n=t.getValue(e,t.latestValues[e]??null),s=a[e];if(void 0===s||d&&function(t,e){let{protectedKeys:i,needsAnimating:n}=t,s=i.hasOwnProperty(e)&&!0!==n[e];return n[e]=!1,s}(d,e))continue;let o={delay:i,...E(r||{},e)},l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(s)&&s===l&&!o.velocity){tl.frame.update(()=>n.set(s));continue}let c=!1;if(window.MotionHandoffAnimation){let i=L(t);if(i){let t=window.MotionHandoffAnimation(i,e,tl.frame);null!==t&&(o.startTime=t,c=!0)}}k(t,e);let p=u??t.shouldReduceMotion;n.start(er(e,n,s,p&&A.positionalKeys.has(e)?{type:!1}:o,t,c));let m=n.animation;m&&h.push(m)}if(o){let e=()=>tl.frame.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=T(t,e)||{};for(let e in s={...s,...i}){var r;let i=V(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,C.motionValue)(i))}}(t,o)});h.length?Promise.all(h).then(e):e()}return h}
3function ea(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(r,o):1===s?r*n:a-r*n}function el(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=T(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(eo(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=arguments.length>6?arguments[6]:void 0,a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(el(l,e,{...o,delay:i+("function"==typeof n?0:n)+ea(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,r,o,a,i)}:()=>Promise.resolve(),{when:a}=s;if(!a)return Promise.all([r(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[r,o]:[o,r];return t().then(()=>e())}}t.s(["animateMotionValue",0,er],2225);var eu=t.i(86843),eh=t.i(16919);let ed=eh.variantProps.length;var ec=t.i(91363);function ep(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 em=[...eh.variantPriorityOrder].reverse(),ef=eh.variantPriorityOrder.length;function eg(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ev(){return{animate:eg(!0),whileInView:eg(),whileHover:eg(),whileTap:eg(),whileDrag:eg(),whileFocus:eg(),exit:eg()}}let ey=0;t.s(["animations",0,{animation:{Feature:class extends P{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(e=>{let{animation:i,options:n}=e;return function(t,e){let i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e))i=Promise.all(e.map(e=>el(t,e,n)));else if("string"==typeof e)i=el(t,e,n);else{let s="function"==typeof e?T(t,e,n.custom):e;i=Promise.all(eo(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}(t,i,n)})),i=ev(),n=!0,s=!1,r=e=>(i,n)=>{let s=T(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function o(o){let{props:a}=t,l=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<ed;t++){let n=eh.variantProps[t],s=e.props[n];((0,eu.isVariantLabel)(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},u=[],h=new Set,d={},c=1/0;for(let e=0;e<ef;e++){var p,m;let f=em[e],g=i[f],v=void 0!==a[f]?a[f]:l[f],y=(0,eu.isVariantLabel)(v),x=f===o?g.isActive:null;!1===x&&(c=e);let b=v===l[f]&&v!==a[f]&&y;if(b&&(n||s)&&t.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...d},!g.isActive&&null===x||!v&&!g.prevProp||(0,ec.isAnimationControls)(v)||"boolean"==typeof v)continue;if("exit"===f&&g.isActive&&!0!==x){g.prevResolvedValues&&(d={...d,...g.prevResolvedValues});continue}let w=(p=g.prevProp,"string"==typeof(m=v)?m!==p:!!Array.isArray(m)&&!ep(m,p)),P=w||f===o&&g.isActive&&!b&&y||e>c&&y,S=!1,M=Array.isArray(v)?v:[v],E=M.reduce(r(f),{});!1===x&&(E={});let{prevResolvedValues:A={}}=g,C={...A,...E},D=e=>{P=!0,h.has(e)&&(S=!0,h.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=E[t],i=A[t];if(!d.hasOwnProperty(t))(V(e)&&V(i)?ep(e,i):e===i)?void 0!==e&&h.has(t)?D(t):g.protectedKeys[t]=!0:null!=e?D(t):h.add(t)}g.prevProp=v,g.prevResolvedValues=E,g.isActive&&(d={...d,...E}),(n||s)&&t.blockInitialAnimation&&(P=!1);let R=b&&w,k=!R||S;P&&k&&u.push(...M.map(e=>{let i={type:f};if("string"==typeof e&&(n||s)&&!R&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=T(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=ea(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=T(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}
3h.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),u.push({animation:e})}let f=!!u.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,s=!1,f?e(u):Promise.resolve()}return{animateChanges:o,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 s=o(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=ev(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,ec.isAnimationControls)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends P{constructor(){super(...arguments),this.id=ey++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t){let i=T(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
3e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}}],41169),t.s(["eachAxis",0,function(t){return[t("x"),t("y")]}],92672),t.s(["addDomEvent",0,function(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}],65869);let ex={x:!1,y:!1};t.s(["isDragActive",0,function(){return ex.x||ex.y},"isDragging",0,ex],97719),t.s(["setDragLock",0,function(t){if("x"===t||"y"===t)if(ex[t])return null;else return ex[t]=!0,()=>{ex[t]=!1};return ex.x||ex.y?null:(ex.x=ex.y=!0,()=>{ex.x=ex.y=!1})}],57318);function eb(t){return t.max-t.min}function ew(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=n,t.originPoint=(0,q.mixNumber)(e.min,e.max,t.origin),t.scale=eb(i)/eb(e),t.translate=(0,q.mixNumber)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function eP(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;t.min=(n?(0,q.mixNumber)(i.min,i.max,n):i.min)+e.min,t.max=t.min+eb(e)}function eS(t,e,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=n?(0,q.mixNumber)(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+eb(e)}t.s(["calcBoxDelta",0,function(t,e,i,n){ew(t.x,e.x,i.x,n?n.originX:void 0),ew(t.y,e.y,i.y,n?n.originY:void 0)},"calcLength",0,eb,"calcRelativeBox",0,function(t,e,i,n){eP(t.x,e.x,i.x,n?.x),eP(t.y,e.y,i.y,n?.y)},"calcRelativePosition",0,function(t,e,i,n){eS(t.x,e.x,i.x,n?.x),eS(t.y,e.y,i.y,n?.y)},"isNear",0,function(t,e,i){return Math.abs(t-e)<=i}],13316)},21496,t=>{"use strict";t.s(["isObject",0,function(t){return"object"==typeof t&&null!==t}])},50743,38752,27772,53422,94801,43866,39993,24785,t=>{"use strict";let e,i;var n=t.i(36656),s=t.i(70919),r=t.i(27684),o=t.i(67682),a=t.i(92672),l=t.i(79514),u=t.i(64646),h=t.i(50669),d=t.i(2225),c=t.i(70820),p=t.i(65869),m=t.i(57318),f=t.i(9138),g=t.i(13316),v=t.i(21496);function y(t){return(0,v.isObject)(t)&&"ownerSVGElement"in t}function x(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}t.s(["isSVGElement",0,y],38752),t.s(["resolveElements",0,x],27772);let b=new WeakMap,w=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:y(n)&&"getBBox"in n?n.getBBox()[e]:n[i],P=w("inline","width","offsetWidth"),S=w("block","height","offsetHeight");function T(t){let{target:e,borderBoxSize:i}=t;b.get(e)?.forEach(t=>{t(e,{get width(){return P(e,i)},get height(){return S(e,i)}})})}function M(t){t.forEach(T)}let E=new Set;function A(t,n){let s;return"function"==typeof t?(E.add(t),i||(i=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};E.forEach(e=>e(t))},window.addEventListener("resize",i)),()=>{E.delete(t),E.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!e&&"u">typeof ResizeObserver&&(e=new ResizeObserver(M)),(s=x(t)).forEach(t=>{let i=b.get(t);i||(i=new Set,b.set(t,i)),i.add(n),e?.observe(t)}),()=>{s.forEach(t=>{let i=b.get(t);i?.delete(n),i?.size||e?.unobserve(t)})})}let C=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),V=new Set(["INPUT","SELECT","TEXTAREA"]);function D(t){return V.has(t.tagName)||!0===t.isContentEditable}t.s(["isElementKeyboardAccessible",0,function(t){return C.has(t.tagName)||!0===t.isContentEditable},"isElementTextInput",0,D],53422);var R=t.i(26809);let k=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function L(t){return{point:{x:t.pageX,y:t.pageY}}}t.s(["isPrimaryPointer",0,k],94801);let j=t=>e=>k(e)&&t(e,L(e));function B(t,e,i,n){return(0,p.addDomEvent)(t,e,j(i),n)}t.s(["addPointerInfo",0,j,"extractEventInfo",0,L],43866);let O=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null};var F=t.i(39705),I=t.i(92727),N=t.i(90692);let _=(t,e)=>Math.abs(t-e),U=new Set(["auto","scroll"]);class z{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=$(this.lastRawMoveEventInfo,this.transformPagePoint));let i=G(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(_(t.x,e.x)**2+_(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i,{timestamp:a}=o.frameData;this.history.push({...r,timestamp:a});let{onStart:l,onMove:u}=this.handlers;n||(l&&l(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),u&&u(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=$(e,this.transformPagePoint),o.frame.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=G("pointercancel"===t.type?this.lastMoveEventInfo:$(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!k(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;const l=$(L(t),this.transformPagePoint),{point:u}=l,{timestamp:h}=o.frameData;this.history=[{...u,timestamp:h}];const{onSessionStart:d}=e;d&&d(t,G(l,this.history)),this.removeListeners=(0,I.pipe)(B(this.contextWindow,"pointermove",this.handlePointerMove),B(this.contextWindow,"pointerup",this.handlePointerUp),B(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(U.has(t.overflowX)||U.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),o.frame.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,o.cancelFrame)(this.updatePoint)}}function $(t,e){return e?{point:e(t.point)}:t}function W(t,e){return{x:t.x-e.x,y:t.y-e.y}}function G(t,e){let{point:i}=t;return{point:i,delta:W(i,H(e)),offset:W(i,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=H(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>(0,N.secondsToMilliseconds)(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&n.timestamp-i.timestamp>
32*(0,N.secondsToMilliseconds)(.1)&&(i=t[1]);let s=(0,N.millisecondsToSeconds)(n.timestamp-i.timestamp);if(0===s)return{x:0,y:0};let r={x:(n.x-i.x)/s,y:(n.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function H(t){return t[t.length-1]}var X=t.i(41058),Y=t.i(93858);function K(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 q(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 Z(t,e,i){return{min:J(t,e),max:J(t,i)}}function J(t,e){return"number"==typeof t?t:t[e]||0}let Q=new WeakMap;class tt{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,r.createBox)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t){let{snapToCursor:e=!1,distanceThreshold:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let s=t=>{e&&this.snapToCursor(L(t).point),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,m.setDragLock)(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),(0,a.eachAxis)(t=>{let e=this.getAxisMotionValue(t).get()||0;if(f.percent.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=(0,g.calcLength)(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&o.frame.update(()=>s(t,e),!1,!0),(0,h.addValueToWillChange)(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},l=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&o.frame.update(()=>r(t,e),!1,!0)},u=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new z(t,{onSessionStart:s,onStart:r,onMove:l,onSessionEnd:u,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:i,contextWindow:O(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&o.frame.postRender(()=>a(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!ti(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,e,i){let{min:n,max:s}=e;return void 0!==n&&t<n?t=i?(0,c.mixNumber)(n,t,i.min):Math.max(t,n):void 0!==s&&t>s&&(t=i?(0,c.mixNumber)(s,t,i.max):Math.min(t,s)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&(0,F.isRefObject)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,e){let{top:i,left:n,bottom:s,right:r}=e;return{x:K(t.x,n,r),y:K(t.y,i,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:Z(t,"left","right"),y:Z(t,"top","bottom")}}(e),n!==this.constraints&&!(0,F.isRefObject)(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&(0,a.eachAxis)(t=>{var e,n;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],s={},void 0!==n.min&&(s.min=n.min-e.min),void 0!==n.max&&(s.max=n.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,F.isRefObject)(e))return!1;let n=e.current;(0,R.invariant)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=(0,l.measurePageBox)(n,s.root,this.visualElement.getTransformPagePoint()),o=(t=s.layout.layoutBox,{x:q(t.x,r.x),y:q(t.y,r.y)});if(i){let t=i((0,u.convertBoxToBoundingBox)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,u.convertBoundingBoxToBox)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{};return Promise.all((0,a.eachAxis)(o=>{if(!ti(o,e,this.currentDirection))return;let a=l&&l[o]||{};(!0===r||r===o)&&(a={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,...s,...a};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,h.addValueToWillChange)(this.visualElement,t),i.start((0,d.animateMotionValue)(t,i,0,e,this.visualElement,!1))}stopAnimation(){(0,a.eachAxis)(t=>this.getAxisMotionValue(t).stop())}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){(0,a.eachAxis)(e=>{let{drag:i}=this.getProps();if(!ti(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e],o=s.get()||0;s.set(t[e]-(0,c.mixNumber)(i,r,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,F.isRefObject)(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};(0,a.eachAxis)(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let r,o,a,l=e.get();n[t]=(i={min:l,max:l},s=this.constraints[t],r=.5,o=(0,g.calcLength)(i),(a=(0,g.calcLength)(s))>o?r=(0,X.progress)(s.min,s.max-o,i.min):o>a&&(r=(0,X.progress)(i.min,i.max-a,s.min)),(0,Y.clamp)(0,1,r))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),(0,a.eachAxis)(e=>{if(!ti(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set((0,c.mixNumber)(s,r,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;Q.set(this.visualElement,this);let e=this.visualElement.current,i=B(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}
3=this.getProps(),s=t.target,r=s!==e&&D(s);i&&n&&!r&&this.start(t)}),n=()=>{var i,n,s;let r,o,{dragConstraints:a}=this.getProps();(0,F.isRefObject)(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=a.current,r=A(i,te(s=()=>this.scalePositionWithinConstraints())),o=A(n,te(s)),t=()=>{r(),o()}))},{projection:s}=this.visualElement,r=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),o.frame.read(n);let l=(0,p.addDomEvent)(window,"resize",()=>this.scalePositionWithinConstraints()),u=s.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i}=t;this.isDragging&&i&&((0,a.eachAxis)(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{l(),i(),r(),u&&u(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function te(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function ti(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tn extends n.Feature{constructor(t){super(t),this.removeGroupControls=s.noop,this.removeListeners=s.noop,this.controls=new tt(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||s.noop}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}t.s(["DragGesture",0,tn],50743);var ts=n;let tr=t=>(e,i)=>{t&&o.frame.update(()=>t(e,i),!1,!0)};class to extends ts.Feature{constructor(){super(...arguments),this.removePointerDownListener=s.noop}onPointerDown(t){this.session=new z(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:O(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:tr(t),onStart:tr(e),onMove:tr(i),onEnd:(t,e)=>{delete this.session,n&&o.frame.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=B(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}t.s(["PanGesture",0,to],39993),t.s(["globalProjectionState",0,{hasAnimatedSinceResize:!0,hasEverUpdated:!1}],24785)},18015,t=>{"use strict";var e=t.i(19059),i=t.i(70338);t.s(["usePresence",0,function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],n=(0,e.useContext)(i.PresenceContext);if(null===n)return[!0,null];let{isPresent:s,onExitComplete:r,register:o}=n,a=(0,e.useId)();(0,e.useEffect)(()=>{if(t)return o(a)},[t]);let l=(0,e.useCallback)(()=>t&&r&&r(a),[a,r,t]);return!s&&r?[!1,l]:[!0]}])},83860,86343,49921,28437,70563,62962,t=>{"use strict";var e=t.i(50743),i=t.i(39993),n=t.i(27994),s=t.i(24785),r=t.i(67682),o=t.i(27139),a=t.i(19059),l=t.i(18015),u=t.i(7464),h=t.i(36333);let d=!1;class c extends a.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),d&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),s.globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:o}=i;return o&&(o.isPresent=s,t.layoutDependency!==e&&o.setOptions({...o.options,layoutDependency:e}),d=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||r.frame.postRender(()=>
3{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),o.microtask.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;d=!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 p(t){let[e,i]=(0,l.usePresence)(),s=(0,a.useContext)(u.LayoutGroupContext);return(0,n.jsx)(c,{...t,layoutGroup:s,switchLayoutGroup:(0,a.useContext)(h.SwitchLayoutGroupContext),isPresent:e,safeToRemove:i})}t.s(["MeasureLayout",0,p],86343);var m=t.i(96457),f=t.i(93858),g=t.i(70919),v=t.i(2225),y=t.i(2915),x=t.i(36585),b=t.i(30017),w=t.i(38526),P=t.i(57798),S=t.i(39068),T=t.i(31772),M=t.i(94907);t.i(90692);var E=t.i(38752),A=t.i(70820),C=t.i(91945),V=t.i(9138),D=t.i(41058),R=t.i(71559);let k=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],L=k.length,j=t=>"string"==typeof t?parseFloat(t):t,B=t=>"number"==typeof t||V.px.test(t);function O(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let F=N(0,.5,R.circOut),I=N(.5,.95,g.noop);function N(t,e,i){return n=>n<t?0:n>e?1:i((0,D.progress)(t,e,n))}function _(t,e){t.min=e.min,t.max=e.max}function U(t,e){_(t.x,e.x),_(t.y,e.y)}function z(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var $=t.i(56731),W=t.i(13316);function G(t,e,i,n,s){return t-=e,t=(0,$.scalePoint)(t,1/i,n),void 0!==s&&(t=(0,$.scalePoint)(t,1/s,n)),t}function H(t,e,i,n,s){let[r,o,a]=i;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,s=arguments.length>4?arguments[4]:void 0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(V.percent.test(e)&&(e=parseFloat(e),e=(0,A.mixNumber)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,A.mixNumber)(r.min,r.max,n);t===r&&(a-=e),t.min=G(t.min,e,i,a,s),t.max=G(t.max,e,i,a,s)}(t,e[r],e[o],e[a],e.scale,n,s)}let X=["x","scaleX","originX"],Y=["y","scaleY","originY"];function K(t,e,i,n){H(t.x,e,X,i?i.x:void 0,n?n.x:void 0),H(t.y,e,Y,i?i.y:void 0,n?n.y:void 0)}var q=t.i(27684);function Z(t){return 0===t.translate&&1===t.scale}function J(t){return Z(t.x)&&Z(t.y)}function Q(t,e){return t.min===e.min&&t.max===e.max}function tt(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function te(t,e){return tt(t.x,e.x)&&tt(t.y,e.y)}function ti(t){return(0,W.calcLength)(t.x)/(0,W.calcLength)(t.y)}function tn(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var ts=t.i(57307);class tr{constructor(){this.members=[]}add(t){(0,ts.addUniqueItem)(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||((0,ts.removeItem)(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if((0,ts.removeItem)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:s}=t.options;(void 0===n||n!==s)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}
3exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}var to=t.i(92672);let ta=(t,e)=>t.depth-e.depth;class tl{constructor(){this.children=[],this.isDirty=!1}add(t){(0,ts.addUniqueItem)(this.children,t),this.isDirty=!0}remove(t){(0,ts.removeItem)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ta),this.isDirty=!1,this.children.forEach(t)}}var tu=t.i(61417);let th={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},td=["","X","Y","Z"],tc=0;function tp(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function tm(t){let{attachResizeListener:e,defaultParent:i,measureScroll:n,checkIsScrollRoot:a,resetTransform:l}=t;return class{constructor(t={},e=i?.()){this.id=tc++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,M.statsBuffer.value&&(th.nodes=th.calculatedTargetDeltas=th.calculatedProjections=0),this.nodes.forEach(tv),this.nodes.forEach(tE),this.nodes.forEach(tA),this.nodes.forEach(ty),M.statsBuffer.addProjectionMetrics&&M.statsBuffer.addProjectionMetrics(th)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new tl)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new m.SubscriptionManager),this.eventHandlers.get(t).add(e)}notifyListeners(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];let s=this.eventHandlers.get(t);s&&s.notify(...i)}hasListeners(t){return this.eventHandlers.has(t)}mount(t){if(this.instance)return;this.isSVG=(0,E.isSVGElement)(t)&&(!(0,E.isSVGElement)(t)||"svg"!==t.tagName),this.instance=t;let{layoutId:i,layout:n,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),e){let i,n=0,o=()=>this.root.updateBlockedByResize=!1;r.frame.read(()=>{n=window.innerWidth}),e(t,()=>{let t=window.innerWidth;if(t!==n){let e,a;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=P.time.now(),a=t=>{let{timestamp:i}=t,n=i-e;n>=250&&((0,r.cancelFrame)(a),o(n-250))},r.frame.setup(a,!0),i=()=>(0,r.cancelFrame)(a),s.globalProjectionState.hasAnimatedSinceResize&&(s.globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(tM))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||n)&&this.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:i,hasRelativeLayoutChanged:n,layout:s}=t;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||o.getDefaultTransition()||tL,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=o.getProps(),u=!this.targetLayout||!te(this.targetLayout,s),h=!i&&n;if(this.options.layoutRoot||this.resumeFrom||h||i&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...(0,w.getValueTransition)(r,"layout"),onPlay:a,onComplete:l};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,h)}else i||tM(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,r.cancelFrame)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
3h(tC),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=(0,b.getOptimisedAppearId)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",r.frame,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(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,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!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()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(tw),this.nodes.forEach(tb);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(tP);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(tS),this.nodes.forEach(tT),this.nodes.forEach(tf),this.nodes.forEach(tg)):this.nodes.forEach(tP),this.clearAllSnapshots();let t=P.time.now();r.frameData.delta=(0,f.clamp)(0,1e3/60,t-r.frameData.timestamp),r.frameData.timestamp=t,r.frameData.isProcessing=!0,r.frameSteps.update.process(r.frameData),r.frameSteps.preRender.process(r.frameData),r.frameSteps.render.process(r.frameData),r.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,o.microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(tx),this.sharedNodes.forEach(tV)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,r.frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){r.frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||(0,W.calcLength)(this.snapshot.measuredBox.x)||(0,W.calcLength)(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=(0,q.createBox)()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",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=a(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!l)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!J(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,tu.hasTransform)(this.latestValues)||s)&&(l(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],i=this.measurePageBox(),n=this.removeElementScroll(i);return e&&(n=this.removeTransform(n)),tO((t=n).x),tO(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,q.createBox)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tI))){let{scroll:t}=this.root;t&&((0,$.translateAxis)(e.x,t.offset.x),(0,$.translateAxis)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,q.createBox)();if(U(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&U(e,t),(0,$.translateAxis)(e.x,s.offset.x),(0,$.translateAxis)(e.y,s.offset.y))}return e}applyTransform(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,n=i||(0,q.createBox)();U(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&((0,$.translateAxis)(n.x,-i.scroll.offset.x),(0,$.translateAxis)(n.y,-i.scroll.offset.y)),(0,tu.hasTransform)(i.latestValues)&&(0,$.transformBox)(n,i.latestValues,i.layout?.layoutBox)}return(0,tu.hasTransform)(this.latestValues)&&(0,$.transformBox)(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=(0,q.createBox)();U(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];(0,tu.hasTransform)(n.latestValues)&&(n.instance&&((0,tu.hasScale)(n.latestValues)&&n.updateSnapshot(),U(i=(0,q.createBox)(),n.measurePageBox())),K(e,n.latestValues,n.snapshot?.layoutBox,i))}return(0,tu.hasTransform)(this.latestValues)&&K(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!==r.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=r.frameData.timestamp;let o=this.getClosestProjectingParent();o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=(0,q.createBox)(),this.targetWithTransforms=(0,q.createBox)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),(0,W.calcRelativeBox)(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):U(this.target,this.layout.layoutBox),(0,$.applyBoxDelta)(this.target,this.targetDelta)):U(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),M.statsBuffer.value&&th.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||(0,tu.hasScale)(this.parent.latestValues)||(0,tu.has2DTranslate)(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,q.createBox)(),this.relativeTargetOrigin=(0,q.createBox)(),(0,W.calcRelativePosition)(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),U(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
3if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===r.frameData.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;U(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;(0,$.applyTreeDeltas)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,q.createBox)());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(z(this.prevProjectionDelta.x,this.projectionDelta.x),z(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),(0,W.calcBoxDelta)(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&tn(this.projectionDelta.x,this.prevProjectionDelta.x)&&tn(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),M.statsBuffer.value&&th.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,q.createDelta)(),this.projectionDelta=(0,q.createDelta)(),this.projectionDeltaWithTransform=(0,q.createDelta)()}setAnimationOrigin(t){let e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.snapshot,s=n?n.latestValues:{},r={...this.latestValues},o=(0,q.createDelta)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;let a=(0,q.createBox)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(tk));this.animationProgress=0,this.mixTargetDelta=i=>{let n=i/1e3;if(tD(o.x,t.x,n),tD(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,g;(0,W.calcRelativePosition)(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=n,tR(p.x,m.x,f.x,g),tR(p.y,m.y,f.y,g),e&&(u=this.relativeTarget,c=e,Q(u.x,c.x)&&Q(u.y,c.y))&&(this.isProjectionDirty=!1),e||(e=(0,q.createBox)()),U(e,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=(0,A.mixNumber)(0,i.opacity??1,F(n)),t.opacityExit=(0,A.mixNumber)(e.opacity??1,0,I(n))):r&&(t.opacity=(0,A.mixNumber)(e.opacity??1,i.opacity??1,n));for(let s=0;s<L;s++){let r=k[s],o=O(e,r),a=O(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||B(o)===B(a)?(t[r]=Math.max((0,A.mixNumber)(j(o),j(a),n),0),(V.percent.test(a)||V.percent.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,A.mixNumber)(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,r.cancelFrame)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=r.frame.update(()=>{var e,i,n;let r;s.globalProjectionState.hasAnimatedSinceResize=!0,T.activeAnimations.layout++,this.motionValue||(this.motionValue=(0,y.motionValue)(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{T.activeAnimations.layout--},onComplete:()=>{T.activeAnimations.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(r=(0,x.isMotionValue)(e)?e:(0,y.motionValue)(e)).start((0,v.animateMotionValue)("",r,i,n)),r.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&tF(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,q.createBox)();let e=(0,W.calcLength)(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=(0,W.calcLength)(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}
3U(e,i),(0,$.transformBox)(e,s),(0,W.calcBoxDelta)(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new tr),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;return 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(){let{needsReset:t,transition:e,preserveFollowOpacity:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},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&&tp("z",t,n,this.animationValues);for(let e=0;e<td.length;e++)tp(`rotate${td[e]}`,t,n,this.animationValues),tp(`skew${td[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=(0,C.resolveMotionValue)(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,C.resolveMotionValue)(e?.pointerEvents)||""),this.hasProjected&&!(0,tu.hasTransform)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,o=i?.z||0;if((s||r||o)&&(n=`translate3d(${s}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}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,s);i&&(r=i(s,r)),t.transform=r;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?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,S.scaleCorrectors){if
3(void 0===s[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=S.scaleCorrectors[e],l="none"===r?s[e]:i(s[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?(0,C.resolveMotionValue)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(tb),this.root.sharedNodes.clear()}}}function tf(t){t.updateLayout()}function tg(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:s}=t.options,r=e.source!==t.layout.source;if("size"===s)(0,to.eachAxis)(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=(0,W.calcLength)(n);n.min=i[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";_(r?e.measuredBox[t]:e.layoutBox[t],i[t])}else tF(s,e.layoutBox,i)&&(0,to.eachAxis)(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],o=(0,W.calcLength)(i[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=(0,q.createDelta)();(0,W.calcBoxDelta)(o,i,e.layoutBox);let a=(0,q.createDelta)();r?(0,W.calcBoxDelta)(a,t.applyTransform(n,!0),e.measuredBox):(0,W.calcBoxDelta)(a,i,e.layoutBox);let l=!J(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=t.options.layoutAnchor||void 0,a=(0,q.createBox)();(0,W.calcRelativePosition)(a,e.layoutBox,s.layoutBox,o);let l=(0,q.createBox)();(0,W.calcRelativePosition)(l,i,r.layoutBox,o),te(a,l)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,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 tv(t){M.statsBuffer.value&&th.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ty(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tx(t){t.clearSnapshot()}function tb(t){t.clearMeasurements()}function tw(t){t.isLayoutDirty=!0,t.updateLayout()}function tP(t){t.isLayoutDirty=!1}function tS(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function tT(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function tM(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function tE(t){t.resolveTargetDelta()}function tA(t){t.calcProjection()}function tC(t){t.resetSkewAndRotation()}function tV(t){t.removeLeadSnapshot()}function tD(t,e,i){t.translate=(0,A.mixNumber)(e.translate,0,i),t.scale=(0,A.mixNumber)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function tR(t,e,i,n){t.min=(0,A.mixNumber)(e.min,i.min,n),t.max=(0,A.mixNumber)(e.max,i.max,n)}function tk(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let tL={duration:.45,ease:[.4,0,.1,1]},tj=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),tB=tj("applewebkit/")&&!tj("chrome/")?Math.round:g.noop;function tO(t){t.min=tB(t.min),t.max=tB(t.max)}function tF(t,e,i){return"position"===t||"preserve-aspect"===t&&!(0,W.isNear)(ti(e),ti(i),.2)}function tI(t){return t!==t.root&&t.scroll?.wasRoot}var tN=t.i(65869);let t_=tm({attachResizeListener:(t,e)=>(0,tN.addDomEvent)(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),tU={current:void 0},tz=tm({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!tU.current){let t=new t_({});t.mount(window),t.setOptions({layoutScroll:!0}),tU.current=t}return tU.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});t.s(["HTMLProjectionNode",0,tz],49921);let t$={pan:{Feature:i.PanGesture},drag:{Feature:e.DragGesture,ProjectionNode:tz,MeasureLayout:p}};t.s(["drag",0,t$],83860);var tW=t.i(36656),tG=t.i(97719),tH=t.i(27772);function tX(t,e){let i=(0,tH.resolveElements)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}t.s(["setupGesture",0,tX],28437);var tY=t.i(43866);function tK(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&r.frame.postRender(()=>s(e,(0,tY.extractEventInfo)(e)))}class tq extends tW.Feature{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},[n,s,r]=tX(t,i);
3return n.forEach(t=>{let i,n=!1,r=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),r&&(r=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(n){r=!0;return}o(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||(0,tG.isDragActive)())return;r=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",a,s)},s)}),r}(t,(t,e)=>(tK(this.node,e,"Start"),t=>tK(this.node,t,"End"))))}unmount(){}}t.s(["HoverGesture",0,tq],70563);var tZ=tW,tJ=t.i(92727);class tQ extends tZ.Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,tJ.pipe)((0,tN.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,tN.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}t.s(["FocusGesture",0,tQ],62962)},50438,t=>{"use strict";var e=t.i(21496);t.s(["isHTMLElement",0,function(t){return(0,e.isObject)(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}])},12086,t=>{"use strict";var e=t.i(18454),i=t.i(33112),n=t.i(41169),s=t.i(83860),r=t.i(70563),o=t.i(62962),a=t.i(36656),l=t.i(50438),u=t.i(97719);let h=(t,e)=>!!e&&(t===e||h(t,e.parentElement));var d=t.i(94801),c=t.i(28437),p=t.i(53422);let m=new WeakSet;function f(t){return e=>{"Enter"===e.key&&t(e)}}function g(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function v(t){return(0,d.isPrimaryPointer)(t)&&!(0,u.isDragActive)()}let y=new WeakSet;var x=t.i(67682),b=t.i(43866);function w(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 s=n["onTap"+("End"===i?"":i)];s&&x.frame.postRender(()=>s(e,(0,b.extractEventInfo)(e)))}class P extends a.Feature{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},[n,s,r]=(0,c.setupGesture)(t,i),o=t=>{let n=t.currentTarget;if(!v(t)||y.has(t))return;m.add(n),i.stopPropagation&&y.add(t);let r=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),m.has(n)&&m.delete(n),v(t)&&"function"==typeof r&&r(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||h(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),(0,l.isHTMLElement)(t)&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=f(()=>{if(m.has(i))return;g(i,"down");let t=f(()=>{g(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>g(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),(0,p.isElementKeyboardAccessible)(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(w(this.node,e,"Start"),(t,e)=>{let{success:i}=e;return w(this.node,t,i?"End":"Cancel")}),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}var S=a;let T=new WeakMap,M=new WeakMap,E=t=>{let e=T.get(t.target);e&&e(t)},A=t=>{t.forEach(E)},C={some:0,all:1};class V extends S.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:o}=i,a={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof r?r:C[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};this.stopObserver=(t=this.node.current,e=function(t){let{root:e,...i}=t,n=e||document;M.has(n)||M.set(n,{});
3let s=M.get(n),r=JSON.stringify(i);return s[r]||(s[r]=new IntersectionObserver(A,{root:e,...i})),s[r]}(a),T.set(t,l),e.observe(t),()=>{T.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:i={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==i[t]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let D={inView:{Feature:V},tap:{Feature:P},focus:{Feature:o.FocusGesture},hover:{Feature:r.HoverGesture}};var R=t.i(49921),k=t.i(86343);let L={layout:{ProjectionNode:R.HTMLProjectionNode,MeasureLayout:k.MeasureLayout}},j={...n.animations,...D,...s.drag,...L},B=(0,i.createMotionProxy)(j,e.createDomVisualElement);t.s(["motion",0,B],12086)}]);

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.