1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,56691,t=>{"use strict";var e=t.i(43476),i=t.i(22016),n=t.i(96604),r=t.i(76677),s=t.i(34879);let o={HackRisk:[{label:"Home",href:"/"},{label:"About",href:"/about/"},{label:"Our People",href:"/our-people/"},{label:"Legislation Guide",href:"/legislation-guide/"},{label:"What's a HackRisk Score?",href:"/what-is-a-hackrisk-score/"},{label:"Example Report",href:"/example-report/"},{label:"NCSC EASM Buyer's Guide",href:"/ncsc-easm-buyers-guide/"},{label:"SecureTour 2026",href:"/secure-tour/"},{label:"Partner with HackRisk",href:"/partners/"},{label:"HackRisk Mobile",href:"/mobile/"},{label:"FAQ",href:"/faq/"},{label:"Get in Touch",href:"/contact/"},{label:"Login to HackRisk",href:"https://app.cyberportal.uk/login",title:"Opens CyberPortal, the secure HackRisk platform"}],Services:[{label:"All Services",href:"/services/"},{label:"Dark Web Scanning",href:"/services/dark-web-scanning/"},{label:"Recon Scanning",href:"/services/recon-scanning/"},{label:"Vulnerability Scanning",href:"/services/vulnerability-scanning/"},{label:"Phishing Simulations",href:"/services/phishing-simulations/"},{label:"Security Awareness Training",href:"/services/security-awareness-training/"},{label:"Supply Chain Security",href:"/services/supply-chain-security/"},{label:"Integrations",href:"/integrations/"},{label:"Product roadmap",href:"/services/roadmap/"}],Compare:[{label:"HackRisk vs Intruder",href:"/intruder-alternative/"},{label:"HackRisk vs CyberSmart",href:"/cybersmart-alternative/"},{label:"HackRisk vs CrowdStrike",href:"/crowdstrike-alternative/"}],Legal:[{label:"Terms of Service",href:"/terms-of-service/"},{label:"Privacy Policy",href:"/privacy-policy/"},{label:"Complaints",href:"/complaints/"},{label:"Information for AI assistants",href:"/ai-information/"}]},a=[{label:"X",href:"https://x.com/HackRisk_ai",svg:(0,e.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:(0,e.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})},{label:"YouTube",href:"https://www.youtube.com/@CyberLabUK",svg:(0,e.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:(0,e.jsx)("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})})},{label:"Spotify",href:"https://open.spotify.com/show/00gROrPxYVBx9U7aTF6M9J",svg:(0,e.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:(0,e.jsx)("path",{d:"M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z"})})},{label:"LinkedIn",href:"https://www.linkedin.com/build-relation/newsletter-follow?entityUrn=7224348932443705346",svg:(0,e.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor",children:(0,e.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})})}];t.s(["Footer",0,function(){return(0,e.jsxs)("footer",{style:{background:"var(--hr-surface-2)",borderTop:"1px solid var(--hr-border)",padding:"64px 0 32px",color:"var(--hr-fg-2)",position:"relative",overflow:"hidden"},children:[(0,e.jsx)(s.Wave,{place:"edge"}),(0,e.jsxs)("div",{style:{maxWidth:1200,margin:"0 auto",padding:"0 32px",position:"relative",zIndex:1},children:[(0,e.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1.4fr 1fr 1fr 1fr 1fr",gap:40},className:"footer-grid",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)(i.default,{href:"/",style:{display:"inline-block",marginBottom:16,textDecoration:"none"},children:(0,e.jsx)(n.Logo,{height:28})}),(0,e.jsx)("p",{style:{font:'400 13px/1.6 "Geist", ui-sans-serif',color:"var(--hr-fg-2)",maxWidth:280,margin:"0 0 20px"},children:"An AI-powered cyber risk monitoring platform with a secure dashboard and shareable reports, delivered by CyberLab's security experts."}),(0,e.jsx)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:a.map(t=>(0,e.jsx)("a",{href:t.href,target:"_blank",rel:"noopener noreferrer","aria-label":`Follow on ${t.label}`,className:"hr-social-link",style:{width:32,height:32,borderRadius:8,border:"1px solid var(--hr-border-2)",background:"var(--hr-surface)",color:"var(--hr-fg-2)",display:"flex",alignItems:"center",justifyContent:"center",textDecoration:"none"},children:t.svg},t.href))})]}),Object.entries(o).map(([t,n])=>(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{font:'600 11px/1.3 "Geist", ui-sans-serif',letterSpacing:"0.10em",textTransform:"uppercase",color:"var(--hr-fg-muted)",marginBottom:14},children:t}),(0,e.jsxs)("ul",{style:{listStyle:"none",padding:0,margin:0,display:"flex",flexDirection:"column",gap:8},children:[n.map(t=>{let n={font:'500 13px "Geist", ui-sans-serif',color:"var(--hr-fg-2)",textDecoration:"none"};return(0,e.jsx)("li",{children:t.href.startsWith("/")?(0,e.jsx)(i.default,{href:t.href,title:t.title,className:"hr-footer-link",style:n,children:t.label}):(0,e.jsx)("a",{href:t.href,title:t.title,className:"hr-footer-link",style:n,children:t.label})},t.href)}),"Legal"===t&&(0,e.jsx)("li",{children:(0,e.jsx)("button",{onClick:r.openPreferences,className:"hr-footer-link",style:{font:'500 13px "Geist", ui-sans-serif',color:"var(--hr-fg-2)",background:"none",border:"none",padding:0,cursor:"pointer",textAlign:"left"},children:"Cookie Settings"})})]})]},t))]}),(0,e.jsxs)("div",{style:{marginTop:48,display:"flex",flexWrap:"wrap",gap:12},children:[(0,e.jsxs)("a",{href:"https://uk.trustpilot.com/review/cyberlab.co.uk",target:"_blank",rel:"noopener noreferrer",className:"hr-card-hover",style:{display:"inline-flex",alignItems:"center",gap:10,padding:"10px 16px",borderRadius:8,border:"1px solid var(--hr-border-2)",background:"var(--hr-surface)",textDecoration:"none"},children:[(0,e.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M0 12.5h13.1L16.3 3l3.2 9.5H32.6l-10.6 7.7 4.1 12.4-10.8-7.8-10.8 7.8 4.1-12.4L0 12.5z",fill:"#00B67A"}),(0,e.jsx)("path",{d:"M22.9 21.7l-.9-2.7-6.7 4.9 7.6-2.2z",fill:"#005128"})]}),(0,e.jsxs)("span",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,e.jsx)("span",{style:{font:'600 13px "Geist", ui-sans-serif',color:"var(--hr-fg-2)"},children:"Read our reviews on Trustpilot"}),(0,e.jsx)("span",{style:{font:'400 11.5px "Geist", ui-sans-serif',color:"var(--hr-fg-muted)"},children:"Rated via CyberLab, the company behind HackRisk"})]})]}),(0,e.jsxs)("a",{href:"https://www.g2.com/products/hackrisk/reviews",target:"_blank",rel:"noopener noreferrer",className:"hr-card-hover",style:{display:"inline-flex",alignItems:"center",gap:10,padding:"10px 16px",borderRadius:8,border:"1px solid var(--hr-border-2)",background:"var(--hr-surface)",textDecoration:"none"},children:[(0,e.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,e.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"#FF492C"}),(0,e.jsx)("path",{d:"M12.3 6.2c.6 0 1.2.1 1.7.3l-.8 1.5a2.9 2.9 0 0 0-.9-.1c-2 0-3.3 1.6-3.3 4.1 0 2.4 1.3 4 3.3 4 1 0 1.8-.4 2.3-1.1v-1.8h-2.2v-1.6h4v4.2c-1 1.2-2.5 2-4.2 2-3 0-5.1-2.3-5.1-5.7 0-3.5 2.2-5.8 5.2-5.8z",fill:"#fff"})]}),(0,e.jsxs)("span",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,e.jsx)("span",{style:{font:'600 13px "Geist", ui-sans-serif',color:"var(--hr-fg-2)"},children:"Review us on G2"}),(0,e.jsx)("span",{style:{font:'400 11.5px "Geist", ui-sans-serif',color:"var(--hr-fg-muted)"},children:"Used HackRisk? Tell other businesses what you think"})]})]})]}),(0,e.jsxs)("div",{style:{marginTop:56,paddingTop:24,borderTop:"1px solid var(--hr-border)",display:"flex",flexWrap:"wrap",gap:16,justifyContent:"space-between",alignItems:"center",font:'500 11.5px "Geist Mono", ui-monospace',color:"var(--hr-fg-muted)",letterSpacing:"0.02em"},children:[(0,e.jsx)("div",{children:"© 2026 HackRisk is a trading name of Cyberlab Security Limited (12392586) registered in England & Wales."}),(0,e.jsxs)("div",{style:{display:"flex",gap:20,flexWrap:"wrap",alignItems:"center"},children:[(0,e.jsx)(i.default,{href:"/terms-of-service/",className:"hr-footer-link",style:{color:"var(--hr-fg-muted)",textDecoration:"none"},children:"Terms of Service"}),(0,e.jsx)("span",{children:"Registered Office: Mereside, Alderley Park, Congleton Road, Macclesfield, SK10 4TG"})]})]})]})]})}])},42724,t=>{"use strict";let e,i,n;var r=t.i(43476),s=t.i(71645),o=t.i(22016),a=t.i(18566);let l=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],h=new Set([...l,"pathRotation"]),u=(t,e,i)=>i>e?e:i<t?t:i,c={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},d={...c,transform:t=>u(0,1,t)},p={...c,default:1},m=t=>Math.round(1e5*t)/1e5,f=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,g=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,y=(t,e)=>i=>!!("string"==typeof i&&g.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),v=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(f);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},x={...c,transform:t=>Math.round(u(0,255,t))},b={test:y("rgb","red"),parse:v("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+x.transform(t)+", "+x.transform(e)+", "+x.transform(i)+", "+m(d.transform(n))+")"},w={test:y("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alph
1a:r?parseInt(r,16)/255:1}},transform:b.transform},S=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),k=S("deg"),T=S("%"),P=S("px"),M=S("vh"),C=S("vw"),A={...T,parse:t=>T.parse(t)/100,transform:t=>T.transform(100*t)},E={test:y("hsl","hue"),parse:v("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+T.transform(m(e))+", "+T.transform(m(i))+", "+m(d.transform(n))+")"},j={test:t=>b.test(t)||w.test(t)||E.test(t),parse:t=>b.test(t)?b.parse(t):E.test(t)?E.parse(t):w.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?b.transform(t):E.transform(t),getAnimatableNone:t=>{let e=j.parse(t);return e.alpha=0,j.transform(e)}},R=new RegExp(f.source),V=RegExp(/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu.source,"i"),D="number",L="color",I=/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 B(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(I,t=>(j.test(t)?(n.color.push(s),r.push(L),i.push(j.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(D),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function F({split:t,types:e}){let i=t.length;return n=>{let r="";for(let s=0;s<i;s++)if(r+=t[s],void 0!==n[s]){let t=e[s];t===D?r+=m(n[s]):t===L?r+=j.transform(n[s]):r+=n[s]}return r}}let O={test:function(t){return isNaN(t)&&"string"==typeof t&&(R.test(t)||V.test(t))},parse:function(t){return B(t).values},createTransformer:function(t){return F(B(t))},getAnimatableNone:function(t){let e=B(t);return F(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:j.test(t)?j.getAnimatableNone(t):t)(t,e.split[i])))}},N=new Set(["brightness","contrast","saturate","opacity"]);function U(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(f)||[];if(!n)return t;let r=i.replace(n,""),s=+!!N.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let W=/\b([a-z-]*)\(.*?\)/gu,$={...O,getAnimatableNone:t=>{let e=t.match(W);return e?e.map(U).join(" "):t}},H={...O,getAnimatableNone:t=>{let e=O.parse(t);return O.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},z={...c,transform:Math.round},G={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,inset:P,insetBlock:P,insetBlockStart:P,insetBlockEnd:P,insetInline:P,insetInlineStart:P,insetInlineEnd:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,paddingBlock:P,paddingBlockStart:P,paddingBlockEnd:P,paddingInline:P,paddingInlineStart:P,paddingInlineEnd:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,marginBlock:P,marginBlockStart:P,marginBlockEnd:P,marginInline:P,marginInlineStart:P,marginInlineEnd:P,fontSize:P,backgroundPositionX:P,backgroundPositionY:P,rotate:k,pathRotation:k,rotateX:k,rotateY:k,rotateZ:k,scale:p,scaleX:p,scaleY:p,scaleZ:p,skew:k,skewX:k,skewY:k,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:d,originX:A,originY:A,originZ:P,zIndex:z,fillOpacity:d,strokeOpacity:d,numOctaves:z},Y={...G,color:j,backgroundColor:j,outlineColor:j,fill:j,stroke:j,borderColor:j,borderTopColor:j,borderRightColor:j,borderBottomColor:j,borderLeftColor:j,filter:$,WebkitFilter:$,mask:H,WebkitMask:H},X=t=>Y[t],Z=()=>({translate:0,scale:1,origin:0,originPoint:0}),K=()=>({x:Z(),y:Z()}),_=()=>({min:0,max:0}),q=()=>({x:_(),y:_()}),J=t=>!!(t&&t.getVelocity),Q=new Set(["width","height","top","left","right","bottom",...l]),tt=[c,P,T,k,C,M,{test:t=>"auto"===t,parse:t=>t}],te=t=>tt.find(e=>e.test(t));var ti=t.i(47167);let tn=()=>{},tr=()=>{};
1ti.default;let ts=t=>e=>"string"==typeof e&&e.startsWith(t),to=ts("--"),ta=ts("var(--"),tl=t=>!!ta(t)&&th.test(t.split("/*")[0].trim()),th=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tu(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,td=new Set([$,H]);function tp(t,e){let i=X(t);return td.has(i)||(i=O),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tm=t=>180*t/Math.PI,tf=t=>ty(tm(Math.atan2(t[1],t[0]))),tg={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tf,rotateZ:tf,skewX:t=>tm(Math.atan(t[1])),skewY:t=>tm(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},ty=t=>((t%=360)<0&&(t+=360),t),tv=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tx=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tv,scaleY:tx,scale:t=>(tv(t)+tx(t))/2,rotateX:t=>ty(tm(Math.atan2(t[6],t[5]))),rotateY:t=>ty(tm(Math.atan2(-t[2],t[0]))),rotateZ:tf,rotate:tf,skewX:t=>tm(Math.atan(t[4])),skewY:t=>tm(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tw(t){return+!!t.includes("scale")}function tS(t,e){let i,n;if(!t||"none"===t)return tw(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=tb,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tg,n=e}if(!n)return tw(e);let s=i[e],o=n[1].split(",").map(tk);return"function"==typeof s?s(o):o[s]}function tk(t){return parseFloat(t.trim())}let tT=t=>t===c||t===P,tP=new Set(["x","y","z"]),tM=l.filter(t=>!tP.has(t)),tC=new Set(["bottom","right"]);function tA(t,e,i,n,r,s){let o=parseFloat(t);if(!isNaN(o))return o;let{min:a,max:l}=e()[i],h=l-a;return"border-box"===s?h:h-parseFloat(n)-parseFloat(r)}let tE={width:({width:t,paddingLeft:e="0",paddingRight:i="0",boxSizing:n},r)=>tA(t,r,"x",e,i,n),height:({height:t,paddingTop:e="0",paddingBottom:i="0",boxSizing:n},r)=>tA(t,r,"y",e,i,n),top:({top:t})=>parseFloat(t),left:({left:t})=>parseFloat(t),bottom:({top:t},e)=>{let{y:i}=e();return parseFloat(t)+(i.max-i.min)},right:({left:t},e)=>{let{x:i}=e();return parseFloat(t)+(i.max-i.min)},x:({transform:t})=>tS(t,"x"),y:({transform:t})=>tS(t,"y")};tE.translateX=tE.x,tE.translateY=tE.y;let tj=t=>t,tR={},tV=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tD(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=tV.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,r=!1,s=new Set,o={delta:0,timestamp:0,isProcessing:!1};function a(e){s.has(e)&&(i.add(e),t()),e(o)}let l={schedule:(t,r=!1,o=!1)=>{let a=o&&n?e:i;return r&&s.add(t),a.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(o=t,n){r=!0;return}n=!0;let s=e;e=i,i=s,e.forEach(a),e.clear(),n=!1,r&&(r=!1,l.process(t))}};return l}(s),t),{}),{setup:a,read:l,resolveKeyframes:h,preUpdate:u,update:c,preRender:d,render:p,postRender:m}=o,f=()=>{let s=tR.useManualTiming,o=s?r.timestamp:performance.now();i=!1,s||(r.delta=n?1e3/60:Math.max(Math.min(o-r.timestamp,40),1)),r.timestamp=o,r.isProcessing=!0,a.process(r),l.process(r),h.process(r),u.process(r),c.process(r),d.process(r),p.process(r),m.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:tV.reduce((e,s)=>{let a=o[s];return e[s]=(e,s=!1,o=!1)=>(!i&&(i=!0,n=!0,r.isProcessing||t(f)),a.schedule(e,s,o)),e},{}),cancel:t=>{for(let e=0;e<tV.length;e++)o[tV[e]].cancel(t)},state:r,steps:o}}let{schedule:tL,cancel:tI,state:tB,steps:tF}=tD("u">typeof requestAnimationFrame?requestAnimationFrame:tj,!0),tO=new Set,tN=!1,tU=!1,tW=!1;function t$(){if(tU){let t=[],e=new Set,i=new Set;tO.forEach(n=>{n.needsMeasurement&&(t.push(n),e.add(n.element),tC.has(n.name)&&i.add(n.element))});let n=new Map;i.forEach(t=>{let e,i=(e=[],tM.forEach(i=>{let n=t.getValue(i);if(void 0!==n){let t=n.get(),r=+!!i.startsWith("scale");if(t===r)return;e.push([i,t]),n.set(r)}}),e);i.length&&(n.set(t,i),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=n.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)})}tU=!1,tN=!1,tO.forEach(t=>t.complete(tW)),tO.clear()}function tH(){tO.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tU=!0)})}class tz{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(tO.add(this),tN||(tN=!0,tL.read(tH),tL.resolveKeyframes(t$))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;
1else if(i&&e){let n=function(t,e,i){if("string"==typeof t){if(/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)||/^0[^.\s]+$/u.test(t))return parseFloat(t);if(!O.test(t)&&O.test(i))return tp(e,i)}return t??void 0}(i.readValue(e,s),e,s);void 0!==n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tO.delete(this)}cancel(){"scheduled"===this.state&&(tO.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tG=new Set(["auto","none","0"]);class tY extends tz{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&tl(n=n.trim())){let r=function t(e,i,n=1){tr(`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,s]=function(t){let e=tc.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return tl(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Q.has(i)||2!==t.length)return;let[n,r]=t;if("number"==typeof n&&"number"==typeof r)return;let s=te(n),o=te(r);if(tu(n)!==tu(r)&&tE[i]){this.needsMeasurement=!0;return}if(s!==o)if(tT(s)&&tT(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tE[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!tG.has(e)&&function(t){let e=t.toString();return R.test(e)||V.test(e)}(e)&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]!==n&&(t[r]=tp(i,n))}(t,i,e)}measure(){let{element:t,name:e}=this;return tE[e](window.getComputedStyle(t.current),()=>t.measureViewportBox())}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&this.motionValue?.jump(n,!1)}measureEndState(){let{element:t,unresolvedKeyframes:e}=this;if(!t||!t.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let i=e.length-1,n=e[i];e[i]=this.measure(),null!==n&&void 0===this.finalKeyframe&&(this.finalKeyframe=n),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tX=t=>1e3*t;function tZ(t,e){-1===t.indexOf(e)&&t.push(e)}function tK(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class t_{constructor(){this.subscriptions=[]}add(t){return tZ(this.subscriptions,t),()=>this.remove(t)}remove(t){tK(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tq(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function tJ(t){let e;return()=>(void 0===e&&(e=t()),e)}let tQ={};function t1(t,e){let i=tJ(t);return()=>tQ[e]??i()}let t0=t1(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),t2=t=>null!==t;function t3(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(t2),o=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}class t4{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(t=>{this._resolve=t})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(t,e){return this.finished.then(t,e)}}function t5(){e=void 0}let t6={now:()=>(void 0===e&&t6.set(tB.isProcessing||tR.useManualTiming?tB.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(t5)}};function t8(t,e){return{kind:t,animation:e,timestamp:t6.now(),frameTimestamp:tB.timestamp,frameIsProcessing:tB.isProcessing}}function t7(t,e,i){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...t8("animation-start",t),options:i?{...e,...i}:e})}catch{}}let t9=t=>Array.isArray(t)&&"number"==typeof t[0],et=t1(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ee=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},ei=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,en={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ei([0,.65,.55,1]),circOut:ei([.55,0,1,.45]),backIn:ei([.31,.01,.66,-.59]),backOut:ei([.33,1.53,.69,.99])};function er(t){return"function"==typeof t&&"applyToOptions"in t}class es extends t4{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,tr(t.type);const l=function({type:t,...e}){return er(t)&&et()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?et()?ee(e,i):"ease-out":t9(e)?ei(e):Array.isArray(e)?e.map(e=>t(e,i)||en.easeOut):en[e]}(a,r);Array.isArray(c)&&(u.easing=c);let d={delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};return h&&(d.pseudoElement=h),t.animate(u,d)}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=t3(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tq(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()},t7(this,t,l)}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){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tX(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&t0())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tj):n(this)}}let eo=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:ea}=tD(queueMicrotask,!1),el=(t,e)=>e?1e3/e*t:0,eh;class eu{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=t6.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.notifyChange(),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=t6.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){var i;return"change"===t?this.onChangeSubscribe(e):((i=this.events)[t]||(i[t]=new t_)).add(e)}onChangeSubscribe(t){let{events:e}=this;return e.change||this.changeSubscriber?(e.change||(e.change=new t_,e.change.add(this.changeSubscriber),this.changeSubscriber=void 0),e.change.add(t)):this.changeSubscriber=t,()=>{this.changeSubscriber===t?this.changeSubscriber=void 0:e.change?.remove(t),this.stopIfUnobserved()}}stopIfUnobserved(){tL.read(()=>{this.changeSubscriber||this.events.change?.getSize()||this.stop()})}clearListeners(){for(let t in this.changeSubscriber=void 0,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.notifyChange()}notifyChange(){let{current:t,changeSubscriber:e}=this;e?e(t):this.events.change?.notify(t)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return eh&&eh.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=t6.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return el(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{let i;this.hasAnimated=!0;let n=!1;i=t(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===i&&this.clearAnimation(),e()}),n||(this.animation=i),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ec(t,e){return new eu(t,e)}let ed=new WeakMap;function ep(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function em(t){return"string"==typeof t||Array.isArray(t)}let ef=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eg=["initial",...ef];function ey(t){if(ep(t.animate))return!0;for(let e=0;e<eg.length;e++)if(em(t[eg[e]]))return!0;return!1}function ev(t){return!!(ey(t)||t.variants)}var ex=t.i(38544);function eb(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function ew(t,e,i,n){if("function"==typeof e){let[r,s]=eb(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=eb(n);e=e(void 0!==i?i:t.custom,r,s)}return e}var eS=t.i(71164);let ek=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eT={};class eP{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tz,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=t6.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tL.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=o;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=n,this.skipAnimationsConfig=r,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=ey(e),this.isVariantNode=ev(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==l[t]&&J(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,ed.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:(eS.hasReducedMotionListener.current||(0,ex.initPrefersReducedMotion)(),this.shouldReduceMotion=eS.prefersReducedMotion.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(),tI(this.notifyUpdate),tI(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&&eo.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:r,ease:s,duration:o}=e.accelerate,a=new es({element:this.current,name:t,keyframes:n,times:r,ease:s,duration:tX(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=h.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tL.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),i&&i()})}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 eT){let e=eT[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
1e.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):q()}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<ek.length;e++){let i=ek[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if(J(r))t.addValue(n,r);else if(J(s))t.addValue(n,ec(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,ec(void 0!==e?e:r,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=ec(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let n,r;"string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(r=i,/^0[^.\s]+$/u.test(r)))?i=parseFloat(i):"number"!=typeof i&&!O.test(i)&&O.test(e)&&(i=tp(t,e)),this.setBaseTarget(t,J(i)?i.get():i)}return J(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=ew(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||J(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new t_),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){ea.render(this.render)}}class eM extends eP{constructor(){super(...arguments),this.KeyframeResolver=tY}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;J(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eC(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eA=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eE={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ej=l.length;function eR(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(h.has(t)){o=!0;continue}if(to(t)){r[t]=i;continue}{let e=eA(i,G[t]);t.startsWith("origin")?(a=!0,s[t]=e):n[t]=e}}
1if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s<ej;s++){let o=l[s],a=t[o];if(void 0===a)continue;let h=!0;if("number"==typeof a)h=a===+!!o.startsWith("scale");else{let t=parseFloat(a);h=o.startsWith("scale")?1===t:0===t}if(!h||i){let t=eA(a,G[o]);if(!h){r=!1;let e=eE[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}let s=t.pathRotation;return s&&(r=!1,n+=`rotate(${eA(s,G.pathRotation)}) `),n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;n.transformOrigin=`${t} ${e} ${i}`}}let eV={offset:"stroke-dashoffset",array:"stroke-dasharray"},eD={offset:"strokeDashoffset",array:"strokeDasharray"},eL=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eI(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a},l,h,u){if(eR(t,a,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;for(let t of eL)void 0!==c[t]&&(d[t]=c[t],delete c[t]);(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete c.transformBox),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?eV:eD;t[s.offset]=`${-n}`,t[s.array]=`${e} ${i}`}(c,r,s,o,!1)}let eB=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"]),eF=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eO(t,{style:e,vars:i},n,r){let s,o=t.style;for(s in e)o[s]=e[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}let eN=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function eU(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eW={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!P.test(t))return t;else t=parseFloat(t);let i=eU(t,e.target.x),n=eU(t,e.target.y);return`${i}% ${n}%`}},e$=(t,e,i)=>t+(e-t)*i,eH={borderRadius:{...eW,applyTo:[...eN]},borderTopLeftRadius:eW,borderTopRightRadius:eW,borderBottomLeftRadius:eW,borderBottomRightRadius:eW,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=O.parse(t);if(n.length>5)return t;let r=O.createTransformer(t),s=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=e$(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function ez(t,{layout:e,layoutId:i}){return h.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eH[t]||"opacity"===t)}function eG(t,e,i){let n=t.style,r=e?.style,s={};if(!n)return s;for(let e in n)(J(n[e])||r&&J(r[e])||ez(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(s[e]=n[e]);return s}function eY(t,e,i){let n=eG(t,e,i);for(let i in t)(J(t[i])||J(e[i]))&&(n[-1!==l.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class eX extends eM{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=q}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(h.has(e)){let t=X(e);return t&&t.default||0}if(eL.includes(e)){let i=getComputedStyle(t)[e];if("string"==typeof i&&i)return i.trim()}return e=eB.has(e)?e:eC(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eY(t,e,i)}build(t,e,i){eI(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in eO(t,e,void 0,n),e.attrs)t.setAttribute(eB.has(i)?i:eC(i),e.attrs[i])}mount(t){this.isSVGTag=eF(t.tagName),super.mount(t)}}function eZ({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function eK(t){return void 0===t||1===t}function e_({scale:t,scaleX:e,scaleY:i}){return!eK(t)||!eK(e)||!eK(i)}function eq(t){return e_(t)||eJ(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eJ(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eQ(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function e1(t,e=0,i=1,n,r){t.min=eQ(t.min,e,i,n,r),t.max=eQ(t.max,e,i,n,r)}function e0(t,{x:e,y:i}){e1(t.x,e.translate,e.scale,e.originPoint),e1(t.y,i.translate,i.scale,i.originPoint)}function e2(t,e){t.min+=e,t.max+=e}function e3(t,e,i,n,r=.5){let s=e$(t.min,t.max,r);e1(t,e,i,s,n)}function e4(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function e5(t,e,i){let n=i??t;e3(t.x,e4(e.x,n.x),e.scaleX,e.scale,e.originX),e3(t.y,e4(e.y,n.y),e.scaleY,e.scale,e.originY)}function e6(t,e){return eZ(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}class e8 extends eM{constructor(){super(...arguments),this.type="html",this.renderInstance=eO}mount(t){tr(t.style),super.mount(t)}readValueFromInstance(t,e){if(h.has(e))return this.projection?.isProjecting?tw(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tS(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(to(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e6(t,e)}
1build(t,e,i){eR(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return eG(t,e,i)}}let e7=["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 e9(t){if("string"!=typeof t||t.includes("-"));else if(e7.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let it=(0,s.createContext)({}),ie=(0,s.createContext)({strict:!1}),ii=(0,s.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),ir=(0,s.createContext)({});function is(t){return Array.isArray(t)?t.join(" "):t}let io=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ia(t,e,i){for(let n in e)J(e[n])||ez(n,i)||(t[n]=e[n])}let il=()=>({...io(),attrs:{}}),ih=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 iu(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ih.has(t)}function ic(t){return J(t)?t.get():t}let id=(0,s.createContext)(null);function ip(t){let e=(0,s.useRef)(null);return null===e.current&&(e.current=t()),e.current}let im=t=>(e,i)=>{let n=(0,s.useContext)(ir),r=(0,s.useContext)(id),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,r){return{latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=ic(s[t]);let{initial:o,animate:a}=t,l=ey(t),h=ev(t);e&&h&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,c=(u=u||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!ep(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=ew(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(i,n,r,t),renderState:e()}})(t,e,n,r);return i?o():ip(o)},ig=im({scrapeMotionValuesFromProps:eG,createRenderState:io}),iy=im({scrapeMotionValuesFromProps:eY,createRenderState:il}),iv={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"]},ix=!1;function ib(){return!function(){if(ix)return;let t={};for(let e in iv)t[e]={isEnabled:t=>iv[e].some(e=>!!t[e])};eT=t,ix=!0}(),eT}let iw=Symbol.for("motionComponentSymbol"),iS="data-"+eC("framerAppearId"),ik=(0,s.createContext)({});function iT(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let iP="u">typeof window?s.useLayoutEffect:s.useEffect;function iM(t,{forwardMotionProps:e=!1,type:i}={},n,o){n&&function(t){let e=ib();for(let i in t)e[i]={...e[i],...t[i]};eT=e}(n);let a=i?"svg"===i:e9(t),l=a?iy:ig;function h(i,n){var h;let u,c,d,p={...(0,s.useContext)(ii),...i,layoutId:function({layoutId:t}){let e=(0,s.useContext)(it).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:m,isValidProp:f}=p,g=function(t){let{initial:e,animate:i}=function(t,e){if(ey(t)){let{initial:e,animate:i}=t;return{initial:!1===e||em(e)?e:void 0,animate:em(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(ir));return(0,s.useMemo)(()=>({initial:e,animate:i}),[is(e),is(i)])}(i),y=l(i,m);if(!m&&"u">typeof window){(0,s.useContext)(ie).strict;let e=function(t){let{drag:e,layout:i}=ib();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(p);u=e.MeasureLayout,g.visualElement=function(t,e,i,n,r,o){let{visualElement:a}=(0,s.useContext)(ir),l=(0,s.useContext)(ie),h=(0,s.useContext)(id),u=(0,s.useContext)(ii),c=u.reducedMotion,d=u.skipAnimations,p=(0,s.useRef)(null),m=(0,s.useRef)(!1);n=n||l.renderer,!p.current&&n&&(p.current=n(t,{visualState:e,parent:a,props:i,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:c,skipAnimations:d,isSVG:o}),m.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let f=p.current,g=(0,s.useContext)(ik);f&&!f.projection&&r&&("html"===f.type||"svg"===f.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutAnchor:u,layoutCrossfade:c}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&iT(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:h,layoutAnchor:u})}(p.current,i,r,g);let y=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{f&&y.current&&f.update(i,h)});let v=i[iS],x=(0,s.useRef)(!!v&&"u">typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return iP(()=>{m.current=!0,f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),x.current&&f.animationState&&f.animationState.animateChanges())}),(0,s.useEffect)(()=>{f&&(!x.current&&f.animationState&&f.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),x.current=!1),f.enteringChildren=void 0)}),f}(t,y,p,o,e.ProjectionNode,a)}return(0,r.jsxs)(ir.Provider,{value:g,children:[u&&g.visualElement?(0,r.jsx)(u,{visualElement:g.visualElement,...p}):null,function(t,e,i,{latestValues:n},r,o=!1,a,l){let h=(a??e9(t)?function(t,e,i,n){let r=(0,s.useMemo)(()=>{let i=il();return eI(i,e,eF(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ia(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i,n,r={},o=(i=t.style||{},ia(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,s.useMemo)(()=>{let i=io();return eR(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=o,r})(e,n,r,t),u=function(t,e,i,n){let r={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&!J(t[s])&&((s.startsWith("on")?!iu(s):n?.(s)??!iu(s))||!0===i&&iu(s)||!e&&!iu(s)||t.draggable&&s.startsWith("onDrag"))&&(r[s]=t[s]);return r}(e,"string"==typeof t,o,l),c=t!==s.Fragment?{...u,...h,ref:i}:{},{children:d}=e,p=(0,s.useMemo)(()=>J(d)?d.get():d,[d]);return(0,s.createElement)(t,{...c,children:p})}(t,i,(h=g.visualElement,c=(0,s.useRef)(n),(0,s.useInsertionEffect)(()=>{c.current=n}),d=(0,s.useRef)(null),(0,s.useCallback)(t=>{t&&y.onMount?.(t),h&&(t?h.mount(t):h.unmount());let e=c.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(d.current=i)}else d.current?(d.current(),d.current=null):e(t);else e&&(e.current=t)},[h])),y,m,e,a,f)]})}h.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let u=(0,s.forwardRef)(h);return u[iw]=t,u}class iC{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iA(t,e,i){let n=t.getProps();return ew(n,e,void 0!==i?i:n.custom,t)}function iE(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function ij(t,e){let i=t?.[e]??t?.default??t;return i!==t?iE(i,t):i}let iR=t=>Array.isArray(t);function iV(t,e){let i=t.getValue("willChange");if(J(i)&&i.add)return i.add(e);if(!i&&tR.WillChange){let i=new tR.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let iD=(...t)=>t.reduce((t,e)=>i=>e(t(i)));function iL(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 iI(t,e){return i=>i>0?e:t}
1let iB=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},iF=[w,b,E];function iO(t){let e=iF.find(e=>e.test(t));if(!e)return tn(`'${t}' is not an animatable color. Use the equivalent color code instead.`),!1;let i=e.parse(t);return e===E&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=iL(a,n,t+1/3),s=iL(a,n,t),o=iL(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let iN=(t,e)=>{let i=iO(t),n=iO(e);if(!i||!n)return iI(t,e);let r={...i};return t=>(r.red=iB(i.red,n.red,t),r.green=iB(i.green,n.green,t),r.blue=iB(i.blue,n.blue,t),r.alpha=e$(i.alpha,n.alpha,t),b.transform(r))},iU=new Set(["none","hidden"]);function iW(t,e){return i=>e$(t,e,i)}function i$(t){return"number"==typeof t?iW:"string"==typeof t?tl(t)?iI:j.test(t)?iN:iG:Array.isArray(t)?iH:"object"==typeof t?j.test(t)?iN:iz:iI}function iH(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>i$(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function iz(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=i$(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let iG=(t,e)=>{let i=O.createTransformer(e),n=B(t),r=B(e);if(!(n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length))return tn(`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.`),iI(t,e);if(iU.has(t)&&!r.values.length||iU.has(e)&&!n.values.length)return iU.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return iD(iH(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],o=t.indexes[s][n[s]],a=t.values[o]??0;i[r]=a,n[s]++}return i}(n,r),r.values),i)},iY=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function iX(t,e,i){if("number"==typeof t&&"number"==typeof e&&"number"==typeof i)return e$(t,e,i);if("string"==typeof t&&"string"==typeof e){let i=function(t,e){let i=iY.exec(t);if(!i)return;let n=iY.exec(e);if(!n||i[2]!==n[2])return;let r=i[2],s=parseFloat(i[1]),o=parseFloat(n[1]);return t=>m(e$(s,o,t))+r}(t,e);if(i)return i}return i$(t)(t,e)}let iZ=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tL.update(e,t),stop:()=>tI(e),now:()=>tB.isProcessing?tB.timestamp:t6.now()}};function iK(t,e=50,i=2e4,n){let r=0,s=t.next(r);for(n?.push(s.value);!s.done&&r<i;)r+=e,s=t.next(r),n?.push(s.value);return r>=i?1/0:r}let i_=.01,iq=2,iJ=.005,iQ=.5;function i1(t,e){return t*Math.sqrt(1-e*e)}let i0=["duration","bounce"],i2=["stiffness","damping","mass"];function i3(t,e){return e.some(e=>void 0!==t[e])}function i4(t=.3,e=.3){let i,n,r,s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,o=s.keyframes[0],a=s.keyframes[s.keyframes.length-1],l={done:!1,value:o},{stiffness:h,damping:c,mass:d,duration:p,velocity:m,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!i3(t,i2)&&i3(t,i0))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*u(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:r}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let r,s;tn(tX(10));let o=1-e;o=u(.05,1,o),t=u(.01,10,t/1e3),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/i1(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=o*o*e*e*t,a=Math.exp(-n),l=i1(e*e,o);return(n*i+i-s)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=tX(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=a*a*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...s,velocity:-((s.velocity||0)/1e3)}),g=c/(2*Math.sqrt(h*d)),y=Math.sqrt(h/d)/1e3,v=g*y,x={target:a,delta:a-o,velocity:m||0,restSpeed:0,restDelta:0},b=()=>{let t=5>Math.abs(x.delta);x.restSpeed=s.restSpeed||(t?i_:iq),x.restDelta=s.restDelta||(t?iJ:iQ)};if(b(),g<1){let t=i1(y,g),e={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};r=()=>{e.A=(x.velocity+v*x.delta)/t,e.sinC=v*e.A+x.delta*t,e.cosC=v*x.delta-e.A*t};let s=i=>{i!==e.t&&(e.t=i,e.env=Math.exp(-v*i),e.sin=Math.sin(t*i),e.cos=Math.cos(t*i))};i=t=>(s(t),x.target-e.env*(e.A*e.sin+x.delta*e.cos)),n=t=>(s(t),e.env*(e.sinC*e.sin+e.cosC*e.cos))}else if(1===g){i=t=>x.target-Math.exp(-y*t)*(x.delta+(x.velocity+y*x.delta)*t);let t={C:0};r=()=>{t.C=x.velocity+y*x.delta},n=e=>Math.exp(-y*e)*(y*t.C*e-x.velocity)}else{let t=y*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-v*e),n=Math.min(t*e,300);return x.target-i*((x.velocity+v*x.delta)*Math.sinh(n)+t*x.delta*Math.cosh(n))/t};let e={P:0,sinh:0,cosh:0};r=()=>{e.P=(x.velocity+v*x.delta)/t,e.sinh=v*e.P-x.delta*t,e.cosh=v*x.delta-e.P*t},n=i=>{let n=Math.exp(-v*i),r=Math.min(t*i,300);return n*(e.sinh*Math.sinh(r)+e.cosh*Math.cosh(r))}}r();let w=!i3(s,i2)&&i3(s,i0),S=f&&p||null,k={calculatedDuration:S,retarget:(t,e)=>{x.target=t[t.length-1],x.delta=x.target-t[0],x.velocity=w?0:-(e/1e3),s.restSpeed&&s.restDelta||b(),k.calculatedDuration=S,l.done=!1,r()},velocity:t=>tX(n(t)),next:t=>{let e=i(t);return f?l.done=t>=p:l.done=Math.abs(tX(n(t)))<=x.restSpeed&&Math.abs(x.target-e)<=x.restDelta,l.value=l.done?x.target:e,l},toString:()=>{let t=Math.min(iK(k),2e4),e=ee(e=>k.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return k}function i5({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===o?g:o(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/n),x=t=>{let e=v(t);m.done=Math.abs(e)<=h,m.value=m.done?y:y+e},b=t=>{let e;if((e=m.value)<a||e>l){var i;c=t,d=i4({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:-v(t)/n*1e3,damping:r,stiffness:s,restDelta:h,restSpeed:u})}};return b(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,x(t),b(t)),void 0!==c&&t>=c)?d.next(t-c):(e||x(t),m)}}}i4.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(iK(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:r/1e3}}(t,100,i4);return t.ease=e.ease,t.duration=tX(e.duration),t.type="keyframes",t};let i6=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function i8(t,e,i,n){return t===e&&i===n?tj:r=>
10===r||1===r?r:i6(function(t,e,i,n,r){let s,o,a=0;do(s=i6(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12)return o}(r,0,1,t,i),e,n)}let i7=i8(.42,0,1,1),i9=i8(0,0,.58,1),nt=i8(.42,0,.58,1),ne=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ni=t=>e=>1-t(1-e),nn=i8(.33,1.53,.69,.99),nr=ni(nn),ns=ne(nr),no=t=>t>=1?1:(t*=2)<1?.5*nr(t):.5*(2-Math.pow(2,-10*(t-1))),na=t=>1-Math.sin(Math.acos(t)),nl=ni(na),nh=ne(na),nu={linear:tj,easeIn:i7,easeInOut:nt,easeOut:i9,circIn:na,circInOut:nh,circOut:nl,backIn:nr,backInOut:ns,backOut:nn,anticipate:no},nc=t=>{if(t9(t)){tr(t.length);let[e,i,n,r]=t;return i8(e,i,n,r)}return"string"==typeof t?(tr(nu[t],`Invalid easing type '${t}'`),nu[t]):t},nd=(t,e,i)=>{let n=e-t;return n?(i-t)/n:1};function np({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let s,o=Array.isArray(n)&&"number"!=typeof n[0]?n.map(nc):nc(n),a={done:!1,value:e[0]};if(2===e.length&&!Array.isArray(o)&&(!i||2!==i.length||0===i[0]&&1===i[1])){let[i,n]=e,r=i===n?void 0:(tR.mix||iX)(i,n);return{calculatedDuration:t,next:e=>(a.value=r?r(o(t>0?u(0,1,e/t):1)):n,a.done=e>=t,a)}}let l=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(tr(e.length),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],r=i||tR.mix||iX,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=iD(Array.isArray(e)?e[i]||tj:e,s)),n.push(s)}return n}(e,n,r),l=a.length,h=i=>{if(o&&i<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=nd(t[n],t[n+1],i);return a[n](r)};return i?e=>h(u(t[0],t[s-1],e)):h}((r=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=nd(0,e,n);t.push(e$(i,1,r))}}(s=[0],e.length-1),s),r.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||nt).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}let nm={decay:i5,inertia:i5,tween:np,keyframes:np,spring:i4};function nf(t){"string"==typeof t.type&&(t.type=nm[t.type])}let ng=t=>t/100;class ny extends t4{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==t6.now()&&this.tick(t6.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause(),t7(this,this.options)}initAnimation(){let{options:t}=this;nf(t);let{type:e=np,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,a=e||np;a!==np&&"number"!=typeof o[0]&&(this.mixKeyframes=iD(ng,iX(o[0],o[1])),o=[0,100]);let l=a(o===t.keyframes?t:{...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=iK(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:n,totalDuration:r,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:h=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:m,type:f,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-h*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let b=this.currentTime,w=n;if(d){let t=Math.min(this.currentTime,r)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/a)):"mirror"===p&&(w=o)),b=u(0,1,i)*a}x?(this.delayState.value=c[0],i=this.delayState):i=w.next(b),s&&!x&&(i.value=s(i.value));let{done:S}=i;x||null===l||(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return k&&f!==i5&&(i.value=t3(c,this.options,y,this.speed)),g&&g(i.value),k&&this.finish(),i}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=tX(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}
1getGeneratorVelocity(){return function(t,e,i=0){var n,r;let s;return e<=0?i:t.velocity?t.velocity(e):(n=e=>t.next(e).value,r=t.next(e).value,el(r-n(s=Math.max(e-5,0)),e-s))}(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(t6.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iZ,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(t6.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}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}let nv={anticipate:no,backInOut:ns,circInOut:nh};class nx extends es{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nv&&(t.ease=nv[t.ease])}(t),nf(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new ny({...s,autoplay:!1}),a=Math.max(10,t6.now()-this.startTime),l=u(0,10,a-10),h=o.sample(a).value,{name:c}=this.options;r&&c&&tq(r,c,h),e.setWithVelocity(o.sample(Math.max(0,a-l)).value,h,l),o.stop()}}let nb=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(O.test(t)||"0"===t)&&!t.startsWith("url("));function nw(t){t.duration=0,t.type="keyframes"}let nS=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nk=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nT=tJ(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nP extends t4{constructor(t){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=t6.now();const{keyframes:e,name:i,motionValue:n,element:r}=t;t.autoplay??(t.autoplay=!0),t.delay??(t.delay=0),t.type??(t.type="keyframes"),t.repeat??(t.repeat=0),t.repeatDelay??(t.repeatDelay=0),t.repeatType??(t.repeatType="loop");const s=r?.KeyframeResolver||tz;this.keyframeResolver=new s(e,(e,i,n)=>this.onKeyframesResolved(e,i,t,!n),i,n,r),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let r;this.keyframeResolver=void 0;let{name:s,type:o,velocity:a,delay:l,isHandoff:h,onUpdate:u}=i;this.resolvedAt=t6.now();let c=!0;!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=nb(r,e),a=nb(s,e);return o&&a?function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||er(i))&&n:(o!==a&&tn(`You are trying to animate ${e} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`),!1)}(t,s,o,a)&&(c=!1,(tR.instantAnimations||!l)&&u?.(t3(t,i,e)),t[0]=t[t.length-1],nw(i),i.repeat=0);let d=n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,{onComplete:p}=i;if(i.startTime??(i.startTime=d),i.finalKeyframe=e,i.keyframes=t,i.onComplete=()=>{p?.(),this.notifyFinished()},c&&!h&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o,keyframes:a}=t;if(!i||!(eo.has(i)||nk.has(i)))return!1;let l=e?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;
1let{onUpdate:h,transformTemplate:u}=e.owner.getProps();return nT()&&(eo.has(i)||nk.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&nS.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!u)&&!h&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(i)){i.element=i.motionValue?.owner?.current;try{r=new nx(i)}catch{r=new ny(i)}}else r=new ny(i);this.pendingTimeline&&(this.stopTimeline=r.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=r}get finished(){return this._animation?this._animation.finished:super.finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tW=!0,tH(),t$(),tW=!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 nM={type:"spring",stiffness:500,damping:25,restSpeed:10},nC={type:"keyframes",duration:.8},nA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nE=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nj=(t,e,i,n={},r,s)=>o=>{let a=ij(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=tX(l);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function(t){for(let e in t)if(!nE.has(e))return!0;return!1}(a)&&Object.assign(c,((t,{keyframes:e})=>e.length>2?nC:h.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nM:nA)(t,c)),c.duration&&(c.duration=tX(c.duration)),c.repeatDelay&&(c.repeatDelay=tX(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(nw(c),0===c.delay&&(d=!0)),(tR.instantAnimations||tR.skipAnimations||r?.shouldSkipAnimations||a.skipAnimations)&&(d=!0,nw(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!s&&void 0!==e.get()){let t=t3(c.keyframes,a);if(void 0!==t)return void tL.update(()=>{c.onUpdate(t),c.onComplete()})}return a.isSync?new ny(c):new nP(c)},nR="u">typeof window;function nV(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s,transitionEnd:o,...a}=e,l=t.getDefaultTransition();s=s?iE(s,l):l;let h=s?.reduceMotion,u=s?.skipAnimations;n&&(s=n);let c=[],d=r&&t.animationState&&t.animationState.getState()[r],p=s?.path;for(let e in p&&p.animateVisualElement(t,a,s,i,c),a){let n=t.getValue(e,t.latestValues[e]??null),r=a[e];if(void 0===r||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let o={delay:i,...ij(s||{},e)};u&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(r)&&r===l&&!o.velocity){tL.update(()=>n.set(r));continue}let p=!1;if(nR&&window.MotionHandoffAnimation){let i=t.props[iS];if(i){let t=window.MotionHandoffAnimation(i,e,tL);null!==t&&(o.startTime=t,p=!0)}}iV(t,e);let m=h??t.shouldReduceMotion;n.start(nj(e,n,r,m&&Q.has(e)?{type:!1}:o,t,p));let f=n.animation;f&&c.push(f)}if(o){let e=()=>tL.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=iA(t,e)||{};for(let e in r={...r,...i}){var s;let i=iR(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,ec(i))}}(t,o)});c.length?Promise.all(c).then(e):e()}return c}function nD(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}
1function nL(t,e,i={}){let n=iA(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(nV(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,n=0,r=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nL(l,e,{...o,delay:i+("function"==typeof n?0:n)+nD(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,s,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}let nI=eg.length;function nB(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let nF=[...ef].reverse(),nO=ef.length;function nN(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nU(){return{animate:nN(!0),whileInView:nN(),whileHover:nN(),whileTap:nN(),whileDrag:nN(),whileFocus:nN(),exit:nN()}}let nW=0;function n$(t){return[t("x"),t("y")]}function nH(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}let nz={x:!1,y:!1};function nG(t){return t.max-t.min}function nY(t,e,i,n=.5){t.origin=n,t.originPoint=e$(e.min,e.max,t.origin),t.scale=nG(i)/nG(e),t.translate=e$(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 nX(t,e,i,n){nY(t.x,e.x,i.x,n?n.originX:void 0),nY(t.y,e.y,i.y,n?n.originY:void 0)}function nZ(t,e,i,n=0){t.min=(n?e$(i.min,i.max,n):i.min)+e.min,t.max=t.min+nG(e)}function nK(t,e,i,n=0){let r=n?e$(i.min,i.max,n):i.min;t.min=e.min-r,t.max=t.min+nG(e)}function n_(t,e,i,n){nK(t.x,e.x,i.x,n?.x),nK(t.y,e.y,i.y,n?.y)}let nq=t=>"object"==typeof t&&null!==t;function nJ(t){return nq(t)&&"ownerSVGElement"in t}function nQ(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let r=i?.[t]??n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}let n1=new WeakMap,n0=(t,e,i)=>(n,r)=>r&&r[0]?r[0][t+"Size"]:nJ(n)&&"getBBox"in n?n.getBBox()[e]:n[i],n2=n0("inline","width","offsetWidth"),n3=n0("block","height","offsetHeight");function n4({target:t,borderBoxSize:e}){n1.get(t)?.forEach(i=>{i(t,{get width(){return n2(t,e)},get height(){return n3(t,e)}})})}function n5(t){t.forEach(n4)}let n6=new Set;function n8(t,e){let r;return"function"==typeof t?(n6.add(t),n||(n=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};n6.forEach(e=>e(t))},window.addEventListener("resize",n)),()=>{n6.delete(t),n6.size||"function"!=typeof n||(window.removeEventListener("resize",n),n=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(n5)),(r=nQ(t)).forEach(t=>{let n=n1.get(t);n||(n=new Set,n1.set(t,n)),n.add(e),i?.observe(t)}),()=>{r.forEach(t=>{let n=n1.get(t);n?.delete(e),n?.size||i?.unobserve(t)})})}let n7=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),n9=new Set(["INPUT","SELECT","TEXTAREA"]),rt=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function re(t){return{point:{x:t.pageX,y:t.pageY}}}function ri(t,e,i,n){return nH(t,e,t=>rt(t)&&i(t,re(t)),n)}let rn=({current:t})=>t?t.ownerDocument.defaultView:null,rr=(t,e)=>Math.abs(t-e),rs=new Set(["auto","scroll"]);class ro{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ra(this.lastRawMoveEventInfo,this.transformPagePoint));let i=rh(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(rr(t.x,e.x)**2+rr(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=tB;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=ra(e,this.transformPagePoint),tL.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=rh("pointercancel"===t.type?this.lastMoveEventInfo:ra(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!rt(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;const a=ra(re(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=tB;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,rh(a,this.history));const c={passive:!0,capture:!0};this.removeListeners=iD(ri(this.contextWindow,"pointermove",this.handlePointerMove,c),ri(this.contextWindow,"pointerup",this.handlePointerUp,c),ri(this.contextWindow,"pointercancel",this.handlePointerUp,c)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(rs.has(t.overflowX)||rs.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:n.x-e.x,y:n.y-e.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,n),tL.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tI(this.updatePoint)}}function ra(t,e){return e?{point:e(t.point)}:t}function rl(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rh({point:t},e){return{point:t,delta:rl(t,ru(e)),offset:rl(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=ru(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>tX(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&n.timestamp-i.timestamp>2*tX(.1)&&(i=t[1]);let r=(n.timestamp-i.timestamp)/1e3;if(0===r)return{x:0,y:0};let s={x:(n.x-i.x)/r,y:(n.y-i.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e)}}function ru(t){return t[t.length-1]}function rc(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 rd(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function rp(t,e,i){return{min:rm(t,e),max:rm(t,i)}}function rm(t,e){return"number"==typeof t?t:t[e]||0}let rf=new WeakMap;class rg{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=q(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let r=t=>{e&&this.snapToCursor(re(t).point),this.stopAnimation()},s=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nz[t])return null;else return nz[t]=!0,()=>{nz[t]=!1};return nz.x||nz.y?null:(nz.x=nz.y=!0,()=>{nz.x=nz.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),n$(t=>{let e=this.getAxisMotionValue(t).get()||0;if(T.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];
1n&&(e=nG(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&tL.update(()=>r(t,e),!1,!0),iV(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&tL.update(()=>s(t,e),!1,!0)},a=(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 ro(t,{onSessionStart:r,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:rn(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&tL.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!rv(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?e$(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?e$(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&iT(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:rc(t.x,i,r),y:rc(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:rp(t,"left","right"),y:rp(t,"top","bottom")}}(e),n!==this.constraints&&!iT(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&n$(t=>{var e,n;let r;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],r={},void 0!==n.min&&(r.min=n.min-e.min),void 0!==n.max&&(r.max=n.max-e.min),r))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iT(e))return!1;let n=e.current;tr();let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let s=function(t,e,i){let n=e6(t,i),{scroll:r}=e;return r&&(e2(n.x,r.offset.x),e2(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:rd(t.x,s.x),y:rd(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eZ(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(n$(o=>{if(!rv(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===s||s===o)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iV(this.visualElement,t),i.start(nj(t,i,0,e,this.visualElement,!1))}stopAnimation(){n$(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){n$(e=>{let{drag:i}=this.getProps();if(!rv(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e],o=r.get()||0;r.set(t[e]-e$(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iT(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};n$(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,r;let s,o,a,l=e.get();n[t]=(i={min:l,max:l},r=this.constraints[t],s=.5,o=nG(i),(a=nG(r))>o?s=nd(r.min,r.max-o,i.min):o>a&&(s=nd(i.min,i.max-a,r.min)),u(0,1,s))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),n$(e=>{if(!rv(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(e$(r,s,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;rf.set(this.visualElement,this);let e=this.visualElement.current,i=ri(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}
1=this.getProps(),r=t.target,s=r!==e&&(n9.has(r.tagName)||!0===r.isContentEditable);i&&n&&!s&&this.start(t)}),n=()=>{var i,n,r;let s,o,{dragConstraints:a}=this.getProps();iT(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=a.current,s=n8(i,ry(r=()=>this.scalePositionWithinConstraints())),o=n8(n,ry(r)),t=()=>{s(),o()}))},{projection:r}=this.visualElement,s=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),tL.read(n);let o=nH(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(n$(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),s(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function ry(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function rv(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let rx=t=>(e,i)=>{t&&tL.update(()=>t(e,i),!1,!0)},rb={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var rw=s;function rS(t=!0){let e=(0,s.useContext)(id);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,o=(0,s.useId)();(0,s.useEffect)(()=>{if(t)return r(o)},[t]);let a=(0,s.useCallback)(()=>t&&n&&n(o),[o,n,t]);return!i&&n?[!1,a]:[!0]}let rk=!1;class rT extends rw.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),rk&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rb.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,t.layoutDependency!==e&&s.setOptions({...s.options,layoutDependency:e}),rk=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||tL.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),ea.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;rk=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rP(t){let[e,i]=rS(),n=(0,rw.useContext)(it);return(0,r.jsx)(rT,{...t,layoutGroup:n,switchLayoutGroup:(0,rw.useContext)(ik),isPresent:e,safeToRemove:i})}let rM=eN.length,rC=t=>"string"==typeof t?parseFloat(t):t,rA=t=>"number"==typeof t||P.test(t);function rE(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rj=rV(0,.5,nl),rR=rV(.5,.95,tj);function rV(t,e,i){return n=>n<t?0:n>e?1:i(nd(t,e,n))}function rD(t,e){t.min=e.min,t.max=e.max}function rL(t,e){rD(t.x,e.x),rD(t.y,e.y)}function rI(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rB(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function rF(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(T.test(e)&&(e=parseFloat(e),e=e$(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=e$(s.min,s.max,n);t===s&&(a-=e),t.min=rB(t.min,e,i,a,r),t.max=rB(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let rO=["x","scaleX","originX"],rN=["y","scaleY","originY"];function rU(t,e,i,n){rF(t.x,e,rO,i?i.x:void 0,n?n.x:void 0),rF(t.y,e,rN,i?i.y:void 0,n?n.y:void 0)}function rW(t){return 0===t.translate&&1===t.scale}function r$(t){return rW(t.x)&&rW(t.y)}function rH(t,e){return t.min===e.min&&t.max===e.max}function rz(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rG(t,e){return rz(t.x,e.x)&&rz(t.y,e.y)}function rY(t){return nG(t.x)/nG(t.y)}function rX(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rZ{constructor(){this.members=[]}add(t){tZ(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(tK(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(tK(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)}
1}relegate(t){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:r}=t.options;(void 0===n||n!==r)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let rK=(t,e)=>t.depth-e.depth;class r_{constructor(){this.children=[],this.isDirty=!1}add(t){tZ(this.children,t),this.isDirty=!0}remove(t){tK(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rK),this.isDirty=!1,this.children.forEach(t)}}let rq=["","X","Y","Z"],rJ=0;function rQ(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function r1({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=rJ++,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(r3),this.nodes.forEach(si),this.nodes.forEach(sn),this.nodes.forEach(r4)},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 r_)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t_),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=nJ(e)&&!(nJ(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,r=()=>this.root.updateBlockedByResize=!1;tL.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,s;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=t6.now(),s=({timestamp:t})=>{let i=t-e;i>=250&&(tI(s),r())},tL.setup(s,!0),i=()=>tI(s),rb.hasAnimatedSinceResize&&(rb.hasAnimatedSinceResize=!1,this.nodes.forEach(se))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||sh,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!rG(this.targetLayout,n),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={...ij(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h,e.path)}else e||se(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tI(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
1h(sr),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[iS];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tL,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(r8),this.nodes.forEach(r6);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(r7);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(r9),this.nodes.forEach(st),this.nodes.forEach(r0),this.nodes.forEach(r2)):this.nodes.forEach(r7),this.clearAllSnapshots();let t=t6.now();tB.delta=u(0,1e3/60,t-tB.timestamp),tB.timestamp=t,tB.isProcessing=!0,tF.update.process(tB),tF.preRender.process(tB),tF.render.process(tB),tB.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ea.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(r5),this.sharedNodes.forEach(ss)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tL.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tL.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nG(this.snapshot.measuredBox.x)||nG(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=q()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!r$(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||eq(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),sd((e=n).x),sd(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return q();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sm))){let{scroll:t}=this.root;t&&(e2(e.x,t.offset.x),e2(e.y,t.offset.y))}return e}removeElementScroll(t){let e=q();if(rL(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&rL(e,t),e2(e.x,r.offset.x),e2(e.y,r.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||q();rL(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(e2(n.x,-i.scroll.offset.x),e2(n.y,-i.scroll.offset.y)),eq(i.latestValues)&&e5(n,i.latestValues,i.layout?.layoutBox)}return eq(this.latestValues)&&e5(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=q();rL(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];eq(n.latestValues)&&(n.instance&&(e_(n.latestValues)&&n.updateSnapshot(),rL(i=q(),n.measurePageBox())),rU(e,n.latestValues,n.snapshot?.layoutBox,i))}return eq(this.latestValues)&&rU(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!==tB.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(!this.layout||!(n||r))return;this.resolvedRelativeTargetAt=tB.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=q(),this.targetWithTransforms=q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,h;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,h=this.options.layoutAnchor||void 0,nZ(o.x,a.x,l.x,h?.x),nZ(o.y,a.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):rL(this.target,this.layout.layoutBox),e0(this.target,this.targetDelta)):rL(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||e_(this.parent.latestValues)||eJ(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=q(),this.relativeTargetOrigin=q(),n_(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),r
1L(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tB.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;rL(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let r,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(e2(t.x,-r.scroll.offset.x),e2(t.y,-r.scroll.offset.y)),s&&(e.x*=s.x.scale,e.y*=s.y.scale,e0(t,s)),n&&eq(r.latestValues)&&e5(t,r.latestValues,r.layout?.layoutBox))}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=q());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rI(this.prevProjectionDelta.x,this.projectionDelta.x),rI(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nX(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&rX(this.projectionDelta.x,this.prevProjectionDelta.x)&&rX(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}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=K(),this.projectionDelta=K(),this.projectionDeltaWithTransform=K()}setAnimationOrigin(t,e=!1,i){let n,r=this.snapshot,s=r?r.latestValues:{},o={...this.latestValues},a=K();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=q(),h=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(h&&!c&&!0===this.options.crossfade&&!this.path.some(sl));this.animationProgress=0;let p=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,r=p?.(i);if(r?(a.x.translate=r.x,a.x.scale=e$(t.x.scale,1,i),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=r.y,a.y.scale=e$(t.y.scale,1,i),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(so(a.x,t.x,i),so(a.y,t.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,m,f,g,y,v;n_(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,g=this.relativeTargetOrigin,y=l,v=i,sa(f.x,g.x,y.x,v),sa(f.y,g.y,y.y,v),n&&(u=this.relativeTarget,m=n,rH(u.x,m.x)&&rH(u.y,m.y))&&(this.isProjectionDirty=!1),n||(n=q()),rL(n,this.relativeTarget)}h&&(this.animationValues=o,function(t,e,i,n,r,s){r?(t.opacity=e$(0,i.opacity??1,rj(n)),t.opacityExit=e$(e.opacity??1,0,rR(n))):s&&(t.opacity=e$(e.opacity??1,i.opacity??1,n));for(let r=0;r<rM;r++){let s=eN[r],o=rE(e,s),a=rE(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rA(o)===rA(a)?(t[s]=Math.max(e$(rC(o),rC(a),n),0),(T.test(a)||T.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=e$(e.rotate||0,i.rotate||0,n))}(o,s,this.latestValues,i,d,c)),r&&void 0!==r.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tI(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tL.update(()=>{var e,i,n;let r;rb.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ec(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(r=J(e)?e:ec(e)).start(nj("",r,i,n)),r.animation),function(t,e){let i=globalThis.__MOTION_INSPECT__;if(i)try{i({...t8("layout-animation-start",t),node:e})}catch{}}(this.currentAnimation,this),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,layout:i,latestValues:n}=t,{target:r}=t;if(e&&r&&i){if(this!==t&&this.layout&&i&&sp(this.options.animationType,this.layout.layoutBox,i.layoutBox)){r=this.target||q();let e=nG(this.layout.layoutBox.x);r.x.min=t.target.x.min,r.x.max=r.x.min+e;let i=nG(this.layout.layoutBox.y);r.y.min=t.target.y.min,r.y.max=r.y.min+i}rL(e,r),e5(e,n),nX(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rZ),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&rQ("z",t,n,this.animationValues);for(let e=0;e<rq.length;e++)rQ(`rotate${rq[e]}`,t,n,this.animationValues),rQ(`skew${rq[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=ic(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ic(e?.pointerEvents)||""),this.hasProjected&&!eq(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:r,rotateX:s,rotateY:o,skewX:a,skewY:l}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotate(${r}deg) `),s&&(n+=`rotateX(${s}deg) `),o&&(n+=`rotateY(${o}deg) `),a&&(n+=`skewX(${a}deg) `),l&&(n+=`skewY(${l}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,eH){if(void 0===r[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=eH[e],l="none"===s?r[e]:i(r[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?ic(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(r6),this.root.sharedNodes.clear()}}}function r0(t){t.updateLayout()}function r2(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;if("size"===r)n$(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=nG(n);n.min=i[t].min,n.max=n.min+r});else if("x"===r||"y"===r){let t="x"===r?"y":"x";rD(s?e.measuredBox[t]:e.layoutBox[t],i[t])}else sp(r,e.layoutBox,i)&&n$(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=nG(i[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=K();nX(o,i,e.layoutBox);let a=K();s?nX(a,t.applyTransform(n,!0),e.measuredBox):nX(a,i,e.layoutBox);let l=!r$(o),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=t.options.layoutAnchor||void 0,a=q();n_(a,e.layoutBox,r.layoutBox,o);let l=q();n_(l,i,s.layoutBox,o),rG(a,l)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function r3(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function r4(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function r5(t){t.clearSnapshot()}function r6(t){t.clearMeasurements()}function r8(t){t.isLayoutDirty=!0,t.updateLayout()}function r7(t){t.isLayoutDirty=!1}function r9(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function st(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function se(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function si(t){t.resolveTargetDelta()}function sn(t){t.calcProjection()}function sr(t){t.resetSkewAndRotation()}function ss(t){t.removeLeadSnapshot()}function so(t,e,i){t.translate=e$(e.translate,0,i),t.scale=e$(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function sa(t,e,i,n){t.min=e$(e.min,i.min,n),t.max=e$(e.max,i.max,n)}function sl(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sh={duration:.45,ease:[.4,0,.1,1]},su=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),sc=su("applewebkit/")&&!su("chrome/")?Math.round:tj;function sd(t){t.min=sc(t.min),t.max=sc(t.max)}function sp(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rY(e)-rY(i)))}function sm(t){return t!==t.root&&t.scroll?.wasRoot}let sf=r1({attachResizeListener:(t,e)=>nH(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sg={current:void 0},sy=r1({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sg.current){let t=new sf({});t.mount(window),t.setOptions({layoutScroll:!0}),sg.current=t}return sg.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sv(t,e){let i=nQ(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function sx(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&tL.postRender(()=>r(e,re(e)))}function sb(t){return nq(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}let sw=(t,e)=>!!e&&(t===e||sw(t,e.parentElement)),sS=new WeakSet;function sk(t){return e=>{"Enter"===e.key&&t(e)}}function sT(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function sP(t){return rt(t)&&!(nz.x||nz.y)}let sM=new WeakSet;function sC(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&tL.postRender(()=>r(e,re(e)))}let sA=new WeakMap,sE=new WeakMap,sj=t=>{let e=sA.get(t.target);e&&e(t)},sR=t=>{t.forEach(sj)},sV={some:0,all:1},sD=function(t,e){if("u"<typeof Proxy)return iM;let i=new Map,n=(i,n)=>iM(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,iM(s,void 0,t,e)),i.get(s))})}({animation:{Feature:class extends iC{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nL(t,e,i)));else if("string"==typeof e)n=nL(t,e,i);else{let r="function"==typeof e?iA(t,e,i.custom):e;n=Promise.all(nV(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nU(),n=!0,r=!1,s=e=>(i,n)=>{let r=iA(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function o(o){let{props:a}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<nI;t++){let n=eg[t],r=e.props[n];(em(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},h=[],u=new Set,c={},d=1/0;for(let e=0;e<nO;e++){var p,m;let f=nF[e],g=i[f],y=void 0!==a[f]?a[f]:l[f],v=em(y),x=f===o?g.isActive:null;!1===x&&(d=e);let b=y===l[f]&&y!==a[f]&&v;if(b&&(n||r)&&t.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...c},!g.isActive&&null===x||!y&&!g.prevProp||ep(y)||"boolean"==typeof y)continue;if("exit"===f&&g.isActive&&!0!==x){g.prevResolvedValues&&(c={...c,...g.prevResolvedValues});continue}let w=(p=g.prevProp,"string"==typeof(m=y)?m!==p:!!Array.isArray(m)&&!nB(m,p)),S=w||f===o&&g.isActive&&!b&&v||e>d&&v,k=!1,T=Array.isArray(y)?y:[y],P=T.reduce(s(f),{});!1===x&&(P={});let{prevResolvedValues:M={}}=g,C={...M,...P},A=e=>{S=!0,u.has(e)&&(k=!0,u.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in C){let e=P[t],i=M[t];if(!c.hasOwnProperty(t))(iR(e)&&iR(i)?!nB(e,i)||w:e!==i)?null!=e?A(t):u.add(t):void 0!==e&&u.has(t)?A(t):g.protectedKeys[t]=!0}g.prevProp=y,g.prevResolvedValues=P,g.isActive&&(c={...c,...P}),(n||r)&&t.blockInitialAnimation&&(S=!1);let E=b&&w,j=!E||k;S&&j&&h.push(...T.map(e=>{let i={type:f};if("string"==typeof e&&(n||r)&&!E&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=iA(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=nD(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=iA(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),h.push({animation:e})}let f=!!h.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,r=!1,f?e(h):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=o(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nU(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();ep(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 iC{constructor(){super(...arguments),this.id=nW++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=iA(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends iC{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=i,a={root:n?n.current:void 0,rootMargin:r,threshold:"number"==typeof s?s:sV[s]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),r=e?i:n;r&&r(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;sE.has(i)||sE.set(i,{});let n=sE.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(sR,{root:t,...e})),n[r]}(a),sA.set(t,l),e.observe(t),()=>{sA.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(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iC{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,r,s]=sv(t,i),o=t=>{let n=t.currentTarget;if(!sP(t)||sM.has(t))return;sS.add(n),i.stopPropagation&&sM.add(t);let s=e(n,t),o={...r,capture:!0},a=(t,e)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",h,o),sS.has(n)&&sS.delete(n),sP(t)&&"function"==typeof s&&s(t,{success:e})},l=t=>{a(t,n===window||n===document||i.useGlobalTarget||sw(n,t.target))},h=t=>{a(t,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",h,o)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),sb(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=sk(()=>{if(sS.has(i))return;sT(i,"down");let t=sk(()=>{sT(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sT(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,r)),n7.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(sC(this.node,e,"Start"),(t,{success:e})=>sC(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iC{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=iD(nH(this.node.current,"focus",()=>this.onFocus()),nH(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iC{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=sv(t,i);return n.forEach(t=>{let i,n=!1,s=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),s&&(s=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(n){s=!0;return}o(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||nz.x||nz.y)return;s=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,r))},r),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",a,r)},r)}),s}(t,(t,e)=>(sx(this.node,e,"Start"),t=>sx(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iC{constructor(){super(...arguments),this.removePointerDownListener=tj}onPointerDown(t){this.session=new ro(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rn(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:rx(t),onStart:rx(e),onMove:rx(i),onEnd:(t,e)=>{delete this.session,n&&tL.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=ri(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 iC{constructor(t){super(t),this.removeGroupControls=tj,this.removeListeners=tj,this.controls=new rg(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tj}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:sy,MeasureLayout:rP},layout:{ProjectionNode:sy,MeasureLayout:rP}},(t,e)=>e.isSVG??e9(t)?new eX(e):new e8(e,{allowProjection:t!==s.Fragment}));var sL=s;function sI(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class sB extends sL.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(sb(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,
1i=sb(t)&&t.offsetWidth||0,n=sb(t)&&t.offsetHeight||0,r=getComputedStyle(e),s=this.props.sizeRef.current;s.height=parseFloat(r.height),s.width=parseFloat(r.width),s.top=e.offsetTop,s.left=e.offsetLeft,s.right=i-s.width-s.left,s.bottom=n-s.height-s.top,s.direction=r.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function sF({children:t,isPresent:e,anchorX:i,anchorY:n,root:o,pop:a}){let l=(0,sL.useId)(),h=(0,sL.useRef)(null),u=(0,sL.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=(0,sL.useContext)(ii),d=function(...t){return s.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=sI(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():sI(t[e],null)}}}}(...t),t)}(h,!1!==a?t.props?.ref??t?.ref:void 0);return(0,sL.useInsertionEffect)(()=>{let{width:t,height:r,top:s,left:d,right:p,bottom:m,direction:f}=u.current;if(e||!1===a||!h.current||!t||!r)return;let g="rtl"===f,y="left"===i?g?`right: ${p}`:`left: ${d}`:g?`left: ${d}`:`right: ${p}`,v="bottom"===n?`bottom: ${m}`:`top: ${s}`;h.current.dataset.motionPopId=l;let x=document.createElement("style");c&&(x.nonce=c);let b=o??document.head;return b.appendChild(x),x.sheet&&x.sheet.insertRule(` 2 [data-motion-pop-id="${l}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${r}px !important; 6 ${y}px !important; 7 ${v}px !important; 8 } 9 `),()=>{h.current?.removeAttribute("data-motion-pop-id"),b.contains(x)&&b.removeChild(x)}},[e]),(0,r.jsx)(sB,{isPresent:e,childRef:h,sizeRef:u,pop:a,children:!1===a?t:sL.cloneElement(t,{ref:d})})}let sO=({children:t,initial:e,isPresent:i,onExitComplete:n,custom:o,presenceAffectsLayout:a,mode:l,anchorX:h,anchorY:u,root:c})=>{let d=ip(sN),p=(0,s.useId)(),m=(0,s.useRef)(i),f=(0,s.useRef)(n);iP(()=>{m.current=i,f.current=n});let g=!0,y=(0,s.useMemo)(()=>(g=!1,{id:p,initial:e,isPresent:i,custom:o,onExitComplete:t=>{for(let e of(d.set(t,!0),d.values()))if(!e)return;n&&n()},register:t=>(d.set(t,!1),()=>{d.delete(t),m.current||d.size||f.current?.()})}),[i,d,n]);return a&&g&&(y={...y}),(0,s.useMemo)(()=>{d.forEach((t,e)=>d.set(e,!1))},[i]),s.useEffect(()=>{i||d.size||!n||n()},[i]),t=(0,r.jsx)(sF,{pop:"popLayout"===l,isPresent:i,anchorX:h,anchorY:u,root:c,children:t}),(0,r.jsx)(id.Provider,{value:y,children:t})};function sN(){return new Map}let sU=t=>t.key||"";function sW(t){let e=[];return s.Children.forEach(t,t=>{(0,s.isValidElement)(t)&&e.push(t)}),e}let s$=({children:t,custom:e,initial:i=!0,onExitComplete:n,presenceAffectsLayout:o=!0,mode:a="sync",propagate:l=!1,anchorX:h="left",anchorY:u="top",root:c})=>{let[d,p]=rS(l),m=(0,s.useMemo)(()=>sW(t),[t]),f=l&&!d?[]:m.map(sU),g=(0,s.useRef)(!0),y=(0,s.useRef)(m),v=ip(()=>new Map),x=(0,s.useRef)(new Set),[b,w]=(0,s.useState)(m),[S,k]=(0,s.useState)(m);iP(()=>{!l||d||S.length||p?.()},[d,l,S.length,p]),iP(()=>{g.current=!1,y.current=m;for(let t=0;t<S.length;t++){let e=sU(S[t]);f.includes(e)?(v.delete(e),x.current.delete(e)):!0!==v.get(e)&&v.set(e,!1)}},[S,f.length,f.join("-")]);let T=[];if(m!==b){let t=[...m],e=0;for(let i of S){let n=f.indexOf(sU(i));-1===n?(t.splice(e++,0,i),T.push(i)):e=n+T.length+1}return"wait"===a&&T.length&&(t=T),k(sW(t)),w(m),null}let{forceRender:P}=(0,s.useContext)(it);return(0,r.jsx)(r.Fragment,{children:S.map(t=>{let s=sU(t),b=(!l||!!d)&&(m===S||f.includes(s));return(0,r.jsx)(sO,{isPresent:b,initial:(!g.current||!!i)&&void 0,custom:e,presenceAffectsLayout:o,mode:a,root:c,onExitComplete:b?void 0:()=>{if(x.current.has(s)||!v.has(s))return;x.current.add(s),v.set(s,!0);let t=!0;v.forEach(e=>{e||(t=!1)}),t&&(P?.(),k(y.current),l&&p?.(),n&&n())},anchorX:h,anchorY:u,children:t},s)})})};var sH=t.i(72328),sz=t.i(14813),sG=t.i(16480),sY=t.i(96604),sX=t.i(80936);let sZ=Date.parse("2026-09-29T23:59:59+01:00"),sK={storageKey:"hr-announce-mobile-app",href:"/mobile/",endMs:null,messages:["HackRisk Mobile is coming soon to iPhone. Join the waitlist.","Your own HackRisk Score, in your pocket.","We check your email, phone number and home address for leaks.","Sophia explains what it all means, in plain English."],mobileMessage:"HackRisk Mobile is coming",linkLabel:"HackRisk Mobile is coming soon to iPhone. Read more and join the waitlist.",dismissLabel:"Dismiss the HackRisk Mobile announcement"},s_={storageKey:"hr-tour-ticker",href:"/secure-tour/",endMs:sZ,messages:["
9SecureTour 2026 â AI, the Board & Managing Risk. Five UK cities, free to attend.","Belfast · London · Manchester · Glasgow · Duxford â September 2026.","A half-day for the people accountable for cyber risk. Wraps by 14:00.","Come and meet us â SecureTour 2026, five UK cities."],mobileMessage:"Come and meet us â free",linkLabel:"SecureTour 2026 â AI, the Board & Managing Risk. Five UK cities, free to attend. Read more and register.",dismissLabel:"Dismiss the SecureTour announcement"},sq=()=>()=>{},sJ=()=>!1;function sQ({announcement:t=s_}){let e=(0,s.useSyncExternalStore)(sq,()=>(function(t){var e;try{if("dismissed"===window.localStorage.getItem(t.storageKey))return!0}catch{}return e=Date.now(),null!==t.endMs&&!(e<=t.endMs)})(t),sJ),i=[...t.messages,...t.messages],[n,a]=(0,s.useState)(!1);return e||n?null:(0,r.jsx)("div",{className:"hr-tourticker",style:{background:"var(--hr-tour-bg)",borderTop:"1px solid color-mix(in oklab, var(--hr-tour-fg) 34%, transparent)",borderBottom:"1px solid color-mix(in oklab, var(--hr-tour-fg) 34%, transparent)"},children:(0,r.jsxs)("div",{className:"hr-tourticker-inner",style:{maxWidth:1200,margin:"0 auto",padding:"0 32px",display:"flex",alignItems:"center",gap:12,height:32},children:[(0,r.jsxs)(o.default,{href:t.href,className:"hr-tourticker-link","aria-label":t.linkLabel,style:{display:"flex",alignItems:"center",gap:10,flex:1,minWidth:0,color:"var(--hr-tour-fg)",textDecoration:"none"},children:[(0,r.jsxs)("span",{className:"hr-tourticker-rail","aria-hidden":"true",style:{flex:1,minWidth:0,overflow:"hidden",WebkitMaskImage:"linear-gradient(90deg, transparent, black 3%, black 97%, transparent)",maskImage:"linear-gradient(90deg, transparent, black 3%, black 97%, transparent)"},children:[(0,r.jsxs)("span",{className:"hr-tourticker-static",style:{display:"none",alignItems:"center",gap:10,font:'500 13.5px "Geist", ui-sans-serif',letterSpacing:"0.01em",whiteSpace:"nowrap"},children:[(0,r.jsx)("span",{className:"hr-tourticker-dot"}),t.mobileMessage]}),(0,r.jsx)("span",{className:"hr-tourticker-track",style:{display:"flex",width:"max-content",gap:40,whiteSpace:"nowrap"},children:i.map((t,e)=>(0,r.jsxs)("span",{className:"hr-tourticker-msg",style:{display:"inline-flex",alignItems:"center",gap:10,flexShrink:0,font:'500 13.5px "Geist", ui-sans-serif',letterSpacing:"0.01em"},children:[(0,r.jsx)("span",{className:"hr-tourticker-dot"}),t]},e))})]}),(0,r.jsx)("span",{className:"hr-tourticker-arrow","aria-hidden":"true",style:{flexShrink:0,font:'500 13.5px "Geist", ui-sans-serif'},children:"â"})]}),(0,r.jsx)("button",{onClick:()=>{a(!0);try{window.localStorage.setItem(t.storageKey,"dismissed")}catch{}},"aria-label":t.dismissLabel,style:{flexShrink:0,width:22,height:22,borderRadius:6,border:"none",background:"transparent",color:"var(--hr-tour-fg)",cursor:"pointer",font:'400 15px "Geist", ui-sans-serif',lineHeight:1},children:"Ã"})]})})}let s1=[{heading:"Core",items:[{label:"All Services",href:"/services/"},{label:"Dark Web Scanning",href:"/services/dark-web-scanning/"},{label:"Recon Scanning",href:"/services/recon-scanning/"},{label:"Vulnerability Scanning",href:"/services/vulnerability-scanning/"},{label:"Phishing Simulations",href:"/services/phishing-simulations/"},{label:"Security Awareness Training",href:"/services/security-awareness-training/"},{label:"Supply Chain Security",href:"/services/supply-chain-security/"}]},{heading:"Supporting Features",items:[{label:"Integrations",href:"/integrations/"},{label:"Product roadmap",href:"/services/roadmap/",title:"Coming soon: what we are building, and a form to request a feature"}]}],s0=[{items:[{label:"About HackRisk",href:"/about/"},{label:"Our People",href:"/our-people/"},{label:"Legislation Guide",href:"/legislation-guide/"},{label:"What's a HackRisk Score?",href:"/what-is-a-hackrisk-score/"},{label:"Partner with HackRisk",href:"/partners/"},{label:"Get in Touch",href:"/contact/"}]}];function s2({open:t,reduce:e}){let i=e?{duration:0}:{type:"spring",stiffness:300,damping:25};return(0,r.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:[(0,r.jsx)(sD.path,{stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",initial:!1,animate:{d:t?"M 4 4 L 14 14":"M 2 5 L 16 5"},transition:i}),(0,r.jsx)(sD.path,{stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",initial:!1,animate:{d:t?"M 4 14 L 14 4":"M 2 13 L 16 13"},transition:i})]})}function s3({groups:t,reduce:e}){let i=e?{closed:{opacity:0}
9,open:{opacity:1}}:{closed:{opacity:0,transform:"translateY(4px)"},open:{opacity:1,transform:"translateY(0px)",transition:{type:"spring",stiffness:300,damping:24}}};return(0,r.jsx)(sD.div,{className:"hr-dropdown",initial:"closed",animate:"open",exit:"exit",variants:e?{closed:{opacity:0,transform:"translateX(-50%) scale(1)"},open:{opacity:1,transform:"translateX(-50%) scale(1)",transition:{duration:.15}},exit:{opacity:0,transform:"translateX(-50%) scale(1)",transition:{duration:.1}}}:{closed:{opacity:0,transform:"translateX(-50%) scale(0.95)"},open:{opacity:1,transform:"translateX(-50%) scale(1)",transition:{type:"spring",stiffness:300,damping:24,staggerChildren:.018,delayChildren:.03}},exit:{opacity:0,transform:"translateX(-50%) scale(0.97)",transition:{duration:.12,ease:[.23,1,.32,1]}}},style:{position:"absolute",top:"calc(100% + 8px)",left:"50%",minWidth:268,borderRadius:12,padding:"6px 0",zIndex:100,background:"var(--hr-surface)",backdropFilter:"none",WebkitBackdropFilter:"none"},children:t.map((t,e)=>(0,r.jsxs)("div",{children:[t.heading&&(0,r.jsx)(sD.div,{variants:i,style:{font:'600 10px "Geist", ui-sans-serif',letterSpacing:"0.12em",textTransform:"uppercase",color:"var(--hr-fg-muted)",padding:0===e?"6px 16px 6px":"10px 16px 6px",marginTop:4*(0!==e),borderTop:0===e?"none":"1px solid var(--hr-border)"},children:t.heading}),t.items.map(t=>(0,r.jsx)(sD.div,{variants:i,children:(0,r.jsxs)(o.default,{href:t.href,className:"hr-menuitem",style:{display:"flex",alignItems:"center",gap:10,padding:"9px 16px",font:'500 13px "Geist", ui-sans-serif',color:"var(--hr-fg-2)",textDecoration:"none",whiteSpace:"nowrap"},children:[(0,r.jsx)(sX.ServiceIcon,{slug:t.href.replace("/services/","").replace("/",""),size:16}),t.label]})},t.href))]},t.heading??e))})}function s4(t){let e=new MutationObserver(t);return e.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>e.disconnect()}let s5=()=>"dark"===document.documentElement.dataset.theme,s6=()=>!1,s8=t=>({display:"inline-flex",transform:t?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms cubic-bezier(0.23, 1, 0.32, 1)"});t.s(["Nav",0,function(){let t=(0,a.usePathname)(),e=e=>t===e?"page":void 0,i=(0,s.useSyncExternalStore)(s4,s5,s6),[n,l]=(0,s.useState)(null),[h,u]=(0,s.useState)(!1),c=(0,s.useRef)(null),d=(0,sH.useReducedMotion)()??!1;(0,s.useEffect)(()=>{let t=t=>{c.current&&!c.current.contains(t.target)&&l(null)};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[]),(0,s.useEffect)(()=>(document.body.style.overflow=h?"hidden":"",()=>{document.body.style.overflow=""}),[h]);let p=()=>{let t=i?"light":"dark";document.documentElement.dataset.theme=t;try{localStorage.setItem("hr-theme",t)}catch{}},m=d?{hidden:{opacity:0},show:{opacity:1,transition:{duration:.15}},exit:{opacity:0,transition:{duration:.12}}}:{hidden:{opacity:0,transform:"translateY(-16px)"},show:{opacity:1,transform:"translateY(0px)",transition:{type:"spring",stiffness:280,damping:30,staggerChildren:.02,delayChildren:.05}},exit:{opacity:0,transform:"translateY(-12px)",transition:{duration:.16,ease:[.23,1,.32,1]}}},f=d?{hidden:{opacity:0},show:{opacity:1}}:{hidden:{opacity:0,transform:"translateY(12px)"},show:{opacity:1,transform:"translateY(0px)",transition:{type:"spring",stiffness:300,damping:24}}},g={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"11px 14px",font:'500 14.5px "Geist", ui-sans-serif',color:"var(--hr-fg)",textDecoration:"none",borderRadius:10,background:"var(--hr-surface)",border:"1px solid var(--hr-border)",marginBottom:6},y=(t=!1)=>({font:'600 10.5px "Geist", ui-sans-serif',color:"var(--hr-fg-muted)",letterSpacing:"0.1em",textTransform:"uppercase",padding:t?"20px 4px 10px":"10px 4px 6px"});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("header",{className:"hr-chrome",style:{position:"sticky",top:0,zIndex:50},children:[(0,r.jsxs)("div",{ref:c,style:{maxWidth:1200,margin:"0 auto",padding:"0 32px",display:"flex",alignItems:"center",gap:32,height:64},className:"nav-inner",children:[(0,r.jsx)(o.default,{href:"/",style:{display:"flex",alignItems:"center",textDecoration:"none",flexShrink:0},children:(0,r.jsx)(sY.Logo,{height:30})}
9),(0,r.jsxs)("nav",{className:"nav-desktop-links",style:{display:"flex",alignItems:"center",gap:4,marginLeft:8},children:[(0,r.jsxs)("div",{style:{position:"relative"},children:[(0,r.jsxs)("button",{onClick:()=>l("services"===n?null:"services"),"aria-expanded":"services"===n,className:"hr-navlink",style:{display:"inline-flex",alignItems:"center",gap:5,padding:"6px 10px",background:"transparent",border:"none",font:'500 13.5px "Geist", ui-sans-serif',color:"var(--hr-fg-2)",cursor:"pointer",borderRadius:6},children:["Services ",(0,r.jsx)("span",{style:s8("services"===n),children:sG.Icons.chevronDown})]}),(0,r.jsx)(s$,{children:"services"===n&&(0,r.jsx)(s3,{groups:s1,reduce:d})})]}),(0,r.jsx)(o.default,{href:"/platform-tour/",className:"hr-navlink","aria-current":e("/platform-tour"),style:{padding:"6px 10px",font:'500 13.5px "Geist", ui-sans-serif',color:"var(--hr-fg-2)",textDecoration:"none",borderRadius:6},children:"Platform Tour"}),(0,r.jsx)(o.default,{href:"/pricing/",className:"hr-navlink","aria-current":e("/pricing"),style:{padding:"6px 10px",font:'500 13.5px "Geist", ui-sans-serif',color:"var(--hr-fg-2)",textDecoration:"none",borderRadius:6},children:"Pricing"}),(0,r.jsxs)("div",{style:{position:"relative"},children:[(0,r.jsxs)("button",{onClick:()=>l("about"===n?null:"about"),"aria-expanded":"about"===n,className:"hr-navlink",style:{display:"inline-flex",alignItems:"center",gap:5,padding:"6px 10px",background:"transparent",border:"none",font:'500 13.5px "Geist", ui-sans-serif',color:"var(--hr-fg-2)",cursor:"pointer",borderRadius:6},children:["About ",(0,r.jsx)("span",{style:s8("about"===n),children:sG.Icons.chevronDown})]}),(0,r.jsx)(s$,{children:"about"===n&&(0,r.jsx)(s3,{groups:s0,reduce:d})})]}),(0,r.jsx)(o.default,{href:"/blog/",className:"hr-navlink","aria-current":e("/blog"),style:{padding:"6px 10px",font:'500 13.5px "Geist", ui-sans-serif',color:"var(--hr-fg-2)",textDecoration:"none",borderRadius:6},children:"Blog"}),(0,r.jsx)(o.default,{href:"/tales/",className:"hr-navlink","aria-current":e("/tales"),style:{padding:"6px 10px",font:'500 13.5px "Geist", ui-sans-serif',color:"var(--hr-fg-2)",textDecoration:"none",borderRadius:6},children:"Tales from The CyberLab"})]}),(0,r.jsxs)("div",{className:"nav-desktop-actions",style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:10},children:[(0,r.jsx)("a",{href:"https://app.cyberportal.uk/login",title:"Opens CyberPortal, the secure HackRisk platform",className:"hr-navlink",style:{padding:"6px 10px",borderRadius:6,font:'500 13.5px "Geist", ui-sans-serif',color:"var(--hr-fg-2)",textDecoration:"none"},children:"Login"}),(0,r.jsx)("button",{onClick:p,"aria-label":"Toggle theme",style:{width:34,height:34,borderRadius:8,border:"1px solid var(--hr-border-2)",background:"var(--hr-surface)",color:"var(--hr-fg-2)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"var(--hr-shadow-sm)",flexShrink:0},children:i?sG.Icons.sun:sG.Icons.moon}),(0,r.jsxs)(sz.Btn,{variant:"primary",size:"md",href:"/get-your-free-report/",icon:sG.Icons.arrow,cta:!0,children:[(0,r.jsx)("span",{className:"nav-cta-long",children:"Start Your Free Trial"}),(0,r.jsx)("span",{className:"nav-cta-short",children:"Free Trial"})]})]}),(0,r.jsxs)("div",{className:"nav-mobile-actions",style:{marginLeft:"auto",display:"none",alignItems:"center",gap:10},children:[(0,r.jsx)(sz.Btn,{variant:"primary",size:"sm",href:"/get-your-free-report/",cta:!0,children:"Free Trial"}),(0,r.jsx)("button",{onClick:p,"aria-label":"Toggle theme",style:{width:34,height:34,borderRadius:8,border:"1px solid var(--hr-border-2)",background:"var(--hr-surface)",color:"var(--hr-fg-2)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"var(--hr-shadow-sm)",flexShrink:0},children:i?sG.Icons.sun:sG.Icons.moon}),(0,r.jsx)("button",{onClick:()=>u(!h),"aria-label":h?"Close menu":"Open menu","aria-expanded":h,style:{width:34,height:34,borderRadius:8,border:"1px solid var(--hr-border-2)",background:"var(--hr-surface)",color:"var(--hr-fg-2)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"var(--hr-shadow-sm)",flexShrink:0},children:(0,r.jsx)(s2,{open:h,reduce:d})})]})]}),t?.replace(/\/$/,"")!==sK.href.replace(/\/$/,"")&&(0,r.jsx)(sQ,{announcement:sK})]}),(0,r.jsx)(s$,{children:h&&(0,r.jsx)(sD.div,{className:"hr-drawer",initial:"hidden",animate:"show",exit:"exit",variants:m,style:{position:"fixed",inset:0,zIndex:49,background:"var(--hr-bg)",overflowY:"auto",paddingBottom:40},children:(0,r.jsxs)("div",{style:{padding:"0 20px",display:"flex",flexDirection:"column"},children:[(0,r.jsx)(sD.div,{variants:f,style:y(!0),children:"Services"}),s1.flatMap(t=>t.items).map(t=>(0,r.jsx)(sD.div,{variants:f,children:(0,r.jsxs)(o.default,{href:t.href,onClick:()=>u(!1),style:g,children:[t.label,(0,r.jsx)("span",{style:{color:"var(--hr-fg-muted)",fontSize:14},children:"âº"})]})},t.href)),(0,r.jsx)(sD.div,{variants:f,style:{height:1,background:"var(--hr-border)",margin:"16px 0 6px"}}),(0,r.jsx)(sD.div,{variants:f,style:y(),children:"Explore"}),[{label:"Platform Tour",href:"/platform-tour/"},{label:"Pricing",href:"/pricing/"},{label:"Blog",href:"/blog/"},{label:"Tales from The CyberLab",href:"/tales/"}].map(t=>(0,r.jsx)(sD.div,{variants:f,children:(0,r.jsxs)(o.default,{href:t.href,onClick:()=>u(!1),style:g,children:[t.label,(0,r.jsx)("span",{style:{color:"var(--hr-fg-muted)",fontSize:14},children:"âº"})]})},t.href)),(0,r.jsx)(sD.div,{variants:f,style:{height:1,background:"var(--hr-border)",margin:"16px 0 6px"}}),(0,r.jsx)(sD.div,{variants:f,style:y(),children:"Company"}),s0.flatMap(t=>t.items).map(t=>(0,r.jsx)(sD.div,{variants:f,children:(0,r.jsxs)(o.default,{href:t.href,onClick:()=>u(!1),style:g,children:[t.label,(0,r.jsx)("span",{style:{color:"var(--hr-fg-muted)",fontSize:14},children:"âº"})]})}
9,t.href)),(0,r.jsxs)(sD.div,{variants:f,style:{marginTop:24,display:"flex",flexDirection:"column",gap:10},children:[(0,r.jsx)(sz.Btn,{variant:"primary",size:"lg",href:"/get-your-free-report/",icon:sG.Icons.arrow,cta:!0,children:"Start Your Free Trial"}),(0,r.jsx)("a",{href:"https://app.cyberportal.uk/login",title:"Opens CyberPortal, the secure HackRisk platform",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:6,padding:"13px",font:'500 14px "Geist", ui-sans-serif',color:"var(--hr-fg-2)",textDecoration:"none",borderRadius:10,border:"1px solid var(--hr-border)",background:"var(--hr-surface)"},children:"Login to HackRisk"})]})]})})})]})}],42724)},96604,t=>{"use strict";var e=t.i(43476);let i={x:1157.63,y:1287.91,w:326.88,h:317.33},n={x:866.81,y:1669.35,w:908.32,h:150.63},r=(t,e)=>`${t.x-e} ${t.y-e} ${t.w+2*e} ${t.h+2*e}`,s=r(i,5),o=r(n,3);function a({size:t=28,className:n}){let r=t*((i.w+10)/i.w);return(0,e.jsx)("svg",{width:r,height:r,viewBox:s,fill:"currentColor",className:n,"aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:'<path d="M1445.84,1525.14c5.47,3.02,8.4,11.32,4.33,16.69-59.86,78.8-178.35,85.38-247.31,12.84-3.88-4.09-8.23-8.31-10.7-12.9-4.52-8.43.5-14.89,7.58-18.78l32.1-17.63c8.16-4.48,15.3.76,20.77,6.7,30.53,33.19,84.27,37.98,122.45,12.46,5.74-3.83,10.56-7.53,15.23-13.05,4.07-4.81,11.81-10.49,18.55-6.77l37,20.43Z"/><path d="M1224.03,1438.81c-.62,11.72,1.35,22.15,3.49,33.13.99,5.09-1.25,10.72-5.78,13.21l-38.33,21.14c-7.01,3.87-13.83-2.02-16.08-8.14-15.91-43.2-12.2-90.61,10.73-130.83,24.81-43.53,69.61-72.77,119.27-79.3,6.16-.81,13.04,2.83,13.03,9.18l-.03,44.83c0,7.02-7.77,10.41-13.39,11.53-16.15,3.23-30.08,10.94-42.16,21.66-18.43,16.35-29.41,38.43-30.74,63.57Z"/><path d="M1421.59,1485.78c-6.01-3.41-8.02-10.2-6.29-16.99,13.92-54.8-19.22-105.73-73.34-116.22-5.81-1.13-10.04-7.03-9.95-12.87l.64-44.44c.08-5.44,7.05-7.88,11.97-7.26,22.9,2.87,44.22,10.53,63.49,22.07,65.89,39.45,94.23,120.47,64.78,191.69-2.66,6.43-12.31,6.12-17.33,3.27l-33.96-19.25Z"/><ellipse cx="1321.16" cy="1445.26" rx="55.81" ry="55.79"/>'}})}function l({height:t=20,className:i}){let r=t*((n.h+6)/n.h),s=r*((n.w+6)/(n.h+6));return(0,e.jsx)("svg",{width:s,height:r,viewBox:o,fill:"currentColor",className:i,role:"img","aria-label":"HackRisk",dangerouslySetInnerHTML:{__html:'<path d="M1000.41,1813.95c.02,2.4-2.6,3.88-4.46,3.85l-24.13-.34-.09-58.07-76.07.11-.35,27.16.19,26c0,1.33-1.18,4.97-2.7,4.96l-25.92-.05-.07-142.47c9.65-1.63,18.32-1.47,28.02-.26,1.24,12.12.17,23.1.39,34.92l.46,25.13,75.96.03.18-59.97c9.63-1.17,18.21-1.08,28.06-.02l.19,94.7.34,44.32Z"/><path d="M1403.93,1817.1l-25.77.72c-.75-.6-2.35-3.41-2.35-4.63l-.13-50.48,1.07-17.66,10.42-.77,62.85-.79c8.62-.11,15.84-6.01,18.94-12.05,4.11-8.01,3.32-17.21-2.06-24.31-4.71-6.21-13.15-8.76-21.09-8.83l-69.08-.64-.29-20.63c-.02-1.06,2.74-2.76,3.63-2.81l64.39.17c18.62-.12,41.52,7.11,50.28,23.22,7.69,14.14,7.85,32-.41,45.91-6.82,11.48-17.76,17.32-30.51,20.81l14.36,19.58,24.19,33.31-32.78.33-36.34-50.14-28.97-.59-.34,50.28Z"/><path d="M1314.27,1760.52l26.99,31.39,21.32,25.59-33.7.1-24-28.24-9.8-11.43-17.12,17.12-.5,22.45-23.12.24c-1.6.02-3.62-2.22-3.62-4.2v-136.55c0-1.83,2.36-4.1,3.68-4.1l19.37-.06c1.71,0,3.83,1.92,3.84,3.9l.32,86.32,12.99-12.97,15.2-15.84,24.65-25.4,29.14-.16,2.11,2.28-23.98,25.25-23.77,24.32Z"/><path d="M1768.08,1721.19l-39.87,40.19,46.01,53.2.89,1.64c.24.44-1.37,1.29-1.78,1.42l-30.56.11-33.18-38.89-15.25,15.64-.47,23.18-26.57-.26.02-144.14,23.2-.57c1.5-.04,3.66,2.32,3.66,4.06l.07,85.69,13.4-13.41,13.04-13.89,15.14-16c2.03-2.14,5.09-6.36,8.34-6.35l30.43.09-6.53,8.27Z"/><path d="M1015.56,1789.2c-1.34-24.08,18.51-34.29,41.14-34.68,12.73-.22,24.52.91,36.75,4.07.51-6.46.6-13.79-3.69-19.03-9.28-11.34-35.88-9.26-51.69.53-1.43.89-5.54,2.45-6.64.93l-8-11.06c-1.81-2.5-.93-5.33,1.56-7.05,19.24-13.28,50.48-15.92,71.91-8.32,13.54,4.8,23.22,16.8,23.26,31.85l.2,70.85-24.79.37c-1.81-3.27-1.82-6.83-1.87-11.62-9.49,10.26-21.77,13.88-35,13.83-21.79-.08-41.86-7.25-43.16-30.69ZM1093.14,1787.43c.98-4.12.5-7.97.09-12.18l-19.15-3.13c-14.29-2.34-32.24,1.5-31.76,15.06.19,5.27,3.57,9.73,9.39,11.61,17.22,5.56,39.3-2.44,41.43-11.35Z"/><path d="M1653.61,1792.79c-4.22,21.43-26.27,26.88-47.26,27.04-16.97.13-33.48-2.55-47.63-13.09l9.83-18.58c15.26,10.42,32.8,14.92,50.39,10.29,4.22-1.11,7.33-4.85,7.97-8.61s-2.58-8.75-7.03-9.76l-21.17-4.78c-17.18-3.88-36.67-8.12-38.43-28.43-1.13-13.01,4.46-24.29,16.19-30.16,20-10.01,55.13-8.1,73.69,7.01-2.98,6.59-6.34,12.17-10.56,17.64-8.5-4.39-15.5-8.35-24.23-9.68-12.85-1.96-28.03-.62-28.55,9.71-.73,14.46,30.4,10.98,52.69,21.93,11.62,5.71,16.51,17.28,14.1,29.48Z"/><path d="M1161.59,1775.12c3.42,14.2,15.29,22.9,28.91,22.96,12.65.05,23.02-3.42,31.33-14.41l15.23,12.42c1.06.87.29,4.62-.61,5.33-10.37,10.98-23.63,17.52-38.82,18.34-17.61,1.2-35.42-2.32-48.51-14.6-12.5-11.73-17.56-29.09-16.01-45.76,2.4-25.81,21.34-45.07,47.04-48.11,22.19-2.63,44.2,1.46,58.34,20.65l-14.99,12.85c-4.2,3.6-9.07-12.32-30.89-12.54-15.53-.16-28.57,9.38-31.44,25.17-.97,5.36-.97,11.95.42,17.71Z"/><path d="M1540.78,1817.76l-23.42-.25-.37-40.94.06-57.88c0-2.87,1.16-5.71,4.68-5.73l18.72-.09c1.42,0,3.51,2.42,3.69,4.03l.02,97.58c-.03.89-2.08,3.28-3.37,3.27Z"/><path d="M1533.92,1698.78c-10.24,1.67-18.75-5.22-18.55-14.47.21-9.55,8.25-16.43,18.04-14.69,7.49,1.34,12.02,6.79,12.34,13.67.35,7.42-3.47,14.12-11.83,15.49Z"/>'}})}t.s(["Logo",0,function({height:t=26}){return(0,e.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:.36*t,color:"var(--hr-logo)",lineHeight:0},children:[(0,e.jsx)(a,{size:t}),(0,e.jsx)(l,{height:.62*t,className:"hr-logo-wordmark"})]})},"LogoMark",0,a])},80936,t=>{"use strict";var e=t.i(43476);
9let i={"dark-web-scanning":'<path d="M41.98,53.65c-7.06-.04-12.82,5.66-12.85,12.73-.04,7.06,5.66,12.82,12.73,12.85,5.64.03,10.63-3.64,12.29-9.04h5.41v8.33h7.51v-8.33h4v-7.51h-16.91c-1.64-5.35-6.57-9.02-12.17-9.04ZM41.98,71.72c-2.92,0-5.28-2.36-5.28-5.28s2.36-5.28,5.28-5.28c2.92,0,5.28,2.36,5.28,5.28,0,2.91-2.37,5.28-5.28,5.28Z" style="fill:currentColor; stroke-width:0px;"/><path d="M59.57,8.85H22.27c-2.59,0-4.69,2.1-4.69,4.69v74.17c0,2.59,2.1,4.68,4.69,4.69h56.03c2.59,0,4.69-2.1,4.69-4.69v-55.45l-23.41-23.41ZM75.47,84.88H25.09V16.36h31.13v19.57c0,.51.41.93.93.93h18.33v48.02Z" style="fill:currentColor; stroke-width:0px;"/>',"recon-scanning":'<g id="b"><g id="c"><circle id="d" cx="25.5" cy="51.13" r="18" style="fill:none; stroke:currentColor; stroke-width:8px;"/><ellipse id="e" cx="75" cy="51.13" rx="17.5" ry="18" style="fill:none; stroke:currentColor; stroke-width:8px;"/></g><path id="f" d="M25.59,33.13h48.88" style="fill:none; stroke:currentColor; stroke-width:8px;"/><path id="g" d="M40.94,57.13h18.18" style="fill:none; stroke:currentColor; stroke-width:8px;"/><path id="h" d="M25.59,43.78c3.73.81,6.58,3.82,7.2,7.58" style="fill:none; stroke:currentColor; stroke-linecap:round; stroke-width:8px;"/><path id="i" d="M74.47,43.78c3.73.81,6.58,3.82,7.2,7.58" style="fill:none; stroke:currentColor; stroke-linecap:round; stroke-width:8px;"/></g>',"vulnerability-scanning":'<path d="M52.66,39.24h-14.63c-2.07,0-3.75,1.68-3.75,3.75s1.68,3.75,3.75,3.75h14.63c2.07,0,3.75-1.68,3.75-3.75s-1.68-3.75-3.75-3.75Z" style="fill:currentColor; stroke-width:0px;"/><path d="M52.66,54.93h-14.63c-2.07,0-3.75,1.68-3.75,3.75s1.68,3.75,3.75,3.75h14.63c2.07,0,3.75-1.68,3.75-3.75s-1.68-3.75-3.75-3.75Z" style="fill:currentColor; stroke-width:0px;"/><path d="M91.52,69.31c-1.49-1.44-3.87-1.39-5.31.1l-13.42,13.42-5.07-5.07s-.06-.06-.09-.09c-1.49-1.44-3.87-1.4-5.31.1-1.44,1.49-1.4,3.87.1,5.31l10.38,10.38,18.73-18.73s.07-.06.1-.1c1.44-1.49,1.39-3.87-.1-5.31Z" style="fill:currentColor; stroke-width:0px;"/><path d="M62.15,59.41c2.29-1.62,4.82-2.84,7.51-3.64v-1.49h8.76v-7.51h-8.76v-2.94c0-2.12-.29-4.23-.84-6.28h9.61v-7.51h-12.99c-2.13-3.16-4.87-5.67-7.96-7.47,1.49-2.74,3.87-4.93,6.78-6.16,2.01-.52,3.21-2.57,2.69-4.58-.52-2.01-2.57-3.21-4.58-2.69-6.54,1.69-10.34,7.67-11.88,10.67-3.05-.69-6.23-.81-9.36-.31-1.63-3.08-5.4-8.72-11.72-10.36-2.01-.52-4.06.68-4.58,2.69-.52,2.01.68,4.06,2.69,4.58,2.66,1.12,4.88,3.03,6.38,5.45-.9.46-1.79.97-2.65,1.55-2.61,1.77-4.87,4.02-6.63,6.63h-11.26v7.51h7.86c-.55,2.05-.83,4.16-.84,6.28v2.94h-7.01v7.51h7.01v5.24c0,1.33.13,2.66.35,3.97h-7.37v7.51h9.87c5.33,10.21,17.06,15.33,28.17,12.29-.11-.96-.16-1.92-.16-2.89,0-1.72.17-3.44.51-5.13-8.69,3.72-18.76-.31-22.48-9.01-.91-2.13-1.38-4.43-1.38-6.75v-15.7c0-9.46,7.67-17.13,17.13-17.13s17.13,7.67,17.13,17.13v15.58Z" style="fill:currentColor; stroke-width:0px;"/>',"phishing-simulations":'<path id="b" d="M58.11,8.55c-9.4,0-17.03,7.61-17.04,17.01,0,7.61,5.04,14.31,12.37,16.39v31.66c-.09,6.43-5.37,11.57-11.8,11.48-6.28-.09-11.37-5.15-11.48-11.43h11.54l-18.89-18.89-.17,18.84h0v.05h0c.01,10.58,8.6,19.14,19.17,19.13,10.58-.01,19.14-8.6,19.13-19.17h0v-31.24c9.27-1.55,15.53-10.33,13.97-19.6-1.38-8.21-8.49-14.22-16.81-14.21h0ZM58.11,35.41c-5.43,0-9.83-4.4-9.83-9.83s4.4-9.83,9.83-9.83c5.43,0,9.83,4.4,9.83,9.83,0,5.43-4.41,9.83-9.83,9.83Z" style="fill:currentColor; stroke-width:0px;"/>',"security-awareness-training":'<path d="M63.14,25.37l-.08,5.64-12.03,11.7c-3.95-1.22-8.14,1-9.35,4.95-1.21,3.95,1,8.14,4.95,9.35,3.95,1.22,8.14-1,9.35-4.95.42-1.37.44-2.83.06-4.2l12.44-12.1,5.64.08,15.41-15.78-10.32-.15.15-10.31-16.22,15.77Z" style="fill:currentColor; stroke-width:0px;"/><path d="M88.72,35.74h0s-6.83,2.45-6.83,2.45c6.54,18.16-2.88,38.17-21.04,44.71-18.16,6.54-38.17-2.88-44.71-21.04-6.54-18.16,2.88-38.17,21.04-44.71,7.97-2.87,16.71-2.75,24.59.35l2.64-6.76C42.76,2.3,18.37,13,9.93,34.65c-8.44,21.64,2.26,46.03,23.9,54.47,4.69,1.83,9.67,2.8,14.71,2.87h.61c23.19.04,42.02-18.74,42.06-41.93,0-4.88-.84-9.73-2.49-14.32Z" style="fill:currentColor; stroke-width:0px;"/><path d="M49.18,34.07c.51,0,1.02.04,1.53.1l.82-7.21c-.74-.08-1.5-.13-2.26-.15-12.64-.11-23.01,9.97-23.25,22.61-.18,12.66,9.94,23.07,22.61,23.25h.33c12.54,0,22.75-10.07,22.93-22.61l-7.26-.1c-.12,8.66-7.23,15.58-15.89,15.46-8.66-.12-15.58-7.23-15.46-15.89.12-8.66,7.23-15.57,15.89-15.46ZM49.19,34.07h0s0,0,0,0c0,0,0,0,0,0Z" style="fill:currentColor; stroke-width:0px;"/>',integrations:'<g fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="9" r="2.6"/><path d="M9 3.1v1.6M9 13.3v1.6M3.1 9h1.6M13.3 9h1.6M4.8 4.8l1.2 1.2M12 12l1.2
91.2M13.2 4.8L12 6M6 12l-1.2 1.2"/><circle cx="16.4" cy="16.4" r="2.2"/><path d="M16.4 11.6v1.3M16.4 19.9v1.3M11.6 16.4h1.3M19.9 16.4h1.3M13 13l.9.9M18.9 18.9l.9.9M19.8 13l-.9.9M13.9 18.9l-.9.9"/></g>',"supply-chain-security":'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>'},n={"supply-chain-security":"0 0 24 24",integrations:"0 0 24 24"};t.s(["ServiceIcon",0,function({slug:t,size:r=28,fallback:s=null}){let o=i[t];return o?(0,e.jsx)("svg",{width:r,height:r,viewBox:n[t]??"0 0 100 100","aria-hidden":"true",focusable:"false",dangerouslySetInnerHTML:{__html:o}}):(0,e.jsx)(e.Fragment,{children:s})}],80936)},34879,t=>{"use strict";var e=t.i(43476);t.s(["Wave",0,function({place:t="behind"}){return(0,e.jsx)("div",{className:"hr-wave","data-place":t,"aria-hidden":"true"})}])},72328,71164,38544,t=>{"use strict";let e={current:null},i={current:!1};t.s(["hasReducedMotionListener",0,i,"prefersReducedMotion",0,e],71164);let n="u">typeof window;function r(){if(i.current=!0,n)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),i=()=>e.current=t.matches;t.addEventListener("change",i),i()}else e.current=!1}t.s(["initPrefersReducedMotion",0,r],38544);var s=t.i(71645);t.s(["useReducedMotion",0,function(){i.current||r();let[t]=(0,s.useState)(e.current);return t}],72328)}]);
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.