PageSourceSearch

https://unoxmobility.dk/_next/static/chunks/2k9rchbqm945m.js

js unoxmobility.dk collected 2026-10-09 23:11:43 UTC 157,659 bytes, 9 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,548324,t=>{"use strict";var e=t.i(496197),i=t.i(507680),s=t.i(678695);function n(){return false}function r(t){return RegExp(`/${t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function a(t){(0,i.useEffect)(()=>{var e;t.beforeSend&&(null==(e=window.si)||e.call(window,"beforeSend",t.beforeSend))},[t.beforeSend]);let s=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(s.current)t.route&&s.current(t.route);else{let i=function(t={}){var e;if(!("u">typeof window)||null===t.route)return null;window.si||(window.si=function(...t){(window.siq=window.siq||[]).push(t)});let i=t.scriptSrc?t.scriptSrc:n()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":t.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":t.basePath?`${t.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${i}"]`))return null;t.beforeSend&&(null==(e=window.si)||e.call(window,"beforeSend",t.beforeSend));let s=document.createElement("script");return s.src=i,s.defer=!0,s.dataset.sdkn="@vercel/speed-insights"+(t.framework?`/${t.framework}`:""),s.dataset.sdkv="1.3.1",t.sampleRate&&(s.dataset.sampleRate=t.sampleRate.toString()),t.route&&(s.dataset.route=t.route),t.endpoint?s.dataset.endpoint=t.endpoint:t.basePath&&(s.dataset.endpoint=`${t.basePath}/speed-insights/vitals`),t.dsn&&(s.dataset.dsn=t.dsn),n()&&!1===t.debug&&(s.dataset.debug="false"),s.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${i}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(s),{setRoute:t=>{s.dataset.route=t??void 0}}}({framework:t.framework??"react",basePath:t.basePath??function(){if(void 0!==e.default&&void 0!==e.default.env)return e.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...t});i&&(s.current=i.setRoute)}},[t.route]),null}function o(t){let n=(()=>{let t=(0,s.useParams)(),e=(0,s.useSearchParams)()||new URLSearchParams,i=(0,s.usePathname)();if(!t)return null;let n=Object.keys(t).length?t:Object.fromEntries(e.entries());if(!i||!n)return i;let a=i;try{let t=Object.entries(n);for(let[e,i]of t)if(!Array.isArray(i)){let t=r(i);t.test(a)&&(a=a.replace(t,`/[${e}]`))}for(let[e,i]of t)if(Array.isArray(i)){let t=r(i.join("/"));t.test(a)&&(a=a.replace(t,`/[...${e}]`))}return a}catch(t){return i}})();return i.default.createElement(a,{route:n,...t,framework:"next",basePath:function(){if(void 0!==e.default&&void 0!==e.default.env)return e.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}t.s(["SpeedInsights",0,function(t){return i.default.createElement(i.Suspense,{fallback:null},i.default.createElement(o,{...t}))}])},467121,t=>{"use strict";var e=t.i(468679),i=t.i(361364),s=t.i(637966),n=t.i(303725),r=t.i(122243),a=t.i(922062);let o=t=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.default,{...t,className:"underline hover:brightness-75"}),(0,e.jsx)("br",{})]}),l=t=>(0,e.jsxs)("div",{className:(0,a.cn)("flex min-w-0 flex-col gap-3",t.className),children:[(0,e.jsx)("h3",{className:"font-semibold",children:t.title}),(0,e.jsx)("div",{className:"whitespace-pre-line",children:(0,e.jsx)(r.RenderMarkdown,{options:{overrides:{a:{component:o},h3:{props:{className:"text-sm text-neutral-300 mb-3"}}}},children:t.information})}),(0,e.jsx)("h3",{className:"text-sm text-neutral-300",children:t.someTitle}),(0,e.jsx)("div",{className:"flex flex-col gap-2",children:t.links.map(t=>(0,e.jsxs)("a",{href:t.url,target:"_blank",className:"flex min-w-0 items-center gap-2 break-words hover:brightness-75",children:[t.icon&&(0,e.jsx)(s.default,{src:t.icon.url,width:16,height:16,alt:t.title}),t.title]},t.id))})]});var h=t.i(985970),u=t.i(271716),d=t.i(787797),c=t.i(507680),p=t.i(80512),m=t.i(220401);let f=(0,m.createServerReference)("40ea508a2c2e8277becf4ad1db34d3f23840b3e96f",m.callServer,void 0,m.findSourceMapURL,"signupNewsletter"),v=t=>{let[i,s]=(0,c.useState)(!1),n=async t=>{try{await f({email:t.email,firstName:t.firstName,lastName:t.lastName,source:"WEBSITE_FOOTER",campaign:"FOOTER"})&&s(!0)}catch(t){console.error("Error:",t),alert("There was an error submitting the form.")}};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"",children:[(0,e.jsx)("h5",{className:"text-md mt-6 mb-4 italic",children:t.formTitle}),(0,e.jsx)(p.FastForm,{fields:{firstName:{label:"Fornavn",hideLabel:!0,type:"input",placeholder:"Fornavn",colSpan:2,dark:!0,lineInput:!0},lastName:{label:"Efternavn",hideLabel:!0,type:"input",placeholder:"Efternavn",colSpan:2,dark:!0,lineInput:!0},email:{label:"E-mail",hideLabel:!0,type:"input",placeholder:"E-mail",colSpan:2,dark:!0,lineInput:!0},consentToMarketing:{label:"Jeg accepterer nedenstående betingelser",type:"checkbox",colSpan:2,dark:!0},consentToMarketingText:{type:"custom",colSpan:2,optional:!0,hideLabel:!0,render:()=>(0,e.jsx)("div",{className:"flex flex-col gap-1",children:(0,e.jsx)("div",{className:"text-[13px]",children:(0,e.jsx)("div",{className:"flex flex-col gap-2",children:(0,e.jsxs)("p",{children:["Ved tilmelding giver du samtykke til, at Uno-X Mobility Danmark A/S må kontakte dig med nyheder og tilbud. Se betingelser for direkte markedsføring"," ",(0,e.jsx)("a",{href:"https://unoxmobility.dk/privat/direkte-markedsforing",target:"_blank",className:"text-tertiary underline",rel:"noopener noreferrer",children:"her."})]})})})})}},onSubmit:n,actionButtons:()=>(0,e.jsx)(u.Button,{variant:"tertiary",type:"submit",className:"mt-4",children:t.submitButtonLabel}),className:"max-w-[260px]",lineInput:!0})]}),(0,e.jsx)(d.Dialog,{open:i,onOpenChange:s,children:(0,e.jsx)(d.DialogContent,{children:(0,e.jsxs)(d.DialogHeader,{children:[(0,e.jsx)(d.DialogTitle,{children:"Tak for din tilmelding!"}),(0,e.jsx)(d.DialogDescription,{children:"Du er nu tilmeldt vores nyhedsbrev og vil modtage opdateringer på din e-mail."})]})})})]})},g=t=>(0,e.jsxs)("div",{className:t.className,children:[(0,e.jsx)(h.Logo,{}),(0,e.jsx)("div",{className:"my-6 text-lg leading-6 font-semibold whitespace-pre-wrap",children:t.tagline}),(0,e.jsx)("div",{className:"whitespace-pre-wrap",children:(0,e.jsx)(r.RenderMarkdown,{children:t.companyInfo})}),t.showForm&&(0,e.jsx)(v,{formTitle:t.formTitle,submitButtonLabel:t.submitButtonLabel})]}),y=t=>t.links.length?(0,e.jsxs)("div",{className:(0,a.cn)("flex min-w-0 flex-col gap-3",t.className),children:[(0,e.jsx)("h3",{className:"font-semibold",children:t.title}),t.links.map(t=>t.to&&(0,e.jsx)(u.Button,{variant:"text",size:"text",className:"min-w-0 justify-start text-left break-words whitespace-normal text-neutral-300",asChild:!0,children:(0,e.jsx)(n.default,{href:t.to,target:(0,a.isExternal)(t.to)?"_blank":void 0,rel:(0,a.isExternal)(t.to)?"noopener noreferrer":void 0,className:"text-neutral-300",children:t.title})},t.id))]}):null;var x=t.i(237358);let b=t=>(0,e.jsxs)("div",{className:(0,a.cn)("border-background/25 max-xs:gap-y-10 flex flex-wrap items-end justify-between border-t py-6",t.className),children:[(0,e.jsxs)("p",{className:"max-xs:max-w-[172px] flex flex-wrap items-baseline gap-x-1.5 gap-y-1.5",children:[(0,e.jsx)("span",{className:"text-sm",children:(0,x.t)("footer.part-of")}),(0,e.jsxs)("span",{className:"xs:text-sm flex gap-1 text-xs tracking-tight",children:[(0,e.jsx)(n.default,{className:"underline hover:brightness-75",href:`${t.firstLink.url}`,target:(0,a.isExternal)(t.firstLink.url)?"_blank":void 0,rel:(0,a.isExternal)(t.firstLink.url)?"noopener noreferrer":void 0,children:t.firstLink.title}),(0,e.jsx)("span",{children:"og"}),(0,e.jsx)(n.default,{className:"underline hover:brightness-75",href:`${t.secondLink.url}`,target:(0,a.isExternal)(t.secondLink.url)?"_blank":void 0,rel:(0,a.isExternal)(t.secondLink.url)?"noopener noreferrer":void 0,children:t.secondLink.title})]})]}),(0,e.jsxs)("div",{className:"flex gap-4 tracking-tight md:gap-6",children:[(0,e.jsx)(u.Button,{variant:"text",size:"text",className:"xs:text-sm text-xs underline hover:brightness-75",asChild:!0,children:(0,e.jsx)(n.default,{href:(0,a.buildHref)(t.cookiePolicy.to),target:(0,a.isExternal)(t.cookiePolicy.to)?"_blank":void 0,rel:(0,a.isExternal)(t.cookiePolicy.to)?"noopener noreferrer":void 0,children:t.cookiePolicy.title})}),(0,e.jsx)(u.Button,{variant:"text",size:"text",className:"xs:text-sm text-xs underline hover:brightness-75",asChild:!0,children:(0,e.jsx)(n.default,{href:(0,a.buildHref)(t.privacyPolicy.to),target:(0,a.isExternal)(t.privacyPolicy.to)?"_blank":void 0,rel:(0,a.isExternal)(t.privacyPolicy.to)?"noopener noreferrer":void 0,children:t.privacyPolicy.title})})]})]});t.s(["Footer",0,({content:t})=>{let{isBusiness:s}=(0,i.useIsBusiness)(),n=t?.allFooters?.find(t=>t.overviewTitle===(s?"Erhverv":"Privat"));return n?(0,e.jsx)("footer",{className:"bg-primary text-primary-foreground mt-auto pt-24",children:(0,e.jsxs)("div",{className:"container",children:[(0,e.jsxs)("div",{className:"lg:grid-cols-footer mb-24 grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)] gap-x-4 gap-y-8 md:grid-cols-[repeat(4,minmax(0,1fr))]",children:[(0,e.jsx)(g,{tagline:n.tagline,companyInfo:n.companyInfo,className:"col-span-2 md:col-span-4 lg:col-span-1",showForm:n.showForm,formTitle:n.formTitle??"Tilmeld dig vores nyhedsbrev",submitButtonLabel:n.submitButtonLabel??"Bestil Uno-X Kort"}),(0,e.jsx)(y,{title:n.titlePopular,links:n.linksPopular}),(0,e.jsx)(y,{title:n.titleMobility,links:n.linksMobility}),(0,e.jsx)(y,{title:n.titleCustomerService,links:n.linksCustomerService}),(0,e.jsx)(l,{title:n.titleContact,information:n.contactInformation,someTitle:n.titleSocialMedia,links:n.linkSocialMedia})]}),(0,e.jsx)(b,{firstLink:n.firstLink,secondLink:n.secondLink,cookiePolicy:n.cookiePolicy,privacyPolicy:n.privacyPolicy})]})}):null}],467121)},154198,t=>{"use strict";let e,i,s,n;var r,a=t.i(468679),o=t.i(496197),l=t.i(507680);let h=(0,l.createContext)({});function u(t){let e=(0,l.useRef)(null);return null===e.current&&(e.current=t()),e.current}let d="u">typeof window,c=d?l.useLayoutEffect:l.useEffect,p=(0,l.createContext)(null);function m(t){return"object"==typeof t&&null!==t}function f(t){return m(t)&&"offsetHeight"in t}var v=l;let g=(0,l.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function y(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class x extends v.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,
1i=f(t)&&t.offsetWidth||0,s=f(t)&&t.offsetHeight||0,n=this.props.sizeRef.current;n.height=e.offsetHeight||0,n.width=e.offsetWidth||0,n.top=e.offsetTop,n.left=e.offsetLeft,n.right=i-n.width-n.left,n.bottom=s-n.height-n.top}return null}componentDidUpdate(){}render(){return this.props.children}}function b({children:t,isPresent:e,anchorX:i,anchorY:s,root:n,pop:r}){let o=(0,v.useId)(),h=(0,v.useRef)(null),u=(0,v.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:d}=(0,v.useContext)(g),c=function(...t){return l.useCallback(function(...t){return e=>{let i=!1,s=t.map(t=>{let s=y(t,e);return i||"function"!=typeof s||(i=!0),s});if(i)return()=>{for(let e=0;e<s.length;e++){let i=s[e];"function"==typeof i?i():y(t[e],null)}}}}(...t),t)}(h,t.props?.ref??t?.ref);return(0,v.useInsertionEffect)(()=>{let{width:t,height:a,top:l,left:c,right:p,bottom:m}=u.current;if(e||!1===r||!h.current||!t||!a)return;let f="left"===i?`left: ${c}`:`right: ${p}`,v="bottom"===s?`bottom: ${m}`:`top: ${l}`;h.current.dataset.motionPopId=o;let g=document.createElement("style");d&&(g.nonce=d);let y=n??document.head;return y.appendChild(g),g.sheet&&g.sheet.insertRule(`
2          [data-motion-pop-id="${o}"] {
3            position: absolute !important;
4            width: ${t}px !important;
5            height: ${a}px !important;
6            ${f}px !important;
7            ${v}px !important;
8          }
9        `),()=>{y.contains(g)&&y.removeChild(g)}},[e]),(0,a.jsx)(x,{isPresent:e,childRef:h,sizeRef:u,pop:r,children:!1===r?t:v.cloneElement(t,{ref:c})})}let w=({children:t,initial:e,isPresent:i,onExitComplete:s,custom:n,presenceAffectsLayout:r,mode:o,anchorX:h,anchorY:d,root:c})=>{let m=u(j),f=(0,l.useId)(),v=!0,g=(0,l.useMemo)(()=>(v=!1,{id:f,initial:e,isPresent:i,custom:n,onExitComplete:t=>
9{for(let e of(m.set(t,!0),m.values()))if(!e)return;s&&s()},register:t=>(m.set(t,!1),()=>m.delete(t))}),[i,m,s]);return r&&v&&(g={...g}),(0,l.useMemo)(()=>{m.forEach((t,e)=>m.set(e,!1))},[i]),l.useEffect(()=>{i||m.size||!s||s()},[i]),t=(0,a.jsx)(b,{pop:"popLayout"===o,isPresent:i,anchorX:h,anchorY:d,root:c,children:t}),(0,a.jsx)(p.Provider,{value:g,children:t})};function j(){return new Map}function T(t=!0){let e=(0,l.useContext)(p);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:s,register:n}=e,r=(0,l.useId)();(0,l.useEffect)(()=>{if(t)return n(r)},[t]);let a=(0,l.useCallback)(()=>t&&s&&s(r),[r,s,t]);return!i&&s?[!1,a]:[!0]}let P=t=>t.key||"";function k(t){let e=[];return l.Children.forEach(t,t=>{(0,l.isValidElement)(t)&&e.push(t)}),e}let S=({children:t,custom:e,initial:i=!0,onExitComplete:s,presenceAffectsLayout:n=!0,mode:r="sync",propagate:o=!1,anchorX:d="left",anchorY:p="top",root:m})=>{let[f,v]=T(o),g=(0,l.useMemo)(()=>k(t),[t]),y=o&&!f?[]:g.map(P),x=(0,l.useRef)(!0),b=(0,l.useRef)(g),j=u(()=>new Map),S=(0,l.useRef)(new Set),[C,E]=(0,l.useState)(g),[M,A]=(0,l.useState)(g);c(()=>{x.current=!1,b.current=g;for(let t=0;t<M.length;t++){let e=P(M[t]);y.includes(e)?(j.delete(e),S.current.delete(e)):!0!==j.get(e)&&j.set(e,!1)}},[M,y.length,y.join("-")]);let L=[];if(g!==C){let t=[...g];for(let e=0;e<M.length;e++){let i=M[e],s=P(i);y.includes(s)||(t.splice(e,0,i),L.push(i))}return"wait"===r&&L.length&&(t=L),A(k(t)),E(g),null}let{forceRender:V}=(0,l.useContext)(h);return(0,a.jsx)(a.Fragment,{children:M.map(t=>{let l=P(t),h=(!o||!!f)&&(g===M||y.includes(l));return(0,a.jsx)(w,{isPresent:h,initial:(!x.current||!!i)&&void 0,custom:e,presenceAffectsLayout:n,mode:r,root:m,onExitComplete:h?void 0:()=>{if(S.current.has(l)||(S.current.add(l),!j.has(l)))return;j.set(l,!0);let t=!0;j.forEach(e=>{e||(t=!1)}),t&&(V?.(),A(b.current),o&&v?.(),s&&s())},anchorX:d,anchorY:p,children:t},l)})})},C=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],E=new Set(C),M=(t,e,i)=>i>e?e:i<t?t:i,A={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},L={...A,transform:t=>M(0,1,t)},V={...A,default:1},D=t=>Math.round(1e5*t)/1e5,N=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,R=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,B=(t,e)=>i=>!!("string"==typeof i&&R.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),F=(t,e,i)=>s=>{if("string"!=typeof s)return s;let[n,r,a,o]=s.match(N);return{[t]:parseFloat(n),[e]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},I={...A,transform:t=>Math.round(M(0,255,t))},O={test:B("rgb","red"),parse:F("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:s=1})=>"rgba("+I.transform(t)+", "+I.transform(e)+", "+I.transform(i)+", "+D(L.transform(s))+")"},H={test:B("#"),parse:function(t){let e="",i="",s="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),s=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),s=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,s+=s,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}},transform:O.transform},$=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),U=$("deg"),W=$("%"),z=$("px"),_=$("vh"),Y=$("vw"),X={...W,parse:t=>W.parse(t)/100,transform:t=>W.transform(100*t)},Z={test:B("hsl","hue"),parse:F("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:s=1})=>"hsla("+Math.round(t)+", "+W.transform(D(e))+", "+W.transform(D(i))+", "+D(L.transform(s))+")"},K={test:t=>O.test(t)||H.test(t)||Z.test(t),parse:t=>O.test(t)?O.parse(t):Z.test(t)?Z.parse(t):H.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?O.transform(t):Z.transform(t),getAnimatableNone:t=>{let e=K.parse(t);return e.alpha=0,K.transform(e)}},G=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,q="number",Q="color",J=/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 tt(t){let e=t.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,a=e.replace(J,t=>
9(K.test(t)?(s.color.push(r),n.push(Q),i.push(K.parse(t))):t.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(t)):(s.number.push(r),n.push(q),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:a,indexes:s,types:n}}function te(t){return tt(t).values}function ti(t){let{split:e,types:i}=tt(t),s=e.length;return t=>{let n="";for(let r=0;r<s;r++)if(n+=e[r],void 0!==t[r]){let e=i[r];e===q?n+=D(t[r]):e===Q?n+=K.transform(t[r]):n+=t[r]}return n}}let ts=t=>"number"==typeof t?0:K.test(t)?K.getAnimatableNone(t):t,tn={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(N)?.length||0)+(t.match(G)?.length||0)>0},parse:te,createTransformer:ti,getAnimatableNone:function(t){let e=te(t);return ti(t)(e.map(ts))}},tr=new Set(["brightness","contrast","saturate","opacity"]);function ta(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[s]=i.match(N)||[];if(!s)return t;let n=i.replace(s,""),r=+!!tr.has(e);return s!==i&&(r*=100),e+"("+r+n+")"}let to=/\b([a-z-]*)\(.*?\)/gu,tl={...tn,getAnimatableNone:t=>{let e=t.match(to);return e?e.map(ta).join(" "):t}},th={...tn,getAnimatableNone:t=>{let e=tn.parse(t);return tn.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},tu={...A,transform:Math.round},td={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,top:z,right:z,bottom:z,left:z,inset:z,insetBlock:z,insetBlockStart:z,insetBlockEnd:z,insetInline:z,insetInlineStart:z,insetInlineEnd:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,paddingBlock:z,paddingBlockStart:z,paddingBlockEnd:z,paddingInline:z,paddingInlineStart:z,paddingInlineEnd:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,marginBlock:z,marginBlockStart:z,marginBlockEnd:z,marginInline:z,marginInlineStart:z,marginInlineEnd:z,fontSize:z,backgroundPositionX:z,backgroundPositionY:z,rotate:U,rotateX:U,rotateY:U,rotateZ:U,scale:V,scaleX:V,scaleY:V,scaleZ:V,skew:U,skewX:U,skewY:U,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z:z,perspective:z,transformPerspective:z,opacity:L,originX:X,originY:X,originZ:z,zIndex:tu,fillOpacity:L,strokeOpacity:L,numOctaves:tu},tc={...td,color:K,backgroundColor:K,outlineColor:K,fill:K,stroke:K,borderColor:K,borderTopColor:K,borderRightColor:K,borderBottomColor:K,borderLeftColor:K,filter:tl,WebkitFilter:tl,mask:th,WebkitMask:th},tp=t=>tc[t],tm=()=>({translate:0,scale:1,origin:0,originPoint:0}),tf=()=>({x:tm(),y:tm()}),tv=()=>({min:0,max:0}),tg=()=>({x:tv(),y:tv()}),ty=t=>!!(t&&t.getVelocity),tx=new Set(["width","height","top","left","right","bottom",...C]),tb=t=>e=>e.test(t),tw=[A,z,W,U,Y,_,{test:t=>"auto"===t,parse:t=>t}],tj=t=>tw.find(tb(t)),tT=()=>{},tP=()=>{};o.default;let tk=t=>e=>"string"==typeof e&&e.startsWith(t),tS=tk("--"),tC=tk("var(--"),tE=t=>!!tC(t)&&tM.test(t.split("/*")[0].trim()),tM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tA(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tV=t=>180*t/Math.PI,tD=t=>tR(tV(Math.atan2(t[1],t[0]))),tN={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tD,rotateZ:tD,skewX:t=>tV(Math.atan(t[1])),skewY:t=>tV(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tR=t=>((t%=360)<0&&(t+=360),t),tB=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tF=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tI={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tB,scaleY:tF,scale:t=>(tB(t)+tF(t))/2,rotateX:t=>tR(tV(Math.atan2(t[6],t[5]))),rotateY:t=>tR(tV(Math.atan2(-t[2],t[0]))),rotateZ:tD,rotate:tD,skewX:t=>tV(Math.atan(t[4])),skewY:t=>tV(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tO(t){return+!!t.includes("scale")}function tH(t,e){let i,s;if(!t||"none"===t)return tO(e);let n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=tI,s=n;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tN,s=e}if(!s)return tO(e);let r=i[e],a=s[1].split(",").map(t$);return"function"==typeof r?r(a):a[r]}function t$(t){return parseFloat(t.trim())}let tU=t=>t===A||t===z,tW=new Set(["x","y","z"]),tz=C.filter(t=>!tW.has(t)),t_={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tH(e,"x"),y:(t,{transform:e})=>tH(e,"y")};t_.translateX=t_.x,t_.translateY=t_.y;let tY=t=>t,tX={},tZ=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tK(t,e){let i=!1,s=!0,n={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=tZ.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,s=new Set,n=!1,r=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function h(e){a.has(e)&&(u.schedule(e),t()),l++,e(o)}let u={schedule:(t,e=!1,r=!1)=>{let o=r&&n?i:s;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{s.delete(t),a.delete(t)},process:t=>{if(o=t,n){r=!0;return}
9n=!0,[i,s]=[s,i],i.forEach(h),e,l=0,i.clear(),n=!1,r&&(r=!1,u.process(t))}};return u}(r,e?i:void 0),t),{}),{setup:o,read:l,resolveKeyframes:h,preUpdate:u,update:d,preRender:c,render:p,postRender:m}=a,f=()=>{let r=tX.useManualTiming?n.timestamp:performance.now();i=!1,tX.useManualTiming||(n.delta=s?1e3/60:Math.max(Math.min(r-n.timestamp,40),1)),n.timestamp=r,n.isProcessing=!0,o.process(n),l.process(n),h.process(n),u.process(n),d.process(n),c.process(n),p.process(n),m.process(n),n.isProcessing=!1,i&&e&&(s=!1,t(f))};return{schedule:tZ.reduce((e,r)=>{let o=a[r];return e[r]=(e,r=!1,a=!1)=>(!i&&(i=!0,s=!0,n.isProcessing||t(f)),o.schedule(e,r,a)),e},{}),cancel:t=>{for(let e=0;e<tZ.length;e++)a[tZ[e]].cancel(t)},state:n,steps:a}}let{schedule:tG,cancel:tq,state:tQ,steps:tJ}=tK("u">typeof requestAnimationFrame?requestAnimationFrame:tY,!0),t0=new Set,t1=!1,t2=!1,t3=!1;function t5(){if(t2){let t=Array.from(t0).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,s=(e=[],tz.forEach(i=>{let s=t.getValue(i);void 0!==s&&(e.push([i,s.get()]),s.set(+!!i.startsWith("scale")))}),e);s.length&&(i.set(t,s),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}t2=!1,t1=!1,t0.forEach(t=>t.complete(t3)),t0.clear()}function t6(){t0.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(t2=!0)})}class t4{constructor(t,e,i,s,n,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(t0.add(this),t1||(t1=!0,tG.read(t6),tG.resolveKeyframes(t5))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;if(null===t[0]){let n=s?.get(),r=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let s=i.readValue(e,r);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=r),s&&void 0===n&&s.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),t0.delete(this)}cancel(){"scheduled"===this.state&&(t0.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let t8=new Set([tl,th]);function t9(t,e){let i=tp(t);return t8.has(i)||(i=tn),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let t7=new Set(["auto","none","0"]);class et extends t4{constructor(t,e,i,s,n){super(t,e,i,s,n,!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 s=t[i];if("string"==typeof s&&tE(s=s.trim())){let n=function t(e,i,s=1){tP(s<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,r]=function(t){let e=tL.exec(t);if(!e)return[,];let[,i,s,n]=e;return[`--${i??s}`,n]}(e);if(!n)return;let a=window.getComputedStyle(i).getPropertyValue(n);if(a){let t=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return tE(r)?t(r,i,s+1):r}(s,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!tx.has(i)||2!==t.length)return;let[s,n]=t,r=tj(s),a=tj(n);if(tA(s)!==tA(n)&&t_[i]){this.needsMeasurement=!0;return}if(r!==a)if(tU(r)&&tU(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else t_[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let s,n=0;for(;n<t.length&&!s;){let e=t[n];"string"==typeof e&&!t7.has(e)&&tt(e).values.length&&(s=t[n]),n++}if(s&&i)for(let n of e)t[n]=t9(i,s)}(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=t_[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let s=e[e.length-1];void 0!==s&&t.getValue(i,s).jump(s,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(e);s&&s.jump(this.measuredOrigin,!1);let n=i.length-1,r=i[n];i[n]=t_[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
9h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let ee=t=>1e3*t;function ei(t,e){-1===t.indexOf(e)&&t.push(e)}function es(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class en{constructor(){this.subscriptions=[]}add(t){return ei(this.subscriptions,t),()=>es(this.subscriptions,t)}notify(t,e,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,i);else for(let n=0;n<s;n++){let s=this.subscriptions[n];s&&s(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function er(t){let e;return()=>(void 0===e&&(e=t()),e)}let ea={};function eo(t,e){let i=er(t);return()=>ea[e]??i()}let el=eo(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),eh=t=>null!==t;function eu(t,{repeat:e,repeatType:i="loop"},s,n=1){let r=t.filter(eh),a=n<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return a&&void 0!==s?s:r[a]}class ed{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let ec={layout:0,mainThread:0,waapi:0},ep=t=>Array.isArray(t)&&"number"==typeof t[0],em=eo(()=>{try{document.createElement("div").animate({opacity:0}
9,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ef=(t,e,i=10)=>{let s="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)s+=Math.round(1e4*t(e/(n-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},ev=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,eg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ev([0,.65,.55,1]),circOut:ev([.55,0,1,.45]),backIn:ev([.31,.01,.66,-.59]),backOut:ev([.33,1.53,.69,.99])};function ey(t){return"function"==typeof t&&"applyToOptions"in t}class ex extends ed{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:s,pseudoElement:n,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!n,this.allowFlatten=r,this.options=t,tP("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return ey(t)&&em()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?em()?ef(e,i):"ease-out":ep(e)?ev(e):Array.isArray(e)?e.map(e=>t(e,i)||eg.easeOut):eg[e]}(o,n);Array.isArray(d)&&(u.easing=d);let c={delay:s,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};h&&(c.pseudoElement=h);let p=t.animate(u,c);return p}(e,i,s,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let t=eu(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ee(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&el())?(this.animation.timeline=t,tY):e(this)}}let eb=new Set(["opacity","clipPath","filter","transform"]),{schedule:ew}=tK(queueMicrotask,!1);function ej(){e=void 0}let eT={now:()=>(void 0===e&&eT.set(tQ.isProcessing||tX.useManualTiming?tQ.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(ej)}};class eP{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=eT.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=eT.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 en);let i=this.events[t].add(e);return"change"===t?()=>{i(),tG.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return n&&n.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=eT.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ek(t,e){return new eP(t,e)}let eS=[...tw,K,tn],eC=new WeakMap;function eE(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eM(t){return"string"==typeof t||Array.isArray(t)}let eA=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eL=["initial",...eA];function eV(t){return eE(t.animate)||eL.some(e=>eM(t[e]))}function eD(t){return!!(eV(t)||t.variants)}let eN={current:null},eR={current:!1},eB="u">typeof window;function eF(t){let e=[{},{}];
9return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eI(t,e,i,s){if("function"==typeof e){let[n,r]=eF(s);e=e(void 0!==i?i:t.custom,n,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,r]=eF(s);e=e(void 0!==i?i:t.custom,n,r)}return e}let eO=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eH={};class e${scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,skipAnimations:n,blockInitialAnimation:r,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=t4,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=eT.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tG.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=eV(e),this.isVariantNode=eD(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==l[t]&&ty(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,eC.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(eR.current||function(){if(eR.current=!0,eB)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>eN.current=t.matches;t.addEventListener("change",e),e()}else eN.current=!1}(),this.shouldReduceMotion=eN.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tq(this.notifyUpdate),tq(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&eb.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:s,times:n,ease:r,duration:a}=e.accelerate,o=new ex({element:this.current,name:t,keyframes:s,times:n,ease:r,duration:ee(a)}),l=i(o);this.valueSubscriptions.set(t,()=>{l(),o.cancel()});return}let s=E.has(t);s&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tG.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{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 eH){let e=eH[t];if(!e)continue;let{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){let e=this.features[t];
9e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tg()}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<eO.length;e++){let i=eO[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(t,e,i){for(let s in e){let n=e[s],r=i[s];if(ty(n))t.addValue(s,n);else if(ty(r))t.addValue(s,ek(n,{owner:t}));else if(r!==n)if(t.hasValue(s)){let e=t.getValue(s);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(s);t.addValue(s,ek(void 0!==e?e:n,{owner:t}))}}for(let s in i)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=ek(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let s,n;if("string"==typeof i&&(s=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s)||(n=i,/^0[^.\s]+$/u.test(n))))i=parseFloat(i);else{let s;s=i,!eS.find(tb(s))&&tn.test(e)&&(i=t9(t,e))}this.setBaseTarget(t,ty(i)?i.get():i)}return ty(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=eI(this.props,i,this.presenceContext?.custom);s&&(e=s[t])}if(i&&void 0!==e)return e;let s=this.getBaseTargetFromProps(this.props,t);return void 0===s||ty(s)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new en),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){ew.render(this.render)}}class eU extends e${constructor(){super(...arguments),this.KeyframeResolver=et}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;ty(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eW(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let ez=(t,e)=>e&&"number"==typeof t?e.transform(t):t,e_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eY=C.length;function eX(t,e,i){let{style:s,vars:n,transformOrigin:r}=t,a=!1,o=!1;for(let t in e){let i=e[t];if(E.has(t)){a=!0;continue}if(tS(t)){n[t]=i;continue}{let e=ez(i,td[t]);t.startsWith("origin")?(o=!0,r[t]=e):s[t]=e}}
9if(!e.transform&&(a||i?s.transform=function(t,e,i){let s="",n=!0;for(let r=0;r<eY;r++){let a=C[r],o=t[a];if(void 0===o)continue;let l=!0;if("number"==typeof o)l=o===+!!a.startsWith("scale");else{let t=parseFloat(o);l=a.startsWith("scale")?1===t:0===t}if(!l||i){let t=ez(o,td[a]);if(!l){n=!1;let e=e_[a]||a;s+=`${e}(${t}) `}i&&(e[a]=t)}}return s=s.trim(),i?s=i(e,n?"":s):n&&(s="none"),s}(e,t.transform,i):s.transform&&(s.transform="none")),o){let{originX:t="50%",originY:e="50%",originZ:i=0}=r;s.transformOrigin=`${t} ${e} ${i}`}}let eZ={offset:"stroke-dashoffset",array:"stroke-dasharray"},eK={offset:"strokeDashoffset",array:"strokeDasharray"},eG=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eq(t,{attrX:e,attrY:i,attrScale:s,pathLength:n,pathSpacing:r=1,pathOffset:a=0,...o},l,h,u){if(eX(t,o,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t of(d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=u?.transformBox??"fill-box",delete d.transformBox),eG))void 0!==d[t]&&(c[t]=d[t],delete d[t]);void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==s&&(d.scale=s),void 0!==n&&function(t,e,i=1,s=0,n=!0){t.pathLength=1;let r=n?eZ:eK;t[r.offset]=`${-s}`,t[r.array]=`${e} ${i}`}(d,n,r,a,!1)}let eQ=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"]),eJ=t=>"string"==typeof t&&"svg"===t.toLowerCase();function e0(t,{style:e,vars:i},s,n){let r,a=t.style;for(r in e)a[r]=e[r];for(r in n?.applyProjectionStyles(a,s),i)a.setProperty(r,i[r])}function e1(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let e2={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!z.test(t))return t;else t=parseFloat(t);let i=e1(t,e.target.x),s=e1(t,e.target.y);return`${i}% ${s}%`}},e3=(t,e,i)=>t+(e-t)*i,e5={borderRadius:{...e2,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:e2,borderTopRightRadius:e2,borderBottomLeftRadius:e2,borderBottomRightRadius:e2,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let s=tn.parse(t);if(s.length>5)return t;let n=tn.createTransformer(t),r=+("number"!=typeof s[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;s[0+r]/=a,s[1+r]/=o;let l=e3(a,o,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}};function e6(t,{layout:e,layoutId:i}){return E.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!e5[t]||"opacity"===t)}function e4(t,e,i){let s=t.style,n=e?.style,r={};if(!s)return r;for(let e in s)(ty(s[e])||n&&ty(n[e])||e6(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=s[e]);return r}function e8(t,e,i){let s=e4(t,e,i);for(let i in t)(ty(t[i])||ty(e[i]))&&(s[-1!==C.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return s}class e9 extends eU{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tg}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(E.has(e)){let t=tp(e);return t&&t.default||0}return e=eQ.has(e)?e:eW(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return e8(t,e,i)}build(t,e,i){eq(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){for(let i in e0(t,e,void 0,s),e.attrs)t.setAttribute(eQ.has(i)?i:eW(i),e.attrs[i])}mount(t){this.isSVGTag=eJ(t.tagName),super.mount(t)}}function e7({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function it(t){return void 0===t||1===t}function ie({scale:t,scaleX:e,scaleY:i}){return!it(t)||!it(e)||!it(i)}function ii(t){return ie(t)||is(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function is(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function ir(t,e,i,s,n){return void 0!==n&&(t=s+n*(t-s)),s+i*(t-s)+e}
9function ia(t,e=0,i=1,s,n){t.min=ir(t.min,e,i,s,n),t.max=ir(t.max,e,i,s,n)}function io(t,{x:e,y:i}){ia(t.x,e.translate,e.scale,e.originPoint),ia(t.y,i.translate,i.scale,i.originPoint)}function il(t,e){t.min=t.min+e,t.max=t.max+e}function ih(t,e,i,s,n=.5){let r=e3(t.min,t.max,n);ia(t,e,i,r,s)}function iu(t,e){ih(t.x,e.x,e.scaleX,e.scale,e.originX),ih(t.y,e.y,e.scaleY,e.scale,e.originY)}function id(t,e){return e7(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}class ic extends eU{constructor(){super(...arguments),this.type="html",this.renderInstance=e0}readValueFromInstance(t,e){if(E.has(e))return this.projection?.isProjecting?tO(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tH(i,e)})(t,e);{let i=window.getComputedStyle(t),s=(tS(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:e}){return id(t,e)}build(t,e,i){eX(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return e4(t,e,i)}}let ip=["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 im(t){if("string"!=typeof t||t.includes("-"));else if(ip.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let iv=(0,l.createContext)({strict:!1}),ig=(0,l.createContext)({});function iy(t){return Array.isArray(t)?t.join(" "):t}let ix=()=>({style:{},transform:{},transformOrigin:{},vars:{}});
9function ib(t,e,i){for(let s in e)ty(e[s])||e6(s,i)||(t[s]=e[s])}let iw=()=>({...ix(),attrs:{}}),ij=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function iT(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ij.has(t)}let iP=t=>!iT(t);try{r=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof r&&(iP=t=>t.startsWith("on")?!iT(t):r(t))}catch{}function ik(t){return ty(t)?t.get():t}let iS=t=>(e,i)=>{let s=(0,l.useContext)(ig),n=(0,l.useContext)(p),r=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,s,n){return{latestValues:function(t,e,i,s){let n={},r=s(t,{});for(let t in r)n[t]=ik(r[t]);let{initial:a,animate:o}=t,l=eV(t),h=eD(t);e&&h&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===a)?o:a;if(d&&"boolean"!=typeof d&&!eE(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let s=eI(t,e[i]);if(s){let{transitionEnd:t,transition:e,...i}=s;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(n[t]=e)}for(let e in t)n[e]=t[e]}}}return n}(i,s,n,t),renderState:e()}})(t,e,s,n);return i?r():u(r)},iC=iS({scrapeMotionValuesFromProps:e4,createRenderState:ix}),iE=iS({scrapeMotionValuesFromProps:e8,createRenderState:iw}),iM={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"]},iA=!1;function iL(){return!function(){if(iA)return;let t={};for(let e in iM)t[e]={isEnabled:t=>iM[e].some(e=>!!t[e])};eH=t,iA=!0}(),eH}let iV=Symbol.for("motionComponentSymbol"),iD="data-"+eW("framerAppearId"),iN=(0,l.createContext)({});function iR(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function iB(t,{forwardMotionProps:e=!1,type:i}={},s,n){s&&function(t){let e=iL();for(let i in t)e[i]={...e[i],...t[i]};eH=e}(s);let r=i?"svg"===i:im(t),o=r?iE:iC;function u(i,s){var u;let m,f,v,y={...(0,l.useContext)(g),...i,layoutId:function({layoutId:t}){let e=(0,l.useContext)(h).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:x}=y,b=function(t){let{initial:e,animate:i}=function(t,e){if(eV(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eM(e)?e:void 0,animate:eM(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,l.useContext)(ig));return(0,l.useMemo)(()=>({initial:e,animate:i}),[iy(e),iy(i)])}(i),w=o(i,x);if(!x&&d){(0,l.useContext)(iv).strict;let e=function(t){let{drag:e,layout:i}=iL();if(!e&&!i)return{};let s={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(y);m=e.MeasureLayout,b.visualElement=function(t,e,i,s,n,r){let{visualElement:a}=(0,l.useContext)(ig),o=(0,l.useContext)(iv),h=(0,l.useContext)(p),u=(0,l.useContext)(g),d=u.reducedMotion,m=u.skipAnimations,f=(0,l.useRef)(null),v=(0,l.useRef)(!1);s=s||o.renderer,!f.current&&s&&(f.current=s(t,{visualState:e,parent:a,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:d,skipAnimations:m,isSVG:r}),v.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let y=f.current,x=(0,l.useContext)(iN);y&&!y.projection&&n&&("html"===y.type||"svg"===y.type)&&function(t,e,i,s){let{layoutId:n,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:h,layoutCrossfade: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:n,layout:r,alwaysMeasureLayout:!!a||o&&iR(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:l,layoutRoot:h})}(f.current,i,n,x);let b=(0,l.useRef)(!1);(0,l.useInsertionEffect)(()=>{y&&b.current&&y.update(i,h)});let w=i[iD],j=(0,l.useRef)(!!w&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return c(()=>{v.current=!0,y&&(b.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),j.current&&y.animationState&&y.animationState.animateChanges())}),(0,l.useEffect)(()=>{y&&(!j.current&&y.animationState&&y.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),j.current=!1),y.enteringChildren=void 0)}),y}(t,w,y,n,e.ProjectionNode,r)}return(0,a.jsxs)(ig.Provider,{value:b,children:[m&&b.visualElement?(0,a.jsx)(m,{visualElement:b.visualElement,...y}
9):null,function(t,e,i,{latestValues:s},n,r=!1,a){let o=(a??im(t)?function(t,e,i,s){let n=(0,l.useMemo)(()=>{let i=iw();return eq(i,e,eJ(s),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ib(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i,s,n={},r=(i=t.style||{},ib(s={},i,t),Object.assign(s,function({transformTemplate:t},e){return(0,l.useMemo)(()=>{let i=ix();return eX(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),s);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n})(e,s,n,t),h=function(t,e,i){let s={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(iP(n)||!0===i&&iT(n)||!e&&!iT(n)||t.draggable&&n.startsWith("onDrag"))&&(s[n]=t[n]);return s}(e,"string"==typeof t,r),u=t!==l.Fragment?{...h,...o,ref:i}:{},{children:d}=e,c=(0,l.useMemo)(()=>ty(d)?d.get():d,[d]);return(0,l.createElement)(t,{...u,children:c})}(t,i,(u=b.visualElement,f=(0,l.useRef)(s),(0,l.useInsertionEffect)(()=>{f.current=s}),v=(0,l.useRef)(null),(0,l.useCallback)(t=>{t&&w.onMount?.(t),u&&(t?u.mount(t):u.unmount());let e=f.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(v.current=i)}else v.current?(v.current(),v.current=null):e(t);else e&&(e.current=t)},[u])),w,x,e,r)]})}u.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let m=(0,l.forwardRef)(u);return m[iV]=t,m}class iF{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iI(t,e,i){let s=t.getProps();return eI(s,e,void 0!==i?i:s.custom,t)}function iO(t,e){if(t?.inherit&&e){let{inherit:i,...s}=t;return{...e,...s}}return t}function iH(t,e){let i=t?.[e]??t?.default??t;return i!==t?iO(i,t):i}let i$=t=>Array.isArray(t);function iU(t,e){let i=t.getValue("willChange");if(ty(i)&&i.add)return i.add(e);if(!i&&tX.WillChange){let i=new tX.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let iW=(t,e)=>i=>e(t(i)),iz=(...t)=>t.reduce(iW);function i_(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function iY(t,e){return i=>i>0?e:t}let iX=(t,e,i)=>{let s=t*t,n=i*(e*e-s)+s;return n<0?0:Math.sqrt(n)},iZ=[H,O,Z];function iK(t){let e=iZ.find(e=>e.test(t));if(tT(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===Z&&(i=function({hue:t,saturation:e,lightness:i,alpha:s}){t/=360,i/=100;let n=0,r=0,a=0;if(e/=100){let s=i<.5?i*(1+e):i+e-i*e,o=2*i-s;n=i_(o,s,t+1/3),r=i_(o,s,t),a=i_(o,s,t-1/3)}else n=r=a=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*a),alpha:s}}(i)),i}let iG=(t,e)=>{let i=iK(t),s=iK(e);if(!i||!s)return iY(t,e);let n={...i};return t=>(n.red=iX(i.red,s.red,t),n.green=iX(i.green,s.green,t),n.blue=iX(i.blue,s.blue,t),n.alpha=e3(i.alpha,s.alpha,t),O.transform(n))},iq=new Set(["none","hidden"]);function iQ(t,e){return i=>e3(t,e,i)}function iJ(t){return"number"==typeof t?iQ:"string"==typeof t?tE(t)?iY:K.test(t)?iG:i2:Array.isArray(t)?i0:"object"==typeof t?K.test(t)?iG:i1:iY}function i0(t,e){let i=[...t],s=i.length,n=t.map((t,i)=>iJ(t)(t,e[i]));return t=>{for(let e=0;e<s;e++)i[e]=n[e](t);return i}}function i1(t,e){let i={...t,...e},s={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(s[n]=iJ(t[n])(t[n],e[n]));return t=>{for(let e in s)i[e]=s[e](t);return i}}let i2=(t,e)=>{let i=tn.createTransformer(e),s=tt(t),n=tt(e);if(!(s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length))return tT(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),iY(t,e);if(iq.has(t)&&!n.values.length||iq.has(e)&&!s.values.length)return iq.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return iz(i0(function(t,e){let i=[],s={color:0,var:0,number:0};for(let n=0;n<e.values.length;n++){let r=e.types[n],a=t.indexes[r][s[r]],o=t.values[a]??0;i[n]=o,s[r]++}return i}(s,n),n.values),i)};function i3(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?e3(t,e,i):iJ(t)(t,e)}let i5=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tG.update(e,t),stop:()=>tq(e),now:()=>tQ.isProcessing?tQ.timestamp:eT.now()}};function i6(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 i4(t,e,i){var s,n;let r=Math.max(e-5,0);return s=i-t(r),(n=e-r)?1e3/n*s:0}let i8=.01,i9=2,i7=.005,st=.5;function se(t,e){return t*Math.sqrt(1-e*e)}let si=["duration","bounce"],ss=["stiffness","damping","mass"];function sn(t,e){return e.some(e=>void 0!==t[e])}function sr(t=.3,e=.3){let i,s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:r}=s,a=s.keyframes[0],o=s.keyframes[s.keyframes.length-1],l={done:!1,value:a},{stiffness:h,damping:u,mass:d,duration:c,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!sn(t,ss)&&sn(t,si))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),s=i*i,n=2*M(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:1,stiffness:s,damping:n}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:s=1}){let n,r;tT(t<=ee(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=M(.05,1,a),t=M(.01,10,t/1e3),a<1?(n=e=>{let s=e*a,n=s*t;return .001-(s-i)/se(e,a)*Math.exp(-n)},r=e=>{let s=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-s),l=se(Math.pow(e,2),a);return(s*i+i-r)*o*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));
9let o=function(t,e,i){let s=i;for(let i=1;i<12;i++)s-=t(s)/e(s);return s}(n,r,5/t);if(t=ee(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(o,2)*s;return{stiffness:e,damping:2*a*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-((s.velocity||0)/1e3)}),f=p||0,v=u/(2*Math.sqrt(h*d)),g=o-a,y=Math.sqrt(h/d)/1e3,x=5>Math.abs(g);if(n||(n=x?i8:i9),r||(r=x?i7:st),v<1){let t=se(y,v);i=e=>o-Math.exp(-v*y*e)*((f+v*y*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===v)i=t=>o-Math.exp(-y*t)*(g+(f+y*g)*t);else{let t=y*Math.sqrt(v*v-1);i=e=>{let i=Math.exp(-v*y*e),s=Math.min(t*e,300);return o-i*((f+v*y*g)*Math.sinh(s)+t*g*Math.cosh(s))/t}}let b={calculatedDuration:m&&c||null,next:t=>{let e=i(t);if(m)l.done=t>=c;else{let s=0===t?f:0;v<1&&(s=0===t?ee(f):i4(i,t,e));let a=Math.abs(o-e)<=r;l.done=Math.abs(s)<=n&&a}return l.value=l.done?o:e,l},toString:()=>{let t=Math.min(i6(b),2e4),e=ef(e=>b.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return b}function sa({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:h=.5,restSpeed:u}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,v=p+f,g=void 0===a?v:a(v);g!==v&&(f=g-p);let y=t=>-f*Math.exp(-t/s),x=t=>g+y(t),b=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=h,m.value=m.done?g:i},w=t=>{let e;if(e=m.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;d=t,c=sr({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:i4(x,t,m.value),damping:n,stiffness:r,restDelta:h,restSpeed:u})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,b(t),w(t)),void 0!==d&&t>=d)?c.next(t-d):(e||b(t),m)}}}sr.applyToOptions=t=>{let e=function(t,e=100,i){let s=i({...t,keyframes:[0,e]}),n=Math.min(i6(s),2e4);return{type:"keyframes",ease:t=>s.next(n*t).value/e,duration:n/1e3}}(t,100,sr);return t.ease=e.ease,t.duration=ee(e.duration),t.type="keyframes",t};let so=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function sl(t,e,i,s){return t===e&&i===s?tY:n=>0===n||1===n?n:so(function(t,e,i,s,n){let r,a,o=0;do(r=so(a=e+(i-e)/2,s,n)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++o<12)return a}(n,0,1,t,i),e,s)}let sh=sl(.42,0,1,1),su=sl(0,0,.58,1),sd=sl(.42,0,.58,1),sc=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,sp=t=>e=>1-t(1-e),sm=sl(.33,1.53,.69,.99),sf=sp(sm),sv=sc(sf),sg=t=>(t*=2)<1?.5*sf(t):.5*(2-Math.pow(2,-10*(t-1))),sy=t=>1-Math.sin(Math.acos(t)),sx=sp(sy),sb=sc(sy),sw={linear:tY,easeIn:sh,easeInOut:sd,easeOut:su,circIn:sy,circInOut:sb,circOut:sx,backIn:sf,backInOut:sv,backOut:sm,anticipate:sg},sj=t=>{if(ep(t)){tP(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,s,n]=t;return sl(e,i,s,n)}return"string"==typeof t?(tP(void 0!==sw[t],`Invalid easing type '${t}'`,"invalid-easing-type"),sw[t]):t},sT=(t,e,i)=>{let s=e-t;return 0===s?1:(i-t)/s};function sP({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){var n;let r,a=Array.isArray(s)&&"number"!=typeof s[0]?s.map(sj):sj(s),o={done:!1,value:e[0]},l=function(t,e,{clamp:i=!0,ease:s,mixer:n}={}){let r=t.length;if(tP(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let s=[],n=i||tX.mix||i3,r=t.length-1;for(let i=0;i<r;i++){let r=n(t[i],t[i+1]);e&&(r=iz(Array.isArray(e)?e[i]||tY:e,r)),s.push(r)}return s}(e,s,n),l=o.length,h=i=>{if(a&&i<t[0])return e[0];let s=0;if(l>1)for(;s<t.length-2&&!(i<t[s+1]);s++);let n=sT(t[s],t[s+1],i);return o[s](n)};return i?e=>h(M(t[0],t[r-1],e)):h}((n=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let n=sT(0,e,s);t.push(e3(i,1,n))}}(r=[0],e.length-1),r),n.map(e=>e*t)),e,{ease:Array.isArray(a)?a:e.map(()=>a||sd).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=l(e),o.done=e>=t,o)}}let sk={decay:sa,inertia:sa,tween:sP,keyframes:sP,spring:sr};function sS(t){"string"==typeof t.type&&(t.type=sk[t.type])}let sC=t=>t/100;class sE extends ed{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==eT.now()&&this.tick(eT.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},ec.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;sS(t);let{type:e=sP,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:r=0}=t,{keyframes:a}=t,o=e||sP;o!==sP&&"number"!=typeof a[0]&&(this.mixKeyframes=iz(sC,i3(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===n&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=i6(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:s,mixKeyframes:n,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:o}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:h,repeat:u,repeatType:d,repeatDelay:c,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let y=this.currentTime,x=i;if(u){let t=Math.min(this.currentTime,s)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,u+1))%2&&("reverse"===d?(i=1-i,c&&(i-=c/a)):"mirror"===d&&(x=r)),y=M(0,1,i)*a}let b=g?{done:!1,value:h[0]}:x.next(y);n&&(b.value=n(b.value));let{done:w}=b;g||null===o||(w=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let j=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return j&&p!==sa&&(b.value=eu(h,this.options,f,this.speed)),m&&m(b.value),j&&this.finish(),b}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=ee(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(eT.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=i5,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(eT.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,ec.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}
9let sM={anticipate:sg,backInOut:sv,circInOut:sb};class sA extends ex{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in sM&&(t.ease=sM[t.ease])}(t),sS(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:s,element:n,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new sE({...r,autoplay:!1}),o=Math.max(10,eT.now()-this.startTime),l=M(0,10,o-10);e.setWithVelocity(a.sample(Math.max(0,o-l)).value,a.sample(o).value,l),a.stop()}}let sL=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tn.test(t)||"0"===t)&&!t.startsWith("url("));function sV(t){t.duration=0,t.type="keyframes"}let sD=new Set(["opacity","clipPath","filter","transform"]),sN=er(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class sR extends ed{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=eT.now();const d={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:n,repeatType:r,name:o,motionValue:l,element:h,...u},c=h?.KeyframeResolver||t4;this.keyframeResolver=new c(a,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),o,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,s){this.keyframeResolver=void 0;let{name:n,type:r,velocity:a,delay:o,isHandoff:l,onUpdate:h}=i;this.resolvedAt=eT.now(),!function(t,e,i,s){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=sL(n,e),o=sL(r,e);return tT(a===o,`You are trying to animate ${e} from "${n}" to "${r}". "${a?r:n}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(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||ey(i))&&s)}(t,n,r,a)&&((tX.instantAnimations||!o)&&h?.(eu(t,i,e)),t[0]=t[t.length-1],sV(i),i.repeat=0);let u={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},d=!l&&function(t){let{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:r,type:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return sN()&&i&&sD.has(i)&&("transform"!==i||!l)&&!o&&!s&&"mirror"!==n&&0!==r&&"inertia"!==a}(u),c=u.motionValue?.owner?.current,p=d?new sA({...u,element:c}):new sE(u);p.finished.then(()=>{this.notifyFinished()}).catch(tY),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),t3=!0,t6(),t5(),t3=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let sB={type:"spring",stiffness:500,damping:25,restSpeed:10},sF={type:"keyframes",duration:.8},sI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sO=t=>null!==t,sH=(t,e,i,s={},n,r)=>a=>{let o=iH(s,t)||{},l=o.delay||s.delay||0,{elapsed:h=0}=s;h-=ee(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-h,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:r?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:s,staggerDirection:n,repeat:r,repeatType:a,repeatDelay:o,from:l,elapsed:
9h,...u}){return!!Object.keys(u).length}(o)&&Object.assign(u,((t,{keyframes:e})=>e.length>2?sF:E.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:sB:sI)(t,u)),u.duration&&(u.duration=ee(u.duration)),u.repeatDelay&&(u.repeatDelay=ee(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(sV(u),0===u.delay&&(d=!0)),(tX.instantAnimations||tX.skipAnimations||n?.shouldSkipAnimations)&&(d=!0,sV(u),u.delay=0),u.allowFlatten=!o.type&&!o.ease,d&&!r&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"}){let s=t.filter(sO),n=e&&"loop"!==i&&e%2==1?0:s.length-1;return s[n]}(u.keyframes,o);if(void 0!==t)return void tG.update(()=>{u.onUpdate(t),u.onComplete()})}return o.isSync?new sE(u):new sR(u)};function s$(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:r,transitionEnd:a,...o}=e,l=t.getDefaultTransition();r=r?iO(r,l):l;let h=r?.reduceMotion;s&&(r=s);let u=[],d=n&&t.animationState&&t.animationState.getState()[n];for(let e in o){let s=t.getValue(e,t.latestValues[e]??null),n=o[e];if(void 0===n||d&&function({protectedKeys:t,needsAnimating:e},i){let s=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,s}(d,e))continue;let a={delay:i,...iH(r||{},e)},l=s.get();if(void 0!==l&&!s.isAnimating&&!Array.isArray(n)&&n===l&&!a.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){let i=t.props[iD];if(i){let t=window.MotionHandoffAnimation(i,e,tG);null!==t&&(a.startTime=t,c=!0)}}iU(t,e);let p=h??t.shouldReduceMotion;s.start(sH(e,s,n,p&&tx.has(e)?{type:!1}:a,t,c));let m=s.animation;m&&u.push(m)}if(a){let e=()=>tG.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:s={},...n}=iI(t,e)||{};for(let e in n={...n,...i}){var r;let i=i$(r=n[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,ek(i))}}(t,a)});u.length?Promise.all(u).then(e):e()}return u}function sU(t,e,i,s=0,n=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*s;return"function"==typeof i?i(r,a):1===n?r*s:o-r*s}function sW(t,e,i={}){let s=iI(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let r=s?()=>Promise.all(s$(t,s,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=n;return function(t,e,i=0,s=0,n=0,r=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(sW(l,e,{...a,delay:i+("function"==typeof s?0:s)+sU(t.variantChildren,l,s,n,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,s,r,a,o,i)}:()=>Promise.resolve(),{when:o}=n;if(!o)return Promise.all([r(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[r,a]:[a,r];return t().then(()=>e())}}let sz=eL.length;function s_(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}let sY=[...eA].reverse(),sX=eA.length;function sZ(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sK(){return{animate:sZ(!0),whileInView:sZ(),whileHover:sZ(),whileTap:sZ(),whileDrag:sZ(),whileFocus:sZ(),exit:sZ()}}let sG=0;function sq(t){return[t("x"),t("y")]}let sQ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),sJ=new Set(["INPUT","SELECT","TEXTAREA"]);function s0(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}let s1={x:!1,y:!1};function s2(t){return t.max-t.min}function s3(t,e,i,s=.5){t.origin=s,t.originPoint=e3(e.min,e.max,t.origin),t.scale=s2(i)/s2(e),t.translate=e3(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 s5(t,e,i,s){s3(t.x,e.x,i.x,s?s.originX:void 0),s3(t.y,e.y,i.y,s?s.originY:void 0)}function s6(t,e,i){t.min=i.min+e.min,t.max=t.min+s2(e)}function s4(t,e,i){t.min=e.min-i.min,t.max=t.min+s2(e)}function s8(t,e,i){s4(t.x,e.x,i.x),s4(t.y,e.y,i.y)}function s9(t){return m(t)&&"ownerSVGElement"in t}function s7(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let s=document;e&&(s=e.current);let n=i?.[t]??s.querySelectorAll(t);return n?Array.from(n):[]}return Array.from(t).filter(t=>null!=t)}
9let nt=new WeakMap,ne=(t,e,i)=>(s,n)=>n&&n[0]?n[0][t+"Size"]:s9(s)&&"getBBox"in s?s.getBBox()[e]:s[i],ni=ne("inline","width","offsetWidth"),ns=ne("block","height","offsetHeight");function nn({target:t,borderBoxSize:e}){nt.get(t)?.forEach(i=>{i(t,{get width(){return ni(t,e)},get height(){return ns(t,e)}})})}function nr(t){t.forEach(nn)}let na=new Set;function no(t,e){let n;return"function"==typeof t?(na.add(t),s||(s=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};na.forEach(e=>e(t))},window.addEventListener("resize",s)),()=>{na.delete(t),na.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(nr)),(n=s7(t)).forEach(t=>{let s=nt.get(t);s||(s=new Set,nt.set(t,s)),s.add(e),i?.observe(t)}),()=>{n.forEach(t=>{let s=nt.get(t);s?.delete(e),s?.size||i?.unobserve(t)})})}let nl=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function nh(t){return{point:{x:t.pageX,y:t.pageY}}}function nu(t,e,i,s){return s0(t,e,t=>nl(t)&&i(t,nh(t)),s)}let nd=({current:t})=>t?t.ownerDocument.defaultView:null,nc=(t,e)=>Math.abs(t-e),np=new Set(["auto","scroll"]);class nm{constructor(t,e,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=ng(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(nc(t.x,e.x)**2+nc(t.y,e.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:r}=i,{timestamp:a}=tQ;this.history.push({...r,timestamp:a});let{onStart:o,onMove:l}=this.handlers;s||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=nf(e,this.transformPagePoint),tG.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=ng("pointercancel"===t.type?this.lastMoveEventInfo:nf(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),s&&s(t,r)},!nl(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const o=nf(nh(t),this.transformPagePoint),{point:l}=o,{timestamp:h}=tQ;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,ng(o,this.history)),this.removeListeners=iz(nu(this.contextWindow,"pointermove",this.handlePointerMove),nu(this.contextWindow,"pointerup",this.handlePointerUp),nu(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(np.has(t.overflowX)||np.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:s.x-e.x,y:s.y-e.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,s),tG.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tq(this.updatePoint)}}function nf(t,e){return e?{point:e(t.point)}:t}function nv(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ng({point:t},e){return{point:t,delta:nv(t,ny(e)),offset:nv(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,s=ny(t);for(;e>=0&&(i=t[e],!(s.timestamp-i.timestamp>ee(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&s.timestamp-i.timestamp>2*ee(.1)&&(i=t[1]);let n=(s.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let r={x:(s.x-i.x)/n,y:(s.y-i.y)/n};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function ny(t){return t[t.length-1]}function nx(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 nb(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}
9function nw(t,e,i){return{min:nj(t,e),max:nj(t,i)}}function nj(t,e){return"number"==typeof t?t:t[e]||0}let nT=new WeakMap;class nP{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=tg(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=t=>{e&&this.snapToCursor(nh(t).point),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(s1[t])return null;else return s1[t]=!0,()=>{s1[t]=!1};return s1.x||s1.y?null:(s1.x=s1.y=!0,()=>{s1.x=s1.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),sq(t=>{let e=this.getAxisMotionValue(t).get()||0;if(W.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[t];s&&(e=s2(s)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&tG.update(()=>n(t,e),!1,!0),iU(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(s&&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}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&tG.update(()=>r(t,e),!1,!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new nm(t,{onSessionStart:n,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:nd(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,s=e||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:r}=s;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&tG.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:s}=this.getProps();if(!i||!nS(t,s,this.currentDirection))return;let n=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},s){return void 0!==e&&t<e?t=s?e3(e,t,s.min):Math.max(t,e):void 0!==i&&t>i&&(t=s?e3(i,t,s.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),n.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&iR(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:s,right:n}){return{x:nx(t.x,i,n),y:nx(t.y,e,s)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:nw(t,"left","right"),y:nw(t,"top","bottom")}}(e),s!==this.constraints&&!iR(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&sq(t=>{var e,s;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],s=this.constraints[t],n={},void 0!==s.min&&(n.min=s.min-e.min),void 0!==s.max&&(n.max=s.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iR(e))return!1;let s=e.current;tP(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;
9let r=function(t,e,i){let s=id(t,i),{scroll:n}=e;return n&&(il(s.x,n.offset.x),il(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),a=(t=n.layout.layoutBox,{x:nb(t.x,r.x),y:nb(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=e7(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(sq(a=>{if(!nS(a,e,this.currentDirection))return;let l=o&&o[a]||{};r&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[a]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,h)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iU(this.visualElement,t),i.start(sH(t,i,0,e,this.visualElement,!1))}stopAnimation(){sq(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){sq(e=>{let{drag:i}=this.getProps();if(!nS(e,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){let{min:i,max:r}=s.layout.layoutBox[e],a=n.get()||0;n.set(t[e]-e3(i,r,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iR(e)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};sq(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let r,a,o,l=e.get();s[t]=(i={min:l,max:l},n=this.constraints[t],r=.5,a=s2(i),(o=s2(n))>a?r=sT(n.min,n.max-a,i.min):a>o&&(r=sT(i.min,i.max-o,n.min)),M(0,1,r))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),sq(e=>{if(!nS(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:r}=this.constraints[e];i.set(e3(n,r,s[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;nT.set(this.visualElement,this);let e=this.visualElement.current,i=nu(e,"pointerdown",t=>{let{drag:i,dragListener:s=!0}=this.getProps(),n=t.target,r=n!==e&&(sJ.has(n.tagName)||!0===n.isContentEditable);i&&s&&!r&&this.start(t)}),s=()=>{var i,s,n;let r,a,{dragConstraints:o}=this.getProps();iR(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,s=o.current,r=no(i,nk(n=()=>this.scalePositionWithinConstraints())),a=no(s,nk(n)),t=()=>{r(),a()}))},{projection:n}=this.visualElement,r=n.addEventListener("measure",s);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),tG.read(s);let a=s0(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(sq(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{a(),i(),r(),o&&o(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:a}}}function nk(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function nS(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let nC=t=>(e,i)=>{t&&tG.update(()=>t(e,i),!1,!0)},nE={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var nM=l;let nA=!1;class nL extends nM.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=t;n&&(e.group&&e.group.add(n),i&&i.register&&s&&i.register(n),nA&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nE.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:s,isPresent:n}=this.props,{projection:r}=i;return r&&(r.isPresent=n,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),nA=!0,s||t.layoutDependency!==e||void 0===e||t.isPresent!==n?r.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?r.promote():r.relegate()||tG.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ew.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;nA=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nV(t){let[e,i]=T(),s=(0,nM.useContext)(h);return(0,a.jsx)(nL,{...t,layoutGroup:s,switchLayoutGroup:(0,nM.useContext)(iN),isPresent:e,safeToRemove:i})}let nD=["TopLeft","TopRight","BottomLeft","BottomRight"],nN=nD.length,nR=t=>"string"==typeof t?parseFloat(t):t,nB=t=>"number"==typeof t||z.test(t);function nF(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nI=nH(0,.5,sx),nO=nH(.5,.95,tY);function nH(t,e,i){return s=>s<t?0:s>e?1:i(sT(t,e,s))}function n$(t,e){t.min=e.min,t.max=e.max}function nU(t,e){n$(t.x,e.x),n$(t.y,e.y)}function nW(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nz(t,e,i,s,n){return t-=e,t=s+1/i*(t-s),void 0!==n&&(t=s+1/n*(t-s)),t}function n_(t,e,[i,s,n],r,a){!function(t,e=0,i=1,s=.5,n,r=t,a=t){if(W.test(e)&&(e=parseFloat(e),e=e3(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=e3(r.min,r.max,s);t===r&&(o-=e),t.min=nz(t.min,e,i,o,n),t.max=nz(t.max,e,i,o,n)}(t,e[i],e[s],e[n],e.scale,r,a)}let nY=["x","scaleX","originX"],nX=["y","scaleY","originY"];function nZ(t,e,i,s){n_(t.x,e,nY,i?i.x:void 0,s?s.x:void 0),n_(t.y,e,nX,i?i.y:void 0,s?s.y:void 0)}function nK(t){return 0===t.translate&&1===t.scale}function nG(t){return nK(t.x)&&nK(t.y)}function nq(t,e){return t.min===e.min&&t.max===e.max}function nQ(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nJ(t,e){return nQ(t.x,e.x)&&nQ(t.y,e.y)}function n0(t){return s2(t.x)/s2(t.y)}function n1(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class n2{constructor(){this.members=[]}add(t){ei(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let s=i.instance;s&&!1===s.isConnected&&!1!==i.isPresent&&!i.snapshot&&es(this.members,i)}t.scheduleRender()}remove(t){if(es(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
9}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t],s=i.instance;if(!1!==i.isPresent&&(!s||!1!==s.isConnected)){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();let s=i.options.layoutDependency,n=t.options.layoutDependency;if(void 0===s||void 0===n||s!==n){let s=i.instance;!(s&&!1===s.isConnected&&!i.snapshot)&&(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()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let n3=(t,e)=>t.depth-e.depth;class n5{constructor(){this.children=[],this.isDirty=!1}add(t){ei(this.children,t),this.isDirty=!0}remove(t){es(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(n3),this.isDirty=!1,this.children.forEach(t)}}let n6=["","X","Y","Z"],n4=0;function n8(t,e,i,s){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function n9({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(t={},i=e?.()){this.id=n4++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(re),this.nodes.forEach(rl),this.nodes.forEach(rh),this.nodes.forEach(ri)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new n5)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new en),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=s9(e)&&!(s9(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,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),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),t){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;tG.read(()=>{s=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==s){let e,r;s=t,this.root.updateBlockedByResize=!0,i&&i(),e=eT.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&(tq(r),n(i-250))},tG.setup(r,!0),i=()=>tq(r),nE.hasAnimatedSinceResize&&(nE.hasAnimatedSinceResize=!1,this.nodes.forEach(ro))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||rf,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=n.getProps(),l=!this.targetLayout||!nJ(this.targetLayout,s),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iH(r,"layout"),onPlay:a,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||ro(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tq(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
9h(ru),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 s=i.props[iD];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",tG,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(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 s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rn);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(rr);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ra),this.nodes.forEach(n7),this.nodes.forEach(rt)):this.nodes.forEach(rr),this.clearAllSnapshots();let t=eT.now();tQ.delta=M(0,1e3/60,t-tQ.timestamp),tQ.timestamp=t,tQ.isProcessing=!0,tJ.update.process(tQ),tJ.preRender.process(tQ),tJ.render.process(tQ),tQ.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ew.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rs),this.sharedNodes.forEach(rd)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tG.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tG.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||s2(this.snapshot.measuredBox.x)||s2(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=tg(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=s(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(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nG(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;t&&this.instance&&(e||ii(this.latestValues)||r)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),s=this.removeElementScroll(i);return t&&(s=this.removeTransform(s)),ry((e=s).x),ry(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return tg();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rb))){let{scroll:t}=this.root;t&&(il(e.x,t.offset.x),il(e.y,t.offset.y))}return e}removeElementScroll(t){let e=tg();if(nU(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:r}=s;s!==this.root&&n&&r.layoutScroll&&(n.wasRoot&&nU(e,t),il(e.x,n.offset.x),il(e.y,n.offset.y))}return e}applyTransform(t,e=!1){let i=tg();nU(i,t);for(let t=0;t<this.path.length;t++){let s=this.path[t];!e&&s.options.layoutScroll&&s.scroll&&s!==s.root&&iu(i,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),ii(s.latestValues)&&iu(i,s.latestValues)}return ii(this.latestValues)&&iu(i,this.latestValues),i}removeTransform(t){let e=tg();nU(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!ii(i.latestValues))continue;ie(i.latestValues)&&i.updateSnapshot();let s=tg();nU(s,i.measurePageBox()),nZ(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,s)}return ii(this.latestValues)&&nZ(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!==tQ.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:n}=this.options;if(!this.layout||!(s||n))return;this.resolvedRelativeTargetAt=tQ.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=tg(),this.targetWithTransforms=tg()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,s6(a.x,o.x,l.x),s6(a.y,o.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nU(this.target,this.layout.layoutBox),io(this.target,this.targetDelta)):nU(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||ie(this.parent.latestValues)||is(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tg(),this.relativeTargetOrigin=tg(),s8(this.relativeTargetOrigin,e,i),nU(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
9if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tQ.timestamp&&(i=!1),i)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;nU(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,s=!1){let n,r,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){r=(n=i[o]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&iu(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,io(t,r)),s&&ii(n.latestValues)&&iu(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=tg());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nW(this.prevProjectionDelta.x,this.projectionDelta.x),nW(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),s5(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&n1(this.projectionDelta.x,this.prevProjectionDelta.x)&&n1(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=tf(),this.projectionDelta=tf(),this.projectionDeltaWithTransform=tf()}setAnimationOrigin(t,e=!1){let i,s=this.snapshot,n=s?s.latestValues:{},r={...this.latestValues},a=tf();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=tg(),l=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(rm));this.animationProgress=0,this.mixTargetDelta=e=>{let s=e/1e3;if(rc(a.x,t.x,s),rc(a.y,t.y,s),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,p,m,f,v;s8(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,v=s,rp(p.x,m.x,f.x,v),rp(p.y,m.y,f.y,v),i&&(h=this.relativeTarget,c=i,nq(h.x,c.x)&&nq(h.y,c.y))&&(this.isProjectionDirty=!1),i||(i=tg()),nU(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,s,n,r){n?(t.opacity=e3(0,i.opacity??1,nI(s)),t.opacityExit=e3(e.opacity??1,0,nO(s))):r&&(t.opacity=e3(e.opacity??1,i.opacity??1,s));for(let n=0;n<nN;n++){let r=`border${nD[n]}Radius`,a=nF(e,r),o=nF(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||nB(a)===nB(o)?(t[r]=Math.max(e3(nR(a),nR(o),s),0),(W.test(o)||W.test(a))&&(t[r]+="%")):t[r]=o)}(e.rotate||i.rotate)&&(t.rotate=e3(e.rotate||0,i.rotate||0,s))}(r,n,this.latestValues,s,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=s},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tq(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tG.update(()=>{var e,i,s;let n;nE.hasAnimatedSinceResize=!0,ec.layout++,this.motionValue||(this.motionValue=ek(0)),this.currentAnimation=(e=this.motionValue,i=[0,1e3],s={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ec.layout--},onComplete:()=>{ec.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(n=ty(e)?e:ek(e)).start(sH("",n,i,s)),n.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:s,latestValues:n}=t;if(e&&i&&s){if(this!==t&&this.layout&&s&&rx(this.options.animationType,this.layout.layoutBox,s.layoutBox)){i=this.target||tg();let e=s2(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let s=s2(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+s}nU(e,i),iu(e,n),s5(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new n2),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
9return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.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 s={};i.z&&n8("z",t,s,this.animationValues);for(let e=0;e<n6.length;e++)n8(`rotate${n6[e]}`,t,s,this.animationValues),n8(`skew${n6[e]}`,t,s,this.animationValues);for(let e in t.render(),s)t.setStaticValue(e,s[e]),this.animationValues&&(this.animationValues[e]=s[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=ik(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ik(e?.pointerEvents)||""),this.hasProjected&&!ii(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let s="",n=t.x.translate/e.x,r=t.y.translate/e.y,a=i?.z||0;if((n||r||a)&&(s=`translate3d(${n}px, ${r}px, ${a}px) `),(1!==e.x||1!==e.y)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:r,skewX:a,skewY:o}=i;t&&(s=`perspective(${t}px) ${s}`),e&&(s+=`rotate(${e}deg) `),n&&(s+=`rotateX(${n}deg) `),r&&(s+=`rotateY(${r}deg) `),a&&(s+=`skewX(${a}deg) `),o&&(s+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(s+=`scale(${o}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(r=i(n,r)),t.transform=r;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,s.animationValues?t.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:t.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,e5){if(void 0===n[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=e5[e],l="none"===r?n[e]:i(n[e],s);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=s===this?ik(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(rn),this.root.sharedNodes.clear()}}}function n7(t){t.updateLayout()}function rt(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,r=e.source!==t.layout.source;"size"===n?sq(t=>{let s=r?e.measuredBox[t]:e.layoutBox[t],n=s2(s);s.min=i[t].min,s.max=s.min+n}):rx(n,e.layoutBox,i)&&sq(s=>{let n=r?e.measuredBox[s]:e.layoutBox[s],a=s2(i[s]);n.max=n.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[s].max=t.relativeTarget[s].min+a)});let a=tf();s5(a,i,e.layoutBox);let o=tf();r?s5(o,t.applyTransform(s,!0),e.measuredBox):s5(o,i,e.layoutBox);let l=!nG(a),h=!1;if(!t.resumeFrom){let s=t.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let a=tg();s8(a,e.layoutBox,n.layoutBox);let o=tg();s8(o,i,r.layoutBox),nJ(a,o)||(h=!0),s.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=s)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function re(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
9isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ri(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rs(t){t.clearSnapshot()}function rn(t){t.clearMeasurements()}function rr(t){t.isLayoutDirty=!1}function ra(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ro(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rl(t){t.resolveTargetDelta()}function rh(t){t.calcProjection()}function ru(t){t.resetSkewAndRotation()}function rd(t){t.removeLeadSnapshot()}function rc(t,e,i){t.translate=e3(e.translate,0,i),t.scale=e3(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rp(t,e,i,s){t.min=e3(e.min,i.min,s),t.max=e3(e.max,i.max,s)}function rm(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rf={duration:.45,ease:[.4,0,.1,1]},rv=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rg=rv("applewebkit/")&&!rv("chrome/")?Math.round:tY;function ry(t){t.min=rg(t.min),t.max=rg(t.max)}function rx(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(n0(e)-n0(i)))}function rb(t){return t!==t.root&&t.scroll?.wasRoot}let rw=n9({attachResizeListener:(t,e)=>s0(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rj={current:void 0},rT=n9({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rj.current){let t=new rw({});t.mount(window),t.setOptions({layoutScroll:!0}),rj.current=t}return rj.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rP(t,e){let i=s7(t),s=new AbortController;return[i,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function rk(t,e,i){let{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&tG.postRender(()=>n(e,nh(e)))}let rS=(t,e)=>!!e&&(t===e||rS(t,e.parentElement)),rC=new WeakSet;function rE(t){return e=>{"Enter"===e.key&&t(e)}}function rM(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function rA(t){return nl(t)&&!(s1.x||s1.y)}let rL=new WeakSet;function rV(t,e,i){let{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&tG.postRender(()=>n(e,nh(e)))}let rD=new WeakMap,rN=new WeakMap,rR=t=>{let e=rD.get(t.target);e&&e(t)},rB=t=>{t.forEach(rR)},rF={some:0,all:1},rI=function(t,e){if("u"<typeof Proxy)return iB;let i=new Map,s=(i,s)=>iB(i,s,t,e);return new Proxy((t,e)=>s(t,e),{get:(n,r)=>"create"===r?s:(i.has(r)||i.set(r,iB(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends iF{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 s;if(t.notify("AnimationStart",e),Array.isArray(e))s=Promise.all(e.map(e=>sW(t,e,i)));else if("string"==typeof e)s=sW(t,e,i);else{let n="function"==typeof e?iI(t,e,i.custom):e;s=Promise.all(s$(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=sK(),s=!0,n=e=>(i,s)=>{let n=iI(t,s,"exit"===e?t.presenceContext?.custom:void 0);if(n){let{transition:t,transitionEnd:e,...s}=n;i={...i,...s,...e}}return i};function r(r){let{props:a}=t,o=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<sz;t++){let s=eL[t],n=e.props[s];(eM(n)||!1===n)&&(i[s]=n)}return i}(t.parent)||{},l=[],h=new Set,u={},d=1/0;for(let e=0;e<sX;e++){var c,p;let m=sY[e],f=i[m],v=void 0!==a[m]?a[m]:o[m],g=eM(v),y=m===r?f.isActive:null;!1===y&&(d=e);let x=v===o[m]&&v!==a[m]&&g;if(x&&s&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...u},!f.isActive&&null===y||!v&&!f.prevProp||eE(v)||"boolean"==typeof v)continue;if("exit"===m&&f.isActive&&!0!==y){f.prevResolvedValues&&(u={...u,...f.prevResolvedValues});continue}let b=(c=f.prevProp,"string"==typeof(p=v)?p!==c:!!Array.isArray(p)&&!s_(p,c)),w=b||m===r&&f.isActive&&!x&&g||e>d&&g,j=!1,T=Array.isArray(v)?v:[v],P=T.reduce(n(m),{});!1===y&&(P={});let{prevResolvedValues:k={}}=f,S={...k,...P},C=e=>{w=!0,h.has(e)&&(j=!0,h.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);
9i&&(i.liveStyle=!1)};for(let t in S){let e=P[t],i=k[t];if(!u.hasOwnProperty(t))(i$(e)&&i$(i)?s_(e,i):e===i)?void 0!==e&&h.has(t)?C(t):f.protectedKeys[t]=!0:null!=e?C(t):h.add(t)}f.prevProp=v,f.prevResolvedValues=P,f.isActive&&(u={...u,...P}),s&&t.blockInitialAnimation&&(w=!1);let E=x&&b,M=!E||j;w&&M&&l.push(...T.map(e=>{let i={type:m};if("string"==typeof e&&s&&!E&&t.manuallyAnimateOnMount&&t.parent){let{parent:s}=t,n=iI(s,e);if(s.enteringChildren&&n){let{delayChildren:e}=n.transition||{};i.delay=sU(s.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof a.initial){let i=iI(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let s=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=s??null}),l.push({animation:e})}let m=!!l.length;return s&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(m=!1),s=!1,m?e(l):Promise.resolve()}return{animateChanges:r,setActive:function(e,s){if(i[e].isActive===s)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,s)),i[e].isActive=s;let n=r(e);for(let t in i)i[t].protectedKeys={};return n},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=sK()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();eE(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iF{constructor(){super(...arguments),this.id=sG++}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 s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
9e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends iF{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:r="some",once:a}=i,o={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:rF[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=e?i:s;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;rN.has(i)||rN.set(i,{});let s=rN.get(i),n=JSON.stringify(e);return s[n]||(s[n]=new IntersectionObserver(rB,{root:t,...e})),s[n]}(o),rD.set(t,l),e.observe(t),()=>{rD.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 iF{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[s,n,r]=rP(t,i),a=t=>{let s=t.currentTarget;if(!rA(t)||rL.has(t))return;rC.add(s),i.stopPropagation&&rL.add(t);let r=e(s,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),rC.has(s)&&rC.delete(s),rA(t)&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,s===window||s===document||i.useGlobalTarget||rS(s,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",l,n)};return s.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",a,n),f(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let s=rE(()=>{if(rC.has(i))return;rM(i,"down");let t=rE(()=>{rM(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rM(i,"cancel"),e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)})(t,n)),sQ.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(rV(this.node,e,"Start"),(t,{success:e})=>rV(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iF{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=iz(s0(this.node.current,"focus",()=>this.onFocus()),s0(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iF{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[s,n,r]=rP(t,i);return s.forEach(t=>{let i,s=!1,r=!1,a=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},o=t=>{s=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),r&&(r=!1,a(t))},l=t=>{if("touch"!==t.pointerType){if(s){r=!0;return}a(t)}};t.addEventListener("pointerenter",s=>{if("touch"===s.pointerType||s1.x||s1.y)return;r=!1;let a=e(t,s);"function"==typeof a&&(i=a,t.addEventListener("pointerleave",l,n))},n),t.addEventListener("pointerdown",()=>{s=!0,window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",o,n)},n)}),r}(t,(t,e)=>(rk(this.node,e,"Start"),t=>rk(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iF{constructor(){super(...arguments),this.removePointerDownListener=tY}onPointerDown(t){this.session=new nm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nd(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:nC(t),onStart:nC(e),onMove:nC(i),onEnd:(t,e)=>{delete this.session,s&&tG.postRender(()=>s(t,e))}}}mount(){this.removePointerDownListener=nu(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 iF{constructor(t){super(t),this.removeGroupControls=tY,this.removeListeners=tY,this.controls=new nP(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tY}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:rT,MeasureLayout:nV},layout:{ProjectionNode:rT,MeasureLayout:nV}},(t,e)=>e.isSVG??im(t)?new e9(e):new ic(e,{allowProjection:t!==l.Fragment}));var rO=t.i(250646),rH=t.i(922062);let r$={activeId:void 0,openPanel:()=>null,isOpen:!1,openOnHover:!1,closePanel:()=>null,closePanelDelayed:()=>null,cancelClose:()=>null,providerId:""},rU=(0,l.createContext)(r$),rW=()=>{let t=(0,l.useContext)(rU);if(!t)throw Error("useDropdownPanel must be used within a DropdownPanelProvider");return t};t.s(["DropdownPanel",0,t=>{let{activeId:e,providerId:i,closePanelDelayed:s,cancelClose:n,openOnHover:r,closePanel:o}=rW();return(0,rO.useEventListener)("keydown",i=>{t.closeOnEscape&&"Escape"===i.key&&e&&o()}),(0,a.jsx)(S,{mode:"popLayout",initial:!1,children:!!e&&(0,a.jsx)("div",{...r&&{onMouseLeave:s,onMouseEnter:n},className:"absolute right-0 left-0 z-50 overflow-hidden",children:(0,a.jsx)(rI.div,{[`data-dropdown-element-${i}`]:"true",initial:{opacity:0,translateY:-10}
9,animate:{opacity:1,translateY:0},exit:{opacity:0,translateY:-10},transition:{ease:"easeOut",duration:.15},className:t.className,children:"function"==typeof t.children?t.children(e):t.children})})})},"DropdownPanelProvider",0,t=>{let[e,i]=(0,l.useState)(r$.activeId),s=(0,l.useRef)(null),n=()=>{r(),i(void 0)},r=()=>{s.current&&clearTimeout(s.current)};return(0,rO.useEventListener)("mouseup",e=>{let i=e.target;!i?.isConnected||i.parentElement?.closest(`[data-dropdown-element-${t.providerId}]`)||n()}),(0,l.useEffect)(()=>()=>r()),(0,a.jsx)(rU.Provider,{value:{activeId:e,openOnHover:!!t.openOnHover,openPanel:t=>{r(),i(t)},closePanel:n,closePanelDelayed:()=>{s.current=setTimeout(()=>i(void 0),t.closeDelay||300)},cancelClose:r,isOpen:!!e,providerId:t.providerId},children:t.children})},"DropdownPanelTrigger",0,t=>{let{activeId:e,openPanel:i,providerId:s,closePanel:n,closePanelDelayed:r,cancelClose:o,openOnHover:l}=rW(),h=t.id??"default",u=h===e;return(0,a.jsx)("div",{...l&&{onMouseEnter:u?o:()=>i(h),onMouseLeave:r},onClick:u?n:()=>i(h),[`data-dropdown-element-${s}`]:"true",className:(0,rH.cn)(t.className),children:t.trigger(u)})},"useDropdownPanel",0,rW],154198)},52475,t=>{"use strict";var e=t.i(468679),i=t.i(303725),s=t.i(361364);let n=()=>(0,e.jsxs)("svg",{width:"124",height:"38",viewBox:"0 0 124 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,e.jsx)("path",{d:"M70.0094 0H0.000976562V37.625H70.0094V0Z",fill:"#FFBD00"}),(0,e.jsx)("path",{d:"M16.7617 13.0156L15.8063 19.0501C15.5877 20.4305 15.3145 21.797 14.0825 22.8359C13.0462 23.7183 11.5876 24.0316 10.3352 24.0316C9.08278 24.0316 7.72323 23.7183 6.96636 22.8359C6.06337 21.7969 6.22278 20.4304 6.44136 19.0501L7.39673 13.0156H10.1863L9.29181 18.6658C9.07096 20.0605 8.92948 21.5834 10.7228 21.5834C12.5162 21.5834 12.8569 20.0606 13.0777 18.6658L13.9723 13.0156H16.7619H16.7617Z",fill:"black"}),(0,e.jsx)("path",{d:"M20.3661 17.3844H20.3946C21.1321 16.502 21.9053 16.2031 22.9158 16.2031C24.8798 16.2031 25.4666 17.4413 25.1827 19.2345L24.4684 23.7461H21.8782L22.4414 20.1881C22.5519 19.4907 22.8595 18.2669 21.5785 18.2669C20.5253 18.2669 20.1026 19.0495 19.9583 19.9604L19.3589 23.7461H16.7686L17.9245 16.4451H20.5147L20.3661 17.3844Z",fill:"black"}),(0,e.jsx)("path",{d:"M35.0075 20.1026C34.6152 22.5791 32.3427 23.9882 29.9943 23.9882C27.6602 23.9882 25.8173 22.5933 26.2116 20.1026C26.6059 17.6121 28.8784 16.2031 31.2268 16.2031C33.5752 16.2031 35.4016 17.6121 35.0074 20.1026H35.0075ZM28.9443 20.1026C28.7978 21.0278 29.2972 21.7393 30.3503 21.7393C31.4035 21.7393 32.1281 21.0278 32.2746 20.1026C32.4166 19.2058 31.924 18.4518 30.8709 18.4518C29.8177 18.4518 29.0862 19.2058 28.9443 20.1026Z",fill:"black"}),(0,e.jsx)("path",{d:"M63.7375 6.271H38.6543V31.3544H63.7375V6.271Z",fill:"#DB002A"}),(0,e.jsx)("path",{d:"M55.8679 8.82129L55.1868 10.7904L54.2124 13.4871L54.1152 13.7226C53.7858 14.5238 53.4742 15.2805 52.8475 15.8587C52.1539 16.4835 51.0263 16.6359 50.1557 16.2264C48.9053 15.4508 48.8849 13.8778 48.8642 
912.2126L48.8607 11.9651C48.8607 11.9651 48.8575 11.7183 48.8575 11.7192L48.8534 11.3477C48.8534 11.3477 43.8035 11.3476 43.7984 11.3477L43.7813 11.9548C43.7394 13.3771 43.8101 14.544 43.996 15.5221C44.2382 17.454 45.3134 19.1706 46.8037 20.075L42.5166 27.9902L42.0635 28.8542H47.6719L47.8454 28.5758L51.3648 22.1369C53.3296 23.1662 53.6186 25.7115 53.8743 27.9766L53.9171 28.3519C53.9171 28.3519 53.979 28.8554 53.9788 28.8542H59.1586L59.1341 28.2583C59.0255 25.4383 58.52 23.2207 57.5867 21.4744C57.2194 20.7986 56.6951 20.1412 56.0729 19.5683C56.6301 19.1628 57.1087 18.6696 57.4407 18.1469C58.4755 16.4909 59.1022 14.6589 59.7082 12.8871C59.7082 12.8871 60.2932 11.1676 61.1038 8.82129H55.8679Z",fill:"white"}),(0,e.jsx)("path",{d:"M123.543 15.9194L119.964 23.581H118.334L116.407 15.9194H118.301L119.395 21.3263L121.617 15.9194H123.543Z",fill:"black"}),(0,e.jsx)("path",{d:"M113.089 20.0129C113.899 20.0129 114.468 19.3234 114.468 18.5572C114.468 17.9114 114.052 17.3642 113.373 17.3642H112.158L111.874 20.0129H113.089ZM109.729 23.581L110.538 15.9194H113.756C115.332 15.9194 116.263 17.0687 116.263 18.4368C116.263 19.6189 115.573 20.6696 114.468 21.1621L115.748 23.581H113.691L112.552 21.4577H111.721L111.502 23.581H109.729Z",fill:"black"}),(0,e.jsx)("path",{d:"M109.097 17.3423H106.196L106.01 19.0826H108.911L108.769 20.4726H105.868L105.693 22.1581H108.593L108.44 23.581H103.767L104.577 15.9194H109.25L109.097 17.3423Z",fill:"black"}),(0,e.jsx)("path",{d:"M104.001 15.9194L100.422 23.581H98.7916L96.8652 15.9194H98.7587L99.8532 21.3263L102.075 15.9194H104.001Z",fill:"black"}),(0,e.jsx)("path",{d:"M93.7109 23.581L94.0283 20.5383H91.3796L91.0622 23.581H89.2891L90.099 15.9194H91.8721L91.5438 19.0169H94.1925L94.5208 15.9194H96.283L95.473 23.581H93.7109Z",fill:"black"}),(0,e.jsx)("path",{d:"M85.5975 20.0129C86.4074 20.0129 86.9765 19.3234 86.9765 18.5572C86.9765 17.9114 86.5606 17.3642 85.882 17.3642H84.6671L84.3825 20.0129H85.5975ZM82.2373 23.581L83.0472 15.9194H86.2651C87.8412 15.9194 88.7715 17.0687 88.7715 18.4368C88.7715 19.6189 88.082 20.6696 8
96.9765 21.1621L88.2571 23.581H86.1994L85.0611 21.4577H84.2293L84.0104 23.581H82.2373Z",fill:"black"}),(0,e.jsx)("path",{d:"M81.6057 17.3423H78.7052L78.5191 19.0826H81.4196L81.2773 20.4726H78.3769L78.2017 22.1581H81.1022L80.949 23.581H76.2754L77.0853 15.9194H81.7589L81.6057 17.3423Z",fill:"black"})]}),r=()=>(0,e.jsxs)("svg",{width:"70",height:"38",viewBox:"0 0 70 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,e.jsxs)("g",{clipPath:"url(#clip0_28_7705)",children:[(0,e.jsx)("path",{d:"M70 0.189453H0V37.8099H70V0.189453Z",fill:"#FFBD00"}),(0,e.jsx)("path",{d:"M16.7594 13.2021L15.8042 19.2359C15.5856 20.6162 15.3124 21.9825 14.0806 23.0212C13.0444 23.9035 11.586 24.2168 10.3337 24.2168C9.08147 24.2168 7.72208 23.9035 6.9653 23.0212C6.06242 21.9824 6.22181 20.6161 6.44036 19.2359L7.39562 13.2021H10.1849L9.29047 18.8517C9.06965 20.2462 8.92818 21.7689 10.7213 21.7689C12.5145 21.7689 12.8551 20.2463 13.076 18.8517L13.9704 13.2021H16.7596H16.7594Z",fill:"black"}),(0,e.jsx)("path",{d:"M20.3637 17.5717H20.3922C21.1296 16.6894 21.9027 16.3906 22.9131 16.3906C24.8769 16.3906 25.4636 17.6286 25.1797 19.4216L24.4655 23.9327H21.8756L22.4388 20.3752C22.5492 19.6779 22.8568 18.4541 21.576 18.4541C20.5229 18.4541 20.1002 19.2367 19.956 20.1475L19.3566 23.9327H16.7666L17.9224 16.6326H20.5123L20.3637 17.5717Z",fill:"black"}),(0,e.jsx)("path",{d:"M35.0026 20.2896C34.6102 22.7658 32.338 24.1747 29.9899 24.1747C27.6561 24.1747 25.8134 22.78 26.2077 20.2896C26.602 17.7994 28.8742 16.3906 31.2223 16.3906C33.5704 16.3906 35.3966 17.7994 35.0025 20.2896H35.0026ZM28.94 20.2896C28.7936 21.2147 29.2929 21.9261 30.3459 21.9261C31.3989 21.9261 32.1235 21.2147 32.27 20.2896C32.412 19.3929 31.9194 18.639 30.8664 18.639C29.8134 18.639 29.0819 19.3929 28.94 20.2896Z",fill:"black"}),(0,e.jsx)("path",{d:"M63.7306 6.45898H38.6504V31.5394H63.7306V6.45898Z",fill:"#DB002A"}),(0,e.jsx)("path",{d:"M55.8604 9.00879L55.1793 10.9777L54.2051 13.674L54.1079 13.9095C53.7785 14.7106 53.467 15.4673 52.8404 16.0454C52.1468 16.6701 51.0194 16.8224 50.1489 16.413C48.8986 15.6375 48.8782 14.0647 48.8575 12.3997L48.854 12.1522C48.854 12.1522 48.8508 11.9055 48.8508 11.9064L48.8467 11.5349C48.8467 11.5349 43.7974 11.5348 43.7923 11.5349L43.7753 12.1419C43.7333 13.564 43.804 14.7308 43.9899 15.7088C44.2321 17.6404 45.3071 19.3569 46.7973 20.2612L42.5107 28.1754L42.0576 29.0393H47.6654L47.8389 28.7609L51.3578 22.3228C53.3224 23.352 53.6113 25.897 53.867 28.1618L53.9098 28.537C53.9098 28.537 53.9717 29.0405 53.9715 29.0393H59.1507L59.1262 28.4435C59.0176 25.6238 58.5122 23.4064 57.579 21.6604C57.2117 20.9847 56.6875 20.3273 56.0654 19.7545C56.6225 19.349 57.101 18.8559 57.433 18.3332C58.4677 16.6775 59.0943 14.8457 59.7002 13.0741C59.7002 13.0741 60.2851 11.3548 61.0957 9.00879H55.8604Z",fill:"white"})]}),(0,e.jsx)("defs",{children:(0,e.jsx)("clipPath",{id:"clip0_28_7705",children:(0,e.jsx)("rect",{width:"70",height:"37.6205",fill:"white",transform:"translate(0 0.189453)"})})})]});t.s(["LogoButton",0,()=>{let{isBusiness:t}=(0,s.useIsBusiness)();return(0,e.jsx)("div",{className:"inline-block h-[38px]",children:t?(0,e.jsx)(i.default,{href:"/erhverv",children:(0,e.jsx)(n,{})}):(0,e.jsx)(i.default,{href:"/",children:(0,e.jsx)(r,{})})})}],52475)},887250,t=>{"use strict";t.i(496197);var e=t.i(468679),i=t.i(852275),s=t.i(271716),n=t.i(552296);t.i(4166);var r=t.i(315480),a=t.i(303725),o=t.i(154198),l=t.i(361364),h=t.i(641803),u=t.i(922062),d=t.i(52475),c=t.i(637966);let p=t=>{let{closePanel:i}=(0,o.useDropdownPanel)();return(0,e.jsx)(s.Button,{variant:"unstyled",size:"unstyled",className:"bg-background flex items-start justify-start gap-4 roun
9ded-lg p-4 text-start text-base font-normal whitespace-normal hover:bg-neutral-100",asChild:!0,onClick:()=>{t.onClick?.(),i()},children:(0,e.jsxs)(a.default,{target:t.newTab?"_blank":void 0,href:t.to,children:[(0,e.jsx)("div",{className:"min-h-9 min-w-8",children:t.icon?.url&&(0,e.jsx)(c.default,{src:t.icon.url,alt:t.title,width:32,height:36,className:"object-contain"})}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"mb-2 text-lg text-black",children:t.title}),(0,e.jsx)("div",{className:"text-neutral-400",children:t.description})]})]})})},m=({children:t,isOpen:i,...n})=>(0,e.jsxs)(s.Button,{className:(0,u.cn)("h-10 rounded-md px-4 text-[15px]",i&&"bg-muted"),variant:"selector",...n,children:[(0,e.jsx)(r.default,{size:16,className:(0,u.cn)("mr-2 transition-transform duration-300",i?"rotate-180 transform":"rotate-0 transform"),icon:"chevron-down"}),t]}),f=t=>{let{closePanel:n}=(0,o.useDropdownPanel)(),r=(t,e)=>{(0,i.sendGTMEvent)({event:"nav_link_click",link_url:`https://unoxmobility.dk${t}`,link_text:e})};return(0,e.jsxs)("div",{className:"bg-background shadow-dropdown mx-auto -mt-px mb-4 grid w-auto max-w-(--breakpoint-xl) gap-x-12 gap-y-6 rounded-b-xl border-transparent p-10 md:grid-cols-2 lg:grid-cols-3",children:[t.items.map((t,i)=>(0,e.jsx)(p,{...t,onClick:()=>r(t.to,t.title)},i)),t.footerLinkHref&&t.footerLinkTitle?(0,e.jsx)("div",{children:(0,e.jsx)(s.Button,{variant:"link",className:"font-normal text-neutral-500 underline",onClick:()=>{n(),r(t.footerLinkHref??"",t.footerLinkTitle??"")},asChild:!0,children:(0,e.jsx)(a.default,{href:t.footerLinkHref,children:t.footerLinkTitle})})}):null]})};t.s(["NavigationDesktopBottom",0,()=>{let{isBusiness:t}=(0,l.useIsBusiness)(),{navigationPrivateDropdown:c,navigationBusinessDropdown:p,navigationPrivate:v,navigationBusiness:g,navigationBusinessSide:y,navigationBusinessSideDropdown:x,navigationPrivateSide:b,navigationPrivateSideDropdown:w}=(0,h.useNavigationMenus)(),j=t?p:c,T=(t,e)=>{let s=t.startsWith("https://")?t:`https://unoxmobility.dk${t}`;(0,i.sendGTMEvent)({event:"nav_link_click",link_url:s,link_text:e})};return(0,e.jsxs)(o.DropdownPanelProvider,{providerId:"menu-cards",openOnHover:!0,children:[(0,e.jsx)("div",{className:"border-muted border-b",children:(0,e.jsxs)("div",{className:"flex h-16 items-center justify-between gap-2 px-8",children:[(0,e.jsx)("div",{className:"flex w-full items-center",children:(0,e.jsx)(d.LogoButton,{})}),(0,e.jsxs)("div",{className:"flex gap-6",children:[j?.map((t,i)=>(0,e.jsx)(o.DropdownPanelTrigger,{trigger:i=>(0,e.jsx)(m,{isOpen:i,children:t.title}),id:t.id},i)),(t?g:v)?.map((t,i)=>(0,e.jsx)(s.Button,{className:"h-10 rounded-md px-4 text-[15px]",variant:"selector",asChild:!0,onClick:()=>T(t.to,t.title),children:(0,e.jsx)(a.default,{target:t.newTab?"_blank":void 0,href:t.to,children:t.title})},i))]}),(0,e.jsxs)("div",{className:"flex w-full justify-end gap-2",children:[(t?x:w)?.map((t,i)=>(0,e.jsx)(n.Dropdown,{align:"start",items:t.items.map(t=>({label:t.title,href:t.to,onClick:()=>{T(t.to,t.title)}})),children:(0,e.jsxs)(s.Button,{variant:"secondary",children:[(0,e.jsx)(r.default,{icon:"chevron-down",size:16,className:"mr-2 -ml-2"}),t.title]})},i)),(t?y:b)?.map((t,i)=>(0,e.jsx)(s.Button,{variant:"Log ind"===t.title?"secondary":"tertiary",asChild:!0,onClick:()=>T(t.to,t.title),children:(0,e.jsx)(a.default,{target:t.newTab?"_blank":void 0,href:t.to,children:t.title})},i))]})]})}),(0,e.jsx)(o.DropdownPanel,{closeOnClickOutside:!0,children:i=>(0,e.jsx)(e.Fragment,{children:j?.filter(t=>i===t.id).map(i=>(0,e.jsx)(f,{items:i.items,footerLinkHref:(0,u.buildHref)(i.footerLinkTo,t?"/erhverv":"/privat"),footerLinkTitle:i.footerLink},i.id))})})]})}],887250)},906034,t=>{"use strict";var e=t.i(468679),i=t.i(787331),s=t.i(893776),n=t.i(507680);let r=t=>!!t;var a=t.i(563082);let o={searchWord:null,setSearchWord:()=>null,selectedFilters:null,setSelectedFilters:()=>null,clearSearchWord:()=>null,results:[],hitCount:0,filters:{},nextPage:()=>null,hasNextPage:!1,isLoading:!1,debouncedSearchWord:void 0},l=(0,n.createContext)(o);t.s(["SEARCH_PAGE_SIZE",0,20,"SearchContext",0,l,"SearchProvider",0,t=>{let[h,u]=(0,s.useQueryState)("search"),d=h??o.searchWord,[c,p]=(0,s.useQueryState)("filters",(0,s.parseAsArrayOf)(s.parseAsString)),m=c??o.selectedFilters,[f,v]=(0,n.use
9State)([]),[g,y]=(0,n.useState)(0),[x,b]=(0,n.useState)(d),[w,j]=(0,n.useState)(o.filters),T=(0,n.useCallback)((0,i.default)(u,400),[]);(0,n.useEffect)(()=>{T(x||null),x||(u(null),p(null))},[T,x]);let{data:P,isLoading:k,fetchNextPage:S}=a.api.algolia.search.useInfiniteQuery({searchWord:d??"",filters:m,limit:20},{getNextPageParam:t=>t?.nextCursor,enabled:!!d}),C=(0,n.useCallback)((0,i.default)(()=>{S()},100),[S]);(0,n.useEffect)(()=>{k||(v((P?.pages.flatMap(t=>t?.hits)??[]).filter(r)),y(P?.pages[0]?.nbHits??0),j(P?.pages[0]?.searchFiltes??{}))},[P,k]);let E=async()=>{b(""),await u(null)},M=f.length<g;return(0,e.jsx)(l.Provider,{value:{searchWord:x,setSearchWord:b,selectedFilters:m,setSelectedFilters:p,clearSearchWord:E,results:f,hitCount:g,filters:w,nextPage:C,hasNextPage:M,isLoading:k,debouncedSearchWord:d},children:t.children})},"useSearch",0,()=>{let t=(0,n.useContext)(l);if(!t)throw Error("useSearch must be used within a SearchProvider");return t}],906034)},115300,t=>{"use strict";t.i(496197);var e=t.i(468679),i=t.i(852275),s=t.i(271716);t.i(4166);var n=t.i(315480),r=t.i(637966),a=t.i(303725),o=t.i(678695),l=t.i(507680),h=t.i(154198),u=t.i(361364),d=t.i(641803),c=t.i(922062),p=t.i(329859),m=t.i(122243),f=t.i(906034),v=t.i(68406),g=t.i(250646);let y=t=>{let{className:i,id:r,...a}=t,{searchWord:o,setSearchWord:l,isLoading:h}=(0,f.useSearch)(),{search:u}=(0,d.useNavigationMenus)();return(0,g.useScrollLock)(),(0,e.jsx)("search",{className:(0,c.cn)("h-[50px] md:h-[74px]",i),children:(0,e.jsxs)("form",{className:"relative",...a,children:[(0,e.jsxs)("label",{className:"border-input bg-background shadow-small relative block rounded-full border",children:[(0,e.jsx)("span",{className:"absolute top-3 left-8 hidden text-sm font-semibold md:block",children:u?.searchLabel??"Indtast søgeord"}),(0,e.jsx)("input",{name:r,className:(0,c.cn)("w-full rounded-full border-none pt-3 pr-20 pb-3 pl-4 text-base font-normal md:pt-9 md:pl-8","placeholder:text-muted-foreground/50","disabled:cursor-not-allowed disabled:opacity-50","focus-visible:ring-ring focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden"),placeholder:u?.searchPlaceholder??"Søg blandt andet på...",autoFocus:!0,value:o??"",onChange:t=>l(t.target.value)})]}),(0,e.jsx)(s.Button,{variant:"tertiaryVariant",size:"icon",className:"absolute inset-y-0 right-3 my-auto h-8 w-8 md:h-12 md:w-12","aria-label":"Søg",onClick:t=>{t.preventDefault(),l(o)},disabled:h,children:h?(0,e.jsx)(v.Loader2,{className:"animate-spin",size:20}):(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(n.default,{icon:"search",size:20})})})]})})};var x=t.i(878373);let b=()=>{let{search:t}=(0,d.useNavigationMenus)(),{isBusiness:i}=(0,u.useIsBusiness)(),s=i?t?.searchBannerErhverv:t?.searchBanner;return s?(0,e.jsxs)("div",{className:"h-full md:border-l md:pl-6",children:[s.image&&(0,e.jsx)("div",{className:"mb-6 h-48",children:(0,e.jsx)(r.default,{src:s?.image?.responsiveImage?.src??"",width:1920,height:1080,sizes:"(max-width: 600px) 100vw, (max-width: 1200px) 80vw",alt:s?.image?.alt??"An image",className:"h-full w-full object-cover",placeholder:s?.image?.responsiveImage?.base64?"blur":void 0,blurDataURL:s?.image?.responsiveImage?.base64??""})}),s.title&&(0,e.jsx)("h2",{className:"mb-4 text-4xl font-bold",children:s.title}),s?.description&&(0,e.jsx)("div",{className:"mb-8 text-sm leading-4 text-neutral-400",children:s?.description}),s.cta&&(0,e.jsx)(x.default,{className:"mb-6 w-fit",...s.cta})]}):null},w=t=>{var i;let{search:n}=(0,d.useNavigationMenus)(),r=(0,o.useRouter)(),{isBusiness:l}=(0,u.useIsBusiness)(),h=l?n?.suggestionCategoriesErhverv:n?.suggestionCategories;return(0,e.jsxs)("div",{className:(0,c.cn)("grid gap-8",1===(i=h?.length??0)?"grid-cols-2":2===i?"grid-cols-1 md:grid-cols-3":3===i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1"),children:[h?.map(({category:i,suggestions:n},o)=>(0,e.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,e.jsx)("div",{className:"font-semibold text-black",children:i}),n.map((i,n)=>(0,e.jsx)("div",{children:(0,e.jsx)(s.Button,{variant:"text",size:"text",className:"items-center justify-start text-neutral-400",asChild:!0,children:(0,e.jsx)(a.default,{href:i.url,target:i.newTab?"_blank":void 0,onClick:e=>{var s;return s=i.url,void(e.preventDefault(),r.push(s),setTimeout(()=>{t.close()},1e3))},children:i.label})})}
9,n))]},o)),(0,e.jsx)(b,{})]})},j=()=>{let{closePanel:t,isOpen:i}=(0,h.useDropdownPanel)(),{isBusiness:n}=(0,u.useIsBusiness)(),{results:r,filters:d,selectedFilters:c,setSelectedFilters:v,hitCount:g,clearSearchWord:x}=(0,f.useSearch)(),b=(0,o.usePathname)();(0,l.useEffect)(()=>{i&&j()},[b]);let j=()=>{t(),x()},T=r?.sort((t,e)=>{let i=t.slug.startsWith("/erhverv"),s=e.slug.startsWith("/erhverv");return n?i===s?0:i?-1:1:i===s?0:s?-1:1}),P=t=>{let i=t._highlightResult;return(0,e.jsx)("div",{className:"border-b",children:(0,e.jsx)(s.Button,{variant:"unstyled",size:"unstyled",className:"group hover:bg-background col-span-1 w-full items-start justify-between gap-2 rounded-lg p-3 px-4",asChild:!0,children:(0,e.jsxs)(a.default,{href:t.slug,children:[(0,e.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,e.jsx)(()=>(0,e.jsx)("div",{className:"flex items-center md:text-xl",children:(0,e.jsx)(m.RenderMarkdown,{children:i?.title.value})}),{}),(0,e.jsx)(()=>(0,e.jsx)("div",{className:"flex items-center text-xs opacity-35",children:t.titles.map((i,s)=>(0,e.jsxs)("span",{children:[i,s<t.titles.length-1&&(0,e.jsx)("span",{className:"mx-1",children:"/"})]},s))}),{})]}),(0,e.jsx)(()=>(0,e.jsx)("div",{className:"bg-background mb-1 h-fit w-fit rounded-full border px-2 text-sm",children:t.type}),{})]})})},t.objectID)};return(0,e.jsx)(h.DropdownPanel,{closeOnClickOutside:!0,closeOnEscape:!0,className:"z-50 md:h-[calc(100vh-3rem)]",children:(0,e.jsx)("div",{className:"bg-muted flex h-full w-full border-b pt-6 md:py-14",children:(0,e.jsxs)("div",{className:"container flex h-[calc(100svh-111px)] max-w-(--breakpoint-xl) flex-col overflow-y-auto pt-2 pb-10 md:h-full md:pb-0",children:[(0,e.jsx)(y,{id:"search"}),r?.length?(0,e.jsxs)("div",{className:"flex h-[calc(100%-50px)] grow flex-col pt-6 md:h-[calc(100%-74px)] md:pt-10",children:[(0,e.jsxs)("div",{className:"mb-6 flex justify-between px-4",children:[(0,e.jsx)(()=>(0,e.jsx)("div",{className:"flex flex-wrap gap-4 md:gap-8",children:d.type?.map(({value:t,count:i})=>(0,e.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,e.jsx)(p.Checkbox,{id:t,checked:c?.includes(t)??!1,onCheckedChange:e=>{v(e?[...c??[],t]:c?.filter(e=>e!==t)??null)}}),(0,e.jsxs)("label",{htmlFor:t,className:"text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:[t," ",`(${i})`]})]},t))}),{}),(0,e.jsxs)("p",{className:"text-muted-foreground text-sm",children:["Din søgning gav ",g," resultat",1!==g?"er":""]})]}),(0,e.jsx)("div",{className:"no-scrollbar grow overflow-y-auto pb-16 md:pb-0",children:T?.map(t=>(0,e.jsx)(P,{...t},t.objectID))})]}):(0,e.jsx)("div",{className:"mt-14 px-8",children:(0,e.jsx)(w,{close:j})})]})})})};t.s(["NavigationDesktopTop",0,t=>{let{isBusiness:p}=(0,u.useIsBusiness)(),{navigationGlobal:m}=(0,d.useNavigationMenus)(),f=(0,o.usePathname)(),v=(t,e)=>{(0,i.sendGTMEvent)({event:"nav_link_click",link_url:`https://unoxmobility.dk${t}`,link_text:e})};return(0,e.jsx)(h.DropdownPanelProvider,{providerId:"search",children:(0,e.jsxs)("div",{className:"relative",children:[(0,e.jsx)("div",{className:"border-muted h-12 border-b",children:(0,e.jsxs)("div",{className:"flex h-full items-center justify-between px-3 md:px-8",children:[(0,e.jsxs)("div",{className:"flex h-full gap-0.5",children:[(0,e.jsx)(s.Button,{className:"h-full px-3",variant:f.startsWith("/privat")?"selectorActive":"selector",asChild:!0,onClick:()=>v("/privat","Privat"),children:(0,e.jsx)(a.default,{href:"/privat",children:"Privat"})}),(0,e.jsx)(s.Button,{className:"h-full px-3",variant:f.startsWith("/erhverv")?"selectorActive":"selector",asChild:!0,onClick:()=>v("/erhverv","Erhverv"),children:(0,e.jsx)(a.default,{href:"/erhverv",children:"Erhverv"})})]}),(0,e.jsxs)("div",{className:"flex h-full items-center",children:[(0,e.jsx)(h.DropdownPanelTrigger,{className:"h-full",trigger:t=>(0,e.jsxs)(s.Button,{variant:t?"selectorActive":"selector",className:"h-full px-4",children:[(0,e.jsx)(n.default,{size:16,className:"mr-1",icon:"search"}),"Søg"]})}),(0,e.jsx)("div",{className:"hidden h-4 border-l md:block"}),m.map((i,n)=>{let o=n===m.length-1,h="/find-station"!==i.to;return(0,e.jsxs)(l.Fragment,{children:[(0,e.jsx)(s.Button,{className:(0,
9c.cn)("h-full px-4",h&&"hidden md:flex"),onClick:()=>v(`/${p?"erhverv":"privat"}${i.to}`,i.title),variant:f.startsWith(i.to)?"selectorActive":"selector",asChild:!0,children:(0,e.jsxs)(a.default,{target:i.newTab?"_blank":void 0,href:(0,c.buildHref)(i.to,`/${t.site}`),className:"flex",children:[i.icon&&(0,e.jsx)("div",{className:"mr-1 h-[14px] w-[14px] -translate-y-0.5",children:i.icon.url&&(0,e.jsx)(r.default,{src:i.icon.url,alt:i.title,width:36,height:36})}),i.title]})}),!o&&(0,e.jsx)("div",{className:"hidden h-4 border-l md:block"})]},n)})]})]})}),(0,e.jsx)(j,{})]})})}],115300)},89653,t=>{"use strict";var e=t.i(468679),i=t.i(271716);t.i(4166);var s=t.i(315480),n=t.i(678695),r=t.i(507680),a=t.i(361364),o=t.i(52475);let l=()=>(0,e.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,e.jsx)("g",{id:"Name=Text Align Right, Type=Fill, Hover=No",children:(0,e.jsxs)("g",{id:"Group 2602",children:[(0,e.jsx)("path",{id:"Vector 301",d:"M9 11.3281H22.9976",stroke:"#4A4A4A",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.jsx)("path",{id:"Vector 302",d:"M13 16H23",stroke:"#4A4A4A",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.jsx)("path",{id:"Vector 304",d:"M11.3359 20.6562H23.0006",stroke:"#4A4A4A",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})});t.i(496197);var h=t.i(852275),u=t.i(303725),d=t.i(250646),c=t.i(641803),p=t.i(115300);let m=t=>{let[n,o]=(0,r.useState)(null),{isBusiness:l}=(0,a.useIsBusiness)(),{navigationGlobal:m,navigationPrivateDropdown:f,navigationBusinessDropdown:v,navigationPrivate:g,navigationBusiness:y,navigationPrivateSide:x,navigationPrivateSideDropdown:b,navigationBusinessSide:w,navigationBusinessSideDropdown:j}=(0,c.useNavigationMenus)(),T=l?v:f,P=l?j:b,k=n?.isSide?P.find(t=>t.id===n.id):T.find(t=>t.id===n?.id);(0,d.useScrollLock)();let S=(t,e)=>{let i=t.startsWith("https://")?t:`https://unoxmobility.dk${t}`;(0,h.sendGTMEvent)({event:"nav_link_click",link_url:i,link_text:e})};return(0,e.jsxs)("div",{className:"bg-background sticky z-100 mb-32 flex h-svh flex-col overflow-y-scroll md:h-[calc(100svh-3rem)]",children:[(0,e.jsx)(p.NavigationDesktopTop,{site:t.site}),(0,e.jsxs)("div",{className:"flex h-full flex-col gap-2 p-1 pt-6",children:[!!n&&(0,e.jsxs)(i.Button,{variant:"ghost",className:"justify-start rounded-md px-2 font-normal",onClick:()=>{o(null)},children:[(0,e.jsx)(s.default,{size:16,className:"mr-2",icon:"arrow-left"}),(0,e.jsx)("div",{className:"translate-y-px",children:k?.title})]}),!n&&(0,e.jsx)(e.Fragment,{children:T?.map((t,n)=>(0,e.jsxs)(i.Button,{variant:"ghost",className:"h-10 justify-start rounded-md px-2 text-xl font-normal",onClick:()=>{o({id:t.id,isSide:!1})},children:[t.title,(0,e.jsx)(s.default,{size:16,className:"ml-2",icon:"arrow-right"})]},n))}),!!n&&k?.items.map((s,n)=>(0,e.jsx)(i.Button,{variant:"ghost",className:"h-10 justify-start rounded-md px-2 text-xl font-normal",asChild:!0,onClick:()=>{S(s.to,s.title),t.closeMenu()},children:(0,e.jsx)(u.default,{target:s.newTab?"_blank":void 0,href:s.to,children:s.title})},n)),!n&&(l?y:g).map((s,n)=>(0,e.jsx)(i.Button,{variant:"ghost",className:"h-10 justify-start rounded-md px-2 text-xl font-normal",asChild:!0,onClick:()=>{S(s.to,s.title),t.closeMenu()},children:(0,e.jsx)(u.default,{target:s.newTab?"_blank":void 0,href:s.to,children:s.title})},n)),!n&&(0,e.jsx)("div",{className:"flex flex-col gap-1 pt-4",children:m.map((s,n)=>(0,e.jsx)(i.Button,{variant:"ghost",className:"justify-start rounded-md px-2 font-normal",asChild:!0,onClick:()=>{S(`/${l?"erhverv":"privat"}${s.to}`,s.title),t.closeMenu()},children:(0,e.jsx)(u.default,{target:s.newTab?"_blank":void 0,href:s.to,children:s.title})},n))})]}),(0,e.jsxs)("div",{className:"border-muted bg-background sticky bottom-0 flex w-full flex-col gap-2 border-t p-3 pb-20",children:[(l?w:x).map((s,n)=>(0,e.jsx)(i.Button,{variant:"Log ind"===s.title?"secondary":"tertiary",className:"h-10",asChild:!0,onClick:()=>{S(s.to,s.title),t.closeMenu()},children:(0,e.jsx)(u.default,{target:s.newTab?"_blank":void 0,href:s.to,children:s.title})},n)),P?.map((t,r)=>(0,e.jsxs)(i.Button,{variant:"secondary",className:"h-10",onClick:()=>{o({id:t.id,isSide:!0})},children:[t.title,(0,e.jsx)(s.default,{size:16,className:"ml-2",icon:n?.id===t.id&&n.isSide?"chevron-up":"chevron-down"})]},r))]})]})};t.s(["NavigationMobileTop",0,t=>{let[h,u]=(0,r.useState)(!1),d=(0,n.usePathname)(),[c,p]=(0,r.useState)(""),{isBusiness:f}=(0,a.useIsBusiness)();return(0,r.useEffect)(()=>{p(f?"7010 1234":"7012 5678")},[f]),(0,r.useEffect)(()=>{u(!1)},[d]),(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:"border-muted h-16 border-b",children:[(0,e.jsxs)("div",{className:"container flex h-16 items-center justify-between px-3",children:[(0,e.jsx)("div",{className:"flex w-full items-center",onClick:()=>u(!1),children:(0,e.jsx)(o.LogoButton,{})}),(0,e.jsxs)("div",{className:"flex w-full items-center justify-end gap-2",children:[(0,e.jsx)(i.Button,{variant:"tertiary",asChild:!0,onClick:()=>u(!1),children:(0,e.jsx)("a",{href:`tel:${c}`,children:c})}),(0,e.jsx)(i.Button,{variant:"tertiary",size:"icon",onClick:()=>u(t=>!t),children:h?(0,e.jsx)(s.default,{icon:"x",size:17}):(0,e.jsx)(l,{})})]})]}),h&&(0,e.jsx)(m,{closeMenu:()=>u(!1),site:t.site})]})})}],89653)}]);

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.