1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,21266,t=>{"use strict";var e=t.i(28249),i=t.i(50483);let r=i.forwardRef(function({title:t,titleId:e,...r},s){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":e},r),t?i.createElement("title",{id:e},t):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}),s=i.forwardRef(function({title:t,titleId:e,...r},s){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":e},r),t?i.createElement("title",{id:e},t):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))});var n=t.i(7284),o=t.i(72039),a=t.i(38157),l=t.i(13577);let u={"blue-500/5":"bg-blue-500/5","orange-500/5":"bg-orange-500/5","green-500/5":"bg-green-500/5"};t.s(["default",0,function({title:t,description:i,inCarousel:h=!1,slide:c,index:d,length:p,imageSrc:f,imageScale:m=1,color:g="",learnMoreLink:v="/"}){let y=u[g]??"";return(0,e.jsxs)("div",{className:"group/card relative h-[280px] w-full snap-center overflow-hidden sm:h-[320px] lg:h-[400px]",children:[(0,e.jsx)(o.default,{src:f,fill:!0,alt:"background image for card",sizes:"(min-width: 1024px) 33vw, 100vw",style:1!==m?{transform:`scale(${m})`,transformOrigin:"center"}:void 0}),(0,e.jsx)("div",{"aria-hidden":!0,className:(0,n.default)("pointer-events-none absolute inset-0 z-[1] transition duration-700","backdrop-brightness-[0.45] lg:backdrop-brightness-[0.6]","group-focus-within/card:backdrop-brightness-[0.3] group-hover/card:backdrop-brightness-[0.3]",y)}),(0,e.jsx)(l.default,{href:v,className:"absolute inset-0 z-10 flex items-center justify-center px-5 py-20",children:(0,e.jsxs)("div",{className:"flex w-4/5 flex-col items-center justify-center gap-4 lg:gap-0",children:[(0,e.jsx)("div",{className:"w-full text-center font-semibold text-3xl text-white leading-tight transition-transform duration-700 lg:translate-y-0 lg:text-[2rem] group-hover/card:lg:-translate-y-12 group-focus-within/card:lg:-translate-y-12",children:t}),(0,e.jsxs)("div",{className:"flex w-full flex-col items-center justify-start gap-4 overflow-visible transition duration-700 group-focus-within/card:opacity-100 group-hover/card:opacity-100 lg:h-[0px] lg:translate-y-[150px] lg:opacity-0 group-hover/card:lg:-translate-y-[30px] group-focus-within/card:lg:-translate-y-[30px]",children:[(0,e.jsx)("div",{className:"text-center text-base text-gray-200 group-focus-within/card:opacity-100 group-hover/card:opacity-100 md:text-lg lg:max-w-[80%] lg:opacity-0",children:i}),(0,e.jsxs)("div",{className:"mt-4 hidden gap-8 md:flex",children:[(0,e.jsx)(a.default,{variant:"primary",children:"Learn More"}),h&&(0,e.jsxs)("div",{className:"flex items-center justify-center gap-5 text-lg",children:[(0,e.jsx)("button",{type:"button",onClick:()=>c("left"),children:(0,e.jsx)(r,{className:"h-7"})}),d+1," / ",p,(0,e.jsx)("button",{type:"button",onClick:()=>c("right"),children:(0,e.jsx)(s,{className:"h-7"})})]})]})]})]})})]})}],21266)},3456,t=>{"use strict";t.s(["cancelClickAfterDrag",0,function(t){if(0!==t.button)return;let e=t.clientX,i=t.clientY,r=t.currentTarget;window.addEventListener("mouseup",function t(s){window.removeEventListener("mouseup",t),(s.clientX!==e||s.clientY!==i)&&r.addEventListener("click",t=>t.preventDefault(),{once:!0})})},"default",0,function(t,e){if(0!==t.button)return;let i=t.clientX,r=t.clientY;window.addEventListener("mouseup",function t(s){let n=s.clientX,o=Math.abs(s.clientY-r);Math.abs(n-i)>0||o>
10?s.preventDefault():window.location.href=e,window.removeEventListener("mouseup",t)})}])},72919,t=>{"use strict";var e=t.i(28249),i=t.i(72039);let r={src:t.i(8328).default,width:3873,height:3873,blurWidth:8,blurHeight:8,blurDataURL:"data:image/webp;base64,UklGRrwAAABXRUJQVlA4TK8AAAAvB8ABAM1VICICHggwCgQAAIAJCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgBcI0LDOuXU8AAAeyCYAAAAAwPkPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOkeSAAAAAAAwPmHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAER+C/7FxQVoZp0Z0CQwAT0ZeAKeIIWJAMnOSeGTnSRQQCsBAA=="};var s=t.i(3456);t.s(["default",0,function({name:t="Test Name",title:n="Commissioner",img:o=r,description:a,link:l="#"}){return(0,e.jsxs)("a",{href:l,"aria-label":`View profile of ${t}, ${n}`,className:"block cursor-pointer focus:outline-hidden focus:ring-2 focus:ring-UC-blue-500 focus:ring-offset-2",onMouseDown:s.cancelClickAfterDrag,children:[(0,e.jsxs)("div",{className:"group/profileCard relative mb-5 h-72 w-56 overflow-hidden lg:h-96 lg:w-72",children:[o?(0,e.jsx)(i.default,{alt:t,src:o,fill:!0,className:"object-cover"}):(0,e.jsx)("div",{className:"h-full w-full bg-gray-200"}),(0,e.jsx)("div",{className:"absolute top-0 left-0 hidden h-full w-full cursor-pointer items-end bg-gradient-to-b from-black/50 to-black p-3 opacity-0 brightness-110 transition-opacity group-hover/profileCard:opacity-100 lg:flex",children:(0,e.jsx)("div",{className:"line-clamp-5 h-1/3 translate-y-[100px] font-normal text-gray-200 transition duration-500 group-hover/profileCard:translate-y-0",children:a})})]}),(0,e.jsx)("div",{className:"mb-1 font-semibold text-gray-700 dark:text-gray-300",children:t}),(0,e.jsx)("div",{className:"mb-2 font-medium text-gray-700 text-xs dark:text-gray-400",children:n})]})}],72919)},89982,t=>{"use strict";var e=t.i(28249),i=t.i(7284),r=t.i(50483);t.s(["default",0,function({scrollRef:t,children:s,setScrollPosition:n=()=>{},setMaxScrollPosition:o=()=>{},className:a="",showScrollBar:l=!0}){(0,r.useEffect)(()=>{let e=()=>{let e=t.current;e&&n(e.scrollLeft)},i=t.current;return o(i.scrollWidth-i.offsetWidth),i.addEventListener("scroll",e),()=>{i.removeEventListener("scroll",e)}},[t,o,n]),(0,r.useEffect)(()=>{function e(){let e=t.current;e&&(o(e.scrollWidth-e.offsetWidth),e.scrollTo({left:0,behavior:"smooth"}),n(0))}return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[t,o,n]);let[u,h]=(0,r.useState)(!1),[c,d]=(0,r.useState)(0),[p,f]=(0,r.useState)(0),m=()=>{h(!1)};return(0,e.jsx)("div",{ref:t,className:(0,i.default)("flex flex-nowrap overflow-x-auto",a||"",l?"scroll pb-2":"no-scroll pb-0"),onMouseDown:t=>{h(!0),d(t.pageX),f(t.currentTarget.scrollLeft)},onMouseLeave:m,onMouseUp:m,onMouseMove:t=>{if(t.preventDefault(),!u)return;let e=t.pageX;t.currentTarget.scrollLeft=p-(e-c)},children:s})}])},48720,t=>{"use strict";var e=t.i(28249),i=t.i(7284),r=t.i(67645);function s({scrollPosition:t,maxScrollPosition:i,handleClick:n,className:o="flex"}){let a=[{direction:"left",disabledPosition:0,children:(0,e.jsx)(r.default,{direction:"left",strokeWidth:1.9})},{direction:"right",disabledPosition:i,children:(0,e.jsx)(r.default,{direction:"right",strokeWidth:1.9})}];return(0,e.jsx)("div",{className:`h-10 gap-2 ${o}`,children:a.map(({direction:i,disabledPosition:r,children:s})=>(0,e.jsx)("button",{type:"button",className:"flex w-10 items-center justify-center rounded bg-main-blue-700 px-2 py-2 font-semibold text-white text-xs shadow-xs transition-colors hover:bg-UC-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-main-blue-700 focus-visible:outline-offset-2 disabled:bg-slate-300 disabled:hover:bg-slate-300 dark:bg-main-blue-600/50 dark:text-UC-blue-500 dark:disabled:bg-slate-800 disabled:dark:bg-slate-300/20 dark:disabled:text-slate-900 dark:hover:bg-main-blue-600",disabled:t===r,onClick:()=>n(i),"aria-label":`${"left"===i?"Previous":"Next"} carousel item`,children:s},i))})}var n=t.i(43179),o=t.i(89982),a=t.i(13577),l=t.i(50483);t.s(["default",0,function({title:t,subtitle:u,linkHref:h,linkText:c,scrollAmount:d,centered:p=!1,children:f,disableSideScroll:m=!1,disableHeaderRow:g=!1}){let v=(0,l.useRef)(null),[y,x]=(0,l.useState)(0),[w,b]=(0,l.useState)(null),A=(0,e.jsx)(o.default,{scrollRef:v,setScrollPosition:x,setMa
1xScrollPosition:b,className:(0,i.default)("my-5 w-full cursor-grab gap-5 px-[2rem]",p&&"lg:px-0"),children:f});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:(0,i.default)("flex select-none flex-col lg:container",!p&&"lg:flex-row"),children:[(0,e.jsxs)("div",{className:(0,i.default)("flex min-w-max flex-col items-center justify-center",!p&&"lg:mr-4 lg:mb-[6rem] lg:w-2/5 lg:items-start"),children:[!1===g&&(0,e.jsx)("hr",{className:(0,i.default)("mb-3 w-8 border-2 border-UC-yellow-500",!p&&"lg:hidden")}),(0,e.jsx)(n.default,{id:"news-title",className:(0,i.default)("mb-8 hidden font-medium text-base",!p&&"lg:flex"),children:t}),(0,e.jsx)("div",{className:"mt-4 mb-2 font-bold font-serif text-4xl text-gray-700 leading-tight md:mb-4 md:text-5xl lg:max-w-[22rem] dark:font-semibold dark:text-gray-300",children:u}),(0,e.jsxs)(a.default,{"aria-label":c,href:h,className:"mb-4 flex items-center p-0 font-medium text-gray-600 text-sm uppercase underline-offset-2 transition hover:text-UC-blue-500 lg:text-base dark:font-normal dark:text-gray-400 dark:hover:text-UC-blue-500",children:[c," ",(0,e.jsx)(r.default,{direction:"right",strokeWidth:1.5,height:4})]})]}),A]}),!1===m&&(0,e.jsx)("div",{className:"container flex items-center justify-end lg:flex",py:"py-4",children:(0,e.jsx)(s,{className:"flex items-center justify-center",maxScrollPosition:w,scrollPosition:y,handleClick:t=>{let e=v.current;if(e){let i="left"===t?Math.max(y-d,0):Math.min(y+d,w);e.scrollTo({left:i,behavior:"smooth"}),x(Math.ceil(i))}}})})]})}],48720)},90163,t=>{"use strict";var e=t.i(28249),i=t.i(7284),r=t.i(89718),s=t.i(50483);let n=[{href:"/imgs/hero/snow-mountain-aerial.webp",alt:"Aerial view of snow-capped mountains east of Utah Valley"},{href:"/imgs/hero/valley.webp",location:"View of the valley from Mount Timpanogos",alt:"Aerial view of Utah Valley and Utah Lake from Mount Timpanogos"},{href:"/imgs/hero/downtown.webp",location:"Downtown Provo",alt:"Aerial view of downtown Provo at the intersection of University Avenue and Center Street with cars and busses passing and people walking"},{href:"/imgs/hero/fall-foliage.webp",alt:"Aerial view of a country road surrounded by trees of different colors of fall foliage"},{href:"/imgs/hero/Snow_Capped_Mountain_with_Autumn_Leaves.webp",alt:"Picture of a snow-capped mountain with trees with fall foliage in the foreground"},{href:"/imgs/hero/tech.webp",location:"Tech Hub",alt:'Aerial view of the "Silicon Slopes" tech hub in Lehi, Utah with snow-capped mountains in the background'}];t.s(["default",0,function({centered:t=!0,children:o,className:a=""}){let[l,u]=(0,s.useState)(0),[h,c]=(0,s.useState)(0),[d,p]=(0,s.use
1State)(!1),[f,m]=(0,s.useState)(!0),[g,v]=(0,s.useState)(!1);(0,s.useEffect)(()=>{p(h===n.length)},[h]),(0,s.useEffect)(()=>{if(g)return;let t=setInterval(()=>{u(t=>t===n.length-1?0:t+1)},15e3);return()=>clearInterval(t)},[g]);let y=(0,s.useCallback)(()=>{v(t=>!t)},[]);(0,s.useEffect)(()=>{let t=()=>{m(!(window.scrollY>=window.innerHeight))};return window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)},[]);let x=`linear-gradient( 2 rgba(0, 0, 0, 0.25) 0%, 3 rgba(0, 0, 255, 0.1) 30%, 4 rgba(0, 0, 0, 0.75) 85%, 5 rgba(0, 0, 0, 0.75) 100% 6 )`,w=n[l];return(0,e.jsxs)("div",{className:(0,i.clsx)("relative flex min-h-[100vh] flex-col",a),children:[(0,e.jsxs)("section",{className:(0,i.clsx)("fixed top-0 left-0 z-[-1] min-h-[100vh] w-full bg-slate-600 transition duration-700 ease-in-out dark:bg-slate-900",!f&&"opacity-0"),"aria-roledescription":"carousel","aria-label":"Hero images slideshow",children:[n.map((t,i)=>(0,e.jsx)(r.default,{src:t.href,alt:t.alt||t.location||`Hero image ${i+1}`,quality:100,sizes:"100vw",style:{objectFit:"cover",opacity:d&&i===l?.99:0,transition:"opacity 0.9s ease-in-out"},fill:!0,...!d&&{className:0===i?"":"opacity-0",onLoad:()=>{c(t=>t+1)}},priority:0===i},t.href)),(0,e.jsx)("div",{"aria-live":"polite","aria-atomic":"true",className:"sr-only",children:d&&`Showing image ${l+1} of ${n.length}: ${w.alt||w.location||"Hero image"}`})]}),(0,e.jsx)("div",{className:"absolute inset-0 z-0",style:{background:x}}),(0,e.jsx)("button",{type:"button",onClick:y,"aria-label":g?"Play slideshow":"Pause slideshow",className:"absolute right-4 bottom-4 z-20 rounded-full bg-black/50 p-2 text-white transition-colors hover:bg-black/70 focus:outline-hidden focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-black/50",children:g?(0,e.jsx)("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M8 5v14l11-7z"})}):(0,e.jsx)("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"})})}),(0,e.jsx)("div",{className:`${t?"flex flex-col items-center justify-center h-full":"h-full"} z-10 grow`,children:o})]})}],90163)},61866,t=>{"use strict";var e=t.i(28249),i=t.i(50483);let r=i.forwardRef(function({title:t,titleId:e,...r},s){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":e},r),t?i.createElement("title",{id:e},t):null,i.createElement("path",{fillRule:"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z",clipRule:"evenodd"}))});var s=t.i(89982),n=t.i(3456);let o=[{title:"County Elections",link:"https://www.utahcounty.gov/Dept/Clerk/elections/index.html",description:"Upcoming election dates, candidates, results, & voter info",color:"text-UC-orange-500",hovercolor:"border-UC-orange-500"},{title:"Property Info",link:"/property-info",description:"Lists of property resources including paying taxes, land use, records & more",color:"text-main-purple-300",hovercolor:"border-main-purple-300"},{title:"Marriage License",link:"https://www.utahcounty.gov/dept/clerk/marriage/marriagelicense.html",description:"Apply for a marriage license for use anywhere in Utah",color:"text-UC-yellow-500",hovercolor:"border-UC-yellow-500"},{title:"Mental Health",link:"/pdf/cmhr.pdf",description:"Find mental health resources and support services available in Utah County",color:"text-UC-blue-300",hovercolor:"border-UC-blue-300"},{title:"Sheriff's Office",link:"https://sheriff.utahcounty.gov/",description:"Complete overview of the Sheriff's services, Jail information, Tip a Cop & more",color:"text-main-yellow-200",hovercolor:"border-main-yellow-200"}],a=(t,i)=>(0,e.jsxs)("a",{href:t.link,className:"group/quick-link mt-6 flex max-h-[200px] min-w-[15rem] cursor-pointer flex-col justify-start border-gray-300/50 border-t bg-transparent md:min-w-full",onMouseDown:n.cancelClickAfterDrag,onClick:()=>{window.gtag("event","featured_resource_selected",{source:t.link,title:t.title})},children:[(0,e.jsx)("hr",{className:`-mt-[0.1rem] w-full origin-left scale-x-0 border-b ${t.hovercolor} transition duration-500 group-hover/quick-link:scale-x-100`}),(0,e.jsxs)("dl",{children:[(0,e.jsx)("dt",{className:`mt-4 mb-2 font-semibold text-xl ${t.color}`,children:t.title}),(0,e.jsx)("dd",{className:"text-base text-gray-300 leading-6 group-hover/quick-link:text-white",children:t.description})]})]},`${t.name}-${i}`);t.s(["default",0,function(){let[t,n]=(0,i.useState)(0),[l,u]=(0,i.useState)(0),h=(0,i.useRef)(null),[c,d]=(0,i.useState)(0);return(0,i.useEffect)(()=>{d(Math.floor(t/240))},[t,l]),(0,e.jsxs)("div",{className:"mb-24 flex h-full flex-col md:container",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2 pl-[2rem] font-thin text-white md:pl-0",children:[(0,e.jsx)(r,{className:"h-4 w-4"}),(0,e.jsx)("span",{className:"font-semibold",children:"Featured Resources"})]}),(0,e.jsx)("div",{className:"hidden grid-cols-3 gap-4 gap-x-12 gap-y-4 overflow-hidden rounded-sm bg-transparent md:grid lg:grid-cols-5",children:o.map(a)}),(0,e.jsxs)("div",{className:"w-full md:hidden",children:[(0,e.jsx)(s.default,{scrollRef:h,setScrollPosition:n,setMaxScrollPosition:u,className:"w-full snap-x snap-mandatory gap-8 pr-[calc(100vw-16rem)] pl-[2rem]",children:o.map(a)}),(0,e.jsx)("div",{className:"mt-12 flex w-full justify-center text-white md:hidden",children:(0,e.jsx)("div",{className:"flex gap-2 rounded-full bg-slate-700/80 p-2",children:o.map((t,i)=>(0,e.jsx)("div",{className:`h-2 w-2 rounded-full ${i===c?"bg-white":"bg-white/50"}`},i))})})]})]})}],61866)},55955,(t,e,i)=>{t.e,e.exports=function(){"use strict";var t="millisecond",e="second",i="minute",r="hour",s="week",n="month",o="quarter",a="year",l="date",u="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,c=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
6|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(t,e,i){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(i)+t},p="en",f={};f[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],i=t%100;return"["+t+(e[(i-20)%10]||e[i]||e[0])+"]"}};var m="$isDayjsObject",g=function(t){return t instanceof w||!(!t||!t[m])},v=function t(e,i,r){var s;if(!e)return p;if("string"==typeof e){var n=e.toLowerCase();f[n]&&(s=n),i&&(f[n]=i,s=n);var o=e.split("-");if(!s&&o.length>1)return t(o[0])}else{var a=e.name;f[a]=e,s=a}return!r&&s&&(p=s),s||!r&&p},y=function(t,e){if(g(t))return t.clone();var i="object"==typeof e?e:{};return i.date=t,i.args=arguments,new w(i)},x={s:d,z:function(t){var e=-t.utcOffset(),i=Math.abs(e);return(e<=0?"+":"-")+d(Math.floor(i/60),2,"0")+":"+d(i%60,2,"0")},m:function t(e,i){if(e.date()<i.date())return-t(i,e);var r=12*(i.year()-e.year())+(i.month()-e.month()),s=e.clone().add(r,n),o=i-s<0,a=e.clone().add(r+(o?-1:1),n);return+(-(r+(i-s)/(o?s-a:a-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(u){return({M:n,y:a,w:s,d:"day",D:l,h:r,m:i,s:e,ms:t,Q:o})[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};x.l=v,x.i=g,x.w=function(t,e){return y(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var w=function(){function d(t){this.$L=v(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[m]=!0}var p=d.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(h);if(r){var s=r[2]-1||0,n=(r[7]||"0").substring(0,3);return i?new Date(Date.UTC(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,n)):new Date(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,n)}}return new Date(e)}(t),this.init()},p.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},p.$utils=function(){return x},p.isValid=function(){return this.$d.toString()!==u},p.isSame=function(t,e){var i=y(t);return this.startOf(e)<=i&&i<=this.endOf(e)},p.isAfter=function(t,e){return y(t)<this.startOf(e)},p.isBefore=function(t,e){return this.endOf(e)<y(t)},p.$g=function(t,e,i){return x.u(t)?this[e]:this.set(i,t)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(t,o){var u=this,h=!!x.u(o)||o,c=x.p(t),d=function(t,e){var i=x.w(u.$u?Date.UTC(u.$y,e,t):new Date(u.$y,e,t),u);return h?i:i.endOf("day")},p=function(t,e){return x.w(u.toDate()[t].apply(u.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(e)),u)},f=this.$W,m=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(c){case a:return h?d(1,0):d(31,11);case n:return h?d(1,m):d(0,m+1);case s:var y=this.$locale().weekStart||0,w=(f<y?f+7:f)-y;return d(h?g-w:g+(6-w),m);case"day":case l:return p(v+"Hours",0);case r:return p(v+"Minutes",1);case i:return p(v+"Seconds",2);case e:return p(v+"Milliseconds",3);default:return this.clone()}},p.endOf=function(t){return this.startOf(t,!1)},p.$set=function(s,o){var u,h=x.p(s),c="set"+(this.$u?"UTC":""),d=((u={}).day=c+"Date",u[l]=c+"Date",u[n]=c+"Month",u[a]=c+"FullYear",u[r]=c+"Hours",u[i]=c+"Minutes",u[e]=c+"Seconds",u[t]=c+"Milliseconds",u)[h],p="day"===h?this.$D+(o-this.$W):o;if(h===n||h===a){var f=this.clone().set(l,1);f.$d[d](p),f.init(),this.$d=f.set(l,Math.min(this.$D,f.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},p.set=function(t,e){return this.clone().$set(t,e)},p.get=function(t){return this[x.p(t)]()},p.add=function(t,o){var l,u=this;t=Number(t);var h=x.p(o),c=function(e){var i=y(u);return x.w(i.date(i.date()+Math.round(e*t)),u)};if(h===n)return this.set(n,this.$M+t);if(h===a)return this.set(a,this.$y+t);if("day"===h)return c(1);if(h===s)return c(7);var d=((l={})[i]=6e4,l[r]=36e5,l[e]=1e3,l)[h]||1,p=this.$d.getTime()+t*d;return x.w(p,this)},p.subtract=function(t,e){return this.add(-1*t,e)},p.format=function(t){var e=this,i=this.$locale();if(!this.isValid())return i.invalidDate||u;var r=t||"YYYY-MM-DDTHH:mm:ssZ",s=x.z(this),n=this.$H,o=this.$m,a=this.$M,l=i.weekdays,h=i.months,d=i.meridiem,p=function(t,i,s,n){return t&&(t[i]||t(e,r))||s[i].slice(0,n)},f=function(t){return x.s(n%12||12,t,"0")}
6,m=d||function(t,e,i){var r=t<12?"AM":"PM";return i?r.toLowerCase():r};return r.replace(c,function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return x.s(e.$y,4,"0");case"M":return a+1;case"MM":return x.s(a+1,2,"0");case"MMM":return p(i.monthsShort,a,h,3);case"MMMM":return p(h,a);case"D":return e.$D;case"DD":return x.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return p(i.weekdaysMin,e.$W,l,2);case"ddd":return p(i.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(n);case"HH":return x.s(n,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(n,o,!0);case"A":return m(n,o,!1);case"m":return String(o);case"mm":return x.s(o,2,"0");case"s":return String(e.$s);case"ss":return x.s(e.$s,2,"0");case"SSS":return x.s(e.$ms,3,"0");case"Z":return s}return null}(t)||s.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(t,l,u){var h,c=this,d=x.p(l),p=y(t),f=(p.utcOffset()-this.utcOffset())*6e4,m=this-p,g=function(){return x.m(c,p)};switch(d){case a:h=g()/12;break;case n:h=g();break;case o:h=g()/3;break;case s:h=(m-f)/6048e5;break;case"day":h=(m-f)/864e5;break;case r:h=m/36e5;break;case i:h=m/6e4;break;case e:h=m/1e3;break;default:h=m}return u?h:x.a(h)},p.daysInMonth=function(){return this.endOf(n).$D},p.$locale=function(){return f[this.$L]},p.locale=function(t,e){if(!t)return this.$L;var i=this.clone(),r=v(t,e,!0);return r&&(i.$L=r),i},p.clone=function(){return x.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},d}(),b=w.prototype;return y.prototype=b,[["$ms",t],["$s",e],["$m",i],["$H",r],["$W","day"],["$M",n],["$y",a],["$D",l]].forEach(function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),y.extend=function(t,e){return t.$i||(t(e,w,y),t.$i=!0),y},y.locale=v,y.isDayjs=g,y.unix=function(t){return y(1e3*t)},y.en=f[p],y.Ls=f,y.p={},y}()},69336,t=>{"use strict";let e,i,r;var s,n,o,a=t.i(28249),l=t.i(67645),u=t.i(72039),h=t.i(55955);function c(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}t.i(39859);let d=t=>Array.isArray(t);function p(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}function f(t){return"string"==typeof t||Array.isArray(t)}function m(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function g(t,e,i,r){if("function"==typeof e){let[s,n]=m(r);e=e(void 0!==i?i:t.custom,s,n)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,n]=m(r);e=e(void 0!==i?i:t.custom,s,n)}return e}function v(t,e,i){let r=t.getProps();return g(r,e,void 0!==i?i:r.custom,t)}let y=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],x=["initial",...y],w=t=>t;function b(t){let e;return()=>(void 0===e&&(e=t()),e)}let A=b(()=>void 0!==window.ScrollTimeline);class T{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>A()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class P extends T{then(t,e){return Promise.all(this.animations).then(t).cat
6ch(e)}}let S=t=>1e3*t;function M(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}function k(t,e){t.timeline=e,t.onfinish=null}let j=t=>Array.isArray(t)&&"number"==typeof t[0],C,E=(i=b(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>{var t;return null!=(t=C)?t:i()}),D=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r},V=(t,e,i=10)=>{let r="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)r+=t(D(0,s-1,e))+", ";return`linear(${r.substring(0,r.length-2)})`},L=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,R={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:L([0,.65,.55,1]),circOut:L([.55,0,1,.45]),backIn:L([.31,.01,.66,-.59]),backOut:L([.33,1.53,.69,.99])};function $(t,e){return t?t[e]||t.default||t:void 0}function F(t){return"function"==typeof t}let N=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],O=new Set(N),B=new Set(["width","height","top","left","right","bottom",...N]),U=t=>d(t)?t[t.length-1]||0:t,I=["read","resolveKeyframes","update","preRender","render","postRender"];function W(t,e){let i=!1,r=!0,s={delta:0,timestamp:0,isProcessing:!1},n=()=>i=!0,o=I.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,r=!1,s=!1,n=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){n.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,s=!1,o=!1)=>{let a=o&&r?e:i;return s&&n.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),n.delete(t)},process:t=>{if(o=t,r){s=!0;return}r=!0,[e,i]=[i,e],e.forEach(a),e.clear(),r=!1,s&&(s=!1,l.process(t))}};return l}(n),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:c,postRender:d}=o,p=()=>{let n=performance.now();i=!1,s.delta=r?1e3/60:Math.max(Math.min(n-s.timestamp,40),1),s.timestamp=n,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),h.process(s),c.process(s),d.process(s),s.isProcessing=!1,i&&e&&(r=!1,t(p))};return{schedule:I.reduce((e,n)=>{let a=o[n];return e[n]=(e,n=!1,o=!1)=>(!i&&(i=!0,r=!0,s.isProcessing||t(p)),a.schedule(e,n,o)),e},{}),cancel:t=>{for(let e=0;e<I.length;e++)o[I[e]].cancel(t)},state:s,steps:o}}let{schedule:Y,cancel:z,state:H,steps:_}=W("u">typeof requestAnimationFrame?requestAnimationFrame:w,!0);function X(){e=void 0}let K={now:()=>(void 0===e&&K.set(H.isProcessing?H.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(X)}};function q(t,e){-1===t.indexOf(e)&&t.push(e)}function G(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class Z{constructor(){this.subscriptions=[]}add(t){return q(this.subscriptions,t),()=>G(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,i);else for(let s=0;s<r;s++){let r=this.subscriptions[s];r&&r(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class J{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=K.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=K.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Z);let i=this.events[t].add(e);return"change"===t?()=>{i(),Y.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return r&&r.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=K.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}
6function Q(t,e){return new J(t,e)}let tt=t=>!!(t&&t.getVelocity);function te(t,e){let i=t.getValue("willChange");if(tt(i)&&i.add)return i.add(e)}let ti=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tr="data-"+ti("framerAppearId"),ts=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tn(t,e,i,r){return t===e&&i===r?w:s=>0===s||1===s?s:ts(function(t,e,i,r,s){let n,o,a=0;do(n=ts(o=e+(i-e)/2,r,s)-t)>0?i=o:e=o;while(Math.abs(n)>1e-7&&++a<12)return o}(s,0,1,t,i),e,r)}let to=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ta=t=>e=>1-t(1-e),tl=tn(.33,1.53,.69,.99),tu=ta(tl),th=to(tu),tc=t=>(t*=2)<1?.5*tu(t):.5*(2-Math.pow(2,-10*(t-1))),td=t=>1-Math.sin(Math.acos(t)),tp=ta(td),tf=to(td),tm=(t,e,i)=>i>e?e:i<t?t:i,tg={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},tv={...tg,transform:t=>tm(0,1,t)},ty={...tg,default:1},tx=t=>Math.round(1e5*t)/1e5,tw=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tA=(t,e)=>i=>!!("string"==typeof i&&tb.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tT=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[s,n,o,a]=r.match(tw);return{[t]:parseFloat(s),[e]:parseFloat(n),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tP={...tg,transform:t=>Math.round(tm(0,255,t))},tS={test:tA("rgb","red"),parse:tT("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+tP.transform(t)+", "+tP.transform(e)+", "+tP.transform(i)+", "+tx(tv.transform(r))+")"},tM={test:tA("#"),parse:function(t){let e="",i="",r="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,r+=r,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}},transform:tS.transform},tk=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tj=tk("deg"),tC=tk("%"),tE=tk("px"),tD=tk("vh"),tV=tk("vw"),tL={...tC,parse:t=>tC.parse(t)/100,transform:t=>tC.transform(100*t)},tR={test:tA("hsl","hue"),parse:tT("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+tC.transform(tx(e))+", "+tC.transform(tx(i))+", "+tx(tv.transform(r))+")"},t$={test:t=>tS.test(t)||tM.test(t)||tR.test(t),parse:t=>tS.test(t)?tS.parse(t):tR.test(t)?tR.parse(t):tM.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tS.transform(t):tR.transform(t)},tF=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tN="number",tO="color",tB=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function tU(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},s=[],n=0,o=e.replace(tB,t=>(t$.test(t)?(r.color.push(n),s.push(tO),i.push(t$.parse(t))):t.startsWith("var(")?(r.var.push(n),s.push("var"),i.push(t)):(r.number.push(n),s.push(tN),i.push(parseFloat(t))),++n,"${}")).split("${}");return{values:i,split:o,indexes:r,types:s}}function tI(t){return tU(t).values}function tW(t){let{split:e,types:i}=tU(t),r=e.length;return t=>{let s="";for(let n=0;n<r;n++)if(s+=e[n],void 0!==t[n]){let e=i[n];e===tN?s+=tx(t[n]):e===tO?s+=t$.transform(t[n]):s+=t[n]}return s}}let tY=t=>"number"==typeof t?0:t,tz={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(tw))?void 0:e.length)||0)+((null==(i=t.match(tF))?void 0:i.length)||0)>0},parse:tI,createTransformer:tW,getAnimatableNone:function(t){let e=tI(t);return tW(t)(e.map(tY))}},tH=new Set(["brightness","contrast","saturate","opacity"]);function t_(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(tw)||[];if(!r)return t;let s=i.replace(r,""),n=+!!tH.has(e);return r!==i&&(n*=100),e+"("+n+s+")"}let tX=/\b([a-z-]*)\(.*?\)/gu,tK={...tz,getAnimatableNone:t=>{let e=t.match(tX);return e?e.map(t_).join(" "):t}},tq={...tg,transform:Math.round},tG={borderWidth:tE,borderTopWidth:tE,borderRightWidth:tE,borderBottomWidth:tE,borderLeftWidth:tE,borderRadius:tE,radius:tE,borderTopLeftRadius:tE,borderTopRightRadius:tE,borderBottomRightRadius:tE,borderBottomLeftRadius:tE,width:tE,maxWidth:tE,height:tE,maxHeight:tE,top:tE,right:tE,bottom:tE,left:tE,padding:tE,paddingTop:tE,paddingRight:tE,paddingBottom:tE,paddingLeft:tE,margin:tE,marginTop:tE,marginRight:tE,marginBottom:tE,marginLeft:tE,backgroundPositionX:tE,backgroundPositionY:tE,rotate:tj,rotateX:tj,rotateY:tj,rotateZ:tj,scale:ty,scaleX:ty,scaleY:ty,scaleZ:ty,skew:tj,skewX:tj,skewY:tj,distance:tE,translateX:tE,translateY:tE,translateZ:tE,x:tE,y:tE,z:tE,perspective:tE,transformPerspective:tE,opacity:tv,originX:tL,originY:tL,originZ:tE,zIndex:tq,size:tE,fillOpacity:tv,strokeOpacity:tv,numOctaves:tq},tZ={...tG,color:t$,backgroundColor:t$,outlineColor:t$,fill:t$,stroke:t$,borderColor:t$,borderTopColor:t$,borderRightColor:t$,borderBottomColor:t$,borderLeftColor:t$,filter:tK,WebkitFilter:tK},tJ=t=>tZ[t];function tQ(t,e){let i=tJ(t);return i!==tK&&(i=tz),i.getAnimatableNone?i.getAnimatableNone(e):void 0}
6let t0=new Set(["auto","none","0"]),t1=t=>t===tg||t===tE,t2=(t,e)=>parseFloat(t.split(", ")[e]),t5=(t,e)=>(i,{transform:r})=>{if("none"===r||!r)return 0;let s=r.match(/^matrix3d\((.+)\)$/u);if(s)return t2(s[1],e);{let e=r.match(/^matrix\((.+)\)$/u);return e?t2(e[1],t):0}},t3=new Set(["x","y","z"]),t4=N.filter(t=>!t3.has(t)),t6={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:t5(4,13),y:t5(5,14)};t6.translateX=t6.x,t6.translateY=t6.y;let t9=new Set,t7=!1,t8=!1;function et(){if(t8){let t=Array.from(t9).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,r=(e=[],t4.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),e);r.length&&(i.set(t,r),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var r;null==(r=t.getValue(e))||r.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}t8=!1,t7=!1,t9.forEach(t=>t.complete()),t9.clear()}function ee(){t9.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(t8=!0)})}class ei{constructor(t,e,i,r,s,n=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=s,this.isAsync=n}scheduleResolve(){this.isScheduled=!0,this.isAsync?(t9.add(this),t7||(t7=!0,Y.read(ee),Y.resolveKeyframes(et))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;for(let s=0;s<t.length;s++)if(null===t[s])if(0===s){let s=null==r?void 0:r.get(),n=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let r=i.readValue(e,n);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=n),r&&void 0===s&&r.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),t9.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,t9.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let er=t=>e=>"string"==typeof e&&e.startsWith(t),es=er("--"),en=er("var(--"),eo=t=>!!en(t)&&ea.test(t.split("/*")[0].trim()),ea=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,el=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eu=t=>e=>e.test(t),eh=[tg,tE,tC,tj,tV,tD,{test:t=>"auto"===t,parse:t=>t}],ec=t=>eh.find(eu(t));class ed extends ei{constructor(t,e,i,r,s){super(t,e,i,r,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 r=t[i];if("string"==typeof r&&eo(r=r.trim())){let s=function t(e,i,r=1){w(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[s,n]=function(t){let e=el.exec(t);if(!e)return[,];let[,i,r,s]=e;return[`--${null!=i?i:r}`,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 eo(n)?t(n,i,r+1):n}(r,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!B.has(i)||2!==t.length)return;let[r,s]=t,n=ec(r),o=ec(s);if(n!==o)if(t1(n)&&t1(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(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 r,s=0;for(;s<t.length&&!r;){let e=t[s];"string"==typeof e&&!t0.has(e)&&tU(e).values.length&&(r=t[s]),s++}if(r&&i)for(let s of e)t[s]=tQ(i,r)}(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=t6[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let r=e[e.length-1];void 0!==r&&t.getValue(i,r).jump(r,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let s=e.getValue(i);s&&s.jump(this.measuredOrigin,!1);let n=r.length-1,o=r[n];r[n]=t6[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
6h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let ep=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tz.test(t)||"0"===t)&&!t.startsWith("url(")),ef=t=>null!==t;function em(t,{repeat:e,repeatType:i="loop"},r){let s=t.filter(ef),n=e&&"loop"!==i&&e%2==1?0:s.length-1;return n&&void 0!==r?r:s[n]}class eg{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:n="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=K.now(),this.options={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:s,repeatType:n,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(ee(),et()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=K.now(),this.hasAttemptedResolve=!0;let{name:i,type:r,velocity:s,delay:n,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,r){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let n=t[t.length-1],o=ep(s,e),a=ep(n,e);return w(o===a,`You are trying to animate ${e} from "${s}" to "${n}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${n} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||F(i))&&r)}(t,i,r,s))if(n)this.options.duration=0;else{a&&a(em(t,this.options,e)),o&&o(),this.resolveFinishedPromise();return}let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}let ev=(t,e,i)=>t+(e-t)*i;function ey(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function ex(t,e){return i=>i>0?e:t}let ew=(t,e,i)=>{let r=t*t,s=i*(e*e-r)+r;return s<0?0:Math.sqrt(s)},eb=[tM,tS,tR];function eA(t){let e=eb.find(e=>e.test(t));if(w(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tR&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let s=0,n=0,o=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,a=2*i-r;s=ey(a,r,t+1/3),n=ey(a,r,t),o=ey(a,r,t-1/3)}else s=n=o=i;return{red:Math.round(255*s),green:Math.round(255*n),blue:Math.round(255*o),alpha:r}}(i)),i}let eT=(t,e)=>{let i=eA(t),r=eA(e);if(!i||!r)return ex(t,e);let s={...i};return t=>(s.red=ew(i.red,r.red,t),s.green=ew(i.green,r.green,t),s.blue=ew(i.blue,r.blue,t),s.alpha=ev(i.alpha,r.alpha,t),tS.transform(s))},eP=(t,e)=>i=>e(t(i)),eS=(...t)=>t.reduce(eP),eM=new Set(["none","hidden"]);function ek(t,e){return i=>ev(t,e,i)}function ej(t){return"number"==typeof t?ek:"string"==typeof t?eo(t)?ex:t$.test(t)?eT:eD:Array.isArray(t)?eC:"object"==typeof t?t$.test(t)?eT:eE:ex}function eC(t,e){let i=[...t],r=i.length,s=t.map((t,i)=>ej(t)(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=s[e](t);return i}}function eE(t,e){let i={...t,...e},r={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(r[s]=ej(t[s])(t[s],e[s]));return t=>{for(let e in r)i[e]=r[e](t);return i}}let eD=(t,e)=>{let i=tz.createTransformer(e),r=tU(t),s=tU(e);if(!(r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length))return w(!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.`),ex(t,e);if(eM.has(t)&&!s.values.length||eM.has(e)&&!r.values.length)return eM.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return eS(eC(function(t,e){var i;let r=[],s={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let o=e.types[n],a=t.indexes[o][s[o]],l=null!=(i=t.values[a])?i:0;r[n]=l,s[o]++}return r}(r,s),s.values),i)};function eV(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?ev(t,e,i):ej(t)(t,e)}function eL(t,e,i){var r,s;let n=Math.max(e-5,0);return r=i-t(n),(s=e-n)?1e3/s*r:0}let eR=.01,e$=2,eF=.005,eN=.5;function eO(t,e){return t*Math.sqrt(1-e*e)}let eB=["duration","bounce"],eU=["stiffness","damping","mass"];function eI(t,e){return e.some(e=>void 0!==t[e])}function eW(t=.3,e=.3){let i,r="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:s,restDelta:n}=r,o=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!eI(t,eU)&&eI(t,eB))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),r=i*i,s=2*tm(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:1,stiffness:r,damping:s}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:r=1}){let s,n;w(t<=S(10),"Spring duration must be 10 seconds or less");let o=1-e;o=tm(.05,1,o),t=tm(.01,10,t/1e3),o<1?(s=e=>{let r=e*o,s=r*t;return .001-(r-i)/eO(e,o)*Math.exp(-s)},n=e=>{let r=e*o*t,n=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-r),l=eO(Math.pow(e,2),o);return(r*i+i-n)*a*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),n=e=>t*t*(i-e)*Math.exp(-e*t));
6let a=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(s,n,5/t);if(t=S(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-((r.velocity||0)/1e3)}),m=p||0,g=h/(2*Math.sqrt(u*c)),v=a-o,y=Math.sqrt(u/c)/1e3,x=5>Math.abs(v);if(s||(s=x?eR:e$),n||(n=x?eF:eN),g<1){let t=eO(y,g);i=e=>a-Math.exp(-g*y*e)*((m+g*y*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-y*t)*(v+(m+y*v)*t);else{let t=y*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*y*e),r=Math.min(t*e,300);return a-i*((m+g*y*v)*Math.sinh(r)+t*v*Math.cosh(r))/t}}let b={calculatedDuration:f&&d||null,next:t=>{let e=i(t);if(f)l.done=t>=d;else{let r=0;g<1&&(r=0===t?S(m):eL(i,t,e));let o=Math.abs(a-e)<=n;l.done=Math.abs(r)<=s&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(M(b),2e4),e=V(e=>b.next(t*e).value,t,30);return t+"ms "+e}};return b}function eY({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:n=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=t[0],f={done:!1,value:p},m=i*e,g=p+m,v=void 0===o?g:o(g);v!==g&&(m=v-p);let y=t=>-m*Math.exp(-t/r),x=t=>v+y(t),w=t=>{let e=y(t),i=x(t);f.done=Math.abs(e)<=u,f.value=f.done?v:i},b=t=>{let e;if(e=f.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=eW({keyframes:[f.value,(i=f.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:eL(x,t,f.value),damping:s,stiffness:n,restDelta:u,restSpeed:h})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,w(t),b(t)),void 0!==c&&t>=c)?d.next(t-c):(e||w(t),f)}}}let ez=tn(.42,0,1,1),eH=tn(0,0,.58,1),e_=tn(.42,0,.58,1),eX={linear:w,easeIn:ez,easeInOut:e_,easeOut:eH,circIn:td,circInOut:tf,circOut:tp,backIn:tu,backInOut:th,backOut:tl,anticipate:tc},eK=t=>{if(j(t)){w(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,r,s]=t;return tn(e,i,r,s)}return"string"==typeof t?(w(void 0!==eX[t],`Invalid easing type '${t}'`),eX[t]):t};function eq({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){var s;let n,o=Array.isArray(r)&&"number"!=typeof r[0]?r.map(eK):eK(r),a={done:!1,value:e[0]},l=function(t,e,{clamp:i=!0,ease:r,mixer:s}={}){let n=t.length;if(w(n===e.length,"Both input and output ranges must be the same length"),1===n)return()=>e[0];if(2===n&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[n-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let r=[],s=i||eV,n=t.length-1;for(let i=0;i<n;i++){let n=s(t[i],t[i+1]);e&&(n=eS(Array.isArray(e)?e[i]||w:e,n)),r.push(n)}return r}(e,r,s),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let r=0;if(l>1)for(;r<t.length-2&&!(i<t[r+1]);r++);let s=D(t[r],t[r+1],i);return a[r](s)};return i?e=>u(tm(t[0],t[n-1],e)):u}((s=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let s=D(0,e,r);t.push(ev(i,1,s))}}(n=[0],e.length-1),n),s.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||e_).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}let eG=t=>{let e=({timestamp:e})=>t(e);return{start:()=>Y.update(e,!0),stop:()=>z(e),now:()=>H.isProcessing?H.timestamp:K.now()}},eZ={decay:eY,inertia:eY,tween:eq,keyframes:eq,spring:eW},eJ=t=>t/100;class eQ extends eg{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};const{name:e,motionValue:i,element:r,keyframes:s}=this.options,n=(null==r?void 0:r.KeyframeResolver)||ei,o=(t,e)=>this.onKeyframesResolved(t,e);this.resolver=new n(s,o,e,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:r="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:
6o,velocity:a=0}=this.options,l=F(r)?r:eZ[r]||eq;l!==eq&&"number"!=typeof t[0]&&(e=eS(eJ,eV(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=M(u));let{calculatedDuration:h}=u,c=h+n;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(s+1)-n}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:r,generator:s,mirroredGenerator:n,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return s.next(0);let{delay:c,repeat:d,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-c*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=s;if(d){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,f&&(i-=f/h)):"mirror"===p&&(x=n)),y=tm(0,1,i)*h}let w=v?{done:!1,value:a[0]}:x.next(y);o&&(w.value=o(w.value));let{done:b}=w;v||null===l||(b=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let A=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return A&&void 0!==r&&(w.value=em(a,this.options,r)),m&&m(w.value),A&&this.finish(),w}get duration(){let{resolved:t}=this;return t?t.calculatedDuration/1e3:0}get time(){return this.currentTime/1e3}set time(t){t=S(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=eG,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(t=this.currentTime)?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let e0=new Set(["opacity","clipPath","filter","transform"]),e1=b(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),e2={anticipate:tc,backInOut:th,circInOut:tf};class e5 extends eg{constructor(t){super(t);const{name:e,motionValue:i,element:r,keyframes:s}=this.options;this.resolver=new ed(s,(t,e)=>this.onKeyframesResolved(t,e),e,i,r),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:r=300,times:s,ease:n,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof n&&E()&&n in e2&&(n=e2[n]),F((i=this.options).type)||"spring"===i.type||!function t(e){return!!("function"==typeof e&&E()||!e||"string"==typeof e&&(e in R||E())||j(e)||Array.isArray(e)&&e.every(t))}(i.ease)){let{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,h=function(t,e){let i=new eQ({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:t[0]},s=[],n=0;for(;!r.done&&n<2e4;)s.push((r=i.sample(n)).value),n+=10;return{times:void 0,keyframes:s,duration:n-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),r=h.duration,s=h.times,n=h.ease,o="keyframes"}
6let h=function(t,e,i,{delay:r=0,duration:s=300,repeat:n=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e,i){if(e)return"function"==typeof e&&E()?V(e,i):j(e)?L(e):Array.isArray(e)?e.map(e=>t(e,i)||R.easeOut):R[e]}(a,s);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:r,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:n+1,direction:"reverse"===o?"alternate":"normal"})}(a.owner.current,l,t,{...this.options,duration:r,times:s,ease:n});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(k(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;a.set(em(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:s,type:o,ease:n,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return e/1e3}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(e.currentTime||0)/1e3}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=S(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return w;let{animation:i}=e;k(i,t)}else this.pendingTimeline=t;return w}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:r,type:s,ease:n,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new eQ({...u,keyframes:i,duration:r,type:s,ease:n,times:o,isGenerator:!0}),c=S(this.time);t.setWithVelocity(h.sample(c-10).value,h.sample(c).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:r,repeatType:s,damping:n,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return e1()&&i&&e0.has(i)&&!a&&!l&&!r&&"mirror"!==s&&0!==n&&"inertia"!==o}}let e3={type:"spring",stiffness:500,damping:25,restSpeed:10},e4={type:"keyframes",duration:.8},e6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e9=(t,e,i,r={},s,n)=>o=>{let a=$(r,t)||{},l=a.delay||r.delay||0,{elapsed:u=0}=r;u-=S(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:n?void 0:s};!function({when:t,delay:e,delayChildren:i,staggerChildren:r,staggerDirection:s,repeat:n,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(h={...h,...((t,{keyframes:e})=>e.length>2?e4:O.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:e3:e6)(t,h)}),h.duration&&(h.duration=S(h.duration)),h.repeatDelay&&(h.repeatDelay=S(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0===h.delay&&(c=!0)),c&&!n&&void 0!==e.get()){let t=em(h.keyframes,a);if(void 0!==t)return Y.update(()=>{h.onUpdate(t),h.onComplete()}),new P([])}return!n&&e5.supports(h)?new e5(h):new eQ(h)};function e7(t,e,{delay:i=0,transitionOverride:r,type:s}={}){var n;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;r&&(o=r);let u=[],h=s&&t.animationState&&t.animationState.getState()[s];for(let e in l){let r=t.getValue(e,null!=(n=t.latestValues[e])?n:null),s=l[e];
6if(void 0===s||h&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(h,e))continue;let a={delay:i,...$(o||{},e)},c=!1;if(window.MotionHandoffAnimation){let i=t.props[tr];if(i){let t=window.MotionHandoffAnimation(i,e,Y);null!==t&&(a.startTime=t,c=!0)}}te(t,e),r.start(e9(e,r,s,t.shouldReduceMotion&&B.has(e)?{type:!1}:a,t,c));let d=r.animation;d&&u.push(d)}return a&&Promise.all(u).then(()=>{Y.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:r={},...s}=v(t,e)||{};for(let e in s={...s,...i}){let i=U(s[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,Q(i))}}(t,a)})}),u}function e8(t,e,i={}){var r;let s=v(t,e,"exit"===i.type?null==(r=t.presenceContext)?void 0:r.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let o=s?()=>Promise.all(e7(t,s,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=n;return function(t,e,i=0,r=0,s=1,n){let o=[],a=(t.variantChildren.size-1)*r,l=1===s?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(it).forEach((t,r)=>{t.notify("AnimationStart",e),o.push(e8(t,e,{...n,delay:i+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,s+r,o,a,i)}:()=>Promise.resolve(),{when:l}=n;if(!l)return Promise.all([o(),a(i.delay)]);{let[t,e]="beforeChildren"===l?[o,a]:[a,o];return t().then(()=>e())}}function it(t,e){return t.sortNodePosition(e)}let ie=x.length,ii=[...y].reverse(),ir=y.length;function is(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function io(){return{animate:is(!0),whileInView:is(),whileHover:is(),whileTap:is(),whileDrag:is(),whileFocus:is(),exit:is()}}class ia{constructor(t){this.isMounted=!1,this.node=t}update(){}}let il=0,iu={x:!1,y:!1},ih=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ic(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}function id(t){return{point:{x:t.pageX,y:t.pageY}}}function ip(t,e,i,r){return ic(t,e,t=>ih(t)&&i(t,id(t)),r)}let im=(t,e)=>Math.abs(t-e);class ig{constructor(t,e,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=ix(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(im(t.x,e.x)**2+im(t.y,e.y)**2)>=3);if(!r&&!s)return;let{point:n}=i,{timestamp:o}=H;this.history.push({...n,timestamp:o});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iv(e,this.transformPagePoint),Y.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=ix("pointercancel"===t.type?this.lastMoveEventInfo:iv(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,n),r&&r(t,n)},!ih(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.contextWindow=r||window;const n=iv(id(t),this.transformPagePoint),{point:o}=n,{timestamp:a}=H;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,ix(n,this.history)),this.removeListeners=eS(ip(this.contextWindow,"pointermove",this.handlePointerMove),ip(this.contextWindow,"pointerup",this.handlePointerUp),ip(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),z(this.updatePoint)}}function iv(t,e){return e?{point:e(t.point)}:t}function iy(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ix({point:t},e){return{point:t,delta:iy(t,iw(e)),offset:iy(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,r=iw(t);for(;e>=0&&(i=t[e],!(r.timestamp-i.timestamp>S(.1)));)e--;if(!i)return{x:0,y:0};let s=(r.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};let n={x:(r.x-i.x)/s,y:(r.y-i.y)/s}
6;return n.x===1/0&&(n.x=0),n.y===1/0&&(n.y=0),n}(e)}}function iw(t){return t[t.length-1]}function ib(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function iA(t){return t.max-t.min}function iT(t,e,i,r=.5){t.origin=r,t.originPoint=ev(e.min,e.max,t.origin),t.scale=iA(i)/iA(e),t.translate=ev(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 iP(t,e,i,r){iT(t.x,e.x,i.x,r?r.originX:void 0),iT(t.y,e.y,i.y,r?r.originY:void 0)}function iS(t,e,i){t.min=i.min+e.min,t.max=t.min+iA(e)}function iM(t,e,i){t.min=e.min-i.min,t.max=t.min+iA(e)}function ik(t,e,i){iM(t.x,e.x,i.x),iM(t.y,e.y,i.y)}function ij(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 iC(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function iE(t,e,i){return{min:iD(t,e),max:iD(t,i)}}function iD(t,e){return"number"==typeof t?t:t[e]||0}let iV=()=>({translate:0,scale:1,origin:0,originPoint:0}),iL=()=>({x:iV(),y:iV()}),iR=()=>({min:0,max:0}),i$=()=>({x:iR(),y:iR()});function iF(t){return[t("x"),t("y")]}function iN({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function iO(t){return void 0===t||1===t}function iB({scale:t,scaleX:e,scaleY:i}){return!iO(t)||!iO(e)||!iO(i)}function iU(t){return iB(t)||iI(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iI(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function iW(t,e,i,r,s){return void 0!==s&&(t=r+s*(t-r)),r+i*(t-r)+e}function iY(t,e=0,i=1,r,s){t.min=iW(t.min,e,i,r,s),t.max=iW(t.max,e,i,r,s)}function iz(t,{x:e,y:i}){iY(t.x,e.translate,e.scale,e.originPoint),iY(t.y,i.translate,i.scale,i.originPoint)}function iH(t,e){t.min=t.min+e,t.max=t.max+e}function i_(t,e,i,r,s=.5){let n=ev(t.min,t.max,s);iY(t,e,i,n,r)}function iX(t,e){i_(t.x,e.x,e.scaleX,e.scale,e.originX),i_(t.y,e.y,e.scaleY,e.scale,e.originY)}function iK(t,e){return iN(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let iq=({current:t})=>t?t.ownerDocument.defaultView:null,iG=new WeakMap;class iZ{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=i$(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let r=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(id(t).point)},s=(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:s}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(iu[t])return null;else return iu[t]=!0,()=>{iu[t]=!1};return iu.x||iu.y?null:(iu.x=iu.y=!0,()=>{iu.x=iu.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iF(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tC.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=iA(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&Y.postRender(()=>s(t,e)),te(this.visualElement,"transform");let{animationState:n}=this.visualElement;n&&n.setActive("whileDrag",!0)},n=(t,e)=>{let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:s,onDrag:n}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),n&&n(t,e)},o=(t,e)=>this.stop(t,e),a=()=>iF(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new ig(t,{onSessionStart:r,onStart:s,onMove:n,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:iq(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:s}=this.getProps();s&&Y.postRender(()=>s(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!iJ(t,r,this.currentDirection))return;let s=this.getAxisMotionValue(t),n=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(n=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?ev(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?ev(i,t,r.max):Math.min(t,i)),t}(n,this.constraints[t],this.elastic[t])),s.set(n)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,s=this.constraints;e&&ib(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:i,bottom:r,right:s}){return{x:ij(t.x,i,s),y:ij(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iE(t,"left","right"),y:iE(t,"top","bottom")}}(i),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&iF(t=>{var e,i;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=r.layoutBox[t],i=this.constraints[t],s={},void 0!==i.min&&(s.min=i.min-e.min),void 0!==i.max&&(s.max=i.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!ib(e))return!1;let r=e.current;w(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;
6let n=function(t,e,i){let r=iK(t,i),{scroll:s}=e;return s&&(iH(r.x,s.offset.x),iH(r.y,s.offset.y)),r}(r,s.root,this.visualElement.getTransformPagePoint()),o=(t=s.layout.layoutBox,{x:iC(t.x,n.x),y:iC(t.y,n.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=iN(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:s,dragSnapToOrigin:n,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iF(o=>{if(!iJ(o,e,this.currentDirection))return;let l=a&&a[o]||{};n&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return te(this.visualElement,t),i.start(e9(t,i,0,e,this.visualElement,!1))}stopAnimation(){iF(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iF(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iF(e=>{let{drag:i}=this.getProps();if(!iJ(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,s=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:n}=r.layout.layoutBox[e];s.set(t[e]-ev(i,n,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!ib(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};iF(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let n,o,a,l=e.get();r[t]=(i={min:l,max:l},s=this.constraints[t],n=.5,o=iA(i),(a=iA(s))>o?n=D(s.min,s.max-o,i.min):o>a&&(n=D(i.min,i.max-a,s.min)),tm(0,1,n))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iF(e=>{if(!iJ(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:n}=this.constraints[e];i.set(ev(s,n,r[e]))})}addListeners(){if(!this.visualElement.current)return;iG.set(this.visualElement,this);let t=ip(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();ib(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Y.read(e);let s=ic(window,"resize",()=>this.scalePositionWithinConstraints()),n=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iF(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{s(),t(),r(),n&&n()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:n=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:s,dragElastic:n,dragMomentum:o}}}function iJ(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let iQ=t=>(e,i)=>{t&&Y.postRender(()=>t(e,i))};var i0=t.i(50483);let i1=(0,i0.createContext)(null),i2=(0,i0.createContext)({}),i5=(0,i0.createContext)({}),i3={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function i4(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let i6={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tE.test(t))return t;else t=parseFloat(t);let i=i4(t,e.target.x),r=i4(t,e.target.y);return`${i}% ${r}%`}},i9={},{schedule:i7,cancel:i8}=W(queueMicrotask,!1);class rt extends i0.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:s}=t;
6Object.assign(i9,ri),s&&(e.group&&e.group.add(s),i&&i.register&&r&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),i3.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:s}=this.props,n=i.projection;return n&&(n.isPresent=s,r||t.layoutDependency!==e||void 0===e?n.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?n.promote():n.relegate()||Y.postRender(()=>{let t=n.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),i7.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function re(t){let[e,i]=function(t=!0){let e=(0,i0.useContext)(i1);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:s}=e,n=(0,i0.useId)();(0,i0.useEffect)(()=>{t&&s(n)},[t]);let o=(0,i0.useCallback)(()=>t&&r&&r(n),[n,r,t]);return!i&&r?[!1,o]:[!0]}(),r=(0,i0.useContext)(i2);return(0,a.jsx)(rt,{...t,layoutGroup:r,switchLayoutGroup:(0,i0.useContext)(i5),isPresent:e,safeToRemove:i})}let ri={borderRadius:{...i6,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:i6,borderTopRightRadius:i6,borderBottomLeftRadius:i6,borderBottomRightRadius:i6,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=tz.parse(t);if(r.length>5)return t;let s=tz.createTransformer(t),n=+("number"!=typeof r[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+n]/=o,r[1+n]/=a;let l=ev(o,a,.5);return"number"==typeof r[2+n]&&(r[2+n]/=l),"number"==typeof r[3+n]&&(r[3+n]/=l),s(r)}}},rr=(t,e)=>t.depth-e.depth;class rs{constructor(){this.children=[],this.isDirty=!1}add(t){q(this.children,t),this.isDirty=!0}remove(t){G(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rr),this.isDirty=!1,this.children.forEach(t)}}function rn(t){let e=tt(t)?t.get():t;return e&&"object"==typeof e&&e.mix&&e.toValue?e.toValue():e}let ro=["TopLeft","TopRight","BottomLeft","BottomRight"],ra=ro.length,rl=t=>"string"==typeof t?parseFloat(t):t,ru=t=>"number"==typeof t||tE.test(t);function rh(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rc=rp(0,.5,tp),rd=rp(.5,.95,w);function rp(t,e,i){return r=>r<t?0:r>e?1:i(D(t,e,r))}function rf(t,e){t.min=e.min,t.max=e.max}function rm(t,e){rf(t.x,e.x),rf(t.y,e.y)}function rg(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rv(t,e,i,r,s){return t-=e,t=r+1/i*(t-r),void 0!==s&&(t=r+1/s*(t-r)),t}function ry(t,e,[i,r,s],n,o){!function(t,e=0,i=1,r=.5,s,n=t,o=t){if(tC.test(e)&&(e=parseFloat(e),e=ev(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=ev(n.min,n.max,r);t===n&&(a-=e),t.min=rv(t.min,e,i,a,s),t.max=rv(t.max,e,i,a,s)}(t,e[i],e[r],e[s],e.scale,n,o)}let rx=["x","scaleX","originX"],rw=["y","scaleY","originY"];function rb(t,e,i,r){ry(t.x,e,rx,i?i.x:void 0,r?r.x:void 0),ry(t.y,e,rw,i?i.y:void 0,r?r.y:void 0)}function rA(t){return 0===t.translate&&1===t.scale}function rT(t){return rA(t.x)&&rA(t.y)}function rP(t,e){return t.min===e.min&&t.max===e.max}function rS(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rM(t,e){return rS(t.x,e.x)&&rS(t.y,e.y)}function rk(t){return iA(t.x)/iA(t.y)}function rj(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rC{constructor(){this.members=[]}add(t){q(this.members,t),t.scheduleRender()}remove(t){if(G(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&i.hide()}}
6exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rE={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},rD="u">typeof window&&void 0!==window.MotionDebug,rV=["","X","Y","Z"],rL={visibility:"hidden"},rR=0;function r$(t,e,i,r){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),r&&(r[t]=0))}function rF({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(t={},i=null==e?void 0:e()){this.id=rR++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rD&&(rE.totalNodes=rE.resolvedTargetDeltas=rE.recalculatedProjection=0),this.nodes.forEach(rB),this.nodes.forEach(r_),this.nodes.forEach(rX),this.nodes.forEach(rU),rD&&window.MotionDebug.record(rE)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rs)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new Z),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(s||r)&&(this.isLayoutDirty=!0),t){let i,r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{let t,e;this.root.updateBlockedByResize=!0,i&&i(),t=K.now(),e=({timestamp:i})=>{let s=i-t;s>=250&&(z(e),r(s-250))},Y.read(e,!0),i=()=>z(e),i3.hasAnimatedSinceResize&&(i3.hasAnimatedSinceResize=!1,this.nodes.forEach(rH))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&n&&(r||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||n.getDefaultTransition()||rQ,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=n.getProps(),l=!this.targetLayout||!rM(this.targetLayout,r)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...$(s,"layout"),onPlay:o,onComplete:a};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||rH(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}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,z(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
6h(rK),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let r=i.props[tr];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Y,!(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,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rW);return}this.isUpdating||this.nodes.forEach(rY),this.isUpdating=!1,this.nodes.forEach(rz),this.nodes.forEach(rN),this.nodes.forEach(rO),this.clearAllSnapshots();let t=K.now();H.delta=tm(0,1e3/60,t-H.timestamp),H.timestamp=t,H.isProcessing=!0,_.update.process(H),_.preRender.process(H),_.render.process(H),H.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,i7.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rI),this.sharedNodes.forEach(rq)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Y.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Y.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=i$(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=r(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rT(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,n=r!==this.prevTransformTemplateValue;t&&(e||iU(this.latestValues)||n)&&(s(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);return t&&(r=this.removeTransform(r)),r2((e=r).x),r2(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return i$();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(r3))){let{scroll:t}=this.root;t&&(iH(i.x,t.offset.x),iH(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=i$();if(rm(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let r=this.path[e],{scroll:s,options:n}=r;r!==this.root&&s&&n.layoutScroll&&(s.wasRoot&&rm(i,t),iH(i.x,s.offset.x),iH(i.y,s.offset.y))}return i}applyTransform(t,e=!1){let i=i$();rm(i,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&iX(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),iU(r.latestValues)&&iX(i,r.latestValues)}return iU(this.latestValues)&&iX(i,this.latestValues),i}removeTransform(t){let e=i$();rm(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!iU(i.latestValues))continue;iB(i.latestValues)&&i.updateSnapshot();let r=i$();rm(r,i.measurePageBox()),rb(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return iU(this.latestValues)&&rb(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!==H.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,r,s;let n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
6haredProjectionDirty);let o=!!this.resumingFrom||this!==n;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=H.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=i$(),this.relativeTargetOrigin=i$(),ik(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rm(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=i$(),this.targetWithTransforms=i$()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,r=this.relativeTarget,s=this.relativeParent.target,iS(i.x,r.x,s.x),iS(i.y,r.y,s.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rm(this.target,this.layout.layoutBox),iz(this.target,this.targetDelta)):rm(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=i$(),this.relativeTargetOrigin=i$(),ik(this.relativeTargetOrigin,this.target,t.target),rm(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rD&&rE.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||iB(this.parent.latestValues)||iI(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(r=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===H.timestamp&&(r=!1),r)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;rm(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,r=!1){let s,n,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){n=(s=i[a]).projectionDelta;let{visualElement:o}=s.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&iX(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),n&&(e.x*=n.x.scale,e.y*=n.y.scale,iz(t,n)),r&&iU(s.latestValues)&&iX(t,s.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=i$());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rg(this.prevProjectionDelta.x,this.projectionDelta.x),rg(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iP(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&rj(this.projectionDelta.x,this.prevProjectionDelta.x)&&rj(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rD&&rE.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iL(),this.projectionDelta=iL(),this.projectionDeltaWithTransform=iL()}setAnimationOrigin(t,e=!1){let i,r=this.snapshot,s=r?r.latestValues:{},n={...this.latestValues},o=iL();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=i$(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&
6!0===this.options.crossfade&&!this.path.some(rJ));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(rG(o.x,t.x,r),rG(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,f,m,g;ik(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=a,g=r,rZ(p.x,f.x,m.x,g),rZ(p.y,f.y,m.y,g),i&&(u=this.relativeTarget,d=i,rP(u.x,d.x)&&rP(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=i$()),rm(i,this.relativeTarget)}l&&(this.animationValues=n,function(t,e,i,r,s,n){s?(t.opacity=ev(0,void 0!==i.opacity?i.opacity:1,rc(r)),t.opacityExit=ev(void 0!==e.opacity?e.opacity:1,0,rd(r))):n&&(t.opacity=ev(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,r));for(let s=0;s<ra;s++){let n=`border${ro[s]}Radius`,o=rh(e,n),a=rh(i,n);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||ru(o)===ru(a)?(t[n]=Math.max(ev(rl(o),rl(a),r),0),(tC.test(a)||tC.test(o))&&(t[n]+="%")):t[n]=a)}(e.rotate||i.rotate)&&(t.rotate=ev(e.rotate||0,i.rotate||0,r))}(n,s,this.latestValues,r,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(z(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Y.update(()=>{var e;let i;i3.hasAnimatedSinceResize=!0,this.currentAnimation=(e={...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(i=tt(0)?0:Q(0)).start(e9("",i,1e3,e)),i.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:r,latestValues:s}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&r5(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||i$();let e=iA(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=iA(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}rm(e,i),iX(e,s),iP(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rC),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.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 r={};i.z&&r$("z",t,r,this.animationValues);for(let e=0;e<rV.length;e++)r$(`rotate${rV[e]}`,t,r,this.animationValues),r$(`skew${rV[e]}`,t,r,this.animationValues);for(let e in t.render(),r)t.setStaticValue(e,r[e]),this.animationValues&&(this.animationValues[e]=r[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rL;let r={visibility:""},s=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=rn(null==t?void 0:t.pointerEvents)||"",r.transform=s?s(this.latestValues,""):"none",r;let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=rn(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!iU(this.latestValues)&&(e.transform=s?s({},""):"none",this.hasProjected=!1),e}let o=n.animationValues||n.latestValues;
6this.applyTransformsToTarget(),r.transform=function(t,e,i){let r="",s=t.x.translate/e.x,n=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((s||n||o)&&(r=`translate3d(${s}px, ${n}px, ${o}px) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:n,skewX:o,skewY:a}=i;t&&(r=`perspective(${t}px) ${r}`),e&&(r+=`rotate(${e}deg) `),s&&(r+=`rotateX(${s}deg) `),n&&(r+=`rotateY(${n}deg) `),o&&(r+=`skewX(${o}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),s&&(r.transform=s(o,r.transform));let{x:a,y:l}=this.projectionDelta;for(let t in r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,n.animationValues?r.opacity=n===this?null!=(i=null!=(e=o.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:r.opacity=n===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,i9){if(void 0===o[t])continue;let{correct:e,applyTo:i}=i9[t],s="none"===r.transform?o[t]:e(o[t],n);if(i){let t=i.length;for(let e=0;e<t;e++)r[i[e]]=s}else r[t]=s}return this.options.layoutId&&(r.pointerEvents=n===this?rn(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(rW),this.root.sharedNodes.clear()}}}function rN(t){t.updateLayout()}function rO(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:s}=t.options,n=i.source!==t.layout.source;"size"===s?iF(t=>{let r=n?i.measuredBox[t]:i.layoutBox[t],s=iA(r);r.min=e[t].min,r.max=r.min+s}):r5(s,i.layoutBox,e)&&iF(r=>{let s=n?i.measuredBox[r]:i.layoutBox[r],o=iA(e[r]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=iL();iP(o,e,i.layoutBox);let a=iL();n?iP(a,t.applyTransform(r,!0),i.measuredBox):iP(a,e,i.layoutBox);let l=!rT(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:s,layout:n}=r;if(s&&n){let o=i$();ik(o,i.layoutBox,s.layoutBox);let a=i$();ik(a,e,n.layoutBox),rM(o,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rB(t){rD&&rE.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rU(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rI(t){t.clearSnapshot()}function rW(t){t.clearMeasurements()}function rY(t){t.isLayoutDirty=!1}function rz(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rH(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function r_(t){t.resolveTargetDelta()}function rX(t){t.calcProjection()}function rK(t){t.resetSkewAndRotation()}function rq(t){t.removeLeadSnapshot()}function rG(t,e,i){t.translate=ev(e.translate,0,i),t.scale=ev(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rZ(t,e,i,r){t.min=ev(e.min,i.min,r),t.max=ev(e.max,i.max,r)}function rJ(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rQ={duration:.45,ease:[.4,0,.1,1]},r0=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),r1=r0("applewebkit/")&&!r0("chrome/")?Math.round:w;function r2(t){t.min=r1(t.min),t.max=r1(t.max)}
6function r5(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rk(e)-rk(i)))}function r3(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let r4=rF({attachResizeListener:(t,e)=>ic(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),r6={current:void 0},r9=rF({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!r6.current){let t=new r4({});t.mount(window),t.setOptions({layoutScroll:!0}),r6.current=t}return r6.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function r7(t,e){let i=function(t){if(t instanceof Element)return[t];if("string"==typeof t){let e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}(t),r=new AbortController;return[i,{passive:!0,...e,signal:r.signal},()=>r.abort()]}function r8(t){return e=>{"touch"===e.pointerType||iu.x||iu.y||t(e)}}function st(t,e,i){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=r["onHover"+i];s&&Y.postRender(()=>s(e,id(e)))}let se=(t,e)=>!!e&&(t===e||se(t,e.parentElement)),si=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),sr=new WeakSet;function ss(t){return e=>{"Enter"===e.key&&t(e)}}function sn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function so(t){return ih(t)&&!(iu.x||iu.y)}function sa(t,e,i){let{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=r["onTap"+("End"===i?"":i)];s&&Y.postRender(()=>s(e,id(e)))}let sl=new WeakMap,su=new WeakMap,sh=t=>{let e=sl.get(t.target);e&&e(t)},sc=t=>{t.forEach(sh)},sd={some:0,all:1},sp=(0,i0.createContext)({strict:!1}),sf=(0,i0.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),sm=(0,i0.createContext)({});function sg(t){return c(t.animate)||x.some(e=>f(t[e]))}function sv(t){return!!(sg(t)||t.variants)}function sy(t){return Array.isArray(t)?t.join(" "):t}let sx="u">typeof window,sw={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"]},sb={};for(let t in sw)sb[t]={isEnabled:e=>sw[t].some(t=>!!e[t])};let sA=Symbol.for("motionComponentSymbol"),sT=sx?i0.useLayoutEffect:i0.useEffect,sP=["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 sS(t){if("string"!=typeof t||t.includes("-"));else if(sP.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let sM=t=>(e,i)=>{let r,s=(0,i0.useContext)(sm),n=(0,i0.useContext)(i1),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},r,s,n){let o={latestValues:function(t,e,i,r){let s={},n=r(t,{});for(let t in n)s[t]=rn(n[t]);let{initial:o,animate:a}=t,l=sg(t),u=sv(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let h=!!i&&!1===i.initial,d=(h=h||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!c(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let r=g(t,e[i]);if(r){let{transitionEnd:t,transition:e,...i}=r;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=h?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(r,s,n,t),renderState:e()};return i&&(o.onMount=t=>i({props:r,current:t,...o}),o.onUpdate=t=>i(t)),o})(t,e,s,n);return i?o():(null===(r=(0,i0.useRef)(null)).current&&(r.current=o()),r.current)},sk=(t,e)=>e&&"number"==typeof t?e.transform(t):t,sj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},sC=N.length;
6function sE(t,e,i){let{style:r,vars:s,transformOrigin:n}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(O.has(t)){o=!0;continue}if(es(t)){s[t]=i;continue}{let e=sk(i,tG[t]);t.startsWith("origin")?(a=!0,n[t]=e):r[t]=e}}if(!e.transform&&(o||i?r.transform=function(t,e,i){let r="",s=!0;for(let n=0;n<sC;n++){let o=N[n],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||i){let t=sk(a,tG[o]);if(!l){s=!1;let e=sj[o]||o;r+=`${e}(${t}) `}i&&(e[o]=t)}}return r=r.trim(),i?r=i(e,s?"":r):s&&(r="none"),r}(e,t.transform,i):r.transform&&(r.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=n;r.transformOrigin=`${t} ${e} ${i}`}}let sD={offset:"stroke-dashoffset",array:"stroke-dasharray"},sV={offset:"strokeDashoffset",array:"strokeDasharray"};function sL(t,e,i){return"string"==typeof t?t:tE.transform(e+i*t)}function sR(t,{attrX:e,attrY:i,attrScale:r,originX:s,originY:n,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},h,c){let d,p;if(sE(t,u,c),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:f,style:m,dimensions:g}=t;f.transform&&(g&&(m.transform=f.transform),delete f.transform),g&&(void 0!==s||void 0!==n||m.transform)&&(d=sL(void 0!==s?s:.5,g.x,g.width),p=sL(void 0!==n?n:.5,g.y,g.height),m.transformOrigin=`${d} ${p}`),void 0!==e&&(f.x=e),void 0!==i&&(f.y=i),void 0!==r&&(f.scale=r),void 0!==o&&function(t,e,i=1,r=0,s=!0){t.pathLength=1;let n=s?sD:sV;t[n.offset]=tE.transform(-r);let o=tE.transform(e),a=tE.transform(i);t[n.array]=`${o} ${a}`}(f,o,a,l,!1)}let s$=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),sF=()=>({...s$(),attrs:{}}),sN=t=>"string"==typeof t&&"svg"===t.toLowerCase();function sO(t,{style:e,vars:i},r,s){for(let n in Object.assign(t.style,e,s&&s.getProjectionStyles(r)),i)t.style.setProperty(n,i[n])}let sB=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function sU(t,e,i,r){for(let i in sO(t,e,void 0,r),e.attrs)t.setAttribute(sB.has(i)?i:ti(i),e.attrs[i])}function sI(t,{layout:e,layoutId:i}){return O.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!i9[t]||"opacity"===t)}function sW(t,e,i){var r;let{style:s}=t,n={};for(let o in s)(tt(s[o])||e.style&&tt(e.style[o])||sI(o,t)||(null==(r=null==i?void 0:i.getValue(o))?void 0:r.liveStyle)!==void 0)&&(n[o]=s[o]);return n}function sY(t,e,i){let r=sW(t,e,i);for(let i in t)(tt(t[i])||tt(e[i]))&&(r[-1!==N.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}let sz=["x","y","width","height","cx","cy","r"],sH={useVisualState:sM({scrapeMotionValuesFromProps:sY,createRenderState:sF,onUpdate:({props:t,prevProps:e,current:i,renderState:r,latestValues:s})=>{if(!i)return;let n=!!t.drag;if(!n){for(let t in s)if(O.has(t)){n=!0;break}}if(!n)return;let o=!e;if(e)for(let i=0;i<sz.length;i++){let r=sz[i];t[r]!==e[r]&&(o=!0)}o&&Y.read(()=>{try{r.dimensions="function"==typeof i.getBBox?i.getBBox():i.getBoundingClientRect()}catch(t){r.dimensions={x:0,y:0,width:0,height:0}}Y.render(()=>{sR(r,s,sN(i.tagName),t.transformTemplate),sU(i,r)})})}})},s_={useVisualState:sM({scrapeMotionValuesFromProps:sW,createRenderState:s$})};function sX(t,e,i){for(let r in e)tt(e[r])||sI(r,i)||(t[r]=e[r])}let sK=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function sq(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||sK.has(t)}let sG=t=>!sq(t);try{(s=t.r(70606).default)&&(sG=t=>t.startsWith("on")?!sq(t):s(t))}catch(t){}let sZ={current:null},sJ={current:!1},sQ=[...eh,t$,tz],s0=new WeakMap,s1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];
6class s2{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:s,visualState:n},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ei,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=K.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,Y.render(this.render,!1,!0))};const{latestValues:a,renderState:l,onUpdate:u}=n;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=sg(e),this.isVariantNode=sv(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==a[t]&&tt(e)&&e.set(a[t],!1)}}mount(t){this.current=t,s0.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)),sJ.current||function(){if(sJ.current=!0,sx)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>sZ.current=t.matches;t.addListener(e),e()}else sZ.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sZ.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in s0.delete(this.current),this.projection&&this.projection.unmount(),z(this.notifyUpdate),z(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=O.has(t),s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&Y.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),n=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),n(),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 sb){let e=sb[t];if(!e)continue;let{isEnabled:i,Feature:r}=e;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(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):i$()}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<s1.length;e++){let i=s1[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,i){for(let r in e){let s=e[r],n=i[r];if(tt(s))t.addValue(r,s);else if(tt(n))t.addValue(r,Q(s,{owner:t}));else if(n!==s)if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(r);t.addValue(r,Q(void 0!==e?e:s,{owner:t}))}}for(let r in i)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
6addVariantChild(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=Q(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let r=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=r){let i,s;if("string"==typeof r&&(i=r,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i)||(s=r,/^0[^.\s]+$/u.test(s))))r=parseFloat(r);else{let i;i=r,!sQ.find(eu(i))&&tz.test(e)&&(r=tQ(t,e))}this.setBaseTarget(t,tt(r)?r.get():r)}return tt(r)?r.get():r}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let s=g(this.props,r,null==(e=this.presenceContext)?void 0:e.custom);s&&(i=s[t])}if(r&&void 0!==i)return i;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||tt(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new Z),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class s5 extends s2{constructor(){super(...arguments),this.KeyframeResolver=ed}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tt(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class s3 extends s5{constructor(){super(...arguments),this.type="html",this.renderInstance=sO}readValueFromInstance(t,e){if(O.has(e)){let t=tJ(e);return t&&t.default||0}{let i=window.getComputedStyle(t),r=(es(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return iK(t,e)}build(t,e,i){sE(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return sW(t,e,i)}}class s4 extends s5{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=i$}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(O.has(e)){let t=tJ(e);return t&&t.default||0}return e=sB.has(e)?e:ti(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return sY(t,e,i)}build(t,e,i){sR(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,r){sU(t,e,i,r)}mount(t){this.isSVGTag=sN(t.tagName),super.mount(t)}}let s6=function(t){if("u"<typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,r)=>"create"===r?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}((n={animation:{Feature:class extends ia{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>e8(t,e,i)));else if("string"==typeof e)r=e8(t,e,i);else{let s="function"==typeof e?v(t,e,i.custom):e;r=Promise.all(e7(t,s,i))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=io(),r=!0,s=e=>(i,r)=>{var s;let n=v(t,r,"exit"===e?null==(s=t.presenceContext)?void 0:s.custom:void 0);if(n){let{transition:t,transitionEnd:e,...r}=n;i={...i,...r,...e}}return i};function n(n){let{props:o}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<ie;t++){let r=x[t],s=e.props[r];(f(s)||!1===s)&&(i[r]=s)}return i}(t.parent)||{},l=[],u=new Set,h={},m=1/0;for(let e=0;e<ir;e++){var g,v;let y=ii[e],x=i[y],w=void 0!==o[y]?o[y]:a[y],b=f(w),A=y===n?x.isActive:null;!1===A&&(m=e);let T=w===a[y]&&w!==o[y]&&b;if(T&&r&&t.manuallyAnimateOnMount&&(T=!1),x.protectedKeys={...h},!x.isActive&&null===A||!w&&!x.prevProp||c(w)||"boolean"==typeof w)continue;let P=(g=x.prevProp,"string"==typeof(v=w)?v!==g:!!Array.isArray(v)&&!p(v,g)),S=P||y===n&&x.isActive&&!T&&b||e>m&&b,M=!1,k=Array.isArray(w)?w:[w],j=k.reduce(s(y),{});!1===A&&(j={});let{prevResolvedValues:C={}}=x,E={...C,...j},D=e=>{S=!0,u.has(e)&&(M=!0,u.delete(e)),x.needsAnimating[e]=!0;let i=t.getValue(e);
6i&&(i.liveStyle=!1)};for(let t in E){let e=j[t],i=C[t];if(!h.hasOwnProperty(t))(d(e)&&d(i)?p(e,i):e===i)?void 0!==e&&u.has(t)?D(t):x.protectedKeys[t]=!0:null!=e?D(t):u.add(t)}x.prevProp=w,x.prevResolvedValues=j,x.isActive&&(h={...h,...j}),r&&t.blockInitialAnimation&&(S=!1);let V=!(T&&P)||M;S&&V&&l.push(...k.map(t=>({animation:t,options:{type:y}})))}if(u.size){let e={};u.forEach(i=>{let r=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=null!=r?r:null}),l.push({animation:e})}let y=!!l.length;return r&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(y=!1),r=!1,y?e(l):Promise.resolve()}return{animateChanges:n,setActive:function(e,r){var s;if(i[e].isActive===r)return Promise.resolve();null==(s=t.variantChildren)||s.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,r)}),i[e].isActive=r;let o=n(e);for(let t in i)i[t].protectedKeys={};return o},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=io(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();c(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}},exit:{Feature:class extends ia{constructor(){super(...arguments),this.id=il++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends ia{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:r,margin:s,amount:n="some",once:o}=i,a={root:r?r.current:void 0,rootMargin:s,threshold:"number"==typeof n?n:sd[n]},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:r}=this.node.getProps(),s=e?i:r;s&&s(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;su.has(i)||su.set(i,{});let r=su.get(i),s=JSON.stringify(e);return r[s]||(r[s]=new IntersectionObserver(sc,{root:t,...e})),r[s]}(a),sl.set(t,l),e.observe(t),()=>{sl.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({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ia{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,s,n]=r7(t,i),o=t=>{let r=t.currentTarget;if(!so(t)||sr.has(r))return;sr.add(r);let n=e(t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),so(t)&&sr.has(r)&&(sr.delete(r),"function"==typeof n&&n(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||se(r,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",l,s)};return r.forEach(t=>{si.has(t.tagName)||-1!==t.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let r=ss(()=>{if(sr.has(i))return;sn(i,"down");let t=ss(()=>{sn(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sn(i,"cancel"),e)});i.addEventListener("keydown",r,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),e)})(t,s),s)}),n}(t,t=>(sa(this.node,t,"Start"),(t,{success:e})=>sa(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends ia{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=eS(ic(this.node.current,"focus",()=>this.onFocus()),ic(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ia{mount(){let{current:t}=this.node;
6t&&(this.unmount=function(t,e,i={}){let[r,s,n]=r7(t,i),o=r8(t=>{let{target:i}=t,r=e(t);if("function"!=typeof r||!i)return;let n=r8(t=>{r(t),i.removeEventListener("pointerleave",n)});i.addEventListener("pointerleave",n,s)});return r.forEach(t=>{t.addEventListener("pointerenter",o,s)}),n}(t,t=>(st(this.node,t,"Start"),t=>st(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends ia{constructor(){super(...arguments),this.removePointerDownListener=w}onPointerDown(t){this.session=new ig(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iq(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:iQ(t),onStart:iQ(e),onMove:i,onEnd:(t,e)=>{delete this.session,r&&Y.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=ip(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ia{constructor(t){super(t),this.removeGroupControls=w,this.removeListeners=w,this.controls=new iZ(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||w}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:r9,MeasureLayout:re},layout:{ProjectionNode:r9,MeasureLayout:re}},o=(t,e)=>sS(t)?new s4(e):new s3(e,{allowProjection:t!==i0.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:r,Component:s}){var n,o;function l(t,n){var o;let l,u={...(0,i0.useContext)(sf),...t,layoutId:function({layoutId:t}){let e=(0,i0.useContext)(i2).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:h}=u,c=function(t){let{initial:e,animate:i}=function(t,e){if(sg(t)){let{initial:e,animate:i}=t;return{initial:!1===e||f(e)?e:void 0,animate:f(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,i0.useContext)(sm));return(0,i0.useMemo)(()=>({initial:e,animate:i}),[sy(e),sy(i)])}(t),d=r(t,h);if(!h&&sx){(0,i0.useContext)(sp).strict;let t=function(t){let{drag:e,layout:i}=sb;if(!e&&!i)return{};let r={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);l=t.MeasureLayout,c.visualElement=function(t,e,i,r,s){var n,o;let{visualElement:a}=(0,i0.useContext)(sm),l=(0,i0.useContext)(sp),u=(0,i0.useContext)(i1),h=(0,i0.useContext)(sf).reducedMotion,c=(0,i0.useRef)(null);r=r||l.renderer,!c.current&&r&&(c.current=r(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let d=c.current,p=(0,i0.useContext)(i5);d&&!d.projection&&s&&("html"===d.type||"svg"===d.type)&&function(t,e,i,r){let{layoutId:s,layout:n,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:n,alwaysMeasureLayout:!!o||a&&ib(a),visualElement:t,animationType:"string"==typeof n?n:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(c.current,i,s,p);let f=(0,i0.useRef)(!1);(0,i0.useInsertionEffect)(()=>{d&&f.current&&d.update(i,u)});let m=i[tr],g=(0,i0.useRef)(!!m&&!(null==(n=window.MotionHandoffIsComplete)?void 0:n.call(window,m))&&(null==(o=window.MotionHasOptimisedAnimation)?void 0:o.call(window,m)));return sT(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),i7.render(d.render),g.current&&d.animationState&&d.animationState.animateChanges())}),(0,i0.useEffect)(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,m)}),g.current=!1))}),d}(s,d,u,e,t.ProjectionNode)}return(0,a.jsxs)(sm.Provider,{value:c,children:[l&&c.visualElement?(0,a.jsx)(l,{visualElement:c.visualElement,...u}):null,i(s,t,(o=c.visualElement,(0,i0.useCallback)(t=>{t&&d.onMount&&d.onMount(t),o&&(t?o.mount(t):o.unmount()),n&&("function"==typeof n?n(t):ib(n)&&(n.current=t))},[o])),d,h,c.visualElement)]})}t&&function(t){for(let e in t)sb[e]={...sb[e],...t[e]}}(t),l.displayName=`motion.${"string"==typeof s?s:`create(${null!=(o=null!=(n=s.displayName)?n:s.name)?o:""})`}`;let u=(0,i0.forwardRef)(l);return u[sA]=s,u}({...sS(t)?sH:s_,preloadedFeatures:n,useRender:function(t=!1){return(e,i,r,{latestValues:s},n)=>
6{let o=(sS(e)?function(t,e,i,r){let s=(0,i0.useMemo)(()=>{let i=sF();return sR(i,e,sN(r),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};sX(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i,r,s={},n=(i=t.style||{},sX(r={},i,t),Object.assign(r,function({transformTemplate:t},e){return(0,i0.useMemo)(()=>{let i=s$();return sE(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),r);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=n,s})(i,s,n,e),a=function(t,e,i){let r={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&(sG(s)||!0===i&&sq(s)||!e&&!sq(s)||t.draggable&&s.startsWith("onDrag"))&&(r[s]=t[s]);return r}(i,"string"==typeof e,t),l=e!==i0.Fragment?{...a,...o,ref:r}:{},{children:u}=i,h=(0,i0.useMemo)(()=>tt(u)?u.get():u,[u]);return(0,i0.createElement)(e,{...l,children:h})}}(e),createVisualElement:o,Component:t})}));var s9=t.i(96026),s7=t.i(70616),s8=t.i(89595),nt=t.i(3456),ne=t.i(11007),ni=t.i(63411);let nr=({direction:t,onClick:e,show:i,isMobile:r})=>i?(0,a.jsx)("button",{type:"button",onClick:e,"aria-label":"left"===t?"Previous slide":"Next slide",className:"absolute top-1/2 z-10 -translate-y-1/2 rounded-full bg-white/80 p-2 shadow-lg transition-all duration-200 hover:bg-white focus:outline-hidden focus:ring-2 focus:ring-UC-blue-500 focus:ring-offset-2 dark:bg-gray-600 dark:focus:ring-offset-slate-900",style:{["left"===t?"left":"right"]:r?"-1rem":"1rem"},children:(0,a.jsx)("svg",{className:`h-6 w-6 ${"left"===t?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})}):null;t.s(["default",0,({newsItems:t})=>{let[e,i]=(0,i0.useState)(0),[r,s]=(0,i0.useState)(!1),[n,o]=(0,i0.useState)(!1),[c,d]=(0,i0.useState)(0),p=(0,i0.useRef)(null),f=(0,s9.useRouter)(),m=(0,i0.useCallback)(()=>{if(p.current){let t=p.current.getBoundingClientRect().width;d(t),s(t<=768)}},[]);(0,i0.useEffect)(()=>{m();let t=()=>m(),e=new ResizeObserver(()=>m());return p.current&&e.observe(p.current),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),e.disconnect()}},[m]),(0,i0.useEffect)(()=>{let s;if(!r)return;let o=()=>{p.current&&!n&&(clearTimeout(s),s=setTimeout(()=>{let r=Math.round(p.current.scrollLeft/(c+16));r!==e&&r>=0&&r<=t.length&&i(r)},30))},a=p.current;return a&&a.addEventListener("scroll",o),()=>{a&&a.removeEventListener("scroll",o),clearTimeout(s)}},[c,e,n,t.length,r]);let g=(0,i0.useMemo)(()=>{let t=c/2;return{beginningOffset:808-t,midOffset:452,endOffset:356-(t-436-16)}},[c]),v=t=>{let i;return 0===e?(i=(c-712)/436,t===e||i>t):1===e||2===e||3===e?t===e:4===e&&!!((c-436)/712>1)&&3===t||!1};return(0,a.jsxs)("div",{className:`${r?"relative mx-auto h-auto w-full":"container relative mx-auto h-auto w-full"}`,children:[(0,a.jsxs)("section",{ref:p,className:"scrollbar-hidden relative flex gap-4 overflow-x-scroll",tabIndex:0,"aria-label":"News carousel - use arrow keys to navigate",children:[t.map((t,i)=>{let s=(0,s8.default)(t.image),{alternativeText:n}=function(t,e=[]){return e.reduce((e,i)=>(e[i]=t?.data?.attributes[i],e),{})}(t.image,["alternativeText"]),o=t.update?.[t.update.length-1],l=(0,h.default)(o?o.date:t.postedAt).format("MMM DD, YYYY");return(0,a.jsxs)(s6.div,{layout:!0,animate:{width:r?"100%":`${4===e?3===i?712:436:i===e?712:436}px`,height:r?"auto":"527px"},transition:{type:"spring",stiffness:300,damping:30},className:`relative shrink-0 ${v(i)?"cursor-pointer":""}`,onClick:()=>((t,e)=>{if(v(e)){let e=`/news/${t.id}/${(0,ne.default)((0,ni.default)(t.headline))}`;f.push(e)}})(t,i),onMouseDown:e=>{v(i)||(0,nt.default)(e,`/news/${t.id}/${(0,ne.default)((0,ni.default)(t.headline))}`)},onMouseUp:e=>{v(i)||(0,nt.default)(e,`/news/${t.id}/${(0,ne.default)((0,ni.default)(t.headline))}`)},children:[(0,a.jsx)(u.default,{draggable:!1,src:s??s7.default,alt:n||`News: ${t.headline}`,className:"h-full w-full rounded object-cover"}),(0,a.jsxs)("div",{className:"absolute right-0 bottom-0 left-0 flex h-1/2 flex-col justify-end rounded bg-custom-gradient p-4 text-white",children:[(0,a.jsx)("div",{className:"mb-2 font-medium text-sm uppercase dark:text-gray-100",children:l}),(0,a.jsx)("h3",{className:`font-semibold text-base normal-case md:text-xl ${v(i)?"hover:underline":""}`,children:t.update&&t.update.length>0?`UPDATE: ${t.headline}`:t.headline})]}),!v(i)&&!r&&(0,a.jsx)("div",{className:"absolute right-0 bottom-0 left-0 z-10 flex h-full flex-col justify-end rounded bg-black/25 p-4 text-white backdrop-blur-xs"})]},t.id)}),(0,a.jsx)(s6.div,{layout:!0,animate:{width:r?"100%":"436px",height:r?"auto":"527px"},transition:{type:"spring",stiffness:300,damping:30},className:`relative flex h-[527px] shrink-0 items-center justify-center rounded bg-gray-200 ${4===e?"cursor-pointer":""} ${4!==e?"blur-xs":""}`,onClick:()=>4===e&&f.push("./news"),children:(0,a.jsxs)("span",{className:`flex items-center text-center font-semibold text-gray-700 text-lg ${4===e?"hover:underline":""}`,children:["VIEW ALL NEWS"," ",(0,a.jsx)(l.default,{direction:"right",strokeWidth:1.5,height:4})]})},"view-all-news")]}),(0,a.jsx)(nr,{direction:"left",onClick:()=>
6{if((n||e<=0)&&!r)return;let t={left:p.current.scrollLeft,behavior:"smooth"};if(r)p.current.scrollLeft%(c+16)===c||p.current.scrollLeft%(c+16)==0?t.left-=c+16*e:t.left-=p.current.scrollLeft%(c+16);else{o(!0);let r=e-1;i(r),t.left-=g[3===r?"beginningOffset":0===r?"focusedImageWidth":"midOffset"]}p.current.scrollTo(t),setTimeout(()=>o(!1),300)},show:e>0,isMobile:r}),(0,a.jsx)(nr,{direction:"right",onClick:()=>{if((n||e>=t.length)&&!r)return;let s={left:p.current.scrollLeft,behavior:"smooth"};if(r)p.current.scrollLeft%(c+16)===c||p.current.scrollLeft%(c+16)==0?s.left+=c+16*e:s.left+=c-p.current.scrollLeft%(c+16);else{o(!0);let t=e+1;i(t),s.left+=g[1===t?"beginningOffset":4===t?"endOffset":"midOffset"]}p.current.scrollTo(s),setTimeout(()=>o(!1),300)},show:e<t.length,isMobile:r})]})}],69336)},37570,t=>{"use strict";var e=t.i(28249),i=t.i(48720),r=t.i(55955),s=t.i(3456),n=t.i(63411);function o({id:t,headline:i,postedAt:a,update:l,department:u}){let h=l?.[l.length-1],c=h?h.date:a,d=(0,r.default)(c).format("MMM DD, YYYY"),p=`/news/${t}/${(0,n.default)(i)}`;return(0,e.jsxs)("a",{href:p,"aria-label":`Read public notice: ${i}`,onMouseDown:s.cancelClickAfterDrag,className:"group/newsCard hover flex w-full cursor-pointer select-none flex-col gap-3 rounded bg-white px-8 py-7 font-semibold shadow transition duration-200 hover:border-t-black hover:shadow-lg focus:outline-hidden focus:ring-2 focus:ring-UC-blue-500 focus:ring-offset-2 sm:w-1/2 dark:border-t-slate-100/30 dark:bg-gray-600 dark:font-medium dark:hover:border-t-slate-100",children:[(0,e.jsx)("div",{className:"font line-clamp-2 font-semibold text-base text-gray-800 normal-case group-hover/newsCard:text-gray-900 lg:line-clamp-1 dark:font-medium dark:text-gray-100 dark:group-hover/newsCard:text-white",children:l&&l.length>0?`UPDATE: ${i}`:i}),(0,e.jsxs)("div",{className:"flex items-center gap-5",children:[(0,e.jsx)("div",{className:"font-normal font-sans text-gray-500 text-sm leading-normal dark:text-gray-300",children:d}),(0,e.jsx)("div",{className:"flex-shrink-0 rounded bg-[#F2F2F2] px-3 py-1 font-medium text-gray-600 text-sm uppercase dark:bg-gray-500 dark:text-gray-200",children:u})]})]})}t.s(["default",0,function({data:t=[]}){return(0,e.jsx)(i.default,{title:"Article",subtitle:"Public Notices",linkHref:"/public-notices",linkText:"View All Notices",scrollAmount:327,arrowButtonHref:"/",arrowButtonText:"More",centered:!0,disableSideScroll:!0,disableHeaderRow:!0,children:(0,e.jsx)("div",{className:"flex w-full flex-col gap-3 sm:flex-row",children:t.slice(0,2).map(t=>(0,e.jsx)(o,{...t},t.id))})})}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.